import{TinyColor as e}from"../../node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/index.mjs";import{roundedArrow as t}from"../../style/roundedArrow.mjs";import{resetComponent as n,textEllipsis as r}from"../../style/index.mjs";import i from"../../theme/util/genComponentStyleHook.mjs";import{merge as a}from"../../theme/util/statistic.mjs";import{genCompactItemStyle as o}from"../../style/compact-item.mjs";import{initMoveMotion as s}from"../../style/motion/move.mjs";import{initSlideMotion as c,slideDownIn as l,slideDownOut as u,slideUpIn as d,slideUpOut as f}from"../../style/motion/slide.mjs";import{genActiveStyle as p,genBasicInputStyle as m,genHoverStyle as h,initInputToken as g}from"../../input/style/index.mjs";var _=(e,t,n,r)=>{let{lineHeight:i}=e,a=Math.floor(n*i)+2,o=Math.max((t-a)/2,0);return{padding:`${o}px ${r}px ${Math.max(t-a-o,0)}px`}},v=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:i,motionDurationSlow:a,borderRadiusSM:o,motionDurationMid:s,controlItemBgHover:c,lineWidth:l,lineType:u,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:p,controlHeightSM:m,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:g,pickerBasicCellHoverWithRangeColor:_,pickerPanelCellWidth:v,colorTextDisabled:y,colorBgContainerDisabled:b}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:`translateY(-50%)`,transition:`all ${a}`,content:`""`},[r]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:i,height:i,lineHeight:`${i}px`,borderRadius:o,transition:`background ${s}, border ${s}`},[`&:hover:not(${n}-in-view),
    &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:c}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${l}px ${u} ${d}`,borderRadius:o,content:`""`}},[`&-in-view${n}-in-range`]:{position:`relative`,"&::before":{background:f}},[`&-in-view${n}-selected ${r},
      &-in-view${n}-range-start ${r},
      &-in-view${n}-range-end ${r}`]:{color:p,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single),
      &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:`50%`},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:`50%`},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),
      &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),
      &-in-view${n}-range-hover-start${n}-range-start-single,
      &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover,
      &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover,
      &-in-view${n}-range-hover-end${n}-range-end-single,
      &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:`absolute`,top:`50%`,zIndex:0,height:m,borderTop:`${l}px dashed ${h}`,borderBottom:`${l}px dashed ${h}`,transform:`translateY(-50%)`,transition:`all ${a}`,content:`""`}},"&-range-hover-start::after,\n      &-range-hover-end::after,\n      &-range-hover::after":{insetInlineEnd:0,insetInlineStart:g},[`&-in-view${n}-in-range${n}-range-hover::before,
      &-in-view${n}-range-start${n}-range-hover::before,
      &-in-view${n}-range-end${n}-range-hover::before,
      &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before,
      &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before,
      ${t}-panel
      > :not(${t}-date-panel)
      &-in-view${n}-in-range${n}-range-hover-start::before,
      ${t}-panel
      > :not(${t}-date-panel)
      &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:_},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:`50%`},[`tr > &-in-view${n}-range-hover:first-child::after,
      tr > &-in-view${n}-range-hover-end:first-child::after,
      &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after,
      &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after,
      &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(v-i)/2,borderInlineStart:`${l}px dashed ${h}`,borderStartStartRadius:l,borderEndStartRadius:l},[`tr > &-in-view${n}-range-hover:last-child::after,
      tr > &-in-view${n}-range-hover-start:last-child::after,
      &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after,
      &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after,
      &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(v-i)/2,borderInlineEnd:`${l}px dashed ${h}`,borderStartEndRadius:l,borderEndEndRadius:l},"&-disabled":{color:y,pointerEvents:`none`,[r]:{background:`transparent`},"&::before":{background:b}},[`&-disabled${n}-today ${r}::before`]:{borderColor:y}}},y=t=>{let{componentCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,pickerPanelCellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:y,pickerTextHeight:b,motionDurationMid:x,colorIconHover:S,fontWeightStrong:C,pickerPanelCellHeight:w,pickerCellPaddingVertical:T,colorTextDisabled:E,colorText:D,fontSize:O,pickerBasicCellHoverWithRangeColor:k,motionDurationSlow:A,pickerPanelWithoutTimeCellHeight:j,pickerQuarterPanelContentHeight:M,colorLink:N,colorLinkActive:P,colorLinkHover:F,pickerDateHoverRangeBorderColor:I,borderRadiusSM:L,colorTextLightSolid:R,borderRadius:z,controlItemBgHover:B,pickerTimePanelColumnHeight:V,pickerTimePanelColumnWidth:H,pickerTimePanelCellHeight:U,controlItemBgActive:W,marginXXS:G}=t,K=o*7+s*2+4,q=(K-c*2)/3-i-s;return{[n]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,border:`${d}px ${f} ${g}`,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{direction:`rtl`,[`${n}-prev-icon,
              ${n}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${n}-next-icon,
              ${n}-super-next-icon`]:{transform:`rotate(-135deg)`}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:`flex`,flexDirection:`column`,width:K},"&-header":{display:`flex`,padding:`0 ${c}px`,color:h,borderBottom:`${d}px ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:y,lineHeight:`${b}px`,background:`transparent`,border:0,cursor:`pointer`,transition:`color ${x}`},"> button":{minWidth:`1.6em`,fontSize:O,"&:hover":{color:S}},"&-view":{flex:`auto`,fontWeight:C,lineHeight:`${b}px`,button:{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:`relative`,display:`inline-block`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderBlockEndWidth:0,borderInlineStartWidth:_,borderInlineEndWidth:0,content:`""`}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:`absolute`,top:Math.ceil(a/2),insetInlineStart:Math.ceil(a/2),display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderBlockEndWidth:0,borderInlineStartWidth:_,borderInlineEndWidth:0,content:`""`}},"&-prev-icon,\n        &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon,\n        &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:w,fontWeight:`normal`},th:{height:w+T*2,color:D,verticalAlign:`middle`}},"&-cell":{padding:`${T}px 0`,color:E,cursor:`pointer`,"&-in-view":{color:D},...v(t)},[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start ${r},
        &-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${r}`]:{"&::after":{position:`absolute`,top:0,bottom:0,zIndex:-1,background:k,transition:`all ${A}`,content:`""`}},[`&-date-panel
        ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start
        ${r}::after`]:{insetInlineEnd:-(o-w)/2,insetInlineStart:0},[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${r}::after`]:{insetInlineEnd:0,insetInlineStart:-(o-w)/2},[`&-range-hover${n}-range-start::after`]:{insetInlineEnd:`50%`},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${n}-content`]:{height:j*4},[r]:{padding:`0 ${c}px`}},"&-quarter-panel":{[`${n}-content`]:{height:M}},[`&-panel ${n}-footer`]:{borderTop:`${d}px ${f} ${g}`},"&-footer":{width:`min-content`,minWidth:`100%`,lineHeight:`${b-2*d}px`,textAlign:`center`,"&-extra":{padding:`0 ${s}`,lineHeight:`${b-2*d}px`,textAlign:`start`,"&:not(:last-child)":{borderBottom:`${d}px ${f} ${g}`}}},"&-now":{textAlign:`start`},"&-today-btn":{color:N,"&:hover":{color:F},"&:active":{color:P},[`&${n}-today-btn-disabled`]:{color:E,cursor:`not-allowed`}},"&-decade-panel":{[r]:{padding:`0 ${c/2}px`},[`${n}-cell::before`]:{display:`none`}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${n}-body`]:{padding:`0 ${c}px`},[r]:{width:i},[`${n}-cell-range-hover-start::after`]:{insetInlineStart:q,borderInlineStart:`${d}px dashed ${I}`,borderStartStartRadius:L,borderBottomStartRadius:L,borderStartEndRadius:0,borderBottomEndRadius:0,[`${n}-panel-rtl &`]:{insetInlineEnd:q,borderInlineEnd:`${d}px dashed ${I}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:L,borderBottomEndRadius:L}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:q,borderInlineEnd:`${d}px dashed ${I}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:z,borderEndEndRadius:z,[`${n}-panel-rtl &`]:{insetInlineStart:q,borderInlineStart:`${d}px dashed ${I}`,borderStartStartRadius:z,borderEndStartRadius:z,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${n}-body`]:{padding:`${c}px ${s}px`},[`${n}-cell`]:{[`&:hover ${r},
            &-selected ${r},
            ${r}`]:{background:`transparent !important`}},"&-row":{td:{transition:`background ${x}`,"&:first-child":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child":{borderStartEndRadius:L,borderEndEndRadius:L}},"&:hover td":{background:B},"&-selected td,\n            &-selected:hover td":{background:m,[`&${n}-cell-week`]:{color:new e(R).setAlpha(.5).toHexString()},[`&${n}-cell-today ${r}::before`]:{borderColor:R},[r]:{color:R}}}},"&-date-panel":{[`${n}-body`]:{padding:`${c}px ${s}px`},[`${n}-content`]:{width:o*7,th:{width:o}}},"&-datetime-panel":{display:`flex`,[`${n}-time-panel`]:{borderInlineStart:`${d}px ${f} ${g}`},[`${n}-date-panel,
          ${n}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${n}-date-panel,
            ${n}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,direction:`ltr`,[`${n}-content`]:{display:`flex`,flex:`auto`,height:V},"&-column":{flex:`1 0 auto`,width:H,margin:`${l}px 0`,padding:0,overflowY:`hidden`,textAlign:`start`,listStyle:`none`,transition:`background ${x}`,overflowX:`hidden`,"&::after":{display:`block`,height:V-U,content:`""`},"&:not(:first-child)":{borderInlineStart:`${d}px ${f} ${g}`},"&-active":{background:new e(W).setAlpha(.2).toHexString()},"&:hover":{overflowY:`auto`},"> li":{margin:0,padding:0,[`&${n}-time-panel-cell`]:{marginInline:G,[`${n}-time-panel-cell-inner`]:{display:`block`,width:H-2*G,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(H-U)/2,color:D,lineHeight:`${U}px`,borderRadius:L,cursor:`pointer`,transition:`background ${x}`,"&:hover":{background:B}},"&-selected":{[`${n}-time-panel-cell-inner`]:{background:W}},"&-disabled":{[`${n}-time-panel-cell-inner`]:{color:E,background:`transparent`,cursor:`not-allowed`}}}}}},[`&-datetime-panel ${n}-time-panel-column:after`]:{height:V-U+l*2}}}},b=e=>{let{componentCls:t,colorBgContainer:n,colorError:r,colorErrorOutline:i,colorWarning:o,colorWarningOutline:s}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:r},"&-focused, &:focus":{...p(a(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))},[`${t}-active-bar`]:{background:r}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":{...p(a(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:s}))},[`${t}-active-bar`]:{background:o}}}}},x=e=>{let{componentCls:i,antCls:a,boxShadowPopoverArrow:o,controlHeight:g,fontSize:v,inputPaddingHorizontal:b,colorBgContainer:x,lineWidth:S,lineType:C,colorBorder:w,borderRadius:T,motionDurationMid:E,colorBgContainerDisabled:D,colorTextDisabled:O,colorTextPlaceholder:k,controlHeightLG:A,fontSizeLG:j,controlHeightSM:M,inputPaddingHorizontalSM:N,paddingXS:P,marginXS:F,colorTextDescription:I,lineWidthBold:L,lineHeight:R,colorPrimary:z,motionDurationSlow:B,zIndexPopup:V,paddingXXS:H,paddingSM:U,pickerTextHeight:W,controlItemBgActive:G,colorPrimaryBorder:K,sizePopupArrow:q,borderRadiusXS:J,borderRadiusOuter:Y,colorBgElevated:X,borderRadiusLG:Z,boxShadowSecondary:Q,borderRadiusSM:$,colorSplit:ee,controlItemBgHover:te,presetsWidth:ne,presetsMaxWidth:re}=e;return[{[i]:{...n(e),..._(e,g,v,b),position:`relative`,display:`inline-flex`,alignItems:`center`,background:x,lineHeight:1,border:`${S}px ${C} ${w}`,borderRadius:T,transition:`border ${E}, box-shadow ${E}`,"&:hover, &-focused":{...h(e)},"&-focused":{...p(e)},[`&${i}-disabled`]:{background:D,borderColor:w,cursor:`not-allowed`,[`${i}-suffix`]:{color:O}},[`&${i}-borderless`]:{backgroundColor:`transparent !important`,borderColor:`transparent !important`,boxShadow:`none !important`},[`${i}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{...m(e),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,"&:focus":{boxShadow:`none`},"&[disabled]":{background:`transparent`}},"&:hover":{[`${i}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:k}}},"&-large":{..._(e,A,j,b),[`${i}-input > input`]:{fontSize:j}},"&-small":{..._(e,M,v,N)},[`${i}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:P/2,color:O,lineHeight:1,pointerEvents:`none`,"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:F}}},[`${i}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:O,lineHeight:1,background:x,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,transition:`opacity ${E}, color ${E}`,"> *":{verticalAlign:`top`},"&:hover":{color:I}},[`${i}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:j,color:O,fontSize:j,verticalAlign:`top`,cursor:`default`,[`${i}-focused &`]:{color:I},[`${i}-range-separator &`]:{[`${i}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${i}-clear`]:{insetInlineEnd:b},"&:hover":{[`${i}-clear`]:{opacity:1}},[`${i}-active-bar`]:{bottom:-S,height:L,marginInlineStart:b,background:z,opacity:0,transition:`all ${B} ease-out`,pointerEvents:`none`},[`&${i}-focused`]:{[`${i}-active-bar`]:{opacity:1}},[`${i}-range-separator`]:{alignItems:`center`,padding:`0 ${P}px`,lineHeight:1},[`&${i}-small`]:{[`${i}-clear`]:{insetInlineEnd:N},[`${i}-active-bar`]:{marginInlineStart:N}}},"&-dropdown":{...n(e),...y(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:V,[`&${i}-dropdown-hidden`]:{display:`none`},[`&${i}-dropdown-placement-bottomLeft`]:{[`${i}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${i}-dropdown-placement-topLeft`]:{[`${i}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${a}-slide-up-enter${a}-slide-up-enter-active${i}-dropdown-placement-topLeft,
          &${a}-slide-up-enter${a}-slide-up-enter-active${i}-dropdown-placement-topRight,
          &${a}-slide-up-appear${a}-slide-up-appear-active${i}-dropdown-placement-topLeft,
          &${a}-slide-up-appear${a}-slide-up-appear-active${i}-dropdown-placement-topRight`]:{animationName:l},[`&${a}-slide-up-enter${a}-slide-up-enter-active${i}-dropdown-placement-bottomLeft,
          &${a}-slide-up-enter${a}-slide-up-enter-active${i}-dropdown-placement-bottomRight,
          &${a}-slide-up-appear${a}-slide-up-appear-active${i}-dropdown-placement-bottomLeft,
          &${a}-slide-up-appear${a}-slide-up-appear-active${i}-dropdown-placement-bottomRight`]:{animationName:d},[`&${a}-slide-up-leave${a}-slide-up-leave-active${i}-dropdown-placement-topLeft,
          &${a}-slide-up-leave${a}-slide-up-leave-active${i}-dropdown-placement-topRight`]:{animationName:u},[`&${a}-slide-up-leave${a}-slide-up-leave-active${i}-dropdown-placement-bottomLeft,
          &${a}-slide-up-leave${a}-slide-up-leave-active${i}-dropdown-placement-bottomRight`]:{animationName:f},[`${i}-panel > ${i}-time-panel`]:{paddingTop:H},[`${i}-ranges`]:{marginBottom:0,padding:`${H}px ${U}px`,overflow:`hidden`,lineHeight:`${W-2*S-P/2}px`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`space-between`,"> li":{display:`inline-block`},[`${i}-preset > ${a}-tag-blue`]:{color:z,background:G,borderColor:K,cursor:`pointer`},[`${i}-ok`]:{marginInlineStart:`auto`}},[`${i}-range-wrapper`]:{display:`flex`,position:`relative`},[`${i}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,marginInlineStart:b*1.5,transition:`left ${B} ease-out`,...t(q,J,Y,X,o)},[`${i}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:X,borderRadius:Z,boxShadow:Q,transition:`margin ${B}`,[`${i}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${i}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:ne,maxWidth:re,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:P,borderInlineEnd:`${S}px ${C} ${ee}`,li:{...r,borderRadius:$,paddingInline:P,paddingBlock:(M-Math.round(v*R))/2,cursor:`pointer`,transition:`all ${B}`,"+ li":{marginTop:F},"&:hover":{background:te}}}},[`${i}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,direction:`ltr`,[`${i}-panel`]:{borderWidth:`0 0 ${S}px`},"&:last-child":{[`${i}-panel`]:{borderWidth:0}}},[`${i}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${i}-content,
            table`]:{textAlign:`center`},"&-focused":{borderColor:w}}}},"&-dropdown-range":{padding:`${q*2/3}px 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${i}-separator`]:{transform:`rotate(180deg)`},[`${i}-footer`]:{"&-extra":{direction:`rtl`}}}}},c(e,`slide-up`),c(e,`slide-down`),s(e,`move-up`),s(e,`move-down`)]},S=t=>{let{componentCls:n,controlHeightLG:r,controlHeightSM:i,colorPrimary:a,paddingXXS:o}=t;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:r,pickerPanelCellWidth:i*1.5,pickerPanelCellHeight:i,pickerDateHoverRangeBorderColor:new e(a).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new e(a).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:r*1.65,pickerYearMonthCellWidth:r*1.5,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:r*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:r*1.4,pickerCellPaddingVertical:o,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},C=i(`DatePicker`,e=>{let t=a(g(e),S(e));return[x(t),b(t),o(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));export{C as default,y as genPanelStyle,S as initPickerPanelToken};