"use strict";exports.id=3195,exports.ids=[3195],exports.modules={73195:(e,t,r)=>{r.d(t,{bU:()=>g,fC:()=>j});var a=r(9885),n=r(32840),s=r(80880),o=r(8718),c=r(43408),d=r(36322),i=r(46896),l=r(21484),u=r(60080),p="Switch",[f,h]=(0,o.b)(p),[b,k]=f(p),x=a.forwardRef((e,t)=>{let{__scopeSwitch:r,name:o,checked:d,defaultChecked:i,required:p,disabled:f,value:h="on",onCheckedChange:k,form:x,...y}=e,[v,j]=a.useState(null),g=(0,s.e)(t,e=>j(e)),C=a.useRef(!1),E=!v||x||!!v.closest("form"),[P=!1,R]=(0,c.T)({prop:d,defaultProp:i,onChange:k});return(0,u.jsxs)(b,{scope:r,checked:P,disabled:f,children:[(0,u.jsx)(l.WV.button,{type:"button",role:"switch","aria-checked":P,"aria-required":p,"data-state":m(P),"data-disabled":f?"":void 0,disabled:f,value:h,...y,ref:g,onClick:(0,n.M)(e.onClick,e=>{R(e=>!e),E&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),E&&(0,u.jsx)(w,{control:v,bubbles:!C.current,name:o,value:h,checked:P,required:p,disabled:f,form:x,style:{transform:"translateX(-100%)"}})]})});x.displayName=p;var y="SwitchThumb",v=a.forwardRef((e,t)=>{let{__scopeSwitch:r,...a}=e,n=k(y,r);return(0,u.jsx)(l.WV.span,{"data-state":m(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:t})});v.displayName=y;var w=e=>{let{control:t,checked:r,bubbles:n=!0,...s}=e,o=a.useRef(null),c=(0,d.D)(r),l=(0,i.t)(t);return a.useEffect(()=>{let e=o.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked"),s=a.set;if(c!==r&&s){let t=new Event("click",{bubbles:n});s.call(e,r),e.dispatchEvent(t)}},[c,r,n]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function m(e){return e?"checked":"unchecked"}var j=x,g=v}};