import{J as e,M as t,P as n,V as r,W as i,Y as a,b as o,ft as s,it as c,j as l,l as u,n as d,nt as f,ot as p,q as m,r as h,st as g,t as _,w as v,x as y}from"../../client.js";import{_ as b}from"../../components.js";var x=n(`<!> <span class="mc-built-in-menu__label svelte-eugnvn"> </span> <!>`,1),S=n(`<li><!></li>`),C={hash:`svelte-eugnvn`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-built-in-menu.svelte-eugnvn {display:inline-block;width:15rem;padding:0.5rem;background-color:var(--built-in-menu-color-background-default, #ffffff);border-radius:var(--border-radius-s, 0.25rem);}.mc-built-in-menu--outlined.svelte-eugnvn {border:1px solid var(--color-border-primary, #cccccc);}.mc-built-in-menu__list.svelte-eugnvn {list-style:none;margin:0;padding:0;}.mc-built-in-menu__item.svelte-eugnvn {display:flex;align-items:center;height:3.5rem;border-bottom:1px solid var(--divider-color-primary, #cccccc);}.mc-built-in-menu__item--selected.svelte-eugnvn .mc-built-in-menu__button:where(.svelte-eugnvn),
.mc-built-in-menu__item--selected.svelte-eugnvn .mc-built-in-menu__link:where(.svelte-eugnvn) {background-color:var(--built-in-menu-color-background-selected, #ebf5de);}.mc-built-in-menu__item--selected.svelte-eugnvn .mc-built-in-menu__label:where(.svelte-eugnvn) {color:var(--built-in-menu-color-text-selected, #006902);font-weight:var(--font-weight-semi-bold, 600);}.mc-built-in-menu__item--selected.svelte-eugnvn .mc-built-in-menu__icon:where(.svelte-eugnvn) {fill:var(--built-in-menu-color-text-selected, #006902);}.mc-built-in-menu__item.svelte-eugnvn:not(.mc-built-in-menu__item--selected):hover .mc-built-in-menu__button:where(.svelte-eugnvn), .mc-built-in-menu__item.svelte-eugnvn:not(.mc-built-in-menu__item--selected):hover .mc-built-in-menu__link:where(.svelte-eugnvn),
.mc-built-in-menu__item.svelte-eugnvn:not(.mc-built-in-menu__item--selected) .mc-built-in-menu__button:where(.svelte-eugnvn):focus-visible,
.mc-built-in-menu__item.svelte-eugnvn:not(.mc-built-in-menu__item--selected) .mc-built-in-menu__link:where(.svelte-eugnvn):focus-visible {background-color:var(--built-in-menu-color-background-hover, rgba(0, 0, 0, 0.05));}.mc-built-in-menu__item.svelte-eugnvn:not(.mc-built-in-menu__item--selected) .mc-built-in-menu__label:where(.svelte-eugnvn) {color:var(--built-in-menu-color-text-default, #404040);}.mc-built-in-menu__item--selected.svelte-eugnvn, .mc-built-in-menu__item.svelte-eugnvn:last-child, .mc-built-in-menu__item.svelte-eugnvn:hover {border-bottom:1px solid transparent;}.mc-built-in-menu__icon.svelte-eugnvn {flex:0 0 auto;}.mc-built-in-menu__button.svelte-eugnvn {width:100%;height:100%;border-radius:var(--border-radius-s, 0.25rem);background-color:var(--built-in-menu-color-background-default, #ffffff);padding:0 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;overflow:hidden;border:none;cursor:pointer;color:var(--built-in-menu-color-text-default, #404040);}.mc-built-in-menu__link.svelte-eugnvn {width:100%;height:100%;border-radius:var(--border-radius-s, 0.25rem);background-color:var(--built-in-menu-color-background-default, #ffffff);padding:0 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;overflow:hidden;text-decoration:none;}.mc-built-in-menu__label.svelte-eugnvn {flex:1 1 auto;margin-left:0.5rem;margin-right:1rem;font-size:var(--font-size-150, 1rem);font-weight:var(--font-weight-regular, 400);line-height:var(--line-height-s, 1.3);
  /* Truncature */overflow:hidden;display:-webkit-box;text-align:left;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;}`};function w(n,_){g(_,!0),o(n,C);let w=d(_,`label`,7),T=d(_,`href`,7),E=d(_,`target`,7),D=d(_,`selected`,7),O=d(_,`class`,7),k=h(_,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`label`,`href`,`target`,`selected`,`class`]),A=f(()=>T()?`a`:`button`);var j={get label(){return w()},set label(e){w(e),c()},get href(){return T()},set href(e){T(e),c()},get target(){return E()},set target(e){E(e),c()},get selected(){return D()},set selected(e){D(e),c()},get class(){return O()},set class(e){O(e),c()}},M=S();return u(M,()=>({class:{"mc-built-in-menu__item":!0,"mc-built-in-menu__item--selected":D(),className:O()},...D()?{"aria-current":!0}:{},...k}),void 0,void 0,void 0,`svelte-eugnvn`),y(m(M),()=>r(A),!1,(n,o)=>{u(n,()=>({class:`mc-built-in-menu__${r(A)===`button`?`button`:`link`}`,...r(A)===`a`&&{href:T(),target:E()}}),void 0,void 0,void 0,`svelte-eugnvn`);var c=x(),d=e(c);v(d,_,`icon`,{},null);var f=a(d,2),p=m(f,!0);s(f),b(a(f,2),{className:`mc-built-in-menu__icon`}),i(()=>l(p,w())),t(o,c)}),s(M),t(n,M),p(j)}customElements.define(`m-built-in-menu-item`,_(w,{selected:{attribute:`selected`,reflect:!0,type:`Boolean`},label:{},href:{},target:{},class:{}},[`icon`],[],{mode:`open`}));
//# sourceMappingURL=BuiltInMenuItem.js.map