import{G as e,M as t,P as n,X as r,a as i,b as a,ft as o,it as s,k as c,l,n as u,ot as d,q as f,r as p,st as m,t as h,w as g}from"../../client.js";import{t as _}from"../../custom-element-forward-events.js";import{r as v}from"../../index-client.js";import{n as y,t as b}from"../../accordion-list.state.svelte.js";var x=n(`<div><!></div>`),S={hash:`svelte-osf0jb`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-accordion.svelte-osf0jb {border-radius:var(--border-radius-m, 0.5rem);background-color:var(--accordion-list-color-background-standard, #ffffff);color:var(--accordion-list-color-text-title, #000000);border:1px solid var(--accordion-list-color-border, #cccccc);box-sizing:border-box;overflow:hidden;}
@supports (interpolate-size: allow-keywords) {.mc-accordion.svelte-osf0jb {interpolate-size:allow-keywords;}
}.mc-accordion__item.svelte-osf0jb {border-bottom:1px solid var(--accordion-list-color-border, #cccccc);}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__item.svelte-osf0jb {transition:border-color 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__item.svelte-osf0jb {transition:none;}
}.mc-accordion__item.svelte-osf0jb:last-child {border-bottom:none;}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
  }
  @media (prefers-reduced-motion: reduce) {
  }
}
@media (prefers-reduced-motion: no-preference) {
}
@media (prefers-reduced-motion: reduce) {
}.mc-accordion__header.svelte-osf0jb {position:relative;background-color:var(--accordion-list-color-background-standard, #ffffff);}
@media (prefers-reduced-motion: no-preference) {
}
@media (prefers-reduced-motion: reduce) {
}.mc-accordion__title.svelte-osf0jb {font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-semi-bold, 600);line-height:var(--line-height-m, 1.5);display:block;margin-block:0;padding:0;font-family:inherit;position:relative;z-index:1;}.mc-accordion__title-wrapper.svelte-osf0jb {display:flex;flex-direction:column;flex:1;min-width:0;}.mc-accordion__subtitle.svelte-osf0jb {font-size:var(--font-size-100, 0.875rem);font-weight:var(--font-weight-light, 300);line-height:var(--line-height-m, 1.5);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis;margin-block:0;padding:0;color:var(--accordion-list-color-text-subtitle, #666666);position:relative;z-index:1;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__trigger.svelte-osf0jb {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:background-color 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67), box-shadow 200ms ease;}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__trigger.svelte-osf0jb {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger.svelte-osf0jb:focus-visible {outline:none;}.mc-accordion__trigger.svelte-osf0jb:focus-visible::before {box-shadow:inset 0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-outer, #000000)), inset 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-mid, #ffffff));outline:0.125rem solid transparent;outline-offset:0.125rem;}.mc-accordion__trigger.svelte-osf0jb:disabled, .mc-accordion__trigger[disabled].svelte-osf0jb {cursor:not-allowed;opacity:0.5;pointer-events:none;}.mc-accordion__trigger.svelte-osf0jb {display:flex;align-items:center;gap:0.5rem;padding:1rem 0.75rem;margin-block:0;background-color:transparent;border:0;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;position:relative;text-align:left;text-decoration:none;text-transform:none;vertical-align:baseline;appearance:none;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__trigger.svelte-osf0jb::before {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:background-color 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67), box-shadow 200ms ease;}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__trigger.svelte-osf0jb::before {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger.svelte-osf0jb::before {content:"";position:absolute;inset:0.25rem;background-color:transparent;pointer-events:none;z-index:-1;outline:0 solid transparent;outline-offset:-0.125rem;border-radius:var(--border-radius-s, 0.25rem);}.mc-accordion__trigger.svelte-osf0jb:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb)) {padding-right:2.25rem;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__trigger.svelte-osf0jb:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb))::after {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__trigger.svelte-osf0jb:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb))::after {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger.svelte-osf0jb:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb))::after {transform:translateY(-50%) rotateX(0deg);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1rem' width='1rem' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E") no-repeat center/contain;content:"";position:absolute;right:1rem;top:50%;flex-shrink:0;width:1rem;height:1rem;background-color:var(--accordion-list-color-text-title, #000000);z-index:1;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__trigger:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb))[aria-expanded=true].svelte-osf0jb::after {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__trigger:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb))[aria-expanded=true].svelte-osf0jb::after {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger:not(.mc-accordion__header:where(.svelte-osf0jb):is(summary) .mc-accordion__trigger:where(.svelte-osf0jb))[aria-expanded=true].svelte-osf0jb::after {transform:translateY(-50%) rotateX(180deg);}.mc-accordion__trigger.svelte-osf0jb:hover::before {background-color:var(--accordion-list-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-accordion__trigger.svelte-osf0jb:hover::after {mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1rem' width='1rem' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E") no-repeat center/contain;}.mc-accordion__trigger.svelte-osf0jb:active::before {background-color:var(--accordion-list-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-accordion__trigger.svelte-osf0jb:active::after {mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='1rem' width='1rem' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5a1 1 0 01-.71-.29l-5-5a1 1 0 011.42-1.42L8 9.09l4.29-4.3a1 1 0 111.42 1.42l-5 5a1 1 0 01-.71.29z'/%3E%3C/svg%3E") no-repeat center/contain;}.mc-accordion__icon.svelte-osf0jb {flex-shrink:0;width:2rem;height:2rem;fill:currentcolor;}.mc-accordion__content.svelte-osf0jb {font-size:var(--font-size-100, 0.875rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-m, 1.5);background-color:var(--accordion-list-color-background-standard, #ffffff);overflow:hidden;padding:0 0.75rem;max-height:0;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__content.svelte-osf0jb {transition:max-height 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67), padding 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__content.svelte-osf0jb {transition:none;}
}.mc-accordion__content--open.svelte-osf0jb {max-height:9999vh;padding-top:0.125rem;padding-bottom:1rem;}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {.mc-accordion__content.svelte-osf0jb {
      /* stylelint-disable-next-line no-invalid-position-declaration */transition:height 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67), padding 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67), content-visibility 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
      /* stylelint-disable-next-line no-invalid-position-declaration */transition-behavior:allow-discrete;}
  }
  @media (prefers-reduced-motion: reduce) {.mc-accordion__content.svelte-osf0jb {
      /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
  }.mc-accordion__content.svelte-osf0jb {height:0;max-height:none;padding-top:0;padding-bottom:0;}.mc-accordion__content--open.svelte-osf0jb {height:auto;padding-top:0.125rem;padding-bottom:1rem;}
}.mc-accordion--ghost.svelte-osf0jb {background-color:transparent;border:none;}`};function C(n,h){m(h,!0),a(n,S);let _=u(h,`appearance`,7,`standard`),C=u(h,`behavior`,7,`multiple`),w=u(h,`value`,31,()=>r([])),T=u(h,`class`,7),E=p(h,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`appearance`,`behavior`,`value`,`class`]),D;e(()=>{y([...w()])}),c(()=>{let e=e=>{let t=e.detail.id;if(C()===`single`)y(b.openIds.includes(t)?[]:[t]),w([t]);else{let e=new v([...b.openIds]);e.has(t)?e.delete(t):e.add(t),y([...e]),w([...b.openIds])}};return D.addEventListener(`update:open`,e),()=>{D.removeEventListener(`update:open`,e)}});var O={get appearance(){return _()},set appearance(e=`standard`){_(e),s()},get behavior(){return C()},set behavior(e=`multiple`){C(e),s()},get value(){return w()},set value(e=[]){w(e),s()},get class(){return T()},set class(e){T(e),s()}},k=x();return l(k,()=>({class:[`mc-accordion`,`mc-accordion--${_()}`,T()],...E}),void 0,void 0,void 0,`svelte-osf0jb`),g(f(k),h,`default`,{},null),o(k),i(k,e=>D=e,()=>D),t(n,k),d(O)}customElements.define(`m-accordion-list`,h(C,{appearance:{},behavior:{},value:{},class:{}},[`default`],[],{mode:`open`},_));
//# sourceMappingURL=AccordionList.js.map