@gatewaze/admin-embed 0.1.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 (96) hide show
  1. package/README.md +42 -0
  2. package/dist/AiSkillsPicker-dbFhcanE.js +373 -0
  3. package/dist/ContentAccessPage-D0HRqPFc.js +264 -0
  4. package/dist/DataTable-fe6yRVpF.js +1984 -0
  5. package/dist/DetailPageHeader-D_v7924k.js +69 -0
  6. package/dist/EditionEmail-CyhC8232.js +8382 -0
  7. package/dist/GuideContent-DBXKCu7r.js +7580 -0
  8. package/dist/HostMediaTab-BsIBEQ1v.js +440 -0
  9. package/dist/InboxPage-C8ivCKdx.js +1112 -0
  10. package/dist/NewsletterCanvasEditor--B06apn3.js +11453 -0
  11. package/dist/NewsletterSetupWizard-BqV6-fa5.js +347 -0
  12. package/dist/NewsletterSignup-DRVZIpOs.js +224 -0
  13. package/dist/Page-D3u8IZ2a.js +14 -0
  14. package/dist/Toaster-Cde0i6IA.js +18 -0
  15. package/dist/Tooltip-CqxUlW1d.js +746 -0
  16. package/dist/_collectionSlug_-B3UN6M-Q.js +308 -0
  17. package/dist/_collection_-Qz4k_Qjl.js +139 -0
  18. package/dist/_edition_-DQXwkI_-.js +301 -0
  19. package/dist/_id_-CtT7rT9f.js +257 -0
  20. package/dist/_id_-CzScE4Qn.js +1197 -0
  21. package/dist/_virtual_gatewaze-modules-BeloWlOa.js +991 -0
  22. package/dist/admin-B0Mmrh_O.js +1239 -0
  23. package/dist/admin-CcfoK6vD.js +17 -0
  24. package/dist/admin-embed.js +21844 -0
  25. package/dist/admin.css +2 -0
  26. package/dist/block-editor-vXBShAue.js +226 -0
  27. package/dist/brand-DklYwIeA.js +11 -0
  28. package/dist/brick-editor-CmBitMMK.js +225 -0
  29. package/dist/broadcastService-CBqXNt_N.js +190 -0
  30. package/dist/classnames-uWIYaD6z.js +44 -0
  31. package/dist/contentAccessService-Cs7tdAo-.js +59 -0
  32. package/dist/context-jzuubYRz.js +5 -0
  33. package/dist/createSafeContext-P1pK0sAN.js +17 -0
  34. package/dist/detail-B8SVFJJr.js +26285 -0
  35. package/dist/detail-uFBxRbLF.js +2966 -0
  36. package/dist/dist-DTrOExw8.js +38806 -0
  37. package/dist/edition-slug-CARO24Bs.js +7 -0
  38. package/dist/export-edition-html-C_hdXQu5.js +18893 -0
  39. package/dist/floating-ui.dom-Cyv879E9.js +987 -0
  40. package/dist/hooks-C377EXJG.js +2974 -0
  41. package/dist/img/mlops-logo.png +0 -0
  42. package/dist/img/mlops-logo2.png +0 -0
  43. package/dist/index.d.ts +105 -0
  44. package/dist/jsx-runtime-CjozyJt-.js +180 -0
  45. package/dist/lib-CylJmhlJ.js +828 -0
  46. package/dist/list-C0cz0aQz.js +451 -0
  47. package/dist/list-CIVgIGsU.js +166 -0
  48. package/dist/logo/mlops-alt.png +0 -0
  49. package/dist/logo/mlops-logo.png +0 -0
  50. package/dist/new-r4KWpqa6.js +80 -0
  51. package/dist/outline-DwDYhYcF.js +6538 -0
  52. package/dist/pages-Ersfxcz7.js +216 -0
  53. package/dist/preview/12627f.jpg +0 -0
  54. package/dist/preview/af009d.jpg +0 -0
  55. package/dist/public-api-LD11kMxh.js +238 -0
  56. package/dist/react-DB2tPNit.js +933 -0
  57. package/dist/react-dom-giQNVXng.js +267 -0
  58. package/dist/registry-4XrV9iNG.js +7 -0
  59. package/dist/render-BtUWfMUt.js +59634 -0
  60. package/dist/resolvePeopleByEmail-hivX2l07.js +828 -0
  61. package/dist/runtime-config.js +10 -0
  62. package/dist/sends-BkPO6PG2.js +182 -0
  63. package/dist/server.browser-Pj3QUa7k.js +15227 -0
  64. package/dist/shim-BCerG8nb.js +6681 -0
  65. package/dist/sonnerHostBridge-CXuCMM3R.js +665 -0
  66. package/dist/src-BWDAOzZO.js +799 -0
  67. package/dist/starter-templates-CFs-QUdF.js +3077 -0
  68. package/dist/storage-VDSvnkvR.js +39 -0
  69. package/dist/templateParser-BQ2IsJ6c.js +49 -0
  70. package/dist/templates-rjQjWsRr.js +253 -0
  71. package/dist/theme/gatewaze/android-icon-144x144.png +0 -0
  72. package/dist/theme/gatewaze/android-icon-192x192.png +0 -0
  73. package/dist/theme/gatewaze/android-icon-36x36.png +0 -0
  74. package/dist/theme/gatewaze/android-icon-48x48.png +0 -0
  75. package/dist/theme/gatewaze/android-icon-72x72.png +0 -0
  76. package/dist/theme/gatewaze/android-icon-96x96.png +0 -0
  77. package/dist/theme/gatewaze/favicon-144x144.png +0 -0
  78. package/dist/theme/gatewaze/favicon-16x16.png +0 -0
  79. package/dist/theme/gatewaze/favicon-192x192.png +0 -0
  80. package/dist/theme/gatewaze/favicon-32x32.png +0 -0
  81. package/dist/theme/gatewaze/favicon-96x96.png +0 -0
  82. package/dist/theme/gatewaze/favicon.ico +0 -0
  83. package/dist/theme/gatewaze/gatewaze-icon-512.png +0 -0
  84. package/dist/theme/gatewaze/gatewaze-logo-black.svg +24 -0
  85. package/dist/theme/gatewaze/gatewaze-logo-white.svg +20 -0
  86. package/dist/theme/gatewaze/gatewaze-poweredby-black.svg +25 -0
  87. package/dist/theme/gatewaze/gatewaze-poweredby-white.svg +25 -0
  88. package/dist/theme/gatewaze/logo_black.svg +24 -0
  89. package/dist/theme/gatewaze/logo_white.svg +20 -0
  90. package/dist/theme-D6odw5nx.js +586 -0
  91. package/dist/ui-DRIo9Krs.js +9747 -0
  92. package/dist/upload-DMNfZ6FX.js +505 -0
  93. package/dist/useModuleFeature-DgsFIUpv.js +8 -0
  94. package/dist/utils-BcVvIjaY.js +36 -0
  95. package/dist/with-selector-B8eSdVx_.js +100 -0
  96. package/package.json +33 -0
@@ -0,0 +1,828 @@
1
+ import { c as e, t } from "./react-DB2tPNit.js";
2
+ import { A as n, C as r, D as i, E as a, F as o, I as s, L as c, M as l, N as u, O as d, P as f, S as p, T as m, _ as h, a as g, b as _, c as v, f as y, g as b, h as x, j as S, k as C, l as w, m as T, n as E, p as D, r as O, t as k, u as A, v as j, w as M, x as N, y as P } from "./hooks-C377EXJG.js";
3
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/server-runtime/warnings.js
4
+ var F = {};
5
+ function I(e, t) {
6
+ !e && !F[t] && (F[t] = !0, console.warn(t));
7
+ }
8
+ //#endregion
9
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/components.js
10
+ var L = /* @__PURE__ */ e(t(), 1), ee = ["HydrateFallback", "hydrateFallbackElement"], te = class {
11
+ status = "pending";
12
+ promise;
13
+ resolve;
14
+ reject;
15
+ constructor() {
16
+ this.promise = new Promise((e, t) => {
17
+ this.resolve = (t) => {
18
+ this.status === "pending" && (this.status = "resolved", e(t));
19
+ }, this.reject = (e) => {
20
+ this.status === "pending" && (this.status = "rejected", t(e));
21
+ };
22
+ });
23
+ }
24
+ };
25
+ function ne({ router: e, flushSync: t, onError: n, useTransitions: r }) {
26
+ r = P() || r;
27
+ let [i, a] = L.useState(e.state), [o, s] = (0, L.useOptimistic)(i), [c, l] = L.useState(), [u, d] = L.useState({ isTransitioning: !1 }), [f, p] = L.useState(), [h, g] = L.useState(), [_, v] = L.useState(), b = L.useRef(/* @__PURE__ */ new Map()), x = L.useCallback((i, { deletedFetchers: o, newErrors: c, flushSync: u, viewTransitionOpts: _ }) => {
28
+ c && n && Object.values(c).forEach((e) => n(e, {
29
+ location: i.location,
30
+ params: i.matches[0]?.params ?? {},
31
+ pattern: m(i.matches)
32
+ })), i.fetchers.forEach((e, t) => {
33
+ e.data !== void 0 && b.current.set(t, e.data);
34
+ }), o.forEach((e) => b.current.delete(e)), I(u === !1 || t != null, "You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from \"react-router/dom\"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.");
35
+ let y = e.window != null && e.window.document != null && typeof e.window.document.startViewTransition == "function";
36
+ if (I(_ == null || y, "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."), !_ || !y) {
37
+ t && u ? t(() => a(i)) : r === !1 ? a(i) : L.startTransition(() => {
38
+ r === !0 && s((e) => R(e, i)), a(i);
39
+ });
40
+ return;
41
+ }
42
+ if (t && u) {
43
+ t(() => {
44
+ h && (f?.resolve(), h.skipTransition()), d({
45
+ isTransitioning: !0,
46
+ flushSync: !0,
47
+ currentLocation: _.currentLocation,
48
+ nextLocation: _.nextLocation
49
+ });
50
+ });
51
+ let n = e.window.document.startViewTransition(() => {
52
+ t(() => a(i));
53
+ });
54
+ n.finished.finally(() => {
55
+ t(() => {
56
+ p(void 0), g(void 0), l(void 0), d({ isTransitioning: !1 });
57
+ });
58
+ }), t(() => g(n));
59
+ return;
60
+ }
61
+ h ? (f?.resolve(), h.skipTransition(), v({
62
+ state: i,
63
+ currentLocation: _.currentLocation,
64
+ nextLocation: _.nextLocation
65
+ })) : (l(i), d({
66
+ isTransitioning: !0,
67
+ flushSync: !1,
68
+ currentLocation: _.currentLocation,
69
+ nextLocation: _.nextLocation
70
+ }));
71
+ }, [
72
+ e.window,
73
+ t,
74
+ h,
75
+ f,
76
+ r,
77
+ s,
78
+ n
79
+ ]);
80
+ L.useLayoutEffect(() => e.subscribe(x), [e, x]), L.useEffect(() => {
81
+ u.isTransitioning && !u.flushSync && p(new te());
82
+ }, [u]), L.useEffect(() => {
83
+ if (f && c && e.window) {
84
+ let t = c, n = f.promise, i = e.window.document.startViewTransition(async () => {
85
+ r === !1 ? a(t) : L.startTransition(() => {
86
+ r === !0 && s((e) => R(e, t)), a(t);
87
+ }), await n;
88
+ });
89
+ i.finished.finally(() => {
90
+ p(void 0), g(void 0), l(void 0), d({ isTransitioning: !1 });
91
+ }), g(i);
92
+ }
93
+ }, [
94
+ c,
95
+ f,
96
+ e.window,
97
+ r,
98
+ s
99
+ ]), L.useEffect(() => {
100
+ f && c && o.location.key === c.location.key && f.resolve();
101
+ }, [
102
+ f,
103
+ h,
104
+ o.location,
105
+ c
106
+ ]), L.useEffect(() => {
107
+ !u.isTransitioning && _ && (l(_.state), d({
108
+ isTransitioning: !0,
109
+ flushSync: !1,
110
+ currentLocation: _.currentLocation,
111
+ nextLocation: _.nextLocation
112
+ }), v(void 0));
113
+ }, [u.isTransitioning, _]);
114
+ let S = L.useMemo(() => ({
115
+ createHref: e.createHref,
116
+ encodeLocation: e.encodeLocation,
117
+ go: (t) => e.navigate(t),
118
+ push: (t, n, r) => e.navigate(t, {
119
+ state: n,
120
+ preventScrollReset: r?.preventScrollReset
121
+ }),
122
+ replace: (t, n, r) => e.navigate(t, {
123
+ replace: !0,
124
+ state: n,
125
+ preventScrollReset: r?.preventScrollReset
126
+ })
127
+ }), [e]), C = e.basename || "/", w = L.useMemo(() => ({
128
+ router: e,
129
+ navigator: S,
130
+ static: !1,
131
+ basename: C,
132
+ onError: n
133
+ }), [
134
+ e,
135
+ S,
136
+ C,
137
+ n
138
+ ]);
139
+ return /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(y.Provider, { value: w }, /* @__PURE__ */ L.createElement(D.Provider, { value: o }, /* @__PURE__ */ L.createElement(T.Provider, { value: b.current }, /* @__PURE__ */ L.createElement(j.Provider, { value: u }, /* @__PURE__ */ L.createElement(oe, {
140
+ basename: C,
141
+ location: o.location,
142
+ navigationType: o.historyAction,
143
+ navigator: S,
144
+ useTransitions: r
145
+ }, /* @__PURE__ */ L.createElement(re, {
146
+ routes: e.routes,
147
+ manifest: e.manifest,
148
+ future: e.future,
149
+ state: o,
150
+ isStatic: !1,
151
+ onError: n
152
+ })))))), null);
153
+ }
154
+ function R(e, t) {
155
+ return {
156
+ ...e,
157
+ navigation: t.navigation.state === "idle" ? e.navigation : t.navigation,
158
+ revalidation: t.revalidation === "idle" ? e.revalidation : t.revalidation,
159
+ actionData: t.navigation.state === "submitting" ? e.actionData : t.actionData,
160
+ fetchers: t.fetchers
161
+ };
162
+ }
163
+ var re = L.memo(ie);
164
+ function ie({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
165
+ return A(e, void 0, {
166
+ manifest: t,
167
+ state: r,
168
+ isStatic: i,
169
+ onError: a,
170
+ future: n
171
+ });
172
+ }
173
+ function ae({ to: e, replace: t, state: r, relative: i }) {
174
+ f(E(), "<Navigate> may be used only in the context of a <Router> component.");
175
+ let { static: a } = L.useContext(b);
176
+ s(!a, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
177
+ let { matches: o } = L.useContext(h), { pathname: c } = O(), l = g(), u = n(e, M(o), c, i === "path"), d = JSON.stringify(u);
178
+ return L.useEffect(() => {
179
+ l(JSON.parse(d), {
180
+ replace: t,
181
+ state: r,
182
+ relative: i
183
+ });
184
+ }, [
185
+ l,
186
+ d,
187
+ i,
188
+ t,
189
+ r
190
+ ]), null;
191
+ }
192
+ function oe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: c }) {
193
+ f(!E(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
194
+ let l = e.replace(/^\/*/, "/"), u = L.useMemo(() => ({
195
+ basename: l,
196
+ navigator: i,
197
+ static: a,
198
+ useTransitions: c,
199
+ future: {}
200
+ }), [
201
+ l,
202
+ i,
203
+ a,
204
+ c
205
+ ]);
206
+ typeof n == "string" && (n = o(n));
207
+ let { pathname: d = "/", search: p = "", hash: m = "", state: h = null, key: g = "default", mask: _ } = n, v = L.useMemo(() => {
208
+ let e = S(d, l);
209
+ return e == null ? null : {
210
+ location: {
211
+ pathname: e,
212
+ search: p,
213
+ hash: m,
214
+ state: h,
215
+ key: g,
216
+ mask: _
217
+ },
218
+ navigationType: r
219
+ };
220
+ }, [
221
+ l,
222
+ d,
223
+ p,
224
+ m,
225
+ h,
226
+ g,
227
+ r,
228
+ _
229
+ ]);
230
+ return s(v != null, `<Router basename="${l}"> is not able to match the URL "${d}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`), v == null ? null : /* @__PURE__ */ L.createElement(b.Provider, { value: u }, /* @__PURE__ */ L.createElement(x.Provider, {
231
+ children: t,
232
+ value: v
233
+ }));
234
+ }
235
+ L.Component;
236
+ //#endregion
237
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/dom.js
238
+ var z = "application/x-www-form-urlencoded";
239
+ function B(e) {
240
+ return typeof HTMLElement < "u" && e instanceof HTMLElement;
241
+ }
242
+ function se(e) {
243
+ return B(e) && e.tagName.toLowerCase() === "button";
244
+ }
245
+ function ce(e) {
246
+ return B(e) && e.tagName.toLowerCase() === "form";
247
+ }
248
+ function le(e) {
249
+ return B(e) && e.tagName.toLowerCase() === "input";
250
+ }
251
+ function ue(e) {
252
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
253
+ }
254
+ function de(e, t) {
255
+ return e.button === 0 && (!t || t === "_self") && !ue(e);
256
+ }
257
+ function V(e = "") {
258
+ return new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
259
+ let r = e[n];
260
+ return t.concat(Array.isArray(r) ? r.map((e) => [n, e]) : [[n, r]]);
261
+ }, []));
262
+ }
263
+ function H(e, t) {
264
+ let n = V(e);
265
+ return t && t.forEach((e, r) => {
266
+ n.has(r) || t.getAll(r).forEach((e) => {
267
+ n.append(r, e);
268
+ });
269
+ }), n;
270
+ }
271
+ var U = null;
272
+ function fe() {
273
+ if (U === null) try {
274
+ new FormData(document.createElement("form"), 0), U = !1;
275
+ } catch {
276
+ U = !0;
277
+ }
278
+ return U;
279
+ }
280
+ var pe = /* @__PURE__ */ new Set([
281
+ "application/x-www-form-urlencoded",
282
+ "multipart/form-data",
283
+ "text/plain"
284
+ ]);
285
+ function W(e) {
286
+ return e != null && !pe.has(e) ? (s(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${z}"`), null) : e;
287
+ }
288
+ function me(e, t) {
289
+ let n, r, i, a, o;
290
+ if (ce(e)) {
291
+ let o = e.getAttribute("action");
292
+ r = o ? S(o, t) : null, n = e.getAttribute("method") || "get", i = W(e.getAttribute("enctype")) || z, a = new FormData(e);
293
+ } else if (se(e) || le(e) && (e.type === "submit" || e.type === "image")) {
294
+ let o = e.form;
295
+ if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
296
+ let s = e.getAttribute("formaction") || o.getAttribute("action");
297
+ if (r = s ? S(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || "get", i = W(e.getAttribute("formenctype")) || W(o.getAttribute("enctype")) || z, a = new FormData(o, e), !fe()) {
298
+ let { name: t, type: n, value: r } = e;
299
+ if (n === "image") {
300
+ let e = t ? `${t}.` : "";
301
+ a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
302
+ } else t && a.append(t, r);
303
+ }
304
+ } else if (B(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
305
+ else n = "get", r = null, i = z, o = e;
306
+ return a && i === "text/plain" && (o = a, a = void 0), {
307
+ action: r,
308
+ method: n.toLowerCase(),
309
+ encType: i,
310
+ formData: a,
311
+ body: o
312
+ };
313
+ }
314
+ //#endregion
315
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/ssr/invariant.js
316
+ function G(e, t) {
317
+ if (e === !1 || e == null) throw Error(t);
318
+ }
319
+ //#endregion
320
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js
321
+ function K(e, t) {
322
+ let n = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
323
+ return n.pathname = n.pathname.endsWith("/") ? `${n.pathname}_.${t}` : `${n.pathname}.${t}`, n;
324
+ }
325
+ //#endregion
326
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js
327
+ async function he(e, t) {
328
+ if (e.id in t) return t[e.id];
329
+ try {
330
+ let n = await import(
331
+ /* @vite-ignore */
332
+ /* webpackIgnore: true */
333
+ e.module
334
+ );
335
+ return t[e.id] = n, n;
336
+ } catch (t) {
337
+ return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
338
+ }
339
+ }
340
+ //#endregion
341
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/ssr/links.js
342
+ function ge(e) {
343
+ return e != null && typeof e.page == "string";
344
+ }
345
+ function _e(e) {
346
+ return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
347
+ }
348
+ async function ve(e, t, n) {
349
+ return Se((await Promise.all(e.map(async (e) => {
350
+ let r = t.routes[e.route.id];
351
+ if (r) {
352
+ let e = await he(r, n);
353
+ return e.links ? e.links() : [];
354
+ }
355
+ return [];
356
+ }))).flat(1).filter(_e).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
357
+ ...e,
358
+ rel: "prefetch",
359
+ as: "style"
360
+ } : {
361
+ ...e,
362
+ rel: "prefetch"
363
+ }));
364
+ }
365
+ function q(e, t, n, r, i, a) {
366
+ let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
367
+ return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
368
+ let c = r.routes[t.route.id];
369
+ if (!c || !c.hasLoader) return !1;
370
+ if (o(t, a) || s(t, a)) return !0;
371
+ if (t.route.shouldRevalidate) {
372
+ let r = t.route.shouldRevalidate({
373
+ currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
374
+ currentParams: n[0]?.params || {},
375
+ nextUrl: new URL(e, window.origin),
376
+ nextParams: t.params,
377
+ defaultShouldRevalidate: !0
378
+ });
379
+ if (typeof r == "boolean") return r;
380
+ }
381
+ return !0;
382
+ }) : [];
383
+ }
384
+ function ye(e, t, { includeHydrateFallback: n } = {}) {
385
+ return be(e.map((e) => {
386
+ let r = t.routes[e.route.id];
387
+ if (!r) return [];
388
+ let i = [r.module];
389
+ return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
390
+ }).flat(1));
391
+ }
392
+ function be(e) {
393
+ return [...new Set(e)];
394
+ }
395
+ function xe(e) {
396
+ let t = {}, n = Object.keys(e).sort();
397
+ for (let r of n) t[r] = e[r];
398
+ return t;
399
+ }
400
+ function Se(e, t) {
401
+ let n = /* @__PURE__ */ new Set(), r = new Set(t);
402
+ return e.reduce((e, i) => {
403
+ if (t && !ge(i) && i.as === "script" && i.href && r.has(i.href)) return e;
404
+ let a = JSON.stringify(xe(i));
405
+ return n.has(a) || (n.add(a), e.push({
406
+ key: a,
407
+ link: i
408
+ })), e;
409
+ }, []);
410
+ }
411
+ //#endregion
412
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/ssr/components.js
413
+ function Ce() {
414
+ let e = L.useContext(y);
415
+ return G(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
416
+ }
417
+ function we() {
418
+ let e = L.useContext(D);
419
+ return G(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
420
+ }
421
+ var J = L.createContext(void 0);
422
+ J.displayName = "FrameworkContext";
423
+ function Y() {
424
+ let e = L.useContext(J);
425
+ return G(e, "You must render this element inside a <HydratedRouter> element"), e;
426
+ }
427
+ function Te(e, t) {
428
+ let n = L.useContext(J), [r, i] = L.useState(!1), [a, o] = L.useState(!1), { onFocus: s, onBlur: c, onMouseEnter: l, onMouseLeave: u, onTouchStart: d } = t, f = L.useRef(null);
429
+ L.useEffect(() => {
430
+ if (e === "render" && o(!0), e === "viewport") {
431
+ let e = new IntersectionObserver((e) => {
432
+ e.forEach((e) => {
433
+ o(e.isIntersecting);
434
+ });
435
+ }, { threshold: .5 });
436
+ return f.current && e.observe(f.current), () => {
437
+ e.disconnect();
438
+ };
439
+ }
440
+ }, [e]), L.useEffect(() => {
441
+ if (r) {
442
+ let e = setTimeout(() => {
443
+ o(!0);
444
+ }, 100);
445
+ return () => {
446
+ clearTimeout(e);
447
+ };
448
+ }
449
+ }, [r]);
450
+ let p = () => {
451
+ i(!0);
452
+ }, m = () => {
453
+ i(!1), o(!1);
454
+ };
455
+ return n ? e === "intent" ? [
456
+ a,
457
+ f,
458
+ {
459
+ onFocus: X(s, p),
460
+ onBlur: X(c, m),
461
+ onMouseEnter: X(l, p),
462
+ onMouseLeave: X(u, m),
463
+ onTouchStart: X(d, p)
464
+ }
465
+ ] : [
466
+ a,
467
+ f,
468
+ {}
469
+ ] : [
470
+ !1,
471
+ f,
472
+ {}
473
+ ];
474
+ }
475
+ function X(e, t) {
476
+ return (n) => {
477
+ e && e(n), n.defaultPrevented || t(n);
478
+ };
479
+ }
480
+ function Ee({ page: e, ...t }) {
481
+ let n = P(), { nonce: r } = Y(), { router: i } = Ce(), a = L.useMemo(() => d(i.routes, e, i.basename), [
482
+ i.routes,
483
+ e,
484
+ i.basename
485
+ ]);
486
+ return a ? (t.nonce == null && r && (t = {
487
+ ...t,
488
+ nonce: r
489
+ }), n ? /* @__PURE__ */ L.createElement(Oe, {
490
+ page: e,
491
+ matches: a,
492
+ ...t
493
+ }) : /* @__PURE__ */ L.createElement(ke, {
494
+ page: e,
495
+ matches: a,
496
+ ...t
497
+ })) : null;
498
+ }
499
+ function De(e) {
500
+ let { manifest: t, routeModules: n } = Y(), [r, i] = L.useState([]);
501
+ return L.useEffect(() => {
502
+ let r = !1;
503
+ return ve(e, t, n).then((e) => {
504
+ r || i(e);
505
+ }), () => {
506
+ r = !0;
507
+ };
508
+ }, [
509
+ e,
510
+ t,
511
+ n
512
+ ]), r;
513
+ }
514
+ function Oe({ page: e, matches: t, ...n }) {
515
+ let r = O(), i = L.useMemo(() => {
516
+ if (e === r.pathname + r.search + r.hash) return [];
517
+ let n = K(e, "rsc"), i = !1, a = [];
518
+ for (let e of t) typeof e.route.shouldRevalidate == "function" ? i = !0 : a.push(e.route.id);
519
+ return i && a.length > 0 && n.searchParams.set("_routes", a.join(",")), [n.pathname + n.search];
520
+ }, [
521
+ e,
522
+ r,
523
+ t
524
+ ]);
525
+ return /* @__PURE__ */ L.createElement(L.Fragment, null, i.map((e) => /* @__PURE__ */ L.createElement("link", {
526
+ key: e,
527
+ rel: "prefetch",
528
+ as: "fetch",
529
+ href: e,
530
+ ...n
531
+ })));
532
+ }
533
+ function ke({ page: e, matches: t, ...n }) {
534
+ let r = O(), { manifest: i, routeModules: a } = Y(), { loaderData: o, matches: s } = we(), c = L.useMemo(() => q(e, t, s, i, r, "data"), [
535
+ e,
536
+ t,
537
+ s,
538
+ i,
539
+ r
540
+ ]), l = L.useMemo(() => q(e, t, s, i, r, "assets"), [
541
+ e,
542
+ t,
543
+ s,
544
+ i,
545
+ r
546
+ ]), u = L.useMemo(() => {
547
+ if (e === r.pathname + r.search + r.hash) return [];
548
+ let n = /* @__PURE__ */ new Set(), s = !1;
549
+ if (t.forEach((e) => {
550
+ let t = i.routes[e.route.id];
551
+ !t || !t.hasLoader || (!c.some((t) => t.route.id === e.route.id) && e.route.id in o && a[e.route.id]?.shouldRevalidate || t.hasClientLoader ? s = !0 : n.add(e.route.id));
552
+ }), n.size === 0) return [];
553
+ let l = K(e, "data");
554
+ return s && n.size > 0 && l.searchParams.set("_routes", t.filter((e) => n.has(e.route.id)).map((e) => e.route.id).join(",")), [l.pathname + l.search];
555
+ }, [
556
+ o,
557
+ r,
558
+ i,
559
+ c,
560
+ t,
561
+ e,
562
+ a
563
+ ]), d = L.useMemo(() => ye(l, i), [l, i]), f = De(l);
564
+ return /* @__PURE__ */ L.createElement(L.Fragment, null, u.map((e) => /* @__PURE__ */ L.createElement("link", {
565
+ key: e,
566
+ rel: "prefetch",
567
+ as: "fetch",
568
+ href: e,
569
+ ...n
570
+ })), d.map((e) => /* @__PURE__ */ L.createElement("link", {
571
+ key: e,
572
+ rel: "modulepreload",
573
+ href: e,
574
+ ...n
575
+ })), f.map(({ key: e, link: t }) => /* @__PURE__ */ L.createElement("link", {
576
+ key: e,
577
+ nonce: n.nonce,
578
+ ...t,
579
+ crossOrigin: t.crossOrigin ?? n.crossOrigin
580
+ })));
581
+ }
582
+ function Ae(...e) {
583
+ return (t) => {
584
+ e.forEach((e) => {
585
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
586
+ });
587
+ };
588
+ }
589
+ //#endregion
590
+ //#region ../../node_modules/.pnpm/react-router@8.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-router/dist/production/lib/dom/lib.js
591
+ var je = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
592
+ try {
593
+ je && (window.__reactRouterVersion = "8.3.0");
594
+ } catch {}
595
+ function Me(e, t) {
596
+ return _({
597
+ basename: t?.basename,
598
+ getContext: t?.getContext,
599
+ future: t?.future,
600
+ history: l({ window: t?.window }),
601
+ hydrationData: t?.hydrationData || Ne(),
602
+ routes: e,
603
+ mapRouteProperties: r,
604
+ hydrationRouteProperties: ee,
605
+ dataStrategy: t?.dataStrategy,
606
+ patchRoutesOnNavigation: t?.patchRoutesOnNavigation,
607
+ window: t?.window,
608
+ instrumentations: t?.instrumentations
609
+ }).initialize();
610
+ }
611
+ function Ne() {
612
+ let e = window?.__staticRouterHydrationData;
613
+ return e && e.errors && (e = {
614
+ ...e,
615
+ errors: Pe(e.errors)
616
+ }), e;
617
+ }
618
+ function Pe(e) {
619
+ if (!e) return null;
620
+ let t = Object.entries(e), n = {};
621
+ for (let [e, r] of t) if (r && r.__type === "RouteErrorResponse") n[e] = new N(r.status, r.statusText, r.data, r.internal === !0);
622
+ else if (r && r.__type === "Error") {
623
+ if (typeof r.__subType == "string" && p.includes(r.__subType)) {
624
+ let t = window[r.__subType];
625
+ if (typeof t == "function") try {
626
+ let i = new t(r.message);
627
+ i.stack = "", n[e] = i;
628
+ } catch {}
629
+ }
630
+ if (n[e] == null) {
631
+ let t = Error(r.message);
632
+ t.stack = "", n[e] = t;
633
+ }
634
+ } else n[e] = r;
635
+ return n;
636
+ }
637
+ var Z = L.forwardRef(function({ onClick: e, discover: t = "render", prefetch: r = "none", relative: i, reloadDocument: o, replace: s, mask: l, state: u, target: d, to: f, preventScrollReset: p, viewTransition: m, defaultShouldRevalidate: h, ...g }, _) {
638
+ let { basename: v, navigator: y, useTransitions: x } = L.useContext(b), S = typeof f == "string" && c.test(f), w = C(f, v);
639
+ f = w.to;
640
+ let T = k(f, { relative: i }), E = O(), D = null;
641
+ if (l) {
642
+ let e = n(l, [], E.mask ? E.mask.pathname : "/", !0);
643
+ v !== "/" && (e.pathname = e.pathname === "/" ? v : a([v, e.pathname])), D = y.createHref(e);
644
+ }
645
+ let [A, j, M] = Te(r, g), N = Le(f, {
646
+ replace: s,
647
+ mask: l,
648
+ state: u,
649
+ target: d,
650
+ preventScrollReset: p,
651
+ relative: i,
652
+ viewTransition: m,
653
+ defaultShouldRevalidate: h,
654
+ useTransitions: x
655
+ });
656
+ function P(t) {
657
+ e && e(t), t.defaultPrevented || N(t);
658
+ }
659
+ let F = !(w.isExternal || o), I = /* @__PURE__ */ L.createElement("a", {
660
+ ...g,
661
+ ...M,
662
+ href: (F ? D : void 0) || w.absoluteURL || T,
663
+ onClick: F ? P : e,
664
+ ref: Ae(_, j),
665
+ target: d,
666
+ "data-discover": !S && t === "render" ? "true" : void 0
667
+ });
668
+ return A && !S ? /* @__PURE__ */ L.createElement(L.Fragment, null, I, /* @__PURE__ */ L.createElement(Ee, { page: T })) : I;
669
+ });
670
+ Z.displayName = "Link";
671
+ var Fe = L.forwardRef(function({ "aria-current": e = "page", caseSensitive: t = !1, className: n = "", end: r = !1, style: i, to: a, viewTransition: o, children: s, ...c }, l) {
672
+ let u = v(a, { relative: c.relative }), d = O(), f = L.useContext(D), { navigator: p, basename: m } = L.useContext(b), h = f != null && Ue(u) && o === !0, g = p.encodeLocation ? p.encodeLocation(u).pathname : u.pathname, _ = d.pathname, y = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
673
+ t || (_ = _.toLowerCase(), y = y ? y.toLowerCase() : null, g = g.toLowerCase()), y && m && (y = S(y, m) || y);
674
+ let x = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length, C = _ === g || !r && _.startsWith(g) && _.charAt(x) === "/", w = y != null && (y === g || !r && y.startsWith(g) && y.charAt(x) === "/"), T = {
675
+ isActive: C,
676
+ isPending: w,
677
+ isTransitioning: h
678
+ }, E = C ? e : void 0, k;
679
+ k = typeof n == "function" ? n(T) : [
680
+ n,
681
+ C ? "active" : null,
682
+ w ? "pending" : null,
683
+ h ? "transitioning" : null
684
+ ].filter(Boolean).join(" ");
685
+ let A = typeof i == "function" ? i(T) : i;
686
+ return /* @__PURE__ */ L.createElement(Z, {
687
+ ...c,
688
+ "aria-current": E,
689
+ className: k,
690
+ ref: l,
691
+ style: A,
692
+ to: a,
693
+ viewTransition: o
694
+ }, typeof s == "function" ? s(T) : s);
695
+ });
696
+ Fe.displayName = "NavLink";
697
+ var Q = L.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, reloadDocument: r, replace: i, state: a, method: o = "get", action: s, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
698
+ let { useTransitions: g } = L.useContext(b), _ = Ve(), v = He(s, { relative: u }), y = o.toLowerCase() === "get" ? "get" : "post", x = typeof s == "string" && c.test(s);
699
+ return /* @__PURE__ */ L.createElement("form", {
700
+ ref: h,
701
+ method: y,
702
+ action: v,
703
+ onSubmit: r ? l : (e) => {
704
+ if (l && l(e), e.defaultPrevented) return;
705
+ e.preventDefault();
706
+ let r = e.nativeEvent.submitter, s = r?.getAttribute("formmethod") || o, c = () => _(r || e.currentTarget, {
707
+ fetcherKey: t,
708
+ method: s,
709
+ navigate: n,
710
+ replace: i,
711
+ state: a,
712
+ relative: u,
713
+ preventScrollReset: d,
714
+ viewTransition: f,
715
+ defaultShouldRevalidate: p
716
+ });
717
+ g && n !== !1 ? L.startTransition(() => c()) : c();
718
+ },
719
+ ...m,
720
+ "data-discover": !x && e === "render" ? "true" : void 0
721
+ });
722
+ });
723
+ Q.displayName = "Form";
724
+ function Ie(e) {
725
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
726
+ }
727
+ function $(e) {
728
+ let t = L.useContext(y);
729
+ return f(t, Ie(e)), t;
730
+ }
731
+ function Le(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a, relative: o, viewTransition: s, defaultShouldRevalidate: c, useTransitions: l } = {}) {
732
+ let d = g(), f = O(), p = v(e, { relative: o });
733
+ return L.useCallback((m) => {
734
+ if (de(m, t)) {
735
+ m.preventDefault();
736
+ let t = n === void 0 ? u(f) === u(p) : n, h = () => d(e, {
737
+ replace: t,
738
+ mask: r,
739
+ state: i,
740
+ preventScrollReset: a,
741
+ relative: o,
742
+ viewTransition: s,
743
+ defaultShouldRevalidate: c
744
+ });
745
+ l ? L.startTransition(() => h()) : h();
746
+ }
747
+ }, [
748
+ f,
749
+ d,
750
+ p,
751
+ n,
752
+ r,
753
+ i,
754
+ t,
755
+ e,
756
+ a,
757
+ o,
758
+ s,
759
+ c,
760
+ l
761
+ ]);
762
+ }
763
+ function Re(e) {
764
+ s(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
765
+ let t = L.useRef(V(e)), n = L.useRef(!1), r = O(), i = L.useMemo(() => H(r.search, n.current ? null : t.current), [r.search]), a = g();
766
+ return [i, L.useCallback((e, t) => {
767
+ let r = V(typeof e == "function" ? e(new URLSearchParams(i)) : e);
768
+ n.current = !0, a("?" + r, t);
769
+ }, [a, i])];
770
+ }
771
+ var ze = 0, Be = () => `__${String(++ze)}__`;
772
+ function Ve() {
773
+ let { router: e } = $("useSubmit"), { basename: t } = L.useContext(b), n = w(), r = e.fetch, i = e.navigate;
774
+ return L.useCallback(async (e, a = {}) => {
775
+ let { action: o, method: s, encType: c, formData: l, body: u } = me(e, t);
776
+ a.navigate === !1 ? await r(a.fetcherKey || Be(), n, a.action || o, {
777
+ defaultShouldRevalidate: a.defaultShouldRevalidate,
778
+ preventScrollReset: a.preventScrollReset,
779
+ formData: l,
780
+ body: u,
781
+ formMethod: a.method || s,
782
+ formEncType: a.encType || c,
783
+ flushSync: a.flushSync
784
+ }) : await i(a.action || o, {
785
+ defaultShouldRevalidate: a.defaultShouldRevalidate,
786
+ preventScrollReset: a.preventScrollReset,
787
+ formData: l,
788
+ body: u,
789
+ formMethod: a.method || s,
790
+ formEncType: a.encType || c,
791
+ replace: a.replace,
792
+ state: a.state,
793
+ fromRouteId: n,
794
+ flushSync: a.flushSync,
795
+ viewTransition: a.viewTransition
796
+ });
797
+ }, [
798
+ r,
799
+ i,
800
+ t,
801
+ n
802
+ ]);
803
+ }
804
+ function He(e, { relative: t } = {}) {
805
+ let { basename: n } = L.useContext(b), r = L.useContext(h);
806
+ f(r, "useFormAction must be used inside a RouteContext");
807
+ let [i] = r.matches.slice(-1), o = { ...v(e || ".", { relative: t }) }, s = O();
808
+ if (e == null) {
809
+ o.search = s.search;
810
+ let e = new URLSearchParams(o.search), t = e.getAll("index");
811
+ if (t.some((e) => e === "")) {
812
+ e.delete("index"), t.filter((e) => e).forEach((t) => e.append("index", t));
813
+ let n = e.toString();
814
+ o.search = n ? `?${n}` : "";
815
+ }
816
+ }
817
+ return (!e || e === ".") && i.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : a([n, o.pathname])), u(o);
818
+ }
819
+ function Ue(e, { relative: t } = {}) {
820
+ let n = L.useContext(j);
821
+ f(n != null, "`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
822
+ let { basename: r } = $("useViewTransitionState"), a = v(e, { relative: t });
823
+ if (!n.isTransitioning) return !1;
824
+ let o = S(n.currentLocation.pathname, r) || n.currentLocation.pathname, s = S(n.nextLocation.pathname, r) || n.nextLocation.pathname;
825
+ return i(a.pathname, s) != null || i(a.pathname, o) != null;
826
+ }
827
+ //#endregion
828
+ export { ne as i, Re as n, ae as r, Me as t };