@semcore/date-picker 4.56.1 → 4.57.0

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.
@@ -1,73 +1,73 @@
1
1
  import pa from "@babel/runtime/helpers/esm/extends";
2
2
  import G from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
3
3
  import ne from "@babel/runtime/helpers/esm/slicedToArray";
4
- import k from "@babel/runtime/helpers/esm/assertThisInitialized";
5
- import $ from "@babel/runtime/helpers/esm/objectSpread2";
6
- import Y from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ import q from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import E from "@babel/runtime/helpers/esm/objectSpread2";
6
+ import W from "@babel/runtime/helpers/esm/objectWithoutProperties";
7
7
  import Se from "@babel/runtime/helpers/esm/classCallCheck";
8
8
  import Pe from "@babel/runtime/helpers/esm/createClass";
9
9
  import Ie from "@babel/runtime/helpers/esm/inherits";
10
10
  import De from "@babel/runtime/helpers/esm/createSuper";
11
11
  import p from "@babel/runtime/helpers/esm/defineProperty";
12
12
  import { sstyled as ca } from "@semcore/utils/lib/core/index";
13
- import be, { sstyled as z, assignProps as O, Component as Re } from "@semcore/core";
13
+ import je, { sstyled as A, assignProps as N, Component as be } from "@semcore/core";
14
14
  import i from "react";
15
15
  import ga from "@semcore/base-trigger";
16
16
  import Q from "@semcore/input-mask";
17
- import Ke from "@semcore/tooltip";
17
+ import Oe from "@semcore/tooltip";
18
18
  import { Flex as fa, Box as ha } from "@semcore/flex-box";
19
19
  import va from "@semcore/icon/Calendar/m";
20
- import ya from "@semcore/neighbor-location";
21
- import { datesIntersects as ma } from "../utils/datesIntersects.mjs";
20
+ import ma from "@semcore/neighbor-location";
21
+ import { datesIntersects as ya } from "../utils/datesIntersects.mjs";
22
22
  import { includesDate as ve } from "../utils/includesDate.mjs";
23
- import ye from "dayjs";
24
- import Ne from "@semcore/utils/lib/use/useEnhancedEffect";
25
- import Oe from "@semcore/utils/lib/assignProps";
26
- var Sa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Pa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Ia = ["value", "onChange", "onDisplayedPeriodChange", "locale", "w", "ariaHasPopup", "showError"], Da = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "showError"], ba = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "inputId", "showError"], Ra = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "onMaskPipeBlock", "containerFocused", "animationsDisabled", "getI18nText", "inputId", "inputRole", "__excludeProps", "Root"], xe = (
23
+ import me from "dayjs";
24
+ import ze from "@semcore/utils/lib/use/useEnhancedEffect";
25
+ import Ne from "@semcore/utils/lib/assignProps";
26
+ var Sa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Pa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Ia = ["value", "onChange", "onDisplayedPeriodChange", "locale", "w", "ariaHasPopup", "showError"], Da = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "showError"], ja = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup", "inputId", "showError"], ba = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "onMaskPipeBlock", "containerFocused", "animationsDisabled", "getI18nText", "inputId", "inputRole", "__excludeProps", "Root"], Re = (
27
27
  /*__reshadow_css_start__*/
28
28
  (ca.insert(
29
29
  /*__inner_css_start__*/
30
- ".___SPopper_e0y8u_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_e0y8u_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_e0y8u_gg_:active,.___SPopper_e0y8u_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_e0y8u_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_e0y8u_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_e0y8u_gg_,.___STitle_e0y8u_gg_{display:flex;align-items:center}.___STitle_e0y8u_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_e0y8u_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_e0y8u_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_e0y8u_gg_ .___SInner_e0y8u_gg_{justify-content:flex-start}.___SInputMask_e0y8u_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_e0y8u_gg_.__animationsDisabled_e0y8u_gg_{transition:none}.___SInputMask_e0y8u_gg_ .___SValue_e0y8u_gg_{letter-spacing:0}.___SIndicator_e0y8u_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_e0y8u_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_e0y8u_gg_._range_value_e0y8u_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_e0y8u_gg_._range_compare_e0y8u_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_e0y8u_gg_.__disabled_e0y8u_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_e0y8u_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_e0y8u_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_e0y8u_gg_ .___SMask_e0y8u_gg_,.___SDateRange_e0y8u_gg_ .___SValue_e0y8u_gg_,.___SSingleDateInput_e0y8u_gg_ .___SMask_e0y8u_gg_,.___SSingleDateInput_e0y8u_gg_ .___SValue_e0y8u_gg_{opacity:0}.___SSingleDateInput_e0y8u_gg_:focus-within .___SHumanizedDate_e0y8u_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_e0y8u_gg_:focus-within .___SMask_e0y8u_gg_,.___SSingleDateInput_e0y8u_gg_:focus-within .___SValue_e0y8u_gg_{opacity:1}.___SDateRange_e0y8u_gg_:focus-within .___SHumanizedDate_e0y8u_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_e0y8u_gg_:focus-within .___SMask_e0y8u_gg_,.___SDateRange_e0y8u_gg_:focus-within .___SValue_e0y8u_gg_{opacity:1}.___SInputMask_e0y8u_gg_.__noHumanizedDate_e0y8u_gg_ .___SMask_e0y8u_gg_,.___SInputMask_e0y8u_gg_.__noHumanizedDate_e0y8u_gg_ .___SValue_e0y8u_gg_{opacity:1}.___SDateRange_e0y8u_gg_ .___SInputMask_e0y8u_gg_:focus-within .___SMask_e0y8u_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_e0y8u_gg_:focus-within .___SRangeSep_e0y8u_gg_,.___SRangeSep_e0y8u_gg_.__fulfilled_e0y8u_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_e0y8u_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_e0y8u_gg_,.___SRangeComparatorHeader_e0y8u_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_e0y8u_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_e0y8u_gg_,.___SPeriodsList_e0y8u_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_e0y8u_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_e0y8u_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_e0y8u_gg_{transition:none}}",
31
- "e0y8u_gg_"
30
+ ".___SPopper_182qj_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_182qj_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_182qj_gg_:active,.___SPopper_182qj_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_182qj_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_182qj_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_182qj_gg_,.___STitle_182qj_gg_{display:flex;align-items:center}.___STitle_182qj_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_182qj_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_182qj_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_182qj_gg_ .___SInner_182qj_gg_{justify-content:flex-start}.___SInputMask_182qj_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal;padding-right:var(--intergalactic-spacing-2x, 8px);transition:width calc(var(--intergalactic-duration-medium, 300)*1ms) ease,min-width calc(var(--intergalactic-duration-medium, 300)*1ms) ease}.___SInputMask_182qj_gg_.__animationsDisabled_182qj_gg_{transition:none}.___SInputMask_182qj_gg_ .___SValue_182qj_gg_{letter-spacing:0}.___SIndicator_182qj_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_182qj_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_182qj_gg_._range_value_182qj_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_182qj_gg_._range_compare_182qj_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_182qj_gg_.__disabled_182qj_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_182qj_gg_{position:absolute;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.___SMask_182qj_gg_{letter-spacing:0;white-space:nowrap;overflow:hidden}.___SDateRange_182qj_gg_ .___SMask_182qj_gg_,.___SDateRange_182qj_gg_ .___SValue_182qj_gg_,.___SSingleDateInput_182qj_gg_ .___SMask_182qj_gg_,.___SSingleDateInput_182qj_gg_ .___SValue_182qj_gg_{opacity:0}.___SSingleDateInput_182qj_gg_:focus-within .___SHumanizedDate_182qj_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_182qj_gg_:focus-within .___SMask_182qj_gg_,.___SSingleDateInput_182qj_gg_:focus-within .___SValue_182qj_gg_{opacity:1}.___SDateRange_182qj_gg_:focus-within .___SHumanizedDate_182qj_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_182qj_gg_:focus-within .___SMask_182qj_gg_,.___SDateRange_182qj_gg_:focus-within .___SValue_182qj_gg_{opacity:1}.___SInputMask_182qj_gg_.__noHumanizedDate_182qj_gg_ .___SMask_182qj_gg_,.___SInputMask_182qj_gg_.__noHumanizedDate_182qj_gg_ .___SValue_182qj_gg_{opacity:1}.___SDateRange_182qj_gg_ .___SInputMask_182qj_gg_:focus-within .___SMask_182qj_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_182qj_gg_:focus-within .___SRangeSep_182qj_gg_,.___SRangeSep_182qj_gg_.__fulfilled_182qj_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_182qj_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_182qj_gg_,.___SRangeComparatorHeader_182qj_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_182qj_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_182qj_gg_,.___SPeriodsList_182qj_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_182qj_gg_{padding:var(--intergalactic-spacing-3x, 12px)}.___SCompareToggle_182qj_gg_{white-space:nowrap}@media (prefers-reduced-motion){.___SInputMask_182qj_gg_{transition:none}}",
31
+ "182qj_gg_"
32
32
  ), {
33
- __SHeader: "___SHeader_e0y8u_gg_",
34
- __STitle: "___STitle_e0y8u_gg_",
35
- __SToday: "___SToday_e0y8u_gg_",
36
- __SPeriod: "___SPeriod_e0y8u_gg_",
37
- __SButton: "___SButton_e0y8u_gg_",
38
- __SInner: "___SInner_e0y8u_gg_",
39
- __SInputMask: "___SInputMask_e0y8u_gg_",
40
- _animationsDisabled: "__animationsDisabled_e0y8u_gg_",
41
- __SValue: "___SValue_e0y8u_gg_",
42
- __SIndicator: "___SIndicator_e0y8u_gg_",
43
- __SRangeIndicator: "___SRangeIndicator_e0y8u_gg_",
44
- _range_value: "_range_value_e0y8u_gg_",
45
- _range_compare: "_range_compare_e0y8u_gg_",
46
- _disabled: "__disabled_e0y8u_gg_",
47
- __SHumanizedDate: "___SHumanizedDate_e0y8u_gg_",
48
- __SMask: "___SMask_e0y8u_gg_",
49
- __SSingleDateInput: "___SSingleDateInput_e0y8u_gg_",
50
- __SDateRange: "___SDateRange_e0y8u_gg_",
51
- _noHumanizedDate: "__noHumanizedDate_e0y8u_gg_",
52
- __SRangeSep: "___SRangeSep_e0y8u_gg_",
53
- _fulfilled: "__fulfilled_e0y8u_gg_",
54
- __SRangeComparatorHeader: "___SRangeComparatorHeader_e0y8u_gg_",
55
- __SRangeCalendar: "___SRangeCalendar_e0y8u_gg_",
56
- __SFooter: "___SFooter_e0y8u_gg_",
57
- __SPeriodsList: "___SPeriodsList_e0y8u_gg_",
58
- __STooltip: "___STooltip_e0y8u_gg_",
59
- __SCompareToggle: "___SCompareToggle_e0y8u_gg_",
60
- __SPopper: "___SPopper_e0y8u_gg_"
33
+ __SHeader: "___SHeader_182qj_gg_",
34
+ __STitle: "___STitle_182qj_gg_",
35
+ __SToday: "___SToday_182qj_gg_",
36
+ __SPeriod: "___SPeriod_182qj_gg_",
37
+ __SButton: "___SButton_182qj_gg_",
38
+ __SInner: "___SInner_182qj_gg_",
39
+ __SInputMask: "___SInputMask_182qj_gg_",
40
+ _animationsDisabled: "__animationsDisabled_182qj_gg_",
41
+ __SValue: "___SValue_182qj_gg_",
42
+ __SIndicator: "___SIndicator_182qj_gg_",
43
+ __SRangeIndicator: "___SRangeIndicator_182qj_gg_",
44
+ _range_value: "_range_value_182qj_gg_",
45
+ _range_compare: "_range_compare_182qj_gg_",
46
+ _disabled: "__disabled_182qj_gg_",
47
+ __SHumanizedDate: "___SHumanizedDate_182qj_gg_",
48
+ __SMask: "___SMask_182qj_gg_",
49
+ __SSingleDateInput: "___SSingleDateInput_182qj_gg_",
50
+ __SDateRange: "___SDateRange_182qj_gg_",
51
+ _noHumanizedDate: "__noHumanizedDate_182qj_gg_",
52
+ __SRangeSep: "___SRangeSep_182qj_gg_",
53
+ _fulfilled: "__fulfilled_182qj_gg_",
54
+ __SRangeComparatorHeader: "___SRangeComparatorHeader_182qj_gg_",
55
+ __SRangeCalendar: "___SRangeCalendar_182qj_gg_",
56
+ __SFooter: "___SFooter_182qj_gg_",
57
+ __SPeriodsList: "___SPeriodsList_182qj_gg_",
58
+ __STooltip: "___STooltip_182qj_gg_",
59
+ __SCompareToggle: "___SCompareToggle_182qj_gg_",
60
+ __SPopper: "___SPopper_182qj_gg_"
61
61
  })
62
- ), xa = {
62
+ ), Ra = {
63
63
  year: !0,
64
64
  month: !0,
65
65
  day: !0
66
- }, wa = new Date(2e3, 4, 29), oe = /* @__PURE__ */ function(M) {
67
- Ie(g, M);
68
- var _ = De(g);
66
+ }, xa = new Date(2e3, 4, 29), oe = /* @__PURE__ */ function(T) {
67
+ Ie(g, T);
68
+ var u = De(g);
69
69
  function g() {
70
- return Se(this, g), _.apply(this, arguments);
70
+ return Se(this, g), u.apply(this, arguments);
71
71
  }
72
72
  return Pe(g, [{
73
73
  key: "getSingleDateInputProps",
@@ -78,8 +78,8 @@ var Sa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Pa
78
78
  a.role;
79
79
  var o = a["aria-haspopup"];
80
80
  a["aria-label"], a.style;
81
- var r = Y(a, Sa);
82
- return $($({}, r), {}, {
81
+ var r = W(a, Sa);
82
+ return E(E({}, r), {}, {
83
83
  ariaHasPopup: o,
84
84
  inputId: s
85
85
  });
@@ -93,8 +93,8 @@ var Sa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Pa
93
93
  a.role;
94
94
  var o = a["aria-haspopup"];
95
95
  a["aria-label"], a.style;
96
- var r = Y(a, Pa);
97
- return $($({}, r), {}, {
96
+ var r = W(a, Pa);
97
+ return E(E({}, r), {}, {
98
98
  ariaHasPopup: o,
99
99
  inputId: s
100
100
  });
@@ -103,40 +103,40 @@ var Sa = ["children", "id", "role", "aria-haspopup", "aria-label", "style"], Pa
103
103
  key: "render",
104
104
  value: function() {
105
105
  var a = this.asProps, s, o = ha, r = this.asProps, d = r.Children, n = r.style, f = r.getI18nText;
106
- return s = z(n), /* @__PURE__ */ i.createElement(o, s.cn("SInputTrigger", $({}, O({
106
+ return s = A(n), /* @__PURE__ */ i.createElement(o, s.cn("SInputTrigger", E({}, N({
107
107
  "aria-label": f("input"),
108
108
  __excludeProps: ["onChange", "value", "role", "id"]
109
109
  }, a))), /* @__PURE__ */ i.createElement(d, s.cn("Children", {})));
110
110
  }
111
111
  }]), g;
112
- }(Re);
112
+ }(be);
113
113
  p(oe, "displayName", "InputTrigger");
114
- p(oe, "style", xe);
114
+ p(oe, "style", Re);
115
115
  p(oe, "defaultProps", {
116
116
  duration: 300,
117
117
  popoverVisible: !0
118
118
  });
119
- var ie = /* @__PURE__ */ function(M) {
120
- Ie(g, M);
121
- var _ = De(g);
119
+ var ie = /* @__PURE__ */ function(T) {
120
+ Ie(g, T);
121
+ var u = De(g);
122
122
  function g() {
123
123
  var e;
124
124
  Se(this, g);
125
125
  for (var a = arguments.length, s = new Array(a), o = 0; o < a; o++)
126
126
  s[o] = arguments[o];
127
- return e = _.call.apply(_, [this].concat(s)), p(k(e), "state", {
127
+ return e = u.call.apply(u, [this].concat(s)), p(q(e), "state", {
128
128
  errorText: null,
129
129
  showError: !1,
130
130
  focused: !1
131
- }), p(k(e), "handleFocus", function() {
131
+ }), p(q(e), "handleFocus", function() {
132
132
  e.setState({
133
133
  focused: !0
134
134
  });
135
- }), p(k(e), "handleBlur", function() {
135
+ }), p(q(e), "handleBlur", function() {
136
136
  e.setState({
137
137
  focused: !1
138
138
  });
139
- }), p(k(e), "handleInputMaskPipeBlock", function(r) {
139
+ }), p(q(e), "handleInputMaskPipeBlock", function(r) {
140
140
  r !== e.asProps.disabledDateInputAttempt && e.handlers.disabledDateInputAttempt(r);
141
141
  }), e;
142
142
  }
@@ -166,8 +166,8 @@ var ie = /* @__PURE__ */ function(M) {
166
166
  value: function() {
167
167
  var a = this.asProps, s = a.value, o = a.onChange, r = a.onDisplayedPeriodChange, d = a.locale;
168
168
  a.w, a.ariaHasPopup, a.showError;
169
- var n = Y(a, Ia);
170
- return $({
169
+ var n = W(a, Ia);
170
+ return E({
171
171
  date: s,
172
172
  onDateChange: o,
173
173
  onDisplayedPeriodChange: r,
@@ -179,62 +179,62 @@ var ie = /* @__PURE__ */ function(M) {
179
179
  }, {
180
180
  key: "render",
181
181
  value: function() {
182
- var a = this.asProps, s, o = this.asProps, r = o.Children, d = o.forwardRef, n = o.styles, f = o.state, b = o.showError, R = o.popoverVisible, E = this.state, F = E.errorText, P = E.showError, j = E.focused, K = P && b, V = Q;
183
- return s = z(n), /* @__PURE__ */ i.createElement(V, s.cn("SSingleDateInput", $({}, O({
184
- tag: Ke,
182
+ var a = this.asProps, s, o = this.asProps, r = o.Children, d = o.forwardRef, n = o.styles, f = o.state, j = o.showError, b = o.popoverVisible, C = this.state, M = C.errorText, P = C.showError, V = C.focused, O = P && j, B = Q;
183
+ return s = A(n), /* @__PURE__ */ i.createElement(B, s.cn("SSingleDateInput", E({}, N({
184
+ tag: Oe,
185
185
  placement: "top-start",
186
- title: F,
186
+ title: M,
187
187
  theme: "warning",
188
- visible: K && (R || j),
189
- state: K ? "invalid" : f,
188
+ visible: O && (b || V),
189
+ state: O ? "invalid" : f,
190
190
  ref: d,
191
191
  onFocus: this.handleFocus,
192
192
  onBlur: this.handleBlur,
193
193
  __excludeProps: ["onChange", "style", "aria-expanded"]
194
- }, a))), /* @__PURE__ */ i.createElement(ya, s.cn("NeighborLocation", {}), /* @__PURE__ */ i.createElement(r, s.cn("Children", {}))));
194
+ }, a))), /* @__PURE__ */ i.createElement(ma, s.cn("NeighborLocation", {}), /* @__PURE__ */ i.createElement(r, s.cn("Children", {}))));
195
195
  }
196
196
  }]), g;
197
- }(Re);
197
+ }(be);
198
198
  p(ie, "displayName", "SingleDateInput");
199
- p(ie, "style", xe);
199
+ p(ie, "style", Re);
200
200
  p(ie, "defaultProps", {
201
201
  children: function() {
202
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(me.Indicator, null), /* @__PURE__ */ i.createElement(me.MaskedInput, null));
202
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(ye.Indicator, null), /* @__PURE__ */ i.createElement(ye.MaskedInput, null));
203
203
  },
204
204
  defaultDisabledDateInputAttempt: !1,
205
205
  showError: !0
206
206
  });
207
- var se = /* @__PURE__ */ function(M) {
208
- Ie(g, M);
209
- var _ = De(g);
207
+ var se = /* @__PURE__ */ function(T) {
208
+ Ie(g, T);
209
+ var u = De(g);
210
210
  function g() {
211
211
  var e;
212
212
  Se(this, g);
213
213
  for (var a = arguments.length, s = new Array(a), o = 0; o < a; o++)
214
214
  s[o] = arguments[o];
215
- return e = _.call.apply(_, [this].concat(s)), p(k(e), "state", {
215
+ return e = u.call.apply(u, [this].concat(s)), p(q(e), "state", {
216
216
  containerFocused: !1,
217
217
  errorText: null,
218
218
  showError: !1,
219
219
  lastChangedInput: "from"
220
- }), p(k(e), "fromRef", /* @__PURE__ */ i.createRef()), p(k(e), "toRef", /* @__PURE__ */ i.createRef()), p(k(e), "handleFromChange", function(r, d) {
221
- var n, f, b, R, E = e.asProps.onChange, F = [(n = (f = e.asProps.value) === null || f === void 0 ? void 0 : f[0]) !== null && n !== void 0 ? n : null, (b = (R = e.asProps.value) === null || R === void 0 ? void 0 : R[1]) !== null && b !== void 0 ? b : null];
222
- if (E([r, F[1]], d), r) {
220
+ }), p(q(e), "fromRef", /* @__PURE__ */ i.createRef()), p(q(e), "toRef", /* @__PURE__ */ i.createRef()), p(q(e), "handleFromChange", function(r, d) {
221
+ var n, f, j, b, C = e.asProps.onChange, M = [(n = (f = e.asProps.value) === null || f === void 0 ? void 0 : f[0]) !== null && n !== void 0 ? n : null, (j = (b = e.asProps.value) === null || b === void 0 ? void 0 : b[1]) !== null && j !== void 0 ? j : null];
222
+ if (C([r, M[1]], d), r) {
223
223
  if (!e.toRef.current) return;
224
224
  e.toRef.current.focus(), setTimeout(function() {
225
225
  e.toRef.current && e.toRef.current.setSelectionRange(0, 0);
226
226
  }, 0);
227
227
  }
228
- }), p(k(e), "handleToChange", function(r, d) {
229
- var n, f, b, R, E = e.asProps.onChange, F = [(n = (f = e.asProps.value) === null || f === void 0 ? void 0 : f[0]) !== null && n !== void 0 ? n : null, (b = (R = e.asProps.value) === null || R === void 0 ? void 0 : R[1]) !== null && b !== void 0 ? b : null];
230
- E([F[0], r], d);
231
- }), p(k(e), "handleFromKeydown", function(r) {
228
+ }), p(q(e), "handleToChange", function(r, d) {
229
+ var n, f, j, b, C = e.asProps.onChange, M = [(n = (f = e.asProps.value) === null || f === void 0 ? void 0 : f[0]) !== null && n !== void 0 ? n : null, (j = (b = e.asProps.value) === null || b === void 0 ? void 0 : b[1]) !== null && j !== void 0 ? j : null];
230
+ C([M[0], r], d);
231
+ }), p(q(e), "handleFromKeydown", function(r) {
232
232
  e.toRef.current && e.fromRef.current && (e.setState({
233
233
  lastChangedInput: "from"
234
234
  }), r.key === "ArrowRight" && e.fromRef.current.selectionStart === e.fromRef.current.value.length && e.fromRef.current.selectionEnd === e.fromRef.current.value.length && (e.toRef.current.focus(), setTimeout(function() {
235
235
  e.toRef.current.setSelectionRange(0, 0);
236
236
  }, 0)));
237
- }), p(k(e), "handleToKeydown", function(r) {
237
+ }), p(q(e), "handleToKeydown", function(r) {
238
238
  if (e.toRef.current && e.fromRef.current) {
239
239
  if (e.setState({
240
240
  lastChangedInput: "to"
@@ -251,19 +251,19 @@ var se = /* @__PURE__ */ function(M) {
251
251
  }, 0);
252
252
  }
253
253
  }
254
- }), p(k(e), "handleInputMaskPipeBlock", function(r) {
254
+ }), p(q(e), "handleInputMaskPipeBlock", function(r) {
255
255
  r !== e.asProps.disabledDateInputAttempt && e.handlers.disabledDateInputAttempt(r);
256
- }), p(k(e), "handleFocus", function() {
256
+ }), p(q(e), "handleFocus", function() {
257
257
  e.setState({
258
258
  containerFocused: !0
259
259
  });
260
- }), p(k(e), "handleBlur", function() {
260
+ }), p(q(e), "handleBlur", function() {
261
261
  e.setState({
262
262
  containerFocused: !1
263
263
  });
264
- }), p(k(e), "updateDisabledDateInputAttempt", function(r) {
264
+ }), p(q(e), "updateDisabledDateInputAttempt", function(r) {
265
265
  var d = e.asProps.disabledDates, n = !1;
266
- if (r && (r[0] && r[1] ? n = d.some(ma([r[0], r[1]], e.asProps.unit)) : r[0] ? n = d.some(ve(ye(r[0]), e.asProps.unit)) : r[1] && (n = d.some(ve(ye(r[1]), e.asProps.unit)))), n) {
266
+ if (r && (r[0] && r[1] ? n = d.some(ya([r[0], r[1]], e.asProps.unit)) : r[0] ? n = d.some(ve(me(r[0]), e.asProps.unit)) : r[1] && (n = d.some(ve(me(r[1]), e.asProps.unit)))), n) {
267
267
  var f = e.state.lastChangedInput === "to" ? r[1] : r[0];
268
268
  setTimeout(function() {
269
269
  r !== e.asProps.disabledDateInputAttempt && e.handlers.disabledDateInputAttempt(f);
@@ -297,8 +297,8 @@ var se = /* @__PURE__ */ function(M) {
297
297
  value: function() {
298
298
  var a = this.asProps, s = a.value, o = a.locale, r = a.onDisplayedPeriodChange, d = a.ariaHasPopup;
299
299
  a.showError;
300
- var n = Y(a, Da);
301
- return Oe({
300
+ var n = W(a, Da);
301
+ return Ne({
302
302
  ref: this.fromRef,
303
303
  date: s == null ? void 0 : s[0],
304
304
  onDateChange: this.handleFromChange,
@@ -316,10 +316,10 @@ var se = /* @__PURE__ */ function(M) {
316
316
  value: function() {
317
317
  var a = this.asProps, s = a.value, o = a.locale, r = a.onDisplayedPeriodChange, d = a.ariaHasPopup;
318
318
  a.inputId, a.showError;
319
- var n = Y(a, ba), f = this.asProps.getI18nText("toDate", {
319
+ var n = W(a, ja), f = this.asProps.getI18nText("toDate", {
320
320
  date: this.asProps.getI18nText("input")
321
321
  });
322
- return Oe({
322
+ return Ne({
323
323
  ref: this.toRef,
324
324
  date: s == null ? void 0 : s[1],
325
325
  onDateChange: this.handleToChange,
@@ -354,15 +354,15 @@ var se = /* @__PURE__ */ function(M) {
354
354
  }, {
355
355
  key: "render",
356
356
  value: function() {
357
- var a = this.asProps, s, o = Q, r = this.asProps, d = r.Children, n = r.styles, f = r.w, b = r.state, R = r.showError, E = r.popoverVisible, F = this.state, P = F.errorText, j = F.lastChangedInput, K = F.showError, V = F.containerFocused, X = K && R;
358
- return s = z(n), /* @__PURE__ */ i.createElement(o, s.cn("SDateRange", $({}, O({
359
- tag: Ke,
357
+ var a = this.asProps, s, o = Q, r = this.asProps, d = r.Children, n = r.styles, f = r.w, j = r.state, b = r.showError, C = r.popoverVisible, M = this.state, P = M.errorText, V = M.lastChangedInput, O = M.showError, B = M.containerFocused, X = O && b;
358
+ return s = A(n), /* @__PURE__ */ i.createElement(o, s.cn("SDateRange", E({}, N({
359
+ tag: Oe,
360
360
  ignorePortalsStacking: !0,
361
- placement: j === "to" ? "top-end" : "top-start",
361
+ placement: V === "to" ? "top-end" : "top-start",
362
362
  title: P,
363
363
  theme: "warning",
364
- visible: X && (E || V),
365
- state: X ? "invalid" : b,
364
+ visible: X && (C || B),
365
+ state: X ? "invalid" : j,
366
366
  __excludeProps: ["onChange", "value", "aria-expanded"],
367
367
  w: f,
368
368
  onFocus: this.handleFocus,
@@ -370,9 +370,9 @@ var se = /* @__PURE__ */ function(M) {
370
370
  }, a))), /* @__PURE__ */ i.createElement(d, s.cn("Children", {})));
371
371
  }
372
372
  }]), g;
373
- }(Re);
373
+ }(be);
374
374
  p(se, "displayName", "DateRange");
375
- p(se, "style", xe);
375
+ p(se, "style", Re);
376
376
  p(se, "defaultProps", {
377
377
  children: function() {
378
378
  return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(J.Indicator, null), /* @__PURE__ */ i.createElement(J.FromMaskedInput, null), /* @__PURE__ */ i.createElement(J.RangeSep, null), /* @__PURE__ */ i.createElement(J.ToMaskedInput, null));
@@ -380,59 +380,59 @@ p(se, "defaultProps", {
380
380
  defaultDisabledDateInputAttempt: !1,
381
381
  showError: !0
382
382
  });
383
- var ka = function(_) {
384
- var g = arguments[0], e, a = we, s = _.getI18nText;
385
- return e = z(_.styles), /* @__PURE__ */ i.createElement(a, e.cn("SFromMaskedInput", $({}, O({
383
+ var qa = function(u) {
384
+ var g = arguments[0], e, a = xe, s = u.getI18nText;
385
+ return e = A(u.styles), /* @__PURE__ */ i.createElement(a, e.cn("SFromMaskedInput", E({}, N({
386
386
  labelPrefix: s("fromDatePlaceholder")
387
387
  }, g))));
388
- }, Ta = function(_) {
389
- var g = arguments[0], e, a = we, s = _.getI18nText;
390
- return e = z(_.styles), /* @__PURE__ */ i.createElement(a, e.cn("SToMaskedInput", $({}, O({
388
+ }, wa = function(u) {
389
+ var g = arguments[0], e, a = xe, s = u.getI18nText;
390
+ return e = A(u.styles), /* @__PURE__ */ i.createElement(a, e.cn("SToMaskedInput", E({}, N({
391
391
  labelPrefix: s("toDatePlaceholder")
392
392
  }, g))));
393
- }, Le = function(_) {
393
+ }, Ke = function(u) {
394
394
  var g = arguments[0], e, a = Q.Addon;
395
- return e = z(_.styles), /* @__PURE__ */ i.createElement(a, e.cn("SIndicator", $({}, O({
395
+ return e = A(u.styles), /* @__PURE__ */ i.createElement(a, e.cn("SIndicator", E({}, N({
396
396
  tag: va,
397
397
  "aria-hidden": "true",
398
398
  tabIndex: -1
399
399
  }, g))));
400
- }, Ca = function(_) {
400
+ }, ka = function(u) {
401
401
  var g = arguments[0], e, a = Q.Addon;
402
- return e = z(_.styles), /* @__PURE__ */ i.createElement(a, e.cn("SRangeSep", $({}, O({
402
+ return e = A(u.styles), /* @__PURE__ */ i.createElement(a, e.cn("SRangeSep", E({}, N({
403
403
  tag: fa,
404
404
  alignItems: "center",
405
405
  justifyContent: "center",
406
406
  pl: 0,
407
407
  flex: "0"
408
408
  }, g))), "–");
409
- }, we = function(_) {
410
- var g, e = _.date, a = _.onDateChange, s = _.onDisplayedPeriodChange, o = _.locale, r = _.styles, d = _.parts, n = d === void 0 ? xa : d, f = _.disabledDates, b = _.forwardRef, R = _.placeholders, E = _.labelPrefix, F = E === void 0 ? "Date" : E, P = _.onMaskPipeBlock, j = _.containerFocused, K = _.animationsDisabled, V = _.getI18nText, X = _.inputId, ke = _.inputRole, We = ke === void 0 ? "combobox" : ke;
411
- _.__excludeProps, _.Root;
412
- var U = Y(_, Ra), le = i.useRef(), Ye = i.useState(void 0), Te = ne(Ye, 2), ue = Te[0], Ue = Te[1], u = i.useMemo(function() {
413
- return R || {
414
- year: V("placeholder-years"),
415
- month: V("placeholder-months"),
416
- day: V("placeholder-days")
409
+ }, xe = function(u) {
410
+ var g, e = u.date, a = u.onDateChange, s = u.onDisplayedPeriodChange, o = u.locale, r = u.styles, d = u.parts, n = d === void 0 ? Ra : d, f = u.disabledDates, j = u.forwardRef, b = u.placeholders, C = u.labelPrefix, M = C === void 0 ? "Date" : C, P = u.onMaskPipeBlock, V = u.containerFocused, O = u.animationsDisabled, B = u.getI18nText, X = u.inputId, qe = u.inputRole, Le = qe === void 0 ? "combobox" : qe;
411
+ u.__excludeProps, u.Root;
412
+ var Y = W(u, ba), le = i.useRef(), We = i.useState(void 0), we = ne(We, 2), _e = we[0], Ye = we[1], _ = i.useMemo(function() {
413
+ return b || {
414
+ year: B("placeholder-years"),
415
+ month: B("placeholder-months"),
416
+ day: B("placeholder-days")
417
417
  };
418
- }, [R, V]);
419
- if (u.year.length !== 1 || u.month.length !== 1 || u.day.length !== 1)
418
+ }, [b, B]);
419
+ if (_.year.length !== 1 || _.month.length !== 1 || _.day.length !== 1)
420
420
  throw console.error({
421
- placeholders: u
422
- }), new Error("InputTrigger placeholder prop should contain fields year, month and day each one with string value of single character length. [see above what was received] (".concat(u, ")"), u);
423
- var Ce = i.useMemo(function() {
421
+ placeholders: _
422
+ }), new Error("InputTrigger placeholder prop should contain fields year, month and day each one with string value of single character length. [see above what was received] (".concat(_, ")"), _);
423
+ var ke = i.useMemo(function() {
424
424
  var t, l = {
425
425
  year: "numeric",
426
426
  month: "numeric",
427
427
  day: "numeric"
428
- }, c = new Intl.DateTimeFormat(o, l), S = void 0, h = [], v = c.formatToParts(wa), I = G(v), x;
428
+ }, c = new Intl.DateTimeFormat(o, l), S = void 0, h = [], v = c.formatToParts(xa), I = G(v), R;
429
429
  try {
430
- for (I.s(); !(x = I.n()).done; ) {
431
- var D = x.value;
430
+ for (I.s(); !(R = I.n()).done; ) {
431
+ var D = R.value;
432
432
  !S && D.type === "literal" && (S = D.value), h.length < 3 && ["day", "month", "year"].includes(D.type) && n[D.type] && h.push(D.type);
433
433
  }
434
- } catch (w) {
435
- I.e(w);
434
+ } catch (x) {
435
+ I.e(x);
436
436
  } finally {
437
437
  I.f();
438
438
  }
@@ -440,7 +440,7 @@ var ka = function(_) {
440
440
  sep: S,
441
441
  order: h
442
442
  };
443
- }, [o, n]), H = Ce.sep, C = Ce.order, T = i.useMemo(function() {
443
+ }, [o, n]), F = ke.sep, k = ke.order, w = i.useMemo(function() {
444
444
  var t = e;
445
445
  (typeof e == "number" || typeof e == "string") && (t = new Date(e));
446
446
  var l = t && t instanceof Date && !Number.isNaN(t.getTime());
@@ -449,9 +449,9 @@ var ka = function(_) {
449
449
  month: (t.getMonth() + 1).toString().padStart(2, "0"),
450
450
  day: t.getDate().toString().padStart(2, "0")
451
451
  } : null;
452
- }, [e]), Me = i.useCallback(function(t) {
452
+ }, [e]), Te = i.useCallback(function(t) {
453
453
  if (!t || !t.year && !t.month && !t.day) return null;
454
- var l = [], c = G(C), S;
454
+ var l = [], c = G(k), S;
455
455
  try {
456
456
  for (c.s(); !(S = c.n()).done; ) {
457
457
  var h = S.value;
@@ -462,117 +462,117 @@ var ka = function(_) {
462
462
  } finally {
463
463
  c.f();
464
464
  }
465
- return l.join(H);
466
- }, [C, n]), qe = i.useState(T), Ee = ne(qe, 2), Fe = Ee[0], Z = Ee[1], _e = i.useMemo(function() {
467
- return Me(Fe);
468
- }, [Me, Fe]), N = i.useRef(T);
465
+ return l.join(F);
466
+ }, [k, n]), Ue = i.useState(w), Ce = ne(Ue, 2), Me = Ce[0], Z = Ce[1], ue = i.useMemo(function() {
467
+ return Te(Me);
468
+ }, [Te, Me]), z = i.useRef(w);
469
469
  i.useEffect(function() {
470
470
  var t, l, c;
471
- (((t = N.current) === null || t === void 0 ? void 0 : t.day) !== (T == null ? void 0 : T.day) || ((l = N.current) === null || l === void 0 ? void 0 : l.month) !== (T == null ? void 0 : T.month) || ((c = N.current) === null || c === void 0 ? void 0 : c.year) !== (T == null ? void 0 : T.year)) && Z(T), N.current = T;
472
- }, [T, Z]);
471
+ (((t = z.current) === null || t === void 0 ? void 0 : t.day) !== (w == null ? void 0 : w.day) || ((l = z.current) === null || l === void 0 ? void 0 : l.month) !== (w == null ? void 0 : w.month) || ((c = z.current) === null || c === void 0 ? void 0 : c.year) !== (w == null ? void 0 : w.year)) && Z(w), z.current = w;
472
+ }, [w, Z]);
473
473
  var Ge = i.useCallback(function(t) {
474
474
  for (var l = !0, c = 0; c < t.length; c++)
475
- if (t[c] !== "_" && t[c] !== H) {
475
+ if (t[c] !== "_" && t[c] !== F) {
476
476
  l = !1;
477
477
  break;
478
478
  }
479
479
  if (l)
480
480
  return P == null || P(null), "";
481
- var S = function(_a) {
482
- var ze = C.slice(0, C.indexOf(_a)), q = 0, re = G(ze), je;
481
+ var S = function(ua) {
482
+ var Ae = k.slice(0, k.indexOf(ua)), U = 0, re = G(Ae), Ve;
483
483
  try {
484
- for (re.s(); !(je = re.n()).done; ) {
485
- var he = je.value;
486
- he === "year" && n.year && (q += 4), he === "month" && n.month && (q += 2), he === "day" && n.day && (q += 2);
484
+ for (re.s(); !(Ve = re.n()).done; ) {
485
+ var he = Ve.value;
486
+ he === "year" && n.year && (U += 4), he === "month" && n.month && (U += 2), he === "day" && n.day && (U += 2);
487
487
  }
488
488
  } catch (da) {
489
489
  re.e(da);
490
490
  } finally {
491
491
  re.f();
492
492
  }
493
- return q += ze.length * H.length, q;
494
- }, h = [], v = {}, I = t.split(H);
495
- for (var x in u)
496
- v[x] = u[x];
497
- for (var D = 0; D < C.length; D++)
498
- v[C[D]] = I[D];
499
- var w = v.year, m = v.month, y = v.day;
500
- if (n.month && (m[0] !== "_" && parseInt(m[0], 10) > 1 && (m = "0".concat(m[0]), h.push(S("month"))), m === "00" && (m = "01"), m[0] !== "_" && m[1] !== "_" && parseInt(m, 10) > 12) || n.day && (y[0] !== "_" && parseInt(y[0], 10) > 3 && (y = "0".concat(y[0]), h.push(S("day"))), y === "00" && (y = "01"), y[0] !== "_" && y[1] !== "_" && parseInt(y, 10) > 31))
493
+ return U += Ae.length * F.length, U;
494
+ }, h = [], v = {}, I = t.split(F);
495
+ for (var R in _)
496
+ v[R] = _[R];
497
+ for (var D = 0; D < k.length; D++)
498
+ v[k[D]] = I[D];
499
+ var x = v.year, y = v.month, m = v.day;
500
+ if (n.month && (y[0] !== "_" && parseInt(y[0], 10) > 1 && (y = "0".concat(y[0]), h.push(S("month"))), y === "00" && (y = "01"), y[0] !== "_" && y[1] !== "_" && parseInt(y, 10) > 12) || n.day && (m[0] !== "_" && parseInt(m[0], 10) > 3 && (m = "0".concat(m[0]), h.push(S("day"))), m === "00" && (m = "01"), m[0] !== "_" && m[1] !== "_" && parseInt(m, 10) > 31))
501
501
  return !1;
502
- w = w.split("").map(function(B) {
503
- return B === "_" ? u.year : B;
504
- }).join(""), m = m.split("").map(function(B) {
505
- return B === "_" ? u.month : B;
506
- }).join(""), y = y.split("").map(function(B) {
507
- return B === "_" ? u.day : B;
502
+ x = x.split("").map(function($) {
503
+ return $ === "_" ? _.year : $;
504
+ }).join(""), y = y.split("").map(function($) {
505
+ return $ === "_" ? _.month : $;
506
+ }).join(""), m = m.split("").map(function($) {
507
+ return $ === "_" ? _.day : $;
508
508
  }).join("");
509
- var ee = !n.year || w && w.length >= 4 && !w.includes(u.year), pe = !n.month || m && m.length === 2 && !m.includes(u.month), ce = !n.day || y && y.length === 2 && !y.includes(u.day), ge = ee && pe && ce;
509
+ var ee = !n.year || x && x.length >= 4 && !x.includes(_.year), pe = !n.month || y && y.length === 2 && !y.includes(_.month), ce = !n.day || m && m.length === 2 && !m.includes(_.day), ge = ee && pe && ce;
510
510
  if (ge) {
511
- var A = new Date(0, 0, 0, 0, 0, 0, 0), sa = n.year ? parseInt(w, 10) : 0, la = n.month ? parseInt(m, 10) - 1 : 0, ua = n.day ? parseInt(y, 10) : 1;
512
- if (A.setFullYear(sa, la, ua), f != null && f.some(ve(ye(A), "date")) || n.day && A.getDate() !== parseInt(y, 10))
513
- return P == null || P(A), !1;
511
+ var H = new Date(0, 0, 0, 0, 0, 0, 0), sa = n.year ? parseInt(x, 10) : 0, la = n.month ? parseInt(y, 10) - 1 : 0, _a = n.day ? parseInt(m, 10) : 1;
512
+ if (H.setFullYear(sa, la, _a), f != null && f.some(ve(me(H), "date")) || n.day && H.getDate() !== parseInt(m, 10))
513
+ return P == null || P(H), !1;
514
514
  }
515
- var ae = [], te = G(C), Ve;
515
+ var ae = [], te = G(k), Be;
516
516
  try {
517
- for (te.s(); !(Ve = te.n()).done; ) {
518
- var fe = Ve.value;
519
- fe === "year" && ae.push(w), fe === "month" && ae.push(m), fe === "day" && ae.push(y);
517
+ for (te.s(); !(Be = te.n()).done; ) {
518
+ var fe = Be.value;
519
+ fe === "year" && ae.push(x), fe === "month" && ae.push(y), fe === "day" && ae.push(m);
520
520
  }
521
- } catch (B) {
522
- te.e(B);
521
+ } catch ($) {
522
+ te.e($);
523
523
  } finally {
524
524
  te.f();
525
525
  }
526
526
  return P == null || P(null), {
527
- value: ae.join(H),
527
+ value: ae.join(F),
528
528
  indexesOfPipedChars: h
529
529
  };
530
- }, [u, H, C, n, f, P]), Je = i.useCallback(function(t) {
530
+ }, [_, F, k, n, f, P]), Je = i.useCallback(function(t) {
531
531
  var l = {};
532
- for (var c in u)
533
- l[c] = u[c];
534
- for (var S = t.split(H), h = 0; h < C.length; h++)
535
- l[C[h]] = S[h];
536
- var v = l.year, I = l.month, x = l.day;
532
+ for (var c in _)
533
+ l[c] = _[c];
534
+ for (var S = t.split(F), h = 0; h < k.length; h++)
535
+ l[k[h]] = S[h];
536
+ var v = l.year, I = l.month, R = l.day;
537
537
  Z({
538
538
  year: v,
539
539
  month: I,
540
- day: x
540
+ day: R
541
541
  });
542
- var D = !n.year || v && v.length >= 4 && !v.includes(u.year), w = !n.month || I && I.length === 2 && !I.includes(u.month), m = !n.day || x && x.length === 2 && !x.includes(u.day), y = D && w && m;
543
- if (y) {
544
- var ee = new Date(0, 0, 0, 0, 0, 0, 0), pe = n.year ? parseInt(v, 10) : 0, ce = n.month ? parseInt(I, 10) - 1 : 0, ge = n.day ? parseInt(x, 10) : 1;
545
- ee.setFullYear(pe, ce, ge), a(ee), N.current = {
542
+ var D = !n.year || v && v.length >= 4 && !v.includes(_.year), x = !n.month || I && I.length === 2 && !I.includes(_.month), y = !n.day || R && R.length === 2 && !R.includes(_.day), m = D && x && y;
543
+ if (m) {
544
+ var ee = new Date(0, 0, 0, 0, 0, 0, 0), pe = n.year ? parseInt(v, 10) : 0, ce = n.month ? parseInt(I, 10) - 1 : 0, ge = n.day ? parseInt(R, 10) : 1;
545
+ ee.setFullYear(pe, ce, ge), a(ee), z.current = {
546
546
  year: v,
547
547
  month: I,
548
- day: x
548
+ day: R
549
549
  };
550
550
  return;
551
551
  }
552
- if (N.current !== null && (a(null), N.current = null), D && n.year) {
553
- var A = new Date(0, 0, 0, 0, 0, 0, 0);
554
- A.setFullYear(parseInt(v, 10)), w && n.month && A.setMonth(parseInt(I, 10) - 1), s(A);
552
+ if (z.current !== null && (a(null), z.current = null), D && n.year) {
553
+ var H = new Date(0, 0, 0, 0, 0, 0, 0);
554
+ H.setFullYear(parseInt(v, 10)), x && n.month && H.setMonth(parseInt(I, 10) - 1), s(H);
555
555
  }
556
- }, [a, Z, u, s, C, n]), L = i.useMemo(function() {
557
- var t = [], l = G(C), c;
556
+ }, [a, Z, _, s, k, n]), K = i.useMemo(function() {
557
+ var t = [], l = G(k), c;
558
558
  try {
559
559
  for (l.s(); !(c = l.n()).done; ) {
560
560
  var S = c.value;
561
- S === "year" && t.push(u.year + u.year + u.year + u.year), S === "month" && t.push(u.month + u.month), S === "day" && t.push(u.day + u.day);
561
+ S === "year" && t.push(_.year + _.year + _.year + _.year), S === "month" && t.push(_.month + _.month), S === "day" && t.push(_.day + _.day);
562
562
  }
563
563
  } catch (h) {
564
564
  l.e(h);
565
565
  } finally {
566
566
  l.f();
567
567
  }
568
- return t.join(H);
569
- }, [H, C, u]), Qe = i.useMemo(function() {
568
+ return t.join(F);
569
+ }, [F, k, _]), Qe = i.useMemo(function() {
570
570
  var t;
571
- return t = {}, p(t, u.year, /\d/), p(t, u.month, /\d/), p(t, u.day, /\d/), t;
572
- }, [u]), Xe = i.useMemo(function() {
571
+ return t = {}, p(t, _.year, /\d/), p(t, _.month, /\d/), p(t, _.day, /\d/), t;
572
+ }, [_]), Xe = i.useMemo(function() {
573
573
  var t;
574
- return t = {}, p(t, u.year, !0), p(t, u.month, !0), p(t, u.day, !0), p(t, H, !0), t;
575
- }, [H, u]), W = i.useMemo(function() {
574
+ return t = {}, p(t, _.year, !0), p(t, _.month, !0), p(t, _.day, !0), p(t, F, !0), t;
575
+ }, [F, _]), L = i.useMemo(function() {
576
576
  var t = e;
577
577
  (typeof e == "number" || typeof e == "string") && (t = new Date(e));
578
578
  var l = t && t instanceof Date && !Number.isNaN(t.getTime());
@@ -582,67 +582,67 @@ var ka = function(_) {
582
582
  day: n.day ? "numeric" : void 0
583
583
  }).format(t) : null;
584
584
  }, [e, o, n]);
585
- Ne(function() {
585
+ ze(function() {
586
586
  if (le.current) {
587
- for (var t = W ? [W, L] : [L], l = [], c = document.createElement("span"), S = window.getComputedStyle(le.current), h = ["height", "font-size", "font-family", "font-weight", "font-style", "line-height", "letter-spacing", "text-transform", "word-spacing"], v = 0, I = h; v < I.length; v++) {
588
- var x = I[v];
589
- c.style[x] = S[x];
587
+ for (var t = L ? [L, K] : [K], l = [], c = document.createElement("span"), S = window.getComputedStyle(le.current), h = ["height", "font-size", "font-family", "font-weight", "font-style", "line-height", "letter-spacing", "text-transform", "word-spacing"], v = 0, I = h; v < I.length; v++) {
588
+ var R = I[v];
589
+ c.style[R] = S[R];
590
590
  }
591
591
  c.style.position = "absolute", c.style.visibility = "hidden", document.body.appendChild(c);
592
- for (var D = 0, w = t; D < w.length; D++) {
593
- var m = w[D];
594
- c.innerHTML = m, l.push(c.offsetWidth);
592
+ for (var D = 0, x = t; D < x.length; D++) {
593
+ var y = x[D];
594
+ c.innerHTML = y, l.push(c.offsetWidth);
595
595
  }
596
596
  c.remove();
597
- var y = Math.max.apply(Math, l);
598
- Ue(y);
597
+ var m = Math.max.apply(Math, l);
598
+ Ye(m);
599
599
  }
600
- }, [o, W, n, L]);
600
+ }, [o, L, n, K]);
601
601
  var Ze = "div", ea = i.useCallback(function(t) {
602
- le.current = t, !(!t || t.tagName !== "INPUT") && (typeof b == "function" ? b(t) : b.current = t);
603
- }, [b]), aa = i.useState(ue), $e = ne(aa, 2), He = $e[0], ta = $e[1], ra = i.useState(!1), Be = ne(ra, 2), na = Be[0], Ae = Be[1], de = j ?? na, oa = i.useCallback(function(t) {
602
+ le.current = t, !(!t || t.tagName !== "INPUT") && (typeof j == "function" ? j(t) : j.current = t);
603
+ }, [j]), aa = i.useState(_e), Ee = ne(aa, 2), Fe = Ee[0], ta = Ee[1], ra = i.useState(!1), $e = ne(ra, 2), na = $e[0], He = $e[1], de = V ?? na, oa = i.useCallback(function(t) {
604
604
  var l;
605
- (l = U.onFocus) === null || l === void 0 || l.call(U, t), Ae(!0);
605
+ (l = Y.onFocus) === null || l === void 0 || l.call(Y, t), He(!0);
606
606
  }, []), ia = i.useCallback(function(t) {
607
607
  var l;
608
- (l = U.onBlur) === null || l === void 0 || l.call(U, t), Ae(!1);
608
+ (l = Y.onBlur) === null || l === void 0 || l.call(Y, t), He(!1);
609
609
  }, []);
610
- return Ne(function() {
611
- de || ta(ue);
612
- }, [ue, de]), g = z(r), /* @__PURE__ */ i.createElement(Q.Value, pa({
613
- "aria-label": F,
614
- title: L,
615
- mask: L,
610
+ return ze(function() {
611
+ de || ta(_e);
612
+ }, [_e, de]), g = A(r), /* @__PURE__ */ i.createElement(Q.Value, pa({
613
+ "aria-label": M,
614
+ title: K,
615
+ mask: K,
616
616
  aliases: Qe,
617
617
  maskOnlySymbols: Xe,
618
- placeholder: L,
619
- inputW: He,
620
- wMin: He,
618
+ placeholder: K,
619
+ inputW: Fe,
620
+ wMin: Fe,
621
621
  id: X
622
- }, U, {
622
+ }, Y, {
623
623
  onFocus: oa,
624
624
  onBlur: ia,
625
625
  focused: de,
626
626
  ref: ea,
627
627
  pipe: Ge,
628
- value: _e ?? "",
628
+ value: ue ?? "",
629
629
  onChange: Je,
630
- noHumanizedDate: !W,
631
- animationsDisabled: K,
632
- inputRole: We,
630
+ noHumanizedDate: !L,
631
+ animationsDisabled: O,
632
+ inputRole: Le,
633
633
  inputMode: "numeric"
634
- }), W && /* @__PURE__ */ i.createElement(Ze, g.cn("SHumanizedDate", {}), W));
635
- }, me = be(ie, {
636
- Indicator: Le,
637
- MaskedInput: we
638
- }), J = be(se, {
639
- Indicator: Le,
640
- RangeSep: Ca,
641
- FromMaskedInput: ka,
642
- ToMaskedInput: Ta
643
- }), tt = be(oe, {
634
+ }), L && /* @__PURE__ */ i.createElement(Ze, g.cn("SHumanizedDate", {}), L));
635
+ }, ye = je(ie, {
636
+ Indicator: Ke,
637
+ MaskedInput: xe
638
+ }), J = je(se, {
639
+ Indicator: Ke,
640
+ RangeSep: ka,
641
+ FromMaskedInput: qa,
642
+ ToMaskedInput: wa
643
+ }), tt = je(oe, {
644
644
  Addon: ga.Addon,
645
- SingleDateInput: me,
645
+ SingleDateInput: ye,
646
646
  DateRange: J
647
647
  });
648
648
  export {