@burdenoff/fe-libs 2026.1119.9 → 2026.1120.2

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.
@@ -14,55 +14,56 @@ import { ContextManagerProvider as te } from "./shell/ContextManagerProvider.js"
14
14
  import { ThemeProvider as g } from "./shell/ThemeProvider.js";
15
15
  import { ProfileI18nBridge as _ } from "./shell/ProfileI18nBridge.js";
16
16
  import { ThemedSelectProvider as v } from "../../ui/themed-select-context.js";
17
+ import { GlassEmptyStatesProvider as y } from "../../ui/glass-empty-states.js";
17
18
  import { resolveBrowserDirectionMode as ne } from "./shell/directionMode.js";
18
19
  import { ProfileGeographyBridge as re } from "./shell/ProfileGeographyBridge.js";
19
20
  import { FeatureFlagsProvider as ie } from "./shell/FeatureFlagsProvider.js";
20
- import { GlobalUiProvider as y } from "./shell/GlobalUiProvider.js";
21
- import { ShellUiProvider as ae } from "./shell/ShellUiProvider.js";
22
- import { FeatureFlagProvider as oe } from "../feature-flags/FeatureFlagProvider.js";
21
+ import { GlobalUiProvider as ae } from "./shell/GlobalUiProvider.js";
22
+ import { ShellUiProvider as oe } from "./shell/ShellUiProvider.js";
23
+ import { FeatureFlagProvider as se } from "../feature-flags/FeatureFlagProvider.js";
23
24
  import { TourInitializer as b } from "../tours/TourInitializer.js";
24
25
  import { TourPlayerProvider as x } from "../tours/TourPlayerProvider.js";
25
- import { ToursProvider as se, useToursContext as S } from "../tours/ToursContext.js";
26
- import { tourRouteBootstrap as C } from "../tours/routeBootstrap.js";
27
- import { ErrorFallback as w } from "../components/ErrorFallback.js";
28
- import { BUILDMYIQ_RYBBIT_EVENTS as T } from "../events/buildmyiq.js";
29
- import { GGNOMAD_RYBBIT_EVENTS as E } from "../events/ggnomad.js";
30
- import { emitProductSlug as D, legacyProductSlug as ce } from "../config/productSlug.js";
31
- import { TIMECAMPUS_RYBBIT_EVENTS as O } from "../events/timecampus.js";
32
- import { THECULTUREPOST_RYBBIT_EVENTS as le } from "../events/theculturepost.js";
33
- import { FLUIDGRIDS_RYBBIT_EVENTS as k } from "../events/fluidgrids.js";
34
- import { DevtoolsSink as ue } from "../events/sinks/DevtoolsSink.js";
35
- import { BroadcastChannelSink as de } from "../events/sinks/BroadcastChannelSink.js";
36
- import { BackendAuditSink as fe } from "../events/sinks/BackendAuditSink.js";
37
- import { OtelBrowserSink as pe } from "../events/sinks/OtelBrowserSink.js";
38
- import { WebVitalsSink as A } from "../events/sinks/WebVitalsSink.js";
39
- import { setAssistantProductId as me } from "../assistant/productContext.js";
40
- import { PWAInstallBanner as he } from "../components/PWAInstallBanner.js";
41
- import { DesktopUpdateToast as ge } from "../components/DesktopUpdateToast.js";
42
- import { EventBusProvider as _e, useEventBus as ve } from "../../shared-events.js";
43
- import { getGatewayUrl as ye } from "../../shared-config.js";
44
- import { shouldMountWebVitalsSink as be } from "../rum/mount.js";
45
- import { AnalyticsConsentBanner as xe, DEFAULT_RYBBIT_ALLOWLIST as Se, RybbitSink as j } from "../events/sinks/RybbitSink.js";
46
- import { SEMANTICFED_ANALYTICS_ROUTES as M, SEMANTICFED_RYBBIT_EVENTS as N } from "../events/semanticfed.js";
47
- import { COMRADECIRCLE_ANALYTICS_ROUTES as P, COMRADECIRCLE_RYBBIT_EVENTS as F } from "../events/comradecircle.js";
48
- import { ATHELETEBRIDGE_ANALYTICS_ROUTES as I, ATHELETEBRIDGE_RYBBIT_EVENTS as L } from "../events/atheletebridge.js";
26
+ import { ToursProvider as S, useToursContext as C } from "../tours/ToursContext.js";
27
+ import { tourRouteBootstrap as ce } from "../tours/routeBootstrap.js";
28
+ import { ErrorFallback as le } from "../components/ErrorFallback.js";
29
+ import { BUILDMYIQ_RYBBIT_EVENTS as w } from "../events/buildmyiq.js";
30
+ import { GGNOMAD_RYBBIT_EVENTS as T } from "../events/ggnomad.js";
31
+ import { emitProductSlug as E, legacyProductSlug as D } from "../config/productSlug.js";
32
+ import { TIMECAMPUS_RYBBIT_EVENTS as ue } from "../events/timecampus.js";
33
+ import { THECULTUREPOST_RYBBIT_EVENTS as O } from "../events/theculturepost.js";
34
+ import { FLUIDGRIDS_RYBBIT_EVENTS as de } from "../events/fluidgrids.js";
35
+ import { DevtoolsSink as fe } from "../events/sinks/DevtoolsSink.js";
36
+ import { BroadcastChannelSink as pe } from "../events/sinks/BroadcastChannelSink.js";
37
+ import { BackendAuditSink as me } from "../events/sinks/BackendAuditSink.js";
38
+ import { OtelBrowserSink as k } from "../events/sinks/OtelBrowserSink.js";
39
+ import { WebVitalsSink as he } from "../events/sinks/WebVitalsSink.js";
40
+ import { setAssistantProductId as ge } from "../assistant/productContext.js";
41
+ import { PWAInstallBanner as _e } from "../components/PWAInstallBanner.js";
42
+ import { DesktopUpdateToast as ve } from "../components/DesktopUpdateToast.js";
43
+ import { EventBusProvider as ye, useEventBus as be } from "../../shared-events.js";
44
+ import { getGatewayUrl as xe } from "../../shared-config.js";
45
+ import { shouldMountWebVitalsSink as Se } from "../rum/mount.js";
46
+ import { AnalyticsConsentBanner as A, DEFAULT_RYBBIT_ALLOWLIST as j, RybbitSink as M } from "../events/sinks/RybbitSink.js";
47
+ import { SEMANTICFED_ANALYTICS_ROUTES as N, SEMANTICFED_RYBBIT_EVENTS as P } from "../events/semanticfed.js";
48
+ import { COMRADECIRCLE_ANALYTICS_ROUTES as F, COMRADECIRCLE_RYBBIT_EVENTS as I } from "../events/comradecircle.js";
49
+ import { ATHELETEBRIDGE_ANALYTICS_ROUTES as L, ATHELETEBRIDGE_RYBBIT_EVENTS as R } from "../events/atheletebridge.js";
49
50
  import { attemptTokenRefresh as Ce, clearAuthSessionStorage as we, getSharedTokenRefreshRefs as Te, isAuthNetworkError as Ee } from "../utils/authErrorHandling.js";
50
- import { SESSION_EXPIRED_EVENT as R, getStoredAuthToken as De, graphqlFetch as Oe } from "../graphql/fetch.js";
51
- import { AppShellContextProvider as ke } from "./shell/AppShellContext.js";
51
+ import { SESSION_EXPIRED_EVENT as De, getStoredAuthToken as Oe, graphqlFetch as ke } from "../graphql/fetch.js";
52
+ import { AppShellContextProvider as Ae } from "./shell/AppShellContext.js";
52
53
  import { useReferralAttribution as z } from "../hooks/useReferralAttribution.js";
53
- import { ConsoleTransport as Ae } from "../logger/ConsoleTransport.js";
54
- import { LogManager as je } from "../logger/LogManager.js";
55
- import { isShellLessRoute as Me } from "../config/shellRoutes.js";
56
- import { useRegisterTourRouteCatalog as Ne } from "../tours/useTourRouteCatalog.js";
57
- import { BACKEND_ERROR_EVENT as B, CONNECTION_STATUS_EVENT as V, dispatchBackendErrorEvent as Pe, getBackendErrorToastDedupe as Fe, isBackendErrorDisplay as Ie, shouldToastBackendError as H } from "../utils/backendErrors.js";
58
- import { usePushDeviceRegistration as Le } from "../hooks/usePushDeviceRegistration.js";
59
- import { Suspense as Re, useCallback as U, useEffect as W, useMemo as G, useRef as K, useState as ze } from "react";
54
+ import { ConsoleTransport as je } from "../logger/ConsoleTransport.js";
55
+ import { LogManager as Me } from "../logger/LogManager.js";
56
+ import { isShellLessRoute as Ne } from "../config/shellRoutes.js";
57
+ import { useRegisterTourRouteCatalog as Pe } from "../tours/useTourRouteCatalog.js";
58
+ import { BACKEND_ERROR_EVENT as B, CONNECTION_STATUS_EVENT as V, dispatchBackendErrorEvent as Fe, getBackendErrorToastDedupe as Ie, isBackendErrorDisplay as Le, shouldToastBackendError as H } from "../utils/backendErrors.js";
59
+ import { usePushDeviceRegistration as Re } from "../hooks/usePushDeviceRegistration.js";
60
+ import { Suspense as ze, useCallback as U, useEffect as W, useMemo as G, useRef as K, useState as Be } from "react";
60
61
  import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
61
- import { BrowserRouter as Be, useLocation as X } from "react-router";
62
+ import { BrowserRouter as Ve, useLocation as X } from "react-router";
62
63
  import { Toaster as Z, toast as Q } from "sonner";
63
- import { MutationCache as Ve, QueryCache as He, QueryClient as Ue, QueryClientProvider as We } from "@tanstack/react-query";
64
+ import { MutationCache as He, QueryCache as Ue, QueryClient as We, QueryClientProvider as Ge } from "@tanstack/react-query";
64
65
  // src/shared/providers/AppShellProvider.tsx
65
- var Ge = {
66
+ var Ke = {
66
67
  artistrybase: { prod: "cfbecacb6002" },
67
68
  atheletebridge: { prod: "c34c6ead7aa8" },
68
69
  adaptercloud: {},
@@ -91,7 +92,7 @@ var Ge = {
91
92
  subscriberbot: {},
92
93
  intelwatchtower: {},
93
94
  kadaikodi: {}
94
- }, Ke = [
95
+ }, qe = [
95
96
  "nav.route.changed",
96
97
  "auth.signed_in",
97
98
  "auth.signed_out",
@@ -134,11 +135,11 @@ var Ge = {
134
135
  "coolandlovely.wardrobe.item_added",
135
136
  "coolandlovely.search.performed",
136
137
  "vibecontrols.agent.registered",
137
- ...k,
138
+ ...de,
139
+ ...w,
140
+ ...O,
138
141
  ...T,
139
- ...le,
140
- ...E,
141
- ...L,
142
+ ...R,
142
143
  "vibecontrols.agent.gateway_auth_setup",
143
144
  "vibecontrols.session.created",
144
145
  "vibecontrols.session.started",
@@ -314,7 +315,7 @@ var Ge = {
314
315
  "labsofscience.pipeline.run_started",
315
316
  "hookmovies.page.viewed",
316
317
  "headshotmarketing.page.viewed",
317
- ...O,
318
+ ...ue,
318
319
  "kadaikodi.page.viewed",
319
320
  "kadaikodi.discover.viewed",
320
321
  "kadaikodi.discover.searched",
@@ -334,7 +335,7 @@ var Ge = {
334
335
  "project.created",
335
336
  "workspace-member.added",
336
337
  "project-member.added"
337
- ], qe = {
338
+ ], Je = {
338
339
  "--success-bg": "var(--color-status-success-bgSubtle)",
339
340
  "--success-border": "var(--color-status-success-border)",
340
341
  "--success-text": "var(--color-status-success-text)",
@@ -348,7 +349,7 @@ var Ge = {
348
349
  "--error-border": "var(--color-status-error-border)",
349
350
  "--error-text": "var(--color-status-error-text)"
350
351
  };
351
- function Je(e) {
352
+ function Ye(e) {
352
353
  let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
353
354
  code: e.code,
354
355
  operationName: e.operationName,
@@ -360,13 +361,13 @@ function Je(e) {
360
361
  };
361
362
  console.error("[Burdenoff backend error]", e.message, n);
362
363
  }
363
- function Ye(e) {
364
+ function Xe(e) {
364
365
  return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
365
366
  }
366
- function Xe(e, t) {
367
+ function Ze(e, t) {
367
368
  return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
368
369
  }
369
- function Ze() {
370
+ function Qe() {
370
371
  return {
371
372
  BASE_URL: "/",
372
373
  DEV: !1,
@@ -375,9 +376,9 @@ function Ze() {
375
376
  SSR: !1
376
377
  };
377
378
  }
378
- function Qe(e, t) {
379
+ function $e(e, t) {
379
380
  if (!t || t.length === 0 || !e.rybbit) return e;
380
- let n = e.rybbit.allowlist ?? Se, r = [.../* @__PURE__ */ new Set([...n, ...t])];
381
+ let n = e.rybbit.allowlist ?? j, r = [.../* @__PURE__ */ new Set([...n, ...t])];
381
382
  return {
382
383
  ...e,
383
384
  rybbit: {
@@ -386,22 +387,22 @@ function Qe(e, t) {
386
387
  }
387
388
  };
388
389
  }
389
- var $e = {
390
+ var et = {
390
391
  comradecircle: {
391
- routes: P,
392
- events: F
392
+ routes: F,
393
+ events: I
393
394
  },
394
395
  semanticfed: {
395
- routes: M,
396
- events: N
396
+ routes: N,
397
+ events: P
397
398
  },
398
399
  atheletebridge: {
399
- routes: I,
400
- events: L
400
+ routes: L,
401
+ events: R
401
402
  }
402
403
  };
403
- function et(e, t) {
404
- let n = Ye(t.VITE_DEPLOY_ENV ?? t.MODE), r = Xe(t, n), i = Ge[e] ?? Ge[ce(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = $e[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
404
+ function tt(e, t) {
405
+ let n = Xe(t.VITE_DEPLOY_ENV ?? t.MODE), r = Ze(t, n), i = Ke[e] ?? Ke[D(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = et[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
405
406
  return {
406
407
  enabled: r,
407
408
  appVersion: t.VITE_APP_VERSION || "0.0.0",
@@ -414,7 +415,7 @@ function et(e, t) {
414
415
  scriptUrl: t.VITE_RYBBIT_SCRIPT_URL,
415
416
  eventEndpoint: s ? "https://app.rybbit.io/api/track" : void 0,
416
417
  routeTemplates: s?.routes,
417
- allowlist: s ? [...s.events] : Ke,
418
+ allowlist: s ? [...s.events] : qe,
418
419
  identifyOn: "auth.signed_in",
419
420
  rename: { "nav.route.changed": "pageview" }
420
421
  },
@@ -429,8 +430,8 @@ function et(e, t) {
429
430
  }
430
431
  };
431
432
  }
432
- function tt({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
433
- let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = S(), l = U((e, t) => e.steps?.[t], []), u = U((e) => {
433
+ function nt({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
434
+ let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = C(), l = U((e, t) => e.steps?.[t], []), u = U((e) => {
434
435
  a(e.id, "started"), s("TOUR_STARTED", e.id);
435
436
  }, [s, a]), d = U((e) => {
436
437
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
@@ -471,19 +472,19 @@ function tt({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
471
472
  children: [
472
473
  /* @__PURE__ */ J(b, {}),
473
474
  e,
474
- /* @__PURE__ */ J(nt, {}),
475
+ /* @__PURE__ */ J(rt, {}),
475
476
  /* @__PURE__ */ J(p, {}),
476
- /* @__PURE__ */ J(it, {}),
477
+ /* @__PURE__ */ J(at, {}),
477
478
  /* @__PURE__ */ J(Z, {
478
479
  position: n,
479
480
  richColors: !0,
480
481
  closeButton: !0,
481
- style: qe
482
+ style: Je
482
483
  }),
483
- /* @__PURE__ */ J(ge, {}),
484
- t && /* @__PURE__ */ J(Re, {
484
+ /* @__PURE__ */ J(ve, {}),
485
+ t && /* @__PURE__ */ J(ze, {
485
486
  fallback: null,
486
- children: /* @__PURE__ */ J(he, {
487
+ children: /* @__PURE__ */ J(_e, {
487
488
  productName: r,
488
489
  brandInitial: i
489
490
  })
@@ -491,14 +492,14 @@ function tt({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
491
492
  ]
492
493
  });
493
494
  }
494
- function nt() {
495
+ function rt() {
495
496
  let e = K(null), t = m();
496
497
  return W(() => {
497
498
  let n = (n) => {
498
- let r = n instanceof CustomEvent && Ie(n.detail) ? n.detail : null;
499
+ let r = n instanceof CustomEvent && Le(n.detail) ? n.detail : null;
499
500
  if (!H(r)) return;
500
- Je(r);
501
- let { key: i, windowMs: a } = Fe(r), o = Date.now(), s = e.current;
501
+ Ye(r);
502
+ let { key: i, windowMs: a } = Ie(r), o = Date.now(), s = e.current;
502
503
  if (s?.key === i && o - s.shownAt < a) return;
503
504
  e.current = {
504
505
  key: i,
@@ -510,8 +511,8 @@ function nt() {
510
511
  return window.addEventListener(B, n), () => window.removeEventListener(B, n);
511
512
  }, [t]), null;
512
513
  }
513
- var $ = "burdenoff-connection-status", rt = 1500;
514
- function it() {
514
+ var $ = "burdenoff-connection-status", it = 1500;
515
+ function at() {
515
516
  let e = K(null), t = K(!1);
516
517
  return W(() => {
517
518
  let n = () => {
@@ -522,7 +523,7 @@ function it() {
522
523
  }, r = () => {
523
524
  t.current || e.current || (e.current = setTimeout(() => {
524
525
  e.current = null, n();
525
- }, rt));
526
+ }, it));
526
527
  }, i = (n) => {
527
528
  e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Q.success("Back online", {
528
529
  id: $,
@@ -540,30 +541,30 @@ function it() {
540
541
  };
541
542
  }, []), null;
542
543
  }
543
- function at() {
544
- return Le(), null;
544
+ function ot() {
545
+ return Re(), null;
545
546
  }
546
- function ot({ children: t, i18nProductId: n, platformI18nProductId: r, directionMode: i, fallbackTranslations: a, defaultBrand: o, defaultMode: s, defaultDensity: c, defaultTypography: l, defaultGlass: u, paletteAppearance: d, defaultPalette: f, defaultDarkDepth: p, productName: m, brandInitial: h, enablePWA: te, toasterPosition: ne, tourPageIdFromPath: b, enableWorkspaceTourPermissions: x, themedNativeControls: S, responsiveDisplaySettings: w }) {
547
+ function st({ children: t, i18nProductId: n, platformI18nProductId: r, directionMode: i, fallbackTranslations: a, defaultBrand: o, defaultMode: s, defaultDensity: c, defaultTypography: l, defaultGlass: u, paletteAppearance: d, defaultPalette: f, defaultDarkDepth: p, productName: m, brandInitial: h, enablePWA: te, toasterPosition: ne, tourPageIdFromPath: b, enableWorkspaceTourPermissions: x, themedNativeControls: C, responsiveDisplaySettings: le, glassEmptyStates: w }) {
547
548
  let T = X();
548
549
  z();
549
- let E = C(T.pathname, !!x), D = /* @__PURE__ */ J(re, { children: /* @__PURE__ */ J(ie, { children: /* @__PURE__ */ J(oe, {
550
+ let E = ce(T.pathname, !!x), D = /* @__PURE__ */ J(re, { children: /* @__PURE__ */ J(ie, { children: /* @__PURE__ */ J(se, {
550
551
  workspaceId: null,
551
552
  gateway: "global",
552
553
  defaultEnabled: !0,
553
- children: /* @__PURE__ */ J(y, { children: /* @__PURE__ */ J(ae, { children: /* @__PURE__ */ J(e, {
554
+ children: /* @__PURE__ */ J(ae, { children: /* @__PURE__ */ J(oe, { children: /* @__PURE__ */ J(e, {
554
555
  fallback: null,
555
556
  children: /* @__PURE__ */ J(ee, {
556
557
  enabled: E.workspacePermissions,
557
- children: /* @__PURE__ */ J(se, {
558
+ children: /* @__PURE__ */ J(S, {
558
559
  requireWorkspace: E.requireWorkspace,
559
560
  disabled: E.toursDisabled,
560
561
  getPageIdFromPath: b,
561
- children: /* @__PURE__ */ Y(tt, {
562
+ children: /* @__PURE__ */ Y(nt, {
562
563
  enablePWA: te,
563
564
  toasterPosition: ne,
564
565
  productName: m,
565
566
  brandInitial: h,
566
- children: [/* @__PURE__ */ J(at, {}), t]
567
+ children: [/* @__PURE__ */ J(ot, {}), t]
567
568
  })
568
569
  })
569
570
  })
@@ -575,24 +576,27 @@ function ot({ children: t, i18nProductId: n, platformI18nProductId: r, direction
575
576
  defaultDensity: c,
576
577
  defaultTypography: l,
577
578
  defaultGlass: u,
578
- themedNativeControls: S,
579
- responsiveDisplaySettings: w,
579
+ themedNativeControls: C,
580
+ responsiveDisplaySettings: le,
580
581
  paletteAppearance: d,
581
582
  defaultPalette: f,
582
583
  defaultDarkDepth: p,
583
- children: [/* @__PURE__ */ J(st, {}), /* @__PURE__ */ J(_, {
584
+ children: [/* @__PURE__ */ J(ct, {}), /* @__PURE__ */ J(_, {
584
585
  i18nProductId: n,
585
586
  platformI18nProductId: r,
586
587
  directionMode: i,
587
588
  fallbackTranslations: a,
588
589
  children: /* @__PURE__ */ J(v, {
589
- enabled: S,
590
- children: D
590
+ enabled: C,
591
+ children: /* @__PURE__ */ J(y, {
592
+ enabled: w,
593
+ children: D
594
+ })
591
595
  })
592
596
  })]
593
597
  });
594
598
  }
595
- function st() {
599
+ function ct() {
596
600
  let e = X();
597
601
  return W(() => {
598
602
  e.hash || requestAnimationFrame(() => {
@@ -612,7 +616,7 @@ function st() {
612
616
  e.hash
613
617
  ]), null;
614
618
  }
615
- function ct(e) {
619
+ function lt(e) {
616
620
  if (e instanceof Error) return e.message;
617
621
  if (typeof e == "string") return e;
618
622
  try {
@@ -621,8 +625,8 @@ function ct(e) {
621
625
  return String(e);
622
626
  }
623
627
  }
624
- function lt() {
625
- let e = ve(), o = X(), s = K(void 0), c = K(void 0), l = K(null);
628
+ function ut() {
629
+ let e = be(), o = X(), s = K(void 0), c = K(void 0), l = K(null);
626
630
  return W(() => {
627
631
  let t = `${o.pathname}${o.search}${o.hash}`;
628
632
  if (c.current !== t) return l.current && clearTimeout(l.current), l.current = setTimeout(() => {
@@ -653,7 +657,7 @@ function lt() {
653
657
  errorName: t.error instanceof Error ? t.error.name : void 0
654
658
  });
655
659
  }, n = (t) => {
656
- e.emit("error.unhandledrejection", { reason: ct(t.reason) });
660
+ e.emit("error.unhandledrejection", { reason: lt(t.reason) });
657
661
  };
658
662
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
659
663
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
@@ -669,24 +673,24 @@ function lt() {
669
673
  i((t) => e.emit("perf.lcp.measured", o(t, "LCP"))), t((t) => e.emit("perf.cls.measured", o(t, "CLS"))), r((t) => e.emit("perf.inp.measured", o(t, "INP"))), a((t) => e.emit("perf.ttfb.measured", o(t, "TTFB"))), n((t) => e.emit("perf.fcp.measured", o(t, "FCP")));
670
674
  }, [e]), null;
671
675
  }
672
- function ut({ register: e }) {
676
+ function dt({ register: e }) {
673
677
  let { getAccessToken: t } = c();
674
678
  return W(() => (e(t), () => e(null)), [t, e]), null;
675
679
  }
676
- function dt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s, globalGraphqlUrl: c, getAccessToken: l }) {
677
- let { pathname: u } = X(), d = Me(u) || o?.(u) === !0;
680
+ function ft({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s, globalGraphqlUrl: c, getAccessToken: l }) {
681
+ let { pathname: u } = X(), d = Ne(u) || o?.(u) === !0;
678
682
  return /* @__PURE__ */ Y(q, { children: [
679
- /* @__PURE__ */ J(lt, {}),
680
- r && !d ? /* @__PURE__ */ J(xe, {
683
+ /* @__PURE__ */ J(ut, {}),
684
+ r && !d ? /* @__PURE__ */ J(A, {
681
685
  productName: n,
682
686
  reopenable: i,
683
687
  placement: a
684
688
  }) : null,
685
689
  e.enabled === !1 ? null : /* @__PURE__ */ Y(q, { children: [
686
- e.devtools ? /* @__PURE__ */ J(ue, { enabled: !0 }) : null,
687
- e.broadcast === !1 ? null : /* @__PURE__ */ J(de, {}),
688
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ J(fe, { endpoint: e.backendAudit.endpoint }) : null,
689
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ J(j, {
690
+ e.devtools ? /* @__PURE__ */ J(fe, { enabled: !0 }) : null,
691
+ e.broadcast === !1 ? null : /* @__PURE__ */ J(pe, {}),
692
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ J(me, { endpoint: e.backendAudit.endpoint }) : null,
693
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ J(M, {
690
694
  siteId: e.rybbit.siteId,
691
695
  scriptUrl: e.rybbit.scriptUrl,
692
696
  eventEndpoint: e.rybbit.eventEndpoint,
@@ -697,13 +701,13 @@ function dt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
697
701
  skipRoutes: s,
698
702
  pathname: u
699
703
  }) : null,
700
- be(e) ? /* @__PURE__ */ J(A, {
701
- product: D(t),
704
+ Se(e) ? /* @__PURE__ */ J(he, {
705
+ product: E(t),
702
706
  endpoint: e.rum?.endpoint || c,
703
707
  getAccessToken: l,
704
708
  config: e.rum
705
709
  }) : null,
706
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ J(pe, {
710
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ J(k, {
707
711
  endpoint: e.otel.endpoint,
708
712
  serviceName: e.otel.serviceName ?? `${t}-app`,
709
713
  flushInterval: e.otel.flushInterval
@@ -711,17 +715,17 @@ function dt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
711
715
  ] })
712
716
  ] });
713
717
  }
714
- function ft({ config: t, children: n, clearAuthStore: r }) {
715
- let { productName: i, productSlug: a = i.toLowerCase().replace(/\s+/g, ""), tagline: c = "", domain: p, i18nProductId: m, platformI18nProductId: ee, rtl: g, gatewayUrls: _, authBridge: v, defaultBrand: re = "default", defaultMode: ie, defaultDensity: y, defaultTypography: ae, defaultGlass: oe, paletteAppearance: b = !1, defaultPalette: x, defaultDarkDepth: se, enablePWA: S = !0, brandInitial: C = i.charAt(0), defaultGateway: T = "workspace", enableSubscriptions: E = !0, fallbackTranslations: ce, queryClientOptions: O, toasterPosition: le = "bottom-right", observability: k, privacyConsent: ue = !1, privacyConsentReopen: de = !1, privacyConsentPlacement: fe = "start", consentRouteDenylist: pe, rybbitEvents: A, rybbitSkipRoutes: he, tourPageIdFromPath: ge, tourRouteCatalog: ve, enableWorkspaceTourPermissions: be = !1, workspaceOperationGuard: xe = "off", themedNativeControls: Se = !1, responsiveDisplaySettings: j = !1 } = t;
716
- Ne(a, ve), W(() => me(D(a)), [a]);
717
- let [M] = ze(() => ne({
718
+ function pt({ config: t, children: n, clearAuthStore: r }) {
719
+ let { productName: i, productSlug: a = i.toLowerCase().replace(/\s+/g, ""), tagline: c = "", domain: p, i18nProductId: m, platformI18nProductId: ee, rtl: g, gatewayUrls: _, authBridge: v, defaultBrand: y = "default", defaultMode: re, defaultDensity: ie, defaultTypography: ae, defaultGlass: oe, paletteAppearance: se = !1, defaultPalette: b, defaultDarkDepth: x, enablePWA: S = !0, brandInitial: C = i.charAt(0), defaultGateway: ce = "workspace", enableSubscriptions: w = !0, fallbackTranslations: T, queryClientOptions: D, toasterPosition: ue = "bottom-right", observability: O, privacyConsent: de = !1, privacyConsentReopen: fe = !1, privacyConsentPlacement: pe = "start", consentRouteDenylist: me, rybbitEvents: k, rybbitSkipRoutes: he, tourPageIdFromPath: _e, tourRouteCatalog: ve, enableWorkspaceTourPermissions: be = !1, workspaceOperationGuard: Se = "off", themedNativeControls: A = !1, responsiveDisplaySettings: j = !1, glassEmptyStates: M = !1 } = t;
720
+ Pe(a, ve), W(() => ge(E(a)), [a]);
721
+ let [N] = Be(() => ne({
718
722
  enabled: g?.enabled,
719
723
  allowPreview: g?.preview
720
- })), N = G(() => Qe(k ?? et(a, Ze()), A), [
721
- k,
724
+ })), P = G(() => $e(O ?? tt(a, Qe()), k), [
725
+ O,
722
726
  a,
723
- A
724
- ]), P = G(() => ({
727
+ k
728
+ ]), F = G(() => ({
725
729
  productName: i,
726
730
  productSlug: a,
727
731
  brandInitial: C,
@@ -733,7 +737,7 @@ function ft({ config: t, children: n, clearAuthStore: r }) {
733
737
  C,
734
738
  c,
735
739
  p
736
- ]), F = K(!1), I = K(!!v?.url), L = U((e) => {
740
+ ]), I = K(!1), L = K(!!v?.url), R = U((e) => {
737
741
  if (!e?.force && (() => {
738
742
  try {
739
743
  let e = sessionStorage.getItem("bf-active-profile");
@@ -743,19 +747,19 @@ function ft({ config: t, children: n, clearAuthStore: r }) {
743
747
  } catch {
744
748
  return !1;
745
749
  }
746
- })() || I.current || F.current) return;
747
- F.current = !0, we(r);
750
+ })() || L.current || I.current) return;
751
+ I.current = !0, we(r);
748
752
  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);
749
- window.location.pathname.startsWith("/auth/") || Me(window.location.pathname) || i ? F.current = !1 : window.location.replace(n);
753
+ window.location.pathname.startsWith("/auth/") || Ne(window.location.pathname) || i ? I.current = !1 : window.location.replace(n);
750
754
  }, [r]), z = G(() => ({
751
755
  globalBaseUrl: _.globalBaseUrl,
752
756
  ...Te()
753
757
  }), [_.globalBaseUrl]), B = U(async () => Ce(z), [z]), V = U(async () => {
754
- window.location.pathname.startsWith("/auth/") || await B() || L({ force: !0 });
755
- }, [B, L]), Fe = U(async (e) => {
756
- Ee(e) ? await B() || L({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
757
- }, [B, L]), Ie = U(async (e) => {
758
- let t = await Oe({
758
+ window.location.pathname.startsWith("/auth/") || await B() || R({ force: !0 });
759
+ }, [B, R]), Ie = U(async (e) => {
760
+ Ee(e) ? await B() || R({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
761
+ }, [B, R]), Le = U(async (e) => {
762
+ let t = await ke({
759
763
  gateway: "global",
760
764
  baseUrl: _.globalBaseUrl,
761
765
  authToken: "",
@@ -769,113 +773,114 @@ function ft({ config: t, children: n, clearAuthStore: r }) {
769
773
  refreshToken: n.refreshToken,
770
774
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
771
775
  };
772
- }, [_.globalBaseUrl]), H = K(null), Le = U((e) => {
776
+ }, [_.globalBaseUrl]), H = K(null), Re = U((e) => {
773
777
  H.current = e;
774
- }, []), Re = U(() => {
778
+ }, []), ze = U(() => {
775
779
  let e = H.current;
776
- return e ? e() : De();
777
- }, []), q = G(() => ye(_.globalBaseUrl, "global"), [_.globalBaseUrl]), X = U(() => l("organization"), []), Z = G(() => {
778
- let e = new Ue({
779
- queryCache: new He({ onError: (e) => {
780
- Pe(e);
780
+ return e ? e() : Oe();
781
+ }, []), q = G(() => xe(_.globalBaseUrl, "global"), [_.globalBaseUrl]), X = U(() => l("organization"), []), Z = G(() => {
782
+ let e = new We({
783
+ queryCache: new Ue({ onError: (e) => {
784
+ Fe(e);
781
785
  } }),
782
- mutationCache: new Ve({
786
+ mutationCache: new He({
783
787
  onSuccess: () => {
784
788
  e.invalidateQueries();
785
789
  },
786
790
  onError: (e) => {
787
- Pe(e);
791
+ Fe(e);
788
792
  }
789
793
  }),
790
794
  defaultOptions: { queries: {
791
- staleTime: O?.staleTime ?? 3e5,
792
- retry: O?.retry ?? 2,
793
- refetchOnWindowFocus: O?.refetchOnWindowFocus ?? !1
795
+ staleTime: D?.staleTime ?? 3e5,
796
+ retry: D?.retry ?? 2,
797
+ refetchOnWindowFocus: D?.refetchOnWindowFocus ?? !1
794
798
  } }
795
799
  });
796
800
  return e;
797
- }, [O]), Q = d(Z);
801
+ }, [D]), Q = d(Z);
798
802
  return W(() => {
799
803
  let e = () => {
800
- L({ force: !0 });
804
+ R({ force: !0 });
801
805
  };
802
- return window.addEventListener(R, e), () => {
803
- window.removeEventListener(R, e);
806
+ return window.addEventListener(De, e), () => {
807
+ window.removeEventListener(De, e);
804
808
  };
805
- }, [L]), W(() => {
806
- let e = je.getInstance();
807
- e.getLogger("shell") || e.getLogger("shell").addTransport(new Ae());
808
- }, []), /* @__PURE__ */ J(ke, {
809
- value: P,
810
- children: /* @__PURE__ */ J(_e, {
809
+ }, [R]), W(() => {
810
+ let e = Me.getInstance();
811
+ e.getLogger("shell") || e.getLogger("shell").addTransport(new je());
812
+ }, []), /* @__PURE__ */ J(Ae, {
813
+ value: F,
814
+ children: /* @__PURE__ */ J(ye, {
811
815
  appName: a,
812
- appVersion: N.appVersion,
813
- appEnv: N.appEnv,
816
+ appVersion: P.appVersion,
817
+ appEnv: P.appEnv,
814
818
  sourceMfe: a,
815
819
  children: /* @__PURE__ */ J(e, {
816
- FallbackComponent: w,
817
- children: /* @__PURE__ */ Y(Be, { children: [/* @__PURE__ */ J(dt, {
818
- config: N,
820
+ FallbackComponent: le,
821
+ children: /* @__PURE__ */ Y(Ve, { children: [/* @__PURE__ */ J(ft, {
822
+ config: P,
819
823
  productSlug: a,
820
824
  globalGraphqlUrl: q,
821
- getAccessToken: Re,
825
+ getAccessToken: ze,
822
826
  productName: i,
823
- privacyConsent: ue,
824
- privacyConsentReopen: de,
825
- privacyConsentPlacement: fe,
826
- consentRouteDenylist: pe,
827
+ privacyConsent: de,
828
+ privacyConsentReopen: fe,
829
+ privacyConsentPlacement: pe,
830
+ consentRouteDenylist: me,
827
831
  rybbitSkipRoutes: he
828
- }), /* @__PURE__ */ J(We, {
832
+ }), /* @__PURE__ */ J(Ge, {
829
833
  client: Z,
830
- children: /* @__PURE__ */ Y(s, { children: [/* @__PURE__ */ J(ut, { register: Le }), /* @__PURE__ */ J(u, {
834
+ children: /* @__PURE__ */ Y(s, { children: [/* @__PURE__ */ J(dt, { register: Re }), /* @__PURE__ */ J(u, {
831
835
  workspaceBaseUrl: _.workspaceBaseUrl,
832
836
  globalBaseUrl: _.globalBaseUrl,
833
837
  organizationId: X,
834
838
  productSlug: a,
835
- defaultGateway: T,
836
- enableSubscriptions: E,
839
+ defaultGateway: ce,
840
+ enableSubscriptions: w,
837
841
  onAuthError: V,
838
- onNetworkError: Fe,
842
+ onNetworkError: Ie,
839
843
  onRefreshToken: B,
840
- workspaceOperationGuard: xe,
844
+ workspaceOperationGuard: Se,
841
845
  children: /* @__PURE__ */ Y(o, {
842
846
  bridgeUrl: v?.url,
843
847
  bridgeAllowedOrigins: v?.allowedOrigins,
844
848
  bridgeDebug: v?.debug,
845
- onRefreshToken: Ie,
849
+ onRefreshToken: Le,
846
850
  onBridgeReady: () => {
847
- I.current = !1;
851
+ L.current = !1;
848
852
  },
849
853
  onSessionExpiringSoon: () => {
850
854
  console.warn("[Auth] Session will expire in 5 minutes");
851
855
  },
852
856
  onTokenExpired: () => {
853
- L();
857
+ R();
854
858
  },
855
859
  onBeforeIdentityChange: Q.onBeforeIdentityChange,
856
860
  children: [/* @__PURE__ */ J(f, { announcementsRef: Q.announcementsRef }), /* @__PURE__ */ J(h, {
857
861
  syncToUrl: !0,
858
- children: /* @__PURE__ */ J(te, { children: /* @__PURE__ */ J(ot, {
862
+ children: /* @__PURE__ */ J(te, { children: /* @__PURE__ */ J(st, {
859
863
  i18nProductId: m,
860
864
  platformI18nProductId: ee,
861
- directionMode: M,
862
- fallbackTranslations: ce,
863
- defaultBrand: re,
864
- defaultMode: ie,
865
- defaultDensity: y,
865
+ directionMode: N,
866
+ fallbackTranslations: T,
867
+ defaultBrand: y,
868
+ defaultMode: re,
869
+ defaultDensity: ie,
866
870
  defaultTypography: ae,
867
871
  defaultGlass: oe,
868
- paletteAppearance: b,
869
- defaultPalette: x,
870
- defaultDarkDepth: se,
872
+ paletteAppearance: se,
873
+ defaultPalette: b,
874
+ defaultDarkDepth: x,
871
875
  productName: i,
872
876
  brandInitial: C,
873
877
  enablePWA: S,
874
- toasterPosition: le,
875
- tourPageIdFromPath: ge,
878
+ toasterPosition: ue,
879
+ tourPageIdFromPath: _e,
876
880
  enableWorkspaceTourPermissions: be,
877
- themedNativeControls: Se,
881
+ themedNativeControls: A,
878
882
  responsiveDisplaySettings: j,
883
+ glassEmptyStates: M,
879
884
  children: n
880
885
  }) })
881
886
  })]
@@ -886,4 +891,4 @@ function ft({ config: t, children: n, clearAuthStore: r }) {
886
891
  })
887
892
  });
888
893
  }
889
- export { ft as AppShellProvider, qe as RICH_TOAST_TOKEN_STYLE, et as resolveAppShellObservabilityConfig, Qe as withShellRybbitEvents };
894
+ export { pt as AppShellProvider, Je as RICH_TOAST_TOKEN_STYLE, tt as resolveAppShellObservabilityConfig, $e as withShellRybbitEvents };