@planningcenter/tapestry 3.2.2-rc.9 → 3.2.2

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 (67) hide show
  1. package/dist/components/NumberStepper/NumberStepper.d.ts +8 -16
  2. package/dist/components/NumberStepper/NumberStepper.d.ts.map +1 -1
  3. package/dist/components/NumberStepper/NumberStepper.js +2 -2
  4. package/dist/components/NumberStepper/NumberStepper.js.map +1 -1
  5. package/dist/components/date-picker/DatePicker.d.ts +7 -5
  6. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  7. package/dist/components/date-picker/DatePicker.js +130 -6
  8. package/dist/components/date-picker/DatePicker.js.map +1 -1
  9. package/dist/components/select/Select.d.ts +2 -2
  10. package/dist/components/select/Select.d.ts.map +1 -1
  11. package/dist/components/select/Select.js +4 -1
  12. package/dist/components/select/Select.js.map +1 -1
  13. package/dist/components/select/SelectNative.d.ts +2 -2
  14. package/dist/components/select/SelectNative.d.ts.map +1 -1
  15. package/dist/components/select/SelectNative.js.map +1 -1
  16. package/dist/components/select/SelectPopover.d.ts +2 -1
  17. package/dist/components/select/SelectPopover.d.ts.map +1 -1
  18. package/dist/components/select/SelectPopover.js.map +1 -1
  19. package/dist/ext/@internationalized/date/dist/CalendarDate.js +62 -4
  20. package/dist/ext/@internationalized/date/dist/CalendarDate.js.map +1 -1
  21. package/dist/ext/@internationalized/date/dist/conversion.js +33 -2
  22. package/dist/ext/@internationalized/date/dist/conversion.js.map +1 -1
  23. package/dist/ext/@internationalized/date/dist/manipulation.js +117 -1
  24. package/dist/ext/@internationalized/date/dist/manipulation.js.map +1 -1
  25. package/dist/ext/@internationalized/date/dist/queries.js +9 -1
  26. package/dist/ext/@internationalized/date/dist/queries.js.map +1 -1
  27. package/dist/ext/@internationalized/date/dist/string.js +14 -1
  28. package/dist/ext/@internationalized/date/dist/string.js.map +1 -1
  29. package/dist/ext/@react-aria/focus/dist/FocusScope.js +664 -0
  30. package/dist/ext/@react-aria/focus/dist/FocusScope.js.map +1 -0
  31. package/dist/ext/@react-aria/interactions/dist/focusSafely.js +38 -0
  32. package/dist/ext/@react-aria/interactions/dist/focusSafely.js.map +1 -0
  33. package/dist/ext/@react-aria/interactions/dist/useFocusVisible.js +165 -0
  34. package/dist/ext/@react-aria/interactions/dist/useFocusVisible.js.map +1 -0
  35. package/dist/ext/@react-aria/interactions/dist/utils.js +6 -0
  36. package/dist/ext/@react-aria/interactions/dist/utils.js.map +1 -0
  37. package/dist/ext/@react-aria/utils/dist/DOMFunctions.js +38 -0
  38. package/dist/ext/@react-aria/utils/dist/DOMFunctions.js.map +1 -0
  39. package/dist/ext/@react-aria/utils/dist/ShadowTreeWalker.js +193 -0
  40. package/dist/ext/@react-aria/utils/dist/ShadowTreeWalker.js.map +1 -0
  41. package/dist/ext/@react-aria/utils/dist/domHelpers.js +20 -0
  42. package/dist/ext/@react-aria/utils/dist/domHelpers.js.map +1 -0
  43. package/dist/ext/@react-aria/utils/dist/focusWithoutScrolling.js +66 -0
  44. package/dist/ext/@react-aria/utils/dist/focusWithoutScrolling.js.map +1 -0
  45. package/dist/ext/@react-aria/utils/dist/isElementVisible.js +39 -0
  46. package/dist/ext/@react-aria/utils/dist/isElementVisible.js.map +1 -0
  47. package/dist/ext/@react-aria/utils/dist/isFocusable.js +49 -0
  48. package/dist/ext/@react-aria/utils/dist/isFocusable.js.map +1 -0
  49. package/dist/ext/@react-aria/utils/dist/isVirtualEvent.js +25 -0
  50. package/dist/ext/@react-aria/utils/dist/isVirtualEvent.js.map +1 -0
  51. package/dist/ext/@react-aria/utils/dist/openLink.js +42 -0
  52. package/dist/ext/@react-aria/utils/dist/openLink.js.map +1 -0
  53. package/dist/ext/@react-aria/utils/dist/platform.js +59 -0
  54. package/dist/ext/@react-aria/utils/dist/platform.js.map +1 -0
  55. package/dist/ext/@react-aria/utils/dist/runAfterTransition.js +91 -0
  56. package/dist/ext/@react-aria/utils/dist/runAfterTransition.js.map +1 -0
  57. package/dist/ext/@react-aria/utils/dist/useLayoutEffect.js +17 -0
  58. package/dist/ext/@react-aria/utils/dist/useLayoutEffect.js.map +1 -0
  59. package/dist/ext/@react-stately/flags/dist/import.js +7 -0
  60. package/dist/ext/@react-stately/flags/dist/import.js.map +1 -0
  61. package/dist/reactRender.css +756 -622
  62. package/dist/reactRender.css.map +1 -1
  63. package/dist/reactRenderLegacy.css +756 -622
  64. package/dist/reactRenderLegacy.css.map +1 -1
  65. package/dist/unstable.css +137 -3
  66. package/dist/unstable.css.map +1 -1
  67. package/package.json +3 -3
@@ -0,0 +1,193 @@
1
+ import { nodeContains as $d4ee10de306f2510$export$4282f70798064fe0 } from './DOMFunctions.js';
2
+ import { shadowDOM as $f4e2df6bd15f8569$export$98658e8c59125e6a } from '../../../@react-stately/flags/dist/import.js';
3
+
4
+ // https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/ShadowTreeWalker.ts
5
+
6
+
7
+ class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
8
+ get currentNode() {
9
+ return this._currentNode;
10
+ }
11
+ set currentNode(node) {
12
+ if (!($d4ee10de306f2510$export$4282f70798064fe0)(this.root, node)) throw new Error('Cannot set currentNode to a node that is not contained by the root node.');
13
+ const walkers = [];
14
+ let curNode = node;
15
+ let currentWalkerCurrentNode = node;
16
+ this._currentNode = node;
17
+ while(curNode && curNode !== this.root)if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
18
+ const shadowRoot = curNode;
19
+ const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
20
+ acceptNode: this._acceptNode
21
+ });
22
+ walkers.push(walker);
23
+ walker.currentNode = currentWalkerCurrentNode;
24
+ this._currentSetFor.add(walker);
25
+ curNode = currentWalkerCurrentNode = shadowRoot.host;
26
+ } else curNode = curNode.parentNode;
27
+ const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
28
+ acceptNode: this._acceptNode
29
+ });
30
+ walkers.push(walker);
31
+ walker.currentNode = currentWalkerCurrentNode;
32
+ this._currentSetFor.add(walker);
33
+ this._walkerStack = walkers;
34
+ }
35
+ get doc() {
36
+ return this._doc;
37
+ }
38
+ firstChild() {
39
+ let currentNode = this.currentNode;
40
+ let newNode = this.nextNode();
41
+ if (!($d4ee10de306f2510$export$4282f70798064fe0)(currentNode, newNode)) {
42
+ this.currentNode = currentNode;
43
+ return null;
44
+ }
45
+ if (newNode) this.currentNode = newNode;
46
+ return newNode;
47
+ }
48
+ lastChild() {
49
+ let walker = this._walkerStack[0];
50
+ let newNode = walker.lastChild();
51
+ if (newNode) this.currentNode = newNode;
52
+ return newNode;
53
+ }
54
+ nextNode() {
55
+ const nextNode = this._walkerStack[0].nextNode();
56
+ if (nextNode) {
57
+ const shadowRoot = nextNode.shadowRoot;
58
+ if (shadowRoot) {
59
+ var _this_filter;
60
+ let nodeResult;
61
+ if (typeof this.filter === 'function') nodeResult = this.filter(nextNode);
62
+ else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
63
+ if (nodeResult === NodeFilter.FILTER_ACCEPT) {
64
+ this.currentNode = nextNode;
65
+ return nextNode;
66
+ }
67
+ // _acceptNode should have added new walker for this shadow,
68
+ // go in recursively.
69
+ let newNode = this.nextNode();
70
+ if (newNode) this.currentNode = newNode;
71
+ return newNode;
72
+ }
73
+ if (nextNode) this.currentNode = nextNode;
74
+ return nextNode;
75
+ } else {
76
+ if (this._walkerStack.length > 1) {
77
+ this._walkerStack.shift();
78
+ let newNode = this.nextNode();
79
+ if (newNode) this.currentNode = newNode;
80
+ return newNode;
81
+ } else return null;
82
+ }
83
+ }
84
+ previousNode() {
85
+ const currentWalker = this._walkerStack[0];
86
+ if (currentWalker.currentNode === currentWalker.root) {
87
+ if (this._currentSetFor.has(currentWalker)) {
88
+ this._currentSetFor.delete(currentWalker);
89
+ if (this._walkerStack.length > 1) {
90
+ this._walkerStack.shift();
91
+ let newNode = this.previousNode();
92
+ if (newNode) this.currentNode = newNode;
93
+ return newNode;
94
+ } else return null;
95
+ }
96
+ return null;
97
+ }
98
+ const previousNode = currentWalker.previousNode();
99
+ if (previousNode) {
100
+ const shadowRoot = previousNode.shadowRoot;
101
+ if (shadowRoot) {
102
+ var _this_filter;
103
+ let nodeResult;
104
+ if (typeof this.filter === 'function') nodeResult = this.filter(previousNode);
105
+ else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
106
+ if (nodeResult === NodeFilter.FILTER_ACCEPT) {
107
+ if (previousNode) this.currentNode = previousNode;
108
+ return previousNode;
109
+ }
110
+ // _acceptNode should have added new walker for this shadow,
111
+ // go in recursively.
112
+ let newNode = this.lastChild();
113
+ if (newNode) this.currentNode = newNode;
114
+ return newNode;
115
+ }
116
+ if (previousNode) this.currentNode = previousNode;
117
+ return previousNode;
118
+ } else {
119
+ if (this._walkerStack.length > 1) {
120
+ this._walkerStack.shift();
121
+ let newNode = this.previousNode();
122
+ if (newNode) this.currentNode = newNode;
123
+ return newNode;
124
+ } else return null;
125
+ }
126
+ }
127
+ /**
128
+ * @deprecated
129
+ */ nextSibling() {
130
+ // if (__DEV__) {
131
+ // throw new Error("Method not implemented.");
132
+ // }
133
+ return null;
134
+ }
135
+ /**
136
+ * @deprecated
137
+ */ previousSibling() {
138
+ // if (__DEV__) {
139
+ // throw new Error("Method not implemented.");
140
+ // }
141
+ return null;
142
+ }
143
+ /**
144
+ * @deprecated
145
+ */ parentNode() {
146
+ // if (__DEV__) {
147
+ // throw new Error("Method not implemented.");
148
+ // }
149
+ return null;
150
+ }
151
+ constructor(doc, root, whatToShow, filter){
152
+ this._walkerStack = [];
153
+ this._currentSetFor = new Set();
154
+ this._acceptNode = (node)=>{
155
+ if (node.nodeType === Node.ELEMENT_NODE) {
156
+ const shadowRoot = node.shadowRoot;
157
+ if (shadowRoot) {
158
+ const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
159
+ acceptNode: this._acceptNode
160
+ });
161
+ this._walkerStack.unshift(walker);
162
+ return NodeFilter.FILTER_ACCEPT;
163
+ } else {
164
+ var _this_filter;
165
+ if (typeof this.filter === 'function') return this.filter(node);
166
+ else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
167
+ else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
168
+ }
169
+ }
170
+ return NodeFilter.FILTER_SKIP;
171
+ };
172
+ this._doc = doc;
173
+ this.root = root;
174
+ this.filter = filter !== null && filter !== void 0 ? filter : null;
175
+ this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
176
+ this._currentNode = root;
177
+ this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
178
+ const shadowRoot = root.shadowRoot;
179
+ if (shadowRoot) {
180
+ const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
181
+ acceptNode: this._acceptNode
182
+ });
183
+ this._walkerStack.unshift(walker);
184
+ }
185
+ }
186
+ }
187
+ function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
188
+ if (($f4e2df6bd15f8569$export$98658e8c59125e6a)()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
189
+ return doc.createTreeWalker(root, whatToShow, filter);
190
+ }
191
+
192
+ export { $dfc540311bf7f109$export$63eb3ababa9c55c4 as ShadowTreeWalker, $dfc540311bf7f109$export$4d0f8be8b12a7ef6 as createShadowTreeWalker };
193
+ //# sourceMappingURL=ShadowTreeWalker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShadowTreeWalker.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/ShadowTreeWalker.mjs"],"sourcesContent":["import {nodeContains as $d4ee10de306f2510$export$4282f70798064fe0} from \"./DOMFunctions.mjs\";\nimport {shadowDOM as $bJKXg$shadowDOM} from \"@react-stately/flags\";\n\n// https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/ShadowTreeWalker.ts\n\n\nclass $dfc540311bf7f109$export$63eb3ababa9c55c4 {\n get currentNode() {\n return this._currentNode;\n }\n set currentNode(node) {\n if (!(0, $d4ee10de306f2510$export$4282f70798064fe0)(this.root, node)) throw new Error('Cannot set currentNode to a node that is not contained by the root node.');\n const walkers = [];\n let curNode = node;\n let currentWalkerCurrentNode = node;\n this._currentNode = node;\n while(curNode && curNode !== this.root)if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n const shadowRoot = curNode;\n const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {\n acceptNode: this._acceptNode\n });\n walkers.push(walker);\n walker.currentNode = currentWalkerCurrentNode;\n this._currentSetFor.add(walker);\n curNode = currentWalkerCurrentNode = shadowRoot.host;\n } else curNode = curNode.parentNode;\n const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {\n acceptNode: this._acceptNode\n });\n walkers.push(walker);\n walker.currentNode = currentWalkerCurrentNode;\n this._currentSetFor.add(walker);\n this._walkerStack = walkers;\n }\n get doc() {\n return this._doc;\n }\n firstChild() {\n let currentNode = this.currentNode;\n let newNode = this.nextNode();\n if (!(0, $d4ee10de306f2510$export$4282f70798064fe0)(currentNode, newNode)) {\n this.currentNode = currentNode;\n return null;\n }\n if (newNode) this.currentNode = newNode;\n return newNode;\n }\n lastChild() {\n let walker = this._walkerStack[0];\n let newNode = walker.lastChild();\n if (newNode) this.currentNode = newNode;\n return newNode;\n }\n nextNode() {\n const nextNode = this._walkerStack[0].nextNode();\n if (nextNode) {\n const shadowRoot = nextNode.shadowRoot;\n if (shadowRoot) {\n var _this_filter;\n let nodeResult;\n if (typeof this.filter === 'function') nodeResult = this.filter(nextNode);\n else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);\n if (nodeResult === NodeFilter.FILTER_ACCEPT) {\n this.currentNode = nextNode;\n return nextNode;\n }\n // _acceptNode should have added new walker for this shadow,\n // go in recursively.\n let newNode = this.nextNode();\n if (newNode) this.currentNode = newNode;\n return newNode;\n }\n if (nextNode) this.currentNode = nextNode;\n return nextNode;\n } else {\n if (this._walkerStack.length > 1) {\n this._walkerStack.shift();\n let newNode = this.nextNode();\n if (newNode) this.currentNode = newNode;\n return newNode;\n } else return null;\n }\n }\n previousNode() {\n const currentWalker = this._walkerStack[0];\n if (currentWalker.currentNode === currentWalker.root) {\n if (this._currentSetFor.has(currentWalker)) {\n this._currentSetFor.delete(currentWalker);\n if (this._walkerStack.length > 1) {\n this._walkerStack.shift();\n let newNode = this.previousNode();\n if (newNode) this.currentNode = newNode;\n return newNode;\n } else return null;\n }\n return null;\n }\n const previousNode = currentWalker.previousNode();\n if (previousNode) {\n const shadowRoot = previousNode.shadowRoot;\n if (shadowRoot) {\n var _this_filter;\n let nodeResult;\n if (typeof this.filter === 'function') nodeResult = this.filter(previousNode);\n else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);\n if (nodeResult === NodeFilter.FILTER_ACCEPT) {\n if (previousNode) this.currentNode = previousNode;\n return previousNode;\n }\n // _acceptNode should have added new walker for this shadow,\n // go in recursively.\n let newNode = this.lastChild();\n if (newNode) this.currentNode = newNode;\n return newNode;\n }\n if (previousNode) this.currentNode = previousNode;\n return previousNode;\n } else {\n if (this._walkerStack.length > 1) {\n this._walkerStack.shift();\n let newNode = this.previousNode();\n if (newNode) this.currentNode = newNode;\n return newNode;\n } else return null;\n }\n }\n /**\n * @deprecated\n */ nextSibling() {\n // if (__DEV__) {\n // throw new Error(\"Method not implemented.\");\n // }\n return null;\n }\n /**\n * @deprecated\n */ previousSibling() {\n // if (__DEV__) {\n // throw new Error(\"Method not implemented.\");\n // }\n return null;\n }\n /**\n * @deprecated\n */ parentNode() {\n // if (__DEV__) {\n // throw new Error(\"Method not implemented.\");\n // }\n return null;\n }\n constructor(doc, root, whatToShow, filter){\n this._walkerStack = [];\n this._currentSetFor = new Set();\n this._acceptNode = (node)=>{\n if (node.nodeType === Node.ELEMENT_NODE) {\n const shadowRoot = node.shadowRoot;\n if (shadowRoot) {\n const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {\n acceptNode: this._acceptNode\n });\n this._walkerStack.unshift(walker);\n return NodeFilter.FILTER_ACCEPT;\n } else {\n var _this_filter;\n if (typeof this.filter === 'function') return this.filter(node);\n else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);\n else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;\n }\n }\n return NodeFilter.FILTER_SKIP;\n };\n this._doc = doc;\n this.root = root;\n this.filter = filter !== null && filter !== void 0 ? filter : null;\n this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;\n this._currentNode = root;\n this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));\n const shadowRoot = root.shadowRoot;\n if (shadowRoot) {\n const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {\n acceptNode: this._acceptNode\n });\n this._walkerStack.unshift(walker);\n }\n }\n}\nfunction $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {\n if ((0, $bJKXg$shadowDOM)()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);\n return doc.createTreeWalker(root, whatToShow, filter);\n}\n\n\nexport {$dfc540311bf7f109$export$63eb3ababa9c55c4 as ShadowTreeWalker, $dfc540311bf7f109$export$4d0f8be8b12a7ef6 as createShadowTreeWalker};\n//# sourceMappingURL=ShadowTreeWalker.module.js.map\n"],"names":["$bJKXg$shadowDOM"],"mappings":";;;AAGA;;;AAGA,MAAM,yCAAyC,CAAC;AAChD,IAAI,IAAI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C,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE;AACnF,gBAAgB,UAAU,EAAE,IAAI,CAAC;AACjC,aAAa,CAAC;AACd,YAAY,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC;AAC7C,QAAQ;AACR,IAAI;AACJ;AACA,SAAS,yCAAyC,CAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE;AAClF,IAAI,IAAI,CAAIA,yCAAgB,GAAG,EAAE,OAAO,IAAI,yCAAyC,CAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC;AACpH,IAAI,OAAO,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC;AACzD;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,20 @@
1
+ const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
2
+ var _el_ownerDocument;
3
+ return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
4
+ };
5
+ const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
6
+ if (el && 'window' in el && el.window === el) return el;
7
+ const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
8
+ return doc.defaultView || window;
9
+ };
10
+ /**
11
+ * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
12
+ */ function $431fbd86ca7dc216$var$isNode(value) {
13
+ return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';
14
+ }
15
+ function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
16
+ return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;
17
+ }
18
+
19
+ export { $431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot };
20
+ //# sourceMappingURL=domHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domHelpers.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/domHelpers.mjs"],"sourcesContent":["const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{\n var _el_ownerDocument;\n return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;\n};\nconst $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{\n if (el && 'window' in el && el.window === el) return el;\n const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);\n return doc.defaultView || window;\n};\n/**\n * Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.\n */ function $431fbd86ca7dc216$var$isNode(value) {\n return value !== null && typeof value === 'object' && 'nodeType' in value && typeof value.nodeType === 'number';\n}\nfunction $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {\n return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'host' in node;\n}\n\n\nexport {$431fbd86ca7dc216$export$b204af158042fbac as getOwnerDocument, $431fbd86ca7dc216$export$f21a1ffae260145a as getOwnerWindow, $431fbd86ca7dc216$export$af51f0f06c0f328a as isShadowRoot};\n//# sourceMappingURL=domHelpers.module.js.map\n"],"names":[],"mappings":"AAAK,MAAC,yCAAyC,GAAG,CAAC,EAAE,GAAG;AACxD,IAAI,IAAI,iBAAiB;AACzB,IAAI,OAAO,CAAC,iBAAiB,GAAG,EAAE,KAAK,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,aAAa,MAAM,IAAI,IAAI,iBAAiB,KAAK,MAAM,GAAG,iBAAiB,GAAG,QAAQ;AACjK;AACK,MAAC,yCAAyC,GAAG,CAAC,EAAE,GAAG;AACxD,IAAI,IAAI,EAAE,IAAI,QAAQ,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,KAAK,EAAE,EAAE,OAAO,EAAE;AAC3D,IAAI,MAAM,GAAG,GAAG,yCAAyC,CAAC,EAAE,CAAC;AAC7D,IAAI,OAAO,GAAG,CAAC,WAAW,IAAI,MAAM;AACpC;AACA;AACA;AACA,IAAI,SAAS,4BAA4B,CAAC,KAAK,EAAE;AACjD,IAAI,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,UAAU,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AACnH;AACA,SAAS,yCAAyC,CAAC,IAAI,EAAE;AACzD,IAAI,OAAO,4BAA4B,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,sBAAsB,IAAI,MAAM,IAAI,IAAI;AAChH;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
12
+ if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
13
+ preventScroll: true
14
+ });
15
+ else {
16
+ let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
17
+ element.focus();
18
+ $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
19
+ }
20
+ }
21
+ let $7215afc6de606d6b$var$supportsPreventScrollCached = null;
22
+ function $7215afc6de606d6b$var$supportsPreventScroll() {
23
+ if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
24
+ $7215afc6de606d6b$var$supportsPreventScrollCached = false;
25
+ try {
26
+ let focusElem = document.createElement('div');
27
+ focusElem.focus({
28
+ get preventScroll () {
29
+ $7215afc6de606d6b$var$supportsPreventScrollCached = true;
30
+ return true;
31
+ }
32
+ });
33
+ } catch {
34
+ // Ignore
35
+ }
36
+ }
37
+ return $7215afc6de606d6b$var$supportsPreventScrollCached;
38
+ }
39
+ function $7215afc6de606d6b$var$getScrollableElements(element) {
40
+ let parent = element.parentNode;
41
+ let scrollableElements = [];
42
+ let rootScrollingElement = document.scrollingElement || document.documentElement;
43
+ while(parent instanceof HTMLElement && parent !== rootScrollingElement){
44
+ if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
45
+ element: parent,
46
+ scrollTop: parent.scrollTop,
47
+ scrollLeft: parent.scrollLeft
48
+ });
49
+ parent = parent.parentNode;
50
+ }
51
+ if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
52
+ element: rootScrollingElement,
53
+ scrollTop: rootScrollingElement.scrollTop,
54
+ scrollLeft: rootScrollingElement.scrollLeft
55
+ });
56
+ return scrollableElements;
57
+ }
58
+ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
59
+ for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){
60
+ element.scrollTop = scrollTop;
61
+ element.scrollLeft = scrollLeft;
62
+ }
63
+ }
64
+
65
+ export { $7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling };
66
+ //# sourceMappingURL=focusWithoutScrolling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusWithoutScrolling.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $7215afc6de606d6b$export$de79e2c695e052f3(element) {\n if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({\n preventScroll: true\n });\n else {\n let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);\n element.focus();\n $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);\n }\n}\nlet $7215afc6de606d6b$var$supportsPreventScrollCached = null;\nfunction $7215afc6de606d6b$var$supportsPreventScroll() {\n if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {\n $7215afc6de606d6b$var$supportsPreventScrollCached = false;\n try {\n let focusElem = document.createElement('div');\n focusElem.focus({\n get preventScroll () {\n $7215afc6de606d6b$var$supportsPreventScrollCached = true;\n return true;\n }\n });\n } catch {\n // Ignore\n }\n }\n return $7215afc6de606d6b$var$supportsPreventScrollCached;\n}\nfunction $7215afc6de606d6b$var$getScrollableElements(element) {\n let parent = element.parentNode;\n let scrollableElements = [];\n let rootScrollingElement = document.scrollingElement || document.documentElement;\n while(parent instanceof HTMLElement && parent !== rootScrollingElement){\n if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({\n element: parent,\n scrollTop: parent.scrollTop,\n scrollLeft: parent.scrollLeft\n });\n parent = parent.parentNode;\n }\n if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({\n element: rootScrollingElement,\n scrollTop: rootScrollingElement.scrollTop,\n scrollLeft: rootScrollingElement.scrollLeft\n });\n return scrollableElements;\n}\nfunction $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {\n for (let { element: element, scrollTop: scrollTop, scrollLeft: scrollLeft } of scrollableElements){\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n}\n\n\nexport {$7215afc6de606d6b$export$de79e2c695e052f3 as focusWithoutScrolling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,CAAC,YAAY,IAAI,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,kBAAkB,CAAC,IAAI,CAAC;AAC1H,YAAY,OAAO,EAAE,MAAM;AAC3B,YAAY,SAAS,EAAE,MAAM,CAAC,SAAS;AACvC,YAAY,UAAU,EAAE,MAAM,CAAC;AAC/B,SAAS,CAAC;AACV,QAAQ,MAAM,GAAG,MAAM,CAAC,UAAU;AAClC,IAAI;AACJ,IAAI,IAAI,oBAAoB,YAAY,WAAW,EAAE,kBAAkB,CAAC,IAAI,CAAC;AAC7E,QAAQ,OAAO,EAAE,oBAAoB;AACrC,QAAQ,SAAS,EAAE,oBAAoB,CAAC,SAAS;AACjD,QAAQ,UAAU,EAAE,oBAAoB,CAAC;AACzC,KAAK,CAAC;AACN,IAAI,OAAO,kBAAkB;AAC7B;AACA,SAAS,2CAA2C,CAAC,kBAAkB,EAAE;AACzE,IAAI,KAAK,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,kBAAkB,CAAC;AACtG,QAAQ,OAAO,CAAC,SAAS,GAAG,SAAS;AACrC,QAAQ,OAAO,CAAC,UAAU,GAAG,UAAU;AACvC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,39 @@
1
+ import { getOwnerWindow as $431fbd86ca7dc216$export$f21a1ffae260145a } from './domHelpers.js';
2
+
3
+ /*
4
+ * Copyright 2021 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+ const $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element !== 'undefined' && 'checkVisibility' in Element.prototype;
15
+ function $7d2416ea0959daaa$var$isStyleVisible(element) {
16
+ const windowObject = ($431fbd86ca7dc216$export$f21a1ffae260145a)(element);
17
+ if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
18
+ let { display: display, visibility: visibility } = element.style;
19
+ let isVisible = display !== 'none' && visibility !== 'hidden' && visibility !== 'collapse';
20
+ if (isVisible) {
21
+ const { getComputedStyle: getComputedStyle } = element.ownerDocument.defaultView;
22
+ let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
23
+ isVisible = computedDisplay !== 'none' && computedVisibility !== 'hidden' && computedVisibility !== 'collapse';
24
+ }
25
+ return isVisible;
26
+ }
27
+ function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {
28
+ return !element.hasAttribute('hidden') && // Ignore HiddenSelect when tree walking.
29
+ !element.hasAttribute('data-react-aria-prevent-focus') && (element.nodeName === 'DETAILS' && childElement && childElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true);
30
+ }
31
+ function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {
32
+ if ($7d2416ea0959daaa$var$supportsCheckVisibility) return element.checkVisibility({
33
+ visibilityProperty: true
34
+ }) && !element.closest('[data-react-aria-prevent-focus]');
35
+ return element.nodeName !== '#comment' && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));
36
+ }
37
+
38
+ export { $7d2416ea0959daaa$export$e989c0fffaa6b27a as isElementVisible };
39
+ //# sourceMappingURL=isElementVisible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isElementVisible.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/isElementVisible.mjs"],"sourcesContent":["import {getOwnerWindow as $431fbd86ca7dc216$export$f21a1ffae260145a} from \"./domHelpers.mjs\";\n\n/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element !== 'undefined' && 'checkVisibility' in Element.prototype;\nfunction $7d2416ea0959daaa$var$isStyleVisible(element) {\n const windowObject = (0, $431fbd86ca7dc216$export$f21a1ffae260145a)(element);\n if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;\n let { display: display, visibility: visibility } = element.style;\n let isVisible = display !== 'none' && visibility !== 'hidden' && visibility !== 'collapse';\n if (isVisible) {\n const { getComputedStyle: getComputedStyle } = element.ownerDocument.defaultView;\n let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);\n isVisible = computedDisplay !== 'none' && computedVisibility !== 'hidden' && computedVisibility !== 'collapse';\n }\n return isVisible;\n}\nfunction $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {\n return !element.hasAttribute('hidden') && // Ignore HiddenSelect when tree walking.\n !element.hasAttribute('data-react-aria-prevent-focus') && (element.nodeName === 'DETAILS' && childElement && childElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true);\n}\nfunction $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {\n if ($7d2416ea0959daaa$var$supportsCheckVisibility) return element.checkVisibility({\n visibilityProperty: true\n }) && !element.closest('[data-react-aria-prevent-focus]');\n return element.nodeName !== '#comment' && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));\n}\n\n\nexport {$7d2416ea0959daaa$export$e989c0fffaa6b27a as isElementVisible};\n//# sourceMappingURL=isElementVisible.module.js.map\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,6CAA6C,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,iBAAiB,IAAI,OAAO,CAAC,SAAS;AAC9H,SAAS,oCAAoC,CAAC,OAAO,EAAE;AACvD,IAAI,MAAM,YAAY,GAAG,CAAI,yCAAyC,EAAE,OAAO,CAAC;AAChF,IAAI,IAAI,EAAE,OAAO,YAAY,YAAY,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,YAAY,YAAY,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK;AACrH,IAAI,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,KAAK;AACpE,IAAI,IAAI,SAAS,GAAG,OAAO,KAAK,MAAM,IAAI,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,UAAU;AAC9F,IAAI,IAAI,SAAS,EAAE;AACnB,QAAQ,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,WAAW;AACxF,QAAQ,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,gBAAgB,CAAC,OAAO,CAAC;AACpG,QAAQ,SAAS,GAAG,eAAe,KAAK,MAAM,IAAI,kBAAkB,KAAK,QAAQ,IAAI,kBAAkB,KAAK,UAAU;AACtH,IAAI;AACJ,IAAI,OAAO,SAAS;AACpB;AACA,SAAS,wCAAwC,CAAC,OAAO,EAAE,YAAY,EAAE;AACzE,IAAI,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC;AAC1C,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,+BAA+B,CAAC,KAAK,OAAO,CAAC,QAAQ,KAAK,SAAS,IAAI,YAAY,IAAI,YAAY,CAAC,QAAQ,KAAK,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAC3L;AACA,SAAS,yCAAyC,CAAC,OAAO,EAAE,YAAY,EAAE;AAC1E,IAAI,IAAI,6CAA6C,EAAE,OAAO,OAAO,CAAC,eAAe,CAAC;AACtF,QAAQ,kBAAkB,EAAE;AAC5B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iCAAiC,CAAC;AAC7D,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,IAAI,oCAAoC,CAAC,OAAO,CAAC,IAAI,wCAAwC,CAAC,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,IAAI,yCAAyC,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AACvQ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,49 @@
1
+ import { isElementVisible as $7d2416ea0959daaa$export$e989c0fffaa6b27a } from './isElementVisible.js';
2
+
3
+ /*
4
+ * Copyright 2025 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+ const $b4b717babfbb907b$var$focusableElements = [
15
+ 'input:not([disabled]):not([type=hidden])',
16
+ 'select:not([disabled])',
17
+ 'textarea:not([disabled])',
18
+ 'button:not([disabled])',
19
+ 'a[href]',
20
+ 'area[href]',
21
+ 'summary',
22
+ 'iframe',
23
+ 'object',
24
+ 'embed',
25
+ 'audio[controls]',
26
+ 'video[controls]',
27
+ '[contenteditable]:not([contenteditable^="false"])',
28
+ 'permission'
29
+ ];
30
+ const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';
31
+ $b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
32
+ const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
33
+ function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
34
+ return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && ($7d2416ea0959daaa$export$e989c0fffaa6b27a)(element) && !$b4b717babfbb907b$var$isInert(element);
35
+ }
36
+ function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
37
+ return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && ($7d2416ea0959daaa$export$e989c0fffaa6b27a)(element) && !$b4b717babfbb907b$var$isInert(element);
38
+ }
39
+ function $b4b717babfbb907b$var$isInert(element) {
40
+ let node = element;
41
+ while(node != null){
42
+ if (node instanceof node.ownerDocument.defaultView.HTMLElement && node.inert) return true;
43
+ node = node.parentElement;
44
+ }
45
+ return false;
46
+ }
47
+
48
+ export { $b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable };
49
+ //# sourceMappingURL=isFocusable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFocusable.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/isFocusable.mjs"],"sourcesContent":["import {isElementVisible as $7d2416ea0959daaa$export$e989c0fffaa6b27a} from \"./isElementVisible.mjs\";\n\n/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nconst $b4b717babfbb907b$var$focusableElements = [\n 'input:not([disabled]):not([type=hidden])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'button:not([disabled])',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[contenteditable]:not([contenteditable^=\"false\"])',\n 'permission'\n];\nconst $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]),') + ',[tabindex]:not([disabled]):not([hidden])';\n$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex=\"-1\"]):not([disabled])');\nconst $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex=\"-1\"]),');\nfunction $b4b717babfbb907b$export$4c063cf1350e6fed(element) {\n return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && (0, $7d2416ea0959daaa$export$e989c0fffaa6b27a)(element) && !$b4b717babfbb907b$var$isInert(element);\n}\nfunction $b4b717babfbb907b$export$bebd5a1431fec25d(element) {\n return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && (0, $7d2416ea0959daaa$export$e989c0fffaa6b27a)(element) && !$b4b717babfbb907b$var$isInert(element);\n}\nfunction $b4b717babfbb907b$var$isInert(element) {\n let node = element;\n while(node != null){\n if (node instanceof node.ownerDocument.defaultView.HTMLElement && node.inert) return true;\n node = node.parentElement;\n }\n return false;\n}\n\n\nexport {$b4b717babfbb907b$export$4c063cf1350e6fed as isFocusable, $b4b717babfbb907b$export$bebd5a1431fec25d as isTabbable};\n//# sour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C,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,25 @@
1
+ import { isAndroid as $c87311424ea30a05$export$a11b0059900ceec8 } from './platform.js';
2
+
3
+ /*
4
+ * Copyright 2022 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+ function $6a7db85432448f7f$export$60278871457622de(event) {
15
+ // JAWS/NVDA with Firefox.
16
+ if (event.pointerType === '' && event.isTrusted) return true;
17
+ // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
18
+ // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
19
+ // to detect TalkBack virtual clicks.
20
+ if (($c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;
21
+ return event.detail === 0 && !event.pointerType;
22
+ }
23
+
24
+ export { $6a7db85432448f7f$export$60278871457622de as isVirtualClick };
25
+ //# sourceMappingURL=isVirtualEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isVirtualEvent.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/isVirtualEvent.mjs"],"sourcesContent":["import {isAndroid as $c87311424ea30a05$export$a11b0059900ceec8} from \"./platform.mjs\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $6a7db85432448f7f$export$60278871457622de(event) {\n // JAWS/NVDA with Firefox.\n if (event.pointerType === '' && event.isTrusted) return true;\n // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead\n // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check\n // to detect TalkBack virtual clicks.\n if ((0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.pointerType) return event.type === 'click' && event.buttons === 1;\n return event.detail === 0 && !event.pointerType;\n}\nfunction $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {\n // If the pointer size is zero, then we assume it's from a screen reader.\n // Android TalkBack double tap will sometimes return a event with width and height of 1\n // and pointerType === 'mouse' so we need to check for a specific combination of event attributes.\n // Cannot use \"event.pressure === 0\" as the sole check due to Safari pointer events always returning pressure === 0\n // instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush\n // Talkback double tap from Windows Firefox touch screen press\n return !(0, $c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';\n}\n\n\nexport {$6a7db85432448f7f$export$60278871457622de as isVirtualClick, $6a7db85432448f7f$export$29bf1b5f2c56cf63 as isVirtualPointerEvent};\n//# sourceMappingURL=isVirtualEvent.module.js.map\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,yCAAyC,CAAC,KAAK,EAAE;AAC1D;AACA,IAAI,IAAI,KAAK,CAAC,WAAW,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,IAAI;AAChE;AACA;AACA;AACA,IAAI,IAAI,CAAI,yCAAyC,GAAG,IAAI,KAAK,CAAC,WAAW,EAAE,OAAO,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,KAAK,CAAC;AACnI,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW;AACnD;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,42 @@
1
+ import { focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3 } from './focusWithoutScrolling.js';
2
+ import { isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isWebKit as $c87311424ea30a05$export$78551043582a6a98, isMac as $c87311424ea30a05$export$9ac100e40613ea10, isIPad as $c87311424ea30a05$export$7bef049ce92e4224 } from './platform.js';
3
+ import 'react';
4
+
5
+ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
6
+ var _window_event_type, _window_event;
7
+ let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;
8
+ // Firefox does not recognize keyboard events as a user action by default, and the popup blocker
9
+ // will prevent links with target="_blank" from opening. However, it does allow the event if the
10
+ // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
11
+ // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
12
+ if (($c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
13
+ if (($c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;
14
+ else ctrlKey = true;
15
+ }
16
+ // WebKit does not support firing click events with modifier keys, but does support keyboard events.
17
+ // https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184
18
+ let event = ($c87311424ea30a05$export$78551043582a6a98)() && ($c87311424ea30a05$export$9ac100e40613ea10)() && !($c87311424ea30a05$export$7bef049ce92e4224)() && process.env.NODE_ENV !== 'test' ? new KeyboardEvent('keydown', {
19
+ keyIdentifier: 'Enter',
20
+ metaKey: metaKey,
21
+ ctrlKey: ctrlKey,
22
+ altKey: altKey,
23
+ shiftKey: shiftKey
24
+ }) : new MouseEvent('click', {
25
+ metaKey: metaKey,
26
+ ctrlKey: ctrlKey,
27
+ altKey: altKey,
28
+ shiftKey: shiftKey,
29
+ detail: 1,
30
+ bubbles: true,
31
+ cancelable: true
32
+ });
33
+ $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;
34
+ ($7215afc6de606d6b$export$de79e2c695e052f3)(target);
35
+ target.dispatchEvent(event);
36
+ $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
37
+ }
38
+ // https://github.com/parcel-bundler/parcel/issues/8724
39
+ $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
40
+
41
+ export { $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink };
42
+ //# sourceMappingURL=openLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openLink.js","sources":["../../../../../../../node_modules/@react-aria/utils/dist/openLink.mjs"],"sourcesContent":["import {focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3} from \"./focusWithoutScrolling.mjs\";\nimport {isMac as $c87311424ea30a05$export$9ac100e40613ea10, isWebKit as $c87311424ea30a05$export$78551043582a6a98, isFirefox as $c87311424ea30a05$export$b7d78993b74f766d, isIPad as $c87311424ea30a05$export$7bef049ce92e4224} from \"./platform.mjs\";\nimport $g3jFn$react, {createContext as $g3jFn$createContext, useMemo as $g3jFn$useMemo, useContext as $g3jFn$useContext} from \"react\";\n\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $ea8dcbcb9ea1b556$var$RouterContext = /*#__PURE__*/ (0, $g3jFn$createContext)({\n isNative: true,\n open: $ea8dcbcb9ea1b556$var$openSyntheticLink,\n useHref: (href)=>href\n});\nfunction $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb(props) {\n let { children: children, navigate: navigate, useHref: useHref } = props;\n let ctx = (0, $g3jFn$useMemo)(()=>({\n isNative: false,\n open: (target, modifiers, href, routerOptions)=>{\n $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>{\n if ($ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers)) navigate(href, routerOptions);\n else $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers);\n });\n },\n useHref: useHref || ((href)=>href)\n }), [\n navigate,\n useHref\n ]);\n return /*#__PURE__*/ (0, $g3jFn$react).createElement($ea8dcbcb9ea1b556$var$RouterContext.Provider, {\n value: ctx\n }, children);\n}\nfunction $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {\n return (0, $g3jFn$useContext)($ea8dcbcb9ea1b556$var$RouterContext);\n}\nfunction $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {\n // Use getAttribute here instead of link.target. Firefox will default link.target to \"_parent\" when inside an iframe.\n let target = link.getAttribute('target');\n return (!target || target === '_self') && link.origin === location.origin && !link.hasAttribute('download') && !modifiers.metaKey && // open in new tab (mac)\n !modifiers.ctrlKey && // open in new tab (windows)\n !modifiers.altKey && // download\n !modifiers.shiftKey;\n}\nfunction $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {\n var _window_event_type, _window_event;\n let { metaKey: metaKey, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey } = modifiers;\n // Firefox does not recognize keyboard events as a user action by default, and the popup blocker\n // will prevent links with target=\"_blank\" from opening. However, it does allow the event if the\n // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.\n if ((0, $c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {\n if ((0, $c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;\n else ctrlKey = true;\n }\n // WebKit does not support firing click events with modifier keys, but does support keyboard events.\n // https://github.com/WebKit/WebKit/blob/c03d0ac6e6db178f90923a0a63080b5ca210d25f/Source/WebCore/html/HTMLAnchorElement.cpp#L184\n let event = (0, $c87311424ea30a05$export$78551043582a6a98)() && (0, $c87311424ea30a05$export$9ac100e40613ea10)() && !(0, $c87311424ea30a05$export$7bef049ce92e4224)() && process.env.NODE_ENV !== 'test' ? new KeyboardEvent('keydown', {\n keyIdentifier: 'Enter',\n metaKey: metaKey,\n ctrlKey: ctrlKey,\n altKey: altKey,\n shiftKey: shiftKey\n }) : new MouseEvent('click', {\n metaKey: metaKey,\n ctrlKey: ctrlKey,\n altKey: altKey,\n shiftKey: shiftKey,\n detail: 1,\n bubbles: true,\n cancelable: true\n });\n $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;\n (0, $7215afc6de606d6b$export$de79e2c695e052f3)(target);\n target.dispatchEvent(event);\n $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;\n}\n// https://github.com/parcel-bundler/parcel/issues/8724\n$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;\nfunction $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) {\n if (target instanceof HTMLAnchorElement) open(target);\n else if (target.hasAttribute('data-href')) {\n let link = document.createElement('a');\n link.href = target.getAttribute('data-href');\n if (target.hasAttribute('data-target')) link.target = target.getAttribute('data-target');\n if (target.hasAttribute('data-rel')) link.rel = target.getAttribute('data-rel');\n if (target.hasAttribute('data-download')) link.download = target.getAttribute('data-download');\n if (target.hasAttribute('data-ping')) link.ping = target.getAttribute('data-ping');\n if (target.hasAttribute('data-referrer-policy')) link.referrerPolicy = target.getAttribute('data-referrer-policy');\n target.appendChild(link);\n open(link);\n target.removeChild(link);\n }\n}\nfunction $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {\n $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link)=>$ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers));\n}\nfunction $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {\n let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();\n var _props_href;\n const href = router.useHref((_props_href = props.href) !== null && _props_href !== void 0 ? _props_href : '');\n return {\n 'data-href': props.href ? href : undefined,\n 'data-target': props.target,\n 'data-rel': props.rel,\n 'data-download': props.download,\n 'data-ping': props.ping,\n 'data-referrer-policy': props.referrerPolicy\n };\n}\nfunction $ea8dcbcb9ea1b556$export$51437d503373d223(props) {\n return {\n 'data-href': props.href,\n 'data-target': props.target,\n 'data-rel': props.rel,\n 'data-download': props.download,\n 'data-ping': props.ping,\n 'data-referrer-policy': props.referrerPolicy\n };\n}\nfunction $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {\n let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();\n var _props_href;\n const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : '');\n return {\n href: (props === null || props === void 0 ? void 0 : props.href) ? href : undefined,\n target: props === null || props === void 0 ? void 0 : props.target,\n rel: props === null || props === void 0 ? void 0 : props.rel,\n download: props === null || props === void 0 ? void 0 : props.download,\n ping: props === null || props === void 0 ? void 0 : props.ping,\n referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy\n };\n}\nfunction $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, href, routerOptions) {\n // If a custom router is provided, prevent default and forward if this link should client navigate.\n if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.\n !e.isDefaultPrevented() && $ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && href) {\n e.preventDefault();\n router.open(e.currentTarget, e, href, routerOptions);\n }\n}\n\n\nexport {$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as RouterProvider, $ea8dcbcb9ea1b556$export$efa8c9099e530235 as shouldClientNavigate, $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as openLink, $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as useRouter, $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as useSyntheticLinkProps, $ea8dcbcb9ea1b556$export$51437d503373d223 as getSyntheticLinkProps, $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as useLinkProps, $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f as handleLinkClick};\n//# sourceMappingURL=openLink.module.js.map\n"],"names":[],"mappings":";;;;AAoDA,SAAS,yCAAyC,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,GAAG,IAAI,EAAE;AACzF,IAAI,IAAI,kBAAkB,EAAE,aAAa;AACzC,IAAI,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAS;AAC9F;AACA;AACA;AACA;AACA,IAAI,IAAI,CAAI,yCAAyC,GAAG,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,KAAK,MAAM,IAAI,IAAI,aAAa,KAAK,MAAM,GAAG,MAAM,GAAG,CAAC,kBAAkB,GAAG,aAAa,CAAC,IAAI,MAAM,IAAI,IAAI,kBAAkB,KAAK,MAAM,GAAG,MAAM,GAAG,kBAAkB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE;AAChT,QAAQ,IAAI,CAAI,yCAAyC,GAAG,EAAE,OAAO,GAAG,IAAI;AAC5E,aAAa,OAAO,GAAG,IAAI;AAC3B,IAAI;AACJ;AACA;AACA,IAAI,IAAI,KAAK,GAAG,CAAI,yCAAyC,GAAG,IAAI,CAAI,yCAAyC,GAAG,IAAI,CAAC,CAAI,yCAAyC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,GAAG,IAAI,aAAa,CAAC,SAAS,EAAE;AAC5O,QAAQ,aAAa,EAAE,OAAO;AAC9B,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,MAAM,EAAE,MAAM;AACtB,QAAQ,QAAQ,EAAE;AAClB,KAAK,CAAC,GAAG,IAAI,UAAU,CAAC,OAAO,EAAE;AACjC,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,MAAM,EAAE,MAAM;AACtB,QAAQ,QAAQ,EAAE,QAAQ;AAC1B,QAAQ,MAAM,EAAE,CAAC;AACjB,QAAQ,OAAO,EAAE,IAAI;AACrB,QAAQ,UAAU,EAAE;AACpB,KAAK,CAAC;AACN,IAAI,yCAAyC,CAAC,SAAS,GAAG,UAAU;AACpE,IAAI,CAAI,yCAAyC,EAAE,MAAM,CAAC;AAC1D,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;AAC/B,IAAI,yCAAyC,CAAC,SAAS,GAAG,KAAK;AAC/D;AACA;AACA,yCAAyC,CAAC,SAAS,GAAG,KAAK;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */ function $c87311424ea30a05$var$testUserAgent(re) {
12
+ var _window_navigator_userAgentData;
13
+ if (typeof window === 'undefined' || window.navigator == null) return false;
14
+ let brands = (_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands;
15
+ return Array.isArray(brands) && brands.some((brand)=>re.test(brand.brand)) || re.test(window.navigator.userAgent);
16
+ }
17
+ function $c87311424ea30a05$var$testPlatform(re) {
18
+ var _window_navigator_userAgentData;
19
+ 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;
20
+ }
21
+ function $c87311424ea30a05$var$cached(fn) {
22
+ if (process.env.NODE_ENV === 'test') return fn;
23
+ let res = null;
24
+ return ()=>{
25
+ if (res == null) res = fn();
26
+ return res;
27
+ };
28
+ }
29
+ const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
30
+ return $c87311424ea30a05$var$testPlatform(/^Mac/i);
31
+ });
32
+ const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
33
+ return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
34
+ });
35
+ const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
36
+ return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
37
+ $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
38
+ });
39
+ const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
40
+ return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
41
+ });
42
+ $c87311424ea30a05$var$cached(function() {
43
+ return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
44
+ });
45
+ const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
46
+ return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
47
+ });
48
+ const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
49
+ return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
50
+ });
51
+ const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
52
+ return $c87311424ea30a05$var$testUserAgent(/Android/i);
53
+ });
54
+ const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
55
+ return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
56
+ });
57
+
58
+ export { $c87311424ea30a05$export$a11b0059900ceec8 as isAndroid, $c87311424ea30a05$export$6446a186d09e379e as isChrome, $c87311424ea30a05$export$b7d78993b74f766d as isFirefox, $c87311424ea30a05$export$fedb369cb70207f1 as isIOS, $c87311424ea30a05$export$7bef049ce92e4224 as isIPad, $c87311424ea30a05$export$186c6964ca17d99 as isIPhone, $c87311424ea30a05$export$9ac100e40613ea10 as isMac, $c87311424ea30a05$export$78551043582a6a98 as isWebKit };
59
+ //# sourceMappingURL=platform.js.map