import{_ as C,a5 as w,r as S,o as h,y as V,q as l,v as r,p as i,P as d,x as c,n as E,s as I,ay as T,l as x,bv as k,a0 as D,a1 as L}from"./index.8d733f79.js";const N=t=>(D("data-v-3466d826"),t=t(),L(),t),O=N(()=>r("div",{id:"mapContainer"},null,-1)),b={style:{"margin-top":"10px"}},j=w({name:"ModalMapModal"}),B=Object.assign(j,{emits:["paramsChange"],setup(t,{expose:u,emit:_}){let o=null;const a=S(!1),m={rotate:20,tilt:70,distance:70};function f(e){a.value=!0,T(()=>{g(e)})}function g(e){o=new jsmapplugin.JSMap({container:"mapContainer",mapServerURL:"/loadMap/device",showLoading:!0,viewOptions:e.mapInfo?JSON.parse(e.mapInfo):m,backgroundColor:"#00264c",selectedEffect:!1}),o.on(jsmapplugin.JSEventType.LOAD_COMPLETE,()=>{console.log("\u52A0\u8F7D\u5B8C\u6210")}),o.openMapById(e.fileName.split(".")[0],{modelType:jsmapplugin.JSModelType.GLTF}),o.on(jsmapplugin.JSEventType.CLICK_NODE,n=>{console.log(n)})}function v(){_("paramsChange",o.currentView),s()}function s(){o&&(o.destroy(),o=null),a.value=!1}return u({showModal:f}),(e,n)=>{const p=x,y=k;return h(),V(y,{title:e.$t("modelDefaultView"),modelValue:E(a),"onUpdate:modelValue":n[0]||(n[0]=M=>I(a)?a.value=M:null),width:"800px","align-center":!0,"destroy-on-close":"","append-to-body":"",onClose:s},{footer:l(()=>[r("div",b,[i(p,{onClick:s},{default:l(()=>[d(c(e.$t("cancel")),1)]),_:1}),i(p,{type:"primary",onClick:v},{default:l(()=>[d(c(e.$t("confirm")),1)]),_:1})])]),default:l(()=>[O]),_:1},8,["title","modelValue"])}}}),$=C(B,[["__scopeId","data-v-3466d826"]]);export{$ as default};
