@declarion/react 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist-lib/DraggableChildrenTable-CdzxxoTe.js +259 -0
  2. package/dist-lib/Grid-Cwxca9aO.js +0 -2
  3. package/dist-lib/JsonEditor-KelPV-OQ.js +0 -2
  4. package/dist-lib/MarkdownRenderer-Dbl3AFDQ.js +0 -2
  5. package/dist-lib/api/data.d.ts +1 -1
  6. package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +2 -2
  7. package/dist-lib/components/detail-layout/DetailHighlights.d.ts +2 -2
  8. package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +2 -2
  9. package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +2 -2
  10. package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +2 -2
  11. package/dist-lib/components/fields/cells/registry.d.ts +4 -4
  12. package/dist-lib/components/fields/index.d.ts +3 -3
  13. package/dist-lib/components/file-widgets/host.d.ts +2 -2
  14. package/dist-lib/components/filters/FilterDrawer.d.ts +1 -1
  15. package/dist-lib/components/list/PeekFieldCell.d.ts +2 -2
  16. package/dist-lib/components/list/QuickPeek.d.ts +2 -2
  17. package/dist-lib/components/mass-edit/PropertyGridEditor.d.ts +1 -1
  18. package/dist-lib/components/pages/SmartListPage.d.ts +1 -25
  19. package/dist-lib/components/pages/list/DataCell.d.ts +1 -2
  20. package/dist-lib/components/pages/list/columns.d.ts +3 -3
  21. package/dist-lib/components/primitives/index.d.ts +0 -1
  22. package/dist-lib/components/shared/ActionRunner.d.ts +3 -2
  23. package/dist-lib/components/shared/Breadcrumbs.d.ts +1 -1
  24. package/dist-lib/{dataTableStyles-BwnbXviH.js → dataTableStyles-zH3M7xdm.js} +765 -793
  25. package/dist-lib/index.d.ts +1 -6
  26. package/dist-lib/index.js +2844 -3271
  27. package/dist-lib/lib/display-value.d.ts +1 -0
  28. package/dist-lib/lib/filters.d.ts +0 -4
  29. package/dist-lib/lib/timestamp.d.ts +16 -3
  30. package/dist-lib/rich-text-CJpzFOG5.js +0 -2
  31. package/dist-lib/types/api.d.ts +10 -3
  32. package/dist-lib/value-CrpaObP_.js +0 -2
  33. package/dist-lib/vite/index.js +0 -2
  34. package/package.json +4 -2
  35. package/dist-lib/DraggableChildrenTable-DhcSXQfV.js +0 -261
  36. package/dist-lib/DraggableChildrenTable-DhcSXQfV.js.map +0 -1
  37. package/dist-lib/Grid-Cwxca9aO.js.map +0 -1
  38. package/dist-lib/JsonEditor-KelPV-OQ.js.map +0 -1
  39. package/dist-lib/MarkdownRenderer-Dbl3AFDQ.js.map +0 -1
  40. package/dist-lib/components/list/BulkBar.d.ts +0 -18
  41. package/dist-lib/components/list/ListPage.d.ts +0 -34
  42. package/dist-lib/components/list/resolveActions.d.ts +0 -53
  43. package/dist-lib/components/primitives/cx.d.ts +0 -1
  44. package/dist-lib/dataTableStyles-BwnbXviH.js.map +0 -1
  45. package/dist-lib/index.js.map +0 -1
  46. package/dist-lib/rich-text-CJpzFOG5.js.map +0 -1
  47. package/dist-lib/value-CrpaObP_.js.map +0 -1
  48. package/dist-lib/vite/index.js.map +0 -1
@@ -3,16 +3,11 @@ import { a as C, i as w, o as T, r as E, s as D, t as O } from "./rich-text-CJpz
3
3
  import { Suspense as k, forwardRef as A, lazy as j, useCallback as M, useEffect as N, useLayoutEffect as P, useMemo as F, useRef as I, useState as L } from "react";
4
4
  import { useQuery as R } from "@tanstack/react-query";
5
5
  import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
6
- import { createPortal as ne } from "react-dom";
7
- import { create as H } from "zustand";
8
- import { formatDistanceStrict as re, formatDistanceToNowStrict as U, formatISO as ie } from "date-fns";
9
- //#region src/components/primitives/cx.ts
10
- function ae(...e) {
11
- return e.filter(Boolean).join(" ");
12
- }
13
- //#endregion
6
+ import { createPortal as H } from "react-dom";
7
+ import { create as U } from "zustand";
8
+ import { formatDistanceStrict as ne, formatDistanceToNowStrict as W, formatISO as re } from "date-fns";
14
9
  //#region src/components/primitives/Icons.tsx
15
- var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__PURE__ */ B("svg", {
10
+ var G = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__PURE__ */ B("svg", {
16
11
  width: n,
17
12
  height: n,
18
13
  viewBox: "0 0 24 24",
@@ -25,14 +20,14 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
25
20
  style: i,
26
21
  "aria-hidden": "true",
27
22
  children: e
28
- }), G = {
29
- home: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M3 10.5 12 3l9 7.5" }), /* @__PURE__ */ B("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" })] })),
30
- inbox: W(/* @__PURE__ */ V(z, { children: [
23
+ }), K = {
24
+ home: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M3 10.5 12 3l9 7.5" }), /* @__PURE__ */ B("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" })] })),
25
+ inbox: G(/* @__PURE__ */ V(z, { children: [
31
26
  /* @__PURE__ */ B("path", { d: "M4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5" }),
32
27
  /* @__PURE__ */ B("path", { d: "M4 13h5l1 2h4l1-2h5" }),
33
28
  /* @__PURE__ */ B("path", { d: "M4 13 7 5a2 2 0 0 1 2-1h6a2 2 0 0 1 2 1l3 8" })
34
29
  ] })),
35
- flow: W(/* @__PURE__ */ V(z, { children: [
30
+ flow: G(/* @__PURE__ */ V(z, { children: [
36
31
  /* @__PURE__ */ B("circle", {
37
32
  cx: "6",
38
33
  cy: "6",
@@ -55,12 +50,12 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
55
50
  }),
56
51
  /* @__PURE__ */ B("path", { d: "M8 6h8M6 8v8M18 8v8M8 18h8" })
57
52
  ] })),
58
- pipeline: W(/* @__PURE__ */ V(z, { children: [
53
+ pipeline: G(/* @__PURE__ */ V(z, { children: [
59
54
  /* @__PURE__ */ B("path", { d: "M3 6h13l5 3-5 3H3z" }),
60
55
  /* @__PURE__ */ B("path", { d: "M3 13h9" }),
61
56
  /* @__PURE__ */ B("path", { d: "M3 18h13" })
62
57
  ] })),
63
- leads: W(/* @__PURE__ */ V(z, { children: [
58
+ leads: G(/* @__PURE__ */ V(z, { children: [
64
59
  /* @__PURE__ */ B("circle", {
65
60
  cx: "9",
66
61
  cy: "8",
@@ -69,13 +64,13 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
69
64
  /* @__PURE__ */ B("path", { d: "M3 20c0-3 3-5 6-5s6 2 6 5" }),
70
65
  /* @__PURE__ */ B("path", { d: "M17 10l2 2 4-4" })
71
66
  ] })),
72
- company: W(/* @__PURE__ */ V(z, { children: [
67
+ company: G(/* @__PURE__ */ V(z, { children: [
73
68
  /* @__PURE__ */ B("path", { d: "M4 21V6a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v15" }),
74
69
  /* @__PURE__ */ B("path", { d: "M15 21V11h4a1 1 0 0 1 1 1v9" }),
75
70
  /* @__PURE__ */ B("path", { d: "M7 9h2M7 13h2M7 17h2M11 9h1M11 13h1M11 17h1" })
76
71
  ] })),
77
- activity: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M3 12h4l3-8 4 16 3-8h4" }) })),
78
- users: W(/* @__PURE__ */ V(z, { children: [
72
+ activity: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M3 12h4l3-8 4 16 3-8h4" }) })),
73
+ users: G(/* @__PURE__ */ V(z, { children: [
79
74
  /* @__PURE__ */ B("circle", {
80
75
  cx: "9",
81
76
  cy: "8",
@@ -85,19 +80,19 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
85
80
  /* @__PURE__ */ B("path", { d: "M16 3.5a3 3 0 0 1 0 6" }),
86
81
  /* @__PURE__ */ B("path", { d: "M22 20c0-2.5-1.5-5-4-6" })
87
82
  ] })),
88
- tenant: W(/* @__PURE__ */ V(z, { children: [
83
+ tenant: G(/* @__PURE__ */ V(z, { children: [
89
84
  /* @__PURE__ */ B("path", { d: "M3 21V9l6-4 6 4M3 21h18" }),
90
85
  /* @__PURE__ */ B("path", { d: "M15 21V9" }),
91
86
  /* @__PURE__ */ B("path", { d: "M19 21V13l2-2" }),
92
87
  /* @__PURE__ */ B("path", { d: "M7 13h2M7 17h2M11 13h1M11 17h1" })
93
88
  ] })),
94
- shield: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }) })),
95
- key: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
89
+ shield: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }) })),
90
+ key: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
96
91
  cx: "8",
97
92
  cy: "14",
98
93
  r: "4"
99
94
  }), /* @__PURE__ */ B("path", { d: "m11 11 9-9M17 5l3 3M15 7l3 3" })] })),
100
- group: W(/* @__PURE__ */ V(z, { children: [
95
+ group: G(/* @__PURE__ */ V(z, { children: [
101
96
  /* @__PURE__ */ B("circle", {
102
97
  cx: "8",
103
98
  cy: "10",
@@ -111,7 +106,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
111
106
  /* @__PURE__ */ B("path", { d: "M2 20c0-3 2.5-5 6-5s6 2 6 5" }),
112
107
  /* @__PURE__ */ B("path", { d: "M15 16c2-1 4-1 6 0" })
113
108
  ] })),
114
- idp: W(/* @__PURE__ */ V(z, { children: [
109
+ idp: G(/* @__PURE__ */ V(z, { children: [
115
110
  /* @__PURE__ */ B("rect", {
116
111
  x: "3",
117
112
  y: "5",
@@ -122,24 +117,24 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
122
117
  /* @__PURE__ */ B("path", { d: "M3 10h18" }),
123
118
  /* @__PURE__ */ B("path", { d: "M7 15h4" })
124
119
  ] })),
125
- audit: W(/* @__PURE__ */ V(z, { children: [
120
+ audit: G(/* @__PURE__ */ V(z, { children: [
126
121
  /* @__PURE__ */ B("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }),
127
122
  /* @__PURE__ */ B("path", { d: "M14 3v6h6" }),
128
123
  /* @__PURE__ */ B("path", { d: "M8 13h8M8 17h5" })
129
124
  ] })),
130
- log: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
125
+ log: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
131
126
  x: "3",
132
127
  y: "4",
133
128
  width: "18",
134
129
  height: "16",
135
130
  rx: "2"
136
131
  }), /* @__PURE__ */ B("path", { d: "M7 9h10M7 13h10M7 17h6" })] })),
137
- handlers: W(/* @__PURE__ */ V(z, { children: [
132
+ handlers: G(/* @__PURE__ */ V(z, { children: [
138
133
  /* @__PURE__ */ B("path", { d: "M10 4 4 8v8l6 4 6-4" }),
139
134
  /* @__PURE__ */ B("path", { d: "M16 4l4 2.5v8L16 17" }),
140
135
  /* @__PURE__ */ B("path", { d: "m10 12 6-3.5" })
141
136
  ] })),
142
- jobs: W(/* @__PURE__ */ V(z, { children: [
137
+ jobs: G(/* @__PURE__ */ V(z, { children: [
143
138
  /* @__PURE__ */ B("rect", {
144
139
  x: "3",
145
140
  y: "6",
@@ -151,7 +146,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
151
146
  /* @__PURE__ */ B("path", { d: "M12 10v5" }),
152
147
  /* @__PURE__ */ B("path", { d: "M10 12h4" })
153
148
  ] })),
154
- sched: W(/* @__PURE__ */ V(z, { children: [
149
+ sched: G(/* @__PURE__ */ V(z, { children: [
155
150
  /* @__PURE__ */ B("circle", {
156
151
  cx: "12",
157
152
  cy: "13",
@@ -160,7 +155,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
160
155
  /* @__PURE__ */ B("path", { d: "M12 9v4l3 2" }),
161
156
  /* @__PURE__ */ B("path", { d: "M9 3h6" })
162
157
  ] })),
163
- entity: W(/* @__PURE__ */ V(z, { children: [
158
+ entity: G(/* @__PURE__ */ V(z, { children: [
164
159
  /* @__PURE__ */ B("ellipse", {
165
160
  cx: "12",
166
161
  cy: "6",
@@ -170,26 +165,26 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
170
165
  /* @__PURE__ */ B("path", { d: "M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6" }),
171
166
  /* @__PURE__ */ B("path", { d: "M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6" })
172
167
  ] })),
173
- field: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M4 6h16M4 12h10M4 18h16" }) })),
174
- action: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
175
- code: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m8 8-4 4 4 4M16 8l4 4-4 4M14 4l-4 16" }) })),
176
- search: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
168
+ field: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M4 6h16M4 12h10M4 18h16" }) })),
169
+ action: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
170
+ code: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m8 8-4 4 4 4M16 8l4 4-4 4M14 4l-4 16" }) })),
171
+ search: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
177
172
  cx: "11",
178
173
  cy: "11",
179
174
  r: "7"
180
175
  }), /* @__PURE__ */ B("path", { d: "m20 20-3.5-3.5" })] })),
181
- filter: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M3 5h18l-7 9v6l-4-2v-4z" }) })),
182
- columns: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
176
+ filter: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M3 5h18l-7 9v6l-4-2v-4z" }) })),
177
+ columns: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
183
178
  x: "3",
184
179
  y: "4",
185
180
  width: "18",
186
181
  height: "16",
187
182
  rx: "1"
188
183
  }), /* @__PURE__ */ B("path", { d: "M9 4v16M15 4v16" })] })),
189
- plus: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 5v14M5 12h14" }) })),
190
- minus: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M5 12h14" }) })),
191
- sort: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M8 4v16l-3-3M8 4l3 3" }), /* @__PURE__ */ B("path", { d: "M16 20V4l-3 3M16 20l3-3" })] })),
192
- more: W(/* @__PURE__ */ V(z, { children: [
184
+ plus: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 5v14M5 12h14" }) })),
185
+ minus: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M5 12h14" }) })),
186
+ sort: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M8 4v16l-3-3M8 4l3 3" }), /* @__PURE__ */ B("path", { d: "M16 20V4l-3 3M16 20l3-3" })] })),
187
+ more: G(/* @__PURE__ */ V(z, { children: [
193
188
  /* @__PURE__ */ B("circle", {
194
189
  cx: "5",
195
190
  cy: "12",
@@ -206,15 +201,15 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
206
201
  r: "1.2"
207
202
  })
208
203
  ] }), { sw: 2 }),
209
- x: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M18 6 6 18M6 6l12 12" }) })),
210
- check: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m5 12 5 5L20 7" }) }), { sw: 2 }),
211
- down: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m6 9 6 6 6-6" }) })),
212
- up: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m6 15 6-6 6 6" }) })),
213
- right: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m9 6 6 6-6 6" }) })),
214
- left: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m15 6-6 6 6 6" }) })),
215
- cheveron: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m8 10 4 4 4-4" }) })),
216
- back: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M19 12H5M12 19l-7-7 7-7" }) })),
217
- calendar: W(/* @__PURE__ */ V(z, { children: [
204
+ x: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M18 6 6 18M6 6l12 12" }) })),
205
+ check: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m5 12 5 5L20 7" }) }), { sw: 2 }),
206
+ down: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m6 9 6 6 6-6" }) })),
207
+ up: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m6 15 6-6 6 6" }) })),
208
+ right: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m9 6 6 6-6 6" }) })),
209
+ left: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m15 6-6 6 6 6" }) })),
210
+ cheveron: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m8 10 4 4 4-4" }) })),
211
+ back: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M19 12H5M12 19l-7-7 7-7" }) })),
212
+ calendar: G(/* @__PURE__ */ V(z, { children: [
218
213
  /* @__PURE__ */ B("rect", {
219
214
  x: "3",
220
215
  y: "5",
@@ -225,93 +220,93 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
225
220
  /* @__PURE__ */ B("path", { d: "M3 10h18" }),
226
221
  /* @__PURE__ */ B("path", { d: "M8 3v4M16 3v4" })
227
222
  ] })),
228
- clock: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
223
+ clock: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
229
224
  cx: "12",
230
225
  cy: "12",
231
226
  r: "9"
232
227
  }), /* @__PURE__ */ B("path", { d: "M12 7v5l3 2" })] })),
233
- lock: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
228
+ lock: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
234
229
  x: "5",
235
230
  y: "11",
236
231
  width: "14",
237
232
  height: "9",
238
233
  rx: "2"
239
234
  }), /* @__PURE__ */ B("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })] })),
240
- email: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
235
+ email: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
241
236
  x: "3",
242
237
  y: "5",
243
238
  width: "18",
244
239
  height: "14",
245
240
  rx: "2"
246
241
  }), /* @__PURE__ */ B("path", { d: "m3 7 9 6 9-6" })] })),
247
- link: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M10 14a5 5 0 0 0 7 0l3-3a5 5 0 1 0-7-7l-1 1" }), /* @__PURE__ */ B("path", { d: "M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 1 0 7 7l1-1" })] })),
248
- hash: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M5 9h14M5 15h14M10 3 8 21M16 3l-2 18" }) })),
249
- eye: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ B("circle", {
242
+ link: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M10 14a5 5 0 0 0 7 0l3-3a5 5 0 1 0-7-7l-1 1" }), /* @__PURE__ */ B("path", { d: "M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 1 0 7 7l1-1" })] })),
243
+ hash: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M5 9h14M5 15h14M10 3 8 21M16 3l-2 18" }) })),
244
+ eye: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ B("circle", {
250
245
  cx: "12",
251
246
  cy: "12",
252
247
  r: "3"
253
248
  })] })),
254
- eyeOff: W(/* @__PURE__ */ V(z, { children: [
249
+ eyeOff: G(/* @__PURE__ */ V(z, { children: [
255
250
  /* @__PURE__ */ B("path", { d: "M3 3l18 18" }),
256
251
  /* @__PURE__ */ B("path", { d: "M10.6 6.2A10 10 0 0 1 12 6c6.5 0 10 6 10 6a17 17 0 0 1-3.6 4.3M6.4 6.4A17 17 0 0 0 2 12s3.5 6 10 6c1.3 0 2.5-.2 3.6-.6" }),
257
252
  /* @__PURE__ */ B("path", { d: "M9.9 9.9a3 3 0 0 0 4.2 4.2" })
258
253
  ] })),
259
- copy: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
254
+ copy: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
260
255
  x: "9",
261
256
  y: "9",
262
257
  width: "11",
263
258
  height: "11",
264
259
  rx: "2"
265
260
  }), /* @__PURE__ */ B("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })] })),
266
- trash: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }) })),
267
- edit: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 20h4l11-11-4-4L4 16z" }), /* @__PURE__ */ B("path", { d: "m13 6 4 4" })] })),
268
- save: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }), /* @__PURE__ */ B("path", { d: "M7 3v5h8V3M8 15h8v6H8z" })] })),
269
- refresh: W(/* @__PURE__ */ V(z, { children: [
261
+ trash: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }) })),
262
+ edit: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 20h4l11-11-4-4L4 16z" }), /* @__PURE__ */ B("path", { d: "m13 6 4 4" })] })),
263
+ save: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }), /* @__PURE__ */ B("path", { d: "M7 3v5h8V3M8 15h8v6H8z" })] })),
264
+ refresh: G(/* @__PURE__ */ V(z, { children: [
270
265
  /* @__PURE__ */ B("path", { d: "M3 12a9 9 0 0 1 15-6.7L21 8" }),
271
266
  /* @__PURE__ */ B("path", { d: "M21 3v5h-5" }),
272
267
  /* @__PURE__ */ B("path", { d: "M21 12a9 9 0 0 1-15 6.7L3 16" }),
273
268
  /* @__PURE__ */ B("path", { d: "M3 21v-5h5" })
274
269
  ] })),
275
- download: W(/* @__PURE__ */ V(z, { children: [
270
+ download: G(/* @__PURE__ */ V(z, { children: [
276
271
  /* @__PURE__ */ B("path", { d: "M12 3v12" }),
277
272
  /* @__PURE__ */ B("path", { d: "m7 10 5 5 5-5" }),
278
273
  /* @__PURE__ */ B("path", { d: "M5 20h14" })
279
274
  ] })),
280
- upload: W(/* @__PURE__ */ V(z, { children: [
275
+ upload: G(/* @__PURE__ */ V(z, { children: [
281
276
  /* @__PURE__ */ B("path", { d: "M12 15V3" }),
282
277
  /* @__PURE__ */ B("path", { d: "m7 8 5-5 5 5" }),
283
278
  /* @__PURE__ */ B("path", { d: "M5 20h14" })
284
279
  ] })),
285
- paperclip: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m21 10-9.2 9.2a5 5 0 1 1-7-7L14 3a3.5 3.5 0 0 1 5 5L9.8 17.2a2 2 0 1 1-3-3L15 6" }) })),
286
- tag: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 4h7l9 9-7 7-9-9z" }), /* @__PURE__ */ B("circle", {
280
+ paperclip: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m21 10-9.2 9.2a5 5 0 1 1-7-7L14 3a3.5 3.5 0 0 1 5 5L9.8 17.2a2 2 0 1 1-3-3L15 6" }) })),
281
+ tag: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 4h7l9 9-7 7-9-9z" }), /* @__PURE__ */ B("circle", {
287
282
  cx: "8",
288
283
  cy: "8",
289
284
  r: "1.5"
290
285
  })] })),
291
- bolt: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
292
- bell: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16z" }), /* @__PURE__ */ B("path", { d: "M10 20a2 2 0 0 0 4 0" })] })),
293
- ai: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.5 5.5l2 2M16.5 16.5l2 2M18.5 5.5l-2 2M7.5 16.5l-2 2" }), /* @__PURE__ */ B("circle", {
286
+ bolt: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
287
+ bell: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16z" }), /* @__PURE__ */ B("path", { d: "M10 20a2 2 0 0 0 4 0" })] })),
288
+ ai: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.5 5.5l2 2M16.5 16.5l2 2M18.5 5.5l-2 2M7.5 16.5l-2 2" }), /* @__PURE__ */ B("circle", {
294
289
  cx: "12",
295
290
  cy: "12",
296
291
  r: "3.5"
297
292
  })] })),
298
- sparkle: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4" }), /* @__PURE__ */ B("path", { d: "m7 7 2 2M15 15l2 2M17 7l-2 2M9 15l-2 2" })] })),
299
- command: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M9 3a3 3 0 1 1-3 3v12a3 3 0 1 1 3-3h6a3 3 0 1 1 3 3V6a3 3 0 1 1-3 3H9" }) })),
300
- menu: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M4 6h16M4 12h16M4 18h16" }) })),
301
- dot: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("circle", {
293
+ sparkle: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4" }), /* @__PURE__ */ B("path", { d: "m7 7 2 2M15 15l2 2M17 7l-2 2M9 15l-2 2" })] })),
294
+ command: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M9 3a3 3 0 1 1-3 3v12a3 3 0 1 1 3-3h6a3 3 0 1 1 3 3V6a3 3 0 1 1-3 3H9" }) })),
295
+ menu: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M4 6h16M4 12h16M4 18h16" }) })),
296
+ dot: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("circle", {
302
297
  cx: "12",
303
298
  cy: "12",
304
299
  r: "4",
305
300
  fill: "currentColor"
306
301
  }) })),
307
- globe: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
302
+ globe: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
308
303
  cx: "12",
309
304
  cy: "12",
310
305
  r: "9"
311
306
  }), /* @__PURE__ */ B("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })),
312
- folder: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M3 6a1 1 0 0 1 1-1h5l2 2h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z" }) })),
313
- file: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }), /* @__PURE__ */ B("path", { d: "M14 3v6h6" })] })),
314
- branch: W(/* @__PURE__ */ V(z, { children: [
307
+ folder: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M3 6a1 1 0 0 1 1-1h5l2 2h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z" }) })),
308
+ file: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }), /* @__PURE__ */ B("path", { d: "M14 3v6h6" })] })),
309
+ branch: G(/* @__PURE__ */ V(z, { children: [
315
310
  /* @__PURE__ */ B("circle", {
316
311
  cx: "6",
317
312
  cy: "6",
@@ -330,24 +325,24 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
330
325
  /* @__PURE__ */ B("path", { d: "M6 8v8" }),
331
326
  /* @__PURE__ */ B("path", { d: "M18 10c0 4-4 4-6 6" })
332
327
  ] })),
333
- sun: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
328
+ sun: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
334
329
  cx: "12",
335
330
  cy: "12",
336
331
  r: "4"
337
332
  }), /* @__PURE__ */ B("path", { d: "M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M18.4 5.6 17 7M7 17l-1.4 1.4" })] })),
338
- moon: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M20 14A8 8 0 0 1 10 4a8 8 0 1 0 10 10z" }) })),
339
- settings: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
333
+ moon: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M20 14A8 8 0 0 1 10 4a8 8 0 1 0 10 10z" }) })),
334
+ settings: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
340
335
  cx: "12",
341
336
  cy: "12",
342
337
  r: "3"
343
338
  }), /* @__PURE__ */ B("path", { d: "M19 12a7 7 0 0 0-.2-1.7l2-1.5-2-3.4-2.3.9a7 7 0 0 0-3-1.7L13 2h-4l-.5 2.6a7 7 0 0 0-3 1.7L3.2 5.4l-2 3.4 2 1.5A7 7 0 0 0 3 12c0 .6.1 1.2.2 1.7l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 3 1.7L9 22h4l.5-2.6a7 7 0 0 0 3-1.7l2.3.9 2-3.4-2-1.5c.1-.5.2-1.1.2-1.7z" })] })),
344
- logout: W(/* @__PURE__ */ V(z, { children: [
339
+ logout: G(/* @__PURE__ */ V(z, { children: [
345
340
  /* @__PURE__ */ B("path", { d: "M14 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
346
341
  /* @__PURE__ */ B("path", { d: "M10 17 5 12l5-5" }),
347
342
  /* @__PURE__ */ B("path", { d: "M5 12h12" })
348
343
  ] })),
349
- loader: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M18.4 5.6l-2.8 2.8M8.4 15.6l-2.8 2.8" }) })),
350
- grid: W(/* @__PURE__ */ V(z, { children: [
344
+ loader: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M18.4 5.6l-2.8 2.8M8.4 15.6l-2.8 2.8" }) })),
345
+ grid: G(/* @__PURE__ */ V(z, { children: [
351
346
  /* @__PURE__ */ B("rect", {
352
347
  x: "4",
353
348
  y: "4",
@@ -377,40 +372,40 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
377
372
  rx: "1"
378
373
  })
379
374
  ] })),
380
- star: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m12 3 3 6 6 1-4.5 4.5 1 6.5L12 18l-5.5 3 1-6.5L3 10l6-1z" }) })),
381
- warning: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "m12 3 10 18H2z" }), /* @__PURE__ */ B("path", { d: "M12 10v5M12 18v.5" })] })),
382
- info: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
375
+ star: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "m12 3 3 6 6 1-4.5 4.5 1 6.5L12 18l-5.5 3 1-6.5L3 10l6-1z" }) })),
376
+ warning: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "m12 3 10 18H2z" }), /* @__PURE__ */ B("path", { d: "M12 10v5M12 18v.5" })] })),
377
+ info: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
383
378
  cx: "12",
384
379
  cy: "12",
385
380
  r: "9"
386
381
  }), /* @__PURE__ */ B("path", { d: "M12 11v6M12 8v.5" })] })),
387
- building: W(/* @__PURE__ */ V(z, { children: [
382
+ building: G(/* @__PURE__ */ V(z, { children: [
388
383
  /* @__PURE__ */ B("path", { d: "M4 21V3h12v18M4 21h16" }),
389
384
  /* @__PURE__ */ B("path", { d: "M16 9h4v12" }),
390
385
  /* @__PURE__ */ B("path", { d: "M7 6h2M7 10h2M7 14h2M11 6h2M11 10h2M11 14h2" })
391
386
  ] })),
392
- device: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
387
+ device: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
393
388
  x: "5",
394
389
  y: "3",
395
390
  width: "14",
396
391
  height: "18",
397
392
  rx: "2"
398
393
  }), /* @__PURE__ */ B("path", { d: "M10 18h4" })] })),
399
- arrowUp: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 19V5M5 12l7-7 7 7" }) })),
400
- arrowDown: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 5v14M5 12l7 7 7-7" }) })),
401
- external: W(/* @__PURE__ */ V(z, { children: [
394
+ arrowUp: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 19V5M5 12l7-7 7 7" }) })),
395
+ arrowDown: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M12 5v14M5 12l7 7 7-7" }) })),
396
+ external: G(/* @__PURE__ */ V(z, { children: [
402
397
  /* @__PURE__ */ B("path", { d: "M14 4h6v6" }),
403
398
  /* @__PURE__ */ B("path", { d: "M20 4 10 14" }),
404
399
  /* @__PURE__ */ B("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
405
400
  ] })),
406
- dbtable: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
401
+ dbtable: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
407
402
  x: "3",
408
403
  y: "5",
409
404
  width: "18",
410
405
  height: "14",
411
406
  rx: "1"
412
407
  }), /* @__PURE__ */ B("path", { d: "M3 9h18M3 13h18M9 9v10M15 9v10" })] })),
413
- "users-round": W(/* @__PURE__ */ V(z, { children: [
408
+ "users-round": G(/* @__PURE__ */ V(z, { children: [
414
409
  /* @__PURE__ */ B("circle", {
415
410
  cx: "10",
416
411
  cy: "8",
@@ -420,12 +415,12 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
420
415
  /* @__PURE__ */ B("path", { d: "M17 4a5 5 0 0 1 0 8" }),
421
416
  /* @__PURE__ */ B("path", { d: "M22 21a6 6 0 0 0-4-5.6" })
422
417
  ] })),
423
- user: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
418
+ user: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
424
419
  cx: "12",
425
420
  cy: "7",
426
421
  r: "4"
427
422
  }), /* @__PURE__ */ B("path", { d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2" })] })),
428
- "user-plus": W(/* @__PURE__ */ V(z, { children: [
423
+ "user-plus": G(/* @__PURE__ */ V(z, { children: [
429
424
  /* @__PURE__ */ B("circle", {
430
425
  cx: "9",
431
426
  cy: "7",
@@ -434,20 +429,20 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
434
429
  /* @__PURE__ */ B("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
435
430
  /* @__PURE__ */ B("path", { d: "M19 8v6M22 11h-6" })
436
431
  ] })),
437
- "shield-check": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ B("path", { d: "m9 12 2 2 4-4" })] })),
438
- "shield-plus": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ B("path", { d: "M9 12h6M12 9v6" })] })),
439
- "key-round": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4z" }), /* @__PURE__ */ B("circle", {
432
+ "shield-check": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ B("path", { d: "m9 12 2 2 4-4" })] })),
433
+ "shield-plus": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ B("path", { d: "M9 12h6M12 9v6" })] })),
434
+ "key-round": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4z" }), /* @__PURE__ */ B("circle", {
440
435
  cx: "16.5",
441
436
  cy: "7.5",
442
437
  r: "0.5",
443
438
  fill: "currentColor"
444
439
  })] })),
445
- "list-checks": W(/* @__PURE__ */ V(z, { children: [
440
+ "list-checks": G(/* @__PURE__ */ V(z, { children: [
446
441
  /* @__PURE__ */ B("path", { d: "m3 17 2 2 4-4" }),
447
442
  /* @__PURE__ */ B("path", { d: "m3 7 2 2 4-4" }),
448
443
  /* @__PURE__ */ B("path", { d: "M13 6h8M13 12h8M13 18h8" })
449
444
  ] })),
450
- list: W(/* @__PURE__ */ V(z, { children: [
445
+ list: G(/* @__PURE__ */ V(z, { children: [
451
446
  /* @__PURE__ */ B("path", { d: "M8 6h13M8 12h13M8 18h13" }),
452
447
  /* @__PURE__ */ B("circle", {
453
448
  cx: "3.5",
@@ -468,18 +463,18 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
468
463
  fill: "currentColor"
469
464
  })
470
465
  ] })),
471
- "play-circle": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
466
+ "play-circle": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
472
467
  cx: "12",
473
468
  cy: "12",
474
469
  r: "9"
475
470
  }), /* @__PURE__ */ B("path", { d: "M10 8.5v7L16 12z" })] })),
476
- play: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M6 3 20 12 6 21z" }) })),
477
- layers: W(/* @__PURE__ */ V(z, { children: [
471
+ play: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M6 3 20 12 6 21z" }) })),
472
+ layers: G(/* @__PURE__ */ V(z, { children: [
478
473
  /* @__PURE__ */ B("path", { d: "M12 2 2 7l10 5 10-5z" }),
479
474
  /* @__PURE__ */ B("path", { d: "m2 12 10 5 10-5" }),
480
475
  /* @__PURE__ */ B("path", { d: "m2 17 10 5 10-5" })
481
476
  ] })),
482
- layout: W(/* @__PURE__ */ V(z, { children: [
477
+ layout: G(/* @__PURE__ */ V(z, { children: [
483
478
  /* @__PURE__ */ B("rect", {
484
479
  x: "3",
485
480
  y: "3",
@@ -490,7 +485,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
490
485
  /* @__PURE__ */ B("path", { d: "M3 9h18" }),
491
486
  /* @__PURE__ */ B("path", { d: "M9 21V9" })
492
487
  ] })),
493
- "layout-dashboard": W(/* @__PURE__ */ V(z, { children: [
488
+ "layout-dashboard": G(/* @__PURE__ */ V(z, { children: [
494
489
  /* @__PURE__ */ B("rect", {
495
490
  x: "3",
496
491
  y: "3",
@@ -520,7 +515,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
520
515
  rx: "1"
521
516
  })
522
517
  ] })),
523
- database: W(/* @__PURE__ */ V(z, { children: [
518
+ database: G(/* @__PURE__ */ V(z, { children: [
524
519
  /* @__PURE__ */ B("ellipse", {
525
520
  cx: "12",
526
521
  cy: "5",
@@ -530,8 +525,8 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
530
525
  /* @__PURE__ */ B("path", { d: "M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5" }),
531
526
  /* @__PURE__ */ B("path", { d: "M3 12c0 1.7 4 3 9 3s9-1.3 9-3" })
532
527
  ] })),
533
- zap: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
534
- cpu: W(/* @__PURE__ */ V(z, { children: [
528
+ zap: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
529
+ cpu: G(/* @__PURE__ */ V(z, { children: [
535
530
  /* @__PURE__ */ B("rect", {
536
531
  x: "4",
537
532
  y: "4",
@@ -547,7 +542,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
547
542
  }),
548
543
  /* @__PURE__ */ B("path", { d: "M9 2v2M15 2v2M9 20v2M15 20v2M2 9h2M2 15h2M20 9h2M20 15h2" })
549
544
  ] })),
550
- "circle-dot": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
545
+ "circle-dot": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
551
546
  cx: "12",
552
547
  cy: "12",
553
548
  r: "9"
@@ -557,7 +552,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
557
552
  r: "1.5",
558
553
  fill: "currentColor"
559
554
  })] })),
560
- "toggle-right": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
555
+ "toggle-right": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
561
556
  x: "2",
562
557
  y: "6",
563
558
  width: "20",
@@ -569,21 +564,21 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
569
564
  r: "2.5",
570
565
  fill: "currentColor"
571
566
  })] })),
572
- sliders: W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
573
- "sliders-horizontal": W(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
574
- box: W(/* @__PURE__ */ V(z, { children: [
567
+ sliders: G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
568
+ "sliders-horizontal": G(/* @__PURE__ */ B(z, { children: /* @__PURE__ */ B("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
569
+ box: G(/* @__PURE__ */ V(z, { children: [
575
570
  /* @__PURE__ */ B("path", { d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }),
576
571
  /* @__PURE__ */ B("path", { d: "m3.3 7 8.7 5 8.7-5" }),
577
572
  /* @__PURE__ */ B("path", { d: "M12 22V12" })
578
573
  ] })),
579
- "columns-3": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
574
+ "columns-3": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("rect", {
580
575
  x: "3",
581
576
  y: "4",
582
577
  width: "18",
583
578
  height: "16",
584
579
  rx: "1"
585
580
  }), /* @__PURE__ */ B("path", { d: "M9 4v16M15 4v16" })] })),
586
- "settings-2": W(/* @__PURE__ */ V(z, { children: [
581
+ "settings-2": G(/* @__PURE__ */ V(z, { children: [
587
582
  /* @__PURE__ */ B("path", { d: "M20 7h-9M14 17H5" }),
588
583
  /* @__PURE__ */ B("circle", {
589
584
  cx: "17",
@@ -596,12 +591,12 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
596
591
  r: "3"
597
592
  })
598
593
  ] })),
599
- "file-diff": W(/* @__PURE__ */ V(z, { children: [
594
+ "file-diff": G(/* @__PURE__ */ V(z, { children: [
600
595
  /* @__PURE__ */ B("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
601
596
  /* @__PURE__ */ B("path", { d: "M14 2v6h6" }),
602
597
  /* @__PURE__ */ B("path", { d: "M12 12v6M9 15h6M9 18h6" })
603
598
  ] })),
604
- "git-branch": W(/* @__PURE__ */ V(z, { children: [
599
+ "git-branch": G(/* @__PURE__ */ V(z, { children: [
605
600
  /* @__PURE__ */ B("circle", {
606
601
  cx: "6",
607
602
  cy: "6",
@@ -620,29 +615,29 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
620
615
  /* @__PURE__ */ B("path", { d: "M6 8v8" }),
621
616
  /* @__PURE__ */ B("path", { d: "M18 10a6 6 0 0 1-6 6h-2" })
622
617
  ] })),
623
- "log-in": W(/* @__PURE__ */ V(z, { children: [
618
+ "log-in": G(/* @__PURE__ */ V(z, { children: [
624
619
  /* @__PURE__ */ B("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
625
620
  /* @__PURE__ */ B("path", { d: "m10 17 5-5-5-5" }),
626
621
  /* @__PURE__ */ B("path", { d: "M15 12H3" })
627
622
  ] })),
628
- "plus-circle": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
623
+ "plus-circle": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
629
624
  cx: "12",
630
625
  cy: "12",
631
626
  r: "9"
632
627
  }), /* @__PURE__ */ B("path", { d: "M8 12h8M12 8v8" })] })),
633
- repeat: W(/* @__PURE__ */ V(z, { children: [
628
+ repeat: G(/* @__PURE__ */ V(z, { children: [
634
629
  /* @__PURE__ */ B("path", { d: "m17 2 4 4-4 4" }),
635
630
  /* @__PURE__ */ B("path", { d: "M3 11v-1a4 4 0 0 1 4-4h14" }),
636
631
  /* @__PURE__ */ B("path", { d: "m7 22-4-4 4-4" }),
637
632
  /* @__PURE__ */ B("path", { d: "M21 13v1a4 4 0 0 1-4 4H3" })
638
633
  ] })),
639
- ban: W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
634
+ ban: G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
640
635
  cx: "12",
641
636
  cy: "12",
642
637
  r: "9"
643
638
  }), /* @__PURE__ */ B("path", { d: "m5.6 5.6 12.8 12.8" })] })),
644
- "trash-2": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ B("path", { d: "M10 11v6M14 11v6" })] })),
645
- "shopping-cart": W(/* @__PURE__ */ V(z, { children: [
639
+ "trash-2": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ B("path", { d: "M10 11v6M14 11v6" })] })),
640
+ "shopping-cart": G(/* @__PURE__ */ V(z, { children: [
646
641
  /* @__PURE__ */ B("circle", {
647
642
  cx: "9",
648
643
  cy: "20",
@@ -655,7 +650,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
655
650
  }),
656
651
  /* @__PURE__ */ B("path", { d: "M2 3h3l3 12h10l3-8H7" })
657
652
  ] })),
658
- "credit-card": W(/* @__PURE__ */ V(z, { children: [
653
+ "credit-card": G(/* @__PURE__ */ V(z, { children: [
659
654
  /* @__PURE__ */ B("rect", {
660
655
  x: "3",
661
656
  y: "5",
@@ -666,22 +661,22 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
666
661
  /* @__PURE__ */ B("path", { d: "M3 10h18" }),
667
662
  /* @__PURE__ */ B("path", { d: "M7 15h4" })
668
663
  ] })),
669
- package: W(/* @__PURE__ */ V(z, { children: [
664
+ package: G(/* @__PURE__ */ V(z, { children: [
670
665
  /* @__PURE__ */ B("path", { d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" }),
671
666
  /* @__PURE__ */ B("path", { d: "m3.3 7 8.7 5 8.7-5" }),
672
667
  /* @__PURE__ */ B("path", { d: "M12 22V12" })
673
668
  ] })),
674
- boxes: W(/* @__PURE__ */ V(z, { children: [
669
+ boxes: G(/* @__PURE__ */ V(z, { children: [
675
670
  /* @__PURE__ */ B("path", { d: "M7.5 7.5 3 10v5l4.5 2.5L12 15v-5z" }),
676
671
  /* @__PURE__ */ B("path", { d: "M16.5 7.5 12 10v5l4.5 2.5L21 15v-5z" }),
677
672
  /* @__PURE__ */ B("path", { d: "M12 2.5 7.5 5v5L12 12.5 16.5 10V5z" })
678
673
  ] })),
679
- tags: W(/* @__PURE__ */ V(z, { children: [
674
+ tags: G(/* @__PURE__ */ V(z, { children: [
680
675
  /* @__PURE__ */ B("path", { d: "M4 4h7l9 9-7 7-9-9z" }),
681
676
  /* @__PURE__ */ B("path", { d: "M8 8h.01" }),
682
677
  /* @__PURE__ */ B("path", { d: "M13 4h2l6 6" })
683
678
  ] })),
684
- "wallet-cards": W(/* @__PURE__ */ V(z, { children: [
679
+ "wallet-cards": G(/* @__PURE__ */ V(z, { children: [
685
680
  /* @__PURE__ */ B("rect", {
686
681
  x: "3",
687
682
  y: "7",
@@ -692,14 +687,14 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
692
687
  /* @__PURE__ */ B("path", { d: "M16 11h5v5h-5a2.5 2.5 0 0 1 0-5z" }),
693
688
  /* @__PURE__ */ B("path", { d: "M5 7V5a2 2 0 0 1 2-2h10v4" })
694
689
  ] })),
695
- "receipt-text": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M6 3h12v18l-3-2-3 2-3-2-3 2z" }), /* @__PURE__ */ B("path", { d: "M9 8h6M9 12h6M9 16h4" })] })),
696
- "badge-dollar-sign": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
690
+ "receipt-text": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M6 3h12v18l-3-2-3 2-3-2-3 2z" }), /* @__PURE__ */ B("path", { d: "M9 8h6M9 12h6M9 16h4" })] })),
691
+ "badge-dollar-sign": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
697
692
  cx: "12",
698
693
  cy: "12",
699
694
  r: "9"
700
695
  }), /* @__PURE__ */ B("path", { d: "M12 6v12M15 9.5c-.7-.8-1.7-1.2-3-1.2-1.6 0-2.7.8-2.7 2s1 1.7 2.7 2.1c1.8.4 3 .9 3 2.3S13.8 17 12 17c-1.4 0-2.6-.5-3.4-1.4" })] })),
701
- "undo-2": W(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M9 14 4 9l5-5" }), /* @__PURE__ */ B("path", { d: "M4 9h10a6 6 0 1 1 0 12h-2" })] }))
702
- }, K = A(function({ kind: e = "default", size: t = "sm", icon: n, iconRight: r, children: i, onClick: a, active: o, danger: s, style: c, disabled: l, type: u = "button", title: d, ...f }, p) {
696
+ "undo-2": G(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("path", { d: "M9 14 4 9l5-5" }), /* @__PURE__ */ B("path", { d: "M4 9h10a6 6 0 1 1 0 12h-2" })] }))
697
+ }, q = A(function({ kind: e = "default", size: t = "sm", icon: n, iconRight: r, children: i, onClick: a, active: o, danger: s, style: c, disabled: l, type: u = "button", title: d, ...f }, p) {
703
698
  let m = {
704
699
  display: "inline-flex",
705
700
  alignItems: "center",
@@ -764,7 +759,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
764
759
  r
765
760
  ]
766
761
  });
767
- }), q = A(function({ icon: e, onClick: t, title: n, size: r = 28, active: i, disabled: a, style: o }, s) {
762
+ }), J = A(function({ icon: e, onClick: t, title: n, size: r = 28, active: i, disabled: a, style: o }, s) {
768
763
  return /* @__PURE__ */ B("button", {
769
764
  type: "button",
770
765
  ref: s,
@@ -798,7 +793,7 @@ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
798
793
  });
799
794
  //#endregion
800
795
  //#region src/components/primitives/Pill.tsx
801
- function J({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style: i }) {
796
+ function Y({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style: i }) {
802
797
  let a = `var(--pill-${e}-bg)`, o = `var(--pill-${e})`;
803
798
  return /* @__PURE__ */ V("span", {
804
799
  className: "num",
@@ -835,7 +830,7 @@ function J({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style:
835
830
  }
836
831
  //#endregion
837
832
  //#region src/components/primitives/Kbd.tsx
838
- function Y({ children: e }) {
833
+ function ie({ children: e }) {
839
834
  return /* @__PURE__ */ B("span", {
840
835
  className: "mono",
841
836
  style: {
@@ -856,7 +851,7 @@ function Y({ children: e }) {
856
851
  }
857
852
  //#endregion
858
853
  //#region src/components/primitives/Avatar.tsx
859
- function oe({ name: e, size: t = 22, color: n }) {
854
+ function ae({ name: e, size: t = 22, color: n }) {
860
855
  let r = e.split(/\s+/).map((e) => e[0]).slice(0, 2).join("").toUpperCase(), i = e.split("").reduce((e, t) => e + t.charCodeAt(0), 0), a = [
861
856
  "#DCE4F6",
862
857
  "#E4DCF6",
@@ -886,7 +881,7 @@ function oe({ name: e, size: t = 22, color: n }) {
886
881
  }
887
882
  //#endregion
888
883
  //#region src/components/primitives/BrandGlyph.tsx
889
- function se({ size: e = 24, className: t, title: n }) {
884
+ function oe({ size: e = 24, className: t, title: n }) {
890
885
  return /* @__PURE__ */ V("svg", {
891
886
  width: e,
892
887
  height: e,
@@ -922,7 +917,7 @@ function se({ size: e = 24, className: t, title: n }) {
922
917
  }
923
918
  //#endregion
924
919
  //#region src/components/primitives/Dropdown.tsx
925
- function ce({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
920
+ function se({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
926
921
  let s = I(null), [c, l] = L(null);
927
922
  return P(() => {
928
923
  if (!e || !n) return;
@@ -941,14 +936,14 @@ function ce({ open: e, onClose: t, anchor: n, children: r, align: i = "start", w
941
936
  if (!e) return;
942
937
  let r = (e) => {
943
938
  let r = e.target;
944
- s.current && r && !s.current.contains(r) && n && !n.contains(r) && t && t();
939
+ s.current && r && !s.current.contains(r) && n && !n.contains(r) && t?.();
945
940
  };
946
941
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
947
942
  }, [
948
943
  e,
949
944
  n,
950
945
  t
951
- ]), !e || !c ? null : ne(/* @__PURE__ */ B("div", {
946
+ ]), !e || !c ? null : H(/* @__PURE__ */ B("div", {
952
947
  ref: s,
953
948
  style: {
954
949
  position: "fixed",
@@ -968,13 +963,13 @@ function ce({ open: e, onClose: t, anchor: n, children: r, align: i = "start", w
968
963
  }
969
964
  //#endregion
970
965
  //#region src/components/primitives/HoverCard.tsx
971
- var le = 400, ue = 150, de = 320, fe = 240, pe = 4, X = 4;
972
- function me({ content: e, children: t, width: n = de, align: r = "center", style: i }) {
966
+ var ce = 400, le = 150, ue = 320, de = 240, fe = 4, pe = 4;
967
+ function me({ content: e, children: t, width: n = ue, align: r = "center", style: i }) {
973
968
  let a = I(null), o = I(null), s = I(null), c = I(null), [l, u] = L(!1), [d, f] = L(null), [p, m] = L(!1), h = M(() => {
974
969
  let e = a.current;
975
970
  if (!e) return;
976
- let t = e.getBoundingClientRect(), i = typeof window < "u" ? window.innerWidth : 0, s = typeof window < "u" ? window.innerHeight : 0, c = o.current?.offsetHeight ?? fe, l = s - t.bottom < c + X * 2 && t.top > c + X * 2 ? "above" : "below", u = l === "below" ? t.bottom + X : t.top - X - c, d;
977
- d = r === "start" ? t.left : r === "end" ? t.right - n : t.left + t.width / 2 - n / 2, d + n > i - pe && (d = Math.max(pe, t.right - n)), d < pe && (d = pe), f((e) => e && e.top === u && e.left === d && e.placement === l ? e : {
971
+ let t = e.getBoundingClientRect(), i = typeof window < "u" ? window.innerWidth : 0, s = typeof window < "u" ? window.innerHeight : 0, c = o.current?.offsetHeight ?? de, l = s - t.bottom < c + pe * 2 && t.top > c + pe * 2 ? "above" : "below", u = l === "below" ? t.bottom + pe : t.top - pe - c, d;
972
+ d = r === "start" ? t.left : r === "end" ? t.right - n : t.left + t.width / 2 - n / 2, d + n > i - fe && (d = Math.max(fe, t.right - n)), d < fe && (d = fe), f((e) => e && e.top === u && e.left === d && e.placement === l ? e : {
978
973
  top: u,
979
974
  left: d,
980
975
  placement: l
@@ -991,11 +986,11 @@ function me({ content: e, children: t, width: n = de, align: r = "center", style
991
986
  }, v = () => {
992
987
  c.current !== null && (window.clearTimeout(c.current), c.current = null), !(l || s.current !== null) && (s.current = window.setTimeout(() => {
993
988
  s.current = null, u(!0);
994
- }, le));
989
+ }, ce));
995
990
  }, y = () => {
996
991
  s.current !== null && (window.clearTimeout(s.current), s.current = null), c.current === null && (c.current = window.setTimeout(() => {
997
992
  c.current = null, u(!1);
998
- }, ue));
993
+ }, le));
999
994
  };
1000
995
  N(() => () => {
1001
996
  ee(), g.current &&= (g.current.disconnect(), null);
@@ -1008,7 +1003,7 @@ function me({ content: e, children: t, width: n = de, align: r = "center", style
1008
1003
  window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
1009
1004
  };
1010
1005
  }, [l, h]);
1011
- let b = l && d ? ne(/* @__PURE__ */ B("div", {
1006
+ let b = l && d ? H(/* @__PURE__ */ B("div", {
1012
1007
  ref: _,
1013
1008
  role: "tooltip",
1014
1009
  onMouseEnter: () => {
@@ -1020,7 +1015,7 @@ function me({ content: e, children: t, width: n = de, align: r = "center", style
1020
1015
  top: d.top,
1021
1016
  left: d.left,
1022
1017
  width: n,
1023
- maxHeight: fe,
1018
+ maxHeight: de,
1024
1019
  overflowY: "auto",
1025
1020
  zIndex: 250,
1026
1021
  background: "var(--surface)",
@@ -1082,7 +1077,7 @@ function he({ icon: e, children: t, onRemove: n, onClick: r }) {
1082
1077
  cursor: "pointer",
1083
1078
  display: "flex"
1084
1079
  },
1085
- children: /* @__PURE__ */ B(G.x, { size: 12 })
1080
+ children: /* @__PURE__ */ B(K.x, { size: 12 })
1086
1081
  })
1087
1082
  ]
1088
1083
  });
@@ -1198,16 +1193,16 @@ function _e({ title: e, subtitle: t, right: n, badge: r, count: i, children: a,
1198
1193
  ]
1199
1194
  })
1200
1195
  }),
1201
- r && /* @__PURE__ */ B(J, {
1196
+ r && /* @__PURE__ */ B(Y, {
1202
1197
  tone: r.tone ?? "violet",
1203
1198
  size: "xs",
1204
1199
  dot: r.dot,
1205
1200
  children: r.text
1206
1201
  }),
1207
1202
  n,
1208
- s && /* @__PURE__ */ B(q, {
1203
+ s && /* @__PURE__ */ B(J, {
1209
1204
  size: 24,
1210
- icon: B(p ? G.up : G.down, { size: 14 }),
1205
+ icon: B(p ? K.up : K.down, { size: 14 }),
1211
1206
  onClick: () => m((e) => !e),
1212
1207
  title: p ? "Collapse" : "Expand"
1213
1208
  })
@@ -1244,7 +1239,7 @@ function be({ value: e }) {
1244
1239
  }, [e]),
1245
1240
  title: t ? "Copied" : `Copy ${e}`,
1246
1241
  className: "mono inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[11px] text-text-4 hover:bg-surface-2 hover:text-text-3 transition-colors shrink-0 border border-transparent hover:border-border",
1247
- children: [/* @__PURE__ */ B("span", { children: r }), t ? /* @__PURE__ */ B(G.check, { size: 10 }) : /* @__PURE__ */ B(G.copy, {
1242
+ children: [/* @__PURE__ */ B("span", { children: r }), t ? /* @__PURE__ */ B(K.check, { size: 10 }) : /* @__PURE__ */ B(K.copy, {
1248
1243
  size: 10,
1249
1244
  style: { opacity: .6 }
1250
1245
  })]
@@ -1367,7 +1362,7 @@ function Ce({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, di
1367
1362
  style: { flex: 1 },
1368
1363
  children: t
1369
1364
  }),
1370
- i && /* @__PURE__ */ B(Y, { children: i })
1365
+ i && /* @__PURE__ */ B(ie, { children: i })
1371
1366
  ]
1372
1367
  });
1373
1368
  }
@@ -1376,7 +1371,7 @@ function Ce({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, di
1376
1371
  function we({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1377
1372
  return /* @__PURE__ */ V("span", {
1378
1373
  onClick: (n) => {
1379
- n.stopPropagation(), t && t(!e);
1374
+ n.stopPropagation(), t?.(!e);
1380
1375
  },
1381
1376
  style: {
1382
1377
  display: "inline-flex",
@@ -1443,7 +1438,7 @@ function Ee({ tier: e, tierDef: t, requiredPermission: n, locale: r = "en", vari
1443
1438
  title: o,
1444
1439
  "aria-label": o,
1445
1440
  className: `inline-flex items-center gap-1 text-muted-foreground italic select-none ${i === "input" ? "border border-divider rounded-md px-2 py-1 bg-surface" : ""}`,
1446
- children: [/* @__PURE__ */ B(G.lock, { size: 12 }), /* @__PURE__ */ B("span", { children: a })]
1441
+ children: [/* @__PURE__ */ B(K.lock, { size: 12 }), /* @__PURE__ */ B("span", { children: a })]
1447
1442
  });
1448
1443
  }
1449
1444
  //#endregion
@@ -1473,7 +1468,7 @@ var De = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ V("div", {
1473
1468
  color: "var(--text-4)",
1474
1469
  display: "flex"
1475
1470
  },
1476
- children: /* @__PURE__ */ B(G.info, { size: 11 })
1471
+ children: /* @__PURE__ */ B(K.info, { size: 11 })
1477
1472
  })
1478
1473
  ]
1479
1474
  }), Oe = {
@@ -1489,7 +1484,7 @@ var De = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ V("div", {
1489
1484
  outline: "none",
1490
1485
  transition: "border-color .12s, box-shadow .12s"
1491
1486
  };
1492
- function Z({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
1487
+ function X({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
1493
1488
  let [s, c] = L(!1);
1494
1489
  return /* @__PURE__ */ V("div", {
1495
1490
  style: {
@@ -1512,7 +1507,7 @@ function Z({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style:
1512
1507
  }),
1513
1508
  /* @__PURE__ */ B("input", {
1514
1509
  value: e ?? "",
1515
- onChange: (e) => t && t(e.target.value),
1510
+ onChange: (e) => t?.(e.target.value),
1516
1511
  placeholder: n,
1517
1512
  onFocus: () => c(!0),
1518
1513
  onBlur: () => c(!1),
@@ -1553,7 +1548,7 @@ function ke({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i, id: a
1553
1548
  name: o,
1554
1549
  "aria-required": s || void 0,
1555
1550
  value: e ?? "",
1556
- onChange: (e) => t && t(e.target.value),
1551
+ onChange: (e) => t?.(e.target.value),
1557
1552
  placeholder: n,
1558
1553
  rows: i ? void 0 : r,
1559
1554
  onFocus: () => l(!0),
@@ -1609,12 +1604,12 @@ function Ne({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1609
1604
  textOverflow: "ellipsis"
1610
1605
  },
1611
1606
  children: u ? u.label : r
1612
- }), /* @__PURE__ */ B(G.down, {
1607
+ }), /* @__PURE__ */ B(K.down, {
1613
1608
  size: 12,
1614
1609
  cls: "",
1615
1610
  style: { color: "var(--text-3)" }
1616
1611
  })]
1617
- }), /* @__PURE__ */ V(ce, {
1612
+ }), /* @__PURE__ */ V(se, {
1618
1613
  open: a,
1619
1614
  anchor: l.current,
1620
1615
  onClose: () => o(!1),
@@ -1632,11 +1627,11 @@ function Ne({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1632
1627
  background: "var(--surface)",
1633
1628
  zIndex: 1
1634
1629
  },
1635
- children: /* @__PURE__ */ B(Z, {
1630
+ children: /* @__PURE__ */ B(X, {
1636
1631
  value: s,
1637
1632
  onChange: c,
1638
1633
  placeholder: "Search…",
1639
- prefix: /* @__PURE__ */ B(G.search, { size: 12 }),
1634
+ prefix: /* @__PURE__ */ B(K.search, { size: 12 }),
1640
1635
  autoFocus: !0
1641
1636
  })
1642
1637
  }),
@@ -1659,11 +1654,11 @@ function Ne({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1659
1654
  })] });
1660
1655
  }
1661
1656
  function Pe({ value: e, onChange: t }) {
1662
- return /* @__PURE__ */ B(Z, {
1657
+ return /* @__PURE__ */ B(X, {
1663
1658
  value: e || "",
1664
1659
  onChange: t,
1665
1660
  placeholder: "YYYY-MM-DD HH:mm",
1666
- prefix: /* @__PURE__ */ B(G.calendar, { size: 13 })
1661
+ prefix: /* @__PURE__ */ B(K.calendar, { size: 13 })
1667
1662
  });
1668
1663
  }
1669
1664
  function Fe(e) {
@@ -1686,7 +1681,7 @@ var Ie = [
1686
1681
  ];
1687
1682
  function Re({ value: e, onChange: t, placeholder: n = "Enter password", showStrength: r, id: i, name: a, ariaRequired: o }) {
1688
1683
  let [s, c] = L(!1), l = e || "", u = Fe(l);
1689
- return /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B(Z, {
1684
+ return /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B(X, {
1690
1685
  id: i,
1691
1686
  name: a,
1692
1687
  "aria-required": o || void 0,
@@ -1706,7 +1701,7 @@ function Re({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1706
1701
  display: "flex"
1707
1702
  },
1708
1703
  onClick: () => c((e) => !e),
1709
- children: B(s ? G.eyeOff : G.eye, { size: 14 })
1704
+ children: B(s ? K.eyeOff : K.eye, { size: 14 })
1710
1705
  })
1711
1706
  }), r && /* @__PURE__ */ V("div", {
1712
1707
  style: {
@@ -1809,12 +1804,12 @@ function Be({ value: e, onChange: t }) {
1809
1804
  children: "JSON"
1810
1805
  }),
1811
1806
  /* @__PURE__ */ B("span", { style: { flex: 1 } }),
1812
- /* @__PURE__ */ B(K, {
1807
+ /* @__PURE__ */ B(q, {
1813
1808
  size: "xs",
1814
1809
  kind: "ghost",
1815
1810
  children: "Format"
1816
1811
  }),
1817
- /* @__PURE__ */ B(K, {
1812
+ /* @__PURE__ */ B(q, {
1818
1813
  size: "xs",
1819
1814
  kind: "ghost",
1820
1815
  children: "Validate"
@@ -1823,7 +1818,7 @@ function Be({ value: e, onChange: t }) {
1823
1818
  }), /* @__PURE__ */ B("textarea", {
1824
1819
  className: "mono",
1825
1820
  value: e || "",
1826
- onChange: (e) => t && t(e.target.value),
1821
+ onChange: (e) => t?.(e.target.value),
1827
1822
  style: {
1828
1823
  width: "100%",
1829
1824
  minHeight: 140,
@@ -1874,32 +1869,32 @@ function Ve({ value: e, entity: t = "company", onChange: n, items: r = [], id: i
1874
1869
  alignItems: "center",
1875
1870
  justifyContent: "center"
1876
1871
  },
1877
- children: /* @__PURE__ */ B(G.link, { size: 11 })
1872
+ children: /* @__PURE__ */ B(K.link, { size: 11 })
1878
1873
  }), /* @__PURE__ */ B("span", {
1879
1874
  style: { color: e ? "var(--accent)" : "var(--text-placeholder)" },
1880
1875
  children: e || `Link to ${t}…`
1881
1876
  })]
1882
- }), /* @__PURE__ */ B(G.search, {
1877
+ }), /* @__PURE__ */ B(K.search, {
1883
1878
  size: 12,
1884
1879
  cls: "",
1885
1880
  style: { color: "var(--text-3)" }
1886
1881
  })]
1887
- }), /* @__PURE__ */ V(ce, {
1882
+ }), /* @__PURE__ */ V(se, {
1888
1883
  open: s,
1889
1884
  anchor: l.current,
1890
1885
  onClose: () => c(!1),
1891
1886
  width: l.current?.offsetWidth,
1892
1887
  children: [/* @__PURE__ */ B("div", {
1893
1888
  style: { padding: 4 },
1894
- children: /* @__PURE__ */ B(Z, {
1889
+ children: /* @__PURE__ */ B(X, {
1895
1890
  placeholder: `Search ${t}…`,
1896
- prefix: /* @__PURE__ */ B(G.search, { size: 12 }),
1891
+ prefix: /* @__PURE__ */ B(K.search, { size: 12 }),
1897
1892
  style: { marginBottom: 4 }
1898
1893
  })
1899
1894
  }), r.slice(0, 6).map((e) => /* @__PURE__ */ B(Ce, {
1900
- icon: /* @__PURE__ */ B(G.building, { size: 13 }),
1895
+ icon: /* @__PURE__ */ B(K.building, { size: 13 }),
1901
1896
  onClick: () => {
1902
- n && n(e.name), c(!1);
1897
+ n?.(e.name), c(!1);
1903
1898
  },
1904
1899
  children: e.name
1905
1900
  }, e.id))]
@@ -1940,7 +1935,7 @@ function He({ label: e, children: t, mono: n, wide: r, empty: i }) {
1940
1935
  }
1941
1936
  function Ue({ value: e, onChange: t, type: n = "text", options: r }) {
1942
1937
  let [i, a] = L(!1), [o, s] = L(e), c = () => {
1943
- t && o !== void 0 && t(o), a(!1);
1938
+ o !== void 0 && t?.(o), a(!1);
1944
1939
  }, l = () => {
1945
1940
  s(e), a(!1);
1946
1941
  };
@@ -1957,26 +1952,26 @@ function Ue({ value: e, onChange: t, type: n = "text", options: r }) {
1957
1952
  value: o,
1958
1953
  options: r || [],
1959
1954
  onChange: (e) => {
1960
- s(e), t && t(e), a(!1);
1955
+ s(e), t?.(e), a(!1);
1961
1956
  }
1962
1957
  }) : n === "bool" ? /* @__PURE__ */ B(Se, {
1963
1958
  value: o === "true",
1964
1959
  onChange: (e) => {
1965
1960
  let n = String(e);
1966
- s(n), t && t(n), a(!1);
1961
+ s(n), t?.(n), a(!1);
1967
1962
  }
1968
- }) : /* @__PURE__ */ B(Z, {
1963
+ }) : /* @__PURE__ */ B(X, {
1969
1964
  value: o ?? "",
1970
1965
  onChange: s,
1971
1966
  autoFocus: !0
1972
- }), n !== "select" && n !== "bool" && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(q, {
1967
+ }), n !== "select" && n !== "bool" && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(J, {
1973
1968
  size: 24,
1974
- icon: /* @__PURE__ */ B(G.check, { size: 13 }),
1969
+ icon: /* @__PURE__ */ B(K.check, { size: 13 }),
1975
1970
  onClick: c,
1976
1971
  title: "Save"
1977
- }), /* @__PURE__ */ B(q, {
1972
+ }), /* @__PURE__ */ B(J, {
1978
1973
  size: 24,
1979
- icon: /* @__PURE__ */ B(G.x, { size: 13 }),
1974
+ icon: /* @__PURE__ */ B(K.x, { size: 13 }),
1980
1975
  onClick: l,
1981
1976
  title: "Cancel"
1982
1977
  })] })]
@@ -2048,6 +2043,24 @@ var We = class e {
2048
2043
  for (let e of this.#e) yield [e.name ?? "", e];
2049
2044
  }
2050
2045
  };
2046
+ //#endregion
2047
+ //#region src/lib/display-value.ts
2048
+ function Z(e) {
2049
+ if (e == null) return "";
2050
+ switch (typeof e) {
2051
+ case "string": return e;
2052
+ case "number":
2053
+ case "boolean":
2054
+ case "bigint":
2055
+ case "symbol": return String(e);
2056
+ case "object": try {
2057
+ return JSON.stringify(e);
2058
+ } catch {
2059
+ return "[unserializable]";
2060
+ }
2061
+ default: return "";
2062
+ }
2063
+ }
2051
2064
  function Q(e, t = "en") {
2052
2065
  return e ? e[t] ?? Object.values(e)[0] ?? "" : "";
2053
2066
  }
@@ -2059,14 +2072,14 @@ function Ke(e, t) {
2059
2072
  let r = t?.display?.display_field;
2060
2073
  if (!r) return;
2061
2074
  let i = e[r];
2062
- if (i != null) return typeof i == "object" && !Array.isArray(i) ? Q(i) || void 0 : String(i);
2075
+ if (i != null) return typeof i == "object" && !Array.isArray(i) ? Q(i) || void 0 : Z(i);
2063
2076
  }
2064
2077
  function qe(e, t, n) {
2065
2078
  let r = e[Ge];
2066
2079
  if (typeof r == "string" && r !== "") return r;
2067
2080
  if (t) {
2068
2081
  let r = e[t];
2069
- if (r != null) return typeof r == "object" && !Array.isArray(r) ? Q(r) || n : String(r);
2082
+ if (r != null) return typeof r == "object" && !Array.isArray(r) ? Q(r) || n : Z(r);
2070
2083
  }
2071
2084
  return n;
2072
2085
  }
@@ -2142,7 +2155,7 @@ function et(e) {
2142
2155
  }
2143
2156
  function tt(e, t) {
2144
2157
  let n = et(e), r = {};
2145
- for (let e of n) r[e] = String(t[e] ?? "");
2158
+ for (let e of n) r[e] = Z(t[e]);
2146
2159
  return r;
2147
2160
  }
2148
2161
  function nt(e) {
@@ -2297,7 +2310,7 @@ async function Ot(e, t) {
2297
2310
  }
2298
2311
  //#endregion
2299
2312
  //#region src/stores/auth.ts
2300
- var kt = H((e) => ({
2313
+ var kt = U((e) => ({
2301
2314
  user: null,
2302
2315
  isAuthenticated: !1,
2303
2316
  isLoading: !0,
@@ -2472,7 +2485,7 @@ var Kt = {
2472
2485
  ...qt ? Vt(qt) : {}
2473
2486
  };
2474
2487
  typeof window < "u" && Gt(Yt);
2475
- var Xt = H((e, t) => ({
2488
+ var Xt = U((e, t) => ({
2476
2489
  ...Yt,
2477
2490
  set: (n, r) => {
2478
2491
  let i = Vt({ [n]: r });
@@ -2507,7 +2520,7 @@ var Xt = H((e, t) => ({
2507
2520
  //#endregion
2508
2521
  //#region src/components/shared/DynamicIcon.tsx
2509
2522
  function Zt({ name: e, size: t, className: n, style: r }) {
2510
- return /* @__PURE__ */ B(G[e] ?? G.folder, {
2523
+ return /* @__PURE__ */ B(K[e] ?? K.folder, {
2511
2524
  size: typeof t == "number" ? t : typeof t == "string" ? parseFloat(t) : void 0,
2512
2525
  cls: n,
2513
2526
  style: r
@@ -2628,12 +2641,12 @@ function _n({ value: e, title: t, size: n = "icon" }) {
2628
2641
  await navigator.clipboard.writeText(e), i(!0), setTimeout(() => i(!1), 2e3);
2629
2642
  } catch {}
2630
2643
  }, [e]), o = n === "sm" ? 12 : 14;
2631
- return /* @__PURE__ */ B(q, {
2644
+ return /* @__PURE__ */ B(J, {
2632
2645
  size: n === "sm" ? 22 : 28,
2633
- icon: r ? /* @__PURE__ */ B(G.check, {
2646
+ icon: r ? /* @__PURE__ */ B(K.check, {
2634
2647
  size: o,
2635
2648
  style: { color: "var(--success)" }
2636
- }) : /* @__PURE__ */ B(G.copy, { size: o }),
2649
+ }) : /* @__PURE__ */ B(K.copy, { size: o }),
2637
2650
  onClick: a,
2638
2651
  title: t ?? "Copy to clipboard"
2639
2652
  });
@@ -2642,7 +2655,7 @@ function _n({ value: e, title: t, size: n = "icon" }) {
2642
2655
  //#region src/components/fields/StringField.tsx
2643
2656
  function vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2644
2657
  if (r === "display") {
2645
- let t = String(n ?? "");
2658
+ let t = Z(n);
2646
2659
  return e.copyable && t ? /* @__PURE__ */ V("span", {
2647
2660
  style: {
2648
2661
  display: "inline-flex",
@@ -2664,11 +2677,11 @@ function vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2664
2677
  })
2665
2678
  });
2666
2679
  }
2667
- return /* @__PURE__ */ B(Z, {
2680
+ return /* @__PURE__ */ B(X, {
2668
2681
  id: a,
2669
2682
  name: t,
2670
2683
  "aria-required": e.required || void 0,
2671
- value: String(n ?? ""),
2684
+ value: Z(n),
2672
2685
  onChange: (e) => i?.(e)
2673
2686
  });
2674
2687
  }
@@ -2677,7 +2690,7 @@ function vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2677
2690
  function yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, compact: o, fieldId: s }) {
2678
2691
  let c = e.display?.widget;
2679
2692
  if (r === "display") {
2680
- let t = String(n ?? "");
2693
+ let t = Z(n);
2681
2694
  if (!t) return /* @__PURE__ */ B("span", {
2682
2695
  style: {
2683
2696
  fontSize: 12.5,
@@ -2724,11 +2737,11 @@ function yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2724
2737
  })]
2725
2738
  }) : r;
2726
2739
  }
2727
- if (o) return /* @__PURE__ */ B(Z, {
2740
+ if (o) return /* @__PURE__ */ B(X, {
2728
2741
  id: s,
2729
2742
  name: t,
2730
2743
  "aria-required": e.required || void 0,
2731
- value: String(n ?? ""),
2744
+ value: Z(n),
2732
2745
  onChange: (e) => i?.(e)
2733
2746
  });
2734
2747
  let l = c === "markdown" || c === "code" ? 10 : 4;
@@ -2736,7 +2749,7 @@ function yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2736
2749
  id: s,
2737
2750
  name: t,
2738
2751
  ariaRequired: e.required,
2739
- value: String(n ?? ""),
2752
+ value: Z(n),
2740
2753
  onChange: (e) => i?.(e),
2741
2754
  rows: l,
2742
2755
  fill: a
@@ -2747,7 +2760,7 @@ function yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2747
2760
  var bn = "__declarion_enum_null__";
2748
2761
  function xn({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }) {
2749
2762
  let o = e.values ?? [], s = o.find((e) => e.code === t);
2750
- if (n === "display") return s ? /* @__PURE__ */ B(J, {
2763
+ if (n === "display") return s ? /* @__PURE__ */ B(Y, {
2751
2764
  tone: s.color ?? "slate",
2752
2765
  size: "xs",
2753
2766
  children: Q(s.name)
@@ -2758,7 +2771,7 @@ function xn({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }
2758
2771
  },
2759
2772
  children: "—"
2760
2773
  });
2761
- let c = !e.required, l = t != null && t !== "" ? String(t) : bn, u = [...c ? [{
2774
+ let c = !e.required, l = t != null && t !== "" ? Z(t) : bn, u = [...c ? [{
2762
2775
  value: bn,
2763
2776
  label: "— None —"
2764
2777
  }] : [], ...o.map((e) => ({
@@ -2778,24 +2791,24 @@ function xn({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }
2778
2791
  //#endregion
2779
2792
  //#region src/components/fields/EmailField.tsx
2780
2793
  function Sn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2781
- return /* @__PURE__ */ B(Z, {
2794
+ return /* @__PURE__ */ B(X, {
2782
2795
  id: i,
2783
2796
  name: t,
2784
2797
  "aria-required": e.required || void 0,
2785
2798
  type: "email",
2786
- value: String(n ?? ""),
2799
+ value: Z(n),
2787
2800
  onChange: (e) => r?.(e)
2788
2801
  });
2789
2802
  }
2790
2803
  //#endregion
2791
2804
  //#region src/components/fields/UrlField.tsx
2792
2805
  function Cn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2793
- return /* @__PURE__ */ B(Z, {
2806
+ return /* @__PURE__ */ B(X, {
2794
2807
  id: i,
2795
2808
  name: t,
2796
2809
  "aria-required": e.required || void 0,
2797
2810
  type: "url",
2798
- value: String(n ?? ""),
2811
+ value: Z(n),
2799
2812
  onChange: (e) => r?.(e),
2800
2813
  placeholder: "https://"
2801
2814
  });
@@ -2803,12 +2816,12 @@ function Cn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2803
2816
  //#endregion
2804
2817
  //#region src/components/fields/PhoneField.tsx
2805
2818
  function wn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2806
- return /* @__PURE__ */ B(Z, {
2819
+ return /* @__PURE__ */ B(X, {
2807
2820
  id: i,
2808
2821
  name: t,
2809
2822
  "aria-required": e.required || void 0,
2810
2823
  type: "tel",
2811
- value: String(n ?? ""),
2824
+ value: Z(n),
2812
2825
  onChange: (e) => r?.(e),
2813
2826
  placeholder: "+1 555 555 5555"
2814
2827
  });
@@ -2816,42 +2829,41 @@ function wn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2816
2829
  //#endregion
2817
2830
  //#region src/lib/timestamp.ts
2818
2831
  function Tn(e = /* @__PURE__ */ new Date()) {
2819
- return ie(e);
2820
- }
2821
- function En(e) {
2822
- let t = e.match(/([+-]\d{2}:\d{2})$/), n = e.endsWith("Z");
2823
- if (t || n) {
2824
- let r = new Date(e);
2825
- if (isNaN(r.getTime())) return e;
2826
- let i;
2827
- if (n) i = "UTC";
2828
- else if (t) {
2829
- let e = t[1].charAt(0), n = parseInt(t[1].substring(1, 3), 10);
2830
- parseInt(t[1].substring(4, 6), 10) === 0 && (i = n === 0 ? "UTC" : `Etc/GMT${e === "+" ? "-" : "+"}${n}`);
2832
+ return re(e);
2833
+ }
2834
+ function En(e, t) {
2835
+ let n = e.match(/([+-]\d{2}:\d{2})$/), r = e.endsWith("Z"), i = new Date(e);
2836
+ if (isNaN(i.getTime())) return e;
2837
+ if (n || r) {
2838
+ let e;
2839
+ if (r) e = "UTC";
2840
+ else if (n) {
2841
+ let t = n[1].charAt(0), r = parseInt(n[1].substring(1, 3), 10);
2842
+ parseInt(n[1].substring(4, 6), 10) === 0 && (e = r === 0 ? "UTC" : `Etc/GMT${t === "+" ? "-" : "+"}${r}`);
2831
2843
  }
2832
- if (i) try {
2844
+ if (e) try {
2833
2845
  return new Intl.DateTimeFormat(void 0, {
2834
- dateStyle: "medium",
2835
- timeStyle: "short",
2836
- timeZone: i
2837
- }).format(r);
2846
+ ...t,
2847
+ timeZone: e
2848
+ }).format(i);
2838
2849
  } catch {}
2839
- if (t) {
2840
- let e = t[1].charAt(0) === "+" ? 1 : -1, n = parseInt(t[1].substring(1, 3), 10), i = parseInt(t[1].substring(4, 6), 10), a = e * (n * 60 + i) * 60 * 1e3, o = r.getTime() + a, s = new Date(o);
2850
+ if (n) {
2851
+ let e = n[1].charAt(0) === "+" ? 1 : -1, r = parseInt(n[1].substring(1, 3), 10), a = parseInt(n[1].substring(4, 6), 10), o = e * (r * 60 + a) * 60 * 1e3;
2841
2852
  return new Intl.DateTimeFormat(void 0, {
2842
- dateStyle: "medium",
2843
- timeStyle: "short",
2853
+ ...t,
2844
2854
  timeZone: "UTC"
2845
- }).format(s);
2855
+ }).format(new Date(i.getTime() + o));
2846
2856
  }
2847
2857
  }
2848
- let r = new Date(e);
2849
- return isNaN(r.getTime()) ? e : new Intl.DateTimeFormat(void 0, {
2858
+ return new Intl.DateTimeFormat(void 0, t).format(i);
2859
+ }
2860
+ function Dn(e) {
2861
+ return En(e, {
2850
2862
  dateStyle: "medium",
2851
2863
  timeStyle: "short"
2852
- }).format(r);
2864
+ });
2853
2865
  }
2854
- function Dn(e, t = /* @__PURE__ */ new Date()) {
2866
+ function On(e, t = /* @__PURE__ */ new Date()) {
2855
2867
  if (e == null || e === "") return {
2856
2868
  text: "—",
2857
2869
  absolute: ""
@@ -2864,64 +2876,34 @@ function Dn(e, t = /* @__PURE__ */ new Date()) {
2864
2876
  absolute: t
2865
2877
  };
2866
2878
  }
2867
- let r = En(typeof e == "string" ? e : n.toISOString()), i = t.getTime() - n.getTime();
2879
+ let r = Dn(typeof e == "string" ? e : n.toISOString()), i = t.getTime() - n.getTime();
2868
2880
  return Math.abs(i) > 720 * 60 * 60 * 1e3 ? {
2869
- text: ie(n, { representation: "date" }),
2881
+ text: re(n, { representation: "date" }),
2870
2882
  absolute: r
2871
2883
  } : {
2872
- text: U(n, { addSuffix: !0 }),
2884
+ text: W(n, { addSuffix: !0 }),
2873
2885
  absolute: r
2874
2886
  };
2875
2887
  }
2876
2888
  //#endregion
2877
2889
  //#region src/components/fields/TimestampField.tsx
2878
- function On(e, t) {
2890
+ var kn = {
2891
+ year: "numeric",
2892
+ month: "short",
2893
+ day: "numeric"
2894
+ }, An = {
2895
+ ...kn,
2896
+ hour: "2-digit",
2897
+ minute: "2-digit"
2898
+ };
2899
+ function jn(e, t) {
2879
2900
  if (t) {
2880
2901
  let t = /* @__PURE__ */ new Date(e + "T00:00:00");
2881
- return isNaN(t.getTime()) ? e : new Intl.DateTimeFormat(void 0, {
2882
- year: "numeric",
2883
- month: "short",
2884
- day: "numeric"
2885
- }).format(t);
2902
+ return isNaN(t.getTime()) ? e : new Intl.DateTimeFormat(void 0, kn).format(t);
2886
2903
  }
2887
- let n = e.match(/([+-]\d{2}:\d{2})$/), r = e.endsWith("Z"), i = new Date(e);
2888
- if (isNaN(i.getTime())) return e;
2889
- let a;
2890
- if (r) a = "UTC";
2891
- else if (n) {
2892
- let e = n[1].charAt(0), t = parseInt(n[1].substring(1, 3), 10);
2893
- parseInt(n[1].substring(4, 6), 10) === 0 && (a = t === 0 ? "UTC" : `Etc/GMT${e === "+" ? "-" : "+"}${t}`);
2894
- }
2895
- if (a) try {
2896
- return new Intl.DateTimeFormat(void 0, {
2897
- year: "numeric",
2898
- month: "short",
2899
- day: "numeric",
2900
- hour: "2-digit",
2901
- minute: "2-digit",
2902
- timeZone: a
2903
- }).format(i);
2904
- } catch {}
2905
- if (n) {
2906
- let e = n[1].charAt(0) === "+" ? 1 : -1, t = parseInt(n[1].substring(1, 3), 10), r = parseInt(n[1].substring(4, 6), 10), a = e * (t * 60 + r) * 60 * 1e3, o = new Date(i.getTime() + a);
2907
- return new Intl.DateTimeFormat(void 0, {
2908
- year: "numeric",
2909
- month: "short",
2910
- day: "numeric",
2911
- hour: "2-digit",
2912
- minute: "2-digit",
2913
- timeZone: "UTC"
2914
- }).format(o);
2915
- }
2916
- return new Intl.DateTimeFormat(void 0, {
2917
- year: "numeric",
2918
- month: "short",
2919
- day: "numeric",
2920
- hour: "2-digit",
2921
- minute: "2-digit"
2922
- }).format(i);
2904
+ return En(e, An);
2923
2905
  }
2924
- function kn(e, t) {
2906
+ function Mn(e, t) {
2925
2907
  if (t) {
2926
2908
  let t = /* @__PURE__ */ new Date(e + "T00:00:00");
2927
2909
  return isNaN(t.getTime()) ? e : new Intl.DateTimeFormat(void 0, {
@@ -2939,14 +2921,14 @@ function kn(e, t) {
2939
2921
  minute: "2-digit"
2940
2922
  }).format(n);
2941
2923
  }
2942
- function An(e) {
2924
+ function Nn(e) {
2943
2925
  if (e.endsWith("Z")) return "UTC";
2944
2926
  let t = e.match(/([+-]\d{2}:\d{2})$/);
2945
2927
  if (!t) return null;
2946
2928
  let n = t[1].charAt(0), r = parseInt(t[1].substring(1, 3), 10), i = parseInt(t[1].substring(4, 6), 10);
2947
2929
  return r === 0 && i === 0 ? "UTC" : `UTC${n}${r}${i > 0 ? `:${String(i).padStart(2, "0")}` : ""}`;
2948
2930
  }
2949
- function jn(e, t) {
2931
+ function Pn(e, t) {
2950
2932
  let n = e.match(/([+-]\d{2}:\d{2})$/), r = e.endsWith("Z"), i = new Date(e);
2951
2933
  if (isNaN(i.getTime())) return "";
2952
2934
  if (r) {
@@ -2959,13 +2941,13 @@ function jn(e, t) {
2959
2941
  }
2960
2942
  return t ? e.slice(0, 10) : e.slice(0, 16);
2961
2943
  }
2962
- function Mn(e, t) {
2944
+ function Fn(e, t) {
2963
2945
  let n = new Date(e);
2964
2946
  if (isNaN(n.getTime())) return "";
2965
2947
  let r = n.getFullYear(), i = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0");
2966
2948
  return t ? `${r}-${i}-${a}` : `${r}-${i}-${a}T${String(n.getHours()).padStart(2, "0")}:${String(n.getMinutes()).padStart(2, "0")}`;
2967
2949
  }
2968
- function Nn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2950
+ function In({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2969
2951
  let o = e.type === "date", s = !!e.timezone;
2970
2952
  if (r === "display") {
2971
2953
  if (!n) return /* @__PURE__ */ B("span", {
@@ -2975,7 +2957,7 @@ function Nn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2975
2957
  },
2976
2958
  children: "—"
2977
2959
  });
2978
- let e = String(n), t = s ? On(e, o) : kn(e, o), r = s && !o ? An(e) : null;
2960
+ let e = Z(n), t = s ? jn(e, o) : Mn(e, o), r = s && !o ? Nn(e) : null;
2979
2961
  return /* @__PURE__ */ V("span", {
2980
2962
  style: { fontSize: 12.5 },
2981
2963
  children: [t, r && /* @__PURE__ */ B("span", {
@@ -2987,8 +2969,8 @@ function Nn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2987
2969
  })]
2988
2970
  });
2989
2971
  }
2990
- let c = n ? s ? jn(String(n), o) : Mn(String(n), o) : "";
2991
- return /* @__PURE__ */ B(Z, {
2972
+ let c = n ? s ? Pn(Z(n), o) : Fn(Z(n), o) : "";
2973
+ return /* @__PURE__ */ B(X, {
2992
2974
  id: a,
2993
2975
  name: t,
2994
2976
  "aria-required": e.required || void 0,
@@ -3014,7 +2996,7 @@ function Nn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3014
2996
  }
3015
2997
  //#endregion
3016
2998
  //#region src/components/fields/BoolField.tsx
3017
- function Pn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
2999
+ function Ln({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
3018
3000
  let a = !!e;
3019
3001
  return t === "display" ? /* @__PURE__ */ V("span", {
3020
3002
  style: {
@@ -3039,7 +3021,7 @@ function Pn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
3039
3021
  }
3040
3022
  //#endregion
3041
3023
  //#region src/components/fields/NumberField.tsx
3042
- function Fn(e) {
3024
+ function Rn(e) {
3043
3025
  let t = e.trim();
3044
3026
  if (t === "" || t === "-") return t;
3045
3027
  let n = t.startsWith("-"), [r, i] = (n ? t.slice(1) : t).split("."), a;
@@ -3051,8 +3033,8 @@ function Fn(e) {
3051
3033
  let o = n ? `-${a}` : a;
3052
3034
  return i !== void 0 && (o += `.${i}`), o;
3053
3035
  }
3054
- var In = new Intl.NumberFormat();
3055
- function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3036
+ var zn = new Intl.NumberFormat();
3037
+ function Bn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3056
3038
  let s = e.display?.widget === "money", c = e.type === "decimal" || s, l = a?.$units?.[t], u = !l && e.unit ? e.unit.display || e.unit.storage : void 0, d = l || (u && !u.startsWith("$") ? u : void 0);
3057
3039
  if (r === "display") {
3058
3040
  if (n == null) return /* @__PURE__ */ B("span", {
@@ -3063,10 +3045,10 @@ function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3063
3045
  children: "—"
3064
3046
  });
3065
3047
  let e;
3066
- if (c && typeof n == "string") e = Fn(n);
3048
+ if (c && typeof n == "string") e = Rn(n);
3067
3049
  else {
3068
3050
  let t = Number(n);
3069
- e = isNaN(t) ? null : In.format(t);
3051
+ e = isNaN(t) ? null : zn.format(t);
3070
3052
  }
3071
3053
  return e == null ? /* @__PURE__ */ B("span", {
3072
3054
  style: { fontSize: 12.5 },
@@ -3086,24 +3068,24 @@ function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3086
3068
  })]
3087
3069
  });
3088
3070
  }
3089
- return c ? /* @__PURE__ */ B(Z, {
3071
+ return c ? /* @__PURE__ */ B(X, {
3090
3072
  id: o,
3091
3073
  name: t,
3092
3074
  "aria-required": e.required || void 0,
3093
3075
  type: "text",
3094
3076
  inputMode: "decimal",
3095
3077
  pattern: "-?\\d*\\.?\\d*",
3096
- value: n == null ? "" : String(n),
3078
+ value: n == null ? "" : Z(n),
3097
3079
  onChange: (e) => {
3098
3080
  e === "" ? i?.(null) : i?.(e);
3099
3081
  }
3100
- }) : /* @__PURE__ */ B(Z, {
3082
+ }) : /* @__PURE__ */ B(X, {
3101
3083
  id: o,
3102
3084
  name: t,
3103
3085
  "aria-required": e.required || void 0,
3104
3086
  type: "number",
3105
3087
  step: e.type === "float" ? "0.01" : "1",
3106
- value: n == null ? "" : String(n),
3088
+ value: n == null ? "" : Z(n),
3107
3089
  onChange: (t) => {
3108
3090
  t === "" ? i?.(null) : i?.(e.type === "int" ? parseInt(t, 10) : parseFloat(t));
3109
3091
  }
@@ -3111,7 +3093,7 @@ function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3111
3093
  }
3112
3094
  //#endregion
3113
3095
  //#region src/hooks/useEntityData.ts
3114
- function Rn(e, t) {
3096
+ function Vn(e, t) {
3115
3097
  let n = {
3116
3098
  ...t,
3117
3099
  count: "window"
@@ -3127,7 +3109,7 @@ function Rn(e, t) {
3127
3109
  placeholderData: (t, n) => n?.queryKey?.[1] === e ? t : void 0
3128
3110
  });
3129
3111
  }
3130
- function zn(e, t) {
3112
+ function Hn(e, t) {
3131
3113
  let n = {
3132
3114
  ...t,
3133
3115
  count: "only",
@@ -3152,19 +3134,19 @@ function zn(e, t) {
3152
3134
  }
3153
3135
  //#endregion
3154
3136
  //#region src/hooks/useEntity.ts
3155
- function Bn(e) {
3137
+ function Un(e) {
3156
3138
  let { data: t } = At();
3157
3139
  if (!(!t || !e)) return t.entities[e];
3158
3140
  }
3159
3141
  //#endregion
3160
3142
  //#region src/components/fields/RefField.tsx
3161
- function Vn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, labelId: o }) {
3162
- let s = e.ref?.entity, c = Bn(s), l = e.display?.ref_display_field ?? e.ref?.display?.field ?? c?.display?.display_field, u = F(() => c ? [...c.fields].find(([, e]) => e.primary)?.[0] ?? "id" : "id", [c]), { data: d, isLoading: f } = Rn(n === "edit" ? s : void 0, {
3143
+ function Wn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, labelId: o }) {
3144
+ let s = e.ref?.entity, c = Un(s), l = e.display?.ref_display_field ?? e.ref?.display?.field ?? c?.display?.display_field, u = F(() => c ? [...c.fields].find(([, e]) => e.primary)?.[0] ?? "id" : "id", [c]), { data: d, isLoading: f } = Vn(n === "edit" ? s : void 0, {
3163
3145
  per_page: 200,
3164
3146
  sort: l ? `${l}:asc` : void 0
3165
3147
  }), p = F(() => d?.data ?? [], [d?.data]), m = F(() => {
3166
3148
  if (t == null) return "—";
3167
- let e = String(t);
3149
+ let e = Z(t);
3168
3150
  if (i && s) {
3169
3151
  let t = i[s];
3170
3152
  if (t) {
@@ -3173,8 +3155,8 @@ function Vn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
3173
3155
  }
3174
3156
  }
3175
3157
  if (p.length > 0) {
3176
- let n = p.find((t) => String(t[u]) === e);
3177
- if (n) return qe(n, l, String(t));
3158
+ let t = p.find((t) => String(t[u]) === e);
3159
+ if (t) return qe(t, l, e);
3178
3160
  }
3179
3161
  return e;
3180
3162
  }, [
@@ -3189,7 +3171,7 @@ function Vn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
3189
3171
  style: { fontSize: 12.5 },
3190
3172
  children: m
3191
3173
  });
3192
- let h = String(t ?? ""), g = p.some((e) => String(e[u]) === h), _ = [
3174
+ let h = Z(t), g = p.some((e) => String(e[u]) === h), _ = [
3193
3175
  {
3194
3176
  value: "",
3195
3177
  label: "Select…"
@@ -3222,29 +3204,29 @@ function Vn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
3222
3204
  }
3223
3205
  //#endregion
3224
3206
  //#region src/components/fields/JsonField.tsx
3225
- var Hn = j(() => import("./JsonEditor-KelPV-OQ.js").then((e) => ({ default: e.JsonEditor })));
3226
- function Un() {
3207
+ var Gn = j(() => import("./JsonEditor-KelPV-OQ.js").then((e) => ({ default: e.JsonEditor })));
3208
+ function Kn() {
3227
3209
  return /* @__PURE__ */ B("div", { className: "h-20 rounded-md border border-border bg-muted animate-pulse" });
3228
3210
  }
3229
- function Wn(e) {
3211
+ function qn(e) {
3230
3212
  return e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
3231
3213
  }
3232
- function Gn({ value: e, mode: t, onChange: n, fieldId: r }) {
3233
- return t === "display" ? Wn(e) ? /* @__PURE__ */ B("span", {
3214
+ function Jn({ value: e, mode: t, onChange: n, fieldId: r }) {
3215
+ return t === "display" ? qn(e) ? /* @__PURE__ */ B("span", {
3234
3216
  style: {
3235
3217
  fontSize: 12.5,
3236
3218
  color: "var(--text-4)"
3237
3219
  },
3238
3220
  children: "—"
3239
3221
  }) : /* @__PURE__ */ B(k, {
3240
- fallback: /* @__PURE__ */ B(Un, {}),
3241
- children: /* @__PURE__ */ B(Hn, {
3222
+ fallback: /* @__PURE__ */ B(Kn, {}),
3223
+ children: /* @__PURE__ */ B(Gn, {
3242
3224
  value: e,
3243
3225
  readOnly: !0
3244
3226
  })
3245
3227
  }) : /* @__PURE__ */ B(k, {
3246
- fallback: /* @__PURE__ */ B(Un, {}),
3247
- children: /* @__PURE__ */ B(Hn, {
3228
+ fallback: /* @__PURE__ */ B(Kn, {}),
3229
+ children: /* @__PURE__ */ B(Gn, {
3248
3230
  value: e,
3249
3231
  onChange: n,
3250
3232
  id: r
@@ -3253,14 +3235,14 @@ function Gn({ value: e, mode: t, onChange: n, fieldId: r }) {
3253
3235
  }
3254
3236
  //#endregion
3255
3237
  //#region src/components/fields/MultilangField.tsx
3256
- function Kn(e) {
3238
+ function Yn(e) {
3257
3239
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
3258
3240
  }
3259
- function qn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3241
+ function Xn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3260
3242
  let { data: o } = At(), s = o?.languages?.length ? o.languages : [{
3261
3243
  code: "en",
3262
3244
  name: { en: "English" }
3263
- }], c = Kn(n);
3245
+ }], c = Yn(n);
3264
3246
  if (r === "display") return /* @__PURE__ */ B("span", {
3265
3247
  style: { fontSize: 12.5 },
3266
3248
  children: Object.values(c)[0] ?? "—"
@@ -3301,7 +3283,7 @@ function qn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3301
3283
  children: n.code
3302
3284
  }), /* @__PURE__ */ B("div", {
3303
3285
  style: { flex: 1 },
3304
- children: /* @__PURE__ */ B(Z, {
3286
+ children: /* @__PURE__ */ B(X, {
3305
3287
  id: i,
3306
3288
  name: t ? `${t}.${n.code}` : void 0,
3307
3289
  "aria-required": e.required && r === 0 ? !0 : void 0,
@@ -3316,14 +3298,14 @@ function qn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3316
3298
  }
3317
3299
  //#endregion
3318
3300
  //#region src/components/fields/MultilangTextField.tsx
3319
- function Jn(e) {
3301
+ function Zn(e) {
3320
3302
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
3321
3303
  }
3322
- function Yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3304
+ function Qn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3323
3305
  let { data: o } = At(), s = o?.languages?.length ? o.languages : [{
3324
3306
  code: "en",
3325
3307
  name: { en: "English" }
3326
- }], c = Jn(n);
3308
+ }], c = Zn(n);
3327
3309
  if (r === "display") return /* @__PURE__ */ B("p", {
3328
3310
  style: {
3329
3311
  fontSize: 12.5,
@@ -3379,25 +3361,25 @@ function Yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3379
3361
  }
3380
3362
  //#endregion
3381
3363
  //#region src/components/fields/StructureField.tsx
3382
- function Xn(e) {
3364
+ function $n(e) {
3383
3365
  let { field: t, value: n, mode: r, onChange: i, locale: a, fieldId: o } = e, { data: s } = At(), c = t.structure ? s?.structures?.[t.structure] : void 0;
3384
- return c ? t.array ? /* @__PURE__ */ B(Qn, {
3366
+ return c ? t.array ? /* @__PURE__ */ B(tr, {
3385
3367
  structDef: c,
3386
3368
  value: n,
3387
3369
  mode: r,
3388
3370
  onChange: i,
3389
3371
  locale: a,
3390
3372
  fieldId: o
3391
- }) : /* @__PURE__ */ B(Zn, {
3373
+ }) : /* @__PURE__ */ B(er, {
3392
3374
  structDef: c,
3393
3375
  value: n,
3394
3376
  mode: r,
3395
3377
  onChange: i,
3396
3378
  locale: a,
3397
3379
  fieldId: o
3398
- }) : /* @__PURE__ */ B(Gn, { ...e });
3380
+ }) : /* @__PURE__ */ B(Jn, { ...e });
3399
3381
  }
3400
- function Zn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3382
+ function er({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3401
3383
  let o = typeof t == "object" && t && !Array.isArray(t) ? t : {}, s = e.fields.names(), c = {
3402
3384
  display: "flex",
3403
3385
  flexDirection: "column",
@@ -3433,13 +3415,13 @@ function Zn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3433
3415
  minWidth: 0,
3434
3416
  flex: 1
3435
3417
  },
3436
- children: n.type === "structure" && n.structure ? /* @__PURE__ */ B(Xn, {
3418
+ children: n.type === "structure" && n.structure ? /* @__PURE__ */ B($n, {
3437
3419
  field: n,
3438
3420
  fieldName: t,
3439
3421
  value: r,
3440
3422
  mode: "display",
3441
3423
  locale: i
3442
- }) : Va({
3424
+ }) : Wa({
3443
3425
  field: n,
3444
3426
  fieldName: t,
3445
3427
  value: r,
@@ -3477,14 +3459,14 @@ function Zn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3477
3459
  children: [/* @__PURE__ */ B(De, {
3478
3460
  required: n.required,
3479
3461
  children: n.display ? Q(n.display.name) : t
3480
- }), n.type === "structure" && n.structure ? /* @__PURE__ */ B(Xn, {
3462
+ }), n.type === "structure" && n.structure ? /* @__PURE__ */ B($n, {
3481
3463
  field: n,
3482
3464
  fieldName: t,
3483
3465
  value: o[t],
3484
3466
  mode: "edit",
3485
3467
  onChange: l(t),
3486
3468
  locale: i
3487
- }) : Va({
3469
+ }) : Wa({
3488
3470
  field: n,
3489
3471
  fieldName: t,
3490
3472
  value: o[t],
@@ -3496,7 +3478,7 @@ function Zn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3496
3478
  })
3497
3479
  });
3498
3480
  }
3499
- function Qn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3481
+ function tr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3500
3482
  let o = Array.isArray(t) ? t : [];
3501
3483
  if (n === "display") return o.length === 0 ? /* @__PURE__ */ B("span", {
3502
3484
  style: {
@@ -3510,7 +3492,7 @@ function Qn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3510
3492
  flexDirection: "column",
3511
3493
  gap: 8
3512
3494
  },
3513
- children: o.map((t, n) => /* @__PURE__ */ B(Zn, {
3495
+ children: o.map((t, n) => /* @__PURE__ */ B(er, {
3514
3496
  structDef: e,
3515
3497
  value: t,
3516
3498
  mode: "display",
@@ -3536,7 +3518,7 @@ function Qn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3536
3518
  role: "group",
3537
3519
  children: [o.map((t, n) => /* @__PURE__ */ V("div", {
3538
3520
  style: { position: "relative" },
3539
- children: [/* @__PURE__ */ B(Zn, {
3521
+ children: [/* @__PURE__ */ B(er, {
3540
3522
  structDef: e,
3541
3523
  value: t,
3542
3524
  mode: "edit",
@@ -3548,15 +3530,15 @@ function Qn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3548
3530
  top: 6,
3549
3531
  right: 6
3550
3532
  },
3551
- children: /* @__PURE__ */ B(q, {
3533
+ children: /* @__PURE__ */ B(J, {
3552
3534
  size: 24,
3553
- icon: /* @__PURE__ */ B(G.trash, { size: 12 }),
3535
+ icon: /* @__PURE__ */ B(K.trash, { size: 12 }),
3554
3536
  onClick: l(n),
3555
3537
  title: "Remove"
3556
3538
  })
3557
3539
  })]
3558
- }, n)), /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(K, {
3559
- icon: /* @__PURE__ */ B(G.plus, { size: 13 }),
3540
+ }, n)), /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(q, {
3541
+ icon: /* @__PURE__ */ B(K.plus, { size: 13 }),
3560
3542
  onClick: c,
3561
3543
  children: "Add"
3562
3544
  }) })]
@@ -3564,16 +3546,16 @@ function Qn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3564
3546
  }
3565
3547
  //#endregion
3566
3548
  //#region src/components/fields/SecretField.tsx
3567
- var $n = "[SET]";
3568
- function er({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3569
- let [s, c] = L(""), l = a !== void 0, u = n === $n || typeof n == "string" && n !== "";
3549
+ var nr = "[SET]";
3550
+ function rr({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3551
+ let [s, c] = L(""), l = a !== void 0, u = n === nr || typeof n == "string" && n !== "";
3570
3552
  return r === "display" ? u ? /* @__PURE__ */ B("span", {
3571
3553
  className: "mono",
3572
3554
  style: {
3573
3555
  fontSize: 12.5,
3574
3556
  color: "var(--text-3)"
3575
3557
  },
3576
- children: $n
3558
+ children: nr
3577
3559
  }) : /* @__PURE__ */ B("span", {
3578
3560
  style: {
3579
3561
  fontSize: 12.5,
@@ -3587,23 +3569,23 @@ function er({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3587
3569
  ariaRequired: e.required,
3588
3570
  value: s,
3589
3571
  onChange: (e) => {
3590
- c(e), l && e === "" ? i?.(u ? $n : "") : i?.(e);
3572
+ c(e), l && e === "" ? i?.(u ? nr : "") : i?.(e);
3591
3573
  },
3592
3574
  placeholder: l ? "Leave blank to keep existing value" : "Enter value"
3593
3575
  });
3594
3576
  }
3595
3577
  //#endregion
3596
3578
  //#region src/components/fields/PasswordField.tsx
3597
- var tr = "[SET]";
3598
- function nr({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3599
- let [s, c] = L(""), l = a !== void 0, u = n === tr || typeof n == "string" && n !== "";
3579
+ var ir = "[SET]";
3580
+ function ar({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3581
+ let [s, c] = L(""), l = a !== void 0, u = n === ir || typeof n == "string" && n !== "";
3600
3582
  return r === "display" ? u ? /* @__PURE__ */ B("span", {
3601
3583
  className: "mono",
3602
3584
  style: {
3603
3585
  fontSize: 12.5,
3604
3586
  color: "var(--text-3)"
3605
3587
  },
3606
- children: tr
3588
+ children: ir
3607
3589
  }) : /* @__PURE__ */ B("span", {
3608
3590
  style: {
3609
3591
  fontSize: 12.5,
@@ -3617,18 +3599,18 @@ function nr({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3617
3599
  ariaRequired: e.required,
3618
3600
  value: s,
3619
3601
  onChange: (e) => {
3620
- c(e), l && e === "" ? i?.(u ? tr : "") : i?.(e);
3602
+ c(e), l && e === "" ? i?.(u ? ir : "") : i?.(e);
3621
3603
  },
3622
3604
  placeholder: l ? "Leave blank to keep existing value" : "Enter password"
3623
3605
  });
3624
3606
  }
3625
3607
  //#endregion
3626
3608
  //#region src/components/fields/StringArrayField.tsx
3627
- function rr(e) {
3609
+ function or(e) {
3628
3610
  return Array.isArray(e) ? e.filter((e) => e != null).map(String) : [];
3629
3611
  }
3630
- function ir({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3631
- let o = rr(n), [s, c] = L("");
3612
+ function sr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3613
+ let o = or(n), [s, c] = L("");
3632
3614
  if (r === "display") return o.length === 0 ? /* @__PURE__ */ B("span", {
3633
3615
  style: {
3634
3616
  fontSize: 12.5,
@@ -3676,7 +3658,7 @@ function ir({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3676
3658
  },
3677
3659
  children: [/* @__PURE__ */ B("div", {
3678
3660
  style: { flex: 1 },
3679
- children: /* @__PURE__ */ B(Z, {
3661
+ children: /* @__PURE__ */ B(X, {
3680
3662
  id: a,
3681
3663
  name: t,
3682
3664
  "aria-required": e.required || void 0,
@@ -3687,8 +3669,8 @@ function ir({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3687
3669
  },
3688
3670
  placeholder: "Add item…"
3689
3671
  })
3690
- }), /* @__PURE__ */ B(K, {
3691
- icon: /* @__PURE__ */ B(G.plus, { size: 13 }),
3672
+ }), /* @__PURE__ */ B(q, {
3673
+ icon: /* @__PURE__ */ B(K.plus, { size: 13 }),
3692
3674
  onClick: l,
3693
3675
  children: "Add"
3694
3676
  })]
@@ -3697,11 +3679,11 @@ function ir({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3697
3679
  }
3698
3680
  //#endregion
3699
3681
  //#region src/components/fields/IntArrayField.tsx
3700
- function ar(e) {
3682
+ function cr(e) {
3701
3683
  return Array.isArray(e) ? e.filter((e) => e != null).map(Number).filter((e) => !isNaN(e)) : [];
3702
3684
  }
3703
- function or({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3704
- let o = ar(n), [s, c] = L("");
3685
+ function lr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3686
+ let o = cr(n), [s, c] = L("");
3705
3687
  if (r === "display") return o.length === 0 ? /* @__PURE__ */ B("span", {
3706
3688
  style: {
3707
3689
  fontSize: 12.5,
@@ -3751,7 +3733,7 @@ function or({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3751
3733
  },
3752
3734
  children: [/* @__PURE__ */ B("div", {
3753
3735
  style: { flex: 1 },
3754
- children: /* @__PURE__ */ B(Z, {
3736
+ children: /* @__PURE__ */ B(X, {
3755
3737
  id: a,
3756
3738
  name: t,
3757
3739
  "aria-required": e.required || void 0,
@@ -3763,8 +3745,8 @@ function or({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3763
3745
  },
3764
3746
  placeholder: "Add number…"
3765
3747
  })
3766
- }), /* @__PURE__ */ B(K, {
3767
- icon: /* @__PURE__ */ B(G.plus, { size: 13 }),
3748
+ }), /* @__PURE__ */ B(q, {
3749
+ icon: /* @__PURE__ */ B(K.plus, { size: 13 }),
3768
3750
  onClick: l,
3769
3751
  children: "Add"
3770
3752
  })]
@@ -3773,48 +3755,48 @@ function or({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3773
3755
  }
3774
3756
  //#endregion
3775
3757
  //#region src/components/file-widgets/registry.ts
3776
- var sr = /* @__PURE__ */ new Map();
3777
- function cr(e, t) {
3778
- sr.set(e, t);
3758
+ var ur = /* @__PURE__ */ new Map();
3759
+ function dr(e, t) {
3760
+ ur.set(e, t);
3779
3761
  }
3780
- function lr(e) {
3781
- return sr.get(e);
3762
+ function fr(e) {
3763
+ return ur.get(e);
3782
3764
  }
3783
- function ur(e) {
3784
- return sr.has(e);
3765
+ function pr(e) {
3766
+ return ur.has(e);
3785
3767
  }
3786
3768
  //#endregion
3787
3769
  //#region src/components/file-widgets/cropper.ts
3788
- var dr = async ({ file: e }) => ({
3770
+ var mr = ({ file: e }) => Promise.resolve({
3789
3771
  blob: e,
3790
3772
  filename: e.name
3791
- }), fr = dr;
3792
- function pr(e) {
3793
- fr = e ?? dr;
3773
+ }), hr = mr;
3774
+ function gr(e) {
3775
+ hr = e ?? mr;
3794
3776
  }
3795
- function mr() {
3796
- return fr;
3777
+ function _r() {
3778
+ return hr;
3797
3779
  }
3798
3780
  //#endregion
3799
3781
  //#region src/components/file-widgets/ImageWidget.tsx
3800
- function hr(e, t) {
3782
+ function vr(e, t) {
3801
3783
  return s(e, t);
3802
3784
  }
3803
- function gr(e) {
3785
+ function yr(e) {
3804
3786
  let t = e.trim().split(/\s+/).filter(Boolean);
3805
3787
  return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[1][0]).toUpperCase();
3806
3788
  }
3807
- function _r(e) {
3808
- let { field: t, fieldName: n, value: r, onChange: o, mode: s, alt: f, disabled: p, visual: _, uploadFieldCode: ee, uploadSlotCode: v } = e, x = h(r), [S, C] = L("idle"), [w, T] = L(null), [E, D] = L(null), [O, k] = L(null), [A, j] = L(!1), P = I(null), R = I(!1), z = I(null), { register: ne, unregister: H, isDraft: re } = g();
3789
+ function br(e) {
3790
+ let { field: t, fieldName: n, value: r, onChange: o, mode: s, alt: f, disabled: p, visual: _, uploadFieldCode: ee, uploadSlotCode: v } = e, x = h(r), [S, C] = L("idle"), [w, T] = L(null), [E, D] = L(null), [O, k] = L(null), [A, j] = L(!1), P = I(null), R = I(!1), z = I(null), { register: H, unregister: U, isDraft: ne } = g();
3809
3791
  N(() => () => {
3810
3792
  P.current && P.current.abort();
3811
3793
  }, []);
3812
- let U = F(() => u(x, f, t.display?.placeholder || n), [
3794
+ let W = F(() => u(x, f, t.display?.placeholder || n), [
3813
3795
  f,
3814
3796
  t.display?.placeholder,
3815
3797
  n,
3816
3798
  x
3817
- ]), ie = (t.accepts ?? ["image/*"]).join(","), ae = M(async (r) => {
3799
+ ]), re = (t.accepts ?? ["image/*"]).join(","), G = M(async (r) => {
3818
3800
  let s = te(r, t.accepts, t.max_size_bytes);
3819
3801
  if (s) {
3820
3802
  D(s), C("error");
@@ -3822,9 +3804,9 @@ function _r(e) {
3822
3804
  }
3823
3805
  let c = r;
3824
3806
  if (t.display?.crop_on_upload) try {
3825
- let { blob: e, filename: n } = await mr()({
3807
+ let { blob: e, filename: n } = await _r()({
3826
3808
  file: r,
3827
- aspectRatio: xr(t.display.aspect_ratio)
3809
+ aspectRatio: wr(t.display.aspect_ratio)
3828
3810
  });
3829
3811
  c = new File([e], n, { type: e.type || r.type });
3830
3812
  } catch (e) {
@@ -3851,10 +3833,10 @@ function _r(e) {
3851
3833
  onProgress: T
3852
3834
  });
3853
3835
  if (R.current) {
3854
- b(r.id).catch(() => {}), H(r.id);
3836
+ b(r.id).catch(() => {}), U(r.id);
3855
3837
  return;
3856
3838
  }
3857
- x && re(x.id) && (b(x.id).catch(() => {}), H(x.id)), ne(r.id, () => b(r.id)), k(r.id), C("idle"), T(null);
3839
+ x && ne(x.id) && (b(x.id).catch(() => {}), U(x.id)), H(r.id, () => b(r.id)), k(r.id), C("idle"), T(null);
3858
3840
  let i = {
3859
3841
  id: r.id,
3860
3842
  filename: r.filename,
@@ -3886,48 +3868,48 @@ function _r(e) {
3886
3868
  n,
3887
3869
  o,
3888
3870
  e.entityCode,
3871
+ H,
3889
3872
  ne,
3890
- re,
3891
3873
  x,
3892
- H,
3874
+ U,
3893
3875
  ee,
3894
3876
  v
3895
- ]), W = M(() => {
3896
- S === "uploading" && P.current && (R.current = !0, P.current.abort(), P.current = null, C("idle"), T(null)), O && (b(O).catch(() => {}), H(O), k(null));
3877
+ ]), K = M(() => {
3878
+ S === "uploading" && P.current && (R.current = !0, P.current.abort(), P.current = null, C("idle"), T(null)), O && (b(O).catch(() => {}), U(O), k(null));
3897
3879
  }, [
3898
3880
  S,
3899
3881
  O,
3900
- H
3901
- ]), G = M(() => {
3902
- x && re(x.id) && (b(x.id).catch(() => {}), H(x.id), k(null)), o?.(t.mode === "array" ? [] : null);
3882
+ U
3883
+ ]), q = M(() => {
3884
+ x && ne(x.id) && (b(x.id).catch(() => {}), U(x.id), k(null)), o?.(t.mode === "array" ? [] : null);
3903
3885
  }, [
3904
3886
  x,
3905
3887
  t.mode,
3906
- re,
3888
+ ne,
3907
3889
  o,
3908
- H
3909
- ]), K = M(() => {
3890
+ U
3891
+ ]), J = M(() => {
3910
3892
  D(null), C("idle"), z.current?.click();
3911
- }, []), q = M(() => {
3893
+ }, []), Y = M(() => {
3912
3894
  p || z.current?.click();
3913
- }, [p]), J = M((e) => {
3914
- p || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), q());
3915
- }, [p, q]), Y = M((e) => {
3895
+ }, [p]), ie = M((e) => {
3896
+ p || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), Y());
3897
+ }, [p, Y]), ae = M((e) => {
3916
3898
  p || (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
3917
3899
  }, [p]), oe = M((e) => {
3918
3900
  if (p) return;
3919
3901
  e.preventDefault();
3920
3902
  let t = e.dataTransfer.files?.[0];
3921
- t && ae(t);
3922
- }, [p, ae]), se = M((e) => {
3903
+ t && G(t);
3904
+ }, [p, G]), se = M((e) => {
3923
3905
  let t = e.target.files?.[0];
3924
- e.target.value = "", t && ae(t);
3925
- }, [ae]), ce = _.aspectRatio ?? br(_.shape, t.display?.aspect_ratio), le = m(x), ue = {
3906
+ e.target.value = "", t && G(t);
3907
+ }, [G]), ce = _.aspectRatio ?? Cr(_.shape, t.display?.aspect_ratio), le = m(x), ue = {
3926
3908
  aspectRatio: ce,
3927
3909
  width: _.width ?? (_.shape === "wide" ? "100%" : "120px")
3928
- }, de = !!x, fe = hr(x, t.display?.listable_thumbnail), pe = c(x, t.display?.listable_thumbnail), X = d(x?.id, pe, fe), me = s === "display", he = M((e) => {
3910
+ }, de = !!x, fe = vr(x, t.display?.listable_thumbnail), pe = c(x, t.display?.listable_thumbnail), me = d(x?.id, pe, fe), he = s === "display", ge = M((e) => {
3929
3911
  e.stopPropagation(), j((e) => !e);
3930
- }, []), ge = M((e) => {
3912
+ }, []), _e = M((e) => {
3931
3913
  if (!x || !A) return;
3932
3914
  let n = e.currentTarget.getBoundingClientRect(), r = n.width > 0 ? (e.clientX - n.left) / n.width : .5, i = n.height > 0 ? (e.clientY - n.top) / n.height : .5, a = l(x, {
3933
3915
  x: Math.max(0, Math.min(1, r)),
@@ -3940,57 +3922,57 @@ function _r(e) {
3940
3922
  A,
3941
3923
  o
3942
3924
  ]);
3943
- return me ? /* @__PURE__ */ B("div", {
3944
- className: vr(_.shape, !1),
3925
+ return he ? /* @__PURE__ */ B("div", {
3926
+ className: xr(_.shape, !1),
3945
3927
  style: ue,
3946
- "aria-label": U,
3947
- children: de && X ? /* @__PURE__ */ B("img", {
3948
- src: X,
3949
- alt: U,
3950
- className: yr(_.shape),
3928
+ "aria-label": W,
3929
+ children: de && me ? /* @__PURE__ */ B("img", {
3930
+ src: me,
3931
+ alt: W,
3932
+ className: Sr(_.shape),
3951
3933
  style: { objectPosition: y(le) },
3952
3934
  loading: "lazy"
3953
- }) : /* @__PURE__ */ B(Sr, {
3935
+ }) : /* @__PURE__ */ B(Tr, {
3954
3936
  shape: _.shape,
3955
- label: U,
3937
+ label: W,
3956
3938
  placeholder: t.display?.placeholder
3957
3939
  })
3958
3940
  }) : /* @__PURE__ */ V("div", {
3959
- className: vr(_.shape, !p),
3941
+ className: xr(_.shape, !p),
3960
3942
  style: ue,
3961
3943
  tabIndex: p ? -1 : 0,
3962
3944
  role: "button",
3963
- "aria-label": U,
3945
+ "aria-label": W,
3964
3946
  "aria-disabled": p || void 0,
3965
3947
  "aria-busy": S === "uploading" || void 0,
3966
3948
  "aria-invalid": S === "error" || void 0,
3967
- onClick: S === "idle" && !de ? q : void 0,
3968
- onMouseDown: A ? ge : void 0,
3969
- onKeyDown: J,
3970
- onDragOver: Y,
3949
+ onClick: S === "idle" && !de ? Y : void 0,
3950
+ onMouseDown: A ? _e : void 0,
3951
+ onKeyDown: ie,
3952
+ onDragOver: ae,
3971
3953
  onDrop: oe,
3972
3954
  "data-testid": A ? "focal-point-target" : `file-widget-${n}`,
3973
3955
  children: [
3974
3956
  /* @__PURE__ */ B("input", {
3975
3957
  ref: z,
3976
3958
  type: "file",
3977
- accept: ie,
3959
+ accept: re,
3978
3960
  onChange: se,
3979
3961
  style: { display: "none" },
3980
3962
  "data-testid": `file-input-${n}`
3981
3963
  }),
3982
- de && X ? /* @__PURE__ */ B("img", {
3983
- src: X,
3984
- alt: U,
3985
- className: yr(_.shape),
3964
+ de && me ? /* @__PURE__ */ B("img", {
3965
+ src: me,
3966
+ alt: W,
3967
+ className: Sr(_.shape),
3986
3968
  style: { objectPosition: y(le) },
3987
3969
  loading: "lazy"
3988
- }) : S === "uploading" ? null : /* @__PURE__ */ B(Sr, {
3970
+ }) : S === "uploading" ? null : /* @__PURE__ */ B(Tr, {
3989
3971
  shape: _.shape,
3990
- label: U,
3972
+ label: W,
3991
3973
  placeholder: t.display?.placeholder
3992
3974
  }),
3993
- S === "uploading" && /* @__PURE__ */ B(Cr, { pct: w?.pct ?? 0 }),
3975
+ S === "uploading" && /* @__PURE__ */ B(Er, { pct: w?.pct ?? 0 }),
3994
3976
  O && /* @__PURE__ */ B("span", {
3995
3977
  className: "absolute right-1 top-1 h-2 w-2 rounded-full bg-warning",
3996
3978
  "aria-hidden": "true",
@@ -4002,7 +3984,7 @@ function _r(e) {
4002
3984
  t.display?.focal_point && /* @__PURE__ */ B("button", {
4003
3985
  type: "button",
4004
3986
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4005
- onClick: he,
3987
+ onClick: ge,
4006
3988
  "data-testid": "focal-point-toggle",
4007
3989
  children: A ? "Cancel focus" : "Set focus"
4008
3990
  }),
@@ -4010,7 +3992,7 @@ function _r(e) {
4010
3992
  type: "button",
4011
3993
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4012
3994
  onClick: (e) => {
4013
- e.stopPropagation(), q();
3995
+ e.stopPropagation(), Y();
4014
3996
  },
4015
3997
  children: "Change"
4016
3998
  }),
@@ -4018,7 +4000,7 @@ function _r(e) {
4018
4000
  type: "button",
4019
4001
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-destructive hover:bg-surface-2",
4020
4002
  onClick: (e) => {
4021
- e.stopPropagation(), G();
4003
+ e.stopPropagation(), q();
4022
4004
  },
4023
4005
  children: "Remove"
4024
4006
  })
@@ -4036,7 +4018,7 @@ function _r(e) {
4036
4018
  type: "button",
4037
4019
  className: "absolute bottom-1 right-1 rounded-sm border border-border bg-card px-2 py-0.5 text-xs",
4038
4020
  onClick: (e) => {
4039
- e.stopPropagation(), W();
4021
+ e.stopPropagation(), K();
4040
4022
  },
4041
4023
  "data-testid": "cancel-upload",
4042
4024
  children: "Cancel"
@@ -4052,7 +4034,7 @@ function _r(e) {
4052
4034
  type: "button",
4053
4035
  className: "underline",
4054
4036
  onClick: (e) => {
4055
- e.stopPropagation(), K();
4037
+ e.stopPropagation(), J();
4056
4038
  },
4057
4039
  "data-testid": "retry-upload",
4058
4040
  children: "Retry"
@@ -4061,32 +4043,32 @@ function _r(e) {
4061
4043
  ]
4062
4044
  });
4063
4045
  }
4064
- function vr(e, t) {
4046
+ function xr(e, t) {
4065
4047
  return [
4066
4048
  "relative overflow-hidden border border-border bg-surface-2",
4067
4049
  e === "circle" ? "rounded-full" : "rounded-md",
4068
4050
  t ? "cursor-pointer focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent" : ""
4069
4051
  ].filter(Boolean).join(" ");
4070
4052
  }
4071
- function yr(e) {
4053
+ function Sr(e) {
4072
4054
  return "h-full w-full object-cover";
4073
4055
  }
4074
- function br(e, t) {
4056
+ function Cr(e, t) {
4075
4057
  return t ? t.replace(":", " / ") : e === "wide" ? "16 / 9" : "1 / 1";
4076
4058
  }
4077
- function xr(e) {
4059
+ function wr(e) {
4078
4060
  if (!e) return;
4079
4061
  let t = e.replace(/\s/g, "").match(/^(\d+(?:\.\d+)?)[:/](\d+(?:\.\d+)?)$/);
4080
4062
  if (!t) return;
4081
4063
  let n = Number(t[1]), r = Number(t[2]);
4082
4064
  if (!(!n || !r)) return n / r;
4083
4065
  }
4084
- function Sr({ shape: e, label: t, placeholder: n }) {
4066
+ function Tr({ shape: e, label: t, placeholder: n }) {
4085
4067
  return n === "initials" ? /* @__PURE__ */ B("div", {
4086
4068
  className: "flex h-full w-full items-center justify-center bg-surface-3 text-text-3",
4087
4069
  children: /* @__PURE__ */ B("span", {
4088
4070
  className: e === "circle" ? "text-lg font-medium" : "text-base font-medium",
4089
- children: gr(t)
4071
+ children: yr(t)
4090
4072
  })
4091
4073
  }) : /* @__PURE__ */ B("div", {
4092
4074
  className: "flex h-full w-full items-center justify-center bg-surface-3 text-text-4",
@@ -4096,7 +4078,7 @@ function Sr({ shape: e, label: t, placeholder: n }) {
4096
4078
  })
4097
4079
  });
4098
4080
  }
4099
- function Cr({ pct: e }) {
4081
+ function Er({ pct: e }) {
4100
4082
  let t = 2 * Math.PI * 18, n = t - Math.max(0, Math.min(100, e)) / 100 * t;
4101
4083
  return /* @__PURE__ */ V("div", {
4102
4084
  className: "absolute inset-0 flex items-center justify-center bg-black/30",
@@ -4140,56 +4122,56 @@ function Cr({ pct: e }) {
4140
4122
  }
4141
4123
  //#endregion
4142
4124
  //#region src/components/file-widgets/SquareImage.tsx
4143
- function wr(e) {
4144
- return /* @__PURE__ */ B(_r, {
4125
+ function Dr(e) {
4126
+ return /* @__PURE__ */ B(br, {
4145
4127
  ...e,
4146
4128
  visual: { shape: "square" }
4147
4129
  });
4148
4130
  }
4149
4131
  //#endregion
4150
4132
  //#region src/components/file-widgets/CircleImage.tsx
4151
- function Tr(e) {
4152
- return /* @__PURE__ */ B(_r, {
4133
+ function Or(e) {
4134
+ return /* @__PURE__ */ B(br, {
4153
4135
  ...e,
4154
4136
  visual: { shape: "circle" }
4155
4137
  });
4156
4138
  }
4157
4139
  //#endregion
4158
4140
  //#region src/components/file-widgets/WideBanner.tsx
4159
- function Er(e) {
4160
- return /* @__PURE__ */ B(_r, {
4141
+ function kr(e) {
4142
+ return /* @__PURE__ */ B(br, {
4161
4143
  ...e,
4162
4144
  visual: { shape: "wide" }
4163
4145
  });
4164
4146
  }
4165
4147
  //#endregion
4166
4148
  //#region src/components/file-widgets/GridLazy.tsx
4167
- var Dr = j(() => import("./Grid-Cwxca9aO.js").then((e) => ({ default: e.Grid })));
4168
- function Or() {
4149
+ var Ar = j(() => import("./Grid-Cwxca9aO.js").then((e) => ({ default: e.Grid })));
4150
+ function jr() {
4169
4151
  return /* @__PURE__ */ B("div", { className: "h-24 w-full rounded-md bg-muted animate-pulse" });
4170
4152
  }
4171
- function kr(e) {
4153
+ function Mr(e) {
4172
4154
  return /* @__PURE__ */ B(k, {
4173
- fallback: /* @__PURE__ */ B(Or, {}),
4174
- children: /* @__PURE__ */ B(Dr, { ...e })
4155
+ fallback: /* @__PURE__ */ B(jr, {}),
4156
+ children: /* @__PURE__ */ B(Ar, { ...e })
4175
4157
  });
4176
4158
  }
4177
4159
  //#endregion
4178
4160
  //#region src/components/file-widgets/DocumentCard.tsx
4179
- function Ar({ contentType: e }) {
4161
+ function Nr({ contentType: e }) {
4180
4162
  return /* @__PURE__ */ B("div", {
4181
4163
  className: "flex h-16 w-16 flex-none items-center justify-center rounded-md border border-border bg-surface-3 text-xs font-medium text-muted-foreground",
4182
4164
  children: e ? e.includes("pdf") ? "PDF" : e.includes("word") ? "DOC" : e.includes("sheet") || e.includes("excel") ? "XLS" : e.startsWith("image/") ? "IMG" : e.split("/")[1]?.slice(0, 4).toUpperCase() ?? "FILE" : "FILE"
4183
4165
  });
4184
4166
  }
4185
- function jr(e) {
4186
- let { field: t, fieldName: n, value: r, onChange: s, mode: c, disabled: l, uploadFieldCode: u, uploadSlotCode: d } = e, f = h(r), [m, v] = L("idle"), [y, x] = L(null), [C, w] = L(null), [T, E] = L(!1), [D, O] = L(f?.filename ?? ""), k = I(null), A = I(!1), j = I(null), { register: P, unregister: F, isDraft: R } = g(), { open: ne } = ee();
4167
+ function Pr(e) {
4168
+ let { field: t, fieldName: n, value: r, onChange: s, mode: c, disabled: l, uploadFieldCode: u, uploadSlotCode: d } = e, f = h(r), [m, v] = L("idle"), [y, x] = L(null), [C, w] = L(null), [T, E] = L(!1), [D, O] = L(f?.filename ?? ""), k = I(null), A = I(!1), j = I(null), { register: P, unregister: F, isDraft: R } = g(), { open: H } = ee();
4187
4169
  N(() => () => {
4188
4170
  k.current && k.current.abort();
4189
4171
  }, []), N(() => {
4190
4172
  O(f?.filename ?? "");
4191
4173
  }, [f?.filename]);
4192
- let H = (t.accepts ?? []).join(","), re = M(async (r) => {
4174
+ let U = (t.accepts ?? []).join(","), ne = M(async (r) => {
4193
4175
  let o = te(r, t.accepts, t.max_size_bytes);
4194
4176
  if (o) {
4195
4177
  w(o), v("error");
@@ -4251,12 +4233,12 @@ function jr(e) {
4251
4233
  F,
4252
4234
  u,
4253
4235
  d
4254
- ]), U = M(() => {
4236
+ ]), W = M(() => {
4255
4237
  l || j.current?.click();
4256
- }, [l]), ie = M((e) => {
4238
+ }, [l]), re = M((e) => {
4257
4239
  let t = e.target.files?.[0];
4258
- e.target.value = "", t && re(t);
4259
- }, [re]), ae = M(() => {
4240
+ e.target.value = "", t && ne(t);
4241
+ }, [ne]), G = M(() => {
4260
4242
  f && R(f.id) && (b(f.id).catch(() => {}), F(f.id)), s?.(t.mode === "array" ? [] : null);
4261
4243
  }, [
4262
4244
  f,
@@ -4264,13 +4246,13 @@ function jr(e) {
4264
4246
  R,
4265
4247
  s,
4266
4248
  F
4267
- ]), W = M(() => {
4249
+ ]), K = M(() => {
4268
4250
  m === "uploading" && k.current && (A.current = !0, k.current.abort(), k.current = null, v("idle"), x(null));
4269
- }, [m]), G = M(() => {
4270
- f && ne(f.id, "download", p(f));
4271
- }, [f, ne]), K = f ? o(f) : !1, q = M(() => {
4272
- !f || !o(f) || ne(f.id, "preview", _(f));
4273
- }, [f, ne]), J = M(() => {
4251
+ }, [m]), q = M(() => {
4252
+ f && H(f.id, "download", p(f));
4253
+ }, [f, H]), J = f ? o(f) : !1, Y = M(() => {
4254
+ !f || !o(f) || H(f.id, "preview", _(f));
4255
+ }, [f, H]), ie = M(() => {
4274
4256
  if (!f) {
4275
4257
  E(!1);
4276
4258
  return;
@@ -4290,31 +4272,31 @@ function jr(e) {
4290
4272
  f,
4291
4273
  s,
4292
4274
  t.mode
4293
- ]), Y = c === "display";
4275
+ ]), ae = c === "display";
4294
4276
  return !f && m !== "uploading" ? /* @__PURE__ */ V("div", {
4295
4277
  "data-testid": `file-widget-${n}`,
4296
4278
  className: "flex items-center gap-3 rounded-md border border-dashed border-border bg-surface p-3",
4297
4279
  children: [
4298
- /* @__PURE__ */ B(Ar, {}),
4280
+ /* @__PURE__ */ B(Nr, {}),
4299
4281
  /* @__PURE__ */ V("div", {
4300
4282
  className: "flex flex-col gap-1",
4301
4283
  children: [/* @__PURE__ */ B("span", {
4302
4284
  className: "text-sm text-foreground",
4303
4285
  children: t.display?.placeholder || "No document attached"
4304
- }), !Y && /* @__PURE__ */ B("button", {
4286
+ }), !ae && /* @__PURE__ */ B("button", {
4305
4287
  type: "button",
4306
4288
  className: "self-start rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4307
- onClick: U,
4289
+ onClick: W,
4308
4290
  disabled: l,
4309
4291
  "data-testid": "upload",
4310
4292
  children: "Upload"
4311
4293
  })]
4312
4294
  }),
4313
- !Y && /* @__PURE__ */ B("input", {
4295
+ !ae && /* @__PURE__ */ B("input", {
4314
4296
  ref: j,
4315
4297
  type: "file",
4316
- accept: H || void 0,
4317
- onChange: ie,
4298
+ accept: U || void 0,
4299
+ onChange: re,
4318
4300
  style: { display: "none" },
4319
4301
  "data-testid": `file-input-${n}`
4320
4302
  }),
@@ -4330,7 +4312,7 @@ function jr(e) {
4330
4312
  "aria-busy": m === "uploading" || void 0,
4331
4313
  "aria-invalid": m === "error" || void 0,
4332
4314
  children: [
4333
- /* @__PURE__ */ B(Ar, { contentType: f?.content_type }),
4315
+ /* @__PURE__ */ B(Nr, { contentType: f?.content_type }),
4334
4316
  /* @__PURE__ */ V("div", {
4335
4317
  className: "flex min-w-0 flex-1 flex-col gap-1",
4336
4318
  children: [
@@ -4340,16 +4322,16 @@ function jr(e) {
4340
4322
  value: D,
4341
4323
  autoFocus: !0,
4342
4324
  onChange: (e) => O(e.target.value),
4343
- onBlur: J,
4325
+ onBlur: ie,
4344
4326
  onKeyDown: (e) => {
4345
- e.key === "Enter" ? J() : e.key === "Escape" && (E(!1), O(f.filename));
4327
+ e.key === "Enter" ? ie() : e.key === "Escape" && (E(!1), O(f.filename));
4346
4328
  },
4347
4329
  "data-testid": "filename-input"
4348
4330
  }) : /* @__PURE__ */ B("button", {
4349
4331
  type: "button",
4350
4332
  className: "truncate text-left text-sm font-medium text-foreground hover:underline",
4351
- onClick: () => !Y && f && E(!0),
4352
- disabled: Y || l || !f,
4333
+ onClick: () => !ae && f && E(!0),
4334
+ disabled: ae || l || !f,
4353
4335
  title: f?.filename,
4354
4336
  "data-testid": "filename",
4355
4337
  children: f?.filename ?? "Uploading…"
@@ -4359,7 +4341,7 @@ function jr(e) {
4359
4341
  children: [
4360
4342
  f && /* @__PURE__ */ B("span", { children: S(f.size_bytes) }),
4361
4343
  f?.page_count != null && /* @__PURE__ */ V("span", { children: [f.page_count, " pages"] }),
4362
- f?.uploaded_at && /* @__PURE__ */ B("span", { children: Mr(f.uploaded_at) }),
4344
+ f?.uploaded_at && /* @__PURE__ */ B("span", { children: Fr(f.uploaded_at) }),
4363
4345
  f?.uploaded_by && /* @__PURE__ */ V("span", { children: ["by ", f.uploaded_by] }),
4364
4346
  f?.version?.number != null && /* @__PURE__ */ V("span", {
4365
4347
  "data-testid": "version-badge",
@@ -4393,30 +4375,30 @@ function jr(e) {
4393
4375
  /* @__PURE__ */ B("button", {
4394
4376
  type: "button",
4395
4377
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4396
- onClick: G,
4378
+ onClick: q,
4397
4379
  "data-testid": "download",
4398
4380
  children: "Download"
4399
4381
  }),
4400
4382
  /* @__PURE__ */ B("button", {
4401
4383
  type: "button",
4402
4384
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50",
4403
- onClick: q,
4404
- disabled: !K,
4405
- title: K ? void 0 : "Preview is available only for images and PDFs",
4385
+ onClick: Y,
4386
+ disabled: !J,
4387
+ title: J ? void 0 : "Preview is available only for images and PDFs",
4406
4388
  "data-testid": "preview",
4407
4389
  children: "Preview"
4408
4390
  }),
4409
- !Y && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("button", {
4391
+ !ae && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("button", {
4410
4392
  type: "button",
4411
4393
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4412
- onClick: U,
4394
+ onClick: W,
4413
4395
  disabled: l,
4414
4396
  "data-testid": "replace",
4415
4397
  children: "Replace"
4416
4398
  }), /* @__PURE__ */ B("button", {
4417
4399
  type: "button",
4418
4400
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-destructive hover:bg-surface-2",
4419
- onClick: ae,
4401
+ onClick: G,
4420
4402
  disabled: l,
4421
4403
  "data-testid": "remove",
4422
4404
  children: "Remove"
@@ -4424,32 +4406,32 @@ function jr(e) {
4424
4406
  ] }), m === "uploading" && /* @__PURE__ */ B("button", {
4425
4407
  type: "button",
4426
4408
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs",
4427
- onClick: W,
4409
+ onClick: K,
4428
4410
  "data-testid": "cancel-upload",
4429
4411
  children: "Cancel"
4430
4412
  })]
4431
4413
  }),
4432
- !Y && /* @__PURE__ */ B("input", {
4414
+ !ae && /* @__PURE__ */ B("input", {
4433
4415
  ref: j,
4434
4416
  type: "file",
4435
- accept: H || void 0,
4436
- onChange: ie,
4417
+ accept: U || void 0,
4418
+ onChange: re,
4437
4419
  style: { display: "none" },
4438
4420
  "data-testid": `file-input-${n}`
4439
4421
  })
4440
4422
  ]
4441
4423
  });
4442
4424
  }
4443
- function Mr(e) {
4425
+ function Fr(e) {
4444
4426
  let t = new Date(e);
4445
4427
  return isNaN(t.getTime()) ? e : t.toISOString().slice(0, 10);
4446
4428
  }
4447
4429
  //#endregion
4448
4430
  //#region src/components/file-widgets/FileList.tsx
4449
- function Nr(e) {
4431
+ function Ir(e) {
4450
4432
  return e ? (e.split("/")[1] ?? e).toUpperCase().slice(0, 6) : "";
4451
4433
  }
4452
- function Pr(e) {
4434
+ function Lr(e) {
4453
4435
  let { field: t, fieldName: n, value: r, onChange: o, mode: s, disabled: c } = e, l = v(r), [u, d] = L([]), { register: f, unregister: m, isDraft: h } = g(), _ = I(l);
4454
4436
  _.current = l;
4455
4437
  let y = I(null), x = I(/* @__PURE__ */ new Set()), C = I([]);
@@ -4569,7 +4551,7 @@ function Pr(e) {
4569
4551
  children: [
4570
4552
  /* @__PURE__ */ B("span", {
4571
4553
  className: "flex-none rounded-sm border border-border bg-surface-3 px-1.5 py-0.5 text-[10px] text-muted-foreground",
4572
- children: Nr(e.content_type)
4554
+ children: Ir(e.content_type)
4573
4555
  }),
4574
4556
  /* @__PURE__ */ B("button", {
4575
4557
  type: "button",
@@ -4654,16 +4636,16 @@ function Pr(e) {
4654
4636
  }
4655
4637
  //#endregion
4656
4638
  //#region src/components/file-widgets/LabeledSlots.tsx
4657
- function Fr(e) {
4639
+ function Rr(e) {
4658
4640
  return !e || Array.isArray(e) || typeof e != "object" ? {} : e;
4659
4641
  }
4660
- function Ir(e) {
4642
+ function zr(e) {
4661
4643
  return e.split("_").filter(Boolean).map((e) => e.slice(0, 1).toUpperCase() + e.slice(1)).join(" ");
4662
4644
  }
4663
- function Lr(e, t) {
4645
+ function Br(e, t) {
4664
4646
  return t?.content_type?.startsWith("image/") ? !0 : (e?.accepts ?? []).some((e) => e === "image/*" || e.startsWith("image/"));
4665
4647
  }
4666
- function Rr(e, t, n, r) {
4648
+ function Vr(e, t, n, r) {
4667
4649
  return {
4668
4650
  ...e,
4669
4651
  name: `${e.name}.${t}`,
@@ -4673,14 +4655,14 @@ function Rr(e, t, n, r) {
4673
4655
  slots: void 0,
4674
4656
  display: {
4675
4657
  ...e.display ?? { widget: "document_card" },
4676
- widget: Lr(n, r) ? "square_image" : "document_card",
4658
+ widget: Br(n, r) ? "square_image" : "document_card",
4677
4659
  aspect_ratio: n?.aspect_ratio ?? e.display?.aspect_ratio,
4678
- placeholder: e.display?.placeholder ?? Ir(t)
4660
+ placeholder: e.display?.placeholder ?? zr(t)
4679
4661
  }
4680
4662
  };
4681
4663
  }
4682
- function zr(e) {
4683
- let { field: t, fieldName: n, entityCode: r, value: i, onChange: a, mode: o, disabled: s } = e, c = Object.entries(t.slots ?? {}), l = Fr(i);
4664
+ function Hr(e) {
4665
+ let { field: t, fieldName: n, entityCode: r, value: i, onChange: a, mode: o, disabled: s } = e, c = Object.entries(t.slots ?? {}), l = Rr(i);
4684
4666
  return c.length === 0 ? /* @__PURE__ */ B("span", {
4685
4667
  className: "text-sm text-muted-foreground",
4686
4668
  children: "No slots configured"
@@ -4690,7 +4672,7 @@ function zr(e) {
4690
4672
  gap: 12
4691
4673
  },
4692
4674
  children: c.map(([e, i]) => {
4693
- let c = l[e] ?? null, u = Rr(t, e, i, c), d = u.display?.widget ?? "document_card", f = lr(d);
4675
+ let c = l[e] ?? null, u = Vr(t, e, i, c), d = u.display?.widget ?? "document_card", f = fr(d);
4694
4676
  return f ? /* @__PURE__ */ V("div", {
4695
4677
  style: {
4696
4678
  display: "grid",
@@ -4702,7 +4684,7 @@ function zr(e) {
4702
4684
  fontWeight: 600,
4703
4685
  color: "var(--text-2)"
4704
4686
  },
4705
- children: Ir(e)
4687
+ children: zr(e)
4706
4688
  }), /* @__PURE__ */ B(f, {
4707
4689
  field: u,
4708
4690
  fieldName: e,
@@ -4730,7 +4712,7 @@ function zr(e) {
4730
4712
  fontWeight: 600,
4731
4713
  color: "var(--text-2)"
4732
4714
  },
4733
- children: Ir(e)
4715
+ children: zr(e)
4734
4716
  }), /* @__PURE__ */ B("span", {
4735
4717
  className: "text-sm text-muted-foreground",
4736
4718
  children: `Unknown file widget: ${d}`
@@ -4741,43 +4723,43 @@ function zr(e) {
4741
4723
  }
4742
4724
  //#endregion
4743
4725
  //#region src/components/file-widgets/builtins.ts
4744
- var Br = !1;
4745
- function Vr() {
4746
- Br ||= (cr("square_image", wr), cr("circle_image", Tr), cr("wide_banner", Er), cr("grid", kr), cr("document_card", jr), cr("file_list", Pr), cr("labeled_slots", zr), !0);
4726
+ var Ur = !1;
4727
+ function Wr() {
4728
+ Ur ||= (dr("square_image", Dr), dr("circle_image", Or), dr("wide_banner", kr), dr("grid", Mr), dr("document_card", Pr), dr("file_list", Lr), dr("labeled_slots", Hr), !0);
4747
4729
  }
4748
4730
  //#endregion
4749
4731
  //#region src/components/file-widgets/host.tsx
4750
- Vr();
4751
- function Hr(e, t) {
4732
+ Wr();
4733
+ function Gr(e, t) {
4752
4734
  return e.files?.get(t);
4753
4735
  }
4754
- function Ur(e, t) {
4736
+ function Kr(e, t) {
4755
4737
  return Object.prototype.hasOwnProperty.call(e, t) ? e[t] ?? null : e.$files?.[t] ?? null;
4756
4738
  }
4757
- function Wr(e, t, n) {
4758
- if (Hr(e, n)) return Ur(t, n);
4739
+ function qr(e, t, n) {
4740
+ if (Gr(e, n)) return Kr(t, n);
4759
4741
  let r = e.fields.get(n);
4760
- return r?.type === "rich_text" && r.files?.mode === "rich_text_inline" ? O(t[n], Ur(t, n)) : t[n];
4742
+ return r?.type === "rich_text" && r.files?.mode === "rich_text_inline" ? O(t[n], Kr(t, n)) : t[n];
4761
4743
  }
4762
- function Gr(e, t, n) {
4744
+ function Jr(e, t, n) {
4763
4745
  let r = e.fields.get(t);
4764
4746
  return r?.type === "rich_text" && r.files?.mode === "rich_text_inline" ? w(n) : n;
4765
4747
  }
4766
- function Kr(e, t, n) {
4767
- let r = Hr(e, t);
4748
+ function Yr(e, t, n) {
4749
+ let r = Gr(e, t);
4768
4750
  if (r) return r.name || t;
4769
4751
  let i = e.fields.get(t);
4770
4752
  return i ? Ze(i, t, n) : t;
4771
4753
  }
4772
- function qr(e) {
4773
- let { entity: t, entityCode: n, fieldName: r, record: i, mode: a, onChange: o, refs: s, disabled: c, surface: l, entities: u, screens: d, locale: f, fieldId: p, labelId: m } = e, h = Hr(t, r);
4754
+ function Xr(e) {
4755
+ let { entity: t, entityCode: n, fieldName: r, record: i, mode: a, onChange: o, refs: s, disabled: c, surface: l, entities: u, screens: d, locale: f, fieldId: p, labelId: m } = e, h = Gr(t, r);
4774
4756
  if (h) {
4775
- let e = h.display?.widget ?? "", t = lr(e);
4757
+ let e = h.display?.widget ?? "", t = fr(e);
4776
4758
  return t ? /* @__PURE__ */ B(t, {
4777
4759
  field: h,
4778
4760
  fieldName: r,
4779
4761
  entityCode: n,
4780
- value: Ur(i, r),
4762
+ value: Kr(i, r),
4781
4763
  mode: a,
4782
4764
  onChange: o,
4783
4765
  disabled: c,
@@ -4788,11 +4770,11 @@ function qr(e) {
4788
4770
  });
4789
4771
  }
4790
4772
  let g = t.fields.get(r);
4791
- return g ? Va({
4773
+ return g ? Wa({
4792
4774
  field: g,
4793
4775
  entityCode: n,
4794
4776
  fieldName: r,
4795
- value: Wr(t, i, r),
4777
+ value: qr(t, i, r),
4796
4778
  mode: a,
4797
4779
  onChange: o,
4798
4780
  record: i,
@@ -4808,80 +4790,80 @@ function qr(e) {
4808
4790
  }
4809
4791
  //#endregion
4810
4792
  //#region src/components/file-widgets/payload.ts
4811
- function Jr(e) {
4793
+ function Zr(e) {
4812
4794
  return !e || Array.isArray(e) ? null : e;
4813
4795
  }
4814
- function Yr(e) {
4796
+ function Qr(e) {
4815
4797
  return Array.isArray(e) ? e : [];
4816
4798
  }
4817
- function Xr(e) {
4799
+ function $r(e) {
4818
4800
  return !e || Array.isArray(e) || typeof e != "object" ? {} : e;
4819
4801
  }
4820
- function Zr(e, t) {
4821
- return e.mode === "array" ? Yr(t) : e.mode === "named_map" ? Xr(t) : Jr(t);
4802
+ function ei(e, t) {
4803
+ return e.mode === "array" ? Qr(t) : e.mode === "named_map" ? $r(t) : Zr(t);
4822
4804
  }
4823
- function Qr(e, t, n, r) {
4805
+ function ti(e, t, n, r) {
4824
4806
  let i = {
4825
4807
  file_id: e.id,
4826
4808
  filename: e.filename
4827
4809
  };
4828
4810
  return r && (i.slot = r), n && (i.position = t), e.metadata !== void 0 && (i.metadata = e.metadata), i;
4829
4811
  }
4830
- function $r(e, t) {
4812
+ function ni(e, t) {
4831
4813
  if (e.mode === "array") {
4832
- let e = Yr(t);
4833
- return e.length === 0 ? { clear: !0 } : { set: e.map((e, t) => Qr(e, t, !0)) };
4814
+ let e = Qr(t);
4815
+ return e.length === 0 ? { clear: !0 } : { set: e.map((e, t) => ti(e, t, !0)) };
4834
4816
  }
4835
4817
  if (e.mode === "named_map") {
4836
- let e = Xr(t), n = Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => Qr(t, 0, !1, e));
4818
+ let e = $r(t), n = Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => ti(t, 0, !1, e));
4837
4819
  return n.length === 0 ? { clear: !0 } : { set: n };
4838
4820
  }
4839
- let n = Jr(t);
4840
- return n ? { set: [Qr(n, 0, !0)] } : { clear: !0 };
4821
+ let n = Zr(t);
4822
+ return n ? { set: [ti(n, 0, !0)] } : { clear: !0 };
4841
4823
  }
4842
- function ei(e) {
4824
+ function ri(e) {
4843
4825
  return JSON.stringify(e);
4844
4826
  }
4845
- function ti(e) {
4827
+ function ii(e) {
4846
4828
  let { entity: t, formData: n, record: r, isNew: i } = e, a = {};
4847
4829
  for (let e of t.files?.names() ?? []) {
4848
4830
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
4849
- let o = Hr(t, e);
4831
+ let o = Gr(t, e);
4850
4832
  if (!o) continue;
4851
- let s = Zr(o, n[e]);
4833
+ let s = ei(o, n[e]);
4852
4834
  if (i) {
4853
- if (o.mode === "array" ? Yr(s).length === 0 : o.mode === "named_map" ? Object.values(Xr(s)).every((e) => e == null) : Jr(s) == null) continue;
4854
- a[e] = $r(o, s);
4835
+ if (o.mode === "array" ? Qr(s).length === 0 : o.mode === "named_map" ? Object.values($r(s)).every((e) => e == null) : Zr(s) == null) continue;
4836
+ a[e] = ni(o, s);
4855
4837
  continue;
4856
4838
  }
4857
- let c = Zr(o, r ? Ur(r, e) : null), l = $r(o, s), u = $r(o, c);
4858
- ei(l) !== ei(u) && (a[e] = l);
4839
+ let c = ei(o, r ? Kr(r, e) : null), l = ni(o, s), u = ni(o, c);
4840
+ ri(l) !== ri(u) && (a[e] = l);
4859
4841
  }
4860
4842
  let o = t.fields;
4861
4843
  if (!o) return a;
4862
4844
  for (let e of o.names()) {
4863
4845
  let s = o.get(e)?.files;
4864
4846
  if (!s || s.mode !== "rich_text_inline" || !Object.prototype.hasOwnProperty.call(n, e)) continue;
4865
- let c = ri(s, n[e]);
4847
+ let c = oi(s, n[e]);
4866
4848
  if (i) {
4867
4849
  if (c.clear) continue;
4868
4850
  a[e] = c;
4869
4851
  continue;
4870
4852
  }
4871
- let l = ri(s, r ? Wr({
4853
+ let l = oi(s, r ? qr({
4872
4854
  ...t,
4873
4855
  fields: o
4874
4856
  }, r, e) : null);
4875
- ei(c) !== ei(l) && (a[e] = c);
4857
+ ri(c) !== ri(l) && (a[e] = c);
4876
4858
  }
4877
4859
  return a;
4878
4860
  }
4879
- function ni(e) {
4861
+ function ai(e) {
4880
4862
  let t = [];
4881
4863
  for (let n of Object.values(e)) for (let e of n.set ?? []) t.push(e.file_id);
4882
4864
  return t;
4883
4865
  }
4884
- function ri(e, t) {
4866
+ function oi(e, t) {
4885
4867
  if (e.mode !== "rich_text_inline") return { clear: !0 };
4886
4868
  let n = E(w(t));
4887
4869
  return n.length === 0 ? { clear: !0 } : { set: n.map((e, t) => ({
@@ -4891,10 +4873,10 @@ function ri(e, t) {
4891
4873
  }
4892
4874
  //#endregion
4893
4875
  //#region src/components/file-widgets/index.ts
4894
- Vr();
4876
+ Wr();
4895
4877
  //#endregion
4896
4878
  //#region src/components/fields/RichTextField.tsx
4897
- function ii(e) {
4879
+ function si(e) {
4898
4880
  let { field: t, entityCode: n, fieldName: r, value: o, mode: s, onChange: c, record: l, compact: u, fieldId: d } = e, f = I(null), p = I(null), m = I(/* @__PURE__ */ new Map()), h = I(/* @__PURE__ */ new Set()), [_, ee] = L(0), [v, y] = L(null), { register: x, unregister: S } = g(), w = l?.$files?.[r], k = F(() => O(o, w), [w, o]), A = k.markdown, j = t.files?.accepts, M = t.files?.max_size_bytes, N = (e, t = k.files) => {
4899
4881
  let n = new Set(E(e)), r = [];
4900
4882
  for (let e of h.current) n.has(e) || r.push(e);
@@ -4943,15 +4925,15 @@ function ii(e) {
4943
4925
  fieldCode: r
4944
4926
  }), i = e.type.startsWith("image/") ? URL.createObjectURL(e) : void 0;
4945
4927
  i && m.current.set(t.id, i);
4946
- let c = oi(t, i);
4928
+ let c = li(t, i);
4947
4929
  if (x(t.id, () => b(t.id)), h.current.add(t.id), o.length === 1) {
4948
- let e = ai(s.markdown, C(c));
4930
+ let e = ci(s.markdown, C(c));
4949
4931
  P(s, e, c), s = T({
4950
4932
  markdown: `${s.markdown}${e}`,
4951
4933
  files: s.files
4952
4934
  }, c);
4953
4935
  } else {
4954
- let e = ai(s.markdown, C(c));
4936
+ let e = ci(s.markdown, C(c));
4955
4937
  s = T({
4956
4938
  markdown: `${s.markdown}${e}`,
4957
4939
  files: s.files
@@ -4973,7 +4955,7 @@ function ii(e) {
4973
4955
  color: "var(--text-4)"
4974
4956
  },
4975
4957
  children: "—"
4976
- }) : u ? /* @__PURE__ */ B(Z, {
4958
+ }) : u ? /* @__PURE__ */ B(X, {
4977
4959
  id: d,
4978
4960
  name: r,
4979
4961
  "aria-required": t.required || void 0,
@@ -4994,10 +4976,10 @@ function ii(e) {
4994
4976
  flexWrap: "wrap"
4995
4977
  },
4996
4978
  children: [
4997
- /* @__PURE__ */ B(K, {
4979
+ /* @__PURE__ */ B(q, {
4998
4980
  kind: "ghost",
4999
4981
  size: "xs",
5000
- icon: B(_ > 0 ? Te : G.plus, { size: 12 }),
4982
+ icon: B(_ > 0 ? Te : K.plus, { size: 12 }),
5001
4983
  onClick: () => p.current?.click(),
5002
4984
  disabled: !n || !t.files || _ > 0,
5003
4985
  children: _ > 0 ? "Uploading…" : "Insert file"
@@ -5093,10 +5075,10 @@ function ii(e) {
5093
5075
  ]
5094
5076
  });
5095
5077
  }
5096
- function ai(e, t) {
5078
+ function ci(e, t) {
5097
5079
  return e ? e.endsWith("\n\n") ? t : e.endsWith("\n") ? `\n${t}` : `\n\n${t}` : `${t}\n`;
5098
5080
  }
5099
- function oi(e, t) {
5081
+ function li(e, t) {
5100
5082
  return {
5101
5083
  id: e.id,
5102
5084
  filename: e.filename,
@@ -5111,27 +5093,19 @@ function oi(e, t) {
5111
5093
  }
5112
5094
  //#endregion
5113
5095
  //#region src/components/fields/cells/factories/text.ts
5114
- var si = () => (e) => {
5115
- if (e == null || e === "") return "—";
5116
- if (typeof e == "object") try {
5117
- return JSON.stringify(e);
5118
- } catch {
5119
- return String(e);
5120
- }
5121
- return String(e);
5122
- }, ci = (e) => {
5123
- let { field: t, fieldName: n, locale: r = "en" } = e, i = li(t, n, r);
5096
+ var ui = () => (e) => e == null || e === "" ? "—" : Z(e), di = (e) => {
5097
+ let { field: t, fieldName: n, locale: r = "en" } = e, i = fi(t, n, r);
5124
5098
  return (e) => {
5125
5099
  if (e == null) return "—";
5126
5100
  let t = !!e;
5127
- return /* @__PURE__ */ B(J, {
5101
+ return /* @__PURE__ */ B(Y, {
5128
5102
  tone: t ? "emerald" : "slate",
5129
5103
  size: "xs",
5130
5104
  children: t ? i.trueLabel : i.falseLabel
5131
5105
  });
5132
5106
  };
5133
5107
  };
5134
- function li(e, t, n) {
5108
+ function fi(e, t, n) {
5135
5109
  if (e.display?.bool_labels) return {
5136
5110
  trueLabel: Q(e.display.bool_labels.true, n) || "Yes",
5137
5111
  falseLabel: Q(e.display.bool_labels.false, n) || "No"
@@ -5152,14 +5126,14 @@ function li(e, t, n) {
5152
5126
  };
5153
5127
  }
5154
5128
  if (t.startsWith("is_")) {
5155
- let e = ui(t.slice(3));
5129
+ let e = pi(t.slice(3));
5156
5130
  return {
5157
5131
  trueLabel: e,
5158
5132
  falseLabel: `Not ${e}`
5159
5133
  };
5160
5134
  }
5161
5135
  if (t.startsWith("has_")) {
5162
- let e = ui(t.slice(4));
5136
+ let e = pi(t.slice(4));
5163
5137
  return {
5164
5138
  trueLabel: e,
5165
5139
  falseLabel: `No ${e}`
@@ -5170,12 +5144,12 @@ function li(e, t, n) {
5170
5144
  falseLabel: "No"
5171
5145
  };
5172
5146
  }
5173
- function ui(e) {
5147
+ function pi(e) {
5174
5148
  return e.split("_").map((e) => e && e[0].toUpperCase() + e.slice(1)).join(" ");
5175
5149
  }
5176
5150
  //#endregion
5177
5151
  //#region src/components/fields/cells/factories/badge.tsx
5178
- var di = new Set([
5152
+ var mi = new Set([
5179
5153
  "indigo",
5180
5154
  "emerald",
5181
5155
  "amber",
@@ -5185,17 +5159,17 @@ var di = new Set([
5185
5159
  "slate",
5186
5160
  "teal"
5187
5161
  ]);
5188
- function fi(e) {
5189
- return e && di.has(e) ? e : "slate";
5162
+ function hi(e) {
5163
+ return e && mi.has(e) ? e : "slate";
5190
5164
  }
5191
- var pi = (e) => {
5165
+ var gi = (e) => {
5192
5166
  let { field: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
5193
5167
  if (t.values) for (let e of t.values) r.set(e.code, {
5194
- tone: fi(e.color),
5168
+ tone: hi(e.color),
5195
5169
  label: Q(e.name, n) || e.code
5196
5170
  });
5197
5171
  if (t.display?.value_map) for (let [e, i] of Object.entries(t.display.value_map)) {
5198
- let t = r.get(e), a = i.color ? fi(i.color) : t?.tone ?? "slate", o = (i.label ? Q(i.label, n) : "") || t?.label || e;
5172
+ let t = r.get(e), a = i.color ? hi(i.color) : t?.tone ?? "slate", o = (i.label ? Q(i.label, n) : "") || t?.label || e;
5199
5173
  r.set(e, {
5200
5174
  tone: a,
5201
5175
  label: o
@@ -5203,14 +5177,14 @@ var pi = (e) => {
5203
5177
  }
5204
5178
  return (e) => {
5205
5179
  if (e == null || e === "") return "—";
5206
- let t = String(e), n = r.get(t);
5207
- return /* @__PURE__ */ B(J, {
5180
+ let t = Z(e), n = r.get(t);
5181
+ return /* @__PURE__ */ B(Y, {
5208
5182
  tone: n?.tone ?? "slate",
5209
5183
  size: "xs",
5210
5184
  children: n?.label ?? t
5211
5185
  });
5212
5186
  };
5213
- }, mi = new Set([
5187
+ }, _i = new Set([
5214
5188
  "indigo",
5215
5189
  "emerald",
5216
5190
  "amber",
@@ -5220,25 +5194,25 @@ var pi = (e) => {
5220
5194
  "slate",
5221
5195
  "teal"
5222
5196
  ]);
5223
- function hi(e) {
5224
- return e && mi.has(e) ? e : "slate";
5197
+ function vi(e) {
5198
+ return e && _i.has(e) ? e : "slate";
5225
5199
  }
5226
- var gi = (e) => {
5200
+ var yi = (e) => {
5227
5201
  let { entity: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
5228
5202
  if (t?.status_groups) for (let e of Object.values(t.status_groups)) for (let t of e.statuses) r.set(t.code, {
5229
- tone: hi(t.color),
5203
+ tone: vi(t.color),
5230
5204
  label: Q(t.name, n) || t.code
5231
5205
  });
5232
5206
  return (e) => {
5233
5207
  if (e == null || e === "") return "—";
5234
- let t = String(e), n = r.get(t);
5235
- return /* @__PURE__ */ B(J, {
5208
+ let t = Z(e), n = r.get(t);
5209
+ return /* @__PURE__ */ B(Y, {
5236
5210
  tone: n?.tone ?? "slate",
5237
5211
  size: "xs",
5238
5212
  children: n?.label ?? t
5239
5213
  });
5240
5214
  };
5241
- }, _i = new Set([
5215
+ }, bi = new Set([
5242
5216
  "indigo",
5243
5217
  "emerald",
5244
5218
  "amber",
@@ -5248,14 +5222,14 @@ var gi = (e) => {
5248
5222
  "slate",
5249
5223
  "teal"
5250
5224
  ]);
5251
- function vi(e) {
5252
- return e && _i.has(e) ? e : null;
5225
+ function xi(e) {
5226
+ return e && bi.has(e) ? e : null;
5253
5227
  }
5254
- var yi = (e) => {
5228
+ var Si = (e) => {
5255
5229
  let { field: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
5256
5230
  if (t.display?.value_map) for (let [e, i] of Object.entries(t.display.value_map)) r.set(e, {
5257
5231
  label: i.label && Q(i.label, n) || e,
5258
- tone: vi(i.color)
5232
+ tone: xi(i.color)
5259
5233
  });
5260
5234
  return (e) => !Array.isArray(e) || e.length === 0 ? "—" : /* @__PURE__ */ B("span", {
5261
5235
  style: {
@@ -5265,52 +5239,52 @@ var yi = (e) => {
5265
5239
  },
5266
5240
  children: e.map((e, t) => {
5267
5241
  let n = String(e), i = r.get(n);
5268
- return i?.tone ? /* @__PURE__ */ B(J, {
5242
+ return i?.tone ? /* @__PURE__ */ B(Y, {
5269
5243
  tone: i.tone,
5270
5244
  size: "xs",
5271
5245
  children: i.label
5272
5246
  }, `${n}-${t}`) : /* @__PURE__ */ B(he, { children: i?.label ?? n }, `${n}-${t}`);
5273
5247
  })
5274
5248
  });
5275
- }, bi = () => (e) => {
5249
+ }, Ci = () => (e) => {
5276
5250
  if (e == null || e === "") return "—";
5277
- let { text: t, absolute: n } = Dn(typeof e == "string" ? e : String(e));
5251
+ let { text: t, absolute: n } = On(typeof e == "string" ? e : Z(e));
5278
5252
  return /* @__PURE__ */ B("span", {
5279
5253
  title: n,
5280
5254
  children: t
5281
5255
  });
5282
- }, xi = () => (e) => e == null || e === "" ? "—" : En(typeof e == "string" ? e : String(e)), Si = 60 * 1e3, Ci = 300 * 1e3, wi = () => (e) => {
5256
+ }, wi = () => (e) => e == null || e === "" ? "—" : Dn(typeof e == "string" ? e : Z(e)), Ti = 60 * 1e3, Ei = 300 * 1e3, Di = () => (e) => {
5283
5257
  if (e == null || e === "") return "—";
5284
- let t = typeof e == "string" ? e : String(e), n = new Date(t);
5258
+ let t = typeof e == "string" ? e : Z(e), n = new Date(t);
5285
5259
  if (isNaN(n.getTime())) return t;
5286
- let r = En(t), i = Date.now() - n.getTime();
5260
+ let r = Dn(t), i = Date.now() - n.getTime();
5287
5261
  if (i <= 0) return /* @__PURE__ */ V("span", {
5288
5262
  title: r,
5289
- children: ["in ", re(n, /* @__PURE__ */ new Date(), { addSuffix: !1 })]
5263
+ children: ["in ", ne(n, /* @__PURE__ */ new Date(), { addSuffix: !1 })]
5290
5264
  });
5291
- if (i <= Si) return /* @__PURE__ */ B("span", {
5265
+ if (i <= Ti) return /* @__PURE__ */ B("span", {
5292
5266
  title: r,
5293
- children: /* @__PURE__ */ B(J, {
5267
+ children: /* @__PURE__ */ B(Y, {
5294
5268
  tone: "slate",
5295
5269
  size: "xs",
5296
5270
  children: "due"
5297
5271
  })
5298
5272
  });
5299
- let a = re(n, /* @__PURE__ */ new Date(), { addSuffix: !1 });
5273
+ let a = ne(n, /* @__PURE__ */ new Date(), { addSuffix: !1 });
5300
5274
  return /* @__PURE__ */ B("span", {
5301
5275
  title: r,
5302
- children: /* @__PURE__ */ V(J, {
5303
- tone: i <= Ci ? "amber" : "rose",
5276
+ children: /* @__PURE__ */ V(Y, {
5277
+ tone: i <= Ei ? "amber" : "rose",
5304
5278
  size: "xs",
5305
5279
  children: ["overdue ", a]
5306
5280
  })
5307
5281
  });
5308
- }, Ti = (e) => {
5309
- let { field: t, locale: n = "en" } = e, r = t.display?.currency || "USD", i = t.display?.currency_field, a = Ei(t.display?.currency_display), o = Di(typeof t.scale == "number" ? t.scale : 2, 0, 6), s = /* @__PURE__ */ new Map();
5282
+ }, Oi = (e) => {
5283
+ let { field: t, locale: n = "en" } = e, r = t.display?.currency || "USD", i = t.display?.currency_field, a = ki(t.display?.currency_display), o = Ai(typeof t.scale == "number" ? t.scale : 2, 0, 6), s = /* @__PURE__ */ new Map();
5310
5284
  return (e, t = {}) => {
5311
5285
  if (e == null || e === "") return "—";
5312
5286
  let c = typeof e == "number" ? e : Number(e);
5313
- if (!Number.isFinite(c)) return String(e);
5287
+ if (!Number.isFinite(c)) return Z(e);
5314
5288
  let l = i ? t[i] : void 0, u = typeof l == "string" && l !== "" ? l : r, d = `${n}:${u}:${a}:${o}`, f = s.get(d);
5315
5289
  return f || (f = new Intl.NumberFormat(n, {
5316
5290
  style: "currency",
@@ -5321,7 +5295,7 @@ var yi = (e) => {
5321
5295
  }), s.set(d, f)), f.format(c);
5322
5296
  };
5323
5297
  };
5324
- function Ei(e) {
5298
+ function ki(e) {
5325
5299
  switch (e) {
5326
5300
  case "narrow_symbol": return "narrowSymbol";
5327
5301
  case "code":
@@ -5330,16 +5304,16 @@ function Ei(e) {
5330
5304
  default: return "symbol";
5331
5305
  }
5332
5306
  }
5333
- function Di(e, t, n) {
5307
+ function Ai(e, t, n) {
5334
5308
  return e < t ? t : e > n ? n : e;
5335
5309
  }
5336
5310
  //#endregion
5337
5311
  //#region src/components/fields/cells/factories/refLink.tsx
5338
- var Oi = (e) => {
5312
+ var ji = (e) => {
5339
5313
  let { field: t, entities: n, screens: r, refs: i, surface: a } = e, o = t.ref?.entity, s = o ? n?.[o] : void 0, c = typeof i == "function" ? i : () => i, l = a === "detail", u = s?.display?.icon, d = t.display?.ref_display_field ?? t.ref?.display?.field ?? s?.display?.display_field, f = s?.detail_screen, p = (f ? r?.[f] : void 0)?.route;
5340
5314
  return (e, t) => {
5341
5315
  if (e == null || e === "") return "—";
5342
- let n = String(e), r = ki(n, o, c(), d), i = p ? p.replace(":id", encodeURIComponent(n)) : void 0;
5316
+ let n = Z(e), r = Mi(n, o, c(), d), i = p ? p.replace(":id", encodeURIComponent(n)) : void 0;
5343
5317
  if (l) {
5344
5318
  let e = /* @__PURE__ */ V(z, { children: [u && /* @__PURE__ */ B("span", {
5345
5319
  style: {
@@ -5381,29 +5355,29 @@ var Oi = (e) => {
5381
5355
  }) : r;
5382
5356
  };
5383
5357
  };
5384
- function ki(e, t, n, r) {
5358
+ function Mi(e, t, n, r) {
5385
5359
  let i = t && n ? n[t]?.[e] : void 0;
5386
5360
  return i ? qe(i, r, e) : e;
5387
5361
  }
5388
5362
  //#endregion
5389
5363
  //#region src/components/fields/cells/factories/url-helpers.ts
5390
- var Ai = /^(https?|ftps?|ssh|mailto|tel):/i, ji = /^(info|name|tech|site|cloud|online|store|shop|blog|space|world|link|live|page|zone|life|team|work|host|land|news|wiki|mobi|coop|aero|asia)$/i;
5391
- function Mi(e) {
5392
- return /^[a-z]{2,3}$/i.test(e) || ji.test(e);
5364
+ var Ni = /^(https?|ftps?|ssh|mailto|tel):/i, Pi = /^(info|name|tech|site|cloud|online|store|shop|blog|space|world|link|live|page|zone|life|team|work|host|land|news|wiki|mobi|coop|aero|asia)$/i;
5365
+ function Fi(e) {
5366
+ return /^[a-z]{2,3}$/i.test(e) || Pi.test(e);
5393
5367
  }
5394
- function Ni(e) {
5368
+ function Ii(e) {
5395
5369
  if (!e.includes(".")) return !1;
5396
5370
  let t = e.split(".");
5397
5371
  if (t.length < 3) return !0;
5398
5372
  let n = t[0].toLowerCase();
5399
- return /^(com|org|net|edu|gov)$/.test(n) ? !1 : /^(io|app|dev)$/.test(n) ? Mi(t[t.length - 1]) : !0;
5373
+ return /^(com|org|net|edu|gov)$/.test(n) ? !1 : /^(io|app|dev)$/.test(n) ? Fi(t[t.length - 1]) : !0;
5400
5374
  }
5401
- function Pi(e) {
5402
- if (Ai.test(e)) return e;
5375
+ function Li(e) {
5376
+ if (Ni.test(e)) return e;
5403
5377
  let t = e.match(/^([a-z][a-z0-9+.-]*):/i);
5404
5378
  if (t) {
5405
5379
  let n = t[1], r = e.slice(t[0].length);
5406
- if (/^\d+([/?#]|$)/.test(r) && Ni(n)) {
5380
+ if (/^\d+([/?#]|$)/.test(r) && Ii(n)) {
5407
5381
  let t = parseInt(r, 10);
5408
5382
  if (t >= 1 && t <= 65535) return `https://${e}`;
5409
5383
  }
@@ -5411,14 +5385,14 @@ function Pi(e) {
5411
5385
  }
5412
5386
  return `https://${e}`;
5413
5387
  }
5414
- function Fi(e) {
5388
+ function Ri(e) {
5415
5389
  try {
5416
5390
  return new URL(e).hostname.replace(/^www\./i, "") || null;
5417
5391
  } catch {
5418
5392
  return null;
5419
5393
  }
5420
5394
  }
5421
- function Ii(e, t) {
5395
+ function zi(e, t) {
5422
5396
  if (t !== "linkedin.com") return null;
5423
5397
  try {
5424
5398
  let t = new URL(e).pathname.match(/^\/(in|company|school)\/([^/]+)/i);
@@ -5426,7 +5400,7 @@ function Ii(e, t) {
5426
5400
  } catch {}
5427
5401
  return null;
5428
5402
  }
5429
- function Li(e) {
5403
+ function Bi(e) {
5430
5404
  try {
5431
5405
  return new URL(e), !0;
5432
5406
  } catch {
@@ -5435,7 +5409,7 @@ function Li(e) {
5435
5409
  }
5436
5410
  //#endregion
5437
5411
  //#region src/components/fields/cells/factories/host-icons.tsx
5438
- function Ri(e, t = "0 0 24 24") {
5412
+ function Vi(e, t = "0 0 24 24") {
5439
5413
  return (n) => /* @__PURE__ */ B("svg", {
5440
5414
  width: 16,
5441
5415
  height: 16,
@@ -5451,11 +5425,11 @@ function Ri(e, t = "0 0 24 24") {
5451
5425
  children: e
5452
5426
  });
5453
5427
  }
5454
- var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5428
+ var Hi = Vi(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5455
5429
  cx: "12",
5456
5430
  cy: "12",
5457
5431
  r: "9"
5458
- }), /* @__PURE__ */ B("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })), Bi = (e) => /* @__PURE__ */ B("svg", {
5432
+ }), /* @__PURE__ */ B("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })), Ui = (e) => /* @__PURE__ */ B("svg", {
5459
5433
  width: 16,
5460
5434
  height: 16,
5461
5435
  viewBox: "0 0 24 24",
@@ -5464,7 +5438,7 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5464
5438
  style: { flexShrink: 0 },
5465
5439
  ...e,
5466
5440
  children: /* @__PURE__ */ B("path", { d: "M20.45 20.45h-3.55v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.13 1.45-2.13 2.94v5.67H9.36V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z" })
5467
- }), Vi = (e) => /* @__PURE__ */ B("svg", {
5441
+ }), Wi = (e) => /* @__PURE__ */ B("svg", {
5468
5442
  width: 16,
5469
5443
  height: 16,
5470
5444
  viewBox: "0 0 24 24",
@@ -5473,7 +5447,7 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5473
5447
  style: { flexShrink: 0 },
5474
5448
  ...e,
5475
5449
  children: /* @__PURE__ */ B("path", { d: "M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56 0-.27-.01-1-.02-1.96-3.21.7-3.89-1.55-3.89-1.55-.52-1.34-1.28-1.7-1.28-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.2 1.77 1.2 1.03 1.77 2.71 1.26 3.37.96.1-.75.4-1.26.73-1.55-2.56-.29-5.26-1.28-5.26-5.71 0-1.26.45-2.3 1.19-3.11-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.19a11.05 11.05 0 0 1 5.79 0c2.21-1.5 3.18-1.19 3.18-1.19.63 1.59.23 2.76.11 3.05.74.81 1.19 1.85 1.19 3.11 0 4.44-2.71 5.42-5.29 5.7.41.36.78 1.07.78 2.16 0 1.56-.01 2.81-.01 3.19 0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5z" })
5476
- }), Hi = (e) => /* @__PURE__ */ B("svg", {
5450
+ }), Gi = (e) => /* @__PURE__ */ B("svg", {
5477
5451
  width: 16,
5478
5452
  height: 16,
5479
5453
  viewBox: "0 0 24 24",
@@ -5482,7 +5456,7 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5482
5456
  style: { flexShrink: 0 },
5483
5457
  ...e,
5484
5458
  children: /* @__PURE__ */ B("path", { d: "M18.244 2H21.5l-7.62 8.71L23 22h-7.05l-5.52-7.21L4.07 22H.81l8.18-9.34L1 2h7.22l5 6.59L18.244 2zm-2.47 18h1.95L7.32 4h-2.1l10.55 16z" })
5485
- }), Ui = (e) => /* @__PURE__ */ B("svg", {
5459
+ }), Ki = (e) => /* @__PURE__ */ B("svg", {
5486
5460
  width: 16,
5487
5461
  height: 16,
5488
5462
  viewBox: "0 0 24 24",
@@ -5491,7 +5465,7 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5491
5465
  style: { flexShrink: 0 },
5492
5466
  ...e,
5493
5467
  children: /* @__PURE__ */ B("path", { d: "M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8zM9.6 15.6V8.4l6.2 3.6-6.2 3.6z" })
5494
- }), Wi = (e) => /* @__PURE__ */ B("svg", {
5468
+ }), qi = (e) => /* @__PURE__ */ B("svg", {
5495
5469
  width: 16,
5496
5470
  height: 16,
5497
5471
  viewBox: "0 0 24 24",
@@ -5500,7 +5474,7 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5500
5474
  style: { flexShrink: 0 },
5501
5475
  ...e,
5502
5476
  children: /* @__PURE__ */ B("path", { d: "M24 5.45v13.1A1.45 1.45 0 0 1 22.55 20H19.5V9.27L12 14.7 4.5 9.27V20H1.45A1.45 1.45 0 0 1 0 18.55V5.45A1.45 1.45 0 0 1 1.45 4h.5l10.05 7.27L22.05 4h.5A1.45 1.45 0 0 1 24 5.45z" })
5503
- }), Gi = (e) => /* @__PURE__ */ V("svg", {
5477
+ }), Ji = (e) => /* @__PURE__ */ V("svg", {
5504
5478
  width: 16,
5505
5479
  height: 16,
5506
5480
  viewBox: "0 0 24 24",
@@ -5525,7 +5499,7 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5525
5499
  d: "M15.17 18.96a2.52 2.52 0 1 1-2.52 2.52v-2.52h2.52zm0-1.27a2.52 2.52 0 1 1 0-5.04h6.31a2.52 2.52 0 1 1 0 5.04h-6.31z"
5526
5500
  })
5527
5501
  ]
5528
- }), Ki = (e) => /* @__PURE__ */ B("svg", {
5502
+ }), Yi = (e) => /* @__PURE__ */ B("svg", {
5529
5503
  width: 16,
5530
5504
  height: 16,
5531
5505
  viewBox: "0 0 24 24",
@@ -5534,39 +5508,39 @@ var zi = Ri(/* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("circle", {
5534
5508
  style: { flexShrink: 0 },
5535
5509
  ...e,
5536
5510
  children: /* @__PURE__ */ B("path", { d: "M4.46 3.83 14.94 3a3.7 3.7 0 0 1 2.5.62l3 2.16a1.4 1.4 0 0 1 .56 1.31v13.06a1.7 1.7 0 0 1-1.66 1.7l-12.5.78a2.4 2.4 0 0 1-1.85-.62L2.5 19.7a1.7 1.7 0 0 1-.5-1.2V5.16c0-.74.6-1.27 1.46-1.33l1-.01zm.46 1.86c-.31 0-.46.16-.46.47v12.25c0 .31.16.47.46.47l11.62-.7c.31 0 .46-.16.46-.47V6c0-.32-.16-.47-.46-.47L4.92 5.7zm5.57 2.32c.16 0 .31.16.31.31v.46l3.7.23c.31 0 .46.16.46.47v8.32c0 .31-.16.47-.46.47l-3.7.23c-.31 0-.46-.16-.46-.47V8.78c0-.16.15-.32.15-.46l-.04-.31z" })
5537
- }), qi = {
5538
- "linkedin.com": Bi,
5539
- "github.com": Vi,
5540
- "x.com": Hi,
5541
- "twitter.com": Hi,
5542
- "youtube.com": Ui,
5543
- "youtu.be": Ui,
5544
- "gmail.com": Wi,
5545
- "mail.google.com": Wi,
5546
- "slack.com": Gi,
5547
- "notion.so": Ki,
5548
- "notion.com": Ki
5511
+ }), Xi = {
5512
+ "linkedin.com": Ui,
5513
+ "github.com": Wi,
5514
+ "x.com": Gi,
5515
+ "twitter.com": Gi,
5516
+ "youtube.com": Ki,
5517
+ "youtu.be": Ki,
5518
+ "gmail.com": qi,
5519
+ "mail.google.com": qi,
5520
+ "slack.com": Ji,
5521
+ "notion.so": Yi,
5522
+ "notion.com": Yi
5549
5523
  };
5550
- function Ji(e, t) {
5524
+ function Zi(e, t) {
5551
5525
  return !e || t === "none" ? null : t === "google" ? `https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=32` : `https://${e}/favicon.ico`;
5552
5526
  }
5553
- var Yi = {
5527
+ var Qi = {
5554
5528
  width: 16,
5555
5529
  height: 16,
5556
5530
  flexShrink: 0,
5557
5531
  objectFit: "contain"
5558
5532
  };
5559
- function Xi({ domain: e }) {
5560
- let t = Xt((e) => e.faviconSource), n = e ? e.toLowerCase() : "", r = n ? qi[n] : void 0;
5533
+ function $i({ domain: e }) {
5534
+ let t = Xt((e) => e.faviconSource), n = e ? e.toLowerCase() : "", r = n ? Xi[n] : void 0;
5561
5535
  if (r) return /* @__PURE__ */ B(r, {});
5562
- let i = Ji(n, t);
5563
- return i ? /* @__PURE__ */ B(Zi, { src: i }) : /* @__PURE__ */ B(zi, {});
5536
+ let i = Zi(n, t);
5537
+ return i ? /* @__PURE__ */ B(ea, { src: i }) : /* @__PURE__ */ B(Hi, {});
5564
5538
  }
5565
- function Zi({ src: e }) {
5539
+ function ea({ src: e }) {
5566
5540
  let [t, n] = L(!1);
5567
5541
  return N(() => {
5568
5542
  n(!1);
5569
- }, [e]), t ? /* @__PURE__ */ B(zi, {}) : /* @__PURE__ */ B("img", {
5543
+ }, [e]), t ? /* @__PURE__ */ B(Hi, {}) : /* @__PURE__ */ B("img", {
5570
5544
  src: e,
5571
5545
  alt: "",
5572
5546
  width: 16,
@@ -5574,7 +5548,7 @@ function Zi({ src: e }) {
5574
5548
  loading: "lazy",
5575
5549
  decoding: "async",
5576
5550
  referrerPolicy: "no-referrer",
5577
- style: Yi,
5551
+ style: Qi,
5578
5552
  onError: () => n(!0)
5579
5553
  });
5580
5554
  }
@@ -5584,72 +5558,72 @@ var $ = /* @__PURE__ */ B("span", {
5584
5558
  color: "var(--text-4)"
5585
5559
  },
5586
5560
  children: "—"
5587
- }), Qi = {
5561
+ }), ta = {
5588
5562
  display: "inline-flex",
5589
5563
  alignItems: "center",
5590
5564
  gap: 4,
5591
5565
  fontSize: 12.5,
5592
5566
  color: "var(--accent)",
5593
5567
  textDecoration: "none"
5594
- }, $i = { fontSize: 12.5 }, ea = () => (e) => {
5595
- let t = e == null ? "" : String(e);
5568
+ }, na = { fontSize: 12.5 }, ra = () => (e) => {
5569
+ let t = e == null ? "" : Z(e);
5596
5570
  if (!t) return $;
5597
- let n = Pi(t);
5598
- if (n == null || !Li(n)) return /* @__PURE__ */ B("span", {
5599
- style: $i,
5571
+ let n = Li(t);
5572
+ if (n == null || !Bi(n)) return /* @__PURE__ */ B("span", {
5573
+ style: na,
5600
5574
  children: t
5601
5575
  });
5602
- let r = Fi(n), i = Ii(n, r ?? "") ?? r ?? t;
5576
+ let r = Ri(n), i = zi(n, r ?? "") ?? r ?? t;
5603
5577
  return /* @__PURE__ */ V("a", {
5604
5578
  href: n,
5605
5579
  target: "_blank",
5606
5580
  rel: "noopener noreferrer",
5607
5581
  title: t,
5608
5582
  className: "mono",
5609
- style: Qi,
5583
+ style: ta,
5610
5584
  children: [
5611
- /* @__PURE__ */ B(Xi, { domain: r }),
5585
+ /* @__PURE__ */ B($i, { domain: r }),
5612
5586
  i,
5613
- /* @__PURE__ */ B(G.external, { size: 11 })
5587
+ /* @__PURE__ */ B(K.external, { size: 11 })
5614
5588
  ]
5615
5589
  });
5616
- }, ta = {
5590
+ }, ia = {
5617
5591
  fontSize: 12.5,
5618
5592
  color: "var(--accent)",
5619
5593
  textDecoration: "none"
5620
- }, na = () => (e) => {
5621
- let t = e == null ? "" : String(e);
5594
+ }, aa = () => (e) => {
5595
+ let t = e == null ? "" : Z(e);
5622
5596
  return t ? /* @__PURE__ */ B("a", {
5623
5597
  href: `mailto:${t}`,
5624
5598
  className: "mono",
5625
- style: ta,
5599
+ style: ia,
5626
5600
  children: t
5627
5601
  }) : $;
5628
- }, ra = {
5602
+ }, oa = {
5629
5603
  fontSize: 12.5,
5630
5604
  color: "var(--accent)",
5631
5605
  textDecoration: "none"
5632
- }, ia = { fontSize: 12.5 }, aa = /^[+()\-.\s\d]+$/, oa = () => (e) => {
5633
- let t = e == null ? "" : String(e);
5606
+ }, sa = { fontSize: 12.5 }, ca = /^[+()\-.\s\d]+$/, la = () => (e) => {
5607
+ let t = e == null ? "" : Z(e);
5634
5608
  if (!t) return $;
5635
5609
  let n = t.trim();
5636
- return aa.test(n) ? /* @__PURE__ */ B("a", {
5610
+ return ca.test(n) ? /* @__PURE__ */ B("a", {
5637
5611
  href: `tel:${n.replace(/\s+/g, "")}`,
5638
5612
  className: "mono",
5639
- style: ra,
5613
+ style: oa,
5640
5614
  children: t
5641
5615
  }) : /* @__PURE__ */ B("span", {
5642
- style: ia,
5616
+ style: sa,
5643
5617
  children: t
5644
5618
  });
5645
- }, sa = {
5619
+ }, ua = {
5646
5620
  fontSize: 12.5,
5647
5621
  fontVariantNumeric: "tabular-nums"
5648
- }, ca = {
5622
+ }, da = {
5649
5623
  color: "var(--text-3)",
5650
5624
  marginLeft: 4
5651
- }, la = { fontSize: 12.5 };
5652
- function ua(e, t) {
5625
+ }, fa = { fontSize: 12.5 };
5626
+ function pa(e, t) {
5653
5627
  let n = e.trim();
5654
5628
  if (n === "" || n === "-") return n;
5655
5629
  let r = n.startsWith("-"), [i, a] = (r ? n.slice(1) : n).split("."), o;
@@ -5661,45 +5635,45 @@ function ua(e, t) {
5661
5635
  let s = r ? `-${o}` : o;
5662
5636
  return a !== void 0 && (s += `.${a}`), s;
5663
5637
  }
5664
- var da = (e) => {
5638
+ var ma = (e) => {
5665
5639
  let { field: t, fieldName: n, locale: r = "en" } = e, i = new Intl.NumberFormat(r), a = t.type === "decimal", o = t.unit ? t.unit.display || t.unit.storage : void 0;
5666
5640
  return (e, t) => {
5667
5641
  if (e == null) return $;
5668
5642
  let r = t.$units?.[n] || (o && !o.startsWith("$") ? o : void 0), s;
5669
- if (a && typeof e == "string") s = ua(e, i);
5643
+ if (a && typeof e == "string") s = pa(e, i);
5670
5644
  else {
5671
5645
  let t = typeof e == "number" ? e : Number(e);
5672
5646
  s = Number.isFinite(t) ? i.format(t) : null;
5673
5647
  }
5674
5648
  return s == null ? /* @__PURE__ */ B("span", {
5675
- style: la,
5649
+ style: fa,
5676
5650
  children: "—"
5677
5651
  }) : /* @__PURE__ */ V("span", {
5678
5652
  className: "num",
5679
- style: sa,
5653
+ style: ua,
5680
5654
  children: [s, r && /* @__PURE__ */ B("span", {
5681
- style: ca,
5655
+ style: da,
5682
5656
  children: r
5683
5657
  })]
5684
5658
  });
5685
5659
  };
5686
- }, fa = { fontSize: 12.5 }, pa = () => (e) => e == null || e === "" ? $ : /* @__PURE__ */ B("code", {
5660
+ }, ha = { fontSize: 12.5 }, ga = () => (e) => e == null || e === "" ? $ : /* @__PURE__ */ B("code", {
5687
5661
  className: "mono",
5688
- style: fa,
5689
- children: String(e)
5690
- }), ma = {
5662
+ style: ha,
5663
+ children: Z(e)
5664
+ }), _a = {
5691
5665
  display: "inline-flex",
5692
5666
  alignItems: "center",
5693
5667
  gap: 4,
5694
5668
  fontSize: 12.5,
5695
5669
  color: "var(--accent)",
5696
5670
  textDecoration: "none"
5697
- }, ha = { fontSize: 12.5 }, ga = () => (e) => {
5698
- let t = e == null ? "" : String(e);
5671
+ }, va = { fontSize: 12.5 }, ya = () => (e) => {
5672
+ let t = e == null ? "" : Z(e);
5699
5673
  if (!t) return $;
5700
- let n = Pi(t);
5701
- return n == null || !Li(n) ? /* @__PURE__ */ B("span", {
5702
- style: ha,
5674
+ let n = Li(t);
5675
+ return n == null || !Bi(n) ? /* @__PURE__ */ B("span", {
5676
+ style: va,
5703
5677
  children: t
5704
5678
  }) : /* @__PURE__ */ V("a", {
5705
5679
  href: n,
@@ -5707,21 +5681,21 @@ var da = (e) => {
5707
5681
  rel: "noopener noreferrer",
5708
5682
  title: t,
5709
5683
  className: "mono",
5710
- style: ma,
5711
- children: [t, /* @__PURE__ */ B(G.external, { size: 11 })]
5684
+ style: _a,
5685
+ children: [t, /* @__PURE__ */ B(K.external, { size: 11 })]
5712
5686
  });
5713
- }, _a = 400, va = 2e3;
5714
- function ya(e) {
5715
- return Math.max(1, Math.min(typeof e == "number" && Number.isFinite(e) ? Math.floor(e) : _a, va));
5687
+ }, ba = 400, xa = 2e3;
5688
+ function Sa(e) {
5689
+ return Math.max(1, Math.min(typeof e == "number" && Number.isFinite(e) ? Math.floor(e) : ba, xa));
5716
5690
  }
5717
- function ba(e, t) {
5691
+ function Ca(e, t) {
5718
5692
  return e.length <= t ? e : `${e.slice(0, t)}...`;
5719
5693
  }
5720
- function xa(e, t, n, r = 0) {
5694
+ function wa(e, t, n, r = 0) {
5721
5695
  if (e == null || e === "") return "";
5722
- if (typeof e == "string") return ba(e, t);
5696
+ if (typeof e == "string") return Ca(e, t);
5723
5697
  if (typeof e == "number" || typeof e == "boolean") return String(e);
5724
- if (typeof e != "object") return ba(String(e), t);
5698
+ if (typeof e != "object") return Ca(Z(e), t);
5725
5699
  if (n.has(e)) return "[Circular]";
5726
5700
  if (r >= 3) return Array.isArray(e) ? "[...]" : "{...}";
5727
5701
  n.add(e);
@@ -5732,30 +5706,30 @@ function xa(e, t, n, r = 0) {
5732
5706
  a.push(a.length > 1 ? ",..." : "...");
5733
5707
  break;
5734
5708
  }
5735
- let f = xa(c, d, n, r + 1);
5709
+ let f = wa(c, d, n, r + 1);
5736
5710
  if (a.push(u, f), a.join("").length >= t) {
5737
5711
  a.push(",...");
5738
5712
  break;
5739
5713
  }
5740
5714
  }
5741
- return a.push(i), n.delete(e), ba(a.join(""), t);
5715
+ return a.push(i), n.delete(e), Ca(a.join(""), t);
5742
5716
  }
5743
- function Sa(e, t) {
5744
- return xa(e, t, /* @__PURE__ */ new WeakSet());
5717
+ function Ta(e, t) {
5718
+ return wa(e, t, /* @__PURE__ */ new WeakSet());
5745
5719
  }
5746
- var Ca = (e) => {
5747
- let t = e.surface ?? "detail", n = ya(e.field.display?.list_preview?.max_chars);
5720
+ var Ea = (e) => {
5721
+ let t = e.surface ?? "detail", n = Sa(e.field.display?.list_preview?.max_chars);
5748
5722
  return (r) => {
5749
- if (Wn(r)) return $;
5723
+ if (qn(r)) return $;
5750
5724
  if (t === "list") {
5751
- let e = Sa(r, n);
5725
+ let e = Ta(r, n);
5752
5726
  return /* @__PURE__ */ B("span", {
5753
5727
  className: "font-mono text-xs text-muted-foreground",
5754
5728
  title: e,
5755
5729
  children: e
5756
5730
  });
5757
5731
  }
5758
- return /* @__PURE__ */ B(Gn, {
5732
+ return /* @__PURE__ */ B(Jn, {
5759
5733
  field: e.field,
5760
5734
  fieldName: e.fieldName,
5761
5735
  value: r,
@@ -5763,7 +5737,7 @@ var Ca = (e) => {
5763
5737
  locale: e.locale
5764
5738
  });
5765
5739
  };
5766
- }, wa = [
5740
+ }, Da = [
5767
5741
  {
5768
5742
  pattern: /```[^\n]*\n?([\s\S]*?)```/g,
5769
5743
  replacement: "$1"
@@ -5826,13 +5800,13 @@ var Ca = (e) => {
5826
5800
  replacement: ""
5827
5801
  }
5828
5802
  ];
5829
- function Ta(e) {
5803
+ function Oa(e) {
5830
5804
  if (!e) return {
5831
5805
  text: "",
5832
5806
  isPlain: !0
5833
5807
  };
5834
5808
  let t = e, n = !1;
5835
- for (let e of wa) {
5809
+ for (let e of Da) {
5836
5810
  let r = t.replace(e.pattern, e.replacement);
5837
5811
  r !== t && e.structural !== !1 && (n = !0), t = r;
5838
5812
  }
@@ -5843,123 +5817,123 @@ function Ta(e) {
5843
5817
  }
5844
5818
  //#endregion
5845
5819
  //#region src/components/fields/cells/factories/markdown.tsx
5846
- function Ea(e) {
5820
+ function ka(e) {
5847
5821
  return /* @__PURE__ */ B(hn, { content: e });
5848
5822
  }
5849
- var Da = (e) => {
5823
+ var Aa = (e) => {
5850
5824
  let t = e.surface === "list";
5851
5825
  return (e) => {
5852
- let n = e == null ? "" : String(e);
5826
+ let n = e == null ? "" : Z(e);
5853
5827
  if (!n) return $;
5854
- if (!t) return Ea(n);
5855
- let { text: r, isPlain: i } = Ta(n);
5828
+ if (!t) return ka(n);
5829
+ let { text: r, isPlain: i } = Oa(n);
5856
5830
  return i ? /* @__PURE__ */ B("span", {
5857
5831
  title: r,
5858
5832
  children: r
5859
5833
  }) : /* @__PURE__ */ B(me, {
5860
- content: Ea(n),
5834
+ content: ka(n),
5861
5835
  children: /* @__PURE__ */ B("span", {
5862
5836
  title: r,
5863
5837
  children: r
5864
5838
  })
5865
5839
  });
5866
5840
  };
5867
- }, Oa = "[SET]", ka = {
5841
+ }, ja = "[SET]", Ma = {
5868
5842
  fontSize: 12.5,
5869
5843
  color: "var(--text-3)"
5870
- }, Aa = {
5844
+ }, Na = {
5871
5845
  fontSize: 12.5,
5872
5846
  color: "var(--text-4)",
5873
5847
  fontStyle: "italic"
5874
- }, ja = () => (e) => e === Oa || typeof e == "string" && e !== "" ? /* @__PURE__ */ B("span", {
5848
+ }, Pa = () => (e) => e === ja || typeof e == "string" && e !== "" ? /* @__PURE__ */ B("span", {
5875
5849
  className: "mono",
5876
- style: ka,
5877
- children: Oa
5850
+ style: Ma,
5851
+ children: ja
5878
5852
  }) : /* @__PURE__ */ B("span", {
5879
- style: Aa,
5853
+ style: Na,
5880
5854
  children: "Not set"
5881
5855
  });
5882
5856
  //#endregion
5883
5857
  //#region src/components/fields/cells/factories/richTextPreview.tsx
5884
- function Ma(e, t) {
5858
+ function Fa(e, t) {
5885
5859
  return /* @__PURE__ */ B(hn, {
5886
5860
  content: e,
5887
5861
  files: t
5888
5862
  });
5889
5863
  }
5890
- var Na = (e) => {
5864
+ var Ia = (e) => {
5891
5865
  let { fieldName: t } = e, n = e.surface === "list";
5892
5866
  return (e, r) => {
5893
5867
  let i = r?.$files?.[t], a = O(e, i);
5894
5868
  if (!a.markdown) return $;
5895
- if (!n) return Ma(a.markdown, a.files);
5896
- let { text: o, isPlain: s } = Ta(a.markdown);
5869
+ if (!n) return Fa(a.markdown, a.files);
5870
+ let { text: o, isPlain: s } = Oa(a.markdown);
5897
5871
  return s ? /* @__PURE__ */ B("span", {
5898
5872
  title: o,
5899
5873
  children: o
5900
5874
  }) : /* @__PURE__ */ B(me, {
5901
- content: Ma(a.markdown, a.files),
5875
+ content: Fa(a.markdown, a.files),
5902
5876
  children: /* @__PURE__ */ B("span", {
5903
5877
  title: o,
5904
5878
  children: o
5905
5879
  })
5906
5880
  });
5907
5881
  };
5908
- }, Pa = { fontSize: 12.5 }, Fa = {
5882
+ }, La = { fontSize: 12.5 }, Ra = {
5909
5883
  fontSize: 12.5,
5910
5884
  whiteSpace: "pre-wrap",
5911
5885
  margin: 0
5912
5886
  };
5913
- function Ia(e) {
5887
+ function za(e) {
5914
5888
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
5915
5889
  }
5916
- function La(e, t) {
5890
+ function Ba(e, t) {
5917
5891
  if (t && typeof e[t] == "string" && e[t] !== "") return [t, e[t]];
5918
5892
  for (let [t, n] of Object.entries(e)) if (typeof n == "string" && n !== "") return [t, n];
5919
5893
  return null;
5920
5894
  }
5921
5895
  //#endregion
5922
5896
  //#region src/components/fields/cells/registry.ts
5923
- var Ra = {
5924
- text: si,
5925
- bool_pill: ci,
5926
- badge: pi,
5927
- status_pill: gi,
5928
- tag_list: yi,
5929
- time_ago: bi,
5930
- timestamp_full: xi,
5931
- next_run: wi,
5932
- money: Ti,
5933
- ref_link: Oi,
5934
- url: ea,
5935
- email: na,
5936
- phone: oa,
5937
- number: da,
5938
- code: pa,
5939
- link: ga,
5940
- json: Ca,
5941
- markdown: Da,
5942
- password_mask: ja,
5943
- rich_text_preview: Na,
5897
+ var Va = {
5898
+ text: ui,
5899
+ bool_pill: di,
5900
+ badge: gi,
5901
+ status_pill: yi,
5902
+ tag_list: Si,
5903
+ time_ago: Ci,
5904
+ timestamp_full: wi,
5905
+ next_run: Di,
5906
+ money: Oi,
5907
+ ref_link: ji,
5908
+ url: ra,
5909
+ email: aa,
5910
+ phone: la,
5911
+ number: ma,
5912
+ code: ga,
5913
+ link: ya,
5914
+ json: Ea,
5915
+ markdown: Aa,
5916
+ password_mask: Pa,
5917
+ rich_text_preview: Ia,
5944
5918
  multilang_inline: (e) => {
5945
5919
  let { field: t, locale: n } = e, r = t.type === "multilang_text";
5946
5920
  return (e) => {
5947
- let t = La(Ia(e), n);
5921
+ let t = Ba(za(e), n);
5948
5922
  if (!t) return r ? /* @__PURE__ */ B("p", {
5949
- style: Fa,
5923
+ style: Ra,
5950
5924
  children: "—"
5951
5925
  }) : /* @__PURE__ */ B("span", {
5952
- style: Pa,
5926
+ style: La,
5953
5927
  children: "—"
5954
5928
  });
5955
5929
  let [i, a] = t;
5956
5930
  return r ? /* @__PURE__ */ B("p", {
5957
- style: Fa,
5931
+ style: Ra,
5958
5932
  lang: i,
5959
5933
  dir: "auto",
5960
5934
  children: a
5961
5935
  }) : /* @__PURE__ */ B("span", {
5962
- style: Pa,
5936
+ style: La,
5963
5937
  lang: i,
5964
5938
  dir: "auto",
5965
5939
  children: a
@@ -5967,53 +5941,53 @@ var Ra = {
5967
5941
  };
5968
5942
  }
5969
5943
  };
5970
- Object.keys(Ra).sort();
5971
- function za(e) {
5972
- let t = e.field.display?.widget ?? "text", n = Ra[t];
5944
+ Object.keys(Va).sort();
5945
+ function Ha(e) {
5946
+ let t = e.field.display?.widget ?? "text", n = Va[t];
5973
5947
  if (!n) throw Error(`resolveCellRenderer: no factory registered for widget "${t}" (field "${e.fieldName}"). The engine must stamp a smart default at YAML-load time; an unknown widget here indicates an out-of-sync allow-list.`);
5974
5948
  return n(e);
5975
5949
  }
5976
5950
  //#endregion
5977
5951
  //#region src/components/fields/index.tsx
5978
- var Ba = {
5952
+ var Ua = {
5979
5953
  string: vn,
5980
5954
  text: yn,
5981
- rich_text: ii,
5982
- int: Ln,
5983
- float: Ln,
5984
- decimal: Ln,
5985
- bool: Pn,
5986
- timestamp: Nn,
5987
- date: Nn,
5988
- time: Nn,
5955
+ rich_text: si,
5956
+ int: Bn,
5957
+ float: Bn,
5958
+ decimal: Bn,
5959
+ bool: Ln,
5960
+ timestamp: In,
5961
+ date: In,
5962
+ time: In,
5989
5963
  enum: xn,
5990
5964
  email: Sn,
5991
5965
  url: Cn,
5992
5966
  phone: wn,
5993
5967
  uuid: vn,
5994
5968
  bytes: vn,
5995
- ref: Vn,
5996
- json: Gn,
5969
+ ref: Wn,
5970
+ json: Jn,
5997
5971
  tags: vn,
5998
- string_array: ir,
5999
- int_array: or,
6000
- uuid_array: ir,
6001
- multilang: qn,
6002
- multilang_text: Yn,
6003
- structure: Xn,
6004
- secret: er,
6005
- password: nr
5972
+ string_array: sr,
5973
+ int_array: lr,
5974
+ uuid_array: sr,
5975
+ multilang: Xn,
5976
+ multilang_text: Qn,
5977
+ structure: $n,
5978
+ secret: rr,
5979
+ password: ar
6006
5980
  };
6007
- for (let e of gn) if (!Ba[e]) throw Error(`editRegistry: missing entry for FieldType "${e}". The TS union (types/fieldType.ts) and editRegistry must stay in sync with golang/internal/engine/types.go.`);
6008
- function Va(e) {
6009
- if (e.field.type === "json" && e.field.structure) return /* @__PURE__ */ B(Xn, { ...e });
5981
+ for (let e of gn) if (!Ua[e]) throw Error(`editRegistry: missing entry for FieldType "${e}". The TS union (types/fieldType.ts) and editRegistry must stay in sync with golang/internal/engine/types.go.`);
5982
+ function Wa(e) {
5983
+ if (e.field.type === "json" && e.field.structure) return /* @__PURE__ */ B($n, { ...e });
6010
5984
  if (e.mode === "edit") {
6011
- let t = Ba[e.field.type];
5985
+ let t = Ua[e.field.type];
6012
5986
  if (!t) throw Error(`renderField: no edit-mode renderer for FieldType "${e.field.type}" (field "${e.fieldName}"). editRegistry must be total over FieldType; check types/fieldType.ts and components/fields/index.tsx.`);
6013
5987
  return /* @__PURE__ */ B(t, { ...e });
6014
5988
  }
6015
5989
  if (!e.field.display?.widget) throw Error(`renderField: display mode requires a non-empty field.display.widget (field "${e.fieldName}", type "${e.field.type}"). The engine must stamp a smart default; an empty widget here means the field bypassed ResolveDefaultWidgets.`);
6016
- return za({
5990
+ return Ha({
6017
5991
  field: e.field,
6018
5992
  fieldName: e.fieldName,
6019
5993
  surface: e.surface ?? "detail",
@@ -6026,26 +6000,26 @@ function Va(e) {
6026
6000
  }
6027
6001
  //#endregion
6028
6002
  //#region src/hooks/useUserLocale.ts
6029
- var Ha = "en";
6030
- function Ua() {
6003
+ var Ga = "en";
6004
+ function Ka() {
6031
6005
  if (typeof navigator > "u") return;
6032
6006
  let e = navigator.language;
6033
6007
  if (e) return e.split("-")[0] || void 0;
6034
6008
  }
6035
- function Wa() {
6009
+ function qa() {
6036
6010
  let e = kt((e) => e.user), { data: t } = At(), n = e?.language;
6037
6011
  if (n && n.trim()) return n;
6038
6012
  let r = t?.languages?.[0]?.code;
6039
- return r && r.trim() ? r : Ua() || Ha;
6013
+ return r && r.trim() ? r : Ka() || Ga;
6040
6014
  }
6041
6015
  //#endregion
6042
6016
  //#region src/components/primitives/dataTableStyles.ts
6043
- var Ga = {
6017
+ var Ja = {
6044
6018
  width: "100%",
6045
6019
  fontSize: 12.5,
6046
6020
  borderCollapse: "separate",
6047
6021
  borderSpacing: 0
6048
- }, Ka = {
6022
+ }, Ya = {
6049
6023
  height: 30,
6050
6024
  padding: "0 12px",
6051
6025
  textAlign: "left",
@@ -6053,13 +6027,11 @@ var Ga = {
6053
6027
  fontSize: 11,
6054
6028
  color: "var(--text-3)",
6055
6029
  borderBottom: "1px solid var(--divider)"
6056
- }, qa = {
6030
+ }, Xa = {
6057
6031
  padding: "6px 12px",
6058
6032
  borderBottom: "1px solid var(--divider)",
6059
6033
  color: "var(--text-2)",
6060
6034
  verticalAlign: "middle"
6061
6035
  };
6062
6036
  //#endregion
6063
- export { bt as $, un as A, ze as At, nn as B, be as Bt, zn as C, Pe as Ct, _n as D, Ue as Dt, Tn as E, Re as Et, sn as F, Te as Ft, kt as G, se as Gt, Gt as H, he as Ht, en as I, we as It, yt as J, J as Jt, Ot as K, oe as Kt, $t as L, Ce as Lt, rn as M, Z as Mt, an as N, He as Nt, hn as O, Ve as Ot, dn as P, Ee as Pt, Ct as Q, ae as Qt, fn as R, Se as Rt, Bn as S, We as St, En as T, Be as Tt, Xt as U, me as Ut, Zt as V, _e as Vt, At as W, ce as Wt, Tt as X, K as Xt, Dt as Y, q as Yt, Et as Z, G as Zt, mr as _, it as _t, Va as a, st as at, ur as b, ot as bt, ni as c, $e as ct, qr as d, Ke as dt, _t as et, Kr as f, et as ft, wr as g, at as gt, Tr as h, nt as ht, Wa as i, Ge as it, tn as j, ke as jt, cn as k, Ne as kt, Hr as l, tt as lt, Er as m, Q as mt, Ka as n, wt as nt, za as o, ct as ot, Gr as p, ut as pt, gt as q, Y as qt, Ga as r, xt as rt, ti as s, lt as st, qa as t, vt as tt, Wr as u, Ze as ut, pr as v, rt as vt, Rn as w, De as wt, cr as x, Xe as xt, lr as y, Qe as yt, on as z, xe as zt };
6064
-
6065
- //# sourceMappingURL=dataTableStyles-BwnbXviH.js.map
6037
+ export { bt as $, un as A, Ne as At, nn as B, xe as Bt, Hn as C, We as Ct, _n as D, Re as Dt, Tn as E, Be as Et, sn as F, Ee as Ft, kt as G, se as Gt, Gt as H, _e as Ht, en as I, Te as It, yt as J, ie as Jt, Ot as K, oe as Kt, $t as L, we as Lt, rn as M, ke as Mt, an as N, X as Nt, hn as O, Ue as Ot, dn as P, He as Pt, Ct as Q, K as Qt, fn as R, Ce as Rt, Un as S, Z as St, Dn as T, De as Tt, Xt as U, he as Ut, Zt as V, be as Vt, At as W, me as Wt, Tt as X, J as Xt, Dt as Y, Y as Yt, Et as Z, q as Zt, _r as _, it as _t, Wa as a, st as at, pr as b, ot as bt, ai as c, $e as ct, Xr as d, Ke as dt, _t as et, Yr as f, et as ft, Dr as g, at as gt, Or as h, nt as ht, qa as i, Ge as it, tn as j, ze as jt, cn as k, Ve as kt, Gr as l, tt as lt, kr as m, Q as mt, Ya as n, wt as nt, Ha as o, ct as ot, Jr as p, ut as pt, gt as q, ae as qt, Ja as r, xt as rt, ii as s, lt as st, Xa as t, vt as tt, qr as u, Ze as ut, gr as v, rt as vt, Vn as w, Pe as wt, dr as x, Xe as xt, fr as y, Qe as yt, on as z, Se as zt };