@react-spectrum/datepicker 3.3.2 → 3.5.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.
@@ -0,0 +1,1286 @@
1
+ import "./main.css";
2
+ import {Calendar as $aayOp$Calendar, RangeCalendar as $aayOp$RangeCalendar} from "@react-spectrum/calendar";
3
+ import $aayOp$spectrumiconsworkflowCalendar from "@spectrum-icons/workflow/Calendar";
4
+ import {classNames as $aayOp$classNames, useValueEffect as $aayOp$useValueEffect, createDOMRef as $aayOp$createDOMRef} from "@react-spectrum/utils";
5
+ import {Content as $aayOp$Content} from "@react-spectrum/view";
6
+ import {DialogTrigger as $aayOp$DialogTrigger, Dialog as $aayOp$Dialog} from "@react-spectrum/dialog";
7
+ import {Field as $aayOp$Field} from "@react-spectrum/label";
8
+ import {FieldButton as $aayOp$FieldButton} from "@react-spectrum/button";
9
+ import {mergeProps as $aayOp$mergeProps, useLayoutEffect as $aayOp$useLayoutEffect, useResizeObserver as $aayOp$useResizeObserver, useEvent as $aayOp$useEvent, mergeRefs as $aayOp$mergeRefs} from "@react-aria/utils";
10
+ import $aayOp$react, {useRef as $aayOp$useRef, useCallback as $aayOp$useCallback, useMemo as $aayOp$useMemo, useState as $aayOp$useState, useImperativeHandle as $aayOp$useImperativeHandle} from "react";
11
+ import {useDatePicker as $aayOp$useDatePicker, useDateField as $aayOp$useDateField, useDateSegment as $aayOp$useDateSegment, useTimeField as $aayOp$useTimeField, useDisplayNames as $aayOp$useDisplayNames, useDateRangePicker as $aayOp$useDateRangePicker} from "@react-aria/datepicker";
12
+ import {useDatePickerState as $aayOp$useDatePickerState, useDateFieldState as $aayOp$useDateFieldState, useTimeFieldState as $aayOp$useTimeFieldState, useDateRangePickerState as $aayOp$useDateRangePickerState} from "@react-stately/datepicker";
13
+ import {useFocusRing as $aayOp$useFocusRing, createFocusManager as $aayOp$createFocusManager} from "@react-aria/focus";
14
+ import {useHover as $aayOp$useHover} from "@react-aria/interactions";
15
+ import {useLocale as $aayOp$useLocale, useLocalizedStringFormatter as $aayOp$useLocalizedStringFormatter, useDateFormatter as $aayOp$useDateFormatter} from "@react-aria/i18n";
16
+ import {useProviderProps as $aayOp$useProviderProps, useProvider as $aayOp$useProvider} from "@react-spectrum/provider";
17
+ import {createCalendar as $aayOp$createCalendar} from "@internationalized/date";
18
+ import $aayOp$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
19
+ import $aayOp$spectrumiconsuiCheckmarkMedium from "@spectrum-icons/ui/CheckmarkMedium";
20
+ import {Flex as $aayOp$Flex} from "@react-spectrum/layout";
21
+
22
+ function $parcel$interopDefault(a) {
23
+ return a && a.__esModule ? a.default : a;
24
+ }
25
+ function $parcel$export(e, n, v, s) {
26
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
27
+ }
28
+ /*
29
+ * Copyright 2020 Adobe. All rights reserved.
30
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
31
+ * you may not use this file except in compliance with the License. You may obtain a copy
32
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
33
+ *
34
+ * Unless required by applicable law or agreed to in writing, software distributed under
35
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
36
+ * OF ANY KIND, either express or implied. See the License for the specific language
37
+ * governing permissions and limitations under the License.
38
+ */ /// <reference types="css-module-types" />
39
+ /*
40
+ * Copyright 2020 Adobe. All rights reserved.
41
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
42
+ * you may not use this file except in compliance with the License. You may obtain a copy
43
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44
+ *
45
+ * Unless required by applicable law or agreed to in writing, software distributed under
46
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
47
+ * OF ANY KIND, either express or implied. See the License for the specific language
48
+ * governing permissions and limitations under the License.
49
+ */
50
+
51
+
52
+
53
+ /*
54
+ * Copyright 2020 Adobe. All rights reserved.
55
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
56
+ * you may not use this file except in compliance with the License. You may obtain a copy
57
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
58
+ *
59
+ * Unless required by applicable law or agreed to in writing, software distributed under
60
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
61
+ * OF ANY KIND, either express or implied. See the License for the specific language
62
+ * governing permissions and limitations under the License.
63
+ */
64
+
65
+ /*
66
+ * Copyright 2020 Adobe. All rights reserved.
67
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
68
+ * you may not use this file except in compliance with the License. You may obtain a copy
69
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
70
+ *
71
+ * Unless required by applicable law or agreed to in writing, software distributed under
72
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
73
+ * OF ANY KIND, either express or implied. See the License for the specific language
74
+ * governing permissions and limitations under the License.
75
+ */
76
+
77
+ var $465eb3a688ef3440$exports = {};
78
+
79
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-fieldWrapper", () => $465eb3a688ef3440$export$48501287c6ce4708, (v) => $465eb3a688ef3440$export$48501287c6ce4708 = v);
80
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-startField", () => $465eb3a688ef3440$export$eec05853f5fc7ef8, (v) => $465eb3a688ef3440$export$eec05853f5fc7ef8 = v);
81
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-endField", () => $465eb3a688ef3440$export$b41789438b49c852, (v) => $465eb3a688ef3440$export$b41789438b49c852 = v);
82
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-field", () => $465eb3a688ef3440$export$8cbece9fb909350d, (v) => $465eb3a688ef3440$export$8cbece9fb909350d = v);
83
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-input", () => $465eb3a688ef3440$export$4cdb39b006dc840a, (v) => $465eb3a688ef3440$export$4cdb39b006dc840a = v);
84
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DateField", () => $465eb3a688ef3440$export$c96d01b692101b8a, (v) => $465eb3a688ef3440$export$c96d01b692101b8a = v);
85
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-TimeField", () => $465eb3a688ef3440$export$61c201f1ba261729, (v) => $465eb3a688ef3440$export$61c201f1ba261729 = v);
86
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-TimeField-fieldWrapper", () => $465eb3a688ef3440$export$3008240fa163ee96, (v) => $465eb3a688ef3440$export$3008240fa163ee96 = v);
87
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-inputContents", () => $465eb3a688ef3440$export$609545772ae0466a, (v) => $465eb3a688ef3440$export$609545772ae0466a = v);
88
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-rangeDash", () => $465eb3a688ef3440$export$1ae39afd2cf49425, (v) => $465eb3a688ef3440$export$1ae39afd2cf49425 = v);
89
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-segments", () => $465eb3a688ef3440$export$b9c34f0306ac2ffc, (v) => $465eb3a688ef3440$export$b9c34f0306ac2ffc = v);
90
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-literal", () => $465eb3a688ef3440$export$24a265734c16a355, (v) => $465eb3a688ef3440$export$24a265734c16a355 = v);
91
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DatePicker-cell", () => $465eb3a688ef3440$export$947f5cb8a73639a4, (v) => $465eb3a688ef3440$export$947f5cb8a73639a4 = v);
92
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-DatePicker-placeholder", () => $465eb3a688ef3440$export$d7b1df8540d8ce55, (v) => $465eb3a688ef3440$export$d7b1df8540d8ce55 = v);
93
+ $parcel$export($465eb3a688ef3440$exports, "is-placeholder", () => $465eb3a688ef3440$export$e5b2f5233e4e5194, (v) => $465eb3a688ef3440$export$e5b2f5233e4e5194 = v);
94
+ $parcel$export($465eb3a688ef3440$exports, "is-read-only", () => $465eb3a688ef3440$export$dddce3ae23a6e3ea, (v) => $465eb3a688ef3440$export$dddce3ae23a6e3ea = v);
95
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-dialog", () => $465eb3a688ef3440$export$7c3cb625bb792356, (v) => $465eb3a688ef3440$export$7c3cb625bb792356 = v);
96
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-dialogContent", () => $465eb3a688ef3440$export$94c97d6b6a927921, (v) => $465eb3a688ef3440$export$94c97d6b6a927921 = v);
97
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-calendar", () => $465eb3a688ef3440$export$640bfc6f7362791a, (v) => $465eb3a688ef3440$export$640bfc6f7362791a = v);
98
+ $parcel$export($465eb3a688ef3440$exports, "is-invalid", () => $465eb3a688ef3440$export$14a30de2866685fa, (v) => $465eb3a688ef3440$export$14a30de2866685fa = v);
99
+ $parcel$export($465eb3a688ef3440$exports, "react-spectrum-Datepicker-timeFields", () => $465eb3a688ef3440$export$8d47712a13573e39, (v) => $465eb3a688ef3440$export$8d47712a13573e39 = v);
100
+ var $465eb3a688ef3440$export$48501287c6ce4708;
101
+ var $465eb3a688ef3440$export$eec05853f5fc7ef8;
102
+ var $465eb3a688ef3440$export$b41789438b49c852;
103
+ var $465eb3a688ef3440$export$8cbece9fb909350d;
104
+ var $465eb3a688ef3440$export$4cdb39b006dc840a;
105
+ var $465eb3a688ef3440$export$c96d01b692101b8a;
106
+ var $465eb3a688ef3440$export$61c201f1ba261729;
107
+ var $465eb3a688ef3440$export$3008240fa163ee96;
108
+ var $465eb3a688ef3440$export$609545772ae0466a;
109
+ var $465eb3a688ef3440$export$1ae39afd2cf49425;
110
+ var $465eb3a688ef3440$export$b9c34f0306ac2ffc;
111
+ var $465eb3a688ef3440$export$24a265734c16a355;
112
+ var $465eb3a688ef3440$export$947f5cb8a73639a4;
113
+ var $465eb3a688ef3440$export$d7b1df8540d8ce55;
114
+ var $465eb3a688ef3440$export$e5b2f5233e4e5194;
115
+ var $465eb3a688ef3440$export$dddce3ae23a6e3ea;
116
+ var $465eb3a688ef3440$export$7c3cb625bb792356;
117
+ var $465eb3a688ef3440$export$94c97d6b6a927921;
118
+ var $465eb3a688ef3440$export$640bfc6f7362791a;
119
+ var $465eb3a688ef3440$export$14a30de2866685fa;
120
+ var $465eb3a688ef3440$export$8d47712a13573e39;
121
+ $465eb3a688ef3440$export$48501287c6ce4708 = "react-spectrum-Datepicker-fieldWrapper_f02f90";
122
+ $465eb3a688ef3440$export$eec05853f5fc7ef8 = "react-spectrum-Datepicker-startField_f02f90";
123
+ $465eb3a688ef3440$export$b41789438b49c852 = "react-spectrum-Datepicker-endField_f02f90";
124
+ $465eb3a688ef3440$export$8cbece9fb909350d = "react-spectrum-Datepicker-field_f02f90";
125
+ $465eb3a688ef3440$export$4cdb39b006dc840a = "react-spectrum-Datepicker-input_f02f90";
126
+ $465eb3a688ef3440$export$c96d01b692101b8a = "react-spectrum-DateField_f02f90";
127
+ $465eb3a688ef3440$export$61c201f1ba261729 = "react-spectrum-TimeField_f02f90";
128
+ $465eb3a688ef3440$export$3008240fa163ee96 = "react-spectrum-TimeField-fieldWrapper_f02f90";
129
+ $465eb3a688ef3440$export$609545772ae0466a = "react-spectrum-Datepicker-inputContents_f02f90";
130
+ $465eb3a688ef3440$export$1ae39afd2cf49425 = "react-spectrum-Datepicker-rangeDash_f02f90";
131
+ $465eb3a688ef3440$export$b9c34f0306ac2ffc = "react-spectrum-Datepicker-segments_f02f90";
132
+ $465eb3a688ef3440$export$24a265734c16a355 = "react-spectrum-Datepicker-literal_f02f90";
133
+ $465eb3a688ef3440$export$947f5cb8a73639a4 = "react-spectrum-DatePicker-cell_f02f90";
134
+ $465eb3a688ef3440$export$d7b1df8540d8ce55 = "react-spectrum-DatePicker-placeholder_f02f90";
135
+ $465eb3a688ef3440$export$e5b2f5233e4e5194 = "is-placeholder_f02f90";
136
+ $465eb3a688ef3440$export$dddce3ae23a6e3ea = "is-read-only_f02f90";
137
+ $465eb3a688ef3440$export$7c3cb625bb792356 = "react-spectrum-Datepicker-dialog_f02f90";
138
+ $465eb3a688ef3440$export$94c97d6b6a927921 = "react-spectrum-Datepicker-dialogContent_f02f90";
139
+ $465eb3a688ef3440$export$640bfc6f7362791a = "react-spectrum-Datepicker-calendar_f02f90";
140
+ $465eb3a688ef3440$export$14a30de2866685fa = "is-invalid_f02f90";
141
+ $465eb3a688ef3440$export$8d47712a13573e39 = "react-spectrum-Datepicker-timeFields_f02f90";
142
+
143
+
144
+
145
+ function $cfa347761f172638$export$6388987c5223b54e({ segment: segment , state: state , ...otherProps }) {
146
+ switch(segment.type){
147
+ // A separator, e.g. punctuation
148
+ case "literal":
149
+ return /*#__PURE__*/ (0, $aayOp$react).createElement($cfa347761f172638$var$LiteralSegment, {
150
+ segment: segment
151
+ });
152
+ // Editable segment
153
+ default:
154
+ return /*#__PURE__*/ (0, $aayOp$react).createElement($cfa347761f172638$var$EditableSegment, {
155
+ segment: segment,
156
+ state: state,
157
+ ...otherProps
158
+ });
159
+ }
160
+ }
161
+ function $cfa347761f172638$var$LiteralSegment({ segment: segment }) {
162
+ return /*#__PURE__*/ (0, $aayOp$react).createElement("span", {
163
+ "aria-hidden": "true",
164
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-literal"),
165
+ "data-testid": segment.type === "literal" ? undefined : segment.type
166
+ }, segment.text);
167
+ }
168
+ function $cfa347761f172638$var$EditableSegment({ segment: segment , state: state }) {
169
+ let ref = (0, $aayOp$useRef)();
170
+ let { segmentProps: segmentProps } = (0, $aayOp$useDateSegment)(segment, state, ref);
171
+ return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
172
+ ...segmentProps,
173
+ ref: ref,
174
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DatePicker-cell", {
175
+ "is-placeholder": segment.isPlaceholder,
176
+ "is-read-only": !segment.isEditable
177
+ }),
178
+ style: {
179
+ ...segmentProps.style,
180
+ minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : null
181
+ },
182
+ "data-testid": segment.type
183
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement("span", {
184
+ "aria-hidden": "true",
185
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DatePicker-placeholder")
186
+ }, segment.placeholder), segment.isPlaceholder ? "" : segment.text);
187
+ }
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ function $d2bb88c82604b25f$export$34dc4cfa15ead1(props) {
196
+ let { isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , inputClassName: inputClassName } = props;
197
+ let ref = (0, $aayOp$useRef)();
198
+ let { locale: locale } = (0, $aayOp$useLocale)();
199
+ let state = (0, $aayOp$useDateFieldState)({
200
+ ...props,
201
+ locale: locale,
202
+ createCalendar: $aayOp$createCalendar
203
+ });
204
+ let { fieldProps: fieldProps } = (0, $aayOp$useDateField)(props, state, ref);
205
+ return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
206
+ ...fieldProps,
207
+ "data-testid": props["data-testid"],
208
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-segments", inputClassName),
209
+ ref: ref
210
+ }, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $aayOp$react).createElement((0, $cfa347761f172638$export$6388987c5223b54e), {
211
+ key: i,
212
+ segment: segment,
213
+ state: state,
214
+ isDisabled: isDisabled,
215
+ isReadOnly: isReadOnly,
216
+ isRequired: isRequired
217
+ })));
218
+ }
219
+
220
+
221
+
222
+
223
+
224
+
225
+ /*
226
+ * Copyright 2020 Adobe. All rights reserved.
227
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
228
+ * you may not use this file except in compliance with the License. You may obtain a copy
229
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
230
+ *
231
+ * Unless required by applicable law or agreed to in writing, software distributed under
232
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
233
+ * OF ANY KIND, either express or implied. See the License for the specific language
234
+ * governing permissions and limitations under the License.
235
+ */
236
+
237
+
238
+
239
+
240
+
241
+ var $c14528ddc146317f$exports = {};
242
+
243
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-input", () => $c14528ddc146317f$export$1ac009feb2b0bd0c, (v) => $c14528ddc146317f$export$1ac009feb2b0bd0c = v);
244
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield", () => $c14528ddc146317f$export$2c8a10299d8b3418, (v) => $c14528ddc146317f$export$2c8a10299d8b3418 = v);
245
+ $parcel$export($c14528ddc146317f$exports, "focus-ring", () => $c14528ddc146317f$export$f39a09f249340e2a, (v) => $c14528ddc146317f$export$f39a09f249340e2a = v);
246
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--quiet", () => $c14528ddc146317f$export$bffd5e3d61a81737, (v) => $c14528ddc146317f$export$bffd5e3d61a81737 = v);
247
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--multiline", () => $c14528ddc146317f$export$9699f1c538a448a0, (v) => $c14528ddc146317f$export$9699f1c538a448a0 = v);
248
+ $parcel$export($c14528ddc146317f$exports, "is-placeholder", () => $c14528ddc146317f$export$e5b2f5233e4e5194, (v) => $c14528ddc146317f$export$e5b2f5233e4e5194 = v);
249
+ $parcel$export($c14528ddc146317f$exports, "is-hovered", () => $c14528ddc146317f$export$b8813cd5d7824ce7, (v) => $c14528ddc146317f$export$b8813cd5d7824ce7 = v);
250
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--valid", () => $c14528ddc146317f$export$c2abbc3f970170b7, (v) => $c14528ddc146317f$export$c2abbc3f970170b7 = v);
251
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--invalid", () => $c14528ddc146317f$export$58e50b10d30123df, (v) => $c14528ddc146317f$export$58e50b10d30123df = v);
252
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield--loadable", () => $c14528ddc146317f$export$14fd30fea6f1348c, (v) => $c14528ddc146317f$export$14fd30fea6f1348c = v);
253
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-wrapper", () => $c14528ddc146317f$export$dd1165e0e6012973, (v) => $c14528ddc146317f$export$dd1165e0e6012973 = v);
254
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-wrapper--quiet", () => $c14528ddc146317f$export$9fcb3d6af94a9d12, (v) => $c14528ddc146317f$export$9fcb3d6af94a9d12 = v);
255
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-validationIcon", () => $c14528ddc146317f$export$cf0ead5b44db0da3, (v) => $c14528ddc146317f$export$cf0ead5b44db0da3 = v);
256
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-icon", () => $c14528ddc146317f$export$222d1ccd1870be1d, (v) => $c14528ddc146317f$export$222d1ccd1870be1d = v);
257
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-inputIcon", () => $c14528ddc146317f$export$c1cdcaa5fe76a871, (v) => $c14528ddc146317f$export$c1cdcaa5fe76a871 = v);
258
+ $parcel$export($c14528ddc146317f$exports, "spectrum-Textfield-circleLoader", () => $c14528ddc146317f$export$82a249fb4d6127, (v) => $c14528ddc146317f$export$82a249fb4d6127 = v);
259
+ $parcel$export($c14528ddc146317f$exports, "is-focused", () => $c14528ddc146317f$export$e7dc768d35940237, (v) => $c14528ddc146317f$export$e7dc768d35940237 = v);
260
+ $parcel$export($c14528ddc146317f$exports, "is-disabled", () => $c14528ddc146317f$export$d35bc1e505d1ebbf, (v) => $c14528ddc146317f$export$d35bc1e505d1ebbf = v);
261
+ var $c14528ddc146317f$export$1ac009feb2b0bd0c;
262
+ var $c14528ddc146317f$export$2c8a10299d8b3418;
263
+ var $c14528ddc146317f$export$f39a09f249340e2a;
264
+ var $c14528ddc146317f$export$bffd5e3d61a81737;
265
+ var $c14528ddc146317f$export$9699f1c538a448a0;
266
+ var $c14528ddc146317f$export$e5b2f5233e4e5194;
267
+ var $c14528ddc146317f$export$b8813cd5d7824ce7;
268
+ var $c14528ddc146317f$export$c2abbc3f970170b7;
269
+ var $c14528ddc146317f$export$58e50b10d30123df;
270
+ var $c14528ddc146317f$export$14fd30fea6f1348c;
271
+ var $c14528ddc146317f$export$dd1165e0e6012973;
272
+ var $c14528ddc146317f$export$9fcb3d6af94a9d12;
273
+ var $c14528ddc146317f$export$cf0ead5b44db0da3;
274
+ var $c14528ddc146317f$export$222d1ccd1870be1d;
275
+ var $c14528ddc146317f$export$c1cdcaa5fe76a871;
276
+ var $c14528ddc146317f$export$82a249fb4d6127;
277
+ var $c14528ddc146317f$export$e7dc768d35940237;
278
+ var $c14528ddc146317f$export$d35bc1e505d1ebbf;
279
+ $c14528ddc146317f$export$1ac009feb2b0bd0c = "spectrum-Textfield-input_73bc77";
280
+ $c14528ddc146317f$export$2c8a10299d8b3418 = "spectrum-Textfield_73bc77";
281
+ $c14528ddc146317f$export$f39a09f249340e2a = "focus-ring_73bc77";
282
+ $c14528ddc146317f$export$bffd5e3d61a81737 = "spectrum-Textfield--quiet_73bc77";
283
+ $c14528ddc146317f$export$9699f1c538a448a0 = "spectrum-Textfield--multiline_73bc77";
284
+ $c14528ddc146317f$export$e5b2f5233e4e5194 = "is-placeholder_73bc77";
285
+ $c14528ddc146317f$export$b8813cd5d7824ce7 = "is-hovered_73bc77";
286
+ $c14528ddc146317f$export$c2abbc3f970170b7 = "spectrum-Textfield--valid_73bc77";
287
+ $c14528ddc146317f$export$58e50b10d30123df = "spectrum-Textfield--invalid_73bc77";
288
+ $c14528ddc146317f$export$14fd30fea6f1348c = "spectrum-Textfield--loadable_73bc77";
289
+ $c14528ddc146317f$export$dd1165e0e6012973 = "spectrum-Textfield-wrapper_73bc77";
290
+ $c14528ddc146317f$export$9fcb3d6af94a9d12 = "spectrum-Textfield-wrapper--quiet_73bc77";
291
+ $c14528ddc146317f$export$cf0ead5b44db0da3 = "spectrum-Textfield-validationIcon_73bc77";
292
+ $c14528ddc146317f$export$222d1ccd1870be1d = "spectrum-Textfield-icon_73bc77";
293
+ $c14528ddc146317f$export$c1cdcaa5fe76a871 = "spectrum-Textfield-inputIcon_73bc77";
294
+ $c14528ddc146317f$export$82a249fb4d6127 = "spectrum-Textfield-circleLoader_73bc77";
295
+ $c14528ddc146317f$export$e7dc768d35940237 = "is-focused_73bc77";
296
+ $c14528ddc146317f$export$d35bc1e505d1ebbf = "is-disabled_73bc77";
297
+
298
+
299
+
300
+ function $79348162c55d687f$var$Input(props, ref) {
301
+ let inputRef = (0, $aayOp$useRef)(null);
302
+ let { isDisabled: isDisabled , isQuiet: isQuiet , inputClassName: inputClassName , validationState: validationState , children: children , fieldProps: fieldProps , className: className , style: style , disableFocusRing: disableFocusRing } = props;
303
+ // Reserve padding for the error icon when the width of the input is unconstrained.
304
+ // When constrained, don't reserve space because adding it only when invalid will
305
+ // not cause a layout shift.
306
+ let [reservePadding, setReservePadding] = (0, $aayOp$useValueEffect)(false);
307
+ let onResize = (0, $aayOp$useCallback)(()=>setReservePadding(function*(reservePadding) {
308
+ if (inputRef.current) {
309
+ if (reservePadding) // Try to collapse padding if the content is clipped.
310
+ {
311
+ if (inputRef.current.scrollWidth > inputRef.current.offsetWidth) {
312
+ let width = inputRef.current.parentElement.offsetWidth;
313
+ yield false;
314
+ // If removing padding causes a layout shift, add it back.
315
+ if (inputRef.current.parentElement.offsetWidth !== width) yield true;
316
+ }
317
+ } else // Try to add padding if the content is not clipped.
318
+ if (inputRef.current.offsetWidth >= inputRef.current.scrollWidth) {
319
+ let width1 = inputRef.current.parentElement.offsetWidth;
320
+ yield true;
321
+ // If adding padding does not change the width (i.e. width is constrained), remove it again.
322
+ if (inputRef.current.parentElement.offsetWidth === width1) yield false;
323
+ }
324
+ }
325
+ }), [
326
+ inputRef,
327
+ setReservePadding
328
+ ]);
329
+ (0, $aayOp$useLayoutEffect)(onResize, [
330
+ onResize
331
+ ]);
332
+ (0, $aayOp$useResizeObserver)({
333
+ ref: inputRef,
334
+ onResize: onResize
335
+ });
336
+ // We also need to listen for resize events of the window so we can detect
337
+ // when there is enough space for the padding to be re-added. Ideally we'd
338
+ // use a resize observer on a parent element, but it's hard to know _what_
339
+ // parent element.
340
+ (0, $aayOp$useEvent)((0, $aayOp$useRef)(typeof window !== "undefined" ? window : null), "resize", onResize);
341
+ let { focusProps: focusProps , isFocusVisible: isFocusVisible , isFocused: isFocused } = (0, $aayOp$useFocusRing)({
342
+ isTextInput: true,
343
+ within: true
344
+ });
345
+ let isInvalid = validationState === "invalid" && !isDisabled;
346
+ let textfieldClass = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports))), "spectrum-Textfield", {
347
+ "spectrum-Textfield--invalid": isInvalid,
348
+ "spectrum-Textfield--valid": validationState === "valid" && !isDisabled,
349
+ "spectrum-Textfield--quiet": isQuiet,
350
+ "focus-ring": isFocusVisible && !disableFocusRing
351
+ }, (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-field"), className);
352
+ let inputClass = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports))), "spectrum-Textfield-input", {
353
+ "is-disabled": isDisabled,
354
+ "is-invalid": isInvalid,
355
+ "is-focused": isFocused
356
+ }, reservePadding && (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-input"), inputClassName);
357
+ let iconClass = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c14528ddc146317f$exports))), "spectrum-Textfield-validationIcon");
358
+ let validationIcon = null;
359
+ if (validationState === "invalid" && !isDisabled) validationIcon = /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsuiAlertMedium), {
360
+ "data-testid": "invalid-icon",
361
+ UNSAFE_className: iconClass
362
+ });
363
+ else if (validationState === "valid" && !isDisabled) validationIcon = /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsuiCheckmarkMedium), {
364
+ "data-testid": "valid-icon",
365
+ UNSAFE_className: iconClass
366
+ });
367
+ return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
368
+ role: "presentation",
369
+ ...(0, $aayOp$mergeProps)(fieldProps, focusProps),
370
+ className: textfieldClass,
371
+ style: style
372
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
373
+ role: "presentation",
374
+ className: inputClass
375
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
376
+ role: "presentation",
377
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-inputContents"),
378
+ ref: (0, $aayOp$mergeRefs)(ref, inputRef)
379
+ }, children)), validationIcon);
380
+ }
381
+ const $79348162c55d687f$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($79348162c55d687f$var$Input);
382
+
383
+
384
+ var $71a986712918c3de$exports = {};
385
+ var $557f7da83617ebdf$exports = {};
386
+ $557f7da83617ebdf$exports = {
387
+ "endTime": `وقت الانتهاء`,
388
+ "startTime": `وقت البدء`,
389
+ "time": `الوقت`
390
+ };
391
+
392
+
393
+ var $d9d9d0bb24b4de48$exports = {};
394
+ $d9d9d0bb24b4de48$exports = {
395
+ "endTime": `Краен час`,
396
+ "startTime": `Начален час`,
397
+ "time": `Време`
398
+ };
399
+
400
+
401
+ var $957f034d30ca532a$exports = {};
402
+ $957f034d30ca532a$exports = {
403
+ "endTime": `Konečný čas`,
404
+ "startTime": `Počáteční čas`,
405
+ "time": `Čas`
406
+ };
407
+
408
+
409
+ var $b5644a9daaf97251$exports = {};
410
+ $b5644a9daaf97251$exports = {
411
+ "endTime": `Sluttidspunkt`,
412
+ "startTime": `Starttidspunkt`,
413
+ "time": `Klokkeslæt`
414
+ };
415
+
416
+
417
+ var $7766b8cb542dd7d4$exports = {};
418
+ $7766b8cb542dd7d4$exports = {
419
+ "endTime": `Endzeit`,
420
+ "startTime": `Startzeit`,
421
+ "time": `Uhrzeit`
422
+ };
423
+
424
+
425
+ var $ac788cb25511130e$exports = {};
426
+ $ac788cb25511130e$exports = {
427
+ "endTime": `Χρόνος λήξης`,
428
+ "startTime": `Ώρα έναρξης`,
429
+ "time": `Χρόνος`
430
+ };
431
+
432
+
433
+ var $1729b68fc5d3f126$exports = {};
434
+ $1729b68fc5d3f126$exports = {
435
+ "time": `Time`,
436
+ "startTime": `Start time`,
437
+ "endTime": `End time`
438
+ };
439
+
440
+
441
+ var $76a414311c9ecad7$exports = {};
442
+ $76a414311c9ecad7$exports = {
443
+ "endTime": `Hora de finalización`,
444
+ "startTime": `Hora de inicio`,
445
+ "time": `Hora`
446
+ };
447
+
448
+
449
+ var $2c9039f4a2d8ea02$exports = {};
450
+ $2c9039f4a2d8ea02$exports = {
451
+ "endTime": `Lõpuaeg`,
452
+ "startTime": `Algusaeg`,
453
+ "time": `Aeg`
454
+ };
455
+
456
+
457
+ var $59d615bd839f58d3$exports = {};
458
+ $59d615bd839f58d3$exports = {
459
+ "endTime": `Päättymisaika`,
460
+ "startTime": `Alkamisaika`,
461
+ "time": `Aika`
462
+ };
463
+
464
+
465
+ var $ab45056fafb7a102$exports = {};
466
+ $ab45056fafb7a102$exports = {
467
+ "endTime": `Heure de fin`,
468
+ "startTime": `Heure de début`,
469
+ "time": `Heure`
470
+ };
471
+
472
+
473
+ var $67d5b76c8e7450d9$exports = {};
474
+ $67d5b76c8e7450d9$exports = {
475
+ "endTime": `שעת סיום`,
476
+ "startTime": `שעת התחלה`,
477
+ "time": `זמן`
478
+ };
479
+
480
+
481
+ var $2f9e52c02bf38498$exports = {};
482
+ $2f9e52c02bf38498$exports = {
483
+ "endTime": `Vrijeme završetka`,
484
+ "startTime": `Vrijeme početka`,
485
+ "time": `Vrijeme`
486
+ };
487
+
488
+
489
+ var $a151dd0df33d619b$exports = {};
490
+ $a151dd0df33d619b$exports = {
491
+ "endTime": `Befejezés ideje`,
492
+ "startTime": `Kezdés ideje`,
493
+ "time": `Idő`
494
+ };
495
+
496
+
497
+ var $a3dd26e20adf6e63$exports = {};
498
+ $a3dd26e20adf6e63$exports = {
499
+ "endTime": `Ora di fine`,
500
+ "startTime": `Ora di inizio`,
501
+ "time": `Ora`
502
+ };
503
+
504
+
505
+ var $60886f131a8aaf64$exports = {};
506
+ $60886f131a8aaf64$exports = {
507
+ "endTime": `終了時刻`,
508
+ "startTime": `開始時刻`,
509
+ "time": `時刻`
510
+ };
511
+
512
+
513
+ var $be521f3abe2a5b42$exports = {};
514
+ $be521f3abe2a5b42$exports = {
515
+ "endTime": `종료 시간`,
516
+ "startTime": `시작 시간`,
517
+ "time": `시간`
518
+ };
519
+
520
+
521
+ var $18449f05cd88144d$exports = {};
522
+ $18449f05cd88144d$exports = {
523
+ "endTime": `Pabaigos laikas`,
524
+ "startTime": `Pradžios laikas`,
525
+ "time": `Laikas`
526
+ };
527
+
528
+
529
+ var $ab3b62ef853668f6$exports = {};
530
+ $ab3b62ef853668f6$exports = {
531
+ "endTime": `Beigu laiks`,
532
+ "startTime": `Sākuma laiks`,
533
+ "time": `Laiks`
534
+ };
535
+
536
+
537
+ var $bd4ef464092f2e3d$exports = {};
538
+ $bd4ef464092f2e3d$exports = {
539
+ "endTime": `Sluttid`,
540
+ "startTime": `Starttid`,
541
+ "time": `Tid`
542
+ };
543
+
544
+
545
+ var $615f888e9fb9e405$exports = {};
546
+ $615f888e9fb9e405$exports = {
547
+ "endTime": `Eindtijd`,
548
+ "startTime": `Starttijd`,
549
+ "time": `Tijd`
550
+ };
551
+
552
+
553
+ var $348051b3267461b4$exports = {};
554
+ $348051b3267461b4$exports = {
555
+ "endTime": `Godzina końcowa`,
556
+ "startTime": `Godzina początkowa`,
557
+ "time": `Godzina`
558
+ };
559
+
560
+
561
+ var $80e1f5b9b1708516$exports = {};
562
+ $80e1f5b9b1708516$exports = {
563
+ "endTime": `Hora final`,
564
+ "startTime": `Hora inicial`,
565
+ "time": `Hora`
566
+ };
567
+
568
+
569
+ var $3f165936910f27a7$exports = {};
570
+ $3f165936910f27a7$exports = {
571
+ "endTime": `Terminar tempo`,
572
+ "startTime": `Iniciar tempo`,
573
+ "time": `Tempo`
574
+ };
575
+
576
+
577
+ var $725af9f963c35984$exports = {};
578
+ $725af9f963c35984$exports = {
579
+ "endTime": `Ora de sfârșit`,
580
+ "startTime": `Ora de început`,
581
+ "time": `Ora`
582
+ };
583
+
584
+
585
+ var $5ced0dcf66f00658$exports = {};
586
+ $5ced0dcf66f00658$exports = {
587
+ "endTime": `Время окончания`,
588
+ "startTime": `Время начала`,
589
+ "time": `Время`
590
+ };
591
+
592
+
593
+ var $f99469db2a9ce4d6$exports = {};
594
+ $f99469db2a9ce4d6$exports = {
595
+ "endTime": `Čas ukončenia`,
596
+ "startTime": `Čas začiatku`,
597
+ "time": `Čas`
598
+ };
599
+
600
+
601
+ var $23b4f990ce23d252$exports = {};
602
+ $23b4f990ce23d252$exports = {
603
+ "endTime": `Končni čas`,
604
+ "startTime": `Začetni čas`,
605
+ "time": `Čas`
606
+ };
607
+
608
+
609
+ var $76c292be85991194$exports = {};
610
+ $76c292be85991194$exports = {
611
+ "endTime": `Završno vreme`,
612
+ "startTime": `Početno vreme`,
613
+ "time": `Vreme`
614
+ };
615
+
616
+
617
+ var $eb1e0d6d87dadd36$exports = {};
618
+ $eb1e0d6d87dadd36$exports = {
619
+ "endTime": `Sluttid`,
620
+ "startTime": `Starttid`,
621
+ "time": `Tid`
622
+ };
623
+
624
+
625
+ var $c111b245b4961c2e$exports = {};
626
+ $c111b245b4961c2e$exports = {
627
+ "endTime": `Bitiş saati`,
628
+ "startTime": `Başlangıç saati`,
629
+ "time": `Saat`
630
+ };
631
+
632
+
633
+ var $64c0344455eff457$exports = {};
634
+ $64c0344455eff457$exports = {
635
+ "endTime": `Час завершення`,
636
+ "startTime": `Час початку`,
637
+ "time": `Час`
638
+ };
639
+
640
+
641
+ var $08d7bccfda7015e7$exports = {};
642
+ $08d7bccfda7015e7$exports = {
643
+ "endTime": `结束时间`,
644
+ "startTime": `开始时间`,
645
+ "time": `时间`
646
+ };
647
+
648
+
649
+ var $c7c7bc6cc4226b9e$exports = {};
650
+ $c7c7bc6cc4226b9e$exports = {
651
+ "endTime": `結束時間`,
652
+ "startTime": `開始時間`,
653
+ "time": `時間`
654
+ };
655
+
656
+
657
+ $71a986712918c3de$exports = {
658
+ "ar-AE": $557f7da83617ebdf$exports,
659
+ "bg-BG": $d9d9d0bb24b4de48$exports,
660
+ "cs-CZ": $957f034d30ca532a$exports,
661
+ "da-DK": $b5644a9daaf97251$exports,
662
+ "de-DE": $7766b8cb542dd7d4$exports,
663
+ "el-GR": $ac788cb25511130e$exports,
664
+ "en-US": $1729b68fc5d3f126$exports,
665
+ "es-ES": $76a414311c9ecad7$exports,
666
+ "et-EE": $2c9039f4a2d8ea02$exports,
667
+ "fi-FI": $59d615bd839f58d3$exports,
668
+ "fr-FR": $ab45056fafb7a102$exports,
669
+ "he-IL": $67d5b76c8e7450d9$exports,
670
+ "hr-HR": $2f9e52c02bf38498$exports,
671
+ "hu-HU": $a151dd0df33d619b$exports,
672
+ "it-IT": $a3dd26e20adf6e63$exports,
673
+ "ja-JP": $60886f131a8aaf64$exports,
674
+ "ko-KR": $be521f3abe2a5b42$exports,
675
+ "lt-LT": $18449f05cd88144d$exports,
676
+ "lv-LV": $ab3b62ef853668f6$exports,
677
+ "nb-NO": $bd4ef464092f2e3d$exports,
678
+ "nl-NL": $615f888e9fb9e405$exports,
679
+ "pl-PL": $348051b3267461b4$exports,
680
+ "pt-BR": $80e1f5b9b1708516$exports,
681
+ "pt-PT": $3f165936910f27a7$exports,
682
+ "ro-RO": $725af9f963c35984$exports,
683
+ "ru-RU": $5ced0dcf66f00658$exports,
684
+ "sk-SK": $f99469db2a9ce4d6$exports,
685
+ "sl-SI": $23b4f990ce23d252$exports,
686
+ "sr-SP": $76c292be85991194$exports,
687
+ "sv-SE": $eb1e0d6d87dadd36$exports,
688
+ "tr-TR": $c111b245b4961c2e$exports,
689
+ "uk-UA": $64c0344455eff457$exports,
690
+ "zh-CN": $08d7bccfda7015e7$exports,
691
+ "zh-TW": $c7c7bc6cc4226b9e$exports
692
+ };
693
+
694
+
695
+
696
+
697
+
698
+ var $8fb52a80fe52b1c7$exports = {};
699
+
700
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup", () => $8fb52a80fe52b1c7$export$5be359c1227eedcb, (v) => $8fb52a80fe52b1c7$export$5be359c1227eedcb = v);
701
+ $parcel$export($8fb52a80fe52b1c7$exports, "focus-ring", () => $8fb52a80fe52b1c7$export$f39a09f249340e2a, (v) => $8fb52a80fe52b1c7$export$f39a09f249340e2a = v);
702
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--quiet", () => $8fb52a80fe52b1c7$export$ebf265ffc062029b, (v) => $8fb52a80fe52b1c7$export$ebf265ffc062029b = v);
703
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FieldButton", () => $8fb52a80fe52b1c7$export$a024c99ecf6b5741, (v) => $8fb52a80fe52b1c7$export$a024c99ecf6b5741 = v);
704
+ $parcel$export($8fb52a80fe52b1c7$exports, "is-disabled", () => $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf, (v) => $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = v);
705
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup--invalid", () => $8fb52a80fe52b1c7$export$3b48509739a9cda0, (v) => $8fb52a80fe52b1c7$export$3b48509739a9cda0 = v);
706
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-field", () => $8fb52a80fe52b1c7$export$ea77459595e26bec, (v) => $8fb52a80fe52b1c7$export$ea77459595e26bec = v);
707
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input-validationIcon", () => $8fb52a80fe52b1c7$export$f7ab13ee113f4884, (v) => $8fb52a80fe52b1c7$export$f7ab13ee113f4884 = v);
708
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input-circleLoader", () => $8fb52a80fe52b1c7$export$dcc9e00cdad967fa, (v) => $8fb52a80fe52b1c7$export$dcc9e00cdad967fa = v);
709
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-input", () => $8fb52a80fe52b1c7$export$92706f5c6fe4074, (v) => $8fb52a80fe52b1c7$export$92706f5c6fe4074 = v);
710
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-icon", () => $8fb52a80fe52b1c7$export$b91b6af799fd93a8, (v) => $8fb52a80fe52b1c7$export$b91b6af799fd93a8 = v);
711
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-InputGroup-popover--quiet", () => $8fb52a80fe52b1c7$export$5e116178f9b1556a, (v) => $8fb52a80fe52b1c7$export$5e116178f9b1556a = v);
712
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--range", () => $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd, (v) => $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = v);
713
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--datetimeRange", () => $8fb52a80fe52b1c7$export$58dd7cd23c92699f, (v) => $8fb52a80fe52b1c7$export$58dd7cd23c92699f = v);
714
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-startField", () => $8fb52a80fe52b1c7$export$80f9c838a8406469, (v) => $8fb52a80fe52b1c7$export$80f9c838a8406469 = v);
715
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-endField", () => $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee, (v) => $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = v);
716
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker--rangeDash", () => $8fb52a80fe52b1c7$export$202113e883898dc, (v) => $8fb52a80fe52b1c7$export$202113e883898dc = v);
717
+ $parcel$export($8fb52a80fe52b1c7$exports, "is-focused", () => $8fb52a80fe52b1c7$export$e7dc768d35940237, (v) => $8fb52a80fe52b1c7$export$e7dc768d35940237 = v);
718
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-Datepicker-focusRing", () => $8fb52a80fe52b1c7$export$eb262b15b9261fde, (v) => $8fb52a80fe52b1c7$export$eb262b15b9261fde = v);
719
+ $parcel$export($8fb52a80fe52b1c7$exports, "is-hovered", () => $8fb52a80fe52b1c7$export$b8813cd5d7824ce7, (v) => $8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = v);
720
+ $parcel$export($8fb52a80fe52b1c7$exports, "is-selected", () => $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a, (v) => $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = v);
721
+ $parcel$export($8fb52a80fe52b1c7$exports, "spectrum-FieldButton--invalid", () => $8fb52a80fe52b1c7$export$c9f503f672e8a3c1, (v) => $8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = v);
722
+ var $8fb52a80fe52b1c7$export$5be359c1227eedcb;
723
+ var $8fb52a80fe52b1c7$export$f39a09f249340e2a;
724
+ var $8fb52a80fe52b1c7$export$ebf265ffc062029b;
725
+ var $8fb52a80fe52b1c7$export$a024c99ecf6b5741;
726
+ var $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf;
727
+ var $8fb52a80fe52b1c7$export$3b48509739a9cda0;
728
+ var $8fb52a80fe52b1c7$export$ea77459595e26bec;
729
+ var $8fb52a80fe52b1c7$export$f7ab13ee113f4884;
730
+ var $8fb52a80fe52b1c7$export$dcc9e00cdad967fa;
731
+ var $8fb52a80fe52b1c7$export$92706f5c6fe4074;
732
+ var $8fb52a80fe52b1c7$export$b91b6af799fd93a8;
733
+ var $8fb52a80fe52b1c7$export$5e116178f9b1556a;
734
+ var $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd;
735
+ var $8fb52a80fe52b1c7$export$58dd7cd23c92699f;
736
+ var $8fb52a80fe52b1c7$export$80f9c838a8406469;
737
+ var $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee;
738
+ var $8fb52a80fe52b1c7$export$202113e883898dc;
739
+ var $8fb52a80fe52b1c7$export$e7dc768d35940237;
740
+ var $8fb52a80fe52b1c7$export$eb262b15b9261fde;
741
+ var $8fb52a80fe52b1c7$export$b8813cd5d7824ce7;
742
+ var $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a;
743
+ var $8fb52a80fe52b1c7$export$c9f503f672e8a3c1;
744
+ $8fb52a80fe52b1c7$export$5be359c1227eedcb = "spectrum-InputGroup_a0942f";
745
+ $8fb52a80fe52b1c7$export$f39a09f249340e2a = "focus-ring_a0942f";
746
+ $8fb52a80fe52b1c7$export$ebf265ffc062029b = "spectrum-InputGroup--quiet_a0942f";
747
+ $8fb52a80fe52b1c7$export$a024c99ecf6b5741 = "spectrum-FieldButton_a0942f";
748
+ $8fb52a80fe52b1c7$export$d35bc1e505d1ebbf = "is-disabled_a0942f";
749
+ $8fb52a80fe52b1c7$export$3b48509739a9cda0 = "spectrum-InputGroup--invalid_a0942f";
750
+ $8fb52a80fe52b1c7$export$ea77459595e26bec = "spectrum-InputGroup-field_a0942f";
751
+ $8fb52a80fe52b1c7$export$f7ab13ee113f4884 = "spectrum-InputGroup-input-validationIcon_a0942f";
752
+ $8fb52a80fe52b1c7$export$dcc9e00cdad967fa = "spectrum-InputGroup-input-circleLoader_a0942f";
753
+ $8fb52a80fe52b1c7$export$92706f5c6fe4074 = "spectrum-InputGroup-input_a0942f";
754
+ $8fb52a80fe52b1c7$export$b91b6af799fd93a8 = "spectrum-InputGroup-icon_a0942f";
755
+ $8fb52a80fe52b1c7$export$5e116178f9b1556a = "spectrum-InputGroup-popover--quiet_a0942f";
756
+ $8fb52a80fe52b1c7$export$1d8b0b29e11d7cd = "spectrum-Datepicker--range_a0942f";
757
+ $8fb52a80fe52b1c7$export$58dd7cd23c92699f = "spectrum-Datepicker--datetimeRange_a0942f";
758
+ $8fb52a80fe52b1c7$export$80f9c838a8406469 = "spectrum-Datepicker-startField_a0942f";
759
+ $8fb52a80fe52b1c7$export$1c72fb41fa4f21ee = "spectrum-Datepicker-endField_a0942f";
760
+ $8fb52a80fe52b1c7$export$202113e883898dc = "spectrum-Datepicker--rangeDash_a0942f";
761
+ $8fb52a80fe52b1c7$export$e7dc768d35940237 = "is-focused_a0942f";
762
+ $8fb52a80fe52b1c7$export$eb262b15b9261fde = "spectrum-Datepicker-focusRing_a0942f";
763
+ $8fb52a80fe52b1c7$export$b8813cd5d7824ce7 = "is-hovered_a0942f";
764
+ $8fb52a80fe52b1c7$export$1e0fb04f31d3c22a = "is-selected_a0942f";
765
+ $8fb52a80fe52b1c7$export$c9f503f672e8a3c1 = "spectrum-FieldButton--invalid_a0942f";
766
+
767
+
768
+ /*
769
+ * Copyright 2020 Adobe. All rights reserved.
770
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
771
+ * you may not use this file except in compliance with the License. You may obtain a copy
772
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
773
+ *
774
+ * Unless required by applicable law or agreed to in writing, software distributed under
775
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
776
+ * OF ANY KIND, either express or implied. See the License for the specific language
777
+ * governing permissions and limitations under the License.
778
+ */
779
+
780
+
781
+
782
+
783
+
784
+ /*
785
+ * Copyright 2020 Adobe. All rights reserved.
786
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
787
+ * you may not use this file except in compliance with the License. You may obtain a copy
788
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
789
+ *
790
+ * Unless required by applicable law or agreed to in writing, software distributed under
791
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
792
+ * OF ANY KIND, either express or implied. See the License for the specific language
793
+ * governing permissions and limitations under the License.
794
+ */
795
+
796
+
797
+
798
+
799
+
800
+
801
+ function $04e96200274b03de$export$322f4580ccd8dde6(props) {
802
+ let formatter = (0, $aayOp$useDateFormatter)({
803
+ dateStyle: "short"
804
+ });
805
+ let displayNames = (0, $aayOp$useDisplayNames)();
806
+ return (0, $aayOp$useMemo)(()=>{
807
+ if (props.description) return props.description;
808
+ if (props.showFormatHelpText) return formatter.formatToParts(new Date()).map((s)=>{
809
+ if (s.type === "literal") return s.value;
810
+ return displayNames.of(s.type);
811
+ }).join(" ");
812
+ return "";
813
+ }, [
814
+ props.description,
815
+ props.showFormatHelpText,
816
+ formatter,
817
+ displayNames
818
+ ]);
819
+ }
820
+ function $04e96200274b03de$export$12ce2869ce471b1f(maxVisibleMonths) {
821
+ let { scale: scale } = (0, $aayOp$useProvider)();
822
+ let [visibleMonths, setVisibleMonths] = (0, $aayOp$useState)($04e96200274b03de$var$getVisibleMonths(scale));
823
+ (0, $aayOp$useLayoutEffect)(()=>{
824
+ let onResize = ()=>setVisibleMonths($04e96200274b03de$var$getVisibleMonths(scale));
825
+ onResize();
826
+ window.addEventListener("resize", onResize);
827
+ return ()=>{
828
+ window.removeEventListener("resize", onResize);
829
+ };
830
+ }, [
831
+ scale
832
+ ]);
833
+ return Math.max(1, Math.min(visibleMonths, maxVisibleMonths, 3));
834
+ }
835
+ function $04e96200274b03de$var$getVisibleMonths(scale) {
836
+ if (typeof window === "undefined") return 1;
837
+ let monthWidth = scale === "large" ? 336 : 280;
838
+ let gap = scale === "large" ? 30 : 24;
839
+ let popoverPadding = scale === "large" ? 32 : 48;
840
+ return Math.floor((window.innerWidth - popoverPadding * 2) / (monthWidth + gap));
841
+ }
842
+ function $04e96200274b03de$export$71a23a36270e4bf0(ref) {
843
+ let domRef = (0, $aayOp$useRef)();
844
+ (0, $aayOp$useImperativeHandle)(ref, ()=>({
845
+ ...(0, $aayOp$createDOMRef)(domRef),
846
+ focus () {
847
+ (0, $aayOp$createFocusManager)(domRef).focusFirst({
848
+ tabbable: true
849
+ });
850
+ }
851
+ }));
852
+ return domRef;
853
+ }
854
+
855
+
856
+
857
+
858
+
859
+
860
+ function $f0a04554754386b6$var$TimeField(props, ref) {
861
+ props = (0, $aayOp$useProviderProps)(props);
862
+ let { autoFocus: autoFocus , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , isQuiet: isQuiet } = props;
863
+ let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
864
+ let { locale: locale } = (0, $aayOp$useLocale)();
865
+ let state = (0, $aayOp$useTimeFieldState)({
866
+ ...props,
867
+ locale: locale
868
+ });
869
+ let inputRef = (0, $aayOp$useRef)(null);
870
+ let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $aayOp$useTimeField)(props, state, inputRef);
871
+ return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
872
+ ...props,
873
+ ref: domRef,
874
+ elementType: "span",
875
+ labelProps: labelProps,
876
+ descriptionProps: descriptionProps,
877
+ errorMessageProps: errorMessageProps,
878
+ validationState: state.validationState,
879
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-TimeField-fieldWrapper")
880
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
881
+ ref: inputRef,
882
+ fieldProps: fieldProps,
883
+ isDisabled: isDisabled,
884
+ isQuiet: isQuiet,
885
+ autoFocus: autoFocus,
886
+ validationState: state.validationState,
887
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-TimeField")
888
+ }, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $aayOp$react).createElement((0, $cfa347761f172638$export$6388987c5223b54e), {
889
+ key: i,
890
+ segment: segment,
891
+ state: state,
892
+ isDisabled: isDisabled,
893
+ isReadOnly: isReadOnly,
894
+ isRequired: isRequired
895
+ }))));
896
+ }
897
+ /**
898
+ * TimeFields allow users to enter and edit time values using a keyboard.
899
+ * Each part of the time is displayed in an individually editable segment.
900
+ */ const $f0a04554754386b6$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $aayOp$react).forwardRef($f0a04554754386b6$var$TimeField);
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+ function $beaeefa091999363$var$DatePicker(props, ref) {
911
+ props = (0, $aayOp$useProviderProps)(props);
912
+ let { autoFocus: autoFocus , isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , placeholderValue: placeholderValue , maxVisibleMonths: maxVisibleMonths = 1 } = props;
913
+ let { hoverProps: hoverProps , isHovered: isHovered } = (0, $aayOp$useHover)({
914
+ isDisabled: isDisabled
915
+ });
916
+ let targetRef = (0, $aayOp$useRef)();
917
+ let state = (0, $aayOp$useDatePickerState)({
918
+ ...props,
919
+ shouldCloseOnSelect: ()=>!state.hasTime
920
+ });
921
+ let { groupProps: groupProps , labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps , buttonProps: buttonProps , dialogProps: dialogProps , calendarProps: calendarProps } = (0, $aayOp$useDatePicker)(props, state, targetRef);
922
+ let { isOpen: isOpen , setOpen: setOpen } = state;
923
+ let { direction: direction } = (0, $aayOp$useLocale)();
924
+ let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
925
+ let stringFormatter = (0, $aayOp$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($71a986712918c3de$exports))));
926
+ let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $aayOp$useFocusRing)({
927
+ within: true,
928
+ isTextInput: true,
929
+ autoFocus: autoFocus
930
+ });
931
+ let { isFocused: isFocusedButton , focusProps: focusPropsButton } = (0, $aayOp$useFocusRing)({
932
+ within: false,
933
+ isTextInput: false,
934
+ autoFocus: autoFocus
935
+ });
936
+ let className = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup", {
937
+ "spectrum-InputGroup--quiet": isQuiet,
938
+ "spectrum-InputGroup--invalid": state.validationState === "invalid" && !isDisabled,
939
+ "is-disabled": isDisabled,
940
+ "is-hovered": isHovered,
941
+ "is-focused": isFocused,
942
+ "focus-ring": isFocusVisible && !isFocusedButton
943
+ });
944
+ let fieldClassName = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-input", {
945
+ "is-disabled": isDisabled,
946
+ "is-invalid": state.validationState === "invalid" && !isDisabled
947
+ });
948
+ // Note: this description is intentionally not passed to useDatePicker.
949
+ // The format help text is unnecessary for screen reader users because each segment already has a label.
950
+ let description = (0, $04e96200274b03de$export$322f4580ccd8dde6)(props);
951
+ if (description && !props.description) descriptionProps.id = null;
952
+ let placeholder = placeholderValue;
953
+ let timePlaceholder = placeholder && "hour" in placeholder ? placeholder : null;
954
+ let timeMinValue = props.minValue && "hour" in props.minValue ? props.minValue : null;
955
+ let timeMaxValue = props.maxValue && "hour" in props.maxValue ? props.maxValue : null;
956
+ let timeGranularity = state.granularity === "hour" || state.granularity === "minute" || state.granularity === "second" ? state.granularity : null;
957
+ let showTimeField = !!timeGranularity;
958
+ let visibleMonths = (0, $04e96200274b03de$export$12ce2869ce471b1f)(maxVisibleMonths);
959
+ return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
960
+ ...props,
961
+ ref: domRef,
962
+ elementType: "span",
963
+ description: description,
964
+ labelProps: labelProps,
965
+ descriptionProps: descriptionProps,
966
+ errorMessageProps: errorMessageProps,
967
+ validationState: state.validationState,
968
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-fieldWrapper")
969
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
970
+ ...(0, $aayOp$mergeProps)(groupProps, hoverProps, focusProps),
971
+ className: className,
972
+ ref: targetRef
973
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
974
+ isDisabled: isDisabled,
975
+ isQuiet: isQuiet,
976
+ validationState: state.validationState,
977
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-field"),
978
+ inputClassName: fieldClassName,
979
+ disableFocusRing: true
980
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $d2bb88c82604b25f$export$34dc4cfa15ead1), {
981
+ ...fieldProps,
982
+ "data-testid": "date-field",
983
+ isQuiet: isQuiet
984
+ })), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$DialogTrigger), {
985
+ type: "popover",
986
+ mobileType: "tray",
987
+ placement: direction === "rtl" ? "bottom right" : "bottom left",
988
+ targetRef: targetRef,
989
+ hideArrow: true,
990
+ isOpen: isOpen,
991
+ onOpenChange: setOpen,
992
+ shouldFlip: props.shouldFlip
993
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$FieldButton), {
994
+ ...(0, $aayOp$mergeProps)(buttonProps, focusPropsButton),
995
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-FieldButton"),
996
+ isQuiet: isQuiet,
997
+ validationState: state.validationState,
998
+ isDisabled: isDisabled || isReadOnly
999
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsworkflowCalendar), null)), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Dialog), {
1000
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialog"),
1001
+ ...dialogProps
1002
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Content), null, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1003
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialogContent")
1004
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Calendar), {
1005
+ ...calendarProps,
1006
+ visibleMonths: visibleMonths,
1007
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-calendar", {
1008
+ "is-invalid": state.validationState === "invalid"
1009
+ })
1010
+ }), showTimeField && /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1011
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-timeFields")
1012
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $f0a04554754386b6$export$5eaee2322dd727eb), {
1013
+ label: stringFormatter.format("time"),
1014
+ value: state.timeValue,
1015
+ onChange: state.setTimeValue,
1016
+ placeholderValue: timePlaceholder,
1017
+ granularity: timeGranularity,
1018
+ minValue: timeMinValue,
1019
+ maxValue: timeMaxValue,
1020
+ hourCycle: props.hourCycle,
1021
+ hideTimeZone: props.hideTimeZone,
1022
+ marginTop: "size-100"
1023
+ }))))))));
1024
+ }
1025
+ /**
1026
+ * DatePickers combine a DateField and a Calendar popover to allow users to enter or select a date and time value.
1027
+ */ const $beaeefa091999363$export$5109c6dd95d8fb00 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($beaeefa091999363$var$DatePicker);
1028
+
1029
+
1030
+ /*
1031
+ * Copyright 2020 Adobe. All rights reserved.
1032
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1033
+ * you may not use this file except in compliance with the License. You may obtain a copy
1034
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
1035
+ *
1036
+ * Unless required by applicable law or agreed to in writing, software distributed under
1037
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1038
+ * OF ANY KIND, either express or implied. See the License for the specific language
1039
+ * governing permissions and limitations under the License.
1040
+ */
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+ function $cb301300011a98f7$var$DateRangePicker(props, ref) {
1064
+ var _state_timeRange, _state_timeRange1;
1065
+ props = (0, $aayOp$useProviderProps)(props);
1066
+ let { isQuiet: isQuiet , isDisabled: isDisabled , isReadOnly: isReadOnly , autoFocus: autoFocus , placeholderValue: placeholderValue , maxVisibleMonths: maxVisibleMonths = 1 } = props;
1067
+ let { hoverProps: hoverProps , isHovered: isHovered } = (0, $aayOp$useHover)({
1068
+ isDisabled: isDisabled
1069
+ });
1070
+ let targetRef = (0, $aayOp$useRef)();
1071
+ let state = (0, $aayOp$useDateRangePickerState)({
1072
+ ...props,
1073
+ shouldCloseOnSelect: ()=>!state.hasTime
1074
+ });
1075
+ let { labelProps: labelProps , groupProps: groupProps , buttonProps: buttonProps , dialogProps: dialogProps , startFieldProps: startFieldProps , endFieldProps: endFieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps , calendarProps: calendarProps } = (0, $aayOp$useDateRangePicker)(props, state, targetRef);
1076
+ let { isOpen: isOpen , setOpen: setOpen } = state;
1077
+ let { direction: direction } = (0, $aayOp$useLocale)();
1078
+ let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
1079
+ let stringFormatter = (0, $aayOp$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($71a986712918c3de$exports))));
1080
+ let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $aayOp$useFocusRing)({
1081
+ within: true,
1082
+ isTextInput: true,
1083
+ autoFocus: autoFocus
1084
+ });
1085
+ let { isFocused: isFocusedButton , focusProps: focusPropsButton } = (0, $aayOp$useFocusRing)({
1086
+ within: false,
1087
+ isTextInput: false,
1088
+ autoFocus: autoFocus
1089
+ });
1090
+ let className = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup", {
1091
+ "spectrum-InputGroup--quiet": isQuiet,
1092
+ "spectrum-InputGroup--invalid": state.validationState === "invalid" && !isDisabled,
1093
+ "is-disabled": isDisabled,
1094
+ "is-hovered": isHovered,
1095
+ "is-focused": isFocused,
1096
+ "focus-ring": isFocusVisible && !isFocusedButton
1097
+ });
1098
+ let fieldClassName = (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-input", {
1099
+ "is-disabled": isDisabled,
1100
+ "is-invalid": state.validationState === "invalid" && !isDisabled
1101
+ });
1102
+ // Note: this description is intentionally not passed to useDatePicker.
1103
+ // The format help text is unnecessary for screen reader users because each segment already has a label.
1104
+ let description = (0, $04e96200274b03de$export$322f4580ccd8dde6)(props);
1105
+ if (description && !props.description) descriptionProps.id = null;
1106
+ let placeholder = placeholderValue;
1107
+ let timePlaceholder = placeholder && "hour" in placeholder ? placeholder : null;
1108
+ let timeMinValue = props.minValue && "hour" in props.minValue ? props.minValue : null;
1109
+ let timeMaxValue = props.maxValue && "hour" in props.maxValue ? props.maxValue : null;
1110
+ let timeGranularity = state.granularity === "hour" || state.granularity === "minute" || state.granularity === "second" ? state.granularity : null;
1111
+ let showTimeField = !!timeGranularity;
1112
+ let visibleMonths = (0, $04e96200274b03de$export$12ce2869ce471b1f)(maxVisibleMonths);
1113
+ return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
1114
+ ...props,
1115
+ ref: domRef,
1116
+ elementType: "span",
1117
+ description: description,
1118
+ labelProps: labelProps,
1119
+ descriptionProps: descriptionProps,
1120
+ errorMessageProps: errorMessageProps,
1121
+ validationState: state.validationState,
1122
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-fieldWrapper")
1123
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1124
+ ...(0, $aayOp$mergeProps)(groupProps, hoverProps, focusProps),
1125
+ className: className,
1126
+ ref: targetRef
1127
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
1128
+ isDisabled: isDisabled,
1129
+ isQuiet: isQuiet,
1130
+ validationState: state.validationState,
1131
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-InputGroup-field"),
1132
+ inputClassName: fieldClassName,
1133
+ disableFocusRing: true
1134
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $d2bb88c82604b25f$export$34dc4cfa15ead1), {
1135
+ ...startFieldProps,
1136
+ "data-testid": "start-date",
1137
+ isQuiet: props.isQuiet,
1138
+ inputClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-startField")
1139
+ }), /*#__PURE__*/ (0, $aayOp$react).createElement($cb301300011a98f7$var$DateRangeDash, null), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $d2bb88c82604b25f$export$34dc4cfa15ead1), {
1140
+ ...endFieldProps,
1141
+ "data-testid": "end-date",
1142
+ isQuiet: props.isQuiet,
1143
+ inputClassName: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-Datepicker-endField", (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-endField"))
1144
+ })), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$DialogTrigger), {
1145
+ type: "popover",
1146
+ mobileType: "tray",
1147
+ placement: direction === "rtl" ? "bottom right" : "bottom left",
1148
+ targetRef: targetRef,
1149
+ hideArrow: true,
1150
+ isOpen: isOpen,
1151
+ onOpenChange: setOpen,
1152
+ shouldFlip: props.shouldFlip
1153
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$FieldButton), {
1154
+ ...(0, $aayOp$mergeProps)(buttonProps, focusPropsButton),
1155
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fb52a80fe52b1c7$exports))), "spectrum-FieldButton"),
1156
+ isQuiet: isQuiet,
1157
+ validationState: state.validationState,
1158
+ isDisabled: isDisabled || isReadOnly
1159
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$spectrumiconsworkflowCalendar), null)), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Dialog), {
1160
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialog"),
1161
+ ...dialogProps
1162
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Content), null, /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1163
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-dialogContent")
1164
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$RangeCalendar), {
1165
+ ...calendarProps,
1166
+ visibleMonths: visibleMonths,
1167
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-calendar", {
1168
+ "is-invalid": state.validationState === "invalid"
1169
+ })
1170
+ }), showTimeField && /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Flex), {
1171
+ gap: "size-100",
1172
+ marginTop: "size-100",
1173
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-timeFields")
1174
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $f0a04554754386b6$export$5eaee2322dd727eb), {
1175
+ label: stringFormatter.format("startTime"),
1176
+ value: ((_state_timeRange = state.timeRange) === null || _state_timeRange === void 0 ? void 0 : _state_timeRange.start) || null,
1177
+ onChange: (v)=>state.setTime("start", v),
1178
+ placeholderValue: timePlaceholder,
1179
+ granularity: timeGranularity,
1180
+ minValue: timeMinValue,
1181
+ maxValue: timeMaxValue,
1182
+ hourCycle: props.hourCycle,
1183
+ hideTimeZone: props.hideTimeZone,
1184
+ flex: true
1185
+ }), /*#__PURE__*/ (0, $aayOp$react).createElement((0, $f0a04554754386b6$export$5eaee2322dd727eb), {
1186
+ label: stringFormatter.format("endTime"),
1187
+ value: ((_state_timeRange1 = state.timeRange) === null || _state_timeRange1 === void 0 ? void 0 : _state_timeRange1.end) || null,
1188
+ onChange: (v)=>state.setTime("end", v),
1189
+ placeholderValue: timePlaceholder,
1190
+ granularity: timeGranularity,
1191
+ minValue: timeMinValue,
1192
+ maxValue: timeMaxValue,
1193
+ hourCycle: props.hourCycle,
1194
+ hideTimeZone: props.hideTimeZone,
1195
+ flex: true
1196
+ }))))))));
1197
+ }
1198
+ function $cb301300011a98f7$var$DateRangeDash() {
1199
+ return /*#__PURE__*/ (0, $aayOp$react).createElement("div", {
1200
+ "aria-hidden": "true",
1201
+ "data-testid": "date-range-dash",
1202
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-rangeDash")
1203
+ });
1204
+ }
1205
+ /**
1206
+ * DateRangePickers combine two DateFields and a RangeCalendar popover to allow users
1207
+ * to enter or select a date and time range.
1208
+ */ const $cb301300011a98f7$export$17334619f3ac2224 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($cb301300011a98f7$var$DateRangePicker);
1209
+
1210
+
1211
+
1212
+ /*
1213
+ * Copyright 2020 Adobe. All rights reserved.
1214
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1215
+ * you may not use this file except in compliance with the License. You may obtain a copy
1216
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
1217
+ *
1218
+ * Unless required by applicable law or agreed to in writing, software distributed under
1219
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1220
+ * OF ANY KIND, either express or implied. See the License for the specific language
1221
+ * governing permissions and limitations under the License.
1222
+ */
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+ function $0129798af6791690$var$DateField(props, ref) {
1235
+ props = (0, $aayOp$useProviderProps)(props);
1236
+ let { autoFocus: autoFocus , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , isQuiet: isQuiet } = props;
1237
+ let domRef = (0, $04e96200274b03de$export$71a23a36270e4bf0)(ref);
1238
+ let { locale: locale } = (0, $aayOp$useLocale)();
1239
+ let state = (0, $aayOp$useDateFieldState)({
1240
+ ...props,
1241
+ locale: locale,
1242
+ createCalendar: $aayOp$createCalendar
1243
+ });
1244
+ let inputRef = (0, $aayOp$useRef)(null);
1245
+ let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $aayOp$useDateField)(props, state, inputRef);
1246
+ // Note: this description is intentionally not passed to useDatePicker.
1247
+ // The format help text is unnecessary for screen reader users because each segment already has a label.
1248
+ let description = (0, $04e96200274b03de$export$322f4580ccd8dde6)(props);
1249
+ if (description && !props.description) descriptionProps.id = null;
1250
+ return /*#__PURE__*/ (0, $aayOp$react).createElement((0, $aayOp$Field), {
1251
+ ...props,
1252
+ ref: domRef,
1253
+ elementType: "span",
1254
+ description: description,
1255
+ labelProps: labelProps,
1256
+ descriptionProps: descriptionProps,
1257
+ errorMessageProps: errorMessageProps,
1258
+ validationState: state.validationState,
1259
+ UNSAFE_className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-Datepicker-fieldWrapper")
1260
+ }, /*#__PURE__*/ (0, $aayOp$react).createElement((0, $79348162c55d687f$export$f5b8910cec6cf069), {
1261
+ ref: inputRef,
1262
+ fieldProps: fieldProps,
1263
+ isDisabled: isDisabled,
1264
+ isQuiet: isQuiet,
1265
+ autoFocus: autoFocus,
1266
+ validationState: state.validationState,
1267
+ className: (0, $aayOp$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($465eb3a688ef3440$exports))), "react-spectrum-DateField")
1268
+ }, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $aayOp$react).createElement((0, $cfa347761f172638$export$6388987c5223b54e), {
1269
+ key: i,
1270
+ segment: segment,
1271
+ state: state,
1272
+ isDisabled: isDisabled,
1273
+ isReadOnly: isReadOnly,
1274
+ isRequired: isRequired
1275
+ }))));
1276
+ }
1277
+ /**
1278
+ * DateFields allow users to enter and edit date and time values using a keyboard.
1279
+ * Each part of a date value is displayed in an individually editable segment.
1280
+ */ const $0129798af6791690$export$d9781c7894a82487 = /*#__PURE__*/ (0, $aayOp$react).forwardRef($0129798af6791690$var$DateField);
1281
+
1282
+
1283
+
1284
+
1285
+ export {$beaeefa091999363$export$5109c6dd95d8fb00 as DatePicker, $cb301300011a98f7$export$17334619f3ac2224 as DateRangePicker, $f0a04554754386b6$export$5eaee2322dd727eb as TimeField, $0129798af6791690$export$d9781c7894a82487 as DateField};
1286
+ //# sourceMappingURL=module.js.map