@declarion/react 0.59.2 → 0.60.0

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 (35) hide show
  1. package/dist-lib/{AgentChatPanel.impl-DBH1Ff4G.js → AgentChatPanel.impl-BY-Ir7Sh.js} +39 -39
  2. package/dist-lib/{DetailAuditStrip-9eJM2Fml.js → DetailAuditStrip-B9p1XhjC.js} +11 -11
  3. package/dist-lib/{DraggableChildrenTable-4RZC351U.js → DraggableChildrenTable-CtL7rdT6.js} +34 -34
  4. package/dist-lib/{Grid-CQabaBLx.js → Grid-CYERLdXO.js} +1 -1
  5. package/dist-lib/{LayoutRenderer-DGKWZKpW.js → LayoutRenderer-B08IJKsZ.js} +465 -465
  6. package/dist-lib/{ListCardsBody-DfGmyNIu.js → ListCardsBody-Dje_rays.js} +26 -26
  7. package/dist-lib/{MarkdownRenderer-BDbzDv_y.js → MarkdownRenderer-N0IWjTH5.js} +1 -1
  8. package/dist-lib/{RefreshControl-Bhoib0ZA.js → RefreshControl-BEWSHtAC.js} +26 -26
  9. package/dist-lib/{SmartDetailPage.impl-DFjz29Ff.js → SmartDetailPage.impl-CYiM-ITJ.js} +470 -470
  10. package/dist-lib/SmartListPage.impl-Db_Pv9Xc.js +3051 -0
  11. package/dist-lib/SmartRecordListPage.impl-hbbLglC1.js +780 -0
  12. package/dist-lib/{SortHeaderMenu-Cijxk4cX.js → SortHeaderMenu-DKKeCGTH.js} +1 -1
  13. package/dist-lib/{action-dispatch-DY0c8U81.js → action-dispatch-DbiOpvd6.js} +187 -187
  14. package/dist-lib/api/data.d.ts +5 -1
  15. package/dist-lib/{cardProjection-Bkl2SSYz.js → cardProjection-nveYLvHR.js} +1 -1
  16. package/dist-lib/components/pages/list/filter-meta.d.ts +1 -1
  17. package/dist-lib/components/pages/list/useActiveView.d.ts +9 -2
  18. package/dist-lib/components/pages/list/useListViews.d.ts +3 -2
  19. package/dist-lib/{failure-v-uGSpbX.js → failure-BT54OLHy.js} +5 -5
  20. package/dist-lib/{format-count-DA4wmmWR.js → format-count-DLFCdtME.js} +246 -246
  21. package/dist-lib/hooks/useObject.d.ts +3 -2
  22. package/dist-lib/index.js +613 -613
  23. package/dist-lib/lib/field-classification.d.ts +10 -1
  24. package/dist-lib/{peekDraftStore-D-cTbiIr.js → peekDraftStore-DSExeoAh.js} +6 -6
  25. package/dist-lib/{registry-Cb3W-czW.js → registry-CRPxNbkk.js} +444 -438
  26. package/dist-lib/testing.js +2 -2
  27. package/dist-lib/{useAgentConversation-D97IqE-J.js → useAgentConversation-BavrHfrU.js} +14 -14
  28. package/dist-lib/{useCurrentScreen-BL5NZFCw.js → useCurrentScreen-BPq7HMF1.js} +1083 -1017
  29. package/dist-lib/{useListQuery-BG1GyKtJ.js → useListQuery-CG1WM4cv.js} +5 -5
  30. package/dist-lib/{field-classification-C28XE-_P.js → useOwnRefresh-C18iWRgr.js} +132 -158
  31. package/dist-lib/{useProperties-4Lg3odrt.js → useProperties-C35JrjwQ.js} +2 -2
  32. package/dist-lib/{useTabSearchMirror-ZVLlINBX.js → useTabSearchMirror-DKktWWLB.js} +1 -1
  33. package/package.json +1 -1
  34. package/dist-lib/SmartListPage.impl-BrZLE_Gb.js +0 -3046
  35. package/dist-lib/SmartRecordListPage.impl-C1FJLr80.js +0 -780
package/dist-lib/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { a as e, r as t, s as n, t as r } from "./DynamicIcon-DW5krHuX.js";
2
- import { $t as i, At as a, Bt as o, C as s, Cn as c, Dn as l, E as u, Et as d, F as f, Fn as p, Ft as m, Gt as h, Ht as g, I as _, In as v, It as y, Jt as b, Kt as x, Ln as S, M as C, Mn as w, N as T, Nn as E, P as D, Pn as ee, Pt as O, Qt as te, Rn as k, Rt as A, S as ne, Sn as re, St as j, T as ie, Tn as ae, Tt as oe, Ut as se, Vt as ce, W as le, Wt as M, X as ue, Xt as de, Yt as fe, Zt as pe, _n as me, an as he, at as ge, b as _e, bn as ve, bt as ye, c as be, cn as xe, ct as Se, d as Ce, dn as we, dt as Te, en as N, et as Ee, f as De, fn as Oe, gn as ke, ht as Ae, i as je, in as Me, jn as Ne, jt as Pe, kt as P, l as Fe, lt as Ie, mt as Le, n as Re, nn as ze, nt as Be, o as Ve, on as F, ot as He, qt as Ue, r as We, rn as I, rt as Ge, s as Ke, sn as qe, st as Je, t as Ye, tn as Xe, tt as Ze, u as Qe, un as $e, ut as et, w as tt, wt as nt, x as rt, xn as it, xt as at, yn as ot, zt as st } from "./useCurrentScreen-BL5NZFCw.js";
3
- import { _ as ct, a as lt, c as ut, d as dt, g as ft, h as pt, i as mt, l as ht, n as gt, o as _t, p as vt, r as yt, s as bt, t as xt, u as St, v as Ct } from "./format-count-DA4wmmWR.js";
4
- import { _ as wt, a as Tt, c as Et, d as Dt, f as Ot, g as kt, h as At, i as jt, l as Mt, m as Nt, n as Pt, o as Ft, p as It, r as Lt, s as Rt, t as zt, u as Bt } from "./RefreshControl-Bhoib0ZA.js";
5
- import { $ as Vt, A as Ht, B as Ut, C as Wt, D as Gt, E as Kt, G as qt, K as Jt, L as Yt, P as Xt, Q as Zt, S as Qt, T as $t, V as en, X as tn, Y as nn, Z as rn, _ as an, a as on, b as sn, c as cn, d as ln, et as un, f as L, g as dn, h as fn, i as pn, it as mn, m as hn, n as gn, o as _n, p as R, q as vn, r as yn, s as bn, t as z, tt as xn, u as Sn, v as Cn, w as wn, x as Tn, y as En, z as Dn } from "./useText-BFDCTUSo.js";
6
- import { a as On, c as kn, f as An, h as jn, i as Mn, l as B, m as Nn, n as Pn, p as Fn, r as In, s as Ln, t as Rn, u as zn } from "./registry-Cb3W-czW.js";
7
- import { a as Bn, i as Vn, n as Hn, r as Un, t as Wn } from "./DetailAuditStrip-9eJM2Fml.js";
8
- import { t as Gn } from "./Check-DAfMbQIw.js";
9
- import { a as Kn, h as qn, i as Jn, p as Yn, s as Xn, t as V, u as Zn, y as Qn } from "./failure-v-uGSpbX.js";
10
- import { A as $n, C as er, D as tr, F as nr, I as rr, L as H, M as ir, N as ar, O as or, P as sr, R as cr, T as lr, _ as ur, a as dr, b as fr, f as pr, g as mr, h as hr, i as gr, j as _r, n as vr, o as yr, p as br, r as xr, s as Sr, t as Cr, v as wr, x as Tr, y as Er, z as U } from "./field-classification-C28XE-_P.js";
2
+ import { $t as i, An as a, Bt as o, C as s, Ct as c, Dn as l, Dt as u, E as d, En as f, Et as p, F as m, Fn as h, Ft as g, Gn as _, Gt as v, Hn as y, I as b, It as x, Jn as S, Jt as C, Kn as w, Kt as T, Ln as E, M as D, Mn as O, Mt as ee, N as te, Nn as ne, P as re, Pt as k, Qt as ie, S as ae, Sn as oe, St as se, T as ce, Tt as le, Un as ue, Vn as de, Vt as fe, W as pe, Wn as me, Wt as he, X as ge, Xt as _e, Yt as ve, Zt as ye, _n as be, an as xe, at as Se, b as Ce, bn as we, bt as Te, c as Ee, cn as De, ct as Oe, d as ke, dn as Ae, dt as je, en as Me, et as Ne, f as Pe, fn as Fe, gn as A, hn as Ie, ht as Le, i as Re, in as ze, jn as Be, jt as Ve, kn as He, l as Ue, ln as We, lt as Ge, mn as Ke, mt as qe, n as Je, nn as Ye, nt as Xe, o as Ze, on as Qe, ot as $e, pn as j, qn as M, r as et, rn as tt, rt as nt, s as rt, sn as it, st as at, t as ot, tn as N, tt as st, u as ct, un as P, ut as lt, vn as ut, w as dt, wt as ft, x as pt, xn as mt, xt as ht, zt as F } from "./useCurrentScreen-BPq7HMF1.js";
3
+ import { _ as gt, a as _t, c as vt, d as yt, g as bt, h as xt, i as St, l as Ct, n as wt, o as Tt, p as Et, r as Dt, s as Ot, t as kt, u as At, v as jt } from "./format-count-DLFCdtME.js";
4
+ import { _ as Mt, a as Nt, c as Pt, d as Ft, f as It, g as Lt, h as Rt, i as zt, l as Bt, m as Vt, n as Ht, o as Ut, p as Wt, r as Gt, s as Kt, t as qt, u as Jt } from "./RefreshControl-BEWSHtAC.js";
5
+ import { $ as Yt, A as Xt, B as Zt, C as Qt, D as I, E as $t, G as en, K as tn, L as nn, P as rn, Q as an, S as on, T as sn, V as cn, X as ln, Y as un, Z as dn, _ as fn, a as pn, b as mn, c as hn, d as gn, et as _n, f as L, g as vn, h as yn, i as bn, it as xn, m as Sn, n as Cn, o as wn, p as R, q as Tn, r as En, s as Dn, t as z, tt as On, u as kn, v as An, w as jn, x as Mn, y as Nn, z as Pn } from "./useText-BFDCTUSo.js";
6
+ import { a as Fn, c as In, f as Ln, h as Rn, i as zn, l as B, m as Bn, n as Vn, p as Hn, r as Un, s as Wn, t as Gn, u as Kn } from "./registry-CRPxNbkk.js";
7
+ import { a as qn, i as Jn, n as Yn, r as Xn, t as Zn } from "./DetailAuditStrip-B9p1XhjC.js";
8
+ import { t as Qn } from "./Check-DAfMbQIw.js";
9
+ import { a as $n, h as er, i as tr, p as nr, s as rr, t as V, u as ir, y as ar } from "./failure-BT54OLHy.js";
10
+ import { A as H, C as or, D as sr, E as cr, M as U, O as lr, T as ur, a as dr, b as fr, c as pr, d as mr, f as hr, g as gr, j as _r, k as vr, l as yr, m as br, o as xr, p as Sr, u as Cr, v as wr, w as Tr, x as Er } from "./useOwnRefresh-C18iWRgr.js";
11
11
  import { n as Dr } from "./value-By1-WJ8J.js";
12
- import { C as Or, S as kr, _ as Ar, a as jr, b as Mr, c as Nr, d as Pr, g as Fr, i as Ir, n as Lr, o as Rr, p as zr, r as Br, s as Vr, t as Hr, v as Ur, x as Wr, y as Gr } from "./action-dispatch-DY0c8U81.js";
13
- import { n as Kr, r as qr, t as Jr } from "./useProperties-4Lg3odrt.js";
14
- import { a as Yr, d as Xr, f as Zr, h as Qr, o as $r, p as ei, r as ti, s as ni, t as ri } from "./useTabSearchMirror-ZVLlINBX.js";
15
- import { a as ii, c as ai, d as oi, f as si, g as ci, h as li, i as ui, l as di, m as fi, n as pi, o as mi, p as hi, r as gi, s as _i, t as vi, u as yi } from "./useAgentConversation-D97IqE-J.js";
12
+ import { C as Or, S as kr, _ as Ar, a as jr, b as Mr, c as Nr, d as Pr, g as Fr, i as Ir, n as Lr, o as Rr, p as zr, r as Br, s as Vr, t as Hr, v as Ur, x as Wr, y as Gr } from "./action-dispatch-DbiOpvd6.js";
13
+ import { n as Kr, r as qr, t as Jr } from "./useProperties-C35JrjwQ.js";
14
+ import { a as Yr, d as Xr, f as Zr, h as Qr, o as $r, p as ei, r as ti, s as ni, t as ri } from "./useTabSearchMirror-DKktWWLB.js";
15
+ import { a as ii, c as ai, d as oi, f as si, g as ci, h as li, i as ui, l as di, m as fi, n as pi, o as mi, p as hi, r as gi, s as _i, t as vi, u as yi } from "./useAgentConversation-BavrHfrU.js";
16
16
  import { Fragment as bi, Suspense as xi, lazy as Si, useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as J } from "react";
17
17
  import { BrowserRouter as Ci, Link as wi, Navigate as Ti, Outlet as Ei, Route as Y, Routes as Di, useLocation as Oi, useLocation as ki, useNavigate as Ai, useNavigate as ji, useNavigationType as Mi, useParams as Ni, useSearchParams as Pi, useSearchParams as Fi } from "react-router";
18
18
  import { QueryClient as Ii, QueryClientProvider as Li, useMutation as Ri, useQuery as zi, useQueryClient as Bi } from "@tanstack/react-query";
@@ -57,7 +57,7 @@ function Hi({ size: e = 24, className: t, title: n }) {
57
57
  //#region src/components/primitives/RowField.tsx
58
58
  var Ui = 380;
59
59
  function Wi({ label: e, children: t, wide: n, editing: r, required: i }) {
60
- let a = F(), o = n || a.width < Ui, s = o ? "auto" : a.isPhone ? 104 : 140;
60
+ let a = A(), o = n || a.width < Ui, s = o ? "auto" : a.isPhone ? 104 : 140;
61
61
  return /* @__PURE__ */ Q("div", {
62
62
  style: {
63
63
  display: "flex",
@@ -108,7 +108,7 @@ function Ki(e, t) {
108
108
  }));
109
109
  }
110
110
  function qi({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, areas: o, branding: s }) {
111
- let c = z(), l = Ki(c, o), u = s?.app_name ?? "", d = Nt(s?.app_logo) ? s?.app_logo : void 0;
111
+ let c = z(), l = Ki(c, o), u = s?.app_name ?? "", d = Vt(s?.app_logo) ? s?.app_logo : void 0;
112
112
  return /* @__PURE__ */ Q("div", {
113
113
  style: {
114
114
  gridArea: "rail",
@@ -179,7 +179,7 @@ function qi({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, are
179
179
  });
180
180
  }
181
181
  function Ji({ item: e, active: t, onPick: n }) {
182
- let [i, a] = J(!1), o = q(null), s = wt(o, e.label), c = t ? "var(--rail-active)" : i ? "var(--rail-hover)" : "transparent", l = t || i ? "var(--rail-fg)" : "var(--rail-muted)";
182
+ let [i, a] = J(!1), o = q(null), s = Mt(o, e.label), c = t ? "var(--rail-active)" : i ? "var(--rail-hover)" : "transparent", l = t || i ? "var(--rail-fg)" : "var(--rail-muted)";
183
183
  return /* @__PURE__ */ Q("button", {
184
184
  ref: o,
185
185
  onClick: () => n(e.id),
@@ -241,7 +241,7 @@ function Yi(e) {
241
241
  //#endregion
242
242
  //#region src/components/primitives/BrandLogo.tsx
243
243
  function Xi({ appLogo: e, size: t, radius: n, fallback: r }) {
244
- if (!Nt(e)) return r ? /* @__PURE__ */ Z(X, { children: r }) : null;
244
+ if (!Vt(e)) return r ? /* @__PURE__ */ Z(X, { children: r }) : null;
245
245
  let i = n ?? (t >= 30 ? 8 : 6);
246
246
  return /* @__PURE__ */ Z("img", {
247
247
  src: e.trim(),
@@ -262,7 +262,7 @@ function Zi(e) {
262
262
  ...U.getState(),
263
263
  colorScheme: e
264
264
  };
265
- cr(t), U.setState({ colorScheme: e });
265
+ _r(t), U.setState({ colorScheme: e });
266
266
  }
267
267
  //#endregion
268
268
  //#region src/embed/handshake.ts
@@ -289,13 +289,13 @@ function $i(e, t) {
289
289
  }
290
290
  let { message: i } = r;
291
291
  switch (i.type) {
292
- case nn.setToken:
292
+ case un.setToken:
293
293
  t.onAuth(i.payload);
294
294
  break;
295
- case nn.navigate:
295
+ case un.navigate:
296
296
  t.onNavigate(i.payload);
297
297
  break;
298
- case nn.setTheme: t.onTheme(i.payload);
298
+ case un.setTheme: t.onTheme(i.payload);
299
299
  }
300
300
  };
301
301
  }
@@ -303,17 +303,17 @@ function $i(e, t) {
303
303
  //#region src/embed/EmbedAuthBootstrap.tsx
304
304
  var ea = 2e4;
305
305
  function ta() {
306
- let e = Gt(), t = ji(), n = ki(), r = R((e) => e.setUser), [i, a] = J("pending"), o = q(!1), s = q(n.pathname);
306
+ let e = I(), t = ji(), n = ki(), r = R((e) => e.setUser), [i, a] = J("pending"), o = q(!1), s = q(n.pathname);
307
307
  return s.current = n.pathname, G(() => {
308
308
  if (!e.enabled) return;
309
- qt(e.parentOrigin), sr.getState().reset();
310
- let n = Yt(() => {
311
- tn(e.parentOrigin, nn.reloadRequired, { reason: "embed session terminated" });
309
+ en(e.parentOrigin), sr.getState().reset();
310
+ let n = nn(() => {
311
+ ln(e.parentOrigin, un.reloadRequired, { reason: "embed session terminated" });
312
312
  }), i = async () => {
313
313
  if (!o.current) {
314
314
  o.current = !0;
315
315
  try {
316
- let e = await dn();
316
+ let e = await vn();
317
317
  r(e, e.tenant ?? void 0), a("authenticated");
318
318
  } catch {
319
319
  a("error");
@@ -321,14 +321,14 @@ function ta() {
321
321
  }
322
322
  }, c = e.parentOrigin ? $i(e.parentOrigin, {
323
323
  onAuth: (e) => {
324
- vn(e), o.current || i();
324
+ Tn(e), o.current || i();
325
325
  },
326
326
  onNavigate: (n) => {
327
327
  let r = () => {
328
328
  sr.getState().markRoot(), t(e.appendEmbedParams(n.route));
329
329
  }, i = n.route.split(/[?#]/)[0];
330
- if (y.getState().isDirty && i !== s.current) {
331
- m.getState().requestNavigation(r);
330
+ if (T.getState().isDirty && i !== s.current) {
331
+ v.getState().requestNavigation(r);
332
332
  return;
333
333
  }
334
334
  r();
@@ -337,12 +337,12 @@ function ta() {
337
337
  Zi(e.theme);
338
338
  }
339
339
  }) : null;
340
- c && window.addEventListener("message", c), tn(e.parentOrigin, nn.ready, {});
340
+ c && window.addEventListener("message", c), ln(e.parentOrigin, un.ready, {});
341
341
  let l = window.setTimeout(() => {
342
342
  o.current || a("error");
343
343
  }, ea);
344
344
  return () => {
345
- c && window.removeEventListener("message", c), window.clearTimeout(l), Yt(n);
345
+ c && window.removeEventListener("message", c), window.clearTimeout(l), nn(n);
346
346
  };
347
347
  }, [
348
348
  e,
@@ -362,7 +362,7 @@ function na() {
362
362
  //#region src/embed/EmbedResizeReporter.tsx
363
363
  var ra = "app-embed";
364
364
  function ia() {
365
- let e = Gt(), t = e.enabled && e.parentOrigin !== null;
365
+ let e = I(), t = e.enabled && e.parentOrigin !== null;
366
366
  return G(() => {
367
367
  if (!t || typeof window > "u" || typeof ResizeObserver > "u") return;
368
368
  let n = document.getElementById(ra);
@@ -370,7 +370,7 @@ function ia() {
370
370
  let r = null, i = -1, a = () => {
371
371
  r = null;
372
372
  let t = n.scrollHeight;
373
- t !== i && (i = t, tn(e.parentOrigin, nn.resized, { height: t }));
373
+ t !== i && (i = t, ln(e.parentOrigin, un.resized, { height: t }));
374
374
  }, o = new ResizeObserver(() => {
375
375
  r === null && (r = window.requestAnimationFrame(a));
376
376
  });
@@ -382,9 +382,9 @@ function ia() {
382
382
  //#endregion
383
383
  //#region src/embed/EmbedDirtyReporter.tsx
384
384
  function aa() {
385
- let e = Gt(), t = y((e) => e.isDirty), n = e.enabled && e.parentOrigin !== null;
385
+ let e = I(), t = T((e) => e.isDirty), n = e.enabled && e.parentOrigin !== null;
386
386
  return G(() => {
387
- n && tn(e.parentOrigin, nn.dirtyChanged, { dirty: t });
387
+ n && ln(e.parentOrigin, un.dirtyChanged, { dirty: t });
388
388
  }, [
389
389
  n,
390
390
  t,
@@ -394,7 +394,7 @@ function aa() {
394
394
  //#endregion
395
395
  //#region src/embed/EmbedHistoryTracker.tsx
396
396
  function oa() {
397
- let e = Gt(), t = Mi(), n = ki(), r = e.enabled && e.navigationMode === "self", i = q(null);
397
+ let e = I(), t = Mi(), n = ki(), r = e.enabled && e.navigationMode === "self", i = q(null);
398
398
  return G(() => {
399
399
  r && i.current !== n.key && (i.current = n.key, sr.getState().applyNavigation(t));
400
400
  }, [
@@ -414,7 +414,7 @@ function la(e) {
414
414
  return e instanceof HTMLAnchorElement ? e.getAttribute("href") : e.href?.baseVal ?? e.getAttribute("href") ?? e.getAttribute("xlink:href");
415
415
  }
416
416
  function ua(e, t = window.location) {
417
- if (e.defaultPrevented || Fn(e)) return null;
417
+ if (e.defaultPrevented || Hn(e)) return null;
418
418
  let n = ca(e);
419
419
  if (!n || n.hasAttribute("data-declarion-native-link")) return null;
420
420
  let r = la(n);
@@ -442,7 +442,7 @@ function da(e, t = window.location) {
442
442
  return n.protocol !== "http:" && n.protocol !== "https:" || n.origin !== t.origin ? null : n.pathname + n.search + n.hash;
443
443
  }
444
444
  function fa() {
445
- let e = ar(), t = Gt().enabled, n = q(e);
445
+ let e = cr(), t = I().enabled, n = q(e);
446
446
  n.current = e, G(() => {
447
447
  let e = (e) => {
448
448
  let t = ua(e);
@@ -461,14 +461,14 @@ function fa() {
461
461
  //#endregion
462
462
  //#region src/embed/EmbedLocationReporter.tsx
463
463
  function pa() {
464
- let e = Gt(), t = ki(), { data: n } = L(), r = q(null), i = e.enabled && e.navigationMode === "self";
464
+ let e = I(), t = ki(), { data: n } = L(), r = q(null), i = e.enabled && e.navigationMode === "self";
465
465
  return G(() => {
466
466
  if (!i) return;
467
467
  let a = `${t.pathname}${t.search}`;
468
468
  if (r.current === a) return;
469
469
  r.current = a;
470
- let o = O(t.pathname, n?.screens);
471
- tn(e.parentOrigin, nn.navigated, o);
470
+ let o = he(t.pathname, n?.screens);
471
+ ln(e.parentOrigin, un.navigated, o);
472
472
  }, [
473
473
  i,
474
474
  t.pathname,
@@ -480,8 +480,8 @@ function pa() {
480
480
  //#endregion
481
481
  //#region src/embed/EmbedUnsavedGuard.tsx
482
482
  function ma() {
483
- let e = z(), t = m((e) => e.pendingNavigation), n = m((e) => e.confirmNavigation), r = m((e) => e.cancelNavigation);
484
- return t === null ? null : /* @__PURE__ */ Z(ct, {
483
+ let e = z(), t = v((e) => e.pendingNavigation), n = v((e) => e.confirmNavigation), r = v((e) => e.cancelNavigation);
484
+ return t === null ? null : /* @__PURE__ */ Z(gt, {
485
485
  open: !0,
486
486
  onOpenChange: (e) => {
487
487
  e || r();
@@ -498,11 +498,11 @@ function ma() {
498
498
  //#endregion
499
499
  //#region src/components/layout/Sidebar.tsx
500
500
  function ha({ activeArea: e }) {
501
- let t = z(), { data: r } = L(), i = ki(), a = ar(), o = U((e) => e.sidebar), s = U((e) => e.set), c = o === "collapsed", [l, u] = J({}), d = Dt(), f = d?.app_name ?? "", m = d?.app_logo, h = d?.version_label ?? "", g = K(() => ga(t, r?.navigation ?? [], e), [
501
+ let t = z(), { data: r } = L(), i = ki(), a = cr(), o = U((e) => e.sidebar), s = U((e) => e.set), c = o === "collapsed", [l, u] = J({}), d = Ft(), f = d?.app_name ?? "", p = d?.app_logo, m = d?.version_label ?? "", h = K(() => ga(t, r?.navigation ?? [], e), [
502
502
  t,
503
503
  r?.navigation,
504
504
  e
505
- ]), _ = (e) => e ? i.pathname === e || i.pathname.startsWith(e + "/") : !1, v = (e, n) => {
505
+ ]), g = (e) => e ? i.pathname === e || i.pathname.startsWith(e + "/") : !1, v = (e, n) => {
506
506
  if (!e.screen) return;
507
507
  let i = r?.screens[e.screen];
508
508
  i && a(i.route, {
@@ -531,8 +531,8 @@ function ha({ activeArea: e }) {
531
531
  borderBottom: "1px solid var(--divider)",
532
532
  gap: 8
533
533
  },
534
- children: c ? m ? /* @__PURE__ */ Z(Xi, {
535
- appLogo: m,
534
+ children: c ? p ? /* @__PURE__ */ Z(Xi, {
535
+ appLogo: p,
536
536
  size: 18
537
537
  }) : f ? /* @__PURE__ */ Z("span", {
538
538
  style: {
@@ -543,7 +543,7 @@ function ha({ activeArea: e }) {
543
543
  children: f.charAt(0)
544
544
  }) : null : /* @__PURE__ */ Q(X, { children: [
545
545
  /* @__PURE__ */ Z(Xi, {
546
- appLogo: m,
546
+ appLogo: p,
547
547
  size: 20
548
548
  }),
549
549
  /* @__PURE__ */ Z("div", {
@@ -555,7 +555,7 @@ function ha({ activeArea: e }) {
555
555
  },
556
556
  children: f
557
557
  }),
558
- h && /* @__PURE__ */ Z("span", {
558
+ m && /* @__PURE__ */ Z("span", {
559
559
  style: {
560
560
  padding: "1px 6px",
561
561
  background: "var(--accent-soft)",
@@ -566,7 +566,7 @@ function ha({ activeArea: e }) {
566
566
  letterSpacing: "0.04em",
567
567
  textTransform: "uppercase"
568
568
  },
569
- children: h
569
+ children: m
570
570
  })
571
571
  ] })
572
572
  }),
@@ -576,7 +576,7 @@ function ha({ activeArea: e }) {
576
576
  overflowY: "auto",
577
577
  padding: c ? "8px 4px" : "8px 6px"
578
578
  },
579
- children: g.map((e, n) => /* @__PURE__ */ Q("div", {
579
+ children: h.map((e, n) => /* @__PURE__ */ Q("div", {
580
580
  style: { marginBottom: 12 },
581
581
  children: [!c && e.title && /* @__PURE__ */ Z("div", {
582
582
  style: {
@@ -589,7 +589,7 @@ function ha({ activeArea: e }) {
589
589
  },
590
590
  children: e.title
591
591
  }), e.items.map((e, i) => {
592
- let o = `${n}-${i}-${e.screen || t(e.name)}`, s = e.screen ? r?.screens[e.screen] : void 0, d = _(s?.route), f = !!(e.children && e.children.length > 0), p = !!l[o];
592
+ let o = `${n}-${i}-${e.screen || t(e.name)}`, s = e.screen ? r?.screens[e.screen] : void 0, d = g(s?.route), f = !!(e.children && e.children.length > 0), p = !!l[o];
593
593
  return /* @__PURE__ */ Z(va, {
594
594
  item: e,
595
595
  href: s?.route,
@@ -647,7 +647,7 @@ function ha({ activeArea: e }) {
647
647
  color: "var(--text-3)"
648
648
  },
649
649
  children: t("shell.sidebar.footer", "Docs · API · Help")
650
- }), /* @__PURE__ */ Z(p, { children: "?" })] })]
650
+ }), /* @__PURE__ */ Z(_, { children: "?" })] })]
651
651
  })
652
652
  ]
653
653
  });
@@ -696,7 +696,7 @@ function va({ item: e, href: t, collapsed: i, active: a, hasKids: o, expanded: s
696
696
  href: t,
697
697
  "data-declarion-native-link": "",
698
698
  onClick: (e) => {
699
- Fn(e) || (e.preventDefault(), l());
699
+ Hn(e) || (e.preventDefault(), l());
700
700
  },
701
701
  title: g,
702
702
  onMouseEnter: () => m(!0),
@@ -779,7 +779,7 @@ function va({ item: e, href: t, collapsed: i, active: a, hasKids: o, expanded: s
779
779
  href: t,
780
780
  "data-declarion-native-link": "",
781
781
  onClick: (e) => {
782
- Fn(e) || (e.preventDefault(), l());
782
+ Hn(e) || (e.preventDefault(), l());
783
783
  },
784
784
  onMouseEnter: () => m(!0),
785
785
  onMouseLeave: () => m(!1),
@@ -828,7 +828,7 @@ function ya({ label: e, href: t, enabled: n, onPick: r }) {
828
828
  href: t,
829
829
  "data-declarion-native-link": "",
830
830
  onClick: (e) => {
831
- Fn(e) || (e.preventDefault(), r());
831
+ Hn(e) || (e.preventDefault(), r());
832
832
  },
833
833
  onMouseEnter: () => a(!0),
834
834
  onMouseLeave: () => a(!1),
@@ -846,26 +846,26 @@ function ya({ label: e, href: t, enabled: n, onPick: r }) {
846
846
  //#region src/hooks/useAuth.ts
847
847
  function ba() {
848
848
  let { user: e, isAuthenticated: t, isLoading: n, activeTenant: r, tenants: i, setUser: a, setTenants: o, logout: s } = R(), c = ji(), l = Bi(), u = z("errors"), d = Ri({
849
- mutationFn: ({ email: e, password: t, remember: n }) => Qt(e, t, n ?? !0),
849
+ mutationFn: ({ email: e, password: t, remember: n }) => on(e, t, n ?? !0),
850
850
  onSuccess: (e) => {
851
- a(e.user, e.tenant), l.invalidateQueries({ queryKey: ["schema"] }), Tn().then(o).catch(() => {});
851
+ a(e.user, e.tenant), l.invalidateQueries({ queryKey: ["schema"] }), Mn().then(o).catch(() => {});
852
852
  }
853
853
  }), f = Ri({
854
- mutationFn: ({ email: e, password: t, displayName: n }) => Wt(e, t, n),
854
+ mutationFn: ({ email: e, password: t, displayName: n }) => Qt(e, t, n),
855
855
  onSuccess: (e) => {
856
- a(e.user, e.tenant), l.invalidateQueries({ queryKey: ["schema"] }), Tn().then(o).catch(() => {});
856
+ a(e.user, e.tenant), l.invalidateQueries({ queryKey: ["schema"] }), Mn().then(o).catch(() => {});
857
857
  },
858
858
  onError: (e) => {
859
- P.error(V(u, e));
859
+ F.error(V(u, e));
860
860
  }
861
861
  }), p = Ri({
862
- mutationFn: (e) => $t(e),
862
+ mutationFn: (e) => sn(e),
863
863
  onSuccess: (e) => {
864
- let t = e.tenant?.id, n = e.user?.id, r = t && n && nr(t, n) || "/";
864
+ let t = e.tenant?.id, n = e.user?.id, r = t && n && lr(t, n) || "/";
865
865
  window.location.assign(r);
866
866
  },
867
867
  onError: (e) => {
868
- P.error(V(u, e));
868
+ F.error(V(u, e));
869
869
  }
870
870
  });
871
871
  return {
@@ -878,7 +878,7 @@ function ba() {
878
878
  signup: f.mutate,
879
879
  switchTenant: p.mutate,
880
880
  logout: async () => {
881
- await s(), l.clear(), ir.getState().clear(), c("/login");
881
+ await s(), l.clear(), ur.getState().clear(), c("/login");
882
882
  },
883
883
  isLoginPending: d.isPending,
884
884
  isSignupPending: f.isPending,
@@ -889,23 +889,23 @@ function ba() {
889
889
  //#region src/hooks/useImpersonation.ts
890
890
  function xa() {
891
891
  let e = R((e) => e.user), t = R((e) => e.initialize), n = Bi(), r = z(), i = z("errors"), a = e?.impersonation ?? null, o = !!a, s = Ri({
892
- mutationFn: ({ targetUserId: e, reason: t, durationMinutes: n }) => Cn(e, t, n),
892
+ mutationFn: ({ targetUserId: e, reason: t, durationMinutes: n }) => An(e, t, n),
893
893
  onSuccess: async () => {
894
- await t(), await gn(n), n.invalidateQueries(), P.success(r("toast.impersonation.started", "Impersonation session started."));
894
+ await t(), await Cn(n), n.invalidateQueries(), F.success(r("toast.impersonation.started", "Impersonation session started."));
895
895
  },
896
- onError: (e) => P.error(V(i, e))
896
+ onError: (e) => F.error(V(i, e))
897
897
  }), c = Ri({
898
- mutationFn: () => En(),
898
+ mutationFn: () => Nn(),
899
899
  onSuccess: async () => {
900
- await t(), await gn(n), n.invalidateQueries(), P.success(r("toast.impersonation.returned", "Returned to your own session."));
900
+ await t(), await Cn(n), n.invalidateQueries(), F.success(r("toast.impersonation.returned", "Returned to your own session."));
901
901
  },
902
- onError: (e) => P.error(V(i, e))
902
+ onError: (e) => F.error(V(i, e))
903
903
  }), l = Ri({
904
- mutationFn: (e) => an(e),
904
+ mutationFn: (e) => fn(e),
905
905
  onSuccess: () => {
906
- P.success(r("toast.impersonation.revoke_done", "Session revoked.")), n.invalidateQueries({ queryKey: ["impersonation_session"] });
906
+ F.success(r("toast.impersonation.revoke_done", "Session revoked.")), n.invalidateQueries({ queryKey: ["impersonation_session"] });
907
907
  },
908
- onError: (e) => P.error(V(i, e))
908
+ onError: (e) => F.error(V(i, e))
909
909
  });
910
910
  return {
911
911
  info: a,
@@ -1027,7 +1027,7 @@ function Da({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o
1027
1027
  }
1028
1028
  })
1029
1029
  ]
1030
- }), /* @__PURE__ */ Q(ee, {
1030
+ }), /* @__PURE__ */ Q(me, {
1031
1031
  open: l,
1032
1032
  anchor: p.current,
1033
1033
  onClose: () => u(!1),
@@ -1090,7 +1090,7 @@ function Da({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o
1090
1090
  fontSize: 11,
1091
1091
  color: "var(--text-3)"
1092
1092
  },
1093
- children: ln(c("shell.tenant.role", "Role: {role}"), { role: /* @__PURE__ */ Z("span", {
1093
+ children: gn(c("shell.tenant.role", "Role: {role}"), { role: /* @__PURE__ */ Z("span", {
1094
1094
  style: {
1095
1095
  color: "var(--text-2)",
1096
1096
  fontWeight: 500
@@ -1337,11 +1337,11 @@ function ja({ crumb: e, last: t, clickable: r, onClick: i }) {
1337
1337
  //#endregion
1338
1338
  //#region src/components/layout/TopBar.tsx
1339
1339
  var Ma = "⌘K";
1340
- function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, showNavButton: a, onOpenTabs: o, tabsButtonRef: s, showTabsButton: c, mobileTabCount: l = 0, onCmdK: u, onToggleAI: d, aiOpen: f, onOpenProfile: m, onOpenPrefs: h, showTenantSwitcher: g = !0, showBreadcrumbs: _ = !0, showThemeToggle: y = !0 } = {}) {
1341
- let b = z(), x = R((e) => e.user), C = F(), { activeTenant: w, tenants: T, switchTenant: E, isSwitchingTenant: D, logout: O } = ba(), { isImpersonating: te, stop: k } = xa(), A = U((e) => e.colorScheme), ne = U((e) => e.set), [re, j] = J(!1), ie = q(null), ae = w?.env, oe = Ea(ae), se = x?.email ?? "", ce = x?.display_name || se || b("shell.user_menu.user", "User"), le = a && C.category === "phone", M = a && C.category !== "desktop", ue = () => {
1342
- ne("colorScheme", A === "dark" ? "light" : "dark");
1343
- }, de = (e) => {
1344
- w?.id !== e.id && (!H.getState().tabs.some((e) => e.dirty) || window.confirm(b("shell.tenant.switch_confirm", "You have unsaved changes in one or more tabs. Switching tenant will discard them. Continue?"))) && E(e.id);
1340
+ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, showNavButton: a, onOpenTabs: o, tabsButtonRef: s, showTabsButton: c, mobileTabCount: l = 0, onCmdK: u, onToggleAI: d, aiOpen: f, onOpenProfile: p, onOpenPrefs: m, showTenantSwitcher: h = !0, showBreadcrumbs: g = !0, showThemeToggle: v = !0 } = {}) {
1341
+ let y = z(), b = R((e) => e.user), x = A(), { activeTenant: S, tenants: C, switchTenant: T, isSwitchingTenant: E, logout: D } = ba(), { isImpersonating: O, stop: ee } = xa(), te = U((e) => e.colorScheme), ne = U((e) => e.set), [re, k] = J(!1), ie = q(null), ae = S?.env, oe = Ea(ae), se = b?.email ?? "", ce = b?.display_name || se || y("shell.user_menu.user", "User"), le = a && x.category === "phone", ue = a && x.category !== "desktop", de = () => {
1342
+ ne("colorScheme", te === "dark" ? "light" : "dark");
1343
+ }, fe = (e) => {
1344
+ S?.id !== e.id && (!H.getState().tabs.some((e) => e.dirty) || window.confirm(y("shell.tenant.switch_confirm", "You have unsaved changes in one or more tabs. Switching tenant will discard them. Continue?"))) && T(e.id);
1345
1345
  };
1346
1346
  return /* @__PURE__ */ Q("header", {
1347
1347
  style: {
@@ -1350,8 +1350,8 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1350
1350
  borderBottom: "1px solid var(--border)",
1351
1351
  display: "flex",
1352
1352
  alignItems: "center",
1353
- ...$n(12),
1354
- gap: M ? 8 : 10,
1353
+ ...or(12),
1354
+ gap: ue ? 8 : 10,
1355
1355
  zIndex: 5,
1356
1356
  position: "relative",
1357
1357
  minWidth: 0,
@@ -1368,29 +1368,29 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1368
1368
  opacity: .35,
1369
1369
  pointerEvents: "none"
1370
1370
  } }),
1371
- a && /* @__PURE__ */ Z(S, {
1371
+ a && /* @__PURE__ */ Z(M, {
1372
1372
  ref: i,
1373
1373
  icon: /* @__PURE__ */ Z(n.menu, { size: 16 }),
1374
- title: b("shell.nav.open", "Open navigation"),
1374
+ title: y("shell.nav.open", "Open navigation"),
1375
1375
  onClick: r
1376
1376
  }),
1377
- g && /* @__PURE__ */ Z("div", {
1377
+ h && /* @__PURE__ */ Z("div", {
1378
1378
  style: {
1379
1379
  minWidth: 0,
1380
- maxWidth: le ? "min(210px, 56vw)" : M ? 230 : void 0,
1380
+ maxWidth: le ? "min(210px, 56vw)" : ue ? 230 : void 0,
1381
1381
  flex: le ? "1 1 auto" : "0 0 auto"
1382
1382
  },
1383
1383
  children: /* @__PURE__ */ Z(Da, {
1384
- tenant: w,
1385
- tenants: T,
1386
- onSwitch: de,
1387
- busy: D,
1388
- compact: M,
1389
- locked: te,
1390
- lockedReason: te ? b("shell.impersonation.tenant_locked", "Exit impersonation to switch tenants") : void 0
1384
+ tenant: S,
1385
+ tenants: C,
1386
+ onSwitch: fe,
1387
+ busy: E,
1388
+ compact: ue,
1389
+ locked: O,
1390
+ lockedReason: O ? y("shell.impersonation.tenant_locked", "Exit impersonation to switch tenants") : void 0
1391
1391
  })
1392
1392
  }),
1393
- te && /* @__PURE__ */ Q("span", {
1393
+ O && /* @__PURE__ */ Q("span", {
1394
1394
  "data-testid": "impersonation-chip",
1395
1395
  style: {
1396
1396
  display: "inline-flex",
@@ -1409,10 +1409,10 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1409
1409
  children: [
1410
1410
  /* @__PURE__ */ Z(n.users, { size: 11 }),
1411
1411
  " ",
1412
- b("shell.impersonation.chip", "Impersonating")
1412
+ y("shell.impersonation.chip", "Impersonating")
1413
1413
  ]
1414
1414
  }),
1415
- !le && _ && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1415
+ !le && g && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1416
1416
  style: {
1417
1417
  color: "var(--text-4)",
1418
1418
  fontSize: 11
@@ -1423,15 +1423,15 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1423
1423
  onCrumbClick: t
1424
1424
  })] }),
1425
1425
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
1426
- c && /* @__PURE__ */ Z(S, {
1426
+ c && /* @__PURE__ */ Z(M, {
1427
1427
  ref: s,
1428
1428
  icon: /* @__PURE__ */ Z(n.layers, { size: 15 }),
1429
- title: b("shell.tabs.open_tabs_count", "Open tabs ({count})", { count: l }),
1429
+ title: y("shell.tabs.open_tabs_count", "Open tabs ({count})", { count: l }),
1430
1430
  onClick: o
1431
1431
  }),
1432
- le ? /* @__PURE__ */ Z(S, {
1432
+ le ? /* @__PURE__ */ Z(M, {
1433
1433
  icon: /* @__PURE__ */ Z(n.search, { size: 15 }),
1434
- title: b("shell.palette.search", "Search or run command"),
1434
+ title: y("shell.palette.search", "Search or run command"),
1435
1435
  onClick: u
1436
1436
  }) : /* @__PURE__ */ Q(X, { children: [
1437
1437
  /* @__PURE__ */ Q("button", {
@@ -1457,23 +1457,23 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1457
1457
  flex: 1,
1458
1458
  textAlign: "left"
1459
1459
  },
1460
- children: b("shell.topbar.search_hint", "Search or run command…")
1460
+ children: y("shell.topbar.search_hint", "Search or run command…")
1461
1461
  }),
1462
- /* @__PURE__ */ Z(p, { children: Ma })
1462
+ /* @__PURE__ */ Z(_, { children: Ma })
1463
1463
  ]
1464
1464
  }),
1465
- /* @__PURE__ */ Z(S, {
1465
+ /* @__PURE__ */ Z(M, {
1466
1466
  icon: /* @__PURE__ */ Z(n.bell, { size: 15 }),
1467
- title: b("shell.topbar.notifications", "Notifications")
1467
+ title: y("shell.topbar.notifications", "Notifications")
1468
1468
  }),
1469
- y && /* @__PURE__ */ Z(S, {
1470
- icon: Z(A === "dark" ? n.sun : n.moon, { size: 15 }),
1471
- title: b("shell.topbar.theme", "Theme"),
1472
- onClick: ue
1469
+ v && /* @__PURE__ */ Z(M, {
1470
+ icon: Z(te === "dark" ? n.sun : n.moon, { size: 15 }),
1471
+ title: y("shell.topbar.theme", "Theme"),
1472
+ onClick: de
1473
1473
  }),
1474
- /* @__PURE__ */ Z(S, {
1474
+ /* @__PURE__ */ Z(M, {
1475
1475
  icon: /* @__PURE__ */ Z(n.sparkle, { size: 15 }),
1476
- title: b("shell.ai_assistant", "AI Assistant"),
1476
+ title: y("shell.ai_assistant", "AI Assistant"),
1477
1477
  onClick: d,
1478
1478
  active: f
1479
1479
  }),
@@ -1488,21 +1488,21 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1488
1488
  style: { position: "relative" },
1489
1489
  children: [/* @__PURE__ */ Q("button", {
1490
1490
  ref: ie,
1491
- onClick: () => j((e) => !e),
1491
+ onClick: () => k((e) => !e),
1492
1492
  style: {
1493
1493
  display: "flex",
1494
1494
  alignItems: "center",
1495
1495
  gap: 6,
1496
- padding: M ? 0 : "0 4px 0 2px",
1496
+ padding: ue ? 0 : "0 4px 0 2px",
1497
1497
  height: 28,
1498
1498
  background: "transparent",
1499
1499
  border: 0,
1500
1500
  cursor: "pointer"
1501
1501
  },
1502
- children: [/* @__PURE__ */ Z(Ct, {
1502
+ children: [/* @__PURE__ */ Z(jt, {
1503
1503
  name: ce,
1504
1504
  size: 22
1505
- }), !M && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1505
+ }), !ue && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
1506
1506
  style: {
1507
1507
  fontSize: 12,
1508
1508
  color: "var(--text-2)"
@@ -1512,10 +1512,10 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1512
1512
  size: 11,
1513
1513
  style: { color: "var(--text-3)" }
1514
1514
  })] })]
1515
- }), /* @__PURE__ */ Q(ee, {
1515
+ }), /* @__PURE__ */ Q(me, {
1516
1516
  open: re,
1517
1517
  anchor: ie.current,
1518
- onClose: () => j(!1),
1518
+ onClose: () => k(!1),
1519
1519
  width: 220,
1520
1520
  align: "end",
1521
1521
  children: [
@@ -1530,7 +1530,7 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1530
1530
  gap: 8,
1531
1531
  alignItems: "center"
1532
1532
  },
1533
- children: [/* @__PURE__ */ Z(Ct, {
1533
+ children: [/* @__PURE__ */ Z(jt, {
1534
1534
  name: ce,
1535
1535
  size: 28
1536
1536
  }), /* @__PURE__ */ Q("div", {
@@ -1553,60 +1553,60 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1553
1553
  children: se
1554
1554
  })]
1555
1555
  })]
1556
- }), w && /* @__PURE__ */ Q("div", {
1556
+ }), S && /* @__PURE__ */ Q("div", {
1557
1557
  style: {
1558
1558
  marginTop: 8,
1559
1559
  display: "flex",
1560
1560
  gap: 4,
1561
1561
  flexWrap: "wrap"
1562
1562
  },
1563
- children: [/* @__PURE__ */ Z(v, {
1563
+ children: [/* @__PURE__ */ Z(w, {
1564
1564
  tone: "violet",
1565
1565
  size: "xs",
1566
1566
  dot: !0,
1567
- children: w.role
1568
- }), /* @__PURE__ */ Q(v, {
1567
+ children: S.role
1568
+ }), /* @__PURE__ */ Q(w, {
1569
1569
  tone: "slate",
1570
1570
  size: "xs",
1571
- children: [w.name, ae ? ` · ${ae}` : ""]
1571
+ children: [S.name, ae ? ` · ${ae}` : ""]
1572
1572
  })]
1573
1573
  })]
1574
1574
  }),
1575
- te && /* @__PURE__ */ Z(I, {
1575
+ O && /* @__PURE__ */ Z(j, {
1576
1576
  icon: /* @__PURE__ */ Z(n.x, { size: 13 }),
1577
1577
  onClick: () => {
1578
- j(!1), k();
1578
+ k(!1), ee();
1579
1579
  },
1580
1580
  "data-testid": "exit-impersonation-menu-item",
1581
- children: b("shell.impersonation.exit", "Exit impersonation")
1581
+ children: y("shell.impersonation.exit", "Exit impersonation")
1582
1582
  }),
1583
- /* @__PURE__ */ Z(I, {
1583
+ /* @__PURE__ */ Z(j, {
1584
1584
  icon: /* @__PURE__ */ Z(n.users, { size: 13 }),
1585
1585
  onClick: () => {
1586
- j(!1), m?.();
1586
+ k(!1), p?.();
1587
1587
  },
1588
- children: b("shell.user_menu.profile", "My profile")
1588
+ children: y("shell.user_menu.profile", "My profile")
1589
1589
  }),
1590
- /* @__PURE__ */ Z(I, {
1590
+ /* @__PURE__ */ Z(j, {
1591
1591
  icon: /* @__PURE__ */ Z(n.settings, { size: 13 }),
1592
1592
  onClick: () => {
1593
- j(!1), h?.();
1593
+ k(!1), m?.();
1594
1594
  },
1595
- children: b("shell.user_menu.preferences", "Preferences")
1595
+ children: y("shell.user_menu.preferences", "Preferences")
1596
1596
  }),
1597
- y && /* @__PURE__ */ Z(I, {
1597
+ v && /* @__PURE__ */ Z(j, {
1598
1598
  icon: /* @__PURE__ */ Z(n.moon, { size: 13 }),
1599
- onClick: ue,
1600
- children: b("shell.user_menu.toggle_theme", "Toggle theme")
1599
+ onClick: de,
1600
+ children: y("shell.user_menu.toggle_theme", "Toggle theme")
1601
1601
  }),
1602
- /* @__PURE__ */ Z(I, { divider: !0 }),
1603
- /* @__PURE__ */ Z(I, {
1602
+ /* @__PURE__ */ Z(j, { divider: !0 }),
1603
+ /* @__PURE__ */ Z(j, {
1604
1604
  icon: /* @__PURE__ */ Z(n.x, { size: 13 }),
1605
1605
  danger: !0,
1606
1606
  onClick: () => {
1607
- j(!1), O();
1607
+ k(!1), D();
1608
1608
  },
1609
- children: b("shell.user_menu.sign_out", "Sign out")
1609
+ children: y("shell.user_menu.sign_out", "Sign out")
1610
1610
  })
1611
1611
  ]
1612
1612
  })]
@@ -1619,7 +1619,7 @@ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1619
1619
  function Pa() {
1620
1620
  let e = z(), { data: t } = L();
1621
1621
  return W((n) => {
1622
- let r = l(e, n.pathname, t?.screens, t?.entities);
1622
+ let r = E(e, n.pathname, t?.screens, t?.entities);
1623
1623
  return r && (r.exact || n.derivedTitle === !0) ? r.title : n.title;
1624
1624
  }, [e, t]);
1625
1625
  }
@@ -1687,7 +1687,7 @@ function Fa({ onNew: e, onCloseRequest: t } = {}) {
1687
1687
  e ? e() : o("/");
1688
1688
  }, [e, o]);
1689
1689
  if (p.length === 0) return null;
1690
- let C = v >= 0 && p.length > 1 && p[v]?.closable !== !1, w = rr(p, m, "others").length > 0, T = rr(p, m, "right").length > 0, E = p.length >= h ? "danger" : p.length >= Math.ceil(h * .8) ? "warning" : "normal", D = E === "danger" ? "var(--danger)" : E === "warning" ? "var(--warn)" : "var(--text-3)";
1690
+ let C = v >= 0 && p.length > 1 && p[v]?.closable !== !1, w = vr(p, m, "others").length > 0, T = vr(p, m, "right").length > 0, E = p.length >= h ? "danger" : p.length >= Math.ceil(h * .8) ? "warning" : "normal", D = E === "danger" ? "var(--danger)" : E === "warning" ? "var(--warn)" : "var(--text-3)";
1691
1691
  return /* @__PURE__ */ Q("div", {
1692
1692
  style: {
1693
1693
  display: "flex",
@@ -1722,7 +1722,7 @@ function Fa({ onNew: e, onCloseRequest: t } = {}) {
1722
1722
  alignItems: "center",
1723
1723
  gap: 6,
1724
1724
  height: "100%",
1725
- ...$n(11),
1725
+ ...or(11),
1726
1726
  background: o ? "var(--surface)" : "transparent",
1727
1727
  borderRight: "1px solid var(--border)",
1728
1728
  borderTop: o ? "2px solid var(--accent)" : "2px solid transparent",
@@ -1812,7 +1812,7 @@ function Fa({ onNew: e, onCloseRequest: t } = {}) {
1812
1812
  }), /* @__PURE__ */ Q("div", {
1813
1813
  className: "tabstrip-utility",
1814
1814
  style: {
1815
- ...$n(10),
1815
+ ...or(10),
1816
1816
  fontSize: 11,
1817
1817
  color: "var(--text-4)",
1818
1818
  display: "flex",
@@ -1841,7 +1841,7 @@ function Fa({ onNew: e, onCloseRequest: t } = {}) {
1841
1841
  }), /* @__PURE__ */ Z("span", {
1842
1842
  className: "tabstrip-tabs-label",
1843
1843
  style: { color: "var(--text-3)" },
1844
- children: Sn(i, "shell.tabs.count_label", h, {
1844
+ children: kn(i, "shell.tabs.count_label", h, {
1845
1845
  one: "tab",
1846
1846
  other: "tabs"
1847
1847
  })
@@ -1896,36 +1896,36 @@ function Fa({ onNew: e, onCloseRequest: t } = {}) {
1896
1896
  }
1897
1897
  function Ia({ open: e, anchor: t, onClose: r, canCloseCurrent: i, canCloseOthers: a, canCloseRight: o, onAction: s }) {
1898
1898
  let c = z();
1899
- return /* @__PURE__ */ Q(ee, {
1899
+ return /* @__PURE__ */ Q(me, {
1900
1900
  open: e,
1901
1901
  onClose: r,
1902
1902
  anchor: t,
1903
1903
  align: "end",
1904
1904
  width: 230,
1905
1905
  children: [
1906
- /* @__PURE__ */ Z(I, {
1906
+ /* @__PURE__ */ Z(j, {
1907
1907
  icon: /* @__PURE__ */ Z(n.x, { size: 13 }),
1908
1908
  disabled: !i,
1909
1909
  title: i ? void 0 : c("shell.tabs.none_closable", "No current tab can be closed"),
1910
1910
  onClick: () => s("current"),
1911
1911
  children: c("shell.tabs.close_current", "Close current tab")
1912
1912
  }),
1913
- /* @__PURE__ */ Z(I, {
1913
+ /* @__PURE__ */ Z(j, {
1914
1914
  icon: /* @__PURE__ */ Z(n.x, { size: 13 }),
1915
1915
  disabled: !a,
1916
1916
  title: a ? void 0 : c("shell.tabs.no_others", "No other tabs"),
1917
1917
  onClick: () => s("others"),
1918
1918
  children: c("shell.tabs.close_others", "Close others")
1919
1919
  }),
1920
- /* @__PURE__ */ Z(I, {
1920
+ /* @__PURE__ */ Z(j, {
1921
1921
  icon: /* @__PURE__ */ Z(n.x, { size: 13 }),
1922
1922
  disabled: !o,
1923
1923
  title: o ? void 0 : c("shell.tabs.none_right", "No tabs to the right"),
1924
1924
  onClick: () => s("right"),
1925
1925
  children: c("shell.tabs.close_right", "Close tabs to the right")
1926
1926
  }),
1927
- /* @__PURE__ */ Z(I, { divider: !0 }),
1928
- /* @__PURE__ */ Z(I, {
1927
+ /* @__PURE__ */ Z(j, { divider: !0 }),
1928
+ /* @__PURE__ */ Z(j, {
1929
1929
  icon: /* @__PURE__ */ Z(n.trash, { size: 13 }),
1930
1930
  danger: !0,
1931
1931
  onClick: () => s("all"),
@@ -1945,7 +1945,7 @@ function La({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
1945
1945
  };
1946
1946
  return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
1947
1947
  }, [e, t]), !e) return null;
1948
- let c = e.ids.length, l = e.dirtyTabs.length, u = e.cleanIds.length, d = Sn(o, "shell.tabs.close_dialog.title", c, {
1948
+ let c = e.ids.length, l = e.dirtyTabs.length, u = e.cleanIds.length, d = kn(o, "shell.tabs.close_dialog.title", c, {
1949
1949
  one: "Close {count} tab?",
1950
1950
  other: "Close {count} tabs?"
1951
1951
  });
@@ -2017,13 +2017,13 @@ function La({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
2017
2017
  color: "var(--text-3)",
2018
2018
  marginTop: 2
2019
2019
  },
2020
- children: Sn(o, "shell.tabs.close_dialog.dirty", l, {
2020
+ children: kn(o, "shell.tabs.close_dialog.dirty", l, {
2021
2021
  one: "{count} tab has unsaved changes.",
2022
2022
  other: "{count} tabs have unsaved changes."
2023
2023
  })
2024
2024
  })]
2025
2025
  }),
2026
- /* @__PURE__ */ Z(S, {
2026
+ /* @__PURE__ */ Z(M, {
2027
2027
  icon: /* @__PURE__ */ Z(n.x, { size: 14 }),
2028
2028
  onClick: t,
2029
2029
  title: o("dialog.cancel", "Cancel")
@@ -2080,7 +2080,7 @@ function La({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
2080
2080
  color: "var(--text-4)",
2081
2081
  marginTop: 10
2082
2082
  },
2083
- children: Sn(o, "shell.tabs.close_dialog.clean", u, {
2083
+ children: kn(o, "shell.tabs.close_dialog.clean", u, {
2084
2084
  one: "Other {count} tab has no unsaved changes.",
2085
2085
  other: "Other {count} tabs have no unsaved changes."
2086
2086
  })
@@ -2097,16 +2097,16 @@ function La({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
2097
2097
  },
2098
2098
  children: [
2099
2099
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
2100
- /* @__PURE__ */ Z(k, {
2100
+ /* @__PURE__ */ Z(S, {
2101
2101
  onClick: t,
2102
2102
  children: o("dialog.cancel", "Cancel")
2103
2103
  }),
2104
- u > 0 && /* @__PURE__ */ Z(k, {
2104
+ u > 0 && /* @__PURE__ */ Z(S, {
2105
2105
  autoFocus: !0,
2106
2106
  onClick: i,
2107
2107
  children: o("shell.tabs.close_dialog.close_clean", "Close clean only")
2108
2108
  }),
2109
- /* @__PURE__ */ Z(k, {
2109
+ /* @__PURE__ */ Z(S, {
2110
2110
  kind: "primary",
2111
2111
  danger: !0,
2112
2112
  onClick: a,
@@ -2152,13 +2152,13 @@ function Ra() {
2152
2152
  "aria-hidden": "true",
2153
2153
  children: "⚠"
2154
2154
  }),
2155
- /* @__PURE__ */ Z("span", { children: ln(e("shell.impersonation.acting_as", "You are acting as {target}"), { target: /* @__PURE__ */ Z("strong", {
2155
+ /* @__PURE__ */ Z("span", { children: gn(e("shell.impersonation.acting_as", "You are acting as {target}"), { target: /* @__PURE__ */ Z("strong", {
2156
2156
  "data-testid": "impersonation-target",
2157
2157
  children: t.target_user_email || t.target_user_id
2158
2158
  }) }) }),
2159
2159
  /* @__PURE__ */ Z("span", {
2160
2160
  style: { opacity: .85 },
2161
- children: ln(e("shell.impersonation.real_user", "· Real user: {user}"), { user: /* @__PURE__ */ Z("strong", { children: t.real_user_email || t.real_user_id }) })
2161
+ children: gn(e("shell.impersonation.real_user", "· Real user: {user}"), { user: /* @__PURE__ */ Z("strong", { children: t.real_user_email || t.real_user_id }) })
2162
2162
  }),
2163
2163
  /* @__PURE__ */ Z("span", {
2164
2164
  style: { opacity: .85 },
@@ -2193,7 +2193,7 @@ function Ra() {
2193
2193
  //#endregion
2194
2194
  //#region src/components/layout/ImpersonationFrame.tsx
2195
2195
  function za() {
2196
- let { info: e } = xa(), { value: t } = ce(e ? "impersonation.allow_destructive" : "", !1);
2196
+ let { info: e } = xa(), { value: t } = ye(e ? "impersonation.allow_destructive" : "", !1);
2197
2197
  return G(() => {
2198
2198
  if (!e) {
2199
2199
  document.body.removeAttribute("data-impersonation-destructive");
@@ -2221,7 +2221,7 @@ function za() {
2221
2221
  //#region src/components/layout/tab-close.ts
2222
2222
  function Ba(e, t, n, r) {
2223
2223
  if (n === "current" && e.length <= 1) return null;
2224
- let i = rr(e, t, n, r);
2224
+ let i = vr(e, t, n, r);
2225
2225
  if (i.length === 0) return null;
2226
2226
  let a = new Set(i), o = e.filter((e) => a.has(e.id) && e.dirty), s = new Set(o.map((e) => e.id));
2227
2227
  return {
@@ -2287,9 +2287,9 @@ function Wa(e, t, r, i) {
2287
2287
  return a;
2288
2288
  }
2289
2289
  function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation: a, screens: o, includeAI: s = !0, aiName: c = "" }) {
2290
- let l = z(), u = Dt()?.app_name?.trim(), [d, f] = J(""), [m, h] = J(0), g = q(null), _ = F().category === "phone";
2290
+ let l = z(), u = Ft()?.app_name?.trim(), [d, f] = J(""), [p, m] = J(0), h = q(null), g = A().category === "phone";
2291
2291
  G(() => {
2292
- e && (setTimeout(() => g.current?.focus(), 50), f(i === "new" ? l("shell.palette.new_in_screen", "New {name}").split("{name}")[0] : ""), h(0));
2292
+ e && (setTimeout(() => h.current?.focus(), 50), f(i === "new" ? l("shell.palette.new_in_screen", "New {name}").split("{name}")[0] : ""), m(0));
2293
2293
  }, [
2294
2294
  e,
2295
2295
  i,
@@ -2415,7 +2415,7 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2415
2415
  minWidth: 0
2416
2416
  },
2417
2417
  onKeyDown: (e) => {
2418
- e.key === "ArrowDown" ? (e.preventDefault(), h(Math.min(m + 1, y.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), h(Math.max(m - 1, 0))) : e.key === "Enter" && y[m] ? (y[m].act(), t()) : e.key === "Enter" && s && d.trim() ? (e.preventDefault(), r({
2418
+ e.key === "ArrowDown" ? (e.preventDefault(), m(Math.min(p + 1, y.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), m(Math.max(p - 1, 0))) : e.key === "Enter" && y[p] ? (y[p].act(), t()) : e.key === "Enter" && s && d.trim() ? (e.preventDefault(), r({
2419
2419
  type: "ai",
2420
2420
  q: d.trim()
2421
2421
  }), t()) : e.key === "Escape" && t();
@@ -2436,10 +2436,10 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2436
2436
  style: { color: "var(--text-3)" }
2437
2437
  }),
2438
2438
  /* @__PURE__ */ Z("input", {
2439
- ref: g,
2439
+ ref: h,
2440
2440
  value: d,
2441
2441
  onChange: (e) => {
2442
- f(e.target.value), h(0);
2442
+ f(e.target.value), m(0);
2443
2443
  },
2444
2444
  placeholder: s ? l("shell.palette.search_ai", "Search or run command — type / for AI") : l("shell.palette.search", "Search or run command"),
2445
2445
  style: {
@@ -2452,12 +2452,12 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2452
2452
  minWidth: 0
2453
2453
  }
2454
2454
  }),
2455
- _ && /* @__PURE__ */ Z(S, {
2455
+ g && /* @__PURE__ */ Z(M, {
2456
2456
  icon: /* @__PURE__ */ Z(n.x, { size: 14 }),
2457
2457
  title: l("shell.palette.close", "Close command palette"),
2458
2458
  onClick: t
2459
2459
  }),
2460
- !_ && /* @__PURE__ */ Z(p, { children: Ha })
2460
+ !g && /* @__PURE__ */ Z(_, { children: Ha })
2461
2461
  ]
2462
2462
  }),
2463
2463
  /* @__PURE__ */ Q("div", {
@@ -2482,7 +2482,7 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2482
2482
  onClick: () => {
2483
2483
  e.act(), t();
2484
2484
  },
2485
- onMouseEnter: () => h(e._i),
2485
+ onMouseEnter: () => m(e._i),
2486
2486
  style: {
2487
2487
  display: "flex",
2488
2488
  alignItems: "center",
@@ -2490,14 +2490,14 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2490
2490
  padding: "7px 10px",
2491
2491
  borderRadius: 6,
2492
2492
  cursor: "pointer",
2493
- background: e._i === m ? "var(--accent-soft)" : "transparent",
2494
- color: e._i === m ? "var(--accent)" : "var(--text-2)",
2493
+ background: e._i === p ? "var(--accent-soft)" : "transparent",
2494
+ color: e._i === p ? "var(--accent)" : "var(--text-2)",
2495
2495
  minWidth: 0
2496
2496
  },
2497
2497
  children: [
2498
2498
  /* @__PURE__ */ Z("span", {
2499
2499
  style: {
2500
- color: e._i === m ? "var(--accent)" : "var(--text-3)",
2500
+ color: e._i === p ? "var(--accent)" : "var(--text-3)",
2501
2501
  display: "flex"
2502
2502
  },
2503
2503
  children: e.icon
@@ -2572,7 +2572,7 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2572
2572
  minWidth: 0
2573
2573
  },
2574
2574
  children: [
2575
- /* @__PURE__ */ Z(p, { children: "↑↓" }),
2575
+ /* @__PURE__ */ Z(_, { children: "↑↓" }),
2576
2576
  " ",
2577
2577
  l("shell.palette.hint.navigate", "navigate")
2578
2578
  ]
@@ -2585,7 +2585,7 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2585
2585
  minWidth: 0
2586
2586
  },
2587
2587
  children: [
2588
- /* @__PURE__ */ Z(p, { children: "↵" }),
2588
+ /* @__PURE__ */ Z(_, { children: "↵" }),
2589
2589
  " ",
2590
2590
  l("shell.palette.hint.select", "select")
2591
2591
  ]
@@ -2598,7 +2598,7 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2598
2598
  minWidth: 0
2599
2599
  },
2600
2600
  children: [
2601
- /* @__PURE__ */ Z(p, { children: "/" }),
2601
+ /* @__PURE__ */ Z(_, { children: "/" }),
2602
2602
  " ",
2603
2603
  l("shell.palette.hint.ask_ai", "ask AI")
2604
2604
  ]
@@ -2615,7 +2615,7 @@ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2615
2615
  }
2616
2616
  //#endregion
2617
2617
  //#region src/components/agents/AgentChatPanel.tsx
2618
- var Ka = Si(() => import("./AgentChatPanel.impl-DBH1Ff4G.js").then((e) => ({ default: e.AgentChatPanel })));
2618
+ var Ka = Si(() => import("./AgentChatPanel.impl-BY-Ir7Sh.js").then((e) => ({ default: e.AgentChatPanel })));
2619
2619
  function qa(e) {
2620
2620
  return e.open ? /* @__PURE__ */ Z(xi, {
2621
2621
  fallback: null,
@@ -2627,10 +2627,10 @@ function qa(e) {
2627
2627
  var Ja = "default";
2628
2628
  function Ya() {
2629
2629
  let e = z();
2630
- fa(), wr();
2631
- let { isAuthenticated: t, isLoading: n, user: r, activeTenant: i } = R(), a = Gt(), o = ji(), s = ar(), c = W((e) => s(e, { topLevel: !0 }), [s]), l = ki(), { data: u } = L(), d = F(), f = U((e) => e.sidebar), p = U((e) => e.tabsPosition), m = U((e) => e.aiSurface), h = U((e) => e.colorScheme), g = U((e) => e.set), _ = U((e) => e.hydrateFromBranding), { branding: v } = Bt(), y = Et(), b = H((e) => e.tabs), x = H((e) => e.activeTabId), S = H((e) => e.closeTabs), C = H((e) => e.switchTab), w = H((e) => e.setScope), T = H((e) => e.hydrate), [E, D] = J(Ja), [ee, O] = J(!1), [te, k] = J("default"), [A, ne] = J(!1), [re, j] = J(), [ie, ae] = J(!1), [oe, se] = J(!1), ce = q(null), le = q(null), [M, ue] = J(null), de = m !== "off" && y.isVisible("show_command_palette"), fe = m === "panel" || m === "both", pe = m === "command" || m === "both", me = Dt(), he = me?.ai_name?.trim() ?? "", ge = d.category === "phone" || d.category === "tablet", _e = y.isVisible("show_topbar"), ve = !ge && y.isVisible("show_rail"), ye = !ge && y.isVisible("show_sidebar"), be = !ge && y.isVisible("show_tabs"), xe = ge && y.isVisible("show_sidebar"), Se = ge && y.isVisible("show_tabs"), Ce = y.isVisible("show_tenant_switcher"), we = y.isVisible("show_breadcrumbs"), Te = y.isVisible("show_theme_toggle"), N = W((e = "default") => {
2632
- de && (k(e), O(!0));
2633
- }, [de]), Ee = W((e) => {
2630
+ fa(), mr();
2631
+ let { isAuthenticated: t, isLoading: n, user: r, activeTenant: i } = R(), a = I(), o = ji(), s = cr(), c = W((e) => s(e, { topLevel: !0 }), [s]), l = ki(), { data: u } = L(), d = A(), f = U((e) => e.sidebar), p = U((e) => e.tabsPosition), m = U((e) => e.aiSurface), h = U((e) => e.colorScheme), g = U((e) => e.set), _ = U((e) => e.hydrateFromBranding), { branding: v } = Jt(), y = Pt(), b = H((e) => e.tabs), x = H((e) => e.activeTabId), S = H((e) => e.closeTabs), C = H((e) => e.switchTab), w = H((e) => e.setScope), T = H((e) => e.hydrate), [E, D] = J(Ja), [O, ee] = J(!1), [te, ne] = J("default"), [re, k] = J(!1), [ie, ae] = J(), [oe, se] = J(!1), [ce, le] = J(!1), ue = q(null), de = q(null), [fe, pe] = J(null), me = m !== "off" && y.isVisible("show_command_palette"), he = m === "panel" || m === "both", ge = m === "command" || m === "both", _e = Ft(), ve = _e?.ai_name?.trim() ?? "", ye = d.category === "phone" || d.category === "tablet", be = y.isVisible("show_topbar"), xe = !ye && y.isVisible("show_rail"), Se = !ye && y.isVisible("show_sidebar"), Ce = !ye && y.isVisible("show_tabs"), we = ye && y.isVisible("show_sidebar"), Te = ye && y.isVisible("show_tabs"), Ee = y.isVisible("show_tenant_switcher"), De = y.isVisible("show_breadcrumbs"), Oe = y.isVisible("show_theme_toggle"), ke = W((e = "default") => {
2632
+ me && (ne(e), ee(!0));
2633
+ }, [me]), Ae = W((e) => {
2634
2634
  if (e.length === 0) return;
2635
2635
  let t = H.getState(), n = !t.activeTabId || e.includes(t.activeTabId), r = S(e);
2636
2636
  if (!n) return;
@@ -2639,24 +2639,24 @@ function Ya() {
2639
2639
  pathname: i.pathname,
2640
2640
  search: i.search
2641
2641
  }, { replace: i.replace });
2642
- }, [S, o]), De = W((e, t) => {
2642
+ }, [S, o]), je = W((e, t) => {
2643
2643
  let n = H.getState(), r = Ba(n.tabs, n.activeTabId, e, t);
2644
2644
  if (r) {
2645
2645
  if (r.dirtyTabs.length > 0) {
2646
- ue(r);
2646
+ pe(r);
2647
2647
  return;
2648
2648
  }
2649
- Ee(r.ids);
2649
+ Ae(r.ids);
2650
2650
  }
2651
- }, [Ee]), Oe = W(() => {
2652
- ue(null);
2653
- }, []), ke = W(() => {
2654
- M && (ue(null), Ee(M.cleanIds));
2655
- }, [M, Ee]), Ae = W(() => {
2656
- M && (ue(null), Ee(M.ids));
2657
- }, [M, Ee]);
2658
- Ve(), G(() => {
2659
- a.enabled || !n && !t && o(rn(`${l.pathname}${l.search}${l.hash}`), { replace: !0 });
2651
+ }, [Ae]), Me = W(() => {
2652
+ pe(null);
2653
+ }, []), Ne = W(() => {
2654
+ fe && (pe(null), Ae(fe.cleanIds));
2655
+ }, [fe, Ae]), Pe = W(() => {
2656
+ fe && (pe(null), Ae(fe.ids));
2657
+ }, [fe, Ae]);
2658
+ Ze(), G(() => {
2659
+ a.enabled || !n && !t && o(dn(`${l.pathname}${l.search}${l.hash}`), { replace: !0 });
2660
2660
  }, [
2661
2661
  a.enabled,
2662
2662
  n,
@@ -2667,7 +2667,7 @@ function Ya() {
2667
2667
  l.search
2668
2668
  ]), G(() => {
2669
2669
  let e = r?.id || null, t = i?.id || null;
2670
- w(t, e), tr.getState().setScope(t, e), e && t && (T(), tr.getState().hydrate(), lr());
2670
+ w(t, e), fr.getState().setScope(t, e), e && t && (T(), fr.getState().hydrate(), wr());
2671
2671
  }, [
2672
2672
  r?.id,
2673
2673
  i?.id,
@@ -2691,21 +2691,21 @@ function Ya() {
2691
2691
  l.pathname,
2692
2692
  E
2693
2693
  ]), G(() => {
2694
- ae(!1), se(!1);
2694
+ se(!1), le(!1);
2695
2695
  }, [l.pathname, l.search]), G(() => {
2696
2696
  let e = (e) => {
2697
2697
  let t = document.activeElement, n = !!t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable), r = e.metaKey || e.ctrlKey;
2698
- r && e.key.toLowerCase() === "k" ? (e.preventDefault(), N("default")) : r && e.key.toLowerCase() === "t" ? (e.preventDefault(), N("new")) : r && e.key.toLowerCase() === "b" ? (e.preventDefault(), g("sidebar", f === "collapsed" ? "wide" : "collapsed")) : r && e.key.toLowerCase() === "w" ? (e.preventDefault(), De("current")) : r && e.key === "/" ? (e.preventDefault(), fe && ne((e) => !e)) : e.key === "/" && !n ? (e.preventDefault(), N("default")) : e.key === "Escape" && O(!1);
2698
+ r && e.key.toLowerCase() === "k" ? (e.preventDefault(), ke("default")) : r && e.key.toLowerCase() === "t" ? (e.preventDefault(), ke("new")) : r && e.key.toLowerCase() === "b" ? (e.preventDefault(), g("sidebar", f === "collapsed" ? "wide" : "collapsed")) : r && e.key.toLowerCase() === "w" ? (e.preventDefault(), je("current")) : r && e.key === "/" ? (e.preventDefault(), he && k((e) => !e)) : e.key === "/" && !n ? (e.preventDefault(), ke("default")) : e.key === "Escape" && ee(!1);
2699
2699
  };
2700
2700
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2701
2701
  }, [
2702
- N,
2703
- De,
2702
+ ke,
2703
+ je,
2704
2704
  g,
2705
2705
  f,
2706
- fe
2706
+ he
2707
2707
  ]);
2708
- let je = K(() => u ? ao(e, u.navigation, u.screens, l.pathname, b, x, c) : [], [
2708
+ let Fe = K(() => u ? ao(e, u.navigation, u.screens, l.pathname, b, x, c) : [], [
2709
2709
  e,
2710
2710
  u,
2711
2711
  l.pathname,
@@ -2725,11 +2725,11 @@ function Ya() {
2725
2725
  children: e("shell.loading", "Loading…")
2726
2726
  });
2727
2727
  if (!t) return null;
2728
- let Me = (e) => {
2728
+ let Ie = (e) => {
2729
2729
  D(e);
2730
2730
  let t = ro(e, u);
2731
2731
  t && c(t);
2732
- }, Ne = (e) => {
2732
+ }, Le = (e) => {
2733
2733
  switch (e.type) {
2734
2734
  case "nav":
2735
2735
  e.route && c(e.route);
@@ -2741,18 +2741,18 @@ function Ya() {
2741
2741
  e.route && c(e.route);
2742
2742
  break;
2743
2743
  case "ai":
2744
- fe && (j(e.q), ne(!0));
2744
+ he && (ae(e.q), k(!0));
2745
2745
  break;
2746
2746
  case "ai-panel":
2747
- fe && (j(void 0), ne(!0));
2747
+ he && (ae(void 0), k(!0));
2748
2748
  break;
2749
2749
  case "theme":
2750
2750
  g("colorScheme", h === "dark" ? "light" : "dark");
2751
2751
  break;
2752
- case "tab-close": e.tabCloseScope && De(e.tabCloseScope);
2752
+ case "tab-close": e.tabCloseScope && je(e.tabCloseScope);
2753
2753
  }
2754
2754
  };
2755
- return a.enabled ? /* @__PURE__ */ Q(We, { children: [
2755
+ return a.enabled ? /* @__PURE__ */ Q(et, { children: [
2756
2756
  /* @__PURE__ */ Z(pa, {}),
2757
2757
  /* @__PURE__ */ Z(oa, {}),
2758
2758
  /* @__PURE__ */ Z(ma, {}),
@@ -2764,49 +2764,49 @@ function Ya() {
2764
2764
  style: { height: "var(--app-height)" },
2765
2765
  children: /* @__PURE__ */ Z(Ei, {})
2766
2766
  })
2767
- ] }) : /* @__PURE__ */ Z(We, { children: /* @__PURE__ */ Q("div", {
2767
+ ] }) : /* @__PURE__ */ Z(et, { children: /* @__PURE__ */ Q("div", {
2768
2768
  id: "app",
2769
2769
  "data-sidebar": f,
2770
- "data-mobile-shell": ge ? "true" : void 0,
2770
+ "data-mobile-shell": ye ? "true" : void 0,
2771
2771
  style: Xa({
2772
- mobileShell: ge,
2773
- showTopbar: _e,
2774
- showRail: ve,
2775
- showSidebar: ye,
2772
+ mobileShell: ye,
2773
+ showTopbar: be,
2774
+ showRail: xe,
2775
+ showSidebar: Se,
2776
2776
  sidebarMode: f
2777
2777
  }),
2778
2778
  children: [
2779
2779
  /* @__PURE__ */ Z(Ra, {}),
2780
2780
  /* @__PURE__ */ Z(za, {}),
2781
- _e && /* @__PURE__ */ Z(Na, {
2782
- breadcrumbs: je,
2781
+ be && /* @__PURE__ */ Z(Na, {
2782
+ breadcrumbs: Fe,
2783
2783
  onCrumbClick: (e) => e.onClick && e.onClick(),
2784
- showNavButton: xe,
2785
- navButtonRef: ce,
2786
- onOpenNav: () => ae(!0),
2787
- showTabsButton: Se,
2788
- tabsButtonRef: le,
2789
- onOpenTabs: () => se(!0),
2784
+ showNavButton: we,
2785
+ navButtonRef: ue,
2786
+ onOpenNav: () => se(!0),
2787
+ showTabsButton: Te,
2788
+ tabsButtonRef: de,
2789
+ onOpenTabs: () => le(!0),
2790
2790
  mobileTabCount: b.length,
2791
- onCmdK: () => N("default"),
2792
- onToggleAI: () => fe && ne((e) => !e),
2793
- aiOpen: A,
2791
+ onCmdK: () => ke("default"),
2792
+ onToggleAI: () => he && k((e) => !e),
2793
+ aiOpen: re,
2794
2794
  onOpenProfile: () => c("/profile"),
2795
2795
  onOpenPrefs: () => c("/preferences"),
2796
- showTenantSwitcher: Ce,
2797
- showBreadcrumbs: we,
2798
- showThemeToggle: Te
2796
+ showTenantSwitcher: Ee,
2797
+ showBreadcrumbs: De,
2798
+ showThemeToggle: Oe
2799
2799
  }),
2800
- ve && /* @__PURE__ */ Z(qi, {
2800
+ xe && /* @__PURE__ */ Z(qi, {
2801
2801
  activeArea: E,
2802
- onPick: Me,
2803
- onToggleAI: () => fe && ne((e) => !e),
2804
- aiOpen: A,
2805
- onCmdK: () => N("default"),
2802
+ onPick: Ie,
2803
+ onToggleAI: () => he && k((e) => !e),
2804
+ aiOpen: re,
2805
+ onCmdK: () => ke("default"),
2806
2806
  areas: u?.areas,
2807
- branding: me
2807
+ branding: _e
2808
2808
  }),
2809
- ye && /* @__PURE__ */ Z(ha, { activeArea: E }),
2809
+ Se && /* @__PURE__ */ Z(ha, { activeArea: E }),
2810
2810
  /* @__PURE__ */ Q("main", {
2811
2811
  style: {
2812
2812
  gridArea: "main",
@@ -2816,9 +2816,9 @@ function Ya() {
2816
2816
  minWidth: 0
2817
2817
  },
2818
2818
  children: [
2819
- be && p === "top" && /* @__PURE__ */ Z(Fa, {
2820
- onNew: () => N("new"),
2821
- onCloseRequest: De
2819
+ Ce && p === "top" && /* @__PURE__ */ Z(Fa, {
2820
+ onNew: () => ke("new"),
2821
+ onCloseRequest: je
2822
2822
  }),
2823
2823
  /* @__PURE__ */ Z("div", {
2824
2824
  style: {
@@ -2830,57 +2830,57 @@ function Ya() {
2830
2830
  },
2831
2831
  children: /* @__PURE__ */ Z(Ei, {})
2832
2832
  }),
2833
- be && p === "bottom" && /* @__PURE__ */ Z(Fa, {
2834
- onNew: () => N("new"),
2835
- onCloseRequest: De
2833
+ Ce && p === "bottom" && /* @__PURE__ */ Z(Fa, {
2834
+ onNew: () => ke("new"),
2835
+ onCloseRequest: je
2836
2836
  })
2837
2837
  ]
2838
2838
  }),
2839
- de && /* @__PURE__ */ Z(Ga, {
2840
- open: ee,
2839
+ me && /* @__PURE__ */ Z(Ga, {
2840
+ open: O,
2841
2841
  mode: te,
2842
- onClose: () => O(!1),
2843
- onAction: (e) => Ne(e),
2842
+ onClose: () => ee(!1),
2843
+ onAction: (e) => Le(e),
2844
2844
  navigation: u?.navigation,
2845
2845
  screens: u?.screens,
2846
- includeAI: pe,
2847
- aiName: he
2846
+ includeAI: ge,
2847
+ aiName: ve
2848
2848
  }),
2849
- fe && A && /* @__PURE__ */ Z(qa, {
2850
- open: A,
2849
+ he && re && /* @__PURE__ */ Z(qa, {
2850
+ open: re,
2851
2851
  onClose: () => {
2852
- ne(!1), j(void 0);
2852
+ k(!1), ae(void 0);
2853
2853
  },
2854
- title: he,
2855
- askOnOpen: re
2854
+ title: ve,
2855
+ askOnOpen: ie
2856
2856
  }),
2857
- xe && /* @__PURE__ */ Z(to, {
2858
- open: ie,
2857
+ we && /* @__PURE__ */ Z(to, {
2858
+ open: oe,
2859
2859
  activeArea: E,
2860
2860
  schema: u,
2861
- returnFocusRef: ce,
2862
- onClose: () => ae(!1),
2861
+ returnFocusRef: ue,
2862
+ onClose: () => se(!1),
2863
2863
  onNavigate: c
2864
2864
  }),
2865
- Se && /* @__PURE__ */ Z(no, {
2866
- open: oe,
2865
+ Te && /* @__PURE__ */ Z(no, {
2866
+ open: ce,
2867
2867
  tabs: b,
2868
2868
  activeTabId: x,
2869
- returnFocusRef: le,
2870
- onClose: () => se(!1),
2869
+ returnFocusRef: de,
2870
+ onClose: () => le(!1),
2871
2871
  onSwitch: (e) => {
2872
2872
  C(e.id), o({
2873
2873
  pathname: e.pathname,
2874
2874
  search: e.search
2875
- }, { replace: !1 }), se(!1);
2875
+ }, { replace: !1 }), le(!1);
2876
2876
  },
2877
- onCloseTab: (e) => De("current", e)
2877
+ onCloseTab: (e) => je("current", e)
2878
2878
  }),
2879
2879
  /* @__PURE__ */ Z(La, {
2880
- pending: M,
2881
- onCancel: Oe,
2882
- onCloseClean: ke,
2883
- onDiscardAll: Ae
2880
+ pending: fe,
2881
+ onCancel: Me,
2882
+ onCloseClean: Ne,
2883
+ onDiscardAll: Pe
2884
2884
  })
2885
2885
  ]
2886
2886
  }) });
@@ -3058,7 +3058,7 @@ function to({ open: e, activeArea: t, schema: r, returnFocusRef: i, onClose: a,
3058
3058
  flex: 1
3059
3059
  },
3060
3060
  children: s("shell.nav.title", "Navigation")
3061
- }), /* @__PURE__ */ Z(S, {
3061
+ }), /* @__PURE__ */ Z(M, {
3062
3062
  icon: /* @__PURE__ */ Z(n.x, { size: 15 }),
3063
3063
  title: s("shell.nav.close", "Close navigation"),
3064
3064
  onClick: a
@@ -3182,7 +3182,7 @@ function no({ open: e, tabs: t, activeTabId: r, returnFocusRef: i, onClose: a, o
3182
3182
  fontSize: 13
3183
3183
  },
3184
3184
  children: c("shell.tabs.open_tabs", "Open tabs")
3185
- }), /* @__PURE__ */ Z(S, {
3185
+ }), /* @__PURE__ */ Z(M, {
3186
3186
  icon: /* @__PURE__ */ Z(n.x, { size: 14 }),
3187
3187
  title: c("shell.tabs.close_menu", "Close tabs menu"),
3188
3188
  onClick: a
@@ -3227,7 +3227,7 @@ function no({ open: e, tabs: t, activeTabId: r, returnFocusRef: i, onClose: a, o
3227
3227
  },
3228
3228
  children: l(e)
3229
3229
  })]
3230
- }), e.closable && /* @__PURE__ */ Z(S, {
3230
+ }), e.closable && /* @__PURE__ */ Z(M, {
3231
3231
  icon: /* @__PURE__ */ Z(n.x, { size: 12 }),
3232
3232
  title: c("shell.tabs.close_named", "Close {title}", { title: l(e) }),
3233
3233
  onClick: () => s(e.id)
@@ -3342,26 +3342,26 @@ function co(e, t) {
3342
3342
  return e.slice(0, r) === t.slice(0, r) ? e : `${e}+${n}`;
3343
3343
  }
3344
3344
  function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a, badges: o, brandName: s }) {
3345
- let c = z(), l = U((e) => e.colorScheme), u = F(), d = U((e) => e.set), f = U((e) => e.hydrateFromBranding), p = () => d("colorScheme", l === "dark" ? "light" : "dark"), { branding: m } = Bt();
3345
+ let c = z(), l = U((e) => e.colorScheme), u = A(), d = U((e) => e.set), f = U((e) => e.hydrateFromBranding), p = () => d("colorScheme", l === "dark" ? "light" : "dark"), { branding: m } = Jt();
3346
3346
  G(() => {
3347
3347
  f(m?.preferences);
3348
3348
  }, [m, f]);
3349
- let h = m?.identity, _ = s ?? h?.wordmark ?? h?.app_name ?? "", v = r ?? c(h?.auth_tagline), y = i ?? c(h?.auth_subtagline), b = a ?? h?.version_label ?? "", x = K(() => o && o.length ? o : (h?.auth_badges ?? []).map((e) => c(e)).filter(Boolean).slice(0, 8).map((e) => [e, "shield"]), [
3349
+ let h = m?.identity, g = s ?? h?.wordmark ?? h?.app_name ?? "", _ = r ?? c(h?.auth_tagline), v = i ?? c(h?.auth_subtagline), y = a ?? h?.version_label ?? "", b = K(() => o && o.length ? o : (h?.auth_badges ?? []).map((e) => c(e)).filter(Boolean).slice(0, 8).map((e) => [e, "shield"]), [
3350
3350
  o,
3351
3351
  h?.auth_badges,
3352
3352
  c
3353
- ]), C = h?.workspace_domain ?? "", w = !!(t && C), T = h?.status_url ?? "", E = !!T, D = h?.legal_links, ee = K(() => [
3354
- [c("auth.footer.security", "Security"), D?.security_url ?? ""],
3355
- [c("auth.footer.privacy", "Privacy"), D?.privacy_url ?? ""],
3356
- [c("auth.footer.terms", "Terms"), D?.terms_url ?? ""],
3357
- [c("auth.footer.docs", "Docs"), D?.docs_url ?? ""]
3353
+ ]), x = h?.workspace_domain ?? "", S = !!(t && x), C = h?.status_url ?? "", w = !!C, T = h?.legal_links, E = K(() => [
3354
+ [c("auth.footer.security", "Security"), T?.security_url ?? ""],
3355
+ [c("auth.footer.privacy", "Privacy"), T?.privacy_url ?? ""],
3356
+ [c("auth.footer.terms", "Terms"), T?.terms_url ?? ""],
3357
+ [c("auth.footer.docs", "Docs"), T?.docs_url ?? ""]
3358
3358
  ].filter(([, e]) => !!e), [
3359
- D?.security_url,
3360
- D?.privacy_url,
3361
- D?.terms_url,
3362
- D?.docs_url,
3359
+ T?.security_url,
3360
+ T?.privacy_url,
3361
+ T?.terms_url,
3362
+ T?.docs_url,
3363
3363
  c
3364
- ]), O = h?.legal_entity ?? "", te = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${O ? ` ${O}` : ""}`, { data: k } = g(), A = k?.meta, ne = co(A?.version, A?.revision), re = [A?.region ? c("auth.meta.region", "Region: {value}", { value: A.region }) : "", ne ? c("auth.meta.build", "Build {value}", { value: ne }) : ""].filter(Boolean).join(" · "), j = u.isPhone || u.height < oo;
3364
+ ]), D = h?.legal_entity ?? "", O = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${D ? ` ${D}` : ""}`, { data: ee } = ie(), te = ee?.meta, ne = co(te?.version, te?.revision), re = [te?.region ? c("auth.meta.region", "Region: {value}", { value: te.region }) : "", ne ? c("auth.meta.build", "Build {value}", { value: ne }) : ""].filter(Boolean).join(" · "), k = u.isPhone || u.height < oo;
3365
3365
  return /* @__PURE__ */ Q("div", {
3366
3366
  style: {
3367
3367
  minHeight: "var(--app-height)",
@@ -3374,9 +3374,9 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3374
3374
  children: [
3375
3375
  /* @__PURE__ */ Q("div", {
3376
3376
  style: {
3377
- paddingTop: j ? 12 : 16,
3378
- paddingBottom: j ? 12 : 16,
3379
- ...j ? $n(14) : {
3377
+ paddingTop: k ? 12 : 16,
3378
+ paddingBottom: k ? 12 : 16,
3379
+ ...k ? or(14) : {
3380
3380
  paddingLeft: 20,
3381
3381
  paddingRight: 20
3382
3382
  },
@@ -3389,7 +3389,7 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3389
3389
  appLogo: h?.app_logo,
3390
3390
  size: 26
3391
3391
  }),
3392
- _ && /* @__PURE__ */ Z("span", {
3392
+ g && /* @__PURE__ */ Z("span", {
3393
3393
  style: {
3394
3394
  fontSize: 14,
3395
3395
  fontWeight: 600,
@@ -3399,9 +3399,9 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3399
3399
  textOverflow: "ellipsis",
3400
3400
  whiteSpace: "nowrap"
3401
3401
  },
3402
- children: _
3402
+ children: g
3403
3403
  }),
3404
- w && /* @__PURE__ */ Q("span", {
3404
+ S && /* @__PURE__ */ Q("span", {
3405
3405
  className: "mono",
3406
3406
  style: {
3407
3407
  marginLeft: 6,
@@ -3415,11 +3415,11 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3415
3415
  children: [
3416
3416
  t,
3417
3417
  ".",
3418
- C
3418
+ x
3419
3419
  ]
3420
3420
  }),
3421
3421
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
3422
- /* @__PURE__ */ Z(S, {
3422
+ /* @__PURE__ */ Z(M, {
3423
3423
  icon: Z(l === "dark" ? n.sun : n.moon, { size: 14 }),
3424
3424
  onClick: p,
3425
3425
  title: c("auth.toggle_theme", "Toggle theme")
@@ -3430,11 +3430,11 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3430
3430
  style: {
3431
3431
  flex: 1,
3432
3432
  display: "flex",
3433
- alignItems: j ? "flex-start" : "center",
3433
+ alignItems: k ? "flex-start" : "center",
3434
3434
  justifyContent: "center",
3435
- paddingTop: j ? 16 : 20,
3436
- paddingBottom: j ? 12 : 20,
3437
- ...j ? $n(12) : {
3435
+ paddingTop: k ? 16 : 20,
3436
+ paddingBottom: k ? 12 : 20,
3437
+ ...k ? or(12) : {
3438
3438
  paddingLeft: 20,
3439
3439
  paddingRight: 20
3440
3440
  },
@@ -3443,18 +3443,18 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3443
3443
  children: /* @__PURE__ */ Q("div", {
3444
3444
  style: {
3445
3445
  display: "grid",
3446
- gridTemplateColumns: j ? "minmax(0, 1fr)" : "1fr 1fr",
3446
+ gridTemplateColumns: k ? "minmax(0, 1fr)" : "1fr 1fr",
3447
3447
  gap: 0,
3448
- width: j ? "100%" : 980,
3448
+ width: k ? "100%" : 980,
3449
3449
  maxWidth: "100%",
3450
- minHeight: j ? "auto" : oo,
3450
+ minHeight: k ? "auto" : oo,
3451
3451
  background: "var(--surface)",
3452
3452
  border: "1px solid var(--border)",
3453
- borderRadius: j ? 12 : 14,
3453
+ borderRadius: k ? 12 : 14,
3454
3454
  overflow: "hidden",
3455
- boxShadow: j ? "var(--shadow-sm)" : "var(--shadow-lg)"
3455
+ boxShadow: k ? "var(--shadow-sm)" : "var(--shadow-lg)"
3456
3456
  },
3457
- children: [!j && /* @__PURE__ */ Q("div", {
3457
+ children: [!k && /* @__PURE__ */ Q("div", {
3458
3458
  "data-testid": "auth-brand-panel",
3459
3459
  style: {
3460
3460
  padding: "36px 36px 28px",
@@ -3496,15 +3496,15 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3496
3496
  appLogo: h?.app_logo,
3497
3497
  size: 34
3498
3498
  }),
3499
- _ && /* @__PURE__ */ Z("span", {
3499
+ g && /* @__PURE__ */ Z("span", {
3500
3500
  style: {
3501
3501
  fontSize: 18,
3502
3502
  fontWeight: 600,
3503
3503
  letterSpacing: "-0.012em"
3504
3504
  },
3505
- children: _
3505
+ children: g
3506
3506
  }),
3507
- b && /* @__PURE__ */ Z("span", {
3507
+ y && /* @__PURE__ */ Z("span", {
3508
3508
  className: "mono",
3509
3509
  style: {
3510
3510
  fontSize: 10,
@@ -3513,11 +3513,11 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3513
3513
  borderRadius: 4,
3514
3514
  color: "var(--auth-panel-fg-muted)"
3515
3515
  },
3516
- children: b
3516
+ children: y
3517
3517
  })
3518
3518
  ]
3519
3519
  }),
3520
- (h?.app_logo || _) && /* @__PURE__ */ Q("div", {
3520
+ (h?.app_logo || g) && /* @__PURE__ */ Q("div", {
3521
3521
  style: {
3522
3522
  marginTop: 48,
3523
3523
  position: "relative",
@@ -3530,14 +3530,14 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3530
3530
  appLogo: h.app_logo,
3531
3531
  size: 96,
3532
3532
  radius: 0
3533
- }), _ && /* @__PURE__ */ Z("span", {
3533
+ }), g && /* @__PURE__ */ Z("span", {
3534
3534
  style: {
3535
3535
  fontSize: 28,
3536
3536
  fontWeight: 600,
3537
3537
  letterSpacing: "-0.018em",
3538
3538
  color: "var(--auth-panel-fg)"
3539
3539
  },
3540
- children: _
3540
+ children: g
3541
3541
  })]
3542
3542
  }),
3543
3543
  /* @__PURE__ */ Q("div", {
@@ -3546,7 +3546,7 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3546
3546
  position: "relative"
3547
3547
  },
3548
3548
  children: [
3549
- v && /* @__PURE__ */ Z("h1", {
3549
+ _ && /* @__PURE__ */ Z("h1", {
3550
3550
  style: {
3551
3551
  margin: 0,
3552
3552
  fontSize: 26,
@@ -3554,18 +3554,18 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3554
3554
  letterSpacing: "-0.022em",
3555
3555
  lineHeight: 1.2
3556
3556
  },
3557
- children: v
3557
+ children: _
3558
3558
  }),
3559
- y && /* @__PURE__ */ Z("p", {
3559
+ v && /* @__PURE__ */ Z("p", {
3560
3560
  style: {
3561
3561
  margin: "10px 0 0",
3562
3562
  fontSize: 13,
3563
3563
  color: "var(--auth-panel-fg-muted)",
3564
3564
  lineHeight: 1.65
3565
3565
  },
3566
- children: y
3566
+ children: v
3567
3567
  }),
3568
- x.length > 0 && /* @__PURE__ */ Z("div", {
3568
+ b.length > 0 && /* @__PURE__ */ Z("div", {
3569
3569
  style: {
3570
3570
  marginTop: 22,
3571
3571
  display: "grid",
@@ -3574,7 +3574,7 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3574
3574
  fontSize: 11.5,
3575
3575
  color: "var(--auth-panel-fg-dim)"
3576
3576
  },
3577
- children: x.map(([e, t]) => {
3577
+ children: b.map(([e, t]) => {
3578
3578
  let r = n[t];
3579
3579
  return /* @__PURE__ */ Q("div", {
3580
3580
  style: {
@@ -3589,8 +3589,8 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3589
3589
  }, e);
3590
3590
  })
3591
3591
  }),
3592
- E && /* @__PURE__ */ Z("a", {
3593
- href: T,
3592
+ w && /* @__PURE__ */ Z("a", {
3593
+ href: C,
3594
3594
  target: "_blank",
3595
3595
  rel: "noopener noreferrer",
3596
3596
  className: "mono",
@@ -3607,7 +3607,7 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3607
3607
  color: "var(--auth-panel-fg-muted)",
3608
3608
  textDecoration: "none"
3609
3609
  },
3610
- children: so(T)
3610
+ children: so(C)
3611
3611
  })
3612
3612
  ]
3613
3613
  })
@@ -3615,7 +3615,7 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3615
3615
  }), /* @__PURE__ */ Z("div", {
3616
3616
  "data-testid": "auth-form-panel",
3617
3617
  style: {
3618
- padding: j ? "28px 20px 24px" : "36px 40px",
3618
+ padding: k ? "28px 20px 24px" : "36px 40px",
3619
3619
  display: "flex",
3620
3620
  flexDirection: "column",
3621
3621
  justifyContent: "center",
@@ -3627,25 +3627,25 @@ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3627
3627
  }),
3628
3628
  /* @__PURE__ */ Q("div", {
3629
3629
  style: {
3630
- padding: j ? "12px 14px calc(12px + var(--safe-area-bottom))" : "14px 20px",
3630
+ padding: k ? "12px 14px calc(12px + var(--safe-area-bottom))" : "14px 20px",
3631
3631
  display: "flex",
3632
- alignItems: j ? "flex-start" : "center",
3633
- flexDirection: j ? "column" : "row",
3634
- gap: j ? 6 : 16,
3632
+ alignItems: k ? "flex-start" : "center",
3633
+ flexDirection: k ? "column" : "row",
3634
+ gap: k ? 6 : 16,
3635
3635
  fontSize: 11,
3636
3636
  color: "var(--text-4)",
3637
3637
  minWidth: 0
3638
3638
  },
3639
3639
  children: [
3640
- /* @__PURE__ */ Z("span", { children: te }),
3641
- ee.map(([e, t]) => /* @__PURE__ */ Z("a", {
3640
+ /* @__PURE__ */ Z("span", { children: O }),
3641
+ E.map(([e, t]) => /* @__PURE__ */ Z("a", {
3642
3642
  href: t,
3643
3643
  target: "_blank",
3644
3644
  rel: "noopener noreferrer",
3645
3645
  style: { color: "inherit" },
3646
3646
  children: e
3647
3647
  }, e)),
3648
- re && /* @__PURE__ */ Q(X, { children: [!j && /* @__PURE__ */ Z("div", { style: { flex: 1 } }), /* @__PURE__ */ Z("span", {
3648
+ re && /* @__PURE__ */ Q(X, { children: [!k && /* @__PURE__ */ Z("div", { style: { flex: 1 } }), /* @__PURE__ */ Z("span", {
3649
3649
  className: "mono",
3650
3650
  style: {
3651
3651
  maxWidth: "100%",
@@ -3779,20 +3779,20 @@ var xo = "sso-failure", So = {
3779
3779
  }
3780
3780
  };
3781
3781
  function Co() {
3782
- let e = ji(), [t] = Fi(), { login: r, isLoginPending: i, isAuthenticated: a } = ba(), { data: o } = L(), s = z(), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!0), m = Zt(t.get("next") || t.get("redirect")), g = t.get("sso_error"), _ = z("errors"), { data: v } = zi({
3782
+ let e = ji(), [t] = Fi(), { login: r, isLoginPending: i, isAuthenticated: a } = ba(), { data: o } = L(), s = z(), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!0), m = an(t.get("next") || t.get("redirect")), h = t.get("sso_error"), g = z("errors"), { data: _ } = zi({
3783
3783
  queryKey: ["check-setup"],
3784
- queryFn: fn
3785
- }), { data: y } = zi({
3784
+ queryFn: yn
3785
+ }), { data: v } = zi({
3786
3786
  queryKey: ["sso-providers"],
3787
- queryFn: () => sn(),
3787
+ queryFn: () => mn(),
3788
3788
  staleTime: 6e4
3789
3789
  });
3790
3790
  G(() => {
3791
- v?.needs_setup && e("/signup", { replace: !0 });
3792
- }, [v, e]), G(() => {
3791
+ _?.needs_setup && e("/signup", { replace: !0 });
3792
+ }, [_, e]), G(() => {
3793
3793
  if (!a || !o) return;
3794
3794
  let t = ho(m, o);
3795
- wo(m, t) && P.warning(s("auth.inaccessible_redirect", "You do not have access to that page. We opened your default page instead.")), e(t, { replace: !0 });
3795
+ wo(m, t) && F.warning(s("auth.inaccessible_redirect", "You do not have access to that page. We opened your default page instead.")), e(t, { replace: !0 });
3796
3796
  }, [
3797
3797
  a,
3798
3798
  e,
@@ -3800,19 +3800,19 @@ function Co() {
3800
3800
  o,
3801
3801
  s
3802
3802
  ]), G(() => {
3803
- g && P.error(_(g, "Sign-in failed."), void 0, { id: xo });
3804
- }, [_, g]);
3805
- function x(e) {
3803
+ h && F.error(g(h, "Sign-in failed."), void 0, { id: xo });
3804
+ }, [g, h]);
3805
+ function y(e) {
3806
3806
  e.preventDefault(), r({
3807
3807
  email: c,
3808
3808
  password: u,
3809
3809
  remember: f
3810
3810
  }, { onError: (e) => {
3811
- P.error(V(_, e));
3811
+ F.error(V(g, e));
3812
3812
  } });
3813
3813
  }
3814
3814
  return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("form", {
3815
- onSubmit: x,
3815
+ onSubmit: y,
3816
3816
  children: [
3817
3817
  /* @__PURE__ */ Z("div", {
3818
3818
  style: {
@@ -3841,19 +3841,19 @@ function Co() {
3841
3841
  },
3842
3842
  children: s("auth.signin.subtitle", "Use your corporate SSO or email & password.")
3843
3843
  }),
3844
- y && y.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
3844
+ v && v.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
3845
3845
  style: {
3846
3846
  display: "flex",
3847
3847
  flexDirection: "column",
3848
3848
  gap: 6,
3849
3849
  marginBottom: 12
3850
3850
  },
3851
- children: y.map((e) => {
3851
+ children: v.map((e) => {
3852
3852
  let t = So[e.slug.toLowerCase()] ?? {
3853
3853
  name: e.name,
3854
3854
  icon: /* @__PURE__ */ Z(n.shield, { size: 13 })
3855
3855
  };
3856
- return /* @__PURE__ */ Z(k, {
3856
+ return /* @__PURE__ */ Z(S, {
3857
3857
  size: "md",
3858
3858
  style: {
3859
3859
  justifyContent: "center",
@@ -3861,7 +3861,7 @@ function Co() {
3861
3861
  },
3862
3862
  icon: t.icon,
3863
3863
  onClick: (t) => {
3864
- t.preventDefault(), window.location.href = wn(e.slug, void 0, m);
3864
+ t.preventDefault(), window.location.href = jn(e.slug, void 0, m);
3865
3865
  },
3866
3866
  children: s("auth.signin.sso_continue", "Continue with {provider}", { provider: t.name })
3867
3867
  }, e.slug);
@@ -3902,7 +3902,7 @@ function Co() {
3902
3902
  gap: 12
3903
3903
  },
3904
3904
  children: [
3905
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: s("auth.field.email", "Email") }), /* @__PURE__ */ Z(N, {
3905
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: s("auth.field.email", "Email") }), /* @__PURE__ */ Z(P, {
3906
3906
  value: c,
3907
3907
  onChange: l,
3908
3908
  prefix: /* @__PURE__ */ Z(n.email, { size: 13 }),
@@ -3916,7 +3916,7 @@ function Co() {
3916
3916
  alignItems: "center"
3917
3917
  },
3918
3918
  children: [
3919
- /* @__PURE__ */ Z(h, { children: s("auth.field.password", "Password") }),
3919
+ /* @__PURE__ */ Z(N, { children: s("auth.field.password", "Password") }),
3920
3920
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
3921
3921
  /* @__PURE__ */ Z(wi, {
3922
3922
  to: "/forgot",
@@ -3929,7 +3929,7 @@ function Co() {
3929
3929
  children: s("auth.signin.forgot_link", "Forgot?")
3930
3930
  })
3931
3931
  ]
3932
- }), /* @__PURE__ */ Z(b, {
3932
+ }), /* @__PURE__ */ Z(ze, {
3933
3933
  value: u,
3934
3934
  onChange: d,
3935
3935
  placeholder: s("auth.signin.password_placeholder", "Your password")
@@ -3953,7 +3953,7 @@ function Co() {
3953
3953
  s("auth.signin.remember", "Keep me signed in on this device")
3954
3954
  ]
3955
3955
  }),
3956
- /* @__PURE__ */ Z(k, {
3956
+ /* @__PURE__ */ Z(S, {
3957
3957
  type: "submit",
3958
3958
  size: "md",
3959
3959
  kind: "primary",
@@ -3998,26 +3998,26 @@ function wo(e, t) {
3998
3998
  //#endregion
3999
3999
  //#region src/components/pages/auth/SignUp.tsx
4000
4000
  function To() {
4001
- let e = ji(), { signup: t, isSignupPending: r, isAuthenticated: i } = ba(), a = F(), o = z(), [s, c] = J(""), [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [_, v] = J(""), [y, x] = J(""), [S, C] = J(!1), { data: w } = g(), T = It(w), E = T?.workspace_domain ?? "", D = T?.legal_links?.terms_url ?? "", ee = T?.legal_links?.privacy_url ?? "", O = a.isPhone, { data: te } = zi({
4001
+ let e = ji(), { signup: t, isSignupPending: r, isAuthenticated: i } = ba(), a = A(), o = z(), [s, c] = J(""), [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [h, g] = J(""), [_, v] = J(""), [y, b] = J(!1), { data: x } = ie(), C = Wt(x), w = C?.workspace_domain ?? "", T = C?.legal_links?.terms_url ?? "", E = C?.legal_links?.privacy_url ?? "", D = a.isPhone, { data: O } = zi({
4002
4002
  queryKey: ["check-setup"],
4003
- queryFn: fn
4003
+ queryFn: yn
4004
4004
  });
4005
4005
  G(() => {
4006
- te && !te.needs_setup && e("/login", { replace: !0 });
4007
- }, [te, e]), G(() => {
4006
+ O && !O.needs_setup && e("/login", { replace: !0 });
4007
+ }, [O, e]), G(() => {
4008
4008
  i && e("/", { replace: !0 });
4009
4009
  }, [i, e]);
4010
- function A(e) {
4011
- if (e.preventDefault(), !S) return;
4010
+ function ee(e) {
4011
+ if (e.preventDefault(), !y) return;
4012
4012
  let n = [s, l].filter(Boolean).join(" ") || d;
4013
4013
  t({
4014
4014
  email: d,
4015
- password: y,
4015
+ password: _,
4016
4016
  displayName: n
4017
4017
  });
4018
4018
  }
4019
4019
  return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("form", {
4020
- onSubmit: A,
4020
+ onSubmit: ee,
4021
4021
  children: [
4022
4022
  /* @__PURE__ */ Z("div", {
4023
4023
  style: {
@@ -4057,65 +4057,65 @@ function To() {
4057
4057
  "data-testid": "signup-name-grid",
4058
4058
  style: {
4059
4059
  display: "grid",
4060
- gridTemplateColumns: O ? "minmax(0, 1fr)" : "1fr 1fr",
4060
+ gridTemplateColumns: D ? "minmax(0, 1fr)" : "1fr 1fr",
4061
4061
  gap: 10
4062
4062
  },
4063
- children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: o("auth.signup.first_name", "First name") }), /* @__PURE__ */ Z(N, {
4063
+ children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: o("auth.signup.first_name", "First name") }), /* @__PURE__ */ Z(P, {
4064
4064
  value: s,
4065
4065
  onChange: c
4066
- })] }), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: o("auth.signup.last_name", "Last name") }), /* @__PURE__ */ Z(N, {
4066
+ })] }), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: o("auth.signup.last_name", "Last name") }), /* @__PURE__ */ Z(P, {
4067
4067
  value: l,
4068
4068
  onChange: u
4069
4069
  })] })]
4070
4070
  }),
4071
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: o("auth.signup.work_email", "Work email") }), /* @__PURE__ */ Z(N, {
4071
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: o("auth.signup.work_email", "Work email") }), /* @__PURE__ */ Z(P, {
4072
4072
  value: d,
4073
4073
  onChange: f,
4074
4074
  prefix: /* @__PURE__ */ Z(n.email, { size: 13 }),
4075
4075
  placeholder: o("auth.signup.work_email_placeholder", "name@company.com"),
4076
4076
  required: !0
4077
4077
  })] }),
4078
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: o("auth.signup.company", "Company") }), /* @__PURE__ */ Z(N, {
4078
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: o("auth.signup.company", "Company") }), /* @__PURE__ */ Z(P, {
4079
4079
  value: p,
4080
4080
  onChange: m,
4081
4081
  prefix: /* @__PURE__ */ Z(n.building, { size: 13 })
4082
4082
  })] }),
4083
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: o("auth.signup.workspace_url", "Workspace URL") }), /* @__PURE__ */ Q("div", {
4083
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: o("auth.signup.workspace_url", "Workspace URL") }), /* @__PURE__ */ Q("div", {
4084
4084
  style: {
4085
4085
  display: "flex",
4086
- flexDirection: O ? "column" : "row",
4086
+ flexDirection: D ? "column" : "row",
4087
4087
  alignItems: "stretch",
4088
4088
  border: "1px solid var(--border)",
4089
4089
  borderRadius: 6,
4090
4090
  overflow: "hidden",
4091
4091
  minWidth: 0
4092
4092
  },
4093
- children: [/* @__PURE__ */ Z(N, {
4094
- value: _,
4095
- onChange: v,
4093
+ children: [/* @__PURE__ */ Z(P, {
4094
+ value: h,
4095
+ onChange: g,
4096
4096
  style: {
4097
4097
  border: 0,
4098
4098
  borderRadius: 0
4099
4099
  }
4100
- }), E && /* @__PURE__ */ Q("span", {
4100
+ }), w && /* @__PURE__ */ Q("span", {
4101
4101
  className: "mono",
4102
4102
  style: {
4103
4103
  display: "flex",
4104
4104
  alignItems: "center",
4105
- padding: O ? "8px 10px" : "0 10px",
4105
+ padding: D ? "8px 10px" : "0 10px",
4106
4106
  background: "var(--surface-2)",
4107
- borderLeft: O ? 0 : "1px solid var(--border)",
4108
- borderTop: O ? "1px solid var(--border)" : 0,
4107
+ borderLeft: D ? 0 : "1px solid var(--border)",
4108
+ borderTop: D ? "1px solid var(--border)" : 0,
4109
4109
  fontSize: 12,
4110
4110
  color: "var(--text-3)",
4111
4111
  overflowWrap: "anywhere"
4112
4112
  },
4113
- children: [".", E]
4113
+ children: [".", w]
4114
4114
  })]
4115
4115
  })] }),
4116
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: o("auth.field.password", "Password") }), /* @__PURE__ */ Z(b, {
4117
- value: y,
4118
- onChange: x,
4116
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: o("auth.field.password", "Password") }), /* @__PURE__ */ Z(ze, {
4117
+ value: _,
4118
+ onChange: v,
4119
4119
  placeholder: o("auth.signup.password_placeholder", "At least 12 characters"),
4120
4120
  showStrength: !0
4121
4121
  })] }),
@@ -4131,15 +4131,15 @@ function To() {
4131
4131
  children: [/* @__PURE__ */ Z("input", {
4132
4132
  type: "checkbox",
4133
4133
  style: { marginTop: 2 },
4134
- checked: S,
4135
- onChange: (e) => C(e.target.checked)
4134
+ checked: y,
4135
+ onChange: (e) => b(e.target.checked)
4136
4136
  }), /* @__PURE__ */ Z(Eo, {
4137
- termsUrl: D,
4138
- privacyUrl: ee,
4137
+ termsUrl: T,
4138
+ privacyUrl: E,
4139
4139
  t: o
4140
4140
  })]
4141
4141
  }),
4142
- /* @__PURE__ */ Z(k, {
4142
+ /* @__PURE__ */ Z(S, {
4143
4143
  type: "submit",
4144
4144
  size: "md",
4145
4145
  kind: "primary",
@@ -4147,7 +4147,7 @@ function To() {
4147
4147
  justifyContent: "center",
4148
4148
  width: "100%"
4149
4149
  },
4150
- disabled: r || !S,
4150
+ disabled: r || !y,
4151
4151
  children: r ? o("auth.signup.submitting", "Creating…") : o("auth.signup.submit", "Create workspace")
4152
4152
  }),
4153
4153
  /* @__PURE__ */ Q("div", {
@@ -4189,7 +4189,7 @@ function Eo({ termsUrl: e, privacyUrl: t, t: n }) {
4189
4189
  style: { color: "var(--accent)" },
4190
4190
  children: i
4191
4191
  }) : /* @__PURE__ */ Z("span", { children: i });
4192
- return /* @__PURE__ */ Z("span", { children: ln(n("auth.signup.agreement", "I agree to the {terms} and {privacy}."), {
4192
+ return /* @__PURE__ */ Z("span", { children: gn(n("auth.signup.agreement", "I agree to the {terms} and {privacy}."), {
4193
4193
  terms: a,
4194
4194
  privacy: o
4195
4195
  }) });
@@ -4202,7 +4202,7 @@ function Do() {
4202
4202
  if (e.preventDefault(), !o) {
4203
4203
  s(!0);
4204
4204
  try {
4205
- await Xt("auth.request_password_reset", { email: t });
4205
+ await rn("auth.request_password_reset", { email: t });
4206
4206
  } catch {} finally {
4207
4207
  a(!0), s(!1);
4208
4208
  }
@@ -4258,7 +4258,7 @@ function Do() {
4258
4258
  gap: 12
4259
4259
  },
4260
4260
  children: [
4261
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: e("auth.field.email", "Email") }), /* @__PURE__ */ Z(N, {
4261
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: e("auth.field.email", "Email") }), /* @__PURE__ */ Z(P, {
4262
4262
  value: t,
4263
4263
  onChange: r,
4264
4264
  prefix: /* @__PURE__ */ Z(n.email, { size: 13 }),
@@ -4268,7 +4268,7 @@ function Do() {
4268
4268
  type: "email",
4269
4269
  "aria-label": e("auth.field.email", "Email")
4270
4270
  })] }),
4271
- /* @__PURE__ */ Z(k, {
4271
+ /* @__PURE__ */ Z(S, {
4272
4272
  type: "submit",
4273
4273
  size: "md",
4274
4274
  kind: "primary",
@@ -4309,24 +4309,24 @@ function No() {
4309
4309
  e && e.remove();
4310
4310
  }
4311
4311
  function Po() {
4312
- let e = z(), t = z("errors")("auth.reset_link_invalid", "Invalid or expired link. Please request a new one."), r = e("auth.reset.password_min", "Password must be at least {min} characters.", { min: Oo }), i = ji(), [a] = J(() => jo()), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, g] = J(null);
4312
+ let e = z(), t = z("errors")("auth.reset_link_invalid", "Invalid or expired link. Please request a new one."), r = e("auth.reset.password_min", "Password must be at least {min} characters.", { min: Oo }), i = ji(), [a] = J(() => jo()), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, h] = J(null);
4313
4313
  G(() => {
4314
4314
  if (a) return typeof window < "u" && typeof window.history?.replaceState == "function" && window.history.replaceState(null, "", "/reset"), Mo(), No;
4315
4315
  }, [a]);
4316
- let _ = K(() => !a, [a]);
4317
- async function v(n) {
4316
+ let g = K(() => !a, [a]);
4317
+ async function _(n) {
4318
4318
  if (n.preventDefault(), !f) {
4319
4319
  if (c !== u) {
4320
- g(e("auth.reset.password_mismatch", "Passwords do not match."));
4320
+ h(e("auth.reset.password_mismatch", "Passwords do not match."));
4321
4321
  return;
4322
4322
  }
4323
4323
  if (c.length < Oo) {
4324
- g(r);
4324
+ h(r);
4325
4325
  return;
4326
4326
  }
4327
- p(!0), g(null);
4327
+ p(!0), h(null);
4328
4328
  try {
4329
- await Xt("auth.reset_password", {
4329
+ await rn("auth.reset_password", {
4330
4330
  email: o,
4331
4331
  token: a,
4332
4332
  password: c
@@ -4339,7 +4339,7 @@ function Po() {
4339
4339
  } catch {}
4340
4340
  i("/login", { replace: !0 });
4341
4341
  } catch (n) {
4342
- n instanceof Vt && n.code === "auth.password_reused" ? g(e("auth.reset.password_differ", "Your new password must differ from your current password.")) : n instanceof Vt && n.code === "auth.password_too_short" ? g(r) : g(t);
4342
+ n instanceof Yt && n.code === "auth.password_reused" ? h(e("auth.reset.password_differ", "Your new password must differ from your current password.")) : n instanceof Yt && n.code === "auth.password_too_short" ? h(r) : h(t);
4343
4343
  } finally {
4344
4344
  p(!1);
4345
4345
  }
@@ -4366,7 +4366,7 @@ function Po() {
4366
4366
  },
4367
4367
  children: e("auth.reset.title", "Choose a new password")
4368
4368
  }),
4369
- _ ? /* @__PURE__ */ Q("div", {
4369
+ g ? /* @__PURE__ */ Q("div", {
4370
4370
  "data-testid": "reset-invalid-link",
4371
4371
  children: [/* @__PURE__ */ Z("p", {
4372
4372
  className: "text-muted-foreground",
@@ -4382,7 +4382,7 @@ function Po() {
4382
4382
  children: e("auth.reset.request_new", "Request a new reset link")
4383
4383
  })]
4384
4384
  }) : /* @__PURE__ */ Q("form", {
4385
- onSubmit: v,
4385
+ onSubmit: _,
4386
4386
  "data-testid": "reset-form",
4387
4387
  children: [/* @__PURE__ */ Z("p", {
4388
4388
  className: "text-muted-foreground",
@@ -4398,7 +4398,7 @@ function Po() {
4398
4398
  gap: 12
4399
4399
  },
4400
4400
  children: [
4401
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: e("auth.field.email", "Email") }), /* @__PURE__ */ Z(N, {
4401
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: e("auth.field.email", "Email") }), /* @__PURE__ */ Z(P, {
4402
4402
  value: o,
4403
4403
  onChange: s,
4404
4404
  prefix: /* @__PURE__ */ Z(n.email, { size: 13 }),
@@ -4408,13 +4408,13 @@ function Po() {
4408
4408
  type: "email",
4409
4409
  "aria-label": e("auth.field.email", "Email")
4410
4410
  })] }),
4411
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: e("auth.reset.new_password", "New password") }), /* @__PURE__ */ Z(b, {
4411
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: e("auth.reset.new_password", "New password") }), /* @__PURE__ */ Z(ze, {
4412
4412
  value: c,
4413
4413
  onChange: l,
4414
4414
  placeholder: e("auth.reset.new_password_placeholder", "At least 8 characters"),
4415
4415
  showStrength: !0
4416
4416
  })] }),
4417
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, { children: e("auth.reset.confirm_password", "Confirm new password") }), /* @__PURE__ */ Z(b, {
4417
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, { children: e("auth.reset.confirm_password", "Confirm new password") }), /* @__PURE__ */ Z(ze, {
4418
4418
  value: u,
4419
4419
  onChange: d,
4420
4420
  placeholder: e("auth.reset.confirm_password_placeholder", "Re-enter new password")
@@ -4430,7 +4430,7 @@ function Po() {
4430
4430
  },
4431
4431
  children: m
4432
4432
  }),
4433
- /* @__PURE__ */ Z(k, {
4433
+ /* @__PURE__ */ Z(S, {
4434
4434
  type: "submit",
4435
4435
  size: "md",
4436
4436
  kind: "primary",
@@ -4456,7 +4456,7 @@ function Po() {
4456
4456
  //#endregion
4457
4457
  //#region src/components/pages/auth/TwoFA.tsx
4458
4458
  function Fo() {
4459
- let e = z(), t = ji(), n = q([]), r = F().isPhone;
4459
+ let e = z(), t = ji(), n = q([]), r = A().isPhone;
4460
4460
  function i(e) {
4461
4461
  n.current[e]?.focus(), n.current[e]?.select();
4462
4462
  }
@@ -4536,7 +4536,7 @@ function Fo() {
4536
4536
  }
4537
4537
  }, e))
4538
4538
  }),
4539
- /* @__PURE__ */ Z(k, {
4539
+ /* @__PURE__ */ Z(S, {
4540
4540
  size: "md",
4541
4541
  kind: "primary",
4542
4542
  style: {
@@ -4576,9 +4576,9 @@ function Fo() {
4576
4576
  function Io() {
4577
4577
  let e = ji(), [t] = Fi(), { setUser: n, setTenants: r } = R(), i = Bi(), a = z();
4578
4578
  return G(() => {
4579
- let a = Zt(t.get("redirect"));
4580
- dn().then((t) => {
4581
- n(t, t.tenant), i.invalidateQueries({ queryKey: ["schema"] }), Tn().then(r).catch(() => {}), e(a, { replace: !0 });
4579
+ let a = an(t.get("redirect"));
4580
+ vn().then((t) => {
4581
+ n(t, t.tenant), i.invalidateQueries({ queryKey: ["schema"] }), Mn().then(r).catch(() => {}), e(a, { replace: !0 });
4582
4582
  }).catch(() => {
4583
4583
  e("/login?sso_error=auth.unauthorized", { replace: !0 });
4584
4584
  });
@@ -4599,7 +4599,7 @@ function Io() {
4599
4599
  //#endregion
4600
4600
  //#region src/components/pages/NotFoundPage.tsx
4601
4601
  function Lo() {
4602
- let e = Gt(), t = a(), n = ki(), r = Pe(), i = z();
4602
+ let e = I(), t = o(), n = ki(), r = fe(), i = z();
4603
4603
  return G(() => {
4604
4604
  e.enabled && r(n.pathname, "not_found");
4605
4605
  }, [
@@ -4649,7 +4649,7 @@ function Lo() {
4649
4649
  }),
4650
4650
  /* @__PURE__ */ Z("div", {
4651
4651
  style: { marginTop: 24 },
4652
- children: /* @__PURE__ */ Z(k, {
4652
+ children: /* @__PURE__ */ Z(S, {
4653
4653
  onClick: () => t("/"),
4654
4654
  children: i("page.not_found.go_home", "Go home")
4655
4655
  })
@@ -4662,15 +4662,15 @@ function Lo() {
4662
4662
  //#region src/components/shared/ChangePasswordDialog.tsx
4663
4663
  var Ro = "auth.change_password", zo = "auth.change_password@v1";
4664
4664
  function Bo({ open: e, onClose: t, onSubmit: r }) {
4665
- let i = z(), a = z("errors"), { data: o } = L(), s = i(o?.actions?.[Ro]?.display?.name) || Ro, c = F().isPhone, [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [g, _] = J(!1), [v, y] = J(null);
4665
+ let i = z(), a = z("errors"), { data: o } = L(), s = i(o?.actions?.[Ro]?.display?.name) || Ro, c = A().isPhone, [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [h, g] = J(!1), [_, v] = J(null);
4666
4666
  if (!e) return null;
4667
- let x = () => {
4668
- u(""), f(""), m(""), y(null), _(!1);
4669
- }, C = () => {
4670
- x(), t();
4671
- }, w = l.length > 0 && d.length >= 8 && p === d;
4667
+ let y = () => {
4668
+ u(""), f(""), m(""), v(null), g(!1);
4669
+ }, b = () => {
4670
+ y(), t();
4671
+ }, x = l.length > 0 && d.length >= 8 && p === d;
4672
4672
  return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
4673
- onClick: C,
4673
+ onClick: b,
4674
4674
  style: {
4675
4675
  position: "fixed",
4676
4676
  inset: 0,
@@ -4733,10 +4733,10 @@ function Bo({ open: e, onClose: t, onSubmit: r }) {
4733
4733
  children: i("account.password.subtitle", "Pick something strong. You'll stay signed in on this device.")
4734
4734
  })]
4735
4735
  }),
4736
- /* @__PURE__ */ Z(S, {
4736
+ /* @__PURE__ */ Z(M, {
4737
4737
  icon: /* @__PURE__ */ Z(n.x, { size: 14 }),
4738
4738
  title: i("dialog.close", "Close"),
4739
- onClick: C
4739
+ onClick: b
4740
4740
  })
4741
4741
  ]
4742
4742
  }),
@@ -4748,32 +4748,32 @@ function Bo({ open: e, onClose: t, onSubmit: r }) {
4748
4748
  gap: 12
4749
4749
  },
4750
4750
  children: [
4751
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, {
4751
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, {
4752
4752
  required: !0,
4753
4753
  children: i("account.password.current", "Current password")
4754
- }), /* @__PURE__ */ Z(b, {
4754
+ }), /* @__PURE__ */ Z(ze, {
4755
4755
  value: l,
4756
4756
  onChange: u,
4757
4757
  placeholder: i("account.password.current_placeholder", "Enter your current password")
4758
4758
  })] }),
4759
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, {
4759
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, {
4760
4760
  required: !0,
4761
4761
  children: i("account.password.new", "New password")
4762
- }), /* @__PURE__ */ Z(b, {
4762
+ }), /* @__PURE__ */ Z(ze, {
4763
4763
  value: d,
4764
4764
  onChange: f,
4765
4765
  placeholder: i("account.password.new_placeholder", "At least 8 characters"),
4766
4766
  showStrength: !0
4767
4767
  })] }),
4768
- /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, {
4768
+ /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, {
4769
4769
  required: !0,
4770
4770
  children: i("account.password.confirm", "Confirm new password")
4771
- }), /* @__PURE__ */ Z(b, {
4771
+ }), /* @__PURE__ */ Z(ze, {
4772
4772
  value: p,
4773
4773
  onChange: m,
4774
4774
  placeholder: i("account.password.confirm_placeholder", "Re-enter new password")
4775
4775
  })] }),
4776
- v && /* @__PURE__ */ Q("div", {
4776
+ _ && /* @__PURE__ */ Q("div", {
4777
4777
  style: {
4778
4778
  padding: "8px 10px",
4779
4779
  background: "var(--danger-soft)",
@@ -4783,7 +4783,7 @@ function Bo({ open: e, onClose: t, onSubmit: r }) {
4783
4783
  display: "flex",
4784
4784
  gap: 6
4785
4785
  },
4786
- children: [/* @__PURE__ */ Z(n.info, { size: 13 }), /* @__PURE__ */ Z("span", { children: v })]
4786
+ children: [/* @__PURE__ */ Z(n.info, { size: 13 }), /* @__PURE__ */ Z("span", { children: _ })]
4787
4787
  })
4788
4788
  ]
4789
4789
  }),
@@ -4808,32 +4808,32 @@ function Bo({ open: e, onClose: t, onSubmit: r }) {
4808
4808
  children: zo
4809
4809
  }),
4810
4810
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
4811
- /* @__PURE__ */ Z(k, {
4812
- onClick: C,
4811
+ /* @__PURE__ */ Z(S, {
4812
+ onClick: b,
4813
4813
  children: i("dialog.cancel", "Cancel")
4814
4814
  }),
4815
- /* @__PURE__ */ Z(k, {
4815
+ /* @__PURE__ */ Z(S, {
4816
4816
  kind: "primary",
4817
- icon: Z(g ? ze : n.key, { size: 13 }),
4817
+ icon: Z(h ? Fe : n.key, { size: 13 }),
4818
4818
  onClick: async () => {
4819
- if (!w) {
4820
- d.length < 8 ? y(i("account.password.too_short", "New password must be at least 8 characters.")) : y(p === d ? i("account.password.fill_all", "Fill in all fields.") : i("account.password.mismatch", "Passwords do not match."));
4819
+ if (!x) {
4820
+ d.length < 8 ? v(i("account.password.too_short", "New password must be at least 8 characters.")) : v(p === d ? i("account.password.fill_all", "Fill in all fields.") : i("account.password.mismatch", "Passwords do not match."));
4821
4821
  return;
4822
4822
  }
4823
- y(null), _(!0);
4823
+ v(null), g(!0);
4824
4824
  try {
4825
4825
  await r({
4826
4826
  current: l,
4827
4827
  next: d
4828
- }), x(), t();
4828
+ }), y(), t();
4829
4829
  } catch (e) {
4830
- y(V(a, e));
4830
+ v(V(a, e));
4831
4831
  } finally {
4832
- _(!1);
4832
+ g(!1);
4833
4833
  }
4834
4834
  },
4835
- disabled: !w || g,
4836
- children: g ? i("account.password.updating", "Updating…") : i("account.password.submit", "Update password")
4835
+ disabled: !x || h,
4836
+ children: h ? i("account.password.updating", "Updating…") : i("account.password.submit", "Update password")
4837
4837
  })
4838
4838
  ]
4839
4839
  })
@@ -4878,12 +4878,12 @@ function Wo({ type: e, value: t, structure: n }) {
4878
4878
  else if (e === "json" || e === "structure") {
4879
4879
  if (t && typeof t == "object") {
4880
4880
  let e = Array.isArray(t) ? t.length : Object.keys(t).length;
4881
- i = n || `{${Sn(r, "params.value.keys", e, {
4881
+ i = n || `{${kn(r, "params.value.keys", e, {
4882
4882
  one: "{count} key",
4883
4883
  other: "{count} keys"
4884
4884
  })}}`;
4885
- } else i = Ne(t);
4886
- } else i = Ne(t);
4885
+ } else i = de(t);
4886
+ } else i = de(t);
4887
4887
  return /* @__PURE__ */ Z("span", {
4888
4888
  className: "mono",
4889
4889
  style: {
@@ -4965,7 +4965,7 @@ function Go({ param: e, current: t, error: r, onCancel: i, onSave: a }) {
4965
4965
  gap: 10
4966
4966
  },
4967
4967
  children: [
4968
- /* @__PURE__ */ Z(h, { children: o("params.value", "Value") }),
4968
+ /* @__PURE__ */ Z(N, { children: o("params.value", "Value") }),
4969
4969
  /* @__PURE__ */ Z(Ko, {
4970
4970
  param: e,
4971
4971
  value: s,
@@ -4984,13 +4984,13 @@ function Go({ param: e, current: t, error: r, onCancel: i, onSave: a }) {
4984
4984
  },
4985
4985
  children: [
4986
4986
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
4987
- /* @__PURE__ */ Z(k, {
4987
+ /* @__PURE__ */ Z(S, {
4988
4988
  onClick: i,
4989
4989
  children: o("dialog.cancel", "Cancel")
4990
4990
  }),
4991
- /* @__PURE__ */ Z(k, {
4991
+ /* @__PURE__ */ Z(S, {
4992
4992
  kind: "primary",
4993
- icon: Z(l ? ze : n.check, { size: 13 }),
4993
+ icon: Z(l ? Fe : n.check, { size: 13 }),
4994
4994
  onClick: p,
4995
4995
  disabled: l,
4996
4996
  children: l ? o("dialog.saving", "Saving…") : o("dialog.save", "Save")
@@ -5007,7 +5007,7 @@ function Ko({ param: e, value: t, onChange: n }) {
5007
5007
  values: e.values,
5008
5008
  ref: e.ref
5009
5009
  };
5010
- return /* @__PURE__ */ Z(X, { children: Ge({
5010
+ return /* @__PURE__ */ Z(X, { children: nt({
5011
5011
  field: i,
5012
5012
  fieldName: e.code,
5013
5013
  value: t,
@@ -5043,18 +5043,18 @@ function Qo(e, t) {
5043
5043
  return e ? e.filter((e) => e.scopes?.includes(t)) : [];
5044
5044
  }
5045
5045
  function $o({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a }) {
5046
- let o = z(), s = z("errors"), c = A(), l = K(() => Qo(c.data, t), [c.data, t]), [u, d] = J(null), { overrideByCode: f, missingParams: p, isLoading: m, error: h, clearError: g, save: _, reset: y } = st({
5046
+ let o = z(), s = z("errors"), c = C(), l = K(() => Qo(c.data, t), [c.data, t]), [u, d] = J(null), { overrideByCode: f, missingParams: p, isLoading: m, error: h, clearError: g, save: _, reset: v } = ve({
5047
5047
  carrierEntityCode: e,
5048
5048
  rowId: r,
5049
5049
  enabled: l.length > 0,
5050
5050
  onWritten: () => d(null)
5051
5051
  });
5052
- return l.length === 0 ? null : /* @__PURE__ */ Q(jn, {
5052
+ return l.length === 0 ? null : /* @__PURE__ */ Q(Rn, {
5053
5053
  title: i ?? o("params.title", "Parameters"),
5054
5054
  icon: a ?? /* @__PURE__ */ Z(n.settings, { size: 14 }),
5055
5055
  children: [p ? /* @__PURE__ */ Z(Uo, { text: s("param.overrides_unreadable", "The current parameter overrides could not be read.") }) : m ? /* @__PURE__ */ Z("div", {
5056
5056
  style: { padding: "8px 0" },
5057
- children: /* @__PURE__ */ Z(ze, { size: 16 })
5057
+ children: /* @__PURE__ */ Z(Fe, { size: 16 })
5058
5058
  }) : /* @__PURE__ */ Q("div", {
5059
5059
  style: {
5060
5060
  display: "flex",
@@ -5096,7 +5096,7 @@ function $o({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5096
5096
  value: e.value,
5097
5097
  structure: e.structure
5098
5098
  }),
5099
- a && /* @__PURE__ */ Z(v, {
5099
+ a && /* @__PURE__ */ Z(w, {
5100
5100
  tone: "violet",
5101
5101
  size: "xs",
5102
5102
  children: o("params.overridden", "overridden")
@@ -5107,13 +5107,13 @@ function $o({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5107
5107
  value: JSON.stringify(r.value),
5108
5108
  source: Ho(o, e.source)
5109
5109
  }),
5110
- children: /* @__PURE__ */ Z(v, {
5110
+ children: /* @__PURE__ */ Z(w, {
5111
5111
  tone: "amber",
5112
5112
  size: "xs",
5113
5113
  children: o("params.not_applied", "not applied")
5114
5114
  })
5115
5115
  }),
5116
- /* @__PURE__ */ Z(k, {
5116
+ /* @__PURE__ */ Z(S, {
5117
5117
  size: "xs",
5118
5118
  icon: /* @__PURE__ */ Z(n.edit, { size: 12 }),
5119
5119
  onClick: () => {
@@ -5121,10 +5121,10 @@ function $o({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5121
5121
  },
5122
5122
  children: o("params.edit", "Edit")
5123
5123
  }),
5124
- i && /* @__PURE__ */ Z(S, {
5124
+ i && /* @__PURE__ */ Z(M, {
5125
5125
  icon: /* @__PURE__ */ Z(n.refresh, { size: 13 }),
5126
5126
  title: o("params.reset", "Reset to default"),
5127
- onClick: () => y(e)
5127
+ onClick: () => v(e)
5128
5128
  })
5129
5129
  ]
5130
5130
  }, e.code);
@@ -5144,7 +5144,7 @@ function $o({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5144
5144
  //#region src/components/pages/profile/Profile.tsx
5145
5145
  var $ = "profile", es = "avatar";
5146
5146
  function ts() {
5147
- let e = ar(), t = R((e) => e.user), i = R((e) => e.activeTenant), a = R((e) => e.refreshMe), { data: o } = L(), s = Re(), c = Rt("custom"), l = z(), u = kn($, t?.id), d = u.data?.data, [f, p] = J(!1), [m, h] = J(!1), g = o?.entities[$], _ = t?.display_name || t?.email || l("profile.user_fallback", "User"), y = t?.roles && t.roles[0] || l("profile.role_fallback", "Member"), b = i?.env ? `${i.name} · ${i.env}` : i?.name ?? "—", x = (e) => g && zr({
5147
+ let e = cr(), t = R((e) => e.user), i = R((e) => e.activeTenant), a = R((e) => e.refreshMe), { data: o } = L(), s = Je(), c = Kt("custom"), l = z(), u = In($, t?.id), d = u.data?.data, [f, p] = J(!1), [m, h] = J(!1), g = o?.entities[$], _ = t?.display_name || t?.email || l("profile.user_fallback", "User"), v = t?.roles && t.roles[0] || l("profile.role_fallback", "Member"), b = i?.env ? `${i.name} · ${i.env}` : i?.name ?? "—", x = (e) => g && zr({
5148
5148
  entity: g,
5149
5149
  entityCode: $,
5150
5150
  fieldName: e,
@@ -5156,10 +5156,10 @@ function ts() {
5156
5156
  t: l
5157
5157
  });
5158
5158
  return /* @__PURE__ */ Q(X, { children: [
5159
- /* @__PURE__ */ Q(Vn, {
5159
+ /* @__PURE__ */ Q(Jn, {
5160
5160
  header: /* @__PURE__ */ Z("div", {
5161
5161
  "data-testid": "profile-hero",
5162
- children: /* @__PURE__ */ Z(Hn, {
5162
+ children: /* @__PURE__ */ Z(Yn, {
5163
5163
  icon: g?.display.icon ? /* @__PURE__ */ Z(r, {
5164
5164
  name: g.display.icon,
5165
5165
  size: 16
@@ -5171,18 +5171,18 @@ function ts() {
5171
5171
  highlights: /* @__PURE__ */ Q("div", {
5172
5172
  className: "flex flex-wrap gap-1",
5173
5173
  children: [
5174
- /* @__PURE__ */ Z(v, {
5174
+ /* @__PURE__ */ Z(w, {
5175
5175
  tone: "violet",
5176
5176
  size: "xs",
5177
5177
  dot: !0,
5178
- children: y
5178
+ children: v
5179
5179
  }),
5180
- /* @__PURE__ */ Z(v, {
5180
+ /* @__PURE__ */ Z(w, {
5181
5181
  tone: "slate",
5182
5182
  size: "xs",
5183
5183
  children: b
5184
5184
  }),
5185
- t?.is_active && /* @__PURE__ */ Z(v, {
5185
+ t?.is_active && /* @__PURE__ */ Z(w, {
5186
5186
  tone: "emerald",
5187
5187
  size: "xs",
5188
5188
  dot: !0,
@@ -5190,11 +5190,11 @@ function ts() {
5190
5190
  })
5191
5191
  ]
5192
5192
  }),
5193
- right: c.isVisible("show_actions") && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(k, {
5193
+ right: c.isVisible("show_actions") && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(S, {
5194
5194
  icon: /* @__PURE__ */ Z(n.edit, { size: 13 }),
5195
5195
  onClick: () => h(!0),
5196
5196
  children: l("profile.edit", "Edit profile")
5197
- }), /* @__PURE__ */ Z(k, {
5197
+ }), /* @__PURE__ */ Z(S, {
5198
5198
  icon: /* @__PURE__ */ Z(n.settings, { size: 13 }),
5199
5199
  onClick: () => e("/preferences", { topLevel: !0 }),
5200
5200
  children: l("profile.preferences", "Preferences")
@@ -5202,15 +5202,15 @@ function ts() {
5202
5202
  })
5203
5203
  }),
5204
5204
  children: [
5205
- /* @__PURE__ */ Z(jn, {
5205
+ /* @__PURE__ */ Z(Rn, {
5206
5206
  title: l("profile.personal.title", "Personal info"),
5207
5207
  icon: /* @__PURE__ */ Z(n.users, { size: 14 }),
5208
5208
  children: /* @__PURE__ */ Z("div", {
5209
5209
  "data-testid": "profile-personal-info-grid",
5210
- children: /* @__PURE__ */ Q(zn, { children: [
5210
+ children: /* @__PURE__ */ Q(Kn, { children: [
5211
5211
  t && g && d && /* @__PURE__ */ Z(B, {
5212
5212
  label: l("profile.avatar", "Avatar"),
5213
- children: /* @__PURE__ */ Z(He, { children: /* @__PURE__ */ Z(rs, {
5213
+ children: /* @__PURE__ */ Z($e, { children: /* @__PURE__ */ Z(rs, {
5214
5214
  userId: t.id,
5215
5215
  entity: g,
5216
5216
  record: d,
@@ -5236,42 +5236,42 @@ function ts() {
5236
5236
  ] })
5237
5237
  })
5238
5238
  }),
5239
- /* @__PURE__ */ Z(jn, {
5239
+ /* @__PURE__ */ Z(Rn, {
5240
5240
  title: l("profile.security.title", "Security"),
5241
5241
  icon: /* @__PURE__ */ Z(n.shield, { size: 14 }),
5242
- children: /* @__PURE__ */ Z(zn, { children: /* @__PURE__ */ Z(B, {
5242
+ children: /* @__PURE__ */ Z(Kn, { children: /* @__PURE__ */ Z(B, {
5243
5243
  label: l("profile.security.password", "Password"),
5244
5244
  hint: l("profile.security.password_hint", "Update at any time"),
5245
- children: /* @__PURE__ */ Z(k, {
5245
+ children: /* @__PURE__ */ Z(S, {
5246
5246
  size: "xs",
5247
5247
  onClick: () => p(!0),
5248
5248
  children: l("profile.security.password_change", "Change")
5249
5249
  })
5250
5250
  }) })
5251
5251
  }),
5252
- /* @__PURE__ */ Z(jn, {
5252
+ /* @__PURE__ */ Z(Rn, {
5253
5253
  title: l("profile.access.title", "Access"),
5254
5254
  icon: /* @__PURE__ */ Z(n.key, { size: 14 }),
5255
- children: /* @__PURE__ */ Q(zn, { children: [
5255
+ children: /* @__PURE__ */ Q(Kn, { children: [
5256
5256
  /* @__PURE__ */ Z(B, {
5257
5257
  label: l("profile.access.role", "Role"),
5258
- children: /* @__PURE__ */ Z(v, {
5258
+ children: /* @__PURE__ */ Z(w, {
5259
5259
  tone: "violet",
5260
5260
  size: "xs",
5261
5261
  dot: !0,
5262
- children: y
5262
+ children: v
5263
5263
  })
5264
5264
  }),
5265
5265
  /* @__PURE__ */ Z(B, {
5266
5266
  label: l("profile.access.groups", "Groups"),
5267
5267
  children: t?.roles && t.roles.length > 0 ? /* @__PURE__ */ Z("div", {
5268
5268
  className: "flex flex-wrap gap-1",
5269
- children: t.roles.map((e) => /* @__PURE__ */ Z(w, { children: e }, e))
5270
- }) : ge
5269
+ children: t.roles.map((e) => /* @__PURE__ */ Z(y, { children: e }, e))
5270
+ }) : Se
5271
5271
  }),
5272
5272
  /* @__PURE__ */ Z(B, {
5273
5273
  label: l("profile.access.permissions", "Permissions"),
5274
- children: Sn(l, "profile.access.permissions_explicit", t?.permissions?.length ?? 0, {
5274
+ children: kn(l, "profile.access.permissions_explicit", t?.permissions?.length ?? 0, {
5275
5275
  one: "{count} explicit",
5276
5276
  other: "{count} explicit"
5277
5277
  })
@@ -5280,7 +5280,7 @@ function ts() {
5280
5280
  }),
5281
5281
  /* @__PURE__ */ Z(cs, { userId: t?.id }),
5282
5282
  t?.id && /* @__PURE__ */ Z(os, { userId: t.id }),
5283
- s?.screen && o && g && d && /* @__PURE__ */ Z(Wn, {
5283
+ s?.screen && o && g && d && /* @__PURE__ */ Z(Zn, {
5284
5284
  screen: s.screen,
5285
5285
  entity: g,
5286
5286
  entityCode: $,
@@ -5302,7 +5302,7 @@ function ts() {
5302
5302
  open: f,
5303
5303
  onClose: () => p(!1),
5304
5304
  onSubmit: async ({ current: e, next: t }) => {
5305
- await hn(e, t), P.success(l("profile.password.changed", "Password changed. Sign in again to continue."));
5305
+ await Sn(e, t), F.success(l("profile.password.changed", "Password changed. Sign in again to continue."));
5306
5306
  }
5307
5307
  })
5308
5308
  ] });
@@ -5311,8 +5311,8 @@ function ns(e) {
5311
5311
  return Dr(Pr(e, es))?.id ?? "";
5312
5312
  }
5313
5313
  function rs({ userId: e, entity: t, record: n, onCommitted: r }) {
5314
- let i = z(), a = z("errors"), o = Se(), [s, c] = J(!1), [l, u] = J(0), d = async (s) => {
5315
- let l = or({
5314
+ let i = z(), a = z("errors"), o = Oe(), [s, c] = J(!1), [l, u] = J(0), d = async (s) => {
5315
+ let l = Er({
5316
5316
  entity: t,
5317
5317
  formData: { [es]: s },
5318
5318
  record: n,
@@ -5321,11 +5321,11 @@ function rs({ userId: e, entity: t, record: n, onCommitted: r }) {
5321
5321
  if (Object.keys(l).length !== 0) {
5322
5322
  c(!0);
5323
5323
  try {
5324
- await Qn($, { id: e }, { $files: l });
5324
+ await ar($, { id: e }, { $files: l });
5325
5325
  let t = ns({ [es]: s });
5326
- t && o.markCommitted(t), await r(), P.success(i("profile.avatar.updated", "Avatar updated."));
5326
+ t && o.markCommitted(t), await r(), F.success(i("profile.avatar.updated", "Avatar updated."));
5327
5327
  } catch (e) {
5328
- await o.flushAllDrafts(), u((e) => e + 1), P.error(V(a, e));
5328
+ await o.flushAllDrafts(), u((e) => e + 1), F.error(V(a, e));
5329
5329
  } finally {
5330
5330
  c(!1);
5331
5331
  }
@@ -5344,13 +5344,13 @@ function rs({ userId: e, entity: t, record: n, onCommitted: r }) {
5344
5344
  }) }, l);
5345
5345
  }
5346
5346
  function is({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5347
- let o = F().isPhone, s = z(), c = z("errors"), [l, u] = J(t), [d, f] = J(!1), [p, m] = J(null);
5347
+ let o = A().isPhone, s = z(), c = z("errors"), [l, u] = J(t), [d, f] = J(!1), [p, m] = J(null);
5348
5348
  if (!e) return null;
5349
- let g = () => {
5349
+ let h = () => {
5350
5350
  u(t), m(null), i();
5351
5351
  };
5352
5352
  return /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
5353
- onClick: g,
5353
+ onClick: h,
5354
5354
  style: {
5355
5355
  position: "fixed",
5356
5356
  inset: 0,
@@ -5413,10 +5413,10 @@ function is({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5413
5413
  children: s("profile.edit.subtitle", "Update your display name.")
5414
5414
  })]
5415
5415
  }),
5416
- /* @__PURE__ */ Z(S, {
5416
+ /* @__PURE__ */ Z(M, {
5417
5417
  icon: /* @__PURE__ */ Z(n.x, { size: 14 }),
5418
5418
  title: s("profile.edit.close", "Close"),
5419
- onClick: g
5419
+ onClick: h
5420
5420
  })
5421
5421
  ]
5422
5422
  }),
@@ -5427,10 +5427,10 @@ function is({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5427
5427
  flexDirection: "column",
5428
5428
  gap: 12
5429
5429
  },
5430
- children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(h, {
5430
+ children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(N, {
5431
5431
  required: !0,
5432
5432
  children: s("profile.display_name", "Display name")
5433
- }), /* @__PURE__ */ Z(N, {
5433
+ }), /* @__PURE__ */ Z(P, {
5434
5434
  value: l,
5435
5435
  onChange: u,
5436
5436
  placeholder: s("profile.edit.name_placeholder", "Your name"),
@@ -5449,13 +5449,13 @@ function is({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5449
5449
  },
5450
5450
  children: [
5451
5451
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
5452
- /* @__PURE__ */ Z(k, {
5453
- onClick: g,
5452
+ /* @__PURE__ */ Z(S, {
5453
+ onClick: h,
5454
5454
  children: s("dialog.cancel", "Cancel")
5455
5455
  }),
5456
- /* @__PURE__ */ Z(k, {
5456
+ /* @__PURE__ */ Z(S, {
5457
5457
  kind: "primary",
5458
- icon: Z(d ? ze : n.check, { size: 13 }),
5458
+ icon: Z(d ? Fe : n.check, { size: 13 }),
5459
5459
  onClick: async () => {
5460
5460
  if (!l.trim()) {
5461
5461
  m(s("profile.edit.name_required", "Display name is required."));
@@ -5463,7 +5463,7 @@ function is({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5463
5463
  }
5464
5464
  m(null), f(!0);
5465
5465
  try {
5466
- await Qn($, { id: r }, { display_name: l.trim() }), await a();
5466
+ await ar($, { id: r }, { display_name: l.trim() }), await a();
5467
5467
  } catch (e) {
5468
5468
  m(V(c, e));
5469
5469
  } finally {
@@ -5494,7 +5494,7 @@ function os({ userId: e }) {
5494
5494
  });
5495
5495
  }
5496
5496
  function ss({ userId: e }) {
5497
- let t = z(), { data: n } = L(), r = A().data?.find((e) => e.code === on), i = n?.entities[$]?.params_scope ?? $, a = !!r?.scopes?.includes(i), { save: o, error: s, isLoading: c } = st({
5497
+ let t = z(), { data: n } = L(), r = C().data?.find((e) => e.code === pn), i = n?.entities[$]?.params_scope ?? $, a = !!r?.scopes?.includes(i), { save: o, error: s, isLoading: c } = ve({
5498
5498
  carrierEntityCode: $,
5499
5499
  rowId: e,
5500
5500
  enabled: a
@@ -5508,7 +5508,7 @@ function ss({ userId: e }) {
5508
5508
  label: t(r?.name),
5509
5509
  mode: a ? "edit" : "display",
5510
5510
  error: s ?? void 0,
5511
- children: !r || c ? /* @__PURE__ */ Z(ze, { size: 12 }) : a ? /* @__PURE__ */ Z(pe, {
5511
+ children: !r || c ? /* @__PURE__ */ Z(Fe, { size: 12 }) : a ? /* @__PURE__ */ Z(it, {
5512
5512
  "data-testid": "profile-language",
5513
5513
  value: f,
5514
5514
  options: d,
@@ -5521,7 +5521,7 @@ function cs({ userId: e }) {
5521
5521
  let { data: t } = L();
5522
5522
  if (!e || !t) return null;
5523
5523
  let n = t.entities[$];
5524
- return n ? /* @__PURE__ */ Z(On, {
5524
+ return n ? /* @__PURE__ */ Z(Fn, {
5525
5525
  node: { associated: "api_key" },
5526
5526
  ctx: {
5527
5527
  schema: t,
@@ -5545,29 +5545,29 @@ function ds(e) {
5545
5545
  return e === "tenant" ? "violet" : e === "env" ? "amber" : "slate";
5546
5546
  }
5547
5547
  function fs(e) {
5548
- let t = z(), r = z("errors"), i = R((e) => e.activeTenant?.id) ?? "", a = A("tenant"), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, h] = J(null), { overrideByCode: g, missingParams: _, isLoading: y, error: b, clearError: x, save: C, reset: w } = st({
5548
+ let t = z(), r = z("errors"), i = R((e) => e.activeTenant?.id) ?? "", a = C("tenant"), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, h] = J(null), { overrideByCode: g, missingParams: _, isLoading: v, error: y, clearError: b, save: x, reset: T } = ve({
5549
5549
  carrierEntityCode: ls,
5550
5550
  rowId: i,
5551
5551
  onWritten: () => h(null)
5552
- }), T = K(() => a.data ?? [], [a.data]), E = K(() => Array.from(new Set(T.map((e) => e.category).filter(Boolean))).sort(), [T]), D = K(() => {
5552
+ }), E = K(() => a.data ?? [], [a.data]), D = K(() => Array.from(new Set(E.map((e) => e.category).filter(Boolean))).sort(), [E]), O = K(() => {
5553
5553
  let e = o.trim().toLowerCase();
5554
- return T.filter((n) => !(c && n.category !== c || u && n.source !== u || f && !g.has(n.code) || e && !`${n.code} ${t(n.name)}`.toLowerCase().includes(e)));
5554
+ return E.filter((n) => !(c && n.category !== c || u && n.source !== u || f && !g.has(n.code) || e && !`${n.code} ${t(n.name)}`.toLowerCase().includes(e)));
5555
5555
  }, [
5556
5556
  t,
5557
- T,
5557
+ E,
5558
5558
  o,
5559
5559
  c,
5560
5560
  u,
5561
5561
  f,
5562
5562
  g
5563
- ]), ee = a.isLoading || y;
5563
+ ]), ee = a.isLoading || v;
5564
5564
  return /* @__PURE__ */ Q("div", {
5565
5565
  style: {
5566
5566
  flex: 1,
5567
5567
  overflowY: "auto",
5568
5568
  paddingTop: 14,
5569
5569
  paddingBottom: 28,
5570
- ...$n(20),
5570
+ ...or(20),
5571
5571
  background: "var(--background)"
5572
5572
  },
5573
5573
  children: [/* @__PURE__ */ Q("div", {
@@ -5594,9 +5594,9 @@ function fs(e) {
5594
5594
  children: t("params.tenant.subtitle", "Tenant configuration. Editing a value stores a tenant override; Reset restores the platform default.")
5595
5595
  })]
5596
5596
  }),
5597
- b && /* @__PURE__ */ Z("div", {
5597
+ y && /* @__PURE__ */ Z("div", {
5598
5598
  style: { marginBottom: 12 },
5599
- children: /* @__PURE__ */ Z(Uo, { text: b })
5599
+ children: /* @__PURE__ */ Z(Uo, { text: y })
5600
5600
  }),
5601
5601
  _ && /* @__PURE__ */ Z("div", {
5602
5602
  style: { marginBottom: 12 },
@@ -5617,7 +5617,7 @@ function fs(e) {
5617
5617
  minWidth: 200,
5618
5618
  flex: 1
5619
5619
  },
5620
- children: /* @__PURE__ */ Z(N, {
5620
+ children: /* @__PURE__ */ Z(P, {
5621
5621
  value: o,
5622
5622
  onChange: s,
5623
5623
  placeholder: t("params.search", "Search name or code…")
@@ -5625,12 +5625,12 @@ function fs(e) {
5625
5625
  }),
5626
5626
  /* @__PURE__ */ Z("div", {
5627
5627
  style: { minWidth: 160 },
5628
- children: /* @__PURE__ */ Z(pe, {
5628
+ children: /* @__PURE__ */ Z(it, {
5629
5629
  value: c,
5630
5630
  options: [{
5631
5631
  value: "",
5632
5632
  label: t("params.filter.all_categories", "All categories")
5633
- }, ...E.map((e) => ({
5633
+ }, ...D.map((e) => ({
5634
5634
  value: e,
5635
5635
  label: e
5636
5636
  }))],
@@ -5639,7 +5639,7 @@ function fs(e) {
5639
5639
  }),
5640
5640
  /* @__PURE__ */ Z("div", {
5641
5641
  style: { minWidth: 140 },
5642
- children: /* @__PURE__ */ Z(pe, {
5642
+ children: /* @__PURE__ */ Z(it, {
5643
5643
  value: u,
5644
5644
  options: [{
5645
5645
  value: "",
@@ -5658,7 +5658,7 @@ function fs(e) {
5658
5658
  gap: 6,
5659
5659
  fontSize: 12
5660
5660
  },
5661
- children: [/* @__PURE__ */ Z(Me, {
5661
+ children: [/* @__PURE__ */ Z(Ke, {
5662
5662
  value: f,
5663
5663
  onChange: p
5664
5664
  }), t("params.filter.overridden_only", "Overridden only")]
@@ -5670,7 +5670,7 @@ function fs(e) {
5670
5670
  padding: "24px 0",
5671
5671
  textAlign: "center"
5672
5672
  },
5673
- children: /* @__PURE__ */ Z(ze, { size: 18 })
5673
+ children: /* @__PURE__ */ Z(Fe, { size: 18 })
5674
5674
  }) : /* @__PURE__ */ Z("div", {
5675
5675
  style: {
5676
5676
  border: "1px solid var(--border)",
@@ -5698,7 +5698,7 @@ function fs(e) {
5698
5698
  /* @__PURE__ */ Z(ps, { children: t("params.column.source", "Source") }),
5699
5699
  /* @__PURE__ */ Z(ps, { children: "" })
5700
5700
  ]
5701
- }) }), /* @__PURE__ */ Z("tbody", { children: D.length === 0 ? /* @__PURE__ */ Z("tr", { children: /* @__PURE__ */ Z("td", {
5701
+ }) }), /* @__PURE__ */ Z("tbody", { children: O.length === 0 ? /* @__PURE__ */ Z("tr", { children: /* @__PURE__ */ Z("td", {
5702
5702
  colSpan: 7,
5703
5703
  style: {
5704
5704
  padding: "16px",
@@ -5706,7 +5706,7 @@ function fs(e) {
5706
5706
  textAlign: "center"
5707
5707
  },
5708
5708
  children: t("params.empty", "No parameters match.")
5709
- }) }) : D.map((e) => {
5709
+ }) }) : O.map((e) => {
5710
5710
  let r = g.get(e.code), i = r !== void 0, a = Xo(e), o = i && e.source === "tenant";
5711
5711
  return /* @__PURE__ */ Q("tr", {
5712
5712
  "data-testid": `tenant-param-row-${e.code}`,
@@ -5732,12 +5732,12 @@ function fs(e) {
5732
5732
  alignItems: "center"
5733
5733
  },
5734
5734
  children: [
5735
- /* @__PURE__ */ Z(v, {
5735
+ /* @__PURE__ */ Z(w, {
5736
5736
  tone: ds(e.source),
5737
5737
  size: "xs",
5738
5738
  children: Ho(t, e.source)
5739
5739
  }),
5740
- o && /* @__PURE__ */ Z(v, {
5740
+ o && /* @__PURE__ */ Z(w, {
5741
5741
  tone: "violet",
5742
5742
  size: "xs",
5743
5743
  dot: !0,
@@ -5749,7 +5749,7 @@ function fs(e) {
5749
5749
  value: JSON.stringify(r.value),
5750
5750
  source: Ho(t, e.source)
5751
5751
  }),
5752
- children: /* @__PURE__ */ Z(v, {
5752
+ children: /* @__PURE__ */ Z(w, {
5753
5753
  tone: "amber",
5754
5754
  size: "xs",
5755
5755
  dot: !0,
@@ -5765,17 +5765,17 @@ function fs(e) {
5765
5765
  justifyContent: "flex-end",
5766
5766
  width: "100%"
5767
5767
  },
5768
- children: a ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(k, {
5768
+ children: a ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(S, {
5769
5769
  size: "xs",
5770
5770
  icon: /* @__PURE__ */ Z(n.edit, { size: 12 }),
5771
5771
  onClick: () => {
5772
- x(), h(e);
5772
+ b(), h(e);
5773
5773
  },
5774
5774
  children: t("params.edit", "Edit")
5775
- }), i && /* @__PURE__ */ Z(S, {
5775
+ }), i && /* @__PURE__ */ Z(M, {
5776
5776
  icon: /* @__PURE__ */ Z(n.refresh, { size: 13 }),
5777
5777
  title: t("params.reset", "Reset to default"),
5778
- onClick: () => w(e)
5778
+ onClick: () => T(e)
5779
5779
  })] }) : /* @__PURE__ */ Q("span", {
5780
5780
  title: t("params.tenant.read_only_hint", "Not editable at tenant scope (its declared scopes do not admit tenant)."),
5781
5781
  style: {
@@ -5801,11 +5801,11 @@ function fs(e) {
5801
5801
  }), m && /* @__PURE__ */ Z(Go, {
5802
5802
  param: m,
5803
5803
  current: g.get(m.code)?.value ?? m.value,
5804
- error: b,
5804
+ error: y,
5805
5805
  onCancel: () => {
5806
- h(null), x();
5806
+ h(null), b();
5807
5807
  },
5808
- onSave: (e) => C(m, e)
5808
+ onSave: (e) => x(m, e)
5809
5809
  })]
5810
5810
  });
5811
5811
  }
@@ -5832,7 +5832,7 @@ function ms({ children: e }) {
5832
5832
  //#endregion
5833
5833
  //#region src/components/chrome/PageHeader.tsx
5834
5834
  function hs({ title: e, description: t, backTo: r, actions: i }) {
5835
- let o = z(), s = Re(), c = e ?? o(s?.screen?.display?.name) ?? "", l = t ?? o(s?.screen?.display?.description), u = Rt("custom"), d = u.isVisible("show_title"), f = u.isVisible("show_actions"), p = Gt(), m = a(), h = W(() => {
5835
+ let a = z(), s = Je(), c = e ?? a(s?.screen?.display?.name) ?? "", l = t ?? a(s?.screen?.display?.description), u = Kt("custom"), d = u.isVisible("show_title"), f = u.isVisible("show_actions"), p = I(), m = o(), h = W(() => {
5836
5836
  if (r) {
5837
5837
  if (!p.enabled) {
5838
5838
  let e = H.getState().findTabByPathname(r);
@@ -5844,7 +5844,7 @@ function hs({ title: e, description: t, backTo: r, actions: i }) {
5844
5844
  r,
5845
5845
  p.enabled,
5846
5846
  m
5847
- ]), { hasOriginBack: g, goBack: _ } = mr({ fallback: h });
5847
+ ]), { hasOriginBack: g, goBack: _ } = yr({ fallback: h });
5848
5848
  return !d && (!f || !i) ? null : /* @__PURE__ */ Q("div", {
5849
5849
  style: {
5850
5850
  display: "flex",
@@ -5855,10 +5855,10 @@ function hs({ title: e, description: t, backTo: r, actions: i }) {
5855
5855
  minWidth: 0
5856
5856
  },
5857
5857
  children: [
5858
- d && (g || !!r) && /* @__PURE__ */ Z(S, {
5858
+ d && (g || !!r) && /* @__PURE__ */ Z(M, {
5859
5859
  icon: /* @__PURE__ */ Z(n.back, { size: 14 }),
5860
5860
  onClick: _,
5861
- title: o("shell.back", "Back")
5861
+ title: a("shell.back", "Back")
5862
5862
  }),
5863
5863
  d && /* @__PURE__ */ Z("h1", {
5864
5864
  style: {
@@ -5879,12 +5879,12 @@ function hs({ title: e, description: t, backTo: r, actions: i }) {
5879
5879
  },
5880
5880
  children: c
5881
5881
  }),
5882
- d && l && /* @__PURE__ */ Z(At, {
5882
+ d && l && /* @__PURE__ */ Z(Rt, {
5883
5883
  label: l,
5884
5884
  "data-testid": "page-description-info"
5885
5885
  }),
5886
5886
  f && i && /* @__PURE__ */ Z("div", {
5887
- style: Un,
5887
+ style: Xn,
5888
5888
  children: i
5889
5889
  })
5890
5890
  ]
@@ -5947,28 +5947,28 @@ var gs = [
5947
5947
  ]
5948
5948
  ];
5949
5949
  function bs() {
5950
- let e = U((e) => e.colorScheme), t = U((e) => e.accent), r = U((e) => e.density), i = U((e) => e.radius), a = U((e) => e.zebra), o = U((e) => e.set), s = U((e) => e.resetToDefaults), { branding: c } = Bt(), l = z();
5951
- return /* @__PURE__ */ Q(Vn, {
5950
+ let e = U((e) => e.colorScheme), t = U((e) => e.accent), r = U((e) => e.density), i = U((e) => e.radius), a = U((e) => e.zebra), o = U((e) => e.set), s = U((e) => e.resetToDefaults), { branding: c } = Jt(), l = z();
5951
+ return /* @__PURE__ */ Q(Jn, {
5952
5952
  header: /* @__PURE__ */ Z(hs, {
5953
5953
  title: l("profile.preferences", "Preferences"),
5954
- actions: /* @__PURE__ */ Z(k, {
5954
+ actions: /* @__PURE__ */ Z(S, {
5955
5955
  icon: /* @__PURE__ */ Z(n.refresh, { size: 13 }),
5956
5956
  onClick: () => s(c?.preferences),
5957
5957
  children: l("profile.preferences.reset", "Reset to defaults")
5958
5958
  })
5959
5959
  }),
5960
- children: [/* @__PURE__ */ Z(jn, {
5960
+ children: [/* @__PURE__ */ Z(Rn, {
5961
5961
  title: l("profile.preferences.appearance", "Appearance"),
5962
5962
  icon: /* @__PURE__ */ Z(n.moon, { size: 14 }),
5963
- footer: ln(l("profile.preferences.subtitle", "These settings apply for this session; a reload returns to your workspace defaults, which admins set through the {parameter} parameter."), { parameter: /* @__PURE__ */ Z("span", {
5963
+ footer: gn(l("profile.preferences.subtitle", "These settings apply for this session; a reload returns to your workspace defaults, which admins set through the {parameter} parameter."), { parameter: /* @__PURE__ */ Z("span", {
5964
5964
  className: "mono",
5965
- children: Ot
5965
+ children: It
5966
5966
  }) }),
5967
- children: /* @__PURE__ */ Q(zn, { children: [
5967
+ children: /* @__PURE__ */ Q(Kn, { children: [
5968
5968
  /* @__PURE__ */ Z(B, {
5969
5969
  label: l("profile.preferences.theme", "Theme"),
5970
5970
  hint: l("profile.preferences.theme_hint", "Pick light or dark (system sync coming soon)"),
5971
- children: /* @__PURE__ */ Z(xs, { children: [["light", l("profile.preferences.theme.light", "Light")], ["dark", l("profile.preferences.theme.dark", "Dark")]].map(([t, n]) => /* @__PURE__ */ Z(k, {
5971
+ children: /* @__PURE__ */ Z(xs, { children: [["light", l("profile.preferences.theme.light", "Light")], ["dark", l("profile.preferences.theme.dark", "Dark")]].map(([t, n]) => /* @__PURE__ */ Z(S, {
5972
5972
  kind: e === t ? "primary" : "default",
5973
5973
  "aria-pressed": e === t,
5974
5974
  onClick: () => o("colorScheme", t),
@@ -5986,13 +5986,13 @@ function bs() {
5986
5986
  "aria-label": l(`profile.preferences.accent.${n}`, `Accent ${n}`),
5987
5987
  "aria-pressed": t === n,
5988
5988
  style: { background: "var(--accent)" },
5989
- className: An("size-6 cursor-pointer rounded-md border-2", t === n ? "border-foreground" : "border-transparent")
5989
+ className: Ln("size-6 cursor-pointer rounded-md border-2", t === n ? "border-foreground" : "border-transparent")
5990
5990
  }, n)) })
5991
5991
  }),
5992
5992
  /* @__PURE__ */ Z(B, {
5993
5993
  label: l("profile.preferences.density", "Density"),
5994
5994
  hint: l("profile.preferences.density_hint", "Compact saves space; cozy is easier on the eyes"),
5995
- children: /* @__PURE__ */ Z(xs, { children: _s.map(([e, t, n]) => /* @__PURE__ */ Z(k, {
5995
+ children: /* @__PURE__ */ Z(xs, { children: _s.map(([e, t, n]) => /* @__PURE__ */ Z(S, {
5996
5996
  kind: r === e ? "primary" : "default",
5997
5997
  "aria-pressed": r === e,
5998
5998
  onClick: () => o("density", e),
@@ -6017,19 +6017,19 @@ function bs() {
6017
6017
  label: l("profile.preferences.zebra", "Zebra rows"),
6018
6018
  labelId: "preferences-zebra",
6019
6019
  hint: l("profile.preferences.zebra_hint", "Alternating row backgrounds on tables"),
6020
- children: /* @__PURE__ */ Z(Me, {
6020
+ children: /* @__PURE__ */ Z(Ke, {
6021
6021
  value: a,
6022
6022
  ariaLabelledby: "preferences-zebra",
6023
6023
  onChange: (e) => o("zebra", e)
6024
6024
  })
6025
6025
  })
6026
6026
  ] })
6027
- }), /* @__PURE__ */ Z(jn, {
6027
+ }), /* @__PURE__ */ Z(Rn, {
6028
6028
  title: l("profile.preferences.keyboard", "Keyboard"),
6029
6029
  icon: /* @__PURE__ */ Z(n.command, { size: 14 }),
6030
- children: /* @__PURE__ */ Z(zn, { children: ys.map(([e, t, n]) => /* @__PURE__ */ Z(B, {
6030
+ children: /* @__PURE__ */ Z(Kn, { children: ys.map(([e, t, n]) => /* @__PURE__ */ Z(B, {
6031
6031
  label: l(e, t),
6032
- children: /* @__PURE__ */ Z(p, { children: n })
6032
+ children: /* @__PURE__ */ Z(_, { children: n })
6033
6033
  }, e)) })
6034
6034
  })]
6035
6035
  });
@@ -6044,7 +6044,7 @@ function xs({ children: e }) {
6044
6044
  //#region src/components/pages/AdminCatalogPage.tsx
6045
6045
  var Ss = "string", Cs = "handler";
6046
6046
  function ws() {
6047
- let { data: e } = L(), t = z(), [n, r] = J("handlers"), i = F().isPhone;
6047
+ let { data: e } = L(), t = z(), [n, r] = J("handlers"), i = A().isPhone;
6048
6048
  return e ? /* @__PURE__ */ Q("div", {
6049
6049
  style: {
6050
6050
  display: "flex",
@@ -6055,7 +6055,7 @@ function ws() {
6055
6055
  style: {
6056
6056
  paddingTop: i ? 14 : 20,
6057
6057
  paddingBottom: 0,
6058
- ...i ? $n(14) : {
6058
+ ...i ? or(14) : {
6059
6059
  paddingLeft: 20,
6060
6060
  paddingRight: 20
6061
6061
  }
@@ -6084,12 +6084,12 @@ function ws() {
6084
6084
  gap: 6,
6085
6085
  marginBottom: 14
6086
6086
  },
6087
- children: [/* @__PURE__ */ Z(k, {
6087
+ children: [/* @__PURE__ */ Z(S, {
6088
6088
  kind: n === "handlers" ? "primary" : "default",
6089
6089
  active: n === "handlers",
6090
6090
  onClick: () => r("handlers"),
6091
6091
  children: t("catalog.tab.handlers", "Handlers")
6092
- }), /* @__PURE__ */ Z(k, {
6092
+ }), /* @__PURE__ */ Z(S, {
6093
6093
  kind: n === "actions" ? "primary" : "default",
6094
6094
  active: n === "actions",
6095
6095
  onClick: () => r("actions"),
@@ -6102,7 +6102,7 @@ function ws() {
6102
6102
  overflowY: "auto",
6103
6103
  paddingTop: 0,
6104
6104
  paddingBottom: 20,
6105
- ...i ? $n(14) : {
6105
+ ...i ? or(14) : {
6106
6106
  paddingLeft: 20,
6107
6107
  paddingRight: 20
6108
6108
  }
@@ -6137,7 +6137,7 @@ function Ts({ schema: e }) {
6137
6137
  color: "var(--text-3)",
6138
6138
  margin: 0
6139
6139
  },
6140
- children: Sn(t, "catalog.handlers.count", n.length, {
6140
+ children: kn(t, "catalog.handlers.count", n.length, {
6141
6141
  one: "{count} handler registered (view-only — source of truth is code/YAML)",
6142
6142
  other: "{count} handlers registered (view-only — source of truth is code/YAML)"
6143
6143
  })
@@ -6156,7 +6156,7 @@ function Ts({ schema: e }) {
6156
6156
  });
6157
6157
  }
6158
6158
  function Es({ code: e, handler: t, entity: n }) {
6159
- let i = z(), [a, o] = J(!1), s = F().isPhone, c = t.display?.name ? i(t.display.name) : e;
6159
+ let i = z(), [a, o] = J(!1), s = A().isPhone, c = t.display?.name ? i(t.display.name) : e;
6160
6160
  return /* @__PURE__ */ Q("div", {
6161
6161
  style: {
6162
6162
  border: "1px solid var(--border)",
@@ -6219,11 +6219,11 @@ function Es({ code: e, handler: t, entity: n }) {
6219
6219
  flexWrap: "wrap",
6220
6220
  justifyContent: s ? "flex-start" : "flex-end"
6221
6221
  },
6222
- children: [/* @__PURE__ */ Z(v, {
6222
+ children: [/* @__PURE__ */ Z(w, {
6223
6223
  tone: "slate",
6224
6224
  size: "xs",
6225
6225
  children: t.type
6226
- }), n && /* @__PURE__ */ Z(v, {
6226
+ }), n && /* @__PURE__ */ Z(w, {
6227
6227
  tone: "violet",
6228
6228
  size: "xs",
6229
6229
  children: n
@@ -6264,7 +6264,7 @@ function Es({ code: e, handler: t, entity: n }) {
6264
6264
  });
6265
6265
  }
6266
6266
  function Ds({ code: e, param: t }) {
6267
- let n = z(), r = t.display?.name ? n(t.display.name) : void 0, i = F().isPhone;
6267
+ let n = z(), r = t.display?.name ? n(t.display.name) : void 0, i = A().isPhone;
6268
6268
  return /* @__PURE__ */ Q("div", {
6269
6269
  style: {
6270
6270
  display: "flex",
@@ -6286,17 +6286,17 @@ function Ds({ code: e, param: t }) {
6286
6286
  },
6287
6287
  children: e
6288
6288
  }),
6289
- /* @__PURE__ */ Z(v, {
6289
+ /* @__PURE__ */ Z(w, {
6290
6290
  tone: "slate",
6291
6291
  size: "xs",
6292
6292
  children: t.type || Ss
6293
6293
  }),
6294
- t.required && /* @__PURE__ */ Z(v, {
6294
+ t.required && /* @__PURE__ */ Z(w, {
6295
6295
  tone: "rose",
6296
6296
  size: "xs",
6297
6297
  children: n("catalog.param.required", "required")
6298
6298
  }),
6299
- t.hidden && /* @__PURE__ */ Z(v, {
6299
+ t.hidden && /* @__PURE__ */ Z(w, {
6300
6300
  tone: "slate",
6301
6301
  size: "xs",
6302
6302
  children: n("catalog.param.hidden", "hidden")
@@ -6307,7 +6307,7 @@ function Ds({ code: e, param: t }) {
6307
6307
  color: "var(--text-3)",
6308
6308
  overflowWrap: "anywhere"
6309
6309
  },
6310
- children: n("catalog.param.default", "default: {value}", { value: Ne(t.default) })
6310
+ children: n("catalog.param.default", "default: {value}", { value: de(t.default) })
6311
6311
  }),
6312
6312
  r && /* @__PURE__ */ Z("span", {
6313
6313
  style: {
@@ -6353,7 +6353,7 @@ function Os({ schema: e }) {
6353
6353
  color: "var(--text-3)",
6354
6354
  margin: 0
6355
6355
  },
6356
- children: Sn(t, "catalog.actions.count", n.length, {
6356
+ children: kn(t, "catalog.actions.count", n.length, {
6357
6357
  one: "{count} action defined (view-only — source of truth is code/YAML)",
6358
6358
  other: "{count} actions defined (view-only — source of truth is code/YAML)"
6359
6359
  })
@@ -6379,7 +6379,7 @@ function Os({ schema: e }) {
6379
6379
  });
6380
6380
  }
6381
6381
  function ks({ code: e, action: t }) {
6382
- let n = z()(t.display?.name), i = F().isPhone;
6382
+ let n = z()(t.display?.name), i = A().isPhone;
6383
6383
  return /* @__PURE__ */ Q("div", {
6384
6384
  style: {
6385
6385
  border: "1px solid var(--border)",
@@ -6439,7 +6439,7 @@ function ks({ code: e, action: t }) {
6439
6439
  children: [
6440
6440
  (() => {
6441
6441
  let e = t.handler ? "handler" : t.association ? "association" : t.widget ? "widget" : t.href ? "href" : null;
6442
- return e ? /* @__PURE__ */ Z(v, {
6442
+ return e ? /* @__PURE__ */ Z(w, {
6443
6443
  tone: "slate",
6444
6444
  size: "xs",
6445
6445
  children: e
@@ -6463,7 +6463,7 @@ function ks({ code: e, action: t }) {
6463
6463
  display: "flex",
6464
6464
  gap: 4
6465
6465
  },
6466
- children: t.visibility.map((e) => /* @__PURE__ */ Z(v, {
6466
+ children: t.visibility.map((e) => /* @__PURE__ */ Z(w, {
6467
6467
  tone: "slate",
6468
6468
  size: "xs",
6469
6469
  children: e
@@ -6475,7 +6475,7 @@ function ks({ code: e, action: t }) {
6475
6475
  }
6476
6476
  //#endregion
6477
6477
  //#region src/components/pages/SmartListPage.tsx
6478
- var As = Si(() => import("./SmartListPage.impl-BrZLE_Gb.js").then((e) => ({ default: e.SmartListPage })));
6478
+ var As = Si(() => import("./SmartListPage.impl-Db_Pv9Xc.js").then((e) => ({ default: e.SmartListPage })));
6479
6479
  function js(e) {
6480
6480
  return /* @__PURE__ */ Z(xi, {
6481
6481
  fallback: null,
@@ -6484,7 +6484,7 @@ function js(e) {
6484
6484
  }
6485
6485
  //#endregion
6486
6486
  //#region src/components/pages/SmartDetailPage.tsx
6487
- var Ms = Si(() => import("./SmartDetailPage.impl-DFjz29Ff.js").then((e) => ({ default: e.SmartDetailPage })));
6487
+ var Ms = Si(() => import("./SmartDetailPage.impl-CYiM-ITJ.js").then((e) => ({ default: e.SmartDetailPage })));
6488
6488
  function Ns(e) {
6489
6489
  return /* @__PURE__ */ Z(xi, {
6490
6490
  fallback: null,
@@ -6493,7 +6493,7 @@ function Ns(e) {
6493
6493
  }
6494
6494
  //#endregion
6495
6495
  //#region src/components/pages/SmartRecordListPage.tsx
6496
- var Ps = Si(() => import("./SmartRecordListPage.impl-C1FJLr80.js").then((e) => ({ default: e.SmartRecordListPage })));
6496
+ var Ps = Si(() => import("./SmartRecordListPage.impl-hbbLglC1.js").then((e) => ({ default: e.SmartRecordListPage })));
6497
6497
  function Fs(e) {
6498
6498
  return /* @__PURE__ */ Z(xi, {
6499
6499
  fallback: null,
@@ -6522,7 +6522,7 @@ function Is() {
6522
6522
  async function l() {
6523
6523
  if (!t) {
6524
6524
  try {
6525
- await Dn(), o = 0, a = i;
6525
+ await Pn(), o = 0, a = i;
6526
6526
  } catch (e) {
6527
6527
  o === 0 && console.warn("[declarion] version probe failed; backing off", e), o += 1, a = Math.min(1e3 * 2 ** Math.min(o - 1, 9), 3e5);
6528
6528
  }
@@ -6530,7 +6530,7 @@ function Is() {
6530
6530
  }
6531
6531
  }
6532
6532
  function u() {
6533
- let e = Ut();
6533
+ let e = Zt();
6534
6534
  e && f(e);
6535
6535
  let t = Date.now();
6536
6536
  t - s < 5e3 || (s = t, l());
@@ -6543,9 +6543,9 @@ function Is() {
6543
6543
  e.invalidateQueries({ queryKey: ["schema"] });
6544
6544
  return;
6545
6545
  }
6546
- if (Jt()) return;
6546
+ if (tn()) return;
6547
6547
  let r = n.current;
6548
- P.info(r("toast.update.available", "A new version is available"), r("toast.update.hint", "Reload to pick up the latest UI and schema."), {
6548
+ F.info(r("toast.update.available", "A new version is available"), r("toast.update.hint", "Reload to pick up the latest UI and schema."), {
6549
6549
  id: "declarion-update-available",
6550
6550
  sticky: !0,
6551
6551
  action: {
@@ -6555,7 +6555,7 @@ function Is() {
6555
6555
  }
6556
6556
  }
6557
6557
  });
6558
- }, p = en(f);
6558
+ }, p = cn(f);
6559
6559
  return window.addEventListener("focus", u), window.addEventListener("online", u), document.addEventListener("visibilitychange", d), l(), () => {
6560
6560
  t = !0, p(), window.removeEventListener("focus", u), window.removeEventListener("online", u), document.removeEventListener("visibilitychange", d), r !== null && clearTimeout(r);
6561
6561
  };
@@ -6564,10 +6564,10 @@ function Is() {
6564
6564
  //#endregion
6565
6565
  //#region src/lib/capabilityPrefetch.ts
6566
6566
  var Ls = [
6567
- () => import("./MarkdownRenderer-BDbzDv_y.js"),
6567
+ () => import("./MarkdownRenderer-N0IWjTH5.js"),
6568
6568
  () => import("./JsonEditor-Dz1PQHC8.js"),
6569
- () => import("./Grid-CQabaBLx.js"),
6570
- () => import("./DraggableChildrenTable-4RZC351U.js")
6569
+ () => import("./Grid-CYERLdXO.js"),
6570
+ () => import("./DraggableChildrenTable-CtL7rdT6.js")
6571
6571
  ];
6572
6572
  function Rs() {
6573
6573
  for (let e of Ls) e().catch(() => {});
@@ -6682,7 +6682,7 @@ var rc = "declarion-managed-favicon", ic = new Ii({ defaultOptions: { queries: {
6682
6682
  staleTime: 3e5,
6683
6683
  retry: 1
6684
6684
  } } });
6685
- ur(ic, _r);
6685
+ Cr(ic, Tr);
6686
6686
  function ac(e) {
6687
6687
  if (typeof window > "u") return null;
6688
6688
  try {
@@ -6704,7 +6704,7 @@ function oc() {
6704
6704
  if ((i ? e.entities?.[i] : void 0)?.singleton) continue;
6705
6705
  t.push(/* @__PURE__ */ Z(Y, {
6706
6706
  path: r.route,
6707
- element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6707
+ element: /* @__PURE__ */ Z(zn, { children: /* @__PURE__ */ Z(ot, {
6708
6708
  code: n,
6709
6709
  children: /* @__PURE__ */ Z(js, { screenCode: n })
6710
6710
  }) })
@@ -6714,7 +6714,7 @@ function oc() {
6714
6714
  if (r.type === "detail") {
6715
6715
  t.push(/* @__PURE__ */ Z(Y, {
6716
6716
  path: r.route,
6717
- element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6717
+ element: /* @__PURE__ */ Z(zn, { children: /* @__PURE__ */ Z(ot, {
6718
6718
  code: n,
6719
6719
  children: /* @__PURE__ */ Z(Ns, { screenCode: n })
6720
6720
  }) })
@@ -6724,7 +6724,7 @@ function oc() {
6724
6724
  if (r.type === "record_list") {
6725
6725
  t.push(/* @__PURE__ */ Z(Y, {
6726
6726
  path: r.route,
6727
- element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6727
+ element: /* @__PURE__ */ Z(zn, { children: /* @__PURE__ */ Z(ot, {
6728
6728
  code: n,
6729
6729
  children: /* @__PURE__ */ Z(Fs, { screenCode: n })
6730
6730
  }) })
@@ -6735,7 +6735,7 @@ function oc() {
6735
6735
  let e = r.component ? Us(r.component) : void 0;
6736
6736
  e && t.push(/* @__PURE__ */ Z(Y, {
6737
6737
  path: r.route,
6738
- element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6738
+ element: /* @__PURE__ */ Z(zn, { children: /* @__PURE__ */ Z(ot, {
6739
6739
  code: n,
6740
6740
  children: /* @__PURE__ */ Z(e, { screenCode: n })
6741
6741
  }) })
@@ -6748,7 +6748,7 @@ function oc() {
6748
6748
  };
6749
6749
  }
6750
6750
  function sc() {
6751
- let t = R((e) => e.initialize), n = R((e) => e.isLoading), r = R((e) => e.isAuthenticated), { data: i, isError: a } = L(), { data: o, isLoading: s } = g(), { branding: c, isLoading: l } = Bt(), { routes: u, defaultRoute: d } = oc(), f = Gt(), p = typeof window < "u" && window.self !== window.top && !f.enabled;
6751
+ let t = R((e) => e.initialize), n = R((e) => e.isLoading), r = R((e) => e.isAuthenticated), { data: i, isError: a } = L(), { data: o, isLoading: s } = ie(), { branding: c, isLoading: l } = Jt(), { routes: u, defaultRoute: d } = oc(), f = I(), p = typeof window < "u" && window.self !== window.top && !f.enabled;
6752
6752
  G(() => {
6753
6753
  f.enabled || p || t();
6754
6754
  }, [
@@ -6762,14 +6762,14 @@ function sc() {
6762
6762
  }, [m]), G(() => {
6763
6763
  Bs();
6764
6764
  }, []);
6765
- let h = c?.identity, _ = c?.theme;
6765
+ let h = c?.identity, g = c?.theme;
6766
6766
  G(() => {
6767
6767
  if (typeof document > "u") return;
6768
6768
  let e = h?.app_name?.trim();
6769
6769
  e && (document.title = e);
6770
6770
  }, [h?.app_name]), G(() => {
6771
6771
  if (typeof document > "u") return;
6772
- let e = h?.app_logo, t = Nt(e) ? ac(e.trim()) : null, n = document.getElementById(rc);
6772
+ let e = h?.app_logo, t = Vt(e) ? ac(e.trim()) : null, n = document.getElementById(rc);
6773
6773
  if (!t) {
6774
6774
  n && n.remove();
6775
6775
  return;
@@ -6782,28 +6782,28 @@ function sc() {
6782
6782
  }
6783
6783
  n.href !== t && (n.href = t);
6784
6784
  }, [h?.app_logo]);
6785
- let v = _?.css_url ?? null, y = K(() => $s(_), [_]);
6785
+ let _ = g?.css_url ?? null, v = K(() => $s(g), [g]);
6786
6786
  G(() => {
6787
- nc(y);
6788
- }, [y]), G(() => {
6787
+ nc(v);
6788
+ }, [v]), G(() => {
6789
6789
  if (typeof document > "u") return;
6790
6790
  let e = document.getElementById(tc);
6791
- if (!v) {
6791
+ if (!_) {
6792
6792
  e && e.remove();
6793
6793
  return;
6794
6794
  }
6795
- let t = ac(v);
6795
+ let t = ac(_);
6796
6796
  if (!t) {
6797
- e && e.remove(), console.error(`[declarion] branding.theme.css_url rejected: ${v}. Only same-origin, relative URLs are allowed (e.g. /modules/crm/public/brand.css).`);
6797
+ e && e.remove(), console.error(`[declarion] branding.theme.css_url rejected: ${_}. Only same-origin, relative URLs are allowed (e.g. /modules/crm/public/brand.css).`);
6798
6798
  return;
6799
6799
  }
6800
6800
  if (e && e.href === t) return;
6801
6801
  e && e.remove();
6802
6802
  let n = document.createElement("link");
6803
6803
  n.id = tc, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
6804
- }, [v]);
6805
- let b = f.enabled && !r;
6806
- return p || b || n || s && !o || l || !i && (r || !a) ? /* @__PURE__ */ Z("div", {
6804
+ }, [_]);
6805
+ let y = f.enabled && !r;
6806
+ return p || y || n || s && !o || l || !i && (r || !a) ? /* @__PURE__ */ Z("div", {
6807
6807
  "aria-hidden": !0,
6808
6808
  style: {
6809
6809
  minHeight: "var(--app-height)",
@@ -6884,17 +6884,17 @@ function cc() {
6884
6884
  ] });
6885
6885
  }
6886
6886
  function lc({ children: e }) {
6887
- let t = Mt(), n = Ft();
6888
- return /* @__PURE__ */ Z(he, {
6887
+ let t = Bt(), n = Ut();
6888
+ return /* @__PURE__ */ Z(Ie, {
6889
6889
  viewport: t,
6890
6890
  breakpoints: n,
6891
6891
  children: e
6892
6892
  });
6893
6893
  }
6894
6894
  function uc() {
6895
- return /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Li, {
6895
+ return /* @__PURE__ */ Z(zn, { children: /* @__PURE__ */ Z(Li, {
6896
6896
  client: ic,
6897
- children: /* @__PURE__ */ Z(Kt, { children: /* @__PURE__ */ Z(lc, { children: /* @__PURE__ */ Z(cc, {}) }) })
6897
+ children: /* @__PURE__ */ Z($t, { children: /* @__PURE__ */ Z(lc, { children: /* @__PURE__ */ Z(cc, {}) }) })
6898
6898
  }) });
6899
6899
  }
6900
6900
  //#endregion
@@ -6917,7 +6917,7 @@ var dc = class {
6917
6917
  }
6918
6918
  async execute() {
6919
6919
  if (this.ops.length === 0) throw Error("declarion: batch.execute() called with no ops; add ops via .call() or .upsert()");
6920
- return await Xt("system.batch", {
6920
+ return await rn("system.batch", {
6921
6921
  actions: this.ops,
6922
6922
  atomic: !0
6923
6923
  });
@@ -6947,20 +6947,20 @@ function hc(e, t = {}) {
6947
6947
  count: "with"
6948
6948
  }, i;
6949
6949
  try {
6950
- i = await Yn(e, {
6950
+ i = await nr(e, {
6951
6951
  ...r,
6952
6952
  page: 1
6953
6953
  }, { signal: n });
6954
6954
  } catch (t) {
6955
- throw t instanceof Vt && t.code === "cursor.cross_tier_offset_unsupported" ? Error(`useAllEntityData: entity "${e}" is cursor-paginated (cross-store archive); it cannot be eagerly fetched into memory. Use a paginated cursor list (useCursorEntityData) instead.`) : t;
6955
+ throw t instanceof Yt && t.code === "cursor.cross_tier_offset_unsupported" ? Error(`useAllEntityData: entity "${e}" is cursor-paginated (cross-store archive); it cannot be eagerly fetched into memory. Use a paginated cursor list (useCursorEntityData) instead.`) : t;
6956
6956
  }
6957
6957
  let a = i.meta.total_pages ?? 1;
6958
6958
  if (a <= 1) return i;
6959
6959
  if (a > mc) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${mc}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
6960
- let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => Yn(e, {
6960
+ let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => nr(e, {
6961
6961
  ...r,
6962
6962
  page: i + 2
6963
- }, { signal: n }))), s = new Ce();
6963
+ }, { signal: n }))), s = new ke();
6964
6964
  s.merge(i.$refs);
6965
6965
  let c = [...i.data];
6966
6966
  for (let e of o) c.push(...e.data), s.merge(e.$refs);
@@ -6980,12 +6980,12 @@ function hc(e, t = {}) {
6980
6980
  //#endregion
6981
6981
  //#region src/hooks/useLiveObject.ts
6982
6982
  function gc(e, t) {
6983
- let n = kn(e, t), { data: r } = L(), i = n.data?.data ? Be(n.data.data) : void 0, a = _e(e ? r?.entities?.[e]?.realtime : void 0, e ?? ""), o = e ? a : !1;
6983
+ let n = In(e, t), { data: r } = L(), i = n.data?.data ? Xe(n.data.data) : void 0, a = Ce(e ? r?.entities?.[e]?.realtime : void 0, e ?? ""), o = e ? a : !1;
6984
6984
  return {
6985
6985
  ...n,
6986
6986
  object: i,
6987
6987
  isLive: o,
6988
- isNotFound: n.error instanceof Vt && n.error.status === 404
6988
+ isNotFound: n.error instanceof Yt && n.error.status === 404
6989
6989
  };
6990
6990
  }
6991
6991
  //#endregion
@@ -7037,18 +7037,18 @@ function yc(e) {
7037
7037
  }
7038
7038
  //#endregion
7039
7039
  //#region src/components/actions/ObjectActionBar.tsx
7040
- function bc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o }) {
7041
- let s = z(), c = z("errors"), { data: l } = L(), { run: u, isRunning: d } = je(), f = a(), p = ar(), m = ki(), h = l?.entities?.[e], g = K(() => Sc(l, e, r, m.pathname), [
7040
+ function bc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: a }) {
7041
+ let s = z(), c = z("errors"), { data: l } = L(), { run: u, isRunning: d } = Re(), f = o(), p = cr(), m = ki(), h = l?.entities?.[e], g = K(() => Sc(l, e, r, m.pathname), [
7042
7042
  l,
7043
7043
  e,
7044
7044
  r,
7045
7045
  m.pathname
7046
- ]), _ = l?.actions, v = ue(l, e);
7046
+ ]), _ = l?.actions, v = ge(l, e);
7047
7047
  return {
7048
7048
  nodes: K(() => {
7049
7049
  if (!h || !t) return [];
7050
- let e = wc(Ee(g?.action_layout, h.action_layout, h.actions, _, n), i);
7051
- return le(s, e, h.actions, _, t, [], Rr(h, t));
7050
+ let e = wc(Ne(g?.action_layout, h.action_layout, h.actions, _, n), i);
7051
+ return pe(s, e, h.actions, _, t, [], Rr(h, t));
7052
7052
  }, [
7053
7053
  s,
7054
7054
  g?.action_layout,
@@ -7062,21 +7062,21 @@ function bc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o
7062
7062
  if (!h || !t) return;
7063
7063
  let i = Hr(c, n, r, { row: t }, e);
7064
7064
  if (i === null) return;
7065
- let a = Ze(t, h), l = a ? [a] : [], d = n === "__delete" && v ? v.route : null;
7065
+ let o = st(t, h), l = o ? [o] : [], d = n === "__delete" && v ? v.route : null;
7066
7066
  return u({
7067
7067
  action: r,
7068
7068
  title: s(r.display?.name) || n,
7069
7069
  row: t,
7070
- execute: (e) => Zn(i, Kn(e, l)),
7070
+ execute: (e) => ir(i, $n(e, l)),
7071
7071
  onSuccess: (e) => {
7072
- d && f(d, { replace: !0 }), o?.(n, e);
7072
+ d && f(d, { replace: !0 }), a?.(n, e);
7073
7073
  }
7074
7074
  });
7075
7075
  },
7076
7076
  isBusy: d,
7077
7077
  widgetContext: K(() => {
7078
7078
  if (!h || !t) return;
7079
- let n = Ze(t, h);
7079
+ let n = st(t, h);
7080
7080
  return {
7081
7081
  entity: h,
7082
7082
  entityCode: e,
@@ -7090,7 +7090,7 @@ function bc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o
7090
7090
  icon: t?.icon,
7091
7091
  search: t?.search
7092
7092
  }),
7093
- runActionApi: (e, t) => Zn(e, t)
7093
+ runActionApi: (e, t) => ir(e, t)
7094
7094
  };
7095
7095
  }, [
7096
7096
  h,
@@ -7176,14 +7176,14 @@ function Dc({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
7176
7176
  } catch (e) {
7177
7177
  p(n), d(n);
7178
7178
  let t = V(l, e);
7179
- P.error(l("list.cell_unsaved", "The value could not be saved."), o ? c("list.cell.field_reason", "{field}: {reason}", {
7179
+ F.error(l("list.cell_unsaved", "The value could not be saved."), o ? c("list.cell.field_reason", "{field}: {reason}", {
7180
7180
  field: o,
7181
7181
  reason: t
7182
7182
  }) : t);
7183
7183
  }
7184
7184
  }, x = () => {
7185
7185
  _(f), h(!1);
7186
- }, C = () => {
7186
+ }, S = () => {
7187
7187
  if (g === void 0) return x();
7188
7188
  b(g);
7189
7189
  };
@@ -7194,31 +7194,31 @@ function Dc({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
7194
7194
  gap: 4
7195
7195
  },
7196
7196
  onKeyDown: (e) => {
7197
- e.key === "Enter" && C(), e.key === "Escape" && x();
7197
+ e.key === "Enter" && S(), e.key === "Escape" && x();
7198
7198
  },
7199
- children: [r === "select" ? /* @__PURE__ */ Z(pe, {
7199
+ children: [r === "select" ? /* @__PURE__ */ Z(it, {
7200
7200
  value: g,
7201
7201
  options: i || [],
7202
7202
  onChange: (e) => {
7203
7203
  _(e), b(e);
7204
7204
  }
7205
- }) : r === "bool" ? /* @__PURE__ */ Z(Me, {
7205
+ }) : r === "bool" ? /* @__PURE__ */ Z(Ke, {
7206
7206
  value: g === "true",
7207
7207
  onChange: (e) => {
7208
7208
  let t = String(e);
7209
7209
  _(t), b(t);
7210
7210
  }
7211
- }) : /* @__PURE__ */ Z(N, {
7211
+ }) : /* @__PURE__ */ Z(P, {
7212
7212
  value: g ?? "",
7213
7213
  onChange: _,
7214
7214
  autoFocus: !0,
7215
7215
  placeholder: s
7216
- }), r !== "select" && r !== "bool" && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(S, {
7216
+ }), r !== "select" && r !== "bool" && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(M, {
7217
7217
  size: 24,
7218
7218
  icon: /* @__PURE__ */ Z(n.check, { size: 13 }),
7219
- onClick: C,
7219
+ onClick: S,
7220
7220
  title: c("dialog.save", "Save")
7221
- }), /* @__PURE__ */ Z(S, {
7221
+ }), /* @__PURE__ */ Z(M, {
7222
7222
  size: 24,
7223
7223
  icon: /* @__PURE__ */ Z(n.x, { size: 13 }),
7224
7224
  onClick: x,
@@ -7248,7 +7248,7 @@ function Dc({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
7248
7248
  //#endregion
7249
7249
  //#region src/components/layout/ImpersonationStartModal.tsx
7250
7250
  function Oc({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarted: i }) {
7251
- let a = z(), { start: o, isStarting: s } = xa(), { value: c } = ce("impersonation.require_reason_min_length", 10), [l, u] = J(""), [d, f] = J("");
7251
+ let a = z(), { start: o, isStarting: s } = xa(), { value: c } = ye("impersonation.require_reason_min_length", 10), [l, u] = J(""), [d, f] = J("");
7252
7252
  if (!e) return null;
7253
7253
  let p = l.trim(), m = p.length >= c;
7254
7254
  return /* @__PURE__ */ Z("div", {
@@ -7400,7 +7400,7 @@ function Oc({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarte
7400
7400
  //#endregion
7401
7401
  //#region src/components/agents/AgentConversationDrawer.tsx
7402
7402
  function kc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, onNew: o, onRefresh: s }) {
7403
- let c = z(), l = c(at("agent_conversation")?.display?.name_plural) || "agent_conversation";
7403
+ let c = z(), l = c(Ve("agent_conversation")?.display?.name_plural) || "agent_conversation";
7404
7404
  return G(() => {
7405
7405
  e && s();
7406
7406
  }, [e, s]), e ? /* @__PURE__ */ Q("aside", {
@@ -7411,7 +7411,7 @@ function kc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
7411
7411
  children: [/* @__PURE__ */ Z("span", {
7412
7412
  className: "font-semibold",
7413
7413
  children: l
7414
- }), /* @__PURE__ */ Q(k, {
7414
+ }), /* @__PURE__ */ Q(S, {
7415
7415
  kind: "ghost",
7416
7416
  onClick: o,
7417
7417
  children: [
@@ -7440,7 +7440,7 @@ function kc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
7440
7440
  }),
7441
7441
  /* @__PURE__ */ Z("footer", {
7442
7442
  className: "border-t border-border p-2",
7443
- children: /* @__PURE__ */ Z(k, {
7443
+ children: /* @__PURE__ */ Z(S, {
7444
7444
  kind: "ghost",
7445
7445
  onClick: t,
7446
7446
  children: c("agent.drawer.close", "Close")
@@ -7450,4 +7450,4 @@ function kc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
7450
7450
  }) : null;
7451
7451
  }
7452
7452
  //#endregion
7453
- export { rt as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, Jn as ActionBatchError, We as ActionRunnerProvider, qa as AgentChatPanel, kc as AgentConversationDrawer, ci as AgentElicitForm, li as AgentPicker, uc as App, uc as Declarion, lo as AuthShell, Ct as Avatar, dc as Batch, Me as BoolToggle, Hi as BrandGlyph, Aa as Breadcrumbs, k as Btn, un as CURSOR_LANGUAGE_CHANGED, xn as CURSOR_SEMANTICS_MISMATCH, Bo as ChangePasswordDialog, Gn as Check, w as Chip, Ar as CircleImage, Nn as ClassifiedFieldLocked, bt as ColumnPicker, Ga as CommandPalette, ct as ConfirmDialog, Ye as CurrentScreenProvider, qe as DEFAULT_RESPONSIVE_BREAKPOINTS, M as DateInput, ee as Dropdown, r as DynamicIcon, St as EmptyState, Qe as EntityClient, h as FieldLabel, He as FileDraftScope, ut as FilterChips, ht as FilterDrawer, Do as Forgot, E as HoverCard, n as Icon, S as IconBtn, Ra as ImpersonationBanner, za as ImpersonationFrame, Oc as ImpersonationStartModal, At as InfoTooltip, Dc as InlineEditCell, x as JsonField, p as Kbd, _n as MANDATORY_LANGUAGE, C as MULTIPLE_VALUES, I as MenuItem, Ue as MultiSelect, Yr as NO_VALUE_OPS, $r as OP_LABELS, xc as ObjectActionBar, Ht as OrderedMap, fr as PAGE_STATE_TTL_PARAM, hs as PageHeader, b as PasswordInput, v as Pill, bs as Preferences, ts as Profile, T as PropertyGridEditor, mt as QEField, fe as QuickEditCell, lt as QuickPeek, qi as Rail, Bn as RecordIdBadge, Ce as RefCache, ye as RefCombobox, de as RefField, zt as RefreshControl, Po as Reset, he as ResponsiveModeProvider, Wi as RowField, Pt as SCROLL_STATE_KEY, jn as SectionCard, pe as Select, ha as Sidebar, Co as SignIn, To as SignUp, Ns as SmartDetailPage, js as SmartListPage, Fs as SmartRecordListPage, ze as Spinner, Ur as SquareImage, Fa as TabStrip, te as TagsInput, Da as TenantChip, i as TextArea, N as TextInput, kt as Tooltip, Na as TopBar, Fo as TwoFA, Ie as UploadError, Xe as ViewField, _t as ViewSwitcher, Fr as WideBanner, s as actionDataQueryKey, pi as answerQuestion, gi as approveInvocation, Kn as buildActionBody, $e as buildDetailHrefFromId, we as buildEntityDetailHref, f as buildMassEditTargets, Oe as buildRowDetailHref, ga as buildSections, ui as cancelConversation, ii as cancelInvocation, er as canonicalUrl, Cr as classificationTier, Ne as coerceDisplayString, Lr as commonVariantActionCodes, ni as countActiveFilters, mi as createConversation, tt as cursorActionDataQueryKey, Ke as cursorEntityDataQueryKey, be as cursorEntityStableKey, Xn as deleteObject, D as detectCommonValue, et as discardFile, Br as effectiveScreenForRecord, De as entityClient, nt as entityDataQueryKey, Ea as envTone, Vr as evaluateFilterTree, Zn as executeAction, ke as extractPkValues, V as failureTitle, vr as fieldAccessInfo, xr as fieldClassification, me as fieldDisplayName, gr as fieldRequiredPermission, Te as formatBytes, xt as formatCount, gt as formatEstimatedCount, yt as formatExactCount, Wr as getFileWidget, t as getIcon, Gr as getImageCropper, Rn as getLayoutWidget, ot as getPrimaryKeyFields, kr as hasFileWidget, Pn as hasLayoutWidget, Xr as hasOrGroups, mn as isCursorStaleError, dr as isFieldReadable, yr as isFieldSoDProtected, Sr as isFieldWritable, _i as listAvailableAgents, ai as listConversations, di as loadConversationInvocations, yi as loadConversationTurns, oi as loadHistory, bn as makeTextFn, Ln as objectQueryKey, Zr as parseFilterURLState, ei as parseFiltersFromURL, _ as parseTargetFilter, cn as pickLocalized, ve as pkValuePartsToId, it as pkValuesFromId, re as pkValuesToDetailId, c as pkValuesToId, Sn as pluralText, Or as registerFileWidget, In as registerLayoutWidget, Hs as registerScreen, si as rejectInvocation, gn as reresolveLanguage, ae as resolveDetailRoute, Ir as resolveEntityVariantCode, jr as resolveScreenVariantCode, xe as resolveViewportCategory, qn as restoreObject, hi as sendElicitResponse, fi as sendMessage, Qr as setFiltersInURL, e as setIconRegistry, Mr as setImageCropper, ln as textWithNodes, Le as uploadFile, ie as useActionData, je as useActionRunner, vi as useAgentConversation, hc as useAllEntityData, ba as useAuth, _c as useColumns, pr as useCreateObject, Re as useCurrentScreen, u as useCursorActionData, Fe as useCursorEntityData, j as useDebounce, br as useDeleteObject, Jr as useDeleteProperty, yn as useDeploymentLanguage, Je as useDraftRegistration, o as useEffectiveParam, at as useEntity, oe as useEntityCount, d as useEntityData, Se as useFileDraftScope, pt as useFilters, xa as useImpersonation, pn as useLanguage, gc as useLiveObject, Oi as useLocation, Ai as useNavigate, kn as useObject, bc as useObjectActions, dt as usePageState, Tr as usePageStateTtl, ce as useParam, Ni as useParams, Lt as usePlainScrollRestoration, g as usePublicParams, Er as useRegisterRetainedQuery, se as useResolvedParam, F as useResponsiveMode, jt as useSavedScrollOffset, L as useSchema, ft as useScreen, mr as useScreenBack, yc as useScreenTab, Pi as useSearchParams, Kr as useSetProperty, qr as useSetStatus, ar as useTabNavigate, ri as useTabSearchMirror, H as useTabStore, z as useText, hr as useUpdateObject, vt as useViews, Tt as useVirtualScrollRestoration, Ae as validateClientSide, Rr as variantActionCodesForRecord };
7453
+ export { pt as ACTION_DATA_CURSOR_KEY, ae as ACTION_DATA_KEY, tr as ActionBatchError, et as ActionRunnerProvider, qa as AgentChatPanel, kc as AgentConversationDrawer, ci as AgentElicitForm, li as AgentPicker, uc as App, uc as Declarion, lo as AuthShell, jt as Avatar, dc as Batch, Ke as BoolToggle, Hi as BrandGlyph, Aa as Breadcrumbs, S as Btn, _n as CURSOR_LANGUAGE_CHANGED, On as CURSOR_SEMANTICS_MISMATCH, Bo as ChangePasswordDialog, Qn as Check, y as Chip, Ar as CircleImage, Bn as ClassifiedFieldLocked, Ot as ColumnPicker, Ga as CommandPalette, gt as ConfirmDialog, ot as CurrentScreenProvider, be as DEFAULT_RESPONSIVE_BREAKPOINTS, Me as DateInput, me as Dropdown, r as DynamicIcon, At as EmptyState, ct as EntityClient, N as FieldLabel, $e as FileDraftScope, vt as FilterChips, Ct as FilterDrawer, Do as Forgot, ue as HoverCard, n as Icon, M as IconBtn, Ra as ImpersonationBanner, za as ImpersonationFrame, Oc as ImpersonationStartModal, Rt as InfoTooltip, Dc as InlineEditCell, Ye as JsonField, _ as Kbd, wn as MANDATORY_LANGUAGE, D as MULTIPLE_VALUES, j as MenuItem, tt as MultiSelect, Yr as NO_VALUE_OPS, $r as OP_LABELS, xc as ObjectActionBar, Xt as OrderedMap, Sr as PAGE_STATE_TTL_PARAM, hs as PageHeader, ze as PasswordInput, w as Pill, bs as Preferences, ts as Profile, te as PropertyGridEditor, St as QEField, xe as QuickEditCell, _t as QuickPeek, qi as Rail, qn as RecordIdBadge, ke as RefCache, Te as RefCombobox, Qe as RefField, qt as RefreshControl, Po as Reset, Ie as ResponsiveModeProvider, Wi as RowField, Ht as SCROLL_STATE_KEY, Rn as SectionCard, it as Select, ha as Sidebar, Co as SignIn, To as SignUp, Ns as SmartDetailPage, js as SmartListPage, Fs as SmartRecordListPage, Fe as Spinner, Ur as SquareImage, Fa as TabStrip, De as TagsInput, Da as TenantChip, We as TextArea, P as TextInput, Lt as Tooltip, Na as TopBar, Fo as TwoFA, Ge as UploadError, Ae as ViewField, Tt as ViewSwitcher, Fr as WideBanner, s as actionDataQueryKey, pi as answerQuestion, gi as approveInvocation, $n as buildActionBody, we as buildDetailHrefFromId, mt as buildEntityDetailHref, m as buildMassEditTargets, oe as buildRowDetailHref, ga as buildSections, ui as cancelConversation, ii as cancelInvocation, gr as canonicalUrl, ht as classificationTier, de as coerceDisplayString, Lr as commonVariantActionCodes, ni as countActiveFilters, mi as createConversation, dt as cursorActionDataQueryKey, rt as cursorEntityDataQueryKey, Ee as cursorEntityStableKey, rr as deleteObject, re as detectCommonValue, lt as discardFile, Br as effectiveScreenForRecord, Pe as entityClient, k as entityDataQueryKey, Ea as envTone, Vr as evaluateFilterTree, ir as executeAction, f as extractPkValues, V as failureTitle, se as fieldAccessInfo, c as fieldClassification, l as fieldDisplayName, ft as fieldRequiredPermission, je as formatBytes, kt as formatCount, wt as formatEstimatedCount, Dt as formatExactCount, Wr as getFileWidget, t as getIcon, Gr as getImageCropper, Gn as getLayoutWidget, He as getPrimaryKeyFields, kr as hasFileWidget, Vn as hasLayoutWidget, Xr as hasOrGroups, xn as isCursorStaleError, le as isFieldReadable, p as isFieldSoDProtected, u as isFieldWritable, _i as listAvailableAgents, ai as listConversations, di as loadConversationInvocations, yi as loadConversationTurns, oi as loadHistory, Dn as makeTextFn, Wn as objectQueryKey, Zr as parseFilterURLState, ei as parseFiltersFromURL, b as parseTargetFilter, hn as pickLocalized, a as pkValuePartsToId, Be as pkValuesFromId, O as pkValuesToDetailId, ne as pkValuesToId, kn as pluralText, Or as registerFileWidget, Un as registerLayoutWidget, Hs as registerScreen, si as rejectInvocation, Cn as reresolveLanguage, h as resolveDetailRoute, Ir as resolveEntityVariantCode, jr as resolveScreenVariantCode, ut as resolveViewportCategory, er as restoreObject, hi as sendElicitResponse, fi as sendMessage, Qr as setFiltersInURL, e as setIconRegistry, Mr as setImageCropper, gn as textWithNodes, qe as uploadFile, ce as useActionData, Re as useActionRunner, vi as useAgentConversation, hc as useAllEntityData, ba as useAuth, _c as useColumns, dr as useCreateObject, Je as useCurrentScreen, d as useCursorActionData, Ue as useCursorEntityData, ee as useDebounce, xr as useDeleteObject, Jr as useDeleteProperty, En as useDeploymentLanguage, at as useDraftRegistration, _e as useEffectiveParam, Ve as useEntity, g as useEntityCount, x as useEntityData, Oe as useFileDraftScope, xt as useFilters, xa as useImpersonation, bn as useLanguage, gc as useLiveObject, Oi as useLocation, Ai as useNavigate, In as useObject, bc as useObjectActions, yt as usePageState, br as usePageStateTtl, ye as useParam, Ni as useParams, Gt as usePlainScrollRestoration, ie as usePublicParams, hr as useRegisterRetainedQuery, i as useResolvedParam, A as useResponsiveMode, zt as useSavedScrollOffset, L as useSchema, bt as useScreen, yr as useScreenBack, yc as useScreenTab, Pi as useSearchParams, Kr as useSetProperty, qr as useSetStatus, cr as useTabNavigate, ri as useTabSearchMirror, H as useTabStore, z as useText, pr as useUpdateObject, Et as useViews, Nt as useVirtualScrollRestoration, Le as validateClientSide, Rr as variantActionCodesForRecord };