"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8264,2342,5087],{28106:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var i=a(66252);const l=e=>((0,i.dD)("data-v-3bd2ae4d"),e=e(),(0,i.Cn)(),e),s={class:"sketch"},r=l((()=>(0,i._)("div",{class:"detailText"},"Current Model",-1))),c={class:"select_sketch"},o=["src"];function n(e,t,a,l,n,d){const y=(0,i.up)("selectList");return(0,i.wg)(),(0,i.iD)("div",s,[r,(0,i._)("div",c,[(0,i._)("img",{src:e.frontBack.body.path||e.selectDetail.path,alt:""},null,8,o)]),(0,i.Wm)(y,{onSelectImgItem:e.selectImgItem,isUpload:!1,level1Type:"Models",type:"models",catecoryList:e.sketchCatecoryList},null,8,["onSelectImgItem","catecoryList"])])}var d=a(2262),y=a(33907),p=a(92102),u=(0,i.aZ)({components:{selectList:p["default"]},emit:["addDetail"],setup(e,{emit:t}){const a=(0,y.oR)(),l=(0,d.qj)({selectTitle:"current",frontBack:(0,i.Fl)((()=>a.state.DesignDetailCopy.frontBack)),designDetail:(0,i.Fl)((()=>a.state.DesignDetailCopy.designDetail)),selectDetail:(0,i.Fl)((()=>a.state.DesignDetailCopy.selectDetail)),sketchCatecoryList:(0,i.Fl)((()=>a.state.UserHabit.sex.value)),currentDetailType:(0,i.Fl)((()=>a.state.DesignDetailCopy.currentDetailType))}),s=(0,d.qj)({total:0,pageSize:10,currentPage:1}),r=(0,d.qj)({libraryList:null}),c=()=>{l.selectTitle="current"},o=()=>{l.selectTitle="upload"},n=()=>{l.selectTitle="library",r.libraryList.init()},p=e=>{e.presignedUrl&&(e.url=e.presignedUrl);let t={data:e};a.commit("DesignDetailCopy/setNewDetail",t)},u=()=>{t("addDetail")};return{...(0,d.BK)(l),...(0,d.BK)(s),...(0,d.BK)(r),openCurrent:c,openUpload:o,openLibrary:n,selectImgItem:p,openAddDetail:u}},provide(){return{}}}),g=a(83744);const m=(0,g.Z)(u,[["render",n],["__scopeId","data-v-3bd2ae4d"]]);var v=m},32342:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var i=a(66252),l=a(3577),s=a(49963);const r={class:"operate_file_block"},c={class:"select_img_type"},o=["onClick"];function n(e,t,a,n,d,y){return(0,i.wg)(),(0,i.iD)("div",r,[(0,i._)("div",c,[(0,i._)("div",{class:(0,l.C_)(["select_category",e.driverClass.class1]),onClick:t[0]||(t[0]=(0,s.iM)((t=>e.showFileCategory(e.item)),["stop"]))},[(0,i.Uk)((0,l.zw)(e.item.category||e.item?.level2TypeEnum?.value)+" ",1),(0,i.wy)((0,i._)("div",{class:(0,l.C_)(["icon","iconfont","icon-xiala",e.item.categoryShow?"icon_rotate":""])},null,2),[[s.F8,!e.isSpread]])],2),e.isSpread?(0,i.kq)("",!0):(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,l.C_)(["category_list",[e.driver__?"showEvents":"",e.driverClass.class2]])},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.disignTypeList,((t,a)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,l.C_)(["category_item",e.item.categoryValue==t.value?"select_category_item":""]),key:a,onClick:(0,s.iM)((a=>e.selectFileCategory(e.item,t)),["stop"])},(0,l.zw)(t.name),11,o)))),128))],2)),[[s.F8,e.item.categoryShow]])])])}var d=a(74961),y=a(40835),p=(0,i.aZ)({name:"filterComponent",emits:["upTypeSucced"],props:{disignTypeList:{type:Object,default:{}},item:{type:Object},generateList:{type:Array},isSetSketchCategory:{type:Boolean,default:!1},isSpread:{type:Boolean,default:!1},driver__:{type:Boolean,default:!1},driverClass:{type:Object,default:{class1:"",class2:""}}},setup(e,{emit:t}){let a=t=>{(0,i.Y3)().then((()=>{e.driver__&&y.RX.moveNext()})),e.isSpread||(t.categoryShow=!0,document.addEventListener("click",l))},l=()=>{for(let t of e.generateList)t.categoryShow=!1;document.removeEventListener("click",l)},s=(t,a)=>{for(let i of e.generateList)i.categoryShow=!1;t.level2Type=a.value,t.categoryValue=a.value,t.category=a.name,e.isSetSketchCategory&&r(e.item),e.driver__&&y.RX.moveNext()},r=e=>{let a={libraryId:[e.id],level2Type:e.categoryValue};d.V.axiosPost(d.V.httpUrls.setSketchLibrary,a).then((e=>{t("upTypeSucced")})).catch((e=>{}))};return(0,i.bv)((()=>{e.item.category||e.disignTypeList.forEach((t=>{t.value==e.item.level2Type&&(e.item.category=t.name,e.item.categoryValue=t.value)}))})),{showFileCategory:a,selectFileCategory:s}}}),u=a(83744);const g=(0,u.Z)(p,[["render",n],["__scopeId","data-v-6eb6ad61"]]);var m=g}}]);