import{G as e,M as t,P as n,V as r,W as i,Y as a,_ as o,a as s,b as c,ft as l,it as u,k as d,n as f,nt as p,ot as m,q as h,st as g,t as _,v,w as y}from"../../client.js";import{w as b}from"../../components.js";import x from"../iconbutton/IconButton.js";import{t as S}from"../../index-client.js";var C=n(`<aside><div class="mc-sidebar__wrapper svelte-l14y5r"><!> <!> <section class="mc-sidebar__container svelte-l14y5r"><nav class="mc-sidebar__menu svelte-l14y5r" aria-label="navigation items"><ul class="mc-sidebar__list svelte-l14y5r"><!></ul></nav></section> <!></div> <span class="mc-sidebar__close-button svelte-l14y5r"><!></span></aside>`),w={hash:`svelte-l14y5r`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-sidebar.svelte-l14y5r {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-l14y5r {display:inline-flex;padding-right:0;}
}.mc-sidebar__wrapper.svelte-l14y5r {display:flex;flex-direction:column;gap:0.75rem;min-height:100vh;width:100%;padding:0.75rem;background-color:var(--sidebar-color-background-primary, #ffffff);}
@media screen and (min-width: 680px) {.mc-sidebar__wrapper.svelte-l14y5r {width:17.25rem;}
}.mc-sidebar__close-button.svelte-l14y5r {position:absolute;top:0.5rem;right:0.5rem;}
@media screen and (min-width: 680px) {.mc-sidebar__close-button.svelte-l14y5r {display:none;}
}.mc-sidebar__container.svelte-l14y5r {flex-grow:1;}.mc-sidebar__floating-item.svelte-l14y5r {position:absolute;padding-left:1.25rem;left:3rem;}.mc-sidebar__floating-item--tooltip.svelte-l14y5r {top:0.25rem;}.mc-sidebar__floating-item--expanded.svelte-l14y5r {left:0;padding:0;}
@media screen and (min-width: 680px) {.mc-sidebar__floating-item--expanded.svelte-l14y5r {left:18.5rem;}
}.mc-sidebar__floating-item--hidden.svelte-l14y5r {visibility:hidden;overflow:hidden;opacity:0;height:0;pointer-events:none;}.mc-sidebar--expanded.svelte-l14y5r .mc-sidebar__menu:where(.svelte-l14y5r) {padding:0 0.25rem;}.mc-sidebar--collapsed.svelte-l14y5r {width:4rem;}.mc-sidebar--collapsed.svelte-l14y5r .mc-sidebar__menu:where(.svelte-l14y5r) {padding:0;}.mc-sidebar__footer-container.svelte-l14y5r {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-l14y5r {width:2rem;height:2rem;border-radius:var(--border-radius-full, 100%);}.mc-sidebar__footer-profile.svelte-l14y5r {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-l14y5r:hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__footer-content.svelte-l14y5r {display:none;}.mc-sidebar__footer-title.svelte-l14y5r {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-l14y5r {margin:0;font-size:var(--font-caption, 0.75rem);color:var(--sidebar-color-job-title, #666666);}.mc-sidebar__footer-expand.svelte-l14y5r {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-l14y5r {display:inline-flex;}
}.mc-sidebar__footer-expand--mobile.svelte-l14y5r {position:relative;}
@media screen and (min-width: 680px) {.mc-sidebar__footer-expand--mobile.svelte-l14y5r {display:none;}
}.mc-sidebar__footer-menu.svelte-l14y5r {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-l14y5r {width:18.75rem;}
}.mc-sidebar__header.svelte-l14y5r {display:flex;align-items:center;justify-content:center;gap:0.5rem;}.mc-sidebar__header-logo.svelte-l14y5r {width:2.5rem;height:2.5rem;}.mc-sidebar__header-title.svelte-l14y5r {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-l14y5r {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-l14y5r {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-l14y5r {list-style-type:none;margin:0;padding:0;}.mc-sidebar__link.svelte-l14y5r {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-l14y5r {color:var(--sidebar-color-section-item-text-selected, #006902);background:var(--sidebar-color-section-item-background-selected, #ebf5de);}.mc-sidebar__link--locked.svelte-l14y5r {pointer-events:none;}.mc-sidebar__link.svelte-l14y5r:not(.mc-sidebar__link--selected):hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__link.svelte-l14y5r: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__icon.svelte-l14y5r {fill:currentcolor;width:1.5rem;height:1.5rem;}.mc-sidebar__indicator.svelte-l14y5r {fill:currentcolor;width:1.25rem;height:1.25rem;}.mc-sidebar__text.svelte-l14y5r {display:block;}.mc-sidebar__sub.svelte-l14y5r {width:1.25rem;height:1.25rem;}.mc-sidebar__sublist.svelte-l14y5r {list-style-type:none;margin:0;padding:0 0 0 2rem;display:flex;flex-direction:column;gap:0.25rem;}.mc-sidebar__item.svelte-l14y5r {position:relative;}.mc-sidebar__shortcut-wrapper.svelte-l14y5r {width:100%;display:grid;justify-content:center;position:relative;}.mc-sidebar__shortcut-list.svelte-l14y5r {display:flex;margin:0;}.mc-sidebar__shortcut-list--grid.svelte-l14y5r {padding:0;gap:0.5rem;align-items:center;}.mc-sidebar__shortcut-list--stacked.svelte-l14y5r {gap:0.25rem;flex-direction:column;padding:0;}.mc-sidebar__shortcut-list--stacked.svelte-l14y5r: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-l14y5r {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-l14y5r:hover {background-color:var(--sidebar-color-shortcut-item-background-hover, rgba(70, 78, 99, 0.2));}.mc-sidebar__shortcut-item.svelte-l14y5r:nth-child(n+5) {display:none;}.mc-sidebar__shortcut-item--grid.svelte-l14y5r {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-l14y5r {padding:0.125rem 0.25rem;width:12.5rem;height:2.5rem;}.mc-sidebar__shortcut-item--stacked.mc-sidebar__shortcut-item--floating.svelte-l14y5r {width:100%;padding:0.125rem 0 0.125rem 0.25rem;}.mc-sidebar__shortcut-item--selected.mc-sidebar__shortcut-item.svelte-l14y5r {background-color:var(--sidebar-color-shortcut-item-background-selected, #ebf5de);}.mc-sidebar__shortcut-item.svelte-l14y5r:is(.mc-sidebar__trigger:where(.svelte-l14y5r)) {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-l14y5r:is(.mc-sidebar__trigger:where(.svelte-l14y5r)):hover {background-color:var(--sidebar-color-shortcut-item-background-default, rgba(70, 78, 99, 0.1));}.mc-sidebar__shortcut-link.svelte-l14y5r: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-l14y5r {text-decoration:none;display:flex;align-items:center;justify-content:center;}.mc-sidebar__shortcut-label.svelte-l14y5r {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-l14y5r {fill:var(--sidebar-color-shortcut-item-text-default, #404040);width:1.5rem;height:1.5rem;}`};function T(n,_){g(_,!0),c(n,w);let T=f(_,`expanded`,15,!0),E=f(_,`onexpanded`,7),D=f(_,`onclose`,7),O,k=p(()=>new S(`(max-width: 780px)`).current);function A(){T(!T())}e(()=>{E()?.(T()),O.dispatchEvent(new CustomEvent(`update:expanded`,{detail:T(),bubbles:!0,composed:!0}))});function j(){D()?.(),O.dispatchEvent(new CustomEvent(`close`,{bubbles:!0,composed:!0}))}function M(){r(k)&&T(!0)}d(()=>(document.addEventListener(`toggle`,A),window.addEventListener(`resize`,M),()=>{document.removeEventListener(`toggle`,A),window.removeEventListener(`resize`,M)}));var N={get expanded(){return T()},set expanded(e=!0){T(e),u()},get onexpanded(){return E()},set onexpanded(e){E(e),u()},get onclose(){return D()},set onclose(e){D(e),u()}},P=C(),F=h(P),I=h(F);y(I,_,`header`,{},null);var L=a(I,2);y(L,_,`shortcuts`,{},null);var R=a(L,2),z=h(R),B=h(z);y(h(B),_,`nav`,{},null),l(B),l(z),l(R),y(a(R,2),_,`footer`,{},null),l(F);var V=a(F,2);return x(h(V),{ghost:!0,"aria-label":`Sidebar close button`,onclick:j,$$slots:{icon:(e,t)=>{b(e,{slot:`icon`})}}}),l(V),l(P),s(P,e=>O=e,()=>O),i(()=>o(P,1,v([`mc-sidebar`,`mc-sidebar--${T()?`expanded`:`collapsed`}`]),`svelte-l14y5r`)),t(n,P),m(N)}customElements.define(`m-sidebar`,_(T,{expanded:{attribute:`expanded`,reflect:!0,type:`Boolean`},onexpanded:{},onclose:{}},[`header`,`shortcuts`,`nav`,`footer`],[],{mode:`open`}));
//# sourceMappingURL=Sidebar.js.map