const e=require("../../style/index.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../theme/util/statistic.js"),r=require("../../input/style/index.js"),i=require("../../date-picker/style/index.js");var a=t=>{let{calendarCls:n,componentCls:r,calendarFullBg:a,calendarFullPanelBg:o,calendarItemActiveBg:s}=t;return{[n]:{...i.genPanelStyle(t),...e.resetComponent(t),background:a,"&-rtl":{direction:`rtl`},[`${n}-header`]:{display:`flex`,justifyContent:`flex-end`,padding:`${t.paddingSM}px 0`,[`${n}-year-select`]:{minWidth:t.yearControlWidth},[`${n}-month-select`]:{minWidth:t.monthControlWidth,marginInlineStart:t.marginXS},[`${n}-mode-switch`]:{marginInlineStart:t.marginXS}}},[`${n} ${r}-panel`]:{background:o,border:0,borderTop:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`,borderRadius:0,[`${r}-month-panel, ${r}-date-panel`]:{width:`auto`},[`${r}-body`]:{padding:`${t.paddingXS}px 0`},[`${r}-content`]:{width:`100%`}},[`${n}-mini`]:{borderRadius:t.borderRadiusLG,[`${n}-header`]:{paddingInlineEnd:t.paddingXS,paddingInlineStart:t.paddingXS},[`${r}-panel`]:{borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`},[`${r}-content`]:{height:t.miniContentHeight,th:{height:`auto`,padding:0,lineHeight:`${t.weekHeight}px`}},[`${r}-cell::before`]:{pointerEvents:`none`}},[`${n}${n}-full`]:{[`${r}-panel`]:{display:`block`,width:`100%`,textAlign:`end`,background:a,border:0,[`${r}-body`]:{"th, td":{padding:0},th:{height:`auto`,paddingInlineEnd:t.paddingSM,paddingBottom:t.paddingXXS,lineHeight:`${t.weekHeight}px`}}},[`${r}-cell`]:{"&::before":{display:`none`},"&:hover":{[`${n}-date`]:{background:t.controlItemBgHover}},[`${n}-date-today::before`]:{display:`none`},[`&-in-view${r}-cell-selected`]:{[`${n}-date, ${n}-date-today`]:{background:s}},"&-selected, &-selected:hover":{[`${n}-date, ${n}-date-today`]:{[`${n}-date-value`]:{color:t.colorPrimary}}}},[`${n}-date`]:{display:`block`,width:`auto`,height:`auto`,margin:`0 ${t.marginXS/2}px`,padding:`${t.paddingXS/2}px ${t.paddingXS}px 0`,border:0,borderTop:`${t.lineWidthBold}px ${t.lineType} ${t.colorSplit}`,borderRadius:0,transition:`background ${t.motionDurationSlow}`,"&-value":{lineHeight:`${t.dateValueHeight}px`,transition:`color ${t.motionDurationSlow}`},"&-content":{position:`static`,width:`auto`,height:t.dateContentHeight,overflowY:`auto`,color:t.colorText,lineHeight:t.lineHeight,textAlign:`start`},"&-today":{borderColor:t.colorPrimary,[`${n}-date-value`]:{color:t.colorText}}}},[`@media only screen and (max-width: ${t.screenXS}px) `]:{[`${n}`]:{[`${n}-header`]:{display:`block`,[`${n}-year-select`]:{width:`50%`},[`${n}-month-select`]:{width:`calc(50% - ${t.paddingXS}px)`},[`${n}-mode-switch`]:{width:`100%`,marginTop:t.marginXS,marginInlineStart:0,"> label":{width:`50%`,textAlign:`center`}}}}}}},o=t.default(`Calendar`,e=>{let t=`${e.componentCls}-calendar`;return[a(n.merge(r.initInputToken(e),i.initPickerPanelToken(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2}))]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});exports.default=o,exports.genCalendarStyles=a;