"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[4094,2342,5087],{84094:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var i=a(66252),l=a(3577),s=a(49963);const r={class:"uploadList"},o={class:"uploadList_box"},c=["src","alt","onClick"];function n(e,t,a,n,d,p){const y=(0,i.up)("sketchCategory");return(0,i.wg)(),(0,i.iD)("div",r,[(0,i._)("div",o,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.currentList[e.type],(a=>((0,i.wg)(),(0,i.iD)("div",{class:"content_img_item",key:a.id},[(0,i._)("div",{class:(0,l.C_)(["content_img_item_block",{active:a?.checked}])},[((0,i.wg)(),(0,i.iD)("img",{src:a.imgUrl?a.imgUrl:a.url,key:a.imgUrl||a.url,alt:a.name,onClick:(0,s.iM)((t=>e.selectImgItem(a)),["stop"])},null,8,c)),"models"!=e.type?((0,i.wg)(),(0,i.j4)(y,{key:0,disignTypeList:e.catecoryList,"onUpdate:disignTypeList":t[0]||(t[0]=t=>e.catecoryList=t),generateList:e.allBoardData.sketchboardFiles,item:a,isSpread:!0},null,8,["disignTypeList","generateList","item"])):(0,i.kq)("",!0)],2)])))),128))])])}var d=a(2262),p=a(33907),y=a(32342),u=a(47332),g=a(8552),m=(0,i.aZ)({components:{sketchCategory:y["default"]},props:{catecoryList:{type:Object,default:()=>[],required:!0},type:{type:String,default:"",required:!0}},emits:["selectImgItem"],setup(e,{emit:t}){const{t:a}=(0,g.QT)(),l=(0,p.oR)(),s=(0,d.qj)({allBoardData:(0,i.Fl)((()=>l.state.UploadFilesModule.allBoardData)),currentList:{sketch:(0,i.Fl)((()=>l.state.UploadFilesModule.allBoardData.sketchboardFiles)),print:(0,i.Fl)((()=>l.state.UploadFilesModule.allBoardData.printboardFiles)),color:(0,i.Fl)((()=>l.state.UploadFilesModule.allBoardData.colorBoards)),models:(0,i.Fl)((()=>l.state.Workspace.probjects.model))},currentDetailType:(0,i.Fl)((()=>l.state.DesignDetailCopy.currentDetailType))}),r=(0,d.qj)({}),o=a=>{"models"!=e.type&&(a.resData.minIOPath||(a.minIOPath=(0,u.QU)(a.resData.url)),a.designType||(a.designType=a.resData.designType)),t("selectImgItem",a)};return(0,i.bv)((()=>{})),{...(0,d.BK)(s),...(0,d.BK)(r),selectImgItem:o}},provide(){return{}}}),v=a(83744);const _=(0,v.Z)(m,[["render",n],["__scopeId","data-v-7a4923d8"]]);var k=_},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"},o={class:"select_img_type"},c=["onClick"];function n(e,t,a,n,d,p){return(0,i.wg)(),(0,i.iD)("div",r,[(0,i._)("div",o,[(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,c)))),128))],2)),[[s.F8,e.item.categoryShow]])])])}var d=a(74961),p=a(40835),y=(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__&&p.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__&&p.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)(y,[["render",n],["__scopeId","data-v-6eb6ad61"]]);var m=g}}]);