0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.137.219.221


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/index-CyhlUxjb.js

import{r as a,_ as $,aX as w,b as D,c as M,e as g,a as j,d as k}from"./index-l9BlVL9_.js";var V=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],H=a.forwardRef(function(e,C){var u=e.prefixCls,n=u===void 0?"rc-checkbox":u,b=e.className,m=e.style,_=e.checked,l=e.disabled,i=e.defaultChecked,y=i===void 0?!1:i,d=e.type,o=d===void 0?"checkbox":d,x=e.title,s=e.onChange,R=$(e,V),r=a.useRef(null),f=a.useRef(null),E=w(y,{value:_}),h=D(E,2),v=h[0],N=h[1];a.useImperativeHandle(C,function(){return{focus:function(t){var c;(c=r.current)===null||c===void 0||c.focus(t)},blur:function(){var t;(t=r.current)===null||t===void 0||t.blur()},input:r.current,nativeElement:f.current}});var P=M(n,b,g(g({},"".concat(n,"-checked"),v),"".concat(n,"-disabled"),l)),S=function(t){l||("checked"in e||N(t.target.checked),s==null||s({target:k(k({},e),{},{type:o,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))};return a.createElement("span",{className:P,title:x,style:m,ref:f},a.createElement("input",j({},R,{className:"".concat(n,"-input"),ref:r,onChange:S,disabled:l,checked:!!v,type:o})),a.createElement("span",{className:"".concat(n,"-inner")}))});export{H as C};