import{t as g,b as y,s as c,a as l}from"./CCHOD-L1.js";import{c as n,g as v,d as x,s as m,n as L,t as f,r as i}from"./Db_QKtB5.js";import{p as T,i as w}from"./BkOFT6Jj.js";import{C as P,L as j}from"./OyE1vH6U.js";var q=g('<div class="text-xs text-muted-foreground"> </div>'),z=g('<div class="flex flex-col gap-2"><div class="flex gap-2"><!> <!></div> <!></div>');function F(u,e){const b=T(e,"isChecked",3,!1);var s=z(),d=n(s),o=n(d);const h=x(()=>`${e.name}-label`);P(o,{get id(){return e.name},get"aria-labelledby"(){return v(h)},get checked(){return b()},get onCheckedChange(){return e.onCheckedChange}});var _=m(o,2);const C=x(()=>`${e.name}-label`);j(_,{get id(){return v(C)},get for(){return e.name},class:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:(t,a)=>{L();var r=y();f(()=>c(r,e.label)),l(t,r)},$$slots:{default:!0}}),i(d);var k=m(d,2);{var p=t=>{var a=q(),r=n(a,!0);i(a),f(()=>c(r,e.helperText)),l(t,a)};w(k,t=>{e.helperText&&t(p)})}i(s),l(u,s)}export{F as C};
