{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { PickerPanel as RCPickerPanel } from 'rc-picker';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport { devUseWarning } from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { useLocale } from '../locale';\nimport CalendarHeader from './Header';\nimport enUS from './locale/en_US';\nimport useStyle from './style';\nfunction generateCalendar(generateConfig) {\n  function isSameYear(date1, date2) {\n    return date1 && date2 && generateConfig.getYear(date1) === generateConfig.getYear(date2);\n  }\n  function isSameMonth(date1, date2) {\n    return isSameYear(date1, date2) && generateConfig.getMonth(date1) === generateConfig.getMonth(date2);\n  }\n  function isSameDate(date1, date2) {\n    return isSameMonth(date1, date2) && generateConfig.getDate(date1) === generateConfig.getDate(date2);\n  }\n  const Calendar = props => {\n    const {\n      prefixCls: customizePrefixCls,\n      className,\n      rootClassName,\n      style,\n      dateFullCellRender,\n      dateCellRender,\n      monthFullCellRender,\n      monthCellRender,\n      cellRender,\n      fullCellRender,\n      headerRender,\n      value,\n      defaultValue,\n      disabledDate,\n      mode,\n      validRange,\n      fullscreen = true,\n      onChange,\n      onPanelChange,\n      onSelect\n    } = props;\n    const {\n      getPrefixCls,\n      direction,\n      calendar\n    } = React.useContext(ConfigContext);\n    const prefixCls = getPrefixCls('picker', customizePrefixCls);\n    const calendarPrefixCls = `${prefixCls}-calendar`;\n    const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, calendarPrefixCls);\n    const today = generateConfig.getNow();\n    // ====================== Warning =======================\n    if (process.env.NODE_ENV !== 'production') {\n      const warning = devUseWarning('Calendar');\n      warning.deprecated(!dateFullCellRender, 'dateFullCellRender', 'fullCellRender');\n      warning.deprecated(!dateCellRender, 'dateCellRender', 'cellRender');\n      warning.deprecated(!monthFullCellRender, 'monthFullCellRender', 'fullCellRender');\n      warning.deprecated(!monthCellRender, 'monthCellRender', 'cellRender');\n    }\n    // ====================== State =======================\n    // Value\n    const [mergedValue, setMergedValue] = useMergedState(() => value || generateConfig.getNow(), {\n      defaultValue,\n      value\n    });\n    // Mode\n    const [mergedMode, setMergedMode] = useMergedState('month', {\n      value: mode\n    });\n    const panelMode = React.useMemo(() => mergedMode === 'year' ? 'month' : 'date', [mergedMode]);\n    // Disabled Date\n    const mergedDisabledDate = React.useCallback(date => {\n      const notInRange = validRange ? generateConfig.isAfter(validRange[0], date) || generateConfig.isAfter(date, validRange[1]) : false;\n      return notInRange || !!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date));\n    }, [disabledDate, validRange]);\n    // ====================== Events ======================\n    const triggerPanelChange = (date, newMode) => {\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(date, newMode);\n    };\n    const triggerChange = date => {\n      setMergedValue(date);\n      if (!isSameDate(date, mergedValue)) {\n        // Trigger when month panel switch month\n        if (panelMode === 'date' && !isSameMonth(date, mergedValue) || panelMode === 'month' && !isSameYear(date, mergedValue)) {\n          triggerPanelChange(date, mergedMode);\n        }\n        onChange === null || onChange === void 0 ? void 0 : onChange(date);\n      }\n    };\n    const triggerModeChange = newMode => {\n      setMergedMode(newMode);\n      triggerPanelChange(mergedValue, newMode);\n    };\n    const onInternalSelect = (date, source) => {\n      triggerChange(date);\n      onSelect === null || onSelect === void 0 ? void 0 : onSelect(date, {\n        source\n      });\n    };\n    // ====================== Locale ======================\n    const getDefaultLocale = () => {\n      const {\n        locale\n      } = props;\n      const result = Object.assign(Object.assign({}, enUS), locale);\n      result.lang = Object.assign(Object.assign({}, result.lang), (locale || {}).lang);\n      return result;\n    };\n    // ====================== Render ======================\n    const dateRender = React.useCallback((date, info) => {\n      if (fullCellRender) {\n        return fullCellRender(date, info);\n      }\n      if (dateFullCellRender) {\n        return dateFullCellRender(date);\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameDate(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, String(generateConfig.getDate(date)).padStart(2, '0')), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, cellRender ? cellRender(date, info) : dateCellRender && dateCellRender(date)));\n    }, [dateFullCellRender, dateCellRender, cellRender, fullCellRender]);\n    const monthRender = React.useCallback((date, info) => {\n      if (fullCellRender) {\n        return fullCellRender(date, info);\n      }\n      if (monthFullCellRender) {\n        return monthFullCellRender(date);\n      }\n      const months = info.locale.shortMonths || generateConfig.locale.getShortMonths(info.locale.locale);\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameMonth(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, months[generateConfig.getMonth(date)]), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, cellRender ? cellRender(date, info) : monthCellRender && monthCellRender(date)));\n    }, [monthFullCellRender, monthCellRender, cellRender, fullCellRender]);\n    const [contextLocale] = useLocale('Calendar', getDefaultLocale);\n    const mergedCellRender = (current, info) => {\n      if (info.type === 'date') {\n        return dateRender(current, info);\n      }\n      if (info.type === 'month') {\n        return monthRender(current, Object.assign(Object.assign({}, info), {\n          locale: contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.lang\n        }));\n      }\n    };\n    return wrapCSSVar( /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(calendarPrefixCls, {\n        [`${calendarPrefixCls}-full`]: fullscreen,\n        [`${calendarPrefixCls}-mini`]: !fullscreen,\n        [`${calendarPrefixCls}-rtl`]: direction === 'rtl'\n      }, calendar === null || calendar === void 0 ? void 0 : calendar.className, className, rootClassName, hashId, cssVarCls),\n      style: Object.assign(Object.assign({}, calendar === null || calendar === void 0 ? void 0 : calendar.style), style)\n    }, headerRender ? headerRender({\n      value: mergedValue,\n      type: mergedMode,\n      onChange: nextDate => {\n        onInternalSelect(nextDate, 'customize');\n      },\n      onTypeChange: triggerModeChange\n    }) : ( /*#__PURE__*/React.createElement(CalendarHeader, {\n      prefixCls: calendarPrefixCls,\n      value: mergedValue,\n      generateConfig: generateConfig,\n      mode: mergedMode,\n      fullscreen: fullscreen,\n      locale: contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.lang,\n      validRange: validRange,\n      onChange: onInternalSelect,\n      onModeChange: triggerModeChange\n    })), /*#__PURE__*/React.createElement(RCPickerPanel, {\n      value: mergedValue,\n      prefixCls: prefixCls,\n      locale: contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.lang,\n      generateConfig: generateConfig,\n      cellRender: mergedCellRender,\n      onSelect: nextDate => {\n        onInternalSelect(nextDate, panelMode);\n      },\n      mode: panelMode,\n      picker: panelMode,\n      disabledDate: mergedDisabledDate,\n      hideHeader: true\n    })));\n  };\n  if (process.env.NODE_ENV !== 'production') {\n    Calendar.displayName = 'Calendar';\n  }\n  return Calendar;\n}\nexport default generateCalendar;","map":{"version":3,"names":["React","classNames","PickerPanel","RCPickerPanel","useMergedState","devUseWarning","ConfigContext","useLocale","CalendarHeader","enUS","useStyle","generateCalendar","generateConfig","isSameYear","date1","date2","getYear","isSameMonth","getMonth","isSameDate","getDate","Calendar","props","prefixCls","customizePrefixCls","className","rootClassName","style","dateFullCellRender","dateCellRender","monthFullCellRender","monthCellRender","cellRender","fullCellRender","headerRender","value","defaultValue","disabledDate","mode","validRange","fullscreen","onChange","onPanelChange","onSelect","getPrefixCls","direction","calendar","useContext","calendarPrefixCls","wrapCSSVar","hashId","cssVarCls","today","getNow","process","env","NODE_ENV","warning","deprecated","mergedValue","setMergedValue","mergedMode","setMergedMode","panelMode","useMemo","mergedDisabledDate","useCallback","date","notInRange","isAfter","triggerPanelChange","newMode","triggerChange","triggerModeChange","onInternalSelect","source","getDefaultLocale","locale","result","Object","assign","lang","dateRender","info","createElement","String","padStart","monthRender","months","shortMonths","getShortMonths","contextLocale","mergedCellRender","current","type","nextDate","onTypeChange","onModeChange","picker","hideHeader","displayName"],"sources":["/var/www/gavt/react-demo/node_modules/antd/es/calendar/generateCalendar.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { PickerPanel as RCPickerPanel } from 'rc-picker';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport { devUseWarning } from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { useLocale } from '../locale';\nimport CalendarHeader from './Header';\nimport enUS from './locale/en_US';\nimport useStyle from './style';\nfunction generateCalendar(generateConfig) {\n  function isSameYear(date1, date2) {\n    return date1 && date2 && generateConfig.getYear(date1) === generateConfig.getYear(date2);\n  }\n  function isSameMonth(date1, date2) {\n    return isSameYear(date1, date2) && generateConfig.getMonth(date1) === generateConfig.getMonth(date2);\n  }\n  function isSameDate(date1, date2) {\n    return isSameMonth(date1, date2) && generateConfig.getDate(date1) === generateConfig.getDate(date2);\n  }\n  const Calendar = props => {\n    const {\n      prefixCls: customizePrefixCls,\n      className,\n      rootClassName,\n      style,\n      dateFullCellRender,\n      dateCellRender,\n      monthFullCellRender,\n      monthCellRender,\n      cellRender,\n      fullCellRender,\n      headerRender,\n      value,\n      defaultValue,\n      disabledDate,\n      mode,\n      validRange,\n      fullscreen = true,\n      onChange,\n      onPanelChange,\n      onSelect\n    } = props;\n    const {\n      getPrefixCls,\n      direction,\n      calendar\n    } = React.useContext(ConfigContext);\n    const prefixCls = getPrefixCls('picker', customizePrefixCls);\n    const calendarPrefixCls = `${prefixCls}-calendar`;\n    const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, calendarPrefixCls);\n    const today = generateConfig.getNow();\n    // ====================== Warning =======================\n    if (process.env.NODE_ENV !== 'production') {\n      const warning = devUseWarning('Calendar');\n      warning.deprecated(!dateFullCellRender, 'dateFullCellRender', 'fullCellRender');\n      warning.deprecated(!dateCellRender, 'dateCellRender', 'cellRender');\n      warning.deprecated(!monthFullCellRender, 'monthFullCellRender', 'fullCellRender');\n      warning.deprecated(!monthCellRender, 'monthCellRender', 'cellRender');\n    }\n    // ====================== State =======================\n    // Value\n    const [mergedValue, setMergedValue] = useMergedState(() => value || generateConfig.getNow(), {\n      defaultValue,\n      value\n    });\n    // Mode\n    const [mergedMode, setMergedMode] = useMergedState('month', {\n      value: mode\n    });\n    const panelMode = React.useMemo(() => mergedMode === 'year' ? 'month' : 'date', [mergedMode]);\n    // Disabled Date\n    const mergedDisabledDate = React.useCallback(date => {\n      const notInRange = validRange ? generateConfig.isAfter(validRange[0], date) || generateConfig.isAfter(date, validRange[1]) : false;\n      return notInRange || !!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date));\n    }, [disabledDate, validRange]);\n    // ====================== Events ======================\n    const triggerPanelChange = (date, newMode) => {\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(date, newMode);\n    };\n    const triggerChange = date => {\n      setMergedValue(date);\n      if (!isSameDate(date, mergedValue)) {\n        // Trigger when month panel switch month\n        if (panelMode === 'date' && !isSameMonth(date, mergedValue) || panelMode === 'month' && !isSameYear(date, mergedValue)) {\n          triggerPanelChange(date, mergedMode);\n        }\n        onChange === null || onChange === void 0 ? void 0 : onChange(date);\n      }\n    };\n    const triggerModeChange = newMode => {\n      setMergedMode(newMode);\n      triggerPanelChange(mergedValue, newMode);\n    };\n    const onInternalSelect = (date, source) => {\n      triggerChange(date);\n      onSelect === null || onSelect === void 0 ? void 0 : onSelect(date, {\n        source\n      });\n    };\n    // ====================== Locale ======================\n    const getDefaultLocale = () => {\n      const {\n        locale\n      } = props;\n      const result = Object.assign(Object.assign({}, enUS), locale);\n      result.lang = Object.assign(Object.assign({}, result.lang), (locale || {}).lang);\n      return result;\n    };\n    // ====================== Render ======================\n    const dateRender = React.useCallback((date, info) => {\n      if (fullCellRender) {\n        return fullCellRender(date, info);\n      }\n      if (dateFullCellRender) {\n        return dateFullCellRender(date);\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameDate(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, String(generateConfig.getDate(date)).padStart(2, '0')), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, cellRender ? cellRender(date, info) : dateCellRender && dateCellRender(date)));\n    }, [dateFullCellRender, dateCellRender, cellRender, fullCellRender]);\n    const monthRender = React.useCallback((date, info) => {\n      if (fullCellRender) {\n        return fullCellRender(date, info);\n      }\n      if (monthFullCellRender) {\n        return monthFullCellRender(date);\n      }\n      const months = info.locale.shortMonths || generateConfig.locale.getShortMonths(info.locale.locale);\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameMonth(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, months[generateConfig.getMonth(date)]), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, cellRender ? cellRender(date, info) : monthCellRender && monthCellRender(date)));\n    }, [monthFullCellRender, monthCellRender, cellRender, fullCellRender]);\n    const [contextLocale] = useLocale('Calendar', getDefaultLocale);\n    const mergedCellRender = (current, info) => {\n      if (info.type === 'date') {\n        return dateRender(current, info);\n      }\n      if (info.type === 'month') {\n        return monthRender(current, Object.assign(Object.assign({}, info), {\n          locale: contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.lang\n        }));\n      }\n    };\n    return wrapCSSVar( /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(calendarPrefixCls, {\n        [`${calendarPrefixCls}-full`]: fullscreen,\n        [`${calendarPrefixCls}-mini`]: !fullscreen,\n        [`${calendarPrefixCls}-rtl`]: direction === 'rtl'\n      }, calendar === null || calendar === void 0 ? void 0 : calendar.className, className, rootClassName, hashId, cssVarCls),\n      style: Object.assign(Object.assign({}, calendar === null || calendar === void 0 ? void 0 : calendar.style), style)\n    }, headerRender ? headerRender({\n      value: mergedValue,\n      type: mergedMode,\n      onChange: nextDate => {\n        onInternalSelect(nextDate, 'customize');\n      },\n      onTypeChange: triggerModeChange\n    }) : ( /*#__PURE__*/React.createElement(CalendarHeader, {\n      prefixCls: calendarPrefixCls,\n      value: mergedValue,\n      generateConfig: generateConfig,\n      mode: mergedMode,\n      fullscreen: fullscreen,\n      locale: contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.lang,\n      validRange: validRange,\n      onChange: onInternalSelect,\n      onModeChange: triggerModeChange\n    })), /*#__PURE__*/React.createElement(RCPickerPanel, {\n      value: mergedValue,\n      prefixCls: prefixCls,\n      locale: contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.lang,\n      generateConfig: generateConfig,\n      cellRender: mergedCellRender,\n      onSelect: nextDate => {\n        onInternalSelect(nextDate, panelMode);\n      },\n      mode: panelMode,\n      picker: panelMode,\n      disabledDate: mergedDisabledDate,\n      hideHeader: true\n    })));\n  };\n  if (process.env.NODE_ENV !== 'production') {\n    Calendar.displayName = 'Calendar';\n  }\n  return Calendar;\n}\nexport default generateCalendar;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,WAAW,IAAIC,aAAa,QAAQ,WAAW;AACxD,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,SAAS,QAAQ,WAAW;AACrC,OAAOC,cAAc,MAAM,UAAU;AACrC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,QAA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