System.register(["./preload-helper-legacy.CIXZiioE.js"],function(e,t){"use strict";var a,n,o,r,c,l,u,d,i;return{setters:[e=>{a=e.d,n=e.A,o=e.a,r=e.j,c=e.e,l=e.h,u=e._,d=e.q,i=e.P}],execute:function(){var t=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]])}return a};const s={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:i.any,required:Boolean};e("V",a({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:d(s,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,a){let{attrs:d,emit:i,expose:s}=a;const p=n(void 0===e.checked?e.defaultChecked:e.checked),y=n();o(()=>e.checked,()=>{p.value=e.checked}),s({focus(){var e;null===(e=y.value)||void 0===e||e.focus()},blur(){var e;null===(e=y.value)||void 0===e||e.blur()}});const f=n(),h=t=>{if(e.disabled)return;void 0===e.checked&&(p.value=t.target.checked),t.shiftKey=f.value;const a={target:r(r({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(y.value.checked=!!e.checked),i("change",a),f.value=!1},v=e=>{i("click",e),f.value=e.shiftKey};return()=>{const{prefixCls:a,name:n,id:o,type:i,disabled:s,readonly:f,tabindex:b,autofocus:k,value:g,required:m}=e,x=t(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:B,onKeydown:K,onKeypress:S,onKeyup:j}=d,P=r(r({},x),d),q=Object.keys(P).reduce((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=P[t]),e),{}),w=c(a,C,{[`${a}-checked`]:p.value,[`${a}-disabled`]:s}),$=r(r({name:n,id:o,type:i,readonly:f,disabled:s,tabindex:b,class:`${a}-input`,checked:!!p.value,autofocus:k,value:g},q),{onChange:h,onClick:v,onFocus:O,onBlur:B,onKeydown:K,onKeypress:S,onKeyup:j,required:m});return l("span",{class:w},[l("input",u({ref:y},$),null),l("span",{class:`${a}-inner`},null)])}}}))}}});
