import{g,i as l,r as f}from"./i18n-Dnhn5Rxr.js";import{R as b,S as v,w as $,a as k,X as s,a5 as x,T as w,W as I}from"./index-DWyDLubb.js";import{G as B}from"./utils.svelte-CCyS_0CY.js";import{B as C}from"./Block-J4oodUWp.js";import{I as S}from"./Info-Dzjhnd64.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import{I as G}from"./IconButtonWrapper-D0s9l4wW.js";import{S as W}from"./index-CglBvmLb.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import{C as y}from"./Checkbox-HhbcVSTv.js";import"./clone-BkeCM4Nl.js";import"./html-Ih_5QVTo.js";import"./snippet-BWgYNF9D.js";import"./Clear-BF6j078A.js";import"./index-B_pwUImq.js";import"./input-DrerMDOL.js";import"./universal-CFOISHmx.js";var P=I("<!> <!> <!> <!>",1);function U(u,o){b(o,!0);let c=f(o,["$$slots","$$events","$$legacy"]);const t=new B(c);C(u,{get visible(){return t.shared.visible},get elem_id(){return t.shared.elem_id},get elem_classes(){return t.shared.elem_classes},children:(d,R)=>{var a=P(),i=v(a);W(i,g({get autoscroll(){return t.shared.autoscroll},get i18n(){return t.i18n}},()=>t.shared.loading_status,{on_clear_status:()=>t.dispatch("clear_status",t.shared.loading_status)}));var n=s(i,2);{var m=e=>{G(e,{get buttons(){return t.props.buttons},on_custom_button_click:r=>{t.dispatch("custom_button_click",{id:r})}})};l(n,e=>{t.shared.show_label&&t.props.buttons&&t.props.buttons.length>0&&e(m)})}var p=s(n,2);{let e=x(()=>t.shared.label||t.i18n("checkbox.checkbox"));y(p,{get label(){return $(e)},get interactive(){return t.shared.interactive},get show_label(){return t.shared.show_label},on_change:r=>t.dispatch("change",r),on_input:()=>t.dispatch("input"),on_select:r=>t.dispatch("select",r),get value(){return t.props.value},set value(r){t.props.value=r}})}var _=s(p,2);{var h=e=>{S(e,{get info(){return t.props.info}})};l(_,e=>{t.props.info&&e(h)})}k(d,a)},$$slots:{default:!0}}),w()}export{y as BaseCheckbox,U as default};
