@burdenoff/fe-libs 2026.1023.6 → 2026.1023.7

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.
@@ -1,49 +1,50 @@
1
- import { legacyProductSlug as e } from "../config/productSlug.js";
2
- import { isShellLessRoute as t } from "../config/shellRoutes.js";
3
- import { readActiveContextValueWithUrlPrecedence as n } from "./shell/ActiveContextStorage.js";
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
- import { SESSION_EXPIRED_EVENT as c, graphqlFetch as l } from "../graphql/fetch.js";
6
- import { attemptTokenRefresh as u, clearAuthSessionStorage as ee, getSharedTokenRefreshRefs as te, isAuthNetworkError as d } 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 { AuthTokenProvider as re } from "./shell/AuthTokenProvider.js";
14
- import { ErrorFallback as ie } from "../components/ErrorFallback.js";
15
- import { m as _ } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
16
- import { PWAInstallBanner as v } from "../components/PWAInstallBanner.js";
17
- import { FeatureFlagsProvider as y } from "./shell/FeatureFlagsProvider.js";
18
- import { FeatureFlagProvider as b } from "../feature-flags/FeatureFlagProvider.js";
19
- import { GlobalUiProvider as x } from "./shell/GlobalUiProvider.js";
20
- import { ShellUiProvider as S } from "./shell/ShellUiProvider.js";
21
- import { ContextManagerProvider as ae } from "./shell/ContextManagerProvider.js";
22
- import { MultiGatewayProvider as oe } from "./shell/MultiGatewayProvider.js";
23
- import { G as C, Q as se, j as ce, w as le } from "../../node_modules/web-vitals/dist/web-vitals.js";
1
+ import { emitProductSlug as e, legacyProductSlug as t } from "../config/productSlug.js";
2
+ import { isShellLessRoute as n } from "../config/shellRoutes.js";
3
+ import { readActiveContextValueWithUrlPrecedence as r } from "./shell/ActiveContextStorage.js";
4
+ import { BACKEND_ERROR_EVENT as i, CONNECTION_STATUS_EVENT as a, dispatchBackendErrorEvent as o, isBackendErrorDisplay as s, shouldToastBackendError as c } from "../utils/backendErrors.js";
5
+ import { SESSION_EXPIRED_EVENT as l, graphqlFetch as u } from "../graphql/fetch.js";
6
+ import { attemptTokenRefresh as d, clearAuthSessionStorage as f, getSharedTokenRefreshRefs as p, isAuthNetworkError as m } from "../utils/authErrorHandling.js";
7
+ import { AppShellContextProvider as h } from "./shell/AppShellContext.js";
8
+ import { AuthProvider as g } from "./shell/AuthProvider.js";
9
+ import { ActiveContextProvider as _ } from "./shell/ActiveContextProvider.js";
10
+ import { LogManager as ee } from "../logger/LogManager.js";
11
+ import { ConsoleTransport as te } from "../logger/ConsoleTransport.js";
12
+ import { ThemeProvider as v } from "./shell/ThemeProvider.js";
13
+ import { AuthTokenProvider as ne } from "./shell/AuthTokenProvider.js";
14
+ import { ErrorFallback as re } from "../components/ErrorFallback.js";
15
+ import { m as ie } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
16
+ import { PWAInstallBanner as y } from "../components/PWAInstallBanner.js";
17
+ import { FeatureFlagsProvider as ae } from "./shell/FeatureFlagsProvider.js";
18
+ import { FeatureFlagProvider as oe } from "../feature-flags/FeatureFlagProvider.js";
19
+ import { GlobalUiProvider as b } from "./shell/GlobalUiProvider.js";
20
+ import { ShellUiProvider as x } from "./shell/ShellUiProvider.js";
21
+ import { ContextManagerProvider as se } from "./shell/ContextManagerProvider.js";
22
+ import { MultiGatewayProvider as ce } from "./shell/MultiGatewayProvider.js";
23
+ import { G as S, Q as C, j as w, w as le } from "../../node_modules/web-vitals/dist/web-vitals.js";
24
24
  import { ProfileI18nBridge as ue } from "./shell/ProfileI18nBridge.js";
25
- import { ProfileGeographyBridge as w } from "./shell/ProfileGeographyBridge.js";
26
- import { DesktopUpdateToast as de } from "../components/DesktopUpdateToast.js";
25
+ import { ProfileGeographyBridge as de } from "./shell/ProfileGeographyBridge.js";
26
+ import { DesktopUpdateToast as fe } from "../components/DesktopUpdateToast.js";
27
27
  import { FLUIDGRIDS_RYBBIT_EVENTS as T } from "../events/fluidgrids.js";
28
28
  import { DevtoolsSink as E } from "../events/sinks/DevtoolsSink.js";
29
29
  import { BroadcastChannelSink as D } from "../events/sinks/BroadcastChannelSink.js";
30
30
  import { BackendAuditSink as O } from "../events/sinks/BackendAuditSink.js";
31
31
  import { AnalyticsConsentBanner as k, DEFAULT_RYBBIT_ALLOWLIST as A, RybbitSink as j } from "../events/sinks/RybbitSink.js";
32
32
  import { OtelBrowserSink as M } from "../events/sinks/OtelBrowserSink.js";
33
- import { EventBusProvider as fe, useEventBus as N } from "../../shared-events.js";
33
+ import { EventBusProvider as pe, useEventBus as N } from "../../shared-events.js";
34
34
  import { useReferralAttribution as P } from "../hooks/useReferralAttribution.js";
35
35
  import { usePushDeviceRegistration as F } from "../hooks/usePushDeviceRegistration.js";
36
36
  import { TourPermissionsBoundary as I } from "../tours/TourPermissionsBoundary.js";
37
- import { resolveBrowserDirectionMode as pe } from "./shell/directionMode.js";
37
+ import { resolveBrowserDirectionMode as me } from "./shell/directionMode.js";
38
38
  import { TourPlayerProvider as L } from "../tours/TourPlayerProvider.js";
39
39
  import { ToursProvider as R, useToursContext as z } from "../tours/ToursContext.js";
40
40
  import { TourInitializer as B } from "../tours/TourInitializer.js";
41
- import { useRegisterTourRouteCatalog as me } from "../tours/useTourRouteCatalog.js";
42
- import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G, useState as he } from "react";
41
+ import { setAssistantProductId as he } from "../assistant/productContext.js";
42
+ import { useRegisterTourRouteCatalog as ge } from "../tours/useTourRouteCatalog.js";
43
+ import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G, useState as _e } from "react";
43
44
  import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
44
- import { BrowserRouter as ge, useLocation as Y } from "react-router";
45
+ import { BrowserRouter as ve, useLocation as Y } from "react-router";
45
46
  import { Toaster as X, toast as Z } from "sonner";
46
- import { MutationCache as _e, QueryCache as ve, QueryClient as ye, QueryClientProvider as be } from "@tanstack/react-query";
47
+ import { MutationCache as ye, QueryCache as be, QueryClient as xe, QueryClientProvider as Se } from "@tanstack/react-query";
47
48
  //#region src/shared/providers/AppShellProvider.tsx
48
49
  var Q = {
49
50
  artistrybase: { prod: "cfbecacb6002" },
@@ -71,7 +72,7 @@ var Q = {
71
72
  subscriberbot: {},
72
73
  intelwatchtower: {},
73
74
  kadaikodi: {}
74
- }, xe = [
75
+ }, Ce = [
75
76
  "nav.route.changed",
76
77
  "auth.signed_in",
77
78
  "auth.signed_out",
@@ -318,7 +319,7 @@ var Q = {
318
319
  "project.created",
319
320
  "workspace-member.added",
320
321
  "project-member.added"
321
- ], Se = {
322
+ ], we = {
322
323
  "--success-bg": "var(--color-status-success-bgSubtle)",
323
324
  "--success-border": "var(--color-status-success-border)",
324
325
  "--success-text": "var(--color-status-success-text)",
@@ -331,8 +332,8 @@ var Q = {
331
332
  "--error-bg": "var(--color-status-error-bgSubtle)",
332
333
  "--error-border": "var(--color-status-error-border)",
333
334
  "--error-text": "var(--color-status-error-text)"
334
- }, Ce = 4e3;
335
- function we(e) {
335
+ }, Te = 4e3;
336
+ function Ee(e) {
336
337
  let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
337
338
  code: e.code,
338
339
  operationName: e.operationName,
@@ -344,13 +345,13 @@ function we(e) {
344
345
  };
345
346
  console.error("[Burdenoff backend error]", e.message, n);
346
347
  }
347
- function Te(e) {
348
+ function De(e) {
348
349
  return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
349
350
  }
350
- function Ee(e, t) {
351
+ function Oe(e, t) {
351
352
  return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
352
353
  }
353
- function De() {
354
+ function ke() {
354
355
  return {
355
356
  BASE_URL: "/",
356
357
  DEV: !1,
@@ -359,7 +360,7 @@ function De() {
359
360
  SSR: !1
360
361
  };
361
362
  }
362
- function Oe(e, t) {
363
+ function Ae(e, t) {
363
364
  if (!t || t.length === 0 || !e.rybbit) return e;
364
365
  let n = e.rybbit.allowlist ?? A, r = [...new Set([...n, ...t])];
365
366
  return {
@@ -370,8 +371,8 @@ function Oe(e, t) {
370
371
  }
371
372
  };
372
373
  }
373
- function ke(t, n) {
374
- let r = Te(n.VITE_DEPLOY_ENV ?? n.MODE), i = Ee(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);
374
+ function je(e, n) {
375
+ let r = De(n.VITE_DEPLOY_ENV ?? n.MODE), i = Oe(n, r), a = Q[e] ?? Q[t(e)], 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);
375
376
  return {
376
377
  enabled: i,
377
378
  appVersion: n.VITE_APP_VERSION || "0.0.0",
@@ -382,14 +383,14 @@ function ke(t, n) {
382
383
  enabled: i && !!s,
383
384
  siteId: s,
384
385
  scriptUrl: n.VITE_RYBBIT_SCRIPT_URL,
385
- allowlist: xe,
386
+ allowlist: Ce,
386
387
  identifyOn: "auth.signed_in",
387
388
  rename: { "nav.route.changed": "pageview" }
388
389
  },
389
390
  otel: {
390
391
  enabled: i && !!n.VITE_OTEL_HTTP_ENDPOINT,
391
392
  endpoint: n.VITE_OTEL_HTTP_ENDPOINT,
392
- serviceName: `${t}-app`
393
+ serviceName: `${e}-app`
393
394
  },
394
395
  backendAudit: {
395
396
  enabled: i && !!c,
@@ -397,7 +398,7 @@ function ke(t, n) {
397
398
  }
398
399
  };
399
400
  }
400
- function Ae({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
401
+ function Me({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
401
402
  let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = z(), l = H((e, t) => e.steps?.[t], []);
402
403
  return /* @__PURE__ */ J(L, {
403
404
  scopeKey: c,
@@ -439,18 +440,18 @@ function Ae({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
439
440
  children: [
440
441
  /* @__PURE__ */ q(B, {}),
441
442
  e,
442
- /* @__PURE__ */ q(je, {}),
443
443
  /* @__PURE__ */ q(Ne, {}),
444
+ /* @__PURE__ */ q(Fe, {}),
444
445
  /* @__PURE__ */ q(X, {
445
446
  position: n,
446
447
  richColors: !0,
447
448
  closeButton: !0,
448
- style: Se
449
+ style: we
449
450
  }),
450
- /* @__PURE__ */ q(de, {}),
451
+ /* @__PURE__ */ q(fe, {}),
451
452
  t && /* @__PURE__ */ q(V, {
452
453
  fallback: null,
453
- children: /* @__PURE__ */ q(v, {
454
+ children: /* @__PURE__ */ q(y, {
454
455
  productName: r,
455
456
  brandInitial: i
456
457
  })
@@ -458,24 +459,24 @@ function Ae({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
458
459
  ]
459
460
  });
460
461
  }
461
- function je() {
462
+ function Ne() {
462
463
  let e = G(null);
463
464
  return U(() => {
464
465
  let t = (t) => {
465
- let n = t instanceof CustomEvent && o(t.detail) ? t.detail : null;
466
- if (!s(n)) return;
467
- we(n);
466
+ let n = t instanceof CustomEvent && s(t.detail) ? t.detail : null;
467
+ if (!c(n)) return;
468
+ Ee(n);
468
469
  let r = `${n.code ?? ""}|${n.message}`, i = Date.now(), a = e.current;
469
- a?.key === r && i - a.shownAt < Ce || (e.current = {
470
+ a?.key === r && i - a.shownAt < Te || (e.current = {
470
471
  key: r,
471
472
  shownAt: i
472
473
  }, Z.error(n.message, { duration: 7e3 }));
473
474
  };
474
- return window.addEventListener(r, t), () => window.removeEventListener(r, t);
475
+ return window.addEventListener(i, t), () => window.removeEventListener(i, t);
475
476
  }, []), null;
476
477
  }
477
- var $ = "burdenoff-connection-status", Me = 1500;
478
- function Ne() {
478
+ var $ = "burdenoff-connection-status", Pe = 1500;
479
+ function Fe() {
479
480
  let e = G(null), t = G(!1);
480
481
  return U(() => {
481
482
  let n = () => {
@@ -486,8 +487,8 @@ function Ne() {
486
487
  }, r = () => {
487
488
  t.current || e.current || (e.current = setTimeout(() => {
488
489
  e.current = null, n();
489
- }, Me));
490
- }, a = (n) => {
490
+ }, Pe));
491
+ }, i = (n) => {
491
492
  if (e.current &&= (clearTimeout(e.current), null), !t.current) {
492
493
  Z.dismiss($);
493
494
  return;
@@ -499,51 +500,51 @@ function Ne() {
499
500
  }, o = (e) => {
500
501
  if (!(e instanceof CustomEvent)) return;
501
502
  let t = e.detail;
502
- t && (t.online ? a(!0) : r());
503
+ t && (t.online ? i(!0) : r());
503
504
  }, s = () => r(), c = () => {
504
505
  e.current &&= (clearTimeout(e.current), null);
505
506
  };
506
- return window.addEventListener(i, o), window.addEventListener("offline", s), window.addEventListener("online", c), () => {
507
- window.removeEventListener(i, o), window.removeEventListener("offline", s), window.removeEventListener("online", c), e.current && clearTimeout(e.current);
507
+ return window.addEventListener(a, o), window.addEventListener("offline", s), window.addEventListener("online", c), () => {
508
+ window.removeEventListener(a, o), window.removeEventListener("offline", s), window.removeEventListener("online", c), e.current && clearTimeout(e.current);
508
509
  };
509
510
  }, []), null;
510
511
  }
511
- function Pe() {
512
+ function Ie() {
512
513
  return F(), null;
513
514
  }
514
- function Fe({ 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: te, toasterPosition: d, tourPageIdFromPath: f, enableWorkspaceTourPermissions: p }) {
515
- let m = Y();
515
+ function Le({ 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 }) {
516
+ let g = Y();
516
517
  P();
517
- let h = m.pathname.startsWith("/devportal") || m.pathname.startsWith("/organizations") || m.pathname.startsWith("/workspaces");
518
- return /* @__PURE__ */ J(g, {
518
+ let _ = g.pathname.startsWith("/devportal") || g.pathname.startsWith("/organizations") || g.pathname.startsWith("/workspaces");
519
+ return /* @__PURE__ */ J(v, {
519
520
  defaultBrand: a,
520
521
  defaultMode: o,
521
522
  defaultDensity: s,
522
523
  defaultTypography: c,
523
524
  defaultGlass: l,
524
- children: [/* @__PURE__ */ q(Ie, {}), /* @__PURE__ */ q(ue, {
525
+ children: [/* @__PURE__ */ q(Re, {}), /* @__PURE__ */ q(ue, {
525
526
  i18nProductId: t,
526
527
  platformI18nProductId: n,
527
528
  directionMode: r,
528
529
  fallbackTranslations: i,
529
- children: /* @__PURE__ */ q(w, { children: /* @__PURE__ */ q(y, { children: /* @__PURE__ */ q(b, {
530
+ children: /* @__PURE__ */ q(de, { children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(oe, {
530
531
  workspaceId: null,
531
532
  gateway: "global",
532
533
  defaultEnabled: !0,
533
- children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(S, { children: /* @__PURE__ */ q(_, {
534
+ children: /* @__PURE__ */ q(b, { children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(ie, {
534
535
  fallback: null,
535
536
  children: /* @__PURE__ */ q(I, {
536
- enabled: p && !h,
537
+ enabled: h && !_,
537
538
  children: /* @__PURE__ */ q(R, {
538
- requireWorkspace: p,
539
- disabled: h,
540
- getPageIdFromPath: f,
541
- children: /* @__PURE__ */ J(Ae, {
542
- enablePWA: te,
543
- toasterPosition: d,
539
+ requireWorkspace: h,
540
+ disabled: _,
541
+ getPageIdFromPath: m,
542
+ children: /* @__PURE__ */ J(Me, {
543
+ enablePWA: f,
544
+ toasterPosition: p,
544
545
  productName: u,
545
- brandInitial: ee,
546
- children: [/* @__PURE__ */ q(Pe, {}), e]
546
+ brandInitial: d,
547
+ children: [/* @__PURE__ */ q(Ie, {}), e]
547
548
  })
548
549
  })
549
550
  })
@@ -552,7 +553,7 @@ function Fe({ children: e, i18nProductId: t, platformI18nProductId: n, direction
552
553
  })]
553
554
  });
554
555
  }
555
- function Ie() {
556
+ function Re() {
556
557
  let e = Y();
557
558
  return U(() => {
558
559
  e.hash || requestAnimationFrame(() => {
@@ -572,7 +573,7 @@ function Ie() {
572
573
  e.hash
573
574
  ]), null;
574
575
  }
575
- function Le(e) {
576
+ function ze(e) {
576
577
  if (e instanceof Error) return e.message;
577
578
  if (typeof e == "string") return e;
578
579
  try {
@@ -581,7 +582,7 @@ function Le(e) {
581
582
  return String(e);
582
583
  }
583
584
  }
584
- function Re() {
585
+ function Be() {
585
586
  let e = N(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
586
587
  return U(() => {
587
588
  let a = `${t.pathname}${t.search}${t.hash}`;
@@ -613,13 +614,13 @@ function Re() {
613
614
  errorName: t.error instanceof Error ? t.error.name : void 0
614
615
  });
615
616
  }, n = (t) => {
616
- e.emit("error.unhandledrejection", { reason: Le(t.reason) });
617
+ e.emit("error.unhandledrejection", { reason: ze(t.reason) });
617
618
  };
618
619
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
619
620
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
620
621
  };
621
622
  }, [e]), U(() => {
622
- C((t) => {
623
+ S((t) => {
623
624
  e.emit("perf.lcp.measured", {
624
625
  metric: "LCP",
625
626
  value: t.value,
@@ -633,14 +634,14 @@ function Re() {
633
634
  id: t.id,
634
635
  rating: t.rating
635
636
  });
636
- }), ce((t) => {
637
+ }), w((t) => {
637
638
  e.emit("perf.inp.measured", {
638
639
  metric: "INP",
639
640
  value: t.value,
640
641
  id: t.id,
641
642
  rating: t.rating
642
643
  });
643
- }), se((t) => {
644
+ }), C((t) => {
644
645
  e.emit("perf.ttfb.measured", {
645
646
  metric: "TTFB",
646
647
  value: t.value,
@@ -650,11 +651,11 @@ function Re() {
650
651
  });
651
652
  }, [e]), null;
652
653
  }
653
- function ze({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist: i, rybbitSkipRoutes: a }) {
654
- let { pathname: o } = Y(), s = t(o) || i?.(o) === !0;
654
+ function Ve({ config: e, productSlug: t, privacyConsent: r, consentRouteDenylist: i, rybbitSkipRoutes: a }) {
655
+ let { pathname: o } = Y(), s = n(o) || i?.(o) === !0;
655
656
  return /* @__PURE__ */ J(K, { children: [
656
- /* @__PURE__ */ q(Re, {}),
657
- r && !s ? /* @__PURE__ */ q(k, { productName: n }) : null,
657
+ /* @__PURE__ */ q(Be, {}),
658
+ r && !s ? /* @__PURE__ */ q(k, { productName: t }) : null,
658
659
  e.enabled === !1 ? null : /* @__PURE__ */ J(K, { children: [
659
660
  e.devtools ? /* @__PURE__ */ q(E, { enabled: !0 }) : null,
660
661
  e.broadcast === !1 ? null : /* @__PURE__ */ q(D, {}),
@@ -670,35 +671,35 @@ function ze({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist
670
671
  }) : null,
671
672
  e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(M, {
672
673
  endpoint: e.otel.endpoint,
673
- serviceName: e.otel.serviceName ?? `${n}-app`,
674
+ serviceName: e.otel.serviceName ?? `${t}-app`,
674
675
  flushInterval: e.otel.flushInterval
675
676
  }) : null
676
677
  ] })
677
678
  ] });
678
679
  }
679
- function Be({ config: e, children: r, clearAuthStore: i }) {
680
- let { productName: o, productSlug: s = o.toLowerCase().replace(/\s+/g, ""), tagline: g = "", domain: v, i18nProductId: y, platformI18nProductId: b, rtl: x, gatewayUrls: S, authBridge: C, defaultBrand: se = "default", defaultMode: ce, defaultDensity: le, defaultTypography: ue, defaultGlass: w, enablePWA: de = !0, brandInitial: T = o.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: D = !0, fallbackTranslations: O, queryClientOptions: k, toasterPosition: A = "bottom-right", observability: j, privacyConsent: M = !1, consentRouteDenylist: N, rybbitEvents: P, rybbitSkipRoutes: F, tourPageIdFromPath: I, tourRouteCatalog: L, enableWorkspaceTourPermissions: R = !1 } = e;
681
- me(s, L);
682
- let [z] = he(() => pe({
683
- enabled: x?.enabled,
684
- allowPreview: x?.preview
685
- })), B = W(() => Oe(j ?? ke(s, De()), P), [
680
+ function He({ config: t, children: i, clearAuthStore: a }) {
681
+ let { productName: s, productSlug: c = s.toLowerCase().replace(/\s+/g, ""), tagline: v = "", domain: y, i18nProductId: ae, platformI18nProductId: oe, rtl: b, gatewayUrls: x, authBridge: S, defaultBrand: C = "default", defaultMode: w, defaultDensity: le, defaultTypography: ue, defaultGlass: de, enablePWA: fe = !0, brandInitial: T = s.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: D = !0, fallbackTranslations: O, queryClientOptions: k, toasterPosition: A = "bottom-right", observability: j, privacyConsent: M = !1, consentRouteDenylist: N, rybbitEvents: P, rybbitSkipRoutes: F, tourPageIdFromPath: I, tourRouteCatalog: L, enableWorkspaceTourPermissions: R = !1 } = t;
682
+ ge(c, L), U(() => he(e(c)), [c]);
683
+ let [z] = _e(() => me({
684
+ enabled: b?.enabled,
685
+ allowPreview: b?.preview
686
+ })), B = W(() => Ae(j ?? je(c, ke()), P), [
686
687
  j,
687
- s,
688
+ c,
688
689
  P
689
690
  ]), V = W(() => ({
690
- productName: o,
691
- productSlug: s,
691
+ productName: s,
692
+ productSlug: c,
692
693
  brandInitial: T,
693
- tagline: g,
694
- domain: v
694
+ tagline: v,
695
+ domain: y
695
696
  }), [
696
- o,
697
697
  s,
698
+ c,
698
699
  T,
699
- g,
700
- v
701
- ]), K = G(!1), Y = G(!!C?.url), X = H((e) => {
700
+ v,
701
+ y
702
+ ]), K = G(!1), Y = G(!!S?.url), X = H((e) => {
702
703
  if (!e?.force && (() => {
703
704
  try {
704
705
  let e = sessionStorage.getItem("bf-active-profile");
@@ -709,24 +710,24 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
709
710
  return !1;
710
711
  }
711
712
  })() || Y.current || K.current) return;
712
- K.current = !0, ee(i);
713
- 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);
714
- if (window.location.pathname.startsWith("/auth/") || t(window.location.pathname) || a) {
713
+ K.current = !0, f(a);
714
+ let t = `${window.location.pathname}${window.location.search}`, r = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(t)}`, i = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
715
+ if (window.location.pathname.startsWith("/auth/") || n(window.location.pathname) || i) {
715
716
  K.current = !1;
716
717
  return;
717
718
  }
718
719
  window.location.replace(r);
719
- }, [i]), Z = W(() => ({
720
- globalBaseUrl: S.globalBaseUrl,
721
- ...te()
722
- }), [S.globalBaseUrl]), Q = H(async () => u(Z), [Z]), xe = H(async () => {
720
+ }, [a]), Z = W(() => ({
721
+ globalBaseUrl: x.globalBaseUrl,
722
+ ...p()
723
+ }), [x.globalBaseUrl]), Q = H(async () => d(Z), [Z]), Ce = H(async () => {
723
724
  window.location.pathname.startsWith("/auth/") || await Q() || X({ force: !0 });
724
- }, [Q, X]), Se = H(async (e) => {
725
- d(e) ? await Q() || X({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
726
- }, [Q, X]), Ce = H(async (e) => {
727
- let t = await l({
725
+ }, [Q, X]), we = H(async (e) => {
726
+ m(e) ? await Q() || X({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
727
+ }, [Q, X]), Te = H(async (e) => {
728
+ let t = await u({
728
729
  gateway: "global",
729
- baseUrl: S.globalBaseUrl,
730
+ baseUrl: x.globalBaseUrl,
730
731
  authToken: "",
731
732
  query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
732
733
  variables: { token: e }
@@ -738,17 +739,17 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
738
739
  refreshToken: n.refreshToken,
739
740
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
740
741
  };
741
- }, [S.globalBaseUrl]), we = H(() => n("organization"), []), Te = W(() => {
742
- let e = new ye({
743
- queryCache: new ve({ onError: (e) => {
744
- a(e);
742
+ }, [x.globalBaseUrl]), Ee = H(() => r("organization"), []), De = W(() => {
743
+ let e = new xe({
744
+ queryCache: new be({ onError: (e) => {
745
+ o(e);
745
746
  } }),
746
- mutationCache: new _e({
747
+ mutationCache: new ye({
747
748
  onSuccess: () => {
748
749
  e.invalidateQueries();
749
750
  },
750
751
  onError: (e) => {
751
- a(e);
752
+ o(e);
752
753
  }
753
754
  }),
754
755
  defaultOptions: { queries: {
@@ -763,44 +764,44 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
763
764
  let e = () => {
764
765
  X({ force: !0 });
765
766
  };
766
- return window.addEventListener(c, e), () => {
767
- window.removeEventListener(c, e);
767
+ return window.addEventListener(l, e), () => {
768
+ window.removeEventListener(l, e);
768
769
  };
769
770
  }, [X]), U(() => {
770
- let e = h.getInstance();
771
- e.getLogger("shell") || e.getLogger("shell").addTransport(new ne());
772
- }, []), /* @__PURE__ */ q(f, {
771
+ let e = ee.getInstance();
772
+ e.getLogger("shell") || e.getLogger("shell").addTransport(new te());
773
+ }, []), /* @__PURE__ */ q(h, {
773
774
  value: V,
774
- children: /* @__PURE__ */ q(fe, {
775
- appName: s,
775
+ children: /* @__PURE__ */ q(pe, {
776
+ appName: c,
776
777
  appVersion: B.appVersion,
777
778
  appEnv: B.appEnv,
778
- sourceMfe: s,
779
- children: /* @__PURE__ */ q(_, {
780
- FallbackComponent: ie,
781
- children: /* @__PURE__ */ J(ge, { children: [/* @__PURE__ */ q(ze, {
779
+ sourceMfe: c,
780
+ children: /* @__PURE__ */ q(ie, {
781
+ FallbackComponent: re,
782
+ children: /* @__PURE__ */ J(ve, { children: [/* @__PURE__ */ q(Ve, {
782
783
  config: B,
783
- productSlug: s,
784
+ productSlug: c,
784
785
  privacyConsent: M,
785
786
  consentRouteDenylist: N,
786
787
  rybbitSkipRoutes: F
787
- }), /* @__PURE__ */ q(be, {
788
- client: Te,
789
- children: /* @__PURE__ */ q(re, { children: /* @__PURE__ */ q(oe, {
790
- workspaceBaseUrl: S.workspaceBaseUrl,
791
- globalBaseUrl: S.globalBaseUrl,
792
- organizationId: we,
793
- productSlug: s,
788
+ }), /* @__PURE__ */ q(Se, {
789
+ client: De,
790
+ children: /* @__PURE__ */ q(ne, { children: /* @__PURE__ */ q(ce, {
791
+ workspaceBaseUrl: x.workspaceBaseUrl,
792
+ globalBaseUrl: x.globalBaseUrl,
793
+ organizationId: Ee,
794
+ productSlug: c,
794
795
  defaultGateway: E,
795
796
  enableSubscriptions: D,
796
- onAuthError: xe,
797
- onNetworkError: Se,
797
+ onAuthError: Ce,
798
+ onNetworkError: we,
798
799
  onRefreshToken: Q,
799
- children: /* @__PURE__ */ q(p, {
800
- bridgeUrl: C?.url,
801
- bridgeAllowedOrigins: C?.allowedOrigins,
802
- bridgeDebug: C?.debug,
803
- onRefreshToken: Ce,
800
+ children: /* @__PURE__ */ q(g, {
801
+ bridgeUrl: S?.url,
802
+ bridgeAllowedOrigins: S?.allowedOrigins,
803
+ bridgeDebug: S?.debug,
804
+ onRefreshToken: Te,
804
805
  onBridgeReady: () => {
805
806
  Y.current = !1;
806
807
  },
@@ -810,25 +811,25 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
810
811
  onTokenExpired: () => {
811
812
  X();
812
813
  },
813
- children: /* @__PURE__ */ q(m, {
814
+ children: /* @__PURE__ */ q(_, {
814
815
  syncToUrl: !0,
815
- children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(Fe, {
816
- i18nProductId: y,
817
- platformI18nProductId: b,
816
+ children: /* @__PURE__ */ q(se, { children: /* @__PURE__ */ q(Le, {
817
+ i18nProductId: ae,
818
+ platformI18nProductId: oe,
818
819
  directionMode: z,
819
820
  fallbackTranslations: O,
820
- defaultBrand: se,
821
- defaultMode: ce,
821
+ defaultBrand: C,
822
+ defaultMode: w,
822
823
  defaultDensity: le,
823
824
  defaultTypography: ue,
824
- defaultGlass: w,
825
- productName: o,
825
+ defaultGlass: de,
826
+ productName: s,
826
827
  brandInitial: T,
827
- enablePWA: de,
828
+ enablePWA: fe,
828
829
  toasterPosition: A,
829
830
  tourPageIdFromPath: I,
830
831
  enableWorkspaceTourPermissions: R,
831
- children: r
832
+ children: i
832
833
  }) })
833
834
  })
834
835
  })
@@ -839,4 +840,4 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
839
840
  });
840
841
  }
841
842
  //#endregion
842
- export { Be as AppShellProvider, ke as resolveAppShellObservabilityConfig };
843
+ export { He as AppShellProvider, je as resolveAppShellObservabilityConfig };