import{_ as c,u as i,S as _,o as a,c as l,i as h,m as $,C as f,a as w,af as v,J as u}from"./entry.CYhL-9Rt.js";const k={setup(){const{public:e}=h();i({script:[{hid:"sw_header",src:"/statics/3ds-navigation/ds-header.js",defer:!0}]}),_(()=>{var r=document.getElementsByTagName("ds-header");if(r.length>0){var t=r[0].shadowRoot;if(t){var n=t.querySelector("#user-logout");const s=e.drupal_url+"/portal/passport/logout",d=e.baseCASUrl+"/logout?service="+encodeURIComponent(s);n&&n.addEventListener("click",function(){window.location.href=d})}}})},data(){return{external:"false"}},computed:{setHeader(){return'<ds-header id="megaHeader" brand="solidworks" external="false"></ds-header>'}}},H=["innerHTML"];function x(e,o,r,t,n,s){return a(),l("div",{innerHTML:s.setHeader},null,8,H)}const y=c(k,[["render",x]]),L={setup(){i({script:[{hid:"sw_footer",src:"/statics/3ds-navigation/ds-footer.js",defer:!0}]})},data(){return{external:"false"}},computed:{setFooter(){return'<ds-footer brand="solidworks" external="false"></ds-footer>'}}},S=["innerHTML"];function T(e,o,r,t,n,s){return a(),l("div",{innerHTML:s.setFooter},null,8,S)}const b=c(L,[["render",T]]),M={setup(){const{public:e}=h();i({script:[{hid:"draftsight_header",src:"/statics/3ds-navigation/ds-header.js",defer:!0}]}),_(()=>{var r=document.getElementsByTagName("ds-header");if(r.length>0){var t=r[0].shadowRoot;if(t){var n=t.querySelector("#user-logout");const s=e.draftsight_url+"/portal/passport/logout",d=e.baseCASUrl+"/logout?service="+encodeURIComponent(s);n&&n.addEventListener("click",function(){window.location.href=d})}}})},data(){return{external:"false"}},computed:{setHeader(){return'<ds-header brand="draftsight" external="false"></ds-header>'}}},U=["innerHTML"];function C(e,o,r,t,n,s){return a(),l("div",{innerHTML:s.setHeader},null,8,U)}const F=c(M,[["render",C]]),R={setup(){i({script:[{hid:"draftsight_footer",src:"/statics/3ds-navigation/ds-footer.js",defer:!0}]})},data(){return{external:"false"}},computed:{setFooter(){return'<ds-footer brand="draftsight" external="false"></ds-footer>'}}},A=["innerHTML"];function E(e,o,r,t,n,s){return a(),l("div",{innerHTML:s.setFooter},null,8,A)}const j=c(R,[["render",E]]),B={components:{SwHeader:y,SwFooter:b,DraftsightHeader:F,DraftsightFooter:j},setup(){const e=$(),o=!(e.path.includes("downloads-archive")||e.path.includes("draftsight-download")),r=o?"solidworks":"draftsight",t=o?"https://www.solidworks.com/themes/custom/solidworks_digital/favicon_SW.png":"https://www.draftsight.com/sites/draftsight/files/draftisght_0.png";return i({bodyAttrs:{class:`ds-theme-${r}`},link:{rel:"icon",type:"image/x-icon",href:t}}),{isSW:o}}},W={class:"ds-ui-kit-scope"};function N(e,o,r,t,n,s){const d=u("sw-header"),p=u("draftsight-header"),g=u("sw-footer"),m=u("draftsight-footer");return a(),l("div",null,[t.isSW?(a(),f(d,{key:0})):(a(),f(p,{key:1})),w("main",W,[v(e.$slots,"default")]),t.isSW?(a(),f(g,{key:2})):(a(),f(m,{key:3}))])}const D=c(B,[["render",N]]);export{D as default};