import{C as e,D as t,L as n,M as r,P as i,R as a,V as o,W as s,Y as c,a as l,b as u,d,ft as f,it as p,j as m,n as h,nt as g,ot as _,q as v,st as y,t as b,w as x}from"../../client.js";import{t as S}from"../../accordion-list.state.svelte.js";var C=i(`<span class="mc-accordion__icon svelte-k06wun"><!></span>`),w=i(`<span class="mc-accordion__subtitle svelte-k06wun"> </span>`),T=i(`<p class="svelte-k06wun"> </p>`),E=i(`<div class="mc-accordion__item svelte-k06wun"><div class="mc-accordion__header svelte-k06wun"><h2 class="mc-accordion__title svelte-k06wun"><button class="mc-accordion__trigger svelte-k06wun"><!> <div class="mc-accordion__title-wrapper svelte-k06wun"><span class="svelte-k06wun"> </span> <!></div></button></h2></div> <div class="mc-accordion__content svelte-k06wun" role="region"><!></div></div>`),D={hash:`svelte-k06wun`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */
@supports (interpolate-size: allow-keywords) {
}.mc-accordion__item.svelte-k06wun {border-bottom:1px solid var(--accordion-list-color-border, #cccccc);}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__item.svelte-k06wun {transition:border-color 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);}
}
@media (prefers-reduced-motion: reduce) {.mc-accordion__item.svelte-k06wun {transition:none;}
}.mc-accordion__item.svelte-k06wun: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-k06wun {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-k06wun {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-k06wun {display:flex;flex-direction:column;flex:1;min-width:0;}.mc-accordion__title-wrapper.svelte-k06wun > :where(.svelte-k06wun) {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis;}.mc-accordion__subtitle.svelte-k06wun {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-k06wun {
    /* 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-k06wun {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger.svelte-k06wun:focus-visible {outline:none;}.mc-accordion__trigger.svelte-k06wun: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-k06wun:disabled {cursor:not-allowed;opacity:0.5;pointer-events:none;}.mc-accordion__trigger.svelte-k06wun {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-k06wun::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-k06wun::before {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger.svelte-k06wun::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-k06wun:not(.mc-accordion__header:where(.svelte-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun)) {padding-right:2.25rem;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__trigger.svelte-k06wun:not(.mc-accordion__header:where(.svelte-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun))::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-k06wun:not(.mc-accordion__header:where(.svelte-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun))::after {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger.svelte-k06wun:not(.mc-accordion__header:where(.svelte-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun))::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-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun))[aria-expanded=true].svelte-k06wun::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-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun))[aria-expanded=true].svelte-k06wun::after {
    /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
}.mc-accordion__trigger:not(.mc-accordion__header:where(.svelte-k06wun):is(summary) .mc-accordion__trigger:where(.svelte-k06wun))[aria-expanded=true].svelte-k06wun::after {transform:translateY(-50%) rotateX(180deg);}.mc-accordion__trigger.svelte-k06wun:is(button:where(.svelte-k06wun)) {width:100%;}.mc-accordion__trigger.svelte-k06wun:hover::before {background-color:var(--accordion-list-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-accordion__trigger.svelte-k06wun: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-k06wun:active::before {background-color:var(--accordion-list-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-accordion__trigger.svelte-k06wun: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-k06wun {flex-shrink:0;width:2rem;height:2rem;fill:currentcolor;}.mc-accordion__content.svelte-k06wun {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;}.mc-accordion__content.svelte-k06wun > :where(.svelte-k06wun):first-child {margin-top:0;}.mc-accordion__content.svelte-k06wun > :where(.svelte-k06wun):last-child {margin-bottom:0;}
@media (prefers-reduced-motion: no-preference) {.mc-accordion__content.svelte-k06wun {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-k06wun {transition:none;}
}.mc-accordion__content[aria-hidden=false].svelte-k06wun {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-k06wun {
      /* 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-k06wun {
      /* stylelint-disable-next-line no-invalid-position-declaration */transition:none;}
  }.mc-accordion__content.svelte-k06wun {height:0;max-height:none;padding-top:0;padding-bottom:0;}.mc-accordion__content[aria-hidden=false].svelte-k06wun {height:auto;padding-top:0.125rem;padding-bottom:1rem;}
}`};function O(n,i){let b=e(i);y(i,!0),u(n,D);let O=h(i,`id`,7),k=h(i,`title`,7),A=h(i,`subtitle`,7),j=h(i,`content`,7),M=h(i,`onUpdateOpen`,7),N,P=g(()=>S.openIds.includes(O()));function F(){let e={id:O(),open:o(P)};M()?.(e);let t=new CustomEvent(`update:open`,{detail:e,bubbles:!0,composed:!0});N.dispatchEvent(t)}var I={get id(){return O()},set id(e){O(e),p()},get title(){return k()},set title(e){k(e),p()},get subtitle(){return A()},set subtitle(e){A(e),p()},get content(){return j()},set content(e){j(e),p()},get onUpdateOpen(){return M()},set onUpdateOpen(e){M(e),p()}},L=E(),R=v(L),z=v(R),B=v(z),V=v(B),H=e=>{var t=C();x(v(t),i,`icon`,{},null),f(t),r(e,t)};t(V,e=>{b.icon&&e(H)});var U=c(V,2),W=v(U),G=v(W,!0);f(W);var K=c(W,2),q=e=>{var t=w(),n=v(t,!0);f(t),s(()=>m(n,A())),r(e,t)};t(K,e=>{A()&&e(q)}),f(U),f(B),f(z),f(R);var J=c(R,2);return x(v(J),i,`content`,{},e=>{var t=T(),n=v(t,!0);f(t),s(()=>m(n,j()||``)),r(e,t)}),f(J),f(L),l(L,e=>N=e,()=>N),s(()=>{d(B,`id`,`accordion-${O()}`),d(B,`aria-controls`,`content-${O()}`),d(B,`aria-expanded`,o(P)),m(G,k()),d(J,`id`,`content-${O()}`),d(J,`aria-hidden`,!o(P)),d(J,`aria-labelledby`,`accordion-${O()}`)}),a(`click`,B,()=>F()),r(n,L),_(I)}n([`click`]),customElements.define(`m-accordion-list-item`,b(O,{id:{},title:{},subtitle:{},content:{},onUpdateOpen:{}},[`icon`,`content`],[],{mode:`open`}));
//# sourceMappingURL=AccordionListItem.js.map