import{f as s,j as i}from"./silentshield-vendor-lib-BOYiOmBi.js";import{ad as l,ae as p,af as g}from"./silentshield-vendor-ui-BEc9V-_C.js";import{o as n,a8 as v}from"./silentshield-admin.js";const h=s(({className:a,...t},e)=>i(l,{className:n("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",a),...t,ref:e,children:i(p,{className:n("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));h.displayName=l.displayName;var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=w.reduce((a,t)=>{const e=g(`Primitive.${t}`),o=s((r,u)=>{const{asChild:f,...m}=r,b=f?e:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i(b,{...m,ref:u})});return o.displayName=`Primitive.${t}`,{...a,[t]:o}},{}),y="Label",d=s((a,t)=>i(N.label,{...a,ref:t,onMouseDown:e=>{var r;e.target.closest("button, input, select, textarea")||((r=a.onMouseDown)==null||r.call(a,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));d.displayName=y;var c=d;const k=v("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),x=s(({className:a,...t},e)=>i(c,{ref:e,className:n(k(),a),...t}));x.displayName=c.displayName;export{x as L,h as S};
