"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[5087,2342],{32342:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var i=a(66252),r=a(3577),o=a(49963);const l={class:"operate_file_block"},s={class:"select_img_type"},c=["onClick"];function n(e,t,a,n,y,d){return(0,i.wg)(),(0,i.iD)("div",l,[(0,i._)("div",s,[(0,i._)("div",{class:(0,r.C_)(["select_category",e.driverClass.class1]),onClick:t[0]||(t[0]=(0,o.iM)((t=>e.showFileCategory(e.item)),["stop"]))},[(0,i.Uk)((0,r.zw)(e.item.category||e.item?.level2TypeEnum?.value)+" ",1),(0,i.wy)((0,i._)("div",{class:(0,r.C_)(["icon","iconfont","icon-xiala",e.item.categoryShow?"icon_rotate":""])},null,2),[[o.F8,!e.isSpread]])],2),e.isSpread?(0,i.kq)("",!0):(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,r.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,r.C_)(["category_item",e.item.categoryValue==t.value?"select_category_item":""]),key:a,onClick:(0,o.iM)((a=>e.selectFileCategory(e.item,t)),["stop"])},(0,r.zw)(t.name),11,c)))),128))],2)),[[o.F8,e.item.categoryShow]])])])}var y=a(74961),d=a(40835),u=(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__&&d.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)},o=(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&&l(e.item),e.driver__&&d.RX.moveNext()},l=e=>{let a={libraryId:[e.id],level2Type:e.categoryValue};y.V.axiosPost(y.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:o}}}),p=a(83744);const g=(0,p.Z)(u,[["render",n],["__scopeId","data-v-6eb6ad61"]]);var v=g}}]);