import{D as e,M as t,P as n,V as r,W as i,Y as a,_ as o,b as s,ft as c,it as l,l as u,n as d,nt as f,ot as p,q as m,r as h,st as g,t as _,v,w as y}from"../../client.js";import b from"../numberbadge/NumberBadge.js";var x=n(`<span class="mc-tabs__badge"><!></span>`),S=n(`<button><span class="mc-tabs__icon svelte-g14hff"><!></span> <span class="mc-tabs__label svelte-g14hff"><!></span> <!></button>`),C=n(`<span class="mc-tabs__badge"><!></span>`),w=n(`<a><span class="mc-tabs__icon svelte-g14hff"><!></span> <span class="mc-tabs__label svelte-g14hff"><!></span> <!></a>`),T=n(`<li role="presentation"><!></li>`),E={hash:`svelte-g14hff`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-tabs.svelte-g14hff {background-color:var(--tabs-color-background-default, #ffffff);position:relative;width:100%;height:3.5rem;}.mc-tabs__list.svelte-g14hff {list-style-type:none;padding-inline-start:0;margin-block:0;display:flex;gap:0.5rem;padding:var(--tabs-list-padding, 0.5rem 0.25rem);overflow:scroll;}
@media screen and (min-width: 681px) {.mc-tabs__list.svelte-g14hff {overflow:hidden;}
}.mc-tabs__tab.svelte-g14hff {font-size:var(--font-size-100, 0.875rem);font-weight:var(--font-weight-semi-bold, 600);align-items:center;background:none;border:none;border-radius:var(--border-radius-s, 0.25rem);color:var(--tabs-color-text-default, #404040);cursor:pointer;display:flex;gap:0.25rem;height:2.5rem;justify-content:center;outline:none;padding-left:0.75rem;padding-right:0.75rem;position:relative;text-decoration:none;}.mc-tabs__tab.svelte-g14hff:hover {background-color:var(--tabs-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-tabs__tab.svelte-g14hff:focus-visible {box-shadow:0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-tabs__tab--selected.svelte-g14hff {color:var(--tabs-color-text-selected, #006902);background-color:var(--tabs-color-background-selected, #ebf5de);}.mc-tabs__tab--selected.svelte-g14hff:hover {background-color:var(--tabs-color-background-selected-hover, #c5e39e);}.mc-tabs__tab--disabled.svelte-g14hff {color:var(--tabs-color-text-disabled, #b3b3b3);cursor:not-allowed;}.mc-tabs__tab--disabled.svelte-g14hff:hover {background:none;}.mc-tabs__label.svelte-g14hff {pointer-events:none;white-space:nowrap;}.mc-tabs__icon.svelte-g14hff {fill:currentcolor;height:1.5rem;width:1.5rem;}.mc-tabs--centered.svelte-g14hff .mc-tabs__list:where(.svelte-g14hff) {justify-content:center;}.mc-tabs__icon.svelte-g14hff:empty {display:none;}`};function D(n,_){g(_,!0),s(n,E);let D=d(_,`tag`,7,`button`),O=d(_,`selected`,7,!1),k=d(_,`href`,7),A=d(_,`disabled`,7),j=d(_,`badge`,7),M=d(_,`class`,7),N=h(_,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`tag`,`selected`,`href`,`disabled`,`badge`,`class`]);var P={get tag(){return D()},set tag(e=`button`){D(e),l()},get selected(){return O()},set selected(e=!1){O(e),l()},get href(){return k()},set href(e){k(e),l()},get disabled(){return A()},set disabled(e){A(e),l()},get badge(){return j()},set badge(e){j(e),l()},get class(){return M()},set class(e){M(e),l()}},F=T(),I=m(F),L=n=>{var i=S();u(i,()=>({type:`button`,role:`tab`,"aria-selected":O(),class:[`mc-tabs__tab`,O()&&`mc-tabs__tab--selected`,A()&&`mc-tabs__tab--disabled`],...N}),void 0,void 0,void 0,`svelte-g14hff`);var o=m(i);y(m(o),_,`icon`,{},null),c(o);var s=a(o,2);y(m(s),_,`default`,{},null),c(s);var l=a(s,2),d=e=>{var n=x(),i=m(n);{let e=f(()=>O()?`accent`:`standard`);b(i,{get label(){return j()},get appearance(){return r(e)}})}c(n),t(e,n)};e(l,e=>{j()&&e(d)}),c(i),t(n,i)},R=n=>{var i=w();u(i,()=>({href:k(),role:`tab`,"aria-selected":O(),class:[`mc-tabs__tab`,O()&&`mc-tabs__tab--selected`,A()&&`mc-tabs__tab--disabled`],...N}),void 0,void 0,void 0,`svelte-g14hff`);var o=m(i);y(m(o),_,`icon`,{},null),c(o);var s=a(o,2);y(m(s),_,`default`,{},null),c(s);var l=a(s,2),d=e=>{var n=C(),i=m(n);{let e=f(()=>O()?`accent`:`standard`);b(i,{get label(){return j()},get appearance(){return r(e)}})}c(n),t(e,n)};e(l,e=>{j()&&e(d)}),c(i),t(n,i)};return e(I,e=>{D()===`button`?e(L):e(R,-1)}),c(F),i(()=>o(F,1,v([`mc-tabs__item`,M()]),`svelte-g14hff`)),t(n,F),p(P)}customElements.define(`m-tab`,_(D,{selected:{attribute:`selected`,reflect:!0,type:`Boolean`},disabled:{attribute:`disabled`,reflect:!0,type:`Boolean`},tag:{},href:{},badge:{},class:{}},[`icon`,`default`],[],{mode:`open`}));
//# sourceMappingURL=Tab.js.map