PromoCursed/node_modules/.cache/babel-loader/7cf07d0735948d1e28cc747ce74f65399e963001aaf606ce8095bfdb32a07658.json

1 line
6.2 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"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":["C:/Users/Аришина)/Desktop/promo/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 onSe