import{D as e,G 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,_ as f,a as p,b as m,d as h,et as g,ft as _,it as v,l as y,n as b,ot as x,q as S,r as C,st as w,t as T,v as E,w as D,y as O,z as k}from"../../client.js";import{R as A}from"../../components.js";import{t as j}from"../../floating-item.svelte.js";import{n as M}from"../../sidebar-state.svelte.js";var N=o(`<section><nav aria-label="shortcut items"><ul role="menu"><!></ul></nav></section>`),P=o(`<div><button class="mc-sidebar__shortcut-item mc-sidebar__trigger svelte-17ny4fr" aria-label="Sidebar shortcuts" aria-haspopup="menu"><!></button> <div tabindex="0" role="menu" class="mc-sidebar__floating-item mc-sidebar__floating-item--hidden svelte-17ny4fr"><div class="mc-sidebar__listbox svelte-17ny4fr"><ul class="mc-sidebar__shortcut-list mc-sidebar__shortcut-list--floating mc-sidebar__shortcut-list mc-sidebar__shortcut-list--stacked svelte-17ny4fr"><!></ul></div></div></div>`),F={hash:`svelte-17ny4fr`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-sidebar.svelte-17ny4fr {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-17ny4fr {display:inline-flex;padding-right:0;width:18.75rem;}
}.mc-sidebar__wrapper.svelte-17ny4fr {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-17ny4fr {border-right:1px solid var(--divider-color-secondary, #999999);}.mc-sidebar__close-button.svelte-17ny4fr {position:absolute;top:0.5rem;right:0.5rem;}
@media screen and (min-width: 680px) {.mc-sidebar__close-button.svelte-17ny4fr {display:none;}
}.mc-sidebar__container.svelte-17ny4fr {flex-grow:1;}.mc-sidebar__floating-item.svelte-17ny4fr {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-17ny4fr {top:0.25rem;}.mc-sidebar__floating-item--expanded.svelte-17ny4fr {left:0;padding:0;}
@media screen and (min-width: 680px) {.mc-sidebar__floating-item--expanded.svelte-17ny4fr {left:18.5rem;}
}.mc-sidebar__floating-item--hidden.svelte-17ny4fr {visibility:hidden;overflow:hidden;opacity:0;height:0;pointer-events:none;}.mc-sidebar--collapsed.svelte-17ny4fr {width:4rem;}.mc-sidebar__footer.svelte-17ny4fr {width:100%;}.mc-sidebar__footer-container.svelte-17ny4fr {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-17ny4fr {width:2rem;height:2rem;border-radius:var(--border-radius-full, 100%);}.mc-sidebar__footer-profile.svelte-17ny4fr {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-17ny4fr:hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__footer-content.svelte-17ny4fr {display:none;}.mc-sidebar__footer-title.svelte-17ny4fr {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-17ny4fr {margin:0;font-size:var(--font-caption, 0.75rem);color:var(--sidebar-color-job-title, #666666);}.mc-sidebar__footer-expand.svelte-17ny4fr {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-17ny4fr {display:inline-flex;}
}.mc-sidebar__footer-expand--mobile.svelte-17ny4fr {position:relative;}
@media screen and (min-width: 680px) {.mc-sidebar__footer-expand--mobile.svelte-17ny4fr {display:none;}
}.mc-sidebar__footer-menu.svelte-17ny4fr {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-17ny4fr {width:18.75rem;}
}.mc-sidebar__header.svelte-17ny4fr {display:flex;align-items:center;justify-content:center;gap:0.5rem;}.mc-sidebar__header-logo.svelte-17ny4fr {width:2.5rem;height:2.5rem;}.mc-sidebar__header-title.svelte-17ny4fr {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-17ny4fr {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-17ny4fr {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-17ny4fr {list-style-type:none;margin:0;padding:0;}.mc-sidebar__link.svelte-17ny4fr {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-17ny4fr {color:var(--sidebar-color-section-item-text-selected, #006902);background:var(--sidebar-color-section-item-background-selected, #ebf5de);}.mc-sidebar__link--locked.svelte-17ny4fr {pointer-events:none;}.mc-sidebar__link.svelte-17ny4fr:not(.mc-sidebar__link--selected):hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__link.svelte-17ny4fr: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-17ny4fr {fill:currentcolor;width:1.5rem;height:1.5rem;}.mc-sidebar__indicator.svelte-17ny4fr {fill:currentcolor;width:1.25rem;height:1.25rem;}.mc-sidebar__text.svelte-17ny4fr {display:block;}.mc-sidebar__sub.svelte-17ny4fr {width:1.25rem;height:1.25rem;}.mc-sidebar__sublist.svelte-17ny4fr {list-style-type:none;margin:0;padding:0 0 0 2rem;display:flex;flex-direction:column;gap:0.25rem;}.mc-sidebar__item.svelte-17ny4fr {position:relative;width:100%;}.mc-sidebar__shortcut-wrapper.svelte-17ny4fr {width:100%;display:grid;justify-content:center;position:relative;}.mc-sidebar__shortcut-list.svelte-17ny4fr {display:flex;margin:0;}.mc-sidebar__shortcut-list--grid.svelte-17ny4fr {padding:0;gap:0.5rem;align-items:center;}.mc-sidebar__shortcut-list--stacked.svelte-17ny4fr {gap:0.25rem;flex-direction:column;padding:0;}.mc-sidebar__shortcut-list--stacked.svelte-17ny4fr: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-17ny4fr {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-17ny4fr:hover {background-color:var(--sidebar-color-shortcut-item-background-hover, rgba(70, 78, 99, 0.2));}.mc-sidebar__shortcut-item.svelte-17ny4fr:nth-child(n+5) {display:none;}.mc-sidebar__shortcut-item--grid.svelte-17ny4fr {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-17ny4fr {padding:0.125rem 0.25rem;width:12.5rem;height:2.5rem;}.mc-sidebar__shortcut-item--stacked.mc-sidebar__shortcut-item--floating.svelte-17ny4fr {width:100%;padding:0.125rem 0 0.125rem 0.25rem;}.mc-sidebar__shortcut-item--selected.mc-sidebar__shortcut-item.svelte-17ny4fr {background-color:var(--sidebar-color-shortcut-item-background-selected, #ebf5de);}.mc-sidebar__shortcut-item.svelte-17ny4fr:is(.mc-sidebar__trigger:where(.svelte-17ny4fr)) {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-17ny4fr:is(.mc-sidebar__trigger:where(.svelte-17ny4fr)):hover {background-color:var(--sidebar-color-shortcut-item-background-default, rgba(70, 78, 99, 0.1));}.mc-sidebar__shortcut-link.svelte-17ny4fr: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-17ny4fr {text-decoration:none;display:flex;align-items:center;justify-content:center;}.mc-sidebar__shortcut-label.svelte-17ny4fr {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-17ny4fr {fill:var(--sidebar-color-shortcut-item-text-default, #404040);width:1.5rem;height:1.5rem;}`};function I(r,o){w(o,!0),m(r,F);let T=b(o,`id`,23,()=>crypto.randomUUID()),I=b(o,`stacked`,7),L=b(o,`class`,7),R=C(o,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`stacked`,`class`]),z=g(null);t(()=>{(l(q)?l(z):l(B))?.dispatchEvent(new CustomEvent(`update:stacked`,{detail:I(),bubbles:!0,composed:!0}))});let B=g(null),V=g(null),{floatingItemIsDisplayed:H,hideFloatingItem:U,showFloatingItem:W,onTriggerKeydown:G,onListboxKeydown:K}=j(()=>l(B),()=>l(V)),q=g(!1);var J={get id(){return T()},set id(e=crypto.randomUUID()){T(e),v()},get stacked(){return I()},set stacked(e){I(e),v()},get class(){return L()},set class(e){L(e),v()}},Y=a(),X=n(Y),Z=e=>{var t=N();y(t,()=>({class:L(),...R}),void 0,void 0,void 0,`svelte-17ny4fr`);var n=S(t),r=S(n);D(S(r),o,`default`,{},null),_(r),_(n),_(t),O(t,()=>M({setExpanded:e=>s(q,e,!0)})),p(t,e=>s(z,e),()=>l(z)),u(()=>f(r,1,E({"mc-sidebar__shortcut-list":!0,"mc-sidebar__shortcut-list--stacked":I(),"mc-sidebar__shortcut-list--grid":!I()}),`svelte-17ny4fr`)),i(e,t)},Q=e=>{var t=P();y(t,()=>({class:[`mc-sidebar__shortcut-wrapper`,L()],...R}),void 0,void 0,void 0,`svelte-17ny4fr`);var n=S(t);A(S(n),{}),_(n),p(n,e=>s(B,e),()=>l(B));var r=d(n,2),a=S(r),f=S(a);D(S(f),o,`default`,{},null),_(f),_(a),_(r),p(r,e=>s(V,e),()=>l(V)),_(t),O(t,()=>M({setExpanded:e=>s(q,e,!0)})),u(()=>{h(n,`id`,`trigger-${T()}`),h(n,`aria-expanded`,H),h(n,`aria-controls`,`listbox-${T()}`),h(r,`id`,`listbox-${T()}`)}),k(`mouseenter`,n,W),k(`focus`,n,W),c(`keydown`,n,G),k(`mouseleave`,n,U),k(`blur`,n,U),c(`keydown`,r,K),k(`mouseleave`,r,U),k(`blur`,r,U),i(e,t)};return e(X,e=>{l(q)?e(Z):e(Q,-1)}),i(r,Y),x(J)}r([`keydown`]),customElements.define(`m-sidebar-shortcuts`,T(I,{stacked:{attribute:`stacked`,reflect:!0,type:`Boolean`},id:{},class:{}},[`default`],[],{mode:`open`}));
//# sourceMappingURL=SidebarShortcuts.js.map