@burdenoff/fe-libs 2026.1021.7 → 2026.1021.9

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.
@@ -3,47 +3,48 @@ import { isShellLessRoute as t } from "../config/shellRoutes.js";
3
3
  import { readActiveContextValueWithUrlPrecedence as n } from "./shell/ActiveContextStorage.js";
4
4
  import { BACKEND_ERROR_EVENT as r, CONNECTION_STATUS_EVENT as i, dispatchBackendErrorEvent as a, isBackendErrorDisplay as o, shouldToastBackendError as s } from "../utils/backendErrors.js";
5
5
  import { SESSION_EXPIRED_EVENT as c, graphqlFetch as l } from "../graphql/fetch.js";
6
- import { attemptTokenRefresh as u, clearAuthSessionStorage as ee, getSharedTokenRefreshRefs as d, isAuthNetworkError as te } from "../utils/authErrorHandling.js";
7
- import { AppShellContextProvider as f } from "./shell/AppShellContext.js";
8
- import { AuthProvider as p } from "./shell/AuthProvider.js";
9
- import { ActiveContextProvider as m } from "./shell/ActiveContextProvider.js";
10
- import { LogManager as h } from "../logger/LogManager.js";
11
- import { ConsoleTransport as ne } from "../logger/ConsoleTransport.js";
12
- import { ThemeProvider as g } from "./shell/ThemeProvider.js";
13
- import { ErrorFallback as re } from "../components/ErrorFallback.js";
14
- import { m as _ } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
15
- import { PWAInstallBanner as v } from "../components/PWAInstallBanner.js";
16
- import { FeatureFlagsProvider as ie } from "./shell/FeatureFlagsProvider.js";
17
- import { FeatureFlagProvider as ae } from "../feature-flags/FeatureFlagProvider.js";
18
- import { GlobalUiProvider as y } from "./shell/GlobalUiProvider.js";
19
- import { ShellUiProvider as b } from "./shell/ShellUiProvider.js";
20
- import { ContextManagerProvider as oe } from "./shell/ContextManagerProvider.js";
21
- import { AuthTokenProvider as se } from "./shell/AuthTokenProvider.js";
22
- import { MultiGatewayProvider as ce } from "./shell/MultiGatewayProvider.js";
23
- import { G as x, Q as S, j as C, w } from "../../node_modules/web-vitals/dist/web-vitals.js";
24
- import { ProfileI18nBridge as T } from "./shell/ProfileI18nBridge.js";
6
+ import { attemptTokenRefresh as u, clearAuthSessionStorage as d, getSharedTokenRefreshRefs as f, isAuthNetworkError as p } from "../utils/authErrorHandling.js";
7
+ import { AppShellContextProvider as m } from "./shell/AppShellContext.js";
8
+ import { AuthProvider as h } from "./shell/AuthProvider.js";
9
+ import { ActiveContextProvider as g } from "./shell/ActiveContextProvider.js";
10
+ import { LogManager as _ } from "../logger/LogManager.js";
11
+ import { ConsoleTransport as ee } from "../logger/ConsoleTransport.js";
12
+ import { ThemeProvider as v } from "./shell/ThemeProvider.js";
13
+ import { ErrorFallback as te } from "../components/ErrorFallback.js";
14
+ import { m as y } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
15
+ import { PWAInstallBanner as b } from "../components/PWAInstallBanner.js";
16
+ import { FeatureFlagsProvider as x } from "./shell/FeatureFlagsProvider.js";
17
+ import { FeatureFlagProvider as S } from "../feature-flags/FeatureFlagProvider.js";
18
+ import { GlobalUiProvider as C } from "./shell/GlobalUiProvider.js";
19
+ import { ShellUiProvider as w } from "./shell/ShellUiProvider.js";
20
+ import { ContextManagerProvider as ne } from "./shell/ContextManagerProvider.js";
21
+ import { AuthTokenProvider as re } from "./shell/AuthTokenProvider.js";
22
+ import { MultiGatewayProvider as ie } from "./shell/MultiGatewayProvider.js";
23
+ import { G as T, Q as ae, j as oe, w as se } from "../../node_modules/web-vitals/dist/web-vitals.js";
24
+ import { ProfileI18nBridge as ce } from "./shell/ProfileI18nBridge.js";
25
25
  import { ProfileGeographyBridge as le } from "./shell/ProfileGeographyBridge.js";
26
- import { DesktopUpdateToast as ue } from "../components/DesktopUpdateToast.js";
27
- import { DevtoolsSink as E } from "../events/sinks/DevtoolsSink.js";
28
- import { BroadcastChannelSink as D } from "../events/sinks/BroadcastChannelSink.js";
29
- import { BackendAuditSink as O } from "../events/sinks/BackendAuditSink.js";
30
- import { AnalyticsConsentBanner as k, RybbitSink as A } from "../events/sinks/RybbitSink.js";
31
- import { OtelBrowserSink as j } from "../events/sinks/OtelBrowserSink.js";
32
- import { EventBusProvider as de, useEventBus as M } from "../../shared-events.js";
33
- import { useReferralAttribution as N } from "../hooks/useReferralAttribution.js";
34
- import { usePushDeviceRegistration as P } from "../hooks/usePushDeviceRegistration.js";
35
- import { TourPermissionsBoundary as F } from "../tours/TourPermissionsBoundary.js";
36
- import { resolveBrowserDirectionMode as fe } from "./shell/directionMode.js";
37
- import { TourPlayerProvider as I } from "../tours/TourPlayerProvider.js";
38
- import { ToursProvider as L, useToursContext as R } from "../tours/ToursContext.js";
39
- import { TourInitializer as z } from "../tours/TourInitializer.js";
40
- import { Suspense as B, useCallback as V, useEffect as H, useMemo as U, useRef as W, useState as pe } from "react";
41
- import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
42
- import { BrowserRouter as me, useLocation as J } from "react-router";
43
- import { Toaster as Y, toast as X } from "sonner";
26
+ import { DesktopUpdateToast as E } from "../components/DesktopUpdateToast.js";
27
+ import { DevtoolsSink as D } from "../events/sinks/DevtoolsSink.js";
28
+ import { BroadcastChannelSink as O } from "../events/sinks/BroadcastChannelSink.js";
29
+ import { BackendAuditSink as k } from "../events/sinks/BackendAuditSink.js";
30
+ import { AnalyticsConsentBanner as A, RybbitSink as j } from "../events/sinks/RybbitSink.js";
31
+ import { OtelBrowserSink as M } from "../events/sinks/OtelBrowserSink.js";
32
+ import { EventBusProvider as ue, useEventBus as N } from "../../shared-events.js";
33
+ import { useReferralAttribution as P } from "../hooks/useReferralAttribution.js";
34
+ import { usePushDeviceRegistration as F } from "../hooks/usePushDeviceRegistration.js";
35
+ import { TourPermissionsBoundary as I } from "../tours/TourPermissionsBoundary.js";
36
+ import { resolveBrowserDirectionMode as de } from "./shell/directionMode.js";
37
+ import { TourPlayerProvider as L } from "../tours/TourPlayerProvider.js";
38
+ import { ToursProvider as R, useToursContext as z } from "../tours/ToursContext.js";
39
+ import { TourInitializer as B } from "../tours/TourInitializer.js";
40
+ import { useRegisterTourRouteCatalog as fe } from "../tours/useTourRouteCatalog.js";
41
+ import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G, useState as pe } from "react";
42
+ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
43
+ import { BrowserRouter as me, useLocation as Y } from "react-router";
44
+ import { Toaster as X, toast as Z } from "sonner";
44
45
  import { MutationCache as he, QueryCache as ge, QueryClient as _e, QueryClientProvider as ve } from "@tanstack/react-query";
45
46
  //#region src/shared/providers/AppShellProvider.tsx
46
- var Z = {
47
+ var Q = {
47
48
  artistrybase: { prod: "cfbecacb6002" },
48
49
  atheletebridge: { prod: "c34c6ead7aa8" },
49
50
  adaptercloud: {},
@@ -110,8 +111,8 @@ function Te() {
110
111
  SSR: !1
111
112
  };
112
113
  }
113
- function Q(t, n) {
114
- let r = Ce(n.VITE_DEPLOY_ENV ?? n.MODE), i = we(n, r), a = Z[t] ?? Z[e(t)], o = r === "prod" ? a?.prod : a?.nonProd, s = n.VITE_RYBBIT_SITE_ID || o, c = n.VITE_BACKEND_AUDIT_ENDPOINT || (n.PROD ? "/api/fe-events" : void 0);
114
+ function Ee(t, n) {
115
+ let r = Ce(n.VITE_DEPLOY_ENV ?? n.MODE), i = we(n, r), a = Q[t] ?? Q[e(t)], o = r === "prod" ? a?.prod : a?.nonProd, s = n.VITE_RYBBIT_SITE_ID || o, c = n.VITE_BACKEND_AUDIT_ENDPOINT || (n.PROD ? "/api/fe-events" : void 0);
115
116
  return {
116
117
  enabled: i,
117
118
  appVersion: n.VITE_APP_VERSION || "0.0.0",
@@ -137,17 +138,17 @@ function Q(t, n) {
137
138
  }
138
139
  };
139
140
  }
140
- function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
141
- let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = R(), l = V((e, t) => e.steps?.[t], []);
142
- return /* @__PURE__ */ q(I, {
141
+ function De({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
142
+ let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = z(), l = H((e, t) => e.steps?.[t], []);
143
+ return /* @__PURE__ */ J(L, {
143
144
  scopeKey: c,
144
- onTourStart: V((e) => {
145
+ onTourStart: H((e) => {
145
146
  a(e.id, "started"), s("TOUR_STARTED", e.id);
146
147
  }, [s, a]),
147
- onTourComplete: V((e) => {
148
+ onTourComplete: H((e) => {
148
149
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
149
150
  }, [s, a]),
150
- onTourSkip: V((e, t) => {
151
+ onTourSkip: H((e, t) => {
151
152
  let n = l(e, t);
152
153
  a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
153
154
  stepId: n?.id,
@@ -158,14 +159,14 @@ function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
158
159
  s,
159
160
  a
160
161
  ]),
161
- onStepChange: V((e, t) => {
162
+ onStepChange: H((e, t) => {
162
163
  let n = l(e, t);
163
164
  n && s("STEP_VIEWED", e.id, {
164
165
  stepId: n.id,
165
166
  stepOrder: n.stepOrder
166
167
  });
167
168
  }, [l, s]),
168
- onStepComplete: V((e, t) => {
169
+ onStepComplete: H((e, t) => {
169
170
  let n = l(e, t);
170
171
  n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
171
172
  stepId: n.id,
@@ -177,20 +178,20 @@ function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
177
178
  s
178
179
  ]),
179
180
  children: [
180
- /* @__PURE__ */ K(z, {}),
181
+ /* @__PURE__ */ q(B, {}),
181
182
  e,
182
- /* @__PURE__ */ K(De, {}),
183
- /* @__PURE__ */ K(ke, {}),
184
- /* @__PURE__ */ K(Y, {
183
+ /* @__PURE__ */ q(Oe, {}),
184
+ /* @__PURE__ */ q(Ae, {}),
185
+ /* @__PURE__ */ q(X, {
185
186
  position: n,
186
187
  richColors: !0,
187
188
  closeButton: !0,
188
189
  style: be
189
190
  }),
190
- /* @__PURE__ */ K(ue, {}),
191
- t && /* @__PURE__ */ K(B, {
191
+ /* @__PURE__ */ q(E, {}),
192
+ t && /* @__PURE__ */ q(V, {
192
193
  fallback: null,
193
- children: /* @__PURE__ */ K(v, {
194
+ children: /* @__PURE__ */ q(b, {
194
195
  productName: r,
195
196
  brandInitial: i
196
197
  })
@@ -198,9 +199,9 @@ function Ee({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
198
199
  ]
199
200
  });
200
201
  }
201
- function De() {
202
- let e = W(null);
203
- return H(() => {
202
+ function Oe() {
203
+ let e = G(null);
204
+ return U(() => {
204
205
  let t = (t) => {
205
206
  let n = t instanceof CustomEvent && o(t.detail) ? t.detail : null;
206
207
  if (!s(n)) return;
@@ -209,33 +210,33 @@ function De() {
209
210
  a?.key === r && i - a.shownAt < xe || (e.current = {
210
211
  key: r,
211
212
  shownAt: i
212
- }, X.error(n.message, { duration: 7e3 }));
213
+ }, Z.error(n.message, { duration: 7e3 }));
213
214
  };
214
215
  return window.addEventListener(r, t), () => window.removeEventListener(r, t);
215
216
  }, []), null;
216
217
  }
217
- var $ = "burdenoff-connection-status", Oe = 1500;
218
- function ke() {
219
- let e = W(null), t = W(!1);
220
- return H(() => {
218
+ var $ = "burdenoff-connection-status", ke = 1500;
219
+ function Ae() {
220
+ let e = G(null), t = G(!1);
221
+ return U(() => {
221
222
  let n = () => {
222
- t.current || (t.current = !0, X.error("Connection lost. Trying to reconnect…", {
223
+ t.current || (t.current = !0, Z.error("Connection lost. Trying to reconnect…", {
223
224
  id: $,
224
225
  duration: Infinity
225
226
  }));
226
227
  }, r = () => {
227
228
  t.current || e.current || (e.current = setTimeout(() => {
228
229
  e.current = null, n();
229
- }, Oe));
230
+ }, ke));
230
231
  }, a = (n) => {
231
232
  if (e.current &&= (clearTimeout(e.current), null), !t.current) {
232
- X.dismiss($);
233
+ Z.dismiss($);
233
234
  return;
234
235
  }
235
- t.current = !1, n ? X.success("Back online", {
236
+ t.current = !1, n ? Z.success("Back online", {
236
237
  id: $,
237
238
  duration: 2500
238
- }) : X.dismiss($);
239
+ }) : Z.dismiss($);
239
240
  }, o = (e) => {
240
241
  if (!(e instanceof CustomEvent)) return;
241
242
  let t = e.detail;
@@ -248,42 +249,42 @@ function ke() {
248
249
  };
249
250
  }, []), null;
250
251
  }
251
- function Ae() {
252
- return P(), null;
252
+ function je() {
253
+ return F(), null;
253
254
  }
254
- function je({ children: e, i18nProductId: t, platformI18nProductId: n, directionMode: r, fallbackTranslations: i, defaultBrand: a, defaultMode: o, defaultDensity: s, defaultTypography: c, defaultGlass: l, productName: u, brandInitial: ee, enablePWA: d, toasterPosition: te, tourPageIdFromPath: f, enableWorkspaceTourPermissions: p }) {
255
- let m = J();
256
- N();
257
- let h = m.pathname.startsWith("/devportal") || m.pathname.startsWith("/organizations") || m.pathname.startsWith("/workspaces");
258
- return /* @__PURE__ */ q(g, {
255
+ function Me({ children: e, i18nProductId: t, platformI18nProductId: n, directionMode: r, fallbackTranslations: i, defaultBrand: a, defaultMode: o, defaultDensity: s, defaultTypography: c, defaultGlass: l, productName: u, brandInitial: d, enablePWA: f, toasterPosition: p, tourPageIdFromPath: m, enableWorkspaceTourPermissions: h }) {
256
+ let g = Y();
257
+ P();
258
+ let _ = g.pathname.startsWith("/devportal") || g.pathname.startsWith("/organizations") || g.pathname.startsWith("/workspaces");
259
+ return /* @__PURE__ */ J(v, {
259
260
  defaultBrand: a,
260
261
  defaultMode: o,
261
262
  defaultDensity: s,
262
263
  defaultTypography: c,
263
264
  defaultGlass: l,
264
- children: [/* @__PURE__ */ K(Me, {}), /* @__PURE__ */ K(T, {
265
+ children: [/* @__PURE__ */ q(Ne, {}), /* @__PURE__ */ q(ce, {
265
266
  i18nProductId: t,
266
267
  platformI18nProductId: n,
267
268
  directionMode: r,
268
269
  fallbackTranslations: i,
269
- children: /* @__PURE__ */ K(le, { children: /* @__PURE__ */ K(ie, { children: /* @__PURE__ */ K(ae, {
270
+ children: /* @__PURE__ */ q(le, { children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(S, {
270
271
  workspaceId: null,
271
272
  gateway: "global",
272
273
  defaultEnabled: !0,
273
- children: /* @__PURE__ */ K(y, { children: /* @__PURE__ */ K(b, { children: /* @__PURE__ */ K(_, {
274
+ children: /* @__PURE__ */ q(C, { children: /* @__PURE__ */ q(w, { children: /* @__PURE__ */ q(y, {
274
275
  fallback: null,
275
- children: /* @__PURE__ */ K(F, {
276
- enabled: p && !h,
277
- children: /* @__PURE__ */ K(L, {
278
- requireWorkspace: p,
279
- disabled: h,
280
- getPageIdFromPath: f,
281
- children: /* @__PURE__ */ q(Ee, {
282
- enablePWA: d,
283
- toasterPosition: te,
276
+ children: /* @__PURE__ */ q(I, {
277
+ enabled: h && !_,
278
+ children: /* @__PURE__ */ q(R, {
279
+ requireWorkspace: h,
280
+ disabled: _,
281
+ getPageIdFromPath: m,
282
+ children: /* @__PURE__ */ J(De, {
283
+ enablePWA: f,
284
+ toasterPosition: p,
284
285
  productName: u,
285
- brandInitial: ee,
286
- children: [/* @__PURE__ */ K(Ae, {}), e]
286
+ brandInitial: d,
287
+ children: [/* @__PURE__ */ q(je, {}), e]
287
288
  })
288
289
  })
289
290
  })
@@ -292,9 +293,9 @@ function je({ children: e, i18nProductId: t, platformI18nProductId: n, direction
292
293
  })]
293
294
  });
294
295
  }
295
- function Me() {
296
- let e = J();
297
- return H(() => {
296
+ function Ne() {
297
+ let e = Y();
298
+ return U(() => {
298
299
  e.hash || requestAnimationFrame(() => {
299
300
  window.scrollTo({
300
301
  top: 0,
@@ -312,7 +313,7 @@ function Me() {
312
313
  e.hash
313
314
  ]), null;
314
315
  }
315
- function Ne(e) {
316
+ function Pe(e) {
316
317
  if (e instanceof Error) return e.message;
317
318
  if (typeof e == "string") return e;
318
319
  try {
@@ -321,9 +322,9 @@ function Ne(e) {
321
322
  return String(e);
322
323
  }
323
324
  }
324
- function Pe() {
325
- let e = M(), t = J(), n = W(void 0), r = W(void 0), i = W(null);
326
- return H(() => {
325
+ function Fe() {
326
+ let e = N(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
327
+ return U(() => {
327
328
  let a = `${t.pathname}${t.search}${t.hash}`;
328
329
  if (r.current !== a) return i.current && clearTimeout(i.current), i.current = setTimeout(() => {
329
330
  i.current = null;
@@ -343,7 +344,7 @@ function Pe() {
343
344
  t.hash,
344
345
  t.pathname,
345
346
  t.search
346
- ]), H(() => {
347
+ ]), U(() => {
347
348
  let t = (t) => {
348
349
  e.emit("error.runtime.caught", {
349
350
  message: t.message || "Runtime error",
@@ -353,34 +354,34 @@ function Pe() {
353
354
  errorName: t.error instanceof Error ? t.error.name : void 0
354
355
  });
355
356
  }, n = (t) => {
356
- e.emit("error.unhandledrejection", { reason: Ne(t.reason) });
357
+ e.emit("error.unhandledrejection", { reason: Pe(t.reason) });
357
358
  };
358
359
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
359
360
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
360
361
  };
361
- }, [e]), H(() => {
362
- x((t) => {
362
+ }, [e]), U(() => {
363
+ T((t) => {
363
364
  e.emit("perf.lcp.measured", {
364
365
  metric: "LCP",
365
366
  value: t.value,
366
367
  id: t.id,
367
368
  rating: t.rating
368
369
  });
369
- }), w((t) => {
370
+ }), se((t) => {
370
371
  e.emit("perf.cls.measured", {
371
372
  metric: "CLS",
372
373
  value: t.value,
373
374
  id: t.id,
374
375
  rating: t.rating
375
376
  });
376
- }), C((t) => {
377
+ }), oe((t) => {
377
378
  e.emit("perf.inp.measured", {
378
379
  metric: "INP",
379
380
  value: t.value,
380
381
  id: t.id,
381
382
  rating: t.rating
382
383
  });
383
- }), S((t) => {
384
+ }), ae((t) => {
384
385
  e.emit("perf.ttfb.measured", {
385
386
  metric: "TTFB",
386
387
  value: t.value,
@@ -390,23 +391,23 @@ function Pe() {
390
391
  });
391
392
  }, [e]), null;
392
393
  }
393
- function Fe({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i }) {
394
- let { pathname: a } = J(), o = t(a) || i?.(a) === !0;
395
- return /* @__PURE__ */ q(G, { children: [
396
- /* @__PURE__ */ K(Pe, {}),
397
- r && !o ? /* @__PURE__ */ K(k, { productName: n }) : null,
398
- e.enabled === !1 ? null : /* @__PURE__ */ q(G, { children: [
399
- e.devtools ? /* @__PURE__ */ K(E, { enabled: !0 }) : null,
400
- e.broadcast === !1 ? null : /* @__PURE__ */ K(D, {}),
401
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ K(O, { endpoint: e.backendAudit.endpoint }) : null,
402
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ K(A, {
394
+ function Ie({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i }) {
395
+ let { pathname: a } = Y(), o = t(a) || i?.(a) === !0;
396
+ return /* @__PURE__ */ J(K, { children: [
397
+ /* @__PURE__ */ q(Fe, {}),
398
+ r && !o ? /* @__PURE__ */ q(A, { productName: n }) : null,
399
+ e.enabled === !1 ? null : /* @__PURE__ */ J(K, { children: [
400
+ e.devtools ? /* @__PURE__ */ q(D, { enabled: !0 }) : null,
401
+ e.broadcast === !1 ? null : /* @__PURE__ */ q(O, {}),
402
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ q(k, { endpoint: e.backendAudit.endpoint }) : null,
403
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ q(j, {
403
404
  siteId: e.rybbit.siteId,
404
405
  scriptUrl: e.rybbit.scriptUrl,
405
406
  allowlist: e.rybbit.allowlist,
406
407
  identifyOn: e.rybbit.identifyOn,
407
408
  rename: e.rybbit.rename
408
409
  }) : null,
409
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ K(j, {
410
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(M, {
410
411
  endpoint: e.otel.endpoint,
411
412
  serviceName: e.otel.serviceName ?? `${n}-app`,
412
413
  flushInterval: e.otel.flushInterval
@@ -414,23 +415,25 @@ function Fe({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist
414
415
  ] })
415
416
  ] });
416
417
  }
417
- function Ie({ config: e, children: r, clearAuthStore: i }) {
418
- let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: g = "", domain: v, i18nProductId: ie, platformI18nProductId: ae, rtl: y, gatewayUrls: b, authBridge: x, defaultBrand: S = "default", defaultMode: C, defaultDensity: w, defaultTypography: T, defaultGlass: le, enablePWA: ue = !0, brandInitial: E = o.charAt(0), defaultGateway: D = "workspace", enableSubscriptions: O = !0, fallbackTranslations: k, queryClientOptions: A, toasterPosition: j = "bottom-right", observability: M, privacyConsent: N = !1, consentRouteDenylist: P, tourPageIdFromPath: F, enableWorkspaceTourPermissions: I = !1 } = e, [L] = pe(() => fe({
419
- enabled: y?.enabled,
420
- allowPreview: y?.preview
421
- })), R = U(() => M ?? Q(s, Te()), [M, s]), z = U(() => ({
418
+ function Le({ config: e, children: r, clearAuthStore: i }) {
419
+ let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: v = "", domain: b, i18nProductId: x, platformI18nProductId: S, rtl: C, gatewayUrls: w, authBridge: T, defaultBrand: ae = "default", defaultMode: oe, defaultDensity: se, defaultTypography: ce, defaultGlass: le, enablePWA: E = !0, brandInitial: D = o.charAt(0), defaultGateway: O = "workspace", enableSubscriptions: k = !0, fallbackTranslations: A, queryClientOptions: j, toasterPosition: M = "bottom-right", observability: N, privacyConsent: P = !1, consentRouteDenylist: F, tourPageIdFromPath: I, tourRouteCatalog: L, enableWorkspaceTourPermissions: R = !1 } = e;
420
+ fe(s, L);
421
+ let [z] = pe(() => de({
422
+ enabled: C?.enabled,
423
+ allowPreview: C?.preview
424
+ })), B = W(() => N ?? Ee(s, Te()), [N, s]), V = W(() => ({
422
425
  productName: o,
423
426
  productSlug: s,
424
- brandInitial: E,
425
- tagline: g,
426
- domain: v
427
+ brandInitial: D,
428
+ tagline: v,
429
+ domain: b
427
430
  }), [
428
431
  o,
429
432
  s,
430
- E,
431
- g,
432
- v
433
- ]), B = W(!1), G = W(!!x?.url), J = V((e) => {
433
+ D,
434
+ v,
435
+ b
436
+ ]), K = G(!1), Y = G(!!T?.url), X = H((e) => {
434
437
  if (!e?.force && (() => {
435
438
  try {
436
439
  let e = sessionStorage.getItem("bf-active-profile");
@@ -440,25 +443,25 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
440
443
  } catch {
441
444
  return !1;
442
445
  }
443
- })() || G.current || B.current) return;
444
- B.current = !0, ee(i);
446
+ })() || Y.current || K.current) return;
447
+ K.current = !0, d(i);
445
448
  let n = `${window.location.pathname}${window.location.search}`, r = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(n)}`, a = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
446
449
  if (window.location.pathname.startsWith("/auth/") || t(window.location.pathname) || a) {
447
- B.current = !1;
450
+ K.current = !1;
448
451
  return;
449
452
  }
450
453
  window.location.replace(r);
451
- }, [i]), Y = U(() => ({
452
- globalBaseUrl: b.globalBaseUrl,
453
- ...d()
454
- }), [b.globalBaseUrl]), X = V(async () => u(Y), [Y]), Z = V(async () => {
455
- window.location.pathname.startsWith("/auth/") || await X() || J({ force: !0 });
456
- }, [X, J]), ye = V(async (e) => {
457
- te(e) ? await X() || J({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
458
- }, [X, J]), be = V(async (e) => {
454
+ }, [i]), Z = W(() => ({
455
+ globalBaseUrl: w.globalBaseUrl,
456
+ ...f()
457
+ }), [w.globalBaseUrl]), Q = H(async () => u(Z), [Z]), ye = H(async () => {
458
+ window.location.pathname.startsWith("/auth/") || await Q() || X({ force: !0 });
459
+ }, [Q, X]), be = H(async (e) => {
460
+ p(e) ? await Q() || X({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
461
+ }, [Q, X]), xe = H(async (e) => {
459
462
  let t = await l({
460
463
  gateway: "global",
461
- baseUrl: b.globalBaseUrl,
464
+ baseUrl: w.globalBaseUrl,
462
465
  authToken: "",
463
466
  query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
464
467
  variables: { token: e }
@@ -470,7 +473,7 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
470
473
  refreshToken: n.refreshToken,
471
474
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
472
475
  };
473
- }, [b.globalBaseUrl]), xe = V(() => n("organization"), []), Se = U(() => {
476
+ }, [w.globalBaseUrl]), Se = H(() => n("organization"), []), Ce = W(() => {
474
477
  let e = new _e({
475
478
  queryCache: new ge({ onError: (e) => {
476
479
  a(e);
@@ -484,81 +487,81 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
484
487
  }
485
488
  }),
486
489
  defaultOptions: { queries: {
487
- staleTime: A?.staleTime ?? 300 * 1e3,
488
- retry: A?.retry ?? 2,
489
- refetchOnWindowFocus: A?.refetchOnWindowFocus ?? !1
490
+ staleTime: j?.staleTime ?? 300 * 1e3,
491
+ retry: j?.retry ?? 2,
492
+ refetchOnWindowFocus: j?.refetchOnWindowFocus ?? !1
490
493
  } }
491
494
  });
492
495
  return e;
493
- }, [A]);
494
- return H(() => {
496
+ }, [j]);
497
+ return U(() => {
495
498
  let e = () => {
496
- J({ force: !0 });
499
+ X({ force: !0 });
497
500
  };
498
501
  return window.addEventListener(c, e), () => {
499
502
  window.removeEventListener(c, e);
500
503
  };
501
- }, [J]), H(() => {
502
- let e = h.getInstance();
503
- e.getLogger("shell") || e.getLogger("shell").addTransport(new ne());
504
- }, []), /* @__PURE__ */ K(f, {
505
- value: z,
506
- children: /* @__PURE__ */ K(de, {
504
+ }, [X]), U(() => {
505
+ let e = _.getInstance();
506
+ e.getLogger("shell") || e.getLogger("shell").addTransport(new ee());
507
+ }, []), /* @__PURE__ */ q(m, {
508
+ value: V,
509
+ children: /* @__PURE__ */ q(ue, {
507
510
  appName: s,
508
- appVersion: R.appVersion,
509
- appEnv: R.appEnv,
511
+ appVersion: B.appVersion,
512
+ appEnv: B.appEnv,
510
513
  sourceMfe: s,
511
- children: /* @__PURE__ */ K(_, {
512
- FallbackComponent: re,
513
- children: /* @__PURE__ */ q(me, { children: [/* @__PURE__ */ K(Fe, {
514
- config: R,
514
+ children: /* @__PURE__ */ q(y, {
515
+ FallbackComponent: te,
516
+ children: /* @__PURE__ */ J(me, { children: [/* @__PURE__ */ q(Ie, {
517
+ config: B,
515
518
  productSlug: s,
516
- privacyConsent: N,
517
- consentRouteDenylist: P
518
- }), /* @__PURE__ */ K(ve, {
519
- client: Se,
520
- children: /* @__PURE__ */ K(se, { children: /* @__PURE__ */ K(ce, {
521
- workspaceBaseUrl: b.workspaceBaseUrl,
522
- globalBaseUrl: b.globalBaseUrl,
523
- organizationId: xe,
519
+ privacyConsent: P,
520
+ consentRouteDenylist: F
521
+ }), /* @__PURE__ */ q(ve, {
522
+ client: Ce,
523
+ children: /* @__PURE__ */ q(re, { children: /* @__PURE__ */ q(ie, {
524
+ workspaceBaseUrl: w.workspaceBaseUrl,
525
+ globalBaseUrl: w.globalBaseUrl,
526
+ organizationId: Se,
524
527
  productSlug: s,
525
- defaultGateway: D,
526
- enableSubscriptions: O,
527
- onAuthError: Z,
528
- onNetworkError: ye,
529
- onRefreshToken: X,
530
- children: /* @__PURE__ */ K(p, {
531
- bridgeUrl: x?.url,
532
- bridgeAllowedOrigins: x?.allowedOrigins,
533
- bridgeDebug: x?.debug,
534
- onRefreshToken: be,
528
+ defaultGateway: O,
529
+ enableSubscriptions: k,
530
+ onAuthError: ye,
531
+ onNetworkError: be,
532
+ onRefreshToken: Q,
533
+ children: /* @__PURE__ */ q(h, {
534
+ bridgeUrl: T?.url,
535
+ bridgeAllowedOrigins: T?.allowedOrigins,
536
+ bridgeDebug: T?.debug,
537
+ onRefreshToken: xe,
535
538
  onBridgeReady: () => {
536
- G.current = !1;
539
+ Y.current = !1;
537
540
  },
538
541
  onSessionExpiringSoon: () => {
539
542
  console.warn("[Auth] Session will expire in 5 minutes");
540
543
  },
541
544
  onTokenExpired: () => {
542
- J();
545
+ X();
543
546
  },
544
- children: /* @__PURE__ */ K(m, {
547
+ children: /* @__PURE__ */ q(g, {
545
548
  syncToUrl: !0,
546
- children: /* @__PURE__ */ K(oe, { children: /* @__PURE__ */ K(je, {
547
- i18nProductId: ie,
548
- platformI18nProductId: ae,
549
- directionMode: L,
550
- fallbackTranslations: k,
551
- defaultBrand: S,
552
- defaultMode: C,
553
- defaultDensity: w,
554
- defaultTypography: T,
549
+ children: /* @__PURE__ */ q(ne, { children: /* @__PURE__ */ q(Me, {
550
+ i18nProductId: x,
551
+ platformI18nProductId: S,
552
+ directionMode: z,
553
+ fallbackTranslations: A,
554
+ defaultBrand: ae,
555
+ defaultMode: oe,
556
+ defaultDensity: se,
557
+ defaultTypography: ce,
555
558
  defaultGlass: le,
556
559
  productName: o,
557
- brandInitial: E,
558
- enablePWA: ue,
559
- toasterPosition: j,
560
- tourPageIdFromPath: F,
561
- enableWorkspaceTourPermissions: I,
560
+ brandInitial: D,
561
+ enablePWA: E,
562
+ toasterPosition: M,
563
+ tourPageIdFromPath: I,
564
+ enableWorkspaceTourPermissions: R,
562
565
  children: r
563
566
  }) })
564
567
  })
@@ -570,4 +573,4 @@ function Ie({ config: e, children: r, clearAuthStore: i }) {
570
573
  });
571
574
  }
572
575
  //#endregion
573
- export { Ie as AppShellProvider, Q as resolveAppShellObservabilityConfig };
576
+ export { Le as AppShellProvider, Ee as resolveAppShellObservabilityConfig };