import{_ as p,r as x,a7 as M,a8 as E,o as d,C as h,w as S,a as e,a9 as I,c as i,F as y,v as L,t as c,K as b,V as U,d as f,aa as R,z as v,ab as T,J as g,s as w,U as D,p as C,e as A,ac as O,l as F,N as V,ad as N,B,u as G,b as P}from"./entry.CYhL-9Rt.js";import{s as H}from"./superGlobalsw.Cavq-IdQ.js";const W={props:{fileurl:String,exportagreement:Object,datamodal:Object,eula:{type:Array,default:()=>[]},closa:{type:String,default:()=>""}},setup(o,{emit:a}){const t=x(null),s={agreement:k=>k?!0:"The Export Eligibility Requirements field is required."},{handleSubmit:n,errors:l}=M({validationSchema:s}),m=n(k=>{window.open(o.fileurl,"_parent"),a("close"),t.value=null}),{value:_}=E("agreement");return{agreement:_,myform:t,onSubmit:m,errors:l}},data(){return{freedownload:[],modaldata:{eula:this.eula[0],product:this.datamodal.PRODUCT,swversion:this.datamodal.SWVERSION,fileurl:this.datamodal.FILEURL}}},watch:{myform:function(o,a){o===null&&(this.agreement=null)}},async created(){const o=v();try{const{data:a}=await o.$swFetcher.fetchDraftsightFiles(this.datamodal);this.freedownload=a.data}catch(a){console.error(a.message)}},methods:{close(){this.agreement=null,this.$refs.myform.reset(),this.$emit("close")},Accept(){this.$emit("close")}}},$={class:"modal-head GridWrap--noGutter"},j={class:"modal-title"},q={class:"Grid-item Grid-item--1_4 Grid-item--4_8--md Grid-item--6_12--ld Grid-item--6_12--lg Grid-item--12_24--xl"},Y=e("meta",{itemprop:"category",content:"navigation"},null,-1),z=e("meta",{itemprop:"action",content:"eula_close"},null,-1),J=["content"],K=e("i",{class:"ds-ico ds-ico-close-mini"},null,-1),Q={class:"modal-body"},X=["innerHTML"],Z={class:"checkbox"},ee=["innerHTML"],te={class:"ds-input__info ds-input__error free_error"},oe=["innerHTML"],ae={class:"modal-cta GridWrap"},ne={class:"button-submit"},se={name:"accept",itemscope:"",itemtype:"http://tracking.3ds.com/ClickAction",type:"submit",class:"ds-btn ds-btn--scream js-form-submit form-submit free-downloads-submit button ui-button ui-corner-all ui-widget"},le=e("meta",{itemprop:"category",content:"download"},null,-1),de=e("meta",{itemprop:"action",content:".exe"},null,-1),re=["content"],ie={class:"button-cancel ml-5"},ce=e("meta",{itemprop:"category",content:"navigation"},null,-1),ue=e("meta",{itemprop:"action",content:"eula_decline"},null,-1),me=["content"];function _e(o,a,t,r,s,n){return d(),h(R,{name:"modal-fade"},{default:S(()=>[e("div",{class:"ds--bg-modal",onClick:a[5]||(a[5]=(...l)=>n.close&&n.close(...l))},[e("div",{class:"ds--modal-contents",role:"dialog","aria-labelledby":"end_user_agreement","aria-describedby":"end_user_agreement_description","aria-modal":"true",onClick:a[4]||(a[4]=I(()=>{},["stop"]))},[e("form",{onSubmit:a[3]||(a[3]=(...l)=>r.onSubmit&&r.onSubmit(...l)),ref:"myform"},[e("div",$,[(d(!0),i(y,null,L(s.freedownload,(l,m)=>(d(),i("div",{key:m,class:"Title"},[e("h2",j,c(o.$t("freedl.content.end_user_agreement")),1),e("div",q,[e("button",{name:"close",type:"button",class:"btn-close btn-icon",itemscope:"",itemtype:"http://tracking.3ds.com/ClickAction",onMouseup:a[0]||(a[0]=(..._)=>n.close&&n.close(..._))},[Y,z,e("meta",{content:s.modaldata.product+"_"+s.modaldata.swversion,itemprop:"label"},null,8,J),K],32)])]))),128))]),e("div",Q,[e("div",{innerHTML:o.$t("freedl.content.export1")},null,8,X),e("label",Z,[b(e("input",{"true-value":1,"false-value":null,"onUpdate:modelValue":a[1]||(a[1]=l=>r.agreement=l),name:"agreement",type:"checkbox",class:"eula_checkbox"},null,512),[[U,r.agreement]])]),e("span",{class:"bold",innerHTML:o.$t("freedl.content.export2")},null,8,ee),e("span",te,c(r.errors.agreement),1),e("div",{innerHTML:t.closa},null,8,oe)]),e("div",ae,[(d(!0),i(y,null,L(s.freedownload,(l,m)=>(d(),i("div",{key:m,class:"modal-foot"},[e("div",ne,[e("button",se,[le,de,e("meta",{content:s.modaldata.product+"_"+s.modaldata.swversion,itemprop:"label"},null,8,re),f(" "+c(o.$t("freedl.interface.accept_eula_dl")),1)])]),e("div",ie,[e("button",{name:"cancel",itemscope:"",itemtype:"http://tracking.3ds.com/ClickAction",type:"button",class:"ds-btn ds-btn--scream btn-close",onMouseup:a[2]||(a[2]=(..._)=>n.close&&n.close(..._))},[ce,ue,e("meta",{content:s.modaldata.product+"_"+s.modaldata.swversion,itemprop:"label"},null,8,me),f(" "+c(o.$t("freedl.interface.cancel")),1)],32)])]))),128))])],544)])])]),_:1})}const he=p(W,[["render",_e]]),fe={name:"DraftsightDLItem",components:{DraftsightDLModal:he},props:{freedl:{type:Object,default:()=>{}},eula:{type:Array,default:()=>[]},ela:{type:Array,default:()=>[]},ela2:{type:Array,default:()=>[]},closa:{type:String,default:()=>""}},data(){return{isModalVisible:!1,exportagreement:{ok:""}}},methods:{stopPropagation(o){o.stopPropagation()},showModal(o){console.log("test line 180"),this.exportagreement.ok="",this.isModalVisible=!0},closeModal(){this.isModalVisible=!1},formatModifiedDate(o){return o&&o!=""?T(o,"MM/DD/YYYY").format("ll"):""}}},u=o=>(C("data-v-82a54305"),o=o(),A(),o),pe={style:{"margin-left":"1rem",float:"left",display:""}},be={class:"ds-btn--scream ds-btn ds-btn-downloads"},ye=["name"],ge=u(()=>e("meta",{itemprop:"category",content:"navigation"},null,-1)),we=u(()=>e("meta",{itemprop:"action",content:"eula_open"},null,-1)),De=["content"],Le=u(()=>e("i",{class:"ds-ico ds-ico-download-mini"},null,-1)),ve=["href","name"],ke=u(()=>e("meta",{itemprop:"category",content:"download"},null,-1)),Ce=u(()=>e("meta",{itemprop:"action",content:".exe"},null,-1)),Ae=["content"],xe=u(()=>e("span",{class:"hidden_download"},"Download",-1)),Me=u(()=>e("i",{class:"ds-ico ds-ico-download-mini ds-ico-white"},null,-1)),Ee=["href","name"],Se=u(()=>e("meta",{itemprop:"category",content:"download"},null,-1)),Ie={key:0,itemprop:"action",content:"external_link"},Ue={key:1,itemprop:"action",content:"internal_link"},Re=["content"],Te=u(()=>e("span",{class:"hidden_download"},"Download",-1)),Oe=u(()=>e("i",{class:"ds-ico ds-ico-external-link-mini"},null,-1)),Fe=u(()=>e("div",{class:"ds-tooltip__content ds-border ds-shadow-3"},null,-1));function Ve(o,a,t,r,s,n){const l=g("DraftsightDLModal");return d(),i("div",null,[e("div",pe,[e("li",be,[t.freedl.EULAFLAG===1||t.freedl.EULAFLAG===2?(d(),i("a",{key:0,class:"ds-ico ds-ico-download-mini ds-ico-white",name:`Download ${t.freedl.PRODUCT} - ${t.freedl.PRODUCTEDITION}`,itemscope:"",itemtype:"http://tracking.3ds.com/ClickAction",onMouseup:a[0]||(a[0]=(...m)=>n.showModal&&n.showModal(...m))},[ge,we,e("meta",{content:t.freedl.PRODUCT+"_"+t.freedl.SWVERSION,itemprop:"label"},null,8,De),Le,f(" "+c(t.freedl.LABEL),1)],40,ye)):w("",!0),t.freedl.EULAFLAG===0?(d(),i("a",{key:1,href:`${t.freedl.FILEURL}`,name:`Download ${t.freedl.PRODUCT} - ${t.freedl.PRODUCTEDITION}`,target:"_self",itemscope:"",itemtype:"http://tracking.3ds.com/ClickAction",class:"ds-link-white"},[ke,Ce,e("meta",{content:t.freedl.PRODUCT+"_"+t.freedl.SWVERSION,itemprop:"label"},null,8,Ae),xe,Me,f(" 11 "+c(t.freedl.LABEL),1)],8,ve)):w("",!0),t.freedl.EULAFLAG===""?(d(),i(y,{key:2},[e("a",{href:`${t.freedl.FILEURL.replace("/sw/support/eDrawings/e2_register.htm?downloadtype=64bit","https://www.solidworks.com/sw/support/eDrawings/e2_register.htm?downloadtype=64bit")}`,name:`Download ${t.freedl.PRODUCT} - ${t.freedl.PRODUCTEDITION}`,target:"_blank",itemscope:"",itemtype:"http://tracking.3ds.com/ClickAction"},[Se,t.freedl.FILEURL.indexOf("http")>=0?(d(),i("meta",Ie)):(d(),i("meta",Ue)),e("meta",{content:t.freedl.PRODUCT+"_"+t.freedl.SWVERSION,itemprop:"label"},null,8,Re),Te,Oe,f(" 22 "+c(t.freedl.LABEL),1)],8,Ee),Fe],64)):w("",!0)])]),t.freedl.SWVERSION>=2023?b((d(),h(l,{key:0,datamodal:t.freedl,fileurl:t.freedl.FILEURL,eula:t.ela2,exportagreement:s.exportagreement,closa:t.closa,onClose:n.closeModal},null,8,["datamodal","fileurl","eula","exportagreement","closa","onClose"])),[[D,s.isModalVisible]]):t.freedl.SWVERSION>=2022&&t.freedl.SP>=1?b((d(),h(l,{key:1,datamodal:t.freedl,fileurl:t.freedl.FILEURL,eula:t.ela,exportagreement:s.exportagreement,closa:t.closa,onClose:n.closeModal},null,8,["datamodal","fileurl","eula","exportagreement","closa","onClose"])),[[D,s.isModalVisible]]):b((d(),h(l,{key:2,datamodal:t.freedl,fileurl:t.freedl.FILEURL,eula:t.eula,exportagreement:s.exportagreement,closa:t.closa,onClose:n.closeModal},null,8,["datamodal","fileurl","eula","exportagreement","closa","onClose"])),[[D,s.isModalVisible]])])}const Ne=p(fe,[["render",Ve],["__scopeId","data-v-82a54305"]]),Be={name:"DraftsightDL",components:{DraftsightDLItem:Ne},props:{downloads1:{type:Array,default:()=>[]},eula:{type:Array,default:()=>[]},ela:{type:Array,default:()=>[]},ela2:{type:Array,default:()=>[]},drupalbanner:{type:Array,default:()=>[]},drupalbody:{type:Array,default:()=>[]},drupalbodyb:{type:Array,default:()=>[]}},setup(){let o="";const a=O();return o=F(()=>a.draftsightClosa),{closa:o}},data(){return{banner_data:{background_url:"https://www.draftsight.com/sites/draftsight/files/styles/banner/public/2020-10/2dCAD-data-management-op.jpg"}}},computed:{filteredDownloads:function(){return this.downloads1},bannerContent:function(){return{title:this.drupalbanner[0]?this.drupalbanner[0].title[0].value:"",subtitle:this.drupalbanner[0]?this.drupalbanner[0].field_subtitle[0].value:""}},bodyContent:function(){return{title:this.drupalbody[0]?this.drupalbody[0].title[0].value:"",body:this.drupalbody[0]?this.drupalbody[0].field_body[0].value:""}},bodybContent:function(){return{title:this.drupalbodyb[0]?this.drupalbodyb[0].title[0].value:"",body:this.drupalbodyb[0]?this.drupalbodyb[0].field_body[0].value:""}}}},Ge=o=>(C("data-v-09f17f15"),o=o(),A(),o),Pe=Ge(()=>e("div",{class:"ds-banner__shadow"},null,-1)),He={class:"ds-banner__content"},We={class:"ds-container"},$e={class:"ds-row"},je={class:"ds-col ds-col--center ds-col--md-8 ds-col--lg-10 ds-col--xl-12"},qe={class:"ds-banner__title ds-text-shadow"},Ye={class:"ds-banner__subtitle ds-text-shadow"},ze={class:"ds-container"},Je={class:"ds-row pt-5 pb-5"},Ke={class:"ds-col--xs-4 ds-col--md-8 ds-col--lg-12 ds-col--xl-12 ds-col--xl-offset-2"},Qe={class:"ds-modal-ctas"},Xe={class:"sw-banner-text-text"},Ze={class:"field-body"},et=["innerHTML"],tt={class:"sw-banner-text-text"},ot={class:"field-body"},at=["innerHTML"];function nt(o,a,t,r,s,n){const l=g("DraftsightDLItem");return d(),i("div",null,[e("section",{class:"ds-banner--with-modal ds-banner ds-banner--medium",style:V({backgroundImage:`url(${s.banner_data.background_url})`})},[Pe,e("div",He,[e("div",We,[e("div",$e,[e("div",je,[e("h1",qe,c(n.bannerContent.title),1),e("h2",Ye,c(n.bannerContent.subtitle),1)])])])])],4),e("div",ze,[e("div",Je,[e("div",Ke,[e("ul",Qe,[(d(!0),i(y,null,L(n.filteredDownloads,(m,_)=>(d(),h(l,{key:_,freedl:m,eula:t.eula,ela:t.ela,ela2:t.ela2,closa:r.closa},null,8,["freedl","eula","ela","ela2","closa"]))),128))]),e("div",Xe,[e("div",Ze,[e("h3",null,c(n.bodyContent.title),1),e("div",{innerHTML:n.bodyContent.body},null,8,et)])]),e("div",tt,[e("div",ot,[e("h3",null,c(n.bodybContent.title),1),e("div",{innerHTML:n.bodybContent.body},null,8,at)])])])])])])}const st=p(Be,[["render",nt],["__scopeId","data-v-09f17f15"]]),lt={name:"DraftsightDLapp",components:{DraftsightDL:st},async setup(){const{$swFetcher:o}=v(),{origin:a}=N();try{const t=await o.fetchDraftsightDownloads(a);return{downloads:t[0].data.data,theEULA:t[1].data.data,theELA:t[2].data.data,theELA2:t[3].data.data,theBanner:t[4].data,theBody:t[5].data,theBodyb:t[6].data}}catch(t){throw console.error("DraftsightDLapp Error",t.message),B({statusCode:503,statusMessage:"Unable to fetch the Draftsight Downloads at this time."+er.message})}}};function dt(o,a,t,r,s,n){const l=g("DraftsightDL");return d(),h(l,{downloads1:o.downloads,eula:o.theEULA,ela:o.theELA,ela2:o.theELA2,drupalbanner:o.theBanner,drupalbody:o.theBody,drupalbodyb:o.theBodyb},null,8,["downloads1","eula","ela","ela2","drupalbanner","drupalbody","drupalbodyb"])}const rt=p(lt,[["render",dt]]),it={components:{DraftsightDLapp:rt},setup(){const o=v(),a=H.head.call(this),t="DraftSight Downloads | DraftSight",r=o.$i18n.t("draftsightdl.content.descr");a.title=t,a.meta.push({hid:"description",property:"description",content:r}),a.meta.push({hid:"type",property:"tk:type",content:"content"}),a.meta.push({hid:"name",property:"tk:name",content:"/draftsight/support/draftsight_download"}),a.meta.push({hid:"category",property:"tk:category",content:"support"}),a.meta.push({hid:"sub_category",property:"tk:sub_category",content:"draftsight_download"}),G(a)}};function ct(o,a,t,r,s,n){const l=g("DraftsightDLapp");return d(),i("div",null,[P(l)])}const _t=p(it,[["render",ct],["__scopeId","data-v-faba7366"]]);export{_t as default};