import{S as U,i as z,s as A,G as B,H as D,I as L,C as g,M as F,g as j,E as C,J as G,K as O,F as H,q as w,a0 as P,r as Q,a8 as R,e as I,m as S,p as h,t as k,n as T,x as V,$ as W,b as J,a as K,h as X,j as Y,l as Z,o as y,k as M,y as E}from"./index-61322792.js";/* empty css                                                  */import{B as x}from"./Button-013d2b37.js";import{I as $}from"./Info-511b1a9c.js";/* empty css                                                    */function ee(l){let e,t,a,s,u,_,f;return{c(){e=B("label"),t=B("input"),a=D(),s=B("span"),u=L(l[2]),t.disabled=l[1],g(t,"type","checkbox"),g(t,"name","test"),g(t,"data-testid","checkbox"),g(t,"class","svelte-1ojmf70"),g(s,"class","ml-2 svelte-1ojmf70"),g(e,"class","svelte-1ojmf70"),F(e,"disabled",l[1])},m(c,b){j(c,e,b),C(e,t),t.checked=l[0],C(e,a),C(e,s),C(s,u),_||(f=[G(t,"change",l[5]),G(t,"input",l[6])],_=!0)},p(c,[b]){b&2&&(t.disabled=c[1]),b&1&&(t.checked=c[0]),b&4&&O(u,c[2]),b&2&&F(e,"disabled",c[1])},i:H,o:H,d(c){c&&w(e),_=!1,P(f)}}}function te(l,e,t){let{value:a}=e,{value_is_output:s=!1}=e,{disabled:u=!1}=e,{label:_}=e;const f=Q();function c(){f("change",a),s||f("input")}R(()=>{t(4,s=!1)});function b(){a=this.checked,t(0,a)}const o=d=>{t(0,a=d.currentTarget.checked),f("select",{index:0,value:_,selected:d.currentTarget.checked})};return l.$$set=d=>{"value"in d&&t(0,a=d.value),"value_is_output"in d&&t(4,s=d.value_is_output),"disabled"in d&&t(1,u=d.disabled),"label"in d&&t(2,_=d.label)},l.$$.update=()=>{l.$$.dirty&1&&c()},[a,u,_,f,s,b,o]}class ae extends U{constructor(e){super(),z(this,e,te,ee,A,{value:0,value_is_output:4,disabled:1,label:2})}}function N(l){let e,t;return e=new $({props:{$$slots:{default:[le]},$$scope:{ctx:l}}}),{c(){I(e.$$.fragment)},m(a,s){S(e,a,s),t=!0},p(a,s){const u={};s&32832&&(u.$$scope={dirty:s,ctx:a}),e.$set(u)},i(a){t||(h(e.$$.fragment,a),t=!0)},o(a){k(e.$$.fragment,a),t=!1},d(a){T(e,a)}}}function le(l){let e;return{c(){e=L(l[6])},m(t,a){j(t,e,a)},p(t,a){a&64&&O(e,t[6])},d(t){t&&w(e)}}}function se(l){let e,t,a,s,u,_,f;const c=[l[9]];let b={};for(let n=0;n<c.length;n+=1)b=V(b,c[n]);e=new W({props:b});let o=l[6]&&N(l);function d(n){l[10](n)}function p(n){l[11](n)}let v={label:l[5],disabled:l[7]==="static"};return l[0]!==void 0&&(v.value=l[0]),l[1]!==void 0&&(v.value_is_output=l[1]),s=new ae({props:v}),J.push(()=>K(s,"value",d)),J.push(()=>K(s,"value_is_output",p)),s.$on("change",l[12]),s.$on("input",l[13]),s.$on("select",l[14]),{c(){I(e.$$.fragment),t=D(),o&&o.c(),a=D(),I(s.$$.fragment)},m(n,m){S(e,n,m),j(n,t,m),o&&o.m(n,m),j(n,a,m),S(s,n,m),f=!0},p(n,m){const q=m&512?X(c,[Y(n[9])]):{};e.$set(q),n[6]?o?(o.p(n,m),m&64&&h(o,1)):(o=N(n),o.c(),h(o,1),o.m(a.parentNode,a)):o&&(Z(),k(o,1,1,()=>{o=null}),y());const r={};m&32&&(r.label=n[5]),m&128&&(r.disabled=n[7]==="static"),!u&&m&1&&(u=!0,r.value=n[0],M(()=>u=!1)),!_&&m&2&&(_=!0,r.value_is_output=n[1],M(()=>_=!1)),s.$set(r)},i(n){f||(h(e.$$.fragment,n),h(o),h(s.$$.fragment,n),f=!0)},o(n){k(e.$$.fragment,n),k(o),k(s.$$.fragment,n),f=!1},d(n){T(e,n),n&&w(t),o&&o.d(n),n&&w(a),T(s,n)}}}function ne(l){let e,t;return e=new x({props:{visible:l[4],elem_id:l[2],elem_classes:l[3],disable:typeof l[8].container=="boolean"&&!l[8].container,$$slots:{default:[se]},$$scope:{ctx:l}}}),{c(){I(e.$$.fragment)},m(a,s){S(e,a,s),t=!0},p(a,[s]){const u={};s&16&&(u.visible=a[4]),s&4&&(u.elem_id=a[2]),s&8&&(u.elem_classes=a[3]),s&256&&(u.disable=typeof a[8].container=="boolean"&&!a[8].container),s&33507&&(u.$$scope={dirty:s,ctx:a}),e.$set(u)},i(a){t||(h(e.$$.fragment,a),t=!0)},o(a){k(e.$$.fragment,a),t=!1},d(a){T(e,a)}}}function ie(l,e,t){let{elem_id:a=""}=e,{elem_classes:s=[]}=e,{visible:u=!0}=e,{value:_=!1}=e,{value_is_output:f=!1}=e,{label:c="Checkbox"}=e,{info:b=void 0}=e,{mode:o}=e,{style:d={}}=e,{loading_status:p}=e;function v(i){_=i,t(0,_)}function n(i){f=i,t(1,f)}function m(i){E.call(this,l,i)}function q(i){E.call(this,l,i)}function r(i){E.call(this,l,i)}return l.$$set=i=>{"elem_id"in i&&t(2,a=i.elem_id),"elem_classes"in i&&t(3,s=i.elem_classes),"visible"in i&&t(4,u=i.visible),"value"in i&&t(0,_=i.value),"value_is_output"in i&&t(1,f=i.value_is_output),"label"in i&&t(5,c=i.label),"info"in i&&t(6,b=i.info),"mode"in i&&t(7,o=i.mode),"style"in i&&t(8,d=i.style),"loading_status"in i&&t(9,p=i.loading_status)},[_,f,a,s,u,c,b,o,d,p,v,n,m,q,r]}class ue extends U{constructor(e){super(),z(this,e,ie,ne,A,{elem_id:2,elem_classes:3,visible:4,value:0,value_is_output:1,label:5,info:6,mode:7,style:8,loading_status:9})}}const be=ue,me=["static","dynamic"],re=l=>({type:{payload:"boolean"},description:{payload:"checked status"},example_data:l.value});export{be as Component,re as document,me as modes};
//# sourceMappingURL=index-bf028f10.js.map
