/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{e as m}from"./EH5576ZY.js";import"./7QZVR2UR.js";import"./ZNBKMZP7.js";import{O as g,U as p,b as t}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:v}])=>{var n=class extends g{constructor(){super(...arguments),this._direction=m(),this._disabled=!1,this._playing=!1}static{this.properties={_disabled:16,_playing:16,_isLive:16,viewModel:0,messages:0,inline:7}}loaded(){this.manager.onLifecycle(()=>[v(()=>[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}),v(()=>this.viewModel.layer?.isLive,i=>{this._isLive=i??void 0},{initial:!0})])}render(){let{viewModel:i,messages:e,_disabled:a,_playing:c}=this,s=this._isLive,h=this._direction==="rtl",l=t`<calcite-action .active=${c} alignment=center .disabled=${a} .icon=${c?"pause-f":"play-f"} @click=${c?()=>i.pause():()=>i.play()} scale=s .text=${c?e.pause:e.play}></calcite-action>`,$=s?void 0:t`<calcite-action alignment=center .disabled=${a} icon=reverse-f @click=${()=>i.seekBackward()} scale=s .text=${e.reverse}></calcite-action>`,y=s?void 0:t`<calcite-action alignment=center .disabled=${a} icon=forward-f @click=${()=>i.seekForward()} scale=s .text=${e.forward}></calcite-action>`,o=s?void 0:t`<calcite-action alignment=center .disabled=${a} icon=beginning-f @click=${()=>i.seekToBeginning()} scale=s .text=${e.beginning}></calcite-action>`,r=s?void 0:t`<calcite-action alignment=center .disabled=${a} icon=end-f @click=${()=>i.seekToEnding()} scale=s .text=${e.end}></calcite-action>`,d=this.inline?[o,l,r]:[o,$,l,y,r];return h&&d.reverse(),t`<calcite-action-bar expand-disabled layout=horizontal scale=s>${d}</calcite-action-bar>`}};p("arcgis-video-player-actions-group",n);return n},"core/reactiveUtils")