@declarion/react 0.36.6 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as e, r as t, s as n, t as r } from "./DynamicIcon-BWO6QtNF.js";
2
- import { $ as i, $t as a, A as o, An as s, At as c, Bn as l, Bt as u, C as d, Cn as f, Ct as p, Dn as m, Dt as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, H as C, Hn as w, Ht as T, In as E, It as D, J as ee, Jt as te, Kn as O, Kt as ne, Ln as re, Lt as ie, M as k, Mn as ae, Mt as oe, N as se, Nn as ce, Nt as le, On as ue, Ot as A, P as de, Pn as j, Pt as M, Q as N, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, St as _e, T as ve, Tn as ye, Tt as be, U as P, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as F, Wt as De, X as Oe, Xt as ke, Y as Ae, Yt as je, Zt as Me, _ as Ne, _n as Pe, _t as I, an as Fe, b as Ie, bn as L, bt as R, c as Le, cn as Re, ct as ze, d as Be, dn as Ve, dt as He, et as Ue, fn as We, g as Ge, gn as Ke, gt as qe, h as Je, ht as Ye, i as z, in as Xe, it as Ze, j as Qe, jn as $e, kn as et, kt as B, l as tt, ln as nt, lt as rt, mn as it, n as at, nn as ot, nt as st, on as ct, ot as lt, pn as ut, qt as dt, r as ft, rn as pt, rt as mt, s as ht, sn as gt, st as V, t as _t, tn as vt, tt as yt, u as bt, un as H, v as xt, vt as St, w as Ct, wn as wt, wt as Tt, x as Et, xn as Dt, xt as Ot, y as kt, yt as At, zn as U, zt as jt } from "./useCurrentScreen-Bgp6_vne.js";
3
- import { A as Mt, C as Nt, D as Pt, E as Ft, F as It, I as Lt, M as Rt, N as zt, O as Bt, P as Vt, S as Ht, T as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, f as Yt, g as Xt, h as Zt, j as Qt, k as $t, l as en, m as tn, n as nn, o as rn, p as an, r as on, s as sn, t as cn, u as ln, v as un, w as dn, x as fn, y as pn } from "./RefreshControl-Bpd9kw0G.js";
4
- import { $ as mn, A as hn, B as gn, C as _n, D as vn, E as yn, F as W, G as bn, H as xn, I as Sn, K as Cn, L as wn, M as Tn, N as En, O as Dn, P as On, R as kn, S as An, St as jn, T as Mn, U as Nn, V as Pn, X as Fn, Z as In, _ as Ln, _t as Rn, a as zn, at as Bn, b as Vn, bt as G, c as Hn, ct as Un, d as Wn, dt as Gn, et as Kn, f as qn, ft as Jn, g as Yn, gt as Xn, h as Zn, ht as Qn, i as $n, it as er, j as tr, l as nr, lt as rr, m as ir, mt as ar, n as or, nt as sr, o as cr, ot as lr, p as ur, q as dr, r as fr, rt as pr, s as mr, st as hr, t as gr, tt as _r, u as vr, ut as yr, v as br, vt as xr, x as Sr, xt as Cr, y as wr, yt as Tr, z as Er } from "./registry-C2vvLLHm.js";
5
- import { C as Dr, S as Or, _ as kr, a as Ar, b as jr, c as Mr, d as Nr, f as Pr, g as Fr, h as Ir, i as Lr, l as Rr, m as zr, n as Br, o as Vr, p as Hr, r as Ur, t as Wr, u as Gr, v as Kr, x as qr, y as Jr } from "./useProperties-zGgDTk9K.js";
2
+ import { $ as i, $t as a, A as o, An as s, At as c, Bn as l, Bt as u, C as d, Cn as f, Ct as p, Dn as m, Dt as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, H as C, Hn as w, Ht as T, In as E, It as D, J as ee, Jt as te, Kn as O, Kt as ne, Ln as re, Lt as k, M as ie, Mn as ae, Mt as oe, N as se, Nn as ce, Nt as le, On as ue, Ot as A, P as de, Pn as j, Pt as M, Q as N, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, St as _e, T as ve, Tn as ye, Tt as be, U as P, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as F, Wt as De, X as Oe, Xt as ke, Y as Ae, Yt as je, Zt as Me, _ as Ne, _n as Pe, _t as I, an as Fe, b as Ie, bn as L, bt as R, c as Le, cn as Re, ct as ze, d as Be, dn as Ve, dt as He, et as Ue, fn as We, g as Ge, gn as Ke, gt as qe, h as Je, ht as Ye, i as z, in as Xe, it as Ze, j as Qe, jn as $e, kn as et, kt as B, l as tt, ln as nt, lt as rt, mn as it, n as at, nn as ot, nt as st, on as ct, ot as lt, pn as ut, qt as dt, r as ft, rn as pt, rt as mt, s as ht, sn as gt, st as V, t as _t, tn as vt, tt as yt, u as bt, un as H, v as xt, vt as St, w as Ct, wn as wt, wt as Tt, x as Et, xn as Dt, xt as Ot, y as kt, yt as At, zn as U, zt as jt } from "./useCurrentScreen-CD6xJlyU.js";
3
+ import { A as Mt, C as Nt, D as Pt, E as Ft, F as It, I as Lt, M as Rt, N as zt, O as Bt, P as Vt, S as Ht, T as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, f as Yt, g as Xt, h as Zt, j as Qt, k as $t, l as en, m as tn, n as nn, o as rn, p as an, r as on, s as sn, t as cn, u as ln, v as un, w as dn, x as fn, y as pn } from "./RefreshControl-BscVr98E.js";
4
+ import { $ as mn, A as hn, B as gn, C as _n, D as vn, E as yn, F as W, G as bn, H as xn, I as Sn, K as Cn, L as wn, M as Tn, N as En, O as Dn, P as On, R as kn, S as An, St as jn, T as Mn, U as Nn, V as Pn, X as Fn, Z as In, _ as Ln, _t as Rn, a as zn, at as Bn, b as Vn, bt as G, c as Hn, ct as Un, d as Wn, dt as Gn, et as Kn, f as qn, ft as Jn, g as Yn, gt as Xn, h as Zn, ht as Qn, i as $n, it as er, j as tr, l as nr, lt as rr, m as ir, mt as ar, n as or, nt as sr, o as cr, ot as lr, p as ur, q as dr, r as fr, rt as pr, s as mr, st as hr, t as gr, tt as _r, u as vr, ut as yr, v as br, vt as xr, x as Sr, xt as Cr, y as wr, yt as Tr, z as Er } from "./registry-D6uzF1n6.js";
5
+ import { C as Dr, S as Or, _ as kr, a as Ar, b as jr, c as Mr, d as Nr, f as Pr, g as Fr, h as Ir, i as Lr, l as Rr, m as zr, n as Br, o as Vr, p as Hr, r as Ur, t as Wr, u as Gr, v as Kr, x as qr, y as Jr } from "./useProperties-BK4ilgGN.js";
6
6
  import { Fragment as Yr, Suspense as Xr, createElement as Zr, lazy as Qr, useCallback as K, useEffect as q, useMemo as J, useRef as Y, useState as X } from "react";
7
7
  import { BrowserRouter as $r, Link as ei, Navigate as ti, Outlet as ni, Route as ri, Routes as ii, useLocation as ai, useLocation as oi, useNavigate as si, useNavigate as ci, useNavigationType as li, useParams as ui, useSearchParams as di, useSearchParams as fi } from "react-router-dom";
8
8
  import { QueryClient as pi, QueryClientProvider as mi, useInfiniteQuery as hi, useMutation as gi, useQueries as _i, useQuery as vi, useQueryClient as yi } from "@tanstack/react-query";
@@ -22,7 +22,7 @@ function Ei({ size: e = 24, className: t, title: n }) {
22
22
  className: t,
23
23
  role: n ? "img" : void 0,
24
24
  "aria-label": n,
25
- "aria-hidden": n ? void 0 : !0,
25
+ "aria-hidden": !n || void 0,
26
26
  children: [
27
27
  /* @__PURE__ */ Q("path", {
28
28
  fillRule: "evenodd",
@@ -1355,7 +1355,7 @@ function ma({ crumb: e, last: t, clickable: r, onClick: i }) {
1355
1355
  //#endregion
1356
1356
  //#region src/components/layout/TopBar.tsx
1357
1357
  function ha({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, showNavButton: a, onOpenTabs: o, tabsButtonRef: s, showTabsButton: c, mobileTabCount: l = 0, onCmdK: u, onToggleAI: d, aiOpen: f, onOpenProfile: p, onOpenPrefs: m, showTenantSwitcher: h = !0, showBreadcrumbs: g = !0, showThemeToggle: _ = !0 } = {}) {
1358
- let v = I((e) => e.user), y = U(), { activeTenant: b, tenants: x, switchTenant: C, isSwitchingTenant: T, logout: E } = ra(), { isImpersonating: D, stop: ee } = ia(), te = G((e) => e.colorScheme), O = G((e) => e.set), [ne, re] = X(!1), ie = Y(null), k = b?.env || "production", ae = la(k), oe = v?.email ?? "", se = v?.display_name || oe || "User", ce = a && y.category === "phone", le = a && y.category !== "desktop", ue = () => {
1358
+ let v = I((e) => e.user), y = U(), { activeTenant: b, tenants: x, switchTenant: C, isSwitchingTenant: T, logout: E } = ra(), { isImpersonating: D, stop: ee } = ia(), te = G((e) => e.colorScheme), O = G((e) => e.set), [ne, re] = X(!1), k = Y(null), ie = b?.env || "production", ae = la(ie), oe = v?.email ?? "", se = v?.display_name || oe || "User", ce = a && y.category === "phone", le = a && y.category !== "desktop", ue = () => {
1359
1359
  O("colorScheme", te === "dark" ? "light" : "dark");
1360
1360
  };
1361
1361
  return /* @__PURE__ */ $("header", {
@@ -1373,7 +1373,7 @@ function ha({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1373
1373
  overflow: "hidden"
1374
1374
  },
1375
1375
  children: [
1376
- k === "production" && /* @__PURE__ */ Q("span", { style: {
1376
+ ie === "production" && /* @__PURE__ */ Q("span", { style: {
1377
1377
  position: "absolute",
1378
1378
  left: 0,
1379
1379
  right: 0,
@@ -1500,7 +1500,7 @@ function ha({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1500
1500
  /* @__PURE__ */ $("div", {
1501
1501
  style: { position: "relative" },
1502
1502
  children: [/* @__PURE__ */ $("button", {
1503
- ref: ie,
1503
+ ref: k,
1504
1504
  onClick: () => re((e) => !e),
1505
1505
  style: {
1506
1506
  display: "flex",
@@ -1527,7 +1527,7 @@ function ha({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1527
1527
  })] })]
1528
1528
  }), /* @__PURE__ */ $(w, {
1529
1529
  open: ne,
1530
- anchor: ie.current,
1530
+ anchor: k.current,
1531
1531
  onClose: () => re(!1),
1532
1532
  width: 220,
1533
1533
  align: "end",
@@ -1584,7 +1584,7 @@ function ha({ breadcrumbs: e, onCrumbClick: t, onOpenNav: r, navButtonRef: i, sh
1584
1584
  children: [
1585
1585
  b.name,
1586
1586
  " · ",
1587
- k
1587
+ ie
1588
1588
  ]
1589
1589
  })]
1590
1590
  })]
@@ -4266,7 +4266,7 @@ function Do({ tool: e, onApprove: t, onReject: r }) {
4266
4266
  //#region src/hooks/useSSE.ts
4267
4267
  var Oo = 3e4, ko = 1e3, Ao = 3e3, jo = 50;
4268
4268
  function Mo() {
4269
- return typeof document > "u" ? !0 : document.visibilityState !== "hidden";
4269
+ return typeof document > "u" || document.visibilityState !== "hidden";
4270
4270
  }
4271
4271
  function No() {
4272
4272
  let [e, t] = X(Mo);
@@ -4414,7 +4414,7 @@ function zo() {
4414
4414
  var Bo = "default";
4415
4415
  function Vo() {
4416
4416
  Yi(), Wt();
4417
- let { isAuthenticated: e, isLoading: t, user: n, activeTenant: r } = I(), a = i(), o = ci(), s = Gn(), c = K((e) => s(e, { topLevel: !0 }), [s]), l = oi(), { data: u } = qe(), d = U(), f = G((e) => e.sidebar), p = G((e) => e.tabsPosition), m = G((e) => e.aiSurface), h = G((e) => e.colorScheme), g = G((e) => e.set), _ = G((e) => e.hydrateFromBranding), { branding: v } = Ut(), y = an(), b = xr((e) => e.tabs), x = xr((e) => e.activeTabId), S = xr((e) => e.closeTabs), C = xr((e) => e.switchTab), w = xr((e) => e.setScope), T = xr((e) => e.hydrate), [E, D] = X(Bo), [ee, O] = X(!1), [ne, re] = X("default"), [ie, k] = X(!1), [ae, oe] = X(!1), [se, ce] = X(!1), le = Y(null), ue = Y(null), [A, de] = X(null), j = m !== "off" && y.isVisible("show_command_palette"), M = m === "panel" || m === "both", N = m === "command" || m === "both", fe = Ft(), pe = fe?.ai_name?.trim() ?? "", me = d.category === "phone" || d.category === "tablet", he = y.isVisible("show_topbar"), ge = !me && y.isVisible("show_rail"), _e = !me && y.isVisible("show_sidebar"), ve = !me && y.isVisible("show_tabs"), ye = me && y.isVisible("show_sidebar"), be = me && y.isVisible("show_tabs"), P = y.isVisible("show_tenant_switcher"), xe = y.isVisible("show_breadcrumbs"), Se = y.isVisible("show_theme_toggle"), Ce = K((e = "default") => {
4417
+ let { isAuthenticated: e, isLoading: t, user: n, activeTenant: r } = I(), a = i(), o = ci(), s = Gn(), c = K((e) => s(e, { topLevel: !0 }), [s]), l = oi(), { data: u } = qe(), d = U(), f = G((e) => e.sidebar), p = G((e) => e.tabsPosition), m = G((e) => e.aiSurface), h = G((e) => e.colorScheme), g = G((e) => e.set), _ = G((e) => e.hydrateFromBranding), { branding: v } = Ut(), y = an(), b = xr((e) => e.tabs), x = xr((e) => e.activeTabId), S = xr((e) => e.closeTabs), C = xr((e) => e.switchTab), w = xr((e) => e.setScope), T = xr((e) => e.hydrate), [E, D] = X(Bo), [ee, O] = X(!1), [ne, re] = X("default"), [k, ie] = X(!1), [ae, oe] = X(!1), [se, ce] = X(!1), le = Y(null), ue = Y(null), [A, de] = X(null), j = m !== "off" && y.isVisible("show_command_palette"), M = m === "panel" || m === "both", N = m === "command" || m === "both", fe = Ft(), pe = fe?.ai_name?.trim() ?? "", me = d.category === "phone" || d.category === "tablet", he = y.isVisible("show_topbar"), ge = !me && y.isVisible("show_rail"), _e = !me && y.isVisible("show_sidebar"), ve = !me && y.isVisible("show_tabs"), ye = me && y.isVisible("show_sidebar"), be = me && y.isVisible("show_tabs"), P = y.isVisible("show_tenant_switcher"), xe = y.isVisible("show_breadcrumbs"), Se = y.isVisible("show_theme_toggle"), Ce = K((e = "default") => {
4418
4418
  j && (re(e), O(!0));
4419
4419
  }, [j]), we = K((e) => {
4420
4420
  if (e.length === 0) return;
@@ -4481,7 +4481,7 @@ function Vo() {
4481
4481
  }, [l.pathname, l.search]), q(() => {
4482
4482
  let e = (e) => {
4483
4483
  let t = document.activeElement, n = !!t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable), r = e.metaKey || e.ctrlKey;
4484
- r && e.key.toLowerCase() === "k" ? (e.preventDefault(), Ce("default")) : r && e.key.toLowerCase() === "t" ? (e.preventDefault(), Ce("new")) : r && e.key.toLowerCase() === "b" ? (e.preventDefault(), g("sidebar", f === "collapsed" ? "wide" : "collapsed")) : r && e.key.toLowerCase() === "w" ? (e.preventDefault(), Te("current")) : r && e.key === "/" ? (e.preventDefault(), M && k((e) => !e)) : e.key === "/" && !n ? (e.preventDefault(), Ce("default")) : e.key === "Escape" && O(!1);
4484
+ r && e.key.toLowerCase() === "k" ? (e.preventDefault(), Ce("default")) : r && e.key.toLowerCase() === "t" ? (e.preventDefault(), Ce("new")) : r && e.key.toLowerCase() === "b" ? (e.preventDefault(), g("sidebar", f === "collapsed" ? "wide" : "collapsed")) : r && e.key.toLowerCase() === "w" ? (e.preventDefault(), Te("current")) : r && e.key === "/" ? (e.preventDefault(), M && ie((e) => !e)) : e.key === "/" && !n ? (e.preventDefault(), Ce("default")) : e.key === "Escape" && O(!1);
4485
4485
  };
4486
4486
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
4487
4487
  }, [
@@ -4527,7 +4527,7 @@ function Vo() {
4527
4527
  break;
4528
4528
  case "ai":
4529
4529
  case "ai-panel":
4530
- M && k(!0);
4530
+ M && ie(!0);
4531
4531
  break;
4532
4532
  case "theme":
4533
4533
  g("colorScheme", h === "dark" ? "light" : "dark");
@@ -4574,8 +4574,8 @@ function Vo() {
4574
4574
  onOpenTabs: () => ce(!0),
4575
4575
  mobileTabCount: b.length,
4576
4576
  onCmdK: () => Ce("default"),
4577
- onToggleAI: () => M && k((e) => !e),
4578
- aiOpen: ie,
4577
+ onToggleAI: () => M && ie((e) => !e),
4578
+ aiOpen: k,
4579
4579
  onOpenProfile: () => c("/profile"),
4580
4580
  onOpenPrefs: () => c("/preferences"),
4581
4581
  showTenantSwitcher: P,
@@ -4585,8 +4585,8 @@ function Vo() {
4585
4585
  ge && /* @__PURE__ */ Q(ji, {
4586
4586
  activeArea: E,
4587
4587
  onPick: ke,
4588
- onToggleAI: () => M && k((e) => !e),
4589
- aiOpen: ie,
4588
+ onToggleAI: () => M && ie((e) => !e),
4589
+ aiOpen: k,
4590
4590
  onCmdK: () => Ce("default"),
4591
4591
  areas: u?.areas,
4592
4592
  branding: fe
@@ -4631,9 +4631,9 @@ function Vo() {
4631
4631
  includeAI: N,
4632
4632
  aiName: pe
4633
4633
  }),
4634
- M && ie && /* @__PURE__ */ Q(mo, {
4635
- open: ie,
4636
- onClose: () => k(!1),
4634
+ M && k && /* @__PURE__ */ Q(mo, {
4635
+ open: k,
4636
+ onClose: () => ie(!1),
4637
4637
  title: pe
4638
4638
  }),
4639
4639
  ye && /* @__PURE__ */ Q(qo, {
@@ -5124,7 +5124,14 @@ function $o(e) {
5124
5124
  return e;
5125
5125
  }
5126
5126
  }
5127
- function es({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a, badges: o, brandName: s }) {
5127
+ function es(e, t) {
5128
+ if (!e) return "";
5129
+ let n = t ? t.slice(0, 7) : "";
5130
+ if (!n || !t) return e;
5131
+ let r = Math.min(e.length, t.length);
5132
+ return e.slice(0, r) === t.slice(0, r) ? e : `${e}+${n}`;
5133
+ }
5134
+ function ts({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a, badges: o, brandName: s }) {
5128
5135
  let c = G((e) => e.colorScheme), l = U(), u = G((e) => e.set), d = G((e) => e.hydrateFromBranding), f = () => u("colorScheme", c === "dark" ? "light" : "dark"), { branding: p } = Ut();
5129
5136
  q(() => {
5130
5137
  d(p?.preferences);
@@ -5143,7 +5150,7 @@ function es({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
5143
5150
  T?.privacy_url,
5144
5151
  T?.terms_url,
5145
5152
  T?.docs_url
5146
- ]), D = m?.legal_entity ?? "", ee = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${D ? ` ${D}` : ""}`, { data: te } = $t(), O = te?.meta, ne = O?.revision ? O.revision.slice(0, 7) : "", re = O?.version ? ne && ne !== O.version ? `${O.version}+${ne}` : O.version : "", ie = [O?.region ? `Region: ${O.region}` : "", re ? `Build ${re}` : ""].filter(Boolean).join(" · "), k = l.category === "phone" || l.height <= 520;
5153
+ ]), D = m?.legal_entity ?? "", ee = `© ${(/* @__PURE__ */ new Date()).getFullYear()}${D ? ` ${D}` : ""}`, { data: te } = $t(), O = te?.meta, ne = es(O?.version, O?.revision), re = [O?.region ? `Region: ${O.region}` : "", ne ? `Build ${ne}` : ""].filter(Boolean).join(" · "), k = l.category === "phone" || l.height <= 520;
5147
5154
  return /* @__PURE__ */ $("div", {
5148
5155
  style: {
5149
5156
  minHeight: "var(--app-height)",
@@ -5417,13 +5424,13 @@ function es({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
5417
5424
  style: { color: "inherit" },
5418
5425
  children: e
5419
5426
  }, e)),
5420
- ie && /* @__PURE__ */ $(Z, { children: [!k && /* @__PURE__ */ Q("div", { style: { flex: 1 } }), /* @__PURE__ */ Q("span", {
5427
+ re && /* @__PURE__ */ $(Z, { children: [!k && /* @__PURE__ */ Q("div", { style: { flex: 1 } }), /* @__PURE__ */ Q("span", {
5421
5428
  className: "mono",
5422
5429
  style: {
5423
5430
  maxWidth: "100%",
5424
5431
  overflowWrap: "anywhere"
5425
5432
  },
5426
- children: ie
5433
+ children: re
5427
5434
  })] })
5428
5435
  ]
5429
5436
  })
@@ -5432,7 +5439,7 @@ function es({ children: e, tenantSlug: t, tagline: r, subTagline: i, version: a,
5432
5439
  }
5433
5440
  //#endregion
5434
5441
  //#region src/components/pages/auth/icons.tsx
5435
- function ts({ size: e = 14 }) {
5442
+ function ns({ size: e = 14 }) {
5436
5443
  return /* @__PURE__ */ $("svg", {
5437
5444
  width: e,
5438
5445
  height: e,
@@ -5458,7 +5465,7 @@ function ts({ size: e = 14 }) {
5458
5465
  ]
5459
5466
  });
5460
5467
  }
5461
- function ns({ size: e = 14 }) {
5468
+ function rs({ size: e = 14 }) {
5462
5469
  return /* @__PURE__ */ $("svg", {
5463
5470
  width: e,
5464
5471
  height: e,
@@ -5486,87 +5493,87 @@ function ns({ size: e = 14 }) {
5486
5493
  }
5487
5494
  //#endregion
5488
5495
  //#region src/lib/schema-routing.ts
5489
- var rs = /* @__PURE__ */ new Set(["/preferences", "/admin/catalog"]);
5490
- function is(e) {
5496
+ var is = /* @__PURE__ */ new Set(["/preferences", "/admin/catalog"]);
5497
+ function as(e) {
5491
5498
  if (!e?.navigation) return null;
5492
5499
  let t = e.areas ?? [];
5493
5500
  if (t.length > 0) for (let n of t) for (let t of e.navigation) {
5494
5501
  if ((t.area || "default") !== n.code) continue;
5495
- let r = cs(e, t);
5502
+ let r = ls(e, t);
5496
5503
  if (r) return r;
5497
5504
  }
5498
5505
  for (let t of e.navigation) {
5499
- let n = cs(e, t);
5506
+ let n = ls(e, t);
5500
5507
  if (n) return n;
5501
5508
  }
5502
5509
  return null;
5503
5510
  }
5504
- function as(e, t) {
5505
- let n = is(t) || "/";
5511
+ function os(e, t) {
5512
+ let n = as(t) || "/";
5506
5513
  if (!t || e === "/" || e === "/admin") return n;
5507
- let r = os(e);
5508
- if (rs.has(r)) return e;
5509
- for (let n of Object.values(t.screens ?? {})) if (!(!n.route || !ls(t, n)) && us(n.route).test(r)) return e;
5514
+ let r = ss(e);
5515
+ if (is.has(r)) return e;
5516
+ for (let n of Object.values(t.screens ?? {})) if (!(!n.route || !us(t, n)) && ds(n.route).test(r)) return e;
5510
5517
  return n;
5511
5518
  }
5512
- function os(e) {
5519
+ function ss(e) {
5513
5520
  let t = e.indexOf("#"), n = t >= 0 ? e.slice(0, t) : e, r = n.indexOf("?");
5514
5521
  return (r >= 0 ? n.slice(0, r) : n).replace(/\/+$/, "") || "/";
5515
5522
  }
5516
- function ss(e, t) {
5523
+ function cs(e, t) {
5517
5524
  let n = e.screens[t];
5518
- return !!n && ls(e, n);
5525
+ return !!n && us(e, n);
5519
5526
  }
5520
- function cs(e, t) {
5521
- if (t.screen && ss(e, t.screen)) return e.screens[t.screen].route;
5527
+ function ls(e, t) {
5528
+ if (t.screen && cs(e, t.screen)) return e.screens[t.screen].route;
5522
5529
  for (let n of [...t.items ?? [], ...t.children ?? []]) {
5523
- let t = cs(e, n);
5530
+ let t = ls(e, n);
5524
5531
  if (t) return t;
5525
5532
  }
5526
5533
  return null;
5527
5534
  }
5528
- function ls(e, t) {
5535
+ function us(e, t) {
5529
5536
  if (t.type !== "list") return !0;
5530
5537
  let n = t.entity;
5531
5538
  return !(n ? e.entities?.[n] : void 0)?.singleton;
5532
5539
  }
5533
- function us(e) {
5540
+ function ds(e) {
5534
5541
  let t = e.replace(/\/+$/, "").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
5535
5542
  return RegExp("^" + t.join("/") + "$");
5536
5543
  }
5537
5544
  //#endregion
5538
5545
  //#region src/lib/messages.ts
5539
- var ds = "en";
5540
- function fs(e, t, n, r = "") {
5546
+ var fs = "en";
5547
+ function ps(e, t, n, r = "") {
5541
5548
  return H(e?.[t], n) || r;
5542
5549
  }
5543
- function ps(e) {
5550
+ function ms(e) {
5544
5551
  let t = e?.find((e) => e.code === "ui_language")?.value;
5545
- return typeof t == "string" && t.trim() ? t.trim() : ms() || ds;
5552
+ return typeof t == "string" && t.trim() ? t.trim() : hs() || fs;
5546
5553
  }
5547
- function ms() {
5554
+ function hs() {
5548
5555
  if (typeof navigator > "u") return;
5549
5556
  let e = navigator.language;
5550
5557
  if (e) return e.split("-")[0] || void 0;
5551
5558
  }
5552
5559
  //#endregion
5553
5560
  //#region src/components/pages/auth/SignIn.tsx
5554
- var hs = "Invalid email or password.", gs = "You do not have access to that page. We opened your default page instead.", _s = {
5561
+ var gs = "Invalid email or password.", _s = "You do not have access to that page. We opened your default page instead.", vs = {
5555
5562
  google: {
5556
5563
  label: "Continue with Google",
5557
- icon: /* @__PURE__ */ Q(ts, { size: 14 })
5564
+ icon: /* @__PURE__ */ Q(ns, { size: 14 })
5558
5565
  },
5559
5566
  microsoft: {
5560
5567
  label: "Continue with Microsoft",
5561
- icon: /* @__PURE__ */ Q(ns, { size: 14 })
5568
+ icon: /* @__PURE__ */ Q(rs, { size: 14 })
5562
5569
  },
5563
5570
  azure: {
5564
5571
  label: "Continue with Microsoft",
5565
- icon: /* @__PURE__ */ Q(ns, { size: 14 })
5572
+ icon: /* @__PURE__ */ Q(rs, { size: 14 })
5566
5573
  }
5567
5574
  };
5568
- function vs() {
5569
- let e = ci(), [t] = fi(), { login: r, isLoginPending: i, isAuthenticated: a } = ra(), { data: o } = $t(), { data: s } = qe(), [c, l] = X(""), [u, d] = X(""), [p, m] = X(!0), h = je(t.get("next") || t.get("redirect")), g = t.get("sso_error"), _ = ps(o?.parameters), { data: v } = vi({
5575
+ function ys() {
5576
+ let e = ci(), [t] = fi(), { login: r, isLoginPending: i, isAuthenticated: a } = ra(), { data: o } = $t(), { data: s } = qe(), [c, l] = X(""), [u, d] = X(""), [p, m] = X(!0), h = je(t.get("next") || t.get("redirect")), g = t.get("sso_error"), _ = ms(o?.parameters), { data: v } = vi({
5570
5577
  queryKey: ["check-setup"],
5571
5578
  queryFn: At
5572
5579
  }), { data: y } = vi({
@@ -5578,8 +5585,8 @@ function vs() {
5578
5585
  v?.needs_setup && e("/signup", { replace: !0 });
5579
5586
  }, [v, e]), q(() => {
5580
5587
  if (!a || !s) return;
5581
- let t = as(h, s);
5582
- bs(h, t) && P.warning(fs(s.messages, "auth.inaccessible_redirect", _, gs)), e(t, { replace: !0 });
5588
+ let t = os(h, s);
5589
+ xs(h, t) && P.warning(ps(s.messages, "auth.inaccessible_redirect", _, _s)), e(t, { replace: !0 });
5583
5590
  }, [
5584
5591
  a,
5585
5592
  _,
@@ -5595,10 +5602,10 @@ function vs() {
5595
5602
  password: u,
5596
5603
  remember: p
5597
5604
  }, { onError: (e) => {
5598
- P.error(ys(e, o?.messages, _));
5605
+ P.error(bs(e, o?.messages, _));
5599
5606
  } });
5600
5607
  }
5601
- return /* @__PURE__ */ Q(es, { children: /* @__PURE__ */ $("form", {
5608
+ return /* @__PURE__ */ Q(ts, { children: /* @__PURE__ */ $("form", {
5602
5609
  onSubmit: b,
5603
5610
  children: [
5604
5611
  /* @__PURE__ */ Q("div", {
@@ -5636,7 +5643,7 @@ function vs() {
5636
5643
  marginBottom: 12
5637
5644
  },
5638
5645
  children: y.map((e) => {
5639
- let t = _s[e.slug.toLowerCase()] ?? {
5646
+ let t = vs[e.slug.toLowerCase()] ?? {
5640
5647
  label: `Continue with ${e.name}`,
5641
5648
  icon: /* @__PURE__ */ Q(n.shield, { size: 13 })
5642
5649
  };
@@ -5769,17 +5776,17 @@ function vs() {
5769
5776
  ]
5770
5777
  }) });
5771
5778
  }
5772
- function ys(e, t, n) {
5773
- return e instanceof ke && e.code === "INVALID_CREDENTIALS" ? fs(t, "auth.invalid_credentials", n, hs) : e.message;
5779
+ function bs(e, t, n) {
5780
+ return e instanceof ke && e.code === "INVALID_CREDENTIALS" ? ps(t, "auth.invalid_credentials", n, gs) : e.message;
5774
5781
  }
5775
- function bs(e, t) {
5782
+ function xs(e, t) {
5776
5783
  if (e === t) return !1;
5777
5784
  let n = e.split(/[?#]/, 1)[0].replace(/\/+$/, "") || "/";
5778
5785
  return n !== "/" && n !== "/admin";
5779
5786
  }
5780
5787
  //#endregion
5781
5788
  //#region src/components/pages/auth/SignUp.tsx
5782
- function xs() {
5789
+ function Ss() {
5783
5790
  let e = ci(), { signup: t, isSignupPending: r, isAuthenticated: i } = ra(), a = U(), [o, s] = X(""), [c, l] = X(""), [u, d] = X(""), [p, m] = X(""), [h, g] = X(""), [_, v] = X(""), [y, b] = X(!1), { data: x } = $t(), S = Qt(x), C = S?.workspace_domain ?? "", w = S?.legal_links?.terms_url ?? "", T = S?.legal_links?.privacy_url ?? "", E = a.category === "phone" || a.height <= 520, { data: D } = vi({
5784
5791
  queryKey: ["check-setup"],
5785
5792
  queryFn: At
@@ -5798,7 +5805,7 @@ function xs() {
5798
5805
  displayName: n
5799
5806
  });
5800
5807
  }
5801
- return /* @__PURE__ */ Q(es, { children: /* @__PURE__ */ $("form", {
5808
+ return /* @__PURE__ */ Q(ts, { children: /* @__PURE__ */ $("form", {
5802
5809
  onSubmit: ee,
5803
5810
  children: [
5804
5811
  /* @__PURE__ */ Q("div", {
@@ -5915,7 +5922,7 @@ function xs() {
5915
5922
  style: { marginTop: 2 },
5916
5923
  checked: y,
5917
5924
  onChange: (e) => b(e.target.checked)
5918
- }), /* @__PURE__ */ Q(Ss, {
5925
+ }), /* @__PURE__ */ Q(Cs, {
5919
5926
  termsUrl: w,
5920
5927
  privacyUrl: T
5921
5928
  })]
@@ -5952,7 +5959,7 @@ function xs() {
5952
5959
  ]
5953
5960
  }) });
5954
5961
  }
5955
- function Ss({ termsUrl: e, privacyUrl: t }) {
5962
+ function Cs({ termsUrl: e, privacyUrl: t }) {
5956
5963
  return /* @__PURE__ */ $("span", { children: [
5957
5964
  "I agree to the ",
5958
5965
  e ? /* @__PURE__ */ Q("a", {
@@ -5975,7 +5982,7 @@ function Ss({ termsUrl: e, privacyUrl: t }) {
5975
5982
  }
5976
5983
  //#endregion
5977
5984
  //#region src/components/pages/auth/Forgot.tsx
5978
- function Cs() {
5985
+ function ws() {
5979
5986
  let [e, t] = X(""), [r, i] = X(!1), [a, o] = X(!1);
5980
5987
  async function s(t) {
5981
5988
  if (t.preventDefault(), !a) {
@@ -5987,7 +5994,7 @@ function Cs() {
5987
5994
  }
5988
5995
  }
5989
5996
  }
5990
- return /* @__PURE__ */ Q(es, { children: /* @__PURE__ */ $("form", {
5997
+ return /* @__PURE__ */ Q(ts, { children: /* @__PURE__ */ $("form", {
5991
5998
  onSubmit: s,
5992
5999
  "data-testid": "forgot-form",
5993
6000
  children: [
@@ -6071,26 +6078,26 @@ function Cs() {
6071
6078
  }
6072
6079
  //#endregion
6073
6080
  //#region src/components/pages/auth/Reset.tsx
6074
- var ws = 8, Ts = "declarion.auth.flash", Es = "declarion-reset-no-referrer";
6075
- function Ds() {
6081
+ var Ts = 8, Es = "declarion.auth.flash", Ds = "declarion-reset-no-referrer";
6082
+ function Os() {
6076
6083
  if (typeof window > "u") return "";
6077
6084
  let e = window.location.hash.startsWith("#") ? window.location.hash.slice(1) : window.location.hash;
6078
6085
  return e ? new URLSearchParams(e).get("t") ?? "" : "";
6079
6086
  }
6080
- function Os() {
6087
+ function ks() {
6081
6088
  if (typeof document > "u") return;
6082
- let e = document.getElementById(Es);
6083
- e || (e = document.createElement("meta"), e.id = Es, e.name = "referrer", e.content = "no-referrer", document.head.appendChild(e));
6089
+ let e = document.getElementById(Ds);
6090
+ e || (e = document.createElement("meta"), e.id = Ds, e.name = "referrer", e.content = "no-referrer", document.head.appendChild(e));
6084
6091
  }
6085
- function ks() {
6092
+ function As() {
6086
6093
  if (typeof document > "u") return;
6087
- let e = document.getElementById(Es);
6094
+ let e = document.getElementById(Ds);
6088
6095
  e && e.remove();
6089
6096
  }
6090
- function As() {
6091
- let e = ci(), [t] = X(() => Ds()), [r, i] = X(""), [a, o] = X(""), [s, c] = X(""), [l, u] = X(!1), [d, p] = X(null);
6097
+ function js() {
6098
+ let e = ci(), [t] = X(() => Os()), [r, i] = X(""), [a, o] = X(""), [s, c] = X(""), [l, u] = X(!1), [d, p] = X(null);
6092
6099
  q(() => {
6093
- if (t) return typeof window < "u" && typeof window.history?.replaceState == "function" && window.history.replaceState(null, "", "/reset"), Os(), ks;
6100
+ if (t) return typeof window < "u" && typeof window.history?.replaceState == "function" && window.history.replaceState(null, "", "/reset"), ks(), As;
6094
6101
  }, [t]);
6095
6102
  let m = J(() => !t, [t]);
6096
6103
  async function h(n) {
@@ -6099,8 +6106,8 @@ function As() {
6099
6106
  p("Passwords do not match.");
6100
6107
  return;
6101
6108
  }
6102
- if (a.length < ws) {
6103
- p(`Password must be at least ${ws} characters.`);
6109
+ if (a.length < Ts) {
6110
+ p(`Password must be at least ${Ts} characters.`);
6104
6111
  return;
6105
6112
  }
6106
6113
  u(!0), p(null);
@@ -6111,20 +6118,20 @@ function As() {
6111
6118
  password: a
6112
6119
  });
6113
6120
  try {
6114
- window.sessionStorage.setItem(Ts, JSON.stringify({
6121
+ window.sessionStorage.setItem(Es, JSON.stringify({
6115
6122
  kind: "success",
6116
6123
  text: "Password updated. Sign in with your new password."
6117
6124
  }));
6118
6125
  } catch {}
6119
6126
  e("/login", { replace: !0 });
6120
6127
  } catch (e) {
6121
- e instanceof ke && e.code === "PASSWORD_REUSED" ? p("Your new password must differ from your current password.") : e instanceof ke && e.code === "PASSWORD_TOO_SHORT" ? p(`Password must be at least ${ws} characters.`) : p("Invalid or expired link. Please request a new one.");
6128
+ e instanceof ke && e.code === "PASSWORD_REUSED" ? p("Your new password must differ from your current password.") : e instanceof ke && e.code === "PASSWORD_TOO_SHORT" ? p(`Password must be at least ${Ts} characters.`) : p("Invalid or expired link. Please request a new one.");
6122
6129
  } finally {
6123
6130
  u(!1);
6124
6131
  }
6125
6132
  }
6126
6133
  }
6127
- return /* @__PURE__ */ Q(es, { children: /* @__PURE__ */ $("div", {
6134
+ return /* @__PURE__ */ Q(ts, { children: /* @__PURE__ */ $("div", {
6128
6135
  "data-testid": "reset-page",
6129
6136
  children: [
6130
6137
  /* @__PURE__ */ Q("div", {
@@ -6234,7 +6241,7 @@ function As() {
6234
6241
  }
6235
6242
  //#endregion
6236
6243
  //#region src/components/pages/auth/TwoFA.tsx
6237
- function js() {
6244
+ function Ms() {
6238
6245
  let e = ci(), t = Y([]), n = U(), r = n.category === "phone" || n.height <= 520;
6239
6246
  function i(e) {
6240
6247
  t.current[e]?.focus(), t.current[e]?.select();
@@ -6246,7 +6253,7 @@ function js() {
6246
6253
  function o(e, t) {
6247
6254
  t.key === "Backspace" && !t.target.value && e > 0 && i(e - 1);
6248
6255
  }
6249
- return /* @__PURE__ */ Q(es, { children: /* @__PURE__ */ $("div", { children: [
6256
+ return /* @__PURE__ */ Q(ts, { children: /* @__PURE__ */ $("div", { children: [
6250
6257
  /* @__PURE__ */ Q("div", {
6251
6258
  style: {
6252
6259
  fontSize: 10.5,
@@ -6352,7 +6359,7 @@ function js() {
6352
6359
  }
6353
6360
  //#endregion
6354
6361
  //#region src/components/pages/SSOCallbackPage.tsx
6355
- function Ms() {
6362
+ function Ns() {
6356
6363
  let e = ci(), [t] = fi(), { setUser: n, setTenants: r } = I(), i = yi();
6357
6364
  return q(() => {
6358
6365
  let a = je(t.get("redirect"));
@@ -6377,7 +6384,7 @@ function Ms() {
6377
6384
  }
6378
6385
  //#endregion
6379
6386
  //#region src/components/pages/NotFoundPage.tsx
6380
- function Ns() {
6387
+ function Ps() {
6381
6388
  let e = i(), t = Ee(), n = oi(), r = x();
6382
6389
  return q(() => {
6383
6390
  e.enabled && r(n.pathname, "not_found");
@@ -6439,7 +6446,7 @@ function Ns() {
6439
6446
  }
6440
6447
  //#endregion
6441
6448
  //#region src/components/shared/ChangePasswordDialog.tsx
6442
- function Ps({ open: e, onClose: t, onSubmit: r }) {
6449
+ function Fs({ open: e, onClose: t, onSubmit: r }) {
6443
6450
  let i = U().isPhone, [a, o] = X(""), [s, c] = X(""), [l, u] = X(""), [d, p] = X(!1), [m, h] = X(null);
6444
6451
  if (!e) return null;
6445
6452
  let g = () => {
@@ -6620,12 +6627,12 @@ function Ps({ open: e, onClose: t, onSubmit: r }) {
6620
6627
  }
6621
6628
  //#endregion
6622
6629
  //#region src/components/pages/profile/Profile.tsx
6623
- var Fs = [
6630
+ var Is = [
6624
6631
  "image/png",
6625
6632
  "image/jpeg",
6626
6633
  "image/webp"
6627
- ], Is = 5 * 1024 * 1024;
6628
- function Ls() {
6634
+ ], Ls = 5 * 1024 * 1024;
6635
+ function Rs() {
6629
6636
  let e = Gn(), t = I((e) => e.user), r = I((e) => e.activeTenant), i = I((e) => e.refreshMe), a = U().isPhone, [o, s] = X(!1), [c, u] = X(!1), [d, f] = X(!1), [p, m] = X({
6630
6637
  email: !0,
6631
6638
  inapp: !0,
@@ -6715,13 +6722,13 @@ function Ls() {
6715
6722
  /* @__PURE__ */ Q("input", {
6716
6723
  ref: h,
6717
6724
  type: "file",
6718
- accept: Fs.join(","),
6725
+ accept: Is.join(","),
6719
6726
  style: { display: "none" },
6720
6727
  onChange: async (e) => {
6721
6728
  let n = e.target.files?.[0];
6722
6729
  if (!n || !t) return;
6723
6730
  e.target.value = "";
6724
- let r = ve(n, Fs, Is);
6731
+ let r = ve(n, Is, Ls);
6725
6732
  if (r) {
6726
6733
  P.error(r.message);
6727
6734
  return;
@@ -6861,7 +6868,7 @@ function Ls() {
6861
6868
  }),
6862
6869
  /* @__PURE__ */ Q(Di, {
6863
6870
  label: "Timezone",
6864
- children: Bs()
6871
+ children: Vs()
6865
6872
  }),
6866
6873
  /* @__PURE__ */ Q(Di, {
6867
6874
  label: "Language",
@@ -6887,7 +6894,7 @@ function Ls() {
6887
6894
  gap: 10
6888
6895
  },
6889
6896
  children: [
6890
- /* @__PURE__ */ Q(zs, {
6897
+ /* @__PURE__ */ Q(Bs, {
6891
6898
  icon: /* @__PURE__ */ Q(n.key, { size: 13 }),
6892
6899
  label: "Password",
6893
6900
  hint: "Update at any time",
@@ -6897,7 +6904,7 @@ function Ls() {
6897
6904
  children: "Change"
6898
6905
  })
6899
6906
  }),
6900
- /* @__PURE__ */ Q(zs, {
6907
+ /* @__PURE__ */ Q(Bs, {
6901
6908
  icon: /* @__PURE__ */ Q(n.shield, { size: 13 }),
6902
6909
  label: "Two-factor authentication",
6903
6910
  hint: "Authenticator app recommended",
@@ -6907,7 +6914,7 @@ function Ls() {
6907
6914
  children: "Not set up"
6908
6915
  })
6909
6916
  }),
6910
- /* @__PURE__ */ Q(zs, {
6917
+ /* @__PURE__ */ Q(Bs, {
6911
6918
  icon: /* @__PURE__ */ Q(n.device, { size: 13 }),
6912
6919
  label: "Trusted devices",
6913
6920
  hint: "Sign-in sessions by device",
@@ -6917,7 +6924,7 @@ function Ls() {
6917
6924
  children: "Manage"
6918
6925
  })
6919
6926
  }),
6920
- /* @__PURE__ */ Q(zs, {
6927
+ /* @__PURE__ */ Q(Bs, {
6921
6928
  icon: /* @__PURE__ */ Q(n.activity, { size: 13 }),
6922
6929
  label: "Sign-in history",
6923
6930
  hint: "Audit trail of recent logins",
@@ -7047,7 +7054,7 @@ function Ls() {
7047
7054
  })
7048
7055
  ]
7049
7056
  }),
7050
- /* @__PURE__ */ Q(Vs, { userId: t?.id }),
7057
+ /* @__PURE__ */ Q(Hs, { userId: t?.id }),
7051
7058
  t && /* @__PURE__ */ $("div", {
7052
7059
  style: {
7053
7060
  fontSize: 11,
@@ -7071,7 +7078,7 @@ function Ls() {
7071
7078
  })
7072
7079
  ]
7073
7080
  }),
7074
- /* @__PURE__ */ Q(Rs, {
7081
+ /* @__PURE__ */ Q(zs, {
7075
7082
  open: c,
7076
7083
  initialName: t?.display_name ?? "",
7077
7084
  userId: t?.id ?? "",
@@ -7080,7 +7087,7 @@ function Ls() {
7080
7087
  await i(), u(!1);
7081
7088
  }
7082
7089
  }),
7083
- /* @__PURE__ */ Q(Ps, {
7090
+ /* @__PURE__ */ Q(Fs, {
7084
7091
  open: o,
7085
7092
  onClose: () => s(!1),
7086
7093
  onSubmit: async ({ current: e, next: t }) => {
@@ -7090,7 +7097,7 @@ function Ls() {
7090
7097
  ]
7091
7098
  });
7092
7099
  }
7093
- function Rs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
7100
+ function zs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
7094
7101
  let o = U().isPhone, [s, c] = X(t), [l, u] = X(!1), [d, p] = X(null);
7095
7102
  if (!e) return null;
7096
7103
  let m = () => {
@@ -7236,7 +7243,7 @@ function Rs({ open: e, initialName: t, userId: r, onClose: i, onSaved: a }) {
7236
7243
  ]
7237
7244
  })] });
7238
7245
  }
7239
- function zs({ icon: e, label: t, hint: n, action: r }) {
7246
+ function Bs({ icon: e, label: t, hint: n, action: r }) {
7240
7247
  return /* @__PURE__ */ $("div", {
7241
7248
  style: {
7242
7249
  display: "flex",
@@ -7282,14 +7289,14 @@ function zs({ icon: e, label: t, hint: n, action: r }) {
7282
7289
  ]
7283
7290
  });
7284
7291
  }
7285
- function Bs() {
7292
+ function Vs() {
7286
7293
  try {
7287
7294
  return Intl.DateTimeFormat().resolvedOptions().timeZone || "—";
7288
7295
  } catch {
7289
7296
  return "—";
7290
7297
  }
7291
7298
  }
7292
- function Vs({ userId: e }) {
7299
+ function Hs({ userId: e }) {
7293
7300
  let { data: t } = qe();
7294
7301
  if (!e || !t) return null;
7295
7302
  let n = t.entities.profile;
@@ -7308,7 +7315,7 @@ function Vs({ userId: e }) {
7308
7315
  }
7309
7316
  //#endregion
7310
7317
  //#region src/components/pages/profile/Preferences.tsx
7311
- var Hs = [
7318
+ var Us = [
7312
7319
  {
7313
7320
  id: "violet",
7314
7321
  c: "#5B5BD6"
@@ -7329,11 +7336,11 @@ var Hs = [
7329
7336
  id: "rose",
7330
7337
  c: "#BE123C"
7331
7338
  }
7332
- ], Us = [
7339
+ ], Ws = [
7333
7340
  "compact",
7334
7341
  "comfortable",
7335
7342
  "cozy"
7336
- ], Ws = [
7343
+ ], Gs = [
7337
7344
  ["Command palette", "⌘ K"],
7338
7345
  ["Toggle AI assistant", "⌘ /"],
7339
7346
  ["Collapse sidebar", "⌘ B"],
@@ -7341,7 +7348,7 @@ var Hs = [
7341
7348
  ["Quick search", "/"],
7342
7349
  ["Escape / close", "Esc"]
7343
7350
  ];
7344
- function Gs() {
7351
+ function Ks() {
7345
7352
  let e = G((e) => e.colorScheme), t = G((e) => e.accent), r = G((e) => e.density), i = G((e) => e.radius), a = G((e) => e.zebra), o = G((e) => e.set), s = G((e) => e.resetToDefaults), { branding: c } = Ut(), l = U().isPhone;
7346
7353
  return /* @__PURE__ */ Q("div", {
7347
7354
  style: {
@@ -7404,7 +7411,7 @@ function Gs() {
7404
7411
  gap: 12
7405
7412
  },
7406
7413
  children: [
7407
- /* @__PURE__ */ Q(Ks, {
7414
+ /* @__PURE__ */ Q(qs, {
7408
7415
  label: "Theme",
7409
7416
  hint: "Pick light or dark (system sync coming soon)",
7410
7417
  children: /* @__PURE__ */ Q("div", {
@@ -7412,14 +7419,14 @@ function Gs() {
7412
7419
  display: "flex",
7413
7420
  gap: 6
7414
7421
  },
7415
- children: [["light", "Light"], ["dark", "Dark"]].map(([t, n]) => /* @__PURE__ */ Q(qs, {
7422
+ children: [["light", "Light"], ["dark", "Dark"]].map(([t, n]) => /* @__PURE__ */ Q(Js, {
7416
7423
  active: e === t,
7417
7424
  onClick: () => o("colorScheme", t),
7418
7425
  children: n
7419
7426
  }, t))
7420
7427
  })
7421
7428
  }),
7422
- /* @__PURE__ */ Q(Ks, {
7429
+ /* @__PURE__ */ Q(qs, {
7423
7430
  label: "Accent color",
7424
7431
  hint: "Your personal accent across the app",
7425
7432
  children: /* @__PURE__ */ Q("div", {
@@ -7427,7 +7434,7 @@ function Gs() {
7427
7434
  display: "flex",
7428
7435
  gap: 8
7429
7436
  },
7430
- children: Hs.map((e) => /* @__PURE__ */ Q("button", {
7437
+ children: Us.map((e) => /* @__PURE__ */ Q("button", {
7431
7438
  onClick: () => o("accent", e.id),
7432
7439
  "aria-label": `Accent ${e.id}`,
7433
7440
  style: {
@@ -7441,7 +7448,7 @@ function Gs() {
7441
7448
  }, e.id))
7442
7449
  })
7443
7450
  }),
7444
- /* @__PURE__ */ Q(Ks, {
7451
+ /* @__PURE__ */ Q(qs, {
7445
7452
  label: "Density",
7446
7453
  hint: "Compact saves space; cozy is easier on the eyes",
7447
7454
  children: /* @__PURE__ */ Q("div", {
@@ -7449,7 +7456,7 @@ function Gs() {
7449
7456
  display: "flex",
7450
7457
  gap: 6
7451
7458
  },
7452
- children: Us.map((e) => /* @__PURE__ */ Q(qs, {
7459
+ children: Ws.map((e) => /* @__PURE__ */ Q(Js, {
7453
7460
  active: r === e,
7454
7461
  onClick: () => o("density", e),
7455
7462
  capitalize: !0,
@@ -7457,7 +7464,7 @@ function Gs() {
7457
7464
  }, e))
7458
7465
  })
7459
7466
  }),
7460
- /* @__PURE__ */ $(Ks, {
7467
+ /* @__PURE__ */ $(qs, {
7461
7468
  label: "Border radius",
7462
7469
  children: [/* @__PURE__ */ Q("input", {
7463
7470
  type: "range",
@@ -7476,7 +7483,7 @@ function Gs() {
7476
7483
  children: [i, "px"]
7477
7484
  })]
7478
7485
  }),
7479
- /* @__PURE__ */ Q(Ks, {
7486
+ /* @__PURE__ */ Q(qs, {
7480
7487
  label: "Zebra rows",
7481
7488
  hint: "Alternating row backgrounds on tables",
7482
7489
  children: /* @__PURE__ */ Q(y, {
@@ -7497,7 +7504,7 @@ function Gs() {
7497
7504
  gridTemplateColumns: l ? "minmax(0, 1fr)" : "repeat(2, minmax(0, 1fr))",
7498
7505
  gap: 8
7499
7506
  },
7500
- children: Ws.map(([e, t]) => /* @__PURE__ */ $("div", {
7507
+ children: Gs.map(([e, t]) => /* @__PURE__ */ $("div", {
7501
7508
  style: {
7502
7509
  display: "flex",
7503
7510
  alignItems: "center",
@@ -7518,7 +7525,7 @@ function Gs() {
7518
7525
  })
7519
7526
  });
7520
7527
  }
7521
- function Ks({ label: e, hint: t, children: n }) {
7528
+ function qs({ label: e, hint: t, children: n }) {
7522
7529
  let r = U().isPhone;
7523
7530
  return /* @__PURE__ */ $("div", {
7524
7531
  style: {
@@ -7561,7 +7568,7 @@ function Ks({ label: e, hint: t, children: n }) {
7561
7568
  })]
7562
7569
  });
7563
7570
  }
7564
- function qs({ active: e, onClick: t, children: n, capitalize: r }) {
7571
+ function Js({ active: e, onClick: t, children: n, capitalize: r }) {
7565
7572
  return /* @__PURE__ */ Q("button", {
7566
7573
  onClick: t,
7567
7574
  style: {
@@ -7579,7 +7586,7 @@ function qs({ active: e, onClick: t, children: n, capitalize: r }) {
7579
7586
  }
7580
7587
  //#endregion
7581
7588
  //#region src/components/pages/AdminCatalogPage.tsx
7582
- function Js() {
7589
+ function Ys() {
7583
7590
  let { data: e } = qe(), [t, n] = X("handlers"), r = U().isPhone;
7584
7591
  return e ? /* @__PURE__ */ $("div", {
7585
7592
  style: {
@@ -7631,11 +7638,11 @@ function Js() {
7631
7638
  overflowY: "auto",
7632
7639
  padding: r ? "0 14px 20px" : "0 20px 20px"
7633
7640
  },
7634
- children: [t === "handlers" && /* @__PURE__ */ Q(Ys, { schema: e }), t === "actions" && /* @__PURE__ */ Q(Qs, { schema: e })]
7641
+ children: [t === "handlers" && /* @__PURE__ */ Q(Xs, { schema: e }), t === "actions" && /* @__PURE__ */ Q($s, { schema: e })]
7635
7642
  })]
7636
7643
  }) : null;
7637
7644
  }
7638
- function Ys({ schema: e }) {
7645
+ function Xs({ schema: e }) {
7639
7646
  let t = J(() => {
7640
7647
  let t = [];
7641
7648
  if (e.handlers) for (let [n, r] of Object.entries(e.handlers)) t.push({
@@ -7668,7 +7675,7 @@ function Ys({ schema: e }) {
7668
7675
  flexDirection: "column",
7669
7676
  gap: 8
7670
7677
  },
7671
- children: t.map(({ code: e, handler: t, entity: n }) => /* @__PURE__ */ Q(Xs, {
7678
+ children: t.map(({ code: e, handler: t, entity: n }) => /* @__PURE__ */ Q(Zs, {
7672
7679
  code: e,
7673
7680
  handler: t,
7674
7681
  entity: n
@@ -7676,7 +7683,7 @@ function Ys({ schema: e }) {
7676
7683
  })]
7677
7684
  });
7678
7685
  }
7679
- function Xs({ code: e, handler: t, entity: n }) {
7686
+ function Zs({ code: e, handler: t, entity: n }) {
7680
7687
  let [i, a] = X(!1), o = U().isPhone, s = t.display?.name ? H(t.display.name) : e;
7681
7688
  return /* @__PURE__ */ $("div", {
7682
7689
  style: {
@@ -7783,7 +7790,7 @@ function Xs({ code: e, handler: t, entity: n }) {
7783
7790
  },
7784
7791
  children: (t.params?.names() ?? []).map((e) => {
7785
7792
  let n = t.params.get(e);
7786
- return n ? /* @__PURE__ */ Q(Zs, {
7793
+ return n ? /* @__PURE__ */ Q(Qs, {
7787
7794
  code: e,
7788
7795
  param: n
7789
7796
  }, e) : null;
@@ -7792,7 +7799,7 @@ function Xs({ code: e, handler: t, entity: n }) {
7792
7799
  })]
7793
7800
  });
7794
7801
  }
7795
- function Zs({ code: e, param: t }) {
7802
+ function Qs({ code: e, param: t }) {
7796
7803
  let n = t.display?.name ? H(t.display.name) : void 0, r = U().isPhone;
7797
7804
  return /* @__PURE__ */ $("div", {
7798
7805
  style: {
@@ -7849,7 +7856,7 @@ function Zs({ code: e, param: t }) {
7849
7856
  ]
7850
7857
  });
7851
7858
  }
7852
- function Qs({ schema: e }) {
7859
+ function $s({ schema: e }) {
7853
7860
  let t = J(() => {
7854
7861
  let t = [];
7855
7862
  if (e.actions) for (let [n, r] of Object.entries(e.actions)) t.push({
@@ -7897,14 +7904,14 @@ function Qs({ schema: e }) {
7897
7904
  flexDirection: "column",
7898
7905
  gap: 6
7899
7906
  },
7900
- children: t.map(({ code: e, action: t }) => /* @__PURE__ */ Q($s, {
7907
+ children: t.map(({ code: e, action: t }) => /* @__PURE__ */ Q(ec, {
7901
7908
  code: e,
7902
7909
  action: t
7903
7910
  }, e))
7904
7911
  })] }, e))]
7905
7912
  });
7906
7913
  }
7907
- function $s({ code: e, action: t }) {
7914
+ function ec({ code: e, action: t }) {
7908
7915
  let n = H(t.display?.name), i = U().isPhone;
7909
7916
  return /* @__PURE__ */ $("div", {
7910
7917
  style: {
@@ -7997,14 +8004,14 @@ function $s({ code: e, action: t }) {
7997
8004
  }
7998
8005
  //#endregion
7999
8006
  //#region src/components/pages/ExportMenu.tsx
8000
- function ec(e) {
8007
+ function tc(e) {
8001
8008
  return !(e && e.enabled === !1);
8002
8009
  }
8003
- function tc(e) {
8010
+ function nc(e) {
8004
8011
  return e == null ? "all matching rows" : `${e.toLocaleString()} ${e === 1 ? "row" : "rows"}`;
8005
8012
  }
8006
- function nc(e) {
8007
- let { entityCode: t, entity: r, screen: i, viewState: a, visibleColumns: o, selectedRowPKs: s, totalRows: c, pageSize: l, locale: u, align: d = "end", variant: f = "toolbar", onBeforeOpen: p } = e, [m, h] = X(!1), [g, _] = X(!1), [v, y] = X(null), b = Y(null), x = ec(r.export), S = ec(i?.export);
8013
+ function rc(e) {
8014
+ let { entityCode: t, entity: r, screen: i, viewState: a, visibleColumns: o, selectedRowPKs: s, totalRows: c, pageSize: l, locale: u, align: d = "end", variant: f = "toolbar", onBeforeOpen: p } = e, [m, h] = X(!1), [g, _] = X(!1), [v, y] = X(null), b = Y(null), x = tc(r.export), S = tc(i?.export);
8008
8015
  if (!x || !S) return null;
8009
8016
  async function C(e) {
8010
8017
  y(null), _(!0);
@@ -8015,7 +8022,7 @@ function nc(e) {
8015
8022
  selectedRowPKs: e === "selected_rows" ? s : void 0,
8016
8023
  locale: u
8017
8024
  }), { blob: r, filename: i } = await V(t, n);
8018
- ic(r, i || `${t}-${rc()}.csv`), h(!1);
8025
+ ac(r, i || `${t}-${ic()}.csv`), h(!1);
8019
8026
  } catch (e) {
8020
8027
  let t = e instanceof ke ? {
8021
8028
  code: e.code,
@@ -8061,7 +8068,7 @@ function nc(e) {
8061
8068
  /* @__PURE__ */ $(j, {
8062
8069
  icon: /* @__PURE__ */ Q(n.download, { size: 12 }),
8063
8070
  onClick: g ? void 0 : () => void C("current_view"),
8064
- children: ["Current view (CSV) · ", tc(c)]
8071
+ children: ["Current view (CSV) · ", nc(c)]
8065
8072
  }),
8066
8073
  T && /* @__PURE__ */ $(j, {
8067
8074
  icon: /* @__PURE__ */ Q(n.check, { size: 12 }),
@@ -8100,17 +8107,17 @@ function nc(e) {
8100
8107
  ]
8101
8108
  })] });
8102
8109
  }
8103
- function rc() {
8110
+ function ic() {
8104
8111
  let e = /* @__PURE__ */ new Date(), t = (e) => String(e).padStart(2, "0");
8105
8112
  return `${e.getUTCFullYear()}${t(e.getUTCMonth() + 1)}${t(e.getUTCDate())}-${t(e.getUTCHours())}${t(e.getUTCMinutes())}`;
8106
8113
  }
8107
- function ic(e, t) {
8114
+ function ac(e, t) {
8108
8115
  let n = URL.createObjectURL(e), r = document.createElement("a");
8109
8116
  r.href = n, r.download = t, r.style.display = "none", document.body.appendChild(r), r.click(), document.body.removeChild(r), setTimeout(() => URL.revokeObjectURL(n), 0);
8110
8117
  }
8111
8118
  //#endregion
8112
8119
  //#region src/hooks/usePageState.ts
8113
- function ac(e, t, n) {
8120
+ function oc(e, t, n) {
8114
8121
  let r = oi(), i = n?.scope === "path" ? fn(r) : Ht(r), a = Y(i);
8115
8122
  a.current = i;
8116
8123
  let o = Y(t), s = dn((t) => t.ttlMs <= 0 ? void 0 : t.entries[i]?.bag[e]), c = s === void 0 ? o.current : s;
@@ -8123,7 +8130,7 @@ function ac(e, t, n) {
8123
8130
  }
8124
8131
  //#endregion
8125
8132
  //#region src/components/shared/EmptyState.tsx
8126
- function oc({ icon: e, title: t, description: n, action: i }) {
8133
+ function sc({ icon: e, title: t, description: n, action: i }) {
8127
8134
  return /* @__PURE__ */ $("div", {
8128
8135
  style: {
8129
8136
  display: "flex",
@@ -8175,7 +8182,7 @@ function oc({ icon: e, title: t, description: n, action: i }) {
8175
8182
  }
8176
8183
  //#endregion
8177
8184
  //#region src/hooks/useFilters.ts
8178
- function sc() {
8185
+ function cc() {
8179
8186
  let [e, t] = fi(), n = J(() => Nr(e), [e]);
8180
8187
  return {
8181
8188
  filters: n,
@@ -8192,17 +8199,17 @@ function sc() {
8192
8199
  }
8193
8200
  //#endregion
8194
8201
  //#region src/components/list/PeekFieldCell.tsx
8195
- var cc = /* @__PURE__ */ new Set([
8202
+ var lc = /* @__PURE__ */ new Set([
8196
8203
  "enum",
8197
8204
  "bool",
8198
8205
  "ref"
8199
8206
  ]);
8200
- function lc(e) {
8207
+ function uc(e) {
8201
8208
  let t = e.display?.widget;
8202
- return t && cc.has(t) ? !0 : cc.has(e.type);
8209
+ return t && lc.has(t) ? !0 : lc.has(e.type);
8203
8210
  }
8204
- function uc({ field: e, fieldName: t, label: r, value: i, record: a, refs: o, readOnly: s, onCommit: c }) {
8205
- let l = Je(), [u, d] = X(!1), [f, p] = X(i), m = lc(e);
8211
+ function dc({ field: e, fieldName: t, label: r, value: i, record: a, refs: o, readOnly: s, onCommit: c }) {
8212
+ let l = Je(), [u, d] = X(!1), [f, p] = X(i), m = uc(e);
8206
8213
  q(() => {
8207
8214
  u || p(i);
8208
8215
  }, [i, u]);
@@ -8332,7 +8339,7 @@ function uc({ field: e, fieldName: t, label: r, value: i, record: a, refs: o, re
8332
8339
  }
8333
8340
  //#endregion
8334
8341
  //#region src/components/list/QuickPeek.tsx
8335
- function dc(e, t = 12) {
8342
+ function fc(e, t = 12) {
8336
8343
  let i = e.display?.icon;
8337
8344
  if (!i) return null;
8338
8345
  let a = n[i];
@@ -8341,7 +8348,7 @@ function dc(e, t = 12) {
8341
8348
  size: t
8342
8349
  });
8343
8350
  }
8344
- function fc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatarName: o, fields: s, refs: c, screen: l, actions: u, executeAction: d, onClose: f, onOpen: p, onSave: m }) {
8351
+ function pc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatarName: o, fields: s, refs: c, screen: l, actions: u, executeAction: d, onClose: f, onOpen: p, onSave: m }) {
8345
8352
  let h = Je(), [g, _] = X({ ...r }), [v, y] = X(!1), [b, x] = X(!1), C = Y(null), { run: T } = z();
8346
8353
  q(() => {
8347
8354
  _({ ...r }), y(!1);
@@ -8473,7 +8480,7 @@ function fc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatar
8473
8480
  /* @__PURE__ */ Q(xe, { children: "Esc" }),
8474
8481
  " to close."
8475
8482
  ]
8476
- }), s.map((n) => /* @__PURE__ */ Q(pc, {
8483
+ }), s.map((n) => /* @__PURE__ */ Q(mc, {
8477
8484
  label: n.label,
8478
8485
  children: n.kind === "file" ? Kn({
8479
8486
  entity: e,
@@ -8485,7 +8492,7 @@ function fc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatar
8485
8492
  refs: c,
8486
8493
  disabled: n.readOnly,
8487
8494
  locale: h
8488
- }) : /* @__PURE__ */ Q(uc, {
8495
+ }) : /* @__PURE__ */ Q(dc, {
8489
8496
  field: n.field,
8490
8497
  fieldName: n.key,
8491
8498
  label: n.label,
@@ -8541,7 +8548,7 @@ function fc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatar
8541
8548
  width: 220,
8542
8549
  align: "end",
8543
8550
  children: ee.map(({ code: e, action: t }) => /* @__PURE__ */ Q(j, {
8544
- icon: dc(t),
8551
+ icon: fc(t),
8545
8552
  danger: t.destructive,
8546
8553
  onClick: () => {
8547
8554
  x(!1), te({
@@ -8555,7 +8562,7 @@ function fc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatar
8555
8562
  }),
8556
8563
  D && /* @__PURE__ */ Q(O, {
8557
8564
  kind: "default",
8558
- icon: dc(D.action, 13),
8565
+ icon: fc(D.action, 13),
8559
8566
  onClick: () => te(D),
8560
8567
  children: H(D.action.display?.name) || D.code
8561
8568
  }),
@@ -8570,7 +8577,7 @@ function fc({ entity: e, entityCode: t, record: r, title: i, recordId: a, avatar
8570
8577
  ]
8571
8578
  })] });
8572
8579
  }
8573
- function pc({ label: e, children: t }) {
8580
+ function mc({ label: e, children: t }) {
8574
8581
  return /* @__PURE__ */ $("div", {
8575
8582
  style: {
8576
8583
  display: "grid",
@@ -8591,7 +8598,7 @@ function pc({ label: e, children: t }) {
8591
8598
  }
8592
8599
  //#endregion
8593
8600
  //#region src/lib/format-count.ts
8594
- var mc = [
8601
+ var hc = [
8595
8602
  {
8596
8603
  value: 1e9,
8597
8604
  suffix: "B"
@@ -8605,26 +8612,26 @@ var mc = [
8605
8612
  suffix: "K"
8606
8613
  }
8607
8614
  ];
8608
- function hc(e) {
8615
+ function gc(e) {
8609
8616
  if (!Number.isFinite(e) || e < 0) return "~0";
8610
8617
  let t = Math.round(e);
8611
8618
  if (t < 1e3) return `~${t}`;
8612
- for (let { value: e, suffix: n } of mc) {
8619
+ for (let { value: e, suffix: n } of hc) {
8613
8620
  if (t < e) continue;
8614
8621
  let r = t / e;
8615
8622
  return `~${(r < 10 ? r.toFixed(1) : Math.round(r).toString()).replace(/\.0$/, "")}${n}`;
8616
8623
  }
8617
8624
  return `~${t.toLocaleString()}`;
8618
8625
  }
8619
- function gc(e) {
8626
+ function _c(e) {
8620
8627
  return !Number.isFinite(e) || e < 0 ? "0" : Math.round(e).toLocaleString();
8621
8628
  }
8622
- function _c(e, t) {
8623
- return t === "estimated" ? hc(e) : gc(e);
8629
+ function vc(e, t) {
8630
+ return t === "estimated" ? gc(e) : _c(e);
8624
8631
  }
8625
8632
  //#endregion
8626
8633
  //#region src/components/filters/FilterChips.tsx
8627
- function vc({ filters: e, onRemove: t, onClearAll: r, onChipClick: i, fieldLabel: a = (e) => e, resolveValue: o }) {
8634
+ function yc({ filters: e, onRemove: t, onClearAll: r, onChipClick: i, fieldLabel: a = (e) => e, resolveValue: o }) {
8628
8635
  return e.length === 0 ? null : Gr(e) ? /* @__PURE__ */ $("div", {
8629
8636
  style: {
8630
8637
  display: "flex",
@@ -8663,14 +8670,14 @@ function vc({ filters: e, onRemove: t, onClearAll: r, onChipClick: i, fieldLabel
8663
8670
  children: a(e.field)
8664
8671
  }),
8665
8672
  " ",
8666
- /* @__PURE__ */ Q(bc, {
8673
+ /* @__PURE__ */ Q(xc, {
8667
8674
  node: e,
8668
8675
  resolveValue: o
8669
8676
  })
8670
8677
  ] }, t))
8671
8678
  })]
8672
8679
  }, t))
8673
- }, n) : e.field && e.op ? /* @__PURE__ */ Q(yc, {
8680
+ }, n) : e.field && e.op ? /* @__PURE__ */ Q(bc, {
8674
8681
  node: e,
8675
8682
  fieldLabel: a,
8676
8683
  resolveValue: o,
@@ -8691,7 +8698,7 @@ function vc({ filters: e, onRemove: t, onClearAll: r, onChipClick: i, fieldLabel
8691
8698
  flexWrap: "wrap",
8692
8699
  paddingBottom: 12
8693
8700
  },
8694
- children: [Mr(e).map((e, n) => /* @__PURE__ */ Q(yc, {
8701
+ children: [Mr(e).map((e, n) => /* @__PURE__ */ Q(bc, {
8695
8702
  node: e,
8696
8703
  fieldLabel: a,
8697
8704
  resolveValue: o,
@@ -8706,7 +8713,7 @@ function vc({ filters: e, onRemove: t, onClearAll: r, onChipClick: i, fieldLabel
8706
8713
  })]
8707
8714
  });
8708
8715
  }
8709
- function yc({ node: e, fieldLabel: t, resolveValue: r, onRemove: i, onClick: a }) {
8716
+ function bc({ node: e, fieldLabel: t, resolveValue: r, onRemove: i, onClick: a }) {
8710
8717
  return /* @__PURE__ */ Q(l, {
8711
8718
  tone: "slate",
8712
8719
  icon: /* @__PURE__ */ Q(n.filter, { size: 11 }),
@@ -8720,7 +8727,7 @@ function yc({ node: e, fieldLabel: t, resolveValue: r, onRemove: i, onClick: a }
8720
8727
  " ",
8721
8728
  /* @__PURE__ */ Q("span", {
8722
8729
  style: { fontWeight: 600 },
8723
- children: /* @__PURE__ */ Q(bc, {
8730
+ children: /* @__PURE__ */ Q(xc, {
8724
8731
  node: e,
8725
8732
  resolveValue: r
8726
8733
  })
@@ -8728,18 +8735,18 @@ function yc({ node: e, fieldLabel: t, resolveValue: r, onRemove: i, onClick: a }
8728
8735
  ] })
8729
8736
  });
8730
8737
  }
8731
- function bc({ node: e, resolveValue: t }) {
8738
+ function xc({ node: e, resolveValue: t }) {
8732
8739
  let n = e.op, r = Ar[n] || n;
8733
8740
  return Lr.has(n) ? /* @__PURE__ */ Q(Z, { children: r }) : t ? /* @__PURE__ */ $(Z, { children: [
8734
8741
  r,
8735
8742
  " ",
8736
8743
  (Array.isArray(e.value) ? e.value : [e.value]).map((n, r) => {
8737
8744
  let i = t(e.field, n);
8738
- return /* @__PURE__ */ $(Yr, { children: [r > 0 ? ", " : "", /* @__PURE__ */ Q("span", { children: i.status === "loading" ? /* @__PURE__ */ Q(xc, {}) : i.label ?? i.raw })] }, r);
8745
+ return /* @__PURE__ */ $(Yr, { children: [r > 0 ? ", " : "", /* @__PURE__ */ Q("span", { children: i.status === "loading" ? /* @__PURE__ */ Q(Sc, {}) : i.label ?? i.raw })] }, r);
8739
8746
  })
8740
8747
  ] }) : /* @__PURE__ */ Q(Z, { children: Rr(e) });
8741
8748
  }
8742
- function xc() {
8749
+ function Sc() {
8743
8750
  return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("style", { children: "@keyframes declarion-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}" }), /* @__PURE__ */ Q("span", {
8744
8751
  "aria-label": "loading",
8745
8752
  style: {
@@ -8756,7 +8763,7 @@ function xc() {
8756
8763
  }
8757
8764
  //#endregion
8758
8765
  //#region src/components/filters/FilterDrawer.tsx
8759
- function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, defaultFilters: o, refs: s }) {
8766
+ function Cc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, defaultFilters: o, refs: s }) {
8760
8767
  let c = U().category === "phone", [l, u] = X(r), [d, f] = X(!1);
8761
8768
  if (q(() => {
8762
8769
  if (e) {
@@ -8870,7 +8877,7 @@ function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, d
8870
8877
  if (!e.or) {
8871
8878
  if (!e.field || !e.op) return null;
8872
8879
  let n = a.find((t) => t.code === e.field);
8873
- return n ? /* @__PURE__ */ Q(Oc, {
8880
+ return n ? /* @__PURE__ */ Q(kc, {
8874
8881
  node: e,
8875
8882
  meta: n,
8876
8883
  refs: s,
@@ -8879,7 +8886,7 @@ function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, d
8879
8886
  onRemove: () => _(t)
8880
8887
  }, `${e.field}-${t}`) : null;
8881
8888
  }
8882
- return /* @__PURE__ */ Q(kc, {
8889
+ return /* @__PURE__ */ Q(Ac, {
8883
8890
  groups: e.or,
8884
8891
  availableFields: a,
8885
8892
  refs: s,
@@ -8892,7 +8899,7 @@ function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, d
8892
8899
  }) : l.map((e, t) => {
8893
8900
  if (!e.field || !e.op) return null;
8894
8901
  let n = a.find((t) => t.code === e.field);
8895
- return n ? /* @__PURE__ */ Q(Oc, {
8902
+ return n ? /* @__PURE__ */ Q(kc, {
8896
8903
  node: e,
8897
8904
  meta: n,
8898
8905
  refs: s,
@@ -8907,7 +8914,7 @@ function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, d
8907
8914
  gap: 6,
8908
8915
  paddingTop: 6
8909
8916
  },
8910
- children: d ? /* @__PURE__ */ Q(Ac, {
8917
+ children: d ? /* @__PURE__ */ Q(jc, {
8911
8918
  fields: a,
8912
8919
  activeFields: m,
8913
8920
  compact: c,
@@ -8956,7 +8963,7 @@ function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, d
8956
8963
  /* @__PURE__ */ Q(O, {
8957
8964
  kind: "primary",
8958
8965
  onClick: () => {
8959
- i(wc(l)), t();
8966
+ i(Tc(l)), t();
8960
8967
  },
8961
8968
  children: "Apply"
8962
8969
  })
@@ -8965,14 +8972,14 @@ function Sc({ open: e, onClose: t, filters: r, onApply: i, availableFields: a, d
8965
8972
  ]
8966
8973
  })] });
8967
8974
  }
8968
- function Cc(e) {
8969
- return e == null || e === "" ? !1 : Array.isArray(e) ? e.length > 0 : !0;
8970
- }
8971
8975
  function wc(e) {
8976
+ return e == null || e === "" ? !1 : !Array.isArray(e) || e.length > 0;
8977
+ }
8978
+ function Tc(e) {
8972
8979
  let t = [];
8973
8980
  for (let n of e) {
8974
8981
  if (n.or) {
8975
- let e = n.or.map(wc).filter((e) => e.length > 0);
8982
+ let e = n.or.map(Tc).filter((e) => e.length > 0);
8976
8983
  e.length > 0 && t.push({
8977
8984
  ...n,
8978
8985
  or: e
@@ -8980,18 +8987,18 @@ function wc(e) {
8980
8987
  continue;
8981
8988
  }
8982
8989
  if (n.and) {
8983
- let e = wc(n.and);
8990
+ let e = Tc(n.and);
8984
8991
  e.length > 0 && t.push({
8985
8992
  ...n,
8986
8993
  and: e
8987
8994
  });
8988
8995
  continue;
8989
8996
  }
8990
- !n.field || !n.op || !Lr.has(n.op) && !Cc(n.value) || t.push(n);
8997
+ !n.field || !n.op || !Lr.has(n.op) && !wc(n.value) || t.push(n);
8991
8998
  }
8992
8999
  return t;
8993
9000
  }
8994
- function Tc(e) {
9001
+ function Ec(e) {
8995
9002
  return !e || e.length === 0 ? [] : [
8996
9003
  {
8997
9004
  value: "",
@@ -9009,8 +9016,8 @@ function Tc(e) {
9009
9016
  }
9010
9017
  ];
9011
9018
  }
9012
- var Ec = "__custom__";
9013
- function Dc({ meta: e, value: t, onUpdate: n }) {
9019
+ var Dc = "__custom__";
9020
+ function Oc({ meta: e, value: t, onUpdate: n }) {
9014
9021
  let r = e.specialValues ?? [], i = L(t), [a, o] = X(!r.some((e) => e.code === i) && i !== "");
9015
9022
  return a ? /* @__PURE__ */ Q($e, {
9016
9023
  "aria-label": `${e.label} filter value`,
@@ -9026,18 +9033,18 @@ function Dc({ meta: e, value: t, onUpdate: n }) {
9026
9033
  value: "",
9027
9034
  label: "Select…"
9028
9035
  },
9029
- ...Tc(r),
9036
+ ...Ec(r),
9030
9037
  {
9031
- value: Ec,
9038
+ value: Dc,
9032
9039
  label: "Custom value…"
9033
9040
  }
9034
9041
  ],
9035
9042
  onChange: (e) => {
9036
- e === Ec ? (o(!0), n({ value: "" })) : n({ value: e });
9043
+ e === Dc ? (o(!0), n({ value: "" })) : n({ value: e });
9037
9044
  }
9038
9045
  });
9039
9046
  }
9040
- function Oc({ node: e, meta: t, refs: r, compact: i, onUpdate: a, onRemove: s }) {
9047
+ function kc({ node: e, meta: t, refs: r, compact: i, onUpdate: a, onRemove: s }) {
9041
9048
  let c = Lr.has(e.op), l = t.operators.map((e) => ({
9042
9049
  value: e,
9043
9050
  label: Ar[e] || e
@@ -9081,13 +9088,13 @@ function Oc({ node: e, meta: t, refs: r, compact: i, onUpdate: a, onRemove: s })
9081
9088
  }) : t.options ? /* @__PURE__ */ Q(ue, {
9082
9089
  "aria-label": `${t.label} filter value`,
9083
9090
  value: L(e.value),
9084
- options: [...Tc(t.specialValues), ...t.options.map((e) => ({
9091
+ options: [...Ec(t.specialValues), ...t.options.map((e) => ({
9085
9092
  value: e.value,
9086
9093
  label: e.label
9087
9094
  }))],
9088
9095
  onChange: (e) => a({ value: e }),
9089
9096
  placeholder: "Select…"
9090
- }) : t.specialValues && t.specialValues.length > 0 ? /* @__PURE__ */ Q(Dc, {
9097
+ }) : t.specialValues && t.specialValues.length > 0 ? /* @__PURE__ */ Q(Oc, {
9091
9098
  meta: t,
9092
9099
  value: e.value,
9093
9100
  onUpdate: a
@@ -9106,7 +9113,7 @@ function Oc({ node: e, meta: t, refs: r, compact: i, onUpdate: a, onRemove: s })
9106
9113
  ]
9107
9114
  });
9108
9115
  }
9109
- function kc({ groups: e, availableFields: t, refs: r, compact: i, onChange: a }) {
9116
+ function Ac({ groups: e, availableFields: t, refs: r, compact: i, onChange: a }) {
9110
9117
  return /* @__PURE__ */ $("div", {
9111
9118
  style: {
9112
9119
  display: "flex",
@@ -9161,7 +9168,7 @@ function kc({ groups: e, availableFields: t, refs: r, compact: i, onChange: a })
9161
9168
  }),
9162
9169
  o.map((n, o) => {
9163
9170
  let c = t.find((e) => e.code === n.field);
9164
- return c ? /* @__PURE__ */ Q(Oc, {
9171
+ return c ? /* @__PURE__ */ Q(kc, {
9165
9172
  node: n,
9166
9173
  meta: c,
9167
9174
  refs: r,
@@ -9200,7 +9207,7 @@ function kc({ groups: e, availableFields: t, refs: r, compact: i, onChange: a })
9200
9207
  })]
9201
9208
  });
9202
9209
  }
9203
- function Ac({ fields: e, activeFields: t, compact: r, onSelect: i, onCancel: a }) {
9210
+ function jc({ fields: e, activeFields: t, compact: r, onSelect: i, onCancel: a }) {
9204
9211
  let [o, s] = X(""), c = e.filter((e) => !t.has(e.code) && (o === "" || e.label.toLowerCase().includes(o.toLowerCase()) || e.code.toLowerCase().includes(o.toLowerCase())));
9205
9212
  return /* @__PURE__ */ $("div", {
9206
9213
  style: {
@@ -9286,7 +9293,7 @@ function Ac({ fields: e, activeFields: t, compact: r, onSelect: i, onCancel: a }
9286
9293
  }
9287
9294
  //#endregion
9288
9295
  //#region src/components/pages/list/filter-meta.ts
9289
- function jc(e, t, n) {
9296
+ function Mc(e, t, n) {
9290
9297
  if (!e || !t) return [];
9291
9298
  let r = e.filters ?? t.fields.names(), i = [];
9292
9299
  for (let a of r) {
@@ -9330,7 +9337,7 @@ function jc(e, t, n) {
9330
9337
  }
9331
9338
  let r = t.fields.get(a);
9332
9339
  if (!r) continue;
9333
- let o = gt(r, a, n), s = Mc(r.type), c = r.values?.map((e) => ({
9340
+ let o = gt(r, a, n), s = Nc(r.type), c = r.values?.map((e) => ({
9334
9341
  value: e.code,
9335
9342
  label: H(e.name) || e.code,
9336
9343
  color: e.color
@@ -9347,7 +9354,7 @@ function jc(e, t, n) {
9347
9354
  }
9348
9355
  return i;
9349
9356
  }
9350
- function Mc(e) {
9357
+ function Nc(e) {
9351
9358
  switch (e) {
9352
9359
  case "string":
9353
9360
  case "text":
@@ -9435,11 +9442,11 @@ function Mc(e) {
9435
9442
  }
9436
9443
  //#endregion
9437
9444
  //#region src/components/pages/list/use-filter-value-labels.ts
9438
- var Nc = 200;
9439
- function Pc(e, t, n, r) {
9440
- let i = new Map(e.map((e) => [e.code, e])), a = Fc(i, t, n, r), o = _i({ queries: a.map((e) => {
9445
+ var Pc = 200;
9446
+ function Fc(e, t, n, r) {
9447
+ let i = new Map(e.map((e) => [e.code, e])), a = Ic(i, t, n, r), o = _i({ queries: a.map((e) => {
9441
9448
  let t = {
9442
- per_page: Nc,
9449
+ per_page: Pc,
9443
9450
  filters: [{
9444
9451
  field: e.lookupField,
9445
9452
  op: "in",
@@ -9514,7 +9521,7 @@ function Pc(e, t, n, r) {
9514
9521
  refs: s
9515
9522
  };
9516
9523
  }
9517
- function Fc(e, t, n, r) {
9524
+ function Ic(e, t, n, r) {
9518
9525
  let i = /* @__PURE__ */ new Map();
9519
9526
  for (let a of Mr(t)) {
9520
9527
  if (!a.field) continue;
@@ -9539,7 +9546,7 @@ function Fc(e, t, n, r) {
9539
9546
  }
9540
9547
  //#endregion
9541
9548
  //#region src/components/pages/list/SaveViewDialog.tsx
9542
- function Ic({ open: e, pending: t, onClose: n, onSave: r }) {
9549
+ function Lc({ open: e, pending: t, onClose: n, onSave: r }) {
9543
9550
  let [i, a] = X("");
9544
9551
  if (q(() => {
9545
9552
  e && a("");
@@ -9636,7 +9643,7 @@ function Ic({ open: e, pending: t, onClose: n, onSave: r }) {
9636
9643
  }
9637
9644
  //#endregion
9638
9645
  //#region src/components/pages/list/ListHeader.tsx
9639
- function Lc({ title: e, description: t, toolbarActions: r, screenActionLayout: i, entityActionLayout: a, selectedIds: o, data: s, rowKey: c, onActionSuccess: l, widgetContext: u }) {
9646
+ function Rc({ title: e, description: t, toolbarActions: r, screenActionLayout: i, entityActionLayout: a, selectedIds: o, data: s, rowKey: c, onActionSuccess: l, widgetContext: u }) {
9640
9647
  let { run: d } = z(), f = Yt("list"), p = f.isVisible("show_title"), m = f.isVisible("show_actions"), h = Ln(), g = J(() => {
9641
9648
  let e = {};
9642
9649
  for (let { code: t, action: n } of r) e[t] = n;
@@ -9722,7 +9729,7 @@ function Lc({ title: e, description: t, toolbarActions: r, screenActionLayout: i
9722
9729
  }
9723
9730
  //#endregion
9724
9731
  //#region src/components/pages/list/ListBulkBar.tsx
9725
- function Rc({ selectedIds: e, floatbarActions: t, screenActionLayout: r, entityActionLayout: i, data: a, rowKey: o, entityCode: s, onClear: c, onActionSuccess: l, widgetContext: u }) {
9732
+ function zc({ selectedIds: e, floatbarActions: t, screenActionLayout: r, entityActionLayout: i, data: a, rowKey: o, entityCode: s, onClear: c, onActionSuccess: l, widgetContext: u }) {
9726
9733
  let { run: d } = z(), f = yi(), p = J(() => {
9727
9734
  let e = {};
9728
9735
  for (let { code: n, action: r } of t) e[n] = r;
@@ -9824,7 +9831,7 @@ function Rc({ selectedIds: e, floatbarActions: t, screenActionLayout: r, entityA
9824
9831
  }
9825
9832
  //#endregion
9826
9833
  //#region src/components/pages/list/DataCell.tsx
9827
- function zc({ cell: e }) {
9834
+ function Bc({ cell: e }) {
9828
9835
  let t = e.column.id === "_select", n = e.column.id === "_actions", r = e.column.columnDef.cell, i = typeof r == "function" ? r(e.getContext()) : r;
9829
9836
  return /* @__PURE__ */ Q("td", {
9830
9837
  title: typeof i == "string" ? i : void 0,
@@ -9848,7 +9855,7 @@ function zc({ cell: e }) {
9848
9855
  }
9849
9856
  //#endregion
9850
9857
  //#region src/components/pages/list/RowActionsCell.tsx
9851
- function Bc({ row: e, rowId: t, screen: r, fullScreen: i, entity: a, entityCode: o, hasDefaultEditAction: s, hasDefaultDeleteAction: c, rowActions: l, tabNavigate: u, onPeek: d, locale: f }) {
9858
+ function Vc({ row: e, rowId: t, screen: r, fullScreen: i, entity: a, entityCode: o, hasDefaultEditAction: s, hasDefaultDeleteAction: c, rowActions: l, tabNavigate: u, onPeek: d, locale: f }) {
9852
9859
  let { run: p } = z(), m = J(() => ({
9853
9860
  entity: a,
9854
9861
  entityCode: o ?? "",
@@ -9924,7 +9931,7 @@ function Bc({ row: e, rowId: t, screen: r, fullScreen: i, entity: a, entityCode:
9924
9931
  }
9925
9932
  //#endregion
9926
9933
  //#region src/components/pages/list/columns.ts
9927
- function Vc(e, t, r, i) {
9934
+ function Hc(e, t, r, i) {
9928
9935
  let a = Wn(t, r);
9929
9936
  if (!a || a.read !== "denied") return i ? Zr("span", { title: i }, e) : e;
9930
9937
  let o = a.required_permission ? `Locked column: requires "${a.required_permission}"` : `Locked column: ${a.classification} classification`;
@@ -9934,7 +9941,7 @@ function Vc(e, t, r, i) {
9934
9941
  className: "inline-flex items-center gap-1"
9935
9942
  }, Zr(n.lock, { size: 12 }), e);
9936
9943
  }
9937
- function Hc(e) {
9944
+ function Uc(e) {
9938
9945
  let { visibleCols: t, entity: n, screen: r, schema: i, entityCode: a, rowActions: o, hasBatchActions: s, hasExplicitRowActions: c, canUpdate: l, canDelete: u, peekEnabled: d, userLocale: f, tabNavigate: p, refsRef: m, rowSelectionKey: h, setPeekRow: g } = e;
9939
9946
  if (t.length === 0 || !n) return [];
9940
9947
  let _ = [];
@@ -9977,7 +9984,7 @@ function Hc(e) {
9977
9984
  if (!r) continue;
9978
9985
  _.push({
9979
9986
  id: e,
9980
- header: () => Vc(H(r.name) || t, n, t, H(r.description) || void 0),
9987
+ header: () => Hc(H(r.name) || t, n, t, H(r.description) || void 0),
9981
9988
  size: 150,
9982
9989
  enableSorting: !1,
9983
9990
  cell: ({ row: e }) => {
@@ -9991,7 +9998,7 @@ function Hc(e) {
9991
9998
  _.push({
9992
9999
  id: e,
9993
10000
  accessorFn: (t) => t.$files?.[e] ?? null,
9994
- header: () => Vc(_r(n, e, i?.entities), n, e),
10001
+ header: () => Hc(_r(n, e, i?.entities), n, e),
9995
10002
  size: 150,
9996
10003
  cell: ({ row: t }) => Kn({
9997
10004
  entity: n,
@@ -10021,7 +10028,7 @@ function Hc(e) {
10021
10028
  _.push({
10022
10029
  id: e,
10023
10030
  accessorKey: e,
10024
- header: () => Vc(r, n, e, H(t.display?.description) || void 0),
10031
+ header: () => Hc(r, n, e, H(t.display?.description) || void 0),
10025
10032
  enableSorting: t.type !== "json",
10026
10033
  size: o ?? 150,
10027
10034
  cell: ({ getValue: e, row: t }) => s(e(), t.original)
@@ -10032,7 +10039,7 @@ function Hc(e) {
10032
10039
  id: "_actions",
10033
10040
  header: "",
10034
10041
  size: 40,
10035
- cell: ({ row: e }) => Zr(Bc, {
10042
+ cell: ({ row: e }) => Zr(Vc, {
10036
10043
  row: e.original,
10037
10044
  rowId: h(n, e.original),
10038
10045
  screen: r,
@@ -10050,7 +10057,7 @@ function Hc(e) {
10050
10057
  }
10051
10058
  //#endregion
10052
10059
  //#region src/components/columns/ColumnPicker.tsx
10053
- function Uc({ availableColumns: e, visibleColumns: t, onToggle: r, onReset: i, onShowAll: a, columnLabel: o = (e) => e }) {
10060
+ function Wc({ availableColumns: e, visibleColumns: t, onToggle: r, onReset: i, onShowAll: a, columnLabel: o = (e) => e }) {
10054
10061
  let s = Y(null), [c, l] = X(!1);
10055
10062
  return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(O, {
10056
10063
  ref: s,
@@ -10100,7 +10107,7 @@ function Uc({ availableColumns: e, visibleColumns: t, onToggle: r, onReset: i, o
10100
10107
  }
10101
10108
  //#endregion
10102
10109
  //#region src/components/views/ViewSwitcher.tsx
10103
- var Wc = {
10110
+ var Gc = {
10104
10111
  display: "flex",
10105
10112
  alignItems: "center",
10106
10113
  gap: 6,
@@ -10114,7 +10121,7 @@ var Wc = {
10114
10121
  color: "var(--text-2)",
10115
10122
  fontFamily: "inherit"
10116
10123
  };
10117
- function Gc({ views: e, activeViewId: t, isDirty: r, onSelect: i, onSave: a, onSaveAs: o }) {
10124
+ function Kc({ views: e, activeViewId: t, isDirty: r, onSelect: i, onSave: a, onSaveAs: o }) {
10118
10125
  let s = Y(null), [c, l] = X(!1), u = e.find((e) => e.id === t), d = e.filter((e) => e.source === "system"), f = e.filter((e) => e.source === "personal"), p = e.filter((e) => e.source === "shared"), m = u ? H(u.name) : "Default view", h = (e) => /* @__PURE__ */ Q("div", {
10119
10126
  style: {
10120
10127
  padding: "6px 8px 4px",
@@ -10137,7 +10144,7 @@ function Gc({ views: e, activeViewId: t, isDirty: r, onSelect: i, onSave: a, onS
10137
10144
  ref: s,
10138
10145
  type: "button",
10139
10146
  onClick: () => l((e) => !e),
10140
- style: Wc,
10147
+ style: Gc,
10141
10148
  children: [
10142
10149
  /* @__PURE__ */ Q(n.star, { size: 12 }),
10143
10150
  /* @__PURE__ */ Q("span", { children: m }),
@@ -10216,14 +10223,14 @@ function Gc({ views: e, activeViewId: t, isDirty: r, onSelect: i, onSave: a, onS
10216
10223
  }
10217
10224
  //#endregion
10218
10225
  //#region src/hooks/useScreen.ts
10219
- function Kc(e) {
10226
+ function qc(e) {
10220
10227
  let { data: t } = qe();
10221
10228
  if (!(!t || !e)) return t.screens[e];
10222
10229
  }
10223
10230
  //#endregion
10224
10231
  //#region src/hooks/useViews.ts
10225
- function qc(e, t) {
10226
- let n = Kc(e), { data: r } = v("view", {
10232
+ function Jc(e, t) {
10233
+ let n = qc(e), { data: r } = v("view", {
10227
10234
  filters: [{
10228
10235
  field: "screen_code",
10229
10236
  op: "eq",
@@ -10273,7 +10280,7 @@ function qc(e, t) {
10273
10280
  }
10274
10281
  //#endregion
10275
10282
  //#region src/components/pages/SmartListPage.tsx
10276
- function Jc({ field: e, activeDir: t, activeNulls: r, inMultiSort: i, canAppend: a, onApply: o, onAppend: s, onClearColumn: c, onClearAll: l }) {
10283
+ function Yc({ field: e, activeDir: t, activeNulls: r, inMultiSort: i, canAppend: a, onApply: o, onAppend: s, onClearColumn: c, onClearAll: l }) {
10277
10284
  let u = Y(null), [d, f] = X(!1), p = [
10278
10285
  {
10279
10286
  label: "Sort ascending, empty last",
@@ -10372,7 +10379,7 @@ function Jc({ field: e, activeDir: t, activeNulls: r, inMultiSort: i, canAppend:
10372
10379
  ]
10373
10380
  })] });
10374
10381
  }
10375
- var Yc = 1e4, Xc = [
10382
+ var Xc = 1e4, Zc = [
10376
10383
  25,
10377
10384
  50,
10378
10385
  100,
@@ -10380,7 +10387,7 @@ var Yc = 1e4, Xc = [
10380
10387
  500,
10381
10388
  1e3
10382
10389
  ];
10383
- function Zc(e, t) {
10390
+ function Qc(e, t) {
10384
10391
  let [n, r] = X(!1);
10385
10392
  return q(() => {
10386
10393
  if (!e) {
@@ -10388,14 +10395,14 @@ function Zc(e, t) {
10388
10395
  return;
10389
10396
  }
10390
10397
  r(!1);
10391
- let t = window.setTimeout(() => r(!0), Yc);
10398
+ let t = window.setTimeout(() => r(!0), Xc);
10392
10399
  return () => window.clearTimeout(t);
10393
10400
  }, [e, t]), n;
10394
10401
  }
10395
- function Qc(e) {
10402
+ function $c(e) {
10396
10403
  return e instanceof ke ? `${e.code}: ${e.message}` : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again.";
10397
10404
  }
10398
- var $c = /* @__PURE__ */ new Set([
10405
+ var el = /* @__PURE__ */ new Set([
10399
10406
  "secret",
10400
10407
  "password",
10401
10408
  "json",
@@ -10403,13 +10410,13 @@ var $c = /* @__PURE__ */ new Set([
10403
10410
  "int_array",
10404
10411
  "uuid_array"
10405
10412
  ]);
10406
- function el(e, t) {
10413
+ function tl(e, t) {
10407
10414
  if (e === "_actions" || e === "_select" || e.startsWith("$property.") || e.startsWith("$refs.")) return !1;
10408
10415
  if (e.startsWith("$status.")) return !0;
10409
10416
  let n = t?.fields.get(e);
10410
- return n ? !$c.has(n.type) : !1;
10417
+ return n ? !el.has(n.type) : !1;
10411
10418
  }
10412
- function tl(e) {
10419
+ function nl(e) {
10413
10420
  let t = new URLSearchParams(), n = e.get("search");
10414
10421
  n && t.set("search", n);
10415
10422
  for (let n of Ue) {
@@ -10418,27 +10425,27 @@ function tl(e) {
10418
10425
  }
10419
10426
  return t;
10420
10427
  }
10421
- function nl(e, t) {
10428
+ function rl(e, t) {
10422
10429
  return ut(e, ct(e, t));
10423
10430
  }
10424
- function rl(e, t, n) {
10431
+ function il(e, t, n) {
10425
10432
  if (!e || n.length === 0) return [];
10426
10433
  let r = new Set(n);
10427
- return t.filter((t) => r.has(nl(e, t))).map((t) => ct(e, t));
10434
+ return t.filter((t) => r.has(rl(e, t))).map((t) => ct(e, t));
10428
10435
  }
10429
- function il(e, t) {
10436
+ function al(e, t) {
10430
10437
  let n = L(t.id);
10431
10438
  n && e.setQueriesData({ queryKey: ["entity-data", "view"] }, (e) => !e || e.data.some((e) => L(e.id) === n) ? e : {
10432
10439
  ...e,
10433
10440
  data: [t, ...e.data]
10434
10441
  });
10435
10442
  }
10436
- var al = {};
10437
- function ol({ screenCode: e }) {
10438
- return /* @__PURE__ */ Q(xt, { children: /* @__PURE__ */ Q(sl, { screenCode: e }) });
10439
- }
10443
+ var ol = {};
10440
10444
  function sl({ screenCode: e }) {
10441
- let t = Gn(), r = yi(), [a, o] = fi(), { data: s } = qe(), c = Je(), [l, u] = X(null), [d, f] = ac("selection", al, { scope: "path" }), [p, m] = X(!1), [h, g] = X(!1), [_, y] = X(!1), [b, x] = X(!1), C = Y(null), [T, E] = X(null), { filters: D, activeCount: ee, setFilters: te, clearFilters: ne } = sc(), re = I((e) => e.user), ie = I((e) => e.activeTenant), ae = qc(e, re?.id), oe = Ie(), le = `dcl:smartlist:default-view-cleared:${e}`, ue = Y(!1);
10445
+ return /* @__PURE__ */ Q(xt, { children: /* @__PURE__ */ Q(cl, { screenCode: e }) });
10446
+ }
10447
+ function cl({ screenCode: e }) {
10448
+ let t = Gn(), r = yi(), [a, o] = fi(), { data: s } = qe(), c = Je(), [l, u] = X(null), [d, f] = oc("selection", ol, { scope: "path" }), [p, m] = X(!1), [h, g] = X(!1), [_, y] = X(!1), [b, x] = X(!1), C = Y(null), [T, E] = X(null), { filters: D, activeCount: ee, setFilters: te, clearFilters: ne } = cc(), re = I((e) => e.user), k = I((e) => e.activeTenant), ae = Jc(e, re?.id), oe = Ie(), le = `dcl:smartlist:default-view-cleared:${e}`, ue = Y(!1);
10442
10449
  q(() => {
10443
10450
  if (ue.current || !ae || ae.length === 0) return;
10444
10451
  if (a.get("view")) {
@@ -10452,7 +10459,7 @@ function sl({ screenCode: e }) {
10452
10459
  let e = ae.find((e) => e.source === "personal" && e.is_default);
10453
10460
  if (!e || !e.id) return;
10454
10461
  ue.current = !0;
10455
- let t = tl(a);
10462
+ let t = nl(a);
10456
10463
  t.set("view", e.id), e.filters && Array.isArray(e.filters) && e.filters.length > 0 && t.set("filters", JSON.stringify(e.filters)), e.columns && e.columns.length > 0 && t.set("columns", e.columns.join(",")), e.sort && t.set("sort", e.sort), o(t, { replace: !0 });
10457
10464
  }, [
10458
10465
  ae,
@@ -10481,11 +10488,11 @@ function sl({ screenCode: e }) {
10481
10488
  let e = /* @__PURE__ */ new Map();
10482
10489
  for (let t of R) t.nulls && e.set(t.field, t.nulls);
10483
10490
  return e;
10484
- }, [R]), ze = J(() => _n(Pe), [Pe]), Be = J(() => jc(A, M, s?.entities), [
10491
+ }, [R]), ze = J(() => _n(Pe), [Pe]), Be = J(() => Mc(A, M, s?.entities), [
10485
10492
  A,
10486
10493
  M,
10487
10494
  s?.entities
10488
- ]), Ve = k(Me, 300), He = U(), Ue = Yt("list"), We = a.get("view"), Ge = J(() => ae.find((e) => e.id === We), [ae, We]), Ke = J(() => {
10495
+ ]), Ve = ie(Me, 300), He = U(), Ue = Yt("list"), We = a.get("view"), Ge = J(() => ae.find((e) => e.id === We), [ae, We]), Ke = J(() => {
10489
10496
  let e = A?.responsive?.[He.category]?.presentation;
10490
10497
  return e === "table" || e === "cards" ? e : He.category === "phone" ? "cards" : "table";
10491
10498
  }, [A?.responsive, He.category]), Ye = J(() => {
@@ -10548,7 +10555,7 @@ function sl({ screenCode: e }) {
10548
10555
  limit: je
10549
10556
  }, V = jr(N, ht, B);
10550
10557
  un(se(N, et), !B), un(Kr(N, ht), B);
10551
- let _t = B ? V.isLoading : nt, yt = B ? V.isFetching : rt, bt = B ? V.isError : it, xt = B ? V.error : at, St = B ? V.total : ft?.meta?.total, Ct = B ? V.countMode : ft?.meta?.count_mode, wt = B ? V.isLoading : pt, Tt = B ? !1 : mt, Et = Zc(_t, `${N ?? ""}|${a.toString()}`), Dt = K(() => {
10558
+ let _t = B ? V.isLoading : nt, yt = B ? V.isFetching : rt, bt = B ? V.isError : it, xt = B ? V.error : at, St = B ? V.total : ft?.meta?.total, Ct = B ? V.countMode : ft?.meta?.count_mode, wt = B ? V.isLoading : pt, Tt = !B && mt, Et = Qc(_t, `${N ?? ""}|${a.toString()}`), Dt = K(() => {
10552
10559
  N && r.cancelQueries({ queryKey: ["entity-data", N] }), B ? V.refetch() : dt();
10553
10560
  }, [
10554
10561
  N,
@@ -10559,7 +10566,7 @@ function sl({ screenCode: e }) {
10559
10566
  ]), Ot = dr((e) => e.degradedEntities), kt = Cn(M?.realtime, Ot, N ?? ""), At = Nn(N ?? ""), jt = bn(N ?? ""), Mt = xn("view"), Nt = J(() => R.map((e) => ({
10560
10567
  id: e.field,
10561
10568
  desc: e.dir === "desc"
10562
- })), [R]), Pt = J(() => M?.fields.names().find((e) => M.fields.get(e)?.primary) ?? "id", [M]), Ft = K((e) => M ? nl(M, e) : L(e[Pt]), [M, Pt]), It = B ? V.refs : tt?.$refs, Lt = Y(It);
10569
+ })), [R]), Pt = J(() => M?.fields.names().find((e) => M.fields.get(e)?.primary) ?? "id", [M]), Ft = K((e) => M ? rl(M, e) : L(e[Pt]), [M, Pt]), It = B ? V.refs : tt?.$refs, Lt = Y(It);
10563
10570
  Lt.current = It;
10564
10571
  let Rt = J(() => {
10565
10572
  let e = /* @__PURE__ */ new Map();
@@ -10586,7 +10593,7 @@ function sl({ screenCode: e }) {
10586
10593
  s?.screens,
10587
10594
  Lt,
10588
10595
  c
10589
- ]), { labelFor: zt, refs: Bt } = Pc(Be, D, It, s?.entities), [Vt, Ht] = X(null), Ut = A?.on_row_click === "peek" && A.quick_peek?.enabled !== !1 && He.category !== "phone", Wt = J(() => Hc({
10596
+ ]), { labelFor: zt, refs: Bt } = Fc(Be, D, It, s?.entities), [Vt, Ht] = X(null), Ut = A?.on_row_click === "peek" && A.quick_peek?.enabled !== !1 && He.category !== "phone", Wt = J(() => Uc({
10590
10597
  visibleCols: Ye,
10591
10598
  entity: M,
10592
10599
  screen: A,
@@ -10601,7 +10608,7 @@ function sl({ screenCode: e }) {
10601
10608
  userLocale: c,
10602
10609
  tabNavigate: t,
10603
10610
  refsRef: Lt,
10604
- rowSelectionKey: nl,
10611
+ rowSelectionKey: rl,
10605
10612
  setPeekRow: Ht
10606
10613
  }), [
10607
10614
  A,
@@ -10657,7 +10664,7 @@ function sl({ screenCode: e }) {
10657
10664
  onRowSelectionChange: f,
10658
10665
  getRowId: Ft,
10659
10666
  rowCount: St ?? Gt.length
10660
- }), Qt = J(() => Object.keys(d).filter((e) => d[e]), [d]), $t = J(() => rl(M, Gt, Qt), [
10667
+ }), Qt = J(() => Object.keys(d).filter((e) => d[e]), [d]), $t = J(() => il(M, Gt, Qt), [
10661
10668
  M,
10662
10669
  Gt,
10663
10670
  Qt
@@ -10857,7 +10864,7 @@ function sl({ screenCode: e }) {
10857
10864
  return n ? H(n.name) || t : e;
10858
10865
  }
10859
10866
  return _r(M, e, s?.entities);
10860
- }, er = (A.columns ?? []).filter((e) => el(e, M)), tr = $t.map((e) => ut(M, e)), rr = [];
10867
+ }, er = (A.columns ?? []).filter((e) => tl(e, M)), tr = $t.map((e) => ut(M, e)), rr = [];
10861
10868
  if (Qt.length > 0) {
10862
10869
  let e = /* @__PURE__ */ new Map();
10863
10870
  for (let t of Gt) e.set(Ft(t), t);
@@ -10902,7 +10909,7 @@ function sl({ screenCode: e }) {
10902
10909
  row: e.original
10903
10910
  });
10904
10911
  },
10905
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ Q(zc, { cell: e }, e.id))
10912
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ Q(Bc, { cell: e }, e.id))
10906
10913
  }, e.id);
10907
10914
  }, or = (e) => {
10908
10915
  if (e.startsWith("$status.")) {
@@ -11129,7 +11136,7 @@ function sl({ screenCode: e }) {
11129
11136
  })
11130
11137
  ]
11131
11138
  }),
11132
- /* @__PURE__ */ Q(Bc, {
11139
+ /* @__PURE__ */ Q(Vc, {
11133
11140
  row: r,
11134
11141
  rowId: Ft(r),
11135
11142
  screen: A,
@@ -11156,7 +11163,7 @@ function sl({ screenCode: e }) {
11156
11163
  },
11157
11164
  children: [
11158
11165
  /* @__PURE__ */ $(Z, { children: [
11159
- /* @__PURE__ */ Q(Lc, {
11166
+ /* @__PURE__ */ Q(Rc, {
11160
11167
  title: Wn,
11161
11168
  description: Yn,
11162
11169
  toolbarActions: ge,
@@ -11177,13 +11184,13 @@ function sl({ screenCode: e }) {
11177
11184
  flexWrap: "wrap"
11178
11185
  },
11179
11186
  children: [
11180
- /* @__PURE__ */ Q(Gc, {
11187
+ /* @__PURE__ */ Q(Kc, {
11181
11188
  views: ae,
11182
11189
  activeViewId: a.get("view"),
11183
11190
  isDirty: !1,
11184
11191
  onSelect: (e) => {
11185
11192
  if (!e.id) {
11186
- typeof window < "u" && window.sessionStorage?.setItem(le, "1"), o(tl(a));
11193
+ typeof window < "u" && window.sessionStorage?.setItem(le, "1"), o(nl(a));
11187
11194
  return;
11188
11195
  }
11189
11196
  let t = new URLSearchParams(a);
@@ -11280,7 +11287,7 @@ function sl({ screenCode: e }) {
11280
11287
  })] })
11281
11288
  ]
11282
11289
  })] }),
11283
- !Zn && /* @__PURE__ */ Q(Uc, {
11290
+ !Zn && /* @__PURE__ */ Q(Wc, {
11284
11291
  availableColumns: A.columns ?? [],
11285
11292
  visibleColumns: Ye,
11286
11293
  onToggle: (e) => {
@@ -11357,7 +11364,7 @@ function sl({ screenCode: e }) {
11357
11364
  capability: M.documents,
11358
11365
  canManageTemplates: en(s)
11359
11366
  }),
11360
- N && M && /* @__PURE__ */ Q(nc, {
11367
+ N && M && /* @__PURE__ */ Q(rc, {
11361
11368
  entityCode: N,
11362
11369
  entity: M,
11363
11370
  screen: A,
@@ -11380,7 +11387,7 @@ function sl({ screenCode: e }) {
11380
11387
  }),
11381
11388
  D.length > 0 && /* @__PURE__ */ Q("div", {
11382
11389
  style: { padding: "0 20px 10px" },
11383
- children: /* @__PURE__ */ Q(vc, {
11390
+ children: /* @__PURE__ */ Q(yc, {
11384
11391
  filters: D,
11385
11392
  resolveValue: zt,
11386
11393
  onRemove: (e) => te(Pr(D, e)),
@@ -11403,7 +11410,7 @@ function sl({ screenCode: e }) {
11403
11410
  ] }),
11404
11411
  _t && Et ? /* @__PURE__ */ Q("div", {
11405
11412
  style: { padding: "0 20px" },
11406
- children: /* @__PURE__ */ Q(oc, {
11413
+ children: /* @__PURE__ */ Q(sc, {
11407
11414
  icon: "alert-circle",
11408
11415
  title: "Still loading data",
11409
11416
  description: "This table is taking longer than expected. Retry the request or check network and server health.",
@@ -11416,10 +11423,10 @@ function sl({ screenCode: e }) {
11416
11423
  })
11417
11424
  }) : _t ? /* @__PURE__ */ Q(Mn, { cols: A.columns?.length ?? 4 }) : bt ? /* @__PURE__ */ Q("div", {
11418
11425
  style: { padding: "0 20px" },
11419
- children: /* @__PURE__ */ Q(oc, {
11426
+ children: /* @__PURE__ */ Q(sc, {
11420
11427
  icon: "alert-circle",
11421
11428
  title: "Failed to load data",
11422
- description: Qc(xt),
11429
+ description: $c(xt),
11423
11430
  action: /* @__PURE__ */ Q(O, {
11424
11431
  kind: "primary",
11425
11432
  size: "sm",
@@ -11436,7 +11443,7 @@ function sl({ screenCode: e }) {
11436
11443
  target: "_blank",
11437
11444
  rel: "noopener noreferrer",
11438
11445
  children: "Learn more"
11439
- })] })] }) : fe ? `Create your first ${H(Un.name).toLowerCase()} to get started` : void 0, /* @__PURE__ */ Q(oc, {
11446
+ })] })] }) : fe ? `Create your first ${H(Un.name).toLowerCase()} to get started` : void 0, /* @__PURE__ */ Q(sc, {
11440
11447
  icon: qn,
11441
11448
  title: a,
11442
11449
  description: o
@@ -11504,7 +11511,7 @@ function sl({ screenCode: e }) {
11504
11511
  background: "var(--surface-2)"
11505
11512
  },
11506
11513
  children: e.headers.map((e) => {
11507
- let t = el(e.id, M), r = e.column.getIsSorted(), i = e.id === "_select", a = e.id === "_actions", o = r ? R.findIndex((t) => t.field === e.id) + 1 : 0, s = R.length > 1 && o > 0, c = o > 0, l = R.length < 5, u = t ? e.column.getToggleSortingHandler() : void 0;
11514
+ let t = tl(e.id, M), r = e.column.getIsSorted(), i = e.id === "_select", a = e.id === "_actions", o = r ? R.findIndex((t) => t.field === e.id) + 1 : 0, s = R.length > 1 && o > 0, c = o > 0, l = R.length < 5, u = t ? e.column.getToggleSortingHandler() : void 0;
11508
11515
  return /* @__PURE__ */ Q("th", {
11509
11516
  onClick: t ? (t) => {
11510
11517
  if (t.shiftKey) {
@@ -11574,7 +11581,7 @@ function sl({ screenCode: e }) {
11574
11581
  },
11575
11582
  children: o
11576
11583
  }) : null,
11577
- /* @__PURE__ */ Q(Jc, {
11584
+ /* @__PURE__ */ Q(Yc, {
11578
11585
  field: e.id,
11579
11586
  activeDir: r,
11580
11587
  activeNulls: Le.get(e.id),
@@ -11632,7 +11639,7 @@ function sl({ screenCode: e }) {
11632
11639
  ] }) : /* @__PURE__ */ $(Z, { children: [
11633
11640
  Gt.length,
11634
11641
  " of ",
11635
- _c(St, Ct ?? "exact"),
11642
+ vc(St, Ct ?? "exact"),
11636
11643
  " ",
11637
11644
  St === 1 ? "record" : "records"
11638
11645
  ] })
@@ -11664,7 +11671,7 @@ function sl({ screenCode: e }) {
11664
11671
  color: "var(--text-2)",
11665
11672
  cursor: "pointer"
11666
11673
  },
11667
- children: Xc.map((e) => /* @__PURE__ */ Q("option", {
11674
+ children: Zc.map((e) => /* @__PURE__ */ Q("option", {
11668
11675
  value: e,
11669
11676
  children: e
11670
11677
  }, e))
@@ -11721,7 +11728,7 @@ function sl({ screenCode: e }) {
11721
11728
  })]
11722
11729
  })
11723
11730
  }),
11724
- /* @__PURE__ */ Q(Sc, {
11731
+ /* @__PURE__ */ Q(Cc, {
11725
11732
  open: p,
11726
11733
  onClose: () => m(!1),
11727
11734
  filters: D,
@@ -11730,14 +11737,14 @@ function sl({ screenCode: e }) {
11730
11737
  defaultFilters: A?.default_filters,
11731
11738
  refs: Bt
11732
11739
  }),
11733
- /* @__PURE__ */ Q(Ic, {
11740
+ /* @__PURE__ */ Q(Lc, {
11734
11741
  open: h,
11735
11742
  pending: Mt.isPending,
11736
11743
  onClose: () => g(!1),
11737
11744
  onSave: async (t) => {
11738
- if (!re?.id || !ie?.id) return;
11745
+ if (!re?.id || !k?.id) return;
11739
11746
  let n = await Mt.mutateAsync({
11740
- tenant_id: ie.id,
11747
+ tenant_id: k.id,
11741
11748
  screen_code: e,
11742
11749
  user_id: re.id,
11743
11750
  name: { en: t },
@@ -11748,7 +11755,7 @@ function sl({ screenCode: e }) {
11748
11755
  is_default: !1
11749
11756
  }), i = L(n.data.id);
11750
11757
  if (i) {
11751
- il(r, n.data), await r.invalidateQueries({ queryKey: ["entity-data", "view"] });
11758
+ al(r, n.data), await r.invalidateQueries({ queryKey: ["entity-data", "view"] });
11752
11759
  let e = new URLSearchParams(a);
11753
11760
  e.set("view", i), o(e);
11754
11761
  }
@@ -11764,7 +11771,7 @@ function sl({ screenCode: e }) {
11764
11771
  onConfirm: Bn,
11765
11772
  destructive: !0
11766
11773
  }),
11767
- Qt.length > 0 && /* @__PURE__ */ Q(Rc, {
11774
+ Qt.length > 0 && /* @__PURE__ */ Q(zc, {
11768
11775
  selectedIds: Qt,
11769
11776
  floatbarActions: _e,
11770
11777
  screenActionLayout: A.action_layout,
@@ -11830,7 +11837,7 @@ function sl({ screenCode: e }) {
11830
11837
  }
11831
11838
  })]
11832
11839
  }),
11833
- Ut && Vt && M && /* @__PURE__ */ Q(fc, {
11840
+ Ut && Vt && M && /* @__PURE__ */ Q(pc, {
11834
11841
  entity: M,
11835
11842
  entityCode: N,
11836
11843
  record: Vt,
@@ -11887,25 +11894,25 @@ function sl({ screenCode: e }) {
11887
11894
  }
11888
11895
  //#endregion
11889
11896
  //#region src/components/pages/SmartDetailPage.tsx
11890
- var cl = Qr(() => import("./SmartDetailPage.impl-tNzyW3d1.js").then((e) => ({ default: e.SmartDetailPage })));
11891
- function ll(e) {
11897
+ var ll = Qr(() => import("./SmartDetailPage.impl-Ycy0dZkv.js").then((e) => ({ default: e.SmartDetailPage })));
11898
+ function ul(e) {
11892
11899
  return /* @__PURE__ */ Q(Xr, {
11893
11900
  fallback: null,
11894
- children: /* @__PURE__ */ Q(cl, { ...e })
11901
+ children: /* @__PURE__ */ Q(ll, { ...e })
11895
11902
  });
11896
11903
  }
11897
11904
  //#endregion
11898
11905
  //#region src/components/pages/SmartRecordListPage.tsx
11899
- var ul = Qr(() => import("./SmartRecordListPage.impl-VX_15dKC.js").then((e) => ({ default: e.SmartRecordListPage })));
11900
- function dl(e) {
11906
+ var dl = Qr(() => import("./SmartRecordListPage.impl-W41z1hiJ.js").then((e) => ({ default: e.SmartRecordListPage })));
11907
+ function fl(e) {
11901
11908
  return /* @__PURE__ */ Q(Xr, {
11902
11909
  fallback: null,
11903
- children: /* @__PURE__ */ Q(ul, { ...e })
11910
+ children: /* @__PURE__ */ Q(dl, { ...e })
11904
11911
  });
11905
11912
  }
11906
11913
  //#endregion
11907
11914
  //#region src/hooks/useVersionWatcher.ts
11908
- function fl() {
11915
+ function pl() {
11909
11916
  let e = yi();
11910
11917
  q(() => {
11911
11918
  let t = !1, n = null, r = 6e4, i = r, a = 0, o = 0;
@@ -11931,7 +11938,7 @@ function fl() {
11931
11938
  }
11932
11939
  }
11933
11940
  function l() {
11934
- let e = ie();
11941
+ let e = k();
11935
11942
  e && d(e);
11936
11943
  let t = Date.now();
11937
11944
  t - o < 5e3 || (o = t, c());
@@ -11962,34 +11969,34 @@ function fl() {
11962
11969
  }
11963
11970
  //#endregion
11964
11971
  //#region src/lib/capabilityPrefetch.ts
11965
- var pl = [
11966
- () => import("./MarkdownRenderer-14LG1clY.js"),
11972
+ var ml = [
11973
+ () => import("./MarkdownRenderer-jhYOLGsz.js"),
11967
11974
  () => import("./JsonEditor-DoNmyrYd.js"),
11968
- () => import("./Grid-D0ckegd1.js"),
11969
- () => import("./DraggableChildrenTable-BfErdVdt.js")
11975
+ () => import("./Grid-k1alUfJH.js"),
11976
+ () => import("./DraggableChildrenTable-_ZZcNOIn.js")
11970
11977
  ];
11971
- function ml() {
11972
- for (let e of pl) e().catch(() => {});
11978
+ function hl() {
11979
+ for (let e of ml) e().catch(() => {});
11973
11980
  }
11974
- var hl = !1;
11975
- function gl() {
11976
- if (hl) return;
11977
- hl = !0;
11981
+ var gl = !1;
11982
+ function _l() {
11983
+ if (gl) return;
11984
+ gl = !0;
11978
11985
  let e = globalThis.requestIdleCallback;
11979
- typeof e == "function" ? e(ml) : setTimeout(ml, 0);
11986
+ typeof e == "function" ? e(hl) : setTimeout(hl, 0);
11980
11987
  }
11981
11988
  //#endregion
11982
11989
  //#region src/stores/screen-registry.ts
11983
- var _l = /* @__PURE__ */ new Map();
11984
- function vl(e, t) {
11985
- _l.set(e, t);
11990
+ var vl = /* @__PURE__ */ new Map();
11991
+ function yl(e, t) {
11992
+ vl.set(e, t);
11986
11993
  }
11987
- function yl(e) {
11988
- return _l.get(e);
11994
+ function bl(e) {
11995
+ return vl.get(e);
11989
11996
  }
11990
11997
  //#endregion
11991
11998
  //#region src/lib/brand-tokens.ts
11992
- var bl = ["light", "dark"], xl = ["page_title_size", "page_title_line_height"], Sl = [
11999
+ var xl = ["light", "dark"], Sl = ["page_title_size", "page_title_line_height"], Cl = [
11993
12000
  "background",
11994
12001
  "surface",
11995
12002
  "surface_2",
@@ -12005,19 +12012,19 @@ var bl = ["light", "dark"], xl = ["page_title_size", "page_title_line_height"],
12005
12012
  "sidebar",
12006
12013
  "rail"
12007
12014
  ];
12008
- function Cl(e) {
12015
+ function wl(e) {
12009
12016
  return `--${e.replace(/_/g, "-")}`;
12010
12017
  }
12011
- function wl(e) {
12018
+ function Tl(e) {
12012
12019
  if (typeof e != "string") return null;
12013
12020
  let t = e.trim();
12014
12021
  return !t || /[;{}]/.test(t) ? null : t;
12015
12022
  }
12016
- function Tl(e) {
12017
- let t = wl(e);
12023
+ function El(e) {
12024
+ let t = Tl(e);
12018
12025
  return !t || typeof CSS < "u" && CSS.supports && !CSS.supports("color", t) ? null : t;
12019
12026
  }
12020
- var El = {
12027
+ var Dl = {
12021
12028
  light: {
12022
12029
  soft: 10,
12023
12030
  ring: 28,
@@ -12029,62 +12036,62 @@ var El = {
12029
12036
  row: 22
12030
12037
  }
12031
12038
  };
12032
- function Dl(e, t) {
12033
- if (!Tl(t.accent)) return [];
12034
- let n = El[e];
12039
+ function Ol(e, t) {
12040
+ if (!El(t.accent)) return [];
12041
+ let n = Dl[e];
12035
12042
  return [
12036
12043
  `--accent-soft: color-mix(in srgb, var(--accent) ${n.soft}%, var(--surface))`,
12037
12044
  `--accent-ring: color-mix(in srgb, var(--accent) ${n.ring}%, transparent)`,
12038
12045
  `--row-selected-bg: color-mix(in srgb, var(--accent) ${n.row}%, var(--surface))`
12039
12046
  ];
12040
12047
  }
12041
- function Ol(e, t) {
12048
+ function kl(e, t) {
12042
12049
  let n = [];
12043
- for (let e of Sl) {
12044
- let r = Tl(t[e]);
12045
- r && n.push(`${Cl(e)}: ${r}`);
12050
+ for (let e of Cl) {
12051
+ let r = El(t[e]);
12052
+ r && n.push(`${wl(e)}: ${r}`);
12046
12053
  }
12047
- return n.push(...Dl(e, t)), n;
12054
+ return n.push(...Ol(e, t)), n;
12048
12055
  }
12049
- function kl(e) {
12056
+ function Al(e) {
12050
12057
  if (!e) return "";
12051
- let t = [], n = [], r = wl(e.font_sans), i = wl(e.font_mono);
12058
+ let t = [], n = [], r = Tl(e.font_sans), i = Tl(e.font_mono);
12052
12059
  r && n.push(`--font-sans: ${r}`), i && n.push(`--font-mono: ${i}`);
12053
- for (let t of xl) {
12054
- let r = wl(e.typography?.[t]);
12055
- r && n.push(`${Cl(t)}: ${r}`);
12060
+ for (let t of Sl) {
12061
+ let r = Tl(e.typography?.[t]);
12062
+ r && n.push(`${wl(t)}: ${r}`);
12056
12063
  }
12057
12064
  n.length && t.push(`:root { ${n.join("; ")}; }`);
12058
- for (let n of bl) {
12065
+ for (let n of xl) {
12059
12066
  let r = e.colors?.[n];
12060
12067
  if (!r) continue;
12061
- let i = Ol(n, r);
12068
+ let i = kl(n, r);
12062
12069
  i.length && t.push(`html[data-color-scheme="${n}"] { ${i.join("; ")}; }`);
12063
12070
  }
12064
12071
  return t.join("\n");
12065
12072
  }
12066
- var Al = "declarion-brand-tokens", jl = "consumer-brand-css";
12067
- function Ml(e) {
12073
+ var jl = "declarion-brand-tokens", Ml = "consumer-brand-css";
12074
+ function Nl(e) {
12068
12075
  if (typeof document > "u") return;
12069
- let t = document.head, n = document.getElementById(Al);
12076
+ let t = document.head, n = document.getElementById(jl);
12070
12077
  if (!e) {
12071
12078
  n?.remove();
12072
12079
  return;
12073
12080
  }
12074
12081
  let r = n ?? document.createElement("style");
12075
- n || (r.id = Al, t.appendChild(r)), r.textContent !== e && (r.textContent = e);
12076
- let i = document.getElementById(jl);
12082
+ n || (r.id = jl, t.appendChild(r)), r.textContent !== e && (r.textContent = e);
12083
+ let i = document.getElementById(Ml);
12077
12084
  i && i.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING && t.appendChild(i);
12078
12085
  }
12079
12086
  //#endregion
12080
12087
  //#region src/app.tsx
12081
- vl("Profile", Ls);
12082
- var Nl = "declarion-managed-favicon", Pl = new pi({ defaultOptions: { queries: {
12088
+ yl("Profile", Rs);
12089
+ var Pl = "declarion-managed-favicon", Fl = new pi({ defaultOptions: { queries: {
12083
12090
  staleTime: 300 * 1e3,
12084
12091
  retry: 1
12085
12092
  } } });
12086
- Xt(Pl, Nt);
12087
- function Fl(e) {
12093
+ Xt(Fl, Nt);
12094
+ function Il(e) {
12088
12095
  if (typeof window > "u") return null;
12089
12096
  try {
12090
12097
  let t = new URL(e, window.location.origin);
@@ -12093,7 +12100,7 @@ function Fl(e) {
12093
12100
  return null;
12094
12101
  }
12095
12102
  }
12096
- function Il() {
12103
+ function Ll() {
12097
12104
  let { data: e } = qe();
12098
12105
  return {
12099
12106
  routes: J(() => {
@@ -12107,7 +12114,7 @@ function Il() {
12107
12114
  path: r.route,
12108
12115
  element: /* @__PURE__ */ Q(cr, { children: /* @__PURE__ */ Q(_t, {
12109
12116
  code: n,
12110
- children: /* @__PURE__ */ Q(ol, { screenCode: n })
12117
+ children: /* @__PURE__ */ Q(sl, { screenCode: n })
12111
12118
  }) })
12112
12119
  }, n));
12113
12120
  continue;
@@ -12117,7 +12124,7 @@ function Il() {
12117
12124
  path: r.route,
12118
12125
  element: /* @__PURE__ */ Q(cr, { children: /* @__PURE__ */ Q(_t, {
12119
12126
  code: n,
12120
- children: /* @__PURE__ */ Q(ll, { screenCode: n })
12127
+ children: /* @__PURE__ */ Q(ul, { screenCode: n })
12121
12128
  }) })
12122
12129
  }, n));
12123
12130
  continue;
@@ -12127,13 +12134,13 @@ function Il() {
12127
12134
  path: r.route,
12128
12135
  element: /* @__PURE__ */ Q(cr, { children: /* @__PURE__ */ Q(_t, {
12129
12136
  code: n,
12130
- children: /* @__PURE__ */ Q(dl, { screenCode: n })
12137
+ children: /* @__PURE__ */ Q(fl, { screenCode: n })
12131
12138
  }) })
12132
12139
  }, n));
12133
12140
  continue;
12134
12141
  }
12135
12142
  if (r.type === "custom") {
12136
- let e = r.component ? yl(r.component) : void 0;
12143
+ let e = r.component ? bl(r.component) : void 0;
12137
12144
  e && t.push(/* @__PURE__ */ Q(ri, {
12138
12145
  path: r.route,
12139
12146
  element: /* @__PURE__ */ Q(cr, { children: /* @__PURE__ */ Q(_t, {
@@ -12145,11 +12152,11 @@ function Il() {
12145
12152
  }
12146
12153
  return t;
12147
12154
  }, [e]),
12148
- defaultRoute: J(() => is(e), [e])
12155
+ defaultRoute: J(() => as(e), [e])
12149
12156
  };
12150
12157
  }
12151
- function Ll() {
12152
- let t = I((e) => e.initialize), n = I((e) => e.isLoading), r = I((e) => e.isAuthenticated), { data: a, isLoading: o } = qe(), { data: s, isLoading: c } = $t(), { branding: l, isLoading: u } = Ut(), { routes: d, defaultRoute: f } = Il(), p = i(), m = typeof window < "u" && window.self !== window.top && !p.enabled;
12158
+ function Rl() {
12159
+ let t = I((e) => e.initialize), n = I((e) => e.isLoading), r = I((e) => e.isAuthenticated), { data: a, isLoading: o } = qe(), { data: s, isLoading: c } = $t(), { branding: l, isLoading: u } = Ut(), { routes: d, defaultRoute: f } = Ll(), p = i(), m = typeof window < "u" && window.self !== window.top && !p.enabled;
12153
12160
  q(() => {
12154
12161
  p.enabled || m || t();
12155
12162
  }, [
@@ -12161,7 +12168,7 @@ function Ll() {
12161
12168
  q(() => {
12162
12169
  e(h ?? {});
12163
12170
  }, [h]), q(() => {
12164
- gl();
12171
+ _l();
12165
12172
  }, []);
12166
12173
  let g = l?.identity, _ = l?.theme;
12167
12174
  q(() => {
@@ -12170,7 +12177,7 @@ function Ll() {
12170
12177
  e && (document.title = e);
12171
12178
  }, [g?.app_name]), q(() => {
12172
12179
  if (typeof document > "u") return;
12173
- let e = g?.app_logo, t = Rt(e) ? Fl(e.trim()) : null, n = document.getElementById(Nl);
12180
+ let e = g?.app_logo, t = Rt(e) ? Il(e.trim()) : null, n = document.getElementById(Pl);
12174
12181
  if (!t) {
12175
12182
  n && n.remove();
12176
12183
  return;
@@ -12178,22 +12185,22 @@ function Ll() {
12178
12185
  if (!n) {
12179
12186
  document.querySelectorAll("link[rel=\"icon\"], link[rel=\"shortcut icon\"]").forEach((e) => e.remove());
12180
12187
  let e = document.createElement("link");
12181
- e.id = Nl, e.rel = "icon", e.href = t, document.head.appendChild(e);
12188
+ e.id = Pl, e.rel = "icon", e.href = t, document.head.appendChild(e);
12182
12189
  return;
12183
12190
  }
12184
12191
  n.href !== t && (n.href = t);
12185
12192
  }, [g?.app_logo]);
12186
- let v = _?.css_url ?? null, y = J(() => kl(_), [_]);
12193
+ let v = _?.css_url ?? null, y = J(() => Al(_), [_]);
12187
12194
  q(() => {
12188
- Ml(y);
12195
+ Nl(y);
12189
12196
  }, [y]), q(() => {
12190
12197
  if (typeof document > "u") return;
12191
- let e = document.getElementById(jl);
12198
+ let e = document.getElementById(Ml);
12192
12199
  if (!v) {
12193
12200
  e && e.remove();
12194
12201
  return;
12195
12202
  }
12196
- let t = Fl(v);
12203
+ let t = Il(v);
12197
12204
  if (!t) {
12198
12205
  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).`);
12199
12206
  return;
@@ -12201,7 +12208,7 @@ function Ll() {
12201
12208
  if (e && e.href === t) return;
12202
12209
  e && e.remove();
12203
12210
  let n = document.createElement("link");
12204
- n.id = jl, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
12211
+ n.id = Ml, n.rel = "stylesheet", n.href = t, document.head.appendChild(n);
12205
12212
  }, [v]);
12206
12213
  let b = p.enabled && !r;
12207
12214
  return m || b || n || c && !s || u || o && !a ? /* @__PURE__ */ Q("div", {
@@ -12213,27 +12220,27 @@ function Ll() {
12213
12220
  }) : /* @__PURE__ */ $(ii, { children: [
12214
12221
  /* @__PURE__ */ Q(ri, {
12215
12222
  path: "/login",
12216
- element: /* @__PURE__ */ Q(vs, {})
12223
+ element: /* @__PURE__ */ Q(ys, {})
12217
12224
  }),
12218
12225
  /* @__PURE__ */ Q(ri, {
12219
12226
  path: "/login/sso-callback",
12220
- element: /* @__PURE__ */ Q(Ms, {})
12227
+ element: /* @__PURE__ */ Q(Ns, {})
12221
12228
  }),
12222
12229
  /* @__PURE__ */ Q(ri, {
12223
12230
  path: "/signup",
12224
- element: /* @__PURE__ */ Q(xs, {})
12231
+ element: /* @__PURE__ */ Q(Ss, {})
12225
12232
  }),
12226
12233
  /* @__PURE__ */ Q(ri, {
12227
12234
  path: "/forgot",
12228
- element: /* @__PURE__ */ Q(Cs, {})
12235
+ element: /* @__PURE__ */ Q(ws, {})
12229
12236
  }),
12230
12237
  /* @__PURE__ */ Q(ri, {
12231
12238
  path: "/reset",
12232
- element: /* @__PURE__ */ Q(As, {})
12239
+ element: /* @__PURE__ */ Q(js, {})
12233
12240
  }),
12234
12241
  /* @__PURE__ */ Q(ri, {
12235
12242
  path: "/2fa",
12236
- element: /* @__PURE__ */ Q(js, {})
12243
+ element: /* @__PURE__ */ Q(Ms, {})
12237
12244
  }),
12238
12245
  /* @__PURE__ */ $(ri, {
12239
12246
  element: /* @__PURE__ */ Q(Vo, {}),
@@ -12254,26 +12261,26 @@ function Ll() {
12254
12261
  d,
12255
12262
  /* @__PURE__ */ Q(ri, {
12256
12263
  path: "/preferences",
12257
- element: /* @__PURE__ */ Q(Gs, {})
12264
+ element: /* @__PURE__ */ Q(Ks, {})
12258
12265
  }),
12259
12266
  /* @__PURE__ */ Q(ri, {
12260
12267
  path: "/admin/catalog",
12261
- element: /* @__PURE__ */ Q(Js, {})
12268
+ element: /* @__PURE__ */ Q(Ys, {})
12262
12269
  }),
12263
12270
  /* @__PURE__ */ Q(ri, {
12264
12271
  path: "*",
12265
- element: /* @__PURE__ */ Q(Ns, {})
12272
+ element: /* @__PURE__ */ Q(Ps, {})
12266
12273
  })
12267
12274
  ]
12268
12275
  })
12269
12276
  ] });
12270
12277
  }
12271
- function Rl() {
12272
- fl();
12278
+ function zl() {
12279
+ pl();
12273
12280
  let e = G((e) => e.toastPosition);
12274
12281
  return /* @__PURE__ */ $($r, { children: [
12275
12282
  /* @__PURE__ */ Q(zi, {}),
12276
- /* @__PURE__ */ Q(Ll, {}),
12283
+ /* @__PURE__ */ Q(Rl, {}),
12277
12284
  /* @__PURE__ */ Q(bi, {
12278
12285
  position: e,
12279
12286
  toastOptions: { unstyled: !0 },
@@ -12284,26 +12291,26 @@ function Rl() {
12284
12291
  })
12285
12292
  ] });
12286
12293
  }
12287
- function zl({ children: e }) {
12294
+ function Bl({ children: e }) {
12288
12295
  return /* @__PURE__ */ Q(re, {
12289
12296
  viewport: tn(),
12290
12297
  children: e
12291
12298
  });
12292
12299
  }
12293
- function Bl() {
12300
+ function Vl() {
12294
12301
  return /* @__PURE__ */ Q(cr, { children: /* @__PURE__ */ Q(mi, {
12295
- client: Pl,
12296
- children: /* @__PURE__ */ Q(N, { children: /* @__PURE__ */ Q(zl, { children: /* @__PURE__ */ Q(Rl, {}) }) })
12302
+ client: Fl,
12303
+ children: /* @__PURE__ */ Q(N, { children: /* @__PURE__ */ Q(Bl, { children: /* @__PURE__ */ Q(zl, {}) }) })
12297
12304
  }) });
12298
12305
  }
12299
12306
  //#endregion
12300
12307
  //#region src/api/batch.ts
12301
- var Vl = class {
12308
+ var Hl = class {
12302
12309
  ops = [];
12303
12310
  call(e, t) {
12304
12311
  return this.ops.push({
12305
12312
  action: e,
12306
- params: Hl(t)
12313
+ params: Ul(t)
12307
12314
  }), this;
12308
12315
  }
12309
12316
  upsert(e, t, n = "upsert", r = []) {
@@ -12325,13 +12332,13 @@ var Vl = class {
12325
12332
  return this.ops;
12326
12333
  }
12327
12334
  };
12328
- function Hl(e) {
12335
+ function Ul(e) {
12329
12336
  return e == null ? null : typeof e == "object" && !Array.isArray(e) ? e : { value: e };
12330
12337
  }
12331
12338
  //#endregion
12332
12339
  //#region src/hooks/useAllEntityData.ts
12333
- var Ul = 1e3, Wl = 20;
12334
- function Gl(e, t = {}) {
12340
+ var Wl = 1e3, Gl = 20;
12341
+ function Kl(e, t = {}) {
12335
12342
  return vi({
12336
12343
  queryKey: [
12337
12344
  "entity-data-all",
@@ -12342,7 +12349,7 @@ function Gl(e, t = {}) {
12342
12349
  queryFn: async ({ signal: n }) => {
12343
12350
  let r = {
12344
12351
  ...t,
12345
- per_page: Ul,
12352
+ per_page: Wl,
12346
12353
  count: "with"
12347
12354
  }, i;
12348
12355
  try {
@@ -12355,7 +12362,7 @@ function Gl(e, t = {}) {
12355
12362
  }
12356
12363
  let a = i.meta.total_pages ?? 1;
12357
12364
  if (a <= 1) return i;
12358
- if (a > Wl) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${Wl}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
12365
+ if (a > Gl) throw Error(`useAllEntityData: entity "${e}" spans ${a} pages (limit ${Gl}); it is not a bounded entity. Use useEntityData with server-side pagination instead.`);
12359
12366
  let o = await Promise.all(Array.from({ length: a - 1 }, (t, i) => rt(e, {
12360
12367
  ...r,
12361
12368
  page: i + 2
@@ -12378,7 +12385,7 @@ function Gl(e, t = {}) {
12378
12385
  }
12379
12386
  //#endregion
12380
12387
  //#region src/hooks/useLiveObject.ts
12381
- function Kl(e, t) {
12388
+ function ql(e, t) {
12382
12389
  let n = zn(e, t), { data: r } = qe(), i = dr((e) => e.degradedEntities), a = n.data?.data ? Pn(n.data.data) : void 0, o = e ? Cn(r?.entities?.[e]?.realtime, i, e) : !1;
12383
12390
  return {
12384
12391
  ...n,
@@ -12389,30 +12396,30 @@ function Kl(e, t) {
12389
12396
  }
12390
12397
  //#endregion
12391
12398
  //#region src/hooks/useActionData.ts
12392
- var ql = "action-data", Jl = "action-data-cursor";
12393
- function Yl(e, t) {
12399
+ var Jl = "action-data", Yl = "action-data-cursor";
12400
+ function Xl(e, t) {
12394
12401
  return [
12395
- ql,
12402
+ Jl,
12396
12403
  e,
12397
12404
  t
12398
12405
  ];
12399
12406
  }
12400
- function Xl(e, t, n = !0) {
12407
+ function Zl(e, t, n = !0) {
12401
12408
  return vi({
12402
- queryKey: Yl(e, t),
12409
+ queryKey: Xl(e, t),
12403
12410
  queryFn: async () => (await lt(e, t)).result,
12404
12411
  enabled: !!e && n
12405
12412
  });
12406
12413
  }
12407
- function Zl(e, t) {
12414
+ function Ql(e, t) {
12408
12415
  return [
12409
- Jl,
12416
+ Yl,
12410
12417
  e,
12411
12418
  t
12412
12419
  ];
12413
12420
  }
12414
- function Ql(e, t, n = !0) {
12415
- let r = Zl(e, t), i = hi({
12421
+ function $l(e, t, n = !0) {
12422
+ let r = Ql(e, t), i = hi({
12416
12423
  queryKey: r,
12417
12424
  queryFn: async ({ pageParam: n }) => (await lt(e, n ? {
12418
12425
  ...t,
@@ -12440,7 +12447,7 @@ function Ql(e, t, n = !0) {
12440
12447
  }
12441
12448
  //#endregion
12442
12449
  //#region src/hooks/useColumns.ts
12443
- function $l(e, t) {
12450
+ function eu(e, t) {
12444
12451
  let [n, r] = fi(), i = J(() => {
12445
12452
  let r = n.get("columns");
12446
12453
  return r ? r.split(",").filter(Boolean).filter((t) => e.includes(t)) : t.length > 0 ? t : e;
@@ -12450,7 +12457,7 @@ function $l(e, t) {
12450
12457
  t
12451
12458
  ]), a = K((e) => {
12452
12459
  let i = new URLSearchParams(n);
12453
- e.length === 0 || eu(e, t) ? i.delete("columns") : i.set("columns", e.join(",")), r(i);
12460
+ e.length === 0 || tu(e, t) ? i.delete("columns") : i.set("columns", e.join(",")), r(i);
12454
12461
  }, [
12455
12462
  n,
12456
12463
  r,
@@ -12476,18 +12483,18 @@ function $l(e, t) {
12476
12483
  }, [i, a])
12477
12484
  };
12478
12485
  }
12479
- function eu(e, t) {
12480
- return e.length === t.length ? e.every((e, n) => e === t[n]) : !1;
12486
+ function tu(e, t) {
12487
+ return e.length === t.length && e.every((e, n) => e === t[n]);
12481
12488
  }
12482
12489
  //#endregion
12483
12490
  //#region src/hooks/useScreenTab.ts
12484
- function tu(e) {
12491
+ function nu(e) {
12485
12492
  let t = oi(), [n] = fi(), r = e?.route ?? t.pathname, i = Y(n.toString());
12486
12493
  Ir(r, e?.title ?? r, e?.icon, i.current), Fr(r);
12487
12494
  }
12488
12495
  //#endregion
12489
12496
  //#region src/components/shared/PageHeader.tsx
12490
- function nu({ title: e, description: t, backTo: r, actions: a }) {
12497
+ function ru({ title: e, description: t, backTo: r, actions: a }) {
12491
12498
  let o = at(), s = e ?? H(o?.screen?.display?.name) ?? "", c = t ?? H(o?.screen?.display?.description), l = Yt("custom"), u = l.isVisible("show_title"), d = l.isVisible("show_actions"), f = i(), p = Ee(), { hasOriginBack: m, goBack: h } = Ln({ fallback: K(() => {
12492
12499
  if (r) {
12493
12500
  if (!f.enabled) {
@@ -12556,15 +12563,15 @@ function nu({ title: e, description: t, backTo: r, actions: a }) {
12556
12563
  }
12557
12564
  //#endregion
12558
12565
  //#region src/components/shared/ObjectActionBar.tsx
12559
- function ru({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: a }) {
12560
- let { data: o } = qe(), { run: s, isRunning: c } = z(), l = Ee(), u = Gn(), d = Je(), f = oi(), p = o?.entities?.[e], m = J(() => au(o, e, r, f.pathname), [
12566
+ function iu({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: a }) {
12567
+ let { data: o } = qe(), { run: s, isRunning: c } = z(), l = Ee(), u = Gn(), d = Je(), f = oi(), p = o?.entities?.[e], m = J(() => ou(o, e, r, f.pathname), [
12561
12568
  o,
12562
12569
  e,
12563
12570
  r,
12564
12571
  f.pathname
12565
12572
  ]), h = o?.actions, g = wn(o, e);
12566
12573
  return {
12567
- nodes: J(() => !p || !t ? [] : Tn(su(Er(m?.action_layout, p.action_layout, p.actions, h, n), i), p.actions, h, t, []), [
12574
+ nodes: J(() => !p || !t ? [] : Tn(cu(Er(m?.action_layout, p.action_layout, p.actions, h, n), i), p.actions, h, t, []), [
12568
12575
  m?.action_layout,
12569
12576
  p,
12570
12577
  t,
@@ -12615,8 +12622,8 @@ function ru({ entity: e, object: t, slot: n, screen: r, select: i, onAfterRun: a
12615
12622
  ])
12616
12623
  };
12617
12624
  }
12618
- function iu({ entity: e, object: t, slot: n, screen: r, select: i, extraActions: a, onAfterRun: o }) {
12619
- let { data: s } = qe(), { nodes: c, run: l, widgetContext: u } = ru({
12625
+ function au({ entity: e, object: t, slot: n, screen: r, select: i, extraActions: a, onAfterRun: o }) {
12626
+ let { data: s } = qe(), { nodes: c, run: l, widgetContext: u } = iu({
12620
12627
  entity: e,
12621
12628
  object: t,
12622
12629
  slot: n,
@@ -12638,24 +12645,24 @@ function iu({ entity: e, object: t, slot: n, screen: r, select: i, extraActions:
12638
12645
  }), a]
12639
12646
  });
12640
12647
  }
12641
- function au(e, t, n, r) {
12648
+ function ou(e, t, n, r) {
12642
12649
  if (!e?.screens) return;
12643
12650
  if (n) return e.screens[n];
12644
12651
  let i = r.replace(/\/+$/, "") || "/";
12645
- return Object.values(e.screens).find((e) => e.entity !== t || !e.route ? !1 : ou(e.route).test(i));
12652
+ return Object.values(e.screens).find((e) => e.entity !== t || !e.route ? !1 : su(e.route).test(i));
12646
12653
  }
12647
- function ou(e) {
12654
+ function su(e) {
12648
12655
  let t = (e.replace(/\/+$/, "") || "/").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
12649
12656
  return RegExp(`^${t.join("/")}$`);
12650
12657
  }
12651
- function su(e, t) {
12658
+ function cu(e, t) {
12652
12659
  if (!t) return e;
12653
12660
  let n = t.include ? new Set(t.include) : null, r = t.exclude ? new Set(t.exclude) : null;
12654
- return e.map((e) => cu(e, n, r)).filter((e) => e !== null);
12661
+ return e.map((e) => lu(e, n, r)).filter((e) => e !== null);
12655
12662
  }
12656
- function cu(e, t, n) {
12663
+ function lu(e, t, n) {
12657
12664
  if (e.kind === "action") return t && !t.has(e.code) || n?.has(e.code) ? null : e;
12658
- let r = e.items.map((e) => cu(e, t, n)).filter((e) => e !== null);
12665
+ let r = e.items.map((e) => lu(e, t, n)).filter((e) => e !== null);
12659
12666
  return r.length > 0 ? {
12660
12667
  ...e,
12661
12668
  items: r
@@ -12663,7 +12670,7 @@ function cu(e, t, n) {
12663
12670
  }
12664
12671
  //#endregion
12665
12672
  //#region src/components/list/RowMenu.tsx
12666
- function lu({ x: e, y: t, onClose: r, onPeek: i, onOpen: a, onEditInline: o, onDuplicate: s, onCopyLink: c, onDelete: l, actions: u }) {
12673
+ function uu({ x: e, y: t, onClose: r, onPeek: i, onOpen: a, onEditInline: o, onDuplicate: s, onCopyLink: c, onDelete: l, actions: u }) {
12667
12674
  let d = (e) => () => {
12668
12675
  r(), e?.();
12669
12676
  }, f = i || a || o || s || c, p = u && u.length > 0;
@@ -12741,7 +12748,7 @@ function lu({ x: e, y: t, onClose: r, onPeek: i, onOpen: a, onEditInline: o, onD
12741
12748
  }
12742
12749
  //#endregion
12743
12750
  //#region src/components/list/InlineEditCell.tsx
12744
- var uu = {
12751
+ var du = {
12745
12752
  padding: "4px 6px",
12746
12753
  margin: "-4px -6px",
12747
12754
  borderRadius: 4,
@@ -12752,7 +12759,7 @@ var uu = {
12752
12759
  alignItems: "center",
12753
12760
  gap: 4
12754
12761
  };
12755
- function du({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "always", label: o, placeholder: s }) {
12762
+ function fu({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "always", label: o, placeholder: s }) {
12756
12763
  let [c, l] = X(e), [u, d] = X(e), [f, p] = X(!1), [m, h] = X(e), g = Y(null);
12757
12764
  q(() => {
12758
12765
  l(e), d(e), h(e);
@@ -12824,7 +12831,7 @@ function du({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
12824
12831
  onMouseLeave: (e) => {
12825
12832
  e.currentTarget.style.borderColor = "transparent";
12826
12833
  },
12827
- style: uu,
12834
+ style: du,
12828
12835
  children: u ?? /* @__PURE__ */ Q("span", {
12829
12836
  style: { color: "var(--text-4)" },
12830
12837
  children: "Click to edit"
@@ -12833,7 +12840,7 @@ function du({ value: e, onSave: t, type: r = "text", options: i, trigger: a = "a
12833
12840
  }
12834
12841
  //#endregion
12835
12842
  //#region src/components/pages/home/HomeStub.tsx
12836
- var fu = [
12843
+ var pu = [
12837
12844
  {
12838
12845
  id: "a1",
12839
12846
  title: "James Gallagher moved to Discovery",
@@ -12849,7 +12856,7 @@ var fu = [
12849
12856
  title: "Refill enrichment job completed (32 leads)",
12850
12857
  when: "10:00 AM"
12851
12858
  }
12852
- ], pu = [
12859
+ ], mu = [
12853
12860
  {
12854
12861
  label: "Open leads",
12855
12862
  val: "127",
@@ -12874,7 +12881,7 @@ var fu = [
12874
12881
  delta: "2 failed",
12875
12882
  tone: "amber"
12876
12883
  }
12877
- ], mu = [
12884
+ ], hu = [
12878
12885
  [
12879
12886
  "leads",
12880
12887
  "Leads",
@@ -12906,7 +12913,7 @@ var fu = [
12906
12913
  "entity"
12907
12914
  ]
12908
12915
  ];
12909
- function hu({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLabel: r = "Acme · production" }) {
12916
+ function gu({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLabel: r = "Acme · production" }) {
12910
12917
  return /* @__PURE__ */ Q("div", {
12911
12918
  style: {
12912
12919
  padding: "22px 24px",
@@ -12950,7 +12957,7 @@ function hu({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLa
12950
12957
  gap: 10,
12951
12958
  margin: "16px 0"
12952
12959
  },
12953
- children: pu.map((e) => /* @__PURE__ */ $("div", {
12960
+ children: mu.map((e) => /* @__PURE__ */ $("div", {
12954
12961
  style: {
12955
12962
  padding: 14,
12956
12963
  background: "var(--surface)",
@@ -12998,7 +13005,7 @@ function hu({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLa
12998
13005
  gridTemplateColumns: "repeat(3,1fr)",
12999
13006
  gap: 8
13000
13007
  },
13001
- children: mu.map(([t, r, i]) => {
13008
+ children: hu.map(([t, r, i]) => {
13002
13009
  let a = n[i];
13003
13010
  return /* @__PURE__ */ $("button", {
13004
13011
  onClick: () => e?.(t),
@@ -13043,7 +13050,7 @@ function hu({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLa
13043
13050
  flexDirection: "column",
13044
13051
  gap: 8
13045
13052
  },
13046
- children: fu.slice(0, 3).map((e) => /* @__PURE__ */ $("div", {
13053
+ children: pu.slice(0, 3).map((e) => /* @__PURE__ */ $("div", {
13047
13054
  style: {
13048
13055
  fontSize: 12,
13049
13056
  color: "var(--text-2)"
@@ -13072,19 +13079,19 @@ function hu({ onOpenNav: e, greeting: t = "Good afternoon, Konstantin", tenantLa
13072
13079
  }
13073
13080
  //#endregion
13074
13081
  //#region src/components/pages/pipeline/Pipeline.tsx
13075
- var gu = {
13082
+ var _u = {
13076
13083
  "1-New": { color: "slate" },
13077
13084
  "2-Contacted": { color: "sky" },
13078
13085
  "3-Qualified": { color: "violet" },
13079
13086
  "4-Proposal": { color: "amber" },
13080
13087
  "5-Won": { color: "emerald" },
13081
13088
  "6-Lost": { color: "rose" }
13082
- }, _u = {
13089
+ }, vu = {
13083
13090
  P0: "rose",
13084
13091
  P1: "amber",
13085
13092
  P2: "sky",
13086
13093
  P3: "slate"
13087
- }, vu = [
13094
+ }, yu = [
13088
13095
  {
13089
13096
  id: "l1",
13090
13097
  contact: "James Gallagher",
@@ -13150,11 +13157,11 @@ var gu = {
13150
13157
  score: 58
13151
13158
  }
13152
13159
  ];
13153
- function yu() {
13154
- let e = Object.entries(gu).map(([e, t]) => ({
13160
+ function bu() {
13161
+ let e = Object.entries(_u).map(([e, t]) => ({
13155
13162
  key: e,
13156
13163
  color: t.color,
13157
- leads: vu.filter((t) => t.pipeline === e)
13164
+ leads: yu.filter((t) => t.pipeline === e)
13158
13165
  }));
13159
13166
  return /* @__PURE__ */ $("div", {
13160
13167
  style: {
@@ -13185,7 +13192,7 @@ function yu() {
13185
13192
  fontSize: 12,
13186
13193
  color: "var(--text-3)"
13187
13194
  },
13188
- children: [vu.length, " leads · $2.4M pipeline"]
13195
+ children: [yu.length, " leads · $2.4M pipeline"]
13189
13196
  })]
13190
13197
  }), /* @__PURE__ */ Q("div", {
13191
13198
  style: {
@@ -13271,7 +13278,7 @@ function yu() {
13271
13278
  flexWrap: "wrap"
13272
13279
  },
13273
13280
  children: [e.priority && e.priority !== "-" && /* @__PURE__ */ Q(F, {
13274
- tone: _u[e.priority] ?? "slate",
13281
+ tone: vu[e.priority] ?? "slate",
13275
13282
  size: "xs",
13276
13283
  dot: !0,
13277
13284
  children: e.priority
@@ -13290,7 +13297,7 @@ function yu() {
13290
13297
  }
13291
13298
  //#endregion
13292
13299
  //#region src/components/pages/jobs/Jobs.tsx
13293
- var bu = [
13300
+ var xu = [
13294
13301
  {
13295
13302
  id: "job_91a4",
13296
13303
  name: "reparse_leads_with_llm",
@@ -13334,12 +13341,12 @@ var bu = [
13334
13341
  worker: "wk-us-01",
13335
13342
  took: "2m 02s"
13336
13343
  }
13337
- ], xu = {
13344
+ ], Su = {
13338
13345
  running: "sky",
13339
13346
  success: "emerald",
13340
13347
  queued: "slate",
13341
13348
  failed: "rose"
13342
- }, Su = [
13349
+ }, Cu = [
13343
13350
  "ID",
13344
13351
  "Name",
13345
13352
  "Status",
@@ -13349,7 +13356,7 @@ var bu = [
13349
13356
  "Worker",
13350
13357
  ""
13351
13358
  ];
13352
- function Cu() {
13359
+ function wu() {
13353
13360
  return /* @__PURE__ */ $("div", {
13354
13361
  style: {
13355
13362
  padding: "14px 20px",
@@ -13398,7 +13405,7 @@ function Cu() {
13398
13405
  background: "var(--surface-2)",
13399
13406
  color: "var(--text-3)"
13400
13407
  },
13401
- children: Su.map((e, t) => /* @__PURE__ */ Q("th", {
13408
+ children: Cu.map((e, t) => /* @__PURE__ */ Q("th", {
13402
13409
  style: {
13403
13410
  padding: "0 10px",
13404
13411
  textAlign: "left",
@@ -13410,7 +13417,7 @@ function Cu() {
13410
13417
  },
13411
13418
  children: e
13412
13419
  }, e || `_h${t}`))
13413
- }) }), /* @__PURE__ */ Q("tbody", { children: bu.map((e) => /* @__PURE__ */ $("tr", {
13420
+ }) }), /* @__PURE__ */ Q("tbody", { children: xu.map((e) => /* @__PURE__ */ $("tr", {
13414
13421
  style: { height: 32 },
13415
13422
  children: [
13416
13423
  /* @__PURE__ */ Q("td", {
@@ -13442,7 +13449,7 @@ function Cu() {
13442
13449
  borderBottom: "1px solid var(--divider)"
13443
13450
  },
13444
13451
  children: /* @__PURE__ */ Q(F, {
13445
- tone: xu[e.status],
13452
+ tone: Su[e.status],
13446
13453
  size: "xs",
13447
13454
  dot: !0,
13448
13455
  children: e.status
@@ -13472,7 +13479,7 @@ function Cu() {
13472
13479
  display: "block",
13473
13480
  height: "100%",
13474
13481
  width: `${e.progress}%`,
13475
- background: `var(--pill-${xu[e.status]})`
13482
+ background: `var(--pill-${Su[e.status]})`
13476
13483
  } })
13477
13484
  }), /* @__PURE__ */ $("span", {
13478
13485
  className: "mono num",
@@ -13527,7 +13534,7 @@ function Cu() {
13527
13534
  }
13528
13535
  //#endregion
13529
13536
  //#region src/components/layout/ImpersonationStartModal.tsx
13530
- function wu({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarted: i }) {
13537
+ function Tu({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarted: i }) {
13531
13538
  let { start: a, isStarting: o } = ia(), { value: s } = Bt("impersonation.require_reason_min_length", 10), [c, l] = X(""), [u, d] = X("");
13532
13539
  if (!e) return null;
13533
13540
  let f = c.trim(), p = f.length >= s;
@@ -13687,7 +13694,7 @@ function wu({ open: e, targetUserId: t, targetUserLabel: n, onClose: r, onStarte
13687
13694
  }
13688
13695
  //#endregion
13689
13696
  //#region src/components/agents/AgentVisualHints.tsx
13690
- function Tu({ turn: e, navigate: t }) {
13697
+ function Eu({ turn: e, navigate: t }) {
13691
13698
  return q(() => {
13692
13699
  for (let n of e.hints) switch (n.kind) {
13693
13700
  case "navigate":
@@ -13726,7 +13733,7 @@ function Tu({ turn: e, navigate: t }) {
13726
13733
  }
13727
13734
  //#endregion
13728
13735
  //#region src/components/agents/AgentConversationDrawer.tsx
13729
- function Eu({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, onNew: o, onRefresh: s }) {
13736
+ function Du({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, onNew: o, onRefresh: s }) {
13730
13737
  return q(() => {
13731
13738
  e && s();
13732
13739
  }, [e, s]), e ? /* @__PURE__ */ $("aside", {
@@ -13753,7 +13760,7 @@ function Eu({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
13753
13760
  className: `block w-full px-4 py-3 text-left border-b border-divider hover:bg-surface ${e.id === i ? "bg-surface" : ""}`,
13754
13761
  children: [/* @__PURE__ */ Q("div", {
13755
13762
  className: "text-sm font-medium truncate",
13756
- children: e.title || e.context ? Du(e.context) : "Untitled"
13763
+ children: e.title || e.context ? Ou(e.context) : "Untitled"
13757
13764
  }), /* @__PURE__ */ $("div", {
13758
13765
  className: "text-xs text-muted-foreground",
13759
13766
  children: [
@@ -13776,10 +13783,10 @@ function Eu({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
13776
13783
  ]
13777
13784
  }) : null;
13778
13785
  }
13779
- function Du(e) {
13786
+ function Ou(e) {
13780
13787
  if (!e) return "";
13781
13788
  let t = e.entity ? L(e.entity) : "", n = e.pk ? `:${L(e.pk).slice(0, 6)}` : "";
13782
13789
  return t ? `${t}${n}` : "";
13783
13790
  }
13784
13791
  //#endregion
13785
- export { Jl as ACTION_DATA_CURSOR_KEY, ql as ACTION_DATA_KEY, yt as ActionBatchError, ft as ActionRunnerProvider, mo as AgentChatPanel, Eu as AgentConversationDrawer, oo as AgentElicitForm, Tu as AgentVisualHints, Bl as App, Bl as Declarion, es as AuthShell, Lt as Avatar, Vl as Batch, y as BoolToggle, Ei as BrandGlyph, pa as Breadcrumbs, O as Btn, Me as CURSOR_LOCALE_CHANGED, fe as CURSOR_SEMANTICS_MISMATCH, Ps as ChangePasswordDialog, Oi as Check, l as Chip, er as CircleImage, Cr as ClassifiedFieldLocked, Uc as ColumnPicker, Ta as CommandPalette, Jn as ConfirmDialog, _t as CurrentScreenProvider, E as DEFAULT_RESPONSIVE_BREAKPOINTS, ge as DateInput, w as Dropdown, r as DynamicIcon, oc as EmptyState, qr as EntityClient, f as FieldLabel, xt as FileDraftScope, vc as FilterChips, Sc as FilterDrawer, Cs as Forgot, hu as HomeStub, we as HoverCard, n as Icon, S as IconBtn, ya as ImpersonationBanner, ba as ImpersonationFrame, wu as ImpersonationStartModal, Vt as InfoTooltip, du as InlineEditCell, Cu as JobsStub, wt as JsonField, xe as Kbd, ht as MULTIPLE_VALUES, j as MenuItem, Lr as NO_VALUE_OPS, Ar as OP_LABELS, iu as ObjectActionBar, Dt as OrderedMap, pn as PAGE_STATE_TTL_PARAM, nu as PageHeader, ye as PasswordInput, F as Pill, yu as PipelineStub, Gs as Preferences, Ls as Profile, Le as PropertyGridEditor, pc as QEField, g as QuickEditCell, fc as QuickPeek, ji as Rail, zt as RecordIdBadge, Or as RefCache, m as RefField, cn as RefreshControl, As as Reset, re as ResponsiveModeProvider, Di as RowField, lu as RowMenu, Gt as SCROLL_STATE_KEY, jn as SectionCard, ue as Select, Qi as Sidebar, vs as SignIn, xs as SignUp, ll as SmartDetailPage, ol as SmartListPage, dl as SmartRecordListPage, ce as Spinner, Bn as SquareImage, ga as TabStrip, et as TagsInput, ua as TenantChip, s as TextArea, $e as TextInput, It as Tooltip, ha as TopBar, js as TwoFA, Et as UploadError, ae as ViewField, Gc as ViewSwitcher, pr as WideBanner, Yl as actionDataQueryKey, ka as approveInvocation, st as buildActionBody, vt as buildDetailHrefFromId, ot as buildEntityDetailHref, bt as buildMassEditTargets, pt as buildRowDetailHref, $i as buildSections, ja as cancelConversation, Ht as canonicalUrl, vr as classificationTier, L as coerceDisplayString, Vr as countActiveFilters, Ea as createConversation, Zl as cursorActionDataQueryKey, Kr as cursorEntityDataQueryKey, Jr as cursorEntityStableKey, Ze as deleteObject, tt as detectCommonValue, he as discardFile, Dr as entityClient, se as entityDataQueryKey, la as envTone, lt as executeAction, ct as extractPkValues, Wn as fieldAccessInfo, qn as fieldClassification, gt as fieldDisplayName, ur as fieldRequiredPermission, d as formatBytes, _c as formatCount, hc as formatEstimatedCount, gc as formatExactCount, Un as getFileWidget, t as getIcon, lr as getImageCropper, gr as getLayoutWidget, nt as getPrimaryKeyFields, rr as hasFileWidget, or as hasLayoutWidget, Gr as hasOrGroups, a as isCursorStaleError, ir as isFieldReadable, Zn as isFieldSoDProtected, Yn as isFieldWritable, Ma as listConversations, Pa as listPendingInvocations, Fa as loadHistory, H as loc, $n as objectQueryKey, Nr as parseFiltersFromURL, Be as parseTargetFilter, Ve as pkValuePartsToId, We as pkValuesFromId, ut as pkValuesToDetailId, it as pkValuesToId, yr as registerFileWidget, fr as registerLayoutWidget, vl as registerScreen, Aa as rejectInvocation, Na as rerunMessageTurn, Ke as resolveDetailRoute, pe as resolveViewportCategory, He as restoreObject, Oa as sendElicitResponse, Da as sendMessage, Hr as setFiltersInURL, e as setIconRegistry, hr as setImageCropper, Ct as uploadFile, Xl as useActionData, z as useActionRunner, ao as useAgentConversation, Gl as useAllEntityData, ra as useAuth, $l as useColumns, xn as useCreateObject, at as useCurrentScreen, Ql as useCursorActionData, jr as useCursorEntityData, k as useDebounce, Nn as useDeleteObject, Wr as useDeleteProperty, kt as useDraftRegistration, Pt as useEffectiveParam, Qe as useEntity, de as useEntityCount, v as useEntityData, Ie as useFileDraftScope, sc as useFilters, ia as useImpersonation, Kl as useLiveObject, ai as useLocation, si as useNavigate, zn as useObject, ru as useObjectActions, ac as usePageState, Kt as usePageStateTtl, Bt as useParam, ui as useParams, rn as usePlainScrollRestoration, $t as usePublicParams, un as useRegisterRetainedQuery, Mt as useResolvedParam, U as useResponsiveMode, sn as useSavedScrollOffset, qe as useSchema, Kc as useScreen, Ln as useScreenBack, tu as useScreenTab, di as useSearchParams, Br as useSetProperty, Ur as useSetStatus, Gn as useTabNavigate, Fr as useTabSearchMirror, xr as useTabStore, bn as useUpdateObject, qc as useViews, qt as useVirtualScrollRestoration, ve as validateClientSide };
13792
+ export { Yl as ACTION_DATA_CURSOR_KEY, Jl as ACTION_DATA_KEY, yt as ActionBatchError, ft as ActionRunnerProvider, mo as AgentChatPanel, Du as AgentConversationDrawer, oo as AgentElicitForm, Eu as AgentVisualHints, Vl as App, Vl as Declarion, ts as AuthShell, Lt as Avatar, Hl as Batch, y as BoolToggle, Ei as BrandGlyph, pa as Breadcrumbs, O as Btn, Me as CURSOR_LOCALE_CHANGED, fe as CURSOR_SEMANTICS_MISMATCH, Fs as ChangePasswordDialog, Oi as Check, l as Chip, er as CircleImage, Cr as ClassifiedFieldLocked, Wc as ColumnPicker, Ta as CommandPalette, Jn as ConfirmDialog, _t as CurrentScreenProvider, E as DEFAULT_RESPONSIVE_BREAKPOINTS, ge as DateInput, w as Dropdown, r as DynamicIcon, sc as EmptyState, qr as EntityClient, f as FieldLabel, xt as FileDraftScope, yc as FilterChips, Cc as FilterDrawer, ws as Forgot, gu as HomeStub, we as HoverCard, n as Icon, S as IconBtn, ya as ImpersonationBanner, ba as ImpersonationFrame, Tu as ImpersonationStartModal, Vt as InfoTooltip, fu as InlineEditCell, wu as JobsStub, wt as JsonField, xe as Kbd, ht as MULTIPLE_VALUES, j as MenuItem, Lr as NO_VALUE_OPS, Ar as OP_LABELS, au as ObjectActionBar, Dt as OrderedMap, pn as PAGE_STATE_TTL_PARAM, ru as PageHeader, ye as PasswordInput, F as Pill, bu as PipelineStub, Ks as Preferences, Rs as Profile, Le as PropertyGridEditor, mc as QEField, g as QuickEditCell, pc as QuickPeek, ji as Rail, zt as RecordIdBadge, Or as RefCache, o as RefCombobox, m as RefField, cn as RefreshControl, js as Reset, re as ResponsiveModeProvider, Di as RowField, uu as RowMenu, Gt as SCROLL_STATE_KEY, jn as SectionCard, ue as Select, Qi as Sidebar, ys as SignIn, Ss as SignUp, ul as SmartDetailPage, sl as SmartListPage, fl as SmartRecordListPage, ce as Spinner, Bn as SquareImage, ga as TabStrip, et as TagsInput, ua as TenantChip, s as TextArea, $e as TextInput, It as Tooltip, ha as TopBar, Ms as TwoFA, Et as UploadError, ae as ViewField, Kc as ViewSwitcher, pr as WideBanner, Xl as actionDataQueryKey, ka as approveInvocation, st as buildActionBody, vt as buildDetailHrefFromId, ot as buildEntityDetailHref, bt as buildMassEditTargets, pt as buildRowDetailHref, $i as buildSections, ja as cancelConversation, Ht as canonicalUrl, vr as classificationTier, L as coerceDisplayString, Vr as countActiveFilters, Ea as createConversation, Ql as cursorActionDataQueryKey, Kr as cursorEntityDataQueryKey, Jr as cursorEntityStableKey, Ze as deleteObject, tt as detectCommonValue, he as discardFile, Dr as entityClient, se as entityDataQueryKey, la as envTone, lt as executeAction, ct as extractPkValues, Wn as fieldAccessInfo, qn as fieldClassification, gt as fieldDisplayName, ur as fieldRequiredPermission, d as formatBytes, vc as formatCount, gc as formatEstimatedCount, _c as formatExactCount, Un as getFileWidget, t as getIcon, lr as getImageCropper, gr as getLayoutWidget, nt as getPrimaryKeyFields, rr as hasFileWidget, or as hasLayoutWidget, Gr as hasOrGroups, a as isCursorStaleError, ir as isFieldReadable, Zn as isFieldSoDProtected, Yn as isFieldWritable, Ma as listConversations, Pa as listPendingInvocations, Fa as loadHistory, H as loc, $n as objectQueryKey, Nr as parseFiltersFromURL, Be as parseTargetFilter, Ve as pkValuePartsToId, We as pkValuesFromId, ut as pkValuesToDetailId, it as pkValuesToId, yr as registerFileWidget, fr as registerLayoutWidget, yl as registerScreen, Aa as rejectInvocation, Na as rerunMessageTurn, Ke as resolveDetailRoute, pe as resolveViewportCategory, He as restoreObject, Oa as sendElicitResponse, Da as sendMessage, Hr as setFiltersInURL, e as setIconRegistry, hr as setImageCropper, Ct as uploadFile, Zl as useActionData, z as useActionRunner, ao as useAgentConversation, Kl as useAllEntityData, ra as useAuth, eu as useColumns, xn as useCreateObject, at as useCurrentScreen, $l as useCursorActionData, jr as useCursorEntityData, ie as useDebounce, Nn as useDeleteObject, Wr as useDeleteProperty, kt as useDraftRegistration, Pt as useEffectiveParam, Qe as useEntity, de as useEntityCount, v as useEntityData, Ie as useFileDraftScope, cc as useFilters, ia as useImpersonation, ql as useLiveObject, ai as useLocation, si as useNavigate, zn as useObject, iu as useObjectActions, oc as usePageState, Kt as usePageStateTtl, Bt as useParam, ui as useParams, rn as usePlainScrollRestoration, $t as usePublicParams, un as useRegisterRetainedQuery, Mt as useResolvedParam, U as useResponsiveMode, sn as useSavedScrollOffset, qe as useSchema, qc as useScreen, Ln as useScreenBack, nu as useScreenTab, di as useSearchParams, Br as useSetProperty, Ur as useSetStatus, Gn as useTabNavigate, Fr as useTabSearchMirror, xr as useTabStore, bn as useUpdateObject, Jc as useViews, qt as useVirtualScrollRestoration, ve as validateClientSide };