import{C as e,D as t,J as n,L as r,M as i,N as a,P as o,Q as s,R as c,V as l,W as u,Y as d,a as f,b as p,d as m,et as h,ft as g,it as _,j as v,n as y,ot as b,q as x,st as S,t as C,w,y as T,z as E}from"../../client.js";import{p as D}from"../../components.js";import{t as O}from"../../floating-item.svelte.js";import{n as k,r as A}from"../../sidebar-state.svelte.js";var j=o(`<span class="mc-sidebar__icon svelte-1c38lw3"><!></span>`),M=o(`<li class="mc-sidebar__item svelte-1c38lw3"><details class="mc-sidebar__link-expand svelte-1c38lw3" open=""><summary class="mc-sidebar__link svelte-1c38lw3"><!> <span class="mc-sidebar__text svelte-1c38lw3"> </span> <span class="mc-sidebar__sub svelte-1c38lw3"><!></span></summary> <ul class="mc-sidebar__sublist svelte-1c38lw3"><!></ul></details></li>`),N=o(`<span class="mc-sidebar__icon svelte-1c38lw3"><!></span>`),P=o(`<div class="mc-sidebar__item svelte-1c38lw3"><button class="mc-sidebar__trigger mc-sidebar__link svelte-1c38lw3" aria-haspopup="listbox"><!></button> <div class="mc-sidebar__floating-item mc-sidebar__floating-item--hidden svelte-1c38lw3" tabindex="0" role="menu"><div class="mc-sidebar__listbox svelte-1c38lw3"><h3 class="mc-sidebar__listbox-title svelte-1c38lw3"> </h3> <ul class="mc-sidebar__list svelte-1c38lw3"><!></ul></div></div></div>`),F={hash:`svelte-1c38lw3`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}.mc-sidebar__floating-item.svelte-1c38lw3 {position:absolute;padding-left:1.25rem;left:3rem;}
@media screen and (min-width: 680px) {
}.mc-sidebar__floating-item--hidden.svelte-1c38lw3 {visibility:hidden;overflow:hidden;opacity:0;height:0;pointer-events:none;}
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}.mc-sidebar__listbox.svelte-1c38lw3 {min-width:18.75rem;border-radius:var(--border-radius-m, 0.5rem);background-color:var(--listbox-color-background, #ffffff);padding:1rem;display:flex;flex-direction:column;gap:0.25rem;box-shadow:var(--shadow-bottom-s-x, 0px) var(--shadow-bottom-s-y, 5px) var(--shadow-bottom-s-blur, 10px) var(--shadow-bottom-s-spread, -2px) rgba(0, 0, 0, var(--shadow-bottom-s-opacity, 20%));}.mc-sidebar__listbox-title.svelte-1c38lw3 {font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-semi-bold, 600);padding-bottom:0.75rem;margin:0;border-bottom:1px solid var(--divider-color-primary, #cccccc);color:var(--sidebar-color-shortcut-item-text-default, #404040);}.mc-sidebar__list.svelte-1c38lw3 {list-style-type:none;margin:0;padding:0;}.mc-sidebar__link.svelte-1c38lw3 {display:flex;align-items:center;gap:0.25rem;height:2.5rem;width:100%;padding-left:0.25rem;text-align:left;text-decoration:none;font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-semi-bold, 600);color:var(--sidebar-color-section-item-text-default, #404040);border-radius:var(--border-radius-m, 0.5rem);background:transparent;border:none;cursor:pointer;}.mc-sidebar__link.svelte-1c38lw3:not(.mc-sidebar__link--selected):hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__link.svelte-1c38lw3: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-sidebar__link-expand.svelte-1c38lw3:open .mc-sidebar__sub:where(.svelte-1c38lw3) {transform:rotate(180deg);}.mc-sidebar__link.svelte-1c38lw3:is(summary:where(.svelte-1c38lw3)) .mc-sidebar__text:where(.svelte-1c38lw3) {flex-grow:1;}.mc-sidebar__icon.svelte-1c38lw3 {fill:currentcolor;width:1.5rem;height:1.5rem;}.mc-sidebar__text.svelte-1c38lw3 {display:block;}.mc-sidebar__sub.svelte-1c38lw3 {width:1.25rem;height:1.25rem;}.mc-sidebar__sublist.svelte-1c38lw3 {list-style-type:none;margin:0;padding:0 0 0 2rem;display:flex;flex-direction:column;gap:0.25rem;}.mc-sidebar__item.svelte-1c38lw3 {position:relative;}`};function I(r,o){let C=e(o);S(o,!0),p(r,F);let I=y(o,`id`,23,()=>crypto.randomUUID()),L=y(o,`label`,7),R=y(o,`menulabel`,7),z=h(null),B=h(null),{floatingItemIsDisplayed:V,hideFloatingItem:H,showFloatingItem:U,onTriggerKeydown:W,onListboxKeydown:G}=O(()=>l(z),()=>l(B)),K=h(!1);var q={get id(){return I()},set id(e=crypto.randomUUID()){I(e),_()},get label(){return L()},set label(e){L(e),_()},get menulabel(){return R()},set menulabel(e){R(e),_()}},J=a(),Y=n(J),X=e=>{var n=M(),r=x(n),a=x(r),c=x(a),l=e=>{var t=j();w(x(t),o,`icon`,{},null),g(t),i(e,t)};t(c,e=>{C.icon&&e(l)});var f=d(c,2),p=x(f,!0);g(f);var h=d(f,2);D(x(h),{}),g(h),g(a);var _=d(a,2);w(x(_),o,`default`,{},null),g(_),g(r),g(n),T(n,()=>k({setExpanded:e=>s(K,e,!0)})),T(n,()=>A(`M-SIDEBAR-EXPANDABLE-ITEM`)),u(()=>{m(a,`aria-label`,L()),v(p,L())}),i(e,n)},Z=e=>{var n=P(),r=x(n),a=x(r),p=e=>{var t=N();w(x(t),o,`icon`,{},null),g(t),i(e,t)};t(a,e=>{C.icon&&e(p)}),g(r),f(r,e=>s(z,e),()=>l(z));var h=d(r,2),_=x(h),y=x(_),b=x(y,!0);g(y);var S=d(y,2);w(x(S),o,`default`,{},null),g(S),g(_),g(h),f(h,e=>s(B,e),()=>l(B)),g(n),T(n,()=>k({setExpanded:e=>s(K,e,!0)})),u(()=>{m(r,`id`,I()),m(r,`aria-expanded`,V),m(r,`aria-controls`,`listbox-${I()}`),m(h,`id`,`listbox-${I()}`),v(b,R())}),E(`mouseenter`,r,U),E(`focus`,r,U),c(`keydown`,r,W),E(`mouseleave`,r,H),E(`blur`,r,H),c(`keydown`,h,G),E(`mouseleave`,h,H),E(`blur`,h,H),i(e,n)};return t(Y,e=>{l(K)?e(X):e(Z,-1)}),i(r,J),b(q)}r([`keydown`]),customElements.define(`m-sidebar-expandable-item`,C(I,{id:{},label:{},menulabel:{}},[`icon`,`default`],[],{mode:`open`}));
//# sourceMappingURL=SidebarExpandableItem.js.map