import{o as xe,c as we,e as ye,a as ze,p as x,i as o,s as v,t as O,j as Le,n as Ie,b as a,d as je,v as K,w as J,f as s,h as g,m as w,y as N,x as P,q as S,r as p,u as Ee,k as ne}from"../../custom-element.js";import{i as l}from"../../if.js";import{s as ae}from"../../slot.js";import{c as Oe}from"../../svelte-component.js";import{e as Se}from"../../svelte-element.js";import{c as de,a as Fe,s as V}from"../../attributes.js";import{b as W}from"../../this.js";import{m as De,n as Me,c as Te}from"../../Condition20.js";import{D as Ce}from"../divider/Divider.js";import{I as Ke}from"../iconbutton/IconButton.js";import{_ as ce}from"./_SidebarFooterMenu.js";import{u as Pe}from"../../floating-item.svelte.js";import{g as Ae,s as Be}from"../../sidebar-state.svelte.js";import{M as Re}from"../../media-query.js";import"../../branches.js";import"../loader/Loader.js";import"../sidebarnavitem/SidebarNavItem.js";import"../../index-client.js";import"../tooltip/Tooltip.js";var qe=s('<img class="mc-sidebar__footer-avatar svelte-15fp7dn" loading="lazy"/>'),Qe=s('<p class="mc-sidebar__footer-title svelte-15fp7dn"> </p>'),Ue=s('<p class="mc-sidebar__footer-subtitle svelte-15fp7dn"> </p>'),Ge=s('<div class="mc-sidebar__footer-content svelte-15fp7dn"><!> <!></div>'),He=s("<!> <!> <!>",1),Je=s('<span class="mc-sidebar__footer-expand svelte-15fp7dn"><!></span>'),Ne=s('<button class="mc-button mc-button--icon-button mc-button--ghost mc-sidebar__footer-expand--mobile svelte-15fp7dn" aria-label="Profile menu"><!> <!></button>'),Ve=s('<footer><!> <div class="mc-sidebar__footer-container svelte-15fp7dn"><!> <!> <!></div></footer>');const We={hash:"svelte-15fp7dn",code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-sidebar.svelte-15fp7dn {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-15fp7dn {display:inline-flex;padding-right:0;}
}.mc-sidebar__wrapper.svelte-15fp7dn {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-15fp7dn {width:17.25rem;}
}.mc-sidebar__close-button.svelte-15fp7dn {position:absolute;top:0.5rem;right:0.5rem;}
@media screen and (min-width: 680px) {.mc-sidebar__close-button.svelte-15fp7dn {display:none;}
}.mc-sidebar__container.svelte-15fp7dn {flex-grow:1;}.mc-sidebar__floating-item.svelte-15fp7dn {position:absolute;padding-left:1.25rem;left:3rem;}.mc-sidebar__floating-item--tooltip.svelte-15fp7dn {top:0.25rem;}.mc-sidebar__floating-item--expanded.svelte-15fp7dn {left:0;padding:0;}
@media screen and (min-width: 680px) {.mc-sidebar__floating-item--expanded.svelte-15fp7dn {left:18.5rem;}
}.mc-sidebar__floating-item--hidden.svelte-15fp7dn {visibility:hidden;overflow:hidden;opacity:0;height:0;pointer-events:none;}.mc-sidebar--collapsed.svelte-15fp7dn {width:4rem;}.mc-sidebar__footer-container.svelte-15fp7dn {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-15fp7dn {width:2rem;height:2rem;border-radius:var(--border-radius-full, 100%);}.mc-sidebar__footer-profile.svelte-15fp7dn {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-15fp7dn:hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__footer-content.svelte-15fp7dn {display:none;}.mc-sidebar__footer-title.svelte-15fp7dn {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-15fp7dn {margin:0;font-size:var(--font-caption, 0.75rem);color:var(--sidebar-color-job-title, #666666);}.mc-sidebar__footer-expand.svelte-15fp7dn {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-15fp7dn {display:inline-flex;}
}.mc-sidebar__footer-expand--mobile.svelte-15fp7dn {position:relative;}
@media screen and (min-width: 680px) {.mc-sidebar__footer-expand--mobile.svelte-15fp7dn {display:none;}
}.mc-sidebar__footer--expanded.svelte-15fp7dn .mc-sidebar__footer-container:where(.svelte-15fp7dn) {flex-direction:row;justify-content:flex-end;height:3.5rem;}.mc-sidebar__footer--expanded.svelte-15fp7dn .mc-sidebar__footer-content:where(.svelte-15fp7dn) {display:block;}.mc-sidebar__footer--expanded.svelte-15fp7dn .mc-sidebar__footer-expand:where(.svelte-15fp7dn) {transform:rotate(180deg);}.mc-sidebar__footer--collapsed.svelte-15fp7dn .mc-sidebar__footer-container:where(.svelte-15fp7dn) {flex-direction:column;justify-content:flex-start;height:auto;}.mc-sidebar__footer--collapsed.svelte-15fp7dn .mc-sidebar__footer-content:where(.svelte-15fp7dn) {display:none;}.mc-sidebar__footer--collapsed.svelte-15fp7dn .mc-sidebar__footer-expand:where(.svelte-15fp7dn) {transform:none;}.mc-sidebar__footer-menu.svelte-15fp7dn {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-15fp7dn {width:18.75rem;}
}.mc-sidebar__header.svelte-15fp7dn {display:flex;align-items:center;justify-content:center;gap:0.5rem;}.mc-sidebar__header-logo.svelte-15fp7dn {width:2.5rem;height:2.5rem;}.mc-sidebar__header-title.svelte-15fp7dn {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-15fp7dn {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-15fp7dn {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-15fp7dn {list-style-type:none;margin:0;padding:0;}.mc-sidebar__link.svelte-15fp7dn {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-15fp7dn {color:var(--sidebar-color-section-item-text-selected, #006902);background:var(--sidebar-color-section-item-background-selected, #ebf5de);}.mc-sidebar__link--locked.svelte-15fp7dn {pointer-events:none;}.mc-sidebar__link.svelte-15fp7dn:not(.mc-sidebar__link--selected):hover {background:var(--sidebar-color-section-item-background-hover, rgba(0, 0, 0, 0.05));}.mc-sidebar__link.svelte-15fp7dn: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-15fp7dn {fill:currentcolor;width:1.5rem;height:1.5rem;}.mc-sidebar__indicator.svelte-15fp7dn {fill:currentcolor;width:1.25rem;height:1.25rem;}.mc-sidebar__text.svelte-15fp7dn {display:block;}.mc-sidebar__sub.svelte-15fp7dn {width:1.25rem;height:1.25rem;}.mc-sidebar__sublist.svelte-15fp7dn {list-style-type:none;margin:0;padding:0 0 0 2rem;display:flex;flex-direction:column;gap:0.25rem;}.mc-sidebar__item.svelte-15fp7dn {position:relative;}.mc-sidebar__shortcut-wrapper.svelte-15fp7dn {width:100%;display:grid;justify-content:center;position:relative;}.mc-sidebar__shortcut-list.svelte-15fp7dn {display:flex;margin:0;}.mc-sidebar__shortcut-list--grid.svelte-15fp7dn {padding:0;gap:0.5rem;align-items:center;}.mc-sidebar__shortcut-list--stacked.svelte-15fp7dn {gap:0.25rem;flex-direction:column;padding:0;}.mc-sidebar__shortcut-list--stacked.svelte-15fp7dn: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-15fp7dn {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-15fp7dn:hover {background-color:var(--sidebar-color-shortcut-item-background-hover, rgba(70, 78, 99, 0.2));}.mc-sidebar__shortcut-item.svelte-15fp7dn:nth-child(n+5) {display:none;}.mc-sidebar__shortcut-item--grid.svelte-15fp7dn {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-15fp7dn {padding:0.125rem 0.25rem;width:12.5rem;height:2.5rem;}.mc-sidebar__shortcut-item--stacked.mc-sidebar__shortcut-item--floating.svelte-15fp7dn {width:100%;padding:0.125rem 0 0.125rem 0.25rem;}.mc-sidebar__shortcut-item--selected.mc-sidebar__shortcut-item.svelte-15fp7dn {background-color:var(--sidebar-color-shortcut-item-background-selected, #ebf5de);}.mc-sidebar__shortcut-item.svelte-15fp7dn:is(.mc-sidebar__trigger:where(.svelte-15fp7dn)) {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-15fp7dn:is(.mc-sidebar__trigger:where(.svelte-15fp7dn)):hover {background-color:var(--sidebar-color-shortcut-item-background-default, rgba(70, 78, 99, 0.1));}.mc-sidebar__shortcut-link.svelte-15fp7dn: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-15fp7dn {text-decoration:none;display:flex;align-items:center;justify-content:center;}.mc-sidebar__shortcut-label.svelte-15fp7dn {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-15fp7dn {fill:var(--sidebar-color-shortcut-item-text-default, #404040);width:1.5rem;height:1.5rem;}.mc-button.svelte-15fp7dn {color:var(--button-color-filled-standard-font, #ffffff);background-color:var(--button-color-filled-standard-background, #464e63);}.mc-button.svelte-15fp7dn:hover {background-color:var(--button-color-filled-standard-hover-background, #343b4c);}.mc-button.svelte-15fp7dn:active {background-color:var(--button-color-filled-standard-active-background, #242938);}.mc-button.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button.svelte-15fp7dn {font-weight:var(--font-weight-semi-bold, 600);padding:0 calc(1rem - 0.125rem);min-height:3rem;min-width:3rem;border-radius:var(--button-border-radius-m, 0.25rem);}.mc-button.svelte-15fp7dn {display:inline-flex;justify-content:center;vertical-align:middle;text-align:center;border:2px solid transparent;transition:all ease 200ms;transition:box-shadow 200ms ease;align-items:center;box-sizing:border-box;font-family:inherit;fill:currentcolor;gap:0.25rem;cursor:pointer;}.mc-button__label.svelte-15fp7dn {font-size:var(--font-size-150, 1rem);}.mc-button__icon.svelte-15fp7dn {flex-shrink:0;width:1.5rem;height:1.5rem;}.mc-button.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button.svelte-15fp7dn: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-button--s.svelte-15fp7dn {padding:0 calc(0.75rem - 0.125rem);min-height:2rem;min-width:2rem;border-radius:var(--button-border-radius-s, 0.25rem);}.mc-button--m.svelte-15fp7dn {padding:0 calc(1rem - 0.125rem);min-height:3rem;min-width:3rem;border-radius:var(--button-border-radius-m, 0.25rem);}.mc-button--l.svelte-15fp7dn {padding:0 calc(1.25rem - 0.125rem);min-height:4rem;min-width:4rem;border-radius:var(--button-border-radius-l, 0.25rem);}.mc-button--icon-only.svelte-15fp7dn {padding:0.25rem;}.mc-button--outlined.svelte-15fp7dn {color:var(--button-color-outlined-standard-font, #242938);border-color:var(--button-color-outlined-standard-border, #8891aa);background-color:var(--button-color-outlined-standard-background, #ffffff);}.mc-button--outlined.svelte-15fp7dn:hover {background-color:var(--button-color-outlined-standard-hover-background, #eff1f6);}.mc-button--outlined.svelte-15fp7dn:active {background-color:var(--button-color-outlined-standard-active-background, #c9d0de);}.mc-button--outlined.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--ghost.svelte-15fp7dn {color:var(--button-color-ghost-standard-font, #242938);background-color:var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));}.mc-button--ghost.svelte-15fp7dn:hover {background-color:var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));}.mc-button--ghost.svelte-15fp7dn:active {background-color:var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));}.mc-button--ghost.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--accent.svelte-15fp7dn {color:var(--button-color-filled-accent-font, #ffffff);background-color:var(--button-color-filled-accent-background, #117f03);}.mc-button--accent.svelte-15fp7dn:hover {background-color:var(--button-color-filled-accent-hover-background, #006902);}.mc-button--accent.svelte-15fp7dn:active {background-color:var(--button-color-filled-accent-active-background, #035010);}.mc-button--accent.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--danger.svelte-15fp7dn {color:var(--button-color-filled-danger-font, #ffffff);background-color:var(--button-color-filled-danger-background, #c61112);}.mc-button--danger.svelte-15fp7dn:hover {background-color:var(--button-color-filled-danger-hover-background, #8c0003);}.mc-button--danger.svelte-15fp7dn:active {background-color:var(--button-color-filled-danger-active-background, #530000);}.mc-button--danger.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--inverse.svelte-15fp7dn {--focus-color-mid: var(--focus-color-outline-outer, #000000);--focus-color-outer: var(--focus-color-outline-mid, #ffffff);color:var(--button-color-filled-inverse-font, #242938);background-color:var(--button-color-filled-inverse-background, #ffffff);}.mc-button--inverse.svelte-15fp7dn:hover {background-color:var(--button-color-filled-inverse-hover-background, #e6e6e6);}.mc-button--inverse.svelte-15fp7dn:active {background-color:var(--button-color-filled-inverse-active-background, #cccccc);}.mc-button--inverse.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--icon-button.svelte-15fp7dn {border-radius:var(--border-radius-full, 100%);padding:0;}.mc-button--loading.svelte-15fp7dn {pointer-events:none;}.mc-button--outlined.mc-button--standard.svelte-15fp7dn {color:var(--button-color-outlined-standard-font, #242938);border-color:var(--button-color-outlined-standard-border, #8891aa);background-color:var(--button-color-outlined-standard-background, #ffffff);}.mc-button--outlined.mc-button--standard.svelte-15fp7dn:hover {background-color:var(--button-color-outlined-standard-hover-background, #eff1f6);}.mc-button--outlined.mc-button--standard.svelte-15fp7dn:active {background-color:var(--button-color-outlined-standard-active-background, #c9d0de);}.mc-button--outlined.mc-button--standard.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--outlined.mc-button--accent.svelte-15fp7dn {color:var(--button-color-outlined-accent-font, #117f03);border-color:var(--button-color-outlined-accent-border, #78be20);background-color:var(--button-color-outlined-accent-background, #ffffff);}.mc-button--outlined.mc-button--accent.svelte-15fp7dn:hover {background-color:var(--button-color-outlined-accent-hover-background, #ebf5de);}.mc-button--outlined.mc-button--accent.svelte-15fp7dn:active {background-color:var(--button-color-outlined-accent-active-background, #c5e39e);}.mc-button--outlined.mc-button--accent.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--outlined.mc-button--danger.svelte-15fp7dn {color:var(--button-color-outlined-danger-font, #c61112);border-color:var(--button-color-outlined-danger-border, #ef5f5c);background-color:var(--button-color-outlined-danger-background, #ffffff);}.mc-button--outlined.mc-button--danger.svelte-15fp7dn:hover {background-color:var(--button-color-outlined-danger-hover-background, #fdeaea);}.mc-button--outlined.mc-button--danger.svelte-15fp7dn:active {background-color:var(--button-color-outlined-danger-active-background, #f8bcbb);}.mc-button--outlined.mc-button--danger.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--outlined.mc-button--inverse.svelte-15fp7dn {color:var(--button-color-outlined-inverse-font, #ffffff);border-color:var(--button-color-outlined-inverse-border, #ffffff);background-color:var(--button-color-outlined-inverse-background, rgba(255, 255, 255, 0.01));}.mc-button--outlined.mc-button--inverse.svelte-15fp7dn:hover {background-color:var(--button-color-outlined-inverse-hover-background, rgba(255, 255, 255, 0.1));}.mc-button--outlined.mc-button--inverse.svelte-15fp7dn:active {background-color:var(--button-color-outlined-inverse-active-background, rgba(255, 255, 255, 0.2));}.mc-button--outlined.mc-button--inverse.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--ghost.mc-button--standard.svelte-15fp7dn {color:var(--button-color-ghost-standard-font, #242938);background-color:var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));}.mc-button--ghost.mc-button--standard.svelte-15fp7dn:hover {background-color:var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));}.mc-button--ghost.mc-button--standard.svelte-15fp7dn:active {background-color:var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));}.mc-button--ghost.mc-button--standard.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--ghost.mc-button--accent.svelte-15fp7dn {color:var(--button-color-ghost-accent-font, #117f03);background-color:var(--button-color-ghost-accent-background, rgba(255, 255, 255, 0.01));}.mc-button--ghost.mc-button--accent.svelte-15fp7dn:hover {background-color:var(--button-color-ghost-accent-hover-background, rgba(17, 127, 3, 0.1));}.mc-button--ghost.mc-button--accent.svelte-15fp7dn:active {background-color:var(--button-color-ghost-accent-active-background, rgba(17, 127, 3, 0.2));}.mc-button--ghost.mc-button--accent.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--ghost.mc-button--danger.svelte-15fp7dn {color:var(--button-color-ghost-danger-font, #c61112);background-color:var(--button-color-ghost-danger-background, rgba(255, 255, 255, 0.01));}.mc-button--ghost.mc-button--danger.svelte-15fp7dn:hover {background-color:var(--button-color-ghost-danger-hover-background, rgba(198, 17, 18, 0.1));}.mc-button--ghost.mc-button--danger.svelte-15fp7dn:active {background-color:var(--button-color-ghost-danger-active-background, rgba(198, 17, 18, 0.2));}.mc-button--ghost.mc-button--danger.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}.mc-button--ghost.mc-button--inverse.svelte-15fp7dn {color:var(--button-color-ghost-inverse-font, #ffffff);background-color:var(--button-color-ghost-inverse-background, rgba(255, 255, 255, 0.01));}.mc-button--ghost.mc-button--inverse.svelte-15fp7dn:hover {background-color:var(--button-color-ghost-inverse-hover-background, rgba(255, 255, 255, 0.1));}.mc-button--ghost.mc-button--inverse.svelte-15fp7dn:active {background-color:var(--button-color-ghost-inverse-active-background, rgba(255, 255, 255, 0.2));}.mc-button--ghost.mc-button--inverse.svelte-15fp7dn:disabled {background-color:var(--button-state-disabled-background, #d9d9d9);border-color:transparent;color:var(--button-state-disabled-color, #737373);cursor:not-allowed;}`};function Xe(X,c){ye(c,!0),ze(X,We);let i=x(c,"title",7),h=x(c,"subtitle",7),y=x(c,"avatar",7),A=x(c,"expandable",7,!0),F=x(c,"logOutLabel",7,"Log out"),B=x(c,"onlogout",7),D,b=K(!1),R=K(null),q=K(null),z=K(null);const L=J(()=>new Re("(max-width: 780px)").current),{floatingItemIsDisplayed:I,hideFloatingItem:M,showFloatingItem:T,onTriggerKeydown:le,onListboxKeydown:Y}=Pe(()=>o(L)?o(q):o(R),()=>o(z),{position:"top"});function se(){D.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0}))}const ie=J(()=>I?Me:Te),be=J(()=>{if(o(L))return{};const e={id:"trigger-footer","aria-expanded":I,"aria-haspopup":"listbox","aria-controls":"listbox-footer"};return o(b)?{...e,"aria-expanded":I,onclick:T}:{...e,"aria-expanded":I,onmouseenter:T,onfocus:T,onkeydown:le,onmouseleave:M,onblur:M}});function Z(){B()?.(),D.dispatchEvent(new CustomEvent("logout",{bubbles:!0,composed:!0}))}var ue={get title(){return i()},set title(e){i(e),w()},get subtitle(){return h()},set subtitle(e){h(e),w()},get avatar(){return y()},set avatar(e){y(e),w()},get expandable(){return A()},set expandable(e=!0){A(e),w()},get logOutLabel(){return F()},set logOutLabel(e="Log out"){F(e),w()},get onlogout(){return B()},set onlogout(e){B(e),w()}},u=Ve(),$=g(u);Ce($,{});var ee=v($,2),oe=g(ee);{var fe=e=>{var t=N(),_=P(t);Se(_,()=>o(L)?"div":"button",!1,(k,d)=>{W(k,r=>S(R,r,!0),()=>o(R)),Fe(k,()=>({class:"mc-sidebar__footer-profile mc-sidebar__footer-trigger",...o(be)}),void 0,void 0,void 0,"svelte-15fp7dn");var j=He(),E=P(j);{var Q=r=>{var n=qe();O(()=>{V(n,"src",y()),V(n,"alt",i())}),a(r,n)};l(E,r=>{y()&&r(Q)})}var re=v(E,2);{var pe=r=>{var n=Ge(),U=g(n);{var C=f=>{var m=Qe(),H=g(m,!0);p(m),O(()=>ne(H,i())),a(f,m)};l(U,f=>{i()&&f(C)})}var G=v(U,2);{var ke=f=>{var m=Ue(),H=g(m,!0);p(m),O(()=>ne(H,h())),a(f,m)};l(G,f=>{h()&&f(ke)})}p(n),a(r,n)};l(re,r=>{(i()||h())&&r(pe)})}var he=v(re,2);{var _e=r=>{ce(r,{get logOutLabel(){return F()},get expanded(){return o(b)},get onListboxKeydown(){return Y},get hideFloatingItem(){return M},onlogout:Z,get listbox(){return o(z)},set listbox(n){S(z,n,!0)},children:(n,U)=>{var C=N(),G=P(C);ae(G,c,"default",{},null),a(n,C)},$$slots:{default:!0}})};l(he,r=>{o(L)||r(_e)})}a(d,j)}),a(e,t)};l(oe,e=>{(y()||i()||h())&&e(fe)})}var te=v(oe,2);{var me=e=>{var t=Je(),_=g(t);Ke(_,{ghost:!0,"aria-label":"Expand",get"aria-expanded"(){return o(b)},onclick:()=>se(),$$slots:{icon:(k,d)=>{De(k,{slot:"icon"})}}}),p(t),a(e,t)};l(te,e=>{A()&&e(me)})}var ve=v(te,2);{var ge=e=>{var t=Ne(),_=g(t);Oe(_,()=>o(ie),(d,j)=>{j(d,{})});var k=v(_,2);ce(k,{get logOutLabel(){return F()},get expanded(){return o(b)},get onListboxKeydown(){return Y},get hideFloatingItem(){return M},onlogout:Z,get listbox(){return o(z)},set listbox(d){S(z,d,!0)},children:(d,j)=>{var E=N(),Q=P(E);ae(Q,c,"default",{},null),a(d,E)},$$slots:{default:!0}}),p(t),W(t,d=>S(q,d),()=>o(q)),O(()=>V(t,"aria-expanded",I)),Ee("click",t,()=>T()),a(e,t)};l(ve,e=>{o(L)&&e(ge)})}return p(ee),p(u),de(u,()=>Ae({setExpanded:e=>S(b,e,!0)})),de(u,()=>Be("M-SIDEBAR-FOOTER")),W(u,e=>D=e,()=>D),O(()=>Le(u,1,Ie({"mc-sidebar__footer":!0,"mc-sidebar__footer--expanded":o(b),"mc-sidebar__footer--collapsed":!o(b)}),"svelte-15fp7dn")),a(X,u),je(ue)}xe(["click"]);customElements.define("m-sidebar-footer",we(Xe,{expandable:{attribute:"expandable",reflect:!0,type:"Boolean"},title:{},subtitle:{},avatar:{},logOutLabel:{},onlogout:{}},["default"],[],{mode:"open"}));
//# sourceMappingURL=SidebarFooter.js.map
