import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {ScanditIconBuilder,ScanditIconType,Color}from'@scandit/web-datacapture-core';var n=class n extends ScanditHTMLElement{constructor(){super();let t=this.attachShadow({mode:"open"});t.innerHTML=html`
      <button>
        <slot name="icon"></slot>
        <span class="text">
          <slot></slot>
        </span>
      </button>
    `,t.append(n.createStyleElement().cloneNode(true));}async connectedCallback(){let e=await new ScanditIconBuilder().withIcon(ScanditIconType.Keyboard).withIconColor(Color.fromHex("#000")).withWidth(20).withHeight(20).withIconSize(20).build();e.setAttribute("slot","icon"),this.append(e);}set text(t){var o;let e=(o=this.shadowRoot)==null?void 0:o.querySelector(".text");e&&(e.innerHTML=t);}get text(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(".text");return (o=t==null?void 0:t.innerHTML)!=null?o:""}static create(){return document.createElement(n.tag)}static register(){defineCustomElements({[n.tag]:n});}static createStyleElement(){return css`:host{display:inline-block}:host([hidden]){display:none}:host button{align-items:center;border:none;border-radius:1rem;color:#1a1a1a;display:flex;font-size:.875rem;font-weight:700;gap:.25rem;justify-content:center;max-width:290px;min-width:190px;padding:.5rem;text-align:center;width:100%}:host button .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`}};n.tag="scandit-input-manually-button";var i=n;export{i as a};