"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[3704,2342,5087],{16004:function(e,t,i){i.r(t),i.d(t,{default:function(){return f}});var a=i(66252),l=i(49963);const s=e=>((0,a.dD)("data-v-575ad40e"),e=e(),(0,a.Cn)(),e),c={class:"sketch"},r=s((()=>(0,a._)("div",{class:"detailText"},"Current Sketch",-1))),o={key:0,class:"select_sketch"},n=["src"],d=["title"],p={key:1,class:"select_sketch"},y=s((()=>(0,a._)("div",null,[(0,a._)("i",{class:"fi fi-rr-picture centent"})],-1))),u=[y];function g(e,t,i,s,y,g){const m=(0,a.up)("selectList");return(0,a.wg)(),(0,a.iD)("div",c,[r,e.selectDetail.id?((0,a.wg)(),(0,a.iD)("div",o,[(0,a._)("img",{src:e.selectDetail.sketchString||e.selectDetail.path,alt:""},null,8,n),(0,a._)("i",{title:e.$t("DesignDetail.editSketchTitle"),class:"fi fi-rs-pencil-paintbrush",onClick:t[0]||(t[0]=(0,l.iM)(((...t)=>e.openAddDetail&&e.openAddDetail(...t)),["stop"]))},null,8,d)])):((0,a.wg)(),(0,a.iD)("div",p,u)),(0,a.Wm)(m,{onSelectImgItem:e.selectImgItem,level1Type:"Sketchboard",type:"sketch",catecoryList:e.sketchCatecoryList},null,8,["onSelectImgItem","catecoryList"])])}var m=i(2262),v=i(33907),_=i(92102),h=(0,a.aZ)({components:{selectList:_["default"]},emit:["addDetail"],setup(e,{emit:t}){const i=(0,v.oR)(),l=(0,m.qj)({selectTitle:"current",selectDetail:(0,a.Fl)((()=>i.state.DesignDetailCopy.selectDetail)),sketchCatecoryList:(0,a.Fl)((()=>i.state.Workspace.probjects.positionList)),currentDetailType:(0,a.Fl)((()=>i.state.DesignDetailCopy.currentDetailType))}),s=(0,m.qj)({total:0,pageSize:10,currentPage:1}),c=(0,m.qj)({libraryList:null}),r=()=>{l.selectTitle="current"},o=()=>{l.selectTitle="upload"},n=()=>{l.selectTitle="library",c.libraryList.init()},d=e=>{e?.imgUrl&&(e.url=e.imgUrl);let t={data:e};i.commit("DesignDetailCopy/setNewDetail",t)},p=()=>{t("addDetail")};return{...(0,m.BK)(l),...(0,m.BK)(s),...(0,m.BK)(c),openCurrent:r,openUpload:o,openLibrary:n,selectImgItem:d,openAddDetail:p}},provide(){return{}}}),k=i(83744);const D=(0,k.Z)(h,[["render",g],["__scopeId","data-v-575ad40e"]]);var f=D},32342:function(e,t,i){i.r(t),i.d(t,{default:function(){return m}});var a=i(66252),l=i(3577),s=i(49963);const c={class:"operate_file_block"},r={class:"select_img_type"},o=["onClick"];function n(e,t,i,n,d,p){return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",r,[(0,a._)("div",{class:(0,l.C_)(["select_category",e.driverClass.class1]),onClick:t[0]||(t[0]=(0,s.iM)((t=>e.showFileCategory(e.item)),["stop"]))},[(0,a.Uk)((0,l.zw)(e.item.category||e.item?.level2TypeEnum?.value)+" ",1),(0,a.wy)((0,a._)("div",{class:(0,l.C_)(["icon","iconfont","icon-xiala",e.item.categoryShow?"icon_rotate":""])},null,2),[[s.F8,!e.isSpread]])],2),e.isSpread?(0,a.kq)("",!0):(0,a.wy)(((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,l.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,l.C_)(["category_item",e.item.categoryValue==t.value?"select_category_item":""]),key:i,onClick:(0,s.iM)((i=>e.selectFileCategory(e.item,t)),["stop"])},(0,l.zw)(t.name),11,o)))),128))],2)),[[s.F8,e.item.categoryShow]])])])}var d=i(74961),p=i(40835),y=(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__&&p.RX.moveNext()})),e.isSpread||(t.categoryShow=!0,document.addEventListener("click",l))},l=()=>{for(let t of e.generateList)t.categoryShow=!1;document.removeEventListener("click",l)},s=(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__&&p.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:s}}}),u=i(83744);const g=(0,u.Z)(y,[["render",n],["__scopeId","data-v-6eb6ad61"]]);var m=g}}]);