import{D as e,J as t,L as n,M as r,N as i,P as a,Q as o,R as s,S 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,j as y,l as b,n as x,nt as S,ot as ee,q as C,st as w,t as T,v as E,w as D,x as O,y as k}from"../../client.js";import{i as te,m as ne,y as re}from"../../components.js";import ie from"../iconbutton/IconButton.js";import ae from"../divider/Divider.js";import{t as oe}from"../../index-client.js";import{t as se}from"../../floating-item.svelte.js";import{n as ce,r as le}from"../../sidebar-state.svelte.js";import A from"./_SidebarFooterMenu.js";var ue=a(`<img class="mc-sidebar__footer-avatar svelte-15fp7dn" loading="lazy"/>`),de=a(`<p class="mc-sidebar__footer-title svelte-15fp7dn"> </p>`),fe=a(`<p class="mc-sidebar__footer-subtitle svelte-15fp7dn"> </p>`),pe=a(`<div class="mc-sidebar__footer-content svelte-15fp7dn"><!> <!></div>`),me=a(`<!> <!> <!>`,1),he=a(`<span class="mc-sidebar__footer-expand svelte-15fp7dn"><!></span>`),ge=a(`<button class="mc-button mc-button--icon-button mc-button--ghost mc-sidebar__footer-expand--mobile svelte-15fp7dn" aria-label="Profile menu"><!> <!></button>`),_e=a(`<footer><!> <div class="mc-sidebar__footer-container svelte-15fp7dn"><!> <!> <!></div></footer>`),j={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 M(n,a){w(a,!0),m(n,j);let T=x(a,`title`,7),M=x(a,`subtitle`,7),N=x(a,`avatar`,7),P=x(a,`expandable`,7,!0),F=x(a,`logOutLabel`,7,`Log out`),I=x(a,`onlogout`,7),L,R=g(!1),z=g(null),B=g(null),V=g(null),H=S(()=>new oe(`(max-width: 780px)`).current),{floatingItemIsDisplayed:U,hideFloatingItem:W,showFloatingItem:G,onTriggerKeydown:ve,onListboxKeydown:K}=se(()=>l(H)?l(B):l(z),()=>l(V),{position:`top`});function ye(){L.dispatchEvent(new CustomEvent(`toggle`,{bubbles:!0,composed:!0}))}let be=S(()=>U?re:ne),xe=S(()=>{if(l(H))return{};let e={id:`trigger-footer`,"aria-expanded":U,"aria-haspopup":`listbox`,"aria-controls":`listbox-footer`};return l(R)?{...e,"aria-expanded":U,onclick:G}:{...e,"aria-expanded":U,onmouseenter:G,onfocus:G,onkeydown:ve,onmouseleave:W,onblur:W}});function q(){I()?.(),L.dispatchEvent(new CustomEvent(`logout`,{bubbles:!0,composed:!0}))}var Se={get title(){return T()},set title(e){T(e),v()},get subtitle(){return M()},set subtitle(e){M(e),v()},get avatar(){return N()},set avatar(e){N(e),v()},get expandable(){return P()},set expandable(e=!0){P(e),v()},get logOutLabel(){return F()},set logOutLabel(e=`Log out`){F(e),v()},get onlogout(){return I()},set onlogout(e){I(e),v()}},J=_e(),Y=C(J);ae(Y,{});var X=d(Y,2),Z=C(X),Ce=n=>{var s=i();O(t(s),()=>l(H)?`div`:`button`,!1,(n,s)=>{p(n,e=>o(z,e,!0),()=>l(z)),b(n,()=>({class:`mc-sidebar__footer-profile mc-sidebar__footer-trigger`,...l(xe)}),void 0,void 0,void 0,`svelte-15fp7dn`);var c=me(),f=t(c),m=e=>{var t=ue();u(()=>{h(t,`src`,N()),h(t,`alt`,T())}),r(e,t)};e(f,e=>{N()&&e(m)});var g=d(f,2),v=t=>{var n=pe(),i=C(n),a=e=>{var t=de(),n=C(t,!0);_(t),u(()=>y(n,T())),r(e,t)};e(i,e=>{T()&&e(a)});var o=d(i,2),s=e=>{var t=fe(),n=C(t,!0);_(t),u(()=>y(n,M())),r(e,t)};e(o,e=>{M()&&e(s)}),_(n),r(t,n)};e(g,e=>{(T()||M())&&e(v)});var x=d(g,2),S=e=>{A(e,{get logOutLabel(){return F()},get expanded(){return l(R)},get onListboxKeydown(){return K},get hideFloatingItem(){return W},onlogout:q,get listbox(){return l(V)},set listbox(e){o(V,e,!0)},children:(e,n)=>{var o=i();D(t(o),a,`default`,{},null),r(e,o)},$$slots:{default:!0}})};e(x,e=>{l(H)||e(S)}),r(s,c)}),r(n,s)};e(Z,e=>{(N()||T()||M())&&e(Ce)});var Q=d(Z,2),$=e=>{var t=he();ie(C(t),{ghost:!0,"aria-label":`Expand`,get"aria-expanded"(){return l(R)},onclick:()=>ye(),$$slots:{icon:(e,t)=>{te(e,{slot:`icon`})}}}),_(t),r(e,t)};e(Q,e=>{P()&&e($)});var we=d(Q,2),Te=e=>{var n=ge(),f=C(n);c(f,()=>l(be),(e,t)=>{t(e,{})}),A(d(f,2),{get logOutLabel(){return F()},get expanded(){return l(R)},get onListboxKeydown(){return K},get hideFloatingItem(){return W},onlogout:q,get listbox(){return l(V)},set listbox(e){o(V,e,!0)},children:(e,n)=>{var o=i();D(t(o),a,`default`,{},null),r(e,o)},$$slots:{default:!0}}),_(n),p(n,e=>o(B,e),()=>l(B)),u(()=>h(n,`aria-expanded`,U)),s(`click`,n,()=>G()),r(e,n)};return e(we,e=>{l(H)&&e(Te)}),_(X),_(J),k(J,()=>ce({setExpanded:e=>o(R,e,!0)})),k(J,()=>le(`M-SIDEBAR-FOOTER`)),p(J,e=>L=e,()=>L),u(()=>f(J,1,E({"mc-sidebar__footer":!0,"mc-sidebar__footer--expanded":l(R),"mc-sidebar__footer--collapsed":!l(R)}),`svelte-15fp7dn`)),r(n,J),ee(Se)}n([`click`]),customElements.define(`m-sidebar-footer`,T(M,{expandable:{attribute:`expandable`,reflect:!0,type:`Boolean`},title:{},subtitle:{},avatar:{},logOutLabel:{},onlogout:{}},[`default`],[],{mode:`open`}));
//# sourceMappingURL=SidebarFooter.js.map