import{_ as j,g as z}from"./index-M_JNBppB.js";/* empty css                  */import{r as F,ax as O,c as p,B as d,I as u,u as t,z as i,D as C,W as c,O as T,y as q,J as A}from"./vue-BJk78QHK.js";import{f as I}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const N={class:"content-w"},X={key:0},Y={__name:"Dialog",props:{visible:Boolean,data:Object,position:{type:Object,default:()=>({x:0,y:0})},popupData:{type:Object,default:()=>({id:1,position:{lon:"",lat:"",gc:""},image:"/image/tipt.gif",scale:1,width:50,height:50,show:!0,label:`广告牌${new Date().getTime()}`,fontSize:16,fontColor:"rgba(255, 0, 0, 1)",fontFamily:"AlimamaDongFangDaKai",component:{borderColor:"#38e1ff",borderShadowColor:"#29baf1",backGround:"rgba(51, 100, 98, 1)",lineColor:"#38e1ff",componentId:"",componentValue:{},componentVisit:!0},positionType:""})}},emits:["close"],setup(f,{emit:w}){const r=f,$=w;F("");const D=O();p(()=>D.state.senceCss2D);const o=p(()=>{var n;return(n=r.popupData)==null?void 0:n.component}),l=p(()=>{var n;return(n=r.popupData)==null?void 0:n.positionType}),k=p(()=>{var a,s;const n=((s=(a=o.value)==null?void 0:a.componentValue)==null?void 0:s.style)||{},m=n.width||0,e=n.height||0;return{position:"absolute",left:l.value=="move"?`${r.position.x}px`:"50%",top:l.value=="move"?`${r.position.y}px`:"50%",transform:l.value=="move"?"none":"translate(-50%, -50%)",width:`${m+40}px`,height:`${e+60}px`}});function S(){$("close")}function B(n){const e=z(n,[],"");return delete e.perspective,delete e.rotateX,delete e.rotateY,delete e.rotateZ,delete e.translateZ,delete e.translateX,delete e.translateY,delete e.scaleZ,delete e.scaleX,delete e.scaleY,delete e.transform,delete e["transform-origin"],delete e["transform-style"],delete e.top,delete e.left,e.position="relative",e}return(n,m)=>{var a,s,y,h,g,v,b,x,V,_;const e=I;return f.visible&&((a=t(o))!=null&&a.componentValue)?(i(),d("div",{key:0,class:"popup-container",style:c(t(k))},[t(l)=="move"?(i(),d("div",{key:0,class:"pine",style:c(`--pine-color: ${t(o).borderColor};`)},null,4)):u("",!0),C("div",{class:"box-wrap",style:c({width:`${(((h=(y=(s=t(o))==null?void 0:s.componentValue)==null?void 0:y.style)==null?void 0:h.width)||0)+40}px`,height:`${(((b=(v=(g=t(o))==null?void 0:g.componentValue)==null?void 0:v.style)==null?void 0:b.height)||0)+40}px`,top:t(l)=="move"?`${-(((_=(V=(x=t(o))==null?void 0:x.componentValue)==null?void 0:V.style)==null?void 0:_.height)||0)+60}px`:0,left:t(l)=="move"?"60px":0,border:`1px solid ${t(o).borderColor}`,"box-shadow":`0 0 10px 2px ${t(o).borderShadowColor}`,"background-color":`${t(o).backGround}`})},[T(e,{type:"primary",link:"",icon:"CircleCloseFilled",class:"close",style:{"font-size":"26px","z-index":"99"},onClick:S}),C("div",N,[t(o).componentValue?(i(),d("div",X,[(i(),q(A(t(o).componentValue.component),{id:`component2D${t(o).componentValue.id}`,class:"component",style:c(B(t(o).componentValue.style)),"prop-value":t(o).componentValue.propValue,element:t(o).componentValue,request:t(o).componentValue.request},null,8,["id","style","prop-value","element","request"]))])):u("",!0)])],4)],4)):u("",!0)}}},L=j(Y,[["__scopeId","data-v-20f49fd1"]]);export{L as default};
