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,l as y,n as b,ot as x,q as S,r as C,st as w,t as T,w as E,y as D,z as O}from"../../client.js";import{p as k}from"../../components.js";import{t as A}from"../../floating-item.svelte.js";import{n as j,r as M}from"../../sidebar-state.svelte.js";var N=o(`<span class="mc-sidebar__icon svelte-1c38lw3"><!></span>`),P=o(`<li><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>`),F=o(`<span class="mc-sidebar__icon svelte-1c38lw3"><!></span>`),I=o(`<div><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>`),L={hash:`svelte-1c38lw3`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-sidebar.svelte-1c38lw3 {width:100%;display:flex;align-items:start;font-size:var(--font-size-100, 0.875rem);color:var(--sidebar-color-text-default, #404040);box-sizing:border-box;background-color:var(--overlay-color-background, rgba(0, 0, 0, 0.5));padding-right:4rem;position:relative;}
@media screen and (min-width: 680px) {.mc-sidebar.svelte-1c38lw3 {display:inline-flex;padding-right:0;width:18.75rem;}
}.mc-sidebar__wrapper.svelte-1c38lw3 {box-sizing:border-box;display:flex;flex-direction:column;gap:0.75rem;min-height:100vh;width:100%;padding:0.75rem;background-color:var(--sidebar-color-background-primary, #ffffff);}.mc-sidebar__wrapper--divider.svelte-1c38lw3 {border-right:1px solid var(--divider-color-secondary, #999999);}.mc-sidebar__close-button.svelte-1c38lw3 {position:absolute;top:0.5rem;right:0.5rem;}
@media screen and (min-width: 680px) {.mc-sidebar__close-button.svelte-1c38lw3 {display:none;}
}.mc-sidebar__container.svelte-1c38lw3 {flex-grow:1;}.mc-sidebar__floating-item.svelte-1c38lw3 {position:absolute;z-index:var(--sidebar-floating-item-index, 4);padding-left:1.25rem;left:calc(2.5rem - 1px);}.mc-sidebar__floating-item--tooltip.svelte-1c38lw3 {top:0.25rem;}.mc-sidebar__floating-item--expanded.svelte-1c38lw3 {left:0;padding:0;}
@media screen and (min-width: 680px) {.mc-sidebar__floating-item--expanded.svelte-1c38lw3 {left:18.5rem;}
}.mc-sidebar__floating-item--hidden.svelte-1c38lw3 {visibility:hidden;overflow:hidden;opacity:0;height:0;pointer-events:none;}.mc-sidebar--collapsed.svelte-1c38lw3 {width:4rem;}.mc-sidebar__footer.svelte-1c38lw3 {width:100%;}.mc-sidebar__footer-container.svelte-1c38lw3 {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;margin-top:0.5rem;}.mc-sidebar__footer-avatar.svelte-1c38lw3 {width:2rem;height:2rem;border-radius:var(--border-radius-full, 100%);}.mc-sidebar__footer-profile.svelte-1c38lw3 {width:100%;display:flex;align-items:center;gap:0.5rem;height:2.5rem;flex-grow:1;border-radius:var(--border-radius-s, 0.25rem);background-color:var(--sidebar-color-extra-feature-background-default, rgba(255, 255, 255, 0.01));cursor:pointer;border:none;}.mc-sidebar__footer-profile.svelte-1c38lw3:hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__footer-content.svelte-1c38lw3 {display:none;}.mc-sidebar__footer-title.svelte-1c38lw3 {margin:0;text-align:left;color:var(--sidebar-color-section-item-text-default, #404040);font-weight:var(--font-weight-bold, 700);}.mc-sidebar__footer-subtitle.svelte-1c38lw3 {margin:0;font-size:var(--font-caption, 0.75rem);color:var(--sidebar-color-job-title, #666666);}.mc-sidebar__footer-expand.svelte-1c38lw3 {display:none;min-width:2.5rem;min-height:2.5rem;width:2.5rem;height:2.5rem;transform:none;}
@media screen and (min-width: 680px) {.mc-sidebar__footer-expand.svelte-1c38lw3 {display:inline-flex;}
}.mc-sidebar__footer-expand--mobile.svelte-1c38lw3 {position:relative;}
@media screen and (min-width: 680px) {.mc-sidebar__footer-expand--mobile.svelte-1c38lw3 {display:none;}
}.mc-sidebar__footer-menu.svelte-1c38lw3 {width:19.75rem;box-sizing:border-box;padding:0.5rem 0.75rem;background-color:var(--listbox-color-background, #ffffff);border:1px solid var(--listbox-color-border, #cccccc);border-radius:var(--border-radius-m, 0.5rem);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%));}
@media screen and (min-width: 680px) {.mc-sidebar__footer-menu.svelte-1c38lw3 {width:18.75rem;}
}.mc-sidebar__header.svelte-1c38lw3 {display:flex;align-items:center;justify-content:center;gap:0.5rem;}.mc-sidebar__header-logo.svelte-1c38lw3 {width:2.5rem;height:2.5rem;}.mc-sidebar__header-title.svelte-1c38lw3 {font-size:var(--font-size-200, 1.125rem);font-weight:var(--font-weight-bold, 700);color:var(--sidebar-color-product-name, #000000);margin:0;flex-grow:1;display:none;}.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--selected.svelte-1c38lw3 {color:var(--sidebar-color-section-item-text-selected, #006902);background:var(--sidebar-color-section-item-background-selected, #ebf5de);}.mc-sidebar__link--locked.svelte-1c38lw3 {pointer-events:none;}.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__indicator.svelte-1c38lw3 {fill:currentcolor;width:1.25rem;height:1.25rem;}.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;width:100%;}.mc-sidebar__item--sub.mc-sidebar__item.svelte-1c38lw3 .mc-sidebar__link:where(.svelte-1c38lw3) {display:flex;align-items:center;justify-content:start;gap:0.25rem;padding-left:0.5rem;margin-bottom:0.125rem;height:2rem;text-decoration:none;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__item--sub.mc-sidebar__item.svelte-1c38lw3 .mc-sidebar__link:where(.svelte-1c38lw3) .mc-sidebar__text:where(.svelte-1c38lw3) {display:block;font-size:var(--font-body-s, 0.875rem);font-weight:var(--font-weight-regular, 400);}.mc-sidebar__item--sub.mc-sidebar__item.svelte-1c38lw3 .mc-sidebar__link:where(.svelte-1c38lw3):not(.mc-sidebar__item--sub.mc-sidebar__item:where(.svelte-1c38lw3) .mc-sidebar__link--selected:where(.svelte-1c38lw3)):hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__item--sub.mc-sidebar__item.svelte-1c38lw3 .mc-sidebar__link:where(.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__item--collapsed.svelte-1c38lw3 .mc-sidebar__text:where(.svelte-1c38lw3),
.mc-sidebar__item--collapsed.svelte-1c38lw3 .mc-sidebar__sub:where(.svelte-1c38lw3),
.mc-sidebar__item--collapsed.svelte-1c38lw3 .mc-sidebar__sublist:where(.svelte-1c38lw3) {display:none;}.mc-sidebar__item--collapsed.svelte-1c38lw3 .mc-sidebar__link:where(.svelte-1c38lw3) {padding:0;justify-content:center;}.mc-sidebar__shortcut-wrapper.svelte-1c38lw3 {width:100%;display:grid;justify-content:center;position:relative;}.mc-sidebar__shortcut-list.svelte-1c38lw3 {display:flex;margin:0;}.mc-sidebar__shortcut-list--grid.svelte-1c38lw3 {padding:0;gap:0.5rem;align-items:center;}.mc-sidebar__shortcut-list--stacked.svelte-1c38lw3 {gap:0.25rem;flex-direction:column;padding:0;}.mc-sidebar__shortcut-list--stacked.svelte-1c38lw3:not(.mc-sidebar__shortcut-list--floating) {padding:0 0 0.5rem 1rem;margin-bottom:0.5rem;border-bottom:1px solid var(--divider-color-primary, #cccccc);}.mc-sidebar__shortcut-item.svelte-1c38lw3 {cursor:pointer;display:flex;align-items:center;list-style:none;border-radius:var(--border-radius-m, 0.5rem);overflow:hidden;}.mc-sidebar__shortcut-item.svelte-1c38lw3:hover {background-color:var(--sidebar-color-shortcut-item-background-hover, rgba(70, 78, 99, 0.2));}.mc-sidebar__shortcut-item.svelte-1c38lw3:nth-child(n+5) {display:none;}.mc-sidebar__shortcut-item--grid.svelte-1c38lw3 {justify-content:center;padding:0 0.125rem;height:3rem;width:3.9375rem;background-color:var(--sidebar-color-shortcut-item-background-default, rgba(70, 78, 99, 0.1));}.mc-sidebar__shortcut-item--stacked.svelte-1c38lw3 {padding:0.125rem 0.25rem;width:12.5rem;height:2.5rem;}.mc-sidebar__shortcut-item--stacked.mc-sidebar__shortcut-item--floating.svelte-1c38lw3 {width:100%;padding:0.125rem 0 0.125rem 0.25rem;}.mc-sidebar__shortcut-item--selected.mc-sidebar__shortcut-item.svelte-1c38lw3 {background-color:var(--sidebar-color-shortcut-item-background-selected, #ebf5de);}.mc-sidebar__shortcut-item.svelte-1c38lw3:is(.mc-sidebar__trigger:where(.svelte-1c38lw3)) {width:3rem;height:3rem;justify-content:center;border:none;background-color:var(--sidebar-color-shortcut-item-background-default, rgba(70, 78, 99, 0.1));}.mc-sidebar__shortcut-item.svelte-1c38lw3:is(.mc-sidebar__trigger:where(.svelte-1c38lw3)):hover {background-color:var(--sidebar-color-shortcut-item-background-default, rgba(70, 78, 99, 0.1));}.mc-sidebar__shortcut-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__shortcut-link.svelte-1c38lw3 {text-decoration:none;display:flex;align-items:center;justify-content:center;}.mc-sidebar__shortcut-label.svelte-1c38lw3 {font-size:var(--font-size-25, 0.625rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-s, 1.3);color:var(--sidebar-color-shortcut-item-text-default, #404040);white-space:nowrap;overflow:hidden;}.mc-sidebar__shortcut-icon.svelte-1c38lw3 {fill:var(--sidebar-color-shortcut-item-text-default, #404040);width:1.5rem;height:1.5rem;}`};function R(r,o){let T=e(o);w(o,!0),p(r,L);let R=b(o,`id`,23,()=>crypto.randomUUID()),z=b(o,`label`,7),B=b(o,`menulabel`,7),V=b(o,`class`,7),H=C(o,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`label`,`menulabel`,`class`]),U=h(null),W=h(null),{floatingItemIsDisplayed:G,hideFloatingItem:K,showFloatingItem:q,onTriggerKeydown:J,onListboxKeydown:Y}=A(()=>l(U),()=>l(W)),X=h(!1);var Z={get id(){return R()},set id(e=crypto.randomUUID()){R(e),_()},get label(){return z()},set label(e){z(e),_()},get menulabel(){return B()},set menulabel(e){B(e),_()},get class(){return V()},set class(e){V(e),_()}},Q=a(),$=n(Q),ee=e=>{var n=P();y(n,()=>({class:[`mc-sidebar__item`,V()],...H}),void 0,void 0,void 0,`svelte-1c38lw3`);var r=S(n),a=S(r),c=S(a),l=e=>{var t=N();E(S(t),o,`icon`,{},null),g(t),i(e,t)};t(c,e=>{T.icon&&e(l)});var f=d(c,2),p=S(f,!0);g(f);var h=d(f,2);k(S(h),{}),g(h),g(a);var _=d(a,2);E(S(_),o,`default`,{},null),g(_),g(r),g(n),D(n,()=>j({setExpanded:e=>s(X,e,!0)})),D(n,()=>M(`M-SIDEBAR-EXPANDABLE-ITEM`)),u(()=>{m(a,`aria-label`,z()),v(p,z())}),i(e,n)},te=e=>{var n=I();y(n,()=>({class:[`mc-sidebar__item`,V()],...H}),void 0,void 0,void 0,`svelte-1c38lw3`);var r=S(n),a=S(r),p=e=>{var t=F();E(S(t),o,`icon`,{},null),g(t),i(e,t)};t(a,e=>{T.icon&&e(p)}),g(r),f(r,e=>s(U,e),()=>l(U));var h=d(r,2),_=S(h),b=S(_),x=S(b,!0);g(b);var C=d(b,2);E(S(C),o,`default`,{},null),g(C),g(_),g(h),f(h,e=>s(W,e),()=>l(W)),g(n),D(n,()=>j({setExpanded:e=>s(X,e,!0)})),u(()=>{m(r,`id`,R()),m(r,`aria-expanded`,G),m(r,`aria-controls`,`listbox-${R()}`),m(h,`id`,`listbox-${R()}`),v(x,B())}),O(`mouseenter`,r,q),O(`focus`,r,q),c(`keydown`,r,J),O(`mouseleave`,r,K),O(`blur`,r,K),c(`keydown`,h,Y),O(`mouseleave`,h,K),O(`blur`,h,K),i(e,n)};return t($,e=>{l(X)?e(ee):e(te,-1)}),i(r,Q),x(Z)}r([`keydown`]),customElements.define(`m-sidebar-expandable-item`,T(R,{id:{},label:{},menulabel:{},class:{}},[`icon`,`default`],[],{mode:`open`}));
//# sourceMappingURL=SidebarExpandableItem.js.map