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