@declarion/react 0.59.0 → 0.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-lib/index.js CHANGED
@@ -4,22 +4,22 @@ import { _ as ct, a as lt, c as ut, d as dt, g as ft, h as pt, i as mt, l as ht,
4
4
  import { _ as wt, a as Tt, c as Et, d as Dt, f as Ot, g as kt, h as At, i as jt, l as Mt, m as Nt, n as Pt, o as Ft, p as It, r as Lt, s as Rt, t as zt, u as Bt } from "./RefreshControl-Bhoib0ZA.js";
5
5
  import { $ as Vt, A as Ht, B as Ut, C as Wt, D as Gt, E as Kt, G as qt, K as Jt, L as Yt, P as Xt, Q as Zt, S as Qt, T as $t, V as en, X as tn, Y as nn, Z as rn, _ as an, a as on, b as sn, c as cn, d as ln, et as un, f as L, g as dn, h as fn, i as pn, it as mn, m as hn, n as gn, o as _n, p as R, q as vn, r as yn, s as bn, t as z, tt as xn, u as Sn, v as Cn, w as wn, x as Tn, y as En, z as Dn } from "./useText-BFDCTUSo.js";
6
6
  import { a as On, c as kn, f as An, h as jn, i as Mn, l as B, m as Nn, n as Pn, p as Fn, r as In, s as Ln, t as Rn, u as zn } from "./registry-Cb3W-czW.js";
7
- import { i as Bn, n as Vn, r as Hn, t as Un } from "./DetailAuditStrip-GNRA_eP5.js";
8
- import { t as Wn } from "./Check-DAfMbQIw.js";
9
- import { a as Gn, h as Kn, i as qn, p as Jn, s as Yn, t as V, u as Xn, y as Zn } from "./failure-v-uGSpbX.js";
10
- import { A as Qn, C as $n, D as er, F as tr, I as nr, L as H, M as rr, N as ir, O as ar, P as or, R as sr, T as cr, _ as lr, a as ur, b as dr, f as fr, g as pr, h as mr, i as hr, j as gr, n as _r, o as vr, p as yr, r as br, s as xr, t as Sr, v as Cr, x as wr, y as Tr, z as U } from "./field-classification-C28XE-_P.js";
11
- import { n as Er } from "./value-By1-WJ8J.js";
12
- import { C as Dr, S as Or, _ as kr, a as Ar, b as jr, c as Mr, d as Nr, g as Pr, i as Fr, n as Ir, o as Lr, p as Rr, r as zr, s as Br, t as Vr, v as Hr, x as Ur, y as Wr } from "./action-dispatch-DY0c8U81.js";
13
- import { n as Gr, r as Kr, t as qr } from "./useProperties-4Lg3odrt.js";
14
- import { a as Jr, d as Yr, f as Xr, h as Zr, o as Qr, p as $r, r as ei, s as ti, t as ni } from "./useTabSearchMirror-ZVLlINBX.js";
15
- import { a as ri, c as ii, d as ai, f as oi, g as si, h as ci, i as li, l as ui, m as di, n as fi, o as pi, p as mi, r as hi, s as gi, t as _i, u as vi } from "./useAgentConversation-D97IqE-J.js";
16
- import { Fragment as yi, Suspense as bi, lazy as xi, useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as J } from "react";
17
- import { BrowserRouter as Si, Link as Ci, Navigate as wi, Outlet as Ti, Route as Y, Routes as Ei, useLocation as Di, useLocation as Oi, useNavigate as ki, useNavigate as Ai, useNavigationType as ji, useParams as Mi, useSearchParams as Ni, useSearchParams as Pi } from "react-router";
18
- import { QueryClient as Fi, QueryClientProvider as Ii, useMutation as Li, useQuery as Ri, useQueryClient as zi } from "@tanstack/react-query";
19
- import { Toaster as Bi } from "sonner";
7
+ import { a as Bn, i as Vn, n as Hn, r as Un, t as Wn } from "./DetailAuditStrip-9eJM2Fml.js";
8
+ import { t as Gn } from "./Check-DAfMbQIw.js";
9
+ import { a as Kn, h as qn, i as Jn, p as Yn, s as Xn, t as V, u as Zn, y as Qn } from "./failure-v-uGSpbX.js";
10
+ import { A as $n, C as er, D as tr, F as nr, I as rr, L as H, M as ir, N as ar, O as or, P as sr, R as cr, T as lr, _ as ur, a as dr, b as fr, f as pr, g as mr, h as hr, i as gr, j as _r, n as vr, o as yr, p as br, r as xr, s as Sr, t as Cr, v as wr, x as Tr, y as Er, z as U } from "./field-classification-C28XE-_P.js";
11
+ import { n as Dr } from "./value-By1-WJ8J.js";
12
+ import { C as Or, S as kr, _ as Ar, a as jr, b as Mr, c as Nr, d as Pr, g as Fr, i as Ir, n as Lr, o as Rr, p as zr, r as Br, s as Vr, t as Hr, v as Ur, x as Wr, y as Gr } from "./action-dispatch-DY0c8U81.js";
13
+ import { n as Kr, r as qr, t as Jr } from "./useProperties-4Lg3odrt.js";
14
+ import { a as Yr, d as Xr, f as Zr, h as Qr, o as $r, p as ei, r as ti, s as ni, t as ri } from "./useTabSearchMirror-ZVLlINBX.js";
15
+ import { a as ii, c as ai, d as oi, f as si, g as ci, h as li, i as ui, l as di, m as fi, n as pi, o as mi, p as hi, r as gi, s as _i, t as vi, u as yi } from "./useAgentConversation-D97IqE-J.js";
16
+ import { Fragment as bi, Suspense as xi, lazy as Si, useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as J } from "react";
17
+ import { BrowserRouter as Ci, Link as wi, Navigate as Ti, Outlet as Ei, Route as Y, Routes as Di, useLocation as Oi, useLocation as ki, useNavigate as Ai, useNavigate as ji, useNavigationType as Mi, useParams as Ni, useSearchParams as Pi, useSearchParams as Fi } from "react-router";
18
+ import { QueryClient as Ii, QueryClientProvider as Li, useMutation as Ri, useQuery as zi, useQueryClient as Bi } from "@tanstack/react-query";
19
+ import { Toaster as Vi } from "sonner";
20
20
  import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
21
21
  //#region src/components/primitives/BrandGlyph.tsx
22
- function Vi({ size: e = 24, className: t, title: n }) {
22
+ function Hi({ size: e = 24, className: t, title: n }) {
23
23
  return /* @__PURE__ */ Q("svg", {
24
24
  width: e,
25
25
  height: e,
@@ -55,9 +55,9 @@ function Vi({ size: e = 24, className: t, title: n }) {
55
55
  }
56
56
  //#endregion
57
57
  //#region src/components/primitives/RowField.tsx
58
- var Hi = 380;
59
- function Ui({ label: e, children: t, wide: n, editing: r, required: i }) {
60
- let a = F(), o = n || a.width < Hi, s = o ? "auto" : a.isPhone ? 104 : 140;
58
+ var Ui = 380;
59
+ function Wi({ label: e, children: t, wide: n, editing: r, required: i }) {
60
+ let a = F(), o = n || a.width < Ui, s = o ? "auto" : a.isPhone ? 104 : 140;
61
61
  return /* @__PURE__ */ Q("div", {
62
62
  style: {
63
63
  display: "flex",
@@ -99,16 +99,16 @@ function Ui({ label: e, children: t, wide: n, editing: r, required: i }) {
99
99
  }
100
100
  //#endregion
101
101
  //#region src/components/layout/Rail.tsx
102
- var Wi = 32;
103
- function Gi(e, t) {
102
+ var Gi = 32;
103
+ function Ki(e, t) {
104
104
  return !t || t.length === 0 ? [] : t.map((t) => ({
105
105
  id: t.code,
106
106
  icon: t.icon || void 0,
107
107
  label: e(t.name) || t.code
108
108
  }));
109
109
  }
110
- function Ki({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, areas: o, branding: s }) {
111
- let c = z(), l = Gi(c, o), u = s?.app_name ?? "", d = Nt(s?.app_logo) ? s?.app_logo : void 0;
110
+ function qi({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, areas: o, branding: s }) {
111
+ let c = z(), l = Ki(c, o), u = s?.app_name ?? "", d = Nt(s?.app_logo) ? s?.app_logo : void 0;
112
112
  return /* @__PURE__ */ Q("div", {
113
113
  style: {
114
114
  gridArea: "rail",
@@ -123,8 +123,8 @@ function Ki({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, are
123
123
  children: [
124
124
  /* @__PURE__ */ Z("div", {
125
125
  style: {
126
- width: Wi,
127
- height: Wi,
126
+ width: Gi,
127
+ height: Gi,
128
128
  borderRadius: 8,
129
129
  background: d ? "transparent" : "linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%)",
130
130
  display: "flex",
@@ -138,8 +138,8 @@ function Ki({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, are
138
138
  children: d ? /* @__PURE__ */ Z("img", {
139
139
  src: d,
140
140
  alt: u,
141
- width: Wi,
142
- height: Wi,
141
+ width: Gi,
142
+ height: Gi,
143
143
  style: {
144
144
  display: "block",
145
145
  objectFit: "contain"
@@ -153,7 +153,7 @@ function Ki({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, are
153
153
  children: u.charAt(0).toUpperCase()
154
154
  }) : null
155
155
  }),
156
- l.map((n) => /* @__PURE__ */ Z(qi, {
156
+ l.map((n) => /* @__PURE__ */ Z(Ji, {
157
157
  item: n,
158
158
  active: e === n.id,
159
159
  onPick: t
@@ -162,14 +162,14 @@ function Ki({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, are
162
162
  /* @__PURE__ */ Z("button", {
163
163
  onClick: a,
164
164
  title: c("shell.palette.open", "Command Palette (⌘K)"),
165
- style: Ji(!1),
165
+ style: Yi(!1),
166
166
  children: n.command && /* @__PURE__ */ Z(n.command, { size: 16 })
167
167
  }),
168
168
  /* @__PURE__ */ Z("button", {
169
169
  onClick: r,
170
170
  title: c("shell.ai_assistant", "AI Assistant"),
171
171
  style: {
172
- ...Ji(!1),
172
+ ...Yi(!1),
173
173
  background: i ? "var(--accent)" : "transparent",
174
174
  color: i ? "var(--rail-fg)" : "var(--rail-muted)"
175
175
  },
@@ -178,7 +178,7 @@ function Ki({ activeArea: e, onPick: t, onToggleAI: r, aiOpen: i, onCmdK: a, are
178
178
  ]
179
179
  });
180
180
  }
181
- function qi({ item: e, active: t, onPick: n }) {
181
+ function Ji({ item: e, active: t, onPick: n }) {
182
182
  let [i, a] = J(!1), o = q(null), s = wt(o, e.label), c = t ? "var(--rail-active)" : i ? "var(--rail-hover)" : "transparent", l = t || i ? "var(--rail-fg)" : "var(--rail-muted)";
183
183
  return /* @__PURE__ */ Q("button", {
184
184
  ref: o,
@@ -224,7 +224,7 @@ function qi({ item: e, active: t, onPick: n }) {
224
224
  ]
225
225
  });
226
226
  }
227
- function Ji(e) {
227
+ function Yi(e) {
228
228
  return {
229
229
  width: 36,
230
230
  height: 36,
@@ -240,7 +240,7 @@ function Ji(e) {
240
240
  }
241
241
  //#endregion
242
242
  //#region src/components/primitives/BrandLogo.tsx
243
- function Yi({ appLogo: e, size: t, radius: n, fallback: r }) {
243
+ function Xi({ appLogo: e, size: t, radius: n, fallback: r }) {
244
244
  if (!Nt(e)) return r ? /* @__PURE__ */ Z(X, { children: r }) : null;
245
245
  let i = n ?? (t >= 30 ? 8 : 6);
246
246
  return /* @__PURE__ */ Z("img", {
@@ -257,16 +257,16 @@ function Yi({ appLogo: e, size: t, radius: n, fallback: r }) {
257
257
  }
258
258
  //#endregion
259
259
  //#region src/embed/theme.ts
260
- function Xi(e) {
260
+ function Zi(e) {
261
261
  let t = {
262
262
  ...U.getState(),
263
263
  colorScheme: e
264
264
  };
265
- sr(t), U.setState({ colorScheme: e });
265
+ cr(t), U.setState({ colorScheme: e });
266
266
  }
267
267
  //#endregion
268
268
  //#region src/embed/handshake.ts
269
- function Zi(e, t) {
269
+ function Qi(e, t) {
270
270
  if (e.origin !== t) return { kind: "rejected" };
271
271
  let n = e.data;
272
272
  if (typeof n != "object" || !n) return { kind: "rejected" };
@@ -279,9 +279,9 @@ function Zi(e, t) {
279
279
  received: r.protocol
280
280
  };
281
281
  }
282
- function Qi(e, t) {
282
+ function $i(e, t) {
283
283
  return (n) => {
284
- let r = Zi(n, e);
284
+ let r = Qi(n, e);
285
285
  if (r.kind === "rejected") return;
286
286
  if (r.kind === "protocol-mismatch") {
287
287
  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.`);
@@ -301,12 +301,12 @@ function Qi(e, t) {
301
301
  }
302
302
  //#endregion
303
303
  //#region src/embed/EmbedAuthBootstrap.tsx
304
- var $i = 2e4;
305
- function ea() {
306
- let e = Gt(), t = Ai(), n = Oi(), r = R((e) => e.setUser), [i, a] = J("pending"), o = q(!1), s = q(n.pathname);
304
+ var ea = 2e4;
305
+ function ta() {
306
+ let e = Gt(), t = ji(), n = ki(), r = R((e) => e.setUser), [i, a] = J("pending"), o = q(!1), s = q(n.pathname);
307
307
  return s.current = n.pathname, G(() => {
308
308
  if (!e.enabled) return;
309
- qt(e.parentOrigin), or.getState().reset();
309
+ qt(e.parentOrigin), sr.getState().reset();
310
310
  let n = Yt(() => {
311
311
  tn(e.parentOrigin, nn.reloadRequired, { reason: "embed session terminated" });
312
312
  }), i = async () => {
@@ -319,13 +319,13 @@ function ea() {
319
319
  a("error");
320
320
  }
321
321
  }
322
- }, c = e.parentOrigin ? Qi(e.parentOrigin, {
322
+ }, c = e.parentOrigin ? $i(e.parentOrigin, {
323
323
  onAuth: (e) => {
324
324
  vn(e), o.current || i();
325
325
  },
326
326
  onNavigate: (n) => {
327
327
  let r = () => {
328
- or.getState().markRoot(), t(e.appendEmbedParams(n.route));
328
+ sr.getState().markRoot(), t(e.appendEmbedParams(n.route));
329
329
  }, i = n.route.split(/[?#]/)[0];
330
330
  if (y.getState().isDirty && i !== s.current) {
331
331
  m.getState().requestNavigation(r);
@@ -334,13 +334,13 @@ function ea() {
334
334
  r();
335
335
  },
336
336
  onTheme: (e) => {
337
- Xi(e.theme);
337
+ Zi(e.theme);
338
338
  }
339
339
  }) : null;
340
340
  c && window.addEventListener("message", c), tn(e.parentOrigin, nn.ready, {});
341
341
  let l = window.setTimeout(() => {
342
342
  o.current || a("error");
343
- }, $i);
343
+ }, ea);
344
344
  return () => {
345
345
  c && window.removeEventListener("message", c), window.clearTimeout(l), Yt(n);
346
346
  };
@@ -348,9 +348,9 @@ function ea() {
348
348
  e,
349
349
  t,
350
350
  r
351
- ]), !e.enabled || i !== "error" ? null : /* @__PURE__ */ Z(ta, {});
351
+ ]), !e.enabled || i !== "error" ? null : /* @__PURE__ */ Z(na, {});
352
352
  }
353
- function ta() {
353
+ function na() {
354
354
  let e = z("errors");
355
355
  return /* @__PURE__ */ Z("div", {
356
356
  role: "alert",
@@ -360,12 +360,12 @@ function ta() {
360
360
  }
361
361
  //#endregion
362
362
  //#region src/embed/EmbedResizeReporter.tsx
363
- var na = "app-embed";
364
- function ra() {
363
+ var ra = "app-embed";
364
+ function ia() {
365
365
  let e = Gt(), t = e.enabled && e.parentOrigin !== null;
366
366
  return G(() => {
367
367
  if (!t || typeof window > "u" || typeof ResizeObserver > "u") return;
368
- let n = document.getElementById(na);
368
+ let n = document.getElementById(ra);
369
369
  if (!n) return;
370
370
  let r = null, i = -1, a = () => {
371
371
  r = null;
@@ -381,7 +381,7 @@ function ra() {
381
381
  }
382
382
  //#endregion
383
383
  //#region src/embed/EmbedDirtyReporter.tsx
384
- function ia() {
384
+ function aa() {
385
385
  let e = Gt(), t = y((e) => e.isDirty), n = e.enabled && e.parentOrigin !== null;
386
386
  return G(() => {
387
387
  n && tn(e.parentOrigin, nn.dirtyChanged, { dirty: t });
@@ -393,31 +393,31 @@ function ia() {
393
393
  }
394
394
  //#endregion
395
395
  //#region src/embed/EmbedHistoryTracker.tsx
396
- function aa() {
397
- let e = Gt(), t = ji(), n = Oi(), r = e.enabled && e.navigationMode === "self", i = q(null);
396
+ function oa() {
397
+ let e = Gt(), t = Mi(), n = ki(), r = e.enabled && e.navigationMode === "self", i = q(null);
398
398
  return G(() => {
399
- r && i.current !== n.key && (i.current = n.key, or.getState().applyNavigation(t));
399
+ r && i.current !== n.key && (i.current = n.key, sr.getState().applyNavigation(t));
400
400
  }, [
401
401
  r,
402
402
  n.key,
403
403
  t
404
404
  ]), null;
405
405
  }
406
- function oa(e) {
406
+ function sa(e) {
407
407
  return e instanceof HTMLAnchorElement || typeof SVGAElement < "u" && e instanceof SVGAElement;
408
408
  }
409
- function sa(e) {
410
- for (let t of e.composedPath()) if (oa(t)) return t;
409
+ function ca(e) {
410
+ for (let t of e.composedPath()) if (sa(t)) return t;
411
411
  return null;
412
412
  }
413
- function ca(e) {
413
+ function la(e) {
414
414
  return e instanceof HTMLAnchorElement ? e.getAttribute("href") : e.href?.baseVal ?? e.getAttribute("href") ?? e.getAttribute("xlink:href");
415
415
  }
416
- function la(e, t = window.location) {
416
+ function ua(e, t = window.location) {
417
417
  if (e.defaultPrevented || Fn(e)) return null;
418
- let n = sa(e);
418
+ let n = ca(e);
419
419
  if (!n || n.hasAttribute("data-declarion-native-link")) return null;
420
- let r = ca(n);
420
+ let r = la(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 la(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 ua(e, t = window.location) {
434
+ function da(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 ua(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 da() {
445
- let e = ir(), t = Gt().enabled, n = q(e);
444
+ function fa() {
445
+ let e = ar(), t = Gt().enabled, n = q(e);
446
446
  n.current = e, G(() => {
447
447
  let e = (e) => {
448
- let t = la(e);
448
+ let t = ua(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 = ua(e);
453
+ let t = da(e);
454
454
  t != null && e.cancelable && (e.preventDefault(), n.current(t));
455
455
  };
456
456
  return t && r?.addEventListener("navigate", i), () => {
@@ -460,8 +460,8 @@ function da() {
460
460
  }
461
461
  //#endregion
462
462
  //#region src/embed/EmbedLocationReporter.tsx
463
- function fa() {
464
- let e = Gt(), t = Oi(), { data: n } = L(), r = q(null), i = e.enabled && e.navigationMode === "self";
463
+ function pa() {
464
+ let e = Gt(), t = ki(), { data: n } = L(), r = q(null), i = e.enabled && e.navigationMode === "self";
465
465
  return G(() => {
466
466
  if (!i) return;
467
467
  let a = `${t.pathname}${t.search}`;
@@ -479,7 +479,7 @@ function fa() {
479
479
  }
480
480
  //#endregion
481
481
  //#region src/embed/EmbedUnsavedGuard.tsx
482
- function pa() {
482
+ function ma() {
483
483
  let e = z(), t = m((e) => e.pendingNavigation), n = m((e) => e.confirmNavigation), r = m((e) => e.cancelNavigation);
484
484
  return t === null ? null : /* @__PURE__ */ Z(ct, {
485
485
  open: !0,
@@ -497,8 +497,8 @@ function pa() {
497
497
  }
498
498
  //#endregion
499
499
  //#region src/components/layout/Sidebar.tsx
500
- function ma({ activeArea: e }) {
501
- let t = z(), { data: r } = L(), i = Oi(), a = ir(), o = U((e) => e.sidebar), s = U((e) => e.set), c = o === "collapsed", [l, u] = J({}), d = Dt(), f = d?.app_name ?? "", m = d?.app_logo, h = d?.version_label ?? "", g = K(() => ha(t, r?.navigation ?? [], e), [
500
+ function ha({ activeArea: e }) {
501
+ let t = z(), { data: r } = L(), i = ki(), a = ar(), o = U((e) => e.sidebar), s = U((e) => e.set), c = o === "collapsed", [l, u] = J({}), d = Dt(), f = d?.app_name ?? "", m = d?.app_logo, h = d?.version_label ?? "", g = K(() => ga(t, r?.navigation ?? [], e), [
502
502
  t,
503
503
  r?.navigation,
504
504
  e
@@ -531,7 +531,7 @@ function ma({ activeArea: e }) {
531
531
  borderBottom: "1px solid var(--divider)",
532
532
  gap: 8
533
533
  },
534
- children: c ? m ? /* @__PURE__ */ Z(Yi, {
534
+ children: c ? m ? /* @__PURE__ */ Z(Xi, {
535
535
  appLogo: m,
536
536
  size: 18
537
537
  }) : f ? /* @__PURE__ */ Z("span", {
@@ -542,7 +542,7 @@ function ma({ activeArea: e }) {
542
542
  },
543
543
  children: f.charAt(0)
544
544
  }) : null : /* @__PURE__ */ Q(X, { children: [
545
- /* @__PURE__ */ Z(Yi, {
545
+ /* @__PURE__ */ Z(Xi, {
546
546
  appLogo: m,
547
547
  size: 20
548
548
  }),
@@ -590,7 +590,7 @@ function ma({ activeArea: e }) {
590
590
  children: e.title
591
591
  }), e.items.map((e, i) => {
592
592
  let o = `${n}-${i}-${e.screen || t(e.name)}`, s = e.screen ? r?.screens[e.screen] : void 0, d = _(s?.route), f = !!(e.children && e.children.length > 0), p = !!l[o];
593
- return /* @__PURE__ */ Z(_a, {
593
+ return /* @__PURE__ */ Z(va, {
594
594
  item: e,
595
595
  href: s?.route,
596
596
  collapsed: c,
@@ -652,9 +652,9 @@ function ma({ activeArea: e }) {
652
652
  ]
653
653
  });
654
654
  }
655
- function ha(e, t, n) {
655
+ function ga(e, t, n) {
656
656
  let r = [];
657
- for (let i of t) if (ga(i, n)) {
657
+ for (let i of t) if (_a(i, n)) {
658
658
  if (i.items && i.items.length > 0) {
659
659
  r.push({
660
660
  title: e(i.name) || "",
@@ -672,10 +672,10 @@ function ha(e, t, n) {
672
672
  }
673
673
  return r;
674
674
  }
675
- function ga(e, t) {
675
+ function _a(e, t) {
676
676
  return (e.area || "default") === t;
677
677
  }
678
- function _a({ item: e, href: t, collapsed: i, active: a, hasKids: o, expanded: s, onToggleExpand: c, onPick: l, onPickChild: u, resolveChild: d }) {
678
+ function va({ item: e, href: t, collapsed: i, active: a, hasKids: o, expanded: s, onToggleExpand: c, onPick: l, onPickChild: u, resolveChild: d }) {
679
679
  let f = z(), [p, m] = J(!1), h = !!e.icon, g = f(e.name) || e.screen || "";
680
680
  if (i) {
681
681
  let n = {
@@ -801,7 +801,7 @@ function _a({ item: e, href: t, collapsed: i, active: a, hasKids: o, expanded: s
801
801
  },
802
802
  children: (e.children || []).map((e, t) => {
803
803
  let n = d(e), r = e.screen || `${t}`;
804
- return /* @__PURE__ */ Z(va, {
804
+ return /* @__PURE__ */ Z(ya, {
805
805
  label: f(e.name) || e.screen || "",
806
806
  href: n?.route,
807
807
  enabled: !!n,
@@ -810,7 +810,7 @@ function _a({ item: e, href: t, collapsed: i, active: a, hasKids: o, expanded: s
810
810
  })
811
811
  })] });
812
812
  }
813
- function va({ label: e, href: t, enabled: n, onPick: r }) {
813
+ function ya({ label: e, href: t, enabled: n, onPick: r }) {
814
814
  let [i, a] = J(!1), o = {
815
815
  width: "100%",
816
816
  display: "block",
@@ -844,13 +844,13 @@ function va({ label: e, href: t, enabled: n, onPick: r }) {
844
844
  }
845
845
  //#endregion
846
846
  //#region src/hooks/useAuth.ts
847
- function ya() {
848
- let { user: e, isAuthenticated: t, isLoading: n, activeTenant: r, tenants: i, setUser: a, setTenants: o, logout: s } = R(), c = Ai(), l = zi(), u = z("errors"), d = Li({
847
+ function ba() {
848
+ let { user: e, isAuthenticated: t, isLoading: n, activeTenant: r, tenants: i, setUser: a, setTenants: o, logout: s } = R(), c = ji(), l = Bi(), u = z("errors"), d = Ri({
849
849
  mutationFn: ({ email: e, password: t, remember: n }) => Qt(e, t, n ?? !0),
850
850
  onSuccess: (e) => {
851
851
  a(e.user, e.tenant), l.invalidateQueries({ queryKey: ["schema"] }), Tn().then(o).catch(() => {});
852
852
  }
853
- }), f = Li({
853
+ }), f = Ri({
854
854
  mutationFn: ({ email: e, password: t, displayName: n }) => Wt(e, t, n),
855
855
  onSuccess: (e) => {
856
856
  a(e.user, e.tenant), l.invalidateQueries({ queryKey: ["schema"] }), Tn().then(o).catch(() => {});
@@ -858,10 +858,10 @@ function ya() {
858
858
  onError: (e) => {
859
859
  P.error(V(u, e));
860
860
  }
861
- }), p = Li({
861
+ }), p = Ri({
862
862
  mutationFn: (e) => $t(e),
863
863
  onSuccess: (e) => {
864
- let t = e.tenant?.id, n = e.user?.id, r = t && n && tr(t, n) || "/";
864
+ let t = e.tenant?.id, n = e.user?.id, r = t && n && nr(t, n) || "/";
865
865
  window.location.assign(r);
866
866
  },
867
867
  onError: (e) => {
@@ -878,7 +878,7 @@ function ya() {
878
878
  signup: f.mutate,
879
879
  switchTenant: p.mutate,
880
880
  logout: async () => {
881
- await s(), l.clear(), rr.getState().clear(), c("/login");
881
+ await s(), l.clear(), ir.getState().clear(), c("/login");
882
882
  },
883
883
  isLoginPending: d.isPending,
884
884
  isSignupPending: f.isPending,
@@ -887,20 +887,20 @@ function ya() {
887
887
  }
888
888
  //#endregion
889
889
  //#region src/hooks/useImpersonation.ts
890
- function ba() {
891
- let e = R((e) => e.user), t = R((e) => e.initialize), n = zi(), r = z(), i = z("errors"), a = e?.impersonation ?? null, o = !!a, s = Li({
890
+ function xa() {
891
+ let e = R((e) => e.user), t = R((e) => e.initialize), n = Bi(), r = z(), i = z("errors"), a = e?.impersonation ?? null, o = !!a, s = Ri({
892
892
  mutationFn: ({ targetUserId: e, reason: t, durationMinutes: n }) => Cn(e, t, n),
893
893
  onSuccess: async () => {
894
894
  await t(), await gn(n), n.invalidateQueries(), P.success(r("toast.impersonation.started", "Impersonation session started."));
895
895
  },
896
896
  onError: (e) => P.error(V(i, e))
897
- }), c = Li({
897
+ }), c = Ri({
898
898
  mutationFn: () => En(),
899
899
  onSuccess: async () => {
900
900
  await t(), await gn(n), n.invalidateQueries(), P.success(r("toast.impersonation.returned", "Returned to your own session."));
901
901
  },
902
902
  onError: (e) => P.error(V(i, e))
903
- }), l = Li({
903
+ }), l = Ri({
904
904
  mutationFn: (e) => an(e),
905
905
  onSuccess: () => {
906
906
  P.success(r("toast.impersonation.revoke_done", "Session revoked.")), n.invalidateQueries({ queryKey: ["impersonation_session"] });
@@ -919,11 +919,11 @@ function ba() {
919
919
  }
920
920
  //#endregion
921
921
  //#region src/components/layout/TenantChip.tsx
922
- var xa = 6;
923
- function Sa(e) {
922
+ var Sa = 6;
923
+ function Ca(e) {
924
924
  return e.startsWith("_");
925
925
  }
926
- var Ca = {
926
+ var wa = {
927
927
  production: {
928
928
  fg: "#C2362C",
929
929
  bg: "#FAE8E6",
@@ -945,16 +945,16 @@ var Ca = {
945
945
  darkFg: "#5AB3EA",
946
946
  darkBg: "rgba(90,179,234,0.14)"
947
947
  }
948
- }, wa = {
948
+ }, Ta = {
949
949
  fg: "#5B6270",
950
950
  bg: "#F3F4F7",
951
951
  border: "#E6E8EE"
952
952
  };
953
- function Ta(e) {
954
- return e ? Ca[e] ?? wa : Ca.production;
953
+ function Ea(e) {
954
+ return e ? wa[e] ?? Ta : wa.production;
955
955
  }
956
- function Ea({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o, lockedReason: s }) {
957
- let c = z(), [l, u] = J(!1), [d, f] = J(""), p = q(null), m = e?.env, h = Ta(m), g = e?.name || "—", _ = e?.role || "—", v = K(() => t.filter((e) => e.is_member !== !1), [t]), y = K(() => t.filter((e) => e.is_member === !1), [t]), b = t.length >= xa, x = (e) => {
956
+ function Da({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o, lockedReason: s }) {
957
+ let c = z(), [l, u] = J(!1), [d, f] = J(""), p = q(null), m = e?.env, h = Ea(m), g = e?.name || "—", _ = e?.role || "—", v = K(() => t.filter((e) => e.is_member !== !1), [t]), y = K(() => t.filter((e) => e.is_member === !1), [t]), b = t.length >= Sa, x = (e) => {
958
958
  if (!d) return !0;
959
959
  let t = d.toLowerCase();
960
960
  return e.name.toLowerCase().includes(t) || e.code.toLowerCase().includes(t);
@@ -1131,7 +1131,7 @@ function Ea({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o
1131
1131
  overflowY: "auto"
1132
1132
  },
1133
1133
  children: [
1134
- /* @__PURE__ */ Z(Da, {
1134
+ /* @__PURE__ */ Z(Oa, {
1135
1135
  label: y.length > 0 ? c("shell.tenant.yours", "Your tenants") : c("shell.tenant.switch", "Switch tenant"),
1136
1136
  tenants: S,
1137
1137
  activeID: e?.id,
@@ -1139,7 +1139,7 @@ function Ea({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o
1139
1139
  u(!1), r(e);
1140
1140
  }
1141
1141
  }),
1142
- C.length > 0 && /* @__PURE__ */ Z(Da, {
1142
+ C.length > 0 && /* @__PURE__ */ Z(Oa, {
1143
1143
  label: c("shell.tenant.all_admin", "All tenants (admin)"),
1144
1144
  tenants: C,
1145
1145
  activeID: e?.id,
@@ -1180,7 +1180,7 @@ function Ea({ tenant: e, tenants: t, onSwitch: r, busy: i, compact: a, locked: o
1180
1180
  })]
1181
1181
  });
1182
1182
  }
1183
- function Da({ label: e, tenants: t, activeID: n, onPick: r }) {
1183
+ function Oa({ label: e, tenants: t, activeID: n, onPick: r }) {
1184
1184
  return t.length === 0 ? null : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
1185
1185
  style: {
1186
1186
  padding: "6px 10px 4px",
@@ -1191,15 +1191,15 @@ function Da({ label: e, tenants: t, activeID: n, onPick: r }) {
1191
1191
  textTransform: "uppercase"
1192
1192
  },
1193
1193
  children: e
1194
- }), t.map((e) => /* @__PURE__ */ Z(Oa, {
1194
+ }), t.map((e) => /* @__PURE__ */ Z(ka, {
1195
1195
  tenant: e,
1196
- tone: Ta(e.env),
1196
+ tone: Ea(e.env),
1197
1197
  active: e.id === n,
1198
1198
  onPick: () => r(e)
1199
1199
  }, e.id))] });
1200
1200
  }
1201
- function Oa({ tenant: e, tone: t, active: r, onPick: i }) {
1202
- let a = z(), [o, s] = J(!1), c = r || o ? "var(--surface-3)" : "transparent", l = Sa(e.code);
1201
+ function ka({ tenant: e, tone: t, active: r, onPick: i }) {
1202
+ let a = z(), [o, s] = J(!1), c = r || o ? "var(--surface-3)" : "transparent", l = Ca(e.code);
1203
1203
  return /* @__PURE__ */ Q("button", {
1204
1204
  onClick: i,
1205
1205
  onMouseEnter: () => s(!0),
@@ -1273,7 +1273,7 @@ function Oa({ tenant: e, tone: t, active: r, onPick: i }) {
1273
1273
  }
1274
1274
  //#endregion
1275
1275
  //#region src/components/chrome/Breadcrumbs.tsx
1276
- function ka({ items: e, onCrumbClick: t }) {
1276
+ function Aa({ items: e, onCrumbClick: t }) {
1277
1277
  return !e || e.length === 0 ? null : /* @__PURE__ */ Z("nav", {
1278
1278
  style: {
1279
1279
  display: "flex",
@@ -1286,13 +1286,13 @@ function ka({ items: e, onCrumbClick: t }) {
1286
1286
  },
1287
1287
  children: e.map((r, i) => {
1288
1288
  let a = i === e.length - 1, o = !!r.onClick || !!r.target;
1289
- return /* @__PURE__ */ Q(yi, { children: [i > 0 && /* @__PURE__ */ Z("span", {
1289
+ return /* @__PURE__ */ Q(bi, { children: [i > 0 && /* @__PURE__ */ Z("span", {
1290
1290
  style: {
1291
1291
  color: "var(--text-4)",
1292
1292
  padding: "0 4px"
1293
1293
  },
1294
1294
  children: /* @__PURE__ */ Z(n.right, { size: 11 })
1295
- }), /* @__PURE__ */ Z(Aa, {
1295
+ }), /* @__PURE__ */ Z(ja, {
1296
1296
  crumb: r,
1297
1297
  last: a,
1298
1298
  clickable: o,
@@ -1301,7 +1301,7 @@ function ka({ items: e, onCrumbClick: t }) {
1301
1301
  })
1302
1302
  });
1303
1303
  }
1304
- function Aa({ crumb: e, last: t, clickable: r, onClick: i }) {
1304
+ function ja({ crumb: e, last: t, clickable: r, onClick: i }) {
1305
1305
  let [a, o] = J(!1), s = e.icon && n[e.icon] ? n[e.icon] : n.folder;
1306
1306
  return /* @__PURE__ */ Q("button", {
1307
1307
  onClick: () => {
@@ -1336,9 +1336,9 @@ function Aa({ crumb: e, last: t, clickable: r, onClick: i }) {
1336
1336
  }
1337
1337
  //#endregion
1338
1338
  //#region src/components/layout/TopBar.tsx
1339
- var ja = "⌘K";
1340
- function Ma({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, showNavButton: a, onOpenTabs: o, tabsButtonRef: s, showTabsButton: c, mobileTabCount: l = 0, onCmdK: u, onToggleAI: d, aiOpen: f, onOpenProfile: m, onOpenPrefs: h, showTenantSwitcher: g = !0, showBreadcrumbs: _ = !0, showThemeToggle: y = !0 } = {}) {
1341
- let b = z(), x = R((e) => e.user), C = F(), { activeTenant: w, tenants: T, switchTenant: E, isSwitchingTenant: D, logout: O } = ya(), { isImpersonating: te, stop: k } = ba(), A = U((e) => e.colorScheme), ne = U((e) => e.set), [re, j] = J(!1), ie = q(null), ae = w?.env, oe = Ta(ae), se = x?.email ?? "", ce = x?.display_name || se || b("shell.user_menu.user", "User"), le = a && C.category === "phone", M = a && C.category !== "desktop", ue = () => {
1339
+ var Ma = "⌘K";
1340
+ function Na({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, showNavButton: a, onOpenTabs: o, tabsButtonRef: s, showTabsButton: c, mobileTabCount: l = 0, onCmdK: u, onToggleAI: d, aiOpen: f, onOpenProfile: m, onOpenPrefs: h, showTenantSwitcher: g = !0, showBreadcrumbs: _ = !0, showThemeToggle: y = !0 } = {}) {
1341
+ let b = z(), x = R((e) => e.user), C = F(), { activeTenant: w, tenants: T, switchTenant: E, isSwitchingTenant: D, logout: O } = ba(), { isImpersonating: te, stop: k } = xa(), A = U((e) => e.colorScheme), ne = U((e) => e.set), [re, j] = J(!1), ie = q(null), ae = w?.env, oe = Ea(ae), se = x?.email ?? "", ce = x?.display_name || se || b("shell.user_menu.user", "User"), le = a && C.category === "phone", M = a && C.category !== "desktop", ue = () => {
1342
1342
  ne("colorScheme", A === "dark" ? "light" : "dark");
1343
1343
  }, de = (e) => {
1344
1344
  w?.id !== e.id && (!H.getState().tabs.some((e) => e.dirty) || window.confirm(b("shell.tenant.switch_confirm", "You have unsaved changes in one or more tabs. Switching tenant will discard them. Continue?"))) && E(e.id);
@@ -1350,7 +1350,7 @@ function Ma({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1350
1350
  borderBottom: "1px solid var(--border)",
1351
1351
  display: "flex",
1352
1352
  alignItems: "center",
1353
- ...Qn(12),
1353
+ ...$n(12),
1354
1354
  gap: M ? 8 : 10,
1355
1355
  zIndex: 5,
1356
1356
  position: "relative",
@@ -1380,7 +1380,7 @@ function Ma({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1380
1380
  maxWidth: le ? "min(210px, 56vw)" : M ? 230 : void 0,
1381
1381
  flex: le ? "1 1 auto" : "0 0 auto"
1382
1382
  },
1383
- children: /* @__PURE__ */ Z(Ea, {
1383
+ children: /* @__PURE__ */ Z(Da, {
1384
1384
  tenant: w,
1385
1385
  tenants: T,
1386
1386
  onSwitch: de,
@@ -1418,7 +1418,7 @@ function Ma({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1418
1418
  fontSize: 11
1419
1419
  },
1420
1420
  children: /* @__PURE__ */ Z(n.right, { size: 10 })
1421
- }), /* @__PURE__ */ Z(ka, {
1421
+ }), /* @__PURE__ */ Z(Aa, {
1422
1422
  items: e ?? [],
1423
1423
  onCrumbClick: t
1424
1424
  })] }),
@@ -1459,7 +1459,7 @@ function Ma({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1459
1459
  },
1460
1460
  children: b("shell.topbar.search_hint", "Search or run command…")
1461
1461
  }),
1462
- /* @__PURE__ */ Z(p, { children: ja })
1462
+ /* @__PURE__ */ Z(p, { children: Ma })
1463
1463
  ]
1464
1464
  }),
1465
1465
  /* @__PURE__ */ Z(S, {
@@ -1616,7 +1616,7 @@ function Ma({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1616
1616
  }
1617
1617
  //#endregion
1618
1618
  //#region src/hooks/useTabTitle.ts
1619
- function Na() {
1619
+ function Pa() {
1620
1620
  let e = z(), { data: t } = L();
1621
1621
  return W((n) => {
1622
1622
  let r = l(e, n.pathname, t?.screens, t?.entities);
@@ -1625,8 +1625,8 @@ function Na() {
1625
1625
  }
1626
1626
  //#endregion
1627
1627
  //#region src/components/layout/TabStrip.tsx
1628
- function Pa({ onNew: e, onCloseRequest: t } = {}) {
1629
- let i = z(), a = Na(), o = Ai(), s = q(null), c = q(null), l = q(null), u = q(!1), [d, f] = J(!1), p = H((e) => e.tabs), m = H((e) => e.activeTabId), h = U((e) => e.tabsMaxOpen), g = H((e) => e.switchTab), _ = H((e) => e.closeTab), v = p.findIndex((e) => e.id === m);
1628
+ function Fa({ onNew: e, onCloseRequest: t } = {}) {
1629
+ let i = z(), a = Pa(), o = ji(), s = q(null), c = q(null), l = q(null), u = q(!1), [d, f] = J(!1), p = H((e) => e.tabs), m = H((e) => e.activeTabId), h = U((e) => e.tabsMaxOpen), g = H((e) => e.switchTab), _ = H((e) => e.closeTab), v = p.findIndex((e) => e.id === m);
1630
1630
  G(() => {
1631
1631
  let e = v === p.length - 1 ? l.current : c.current;
1632
1632
  e && (e.scrollIntoView({
@@ -1687,7 +1687,7 @@ function Pa({ onNew: e, onCloseRequest: t } = {}) {
1687
1687
  e ? e() : o("/");
1688
1688
  }, [e, o]);
1689
1689
  if (p.length === 0) return null;
1690
- let C = v >= 0 && p.length > 1 && p[v]?.closable !== !1, w = nr(p, m, "others").length > 0, T = nr(p, m, "right").length > 0, E = p.length >= h ? "danger" : p.length >= Math.ceil(h * .8) ? "warning" : "normal", D = E === "danger" ? "var(--danger)" : E === "warning" ? "var(--warn)" : "var(--text-3)";
1690
+ let C = v >= 0 && p.length > 1 && p[v]?.closable !== !1, w = rr(p, m, "others").length > 0, T = rr(p, m, "right").length > 0, E = p.length >= h ? "danger" : p.length >= Math.ceil(h * .8) ? "warning" : "normal", D = E === "danger" ? "var(--danger)" : E === "warning" ? "var(--warn)" : "var(--text-3)";
1691
1691
  return /* @__PURE__ */ Q("div", {
1692
1692
  style: {
1693
1693
  display: "flex",
@@ -1722,7 +1722,7 @@ function Pa({ onNew: e, onCloseRequest: t } = {}) {
1722
1722
  alignItems: "center",
1723
1723
  gap: 6,
1724
1724
  height: "100%",
1725
- ...Qn(11),
1725
+ ...$n(11),
1726
1726
  background: o ? "var(--surface)" : "transparent",
1727
1727
  borderRight: "1px solid var(--border)",
1728
1728
  borderTop: o ? "2px solid var(--accent)" : "2px solid transparent",
@@ -1812,7 +1812,7 @@ function Pa({ onNew: e, onCloseRequest: t } = {}) {
1812
1812
  }), /* @__PURE__ */ Q("div", {
1813
1813
  className: "tabstrip-utility",
1814
1814
  style: {
1815
- ...Qn(10),
1815
+ ...$n(10),
1816
1816
  fontSize: 11,
1817
1817
  color: "var(--text-4)",
1818
1818
  display: "flex",
@@ -1881,7 +1881,7 @@ function Pa({ onNew: e, onCloseRequest: t } = {}) {
1881
1881
  },
1882
1882
  children: /* @__PURE__ */ Z(n.more, { size: 13 })
1883
1883
  }),
1884
- /* @__PURE__ */ Z(Fa, {
1884
+ /* @__PURE__ */ Z(Ia, {
1885
1885
  open: d,
1886
1886
  anchor: s.current,
1887
1887
  onClose: () => f(!1),
@@ -1894,7 +1894,7 @@ function Pa({ onNew: e, onCloseRequest: t } = {}) {
1894
1894
  })]
1895
1895
  });
1896
1896
  }
1897
- function Fa({ open: e, anchor: t, onClose: r, canCloseCurrent: i, canCloseOthers: a, canCloseRight: o, onAction: s }) {
1897
+ function Ia({ open: e, anchor: t, onClose: r, canCloseCurrent: i, canCloseOthers: a, canCloseRight: o, onAction: s }) {
1898
1898
  let c = z();
1899
1899
  return /* @__PURE__ */ Q(ee, {
1900
1900
  open: e,
@@ -1936,8 +1936,8 @@ function Fa({ open: e, anchor: t, onClose: r, canCloseCurrent: i, canCloseOthers
1936
1936
  }
1937
1937
  //#endregion
1938
1938
  //#region src/components/layout/DirtyTabsCloseDialog.tsx
1939
- function Ia({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
1940
- let o = z(), s = Na();
1939
+ function La({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
1940
+ let o = z(), s = Pa();
1941
1941
  if (G(() => {
1942
1942
  if (!e) return;
1943
1943
  let n = (e) => {
@@ -2119,8 +2119,8 @@ function Ia({ pending: e, onCancel: t, onCloseClean: i, onDiscardAll: a }) {
2119
2119
  }
2120
2120
  //#endregion
2121
2121
  //#region src/components/layout/ImpersonationBanner.tsx
2122
- function La() {
2123
- let e = z(), { info: t, stop: n, isStopping: r } = ba(), [i, a] = J(() => Date.now());
2122
+ function Ra() {
2123
+ let e = z(), { info: t, stop: n, isStopping: r } = xa(), [i, a] = J(() => Date.now());
2124
2124
  if (G(() => {
2125
2125
  if (!t) return;
2126
2126
  let e = window.setInterval(() => a(Date.now()), 1e3);
@@ -2192,8 +2192,8 @@ function La() {
2192
2192
  }
2193
2193
  //#endregion
2194
2194
  //#region src/components/layout/ImpersonationFrame.tsx
2195
- function Ra() {
2196
- let { info: e } = ba(), { value: t } = ce(e ? "impersonation.allow_destructive" : "", !1);
2195
+ function za() {
2196
+ let { info: e } = xa(), { value: t } = ce(e ? "impersonation.allow_destructive" : "", !1);
2197
2197
  return G(() => {
2198
2198
  if (!e) {
2199
2199
  document.body.removeAttribute("data-impersonation-destructive");
@@ -2219,9 +2219,9 @@ function Ra() {
2219
2219
  }
2220
2220
  //#endregion
2221
2221
  //#region src/components/layout/tab-close.ts
2222
- function za(e, t, n, r) {
2222
+ function Ba(e, t, n, r) {
2223
2223
  if (n === "current" && e.length <= 1) return null;
2224
- let i = nr(e, t, n, r);
2224
+ let i = rr(e, t, n, r);
2225
2225
  if (i.length === 0) return null;
2226
2226
  let a = new Set(i), o = e.filter((e) => a.has(e.id) && e.dirty), s = new Set(o.map((e) => e.id));
2227
2227
  return {
@@ -2230,7 +2230,7 @@ function za(e, t, n, r) {
2230
2230
  cleanIds: i.filter((e) => !s.has(e))
2231
2231
  };
2232
2232
  }
2233
- function Ba(e) {
2233
+ function Va(e) {
2234
2234
  return e ? {
2235
2235
  pathname: e.pathname,
2236
2236
  search: e.search || void 0
@@ -2241,8 +2241,8 @@ function Ba(e) {
2241
2241
  }
2242
2242
  //#endregion
2243
2243
  //#region src/components/layout/CommandPalette.tsx
2244
- var Va = "Esc";
2245
- function Ha(e, t = 14) {
2244
+ var Ha = "Esc";
2245
+ function Ua(e, t = 14) {
2246
2246
  if (!e) return null;
2247
2247
  let i = n[e];
2248
2248
  return i ? /* @__PURE__ */ Z(i, { size: t }) : /* @__PURE__ */ Z(r, {
@@ -2250,7 +2250,7 @@ function Ha(e, t = 14) {
2250
2250
  size: t
2251
2251
  });
2252
2252
  }
2253
- function Ua(e, t, r, i) {
2253
+ function Wa(e, t, r, i) {
2254
2254
  if (!t || !r) return [];
2255
2255
  let a = [], o = (t) => {
2256
2256
  if (t.screen) {
@@ -2259,7 +2259,7 @@ function Ua(e, t, r, i) {
2259
2259
  let r = e(t.name) || t.screen;
2260
2260
  a.push({
2261
2261
  group: e("shell.palette.group.navigate", "Navigate"),
2262
- icon: Ha(t.icon || o.display?.icon || "folder"),
2262
+ icon: Ua(t.icon || o.display?.icon || "folder"),
2263
2263
  label: e("shell.palette.go_to", "Go to {name}", { name: r }),
2264
2264
  act: () => i({
2265
2265
  type: "nav",
@@ -2286,7 +2286,7 @@ function Ua(e, t, r, i) {
2286
2286
  for (let e of t) o(e);
2287
2287
  return a;
2288
2288
  }
2289
- function Wa({ open: e, onClose: t, onAction: r, mode: i = "default", navigation: a, screens: o, includeAI: s = !0, aiName: c = "" }) {
2289
+ function Ga({ open: e, onClose: t, onAction: r, mode: i = "default", navigation: a, screens: o, includeAI: s = !0, aiName: c = "" }) {
2290
2290
  let l = z(), u = Dt()?.app_name?.trim(), [d, f] = J(""), [m, h] = J(0), g = q(null), _ = F().category === "phone";
2291
2291
  G(() => {
2292
2292
  e && (setTimeout(() => g.current?.focus(), 50), f(i === "new" ? l("shell.palette.new_in_screen", "New {name}").split("{name}")[0] : ""), h(0));
@@ -2297,7 +2297,7 @@ function Wa({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2297
2297
  ]);
2298
2298
  let v = K(() => {
2299
2299
  let e = [];
2300
- if (e.push(...Ua(l, a, o, r)), s) {
2300
+ if (e.push(...Wa(l, a, o, r)), s) {
2301
2301
  let t = l("shell.palette.group.ai", "AI");
2302
2302
  e.push({
2303
2303
  group: t,
@@ -2457,7 +2457,7 @@ function Wa({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2457
2457
  title: l("shell.palette.close", "Close command palette"),
2458
2458
  onClick: t
2459
2459
  }),
2460
- !_ && /* @__PURE__ */ Z(p, { children: Va })
2460
+ !_ && /* @__PURE__ */ Z(p, { children: Ha })
2461
2461
  ]
2462
2462
  }),
2463
2463
  /* @__PURE__ */ Q("div", {
@@ -2615,32 +2615,32 @@ function Wa({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2615
2615
  }
2616
2616
  //#endregion
2617
2617
  //#region src/components/agents/AgentChatPanel.tsx
2618
- var Ga = xi(() => import("./AgentChatPanel.impl-DBH1Ff4G.js").then((e) => ({ default: e.AgentChatPanel })));
2619
- function Ka(e) {
2620
- return e.open ? /* @__PURE__ */ Z(bi, {
2618
+ var Ka = Si(() => import("./AgentChatPanel.impl-DBH1Ff4G.js").then((e) => ({ default: e.AgentChatPanel })));
2619
+ function qa(e) {
2620
+ return e.open ? /* @__PURE__ */ Z(xi, {
2621
2621
  fallback: null,
2622
- children: /* @__PURE__ */ Z(Ga, { ...e })
2622
+ children: /* @__PURE__ */ Z(Ka, { ...e })
2623
2623
  }) : null;
2624
2624
  }
2625
2625
  //#endregion
2626
2626
  //#region src/components/layout/Layout.tsx
2627
- var qa = "default";
2628
- function Ja() {
2627
+ var Ja = "default";
2628
+ function Ya() {
2629
2629
  let e = z();
2630
- da(), Cr();
2631
- let { isAuthenticated: t, isLoading: n, user: r, activeTenant: i } = R(), a = Gt(), o = Ai(), s = ir(), c = W((e) => s(e, { topLevel: !0 }), [s]), l = Oi(), { data: u } = L(), d = F(), f = U((e) => e.sidebar), p = U((e) => e.tabsPosition), m = U((e) => e.aiSurface), h = U((e) => e.colorScheme), g = U((e) => e.set), _ = U((e) => e.hydrateFromBranding), { branding: v } = Bt(), y = Et(), b = H((e) => e.tabs), x = H((e) => e.activeTabId), S = H((e) => e.closeTabs), C = H((e) => e.switchTab), w = H((e) => e.setScope), T = H((e) => e.hydrate), [E, D] = J(qa), [ee, O] = J(!1), [te, k] = J("default"), [A, ne] = J(!1), [re, j] = J(), [ie, ae] = J(!1), [oe, se] = J(!1), ce = q(null), le = q(null), [M, ue] = J(null), de = m !== "off" && y.isVisible("show_command_palette"), fe = m === "panel" || m === "both", pe = m === "command" || m === "both", me = Dt(), he = me?.ai_name?.trim() ?? "", ge = d.category === "phone" || d.category === "tablet", _e = y.isVisible("show_topbar"), ve = !ge && y.isVisible("show_rail"), ye = !ge && y.isVisible("show_sidebar"), be = !ge && y.isVisible("show_tabs"), xe = ge && y.isVisible("show_sidebar"), Se = ge && y.isVisible("show_tabs"), Ce = y.isVisible("show_tenant_switcher"), we = y.isVisible("show_breadcrumbs"), Te = y.isVisible("show_theme_toggle"), N = W((e = "default") => {
2630
+ fa(), wr();
2631
+ let { isAuthenticated: t, isLoading: n, user: r, activeTenant: i } = R(), a = Gt(), o = ji(), s = ar(), c = W((e) => s(e, { topLevel: !0 }), [s]), l = ki(), { data: u } = L(), d = F(), f = U((e) => e.sidebar), p = U((e) => e.tabsPosition), m = U((e) => e.aiSurface), h = U((e) => e.colorScheme), g = U((e) => e.set), _ = U((e) => e.hydrateFromBranding), { branding: v } = Bt(), y = Et(), b = H((e) => e.tabs), x = H((e) => e.activeTabId), S = H((e) => e.closeTabs), C = H((e) => e.switchTab), w = H((e) => e.setScope), T = H((e) => e.hydrate), [E, D] = J(Ja), [ee, O] = J(!1), [te, k] = J("default"), [A, ne] = J(!1), [re, j] = J(), [ie, ae] = J(!1), [oe, se] = J(!1), ce = q(null), le = q(null), [M, ue] = J(null), de = m !== "off" && y.isVisible("show_command_palette"), fe = m === "panel" || m === "both", pe = m === "command" || m === "both", me = Dt(), he = me?.ai_name?.trim() ?? "", ge = d.category === "phone" || d.category === "tablet", _e = y.isVisible("show_topbar"), ve = !ge && y.isVisible("show_rail"), ye = !ge && y.isVisible("show_sidebar"), be = !ge && y.isVisible("show_tabs"), xe = ge && y.isVisible("show_sidebar"), Se = ge && y.isVisible("show_tabs"), Ce = y.isVisible("show_tenant_switcher"), we = y.isVisible("show_breadcrumbs"), Te = y.isVisible("show_theme_toggle"), N = W((e = "default") => {
2632
2632
  de && (k(e), O(!0));
2633
2633
  }, [de]), Ee = W((e) => {
2634
2634
  if (e.length === 0) return;
2635
2635
  let t = H.getState(), n = !t.activeTabId || e.includes(t.activeTabId), r = S(e);
2636
2636
  if (!n) return;
2637
- let i = Ba(r);
2637
+ let i = Va(r);
2638
2638
  o({
2639
2639
  pathname: i.pathname,
2640
2640
  search: i.search
2641
2641
  }, { replace: i.replace });
2642
2642
  }, [S, o]), De = W((e, t) => {
2643
- let n = H.getState(), r = za(n.tabs, n.activeTabId, e, t);
2643
+ let n = H.getState(), r = Ba(n.tabs, n.activeTabId, e, t);
2644
2644
  if (r) {
2645
2645
  if (r.dirtyTabs.length > 0) {
2646
2646
  ue(r);
@@ -2667,7 +2667,7 @@ function Ja() {
2667
2667
  l.search
2668
2668
  ]), G(() => {
2669
2669
  let e = r?.id || null, t = i?.id || null;
2670
- w(t, e), er.getState().setScope(t, e), e && t && (T(), er.getState().hydrate(), cr());
2670
+ w(t, e), tr.getState().setScope(t, e), e && t && (T(), tr.getState().hydrate(), lr());
2671
2671
  }, [
2672
2672
  r?.id,
2673
2673
  i?.id,
@@ -2677,14 +2677,14 @@ function Ja() {
2677
2677
  _(v?.preferences);
2678
2678
  }, [v, _]), G(() => {
2679
2679
  if (!u) return;
2680
- let e = ro(u.navigation, u.screens, l.pathname);
2680
+ let e = io(u.navigation, u.screens, l.pathname);
2681
2681
  if (e) {
2682
2682
  D(e);
2683
2683
  return;
2684
2684
  }
2685
2685
  let t = E;
2686
- if ((u.navigation ?? []).some((e) => (e.area || qa) === t)) return;
2687
- let n = (u.navigation ?? [])[0]?.area || qa;
2686
+ if ((u.navigation ?? []).some((e) => (e.area || Ja) === t)) return;
2687
+ let n = (u.navigation ?? [])[0]?.area || Ja;
2688
2688
  n !== t && D(n);
2689
2689
  }, [
2690
2690
  u,
@@ -2705,7 +2705,7 @@ function Ja() {
2705
2705
  f,
2706
2706
  fe
2707
2707
  ]);
2708
- let je = K(() => u ? io(e, u.navigation, u.screens, l.pathname, b, x, c) : [], [
2708
+ let je = K(() => u ? ao(e, u.navigation, u.screens, l.pathname, b, x, c) : [], [
2709
2709
  e,
2710
2710
  u,
2711
2711
  l.pathname,
@@ -2727,7 +2727,7 @@ function Ja() {
2727
2727
  if (!t) return null;
2728
2728
  let Me = (e) => {
2729
2729
  D(e);
2730
- let t = no(e, u);
2730
+ let t = ro(e, u);
2731
2731
  t && c(t);
2732
2732
  }, Ne = (e) => {
2733
2733
  switch (e.type) {
@@ -2753,22 +2753,22 @@ function Ja() {
2753
2753
  }
2754
2754
  };
2755
2755
  return a.enabled ? /* @__PURE__ */ Q(We, { children: [
2756
- /* @__PURE__ */ Z(fa, {}),
2757
- /* @__PURE__ */ Z(aa, {}),
2758
2756
  /* @__PURE__ */ Z(pa, {}),
2757
+ /* @__PURE__ */ Z(oa, {}),
2758
+ /* @__PURE__ */ Z(ma, {}),
2759
+ /* @__PURE__ */ Z(aa, {}),
2759
2760
  /* @__PURE__ */ Z(ia, {}),
2760
- /* @__PURE__ */ Z(ra, {}),
2761
2761
  /* @__PURE__ */ Z("div", {
2762
2762
  id: "app-embed",
2763
2763
  className: "flex min-h-0 flex-col overflow-auto",
2764
2764
  style: { height: "var(--app-height)" },
2765
- children: /* @__PURE__ */ Z(Ti, {})
2765
+ children: /* @__PURE__ */ Z(Ei, {})
2766
2766
  })
2767
2767
  ] }) : /* @__PURE__ */ Z(We, { children: /* @__PURE__ */ Q("div", {
2768
2768
  id: "app",
2769
2769
  "data-sidebar": f,
2770
2770
  "data-mobile-shell": ge ? "true" : void 0,
2771
- style: Ya({
2771
+ style: Xa({
2772
2772
  mobileShell: ge,
2773
2773
  showTopbar: _e,
2774
2774
  showRail: ve,
@@ -2776,9 +2776,9 @@ function Ja() {
2776
2776
  sidebarMode: f
2777
2777
  }),
2778
2778
  children: [
2779
- /* @__PURE__ */ Z(La, {}),
2780
2779
  /* @__PURE__ */ Z(Ra, {}),
2781
- _e && /* @__PURE__ */ Z(Ma, {
2780
+ /* @__PURE__ */ Z(za, {}),
2781
+ _e && /* @__PURE__ */ Z(Na, {
2782
2782
  breadcrumbs: je,
2783
2783
  onCrumbClick: (e) => e.onClick && e.onClick(),
2784
2784
  showNavButton: xe,
@@ -2797,7 +2797,7 @@ function Ja() {
2797
2797
  showBreadcrumbs: we,
2798
2798
  showThemeToggle: Te
2799
2799
  }),
2800
- ve && /* @__PURE__ */ Z(Ki, {
2800
+ ve && /* @__PURE__ */ Z(qi, {
2801
2801
  activeArea: E,
2802
2802
  onPick: Me,
2803
2803
  onToggleAI: () => fe && ne((e) => !e),
@@ -2806,7 +2806,7 @@ function Ja() {
2806
2806
  areas: u?.areas,
2807
2807
  branding: me
2808
2808
  }),
2809
- ye && /* @__PURE__ */ Z(ma, { activeArea: E }),
2809
+ ye && /* @__PURE__ */ Z(ha, { activeArea: E }),
2810
2810
  /* @__PURE__ */ Q("main", {
2811
2811
  style: {
2812
2812
  gridArea: "main",
@@ -2816,7 +2816,7 @@ function Ja() {
2816
2816
  minWidth: 0
2817
2817
  },
2818
2818
  children: [
2819
- be && p === "top" && /* @__PURE__ */ Z(Pa, {
2819
+ be && p === "top" && /* @__PURE__ */ Z(Fa, {
2820
2820
  onNew: () => N("new"),
2821
2821
  onCloseRequest: De
2822
2822
  }),
@@ -2828,15 +2828,15 @@ function Ja() {
2828
2828
  display: "flex",
2829
2829
  flexDirection: "column"
2830
2830
  },
2831
- children: /* @__PURE__ */ Z(Ti, {})
2831
+ children: /* @__PURE__ */ Z(Ei, {})
2832
2832
  }),
2833
- be && p === "bottom" && /* @__PURE__ */ Z(Pa, {
2833
+ be && p === "bottom" && /* @__PURE__ */ Z(Fa, {
2834
2834
  onNew: () => N("new"),
2835
2835
  onCloseRequest: De
2836
2836
  })
2837
2837
  ]
2838
2838
  }),
2839
- de && /* @__PURE__ */ Z(Wa, {
2839
+ de && /* @__PURE__ */ Z(Ga, {
2840
2840
  open: ee,
2841
2841
  mode: te,
2842
2842
  onClose: () => O(!1),
@@ -2846,7 +2846,7 @@ function Ja() {
2846
2846
  includeAI: pe,
2847
2847
  aiName: he
2848
2848
  }),
2849
- fe && A && /* @__PURE__ */ Z(Ka, {
2849
+ fe && A && /* @__PURE__ */ Z(qa, {
2850
2850
  open: A,
2851
2851
  onClose: () => {
2852
2852
  ne(!1), j(void 0);
@@ -2854,7 +2854,7 @@ function Ja() {
2854
2854
  title: he,
2855
2855
  askOnOpen: re
2856
2856
  }),
2857
- xe && /* @__PURE__ */ Z(eo, {
2857
+ xe && /* @__PURE__ */ Z(to, {
2858
2858
  open: ie,
2859
2859
  activeArea: E,
2860
2860
  schema: u,
@@ -2862,7 +2862,7 @@ function Ja() {
2862
2862
  onClose: () => ae(!1),
2863
2863
  onNavigate: c
2864
2864
  }),
2865
- Se && /* @__PURE__ */ Z(to, {
2865
+ Se && /* @__PURE__ */ Z(no, {
2866
2866
  open: oe,
2867
2867
  tabs: b,
2868
2868
  activeTabId: x,
@@ -2876,7 +2876,7 @@ function Ja() {
2876
2876
  },
2877
2877
  onCloseTab: (e) => De("current", e)
2878
2878
  }),
2879
- /* @__PURE__ */ Z(Ia, {
2879
+ /* @__PURE__ */ Z(La, {
2880
2880
  pending: M,
2881
2881
  onCancel: Oe,
2882
2882
  onCloseClean: ke,
@@ -2885,7 +2885,7 @@ function Ja() {
2885
2885
  ]
2886
2886
  }) });
2887
2887
  }
2888
- function Ya({ mobileShell: e, showTopbar: t, showRail: n, showSidebar: r, sidebarMode: i }) {
2888
+ function Xa({ mobileShell: e, showTopbar: t, showRail: n, showSidebar: r, sidebarMode: i }) {
2889
2889
  let a = t ? "var(--topbar-h) minmax(0, 1fr)" : "minmax(0, 1fr)";
2890
2890
  if (e) return {
2891
2891
  height: "var(--app-height)",
@@ -2907,7 +2907,7 @@ function Ya({ mobileShell: e, showTopbar: t, showRail: n, showSidebar: r, sideba
2907
2907
  overflow: "hidden"
2908
2908
  };
2909
2909
  }
2910
- var Xa = [
2910
+ var Za = [
2911
2911
  "a[href]",
2912
2912
  "button:not([disabled])",
2913
2913
  "input:not([disabled])",
@@ -2915,14 +2915,14 @@ var Xa = [
2915
2915
  "textarea:not([disabled])",
2916
2916
  "[tabindex]:not([tabindex='-1'])"
2917
2917
  ].join(",");
2918
- function Za(e) {
2919
- return e ? Array.from(e.querySelectorAll(Xa)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true") : [];
2920
- }
2921
2918
  function Qa(e) {
2922
- Za(e)[0]?.focus();
2919
+ return e ? Array.from(e.querySelectorAll(Za)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true") : [];
2920
+ }
2921
+ function $a(e) {
2922
+ Qa(e)[0]?.focus();
2923
2923
  }
2924
- function $a(e, t) {
2925
- let n = Za(e);
2924
+ function eo(e, t) {
2925
+ let n = Qa(e);
2926
2926
  if (n.length === 0) {
2927
2927
  t.preventDefault();
2928
2928
  return;
@@ -2934,20 +2934,20 @@ function $a(e, t) {
2934
2934
  }
2935
2935
  !t.shiftKey && a === i && (t.preventDefault(), r.focus());
2936
2936
  }
2937
- function eo({ open: e, activeArea: t, schema: r, returnFocusRef: i, onClose: a, onNavigate: o }) {
2937
+ function to({ open: e, activeArea: t, schema: r, returnFocusRef: i, onClose: a, onNavigate: o }) {
2938
2938
  let s = z(), [c, l] = J(t), u = q(null);
2939
2939
  if (G(() => {
2940
2940
  e && l(t);
2941
2941
  }, [e, t]), G(() => {
2942
2942
  if (!e) return;
2943
2943
  let t = document.activeElement instanceof HTMLElement ? document.activeElement : null, n = i.current;
2944
- requestAnimationFrame(() => Qa(u.current));
2944
+ requestAnimationFrame(() => $a(u.current));
2945
2945
  let r = (e) => {
2946
2946
  if (e.key === "Escape") {
2947
2947
  e.preventDefault(), a();
2948
2948
  return;
2949
2949
  }
2950
- e.key === "Tab" && $a(u.current, e);
2950
+ e.key === "Tab" && eo(u.current, e);
2951
2951
  };
2952
2952
  return window.addEventListener("keydown", r), () => {
2953
2953
  window.removeEventListener("keydown", r), (n ?? t)?.focus();
@@ -2957,11 +2957,11 @@ function eo({ open: e, activeArea: t, schema: r, returnFocusRef: i, onClose: a,
2957
2957
  a,
2958
2958
  i
2959
2959
  ]), !e || !r) return null;
2960
- let d = Array.from(new Set((r.navigation ?? []).map((e) => e.area || qa)));
2961
- d.length === 0 && d.push(qa);
2960
+ let d = Array.from(new Set((r.navigation ?? []).map((e) => e.area || Ja)));
2961
+ d.length === 0 && d.push(Ja);
2962
2962
  let f = (e) => {
2963
2963
  let t = r.areas?.find((t) => t.code === e);
2964
- return s(t?.name) || (e === qa ? s("shell.nav.title", "Navigation") : e);
2964
+ return s(t?.name) || (e === Ja ? s("shell.nav.title", "Navigation") : e);
2965
2965
  }, p = (e, t) => {
2966
2966
  let n = e.screen ? r.screens[e.screen] : void 0, i = [...e.items ?? [], ...e.children ?? []], c = s(e.name) || (n ? s(n.display?.name) : "");
2967
2967
  return /* @__PURE__ */ Q("div", {
@@ -3072,7 +3072,7 @@ function eo({ open: e, activeArea: t, schema: r, returnFocusRef: i, onClose: a,
3072
3072
  gap: 6
3073
3073
  },
3074
3074
  children: d.map((e) => {
3075
- let i = c === e, a = ha(s, r.navigation ?? [], e);
3075
+ let i = c === e, a = ga(s, r.navigation ?? [], e);
3076
3076
  return /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Q("button", {
3077
3077
  type: "button",
3078
3078
  onClick: () => l(i ? "" : e),
@@ -3117,18 +3117,18 @@ function eo({ open: e, activeArea: t, schema: r, returnFocusRef: i, onClose: a,
3117
3117
  })]
3118
3118
  })] });
3119
3119
  }
3120
- function to({ open: e, tabs: t, activeTabId: r, returnFocusRef: i, onClose: a, onSwitch: o, onCloseTab: s }) {
3121
- let c = z(), l = Na(), u = q(null);
3120
+ function no({ open: e, tabs: t, activeTabId: r, returnFocusRef: i, onClose: a, onSwitch: o, onCloseTab: s }) {
3121
+ let c = z(), l = Pa(), u = q(null);
3122
3122
  return G(() => {
3123
3123
  if (!e) return;
3124
3124
  let t = document.activeElement instanceof HTMLElement ? document.activeElement : null, n = i.current;
3125
- requestAnimationFrame(() => Qa(u.current));
3125
+ requestAnimationFrame(() => $a(u.current));
3126
3126
  let r = (e) => {
3127
3127
  if (e.key === "Escape") {
3128
3128
  e.preventDefault(), a();
3129
3129
  return;
3130
3130
  }
3131
- e.key === "Tab" && $a(u.current, e);
3131
+ e.key === "Tab" && eo(u.current, e);
3132
3132
  };
3133
3133
  return window.addEventListener("keydown", r), () => {
3134
3134
  window.removeEventListener("keydown", r), (n ?? t)?.focus();
@@ -3235,7 +3235,7 @@ function to({ open: e, tabs: t, activeTabId: r, returnFocusRef: i, onClose: a, o
3235
3235
  }, e.id))]
3236
3236
  })] }) : null;
3237
3237
  }
3238
- function no(e, t) {
3238
+ function ro(e, t) {
3239
3239
  if (!t) return;
3240
3240
  let n = t.areas?.find((t) => t.code === e);
3241
3241
  if (n?.home_screen) {
@@ -3257,12 +3257,12 @@ function no(e, t) {
3257
3257
  }
3258
3258
  };
3259
3259
  for (let n of t.navigation ?? []) {
3260
- if ((n.area || qa) !== e) continue;
3260
+ if ((n.area || Ja) !== e) continue;
3261
3261
  let t = r(n);
3262
3262
  if (t) return t;
3263
3263
  }
3264
3264
  }
3265
- function ro(e, t, n) {
3265
+ function io(e, t, n) {
3266
3266
  let r = (e) => {
3267
3267
  if (!e.screen) return !1;
3268
3268
  let r = t[e.screen];
@@ -3279,11 +3279,11 @@ function ro(e, t, n) {
3279
3279
  }
3280
3280
  };
3281
3281
  for (let t of e ?? []) {
3282
- let e = i(t, t.area || qa);
3282
+ let e = i(t, t.area || Ja);
3283
3283
  if (e) return e;
3284
3284
  }
3285
3285
  }
3286
- function io(e, t, n, r, i, a, o) {
3286
+ function ao(e, t, n, r, i, a, o) {
3287
3287
  let s = (e, t) => {
3288
3288
  if (e.screen) {
3289
3289
  let i = n[e.screen];
@@ -3326,22 +3326,22 @@ function io(e, t, n, r, i, a, o) {
3326
3326
  }
3327
3327
  //#endregion
3328
3328
  //#region src/components/pages/auth/AuthShell.tsx
3329
- var ao = 560;
3330
- function oo(e) {
3329
+ var oo = 560;
3330
+ function so(e) {
3331
3331
  try {
3332
3332
  return new URL(e).host;
3333
3333
  } catch {
3334
3334
  return e;
3335
3335
  }
3336
3336
  }
3337
- function so(e, t) {
3337
+ function co(e, t) {
3338
3338
  if (!e) return "";
3339
3339
  let n = t ? t.slice(0, 7) : "";
3340
3340
  if (!n || !t) return e;
3341
3341
  let r = Math.min(e.length, t.length);
3342
3342
  return e.slice(0, r) === t.slice(0, r) ? e : `${e}+${n}`;
3343
3343
  }
3344
- function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a, badges: o, brandName: s }) {
3344
+ function lo({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a, badges: o, brandName: s }) {
3345
3345
  let c = z(), l = U((e) => e.colorScheme), u = F(), d = U((e) => e.set), f = U((e) => e.hydrateFromBranding), p = () => d("colorScheme", l === "dark" ? "light" : "dark"), { branding: m } = Bt();
3346
3346
  G(() => {
3347
3347
  f(m?.preferences);
@@ -3361,7 +3361,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3361
3361
  D?.terms_url,
3362
3362
  D?.docs_url,
3363
3363
  c
3364
- ]), O = h?.legal_entity ?? "", te = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${O ? ` ${O}` : ""}`, { data: k } = g(), A = k?.meta, ne = so(A?.version, A?.revision), re = [A?.region ? c("auth.meta.region", "Region: {value}", { value: A.region }) : "", ne ? c("auth.meta.build", "Build {value}", { value: ne }) : ""].filter(Boolean).join(" · "), j = u.isPhone || u.height < ao;
3364
+ ]), O = h?.legal_entity ?? "", te = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${O ? ` ${O}` : ""}`, { data: k } = g(), A = k?.meta, ne = co(A?.version, A?.revision), re = [A?.region ? c("auth.meta.region", "Region: {value}", { value: A.region }) : "", ne ? c("auth.meta.build", "Build {value}", { value: ne }) : ""].filter(Boolean).join(" · "), j = u.isPhone || u.height < oo;
3365
3365
  return /* @__PURE__ */ Q("div", {
3366
3366
  style: {
3367
3367
  minHeight: "var(--app-height)",
@@ -3376,7 +3376,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3376
3376
  style: {
3377
3377
  paddingTop: j ? 12 : 16,
3378
3378
  paddingBottom: j ? 12 : 16,
3379
- ...j ? Qn(14) : {
3379
+ ...j ? $n(14) : {
3380
3380
  paddingLeft: 20,
3381
3381
  paddingRight: 20
3382
3382
  },
@@ -3385,7 +3385,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3385
3385
  gap: 10
3386
3386
  },
3387
3387
  children: [
3388
- /* @__PURE__ */ Z(Yi, {
3388
+ /* @__PURE__ */ Z(Xi, {
3389
3389
  appLogo: h?.app_logo,
3390
3390
  size: 26
3391
3391
  }),
@@ -3434,7 +3434,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3434
3434
  justifyContent: "center",
3435
3435
  paddingTop: j ? 16 : 20,
3436
3436
  paddingBottom: j ? 12 : 20,
3437
- ...j ? Qn(12) : {
3437
+ ...j ? $n(12) : {
3438
3438
  paddingLeft: 20,
3439
3439
  paddingRight: 20
3440
3440
  },
@@ -3447,7 +3447,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3447
3447
  gap: 0,
3448
3448
  width: j ? "100%" : 980,
3449
3449
  maxWidth: "100%",
3450
- minHeight: j ? "auto" : ao,
3450
+ minHeight: j ? "auto" : oo,
3451
3451
  background: "var(--surface)",
3452
3452
  border: "1px solid var(--border)",
3453
3453
  borderRadius: j ? 12 : 14,
@@ -3492,7 +3492,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3492
3492
  position: "relative"
3493
3493
  },
3494
3494
  children: [
3495
- /* @__PURE__ */ Z(Yi, {
3495
+ /* @__PURE__ */ Z(Xi, {
3496
3496
  appLogo: h?.app_logo,
3497
3497
  size: 34
3498
3498
  }),
@@ -3526,7 +3526,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3526
3526
  alignItems: "center",
3527
3527
  gap: 16
3528
3528
  },
3529
- children: [h?.app_logo && /* @__PURE__ */ Z(Yi, {
3529
+ children: [h?.app_logo && /* @__PURE__ */ Z(Xi, {
3530
3530
  appLogo: h.app_logo,
3531
3531
  size: 96,
3532
3532
  radius: 0
@@ -3607,7 +3607,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3607
3607
  color: "var(--auth-panel-fg-muted)",
3608
3608
  textDecoration: "none"
3609
3609
  },
3610
- children: oo(T)
3610
+ children: so(T)
3611
3611
  })
3612
3612
  ]
3613
3613
  })
@@ -3660,7 +3660,7 @@ function co({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
3660
3660
  }
3661
3661
  //#endregion
3662
3662
  //#region src/components/pages/auth/icons.tsx
3663
- function lo({ size: e = 14 }) {
3663
+ function uo({ size: e = 14 }) {
3664
3664
  return /* @__PURE__ */ Q("svg", {
3665
3665
  width: e,
3666
3666
  height: e,
@@ -3686,7 +3686,7 @@ function lo({ size: e = 14 }) {
3686
3686
  ]
3687
3687
  });
3688
3688
  }
3689
- function uo({ size: e = 14 }) {
3689
+ function fo({ size: e = 14 }) {
3690
3690
  return /* @__PURE__ */ Q("svg", {
3691
3691
  width: e,
3692
3692
  height: e,
@@ -3714,75 +3714,75 @@ function uo({ size: e = 14 }) {
3714
3714
  }
3715
3715
  //#endregion
3716
3716
  //#region src/lib/schema-routing.ts
3717
- var fo = /* @__PURE__ */ new Set(["/preferences", "/admin/catalog"]);
3718
- function po(e) {
3717
+ var po = /* @__PURE__ */ new Set(["/preferences", "/admin/catalog"]);
3718
+ function mo(e) {
3719
3719
  if (!e?.navigation) return null;
3720
3720
  let t = e.areas ?? [];
3721
3721
  if (t.length > 0) for (let n of t) for (let t of e.navigation) {
3722
3722
  if ((t.area || "default") !== n.code) continue;
3723
- let r = _o(e, t);
3723
+ let r = vo(e, t);
3724
3724
  if (r) return r;
3725
3725
  }
3726
3726
  for (let t of e.navigation) {
3727
- let n = _o(e, t);
3727
+ let n = vo(e, t);
3728
3728
  if (n) return n;
3729
3729
  }
3730
3730
  return null;
3731
3731
  }
3732
- function mo(e, t) {
3733
- let n = po(t) || "/";
3732
+ function ho(e, t) {
3733
+ let n = mo(t) || "/";
3734
3734
  if (!t || e === "/" || e === "/admin") return n;
3735
- let r = ho(e);
3736
- if (fo.has(r)) return e;
3737
- for (let n of Object.values(t.screens ?? {})) if (n.route && vo(t, n) && yo(n.route).test(r)) return e;
3735
+ let r = go(e);
3736
+ if (po.has(r)) return e;
3737
+ for (let n of Object.values(t.screens ?? {})) if (n.route && yo(t, n) && bo(n.route).test(r)) return e;
3738
3738
  return n;
3739
3739
  }
3740
- function ho(e) {
3740
+ function go(e) {
3741
3741
  let t = e.indexOf("#"), n = t >= 0 ? e.slice(0, t) : e, r = n.indexOf("?");
3742
3742
  return (r >= 0 ? n.slice(0, r) : n).replace(/\/+$/, "") || "/";
3743
3743
  }
3744
- function go(e, t) {
3744
+ function _o(e, t) {
3745
3745
  let n = e.screens[t];
3746
- return !!n && vo(e, n);
3746
+ return !!n && yo(e, n);
3747
3747
  }
3748
- function _o(e, t) {
3749
- if (t.screen && go(e, t.screen)) return e.screens[t.screen].route;
3748
+ function vo(e, t) {
3749
+ if (t.screen && _o(e, t.screen)) return e.screens[t.screen].route;
3750
3750
  for (let n of [...t.items ?? [], ...t.children ?? []]) {
3751
- let t = _o(e, n);
3751
+ let t = vo(e, n);
3752
3752
  if (t) return t;
3753
3753
  }
3754
3754
  return null;
3755
3755
  }
3756
- function vo(e, t) {
3756
+ function yo(e, t) {
3757
3757
  if (t.type !== "list") return !0;
3758
3758
  let n = t.entity;
3759
3759
  return !(n ? e.entities?.[n] : void 0)?.singleton;
3760
3760
  }
3761
- function yo(e) {
3761
+ function bo(e) {
3762
3762
  let t = e.replace(/\/+$/, "").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
3763
3763
  return RegExp("^" + t.join("/") + "$");
3764
3764
  }
3765
3765
  //#endregion
3766
3766
  //#region src/components/pages/auth/SignIn.tsx
3767
- var bo = "sso-failure", xo = {
3767
+ var xo = "sso-failure", So = {
3768
3768
  google: {
3769
3769
  name: "Google",
3770
- icon: /* @__PURE__ */ Z(lo, { size: 14 })
3770
+ icon: /* @__PURE__ */ Z(uo, { size: 14 })
3771
3771
  },
3772
3772
  microsoft: {
3773
3773
  name: "Microsoft",
3774
- icon: /* @__PURE__ */ Z(uo, { size: 14 })
3774
+ icon: /* @__PURE__ */ Z(fo, { size: 14 })
3775
3775
  },
3776
3776
  azure: {
3777
3777
  name: "Microsoft",
3778
- icon: /* @__PURE__ */ Z(uo, { size: 14 })
3778
+ icon: /* @__PURE__ */ Z(fo, { size: 14 })
3779
3779
  }
3780
3780
  };
3781
- function So() {
3782
- let e = Ai(), [t] = Pi(), { login: r, isLoginPending: i, isAuthenticated: a } = ya(), { data: o } = L(), s = z(), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!0), m = Zt(t.get("next") || t.get("redirect")), g = t.get("sso_error"), _ = z("errors"), { data: v } = Ri({
3781
+ function Co() {
3782
+ let e = ji(), [t] = Fi(), { login: r, isLoginPending: i, isAuthenticated: a } = ba(), { data: o } = L(), s = z(), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!0), m = Zt(t.get("next") || t.get("redirect")), g = t.get("sso_error"), _ = z("errors"), { data: v } = zi({
3783
3783
  queryKey: ["check-setup"],
3784
3784
  queryFn: fn
3785
- }), { data: y } = Ri({
3785
+ }), { data: y } = zi({
3786
3786
  queryKey: ["sso-providers"],
3787
3787
  queryFn: () => sn(),
3788
3788
  staleTime: 6e4
@@ -3791,8 +3791,8 @@ function So() {
3791
3791
  v?.needs_setup && e("/signup", { replace: !0 });
3792
3792
  }, [v, e]), G(() => {
3793
3793
  if (!a || !o) return;
3794
- let t = mo(m, o);
3795
- Co(m, t) && P.warning(s("auth.inaccessible_redirect", "You do not have access to that page. We opened your default page instead.")), e(t, { replace: !0 });
3794
+ let t = ho(m, o);
3795
+ wo(m, t) && P.warning(s("auth.inaccessible_redirect", "You do not have access to that page. We opened your default page instead.")), e(t, { replace: !0 });
3796
3796
  }, [
3797
3797
  a,
3798
3798
  e,
@@ -3800,7 +3800,7 @@ function So() {
3800
3800
  o,
3801
3801
  s
3802
3802
  ]), G(() => {
3803
- g && P.error(_(g, "Sign-in failed."), void 0, { id: bo });
3803
+ g && P.error(_(g, "Sign-in failed."), void 0, { id: xo });
3804
3804
  }, [_, g]);
3805
3805
  function x(e) {
3806
3806
  e.preventDefault(), r({
@@ -3811,7 +3811,7 @@ function So() {
3811
3811
  P.error(V(_, e));
3812
3812
  } });
3813
3813
  }
3814
- return /* @__PURE__ */ Z(co, { children: /* @__PURE__ */ Q("form", {
3814
+ return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("form", {
3815
3815
  onSubmit: x,
3816
3816
  children: [
3817
3817
  /* @__PURE__ */ Z("div", {
@@ -3849,7 +3849,7 @@ function So() {
3849
3849
  marginBottom: 12
3850
3850
  },
3851
3851
  children: y.map((e) => {
3852
- let t = xo[e.slug.toLowerCase()] ?? {
3852
+ let t = So[e.slug.toLowerCase()] ?? {
3853
3853
  name: e.name,
3854
3854
  icon: /* @__PURE__ */ Z(n.shield, { size: 13 })
3855
3855
  };
@@ -3918,7 +3918,7 @@ function So() {
3918
3918
  children: [
3919
3919
  /* @__PURE__ */ Z(h, { children: s("auth.field.password", "Password") }),
3920
3920
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
3921
- /* @__PURE__ */ Z(Ci, {
3921
+ /* @__PURE__ */ Z(wi, {
3922
3922
  to: "/forgot",
3923
3923
  style: {
3924
3924
  fontSize: 11,
@@ -3974,7 +3974,7 @@ function So() {
3974
3974
  children: [
3975
3975
  s("auth.signin.new_here", "New here?"),
3976
3976
  " ",
3977
- /* @__PURE__ */ Z(Ci, {
3977
+ /* @__PURE__ */ Z(wi, {
3978
3978
  to: "/signup",
3979
3979
  style: {
3980
3980
  color: "var(--accent)",
@@ -3990,15 +3990,15 @@ function So() {
3990
3990
  ]
3991
3991
  }) });
3992
3992
  }
3993
- function Co(e, t) {
3993
+ function wo(e, t) {
3994
3994
  if (e === t) return !1;
3995
3995
  let n = e.split(/[?#]/, 1)[0].replace(/\/+$/, "") || "/";
3996
3996
  return n !== "/" && n !== "/admin";
3997
3997
  }
3998
3998
  //#endregion
3999
3999
  //#region src/components/pages/auth/SignUp.tsx
4000
- function wo() {
4001
- let e = Ai(), { signup: t, isSignupPending: r, isAuthenticated: i } = ya(), a = F(), o = z(), [s, c] = J(""), [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [_, v] = J(""), [y, x] = J(""), [S, C] = J(!1), { data: w } = g(), T = It(w), E = T?.workspace_domain ?? "", D = T?.legal_links?.terms_url ?? "", ee = T?.legal_links?.privacy_url ?? "", O = a.isPhone, { data: te } = Ri({
4000
+ function To() {
4001
+ let e = ji(), { signup: t, isSignupPending: r, isAuthenticated: i } = ba(), a = F(), o = z(), [s, c] = J(""), [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [_, v] = J(""), [y, x] = J(""), [S, C] = J(!1), { data: w } = g(), T = It(w), E = T?.workspace_domain ?? "", D = T?.legal_links?.terms_url ?? "", ee = T?.legal_links?.privacy_url ?? "", O = a.isPhone, { data: te } = zi({
4002
4002
  queryKey: ["check-setup"],
4003
4003
  queryFn: fn
4004
4004
  });
@@ -4016,7 +4016,7 @@ function wo() {
4016
4016
  displayName: n
4017
4017
  });
4018
4018
  }
4019
- return /* @__PURE__ */ Z(co, { children: /* @__PURE__ */ Q("form", {
4019
+ return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("form", {
4020
4020
  onSubmit: A,
4021
4021
  children: [
4022
4022
  /* @__PURE__ */ Z("div", {
@@ -4133,7 +4133,7 @@ function wo() {
4133
4133
  style: { marginTop: 2 },
4134
4134
  checked: S,
4135
4135
  onChange: (e) => C(e.target.checked)
4136
- }), /* @__PURE__ */ Z(To, {
4136
+ }), /* @__PURE__ */ Z(Eo, {
4137
4137
  termsUrl: D,
4138
4138
  privacyUrl: ee,
4139
4139
  t: o
@@ -4159,7 +4159,7 @@ function wo() {
4159
4159
  children: [
4160
4160
  o("auth.signup.have_account", "Already have an account?"),
4161
4161
  " ",
4162
- /* @__PURE__ */ Z(Ci, {
4162
+ /* @__PURE__ */ Z(wi, {
4163
4163
  to: "/login",
4164
4164
  style: {
4165
4165
  color: "var(--accent)",
@@ -4175,7 +4175,7 @@ function wo() {
4175
4175
  ]
4176
4176
  }) });
4177
4177
  }
4178
- function To({ termsUrl: e, privacyUrl: t, t: n }) {
4178
+ function Eo({ termsUrl: e, privacyUrl: t, t: n }) {
4179
4179
  let r = n("auth.signup.terms", "Terms"), i = n("auth.signup.privacy", "Privacy"), a = e ? /* @__PURE__ */ Z("a", {
4180
4180
  href: e,
4181
4181
  target: "_blank",
@@ -4196,7 +4196,7 @@ function To({ termsUrl: e, privacyUrl: t, t: n }) {
4196
4196
  }
4197
4197
  //#endregion
4198
4198
  //#region src/components/pages/auth/Forgot.tsx
4199
- function Eo() {
4199
+ function Do() {
4200
4200
  let e = z(), [t, r] = J(""), [i, a] = J(!1), [o, s] = J(!1);
4201
4201
  async function c(e) {
4202
4202
  if (e.preventDefault(), !o) {
@@ -4208,7 +4208,7 @@ function Eo() {
4208
4208
  }
4209
4209
  }
4210
4210
  }
4211
- return /* @__PURE__ */ Z(co, { children: /* @__PURE__ */ Q("form", {
4211
+ return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("form", {
4212
4212
  onSubmit: c,
4213
4213
  "data-testid": "forgot-form",
4214
4214
  children: [
@@ -4279,7 +4279,7 @@ function Eo() {
4279
4279
  disabled: o,
4280
4280
  children: o ? e("auth.forgot.submitting", "Sending…") : e("auth.forgot.submit", "Send reset link")
4281
4281
  }),
4282
- /* @__PURE__ */ Z(Ci, {
4282
+ /* @__PURE__ */ Z(wi, {
4283
4283
  to: "/login",
4284
4284
  className: "text-accent text-center no-underline",
4285
4285
  style: { fontSize: 12 },
@@ -4292,26 +4292,26 @@ function Eo() {
4292
4292
  }
4293
4293
  //#endregion
4294
4294
  //#region src/components/pages/auth/Reset.tsx
4295
- var Do = 8, Oo = "declarion.auth.flash", ko = "declarion-reset-no-referrer";
4296
- function Ao() {
4295
+ var Oo = 8, ko = "declarion.auth.flash", Ao = "declarion-reset-no-referrer";
4296
+ function jo() {
4297
4297
  if (typeof window > "u") return "";
4298
4298
  let e = window.location.hash.startsWith("#") ? window.location.hash.slice(1) : window.location.hash;
4299
4299
  return e ? new URLSearchParams(e).get("t") ?? "" : "";
4300
4300
  }
4301
- function jo() {
4301
+ function Mo() {
4302
4302
  if (typeof document > "u") return;
4303
- let e = document.getElementById(ko);
4304
- e || (e = document.createElement("meta"), e.id = ko, e.name = "referrer", e.content = "no-referrer", document.head.appendChild(e));
4303
+ let e = document.getElementById(Ao);
4304
+ e || (e = document.createElement("meta"), e.id = Ao, e.name = "referrer", e.content = "no-referrer", document.head.appendChild(e));
4305
4305
  }
4306
- function Mo() {
4306
+ function No() {
4307
4307
  if (typeof document > "u") return;
4308
- let e = document.getElementById(ko);
4308
+ let e = document.getElementById(Ao);
4309
4309
  e && e.remove();
4310
4310
  }
4311
- function No() {
4312
- let e = z(), t = z("errors")("auth.reset_link_invalid", "Invalid or expired link. Please request a new one."), r = e("auth.reset.password_min", "Password must be at least {min} characters.", { min: Do }), i = Ai(), [a] = J(() => Ao()), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, g] = J(null);
4311
+ function Po() {
4312
+ let e = z(), t = z("errors")("auth.reset_link_invalid", "Invalid or expired link. Please request a new one."), r = e("auth.reset.password_min", "Password must be at least {min} characters.", { min: Oo }), i = ji(), [a] = J(() => jo()), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, g] = J(null);
4313
4313
  G(() => {
4314
- if (a) return typeof window < "u" && typeof window.history?.replaceState == "function" && window.history.replaceState(null, "", "/reset"), jo(), Mo;
4314
+ if (a) return typeof window < "u" && typeof window.history?.replaceState == "function" && window.history.replaceState(null, "", "/reset"), Mo(), No;
4315
4315
  }, [a]);
4316
4316
  let _ = K(() => !a, [a]);
4317
4317
  async function v(n) {
@@ -4320,7 +4320,7 @@ function No() {
4320
4320
  g(e("auth.reset.password_mismatch", "Passwords do not match."));
4321
4321
  return;
4322
4322
  }
4323
- if (c.length < Do) {
4323
+ if (c.length < Oo) {
4324
4324
  g(r);
4325
4325
  return;
4326
4326
  }
@@ -4332,7 +4332,7 @@ function No() {
4332
4332
  password: c
4333
4333
  });
4334
4334
  try {
4335
- window.sessionStorage.setItem(Oo, JSON.stringify({
4335
+ window.sessionStorage.setItem(ko, JSON.stringify({
4336
4336
  kind: "success",
4337
4337
  text: e("auth.reset.done", "Password updated. Sign in with your new password.")
4338
4338
  }));
@@ -4345,7 +4345,7 @@ function No() {
4345
4345
  }
4346
4346
  }
4347
4347
  }
4348
- return /* @__PURE__ */ Z(co, { children: /* @__PURE__ */ Q("div", {
4348
+ return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("div", {
4349
4349
  "data-testid": "reset-page",
4350
4350
  children: [
4351
4351
  /* @__PURE__ */ Z("div", {
@@ -4375,7 +4375,7 @@ function No() {
4375
4375
  fontSize: 13
4376
4376
  },
4377
4377
  children: t
4378
- }), /* @__PURE__ */ Z(Ci, {
4378
+ }), /* @__PURE__ */ Z(wi, {
4379
4379
  to: "/forgot",
4380
4380
  className: "text-accent no-underline",
4381
4381
  style: { fontSize: 12 },
@@ -4441,7 +4441,7 @@ function No() {
4441
4441
  disabled: f,
4442
4442
  children: f ? e("auth.reset.submitting", "Updating…") : e("auth.reset.submit", "Update password")
4443
4443
  }),
4444
- /* @__PURE__ */ Z(Ci, {
4444
+ /* @__PURE__ */ Z(wi, {
4445
4445
  to: "/login",
4446
4446
  className: "text-accent text-center no-underline",
4447
4447
  style: { fontSize: 12 },
@@ -4455,8 +4455,8 @@ function No() {
4455
4455
  }
4456
4456
  //#endregion
4457
4457
  //#region src/components/pages/auth/TwoFA.tsx
4458
- function Po() {
4459
- let e = z(), t = Ai(), n = q([]), r = F().isPhone;
4458
+ function Fo() {
4459
+ let e = z(), t = ji(), n = q([]), r = F().isPhone;
4460
4460
  function i(e) {
4461
4461
  n.current[e]?.focus(), n.current[e]?.select();
4462
4462
  }
@@ -4467,7 +4467,7 @@ function Po() {
4467
4467
  function o(e, t) {
4468
4468
  t.key === "Backspace" && !t.target.value && e > 0 && i(e - 1);
4469
4469
  }
4470
- return /* @__PURE__ */ Z(co, { children: /* @__PURE__ */ Q("div", { children: [
4470
+ return /* @__PURE__ */ Z(lo, { children: /* @__PURE__ */ Q("div", { children: [
4471
4471
  /* @__PURE__ */ Z("div", {
4472
4472
  style: {
4473
4473
  fontSize: 10.5,
@@ -4560,7 +4560,7 @@ function Po() {
4560
4560
  textDecoration: "none"
4561
4561
  },
4562
4562
  children: e("auth.twofa.backup_code", "Use backup code")
4563
- }), /* @__PURE__ */ Z(Ci, {
4563
+ }), /* @__PURE__ */ Z(wi, {
4564
4564
  to: "/login",
4565
4565
  style: {
4566
4566
  color: "var(--text-3)",
@@ -4573,8 +4573,8 @@ function Po() {
4573
4573
  }
4574
4574
  //#endregion
4575
4575
  //#region src/components/pages/SSOCallbackPage.tsx
4576
- function Fo() {
4577
- let e = Ai(), [t] = Pi(), { setUser: n, setTenants: r } = R(), i = zi(), a = z();
4576
+ function Io() {
4577
+ let e = ji(), [t] = Fi(), { setUser: n, setTenants: r } = R(), i = Bi(), a = z();
4578
4578
  return G(() => {
4579
4579
  let a = Zt(t.get("redirect"));
4580
4580
  dn().then((t) => {
@@ -4598,8 +4598,8 @@ function Fo() {
4598
4598
  }
4599
4599
  //#endregion
4600
4600
  //#region src/components/pages/NotFoundPage.tsx
4601
- function Io() {
4602
- let e = Gt(), t = a(), n = Oi(), r = Pe(), i = z();
4601
+ function Lo() {
4602
+ let e = Gt(), t = a(), n = ki(), r = Pe(), i = z();
4603
4603
  return G(() => {
4604
4604
  e.enabled && r(n.pathname, "not_found");
4605
4605
  }, [
@@ -4660,9 +4660,9 @@ function Io() {
4660
4660
  }
4661
4661
  //#endregion
4662
4662
  //#region src/components/shared/ChangePasswordDialog.tsx
4663
- var Lo = "auth.change_password", Ro = "auth.change_password@v1";
4664
- function zo({ open: e, onClose: t, onSubmit: r }) {
4665
- let i = z(), a = z("errors"), { data: o } = L(), s = i(o?.actions?.[Lo]?.display?.name) || Lo, c = F().isPhone, [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [g, _] = J(!1), [v, y] = J(null);
4663
+ var Ro = "auth.change_password", zo = "auth.change_password@v1";
4664
+ function Bo({ open: e, onClose: t, onSubmit: r }) {
4665
+ let i = z(), a = z("errors"), { data: o } = L(), s = i(o?.actions?.[Ro]?.display?.name) || Ro, c = F().isPhone, [l, u] = J(""), [d, f] = J(""), [p, m] = J(""), [g, _] = J(!1), [v, y] = J(null);
4666
4666
  if (!e) return null;
4667
4667
  let x = () => {
4668
4668
  u(""), f(""), m(""), y(null), _(!1);
@@ -4805,7 +4805,7 @@ function zo({ open: e, onClose: t, onSubmit: r }) {
4805
4805
  color: "var(--text-4)",
4806
4806
  overflowWrap: "anywhere"
4807
4807
  },
4808
- children: Ro
4808
+ children: zo
4809
4809
  }),
4810
4810
  /* @__PURE__ */ Z("div", { style: { flex: 1 } }),
4811
4811
  /* @__PURE__ */ Z(k, {
@@ -4842,7 +4842,7 @@ function zo({ open: e, onClose: t, onSubmit: r }) {
4842
4842
  }
4843
4843
  //#endregion
4844
4844
  //#region src/components/params/param-editors.tsx
4845
- var Bo = {
4845
+ var Vo = {
4846
4846
  object: ["params.source.object", "Record"],
4847
4847
  user: ["params.source.user", "User"],
4848
4848
  role: ["params.source.role", "Role"],
@@ -4851,11 +4851,11 @@ var Bo = {
4851
4851
  yaml: ["params.source.yaml", "Default"],
4852
4852
  none: ["params.source.none", "Not set"]
4853
4853
  };
4854
- function Vo(e, t) {
4855
- let n = Bo[t];
4854
+ function Ho(e, t) {
4855
+ let n = Vo[t];
4856
4856
  return n ? e(n[0], n[1]) : t;
4857
4857
  }
4858
- function Ho({ text: e }) {
4858
+ function Uo({ text: e }) {
4859
4859
  return /* @__PURE__ */ Q("div", {
4860
4860
  style: {
4861
4861
  padding: "8px 10px",
@@ -4869,7 +4869,7 @@ function Ho({ text: e }) {
4869
4869
  children: [/* @__PURE__ */ Z(n.info, { size: 13 }), /* @__PURE__ */ Z("span", { children: e })]
4870
4870
  });
4871
4871
  }
4872
- function Uo({ type: e, value: t, structure: n }) {
4872
+ function Wo({ type: e, value: t, structure: n }) {
4873
4873
  let r = z(), i;
4874
4874
  if (t == null) i = "—";
4875
4875
  else if (e === "bool") i = t ? r("params.value.on", "On") : r("params.value.off", "Off");
@@ -4897,13 +4897,13 @@ function Uo({ type: e, value: t, structure: n }) {
4897
4897
  children: i
4898
4898
  });
4899
4899
  }
4900
- function Wo({ param: e, current: t, error: r, onCancel: i, onSave: a }) {
4901
- let o = z(), [s, c] = J(() => Ko(e, t)), [l, u] = J(!1), [d, f] = J(null);
4900
+ function Go({ param: e, current: t, error: r, onCancel: i, onSave: a }) {
4901
+ let o = z(), [s, c] = J(() => qo(e, t)), [l, u] = J(!1), [d, f] = J(null);
4902
4902
  async function p() {
4903
4903
  f(null);
4904
4904
  let e;
4905
4905
  try {
4906
- e = qo(o, s);
4906
+ e = Jo(o, s);
4907
4907
  } catch (e) {
4908
4908
  f(String(e instanceof Error ? e.message : e));
4909
4909
  return;
@@ -4966,12 +4966,12 @@ function Wo({ param: e, current: t, error: r, onCancel: i, onSave: a }) {
4966
4966
  },
4967
4967
  children: [
4968
4968
  /* @__PURE__ */ Z(h, { children: o("params.value", "Value") }),
4969
- /* @__PURE__ */ Z(Go, {
4969
+ /* @__PURE__ */ Z(Ko, {
4970
4970
  param: e,
4971
4971
  value: s,
4972
4972
  onChange: c
4973
4973
  }),
4974
- (d || r) && /* @__PURE__ */ Z(Ho, { text: d || r })
4974
+ (d || r) && /* @__PURE__ */ Z(Uo, { text: d || r })
4975
4975
  ]
4976
4976
  }),
4977
4977
  /* @__PURE__ */ Q("div", {
@@ -5000,7 +5000,7 @@ function Wo({ param: e, current: t, error: r, onCancel: i, onSave: a }) {
5000
5000
  ]
5001
5001
  })] });
5002
5002
  }
5003
- function Go({ param: e, value: t, onChange: n }) {
5003
+ function Ko({ param: e, value: t, onChange: n }) {
5004
5004
  let r = z(), i = {
5005
5005
  type: e.type,
5006
5006
  structure: e.structure,
@@ -5016,34 +5016,34 @@ function Go({ param: e, value: t, onChange: n }) {
5016
5016
  t: r
5017
5017
  }) });
5018
5018
  }
5019
- function Ko(e, t) {
5019
+ function qo(e, t) {
5020
5020
  return e.type === "bool" ? t === !0 : e.type === "structure" ? t ?? {} : t ?? null;
5021
5021
  }
5022
- function qo(e, t) {
5022
+ function Jo(e, t) {
5023
5023
  if (t == null) throw Error(e("params.value.required", "Enter a value."));
5024
5024
  return t;
5025
5025
  }
5026
- var Jo = /* @__PURE__ */ new Set([
5026
+ var Yo = /* @__PURE__ */ new Set([
5027
5027
  "server",
5028
5028
  "database",
5029
5029
  "auth",
5030
5030
  "sso",
5031
5031
  "seeder"
5032
5032
  ]);
5033
- function Yo(e) {
5033
+ function Xo(e) {
5034
5034
  let t = e.scopes ?? [];
5035
- return t.length === 0 ? !Jo.has(e.category ?? "") : t.includes("tenant");
5035
+ return t.length === 0 ? !Yo.has(e.category ?? "") : t.includes("tenant");
5036
5036
  }
5037
5037
  //#endregion
5038
5038
  //#region src/components/params/ParamsBlock.tsx
5039
- function Xo(e) {
5039
+ function Zo(e) {
5040
5040
  return e === "tenant" || e === "role" || e === "user" ? e : "object";
5041
5041
  }
5042
- function Zo(e, t) {
5042
+ function Qo(e, t) {
5043
5043
  return e ? e.filter((e) => e.scopes?.includes(t)) : [];
5044
5044
  }
5045
- function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a }) {
5046
- let o = z(), s = z("errors"), c = A(), l = K(() => Zo(c.data, t), [c.data, t]), [u, d] = J(null), { overrideByCode: f, missingParams: p, isLoading: m, error: h, clearError: g, save: _, reset: y } = st({
5045
+ function $o({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a }) {
5046
+ let o = z(), s = z("errors"), c = A(), l = K(() => Qo(c.data, t), [c.data, t]), [u, d] = J(null), { overrideByCode: f, missingParams: p, isLoading: m, error: h, clearError: g, save: _, reset: y } = st({
5047
5047
  carrierEntityCode: e,
5048
5048
  rowId: r,
5049
5049
  enabled: l.length > 0,
@@ -5052,7 +5052,7 @@ function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5052
5052
  return l.length === 0 ? null : /* @__PURE__ */ Q(jn, {
5053
5053
  title: i ?? o("params.title", "Parameters"),
5054
5054
  icon: a ?? /* @__PURE__ */ Z(n.settings, { size: 14 }),
5055
- children: [p ? /* @__PURE__ */ Z(Ho, { text: s("param.overrides_unreadable", "The current parameter overrides could not be read.") }) : m ? /* @__PURE__ */ Z("div", {
5055
+ children: [p ? /* @__PURE__ */ Z(Uo, { text: s("param.overrides_unreadable", "The current parameter overrides could not be read.") }) : m ? /* @__PURE__ */ Z("div", {
5056
5056
  style: { padding: "8px 0" },
5057
5057
  children: /* @__PURE__ */ Z(ze, { size: 16 })
5058
5058
  }) : /* @__PURE__ */ Q("div", {
@@ -5061,8 +5061,8 @@ function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5061
5061
  flexDirection: "column",
5062
5062
  gap: 10
5063
5063
  },
5064
- children: [h && !u && /* @__PURE__ */ Z(Ho, { text: h }), l.map((e) => {
5065
- let r = f.get(e.code), i = r !== void 0, a = i && e.source === Xo(t);
5064
+ children: [h && !u && /* @__PURE__ */ Z(Uo, { text: h }), l.map((e) => {
5065
+ let r = f.get(e.code), i = r !== void 0, a = i && e.source === Zo(t);
5066
5066
  return /* @__PURE__ */ Q("div", {
5067
5067
  "data-testid": `param-row-${e.code}`,
5068
5068
  style: {
@@ -5091,7 +5091,7 @@ function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5091
5091
  children: e.code
5092
5092
  })]
5093
5093
  }),
5094
- /* @__PURE__ */ Z(Uo, {
5094
+ /* @__PURE__ */ Z(Wo, {
5095
5095
  type: e.type,
5096
5096
  value: e.value,
5097
5097
  structure: e.structure
@@ -5105,7 +5105,7 @@ function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5105
5105
  "data-testid": `param-not-applied-${e.code}`,
5106
5106
  title: o("params.block.not_applied_hint", "You set {value}, and it no longer satisfies this parameter's declaration. Source of the value in effect: {source}. Reset to remove what you set, or edit it to a value the declaration accepts.", {
5107
5107
  value: JSON.stringify(r.value),
5108
- source: Vo(o, e.source)
5108
+ source: Ho(o, e.source)
5109
5109
  }),
5110
5110
  children: /* @__PURE__ */ Z(v, {
5111
5111
  tone: "amber",
@@ -5129,7 +5129,7 @@ function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5129
5129
  ]
5130
5130
  }, e.code);
5131
5131
  })]
5132
- }), u && /* @__PURE__ */ Z(Wo, {
5132
+ }), u && /* @__PURE__ */ Z(Go, {
5133
5133
  param: u,
5134
5134
  current: f.get(u.code)?.value ?? u.value,
5135
5135
  error: h,
@@ -5142,9 +5142,9 @@ function Qo({ carrierEntityCode: e, carrierScope: t, rowId: r, title: i, icon: a
5142
5142
  }
5143
5143
  //#endregion
5144
5144
  //#region src/components/pages/profile/Profile.tsx
5145
- var $ = "profile", $o = "avatar";
5146
- function es() {
5147
- let e = ir(), t = R((e) => e.user), i = R((e) => e.activeTenant), a = R((e) => e.refreshMe), { data: o } = L(), s = Re(), c = Rt("custom"), l = z(), u = kn($, t?.id), d = u.data?.data, [f, p] = J(!1), [m, h] = J(!1), g = o?.entities[$], _ = t?.display_name || t?.email || l("profile.user_fallback", "User"), y = t?.roles && t.roles[0] || l("profile.role_fallback", "Member"), b = i?.env ? `${i.name} · ${i.env}` : i?.name ?? "—", x = (e) => g && Rr({
5145
+ var $ = "profile", es = "avatar";
5146
+ function ts() {
5147
+ let e = ar(), t = R((e) => e.user), i = R((e) => e.activeTenant), a = R((e) => e.refreshMe), { data: o } = L(), s = Re(), c = Rt("custom"), l = z(), u = kn($, t?.id), d = u.data?.data, [f, p] = J(!1), [m, h] = J(!1), g = o?.entities[$], _ = t?.display_name || t?.email || l("profile.user_fallback", "User"), y = t?.roles && t.roles[0] || l("profile.role_fallback", "Member"), b = i?.env ? `${i.name} · ${i.env}` : i?.name ?? "—", x = (e) => g && zr({
5148
5148
  entity: g,
5149
5149
  entityCode: $,
5150
5150
  fieldName: e,
@@ -5156,10 +5156,10 @@ function es() {
5156
5156
  t: l
5157
5157
  });
5158
5158
  return /* @__PURE__ */ Q(X, { children: [
5159
- /* @__PURE__ */ Q(Hn, {
5159
+ /* @__PURE__ */ Q(Vn, {
5160
5160
  header: /* @__PURE__ */ Z("div", {
5161
5161
  "data-testid": "profile-hero",
5162
- children: /* @__PURE__ */ Z(Vn, {
5162
+ children: /* @__PURE__ */ Z(Hn, {
5163
5163
  icon: g?.display.icon ? /* @__PURE__ */ Z(r, {
5164
5164
  name: g.display.icon,
5165
5165
  size: 16
@@ -5210,14 +5210,14 @@ function es() {
5210
5210
  children: /* @__PURE__ */ Q(zn, { children: [
5211
5211
  t && g && d && /* @__PURE__ */ Z(B, {
5212
5212
  label: l("profile.avatar", "Avatar"),
5213
- children: /* @__PURE__ */ Z(He, { children: /* @__PURE__ */ Z(ns, {
5213
+ children: /* @__PURE__ */ Z(He, { children: /* @__PURE__ */ Z(rs, {
5214
5214
  userId: t.id,
5215
5215
  entity: g,
5216
5216
  record: d,
5217
5217
  onCommitted: async () => {
5218
5218
  await u.refetch();
5219
5219
  }
5220
- }, ts(d)) })
5220
+ }, ns(d)) })
5221
5221
  }),
5222
5222
  /* @__PURE__ */ Z(B, {
5223
5223
  label: l("profile.display_name", "Display name"),
@@ -5230,9 +5230,9 @@ function es() {
5230
5230
  }),
5231
5231
  /* @__PURE__ */ Z(B, {
5232
5232
  label: l("profile.personal.timezone", "Timezone"),
5233
- children: is()
5233
+ children: as()
5234
5234
  }),
5235
- t?.id && /* @__PURE__ */ Z(os, { userId: t.id })
5235
+ t?.id && /* @__PURE__ */ Z(ss, { userId: t.id })
5236
5236
  ] })
5237
5237
  })
5238
5238
  }),
@@ -5278,9 +5278,9 @@ function es() {
5278
5278
  })
5279
5279
  ] })
5280
5280
  }),
5281
- /* @__PURE__ */ Z(ss, { userId: t?.id }),
5282
- t?.id && /* @__PURE__ */ Z(as, { userId: t.id }),
5283
- s?.screen && o && g && d && /* @__PURE__ */ Z(Un, {
5281
+ /* @__PURE__ */ Z(cs, { userId: t?.id }),
5282
+ t?.id && /* @__PURE__ */ Z(os, { userId: t.id }),
5283
+ s?.screen && o && g && d && /* @__PURE__ */ Z(Wn, {
5284
5284
  screen: s.screen,
5285
5285
  entity: g,
5286
5286
  entityCode: $,
@@ -5289,7 +5289,7 @@ function es() {
5289
5289
  })
5290
5290
  ]
5291
5291
  }),
5292
- /* @__PURE__ */ Z(rs, {
5292
+ /* @__PURE__ */ Z(is, {
5293
5293
  open: m,
5294
5294
  initialName: t?.display_name ?? "",
5295
5295
  userId: t?.id ?? "",
@@ -5298,7 +5298,7 @@ function es() {
5298
5298
  await a(), h(!1);
5299
5299
  }
5300
5300
  }),
5301
- /* @__PURE__ */ Z(zo, {
5301
+ /* @__PURE__ */ Z(Bo, {
5302
5302
  open: f,
5303
5303
  onClose: () => p(!1),
5304
5304
  onSubmit: async ({ current: e, next: t }) => {
@@ -5307,22 +5307,22 @@ function es() {
5307
5307
  })
5308
5308
  ] });
5309
5309
  }
5310
- function ts(e) {
5311
- return Er(Nr(e, $o))?.id ?? "";
5310
+ function ns(e) {
5311
+ return Dr(Pr(e, es))?.id ?? "";
5312
5312
  }
5313
- function ns({ userId: e, entity: t, record: n, onCommitted: r }) {
5313
+ function rs({ userId: e, entity: t, record: n, onCommitted: r }) {
5314
5314
  let i = z(), a = z("errors"), o = Se(), [s, c] = J(!1), [l, u] = J(0), d = async (s) => {
5315
- let l = ar({
5315
+ let l = or({
5316
5316
  entity: t,
5317
- formData: { [$o]: s },
5317
+ formData: { [es]: s },
5318
5318
  record: n,
5319
5319
  isNew: !1
5320
5320
  });
5321
5321
  if (Object.keys(l).length !== 0) {
5322
5322
  c(!0);
5323
5323
  try {
5324
- await Zn($, { id: e }, { $files: l });
5325
- let t = ts({ [$o]: s });
5324
+ await Qn($, { id: e }, { $files: l });
5325
+ let t = ns({ [es]: s });
5326
5326
  t && o.markCommitted(t), await r(), P.success(i("profile.avatar.updated", "Avatar updated."));
5327
5327
  } catch (e) {
5328
5328
  await o.flushAllDrafts(), u((e) => e + 1), P.error(V(a, e));
@@ -5331,10 +5331,10 @@ function ns({ userId: e, entity: t, record: n, onCommitted: r }) {
5331
5331
  }
5332
5332
  }
5333
5333
  };
5334
- return /* @__PURE__ */ Z(yi, { children: Rr({
5334
+ return /* @__PURE__ */ Z(bi, { children: zr({
5335
5335
  entity: t,
5336
5336
  entityCode: $,
5337
- fieldName: $o,
5337
+ fieldName: es,
5338
5338
  record: n,
5339
5339
  mode: "edit",
5340
5340
  onChange: (e) => void d(e),
@@ -5343,7 +5343,7 @@ function ns({ userId: e, entity: t, record: n, onCommitted: r }) {
5343
5343
  fieldId: "profile-avatar"
5344
5344
  }) }, l);
5345
5345
  }
5346
- function rs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5346
+ function is({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5347
5347
  let o = F().isPhone, s = z(), c = z("errors"), [l, u] = J(t), [d, f] = J(!1), [p, m] = J(null);
5348
5348
  if (!e) return null;
5349
5349
  let g = () => {
@@ -5435,7 +5435,7 @@ function rs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5435
5435
  onChange: u,
5436
5436
  placeholder: s("profile.edit.name_placeholder", "Your name"),
5437
5437
  autoFocus: !0
5438
- })] }), p && /* @__PURE__ */ Z(Ho, { text: p })]
5438
+ })] }), p && /* @__PURE__ */ Z(Uo, { text: p })]
5439
5439
  }),
5440
5440
  /* @__PURE__ */ Q("div", {
5441
5441
  style: {
@@ -5463,7 +5463,7 @@ function rs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5463
5463
  }
5464
5464
  m(null), f(!0);
5465
5465
  try {
5466
- await Zn($, { id: r }, { display_name: l.trim() }), await a();
5466
+ await Qn($, { id: r }, { display_name: l.trim() }), await a();
5467
5467
  } catch (e) {
5468
5468
  m(V(c, e));
5469
5469
  } finally {
@@ -5478,22 +5478,22 @@ function rs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
5478
5478
  ]
5479
5479
  })] });
5480
5480
  }
5481
- function is() {
5481
+ function as() {
5482
5482
  try {
5483
5483
  return Intl.DateTimeFormat().resolvedOptions().timeZone || "—";
5484
5484
  } catch {
5485
5485
  return "—";
5486
5486
  }
5487
5487
  }
5488
- function as({ userId: e }) {
5488
+ function os({ userId: e }) {
5489
5489
  let { data: t } = L(), n = t?.entities[$]?.params_scope ?? $;
5490
- return /* @__PURE__ */ Z(Qo, {
5490
+ return /* @__PURE__ */ Z($o, {
5491
5491
  carrierEntityCode: $,
5492
5492
  carrierScope: n,
5493
5493
  rowId: e
5494
5494
  });
5495
5495
  }
5496
- function os({ userId: e }) {
5496
+ function ss({ userId: e }) {
5497
5497
  let t = z(), { data: n } = L(), r = A().data?.find((e) => e.code === on), i = n?.entities[$]?.params_scope ?? $, a = !!r?.scopes?.includes(i), { save: o, error: s, isLoading: c } = st({
5498
5498
  carrierEntityCode: $,
5499
5499
  rowId: e,
@@ -5517,7 +5517,7 @@ function os({ userId: e }) {
5517
5517
  }) : d.find((e) => e.value === f)?.label ?? f
5518
5518
  });
5519
5519
  }
5520
- function ss({ userId: e }) {
5520
+ function cs({ userId: e }) {
5521
5521
  let { data: t } = L();
5522
5522
  if (!e || !t) return null;
5523
5523
  let n = t.entities[$];
@@ -5536,17 +5536,17 @@ function ss({ userId: e }) {
5536
5536
  }
5537
5537
  //#endregion
5538
5538
  //#region src/components/pages/tenant-params/TenantParamsPage.tsx
5539
- var cs = "my_tenant", ls = [
5539
+ var ls = "my_tenant", us = [
5540
5540
  "yaml",
5541
5541
  "env",
5542
5542
  "tenant"
5543
5543
  ];
5544
- function us(e) {
5544
+ function ds(e) {
5545
5545
  return e === "tenant" ? "violet" : e === "env" ? "amber" : "slate";
5546
5546
  }
5547
- function ds(e) {
5547
+ function fs(e) {
5548
5548
  let t = z(), r = z("errors"), i = R((e) => e.activeTenant?.id) ?? "", a = A("tenant"), [o, s] = J(""), [c, l] = J(""), [u, d] = J(""), [f, p] = J(!1), [m, h] = J(null), { overrideByCode: g, missingParams: _, isLoading: y, error: b, clearError: x, save: C, reset: w } = st({
5549
- carrierEntityCode: cs,
5549
+ carrierEntityCode: ls,
5550
5550
  rowId: i,
5551
5551
  onWritten: () => h(null)
5552
5552
  }), T = K(() => a.data ?? [], [a.data]), E = K(() => Array.from(new Set(T.map((e) => e.category).filter(Boolean))).sort(), [T]), D = K(() => {
@@ -5567,7 +5567,7 @@ function ds(e) {
5567
5567
  overflowY: "auto",
5568
5568
  paddingTop: 14,
5569
5569
  paddingBottom: 28,
5570
- ...Qn(20),
5570
+ ...$n(20),
5571
5571
  background: "var(--background)"
5572
5572
  },
5573
5573
  children: [/* @__PURE__ */ Q("div", {
@@ -5596,11 +5596,11 @@ function ds(e) {
5596
5596
  }),
5597
5597
  b && /* @__PURE__ */ Z("div", {
5598
5598
  style: { marginBottom: 12 },
5599
- children: /* @__PURE__ */ Z(Ho, { text: b })
5599
+ children: /* @__PURE__ */ Z(Uo, { text: b })
5600
5600
  }),
5601
5601
  _ && /* @__PURE__ */ Z("div", {
5602
5602
  style: { marginBottom: 12 },
5603
- children: /* @__PURE__ */ Z(Ho, { text: r("param.overrides_unreadable", "The current parameter overrides could not be read.") })
5603
+ children: /* @__PURE__ */ Z(Uo, { text: r("param.overrides_unreadable", "The current parameter overrides could not be read.") })
5604
5604
  }),
5605
5605
  /* @__PURE__ */ Q("div", {
5606
5606
  "data-testid": "tenant-params-filters",
@@ -5644,9 +5644,9 @@ function ds(e) {
5644
5644
  options: [{
5645
5645
  value: "",
5646
5646
  label: t("params.filter.all_sources", "All sources")
5647
- }, ...ls.map((e) => ({
5647
+ }, ...us.map((e) => ({
5648
5648
  value: e,
5649
- label: Vo(t, e)
5649
+ label: Ho(t, e)
5650
5650
  }))],
5651
5651
  onChange: d
5652
5652
  })
@@ -5690,13 +5690,13 @@ function ds(e) {
5690
5690
  textAlign: "left"
5691
5691
  },
5692
5692
  children: [
5693
- /* @__PURE__ */ Z(fs, { children: t("params.column.name", "Name") }),
5694
- /* @__PURE__ */ Z(fs, { children: t("params.column.code", "Code") }),
5695
- /* @__PURE__ */ Z(fs, { children: t("params.column.category", "Category") }),
5696
- /* @__PURE__ */ Z(fs, { children: t("params.column.type", "Type") }),
5697
- /* @__PURE__ */ Z(fs, { children: t("params.value", "Value") }),
5698
- /* @__PURE__ */ Z(fs, { children: t("params.column.source", "Source") }),
5699
- /* @__PURE__ */ Z(fs, { children: "" })
5693
+ /* @__PURE__ */ Z(ps, { children: t("params.column.name", "Name") }),
5694
+ /* @__PURE__ */ Z(ps, { children: t("params.column.code", "Code") }),
5695
+ /* @__PURE__ */ Z(ps, { children: t("params.column.category", "Category") }),
5696
+ /* @__PURE__ */ Z(ps, { children: t("params.column.type", "Type") }),
5697
+ /* @__PURE__ */ Z(ps, { children: t("params.value", "Value") }),
5698
+ /* @__PURE__ */ Z(ps, { children: t("params.column.source", "Source") }),
5699
+ /* @__PURE__ */ Z(ps, { children: "" })
5700
5700
  ]
5701
5701
  }) }), /* @__PURE__ */ Z("tbody", { children: D.length === 0 ? /* @__PURE__ */ Z("tr", { children: /* @__PURE__ */ Z("td", {
5702
5702
  colSpan: 7,
@@ -5707,25 +5707,25 @@ function ds(e) {
5707
5707
  },
5708
5708
  children: t("params.empty", "No parameters match.")
5709
5709
  }) }) : D.map((e) => {
5710
- let r = g.get(e.code), i = r !== void 0, a = Yo(e), o = i && e.source === "tenant";
5710
+ let r = g.get(e.code), i = r !== void 0, a = Xo(e), o = i && e.source === "tenant";
5711
5711
  return /* @__PURE__ */ Q("tr", {
5712
5712
  "data-testid": `tenant-param-row-${e.code}`,
5713
5713
  style: { borderTop: "1px solid var(--divider)" },
5714
5714
  children: [
5715
- /* @__PURE__ */ Z(ps, { children: t(e.name) || e.code }),
5716
- /* @__PURE__ */ Z(ps, { children: /* @__PURE__ */ Z("span", {
5715
+ /* @__PURE__ */ Z(ms, { children: t(e.name) || e.code }),
5716
+ /* @__PURE__ */ Z(ms, { children: /* @__PURE__ */ Z("span", {
5717
5717
  className: "mono",
5718
5718
  style: { color: "var(--text-3)" },
5719
5719
  children: e.code
5720
5720
  }) }),
5721
- /* @__PURE__ */ Z(ps, { children: e.category ?? "—" }),
5722
- /* @__PURE__ */ Z(ps, { children: e.type }),
5723
- /* @__PURE__ */ Z(ps, { children: /* @__PURE__ */ Z(Uo, {
5721
+ /* @__PURE__ */ Z(ms, { children: e.category ?? "—" }),
5722
+ /* @__PURE__ */ Z(ms, { children: e.type }),
5723
+ /* @__PURE__ */ Z(ms, { children: /* @__PURE__ */ Z(Wo, {
5724
5724
  type: e.type,
5725
5725
  value: e.value,
5726
5726
  structure: e.structure
5727
5727
  }) }),
5728
- /* @__PURE__ */ Z(ps, { children: /* @__PURE__ */ Q("span", {
5728
+ /* @__PURE__ */ Z(ms, { children: /* @__PURE__ */ Q("span", {
5729
5729
  style: {
5730
5730
  display: "inline-flex",
5731
5731
  gap: 6,
@@ -5733,9 +5733,9 @@ function ds(e) {
5733
5733
  },
5734
5734
  children: [
5735
5735
  /* @__PURE__ */ Z(v, {
5736
- tone: us(e.source),
5736
+ tone: ds(e.source),
5737
5737
  size: "xs",
5738
- children: Vo(t, e.source)
5738
+ children: Ho(t, e.source)
5739
5739
  }),
5740
5740
  o && /* @__PURE__ */ Z(v, {
5741
5741
  tone: "violet",
@@ -5747,7 +5747,7 @@ function ds(e) {
5747
5747
  "data-testid": `tenant-param-not-applied-${e.code}`,
5748
5748
  title: t("params.tenant.not_applied_hint", "This tenant is set to {value}, and it no longer satisfies the parameter's declaration. Source of the value in effect: {source}. Reset to remove it, or edit it to a value the declaration accepts.", {
5749
5749
  value: JSON.stringify(r.value),
5750
- source: Vo(t, e.source)
5750
+ source: Ho(t, e.source)
5751
5751
  }),
5752
5752
  children: /* @__PURE__ */ Z(v, {
5753
5753
  tone: "amber",
@@ -5758,7 +5758,7 @@ function ds(e) {
5758
5758
  })
5759
5759
  ]
5760
5760
  }) }),
5761
- /* @__PURE__ */ Z(ps, { children: /* @__PURE__ */ Z("span", {
5761
+ /* @__PURE__ */ Z(ms, { children: /* @__PURE__ */ Z("span", {
5762
5762
  style: {
5763
5763
  display: "inline-flex",
5764
5764
  gap: 6,
@@ -5798,7 +5798,7 @@ function ds(e) {
5798
5798
  })
5799
5799
  })
5800
5800
  ]
5801
- }), m && /* @__PURE__ */ Z(Wo, {
5801
+ }), m && /* @__PURE__ */ Z(Go, {
5802
5802
  param: m,
5803
5803
  current: g.get(m.code)?.value ?? m.value,
5804
5804
  error: b,
@@ -5809,7 +5809,7 @@ function ds(e) {
5809
5809
  })]
5810
5810
  });
5811
5811
  }
5812
- function fs({ children: e }) {
5812
+ function ps({ children: e }) {
5813
5813
  return /* @__PURE__ */ Z("th", {
5814
5814
  style: {
5815
5815
  padding: "8px 12px",
@@ -5820,7 +5820,7 @@ function fs({ children: e }) {
5820
5820
  children: e
5821
5821
  });
5822
5822
  }
5823
- function ps({ children: e }) {
5823
+ function ms({ children: e }) {
5824
5824
  return /* @__PURE__ */ Z("td", {
5825
5825
  style: {
5826
5826
  padding: "8px 12px",
@@ -5831,7 +5831,7 @@ function ps({ children: e }) {
5831
5831
  }
5832
5832
  //#endregion
5833
5833
  //#region src/components/chrome/PageHeader.tsx
5834
- function ms({ title: e, description: t, backTo: r, actions: i }) {
5834
+ function hs({ title: e, description: t, backTo: r, actions: i }) {
5835
5835
  let o = z(), s = Re(), c = e ?? o(s?.screen?.display?.name) ?? "", l = t ?? o(s?.screen?.display?.description), u = Rt("custom"), d = u.isVisible("show_title"), f = u.isVisible("show_actions"), p = Gt(), m = a(), h = W(() => {
5836
5836
  if (r) {
5837
5837
  if (!p.enabled) {
@@ -5844,69 +5844,61 @@ function ms({ title: e, description: t, backTo: r, actions: i }) {
5844
5844
  r,
5845
5845
  p.enabled,
5846
5846
  m
5847
- ]), { hasOriginBack: g, goBack: _ } = pr({ fallback: h });
5847
+ ]), { hasOriginBack: g, goBack: _ } = mr({ fallback: h });
5848
5848
  return !d && (!f || !i) ? null : /* @__PURE__ */ Q("div", {
5849
5849
  style: {
5850
5850
  display: "flex",
5851
5851
  alignItems: "center",
5852
- justifyContent: "space-between",
5852
+ flexWrap: "wrap",
5853
5853
  marginBottom: 16,
5854
- gap: 12
5854
+ gap: 10,
5855
+ minWidth: 0
5855
5856
  },
5856
- children: [d && /* @__PURE__ */ Q("div", {
5857
- style: {
5858
- display: "flex",
5859
- alignItems: "center",
5860
- gap: 10,
5861
- minWidth: 0
5862
- },
5863
- children: [
5864
- (g || !!r) && /* @__PURE__ */ Z(S, {
5865
- icon: /* @__PURE__ */ Z(n.back, { size: 14 }),
5866
- onClick: _,
5867
- title: o("shell.back", "Back")
5868
- }),
5869
- /* @__PURE__ */ Z("h1", {
5870
- style: {
5871
- margin: 0,
5872
- fontSize: "var(--page-title-size, var(--page-title-size-page))",
5873
- lineHeight: "var(--page-title-line-height, var(--page-title-line-height-page))",
5874
- fontWeight: 600,
5875
- letterSpacing: "-0.01em",
5876
- color: "var(--text)",
5877
- overflow: "hidden",
5878
- textOverflow: "ellipsis",
5879
- whiteSpace: "nowrap"
5880
- },
5881
- children: c
5882
- }),
5883
- l && /* @__PURE__ */ Z(At, {
5884
- label: l,
5885
- "data-testid": "page-description-info"
5886
- })
5887
- ]
5888
- }), f && i && /* @__PURE__ */ Z("div", {
5889
- style: {
5890
- display: "flex",
5891
- alignItems: "center",
5892
- gap: 6,
5893
- flex: "1 1 auto",
5894
- minWidth: 0,
5895
- justifyContent: "flex-end"
5896
- },
5897
- children: i
5898
- })]
5857
+ children: [
5858
+ d && (g || !!r) && /* @__PURE__ */ Z(S, {
5859
+ icon: /* @__PURE__ */ Z(n.back, { size: 14 }),
5860
+ onClick: _,
5861
+ title: o("shell.back", "Back")
5862
+ }),
5863
+ d && /* @__PURE__ */ Z("h1", {
5864
+ style: {
5865
+ margin: 0,
5866
+ fontSize: "var(--page-title-size, var(--page-title-size-page))",
5867
+ lineHeight: "var(--page-title-line-height, var(--page-title-line-height-page))",
5868
+ fontWeight: 600,
5869
+ letterSpacing: "-0.01em",
5870
+ color: "var(--text)",
5871
+ overflow: "hidden",
5872
+ textOverflow: "ellipsis",
5873
+ whiteSpace: "nowrap",
5874
+ minWidth: 0,
5875
+ maxWidth: "100%",
5876
+ flexGrow: 0,
5877
+ flexShrink: 1,
5878
+ flexBasis: "auto"
5879
+ },
5880
+ children: c
5881
+ }),
5882
+ d && l && /* @__PURE__ */ Z(At, {
5883
+ label: l,
5884
+ "data-testid": "page-description-info"
5885
+ }),
5886
+ f && i && /* @__PURE__ */ Z("div", {
5887
+ style: Un,
5888
+ children: i
5889
+ })
5890
+ ]
5899
5891
  });
5900
5892
  }
5901
5893
  //#endregion
5902
5894
  //#region src/components/pages/profile/Preferences.tsx
5903
- var hs = [
5895
+ var gs = [
5904
5896
  "violet",
5905
5897
  "blue",
5906
5898
  "teal",
5907
5899
  "amber",
5908
5900
  "rose"
5909
- ], gs = [
5901
+ ], _s = [
5910
5902
  [
5911
5903
  "compact",
5912
5904
  "profile.preferences.density.compact",
@@ -5922,7 +5914,7 @@ var hs = [
5922
5914
  "profile.preferences.density.cozy",
5923
5915
  "Cozy"
5924
5916
  ]
5925
- ], _s = "px", vs = [
5917
+ ], vs = "px", ys = [
5926
5918
  [
5927
5919
  "profile.preferences.shortcut.command_palette",
5928
5920
  "Command palette",
@@ -5954,10 +5946,10 @@ var hs = [
5954
5946
  "Esc"
5955
5947
  ]
5956
5948
  ];
5957
- function ys() {
5949
+ function bs() {
5958
5950
  let e = U((e) => e.colorScheme), t = U((e) => e.accent), r = U((e) => e.density), i = U((e) => e.radius), a = U((e) => e.zebra), o = U((e) => e.set), s = U((e) => e.resetToDefaults), { branding: c } = Bt(), l = z();
5959
- return /* @__PURE__ */ Q(Hn, {
5960
- header: /* @__PURE__ */ Z(ms, {
5951
+ return /* @__PURE__ */ Q(Vn, {
5952
+ header: /* @__PURE__ */ Z(hs, {
5961
5953
  title: l("profile.preferences", "Preferences"),
5962
5954
  actions: /* @__PURE__ */ Z(k, {
5963
5955
  icon: /* @__PURE__ */ Z(n.refresh, { size: 13 }),
@@ -5976,7 +5968,7 @@ function ys() {
5976
5968
  /* @__PURE__ */ Z(B, {
5977
5969
  label: l("profile.preferences.theme", "Theme"),
5978
5970
  hint: l("profile.preferences.theme_hint", "Pick light or dark (system sync coming soon)"),
5979
- children: /* @__PURE__ */ Z(bs, { children: [["light", l("profile.preferences.theme.light", "Light")], ["dark", l("profile.preferences.theme.dark", "Dark")]].map(([t, n]) => /* @__PURE__ */ Z(k, {
5971
+ children: /* @__PURE__ */ Z(xs, { children: [["light", l("profile.preferences.theme.light", "Light")], ["dark", l("profile.preferences.theme.dark", "Dark")]].map(([t, n]) => /* @__PURE__ */ Z(k, {
5980
5972
  kind: e === t ? "primary" : "default",
5981
5973
  "aria-pressed": e === t,
5982
5974
  onClick: () => o("colorScheme", t),
@@ -5986,7 +5978,7 @@ function ys() {
5986
5978
  /* @__PURE__ */ Z(B, {
5987
5979
  label: l("profile.preferences.accent", "Accent color"),
5988
5980
  hint: l("profile.preferences.accent_hint", "Your personal accent across the app"),
5989
- children: /* @__PURE__ */ Z(bs, { children: hs.map((n) => /* @__PURE__ */ Z("button", {
5981
+ children: /* @__PURE__ */ Z(xs, { children: gs.map((n) => /* @__PURE__ */ Z("button", {
5990
5982
  type: "button",
5991
5983
  "data-accent": n,
5992
5984
  "data-color-scheme": e,
@@ -6000,7 +5992,7 @@ function ys() {
6000
5992
  /* @__PURE__ */ Z(B, {
6001
5993
  label: l("profile.preferences.density", "Density"),
6002
5994
  hint: l("profile.preferences.density_hint", "Compact saves space; cozy is easier on the eyes"),
6003
- children: /* @__PURE__ */ Z(bs, { children: gs.map(([e, t, n]) => /* @__PURE__ */ Z(k, {
5995
+ children: /* @__PURE__ */ Z(xs, { children: _s.map(([e, t, n]) => /* @__PURE__ */ Z(k, {
6004
5996
  kind: r === e ? "primary" : "default",
6005
5997
  "aria-pressed": r === e,
6006
5998
  onClick: () => o("density", e),
@@ -6009,7 +6001,7 @@ function ys() {
6009
6001
  }),
6010
6002
  /* @__PURE__ */ Z(B, {
6011
6003
  label: l("profile.preferences.radius", "Border radius"),
6012
- children: /* @__PURE__ */ Q(bs, { children: [/* @__PURE__ */ Z("input", {
6004
+ children: /* @__PURE__ */ Q(xs, { children: [/* @__PURE__ */ Z("input", {
6013
6005
  type: "range",
6014
6006
  min: 0,
6015
6007
  max: 14,
@@ -6018,7 +6010,7 @@ function ys() {
6018
6010
  className: "w-44"
6019
6011
  }), /* @__PURE__ */ Q("span", {
6020
6012
  className: "mono num text-xs text-muted-foreground",
6021
- children: [i, _s]
6013
+ children: [i, vs]
6022
6014
  })] })
6023
6015
  }),
6024
6016
  /* @__PURE__ */ Z(B, {
@@ -6035,14 +6027,14 @@ function ys() {
6035
6027
  }), /* @__PURE__ */ Z(jn, {
6036
6028
  title: l("profile.preferences.keyboard", "Keyboard"),
6037
6029
  icon: /* @__PURE__ */ Z(n.command, { size: 14 }),
6038
- children: /* @__PURE__ */ Z(zn, { children: vs.map(([e, t, n]) => /* @__PURE__ */ Z(B, {
6030
+ children: /* @__PURE__ */ Z(zn, { children: ys.map(([e, t, n]) => /* @__PURE__ */ Z(B, {
6039
6031
  label: l(e, t),
6040
6032
  children: /* @__PURE__ */ Z(p, { children: n })
6041
6033
  }, e)) })
6042
6034
  })]
6043
6035
  });
6044
6036
  }
6045
- function bs({ children: e }) {
6037
+ function xs({ children: e }) {
6046
6038
  return /* @__PURE__ */ Z("div", {
6047
6039
  className: "flex flex-wrap items-center gap-1.5",
6048
6040
  children: e
@@ -6050,8 +6042,8 @@ function bs({ children: e }) {
6050
6042
  }
6051
6043
  //#endregion
6052
6044
  //#region src/components/pages/AdminCatalogPage.tsx
6053
- var xs = "string", Ss = "handler";
6054
- function Cs() {
6045
+ var Ss = "string", Cs = "handler";
6046
+ function ws() {
6055
6047
  let { data: e } = L(), t = z(), [n, r] = J("handlers"), i = F().isPhone;
6056
6048
  return e ? /* @__PURE__ */ Q("div", {
6057
6049
  style: {
@@ -6063,7 +6055,7 @@ function Cs() {
6063
6055
  style: {
6064
6056
  paddingTop: i ? 14 : 20,
6065
6057
  paddingBottom: 0,
6066
- ...i ? Qn(14) : {
6058
+ ...i ? $n(14) : {
6067
6059
  paddingLeft: 20,
6068
6060
  paddingRight: 20
6069
6061
  }
@@ -6110,16 +6102,16 @@ function Cs() {
6110
6102
  overflowY: "auto",
6111
6103
  paddingTop: 0,
6112
6104
  paddingBottom: 20,
6113
- ...i ? Qn(14) : {
6105
+ ...i ? $n(14) : {
6114
6106
  paddingLeft: 20,
6115
6107
  paddingRight: 20
6116
6108
  }
6117
6109
  },
6118
- children: [n === "handlers" && /* @__PURE__ */ Z(ws, { schema: e }), n === "actions" && /* @__PURE__ */ Z(Ds, { schema: e })]
6110
+ children: [n === "handlers" && /* @__PURE__ */ Z(Ts, { schema: e }), n === "actions" && /* @__PURE__ */ Z(Os, { schema: e })]
6119
6111
  })]
6120
6112
  }) : null;
6121
6113
  }
6122
- function ws({ schema: e }) {
6114
+ function Ts({ schema: e }) {
6123
6115
  let t = z(), n = K(() => {
6124
6116
  let t = [];
6125
6117
  if (e.handlers) for (let [n, r] of Object.entries(e.handlers)) t.push({
@@ -6155,7 +6147,7 @@ function ws({ schema: e }) {
6155
6147
  flexDirection: "column",
6156
6148
  gap: 8
6157
6149
  },
6158
- children: n.map(({ code: e, handler: t, entity: n }) => /* @__PURE__ */ Z(Ts, {
6150
+ children: n.map(({ code: e, handler: t, entity: n }) => /* @__PURE__ */ Z(Es, {
6159
6151
  code: e,
6160
6152
  handler: t,
6161
6153
  entity: n
@@ -6163,7 +6155,7 @@ function ws({ schema: e }) {
6163
6155
  })]
6164
6156
  });
6165
6157
  }
6166
- function Ts({ code: e, handler: t, entity: n }) {
6158
+ function Es({ code: e, handler: t, entity: n }) {
6167
6159
  let i = z(), [a, o] = J(!1), s = F().isPhone, c = t.display?.name ? i(t.display.name) : e;
6168
6160
  return /* @__PURE__ */ Q("div", {
6169
6161
  style: {
@@ -6262,7 +6254,7 @@ function Ts({ code: e, handler: t, entity: n }) {
6262
6254
  },
6263
6255
  children: (t.params?.names() ?? []).map((e) => {
6264
6256
  let n = t.params.get(e);
6265
- return n ? /* @__PURE__ */ Z(Es, {
6257
+ return n ? /* @__PURE__ */ Z(Ds, {
6266
6258
  code: e,
6267
6259
  param: n
6268
6260
  }, e) : null;
@@ -6271,7 +6263,7 @@ function Ts({ code: e, handler: t, entity: n }) {
6271
6263
  })]
6272
6264
  });
6273
6265
  }
6274
- function Es({ code: e, param: t }) {
6266
+ function Ds({ code: e, param: t }) {
6275
6267
  let n = z(), r = t.display?.name ? n(t.display.name) : void 0, i = F().isPhone;
6276
6268
  return /* @__PURE__ */ Q("div", {
6277
6269
  style: {
@@ -6297,7 +6289,7 @@ function Es({ code: e, param: t }) {
6297
6289
  /* @__PURE__ */ Z(v, {
6298
6290
  tone: "slate",
6299
6291
  size: "xs",
6300
- children: t.type || xs
6292
+ children: t.type || Ss
6301
6293
  }),
6302
6294
  t.required && /* @__PURE__ */ Z(v, {
6303
6295
  tone: "rose",
@@ -6328,7 +6320,7 @@ function Es({ code: e, param: t }) {
6328
6320
  ]
6329
6321
  });
6330
6322
  }
6331
- function Ds({ schema: e }) {
6323
+ function Os({ schema: e }) {
6332
6324
  let t = z(), n = K(() => {
6333
6325
  let t = [];
6334
6326
  if (e.actions) for (let [n, r] of Object.entries(e.actions)) t.push({
@@ -6379,14 +6371,14 @@ function Ds({ schema: e }) {
6379
6371
  flexDirection: "column",
6380
6372
  gap: 6
6381
6373
  },
6382
- children: n.map(({ code: e, action: t }) => /* @__PURE__ */ Z(Os, {
6374
+ children: n.map(({ code: e, action: t }) => /* @__PURE__ */ Z(ks, {
6383
6375
  code: e,
6384
6376
  action: t
6385
6377
  }, e))
6386
6378
  })] }, e))]
6387
6379
  });
6388
6380
  }
6389
- function Os({ code: e, action: t }) {
6381
+ function ks({ code: e, action: t }) {
6390
6382
  let n = z()(t.display?.name), i = F().isPhone;
6391
6383
  return /* @__PURE__ */ Q("div", {
6392
6384
  style: {
@@ -6461,7 +6453,7 @@ function Os({ code: e, action: t }) {
6461
6453
  overflowWrap: "anywhere"
6462
6454
  },
6463
6455
  children: [
6464
- Ss,
6456
+ Cs,
6465
6457
  ": ",
6466
6458
  t.handler
6467
6459
  ]
@@ -6483,35 +6475,35 @@ function Os({ code: e, action: t }) {
6483
6475
  }
6484
6476
  //#endregion
6485
6477
  //#region src/components/pages/SmartListPage.tsx
6486
- var ks = xi(() => import("./SmartListPage.impl-BrZLE_Gb.js").then((e) => ({ default: e.SmartListPage })));
6487
- function As(e) {
6488
- return /* @__PURE__ */ Z(bi, {
6478
+ var As = Si(() => import("./SmartListPage.impl-BrZLE_Gb.js").then((e) => ({ default: e.SmartListPage })));
6479
+ function js(e) {
6480
+ return /* @__PURE__ */ Z(xi, {
6489
6481
  fallback: null,
6490
- children: /* @__PURE__ */ Z(ks, { ...e })
6482
+ children: /* @__PURE__ */ Z(As, { ...e })
6491
6483
  });
6492
6484
  }
6493
6485
  //#endregion
6494
6486
  //#region src/components/pages/SmartDetailPage.tsx
6495
- var js = xi(() => import("./SmartDetailPage.impl-Ds2RGg6K.js").then((e) => ({ default: e.SmartDetailPage })));
6496
- function Ms(e) {
6497
- return /* @__PURE__ */ Z(bi, {
6487
+ var Ms = Si(() => import("./SmartDetailPage.impl-DFjz29Ff.js").then((e) => ({ default: e.SmartDetailPage })));
6488
+ function Ns(e) {
6489
+ return /* @__PURE__ */ Z(xi, {
6498
6490
  fallback: null,
6499
- children: /* @__PURE__ */ Z(js, { ...e })
6491
+ children: /* @__PURE__ */ Z(Ms, { ...e })
6500
6492
  });
6501
6493
  }
6502
6494
  //#endregion
6503
6495
  //#region src/components/pages/SmartRecordListPage.tsx
6504
- var Ns = xi(() => import("./SmartRecordListPage.impl-C1FJLr80.js").then((e) => ({ default: e.SmartRecordListPage })));
6505
- function Ps(e) {
6506
- return /* @__PURE__ */ Z(bi, {
6496
+ var Ps = Si(() => import("./SmartRecordListPage.impl-C1FJLr80.js").then((e) => ({ default: e.SmartRecordListPage })));
6497
+ function Fs(e) {
6498
+ return /* @__PURE__ */ Z(xi, {
6507
6499
  fallback: null,
6508
- children: /* @__PURE__ */ Z(Ns, { ...e })
6500
+ children: /* @__PURE__ */ Z(Ps, { ...e })
6509
6501
  });
6510
6502
  }
6511
6503
  //#endregion
6512
6504
  //#region src/hooks/useVersionWatcher.ts
6513
- function Fs() {
6514
- let e = zi(), t = z(), n = q(t);
6505
+ function Is() {
6506
+ let e = Bi(), t = z(), n = q(t);
6515
6507
  G(() => {
6516
6508
  n.current = t;
6517
6509
  }, [t]), G(() => {
@@ -6571,34 +6563,34 @@ function Fs() {
6571
6563
  }
6572
6564
  //#endregion
6573
6565
  //#region src/lib/capabilityPrefetch.ts
6574
- var Is = [
6566
+ var Ls = [
6575
6567
  () => import("./MarkdownRenderer-BDbzDv_y.js"),
6576
6568
  () => import("./JsonEditor-Dz1PQHC8.js"),
6577
6569
  () => import("./Grid-CQabaBLx.js"),
6578
6570
  () => import("./DraggableChildrenTable-4RZC351U.js")
6579
6571
  ];
6580
- function Ls() {
6581
- for (let e of Is) e().catch(() => {});
6572
+ function Rs() {
6573
+ for (let e of Ls) e().catch(() => {});
6582
6574
  }
6583
- var Rs = !1;
6584
- function zs() {
6585
- if (Rs) return;
6586
- Rs = !0;
6575
+ var zs = !1;
6576
+ function Bs() {
6577
+ if (zs) return;
6578
+ zs = !0;
6587
6579
  let e = globalThis.requestIdleCallback;
6588
- typeof e == "function" ? e(Ls) : setTimeout(Ls, 0);
6580
+ typeof e == "function" ? e(Rs) : setTimeout(Rs, 0);
6589
6581
  }
6590
6582
  //#endregion
6591
6583
  //#region src/stores/screen-registry.ts
6592
- var Bs = /* @__PURE__ */ new Map();
6593
- function Vs(e, t) {
6594
- Bs.set(e, t);
6584
+ var Vs = /* @__PURE__ */ new Map();
6585
+ function Hs(e, t) {
6586
+ Vs.set(e, t);
6595
6587
  }
6596
- function Hs(e) {
6597
- return Bs.get(e);
6588
+ function Us(e) {
6589
+ return Vs.get(e);
6598
6590
  }
6599
6591
  //#endregion
6600
6592
  //#region src/lib/brand-tokens.ts
6601
- var Us = ["light", "dark"], Ws = ["page_title_size", "page_title_line_height"], Gs = [
6593
+ var Ws = ["light", "dark"], Gs = ["page_title_size", "page_title_line_height"], Ks = [
6602
6594
  "background",
6603
6595
  "surface",
6604
6596
  "surface_2",
@@ -6614,19 +6606,19 @@ var Us = ["light", "dark"], Ws = ["page_title_size", "page_title_line_height"],
6614
6606
  "sidebar",
6615
6607
  "rail"
6616
6608
  ];
6617
- function Ks(e) {
6609
+ function qs(e) {
6618
6610
  return `--${e.replace(/_/g, "-")}`;
6619
6611
  }
6620
- function qs(e) {
6612
+ function Js(e) {
6621
6613
  if (typeof e != "string") return null;
6622
6614
  let t = e.trim();
6623
6615
  return !t || /[;{}]/.test(t) ? null : t;
6624
6616
  }
6625
- function Js(e) {
6626
- let t = qs(e);
6617
+ function Ys(e) {
6618
+ let t = Js(e);
6627
6619
  return !t || typeof CSS < "u" && CSS.supports && !CSS.supports("color", t) ? null : t;
6628
6620
  }
6629
- var Ys = {
6621
+ var Xs = {
6630
6622
  light: {
6631
6623
  soft: 10,
6632
6624
  ring: 28,
@@ -6638,60 +6630,60 @@ var Ys = {
6638
6630
  row: 22
6639
6631
  }
6640
6632
  };
6641
- function Xs(e, t) {
6642
- if (!Js(t.accent)) return [];
6643
- let n = Ys[e];
6633
+ function Zs(e, t) {
6634
+ if (!Ys(t.accent)) return [];
6635
+ let n = Xs[e];
6644
6636
  return [
6645
6637
  `--accent-soft: color-mix(in srgb, var(--accent) ${n.soft}%, var(--surface))`,
6646
6638
  `--accent-ring: color-mix(in srgb, var(--accent) ${n.ring}%, transparent)`,
6647
6639
  `--row-selected-bg: color-mix(in srgb, var(--accent) ${n.row}%, var(--surface))`
6648
6640
  ];
6649
6641
  }
6650
- function Zs(e, t) {
6642
+ function Qs(e, t) {
6651
6643
  let n = [];
6652
- for (let e of Gs) {
6653
- let r = Js(t[e]);
6654
- r && n.push(`${Ks(e)}: ${r}`);
6644
+ for (let e of Ks) {
6645
+ let r = Ys(t[e]);
6646
+ r && n.push(`${qs(e)}: ${r}`);
6655
6647
  }
6656
- return n.push(...Xs(e, t)), n;
6648
+ return n.push(...Zs(e, t)), n;
6657
6649
  }
6658
- function Qs(e) {
6650
+ function $s(e) {
6659
6651
  if (!e) return "";
6660
- let t = [], n = [], r = qs(e.font_sans), i = qs(e.font_mono);
6652
+ let t = [], n = [], r = Js(e.font_sans), i = Js(e.font_mono);
6661
6653
  r && n.push(`--font-sans: ${r}`), i && n.push(`--font-mono: ${i}`);
6662
- for (let t of Ws) {
6663
- let r = qs(e.typography?.[t]);
6664
- r && n.push(`${Ks(t)}: ${r}`);
6654
+ for (let t of Gs) {
6655
+ let r = Js(e.typography?.[t]);
6656
+ r && n.push(`${qs(t)}: ${r}`);
6665
6657
  }
6666
6658
  n.length && t.push(`:root { ${n.join("; ")}; }`);
6667
- for (let n of Us) {
6659
+ for (let n of Ws) {
6668
6660
  let r = e.colors?.[n];
6669
6661
  if (!r) continue;
6670
- let i = Zs(n, r);
6662
+ let i = Qs(n, r);
6671
6663
  i.length && t.push(`html[data-color-scheme="${n}"] { ${i.join("; ")}; }`);
6672
6664
  }
6673
6665
  return t.join("\n");
6674
6666
  }
6675
- var $s = "declarion-brand-tokens", ec = "consumer-brand-css";
6676
- function tc(e) {
6667
+ var ec = "declarion-brand-tokens", tc = "consumer-brand-css";
6668
+ function nc(e) {
6677
6669
  if (typeof document > "u") return;
6678
- let t = document.head, n = document.getElementById($s);
6670
+ let t = document.head, n = document.getElementById(ec);
6679
6671
  if (!e) {
6680
6672
  n?.remove();
6681
6673
  return;
6682
6674
  }
6683
6675
  let r = n ?? document.createElement("style");
6684
- n || (r.id = $s, t.appendChild(r)), r.textContent !== e && (r.textContent = e);
6685
- let i = document.getElementById(ec);
6676
+ n || (r.id = ec, t.appendChild(r)), r.textContent !== e && (r.textContent = e);
6677
+ let i = document.getElementById(tc);
6686
6678
  i && i.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING && t.appendChild(i);
6687
6679
  }
6688
- Vs("Profile", es), Vs("TenantParameters", ds);
6689
- var nc = "declarion-managed-favicon", rc = new Fi({ defaultOptions: { queries: {
6680
+ Hs("Profile", ts), Hs("TenantParameters", fs);
6681
+ var rc = "declarion-managed-favicon", ic = new Ii({ defaultOptions: { queries: {
6690
6682
  staleTime: 3e5,
6691
6683
  retry: 1
6692
6684
  } } });
6693
- lr(rc, gr);
6694
- function ic(e) {
6685
+ ur(ic, _r);
6686
+ function ac(e) {
6695
6687
  if (typeof window > "u") return null;
6696
6688
  try {
6697
6689
  let t = new URL(e, window.location.origin);
@@ -6700,7 +6692,7 @@ function ic(e) {
6700
6692
  return null;
6701
6693
  }
6702
6694
  }
6703
- function ac() {
6695
+ function oc() {
6704
6696
  let { data: e } = L();
6705
6697
  return {
6706
6698
  routes: K(() => {
@@ -6714,7 +6706,7 @@ function ac() {
6714
6706
  path: r.route,
6715
6707
  element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6716
6708
  code: n,
6717
- children: /* @__PURE__ */ Z(As, { screenCode: n })
6709
+ children: /* @__PURE__ */ Z(js, { screenCode: n })
6718
6710
  }) })
6719
6711
  }, n));
6720
6712
  continue;
@@ -6724,7 +6716,7 @@ function ac() {
6724
6716
  path: r.route,
6725
6717
  element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6726
6718
  code: n,
6727
- children: /* @__PURE__ */ Z(Ms, { screenCode: n })
6719
+ children: /* @__PURE__ */ Z(Ns, { screenCode: n })
6728
6720
  }) })
6729
6721
  }, n));
6730
6722
  continue;
@@ -6734,13 +6726,13 @@ function ac() {
6734
6726
  path: r.route,
6735
6727
  element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
6736
6728
  code: n,
6737
- children: /* @__PURE__ */ Z(Ps, { screenCode: n })
6729
+ children: /* @__PURE__ */ Z(Fs, { screenCode: n })
6738
6730
  }) })
6739
6731
  }, n));
6740
6732
  continue;
6741
6733
  }
6742
6734
  if (r.type === "custom") {
6743
- let e = r.component ? Hs(r.component) : void 0;
6735
+ let e = r.component ? Us(r.component) : void 0;
6744
6736
  e && t.push(/* @__PURE__ */ Z(Y, {
6745
6737
  path: r.route,
6746
6738
  element: /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ye, {
@@ -6752,11 +6744,11 @@ function ac() {
6752
6744
  }
6753
6745
  return t;
6754
6746
  }, [e]),
6755
- defaultRoute: K(() => po(e), [e])
6747
+ defaultRoute: K(() => mo(e), [e])
6756
6748
  };
6757
6749
  }
6758
- function oc() {
6759
- let t = R((e) => e.initialize), n = R((e) => e.isLoading), r = R((e) => e.isAuthenticated), { data: i, isError: a } = L(), { data: o, isLoading: s } = g(), { branding: c, isLoading: l } = Bt(), { routes: u, defaultRoute: d } = ac(), f = Gt(), p = typeof window < "u" && window.self !== window.top && !f.enabled;
6750
+ function sc() {
6751
+ let t = R((e) => e.initialize), n = R((e) => e.isLoading), r = R((e) => e.isAuthenticated), { data: i, isError: a } = L(), { data: o, isLoading: s } = g(), { branding: c, isLoading: l } = Bt(), { routes: u, defaultRoute: d } = oc(), f = Gt(), p = typeof window < "u" && window.self !== window.top && !f.enabled;
6760
6752
  G(() => {
6761
6753
  f.enabled || p || t();
6762
6754
  }, [
@@ -6768,7 +6760,7 @@ function oc() {
6768
6760
  G(() => {
6769
6761
  e(m ?? {});
6770
6762
  }, [m]), G(() => {
6771
- zs();
6763
+ Bs();
6772
6764
  }, []);
6773
6765
  let h = c?.identity, _ = c?.theme;
6774
6766
  G(() => {
@@ -6777,7 +6769,7 @@ function oc() {
6777
6769
  e && (document.title = e);
6778
6770
  }, [h?.app_name]), G(() => {
6779
6771
  if (typeof document > "u") return;
6780
- let e = h?.app_logo, t = Nt(e) ? ic(e.trim()) : null, n = document.getElementById(nc);
6772
+ let e = h?.app_logo, t = Nt(e) ? ac(e.trim()) : null, n = document.getElementById(rc);
6781
6773
  if (!t) {
6782
6774
  n && n.remove();
6783
6775
  return;
@@ -6785,22 +6777,22 @@ function oc() {
6785
6777
  if (!n) {
6786
6778
  document.querySelectorAll("link[rel=\"icon\"], link[rel=\"shortcut icon\"]").forEach((e) => e.remove());
6787
6779
  let e = document.createElement("link");
6788
- e.id = nc, e.rel = "icon", e.href = t, document.head.appendChild(e);
6780
+ e.id = rc, e.rel = "icon", e.href = t, document.head.appendChild(e);
6789
6781
  return;
6790
6782
  }
6791
6783
  n.href !== t && (n.href = t);
6792
6784
  }, [h?.app_logo]);
6793
- let v = _?.css_url ?? null, y = K(() => Qs(_), [_]);
6785
+ let v = _?.css_url ?? null, y = K(() => $s(_), [_]);
6794
6786
  G(() => {
6795
- tc(y);
6787
+ nc(y);
6796
6788
  }, [y]), G(() => {
6797
6789
  if (typeof document > "u") return;
6798
- let e = document.getElementById(ec);
6790
+ let e = document.getElementById(tc);
6799
6791
  if (!v) {
6800
6792
  e && e.remove();
6801
6793
  return;
6802
6794
  }
6803
- let t = ic(v);
6795
+ let t = ac(v);
6804
6796
  if (!t) {
6805
6797
  e && e.remove(), console.error(`[declarion] branding.theme.css_url rejected: ${v}. Only same-origin, relative URLs are allowed (e.g. /modules/crm/public/brand.css).`);
6806
6798
  return;
@@ -6808,7 +6800,7 @@ function oc() {
6808
6800
  if (e && e.href === t) return;
6809
6801
  e && e.remove();
6810
6802
  let n = document.createElement("link");
6811
- n.id = ec, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
6803
+ n.id = tc, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
6812
6804
  }, [v]);
6813
6805
  let b = f.enabled && !r;
6814
6806
  return p || b || n || s && !o || l || !i && (r || !a) ? /* @__PURE__ */ Z("div", {
@@ -6817,43 +6809,43 @@ function oc() {
6817
6809
  minHeight: "var(--app-height)",
6818
6810
  background: "var(--background)"
6819
6811
  }
6820
- }) : /* @__PURE__ */ Q(Ei, { children: [
6812
+ }) : /* @__PURE__ */ Q(Di, { children: [
6821
6813
  /* @__PURE__ */ Z(Y, {
6822
6814
  path: "/login",
6823
- element: /* @__PURE__ */ Z(So, {})
6815
+ element: /* @__PURE__ */ Z(Co, {})
6824
6816
  }),
6825
6817
  /* @__PURE__ */ Z(Y, {
6826
6818
  path: "/login/sso-callback",
6827
- element: /* @__PURE__ */ Z(Fo, {})
6819
+ element: /* @__PURE__ */ Z(Io, {})
6828
6820
  }),
6829
6821
  /* @__PURE__ */ Z(Y, {
6830
6822
  path: "/signup",
6831
- element: /* @__PURE__ */ Z(wo, {})
6823
+ element: /* @__PURE__ */ Z(To, {})
6832
6824
  }),
6833
6825
  /* @__PURE__ */ Z(Y, {
6834
6826
  path: "/forgot",
6835
- element: /* @__PURE__ */ Z(Eo, {})
6827
+ element: /* @__PURE__ */ Z(Do, {})
6836
6828
  }),
6837
6829
  /* @__PURE__ */ Z(Y, {
6838
6830
  path: "/reset",
6839
- element: /* @__PURE__ */ Z(No, {})
6831
+ element: /* @__PURE__ */ Z(Po, {})
6840
6832
  }),
6841
6833
  /* @__PURE__ */ Z(Y, {
6842
6834
  path: "/2fa",
6843
- element: /* @__PURE__ */ Z(Po, {})
6835
+ element: /* @__PURE__ */ Z(Fo, {})
6844
6836
  }),
6845
6837
  /* @__PURE__ */ Q(Y, {
6846
- element: /* @__PURE__ */ Z(Ja, {}),
6838
+ element: /* @__PURE__ */ Z(Ya, {}),
6847
6839
  children: [
6848
6840
  d && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Y, {
6849
6841
  index: !0,
6850
- element: /* @__PURE__ */ Z(wi, {
6842
+ element: /* @__PURE__ */ Z(Ti, {
6851
6843
  to: d,
6852
6844
  replace: !0
6853
6845
  })
6854
6846
  }), /* @__PURE__ */ Z(Y, {
6855
6847
  path: "/admin",
6856
- element: /* @__PURE__ */ Z(wi, {
6848
+ element: /* @__PURE__ */ Z(Ti, {
6857
6849
  to: d,
6858
6850
  replace: !0
6859
6851
  })
@@ -6861,27 +6853,27 @@ function oc() {
6861
6853
  u,
6862
6854
  /* @__PURE__ */ Z(Y, {
6863
6855
  path: "/preferences",
6864
- element: /* @__PURE__ */ Z(ys, {})
6856
+ element: /* @__PURE__ */ Z(bs, {})
6865
6857
  }),
6866
6858
  /* @__PURE__ */ Z(Y, {
6867
6859
  path: "/admin/catalog",
6868
- element: /* @__PURE__ */ Z(Cs, {})
6860
+ element: /* @__PURE__ */ Z(ws, {})
6869
6861
  }),
6870
6862
  /* @__PURE__ */ Z(Y, {
6871
6863
  path: "*",
6872
- element: /* @__PURE__ */ Z(Io, {})
6864
+ element: /* @__PURE__ */ Z(Lo, {})
6873
6865
  })
6874
6866
  ]
6875
6867
  })
6876
6868
  ] });
6877
6869
  }
6878
- function sc() {
6879
- Fs();
6870
+ function cc() {
6871
+ Is();
6880
6872
  let e = U((e) => e.toastPosition);
6881
- return /* @__PURE__ */ Q(Si, { children: [
6882
- /* @__PURE__ */ Z(ea, {}),
6883
- /* @__PURE__ */ Z(oc, {}),
6884
- /* @__PURE__ */ Z(Bi, {
6873
+ return /* @__PURE__ */ Q(Ci, { children: [
6874
+ /* @__PURE__ */ Z(ta, {}),
6875
+ /* @__PURE__ */ Z(sc, {}),
6876
+ /* @__PURE__ */ Z(Vi, {
6885
6877
  position: e,
6886
6878
  toastOptions: { unstyled: !0 },
6887
6879
  expand: !0,
@@ -6891,7 +6883,7 @@ function sc() {
6891
6883
  })
6892
6884
  ] });
6893
6885
  }
6894
- function cc({ children: e }) {
6886
+ function lc({ children: e }) {
6895
6887
  let t = Mt(), n = Ft();
6896
6888
  return /* @__PURE__ */ Z(he, {
6897
6889
  viewport: t,
@@ -6899,20 +6891,20 @@ function cc({ children: e }) {
6899
6891
  children: e
6900
6892
  });
6901
6893
  }
6902
- function lc() {
6903
- return /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Ii, {
6904
- client: rc,
6905
- children: /* @__PURE__ */ Z(Kt, { children: /* @__PURE__ */ Z(cc, { children: /* @__PURE__ */ Z(sc, {}) }) })
6894
+ function uc() {
6895
+ return /* @__PURE__ */ Z(Mn, { children: /* @__PURE__ */ Z(Li, {
6896
+ client: ic,
6897
+ children: /* @__PURE__ */ Z(Kt, { children: /* @__PURE__ */ Z(lc, { children: /* @__PURE__ */ Z(cc, {}) }) })
6906
6898
  }) });
6907
6899
  }
6908
6900
  //#endregion
6909
6901
  //#region src/api/batch.ts
6910
- var uc = class {
6902
+ var dc = class {
6911
6903
  ops = [];
6912
6904
  call(e, t) {
6913
6905
  return this.ops.push({
6914
6906
  action: e,
6915
- params: dc(t)
6907
+ params: fc(t)
6916
6908
  }), this;
6917
6909
  }
6918
6910
  upsert(e, t, n = "upsert", r = []) {
@@ -6934,14 +6926,14 @@ var uc = class {
6934
6926
  return this.ops;
6935
6927
  }
6936
6928
  };
6937
- function dc(e) {
6929
+ function fc(e) {
6938
6930
  return e == null ? null : typeof e == "object" && !Array.isArray(e) ? e : { value: e };
6939
6931
  }
6940
6932
  //#endregion
6941
6933
  //#region src/hooks/useAllEntityData.ts
6942
- var fc = 1e3, pc = 20;
6943
- function mc(e, t = {}) {
6944
- return Ri({
6934
+ var pc = 1e3, mc = 20;
6935
+ function hc(e, t = {}) {
6936
+ return zi({
6945
6937
  queryKey: [
6946
6938
  "entity-data-all",
6947
6939
  e,
@@ -6951,11 +6943,11 @@ function mc(e, t = {}) {
6951
6943
  queryFn: async ({ signal: n }) => {
6952
6944
  let r = {
6953
6945
  ...t,
6954
- per_page: fc,
6946
+ per_page: pc,
6955
6947
  count: "with"
6956
6948
  }, i;
6957
6949
  try {
6958
- i = await Jn(e, {
6950
+ i = await Yn(e, {
6959
6951
  ...r,
6960
6952
  page: 1
6961
6953
  }, { signal: n });
@@ -6964,8 +6956,8 @@ function mc(e, t = {}) {
6964
6956
  }
6965
6957
  let a = i.meta.total_pages ?? 1;
6966
6958
  if (a <= 1) return i;
6967
- if (a > pc) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${pc}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
6968
- let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => Jn(e, {
6959
+ if (a > mc) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${mc}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
6960
+ let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => Yn(e, {
6969
6961
  ...r,
6970
6962
  page: i + 2
6971
6963
  }, { signal: n }))), s = new Ce();
@@ -6987,7 +6979,7 @@ function mc(e, t = {}) {
6987
6979
  }
6988
6980
  //#endregion
6989
6981
  //#region src/hooks/useLiveObject.ts
6990
- function hc(e, t) {
6982
+ function gc(e, t) {
6991
6983
  let n = kn(e, t), { data: r } = L(), i = n.data?.data ? Be(n.data.data) : void 0, a = _e(e ? r?.entities?.[e]?.realtime : void 0, e ?? ""), o = e ? a : !1;
6992
6984
  return {
6993
6985
  ...n,
@@ -6998,8 +6990,8 @@ function hc(e, t) {
6998
6990
  }
6999
6991
  //#endregion
7000
6992
  //#region src/hooks/useColumns.ts
7001
- function gc(e, t) {
7002
- let [n, r] = Pi(), i = K(() => {
6993
+ function _c(e, t) {
6994
+ let [n, r] = Fi(), i = K(() => {
7003
6995
  let r = n.get("columns");
7004
6996
  return r ? r.split(",").filter(Boolean).filter((t) => e.includes(t)) : t.length > 0 ? t : e;
7005
6997
  }, [
@@ -7008,7 +7000,7 @@ function gc(e, t) {
7008
7000
  t
7009
7001
  ]), a = W((e) => {
7010
7002
  let i = new URLSearchParams(n);
7011
- e.length === 0 || _c(e, t) ? i.delete("columns") : i.set("columns", e.join(",")), r(i);
7003
+ e.length === 0 || vc(e, t) ? i.delete("columns") : i.set("columns", e.join(",")), r(i);
7012
7004
  }, [
7013
7005
  n,
7014
7006
  r,
@@ -7034,19 +7026,19 @@ function gc(e, t) {
7034
7026
  }, [i, a])
7035
7027
  };
7036
7028
  }
7037
- function _c(e, t) {
7029
+ function vc(e, t) {
7038
7030
  return e.length === t.length && e.every((e, n) => e === t[n]);
7039
7031
  }
7040
7032
  //#endregion
7041
7033
  //#region src/hooks/useScreenTab.ts
7042
- function vc(e) {
7043
- let t = Oi(), [n] = Pi(), r = e?.route ?? t.pathname, i = q(n.toString());
7044
- ei(r, e?.title ?? r, e?.icon, i.current), ni(r);
7034
+ function yc(e) {
7035
+ let t = ki(), [n] = Fi(), r = e?.route ?? t.pathname, i = q(n.toString());
7036
+ ti(r, e?.title ?? r, e?.icon, i.current), ri(r);
7045
7037
  }
7046
7038
  //#endregion
7047
7039
  //#region src/components/actions/ObjectActionBar.tsx
7048
- function yc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o }) {
7049
- let s = z(), c = z("errors"), { data: l } = L(), { run: u, isRunning: d } = je(), f = a(), p = ir(), m = Oi(), h = l?.entities?.[e], g = K(() => xc(l, e, r, m.pathname), [
7040
+ function bc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o }) {
7041
+ let s = z(), c = z("errors"), { data: l } = L(), { run: u, isRunning: d } = je(), f = a(), p = ar(), m = ki(), h = l?.entities?.[e], g = K(() => Sc(l, e, r, m.pathname), [
7050
7042
  l,
7051
7043
  e,
7052
7044
  r,
@@ -7055,8 +7047,8 @@ function yc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o
7055
7047
  return {
7056
7048
  nodes: K(() => {
7057
7049
  if (!h || !t) return [];
7058
- let e = Cc(Ee(g?.action_layout, h.action_layout, h.actions, _, n), i);
7059
- return le(s, e, h.actions, _, t, [], Lr(h, t));
7050
+ let e = wc(Ee(g?.action_layout, h.action_layout, h.actions, _, n), i);
7051
+ return le(s, e, h.actions, _, t, [], Rr(h, t));
7060
7052
  }, [
7061
7053
  s,
7062
7054
  g?.action_layout,
@@ -7068,14 +7060,14 @@ function yc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o
7068
7060
  ]),
7069
7061
  run: (n, r) => {
7070
7062
  if (!h || !t) return;
7071
- let i = Vr(c, n, r, { row: t }, e);
7063
+ let i = Hr(c, n, r, { row: t }, e);
7072
7064
  if (i === null) return;
7073
7065
  let a = Ze(t, h), l = a ? [a] : [], d = n === "__delete" && v ? v.route : null;
7074
7066
  return u({
7075
7067
  action: r,
7076
7068
  title: s(r.display?.name) || n,
7077
7069
  row: t,
7078
- execute: (e) => Xn(i, Gn(e, l)),
7070
+ execute: (e) => Zn(i, Kn(e, l)),
7079
7071
  onSuccess: (e) => {
7080
7072
  d && f(d, { replace: !0 }), o?.(n, e);
7081
7073
  }
@@ -7098,7 +7090,7 @@ function yc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o
7098
7090
  icon: t?.icon,
7099
7091
  search: t?.search
7100
7092
  }),
7101
- runActionApi: (e, t) => Xn(e, t)
7093
+ runActionApi: (e, t) => Zn(e, t)
7102
7094
  };
7103
7095
  }, [
7104
7096
  h,
@@ -7110,8 +7102,8 @@ function yc({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: o
7110
7102
  ])
7111
7103
  };
7112
7104
  }
7113
- function bc({ entity: e, object: t, slot: n, screen: r, select: i, extraActions: a, onAfterRun: o }) {
7114
- let { data: s } = L(), { nodes: c, run: l, widgetContext: u } = yc({
7105
+ function xc({ entity: e, object: t, slot: n, screen: r, select: i, extraActions: a, onAfterRun: o }) {
7106
+ let { data: s } = L(), { nodes: c, run: l, widgetContext: u } = bc({
7115
7107
  entity: e,
7116
7108
  object: t,
7117
7109
  slot: n,
@@ -7121,7 +7113,7 @@ function bc({ entity: e, object: t, slot: n, screen: r, select: i, extraActions:
7121
7113
  }), d = s?.entities?.[e];
7122
7114
  return c.length === 0 && !a ? null : /* @__PURE__ */ Q("span", {
7123
7115
  style: { display: "contents" },
7124
- children: [c.length > 0 && /* @__PURE__ */ Z(Mr, {
7116
+ children: [c.length > 0 && /* @__PURE__ */ Z(Nr, {
7125
7117
  layout: c,
7126
7118
  row: t,
7127
7119
  onRun: l,
@@ -7133,24 +7125,24 @@ function bc({ entity: e, object: t, slot: n, screen: r, select: i, extraActions:
7133
7125
  }), a]
7134
7126
  });
7135
7127
  }
7136
- function xc(e, t, n, r) {
7128
+ function Sc(e, t, n, r) {
7137
7129
  if (!e?.screens) return;
7138
7130
  if (n) return e.screens[n];
7139
7131
  let i = r.replace(/\/+$/, "") || "/";
7140
- return Object.values(e.screens).find((e) => e.entity !== t || !e.route ? !1 : Sc(e.route).test(i));
7132
+ return Object.values(e.screens).find((e) => e.entity !== t || !e.route ? !1 : Cc(e.route).test(i));
7141
7133
  }
7142
- function Sc(e) {
7134
+ function Cc(e) {
7143
7135
  let t = (e.replace(/\/+$/, "") || "/").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
7144
7136
  return RegExp(`^${t.join("/")}$`);
7145
7137
  }
7146
- function Cc(e, t) {
7138
+ function wc(e, t) {
7147
7139
  if (!t) return e;
7148
7140
  let n = t.include ? new Set(t.include) : null, r = t.exclude ? new Set(t.exclude) : null;
7149
- return e.map((e) => wc(e, n, r)).filter((e) => e !== null);
7141
+ return e.map((e) => Tc(e, n, r)).filter((e) => e !== null);
7150
7142
  }
7151
- function wc(e, t, n) {
7143
+ function Tc(e, t, n) {
7152
7144
  if (e.kind === "action") return t && !t.has(e.code) || n?.has(e.code) ? null : e;
7153
- let r = e.items.map((e) => wc(e, t, n)).filter((e) => e !== null);
7145
+ let r = e.items.map((e) => Tc(e, t, n)).filter((e) => e !== null);
7154
7146
  return r.length > 0 ? {
7155
7147
  ...e,
7156
7148
  items: r
@@ -7158,7 +7150,7 @@ function wc(e, t, n) {
7158
7150
  }
7159
7151
  //#endregion
7160
7152
  //#region src/components/list/InlineEditCell.tsx
7161
- var Tc = {
7153
+ var Ec = {
7162
7154
  padding: "4px 6px",
7163
7155
  margin: "-4px -6px",
7164
7156
  borderRadius: 4,
@@ -7169,7 +7161,7 @@ var Tc = {
7169
7161
  alignItems: "center",
7170
7162
  gap: 4
7171
7163
  };
7172
- function Ec({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "always", label: o, placeholder: s }) {
7164
+ function Dc({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "always", label: o, placeholder: s }) {
7173
7165
  let c = z(), l = z("errors"), [u, d] = J(e), [f, p] = J(e), [m, h] = J(!1), [g, _] = J(e), v = q(null);
7174
7166
  G(() => {
7175
7167
  d(e), p(e), _(e);
@@ -7246,7 +7238,7 @@ function Ec({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
7246
7238
  onMouseLeave: (e) => {
7247
7239
  e.currentTarget.style.borderColor = "transparent";
7248
7240
  },
7249
- style: Tc,
7241
+ style: Ec,
7250
7242
  children: f ?? /* @__PURE__ */ Z("span", {
7251
7243
  style: { color: "var(--text-4)" },
7252
7244
  children: c("list.cell.click_to_edit", "Click to edit")
@@ -7255,8 +7247,8 @@ function Ec({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
7255
7247
  }
7256
7248
  //#endregion
7257
7249
  //#region src/components/layout/ImpersonationStartModal.tsx
7258
- function Dc({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarted: i }) {
7259
- let a = z(), { start: o, isStarting: s } = ba(), { value: c } = ce("impersonation.require_reason_min_length", 10), [l, u] = J(""), [d, f] = J("");
7250
+ function Oc({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarted: i }) {
7251
+ let a = z(), { start: o, isStarting: s } = xa(), { value: c } = ce("impersonation.require_reason_min_length", 10), [l, u] = J(""), [d, f] = J("");
7260
7252
  if (!e) return null;
7261
7253
  let p = l.trim(), m = p.length >= c;
7262
7254
  return /* @__PURE__ */ Z("div", {
@@ -7407,7 +7399,7 @@ function Dc({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarte
7407
7399
  }
7408
7400
  //#endregion
7409
7401
  //#region src/components/agents/AgentConversationDrawer.tsx
7410
- function Oc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, onNew: o, onRefresh: s }) {
7402
+ function kc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, onNew: o, onRefresh: s }) {
7411
7403
  let c = z(), l = c(at("agent_conversation")?.display?.name_plural) || "agent_conversation";
7412
7404
  return G(() => {
7413
7405
  e && s();
@@ -7458,4 +7450,4 @@ function Oc({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
7458
7450
  }) : null;
7459
7451
  }
7460
7452
  //#endregion
7461
- export { rt as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, qn as ActionBatchError, We as ActionRunnerProvider, Ka as AgentChatPanel, Oc as AgentConversationDrawer, si as AgentElicitForm, ci as AgentPicker, lc as App, lc as Declarion, co as AuthShell, Ct as Avatar, uc as Batch, Me as BoolToggle, Vi as BrandGlyph, ka as Breadcrumbs, k as Btn, un as CURSOR_LANGUAGE_CHANGED, xn as CURSOR_SEMANTICS_MISMATCH, zo as ChangePasswordDialog, Wn as Check, w as Chip, kr as CircleImage, Nn as ClassifiedFieldLocked, bt as ColumnPicker, Wa as CommandPalette, ct as ConfirmDialog, Ye as CurrentScreenProvider, qe as DEFAULT_RESPONSIVE_BREAKPOINTS, M as DateInput, ee as Dropdown, r as DynamicIcon, St as EmptyState, Qe as EntityClient, h as FieldLabel, He as FileDraftScope, ut as FilterChips, ht as FilterDrawer, Eo as Forgot, E as HoverCard, n as Icon, S as IconBtn, La as ImpersonationBanner, Ra as ImpersonationFrame, Dc as ImpersonationStartModal, At as InfoTooltip, Ec as InlineEditCell, x as JsonField, p as Kbd, _n as MANDATORY_LANGUAGE, C as MULTIPLE_VALUES, I as MenuItem, Ue as MultiSelect, Jr as NO_VALUE_OPS, Qr as OP_LABELS, bc as ObjectActionBar, Ht as OrderedMap, dr as PAGE_STATE_TTL_PARAM, ms as PageHeader, b as PasswordInput, v as Pill, ys as Preferences, es as Profile, T as PropertyGridEditor, mt as QEField, fe as QuickEditCell, lt as QuickPeek, Ki as Rail, Bn as RecordIdBadge, Ce as RefCache, ye as RefCombobox, de as RefField, zt as RefreshControl, No as Reset, he as ResponsiveModeProvider, Ui as RowField, Pt as SCROLL_STATE_KEY, jn as SectionCard, pe as Select, ma as Sidebar, So as SignIn, wo as SignUp, Ms as SmartDetailPage, As as SmartListPage, Ps as SmartRecordListPage, ze as Spinner, Hr as SquareImage, Pa as TabStrip, te as TagsInput, Ea as TenantChip, i as TextArea, N as TextInput, kt as Tooltip, Ma as TopBar, Po as TwoFA, Ie as UploadError, Xe as ViewField, _t as ViewSwitcher, Pr as WideBanner, s as actionDataQueryKey, fi as answerQuestion, hi as approveInvocation, Gn as buildActionBody, $e as buildDetailHrefFromId, we as buildEntityDetailHref, f as buildMassEditTargets, Oe as buildRowDetailHref, ha as buildSections, li as cancelConversation, ri as cancelInvocation, $n as canonicalUrl, Sr as classificationTier, Ne as coerceDisplayString, Ir as commonVariantActionCodes, ti as countActiveFilters, pi as createConversation, tt as cursorActionDataQueryKey, Ke as cursorEntityDataQueryKey, be as cursorEntityStableKey, Yn as deleteObject, D as detectCommonValue, et as discardFile, zr as effectiveScreenForRecord, De as entityClient, nt as entityDataQueryKey, Ta as envTone, Br as evaluateFilterTree, Xn as executeAction, ke as extractPkValues, V as failureTitle, _r as fieldAccessInfo, br as fieldClassification, me as fieldDisplayName, hr as fieldRequiredPermission, Te as formatBytes, xt as formatCount, gt as formatEstimatedCount, yt as formatExactCount, Ur as getFileWidget, t as getIcon, Wr as getImageCropper, Rn as getLayoutWidget, ot as getPrimaryKeyFields, Or as hasFileWidget, Pn as hasLayoutWidget, Yr as hasOrGroups, mn as isCursorStaleError, ur as isFieldReadable, vr as isFieldSoDProtected, xr as isFieldWritable, gi as listAvailableAgents, ii as listConversations, ui as loadConversationInvocations, vi as loadConversationTurns, ai as loadHistory, bn as makeTextFn, Ln as objectQueryKey, Xr as parseFilterURLState, $r as parseFiltersFromURL, _ as parseTargetFilter, cn as pickLocalized, ve as pkValuePartsToId, it as pkValuesFromId, re as pkValuesToDetailId, c as pkValuesToId, Sn as pluralText, Dr as registerFileWidget, In as registerLayoutWidget, Vs as registerScreen, oi as rejectInvocation, gn as reresolveLanguage, ae as resolveDetailRoute, Fr as resolveEntityVariantCode, Ar as resolveScreenVariantCode, xe as resolveViewportCategory, Kn as restoreObject, mi as sendElicitResponse, di as sendMessage, Zr as setFiltersInURL, e as setIconRegistry, jr as setImageCropper, ln as textWithNodes, Le as uploadFile, ie as useActionData, je as useActionRunner, _i as useAgentConversation, mc as useAllEntityData, ya as useAuth, gc as useColumns, fr as useCreateObject, Re as useCurrentScreen, u as useCursorActionData, Fe as useCursorEntityData, j as useDebounce, yr as useDeleteObject, qr as useDeleteProperty, yn as useDeploymentLanguage, Je as useDraftRegistration, o as useEffectiveParam, at as useEntity, oe as useEntityCount, d as useEntityData, Se as useFileDraftScope, pt as useFilters, ba as useImpersonation, pn as useLanguage, hc as useLiveObject, Di as useLocation, ki as useNavigate, kn as useObject, yc as useObjectActions, dt as usePageState, wr as usePageStateTtl, ce as useParam, Mi as useParams, Lt as usePlainScrollRestoration, g as usePublicParams, Tr as useRegisterRetainedQuery, se as useResolvedParam, F as useResponsiveMode, jt as useSavedScrollOffset, L as useSchema, ft as useScreen, pr as useScreenBack, vc as useScreenTab, Ni as useSearchParams, Gr as useSetProperty, Kr as useSetStatus, ir as useTabNavigate, ni as useTabSearchMirror, H as useTabStore, z as useText, mr as useUpdateObject, vt as useViews, Tt as useVirtualScrollRestoration, Ae as validateClientSide, Lr as variantActionCodesForRecord };
7453
+ export { rt as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, Jn as ActionBatchError, We as ActionRunnerProvider, qa as AgentChatPanel, kc as AgentConversationDrawer, ci as AgentElicitForm, li as AgentPicker, uc as App, uc as Declarion, lo as AuthShell, Ct as Avatar, dc as Batch, Me as BoolToggle, Hi as BrandGlyph, Aa as Breadcrumbs, k as Btn, un as CURSOR_LANGUAGE_CHANGED, xn as CURSOR_SEMANTICS_MISMATCH, Bo as ChangePasswordDialog, Gn as Check, w as Chip, Ar as CircleImage, Nn as ClassifiedFieldLocked, bt as ColumnPicker, Ga as CommandPalette, ct as ConfirmDialog, Ye as CurrentScreenProvider, qe as DEFAULT_RESPONSIVE_BREAKPOINTS, M as DateInput, ee as Dropdown, r as DynamicIcon, St as EmptyState, Qe as EntityClient, h as FieldLabel, He as FileDraftScope, ut as FilterChips, ht as FilterDrawer, Do as Forgot, E as HoverCard, n as Icon, S as IconBtn, Ra as ImpersonationBanner, za as ImpersonationFrame, Oc as ImpersonationStartModal, At as InfoTooltip, Dc as InlineEditCell, x as JsonField, p as Kbd, _n as MANDATORY_LANGUAGE, C as MULTIPLE_VALUES, I as MenuItem, Ue as MultiSelect, Yr as NO_VALUE_OPS, $r as OP_LABELS, xc as ObjectActionBar, Ht as OrderedMap, fr as PAGE_STATE_TTL_PARAM, hs as PageHeader, b as PasswordInput, v as Pill, bs as Preferences, ts as Profile, T as PropertyGridEditor, mt as QEField, fe as QuickEditCell, lt as QuickPeek, qi as Rail, Bn as RecordIdBadge, Ce as RefCache, ye as RefCombobox, de as RefField, zt as RefreshControl, Po as Reset, he as ResponsiveModeProvider, Wi as RowField, Pt as SCROLL_STATE_KEY, jn as SectionCard, pe as Select, ha as Sidebar, Co as SignIn, To as SignUp, Ns as SmartDetailPage, js as SmartListPage, Fs as SmartRecordListPage, ze as Spinner, Ur as SquareImage, Fa as TabStrip, te as TagsInput, Da as TenantChip, i as TextArea, N as TextInput, kt as Tooltip, Na as TopBar, Fo as TwoFA, Ie as UploadError, Xe as ViewField, _t as ViewSwitcher, Fr as WideBanner, s as actionDataQueryKey, pi as answerQuestion, gi as approveInvocation, Kn as buildActionBody, $e as buildDetailHrefFromId, we as buildEntityDetailHref, f as buildMassEditTargets, Oe as buildRowDetailHref, ga as buildSections, ui as cancelConversation, ii as cancelInvocation, er as canonicalUrl, Cr as classificationTier, Ne as coerceDisplayString, Lr as commonVariantActionCodes, ni as countActiveFilters, mi as createConversation, tt as cursorActionDataQueryKey, Ke as cursorEntityDataQueryKey, be as cursorEntityStableKey, Xn as deleteObject, D as detectCommonValue, et as discardFile, Br as effectiveScreenForRecord, De as entityClient, nt as entityDataQueryKey, Ea as envTone, Vr as evaluateFilterTree, Zn as executeAction, ke as extractPkValues, V as failureTitle, vr as fieldAccessInfo, xr as fieldClassification, me as fieldDisplayName, gr as fieldRequiredPermission, Te as formatBytes, xt as formatCount, gt as formatEstimatedCount, yt as formatExactCount, Wr as getFileWidget, t as getIcon, Gr as getImageCropper, Rn as getLayoutWidget, ot as getPrimaryKeyFields, kr as hasFileWidget, Pn as hasLayoutWidget, Xr as hasOrGroups, mn as isCursorStaleError, dr as isFieldReadable, yr as isFieldSoDProtected, Sr as isFieldWritable, _i as listAvailableAgents, ai as listConversations, di as loadConversationInvocations, yi as loadConversationTurns, oi as loadHistory, bn as makeTextFn, Ln as objectQueryKey, Zr as parseFilterURLState, ei as parseFiltersFromURL, _ as parseTargetFilter, cn as pickLocalized, ve as pkValuePartsToId, it as pkValuesFromId, re as pkValuesToDetailId, c as pkValuesToId, Sn as pluralText, Or as registerFileWidget, In as registerLayoutWidget, Hs as registerScreen, si as rejectInvocation, gn as reresolveLanguage, ae as resolveDetailRoute, Ir as resolveEntityVariantCode, jr as resolveScreenVariantCode, xe as resolveViewportCategory, qn as restoreObject, hi as sendElicitResponse, fi as sendMessage, Qr as setFiltersInURL, e as setIconRegistry, Mr as setImageCropper, ln as textWithNodes, Le as uploadFile, ie as useActionData, je as useActionRunner, vi as useAgentConversation, hc as useAllEntityData, ba as useAuth, _c as useColumns, pr as useCreateObject, Re as useCurrentScreen, u as useCursorActionData, Fe as useCursorEntityData, j as useDebounce, br as useDeleteObject, Jr as useDeleteProperty, yn as useDeploymentLanguage, Je as useDraftRegistration, o as useEffectiveParam, at as useEntity, oe as useEntityCount, d as useEntityData, Se as useFileDraftScope, pt as useFilters, xa as useImpersonation, pn as useLanguage, gc as useLiveObject, Oi as useLocation, Ai as useNavigate, kn as useObject, bc as useObjectActions, dt as usePageState, Tr as usePageStateTtl, ce as useParam, Ni as useParams, Lt as usePlainScrollRestoration, g as usePublicParams, Er as useRegisterRetainedQuery, se as useResolvedParam, F as useResponsiveMode, jt as useSavedScrollOffset, L as useSchema, ft as useScreen, mr as useScreenBack, yc as useScreenTab, Pi as useSearchParams, Kr as useSetProperty, qr as useSetStatus, ar as useTabNavigate, ri as useTabSearchMirror, H as useTabStore, z as useText, hr as useUpdateObject, vt as useViews, Tt as useVirtualScrollRestoration, Ae as validateClientSide, Rr as variantActionCodesForRecord };