1 line
23 KiB
JSON
1 line
23 KiB
JSON
{"ast":null,"code":"import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { warning } from 'rc-util';\nimport * as React from 'react';\nimport { findValidateTime } from \"../PickerPanel/TimePanel/TimePanelBody/util\";\nimport { leftPad } from \"../utils/miscUtil\";\nfunction emptyDisabled() {\n return [];\n}\nfunction generateUnits(start, end) {\n var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var hideDisabledOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var disabledUnits = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n var pad = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 2;\n var units = [];\n var integerStep = step >= 1 ? step | 0 : 1;\n for (var i = start; i <= end; i += integerStep) {\n var disabled = disabledUnits.includes(i);\n if (!disabled || !hideDisabledOptions) {\n units.push({\n label: leftPad(i, pad),\n value: i,\n disabled: disabled\n });\n }\n }\n return units;\n}\n\n/**\n * Parse time props to get util info\n */\nexport default function useTimeInfo(generateConfig) {\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var date = arguments.length > 2 ? arguments[2] : undefined;\n var _ref = props || {},\n use12Hours = _ref.use12Hours,\n _ref$hourStep = _ref.hourStep,\n hourStep = _ref$hourStep === void 0 ? 1 : _ref$hourStep,\n _ref$minuteStep = _ref.minuteStep,\n minuteStep = _ref$minuteStep === void 0 ? 1 : _ref$minuteStep,\n _ref$secondStep = _ref.secondStep,\n secondStep = _ref$secondStep === void 0 ? 1 : _ref$secondStep,\n _ref$millisecondStep = _ref.millisecondStep,\n millisecondStep = _ref$millisecondStep === void 0 ? 100 : _ref$millisecondStep,\n hideDisabledOptions = _ref.hideDisabledOptions,\n disabledTime = _ref.disabledTime,\n disabledHours = _ref.disabledHours,\n disabledMinutes = _ref.disabledMinutes,\n disabledSeconds = _ref.disabledSeconds;\n var mergedDate = React.useMemo(function () {\n return date || generateConfig.getNow();\n }, [date, generateConfig]);\n\n // ======================== Warnings ========================\n if (process.env.NODE_ENV !== 'production') {\n var isHourStepValid = 24 % hourStep === 0;\n var isMinuteStepValid = 60 % minuteStep === 0;\n var isSecondStepValid = 60 % secondStep === 0;\n warning(isHourStepValid, \"`hourStep` \".concat(hourStep, \" is invalid. It should be a factor of 24.\"));\n warning(isMinuteStepValid, \"`minuteStep` \".concat(minuteStep, \" is invalid. It should be a factor of 60.\"));\n warning(isSecondStepValid, \"`secondStep` \".concat(secondStep, \" is invalid. It should be a factor of 60.\"));\n }\n\n // ======================== Disabled ========================\n var getDisabledTimes = React.useCallback(function (targetDate) {\n var disabledConfig = (disabledTime === null || disabledTime === void 0 ? void 0 : disabledTime(targetDate)) || {};\n return [disabledConfig.disabledHours || disabledHours || emptyDisabled, disabledConfig.disabledMinutes || disabledMinutes || emptyDisabled, disabledConfig.disabledSeconds || disabledSeconds || emptyDisabled, disabledConfig.disabledMilliseconds || emptyDisabled];\n }, [disabledTime, disabledHours, disabledMinutes, disabledSeconds]);\n var _React$useMemo = React.useMemo(function () {\n return getDisabledTimes(mergedDate);\n }, [mergedDate, getDisabledTimes]),\n _React$useMemo2 = _slicedToArray(_React$useMemo, 4),\n mergedDisabledHours = _React$useMemo2[0],\n mergedDisabledMinutes = _React$useMemo2[1],\n mergedDisabledSeconds = _React$useMemo2[2],\n mergedDisabledMilliseconds = _React$useMemo2[3];\n\n // ========================= Column =========================\n var getAllUnits = React.useCallback(function (getDisabledHours, getDisabledMinutes, getDisabledSeconds, getDisabledMilliseconds) {\n var hours = generateUnits(0, 23, hourStep, hideDisabledOptions, getDisabledHours());\n\n // Hours\n var rowHourUnits = use12Hours ? hours.map(function (unit) {\n return _objectSpread(_objectSpread({}, unit), {}, {\n label: leftPad(unit.value % 12 || 12, 2)\n });\n }) : hours;\n\n // Minutes\n var getMinuteUnits = function getMinuteUnits(nextHour) {\n return generateUnits(0, 59, minuteStep, hideDisabledOptions, getDisabledMinutes(nextHour));\n };\n\n // Seconds\n var getSecondUnits = function getSecondUnits(nextHour, nextMinute) {\n return generateUnits(0, 59, secondStep, hideDisabledOptions, getDisabledSeconds(nextHour, nextMinute));\n };\n\n // Milliseconds\n var getMillisecondUnits = function getMillisecondUnits(nextHour, nextMinute, nextSecond) {\n return generateUnits(0, 999, millisecondStep, hideDisabledOptions, getDisabledMilliseconds(nextHour, nextMinute, nextSecond), 3);\n };\n return [rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits];\n }, [hideDisabledOptions, hourStep, use12Hours, millisecondStep, minuteStep, secondStep]);\n var _React$useMemo3 = React.useMemo(function () {\n return getAllUnits(mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds);\n }, [getAllUnits, mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds]),\n _React$useMemo4 = _slicedToArray(_React$useMemo3, 4),\n rowHourUnits = _React$useMemo4[0],\n getMinuteUnits = _React$useMemo4[1],\n getSecondUnits = _React$useMemo4[2],\n getMillisecondUnits = _React$useMemo4[3];\n\n // ======================== Validate ========================\n /**\n * Get validate time with `disabledTime`, `certainDate` to specific the date need to check\n */\n var getValidTime = function getValidTime(nextTime, certainDate) {\n var getCheckHourUnits = function getCheckHourUnits() {\n return rowHourUnits;\n };\n var getCheckMinuteUnits = getMinuteUnits;\n var getCheckSecondUnits = getSecondUnits;\n var getCheckMillisecondUnits = getMillisecondUnits;\n if (certainDate) {\n var _getDisabledTimes = getDisabledTimes(certainDate),\n _getDisabledTimes2 = _slicedToArray(_getDisabledTimes, 4),\n targetDisabledHours = _getDisabledTimes2[0],\n targetDisabledMinutes = _getDisabledTimes2[1],\n targetDisabledSeconds = _getDisabledTimes2[2],\n targetDisabledMilliseconds = _getDisabledTimes2[3];\n var _getAllUnits = getAllUnits(targetDisabledHours, targetDisabledMinutes, targetDisabledSeconds, targetDisabledMilliseconds),\n _getAllUnits2 = _slicedToArray(_getAllUnits, 4),\n targetRowHourUnits = _getAllUnits2[0],\n targetGetMinuteUnits = _getAllUnits2[1],\n targetGetSecondUnits = _getAllUnits2[2],\n targetGetMillisecondUnits = _getAllUnits2[3];\n getCheckHourUnits = function getCheckHourUnits() {\n return targetRowHourUnits;\n };\n getCheckMinuteUnits = targetGetMinuteUnits;\n getCheckSecondUnits = targetGetSecondUnits;\n getCheckMillisecondUnits = targetGetMillisecondUnits;\n }\n var validateDate = findValidateTime(nextTime, getCheckHourUnits, getCheckMinuteUnits, getCheckSecondUnits, getCheckMillisecondUnits, generateConfig);\n return validateDate;\n };\n return [\n // getValidTime\n getValidTime,\n // Units\n rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits];\n}","map":{"version":3,"names":["_objectSpread","_slicedToArray","warning","React","findValidateTime","leftPad","emptyDisabled","generateUnits","start","end","step","arguments","length","undefined","hideDisabledOptions","disabledUnits","pad","units","integerStep","i","disabled","includes","push","label","value","useTimeInfo","generateConfig","props","date","_ref","use12Hours","_ref$hourStep","hourStep","_ref$minuteStep","minuteStep","_ref$secondStep","secondStep","_ref$millisecondStep","millisecondStep","disabledTime","disabledHours","disabledMinutes","disabledSeconds","mergedDate","useMemo","getNow","process","env","NODE_ENV","isHourStepValid","isMinuteStepValid","isSecondStepValid","concat","getDisabledTimes","useCallback","targetDate","disabledConfig","disabledMilliseconds","_React$useMemo","_React$useMemo2","mergedDisabledHours","mergedDisabledMinutes","mergedDisabledSeconds","mergedDisabledMilliseconds","getAllUnits","getDisabledHours","getDisabledMinutes","getDisabledSeconds","getDisabledMilliseconds","hours","rowHourUnits","map","unit","getMinuteUnits","nextHour","getSecondUnits","nextMinute","getMillisecondUnits","nextSecond","_React$useMemo3","_React$useMemo4","getValidTime","nextTime","certainDate","getCheckHourUnits","getCheckMinuteUnits","getCheckSecondUnits","getCheckMillisecondUnits","_getDisabledTimes","_getDisabledTimes2","targetDisabledHours","targetDisabledMinutes","targetDisabledSeconds","targetDisabledMilliseconds","_getAllUnits","_getAllUnits2","targetRowHourUnits","targetGetMinuteUnits","targetGetSecondUnits","targetGetMillisecondUnits","validateDate"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-picker/es/hooks/useTimeInfo.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { warning } from 'rc-util';\nimport * as React from 'react';\nimport { findValidateTime } from \"../PickerPanel/TimePanel/TimePanelBody/util\";\nimport { leftPad } from \"../utils/miscUtil\";\nfunction emptyDisabled() {\n return [];\n}\nfunction generateUnits(start, end) {\n var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var hideDisabledOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var disabledUnits = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n var pad = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 2;\n var units = [];\n var integerStep = step >= 1 ? step | 0 : 1;\n for (var i = start; i <= end; i += integerStep) {\n var disabled = disabledUnits.includes(i);\n if (!disabled || !hideDisabledOptions) {\n units.push({\n label: leftPad(i, pad),\n value: i,\n disabled: disabled\n });\n }\n }\n return units;\n}\n\n/**\n * Parse time props to get util info\n */\nexport default function useTimeInfo(generateConfig) {\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var date = arguments.length > 2 ? arguments[2] : undefined;\n var _ref = props || {},\n use12Hours = _ref.use12Hours,\n _ref$hourStep = _ref.hourStep,\n hourStep = _ref$hourStep === void 0 ? 1 : _ref$hourStep,\n _ref$minuteStep = _ref.minuteStep,\n minuteStep = _ref$minuteStep === void 0 ? 1 : _ref$minuteStep,\n _ref$secondStep = _ref.secondStep,\n secondStep = _ref$secondStep === void 0 ? 1 : _ref$secondStep,\n _ref$millisecondStep = _ref.millisecondStep,\n millisecondStep = _ref$millisecondStep === void 0 ? 100 : _ref$millisecondStep,\n hideDisabledOptions = _ref.hideDisabledOptions,\n disabledTime = _ref.disabledTime,\n disabledHours = _ref.disabledHours,\n disabledMinutes = _ref.disabledMinutes,\n disabledSeconds = _ref.disabledSeconds;\n var mergedDate = React.useMemo(function () {\n return date || generateConfig.getNow();\n }, [date, generateConfig]);\n\n // ======================== Warnings ========================\n if (process.env.NODE_ENV !== 'production') {\n var isHourStepValid = 24 % hourStep === 0;\n var isMinuteStepValid = 60 % minuteStep === 0;\n var isSecondStepValid = 60 % secondStep === 0;\n warning(isHourStepValid, \"`hourStep` \".concat(hourStep, \" is invalid. It should be a factor of 24.\"));\n warning(isMinuteStepValid, \"`minuteStep` \".concat(minuteStep, \" is invalid. It should be a factor of 60.\"));\n warning(isSecondStepValid, \"`secondStep` \".concat(secondStep, \" is invalid. It should be a factor of 60.\"));\n }\n\n // ======================== Disabled ========================\n var getDisabledTimes = React.useCallback(function (targetDate) {\n var disabledConfig = (disabledTime === null || disabledTime === void 0 ? void 0 : disabledTime(targetDate)) || {};\n return [disabledConfig.disabledHours || disabledHours || emptyDisabled, disabledConfig.disabledMinutes || disabledMinutes || emptyDisabled, disabledConfig.disabledSeconds || disabledSeconds || emptyDisabled, disabledConfig.disabledMilliseconds || emptyDisabled];\n }, [disabledTime, disabledHours, disabledMinutes, disabledSeconds]);\n var _React$useMemo = React.useMemo(function () {\n return getDisabledTimes(mergedDate);\n }, [mergedDate, getDisabledTimes]),\n _React$useMemo2 = _slicedToArray(_React$useMemo, 4),\n mergedDisabledHours = _React$useMemo2[0],\n mergedDisabledMinutes = _React$useMemo2[1],\n mergedDisabledSeconds = _React$useMemo2[2],\n mergedDisabledMilliseconds = _React$useMemo2[3];\n\n // ========================= Column =========================\n var getAllUnits = React.useCallback(function (getDisabledHours, getDisabledMinutes, getDisabledSeconds, getDisabledMilliseconds) {\n var hours = generateUnits(0, 23, hourStep, hideDisabledOptions, getDisabledHours());\n\n // Hours\n var rowHourUnits = use12Hours ? hours.map(function (unit) {\n return _objectSpread(_objectSpread({}, unit), {}, {\n label: leftPad(unit.value % 12 || 12, 2)\n });\n }) : hours;\n\n // Minutes\n var getMinuteUnits = function getMinuteUnits(nextHour) {\n return generateUnits(0, 59, minuteStep, hideDisabledOptions, getDisabledMinutes(nextHour));\n };\n\n // Seconds\n var getSecondUnits = function getSecondUnits(nextHour, nextMinute) {\n return generateUnits(0, 59, secondStep, hideDisabledOptions, getDisabledSeconds(nextHour, nextMinute));\n };\n\n // Milliseconds\n var getMillisecondUnits = function getMillisecondUnits(nextHour, nextMinute, nextSecond) {\n return generateUnits(0, 999, millisecondStep, hideDisabledOptions, getDisabledMilliseconds(nextHour, nextMinute, nextSecond), 3);\n };\n return [rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits];\n }, [hideDisabledOptions, hourStep, use12Hours, millisecondStep, minuteStep, secondStep]);\n var _React$useMemo3 = React.useMemo(function () {\n return getAllUnits(mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds);\n }, [getAllUnits, mergedDisabledHours, mergedDisabledMinutes, mergedDisabledSeconds, mergedDisabledMilliseconds]),\n _React$useMemo4 = _slicedToArray(_React$useMemo3, 4),\n rowHourUnits = _React$useMemo4[0],\n getMinuteUnits = _React$useMemo4[1],\n getSecondUnits = _React$useMemo4[2],\n getMillisecondUnits = _React$useMemo4[3];\n\n // ======================== Validate ========================\n /**\n * Get validate time with `disabledTime`, `certainDate` to specific the date need to check\n */\n var getValidTime = function getValidTime(nextTime, certainDate) {\n var getCheckHourUnits = function getCheckHourUnits() {\n return rowHourUnits;\n };\n var getCheckMinuteUnits = getMinuteUnits;\n var getCheckSecondUnits = getSecondUnits;\n var getCheckMillisecondUnits = getMillisecondUnits;\n if (certainDate) {\n var _getDisabledTimes = getDisabledTimes(certainDate),\n _getDisabledTimes2 = _slicedToArray(_getDisabledTimes, 4),\n targetDisabledHours = _getDisabledTimes2[0],\n targetDisabledMinutes = _getDisabledTimes2[1],\n targetDisabledSeconds = _getDisabledTimes2[2],\n targetDisabledMilliseconds = _getDisabledTimes2[3];\n var _getAllUnits = getAllUnits(targetDisabledHours, targetDisabledMinutes, targetDisabledSeconds, targetDisabledMilliseconds),\n _getAllUnits2 = _slicedToArray(_getAllUnits, 4),\n targetRowHourUnits = _getAllUnits2[0],\n targetGetMinuteUnits = _getAllUnits2[1],\n targetGetSecondUnits = _getAllUnits2[2],\n targetGetMillisecondUnits = _getAllUnits2[3];\n getCheckHourUnits = function getCheckHourUnits() {\n return targetRowHourUnits;\n };\n getCheckMinuteUnits = targetGetMinuteUnits;\n getCheckSecondUnits = targetGetSecondUnits;\n getCheckMillisecondUnits = targetGetMillisecondUnits;\n }\n var validateDate = findValidateTime(nextTime, getCheckHourUnits, getCheckMinuteUnits, getCheckSecondUnits, getCheckMillisecondUnits, generateConfig);\n return validateDate;\n };\n return [\n // getValidTime\n getValidTime,\n // Units\n rowHourUnits, getMinuteUnits, getSecondUnits, getMillisecondUnits];\n}"],"mappings":"AAAA,OAAOA,aAAa,MAAM,0CAA0C;AACpE,OAAOC,cAAc,MAAM,0CAA0C;AACrE,SAASC,OAAO,QAAQ,SAAS;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,gBAAgB,QAAQ,6CAA6C;AAC9E,SAASC,OAAO,QAAQ,mBAAmB;AAC3C,SAASC,aAAaA,CAAA,EAAG;EACvB,OAAO,EAAE;AACX;AACA,SAASC,aAAaA,CAACC,KAAK,EAAEC,GAAG,EAAE;EACjC,IAAIC,IAAI,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAKE,SAAS,GAAGF,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;EAChF,IAAIG,mBAAmB,GAAGH,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAKE,SAAS,GAAGF,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK;EACnG,IAAII,aAAa,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