import {Color}from'@scandit/web-datacapture-core';import {html}from'@scandit/web-datacapture-core/build/js/private/utils/html.js';import {css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var x=".container",u=".icon-text",m=".text";function f(){return html`<div class="container">
    <div class="icon-text">
      <slot name="barcode-icon"></slot>
      <div class="text">Text</div>
    </div>
  </div>`}function g(){return css`:host{--background-color:#0000;--text-color:#000;--top-left-corner-radius:0px;--top-right-corner-radius:0px;--bottom-left-corner-radius:0px;--bottom-right-corner-radius:0px;--text-size:16px}.container{align-items:center;background-color:var(--background-color);border-radius:var(--top-left-corner-radius) var(--top-right-corner-radius) var(--bottom-right-corner-radius) var(--bottom-left-corner-radius);display:flex;flex-direction:row;justify-content:center;overflow:hidden;padding:.75rem;transition:.3s ease}.container.highlighted{opacity:.75}.icon-text{align-items:center;display:flex;gap:.5rem}.text{color:var(--text-color);font-size:var(--text-size);font-weight:600;width:100%}`}var c="[slot='barcode-icon']";function a(e){var t,o;return (o=(t=e.shadowRoot)==null?void 0:t.querySelector(c))==null?void 0:o.assignedElements()[0]}function T(e,t){let o=a(e);o!==t&&(o&&t==null&&o.remove(),t&&(t.slot="barcode-icon",e.append(t)));}function S(e,t){let o=e.style.getPropertyValue("--background-color");return o===""?t:Color.fromHex(o)}function E(e,t){e.style.setProperty("--background-color",`#${t.toJSON()}`);}function y(e,t){let o=e.style.getPropertyValue("--text-color");return o===""?t:Color.fromHex(o)}function C(e,t){e.style.setProperty("--text-color",`#${t.toJSON()}`);}function v(e){return Number.parseFloat(e.style.getPropertyValue("--text-size"))}function b(e,t){e.style.setProperty("--text-size",`${t}px`);}function L(e){var t;return (t=e.textContent)!=null?t:""}function H(e,t){e.textContent=t;}export{x as a,u as b,m as c,f as d,g as e,a as f,T as g,S as h,E as i,y as j,C as k,v as l,b as m,L as n,H as o};