1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{$o as t,Qo as n,bs as r,es as i,go as a,ho as o,ia as s,lo as c,ls as l,mo as u,po as d,ra as f,ts as p,uo as m,ws as h,xs as g}from"./hooks-DHnN4Bv4.js";g(),t(),p(),u(),m();var _=e(l());f();var v=e(h()),y=[`prefixCls`,`className`,`style`,`checked`,`disabled`,`defaultChecked`,`type`,`title`,`onChange`],b=(0,v.forwardRef)(function(e,t){var a=e.prefixCls,o=a===void 0?`rc-checkbox`:a,l=e.className,u=e.style,f=e.checked,p=e.disabled,m=e.defaultChecked,h=m!==void 0&&m,g=e.type,b=g===void 0?`checkbox`:g,x=e.title,S=e.onChange,C=c(e,y),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=s(h,{value:f}),D=d(E,2),O=D[0],k=D[1];(0,v.useImperativeHandle)(t,function(){return{focus:function(e){var t;(t=w.current)==null||t.focus(e)},blur:function(){var e;(e=w.current)==null||e.blur()},input:w.current,nativeElement:T.current}});var A=(0,_.default)(o,l,i(i({},`${o}-checked`,O),`${o}-disabled`,p));return v.createElement(`span`,{className:A,title:x,style:u,ref:T},v.createElement(`input`,r({},C,{className:`${o}-input`,ref:w,onChange:function(t){p||(`checked`in e||k(t.target.checked),S==null||S({target:n(n({},e),{},{type:b,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:p,checked:!!O,type:b})),v.createElement(`span`,{className:`${o}-inner`}))});o();function x(e){let t=v.useRef(null),n=()=>{a.cancel(t.current),t.current=null};return[()=>{n(),t.current=a(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}export{b as n,x as t}; 2//# sourceMappingURL=useBubbleLock-Bv5hbv92.js.map
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.