import{D as e,E as t,L as n,M as r,P as i,R as a,T as o,V as s,W as c,_ as l,b as u,f as d,ft as f,it as p,n as m,nt as h,ot as g,q as _,st as v,t as y,v as b}from"../../client.js";import{c as x}from"../../components.js";import"../builtinmenu/BuiltInMenu.js";import"../builtinmenuitem/BuiltInMenuItem.js";var S=i(`<span slot="icon"><!></span>`),C=i(`<m-built-in-menu-item><!></m-built-in-menu-item>`,2),w=i(`<m-built-in-menu></m-built-in-menu>`,2),T={hash:`svelte-1k60ooz`,code:`/**
 * Do not edit directly, this file was auto-generated.
 */.mc-check-list-menu__icon.svelte-1k60ooz {fill:var(--built-in-menu-color-text-default, #404040);}.mc-check-list-menu__icon--selected.svelte-1k60ooz {fill:var(--built-in-menu-color-text-selected, #006902);}`};function E(n,i){v(i,!0),u(n,T);let y=m(i,`selected`,15),E=m(i,`items`,7),D=m(i,`outlined`,7);var O={get selected(){return y()},set selected(e){y(e),p()},get items(){return E()},set items(e){E(e),p()},get outlined(){return D()},set outlined(e){D(e),p()}},k=w();return c(()=>d(k,`selected`,y())),c(()=>d(k,`outlined`,D())),o(k,21,E,t,(t,n,i)=>{let o=h(()=>s(n).href?`a`:`button`);var u=C();d(u,`slot`,`item`),c(()=>d(u,`label`,s(n).label)),c(()=>d(u,`href`,s(n).href)),c(()=>d(u,`target`,s(n).target)),c(()=>d(u,`selected`,y()===i)),c(()=>d(u,`role`,s(o)===`button`?`menuitem`:void 0));var p=_(u),m=e=>{var t=S();x(_(t),{}),f(t),c(()=>l(t,1,b({"mc-check-list-menu__icon":!0,"mc-check-list-menu__icon--selected":y()===i}),`svelte-1k60ooz`)),r(e,t)};e(p,e=>{s(n).checked&&e(m)}),f(u),a(`click`,u,()=>y(i)),r(t,u)}),f(k),r(n,k),g(O)}n([`click`]),customElements.define(`m-check-list-menu`,y(E,{selected:{attribute:`selected`,reflect:!0,type:`Number`},outlined:{attribute:`outlined`,reflect:!0,type:`Boolean`},items:{}},[],[],{mode:`open`}));
//# sourceMappingURL=CheckListMenu.js.map