UNPKG

@arcgis/map-components

Version:
4 lines 1.32 kB
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. v4.33.13 */ import b from"./MX24TT2G.js";import"./JDUE7Q24.js";import{B as s,E as a,P as r,U as o,j as t}from"./HX57SHRL.js";export default $arcgis.t(([{watch:l},d,{b:h}])=>{var c=t`@layer{arcgis-video{display:block;height:100%;width:100%;.esri-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.arcgisViewReadyChange=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.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}};o("arcgis-video",e);return e},"core/reactiveUtils","views/VideoView",b)