@burdenoff/fe-libs 2026.1115.13 → 2026.1116.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.
Files changed (57) hide show
  1. package/dist/shared/assistant/history/useHistoryRowControls.d.ts +16 -0
  2. package/dist/shared/assistant/history/useHistoryRowControls.js +38 -14
  3. package/dist/shared/assistant/i18nManifest.d.ts +9 -0
  4. package/dist/shared/assistant/i18nManifest.js +9 -0
  5. package/dist/shared/assistant/index.d.ts +2 -0
  6. package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +16 -0
  7. package/dist/shared/assistant/ui/AIAssistantPanel.js +247 -223
  8. package/dist/shared/assistant/ui/AssistantChatArea.js +1355 -1347
  9. package/dist/shared/assistant/ui/AssistantOverlay.d.ts +6 -0
  10. package/dist/shared/assistant/ui/AssistantOverlay.js +4 -2
  11. package/dist/shared/assistant/ui/AssistantPageHost.d.ts +14 -1
  12. package/dist/shared/assistant/ui/AssistantPageHost.js +32 -19
  13. package/dist/shared/assistant/ui/AssistantRenameConversationDialog.d.ts +33 -0
  14. package/dist/shared/assistant/ui/AssistantRenameConversationDialog.js +70 -0
  15. package/dist/shared/assistant/ui/assistantPageBar.d.ts +33 -0
  16. package/dist/shared/assistant/ui/assistantPageBar.js +53 -0
  17. package/dist/shared/assistant/ui/assistantPageLayout.d.ts +20 -0
  18. package/dist/shared/assistant/ui/assistantPageLayout.js +10 -2
  19. package/dist/shared/assistant/ui/assistantPageStart.d.ts +17 -0
  20. package/dist/shared/assistant/ui/assistantPageStart.js +7 -4
  21. package/dist/shared/assistant/ui/compact/AssistantConversationMenu.d.ts +30 -0
  22. package/dist/shared/assistant/ui/compact/AssistantConversationMenu.js +174 -53
  23. package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +19 -0
  24. package/dist/shared/assistant/ui/compact/AssistantPageBar.js +24 -19
  25. package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +2 -0
  26. package/dist/shared/assistant/ui/composer/AssistantComposer.js +347 -340
  27. package/dist/shared/assistant/ui/composer/AssistantDictation.d.ts +5 -0
  28. package/dist/shared/assistant/ui/composer/AssistantDictation.js +41 -40
  29. package/dist/shared/assistant/ui/composer/pageBoxClass.d.ts +28 -1
  30. package/dist/shared/assistant/ui/composer/pageBoxClass.js +17 -1
  31. package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts +14 -4
  32. package/dist/shared/assistant/ui/conversationDeleteDialog.js +7 -6
  33. package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.js +1 -1
  34. package/dist/shared/assistant/ui/voice/LiveWaveform.js +1 -1
  35. package/dist/shared/events/index.d.ts +7 -2
  36. package/dist/shared/events/sinks/OtelBrowserSink.d.ts +5 -0
  37. package/dist/shared/events/sinks/WebVitalsSink.d.ts +25 -0
  38. package/dist/shared/events/sinks/WebVitalsSink.js +51 -0
  39. package/dist/shared/events/sinks/index.d.ts +3 -0
  40. package/dist/shared/events/sinks/index.js +2 -1
  41. package/dist/shared/index.d.ts +1 -0
  42. package/dist/shared/providers/AppShellProvider.d.ts +16 -0
  43. package/dist/shared/providers/AppShellProvider.js +291 -292
  44. package/dist/shared/providers/shell/ObservabilityProvider.d.ts +6 -6
  45. package/dist/shared/rum/context.d.ts +24 -0
  46. package/dist/shared/rum/context.js +40 -0
  47. package/dist/shared/rum/index.d.ts +14 -0
  48. package/dist/shared/rum/mount.d.ts +12 -0
  49. package/dist/shared/rum/mount.js +5 -0
  50. package/dist/shared/rum/reporter.d.ts +22 -0
  51. package/dist/shared/rum/reporter.js +166 -0
  52. package/dist/shared/rum/types.d.ts +56 -0
  53. package/dist/shared-assistant.js +256 -254
  54. package/dist/shared-events.js +29 -28
  55. package/dist/shared.js +78 -74
  56. package/dist/ui/glass-card.d.ts +1 -1
  57. package/package.json +1 -1
@@ -1,64 +1,67 @@
1
1
  import { ErrorBoundary as e } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
2
- import { onCLS as t, onINP as n, onLCP as r, onTTFB as i } from "../../node_modules/web-vitals/dist/web-vitals.js";
3
- import { AuthProvider as a } from "./shell/AuthProvider.js";
4
- import { AuthTokenProvider as o } from "./shell/AuthTokenProvider.js";
5
- import { readActiveContextValueWithUrlPrecedence as s } from "./shell/ActiveContextStorage.js";
6
- import { MultiGatewayProvider as c } from "./shell/MultiGatewayProvider.js";
7
- import { useIdentityQueryReset as l } from "./shell/identityQueryReset.js";
8
- import { IdentityScopedQueryReset as u } from "./shell/identityScopedQueryReset.js";
9
- import { WorkspaceWriteRefusedToastListener as d } from "./shell/WorkspaceWriteRefusedToastListener.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";
16
- import { resolveBrowserDirectionMode as ee } from "./shell/directionMode.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 ne } from "../feature-flags/FeatureFlagProvider.js";
22
- import { TourInitializer as x } from "../tours/TourInitializer.js";
23
- import { TourPlayerProvider as S } from "../tours/TourPlayerProvider.js";
24
- import { ToursProvider as C, 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";
2
+ import { onCLS as t, onFCP as n, onINP as r, onLCP as i, onTTFB as a } from "../../node_modules/web-vitals/dist/web-vitals.js";
3
+ import { AuthProvider as o } from "./shell/AuthProvider.js";
4
+ import { AuthTokenProvider as s, useAuthToken as c } from "./shell/AuthTokenProvider.js";
5
+ import { readActiveContextValueWithUrlPrecedence as l } from "./shell/ActiveContextStorage.js";
6
+ import { MultiGatewayProvider as u } from "./shell/MultiGatewayProvider.js";
7
+ import { useIdentityQueryReset as d } from "./shell/identityQueryReset.js";
8
+ import { IdentityScopedQueryReset as f } from "./shell/identityScopedQueryReset.js";
9
+ import { WorkspaceWriteRefusedToastListener as p } from "./shell/WorkspaceWriteRefusedToastListener.js";
10
+ import { useShellLabel as m } from "./shell/useShellLabel.js";
11
+ import { ActiveContextProvider as h } from "./shell/ActiveContextProvider.js";
12
+ import { TourPermissionsBoundary as g } from "../tours/TourPermissionsBoundary.js";
13
+ import { ContextManagerProvider as _ } from "./shell/ContextManagerProvider.js";
14
+ import { ThemeProvider as v } from "./shell/ThemeProvider.js";
15
+ import { ProfileI18nBridge as y } from "./shell/ProfileI18nBridge.js";
16
+ import { resolveBrowserDirectionMode as b } from "./shell/directionMode.js";
17
+ import { ProfileGeographyBridge as x } from "./shell/ProfileGeographyBridge.js";
18
+ import { FeatureFlagsProvider as ee } from "./shell/FeatureFlagsProvider.js";
19
+ import { GlobalUiProvider as te } from "./shell/GlobalUiProvider.js";
20
+ import { ShellUiProvider as ne } from "./shell/ShellUiProvider.js";
21
+ import { FeatureFlagProvider as re } 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 w, useToursContext as T } from "../tours/ToursContext.js";
25
+ import { tourRouteBootstrap as E } from "../tours/routeBootstrap.js";
28
26
  import { ErrorFallback as ie } from "../components/ErrorFallback.js";
29
- import { TIMECAMPUS_RYBBIT_EVENTS as D } from "../events/timecampus.js";
30
- import { THECULTUREPOST_RYBBIT_EVENTS as O } from "../events/theculturepost.js";
31
- import { FLUIDGRIDS_RYBBIT_EVENTS as ae } from "../events/fluidgrids.js";
32
- import { DevtoolsSink as k } from "../events/sinks/DevtoolsSink.js";
33
- import { BroadcastChannelSink as A } from "../events/sinks/BroadcastChannelSink.js";
34
- import { BackendAuditSink as j } from "../events/sinks/BackendAuditSink.js";
35
- import { OtelBrowserSink as oe } from "../events/sinks/OtelBrowserSink.js";
36
- import { emitProductSlug as se, legacyProductSlug as ce } from "../config/productSlug.js";
37
- import { setAssistantProductId as le } from "../assistant/productContext.js";
38
- import { PWAInstallBanner as M } 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 ge, SEMANTICFED_RYBBIT_EVENTS as N } from "../events/semanticfed.js";
43
- import { COMRADECIRCLE_ANALYTICS_ROUTES as P, COMRADECIRCLE_RYBBIT_EVENTS as F } from "../events/comradecircle.js";
44
- import { ATHELETEBRIDGE_ANALYTICS_ROUTES as I, ATHELETEBRIDGE_RYBBIT_EVENTS as L } from "../events/atheletebridge.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";
48
- import { useReferralAttribution as z } from "../hooks/useReferralAttribution.js";
49
- import { ConsoleTransport as Ce } from "../logger/ConsoleTransport.js";
50
- import { LogManager as we } from "../logger/LogManager.js";
51
- import { isShellLessRoute as B } from "../config/shellRoutes.js";
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 ke } from "../utils/backendErrors.js";
54
- import { usePushDeviceRegistration as U } from "../hooks/usePushDeviceRegistration.js";
55
- import { Suspense as W, 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";
27
+ import { BUILDMYIQ_RYBBIT_EVENTS as D } from "../events/buildmyiq.js";
28
+ import { GGNOMAD_RYBBIT_EVENTS as O } from "../events/ggnomad.js";
29
+ import { emitProductSlug as ae, legacyProductSlug as oe } from "../config/productSlug.js";
30
+ import { TIMECAMPUS_RYBBIT_EVENTS as k } from "../events/timecampus.js";
31
+ import { THECULTUREPOST_RYBBIT_EVENTS as se } from "../events/theculturepost.js";
32
+ import { FLUIDGRIDS_RYBBIT_EVENTS as ce } from "../events/fluidgrids.js";
33
+ import { DevtoolsSink as le } from "../events/sinks/DevtoolsSink.js";
34
+ import { BroadcastChannelSink as ue } from "../events/sinks/BroadcastChannelSink.js";
35
+ import { BackendAuditSink as A } from "../events/sinks/BackendAuditSink.js";
36
+ import { OtelBrowserSink as de } from "../events/sinks/OtelBrowserSink.js";
37
+ import { WebVitalsSink as fe } from "../events/sinks/WebVitalsSink.js";
38
+ import { setAssistantProductId as pe } from "../assistant/productContext.js";
39
+ import { PWAInstallBanner as me } from "../components/PWAInstallBanner.js";
40
+ import { DesktopUpdateToast as he } from "../components/DesktopUpdateToast.js";
41
+ import { EventBusProvider as ge, useEventBus as _e } from "../../shared-events.js";
42
+ import { getGatewayUrl as ve } from "../../shared-config.js";
43
+ import { shouldMountWebVitalsSink as ye } from "../rum/mount.js";
44
+ import { AnalyticsConsentBanner as j, DEFAULT_RYBBIT_ALLOWLIST as M, RybbitSink as N } from "../events/sinks/RybbitSink.js";
45
+ import { SEMANTICFED_ANALYTICS_ROUTES as P, SEMANTICFED_RYBBIT_EVENTS as F } from "../events/semanticfed.js";
46
+ import { COMRADECIRCLE_ANALYTICS_ROUTES as I, COMRADECIRCLE_RYBBIT_EVENTS as L } from "../events/comradecircle.js";
47
+ import { ATHELETEBRIDGE_ANALYTICS_ROUTES as R, ATHELETEBRIDGE_RYBBIT_EVENTS as z } from "../events/atheletebridge.js";
48
+ import { attemptTokenRefresh as be, clearAuthSessionStorage as xe, getSharedTokenRefreshRefs as Se, isAuthNetworkError as Ce } from "../utils/authErrorHandling.js";
49
+ import { SESSION_EXPIRED_EVENT as we, getStoredAuthToken as Te, graphqlFetch as Ee } from "../graphql/fetch.js";
50
+ import { AppShellContextProvider as De } from "./shell/AppShellContext.js";
51
+ import { useReferralAttribution as Oe } from "../hooks/useReferralAttribution.js";
52
+ import { ConsoleTransport as ke } from "../logger/ConsoleTransport.js";
53
+ import { LogManager as Ae } from "../logger/LogManager.js";
54
+ import { isShellLessRoute as je } from "../config/shellRoutes.js";
55
+ import { useRegisterTourRouteCatalog as Me } from "../tours/useTourRouteCatalog.js";
56
+ import { BACKEND_ERROR_EVENT as B, CONNECTION_STATUS_EVENT as V, dispatchBackendErrorEvent as Ne, getBackendErrorToastDedupe as Pe, isBackendErrorDisplay as Fe, shouldToastBackendError as Ie } from "../utils/backendErrors.js";
57
+ import { usePushDeviceRegistration as H } from "../hooks/usePushDeviceRegistration.js";
58
+ import { Suspense as U, useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as Le } from "react";
59
+ import { Fragment as Re, jsx as J, jsxs as Y } from "react/jsx-runtime";
60
+ import { BrowserRouter as ze, useLocation as X } from "react-router";
61
+ import { Toaster as Be, toast as Z } from "sonner";
62
+ import { MutationCache as Ve, QueryCache as He, QueryClient as Ue, QueryClientProvider as We } from "@tanstack/react-query";
60
63
  // src/shared/providers/AppShellProvider.tsx
61
- var Re = {
64
+ var Ge = {
62
65
  artistrybase: { prod: "cfbecacb6002" },
63
66
  atheletebridge: { prod: "c34c6ead7aa8" },
64
67
  adaptercloud: {},
@@ -87,7 +90,7 @@ var Re = {
87
90
  subscriberbot: {},
88
91
  intelwatchtower: {},
89
92
  kadaikodi: {}
90
- }, ze = [
93
+ }, Ke = [
91
94
  "nav.route.changed",
92
95
  "auth.signed_in",
93
96
  "auth.signed_out",
@@ -130,11 +133,11 @@ var Re = {
130
133
  "coolandlovely.wardrobe.item_added",
131
134
  "coolandlovely.search.performed",
132
135
  "vibecontrols.agent.registered",
133
- ...ae,
134
- ...E,
136
+ ...ce,
137
+ ...D,
138
+ ...se,
135
139
  ...O,
136
- ...re,
137
- ...L,
140
+ ...z,
138
141
  "vibecontrols.agent.gateway_auth_setup",
139
142
  "vibecontrols.session.created",
140
143
  "vibecontrols.session.started",
@@ -310,7 +313,7 @@ var Re = {
310
313
  "labsofscience.pipeline.run_started",
311
314
  "hookmovies.page.viewed",
312
315
  "headshotmarketing.page.viewed",
313
- ...D,
316
+ ...k,
314
317
  "kadaikodi.page.viewed",
315
318
  "kadaikodi.discover.viewed",
316
319
  "kadaikodi.discover.searched",
@@ -330,7 +333,7 @@ var Re = {
330
333
  "project.created",
331
334
  "workspace-member.added",
332
335
  "project-member.added"
333
- ], Be = {
336
+ ], qe = {
334
337
  "--success-bg": "var(--color-status-success-bgSubtle)",
335
338
  "--success-border": "var(--color-status-success-border)",
336
339
  "--success-text": "var(--color-status-success-text)",
@@ -344,7 +347,7 @@ var Re = {
344
347
  "--error-border": "var(--color-status-error-border)",
345
348
  "--error-text": "var(--color-status-error-text)"
346
349
  };
347
- function Ve(e) {
350
+ function Je(e) {
348
351
  let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
349
352
  code: e.code,
350
353
  operationName: e.operationName,
@@ -356,13 +359,13 @@ function Ve(e) {
356
359
  };
357
360
  console.error("[Burdenoff backend error]", e.message, n);
358
361
  }
359
- function He(e) {
362
+ function Ye(e) {
360
363
  return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
361
364
  }
362
- function Ue(e, t) {
365
+ function Xe(e, t) {
363
366
  return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
364
367
  }
365
- function We() {
368
+ function Ze() {
366
369
  return {
367
370
  BASE_URL: "/",
368
371
  DEV: !1,
@@ -371,9 +374,9 @@ function We() {
371
374
  SSR: !1
372
375
  };
373
376
  }
374
- function Ge(e, t) {
377
+ function Q(e, t) {
375
378
  if (!t || t.length === 0 || !e.rybbit) return e;
376
- let n = e.rybbit.allowlist ?? me, r = [.../* @__PURE__ */ new Set([...n, ...t])];
379
+ let n = e.rybbit.allowlist ?? M, r = [.../* @__PURE__ */ new Set([...n, ...t])];
377
380
  return {
378
381
  ...e,
379
382
  rybbit: {
@@ -382,22 +385,22 @@ function Ge(e, t) {
382
385
  }
383
386
  };
384
387
  }
385
- var Ke = {
388
+ var Qe = {
386
389
  comradecircle: {
387
- routes: P,
388
- events: F
390
+ routes: I,
391
+ events: L
389
392
  },
390
393
  semanticfed: {
391
- routes: ge,
392
- events: N
394
+ routes: P,
395
+ events: F
393
396
  },
394
397
  atheletebridge: {
395
- routes: I,
396
- events: L
398
+ routes: R,
399
+ events: z
397
400
  }
398
401
  };
399
- function qe(e, t) {
400
- let n = He(t.VITE_DEPLOY_ENV ?? t.MODE), r = Ue(t, n), i = Re[e] ?? Re[ce(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);
402
+ function $e(e, t) {
403
+ let n = Ye(t.VITE_DEPLOY_ENV ?? t.MODE), r = Xe(t, n), i = Ge[e] ?? Ge[oe(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Qe[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
401
404
  return {
402
405
  enabled: r,
403
406
  appVersion: t.VITE_APP_VERSION || "0.0.0",
@@ -410,7 +413,7 @@ function qe(e, t) {
410
413
  scriptUrl: t.VITE_RYBBIT_SCRIPT_URL,
411
414
  eventEndpoint: s ? "https://app.rybbit.io/api/track" : void 0,
412
415
  routeTemplates: s?.routes,
413
- allowlist: s ? [...s.events] : ze,
416
+ allowlist: s ? [...s.events] : Ke,
414
417
  identifyOn: "auth.signed_in",
415
418
  rename: { "nav.route.changed": "pageview" }
416
419
  },
@@ -425,12 +428,12 @@ function qe(e, t) {
425
428
  }
426
429
  };
427
430
  }
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) => {
431
+ function et({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
432
+ let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = T(), l = W((e, t) => e.steps?.[t], []), u = W((e) => {
430
433
  a(e.id, "started"), s("TOUR_STARTED", e.id);
431
- }, [s, a]), f = G((e) => {
434
+ }, [s, a]), d = W((e) => {
432
435
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
433
- }, [s, a]), p = G((e, t) => {
436
+ }, [s, a]), f = W((e, t) => {
434
437
  let n = l(e, t);
435
438
  a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
436
439
  stepId: n?.id,
@@ -440,13 +443,13 @@ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
440
443
  l,
441
444
  s,
442
445
  a
443
- ]), m = G((e, t) => {
446
+ ]), m = W((e, t) => {
444
447
  let n = l(e, t);
445
448
  n && s("STEP_VIEWED", e.id, {
446
449
  stepId: n.id,
447
450
  stepOrder: n.stepOrder
448
451
  });
449
- }, [l, s]), h = G((e, t) => {
452
+ }, [l, s]), h = W((e, t) => {
450
453
  let n = l(e, t);
451
454
  n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
452
455
  stepId: n.id,
@@ -457,29 +460,29 @@ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
457
460
  o,
458
461
  s
459
462
  ]);
460
- return /* @__PURE__ */ X(S, {
463
+ return /* @__PURE__ */ Y(C, {
461
464
  scopeKey: c,
462
465
  onTourStart: u,
463
- onTourComplete: f,
464
- onTourSkip: p,
466
+ onTourComplete: d,
467
+ onTourSkip: f,
465
468
  onStepChange: m,
466
469
  onStepComplete: h,
467
470
  children: [
468
- /* @__PURE__ */ Y(x, {}),
471
+ /* @__PURE__ */ J(S, {}),
469
472
  e,
470
- /* @__PURE__ */ Y(Ye, {}),
471
- /* @__PURE__ */ Y(d, {}),
472
- /* @__PURE__ */ Y(Ze, {}),
473
- /* @__PURE__ */ Y(Ne, {
473
+ /* @__PURE__ */ J(tt, {}),
474
+ /* @__PURE__ */ J(p, {}),
475
+ /* @__PURE__ */ J(rt, {}),
476
+ /* @__PURE__ */ J(Be, {
474
477
  position: n,
475
478
  richColors: !0,
476
479
  closeButton: !0,
477
- style: Be
480
+ style: qe
478
481
  }),
479
- /* @__PURE__ */ Y(ue, {}),
480
- t && /* @__PURE__ */ Y(W, {
482
+ /* @__PURE__ */ J(he, {}),
483
+ t && /* @__PURE__ */ J(U, {
481
484
  fallback: null,
482
- children: /* @__PURE__ */ Y(M, {
485
+ children: /* @__PURE__ */ J(me, {
483
486
  productName: r,
484
487
  brandInitial: i
485
488
  })
@@ -487,43 +490,43 @@ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
487
490
  ]
488
491
  });
489
492
  }
490
- function Ye() {
491
- let e = J(null), t = f();
492
- return K(() => {
493
+ function tt() {
494
+ let e = q(null), t = m();
495
+ return G(() => {
493
496
  let n = (n) => {
494
- let r = n instanceof CustomEvent && Oe(n.detail) ? n.detail : null;
495
- if (!ke(r)) return;
496
- Ve(r);
497
- let { key: i, windowMs: a } = De(r), o = Date.now(), s = e.current;
497
+ let r = n instanceof CustomEvent && Fe(n.detail) ? n.detail : null;
498
+ if (!Ie(r)) return;
499
+ Je(r);
500
+ let { key: i, windowMs: a } = Pe(r), o = Date.now(), s = e.current;
498
501
  if (s?.key === i && o - s.shownAt < a) return;
499
502
  e.current = {
500
503
  key: i,
501
504
  shownAt: o
502
505
  };
503
506
  let c = r.messageKey ? t(r.messageKey, r.message) : r.message;
504
- Q.error(c, { duration: 7e3 });
507
+ Z.error(c, { duration: 7e3 });
505
508
  };
506
- return window.addEventListener(V, n), () => window.removeEventListener(V, n);
509
+ return window.addEventListener(B, n), () => window.removeEventListener(B, n);
507
510
  }, [t]), null;
508
511
  }
509
- var $ = "burdenoff-connection-status", Xe = 1500;
510
- function Ze() {
511
- let e = J(null), t = J(!1);
512
- return K(() => {
512
+ var $ = "burdenoff-connection-status", nt = 1500;
513
+ function rt() {
514
+ let e = q(null), t = q(!1);
515
+ return G(() => {
513
516
  let n = () => {
514
- t.current || (t.current = !0, Q.error("Connection lost. Trying to reconnect…", {
517
+ t.current || (t.current = !0, Z.error("Connection lost. Trying to reconnect…", {
515
518
  id: $,
516
519
  duration: Infinity
517
520
  }));
518
521
  }, r = () => {
519
522
  t.current || e.current || (e.current = setTimeout(() => {
520
523
  e.current = null, n();
521
- }, Xe));
524
+ }, nt));
522
525
  }, i = (n) => {
523
- e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Q.success("Back online", {
526
+ e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Z.success("Back online", {
524
527
  id: $,
525
528
  duration: 2500
526
- }) : Q.dismiss($)) : Q.dismiss($);
529
+ }) : Z.dismiss($)) : Z.dismiss($);
527
530
  }, a = (e) => {
528
531
  if (!(e instanceof CustomEvent)) return;
529
532
  let t = e.detail;
@@ -531,58 +534,58 @@ function Ze() {
531
534
  }, o = () => r(), s = () => {
532
535
  e.current &&= (clearTimeout(e.current), null);
533
536
  };
534
- return window.addEventListener(H, a), window.addEventListener("offline", o), window.addEventListener("online", s), () => {
535
- window.removeEventListener(H, a), window.removeEventListener("offline", o), window.removeEventListener("online", s), e.current && clearTimeout(e.current);
537
+ return window.addEventListener(V, a), window.addEventListener("offline", o), window.addEventListener("online", s), () => {
538
+ window.removeEventListener(V, a), window.removeEventListener("offline", o), window.removeEventListener("online", s), e.current && clearTimeout(e.current);
536
539
  };
537
540
  }, []), null;
538
541
  }
539
- function Qe() {
540
- return U(), null;
542
+ function it() {
543
+ return H(), null;
541
544
  }
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: x }) {
543
- let S = Z();
544
- z();
545
- let w = T(S.pathname, !!x), E = /* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(y, { children: /* @__PURE__ */ Y(ne, {
545
+ function at({ 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: m, tourPageIdFromPath: h, enableWorkspaceTourPermissions: _ }) {
546
+ let b = X();
547
+ Oe();
548
+ let S = E(b.pathname, !!_), C = /* @__PURE__ */ J(x, { children: /* @__PURE__ */ J(ee, { children: /* @__PURE__ */ J(re, {
546
549
  workspaceId: null,
547
550
  gateway: "global",
548
551
  defaultEnabled: !0,
549
- children: /* @__PURE__ */ Y(b, { children: /* @__PURE__ */ Y(te, { children: /* @__PURE__ */ Y(e, {
552
+ children: /* @__PURE__ */ J(te, { children: /* @__PURE__ */ J(ne, { children: /* @__PURE__ */ J(e, {
550
553
  fallback: null,
551
- children: /* @__PURE__ */ Y(m, {
552
- enabled: w.workspacePermissions,
553
- children: /* @__PURE__ */ Y(C, {
554
- requireWorkspace: w.requireWorkspace,
555
- disabled: w.toursDisabled,
556
- getPageIdFromPath: ee,
557
- children: /* @__PURE__ */ X(Je, {
554
+ children: /* @__PURE__ */ J(g, {
555
+ enabled: S.workspacePermissions,
556
+ children: /* @__PURE__ */ J(w, {
557
+ requireWorkspace: S.requireWorkspace,
558
+ disabled: S.toursDisabled,
559
+ getPageIdFromPath: h,
560
+ children: /* @__PURE__ */ Y(et, {
558
561
  enablePWA: p,
559
- toasterPosition: h,
562
+ toasterPosition: m,
560
563
  productName: d,
561
564
  brandInitial: f,
562
- children: [/* @__PURE__ */ Y(Qe, {}), t]
565
+ children: [/* @__PURE__ */ J(it, {}), t]
563
566
  })
564
567
  })
565
568
  })
566
569
  }) }) })
567
570
  }) }) });
568
- return /* @__PURE__ */ X(g, {
571
+ return /* @__PURE__ */ Y(v, {
569
572
  defaultBrand: o,
570
573
  defaultMode: s,
571
574
  defaultDensity: c,
572
575
  defaultTypography: l,
573
576
  defaultGlass: u,
574
- children: [/* @__PURE__ */ Y(et, {}), /* @__PURE__ */ Y(_, {
577
+ children: [/* @__PURE__ */ J(ot, {}), /* @__PURE__ */ J(y, {
575
578
  i18nProductId: n,
576
579
  platformI18nProductId: r,
577
580
  directionMode: i,
578
581
  fallbackTranslations: a,
579
- children: E
582
+ children: C
580
583
  })]
581
584
  });
582
585
  }
583
- function et() {
584
- let e = Z();
585
- return K(() => {
586
+ function ot() {
587
+ let e = X();
588
+ return G(() => {
586
589
  e.hash || requestAnimationFrame(() => {
587
590
  window.scrollTo({
588
591
  top: 0,
@@ -600,7 +603,7 @@ function et() {
600
603
  e.hash
601
604
  ]), null;
602
605
  }
603
- function tt(e) {
606
+ function st(e) {
604
607
  if (e instanceof Error) return e.message;
605
608
  if (typeof e == "string") return e;
606
609
  try {
@@ -609,29 +612,29 @@ function tt(e) {
609
612
  return String(e);
610
613
  }
611
614
  }
612
- function nt() {
613
- let e = fe(), a = Z(), o = J(void 0), s = J(void 0), c = J(null);
614
- return K(() => {
615
- let t = `${a.pathname}${a.search}${a.hash}`;
616
- if (s.current !== t) return c.current && clearTimeout(c.current), c.current = setTimeout(() => {
617
- c.current = null;
615
+ function ct() {
616
+ let e = _e(), o = X(), s = q(void 0), c = q(void 0), l = q(null);
617
+ return G(() => {
618
+ let t = `${o.pathname}${o.search}${o.hash}`;
619
+ if (c.current !== t) return l.current && clearTimeout(l.current), l.current = setTimeout(() => {
620
+ l.current = null;
618
621
  let n = typeof window < "u" ? `${window.location.pathname}${window.location.search}${window.location.hash}` : t;
619
- s.current !== n && (e.emit("nav.route.changed", {
620
- pathname: typeof window < "u" ? window.location.pathname : a.pathname,
621
- search: typeof window < "u" ? window.location.search : a.search,
622
- hash: typeof window < "u" ? window.location.hash : a.hash,
622
+ c.current !== n && (e.emit("nav.route.changed", {
623
+ pathname: typeof window < "u" ? window.location.pathname : o.pathname,
624
+ search: typeof window < "u" ? window.location.search : o.search,
625
+ hash: typeof window < "u" ? window.location.hash : o.hash,
623
626
  title: typeof document < "u" ? document.title : void 0,
624
- from: o.current
625
- }), o.current = n, s.current = n);
627
+ from: s.current
628
+ }), s.current = n, c.current = n);
626
629
  }, 120), () => {
627
- c.current &&= (clearTimeout(c.current), null);
630
+ l.current &&= (clearTimeout(l.current), null);
628
631
  };
629
632
  }, [
630
633
  e,
631
- a.hash,
632
- a.pathname,
633
- a.search
634
- ]), K(() => {
634
+ o.hash,
635
+ o.pathname,
636
+ o.search
637
+ ]), G(() => {
635
638
  let t = (t) => {
636
639
  e.emit("error.runtime.caught", {
637
640
  message: t.message || "Runtime error",
@@ -641,57 +644,40 @@ function nt() {
641
644
  errorName: t.error instanceof Error ? t.error.name : void 0
642
645
  });
643
646
  }, n = (t) => {
644
- e.emit("error.unhandledrejection", { reason: tt(t.reason) });
647
+ e.emit("error.unhandledrejection", { reason: st(t.reason) });
645
648
  };
646
649
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
647
650
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
648
651
  };
649
- }, [e]), K(() => {
650
- r((t) => {
651
- e.emit("perf.lcp.measured", {
652
- metric: "LCP",
653
- value: t.value,
654
- id: t.id,
655
- rating: t.rating
656
- });
657
- }), t((t) => {
658
- e.emit("perf.cls.measured", {
659
- metric: "CLS",
660
- value: t.value,
661
- id: t.id,
662
- rating: t.rating
663
- });
664
- }), n((t) => {
665
- e.emit("perf.inp.measured", {
666
- metric: "INP",
667
- value: t.value,
668
- id: t.id,
669
- rating: t.rating
670
- });
671
- }), i((t) => {
672
- e.emit("perf.ttfb.measured", {
673
- metric: "TTFB",
674
- value: t.value,
675
- id: t.id,
676
- rating: t.rating
677
- });
652
+ }, [e]), G(() => {
653
+ let o = (e, t) => ({
654
+ metric: t,
655
+ value: e.value,
656
+ id: e.id,
657
+ rating: e.rating,
658
+ navigationType: e.navigationType
678
659
  });
660
+ 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")));
679
661
  }, [e]), null;
680
662
  }
681
- function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s }) {
682
- let { pathname: c } = Z(), l = B(c) || o?.(c) === !0;
683
- return /* @__PURE__ */ X(je, { children: [
684
- /* @__PURE__ */ Y(nt, {}),
685
- r && !l ? /* @__PURE__ */ Y(pe, {
663
+ function lt({ register: e }) {
664
+ let { getAccessToken: t } = c();
665
+ return G(() => (e(t), () => e(null)), [t, e]), null;
666
+ }
667
+ function ut({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s, globalGraphqlUrl: c, getAccessToken: l }) {
668
+ let { pathname: u } = X(), d = je(u) || o?.(u) === !0;
669
+ return /* @__PURE__ */ Y(Re, { children: [
670
+ /* @__PURE__ */ J(ct, {}),
671
+ r && !d ? /* @__PURE__ */ J(j, {
686
672
  productName: n,
687
673
  reopenable: i,
688
674
  placement: a
689
675
  }) : null,
690
- e.enabled === !1 ? null : /* @__PURE__ */ X(je, { children: [
691
- e.devtools ? /* @__PURE__ */ Y(k, { enabled: !0 }) : null,
692
- e.broadcast === !1 ? null : /* @__PURE__ */ Y(A, {}),
693
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ Y(j, { endpoint: e.backendAudit.endpoint }) : null,
694
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ Y(he, {
676
+ e.enabled === !1 ? null : /* @__PURE__ */ Y(Re, { children: [
677
+ e.devtools ? /* @__PURE__ */ J(le, { enabled: !0 }) : null,
678
+ e.broadcast === !1 ? null : /* @__PURE__ */ J(ue, {}),
679
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ J(A, { endpoint: e.backendAudit.endpoint }) : null,
680
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ J(N, {
695
681
  siteId: e.rybbit.siteId,
696
682
  scriptUrl: e.rybbit.scriptUrl,
697
683
  eventEndpoint: e.rybbit.eventEndpoint,
@@ -700,9 +686,15 @@ function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
700
686
  identifyOn: e.rybbit.identifyOn,
701
687
  rename: e.rybbit.rename,
702
688
  skipRoutes: s,
703
- pathname: c
689
+ pathname: u
690
+ }) : null,
691
+ ye(e) ? /* @__PURE__ */ J(fe, {
692
+ product: ae(t),
693
+ endpoint: e.rum?.endpoint || c,
694
+ getAccessToken: l,
695
+ config: e.rum
704
696
  }) : null,
705
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(oe, {
697
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ J(de, {
706
698
  endpoint: e.otel.endpoint,
707
699
  serviceName: e.otel.serviceName ?? `${t}-app`,
708
700
  flushInterval: e.otel.flushInterval
@@ -710,29 +702,29 @@ function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
710
702
  ] })
711
703
  ] });
712
704
  }
713
- function it({ config: t, children: n, clearAuthStore: r }) {
714
- 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: ne, defaultDensity: x, defaultTypography: S, defaultGlass: C, enablePWA: w = !0, brandInitial: T = i.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: re = !0, fallbackTranslations: D, queryClientOptions: O, toasterPosition: ae = "bottom-right", observability: k, privacyConsent: A = !1, privacyConsentReopen: j = !1, privacyConsentPlacement: oe = "start", consentRouteDenylist: ce, rybbitEvents: M, rybbitSkipRoutes: ue, tourPageIdFromPath: fe, tourRouteCatalog: pe, enableWorkspaceTourPermissions: me = !1, workspaceOperationGuard: he = "off" } = t;
715
- Te(d, pe), K(() => le(se(d)), [d]);
716
- let [ge] = Ae(() => ee({
705
+ function dt({ config: t, children: n, clearAuthStore: r }) {
706
+ let { productName: i, productSlug: a = i.toLowerCase().replace(/\s+/g, ""), tagline: c = "", domain: p, i18nProductId: m, platformI18nProductId: g, rtl: v, gatewayUrls: y, authBridge: x, defaultBrand: ee = "default", defaultMode: te, defaultDensity: ne, defaultTypography: re, defaultGlass: S, enablePWA: C = !0, brandInitial: w = i.charAt(0), defaultGateway: T = "workspace", enableSubscriptions: E = !0, fallbackTranslations: D, queryClientOptions: O, toasterPosition: oe = "bottom-right", observability: k, privacyConsent: se = !1, privacyConsentReopen: ce = !1, privacyConsentPlacement: le = "start", consentRouteDenylist: ue, rybbitEvents: A, rybbitSkipRoutes: de, tourPageIdFromPath: fe, tourRouteCatalog: me, enableWorkspaceTourPermissions: he = !1, workspaceOperationGuard: _e = "off" } = t;
707
+ Me(a, me), G(() => pe(ae(a)), [a]);
708
+ let [ye] = Le(() => b({
717
709
  enabled: v?.enabled,
718
710
  allowPreview: v?.preview
719
- })), N = q(() => Ge(k ?? qe(d, We()), M), [
711
+ })), j = K(() => Q(k ?? $e(a, Ze()), A), [
720
712
  k,
721
- d,
722
- M
723
- ]), P = q(() => ({
713
+ a,
714
+ A
715
+ ]), M = K(() => ({
724
716
  productName: i,
725
- productSlug: d,
726
- brandInitial: T,
727
- tagline: f,
728
- domain: m
717
+ productSlug: a,
718
+ brandInitial: w,
719
+ tagline: c,
720
+ domain: p
729
721
  }), [
730
722
  i,
731
- d,
732
- T,
733
- f,
734
- m
735
- ]), F = J(!1), I = J(!!b?.url), L = G((e) => {
723
+ a,
724
+ w,
725
+ c,
726
+ p
727
+ ]), N = q(!1), P = q(!!x?.url), F = W((e) => {
736
728
  if (!e?.force && (() => {
737
729
  try {
738
730
  let e = sessionStorage.getItem("bf-active-profile");
@@ -742,19 +734,19 @@ function it({ config: t, children: n, clearAuthStore: r }) {
742
734
  } catch {
743
735
  return !1;
744
736
  }
745
- })() || I.current || F.current) return;
746
- F.current = !0, ve(r);
737
+ })() || P.current || N.current) return;
738
+ N.current = !0, xe(r);
747
739
  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);
748
- window.location.pathname.startsWith("/auth/") || B(window.location.pathname) || i ? F.current = !1 : window.location.replace(n);
749
- }, [r]), z = q(() => ({
740
+ window.location.pathname.startsWith("/auth/") || je(window.location.pathname) || i ? N.current = !1 : window.location.replace(n);
741
+ }, [r]), I = K(() => ({
750
742
  globalBaseUrl: y.globalBaseUrl,
751
- ...ye()
752
- }), [y.globalBaseUrl]), V = G(async () => _e(z), [z]), H = G(async () => {
753
- window.location.pathname.startsWith("/auth/") || await V() || L({ force: !0 });
754
- }, [V, L]), De = G(async (e) => {
755
- be(e) ? await V() || L({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
756
- }, [V, L]), Oe = G(async (e) => {
757
- let t = await xe({
743
+ ...Se()
744
+ }), [y.globalBaseUrl]), L = W(async () => be(I), [I]), R = W(async () => {
745
+ window.location.pathname.startsWith("/auth/") || await L() || F({ force: !0 });
746
+ }, [L, F]), z = W(async (e) => {
747
+ Ce(e) ? await L() || F({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
748
+ }, [L, F]), Oe = W(async (e) => {
749
+ let t = await Ee({
758
750
  gateway: "global",
759
751
  baseUrl: y.globalBaseUrl,
760
752
  authToken: "",
@@ -768,17 +760,22 @@ function it({ config: t, children: n, clearAuthStore: r }) {
768
760
  refreshToken: n.refreshToken,
769
761
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
770
762
  };
771
- }, [y.globalBaseUrl]), ke = G(() => s("organization"), []), U = q(() => {
772
- let e = new Ie({
773
- queryCache: new Fe({ onError: (e) => {
774
- Ee(e);
763
+ }, [y.globalBaseUrl]), B = q(null), V = W((e) => {
764
+ B.current = e;
765
+ }, []), Pe = W(() => {
766
+ let e = B.current;
767
+ return e ? e() : Te();
768
+ }, []), Fe = K(() => ve(y.globalBaseUrl, "global"), [y.globalBaseUrl]), Ie = W(() => l("organization"), []), H = K(() => {
769
+ let e = new Ue({
770
+ queryCache: new He({ onError: (e) => {
771
+ Ne(e);
775
772
  } }),
776
- mutationCache: new Pe({
773
+ mutationCache: new Ve({
777
774
  onSuccess: () => {
778
775
  e.invalidateQueries();
779
776
  },
780
777
  onError: (e) => {
781
- Ee(e);
778
+ Ne(e);
782
779
  }
783
780
  }),
784
781
  defaultOptions: { queries: {
@@ -788,89 +785,91 @@ function it({ config: t, children: n, clearAuthStore: r }) {
788
785
  } }
789
786
  });
790
787
  return e;
791
- }, [O]), W = l(U);
792
- return K(() => {
788
+ }, [O]), U = d(H);
789
+ return G(() => {
793
790
  let e = () => {
794
- L({ force: !0 });
791
+ F({ force: !0 });
795
792
  };
796
- return window.addEventListener(R, e), () => {
797
- window.removeEventListener(R, e);
793
+ return window.addEventListener(we, e), () => {
794
+ window.removeEventListener(we, e);
798
795
  };
799
- }, [L]), K(() => {
800
- let e = we.getInstance();
801
- e.getLogger("shell") || e.getLogger("shell").addTransport(new Ce());
802
- }, []), /* @__PURE__ */ Y(Se, {
803
- value: P,
804
- children: /* @__PURE__ */ Y(de, {
805
- appName: d,
806
- appVersion: N.appVersion,
807
- appEnv: N.appEnv,
808
- sourceMfe: d,
809
- children: /* @__PURE__ */ Y(e, {
796
+ }, [F]), G(() => {
797
+ let e = Ae.getInstance();
798
+ e.getLogger("shell") || e.getLogger("shell").addTransport(new ke());
799
+ }, []), /* @__PURE__ */ J(De, {
800
+ value: M,
801
+ children: /* @__PURE__ */ J(ge, {
802
+ appName: a,
803
+ appVersion: j.appVersion,
804
+ appEnv: j.appEnv,
805
+ sourceMfe: a,
806
+ children: /* @__PURE__ */ J(e, {
810
807
  FallbackComponent: ie,
811
- children: /* @__PURE__ */ X(Me, { children: [/* @__PURE__ */ Y(rt, {
812
- config: N,
813
- productSlug: d,
808
+ children: /* @__PURE__ */ Y(ze, { children: [/* @__PURE__ */ J(ut, {
809
+ config: j,
810
+ productSlug: a,
811
+ globalGraphqlUrl: Fe,
812
+ getAccessToken: Pe,
814
813
  productName: i,
815
- privacyConsent: A,
816
- privacyConsentReopen: j,
817
- privacyConsentPlacement: oe,
818
- consentRouteDenylist: ce,
819
- rybbitSkipRoutes: ue
820
- }), /* @__PURE__ */ Y(Le, {
821
- client: U,
822
- children: /* @__PURE__ */ Y(o, { children: /* @__PURE__ */ Y(c, {
814
+ privacyConsent: se,
815
+ privacyConsentReopen: ce,
816
+ privacyConsentPlacement: le,
817
+ consentRouteDenylist: ue,
818
+ rybbitSkipRoutes: de
819
+ }), /* @__PURE__ */ J(We, {
820
+ client: H,
821
+ children: /* @__PURE__ */ Y(s, { children: [/* @__PURE__ */ J(lt, { register: V }), /* @__PURE__ */ J(u, {
823
822
  workspaceBaseUrl: y.workspaceBaseUrl,
824
823
  globalBaseUrl: y.globalBaseUrl,
825
- organizationId: ke,
826
- productSlug: d,
827
- defaultGateway: E,
828
- enableSubscriptions: re,
829
- onAuthError: H,
830
- onNetworkError: De,
831
- onRefreshToken: V,
832
- workspaceOperationGuard: he,
833
- children: /* @__PURE__ */ X(a, {
834
- bridgeUrl: b?.url,
835
- bridgeAllowedOrigins: b?.allowedOrigins,
836
- bridgeDebug: b?.debug,
824
+ organizationId: Ie,
825
+ productSlug: a,
826
+ defaultGateway: T,
827
+ enableSubscriptions: E,
828
+ onAuthError: R,
829
+ onNetworkError: z,
830
+ onRefreshToken: L,
831
+ workspaceOperationGuard: _e,
832
+ children: /* @__PURE__ */ Y(o, {
833
+ bridgeUrl: x?.url,
834
+ bridgeAllowedOrigins: x?.allowedOrigins,
835
+ bridgeDebug: x?.debug,
837
836
  onRefreshToken: Oe,
838
837
  onBridgeReady: () => {
839
- I.current = !1;
838
+ P.current = !1;
840
839
  },
841
840
  onSessionExpiringSoon: () => {
842
841
  console.warn("[Auth] Session will expire in 5 minutes");
843
842
  },
844
843
  onTokenExpired: () => {
845
- L();
844
+ F();
846
845
  },
847
- onBeforeIdentityChange: W.onBeforeIdentityChange,
848
- children: [/* @__PURE__ */ Y(u, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(p, {
846
+ onBeforeIdentityChange: U.onBeforeIdentityChange,
847
+ children: [/* @__PURE__ */ J(f, { announcementsRef: U.announcementsRef }), /* @__PURE__ */ J(h, {
849
848
  syncToUrl: !0,
850
- children: /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y($e, {
851
- i18nProductId: g,
852
- platformI18nProductId: _,
853
- directionMode: ge,
849
+ children: /* @__PURE__ */ J(_, { children: /* @__PURE__ */ J(at, {
850
+ i18nProductId: m,
851
+ platformI18nProductId: g,
852
+ directionMode: ye,
854
853
  fallbackTranslations: D,
855
- defaultBrand: te,
856
- defaultMode: ne,
857
- defaultDensity: x,
858
- defaultTypography: S,
859
- defaultGlass: C,
854
+ defaultBrand: ee,
855
+ defaultMode: te,
856
+ defaultDensity: ne,
857
+ defaultTypography: re,
858
+ defaultGlass: S,
860
859
  productName: i,
861
- brandInitial: T,
862
- enablePWA: w,
863
- toasterPosition: ae,
860
+ brandInitial: w,
861
+ enablePWA: C,
862
+ toasterPosition: oe,
864
863
  tourPageIdFromPath: fe,
865
- enableWorkspaceTourPermissions: me,
864
+ enableWorkspaceTourPermissions: he,
866
865
  children: n
867
866
  }) })
868
867
  })]
869
868
  })
870
- }) })
869
+ })] })
871
870
  })] })
872
871
  })
873
872
  })
874
873
  });
875
874
  }
876
- export { it as AppShellProvider, Be as RICH_TOAST_TOKEN_STYLE, qe as resolveAppShellObservabilityConfig, Ge as withShellRybbitEvents };
875
+ export { dt as AppShellProvider, qe as RICH_TOAST_TOKEN_STYLE, $e as resolveAppShellObservabilityConfig, Q as withShellRybbitEvents };