/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as p,b as a,c as v}from"./D3ATIXSL.js";import{a as y}from"./G2G6ET3J.js";import b from"./O3OUYCNG.js";import{e as d}from"./O6AHJXOV.js";import"./FELQIA3T.js";import"./ZNBKMZP7.js";import{M as e,N as s,O as n,P as c,U as m,a as o,b as t,x as h}from"./7H4DKXI2.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:w},f,{b:l}])=>{var u=o`:host{width:100%;height:100%}`,g=l(f,{omitProps:["container","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=d(),this._mapRef=e(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0}}static{this.styles=[y,p,u]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${c(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction})}</section>`}};m("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)