/* COPYRIGHT Esri - https://js.arcgis.com/5.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",onclick:a?e.pause:e.play,scale:"s",text:r,title:r}),p=t.reverse,m=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"reverse-f",key:"reverse",onclick:e.seekBackward,scale:"s",text:p,title:p}),g=t.forward,b=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"forward-f",key:"forward",onclick:e.seekForward,scale:"s",text:g,title:g}),k=t.beginning,y=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"beginning-f",key:"beginning",onclick:e.seekToBeginning,scale:"s",text:k,title:k}),f=t.end,u=o?null:n("calcite-action",{alignment:"center",bind:e,disabled:s,icon:"end-f",key:"end",onclick:e.seekToEnding,scale:"s",text:f,title:f});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};
