import{r as t,h as e}from"./p-0d5a2e05.js";const s=class{constructor(e){t(this,e);this.value=0;this.onColor=false;this.size="md";this.items=[{label:"Item 1",content:"Content 1"},{label:"Item 2",content:"Content 2"},{label:"Item 3",content:"Content 3"}];this.onChange=()=>{};this.selected=this.value;this.handleSelect=t=>{this.selected=t;this.onChange(t)}}render(){return e("div",{key:"7007dbc0f059caf862c107e224c54b34fc308985",class:"content-switcher"},e("div",{key:"dbdf8d3c0ff2b11f7e4ef95c987dcb52ed5b9354",class:"content-switcher__items"},this.items.map(((t,s)=>{const c=s===this.selected;const n=s===0?"first":s===this.items.length-1?"last":"mid";const i=`content-switcher__item content-switcher__item--${n} ${this.onColor?"content-switcher__item--on-color":""} content-switcher__item--${this.size} ${c?"content-switcher__item--selected":""}`;return e("button",{key:s,type:"button",class:i,onClick:()=>this.handleSelect(s)},t.label)}))))}};const c=class{constructor(e){t(this,e)}render(){return e("slot",{key:"32eb727a5434d976cd072dfc245c95c6016ab079"})}};const n=class{constructor(e){t(this,e)}render(){return e("div",{key:"3cf45aa1f88ba9e667d2da5aca5f18a567684cc7",class:"content-switcher-panel",hidden:this.value!==this.index},e("slot",{key:"9409f951351fa84dd13e714080f6d40ee454f508"}))}};export{s as dga_content_switcher,c as dga_content_switcher_item,n as dga_content_switcher_panel};
//# sourceMappingURL=p-5c8826f1.entry.js.map