import{_ as E}from"./index-M_JNBppB.js";/* empty css                  *//* empty css                   *//* empty css                  *//* empty css                   */import{ax as V,c as b,aA as k,y as m,z as l,F as a,D as n,O as r,u as s,B as p,M as u,a7 as d,K as B}from"./vue-BJk78QHK.js";import{d as f,e as c,y as w,f as P,I as M}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const N={style:{display:"flex","flex-direction":"column",padding:"20px"}},O={class:"w-[100%] flex justify-center p-[5px] m-t-[5px] rounded-[6px] cursor-pointer list-img-bg"},j={__name:"EnvironmentPresetEvent",props:{environment:{type:Object,required:!0,default:()=>({near:{show:!1,name:""},leave:{show:!1,name:""}})},environmentModifiers:{}},emits:["update:environment"],setup(v){const _=V(),i=b(()=>_.state.curComponent.propValue),o=k(v,"environment");return(C,t)=>{const x=w,y=P,g=M;return l(),m(g,{style:{"margin-left":"10px"},placement:"left",width:"300",trigger:"click"},{reference:a(()=>[n("div",O,[r(y,{type:"primary",link:"",icon:"Edit"},{default:a(()=>t[4]||(t[4]=[B(" 使用环境预设 ")])),_:1})])]),default:a(()=>[n("div",N,[t[2]||(t[2]=n("p",{style:{color:"#1e90ff",margin:"0"}}," 靠近时使用环境预设： ",-1)),r(s(f),{modelValue:o.value.near.name,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value.near.name=e),style:{"margin-top":"10px"},placeholder:"请选择环境预设",teleported:!1},{default:a(()=>[(l(!0),p(u,null,d(i.value.scenePresets,e=>(l(),m(s(c),{key:e.name,value:e.name,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),r(x),t[3]||(t[3]=n("p",{style:{color:"#ff6b6b",margin:"0"}}," 离开时使用环境预设： ",-1)),r(s(f),{modelValue:o.value.leave.name,"onUpdate:modelValue":t[1]||(t[1]=e=>o.value.leave.name=e),style:{"margin-top":"10px"},placeholder:"请选择环境预设",teleported:!1},{default:a(()=>[(l(!0),p(u,null,d(i.value.scenePresets,e=>(l(),m(s(c),{key:e.name,value:e.name,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})}}},T=E(j,[["__scopeId","data-v-5d797a83"]]);export{T as default};
