@drfed/web 0.0.0-stage → 0.1.0-dev.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 (128) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/.vite/manifest.json +493 -0
  3. package/.output/public/_build/assets/ActorDetailQuery.graphql-D96mwq1k.js +60 -0
  4. package/.output/public/_build/assets/ActorDetailQuery.graphql-DrxSNh1X.js +60 -0
  5. package/.output/public/_build/assets/CompleteLoginChallenge.graphql-C5Zq3wNh.js +10 -0
  6. package/.output/public/_build/assets/CopyButton-B2l484wE.js +1 -0
  7. package/.output/public/_build/assets/CopyButton-Bi-ZR8x9.css +1 -0
  8. package/.output/public/_build/assets/CreateInstanceMutation.graphql-B4CRy6cl.js +19 -0
  9. package/.output/public/_build/assets/CreateObjectMutation.graphql-B4A01dgV.js +23 -0
  10. package/.output/public/_build/assets/GenerateActorsMutation.graphql-mlHJNIbe.js +23 -0
  11. package/.output/public/_build/assets/GetHostQuery.graphql-CuzDdOdW.js +17 -0
  12. package/.output/public/_build/assets/GetHostQuery.graphql-o9K0Qkg0.js +17 -0
  13. package/.output/public/_build/assets/HomeViewerQuery.graphql-B903WWKs.js +8 -0
  14. package/.output/public/_build/assets/HttpStatusCode-bgaVzuLy.js +1 -0
  15. package/.output/public/_build/assets/InstanceActorListQuery.graphql-DmNwiEhM.js +24 -0
  16. package/.output/public/_build/assets/InstanceActorListQuery.graphql-paa7teUO.js +24 -0
  17. package/.output/public/_build/assets/InstanceDetailQuery.graphql-B52nR132.js +66 -0
  18. package/.output/public/_build/assets/InstanceDetailQuery.graphql-DSA2BcAV.js +66 -0
  19. package/.output/public/_build/assets/InstanceSummary_instance.graphql-BoQAa5Od.js +1 -0
  20. package/.output/public/_build/assets/JNCCF6MP-CNMywyiC.js +1 -0
  21. package/.output/public/_build/assets/LP6E37CW-Cwv6G3n1.js +1 -0
  22. package/.output/public/_build/assets/SignInMutation.graphql-BalZYNFu.js +9 -0
  23. package/.output/public/_build/assets/TSB6MOZK-CpiH97G1.js +1 -0
  24. package/.output/public/_build/assets/Toast-3-eXCAKc.css +1 -0
  25. package/.output/public/_build/assets/Toast-C1zr9crB.js +1 -0
  26. package/.output/public/_build/assets/WorkspaceQuery.graphql-UoI7QDs4.js +23 -0
  27. package/.output/public/_build/assets/_...404_-WZ8kAljY.js +1 -0
  28. package/.output/public/_build/assets/_challengeId_-BgL-Berz.js +1 -0
  29. package/.output/public/_build/assets/_id_-YcZZShAv.css +1 -0
  30. package/.output/public/_build/assets/_id_-bpxdclBj.js +1 -0
  31. package/.output/public/_build/assets/_slug_-CyTA2aW7.css +1 -0
  32. package/.output/public/_build/assets/_slug_-DXfRknzJ.js +200 -0
  33. package/.output/public/_build/assets/about-DIrbzRsi.js +1 -0
  34. package/.output/public/_build/assets/actors-HfZh_afh.js +24 -0
  35. package/.output/public/_build/assets/client-CGFoRcqH.js +3 -0
  36. package/.output/public/_build/assets/components-5MVu7IcD.js +1 -0
  37. package/.output/public/_build/assets/dist-BrJ_B8nU.js +1 -0
  38. package/.output/public/_build/assets/dist-DVo0HS5G.js +1 -0
  39. package/.output/public/_build/assets/dist-WrlGlK67.js +1 -0
  40. package/.output/public/_build/assets/entry-client-BurSTYr9.css +1 -0
  41. package/.output/public/_build/assets/entry-client-RIC5nXxX.js +8 -0
  42. package/.output/public/_build/assets/form-BxigYd7J.css +1 -0
  43. package/.output/public/_build/assets/form.module-BecmEfV_.js +1 -0
  44. package/.output/public/_build/assets/index-BHn6sAgH.js +23 -0
  45. package/.output/public/_build/assets/index-BSLqnqN7.js +8 -0
  46. package/.output/public/_build/assets/index-B_xLBDOo.css +1 -0
  47. package/.output/public/_build/assets/instance-tpMrvJNZ.js +35 -0
  48. package/.output/public/_build/assets/label-Mv8GZ4jc.js +1 -0
  49. package/.output/public/_build/assets/objects-DPb8DI8A.css +1 -0
  50. package/.output/public/_build/assets/objects-DR9TfL-V.js +25 -0
  51. package/.output/public/_build/assets/relay-runtime-BX3uubtA.js +7 -0
  52. package/.output/public/_build/assets/routing-DMN2NHu6.js +1 -0
  53. package/.output/public/_build/assets/sign-in-B67sv7z8.js +10 -0
  54. package/.output/public/_build/assets/web-DB_Nkq2D.js +1 -0
  55. package/.output/public/apple-touch-icon.png +0 -0
  56. package/.output/public/favicon.ico +0 -0
  57. package/.output/public/icon-192.png +0 -0
  58. package/.output/public/icon-512.png +0 -0
  59. package/.output/public/icon-mask.png +0 -0
  60. package/.output/public/icon.svg +395 -0
  61. package/.output/public/manifest.webmanifest +13 -0
  62. package/.output/server/_...404_-DDEH5apf.mjs +16 -0
  63. package/.output/server/_challengeId_-C7BBdG0r.mjs +100 -0
  64. package/.output/server/_chunks/ssr-renderer.mjs +26 -0
  65. package/.output/server/_id_-DqytvZEf.mjs +505 -0
  66. package/.output/server/_libs/@shikijs/core+[...].mjs +7173 -0
  67. package/.output/server/_libs/@shikijs/engine-javascript+[...].mjs +3110 -0
  68. package/.output/server/_libs/babel__runtime.mjs +243 -0
  69. package/.output/server/_libs/dequal.mjs +25 -0
  70. package/.output/server/_libs/faker-js__faker.mjs +13150 -0
  71. package/.output/server/_libs/fbjs.mjs +115 -0
  72. package/.output/server/_libs/h3+rou3+srvx.mjs +650 -0
  73. package/.output/server/_libs/hookable.mjs +41 -0
  74. package/.output/server/_libs/invariant.mjs +36 -0
  75. package/.output/server/_libs/relay-runtime.mjs +9704 -0
  76. package/.output/server/_libs/seroval-plugins.mjs +563 -0
  77. package/.output/server/_libs/seroval.mjs +2956 -0
  78. package/.output/server/_libs/shikijs__langs.mjs +3 -0
  79. package/.output/server/_libs/shikijs__themes.mjs +7 -0
  80. package/.output/server/_libs/solid-js.mjs +1248 -0
  81. package/.output/server/_libs/solid-relay+tiny-invariant.mjs +1029 -0
  82. package/.output/server/_libs/ufo.mjs +64 -0
  83. package/.output/server/_libs/valibot.mjs +711 -0
  84. package/.output/server/_runtime.mjs +33 -0
  85. package/.output/server/_slug_-CBOaSqoF.mjs +978 -0
  86. package/.output/server/_ssr/ActorDetailQuery.graphql-C1mWRP1B.mjs +283 -0
  87. package/.output/server/_ssr/CompleteLoginChallenge.graphql-CM7o_Md1.mjs +78 -0
  88. package/.output/server/_ssr/CopyButton-CQNR5D1y.mjs +43 -0
  89. package/.output/server/_ssr/CreateInstanceMutation.graphql-C-h2lGxz.mjs +116 -0
  90. package/.output/server/_ssr/CreateObjectMutation.graphql-C393Hp7q.mjs +166 -0
  91. package/.output/server/_ssr/GenerateActorsMutation.graphql-D2ADtn1j.mjs +163 -0
  92. package/.output/server/_ssr/GetHostQuery.graphql-C45XQo1i.mjs +127 -0
  93. package/.output/server/_ssr/HomeViewerQuery.graphql-Dote4Pkz.mjs +81 -0
  94. package/.output/server/_ssr/InstanceActorListQuery.graphql-DgItgN5t.mjs +167 -0
  95. package/.output/server/_ssr/InstanceDetailQuery.graphql-DP5wWWjX.mjs +367 -0
  96. package/.output/server/_ssr/InstanceSummary_instance.graphql-10tilF-Z.mjs +34 -0
  97. package/.output/server/_ssr/JNCCF6MP-BAZlBnvx.mjs +419 -0
  98. package/.output/server/_ssr/LP6E37CW-D2Ih_b_K.mjs +163 -0
  99. package/.output/server/_ssr/SignInMutation.graphql-BBXmiay6.mjs +72 -0
  100. package/.output/server/_ssr/TSB6MOZK-D06WZb6o.mjs +166 -0
  101. package/.output/server/_ssr/Toast-Bb1gcxED.mjs +947 -0
  102. package/.output/server/_ssr/WorkspaceQuery.graphql-DnCO8t-4.mjs +153 -0
  103. package/.output/server/_ssr/about-CD3QIgf_.mjs +14 -0
  104. package/.output/server/_ssr/actors-CMWf-xQU.mjs +1160 -0
  105. package/.output/server/_ssr/dist-D6rgyh-L.mjs +81 -0
  106. package/.output/server/_ssr/dist-I7KRMRbA.mjs +432 -0
  107. package/.output/server/_ssr/form.module-CTvIl1lm.mjs +192 -0
  108. package/.output/server/_ssr/index-C4crD6q-.mjs +347 -0
  109. package/.output/server/_ssr/index-yuhuc6-X.mjs +111 -0
  110. package/.output/server/_ssr/instance-ZYWGeWd3.mjs +280 -0
  111. package/.output/server/_ssr/label-DAXzanI9.mjs +9 -0
  112. package/.output/server/_ssr/objects-D5MVukzB.mjs +4316 -0
  113. package/.output/server/_ssr/routing-DKTLkkbY.mjs +620 -0
  114. package/.output/server/_ssr/sign-in-CNHZb_zL.mjs +264 -0
  115. package/.output/server/_ssr/ssr.mjs +6138 -0
  116. package/.output/server/index.mjs +691 -0
  117. package/LICENSE +661 -0
  118. package/README.md +143 -2
  119. package/dist/bridge.d.mts +39 -0
  120. package/dist/bridge.mjs +104 -0
  121. package/dist/bridge.mjs.map +1 -0
  122. package/dist/request-policy.d.mts +8 -0
  123. package/dist/request-policy.mjs +94 -0
  124. package/dist/request-policy.mjs.map +1 -0
  125. package/dist/runtime.d.mts +14 -0
  126. package/dist/runtime.mjs +44 -0
  127. package/dist/runtime.mjs.map +1 -0
  128. package/package.json +111 -3
@@ -0,0 +1,419 @@
1
+ import { $ as splitProps, I as createEffect, K as mergeProps, L as createMemo, N as createComponent, V as createSignal, a as Dynamic } from "../_libs/solid-js.mjs";
2
+ //#region node_modules/.nitro/vite/services/ssr/_build/assets/JNCCF6MP-BAZlBnvx.js
3
+ function removeItemFromArray(array, item) {
4
+ const updatedArray = [...array];
5
+ const index = updatedArray.indexOf(item);
6
+ if (index !== -1) updatedArray.splice(index, 1);
7
+ return updatedArray;
8
+ }
9
+ function isNumber(value) {
10
+ return typeof value === "number";
11
+ }
12
+ function isString(value) {
13
+ return Object.prototype.toString.call(value) === "[object String]";
14
+ }
15
+ function isFunction(value) {
16
+ return typeof value === "function";
17
+ }
18
+ function createGenerateId(baseId) {
19
+ return (suffix) => `${baseId()}-${suffix}`;
20
+ }
21
+ function contains(parent, child) {
22
+ if (!parent) return false;
23
+ return parent === child || parent.contains(child);
24
+ }
25
+ function getActiveElement(node, activeDescendant = false) {
26
+ const { activeElement } = getDocument(node);
27
+ if (!activeElement?.nodeName) return null;
28
+ if (isFrame(activeElement) && activeElement.contentDocument) return getActiveElement(activeElement.contentDocument.body, activeDescendant);
29
+ if (activeDescendant) {
30
+ const id = activeElement.getAttribute("aria-activedescendant");
31
+ if (id) {
32
+ const element = getDocument(activeElement).getElementById(id);
33
+ if (element) return element;
34
+ }
35
+ }
36
+ return activeElement;
37
+ }
38
+ function getWindow(node) {
39
+ return getDocument(node).defaultView || window;
40
+ }
41
+ function getDocument(node) {
42
+ return node ? node.ownerDocument || node : document;
43
+ }
44
+ function isFrame(element) {
45
+ return element.tagName === "IFRAME";
46
+ }
47
+ var EventKey = /* @__PURE__ */ ((EventKey2) => {
48
+ EventKey2["Escape"] = "Escape";
49
+ EventKey2["Enter"] = "Enter";
50
+ EventKey2["Tab"] = "Tab";
51
+ EventKey2["Space"] = " ";
52
+ EventKey2["ArrowDown"] = "ArrowDown";
53
+ EventKey2["ArrowLeft"] = "ArrowLeft";
54
+ EventKey2["ArrowRight"] = "ArrowRight";
55
+ EventKey2["ArrowUp"] = "ArrowUp";
56
+ EventKey2["End"] = "End";
57
+ EventKey2["Home"] = "Home";
58
+ EventKey2["PageDown"] = "PageDown";
59
+ EventKey2["PageUp"] = "PageUp";
60
+ return EventKey2;
61
+ })(EventKey || {});
62
+ function testUserAgent(re) {
63
+ if (typeof window === "undefined" || window.navigator == null) return false;
64
+ return window.navigator.userAgentData?.brands.some((brand) => re.test(brand.brand)) || re.test(window.navigator.userAgent);
65
+ }
66
+ function testPlatform(re) {
67
+ return typeof window !== "undefined" && window.navigator != null ? re.test(window.navigator.userAgentData?.platform || window.navigator.platform) : false;
68
+ }
69
+ function isMac() {
70
+ return testPlatform(/^Mac/i);
71
+ }
72
+ function isIPhone() {
73
+ return testPlatform(/^iPhone/i);
74
+ }
75
+ function isIPad() {
76
+ return testPlatform(/^iPad/i) || isMac() && navigator.maxTouchPoints > 1;
77
+ }
78
+ function isIOS() {
79
+ return isIPhone() || isIPad();
80
+ }
81
+ function isAppleDevice() {
82
+ return isMac() || isIOS();
83
+ }
84
+ function isWebKit() {
85
+ return testUserAgent(/AppleWebKit/i) && !isChrome();
86
+ }
87
+ function isChrome() {
88
+ return testUserAgent(/Chrome/i);
89
+ }
90
+ function callHandler(event, handler) {
91
+ if (handler) if (isFunction(handler)) handler(event);
92
+ else handler[0](handler[1], event);
93
+ return event?.defaultPrevented;
94
+ }
95
+ function composeEventHandlers(handlers) {
96
+ return (event) => {
97
+ for (const handler of handlers) callHandler(event, handler);
98
+ };
99
+ }
100
+ function isCtrlKey(e) {
101
+ if (isMac()) return e.metaKey && !e.ctrlKey;
102
+ return e.ctrlKey && !e.metaKey;
103
+ }
104
+ function focusWithoutScrolling(element) {
105
+ if (!element) return;
106
+ if (supportsPreventScroll()) element.focus({ preventScroll: true });
107
+ else {
108
+ const scrollableElements = getScrollableElements(element);
109
+ element.focus();
110
+ restoreScrollPosition(scrollableElements);
111
+ }
112
+ }
113
+ var supportsPreventScrollCached = null;
114
+ function supportsPreventScroll() {
115
+ if (supportsPreventScrollCached == null) {
116
+ supportsPreventScrollCached = false;
117
+ try {
118
+ document.createElement("div").focus({ get preventScroll() {
119
+ supportsPreventScrollCached = true;
120
+ return true;
121
+ } });
122
+ } catch (e) {}
123
+ }
124
+ return supportsPreventScrollCached;
125
+ }
126
+ function getScrollableElements(element) {
127
+ let parent = element.parentNode;
128
+ const scrollableElements = [];
129
+ const rootScrollingElement = document.scrollingElement || document.documentElement;
130
+ while (parent instanceof HTMLElement && parent !== rootScrollingElement) {
131
+ if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
132
+ element: parent,
133
+ scrollTop: parent.scrollTop,
134
+ scrollLeft: parent.scrollLeft
135
+ });
136
+ parent = parent.parentNode;
137
+ }
138
+ if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
139
+ element: rootScrollingElement,
140
+ scrollTop: rootScrollingElement.scrollTop,
141
+ scrollLeft: rootScrollingElement.scrollLeft
142
+ });
143
+ return scrollableElements;
144
+ }
145
+ function restoreScrollPosition(scrollableElements) {
146
+ for (const { element, scrollTop, scrollLeft } of scrollableElements) {
147
+ element.scrollTop = scrollTop;
148
+ element.scrollLeft = scrollLeft;
149
+ }
150
+ }
151
+ var focusableElements = [
152
+ "input:not([type='hidden']):not([disabled])",
153
+ "select:not([disabled])",
154
+ "textarea:not([disabled])",
155
+ "button:not([disabled])",
156
+ "a[href]",
157
+ "area[href]",
158
+ "[tabindex]",
159
+ "iframe",
160
+ "object",
161
+ "embed",
162
+ "audio[controls]",
163
+ "video[controls]",
164
+ "[contenteditable]:not([contenteditable='false'])"
165
+ ];
166
+ var tabbableElements = [...focusableElements, "[tabindex]:not([tabindex=\"-1\"]):not([disabled])"];
167
+ var FOCUSABLE_ELEMENT_SELECTOR = `${focusableElements.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`;
168
+ var TABBABLE_ELEMENT_SELECTOR = tabbableElements.join(":not([hidden]):not([tabindex=\"-1\"]),");
169
+ function getAllTabbableIn(container, includeContainer) {
170
+ const tabbableElements2 = Array.from(container.querySelectorAll(FOCUSABLE_ELEMENT_SELECTOR)).filter(isTabbable);
171
+ if (includeContainer && isTabbable(container)) tabbableElements2.unshift(container);
172
+ tabbableElements2.forEach((element, i) => {
173
+ if (isFrame(element) && element.contentDocument) {
174
+ const frameBody = element.contentDocument.body;
175
+ const allFrameTabbable = getAllTabbableIn(frameBody, false);
176
+ tabbableElements2.splice(i, 1, ...allFrameTabbable);
177
+ }
178
+ });
179
+ return tabbableElements2;
180
+ }
181
+ function isTabbable(element) {
182
+ return isFocusable(element) && !hasNegativeTabIndex(element);
183
+ }
184
+ function isFocusable(element) {
185
+ return element.matches(FOCUSABLE_ELEMENT_SELECTOR) && isElementVisible(element);
186
+ }
187
+ function hasNegativeTabIndex(element) {
188
+ return Number.parseInt(element.getAttribute("tabindex") || "0", 10) < 0;
189
+ }
190
+ function isElementVisible(element, childElement) {
191
+ return element.nodeName !== "#comment" && isStyleVisible(element) && isAttributeVisible(element, childElement) && (!element.parentElement || isElementVisible(element.parentElement, element));
192
+ }
193
+ function isStyleVisible(element) {
194
+ if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) return false;
195
+ const { display, visibility } = element.style;
196
+ let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
197
+ if (isVisible) {
198
+ if (!element.ownerDocument.defaultView) return isVisible;
199
+ const { getComputedStyle } = element.ownerDocument.defaultView;
200
+ const { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
201
+ isVisible = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
202
+ }
203
+ return isVisible;
204
+ }
205
+ function isAttributeVisible(element, childElement) {
206
+ return !element.hasAttribute("hidden") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
207
+ }
208
+ function isElementInScope(element, scope) {
209
+ return scope.some((node) => node.contains(element));
210
+ }
211
+ function getFocusableTreeWalker(root, opts, scope) {
212
+ const selector = opts?.tabbable ? TABBABLE_ELEMENT_SELECTOR : FOCUSABLE_ELEMENT_SELECTOR;
213
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, { acceptNode(node) {
214
+ if (opts?.from?.contains(node)) return NodeFilter.FILTER_REJECT;
215
+ if (node.matches(selector) && isElementVisible(node) && (!scope || isElementInScope(node, scope)) && (!opts?.accept || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
216
+ return NodeFilter.FILTER_SKIP;
217
+ } });
218
+ if (opts?.from) walker.currentNode = opts.from;
219
+ return walker;
220
+ }
221
+ function noop() {}
222
+ function snapValueToStep(value, min, max, step) {
223
+ const remainder = (value - (Number.isNaN(min) ? 0 : min)) % step;
224
+ let snappedValue = Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder;
225
+ if (!Number.isNaN(min)) {
226
+ if (snappedValue < min) snappedValue = min;
227
+ else if (!Number.isNaN(max) && snappedValue > max) snappedValue = min + Math.floor((max - min) / step) * step;
228
+ } else if (!Number.isNaN(max) && snappedValue > max) snappedValue = Math.floor(max / step) * step;
229
+ const string = step.toString();
230
+ const index = string.indexOf(".");
231
+ const precision = index >= 0 ? string.length - index : 0;
232
+ if (precision > 0) {
233
+ const pow = 10 ** precision;
234
+ snappedValue = Math.round(snappedValue * pow) / pow;
235
+ }
236
+ return snappedValue;
237
+ }
238
+ var getPrecision = (n) => {
239
+ let e = 1;
240
+ let precision = 0;
241
+ while (Math.round(n * e) / e !== n) {
242
+ e *= 10;
243
+ precision++;
244
+ }
245
+ return precision;
246
+ };
247
+ function mergeDefaultProps(defaultProps, props) {
248
+ return mergeProps(defaultProps, props);
249
+ }
250
+ var transitionsByElement = /* @__PURE__ */ new Map();
251
+ var transitionCallbacks = /* @__PURE__ */ new Set();
252
+ function setupGlobalEvents() {
253
+ if (typeof window === "undefined" || document.body === null) return;
254
+ const onTransitionStart = (e) => {
255
+ if (!e.target) return;
256
+ let transitions = transitionsByElement.get(e.target);
257
+ if (!transitions) {
258
+ transitions = /* @__PURE__ */ new Set();
259
+ transitionsByElement.set(e.target, transitions);
260
+ e.target.addEventListener("transitioncancel", onTransitionEnd);
261
+ }
262
+ transitions.add(e.propertyName);
263
+ };
264
+ const onTransitionEnd = (e) => {
265
+ if (!e.target) return;
266
+ const properties = transitionsByElement.get(e.target);
267
+ if (!properties) return;
268
+ properties.delete(e.propertyName);
269
+ if (properties.size === 0) {
270
+ e.target.removeEventListener("transitioncancel", onTransitionEnd);
271
+ transitionsByElement.delete(e.target);
272
+ }
273
+ if (transitionsByElement.size === 0) {
274
+ for (const cb of transitionCallbacks) cb();
275
+ transitionCallbacks.clear();
276
+ }
277
+ };
278
+ document.body.addEventListener("transitionrun", onTransitionStart);
279
+ document.body.addEventListener("transitionend", onTransitionEnd);
280
+ }
281
+ if (typeof document !== "undefined") if (document.readyState !== "loading") setupGlobalEvents();
282
+ else document.addEventListener("DOMContentLoaded", setupGlobalEvents);
283
+ function scrollIntoView(scrollView, element) {
284
+ const offsetX = relativeOffset(scrollView, element, "left");
285
+ const offsetY = relativeOffset(scrollView, element, "top");
286
+ const width = element.offsetWidth;
287
+ const height = element.offsetHeight;
288
+ let x = scrollView.scrollLeft;
289
+ let y = scrollView.scrollTop;
290
+ const maxX = x + scrollView.offsetWidth;
291
+ const maxY = y + scrollView.offsetHeight;
292
+ if (offsetX <= x) x = offsetX;
293
+ else if (offsetX + width > maxX) x += offsetX + width - maxX;
294
+ if (offsetY <= y) y = offsetY;
295
+ else if (offsetY + height > maxY) y += offsetY + height - maxY;
296
+ scrollView.scrollLeft = x;
297
+ scrollView.scrollTop = y;
298
+ }
299
+ function relativeOffset(ancestor, child, axis) {
300
+ const prop = axis === "left" ? "offsetLeft" : "offsetTop";
301
+ let sum = 0;
302
+ while (child.offsetParent) {
303
+ sum += child[prop];
304
+ if (child.offsetParent === ancestor) break;
305
+ if (child.offsetParent.contains(ancestor)) {
306
+ sum -= ancestor[prop];
307
+ break;
308
+ }
309
+ child = child.offsetParent;
310
+ }
311
+ return sum;
312
+ }
313
+ var visuallyHiddenStyles = {
314
+ border: "0",
315
+ clip: "rect(0 0 0 0)",
316
+ "clip-path": "inset(50%)",
317
+ height: "1px",
318
+ margin: "0 -1px -1px 0",
319
+ overflow: "hidden",
320
+ padding: "0",
321
+ position: "absolute",
322
+ width: "1px",
323
+ "white-space": "nowrap"
324
+ };
325
+ function createTagName(ref, fallback) {
326
+ const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
327
+ createEffect(() => {
328
+ setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
329
+ });
330
+ return tagName;
331
+ }
332
+ function stringOrUndefined(value) {
333
+ return isString(value) ? value : void 0;
334
+ }
335
+ function Polymorphic(props) {
336
+ const [local, others] = splitProps(props, ["as"]);
337
+ if (!local.as) throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
338
+ return createComponent(Dynamic, mergeProps(others, { get component() {
339
+ return local.as;
340
+ } }));
341
+ }
342
+ var __defProp = Object.defineProperty;
343
+ var __export = (target, all) => {
344
+ for (var name in all) __defProp(target, name, {
345
+ get: all[name],
346
+ enumerable: true
347
+ });
348
+ };
349
+ __export({}, {
350
+ Button: () => Button,
351
+ Root: () => ButtonRoot
352
+ });
353
+ var BUTTON_INPUT_TYPES = [
354
+ "button",
355
+ "color",
356
+ "file",
357
+ "image",
358
+ "reset",
359
+ "submit"
360
+ ];
361
+ function isButton(element) {
362
+ const tagName = element.tagName.toLowerCase();
363
+ if (tagName === "button") return true;
364
+ if (tagName === "input" && element.type) return BUTTON_INPUT_TYPES.indexOf(element.type) !== -1;
365
+ return false;
366
+ }
367
+ function ButtonRoot(props) {
368
+ let ref;
369
+ const [local, others] = splitProps(mergeDefaultProps({ type: "button" }, props), [
370
+ "ref",
371
+ "type",
372
+ "disabled"
373
+ ]);
374
+ const tagName = createTagName(() => ref, () => "button");
375
+ const isNativeButton = createMemo(() => {
376
+ const elementTagName = tagName();
377
+ if (elementTagName == null) return false;
378
+ return isButton({
379
+ tagName: elementTagName,
380
+ type: local.type
381
+ });
382
+ });
383
+ const isNativeInput = createMemo(() => {
384
+ return tagName() === "input";
385
+ });
386
+ const isNativeLink = createMemo(() => {
387
+ return tagName() === "a" && false;
388
+ });
389
+ return createComponent(Polymorphic, mergeProps({
390
+ as: "button",
391
+ get type() {
392
+ return isNativeButton() || isNativeInput() ? local.type : void 0;
393
+ },
394
+ get role() {
395
+ return !isNativeButton() && !isNativeLink() ? "button" : void 0;
396
+ },
397
+ get tabIndex() {
398
+ return !isNativeButton() && !isNativeLink() && !local.disabled ? 0 : void 0;
399
+ },
400
+ get disabled() {
401
+ return isNativeButton() || isNativeInput() ? local.disabled : void 0;
402
+ },
403
+ get ["aria-disabled"]() {
404
+ return !isNativeButton() && !isNativeInput() && local.disabled ? true : void 0;
405
+ },
406
+ get ["data-disabled"]() {
407
+ return local.disabled ? "" : void 0;
408
+ }
409
+ }, others));
410
+ }
411
+ var Button = ButtonRoot;
412
+ function createRegisterId(setter) {
413
+ return (id) => {
414
+ setter(id);
415
+ return () => setter(void 0);
416
+ };
417
+ }
418
+ //#endregion
419
+ export { scrollIntoView as A, isMac as C, mergeDefaultProps as D, isWebKit as E, visuallyHiddenStyles as M, noop as O, isFunction as S, isString as T, getPrecision as _, __export as a, isCtrlKey as b, contains as c, createTagName as d, focusWithoutScrolling as f, getFocusableTreeWalker as g, getDocument as h, Polymorphic as i, snapValueToStep as j, removeItemFromArray as k, createGenerateId as l, getAllTabbableIn as m, ButtonRoot as n, callHandler as o, getActiveElement as p, EventKey as r, composeEventHandlers as s, Button as t, createRegisterId as u, getWindow as v, isNumber as w, isFocusable as x, isAppleDevice as y };
@@ -0,0 +1,163 @@
1
+ import { F as createContext, J as onCleanup, L as createMemo, V as createSignal, Y as onMount, nt as useContext } from "../_libs/solid-js.mjs";
2
+ import { M as visuallyHiddenStyles } from "./JNCCF6MP-BAZlBnvx.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/_build/assets/LP6E37CW-D2Ih_b_K.js
4
+ var LIVEREGION_TIMEOUT_DELAY = 7e3;
5
+ var liveAnnouncer = null;
6
+ var DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
7
+ function announce(message, assertiveness = "assertive", timeout = LIVEREGION_TIMEOUT_DELAY) {
8
+ if (!liveAnnouncer) liveAnnouncer = new LiveAnnouncer();
9
+ liveAnnouncer.announce(message, assertiveness, timeout);
10
+ }
11
+ function clearAnnouncer(assertiveness) {
12
+ if (liveAnnouncer) liveAnnouncer.clear(assertiveness);
13
+ }
14
+ var LiveAnnouncer = class {
15
+ node;
16
+ assertiveLog;
17
+ politeLog;
18
+ constructor() {
19
+ this.node = document.createElement("div");
20
+ this.node.dataset.liveAnnouncer = "true";
21
+ Object.assign(this.node.style, visuallyHiddenStyles);
22
+ this.assertiveLog = this.createLog("assertive");
23
+ this.node.appendChild(this.assertiveLog);
24
+ this.politeLog = this.createLog("polite");
25
+ this.node.appendChild(this.politeLog);
26
+ document.body.prepend(this.node);
27
+ }
28
+ createLog(ariaLive) {
29
+ const node = document.createElement("div");
30
+ node.setAttribute("role", "log");
31
+ node.setAttribute("aria-live", ariaLive);
32
+ node.setAttribute("aria-relevant", "additions");
33
+ return node;
34
+ }
35
+ destroy() {
36
+ if (!this.node) return;
37
+ document.body.removeChild(this.node);
38
+ this.node = null;
39
+ }
40
+ announce(message, assertiveness = "assertive", timeout = LIVEREGION_TIMEOUT_DELAY) {
41
+ if (!this.node) return;
42
+ const node = document.createElement("div");
43
+ node.textContent = message;
44
+ if (assertiveness === "assertive") this.assertiveLog.appendChild(node);
45
+ else this.politeLog.appendChild(node);
46
+ if (message !== "") setTimeout(() => {
47
+ node.remove();
48
+ }, timeout);
49
+ }
50
+ clear(assertiveness) {
51
+ if (!this.node) return;
52
+ if (!assertiveness || assertiveness === "assertive") this.assertiveLog.innerHTML = "";
53
+ if (!assertiveness || assertiveness === "polite") this.politeLog.innerHTML = "";
54
+ }
55
+ };
56
+ var RTL_SCRIPTS = /* @__PURE__ */ new Set([
57
+ "Avst",
58
+ "Arab",
59
+ "Armi",
60
+ "Syrc",
61
+ "Samr",
62
+ "Mand",
63
+ "Thaa",
64
+ "Mend",
65
+ "Nkoo",
66
+ "Adlm",
67
+ "Rohg",
68
+ "Hebr"
69
+ ]);
70
+ var RTL_LANGS = /* @__PURE__ */ new Set([
71
+ "ae",
72
+ "ar",
73
+ "arc",
74
+ "bcc",
75
+ "bqi",
76
+ "ckb",
77
+ "dv",
78
+ "fa",
79
+ "glk",
80
+ "he",
81
+ "ku",
82
+ "mzn",
83
+ "nqo",
84
+ "pnb",
85
+ "ps",
86
+ "sd",
87
+ "ug",
88
+ "ur",
89
+ "yi"
90
+ ]);
91
+ function isRTL(locale) {
92
+ if (Intl.Locale) {
93
+ const script = new Intl.Locale(locale).maximize().script ?? "";
94
+ return RTL_SCRIPTS.has(script);
95
+ }
96
+ const lang = locale.split("-")[0];
97
+ return RTL_LANGS.has(lang);
98
+ }
99
+ function getReadingDirection(locale) {
100
+ return isRTL(locale) ? "rtl" : "ltr";
101
+ }
102
+ function getDefaultLocale() {
103
+ let locale = typeof navigator !== "undefined" && (navigator.language || navigator.userLanguage) || "en-US";
104
+ try {
105
+ Intl.DateTimeFormat.supportedLocalesOf([locale]);
106
+ } catch (_err) {
107
+ locale = "en-US";
108
+ }
109
+ return {
110
+ locale,
111
+ direction: getReadingDirection(locale)
112
+ };
113
+ }
114
+ var currentLocale = getDefaultLocale();
115
+ var listeners = /* @__PURE__ */ new Set();
116
+ function updateLocale() {
117
+ currentLocale = getDefaultLocale();
118
+ for (const listener of listeners) listener(currentLocale);
119
+ }
120
+ function createDefaultLocale() {
121
+ const defaultSSRLocale = {
122
+ locale: "en-US",
123
+ direction: "ltr"
124
+ };
125
+ const [defaultClientLocale, setDefaultClientLocale] = createSignal(currentLocale);
126
+ const defaultLocale = createMemo(() => defaultSSRLocale);
127
+ onMount(() => {
128
+ if (listeners.size === 0) window.addEventListener("languagechange", updateLocale);
129
+ listeners.add(setDefaultClientLocale);
130
+ onCleanup(() => {
131
+ listeners.delete(setDefaultClientLocale);
132
+ if (listeners.size === 0) window.removeEventListener("languagechange", updateLocale);
133
+ });
134
+ });
135
+ return {
136
+ locale: () => defaultLocale().locale,
137
+ direction: () => defaultLocale().direction
138
+ };
139
+ }
140
+ var I18nContext = createContext();
141
+ function useLocale() {
142
+ const defaultLocale = createDefaultLocale();
143
+ return useContext(I18nContext) || defaultLocale;
144
+ }
145
+ var cache = /* @__PURE__ */ new Map();
146
+ function createCollator(options) {
147
+ const { locale } = useLocale();
148
+ const cacheKey = createMemo(() => {
149
+ return locale() + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
150
+ });
151
+ return createMemo(() => {
152
+ const key = cacheKey();
153
+ let collator;
154
+ if (cache.has(key)) collator = cache.get(key);
155
+ if (!collator) {
156
+ collator = new Intl.Collator(locale(), options);
157
+ cache.set(key, collator);
158
+ }
159
+ return collator;
160
+ });
161
+ }
162
+ //#endregion
163
+ export { useLocale as a, createCollator as i, announce as n, clearAnnouncer as r, DATA_LIVE_ANNOUNCER_ATTR as t };
@@ -0,0 +1,72 @@
1
+ import { r as __toESM } from "../_runtime.mjs";
2
+ import { n as require_relay_runtime } from "../_libs/relay-runtime.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/_build/assets/SignInMutation.graphql-BBXmiay6.js
4
+ var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
5
+ /**
6
+ * @generated SignedSource<<f922c28fa3ef1530d281ae9db8af9386>>
7
+ * @lightSyntaxTransform
8
+ */
9
+ var { ConcreteRequest } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
10
+ var node = function() {
11
+ var v0 = [{
12
+ "defaultValue": null,
13
+ "kind": "LocalArgument",
14
+ "name": "email"
15
+ }, {
16
+ "defaultValue": null,
17
+ "kind": "LocalArgument",
18
+ "name": "verifyUrl"
19
+ }], v1 = [{
20
+ "alias": null,
21
+ "args": [{
22
+ "kind": "Variable",
23
+ "name": "email",
24
+ "variableName": "email"
25
+ }, {
26
+ "kind": "Variable",
27
+ "name": "verifyUrl",
28
+ "variableName": "verifyUrl"
29
+ }],
30
+ "concreteType": "LoginChallenge",
31
+ "kind": "LinkedField",
32
+ "name": "loginByEmail",
33
+ "plural": false,
34
+ "selections": [{
35
+ "alias": null,
36
+ "args": null,
37
+ "kind": "ScalarField",
38
+ "name": "challengeId",
39
+ "storageKey": null
40
+ }],
41
+ "storageKey": null
42
+ }];
43
+ return {
44
+ "fragment": {
45
+ "argumentDefinitions": v0,
46
+ "kind": "Fragment",
47
+ "metadata": null,
48
+ "name": "SignInMutation",
49
+ "selections": v1,
50
+ "type": "Mutation",
51
+ "abstractKey": null
52
+ },
53
+ "kind": "Request",
54
+ "operation": {
55
+ "argumentDefinitions": v0,
56
+ "kind": "Operation",
57
+ "name": "SignInMutation",
58
+ "selections": v1
59
+ },
60
+ "params": {
61
+ "cacheID": "37e10229ff566b2aae936dd6e4f5eeba",
62
+ "id": null,
63
+ "metadata": {},
64
+ "name": "SignInMutation",
65
+ "operationKind": "mutation",
66
+ "text": "mutation SignInMutation(\n $email: Email!\n $verifyUrl: URITemplate!\n) {\n loginByEmail(email: $email, verifyUrl: $verifyUrl) {\n challengeId\n }\n}\n"
67
+ }
68
+ };
69
+ }();
70
+ node.hash = "8c239b3bc42d23561c6a06c26b528dfd";
71
+ //#endregion
72
+ export { node as default };