@burdenoff/fe-libs 2026.813.1 → 2026.813.3

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.
@@ -15,11 +15,16 @@ interface RybbitSinkProps {
15
15
  /** Which event triggers `rybbit.identify`. */
16
16
  identifyOn?: BurdenoffEventName;
17
17
  }
18
+ export declare function readAnalyticsConsent(): boolean;
19
+ export declare function setAnalyticsConsent(granted: boolean): void;
18
20
  export declare function shouldDropAnalyticsKey(key: string, eventName: BurdenoffEventName): boolean;
19
21
  /**
20
22
  * RybbitSink injects the Rybbit analytics script and forwards matching
21
23
  * event bus emissions as Rybbit custom events.
22
24
  */
23
25
  export declare function RybbitSink({ siteId, scriptUrl, rename, allowlist, identifyOn, }: RybbitSinkProps): null;
26
+ export declare function AnalyticsConsentBanner({ productName }: {
27
+ productName?: string;
28
+ }): import("react/jsx-runtime").JSX.Element | null;
24
29
  export {};
25
30
  //# sourceMappingURL=RybbitSink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RybbitSink.d.ts","sourceRoot":"","sources":["../../../../src/shared/events/sinks/RybbitSink.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,EAiCxD,CAAC;AAqDF,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,yFAAyF;IACzF,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACjC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC;AA2BD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,OAAO,CAM1F;AA6BD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,SAAiD,EACjD,MAAqB,EACrB,SAAoC,EACpC,UAA6B,GAC9B,EAAE,eAAe,QAuDjB"}
1
+ {"version":3,"file":"RybbitSink.d.ts","sourceRoot":"","sources":["../../../../src/shared/events/sinks/RybbitSink.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,EAiCxD,CAAC;AAqDF,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,yFAAyF;IACzF,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACjC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC;AAWD,wBAAgB,oBAAoB,IAAI,OAAO,CAG9C;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAM1D;AA2BD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,OAAO,CAM1F;AA6BD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,SAAiD,EACjD,MAAqB,EACrB,SAAoC,EACpC,UAA6B,GAC9B,EAAE,eAAe,QAqEjB;AAED,wBAAgB,sBAAsB,CAAC,EAAE,WAA4B,EAAE,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,kDAqChG"}
@@ -1,15 +1,16 @@
1
1
  "use client";
2
2
  import { useEventBus as e } from "../../../shared-events.js";
3
- import { useEffect as t, useRef as n } from "react";
3
+ import { useEffect as t, useRef as n, useState as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
5
  //#region src/shared/events/sinks/RybbitSink.tsx
5
- var r = /* @__PURE__ */ "nav.route.changed,auth.signed_in,auth.signed_out,support.ticket.created,support.ticket.closed,support.ticket.reopened,support.kb.article_rated,notification.item.opened,notification.preference.updated,notification.admin.sent,notification.template.saved,notification.schedule.updated,bigconsole.dashboard.import_clicked,bigconsole.dashboard.imported,bigconsole.dashboard.share_clicked,bigconsole.dashboard.shared,bigconsole.data_sink.import_clicked,bigconsole.data_sink.imported,bigconsole.widget.create_clicked,bigconsole.widget.created,bigconsole.widget.duplicate_clicked,bigconsole.widget.duplicated,bigconsole.ai.generate_clicked,bigconsole.ai.dashboard_generated,bigconsole.ai.create_dashboard_clicked,bigconsole.ai.dashboard_created".split(","), i = /(token|password|secret|authorization|cookie|session|email|name|stack|message|subject|description|query|search|prompt|formula|reason|body|content)/i, a = /(^id$|Id$|_id$|_ID$)/, o = [
6
+ var o = /* @__PURE__ */ "nav.route.changed,auth.signed_in,auth.signed_out,support.ticket.created,support.ticket.closed,support.ticket.reopened,support.kb.article_rated,notification.item.opened,notification.preference.updated,notification.admin.sent,notification.template.saved,notification.schedule.updated,bigconsole.dashboard.import_clicked,bigconsole.dashboard.imported,bigconsole.dashboard.share_clicked,bigconsole.dashboard.shared,bigconsole.data_sink.import_clicked,bigconsole.data_sink.imported,bigconsole.widget.create_clicked,bigconsole.widget.created,bigconsole.widget.duplicate_clicked,bigconsole.widget.duplicated,bigconsole.ai.generate_clicked,bigconsole.ai.dashboard_generated,bigconsole.ai.create_dashboard_clicked,bigconsole.ai.dashboard_created".split(","), s = /(token|password|secret|authorization|cookie|session|email|name|stack|message|subject|description|query|search|prompt|formula|reason|body|content)/i, c = /(^id$|Id$|_id$|_ID$)/, l = [
6
7
  "ticketId",
7
8
  "categoryId",
8
9
  "workspaceId"
9
- ], s = ["workspaceId"], c = {
10
- "support.ticket.created": o,
11
- "support.ticket.closed": o,
12
- "support.ticket.reopened": o,
10
+ ], u = ["workspaceId"], d = {
11
+ "support.ticket.created": l,
12
+ "support.ticket.closed": l,
13
+ "support.ticket.reopened": l,
13
14
  "support.kb.article_rated": ["articleId"],
14
15
  "bigconsole.dashboard.imported": ["dashboardId"],
15
16
  "bigconsole.dashboard.share_clicked": ["dashboardId"],
@@ -35,40 +36,49 @@ var r = /* @__PURE__ */ "nav.route.changed,auth.signed_in,auth.signed_out,suppor
35
36
  "bigconsole.ai.dashboard_generated": ["generationId"],
36
37
  "bigconsole.ai.create_dashboard_clicked": ["generationId"],
37
38
  "bigconsole.ai.dashboard_created": ["dashboardId", "generationId"],
38
- "healthybowl.farm.created": s,
39
- "healthybowl.crop.created": s,
40
- "healthybowl.crop.updated": s,
41
- "healthybowl.harvest.recorded": s
42
- }, l = {
39
+ "healthybowl.farm.created": u,
40
+ "healthybowl.crop.created": u,
41
+ "healthybowl.crop.updated": u,
42
+ "healthybowl.harvest.recorded": u
43
+ }, f = {
43
44
  "auth.signed_out": ["reason"],
44
45
  "psw.search.performed": ["queryLength"]
45
- }, u = {};
46
- function d() {
46
+ }, p = {}, m = "bf-analytics-consent", h = "burdenoff:analytics-consent";
47
+ function g() {
48
+ return navigator.globalPrivacyControl === !0;
49
+ }
50
+ function _() {
51
+ return typeof window > "u" || g() ? !1 : window.localStorage.getItem(m) === "granted";
52
+ }
53
+ function v(e) {
54
+ typeof window > "u" || (e && !g() ? window.localStorage.setItem(m, "granted") : window.localStorage.removeItem(m), window.dispatchEvent(new CustomEvent(h, { detail: { granted: e } })));
55
+ }
56
+ function y() {
47
57
  let e = window;
48
58
  return navigator.doNotTrack === "1" || e.doNotTrack === "1";
49
59
  }
50
- function f(e) {
60
+ function b(e) {
51
61
  let t = 2166136261;
52
62
  for (let n = 0; n < e.length; n += 1) t ^= e.charCodeAt(n), t = Math.imul(t, 16777619);
53
63
  return `u_${(t >>> 0).toString(16).padStart(8, "0")}`;
54
64
  }
55
- async function p(e) {
65
+ async function x(e) {
56
66
  if (crypto.subtle) {
57
67
  let t = new TextEncoder().encode(e), n = await crypto.subtle.digest("SHA-256", t);
58
68
  return Array.from(new Uint8Array(n), (e) => e.toString(16).padStart(2, "0")).join("");
59
69
  }
60
- return f(e);
70
+ return b(e);
61
71
  }
62
- function m(e, t) {
63
- return i.test(e) ? !(l[t] ?? []).includes(e) : a.test(e) ? !(c[t] ?? []).includes(e) : !1;
72
+ function S(e, t) {
73
+ return s.test(e) ? !(f[t] ?? []).includes(e) : c.test(e) ? !(d[t] ?? []).includes(e) : !1;
64
74
  }
65
- function h(e, t) {
75
+ function C(e, t) {
66
76
  if (!e || typeof e != "object" || Array.isArray(e)) return {};
67
77
  let n = {};
68
- for (let [r, i] of Object.entries(e)) m(r, t) || (typeof i == "string" || typeof i == "number" || typeof i == "boolean") && (n[r] = i);
78
+ for (let [r, i] of Object.entries(e)) S(r, t) || (typeof i == "string" || typeof i == "number" || typeof i == "boolean") && (n[r] = i);
69
79
  return n;
70
80
  }
71
- function g(e) {
81
+ function w(e) {
72
82
  let t = {};
73
83
  for (let [n, r] of Object.entries(e)) {
74
84
  let e = {
@@ -80,28 +90,39 @@ function g(e) {
80
90
  }
81
91
  return t;
82
92
  }
83
- function _({ siteId: i, scriptUrl: a = "https://app.rybbit.io/api/script.js", rename: o = u, allowlist: s = r, identifyOn: c = "auth.signed_in" }) {
84
- let l = e(), f = n(!1);
93
+ function T({ siteId: i, scriptUrl: a = "https://app.rybbit.io/api/script.js", rename: s = p, allowlist: c = o, identifyOn: l = "auth.signed_in" }) {
94
+ let u = e(), d = n(!1), [f, v] = r(_);
85
95
  return t(() => {
86
- if (!i || f.current) return;
87
- f.current = !0;
96
+ let e = () => v(_()), t = (t) => {
97
+ t.key === m && e();
98
+ };
99
+ return window.addEventListener(h, e), window.addEventListener("storage", t), () => {
100
+ window.removeEventListener(h, e), window.removeEventListener("storage", t);
101
+ };
102
+ }, []), t(() => {
103
+ if (!i || !f || g() || d.current) return;
104
+ d.current = !0;
88
105
  let e = document.createElement("script");
89
106
  return e.src = a, e.defer = !0, e.dataset.siteId = i, document.head.appendChild(e), () => {
90
107
  document.head.removeChild(e);
91
108
  };
92
- }, [i, a]), t(() => {
93
- if (i) return l.onAny((e) => {
94
- if (d()) return;
109
+ }, [
110
+ i,
111
+ a,
112
+ f
113
+ ]), t(() => {
114
+ if (!(!i || !f || g())) return u.onAny((e) => {
115
+ if (y()) return;
95
116
  let t = window;
96
- if (!t.rybbit || !s.includes(e.name)) return;
97
- let n = g({
117
+ if (!t.rybbit || !c.includes(e.name)) return;
118
+ let n = w({
98
119
  route: e.metadata.route.pathname,
99
120
  env: e.metadata.app.env,
100
- ...h(e.payload, e.name)
121
+ ...C(e.payload, e.name)
101
122
  });
102
- if (e.name === c) {
123
+ if (e.name === l) {
103
124
  let r = e.payload, i = r?.userId ?? r?.actorId ?? r?.id;
104
- i && p(i).then((e) => {
125
+ i && x(i).then((e) => {
105
126
  t.rybbit?.identify(e, n);
106
127
  });
107
128
  }
@@ -109,16 +130,50 @@ function _({ siteId: i, scriptUrl: a = "https://app.rybbit.io/api/script.js", re
109
130
  t.rybbit.pageview();
110
131
  return;
111
132
  }
112
- let r = o[e.name] ?? e.name;
133
+ let r = s[e.name] ?? e.name;
113
134
  t.rybbit.event(r, n);
114
135
  });
115
136
  }, [
116
- l,
137
+ u,
117
138
  i,
118
- s,
119
139
  c,
120
- o
140
+ l,
141
+ s,
142
+ f
121
143
  ]), null;
122
144
  }
145
+ function E({ productName: e = "this product" }) {
146
+ let [t, n] = r(() => !_());
147
+ return !t || g() ? null : /* @__PURE__ */ a("aside", {
148
+ className: "fixed inset-x-4 bottom-4 z-[100] mx-auto max-w-xl rounded-xl border border-border-seam bg-bg-surface p-4 text-text-primary shadow-pop",
149
+ role: "dialog",
150
+ "aria-label": "Privacy choices",
151
+ children: [/* @__PURE__ */ a("p", {
152
+ className: "text-sm",
153
+ children: [
154
+ "Allow optional analytics to help improve ",
155
+ e,
156
+ "? Essential product operation works either way."
157
+ ]
158
+ }), /* @__PURE__ */ a("div", {
159
+ className: "mt-3 flex gap-2",
160
+ children: [/* @__PURE__ */ i("button", {
161
+ type: "button",
162
+ className: "rounded-md border border-border-seam px-3 py-2 text-sm",
163
+ onClick: () => {
164
+ v(!1), n(!1);
165
+ },
166
+ children: "Reject optional"
167
+ }), /* @__PURE__ */ i("button", {
168
+ type: "button",
169
+ className: "rounded-md bg-action-primary-bg px-3 py-2 text-sm text-action-primary-text",
170
+ onClick: () => {
171
+ v(!0), n(!1);
172
+ },
173
+ children: "Allow analytics"
174
+ })]
175
+ })]
176
+ });
177
+ }
123
178
  //#endregion
124
- export { _ as RybbitSink };
179
+ export { E as AnalyticsConsentBanner, T as RybbitSink, _ as readAnalyticsConsent, v as setAnalyticsConsent };
@@ -1,6 +1,6 @@
1
1
  export { DevtoolsSink } from './DevtoolsSink';
2
2
  export { BroadcastChannelSink } from './BroadcastChannelSink';
3
3
  export { BackendAuditSink } from './BackendAuditSink';
4
- export { RybbitSink } from './RybbitSink';
4
+ export { RybbitSink, AnalyticsConsentBanner, readAnalyticsConsent, setAnalyticsConsent, } from './RybbitSink';
5
5
  export { OtelBrowserSink } from './OtelBrowserSink';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/events/sinks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/events/sinks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -54,6 +54,8 @@ export interface AppShellConfig {
54
54
  toasterPosition?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
55
55
  /** Frontend telemetry sinks. MFEs emit to the shell event bus only. */
56
56
  observability?: AppShellObservabilityConfig;
57
+ /** Require explicit opt-in before loading optional analytics in this shell. */
58
+ privacyConsent?: boolean;
57
59
  /**
58
60
  * Maps a pathname to the tour `pageId` used when looking up tours.
59
61
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AppShellProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/providers/AppShellProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAa1F,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAY/B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAQL,KAAK,kBAAkB,EACxB,MAAM,WAAW,CAAC;AA2BnB,MAAM,WAAW,cAAc;IAC7B,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IAEpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IA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AmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AA8XD,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,wBAAwB,GAC5B,2BAA2B,CAiC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AA+fD,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,qBAAqB,2CA6V3F"}
@@ -19,24 +19,24 @@ import { ShellUiProvider as x } from "./shell/ShellUiProvider.js";
19
19
  import { ContextManagerProvider as ie } from "./shell/ContextManagerProvider.js";
20
20
  import { AuthTokenProvider as ae } from "./shell/AuthTokenProvider.js";
21
21
  import { MultiGatewayProvider as oe } from "./shell/MultiGatewayProvider.js";
22
- import { G as S, Q as se, j as C, w } from "../../node_modules/web-vitals/dist/web-vitals.js";
23
- import { ProfileI18nBridge as T } from "./shell/ProfileI18nBridge.js";
24
- import { ProfileGeographyBridge as E } from "./shell/ProfileGeographyBridge.js";
25
- import { DevtoolsSink as D } from "../events/sinks/DevtoolsSink.js";
26
- import { BroadcastChannelSink as O } from "../events/sinks/BroadcastChannelSink.js";
27
- import { BackendAuditSink as k } from "../events/sinks/BackendAuditSink.js";
28
- import { RybbitSink as A } from "../events/sinks/RybbitSink.js";
22
+ import { G as S, Q as C, j as w, w as se } from "../../node_modules/web-vitals/dist/web-vitals.js";
23
+ import { ProfileI18nBridge as ce } from "./shell/ProfileI18nBridge.js";
24
+ import { ProfileGeographyBridge as T } from "./shell/ProfileGeographyBridge.js";
25
+ import { DevtoolsSink as E } from "../events/sinks/DevtoolsSink.js";
26
+ import { BroadcastChannelSink as D } from "../events/sinks/BroadcastChannelSink.js";
27
+ import { BackendAuditSink as O } from "../events/sinks/BackendAuditSink.js";
28
+ import { AnalyticsConsentBanner as k, RybbitSink as A } from "../events/sinks/RybbitSink.js";
29
29
  import { OtelBrowserSink as j } from "../events/sinks/OtelBrowserSink.js";
30
- import { EventBusProvider as ce, useEventBus as M } from "../../shared-events.js";
30
+ import { EventBusProvider as le, useEventBus as M } from "../../shared-events.js";
31
31
  import { useReferralAttribution as N } from "../hooks/useReferralAttribution.js";
32
32
  import { TourPlayerProvider as P } from "../tours/TourPlayerProvider.js";
33
33
  import { ToursProvider as F, useToursContext as I } from "../tours/ToursContext.js";
34
34
  import { TourInitializer as L } from "../tours/TourInitializer.js";
35
35
  import { Suspense as R, useCallback as z, useEffect as B, useMemo as V, useRef as H } from "react";
36
36
  import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
37
- import { BrowserRouter as le, useLocation as K } from "react-router";
37
+ import { BrowserRouter as ue, useLocation as K } from "react-router";
38
38
  import { Toaster as q, toast as J } from "sonner";
39
- import { MutationCache as ue, QueryCache as de, QueryClient as fe, QueryClientProvider as pe } from "@tanstack/react-query";
39
+ import { MutationCache as de, QueryCache as fe, QueryClient as pe, QueryClientProvider as me } from "@tanstack/react-query";
40
40
  //#region src/shared/providers/AppShellProvider.tsx
41
41
  var Y = {
42
42
  artistrybase: { prod: "cfbecacb6002" },
@@ -77,13 +77,13 @@ function Q(e) {
77
77
  };
78
78
  console.error("[Burdenoff backend error]", e.message, n);
79
79
  }
80
- function me(e) {
80
+ function he(e) {
81
81
  return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
82
82
  }
83
- function he(e, t) {
83
+ function ge(e, t) {
84
84
  return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
85
85
  }
86
- function ge() {
86
+ function _e() {
87
87
  return {
88
88
  BASE_URL: "/",
89
89
  DEV: !1,
@@ -92,8 +92,8 @@ function ge() {
92
92
  SSR: !1
93
93
  };
94
94
  }
95
- function _e(e, t) {
96
- let n = me(t.VITE_DEPLOY_ENV ?? t.MODE), r = he(t, n), i = Y[e], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
95
+ function ve(e, t) {
96
+ let n = he(t.VITE_DEPLOY_ENV ?? t.MODE), r = ge(t, n), i = Y[e], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
97
97
  return {
98
98
  enabled: r,
99
99
  appVersion: t.VITE_APP_VERSION || "0.0.0",
@@ -119,7 +119,7 @@ function _e(e, t) {
119
119
  }
120
120
  };
121
121
  }
122
- function ve({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
122
+ function ye({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
123
123
  let { trackProgress: a, recordStepCompletion: o, trackEvent: s } = I(), c = z((e, t) => e.steps?.[t], []);
124
124
  return /* @__PURE__ */ G(P, {
125
125
  onTourStart: z((e) => {
@@ -160,8 +160,8 @@ function ve({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
160
160
  children: [
161
161
  /* @__PURE__ */ W(L, {}),
162
162
  e,
163
- /* @__PURE__ */ W(ye, {}),
164
- /* @__PURE__ */ W(xe, {}),
163
+ /* @__PURE__ */ W(be, {}),
164
+ /* @__PURE__ */ W(Se, {}),
165
165
  /* @__PURE__ */ W(q, {
166
166
  position: n,
167
167
  richColors: !0,
@@ -177,7 +177,7 @@ function ve({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
177
177
  ]
178
178
  });
179
179
  }
180
- function ye() {
180
+ function be() {
181
181
  let e = H(null);
182
182
  return B(() => {
183
183
  let t = (t) => {
@@ -193,8 +193,8 @@ function ye() {
193
193
  return window.addEventListener(n, t), () => window.removeEventListener(n, t);
194
194
  }, []), null;
195
195
  }
196
- var $ = "burdenoff-connection-status", be = 1500;
197
- function xe() {
196
+ var $ = "burdenoff-connection-status", xe = 1500;
197
+ function Se() {
198
198
  let e = H(null), t = H(!1);
199
199
  return B(() => {
200
200
  let n = () => {
@@ -205,7 +205,7 @@ function xe() {
205
205
  }, i = () => {
206
206
  t.current || e.current || (e.current = setTimeout(() => {
207
207
  e.current = null, n();
208
- }, be));
208
+ }, xe));
209
209
  }, a = (n) => {
210
210
  if (e.current &&= (clearTimeout(e.current), null), !t.current) {
211
211
  J.dismiss($);
@@ -227,10 +227,10 @@ function xe() {
227
227
  };
228
228
  }, []), null;
229
229
  }
230
- function Se({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBrand: r, defaultMode: i, defaultDensity: a, defaultTypography: o, defaultGlass: s, productName: c, brandInitial: l, enablePWA: u, toasterPosition: d, tourPageIdFromPath: f }) {
230
+ function Ce({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBrand: r, defaultMode: i, defaultDensity: a, defaultTypography: o, defaultGlass: s, productName: c, brandInitial: l, enablePWA: u, toasterPosition: d, tourPageIdFromPath: f }) {
231
231
  let p = K();
232
232
  N();
233
- let m = /* @__PURE__ */ W(E, { children: /* @__PURE__ */ W(v, { children: /* @__PURE__ */ W(y, {
233
+ let m = /* @__PURE__ */ W(T, { children: /* @__PURE__ */ W(v, { children: /* @__PURE__ */ W(y, {
234
234
  workspaceId: null,
235
235
  gateway: "global",
236
236
  defaultEnabled: !0,
@@ -239,7 +239,7 @@ function Se({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBra
239
239
  children: /* @__PURE__ */ W(F, {
240
240
  disabled: p.pathname.startsWith("/devportal") || p.pathname.startsWith("/organizations") || p.pathname.startsWith("/workspaces"),
241
241
  getPageIdFromPath: f,
242
- children: /* @__PURE__ */ W(ve, {
242
+ children: /* @__PURE__ */ W(ye, {
243
243
  enablePWA: u,
244
244
  toasterPosition: d,
245
245
  productName: c,
@@ -255,14 +255,14 @@ function Se({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBra
255
255
  defaultDensity: a,
256
256
  defaultTypography: o,
257
257
  defaultGlass: s,
258
- children: [/* @__PURE__ */ W(Ce, {}), /* @__PURE__ */ W(T, {
258
+ children: [/* @__PURE__ */ W(we, {}), /* @__PURE__ */ W(ce, {
259
259
  i18nProductId: t,
260
260
  fallbackTranslations: n,
261
261
  children: m
262
262
  })]
263
263
  });
264
264
  }
265
- function Ce() {
265
+ function we() {
266
266
  let e = K();
267
267
  return B(() => {
268
268
  e.hash || requestAnimationFrame(() => {
@@ -282,7 +282,7 @@ function Ce() {
282
282
  e.hash
283
283
  ]), null;
284
284
  }
285
- function we(e) {
285
+ function Te(e) {
286
286
  if (e instanceof Error) return e.message;
287
287
  if (typeof e == "string") return e;
288
288
  try {
@@ -291,7 +291,7 @@ function we(e) {
291
291
  return String(e);
292
292
  }
293
293
  }
294
- function Te() {
294
+ function Ee() {
295
295
  let e = M(), t = K(), n = H(void 0), r = H(void 0), i = H(null);
296
296
  return B(() => {
297
297
  let a = `${t.pathname}${t.search}${t.hash}`;
@@ -323,7 +323,7 @@ function Te() {
323
323
  errorName: t.error instanceof Error ? t.error.name : void 0
324
324
  });
325
325
  }, n = (t) => {
326
- e.emit("error.unhandledrejection", { reason: we(t.reason) });
326
+ e.emit("error.unhandledrejection", { reason: Te(t.reason) });
327
327
  };
328
328
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
329
329
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
@@ -336,21 +336,21 @@ function Te() {
336
336
  id: t.id,
337
337
  rating: t.rating
338
338
  });
339
- }), w((t) => {
339
+ }), se((t) => {
340
340
  e.emit("perf.cls.measured", {
341
341
  metric: "CLS",
342
342
  value: t.value,
343
343
  id: t.id,
344
344
  rating: t.rating
345
345
  });
346
- }), C((t) => {
346
+ }), w((t) => {
347
347
  e.emit("perf.inp.measured", {
348
348
  metric: "INP",
349
349
  value: t.value,
350
350
  id: t.id,
351
351
  rating: t.rating
352
352
  });
353
- }), se((t) => {
353
+ }), C((t) => {
354
354
  e.emit("perf.ttfb.measured", {
355
355
  metric: "TTFB",
356
356
  value: t.value,
@@ -360,36 +360,40 @@ function Te() {
360
360
  });
361
361
  }, [e]), null;
362
362
  }
363
- function Ee({ config: e, productSlug: t }) {
364
- return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Te, {}), e.enabled === !1 ? null : /* @__PURE__ */ G(U, { children: [
365
- e.devtools ? /* @__PURE__ */ W(D, { enabled: !0 }) : null,
366
- e.broadcast === !1 ? null : /* @__PURE__ */ W(O, {}),
367
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ W(k, { endpoint: e.backendAudit.endpoint }) : null,
368
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ W(A, {
369
- siteId: e.rybbit.siteId,
370
- scriptUrl: e.rybbit.scriptUrl,
371
- allowlist: e.rybbit.allowlist,
372
- identifyOn: e.rybbit.identifyOn,
373
- rename: e.rybbit.rename
374
- }) : null,
375
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ W(j, {
376
- endpoint: e.otel.endpoint,
377
- serviceName: e.otel.serviceName ?? `${t}-app`,
378
- flushInterval: e.otel.flushInterval
379
- }) : null
380
- ] })] });
363
+ function De({ config: e, productSlug: t, privacyConsent: n }) {
364
+ return /* @__PURE__ */ G(U, { children: [
365
+ /* @__PURE__ */ W(Ee, {}),
366
+ n ? /* @__PURE__ */ W(k, { productName: t }) : null,
367
+ e.enabled === !1 ? null : /* @__PURE__ */ G(U, { children: [
368
+ e.devtools ? /* @__PURE__ */ W(E, { enabled: !0 }) : null,
369
+ e.broadcast === !1 ? null : /* @__PURE__ */ W(D, {}),
370
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ W(O, { endpoint: e.backendAudit.endpoint }) : null,
371
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ W(A, {
372
+ siteId: e.rybbit.siteId,
373
+ scriptUrl: e.rybbit.scriptUrl,
374
+ allowlist: e.rybbit.allowlist,
375
+ identifyOn: e.rybbit.identifyOn,
376
+ rename: e.rybbit.rename
377
+ }) : null,
378
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ W(j, {
379
+ endpoint: e.otel.endpoint,
380
+ serviceName: e.otel.serviceName ?? `${t}-app`,
381
+ flushInterval: e.otel.flushInterval
382
+ }) : null
383
+ ] })
384
+ ] });
381
385
  }
382
- function De({ config: n, children: r, clearAuthStore: a }) {
383
- let { productName: o, productSlug: h = o.toLowerCase().replace(/\s+/g, ""), tagline: _ = "", domain: v, i18nProductId: y, gatewayUrls: b, authBridge: x, defaultBrand: S = "default", defaultMode: se, defaultDensity: C, defaultTypography: w, defaultGlass: T, enablePWA: E = !0, brandInitial: D = o.charAt(0), defaultGateway: O = "workspace", enableSubscriptions: k = !0, fallbackTranslations: A, queryClientOptions: j, toasterPosition: M = "bottom-right", observability: N, tourPageIdFromPath: P } = n, F = V(() => N ?? _e(h, ge()), [N, h]), I = V(() => ({
386
+ function Oe({ config: n, children: r, clearAuthStore: a }) {
387
+ let { productName: o, productSlug: h = o.toLowerCase().replace(/\s+/g, ""), tagline: _ = "", domain: v, i18nProductId: y, gatewayUrls: b, authBridge: x, defaultBrand: S = "default", defaultMode: C, defaultDensity: w, defaultTypography: se, defaultGlass: ce, enablePWA: T = !0, brandInitial: E = o.charAt(0), defaultGateway: D = "workspace", enableSubscriptions: O = !0, fallbackTranslations: k, queryClientOptions: A, toasterPosition: j = "bottom-right", observability: M, privacyConsent: N = !1, tourPageIdFromPath: P } = n, F = V(() => M ?? ve(h, _e()), [M, h]), I = V(() => ({
384
388
  productName: o,
385
389
  productSlug: h,
386
- brandInitial: D,
390
+ brandInitial: E,
387
391
  tagline: _,
388
392
  domain: v
389
393
  }), [
390
394
  o,
391
395
  h,
392
- D,
396
+ E,
393
397
  _,
394
398
  v
395
399
  ]), L = H(!1), R = H(!!x?.url), U = z((t) => {
@@ -433,11 +437,11 @@ function De({ config: n, children: r, clearAuthStore: a }) {
433
437
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
434
438
  };
435
439
  }, [b.globalBaseUrl]), Z = z(() => t("organization"), []), Q = V(() => {
436
- let e = new fe({
437
- queryCache: new de({ onError: (e) => {
440
+ let e = new pe({
441
+ queryCache: new fe({ onError: (e) => {
438
442
  i(e);
439
443
  } }),
440
- mutationCache: new ue({
444
+ mutationCache: new de({
441
445
  onSuccess: () => {
442
446
  e.invalidateQueries();
443
447
  },
@@ -446,13 +450,13 @@ function De({ config: n, children: r, clearAuthStore: a }) {
446
450
  }
447
451
  }),
448
452
  defaultOptions: { queries: {
449
- staleTime: j?.staleTime ?? 300 * 1e3,
450
- retry: j?.retry ?? 2,
451
- refetchOnWindowFocus: j?.refetchOnWindowFocus ?? !1
453
+ staleTime: A?.staleTime ?? 300 * 1e3,
454
+ retry: A?.retry ?? 2,
455
+ refetchOnWindowFocus: A?.refetchOnWindowFocus ?? !1
452
456
  } }
453
457
  });
454
458
  return e;
455
- }, [j]);
459
+ }, [A]);
456
460
  return B(() => {
457
461
  let e = () => {
458
462
  U({ force: !0 });
@@ -465,25 +469,26 @@ function De({ config: n, children: r, clearAuthStore: a }) {
465
469
  e.getLogger("shell") || e.getLogger("shell").addTransport(new ne());
466
470
  }, []), /* @__PURE__ */ W(p, {
467
471
  value: I,
468
- children: /* @__PURE__ */ W(ce, {
472
+ children: /* @__PURE__ */ W(le, {
469
473
  appName: h,
470
474
  appVersion: F.appVersion,
471
475
  appEnv: F.appEnv,
472
476
  sourceMfe: h,
473
477
  children: /* @__PURE__ */ W(g, {
474
478
  FallbackComponent: re,
475
- children: /* @__PURE__ */ G(le, { children: [/* @__PURE__ */ W(Ee, {
479
+ children: /* @__PURE__ */ G(ue, { children: [/* @__PURE__ */ W(De, {
476
480
  config: F,
477
- productSlug: h
478
- }), /* @__PURE__ */ W(pe, {
481
+ productSlug: h,
482
+ privacyConsent: N
483
+ }), /* @__PURE__ */ W(me, {
479
484
  client: Q,
480
485
  children: /* @__PURE__ */ W(ae, { children: /* @__PURE__ */ W(oe, {
481
486
  workspaceBaseUrl: b.workspaceBaseUrl,
482
487
  globalBaseUrl: b.globalBaseUrl,
483
488
  organizationId: Z,
484
489
  productSlug: h,
485
- defaultGateway: O,
486
- enableSubscriptions: k,
490
+ defaultGateway: D,
491
+ enableSubscriptions: O,
487
492
  onAuthError: J,
488
493
  onNetworkError: Y,
489
494
  onRefreshToken: q,
@@ -503,18 +508,18 @@ function De({ config: n, children: r, clearAuthStore: a }) {
503
508
  },
504
509
  children: /* @__PURE__ */ W(ee, {
505
510
  syncToUrl: !0,
506
- children: /* @__PURE__ */ W(ie, { children: /* @__PURE__ */ W(Se, {
511
+ children: /* @__PURE__ */ W(ie, { children: /* @__PURE__ */ W(Ce, {
507
512
  i18nProductId: y,
508
- fallbackTranslations: A,
513
+ fallbackTranslations: k,
509
514
  defaultBrand: S,
510
- defaultMode: se,
511
- defaultDensity: C,
512
- defaultTypography: w,
513
- defaultGlass: T,
515
+ defaultMode: C,
516
+ defaultDensity: w,
517
+ defaultTypography: se,
518
+ defaultGlass: ce,
514
519
  productName: o,
515
- brandInitial: D,
516
- enablePWA: E,
517
- toasterPosition: M,
520
+ brandInitial: E,
521
+ enablePWA: T,
522
+ toasterPosition: j,
518
523
  tourPageIdFromPath: P,
519
524
  children: r
520
525
  }) })
@@ -527,4 +532,4 @@ function De({ config: n, children: r, clearAuthStore: a }) {
527
532
  });
528
533
  }
529
534
  //#endregion
530
- export { De as AppShellProvider, _e as resolveAppShellObservabilityConfig };
535
+ export { Oe as AppShellProvider, ve as resolveAppShellObservabilityConfig };