@jobber/components 7.8.0 → 7.9.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.
Files changed (64) hide show
  1. package/dist/Autocomplete/index.mjs +1 -1
  2. package/dist/Button/buttonRenderAdapter.d.ts +304 -0
  3. package/dist/Card/index.cjs +7 -4
  4. package/dist/Card/index.mjs +7 -4
  5. package/dist/Countdown/index.cjs +1 -1
  6. package/dist/Countdown/index.mjs +1 -1
  7. package/dist/Countdown-cjs.js +1 -1
  8. package/dist/Countdown-es.js +1 -1
  9. package/dist/DataDump/index.cjs +7 -4
  10. package/dist/DataDump/index.mjs +7 -4
  11. package/dist/DrawerRoot-cjs.js +2634 -2142
  12. package/dist/DrawerRoot-es.js +2523 -2065
  13. package/dist/InputAvatar/index.cjs +1 -1
  14. package/dist/InputAvatar/index.mjs +1 -1
  15. package/dist/InputFile/index.cjs +1 -1
  16. package/dist/InputFile/index.mjs +1 -1
  17. package/dist/InputFile-cjs.js +1 -1
  18. package/dist/InputFile-es.js +1 -1
  19. package/dist/InputNumber/index.cjs +2441 -186
  20. package/dist/InputNumber/index.mjs +2361 -106
  21. package/dist/Menu/Menu.Legacy.d.ts +3 -0
  22. package/dist/Menu/Menu.d.ts +66 -24
  23. package/dist/Menu/Menu.types.d.ts +8 -108
  24. package/dist/Menu/MenuBottomSheet.d.ts +29 -0
  25. package/dist/Menu/MenuDropdown.d.ts +29 -0
  26. package/dist/Menu/index.cjs +7 -4
  27. package/dist/Menu/index.mjs +7 -4
  28. package/dist/Menu/menuComposableShared.d.ts +27 -0
  29. package/dist/Menu/menuComposableTypes.d.ts +99 -0
  30. package/dist/Menu-cjs.js +828 -8419
  31. package/dist/Menu-es.js +823 -8414
  32. package/dist/MenuSubmenuTrigger-cjs.js +5283 -0
  33. package/dist/MenuSubmenuTrigger-es.js +5224 -0
  34. package/dist/Modal/index.mjs +1 -1
  35. package/dist/Page/index.cjs +6 -3
  36. package/dist/Page/index.mjs +6 -3
  37. package/dist/Page-cjs.js +1 -1
  38. package/dist/Page-es.js +1 -1
  39. package/dist/RecurringSelect/index.cjs +0 -1
  40. package/dist/RecurringSelect/index.mjs +0 -1
  41. package/dist/docs/Menu/Menu.md +7 -62
  42. package/dist/floating-ui.react-dom-es.js +1 -1
  43. package/dist/floating-ui.react-es.js +2 -2
  44. package/dist/index-cjs.js +1161 -166
  45. package/dist/index-es.js +1160 -166
  46. package/dist/index.cjs +7 -3
  47. package/dist/index.esm-es.js +1 -1
  48. package/dist/index.mjs +7 -3
  49. package/dist/primitives/BottomSheet/index.cjs +0 -1
  50. package/dist/primitives/BottomSheet/index.mjs +0 -1
  51. package/dist/primitives/index.cjs +0 -1
  52. package/dist/primitives/index.mjs +0 -1
  53. package/dist/styles.css +540 -31
  54. package/dist/unstyledPrimitives/index.cjs +6662 -8039
  55. package/dist/unstyledPrimitives/index.d.ts +2 -1
  56. package/dist/unstyledPrimitives/index.mjs +6733 -8111
  57. package/dist/useRenderElement-cjs.js +212 -212
  58. package/dist/useRenderElement-es.js +213 -213
  59. package/dist/utils/meta/meta.json +9 -0
  60. package/package.json +2 -2
  61. package/dist/Text-cjs2.js +0 -2484
  62. package/dist/Text-es2.js +0 -2417
  63. package/dist/index-cjs2.js +0 -1189
  64. package/dist/index-es2.js +0 -1186
package/dist/Text-cjs2.js DELETED
@@ -1,2484 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var clsx = require('./clsx-cjs.js');
5
-
6
- /*
7
- * Copyright 2020 Adobe. All rights reserved.
8
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License. You may obtain a copy
10
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software distributed under
13
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
14
- * OF ANY KIND, either express or implied. See the License for the specific language
15
- * governing permissions and limitations under the License.
16
- */
17
- const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== 'undefined' ? (React).useLayoutEffect : ()=>{};
18
-
19
- /*
20
- * Copyright 2023 Adobe. All rights reserved.
21
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
22
- * you may not use this file except in compliance with the License. You may obtain a copy
23
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
24
- *
25
- * Unless required by applicable law or agreed to in writing, software distributed under
26
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
27
- * OF ANY KIND, either express or implied. See the License for the specific language
28
- * governing permissions and limitations under the License.
29
- */
30
-
31
- var $8ae05eaa5c114e9c$var$_React_useInsertionEffect;
32
- // Use the earliest effect type possible. useInsertionEffect runs during the mutation phase,
33
- // before all layout effects, but is available only in React 18 and later.
34
- const $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = (React)['useInsertionEffect']) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c);
35
- function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
36
- const ref = (React.useRef)(null);
37
- $8ae05eaa5c114e9c$var$useEarlyEffect(()=>{
38
- ref.current = fn;
39
- }, [
40
- fn
41
- ]);
42
- // @ts-ignore
43
- return (React.useCallback)((...args)=>{
44
- const f = ref.current;
45
- return f === null || f === void 0 ? void 0 : f(...args);
46
- }, []);
47
- }
48
-
49
- /*
50
- * Copyright 2020 Adobe. All rights reserved.
51
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
52
- * you may not use this file except in compliance with the License. You may obtain a copy
53
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
54
- *
55
- * Unless required by applicable law or agreed to in writing, software distributed under
56
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
57
- * OF ANY KIND, either express or implied. See the License for the specific language
58
- * governing permissions and limitations under the License.
59
- */
60
-
61
- function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
62
- let [value, setValue] = (React.useState)(defaultValue);
63
- let effect = (React.useRef)(null);
64
- // Store the function in a ref so we can always access the current version
65
- // which has the proper `value` in scope.
66
- let nextRef = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
67
- if (!effect.current) return;
68
- // Run the generator to the next yield.
69
- let newValue = effect.current.next();
70
- // If the generator is done, reset the effect.
71
- if (newValue.done) {
72
- effect.current = null;
73
- return;
74
- }
75
- // If the value is the same as the current value,
76
- // then continue to the next yield. Otherwise,
77
- // set the value in state and wait for the next layout effect.
78
- if (value === newValue.value) nextRef();
79
- else setValue(newValue.value);
80
- });
81
- ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
82
- // If there is an effect currently running, continue to the next yield.
83
- if (effect.current) nextRef();
84
- });
85
- let queue = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((fn)=>{
86
- effect.current = fn(value);
87
- nextRef();
88
- });
89
- return [
90
- value,
91
- queue
92
- ];
93
- }
94
-
95
- /*
96
- * Copyright 2020 Adobe. All rights reserved.
97
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
98
- * you may not use this file except in compliance with the License. You may obtain a copy
99
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
100
- *
101
- * Unless required by applicable law or agreed to in writing, software distributed under
102
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
103
- * OF ANY KIND, either express or implied. See the License for the specific language
104
- * governing permissions and limitations under the License.
105
- */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
106
- // guarded by a check that it only runs on the client side.
107
- // eslint-disable-next-line rulesdir/useLayoutEffectRule
108
-
109
- // Default context value to use in case there is no SSRProvider. This is fine for
110
- // client-only apps. In order to support multiple copies of React Aria potentially
111
- // being on the page at once, the prefix is set to a random number. SSRProvider
112
- // will reset this to zero for consistency between server and client, so in the
113
- // SSR case multiple copies of React Aria is not supported.
114
- const $b5e257d569688ac6$var$defaultContext = {
115
- prefix: String(Math.round(Math.random() * 10000000000)),
116
- current: 0
117
- };
118
- const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (React).createContext($b5e257d569688ac6$var$defaultContext);
119
- const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (React).createContext(false);
120
- let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
121
- let $b5e257d569688ac6$var$componentIds = new WeakMap();
122
- function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
123
- let ctx = (React.useContext)($b5e257d569688ac6$var$SSRContext);
124
- let ref = (React.useRef)(null);
125
- // eslint-disable-next-line rulesdir/pure-render
126
- if (ref.current === null && !isDisabled) {
127
- var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
128
- // In strict mode, React renders components twice, and the ref will be reset to null on the second render.
129
- // This means our id counter will be incremented twice instead of once. This is a problem because on the
130
- // server, components are only rendered once and so ids generated on the server won't match the client.
131
- // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
132
- // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
133
- // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
134
- // To ensure that we only increment the global counter once, we store the starting id for this component in
135
- // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
136
- // Since React runs the second render immediately after the first, this is safe.
137
- // @ts-ignore
138
- let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (React).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
139
- if (currentOwner) {
140
- let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
141
- if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
142
- $b5e257d569688ac6$var$componentIds.set(currentOwner, {
143
- id: ctx.current,
144
- state: currentOwner.memoizedState
145
- });
146
- else if (currentOwner.memoizedState !== prevComponentValue.state) {
147
- // On the second render, the memoizedState gets reset by React.
148
- // Reset the counter, and remove from the weak map so we don't
149
- // do this for subsequent useId calls.
150
- ctx.current = prevComponentValue.id;
151
- $b5e257d569688ac6$var$componentIds.delete(currentOwner);
152
- }
153
- }
154
- // eslint-disable-next-line rulesdir/pure-render
155
- ref.current = ++ctx.current;
156
- }
157
- // eslint-disable-next-line rulesdir/pure-render
158
- return ref.current;
159
- }
160
- function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
161
- let ctx = (React.useContext)($b5e257d569688ac6$var$SSRContext);
162
- // If we are rendering in a non-DOM environment, and there's no SSRProvider,
163
- // provide a warning to hint to the developer to add one.
164
- if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && process.env.NODE_ENV !== 'production') console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');
165
- let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
166
- let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`;
167
- return defaultId || `${prefix}-${counter}`;
168
- }
169
- function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
170
- let id = (React).useId();
171
- let [didSSR] = (React.useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
172
- let prefix = didSSR || process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
173
- return defaultId || `${prefix}-${id}`;
174
- }
175
- const $b5e257d569688ac6$export$619500959fc48b26 = typeof (React)['useId'] === 'function' ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
176
- function $b5e257d569688ac6$var$getSnapshot() {
177
- return false;
178
- }
179
- function $b5e257d569688ac6$var$getServerSnapshot() {
180
- return true;
181
- }
182
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
183
- function $b5e257d569688ac6$var$subscribe(onStoreChange) {
184
- // noop
185
- return ()=>{};
186
- }
187
- function $b5e257d569688ac6$export$535bd6ca7f90a273() {
188
- // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
189
- if (typeof (React)['useSyncExternalStore'] === 'function') return (React)['useSyncExternalStore']($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
190
- // eslint-disable-next-line react-hooks/rules-of-hooks
191
- return (React.useContext)($b5e257d569688ac6$var$IsSSRContext);
192
- }
193
-
194
- /*
195
- * Copyright 2020 Adobe. All rights reserved.
196
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
197
- * you may not use this file except in compliance with the License. You may obtain a copy
198
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
199
- *
200
- * Unless required by applicable law or agreed to in writing, software distributed under
201
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
202
- * OF ANY KIND, either express or implied. See the License for the specific language
203
- * governing permissions and limitations under the License.
204
- */
205
-
206
-
207
-
208
- // copied from SSRProvider.tsx to reduce exports, if needed again, consider sharing
209
- let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
210
- let $bdb11010cef70236$export$d41a04c74483c6ef = new Map();
211
- // This allows us to clean up the idsUpdaterMap when the id is no longer used.
212
- // Map is a strong reference, so unused ids wouldn't be cleaned up otherwise.
213
- // This can happen in suspended components where mount/unmount is not called.
214
- let $bdb11010cef70236$var$registry;
215
- if (typeof FinalizationRegistry !== 'undefined') $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue)=>{
216
- $bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
217
- });
218
- function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
219
- let [value, setValue] = (React.useState)(defaultId);
220
- let nextId = (React.useRef)(null);
221
- let res = ($b5e257d569688ac6$export$619500959fc48b26)(value);
222
- let cleanupRef = (React.useRef)(null);
223
- if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);
224
- if ($bdb11010cef70236$var$canUseDOM) {
225
- const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
226
- if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
227
- else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
228
- nextId
229
- ]);
230
- }
231
- ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
232
- let r = res;
233
- return ()=>{
234
- // In Suspense, the cleanup function may be not called
235
- // when it is though, also remove it from the finalization registry.
236
- if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
237
- $bdb11010cef70236$export$d41a04c74483c6ef.delete(r);
238
- };
239
- }, [
240
- res
241
- ]);
242
- // This cannot cause an infinite loop because the ref is always cleaned up.
243
- // eslint-disable-next-line
244
- (React.useEffect)(()=>{
245
- let newId = nextId.current;
246
- if (newId) setValue(newId);
247
- return ()=>{
248
- if (newId) nextId.current = null;
249
- };
250
- });
251
- return res;
252
- }
253
- function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
254
- if (idA === idB) return idA;
255
- let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
256
- if (setIdsA) {
257
- setIdsA.forEach((ref)=>ref.current = idB);
258
- return idB;
259
- }
260
- let setIdsB = $bdb11010cef70236$export$d41a04c74483c6ef.get(idB);
261
- if (setIdsB) {
262
- setIdsB.forEach((ref)=>ref.current = idA);
263
- return idA;
264
- }
265
- return idB;
266
- }
267
- function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
268
- let id = $bdb11010cef70236$export$f680877a34711e37();
269
- let [resolvedId, setResolvedId] = ($1dbecbe27a04f9af$export$14d238f342723f25)(id);
270
- let updateId = (React.useCallback)(()=>{
271
- setResolvedId(function*() {
272
- yield id;
273
- yield document.getElementById(id) ? id : undefined;
274
- });
275
- }, [
276
- id,
277
- setResolvedId
278
- ]);
279
- ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(updateId, [
280
- id,
281
- updateId,
282
- ...depArray
283
- ]);
284
- return resolvedId;
285
- }
286
-
287
- /*
288
- * Copyright 2020 Adobe. All rights reserved.
289
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
290
- * you may not use this file except in compliance with the License. You may obtain a copy
291
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
292
- *
293
- * Unless required by applicable law or agreed to in writing, software distributed under
294
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
295
- * OF ANY KIND, either express or implied. See the License for the specific language
296
- * governing permissions and limitations under the License.
297
- */ /**
298
- * Calls all functions in the order they were chained with the same arguments.
299
- */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
300
- return (...args)=>{
301
- for (let callback of callbacks)if (typeof callback === 'function') callback(...args);
302
- };
303
- }
304
-
305
- const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
306
- var _el_ownerDocument;
307
- return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
308
- };
309
- const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
310
- if (el && 'window' in el && el.window === el) return el;
311
- const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
312
- return doc.defaultView || window;
313
- };
314
- /**
315
- * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
316
- */ function $431fbd86ca7dc216$var$isNode(value) {
317
- return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';
318
- }
319
- function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
320
- return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;
321
- }
322
-
323
- let $f4e2df6bd15f8569$var$_shadowDOM = false;
324
- function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
325
- return $f4e2df6bd15f8569$var$_shadowDOM;
326
- }
327
-
328
- // Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16
329
-
330
-
331
- function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
332
- if (!($f4e2df6bd15f8569$export$98658e8c59125e6a)()) return otherNode && node ? node.contains(otherNode) : false;
333
- if (!node || !otherNode) return false;
334
- let currentNode = otherNode;
335
- while(currentNode !== null){
336
- if (currentNode === node) return true;
337
- if (currentNode.tagName === 'SLOT' && currentNode.assignedSlot) // Element is slotted
338
- currentNode = currentNode.assignedSlot.parentNode;
339
- else if (($431fbd86ca7dc216$export$af51f0f06c0f328a)(currentNode)) // Element is in shadow root
340
- currentNode = currentNode.host;
341
- else currentNode = currentNode.parentNode;
342
- }
343
- return false;
344
- }
345
- const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document)=>{
346
- var _activeElement_shadowRoot;
347
- if (!($f4e2df6bd15f8569$export$98658e8c59125e6a)()) return doc.activeElement;
348
- let activeElement = doc.activeElement;
349
- while(activeElement && 'shadowRoot' in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement))activeElement = activeElement.shadowRoot.activeElement;
350
- return activeElement;
351
- };
352
- function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
353
- if (($f4e2df6bd15f8569$export$98658e8c59125e6a)() && event.target.shadowRoot) {
354
- if (event.composedPath) return event.composedPath()[0];
355
- }
356
- return event.target;
357
- }
358
-
359
- /*
360
- * Copyright 2020 Adobe. All rights reserved.
361
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
362
- * you may not use this file except in compliance with the License. You may obtain a copy
363
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
364
- *
365
- * Unless required by applicable law or agreed to in writing, software distributed under
366
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
367
- * OF ANY KIND, either express or implied. See the License for the specific language
368
- * governing permissions and limitations under the License.
369
- */
370
-
371
-
372
- function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
373
- // Start with a base clone of the first argument. This is a lot faster than starting
374
- // with an empty object and adding properties as we go.
375
- let result = {
376
- ...args[0]
377
- };
378
- for(let i = 1; i < args.length; i++){
379
- let props = args[i];
380
- for(let key in props){
381
- let a = result[key];
382
- let b = props[key];
383
- // Chain events
384
- if (typeof a === 'function' && typeof b === 'function' && // This is a lot faster than a regex.
385
- key[0] === 'o' && key[1] === 'n' && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
386
- else if ((key === 'className' || key === 'UNSAFE_className') && typeof a === 'string' && typeof b === 'string') result[key] = (clsx.clsx)(a, b);
387
- else if (key === 'id' && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
388
- else result[key] = b !== undefined ? b : a;
389
- }
390
- }
391
- return result;
392
- }
393
-
394
- /*
395
- * Copyright 2020 Adobe. All rights reserved.
396
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
397
- * you may not use this file except in compliance with the License. You may obtain a copy
398
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
399
- *
400
- * Unless required by applicable law or agreed to in writing, software distributed under
401
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
402
- * OF ANY KIND, either express or implied. See the License for the specific language
403
- * governing permissions and limitations under the License.
404
- */ function $5dc95899b306f630$export$c9058316764c140e(...refs) {
405
- if (refs.length === 1 && refs[0]) return refs[0];
406
- return (value)=>{
407
- let hasCleanup = false;
408
- const cleanups = refs.map((ref)=>{
409
- const cleanup = $5dc95899b306f630$var$setRef(ref, value);
410
- hasCleanup || (hasCleanup = typeof cleanup == 'function');
411
- return cleanup;
412
- });
413
- if (hasCleanup) return ()=>{
414
- cleanups.forEach((cleanup, i)=>{
415
- if (typeof cleanup === 'function') cleanup();
416
- else $5dc95899b306f630$var$setRef(refs[i], null);
417
- });
418
- };
419
- };
420
- }
421
- function $5dc95899b306f630$var$setRef(ref, value) {
422
- if (typeof ref === 'function') return ref(value);
423
- else if (ref != null) ref.current = value;
424
- }
425
-
426
- /*
427
- * Copyright 2020 Adobe. All rights reserved.
428
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
429
- * you may not use this file except in compliance with the License. You may obtain a copy
430
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
431
- *
432
- * Unless required by applicable law or agreed to in writing, software distributed under
433
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
434
- * OF ANY KIND, either express or implied. See the License for the specific language
435
- * governing permissions and limitations under the License.
436
- */ const $65484d02dcb7eb3e$var$DOMPropNames = new Set([
437
- 'id'
438
- ]);
439
- const $65484d02dcb7eb3e$var$labelablePropNames = new Set([
440
- 'aria-label',
441
- 'aria-labelledby',
442
- 'aria-describedby',
443
- 'aria-details'
444
- ]);
445
- // See LinkDOMProps in dom.d.ts.
446
- const $65484d02dcb7eb3e$var$linkPropNames = new Set([
447
- 'href',
448
- 'hrefLang',
449
- 'target',
450
- 'rel',
451
- 'download',
452
- 'ping',
453
- 'referrerPolicy'
454
- ]);
455
- const $65484d02dcb7eb3e$var$globalAttrs = new Set([
456
- 'dir',
457
- 'lang',
458
- 'hidden',
459
- 'inert',
460
- 'translate'
461
- ]);
462
- const $65484d02dcb7eb3e$var$globalEvents = new Set([
463
- 'onClick',
464
- 'onAuxClick',
465
- 'onContextMenu',
466
- 'onDoubleClick',
467
- 'onMouseDown',
468
- 'onMouseEnter',
469
- 'onMouseLeave',
470
- 'onMouseMove',
471
- 'onMouseOut',
472
- 'onMouseOver',
473
- 'onMouseUp',
474
- 'onTouchCancel',
475
- 'onTouchEnd',
476
- 'onTouchMove',
477
- 'onTouchStart',
478
- 'onPointerDown',
479
- 'onPointerMove',
480
- 'onPointerUp',
481
- 'onPointerCancel',
482
- 'onPointerEnter',
483
- 'onPointerLeave',
484
- 'onPointerOver',
485
- 'onPointerOut',
486
- 'onGotPointerCapture',
487
- 'onLostPointerCapture',
488
- 'onScroll',
489
- 'onWheel',
490
- 'onAnimationStart',
491
- 'onAnimationEnd',
492
- 'onAnimationIteration',
493
- 'onTransitionCancel',
494
- 'onTransitionEnd',
495
- 'onTransitionRun',
496
- 'onTransitionStart'
497
- ]);
498
- const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
499
- function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
500
- let { labelable: labelable, isLink: isLink, global: global, events: events = global, propNames: propNames } = opts;
501
- let filteredProps = {};
502
- for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && $65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith('Capture') && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7)) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
503
- return filteredProps;
504
- }
505
-
506
- /*
507
- * Copyright 2020 Adobe. All rights reserved.
508
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
509
- * you may not use this file except in compliance with the License. You may obtain a copy
510
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
511
- *
512
- * Unless required by applicable law or agreed to in writing, software distributed under
513
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
514
- * OF ANY KIND, either express or implied. See the License for the specific language
515
- * governing permissions and limitations under the License.
516
- */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
517
- if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
518
- preventScroll: true
519
- });
520
- else {
521
- let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
522
- element.focus();
523
- $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
524
- }
525
- }
526
- let $7215afc6de606d6b$var$supportsPreventScrollCached = null;
527
- function $7215afc6de606d6b$var$supportsPreventScroll() {
528
- if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
529
- $7215afc6de606d6b$var$supportsPreventScrollCached = false;
530
- try {
531
- let focusElem = document.createElement('div');
532
- focusElem.focus({
533
- get preventScroll () {
534
- $7215afc6de606d6b$var$supportsPreventScrollCached = true;
535
- return true;
536
- }
537
- });
538
- } catch {
539
- // Ignore
540
- }
541
- }
542
- return $7215afc6de606d6b$var$supportsPreventScrollCached;
543
- }
544
- function $7215afc6de606d6b$var$getScrollableElements(element) {
545
- let parent = element.parentNode;
546
- let scrollableElements = [];
547
- let rootScrollingElement = document.scrollingElement || document.documentElement;
548
- while(parent instanceof HTMLElement && parent !== rootScrollingElement){
549
- if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
550
- element: parent,
551
- scrollTop: parent.scrollTop,
552
- scrollLeft: parent.scrollLeft
553
- });
554
- parent = parent.parentNode;
555
- }
556
- if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
557
- element: rootScrollingElement,
558
- scrollTop: rootScrollingElement.scrollTop,
559
- scrollLeft: rootScrollingElement.scrollLeft
560
- });
561
- return scrollableElements;
562
- }
563
- function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
564
- for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){
565
- element.scrollTop = scrollTop;
566
- element.scrollLeft = scrollLeft;
567
- }
568
- }
569
-
570
- /*
571
- * Copyright 2020 Adobe. All rights reserved.
572
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
573
- * you may not use this file except in compliance with the License. You may obtain a copy
574
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
575
- *
576
- * Unless required by applicable law or agreed to in writing, software distributed under
577
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
578
- * OF ANY KIND, either express or implied. See the License for the specific language
579
- * governing permissions and limitations under the License.
580
- */ function $c87311424ea30a05$var$testUserAgent(re) {
581
- var _window_navigator_userAgentData;
582
- if (typeof window === 'undefined' || window.navigator == null) return false;
583
- let brands = (_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands;
584
- return Array.isArray(brands) && brands.some((brand)=>re.test(brand.brand)) || re.test(window.navigator.userAgent);
585
- }
586
- function $c87311424ea30a05$var$testPlatform(re) {
587
- var _window_navigator_userAgentData;
588
- return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
589
- }
590
- function $c87311424ea30a05$var$cached(fn) {
591
- if (process.env.NODE_ENV === 'test') return fn;
592
- let res = null;
593
- return ()=>{
594
- if (res == null) res = fn();
595
- return res;
596
- };
597
- }
598
- const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
599
- return $c87311424ea30a05$var$testPlatform(/^Mac/i);
600
- });
601
- const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
602
- return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
603
- });
604
- const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
605
- return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
606
- $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
607
- });
608
- const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
609
- return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
610
- });
611
- const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
612
- return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
613
- });
614
- const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
615
- return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
616
- });
617
- const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
618
- return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
619
- });
620
- const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
621
- return $c87311424ea30a05$var$testUserAgent(/Android/i);
622
- });
623
- const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
624
- return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
625
- });
626
-
627
- /*
628
- * Copyright 2020 Adobe. All rights reserved.
629
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
630
- * you may not use this file except in compliance with the License. You may obtain a copy
631
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
632
- *
633
- * Unless required by applicable law or agreed to in writing, software distributed under
634
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
635
- * OF ANY KIND, either express or implied. See the License for the specific language
636
- * governing permissions and limitations under the License.
637
- */ // We store a global list of elements that are currently transitioning,
638
- // mapped to a set of CSS properties that are transitioning for that element.
639
- // This is necessary rather than a simple count of transitions because of browser
640
- // bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather
641
- // than one or the other. So we need to track what's actually transitioning so that
642
- // we can ignore these duplicate events.
643
- let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
644
- // A list of callbacks to call once there are no transitioning elements.
645
- let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
646
- function $bbed8b41f857bcc0$var$setupGlobalEvents() {
647
- if (typeof window === 'undefined') return;
648
- function isTransitionEvent(event) {
649
- return 'propertyName' in event;
650
- }
651
- let onTransitionStart = (e)=>{
652
- if (!isTransitionEvent(e) || !e.target) return;
653
- // Add the transitioning property to the list for this element.
654
- let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
655
- if (!transitions) {
656
- transitions = new Set();
657
- $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
658
- // The transitioncancel event must be registered on the element itself, rather than as a global
659
- // event. This enables us to handle when the node is deleted from the document while it is transitioning.
660
- // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
661
- e.target.addEventListener('transitioncancel', onTransitionEnd, {
662
- once: true
663
- });
664
- }
665
- transitions.add(e.propertyName);
666
- };
667
- let onTransitionEnd = (e)=>{
668
- if (!isTransitionEvent(e) || !e.target) return;
669
- // Remove property from list of transitioning properties.
670
- let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
671
- if (!properties) return;
672
- properties.delete(e.propertyName);
673
- // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
674
- if (properties.size === 0) {
675
- e.target.removeEventListener('transitioncancel', onTransitionEnd);
676
- $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
677
- }
678
- // If no transitioning elements, call all of the queued callbacks.
679
- if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
680
- for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();
681
- $bbed8b41f857bcc0$var$transitionCallbacks.clear();
682
- }
683
- };
684
- document.body.addEventListener('transitionrun', onTransitionStart);
685
- document.body.addEventListener('transitionend', onTransitionEnd);
686
- }
687
- if (typeof document !== 'undefined') {
688
- if (document.readyState !== 'loading') $bbed8b41f857bcc0$var$setupGlobalEvents();
689
- else document.addEventListener('DOMContentLoaded', $bbed8b41f857bcc0$var$setupGlobalEvents);
690
- }
691
- /**
692
- * Cleans up any elements that are no longer in the document.
693
- * This is necessary because we can't rely on transitionend events to fire
694
- * for elements that are removed from the document while transitioning.
695
- */ function $bbed8b41f857bcc0$var$cleanupDetachedElements() {
696
- for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)// Similar to `eventTarget instanceof Element && !eventTarget.isConnected`, but avoids
697
- // the explicit instanceof check, since it may be different in different contexts.
698
- if ('isConnected' in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);
699
- }
700
- function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
701
- // Wait one frame to see if an animation starts, e.g. a transition on mount.
702
- requestAnimationFrame(()=>{
703
- $bbed8b41f857bcc0$var$cleanupDetachedElements();
704
- // If no transitions are running, call the function immediately.
705
- // Otherwise, add it to a list of callbacks to run at the end of the animation.
706
- if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();
707
- else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
708
- });
709
- }
710
-
711
- /*
712
- * Copyright 2020 Adobe. All rights reserved.
713
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
714
- * you may not use this file except in compliance with the License. You may obtain a copy
715
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
716
- *
717
- * Unless required by applicable law or agreed to in writing, software distributed under
718
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
719
- * OF ANY KIND, either express or implied. See the License for the specific language
720
- * governing permissions and limitations under the License.
721
- */
722
- function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
723
- let globalListeners = (React.useRef)(new Map());
724
- let addGlobalListener = (React.useCallback)((eventTarget, type, listener, options)=>{
725
- // Make sure we remove the listener after it is called with the `once` option.
726
- let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args)=>{
727
- globalListeners.current.delete(listener);
728
- listener(...args);
729
- } : listener;
730
- globalListeners.current.set(listener, {
731
- type: type,
732
- eventTarget: eventTarget,
733
- fn: fn,
734
- options: options
735
- });
736
- eventTarget.addEventListener(type, fn, options);
737
- }, []);
738
- let removeGlobalListener = (React.useCallback)((eventTarget, type, listener, options)=>{
739
- var _globalListeners_current_get;
740
- let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
741
- eventTarget.removeEventListener(type, fn, options);
742
- globalListeners.current.delete(listener);
743
- }, []);
744
- let removeAllGlobalListeners = (React.useCallback)(()=>{
745
- globalListeners.current.forEach((value, key)=>{
746
- removeGlobalListener(value.eventTarget, value.type, key, value.options);
747
- });
748
- }, [
749
- removeGlobalListener
750
- ]);
751
- (React.useEffect)(()=>{
752
- return removeAllGlobalListeners;
753
- }, [
754
- removeAllGlobalListeners
755
- ]);
756
- return {
757
- addGlobalListener: addGlobalListener,
758
- removeGlobalListener: removeGlobalListener,
759
- removeAllGlobalListeners: removeAllGlobalListeners
760
- };
761
- }
762
-
763
- /*
764
- * Copyright 2020 Adobe. All rights reserved.
765
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
766
- * you may not use this file except in compliance with the License. You may obtain a copy
767
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
768
- *
769
- * Unless required by applicable law or agreed to in writing, software distributed under
770
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
771
- * OF ANY KIND, either express or implied. See the License for the specific language
772
- * governing permissions and limitations under the License.
773
- */
774
- function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
775
- let { id: id, 'aria-label': label, 'aria-labelledby': labelledBy } = props;
776
- // If there is both an aria-label and aria-labelledby,
777
- // combine them by pointing to the element itself.
778
- id = ($bdb11010cef70236$export$f680877a34711e37)(id);
779
- if (labelledBy && label) {
780
- let ids = new Set([
781
- id,
782
- ...labelledBy.trim().split(/\s+/)
783
- ]);
784
- labelledBy = [
785
- ...ids
786
- ].join(' ');
787
- } else if (labelledBy) labelledBy = labelledBy.trim().split(/\s+/).join(' ');
788
- // If no labels are provided, use the default
789
- if (!label && !labelledBy && defaultLabel) label = defaultLabel;
790
- return {
791
- id: id,
792
- 'aria-label': label,
793
- 'aria-labelledby': labelledBy
794
- };
795
- }
796
-
797
- /*
798
- * Copyright 2021 Adobe. All rights reserved.
799
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
800
- * you may not use this file except in compliance with the License. You may obtain a copy
801
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
802
- *
803
- * Unless required by applicable law or agreed to in writing, software distributed under
804
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
805
- * OF ANY KIND, either express or implied. See the License for the specific language
806
- * governing permissions and limitations under the License.
807
- */
808
- function $df56164dff5785e2$export$4338b53315abf666(ref) {
809
- const objRef = (React.useRef)(null);
810
- const cleanupRef = (React.useRef)(undefined);
811
- const refEffect = (React.useCallback)((instance)=>{
812
- if (typeof ref === 'function') {
813
- const refCallback = ref;
814
- const refCleanup = refCallback(instance);
815
- return ()=>{
816
- if (typeof refCleanup === 'function') refCleanup();
817
- else refCallback(null);
818
- };
819
- } else if (ref) {
820
- ref.current = instance;
821
- return ()=>{
822
- ref.current = null;
823
- };
824
- }
825
- }, [
826
- ref
827
- ]);
828
- return (React.useMemo)(()=>({
829
- get current () {
830
- return objRef.current;
831
- },
832
- set current (value){
833
- objRef.current = value;
834
- if (cleanupRef.current) {
835
- cleanupRef.current();
836
- cleanupRef.current = undefined;
837
- }
838
- if (value != null) cleanupRef.current = refEffect(value);
839
- }
840
- }), [
841
- refEffect
842
- ]);
843
- }
844
-
845
- /*
846
- * Copyright 2020 Adobe. All rights reserved.
847
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
848
- * you may not use this file except in compliance with the License. You may obtain a copy
849
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
850
- *
851
- * Unless required by applicable law or agreed to in writing, software distributed under
852
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
853
- * OF ANY KIND, either express or implied. See the License for the specific language
854
- * governing permissions and limitations under the License.
855
- */
856
- function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) {
857
- ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
858
- if (context && context.ref && ref) {
859
- context.ref.current = ref.current;
860
- return ()=>{
861
- if (context.ref) context.ref.current = null;
862
- };
863
- }
864
- });
865
- }
866
-
867
- /*
868
- * Copyright 2021 Adobe. All rights reserved.
869
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
870
- * you may not use this file except in compliance with the License. You may obtain a copy
871
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
872
- *
873
- * Unless required by applicable law or agreed to in writing, software distributed under
874
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
875
- * OF ANY KIND, either express or implied. See the License for the specific language
876
- * governing permissions and limitations under the License.
877
- */
878
-
879
- function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
880
- let handleEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(handler);
881
- let isDisabled = handler == null;
882
- (React.useEffect)(()=>{
883
- if (isDisabled || !ref.current) return;
884
- let element = ref.current;
885
- element.addEventListener(event, handleEvent, options);
886
- return ()=>{
887
- element.removeEventListener(event, handleEvent, options);
888
- };
889
- }, [
890
- ref,
891
- event,
892
- options,
893
- isDisabled,
894
- handleEvent
895
- ]);
896
- }
897
-
898
- /*
899
- * Copyright 2022 Adobe. All rights reserved.
900
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
901
- * you may not use this file except in compliance with the License. You may obtain a copy
902
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
903
- *
904
- * Unless required by applicable law or agreed to in writing, software distributed under
905
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
906
- * OF ANY KIND, either express or implied. See the License for the specific language
907
- * governing permissions and limitations under the License.
908
- */
909
- function $6a7db85432448f7f$export$60278871457622de(event) {
910
- // JAWS/NVDA with Firefox.
911
- if (event.pointerType === '' && event.isTrusted) return true;
912
- // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
913
- // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
914
- // to detect TalkBack virtual clicks.
915
- if (($c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
916
- return event.detail === 0 && !event.pointerType;
917
- }
918
- function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
919
- // If the pointer size is zero, then we assume it's from a screen reader.
920
- // Android TalkBack double tap will sometimes return a event with width and height of 1
921
- // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.
922
- // Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
923
- // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
924
- // Talkback double tap from Windows Firefox touch screen press
925
- return !($c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
926
- }
927
-
928
- /*
929
- * Copyright 2021 Adobe. All rights reserved.
930
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
931
- * you may not use this file except in compliance with the License. You may obtain a copy
932
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
933
- *
934
- * Unless required by applicable law or agreed to in writing, software distributed under
935
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
936
- * OF ANY KIND, either express or implied. See the License for the specific language
937
- * governing permissions and limitations under the License.
938
- */
939
- const $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element !== 'undefined' && 'checkVisibility' in Element.prototype;
940
- function $7d2416ea0959daaa$var$isStyleVisible(element) {
941
- const windowObject = ($431fbd86ca7dc216$export$f21a1ffae260145a)(element);
942
- if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
943
- let { display: display, visibility: visibility } = element.style;
944
- let isVisible = display !== 'none' && visibility !== 'hidden' && visibility !== 'collapse';
945
- if (isVisible) {
946
- const { getComputedStyle: getComputedStyle } = element.ownerDocument.defaultView;
947
- let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
948
- isVisible = computedDisplay !== 'none' && computedVisibility !== 'hidden' && computedVisibility !== 'collapse';
949
- }
950
- return isVisible;
951
- }
952
- function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {
953
- return !element.hasAttribute('hidden') && // Ignore HiddenSelect when tree walking.
954
- !element.hasAttribute('data-react-aria-prevent-focus') && (element.nodeName === 'DETAILS' && childElement && childElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true);
955
- }
956
- function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {
957
- if ($7d2416ea0959daaa$var$supportsCheckVisibility) return element.checkVisibility() && !element.closest('[data-react-aria-prevent-focus]');
958
- return element.nodeName !== '#comment' && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));
959
- }
960
-
961
- /*
962
- * Copyright 2025 Adobe. All rights reserved.
963
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
964
- * you may not use this file except in compliance with the License. You may obtain a copy
965
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
966
- *
967
- * Unless required by applicable law or agreed to in writing, software distributed under
968
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
969
- * OF ANY KIND, either express or implied. See the License for the specific language
970
- * governing permissions and limitations under the License.
971
- */
972
- const $b4b717babfbb907b$var$focusableElements = [
973
- 'input:not([disabled]):not([type=hidden])',
974
- 'select:not([disabled])',
975
- 'textarea:not([disabled])',
976
- 'button:not([disabled])',
977
- 'a[href]',
978
- 'area[href]',
979
- 'summary',
980
- 'iframe',
981
- 'object',
982
- 'embed',
983
- 'audio[controls]',
984
- 'video[controls]',
985
- '[contenteditable]:not([contenteditable^="false"])',
986
- 'permission'
987
- ];
988
- const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';
989
- $b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
990
- const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
991
- function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
992
- return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && ($7d2416ea0959daaa$export$e989c0fffaa6b27a)(element) && !$b4b717babfbb907b$var$isInert(element);
993
- }
994
- function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
995
- return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && ($7d2416ea0959daaa$export$e989c0fffaa6b27a)(element) && !$b4b717babfbb907b$var$isInert(element);
996
- }
997
- function $b4b717babfbb907b$var$isInert(element) {
998
- let node = element;
999
- while(node != null){
1000
- if (node instanceof node.ownerDocument.defaultView.HTMLElement && node.inert) return true;
1001
- node = node.parentElement;
1002
- }
1003
- return false;
1004
- }
1005
-
1006
- /*
1007
- * Copyright 2020 Adobe. All rights reserved.
1008
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1009
- * you may not use this file except in compliance with the License. You may obtain a copy
1010
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1011
- *
1012
- * Unless required by applicable law or agreed to in writing, software distributed under
1013
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1014
- * OF ANY KIND, either express or implied. See the License for the specific language
1015
- * governing permissions and limitations under the License.
1016
- */
1017
- function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
1018
- let [stateValue, setStateValue] = (React.useState)(value || defaultValue);
1019
- let isControlledRef = (React.useRef)(value !== undefined);
1020
- let isControlled = value !== undefined;
1021
- (React.useEffect)(()=>{
1022
- let wasControlled = isControlledRef.current;
1023
- if (wasControlled !== isControlled && process.env.NODE_ENV !== 'production') console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);
1024
- isControlledRef.current = isControlled;
1025
- }, [
1026
- isControlled
1027
- ]);
1028
- let currentValue = isControlled ? value : stateValue;
1029
- let setValue = (React.useCallback)((value, ...args)=>{
1030
- let onChangeCaller = (value, ...onChangeArgs)=>{
1031
- if (onChange) {
1032
- if (!Object.is(currentValue, value)) onChange(value, ...onChangeArgs);
1033
- }
1034
- if (!isControlled) // If uncontrolled, mutate the currentValue local variable so that
1035
- // calling setState multiple times with the same value only emits onChange once.
1036
- // We do not use a ref for this because we specifically _do_ want the value to
1037
- // reset every render, and assigning to a ref in render breaks aborted suspended renders.
1038
- // eslint-disable-next-line react-hooks/exhaustive-deps
1039
- currentValue = value;
1040
- };
1041
- if (typeof value === 'function') {
1042
- if (process.env.NODE_ENV !== 'production') console.warn('We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320');
1043
- // this supports functional updates https://reactjs.org/docs/hooks-reference.html#functional-updates
1044
- // when someone using useControlledState calls setControlledState(myFunc)
1045
- // this will call our useState setState with a function as well which invokes myFunc and calls onChange with the value from myFunc
1046
- // if we're in an uncontrolled state, then we also return the value of myFunc which to setState looks as though it was just called with myFunc from the beginning
1047
- // otherwise we just return the controlled value, which won't cause a rerender because React knows to bail out when the value is the same
1048
- let updateFunction = (oldValue, ...functionArgs)=>{
1049
- let interceptedValue = value(isControlled ? currentValue : oldValue, ...functionArgs);
1050
- onChangeCaller(interceptedValue, ...args);
1051
- if (!isControlled) return interceptedValue;
1052
- return oldValue;
1053
- };
1054
- setStateValue(updateFunction);
1055
- } else {
1056
- if (!isControlled) setStateValue(value);
1057
- onChangeCaller(value, ...args);
1058
- }
1059
- }, [
1060
- isControlled,
1061
- currentValue,
1062
- onChange
1063
- ]);
1064
- return [
1065
- currentValue,
1066
- setValue
1067
- ];
1068
- }
1069
-
1070
- /*
1071
- * Copyright 2020 Adobe. All rights reserved.
1072
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1073
- * you may not use this file except in compliance with the License. You may obtain a copy
1074
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1075
- *
1076
- * Unless required by applicable law or agreed to in writing, software distributed under
1077
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1078
- * OF ANY KIND, either express or implied. See the License for the specific language
1079
- * governing permissions and limitations under the License.
1080
- */ /**
1081
- * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.
1082
- */ function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min = -Infinity, max = Infinity) {
1083
- let newValue = Math.min(Math.max(value, min), max);
1084
- return newValue;
1085
- }
1086
- function $9446cca9a3875146$export$e1a7b8e69ef6c52f(value, step) {
1087
- let roundedValue = value;
1088
- let precision = 0;
1089
- let stepString = step.toString();
1090
- // Handle negative exponents in exponential notation (e.g., "1e-7" → precision 8)
1091
- let eIndex = stepString.toLowerCase().indexOf('e-');
1092
- if (eIndex > 0) precision = Math.abs(Math.floor(Math.log10(Math.abs(step)))) + eIndex;
1093
- else {
1094
- let pointIndex = stepString.indexOf('.');
1095
- if (pointIndex >= 0) precision = stepString.length - pointIndex;
1096
- }
1097
- if (precision > 0) {
1098
- let pow = Math.pow(10, precision);
1099
- roundedValue = Math.round(roundedValue * pow) / pow;
1100
- }
1101
- return roundedValue;
1102
- }
1103
- function $9446cca9a3875146$export$cb6e0bb50bc19463(value, min, max, step) {
1104
- min = Number(min);
1105
- max = Number(max);
1106
- let remainder = (value - (isNaN(min) ? 0 : min)) % step;
1107
- let snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
1108
- if (!isNaN(min)) {
1109
- if (snappedValue < min) snappedValue = min;
1110
- else if (!isNaN(max) && snappedValue > max) snappedValue = min + Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f((max - min) / step, step)) * step;
1111
- } else if (!isNaN(max) && snappedValue > max) snappedValue = Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f(max / step, step)) * step;
1112
- // correct floating point behavior by rounding to step precision
1113
- snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(snappedValue, step);
1114
- return snappedValue;
1115
- }
1116
-
1117
- /*
1118
- * Copyright 2022 Adobe. All rights reserved.
1119
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1120
- * you may not use this file except in compliance with the License. You may obtain a copy
1121
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1122
- *
1123
- * Unless required by applicable law or agreed to in writing, software distributed under
1124
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1125
- * OF ANY KIND, either express or implied. See the License for the specific language
1126
- * governing permissions and limitations under the License.
1127
- */
1128
-
1129
- const $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol('default');
1130
- function $64fa3d84918910a7$export$2881499e37b75b9a({ values: values, children: children }) {
1131
- for (let [Context, value] of values)// @ts-ignore
1132
- children = /*#__PURE__*/ (React).createElement(Context.Provider, {
1133
- value: value
1134
- }, children);
1135
- return children;
1136
- }
1137
- function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
1138
- let { className: className, style: style, children: children, defaultClassName: defaultClassName, defaultChildren: defaultChildren, defaultStyle: defaultStyle, values: values } = props;
1139
- return (React.useMemo)(()=>{
1140
- let computedClassName;
1141
- let computedStyle;
1142
- let computedChildren;
1143
- if (typeof className === 'function') computedClassName = className({
1144
- ...values,
1145
- defaultClassName: defaultClassName
1146
- });
1147
- else computedClassName = className;
1148
- if (typeof style === 'function') computedStyle = style({
1149
- ...values,
1150
- defaultStyle: defaultStyle || {}
1151
- });
1152
- else computedStyle = style;
1153
- if (typeof children === 'function') computedChildren = children({
1154
- ...values,
1155
- defaultChildren: defaultChildren
1156
- });
1157
- else if (children == null) computedChildren = defaultChildren;
1158
- else computedChildren = children;
1159
- return {
1160
- className: computedClassName !== null && computedClassName !== void 0 ? computedClassName : defaultClassName,
1161
- style: computedStyle || defaultStyle ? {
1162
- ...defaultStyle,
1163
- ...computedStyle
1164
- } : undefined,
1165
- children: computedChildren !== null && computedChildren !== void 0 ? computedChildren : defaultChildren,
1166
- 'data-rac': ''
1167
- };
1168
- }, [
1169
- className,
1170
- style,
1171
- children,
1172
- defaultClassName,
1173
- defaultChildren,
1174
- defaultStyle,
1175
- values
1176
- ]);
1177
- }
1178
- function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
1179
- let ctx = (React.useContext)(context);
1180
- if (slot === null) // An explicit `null` slot means don't use context.
1181
- return null;
1182
- if (ctx && typeof ctx === 'object' && 'slots' in ctx && ctx.slots) {
1183
- let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
1184
- if (!ctx.slots[slotKey]) {
1185
- let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p)=>`"${p}"`));
1186
- let errorMessage = slot ? `Invalid slot "${slot}".` : 'A slot prop is required.';
1187
- throw new Error(`${errorMessage} Valid slot names are ${availableSlots}.`);
1188
- }
1189
- return ctx.slots[slotKey];
1190
- }
1191
- // @ts-ignore
1192
- return ctx;
1193
- }
1194
- function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
1195
- let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context, props.slot) || {};
1196
- // @ts-ignore - TS says "Type 'unique symbol' cannot be used as an index type." but not sure why.
1197
- let { ref: contextRef, ...contextProps } = ctx;
1198
- let mergedRef = ($df56164dff5785e2$export$4338b53315abf666)((React.useMemo)(()=>($5dc95899b306f630$export$c9058316764c140e)(ref, contextRef), [
1199
- ref,
1200
- contextRef
1201
- ]));
1202
- let mergedProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(contextProps, props);
1203
- // mergeProps does not merge `style`. Adding this there might be a breaking change.
1204
- if ('style' in contextProps && contextProps.style && 'style' in props && props.style) {
1205
- if (typeof contextProps.style === 'function' || typeof props.style === 'function') // @ts-ignore
1206
- mergedProps.style = (renderProps)=>{
1207
- let contextStyle = typeof contextProps.style === 'function' ? contextProps.style(renderProps) : contextProps.style;
1208
- let defaultStyle = {
1209
- ...renderProps.defaultStyle,
1210
- ...contextStyle
1211
- };
1212
- let style = typeof props.style === 'function' ? props.style({
1213
- ...renderProps,
1214
- defaultStyle: defaultStyle
1215
- }) : props.style;
1216
- return {
1217
- ...defaultStyle,
1218
- ...style
1219
- };
1220
- };
1221
- else // @ts-ignore
1222
- mergedProps.style = {
1223
- ...contextProps.style,
1224
- ...props.style
1225
- };
1226
- }
1227
- return [
1228
- mergedProps,
1229
- mergedRef
1230
- ];
1231
- }
1232
- function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(initialState = true) {
1233
- // Initial state is typically based on the parent having an aria-label or aria-labelledby.
1234
- // If it does, this value should be false so that we don't update the state and cause a rerender when we go through the layoutEffect
1235
- let [hasSlot, setHasSlot] = (React.useState)(initialState);
1236
- let hasRun = (React.useRef)(false);
1237
- // A callback ref which will run when the slotted element mounts.
1238
- // This should happen before the useLayoutEffect below.
1239
- let ref = (React.useCallback)((el)=>{
1240
- hasRun.current = true;
1241
- setHasSlot(!!el);
1242
- }, []);
1243
- // If the callback hasn't been called, then reset to false.
1244
- ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
1245
- if (!hasRun.current) setHasSlot(false);
1246
- }, []);
1247
- return [
1248
- ref,
1249
- hasSlot
1250
- ];
1251
- }
1252
- function $64fa3d84918910a7$export$ef03459518577ad4(props) {
1253
- const prefix = /^(data-.*)$/;
1254
- let filteredProps = {};
1255
- for(const prop in props)if (!prefix.test(prop)) filteredProps[prop] = props[prop];
1256
- return filteredProps;
1257
- }
1258
-
1259
- /*
1260
- * Copyright 2020 Adobe. All rights reserved.
1261
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1262
- * you may not use this file except in compliance with the License. You may obtain a copy
1263
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1264
- *
1265
- * Unless required by applicable law or agreed to in writing, software distributed under
1266
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1267
- * OF ANY KIND, either express or implied. See the License for the specific language
1268
- * governing permissions and limitations under the License.
1269
- */ // https://en.wikipedia.org/wiki/Right-to-left
1270
- const $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([
1271
- 'Arab',
1272
- 'Syrc',
1273
- 'Samr',
1274
- 'Mand',
1275
- 'Thaa',
1276
- 'Mend',
1277
- 'Nkoo',
1278
- 'Adlm',
1279
- 'Rohg',
1280
- 'Hebr'
1281
- ]);
1282
- const $148a7a147e38ea7f$var$RTL_LANGS = new Set([
1283
- 'ae',
1284
- 'ar',
1285
- 'arc',
1286
- 'bcc',
1287
- 'bqi',
1288
- 'ckb',
1289
- 'dv',
1290
- 'fa',
1291
- 'glk',
1292
- 'he',
1293
- 'ku',
1294
- 'mzn',
1295
- 'nqo',
1296
- 'pnb',
1297
- 'ps',
1298
- 'sd',
1299
- 'ug',
1300
- 'ur',
1301
- 'yi'
1302
- ]);
1303
- function $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {
1304
- // If the Intl.Locale API is available, use it to get the locale's text direction.
1305
- if (Intl.Locale) {
1306
- let locale = new Intl.Locale(localeString).maximize();
1307
- // Use the text info object to get the direction if possible.
1308
- // @ts-ignore - this was implemented as a property by some browsers before it was standardized as a function.
1309
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
1310
- let textInfo = typeof locale.getTextInfo === 'function' ? locale.getTextInfo() : locale.textInfo;
1311
- if (textInfo) return textInfo.direction === 'rtl';
1312
- // Fallback: guess using the script.
1313
- // This is more accurate than guessing by language, since languages can be written in multiple scripts.
1314
- if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);
1315
- }
1316
- // If not, just guess by the language (first part of the locale)
1317
- let lang = localeString.split('-')[0];
1318
- return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
1319
- }
1320
-
1321
- /*
1322
- * Copyright 2020 Adobe. All rights reserved.
1323
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1324
- * you may not use this file except in compliance with the License. You may obtain a copy
1325
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1326
- *
1327
- * Unless required by applicable law or agreed to in writing, software distributed under
1328
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1329
- * OF ANY KIND, either express or implied. See the License for the specific language
1330
- * governing permissions and limitations under the License.
1331
- */
1332
-
1333
-
1334
- // Locale passed from server by PackageLocalizationProvider.
1335
- const $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for('react-aria.i18n.locale');
1336
- function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
1337
- let locale = typeof window !== 'undefined' && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator !== 'undefined' && (navigator.language || navigator.userLanguage) || 'en-US';
1338
- try {
1339
- Intl.DateTimeFormat.supportedLocalesOf([
1340
- locale
1341
- ]);
1342
- } catch {
1343
- locale = 'en-US';
1344
- }
1345
- return {
1346
- locale: locale,
1347
- direction: ($148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? 'rtl' : 'ltr'
1348
- };
1349
- }
1350
- let $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
1351
- let $1e5a04cdaf7d1af8$var$listeners = new Set();
1352
- function $1e5a04cdaf7d1af8$var$updateLocale() {
1353
- $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
1354
- for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);
1355
- }
1356
- function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
1357
- let isSSR = ($b5e257d569688ac6$export$535bd6ca7f90a273)();
1358
- let [defaultLocale, setDefaultLocale] = (React.useState)($1e5a04cdaf7d1af8$var$currentLocale);
1359
- (React.useEffect)(()=>{
1360
- if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);
1361
- $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);
1362
- return ()=>{
1363
- $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);
1364
- if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener('languagechange', $1e5a04cdaf7d1af8$var$updateLocale);
1365
- };
1366
- }, []);
1367
- // We cannot determine the browser's language on the server, so default to
1368
- // en-US. This will be updated after hydration on the client to the correct value.
1369
- if (isSSR) return {
1370
- locale: 'en-US',
1371
- direction: 'ltr'
1372
- };
1373
- return defaultLocale;
1374
- }
1375
-
1376
- /*
1377
- * Copyright 2020 Adobe. All rights reserved.
1378
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1379
- * you may not use this file except in compliance with the License. You may obtain a copy
1380
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1381
- *
1382
- * Unless required by applicable law or agreed to in writing, software distributed under
1383
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1384
- * OF ANY KIND, either express or implied. See the License for the specific language
1385
- * governing permissions and limitations under the License.
1386
- */
1387
-
1388
-
1389
- const $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ (React).createContext(null);
1390
- function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
1391
- let defaultLocale = ($1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();
1392
- let context = (React.useContext)($18f2051aff69b9bf$var$I18nContext);
1393
- return context || defaultLocale;
1394
- }
1395
-
1396
- /*
1397
- * Copyright 2022 Adobe. All rights reserved.
1398
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1399
- * you may not use this file except in compliance with the License. You may obtain a copy
1400
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1401
- *
1402
- * Unless required by applicable law or agreed to in writing, software distributed under
1403
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1404
- * OF ANY KIND, either express or implied. See the License for the specific language
1405
- * governing permissions and limitations under the License.
1406
- */ const $5b160d28a433310d$var$localeSymbol = Symbol.for('react-aria.i18n.locale');
1407
- const $5b160d28a433310d$var$stringsSymbol = Symbol.for('react-aria.i18n.strings');
1408
- let $5b160d28a433310d$var$cachedGlobalStrings = undefined;
1409
- class $5b160d28a433310d$export$c17fa47878dc55b6 {
1410
- /** Returns a localized string for the given key and locale. */ getStringForLocale(key, locale) {
1411
- let strings = this.getStringsForLocale(locale);
1412
- let string = strings[key];
1413
- if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`);
1414
- return string;
1415
- }
1416
- /** Returns all localized strings for the given locale. */ getStringsForLocale(locale) {
1417
- let strings = this.strings[locale];
1418
- if (!strings) {
1419
- strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale);
1420
- this.strings[locale] = strings;
1421
- }
1422
- return strings;
1423
- }
1424
- static getGlobalDictionaryForPackage(packageName) {
1425
- if (typeof window === 'undefined') return null;
1426
- let locale = window[$5b160d28a433310d$var$localeSymbol];
1427
- if ($5b160d28a433310d$var$cachedGlobalStrings === undefined) {
1428
- let globalStrings = window[$5b160d28a433310d$var$stringsSymbol];
1429
- if (!globalStrings) return null;
1430
- $5b160d28a433310d$var$cachedGlobalStrings = {};
1431
- for(let pkg in globalStrings)$5b160d28a433310d$var$cachedGlobalStrings[pkg] = new $5b160d28a433310d$export$c17fa47878dc55b6({
1432
- [locale]: globalStrings[pkg]
1433
- }, locale);
1434
- }
1435
- let dictionary = $5b160d28a433310d$var$cachedGlobalStrings === null || $5b160d28a433310d$var$cachedGlobalStrings === void 0 ? void 0 : $5b160d28a433310d$var$cachedGlobalStrings[packageName];
1436
- if (!dictionary) throw new Error(`Strings for package "${packageName}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
1437
- return dictionary;
1438
- }
1439
- constructor(messages, defaultLocale = 'en-US'){
1440
- // Clone messages so we don't modify the original object.
1441
- // Filter out entries with falsy values which may have been caused by applying optimize-locales-plugin.
1442
- this.strings = Object.fromEntries(Object.entries(messages).filter(([, v])=>v));
1443
- this.defaultLocale = defaultLocale;
1444
- }
1445
- }
1446
- function $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = 'en-US') {
1447
- // If there is an exact match, use it.
1448
- if (strings[locale]) return strings[locale];
1449
- // Attempt to find the closest match by language.
1450
- // For example, if the locale is fr-CA (French Canadian), but there is only
1451
- // an fr-FR (France) set of strings, use that.
1452
- // This could be replaced with Intl.LocaleMatcher once it is supported.
1453
- // https://github.com/tc39/proposal-intl-localematcher
1454
- let language = $5b160d28a433310d$var$getLanguage(locale);
1455
- if (strings[language]) return strings[language];
1456
- for(let key in strings){
1457
- if (key.startsWith(language + '-')) return strings[key];
1458
- }
1459
- // Nothing close, use english.
1460
- return strings[defaultLocale];
1461
- }
1462
- function $5b160d28a433310d$var$getLanguage(locale) {
1463
- // @ts-ignore
1464
- if (Intl.Locale) // @ts-ignore
1465
- return new Intl.Locale(locale).language;
1466
- return locale.split('-')[0];
1467
- }
1468
-
1469
- /*
1470
- * Copyright 2022 Adobe. All rights reserved.
1471
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1472
- * you may not use this file except in compliance with the License. You may obtain a copy
1473
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1474
- *
1475
- * Unless required by applicable law or agreed to in writing, software distributed under
1476
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1477
- * OF ANY KIND, either express or implied. See the License for the specific language
1478
- * governing permissions and limitations under the License.
1479
- */ const $6db58dc88e78b024$var$pluralRulesCache = new Map();
1480
- const $6db58dc88e78b024$var$numberFormatCache = new Map();
1481
- class $6db58dc88e78b024$export$2f817fcdc4b89ae0 {
1482
- /** Formats a localized string for the given key with the provided variables. */ format(key, variables) {
1483
- let message = this.strings.getStringForLocale(key, this.locale);
1484
- return typeof message === 'function' ? message(variables, this) : message;
1485
- }
1486
- plural(count, options, type = 'cardinal') {
1487
- let opt = options['=' + count];
1488
- if (opt) return typeof opt === 'function' ? opt() : opt;
1489
- let key = this.locale + ':' + type;
1490
- let pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key);
1491
- if (!pluralRules) {
1492
- pluralRules = new Intl.PluralRules(this.locale, {
1493
- type: type
1494
- });
1495
- $6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules);
1496
- }
1497
- let selected = pluralRules.select(count);
1498
- opt = options[selected] || options.other;
1499
- return typeof opt === 'function' ? opt() : opt;
1500
- }
1501
- number(value) {
1502
- let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale);
1503
- if (!numberFormat) {
1504
- numberFormat = new Intl.NumberFormat(this.locale);
1505
- $6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat);
1506
- }
1507
- return numberFormat.format(value);
1508
- }
1509
- select(options, value) {
1510
- let opt = options[value] || options.other;
1511
- return typeof opt === 'function' ? opt() : opt;
1512
- }
1513
- constructor(locale, strings){
1514
- this.locale = locale;
1515
- this.strings = strings;
1516
- }
1517
- }
1518
-
1519
- /*
1520
- * Copyright 2022 Adobe. All rights reserved.
1521
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1522
- * you may not use this file except in compliance with the License. You may obtain a copy
1523
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1524
- *
1525
- * Unless required by applicable law or agreed to in writing, software distributed under
1526
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1527
- * OF ANY KIND, either express or implied. See the License for the specific language
1528
- * governing permissions and limitations under the License.
1529
- */
1530
-
1531
-
1532
- const $fca6afa0e843324b$var$cache = new WeakMap();
1533
- function $fca6afa0e843324b$var$getCachedDictionary(strings) {
1534
- let dictionary = $fca6afa0e843324b$var$cache.get(strings);
1535
- if (!dictionary) {
1536
- dictionary = new ($5b160d28a433310d$export$c17fa47878dc55b6)(strings);
1537
- $fca6afa0e843324b$var$cache.set(strings, dictionary);
1538
- }
1539
- return dictionary;
1540
- }
1541
- function $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName) {
1542
- return packageName && ($5b160d28a433310d$export$c17fa47878dc55b6).getGlobalDictionaryForPackage(packageName) || $fca6afa0e843324b$var$getCachedDictionary(strings);
1543
- }
1544
- function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings, packageName) {
1545
- let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
1546
- let dictionary = $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName);
1547
- return (React.useMemo)(()=>new ($6db58dc88e78b024$export$2f817fcdc4b89ae0)(locale, dictionary), [
1548
- locale,
1549
- dictionary
1550
- ]);
1551
- }
1552
-
1553
- /*
1554
- * Copyright 2020 Adobe. All rights reserved.
1555
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1556
- * you may not use this file except in compliance with the License. You may obtain a copy
1557
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1558
- *
1559
- * Unless required by applicable law or agreed to in writing, software distributed under
1560
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1561
- * OF ANY KIND, either express or implied. See the License for the specific language
1562
- * governing permissions and limitations under the License.
1563
- */
1564
-
1565
- function $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent) {
1566
- let event = nativeEvent;
1567
- event.nativeEvent = nativeEvent;
1568
- event.isDefaultPrevented = ()=>event.defaultPrevented;
1569
- // cancelBubble is technically deprecated in the spec, but still supported in all browsers.
1570
- event.isPropagationStopped = ()=>event.cancelBubble;
1571
- event.persist = ()=>{};
1572
- return event;
1573
- }
1574
- function $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target) {
1575
- Object.defineProperty(event, 'target', {
1576
- value: target
1577
- });
1578
- Object.defineProperty(event, 'currentTarget', {
1579
- value: target
1580
- });
1581
- }
1582
- function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
1583
- let stateRef = (React.useRef)({
1584
- isFocused: false,
1585
- observer: null
1586
- });
1587
- // Clean up MutationObserver on unmount. See below.
1588
- ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
1589
- const state = stateRef.current;
1590
- return ()=>{
1591
- if (state.observer) {
1592
- state.observer.disconnect();
1593
- state.observer = null;
1594
- }
1595
- };
1596
- }, []);
1597
- let dispatchBlur = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((e)=>{
1598
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
1599
- });
1600
- // This function is called during a React onFocus event.
1601
- return (React.useCallback)((e)=>{
1602
- // React does not fire onBlur when an element is disabled. https://github.com/facebook/react/issues/9142
1603
- // Most browsers fire a native focusout event in this case, except for Firefox. In that case, we use a
1604
- // MutationObserver to watch for the disabled attribute, and dispatch these events ourselves.
1605
- // For browsers that do, focusout fires before the MutationObserver, so onBlur should not fire twice.
1606
- if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
1607
- stateRef.current.isFocused = true;
1608
- let target = e.target;
1609
- let onBlurHandler = (e)=>{
1610
- stateRef.current.isFocused = false;
1611
- if (target.disabled) {
1612
- // For backward compatibility, dispatch a (fake) React synthetic event.
1613
- let event = $8a9cb279dc87e130$export$525bc4921d56d4a(e);
1614
- dispatchBlur(event);
1615
- }
1616
- // We no longer need the MutationObserver once the target is blurred.
1617
- if (stateRef.current.observer) {
1618
- stateRef.current.observer.disconnect();
1619
- stateRef.current.observer = null;
1620
- }
1621
- };
1622
- target.addEventListener('focusout', onBlurHandler, {
1623
- once: true
1624
- });
1625
- stateRef.current.observer = new MutationObserver(()=>{
1626
- if (stateRef.current.isFocused && target.disabled) {
1627
- var _stateRef_current_observer;
1628
- (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
1629
- let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
1630
- target.dispatchEvent(new FocusEvent('blur', {
1631
- relatedTarget: relatedTargetEl
1632
- }));
1633
- target.dispatchEvent(new FocusEvent('focusout', {
1634
- bubbles: true,
1635
- relatedTarget: relatedTargetEl
1636
- }));
1637
- }
1638
- });
1639
- stateRef.current.observer.observe(target, {
1640
- attributes: true,
1641
- attributeFilter: [
1642
- 'disabled'
1643
- ]
1644
- });
1645
- }
1646
- }, [
1647
- dispatchBlur
1648
- ]);
1649
- }
1650
- let $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
1651
- function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
1652
- // The browser will focus the nearest focusable ancestor of our target.
1653
- while(target && !($b4b717babfbb907b$export$4c063cf1350e6fed)(target))target = target.parentElement;
1654
- let window = ($431fbd86ca7dc216$export$f21a1ffae260145a)(target);
1655
- let activeElement = window.document.activeElement;
1656
- if (!activeElement || activeElement === target) return;
1657
- $8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;
1658
- let isRefocusing = false;
1659
- let onBlur = (e)=>{
1660
- if (e.target === activeElement || isRefocusing) e.stopImmediatePropagation();
1661
- };
1662
- let onFocusOut = (e)=>{
1663
- if (e.target === activeElement || isRefocusing) {
1664
- e.stopImmediatePropagation();
1665
- // If there was no focusable ancestor, we don't expect a focus event.
1666
- // Re-focus the original active element here.
1667
- if (!target && !isRefocusing) {
1668
- isRefocusing = true;
1669
- ($7215afc6de606d6b$export$de79e2c695e052f3)(activeElement);
1670
- cleanup();
1671
- }
1672
- }
1673
- };
1674
- let onFocus = (e)=>{
1675
- if (e.target === target || isRefocusing) e.stopImmediatePropagation();
1676
- };
1677
- let onFocusIn = (e)=>{
1678
- if (e.target === target || isRefocusing) {
1679
- e.stopImmediatePropagation();
1680
- if (!isRefocusing) {
1681
- isRefocusing = true;
1682
- ($7215afc6de606d6b$export$de79e2c695e052f3)(activeElement);
1683
- cleanup();
1684
- }
1685
- }
1686
- };
1687
- window.addEventListener('blur', onBlur, true);
1688
- window.addEventListener('focusout', onFocusOut, true);
1689
- window.addEventListener('focusin', onFocusIn, true);
1690
- window.addEventListener('focus', onFocus, true);
1691
- let cleanup = ()=>{
1692
- cancelAnimationFrame(raf);
1693
- window.removeEventListener('blur', onBlur, true);
1694
- window.removeEventListener('focusout', onFocusOut, true);
1695
- window.removeEventListener('focusin', onFocusIn, true);
1696
- window.removeEventListener('focus', onFocus, true);
1697
- $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
1698
- isRefocusing = false;
1699
- };
1700
- let raf = requestAnimationFrame(cleanup);
1701
- return cleanup;
1702
- }
1703
-
1704
- /*
1705
- * Copyright 2020 Adobe. All rights reserved.
1706
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1707
- * you may not use this file except in compliance with the License. You may obtain a copy
1708
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1709
- *
1710
- * Unless required by applicable law or agreed to in writing, software distributed under
1711
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1712
- * OF ANY KIND, either express or implied. See the License for the specific language
1713
- * governing permissions and limitations under the License.
1714
- */ // Portions of the code in this file are based on code from react.
1715
- // Original licensing for the following can be found in the
1716
- // NOTICE file in the root directory of this source tree.
1717
- // See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions
1718
-
1719
-
1720
-
1721
-
1722
- let $507fabe10e71c6fb$var$currentModality = null;
1723
- let $507fabe10e71c6fb$var$changeHandlers = new Set();
1724
- let $507fabe10e71c6fb$export$d90243b58daecda7 = new Map(); // We use a map here to support setting event listeners across multiple document objects.
1725
- let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
1726
- let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
1727
- // Only Tab or Esc keys will make focus visible on text input elements
1728
- const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
1729
- Tab: true,
1730
- Escape: true
1731
- };
1732
- function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
1733
- for (let handler of $507fabe10e71c6fb$var$changeHandlers)handler(modality, e);
1734
- }
1735
- /**
1736
- * Helper function to determine if a KeyboardEvent is unmodified and could make keyboard focus styles visible.
1737
- */ function $507fabe10e71c6fb$var$isValidKey(e) {
1738
- // Control and Shift keys trigger when navigating back to the tab with keyboard.
1739
- return !(e.metaKey || !($c87311424ea30a05$export$9ac100e40613ea10)() && e.altKey || e.ctrlKey || e.key === 'Control' || e.key === 'Shift' || e.key === 'Meta');
1740
- }
1741
- function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
1742
- $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
1743
- if ($507fabe10e71c6fb$var$isValidKey(e)) {
1744
- $507fabe10e71c6fb$var$currentModality = 'keyboard';
1745
- $507fabe10e71c6fb$var$triggerChangeHandlers('keyboard', e);
1746
- }
1747
- }
1748
- function $507fabe10e71c6fb$var$handlePointerEvent(e) {
1749
- $507fabe10e71c6fb$var$currentModality = 'pointer';
1750
- if (e.type === 'mousedown' || e.type === 'pointerdown') {
1751
- $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
1752
- $507fabe10e71c6fb$var$triggerChangeHandlers('pointer', e);
1753
- }
1754
- }
1755
- function $507fabe10e71c6fb$var$handleClickEvent(e) {
1756
- if (($6a7db85432448f7f$export$60278871457622de)(e)) {
1757
- $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
1758
- $507fabe10e71c6fb$var$currentModality = 'virtual';
1759
- }
1760
- }
1761
- function $507fabe10e71c6fb$var$handleFocusEvent(e) {
1762
- // Firefox fires two extra focus events when the user first clicks into an iframe:
1763
- // first on the window, then on the document. We ignore these events so they don't
1764
- // cause keyboard focus rings to appear.
1765
- if (e.target === window || e.target === document || ($8a9cb279dc87e130$export$fda7da73ab5d4c48) || !e.isTrusted) return;
1766
- // If a focus event occurs without a preceding keyboard or pointer event, switch to virtual modality.
1767
- // This occurs, for example, when navigating a form with the next/previous buttons on iOS.
1768
- if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
1769
- $507fabe10e71c6fb$var$currentModality = 'virtual';
1770
- $507fabe10e71c6fb$var$triggerChangeHandlers('virtual', e);
1771
- }
1772
- $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
1773
- $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
1774
- }
1775
- function $507fabe10e71c6fb$var$handleWindowBlur() {
1776
- if ($8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
1777
- // When the window is blurred, reset state. This is necessary when tabbing out of the window,
1778
- // for example, since a subsequent focus event won't be fired.
1779
- $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
1780
- $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
1781
- }
1782
- /**
1783
- * Setup global event listeners to control when keyboard focus style should be visible.
1784
- */ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
1785
- if (typeof window === 'undefined' || typeof document === 'undefined' || $507fabe10e71c6fb$export$d90243b58daecda7.get(($431fbd86ca7dc216$export$f21a1ffae260145a)(element))) return;
1786
- const windowObject = ($431fbd86ca7dc216$export$f21a1ffae260145a)(element);
1787
- const documentObject = ($431fbd86ca7dc216$export$b204af158042fbac)(element);
1788
- // Programmatic focus() calls shouldn't affect the current input modality.
1789
- // However, we need to detect other cases when a focus event occurs without
1790
- // a preceding user event (e.g. screen reader focus). Overriding the focus
1791
- // method on HTMLElement.prototype is a bit hacky, but works.
1792
- let focus = windowObject.HTMLElement.prototype.focus;
1793
- windowObject.HTMLElement.prototype.focus = function() {
1794
- $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
1795
- focus.apply(this, arguments);
1796
- };
1797
- documentObject.addEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);
1798
- documentObject.addEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);
1799
- documentObject.addEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);
1800
- // Register focus events on the window so they are sure to happen
1801
- // before React's event listeners (registered on the document).
1802
- windowObject.addEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);
1803
- windowObject.addEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);
1804
- if (typeof PointerEvent !== 'undefined') {
1805
- documentObject.addEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);
1806
- documentObject.addEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);
1807
- documentObject.addEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);
1808
- } else if (process.env.NODE_ENV === 'test') {
1809
- documentObject.addEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);
1810
- documentObject.addEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);
1811
- documentObject.addEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);
1812
- }
1813
- // Add unmount handler
1814
- windowObject.addEventListener('beforeunload', ()=>{
1815
- $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
1816
- }, {
1817
- once: true
1818
- });
1819
- $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
1820
- focus: focus
1821
- });
1822
- }
1823
- const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener)=>{
1824
- const windowObject = ($431fbd86ca7dc216$export$f21a1ffae260145a)(element);
1825
- const documentObject = ($431fbd86ca7dc216$export$b204af158042fbac)(element);
1826
- if (loadListener) documentObject.removeEventListener('DOMContentLoaded', loadListener);
1827
- if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
1828
- windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
1829
- documentObject.removeEventListener('keydown', $507fabe10e71c6fb$var$handleKeyboardEvent, true);
1830
- documentObject.removeEventListener('keyup', $507fabe10e71c6fb$var$handleKeyboardEvent, true);
1831
- documentObject.removeEventListener('click', $507fabe10e71c6fb$var$handleClickEvent, true);
1832
- windowObject.removeEventListener('focus', $507fabe10e71c6fb$var$handleFocusEvent, true);
1833
- windowObject.removeEventListener('blur', $507fabe10e71c6fb$var$handleWindowBlur, false);
1834
- if (typeof PointerEvent !== 'undefined') {
1835
- documentObject.removeEventListener('pointerdown', $507fabe10e71c6fb$var$handlePointerEvent, true);
1836
- documentObject.removeEventListener('pointermove', $507fabe10e71c6fb$var$handlePointerEvent, true);
1837
- documentObject.removeEventListener('pointerup', $507fabe10e71c6fb$var$handlePointerEvent, true);
1838
- } else if (process.env.NODE_ENV === 'test') {
1839
- documentObject.removeEventListener('mousedown', $507fabe10e71c6fb$var$handlePointerEvent, true);
1840
- documentObject.removeEventListener('mousemove', $507fabe10e71c6fb$var$handlePointerEvent, true);
1841
- documentObject.removeEventListener('mouseup', $507fabe10e71c6fb$var$handlePointerEvent, true);
1842
- }
1843
- $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
1844
- };
1845
- function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
1846
- const documentObject = ($431fbd86ca7dc216$export$b204af158042fbac)(element);
1847
- let loadListener;
1848
- if (documentObject.readyState !== 'loading') $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
1849
- else {
1850
- loadListener = ()=>{
1851
- $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
1852
- };
1853
- documentObject.addEventListener('DOMContentLoaded', loadListener);
1854
- }
1855
- return ()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
1856
- }
1857
- // Server-side rendering does not have the document object defined
1858
- // eslint-disable-next-line no-restricted-globals
1859
- if (typeof document !== 'undefined') $507fabe10e71c6fb$export$2f1888112f558a7d();
1860
- function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
1861
- return $507fabe10e71c6fb$var$currentModality !== 'pointer';
1862
- }
1863
- function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
1864
- return $507fabe10e71c6fb$var$currentModality;
1865
- }
1866
- function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
1867
- $507fabe10e71c6fb$var$currentModality = modality;
1868
- $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
1869
- }
1870
- const $507fabe10e71c6fb$var$nonTextInputTypes = new Set([
1871
- 'checkbox',
1872
- 'radio',
1873
- 'range',
1874
- 'color',
1875
- 'file',
1876
- 'image',
1877
- 'button',
1878
- 'submit',
1879
- 'reset'
1880
- ]);
1881
- /**
1882
- * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that
1883
- * focus visible style can be properly set.
1884
- */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
1885
- let document1 = ($431fbd86ca7dc216$export$b204af158042fbac)(e === null || e === void 0 ? void 0 : e.target);
1886
- const IHTMLInputElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
1887
- const IHTMLTextAreaElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
1888
- const IHTMLElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
1889
- const IKeyboardEvent = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
1890
- // For keyboard events that occur on a non-input element that will move focus into input element (aka ArrowLeft going from Datepicker button to the main input group)
1891
- // we need to rely on the user passing isTextInput into here. This way we can skip toggling focus visiblity for said input element
1892
- isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
1893
- return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
1894
- }
1895
- function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
1896
- $507fabe10e71c6fb$var$setupGlobalFocusEvents();
1897
- (React.useEffect)(()=>{
1898
- let handler = (modality, e)=>{
1899
- // We want to early return for any keyboard events that occur inside text inputs EXCEPT for Tab and Escape
1900
- if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
1901
- fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
1902
- };
1903
- $507fabe10e71c6fb$var$changeHandlers.add(handler);
1904
- return ()=>{
1905
- $507fabe10e71c6fb$var$changeHandlers.delete(handler);
1906
- };
1907
- // eslint-disable-next-line react-hooks/exhaustive-deps
1908
- }, deps);
1909
- }
1910
-
1911
- /*
1912
- * Copyright 2020 Adobe. All rights reserved.
1913
- * This file is licensed to you under the Apache License, Version 2.0 (the 'License');
1914
- * you may not use this file except in compliance with the License. You may obtain a copy
1915
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1916
- *
1917
- * Unless required by applicable law or agreed to in writing, software distributed under
1918
- * the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1919
- * OF ANY KIND, either express or implied. See the License for the specific language
1920
- * governing permissions and limitations under the License.
1921
- */
1922
-
1923
- function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
1924
- // If the user is interacting with a virtual cursor, e.g. screen reader, then
1925
- // wait until after any animated transitions that are currently occurring on
1926
- // the page before shifting focus. This avoids issues with VoiceOver on iOS
1927
- // causing the page to scroll when moving focus if the element is transitioning
1928
- // from off the screen.
1929
- const ownerDocument = ($431fbd86ca7dc216$export$b204af158042fbac)(element);
1930
- const activeElement = ($d4ee10de306f2510$export$cd4e5573fbe2b576)(ownerDocument);
1931
- if (($507fabe10e71c6fb$export$630ff653c5ada6a9)() === 'virtual') {
1932
- let lastFocusedElement = activeElement;
1933
- ($bbed8b41f857bcc0$export$24490316f764c430)(()=>{
1934
- // If focus did not move and the element is still in the document, focus it.
1935
- if (($d4ee10de306f2510$export$cd4e5573fbe2b576)(ownerDocument) === lastFocusedElement && element.isConnected) ($7215afc6de606d6b$export$de79e2c695e052f3)(element);
1936
- });
1937
- } else ($7215afc6de606d6b$export$de79e2c695e052f3)(element);
1938
- }
1939
-
1940
- /*
1941
- * Copyright 2020 Adobe. All rights reserved.
1942
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1943
- * you may not use this file except in compliance with the License. You may obtain a copy
1944
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1945
- *
1946
- * Unless required by applicable law or agreed to in writing, software distributed under
1947
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1948
- * OF ANY KIND, either express or implied. See the License for the specific language
1949
- * governing permissions and limitations under the License.
1950
- */ // Portions of the code in this file are based on code from react.
1951
- // Original licensing for the following can be found in the
1952
- // NOTICE file in the root directory of this source tree.
1953
- // See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions
1954
-
1955
-
1956
-
1957
- function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
1958
- let { isDisabled: isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange: onFocusChange } = props;
1959
- const onBlur = (React.useCallback)((e)=>{
1960
- if (e.target === e.currentTarget) {
1961
- if (onBlurProp) onBlurProp(e);
1962
- if (onFocusChange) onFocusChange(false);
1963
- return true;
1964
- }
1965
- }, [
1966
- onBlurProp,
1967
- onFocusChange
1968
- ]);
1969
- const onSyntheticFocus = ($8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);
1970
- const onFocus = (React.useCallback)((e)=>{
1971
- // Double check that document.activeElement actually matches e.target in case a previously chained
1972
- // focus handler already moved focus somewhere else.
1973
- const ownerDocument = ($431fbd86ca7dc216$export$b204af158042fbac)(e.target);
1974
- const activeElement = ownerDocument ? ($d4ee10de306f2510$export$cd4e5573fbe2b576)(ownerDocument) : ($d4ee10de306f2510$export$cd4e5573fbe2b576)();
1975
- if (e.target === e.currentTarget && activeElement === ($d4ee10de306f2510$export$e58f029f0fbfdb29)(e.nativeEvent)) {
1976
- if (onFocusProp) onFocusProp(e);
1977
- if (onFocusChange) onFocusChange(true);
1978
- onSyntheticFocus(e);
1979
- }
1980
- }, [
1981
- onFocusChange,
1982
- onFocusProp,
1983
- onSyntheticFocus
1984
- ]);
1985
- return {
1986
- focusProps: {
1987
- onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : undefined,
1988
- onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : undefined
1989
- }
1990
- };
1991
- }
1992
-
1993
- /*
1994
- * Copyright 2020 Adobe. All rights reserved.
1995
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1996
- * you may not use this file except in compliance with the License. You may obtain a copy
1997
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1998
- *
1999
- * Unless required by applicable law or agreed to in writing, software distributed under
2000
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2001
- * OF ANY KIND, either express or implied. See the License for the specific language
2002
- * governing permissions and limitations under the License.
2003
- */ function $93925083ecbb358c$export$48d1ea6320830260(handler) {
2004
- if (!handler) return undefined;
2005
- let shouldStopPropagation = true;
2006
- return (e)=>{
2007
- let event = {
2008
- ...e,
2009
- preventDefault () {
2010
- e.preventDefault();
2011
- },
2012
- isDefaultPrevented () {
2013
- return e.isDefaultPrevented();
2014
- },
2015
- stopPropagation () {
2016
- if (shouldStopPropagation && process.env.NODE_ENV !== 'production') console.error('stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.');
2017
- else shouldStopPropagation = true;
2018
- },
2019
- continuePropagation () {
2020
- shouldStopPropagation = false;
2021
- },
2022
- isPropagationStopped () {
2023
- return shouldStopPropagation;
2024
- }
2025
- };
2026
- handler(event);
2027
- if (shouldStopPropagation) e.stopPropagation();
2028
- };
2029
- }
2030
-
2031
- /*
2032
- * Copyright 2020 Adobe. All rights reserved.
2033
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2034
- * you may not use this file except in compliance with the License. You may obtain a copy
2035
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
2036
- *
2037
- * Unless required by applicable law or agreed to in writing, software distributed under
2038
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2039
- * OF ANY KIND, either express or implied. See the License for the specific language
2040
- * governing permissions and limitations under the License.
2041
- */
2042
- function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
2043
- return {
2044
- keyboardProps: props.isDisabled ? {} : {
2045
- onKeyDown: ($93925083ecbb358c$export$48d1ea6320830260)(props.onKeyDown),
2046
- onKeyUp: ($93925083ecbb358c$export$48d1ea6320830260)(props.onKeyUp)
2047
- }
2048
- };
2049
- }
2050
-
2051
- /*
2052
- * Copyright 2020 Adobe. All rights reserved.
2053
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2054
- * you may not use this file except in compliance with the License. You may obtain a copy
2055
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
2056
- *
2057
- * Unless required by applicable law or agreed to in writing, software distributed under
2058
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2059
- * OF ANY KIND, either express or implied. See the License for the specific language
2060
- * governing permissions and limitations under the License.
2061
- */
2062
-
2063
-
2064
-
2065
-
2066
- let $f645667febf57a63$export$f9762fab77588ecb = /*#__PURE__*/ (React).createContext(null);
2067
- function $f645667febf57a63$var$useFocusableContext(ref) {
2068
- let context = (React.useContext)($f645667febf57a63$export$f9762fab77588ecb) || {};
2069
- ($e7801be82b4b2a53$export$4debdb1a3f0fa79e)(context, ref);
2070
- // eslint-disable-next-line
2071
- let { ref: _, ...otherProps } = context;
2072
- return otherProps;
2073
- }
2074
- function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
2075
- let { focusProps: focusProps } = ($a1ea59d68270f0dd$export$f8168d8dd8fd66e6)(props);
2076
- let { keyboardProps: keyboardProps } = ($46d819fcbaf35654$export$8f71654801c2f7cd)(props);
2077
- let interactions = ($3ef42575df84b30b$export$9d1611c77c2fe928)(focusProps, keyboardProps);
2078
- let domProps = $f645667febf57a63$var$useFocusableContext(domRef);
2079
- let interactionProps = props.isDisabled ? {} : domProps;
2080
- let autoFocusRef = (React.useRef)(props.autoFocus);
2081
- (React.useEffect)(()=>{
2082
- if (autoFocusRef.current && domRef.current) ($3ad3f6e1647bc98d$export$80f3e147d781571c)(domRef.current);
2083
- autoFocusRef.current = false;
2084
- }, [
2085
- domRef
2086
- ]);
2087
- // Always set a tabIndex so that Safari allows focusing native buttons and inputs.
2088
- let tabIndex = props.excludeFromTabOrder ? -1 : 0;
2089
- if (props.isDisabled) tabIndex = undefined;
2090
- return {
2091
- focusableProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)({
2092
- ...interactions,
2093
- tabIndex: tabIndex
2094
- }, interactionProps)
2095
- };
2096
- }
2097
-
2098
- /*
2099
- * Copyright 2020 Adobe. All rights reserved.
2100
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2101
- * you may not use this file except in compliance with the License. You may obtain a copy
2102
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
2103
- *
2104
- * Unless required by applicable law or agreed to in writing, software distributed under
2105
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2106
- * OF ANY KIND, either express or implied. See the License for the specific language
2107
- * governing permissions and limitations under the License.
2108
- */ // Portions of the code in this file are based on code from react.
2109
- // Original licensing for the following can be found in the
2110
- // NOTICE file in the root directory of this source tree.
2111
- // See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions
2112
-
2113
-
2114
-
2115
- function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
2116
- let { isDisabled: isDisabled, onBlurWithin: onBlurWithin, onFocusWithin: onFocusWithin, onFocusWithinChange: onFocusWithinChange } = props;
2117
- let state = (React.useRef)({
2118
- isFocusWithin: false
2119
- });
2120
- let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = ($03deb23ff14920c4$export$4eaf04e54aa8eed6)();
2121
- let onBlur = (React.useCallback)((e)=>{
2122
- // Ignore events bubbling through portals.
2123
- if (!e.currentTarget.contains(e.target)) return;
2124
- // We don't want to trigger onBlurWithin and then immediately onFocusWithin again
2125
- // when moving focus inside the element. Only trigger if the currentTarget doesn't
2126
- // include the relatedTarget (where focus is moving).
2127
- if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
2128
- state.current.isFocusWithin = false;
2129
- removeAllGlobalListeners();
2130
- if (onBlurWithin) onBlurWithin(e);
2131
- if (onFocusWithinChange) onFocusWithinChange(false);
2132
- }
2133
- }, [
2134
- onBlurWithin,
2135
- onFocusWithinChange,
2136
- state,
2137
- removeAllGlobalListeners
2138
- ]);
2139
- let onSyntheticFocus = ($8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);
2140
- let onFocus = (React.useCallback)((e)=>{
2141
- // Ignore events bubbling through portals.
2142
- if (!e.currentTarget.contains(e.target)) return;
2143
- // Double check that document.activeElement actually matches e.target in case a previously chained
2144
- // focus handler already moved focus somewhere else.
2145
- const ownerDocument = ($431fbd86ca7dc216$export$b204af158042fbac)(e.target);
2146
- const activeElement = ($d4ee10de306f2510$export$cd4e5573fbe2b576)(ownerDocument);
2147
- if (!state.current.isFocusWithin && activeElement === ($d4ee10de306f2510$export$e58f029f0fbfdb29)(e.nativeEvent)) {
2148
- if (onFocusWithin) onFocusWithin(e);
2149
- if (onFocusWithinChange) onFocusWithinChange(true);
2150
- state.current.isFocusWithin = true;
2151
- onSyntheticFocus(e);
2152
- // Browsers don't fire blur events when elements are removed from the DOM.
2153
- // However, if a focus event occurs outside the element we're tracking, we
2154
- // can manually fire onBlur.
2155
- let currentTarget = e.currentTarget;
2156
- addGlobalListener(ownerDocument, 'focus', (e)=>{
2157
- if (state.current.isFocusWithin && !($d4ee10de306f2510$export$4282f70798064fe0)(currentTarget, e.target)) {
2158
- let nativeEvent = new ownerDocument.defaultView.FocusEvent('blur', {
2159
- relatedTarget: e.target
2160
- });
2161
- ($8a9cb279dc87e130$export$c2b7abe5d61ec696)(nativeEvent, currentTarget);
2162
- let event = ($8a9cb279dc87e130$export$525bc4921d56d4a)(nativeEvent);
2163
- onBlur(event);
2164
- }
2165
- }, {
2166
- capture: true
2167
- });
2168
- }
2169
- }, [
2170
- onFocusWithin,
2171
- onFocusWithinChange,
2172
- onSyntheticFocus,
2173
- addGlobalListener,
2174
- onBlur
2175
- ]);
2176
- if (isDisabled) return {
2177
- focusWithinProps: {
2178
- // These cannot be null, that would conflict in mergeProps
2179
- onFocus: undefined,
2180
- onBlur: undefined
2181
- }
2182
- };
2183
- return {
2184
- focusWithinProps: {
2185
- onFocus: onFocus,
2186
- onBlur: onBlur
2187
- }
2188
- };
2189
- }
2190
-
2191
- /*
2192
- * Copyright 2020 Adobe. All rights reserved.
2193
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2194
- * you may not use this file except in compliance with the License. You may obtain a copy
2195
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
2196
- *
2197
- * Unless required by applicable law or agreed to in writing, software distributed under
2198
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2199
- * OF ANY KIND, either express or implied. See the License for the specific language
2200
- * governing permissions and limitations under the License.
2201
- */ // Portions of the code in this file are based on code from react.
2202
- // Original licensing for the following can be found in the
2203
- // NOTICE file in the root directory of this source tree.
2204
- // See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions
2205
-
2206
-
2207
- // iOS fires onPointerEnter twice: once with pointerType="touch" and again with pointerType="mouse".
2208
- // We want to ignore these emulated events so they do not trigger hover behavior.
2209
- // See https://bugs.webkit.org/show_bug.cgi?id=214609.
2210
- let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
2211
- let $6179b936705e76d3$var$hoverCount = 0;
2212
- function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
2213
- $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = true;
2214
- // Clear globalIgnoreEmulatedMouseEvents after a short timeout. iOS fires onPointerEnter
2215
- // with pointerType="mouse" immediately after onPointerUp and before onFocus. On other
2216
- // devices that don't have this quirk, we don't want to ignore a mouse hover sometime in
2217
- // the distant future because a user previously touched the element.
2218
- setTimeout(()=>{
2219
- $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
2220
- }, 50);
2221
- }
2222
- function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
2223
- if (e.pointerType === 'touch') $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();
2224
- }
2225
- function $6179b936705e76d3$var$setupGlobalTouchEvents() {
2226
- if (typeof document === 'undefined') return;
2227
- if ($6179b936705e76d3$var$hoverCount === 0) {
2228
- if (typeof PointerEvent !== 'undefined') document.addEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);
2229
- else if (process.env.NODE_ENV === 'test') document.addEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
2230
- }
2231
- $6179b936705e76d3$var$hoverCount++;
2232
- return ()=>{
2233
- $6179b936705e76d3$var$hoverCount--;
2234
- if ($6179b936705e76d3$var$hoverCount > 0) return;
2235
- if (typeof PointerEvent !== 'undefined') document.removeEventListener('pointerup', $6179b936705e76d3$var$handleGlobalPointerEvent);
2236
- else if (process.env.NODE_ENV === 'test') document.removeEventListener('touchend', $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
2237
- };
2238
- }
2239
- function $6179b936705e76d3$export$ae780daf29e6d456(props) {
2240
- let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, isDisabled: isDisabled } = props;
2241
- let [isHovered, setHovered] = (React.useState)(false);
2242
- let state = (React.useRef)({
2243
- isHovered: false,
2244
- ignoreEmulatedMouseEvents: false,
2245
- pointerType: '',
2246
- target: null
2247
- }).current;
2248
- (React.useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []);
2249
- let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = ($03deb23ff14920c4$export$4eaf04e54aa8eed6)();
2250
- let { hoverProps: hoverProps, triggerHoverEnd: triggerHoverEnd } = (React.useMemo)(()=>{
2251
- let triggerHoverStart = (event, pointerType)=>{
2252
- state.pointerType = pointerType;
2253
- if (isDisabled || pointerType === 'touch' || state.isHovered || !event.currentTarget.contains(event.target)) return;
2254
- state.isHovered = true;
2255
- let target = event.currentTarget;
2256
- state.target = target;
2257
- // When an element that is hovered over is removed, no pointerleave event is fired by the browser,
2258
- // even though the originally hovered target may have shrunk in size so it is no longer hovered.
2259
- // However, a pointerover event will be fired on the new target the mouse is over.
2260
- // In Chrome this happens immediately. In Safari and Firefox, it happens upon moving the mouse one pixel.
2261
- addGlobalListener(($431fbd86ca7dc216$export$b204af158042fbac)(event.target), 'pointerover', (e)=>{
2262
- if (state.isHovered && state.target && !($d4ee10de306f2510$export$4282f70798064fe0)(state.target, e.target)) triggerHoverEnd(e, e.pointerType);
2263
- }, {
2264
- capture: true
2265
- });
2266
- if (onHoverStart) onHoverStart({
2267
- type: 'hoverstart',
2268
- target: target,
2269
- pointerType: pointerType
2270
- });
2271
- if (onHoverChange) onHoverChange(true);
2272
- setHovered(true);
2273
- };
2274
- let triggerHoverEnd = (event, pointerType)=>{
2275
- let target = state.target;
2276
- state.pointerType = '';
2277
- state.target = null;
2278
- if (pointerType === 'touch' || !state.isHovered || !target) return;
2279
- state.isHovered = false;
2280
- removeAllGlobalListeners();
2281
- if (onHoverEnd) onHoverEnd({
2282
- type: 'hoverend',
2283
- target: target,
2284
- pointerType: pointerType
2285
- });
2286
- if (onHoverChange) onHoverChange(false);
2287
- setHovered(false);
2288
- };
2289
- let hoverProps = {};
2290
- if (typeof PointerEvent !== 'undefined') {
2291
- hoverProps.onPointerEnter = (e)=>{
2292
- if ($6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === 'mouse') return;
2293
- triggerHoverStart(e, e.pointerType);
2294
- };
2295
- hoverProps.onPointerLeave = (e)=>{
2296
- if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, e.pointerType);
2297
- };
2298
- } else if (process.env.NODE_ENV === 'test') {
2299
- hoverProps.onTouchStart = ()=>{
2300
- state.ignoreEmulatedMouseEvents = true;
2301
- };
2302
- hoverProps.onMouseEnter = (e)=>{
2303
- if (!state.ignoreEmulatedMouseEvents && !$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, 'mouse');
2304
- state.ignoreEmulatedMouseEvents = false;
2305
- };
2306
- hoverProps.onMouseLeave = (e)=>{
2307
- if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd(e, 'mouse');
2308
- };
2309
- }
2310
- return {
2311
- hoverProps: hoverProps,
2312
- triggerHoverEnd: triggerHoverEnd
2313
- };
2314
- }, [
2315
- onHoverStart,
2316
- onHoverChange,
2317
- onHoverEnd,
2318
- isDisabled,
2319
- state,
2320
- addGlobalListener,
2321
- removeAllGlobalListeners
2322
- ]);
2323
- (React.useEffect)(()=>{
2324
- // Call the triggerHoverEnd as soon as isDisabled changes to true
2325
- // Safe to call triggerHoverEnd, it will early return if we aren't currently hovering
2326
- if (isDisabled) triggerHoverEnd({
2327
- currentTarget: state.target
2328
- }, state.pointerType);
2329
- // eslint-disable-next-line react-hooks/exhaustive-deps
2330
- }, [
2331
- isDisabled
2332
- ]);
2333
- return {
2334
- hoverProps: hoverProps,
2335
- isHovered: isHovered
2336
- };
2337
- }
2338
-
2339
- /*
2340
- * Copyright 2024 Adobe. All rights reserved.
2341
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2342
- * you may not use this file except in compliance with the License. You may obtain a copy
2343
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
2344
- *
2345
- * Unless required by applicable law or agreed to in writing, software distributed under
2346
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2347
- * OF ANY KIND, either express or implied. See the License for the specific language
2348
- * governing permissions and limitations under the License.
2349
- */
2350
- // React doesn't understand the <template> element, which doesn't have children like a normal element.
2351
- // It will throw an error during hydration when it expects the firstChild to contain content rendered
2352
- // on the server, when in reality, the browser will have placed this inside the `content` document fragment.
2353
- // This monkey patches the firstChild property for our special hidden template elements to work around this error.
2354
- // See https://github.com/facebook/react/issues/19932
2355
- if (typeof HTMLTemplateElement !== 'undefined') {
2356
- const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, 'firstChild').get;
2357
- Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {
2358
- configurable: true,
2359
- enumerable: true,
2360
- get: function() {
2361
- if (this.dataset.reactAriaHidden) return this.content.firstChild;
2362
- else return getFirstChild.call(this);
2363
- }
2364
- });
2365
- }
2366
- const $f39a9eba43920ace$export$94b6d0abf7d33e8c = /*#__PURE__*/ (React.createContext)(false);
2367
- function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
2368
- let isHidden = (React.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);
2369
- if (isHidden) // Don't hide again if we are already hidden.
2370
- return /*#__PURE__*/ (React).createElement((React).Fragment, null, props.children);
2371
- let children = /*#__PURE__*/ (React).createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {
2372
- value: true
2373
- }, props.children);
2374
- // In SSR, portals are not supported by React. Instead, always render into a <template>
2375
- // element, which the browser will never display to the user. In addition, the
2376
- // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.
2377
- return /*#__PURE__*/ (React).createElement("template", {
2378
- "data-react-aria-hidden": true
2379
- }, children);
2380
- }
2381
- function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
2382
- let Wrapper = (props, ref)=>{
2383
- let isHidden = (React.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);
2384
- if (isHidden) return null;
2385
- return fn(props, ref);
2386
- };
2387
- // @ts-ignore - for react dev tools
2388
- Wrapper.displayName = fn.displayName || fn.name;
2389
- return (React.forwardRef)(Wrapper);
2390
- }
2391
- function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
2392
- return (React.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c);
2393
- }
2394
-
2395
- /*
2396
- * Copyright 2022 Adobe. All rights reserved.
2397
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
2398
- * you may not use this file except in compliance with the License. You may obtain a copy
2399
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
2400
- *
2401
- * Unless required by applicable law or agreed to in writing, software distributed under
2402
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2403
- * OF ANY KIND, either express or implied. See the License for the specific language
2404
- * governing permissions and limitations under the License.
2405
- */
2406
-
2407
- const $514c0188e459b4c0$export$9afb8bc826b033ea = /*#__PURE__*/ (React.createContext)({});
2408
- const $514c0188e459b4c0$export$5f1af8db9871e1d6 = /*#__PURE__*/ (React.forwardRef)(function Text(props, ref) {
2409
- [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $514c0188e459b4c0$export$9afb8bc826b033ea);
2410
- let { elementType: ElementType = 'span', ...domProps } = props;
2411
- // @ts-ignore
2412
- return /*#__PURE__*/ (React).createElement(ElementType, {
2413
- className: "react-aria-Text",
2414
- ...domProps,
2415
- ref: ref
2416
- });
2417
- });
2418
-
2419
- exports.$03deb23ff14920c4$export$4eaf04e54aa8eed6 = $03deb23ff14920c4$export$4eaf04e54aa8eed6;
2420
- exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7 = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7;
2421
- exports.$313b98861ee5dd6c$export$d6875122194c7b44 = $313b98861ee5dd6c$export$d6875122194c7b44;
2422
- exports.$3ad3f6e1647bc98d$export$80f3e147d781571c = $3ad3f6e1647bc98d$export$80f3e147d781571c;
2423
- exports.$3ef42575df84b30b$export$9d1611c77c2fe928 = $3ef42575df84b30b$export$9d1611c77c2fe928;
2424
- exports.$431fbd86ca7dc216$export$b204af158042fbac = $431fbd86ca7dc216$export$b204af158042fbac;
2425
- exports.$431fbd86ca7dc216$export$f21a1ffae260145a = $431fbd86ca7dc216$export$f21a1ffae260145a;
2426
- exports.$458b0a5536c1a7cf$export$40bfa8c7b0832715 = $458b0a5536c1a7cf$export$40bfa8c7b0832715;
2427
- exports.$46d819fcbaf35654$export$8f71654801c2f7cd = $46d819fcbaf35654$export$8f71654801c2f7cd;
2428
- exports.$507fabe10e71c6fb$export$630ff653c5ada6a9 = $507fabe10e71c6fb$export$630ff653c5ada6a9;
2429
- exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a = $507fabe10e71c6fb$export$8397ddfc504fdb9a;
2430
- exports.$507fabe10e71c6fb$export$b9b3dfddab17db27 = $507fabe10e71c6fb$export$b9b3dfddab17db27;
2431
- exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3 = $507fabe10e71c6fb$export$ec71b4b83ac08ec3;
2432
- exports.$514c0188e459b4c0$export$5f1af8db9871e1d6 = $514c0188e459b4c0$export$5f1af8db9871e1d6;
2433
- exports.$514c0188e459b4c0$export$9afb8bc826b033ea = $514c0188e459b4c0$export$9afb8bc826b033ea;
2434
- exports.$5dc95899b306f630$export$c9058316764c140e = $5dc95899b306f630$export$c9058316764c140e;
2435
- exports.$6179b936705e76d3$export$ae780daf29e6d456 = $6179b936705e76d3$export$ae780daf29e6d456;
2436
- exports.$64fa3d84918910a7$export$2881499e37b75b9a = $64fa3d84918910a7$export$2881499e37b75b9a;
2437
- exports.$64fa3d84918910a7$export$29f1550f4b0d4415 = $64fa3d84918910a7$export$29f1550f4b0d4415;
2438
- exports.$64fa3d84918910a7$export$4d86445c2cf5e3 = $64fa3d84918910a7$export$4d86445c2cf5e3;
2439
- exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8;
2440
- exports.$64fa3d84918910a7$export$c62b8e45d58ddad9 = $64fa3d84918910a7$export$c62b8e45d58ddad9;
2441
- exports.$64fa3d84918910a7$export$ef03459518577ad4 = $64fa3d84918910a7$export$ef03459518577ad4;
2442
- exports.$64fa3d84918910a7$export$fabf2dc03a41866e = $64fa3d84918910a7$export$fabf2dc03a41866e;
2443
- exports.$65484d02dcb7eb3e$export$457c3d6518dd4c6f = $65484d02dcb7eb3e$export$457c3d6518dd4c6f;
2444
- exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63 = $6a7db85432448f7f$export$29bf1b5f2c56cf63;
2445
- exports.$6a7db85432448f7f$export$60278871457622de = $6a7db85432448f7f$export$60278871457622de;
2446
- exports.$7215afc6de606d6b$export$de79e2c695e052f3 = $7215afc6de606d6b$export$de79e2c695e052f3;
2447
- exports.$8a9cb279dc87e130$export$525bc4921d56d4a = $8a9cb279dc87e130$export$525bc4921d56d4a;
2448
- exports.$8a9cb279dc87e130$export$c2b7abe5d61ec696 = $8a9cb279dc87e130$export$c2b7abe5d61ec696;
2449
- exports.$8a9cb279dc87e130$export$cabe61c495ee3649 = $8a9cb279dc87e130$export$cabe61c495ee3649;
2450
- exports.$8ae05eaa5c114e9c$export$7f54fc3180508a52 = $8ae05eaa5c114e9c$export$7f54fc3180508a52;
2451
- exports.$9446cca9a3875146$export$7d15b64cf5a3a4c4 = $9446cca9a3875146$export$7d15b64cf5a3a4c4;
2452
- exports.$9446cca9a3875146$export$cb6e0bb50bc19463 = $9446cca9a3875146$export$cb6e0bb50bc19463;
2453
- exports.$9ab94262bd0047c7$export$420e68273165f4ec = $9ab94262bd0047c7$export$420e68273165f4ec;
2454
- exports.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6;
2455
- exports.$b4b717babfbb907b$export$4c063cf1350e6fed = $b4b717babfbb907b$export$4c063cf1350e6fed;
2456
- exports.$b4b717babfbb907b$export$bebd5a1431fec25d = $b4b717babfbb907b$export$bebd5a1431fec25d;
2457
- exports.$b5e257d569688ac6$export$535bd6ca7f90a273 = $b5e257d569688ac6$export$535bd6ca7f90a273;
2458
- exports.$bbed8b41f857bcc0$export$24490316f764c430 = $bbed8b41f857bcc0$export$24490316f764c430;
2459
- exports.$bdb11010cef70236$export$b4cc09c592e8fdb8 = $bdb11010cef70236$export$b4cc09c592e8fdb8;
2460
- exports.$bdb11010cef70236$export$f680877a34711e37 = $bdb11010cef70236$export$f680877a34711e37;
2461
- exports.$c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$export$186c6964ca17d99;
2462
- exports.$c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$export$6446a186d09e379e;
2463
- exports.$c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$export$78551043582a6a98;
2464
- exports.$c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$export$7bef049ce92e4224;
2465
- exports.$c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$export$9ac100e40613ea10;
2466
- exports.$c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$export$a11b0059900ceec8;
2467
- exports.$c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$export$b7d78993b74f766d;
2468
- exports.$c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$export$e1865c3bedcd822b;
2469
- exports.$c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$export$fedb369cb70207f1;
2470
- exports.$d4ee10de306f2510$export$4282f70798064fe0 = $d4ee10de306f2510$export$4282f70798064fe0;
2471
- exports.$d4ee10de306f2510$export$cd4e5573fbe2b576 = $d4ee10de306f2510$export$cd4e5573fbe2b576;
2472
- exports.$d4ee10de306f2510$export$e58f029f0fbfdb29 = $d4ee10de306f2510$export$e58f029f0fbfdb29;
2473
- exports.$df56164dff5785e2$export$4338b53315abf666 = $df56164dff5785e2$export$4338b53315abf666;
2474
- exports.$e7801be82b4b2a53$export$4debdb1a3f0fa79e = $e7801be82b4b2a53$export$4debdb1a3f0fa79e;
2475
- exports.$e9faafb641e167db$export$90fc3a17d93f704c = $e9faafb641e167db$export$90fc3a17d93f704c;
2476
- exports.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
2477
- exports.$f39a9eba43920ace$export$86427a43e3e48ebb = $f39a9eba43920ace$export$86427a43e3e48ebb;
2478
- exports.$f39a9eba43920ace$export$8dc98ba7eadeaa56 = $f39a9eba43920ace$export$8dc98ba7eadeaa56;
2479
- exports.$f39a9eba43920ace$export$b5d7cc18bb8d2b59 = $f39a9eba43920ace$export$b5d7cc18bb8d2b59;
2480
- exports.$f4e2df6bd15f8569$export$98658e8c59125e6a = $f4e2df6bd15f8569$export$98658e8c59125e6a;
2481
- exports.$f645667febf57a63$export$4c014de7c8940b4c = $f645667febf57a63$export$4c014de7c8940b4c;
2482
- exports.$f645667febf57a63$export$f9762fab77588ecb = $f645667febf57a63$export$f9762fab77588ecb;
2483
- exports.$fca6afa0e843324b$export$f12b703ca79dfbb1 = $fca6afa0e843324b$export$f12b703ca79dfbb1;
2484
- exports.$ff5963eb1fccf552$export$e08e3b67e392101e = $ff5963eb1fccf552$export$e08e3b67e392101e;