"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[2167,2342,5087],{85772:function(e,t,i){i.r(t),i.d(t,{default:function(){return D}});var a=i(66252),r=i(3577);const l=e=>((0,a.dD)("data-v-5e37c872"),e=e(),(0,a.Cn)(),e),s={class:"print"},n=l((()=>(0,a._)("div",{class:"detailText"},"Current Print",-1))),c={class:"select_print"},o=["onClick","src"],p={key:0},y=l((()=>(0,a._)("i",{class:"fi fi-rr-picture centent"},null,-1))),u=[y];function d(e,t,i,l,y,d){const m=(0,a.up)("selectList");return(0,a.wg)(),(0,a.iD)("div",s,[n,(0,a._)("div",c,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.printList,(t=>((0,a.wg)(),(0,a.iD)("img",{class:(0,r.C_)({active:1==e.printList.length}),onClick:i=>e.addElement(t),src:t.path,alt:""},null,10,o)))),256)),0==e.printList.length?((0,a.wg)(),(0,a.iD)("div",p,u)):(0,a.kq)("",!0)]),(0,a.Wm)(m,{onSelectImgItem:e.selectImgItem,level1Type:"Printboard",type:"print",catecoryList:e.printCatecoryList},null,8,["onSelectImgItem","catecoryList"])])}var m=i(2262),g=i(33907),v=i(92102),C=(0,a.aZ)({components:{selectList:v["default"]},setup(e,{emit:t}){const i=(0,g.oR)(),r=(0,m.qj)({selectTitle:"current",selectDetail:(0,a.Fl)((()=>i.state.DesignDetailCopy.selectDetail)),printCatecoryList:(0,a.Fl)((()=>i.state.UserHabit.printType)),printList:[],currentDetailType:(0,a.Fl)((()=>i.state.DesignDetailCopy.currentDetailType))});(0,a.YP)((()=>r?.selectDetail?.printObject?.prints),((e,t)=>{e&&(r.printList=e.reduce(((e,t)=>(e.some((e=>e.minIOPath===t.minIOPath))||e.push(t),e)),[]))}),{immediate:!0});const l=(0,m.qj)({total:0,pageSize:10,currentPage:1}),s=(0,m.qj)({libraryList:null}),n=()=>{r.selectTitle="current"},c=()=>{r.selectTitle="upload"},o=()=>{r.selectTitle="library",s.libraryList.init()},p=e=>{let t={designType:e.designType,level2Type:e.level2Type,minIOPath:e.minIOPath,url:e.path};i.commit("DesignDetailCopy/setCurrentPrintElement",t)},y=e=>{let t={data:e};"print"!=r.currentDetailType&&"element"!=r.currentDetailType?i.commit("DesignDetailCopy/setNewDetail",t):i.commit("DesignDetailCopy/setCurrentPrintElement",e)};return{...(0,m.BK)(r),...(0,m.BK)(l),...(0,m.BK)(s),openCurrent:n,openUpload:c,openLibrary:o,selectImgItem:y,addElement:p}},provide(){return{}}}),_=i(83744);const h=(0,_.Z)(C,[["render",d],["__scopeId","data-v-5e37c872"]]);var D=h},32342:function(e,t,i){i.r(t),i.d(t,{default:function(){return g}});var a=i(66252),r=i(3577),l=i(49963);const s={class:"operate_file_block"},n={class:"select_img_type"},c=["onClick"];function o(e,t,i,o,p,y){return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",n,[(0,a._)("div",{class:(0,r.C_)(["select_category",e.driverClass.class1]),onClick:t[0]||(t[0]=(0,l.iM)((t=>e.showFileCategory(e.item)),["stop"]))},[(0,a.Uk)((0,r.zw)(e.item.category||e.item?.level2TypeEnum?.value)+" ",1),(0,a.wy)((0,a._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",e.item.categoryShow?"icon_rotate":""])},null,2),[[l.F8,!e.isSpread]])],2),e.isSpread?(0,a.kq)("",!0):(0,a.wy)(((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,r.C_)(["category_list",[e.driver__?"showEvents":"",e.driverClass.class2]])},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.disignTypeList,((t,i)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,r.C_)(["category_item",e.item.categoryValue==t.value?"select_category_item":""]),key:i,onClick:(0,l.iM)((i=>e.selectFileCategory(e.item,t)),["stop"])},(0,r.zw)(t.name),11,c)))),128))],2)),[[l.F8,e.item.categoryShow]])])])}var p=i(74961),y=i(40835),u=(0,a.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 i=t=>{(0,a.Y3)().then((()=>{e.driver__&&y.RX.moveNext()})),e.isSpread||(t.categoryShow=!0,document.addEventListener("click",r))},r=()=>{for(let t of e.generateList)t.categoryShow=!1;document.removeEventListener("click",r)},l=(t,i)=>{for(let a of e.generateList)a.categoryShow=!1;t.level2Type=i.value,t.categoryValue=i.value,t.category=i.name,e.isSetSketchCategory&&s(e.item),e.driver__&&y.RX.moveNext()},s=e=>{let i={libraryId:[e.id],level2Type:e.categoryValue};p.V.axiosPost(p.V.httpUrls.setSketchLibrary,i).then((e=>{t("upTypeSucced")})).catch((e=>{}))};return(0,a.bv)((()=>{e.item.category||e.disignTypeList.forEach((t=>{t.value==e.item.level2Type&&(e.item.category=t.name,e.item.categoryValue=t.value)}))})),{showFileCategory:i,selectFileCategory:l}}}),d=i(83744);const m=(0,d.Z)(u,[["render",o],["__scopeId","data-v-6eb6ad61"]]);var g=m}}]);