"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[4850,2342,5087],{4850:function(e,t,i){i.r(t),i.d(t,{default:function(){return k}});var a=i(66252),s=i(3577);const l=e=>((0,a.dD)("data-v-a26df04c"),e=e(),(0,a.Cn)(),e),c={class:"printType"},r=l((()=>(0,a._)("div",{class:"detailText"},"New Print",-1))),n={class:"printContent"},o=["alt"],d=["alt"];function y(e,t,i,l,y,p){const u=(0,a.up)("sketchCategory"),g=(0,a.Q2)("lazy");return(0,a.wg)(),(0,a.iD)("div",c,[r,(0,a._)("div",n,[(0,a._)("div",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.selectList,(t=>((0,a.wg)(),(0,a.iD)("div",{class:"content_img_item",key:t.id},[(0,a._)("div",{class:(0,s.C_)(["content_img_item_block",{active:t?.checked}])},[(0,a.wy)(((0,a.wg)(),(0,a.iD)("img",{key:t.path,alt:t.name},null,8,o)),[[g,t.path]]),(0,a.Wm)(u,{disignTypeList:e.sketchCatecoryList,generateList:e.selectList,item:t,isSpread:!0},null,8,["disignTypeList","generateList","item"])],2)])))),128)),e.selectDetail?.newDetail?.[e.currentDetailType]?((0,a.wg)(!0),(0,a.iD)(a.HY,{key:0},(0,a.Ko)(e.selectDetail.newDetail?.[e.currentDetailType],(t=>((0,a.wg)(),(0,a.iD)("div",{class:"content_img_item",key:t.id},[(0,a._)("div",{class:(0,s.C_)(["content_img_item_block",{active:t?.checked}])},[(0,a.wy)(((0,a.wg)(),(0,a.iD)("img",{key:t.paurlth,alt:t.name},null,8,d)),[[g,t.url]]),(0,a.Wm)(u,{disignTypeList:e.sketchCatecoryList,generateList:e.selectDetail.newDetail?.[e.currentDetailType],item:t,isSpread:!0},null,8,["disignTypeList","generateList","item"])],2)])))),128)):(0,a.kq)("",!0)])])])}var p=i(2262),u=i(33907),g=i(32342),m=(0,a.aZ)({components:{sketchCategory:g["default"]},setup(e,{emit:t}){const i=(0,u.oR)(),s=(0,p.qj)({sketchCatecoryList:(0,a.Fl)((()=>i.state.UserHabit.printType)),selectDetail:(0,a.Fl)((()=>i.state.DesignDetailCopy.selectDetail)),currentDetailType:(0,a.Fl)((()=>i.state.DesignDetailCopy.currentDetailType)),selectList:[]});(0,a.YP)((()=>s.selectDetail?.printObject?.prints),((e,t)=>{s.selectList=e.reduce(((e,t)=>(e.some((e=>e.id===t.id))||e.push(t),e)),[])}),{immediate:!0});const l=(0,p.qj)({}),c=(0,p.qj)({});return{...(0,p.BK)(s),...(0,p.BK)(l),...(0,p.BK)(c)}},provide(){return{}}}),v=i(83744);const _=(0,v.Z)(m,[["render",y],["__scopeId","data-v-a26df04c"]]);var k=_},32342:function(e,t,i){i.r(t),i.d(t,{default:function(){return m}});var a=i(66252),s=i(3577),l=i(49963);const c={class:"operate_file_block"},r={class:"select_img_type"},n=["onClick"];function o(e,t,i,o,d,y){return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",r,[(0,a._)("div",{class:(0,s.C_)(["select_category",e.driverClass.class1]),onClick:t[0]||(t[0]=(0,l.iM)((t=>e.showFileCategory(e.item)),["stop"]))},[(0,a.Uk)((0,s.zw)(e.item.category||e.item?.level2TypeEnum?.value)+" ",1),(0,a.wy)((0,a._)("div",{class:(0,s.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,s.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,s.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,s.zw)(t.name),11,n)))),128))],2)),[[l.F8,e.item.categoryShow]])])])}var d=i(74961),y=i(40835),p=(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",s))},s=()=>{for(let t of e.generateList)t.categoryShow=!1;document.removeEventListener("click",s)},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&&c(e.item),e.driver__&&y.RX.moveNext()},c=e=>{let i={libraryId:[e.id],level2Type:e.categoryValue};d.V.axiosPost(d.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}}}),u=i(83744);const g=(0,u.Z)(p,[["render",o],["__scopeId","data-v-6eb6ad61"]]);var m=g}}]);