import{c as E,e as q,a as D,p as u,s as I,t as A,j as B,n as C,i as f,k as F,b as _,d as G,f as x,h as s,v as b,m as p,r as a,q as g}from"../../custom-element.js";import{i as H}from"../../if.js";import{a as J,s as K}from"../../slot.js";import{c as w,s as L}from"../../attributes.js";import{g as M,a as N}from"../../sidebar-state.svelte.js";import"../../branches.js";var O=x('<span class="mc-sidebar__shortcut-icon svelte-146rv3"><!></span>'),P=x('<li role="menuitem"><a class="mc-sidebar__shortcut-link svelte-146rv3"><!> <span class="mc-sidebar__shortcut-label svelte-146rv3"> </span></a></li>');const Q={hash:"svelte-146rv3",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) {
}
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}
@media screen and (min-width: 680px) {
}.mc-sidebar__shortcut-item.svelte-146rv3 {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-146rv3:hover {background-color:var(--sidebar-color-shortcut-item-background-hover, rgba(70, 78, 99, 0.2));}.mc-sidebar__shortcut-item.svelte-146rv3:nth-child(n+5) {display:none;}.mc-sidebar__shortcut-item--grid.svelte-146rv3 {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--grid.svelte-146rv3 .mc-sidebar__shortcut-link:where(.svelte-146rv3) {flex-direction:column;gap:0.125rem;}.mc-sidebar__shortcut-item--stacked.svelte-146rv3 {padding:0.125rem 0.25rem;width:12.5rem;height:2.5rem;}.mc-sidebar__shortcut-item--stacked.svelte-146rv3 .mc-sidebar__shortcut-label:where(.svelte-146rv3) {font-weight:var(--font-weight-semi-bold, 600);font-size:var(--font-body-m, 1rem);}.mc-sidebar__shortcut-item--stacked.svelte-146rv3 .mc-sidebar__shortcut-link:where(.svelte-146rv3) {gap:0.25rem;}.mc-sidebar__shortcut-link.svelte-146rv3: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-146rv3 {text-decoration:none;display:flex;align-items:center;justify-content:center;}.mc-sidebar__shortcut-label.svelte-146rv3 {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-146rv3 {fill:var(--sidebar-color-shortcut-item-text-default, #404040);width:1.5rem;height:1.5rem;}`};function R(l,r){const k=J(r);q(r,!0),D(l,Q);let i=u(r,"label",7),o=u(r,"href",7),d=b(!1),m=b(!1);var y={get label(){return i()},set label(e){i(e),p()},get href(){return o()},set href(e){o(e),p()}},t=P(),n=s(t),h=s(n);{var S=e=>{var c=O(),j=s(c);K(j,r,"icon",{},null),a(c),_(e,c)};H(h,e=>{k.icon&&e(S)})}var v=I(h,2),z=s(v,!0);return a(v),a(n),a(t),w(t,()=>M({setExpanded:e=>g(d,e,!0)})),w(t,()=>N({setState:e=>g(m,e,!0)})),A(()=>{B(t,1,C(["mc-sidebar__shortcut-item",!f(m)&&f(d)?"mc-sidebar__shortcut-item--grid":"mc-sidebar__shortcut-item--stacked"]),"svelte-146rv3"),L(n,"href",o()),F(z,i())}),_(l,t),G(y)}customElements.define("m-sidebar-shortcut-item",E(R,{label:{},href:{}},["icon"],[],{mode:"open"}));
//# sourceMappingURL=SidebarShortcutItem.js.map
