@declarion/react 0.63.1 → 0.64.1

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 (71) hide show
  1. package/dist-lib/{ActionDialog-uiuse5W8.js → ActionDialog-C6EG-AmC.js} +3 -3
  2. package/dist-lib/{ActionResultDialog.impl-BUBm9Ck3.js → ActionResultDialog.impl-BATutW8J.js} +2 -2
  3. package/dist-lib/{ActionRunner-DAxgnKB3.js → ActionRunner-DdBFhqGe.js} +4 -4
  4. package/dist-lib/{AdminCatalogPage.impl-BJGn7EvA.js → AdminCatalogPage.impl-B-7MLqa1.js} +2 -2
  5. package/dist-lib/{AgentChatPanel.impl-8bw8J-xV.js → AgentChatPanel.impl-D5y_qEex.js} +6 -6
  6. package/dist-lib/{AgentOpenFollower.impl-Cga1q7_e.js → AgentOpenFollower.impl-BAs_wGEZ.js} +5 -5
  7. package/dist-lib/{AssociatedBlock-D6qDYmRO.js → AssociatedBlock-BOoPLOjw.js} +7 -7
  8. package/dist-lib/{AuthShell-DdiughRT.js → AuthShell-C8aVwHS7.js} +5 -5
  9. package/dist-lib/{useAuth-CR2YKKXb.js → BlankScreen-DVc7fh8C.js} +19 -7
  10. package/dist-lib/{ChangePasswordDialog-DFe7lVQg.js → ChangePasswordDialog-C_T_3pjl.js} +1 -1
  11. package/dist-lib/{ChangePasswordDialog.impl-DtSIaP-A.js → ChangePasswordDialog.impl-5hDc0wpE.js} +3 -3
  12. package/dist-lib/{CommandPalette.impl-Db3AFA5w.js → CommandPalette.impl-DRI5kxVY.js} +3 -3
  13. package/dist-lib/{CopyButton-C0iEvaT1.js → CopyButton-DRIT_f0k.js} +1 -1
  14. package/dist-lib/{DirtyTabsCloseDialog.impl-DWaFaWKn.js → DirtyTabsCloseDialog.impl-FhAiOmEb.js} +3 -3
  15. package/dist-lib/{DraggableChildrenTable-Cy8uevS_.js → DraggableChildrenTable-Dd5SeuF6.js} +3 -3
  16. package/dist-lib/{FieldRow-BXBBFOZh.js → FieldRow-DedGIY9R.js} +2 -2
  17. package/dist-lib/{FilterChips-8fMDBXHp.js → FilterChips-Cv1tlXyo.js} +4 -4
  18. package/dist-lib/{Forgot.impl-CmT5A__V.js → Forgot.impl-6tL6SBlS.js} +4 -4
  19. package/dist-lib/{Grid-Cg29k0jv.js → Grid-XUHm5SDe.js} +3 -3
  20. package/dist-lib/{ImpersonationBanner.impl-CBJJx6an.js → ImpersonationBanner.impl--g0iYwcV.js} +2 -2
  21. package/dist-lib/{ImpersonationStartModal.impl-RaZcsJpG.js → ImpersonationStartModal.impl-BFBN0YJe.js} +3 -3
  22. package/dist-lib/{LayoutRenderer-DEHtYtzV.js → LayoutRenderer-d-tXYPze.js} +12 -12
  23. package/dist-lib/{ListCardsBody-BAwFR3yO.js → ListCardsBody-BEoYjSZ2.js} +4 -4
  24. package/dist-lib/{MarkdownRenderer-kNEMr6K_.js → MarkdownRenderer-sK2TRZS-.js} +2 -2
  25. package/dist-lib/{NotFoundPage.impl-ZSBn4WWb.js → NotFoundPage.impl-BoX11u-P.js} +2 -2
  26. package/dist-lib/{PageHeader-tw4pX3lI.js → PageHeader-DiwLe7CO.js} +5 -5
  27. package/dist-lib/{PageShell-tI-mm0C5.js → PageShell-BJz1MiTH.js} +1 -1
  28. package/dist-lib/{Preferences.impl-BG9XBZDf.js → Preferences.impl-Ct5xwZtT.js} +8 -8
  29. package/dist-lib/{Profile.impl-CbzSzxyG.js → Profile.impl-Cypk27ah.js} +17 -17
  30. package/dist-lib/{PropertyGridEditor-BTjscqfz.js → PropertyGridEditor-XrP6TZ5s.js} +3 -3
  31. package/dist-lib/{RecordHeader-Bv9nJXnG.js → RecordHeader-BfQ0_4wq.js} +5 -5
  32. package/dist-lib/{RecordIdBadge-C3MgoZvt.js → RecordIdBadge-wbigZaFc.js} +1 -1
  33. package/dist-lib/{RefreshControl-Ce-T_wSQ.js → RefreshControl-CRdWPoF5.js} +4 -4
  34. package/dist-lib/{Reset.impl-Cesyqt5p.js → Reset.impl-D0pjhS6d.js} +4 -4
  35. package/dist-lib/{SSOCallbackPage.impl-BC_W9nQA.js → SSOCallbackPage.impl-Cfi2pQ59.js} +1 -1
  36. package/dist-lib/{SectionCard-VonaiLrx.js → SectionCard-BYHoHWJc.js} +2 -2
  37. package/dist-lib/SignUp.impl-CfEXrUeg.js +212 -0
  38. package/dist-lib/{SmartDetailPage.impl-8iOAMYQh.js → SmartDetailPage.impl-BiIX0n7K.js} +19 -19
  39. package/dist-lib/{SmartListPage.impl-Cc4Zwz5f.js → SmartListPage.impl-Cu83Gv_G.js} +18 -18
  40. package/dist-lib/{SmartRecordListPage.impl-xTSohkqG.js → SmartRecordListPage.impl-DR6lq7HA.js} +14 -14
  41. package/dist-lib/{SortHeaderMenu-BKTrq0Wb.js → SortHeaderMenu-Co5PvhTA.js} +1 -1
  42. package/dist-lib/{TenantParamsPage.impl-DMuSs3eP.js → TenantParamsPage.impl-BGpdmEZg.js} +5 -5
  43. package/dist-lib/{TwoFA.impl-BClZ3ndk.js → TwoFA.impl-B2HtPduH.js} +3 -3
  44. package/dist-lib/{cardProjection-Cr7fG6wJ.js → cardProjection-Cxlogzh8.js} +2 -2
  45. package/dist-lib/declarion-react.css +1 -1
  46. package/dist-lib/{format-count-CSEFw2ht.js → format-count-lyB4CPen.js} +7 -7
  47. package/dist-lib/index.js +873 -879
  48. package/dist-lib/{param-editors-9yJr7xmN.js → param-editors-TYYU7HKK.js} +3 -3
  49. package/dist-lib/{payload-B2wODLAX.js → payload-DioMoxMX.js} +2 -2
  50. package/dist-lib/{peekDraftStore-D4GRsRKW.js → peekDraftStore-CaimrOhW.js} +3 -3
  51. package/dist-lib/{registry-BpzE8-h8.js → registry-CGe5kCXN.js} +2 -2
  52. package/dist-lib/{screen-back-Cs4kzeqD.js → screen-back-BtbEp5sO.js} +1 -1
  53. package/dist-lib/testing.js +2 -2
  54. package/dist-lib/{use-filter-value-labels-DuqvAIVG.js → use-filter-value-labels-D3YDgUzg.js} +5 -5
  55. package/dist-lib/{useAgentConversation-D210VDCQ.js → useAgentConversation-rru-7hnF.js} +2 -2
  56. package/dist-lib/{useBranding-Ckp_AuJb.js → useBranding-zcxEic2k.js} +1 -1
  57. package/dist-lib/{useBrandingChrome-bKTXXDLy.js → useBrandingChrome-bxaR3G1R.js} +2 -2
  58. package/dist-lib/{useCurrentLocation-BdngVeQv.js → useCurrentLocation-Bq1T72AW.js} +1 -1
  59. package/dist-lib/{useCurrentScreen--UovgvRj.js → useCurrentScreen-BZOHBGQZ.js} +284 -273
  60. package/dist-lib/{useImpersonation-DNV23Ks1.js → useImpersonation-DBIRRR70.js} +2 -2
  61. package/dist-lib/{useObject-1OCeV34A.js → useObject-B45F96rC.js} +1 -1
  62. package/dist-lib/{useOwnRefresh-DkOuM4yo.js → useOwnRefresh-DJjaje52.js} +3 -3
  63. package/dist-lib/{useParams-ei6w4I7w.js → useParams-BFLJi4n3.js} +1 -1
  64. package/dist-lib/{useProperties-CbdhlhZd.js → useProperties-B7opZ-iy.js} +1 -1
  65. package/dist-lib/{useScreenBack-J861tbwn.js → useScreenBack-DENlz844.js} +3 -3
  66. package/dist-lib/{useTabNavigate-BZiW4q3M.js → useTabNavigate-CUqOmcMj.js} +3 -3
  67. package/dist-lib/{useTabTitle-CZZnWIQi.js → useTabTitle-KrzEo118.js} +1 -1
  68. package/dist-lib/{value-CDCeHgOv.js → value-BuQVYx52.js} +1 -1
  69. package/dist-lib/{variants-CbAwl3Mn.js → variants-vUtfBbE6.js} +5 -5
  70. package/package.json +1 -1
  71. package/dist-lib/SignUp.impl-C1KCQbfZ.js +0 -212
package/dist-lib/index.js CHANGED
@@ -1,47 +1,47 @@
1
- import { $t as e, A as t, At as n, B as r, Bn as i, Ct as a, Dt as o, Et as s, Fn as c, Ft as l, Gn as u, H as d, I as f, It as p, J as m, Jn as h, Kn as g, Mn as _, Nn as v, Nt as y, Pn as b, Pt as x, Q as S, Qn as C, Rt as ee, St as te, Tn as ne, Tt as re, U as w, Un as T, Ut as ie, V as E, Vn as ae, W as oe, Wn as se, X as D, Xt as O, Y as k, Yn as A, Yt as ce, a as le, an as ue, at as de, bt as fe, c as pe, cn as me, d as j, dn as he, en as ge, f as M, fn as _e, gn as ve, ht as ye, i as N, it as be, jt as xe, kn as Se, kt as Ce, l as we, m as Te, mn as Ee, n as De, o as Oe, on as ke, p as P, pn as Ae, pt as F, qn as je, qt as Me, s as Ne, st as Pe, t as Fe, tn as Ie, u as Le, ut as Re, wn as ze, wt as I, xn as Be, xt as Ve, zn as He, zt as Ue } from "./useCurrentScreen--UovgvRj.js";
2
- import { t as L } from "./Icons-lt-7lhYR.js";
3
- import { n as R, r as We } from "./CopyButton-C0iEvaT1.js";
4
- import { t as Ge } from "./Pill-D-wsfRhx.js";
5
- import { t as Ke } from "./Kbd-CNttVu0z.js";
6
- import { a as qe, c as Je, f as Ye, h as Xe, i as Ze, m as Qe, n as $e, o as et, p as tt, r as nt, s as rt, t as it, u as at } from "./format-count-CSEFw2ht.js";
7
- import { n as ot, t as z } from "./MenuItem-CfkVXPvC.js";
8
- import { $ as st, A as ct, B as lt, C as ut, G as dt, H as ft, I as pt, J as mt, K as ht, L as B, M as gt, Q as _t, R as vt, U as yt, V as bt, W as xt, X as St, Y as Ct, Z as wt, _ as Tt, a as Et, b as Dt, d as Ot, et as kt, g as At, h as jt, i as Mt, k as Nt, n as Pt, q as Ft, r as It, t as Lt, tt as Rt, v as zt, w as Bt, y as Vt, z as V } from "./PropertyGridEditor-BTjscqfz.js";
9
- import { a as Ht, i as Ut, o as Wt, r as Gt, s as Kt, t as qt } from "./useBrandingChrome-bKTXXDLy.js";
10
- import { t as Jt } from "./SectionCard-VonaiLrx.js";
11
- import { t as Yt } from "./RecordIdBadge-C3MgoZvt.js";
12
- import { t as Xt } from "./Check-DAfMbQIw.js";
13
- import { a as Zt, i as Qt, n as $t, r as en, t as tn } from "./registry-BpzE8-h8.js";
14
- import { a as nn, r as rn, t as an } from "./DynamicIcon-DuBSz6TZ.js";
15
- import { o as on, r as sn, t as cn } from "./useBranding-Ckp_AuJb.js";
16
- import { n as ln, t as un } from "./AuthShell-DdiughRT.js";
17
- import { a as dn, i as fn, o as pn, r as mn } from "./useParams-ei6w4I7w.js";
18
- import { n as hn, t as gn } from "./useScreenBack-J861tbwn.js";
19
- import { n as _n } from "./utils-D_QDpB8_.js";
20
- import { n as vn } from "./useTabNavigate-BZiW4q3M.js";
21
- import { t as yn } from "./page-state-eA6J_KIR.js";
22
- import { t as bn } from "./useAuth-CR2YKKXb.js";
23
- import { t as xn } from "./useImpersonation-DNV23Ks1.js";
24
- import { t as Sn } from "./page-inset-D_kkVwwN.js";
25
- import { t as Cn } from "./useTabTitle-CZZnWIQi.js";
26
- import { C as wn, S as Tn, a as En, b as Dn, c as On, i as kn, l as An, n as jn, o as Mn, s as Nn, t as Pn, u as Fn, v as In, w as Ln, x as Rn, y as zn } from "./ActionRunner-DAxgnKB3.js";
27
- import { _ as Bn, a as Vn, c as Hn, d as Un, f as Wn, h as Gn, l as Kn, o as qn, p as Jn, u as Yn, y as Xn } from "./useOwnRefresh-DkOuM4yo.js";
28
- import { n as Zn } from "./useCurrentLocation-BdngVeQv.js";
29
- import { n as Qn, t as $n } from "./useObject-1OCeV34A.js";
30
- import { C as er, S as tr, _ as nr, a as rr, b as ir, i as ar, l as or, n as sr, o as cr, r as lr, s as ur, t as dr, v as fr, w as pr, x as mr, y as hr } from "./variants-CbAwl3Mn.js";
31
- import { n as gr, r as _r, t as vr } from "./useProperties-CbdhlhZd.js";
32
- import { _ as yr, a as br, c as xr, h as Sr, i as Cr, l as wr, m as Tr, n as Er, p as Dr, s as Or, t as kr, u as Ar } from "./FilterChips-8fMDBXHp.js";
33
- import { a as jr, i as Mr, n as Nr, r as Pr, t as Fr } from "./RefreshControl-Ce-T_wSQ.js";
34
- import { t as Ir } from "./PageHeader-tw4pX3lI.js";
35
- import { t as Lr } from "./ChangePasswordDialog-DFe7lVQg.js";
36
- import { a as Rr, c as zr, d as Br, f as Vr, g as Hr, h as Ur, i as Wr, l as Gr, m as Kr, n as qr, o as Jr, p as Yr, r as Xr, s as Zr, t as Qr, u as $r } from "./useAgentConversation-D210VDCQ.js";
37
- import { Fragment as ei, Suspense as H, lazy as U, useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as J } from "react";
38
- import { QueryClient as ti, QueryClientProvider as ni, useQuery as ri, useQueryClient as ii } from "@tanstack/react-query";
39
- import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
40
- import { BrowserRouter as ai, Link as oi, Navigate as si, Outlet as ci, Route as Q, Routes as li, useLocation as ui, useLocation as di, useNavigate as fi, useNavigate as pi, useNavigationType as mi, useParams as hi, useSearchParams as gi, useSearchParams as _i } from "react-router";
41
- import { Toaster as vi } from "sonner";
1
+ import { $t as e, A as t, At as n, B as r, Bn as i, Ct as a, Dt as o, Et as s, Fn as c, Ft as l, Gn as u, H as d, I as f, It as p, J as m, Jn as h, Kn as g, Mn as _, Nn as v, Nt as y, Pn as b, Pt as x, Q as S, Qn as C, Rt as ee, St as te, Tn as ne, Tt as re, U as w, Un as T, Ut as ie, V as E, Vn as ae, W as oe, Wn as se, X as D, Xt as O, Y as k, Yn as ce, Yt as le, a as ue, an as de, at as fe, bt as pe, c as me, cn as he, d as A, dn as ge, en as _e, f as j, fn as ve, gn as ye, ht as be, i as M, it as xe, jt as Se, kn as Ce, kt as we, l as Te, m as Ee, mn as De, n as Oe, o as ke, on as Ae, p as N, pn as je, pt as P, qn as Me, qt as Ne, s as Pe, st as Fe, t as Ie, tn as Le, u as Re, ut as ze, wn as Be, wt as F, xn as Ve, xt as He, zn as Ue, zt as We } from "./useCurrentScreen-BZOHBGQZ.js";
2
+ import { t as I } from "./Icons-lt-7lhYR.js";
3
+ import { n as L, r as Ge } from "./CopyButton-DRIT_f0k.js";
4
+ import { t as Ke } from "./Pill-D-wsfRhx.js";
5
+ import { t as qe } from "./Kbd-CNttVu0z.js";
6
+ import { a as Je, c as Ye, f as Xe, h as Ze, i as Qe, m as $e, n as et, o as tt, p as nt, r as rt, s as it, t as at, u as ot } from "./format-count-lyB4CPen.js";
7
+ import { n as st, t as R } from "./MenuItem-CfkVXPvC.js";
8
+ import { $ as ct, A as lt, B as ut, C as dt, G as ft, H as pt, I as mt, J as ht, K as gt, L as z, M as _t, Q as vt, R as yt, U as bt, V as xt, W as St, X as Ct, Y as wt, Z as Tt, _ as Et, a as Dt, b as Ot, d as kt, et as At, g as jt, h as Mt, i as Nt, k as Pt, n as Ft, q as It, r as Lt, t as Rt, tt as zt, v as Bt, w as Vt, y as Ht, z as B } from "./PropertyGridEditor-XrP6TZ5s.js";
9
+ import { a as Ut, i as Wt, o as Gt, r as Kt, s as qt, t as Jt } from "./useBrandingChrome-bxaR3G1R.js";
10
+ import { t as Yt } from "./SectionCard-BYHoHWJc.js";
11
+ import { t as Xt } from "./RecordIdBadge-wbigZaFc.js";
12
+ import { t as Zt } from "./Check-DAfMbQIw.js";
13
+ import { a as Qt, i as $t, n as en, r as tn, t as nn } from "./registry-CGe5kCXN.js";
14
+ import { a as rn, r as an, t as on } from "./DynamicIcon-DuBSz6TZ.js";
15
+ import { o as sn, r as cn, t as ln } from "./useBranding-zcxEic2k.js";
16
+ import { n as un, t as dn } from "./AuthShell-C8aVwHS7.js";
17
+ import { a as fn, i as pn, o as mn, r as hn } from "./useParams-BFLJi4n3.js";
18
+ import { n as gn, t as _n } from "./useScreenBack-DENlz844.js";
19
+ import { n as vn } from "./utils-D_QDpB8_.js";
20
+ import { n as yn } from "./useTabNavigate-CUqOmcMj.js";
21
+ import { t as bn } from "./page-state-eA6J_KIR.js";
22
+ import { n as xn, t as Sn } from "./BlankScreen-DVc7fh8C.js";
23
+ import { t as Cn } from "./useImpersonation-DBIRRR70.js";
24
+ import { t as wn } from "./page-inset-D_kkVwwN.js";
25
+ import { t as Tn } from "./useTabTitle-KrzEo118.js";
26
+ import { C as En, S as Dn, a as On, b as kn, c as An, i as jn, l as Mn, n as Nn, o as Pn, s as Fn, t as In, u as Ln, v as Rn, w as zn, x as Bn, y as Vn } from "./ActionRunner-DdBFhqGe.js";
27
+ import { _ as Hn, a as Un, c as Wn, d as Gn, f as Kn, h as qn, l as Jn, o as Yn, p as Xn, u as Zn, y as Qn } from "./useOwnRefresh-DJjaje52.js";
28
+ import { n as $n } from "./useCurrentLocation-Bq1T72AW.js";
29
+ import { n as er, t as tr } from "./useObject-B45F96rC.js";
30
+ import { C as nr, S as rr, _ as ir, a as ar, b as or, i as sr, l as cr, n as lr, o as ur, r as dr, s as fr, t as pr, v as mr, w as hr, x as gr, y as _r } from "./variants-vUtfBbE6.js";
31
+ import { n as vr, r as yr, t as br } from "./useProperties-B7opZ-iy.js";
32
+ import { _ as xr, a as Sr, c as Cr, h as wr, i as Tr, l as Er, m as Dr, n as Or, p as kr, s as Ar, t as jr, u as Mr } from "./FilterChips-Cv1tlXyo.js";
33
+ import { a as Nr, i as Pr, n as Fr, r as Ir, t as Lr } from "./RefreshControl-CRdWPoF5.js";
34
+ import { t as Rr } from "./PageHeader-DiwLe7CO.js";
35
+ import { t as zr } from "./ChangePasswordDialog-C_T_3pjl.js";
36
+ import { a as Br, c as Vr, d as Hr, f as Ur, g as Wr, h as Gr, i as Kr, l as qr, m as Jr, n as Yr, o as Xr, p as Zr, r as Qr, s as $r, t as ei, u as ti } from "./useAgentConversation-rru-7hnF.js";
37
+ import { Fragment as ni, Suspense as V, lazy as H, useCallback as U, useEffect as W, useMemo as G, useRef as K, useState as q } from "react";
38
+ import { QueryClient as ri, QueryClientProvider as ii, useQuery as ai, useQueryClient as oi } from "@tanstack/react-query";
39
+ import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
40
+ import { BrowserRouter as si, Link as ci, Navigate as li, Outlet as ui, Route as Z, Routes as di, useLocation as fi, useLocation as Q, useNavigate as pi, useNavigate as mi, useNavigationType as hi, useParams as gi, useSearchParams as _i, useSearchParams as vi } from "react-router";
41
+ import { Toaster as yi } from "sonner";
42
42
  //#region src/components/primitives/BrandGlyph.tsx
43
- function yi({ size: e = 24, className: t, title: n }) {
44
- return /* @__PURE__ */ Z("svg", {
43
+ function bi({ size: e = 24, className: t, title: n }) {
44
+ return /* @__PURE__ */ X("svg", {
45
45
  width: e,
46
46
  height: e,
47
47
  viewBox: "0 0 64 64",
@@ -52,19 +52,19 @@ function yi({ size: e = 24, className: t, title: n }) {
52
52
  "aria-label": n,
53
53
  "aria-hidden": !n || void 0,
54
54
  children: [
55
- /* @__PURE__ */ X("path", {
55
+ /* @__PURE__ */ Y("path", {
56
56
  fillRule: "evenodd",
57
57
  fill: "currentColor",
58
58
  d: "M 6 6 H 42 L 58 22 V 42 L 42 58 H 6 Z M 18 18 V 46 H 38 L 46 38 V 26 L 38 18 Z"
59
59
  }),
60
- /* @__PURE__ */ X("rect", {
60
+ /* @__PURE__ */ Y("rect", {
61
61
  x: "22",
62
62
  y: "28",
63
63
  width: "20",
64
64
  height: "3",
65
65
  fill: "currentColor"
66
66
  }),
67
- /* @__PURE__ */ X("rect", {
67
+ /* @__PURE__ */ Y("rect", {
68
68
  x: "22",
69
69
  y: "33",
70
70
  width: "20",
@@ -76,10 +76,10 @@ function yi({ size: e = 24, className: t, title: n }) {
76
76
  }
77
77
  //#endregion
78
78
  //#region src/components/primitives/RowField.tsx
79
- var bi = 380;
80
- function xi({ label: e, children: t, wide: n, editing: r, required: i }) {
81
- let a = Ve(), o = n || a.width < bi, s = o ? "auto" : a.isPhone ? 104 : 140;
82
- return /* @__PURE__ */ Z("div", {
79
+ var xi = 380;
80
+ function Si({ label: e, children: t, wide: n, editing: r, required: i }) {
81
+ let a = He(), o = n || a.width < xi, s = o ? "auto" : a.isPhone ? 104 : 140;
82
+ return /* @__PURE__ */ X("div", {
83
83
  style: {
84
84
  display: "flex",
85
85
  flexDirection: o ? "column" : "row",
@@ -88,7 +88,7 @@ function xi({ label: e, children: t, wide: n, editing: r, required: i }) {
88
88
  gridColumn: n ? "1 / -1" : "auto",
89
89
  alignItems: o ? "stretch" : "center"
90
90
  },
91
- children: [/* @__PURE__ */ Z("div", {
91
+ children: [/* @__PURE__ */ X("div", {
92
92
  style: {
93
93
  width: s,
94
94
  flexShrink: 0,
@@ -101,11 +101,11 @@ function xi({ label: e, children: t, wide: n, editing: r, required: i }) {
101
101
  gap: 4,
102
102
  minHeight: r ? 30 : 24
103
103
  },
104
- children: [/* @__PURE__ */ X("span", { children: e }), i && /* @__PURE__ */ X("span", {
104
+ children: [/* @__PURE__ */ Y("span", { children: e }), i && /* @__PURE__ */ Y("span", {
105
105
  style: { color: "var(--danger)" },
106
106
  children: "*"
107
107
  })]
108
- }), /* @__PURE__ */ X("div", {
108
+ }), /* @__PURE__ */ Y("div", {
109
109
  style: {
110
110
  flex: 1,
111
111
  fontSize: 12.5,
@@ -120,17 +120,17 @@ function xi({ label: e, children: t, wide: n, editing: r, required: i }) {
120
120
  }
121
121
  //#endregion
122
122
  //#region src/components/layout/Rail.tsx
123
- var Si = 32;
124
- function Ci(e, t) {
123
+ var Ci = 32;
124
+ function wi(e, t) {
125
125
  return !t || t.length === 0 ? [] : t.map((t) => ({
126
126
  id: t.code,
127
127
  icon: t.icon || void 0,
128
128
  label: e(t.name) || t.code
129
129
  }));
130
130
  }
131
- function wi({ activeArea: e, onPick: t, onToggleAI: n, aiOpen: r, onCmdK: i, areas: a, branding: o }) {
132
- let s = I(), c = Ci(s, a), l = o?.app_name ?? "", u = on(o?.app_logo) ? o?.app_logo : void 0;
133
- return /* @__PURE__ */ Z("div", {
131
+ function Ti({ activeArea: e, onPick: t, onToggleAI: n, aiOpen: r, onCmdK: i, areas: a, branding: o }) {
132
+ let s = F(), c = wi(s, a), l = o?.app_name ?? "", u = sn(o?.app_logo) ? o?.app_logo : void 0;
133
+ return /* @__PURE__ */ X("div", {
134
134
  style: {
135
135
  gridArea: "rail",
136
136
  background: "var(--rail)",
@@ -142,10 +142,10 @@ function wi({ activeArea: e, onPick: t, onToggleAI: n, aiOpen: r, onCmdK: i, are
142
142
  gap: 2
143
143
  },
144
144
  children: [
145
- /* @__PURE__ */ X("div", {
145
+ /* @__PURE__ */ Y("div", {
146
146
  style: {
147
- width: Si,
148
- height: Si,
147
+ width: Ci,
148
+ height: Ci,
149
149
  borderRadius: 8,
150
150
  background: u ? "transparent" : "linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%)",
151
151
  display: "flex",
@@ -156,16 +156,16 @@ function wi({ activeArea: e, onPick: t, onToggleAI: n, aiOpen: r, onCmdK: i, are
156
156
  overflow: "hidden"
157
157
  },
158
158
  title: l ? s("shell.rail.home_named", "{brand} — home", { brand: l }) : s("shell.rail.home", "home"),
159
- children: u ? /* @__PURE__ */ X("img", {
159
+ children: u ? /* @__PURE__ */ Y("img", {
160
160
  src: u,
161
161
  alt: l,
162
- width: Si,
163
- height: Si,
162
+ width: Ci,
163
+ height: Ci,
164
164
  style: {
165
165
  display: "block",
166
166
  objectFit: "contain"
167
167
  }
168
- }) : l ? /* @__PURE__ */ X("span", {
168
+ }) : l ? /* @__PURE__ */ Y("span", {
169
169
  style: {
170
170
  fontSize: 11,
171
171
  fontWeight: 700,
@@ -174,34 +174,34 @@ function wi({ activeArea: e, onPick: t, onToggleAI: n, aiOpen: r, onCmdK: i, are
174
174
  children: l.charAt(0).toUpperCase()
175
175
  }) : null
176
176
  }),
177
- c.map((n) => /* @__PURE__ */ X(Ti, {
177
+ c.map((n) => /* @__PURE__ */ Y(Ei, {
178
178
  item: n,
179
179
  active: e === n.id,
180
180
  onPick: t
181
181
  }, n.id)),
182
- /* @__PURE__ */ X("div", { style: { flex: 1 } }),
183
- /* @__PURE__ */ X("button", {
182
+ /* @__PURE__ */ Y("div", { style: { flex: 1 } }),
183
+ /* @__PURE__ */ Y("button", {
184
184
  onClick: i,
185
185
  title: s("shell.palette.open", "Command Palette (⌘K)"),
186
- style: Ei(!1),
187
- children: L.command && /* @__PURE__ */ X(L.command, { size: 16 })
186
+ style: Di(!1),
187
+ children: I.command && /* @__PURE__ */ Y(I.command, { size: 16 })
188
188
  }),
189
- /* @__PURE__ */ X("button", {
189
+ /* @__PURE__ */ Y("button", {
190
190
  onClick: n,
191
191
  title: s("shell.ai_assistant", "AI Assistant"),
192
192
  style: {
193
- ...Ei(!1),
193
+ ...Di(!1),
194
194
  background: r ? "var(--accent)" : "transparent",
195
195
  color: r ? "var(--rail-fg)" : "var(--rail-muted)"
196
196
  },
197
- children: L.sparkle && /* @__PURE__ */ X(L.sparkle, { size: 16 })
197
+ children: I.sparkle && /* @__PURE__ */ Y(I.sparkle, { size: 16 })
198
198
  })
199
199
  ]
200
200
  });
201
201
  }
202
- function Ti({ item: e, active: t, onPick: n }) {
203
- let [r, i] = J(!1), a = q(null), o = Kt(a, e.label), s = t ? "var(--rail-active)" : r ? "var(--rail-hover)" : "transparent", c = t || r ? "var(--rail-fg)" : "var(--rail-muted)";
204
- return /* @__PURE__ */ Z("button", {
202
+ function Ei({ item: e, active: t, onPick: n }) {
203
+ let [r, i] = q(!1), a = K(null), o = qt(a, e.label), s = t ? "var(--rail-active)" : r ? "var(--rail-hover)" : "transparent", c = t || r ? "var(--rail-fg)" : "var(--rail-muted)";
204
+ return /* @__PURE__ */ X("button", {
205
205
  ref: a,
206
206
  onClick: () => n(e.id),
207
207
  "aria-label": e.label,
@@ -228,11 +228,11 @@ function Ti({ item: e, active: t, onPick: n }) {
228
228
  position: "relative"
229
229
  },
230
230
  children: [
231
- e.icon ? /* @__PURE__ */ X(an, {
231
+ e.icon ? /* @__PURE__ */ Y(on, {
232
232
  name: e.icon,
233
233
  size: 16
234
234
  }) : null,
235
- t && /* @__PURE__ */ X("span", { style: {
235
+ t && /* @__PURE__ */ Y("span", { style: {
236
236
  position: "absolute",
237
237
  left: -1,
238
238
  top: 8,
@@ -245,7 +245,7 @@ function Ti({ item: e, active: t, onPick: n }) {
245
245
  ]
246
246
  });
247
247
  }
248
- function Ei(e) {
248
+ function Di(e) {
249
249
  return {
250
250
  width: 36,
251
251
  height: 36,
@@ -261,16 +261,16 @@ function Ei(e) {
261
261
  }
262
262
  //#endregion
263
263
  //#region src/embed/theme.ts
264
- function Di(e) {
264
+ function Oi(e) {
265
265
  let t = {
266
- ...V.getState(),
266
+ ...B.getState(),
267
267
  colorScheme: e
268
268
  };
269
- vt(t), V.setState({ colorScheme: e });
269
+ yt(t), B.setState({ colorScheme: e });
270
270
  }
271
271
  //#endregion
272
272
  //#region src/embed/handshake.ts
273
- function Oi(e, t) {
273
+ function ki(e, t) {
274
274
  if (e.origin !== t) return { kind: "rejected" };
275
275
  let n = e.data;
276
276
  if (typeof n != "object" || !n) return { kind: "rejected" };
@@ -283,9 +283,9 @@ function Oi(e, t) {
283
283
  received: r.protocol
284
284
  };
285
285
  }
286
- function ki(e, t) {
286
+ function Ai(e, t) {
287
287
  return (n) => {
288
- let r = Oi(n, e);
288
+ let r = ki(n, e);
289
289
  if (r.kind === "rejected") return;
290
290
  if (r.kind === "protocol-mismatch") {
291
291
  console.warn(`[declarion-embed] protocol version mismatch: this iframe speaks protocol 1, the host sent protocol ${String(r.received)}. Update the host @declarion/embed SDK and the Declarion deployment to matching versions.`);
@@ -305,42 +305,42 @@ function ki(e, t) {
305
305
  }
306
306
  //#endregion
307
307
  //#region src/embed/EmbedAuthBootstrap.tsx
308
- var Ai = 2e4;
309
- function ji() {
310
- let e = O(), t = pi(), n = di(), r = p((e) => e.setUser), [i, a] = J("pending"), o = q(!1), s = q(n.pathname);
311
- return s.current = n.pathname, G(() => {
308
+ var ji = 2e4;
309
+ function Mi() {
310
+ let e = O(), t = mi(), n = Q(), r = p((e) => e.setUser), [i, a] = q("pending"), o = K(!1), s = K(n.pathname);
311
+ return s.current = n.pathname, W(() => {
312
312
  if (!e.enabled) return;
313
- He(e.parentOrigin), hn.getState().reset();
313
+ Ue(e.parentOrigin), gn.getState().reset();
314
314
  let n = _(() => {
315
315
  se(e.parentOrigin, T.reloadRequired, { reason: "embed session terminated" });
316
316
  }), i = async () => {
317
317
  if (!o.current) {
318
318
  o.current = !0;
319
319
  try {
320
- let e = await Ue();
320
+ let e = await We();
321
321
  r(e, e.tenant ?? void 0), a("authenticated");
322
322
  } catch {
323
323
  a("error");
324
324
  }
325
325
  }
326
- }, c = e.parentOrigin ? ki(e.parentOrigin, {
326
+ }, c = e.parentOrigin ? Ai(e.parentOrigin, {
327
327
  onAuth: (e) => {
328
328
  ae(e), o.current || i();
329
329
  },
330
330
  onNavigate: (n) => {
331
331
  let r = () => {
332
- hn.getState().markRoot(), t(e.appendEmbedParams(n.route));
332
+ gn.getState().markRoot(), t(e.appendEmbedParams(n.route));
333
333
  }, i = n.route.split(/[?#]/)[0];
334
334
  D.getState().isDirty && i !== s.current ? k.getState().requestNavigation(r) : r();
335
335
  },
336
336
  onTheme: (e) => {
337
- Di(e.theme);
337
+ Oi(e.theme);
338
338
  }
339
339
  }) : null;
340
340
  c && window.addEventListener("message", c), se(e.parentOrigin, T.ready, {});
341
341
  let l = window.setTimeout(() => {
342
342
  o.current || a("error");
343
- }, Ai);
343
+ }, ji);
344
344
  return () => {
345
345
  c && window.removeEventListener("message", c), window.clearTimeout(l), _(n);
346
346
  };
@@ -348,24 +348,24 @@ function ji() {
348
348
  e,
349
349
  t,
350
350
  r
351
- ]), !e.enabled || i !== "error" ? null : /* @__PURE__ */ X(Mi, {});
351
+ ]), !e.enabled || i !== "error" ? null : /* @__PURE__ */ Y(Ni, {});
352
352
  }
353
- function Mi() {
354
- let e = I("errors");
355
- return /* @__PURE__ */ X("div", {
353
+ function Ni() {
354
+ let e = F("errors");
355
+ return /* @__PURE__ */ Y("div", {
356
356
  role: "alert",
357
357
  className: "fixed inset-0 z-50 flex items-center justify-center bg-background p-6 text-center text-sm text-muted-foreground",
358
- children: /* @__PURE__ */ X("p", { children: e("embed.handshake_incomplete", "This embedded view could not authenticate. The host application did not provide a session.") })
358
+ children: /* @__PURE__ */ Y("p", { children: e("embed.handshake_incomplete", "This embedded view could not authenticate. The host application did not provide a session.") })
359
359
  });
360
360
  }
361
361
  //#endregion
362
362
  //#region src/embed/EmbedResizeReporter.tsx
363
- var Ni = "app-embed";
364
- function Pi() {
363
+ var Pi = "app-embed";
364
+ function Fi() {
365
365
  let e = O(), t = e.enabled && e.parentOrigin !== null;
366
- return G(() => {
366
+ return W(() => {
367
367
  if (!t || typeof window > "u" || typeof ResizeObserver > "u") return;
368
- let n = document.getElementById(Ni);
368
+ let n = document.getElementById(Pi);
369
369
  if (!n) return;
370
370
  let r = null, i = -1, a = () => {
371
371
  r = null;
@@ -381,9 +381,9 @@ function Pi() {
381
381
  }
382
382
  //#endregion
383
383
  //#region src/embed/EmbedDirtyReporter.tsx
384
- function Fi() {
384
+ function Ii() {
385
385
  let e = O(), t = D((e) => e.isDirty), n = e.enabled && e.parentOrigin !== null;
386
- return G(() => {
386
+ return W(() => {
387
387
  n && se(e.parentOrigin, T.dirtyChanged, { dirty: t });
388
388
  }, [
389
389
  n,
@@ -393,31 +393,31 @@ function Fi() {
393
393
  }
394
394
  //#endregion
395
395
  //#region src/embed/EmbedHistoryTracker.tsx
396
- function Ii() {
397
- let e = O(), t = mi(), n = di(), r = e.enabled && e.navigationMode === "self", i = q(null);
398
- return G(() => {
399
- r && i.current !== n.key && (i.current = n.key, hn.getState().applyNavigation(t));
396
+ function Li() {
397
+ let e = O(), t = hi(), n = Q(), r = e.enabled && e.navigationMode === "self", i = K(null);
398
+ return W(() => {
399
+ r && i.current !== n.key && (i.current = n.key, gn.getState().applyNavigation(t));
400
400
  }, [
401
401
  r,
402
402
  n.key,
403
403
  t
404
404
  ]), null;
405
405
  }
406
- function Li(e) {
406
+ function Ri(e) {
407
407
  return e instanceof HTMLAnchorElement || typeof SVGAElement < "u" && e instanceof SVGAElement;
408
408
  }
409
- function Ri(e) {
410
- for (let t of e.composedPath()) if (Li(t)) return t;
409
+ function zi(e) {
410
+ for (let t of e.composedPath()) if (Ri(t)) return t;
411
411
  return null;
412
412
  }
413
- function zi(e) {
413
+ function Bi(e) {
414
414
  return e instanceof HTMLAnchorElement ? e.getAttribute("href") : e.href?.baseVal ?? e.getAttribute("href") ?? e.getAttribute("xlink:href");
415
415
  }
416
- function Bi(e, t = window.location) {
417
- if (e.defaultPrevented || _n(e)) return null;
418
- let n = Ri(e);
416
+ function Vi(e, t = window.location) {
417
+ if (e.defaultPrevented || vn(e)) return null;
418
+ let n = zi(e);
419
419
  if (!n || n.hasAttribute("data-declarion-native-link")) return null;
420
- let r = zi(n);
420
+ let r = Bi(n);
421
421
  if (!r) return null;
422
422
  let i = (n.getAttribute("target") ?? "").trim();
423
423
  if (i && i !== "_self" || n.hasAttribute("download")) return null;
@@ -431,7 +431,7 @@ function Bi(e, t = window.location) {
431
431
  }
432
432
  return o.protocol !== "http:" && o.protocol !== "https:" || o.origin !== t.origin || o.pathname === t.pathname && o.search === t.search && o.hash !== "" ? null : o.pathname + o.search + o.hash;
433
433
  }
434
- function Vi(e, t = window.location) {
434
+ function Hi(e, t = window.location) {
435
435
  if (e.destination.sameDocument || !e.canIntercept || e.hashChange || e.downloadRequest != null || e.formData != null) return null;
436
436
  let n;
437
437
  try {
@@ -441,16 +441,16 @@ function Vi(e, t = window.location) {
441
441
  }
442
442
  return n.protocol !== "http:" && n.protocol !== "https:" || n.origin !== t.origin ? null : n.pathname + n.search + n.hash;
443
443
  }
444
- function Hi() {
445
- let e = vn(), t = O().enabled, n = q(e);
446
- n.current = e, G(() => {
444
+ function Ui() {
445
+ let e = yn(), t = O().enabled, n = K(e);
446
+ n.current = e, W(() => {
447
447
  let e = (e) => {
448
- let t = Bi(e);
448
+ let t = Vi(e);
449
449
  t != null && (e.preventDefault(), n.current(t));
450
450
  };
451
451
  document.addEventListener("click", e, { capture: !0 });
452
452
  let r = window.navigation, i = (e) => {
453
- let t = Vi(e);
453
+ let t = Hi(e);
454
454
  t != null && e.cancelable && (e.preventDefault(), n.current(t));
455
455
  };
456
456
  return t && r?.addEventListener("navigate", i), () => {
@@ -460,9 +460,9 @@ function Hi() {
460
460
  }
461
461
  //#endregion
462
462
  //#region src/embed/EmbedLocationReporter.tsx
463
- function Ui() {
464
- let e = O(), t = di(), { data: n } = l(), r = q(null), i = e.enabled && e.navigationMode === "self";
465
- return G(() => {
463
+ function Wi() {
464
+ let e = O(), t = Q(), { data: n } = l(), r = K(null), i = e.enabled && e.navigationMode === "self";
465
+ return W(() => {
466
466
  if (!i) return;
467
467
  let a = `${t.pathname}${t.search}`;
468
468
  if (r.current === a) return;
@@ -479,9 +479,9 @@ function Ui() {
479
479
  }
480
480
  //#endregion
481
481
  //#region src/embed/EmbedUnsavedGuard.tsx
482
- function Wi() {
483
- let e = I(), t = k((e) => e.pendingNavigation), n = k((e) => e.confirmNavigation), r = k((e) => e.cancelNavigation);
484
- return t === null ? null : /* @__PURE__ */ X(Qe, {
482
+ function Gi() {
483
+ let e = F(), t = k((e) => e.pendingNavigation), n = k((e) => e.confirmNavigation), r = k((e) => e.cancelNavigation);
484
+ return t === null ? null : /* @__PURE__ */ Y($e, {
485
485
  open: !0,
486
486
  onOpenChange: (e) => {
487
487
  e || r();
@@ -497,8 +497,8 @@ function Wi() {
497
497
  }
498
498
  //#endregion
499
499
  //#region src/components/layout/Sidebar.tsx
500
- function Gi({ activeArea: e }) {
501
- let t = I(), { data: n } = l(), r = di(), i = vn(), a = V((e) => e.sidebar), o = V((e) => e.set), s = a === "collapsed", [c, u] = J({}), d = sn(), f = d?.app_name ?? "", p = d?.app_logo, m = d?.version_label ?? "", h = K(() => Ki(t, n?.navigation ?? [], e), [
500
+ function Ki({ activeArea: e }) {
501
+ let t = F(), { data: n } = l(), r = Q(), i = yn(), a = B((e) => e.sidebar), o = B((e) => e.set), s = a === "collapsed", [c, u] = q({}), d = cn(), f = d?.app_name ?? "", p = d?.app_logo, m = d?.version_label ?? "", h = G(() => qi(t, n?.navigation ?? [], e), [
502
502
  t,
503
503
  n?.navigation,
504
504
  e
@@ -511,7 +511,7 @@ function Gi({ activeArea: e }) {
511
511
  topLevel: !0
512
512
  });
513
513
  };
514
- return /* @__PURE__ */ Z("aside", {
514
+ return /* @__PURE__ */ X("aside", {
515
515
  style: {
516
516
  gridArea: "sidebar",
517
517
  background: "var(--sidebar)",
@@ -521,7 +521,7 @@ function Gi({ activeArea: e }) {
521
521
  overflow: "hidden"
522
522
  },
523
523
  children: [
524
- /* @__PURE__ */ X("div", {
524
+ /* @__PURE__ */ Y("div", {
525
525
  style: {
526
526
  height: 44,
527
527
  display: "flex",
@@ -531,22 +531,22 @@ function Gi({ activeArea: e }) {
531
531
  borderBottom: "1px solid var(--divider)",
532
532
  gap: 8
533
533
  },
534
- children: s ? p ? /* @__PURE__ */ X(ln, {
534
+ children: s ? p ? /* @__PURE__ */ Y(un, {
535
535
  appLogo: p,
536
536
  size: 18
537
- }) : f ? /* @__PURE__ */ X("span", {
537
+ }) : f ? /* @__PURE__ */ Y("span", {
538
538
  style: {
539
539
  fontSize: 11,
540
540
  fontWeight: 700,
541
541
  color: "var(--accent)"
542
542
  },
543
543
  children: f.charAt(0)
544
- }) : null : /* @__PURE__ */ Z(Y, { children: [
545
- /* @__PURE__ */ X(ln, {
544
+ }) : null : /* @__PURE__ */ X(J, { children: [
545
+ /* @__PURE__ */ Y(un, {
546
546
  appLogo: p,
547
547
  size: 20
548
548
  }),
549
- /* @__PURE__ */ X("div", {
549
+ /* @__PURE__ */ Y("div", {
550
550
  style: {
551
551
  fontSize: 13,
552
552
  fontWeight: 600,
@@ -555,7 +555,7 @@ function Gi({ activeArea: e }) {
555
555
  },
556
556
  children: f
557
557
  }),
558
- m && /* @__PURE__ */ X("span", {
558
+ m && /* @__PURE__ */ Y("span", {
559
559
  style: {
560
560
  padding: "1px 6px",
561
561
  background: "var(--accent-soft)",
@@ -570,15 +570,15 @@ function Gi({ activeArea: e }) {
570
570
  })
571
571
  ] })
572
572
  }),
573
- /* @__PURE__ */ X("nav", {
573
+ /* @__PURE__ */ Y("nav", {
574
574
  style: {
575
575
  flex: 1,
576
576
  overflowY: "auto",
577
577
  padding: s ? "8px 4px" : "8px 6px"
578
578
  },
579
- children: h.map((e, r) => /* @__PURE__ */ Z("div", {
579
+ children: h.map((e, r) => /* @__PURE__ */ X("div", {
580
580
  style: { marginBottom: 12 },
581
- children: [!s && e.title && /* @__PURE__ */ X("div", {
581
+ children: [!s && e.title && /* @__PURE__ */ Y("div", {
582
582
  style: {
583
583
  fontSize: 9.5,
584
584
  fontWeight: 700,
@@ -590,7 +590,7 @@ function Gi({ activeArea: e }) {
590
590
  children: e.title
591
591
  }), e.items.map((e, a) => {
592
592
  let o = `${r}-${a}-${e.screen || t(e.name)}`, l = e.screen ? n?.screens[e.screen] : void 0, d = g(l?.route), f = !!(e.children && e.children.length > 0), p = !!c[o];
593
- return /* @__PURE__ */ X(Ji, {
593
+ return /* @__PURE__ */ Y(Yi, {
594
594
  item: e,
595
595
  href: l?.route,
596
596
  collapsed: s,
@@ -615,7 +615,7 @@ function Gi({ activeArea: e }) {
615
615
  })]
616
616
  }, r))
617
617
  }),
618
- /* @__PURE__ */ Z("div", {
618
+ /* @__PURE__ */ X("div", {
619
619
  style: {
620
620
  padding: "6px 8px",
621
621
  borderTop: "1px solid var(--divider)",
@@ -624,7 +624,7 @@ function Gi({ activeArea: e }) {
624
624
  gap: 6,
625
625
  justifyContent: s ? "center" : "space-between"
626
626
  },
627
- children: [/* @__PURE__ */ X("button", {
627
+ children: [/* @__PURE__ */ Y("button", {
628
628
  onClick: () => o("sidebar", s ? "wide" : "collapsed"),
629
629
  title: s ? t("shell.sidebar.expand", "Expand sidebar (⌘B)") : t("shell.sidebar.collapse", "Collapse sidebar (⌘B)"),
630
630
  style: {
@@ -639,22 +639,22 @@ function Gi({ activeArea: e }) {
639
639
  color: "var(--text-3)",
640
640
  cursor: "pointer"
641
641
  },
642
- children: X(s ? L.right : L.left, { size: 14 })
643
- }), !s && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
642
+ children: Y(s ? I.right : I.left, { size: 14 })
643
+ }), !s && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("span", {
644
644
  style: {
645
645
  flex: 1,
646
646
  fontSize: 11,
647
647
  color: "var(--text-3)"
648
648
  },
649
649
  children: t("shell.sidebar.footer", "Docs · API · Help")
650
- }), /* @__PURE__ */ X(Ke, { children: "?" })] })]
650
+ }), /* @__PURE__ */ Y(qe, { children: "?" })] })]
651
651
  })
652
652
  ]
653
653
  });
654
654
  }
655
- function Ki(e, t, n) {
655
+ function qi(e, t, n) {
656
656
  let r = [];
657
- for (let i of t) if (qi(i, n)) {
657
+ for (let i of t) if (Ji(i, n)) {
658
658
  if (i.items && i.items.length > 0) r.push({
659
659
  title: e(i.name) || "",
660
660
  items: i.items
@@ -669,11 +669,11 @@ function Ki(e, t, n) {
669
669
  }
670
670
  return r;
671
671
  }
672
- function qi(e, t) {
672
+ function Ji(e, t) {
673
673
  return (e.area || "default") === t;
674
674
  }
675
- function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a, onToggleExpand: o, onPick: s, onPickChild: c, resolveChild: l }) {
676
- let u = I(), [d, f] = J(!1), p = !!e.icon, m = u(e.name) || e.screen || "";
675
+ function Yi({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a, onToggleExpand: o, onPick: s, onPickChild: c, resolveChild: l }) {
676
+ let u = F(), [d, f] = q(!1), p = !!e.icon, m = u(e.name) || e.screen || "";
677
677
  if (n) {
678
678
  let n = {
679
679
  width: 40,
@@ -689,27 +689,27 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
689
689
  color: r ? "var(--accent)" : "var(--text-3)",
690
690
  textDecoration: "none"
691
691
  };
692
- return t ? /* @__PURE__ */ X("a", {
692
+ return t ? /* @__PURE__ */ Y("a", {
693
693
  href: t,
694
694
  "data-declarion-native-link": "",
695
695
  onClick: (e) => {
696
- _n(e) || (e.preventDefault(), s());
696
+ vn(e) || (e.preventDefault(), s());
697
697
  },
698
698
  title: m,
699
699
  onMouseEnter: () => f(!0),
700
700
  onMouseLeave: () => f(!1),
701
701
  style: n,
702
- children: p && /* @__PURE__ */ X(an, {
702
+ children: p && /* @__PURE__ */ Y(on, {
703
703
  name: e.icon,
704
704
  size: 14
705
705
  })
706
- }) : /* @__PURE__ */ X("button", {
706
+ }) : /* @__PURE__ */ Y("button", {
707
707
  onClick: () => s(),
708
708
  title: m,
709
709
  onMouseEnter: () => f(!0),
710
710
  onMouseLeave: () => f(!1),
711
711
  style: n,
712
- children: p && /* @__PURE__ */ X(an, {
712
+ children: p && /* @__PURE__ */ Y(on, {
713
713
  name: e.icon,
714
714
  size: 14
715
715
  })
@@ -731,16 +731,16 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
731
731
  fontSize: 12.5,
732
732
  fontWeight: r ? 600 : 500,
733
733
  textDecoration: "none"
734
- }, g = /* @__PURE__ */ Z(Y, { children: [
735
- p && /* @__PURE__ */ X(an, {
734
+ }, g = /* @__PURE__ */ X(J, { children: [
735
+ p && /* @__PURE__ */ Y(on, {
736
736
  name: e.icon,
737
737
  size: 14
738
738
  }),
739
- /* @__PURE__ */ X("span", {
739
+ /* @__PURE__ */ Y("span", {
740
740
  style: { flex: 1 },
741
741
  children: m
742
742
  }),
743
- e.badge && /* @__PURE__ */ X("span", {
743
+ e.badge && /* @__PURE__ */ Y("span", {
744
744
  style: {
745
745
  padding: "1px 5px",
746
746
  background: "var(--surface-3)",
@@ -751,7 +751,7 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
751
751
  },
752
752
  children: e.badge
753
753
  }),
754
- i && /* @__PURE__ */ X("span", {
754
+ i && /* @__PURE__ */ Y("span", {
755
755
  role: "button",
756
756
  "aria-label": a ? u("shell.sidebar.collapse_item", "Collapse") : u("shell.sidebar.expand_item", "Expand"),
757
757
  onClick: (e) => {
@@ -762,7 +762,7 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
762
762
  padding: 2,
763
763
  cursor: "pointer"
764
764
  },
765
- children: /* @__PURE__ */ X(L.down, {
765
+ children: /* @__PURE__ */ Y(I.down, {
766
766
  size: 11,
767
767
  style: {
768
768
  transform: a ? "rotate(0)" : "rotate(-90deg)",
@@ -772,17 +772,17 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
772
772
  })
773
773
  })
774
774
  ] });
775
- return /* @__PURE__ */ Z("div", { children: [t ? /* @__PURE__ */ X("a", {
775
+ return /* @__PURE__ */ X("div", { children: [t ? /* @__PURE__ */ Y("a", {
776
776
  href: t,
777
777
  "data-declarion-native-link": "",
778
778
  onClick: (e) => {
779
- _n(e) || (e.preventDefault(), s());
779
+ vn(e) || (e.preventDefault(), s());
780
780
  },
781
781
  onMouseEnter: () => f(!0),
782
782
  onMouseLeave: () => f(!1),
783
783
  style: h,
784
784
  children: g
785
- }) : /* @__PURE__ */ X("button", {
785
+ }) : /* @__PURE__ */ Y("button", {
786
786
  onClick: () => {
787
787
  i && o();
788
788
  },
@@ -790,7 +790,7 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
790
790
  onMouseLeave: () => f(!1),
791
791
  style: h,
792
792
  children: g
793
- }), i && a && /* @__PURE__ */ X("div", {
793
+ }), i && a && /* @__PURE__ */ Y("div", {
794
794
  style: {
795
795
  marginLeft: 22,
796
796
  borderLeft: "1px solid var(--divider)",
@@ -798,7 +798,7 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
798
798
  },
799
799
  children: (e.children || []).map((e, t) => {
800
800
  let n = l(e), r = e.screen || `${t}`;
801
- return /* @__PURE__ */ X(Yi, {
801
+ return /* @__PURE__ */ Y(Xi, {
802
802
  label: u(e.name) || e.screen || "",
803
803
  href: n?.route,
804
804
  enabled: !!n,
@@ -807,8 +807,8 @@ function Ji({ item: e, href: t, collapsed: n, active: r, hasKids: i, expanded: a
807
807
  })
808
808
  })] });
809
809
  }
810
- function Yi({ label: e, href: t, enabled: n, onPick: r }) {
811
- let [i, a] = J(!1), o = {
810
+ function Xi({ label: e, href: t, enabled: n, onPick: r }) {
811
+ let [i, a] = q(!1), o = {
812
812
  width: "100%",
813
813
  display: "block",
814
814
  padding: "4px 8px",
@@ -821,17 +821,17 @@ function Yi({ label: e, href: t, enabled: n, onPick: r }) {
821
821
  color: "var(--text-3)",
822
822
  textDecoration: "none"
823
823
  };
824
- return n && t ? /* @__PURE__ */ X("a", {
824
+ return n && t ? /* @__PURE__ */ Y("a", {
825
825
  href: t,
826
826
  "data-declarion-native-link": "",
827
827
  onClick: (e) => {
828
- _n(e) || (e.preventDefault(), r());
828
+ vn(e) || (e.preventDefault(), r());
829
829
  },
830
830
  onMouseEnter: () => a(!0),
831
831
  onMouseLeave: () => a(!1),
832
832
  style: o,
833
833
  children: e
834
- }) : /* @__PURE__ */ X("button", {
834
+ }) : /* @__PURE__ */ Y("button", {
835
835
  onClick: () => n && r(),
836
836
  onMouseEnter: () => a(!0),
837
837
  onMouseLeave: () => a(!1),
@@ -841,11 +841,11 @@ function Yi({ label: e, href: t, enabled: n, onPick: r }) {
841
841
  }
842
842
  //#endregion
843
843
  //#region src/components/layout/TenantChip.tsx
844
- var Xi = 6;
845
- function Zi(e) {
844
+ var Zi = 6;
845
+ function Qi(e) {
846
846
  return e.startsWith("_");
847
847
  }
848
- var Qi = {
848
+ var $i = {
849
849
  production: {
850
850
  fg: "#C2362C",
851
851
  bg: "#FAE8E6",
@@ -867,23 +867,23 @@ var Qi = {
867
867
  darkFg: "#5AB3EA",
868
868
  darkBg: "rgba(90,179,234,0.14)"
869
869
  }
870
- }, $i = {
870
+ }, ea = {
871
871
  fg: "#5B6270",
872
872
  bg: "#F3F4F7",
873
873
  border: "#E6E8EE"
874
874
  };
875
- function ea(e) {
876
- return e ? Qi[e] ?? $i : Qi.production;
875
+ function ta(e) {
876
+ return e ? $i[e] ?? ea : $i.production;
877
877
  }
878
- function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a, lockedReason: o }) {
879
- let s = I(), [c, l] = J(!1), [u, d] = J(""), f = q(null), p = e?.env, m = ea(p), h = e?.name || "—", g = e?.role || "—", _ = K(() => t.filter((e) => e.is_member !== !1), [t]), v = K(() => t.filter((e) => e.is_member === !1), [t]), y = t.length >= Xi, b = (e) => {
878
+ function na({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a, lockedReason: o }) {
879
+ let s = F(), [c, l] = q(!1), [u, d] = q(""), f = K(null), p = e?.env, m = ta(p), h = e?.name || "—", g = e?.role || "—", _ = G(() => t.filter((e) => e.is_member !== !1), [t]), v = G(() => t.filter((e) => e.is_member === !1), [t]), y = t.length >= Zi, b = (e) => {
880
880
  if (!u) return !0;
881
881
  let t = u.toLowerCase();
882
882
  return e.name.toLowerCase().includes(t) || e.code.toLowerCase().includes(t);
883
883
  }, S = _.filter(b), C = v.filter(b), ee = u !== "" && S.length === 0 && C.length === 0;
884
- return /* @__PURE__ */ Z("div", {
884
+ return /* @__PURE__ */ X("div", {
885
885
  style: { position: "relative" },
886
- children: [/* @__PURE__ */ Z("button", {
886
+ children: [/* @__PURE__ */ X("button", {
887
887
  ref: f,
888
888
  onClick: () => !a && l((e) => !e),
889
889
  "data-testid": "tenant-chip",
@@ -908,14 +908,14 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
908
908
  title: a ? o || s("shell.tenant.switch_disabled", "Tenant switching is disabled") : s("shell.tenant.current", "Current tenant / environment"),
909
909
  disabled: r || a,
910
910
  children: [
911
- /* @__PURE__ */ X(L.tenant, {
911
+ /* @__PURE__ */ Y(I.tenant, {
912
912
  size: 13,
913
913
  style: {
914
914
  color: "var(--text-3)",
915
915
  flex: "none"
916
916
  }
917
917
  }),
918
- /* @__PURE__ */ X("span", {
918
+ /* @__PURE__ */ Y("span", {
919
919
  style: {
920
920
  fontWeight: 600,
921
921
  minWidth: 0,
@@ -925,7 +925,7 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
925
925
  },
926
926
  children: h
927
927
  }),
928
- p && /* @__PURE__ */ X("span", {
928
+ p && /* @__PURE__ */ Y("span", {
929
929
  className: "mono",
930
930
  style: {
931
931
  padding: "2px 6px",
@@ -941,7 +941,7 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
941
941
  },
942
942
  children: p
943
943
  }),
944
- /* @__PURE__ */ X(L.down, {
944
+ /* @__PURE__ */ Y(I.down, {
945
945
  size: 11,
946
946
  style: {
947
947
  color: "var(--text-3)",
@@ -949,20 +949,20 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
949
949
  }
950
950
  })
951
951
  ]
952
- }), /* @__PURE__ */ Z(ot, {
952
+ }), /* @__PURE__ */ X(st, {
953
953
  open: c,
954
954
  anchor: f.current,
955
955
  onClose: () => l(!1),
956
956
  width: 300,
957
957
  align: "start",
958
958
  children: [
959
- /* @__PURE__ */ Z("div", {
959
+ /* @__PURE__ */ X("div", {
960
960
  style: {
961
961
  padding: "10px 10px 6px",
962
962
  borderBottom: "1px solid var(--divider)"
963
963
  },
964
964
  children: [
965
- /* @__PURE__ */ X("div", {
965
+ /* @__PURE__ */ Y("div", {
966
966
  style: {
967
967
  fontSize: 10.5,
968
968
  color: "var(--text-3)",
@@ -972,7 +972,7 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
972
972
  },
973
973
  children: s("shell.tenant.active_scope", "Active scope")
974
974
  }),
975
- /* @__PURE__ */ Z("div", {
975
+ /* @__PURE__ */ X("div", {
976
976
  style: {
977
977
  display: "flex",
978
978
  alignItems: "center",
@@ -980,18 +980,18 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
980
980
  marginTop: 4
981
981
  },
982
982
  children: [
983
- /* @__PURE__ */ X(L.tenant, {
983
+ /* @__PURE__ */ Y(I.tenant, {
984
984
  size: 13,
985
985
  style: { color: "var(--accent)" }
986
986
  }),
987
- /* @__PURE__ */ X("span", {
987
+ /* @__PURE__ */ Y("span", {
988
988
  style: {
989
989
  fontSize: 13,
990
990
  fontWeight: 600
991
991
  },
992
992
  children: h
993
993
  }),
994
- p && /* @__PURE__ */ X("span", {
994
+ p && /* @__PURE__ */ Y("span", {
995
995
  className: "mono",
996
996
  style: {
997
997
  marginLeft: "auto",
@@ -1006,13 +1006,13 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1006
1006
  })
1007
1007
  ]
1008
1008
  }),
1009
- /* @__PURE__ */ X("div", {
1009
+ /* @__PURE__ */ Y("div", {
1010
1010
  style: {
1011
1011
  marginTop: 4,
1012
1012
  fontSize: 11,
1013
1013
  color: "var(--text-3)"
1014
1014
  },
1015
- children: x(s("shell.tenant.role", "Role: {role}"), { role: /* @__PURE__ */ X("span", {
1015
+ children: x(s("shell.tenant.role", "Role: {role}"), { role: /* @__PURE__ */ Y("span", {
1016
1016
  style: {
1017
1017
  color: "var(--text-2)",
1018
1018
  fontWeight: 500
@@ -1022,12 +1022,12 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1022
1022
  })
1023
1023
  ]
1024
1024
  }),
1025
- y && /* @__PURE__ */ X("div", {
1025
+ y && /* @__PURE__ */ Y("div", {
1026
1026
  style: {
1027
1027
  padding: "8px 10px 4px",
1028
1028
  borderBottom: "1px solid var(--divider)"
1029
1029
  },
1030
- children: /* @__PURE__ */ X("input", {
1030
+ children: /* @__PURE__ */ Y("input", {
1031
1031
  type: "text",
1032
1032
  value: u,
1033
1033
  onChange: (e) => d(e.target.value),
@@ -1047,13 +1047,13 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1047
1047
  }
1048
1048
  })
1049
1049
  }),
1050
- /* @__PURE__ */ Z("div", {
1050
+ /* @__PURE__ */ X("div", {
1051
1051
  style: {
1052
1052
  maxHeight: 320,
1053
1053
  overflowY: "auto"
1054
1054
  },
1055
1055
  children: [
1056
- /* @__PURE__ */ X(na, {
1056
+ /* @__PURE__ */ Y(ra, {
1057
1057
  label: v.length > 0 ? s("shell.tenant.yours", "Your tenants") : s("shell.tenant.switch", "Switch tenant"),
1058
1058
  tenants: S,
1059
1059
  activeID: e?.id,
@@ -1061,7 +1061,7 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1061
1061
  l(!1), n(e);
1062
1062
  }
1063
1063
  }),
1064
- C.length > 0 && /* @__PURE__ */ X(na, {
1064
+ C.length > 0 && /* @__PURE__ */ Y(ra, {
1065
1065
  label: s("shell.tenant.all_admin", "All tenants (admin)"),
1066
1066
  tenants: C,
1067
1067
  activeID: e?.id,
@@ -1069,7 +1069,7 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1069
1069
  l(!1), n(e);
1070
1070
  }
1071
1071
  }),
1072
- ee && /* @__PURE__ */ X("div", {
1072
+ ee && /* @__PURE__ */ Y("div", {
1073
1073
  style: {
1074
1074
  padding: "12px 12px",
1075
1075
  fontSize: 12,
@@ -1080,7 +1080,7 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1080
1080
  })
1081
1081
  ]
1082
1082
  }),
1083
- /* @__PURE__ */ Z("div", {
1083
+ /* @__PURE__ */ X("div", {
1084
1084
  style: {
1085
1085
  padding: "8px 10px",
1086
1086
  borderTop: "1px solid var(--divider)",
@@ -1090,20 +1090,20 @@ function ta({ tenant: e, tenants: t, onSwitch: n, busy: r, compact: i, locked: a
1090
1090
  alignItems: "flex-start",
1091
1091
  gap: 6
1092
1092
  },
1093
- children: [/* @__PURE__ */ X(L.info, {
1093
+ children: [/* @__PURE__ */ Y(I.info, {
1094
1094
  size: 11,
1095
1095
  style: {
1096
1096
  marginTop: 2,
1097
1097
  flexShrink: 0
1098
1098
  }
1099
- }), /* @__PURE__ */ X("span", { children: s("shell.tenant.switch_hint", "Switching tenant reloads all data. Unsaved changes in open tabs will prompt.") })]
1099
+ }), /* @__PURE__ */ Y("span", { children: s("shell.tenant.switch_hint", "Switching tenant reloads all data. Unsaved changes in open tabs will prompt.") })]
1100
1100
  })
1101
1101
  ]
1102
1102
  })]
1103
1103
  });
1104
1104
  }
1105
- function na({ label: e, tenants: t, activeID: n, onPick: r }) {
1106
- return t.length === 0 ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
1105
+ function ra({ label: e, tenants: t, activeID: n, onPick: r }) {
1106
+ return t.length === 0 ? null : /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("div", {
1107
1107
  style: {
1108
1108
  padding: "6px 10px 4px",
1109
1109
  fontSize: 10,
@@ -1113,16 +1113,16 @@ function na({ label: e, tenants: t, activeID: n, onPick: r }) {
1113
1113
  textTransform: "uppercase"
1114
1114
  },
1115
1115
  children: e
1116
- }), t.map((e) => /* @__PURE__ */ X(ra, {
1116
+ }), t.map((e) => /* @__PURE__ */ Y(ia, {
1117
1117
  tenant: e,
1118
- tone: ea(e.env),
1118
+ tone: ta(e.env),
1119
1119
  active: e.id === n,
1120
1120
  onPick: () => r(e)
1121
1121
  }, e.id))] });
1122
1122
  }
1123
- function ra({ tenant: e, tone: t, active: n, onPick: r }) {
1124
- let i = I(), [a, o] = J(!1), s = n || a ? "var(--surface-3)" : "transparent", c = Zi(e.code);
1125
- return /* @__PURE__ */ Z("button", {
1123
+ function ia({ tenant: e, tone: t, active: n, onPick: r }) {
1124
+ let i = F(), [a, o] = q(!1), s = n || a ? "var(--surface-3)" : "transparent", c = Qi(e.code);
1125
+ return /* @__PURE__ */ X("button", {
1126
1126
  onClick: r,
1127
1127
  onMouseEnter: () => o(!0),
1128
1128
  onMouseLeave: () => o(!1),
@@ -1138,11 +1138,11 @@ function ra({ tenant: e, tone: t, active: n, onPick: r }) {
1138
1138
  textAlign: "left"
1139
1139
  },
1140
1140
  children: [
1141
- /* @__PURE__ */ X(L.tenant, {
1141
+ /* @__PURE__ */ Y(I.tenant, {
1142
1142
  size: 12,
1143
1143
  style: { color: "var(--text-3)" }
1144
1144
  }),
1145
- /* @__PURE__ */ X("span", {
1145
+ /* @__PURE__ */ Y("span", {
1146
1146
  style: {
1147
1147
  fontSize: 12.5,
1148
1148
  color: "var(--text)",
@@ -1150,7 +1150,7 @@ function ra({ tenant: e, tone: t, active: n, onPick: r }) {
1150
1150
  },
1151
1151
  children: e.name
1152
1152
  }),
1153
- c ? /* @__PURE__ */ X("span", {
1153
+ c ? /* @__PURE__ */ Y("span", {
1154
1154
  className: "mono",
1155
1155
  title: i("shell.tenant.system_hint", "Platform-internal workspace"),
1156
1156
  style: {
@@ -1163,7 +1163,7 @@ function ra({ tenant: e, tone: t, active: n, onPick: r }) {
1163
1163
  border: "1px solid var(--border)"
1164
1164
  },
1165
1165
  children: i("shell.tenant.system", "system")
1166
- }) : e.env ? /* @__PURE__ */ X("span", {
1166
+ }) : e.env ? /* @__PURE__ */ Y("span", {
1167
1167
  className: "mono",
1168
1168
  style: {
1169
1169
  padding: "1px 5px",
@@ -1175,15 +1175,15 @@ function ra({ tenant: e, tone: t, active: n, onPick: r }) {
1175
1175
  },
1176
1176
  children: e.env
1177
1177
  }) : null,
1178
- /* @__PURE__ */ X("span", { style: { flex: 1 } }),
1179
- e.role && /* @__PURE__ */ X("span", {
1178
+ /* @__PURE__ */ Y("span", { style: { flex: 1 } }),
1179
+ e.role && /* @__PURE__ */ Y("span", {
1180
1180
  style: {
1181
1181
  fontSize: 10.5,
1182
1182
  color: "var(--text-3)"
1183
1183
  },
1184
1184
  children: e.role
1185
1185
  }),
1186
- n && /* @__PURE__ */ X(L.check, {
1186
+ n && /* @__PURE__ */ Y(I.check, {
1187
1187
  size: 12,
1188
1188
  style: {
1189
1189
  color: "var(--accent)",
@@ -1195,8 +1195,8 @@ function ra({ tenant: e, tone: t, active: n, onPick: r }) {
1195
1195
  }
1196
1196
  //#endregion
1197
1197
  //#region src/components/chrome/Breadcrumbs.tsx
1198
- function ia({ items: e, onCrumbClick: t }) {
1199
- return !e || e.length === 0 ? null : /* @__PURE__ */ X("nav", {
1198
+ function aa({ items: e, onCrumbClick: t }) {
1199
+ return !e || e.length === 0 ? null : /* @__PURE__ */ Y("nav", {
1200
1200
  style: {
1201
1201
  display: "flex",
1202
1202
  alignItems: "center",
@@ -1208,13 +1208,13 @@ function ia({ items: e, onCrumbClick: t }) {
1208
1208
  },
1209
1209
  children: e.map((n, r) => {
1210
1210
  let i = r === e.length - 1, a = !!n.onClick || !!n.target;
1211
- return /* @__PURE__ */ Z(ei, { children: [r > 0 && /* @__PURE__ */ X("span", {
1211
+ return /* @__PURE__ */ X(ni, { children: [r > 0 && /* @__PURE__ */ Y("span", {
1212
1212
  style: {
1213
1213
  color: "var(--text-4)",
1214
1214
  padding: "0 4px"
1215
1215
  },
1216
- children: /* @__PURE__ */ X(L.right, { size: 11 })
1217
- }), /* @__PURE__ */ X(aa, {
1216
+ children: /* @__PURE__ */ Y(I.right, { size: 11 })
1217
+ }), /* @__PURE__ */ Y(oa, {
1218
1218
  crumb: n,
1219
1219
  last: i,
1220
1220
  clickable: a,
@@ -1223,9 +1223,9 @@ function ia({ items: e, onCrumbClick: t }) {
1223
1223
  })
1224
1224
  });
1225
1225
  }
1226
- function aa({ crumb: e, last: t, clickable: n, onClick: r }) {
1227
- let [i, a] = J(!1), o = e.icon && L[e.icon] ? L[e.icon] : L.folder;
1228
- return /* @__PURE__ */ Z("button", {
1226
+ function oa({ crumb: e, last: t, clickable: n, onClick: r }) {
1227
+ let [i, a] = q(!1), o = e.icon && I[e.icon] ? I[e.icon] : I.folder;
1228
+ return /* @__PURE__ */ X("button", {
1229
1229
  onClick: () => {
1230
1230
  n && (r ? r(e) : e.onClick && e.onClick());
1231
1231
  },
@@ -1246,41 +1246,41 @@ function aa({ crumb: e, last: t, clickable: n, onClick: r }) {
1246
1246
  textOverflow: "ellipsis",
1247
1247
  fontSize: 12.5
1248
1248
  },
1249
- children: [e.icon && o && /* @__PURE__ */ X("span", {
1249
+ children: [e.icon && o && /* @__PURE__ */ Y("span", {
1250
1250
  style: {
1251
1251
  marginRight: 4,
1252
1252
  display: "inline-block",
1253
1253
  verticalAlign: "-2px"
1254
1254
  },
1255
- children: /* @__PURE__ */ X(o, { size: 12 })
1255
+ children: /* @__PURE__ */ Y(o, { size: 12 })
1256
1256
  }), e.label]
1257
1257
  });
1258
1258
  }
1259
1259
  //#endregion
1260
1260
  //#region src/components/layout/TopBar.tsx
1261
- var oa = "⌘K";
1262
- function sa({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, showNavButton: i, onOpenTabs: a, tabsButtonRef: o, showTabsButton: s, mobileTabCount: c = 0, onCmdK: l, onToggleAI: u, aiOpen: d, onOpenProfile: f, onOpenPrefs: m, showTenantSwitcher: h = !0, showBreadcrumbs: g = !0, showThemeToggle: _ = !0 } = {}) {
1263
- let v = I(), y = p((e) => e.user), b = Ve(), { activeTenant: x, tenants: S, switchTenant: C, isSwitchingTenant: ee, logout: te } = bn(), { isImpersonating: ne, stop: re } = xn(), w = V((e) => e.colorScheme), T = V((e) => e.set), [ie, E] = J(!1), ae = q(null), oe = x?.env, se = ea(oe), D = y?.email ?? "", O = y?.display_name || D || v("shell.user_menu.user", "User"), k = i && b.category === "phone", A = i && b.category !== "desktop", ce = () => {
1261
+ var sa = "⌘K";
1262
+ function ca({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, showNavButton: i, onOpenTabs: a, tabsButtonRef: o, showTabsButton: s, mobileTabCount: c = 0, onCmdK: l, onToggleAI: u, aiOpen: d, onOpenProfile: f, onOpenPrefs: m, showTenantSwitcher: h = !0, showBreadcrumbs: g = !0, showThemeToggle: _ = !0 } = {}) {
1263
+ let v = F(), y = p((e) => e.user), b = He(), { activeTenant: x, tenants: S, switchTenant: C, isSwitchingTenant: ee, logout: te } = xn(), { isImpersonating: ne, stop: re } = Cn(), w = B((e) => e.colorScheme), T = B((e) => e.set), [ie, E] = q(!1), ae = K(null), oe = x?.env, se = ta(oe), D = y?.email ?? "", O = y?.display_name || D || v("shell.user_menu.user", "User"), k = i && b.category === "phone", ce = i && b.category !== "desktop", le = () => {
1264
1264
  T("colorScheme", w === "dark" ? "light" : "dark");
1265
- }, le = (e) => {
1266
- x?.id !== e.id && (!B.getState().tabs.some((e) => e.dirty) || window.confirm(v("shell.tenant.switch_confirm", "You have unsaved changes in one or more tabs. Switching tenant will discard them. Continue?"))) && C(e.id);
1265
+ }, ue = (e) => {
1266
+ x?.id !== e.id && (!z.getState().tabs.some((e) => e.dirty) || window.confirm(v("shell.tenant.switch_confirm", "You have unsaved changes in one or more tabs. Switching tenant will discard them. Continue?"))) && C(e.id);
1267
1267
  };
1268
- return /* @__PURE__ */ Z("header", {
1268
+ return /* @__PURE__ */ X("header", {
1269
1269
  style: {
1270
1270
  gridArea: "topbar",
1271
1271
  background: "var(--surface)",
1272
1272
  borderBottom: "1px solid var(--border)",
1273
1273
  display: "flex",
1274
1274
  alignItems: "center",
1275
- ...Sn(12),
1276
- gap: A ? 8 : 10,
1275
+ ...wn(12),
1276
+ gap: ce ? 8 : 10,
1277
1277
  zIndex: 5,
1278
1278
  position: "relative",
1279
1279
  minWidth: 0,
1280
1280
  overflow: "hidden"
1281
1281
  },
1282
1282
  children: [
1283
- oe === "production" && /* @__PURE__ */ X("span", { style: {
1283
+ oe === "production" && /* @__PURE__ */ Y("span", { style: {
1284
1284
  position: "absolute",
1285
1285
  left: 0,
1286
1286
  right: 0,
@@ -1290,29 +1290,29 @@ function sa({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, sh
1290
1290
  opacity: .35,
1291
1291
  pointerEvents: "none"
1292
1292
  } }),
1293
- i && /* @__PURE__ */ X(R, {
1293
+ i && /* @__PURE__ */ Y(L, {
1294
1294
  ref: r,
1295
- icon: /* @__PURE__ */ X(L.menu, { size: 16 }),
1295
+ icon: /* @__PURE__ */ Y(I.menu, { size: 16 }),
1296
1296
  title: v("shell.nav.open", "Open navigation"),
1297
1297
  onClick: n
1298
1298
  }),
1299
- h && /* @__PURE__ */ X("div", {
1299
+ h && /* @__PURE__ */ Y("div", {
1300
1300
  style: {
1301
1301
  minWidth: 0,
1302
- maxWidth: k ? "min(210px, 56vw)" : A ? 230 : void 0,
1302
+ maxWidth: k ? "min(210px, 56vw)" : ce ? 230 : void 0,
1303
1303
  flex: k ? "1 1 auto" : "0 0 auto"
1304
1304
  },
1305
- children: /* @__PURE__ */ X(ta, {
1305
+ children: /* @__PURE__ */ Y(na, {
1306
1306
  tenant: x,
1307
1307
  tenants: S,
1308
- onSwitch: le,
1308
+ onSwitch: ue,
1309
1309
  busy: ee,
1310
- compact: A,
1310
+ compact: ce,
1311
1311
  locked: ne,
1312
1312
  lockedReason: ne ? v("shell.impersonation.tenant_locked", "Exit impersonation to switch tenants") : void 0
1313
1313
  })
1314
1314
  }),
1315
- ne && /* @__PURE__ */ Z("span", {
1315
+ ne && /* @__PURE__ */ X("span", {
1316
1316
  "data-testid": "impersonation-chip",
1317
1317
  style: {
1318
1318
  display: "inline-flex",
@@ -1329,39 +1329,39 @@ function sa({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, sh
1329
1329
  letterSpacing: "0.05em"
1330
1330
  },
1331
1331
  children: [
1332
- /* @__PURE__ */ X(L.users, { size: 11 }),
1332
+ /* @__PURE__ */ Y(I.users, { size: 11 }),
1333
1333
  " ",
1334
1334
  v("shell.impersonation.chip", "Impersonating")
1335
1335
  ]
1336
1336
  }),
1337
- !k && g && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
1337
+ !k && g && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("span", {
1338
1338
  style: {
1339
1339
  color: "var(--text-4)",
1340
1340
  fontSize: 11
1341
1341
  },
1342
- children: /* @__PURE__ */ X(L.right, { size: 10 })
1343
- }), /* @__PURE__ */ X(ia, {
1342
+ children: /* @__PURE__ */ Y(I.right, { size: 10 })
1343
+ }), /* @__PURE__ */ Y(aa, {
1344
1344
  items: e ?? [],
1345
1345
  onCrumbClick: t
1346
1346
  })] }),
1347
- /* @__PURE__ */ X("div", { style: { flex: 1 } }),
1348
- s && /* @__PURE__ */ X(R, {
1347
+ /* @__PURE__ */ Y("div", { style: { flex: 1 } }),
1348
+ s && /* @__PURE__ */ Y(L, {
1349
1349
  ref: o,
1350
- icon: /* @__PURE__ */ X(L.layers, { size: 15 }),
1350
+ icon: /* @__PURE__ */ Y(I.layers, { size: 15 }),
1351
1351
  title: v("shell.tabs.open_tabs_count", "Open tabs ({count})", { count: c }),
1352
1352
  onClick: a
1353
1353
  }),
1354
- k ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(R, {
1355
- icon: /* @__PURE__ */ X(L.search, { size: 15 }),
1354
+ k ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(L, {
1355
+ icon: /* @__PURE__ */ Y(I.search, { size: 15 }),
1356
1356
  title: v("shell.palette.search", "Search or run command"),
1357
1357
  onClick: l
1358
- }), u && /* @__PURE__ */ X(R, {
1359
- icon: /* @__PURE__ */ X(L.sparkle, { size: 15 }),
1358
+ }), u && /* @__PURE__ */ Y(L, {
1359
+ icon: /* @__PURE__ */ Y(I.sparkle, { size: 15 }),
1360
1360
  title: v("shell.ai_assistant", "AI Assistant"),
1361
1361
  onClick: u,
1362
1362
  active: d
1363
- })] }) : /* @__PURE__ */ Z(Y, { children: [
1364
- /* @__PURE__ */ Z("button", {
1363
+ })] }) : /* @__PURE__ */ X(J, { children: [
1364
+ /* @__PURE__ */ X("button", {
1365
1365
  onClick: l,
1366
1366
  style: {
1367
1367
  display: "flex",
@@ -1378,98 +1378,98 @@ function sa({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, sh
1378
1378
  minWidth: 240
1379
1379
  },
1380
1380
  children: [
1381
- /* @__PURE__ */ X(L.search, { size: 13 }),
1382
- /* @__PURE__ */ X("span", {
1381
+ /* @__PURE__ */ Y(I.search, { size: 13 }),
1382
+ /* @__PURE__ */ Y("span", {
1383
1383
  style: {
1384
1384
  flex: 1,
1385
1385
  textAlign: "left"
1386
1386
  },
1387
1387
  children: v("shell.topbar.search_hint", "Search or run command…")
1388
1388
  }),
1389
- /* @__PURE__ */ X(Ke, { children: oa })
1389
+ /* @__PURE__ */ Y(qe, { children: sa })
1390
1390
  ]
1391
1391
  }),
1392
- /* @__PURE__ */ X(R, {
1393
- icon: /* @__PURE__ */ X(L.bell, { size: 15 }),
1392
+ /* @__PURE__ */ Y(L, {
1393
+ icon: /* @__PURE__ */ Y(I.bell, { size: 15 }),
1394
1394
  title: v("shell.topbar.notifications", "Notifications")
1395
1395
  }),
1396
- _ && /* @__PURE__ */ X(R, {
1397
- icon: X(w === "dark" ? L.sun : L.moon, { size: 15 }),
1396
+ _ && /* @__PURE__ */ Y(L, {
1397
+ icon: Y(w === "dark" ? I.sun : I.moon, { size: 15 }),
1398
1398
  title: v("shell.topbar.theme", "Theme"),
1399
- onClick: ce
1399
+ onClick: le
1400
1400
  }),
1401
- /* @__PURE__ */ X(R, {
1402
- icon: /* @__PURE__ */ X(L.sparkle, { size: 15 }),
1401
+ /* @__PURE__ */ Y(L, {
1402
+ icon: /* @__PURE__ */ Y(I.sparkle, { size: 15 }),
1403
1403
  title: v("shell.ai_assistant", "AI Assistant"),
1404
1404
  onClick: u,
1405
1405
  active: d
1406
1406
  }),
1407
- /* @__PURE__ */ X("div", { style: {
1407
+ /* @__PURE__ */ Y("div", { style: {
1408
1408
  width: 1,
1409
1409
  height: 18,
1410
1410
  background: "var(--divider)",
1411
1411
  margin: "0 2px"
1412
1412
  } })
1413
1413
  ] }),
1414
- /* @__PURE__ */ Z("div", {
1414
+ /* @__PURE__ */ X("div", {
1415
1415
  style: { position: "relative" },
1416
- children: [/* @__PURE__ */ Z("button", {
1416
+ children: [/* @__PURE__ */ X("button", {
1417
1417
  ref: ae,
1418
1418
  onClick: () => E((e) => !e),
1419
1419
  style: {
1420
1420
  display: "flex",
1421
1421
  alignItems: "center",
1422
1422
  gap: 6,
1423
- padding: A ? 0 : "0 4px 0 2px",
1423
+ padding: ce ? 0 : "0 4px 0 2px",
1424
1424
  height: 28,
1425
1425
  background: "transparent",
1426
1426
  border: 0,
1427
1427
  cursor: "pointer"
1428
1428
  },
1429
- children: [/* @__PURE__ */ X(Xe, {
1429
+ children: [/* @__PURE__ */ Y(Ze, {
1430
1430
  name: O,
1431
1431
  size: 22
1432
- }), !A && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
1432
+ }), !ce && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("span", {
1433
1433
  style: {
1434
1434
  fontSize: 12,
1435
1435
  color: "var(--text-2)"
1436
1436
  },
1437
1437
  children: D
1438
- }), /* @__PURE__ */ X(L.down, {
1438
+ }), /* @__PURE__ */ Y(I.down, {
1439
1439
  size: 11,
1440
1440
  style: { color: "var(--text-3)" }
1441
1441
  })] })]
1442
- }), /* @__PURE__ */ Z(ot, {
1442
+ }), /* @__PURE__ */ X(st, {
1443
1443
  open: ie,
1444
1444
  anchor: ae.current,
1445
1445
  onClose: () => E(!1),
1446
1446
  width: 220,
1447
1447
  align: "end",
1448
1448
  children: [
1449
- /* @__PURE__ */ Z("div", {
1449
+ /* @__PURE__ */ X("div", {
1450
1450
  style: {
1451
1451
  padding: "10px 10px 8px",
1452
1452
  borderBottom: "1px solid var(--divider)"
1453
1453
  },
1454
- children: [/* @__PURE__ */ Z("div", {
1454
+ children: [/* @__PURE__ */ X("div", {
1455
1455
  style: {
1456
1456
  display: "flex",
1457
1457
  gap: 8,
1458
1458
  alignItems: "center"
1459
1459
  },
1460
- children: [/* @__PURE__ */ X(Xe, {
1460
+ children: [/* @__PURE__ */ Y(Ze, {
1461
1461
  name: O,
1462
1462
  size: 28
1463
- }), /* @__PURE__ */ Z("div", {
1463
+ }), /* @__PURE__ */ X("div", {
1464
1464
  style: { minWidth: 0 },
1465
- children: [/* @__PURE__ */ X("div", {
1465
+ children: [/* @__PURE__ */ Y("div", {
1466
1466
  style: {
1467
1467
  fontSize: 12.5,
1468
1468
  fontWeight: 600,
1469
1469
  color: "var(--text)"
1470
1470
  },
1471
1471
  children: O
1472
- }), /* @__PURE__ */ X("div", {
1472
+ }), /* @__PURE__ */ Y("div", {
1473
1473
  style: {
1474
1474
  fontSize: 11,
1475
1475
  color: "var(--text-3)",
@@ -1480,55 +1480,55 @@ function sa({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, sh
1480
1480
  children: D
1481
1481
  })]
1482
1482
  })]
1483
- }), x && /* @__PURE__ */ Z("div", {
1483
+ }), x && /* @__PURE__ */ X("div", {
1484
1484
  style: {
1485
1485
  marginTop: 8,
1486
1486
  display: "flex",
1487
1487
  gap: 4,
1488
1488
  flexWrap: "wrap"
1489
1489
  },
1490
- children: [/* @__PURE__ */ X(Ge, {
1490
+ children: [/* @__PURE__ */ Y(Ke, {
1491
1491
  tone: "violet",
1492
1492
  size: "xs",
1493
1493
  dot: !0,
1494
1494
  children: x.role
1495
- }), /* @__PURE__ */ Z(Ge, {
1495
+ }), /* @__PURE__ */ X(Ke, {
1496
1496
  tone: "slate",
1497
1497
  size: "xs",
1498
1498
  children: [x.name, oe ? ` · ${oe}` : ""]
1499
1499
  })]
1500
1500
  })]
1501
1501
  }),
1502
- ne && /* @__PURE__ */ X(z, {
1503
- icon: /* @__PURE__ */ X(L.x, { size: 13 }),
1502
+ ne && /* @__PURE__ */ Y(R, {
1503
+ icon: /* @__PURE__ */ Y(I.x, { size: 13 }),
1504
1504
  onClick: () => {
1505
1505
  E(!1), re();
1506
1506
  },
1507
1507
  "data-testid": "exit-impersonation-menu-item",
1508
1508
  children: v("shell.impersonation.exit", "Exit impersonation")
1509
1509
  }),
1510
- /* @__PURE__ */ X(z, {
1511
- icon: /* @__PURE__ */ X(L.users, { size: 13 }),
1510
+ /* @__PURE__ */ Y(R, {
1511
+ icon: /* @__PURE__ */ Y(I.users, { size: 13 }),
1512
1512
  onClick: () => {
1513
1513
  E(!1), f?.();
1514
1514
  },
1515
1515
  children: v("shell.user_menu.profile", "My profile")
1516
1516
  }),
1517
- /* @__PURE__ */ X(z, {
1518
- icon: /* @__PURE__ */ X(L.settings, { size: 13 }),
1517
+ /* @__PURE__ */ Y(R, {
1518
+ icon: /* @__PURE__ */ Y(I.settings, { size: 13 }),
1519
1519
  onClick: () => {
1520
1520
  E(!1), m?.();
1521
1521
  },
1522
1522
  children: v("shell.user_menu.preferences", "Preferences")
1523
1523
  }),
1524
- _ && /* @__PURE__ */ X(z, {
1525
- icon: /* @__PURE__ */ X(L.moon, { size: 13 }),
1526
- onClick: ce,
1524
+ _ && /* @__PURE__ */ Y(R, {
1525
+ icon: /* @__PURE__ */ Y(I.moon, { size: 13 }),
1526
+ onClick: le,
1527
1527
  children: v("shell.user_menu.toggle_theme", "Toggle theme")
1528
1528
  }),
1529
- /* @__PURE__ */ X(z, { divider: !0 }),
1530
- /* @__PURE__ */ X(z, {
1531
- icon: /* @__PURE__ */ X(L.x, { size: 13 }),
1529
+ /* @__PURE__ */ Y(R, { divider: !0 }),
1530
+ /* @__PURE__ */ Y(R, {
1531
+ icon: /* @__PURE__ */ Y(I.x, { size: 13 }),
1532
1532
  danger: !0,
1533
1533
  onClick: () => {
1534
1534
  E(!1), te();
@@ -1543,9 +1543,9 @@ function sa({ breadcrumbs: e, onCrumbClick: t, onOpenNav: n, navButtonRef: r, sh
1543
1543
  }
1544
1544
  //#endregion
1545
1545
  //#region src/components/layout/TabStrip.tsx
1546
- function ca({ onNew: e, onCloseRequest: t } = {}) {
1547
- let n = I(), r = Cn(), i = pi(), a = q(null), o = q(null), s = q(null), c = q(!1), [l, u] = J(!1), d = B((e) => e.tabs), f = B((e) => e.activeTabId), p = V((e) => e.tabsMaxOpen), m = B((e) => e.switchTab), h = B((e) => e.closeTab), g = d.findIndex((e) => e.id === f);
1548
- G(() => {
1546
+ function la({ onNew: e, onCloseRequest: t } = {}) {
1547
+ let n = F(), r = Tn(), i = mi(), a = K(null), o = K(null), s = K(null), c = K(!1), [l, u] = q(!1), d = z((e) => e.tabs), f = z((e) => e.activeTabId), p = B((e) => e.tabsMaxOpen), m = z((e) => e.switchTab), h = z((e) => e.closeTab), g = d.findIndex((e) => e.id === f);
1548
+ W(() => {
1549
1549
  let e = g === d.length - 1 ? s.current : o.current;
1550
1550
  e && (e.scrollIntoView({
1551
1551
  block: "nearest",
@@ -1557,7 +1557,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1557
1557
  g,
1558
1558
  d.length
1559
1559
  ]);
1560
- let _ = W((e, t) => {
1560
+ let _ = U((e, t) => {
1561
1561
  let n = d[e];
1562
1562
  n && (m(n.id), i({
1563
1563
  pathname: n.pathname,
@@ -1567,7 +1567,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1567
1567
  d,
1568
1568
  m,
1569
1569
  i
1570
- ]), v = W((e) => {
1570
+ ]), v = U((e) => {
1571
1571
  let n = d[e];
1572
1572
  if (!n) return;
1573
1573
  if (t) {
@@ -1591,18 +1591,18 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1591
1591
  h,
1592
1592
  i,
1593
1593
  t
1594
- ]), b = W((e) => {
1594
+ ]), b = U((e) => {
1595
1595
  u(!1), t ? t(e) : e === "current" && g >= 0 && v(g);
1596
1596
  }, [
1597
1597
  g,
1598
1598
  v,
1599
1599
  t
1600
- ]), x = W(() => {
1600
+ ]), x = U(() => {
1601
1601
  e ? e() : i("/");
1602
1602
  }, [e, i]);
1603
1603
  if (d.length === 0) return null;
1604
- let S = g >= 0 && d.length > 1 && d[g]?.closable !== !1, C = pt(d, f, "others").length > 0, ee = pt(d, f, "right").length > 0, te = d.length >= p ? "danger" : d.length >= Math.ceil(p * .8) ? "warning" : "normal", ne = te === "danger" ? "var(--danger)" : te === "warning" ? "var(--warn)" : "var(--text-3)";
1605
- return /* @__PURE__ */ Z("div", {
1604
+ let S = g >= 0 && d.length > 1 && d[g]?.closable !== !1, C = mt(d, f, "others").length > 0, ee = mt(d, f, "right").length > 0, te = d.length >= p ? "danger" : d.length >= Math.ceil(p * .8) ? "warning" : "normal", ne = te === "danger" ? "var(--danger)" : te === "warning" ? "var(--warn)" : "var(--text-3)";
1605
+ return /* @__PURE__ */ X("div", {
1606
1606
  style: {
1607
1607
  display: "flex",
1608
1608
  alignItems: "stretch",
@@ -1612,7 +1612,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1612
1612
  overflow: "hidden",
1613
1613
  flexShrink: 0
1614
1614
  },
1615
- children: [/* @__PURE__ */ Z("div", {
1615
+ children: [/* @__PURE__ */ X("div", {
1616
1616
  className: "scrollbar-none",
1617
1617
  style: {
1618
1618
  display: "flex",
@@ -1623,7 +1623,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1623
1623
  },
1624
1624
  children: [d.map((e, t) => {
1625
1625
  let i = t === g, a = d.length > 1 && e.closable !== !1;
1626
- return /* @__PURE__ */ Z("div", {
1626
+ return /* @__PURE__ */ X("div", {
1627
1627
  "data-testid": "tabstrip-tab",
1628
1628
  ref: i ? o : void 0,
1629
1629
  onClick: (e) => _(t, { newTab: e.metaKey || e.ctrlKey }),
@@ -1636,7 +1636,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1636
1636
  alignItems: "center",
1637
1637
  gap: 6,
1638
1638
  height: "100%",
1639
- ...Sn(11),
1639
+ ...wn(11),
1640
1640
  background: i ? "var(--surface)" : "transparent",
1641
1641
  borderRight: "1px solid var(--border)",
1642
1642
  borderTop: i ? "2px solid var(--accent)" : "2px solid transparent",
@@ -1651,17 +1651,17 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1651
1651
  fontWeight: i ? 500 : 400
1652
1652
  },
1653
1653
  children: [
1654
- e.icon && /* @__PURE__ */ X("span", {
1654
+ e.icon && /* @__PURE__ */ Y("span", {
1655
1655
  style: {
1656
1656
  color: i ? "var(--accent)" : "var(--text-4)",
1657
1657
  display: "flex"
1658
1658
  },
1659
- children: /* @__PURE__ */ X(an, {
1659
+ children: /* @__PURE__ */ Y(on, {
1660
1660
  name: e.icon,
1661
1661
  size: 12
1662
1662
  })
1663
1663
  }),
1664
- /* @__PURE__ */ X("span", {
1664
+ /* @__PURE__ */ Y("span", {
1665
1665
  style: {
1666
1666
  flex: 1,
1667
1667
  whiteSpace: "nowrap",
@@ -1670,7 +1670,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1670
1670
  },
1671
1671
  children: r(e)
1672
1672
  }),
1673
- e.dirty && /* @__PURE__ */ X("span", {
1673
+ e.dirty && /* @__PURE__ */ Y("span", {
1674
1674
  style: {
1675
1675
  width: 6,
1676
1676
  height: 6,
@@ -1680,7 +1680,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1680
1680
  },
1681
1681
  title: n("shell.tabs.unsaved", "Unsaved changes")
1682
1682
  }),
1683
- a && /* @__PURE__ */ X("button", {
1683
+ a && /* @__PURE__ */ Y("button", {
1684
1684
  onClick: (e) => {
1685
1685
  e.stopPropagation(), v(t);
1686
1686
  },
@@ -1702,11 +1702,11 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1702
1702
  onMouseLeave: (e) => {
1703
1703
  e.currentTarget.style.background = "transparent", e.currentTarget.style.color = "var(--text-4)";
1704
1704
  },
1705
- children: /* @__PURE__ */ X(L.x, { size: 11 })
1705
+ children: /* @__PURE__ */ Y(I.x, { size: 11 })
1706
1706
  })
1707
1707
  ]
1708
1708
  }, e.id);
1709
- }), /* @__PURE__ */ X("button", {
1709
+ }), /* @__PURE__ */ Y("button", {
1710
1710
  ref: s,
1711
1711
  onClick: x,
1712
1712
  title: n("shell.tabs.new", "New tab (⌘T)"),
@@ -1721,12 +1721,12 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1721
1721
  alignItems: "center",
1722
1722
  justifyContent: "center"
1723
1723
  },
1724
- children: /* @__PURE__ */ X(L.plus, { size: 13 })
1724
+ children: /* @__PURE__ */ Y(I.plus, { size: 13 })
1725
1725
  })]
1726
- }), /* @__PURE__ */ Z("div", {
1726
+ }), /* @__PURE__ */ X("div", {
1727
1727
  className: "tabstrip-utility",
1728
1728
  style: {
1729
- ...Sn(10),
1729
+ ...wn(10),
1730
1730
  fontSize: 11,
1731
1731
  color: "var(--text-4)",
1732
1732
  display: "flex",
@@ -1736,7 +1736,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1736
1736
  flexShrink: 0
1737
1737
  },
1738
1738
  children: [
1739
- /* @__PURE__ */ Z("span", {
1739
+ /* @__PURE__ */ X("span", {
1740
1740
  "data-testid": "tabstrip-tab-count",
1741
1741
  style: {
1742
1742
  display: "flex",
@@ -1745,14 +1745,14 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1745
1745
  color: ne,
1746
1746
  fontWeight: te === "normal" ? 400 : 600
1747
1747
  },
1748
- children: [/* @__PURE__ */ Z("span", {
1748
+ children: [/* @__PURE__ */ X("span", {
1749
1749
  className: "mono num",
1750
1750
  children: [
1751
1751
  d.length,
1752
1752
  "/",
1753
1753
  p
1754
1754
  ]
1755
- }), /* @__PURE__ */ X("span", {
1755
+ }), /* @__PURE__ */ Y("span", {
1756
1756
  className: "tabstrip-tabs-label",
1757
1757
  style: { color: "var(--text-3)" },
1758
1758
  children: y(n, "shell.tabs.count_label", p, {
@@ -1761,7 +1761,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1761
1761
  })
1762
1762
  })]
1763
1763
  }),
1764
- /* @__PURE__ */ X("span", {
1764
+ /* @__PURE__ */ Y("span", {
1765
1765
  className: "tabstrip-utility-divider",
1766
1766
  style: {
1767
1767
  width: 1,
@@ -1769,7 +1769,7 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1769
1769
  background: "var(--border)"
1770
1770
  }
1771
1771
  }),
1772
- /* @__PURE__ */ X("button", {
1772
+ /* @__PURE__ */ Y("button", {
1773
1773
  ref: a,
1774
1774
  onClick: () => u(!0),
1775
1775
  title: n("shell.tabs.actions", "Tab actions"),
@@ -1793,9 +1793,9 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1793
1793
  onMouseLeave: (e) => {
1794
1794
  e.currentTarget.style.background = "transparent";
1795
1795
  },
1796
- children: /* @__PURE__ */ X(L.more, { size: 13 })
1796
+ children: /* @__PURE__ */ Y(I.more, { size: 13 })
1797
1797
  }),
1798
- /* @__PURE__ */ X(la, {
1798
+ /* @__PURE__ */ Y(ua, {
1799
1799
  open: l,
1800
1800
  anchor: a.current,
1801
1801
  onClose: () => u(!1),
@@ -1808,39 +1808,39 @@ function ca({ onNew: e, onCloseRequest: t } = {}) {
1808
1808
  })]
1809
1809
  });
1810
1810
  }
1811
- function la({ open: e, anchor: t, onClose: n, canCloseCurrent: r, canCloseOthers: i, canCloseRight: a, onAction: o }) {
1812
- let s = I();
1813
- return /* @__PURE__ */ Z(ot, {
1811
+ function ua({ open: e, anchor: t, onClose: n, canCloseCurrent: r, canCloseOthers: i, canCloseRight: a, onAction: o }) {
1812
+ let s = F();
1813
+ return /* @__PURE__ */ X(st, {
1814
1814
  open: e,
1815
1815
  onClose: n,
1816
1816
  anchor: t,
1817
1817
  align: "end",
1818
1818
  width: 230,
1819
1819
  children: [
1820
- /* @__PURE__ */ X(z, {
1821
- icon: /* @__PURE__ */ X(L.x, { size: 13 }),
1820
+ /* @__PURE__ */ Y(R, {
1821
+ icon: /* @__PURE__ */ Y(I.x, { size: 13 }),
1822
1822
  disabled: !r,
1823
1823
  title: r ? void 0 : s("shell.tabs.none_closable", "No current tab can be closed"),
1824
1824
  onClick: () => o("current"),
1825
1825
  children: s("shell.tabs.close_current", "Close current tab")
1826
1826
  }),
1827
- /* @__PURE__ */ X(z, {
1828
- icon: /* @__PURE__ */ X(L.x, { size: 13 }),
1827
+ /* @__PURE__ */ Y(R, {
1828
+ icon: /* @__PURE__ */ Y(I.x, { size: 13 }),
1829
1829
  disabled: !i,
1830
1830
  title: i ? void 0 : s("shell.tabs.no_others", "No other tabs"),
1831
1831
  onClick: () => o("others"),
1832
1832
  children: s("shell.tabs.close_others", "Close others")
1833
1833
  }),
1834
- /* @__PURE__ */ X(z, {
1835
- icon: /* @__PURE__ */ X(L.x, { size: 13 }),
1834
+ /* @__PURE__ */ Y(R, {
1835
+ icon: /* @__PURE__ */ Y(I.x, { size: 13 }),
1836
1836
  disabled: !a,
1837
1837
  title: a ? void 0 : s("shell.tabs.none_right", "No tabs to the right"),
1838
1838
  onClick: () => o("right"),
1839
1839
  children: s("shell.tabs.close_right", "Close tabs to the right")
1840
1840
  }),
1841
- /* @__PURE__ */ X(z, { divider: !0 }),
1842
- /* @__PURE__ */ X(z, {
1843
- icon: /* @__PURE__ */ X(L.trash, { size: 13 }),
1841
+ /* @__PURE__ */ Y(R, { divider: !0 }),
1842
+ /* @__PURE__ */ Y(R, {
1843
+ icon: /* @__PURE__ */ Y(I.trash, { size: 13 }),
1844
1844
  danger: !0,
1845
1845
  onClick: () => o("all"),
1846
1846
  children: s("shell.tabs.close_all", "Close all tabs")
@@ -1850,32 +1850,32 @@ function la({ open: e, anchor: t, onClose: n, canCloseCurrent: r, canCloseOthers
1850
1850
  }
1851
1851
  //#endregion
1852
1852
  //#region src/components/layout/DirtyTabsCloseDialog.tsx
1853
- var ua = U(() => import("./DirtyTabsCloseDialog.impl-DWaFaWKn.js").then((e) => ({ default: e.DirtyTabsCloseDialog })));
1854
- function da(e) {
1855
- return /* @__PURE__ */ X(H, {
1853
+ var da = H(() => import("./DirtyTabsCloseDialog.impl-FhAiOmEb.js").then((e) => ({ default: e.DirtyTabsCloseDialog })));
1854
+ function fa(e) {
1855
+ return /* @__PURE__ */ Y(V, {
1856
1856
  fallback: null,
1857
- children: /* @__PURE__ */ X(ua, { ...e })
1857
+ children: /* @__PURE__ */ Y(da, { ...e })
1858
1858
  });
1859
1859
  }
1860
1860
  //#endregion
1861
1861
  //#region src/components/layout/ImpersonationBanner.tsx
1862
- var fa = U(() => import("./ImpersonationBanner.impl-CBJJx6an.js").then((e) => ({ default: e.ImpersonationBanner })));
1863
- function pa() {
1864
- return /* @__PURE__ */ X(H, {
1862
+ var pa = H(() => import("./ImpersonationBanner.impl--g0iYwcV.js").then((e) => ({ default: e.ImpersonationBanner })));
1863
+ function ma() {
1864
+ return /* @__PURE__ */ Y(V, {
1865
1865
  fallback: null,
1866
- children: /* @__PURE__ */ X(fa, {})
1866
+ children: /* @__PURE__ */ Y(pa, {})
1867
1867
  });
1868
1868
  }
1869
1869
  //#endregion
1870
1870
  //#region src/components/layout/ImpersonationFrame.tsx
1871
- function ma() {
1872
- let { info: e } = xn(), { value: t } = fn(e ? "impersonation.allow_destructive" : "", !1);
1873
- return G(() => {
1871
+ function ha() {
1872
+ let { info: e } = Cn(), { value: t } = pn(e ? "impersonation.allow_destructive" : "", !1);
1873
+ return W(() => {
1874
1874
  if (!e) document.body.removeAttribute("data-impersonation-destructive");
1875
1875
  else return t ? document.body.setAttribute("data-impersonation-destructive", "true") : document.body.removeAttribute("data-impersonation-destructive"), () => {
1876
1876
  document.body.removeAttribute("data-impersonation-destructive");
1877
1877
  };
1878
- }, [e, t]), e ? /* @__PURE__ */ X("div", {
1878
+ }, [e, t]), e ? /* @__PURE__ */ Y("div", {
1879
1879
  "data-testid": "impersonation-frame",
1880
1880
  "aria-hidden": "true",
1881
1881
  style: {
@@ -1892,9 +1892,9 @@ function ma() {
1892
1892
  }
1893
1893
  //#endregion
1894
1894
  //#region src/components/layout/tab-close.ts
1895
- function ha(e, t, n, r) {
1895
+ function ga(e, t, n, r) {
1896
1896
  if (n === "current" && e.length <= 1) return null;
1897
- let i = pt(e, t, n, r);
1897
+ let i = mt(e, t, n, r);
1898
1898
  if (i.length === 0) return null;
1899
1899
  let a = new Set(i), o = e.filter((e) => a.has(e.id) && e.dirty), s = new Set(o.map((e) => e.id));
1900
1900
  return {
@@ -1903,7 +1903,7 @@ function ha(e, t, n, r) {
1903
1903
  cleanIds: i.filter((e) => !s.has(e))
1904
1904
  };
1905
1905
  }
1906
- function ga(e) {
1906
+ function _a(e) {
1907
1907
  return e ? {
1908
1908
  pathname: e.pathname,
1909
1909
  search: e.search || void 0
@@ -1914,61 +1914,61 @@ function ga(e) {
1914
1914
  }
1915
1915
  //#endregion
1916
1916
  //#region src/components/layout/CommandPalette.tsx
1917
- var _a = U(() => import("./CommandPalette.impl-Db3AFA5w.js").then((e) => ({ default: e.CommandPalette })));
1918
- function va(e) {
1919
- return /* @__PURE__ */ X(H, {
1917
+ var va = H(() => import("./CommandPalette.impl-DRI5kxVY.js").then((e) => ({ default: e.CommandPalette })));
1918
+ function ya(e) {
1919
+ return /* @__PURE__ */ Y(V, {
1920
1920
  fallback: null,
1921
- children: /* @__PURE__ */ X(_a, { ...e })
1921
+ children: /* @__PURE__ */ Y(va, { ...e })
1922
1922
  });
1923
1923
  }
1924
1924
  //#endregion
1925
1925
  //#region src/components/agents/AgentChatPanel.tsx
1926
- var ya = U(() => import("./AgentChatPanel.impl-8bw8J-xV.js").then((e) => ({ default: e.AgentChatPanel })));
1927
- function ba(e) {
1928
- return e.open ? /* @__PURE__ */ X(H, {
1926
+ var ba = H(() => import("./AgentChatPanel.impl-D5y_qEex.js").then((e) => ({ default: e.AgentChatPanel })));
1927
+ function xa(e) {
1928
+ return e.open ? /* @__PURE__ */ Y(V, {
1929
1929
  fallback: null,
1930
- children: /* @__PURE__ */ X(ya, { ...e })
1930
+ children: /* @__PURE__ */ Y(ba, { ...e })
1931
1931
  }) : null;
1932
1932
  }
1933
1933
  //#endregion
1934
1934
  //#region src/components/agents/AgentOpenFollower.tsx
1935
- var xa = U(() => import("./AgentOpenFollower.impl-Cga1q7_e.js").then((e) => ({ default: e.AgentOpenFollower })));
1936
- function Sa() {
1937
- return /* @__PURE__ */ X(H, {
1935
+ var Sa = H(() => import("./AgentOpenFollower.impl-BAs_wGEZ.js").then((e) => ({ default: e.AgentOpenFollower })));
1936
+ function Ca() {
1937
+ return /* @__PURE__ */ Y(V, {
1938
1938
  fallback: null,
1939
- children: /* @__PURE__ */ X(xa, {})
1939
+ children: /* @__PURE__ */ Y(Sa, {})
1940
1940
  });
1941
1941
  }
1942
1942
  //#endregion
1943
1943
  //#region src/components/layout/Layout.tsx
1944
1944
  var $ = "default";
1945
- function Ca() {
1946
- let e = I();
1947
- Hi(), Yn();
1948
- let { isAuthenticated: t, isLoading: n, user: r, activeTenant: i } = p(), a = O(), o = pi(), s = vn(), c = W((e) => s(e, { topLevel: !0 }), [s]), d = di(), { data: f } = l(), m = Ve(), h = V((e) => e.sidebar), g = V((e) => e.tabsPosition), _ = V((e) => e.aiSurface), v = V((e) => e.colorScheme), y = V((e) => e.set), b = V((e) => e.hydrateFromBranding), { branding: x } = cn(), S = Gt(), C = B((e) => e.tabs), ee = B((e) => e.activeTabId), te = B((e) => e.closeTabs), ne = B((e) => e.switchTab), re = B((e) => e.setScope), w = B((e) => e.hydrate), [T, ie] = J($), [E, ae] = J(!1), [oe, se] = J("default"), [D, k] = J(!1), [A, ce] = J(), [le, ue] = J(!1), [de, fe] = J(!1), pe = q(null), me = q(null), [j, he] = J(null), ge = _ !== "off" && S.isVisible("show_command_palette"), M = _ === "panel" || _ === "both", _e = _ === "command" || _ === "both", ve = sn(), ye = ve?.ai_name?.trim() ?? "", N = m.category === "phone" || m.category === "tablet", be = S.isVisible("show_topbar"), xe = !N && S.isVisible("show_rail"), Se = !N && S.isVisible("show_sidebar"), Ce = !N && S.isVisible("show_tabs"), we = N && S.isVisible("show_sidebar"), Te = N && S.isVisible("show_tabs"), Ee = wa(!N && M && D), De = S.isVisible("show_tenant_switcher"), Oe = S.isVisible("show_breadcrumbs"), ke = S.isVisible("show_theme_toggle"), P = W((e = "default") => {
1949
- ge && (se(e), ae(!0));
1950
- }, [ge]), Ae = W((e) => {
1945
+ function wa() {
1946
+ let e = F();
1947
+ Ui(), Zn();
1948
+ let { isAuthenticated: t, isLoading: n, user: r, activeTenant: i } = p(), a = O(), o = mi(), s = yn(), c = U((e) => s(e, { topLevel: !0 }), [s]), d = Q(), { data: f } = l(), m = He(), h = B((e) => e.sidebar), g = B((e) => e.tabsPosition), _ = B((e) => e.aiSurface), v = B((e) => e.colorScheme), y = B((e) => e.set), b = B((e) => e.hydrateFromBranding), { branding: x } = ln(), S = Kt(), C = z((e) => e.tabs), ee = z((e) => e.activeTabId), te = z((e) => e.closeTabs), ne = z((e) => e.switchTab), re = z((e) => e.setScope), w = z((e) => e.hydrate), [T, ie] = q($), [E, ae] = q(!1), [oe, se] = q("default"), [D, k] = q(!1), [ce, le] = q(), [ue, de] = q(!1), [fe, pe] = q(!1), me = K(null), he = K(null), [A, ge] = q(null), _e = _ !== "off" && S.isVisible("show_command_palette"), j = _ === "panel" || _ === "both", ve = _ === "command" || _ === "both", ye = cn(), be = ye?.ai_name?.trim() ?? "", M = m.category === "phone" || m.category === "tablet", xe = S.isVisible("show_topbar"), Se = !M && S.isVisible("show_rail"), Ce = !M && S.isVisible("show_sidebar"), we = !M && S.isVisible("show_tabs"), Te = M && S.isVisible("show_sidebar"), Ee = M && S.isVisible("show_tabs"), De = Ta(!M && j && D), Oe = S.isVisible("show_tenant_switcher"), ke = S.isVisible("show_breadcrumbs"), Ae = S.isVisible("show_theme_toggle"), N = U((e = "default") => {
1949
+ _e && (se(e), ae(!0));
1950
+ }, [_e]), je = U((e) => {
1951
1951
  if (e.length === 0) return;
1952
- let t = B.getState(), n = !t.activeTabId || e.includes(t.activeTabId), r = te(e);
1952
+ let t = z.getState(), n = !t.activeTabId || e.includes(t.activeTabId), r = te(e);
1953
1953
  if (!n) return;
1954
- let i = ga(r);
1954
+ let i = _a(r);
1955
1955
  o({
1956
1956
  pathname: i.pathname,
1957
1957
  search: i.search
1958
1958
  }, { replace: i.replace });
1959
- }, [te, o]), F = W((e, t) => {
1960
- let n = B.getState(), r = ha(n.tabs, n.activeTabId, e, t);
1961
- r && (r.dirtyTabs.length > 0 ? he(r) : Ae(r.ids));
1962
- }, [Ae]), je = W(() => {
1963
- he(null);
1964
- }, []), Me = W(() => {
1965
- j && (he(null), Ae(j.cleanIds));
1966
- }, [j, Ae]), Ne = W(() => {
1967
- j && (he(null), Ae(j.ids));
1968
- }, [j, Ae]);
1969
- kn();
1970
- let Pe = Zn(), { isImpersonating: Fe } = xn();
1971
- G(() => {
1959
+ }, [te, o]), P = U((e, t) => {
1960
+ let n = z.getState(), r = ga(n.tabs, n.activeTabId, e, t);
1961
+ r && (r.dirtyTabs.length > 0 ? ge(r) : je(r.ids));
1962
+ }, [je]), Me = U(() => {
1963
+ ge(null);
1964
+ }, []), Ne = U(() => {
1965
+ A && (ge(null), je(A.cleanIds));
1966
+ }, [A, je]), Pe = U(() => {
1967
+ A && (ge(null), je(A.ids));
1968
+ }, [A, je]);
1969
+ jn();
1970
+ let Fe = $n(), { isImpersonating: Ie } = Cn();
1971
+ W(() => {
1972
1972
  a.enabled || !n && !t && o(u(`${d.pathname}${d.search}${d.hash}`), { replace: !0 });
1973
1973
  }, [
1974
1974
  a.enabled,
@@ -1978,19 +1978,19 @@ function Ca() {
1978
1978
  d.hash,
1979
1979
  d.pathname,
1980
1980
  d.search
1981
- ]), G(() => {
1981
+ ]), W(() => {
1982
1982
  let e = r?.id || null, t = i?.id || null;
1983
- re(t, e), Xn.getState().setScope(t, e), e && t && (w(), Xn.getState().hydrate(), Bn());
1983
+ re(t, e), Qn.getState().setScope(t, e), e && t && (w(), Qn.getState().hydrate(), Hn());
1984
1984
  }, [
1985
1985
  r?.id,
1986
1986
  i?.id,
1987
1987
  re,
1988
1988
  w
1989
- ]), G(() => {
1989
+ ]), W(() => {
1990
1990
  b(x?.preferences);
1991
- }, [x, b]), G(() => {
1991
+ }, [x, b]), W(() => {
1992
1992
  if (!f) return;
1993
- let e = Na(f.navigation, f.screens, d.pathname);
1993
+ let e = Pa(f.navigation, f.screens, d.pathname);
1994
1994
  if (e) {
1995
1995
  ie(e);
1996
1996
  return;
@@ -2003,29 +2003,29 @@ function Ca() {
2003
2003
  f,
2004
2004
  d.pathname,
2005
2005
  T
2006
- ]), G(() => {
2007
- ue(!1), fe(!1);
2008
- }, [d.pathname, d.search]), G(() => {
2006
+ ]), W(() => {
2007
+ de(!1), pe(!1);
2008
+ }, [d.pathname, d.search]), W(() => {
2009
2009
  let e = (e) => {
2010
2010
  let t = document.activeElement, n = !!t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable), r = e.metaKey || e.ctrlKey;
2011
- r && e.key.toLowerCase() === "k" ? (e.preventDefault(), P("default")) : r && e.key.toLowerCase() === "t" ? (e.preventDefault(), P("new")) : r && e.key.toLowerCase() === "b" ? (e.preventDefault(), y("sidebar", h === "collapsed" ? "wide" : "collapsed")) : r && e.key.toLowerCase() === "w" ? (e.preventDefault(), F("current")) : r && e.key === "/" ? (e.preventDefault(), M && k((e) => !e)) : e.key === "/" && !n ? (e.preventDefault(), P("default")) : e.key === "Escape" && ae(!1);
2011
+ 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(), y("sidebar", h === "collapsed" ? "wide" : "collapsed")) : r && e.key.toLowerCase() === "w" ? (e.preventDefault(), P("current")) : r && e.key === "/" ? (e.preventDefault(), j && k((e) => !e)) : e.key === "/" && !n ? (e.preventDefault(), N("default")) : e.key === "Escape" && ae(!1);
2012
2012
  };
2013
2013
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2014
2014
  }, [
2015
+ N,
2015
2016
  P,
2016
- F,
2017
2017
  y,
2018
2018
  h,
2019
- M
2019
+ j
2020
2020
  ]);
2021
- let Ie = K(() => f ? Pa(e, f.navigation, f.screens, d.pathname, C, c) : [], [
2021
+ let Le = G(() => f ? Fa(e, f.navigation, f.screens, d.pathname, C, c) : [], [
2022
2022
  e,
2023
2023
  f,
2024
2024
  d.pathname,
2025
2025
  C,
2026
2026
  c
2027
2027
  ]);
2028
- if (n) return /* @__PURE__ */ X("div", {
2028
+ if (n) return /* @__PURE__ */ Y("div", {
2029
2029
  style: {
2030
2030
  display: "flex",
2031
2031
  height: "var(--app-height)",
@@ -2037,11 +2037,11 @@ function Ca() {
2037
2037
  children: e("shell.loading", "Loading…")
2038
2038
  });
2039
2039
  if (!t) return null;
2040
- let Le = (e) => {
2040
+ let Re = (e) => {
2041
2041
  ie(e);
2042
- let t = Ma(e, f);
2042
+ let t = Na(e, f);
2043
2043
  t && c(t);
2044
- }, Re = (e) => {
2044
+ }, ze = (e) => {
2045
2045
  switch (e.type) {
2046
2046
  case "nav":
2047
2047
  e.route && c(e.route);
@@ -2053,75 +2053,75 @@ function Ca() {
2053
2053
  e.route && c(e.route);
2054
2054
  break;
2055
2055
  case "ai":
2056
- M && (ce(e.q), k(!0));
2056
+ j && (le(e.q), k(!0));
2057
2057
  break;
2058
2058
  case "ai-panel":
2059
- M && (ce(void 0), k(!0));
2059
+ j && (le(void 0), k(!0));
2060
2060
  break;
2061
2061
  case "theme":
2062
2062
  y("colorScheme", v === "dark" ? "light" : "dark");
2063
2063
  break;
2064
- case "tab-close": e.tabCloseScope && F(e.tabCloseScope);
2064
+ case "tab-close": e.tabCloseScope && P(e.tabCloseScope);
2065
2065
  }
2066
2066
  };
2067
- return a.enabled ? /* @__PURE__ */ Z(Pn, { children: [
2068
- /* @__PURE__ */ X(Ui, {}),
2069
- /* @__PURE__ */ X(Ii, {}),
2070
- /* @__PURE__ */ X(Wi, {}),
2071
- /* @__PURE__ */ X(Fi, {}),
2072
- /* @__PURE__ */ X(Pi, {}),
2073
- /* @__PURE__ */ X("div", {
2067
+ return a.enabled ? /* @__PURE__ */ X(In, { children: [
2068
+ /* @__PURE__ */ Y(Wi, {}),
2069
+ /* @__PURE__ */ Y(Li, {}),
2070
+ /* @__PURE__ */ Y(Gi, {}),
2071
+ /* @__PURE__ */ Y(Ii, {}),
2072
+ /* @__PURE__ */ Y(Fi, {}),
2073
+ /* @__PURE__ */ Y("div", {
2074
2074
  id: "app-embed",
2075
2075
  className: "flex min-h-0 flex-col overflow-auto",
2076
2076
  style: { height: "var(--app-height)" },
2077
- children: /* @__PURE__ */ X(ci, {})
2077
+ children: /* @__PURE__ */ Y(ui, {})
2078
2078
  })
2079
- ] }) : /* @__PURE__ */ X(Pn, { children: /* @__PURE__ */ Z("div", {
2079
+ ] }) : /* @__PURE__ */ Y(In, { children: /* @__PURE__ */ X("div", {
2080
2080
  id: "app",
2081
2081
  "data-sidebar": h,
2082
- "data-mobile-shell": N ? "true" : void 0,
2083
- style: Ta({
2084
- mobileShell: N,
2085
- showBanner: Fe,
2086
- showTopbar: be,
2087
- showRail: xe,
2088
- showSidebar: Se,
2082
+ "data-mobile-shell": M ? "true" : void 0,
2083
+ style: Ea({
2084
+ mobileShell: M,
2085
+ showBanner: Ie,
2086
+ showTopbar: xe,
2087
+ showRail: Se,
2088
+ showSidebar: Ce,
2089
2089
  sidebarMode: h,
2090
- showAssistant: Ee
2090
+ showAssistant: De
2091
2091
  }),
2092
2092
  children: [
2093
- Fe && /* @__PURE__ */ X(pa, {}),
2094
- /* @__PURE__ */ X(ma, {}),
2095
- be && /* @__PURE__ */ X(sa, {
2096
- breadcrumbs: Ie,
2093
+ Ie && /* @__PURE__ */ Y(ma, {}),
2094
+ /* @__PURE__ */ Y(ha, {}),
2095
+ xe && /* @__PURE__ */ Y(ca, {
2096
+ breadcrumbs: Le,
2097
2097
  onCrumbClick: (e) => e.onClick && e.onClick(),
2098
- showNavButton: we,
2099
- navButtonRef: pe,
2100
- onOpenNav: () => ue(!0),
2101
- showTabsButton: Te,
2102
- tabsButtonRef: me,
2103
- onOpenTabs: () => fe(!0),
2098
+ showNavButton: Te,
2099
+ navButtonRef: me,
2100
+ onOpenNav: () => de(!0),
2101
+ showTabsButton: Ee,
2102
+ tabsButtonRef: he,
2103
+ onOpenTabs: () => pe(!0),
2104
2104
  mobileTabCount: C.length,
2105
- onCmdK: () => P("default"),
2106
- onToggleAI: () => M && k((e) => !e),
2105
+ onCmdK: () => N("default"),
2106
+ onToggleAI: () => j && k((e) => !e),
2107
2107
  aiOpen: D,
2108
2108
  onOpenProfile: () => c("/profile"),
2109
2109
  onOpenPrefs: () => c("/preferences"),
2110
- showTenantSwitcher: De,
2111
- showBreadcrumbs: Oe,
2112
- showThemeToggle: ke
2110
+ showTenantSwitcher: Oe,
2111
+ showBreadcrumbs: ke,
2112
+ showThemeToggle: Ae
2113
2113
  }),
2114
- xe && /* @__PURE__ */ X(wi, {
2114
+ Se && /* @__PURE__ */ Y(Ti, {
2115
2115
  activeArea: T,
2116
- onPick: Le,
2117
- onToggleAI: () => M && k((e) => !e),
2116
+ onPick: Re,
2117
+ onToggleAI: () => j && k((e) => !e),
2118
2118
  aiOpen: D,
2119
- onCmdK: () => P("default"),
2119
+ onCmdK: () => N("default"),
2120
2120
  areas: f?.areas,
2121
- branding: ve
2121
+ branding: ye
2122
2122
  }),
2123
- Se && /* @__PURE__ */ X(Gi, { activeArea: T }),
2124
- /* @__PURE__ */ Z("main", {
2123
+ Ce && /* @__PURE__ */ Y(Ki, { activeArea: T }),
2124
+ /* @__PURE__ */ X("main", {
2125
2125
  style: {
2126
2126
  gridArea: "main",
2127
2127
  overflow: "hidden",
@@ -2130,11 +2130,11 @@ function Ca() {
2130
2130
  minWidth: 0
2131
2131
  },
2132
2132
  children: [
2133
- Ce && g === "top" && /* @__PURE__ */ X(ca, {
2134
- onNew: () => P("new"),
2135
- onCloseRequest: F
2133
+ we && g === "top" && /* @__PURE__ */ Y(la, {
2134
+ onNew: () => N("new"),
2135
+ onCloseRequest: P
2136
2136
  }),
2137
- /* @__PURE__ */ X("div", {
2137
+ /* @__PURE__ */ Y("div", {
2138
2138
  style: {
2139
2139
  flex: 1,
2140
2140
  overflow: "auto",
@@ -2142,75 +2142,75 @@ function Ca() {
2142
2142
  display: "flex",
2143
2143
  flexDirection: "column"
2144
2144
  },
2145
- children: /* @__PURE__ */ X(ci, {})
2145
+ children: /* @__PURE__ */ Y(ui, {})
2146
2146
  }),
2147
- Ce && g === "bottom" && /* @__PURE__ */ X(ca, {
2148
- onNew: () => P("new"),
2149
- onCloseRequest: F
2147
+ we && g === "bottom" && /* @__PURE__ */ Y(la, {
2148
+ onNew: () => N("new"),
2149
+ onCloseRequest: P
2150
2150
  })
2151
2151
  ]
2152
2152
  }),
2153
- ge && /* @__PURE__ */ X(va, {
2153
+ _e && /* @__PURE__ */ Y(ya, {
2154
2154
  open: E,
2155
2155
  mode: oe,
2156
2156
  onClose: () => ae(!1),
2157
- onAction: (e) => Re(e),
2157
+ onAction: (e) => ze(e),
2158
2158
  navigation: f?.navigation,
2159
2159
  screens: f?.screens,
2160
- includeAI: _e,
2161
- aiName: ye
2160
+ includeAI: ve,
2161
+ aiName: be
2162
2162
  }),
2163
- /* @__PURE__ */ X(Sa, {}),
2164
- M && D && /* @__PURE__ */ X(ba, {
2163
+ /* @__PURE__ */ Y(Ca, {}),
2164
+ j && D && /* @__PURE__ */ Y(xa, {
2165
2165
  open: D,
2166
- docked: Ee,
2166
+ docked: De,
2167
2167
  onClose: () => {
2168
- k(!1), ce(void 0);
2168
+ k(!1), le(void 0);
2169
2169
  },
2170
- title: ye,
2171
- askOnOpen: A,
2172
- context: Pe ?? void 0
2170
+ title: be,
2171
+ askOnOpen: ce,
2172
+ context: Fe ?? void 0
2173
2173
  }),
2174
- we && /* @__PURE__ */ X(Aa, {
2175
- open: le,
2174
+ Te && /* @__PURE__ */ Y(ja, {
2175
+ open: ue,
2176
2176
  activeArea: T,
2177
2177
  schema: f,
2178
- returnFocusRef: pe,
2179
- onClose: () => ue(!1),
2178
+ returnFocusRef: me,
2179
+ onClose: () => de(!1),
2180
2180
  onNavigate: c
2181
2181
  }),
2182
- Te && /* @__PURE__ */ X(ja, {
2183
- open: de,
2182
+ Ee && /* @__PURE__ */ Y(Ma, {
2183
+ open: fe,
2184
2184
  tabs: C,
2185
2185
  activeTabId: ee,
2186
- returnFocusRef: me,
2187
- onClose: () => fe(!1),
2186
+ returnFocusRef: he,
2187
+ onClose: () => pe(!1),
2188
2188
  onSwitch: (e) => {
2189
2189
  ne(e.id), o({
2190
2190
  pathname: e.pathname,
2191
2191
  search: e.search
2192
- }, { replace: !1 }), fe(!1);
2192
+ }, { replace: !1 }), pe(!1);
2193
2193
  },
2194
- onCloseTab: (e) => F("current", e)
2194
+ onCloseTab: (e) => P("current", e)
2195
2195
  }),
2196
- /* @__PURE__ */ X(da, {
2197
- pending: j,
2198
- onCancel: je,
2199
- onCloseClean: Me,
2200
- onDiscardAll: Ne
2196
+ /* @__PURE__ */ Y(fa, {
2197
+ pending: A,
2198
+ onCancel: Me,
2199
+ onCloseClean: Ne,
2200
+ onDiscardAll: Pe
2201
2201
  })
2202
2202
  ]
2203
2203
  }) });
2204
2204
  }
2205
- function wa(e) {
2206
- return G(() => {
2205
+ function Ta(e) {
2206
+ return W(() => {
2207
2207
  let t = document.documentElement.style;
2208
2208
  return t.setProperty("--assistant-open-w", e ? "var(--assistant-w)" : "0px"), () => {
2209
2209
  t.removeProperty("--assistant-open-w");
2210
2210
  };
2211
2211
  }, [e]), e;
2212
2212
  }
2213
- function Ta({ mobileShell: e, showBanner: t, showTopbar: n, showRail: r, showSidebar: i, sidebarMode: a, showAssistant: o }) {
2213
+ function Ea({ mobileShell: e, showBanner: t, showTopbar: n, showRail: r, showSidebar: i, sidebarMode: a, showAssistant: o }) {
2214
2214
  let s = [
2215
2215
  ...t ? ["auto"] : [],
2216
2216
  ...n ? ["var(--topbar-h)"] : [],
@@ -2241,7 +2241,7 @@ function Ta({ mobileShell: e, showBanner: t, showTopbar: n, showRail: r, showSid
2241
2241
  overflow: "hidden"
2242
2242
  };
2243
2243
  }
2244
- var Ea = [
2244
+ var Da = [
2245
2245
  "a[href]",
2246
2246
  "button:not([disabled])",
2247
2247
  "input:not([disabled])",
@@ -2249,14 +2249,14 @@ var Ea = [
2249
2249
  "textarea:not([disabled])",
2250
2250
  "[tabindex]:not([tabindex='-1'])"
2251
2251
  ].join(",");
2252
- function Da(e) {
2253
- return e ? Array.from(e.querySelectorAll(Ea)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true") : [];
2254
- }
2255
2252
  function Oa(e) {
2256
- Da(e)[0]?.focus();
2253
+ return e ? Array.from(e.querySelectorAll(Da)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true") : [];
2257
2254
  }
2258
- function ka(e, t) {
2259
- let n = Da(e);
2255
+ function ka(e) {
2256
+ Oa(e)[0]?.focus();
2257
+ }
2258
+ function Aa(e, t) {
2259
+ let n = Oa(e);
2260
2260
  if (n.length === 0) {
2261
2261
  t.preventDefault();
2262
2262
  return;
@@ -2264,16 +2264,16 @@ function ka(e, t) {
2264
2264
  let r = n[0], i = n[n.length - 1], a = document.activeElement;
2265
2265
  t.shiftKey && a === r ? (t.preventDefault(), i.focus()) : !t.shiftKey && a === i && (t.preventDefault(), r.focus());
2266
2266
  }
2267
- function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i, onNavigate: a }) {
2268
- let o = I(), [s, c] = J(t), l = q(null);
2269
- if (G(() => {
2267
+ function ja({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i, onNavigate: a }) {
2268
+ let o = F(), [s, c] = q(t), l = K(null);
2269
+ if (W(() => {
2270
2270
  e && c(t);
2271
- }, [e, t]), G(() => {
2271
+ }, [e, t]), W(() => {
2272
2272
  if (!e) return;
2273
2273
  let t = document.activeElement instanceof HTMLElement ? document.activeElement : null, n = r.current;
2274
- requestAnimationFrame(() => Oa(l.current));
2274
+ requestAnimationFrame(() => ka(l.current));
2275
2275
  let a = (e) => {
2276
- e.key === "Escape" ? (e.preventDefault(), i()) : e.key === "Tab" && ka(l.current, e);
2276
+ e.key === "Escape" ? (e.preventDefault(), i()) : e.key === "Tab" && Aa(l.current, e);
2277
2277
  };
2278
2278
  return window.addEventListener("keydown", a), () => {
2279
2279
  window.removeEventListener("keydown", a), (n ?? t)?.focus();
@@ -2290,13 +2290,13 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2290
2290
  return o(t?.name) || (e === $ ? o("shell.nav.title", "Navigation") : e);
2291
2291
  }, f = (e, t) => {
2292
2292
  let r = e.screen ? n.screens[e.screen] : void 0, s = [...e.items ?? [], ...e.children ?? []], c = o(e.name) || (r ? o(r.display?.name) : "");
2293
- return /* @__PURE__ */ Z("div", {
2293
+ return /* @__PURE__ */ X("div", {
2294
2294
  style: {
2295
2295
  display: "flex",
2296
2296
  flexDirection: "column",
2297
2297
  gap: 2
2298
2298
  },
2299
- children: [r?.route ? /* @__PURE__ */ Z("button", {
2299
+ children: [r?.route ? /* @__PURE__ */ X("button", {
2300
2300
  type: "button",
2301
2301
  onClick: () => {
2302
2302
  a(r.route), i();
@@ -2315,7 +2315,7 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2315
2315
  textAlign: "left",
2316
2316
  cursor: "pointer"
2317
2317
  },
2318
- children: [/* @__PURE__ */ X("span", { style: { width: 12 } }), /* @__PURE__ */ X("span", {
2318
+ children: [/* @__PURE__ */ Y("span", { style: { width: 12 } }), /* @__PURE__ */ Y("span", {
2319
2319
  style: {
2320
2320
  minWidth: 0,
2321
2321
  overflow: "hidden",
@@ -2324,7 +2324,7 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2324
2324
  },
2325
2325
  children: c || r.route
2326
2326
  })]
2327
- }) : c ? /* @__PURE__ */ X("div", {
2327
+ }) : c ? /* @__PURE__ */ Y("div", {
2328
2328
  style: {
2329
2329
  padding: `7px 10px 5px ${10 + t * 14}px`,
2330
2330
  color: "var(--text-3)",
@@ -2337,7 +2337,7 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2337
2337
  }) : null, s.map((e) => f(e, t + 1))]
2338
2338
  }, `${t}-${e.screen ?? c}`);
2339
2339
  };
2340
- return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
2340
+ return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("div", {
2341
2341
  "data-testid": "mobile-nav-backdrop",
2342
2342
  onClick: i,
2343
2343
  style: {
@@ -2346,7 +2346,7 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2346
2346
  background: "var(--scrim-lite)",
2347
2347
  zIndex: 120
2348
2348
  }
2349
- }), /* @__PURE__ */ Z("aside", {
2349
+ }), /* @__PURE__ */ X("aside", {
2350
2350
  ref: l,
2351
2351
  role: "dialog",
2352
2352
  "aria-modal": "true",
@@ -2370,7 +2370,7 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2370
2370
  boxSizing: "border-box",
2371
2371
  overflow: "hidden"
2372
2372
  },
2373
- children: [/* @__PURE__ */ Z("div", {
2373
+ children: [/* @__PURE__ */ X("div", {
2374
2374
  style: {
2375
2375
  display: "flex",
2376
2376
  alignItems: "center",
@@ -2378,18 +2378,18 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2378
2378
  minHeight: 36,
2379
2379
  padding: "0 2px 8px"
2380
2380
  },
2381
- children: [/* @__PURE__ */ X("strong", {
2381
+ children: [/* @__PURE__ */ Y("strong", {
2382
2382
  style: {
2383
2383
  fontSize: 13,
2384
2384
  flex: 1
2385
2385
  },
2386
2386
  children: o("shell.nav.title", "Navigation")
2387
- }), /* @__PURE__ */ X(R, {
2388
- icon: /* @__PURE__ */ X(L.x, { size: 15 }),
2387
+ }), /* @__PURE__ */ Y(L, {
2388
+ icon: /* @__PURE__ */ Y(I.x, { size: 15 }),
2389
2389
  title: o("shell.nav.close", "Close navigation"),
2390
2390
  onClick: i
2391
2391
  })]
2392
- }), /* @__PURE__ */ X("nav", {
2392
+ }), /* @__PURE__ */ Y("nav", {
2393
2393
  style: {
2394
2394
  overflowY: "auto",
2395
2395
  overscrollBehavior: "contain",
@@ -2398,8 +2398,8 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2398
2398
  gap: 6
2399
2399
  },
2400
2400
  children: u.map((e) => {
2401
- let r = s === e, i = Ki(o, n.navigation ?? [], e);
2402
- return /* @__PURE__ */ Z("section", { children: [/* @__PURE__ */ Z("button", {
2401
+ let r = s === e, i = qi(o, n.navigation ?? [], e);
2402
+ return /* @__PURE__ */ X("section", { children: [/* @__PURE__ */ X("button", {
2403
2403
  type: "button",
2404
2404
  onClick: () => c(r ? "" : e),
2405
2405
  style: {
@@ -2418,16 +2418,16 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2418
2418
  cursor: "pointer"
2419
2419
  },
2420
2420
  "aria-expanded": r,
2421
- children: [/* @__PURE__ */ X("span", {
2421
+ children: [/* @__PURE__ */ Y("span", {
2422
2422
  style: {
2423
2423
  flex: 1,
2424
2424
  textAlign: "left"
2425
2425
  },
2426
2426
  children: d(e)
2427
- }), X(r ? L.down : L.right, { size: 13 })]
2428
- }), r && /* @__PURE__ */ X("div", {
2427
+ }), Y(r ? I.down : I.right, { size: 13 })]
2428
+ }), r && /* @__PURE__ */ Y("div", {
2429
2429
  style: { padding: "6px 0 4px" },
2430
- children: i.flatMap((t) => [t.title ? /* @__PURE__ */ X("div", {
2430
+ children: i.flatMap((t) => [t.title ? /* @__PURE__ */ Y("div", {
2431
2431
  style: {
2432
2432
  padding: "8px 10px 4px",
2433
2433
  color: "var(--text-3)",
@@ -2443,14 +2443,14 @@ function Aa({ open: e, activeArea: t, schema: n, returnFocusRef: r, onClose: i,
2443
2443
  })]
2444
2444
  })] });
2445
2445
  }
2446
- function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, onSwitch: a, onCloseTab: o }) {
2447
- let s = I(), c = Cn(), l = q(null);
2448
- return G(() => {
2446
+ function Ma({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, onSwitch: a, onCloseTab: o }) {
2447
+ let s = F(), c = Tn(), l = K(null);
2448
+ return W(() => {
2449
2449
  if (!e) return;
2450
2450
  let t = document.activeElement instanceof HTMLElement ? document.activeElement : null, n = r.current;
2451
- requestAnimationFrame(() => Oa(l.current));
2451
+ requestAnimationFrame(() => ka(l.current));
2452
2452
  let a = (e) => {
2453
- e.key === "Escape" ? (e.preventDefault(), i()) : e.key === "Tab" && ka(l.current, e);
2453
+ e.key === "Escape" ? (e.preventDefault(), i()) : e.key === "Tab" && Aa(l.current, e);
2454
2454
  };
2455
2455
  return window.addEventListener("keydown", a), () => {
2456
2456
  window.removeEventListener("keydown", a), (n ?? t)?.focus();
@@ -2459,7 +2459,7 @@ function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, o
2459
2459
  e,
2460
2460
  i,
2461
2461
  r
2462
- ]), e ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
2462
+ ]), e ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("div", {
2463
2463
  "data-testid": "mobile-tabs-backdrop",
2464
2464
  onClick: i,
2465
2465
  style: {
@@ -2468,7 +2468,7 @@ function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, o
2468
2468
  background: "var(--scrim-lite)",
2469
2469
  zIndex: 122
2470
2470
  }
2471
- }), /* @__PURE__ */ Z("section", {
2471
+ }), /* @__PURE__ */ X("section", {
2472
2472
  ref: l,
2473
2473
  role: "dialog",
2474
2474
  "aria-modal": "true",
@@ -2491,32 +2491,32 @@ function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, o
2491
2491
  padding: 6,
2492
2492
  boxSizing: "border-box"
2493
2493
  },
2494
- children: [/* @__PURE__ */ Z("div", {
2494
+ children: [/* @__PURE__ */ X("div", {
2495
2495
  style: {
2496
2496
  display: "flex",
2497
2497
  alignItems: "center",
2498
2498
  gap: 8,
2499
2499
  padding: "4px 4px 8px"
2500
2500
  },
2501
- children: [/* @__PURE__ */ X("strong", {
2501
+ children: [/* @__PURE__ */ Y("strong", {
2502
2502
  style: {
2503
2503
  flex: 1,
2504
2504
  fontSize: 13
2505
2505
  },
2506
2506
  children: s("shell.tabs.open_tabs", "Open tabs")
2507
- }), /* @__PURE__ */ X(R, {
2508
- icon: /* @__PURE__ */ X(L.x, { size: 14 }),
2507
+ }), /* @__PURE__ */ Y(L, {
2508
+ icon: /* @__PURE__ */ Y(I.x, { size: 14 }),
2509
2509
  title: s("shell.tabs.close_menu", "Close tabs menu"),
2510
2510
  onClick: i
2511
2511
  })]
2512
- }), t.length === 0 ? /* @__PURE__ */ X("div", {
2512
+ }), t.length === 0 ? /* @__PURE__ */ Y("div", {
2513
2513
  style: {
2514
2514
  padding: 10,
2515
2515
  color: "var(--text-3)",
2516
2516
  fontSize: 12
2517
2517
  },
2518
2518
  children: s("shell.tabs.none_open", "No open tabs")
2519
- }) : t.map((e) => /* @__PURE__ */ Z("div", {
2519
+ }) : t.map((e) => /* @__PURE__ */ X("div", {
2520
2520
  style: {
2521
2521
  display: "grid",
2522
2522
  gridTemplateColumns: "minmax(0, 1fr) auto",
@@ -2525,7 +2525,7 @@ function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, o
2525
2525
  borderRadius: 6,
2526
2526
  background: e.id === n ? "var(--surface-3)" : "transparent"
2527
2527
  },
2528
- children: [/* @__PURE__ */ Z("button", {
2528
+ children: [/* @__PURE__ */ X("button", {
2529
2529
  type: "button",
2530
2530
  onClick: () => a(e),
2531
2531
  style: {
@@ -2541,7 +2541,7 @@ function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, o
2541
2541
  textAlign: "left",
2542
2542
  cursor: "pointer"
2543
2543
  },
2544
- children: [/* @__PURE__ */ X(L.layers, { size: 13 }), /* @__PURE__ */ X("span", {
2544
+ children: [/* @__PURE__ */ Y(I.layers, { size: 13 }), /* @__PURE__ */ Y("span", {
2545
2545
  style: {
2546
2546
  overflow: "hidden",
2547
2547
  textOverflow: "ellipsis",
@@ -2549,15 +2549,15 @@ function ja({ open: e, tabs: t, activeTabId: n, returnFocusRef: r, onClose: i, o
2549
2549
  },
2550
2550
  children: c(e)
2551
2551
  })]
2552
- }), e.closable && /* @__PURE__ */ X(R, {
2553
- icon: /* @__PURE__ */ X(L.x, { size: 12 }),
2552
+ }), e.closable && /* @__PURE__ */ Y(L, {
2553
+ icon: /* @__PURE__ */ Y(I.x, { size: 12 }),
2554
2554
  title: s("shell.tabs.close_named", "Close {title}", { title: c(e) }),
2555
2555
  onClick: () => o(e.id)
2556
2556
  })]
2557
2557
  }, e.id))]
2558
2558
  })] }) : null;
2559
2559
  }
2560
- function Ma(e, t) {
2560
+ function Na(e, t) {
2561
2561
  if (!t) return;
2562
2562
  let n = t.areas?.find((t) => t.code === e);
2563
2563
  if (n?.home_screen) {
@@ -2584,7 +2584,7 @@ function Ma(e, t) {
2584
2584
  if (t) return t;
2585
2585
  }
2586
2586
  }
2587
- function Na(e, t, n) {
2587
+ function Pa(e, t, n) {
2588
2588
  let r = (e) => {
2589
2589
  if (!e.screen) return !1;
2590
2590
  let r = t[e.screen];
@@ -2605,7 +2605,7 @@ function Na(e, t, n) {
2605
2605
  if (e) return e;
2606
2606
  }
2607
2607
  }
2608
- function Pa(e, t, n, r, i, a) {
2608
+ function Fa(e, t, n, r, i, a) {
2609
2609
  let o = (e, t) => {
2610
2610
  if (e.screen) {
2611
2611
  let i = n[e.screen];
@@ -2655,52 +2655,52 @@ function Pa(e, t, n, r, i, a) {
2655
2655
  }
2656
2656
  //#endregion
2657
2657
  //#region src/components/pages/auth/icons.tsx
2658
- function Fa({ size: e = 14 }) {
2659
- return /* @__PURE__ */ Z("svg", {
2658
+ function Ia({ size: e = 14 }) {
2659
+ return /* @__PURE__ */ X("svg", {
2660
2660
  width: e,
2661
2661
  height: e,
2662
2662
  viewBox: "0 0 24 24",
2663
2663
  "aria-hidden": !0,
2664
2664
  children: [
2665
- /* @__PURE__ */ X("path", {
2665
+ /* @__PURE__ */ Y("path", {
2666
2666
  fill: "#4285F4",
2667
2667
  d: "M22.5 12.27c0-.79-.07-1.55-.2-2.27h-9.8v4.5h5.6c-.24 1.28-.97 2.37-2.07 3.1v2.57h3.35c1.96-1.8 3.12-4.47 3.12-7.9z"
2668
2668
  }),
2669
- /* @__PURE__ */ X("path", {
2669
+ /* @__PURE__ */ Y("path", {
2670
2670
  fill: "#34A853",
2671
2671
  d: "M12.5 22c2.8 0 5.15-.92 6.87-2.5l-3.35-2.57c-.93.62-2.12.99-3.52.99-2.7 0-4.99-1.82-5.81-4.27h-3.46v2.66C4.95 19.6 8.42 22 12.5 22z"
2672
2672
  }),
2673
- /* @__PURE__ */ X("path", {
2673
+ /* @__PURE__ */ Y("path", {
2674
2674
  fill: "#FBBC05",
2675
2675
  d: "M6.69 13.65a6 6 0 010-3.8V7.18H3.23a10 10 0 000 9.13z"
2676
2676
  }),
2677
- /* @__PURE__ */ X("path", {
2677
+ /* @__PURE__ */ Y("path", {
2678
2678
  fill: "#EA4335",
2679
2679
  d: "M12.5 6.02c1.52 0 2.88.52 3.95 1.54l2.97-2.97C17.65 2.98 15.3 2 12.5 2c-4.08 0-7.55 2.4-9.27 5.82l3.46 2.66C7.51 7.84 9.8 6.02 12.5 6.02z"
2680
2680
  })
2681
2681
  ]
2682
2682
  });
2683
2683
  }
2684
- function Ia({ size: e = 14 }) {
2685
- return /* @__PURE__ */ Z("svg", {
2684
+ function La({ size: e = 14 }) {
2685
+ return /* @__PURE__ */ X("svg", {
2686
2686
  width: e,
2687
2687
  height: e,
2688
2688
  viewBox: "0 0 24 24",
2689
2689
  "aria-hidden": !0,
2690
2690
  children: [
2691
- /* @__PURE__ */ X("path", {
2691
+ /* @__PURE__ */ Y("path", {
2692
2692
  fill: "#F25022",
2693
2693
  d: "M1 1h10v10H1z"
2694
2694
  }),
2695
- /* @__PURE__ */ X("path", {
2695
+ /* @__PURE__ */ Y("path", {
2696
2696
  fill: "#7FBA00",
2697
2697
  d: "M13 1h10v10H13z"
2698
2698
  }),
2699
- /* @__PURE__ */ X("path", {
2699
+ /* @__PURE__ */ Y("path", {
2700
2700
  fill: "#00A4EF",
2701
2701
  d: "M1 13h10v10H1z"
2702
2702
  }),
2703
- /* @__PURE__ */ X("path", {
2703
+ /* @__PURE__ */ Y("path", {
2704
2704
  fill: "#FFB900",
2705
2705
  d: "M13 13h10v10H13z"
2706
2706
  })
@@ -2709,95 +2709,95 @@ function Ia({ size: e = 14 }) {
2709
2709
  }
2710
2710
  //#endregion
2711
2711
  //#region src/lib/schema-routing.ts
2712
- var La = /* @__PURE__ */ new Set(["/preferences", "/admin/catalog"]);
2713
- function Ra(e) {
2712
+ var Ra = /* @__PURE__ */ new Set(["/preferences", "/admin/catalog"]);
2713
+ function za(e) {
2714
2714
  if (!e?.navigation) return null;
2715
2715
  let t = e.areas ?? [];
2716
2716
  if (t.length > 0) for (let n of t) for (let t of e.navigation) {
2717
2717
  if ((t.area || "default") !== n.code) continue;
2718
- let r = Ha(e, t);
2718
+ let r = Ua(e, t);
2719
2719
  if (r) return r;
2720
2720
  }
2721
2721
  for (let t of e.navigation) {
2722
- let n = Ha(e, t);
2722
+ let n = Ua(e, t);
2723
2723
  if (n) return n;
2724
2724
  }
2725
2725
  return null;
2726
2726
  }
2727
- function za(e, t) {
2728
- let n = Ra(t) || "/";
2727
+ function Ba(e, t) {
2728
+ let n = za(t) || "/";
2729
2729
  if (!t || e === "/" || e === "/admin") return n;
2730
- let r = Ba(e);
2731
- if (La.has(r)) return e;
2732
- for (let n of Object.values(t.screens ?? {})) if (n.route && Ua(t, n) && Wa(n.route).test(r)) return e;
2730
+ let r = Va(e);
2731
+ if (Ra.has(r)) return e;
2732
+ for (let n of Object.values(t.screens ?? {})) if (n.route && Wa(t, n) && Ga(n.route).test(r)) return e;
2733
2733
  return n;
2734
2734
  }
2735
- function Ba(e) {
2735
+ function Va(e) {
2736
2736
  let t = e.indexOf("#"), n = t >= 0 ? e.slice(0, t) : e, r = n.indexOf("?");
2737
2737
  return (r >= 0 ? n.slice(0, r) : n).replace(/\/+$/, "") || "/";
2738
2738
  }
2739
- function Va(e, t) {
2739
+ function Ha(e, t) {
2740
2740
  let n = e.screens[t];
2741
- return !!n && Ua(e, n);
2741
+ return !!n && Wa(e, n);
2742
2742
  }
2743
- function Ha(e, t) {
2744
- if (t.screen && Va(e, t.screen)) return e.screens[t.screen].route;
2743
+ function Ua(e, t) {
2744
+ if (t.screen && Ha(e, t.screen)) return e.screens[t.screen].route;
2745
2745
  for (let n of [...t.items ?? [], ...t.children ?? []]) {
2746
- let t = Ha(e, n);
2746
+ let t = Ua(e, n);
2747
2747
  if (t) return t;
2748
2748
  }
2749
2749
  return null;
2750
2750
  }
2751
- function Ua(e, t) {
2751
+ function Wa(e, t) {
2752
2752
  if (t.type !== "list") return !0;
2753
2753
  let n = t.entity;
2754
2754
  return !(n ? e.entities?.[n] : void 0)?.singleton;
2755
2755
  }
2756
- function Wa(e) {
2756
+ function Ga(e) {
2757
2757
  let t = e.replace(/\/+$/, "").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
2758
2758
  return RegExp("^" + t.join("/") + "$");
2759
2759
  }
2760
2760
  //#endregion
2761
2761
  //#region src/components/pages/auth/SignIn.tsx
2762
- var Ga = "sso-failure", Ka = {
2762
+ var Ka = "sso-failure", qa = {
2763
2763
  google: {
2764
2764
  name: "Google",
2765
- icon: /* @__PURE__ */ X(Fa, { size: 14 })
2765
+ icon: /* @__PURE__ */ Y(Ia, { size: 14 })
2766
2766
  },
2767
2767
  microsoft: {
2768
2768
  name: "Microsoft",
2769
- icon: /* @__PURE__ */ X(Ia, { size: 14 })
2769
+ icon: /* @__PURE__ */ Y(La, { size: 14 })
2770
2770
  },
2771
2771
  azure: {
2772
2772
  name: "Microsoft",
2773
- icon: /* @__PURE__ */ X(Ia, { size: 14 })
2773
+ icon: /* @__PURE__ */ Y(La, { size: 14 })
2774
2774
  }
2775
2775
  };
2776
- function qa() {
2777
- let e = pi(), [t] = _i(), { login: n, isLoginPending: r, isAuthenticated: i } = bn(), { data: a } = l(), o = I(), [s, c] = J(""), [u, d] = J(""), [f, p] = J(!0), m = g(t.get("next") || t.get("redirect")), h = t.get("sso_error"), _ = I("errors"), { data: v } = ri({
2776
+ function Ja() {
2777
+ let e = mi(), [t] = vi(), { login: n, isLoginPending: r, isAuthenticated: i } = xn(), { data: a } = l(), o = F(), [s, c] = q(""), [u, d] = q(""), [f, p] = q(!0), m = g(t.get("next") || t.get("redirect")), h = t.get("sso_error"), _ = F("errors"), { data: v, isPending: y } = ai({
2778
2778
  queryKey: ["check-setup"],
2779
2779
  queryFn: ee
2780
- }), { data: y } = ri({
2780
+ }), { data: b } = ai({
2781
2781
  queryKey: ["sso-providers"],
2782
2782
  queryFn: () => ie(),
2783
2783
  staleTime: 6e4
2784
2784
  });
2785
- G(() => {
2785
+ if (W(() => {
2786
2786
  v?.needs_setup && e("/signup", { replace: !0 });
2787
- }, [v, e]), G(() => {
2787
+ }, [v, e]), W(() => {
2788
2788
  if (!i || !a) return;
2789
- let t = za(m, a);
2790
- Ja(m, t) && w.warning(o("auth.inaccessible_redirect", "You do not have access to that page. We opened your default page instead.")), e(t, { replace: !0 });
2789
+ let t = Ba(m, a);
2790
+ Ya(m, t) && w.warning(o("auth.inaccessible_redirect", "You do not have access to that page. We opened your default page instead.")), e(t, { replace: !0 });
2791
2791
  }, [
2792
2792
  i,
2793
2793
  e,
2794
2794
  m,
2795
2795
  a,
2796
2796
  o
2797
- ]), G(() => {
2798
- h && w.error(_(h, "Sign-in failed."), void 0, { id: Ga });
2799
- }, [_, h]);
2800
- function b(e) {
2797
+ ]), W(() => {
2798
+ h && w.error(_(h, "Sign-in failed."), void 0, { id: Ka });
2799
+ }, [_, h]), y || v?.needs_setup) return /* @__PURE__ */ Y(Sn, {});
2800
+ function x(e) {
2801
2801
  e.preventDefault(), n({
2802
2802
  email: s,
2803
2803
  password: u,
@@ -2806,10 +2806,10 @@ function qa() {
2806
2806
  w.error(S(_, e));
2807
2807
  } });
2808
2808
  }
2809
- return /* @__PURE__ */ X(un, { children: /* @__PURE__ */ Z("form", {
2810
- onSubmit: b,
2809
+ return /* @__PURE__ */ Y(dn, { children: /* @__PURE__ */ X("form", {
2810
+ onSubmit: x,
2811
2811
  children: [
2812
- /* @__PURE__ */ X("div", {
2812
+ /* @__PURE__ */ Y("div", {
2813
2813
  style: {
2814
2814
  fontSize: 10.5,
2815
2815
  fontWeight: 700,
@@ -2819,7 +2819,7 @@ function qa() {
2819
2819
  },
2820
2820
  children: o("auth.signin.eyebrow", "Welcome back")
2821
2821
  }),
2822
- /* @__PURE__ */ X("h2", {
2822
+ /* @__PURE__ */ Y("h2", {
2823
2823
  style: {
2824
2824
  margin: "6px 0 4px",
2825
2825
  fontSize: 24,
@@ -2828,7 +2828,7 @@ function qa() {
2828
2828
  },
2829
2829
  children: o("auth.signin.title", "Sign in")
2830
2830
  }),
2831
- /* @__PURE__ */ X("p", {
2831
+ /* @__PURE__ */ Y("p", {
2832
2832
  style: {
2833
2833
  margin: "0 0 20px",
2834
2834
  fontSize: 13,
@@ -2836,19 +2836,19 @@ function qa() {
2836
2836
  },
2837
2837
  children: o("auth.signin.subtitle", "Use your corporate SSO or email & password.")
2838
2838
  }),
2839
- y && y.length > 0 && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
2839
+ b && b.length > 0 && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("div", {
2840
2840
  style: {
2841
2841
  display: "flex",
2842
2842
  flexDirection: "column",
2843
2843
  gap: 6,
2844
2844
  marginBottom: 12
2845
2845
  },
2846
- children: y.map((e) => {
2847
- let t = Ka[e.slug.toLowerCase()] ?? {
2846
+ children: b.map((e) => {
2847
+ let t = qa[e.slug.toLowerCase()] ?? {
2848
2848
  name: e.name,
2849
- icon: /* @__PURE__ */ X(L.shield, { size: 13 })
2849
+ icon: /* @__PURE__ */ Y(I.shield, { size: 13 })
2850
2850
  };
2851
- return /* @__PURE__ */ X(We, {
2851
+ return /* @__PURE__ */ Y(Ge, {
2852
2852
  size: "md",
2853
2853
  style: {
2854
2854
  justifyContent: "center",
@@ -2856,12 +2856,12 @@ function qa() {
2856
2856
  },
2857
2857
  icon: t.icon,
2858
2858
  onClick: (t) => {
2859
- t.preventDefault(), window.location.href = Me(e.slug, void 0, m);
2859
+ t.preventDefault(), window.location.href = Ne(e.slug, void 0, m);
2860
2860
  },
2861
2861
  children: o("auth.signin.sso_continue", "Continue with {provider}", { provider: t.name })
2862
2862
  }, e.slug);
2863
2863
  })
2864
- }), /* @__PURE__ */ Z("div", {
2864
+ }), /* @__PURE__ */ X("div", {
2865
2865
  style: {
2866
2866
  display: "flex",
2867
2867
  alignItems: "center",
@@ -2869,12 +2869,12 @@ function qa() {
2869
2869
  margin: "16px 0"
2870
2870
  },
2871
2871
  children: [
2872
- /* @__PURE__ */ X("span", { style: {
2872
+ /* @__PURE__ */ Y("span", { style: {
2873
2873
  flex: 1,
2874
2874
  height: 1,
2875
2875
  background: "var(--divider)"
2876
2876
  } }),
2877
- /* @__PURE__ */ X("span", {
2877
+ /* @__PURE__ */ Y("span", {
2878
2878
  style: {
2879
2879
  fontSize: 10.5,
2880
2880
  color: "var(--text-4)",
@@ -2883,37 +2883,37 @@ function qa() {
2883
2883
  },
2884
2884
  children: o("auth.signin.sso_divider", "or with email")
2885
2885
  }),
2886
- /* @__PURE__ */ X("span", { style: {
2886
+ /* @__PURE__ */ Y("span", { style: {
2887
2887
  flex: 1,
2888
2888
  height: 1,
2889
2889
  background: "var(--divider)"
2890
2890
  } })
2891
2891
  ]
2892
2892
  })] }),
2893
- /* @__PURE__ */ Z("div", {
2893
+ /* @__PURE__ */ X("div", {
2894
2894
  style: {
2895
2895
  display: "flex",
2896
2896
  flexDirection: "column",
2897
2897
  gap: 12
2898
2898
  },
2899
2899
  children: [
2900
- /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(bt, { children: o("auth.field.email", "Email") }), /* @__PURE__ */ X(St, {
2900
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(xt, { children: o("auth.field.email", "Email") }), /* @__PURE__ */ Y(Ct, {
2901
2901
  value: s,
2902
2902
  onChange: c,
2903
- prefix: /* @__PURE__ */ X(L.email, { size: 13 }),
2903
+ prefix: /* @__PURE__ */ Y(I.email, { size: 13 }),
2904
2904
  placeholder: o("auth.field.email_placeholder", "you@company.com"),
2905
2905
  autoFocus: !0,
2906
2906
  required: !0
2907
2907
  })] }),
2908
- /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ Z("div", {
2908
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ X("div", {
2909
2909
  style: {
2910
2910
  display: "flex",
2911
2911
  alignItems: "center"
2912
2912
  },
2913
2913
  children: [
2914
- /* @__PURE__ */ X(bt, { children: o("auth.field.password", "Password") }),
2915
- /* @__PURE__ */ X("div", { style: { flex: 1 } }),
2916
- /* @__PURE__ */ X(oi, {
2914
+ /* @__PURE__ */ Y(xt, { children: o("auth.field.password", "Password") }),
2915
+ /* @__PURE__ */ Y("div", { style: { flex: 1 } }),
2916
+ /* @__PURE__ */ Y(ci, {
2917
2917
  to: "/forgot",
2918
2918
  style: {
2919
2919
  fontSize: 11,
@@ -2924,12 +2924,12 @@ function qa() {
2924
2924
  children: o("auth.signin.forgot_link", "Forgot?")
2925
2925
  })
2926
2926
  ]
2927
- }), /* @__PURE__ */ X(xt, {
2927
+ }), /* @__PURE__ */ Y(St, {
2928
2928
  value: u,
2929
2929
  onChange: d,
2930
2930
  placeholder: o("auth.signin.password_placeholder", "Your password")
2931
2931
  })] }),
2932
- /* @__PURE__ */ Z("label", {
2932
+ /* @__PURE__ */ X("label", {
2933
2933
  style: {
2934
2934
  display: "flex",
2935
2935
  alignItems: "center",
@@ -2938,7 +2938,7 @@ function qa() {
2938
2938
  color: "var(--text-2)"
2939
2939
  },
2940
2940
  children: [
2941
- /* @__PURE__ */ X("input", {
2941
+ /* @__PURE__ */ Y("input", {
2942
2942
  type: "checkbox",
2943
2943
  name: "remember",
2944
2944
  checked: f,
@@ -2948,7 +2948,7 @@ function qa() {
2948
2948
  o("auth.signin.remember", "Keep me signed in on this device")
2949
2949
  ]
2950
2950
  }),
2951
- /* @__PURE__ */ X(We, {
2951
+ /* @__PURE__ */ Y(Ge, {
2952
2952
  type: "submit",
2953
2953
  size: "md",
2954
2954
  kind: "primary",
@@ -2959,7 +2959,7 @@ function qa() {
2959
2959
  disabled: r,
2960
2960
  children: r ? o("auth.signin.submitting", "Signing in…") : o("auth.signin.submit", "Continue")
2961
2961
  }),
2962
- /* @__PURE__ */ Z("div", {
2962
+ /* @__PURE__ */ X("div", {
2963
2963
  style: {
2964
2964
  fontSize: 12,
2965
2965
  color: "var(--text-3)",
@@ -2969,7 +2969,7 @@ function qa() {
2969
2969
  children: [
2970
2970
  o("auth.signin.new_here", "New here?"),
2971
2971
  " ",
2972
- /* @__PURE__ */ X(oi, {
2972
+ /* @__PURE__ */ Y(ci, {
2973
2973
  to: "/signup",
2974
2974
  style: {
2975
2975
  color: "var(--accent)",
@@ -2985,135 +2985,135 @@ function qa() {
2985
2985
  ]
2986
2986
  }) });
2987
2987
  }
2988
- function Ja(e, t) {
2988
+ function Ya(e, t) {
2989
2989
  if (e === t) return !1;
2990
2990
  let n = e.split(/[?#]/, 1)[0].replace(/\/+$/, "") || "/";
2991
2991
  return n !== "/" && n !== "/admin";
2992
2992
  }
2993
2993
  //#endregion
2994
2994
  //#region src/components/pages/auth/SignUp.tsx
2995
- var Ya = U(() => import("./SignUp.impl-C1KCQbfZ.js").then((e) => ({ default: e.SignUp })));
2996
- function Xa() {
2997
- return /* @__PURE__ */ X(H, {
2995
+ var Xa = H(() => import("./SignUp.impl-CfEXrUeg.js").then((e) => ({ default: e.SignUp })));
2996
+ function Za() {
2997
+ return /* @__PURE__ */ Y(V, {
2998
2998
  fallback: null,
2999
- children: /* @__PURE__ */ X(Ya, {})
2999
+ children: /* @__PURE__ */ Y(Xa, {})
3000
3000
  });
3001
3001
  }
3002
3002
  //#endregion
3003
3003
  //#region src/components/pages/auth/Forgot.tsx
3004
- var Za = U(() => import("./Forgot.impl-CmT5A__V.js").then((e) => ({ default: e.Forgot })));
3005
- function Qa() {
3006
- return /* @__PURE__ */ X(H, {
3004
+ var Qa = H(() => import("./Forgot.impl-6tL6SBlS.js").then((e) => ({ default: e.Forgot })));
3005
+ function $a() {
3006
+ return /* @__PURE__ */ Y(V, {
3007
3007
  fallback: null,
3008
- children: /* @__PURE__ */ X(Za, {})
3008
+ children: /* @__PURE__ */ Y(Qa, {})
3009
3009
  });
3010
3010
  }
3011
3011
  //#endregion
3012
3012
  //#region src/components/pages/auth/Reset.tsx
3013
- var $a = U(() => import("./Reset.impl-Cesyqt5p.js").then((e) => ({ default: e.Reset })));
3014
- function eo() {
3015
- return /* @__PURE__ */ X(H, {
3013
+ var eo = H(() => import("./Reset.impl-D0pjhS6d.js").then((e) => ({ default: e.Reset })));
3014
+ function to() {
3015
+ return /* @__PURE__ */ Y(V, {
3016
3016
  fallback: null,
3017
- children: /* @__PURE__ */ X($a, {})
3017
+ children: /* @__PURE__ */ Y(eo, {})
3018
3018
  });
3019
3019
  }
3020
3020
  //#endregion
3021
3021
  //#region src/components/pages/auth/TwoFA.tsx
3022
- var to = U(() => import("./TwoFA.impl-BClZ3ndk.js").then((e) => ({ default: e.TwoFA })));
3023
- function no() {
3024
- return /* @__PURE__ */ X(H, {
3022
+ var no = H(() => import("./TwoFA.impl-B2HtPduH.js").then((e) => ({ default: e.TwoFA })));
3023
+ function ro() {
3024
+ return /* @__PURE__ */ Y(V, {
3025
3025
  fallback: null,
3026
- children: /* @__PURE__ */ X(to, {})
3026
+ children: /* @__PURE__ */ Y(no, {})
3027
3027
  });
3028
3028
  }
3029
3029
  //#endregion
3030
3030
  //#region src/components/pages/SSOCallbackPage.tsx
3031
- var ro = U(() => import("./SSOCallbackPage.impl-BC_W9nQA.js").then((e) => ({ default: e.SSOCallbackPage })));
3032
- function io() {
3033
- return /* @__PURE__ */ X(H, {
3031
+ var io = H(() => import("./SSOCallbackPage.impl-Cfi2pQ59.js").then((e) => ({ default: e.SSOCallbackPage })));
3032
+ function ao() {
3033
+ return /* @__PURE__ */ Y(V, {
3034
3034
  fallback: null,
3035
- children: /* @__PURE__ */ X(ro, {})
3035
+ children: /* @__PURE__ */ Y(io, {})
3036
3036
  });
3037
3037
  }
3038
3038
  //#endregion
3039
3039
  //#region src/components/pages/NotFoundPage.tsx
3040
- var ao = U(() => import("./NotFoundPage.impl-ZSBn4WWb.js").then((e) => ({ default: e.NotFoundPage })));
3041
- function oo() {
3042
- return /* @__PURE__ */ X(H, {
3040
+ var oo = H(() => import("./NotFoundPage.impl-BoX11u-P.js").then((e) => ({ default: e.NotFoundPage })));
3041
+ function so() {
3042
+ return /* @__PURE__ */ Y(V, {
3043
3043
  fallback: null,
3044
- children: /* @__PURE__ */ X(ao, {})
3044
+ children: /* @__PURE__ */ Y(oo, {})
3045
3045
  });
3046
3046
  }
3047
3047
  //#endregion
3048
3048
  //#region src/components/pages/profile/Profile.tsx
3049
- var so = U(() => import("./Profile.impl-CbzSzxyG.js").then((e) => ({ default: e.Profile })));
3050
- function co() {
3051
- return /* @__PURE__ */ X(H, {
3049
+ var co = H(() => import("./Profile.impl-Cypk27ah.js").then((e) => ({ default: e.Profile })));
3050
+ function lo() {
3051
+ return /* @__PURE__ */ Y(V, {
3052
3052
  fallback: null,
3053
- children: /* @__PURE__ */ X(so, {})
3053
+ children: /* @__PURE__ */ Y(co, {})
3054
3054
  });
3055
3055
  }
3056
3056
  //#endregion
3057
3057
  //#region src/components/pages/tenant-params/TenantParamsPage.tsx
3058
- var lo = U(() => import("./TenantParamsPage.impl-DMuSs3eP.js").then((e) => ({ default: e.TenantParamsPage })));
3059
- function uo(e) {
3060
- return /* @__PURE__ */ X(H, {
3058
+ var uo = H(() => import("./TenantParamsPage.impl-BGpdmEZg.js").then((e) => ({ default: e.TenantParamsPage })));
3059
+ function fo(e) {
3060
+ return /* @__PURE__ */ Y(V, {
3061
3061
  fallback: null,
3062
- children: /* @__PURE__ */ X(lo, { ...e })
3062
+ children: /* @__PURE__ */ Y(uo, { ...e })
3063
3063
  });
3064
3064
  }
3065
3065
  //#endregion
3066
3066
  //#region src/components/pages/profile/Preferences.tsx
3067
- var fo = U(() => import("./Preferences.impl-BG9XBZDf.js").then((e) => ({ default: e.Preferences })));
3068
- function po() {
3069
- return /* @__PURE__ */ X(H, {
3067
+ var po = H(() => import("./Preferences.impl-Ct5xwZtT.js").then((e) => ({ default: e.Preferences })));
3068
+ function mo() {
3069
+ return /* @__PURE__ */ Y(V, {
3070
3070
  fallback: null,
3071
- children: /* @__PURE__ */ X(fo, {})
3071
+ children: /* @__PURE__ */ Y(po, {})
3072
3072
  });
3073
3073
  }
3074
3074
  //#endregion
3075
3075
  //#region src/components/pages/AdminCatalogPage.tsx
3076
- var mo = U(() => import("./AdminCatalogPage.impl-BJGn7EvA.js").then((e) => ({ default: e.AdminCatalogPage })));
3077
- function ho() {
3078
- return /* @__PURE__ */ X(H, {
3076
+ var ho = H(() => import("./AdminCatalogPage.impl-B-7MLqa1.js").then((e) => ({ default: e.AdminCatalogPage })));
3077
+ function go() {
3078
+ return /* @__PURE__ */ Y(V, {
3079
3079
  fallback: null,
3080
- children: /* @__PURE__ */ X(mo, {})
3080
+ children: /* @__PURE__ */ Y(ho, {})
3081
3081
  });
3082
3082
  }
3083
3083
  //#endregion
3084
3084
  //#region src/components/pages/SmartListPage.tsx
3085
- var go = U(() => import("./SmartListPage.impl-Cc4Zwz5f.js").then((e) => ({ default: e.SmartListPage })));
3086
- function _o(e) {
3087
- return /* @__PURE__ */ X(H, {
3085
+ var _o = H(() => import("./SmartListPage.impl-Cu83Gv_G.js").then((e) => ({ default: e.SmartListPage })));
3086
+ function vo(e) {
3087
+ return /* @__PURE__ */ Y(V, {
3088
3088
  fallback: null,
3089
- children: /* @__PURE__ */ X(go, { ...e })
3089
+ children: /* @__PURE__ */ Y(_o, { ...e })
3090
3090
  });
3091
3091
  }
3092
3092
  //#endregion
3093
3093
  //#region src/components/pages/SmartDetailPage.tsx
3094
- var vo = U(() => import("./SmartDetailPage.impl-8iOAMYQh.js").then((e) => ({ default: e.SmartDetailPage })));
3095
- function yo(e) {
3096
- return /* @__PURE__ */ X(H, {
3094
+ var yo = H(() => import("./SmartDetailPage.impl-BiIX0n7K.js").then((e) => ({ default: e.SmartDetailPage })));
3095
+ function bo(e) {
3096
+ return /* @__PURE__ */ Y(V, {
3097
3097
  fallback: null,
3098
- children: /* @__PURE__ */ X(vo, { ...e })
3098
+ children: /* @__PURE__ */ Y(yo, { ...e })
3099
3099
  });
3100
3100
  }
3101
3101
  //#endregion
3102
3102
  //#region src/components/pages/SmartRecordListPage.tsx
3103
- var bo = U(() => import("./SmartRecordListPage.impl-xTSohkqG.js").then((e) => ({ default: e.SmartRecordListPage })));
3104
- function xo(e) {
3105
- return /* @__PURE__ */ X(H, {
3103
+ var xo = H(() => import("./SmartRecordListPage.impl-DR6lq7HA.js").then((e) => ({ default: e.SmartRecordListPage })));
3104
+ function So(e) {
3105
+ return /* @__PURE__ */ Y(V, {
3106
3106
  fallback: null,
3107
- children: /* @__PURE__ */ X(bo, { ...e })
3107
+ children: /* @__PURE__ */ Y(xo, { ...e })
3108
3108
  });
3109
3109
  }
3110
3110
  //#endregion
3111
3111
  //#region src/hooks/useVersionWatcher.ts
3112
- function So() {
3113
- let e = ii(), t = I(), n = q(t);
3114
- G(() => {
3112
+ function Co() {
3113
+ let e = oi(), t = F(), n = K(t);
3114
+ W(() => {
3115
3115
  n.current = t;
3116
- }, [t]), G(() => {
3116
+ }, [t]), W(() => {
3117
3117
  let t = !1, r = null, a = 6e4, o = a, s = 0, l = 0;
3118
3118
  function u(e) {
3119
3119
  t || (r !== null && clearTimeout(r), r = setTimeout(() => {
@@ -3164,35 +3164,35 @@ function So() {
3164
3164
  }
3165
3165
  //#endregion
3166
3166
  //#region src/lib/capabilityPrefetch.ts
3167
- var Co = [
3168
- () => import("./MarkdownRenderer-kNEMr6K_.js"),
3167
+ var wo = [
3168
+ () => import("./MarkdownRenderer-sK2TRZS-.js"),
3169
3169
  () => import("./JsonEditor-Dz1PQHC8.js"),
3170
- () => import("./Grid-Cg29k0jv.js"),
3171
- () => import("./DraggableChildrenTable-Cy8uevS_.js"),
3172
- () => import("./ActionDialog-uiuse5W8.js")
3170
+ () => import("./Grid-XUHm5SDe.js"),
3171
+ () => import("./DraggableChildrenTable-Dd5SeuF6.js"),
3172
+ () => import("./ActionDialog-C6EG-AmC.js")
3173
3173
  ];
3174
- function wo() {
3175
- for (let e of Co) e().catch(() => {});
3174
+ function To() {
3175
+ for (let e of wo) e().catch(() => {});
3176
3176
  }
3177
- var To = !1;
3178
- function Eo() {
3179
- if (To) return;
3180
- To = !0;
3177
+ var Eo = !1;
3178
+ function Do() {
3179
+ if (Eo) return;
3180
+ Eo = !0;
3181
3181
  let e = globalThis.requestIdleCallback;
3182
- typeof e == "function" ? e(wo) : setTimeout(wo, 0);
3182
+ typeof e == "function" ? e(To) : setTimeout(To, 0);
3183
3183
  }
3184
3184
  //#endregion
3185
3185
  //#region src/stores/screen-registry.ts
3186
- var Do = /* @__PURE__ */ new Map();
3187
- function Oo(e, t) {
3188
- Do.set(e, t);
3186
+ var Oo = /* @__PURE__ */ new Map();
3187
+ function ko(e, t) {
3188
+ Oo.set(e, t);
3189
3189
  }
3190
- function ko(e) {
3191
- return Do.get(e);
3190
+ function Ao(e) {
3191
+ return Oo.get(e);
3192
3192
  }
3193
3193
  //#endregion
3194
3194
  //#region src/lib/brand-tokens.ts
3195
- var Ao = ["light", "dark"], jo = ["page_title_size", "page_title_line_height"], Mo = [
3195
+ var jo = ["light", "dark"], Mo = ["page_title_size", "page_title_line_height"], No = [
3196
3196
  "background",
3197
3197
  "surface",
3198
3198
  "surface_2",
@@ -3208,19 +3208,19 @@ var Ao = ["light", "dark"], jo = ["page_title_size", "page_title_line_height"],
3208
3208
  "sidebar",
3209
3209
  "rail"
3210
3210
  ];
3211
- function No(e) {
3211
+ function Po(e) {
3212
3212
  return `--${e.replace(/_/g, "-")}`;
3213
3213
  }
3214
- function Po(e) {
3214
+ function Fo(e) {
3215
3215
  if (typeof e != "string") return null;
3216
3216
  let t = e.trim();
3217
3217
  return !t || /[;{}]/.test(t) ? null : t;
3218
3218
  }
3219
- function Fo(e) {
3220
- let t = Po(e);
3219
+ function Io(e) {
3220
+ let t = Fo(e);
3221
3221
  return !t || typeof CSS < "u" && CSS.supports && !CSS.supports("color", t) ? null : t;
3222
3222
  }
3223
- var Io = {
3223
+ var Lo = {
3224
3224
  light: {
3225
3225
  soft: 10,
3226
3226
  ring: 28,
@@ -3232,60 +3232,60 @@ var Io = {
3232
3232
  row: 22
3233
3233
  }
3234
3234
  };
3235
- function Lo(e, t) {
3236
- if (!Fo(t.accent)) return [];
3237
- let n = Io[e];
3235
+ function Ro(e, t) {
3236
+ if (!Io(t.accent)) return [];
3237
+ let n = Lo[e];
3238
3238
  return [
3239
3239
  `--accent-soft: color-mix(in srgb, var(--accent) ${n.soft}%, var(--surface))`,
3240
3240
  `--accent-ring: color-mix(in srgb, var(--accent) ${n.ring}%, transparent)`,
3241
3241
  `--row-selected-bg: color-mix(in srgb, var(--accent) ${n.row}%, var(--surface))`
3242
3242
  ];
3243
3243
  }
3244
- function Ro(e, t) {
3244
+ function zo(e, t) {
3245
3245
  let n = [];
3246
- for (let e of Mo) {
3247
- let r = Fo(t[e]);
3248
- r && n.push(`${No(e)}: ${r}`);
3246
+ for (let e of No) {
3247
+ let r = Io(t[e]);
3248
+ r && n.push(`${Po(e)}: ${r}`);
3249
3249
  }
3250
- return n.push(...Lo(e, t)), n;
3250
+ return n.push(...Ro(e, t)), n;
3251
3251
  }
3252
- function zo(e) {
3252
+ function Bo(e) {
3253
3253
  if (!e) return "";
3254
- let t = [], n = [], r = Po(e.font_sans), i = Po(e.font_mono);
3254
+ let t = [], n = [], r = Fo(e.font_sans), i = Fo(e.font_mono);
3255
3255
  r && n.push(`--font-sans: ${r}`), i && n.push(`--font-mono: ${i}`);
3256
- for (let t of jo) {
3257
- let r = Po(e.typography?.[t]);
3258
- r && n.push(`${No(t)}: ${r}`);
3256
+ for (let t of Mo) {
3257
+ let r = Fo(e.typography?.[t]);
3258
+ r && n.push(`${Po(t)}: ${r}`);
3259
3259
  }
3260
3260
  n.length && t.push(`:root { ${n.join("; ")}; }`);
3261
- for (let n of Ao) {
3261
+ for (let n of jo) {
3262
3262
  let r = e.colors?.[n];
3263
3263
  if (!r) continue;
3264
- let i = Ro(n, r);
3264
+ let i = zo(n, r);
3265
3265
  i.length && t.push(`html[data-color-scheme="${n}"] { ${i.join("; ")}; }`);
3266
3266
  }
3267
3267
  return t.join("\n");
3268
3268
  }
3269
- var Bo = "declarion-brand-tokens", Vo = "consumer-brand-css";
3270
- function Ho(e) {
3269
+ var Vo = "declarion-brand-tokens", Ho = "consumer-brand-css";
3270
+ function Uo(e) {
3271
3271
  if (typeof document > "u") return;
3272
- let t = document.head, n = document.getElementById(Bo);
3272
+ let t = document.head, n = document.getElementById(Vo);
3273
3273
  if (!e) {
3274
3274
  n?.remove();
3275
3275
  return;
3276
3276
  }
3277
3277
  let r = n ?? document.createElement("style");
3278
- n || (r.id = Bo, t.appendChild(r)), r.textContent !== e && (r.textContent = e);
3279
- let i = document.getElementById(Vo);
3278
+ n || (r.id = Vo, t.appendChild(r)), r.textContent !== e && (r.textContent = e);
3279
+ let i = document.getElementById(Ho);
3280
3280
  i && i.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING && t.appendChild(i);
3281
3281
  }
3282
- Oo("Profile", co), Oo("TenantParameters", uo);
3283
- var Uo = "declarion-managed-favicon", Wo = new ti({ defaultOptions: { queries: {
3282
+ ko("Profile", lo), ko("TenantParameters", fo);
3283
+ var Wo = "declarion-managed-favicon", Go = new ri({ defaultOptions: { queries: {
3284
3284
  staleTime: 3e5,
3285
3285
  retry: 1
3286
3286
  } } });
3287
- Kn(Wo, yn);
3288
- function Go(e) {
3287
+ Jn(Go, bn);
3288
+ function Ko(e) {
3289
3289
  if (typeof window > "u") return null;
3290
3290
  try {
3291
3291
  let t = new URL(e, window.location.origin);
@@ -3294,58 +3294,58 @@ function Go(e) {
3294
3294
  return null;
3295
3295
  }
3296
3296
  }
3297
- function Ko() {
3297
+ function qo() {
3298
3298
  let { data: e } = l();
3299
3299
  return {
3300
- routes: K(() => {
3300
+ routes: G(() => {
3301
3301
  if (!e) return [];
3302
3302
  let t = [];
3303
3303
  for (let [n, r] of Object.entries(e.screens ?? {})) if (r.type === "list") {
3304
3304
  let i = r.entity;
3305
3305
  if ((i ? e.entities?.[i] : void 0)?.singleton) continue;
3306
- t.push(/* @__PURE__ */ X(Q, {
3306
+ t.push(/* @__PURE__ */ Y(Z, {
3307
3307
  path: r.route,
3308
- element: /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ X(Fe, {
3308
+ element: /* @__PURE__ */ Y($t, { children: /* @__PURE__ */ Y(Ie, {
3309
3309
  code: n,
3310
- children: /* @__PURE__ */ X(_o, { screenCode: n })
3310
+ children: /* @__PURE__ */ Y(vo, { screenCode: n })
3311
3311
  }) })
3312
3312
  }, n));
3313
- } else if (r.type === "detail") t.push(/* @__PURE__ */ X(Q, {
3313
+ } else if (r.type === "detail") t.push(/* @__PURE__ */ Y(Z, {
3314
3314
  path: r.route,
3315
- element: /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ X(Fe, {
3315
+ element: /* @__PURE__ */ Y($t, { children: /* @__PURE__ */ Y(Ie, {
3316
3316
  code: n,
3317
- children: /* @__PURE__ */ X(yo, { screenCode: n })
3317
+ children: /* @__PURE__ */ Y(bo, { screenCode: n })
3318
3318
  }) })
3319
3319
  }, n));
3320
- else if (r.type === "record_list") t.push(/* @__PURE__ */ X(Q, {
3320
+ else if (r.type === "record_list") t.push(/* @__PURE__ */ Y(Z, {
3321
3321
  path: r.route,
3322
- element: /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ X(Fe, {
3322
+ element: /* @__PURE__ */ Y($t, { children: /* @__PURE__ */ Y(Ie, {
3323
3323
  code: n,
3324
- children: /* @__PURE__ */ X(xo, { screenCode: n })
3324
+ children: /* @__PURE__ */ Y(So, { screenCode: n })
3325
3325
  }) })
3326
3326
  }, n));
3327
3327
  else if (r.type === "custom") {
3328
- let e = r.component ? ko(r.component) : void 0;
3329
- e && t.push(/* @__PURE__ */ X(Q, {
3328
+ let e = r.component ? Ao(r.component) : void 0;
3329
+ e && t.push(/* @__PURE__ */ Y(Z, {
3330
3330
  path: r.route,
3331
- element: /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ X(Fe, {
3331
+ element: /* @__PURE__ */ Y($t, { children: /* @__PURE__ */ Y(Ie, {
3332
3332
  code: n,
3333
- children: /* @__PURE__ */ X(e, { screenCode: n })
3333
+ children: /* @__PURE__ */ Y(e, { screenCode: n })
3334
3334
  }) })
3335
3335
  }, n));
3336
3336
  }
3337
3337
  return t;
3338
3338
  }, [e]),
3339
- defaultRoute: K(() => Ra(e), [e])
3339
+ defaultRoute: G(() => za(e), [e])
3340
3340
  };
3341
3341
  }
3342
- function qo() {
3343
- let e = p((e) => e.initialize), t = p((e) => e.isLoading), n = p((e) => e.isAuthenticated), { data: r, isError: i } = l(), a = o(), { data: s, isLoading: c } = dn(), { branding: u, isLoading: d } = cn(), { routes: f, defaultRoute: m } = Ko(), h = O();
3344
- G(() => {
3342
+ function Jo() {
3343
+ let e = p((e) => e.initialize), t = p((e) => e.isLoading), n = p((e) => e.isAuthenticated), { data: r, isError: i } = l(), a = o(), { data: s, isLoading: c } = fn(), { branding: u, isLoading: d } = ln(), { routes: f, defaultRoute: m } = qo(), h = O();
3344
+ W(() => {
3345
3345
  document.documentElement.lang = a;
3346
3346
  }, [a]);
3347
3347
  let g = typeof window < "u" && window.self !== window.top && !h.enabled;
3348
- G(() => {
3348
+ W(() => {
3349
3349
  h.enabled || g || e();
3350
3350
  }, [
3351
3351
  h.enabled,
@@ -3353,38 +3353,38 @@ function qo() {
3353
3353
  e
3354
3354
  ]);
3355
3355
  let _ = r?.icons;
3356
- G(() => {
3357
- nn(_ ?? {});
3358
- }, [_]), G(() => {
3359
- Eo();
3356
+ W(() => {
3357
+ rn(_ ?? {});
3358
+ }, [_]), W(() => {
3359
+ Do();
3360
3360
  }, []);
3361
3361
  let v = u?.identity, y = u?.theme;
3362
- G(() => {
3362
+ W(() => {
3363
3363
  if (typeof document > "u") return;
3364
3364
  let e = v?.app_name?.trim();
3365
3365
  e && (document.title = e);
3366
- }, [v?.app_name]), G(() => {
3366
+ }, [v?.app_name]), W(() => {
3367
3367
  if (typeof document > "u") return;
3368
- let e = v?.app_logo, t = on(e) ? Go(e.trim()) : null, n = document.getElementById(Uo);
3368
+ let e = v?.app_logo, t = sn(e) ? Ko(e.trim()) : null, n = document.getElementById(Wo);
3369
3369
  if (!t) n && n.remove();
3370
3370
  else if (n) n.href !== t && (n.href = t);
3371
3371
  else {
3372
3372
  document.querySelectorAll("link[rel=\"icon\"], link[rel=\"shortcut icon\"]").forEach((e) => e.remove());
3373
3373
  let e = document.createElement("link");
3374
- e.id = Uo, e.rel = "icon", e.href = t, document.head.appendChild(e);
3374
+ e.id = Wo, e.rel = "icon", e.href = t, document.head.appendChild(e);
3375
3375
  }
3376
3376
  }, [v?.app_logo]);
3377
- let b = y?.css_url ?? null, x = K(() => zo(y), [y]);
3378
- G(() => {
3379
- Ho(x);
3380
- }, [x]), G(() => {
3377
+ let b = y?.css_url ?? null, x = G(() => Bo(y), [y]);
3378
+ W(() => {
3379
+ Uo(x);
3380
+ }, [x]), W(() => {
3381
3381
  if (typeof document > "u") return;
3382
- let e = document.getElementById(Vo);
3382
+ let e = document.getElementById(Ho);
3383
3383
  if (!b) {
3384
3384
  e && e.remove();
3385
3385
  return;
3386
3386
  }
3387
- let t = Go(b);
3387
+ let t = Ko(b);
3388
3388
  if (!t) {
3389
3389
  e && e.remove(), console.error(`[declarion] branding.theme.css_url rejected: ${b}. Only same-origin, relative URLs are allowed (e.g. /modules/crm/public/brand.css).`);
3390
3390
  return;
@@ -3392,80 +3392,74 @@ function qo() {
3392
3392
  if (e && e.href === t) return;
3393
3393
  e && e.remove();
3394
3394
  let n = document.createElement("link");
3395
- n.id = Vo, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
3395
+ n.id = Ho, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
3396
3396
  }, [b]);
3397
3397
  let S = h.enabled && !n;
3398
- return g || S || t || c && !s || d || !r && (n || !i) ? /* @__PURE__ */ X("div", {
3399
- "aria-hidden": !0,
3400
- style: {
3401
- minHeight: "var(--app-height)",
3402
- background: "var(--background)"
3403
- }
3404
- }) : /* @__PURE__ */ Z(li, { children: [
3405
- /* @__PURE__ */ X(Q, {
3398
+ return g || S || t || c && !s || d || !r && (n || !i) ? /* @__PURE__ */ Y(Sn, {}) : /* @__PURE__ */ X(di, { children: [
3399
+ /* @__PURE__ */ Y(Z, {
3406
3400
  path: "/login",
3407
- element: /* @__PURE__ */ X(qa, {})
3401
+ element: /* @__PURE__ */ Y(Ja, {})
3408
3402
  }),
3409
- /* @__PURE__ */ X(Q, {
3403
+ /* @__PURE__ */ Y(Z, {
3410
3404
  path: "/login/sso-callback",
3411
- element: /* @__PURE__ */ X(io, {})
3405
+ element: /* @__PURE__ */ Y(ao, {})
3412
3406
  }),
3413
- /* @__PURE__ */ X(Q, {
3407
+ /* @__PURE__ */ Y(Z, {
3414
3408
  path: "/signup",
3415
- element: /* @__PURE__ */ X(Xa, {})
3409
+ element: /* @__PURE__ */ Y(Za, {})
3416
3410
  }),
3417
- /* @__PURE__ */ X(Q, {
3411
+ /* @__PURE__ */ Y(Z, {
3418
3412
  path: "/forgot",
3419
- element: /* @__PURE__ */ X(Qa, {})
3413
+ element: /* @__PURE__ */ Y($a, {})
3420
3414
  }),
3421
- /* @__PURE__ */ X(Q, {
3415
+ /* @__PURE__ */ Y(Z, {
3422
3416
  path: "/reset",
3423
- element: /* @__PURE__ */ X(eo, {})
3417
+ element: /* @__PURE__ */ Y(to, {})
3424
3418
  }),
3425
- /* @__PURE__ */ X(Q, {
3419
+ /* @__PURE__ */ Y(Z, {
3426
3420
  path: "/2fa",
3427
- element: /* @__PURE__ */ X(no, {})
3421
+ element: /* @__PURE__ */ Y(ro, {})
3428
3422
  }),
3429
- /* @__PURE__ */ Z(Q, {
3430
- element: /* @__PURE__ */ X(Ca, {}),
3423
+ /* @__PURE__ */ X(Z, {
3424
+ element: /* @__PURE__ */ Y(wa, {}),
3431
3425
  children: [
3432
- m && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Q, {
3426
+ m && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Z, {
3433
3427
  index: !0,
3434
- element: /* @__PURE__ */ X(si, {
3428
+ element: /* @__PURE__ */ Y(li, {
3435
3429
  to: m,
3436
3430
  replace: !0
3437
3431
  })
3438
- }), /* @__PURE__ */ X(Q, {
3432
+ }), /* @__PURE__ */ Y(Z, {
3439
3433
  path: "/admin",
3440
- element: /* @__PURE__ */ X(si, {
3434
+ element: /* @__PURE__ */ Y(li, {
3441
3435
  to: m,
3442
3436
  replace: !0
3443
3437
  })
3444
3438
  })] }),
3445
3439
  f,
3446
- /* @__PURE__ */ X(Q, {
3440
+ /* @__PURE__ */ Y(Z, {
3447
3441
  path: "/preferences",
3448
- element: /* @__PURE__ */ X(po, {})
3442
+ element: /* @__PURE__ */ Y(mo, {})
3449
3443
  }),
3450
- /* @__PURE__ */ X(Q, {
3444
+ /* @__PURE__ */ Y(Z, {
3451
3445
  path: "/admin/catalog",
3452
- element: /* @__PURE__ */ X(ho, {})
3446
+ element: /* @__PURE__ */ Y(go, {})
3453
3447
  }),
3454
- /* @__PURE__ */ X(Q, {
3448
+ /* @__PURE__ */ Y(Z, {
3455
3449
  path: "*",
3456
- element: /* @__PURE__ */ X(oo, {})
3450
+ element: /* @__PURE__ */ Y(so, {})
3457
3451
  })
3458
3452
  ]
3459
3453
  })
3460
3454
  ] });
3461
3455
  }
3462
- function Jo() {
3463
- So();
3464
- let e = V((e) => e.toastPosition);
3465
- return /* @__PURE__ */ Z(ai, { children: [
3466
- /* @__PURE__ */ X(ji, {}),
3467
- /* @__PURE__ */ X(qo, {}),
3468
- /* @__PURE__ */ X(vi, {
3456
+ function Yo() {
3457
+ Co();
3458
+ let e = B((e) => e.toastPosition);
3459
+ return /* @__PURE__ */ X(si, { children: [
3460
+ /* @__PURE__ */ Y(Mi, {}),
3461
+ /* @__PURE__ */ Y(Jo, {}),
3462
+ /* @__PURE__ */ Y(yi, {
3469
3463
  position: e,
3470
3464
  toastOptions: { unstyled: !0 },
3471
3465
  expand: !0,
@@ -3480,28 +3474,28 @@ function Jo() {
3480
3474
  })
3481
3475
  ] });
3482
3476
  }
3483
- function Yo({ children: e }) {
3484
- let t = Ut(), n = qt();
3485
- return /* @__PURE__ */ X(fe, {
3477
+ function Xo({ children: e }) {
3478
+ let t = Wt(), n = Jt();
3479
+ return /* @__PURE__ */ Y(pe, {
3486
3480
  viewport: t,
3487
3481
  breakpoints: n,
3488
3482
  children: e
3489
3483
  });
3490
3484
  }
3491
- function Xo() {
3492
- return /* @__PURE__ */ X(Qt, { children: /* @__PURE__ */ X(ni, {
3493
- client: Wo,
3494
- children: /* @__PURE__ */ X(ce, { children: /* @__PURE__ */ X(Yo, { children: /* @__PURE__ */ X(Jo, {}) }) })
3485
+ function Zo() {
3486
+ return /* @__PURE__ */ Y($t, { children: /* @__PURE__ */ Y(ii, {
3487
+ client: Go,
3488
+ children: /* @__PURE__ */ Y(le, { children: /* @__PURE__ */ Y(Xo, { children: /* @__PURE__ */ Y(Yo, {}) }) })
3495
3489
  }) });
3496
3490
  }
3497
3491
  //#endregion
3498
3492
  //#region src/api/batch.ts
3499
- var Zo = class {
3493
+ var Qo = class {
3500
3494
  ops = [];
3501
3495
  call(e, t) {
3502
3496
  return this.ops.push({
3503
3497
  action: e,
3504
- params: Qo(t)
3498
+ params: $o(t)
3505
3499
  }), this;
3506
3500
  }
3507
3501
  upsert(e, t, n = "upsert", r = []) {
@@ -3514,7 +3508,7 @@ var Zo = class {
3514
3508
  }
3515
3509
  async execute() {
3516
3510
  if (this.ops.length === 0) throw Error("declarion: batch.execute() called with no ops; add ops via .call() or .upsert()");
3517
- return await Se("system.batch", {
3511
+ return await Ce("system.batch", {
3518
3512
  actions: this.ops,
3519
3513
  atomic: !0
3520
3514
  });
@@ -3523,14 +3517,14 @@ var Zo = class {
3523
3517
  return this.ops;
3524
3518
  }
3525
3519
  };
3526
- function Qo(e) {
3520
+ function $o(e) {
3527
3521
  return e == null ? null : typeof e == "object" && !Array.isArray(e) ? e : { value: e };
3528
3522
  }
3529
3523
  //#endregion
3530
3524
  //#region src/hooks/useAllEntityData.ts
3531
- var $o = 1e3, es = 20;
3532
- function ts(e, t = {}) {
3533
- return ri({
3525
+ var es = 1e3, ts = 20;
3526
+ function ns(e, t = {}) {
3527
+ return ai({
3534
3528
  queryKey: [
3535
3529
  "entity-data-all",
3536
3530
  e,
@@ -3540,24 +3534,24 @@ function ts(e, t = {}) {
3540
3534
  queryFn: async ({ signal: n }) => {
3541
3535
  let r = {
3542
3536
  ...t,
3543
- per_page: $o,
3537
+ per_page: es,
3544
3538
  count: "with"
3545
3539
  }, i;
3546
3540
  try {
3547
- i = await F(e, {
3541
+ i = await P(e, {
3548
3542
  ...r,
3549
3543
  page: 1
3550
3544
  }, { signal: n });
3551
3545
  } catch (t) {
3552
- throw t instanceof je && 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;
3546
+ throw t instanceof Me && 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;
3553
3547
  }
3554
3548
  let a = i.meta.total_pages ?? 1;
3555
3549
  if (a <= 1) return i;
3556
- if (a > es) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${es}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
3557
- let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => F(e, {
3550
+ if (a > ts) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${ts}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
3551
+ let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => P(e, {
3558
3552
  ...r,
3559
3553
  page: i + 2
3560
- }, { signal: n }))), s = new An();
3554
+ }, { signal: n }))), s = new Mn();
3561
3555
  s.merge(i.$refs);
3562
3556
  let c = [...i.data];
3563
3557
  for (let e of o) c.push(...e.data), s.merge(e.$refs);
@@ -3576,20 +3570,20 @@ function ts(e, t = {}) {
3576
3570
  }
3577
3571
  //#endregion
3578
3572
  //#region src/hooks/useFileReferenceJSON.ts
3579
- function ns(e, t, n, r) {
3573
+ function rs(e, t, n, r) {
3580
3574
  return [
3581
3575
  "file-reference-json",
3582
- $n(e, t),
3576
+ tr(e, t),
3583
3577
  n,
3584
3578
  r ?? null
3585
3579
  ];
3586
3580
  }
3587
- function rs(e, t, n, r) {
3588
- let i = ns(e, t, n, r);
3589
- return ri({
3581
+ function is(e, t, n, r) {
3582
+ let i = rs(e, t, n, r);
3583
+ return ai({
3590
3584
  queryKey: i,
3591
3585
  queryFn: async ({ signal: r }) => {
3592
- let i = await (await gt(e, t, n, { signal: r })).blob.text();
3586
+ let i = await (await _t(e, t, n, { signal: r })).blob.text();
3593
3587
  try {
3594
3588
  return JSON.parse(i);
3595
3589
  } catch (e) {
@@ -3601,28 +3595,28 @@ function rs(e, t, n, r) {
3601
3595
  }
3602
3596
  //#endregion
3603
3597
  //#region src/hooks/useLiveObject.ts
3604
- function is(e, t) {
3605
- let n = Qn(e, t), { data: r } = l(), i = n.data?.data ? d(n.data.data) : void 0, a = In(e ? r?.entities?.[e]?.realtime : void 0, e ?? ""), o = e ? a : !1;
3598
+ function as(e, t) {
3599
+ let n = er(e, t), { data: r } = l(), i = n.data?.data ? d(n.data.data) : void 0, a = Rn(e ? r?.entities?.[e]?.realtime : void 0, e ?? ""), o = e ? a : !1;
3606
3600
  return {
3607
3601
  ...n,
3608
3602
  object: i,
3609
3603
  isLive: o,
3610
- isNotFound: n.error instanceof je && n.error.status === 404
3604
+ isNotFound: n.error instanceof Me && n.error.status === 404
3611
3605
  };
3612
3606
  }
3613
3607
  //#endregion
3614
3608
  //#region src/hooks/useColumns.ts
3615
- function as(e, t) {
3616
- let [n, r] = _i(), i = K(() => {
3609
+ function os(e, t) {
3610
+ let [n, r] = vi(), i = G(() => {
3617
3611
  let r = n.get("columns");
3618
3612
  return r ? r.split(",").filter(Boolean).filter((t) => e.includes(t)) : t.length > 0 ? t : e;
3619
3613
  }, [
3620
3614
  n,
3621
3615
  e,
3622
3616
  t
3623
- ]), a = W((e) => {
3617
+ ]), a = U((e) => {
3624
3618
  let i = new URLSearchParams(n);
3625
- e.length === 0 || os(e, t) ? i.delete("columns") : i.set("columns", e.join(",")), r(i);
3619
+ e.length === 0 || ss(e, t) ? i.delete("columns") : i.set("columns", e.join(",")), r(i);
3626
3620
  }, [
3627
3621
  n,
3628
3622
  r,
@@ -3632,15 +3626,15 @@ function as(e, t) {
3632
3626
  visibleColumns: i,
3633
3627
  availableColumns: e,
3634
3628
  setColumns: a,
3635
- resetToDefaults: W(() => {
3629
+ resetToDefaults: U(() => {
3636
3630
  let e = new URLSearchParams(n);
3637
3631
  e.delete("columns"), r(e);
3638
3632
  }, [n, r]),
3639
- showAll: W(() => {
3633
+ showAll: U(() => {
3640
3634
  a(e);
3641
3635
  }, [e, a]),
3642
- isColumnVisible: W((e) => i.includes(e), [i]),
3643
- toggleColumn: W((e) => {
3636
+ isColumnVisible: U((e) => i.includes(e), [i]),
3637
+ toggleColumn: U((e) => {
3644
3638
  if (i.includes(e)) {
3645
3639
  if (i.length <= 1) return;
3646
3640
  a(i.filter((t) => t !== e));
@@ -3648,29 +3642,29 @@ function as(e, t) {
3648
3642
  }, [i, a])
3649
3643
  };
3650
3644
  }
3651
- function os(e, t) {
3645
+ function ss(e, t) {
3652
3646
  return e.length === t.length && e.every((e, n) => e === t[n]);
3653
3647
  }
3654
3648
  //#endregion
3655
3649
  //#region src/hooks/useScreenTab.ts
3656
- function ss(e) {
3657
- let t = di(), [n] = _i(), r = e?.route ?? t.pathname, i = q(n.toString());
3658
- Or(r, e?.title ?? r, e?.icon, i.current), br(r);
3650
+ function cs(e) {
3651
+ let t = Q(), [n] = vi(), r = e?.route ?? t.pathname, i = K(n.toString());
3652
+ Ar(r, e?.title ?? r, e?.icon, i.current), Sr(r);
3659
3653
  }
3660
3654
  //#endregion
3661
3655
  //#region src/components/actions/ObjectActionBar.tsx
3662
- function cs({ entity: e, object: n, slot: i, screen: a, select: o, onAfterRun: s }) {
3663
- let c = I(), u = I("errors"), { data: d } = l(), { run: p, isRunning: m } = jn(), h = oe(), g = vn(), _ = di(), v = d?.entities?.[e], y = K(() => us(d, e, a, _.pathname), [
3656
+ function ls({ entity: e, object: n, slot: i, screen: a, select: o, onAfterRun: s }) {
3657
+ let c = F(), u = F("errors"), { data: d } = l(), { run: p, isRunning: m } = Nn(), h = oe(), g = yn(), _ = Q(), v = d?.entities?.[e], y = G(() => ds(d, e, a, _.pathname), [
3664
3658
  d,
3665
3659
  e,
3666
3660
  a,
3667
3661
  _.pathname
3668
3662
  ]), b = d?.actions, x = f(d, e);
3669
3663
  return {
3670
- nodes: K(() => {
3664
+ nodes: G(() => {
3671
3665
  if (!v || !n) return [];
3672
- let e = fs(r(y?.action_layout, v.action_layout, v.actions, b, i), o);
3673
- return t(c, e, v.actions, b, n, [], rr(v, n));
3666
+ let e = ps(r(y?.action_layout, v.action_layout, v.actions, b, i), o);
3667
+ return t(c, e, v.actions, b, n, [], ar(v, n));
3674
3668
  }, [
3675
3669
  c,
3676
3670
  y?.action_layout,
@@ -3682,21 +3676,21 @@ function cs({ entity: e, object: n, slot: i, screen: a, select: o, onAfterRun: s
3682
3676
  ]),
3683
3677
  run: (t, r) => {
3684
3678
  if (!v || !n) return;
3685
- let i = or(u, t, r, { row: n }, e);
3679
+ let i = cr(u, t, r, { row: n }, e);
3686
3680
  if (i === null) return;
3687
3681
  let a = E(n, v), o = a ? [a] : [], l = t === "__delete" && x ? x.route : null;
3688
3682
  return p({
3689
3683
  action: r,
3690
3684
  title: c(r.display?.name) || t,
3691
3685
  row: n,
3692
- execute: (e) => Re(i, de(e, o)),
3686
+ execute: (e) => ze(i, fe(e, o)),
3693
3687
  onSuccess: (e) => {
3694
3688
  l && h(l, { replace: !0 }), s?.(t, e);
3695
3689
  }
3696
3690
  });
3697
3691
  },
3698
3692
  isBusy: m,
3699
- widgetContext: K(() => {
3693
+ widgetContext: G(() => {
3700
3694
  if (!v || !n) return;
3701
3695
  let t = E(n, v);
3702
3696
  return {
@@ -3712,7 +3706,7 @@ function cs({ entity: e, object: n, slot: i, screen: a, select: o, onAfterRun: s
3712
3706
  icon: t?.icon,
3713
3707
  search: t?.search
3714
3708
  }),
3715
- runActionApi: (e, t) => Re(e, t)
3709
+ runActionApi: (e, t) => ze(e, t)
3716
3710
  };
3717
3711
  }, [
3718
3712
  v,
@@ -3724,8 +3718,8 @@ function cs({ entity: e, object: n, slot: i, screen: a, select: o, onAfterRun: s
3724
3718
  ])
3725
3719
  };
3726
3720
  }
3727
- function ls({ entity: e, object: t, slot: n, screen: r, select: i, extraActions: a, onAfterRun: o }) {
3728
- let { data: s } = l(), { nodes: c, run: u, widgetContext: d } = cs({
3721
+ function us({ entity: e, object: t, slot: n, screen: r, select: i, extraActions: a, onAfterRun: o }) {
3722
+ let { data: s } = l(), { nodes: c, run: u, widgetContext: d } = ls({
3729
3723
  entity: e,
3730
3724
  object: t,
3731
3725
  slot: n,
@@ -3733,9 +3727,9 @@ function ls({ entity: e, object: t, slot: n, screen: r, select: i, extraActions:
3733
3727
  select: i,
3734
3728
  onAfterRun: o
3735
3729
  }), f = s?.entities?.[e];
3736
- return c.length === 0 && !a ? null : /* @__PURE__ */ Z("span", {
3730
+ return c.length === 0 && !a ? null : /* @__PURE__ */ X("span", {
3737
3731
  style: { display: "contents" },
3738
- children: [c.length > 0 && /* @__PURE__ */ X(ur, {
3732
+ children: [c.length > 0 && /* @__PURE__ */ Y(fr, {
3739
3733
  layout: c,
3740
3734
  row: t,
3741
3735
  onRun: u,
@@ -3747,24 +3741,24 @@ function ls({ entity: e, object: t, slot: n, screen: r, select: i, extraActions:
3747
3741
  }), a]
3748
3742
  });
3749
3743
  }
3750
- function us(e, t, n, r) {
3744
+ function ds(e, t, n, r) {
3751
3745
  if (!e?.screens) return;
3752
3746
  if (n) return e.screens[n];
3753
3747
  let i = r.replace(/\/+$/, "") || "/";
3754
- return Object.values(e.screens).find((e) => e.entity !== t || !e.route ? !1 : ds(e.route).test(i));
3748
+ return Object.values(e.screens).find((e) => e.entity !== t || !e.route ? !1 : fs(e.route).test(i));
3755
3749
  }
3756
- function ds(e) {
3750
+ function fs(e) {
3757
3751
  let t = (e.replace(/\/+$/, "") || "/").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
3758
3752
  return RegExp(`^${t.join("/")}$`);
3759
3753
  }
3760
- function fs(e, t) {
3754
+ function ps(e, t) {
3761
3755
  if (!t) return e;
3762
3756
  let n = t.include ? new Set(t.include) : null, r = t.exclude ? new Set(t.exclude) : null;
3763
- return e.map((e) => ps(e, n, r)).filter((e) => e !== null);
3757
+ return e.map((e) => ms(e, n, r)).filter((e) => e !== null);
3764
3758
  }
3765
- function ps(e, t, n) {
3759
+ function ms(e, t, n) {
3766
3760
  if (e.kind === "action") return t && !t.has(e.code) || n?.has(e.code) ? null : e;
3767
- let r = e.items.map((e) => ps(e, t, n)).filter((e) => e !== null);
3761
+ let r = e.items.map((e) => ms(e, t, n)).filter((e) => e !== null);
3768
3762
  return r.length > 0 ? {
3769
3763
  ...e,
3770
3764
  items: r
@@ -3772,7 +3766,7 @@ function ps(e, t, n) {
3772
3766
  }
3773
3767
  //#endregion
3774
3768
  //#region src/components/list/InlineEditCell.tsx
3775
- var ms = {
3769
+ var hs = {
3776
3770
  padding: "4px 6px",
3777
3771
  margin: "-4px -6px",
3778
3772
  borderRadius: 4,
@@ -3783,9 +3777,9 @@ var ms = {
3783
3777
  alignItems: "center",
3784
3778
  gap: 4
3785
3779
  };
3786
- function hs({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "always", label: a, placeholder: o }) {
3787
- let s = I(), c = I("errors"), [l, u] = J(e), [d, f] = J(e), [p, m] = J(!1), [h, g] = J(e), _ = q(null);
3788
- G(() => {
3780
+ function gs({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "always", label: a, placeholder: o }) {
3781
+ let s = F(), c = F("errors"), [l, u] = q(e), [d, f] = q(e), [p, m] = q(!1), [h, g] = q(e), _ = K(null);
3782
+ W(() => {
3789
3783
  u(e), f(e), g(e);
3790
3784
  }, [e]);
3791
3785
  let v = () => {
@@ -3809,7 +3803,7 @@ function hs({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "a
3809
3803
  if (h === void 0) return b();
3810
3804
  y(h);
3811
3805
  };
3812
- return p ? /* @__PURE__ */ Z("div", {
3806
+ return p ? /* @__PURE__ */ X("div", {
3813
3807
  style: {
3814
3808
  display: "flex",
3815
3809
  alignItems: "center",
@@ -3818,35 +3812,35 @@ function hs({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "a
3818
3812
  onKeyDown: (e) => {
3819
3813
  e.key === "Enter" && x(), e.key === "Escape" && b();
3820
3814
  },
3821
- children: [n === "select" ? /* @__PURE__ */ X(Ft, {
3815
+ children: [n === "select" ? /* @__PURE__ */ Y(It, {
3822
3816
  value: h,
3823
3817
  options: r || [],
3824
3818
  onChange: (e) => {
3825
3819
  g(e), y(e);
3826
3820
  }
3827
- }) : n === "bool" ? /* @__PURE__ */ X(st, {
3821
+ }) : n === "bool" ? /* @__PURE__ */ Y(ct, {
3828
3822
  value: h === "true",
3829
3823
  onChange: (e) => {
3830
3824
  let t = String(e);
3831
3825
  g(t), y(t);
3832
3826
  }
3833
- }) : /* @__PURE__ */ X(St, {
3827
+ }) : /* @__PURE__ */ Y(Ct, {
3834
3828
  value: h ?? "",
3835
3829
  onChange: g,
3836
3830
  autoFocus: !0,
3837
3831
  placeholder: o
3838
- }), n !== "select" && n !== "bool" && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(R, {
3832
+ }), n !== "select" && n !== "bool" && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(L, {
3839
3833
  size: 24,
3840
- icon: /* @__PURE__ */ X(L.check, { size: 13 }),
3834
+ icon: /* @__PURE__ */ Y(I.check, { size: 13 }),
3841
3835
  onClick: x,
3842
3836
  title: s("dialog.save", "Save")
3843
- }), /* @__PURE__ */ X(R, {
3837
+ }), /* @__PURE__ */ Y(L, {
3844
3838
  size: 24,
3845
- icon: /* @__PURE__ */ X(L.x, { size: 13 }),
3839
+ icon: /* @__PURE__ */ Y(I.x, { size: 13 }),
3846
3840
  onClick: b,
3847
3841
  title: s("dialog.cancel", "Cancel")
3848
3842
  })] })]
3849
- }) : /* @__PURE__ */ X("div", {
3843
+ }) : /* @__PURE__ */ Y("div", {
3850
3844
  ref: _,
3851
3845
  tabIndex: i === "enter" ? 0 : void 0,
3852
3846
  onClick: i === "always" ? v : void 0,
@@ -3860,8 +3854,8 @@ function hs({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "a
3860
3854
  onMouseLeave: (e) => {
3861
3855
  e.currentTarget.style.borderColor = "transparent";
3862
3856
  },
3863
- style: ms,
3864
- children: d ?? /* @__PURE__ */ X("span", {
3857
+ style: hs,
3858
+ children: d ?? /* @__PURE__ */ Y("span", {
3865
3859
  style: { color: "var(--text-4)" },
3866
3860
  children: s("list.cell.click_to_edit", "Click to edit")
3867
3861
  })
@@ -3869,57 +3863,57 @@ function hs({ value: e, onSave: t, type: n = "text", options: r, trigger: i = "a
3869
3863
  }
3870
3864
  //#endregion
3871
3865
  //#region src/components/layout/ImpersonationStartModal.tsx
3872
- var gs = U(() => import("./ImpersonationStartModal.impl-RaZcsJpG.js").then((e) => ({ default: e.ImpersonationStartModal })));
3873
- function _s(e) {
3874
- return /* @__PURE__ */ X(H, {
3866
+ var _s = H(() => import("./ImpersonationStartModal.impl-BFBN0YJe.js").then((e) => ({ default: e.ImpersonationStartModal })));
3867
+ function vs(e) {
3868
+ return /* @__PURE__ */ Y(V, {
3875
3869
  fallback: null,
3876
- children: /* @__PURE__ */ X(gs, { ...e })
3870
+ children: /* @__PURE__ */ Y(_s, { ...e })
3877
3871
  });
3878
3872
  }
3879
3873
  //#endregion
3880
3874
  //#region src/components/agents/AgentConversationDrawer.tsx
3881
- function vs({ open: e, onClose: t, conversations: n, activeId: r, onSelect: i, onNew: a, onRefresh: o }) {
3882
- let s = I(), c = s(Ne("agent_conversation")?.display?.name_plural) || "agent_conversation";
3883
- return G(() => {
3875
+ function ys({ open: e, onClose: t, conversations: n, activeId: r, onSelect: i, onNew: a, onRefresh: o }) {
3876
+ let s = F(), c = s(Pe("agent_conversation")?.display?.name_plural) || "agent_conversation";
3877
+ return W(() => {
3884
3878
  e && o();
3885
- }, [e, o]), e ? /* @__PURE__ */ Z("aside", {
3879
+ }, [e, o]), e ? /* @__PURE__ */ X("aside", {
3886
3880
  className: "fixed left-0 top-0 z-40 flex h-full w-[320px] flex-col border-r border-border bg-card text-foreground shadow-2xl",
3887
3881
  children: [
3888
- /* @__PURE__ */ Z("header", {
3882
+ /* @__PURE__ */ X("header", {
3889
3883
  className: "flex items-center justify-between border-b border-border px-4 py-3",
3890
- children: [/* @__PURE__ */ X("span", {
3884
+ children: [/* @__PURE__ */ Y("span", {
3891
3885
  className: "font-semibold",
3892
3886
  children: c
3893
- }), /* @__PURE__ */ Z(We, {
3887
+ }), /* @__PURE__ */ X(Ge, {
3894
3888
  kind: "ghost",
3895
3889
  onClick: a,
3896
3890
  children: [
3897
- /* @__PURE__ */ X(L.plus, {}),
3891
+ /* @__PURE__ */ Y(I.plus, {}),
3898
3892
  " ",
3899
3893
  s("agent.drawer.new", "New")
3900
3894
  ]
3901
3895
  })]
3902
3896
  }),
3903
- /* @__PURE__ */ Z("div", {
3897
+ /* @__PURE__ */ X("div", {
3904
3898
  className: "flex-1 overflow-y-auto",
3905
- children: [n.length === 0 && /* @__PURE__ */ X("div", {
3899
+ children: [n.length === 0 && /* @__PURE__ */ Y("div", {
3906
3900
  className: "p-4 text-sm text-muted-foreground",
3907
3901
  children: s("agent.drawer.empty", "No conversations yet.")
3908
- }), n.map((e) => /* @__PURE__ */ Z("button", {
3902
+ }), n.map((e) => /* @__PURE__ */ X("button", {
3909
3903
  onClick: () => i(e.id),
3910
3904
  className: `block w-full px-4 py-3 text-left border-b border-divider hover:bg-surface ${e.id === r ? "bg-surface" : ""}`,
3911
- children: [/* @__PURE__ */ X("div", {
3905
+ children: [/* @__PURE__ */ Y("div", {
3912
3906
  className: "text-sm font-medium truncate",
3913
3907
  children: e.title || s("agent.drawer.untitled", "Untitled")
3914
- }), /* @__PURE__ */ Z("div", {
3908
+ }), /* @__PURE__ */ X("div", {
3915
3909
  className: "text-xs text-muted-foreground",
3916
3910
  children: [e.agent ? `${e.agent} · ` : "", e.status]
3917
3911
  })]
3918
3912
  }, e.id))]
3919
3913
  }),
3920
- /* @__PURE__ */ X("footer", {
3914
+ /* @__PURE__ */ Y("footer", {
3921
3915
  className: "border-t border-border p-2",
3922
- children: /* @__PURE__ */ X(We, {
3916
+ children: /* @__PURE__ */ Y(Ge, {
3923
3917
  kind: "ghost",
3924
3918
  onClick: t,
3925
3919
  children: s("agent.drawer.close", "Close")
@@ -3929,4 +3923,4 @@ function vs({ open: e, onClose: t, conversations: n, activeId: r, onSelect: i, o
3929
3923
  }) : null;
3930
3924
  }
3931
3925
  //#endregion
3932
- export { zn as ACTION_DATA_CURSOR_KEY, Dn as ACTION_DATA_KEY, be as ActionBatchError, Pn as ActionRunnerProvider, ba as AgentChatPanel, vs as AgentConversationDrawer, Hr as AgentElicitForm, Ur as AgentPicker, Xo as App, Xo as Declarion, un as AuthShell, Xe as Avatar, Zo as Batch, st as BoolToggle, yi as BrandGlyph, ia as Breadcrumbs, We as Btn, h as CURSOR_LANGUAGE_CHANGED, A as CURSOR_SEMANTICS_MISMATCH, Lr as ChangePasswordDialog, Xt as Check, kt as Chip, fr as CircleImage, Zt as ClassifiedFieldLocked, rt as ColumnPicker, va as CommandPalette, Qe as ConfirmDialog, Fe as CurrentScreenProvider, te as DEFAULT_RESPONSIVE_BREAKPOINTS, lt as DateInput, ot as Dropdown, an as DynamicIcon, Cr as EmptyState, On as EntityClient, bt as FieldLabel, jt as FileDraftScope, kr as FilterChips, Er as FilterDrawer, Qa as Forgot, Rt as HoverCard, L as Icon, R as IconBtn, pa as ImpersonationBanner, ma as ImpersonationFrame, _s as ImpersonationStartModal, Ht as InfoTooltip, hs as InlineEditCell, ft as JsonField, Ke as Kbd, Ce as MANDATORY_LANGUAGE, Lt as MULTIPLE_VALUES, z as MenuItem, yt as MultiSelect, xr as NO_VALUE_OPS, wr as OP_LABELS, ls as ObjectActionBar, ne as OrderedMap, Wn as PAGE_STATE_TTL_PARAM, Ir as PageHeader, xt as PasswordInput, Ge as Pill, po as Preferences, co as Profile, Pt as PropertyGridEditor, Ze as QEField, dt as QuickEditCell, qe as QuickPeek, wi as Rail, Yt as RecordIdBadge, An as RefCache, Nt as RefCombobox, ht as RefField, Fr as RefreshControl, eo as Reset, fe as ResponsiveModeProvider, xi as RowField, Nr as SCROLL_STATE_KEY, Jt as SectionCard, Ft as Select, Gi as Sidebar, qa as SignIn, Xa as SignUp, yo as SmartDetailPage, _o as SmartListPage, xo as SmartRecordListPage, _t as Spinner, hr as SquareImage, Ot as StructureField, ca as TabStrip, mt as TagsInput, ta as TenantChip, Ct as TextArea, St as TextInput, Wt as Tooltip, sa as TopBar, no as TwoFA, zt as UploadError, wt as ViewField, et as ViewSwitcher, nr as WideBanner, Rn as actionDataQueryKey, qr as answerQuestion, Xr as approveInvocation, de as buildActionBody, e as buildDetailHrefFromId, ge as buildEntityDetailHref, Mt as buildMassEditTargets, Ie as buildRowDetailHref, Ki as buildSections, Wr as cancelConversation, Rr as cancelInvocation, Gn as canonicalUrl, pe as classificationTier, ze as coerceDisplayString, dr as commonVariantActionCodes, Ar as countActiveFilters, Jr as createConversation, Tn as cursorActionDataQueryKey, En as cursorEntityDataQueryKey, Mn as cursorEntityStableKey, Pe as deleteObject, It as detectCommonValue, Vt as discardFile, sr as effectiveScreenForRecord, Fn as entityClient, N as entityDataQueryKey, ea as envTone, cr as evaluateFilterTree, Re as executeAction, ue as extractPkValues, S as failureTitle, we as fieldAccessInfo, Le as fieldClassification, ke as fieldDisplayName, j as fieldRequiredPermission, ns as fileReferenceJSONQueryKey, Dt as formatBytes, it as formatCount, $e as formatEstimatedCount, nt as formatExactCount, Be as formatOffsetTimestamp, tr as getFileWidget, rn as getIcon, ir as getImageCropper, tn as getLayoutWidget, me as getPrimaryKeyFields, er as hasFileWidget, $t as hasLayoutWidget, Dr as hasOrGroups, C as isCursorStaleError, M as isFieldReadable, P as isFieldSoDProtected, Te as isFieldWritable, Zr as listAvailableAgents, zr as listConversations, Gr as loadConversationInvocations, $r as loadConversationTurns, Br as loadHistory, n as makeTextFn, $n as objectQueryKey, Tr as parseFilterURLState, Sr as parseFiltersFromURL, Et as parseTargetFilter, xe as pickLocalized, he as pkValuePartsToId, _e as pkValuesFromId, Ae as pkValuesToDetailId, Ee as pkValuesToId, y as pluralText, pr as registerFileWidget, en as registerLayoutWidget, Oo as registerScreen, Vr as rejectInvocation, re as reresolveLanguage, ve as resolveDetailRoute, lr as resolveEntityVariantCode, ar as resolveScreenVariantCode, a as resolveViewportCategory, ye as restoreObject, Yr as sendElicitResponse, Kr as sendMessage, yr as setFiltersInURL, nn as setIconRegistry, mr as setImageCropper, x as textWithNodes, ut as uploadFile, wn as useActionData, jn as useActionRunner, Qr as useAgentConversation, ts as useAllEntityData, bn as useAuth, as as useColumns, Vn as useCreateObject, De as useCurrentScreen, Ln as useCursorActionData, Nn as useCursorEntityData, ct as useDebounce, qn as useDeleteObject, vr as useDeleteProperty, s as useDeploymentLanguage, At as useDraftRegistration, mn as useEffectiveParam, Ne as useEntity, le as useEntityCount, Oe as useEntityData, Tt as useFileDraftScope, rs as useFileReferenceJSON, Ye as useFilters, xn as useImpersonation, o as useLanguage, is as useLiveObject, ui as useLocation, fi as useNavigate, Qn as useObject, cs as useObjectActions, Je as usePageState, Jn as usePageStateTtl, fn as useParam, hi as useParams, Pr as usePlainScrollRestoration, dn as usePublicParams, Un as useRegisterRetainedQuery, pn as useResolvedParam, Ve as useResponsiveMode, Mr as useSavedScrollOffset, l as useSchema, tt as useScreen, gn as useScreenBack, ss as useScreenTab, gi as useSearchParams, gr as useSetProperty, _r as useSetStatus, vn as useTabNavigate, br as useTabSearchMirror, B as useTabStore, I as useText, Hn as useUpdateObject, at as useViews, jr as useVirtualScrollRestoration, Bt as validateClientSide, rr as variantActionCodesForRecord };
3926
+ export { Vn as ACTION_DATA_CURSOR_KEY, kn as ACTION_DATA_KEY, xe as ActionBatchError, In as ActionRunnerProvider, xa as AgentChatPanel, ys as AgentConversationDrawer, Wr as AgentElicitForm, Gr as AgentPicker, Zo as App, Zo as Declarion, dn as AuthShell, Ze as Avatar, Qo as Batch, ct as BoolToggle, bi as BrandGlyph, aa as Breadcrumbs, Ge as Btn, h as CURSOR_LANGUAGE_CHANGED, ce as CURSOR_SEMANTICS_MISMATCH, zr as ChangePasswordDialog, Zt as Check, At as Chip, mr as CircleImage, Qt as ClassifiedFieldLocked, it as ColumnPicker, ya as CommandPalette, $e as ConfirmDialog, Ie as CurrentScreenProvider, te as DEFAULT_RESPONSIVE_BREAKPOINTS, ut as DateInput, st as Dropdown, on as DynamicIcon, Tr as EmptyState, An as EntityClient, xt as FieldLabel, Mt as FileDraftScope, jr as FilterChips, Or as FilterDrawer, $a as Forgot, zt as HoverCard, I as Icon, L as IconBtn, ma as ImpersonationBanner, ha as ImpersonationFrame, vs as ImpersonationStartModal, Ut as InfoTooltip, gs as InlineEditCell, pt as JsonField, qe as Kbd, we as MANDATORY_LANGUAGE, Rt as MULTIPLE_VALUES, R as MenuItem, bt as MultiSelect, Cr as NO_VALUE_OPS, Er as OP_LABELS, us as ObjectActionBar, ne as OrderedMap, Kn as PAGE_STATE_TTL_PARAM, Rr as PageHeader, St as PasswordInput, Ke as Pill, mo as Preferences, lo as Profile, Ft as PropertyGridEditor, Qe as QEField, ft as QuickEditCell, Je as QuickPeek, Ti as Rail, Xt as RecordIdBadge, Mn as RefCache, Pt as RefCombobox, gt as RefField, Lr as RefreshControl, to as Reset, pe as ResponsiveModeProvider, Si as RowField, Fr as SCROLL_STATE_KEY, Yt as SectionCard, It as Select, Ki as Sidebar, Ja as SignIn, Za as SignUp, bo as SmartDetailPage, vo as SmartListPage, So as SmartRecordListPage, vt as Spinner, _r as SquareImage, kt as StructureField, la as TabStrip, ht as TagsInput, na as TenantChip, wt as TextArea, Ct as TextInput, Gt as Tooltip, ca as TopBar, ro as TwoFA, Bt as UploadError, Tt as ViewField, tt as ViewSwitcher, ir as WideBanner, Bn as actionDataQueryKey, Yr as answerQuestion, Qr as approveInvocation, fe as buildActionBody, e as buildDetailHrefFromId, _e as buildEntityDetailHref, Nt as buildMassEditTargets, Le as buildRowDetailHref, qi as buildSections, Kr as cancelConversation, Br as cancelInvocation, qn as canonicalUrl, me as classificationTier, Be as coerceDisplayString, pr as commonVariantActionCodes, Mr as countActiveFilters, Xr as createConversation, Dn as cursorActionDataQueryKey, On as cursorEntityDataQueryKey, Pn as cursorEntityStableKey, Fe as deleteObject, Lt as detectCommonValue, Ht as discardFile, lr as effectiveScreenForRecord, Ln as entityClient, M as entityDataQueryKey, ta as envTone, ur as evaluateFilterTree, ze as executeAction, de as extractPkValues, S as failureTitle, Te as fieldAccessInfo, Re as fieldClassification, Ae as fieldDisplayName, A as fieldRequiredPermission, rs as fileReferenceJSONQueryKey, Ot as formatBytes, at as formatCount, et as formatEstimatedCount, rt as formatExactCount, Ve as formatOffsetTimestamp, rr as getFileWidget, an as getIcon, or as getImageCropper, nn as getLayoutWidget, he as getPrimaryKeyFields, nr as hasFileWidget, en as hasLayoutWidget, kr as hasOrGroups, C as isCursorStaleError, j as isFieldReadable, N as isFieldSoDProtected, Ee as isFieldWritable, $r as listAvailableAgents, Vr as listConversations, qr as loadConversationInvocations, ti as loadConversationTurns, Hr as loadHistory, n as makeTextFn, tr as objectQueryKey, Dr as parseFilterURLState, wr as parseFiltersFromURL, Dt as parseTargetFilter, Se as pickLocalized, ge as pkValuePartsToId, ve as pkValuesFromId, je as pkValuesToDetailId, De as pkValuesToId, y as pluralText, hr as registerFileWidget, tn as registerLayoutWidget, ko as registerScreen, Ur as rejectInvocation, re as reresolveLanguage, ye as resolveDetailRoute, dr as resolveEntityVariantCode, sr as resolveScreenVariantCode, a as resolveViewportCategory, be as restoreObject, Zr as sendElicitResponse, Jr as sendMessage, xr as setFiltersInURL, rn as setIconRegistry, gr as setImageCropper, x as textWithNodes, dt as uploadFile, En as useActionData, Nn as useActionRunner, ei as useAgentConversation, ns as useAllEntityData, xn as useAuth, os as useColumns, Un as useCreateObject, Oe as useCurrentScreen, zn as useCursorActionData, Fn as useCursorEntityData, lt as useDebounce, Yn as useDeleteObject, br as useDeleteProperty, s as useDeploymentLanguage, jt as useDraftRegistration, hn as useEffectiveParam, Pe as useEntity, ue as useEntityCount, ke as useEntityData, Et as useFileDraftScope, is as useFileReferenceJSON, Xe as useFilters, Cn as useImpersonation, o as useLanguage, as as useLiveObject, fi as useLocation, pi as useNavigate, er as useObject, ls as useObjectActions, Ye as usePageState, Xn as usePageStateTtl, pn as useParam, gi as useParams, Ir as usePlainScrollRestoration, fn as usePublicParams, Gn as useRegisterRetainedQuery, mn as useResolvedParam, He as useResponsiveMode, Pr as useSavedScrollOffset, l as useSchema, nt as useScreen, _n as useScreenBack, cs as useScreenTab, _i as useSearchParams, vr as useSetProperty, yr as useSetStatus, yn as useTabNavigate, Sr as useTabSearchMirror, z as useTabStore, F as useText, Wn as useUpdateObject, ot as useViews, Nr as useVirtualScrollRestoration, Vt as validateClientSide, ar as variantActionCodesForRecord };