@arcgis/map-components
Version:
ArcGIS Map Components
4 lines • 1.81 kB
JavaScript
/*! 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{E as o,P as l,U as d,k as a}from"./HX57SHRL.js";export default $arcgis.t(([{watch:r}])=>{var n=class extends l{constructor(){super(...arguments),this._disabled=!1,this._playing=!1}static{this.properties={_disabled:16,_playing:16,_isLive:16,viewModel:0,messages:0}}static{this.shadowRootOptions=o}loaded(){this.manager.onLifecycle(()=>[r(()=>[this.viewModel.state,this.viewModel.playing],()=>{let{state:i,playing:e}=this.viewModel;this._disabled=i==="not-ready"||i==="waiting",this._playing=e},{initial:!0}),r(()=>this.viewModel.layer?.isLive,i=>{this._isLive=i??void 0},{initial:!0})])}render(){let{viewModel:i,messages:e,_disabled:t,_playing:s}=this,c=this._isLive,g=a`<calcite-action .active=${s} alignment=center .disabled=${t} .icon=${s?"pause-f":"play-f"} @click=${s?()=>i.pause():()=>i.play()} scale=s .text=${s?e.pause:e.play}></calcite-action>`,p=c?void 0:a`<calcite-action alignment=center .disabled=${t} icon=reverse-f @click=${()=>i.seekBackward()} scale=s .text=${e.reverse}></calcite-action>`,m=c?void 0:a`<calcite-action alignment=center .disabled=${t} icon=forward-f @click=${()=>i.seekForward()} scale=s .text=${e.forward}></calcite-action>`,v=c?void 0:a`<calcite-action alignment=center .disabled=${t} icon=beginning-f @click=${()=>i.seekToBeginning()} scale=s .text=${e.beginning}></calcite-action>`,h=c?void 0:a`<calcite-action alignment=center .disabled=${t} icon=end-f @click=${()=>i.seekToEnding()} scale=s .text=${e.end}></calcite-action>`;return a`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[v,p,g,m,h]}</calcite-action-bar>`}};d("arcgis-video-player-actions-group",n);return n},"core/reactiveUtils")