const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/nc-3d-babylon.DXK9i1XM.js","assets/nc-main.DEgIQeOo.js","assets/service-worker.DGZzV4eE.js","assets/nc-main-DhN4XBCh.css"])))=>i.map(i=>d[i]);
import{i as a}from"./nc-main.DEgIQeOo.js";import{ref as c,inject as l,onMounted as u,watch as m,onUnmounted as s,createElementBlock as h,openBlock as f,normalizeStyle as p}from"/vue.js";import"./service-worker.DGZzV4eE.js";const b=Object.assign({name:"Nc3dObject"},{__name:"nc-3d-object",props:{path:{type:String,default:void 0},height:{type:String,default:"30vh"},renderer:{type:String,default:"babylon"}},setup(d){const o=d,i=c(null);let e;const t=l("state");return t.draw3dTimeout==null?t.draw3dTimeout=500:t.draw3dTimeout=0,u(()=>{setTimeout(()=>{a(()=>import("./nc-3d-babylon.DXK9i1XM.js").then(n=>n.n),__vite__mapDeps([0,1,2,3])).then(n=>{e=n.draw3d,m(()=>o,r=>{e(i,r.path,r.height)},{deep:!0,immediate:!0})})},t.draw3dTimeout)}),s(()=>{e&&e()}),(n,r)=>(f(),h("div",{class:"nc-3d-object",ref_key:"divRef",ref:i,style:p({height:d.height})},null,4))}});export{b as default};
