pixel-react 1.15.11 → 1.15.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -75
- package/lib/ThirdPartyPackages/JanusGateway.js +5 -2
- package/lib/ThirdPartyPackages/JanusGateway.js.map +1 -1
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index12.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/spinner.svg.js +1 -1
- package/lib/assets/icons/spinner.svg.js.map +1 -1
- package/lib/components/Editor/Editor.js +69 -26
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Editor/VariableDropdown.js +2 -2
- package/lib/components/Editor/calculateDropdownPosition.d.ts +7 -0
- package/lib/components/Editor/calculateDropdownPosition.js +31 -0
- package/lib/components/Editor/calculateDropdownPosition.js.map +1 -0
- package/lib/index.cjs +7312 -4600
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -2
- package/lib/node_modules/@date-fns/tz/date/index.js +19 -1
- package/lib/node_modules/@date-fns/tz/date/index.js.map +1 -1
- package/lib/node_modules/@date-fns/tz/date/mini.js +6 -34
- package/lib/node_modules/@date-fns/tz/date/mini.js.map +1 -1
- package/lib/node_modules/@date-fns/tz/tzOffset/index.js +5 -6
- package/lib/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
- package/lib/node_modules/janus-gateway/npm/dist/janus.es.js +3241 -0
- package/lib/node_modules/janus-gateway/npm/dist/janus.es.js.map +1 -0
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +82 -115
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +58 -68
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +23 -36
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +9 -13
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +187 -226
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js +27 -21
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +117 -150
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +38 -57
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/ParseError.js +109 -70
- package/lib/node_modules/libphonenumber-js/es6/ParseError.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +57 -72
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/constants.js +9 -15
- package/lib/node_modules/libphonenumber-js/es6/constants.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/format.js +93 -67
- package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
- package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/getCountries.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +1 -0
- package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +10 -49
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +32 -20
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +4 -5
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +18 -25
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +11 -12
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +11 -13
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +11 -21
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +11 -12
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +12 -15
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +35 -59
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +2 -2
- package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +36 -38
- package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +1 -0
- package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/isObject.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +10 -14
- package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +27 -22
- package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +6 -6
- package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js +7 -6
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isValid.js +5 -6
- package/lib/node_modules/libphonenumber-js/es6/isValid.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +26 -44
- package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/metadata.js +69 -120
- package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js +68 -87
- package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parse.js +40 -58
- package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +36 -32
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +26 -44
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +28 -46
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/tools/semver-compare.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js +18 -18
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +64 -88
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +6 -71
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +14 -18
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +2 -3
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -4
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +2 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -9
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/index.js +2 -2
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +2 -3
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +0 -6
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +1 -6
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
- package/lib/node_modules/react-hook-form/dist/index.esm.js +44 -67
- package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/lib/node_modules/react-virtuoso/dist/index.js +1200 -1246
- package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
- package/lib/node_modules/ua-parser-js/src/ua-parser.js +71 -85
- package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/validations/regex.js +6 -1
- package/lib/validations/regex.js.map +1 -1
- package/package.json +106 -106
- package/lib/node_modules/@date-fns/tz/tzName/index.js +0 -40
- package/lib/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
- package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js +0 -64
- package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":["dayPickerContext","createContext","undefined","useDayPicker","context","useContext","Error"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n//# sourceMappingURL=useDayPicker.js.map"],"names":["dayPickerContext","createContext","undefined","useDayPicker","context","useContext","Error"],"mappings":";;AAgBA;MACaA,gBAAgB,gBAAGC,aAAa,CAM3CC,SAAS;AA+CX;;;;;;;;;;;;AAYM,SAAUC,YAAYA,GAAA;AAG1B,EAAA,MAAMC,OAAO,GAAGC,UAAU,CAACL,gBAAgB,CAAC;EAC5C,IAAII,OAAO,KAAKF,SAAS,EAAE;AACzB,IAAA,MAAM,IAAII,KAAK,CAAC,wDAAwD,CAAC;AAC3E,EAAA;AACA,EAAA,OAAOF,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
|
|
@@ -31,12 +31,6 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
|
31
31
|
if (!focusedDay) return;
|
|
32
32
|
const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
|
|
33
33
|
if (!nextFocus) return;
|
|
34
|
-
if (props.disableNavigation) {
|
|
35
|
-
const isNextInCalendar = calendar.days.some(day => day.isEqualTo(nextFocus));
|
|
36
|
-
if (!isNextInCalendar) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
34
|
calendar.goToDay(nextFocus);
|
|
41
35
|
setFocused(nextFocus);
|
|
42
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n
|
|
1
|
+
{"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus\n };\n return useFocus;\n}\n//# sourceMappingURL=useFocus.js.map"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","days","focusedDay","setFocused","undefined","blur","moveFocus","moveBy","moveDir","nextFocus","getNextFocus","navStart","navEnd","goToDay","isFocusTarget","day","Boolean","isEqualTo","focused"],"mappings":";;;;AA8BA;;;;;;;;;;;;;;AAcM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,QAAkB,EAClBC,YAA6C,EAC7CC,UAAmC,EACnCC,OAAgB,EAAA;EAEhB,MAAM;AAAEC,IAAAA;AAAS,GAAE,GAAGL,KAAK;AAC3B,EAAA,MAAM,CAACM,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,EAA2B;AAEzE,EAAA,MAAMC,WAAW,GAAGC,oBAAoB,CACtCT,QAAQ,CAACU,IAAI,EACbT,YAAY,EACZC,UAAU,KAAK,MAAM,KAAK,CAAC,EAC3BG,WAAW,CACZ;AACD,EAAA,MAAM,CAACM,UAAU,EAAEC,UAAU,CAAC,GAAGL,QAAQ,CACvCH,SAAS,GAAGI,WAAW,GAAGK,SAAS,CACpC;EAED,MAAMC,IAAI,GAAGA,MAAK;IAChBR,cAAc,CAACK,UAAU,CAAC;IAC1BC,UAAU,CAACC,SAAS,CAAC;EACvB,CAAC;AAED,EAAA,MAAME,SAAS,GAAGA,CAACC,MAAmB,EAAEC,OAAqB,KAAI;IAC/D,IAAI,CAACN,UAAU,EAAE;IACjB,MAAMO,SAAS,GAAGC,YAAY,CAC5BH,MAAM,EACNC,OAAO,EACPN,UAAU,EACVX,QAAQ,CAACoB,QAAQ,EACjBpB,QAAQ,CAACqB,MAAM,EACftB,KAAK,EACLI,OAAO,CACR;IACD,IAAI,CAACe,SAAS,EAAE;AAEhBlB,IAAAA,QAAQ,CAACsB,OAAO,CAACJ,SAAS,CAAC;IAC3BN,UAAU,CAACM,SAAS,CAAC;EACvB,CAAC;EAED,MAAMK,aAAa,GAAIC,GAAgB,IAAI;IACzC,OAAOC,OAAO,CAACjB,WAAW,EAAEkB,SAAS,CAACF,GAAG,CAAC,CAAC;EAC7C,CAAC;AAED,EAAA,MAAM1B,QAAQ,GAAa;IACzByB,aAAa;IACbX,UAAU;AACVe,IAAAA,OAAO,EAAEhB,UAAU;IACnBG,IAAI;AACJC,IAAAA;AACD,GAAA;AAED,EAAA,OAAOjB,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange","mode","undefined"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n//# sourceMappingURL=useSelection.js.map"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange","mode","undefined"],"mappings":";;;;AAOA;;;;;;;;;;AAUM,SAAUA,YAAYA,CAC1BC,KAAQ,EACRC,OAAgB,EAAA;AAEhB,EAAA,MAAMC,MAAM,GAAGC,SAAS,CAACH,KAAK,EAAEC,OAAO,CAAC;AACxC,EAAA,MAAMG,KAAK,GAAGC,QAAQ,CAACL,KAAK,EAAEC,OAAO,CAAC;AACtC,EAAA,MAAMK,KAAK,GAAGC,QAAQ,CAACP,KAAK,EAAEC,OAAO,CAAC;EAEtC,QAAQD,KAAK,CAACQ,IAAI;AAChB,IAAA,KAAK,QAAQ;AACX,MAAA,OAAON,MAAM;AACf,IAAA,KAAK,UAAU;AACb,MAAA,OAAOE,KAAK;AACd,IAAA,KAAK,OAAO;AACV,MAAA,OAAOE,KAAK;AACd,IAAA;AACE,MAAA,OAAOG,SAAS;AACpB;AACF;;;;","x_google_ignoreList":[0]}
|
|
@@ -34,12 +34,7 @@ function addToRange(date, initialRange, min = 0, max = 0, required = false, date
|
|
|
34
34
|
// adding date to an incomplete range
|
|
35
35
|
if (isSameDay(from, date)) {
|
|
36
36
|
// adding a date equal to the start of the range
|
|
37
|
-
if (
|
|
38
|
-
range = {
|
|
39
|
-
from,
|
|
40
|
-
to: date
|
|
41
|
-
};
|
|
42
|
-
} else if (required) {
|
|
37
|
+
if (required) {
|
|
43
38
|
range = {
|
|
44
39
|
from,
|
|
45
40
|
to: undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (
|
|
1
|
+
{"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n//# sourceMappingURL=addToRange.js.map"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","undefined","Error","diff","differenceInCalendarDays"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType
|
|
1
|
+
{"version":3,"file":"dateMatchModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Checks if a given date matches at least one of the specified {@link Matcher}.\n *\n * @param date - The date to check.\n * @param matchers - The matchers to check against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date matches any of the matchers, otherwise `false`.\n * @group Utilities\n */\nexport function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {\n const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;\n const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;\n return matchersArr.some((matcher) => {\n if (typeof matcher === \"boolean\") {\n return matcher;\n }\n if (dateLib.isDate(matcher)) {\n return isSameDay(date, matcher);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.includes(date);\n }\n if (isDateRange(matcher)) {\n return rangeIncludesDate(matcher, date, false, dateLib);\n }\n if (isDayOfWeekType(matcher)) {\n if (!Array.isArray(matcher.dayOfWeek)) {\n return matcher.dayOfWeek === date.getDay();\n }\n return matcher.dayOfWeek.includes(date.getDay());\n }\n if (isDateInterval(matcher)) {\n const diffBefore = differenceInCalendarDays(matcher.before, date);\n const diffAfter = differenceInCalendarDays(matcher.after, date);\n const isDayBefore = diffBefore > 0;\n const isDayAfter = diffAfter < 0;\n const isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(date, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, date) > 0;\n }\n if (typeof matcher === \"function\") {\n return matcher(date);\n }\n return false;\n });\n}\n/**\n * @private\n * @deprecated Use {@link dateMatchModifiers} instead.\n */\nexport const isMatch = dateMatchModifiers;\n//# sourceMappingURL=dateMatchModifiers.js.map"],"names":["dateMatchModifiers","date","matchers","dateLib","defaultDateLib","matchersArr","Array","isArray","isSameDay","differenceInCalendarDays","isAfter","some","matcher","isDate","isDatesArray","includes","isDateRange","rangeIncludesDate","isDayOfWeekType","dayOfWeek","getDay","isDateInterval","diffBefore","before","diffAfter","after","isDayBefore","isDayAfter","isClosedInterval","isDateAfterType","isDateBeforeType"],"mappings":";;;;AAaA;;;;;;;;;AASM,SAAUA,kBAAkBA,CAChCC,IAAU,EACVC,QAA6B,EAC7BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,WAAW,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,QAAQ,CAAC,GAAG,CAACA,QAAQ,CAAC,GAAGA,QAAQ;EACpE,MAAM;IAAEM,SAAS;IAAEC,wBAAwB;AAAEC,IAAAA;AAAO,GAAE,GAAGP,OAAO;AAChE,EAAA,OAAOE,WAAW,CAACM,IAAI,CAAEC,OAAgB,IAAI;AAC3C,IAAA,IAAI,OAAOA,OAAO,KAAK,SAAS,EAAE;AAChC,MAAA,OAAOA,OAAO;AAChB,IAAA;AACA,IAAA,IAAIT,OAAO,CAACU,MAAM,CAACD,OAAO,CAAC,EAAE;AAC3B,MAAA,OAAOJ,SAAS,CAACP,IAAI,EAAEW,OAAO,CAAC;AACjC,IAAA;AACA,IAAA,IAAIE,YAAY,CAACF,OAAO,EAAET,OAAO,CAAC,EAAE;AAClC,MAAA,OAAOS,OAAO,CAACG,QAAQ,CAACd,IAAI,CAAC;AAC/B,IAAA;AACA,IAAA,IAAIe,WAAW,CAACJ,OAAO,CAAC,EAAE;MACxB,OAAOK,iBAAiB,CAACL,OAAO,EAAEX,IAAI,EAAE,KAAK,EAAEE,OAAO,CAAC;AACzD,IAAA;AACA,IAAA,IAAIe,eAAe,CAACN,OAAO,CAAC,EAAE;MAC5B,IAAI,CAACN,KAAK,CAACC,OAAO,CAACK,OAAO,CAACO,SAAS,CAAC,EAAE;AACrC,QAAA,OAAOP,OAAO,CAACO,SAAS,KAAKlB,IAAI,CAACmB,MAAM,EAAE;AAC5C,MAAA;MACA,OAAOR,OAAO,CAACO,SAAS,CAACJ,QAAQ,CAACd,IAAI,CAACmB,MAAM,EAAE,CAAC;AAClD,IAAA;AACA,IAAA,IAAIC,cAAc,CAACT,OAAO,CAAC,EAAE;MAC3B,MAAMU,UAAU,GAAGb,wBAAwB,CAACG,OAAO,CAACW,MAAM,EAAEtB,IAAI,CAAC;MACjE,MAAMuB,SAAS,GAAGf,wBAAwB,CAACG,OAAO,CAACa,KAAK,EAAExB,IAAI,CAAC;AAC/D,MAAA,MAAMyB,WAAW,GAAGJ,UAAU,GAAG,CAAC;AAClC,MAAA,MAAMK,UAAU,GAAGH,SAAS,GAAG,CAAC;MAChC,MAAMI,gBAAgB,GAAGlB,OAAO,CAACE,OAAO,CAACW,MAAM,EAAEX,OAAO,CAACa,KAAK,CAAC;AAC/D,MAAA,IAAIG,gBAAgB,EAAE;QACpB,OAAOD,UAAU,IAAID,WAAW;AAClC,MAAA,CAAC,MAAM;QACL,OAAOA,WAAW,IAAIC,UAAU;AAClC,MAAA;AACF,IAAA;AACA,IAAA,IAAIE,eAAe,CAACjB,OAAO,CAAC,EAAE;MAC5B,OAAOH,wBAAwB,CAACR,IAAI,EAAEW,OAAO,CAACa,KAAK,CAAC,GAAG,CAAC;AAC1D,IAAA;AACA,IAAA,IAAIK,gBAAgB,CAAClB,OAAO,CAAC,EAAE;MAC7B,OAAOH,wBAAwB,CAACG,OAAO,CAACW,MAAM,EAAEtB,IAAI,CAAC,GAAG,CAAC;AAC3D,IAAA;AACA,IAAA,IAAI,OAAOW,OAAO,KAAK,UAAU,EAAE;MACjC,OAAOA,OAAO,CAACX,IAAI,CAAC;AACtB,IAAA;AACA,IAAA,OAAO,KAAK;AACd,EAAA,CAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","Array","isArray","date","from","totalDays","differenceInCalendarDays","to","totalDaysLimit","Math","min","i","includes","getDay","addDays"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"rangeContainsDayOfWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n//# sourceMappingURL=rangeContainsDayOfWeek.js.map"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","Array","isArray","date","from","totalDays","differenceInCalendarDays","to","totalDaysLimit","Math","min","i","includes","getDay","addDays"],"mappings":";;AAEA;;;;;;;;;;;;AAYM,SAAUA,sBAAsBA,CACpCC,KAA+B,EAC/BC,SAA4B,EAC5BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,YAAY,GAAG,CAACC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAG,CAACA,SAAS,CAAC,GAAGA,SAAS;AACxE,EAAA,IAAIM,IAAI,GAAGP,KAAK,CAACQ,IAAI;AACrB,EAAA,MAAMC,SAAS,GAAGP,OAAO,CAACQ,wBAAwB,CAACV,KAAK,CAACW,EAAE,EAAEX,KAAK,CAACQ,IAAI,CAAC;AAExE;EACA,MAAMI,cAAc,GAAGC,IAAI,CAACC,GAAG,CAACL,SAAS,EAAE,CAAC,CAAC;EAC7C,KAAK,IAAIM,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,cAAc,EAAEG,CAAC,EAAE,EAAE;IACxC,IAAIX,YAAY,CAACY,QAAQ,CAACT,IAAI,CAACU,MAAM,EAAE,CAAC,EAAE;AACxC,MAAA,OAAO,IAAI;AACb,IAAA;IACAV,IAAI,GAAGL,OAAO,CAACgB,OAAO,CAACX,IAAI,EAAE,CAAC,CAAC;AACjC,EAAA;AACA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType
|
|
1
|
+
{"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1)\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n//# sourceMappingURL=rangeContainsModifiers.js.map"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","Array","isArray","nonFunctionMatchers","filter","matcher","nonFunctionMatchersResult","some","isDate","rangeIncludesDate","isDatesArray","date","isDateRange","from","to","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","dayOfWeek","isDateInterval","isClosedInterval","isAfter","before","after","addDays","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","length","totalDays","differenceInCalendarDays","i"],"mappings":";;;;;;;AAgBA;;;;;;;;;;AAUM,SAAUA,sBAAsBA,CACpCC,KAA+B,EAC/BC,SAA8B,EAC9BC,OAAA,GAAmBC,cAAc,EAAA;AAEjC,EAAA,MAAMC,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACL,SAAS,CAAC,GAAGA,SAAS,GAAG,CAACA,SAAS,CAAC;AAEnE;AACA,EAAA,MAAMM,mBAAmB,GAAGH,QAAQ,CAACI,MAAM,CACxCC,OAAO,IAAK,OAAOA,OAAO,KAAK,UAAU,CAC3C;AAED,EAAA,MAAMC,yBAAyB,GAAGH,mBAAmB,CAACI,IAAI,CAAEF,OAAO,IAAI;AACrE,IAAA,IAAI,OAAOA,OAAO,KAAK,SAAS,EAAE,OAAOA,OAAO;AAEhD,IAAA,IAAIP,OAAO,CAACU,MAAM,CAACH,OAAO,CAAC,EAAE;MAC3B,OAAOI,iBAAiB,CAACb,KAAK,EAAES,OAAO,EAAE,KAAK,EAAEP,OAAO,CAAC;AAC1D,IAAA;AAEA,IAAA,IAAIY,YAAY,CAACL,OAAO,EAAEP,OAAO,CAAC,EAAE;AAClC,MAAA,OAAOO,OAAO,CAACE,IAAI,CAAEI,IAAI,IACvBF,iBAAiB,CAACb,KAAK,EAAEe,IAAI,EAAE,KAAK,EAAEb,OAAO,CAAC,CAC/C;AACH,IAAA;AAEA,IAAA,IAAIc,WAAW,CAACP,OAAO,CAAC,EAAE;AACxB,MAAA,IAAIA,OAAO,CAACQ,IAAI,IAAIR,OAAO,CAACS,EAAE,EAAE;QAC9B,OAAOC,aAAa,CAClBnB,KAAK,EACL;UAAEiB,IAAI,EAAER,OAAO,CAACQ,IAAI;UAAEC,EAAE,EAAET,OAAO,CAACS;SAAI,EACtChB,OAAO,CACR;AACH,MAAA;AACA,MAAA,OAAO,KAAK;AACd,IAAA;AAEA,IAAA,IAAIkB,eAAe,CAACX,OAAO,CAAC,EAAE;MAC5B,OAAOY,sBAAsB,CAACrB,KAAK,EAAES,OAAO,CAACa,SAAS,EAAEpB,OAAO,CAAC;AAClE,IAAA;AAEA,IAAA,IAAIqB,cAAc,CAACd,OAAO,CAAC,EAAE;AAC3B,MAAA,MAAMe,gBAAgB,GAAGtB,OAAO,CAACuB,OAAO,CAAChB,OAAO,CAACiB,MAAM,EAAEjB,OAAO,CAACkB,KAAK,CAAC;AACvE,MAAA,IAAIH,gBAAgB,EAAE;QACpB,OAAOL,aAAa,CAClBnB,KAAK,EACL;UACEiB,IAAI,EAAEf,OAAO,CAAC0B,OAAO,CAACnB,OAAO,CAACkB,KAAK,EAAE,CAAC,CAAC;UACvCT,EAAE,EAAEhB,OAAO,CAAC0B,OAAO,CAACnB,OAAO,CAACiB,MAAM,EAAE,EAAE;AACvC,SAAA,EACDxB,OAAO,CACR;AACH,MAAA;MACA,OACE2B,kBAAkB,CAAC7B,KAAK,CAACiB,IAAI,EAAER,OAAO,EAAEP,OAAO,CAAC,IAChD2B,kBAAkB,CAAC7B,KAAK,CAACkB,EAAE,EAAET,OAAO,EAAEP,OAAO,CAAC;AAElD,IAAA;IAEA,IAAI4B,eAAe,CAACrB,OAAO,CAAC,IAAIsB,gBAAgB,CAACtB,OAAO,CAAC,EAAE;MACzD,OACEoB,kBAAkB,CAAC7B,KAAK,CAACiB,IAAI,EAAER,OAAO,EAAEP,OAAO,CAAC,IAChD2B,kBAAkB,CAAC7B,KAAK,CAACkB,EAAE,EAAET,OAAO,EAAEP,OAAO,CAAC;AAElD,IAAA;AAEA,IAAA,OAAO,KAAK;AACd,EAAA,CAAC,CAAC;AAEF,EAAA,IAAIQ,yBAAyB,EAAE;AAC7B,IAAA,OAAO,IAAI;AACb,EAAA;AAEA,EAAA,MAAMsB,gBAAgB,GAAG5B,QAAQ,CAACI,MAAM,CACrCC,OAAO,IAAK,OAAOA,OAAO,KAAK,UAAU,CAC3C;EAED,IAAIuB,gBAAgB,CAACC,MAAM,EAAE;AAC3B,IAAA,IAAIlB,IAAI,GAAGf,KAAK,CAACiB,IAAI;AACrB,IAAA,MAAMiB,SAAS,GAAGhC,OAAO,CAACiC,wBAAwB,CAACnC,KAAK,CAACkB,EAAE,EAAElB,KAAK,CAACiB,IAAI,CAAC;IAExE,KAAK,IAAImB,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIF,SAAS,EAAEE,CAAC,EAAE,EAAE;MACnC,IAAIJ,gBAAgB,CAACrB,IAAI,CAAEF,OAAO,IAAKA,OAAO,CAACM,IAAI,CAAC,CAAC,EAAE;AACrD,QAAA,OAAO,IAAI;AACb,MAAA;MACAA,IAAI,GAAGb,OAAO,CAAC0B,OAAO,CAACb,IAAI,EAAE,CAAC,CAAC;AACjC,IAAA;AACF,EAAA;AAEA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay","isRangeInverted","isInRange"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n//# sourceMappingURL=rangeIncludesDate.js.map"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay","isRangeInverted","isInRange"],"mappings":";;AAGA;;;;;;;;;;;AAWM,SAAUA,iBAAiBA,CAC/BC,KAAgB,EAChBC,IAAU,EACVC,WAAW,GAAG,KAAK,EACnBC,OAAO,GAAGC,cAAc,EAAA;EAExB,IAAI;IAAEC,IAAI;AAAEC,IAAAA;AAAE,GAAE,GAAGN,KAAK;EACxB,MAAM;IAAEO,wBAAwB;AAAEC,IAAAA;AAAS,GAAE,GAAGL,OAAO;EACvD,IAAIE,IAAI,IAAIC,EAAE,EAAE;IACd,MAAMG,eAAe,GAAGF,wBAAwB,CAACD,EAAE,EAAED,IAAI,CAAC,GAAG,CAAC;AAC9D,IAAA,IAAII,eAAe,EAAE;MACnB,CAACJ,IAAI,EAAEC,EAAE,CAAC,GAAG,CAACA,EAAE,EAAED,IAAI,CAAC;AACzB,IAAA;AACA,IAAA,MAAMK,SAAS,GACbH,wBAAwB,CAACN,IAAI,EAAEI,IAAI,CAAC,KAAKH,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC,IAC7DK,wBAAwB,CAACD,EAAE,EAAEL,IAAI,CAAC,KAAKC,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7D,IAAA,OAAOQ,SAAS;AAClB,EAAA;AACA,EAAA,IAAI,CAACR,WAAW,IAAII,EAAE,EAAE;AACtB,IAAA,OAAOE,SAAS,CAACF,EAAE,EAAEL,IAAI,CAAC;AAC5B,EAAA;AACA,EAAA,IAAI,CAACC,WAAW,IAAIG,IAAI,EAAE;AACxB,IAAA,OAAOG,SAAS,CAACH,IAAI,EAAEJ,IAAI,CAAC;AAC9B,EAAA;AACA,EAAA,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate","from","to"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n//# sourceMappingURL=rangeOverlaps.js.map"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate","from","to"],"mappings":";;;AAIA;;;;;;;;;;AAUM,SAAUA,aAAaA,CAC3BC,SAAmC,EACnCC,UAAoC,EACpCC,OAAO,GAAGC,cAAc,EAAA;EAExB,OACEC,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACI,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACJ,SAAS,EAAEC,UAAU,CAACK,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC,IAC3DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACK,IAAI,EAAE,KAAK,EAAEH,OAAO,CAAC,IAC7DE,iBAAiB,CAACH,UAAU,EAAED,SAAS,CAACM,EAAE,EAAE,KAAK,EAAEJ,OAAO,CAAC;AAE/D;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":["isDateInterval","matcher","Boolean","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib","Array","isArray","every","isDate"],"mappings":"
|
|
1
|
+
{"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n//# sourceMappingURL=typeguards.js.map"],"names":["isDateInterval","matcher","Boolean","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib","Array","isArray","every","isDate"],"mappings":"AASA;;;;;;;AAOM,SAAUA,cAAcA,CAACC,OAAgB,EAAA;AAC7C,EAAA,OAAOC,OAAO,CACZD,OAAO,IACL,OAAOA,OAAO,KAAK,QAAQ,IAC3B,QAAQ,IAAIA,OAAO,IACnB,OAAO,IAAIA,OAAO,CACrB;AACH;AAEA;;;;;;;AAOM,SAAUE,WAAWA,CAACC,KAAc,EAAA;AACxC,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAIA,KAAK,CAAC;AACvE;AAEA;;;;;;;AAOM,SAAUC,eAAeA,CAACD,KAAc,EAAA;AAC5C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAIA,KAAK,CAAC;AACxE;AAEA;;;;;;;AAOM,SAAUE,gBAAgBA,CAACF,KAAc,EAAA;AAC7C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAIA,KAAK,CAAC;AACzE;AAEA;;;;;;;AAOM,SAAUG,eAAeA,CAACH,KAAc,EAAA;AAC5C,EAAA,OAAOF,OAAO,CAACE,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAIA,KAAK,CAAC;AAC5E;AAEA;;;;;;;;AAQM,SAAUI,YAAYA,CAC1BJ,KAAc,EACdK,OAAgB,EAAA;AAEhB,EAAA,OAAOC,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAIA,KAAK,CAACQ,KAAK,CAACH,OAAO,CAACI,MAAM,CAAC;AAC5D;;;;","x_google_ignoreList":[0]}
|
|
@@ -40,7 +40,7 @@ function cloneObject(data) {
|
|
|
40
40
|
}
|
|
41
41
|
else if (!(isWeb && (data instanceof Blob || isFileListInstance)) &&
|
|
42
42
|
(isArray || isObject(data))) {
|
|
43
|
-
copy = isArray ? [] :
|
|
43
|
+
copy = isArray ? [] : {};
|
|
44
44
|
if (!isArray && !isPlainObject(data)) {
|
|
45
45
|
copy = data;
|
|
46
46
|
}
|
|
@@ -423,7 +423,6 @@ function useController(props) {
|
|
|
423
423
|
exact: true,
|
|
424
424
|
});
|
|
425
425
|
const _props = React__default.useRef(props);
|
|
426
|
-
const _previousNameRef = React__default.useRef(undefined);
|
|
427
426
|
const _registerProps = React__default.useRef(control.register(name, {
|
|
428
427
|
...props.rules,
|
|
429
428
|
value,
|
|
@@ -489,10 +488,6 @@ function useController(props) {
|
|
|
489
488
|
}), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);
|
|
490
489
|
React__default.useEffect(() => {
|
|
491
490
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
492
|
-
const previousName = _previousNameRef.current;
|
|
493
|
-
if (previousName && previousName !== name && !isArrayField) {
|
|
494
|
-
control.unregister(previousName);
|
|
495
|
-
}
|
|
496
491
|
control.register(name, {
|
|
497
492
|
..._props.current.rules,
|
|
498
493
|
...(isBoolean(_props.current.disabled)
|
|
@@ -507,14 +502,13 @@ function useController(props) {
|
|
|
507
502
|
};
|
|
508
503
|
updateMounted(name, true);
|
|
509
504
|
if (_shouldUnregisterField) {
|
|
510
|
-
const value = cloneObject(get(control._options.defaultValues, name
|
|
505
|
+
const value = cloneObject(get(control._options.defaultValues, name));
|
|
511
506
|
set(control._defaultValues, name, value);
|
|
512
507
|
if (isUndefined(get(control._formValues, name))) {
|
|
513
508
|
set(control._formValues, name, value);
|
|
514
509
|
}
|
|
515
510
|
}
|
|
516
511
|
!isArrayField && control.register(name);
|
|
517
|
-
_previousNameRef.current = name;
|
|
518
512
|
return () => {
|
|
519
513
|
(isArrayField
|
|
520
514
|
? _shouldUnregisterField && !control._state.action
|
|
@@ -737,26 +731,6 @@ var createSubject = () => {
|
|
|
737
731
|
};
|
|
738
732
|
};
|
|
739
733
|
|
|
740
|
-
function extractFormValues(fieldsState, formValues) {
|
|
741
|
-
const values = {};
|
|
742
|
-
for (const key in fieldsState) {
|
|
743
|
-
if (fieldsState.hasOwnProperty(key)) {
|
|
744
|
-
const fieldState = fieldsState[key];
|
|
745
|
-
const fieldValue = formValues[key];
|
|
746
|
-
if (fieldState && isObject(fieldState) && fieldValue) {
|
|
747
|
-
const nestedFieldsState = extractFormValues(fieldState, fieldValue);
|
|
748
|
-
if (isObject(nestedFieldsState)) {
|
|
749
|
-
values[key] = nestedFieldsState;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
else if (fieldsState[key]) {
|
|
753
|
-
values[key] = fieldValue;
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
return values;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
734
|
var isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;
|
|
761
735
|
|
|
762
736
|
var isFileInput = (element) => element.type === 'file';
|
|
@@ -825,40 +799,46 @@ var objectHasFunction = (data) => {
|
|
|
825
799
|
return false;
|
|
826
800
|
};
|
|
827
801
|
|
|
828
|
-
function isTraversable(value) {
|
|
829
|
-
return Array.isArray(value) || (isObject(value) && !objectHasFunction(value));
|
|
830
|
-
}
|
|
831
802
|
function markFieldsDirty(data, fields = {}) {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
803
|
+
const isParentNodeArray = Array.isArray(data);
|
|
804
|
+
if (isObject(data) || isParentNodeArray) {
|
|
805
|
+
for (const key in data) {
|
|
806
|
+
if (Array.isArray(data[key]) ||
|
|
807
|
+
(isObject(data[key]) && !objectHasFunction(data[key]))) {
|
|
808
|
+
fields[key] = Array.isArray(data[key]) ? [] : {};
|
|
809
|
+
markFieldsDirty(data[key], fields[key]);
|
|
810
|
+
}
|
|
811
|
+
else if (!isNullOrUndefined(data[key])) {
|
|
812
|
+
fields[key] = true;
|
|
813
|
+
}
|
|
839
814
|
}
|
|
840
815
|
}
|
|
841
816
|
return fields;
|
|
842
817
|
}
|
|
843
|
-
function
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
818
|
+
function getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {
|
|
819
|
+
const isParentNodeArray = Array.isArray(data);
|
|
820
|
+
if (isObject(data) || isParentNodeArray) {
|
|
821
|
+
for (const key in data) {
|
|
822
|
+
if (Array.isArray(data[key]) ||
|
|
823
|
+
(isObject(data[key]) && !objectHasFunction(data[key]))) {
|
|
824
|
+
if (isUndefined(formValues) ||
|
|
825
|
+
isPrimitive(dirtyFieldsFromValues[key])) {
|
|
826
|
+
dirtyFieldsFromValues[key] = Array.isArray(data[key])
|
|
827
|
+
? markFieldsDirty(data[key], [])
|
|
828
|
+
: { ...markFieldsDirty(data[key]) };
|
|
829
|
+
}
|
|
830
|
+
else {
|
|
831
|
+
getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);
|
|
832
|
+
}
|
|
851
833
|
}
|
|
852
834
|
else {
|
|
853
|
-
|
|
835
|
+
dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);
|
|
854
836
|
}
|
|
855
837
|
}
|
|
856
|
-
else {
|
|
857
|
-
dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);
|
|
858
|
-
}
|
|
859
838
|
}
|
|
860
839
|
return dirtyFieldsFromValues;
|
|
861
840
|
}
|
|
841
|
+
var getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));
|
|
862
842
|
|
|
863
843
|
const defaultResult = {
|
|
864
844
|
value: false,
|
|
@@ -1092,13 +1072,15 @@ var updateFieldArrayRootError = (errors, error, name) => {
|
|
|
1092
1072
|
return errors;
|
|
1093
1073
|
};
|
|
1094
1074
|
|
|
1075
|
+
var isMessage = (value) => isString(value);
|
|
1076
|
+
|
|
1095
1077
|
function getValidateError(result, ref, type = 'validate') {
|
|
1096
|
-
if (
|
|
1097
|
-
(Array.isArray(result) && result.every(
|
|
1078
|
+
if (isMessage(result) ||
|
|
1079
|
+
(Array.isArray(result) && result.every(isMessage)) ||
|
|
1098
1080
|
(isBoolean(result) && !result)) {
|
|
1099
1081
|
return {
|
|
1100
1082
|
type,
|
|
1101
|
-
message:
|
|
1083
|
+
message: isMessage(result) ? result : '',
|
|
1102
1084
|
ref,
|
|
1103
1085
|
};
|
|
1104
1086
|
}
|
|
@@ -1151,7 +1133,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
|
|
|
1151
1133
|
(isBoolean(inputValue) && !inputValue) ||
|
|
1152
1134
|
(isCheckBox && !getCheckboxValue(refs).isValid) ||
|
|
1153
1135
|
(isRadio && !getRadioValue(refs).isValid))) {
|
|
1154
|
-
const { value, message } =
|
|
1136
|
+
const { value, message } = isMessage(required)
|
|
1155
1137
|
? { value: !!required, message: required }
|
|
1156
1138
|
: getValueAndMessage(required);
|
|
1157
1139
|
if (value) {
|
|
@@ -1557,11 +1539,11 @@ function createFormControl(props = {}) {
|
|
|
1557
1539
|
const isFieldArrayRoot = _names.array.has(_f.name);
|
|
1558
1540
|
const isPromiseFunction = field._f && hasPromiseValidation(field._f);
|
|
1559
1541
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
1560
|
-
_updateIsValidating([
|
|
1542
|
+
_updateIsValidating([name], true);
|
|
1561
1543
|
}
|
|
1562
1544
|
const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);
|
|
1563
1545
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
1564
|
-
_updateIsValidating([
|
|
1546
|
+
_updateIsValidating([name]);
|
|
1565
1547
|
}
|
|
1566
1548
|
if (fieldError[_f.name]) {
|
|
1567
1549
|
context.valid = false;
|
|
@@ -1735,10 +1717,8 @@ function createFormControl(props = {}) {
|
|
|
1735
1717
|
const watched = isWatched(name, _names, isBlurEvent);
|
|
1736
1718
|
set(_formValues, name, fieldValue);
|
|
1737
1719
|
if (isBlurEvent) {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
delayErrorCallback && delayErrorCallback(0);
|
|
1741
|
-
}
|
|
1720
|
+
field._f.onBlur && field._f.onBlur(event);
|
|
1721
|
+
delayErrorCallback && delayErrorCallback(0);
|
|
1742
1722
|
}
|
|
1743
1723
|
else if (field._f.onChange) {
|
|
1744
1724
|
field._f.onChange(event);
|
|
@@ -1794,7 +1774,6 @@ function createFormControl(props = {}) {
|
|
|
1794
1774
|
}
|
|
1795
1775
|
if (isFieldValueUpdated) {
|
|
1796
1776
|
field._f.deps &&
|
|
1797
|
-
(!Array.isArray(field._f.deps) || field._f.deps.length > 0) &&
|
|
1798
1777
|
trigger(field._f.deps);
|
|
1799
1778
|
shouldRenderByError(name, isValid, error, fieldState);
|
|
1800
1779
|
}
|
|
@@ -1842,13 +1821,10 @@ function createFormControl(props = {}) {
|
|
|
1842
1821
|
iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);
|
|
1843
1822
|
return validationResult;
|
|
1844
1823
|
};
|
|
1845
|
-
const getValues = (fieldNames
|
|
1846
|
-
|
|
1824
|
+
const getValues = (fieldNames) => {
|
|
1825
|
+
const values = {
|
|
1847
1826
|
...(_state.mount ? _formValues : _defaultValues),
|
|
1848
1827
|
};
|
|
1849
|
-
if (config) {
|
|
1850
|
-
values = extractFormValues(config.dirtyFields ? _formState.dirtyFields : _formState.touchedFields, values);
|
|
1851
|
-
}
|
|
1852
1828
|
return isUndefined(fieldNames)
|
|
1853
1829
|
? values
|
|
1854
1830
|
: isString(fieldNames)
|
|
@@ -2237,7 +2213,6 @@ function createFormControl(props = {}) {
|
|
|
2237
2213
|
? _formState.isSubmitSuccessful
|
|
2238
2214
|
: false,
|
|
2239
2215
|
isSubmitting: false,
|
|
2240
|
-
defaultValues: _defaultValues,
|
|
2241
2216
|
});
|
|
2242
2217
|
};
|
|
2243
2218
|
const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)
|
|
@@ -2460,7 +2435,9 @@ function useFieldArray(props) {
|
|
|
2460
2435
|
const { control = methods.control, name, keyName = 'id', shouldUnregister, rules, } = props;
|
|
2461
2436
|
const [fields, setFields] = React__default.useState(control._getFieldArray(name));
|
|
2462
2437
|
const ids = React__default.useRef(control._getFieldArray(name).map(generateId));
|
|
2438
|
+
const _fieldIds = React__default.useRef(fields);
|
|
2463
2439
|
const _actioned = React__default.useRef(false);
|
|
2440
|
+
_fieldIds.current = fields;
|
|
2464
2441
|
control._names.array.add(name);
|
|
2465
2442
|
React__default.useMemo(() => rules &&
|
|
2466
2443
|
control.register(name, rules), [control, rules, name]);
|