import{p as t,H as e,j as s,c as o,t as n}from"./index2.js";const r=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get host(){return this}gap="auto";componentDidLoad(){this.handleSlotChange()}handleSlotChange(){if(!this.host)return;const t=this.host.querySelectorAll("dds-button");t.forEach(((e,s)=>{e.classList.add("dds-button-group__button"),e.classList.toggle("dds-button-group__button--first",0===s),e.classList.toggle("dds-button-group__button--inner",s>0&&s<t.length-1),e.classList.toggle("dds-button-group__button--last",s===t.length-1)}))}render(){const{gap:t}=this;return s(o,{gap:t,children:s("div",{class:"dds-button-group",role:"group",children:s("slot",{onSlotchange:()=>this.handleSlotChange()},"4542f540b5447910ed1c7ef4dcbf78cf465c06d4")},"1540685e0d65f33e2564861fc0fa29daa8cbb494")},"6267d1fec77251171c427a0e1576ee41a51ca134")}static get style(){return"@layer reset, base, variants, states, sizes;  @layer reset {   :host {     display: contents;     -moz-text-size-adjust: none;     -webkit-text-size-adjust: none;     text-size-adjust: none;     font-family: var(--dds-font-family-sans);     font-feature-settings: var(--dds-font-features-sans);     text-rendering: optimizeLegibility;     -webkit-font-smoothing: antialiased;      *,     *::after,     *::before,     *::backdrop,     *::file-selector-button {       box-sizing: border-box;       margin: 0;       padding: 0;       min-inline-size: 0;       min-block-size: 0;     }      * {       scrollbar-width: thin;       scrollbar-color: color-mix(gray 50%, transparent);     }      *:focus-visible {       z-index: 1;     }      > * {       interpolate-size: allow-keywords;       -webkit-tap-highlight-color: transparent;     }   } } @layer base {   :host .dds-button-group {     display: inline-flex;     flex-wrap: nowrap;     border: none;     cursor: pointer;   } }  @layer gap {    }  @layer reset, base, gap; "}},[769,"dds-button-group",{gap:[1025]}]),a=r,i=function(){"undefined"!=typeof customElements&&["dds-button-group"].forEach((t=>{"dds-button-group"===t&&(customElements.get(n(t))||customElements.define(n(t),r))}))};export{a as DdsButtonGroup,i as defineCustomElement}