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