/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{loadCalciteComponents as e}from"../../support/componentsUtils.js";import{tsx as n}from"../../support/widget.js";import{css as i}from"../css.js";const t=()=>e({action:()=>import("@esri/calcite-components/dist/components/calcite-action"),"action-bar":()=>import("@esri/calcite-components/dist/components/calcite-action-bar")});function c({viewModel:e,messages:t}){const{state:c,playing:a,layer:l}=e,o=!!l?.isLive,s="not-ready"===c||"waiting"===c,r=a?t.pause:t.play,d=n("calcite-action",{active:a,alignment:"center",bind:e,disabled:s,icon:a?"pause-f":"play-f",key:"play",scale:"s",text:r,title:r,onclick:a?e.pause:e.play}),p=t.reverse,m=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"reverse-f",key:"reverse",scale:"s",text:p,title:p,onclick:e.seekBackward}),g=t.forward,b=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"forward-f",key:"forward",scale:"s",text:g,title:g,onclick:e.seekForward}),k=t.beginning,y=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"beginning-f",key:"beginning",scale:"s",text:k,title:k,onclick:e.seekToBeginning}),f=t.end,u=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"end-f",key:"end",scale:"s",text:f,title:f,onclick:e.seekToEnding});return n("calcite-action-bar",{class:i.playerActions,expandDisabled:!0,layout:"horizontal",scale:"s"},[y,m,d,b,u])}export{c as PlayerActionsGroup,t as loadPlayerActionsGroupComponents};
