"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8854],{18854:function(e,t,i){i.r(t),i.d(t,{default:function(){return C}});var l=i(66252),s=i(49963),a=i(3577);const o=e=>((0,l.dD)("data-v-4b855b5e"),e=e(),(0,l.Cn)(),e),n={class:"threeDownPage",ref:"threeDownPage"},r={class:"generalModel_btn"},c=o((()=>(0,l._)("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,l._)("circle",{cx:"23",cy:"23",r:"23",fill:"white","fill-opacity":"0.3"}),(0,l._)("rect",{x:"32.5063",y:"12",width:"3",height:"29",rx:"1.5",transform:"rotate(45 32.5063 12)",fill:"black"}),(0,l._)("rect",{x:"34.6274",y:"32.5059",width:"3",height:"29",rx:"1.5",transform:"rotate(135 34.6274 32.5059)",fill:"black"})],-1))),d=[c],h={style:{display:"flex","flex-direction":"column",height:"100%"}},w=o((()=>(0,l._)("div",{class:"modal_title_text",style:{"text-align":"center"}},[(0,l._)("div",null,"Please select the size of the clothing")],-1))),p={class:"content"},g={class:"downItem"},m={class:"title"},v={class:"keyList"},_=["onClick"],k={style:{width:"100%",display:"flex","margin-top":"auto"}},u={class:"mark_loading"};function D(e,t,i,o,c,D){const f=(0,l.up)("a-spin"),b=(0,l.up)("a-modal");return(0,l.wg)(),(0,l.iD)("div",n,[(0,l.Wm)(b,{class:"generalModel",visible:e.threeDown,"onUpdate:visible":t[2]||(t[2]=t=>e.threeDown=t),footer:null,width:"77rem",height:"35rem",maskClosable:!1,mask:!0,centered:!0,closable:!1,"get-container":()=>e.$refs.threeDownPage,wrapClassName:"#app",keyboard:!1},{default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l._)("div",{class:"generalModel_closeIcon",onClick:t[0]||(t[0]=(0,s.iM)((t=>e.cancelDsign()),["stop"]))},d)]),(0,l._)("div",h,[w,(0,l._)("div",p,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.loadList,((t,i)=>((0,l.wg)(),(0,l.iD)("div",g,[(0,l._)("div",m,(0,a.zw)(i),1),(0,l._)("div",v,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(t,(t=>((0,l.wg)(),(0,l.iD)("div",{class:(0,a.C_)(["item",{active:t==e.select?.size&&i==e.select?.sizeType}]),onClick:l=>e.downloadIamge(t,i)},(0,a.zw)(t),11,_)))),256))])])))),256))]),(0,l._)("div",k,[(0,l._)("div",{class:(0,a.C_)(["gallery_btn",{btnActive:!e.select.sizeType}]),onClick:t[1]||(t[1]=(...t)=>e.setDown&&e.setDown(...t)),style:{width:"13rem","margin-left":"auto"}},"Download",2)])]),(0,l.wy)((0,l._)("div",u,[(0,l.Wm)(f,{size:"large"})],512),[[s.F8,e.isShowMark]])])),_:1},8,["visible","get-container"])],512)}var f=i(2262),b=i(74961),y=i(33907),z=i(8552),x=(0,l.aZ)({components:{},props:{},emits:["submitBrandAdd"],setup(e,{emit:t}){const{t:i}=(0,z.QT)(),l=((0,y.oR)(),(0,f.qj)({threeDown:!1,isShowMark:Object(""),loadList:{aa:[{a:1}],bb:[{a:1}],cc:[{a:1}]},select:{sizeType:"",size:"",threeDSimpleId:-1}})),s=(0,f.qj)({}),a=()=>{l.threeDown=!1,l.select.sizeType="",l.select.size=""},o=e=>{l.isShowMark=!0;let t={threeDSimpleId:e};b.V.axiosPost(b.V.httpUrls.getThreeDSize,{},{params:t}).then((t=>{l.loadList=t.sizeTypeMap,l.isShowMark=!1,l.select.threeDSimpleId=e})).catch((e=>{l.isShowMark=!1}))},n=()=>{l.isShowMark=!0;let e={...l.select},t={params:e};b.V.axiosGet(b.V.httpUrls.downloadZip,t).then((e=>{let t=document.createElement("a");t.href=e,t.download="model.zip",t.click(),URL.revokeObjectURL(t.href),l.isShowMark=!1})).catch((e=>{l.isShowMark=!1}))},r=e=>{l.threeDown=!0,o(e)},c=(e,t)=>{l.select.sizeType=t,l.select.size=e};return{...(0,f.BK)(s),...(0,f.BK)(l),cancelDsign:a,setDown:n,openDown:r,downloadIamge:c}},provide(){return{}}}),M=i(83744);const S=(0,M.Z)(x,[["render",D],["__scopeId","data-v-4b855b5e"]]);var C=S}}]);