@burdenoff/fe-libs 2026.1114.6 → 2026.1114.8

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.
@@ -7,57 +7,58 @@ import { MultiGatewayProvider as c } from "./shell/MultiGatewayProvider.js";
7
7
  import { useIdentityQueryReset as l } from "./shell/identityQueryReset.js";
8
8
  import { IdentityScopedQueryReset as u } from "./shell/identityScopedQueryReset.js";
9
9
  import { WorkspaceWriteRefusedToastListener as d } from "./shell/WorkspaceWriteRefusedToastListener.js";
10
- import { ActiveContextProvider as f } from "./shell/ActiveContextProvider.js";
11
- import { TourPermissionsBoundary as p } from "../tours/TourPermissionsBoundary.js";
12
- import { ContextManagerProvider as m } from "./shell/ContextManagerProvider.js";
13
- import { ThemeProvider as h } from "./shell/ThemeProvider.js";
14
- import { ProfileI18nBridge as g } from "./shell/ProfileI18nBridge.js";
10
+ import { useShellLabel as f } from "./shell/useShellLabel.js";
11
+ import { ActiveContextProvider as p } from "./shell/ActiveContextProvider.js";
12
+ import { TourPermissionsBoundary as m } from "../tours/TourPermissionsBoundary.js";
13
+ import { ContextManagerProvider as h } from "./shell/ContextManagerProvider.js";
14
+ import { ThemeProvider as g } from "./shell/ThemeProvider.js";
15
+ import { ProfileI18nBridge as _ } from "./shell/ProfileI18nBridge.js";
15
16
  import { resolveBrowserDirectionMode as ee } from "./shell/directionMode.js";
16
- import { ProfileGeographyBridge as te } from "./shell/ProfileGeographyBridge.js";
17
- import { FeatureFlagsProvider as _ } from "./shell/FeatureFlagsProvider.js";
18
- import { GlobalUiProvider as v } from "./shell/GlobalUiProvider.js";
19
- import { ShellUiProvider as y } from "./shell/ShellUiProvider.js";
20
- import { FeatureFlagProvider as ne } from "../feature-flags/FeatureFlagProvider.js";
21
- import { TourInitializer as b } from "../tours/TourInitializer.js";
22
- import { TourPlayerProvider as x } from "../tours/TourPlayerProvider.js";
23
- import { ToursProvider as S, useToursContext as C } from "../tours/ToursContext.js";
24
- import { tourRouteBootstrap as re } from "../tours/routeBootstrap.js";
25
- import { BUILDMYIQ_RYBBIT_EVENTS as w } from "../events/buildmyiq.js";
26
- import { GGNOMAD_RYBBIT_EVENTS as T } from "../events/ggnomad.js";
17
+ import { ProfileGeographyBridge as v } from "./shell/ProfileGeographyBridge.js";
18
+ import { FeatureFlagsProvider as y } from "./shell/FeatureFlagsProvider.js";
19
+ import { GlobalUiProvider as b } from "./shell/GlobalUiProvider.js";
20
+ import { ShellUiProvider as te } from "./shell/ShellUiProvider.js";
21
+ import { FeatureFlagProvider as x } from "../feature-flags/FeatureFlagProvider.js";
22
+ import { TourInitializer as S } from "../tours/TourInitializer.js";
23
+ import { TourPlayerProvider as C } from "../tours/TourPlayerProvider.js";
24
+ import { ToursProvider as ne, useToursContext as w } from "../tours/ToursContext.js";
25
+ import { tourRouteBootstrap as T } from "../tours/routeBootstrap.js";
26
+ import { BUILDMYIQ_RYBBIT_EVENTS as E } from "../events/buildmyiq.js";
27
+ import { GGNOMAD_RYBBIT_EVENTS as re } from "../events/ggnomad.js";
27
28
  import { ErrorFallback as ie } from "../components/ErrorFallback.js";
28
- import { TIMECAMPUS_RYBBIT_EVENTS as E } from "../events/timecampus.js";
29
- import { THECULTUREPOST_RYBBIT_EVENTS as ae } from "../events/theculturepost.js";
30
- import { FLUIDGRIDS_RYBBIT_EVENTS as D } from "../events/fluidgrids.js";
29
+ import { TIMECAMPUS_RYBBIT_EVENTS as ae } from "../events/timecampus.js";
30
+ import { THECULTUREPOST_RYBBIT_EVENTS as D } from "../events/theculturepost.js";
31
+ import { FLUIDGRIDS_RYBBIT_EVENTS as oe } from "../events/fluidgrids.js";
31
32
  import { DevtoolsSink as O } from "../events/sinks/DevtoolsSink.js";
32
33
  import { BroadcastChannelSink as k } from "../events/sinks/BroadcastChannelSink.js";
33
34
  import { BackendAuditSink as A } from "../events/sinks/BackendAuditSink.js";
34
- import { OtelBrowserSink as oe } from "../events/sinks/OtelBrowserSink.js";
35
- import { emitProductSlug as se, legacyProductSlug as j } from "../config/productSlug.js";
35
+ import { OtelBrowserSink as j } from "../events/sinks/OtelBrowserSink.js";
36
+ import { emitProductSlug as se, legacyProductSlug as M } from "../config/productSlug.js";
36
37
  import { setAssistantProductId as ce } from "../assistant/productContext.js";
37
- import { PWAInstallBanner as M } from "../components/PWAInstallBanner.js";
38
- import { DesktopUpdateToast as N } from "../components/DesktopUpdateToast.js";
39
- import { EventBusProvider as le, useEventBus as ue } from "../../shared-events.js";
40
- import { AnalyticsConsentBanner as de, DEFAULT_RYBBIT_ALLOWLIST as fe, RybbitSink as pe } from "../events/sinks/RybbitSink.js";
41
- import { SEMANTICFED_ANALYTICS_ROUTES as me, SEMANTICFED_RYBBIT_EVENTS as P } from "../events/semanticfed.js";
42
- import { COMRADECIRCLE_ANALYTICS_ROUTES as he, COMRADECIRCLE_RYBBIT_EVENTS as F } from "../events/comradecircle.js";
38
+ import { PWAInstallBanner as le } from "../components/PWAInstallBanner.js";
39
+ import { DesktopUpdateToast as ue } from "../components/DesktopUpdateToast.js";
40
+ import { EventBusProvider as de, useEventBus as fe } from "../../shared-events.js";
41
+ import { AnalyticsConsentBanner as pe, DEFAULT_RYBBIT_ALLOWLIST as me, RybbitSink as he } from "../events/sinks/RybbitSink.js";
42
+ import { SEMANTICFED_ANALYTICS_ROUTES as N, SEMANTICFED_RYBBIT_EVENTS as ge } from "../events/semanticfed.js";
43
+ import { COMRADECIRCLE_ANALYTICS_ROUTES as P, COMRADECIRCLE_RYBBIT_EVENTS as F } from "../events/comradecircle.js";
43
44
  import { ATHELETEBRIDGE_ANALYTICS_ROUTES as I, ATHELETEBRIDGE_RYBBIT_EVENTS as L } from "../events/atheletebridge.js";
44
- import { attemptTokenRefresh as ge, clearAuthSessionStorage as _e, getSharedTokenRefreshRefs as ve, isAuthNetworkError as ye } from "../utils/authErrorHandling.js";
45
- import { SESSION_EXPIRED_EVENT as R, graphqlFetch as be } from "../graphql/fetch.js";
46
- import { AppShellContextProvider as xe } from "./shell/AppShellContext.js";
45
+ import { attemptTokenRefresh as _e, clearAuthSessionStorage as ve, getSharedTokenRefreshRefs as ye, isAuthNetworkError as be } from "../utils/authErrorHandling.js";
46
+ import { SESSION_EXPIRED_EVENT as R, graphqlFetch as xe } from "../graphql/fetch.js";
47
+ import { AppShellContextProvider as Se } from "./shell/AppShellContext.js";
47
48
  import { useReferralAttribution as z } from "../hooks/useReferralAttribution.js";
48
- import { ConsoleTransport as Se } from "../logger/ConsoleTransport.js";
49
- import { LogManager as Ce } from "../logger/LogManager.js";
49
+ import { ConsoleTransport as Ce } from "../logger/ConsoleTransport.js";
50
+ import { LogManager as we } from "../logger/LogManager.js";
50
51
  import { isShellLessRoute as B } from "../config/shellRoutes.js";
51
- import { useRegisterTourRouteCatalog as we } from "../tours/useTourRouteCatalog.js";
52
- import { BACKEND_ERROR_EVENT as V, CONNECTION_STATUS_EVENT as H, dispatchBackendErrorEvent as Te, getBackendErrorToastDedupe as Ee, isBackendErrorDisplay as De, shouldToastBackendError as Oe } from "../utils/backendErrors.js";
53
- import { usePushDeviceRegistration as U } from "../hooks/usePushDeviceRegistration.js";
54
- import { Suspense as W, useCallback as G, useEffect as K, useMemo as q, useRef as J, useState as ke } from "react";
55
- import { Fragment as Ae, jsx as Y, jsxs as X } from "react/jsx-runtime";
56
- import { BrowserRouter as je, useLocation as Z } from "react-router";
57
- import { Toaster as Me, toast as Q } from "sonner";
58
- import { MutationCache as Ne, QueryCache as Pe, QueryClient as Fe, QueryClientProvider as Ie } from "@tanstack/react-query";
52
+ import { useRegisterTourRouteCatalog as Te } from "../tours/useTourRouteCatalog.js";
53
+ import { BACKEND_ERROR_EVENT as V, CONNECTION_STATUS_EVENT as H, dispatchBackendErrorEvent as Ee, getBackendErrorToastDedupe as De, isBackendErrorDisplay as Oe, shouldToastBackendError as U } from "../utils/backendErrors.js";
54
+ import { usePushDeviceRegistration as W } from "../hooks/usePushDeviceRegistration.js";
55
+ import { Suspense as ke, useCallback as G, useEffect as K, useMemo as q, useRef as J, useState as Ae } from "react";
56
+ import { Fragment as je, jsx as Y, jsxs as X } from "react/jsx-runtime";
57
+ import { BrowserRouter as Me, useLocation as Z } from "react-router";
58
+ import { Toaster as Ne, toast as Q } from "sonner";
59
+ import { MutationCache as Pe, QueryCache as Fe, QueryClient as Ie, QueryClientProvider as Le } from "@tanstack/react-query";
59
60
  // src/shared/providers/AppShellProvider.tsx
60
- var Le = {
61
+ var Re = {
61
62
  artistrybase: { prod: "cfbecacb6002" },
62
63
  atheletebridge: { prod: "c34c6ead7aa8" },
63
64
  adaptercloud: {},
@@ -86,7 +87,7 @@ var Le = {
86
87
  subscriberbot: {},
87
88
  intelwatchtower: {},
88
89
  kadaikodi: {}
89
- }, Re = [
90
+ }, ze = [
90
91
  "nav.route.changed",
91
92
  "auth.signed_in",
92
93
  "auth.signed_out",
@@ -129,10 +130,10 @@ var Le = {
129
130
  "coolandlovely.wardrobe.item_added",
130
131
  "coolandlovely.search.performed",
131
132
  "vibecontrols.agent.registered",
133
+ ...oe,
134
+ ...E,
132
135
  ...D,
133
- ...w,
134
- ...ae,
135
- ...T,
136
+ ...re,
136
137
  ...L,
137
138
  "vibecontrols.agent.gateway_auth_setup",
138
139
  "vibecontrols.session.created",
@@ -309,7 +310,7 @@ var Le = {
309
310
  "labsofscience.pipeline.run_started",
310
311
  "hookmovies.page.viewed",
311
312
  "headshotmarketing.page.viewed",
312
- ...E,
313
+ ...ae,
313
314
  "kadaikodi.page.viewed",
314
315
  "kadaikodi.discover.viewed",
315
316
  "kadaikodi.discover.searched",
@@ -329,7 +330,7 @@ var Le = {
329
330
  "project.created",
330
331
  "workspace-member.added",
331
332
  "project-member.added"
332
- ], ze = {
333
+ ], Be = {
333
334
  "--success-bg": "var(--color-status-success-bgSubtle)",
334
335
  "--success-border": "var(--color-status-success-border)",
335
336
  "--success-text": "var(--color-status-success-text)",
@@ -343,7 +344,7 @@ var Le = {
343
344
  "--error-border": "var(--color-status-error-border)",
344
345
  "--error-text": "var(--color-status-error-text)"
345
346
  };
346
- function Be(e) {
347
+ function Ve(e) {
347
348
  let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
348
349
  code: e.code,
349
350
  operationName: e.operationName,
@@ -355,13 +356,13 @@ function Be(e) {
355
356
  };
356
357
  console.error("[Burdenoff backend error]", e.message, n);
357
358
  }
358
- function Ve(e) {
359
+ function He(e) {
359
360
  return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
360
361
  }
361
- function He(e, t) {
362
+ function Ue(e, t) {
362
363
  return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
363
364
  }
364
- function Ue() {
365
+ function We() {
365
366
  return {
366
367
  BASE_URL: "/",
367
368
  DEV: !1,
@@ -370,9 +371,9 @@ function Ue() {
370
371
  SSR: !1
371
372
  };
372
373
  }
373
- function We(e, t) {
374
+ function Ge(e, t) {
374
375
  if (!t || t.length === 0 || !e.rybbit) return e;
375
- let n = e.rybbit.allowlist ?? fe, r = [.../* @__PURE__ */ new Set([...n, ...t])];
376
+ let n = e.rybbit.allowlist ?? me, r = [.../* @__PURE__ */ new Set([...n, ...t])];
376
377
  return {
377
378
  ...e,
378
379
  rybbit: {
@@ -381,22 +382,22 @@ function We(e, t) {
381
382
  }
382
383
  };
383
384
  }
384
- var Ge = {
385
+ var Ke = {
385
386
  comradecircle: {
386
- routes: he,
387
+ routes: P,
387
388
  events: F
388
389
  },
389
390
  semanticfed: {
390
- routes: me,
391
- events: P
391
+ routes: N,
392
+ events: ge
392
393
  },
393
394
  atheletebridge: {
394
395
  routes: I,
395
396
  events: L
396
397
  }
397
398
  };
398
- function Ke(e, t) {
399
- let n = Ve(t.VITE_DEPLOY_ENV ?? t.MODE), r = He(t, n), i = Le[e] ?? Le[j(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Ge[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
399
+ function qe(e, t) {
400
+ let n = He(t.VITE_DEPLOY_ENV ?? t.MODE), r = Ue(t, n), i = Re[e] ?? Re[M(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Ke[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
400
401
  return {
401
402
  enabled: r,
402
403
  appVersion: t.VITE_APP_VERSION || "0.0.0",
@@ -409,7 +410,7 @@ function Ke(e, t) {
409
410
  scriptUrl: t.VITE_RYBBIT_SCRIPT_URL,
410
411
  eventEndpoint: s ? "https://app.rybbit.io/api/track" : void 0,
411
412
  routeTemplates: s?.routes,
412
- allowlist: s ? [...s.events] : Re,
413
+ allowlist: s ? [...s.events] : ze,
413
414
  identifyOn: "auth.signed_in",
414
415
  rename: { "nav.route.changed": "pageview" }
415
416
  },
@@ -424,8 +425,8 @@ function Ke(e, t) {
424
425
  }
425
426
  };
426
427
  }
427
- function qe({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
428
- let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = C(), l = G((e, t) => e.steps?.[t], []), u = G((e) => {
428
+ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
429
+ let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = w(), l = G((e, t) => e.steps?.[t], []), u = G((e) => {
429
430
  a(e.id, "started"), s("TOUR_STARTED", e.id);
430
431
  }, [s, a]), f = G((e) => {
431
432
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
@@ -456,7 +457,7 @@ function qe({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
456
457
  o,
457
458
  s
458
459
  ]);
459
- return /* @__PURE__ */ X(x, {
460
+ return /* @__PURE__ */ X(C, {
460
461
  scopeKey: c,
461
462
  onTourStart: u,
462
463
  onTourComplete: f,
@@ -464,21 +465,21 @@ function qe({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
464
465
  onStepChange: m,
465
466
  onStepComplete: h,
466
467
  children: [
467
- /* @__PURE__ */ Y(b, {}),
468
+ /* @__PURE__ */ Y(S, {}),
468
469
  e,
469
- /* @__PURE__ */ Y(Je, {}),
470
+ /* @__PURE__ */ Y(Ye, {}),
470
471
  /* @__PURE__ */ Y(d, {}),
471
- /* @__PURE__ */ Y(Xe, {}),
472
- /* @__PURE__ */ Y(Me, {
472
+ /* @__PURE__ */ Y(Ze, {}),
473
+ /* @__PURE__ */ Y(Ne, {
473
474
  position: n,
474
475
  richColors: !0,
475
476
  closeButton: !0,
476
- style: ze
477
+ style: Be
477
478
  }),
478
- /* @__PURE__ */ Y(N, {}),
479
- t && /* @__PURE__ */ Y(W, {
479
+ /* @__PURE__ */ Y(ue, {}),
480
+ t && /* @__PURE__ */ Y(ke, {
480
481
  fallback: null,
481
- children: /* @__PURE__ */ Y(M, {
482
+ children: /* @__PURE__ */ Y(le, {
482
483
  productName: r,
483
484
  brandInitial: i
484
485
  })
@@ -486,24 +487,27 @@ function qe({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
486
487
  ]
487
488
  });
488
489
  }
489
- function Je() {
490
- let e = J(null);
490
+ function Ye() {
491
+ let e = J(null), t = f();
491
492
  return K(() => {
492
- let t = (t) => {
493
- let n = t instanceof CustomEvent && De(t.detail) ? t.detail : null;
494
- if (!Oe(n)) return;
495
- Be(n);
496
- let { key: r, windowMs: i } = Ee(n), a = Date.now(), o = e.current;
497
- o?.key === r && a - o.shownAt < i || (e.current = {
498
- key: r,
499
- shownAt: a
500
- }, Q.error(n.message, { duration: 7e3 }));
493
+ let n = (n) => {
494
+ let r = n instanceof CustomEvent && Oe(n.detail) ? n.detail : null;
495
+ if (!U(r)) return;
496
+ Ve(r);
497
+ let { key: i, windowMs: a } = De(r), o = Date.now(), s = e.current;
498
+ if (s?.key === i && o - s.shownAt < a) return;
499
+ e.current = {
500
+ key: i,
501
+ shownAt: o
502
+ };
503
+ let c = r.messageKey ? t(r.messageKey, r.message) : r.message;
504
+ Q.error(c, { duration: 7e3 });
501
505
  };
502
- return window.addEventListener(V, t), () => window.removeEventListener(V, t);
503
- }, []), null;
506
+ return window.addEventListener(V, n), () => window.removeEventListener(V, n);
507
+ }, [t]), null;
504
508
  }
505
- var $ = "burdenoff-connection-status", Ye = 1500;
506
- function Xe() {
509
+ var $ = "burdenoff-connection-status", Xe = 1500;
510
+ function Ze() {
507
511
  let e = J(null), t = J(!1);
508
512
  return K(() => {
509
513
  let n = () => {
@@ -514,7 +518,7 @@ function Xe() {
514
518
  }, r = () => {
515
519
  t.current || e.current || (e.current = setTimeout(() => {
516
520
  e.current = null, n();
517
- }, Ye));
521
+ }, Xe));
518
522
  }, i = (n) => {
519
523
  e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Q.success("Back online", {
520
524
  id: $,
@@ -532,51 +536,51 @@ function Xe() {
532
536
  };
533
537
  }, []), null;
534
538
  }
535
- function Ze() {
536
- return U(), null;
539
+ function Qe() {
540
+ return W(), null;
537
541
  }
538
- function Qe({ children: t, i18nProductId: n, platformI18nProductId: r, directionMode: i, fallbackTranslations: a, defaultBrand: o, defaultMode: s, defaultDensity: c, defaultTypography: l, defaultGlass: u, productName: d, brandInitial: f, enablePWA: m, toasterPosition: ee, tourPageIdFromPath: b, enableWorkspaceTourPermissions: x }) {
542
+ function $e({ children: t, i18nProductId: n, platformI18nProductId: r, directionMode: i, fallbackTranslations: a, defaultBrand: o, defaultMode: s, defaultDensity: c, defaultTypography: l, defaultGlass: u, productName: d, brandInitial: f, enablePWA: p, toasterPosition: h, tourPageIdFromPath: ee, enableWorkspaceTourPermissions: S }) {
539
543
  let C = Z();
540
544
  z();
541
- let w = re(C.pathname, !!x), T = /* @__PURE__ */ Y(te, { children: /* @__PURE__ */ Y(_, { children: /* @__PURE__ */ Y(ne, {
545
+ let w = T(C.pathname, !!S), E = /* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(y, { children: /* @__PURE__ */ Y(x, {
542
546
  workspaceId: null,
543
547
  gateway: "global",
544
548
  defaultEnabled: !0,
545
- children: /* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(y, { children: /* @__PURE__ */ Y(e, {
549
+ children: /* @__PURE__ */ Y(b, { children: /* @__PURE__ */ Y(te, { children: /* @__PURE__ */ Y(e, {
546
550
  fallback: null,
547
- children: /* @__PURE__ */ Y(p, {
551
+ children: /* @__PURE__ */ Y(m, {
548
552
  enabled: w.workspacePermissions,
549
- children: /* @__PURE__ */ Y(S, {
553
+ children: /* @__PURE__ */ Y(ne, {
550
554
  requireWorkspace: w.requireWorkspace,
551
555
  disabled: w.toursDisabled,
552
- getPageIdFromPath: b,
553
- children: /* @__PURE__ */ X(qe, {
554
- enablePWA: m,
555
- toasterPosition: ee,
556
+ getPageIdFromPath: ee,
557
+ children: /* @__PURE__ */ X(Je, {
558
+ enablePWA: p,
559
+ toasterPosition: h,
556
560
  productName: d,
557
561
  brandInitial: f,
558
- children: [/* @__PURE__ */ Y(Ze, {}), t]
562
+ children: [/* @__PURE__ */ Y(Qe, {}), t]
559
563
  })
560
564
  })
561
565
  })
562
566
  }) }) })
563
567
  }) }) });
564
- return /* @__PURE__ */ X(h, {
568
+ return /* @__PURE__ */ X(g, {
565
569
  defaultBrand: o,
566
570
  defaultMode: s,
567
571
  defaultDensity: c,
568
572
  defaultTypography: l,
569
573
  defaultGlass: u,
570
- children: [/* @__PURE__ */ Y($e, {}), /* @__PURE__ */ Y(g, {
574
+ children: [/* @__PURE__ */ Y(et, {}), /* @__PURE__ */ Y(_, {
571
575
  i18nProductId: n,
572
576
  platformI18nProductId: r,
573
577
  directionMode: i,
574
578
  fallbackTranslations: a,
575
- children: T
579
+ children: E
576
580
  })]
577
581
  });
578
582
  }
579
- function $e() {
583
+ function et() {
580
584
  let e = Z();
581
585
  return K(() => {
582
586
  e.hash || requestAnimationFrame(() => {
@@ -596,7 +600,7 @@ function $e() {
596
600
  e.hash
597
601
  ]), null;
598
602
  }
599
- function et(e) {
603
+ function tt(e) {
600
604
  if (e instanceof Error) return e.message;
601
605
  if (typeof e == "string") return e;
602
606
  try {
@@ -605,8 +609,8 @@ function et(e) {
605
609
  return String(e);
606
610
  }
607
611
  }
608
- function tt() {
609
- let e = ue(), a = Z(), o = J(void 0), s = J(void 0), c = J(null);
612
+ function nt() {
613
+ let e = fe(), a = Z(), o = J(void 0), s = J(void 0), c = J(null);
610
614
  return K(() => {
611
615
  let t = `${a.pathname}${a.search}${a.hash}`;
612
616
  if (s.current !== t) return c.current && clearTimeout(c.current), c.current = setTimeout(() => {
@@ -637,7 +641,7 @@ function tt() {
637
641
  errorName: t.error instanceof Error ? t.error.name : void 0
638
642
  });
639
643
  }, n = (t) => {
640
- e.emit("error.unhandledrejection", { reason: et(t.reason) });
644
+ e.emit("error.unhandledrejection", { reason: tt(t.reason) });
641
645
  };
642
646
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
643
647
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
@@ -674,19 +678,19 @@ function tt() {
674
678
  });
675
679
  }, [e]), null;
676
680
  }
677
- function nt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, consentRouteDenylist: a, rybbitSkipRoutes: o }) {
681
+ function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, consentRouteDenylist: a, rybbitSkipRoutes: o }) {
678
682
  let { pathname: s } = Z(), c = B(s) || a?.(s) === !0;
679
- return /* @__PURE__ */ X(Ae, { children: [
680
- /* @__PURE__ */ Y(tt, {}),
681
- r && !c ? /* @__PURE__ */ Y(de, {
683
+ return /* @__PURE__ */ X(je, { children: [
684
+ /* @__PURE__ */ Y(nt, {}),
685
+ r && !c ? /* @__PURE__ */ Y(pe, {
682
686
  productName: n,
683
687
  reopenable: i
684
688
  }) : null,
685
- e.enabled === !1 ? null : /* @__PURE__ */ X(Ae, { children: [
689
+ e.enabled === !1 ? null : /* @__PURE__ */ X(je, { children: [
686
690
  e.devtools ? /* @__PURE__ */ Y(O, { enabled: !0 }) : null,
687
691
  e.broadcast === !1 ? null : /* @__PURE__ */ Y(k, {}),
688
692
  e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ Y(A, { endpoint: e.backendAudit.endpoint }) : null,
689
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ Y(pe, {
693
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ Y(he, {
690
694
  siteId: e.rybbit.siteId,
691
695
  scriptUrl: e.rybbit.scriptUrl,
692
696
  eventEndpoint: e.rybbit.eventEndpoint,
@@ -697,7 +701,7 @@ function nt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
697
701
  skipRoutes: o,
698
702
  pathname: s
699
703
  }) : null,
700
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(oe, {
704
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(j, {
701
705
  endpoint: e.otel.endpoint,
702
706
  serviceName: e.otel.serviceName ?? `${t}-app`,
703
707
  flushInterval: e.otel.flushInterval
@@ -705,29 +709,29 @@ function nt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
705
709
  ] })
706
710
  ] });
707
711
  }
708
- function rt({ config: t, children: n, clearAuthStore: r }) {
709
- let { productName: i, productSlug: d = i.toLowerCase().replace(/\s+/g, ""), tagline: p = "", domain: h, i18nProductId: g, platformI18nProductId: te, rtl: _, gatewayUrls: v, authBridge: y, defaultBrand: ne = "default", defaultMode: b, defaultDensity: x, defaultTypography: S, defaultGlass: C, enablePWA: re = !0, brandInitial: w = i.charAt(0), defaultGateway: T = "workspace", enableSubscriptions: E = !0, fallbackTranslations: ae, queryClientOptions: D, toasterPosition: O = "bottom-right", observability: k, privacyConsent: A = !1, privacyConsentReopen: oe = !1, consentRouteDenylist: j, rybbitEvents: M, rybbitSkipRoutes: N, tourPageIdFromPath: ue, tourRouteCatalog: de, enableWorkspaceTourPermissions: fe = !1, workspaceOperationGuard: pe = "off" } = t;
710
- we(d, de), K(() => ce(se(d)), [d]);
711
- let [me] = ke(() => ee({
712
- enabled: _?.enabled,
713
- allowPreview: _?.preview
714
- })), P = q(() => We(k ?? Ke(d, Ue()), M), [
715
- k,
712
+ function it({ config: t, children: n, clearAuthStore: r }) {
713
+ let { productName: i, productSlug: d = i.toLowerCase().replace(/\s+/g, ""), tagline: f = "", domain: m, i18nProductId: g, platformI18nProductId: _, rtl: v, gatewayUrls: y, authBridge: b, defaultBrand: te = "default", defaultMode: x, defaultDensity: S, defaultTypography: C, defaultGlass: ne, enablePWA: w = !0, brandInitial: T = i.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: re = !0, fallbackTranslations: ae, queryClientOptions: D, toasterPosition: oe = "bottom-right", observability: O, privacyConsent: k = !1, privacyConsentReopen: A = !1, consentRouteDenylist: j, rybbitEvents: M, rybbitSkipRoutes: le, tourPageIdFromPath: ue, tourRouteCatalog: fe, enableWorkspaceTourPermissions: pe = !1, workspaceOperationGuard: me = "off" } = t;
714
+ Te(d, fe), K(() => ce(se(d)), [d]);
715
+ let [he] = Ae(() => ee({
716
+ enabled: v?.enabled,
717
+ allowPreview: v?.preview
718
+ })), N = q(() => Ge(O ?? qe(d, We()), M), [
719
+ O,
716
720
  d,
717
721
  M
718
- ]), he = q(() => ({
722
+ ]), ge = q(() => ({
719
723
  productName: i,
720
724
  productSlug: d,
721
- brandInitial: w,
722
- tagline: p,
723
- domain: h
725
+ brandInitial: T,
726
+ tagline: f,
727
+ domain: m
724
728
  }), [
725
729
  i,
726
730
  d,
727
- w,
728
- p,
729
- h
730
- ]), F = J(!1), I = J(!!y?.url), L = G((e) => {
731
+ T,
732
+ f,
733
+ m
734
+ ]), P = J(!1), F = J(!!b?.url), I = G((e) => {
731
735
  if (!e?.force && (() => {
732
736
  try {
733
737
  let e = sessionStorage.getItem("bf-active-profile");
@@ -737,21 +741,21 @@ function rt({ config: t, children: n, clearAuthStore: r }) {
737
741
  } catch {
738
742
  return !1;
739
743
  }
740
- })() || I.current || F.current) return;
741
- F.current = !0, _e(r);
744
+ })() || F.current || P.current) return;
745
+ P.current = !0, ve(r);
742
746
  let t = `${window.location.pathname}${window.location.search}`, n = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(t)}`, i = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
743
- window.location.pathname.startsWith("/auth/") || B(window.location.pathname) || i ? F.current = !1 : window.location.replace(n);
744
- }, [r]), z = q(() => ({
745
- globalBaseUrl: v.globalBaseUrl,
746
- ...ve()
747
- }), [v.globalBaseUrl]), V = G(async () => ge(z), [z]), H = G(async () => {
748
- window.location.pathname.startsWith("/auth/") || await V() || L({ force: !0 });
749
- }, [V, L]), Ee = G(async (e) => {
750
- ye(e) ? await V() || L({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
751
- }, [V, L]), De = G(async (e) => {
752
- let t = await be({
747
+ window.location.pathname.startsWith("/auth/") || B(window.location.pathname) || i ? P.current = !1 : window.location.replace(n);
748
+ }, [r]), L = q(() => ({
749
+ globalBaseUrl: y.globalBaseUrl,
750
+ ...ye()
751
+ }), [y.globalBaseUrl]), z = G(async () => _e(L), [L]), V = G(async () => {
752
+ window.location.pathname.startsWith("/auth/") || await z() || I({ force: !0 });
753
+ }, [z, I]), H = G(async (e) => {
754
+ be(e) ? await z() || I({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
755
+ }, [z, I]), De = G(async (e) => {
756
+ let t = await xe({
753
757
  gateway: "global",
754
- baseUrl: v.globalBaseUrl,
758
+ baseUrl: y.globalBaseUrl,
755
759
  authToken: "",
756
760
  query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
757
761
  variables: { token: e }
@@ -763,17 +767,17 @@ function rt({ config: t, children: n, clearAuthStore: r }) {
763
767
  refreshToken: n.refreshToken,
764
768
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
765
769
  };
766
- }, [v.globalBaseUrl]), Oe = G(() => s("organization"), []), U = q(() => {
767
- let e = new Fe({
768
- queryCache: new Pe({ onError: (e) => {
769
- Te(e);
770
+ }, [y.globalBaseUrl]), Oe = G(() => s("organization"), []), U = q(() => {
771
+ let e = new Ie({
772
+ queryCache: new Fe({ onError: (e) => {
773
+ Ee(e);
770
774
  } }),
771
- mutationCache: new Ne({
775
+ mutationCache: new Pe({
772
776
  onSuccess: () => {
773
777
  e.invalidateQueries();
774
778
  },
775
779
  onError: (e) => {
776
- Te(e);
780
+ Ee(e);
777
781
  }
778
782
  }),
779
783
  defaultOptions: { queries: {
@@ -786,77 +790,77 @@ function rt({ config: t, children: n, clearAuthStore: r }) {
786
790
  }, [D]), W = l(U);
787
791
  return K(() => {
788
792
  let e = () => {
789
- L({ force: !0 });
793
+ I({ force: !0 });
790
794
  };
791
795
  return window.addEventListener(R, e), () => {
792
796
  window.removeEventListener(R, e);
793
797
  };
794
- }, [L]), K(() => {
795
- let e = Ce.getInstance();
796
- e.getLogger("shell") || e.getLogger("shell").addTransport(new Se());
797
- }, []), /* @__PURE__ */ Y(xe, {
798
- value: he,
799
- children: /* @__PURE__ */ Y(le, {
798
+ }, [I]), K(() => {
799
+ let e = we.getInstance();
800
+ e.getLogger("shell") || e.getLogger("shell").addTransport(new Ce());
801
+ }, []), /* @__PURE__ */ Y(Se, {
802
+ value: ge,
803
+ children: /* @__PURE__ */ Y(de, {
800
804
  appName: d,
801
- appVersion: P.appVersion,
802
- appEnv: P.appEnv,
805
+ appVersion: N.appVersion,
806
+ appEnv: N.appEnv,
803
807
  sourceMfe: d,
804
808
  children: /* @__PURE__ */ Y(e, {
805
809
  FallbackComponent: ie,
806
- children: /* @__PURE__ */ X(je, { children: [/* @__PURE__ */ Y(nt, {
807
- config: P,
810
+ children: /* @__PURE__ */ X(Me, { children: [/* @__PURE__ */ Y(rt, {
811
+ config: N,
808
812
  productSlug: d,
809
813
  productName: i,
810
- privacyConsent: A,
811
- privacyConsentReopen: oe,
814
+ privacyConsent: k,
815
+ privacyConsentReopen: A,
812
816
  consentRouteDenylist: j,
813
- rybbitSkipRoutes: N
814
- }), /* @__PURE__ */ Y(Ie, {
817
+ rybbitSkipRoutes: le
818
+ }), /* @__PURE__ */ Y(Le, {
815
819
  client: U,
816
820
  children: /* @__PURE__ */ Y(o, { children: /* @__PURE__ */ Y(c, {
817
- workspaceBaseUrl: v.workspaceBaseUrl,
818
- globalBaseUrl: v.globalBaseUrl,
821
+ workspaceBaseUrl: y.workspaceBaseUrl,
822
+ globalBaseUrl: y.globalBaseUrl,
819
823
  organizationId: Oe,
820
824
  productSlug: d,
821
- defaultGateway: T,
822
- enableSubscriptions: E,
823
- onAuthError: H,
824
- onNetworkError: Ee,
825
- onRefreshToken: V,
826
- workspaceOperationGuard: pe,
825
+ defaultGateway: E,
826
+ enableSubscriptions: re,
827
+ onAuthError: V,
828
+ onNetworkError: H,
829
+ onRefreshToken: z,
830
+ workspaceOperationGuard: me,
827
831
  children: /* @__PURE__ */ X(a, {
828
- bridgeUrl: y?.url,
829
- bridgeAllowedOrigins: y?.allowedOrigins,
830
- bridgeDebug: y?.debug,
832
+ bridgeUrl: b?.url,
833
+ bridgeAllowedOrigins: b?.allowedOrigins,
834
+ bridgeDebug: b?.debug,
831
835
  onRefreshToken: De,
832
836
  onBridgeReady: () => {
833
- I.current = !1;
837
+ F.current = !1;
834
838
  },
835
839
  onSessionExpiringSoon: () => {
836
840
  console.warn("[Auth] Session will expire in 5 minutes");
837
841
  },
838
842
  onTokenExpired: () => {
839
- L();
843
+ I();
840
844
  },
841
845
  onBeforeIdentityChange: W.onBeforeIdentityChange,
842
- children: [/* @__PURE__ */ Y(u, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(f, {
846
+ children: [/* @__PURE__ */ Y(u, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(p, {
843
847
  syncToUrl: !0,
844
- children: /* @__PURE__ */ Y(m, { children: /* @__PURE__ */ Y(Qe, {
848
+ children: /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y($e, {
845
849
  i18nProductId: g,
846
- platformI18nProductId: te,
847
- directionMode: me,
850
+ platformI18nProductId: _,
851
+ directionMode: he,
848
852
  fallbackTranslations: ae,
849
- defaultBrand: ne,
850
- defaultMode: b,
851
- defaultDensity: x,
852
- defaultTypography: S,
853
- defaultGlass: C,
853
+ defaultBrand: te,
854
+ defaultMode: x,
855
+ defaultDensity: S,
856
+ defaultTypography: C,
857
+ defaultGlass: ne,
854
858
  productName: i,
855
- brandInitial: w,
856
- enablePWA: re,
857
- toasterPosition: O,
859
+ brandInitial: T,
860
+ enablePWA: w,
861
+ toasterPosition: oe,
858
862
  tourPageIdFromPath: ue,
859
- enableWorkspaceTourPermissions: fe,
863
+ enableWorkspaceTourPermissions: pe,
860
864
  children: n
861
865
  }) })
862
866
  })]
@@ -867,4 +871,4 @@ function rt({ config: t, children: n, clearAuthStore: r }) {
867
871
  })
868
872
  });
869
873
  }
870
- export { rt as AppShellProvider, ze as RICH_TOAST_TOKEN_STYLE, Ke as resolveAppShellObservabilityConfig, We as withShellRybbitEvents };
874
+ export { it as AppShellProvider, Be as RICH_TOAST_TOKEN_STYLE, qe as resolveAppShellObservabilityConfig, Ge as withShellRybbitEvents };