import{_ as f}from"./index-M_JNBppB.js";/* empty css                  *//* empty css                   *//* empty css                  *//* empty css                   *//* empty css               */import{ax as v,c as y,aA as g,y as x,z as R,F as o,D as a,O as r,K as l}from"./vue-BJk78QHK.js";import m from"./MeshReplace-DYQUF8f-.js";import{j as _,y as E,f as b,I as w}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";/* empty css                 *//* empty css                        *//* empty css                        *//* empty css                  *//* empty css                     *//* empty css                *//* empty css                    */import"./el-tooltip-l0sNRNKZ.js";/* empty css                     *//* empty css                              *//* empty css                  */import"./ImgGroup-CYI3XoVc.js";/* empty css                  *//* empty css                   *//* empty css                    *//* empty css                      *//* empty css               *//* empty css               *//* empty css                       *//* empty css                        */import"./images-bddkrumH.js";import"./typesList-laraQC3c.js";import"./useUploadConfig-CB7Vo708.js";import"./env-Ba1thpgP.js";import"./resource-Dz96LlGH.js";/* empty css                   */import"./DraggableDrawer-DXecI9B-.js";/* empty css                  */const A={style:{display:"flex","flex-direction":"column",padding:"20px",gap:"5px"}},M={class:"w-[100%] flex justify-center p-[5px] m-t-[5px] rounded-[6px] cursor-pointer list-img-bg"},k={__name:"MeshReplaceEvent",props:{meshReplace:{type:Object,required:!0,default:()=>({near:{replace:{type:"replace",groupArray:[]},restore:{type:"restore",groupArray:[]}},leave:{replace:{type:"replace",groupArray:[]},restore:{type:"restore",groupArray:[]}},leaveKeep:!1})},meshReplaceModifiers:{}},emits:["update:meshReplace"],setup(i){const n=v();y(()=>n.state.curComponent.propValue);const t=g(i,"meshReplace");return(B,e)=>{const s=_,u=E,d=b,c=w;return R(),x(c,{style:{"margin-left":"10px"},placement:"left",width:"300",trigger:"click"},{reference:o(()=>[a("div",M,[r(d,{type:"primary",link:"",icon:"Edit"},{default:o(()=>e[10]||(e[10]=[l(" 材质替换/还原 ")])),_:1})])]),default:o(()=>[a("div",A,[e[8]||(e[8]=a("p",{style:{color:"#1e90ff",margin:"0"}}," 靠近时替换与还原材质： ",-1)),r(s,{type:"success"},{default:o(()=>e[4]||(e[4]=[l(" 替换 ")])),_:1}),r(m,{"mesh-replace":t.value.near.replace,"onUpdate:meshReplace":e[0]||(e[0]=p=>t.value.near.replace=p)},null,8,["mesh-replace"]),r(s,{type:"warning",class:"m-t-[5px]"},{default:o(()=>e[5]||(e[5]=[l(" 还原 ")])),_:1}),r(m,{"mesh-replace":t.value.near.restore,"onUpdate:meshReplace":e[1]||(e[1]=p=>t.value.near.restore=p)},null,8,["mesh-replace"]),r(u),e[9]||(e[9]=a("p",{style:{color:"#ff6b6b",margin:"0"}}," 离开时替换与还原材质 ",-1)),r(s,{type:"success"},{default:o(()=>e[6]||(e[6]=[l(" 替换 ")])),_:1}),r(m,{"mesh-replace":t.value.leave.replace,"onUpdate:meshReplace":e[2]||(e[2]=p=>t.value.leave.replace=p)},null,8,["mesh-replace"]),r(s,{type:"warning",class:"m-t-[5px]"},{default:o(()=>e[7]||(e[7]=[l(" 还原 ")])),_:1}),r(m,{"mesh-replace":t.value.leave.restore,"onUpdate:meshReplace":e[3]||(e[3]=p=>t.value.leave.restore=p)},null,8,["mesh-replace"])])]),_:1})}}},fe=f(k,[["__scopeId","data-v-f9070552"]]);export{fe as default};
