import{S as c,i as _,s as m,M as h,e as z,a as r,b,c as k,O as B,P as C,Q as S,x as v,y as g,j as d,G as y,u as j,v as q,z as w,L as G,X as L,f as M,h as O}from"./index.bbdd6a1e.js";function P(s){let t,a,e,l,o;const f=s[4].default,i=h(f,s,s[3],null);return{c(){t=z("button"),i&&i.c(),r(t,"style",s[1]),r(t,"class",a="gr-button gr-button-"+s[2]+" gr-button-"+s[0])},m(u,n){b(u,t,n),i&&i.m(t,null),e=!0,l||(o=k(t,"click",s[5]),l=!0)},p(u,[n]){i&&i.p&&(!e||n&8)&&B(i,f,u,u[3],e?S(f,u[3],n,null):C(u[3]),null),(!e||n&2)&&r(t,"style",u[1]),(!e||n&5&&a!==(a="gr-button gr-button-"+u[2]+" gr-button-"+u[0]))&&r(t,"class",a)},i(u){e||(v(i,u),e=!0)},o(u){g(i,u),e=!1},d(u){u&&d(t),i&&i.d(u),l=!1,o()}}}function Q(s,t,a){let{$$slots:e={},$$scope:l}=t,{variant:o="secondary"}=t,{style:f=""}=t,{size:i="lg"}=t;function u(n){y.call(this,s,n)}return s.$$set=n=>{"variant"in n&&a(0,o=n.variant),"style"in n&&a(1,f=n.style),"size"in n&&a(2,i=n.size),"$$scope"in n&&a(3,l=n.$$scope)},[o,f,i,l,e,u]}class X extends c{constructor(t){super(),_(this,t,Q,P,m,{variant:0,style:1,size:2})}}function A(s){let t=s[3](s[0])+"",a;return{c(){a=M(t)},m(e,l){b(e,a,l)},p(e,l){l&9&&t!==(t=e[3](e[0])+"")&&O(a,t)},d(e){e&&d(a)}}}function D(s){let t,a;return t=new X({props:{variant:s[2],style:s[1],$$slots:{default:[A]},$$scope:{ctx:s}}}),t.$on("click",s[5]),{c(){j(t.$$.fragment)},m(e,l){q(t,e,l),a=!0},p(e,[l]){const o={};l&4&&(o.variant=e[2]),l&2&&(o.style=e[1]),l&73&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){a||(v(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){w(t,e)}}}function E(s,t,a){let e;G(s,L,n=>a(3,e=n));let{value:l}=t,{default_value:o}=t,{style:f=""}=t,{variant:i="primary"}=t;o&&(l=o);function u(n){y.call(this,s,n)}return s.$$set=n=>{"value"in n&&a(0,l=n.value),"default_value"in n&&a(4,o=n.default_value),"style"in n&&a(1,f=n.style),"variant"in n&&a(2,i=n.variant)},[l,f,i,e,o,u]}class F extends c{constructor(t){super(),_(this,t,E,D,m,{value:0,default_value:4,style:1,variant:2})}}var I=F;const J=["static"];export{I as Component,J as modes};
