import{S as _,i as x,s as j,b,g as s,w as k,a as z,h as d,u as I,C as g,k as C,H as S,E as B,F as E,f as H,m as A,G as D,t as F,p as G,q as K,A as q,a6 as w,K as L,d as M,a7 as y}from"./vendor.906e418a.js";/* empty css                                            */import{g as v}from"./index.9cf03fca.js";function T(a){let e,t,n,u;return{c(){e=b("div"),t=b("button"),t.innerHTML='<div class="checkbox w-4 h-4 bg-white flex items-center justify-center svelte-jperqy"><svg class="check opacity-0 h-3 w-4 svelte-jperqy" viewBox="-10 -10 20 20"><line x1="-7.5" y1="0" x2="-2.5" y2="5" stroke="white" stroke-width="4" stroke-linecap="round" class="svelte-jperqy"></line><line x1="-2.5" y1="5" x2="7.5" y2="-7.5" stroke="white" stroke-width="4" stroke-linecap="round" class="svelte-jperqy"></line></svg></div>',s(t,"class","checkbox-item py-2 px-3 rounded cursor-pointer svelte-jperqy"),k(t,"selected",a[0]),s(e,"class","input-checkbox inline-block svelte-jperqy"),s(e,"theme",a[1])},m(r,l){z(r,e,l),d(e,t),n||(u=I(e,"click",a[2]),n=!0)},p(r,[l]){l&1&&k(t,"selected",r[0]),l&2&&s(e,"theme",r[1])},i:g,o:g,d(r){r&&C(e),n=!1,u()}}}function J(a,e,t){let{value:n}=e,{disabled:u=!1}=e,{theme:r="default"}=e;const l=S();function i(){l("change",!n),t(0,n=!n)}return a.$$set=c=>{"value"in c&&t(0,n=c.value),"disabled"in c&&t(3,u=c.disabled),"theme"in c&&t(1,r=c.theme)},[n,r,i,u]}class N extends _{constructor(e){super();x(this,e,J,T,j,{value:0,disabled:3,theme:1})}}function O(a){let e,t,n;function u(l){a[4](l)}let r={theme:a[1],style:a[2],disabled:a[3]==="static"};return a[0]!==void 0&&(r.value=a[0]),e=new N({props:r}),B.push(()=>E(e,"value",u)),e.$on("change",a[5]),{c(){H(e.$$.fragment)},m(l,i){A(e,l,i),n=!0},p(l,[i]){const c={};i&2&&(c.theme=l[1]),i&4&&(c.style=l[2]),i&8&&(c.disabled=l[3]==="static"),!t&&i&1&&(t=!0,c.value=l[0],D(()=>t=!1)),e.$set(c)},i(l){n||(F(e.$$.fragment,l),n=!0)},o(l){G(e.$$.fragment,l),n=!1},d(l){K(e,l)}}}function P(a,e,t){let{value:n=!1}=e,{theme:u}=e,{style:r}=e,{mode:l}=e;e.default&&(n=e.default);function i(o){n=o,t(0,n)}function c(o){L.call(this,a,o)}return a.$$set=o=>{t(6,e=q(q({},e),w(o))),"value"in o&&t(0,n=o.value),"theme"in o&&t(1,u=o.theme),"style"in o&&t(2,r=o.style),"mode"in o&&t(3,l=o.mode)},e=w(e),[n,u,r,l,i,c]}class Q extends _{constructor(e){super();x(this,e,P,O,j,{value:0,theme:1,style:2,mode:3})}}var Z=Q;function R(a){let e,t,n,u,r,l,i,c,o,m;return{c(){e=b("div"),t=b("button"),n=b("div"),r=M(),l=b("div"),i=y("svg"),c=y("line"),o=y("line"),s(n,"class","checkbox w-4 h-4 bg-white flex items-center justify-center border border-gray-400 box-border svelte-1bajzuq"),s(n,"style",u="background-color: "+v(a[1][0])),s(c,"x1","-7.5"),s(c,"y1","0"),s(c,"x2","-2.5"),s(c,"y2","5"),s(c,"stroke","black"),s(c,"stroke-width","4"),s(c,"stroke-linecap","round"),s(c,"class","svelte-1bajzuq"),s(o,"x1","-2.5"),s(o,"y1","5"),s(o,"x2","7.5"),s(o,"y2","-7.5"),s(o,"stroke","black"),s(o,"stroke-width","4"),s(o,"stroke-linecap","round"),s(o,"class","svelte-1bajzuq"),s(i,"class","check h-3 w-4 svelte-1bajzuq"),s(i,"viewBox","-10 -10 20 20"),s(l,"class","checkbox w-4 h-4 bg-white flex items-center justify-center border border-gray-400 box-border svelte-1bajzuq"),s(l,"style",m="background-color: "+v(a[1][1])),s(t,"class","checkbox-item py-2 px-3 rounded cursor-pointer flex gap-1 svelte-1bajzuq"),k(t,"selected",a[0]),s(e,"class","input-checkbox inline-block svelte-1bajzuq"),s(e,"theme",a[2]),s(e,"style",a[3])},m(h,f){z(h,e,f),d(e,t),d(t,n),d(t,r),d(t,l),d(l,i),d(i,c),d(i,o)},p(h,[f]){f&2&&u!==(u="background-color: "+v(h[1][0]))&&s(n,"style",u),f&2&&m!==(m="background-color: "+v(h[1][1]))&&s(l,"style",m),f&1&&k(t,"selected",h[0]),f&4&&s(e,"theme",h[2]),f&8&&s(e,"style",h[3])},i:g,o:g,d(h){h&&C(e)}}}function U(a,e,t){let{value:n}=e,{interpretation:u}=e,{theme:r}=e,{style:l}=e;return a.$$set=i=>{"value"in i&&t(0,n=i.value),"interpretation"in i&&t(1,u=i.interpretation),"theme"in i&&t(2,r=i.theme),"style"in i&&t(3,l=i.style)},[n,u,r,l]}class V extends _{constructor(e){super();x(this,e,U,R,j,{value:0,interpretation:1,theme:2,style:3})}}var p=V;const $=["static","dynamic"];export{Z as Component,p as Interpretation,$ as modes};
