/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
import b from"./Y4DAIYBP.js";import"./MG6XDMQJ.js";import{B as s,E as a,P as r,U as o,j as t}from"./3VKC6PRK.js";export default $geoscene.t(([{watch:l},d,{b:h}])=>{var c=t`@layer{geoscene-video{display:block;height:100%;width:100%;.geoscene-view{height:100%;width:100%}}}`,n=h(d,{omitProps:["container","navigation","scale","ui"]}),e=class extends r{constructor(){super(),this.autoDestroyDisabled=!1,this.view=n(this),this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.geosceneViewReadyChange=s()}static{this.properties={autoDestroyDisabled:5,view:32,ready:4,layer:0,map:0}}static{this.shadowRootOptions=a}static{this.styles=c}async destroy(){await this.manager.destroy()}load(){let i=this;i.el.childElem=document.createElement("div"),i.el.append(i.el.childElem),this.view.container=i.el.childElem}loaded(){this.manager.onLifecycle(()=>[l(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),l(()=>this.view.ready,()=>{this.view.ready&&this.geosceneViewReadyChange.emit()},{initial:this.view.ready})])}};o("geoscene-video",e);return e},"core/reactiveUtils","views/VideoView",b)