1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f59eabaa-0359-5f2f-8639-8ccba3dc71b9")}catch(e){}}(); 3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f9f2-bce2-76e2-8d9e-b4b4f541b346")}catch(e){}}();(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`6671e471206ed21e40f078c1c93b0fa72dcc83af`}}catch{}})();import{a as e}from"./chunk-pUsIRAOz.js";import{t}from"./react-BJShOJtD.js";import{t as n}from"./jsx-runtime-BYB64Sxt.js";import{o as r,t as i}from"./dist-yqvKyqcL.js";import{a,r as o,t as s}from"./dist-CeEN9ycn.js";import{r as c}from"./dist-gi1czSJX.js";import{t as l}from"./dist-BTOBIz6D.js";import{t as u}from"./dist-Bmuesetn.js";var d=e(t(),1),f=n(),p=`Checkbox`,[m,h]=a(p),[g,_]=m(p);function v(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:c,onCheckedChange:l,required:u,value:m=`on`,internal_do_not_use_render:h}=e,[_,v]=s({prop:n,defaultProp:i??!1,onChange:l,caller:p}),[y,b]=d.useState(null),[x,S]=d.useState(null),C=d.useRef(!1),w=y?!!o||!!y.closest(`form`):!0,T={checked:_,disabled:a,setChecked:v,control:y,setControl:b,name:c,form:o,value:m,hasConsumerStoppedPropagationRef:C,required:u,defaultChecked:D(i)?!1:i,isFormControl:w,bubbleInput:x,setBubbleInput:S};return(0,f.jsx)(g,{scope:t,...T,children:E(h)?h(T):r})}var y=`CheckboxTrigger`,b=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},s)=>{let{control:c,value:l,disabled:u,checked:p,required:m,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:v,isFormControl:b,bubbleInput:x}=_(y,e),S=r(s,h),C=d.useRef(p);return d.useEffect(()=>{let e=c?.form;if(e){let t=()=>g(C.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[c,g]),(0,f.jsx)(i.button,{type:`button`,role:`checkbox`,"aria-checked":D(p)?`mixed`:p,"aria-required":m,"data-state":O(p),"data-disabled":u?``:void 0,disabled:u,value:l,...a,ref:S,onKeyDown:o(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:o(n,e=>{g(e=>D(e)?!0:!e),x&&b&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});b.displayName=y;var x=d.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,f.jsx)(v,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(b,{...d,ref:t,__scopeCheckbox:n}),e&&(0,f.jsx)(T,{__scopeCheckbox:n})]})})});x.displayName=p;var S=`CheckboxIndicator`,C=d.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...a}=e,o=_(S,n);return(0,f.jsx)(c,{present:r||D(o.checked)||o.checked===!0,children:(0,f.jsx)(i.span,{"data-state":O(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t,style:{pointerEvents:`none`,...e.style}})})});C.displayName=S;var w=`CheckboxBubbleInput`,T=d.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:a,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:p,disabled:m,name:h,value:g,form:v,bubbleInput:y,setBubbleInput:b}=_(w,e),x=r(n,b),S=l(s),C=u(a);d.useEffect(()=>{let e=y;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!o.current;if(S!==s&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=D(s),n.call(e,D(s)?!1:s),e.dispatchEvent(t)}},[y,S,s,o]);let T=d.useRef(D(s)?!1:s);return(0,f.jsx)(i.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??T.current,required:p,disabled:m,name:h,value:g,form:v,...t,tabIndex:-1,ref:x,style:{...t.style,...C,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});T.displayName=w;function E(e){return typeof e==`function`}function D(e){return e===`indeterminate`}function O(e){return D(e)?`indeterminate`:e?`checked`:`unchecked`}export{C as n,x as t}; 4//# sourceMappingURL=dist-Cg0AxkeN.js.map 5//# chunkId=01a0f9f2-bce2-76e2-8d9e-b4b4f541b346 6//# debugId=f59eabaa-0359-5f2f-8639-8ccba3dc71b9
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.