/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
v4.34.7 */
import{a,b as p,c as f}from"./4U3PHNGQ.js";import{a as y}from"./GAMA5POK.js";import b from"./PXNZ6E2J.js";import{e as l}from"./SRDD32D4.js";import"./IMJMO6DB.js";import{H as e,I as s,J as c,K as t,P as m,a as h,b as i,s as n}from"./RNRMSLW5.js";import"./G6QKOIC3.js";export default $arcgis.t(([{watch:v},w,{b:d}])=>{var u=h`:host{width:100%;height:100%}`,g=d(w,{omitProps:["container","navigation","scale","ui"]}),r=class extends c{constructor(){super(),this._containerRef=e(),this._direction=l(),this._mapRef=e(),this.autoDestroyDisabled=!1,this.view=g(this),this.aria=this.view.aria,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.arcgisViewReadyChange=n()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,ready:4,layer:0,map:0}}static{this.styles=[y,f,u]}async destroy(){await this.manager.destroy()}loaded(){let o=this;o.el.childElem=this._mapRef.value,this.view.container??=o.el.childElem,this.manager.onLifecycle(()=>[v(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),v(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return i`<div class=${t(a.base)} ${s(this._mapRef)}></div>`}render(){return i`<section class=${t(a.containerUI)} ${s(this._containerRef)}>${p(this._direction)}</section>${this.renderMain()}`}};m("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)