const e=require("../../_util/cssinjs/Keyframes.js"),t=require("../../style/index.js"),n=require("../../theme/util/genComponentStyleHook.js"),r=require("../../theme/util/statistic.js");var i=new e.default(`antCheckboxEffect`,{"0%":{transform:`scale(1)`,opacity:.5},"100%":{transform:`scale(1.6)`,opacity:0}}),a=e=>{let{checkboxCls:n}=e,r=`${n}-wrapper`;return[{[`${n}-group`]:{...t.resetComponent(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[r]:{...t.resetComponent(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[n]:{...t.resetComponent(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,[`${n}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:{...t.genFocusOutline(e)}},[`${n}-inner`]:{boxSizing:`border-box`,position:`relative`,top:0,insetInlineStart:0,display:`block`,width:e.checkboxSize,height:e.checkboxSize,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:`border-box`,position:`absolute`,top:`50%`,insetInlineStart:`21.5%`,display:`table`,width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[n]:{"&-indeterminate":{[`${n}-inner`]:{"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`}}}}},{[`${r}:hover ${n}:after`]:{visibility:`visible`},[`
        ${r}:not(${r}-disabled),
        ${n}:not(${n}-disabled)
      `]:{[`&:hover ${n}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:`absolute`,top:0,insetInlineStart:0,width:`100%`,height:`100%`,borderRadius:e.borderRadiusSM,visibility:`hidden`,border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:i,animationDuration:e.motionDurationSlow,animationTimingFunction:`ease-in-out`,animationFillMode:`backwards`,content:`""`,transition:`all ${e.motionDurationSlow}`}},[`
        ${r}-checked:not(${r}-disabled),
        ${n}-checked:not(${n}-disabled)
      `]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`},[`&:hover ${n}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-disabled`]:{cursor:`not-allowed`},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:`none`},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function o(e,t){return[a(r.merge(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))]}var s=n.default(`Checkbox`,(e,{prefixCls:t})=>[o(t,e)]);exports.default=s,exports.genCheckboxStyle=a,exports.getStyle=o;