"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),n=require("../../utils/cssinjs/index.js"),s=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:t,checkCardOutlineWidth:r,checkCardIndicatorOffset:d}=e,a=e.calc(t).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,borderTopRightRadius:e.calc(e.borderRadius).add("2px").equal()},"&--checked":{outline:`${r} ${e.lineType} ${e.colorPrimary}`,[`&:hover:not(${i}--disabled)`]:{outline:`${r} ${e.lineType} ${e.colorPrimary}`},"&::after":{width:a,height:a,insetBlockStart:d,insetInlineEnd:d,transition:["width","height","inset"].map(c=>`${c} ${e.motionDurationSlow} cubic-bezier(0.645, 0.045, 0.355, 1)`).join(", ")},[`&${i}--disabled`]:{outlineColor:l,"&::after":{backgroundColor:l}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${i}__title`]:{...o.resetComponent(e),marginBottom:e.spaceXS,color:e.textColor1,fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${i}__content`]:{...o.resetComponent(e),color:e.textColor1,"&--disabled":{color:e.textColor4}},[`${i}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:e.calc(t).sub(r).equal(),verticalAlign:"top"}}}}},u=n.genComponentStyleHook("CheckCard",e=>[s(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=u;
