import{k as b,l as d,s as v,o as B,y as q,D as g,F as h,H as C,U as A,X as D,t as F,w as y,A as G,G as k,a3 as z,J as H,m as J,q as m,v as c,z as K,K as M,M as N,N as R,al as S}from"./index.e0fbc3e4.js";function U(n){let e,l,t,s,o;const r=n[7].default,a=H(r,n,n[6],null);return{c(){e=J("button"),a&&a.c(),m(e,"class",l="gr-button gr-button-"+n[3]+" gr-button-"+n[2]+" "+n[4]),m(e,"id",n[0]),c(e,"!hidden",!n[1])},m(i,_){y(i,e,_),a&&a.m(e,null),t=!0,s||(o=K(e,"click",n[8]),s=!0)},p(i,[_]){a&&a.p&&(!t||_&64)&&M(a,r,i,i[6],t?R(r,i[6],_,null):N(i[6]),null),(!t||_&28&&l!==(l="gr-button gr-button-"+i[3]+" gr-button-"+i[2]+" "+i[4]))&&m(e,"class",l),(!t||_&1)&&m(e,"id",i[0]),_&30&&c(e,"!hidden",!i[1])},i(i){t||(g(a,i),t=!0)},o(i){h(a,i),t=!1},d(i){i&&k(e),a&&a.d(i),s=!1,o()}}}function X(n,e,l){let t,{$$slots:s={},$$scope:o}=e,{style:r={}}=e,{elem_id:a=""}=e,{visible:i=!0}=e,{variant:_="secondary"}=e,{size:u="sm"}=e;function w(f){z.call(this,n,f)}return n.$$set=f=>{"style"in f&&l(5,r=f.style),"elem_id"in f&&l(0,a=f.elem_id),"visible"in f&&l(1,i=f.visible),"variant"in f&&l(2,_=f.variant),"size"in f&&l(3,u=f.size),"$$scope"in f&&l(6,o=f.$$scope)},n.$$.update=()=>{n.$$.dirty&32&&l(4,{classes:t}=S(r,["full_width"]),t)},[a,i,_,u,t,r,o,s,w]}class j extends b{constructor(e){super(),d(this,e,X,U,v,{style:5,elem_id:0,visible:1,variant:2,size:3})}}function E(n){let e=n[5](n[3])+"",l;return{c(){l=F(e)},m(t,s){y(t,l,s)},p(t,s){s&40&&e!==(e=t[5](t[3])+"")&&G(l,e)},d(t){t&&k(l)}}}function I(n){let e,l;return e=new j({props:{variant:n[4],elem_id:n[1],style:n[0],visible:n[2],$$slots:{default:[E]},$$scope:{ctx:n}}}),e.$on("click",n[6]),{c(){B(e.$$.fragment)},m(t,s){q(e,t,s),l=!0},p(t,[s]){const o={};s&16&&(o.variant=t[4]),s&2&&(o.elem_id=t[1]),s&1&&(o.style=t[0]),s&4&&(o.visible=t[2]),s&168&&(o.$$scope={dirty:s,ctx:t}),e.$set(o)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){C(e,t)}}}function L(n,e,l){let t;A(n,D,u=>l(5,t=u));let{style:s={}}=e,{elem_id:o=""}=e,{visible:r=!0}=e,{value:a}=e,{variant:i="primary"}=e;function _(u){z.call(this,n,u)}return n.$$set=u=>{"style"in u&&l(0,s=u.style),"elem_id"in u&&l(1,o=u.elem_id),"visible"in u&&l(2,r=u.visible),"value"in u&&l(3,a=u.value),"variant"in u&&l(4,i=u.variant)},[s,o,r,a,i,t,_]}class O extends b{constructor(e){super(),d(this,e,L,I,v,{style:0,elem_id:1,visible:2,value:3,variant:4})}}var Q=O;const T=["static"],V=n=>({type:"string",description:"button label",example_data:n.value||"Run"});export{Q as Component,V as document,T as modes};
