"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[6211,365],{72512:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var i=a(66252),c=a(3577),o=a(49963);const r={class:"operate_file_block"},s={class:"select_img_type"},l=["onClick"];function n(e,t,a,n,y,d){return(0,i.wg)(),(0,i.iD)("div",r,[(0,i._)("div",s,[(0,i._)("div",{class:(0,c.C_)(["select_category",e.driverClass.class1]),onClick:t[0]||(t[0]=(0,o.iM)((t=>e.showFileCategory(e.item)),["stop"]))},[(0,i.Uk)((0,c.zw)(e.item.category)+" ",1),(0,i._)("div",{class:(0,c.C_)(["icon","iconfont","icon-xiala",e.item.categoryShow?"icon_rotate":""])},null,2)],2),(0,i.wy)((0,i._)("div",{class:(0,c.C_)(["category_list",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,c.C_)(["category_item",e.item.categoryValue==t.value?"select_category_item":""]),key:a,onClick:a=>e.selectFileCategory(e.item,t)},(0,c.zw)(t.name),11,l)))),128))],2),[[o.F8,e.item.categoryShow]])])])}var y=a(74961),d=a(4272),g=(0,i.aZ)({name:"filterComponent",emits:["upTypeSucced"],props:{disignTypeList:{type:Object},item:{type:Object},generateList:{type:Array},isSetSketchCategory:{type:Boolean,default:!1},driver__:{type:Boolean,default:!1},driverClass:{type:Object,default:{class1:"",class2:""}}},setup(e,{emit:t}){let a=t=>{t.categoryShow=!0,(0,i.Y3)().then((()=>{e.driver__&&d.RX.moveNext()})),document.addEventListener("click",c)},c=()=>{for(let t of e.generateList)t.categoryShow=!1;document.removeEventListener("click",c)},o=(t,a)=>{for(let i of e.generateList)i.categoryShow=!1;t.categoryValue=a.value,t.category=a.name,e.isSetSketchCategory&&r(e.item),e.driver__&&d.RX.moveNext()},r=e=>{let a={libraryId:[e.id],level2Type:e.categoryValue};y.V.axiosPost(y.V.httpUrls.setSketchLibrary,a).then((e=>{t("upTypeSucced")})).catch((e=>{}))};return{showFileCategory:a,selectFileCategory:o}}}),u=a(83744);const _=(0,u.Z)(g,[["render",n],["__scopeId","data-v-1226d2ff"]]);var p=_}}]);