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