{"ast":null,"code":"import * as React from 'react';\n/** Used for each single Panel. e.g. DatePanel */\nexport var PanelContext = /*#__PURE__*/React.createContext(null);\nexport function usePanelContext() {\n  return React.useContext(PanelContext);\n}\n\n/**\n * Get shared props for the SharedPanelProps interface.\n */\nexport function useInfo(props, panelType) {\n  var prefixCls = props.prefixCls,\n    generateConfig = props.generateConfig,\n    locale = props.locale,\n    disabledDate = props.disabledDate,\n    minDate = props.minDate,\n    maxDate = props.maxDate,\n    cellRender = props.cellRender,\n    hoverValue = props.hoverValue,\n    hoverRangeValue = props.hoverRangeValue,\n    onHover = props.onHover,\n    values = props.values,\n    pickerValue = props.pickerValue,\n    onSelect = props.onSelect,\n    prevIcon = props.prevIcon,\n    nextIcon = props.nextIcon,\n    superPrevIcon = props.superPrevIcon,\n    superNextIcon = props.superNextIcon;\n\n  // ========================= MISC =========================\n  var now = generateConfig.getNow();\n\n  // ========================= Info =========================\n  var info = {\n    now: now,\n    values: values,\n    pickerValue: pickerValue,\n    prefixCls: prefixCls,\n    disabledDate: disabledDate,\n    minDate: minDate,\n    maxDate: maxDate,\n    cellRender: cellRender,\n    hoverValue: hoverValue,\n    hoverRangeValue: hoverRangeValue,\n    onHover: onHover,\n    locale: locale,\n    generateConfig: generateConfig,\n    onSelect: onSelect,\n    panelType: panelType,\n    // Icons\n    prevIcon: prevIcon,\n    nextIcon: nextIcon,\n    superPrevIcon: superPrevIcon,\n    superNextIcon: superNextIcon\n  };\n  return [info, now];\n}\n\n// ============================== Internal ==============================\n\n/**\n * Internal usage for RangePicker to not to show the operation arrow\n */\nexport var PickerHackContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n  PickerHackContext.displayName = 'PickerHackContext';\n}","map":{"version":3,"names":["React","PanelContext","createContext","usePanelContext","useContext","useInfo","props","panelType","prefixCls","generateConfig","locale","disabledDate","minDate","maxDate","cellRender","hoverValue","hoverRangeValue","onHover","values","pickerValue","onSelect","prevIcon","nextIcon","superPrevIcon","superNextIcon","now","getNow","info","PickerHackContext","process","env","NODE_ENV","displayName"],"sources":["/var/www/gavt/react-demo/node_modules/rc-picker/es/PickerPanel/context.js"],"sourcesContent":["import * as React from 'react';\n/** Used for each single Panel. e.g. DatePanel */\nexport var PanelContext = /*#__PURE__*/React.createContext(null);\nexport function usePanelContext() {\n  return React.useContext(PanelContext);\n}\n\n/**\n * Get shared props for the SharedPanelProps interface.\n */\nexport function useInfo(props, panelType) {\n  var prefixCls = props.prefixCls,\n    generateConfig = props.generateConfig,\n    locale = props.locale,\n    disabledDate = props.disabledDate,\n    minDate = props.minDate,\n    maxDate = props.maxDate,\n    cellRender = props.cellRender,\n    hoverValue = props.hoverValue,\n    hoverRangeValue = props.hoverRangeValue,\n    onHover = props.onHover,\n    values = props.values,\n    pickerValue = props.pickerValue,\n    onSelect = props.onSelect,\n    prevIcon = props.prevIcon,\n    nextIcon = props.nextIcon,\n    superPrevIcon = props.superPrevIcon,\n    superNextIcon = props.superNextIcon;\n\n  // ========================= MISC =========================\n  var now = generateConfig.getNow();\n\n  // ========================= Info =========================\n  var info = {\n    now: now,\n    values: values,\n    pickerValue: pickerValue,\n    prefixCls: prefixCls,\n    disabledDate: disabledDate,\n    minDate: minDate,\n    maxDate: maxDate,\n    cellRender: cellRender,\n    hoverValue: hoverValue,\n    hoverRangeValue: hoverRangeValue,\n    onHover: onHover,\n    locale: locale,\n    generateConfig: generateConfig,\n    onSelect: onSelect,\n    panelType: panelType,\n    // Icons\n    prevIcon: prevIcon,\n    nextIcon: nextIcon,\n    superPrevIcon: superPrevIcon,\n    superNextIcon: superNextIcon\n  };\n  return [info, now];\n}\n\n// ============================== Internal ==============================\n\n/**\n * Internal usage for RangePicker to not to show the operation arrow\n */\nexport var PickerHackContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n  PickerHackContext.displayName = 'PickerHackContext';\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B;AACA,OAAO,IAAI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