import{_ as L,h as B}from"./index-M_JNBppB.js";/* empty css                  *//* empty css                 *//* empty css                  */import{D as U}from"./DraggableDrawer-DXecI9B-.js";import{ax as A,r as p,c as _,ag as N,B as u,z as f,D as e,O as a,F as d,K as y,I as R,u as l,M as P,a7 as S,H as w,k as $}from"./vue-BJk78QHK.js";import j from"./ModelMove-B533oor1.js";import{f as q,L as O,c as W,r as H,q as K}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                    */import"./el-collapse-item-l0sNRNKZ.js";/* empty css                  *//* empty css                     *//* empty css                  *//* empty css                        *//* empty css                *//* empty css                    */import"./el-tooltip-l0sNRNKZ.js";/* empty css                     *//* empty css                              */const G={class:"w-[100%] h-[100%] relative overflow-hidden"},J={class:"w-[100%] h-[100%] absolute top-0"},Q={class:"flex w-[100%] items-center justify-between p-[5px]"},X={class:"flex items-center"},Y={key:0,style:{height:"calc(100% - 50px)"},class:"overflow-auto p-l-[10px] p-r-[10px] w-[100%]"},Z=["onClick"],ee=["onClick"],te=["onClick"],oe={__name:"EditModelMove",setup(le){const x=A(),n=p(""),g=p(!1),z=p(""),m=p(""),r=p(!1);_(()=>x.state.model),_(()=>x.state.curComponent.propValue);const s=_(()=>x.state.curComponent.propValue.modelMove);function C(){r.value=!0}function V(){r.value=!1}function b(){g.value=!0}function v(c,t){z.value=t,n.value=c,m.value=n.value}function F(){if(!m.value&&m.value!==0){K.error("请先选择要删除的行");return}const c=m.value;s.value.splice(c,1)}function D(){s.value.push({id:B(),name:"",groupArray:[],move:!1,mode:"customPath",api:"",httpTime:1e3,requestId:"",apiPosition:{x:0,y:0,z:0},apiRotation:{x:0,y:0,z:0},apiScale:{x:1,y:1,z:1},apiTime:1e3,customPath:[{position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0},scale:{x:1,y:1,z:1},cameraOffset:{x:0,y:5,z:10},animationTime:2e3,remark:""}],loop:!1,flowLine:null,showTrack:!1,color:16753920,trailColor:16777215,speed:.3,trailLength:.2,lineWidth:1,animationTime:1e3,cameraFollowing:!1,options:{color:"blue",arrowColor:"red",speed:.1,arrowLength:.01,lineWidth:1.5,baseAlpha:.4,arrowAlpha:1},css2DFollow:{follow:!1,idList:[]}})}return(c,t)=>{const h=q,E=N("Close"),M=O,T=W,I=H;return f(),u("div",null,[e("div",{onClick:C,class:"w-[100%] flex justify-center p-[5px] m-t-[5px] rounded-[6px] cursor-pointer list-img-bg"},[a(h,{type:"primary",link:"",icon:"Edit",style:{"font-size":"14px"},onClick:C},{default:d(()=>t[1]||(t[1]=[y(" 配置模型动态移动 ")])),_:1})]),a(U,{title:"配置模型动态移动","with-header":!1,modelValue:l(r),"onUpdate:modelValue":t[0]||(t[0]=k=>$(r)?r.value=k:null),modal:!1,"wrapper-closable":!1,direction:"btt","show-close":!1,size:"25%","modal-class":"pointer-none"},{default:d(()=>[e("div",G,[e("div",J,[e("div",Q,[e("div",X,[t[4]||(t[4]=e("span",{class:"m-r-[20px] font-size-[16px] font-bold"}," 配置模型动态移动 ",-1)),e("div",null,[a(h,{type:"primary",size:"small",onClick:D},{default:d(()=>t[2]||(t[2]=[y(" 添加 ")])),_:1}),a(h,{type:"danger",size:"small",onClick:F},{default:d(()=>t[3]||(t[3]=[y(" 删除 ")])),_:1})])]),t[5]||(t[5]=e("div",{class:"flex items-center"},null,-1)),a(M,{onClick:V,class:"c-red font-size-[20px] cursor-pointer"},{default:d(()=>[a(E)]),_:1})]),l(s).length>0?(f(),u("div",Y,[e("table",{class:"w-[100%]",onDblclick:b},[e("tbody",null,[t[6]||(t[6]=e("tr",{style:{color:"#66b1ff",height:"40px","font-size":"10px"}},[e("th",{style:{"min-width":"180px"}}," 名称 "),e("th",{style:{"min-width":"160px"}}," 摄像头跟随 "),e("th",{style:{"min-width":"120px"}}," 配置 ")],-1)),(f(!0),u(P,null,S(l(s),(k,o)=>(f(),u("tr",{key:o},[e("td",{style:{width:"180px"},class:w({selected:l(n)===o}),onClick:i=>v(o,"")},[a(T,{modelValue:l(s)[o].name,"onUpdate:modelValue":i=>l(s)[o].name=i,style:{width:"100%"},size:"small"},null,8,["modelValue","onUpdate:modelValue"])],10,Z),e("td",{style:{width:"130px"},class:w({selected:l(n)===o}),onClick:i=>v(o,"")},[a(I,{modelValue:l(s)[o].cameraFollowing,"onUpdate:modelValue":i=>l(s)[o].cameraFollowing=i},null,8,["modelValue","onUpdate:modelValue"])],10,ee),e("td",{style:{width:"160px"},class:w({selected:l(n)===o}),onClick:i=>v(o,"")},[a(j,{transform:l(s)[o],index:o},null,8,["transform","index"])],10,te)]))),128))])],32)])):R("",!0)])])]),_:1},8,["modelValue"])])}}},Me=L(oe,[["__scopeId","data-v-2c469746"]]);export{Me as default};
