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