import {a}from'./chunk-3FUUGYCW.js';import {ScanditHTMLElement,defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {Color,ScanditIconType}from'@scandit/web-datacapture-core';var e=class e extends ScanditHTMLElement{constructor(){super();this.onRestartButtonClickHandler=this.onRestartButtonClick.bind(this);this.onBackButtonClickHandler=this.onBackButtonClick.bind(this);let t=this.attachShadow({mode:"open"}),n=Color.fromHex("#3D4852").withAlpha(.8),o=20,i=Color.fromHex("#FFFFFF");this.restartButton=a.create(),this.restartButton.backgroundColor=i,this.restartButton.icon=ScanditIconType.Restart,this.restartButton.iconColor=n,this.restartButton.iconSize=o,this.backButton=a.create(),this.backButton.backgroundColor=i,this.backButton.icon=ScanditIconType.ArrowLeft,this.backButton.iconColor=n,this.backButton.iconSize=o,t.append(this.restartButton,this.backButton);}set variant(t){t==="restart"?(this.restartButton.setAttribute("aria-label","Restart"),this.restartButton.hidden=false,this.backButton.hidden=true):(this.backButton.setAttribute("aria-label","Back"),this.restartButton.hidden=true,this.backButton.hidden=false);}connectedCallback(){var t;this.restartButton.addEventListener("click",this.onRestartButtonClickHandler),this.backButton.addEventListener("click",this.onBackButtonClickHandler),this.variant=(t=this.getAttribute("variant"))!=null?t:"restart";}onRestartButtonClick(){this.dispatchEvent(new CustomEvent("restart"));}onBackButtonClick(){this.dispatchEvent(new CustomEvent("back"));}static create(){return document.createElement(e.tag)}static register(){a.register(),defineCustomElements({[e.tag]:e});}};e.tag="scandit-label-card-list-restart-back-button";var c=e;export{c as a};