@ionic/core 7.7.2-dev.11707926434.1affaed4 → 7.7.2-dev.11707941206.120570b8

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.
Files changed (35) hide show
  1. package/components/data.js +2 -7
  2. package/components/ion-datetime.js +50 -49
  3. package/dist/cjs/{data-6246812e.js → data-6df19461.js} +2 -7
  4. package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -1
  5. package/dist/cjs/ion-datetime_3.cjs.entry.js +51 -50
  6. package/dist/collection/components/datetime/datetime.js +9 -49
  7. package/dist/collection/components/datetime/test/basic/datetime.e2e.js +2 -4
  8. package/dist/collection/components/datetime/test/format.spec.js +1 -15
  9. package/dist/collection/components/datetime/utils/format.js +2 -24
  10. package/dist/collection/components/datetime/utils/warn.js +45 -0
  11. package/dist/docs.json +1 -1
  12. package/dist/esm/{data-25d50209.js → data-7f65d952.js} +2 -7
  13. package/dist/esm/ion-datetime-button.entry.js +1 -1
  14. package/dist/esm/ion-datetime_3.entry.js +51 -50
  15. package/dist/esm-es5/data-7f65d952.js +4 -0
  16. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  17. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  18. package/dist/ionic/ionic.esm.js +1 -1
  19. package/dist/ionic/p-0b955124.system.js +1 -1
  20. package/dist/ionic/{p-87ae4f6c.system.entry.js → p-28a92c20.system.entry.js} +1 -1
  21. package/dist/ionic/p-56da74d7.system.entry.js +4 -0
  22. package/dist/ionic/{p-7c5e8706.entry.js → p-e1cc4ad7.entry.js} +1 -1
  23. package/dist/ionic/p-e81d133a.js +4 -0
  24. package/dist/ionic/p-ed582803.entry.js +4 -0
  25. package/dist/ionic/p-f20d9ef9.system.js +4 -0
  26. package/dist/types/components/datetime/datetime.d.ts +0 -7
  27. package/dist/types/components/datetime/utils/format.d.ts +0 -12
  28. package/dist/types/components/datetime/utils/warn.d.ts +8 -0
  29. package/hydrate/index.js +52 -56
  30. package/package.json +1 -1
  31. package/dist/esm-es5/data-25d50209.js +0 -4
  32. package/dist/ionic/p-26138fed.js +0 -4
  33. package/dist/ionic/p-68ae6719.system.entry.js +0 -4
  34. package/dist/ionic/p-8e16390d.system.js +0 -4
  35. package/dist/ionic/p-f74afe3b.entry.js +0 -4
package/hydrate/index.js CHANGED
@@ -15766,7 +15766,7 @@ const stripTimeZone = (formatOptions) => {
15766
15766
  formatOptions.timeZone = 'UTC';
15767
15767
  return formatOptions;
15768
15768
  };
15769
- const getLocalizedTime = (locale, refParts, hourCycle, formatOptions) => {
15769
+ const getLocalizedTime = (locale, refParts, hourCycle, formatOptions = { hour: 'numeric', minute: 'numeric' }) => {
15770
15770
  const timeParts = {
15771
15771
  hour: refParts.hour,
15772
15772
  minute: refParts.minute,
@@ -15774,12 +15774,7 @@ const getLocalizedTime = (locale, refParts, hourCycle, formatOptions) => {
15774
15774
  if (timeParts.hour === undefined || timeParts.minute === undefined) {
15775
15775
  return 'Invalid Time';
15776
15776
  }
15777
- const defaultFormatOptions = { hour: 'numeric', minute: 'numeric' };
15778
- /**
15779
- * If any options are provided, don't use any of the defaults.
15780
- */
15781
- const options = stripTimeZone(formatOptions !== null && formatOptions !== void 0 ? formatOptions : defaultFormatOptions);
15782
- return new Intl.DateTimeFormat(locale, Object.assign(Object.assign({}, options), {
15777
+ return new Intl.DateTimeFormat(locale, Object.assign(Object.assign({}, stripTimeZone(formatOptions)), {
15783
15778
  /**
15784
15779
  * We use hourCycle here instead of hour12 due to:
15785
15780
  * https://bugs.chromium.org/p/chromium/issues/detail?id=1347316&q=hour12&can=2
@@ -16695,6 +16690,48 @@ const getHighlightStyles = (highlightedDates, dateIsoString, el) => {
16695
16690
  return undefined;
16696
16691
  };
16697
16692
 
16693
+ /**
16694
+ * If a time zone is provided in the format options, the rendered text could
16695
+ * differ from what was selected in the Datetime, which could cause
16696
+ * confusion.
16697
+ */
16698
+ const warnIfTimeZoneProvided = (formatOptions) => {
16699
+ var _a, _b, _c, _d;
16700
+ if (((_a = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _a === void 0 ? void 0 : _a.timeZone) ||
16701
+ ((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
16702
+ ((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
16703
+ ((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
16704
+ printIonWarning('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".');
16705
+ }
16706
+ };
16707
+ const checkForPresentationFormatMismatch = (presentation, formatOptions) => {
16708
+ // formatOptions is not required
16709
+ if (!formatOptions)
16710
+ return;
16711
+ // If formatOptions is provided, the date and/or time objects are required, depending on the presentation
16712
+ switch (presentation) {
16713
+ case 'date':
16714
+ case 'month-year':
16715
+ case 'month':
16716
+ case 'year':
16717
+ if (formatOptions.date === undefined) {
16718
+ printIonWarning(`Datetime: The '${presentation}' presentation requires a date object in formatOptions.`);
16719
+ }
16720
+ break;
16721
+ case 'time':
16722
+ if (formatOptions.time === undefined) {
16723
+ printIonWarning(`Datetime: The 'time' presentation requires a time object in formatOptions.`);
16724
+ }
16725
+ break;
16726
+ case 'date-time':
16727
+ case 'time-date':
16728
+ if (formatOptions.date === undefined && formatOptions.time === undefined) {
16729
+ printIonWarning(`Datetime: The '${presentation}' presentation requires either a date or time object (or both) in formatOptions.`);
16730
+ }
16731
+ break;
16732
+ }
16733
+ };
16734
+
16698
16735
  const datetimeIosCss = "/*!@:host*/.sc-ion-datetime-ios-h{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}/*!@ion-picker-column-internal*/ion-picker-column-internal.sc-ion-datetime-ios{min-width:26px}/*!@:host(.datetime-size-fixed)*/.datetime-size-fixed.sc-ion-datetime-ios-h{width:auto;height:auto}/*!@:host(.datetime-size-fixed:not(.datetime-prefer-wheel))*/.datetime-size-fixed.sc-ion-datetime-ios-h:not(.datetime-prefer-wheel){max-width:350px}/*!@:host(.datetime-size-fixed.datetime-prefer-wheel)*/.datetime-size-fixed.datetime-prefer-wheel.sc-ion-datetime-ios-h{min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}/*!@:host(.datetime-size-cover)*/.datetime-size-cover.sc-ion-datetime-ios-h{width:100%}/*!@:host .calendar-body,\n:host .datetime-year*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios,.sc-ion-datetime-ios-h .datetime-year.sc-ion-datetime-ios{opacity:0}/*!@:host(:not(.datetime-ready)) .datetime-year*/.sc-ion-datetime-ios-h:not(.datetime-ready) .datetime-year.sc-ion-datetime-ios{position:absolute;pointer-events:none}/*!@:host(.datetime-ready) .calendar-body*/.datetime-ready.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios{opacity:1}/*!@:host(.datetime-ready) .datetime-year*/.datetime-ready.sc-ion-datetime-ios-h .datetime-year.sc-ion-datetime-ios{display:none;opacity:1}/*!@:host .wheel-order-year-first .day-column*/.sc-ion-datetime-ios-h .wheel-order-year-first.sc-ion-datetime-ios .day-column.sc-ion-datetime-ios{-ms-flex-order:3;order:3;text-align:end}/*!@:host .wheel-order-year-first .month-column*/.sc-ion-datetime-ios-h .wheel-order-year-first.sc-ion-datetime-ios .month-column.sc-ion-datetime-ios{-ms-flex-order:2;order:2;text-align:end}/*!@:host .wheel-order-year-first .year-column*/.sc-ion-datetime-ios-h .wheel-order-year-first.sc-ion-datetime-ios .year-column.sc-ion-datetime-ios{-ms-flex-order:1;order:1;text-align:start}/*!@:host .datetime-calendar,\n:host .datetime-year*/.sc-ion-datetime-ios-h .datetime-calendar.sc-ion-datetime-ios,.sc-ion-datetime-ios-h .datetime-year.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}/*!@:host(.show-month-and-year) .datetime-year*/.show-month-and-year.sc-ion-datetime-ios-h .datetime-year.sc-ion-datetime-ios{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){/*!@:host(.show-month-and-year) .calendar-next-prev,\n :host(.show-month-and-year) .calendar-days-of-week,\n :host(.show-month-and-year) .calendar-body,\n :host(.show-month-and-year) .datetime-time*/.show-month-and-year.sc-ion-datetime-ios-h .calendar-next-prev.sc-ion-datetime-ios,.show-month-and-year.sc-ion-datetime-ios-h .calendar-days-of-week.sc-ion-datetime-ios,.show-month-and-year.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios,.show-month-and-year.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios{position:absolute;visibility:hidden;pointer-events:none}/*!@@supports (inset-inline-start: 0)*/@supports .sc-ion-datetime-ios (inset-inline-start.sc-ion-datetime-ios: 0).sc-ion-datetime-ios{.sc-ion-datetime-ios-h.show-month-and-year .calendar-next-prev,.sc-ion-datetime-ios-h.show-month-and-year .calendar-days-of-week,.sc-ion-datetime-ios-h.show-month-and-year .calendar-body,.sc-ion-datetime-ios-h.show-month-and-year .datetime-time{inset-inline-start:-99999px}}/*!@@supports not (inset-inline-start: 0)*/@supports .sc-ion-datetime-ios not.sc-ion-datetime-ios (inset-inline-start.sc-ion-datetime-ios: 0).sc-ion-datetime-ios{.sc-ion-datetime-ios-h.show-month-and-year .calendar-next-prev,.sc-ion-datetime-ios-h.show-month-and-year .calendar-days-of-week,.sc-ion-datetime-ios-h.show-month-and-year .calendar-body,.sc-ion-datetime-ios-h.show-month-and-year .datetime-time{left:-99999px}.sc-ion-datetime-ios-h[dir=rtl].sc-ion-datetime-ios-h.show-month-and-year .calendar-next-prev,[dir=rtl] .sc-ion-datetime-ios-h.sc-ion-datetime-ios-h.show-month-and-year .calendar-next-prev,.sc-ion-datetime-ios-h[dir=rtl].show-month-and-year .calendar-next-prev,[dir=rtl] .sc-ion-datetime-ios-h.show-month-and-year .calendar-next-prev,.sc-ion-datetime-ios-h[dir=rtl].sc-ion-datetime-ios-h.show-month-and-year .calendar-days-of-week,[dir=rtl] .sc-ion-datetime-ios-h.sc-ion-datetime-ios-h.show-month-and-year .calendar-days-of-week,.sc-ion-datetime-ios-h[dir=rtl].show-month-and-year .calendar-days-of-week,[dir=rtl] .sc-ion-datetime-ios-h.show-month-and-year .calendar-days-of-week,.sc-ion-datetime-ios-h[dir=rtl].sc-ion-datetime-ios-h.show-month-and-year .calendar-body,[dir=rtl] .sc-ion-datetime-ios-h.sc-ion-datetime-ios-h.show-month-and-year .calendar-body,.sc-ion-datetime-ios-h[dir=rtl].show-month-and-year .calendar-body,[dir=rtl] .sc-ion-datetime-ios-h.show-month-and-year .calendar-body,.sc-ion-datetime-ios-h[dir=rtl].sc-ion-datetime-ios-h.show-month-and-year .datetime-time,[dir=rtl] .sc-ion-datetime-ios-h.sc-ion-datetime-ios-h.show-month-and-year .datetime-time,.sc-ion-datetime-ios-h[dir=rtl].show-month-and-year .datetime-time,[dir=rtl] .sc-ion-datetime-ios-h.show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){.sc-ion-datetime-ios-h.show-month-and-year:dir(rtl) .calendar-next-prev,.sc-ion-datetime-ios-h.show-month-and-year:dir(rtl) .calendar-days-of-week,.sc-ion-datetime-ios-h.show-month-and-year:dir(rtl) .calendar-body,.sc-ion-datetime-ios-h.show-month-and-year:dir(rtl) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){/*!@:host(.show-month-and-year) .calendar-next-prev,\n :host(.show-month-and-year) .calendar-days-of-week,\n :host(.show-month-and-year) .calendar-body,\n :host(.show-month-and-year) .datetime-time*/.show-month-and-year.sc-ion-datetime-ios-h .calendar-next-prev.sc-ion-datetime-ios,.show-month-and-year.sc-ion-datetime-ios-h .calendar-days-of-week.sc-ion-datetime-ios,.show-month-and-year.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios,.show-month-and-year.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios{display:none}}/*!@:host(.month-year-picker-open) .datetime-footer*/.month-year-picker-open.sc-ion-datetime-ios-h .datetime-footer.sc-ion-datetime-ios{display:none}/*!@:host(.datetime-disabled)*/.datetime-disabled.sc-ion-datetime-ios-h{pointer-events:none}/*!@:host(.datetime-disabled) .calendar-days-of-week,\n:host(.datetime-disabled) .datetime-time*/.datetime-disabled.sc-ion-datetime-ios-h .calendar-days-of-week.sc-ion-datetime-ios,.datetime-disabled.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios{opacity:0.4}/*!@:host(.datetime-readonly)*/.datetime-readonly.sc-ion-datetime-ios-h{pointer-events:none}/*!@:host(.datetime-readonly) .calendar-action-buttons,\n:host(.datetime-readonly) .calendar-body,\n:host(.datetime-readonly) .datetime-year*/.datetime-readonly.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios,.datetime-readonly.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios,.datetime-readonly.sc-ion-datetime-ios-h .datetime-year.sc-ion-datetime-ios{pointer-events:initial}/*!@:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),\n:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]*/.datetime-readonly.sc-ion-datetime-ios-h .calendar-day[disabled].sc-ion-datetime-ios:not(.calendar-day-constrained),.datetime-readonly.sc-ion-datetime-ios-h .datetime-action-buttons.sc-ion-datetime-ios ion-button[disabled].sc-ion-datetime-ios{opacity:1}/*!@:host .datetime-header .datetime-title*/.sc-ion-datetime-ios-h .datetime-header.sc-ion-datetime-ios .datetime-title.sc-ion-datetime-ios{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@:host .datetime-action-buttons.has-clear-button*/.sc-ion-datetime-ios-h .datetime-action-buttons.has-clear-button.sc-ion-datetime-ios{width:100%}/*!@:host .datetime-action-buttons ion-buttons*/.sc-ion-datetime-ios-h .datetime-action-buttons.sc-ion-datetime-ios ion-buttons.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}/*!@.datetime-action-buttons .datetime-action-buttons-container*/.datetime-action-buttons.sc-ion-datetime-ios .datetime-action-buttons-container.sc-ion-datetime-ios{display:-ms-flexbox;display:flex}/*!@:host .calendar-action-buttons*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}/*!@:host .calendar-action-buttons ion-item,\n:host .calendar-action-buttons ion-button*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-item.sc-ion-datetime-ios,.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-button.sc-ion-datetime-ios{--background:translucent}/*!@:host .calendar-action-buttons ion-item ion-label*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-item.sc-ion-datetime-ios ion-label.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}/*!@:host .calendar-action-buttons ion-item ion-icon*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-item.sc-ion-datetime-ios ion-icon.sc-ion-datetime-ios{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}/*!@:host .calendar-days-of-week*/.sc-ion-datetime-ios-h .calendar-days-of-week.sc-ion-datetime-ios{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}/*!@.calendar-days-of-week .day-of-week*/.calendar-days-of-week.sc-ion-datetime-ios .day-of-week.sc-ion-datetime-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}/*!@:host .calendar-body*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}/*!@:host .calendar-body .calendar-month*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios .calendar-month.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}/*!@:host .calendar-body .calendar-month-disabled*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios .calendar-month-disabled.sc-ion-datetime-ios{scroll-snap-align:none}/*!@:host .calendar-body::-webkit-scrollbar*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios::-webkit-scrollbar{display:none}/*!@:host .calendar-body .calendar-month-grid*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios .calendar-month-grid.sc-ion-datetime-ios{display:grid;grid-template-columns:repeat(7, 1fr)}/*!@:host .calendar-day-wrapper*/.sc-ion-datetime-ios-h .calendar-day-wrapper.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}/*!@.calendar-day*/.calendar-day.sc-ion-datetime-ios{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}/*!@:host .calendar-day[disabled]*/.sc-ion-datetime-ios-h .calendar-day[disabled].sc-ion-datetime-ios{pointer-events:none;opacity:0.4}/*!@.calendar-day:focus*/.calendar-day.sc-ion-datetime-ios:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}/*!@:host .datetime-time*/.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}/*!@:host(.datetime-presentation-time) .datetime-time*/.datetime-presentation-time.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}/*!@:host ion-popover*/.sc-ion-datetime-ios-h ion-popover.sc-ion-datetime-ios{--height:200px}/*!@:host .time-header*/.sc-ion-datetime-ios-h .time-header.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@:host .time-body*/.sc-ion-datetime-ios-h .time-body.sc-ion-datetime-ios{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}/*!@:host .time-body-active*/.sc-ion-datetime-ios-h .time-body-active.sc-ion-datetime-ios{color:var(--ion-color-base)}/*!@:host(.in-item)*/.in-item.sc-ion-datetime-ios-h{position:static}/*!@:host(.show-month-and-year) .calendar-action-buttons ion-item*/.show-month-and-year.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-item.sc-ion-datetime-ios{--color:var(--ion-color-base)}/*!@:host*/.sc-ion-datetime-ios-h{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}/*!@:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),\n:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),\n:host(.datetime-presentation-date:not(.datetime-prefer-wheel))*/.datetime-presentation-date-time.sc-ion-datetime-ios-h:not(.datetime-prefer-wheel),.datetime-presentation-time-date.sc-ion-datetime-ios-h:not(.datetime-prefer-wheel),.datetime-presentation-date.sc-ion-datetime-ios-h:not(.datetime-prefer-wheel){min-height:350px}/*!@:host .datetime-header*/.sc-ion-datetime-ios-h .datetime-header.sc-ion-datetime-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:min(0.875rem, 22.4px)}/*!@:host .datetime-header .datetime-title*/.sc-ion-datetime-ios-h .datetime-header.sc-ion-datetime-ios .datetime-title.sc-ion-datetime-ios{color:var(--title-color)}/*!@:host .datetime-header .datetime-selected-date*/.sc-ion-datetime-ios-h .datetime-header.sc-ion-datetime-ios .datetime-selected-date.sc-ion-datetime-ios{margin-top:10px}/*!@:host .calendar-action-buttons ion-item*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-item.sc-ion-datetime-ios{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:min(1rem, 25.6px);font-weight:600}/*!@:host .calendar-action-buttons ion-item ion-icon,\n:host .calendar-action-buttons ion-buttons ion-button*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-item.sc-ion-datetime-ios ion-icon.sc-ion-datetime-ios,.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-buttons.sc-ion-datetime-ios ion-button.sc-ion-datetime-ios{color:var(--ion-color-base)}/*!@:host .calendar-action-buttons ion-buttons*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-buttons.sc-ion-datetime-ios{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}/*!@:host .calendar-action-buttons ion-buttons ion-button*/.sc-ion-datetime-ios-h .calendar-action-buttons.sc-ion-datetime-ios ion-buttons.sc-ion-datetime-ios ion-button.sc-ion-datetime-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}/*!@:host .calendar-days-of-week*/.sc-ion-datetime-ios-h .calendar-days-of-week.sc-ion-datetime-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){/*!@.calendar-days-of-week .day-of-week*/.calendar-days-of-week.sc-ion-datetime-ios .day-of-week.sc-ion-datetime-ios{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}/*!@.calendar-day*/.calendar-day.sc-ion-datetime-ios{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){/*!@.calendar-days-of-week .day-of-week*/.calendar-days-of-week.sc-ion-datetime-ios .day-of-week.sc-ion-datetime-ios{width:auto;height:auto;overflow:initial}/*!@.calendar-day*/.calendar-day.sc-ion-datetime-ios{border-radius:32px}}/*!@:host .calendar-body .calendar-month .calendar-month-grid*/.sc-ion-datetime-ios-h .calendar-body.sc-ion-datetime-ios .calendar-month.sc-ion-datetime-ios .calendar-month-grid.sc-ion-datetime-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}/*!@:host .calendar-day-wrapper*/.sc-ion-datetime-ios-h .calendar-day-wrapper.sc-ion-datetime-ios{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}/*!@:host .calendar-day*/.sc-ion-datetime-ios-h .calendar-day.sc-ion-datetime-ios{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}/*!@.calendar-day.calendar-day-active*/.calendar-day.calendar-day-active.sc-ion-datetime-ios{background:rgba(var(--ion-color-base-rgb), 0.2)}/*!@:host .calendar-day.calendar-day-today*/.sc-ion-datetime-ios-h .calendar-day.calendar-day-today.sc-ion-datetime-ios{color:var(--ion-color-base)}/*!@:host .calendar-day.calendar-day-active*/.sc-ion-datetime-ios-h .calendar-day.calendar-day-active.sc-ion-datetime-ios{color:var(--ion-color-base);font-weight:600}/*!@:host .calendar-day.calendar-day-today.calendar-day-active*/.sc-ion-datetime-ios-h .calendar-day.calendar-day-today.calendar-day-active.sc-ion-datetime-ios{background:var(--ion-color-base);color:var(--ion-color-contrast)}/*!@:host .datetime-time*/.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}/*!@:host .datetime-time .time-header*/.sc-ion-datetime-ios-h .datetime-time.sc-ion-datetime-ios .time-header.sc-ion-datetime-ios{font-weight:600}/*!@:host .datetime-buttons*/.sc-ion-datetime-ios-h .datetime-buttons.sc-ion-datetime-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}/*!@:host .datetime-buttons ::slotted(ion-buttons),\n:host .datetime-buttons ion-buttons*/.sc-ion-datetime-ios-h .datetime-buttons .sc-ion-datetime-ios-s>ion-buttons,.sc-ion-datetime-ios-h .datetime-buttons.sc-ion-datetime-ios ion-buttons.sc-ion-datetime-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}/*!@:host .datetime-action-buttons*/.sc-ion-datetime-ios-h .datetime-action-buttons.sc-ion-datetime-ios{width:100%}";
16699
16736
  var IonDatetimeIosStyle0 = datetimeIosCss;
16700
16737
 
@@ -17285,34 +17322,6 @@ class Datetime {
17285
17322
  this.resolveForceDateScrolling = undefined;
17286
17323
  this.forceRenderDate = undefined;
17287
17324
  };
17288
- this.checkForPresentationFormatMismatch = () => {
17289
- const { formatOptions, presentation } = this;
17290
- // formatOptions is not required
17291
- if (!formatOptions)
17292
- return;
17293
- // If formatOptions is provided, the date and/or time objects are required, depending on the presentation
17294
- switch (presentation) {
17295
- case 'date':
17296
- case 'month-year':
17297
- case 'month':
17298
- case 'year':
17299
- if (formatOptions.date === undefined) {
17300
- printIonWarning(`Datetime: The '${presentation}' presentation requires a date object in formatOptions.`, this.el);
17301
- }
17302
- break;
17303
- case 'time':
17304
- if (formatOptions.time === undefined) {
17305
- printIonWarning(`Datetime: The 'time' presentation requires a time object in formatOptions.`, this.el);
17306
- }
17307
- break;
17308
- case 'date-time':
17309
- case 'time-date':
17310
- if (formatOptions.date === undefined || formatOptions.time === undefined) {
17311
- printIonWarning(`Datetime: The '${presentation}' presentation requires both a date and time object in formatOptions.`, this.el);
17312
- }
17313
- break;
17314
- }
17315
- };
17316
17325
  this.onFocus = () => {
17317
17326
  this.ionFocus.emit();
17318
17327
  };
@@ -17400,8 +17409,9 @@ class Datetime {
17400
17409
  this.preferWheel = false;
17401
17410
  }
17402
17411
  formatOptionsChanged() {
17403
- this.checkForPresentationFormatMismatch();
17404
- this.errorIfTimeZoneProvided();
17412
+ const { formatOptions, presentation } = this;
17413
+ checkForPresentationFormatMismatch(presentation, formatOptions);
17414
+ warnIfTimeZoneProvided(formatOptions);
17405
17415
  }
17406
17416
  disabledChanged() {
17407
17417
  this.emitStyle();
@@ -17413,7 +17423,8 @@ class Datetime {
17413
17423
  this.processMaxParts();
17414
17424
  }
17415
17425
  presentationChanged() {
17416
- this.checkForPresentationFormatMismatch();
17426
+ const { formatOptions, presentation } = this;
17427
+ checkForPresentationFormatMismatch(presentation, formatOptions);
17417
17428
  }
17418
17429
  get isGridStyle() {
17419
17430
  const { presentation, preferWheel } = this;
@@ -17668,8 +17679,8 @@ class Datetime {
17668
17679
  }
17669
17680
  }
17670
17681
  if (formatOptions) {
17671
- this.checkForPresentationFormatMismatch();
17672
- this.errorIfTimeZoneProvided();
17682
+ checkForPresentationFormatMismatch(presentation, formatOptions);
17683
+ warnIfTimeZoneProvided(formatOptions);
17673
17684
  }
17674
17685
  const hourValues = (this.parsedHourValues = convertToArrayOfNumbers(this.hourValues));
17675
17686
  const minuteValues = (this.parsedMinuteValues = convertToArrayOfNumbers(this.minuteValues));
@@ -17692,21 +17703,6 @@ class Datetime {
17692
17703
  this.processValue(this.value);
17693
17704
  this.emitStyle();
17694
17705
  }
17695
- /**
17696
- * If a time zone is provided in the format options, the rendered text could
17697
- * differ from what was selected in the Datetime, which could cause
17698
- * confusion.
17699
- */
17700
- errorIfTimeZoneProvided() {
17701
- var _a, _b, _c, _d;
17702
- const { formatOptions } = this;
17703
- if (((_a = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _a === void 0 ? void 0 : _a.timeZone) ||
17704
- ((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
17705
- ((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
17706
- ((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
17707
- printIonWarning('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".');
17708
- }
17709
- }
17710
17706
  emitStyle() {
17711
17707
  this.ionStyle.emit({
17712
17708
  interactive: true,
@@ -18342,7 +18338,7 @@ class Datetime {
18342
18338
  const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
18343
18339
  const hasWheelVariant = hasDatePresentation && preferWheel;
18344
18340
  renderHiddenInput(true, el, name, formatValue(value), disabled);
18345
- return (hAsync(Host, { key: 'ff50a7d344831b3af2e7f5cfe52b0a71c8c4b8d1', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
18341
+ return (hAsync(Host, { key: 'fc77bddc17d626819139e1c4177aa0b23d70874f', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
18346
18342
  [mode]: true,
18347
18343
  ['datetime-readonly']: readonly,
18348
18344
  ['datetime-disabled']: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/core",
3
- "version": "7.7.2-dev.11707926434.1affaed4",
3
+ "version": "7.7.2-dev.11707941206.120570b8",
4
4
  "description": "Base components for Ionic",
5
5
  "keywords": [
6
6
  "ionic",
@@ -1,4 +0,0 @@
1
- import{__spreadArray}from"tslib";
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */import{p as printIonWarning}from"./index-9b0d46f4.js";var isSameDay=function(e,r){return e.month===r.month&&e.day===r.day&&e.year===r.year};var isBefore=function(e,r){return!!(e.year<r.year||e.year===r.year&&e.month<r.month||e.year===r.year&&e.month===r.month&&e.day!==null&&e.day<r.day)};var isAfter=function(e,r){return!!(e.year>r.year||e.year===r.year&&e.month>r.month||e.year===r.year&&e.month===r.month&&e.day!==null&&e.day>r.day)};var warnIfValueOutOfBounds=function(e,r,n){var a=Array.isArray(e)?e:[e];for(var t=0,i=a;t<i.length;t++){var u=i[t];if(r!==undefined&&isBefore(u,r)||n!==undefined&&isAfter(u,n)){printIonWarning("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(r),"\n")+"Max: ".concat(JSON.stringify(n),"\n")+"Value: ".concat(JSON.stringify(e)));break}}};var isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0};var getHourCycle=function(e,r){if(r!==undefined){return r}var n=new Intl.DateTimeFormat(e,{hour:"numeric"});var a=n.resolvedOptions();if(a.hourCycle!==undefined){return a.hourCycle}var t=new Date("5/18/2021 00:00");var i=n.formatToParts(t);var u=i.find((function(e){return e.type==="hour"}));if(!u){throw new Error("Hour value not found from DateTimeFormat")}switch(u.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var is24Hour=function(e){return e==="h23"||e==="h24"};var getNumDaysInMonth=function(e,r){return e===4||e===6||e===9||e===11?30:e===2?isLeapYear(r)?29:28:31};var isMonthFirstLocale=function(e,r){if(r===void 0){r={month:"numeric",year:"numeric"}}var n=new Intl.DateTimeFormat(e,r).formatToParts(new Date);return n[0].type==="month"};var isLocaleDayPeriodRTL=function(e){var r=new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date);return r[0].type==="dayPeriod"};var ISO_8601_REGEXP=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var TIME_REGEXP=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var convertToArrayOfNumbers=function(e){if(e===undefined){return}var r=e;if(typeof e==="string"){r=e.replace(/\[|\]|\s/g,"").split(",")}var n;if(Array.isArray(r)){n=r.map((function(e){return parseInt(e,10)})).filter(isFinite)}else{n=[r]}return n};var getPartsFromCalendarDay=function(e){return{month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)}};function parseDate(e){if(Array.isArray(e)){var r=[];for(var n=0,a=e;n<a.length;n++){var t=a[n];var i=parseDate(t);if(!i){return undefined}r.push(i)}return r}var u=null;if(e!=null&&e!==""){u=TIME_REGEXP.exec(e);if(u){u.unshift(undefined,undefined);u[2]=u[3]=undefined}else{u=ISO_8601_REGEXP.exec(e)}}if(u===null){printIonWarning("Unable to parse date string: ".concat(e,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var o=1;o<8;o++){u[o]=u[o]!==undefined?parseInt(u[o],10):undefined}return{year:u[1],month:u[2],day:u[3],hour:u[4],minute:u[5],ampm:u[4]<12?"am":"pm"}}var clampDate=function(e,r,n){if(r&&isBefore(e,r)){return r}else if(n&&isAfter(e,n)){return n}return e};var parseAmPm=function(e){return e>=12?"pm":"am"};var parseMaxParts=function(e,r){var n=parseDate(e);if(n===undefined){return}var a=n.month,t=n.day,i=n.year,u=n.hour,o=n.minute;var d=i!==null&&i!==void 0?i:r.year;var f=a!==null&&a!==void 0?a:12;return{month:f,day:t!==null&&t!==void 0?t:getNumDaysInMonth(f,d),year:d,hour:u!==null&&u!==void 0?u:23,minute:o!==null&&o!==void 0?o:59}};var parseMinParts=function(e,r){var n=parseDate(e);if(n===undefined){return}var a=n.month,t=n.day,i=n.year,u=n.hour,o=n.minute;return{month:a!==null&&a!==void 0?a:1,day:t!==null&&t!==void 0?t:1,year:i!==null&&i!==void 0?i:r.year,hour:u!==null&&u!==void 0?u:0,minute:o!==null&&o!==void 0?o:0}};var twoDigit=function(e){return("0"+(e!==undefined?Math.abs(e):"0")).slice(-2)};var fourDigit=function(e){return("000"+(e!==undefined?Math.abs(e):"0")).slice(-4)};function convertDataToISO(e){if(Array.isArray(e)){return e.map((function(e){return convertDataToISO(e)}))}var r="";if(e.year!==undefined){r=fourDigit(e.year);if(e.month!==undefined){r+="-"+twoDigit(e.month);if(e.day!==undefined){r+="-"+twoDigit(e.day);if(e.hour!==undefined){r+="T".concat(twoDigit(e.hour),":").concat(twoDigit(e.minute),":00")}}}}else if(e.hour!==undefined){r=twoDigit(e.hour)+":"+twoDigit(e.minute)}return r}var convert12HourTo24Hour=function(e,r){if(r===undefined){return e}if(r==="am"){if(e===12){return 0}return e}if(e===12){return 12}return e+12};var getStartOfWeek=function(e){var r=e.dayOfWeek;if(r===null||r===undefined){throw new Error("No day of week provided")}return subtractDays(e,r)};var getEndOfWeek=function(e){var r=e.dayOfWeek;if(r===null||r===undefined){throw new Error("No day of week provided")}return addDays(e,6-r)};var getNextDay=function(e){return addDays(e,1)};var getPreviousDay=function(e){return subtractDays(e,1)};var getPreviousWeek=function(e){return subtractDays(e,7)};var getNextWeek=function(e){return addDays(e,7)};var subtractDays=function(e,r){var n=e.month,a=e.day,t=e.year;if(a===null){throw new Error("No day provided")}var i={month:n,day:a,year:t};i.day=a-r;if(i.day<1){i.month-=1}if(i.month<1){i.month=12;i.year-=1}if(i.day<1){var u=getNumDaysInMonth(i.month,i.year);i.day=u+i.day}return i};var addDays=function(e,r){var n=e.month,a=e.day,t=e.year;if(a===null){throw new Error("No day provided")}var i={month:n,day:a,year:t};var u=getNumDaysInMonth(n,t);i.day=a+r;if(i.day>u){i.day-=u;i.month+=1}if(i.month>12){i.month=1;i.year+=1}return i};var getPreviousMonth=function(e){var r=e.month===1?12:e.month-1;var n=e.month===1?e.year-1:e.year;var a=getNumDaysInMonth(r,n);var t=a<e.day?a:e.day;return{month:r,year:n,day:t}};var getNextMonth=function(e){var r=e.month===12?1:e.month+1;var n=e.month===12?e.year+1:e.year;var a=getNumDaysInMonth(r,n);var t=a<e.day?a:e.day;return{month:r,year:n,day:t}};var changeYear=function(e,r){var n=e.month;var a=e.year+r;var t=getNumDaysInMonth(n,a);var i=t<e.day?t:e.day;return{month:n,year:a,day:i}};var getPreviousYear=function(e){return changeYear(e,-1)};var getNextYear=function(e){return changeYear(e,1)};var getInternalHourValue=function(e,r,n){if(r){return e}return convert12HourTo24Hour(e,n)};var calculateHourFromAMPM=function(e,r){var n=e.ampm,a=e.hour;var t=a;if(n==="am"&&r==="pm"){t=convert12HourTo24Hour(t,"pm")}else if(n==="pm"&&r==="am"){t=Math.abs(t-12)}return t};var validateParts=function(e,r,n){var a=e.month,t=e.day,i=e.year;var u=clampDate(Object.assign({},e),r,n);var o=getNumDaysInMonth(a,i);if(t!==null&&o<t){u.day=o}if(r!==undefined&&isSameDay(u,r)){if(u.hour!==undefined&&r.hour!==undefined){if(u.hour<r.hour){u.hour=r.hour;u.minute=r.minute}else if(u.hour===r.hour&&u.minute!==undefined&&r.minute!==undefined&&u.minute<r.minute){u.minute=r.minute}}}if(n!==undefined&&isSameDay(e,n)){if(u.hour!==undefined&&n.hour!==undefined){if(u.hour>n.hour){u.hour=n.hour;u.minute=n.minute}else if(u.hour===n.hour&&u.minute!==undefined&&n.minute!==undefined&&u.minute>n.minute){u.minute=n.minute}}}return u};var getClosestValidDate=function(e){var r=e.refParts,n=e.monthValues,a=e.dayValues,t=e.yearValues,i=e.hourValues,u=e.minuteValues,o=e.minParts,d=e.maxParts;var f=r.hour,v=r.minute,s=r.day,l=r.month,c=r.year;var m=Object.assign(Object.assign({},r),{dayOfWeek:undefined});if(t!==undefined){var y=t.filter((function(e){if(o!==undefined&&e<o.year){return false}if(d!==undefined&&e>d.year){return false}return true}));m.year=findClosestValue(c,y)}if(n!==undefined){var g=n.filter((function(e){if(o!==undefined&&m.year===o.year&&e<o.month){return false}if(d!==undefined&&m.year===d.year&&e>d.month){return false}return true}));m.month=findClosestValue(l,g)}if(s!==null&&a!==undefined){var D=a.filter((function(e){if(o!==undefined&&isBefore(Object.assign(Object.assign({},m),{day:e}),o)){return false}if(d!==undefined&&isAfter(Object.assign(Object.assign({},m),{day:e}),d)){return false}return true}));m.day=findClosestValue(s,D)}if(f!==undefined&&i!==undefined){var h=i.filter((function(e){if((o===null||o===void 0?void 0:o.hour)!==undefined&&isSameDay(m,o)&&e<o.hour){return false}if((d===null||d===void 0?void 0:d.hour)!==undefined&&isSameDay(m,d)&&e>d.hour){return false}return true}));m.hour=findClosestValue(f,h);m.ampm=parseAmPm(m.hour)}if(v!==undefined&&u!==undefined){var T=u.filter((function(e){if((o===null||o===void 0?void 0:o.minute)!==undefined&&isSameDay(m,o)&&m.hour===o.hour&&e<o.minute){return false}if((d===null||d===void 0?void 0:d.minute)!==undefined&&isSameDay(m,d)&&m.hour===d.hour&&e>d.minute){return false}return true}));m.minute=findClosestValue(v,T)}return m};var findClosestValue=function(e,r){var n=r[0];var a=Math.abs(n-e);for(var t=1;t<r.length;t++){var i=r[t];var u=Math.abs(i-e);if(u<a){n=i;a=u}}return n};var getFormattedDayPeriod=function(e){if(e===undefined){return""}return e.toUpperCase()};var stripTimeZone=function(e){delete e.timeZoneName;e.timeZone="UTC";return e};var getLocalizedTime=function(e,r,n,a){var t={hour:r.hour,minute:r.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}var i={hour:"numeric",minute:"numeric"};var u=stripTimeZone(a!==null&&a!==void 0?a:i);return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},u),{hourCycle:n})).format(new Date(convertDataToISO(Object.assign({year:2023,day:1,month:1},t))+"Z"))};var addTimePadding=function(e){var r=e.toString();if(r.length>1){return r}return"0".concat(r)};var getFormattedHour=function(e,r){if(e===0){switch(r){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}}var n=is24Hour(r);if(n){return addTimePadding(e)}return e.toString()};var generateDayAriaLabel=function(e,r,n){if(n.day===null){return null}var a=getNormalizedDate(n);var t=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(a);return r?"Today, ".concat(t):t};var getMonthAndYear=function(e,r){var n=getNormalizedDate(r);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)};var getDay=function(e,r){return getLocalizedDateTimeParts(e,r,{day:"numeric"}).find((function(e){return e.type==="day"})).value};var getYear=function(e,r){return getLocalizedDateTime(e,r,{year:"numeric"})};var getNormalizedDate=function(e){var r,n,a;var t=e.hour!==undefined&&e.minute!==undefined?" ".concat(e.hour,":").concat(e.minute):"";return new Date("".concat((r=e.month)!==null&&r!==void 0?r:1,"/").concat((n=e.day)!==null&&n!==void 0?n:1,"/").concat((a=e.year)!==null&&a!==void 0?a:2023).concat(t," GMT+0000"))};var getLocalizedDateTime=function(e,r,n){var a=getNormalizedDate(r);return getDateTimeFormat(e,stripTimeZone(n)).format(a)};var getLocalizedDateTimeParts=function(e,r,n){var a=getNormalizedDate(r);return getDateTimeFormat(e,n).formatToParts(a)};var getDateTimeFormat=function(e,r){return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"}))};var getTodayLabel=function(e){if("RelativeTimeFormat"in Intl){var r=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return r.charAt(0).toUpperCase()+r.slice(1)}else{return"Today"}};var removeDateTzOffset=function(e){var r=e.getTimezoneOffset();e.setMinutes(e.getMinutes()-r);return e};var DATE_AM=removeDateTzOffset(new Date("2022T01:00"));var DATE_PM=removeDateTzOffset(new Date("2022T13:00"));var getLocalizedDayPeriod=function(e,r){var n=r==="am"?DATE_AM:DATE_PM;var a=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((function(e){return e.type==="dayPeriod"}));if(a){return a.value}return getFormattedDayPeriod(r)};var formatValue=function(e){return Array.isArray(e)?e.join(","):e};var getToday=function(){return removeDateTzOffset(new Date).toISOString()};var minutes=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var hour11=[0,1,2,3,4,5,6,7,8,9,10,11];var hour12=[0,1,2,3,4,5,6,7,8,9,10,11];var hour23=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var hour24=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var getDaysOfWeek=function(e,r,n){if(n===void 0){n=0}var a=r==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(e,{weekday:a});var i=new Date("11/01/2020");var u=[];for(var o=n;o<n+7;o++){var d=new Date(i);d.setDate(d.getDate()+o);u.push(t.format(d))}return u};var getDaysOfMonth=function(e,r,n){var a=getNumDaysInMonth(e,r);var t=new Date("".concat(e,"/1/").concat(r)).getDay();var i=t>=n?t-(n+1):6-(n-t);var u=[];for(var o=1;o<=a;o++){u.push({day:o,dayOfWeek:(i+o)%7})}for(var o=0;o<=i;o++){u=__spreadArray([{day:null,dayOfWeek:null}],u,true)}return u};var getHourData=function(e){switch(e){case"h11":return hour11;case"h12":return hour12;case"h23":return hour23;case"h24":return hour24;default:throw new Error('Invalid hour cycle "'.concat(e,'"'))}};var generateTime=function(e,r,n,a,t,i,u){if(n===void 0){n="h12"}var o=getHourCycle(e,n);var d=is24Hour(o);var f=getHourData(o);var v=minutes;var s=true;var l=true;if(i){f=f.filter((function(e){return i.includes(e)}))}if(u){v=v.filter((function(e){return u.includes(e)}))}if(a){if(isSameDay(r,a)){if(a.hour!==undefined){f=f.filter((function(e){var n=r.ampm==="pm"?(e+12)%24:e;return(d?e:n)>=a.hour}));s=a.hour<13}if(a.minute!==undefined){var c=false;if(a.hour!==undefined&&r.hour!==undefined){if(r.hour>a.hour){c=true}}v=v.filter((function(e){if(c){return true}return e>=a.minute}))}}else if(isBefore(r,a)){f=[];v=[];s=l=false}}if(t){if(isSameDay(r,t)){if(t.hour!==undefined){f=f.filter((function(e){var n=r.ampm==="pm"?(e+12)%24:e;return(d?e:n)<=t.hour}));l=t.hour>=12}if(t.minute!==undefined&&r.hour===t.hour){v=v.filter((function(e){return e<=t.minute}))}}else if(isAfter(r,t)){f=[];v=[];s=l=false}}return{hours:f,minutes:v,am:s,pm:l}};var generateMonths=function(e,r){var n={month:e.month,year:e.year,day:e.day};if(r!==undefined&&(e.month!==r.month||e.year!==r.year)){var a={month:r.month,year:r.year,day:r.day};var t=isBefore(a,n);return t?[a,n,getNextMonth(e)]:[getPreviousMonth(e),n,a]}return[getPreviousMonth(e),n,getNextMonth(e)]};var getMonthColumnData=function(e,r,n,a,t,i){if(i===void 0){i={month:"long"}}var u=r.year;var o=[];if(t!==undefined){var d=t;if((a===null||a===void 0?void 0:a.month)!==undefined){d=d.filter((function(e){return e<=a.month}))}if((n===null||n===void 0?void 0:n.month)!==undefined){d=d.filter((function(e){return e>=n.month}))}d.forEach((function(r){var n=new Date("".concat(r,"/1/").concat(u," GMT+0000"));var a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(n);o.push({text:a,value:r})}))}else{var f=a&&a.year===u?a.month:12;var v=n&&n.year===u?n.month:1;for(var s=v;s<=f;s++){var l=new Date("".concat(s,"/1/").concat(u," GMT+0000"));var c=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(l);o.push({text:c,value:s})}}return o};var getDayColumnData=function(e,r,n,a,t,i){if(i===void 0){i={day:"numeric"}}var u=r.month,o=r.year;var d=[];var f=getNumDaysInMonth(u,o);var v=(a===null||a===void 0?void 0:a.day)!==null&&(a===null||a===void 0?void 0:a.day)!==undefined&&a.year===o&&a.month===u?a.day:f;var s=(n===null||n===void 0?void 0:n.day)!==null&&(n===null||n===void 0?void 0:n.day)!==undefined&&n.year===o&&n.month===u?n.day:1;if(t!==undefined){var l=t;l=l.filter((function(e){return e>=s&&e<=v}));l.forEach((function(r){var n=new Date("".concat(u,"/").concat(r,"/").concat(o," GMT+0000"));var a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(n);d.push({text:a,value:r})}))}else{for(var c=s;c<=v;c++){var m=new Date("".concat(u,"/").concat(c,"/").concat(o," GMT+0000"));var y=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(m);d.push({text:y,value:c})}}return d};var getYearColumnData=function(e,r,n,a,t){var i,u;var o=[];if(t!==undefined){o=t;if((a===null||a===void 0?void 0:a.year)!==undefined){o=o.filter((function(e){return e<=a.year}))}if((n===null||n===void 0?void 0:n.year)!==undefined){o=o.filter((function(e){return e>=n.year}))}}else{var d=r.year;var f=(i=a===null||a===void 0?void 0:a.year)!==null&&i!==void 0?i:d;var v=(u=n===null||n===void 0?void 0:n.year)!==null&&u!==void 0?u:d-100;for(var s=v;s<=f;s++){o.push(s)}}return o.map((function(n){return{text:getYear(e,{year:n,month:r.month,day:r.day}),value:n}}))};var getAllMonthsInRange=function(e,r){if(e.month===r.month&&e.year===r.year){return[e]}return __spreadArray([e],getAllMonthsInRange(getNextMonth(e),r),true)};var getCombinedDateColumnData=function(e,r,n,a,t,i){var u=[];var o=[];var d=getAllMonthsInRange(n,a);if(i){d=d.filter((function(e){var r=e.month;return i.includes(r)}))}d.forEach((function(i){var d={month:i.month,day:null,year:i.year};var f=getDayColumnData(e,d,n,a,t,{month:"short",day:"numeric",weekday:"short"});var v=[];var s=[];f.forEach((function(n){var a=isSameDay(Object.assign(Object.assign({},d),{day:n.value}),r);s.push({text:a?getTodayLabel(e):n.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(n.value)});v.push({month:d.month,year:d.year,day:n.value})}));o=__spreadArray(__spreadArray([],o,true),v,true);u=__spreadArray(__spreadArray([],u,true),s,true)}));return{parts:o,items:u}};var getTimeColumnsData=function(e,r,n,a,t,i,u){var o=getHourCycle(e,n);var d=is24Hour(o);var f=generateTime(e,r,o,a,t,i,u),v=f.hours,s=f.minutes,l=f.am,c=f.pm;var m=v.map((function(e){return{text:getFormattedHour(e,o),value:getInternalHourValue(e,d,r.ampm)}}));var y=s.map((function(e){return{text:addTimePadding(e),value:e}}));var g=[];if(l&&!d){g.push({text:getLocalizedDayPeriod(e,"am"),value:"am"})}if(c&&!d){g.push({text:getLocalizedDayPeriod(e,"pm"),value:"pm"})}return{minutesData:y,hoursData:m,dayPeriodData:g}};export{getNumDaysInMonth as A,getCombinedDateColumnData as B,getMonthColumnData as C,getDayColumnData as D,getYearColumnData as E,isMonthFirstLocale as F,getTimeColumnsData as G,isLocaleDayPeriodRTL as H,getDaysOfWeek as I,getMonthAndYear as J,getDaysOfMonth as K,getHourCycle as L,getLocalizedTime as M,getLocalizedDateTime as N,formatValue as O,clampDate as P,parseAmPm as Q,calculateHourFromAMPM as R,getDay as a,isAfter as b,isSameDay as c,getPreviousMonth as d,getNextMonth as e,getPartsFromCalendarDay as f,generateDayAriaLabel as g,getNextYear as h,isBefore as i,getPreviousYear as j,getEndOfWeek as k,getStartOfWeek as l,getPreviousDay as m,getNextDay as n,getPreviousWeek as o,getNextWeek as p,parseMinParts as q,parseMaxParts as r,parseDate as s,convertToArrayOfNumbers as t,convertDataToISO as u,validateParts as v,warnIfValueOutOfBounds as w,getToday as x,getClosestValidDate as y,generateMonths as z};
@@ -1,4 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import{p as e}from"./p-06fee233.js";const t=(e,t)=>e.month===t.month&&e.day===t.day&&e.year===t.year,n=(e,t)=>!!(e.year<t.year||e.year===t.year&&e.month<t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day<t.day),o=(e,t)=>!!(e.year>t.year||e.year===t.year&&e.month>t.month||e.year===t.year&&e.month===t.month&&null!==e.day&&e.day>t.day),r=(t,r,a)=>{const i=Array.isArray(t)?t:[t];for(const d of i)if(void 0!==r&&n(d,r)||void 0!==a&&o(d,a)){e(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(t)}`);break}},a=(e,t)=>{if(void 0!==t)return t;const n=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=n.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const r=new Date("5/18/2021 00:00"),a=n.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");switch(a.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${t}"`)}},i=e=>"h23"===e||"h24"===e,d=(e,t)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(t)?29:28:31,u=(e,t={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,t).formatToParts(new Date)[0].type,l=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,s=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,v=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map((e=>parseInt(e,10))).filter(isFinite):[n],t},m=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(t){if(Array.isArray(t)){const e=[];for(const n of t){const t=y(n);if(!t)return;e.push(t)}return e}let n=null;if(null!=t&&""!==t&&(n=c.exec(t),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=s.exec(t)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}e(`Unable to parse date string: ${t}. Please provide a valid ISO 8601 datetime string.`)}const h=(e,t,r)=>t&&n(e,t)?t:r&&o(e,r)?r:e,f=e=>e>=12?"pm":"am",w=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:u}=n,l=null!=a?a:t.year,s=null!=o?o:12;return{month:s,day:null!=r?r:d(s,l),year:l,hour:null!=i?i:23,minute:null!=u?u:59}},$=(e,t)=>{const n=y(e);if(void 0===n)return;const{month:o,day:r,year:a,hour:i,minute:d}=n;return{month:null!=o?o:1,day:null!=r?r:1,year:null!=a?a:t.year,hour:null!=i?i:0,minute:null!=d?d:0}},p=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function O(e){if(Array.isArray(e))return e.map((e=>O(e)));let t="";var n;return void 0!==e.year?(t=("000"+(void 0!==(n=e.year)?Math.abs(n):"0")).slice(-4),void 0!==e.month&&(t+="-"+p(e.month),void 0!==e.day&&(t+="-"+p(e.day),void 0!==e.hour&&(t+=`T${p(e.hour)}:${p(e.minute)}:00`)))):void 0!==e.hour&&(t=p(e.hour)+":"+p(e.minute)),t}const I=(e,t)=>void 0===t?e:"am"===t?12===e?0:e:12===e?12:e+12,b=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return M(e,t)},j=e=>{const{dayOfWeek:t}=e;if(null==t)throw new Error("No day of week provided");return C(e,6-t)},T=e=>C(e,1),D=e=>M(e,1),k=e=>M(e,7),x=e=>C(e,7),M=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r};if(a.day=o-t,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},C=(e,t)=>{const{month:n,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:n,day:o,year:r},i=d(n,r);return a.day=o+t,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},Z=e=>{const t=1===e.month?12:e.month-1,n=1===e.month?e.year-1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},U=e=>{const t=12===e.month?1:e.month+1,n=12===e.month?e.year+1:e.year,o=d(t,n);return{month:t,year:n,day:o<e.day?o:e.day}},g=(e,t)=>{const n=e.month,o=e.year+t,r=d(n,o);return{month:n,year:o,day:r<e.day?r:e.day}},E=e=>g(e,-1),N=e=>g(e,1),P=(e,t,n)=>t?e:I(e,n),A=(e,t)=>{const{ampm:n,hour:o}=e;let r=o;return"am"===n&&"pm"===t?r=I(r,"pm"):"pm"===n&&"am"===t&&(r=Math.abs(r-12)),r},G=(e,n,o)=>{const{month:r,day:a,year:i}=e,u=h(Object.assign({},e),n,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==n&&t(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==o&&t(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},V=({refParts:e,monthValues:r,dayValues:a,yearValues:i,hourValues:d,minuteValues:u,minParts:l,maxParts:s})=>{const{hour:c,minute:v,day:m,month:y,year:h}=e,w=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==i){const e=i.filter((e=>!(void 0!==l&&e<l.year||void 0!==s&&e>s.year)));w.year=W(h,e)}if(void 0!==r){const e=r.filter((e=>!(void 0!==l&&w.year===l.year&&e<l.month||void 0!==s&&w.year===s.year&&e>s.month)));w.month=W(y,e)}if(null!==m&&void 0!==a){const e=a.filter((e=>!(void 0!==l&&n(Object.assign(Object.assign({},w),{day:e}),l)||void 0!==s&&o(Object.assign(Object.assign({},w),{day:e}),s))));w.day=W(m,e)}if(void 0!==c&&void 0!==d){const e=d.filter((e=>!(void 0!==(null==l?void 0:l.hour)&&t(w,l)&&e<l.hour||void 0!==(null==s?void 0:s.hour)&&t(w,s)&&e>s.hour)));w.hour=W(c,e),w.ampm=f(w.hour)}if(void 0!==v&&void 0!==u){const e=u.filter((e=>!(void 0!==(null==l?void 0:l.minute)&&t(w,l)&&w.hour===l.hour&&e<l.minute||void 0!==(null==s?void 0:s.minute)&&t(w,s)&&w.hour===s.hour&&e>s.minute)));w.minute=W(v,e)}return w},W=(e,t)=>{let n=t[0],o=Math.abs(n-e);for(let r=1;r<t.length;r++){const a=t[r],i=Math.abs(a-e);i<o&&(n=a,o=i)}return n},F=e=>(delete e.timeZoneName,e.timeZone="UTC",e),J=(e,t,n,o)=>{const r={hour:t.hour,minute:t.minute};if(void 0===r.hour||void 0===r.minute)return"Invalid Time";const a=F(null!=o?o:{hour:"numeric",minute:"numeric"});return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{hourCycle:n})).format(new Date(O(Object.assign({year:2023,day:1,month:1},r))+"Z"))},S=e=>{const t=e.toString();return t.length>1?t:`0${t}`},H=(e,t)=>{if(0===e)switch(t){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${t}"`)}return i(t)?S(e):e.toString()},R=(e,t,n)=>{if(null===n.day)return null;const o=K(n),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return t?`Today, ${r}`:r},q=(e,t)=>{const n=K(t);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)},z=(e,t)=>Q(e,t,{day:"numeric"}).find((e=>"day"===e.type)).value,B=(e,t)=>L(e,t,{year:"numeric"}),K=e=>{var t,n,o;return new Date(`${null!==(t=e.month)&&void 0!==t?t:1}/${null!==(n=e.day)&&void 0!==n?n:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},L=(e,t,n)=>{const o=K(t);return X(e,F(n)).format(o)},Q=(e,t,n)=>{const o=K(t);return X(e,n).formatToParts(o)},X=(e,t)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},t),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const t=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return t.charAt(0).toUpperCase()+t.slice(1)}return"Today"},_=e=>{const t=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-t),e},ee=_(new Date("2022T01:00")),te=_(new Date("2022T13:00")),ne=(e,t)=>{const n="am"===t?ee:te,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(t)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],ie=[0,1,2,3,4,5,6,7,8,9,10,11],de=[0,1,2,3,4,5,6,7,8,9,10,11],ue=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],le=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],se=(e,t,n=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===t?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=n;e<n+7;e++){const t=new Date(r);t.setDate(t.getDate()+e),a.push(o.format(t))}return a},ce=(e,t,n)=>{const o=d(e,t),r=new Date(`${e}/1/${t}`).getDay(),a=r>=n?r-(n+1):6-(n-r);let i=[];for(let e=1;e<=o;e++)i.push({day:e,dayOfWeek:(a+e)%7});for(let e=0;e<=a;e++)i=[{day:null,dayOfWeek:null},...i];return i},ve=(e,r,d="h12",u,l,s,c)=>{const v=a(e,d),m=i(v);let y=(e=>{switch(e){case"h11":return ie;case"h12":return de;case"h23":return ue;case"h24":return le;default:throw new Error(`Invalid hour cycle "${e}"`)}})(v),h=ae,f=!0,w=!0;if(s&&(y=y.filter((e=>s.includes(e)))),c&&(h=h.filter((e=>c.includes(e)))),u)if(t(r,u)){if(void 0!==u.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)>=u.hour)),f=u.hour<13),void 0!==u.minute){let e=!1;void 0!==u.hour&&void 0!==r.hour&&r.hour>u.hour&&(e=!0),h=h.filter((t=>!!e||t>=u.minute))}}else n(r,u)&&(y=[],h=[],f=w=!1);return l&&(t(r,l)?(void 0!==l.hour&&(y=y.filter((e=>(m?e:"pm"===r.ampm?(e+12)%24:e)<=l.hour)),w=l.hour>=12),void 0!==l.minute&&r.hour===l.hour&&(h=h.filter((e=>e<=l.minute)))):o(r,l)&&(y=[],h=[],f=w=!1)),{hours:y,minutes:h,am:f,pm:w}},me=(e,t)=>{const o={month:e.month,year:e.year,day:e.day};if(void 0!==t&&(e.month!==t.month||e.year!==t.year)){const r={month:t.month,year:t.year,day:t.day};return n(r,o)?[r,o,U(e)]:[Z(e),o,r]}return[Z(e),o,U(e)]},ye=(e,t,n,o,r,a={month:"long"})=>{const{year:i}=t,d=[];if(void 0!==r){let t=r;void 0!==(null==o?void 0:o.month)&&(t=t.filter((e=>e<=o.month))),void 0!==(null==n?void 0:n.month)&&(t=t.filter((e=>e>=n.month))),t.forEach((t=>{const n=new Date(`${t}/1/${i} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);d.push({text:o,value:t})}))}else{const t=o&&o.year===i?o.month:12;for(let o=n&&n.year===i?n.month:1;o<=t;o++){const t=new Date(`${o}/1/${i} GMT+0000`),n=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);d.push({text:n,value:o})}}return d},he=(e,t,n,o,r,a={day:"numeric"})=>{const{month:i,year:u}=t,l=[],s=d(i,u),c=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==n?void 0:n.day)&&n.year===u&&n.month===i?n.day:1;if(void 0!==r){let t=r;t=t.filter((e=>e>=v&&e<=c)),t.forEach((t=>{const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}))}else for(let t=v;t<=c;t++){const n=new Date(`${i}/${t}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);l.push({text:o,value:t})}return l},fe=(e,t,n,o,r)=>{var a,i;let d=[];if(void 0!==r)d=r,void 0!==(null==o?void 0:o.year)&&(d=d.filter((e=>e<=o.year))),void 0!==(null==n?void 0:n.year)&&(d=d.filter((e=>e>=n.year)));else{const{year:e}=t,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let t=null!==(i=null==n?void 0:n.year)&&void 0!==i?i:e-100;t<=r;t++)d.push(t)}return d.map((n=>({text:B(e,{year:n,month:t.month,day:t.day}),value:n})))},we=(e,t)=>e.month===t.month&&e.year===t.year?[e]:[e,...we(U(e),t)],$e=(e,n,o,r,a,i)=>{let d=[],u=[],l=we(o,r);return i&&(l=l.filter((({month:e})=>i.includes(e)))),l.forEach((i=>{const l={month:i.month,day:null,year:i.year},s=he(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),c=[],v=[];s.forEach((o=>{const r=t(Object.assign(Object.assign({},l),{day:o.value}),n);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),c.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...c],d=[...d,...v]})),{parts:u,items:d}},pe=(e,t,n,o,r,d,u)=>{const l=a(e,n),s=i(l),{hours:c,minutes:v,am:m,pm:y}=ve(e,t,l,o,r,d,u),h=c.map((e=>({text:H(e,l),value:P(e,s,t.ampm)}))),f=v.map((e=>({text:S(e),value:e}))),w=[];return m&&!s&&w.push({text:ne(e,"am"),value:"am"}),y&&!s&&w.push({text:ne(e,"pm"),value:"pm"}),{minutesData:f,hoursData:h,dayPeriodData:w}};export{d as A,$e as B,ye as C,he as D,fe as E,u as F,pe as G,l as H,se as I,q as J,ce as K,a as L,J as M,L as N,oe as O,h as P,f as Q,A as R,z as a,o as b,t as c,Z as d,U as e,m as f,R as g,N as h,n as i,E as j,j as k,b as l,D as m,T as n,k as o,x as p,$ as q,w as r,y as s,v as t,O as u,G as v,r as w,re as x,V as y,me as z}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{d(n.next(t))}catch(t){a(t)}}function s(t){try{d(n["throw"](t))}catch(t){a(t)}}function d(t){t.done?i(t.value):r(t.value).then(o,s)}d((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(n=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(s[0]===6&&i.label<a[1]){i.label=a[1];a=s;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(s);break}if(a[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];r=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,a;n<r;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */System.register(["./p-76893257.system.js","./p-c468af8a.system.js","./p-fd8ced99.system.js","./p-ff4b7e40.system.js","./p-08e01816.system.js","./p-4609d030.system.js","./p-dfb6de03.system.js","./p-3f028207.system.js","./p-8e16390d.system.js","./p-4f255d5a.system.js","./p-9beb5039.system.js","./p-e2bb92ed.system.js","./p-c995da88.system.js","./p-792919fd.system.js","./p-001010b6.system.js","./p-61ba2137.system.js","./p-8985cdb6.system.js"],(function(t,e){"use strict";var i,n,r,a,o,s,d,c,l,h,p,u,f,m,b,v,g,x,y,k,w,j,O,_,z,C,P,A,D,M,T,I,V,E,S,F,W,q,R,B,Y,L,N,G,H,U,Z,X,J,K,Q,$,tt,et,it,nt,rt,at,ot,st,dt,ct,lt,ht,pt,ut,ft,mt,bt,vt,gt,xt,yt,kt,wt,jt,Ot,_t,zt,Ct,Pt;return{setters:[function(t){i=t.r;n=t.d;r=t.w;a=t.h;o=t.H;s=t.f},function(t){d=t.startFocusVisible},function(t){c=t.r;l=t.d;h=t.g;p=t.l},function(t){u=t.a;f=t.p},function(t){m=t.i},function(t){b=t.c;v=t.g},function(t){g=t.c;x=t.o;y=t.l;k=t.p;w=t.q},function(t){j=t.b},function(t){O=t.g;_=t.a;z=t.i;C=t.b;P=t.c;A=t.d;D=t.e;M=t.v;T=t.f;I=t.h;V=t.j;E=t.k;S=t.l;F=t.m;W=t.n;q=t.o;R=t.p;B=t.q;Y=t.r;L=t.s;N=t.w;G=t.t;H=t.u;U=t.x;Z=t.y;X=t.z;J=t.A;K=t.B;Q=t.C;$=t.D;tt=t.E;et=t.F;it=t.G;nt=t.H;rt=t.I;at=t.J;ot=t.K;st=t.L;dt=t.M;ct=t.N;lt=t.O;ht=t.P;pt=t.Q;ut=t.R},function(t){ft=t.c},function(t){mt=t.d;bt=t.e;vt=t.B;gt=t.i;xt=t.j;yt=t.k;kt=t.f;wt=t.g;jt=t.h;Ot=t.s},function(t){_t=t.c},function(t){zt=t.b;Ct=t.h;Pt=t.a},function(){},function(){},function(){},function(){}],execute:function(){var At=function(t,e,i){if(e&&e.year>t){return true}if(i&&i.year<t){return true}return false};var Dt=function(t,e,i,n){if(t.day===null){return true}if(n!==undefined&&!n.includes(t.day)){return true}if(e&&z(t,e)){return true}if(i&&C(t,i)){return true}return false};var Mt=function(t,e,i,n,r,a,o){var s=Array.isArray(i)?i:[i];var d=s.find((function(t){return P(e,t)}))!==undefined;var c=P(e,n);var l=Dt(e,r,a,o);return{disabled:l,isActive:d,isToday:c,ariaSelected:d?"true":null,ariaLabel:O(t,c,e),text:e.day!=null?_(t,e):null}};var Tt=function(t,e){var i=e.minParts,n=e.maxParts;if(At(t.year,i,n)){return true}if(i&&z(t,i)||n&&C(t,n)){return true}return false};var It=function(t,e,i){var n=Object.assign(Object.assign({},A(t)),{day:null});return Tt(n,{minParts:e,maxParts:i})};var Vt=function(t,e){var i=Object.assign(Object.assign({},D(t)),{day:null});return Tt(i,{maxParts:e})};var Et=function(t,e,i){if(Array.isArray(t)){var n=e.split("T")[0];var r=t.find((function(t){return t.date===n}));if(r){return{textColor:r.textColor,backgroundColor:r.backgroundColor}}}else{try{return t(e)}catch(t){u("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",i,t)}}return undefined};var St=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:min(1rem, 25.6px);font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}";var Ft=St;var Wt=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}";var qt=Wt;var Rt=t("ion_datetime",function(){function t(t){var e=this;i(this,t);this.ionCancel=n(this,"ionCancel",7);this.ionChange=n(this,"ionChange",7);this.ionValueChange=n(this,"ionValueChange",7);this.ionFocus=n(this,"ionFocus",7);this.ionBlur=n(this,"ionBlur",7);this.ionStyle=n(this,"ionStyle",7);this.ionRender=n(this,"ionRender",7);this.inputId="ion-dt-".concat(Bt++);this.prevPresentation=null;this.warnIfIncorrectValueUsage=function(){var t=e,i=t.multiple,n=t.value;if(!i&&Array.isArray(n)){f('ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: ['.concat(n.map((function(t){return"'".concat(t,"'")})).join(", "),"]\n"),e.el)}};this.setValue=function(t){e.value=t;e.ionChange.emit({value:t})};this.getActivePartsWithFallback=function(){var t;var i=e.defaultParts;return(t=e.getActivePart())!==null&&t!==void 0?t:i};this.getActivePart=function(){var t=e.activeParts;return Array.isArray(t)?t[0]:t};this.closeParentOverlay=function(){var t=e.el.closest("ion-modal, ion-popover");if(t){t.dismiss()}};this.setWorkingParts=function(t){e.workingParts=Object.assign({},t)};this.setActiveParts=function(t,i){if(i===void 0){i=false}if(e.readonly){return}var n=e,r=n.multiple,a=n.minParts,o=n.maxParts,s=n.activeParts;var d=M(t,a,o);e.setWorkingParts(d);if(r){var c=Array.isArray(s)?s:[s];if(i){e.activeParts=c.filter((function(t){return!P(t,d)}))}else{e.activeParts=__spreadArray(__spreadArray([],c,true),[d],false)}}else{e.activeParts=Object.assign({},d)}var l=e.el.querySelector('[slot="buttons"]')!==null;if(l||e.showDefaultButtons){return}e.confirm()};this.initializeKeyboardListeners=function(){var t=e.calendarBodyRef;if(!t){return}var i=e.el.shadowRoot;var n=t.querySelector(".calendar-month:nth-of-type(2)");var r=function(i){var r;var a=i[0];if(((r=a.oldValue)===null||r===void 0?void 0:r.includes("ion-focused"))||!t.classList.contains("ion-focused")){return}e.focusWorkingDay(n)};var a=new MutationObserver(r);a.observe(t,{attributeFilter:["class"],attributeOldValue:true});e.destroyKeyboardMO=function(){a===null||a===void 0?void 0:a.disconnect()};t.addEventListener("keydown",(function(t){var r=i.activeElement;if(!r||!r.classList.contains("calendar-day")){return}var a=T(r);var o;switch(t.key){case"ArrowDown":t.preventDefault();o=R(a);break;case"ArrowUp":t.preventDefault();o=q(a);break;case"ArrowRight":t.preventDefault();o=W(a);break;case"ArrowLeft":t.preventDefault();o=F(a);break;case"Home":t.preventDefault();o=S(a);break;case"End":t.preventDefault();o=E(a);break;case"PageUp":t.preventDefault();o=t.shiftKey?V(a):A(a);break;case"PageDown":t.preventDefault();o=t.shiftKey?I(a):D(a);break;default:return}if(Dt(o,e.minParts,e.maxParts)){return}e.setWorkingParts(Object.assign(Object.assign({},e.workingParts),o));requestAnimationFrame((function(){return e.focusWorkingDay(n)}))}))};this.focusWorkingDay=function(t){var i=t.querySelectorAll(".calendar-day-padding");var n=e.workingParts.day;if(n===null){return}var r=t.querySelector(".calendar-day-wrapper:nth-of-type(".concat(i.length+n,") .calendar-day"));if(r){r.focus()}};this.processMinParts=function(){var t=e,i=t.min,n=t.defaultParts;if(i===undefined){e.minParts=undefined;return}e.minParts=B(i,n)};this.processMaxParts=function(){var t=e,i=t.max,n=t.defaultParts;if(i===undefined){e.maxParts=undefined;return}e.maxParts=Y(i,n)};this.initializeCalendarListener=function(){var t=e.calendarBodyRef;if(!t){return}var i=t.querySelectorAll(".calendar-month");var n=i[0];var a=i[1];var o=i[2];var s=j(e);var d=s==="ios"&&typeof navigator!=="undefined"&&navigator.maxTouchPoints>1;r((function(){t.scrollLeft=n.clientWidth*(m(e.el)?-1:1);var i=function(i){var r=t.getBoundingClientRect();var a=t.scrollLeft<=2?n:o;var s=a.getBoundingClientRect();if(Math.abs(s.x-r.x)>2)return;var d=e.forceRenderDate;if(d!==undefined){return{month:d.month,year:d.year,day:d.day}}if(a===n){return A(i)}else if(a===o){return D(i)}else{return}};var s=function(){if(d){t.style.removeProperty("pointer-events");l=false}var n=i(e.workingParts);if(!n)return;var o=n.month,s=n.day,c=n.year;if(Tt({month:o,year:c,day:null},{minParts:Object.assign(Object.assign({},e.minParts),{day:null}),maxParts:Object.assign(Object.assign({},e.maxParts),{day:null})})){return}t.style.setProperty("overflow","hidden");r((function(){e.setWorkingParts(Object.assign(Object.assign({},e.workingParts),{month:o,day:s,year:c}));t.scrollLeft=a.clientWidth*(m(e.el)?-1:1);t.style.removeProperty("overflow");if(e.resolveForceDateScrolling){e.resolveForceDateScrolling()}}))};var c;var l=false;var h=function(){if(c){clearTimeout(c)}if(!l&&d){t.style.setProperty("pointer-events","none");l=true}c=setTimeout(s,50)};t.addEventListener("scroll",h);e.destroyCalendarListener=function(){t.removeEventListener("scroll",h)}}))};this.destroyInteractionListeners=function(){var t=e,i=t.destroyCalendarListener,n=t.destroyKeyboardMO;if(i!==undefined){i()}if(n!==undefined){n()}};this.processValue=function(t){var i=t!==null&&t!==undefined&&(!Array.isArray(t)||t.length>0);var n=i?L(t):e.defaultParts;var r=e,a=r.minParts,o=r.maxParts,s=r.workingParts,d=r.el;e.warnIfIncorrectValueUsage();if(!n){return}if(i){N(n,a,o)}var c=Array.isArray(n)?n[0]:n;var l=ht(c,a,o);var h=l.month,p=l.day,u=l.year,f=l.hour,m=l.minute;var b=pt(f);if(i){if(Array.isArray(n)){e.activeParts=__spreadArray([],n,true)}else{e.activeParts={month:h,day:p,year:u,hour:f,minute:m,ampm:b}}}else{e.activeParts=[]}var v=h!==undefined&&h!==s.month||u!==undefined&&u!==s.year;var g=d.classList.contains("datetime-ready");var x=e,y=x.isGridStyle,k=x.showMonthAndYear;var w=true;if(Array.isArray(n)){var j=n[0].month;for(var O=0,_=n;O<_.length;O++){var z=_[O];if(z.month!==j){w=false;break}}}if(w){if(y&&v&&g&&!k){e.animateToDate(l)}else{e.setWorkingParts({month:h,day:p,year:u,hour:f,minute:m,ampm:b})}}};this.animateToDate=function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n;var r=this;return __generator(this,(function(a){switch(a.label){case 0:e=this.workingParts;this.forceRenderDate=t;i=new Promise((function(t){r.resolveForceDateScrolling=t}));n=z(t,e);n?this.prevMonth():this.nextMonth();return[4,i];case 1:a.sent();this.resolveForceDateScrolling=undefined;this.forceRenderDate=undefined;return[2]}}))}))};this.checkForPresentationFormatMismatch=function(){var t=e,i=t.formatOptions,n=t.presentation;if(!i)return;switch(n){case"date":case"month-year":case"month":case"year":if(i.date===undefined){f("Datetime: The '".concat(n,"' presentation requires a date object in formatOptions."),e.el)}break;case"time":if(i.time===undefined){f("Datetime: The 'time' presentation requires a time object in formatOptions.",e.el)}break;case"date-time":case"time-date":if(i.date===undefined||i.time===undefined){f("Datetime: The '".concat(n,"' presentation requires both a date and time object in formatOptions."),e.el)}break}};this.onFocus=function(){e.ionFocus.emit()};this.onBlur=function(){e.ionBlur.emit()};this.hasValue=function(){return e.value!=null};this.nextMonth=function(){var t=e.calendarBodyRef;if(!t){return}var i=t.querySelector(".calendar-month:last-of-type");if(!i){return}var n=i.offsetWidth*2;t.scrollTo({top:0,left:n*(m(e.el)?-1:1),behavior:"smooth"})};this.prevMonth=function(){var t=e.calendarBodyRef;if(!t){return}var i=t.querySelector(".calendar-month:first-of-type");if(!i){return}t.scrollTo({top:0,left:0,behavior:"smooth"})};this.toggleMonthAndYearView=function(){e.showMonthAndYear=!e.showMonthAndYear};this.showMonthAndYear=false;this.activeParts=[];this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"};this.isTimePopoverOpen=false;this.forceRenderDate=undefined;this.color="primary";this.name=this.inputId;this.disabled=false;this.formatOptions=undefined;this.readonly=false;this.isDateEnabled=undefined;this.min=undefined;this.max=undefined;this.presentation="date-time";this.cancelText="Cancel";this.doneText="Done";this.clearText="Clear";this.yearValues=undefined;this.monthValues=undefined;this.dayValues=undefined;this.hourValues=undefined;this.minuteValues=undefined;this.locale="default";this.firstDayOfWeek=0;this.titleSelectedDatesFormatter=undefined;this.multiple=false;this.highlightedDates=undefined;this.value=undefined;this.showDefaultTitle=false;this.showDefaultButtons=false;this.showClearButton=false;this.showDefaultTimeLabel=true;this.hourCycle=undefined;this.size="fixed";this.preferWheel=false}t.prototype.formatOptionsChanged=function(){this.checkForPresentationFormatMismatch();this.errorIfTimeZoneProvided()};t.prototype.disabledChanged=function(){this.emitStyle()};t.prototype.minChanged=function(){this.processMinParts()};t.prototype.maxChanged=function(){this.processMaxParts()};t.prototype.presentationChanged=function(){this.checkForPresentationFormatMismatch()};Object.defineProperty(t.prototype,"isGridStyle",{get:function(){var t=this,e=t.presentation,i=t.preferWheel;var n=e==="date"||e==="date-time"||e==="time-date";return n&&!i},enumerable:false,configurable:true});t.prototype.yearValuesChanged=function(){this.parsedYearValues=G(this.yearValues)};t.prototype.monthValuesChanged=function(){this.parsedMonthValues=G(this.monthValues)};t.prototype.dayValuesChanged=function(){this.parsedDayValues=G(this.dayValues)};t.prototype.hourValuesChanged=function(){this.parsedHourValues=G(this.hourValues)};t.prototype.minuteValuesChanged=function(){this.parsedMinuteValues=G(this.minuteValues)};t.prototype.valueChanged=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.value;if(this.hasValue()){this.processValue(t)}this.emitStyle();this.ionValueChange.emit({value:t});return[2]}))}))};t.prototype.confirm=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,n,r,a,o;return __generator(this,(function(s){e=this,i=e.isCalendarPicker,n=e.activeParts,r=e.preferWheel,a=e.workingParts;if(n!==undefined||!i){o=Array.isArray(n);if(o&&n.length===0){if(r){this.setValue(H(a))}else{this.setValue(undefined)}}else{this.setValue(H(n))}}if(t){this.closeParentOverlay()}return[2]}))}))};t.prototype.reset=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processValue(t);return[2]}))}))};t.prototype.cancel=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ionCancel.emit();if(t){this.closeParentOverlay()}return[2]}))}))};Object.defineProperty(t.prototype,"isCalendarPicker",{get:function(){var t=this.presentation;return t==="date"||t==="date-time"||t==="time-date"},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){this.clearFocusVisible=d(this.el).destroy};t.prototype.disconnectedCallback=function(){if(this.clearFocusVisible){this.clearFocusVisible();this.clearFocusVisible=undefined}};t.prototype.initializeListeners=function(){this.initializeCalendarListener();this.initializeKeyboardListeners()};t.prototype.componentDidLoad=function(){var t=this;var e=function(e){var i=e[0];if(!i.isIntersecting){return}t.initializeListeners();r((function(){t.el.classList.add("datetime-ready")}))};var i=new IntersectionObserver(e,{threshold:.01});c((function(){return i===null||i===void 0?void 0:i.observe(t.el)}));var n=function(e){var i=e[0];if(i.isIntersecting){return}t.destroyInteractionListeners();t.showMonthAndYear=false;r((function(){t.el.classList.remove("datetime-ready")}))};var a=new IntersectionObserver(n,{threshold:0});c((function(){return a===null||a===void 0?void 0:a.observe(t.el)}));var o=h(this.el);o.addEventListener("ionFocus",(function(t){return t.stopPropagation()}));o.addEventListener("ionBlur",(function(t){return t.stopPropagation()}))};t.prototype.componentDidRender=function(){var t=this;var e=this,i=e.presentation,n=e.prevPresentation,r=e.calendarBodyRef,a=e.minParts,o=e.preferWheel,s=e.forceRenderDate;var d=!o&&["date-time","time-date","date"].includes(i);if(a!==undefined&&d&&r){var l=r.querySelector(".calendar-month:nth-of-type(1)");if(l&&s===undefined){r.scrollLeft=l.clientWidth*(m(this.el)?-1:1)}}if(n===null){this.prevPresentation=i;return}if(i===n){return}this.prevPresentation=i;this.destroyInteractionListeners();this.initializeListeners();this.showMonthAndYear=false;c((function(){t.ionRender.emit()}))};t.prototype.componentWillLoad=function(){var t=this,e=t.el,i=t.formatOptions,n=t.highlightedDates,r=t.multiple,a=t.presentation,o=t.preferWheel;if(r){if(a!=="date"){f('Multiple date selection is only supported for presentation="date".',e)}if(o){f('Multiple date selection is not supported with preferWheel="true".',e)}}if(n!==undefined){if(a!=="date"&&a!=="date-time"&&a!=="time-date"){f("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",e)}if(o){f('The highlightedDates property is not supported with preferWheel="true".',e)}}if(i){this.checkForPresentationFormatMismatch();this.errorIfTimeZoneProvided()}var s=this.parsedHourValues=G(this.hourValues);var d=this.parsedMinuteValues=G(this.minuteValues);var c=this.parsedMonthValues=G(this.monthValues);var l=this.parsedYearValues=G(this.yearValues);var h=this.parsedDayValues=G(this.dayValues);var p=this.todayParts=L(U());this.processMinParts();this.processMaxParts();this.defaultParts=Z({refParts:p,monthValues:c,dayValues:h,yearValues:l,hourValues:s,minuteValues:d,minParts:this.minParts,maxParts:this.maxParts});this.processValue(this.value);this.emitStyle()};t.prototype.errorIfTimeZoneProvided=function(){var t,e,i,n;var r=this.formatOptions;if(((t=r===null||r===void 0?void 0:r.date)===null||t===void 0?void 0:t.timeZone)||((e=r===null||r===void 0?void 0:r.date)===null||e===void 0?void 0:e.timeZoneName)||((i=r===null||r===void 0?void 0:r.time)===null||i===void 0?void 0:i.timeZone)||((n=r===null||r===void 0?void 0:r.time)===null||n===void 0?void 0:n.timeZoneName)){f('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".')}};t.prototype.emitStyle=function(){this.ionStyle.emit({interactive:true,datetime:true,"interactive-disabled":this.disabled})};t.prototype.renderFooter=function(){var t;var e=this;var i=this,n=i.disabled,r=i.readonly,o=i.showDefaultButtons,s=i.showClearButton;var d=n||r;var c=this.el.querySelector('[slot="buttons"]')!==null;if(!c&&!o&&!s){return}var l=function(){e.reset();e.setValue(undefined)};return a("div",{class:"datetime-footer"},a("div",{class:"datetime-buttons"},a("div",{class:(t={},t["datetime-action-buttons"]=true,t["has-clear-button"]=this.showClearButton,t)},a("slot",{name:"buttons"},a("ion-buttons",null,o&&a("ion-button",{id:"cancel-button",color:this.color,onClick:function(){return e.cancel(true)},disabled:d},this.cancelText),a("div",{class:"datetime-action-buttons-container"},s&&a("ion-button",{id:"clear-button",color:this.color,onClick:function(){return l()},disabled:d},this.clearText),o&&a("ion-button",{id:"confirm-button",color:this.color,onClick:function(){return e.confirm(true)},disabled:d},this.doneText)))))))};t.prototype.renderWheelPicker=function(t){if(t===void 0){t=this.presentation}var e=t==="time-date"?[this.renderTimePickerColumns(t),this.renderDatePickerColumns(t)]:[this.renderDatePickerColumns(t),this.renderTimePickerColumns(t)];return a("ion-picker-internal",null,e)};t.prototype.renderDatePickerColumns=function(t){return t==="date-time"||t==="time-date"?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(t)};t.prototype.renderCombinedDatePickerColumn=function(){var t=this;var e=this,i=e.defaultParts,n=e.disabled,r=e.workingParts,o=e.locale,s=e.minParts,d=e.maxParts,c=e.todayParts,l=e.isDateEnabled;var h=this.getActivePartsWithFallback();var p=X(r);var f=p[p.length-1];p[0].day=1;f.day=J(f.month,f.year);var m=s!==undefined&&C(s,p[0])?s:p[0];var b=d!==undefined&&z(d,f)?d:f;var v=K(o,c,m,b,this.parsedDayValues,this.parsedMonthValues);var g=v.items;var x=v.parts;if(l){g=g.map((function(t,e){var i=x[e];var n;try{n=!l(H(i))}catch(t){u("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",t)}return Object.assign(Object.assign({},t),{disabled:n})}))}var y=r.day!==null?"".concat(r.year,"-").concat(r.month,"-").concat(r.day):"".concat(i.year,"-").concat(i.month,"-").concat(i.day);return a("ion-picker-column-internal",{class:"date-column",color:this.color,disabled:n,items:g,value:y,onIonChange:function(e){if(t.destroyCalendarListener){t.destroyCalendarListener()}var i=e.detail.value;var n=x.find((function(t){var e=t.month,n=t.day,r=t.year;return i==="".concat(r,"-").concat(e,"-").concat(n)}));t.setWorkingParts(Object.assign(Object.assign({},r),n));t.setActiveParts(Object.assign(Object.assign({},h),n));t.initializeCalendarListener();e.stopPropagation()}})};t.prototype.renderIndividualDatePickerColumns=function(t){var e=this,i=e.workingParts,n=e.isDateEnabled;var r=t!=="year"&&t!=="time";var a=r?Q(this.locale,i,this.minParts,this.maxParts,this.parsedMonthValues):[];var o=t==="date";var s=o?$(this.locale,i,this.minParts,this.maxParts,this.parsedDayValues):[];if(n){s=s.map((function(t){var e=t.value;var r=typeof e==="string"?parseInt(e):e;var a={month:i.month,day:r,year:i.year};var o;try{o=!n(H(a))}catch(t){u("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",t)}return Object.assign(Object.assign({},t),{disabled:o})}))}var d=t!=="month"&&t!=="time";var c=d?tt(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[];var l=et(this.locale,{month:"numeric",day:"numeric"});var h=[];if(l){h=[this.renderMonthPickerColumn(a),this.renderDayPickerColumn(s),this.renderYearPickerColumn(c)]}else{h=[this.renderDayPickerColumn(s),this.renderMonthPickerColumn(a),this.renderYearPickerColumn(c)]}return h};t.prototype.renderDayPickerColumn=function(t){var e=this;var i;if(t.length===0){return[]}var n=this,r=n.disabled,o=n.workingParts;var s=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{class:"day-column",color:this.color,disabled:r,items:t,value:(i=o.day!==null?o.day:this.defaultParts.day)!==null&&i!==void 0?i:undefined,onIonChange:function(t){if(e.destroyCalendarListener){e.destroyCalendarListener()}e.setWorkingParts(Object.assign(Object.assign({},o),{day:t.detail.value}));e.setActiveParts(Object.assign(Object.assign({},s),{day:t.detail.value}));e.initializeCalendarListener();t.stopPropagation()}})};t.prototype.renderMonthPickerColumn=function(t){var e=this;if(t.length===0){return[]}var i=this,n=i.disabled,r=i.workingParts;var o=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{class:"month-column",color:this.color,disabled:n,items:t,value:r.month,onIonChange:function(t){if(e.destroyCalendarListener){e.destroyCalendarListener()}e.setWorkingParts(Object.assign(Object.assign({},r),{month:t.detail.value}));e.setActiveParts(Object.assign(Object.assign({},o),{month:t.detail.value}));e.initializeCalendarListener();t.stopPropagation()}})};t.prototype.renderYearPickerColumn=function(t){var e=this;if(t.length===0){return[]}var i=this,n=i.disabled,r=i.workingParts;var o=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{class:"year-column",color:this.color,disabled:n,items:t,value:r.year,onIonChange:function(t){if(e.destroyCalendarListener){e.destroyCalendarListener()}e.setWorkingParts(Object.assign(Object.assign({},r),{year:t.detail.value}));e.setActiveParts(Object.assign(Object.assign({},o),{year:t.detail.value}));e.initializeCalendarListener();t.stopPropagation()}})};t.prototype.renderTimePickerColumns=function(t){if(["date","month","month-year","year"].includes(t)){return[]}var e=this.getActivePart();var i=e!==undefined;var n=it(this.locale,this.workingParts,this.hourCycle,i?this.minParts:undefined,i?this.maxParts:undefined,this.parsedHourValues,this.parsedMinuteValues),r=n.hoursData,a=n.minutesData,o=n.dayPeriodData;return[this.renderHourPickerColumn(r),this.renderMinutePickerColumn(a),this.renderDayPeriodPickerColumn(o)]};t.prototype.renderHourPickerColumn=function(t){var e=this;var i=this,n=i.disabled,r=i.workingParts;if(t.length===0)return[];var o=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{color:this.color,disabled:n,value:o.hour,items:t,numericInput:true,onIonChange:function(t){e.setWorkingParts(Object.assign(Object.assign({},r),{hour:t.detail.value}));e.setActiveParts(Object.assign(Object.assign({},o),{hour:t.detail.value}));t.stopPropagation()}})};t.prototype.renderMinutePickerColumn=function(t){var e=this;var i=this,n=i.disabled,r=i.workingParts;if(t.length===0)return[];var o=this.getActivePartsWithFallback();return a("ion-picker-column-internal",{color:this.color,disabled:n,value:o.minute,items:t,numericInput:true,onIonChange:function(t){e.setWorkingParts(Object.assign(Object.assign({},r),{minute:t.detail.value}));e.setActiveParts(Object.assign(Object.assign({},o),{minute:t.detail.value}));t.stopPropagation()}})};t.prototype.renderDayPeriodPickerColumn=function(t){var e=this;var i=this,n=i.disabled,r=i.workingParts;if(t.length===0){return[]}var o=this.getActivePartsWithFallback();var s=nt(this.locale);return a("ion-picker-column-internal",{style:s?{order:"-1"}:{},color:this.color,disabled:n,value:o.ampm,items:t,onIonChange:function(t){var i=ut(r,t.detail.value);e.setWorkingParts(Object.assign(Object.assign({},r),{ampm:t.detail.value,hour:i}));e.setActiveParts(Object.assign(Object.assign({},o),{ampm:t.detail.value,hour:i}));t.stopPropagation()}})};t.prototype.renderWheelView=function(t){var e;var i=this.locale;var n=et(i);var r=n?"month-first":"year-first";return a("div",{class:(e={},e["wheel-order-".concat(r)]=true,e)},this.renderWheelPicker(t))};t.prototype.renderCalendarHeader=function(t){var e=this;var i=this.disabled;var n=t==="ios"?y:k;var r=t==="ios"?x:w;var o=i||It(this.workingParts,this.minParts,this.maxParts);var s=i||Vt(this.workingParts,this.maxParts);var d=this.el.getAttribute("dir")||undefined;return a("div",{class:"calendar-header"},a("div",{class:"calendar-action-buttons"},a("div",{class:"calendar-month-year"},a("ion-item",{part:"month-year-button",ref:function(t){return e.monthYearToggleItemRef=t},button:true,"aria-label":"Show year picker",detail:false,lines:"none",disabled:i,onClick:function(){var t;e.toggleMonthAndYearView();var i=e.monthYearToggleItemRef;if(i){var n=(t=i.shadowRoot)===null||t===void 0?void 0:t.querySelector(".item-native");if(n){var r=e.showMonthAndYear?"Hide year picker":"Show year picker";n.setAttribute("aria-label",r)}}}},a("ion-label",null,at(this.locale,this.workingParts),a("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?n:r,lazy:false,flipRtl:true})))),a("div",{class:"calendar-next-prev"},a("ion-buttons",null,a("ion-button",{"aria-label":"Previous month",disabled:o,onClick:function(){return e.prevMonth()}},a("ion-icon",{dir:d,"aria-hidden":"true",slot:"icon-only",icon:g,lazy:false,flipRtl:true})),a("ion-button",{"aria-label":"Next month",disabled:s,onClick:function(){return e.nextMonth()}},a("ion-icon",{dir:d,"aria-hidden":"true",slot:"icon-only",icon:x,lazy:false,flipRtl:true}))))),a("div",{class:"calendar-days-of-week","aria-hidden":"true"},rt(this.locale,t,this.firstDayOfWeek%7).map((function(t){return a("div",{class:"day-of-week"},t)}))))};t.prototype.renderMonth=function(t,e){var i=this;var n=this,r=n.disabled,o=n.readonly;var s=this.parsedYearValues===undefined||this.parsedYearValues.includes(e);var d=this.parsedMonthValues===undefined||this.parsedMonthValues.includes(t);var c=!s||!d;var l=r||o;var h=r||Tt({month:t,year:e,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})});var p=this.workingParts.month===t&&this.workingParts.year===e;var f=this.getActivePartsWithFallback();return a("div",{"aria-hidden":!p?"true":null,class:{"calendar-month":true,"calendar-month-disabled":!p&&h}},a("div",{class:"calendar-month-grid"},ot(t,e,this.firstDayOfWeek%7).map((function(n,r){var o=n.day,s=n.dayOfWeek;var d=i,h=d.el,p=d.highlightedDates,m=d.isDateEnabled,b=d.multiple;var v={month:t,day:o,year:e};var g=o===null;var x=Mt(i.locale,v,i.activeParts,i.todayParts,i.minParts,i.maxParts,i.parsedDayValues),y=x.isActive,k=x.isToday,w=x.ariaLabel,j=x.ariaSelected,O=x.disabled,_=x.text;var z=H(v);var C=c||O;if(!C&&m!==undefined){try{C=!m(z)}catch(t){u("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",h,t)}}var P=C&&l;var A=C||l;var D=undefined;if(p!==undefined&&!y&&o!==null){D=Et(p,z,h)}var M=undefined;if(!g){M="calendar-day".concat(y?" active":"").concat(k?" today":"").concat(C?" disabled":"")}return a("div",{class:"calendar-day-wrapper"},a("button",{ref:function(t){if(t){t.style.setProperty("color","".concat(D?D.textColor:""),"important");t.style.setProperty("background-color","".concat(D?D.backgroundColor:""),"important")}},tabindex:"-1","data-day":o,"data-month":t,"data-year":e,"data-index":r,"data-day-of-week":s,disabled:A,class:{"calendar-day-padding":g,"calendar-day":true,"calendar-day-active":y,"calendar-day-constrained":P,"calendar-day-today":k},part:M,"aria-hidden":g?"true":null,"aria-selected":j,"aria-label":w,onClick:function(){if(g){return}i.setWorkingParts(Object.assign(Object.assign({},i.workingParts),{month:t,day:o,year:e}));if(b){i.setActiveParts({month:t,day:o,year:e},y)}else{i.setActiveParts(Object.assign(Object.assign({},f),{month:t,day:o,year:e}))}}},_))}))))};t.prototype.renderCalendarBody=function(){var t=this;return a("div",{class:"calendar-body ion-focusable",ref:function(e){return t.calendarBodyRef=e},tabindex:"0"},X(this.workingParts,this.forceRenderDate).map((function(e){var i=e.month,n=e.year;return t.renderMonth(i,n)})))};t.prototype.renderCalendar=function(t){return a("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(t),this.renderCalendarBody())};t.prototype.renderTimeLabel=function(){var t=this.el.querySelector('[slot="time-label"]')!==null;if(!t&&!this.showDefaultTimeLabel){return}return a("slot",{name:"time-label"},"Time")};t.prototype.renderTimeOverlay=function(){var t=this;var e=this,i=e.disabled,n=e.hourCycle,r=e.isTimePopoverOpen,o=e.locale,s=e.formatOptions;var d=st(o,n);var c=this.getActivePartsWithFallback();return[a("div",{class:"time-header"},this.renderTimeLabel()),a("button",{class:{"time-body":true,"time-body-active":r},part:"time-button".concat(r?" active":""),"aria-expanded":"false","aria-haspopup":"true",disabled:i,onClick:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:t=this.popoverRef;if(!t)return[3,2];this.isTimePopoverOpen=true;t.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:e.target}}));return[4,t.onWillDismiss()];case 1:i.sent();this.isTimePopoverOpen=false;i.label=2;case 2:return[2]}}))}))}},dt(o,c,d,s===null||s===void 0?void 0:s.time)),a("ion-popover",{alignment:"center",translucent:true,overlayIndex:1,arrow:false,onWillPresent:function(t){var e=t.target.querySelectorAll("ion-picker-column-internal");e.forEach((function(t){return t.scrollActiveItemIntoView()}))},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:true,ref:function(e){return t.popoverRef=e}},this.renderWheelPicker("time"))]};t.prototype.getHeaderSelectedDateText=function(){var t;var e=this,i=e.activeParts,n=e.formatOptions,r=e.multiple,a=e.titleSelectedDatesFormatter;var o=Array.isArray(i);var s;if(r&&o&&i.length!==1){s="".concat(i.length," days");if(a!==undefined){try{s=a(H(i))}catch(t){u("Exception in provided `titleSelectedDatesFormatter`: ",t)}}}else{s=ct(this.locale,this.getActivePartsWithFallback(),(t=n===null||n===void 0?void 0:n.date)!==null&&t!==void 0?t:{weekday:"short",month:"short",day:"numeric"})}return s};t.prototype.renderHeader=function(t){if(t===void 0){t=true}var e=this.el.querySelector('[slot="title"]')!==null;if(!e&&!this.showDefaultTitle){return}return a("div",{class:"datetime-header"},a("div",{class:"datetime-title"},a("slot",{name:"title"},"Select Date")),t&&a("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))};t.prototype.renderTime=function(){var t=this.presentation;var e=t==="time";return a("div",{class:"datetime-time"},e?this.renderWheelPicker():this.renderTimeOverlay())};t.prototype.renderCalendarViewMonthYearPicker=function(){return a("div",{class:"datetime-year"},this.renderWheelView("month-year"))};t.prototype.renderDatetime=function(t){var e=this,i=e.presentation,n=e.preferWheel;var r=i==="date"||i==="date-time"||i==="time-date";if(n&&r){return[this.renderHeader(false),this.renderWheelView(),this.renderFooter()]}switch(i){case"date-time":return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(false),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(false),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(t),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}};t.prototype.render=function(){var t;var e=this,i=e.name,n=e.value,r=e.disabled,s=e.el,d=e.color,c=e.readonly,h=e.showMonthAndYear,p=e.preferWheel,u=e.presentation,f=e.size,m=e.isGridStyle;var v=j(this);var g=u==="year"||u==="month"||u==="month-year";var x=h||g;var y=h&&!g;var k=u==="date"||u==="date-time"||u==="time-date";var w=k&&p;l(true,s,i,lt(n),r);return a(o,{key:"ff50a7d344831b3af2e7f5cfe52b0a71c8c4b8d1","aria-disabled":r?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},b(d,(t={},t[v]=true,t["datetime-readonly"]=c,t["datetime-disabled"]=r,t["show-month-and-year"]=x,t["month-year-picker-open"]=y,t["datetime-presentation-".concat(u)]=true,t["datetime-size-".concat(f)]=true,t["datetime-prefer-wheel"]=w,t["datetime-grid"]=m,t)))},this.renderDatetime(v))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{formatOptions:["formatOptionsChanged"],disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],presentation:["presentationChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());var Bt=0;Rt.style={ios:Ft,md:qt};var Yt=function(t){var e=_t();var i=_t();var n=_t();i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);n.addElement(t.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,n])};var Lt=function(t){var e=_t();var i=_t();var n=_t();i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01);n.addElement(t.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)");return e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,n])};var Nt=".sc-ion-picker-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-ios-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-ios-h{left:0}[dir=rtl].sc-ion-picker-ios-h,[dir=rtl] .sc-ion-picker-ios-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-ios-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-ios-h{display:none}.picker-wrapper.sc-ion-picker-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-ios:active,.picker-button.sc-ion-picker-ios:focus{outline:none}.picker-columns.sc-ion-picker-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-ios,.picker-below-highlight.sc-ion-picker-ios{display:none;pointer-events:none}.sc-ion-picker-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-ios:last-child .picker-button.sc-ion-picker-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:16px}.picker-columns.sc-ion-picker-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}";var Gt=Nt;var Ht=".sc-ion-picker-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-md-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-md-h{left:0}[dir=rtl].sc-ion-picker-md-h,[dir=rtl] .sc-ion-picker-md-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-md-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-md-h{display:none}.picker-wrapper.sc-ion-picker-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-md:active,.picker-button.sc-ion-picker-md:focus{outline:none}.picker-columns.sc-ion-picker-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-md,.picker-below-highlight.sc-ion-picker-md{display:none;pointer-events:none}.sc-ion-picker-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}";var Ut=Ht;var Zt=t("ion_picker",function(){function t(t){var e=this;i(this,t);this.didPresent=n(this,"ionPickerDidPresent",7);this.willPresent=n(this,"ionPickerWillPresent",7);this.willDismiss=n(this,"ionPickerWillDismiss",7);this.didDismiss=n(this,"ionPickerDidDismiss",7);this.didPresentShorthand=n(this,"didPresent",7);this.willPresentShorthand=n(this,"willPresent",7);this.willDismissShorthand=n(this,"willDismiss",7);this.didDismissShorthand=n(this,"didDismiss",7);this.delegateController=mt(this);this.lockController=ft();this.triggerController=bt();this.onBackdropTap=function(){e.dismiss(undefined,vt)};this.dispatchCancelHandler=function(t){var i=t.detail.role;if(gt(i)){var n=e.buttons.find((function(t){return t.role==="cancel"}));e.callButtonHandler(n)}};this.presented=false;this.overlayIndex=undefined;this.delegate=undefined;this.hasController=false;this.keyboardClose=true;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.buttons=[];this.columns=[];this.cssClass=undefined;this.duration=0;this.showBackdrop=true;this.backdropDismiss=true;this.animated=true;this.htmlAttributes=undefined;this.isOpen=false;this.trigger=undefined}t.prototype.onIsOpenChange=function(t,e){if(t===true&&e===false){this.present()}else if(t===false&&e===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,e=t.trigger,i=t.el,n=t.triggerController;if(e){n.addClickListener(i,e)}};t.prototype.connectedCallback=function(){xt(this.el);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){yt(this.el)};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){c((function(){return t.present()}))}this.triggerChanged()};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.lockController.lock()];case 1:t=i.sent();return[4,this.delegateController.attachViewToDom()];case 2:i.sent();return[4,kt(this,"pickerEnter",Yt,Yt,undefined)];case 3:i.sent();if(this.duration>0){this.durationTimeout=setTimeout((function(){return e.dismiss()}),this.duration)}t();return[2]}}))}))};t.prototype.dismiss=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.lockController.lock()];case 1:i=r.sent();if(this.durationTimeout){clearTimeout(this.durationTimeout)}return[4,wt(this,t,e,"pickerLeave",Lt,Lt)];case 2:n=r.sent();if(n){this.delegateController.removeViewFromDom()}i();return[2,n]}}))}))};t.prototype.onDidDismiss=function(){return jt(this.el,"ionPickerDidDismiss")};t.prototype.onWillDismiss=function(){return jt(this.el,"ionPickerWillDismiss")};t.prototype.getColumn=function(t){return Promise.resolve(this.columns.find((function(e){return e.name===t})))};t.prototype.buttonClick=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:e=t.role;if(gt(e)){return[2,this.dismiss(undefined,e)]}return[4,this.callButtonHandler(t)];case 1:i=n.sent();if(i){return[2,this.dismiss(this.getSelected(),t.role)]}return[2,Promise.resolve()]}}))}))};t.prototype.callButtonHandler=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!t)return[3,2];return[4,Ot(t.handler,this.getSelected())];case 1:e=i.sent();if(e===false){return[2,false]}i.label=2;case 2:return[2,true]}}))}))};t.prototype.getSelected=function(){var t={};this.columns.forEach((function(e,i){var n=e.selectedIndex!==undefined?e.options[e.selectedIndex]:undefined;t[e.name]={text:n?n.text:undefined,value:n?n.value:undefined,columnIndex:i}}));return t};t.prototype.render=function(){var t;var e=this;var i=this.htmlAttributes;var n=j(this);return a(o,Object.assign({key:"8b9049c5315e701dff3f7457be646941bb3cc0df","aria-modal":"true",tabindex:"-1"},i,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign((t={},t[n]=true,t["picker-".concat(n)]=true,t["overlay-hidden"]=true,t),v(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler}),a("ion-backdrop",{key:"4f62ae6c088108189bfab18b680f0ae50b4cc395",visible:this.showBackdrop,tappable:this.backdropDismiss}),a("div",{key:"c5fd2584ca4470c69bf61582cef2ac72289addba",tabindex:"0"}),a("div",{key:"2e68572dd5ddc4911c1e6bca57a2157b47477348",class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},a("div",{key:"218526e531998a4d5a6377499acb42f99b347729",class:"picker-toolbar"},this.buttons.map((function(t){return a("div",{class:Xt(t)},a("button",{type:"button",onClick:function(){return e.buttonClick(t)},class:Jt(t)},t.text))}))),a("div",{key:"4dd711f1fa1f2a4bd24696ae1633da16bbf55879",class:"picker-columns"},a("div",{key:"440ebd807ca3675b0055e67e0354ac4625ae375d",class:"picker-above-highlight"}),this.presented&&this.columns.map((function(t){return a("ion-picker-column",{col:t})})),a("div",{key:"5cdceda410904470e3742ab416ed3d3a661b6859",class:"picker-below-highlight"}))),a("div",{key:"0c96e8a43a6d4cd4b8b7c9e81c54414eb1d989bf",tabindex:"0"}))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}());var Xt=function(t){var e;return e={},e["picker-toolbar-".concat(t.role)]=t.role!==undefined,e["picker-toolbar-button"]=true,e};var Jt=function(t){return Object.assign({"picker-button":true,"ion-activatable":true},v(t.cssClass))};Zt.style={ios:Gt,md:Ut};var Kt=".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}";var Qt=Kt;var $t=".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}";var te=$t;var ee=t("ion_picker_column",function(){function t(t){i(this,t);this.ionPickerColChange=n(this,"ionPickerColChange",7);this.optHeight=0;this.rotateFactor=0;this.scaleFactor=1;this.velocity=0;this.y=0;this.noAnimate=true;this.colDidChange=false;this.col=undefined}t.prototype.colChanged=function(){this.colDidChange=true};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n,r;var a=this;return __generator(this,(function(o){switch(o.label){case 0:t=0;i=.81;n=j(this);if(n==="ios"){t=-.46;i=1}this.rotateFactor=t;this.scaleFactor=i;r=this;return[4,e.import("./p-31b2326e.system.js")];case 1:r.gesture=o.sent().createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:false,onStart:function(t){return a.onStart(t)},onMove:function(t){return a.onMove(t)},onEnd:function(t){return a.onEnd(t)}});this.gesture.enable();this.tmrId=setTimeout((function(){a.noAnimate=false;a.refresh(true)}),250);return[2]}}))}))};t.prototype.componentDidLoad=function(){this.onDomChange()};t.prototype.componentDidUpdate=function(){if(this.colDidChange){this.onDomChange(true,false);this.colDidChange=false}};t.prototype.disconnectedCallback=function(){if(this.rafId!==undefined)cancelAnimationFrame(this.rafId);if(this.tmrId)clearTimeout(this.tmrId);if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.emitColChange=function(){this.ionPickerColChange.emit(this.col)};t.prototype.setSelected=function(t,e){var i=t>-1?-(t*this.optHeight):0;this.velocity=0;if(this.rafId!==undefined)cancelAnimationFrame(this.rafId);this.update(i,e,true);this.emitColChange()};t.prototype.update=function(t,e,i){if(!this.optsEl){return}var n=0;var r=0;var a=this,o=a.col,s=a.rotateFactor;var d=o.selectedIndex;var c=o.selectedIndex=this.indexForY(-t);var l=e===0?"":e+"ms";var h="scale(".concat(this.scaleFactor,")");var p=this.optsEl.children;for(var u=0;u<p.length;u++){var f=p[u];var m=o.options[u];var b=u*this.optHeight+t;var v="";if(s!==0){var g=b*s;if(Math.abs(g)<=90){n=0;r=90;v="rotateX(".concat(g,"deg) ")}else{n=-9999}}else{r=0;n=b}var x=c===u;v+="translate3d(0px,".concat(n,"px,").concat(r,"px) ");if(this.scaleFactor!==1&&!x){v+=h}if(this.noAnimate){m.duration=0;f.style.transitionDuration=""}else if(e!==m.duration){m.duration=e;f.style.transitionDuration=l}if(v!==m.transform){m.transform=v}f.style.transform=v;m.selected=x;if(x){f.classList.add(ie)}else{f.classList.remove(ie)}}this.col.prevSelected=d;if(i){this.y=t}if(this.lastIndex!==c){zt();this.lastIndex=c}};t.prototype.decelerate=function(){var t=this;if(this.velocity!==0){this.velocity*=ne;this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);var e=this.y+this.velocity;if(e>this.minY){e=this.minY;this.velocity=0}else if(e<this.maxY){e=this.maxY;this.velocity=0}this.update(e,0,true);var i=Math.round(e)%this.optHeight!==0||Math.abs(this.velocity)>1;if(i){this.rafId=requestAnimationFrame((function(){return t.decelerate()}))}else{this.velocity=0;this.emitColChange();Ct()}}else if(this.y%this.optHeight!==0){var n=Math.abs(this.y%this.optHeight);this.velocity=n>this.optHeight/2?1:-1;this.decelerate()}};t.prototype.indexForY=function(t){return Math.min(Math.max(Math.abs(Math.round(t/this.optHeight)),0),this.col.options.length-1)};t.prototype.onStart=function(t){if(t.event.cancelable){t.event.preventDefault()}t.event.stopPropagation();Pt();if(this.rafId!==undefined)cancelAnimationFrame(this.rafId);var e=this.col.options;var i=e.length-1;var n=0;for(var r=0;r<e.length;r++){if(!e[r].disabled){i=Math.min(i,r);n=Math.max(n,r)}}this.minY=-(i*this.optHeight);this.maxY=-(n*this.optHeight)};t.prototype.onMove=function(t){if(t.event.cancelable){t.event.preventDefault()}t.event.stopPropagation();var e=this.y+t.deltaY;if(e>this.minY){e=Math.pow(e,.8);this.bounceFrom=e}else if(e<this.maxY){e+=Math.pow(this.maxY-e,.9);this.bounceFrom=e}else{this.bounceFrom=0}this.update(e,0,false)};t.prototype.onEnd=function(t){if(this.bounceFrom>0){this.update(this.minY,100,true);this.emitColChange();return}else if(this.bounceFrom<0){this.update(this.maxY,100,true);this.emitColChange();return}this.velocity=p(-re,t.velocityY*23,re);if(this.velocity===0&&t.deltaY===0){var e=t.event.target.closest(".picker-opt");if(e===null||e===void 0?void 0:e.hasAttribute("opt-index")){this.setSelected(parseInt(e.getAttribute("opt-index"),10),ae)}}else{this.y+=t.deltaY;if(Math.abs(t.velocityY)<.05){var i=t.deltaY>0;var n=Math.abs(this.y)%this.optHeight/this.optHeight;if(i&&n>.5){this.velocity=Math.abs(this.velocity)*-1}else if(!i&&n<=.5){this.velocity=Math.abs(this.velocity)}}this.decelerate()}};t.prototype.refresh=function(t,e){var i;var n=this.col.options.length-1;var r=0;var a=this.col.options;for(var o=0;o<a.length;o++){if(!a[o].disabled){n=Math.min(n,o);r=Math.max(r,o)}}if(this.velocity!==0){return}var s=p(n,(i=this.col.selectedIndex)!==null&&i!==void 0?i:0,r);if(this.col.prevSelected!==s||t){var d=s*this.optHeight*-1;var c=e?ae:0;this.velocity=0;this.update(d,c,true)}};t.prototype.onDomChange=function(t,e){var i=this.optsEl;if(i){this.optHeight=i.firstElementChild?i.firstElementChild.clientHeight:0}this.refresh(t,e)};t.prototype.render=function(){var t;var e=this;var i=this.col;var n=j(this);return a(o,{key:"06e2ae483a3bcf4fe721ad0c48cded6a1efdc6c0",class:Object.assign((t={},t[n]=true,t["picker-col"]=true,t["picker-opts-left"]=this.col.align==="left",t["picker-opts-right"]=this.col.align==="right",t),v(i.cssClass)),style:{"max-width":this.col.columnWidth}},i.prefix&&a("div",{class:"picker-prefix",style:{width:i.prefixWidth}},i.prefix),a("div",{key:"14bea013788d899edf7155eb3cc10f79fe8e4690",class:"picker-opts",style:{maxWidth:i.optionsWidth},ref:function(t){return e.optsEl=t}},i.options.map((function(t,e){return a("button",{"aria-label":t.ariaLabel,class:{"picker-opt":true,"picker-opt-disabled":!!t.disabled},"opt-index":e},t.text)}))),i.suffix&&a("div",{class:"picker-suffix",style:{width:i.suffixWidth}},i.suffix))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{col:["colChanged"]}},enumerable:false,configurable:true});return t}());var ie="picker-opt-selected";var ne=.97;var re=90;var ae=150;ee.style={ios:Qt,md:te}}}}));
@@ -1,4 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var u=0,t=n.length,a;u<t;u++){if(a||!(u in n)){if(!a)a=Array.prototype.slice.call(n,0,u);a[u]=n[u]}}return r.concat(a||Array.prototype.slice.call(n))};
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */System.register(["./p-ff4b7e40.system.js"],(function(r){"use strict";var n;return{setters:[function(r){n=r.p}],execute:function(){r({s:h,u:T});var e=r("c",(function(r,n){return r.month===n.month&&r.day===n.day&&r.year===n.year}));var u=r("i",(function(r,n){return!!(r.year<n.year||r.year===n.year&&r.month<n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day<n.day)}));var t=r("b",(function(r,n){return!!(r.year>n.year||r.year===n.year&&r.month>n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day>n.day)}));var a=r("w",(function(r,e,a){var i=Array.isArray(r)?r:[r];for(var f=0,v=i;f<v.length;f++){var d=v[f];if(e!==undefined&&u(d,e)||a!==undefined&&t(d,a)){n("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(e),"\n")+"Max: ".concat(JSON.stringify(a),"\n")+"Value: ".concat(JSON.stringify(r)));break}}}));var i=function(r){return r%4===0&&r%100!==0||r%400===0};var f=r("L",(function(r,n){if(n!==undefined){return n}var e=new Intl.DateTimeFormat(r,{hour:"numeric"});var u=e.resolvedOptions();if(u.hourCycle!==undefined){return u.hourCycle}var t=new Date("5/18/2021 00:00");var a=e.formatToParts(t);var i=a.find((function(r){return r.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}switch(i.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}));var v=function(r){return r==="h23"||r==="h24"};var d=r("A",(function(r,n){return r===4||r===6||r===9||r===11?30:r===2?i(n)?29:28:31}));var o=r("F",(function(r,n){if(n===void 0){n={month:"numeric",year:"numeric"}}var e=new Intl.DateTimeFormat(r,n).formatToParts(new Date);return e[0].type==="month"}));var l=r("H",(function(r){var n=new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date);return n[0].type==="dayPeriod"}));var c=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var y=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var m=r("t",(function(r){if(r===undefined){return}var n=r;if(typeof r==="string"){n=r.replace(/\[|\]|\s/g,"").split(",")}var e;if(Array.isArray(n)){e=n.map((function(r){return parseInt(r,10)})).filter(isFinite)}else{e=[n]}return e}));var s=r("f",(function(r){return{month:parseInt(r.getAttribute("data-month"),10),day:parseInt(r.getAttribute("data-day"),10),year:parseInt(r.getAttribute("data-year"),10),dayOfWeek:parseInt(r.getAttribute("data-day-of-week"),10)}}));function h(r){if(Array.isArray(r)){var e=[];for(var u=0,t=r;u<t.length;u++){var a=t[u];var i=h(a);if(!i){return undefined}e.push(i)}return e}var f=null;if(r!=null&&r!==""){f=y.exec(r);if(f){f.unshift(undefined,undefined);f[2]=f[3]=undefined}else{f=c.exec(r)}}if(f===null){n("Unable to parse date string: ".concat(r,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var v=1;v<8;v++){f[v]=f[v]!==undefined?parseInt(f[v],10):undefined}return{year:f[1],month:f[2],day:f[3],hour:f[4],minute:f[5],ampm:f[4]<12?"am":"pm"}}var w=r("P",(function(r,n,e){if(n&&u(r,n)){return n}else if(e&&t(r,e)){return e}return r}));var p=r("Q",(function(r){return r>=12?"pm":"am"}));var O=r("r",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;var v=a!==null&&a!==void 0?a:n.year;var o=u!==null&&u!==void 0?u:12;return{month:o,day:t!==null&&t!==void 0?t:d(o,v),year:v,hour:i!==null&&i!==void 0?i:23,minute:f!==null&&f!==void 0?f:59}}));var b=r("q",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;return{month:u!==null&&u!==void 0?u:1,day:t!==null&&t!==void 0?t:1,year:a!==null&&a!==void 0?a:n.year,hour:i!==null&&i!==void 0?i:0,minute:f!==null&&f!==void 0?f:0}}));var I=function(r){return("0"+(r!==undefined?Math.abs(r):"0")).slice(-2)};var j=function(r){return("000"+(r!==undefined?Math.abs(r):"0")).slice(-4)};function T(r){if(Array.isArray(r)){return r.map((function(r){return T(r)}))}var n="";if(r.year!==undefined){n=j(r.year);if(r.month!==undefined){n+="-"+I(r.month);if(r.day!==undefined){n+="-"+I(r.day);if(r.hour!==undefined){n+="T".concat(I(r.hour),":").concat(I(r.minute),":00")}}}}else if(r.hour!==undefined){n=I(r.hour)+":"+I(r.minute)}return n}var D=function(r,n){if(n===undefined){return r}if(n==="am"){if(r===12){return 0}return r}if(r===12){return 12}return r+12};var A=r("l",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return Z(r,n)}));var _=r("k",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return U(r,6-n)}));var x=r("n",(function(r){return U(r,1)}));var M=r("m",(function(r){return Z(r,1)}));var k=r("o",(function(r){return Z(r,7)}));var C=r("p",(function(r){return U(r,7)}));var Z=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};a.day=u-n;if(a.day<1){a.month-=1}if(a.month<1){a.month=12;a.year-=1}if(a.day<1){var i=d(a.month,a.year);a.day=i+a.day}return a};var U=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};var i=d(e,t);a.day=u+n;if(a.day>i){a.day-=i;a.month+=1}if(a.month>12){a.month=1;a.year+=1}return a};var g=r("d",(function(r){var n=r.month===1?12:r.month-1;var e=r.month===1?r.year-1:r.year;var u=d(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var E=r("e",(function(r){var n=r.month===12?1:r.month+1;var e=r.month===12?r.year+1:r.year;var u=d(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var N=function(r,n){var e=r.month;var u=r.year+n;var t=d(e,u);var a=t<r.day?t:r.day;return{month:e,year:u,day:a}};var G=r("j",(function(r){return N(r,-1)}));var P=r("h",(function(r){return N(r,1)}));var S=function(r,n,e){if(n){return r}return D(r,e)};var F=r("R",(function(r,n){var e=r.ampm,u=r.hour;var t=u;if(e==="am"&&n==="pm"){t=D(t,"pm")}else if(e==="pm"&&n==="am"){t=Math.abs(t-12)}return t}));var J=r("v",(function(r,n,u){var t=r.month,a=r.day,i=r.year;var f=w(Object.assign({},r),n,u);var v=d(t,i);if(a!==null&&v<a){f.day=v}if(n!==undefined&&e(f,n)){if(f.hour!==undefined&&n.hour!==undefined){if(f.hour<n.hour){f.hour=n.hour;f.minute=n.minute}else if(f.hour===n.hour&&f.minute!==undefined&&n.minute!==undefined&&f.minute<n.minute){f.minute=n.minute}}}if(u!==undefined&&e(r,u)){if(f.hour!==undefined&&u.hour!==undefined){if(f.hour>u.hour){f.hour=u.hour;f.minute=u.minute}else if(f.hour===u.hour&&f.minute!==undefined&&u.minute!==undefined&&f.minute>u.minute){f.minute=u.minute}}}return f}));var W=r("y",(function(r){var n=r.refParts,a=r.monthValues,i=r.dayValues,f=r.yearValues,v=r.hourValues,d=r.minuteValues,o=r.minParts,l=r.maxParts;var c=n.hour,y=n.minute,m=n.day,s=n.month,h=n.year;var w=Object.assign(Object.assign({},n),{dayOfWeek:undefined});if(f!==undefined){var O=f.filter((function(r){if(o!==undefined&&r<o.year){return false}if(l!==undefined&&r>l.year){return false}return true}));w.year=H(h,O)}if(a!==undefined){var b=a.filter((function(r){if(o!==undefined&&w.year===o.year&&r<o.month){return false}if(l!==undefined&&w.year===l.year&&r>l.month){return false}return true}));w.month=H(s,b)}if(m!==null&&i!==undefined){var I=i.filter((function(r){if(o!==undefined&&u(Object.assign(Object.assign({},w),{day:r}),o)){return false}if(l!==undefined&&t(Object.assign(Object.assign({},w),{day:r}),l)){return false}return true}));w.day=H(m,I)}if(c!==undefined&&v!==undefined){var j=v.filter((function(r){if((o===null||o===void 0?void 0:o.hour)!==undefined&&e(w,o)&&r<o.hour){return false}if((l===null||l===void 0?void 0:l.hour)!==undefined&&e(w,l)&&r>l.hour){return false}return true}));w.hour=H(c,j);w.ampm=p(w.hour)}if(y!==undefined&&d!==undefined){var T=d.filter((function(r){if((o===null||o===void 0?void 0:o.minute)!==undefined&&e(w,o)&&w.hour===o.hour&&r<o.minute){return false}if((l===null||l===void 0?void 0:l.minute)!==undefined&&e(w,l)&&w.hour===l.hour&&r>l.minute){return false}return true}));w.minute=H(y,T)}return w}));var H=function(r,n){var e=n[0];var u=Math.abs(e-r);for(var t=1;t<n.length;t++){var a=n[t];var i=Math.abs(a-r);if(i<u){e=a;u=i}}return e};var R=function(r){if(r===undefined){return""}return r.toUpperCase()};var $=function(r){delete r.timeZoneName;r.timeZone="UTC";return r};var q=r("M",(function(r,n,e,u){var t={hour:n.hour,minute:n.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}var a={hour:"numeric",minute:"numeric"};var i=$(u!==null&&u!==void 0?u:a);return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},i),{hourCycle:e})).format(new Date(T(Object.assign({year:2023,day:1,month:1},t))+"Z"))}));var z=function(r){var n=r.toString();if(n.length>1){return n}return"0".concat(n)};var B=function(r,n){if(r===0){switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}var e=v(n);if(e){return z(r)}return r.toString()};var K=r("g",(function(r,n,e){if(e.day===null){return null}var u=X(e);var t=new Intl.DateTimeFormat(r,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(u);return n?"Today, ".concat(t):t}));var L=r("J",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(e)}));var Q=r("a",(function(r,n){return rr(r,n,{day:"numeric"}).find((function(r){return r.type==="day"})).value}));var V=function(r,n){return Y(r,n,{year:"numeric"})};var X=function(r){var n,e,u;var t=r.hour!==undefined&&r.minute!==undefined?" ".concat(r.hour,":").concat(r.minute):"";return new Date("".concat((n=r.month)!==null&&n!==void 0?n:1,"/").concat((e=r.day)!==null&&e!==void 0?e:1,"/").concat((u=r.year)!==null&&u!==void 0?u:2023).concat(t," GMT+0000"))};var Y=r("N",(function(r,n,e){var u=X(n);return nr(r,$(e)).format(u)}));var rr=function(r,n,e){var u=X(n);return nr(r,e).formatToParts(u)};var nr=function(r,n){return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},n),{timeZone:"UTC"}))};var er=function(r){if("RelativeTimeFormat"in Intl){var n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}else{return"Today"}};var ur=function(r){var n=r.getTimezoneOffset();r.setMinutes(r.getMinutes()-n);return r};var tr=ur(new Date("2022T01:00"));var ar=ur(new Date("2022T13:00"));var ir=function(r,n){var e=n==="am"?tr:ar;var u=new Intl.DateTimeFormat(r,{hour:"numeric",timeZone:"UTC"}).formatToParts(e).find((function(r){return r.type==="dayPeriod"}));if(u){return u.value}return R(n)};var fr=r("O",(function(r){return Array.isArray(r)?r.join(","):r}));var vr=r("x",(function(){return ur(new Date).toISOString()}));var dr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var or=[0,1,2,3,4,5,6,7,8,9,10,11];var lr=[0,1,2,3,4,5,6,7,8,9,10,11];var cr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var yr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var mr=r("I",(function(r,n,e){if(e===void 0){e=0}var u=n==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(r,{weekday:u});var a=new Date("11/01/2020");var i=[];for(var f=e;f<e+7;f++){var v=new Date(a);v.setDate(v.getDate()+f);i.push(t.format(v))}return i}));var sr=r("K",(function(r,n,e){var u=d(r,n);var t=new Date("".concat(r,"/1/").concat(n)).getDay();var a=t>=e?t-(e+1):6-(e-t);var i=[];for(var f=1;f<=u;f++){i.push({day:f,dayOfWeek:(a+f)%7})}for(var f=0;f<=a;f++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i}));var hr=function(r){switch(r){case"h11":return or;case"h12":return lr;case"h23":return cr;case"h24":return yr;default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var wr=function(r,n,a,i,d,o,l){if(a===void 0){a="h12"}var c=f(r,a);var y=v(c);var m=hr(c);var s=dr;var h=true;var w=true;if(o){m=m.filter((function(r){return o.includes(r)}))}if(l){s=s.filter((function(r){return l.includes(r)}))}if(i){if(e(n,i)){if(i.hour!==undefined){m=m.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(y?r:e)>=i.hour}));h=i.hour<13}if(i.minute!==undefined){var p=false;if(i.hour!==undefined&&n.hour!==undefined){if(n.hour>i.hour){p=true}}s=s.filter((function(r){if(p){return true}return r>=i.minute}))}}else if(u(n,i)){m=[];s=[];h=w=false}}if(d){if(e(n,d)){if(d.hour!==undefined){m=m.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(y?r:e)<=d.hour}));w=d.hour>=12}if(d.minute!==undefined&&n.hour===d.hour){s=s.filter((function(r){return r<=d.minute}))}}else if(t(n,d)){m=[];s=[];h=w=false}}return{hours:m,minutes:s,am:h,pm:w}};var pr=r("z",(function(r,n){var e={month:r.month,year:r.year,day:r.day};if(n!==undefined&&(r.month!==n.month||r.year!==n.year)){var t={month:n.month,year:n.year,day:n.day};var a=u(t,e);return a?[t,e,E(r)]:[g(r),e,t]}return[g(r),e,E(r)]}));var Or=r("C",(function(r,n,e,u,t,a){if(a===void 0){a={month:"long"}}var i=n.year;var f=[];if(t!==undefined){var v=t;if((u===null||u===void 0?void 0:u.month)!==undefined){v=v.filter((function(r){return r<=u.month}))}if((e===null||e===void 0?void 0:e.month)!==undefined){v=v.filter((function(r){return r>=e.month}))}v.forEach((function(n){var e=new Date("".concat(n,"/1/").concat(i," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);f.push({text:u,value:n})}))}else{var d=u&&u.year===i?u.month:12;var o=e&&e.year===i?e.month:1;for(var l=o;l<=d;l++){var c=new Date("".concat(l,"/1/").concat(i," GMT+0000"));var y=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(c);f.push({text:y,value:l})}}return f}));var br=r("D",(function(r,n,e,u,t,a){if(a===void 0){a={day:"numeric"}}var i=n.month,f=n.year;var v=[];var o=d(i,f);var l=(u===null||u===void 0?void 0:u.day)!==null&&(u===null||u===void 0?void 0:u.day)!==undefined&&u.year===f&&u.month===i?u.day:o;var c=(e===null||e===void 0?void 0:e.day)!==null&&(e===null||e===void 0?void 0:e.day)!==undefined&&e.year===f&&e.month===i?e.day:1;if(t!==undefined){var y=t;y=y.filter((function(r){return r>=c&&r<=l}));y.forEach((function(n){var e=new Date("".concat(i,"/").concat(n,"/").concat(f," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);v.push({text:u,value:n})}))}else{for(var m=c;m<=l;m++){var s=new Date("".concat(i,"/").concat(m,"/").concat(f," GMT+0000"));var h=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(s);v.push({text:h,value:m})}}return v}));var Ir=r("E",(function(r,n,e,u,t){var a,i;var f=[];if(t!==undefined){f=t;if((u===null||u===void 0?void 0:u.year)!==undefined){f=f.filter((function(r){return r<=u.year}))}if((e===null||e===void 0?void 0:e.year)!==undefined){f=f.filter((function(r){return r>=e.year}))}}else{var v=n.year;var d=(a=u===null||u===void 0?void 0:u.year)!==null&&a!==void 0?a:v;var o=(i=e===null||e===void 0?void 0:e.year)!==null&&i!==void 0?i:v-100;for(var l=o;l<=d;l++){f.push(l)}}return f.map((function(e){return{text:V(r,{year:e,month:n.month,day:n.day}),value:e}}))}));var jr=function(r,n){if(r.month===n.month&&r.year===n.year){return[r]}return __spreadArray([r],jr(E(r),n),true)};var Tr=r("B",(function(r,n,u,t,a,i){var f=[];var v=[];var d=jr(u,t);if(i){d=d.filter((function(r){var n=r.month;return i.includes(n)}))}d.forEach((function(i){var d={month:i.month,day:null,year:i.year};var o=br(r,d,u,t,a,{month:"short",day:"numeric",weekday:"short"});var l=[];var c=[];o.forEach((function(u){var t=e(Object.assign(Object.assign({},d),{day:u.value}),n);c.push({text:t?er(r):u.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(u.value)});l.push({month:d.month,year:d.year,day:u.value})}));v=__spreadArray(__spreadArray([],v,true),l,true);f=__spreadArray(__spreadArray([],f,true),c,true)}));return{parts:v,items:f}}));var Dr=r("G",(function(r,n,e,u,t,a,i){var d=f(r,e);var o=v(d);var l=wr(r,n,d,u,t,a,i),c=l.hours,y=l.minutes,m=l.am,s=l.pm;var h=c.map((function(r){return{text:B(r,d),value:S(r,o,n.ampm)}}));var w=y.map((function(r){return{text:z(r),value:r}}));var p=[];if(m&&!o){p.push({text:ir(r,"am"),value:"am"})}if(s&&!o){p.push({text:ir(r,"pm"),value:"pm"})}return{minutesData:w,hoursData:h,dayPeriodData:p}}))}}}));