import{S as c,i as _,s as m,V as h,b as k,g as f,a as d,u as p,Z as q,_ as B,a0 as C,t as v,p as y,k as g,K as b,f as S,m as j,q as w,c as K,j as V}from"./vendor.906e418a.js";function Z(l){let t,a,e,i,u;const o=l[3].default,s=h(o,l,l[2],null);return{c(){t=k("button"),s&&s.c(),f(t,"style",l[1]),f(t,"class",a=l[0]+" flex-1 px-4 py-2 bg-gray-100 rounded transition svelte-99qade")},m(n,r){d(n,t,r),s&&s.m(t,null),e=!0,i||(u=p(t,"click",l[4]),i=!0)},p(n,[r]){s&&s.p&&(!e||r&4)&&q(s,o,n,n[2],e?C(o,n[2],r,null):B(n[2]),null),(!e||r&2)&&f(t,"style",n[1]),(!e||r&1&&a!==(a=n[0]+" flex-1 px-4 py-2 bg-gray-100 rounded transition svelte-99qade"))&&f(t,"class",a)},i(n){e||(v(s,n),e=!0)},o(n){y(s,n),e=!1},d(n){n&&g(t),s&&s.d(n),i=!1,u()}}}function z(l,t,a){let{$$slots:e={},$$scope:i}=t,{variant:u="primary"}=t,{style:o}=t;function s(n){b.call(this,l,n)}return l.$$set=n=>{"variant"in n&&a(0,u=n.variant),"style"in n&&a(1,o=n.style),"$$scope"in n&&a(2,i=n.$$scope)},[u,o,i,e,s]}class A extends c{constructor(t){super();_(this,t,z,Z,m,{variant:0,style:1})}}function D(l){let t;return{c(){t=K(l[0])},m(a,e){d(a,t,e)},p(a,e){e&1&&V(t,a[0])},d(a){a&&g(t)}}}function E(l){let t,a;return t=new A({props:{variant:l[2],style:l[1],$$slots:{default:[D]},$$scope:{ctx:l}}}),t.$on("click",l[3]),{c(){S(t.$$.fragment)},m(e,i){j(t,e,i),a=!0},p(e,[i]){const u={};i&4&&(u.variant=e[2]),i&2&&(u.style=e[1]),i&17&&(u.$$scope={dirty:i,ctx:e}),t.$set(u)},i(e){a||(v(t.$$.fragment,e),a=!0)},o(e){y(t.$$.fragment,e),a=!1},d(e){w(t,e)}}}function F(l,t,a){let{default_value:e}=t,{style:i=""}=t,{variant:u="primary"}=t;function o(s){b.call(this,l,s)}return l.$$set=s=>{"default_value"in s&&a(0,e=s.default_value),"style"in s&&a(1,i=s.style),"variant"in s&&a(2,u=s.variant)},[e,i,u,o]}class G extends c{constructor(t){super();_(this,t,F,E,m,{default_value:0,style:1,variant:2})}}var I=G;const J=["static"];export{I as Component,J as modes};
