1import{a as e,n as t,r as n}from"./rolldown-runtime-B0Z9INg1.js";import{n as r}from"./jsx-runtime-Ciaf_P-h.js";import{X as i,b as a,x as o}from"./pickAttrs-DIkXfajW.js";import{Dt as s,Et as c,Ft as l,J as u,Ot as d,Pt as f,R as p,Tt as m,q as h,z as g}from"./es-DrXbpWFj.js";var _=n({Checkbox:()=>S,default:()=>S}),v,y,b,x,S,C=t((()=>{l(),c(),d(),u(),g(),v=e(i()),a(),y=e(r()),b=e(r()),x=[`prefixCls`,`className`,`style`,`checked`,`disabled`,`defaultChecked`,`type`,`title`,`onChange`],S=(0,b.forwardRef)(function(e,t){var n=e.prefixCls,r=n===void 0?`rc-checkbox`:n,i=e.className,a=e.style,c=e.checked,l=e.disabled,u=e.defaultChecked,d=u!==void 0&&u,g=e.type,_=g===void 0?`checkbox`:g,S=e.title,C=e.onChange,w=p(e,x),T=(0,b.useRef)(null),E=(0,b.useRef)(null),D=o(d,{value:c}),O=h(D,2),k=O[0],A=O[1];(0,b.useImperativeHandle)(t,function(){return{focus:function(e){var t;(t=T.current)==null||t.focus(e)},blur:function(){var e;(e=T.current)==null||e.blur()},input:T.current,nativeElement:E.current}});var j=(0,v.default)(r,i,s(s({},`${r}-checked`,k),`${r}-disabled`,l));return y.createElement(`span`,{className:j,title:S,style:a,ref:E},y.createElement(`input`,f({},w,{className:`${r}-input`,ref:T,onChange:function(t){l||(`checked`in e||A(t.target.checked),C?.({target:m(m({},e),{},{type:_,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!k,type:_})),y.createElement(`span`,{className:`${r}-inner`}))})}));export{_ as n,C as r,S as t};
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.