@burdenoff/fe-libs 2026.1113.5 → 2026.1113.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
5
  size?: "icon" | "default" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,5 +1,5 @@
1
- import { useGatewayClient as e } from "../shared/graphql/GatewayContext.js";
2
- import { DEFAULT_FOOTER_COLUMNS as t, DEFAULT_SOCIAL_LINKS as n, Footer as r } from "./Footer.js";
1
+ import { DEFAULT_FOOTER_COLUMNS as e, DEFAULT_SOCIAL_LINKS as t, Footer as n } from "./Footer.js";
2
+ import { useGatewayClient as r } from "../shared/graphql/GatewayContext.js";
3
3
  import { BrandMark as i } from "./BrandMark.js";
4
4
  import { useActiveContext as a } from "../shared/providers/shell/ActiveContextProvider.js";
5
5
  import "../shared-graphql.js";
@@ -7,17 +7,17 @@ import { useI18n as o } from "../shared/providers/shell/I18nProvider.js";
7
7
  import { useEffect as s, useMemo as c, useState as l } from "react";
8
8
  import { Github as u, Globe as d, Linkedin as f, MessageCircle as p, Twitter as m, Youtube as h } from "lucide-react";
9
9
  import { jsx as g } from "react/jsx-runtime";
10
- import { gql as _ } from "@apollo/client/core";
11
- import { Link as v } from "react-router";
10
+ import { Link as _ } from "react-router";
11
+ import { gql as v } from "@apollo/client/core";
12
12
  // src/chrome/DynamicFooter.tsx
13
- var y = _`
13
+ var y = v`
14
14
  query GetFooterPublicProduct($slug: String!) {
15
15
  publicProduct(slug: $slug) {
16
16
  id
17
17
  socialLinks
18
18
  }
19
19
  }
20
- `, b = _`
20
+ `, b = v`
21
21
  query GetFooterPublicContentPages($productId: String!, $limit: Int) {
22
22
  publicContentPages(productId: $productId, limit: $limit) {
23
23
  items {
@@ -60,8 +60,8 @@ var y = _`
60
60
  function w(e) {
61
61
  return e.trim().replace(/[^A-Za-z0-9 ]/g, "").split(/\s+/).map((e, t) => t === 0 ? e.toLowerCase() : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("");
62
62
  }
63
- function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0", copyright: h, columns: _, socialLinks: T, legalPageOrder: E = C, deferRemoteData: D = !1, hideOnInstalledApp: O = !0 }) {
64
- let { workspaceId: k, projectId: A } = a(), j = e("global"), { t: M } = o(), [N, P] = l(null), [F, I] = l(null);
63
+ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0", copyright: h, columns: v, socialLinks: T, legalPageOrder: E = C, deferRemoteData: D = !1, hideOnInstalledApp: O = !0 }) {
64
+ let { workspaceId: k, projectId: A } = a(), j = r("global"), { t: M } = o(), [N, P] = l(null), [F, I] = l(null);
65
65
  s(() => {
66
66
  if (!j || D) return;
67
67
  let e = !1;
@@ -115,10 +115,10 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
115
115
  u
116
116
  ]);
117
117
  let L = c(() => {
118
- let e = _ ?? t, n = N ? e.map((e) => e.title === "Legal" ? {
118
+ let t = v ?? e, n = N ? t.map((e) => e.title === "Legal" ? {
119
119
  ...e,
120
120
  links: N
121
- } : e) : e, r = (e, t) => {
121
+ } : e) : t, r = (e, t) => {
122
122
  let n = M(e);
123
123
  return n === e ? t : n;
124
124
  };
@@ -132,15 +132,15 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
132
132
  }));
133
133
  }, [
134
134
  N,
135
- _,
135
+ v,
136
136
  M
137
137
  ]);
138
- return /* @__PURE__ */ g(r, {
138
+ return /* @__PURE__ */ g(n, {
139
139
  logo: /* @__PURE__ */ g(i, { size: "sidenav" }),
140
140
  productName: f,
141
141
  tagline: p,
142
142
  columns: L,
143
- socialLinks: T ?? F ?? n,
143
+ socialLinks: T ?? F ?? t,
144
144
  version: m,
145
145
  copyright: h,
146
146
  hideOnInstalledApp: O,
@@ -154,7 +154,7 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
154
154
  rel: "noopener noreferrer",
155
155
  className: r,
156
156
  children: n
157
- }) : /* @__PURE__ */ g(v, {
157
+ }) : /* @__PURE__ */ g(_, {
158
158
  to: e,
159
159
  className: r,
160
160
  children: n
@@ -1,5 +1,5 @@
1
- import { isInstalledApp as e } from "../shared/native/platform.js";
2
- import { HeaderThemeSwitcher as t } from "./HeaderThemeSwitcher.js";
1
+ import { HeaderThemeSwitcher as e } from "./HeaderThemeSwitcher.js";
2
+ import { isInstalledApp as t } from "../shared/native/platform.js";
3
3
  import "../shared-native.js";
4
4
  import { useShellLabel as n } from "../shared/providers/shell/useShellLabel.js";
5
5
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -48,7 +48,7 @@ var a = ({ logo: a, appName: o, onLogoClick: s, onMenuToggle: c, onSearchClick:
48
48
  className: "flex items-center gap-1 md:gap-control-gap",
49
49
  children: [
50
50
  b,
51
- x && !e() && /* @__PURE__ */ r("div", {
51
+ x && !t() && /* @__PURE__ */ r("div", {
52
52
  className: E ? "hidden md:block empty:hidden" : "empty:hidden",
53
53
  children: x
54
54
  }),
@@ -118,7 +118,7 @@ var a = ({ logo: a, appName: o, onLogoClick: s, onMenuToggle: c, onSearchClick:
118
118
  })
119
119
  }), f > 0 && /* @__PURE__ */ r("span", { className: "absolute top-1 end-1 size-2 bg-status-error-bg rounded-full border border-bg-elevated" })]
120
120
  }) : null),
121
- g && /* @__PURE__ */ r(t, { mobileOptimized: E }),
121
+ g && /* @__PURE__ */ r(e, { mobileOptimized: E }),
122
122
  w
123
123
  ]
124
124
  })]
@@ -1,6 +1,6 @@
1
- import { useGatewayClient as e } from "../graphql/GatewayContext.js";
1
+ import { useI18n as e } from "../providers/shell/I18nProvider.js";
2
+ import { useGatewayClient as t } from "../graphql/GatewayContext.js";
2
3
  import "../../ui.js";
3
- import { useI18n as t } from "../providers/shell/I18nProvider.js";
4
4
  import { useAuth as n } from "../providers/shell/AuthProvider.js";
5
5
  import { useActiveContext as r } from "../providers/shell/ActiveContextProvider.js";
6
6
  import { Card as ee, CardContent as te } from "../../ui/card.js";
@@ -22,11 +22,11 @@ import { getSourceContext as c, getString as fe, normalizeThreadSegment as l, so
22
22
  import { WidgetHeader as me } from "./contextConversationWidget/WidgetHeader.js";
23
23
  import { useEffect as u, useMemo as d, useRef as he, useState as f } from "react";
24
24
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
25
- import { useQuery as h } from "@apollo/client/react";
26
25
  import { useNavigate as ge } from "react-router";
26
+ import { useQuery as h } from "@apollo/client/react";
27
27
  // src/shared/components/ContextConversationWidget.tsx
28
28
  function g({ className: g, widgetKey: _ }) {
29
- let { t: v } = t(), { workspaceId: y } = r(), b = n(), x = ne(), S = e("workspace"), C = ge(), [w, T] = f(null), [E, D] = f(null), [O, k] = f(""), [A, _e] = f(() => typeof window < "u" && window.innerWidth < 768), [j, M] = f(null), [N, P] = f(null), [F, I] = f(""), [L, R] = f(null), [z, B] = f([]), V = he(null), H = d(() => (e, t) => {
29
+ let { t: v } = e(), { workspaceId: y } = r(), b = n(), x = ne(), S = t("workspace"), C = ge(), [w, T] = f(null), [E, D] = f(null), [O, k] = f(""), [A, _e] = f(() => typeof window < "u" && window.innerWidth < 768), [j, M] = f(null), [N, P] = f(null), [F, I] = f(""), [L, R] = f(null), [z, B] = f([]), V = he(null), H = d(() => (e, t) => {
30
30
  let n = v(e);
31
31
  return n === e ? t : n;
32
32
  }, [v]), U = b.user?.id ?? null, W = _ ?? x.widgetKey ?? "default", G = d(() => {
@@ -1,6 +1,6 @@
1
1
  import { GATEWAYS as e } from "../../shared-config.js";
2
- import { resolveGatewayUrls as t } from "../config/gatewayUrls.js";
3
- import { getActiveWorkspaceToken as n, resolveActiveProfileId as r, setProfileWorkspaceToken as i } from "../providers/shell/ProfileStorageManager.js";
2
+ import { getActiveWorkspaceToken as t, resolveActiveProfileId as n, setProfileWorkspaceToken as r } from "../providers/shell/ProfileStorageManager.js";
3
+ import { resolveGatewayUrls as i } from "../config/gatewayUrls.js";
4
4
  import { readActiveContextValueWithUrlPrecedence as a } from "../providers/shell/ActiveContextStorage.js";
5
5
  import { getValidAccessTokenFromStorage as o, sanitizeExtraHeaders as s, sanitizeGeography as c, validateGatewayBaseUrl as l } from "./security.js";
6
6
  import { isWorkspaceTokenValidForContext as u } from "./workspaceToken.js";
@@ -28,7 +28,7 @@ function b() {
28
28
  }
29
29
  function x() {
30
30
  try {
31
- return n();
31
+ return t();
32
32
  } catch {
33
33
  return null;
34
34
  }
@@ -116,16 +116,16 @@ function ne(e) {
116
116
  projectId: typeof e.projectId == "string" ? e.projectId : k() || void 0
117
117
  };
118
118
  }
119
- function j(e, t, n) {
119
+ function j(e, t, i) {
120
120
  try {
121
- let a = r() ?? S();
121
+ let a = n() ?? S();
122
122
  if (!a) return;
123
- i(a, t), sessionStorage.setItem("burdenoff-active-context-workspace", e), n && sessionStorage.setItem("burdenoff-active-context-organization", n);
123
+ r(a, t), sessionStorage.setItem("burdenoff-active-context-workspace", e), i && sessionStorage.setItem("burdenoff-active-context-organization", i);
124
124
  } catch {}
125
125
  }
126
126
  function M() {
127
127
  try {
128
- return r() ?? S();
128
+ return n() ?? S();
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -189,9 +189,9 @@ async function P(e) {
189
189
  });
190
190
  return y.set(_, S), N(S, s, null);
191
191
  }
192
- function F(n, r) {
193
- let i = e[n], a = t(), o = n === "global" ? a.globalBaseUrl : a.workspaceBaseUrl, s = r || o;
194
- return `${s.endsWith("/") ? s.slice(0, -1) : s}${i.graphql}`;
192
+ function F(t, n) {
193
+ let r = e[t], a = i(), o = t === "global" ? a.globalBaseUrl : a.workspaceBaseUrl, s = n || o;
194
+ return `${s.endsWith("/") ? s.slice(0, -1) : s}${r.graphql}`;
195
195
  }
196
196
  function I(e) {
197
197
  return e.reason ?? new DOMException("The operation was aborted.", "AbortError");
@@ -397,9 +397,9 @@ function _e(e, t, n) {
397
397
  i && (r.delete(n), i.timer &&= (clearTimeout(i.timer), null), he(e, t, i.requests));
398
398
  }
399
399
  async function $(e) {
400
- let { gateway: n, query: r, variables: i, operationName: a, authToken: o, workspaceToken: c, workspaceId: d, organizationId: f, tenantId: h, projectId: g, locale: v, baseUrl: y, extraHeaders: S, signal: C, suppressGlobalErrorEvent: E, keepalive: D, batch: k } = e;
400
+ let { gateway: t, query: n, variables: r, operationName: a, authToken: o, workspaceToken: c, workspaceId: d, organizationId: f, tenantId: h, projectId: g, locale: v, baseUrl: y, extraHeaders: S, signal: C, suppressGlobalErrorEvent: E, keepalive: D, batch: k } = e;
401
401
  L(C);
402
- let A = l(F(n, y));
402
+ let A = l(F(t, y));
403
403
  if (e.authTokenMode !== void 0 && !["refreshable", "pinned"].includes(e.authTokenMode)) throw Error("Invalid request authentication mode.");
404
404
  let j = e.authTokenMode === "pinned";
405
405
  if (j && Object.keys(S ?? {}).some((e) => [
@@ -415,11 +415,11 @@ async function $(e) {
415
415
  if (!M && !j && !e.skipAuthRetry && typeof window < "u" && !window.location.pathname.startsWith("/auth/") && ee()) {
416
416
  let e = await import("../utils/authErrorHandling.js");
417
417
  await e.attemptTokenRefresh({
418
- globalBaseUrl: n === "global" && y ? y : t().globalBaseUrl,
418
+ globalBaseUrl: t === "global" && y ? y : i().globalBaseUrl,
419
419
  ...e.getSharedTokenRefreshRefs()
420
420
  }) ? M = b() : _({
421
421
  operationName: a,
422
- gateway: n
422
+ gateway: t
423
423
  }), L(C);
424
424
  }
425
425
  let N = v ?? T(), I = ne({
@@ -433,9 +433,9 @@ async function $(e) {
433
433
  };
434
434
  M && (R.Authorization = `Bearer ${M}`), N && (R["Accept-Language"] = N);
435
435
  let z = te();
436
- if (z?.country && (R["X-Geo-Country"] = z.country), z?.currency && (R["X-Geo-Currency"] = z.currency), z?.timezone && (R["X-Geo-Timezone"] = z.timezone), n === "workspace" ? c !== !1 : c) {
436
+ if (z?.country && (R["X-Geo-Country"] = z.country), z?.currency && (R["X-Geo-Currency"] = z.currency), z?.timezone && (R["X-Geo-Timezone"] = z.timezone), t === "workspace" ? c !== !1 : c) {
437
437
  let e = typeof c == "string" ? c : x();
438
- e && !u(e, I) && (e = null), !e && (c === !0 || n === "workspace" && c === void 0 || typeof c == "string") && (e = await P({
438
+ e && !u(e, I) && (e = null), !e && (c === !0 || t === "workspace" && c === void 0 || typeof c == "string") && (e = await P({
439
439
  url: A,
440
440
  authToken: M,
441
441
  workspaceId: I.workspaceId,
@@ -443,14 +443,14 @@ async function $(e) {
443
443
  projectId: I.projectId,
444
444
  locale: N,
445
445
  signal: C,
446
- currentQuery: r
446
+ currentQuery: n
447
447
  }), L(C)), e && (R["X-Workspace-Authorization"] = `Bearer ${e}`);
448
448
  }
449
- if (n === "workspace" || d) {
449
+ if (t === "workspace" || d) {
450
450
  let e = I.workspaceId;
451
451
  e && (R["x-workspace-id"] = e);
452
452
  }
453
- if (n === "global" || f) {
453
+ if (t === "global" || f) {
454
454
  let e = I.organizationId;
455
455
  e && (R["x-org-id"] = e);
456
456
  }
@@ -458,20 +458,20 @@ async function $(e) {
458
458
  let e = typeof h == "string" ? h : O();
459
459
  e && (R["x-tenant-id"] = e);
460
460
  }
461
- if (n === "workspace" || g) {
461
+ if (t === "workspace" || g) {
462
462
  let e = I.projectId;
463
463
  e && (R["x-project-id"] = e);
464
464
  }
465
465
  let B = s(S);
466
466
  B && Object.assign(R, B);
467
- let V = { query: r };
468
- i && (V.variables = i), a && (V.operationName = a);
469
- let H = async (r) => {
470
- if (j || e.skipAuthRetry || !M || typeof window > "u" || !r?.length) return null;
471
- let i = await import("../utils/authErrorHandling.js");
472
- return i.hasAuthGraphQLErrors(r) ? await i.attemptTokenRefresh({
473
- globalBaseUrl: n === "global" && y ? y : t().globalBaseUrl,
474
- ...i.getSharedTokenRefreshRefs()
467
+ let V = { query: n };
468
+ r && (V.variables = r), a && (V.operationName = a);
469
+ let H = async (n) => {
470
+ if (j || e.skipAuthRetry || !M || typeof window > "u" || !n?.length) return null;
471
+ let r = await import("../utils/authErrorHandling.js");
472
+ return r.hasAuthGraphQLErrors(n) ? await r.attemptTokenRefresh({
473
+ globalBaseUrl: t === "global" && y ? y : i().globalBaseUrl,
474
+ ...r.getSharedTokenRefreshRefs()
475
475
  }) ? $({
476
476
  ...e,
477
477
  authToken: void 0,
@@ -479,7 +479,7 @@ async function $(e) {
479
479
  skipAuthRetry: !0
480
480
  }) : (_({
481
481
  operationName: a,
482
- gateway: n
482
+ gateway: t
483
483
  }), null) : null;
484
484
  };
485
485
  try {
@@ -4,10 +4,10 @@ import { Markdown as t } from "../components/Markdown.js";
4
4
  import { useEffect as n, useState as r } from "react";
5
5
  import { ArrowLeft as i, Clock as a, FileText as o, Shield as s } from "lucide-react";
6
6
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
- import { gql as u } from "@apollo/client";
8
- import { Link as d, useParams as f } from "react-router";
7
+ import { Link as u, useParams as d } from "react-router";
8
+ import { gql as f } from "@apollo/client";
9
9
  // src/shared/pages/LegalPage.tsx
10
- var p = u`
10
+ var p = f`
11
11
  query GetPublicContentPage($slug: String!, $productId: String!) {
12
12
  publicResolvedContentPage(slug: $slug, productId: $productId) {
13
13
  id
@@ -28,8 +28,8 @@ var p = u`
28
28
  security: "security",
29
29
  compliance: "compliance"
30
30
  };
31
- function h({ productId: u, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "Back to Dashboard" }) {
32
- let { slug: v } = f(), y = e("global"), [b, x] = r(null), [S, C] = r(!0), [w, T] = r(null), E = v ? h[v] || v : "";
31
+ function h({ productId: f, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "Back to Dashboard" }) {
32
+ let { slug: v } = d(), y = e("global"), [b, x] = r(null), [S, C] = r(!0), [w, T] = r(null), E = v ? h[v] || v : "";
33
33
  return n(() => {
34
34
  if (!E || !y) return;
35
35
  let e = !1;
@@ -39,7 +39,7 @@ function h({ productId: u, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "B
39
39
  query: p,
40
40
  variables: {
41
41
  slug: E,
42
- productId: u
42
+ productId: f
43
43
  },
44
44
  fetchPolicy: "network-only"
45
45
  });
@@ -60,7 +60,7 @@ function h({ productId: u, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "B
60
60
  };
61
61
  }, [
62
62
  E,
63
- u,
63
+ f,
64
64
  y
65
65
  ]), S ? /* @__PURE__ */ c("div", {
66
66
  className: "min-h-screen bg-[var(--color-bg-canvas)] flex items-center justify-center",
@@ -91,7 +91,7 @@ function h({ productId: u, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "B
91
91
  className: "text-text-secondary text-sm",
92
92
  children: "The requested legal page could not be found. It may not exist yet or there was an error loading it."
93
93
  }),
94
- /* @__PURE__ */ c(d, {
94
+ /* @__PURE__ */ c(u, {
95
95
  to: g,
96
96
  className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
97
97
  children: _
@@ -103,7 +103,7 @@ function h({ productId: u, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "B
103
103
  children: /* @__PURE__ */ l("div", {
104
104
  className: "max-w-4xl mx-auto px-6 py-8",
105
105
  children: [
106
- /* @__PURE__ */ l(d, {
106
+ /* @__PURE__ */ l(u, {
107
107
  to: g,
108
108
  className: "\n inline-flex items-center gap-2 mb-6\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n ",
109
109
  children: [/* @__PURE__ */ c(i, { size: 18 }), /* @__PURE__ */ c("span", {
@@ -141,22 +141,22 @@ function h({ productId: u, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "B
141
141
  children: /* @__PURE__ */ l("div", {
142
142
  className: "flex flex-wrap gap-4 text-sm text-text-tertiary",
143
143
  children: [
144
- /* @__PURE__ */ c(d, {
144
+ /* @__PURE__ */ c(u, {
145
145
  to: "/legal/privacy",
146
146
  className: "hover:text-text-primary transition-colors",
147
147
  children: "Privacy Policy"
148
148
  }),
149
- /* @__PURE__ */ c(d, {
149
+ /* @__PURE__ */ c(u, {
150
150
  to: "/legal/terms",
151
151
  className: "hover:text-text-primary transition-colors",
152
152
  children: "Terms of Service"
153
153
  }),
154
- /* @__PURE__ */ c(d, {
154
+ /* @__PURE__ */ c(u, {
155
155
  to: "/legal/security",
156
156
  className: "hover:text-text-primary transition-colors",
157
157
  children: "Security"
158
158
  }),
159
- /* @__PURE__ */ c(d, {
159
+ /* @__PURE__ */ c(u, {
160
160
  to: "/legal/compliance",
161
161
  className: "hover:text-text-primary transition-colors",
162
162
  children: "Compliance"
@@ -1,6 +1,6 @@
1
- import { graphqlFetch as e } from "../../graphql/fetch.js";
2
- import { useAuth as t } from "./AuthProvider.js";
3
- import { I18nProvider as n, useI18n as r } from "./I18nProvider.js";
1
+ import { useAuth as e } from "./AuthProvider.js";
2
+ import { I18nProvider as t, useI18n as n } from "./I18nProvider.js";
3
+ import { graphqlFetch as r } from "../../graphql/fetch.js";
4
4
  import { DEFAULT_PLATFORM_I18N_PRODUCT_ID as i, createLayeredTranslationLoader as a, effectivePlatformId as o, translationCacheScope as s } from "./translationLayers.js";
5
5
  import { getDefaultTranslationPersistence as c } from "./translationStore.js";
6
6
  import "../../../shared-graphql.js";
@@ -9,14 +9,14 @@ import { jsx as d } from "react/jsx-runtime";
9
9
  import { DirectionProvider as f } from "@radix-ui/react-direction";
10
10
  // src/shared/providers/shell/ProfileI18nBridge.tsx
11
11
  var p = "\n query ExportTranslations($productId: String!, $languageCode: String!, $format: ImportJobFormat!) {\n exportTranslations(productId: $productId, languageCode: $languageCode, format: $format) {\n format\n url\n }\n }\n";
12
- async function m(t, n) {
13
- let r = await e({
12
+ async function m(e, t) {
13
+ let n = await r({
14
14
  gateway: "global",
15
15
  query: p,
16
16
  operationName: "ExportTranslations",
17
17
  variables: {
18
- productId: t,
19
- languageCode: n,
18
+ productId: e,
19
+ languageCode: t,
20
20
  format: "JSON"
21
21
  },
22
22
  extraHeaders: {
@@ -24,19 +24,19 @@ async function m(t, n) {
24
24
  "x-actor-type": "service"
25
25
  }
26
26
  });
27
- if (r.errors?.length || !r.data?.exportTranslations?.url) return null;
28
- let i = r.data.exportTranslations.url, a = decodeURIComponent(i.replace("data:application/json;charset=utf-8,", ""));
27
+ if (n.errors?.length || !n.data?.exportTranslations?.url) return null;
28
+ let i = n.data.exportTranslations.url, a = decodeURIComponent(i.replace("data:application/json;charset=utf-8,", ""));
29
29
  return JSON.parse(a);
30
30
  }
31
31
  function h({ children: e }) {
32
- let { dir: t } = r();
32
+ let { dir: t } = n();
33
33
  return /* @__PURE__ */ d(f, {
34
34
  dir: t,
35
35
  children: e
36
36
  });
37
37
  }
38
- function g({ children: e, i18nProductId: r, platformI18nProductId: f = i, defaultLocale: p = "en", fallbackTranslations: g, disableDynamicFetch: _ = !1, persistTranslations: v = !0, directionMode: y = "off" }) {
39
- let { user: b } = t(), x = b?.id ?? null, S = !_, C = o(r, f), w = l((e) => g?.[e] ?? {}, [g]), T = u(() => a({
38
+ function g({ children: n, i18nProductId: r, platformI18nProductId: f = i, defaultLocale: p = "en", fallbackTranslations: g, disableDynamicFetch: _ = !1, persistTranslations: v = !0, directionMode: y = "off" }) {
39
+ let { user: b } = e(), x = b?.id ?? null, S = !_, C = o(r, f), w = l((e) => g?.[e] ?? {}, [g]), T = u(() => a({
40
40
  productId: r,
41
41
  platformId: C,
42
42
  fallback: w,
@@ -56,7 +56,7 @@ function g({ children: e, i18nProductId: r, platformI18nProductId: f = i, defaul
56
56
  hi: {},
57
57
  ar: {}
58
58
  }, [g]);
59
- return /* @__PURE__ */ d(n, {
59
+ return /* @__PURE__ */ d(t, {
60
60
  defaultLocale: p,
61
61
  translations: D,
62
62
  loadTranslations: S ? T : void 0,
@@ -66,7 +66,7 @@ function g({ children: e, i18nProductId: r, platformI18nProductId: f = i, defaul
66
66
  directionMode: y,
67
67
  profileId: x,
68
68
  showChildrenWhileLoading: !0,
69
- children: /* @__PURE__ */ d(h, { children: e })
69
+ children: /* @__PURE__ */ d(h, { children: n })
70
70
  });
71
71
  }
72
72
  export { g as ProfileI18nBridge };
@@ -19,6 +19,7 @@
19
19
  * "bf-p-{profileId}-theme-density" → string
20
20
  * "bf-p-{profileId}-theme-typography" → string
21
21
  * "bf-p-{profileId}-sidebar-collapsed" → "true"|"false"
22
+ * "bf-p-{profileId}-open-{sectionKey}" → "true"|"false" (remembered open sections, BOFF-11841)
22
23
  * sessionStorage:
23
24
  * "bf-active-profile" → string (profileId for this tab)
24
25
  */
@@ -81,6 +82,14 @@ export declare function getSwitchableProfiles(activeProfileId: string | null): P
81
82
  export declare function setProfiles(profiles: ProfileMeta[]): void;
82
83
  export declare function addProfile(meta: ProfileMeta): void;
83
84
  export declare function removeProfile(profileId: string): void;
85
+ /**
86
+ * Whether this profile left a section open. `null` means the profile never
87
+ * toggled it (or storage holds something else), so the caller's default applies.
88
+ * Throws when storage is unavailable; callers keep their own fallback.
89
+ */
90
+ export declare function getProfileOpenSection(profileId: string, sectionKey: string): boolean | null;
91
+ /** Remember whether this profile left a section open. Throws when storage is unavailable. */
92
+ export declare function setProfileOpenSection(profileId: string, sectionKey: string, open: boolean): void;
84
93
  export declare function removeAllProfiles(): void;
85
94
  export declare function getActiveProfileId(): string | null;
86
95
  export declare function setActiveProfileId(profileId: string): void;