import{_ as E,j as h,h as w}from"./index-M_JNBppB.js";/* empty css                     *//* empty css               *//* empty css                  *//* empty css                     *//* empty css                  *//* empty css                  */import{D as N}from"./DraggableDrawer-DXecI9B-.js";import{ax as k,c as p,r as c,B as m,z as d,O as l,F as a,K as B,D as u,M as I,a7 as L,y as A}from"./vue-BJk78QHK.js";import{f as F,a as j,b as z,d as O,e as M}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";/* empty css                  *//* empty css                   */const U={style:{height:"auto",width:"100%",overflow:"auto","margin-top":"20px",padding:"5px"}},K={__name:"Css2dEvent",props:{groupName:{type:String,default:""},event:{type:Object,default:()=>({eventList:[{eventName:"",css2d:[]}],groupName:null,meshArray:[]})}},setup(n){const f=n,r=k();p(()=>r.state.modelMaterialList);const v=p(()=>r.state.curComponent.propValue),_=p(()=>r.state.curComponent.propValue.css2D),i=c(0),s=c(!1);function y(){s.value=!0,b();const o=f.event.eventList.findIndex(e=>e.eventName==="触发CSS2D");i.value=o!==-1?o:0}function D(){s.value=!1}function b(){const o=v.value.css2D;Array.isArray(o)&&h(o,e=>{e!=null&&e.id||(e.id=w())})}return(o,e)=>{const x=F,S=M,g=O,C=z,V=j;return d(),m("div",null,[l(x,{type:"primary",link:"",icon:"el-icon-thumb",style:{"font-size":"14px"},onClick:y},{default:a(()=>e[2]||(e[2]=[B(" 触发CSS2D ")])),_:1}),l(N,{title:"触发CSS2D",modelValue:s.value,"onUpdate:modelValue":e[1]||(e[1]=t=>s.value=t),modal:!1,"wrapper-closable":!1,direction:"ltr","before-close":D,size:"320px","modal-class":"pointer-none"},{header:a(()=>e[3]||(e[3]=[u("div",{style:{display:"flex","justify-content":"center"}},[u("span",{style:{color:"#fff"}},"触发CSS2D")],-1)])),default:a(()=>[u("div",U,[l(V,{class:"more-form","label-position":"left","label-width":"100px"},{default:a(()=>[l(C,{label:"触发CSS2D:"},{default:a(()=>[l(g,{modelValue:n.event.eventList[i.value].css2d,"onUpdate:modelValue":e[0]||(e[0]=t=>n.event.eventList[i.value].css2d=t),multiple:"",placeholder:"请选择"},{default:a(()=>[(d(!0),m(I,null,L(_.value,t=>(d(),A(S,{key:t.id,label:t.label?t.label:t.id,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},oe=E(K,[["__scopeId","data-v-3a26c7c3"]]);export{oe as default};
