@declarion/react 0.1.80 → 0.1.82

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 (51) hide show
  1. package/dist-lib/{DraggableChildrenTable-CcXR8Vm6.js → DraggableChildrenTable-XKJWMb1S.js} +2 -2
  2. package/dist-lib/{DraggableChildrenTable-CcXR8Vm6.js.map → DraggableChildrenTable-XKJWMb1S.js.map} +1 -1
  3. package/dist-lib/{Grid-CseTLMLv.js → Grid-By_Ere-W.js} +2 -2
  4. package/dist-lib/{Grid-CseTLMLv.js.map → Grid-By_Ere-W.js.map} +1 -1
  5. package/dist-lib/{JsonEditor-Tew1oNqZ.js → JsonEditor-CexL5HXN.js} +17 -15
  6. package/dist-lib/JsonEditor-CexL5HXN.js.map +1 -0
  7. package/dist-lib/api/events.d.ts +5 -0
  8. package/dist-lib/components/fields/BoolField.d.ts +1 -1
  9. package/dist-lib/components/fields/EmailField.d.ts +1 -1
  10. package/dist-lib/components/fields/EnumField.d.ts +1 -1
  11. package/dist-lib/components/fields/IntArrayField.d.ts +1 -1
  12. package/dist-lib/components/fields/JsonEditor.d.ts +2 -1
  13. package/dist-lib/components/fields/JsonField.d.ts +1 -1
  14. package/dist-lib/components/fields/MultilangField.d.ts +1 -1
  15. package/dist-lib/components/fields/MultilangTextField.d.ts +1 -1
  16. package/dist-lib/components/fields/NumberField.d.ts +1 -1
  17. package/dist-lib/components/fields/PasswordField.d.ts +1 -1
  18. package/dist-lib/components/fields/PhoneField.d.ts +1 -1
  19. package/dist-lib/components/fields/RefField.d.ts +1 -1
  20. package/dist-lib/components/fields/SecretField.d.ts +1 -1
  21. package/dist-lib/components/fields/StringArrayField.d.ts +1 -1
  22. package/dist-lib/components/fields/StringField.d.ts +1 -1
  23. package/dist-lib/components/fields/TextField.d.ts +1 -1
  24. package/dist-lib/components/fields/TimestampField.d.ts +1 -1
  25. package/dist-lib/components/fields/UrlField.d.ts +1 -1
  26. package/dist-lib/components/fields/index.d.ts +2 -0
  27. package/dist-lib/components/file-widgets/host.d.ts +2 -0
  28. package/dist-lib/components/file-widgets/types.d.ts +1 -0
  29. package/dist-lib/components/pages/list/DataCell.d.ts +7 -0
  30. package/dist-lib/components/pages/list/ListBulkBar.d.ts +27 -0
  31. package/dist-lib/components/pages/list/ListHeader.d.ts +23 -0
  32. package/dist-lib/components/pages/list/RowActionsCell.d.ts +38 -0
  33. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +6 -0
  34. package/dist-lib/components/pages/list/columns.d.ts +42 -0
  35. package/dist-lib/components/pages/list/filter-meta.d.ts +9 -0
  36. package/dist-lib/components/primitives/BoolToggle.d.ts +3 -1
  37. package/dist-lib/components/primitives/Fields.d.ts +12 -3
  38. package/dist-lib/index.js +4189 -4066
  39. package/dist-lib/index.js.map +1 -1
  40. package/dist-lib/lib/action-dispatch.d.ts +7 -0
  41. package/dist-lib/stores/realtime.d.ts +9 -0
  42. package/dist-lib/types/schema.d.ts +11 -1
  43. package/dist-lib/{useUserLocale-D9wc5kzQ.js → useUserLocale-CSS6fwi8.js} +1110 -1003
  44. package/dist-lib/useUserLocale-CSS6fwi8.js.map +1 -0
  45. package/dist-lib/{value-FIp50R1-.js → value-DgzPSFZM.js} +149 -196
  46. package/dist-lib/value-DgzPSFZM.js.map +1 -0
  47. package/package.json +1 -1
  48. package/dist-lib/JsonEditor-Tew1oNqZ.js.map +0 -1
  49. package/dist-lib/components/shared/RowActionItem.d.ts +0 -11
  50. package/dist-lib/useUserLocale-D9wc5kzQ.js.map +0 -1
  51. package/dist-lib/value-FIp50R1-.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { S as e, _ as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, k as l, l as u, m as d, n as f, o as p, p as m, s as h, t as g, u as _, v as ee, x as v } from "./value-FIp50R1-.js";
1
+ import { S as e, _ as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, k as l, l as u, m as d, n as f, o as p, p as m, s as h, t as g, u as _, v as ee, x as v } from "./value-DgzPSFZM.js";
2
2
  import { a as y, i as b, o as x, r as S, s as C, t as w } from "./rich-text-CaQ6-8Gx.js";
3
3
  import { Suspense as T, forwardRef as E, lazy as D, useCallback as O, useEffect as k, useLayoutEffect as A, useMemo as j, useRef as M, useState as N } from "react";
4
4
  import { useQuery as P } from "@tanstack/react-query";
@@ -6,15 +6,15 @@ import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
6
6
  import { createPortal as R } from "react-dom";
7
7
  import { create as z } from "zustand";
8
8
  import { clsx as B } from "clsx";
9
- import { twMerge as te } from "tailwind-merge";
10
- import { formatDistanceStrict as V, formatDistanceToNowStrict as ne, formatISO as H } from "date-fns";
9
+ import { twMerge as V } from "tailwind-merge";
10
+ import { formatDistanceStrict as H, formatDistanceToNowStrict as te, formatISO as U } from "date-fns";
11
11
  //#region src/components/primitives/cx.ts
12
- function re(...e) {
12
+ function ne(...e) {
13
13
  return e.filter(Boolean).join(" ");
14
14
  }
15
15
  //#endregion
16
16
  //#region src/components/primitives/Icons.tsx
17
- var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__PURE__ */ I("svg", {
17
+ var W = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__PURE__ */ I("svg", {
18
18
  width: n,
19
19
  height: n,
20
20
  viewBox: "0 0 24 24",
@@ -27,14 +27,14 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
27
27
  style: i,
28
28
  "aria-hidden": "true",
29
29
  children: e
30
- }), W = {
31
- home: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M3 10.5 12 3l9 7.5" }), /* @__PURE__ */ I("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" })] })),
32
- inbox: U(/* @__PURE__ */ L(F, { children: [
30
+ }), G = {
31
+ home: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M3 10.5 12 3l9 7.5" }), /* @__PURE__ */ I("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" })] })),
32
+ inbox: W(/* @__PURE__ */ L(F, { children: [
33
33
  /* @__PURE__ */ I("path", { d: "M4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5" }),
34
34
  /* @__PURE__ */ I("path", { d: "M4 13h5l1 2h4l1-2h5" }),
35
35
  /* @__PURE__ */ I("path", { d: "M4 13 7 5a2 2 0 0 1 2-1h6a2 2 0 0 1 2 1l3 8" })
36
36
  ] })),
37
- flow: U(/* @__PURE__ */ L(F, { children: [
37
+ flow: W(/* @__PURE__ */ L(F, { children: [
38
38
  /* @__PURE__ */ I("circle", {
39
39
  cx: "6",
40
40
  cy: "6",
@@ -57,12 +57,12 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
57
57
  }),
58
58
  /* @__PURE__ */ I("path", { d: "M8 6h8M6 8v8M18 8v8M8 18h8" })
59
59
  ] })),
60
- pipeline: U(/* @__PURE__ */ L(F, { children: [
60
+ pipeline: W(/* @__PURE__ */ L(F, { children: [
61
61
  /* @__PURE__ */ I("path", { d: "M3 6h13l5 3-5 3H3z" }),
62
62
  /* @__PURE__ */ I("path", { d: "M3 13h9" }),
63
63
  /* @__PURE__ */ I("path", { d: "M3 18h13" })
64
64
  ] })),
65
- leads: U(/* @__PURE__ */ L(F, { children: [
65
+ leads: W(/* @__PURE__ */ L(F, { children: [
66
66
  /* @__PURE__ */ I("circle", {
67
67
  cx: "9",
68
68
  cy: "8",
@@ -71,13 +71,13 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
71
71
  /* @__PURE__ */ I("path", { d: "M3 20c0-3 3-5 6-5s6 2 6 5" }),
72
72
  /* @__PURE__ */ I("path", { d: "M17 10l2 2 4-4" })
73
73
  ] })),
74
- company: U(/* @__PURE__ */ L(F, { children: [
74
+ company: W(/* @__PURE__ */ L(F, { children: [
75
75
  /* @__PURE__ */ I("path", { d: "M4 21V6a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v15" }),
76
76
  /* @__PURE__ */ I("path", { d: "M15 21V11h4a1 1 0 0 1 1 1v9" }),
77
77
  /* @__PURE__ */ I("path", { d: "M7 9h2M7 13h2M7 17h2M11 9h1M11 13h1M11 17h1" })
78
78
  ] })),
79
- activity: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M3 12h4l3-8 4 16 3-8h4" }) })),
80
- users: U(/* @__PURE__ */ L(F, { children: [
79
+ activity: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M3 12h4l3-8 4 16 3-8h4" }) })),
80
+ users: W(/* @__PURE__ */ L(F, { children: [
81
81
  /* @__PURE__ */ I("circle", {
82
82
  cx: "9",
83
83
  cy: "8",
@@ -87,19 +87,19 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
87
87
  /* @__PURE__ */ I("path", { d: "M16 3.5a3 3 0 0 1 0 6" }),
88
88
  /* @__PURE__ */ I("path", { d: "M22 20c0-2.5-1.5-5-4-6" })
89
89
  ] })),
90
- tenant: U(/* @__PURE__ */ L(F, { children: [
90
+ tenant: W(/* @__PURE__ */ L(F, { children: [
91
91
  /* @__PURE__ */ I("path", { d: "M3 21V9l6-4 6 4M3 21h18" }),
92
92
  /* @__PURE__ */ I("path", { d: "M15 21V9" }),
93
93
  /* @__PURE__ */ I("path", { d: "M19 21V13l2-2" }),
94
94
  /* @__PURE__ */ I("path", { d: "M7 13h2M7 17h2M11 13h1M11 17h1" })
95
95
  ] })),
96
- shield: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }) })),
97
- key: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
96
+ shield: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }) })),
97
+ key: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
98
98
  cx: "8",
99
99
  cy: "14",
100
100
  r: "4"
101
101
  }), /* @__PURE__ */ I("path", { d: "m11 11 9-9M17 5l3 3M15 7l3 3" })] })),
102
- group: U(/* @__PURE__ */ L(F, { children: [
102
+ group: W(/* @__PURE__ */ L(F, { children: [
103
103
  /* @__PURE__ */ I("circle", {
104
104
  cx: "8",
105
105
  cy: "10",
@@ -113,7 +113,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
113
113
  /* @__PURE__ */ I("path", { d: "M2 20c0-3 2.5-5 6-5s6 2 6 5" }),
114
114
  /* @__PURE__ */ I("path", { d: "M15 16c2-1 4-1 6 0" })
115
115
  ] })),
116
- idp: U(/* @__PURE__ */ L(F, { children: [
116
+ idp: W(/* @__PURE__ */ L(F, { children: [
117
117
  /* @__PURE__ */ I("rect", {
118
118
  x: "3",
119
119
  y: "5",
@@ -124,24 +124,24 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
124
124
  /* @__PURE__ */ I("path", { d: "M3 10h18" }),
125
125
  /* @__PURE__ */ I("path", { d: "M7 15h4" })
126
126
  ] })),
127
- audit: U(/* @__PURE__ */ L(F, { children: [
127
+ audit: W(/* @__PURE__ */ L(F, { children: [
128
128
  /* @__PURE__ */ I("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }),
129
129
  /* @__PURE__ */ I("path", { d: "M14 3v6h6" }),
130
130
  /* @__PURE__ */ I("path", { d: "M8 13h8M8 17h5" })
131
131
  ] })),
132
- log: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
132
+ log: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
133
133
  x: "3",
134
134
  y: "4",
135
135
  width: "18",
136
136
  height: "16",
137
137
  rx: "2"
138
138
  }), /* @__PURE__ */ I("path", { d: "M7 9h10M7 13h10M7 17h6" })] })),
139
- handlers: U(/* @__PURE__ */ L(F, { children: [
139
+ handlers: W(/* @__PURE__ */ L(F, { children: [
140
140
  /* @__PURE__ */ I("path", { d: "M10 4 4 8v8l6 4 6-4" }),
141
141
  /* @__PURE__ */ I("path", { d: "M16 4l4 2.5v8L16 17" }),
142
142
  /* @__PURE__ */ I("path", { d: "m10 12 6-3.5" })
143
143
  ] })),
144
- jobs: U(/* @__PURE__ */ L(F, { children: [
144
+ jobs: W(/* @__PURE__ */ L(F, { children: [
145
145
  /* @__PURE__ */ I("rect", {
146
146
  x: "3",
147
147
  y: "6",
@@ -153,7 +153,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
153
153
  /* @__PURE__ */ I("path", { d: "M12 10v5" }),
154
154
  /* @__PURE__ */ I("path", { d: "M10 12h4" })
155
155
  ] })),
156
- sched: U(/* @__PURE__ */ L(F, { children: [
156
+ sched: W(/* @__PURE__ */ L(F, { children: [
157
157
  /* @__PURE__ */ I("circle", {
158
158
  cx: "12",
159
159
  cy: "13",
@@ -162,7 +162,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
162
162
  /* @__PURE__ */ I("path", { d: "M12 9v4l3 2" }),
163
163
  /* @__PURE__ */ I("path", { d: "M9 3h6" })
164
164
  ] })),
165
- entity: U(/* @__PURE__ */ L(F, { children: [
165
+ entity: W(/* @__PURE__ */ L(F, { children: [
166
166
  /* @__PURE__ */ I("ellipse", {
167
167
  cx: "12",
168
168
  cy: "6",
@@ -172,26 +172,26 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
172
172
  /* @__PURE__ */ I("path", { d: "M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6" }),
173
173
  /* @__PURE__ */ I("path", { d: "M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6" })
174
174
  ] })),
175
- field: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M4 6h16M4 12h10M4 18h16" }) })),
176
- action: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
177
- code: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m8 8-4 4 4 4M16 8l4 4-4 4M14 4l-4 16" }) })),
178
- search: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
175
+ field: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M4 6h16M4 12h10M4 18h16" }) })),
176
+ action: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
177
+ code: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m8 8-4 4 4 4M16 8l4 4-4 4M14 4l-4 16" }) })),
178
+ search: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
179
179
  cx: "11",
180
180
  cy: "11",
181
181
  r: "7"
182
182
  }), /* @__PURE__ */ I("path", { d: "m20 20-3.5-3.5" })] })),
183
- filter: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M3 5h18l-7 9v6l-4-2v-4z" }) })),
184
- columns: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
183
+ filter: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M3 5h18l-7 9v6l-4-2v-4z" }) })),
184
+ columns: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
185
185
  x: "3",
186
186
  y: "4",
187
187
  width: "18",
188
188
  height: "16",
189
189
  rx: "1"
190
190
  }), /* @__PURE__ */ I("path", { d: "M9 4v16M15 4v16" })] })),
191
- plus: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 5v14M5 12h14" }) })),
192
- minus: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M5 12h14" }) })),
193
- sort: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M8 4v16l-3-3M8 4l3 3" }), /* @__PURE__ */ I("path", { d: "M16 20V4l-3 3M16 20l3-3" })] })),
194
- more: U(/* @__PURE__ */ L(F, { children: [
191
+ plus: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 5v14M5 12h14" }) })),
192
+ minus: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M5 12h14" }) })),
193
+ sort: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M8 4v16l-3-3M8 4l3 3" }), /* @__PURE__ */ I("path", { d: "M16 20V4l-3 3M16 20l3-3" })] })),
194
+ more: W(/* @__PURE__ */ L(F, { children: [
195
195
  /* @__PURE__ */ I("circle", {
196
196
  cx: "5",
197
197
  cy: "12",
@@ -208,15 +208,15 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
208
208
  r: "1.2"
209
209
  })
210
210
  ] }), { sw: 2 }),
211
- x: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M18 6 6 18M6 6l12 12" }) })),
212
- check: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m5 12 5 5L20 7" }) }), { sw: 2 }),
213
- down: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m6 9 6 6 6-6" }) })),
214
- up: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m6 15 6-6 6 6" }) })),
215
- right: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m9 6 6 6-6 6" }) })),
216
- left: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m15 6-6 6 6 6" }) })),
217
- cheveron: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m8 10 4 4 4-4" }) })),
218
- back: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M19 12H5M12 19l-7-7 7-7" }) })),
219
- calendar: U(/* @__PURE__ */ L(F, { children: [
211
+ x: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M18 6 6 18M6 6l12 12" }) })),
212
+ check: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m5 12 5 5L20 7" }) }), { sw: 2 }),
213
+ down: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m6 9 6 6 6-6" }) })),
214
+ up: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m6 15 6-6 6 6" }) })),
215
+ right: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m9 6 6 6-6 6" }) })),
216
+ left: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m15 6-6 6 6 6" }) })),
217
+ cheveron: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "m8 10 4 4 4-4" }) })),
218
+ back: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M19 12H5M12 19l-7-7 7-7" }) })),
219
+ calendar: W(/* @__PURE__ */ L(F, { children: [
220
220
  /* @__PURE__ */ I("rect", {
221
221
  x: "3",
222
222
  y: "5",
@@ -227,86 +227,86 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
227
227
  /* @__PURE__ */ I("path", { d: "M3 10h18" }),
228
228
  /* @__PURE__ */ I("path", { d: "M8 3v4M16 3v4" })
229
229
  ] })),
230
- clock: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
230
+ clock: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
231
231
  cx: "12",
232
232
  cy: "12",
233
233
  r: "9"
234
234
  }), /* @__PURE__ */ I("path", { d: "M12 7v5l3 2" })] })),
235
- email: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
235
+ email: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
236
236
  x: "3",
237
237
  y: "5",
238
238
  width: "18",
239
239
  height: "14",
240
240
  rx: "2"
241
241
  }), /* @__PURE__ */ I("path", { d: "m3 7 9 6 9-6" })] })),
242
- link: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M10 14a5 5 0 0 0 7 0l3-3a5 5 0 1 0-7-7l-1 1" }), /* @__PURE__ */ I("path", { d: "M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 1 0 7 7l1-1" })] })),
243
- hash: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M5 9h14M5 15h14M10 3 8 21M16 3l-2 18" }) })),
244
- eye: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ I("circle", {
242
+ link: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M10 14a5 5 0 0 0 7 0l3-3a5 5 0 1 0-7-7l-1 1" }), /* @__PURE__ */ I("path", { d: "M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 1 0 7 7l1-1" })] })),
243
+ hash: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M5 9h14M5 15h14M10 3 8 21M16 3l-2 18" }) })),
244
+ eye: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ I("circle", {
245
245
  cx: "12",
246
246
  cy: "12",
247
247
  r: "3"
248
248
  })] })),
249
- eyeOff: U(/* @__PURE__ */ L(F, { children: [
249
+ eyeOff: W(/* @__PURE__ */ L(F, { children: [
250
250
  /* @__PURE__ */ I("path", { d: "M3 3l18 18" }),
251
251
  /* @__PURE__ */ I("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" }),
252
252
  /* @__PURE__ */ I("path", { d: "M9.9 9.9a3 3 0 0 0 4.2 4.2" })
253
253
  ] })),
254
- copy: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
254
+ copy: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
255
255
  x: "9",
256
256
  y: "9",
257
257
  width: "11",
258
258
  height: "11",
259
259
  rx: "2"
260
260
  }), /* @__PURE__ */ I("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })] })),
261
- trash: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }) })),
262
- edit: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 20h4l11-11-4-4L4 16z" }), /* @__PURE__ */ I("path", { d: "m13 6 4 4" })] })),
263
- save: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }), /* @__PURE__ */ I("path", { d: "M7 3v5h8V3M8 15h8v6H8z" })] })),
264
- refresh: U(/* @__PURE__ */ L(F, { children: [
261
+ trash: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }) })),
262
+ edit: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 20h4l11-11-4-4L4 16z" }), /* @__PURE__ */ I("path", { d: "m13 6 4 4" })] })),
263
+ save: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }), /* @__PURE__ */ I("path", { d: "M7 3v5h8V3M8 15h8v6H8z" })] })),
264
+ refresh: W(/* @__PURE__ */ L(F, { children: [
265
265
  /* @__PURE__ */ I("path", { d: "M3 12a9 9 0 0 1 15-6.7L21 8" }),
266
266
  /* @__PURE__ */ I("path", { d: "M21 3v5h-5" }),
267
267
  /* @__PURE__ */ I("path", { d: "M21 12a9 9 0 0 1-15 6.7L3 16" }),
268
268
  /* @__PURE__ */ I("path", { d: "M3 21v-5h5" })
269
269
  ] })),
270
- download: U(/* @__PURE__ */ L(F, { children: [
270
+ download: W(/* @__PURE__ */ L(F, { children: [
271
271
  /* @__PURE__ */ I("path", { d: "M12 3v12" }),
272
272
  /* @__PURE__ */ I("path", { d: "m7 10 5 5 5-5" }),
273
273
  /* @__PURE__ */ I("path", { d: "M5 20h14" })
274
274
  ] })),
275
- upload: U(/* @__PURE__ */ L(F, { children: [
275
+ upload: W(/* @__PURE__ */ L(F, { children: [
276
276
  /* @__PURE__ */ I("path", { d: "M12 15V3" }),
277
277
  /* @__PURE__ */ I("path", { d: "m7 8 5-5 5 5" }),
278
278
  /* @__PURE__ */ I("path", { d: "M5 20h14" })
279
279
  ] })),
280
- paperclip: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 4h7l9 9-7 7-9-9z" }), /* @__PURE__ */ I("circle", {
280
+ paperclip: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 4h7l9 9-7 7-9-9z" }), /* @__PURE__ */ I("circle", {
282
282
  cx: "8",
283
283
  cy: "8",
284
284
  r: "1.5"
285
285
  })] })),
286
- bolt: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
287
- bell: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16z" }), /* @__PURE__ */ I("path", { d: "M10 20a2 2 0 0 0 4 0" })] })),
288
- ai: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("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__ */ I("circle", {
286
+ bolt: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
287
+ bell: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16z" }), /* @__PURE__ */ I("path", { d: "M10 20a2 2 0 0 0 4 0" })] })),
288
+ ai: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("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__ */ I("circle", {
289
289
  cx: "12",
290
290
  cy: "12",
291
291
  r: "3.5"
292
292
  })] })),
293
- sparkle: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4" }), /* @__PURE__ */ I("path", { d: "m7 7 2 2M15 15l2 2M17 7l-2 2M9 15l-2 2" })] })),
294
- command: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M4 6h16M4 12h16M4 18h16" }) })),
296
- dot: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("circle", {
293
+ sparkle: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4" }), /* @__PURE__ */ I("path", { d: "m7 7 2 2M15 15l2 2M17 7l-2 2M9 15l-2 2" })] })),
294
+ command: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M4 6h16M4 12h16M4 18h16" }) })),
296
+ dot: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("circle", {
297
297
  cx: "12",
298
298
  cy: "12",
299
299
  r: "4",
300
300
  fill: "currentColor"
301
301
  }) })),
302
- globe: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
302
+ globe: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
303
303
  cx: "12",
304
304
  cy: "12",
305
305
  r: "9"
306
306
  }), /* @__PURE__ */ I("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })),
307
- folder: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }), /* @__PURE__ */ I("path", { d: "M14 3v6h6" })] })),
309
- branch: U(/* @__PURE__ */ L(F, { children: [
307
+ folder: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }), /* @__PURE__ */ I("path", { d: "M14 3v6h6" })] })),
309
+ branch: W(/* @__PURE__ */ L(F, { children: [
310
310
  /* @__PURE__ */ I("circle", {
311
311
  cx: "6",
312
312
  cy: "6",
@@ -325,24 +325,24 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
325
325
  /* @__PURE__ */ I("path", { d: "M6 8v8" }),
326
326
  /* @__PURE__ */ I("path", { d: "M18 10c0 4-4 4-6 6" })
327
327
  ] })),
328
- sun: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
328
+ sun: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
329
329
  cx: "12",
330
330
  cy: "12",
331
331
  r: "4"
332
332
  }), /* @__PURE__ */ I("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" })] })),
333
- moon: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M20 14A8 8 0 0 1 10 4a8 8 0 1 0 10 10z" }) })),
334
- settings: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
333
+ moon: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M20 14A8 8 0 0 1 10 4a8 8 0 1 0 10 10z" }) })),
334
+ settings: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
335
335
  cx: "12",
336
336
  cy: "12",
337
337
  r: "3"
338
338
  }), /* @__PURE__ */ I("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" })] })),
339
- logout: U(/* @__PURE__ */ L(F, { children: [
339
+ logout: W(/* @__PURE__ */ L(F, { children: [
340
340
  /* @__PURE__ */ I("path", { d: "M14 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
341
341
  /* @__PURE__ */ I("path", { d: "M10 17 5 12l5-5" }),
342
342
  /* @__PURE__ */ I("path", { d: "M5 12h12" })
343
343
  ] })),
344
- loader: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: U(/* @__PURE__ */ L(F, { children: [
344
+ loader: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: W(/* @__PURE__ */ L(F, { children: [
346
346
  /* @__PURE__ */ I("rect", {
347
347
  x: "4",
348
348
  y: "4",
@@ -372,40 +372,40 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
372
372
  rx: "1"
373
373
  })
374
374
  ] })),
375
- star: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "m12 3 10 18H2z" }), /* @__PURE__ */ I("path", { d: "M12 10v5M12 18v.5" })] })),
377
- info: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
375
+ star: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("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: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "m12 3 10 18H2z" }), /* @__PURE__ */ I("path", { d: "M12 10v5M12 18v.5" })] })),
377
+ info: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
378
378
  cx: "12",
379
379
  cy: "12",
380
380
  r: "9"
381
381
  }), /* @__PURE__ */ I("path", { d: "M12 11v6M12 8v.5" })] })),
382
- building: U(/* @__PURE__ */ L(F, { children: [
382
+ building: W(/* @__PURE__ */ L(F, { children: [
383
383
  /* @__PURE__ */ I("path", { d: "M4 21V3h12v18M4 21h16" }),
384
384
  /* @__PURE__ */ I("path", { d: "M16 9h4v12" }),
385
385
  /* @__PURE__ */ I("path", { d: "M7 6h2M7 10h2M7 14h2M11 6h2M11 10h2M11 14h2" })
386
386
  ] })),
387
- device: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
387
+ device: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
388
388
  x: "5",
389
389
  y: "3",
390
390
  width: "14",
391
391
  height: "18",
392
392
  rx: "2"
393
393
  }), /* @__PURE__ */ I("path", { d: "M10 18h4" })] })),
394
- arrowUp: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 19V5M5 12l7-7 7 7" }) })),
395
- arrowDown: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 5v14M5 12l7 7 7-7" }) })),
396
- external: U(/* @__PURE__ */ L(F, { children: [
394
+ arrowUp: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 19V5M5 12l7-7 7 7" }) })),
395
+ arrowDown: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M12 5v14M5 12l7 7 7-7" }) })),
396
+ external: W(/* @__PURE__ */ L(F, { children: [
397
397
  /* @__PURE__ */ I("path", { d: "M14 4h6v6" }),
398
398
  /* @__PURE__ */ I("path", { d: "M20 4 10 14" }),
399
399
  /* @__PURE__ */ I("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
400
400
  ] })),
401
- dbtable: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
401
+ dbtable: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
402
402
  x: "3",
403
403
  y: "5",
404
404
  width: "18",
405
405
  height: "14",
406
406
  rx: "1"
407
407
  }), /* @__PURE__ */ I("path", { d: "M3 9h18M3 13h18M9 9v10M15 9v10" })] })),
408
- "users-round": U(/* @__PURE__ */ L(F, { children: [
408
+ "users-round": W(/* @__PURE__ */ L(F, { children: [
409
409
  /* @__PURE__ */ I("circle", {
410
410
  cx: "10",
411
411
  cy: "8",
@@ -415,12 +415,12 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
415
415
  /* @__PURE__ */ I("path", { d: "M17 4a5 5 0 0 1 0 8" }),
416
416
  /* @__PURE__ */ I("path", { d: "M22 21a6 6 0 0 0-4-5.6" })
417
417
  ] })),
418
- user: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
418
+ user: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
419
419
  cx: "12",
420
420
  cy: "7",
421
421
  r: "4"
422
422
  }), /* @__PURE__ */ I("path", { d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2" })] })),
423
- "user-plus": U(/* @__PURE__ */ L(F, { children: [
423
+ "user-plus": W(/* @__PURE__ */ L(F, { children: [
424
424
  /* @__PURE__ */ I("circle", {
425
425
  cx: "9",
426
426
  cy: "7",
@@ -429,20 +429,20 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
429
429
  /* @__PURE__ */ I("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
430
430
  /* @__PURE__ */ I("path", { d: "M19 8v6M22 11h-6" })
431
431
  ] })),
432
- "shield-check": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ I("path", { d: "m9 12 2 2 4-4" })] })),
433
- "shield-plus": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ I("path", { d: "M9 12h6M12 9v6" })] })),
434
- "key-round": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4z" }), /* @__PURE__ */ I("circle", {
432
+ "shield-check": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ I("path", { d: "m9 12 2 2 4-4" })] })),
433
+ "shield-plus": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ I("path", { d: "M9 12h6M12 9v6" })] })),
434
+ "key-round": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4z" }), /* @__PURE__ */ I("circle", {
435
435
  cx: "16.5",
436
436
  cy: "7.5",
437
437
  r: "0.5",
438
438
  fill: "currentColor"
439
439
  })] })),
440
- "list-checks": U(/* @__PURE__ */ L(F, { children: [
440
+ "list-checks": W(/* @__PURE__ */ L(F, { children: [
441
441
  /* @__PURE__ */ I("path", { d: "m3 17 2 2 4-4" }),
442
442
  /* @__PURE__ */ I("path", { d: "m3 7 2 2 4-4" }),
443
443
  /* @__PURE__ */ I("path", { d: "M13 6h8M13 12h8M13 18h8" })
444
444
  ] })),
445
- list: U(/* @__PURE__ */ L(F, { children: [
445
+ list: W(/* @__PURE__ */ L(F, { children: [
446
446
  /* @__PURE__ */ I("path", { d: "M8 6h13M8 12h13M8 18h13" }),
447
447
  /* @__PURE__ */ I("circle", {
448
448
  cx: "3.5",
@@ -463,18 +463,18 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
463
463
  fill: "currentColor"
464
464
  })
465
465
  ] })),
466
- "play-circle": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
466
+ "play-circle": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
467
467
  cx: "12",
468
468
  cy: "12",
469
469
  r: "9"
470
470
  }), /* @__PURE__ */ I("path", { d: "M10 8.5v7L16 12z" })] })),
471
- play: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M6 3 20 12 6 21z" }) })),
472
- layers: U(/* @__PURE__ */ L(F, { children: [
471
+ play: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M6 3 20 12 6 21z" }) })),
472
+ layers: W(/* @__PURE__ */ L(F, { children: [
473
473
  /* @__PURE__ */ I("path", { d: "M12 2 2 7l10 5 10-5z" }),
474
474
  /* @__PURE__ */ I("path", { d: "m2 12 10 5 10-5" }),
475
475
  /* @__PURE__ */ I("path", { d: "m2 17 10 5 10-5" })
476
476
  ] })),
477
- layout: U(/* @__PURE__ */ L(F, { children: [
477
+ layout: W(/* @__PURE__ */ L(F, { children: [
478
478
  /* @__PURE__ */ I("rect", {
479
479
  x: "3",
480
480
  y: "3",
@@ -485,7 +485,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
485
485
  /* @__PURE__ */ I("path", { d: "M3 9h18" }),
486
486
  /* @__PURE__ */ I("path", { d: "M9 21V9" })
487
487
  ] })),
488
- "layout-dashboard": U(/* @__PURE__ */ L(F, { children: [
488
+ "layout-dashboard": W(/* @__PURE__ */ L(F, { children: [
489
489
  /* @__PURE__ */ I("rect", {
490
490
  x: "3",
491
491
  y: "3",
@@ -515,7 +515,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
515
515
  rx: "1"
516
516
  })
517
517
  ] })),
518
- database: U(/* @__PURE__ */ L(F, { children: [
518
+ database: W(/* @__PURE__ */ L(F, { children: [
519
519
  /* @__PURE__ */ I("ellipse", {
520
520
  cx: "12",
521
521
  cy: "5",
@@ -525,8 +525,8 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
525
525
  /* @__PURE__ */ I("path", { d: "M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5" }),
526
526
  /* @__PURE__ */ I("path", { d: "M3 12c0 1.7 4 3 9 3s9-1.3 9-3" })
527
527
  ] })),
528
- zap: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
529
- cpu: U(/* @__PURE__ */ L(F, { children: [
528
+ zap: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
529
+ cpu: W(/* @__PURE__ */ L(F, { children: [
530
530
  /* @__PURE__ */ I("rect", {
531
531
  x: "4",
532
532
  y: "4",
@@ -542,7 +542,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
542
542
  }),
543
543
  /* @__PURE__ */ I("path", { d: "M9 2v2M15 2v2M9 20v2M15 20v2M2 9h2M2 15h2M20 9h2M20 15h2" })
544
544
  ] })),
545
- "circle-dot": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
545
+ "circle-dot": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
546
546
  cx: "12",
547
547
  cy: "12",
548
548
  r: "9"
@@ -552,7 +552,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
552
552
  r: "1.5",
553
553
  fill: "currentColor"
554
554
  })] })),
555
- "toggle-right": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
555
+ "toggle-right": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
556
556
  x: "2",
557
557
  y: "6",
558
558
  width: "20",
@@ -564,21 +564,21 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
564
564
  r: "2.5",
565
565
  fill: "currentColor"
566
566
  })] })),
567
- sliders: U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
568
- "sliders-horizontal": U(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
569
- box: U(/* @__PURE__ */ L(F, { children: [
567
+ sliders: W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
568
+ "sliders-horizontal": W(/* @__PURE__ */ I(F, { children: /* @__PURE__ */ I("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
569
+ box: W(/* @__PURE__ */ L(F, { children: [
570
570
  /* @__PURE__ */ I("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" }),
571
571
  /* @__PURE__ */ I("path", { d: "m3.3 7 8.7 5 8.7-5" }),
572
572
  /* @__PURE__ */ I("path", { d: "M12 22V12" })
573
573
  ] })),
574
- "columns-3": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
574
+ "columns-3": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("rect", {
575
575
  x: "3",
576
576
  y: "4",
577
577
  width: "18",
578
578
  height: "16",
579
579
  rx: "1"
580
580
  }), /* @__PURE__ */ I("path", { d: "M9 4v16M15 4v16" })] })),
581
- "settings-2": U(/* @__PURE__ */ L(F, { children: [
581
+ "settings-2": W(/* @__PURE__ */ L(F, { children: [
582
582
  /* @__PURE__ */ I("path", { d: "M20 7h-9M14 17H5" }),
583
583
  /* @__PURE__ */ I("circle", {
584
584
  cx: "17",
@@ -591,12 +591,12 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
591
591
  r: "3"
592
592
  })
593
593
  ] })),
594
- "file-diff": U(/* @__PURE__ */ L(F, { children: [
594
+ "file-diff": W(/* @__PURE__ */ L(F, { children: [
595
595
  /* @__PURE__ */ I("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
596
596
  /* @__PURE__ */ I("path", { d: "M14 2v6h6" }),
597
597
  /* @__PURE__ */ I("path", { d: "M12 12v6M9 15h6M9 18h6" })
598
598
  ] })),
599
- "git-branch": U(/* @__PURE__ */ L(F, { children: [
599
+ "git-branch": W(/* @__PURE__ */ L(F, { children: [
600
600
  /* @__PURE__ */ I("circle", {
601
601
  cx: "6",
602
602
  cy: "6",
@@ -615,29 +615,29 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
615
615
  /* @__PURE__ */ I("path", { d: "M6 8v8" }),
616
616
  /* @__PURE__ */ I("path", { d: "M18 10a6 6 0 0 1-6 6h-2" })
617
617
  ] })),
618
- "log-in": U(/* @__PURE__ */ L(F, { children: [
618
+ "log-in": W(/* @__PURE__ */ L(F, { children: [
619
619
  /* @__PURE__ */ I("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
620
620
  /* @__PURE__ */ I("path", { d: "m10 17 5-5-5-5" }),
621
621
  /* @__PURE__ */ I("path", { d: "M15 12H3" })
622
622
  ] })),
623
- "plus-circle": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
623
+ "plus-circle": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
624
624
  cx: "12",
625
625
  cy: "12",
626
626
  r: "9"
627
627
  }), /* @__PURE__ */ I("path", { d: "M8 12h8M12 8v8" })] })),
628
- repeat: U(/* @__PURE__ */ L(F, { children: [
628
+ repeat: W(/* @__PURE__ */ L(F, { children: [
629
629
  /* @__PURE__ */ I("path", { d: "m17 2 4 4-4 4" }),
630
630
  /* @__PURE__ */ I("path", { d: "M3 11v-1a4 4 0 0 1 4-4h14" }),
631
631
  /* @__PURE__ */ I("path", { d: "m7 22-4-4 4-4" }),
632
632
  /* @__PURE__ */ I("path", { d: "M21 13v1a4 4 0 0 1-4 4H3" })
633
633
  ] })),
634
- ban: U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
634
+ ban: W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
635
635
  cx: "12",
636
636
  cy: "12",
637
637
  r: "9"
638
638
  }), /* @__PURE__ */ I("path", { d: "m5.6 5.6 12.8 12.8" })] })),
639
- "trash-2": U(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ I("path", { d: "M10 11v6M14 11v6" })] }))
640
- }, G = E(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) {
639
+ "trash-2": W(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ I("path", { d: "M10 11v6M14 11v6" })] }))
640
+ }, K = E(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) {
641
641
  let m = {
642
642
  display: "inline-flex",
643
643
  alignItems: "center",
@@ -702,7 +702,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
702
702
  r
703
703
  ]
704
704
  });
705
- }), K = E(function({ icon: e, onClick: t, title: n, size: r = 28, active: i, disabled: a, style: o }, s) {
705
+ }), q = E(function({ icon: e, onClick: t, title: n, size: r = 28, active: i, disabled: a, style: o }, s) {
706
706
  return /* @__PURE__ */ I("button", {
707
707
  type: "button",
708
708
  ref: s,
@@ -736,7 +736,7 @@ var U = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
736
736
  });
737
737
  //#endregion
738
738
  //#region src/components/primitives/Pill.tsx
739
- function q({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style: i }) {
739
+ function J({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style: i }) {
740
740
  let a = `var(--pill-${e}-bg)`, o = `var(--pill-${e})`;
741
741
  return /* @__PURE__ */ L("span", {
742
742
  className: "num",
@@ -773,7 +773,7 @@ function q({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style:
773
773
  }
774
774
  //#endregion
775
775
  //#region src/components/primitives/Kbd.tsx
776
- function ie({ children: e }) {
776
+ function re({ children: e }) {
777
777
  return /* @__PURE__ */ I("span", {
778
778
  className: "mono",
779
779
  style: {
@@ -794,7 +794,7 @@ function ie({ children: e }) {
794
794
  }
795
795
  //#endregion
796
796
  //#region src/components/primitives/Avatar.tsx
797
- function J({ name: e, size: t = 22, color: n }) {
797
+ function Y({ name: e, size: t = 22, color: n }) {
798
798
  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 = [
799
799
  "#DCE4F6",
800
800
  "#E4DCF6",
@@ -824,7 +824,7 @@ function J({ name: e, size: t = 22, color: n }) {
824
824
  }
825
825
  //#endregion
826
826
  //#region src/components/primitives/BrandGlyph.tsx
827
- function ae({ size: e = 24, className: t, title: n }) {
827
+ function ie({ size: e = 24, className: t, title: n }) {
828
828
  return /* @__PURE__ */ L("svg", {
829
829
  width: e,
830
830
  height: e,
@@ -860,7 +860,7 @@ function ae({ size: e = 24, className: t, title: n }) {
860
860
  }
861
861
  //#endregion
862
862
  //#region src/components/primitives/Dropdown.tsx
863
- function oe({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
863
+ function ae({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
864
864
  let s = M(null), [c, l] = N(null);
865
865
  return A(() => {
866
866
  if (!e || !n) return;
@@ -906,13 +906,13 @@ function oe({ open: e, onClose: t, anchor: n, children: r, align: i = "start", w
906
906
  }
907
907
  //#endregion
908
908
  //#region src/components/primitives/HoverCard.tsx
909
- var se = 400, ce = 150, le = 320, ue = 240, Y = 4, de = 4;
910
- function fe({ content: e, children: t, width: n = le, align: r = "center", style: i }) {
909
+ var oe = 400, se = 150, ce = 320, le = 240, X = 4, ue = 4;
910
+ function de({ content: e, children: t, width: n = ce, align: r = "center", style: i }) {
911
911
  let a = M(null), o = M(null), s = M(null), c = M(null), [l, u] = N(!1), [d, f] = N(null), [p, m] = N(!1), h = O(() => {
912
912
  let e = a.current;
913
913
  if (!e) return;
914
- let t = e.getBoundingClientRect(), i = typeof window < "u" ? window.innerWidth : 0, s = typeof window < "u" ? window.innerHeight : 0, c = o.current?.offsetHeight ?? ue, l = s - t.bottom < c + de * 2 && t.top > c + de * 2 ? "above" : "below", u = l === "below" ? t.bottom + de : t.top - de - c, d;
915
- d = r === "start" ? t.left : r === "end" ? t.right - n : t.left + t.width / 2 - n / 2, d + n > i - Y && (d = Math.max(Y, t.right - n)), d < Y && (d = Y), f((e) => e && e.top === u && e.left === d && e.placement === l ? e : {
914
+ let t = e.getBoundingClientRect(), i = typeof window < "u" ? window.innerWidth : 0, s = typeof window < "u" ? window.innerHeight : 0, c = o.current?.offsetHeight ?? le, l = s - t.bottom < c + ue * 2 && t.top > c + ue * 2 ? "above" : "below", u = l === "below" ? t.bottom + ue : t.top - ue - c, d;
915
+ d = r === "start" ? t.left : r === "end" ? t.right - n : t.left + t.width / 2 - n / 2, d + n > i - X && (d = Math.max(X, t.right - n)), d < X && (d = X), f((e) => e && e.top === u && e.left === d && e.placement === l ? e : {
916
916
  top: u,
917
917
  left: d,
918
918
  placement: l
@@ -929,11 +929,11 @@ function fe({ content: e, children: t, width: n = le, align: r = "center", style
929
929
  }, v = () => {
930
930
  c.current !== null && (window.clearTimeout(c.current), c.current = null), !(l || s.current !== null) && (s.current = window.setTimeout(() => {
931
931
  s.current = null, u(!0);
932
- }, se));
932
+ }, oe));
933
933
  }, y = () => {
934
934
  s.current !== null && (window.clearTimeout(s.current), s.current = null), c.current === null && (c.current = window.setTimeout(() => {
935
935
  c.current = null, u(!1);
936
- }, ce));
936
+ }, se));
937
937
  };
938
938
  k(() => () => {
939
939
  ee(), g.current &&= (g.current.disconnect(), null);
@@ -958,7 +958,7 @@ function fe({ content: e, children: t, width: n = le, align: r = "center", style
958
958
  top: d.top,
959
959
  left: d.left,
960
960
  width: n,
961
- maxHeight: ue,
961
+ maxHeight: le,
962
962
  overflowY: "auto",
963
963
  zIndex: 250,
964
964
  background: "var(--surface)",
@@ -987,7 +987,7 @@ function fe({ content: e, children: t, width: n = le, align: r = "center", style
987
987
  }
988
988
  //#endregion
989
989
  //#region src/components/primitives/Chip.tsx
990
- function X({ icon: e, children: t, onRemove: n, onClick: r }) {
990
+ function Z({ icon: e, children: t, onRemove: n, onClick: r }) {
991
991
  return /* @__PURE__ */ L("span", {
992
992
  onClick: r,
993
993
  style: {
@@ -1020,14 +1020,14 @@ function X({ icon: e, children: t, onRemove: n, onClick: r }) {
1020
1020
  cursor: "pointer",
1021
1021
  display: "flex"
1022
1022
  },
1023
- children: /* @__PURE__ */ I(W.x, { size: 12 })
1023
+ children: /* @__PURE__ */ I(G.x, { size: 12 })
1024
1024
  })
1025
1025
  ]
1026
1026
  });
1027
1027
  }
1028
1028
  //#endregion
1029
1029
  //#region src/components/primitives/SectionCard.tsx
1030
- function pe({ title: e, subtitle: t, right: n, badge: r, children: i, collapsible: a = !0, defaultOpen: o = !0, icon: s, padding: c = "16px" }) {
1030
+ function fe({ title: e, subtitle: t, right: n, badge: r, children: i, collapsible: a = !0, defaultOpen: o = !0, icon: s, padding: c = "16px" }) {
1031
1031
  let [l, u] = N(o);
1032
1032
  return /* @__PURE__ */ L("div", {
1033
1033
  style: {
@@ -1087,16 +1087,16 @@ function pe({ title: e, subtitle: t, right: n, badge: r, children: i, collapsibl
1087
1087
  })
1088
1088
  ]
1089
1089
  }),
1090
- r && /* @__PURE__ */ I(q, {
1090
+ r && /* @__PURE__ */ I(J, {
1091
1091
  tone: r.tone ?? "violet",
1092
1092
  size: "xs",
1093
1093
  dot: r.dot,
1094
1094
  children: r.text
1095
1095
  }),
1096
1096
  n,
1097
- a && /* @__PURE__ */ I(K, {
1097
+ a && /* @__PURE__ */ I(q, {
1098
1098
  size: 24,
1099
- icon: I(l ? W.up : W.down, { size: 14 }),
1099
+ icon: I(l ? G.up : G.down, { size: 14 }),
1100
1100
  onClick: () => u(!l)
1101
1101
  })
1102
1102
  ]
@@ -1108,19 +1108,19 @@ function pe({ title: e, subtitle: t, right: n, badge: r, children: i, collapsibl
1108
1108
  }
1109
1109
  //#endregion
1110
1110
  //#region src/components/primitives/RecordIdBadge.tsx
1111
- var me = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, he = 1200;
1112
- function ge({ value: e }) {
1113
- let [t, n] = N(!1), r = me.test(e) ? `${e.slice(0, 8)}…` : e;
1111
+ var pe = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, me = 1200;
1112
+ function he({ value: e }) {
1113
+ let [t, n] = N(!1), r = pe.test(e) ? `${e.slice(0, 8)}…` : e;
1114
1114
  return /* @__PURE__ */ L("button", {
1115
1115
  type: "button",
1116
1116
  onClick: O(async () => {
1117
1117
  try {
1118
- await navigator.clipboard.writeText(e), n(!0), window.setTimeout(() => n(!1), he);
1118
+ await navigator.clipboard.writeText(e), n(!0), window.setTimeout(() => n(!1), me);
1119
1119
  } catch {}
1120
1120
  }, [e]),
1121
1121
  title: t ? "Copied" : `Copy ${e}`,
1122
1122
  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",
1123
- children: [/* @__PURE__ */ I("span", { children: r }), t ? /* @__PURE__ */ I(W.check, { size: 10 }) : /* @__PURE__ */ I(W.copy, {
1123
+ children: [/* @__PURE__ */ I("span", { children: r }), t ? /* @__PURE__ */ I(G.check, { size: 10 }) : /* @__PURE__ */ I(G.copy, {
1124
1124
  size: 10,
1125
1125
  style: { opacity: .6 }
1126
1126
  })]
@@ -1128,7 +1128,7 @@ function ge({ value: e }) {
1128
1128
  }
1129
1129
  //#endregion
1130
1130
  //#region src/components/primitives/RowField.tsx
1131
- function _e({ label: e, children: t, wide: n, editing: r, required: i }) {
1131
+ function ge({ label: e, children: t, wide: n, editing: r, required: i }) {
1132
1132
  return /* @__PURE__ */ L("div", {
1133
1133
  style: {
1134
1134
  display: "flex",
@@ -1170,9 +1170,11 @@ function _e({ label: e, children: t, wide: n, editing: r, required: i }) {
1170
1170
  }
1171
1171
  //#endregion
1172
1172
  //#region src/components/primitives/BoolToggle.tsx
1173
- function ve({ value: e, onChange: t }) {
1173
+ function _e({ value: e, onChange: t, id: n, ariaLabelledby: r }) {
1174
1174
  return /* @__PURE__ */ I("button", {
1175
1175
  type: "button",
1176
+ id: n,
1177
+ "aria-labelledby": r,
1176
1178
  role: "checkbox",
1177
1179
  "aria-checked": !!e,
1178
1180
  onClick: () => t && t(!e),
@@ -1192,7 +1194,7 @@ function ve({ value: e, onChange: t }) {
1192
1194
  width: 14,
1193
1195
  height: 14,
1194
1196
  borderRadius: 999,
1195
- background: "#fff",
1197
+ background: "var(--accent-foreground)",
1196
1198
  transform: e ? "translateX(14px)" : "translateX(0)",
1197
1199
  transition: "transform .15s",
1198
1200
  boxShadow: "0 1px 2px rgba(0,0,0,.15)"
@@ -1201,7 +1203,7 @@ function ve({ value: e, onChange: t }) {
1201
1203
  }
1202
1204
  //#endregion
1203
1205
  //#region src/components/primitives/MenuItem.tsx
1204
- function ye({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, divider: o, "data-testid": s }) {
1206
+ function ve({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, divider: o, "data-testid": s }) {
1205
1207
  return o ? /* @__PURE__ */ I("div", { style: {
1206
1208
  height: 1,
1207
1209
  background: "var(--divider)",
@@ -1238,13 +1240,13 @@ function ye({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, di
1238
1240
  style: { flex: 1 },
1239
1241
  children: t
1240
1242
  }),
1241
- i && /* @__PURE__ */ I(ie, { children: i })
1243
+ i && /* @__PURE__ */ I(re, { children: i })
1242
1244
  ]
1243
1245
  });
1244
1246
  }
1245
1247
  //#endregion
1246
1248
  //#region src/components/primitives/Check.tsx
1247
- function be({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1249
+ function ye({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1248
1250
  return /* @__PURE__ */ L("span", {
1249
1251
  onClick: (n) => {
1250
1252
  n.stopPropagation(), t && t(!e);
@@ -1266,7 +1268,7 @@ function be({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1266
1268
  height: r - 4,
1267
1269
  viewBox: "0 0 10 10",
1268
1270
  fill: "none",
1269
- stroke: "#fff",
1271
+ stroke: "var(--accent-foreground)",
1270
1272
  strokeWidth: "2",
1271
1273
  strokeLinecap: "round",
1272
1274
  strokeLinejoin: "round",
@@ -1274,13 +1276,13 @@ function be({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1274
1276
  }), n && !e && /* @__PURE__ */ I("span", { style: {
1275
1277
  width: 6,
1276
1278
  height: 1.5,
1277
- background: "#fff"
1279
+ background: "var(--accent-foreground)"
1278
1280
  } })]
1279
1281
  });
1280
1282
  }
1281
1283
  //#endregion
1282
1284
  //#region src/components/primitives/Spinner.tsx
1283
- function xe({ size: e = 14 }) {
1285
+ function be({ size: e = 14 }) {
1284
1286
  return /* @__PURE__ */ L("svg", {
1285
1287
  width: e,
1286
1288
  height: e,
@@ -1308,7 +1310,7 @@ function xe({ size: e = 14 }) {
1308
1310
  }
1309
1311
  //#endregion
1310
1312
  //#region src/components/primitives/Fields.tsx
1311
- var Se = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ L("div", {
1313
+ var xe = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ L("div", {
1312
1314
  style: {
1313
1315
  display: "flex",
1314
1316
  alignItems: "center",
@@ -1332,10 +1334,10 @@ var Se = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ L("div", {
1332
1334
  color: "var(--text-4)",
1333
1335
  display: "flex"
1334
1336
  },
1335
- children: /* @__PURE__ */ I(W.info, { size: 11 })
1337
+ children: /* @__PURE__ */ I(G.info, { size: 11 })
1336
1338
  })
1337
1339
  ]
1338
- }), Ce = {
1340
+ }), Se = {
1339
1341
  width: "100%",
1340
1342
  height: 30,
1341
1343
  padding: "0 10px",
@@ -1348,14 +1350,14 @@ var Se = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ L("div", {
1348
1350
  outline: "none",
1349
1351
  transition: "border-color .12s, box-shadow .12s"
1350
1352
  };
1351
- function Z({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
1353
+ function Q({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
1352
1354
  let [s, c] = N(!1);
1353
1355
  return /* @__PURE__ */ L("div", {
1354
1356
  style: {
1355
1357
  display: "flex",
1356
1358
  alignItems: "center",
1357
1359
  gap: 6,
1358
- ...Ce,
1360
+ ...Se,
1359
1361
  padding: r || i ? "0 8px" : "0 10px",
1360
1362
  borderColor: s ? "var(--accent)" : "var(--border)",
1361
1363
  boxShadow: s ? "0 0 0 3px var(--accent-ring)" : "none",
@@ -1397,8 +1399,8 @@ function Z({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style:
1397
1399
  ]
1398
1400
  });
1399
1401
  }
1400
- function we({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i }) {
1401
- let [a, o] = N(!1), s = i ? {
1402
+ function Ce({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i, id: a, name: o, ariaRequired: s }) {
1403
+ let [c, l] = N(!1), u = i ? {
1402
1404
  flex: 1,
1403
1405
  height: "100%",
1404
1406
  minHeight: 0,
@@ -1408,24 +1410,27 @@ function we({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i }) {
1408
1410
  resize: "vertical"
1409
1411
  };
1410
1412
  return /* @__PURE__ */ I("textarea", {
1413
+ id: a,
1414
+ name: o,
1415
+ "aria-required": s || void 0,
1411
1416
  value: e ?? "",
1412
1417
  onChange: (e) => t && t(e.target.value),
1413
1418
  placeholder: n,
1414
1419
  rows: i ? void 0 : r,
1415
- onFocus: () => o(!0),
1416
- onBlur: () => o(!1),
1420
+ onFocus: () => l(!0),
1421
+ onBlur: () => l(!1),
1417
1422
  style: {
1418
- ...Ce,
1423
+ ...Se,
1419
1424
  padding: "8px 10px",
1420
1425
  lineHeight: 1.5,
1421
- ...s,
1422
- borderColor: a ? "var(--accent)" : "var(--border)",
1423
- boxShadow: a ? "0 0 0 3px var(--accent-ring)" : "none",
1426
+ ...u,
1427
+ borderColor: c ? "var(--accent)" : "var(--border)",
1428
+ boxShadow: c ? "0 0 0 3px var(--accent-ring)" : "none",
1424
1429
  fontFamily: "inherit"
1425
1430
  }
1426
1431
  });
1427
1432
  }
1428
- function Te({ value: e, options: t, onChange: n, placeholder: r = "Select...", ...i }) {
1433
+ function we({ value: e, options: t, onChange: n, placeholder: r = "Select...", ...i }) {
1429
1434
  let [a, o] = N(!1), s = M(null), c = t.find((t) => t.value === e);
1430
1435
  return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("button", {
1431
1436
  type: "button",
@@ -1433,7 +1438,7 @@ function Te({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1433
1438
  onClick: () => o(!a),
1434
1439
  ...i,
1435
1440
  style: {
1436
- ...Ce,
1441
+ ...Se,
1437
1442
  display: "flex",
1438
1443
  alignItems: "center",
1439
1444
  justifyContent: "space-between",
@@ -1451,17 +1456,17 @@ function Te({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1451
1456
  textOverflow: "ellipsis"
1452
1457
  },
1453
1458
  children: c ? c.label : r
1454
- }), /* @__PURE__ */ I(W.down, {
1459
+ }), /* @__PURE__ */ I(G.down, {
1455
1460
  size: 12,
1456
1461
  cls: "",
1457
1462
  style: { color: "var(--text-3)" }
1458
1463
  })]
1459
- }), /* @__PURE__ */ I(oe, {
1464
+ }), /* @__PURE__ */ I(ae, {
1460
1465
  open: a,
1461
1466
  anchor: s.current,
1462
1467
  onClose: () => o(!1),
1463
1468
  width: s.current?.offsetWidth,
1464
- children: t.map((t) => /* @__PURE__ */ I(ye, {
1469
+ children: t.map((t) => /* @__PURE__ */ I(ve, {
1465
1470
  onClick: () => {
1466
1471
  n(t.value), o(!1);
1467
1472
  },
@@ -1470,42 +1475,45 @@ function Te({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1470
1475
  }, t.value))
1471
1476
  })] });
1472
1477
  }
1473
- function Ee({ value: e, onChange: t }) {
1474
- return /* @__PURE__ */ I(Z, {
1478
+ function Te({ value: e, onChange: t }) {
1479
+ return /* @__PURE__ */ I(Q, {
1475
1480
  value: e || "",
1476
1481
  onChange: t,
1477
1482
  placeholder: "YYYY-MM-DD HH:mm",
1478
- prefix: /* @__PURE__ */ I(W.calendar, { size: 13 })
1483
+ prefix: /* @__PURE__ */ I(G.calendar, { size: 13 })
1479
1484
  });
1480
1485
  }
1481
- function De(e) {
1486
+ function Ee(e) {
1482
1487
  if (!e) return 0;
1483
1488
  let t = 0;
1484
1489
  return e.length >= 8 && t++, e.length >= 12 && t++, /[A-Z]/.test(e) && /[a-z]/.test(e) && t++, /\d/.test(e) && t++, /[^A-Za-z0-9]/.test(e) && t++, Math.min(4, t);
1485
1490
  }
1486
- var Oe = [
1491
+ var De = [
1487
1492
  "Too short",
1488
1493
  "Weak",
1489
1494
  "Fair",
1490
1495
  "Good",
1491
1496
  "Strong"
1492
- ], ke = [
1497
+ ], Oe = [
1493
1498
  "var(--danger)",
1494
1499
  "var(--danger)",
1495
1500
  "var(--warning, #B45309)",
1496
1501
  "var(--accent)",
1497
1502
  "var(--success, #3FBF8F)"
1498
1503
  ];
1499
- function Ae({ value: e, onChange: t, placeholder: n = "Enter password", showStrength: r }) {
1500
- let [i, a] = N(!1), o = e || "", s = De(o);
1501
- return /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I(Z, {
1502
- type: i ? "text" : "password",
1503
- value: o,
1504
+ function ke({ value: e, onChange: t, placeholder: n = "Enter password", showStrength: r, id: i, name: a, ariaRequired: o }) {
1505
+ let [s, c] = N(!1), l = e || "", u = Ee(l);
1506
+ return /* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I(Q, {
1507
+ id: i,
1508
+ name: a,
1509
+ "aria-required": o || void 0,
1510
+ type: s ? "text" : "password",
1511
+ value: l,
1504
1512
  onChange: t,
1505
1513
  placeholder: n,
1506
1514
  suffix: /* @__PURE__ */ I("button", {
1507
1515
  type: "button",
1508
- "aria-label": i ? "Hide password" : "Show password",
1516
+ "aria-label": s ? "Hide password" : "Show password",
1509
1517
  style: {
1510
1518
  background: "none",
1511
1519
  border: 0,
@@ -1514,8 +1522,8 @@ function Ae({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1514
1522
  color: "var(--text-3)",
1515
1523
  display: "flex"
1516
1524
  },
1517
- onClick: () => a(!i),
1518
- children: I(i ? W.eyeOff : W.eye, { size: 14 })
1525
+ onClick: () => c(!s),
1526
+ children: I(s ? G.eyeOff : G.eye, { size: 14 })
1519
1527
  })
1520
1528
  }), r && /* @__PURE__ */ L("div", {
1521
1529
  style: {
@@ -1539,7 +1547,7 @@ function Ae({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1539
1547
  flex: 1,
1540
1548
  height: 3,
1541
1549
  borderRadius: 999,
1542
- background: e < s ? ke[s] : "var(--surface-3)",
1550
+ background: e < u ? Oe[u] : "var(--surface-3)",
1543
1551
  transition: "background .15s"
1544
1552
  } }, e))
1545
1553
  }), /* @__PURE__ */ I("span", {
@@ -1549,15 +1557,15 @@ function Ae({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1549
1557
  minWidth: 54,
1550
1558
  textAlign: "right"
1551
1559
  },
1552
- children: o ? Oe[s] : ""
1560
+ children: l ? De[u] : ""
1553
1561
  })]
1554
1562
  })] });
1555
1563
  }
1556
- function je({ value: e = [], onChange: t }) {
1564
+ function Ae({ value: e = [], onChange: t }) {
1557
1565
  let [n, r] = N("");
1558
1566
  return /* @__PURE__ */ L("div", {
1559
1567
  style: {
1560
- ...Ce,
1568
+ ...Se,
1561
1569
  height: "auto",
1562
1570
  minHeight: 30,
1563
1571
  display: "flex",
@@ -1566,7 +1574,7 @@ function je({ value: e = [], onChange: t }) {
1566
1574
  padding: "4px 6px",
1567
1575
  alignItems: "center"
1568
1576
  },
1569
- children: [e.map((n, r) => /* @__PURE__ */ I(X, {
1577
+ children: [e.map((n, r) => /* @__PURE__ */ I(Z, {
1570
1578
  tone: "slate",
1571
1579
  onRemove: () => t(e.filter((e, t) => t !== r)),
1572
1580
  children: n
@@ -1589,7 +1597,7 @@ function je({ value: e = [], onChange: t }) {
1589
1597
  })]
1590
1598
  });
1591
1599
  }
1592
- function Me({ value: e, onChange: t }) {
1600
+ function je({ value: e, onChange: t }) {
1593
1601
  return /* @__PURE__ */ L("div", {
1594
1602
  style: {
1595
1603
  border: "1px solid var(--border)",
@@ -1618,12 +1626,12 @@ function Me({ value: e, onChange: t }) {
1618
1626
  children: "JSON"
1619
1627
  }),
1620
1628
  /* @__PURE__ */ I("span", { style: { flex: 1 } }),
1621
- /* @__PURE__ */ I(G, {
1629
+ /* @__PURE__ */ I(K, {
1622
1630
  size: "xs",
1623
1631
  kind: "ghost",
1624
1632
  children: "Format"
1625
1633
  }),
1626
- /* @__PURE__ */ I(G, {
1634
+ /* @__PURE__ */ I(K, {
1627
1635
  size: "xs",
1628
1636
  kind: "ghost",
1629
1637
  children: "Validate"
@@ -1648,14 +1656,17 @@ function Me({ value: e, onChange: t }) {
1648
1656
  })]
1649
1657
  });
1650
1658
  }
1651
- function Ne({ value: e, entity: t = "company", onChange: n, items: r = [] }) {
1652
- let [i, a] = N(!1), o = M(null);
1659
+ function Me({ value: e, entity: t = "company", onChange: n, items: r = [], id: i, ariaLabelledby: a, ariaRequired: o }) {
1660
+ let [s, c] = N(!1), l = M(null);
1653
1661
  return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("button", {
1654
1662
  type: "button",
1655
- ref: o,
1656
- onClick: () => a(!0),
1663
+ id: i,
1664
+ "aria-labelledby": a,
1665
+ "aria-required": o || void 0,
1666
+ ref: l,
1667
+ onClick: () => c(!0),
1657
1668
  style: {
1658
- ...Ce,
1669
+ ...Se,
1659
1670
  display: "flex",
1660
1671
  alignItems: "center",
1661
1672
  justifyContent: "space-between",
@@ -1680,38 +1691,38 @@ function Ne({ value: e, entity: t = "company", onChange: n, items: r = [] }) {
1680
1691
  alignItems: "center",
1681
1692
  justifyContent: "center"
1682
1693
  },
1683
- children: /* @__PURE__ */ I(W.link, { size: 11 })
1694
+ children: /* @__PURE__ */ I(G.link, { size: 11 })
1684
1695
  }), /* @__PURE__ */ I("span", {
1685
1696
  style: { color: e ? "var(--accent)" : "var(--text-placeholder)" },
1686
1697
  children: e || `Link to ${t}…`
1687
1698
  })]
1688
- }), /* @__PURE__ */ I(W.search, {
1699
+ }), /* @__PURE__ */ I(G.search, {
1689
1700
  size: 12,
1690
1701
  cls: "",
1691
1702
  style: { color: "var(--text-3)" }
1692
1703
  })]
1693
- }), /* @__PURE__ */ L(oe, {
1694
- open: i,
1695
- anchor: o.current,
1696
- onClose: () => a(!1),
1697
- width: o.current?.offsetWidth,
1704
+ }), /* @__PURE__ */ L(ae, {
1705
+ open: s,
1706
+ anchor: l.current,
1707
+ onClose: () => c(!1),
1708
+ width: l.current?.offsetWidth,
1698
1709
  children: [/* @__PURE__ */ I("div", {
1699
1710
  style: { padding: 4 },
1700
- children: /* @__PURE__ */ I(Z, {
1711
+ children: /* @__PURE__ */ I(Q, {
1701
1712
  placeholder: `Search ${t}…`,
1702
- prefix: /* @__PURE__ */ I(W.search, { size: 12 }),
1713
+ prefix: /* @__PURE__ */ I(G.search, { size: 12 }),
1703
1714
  style: { marginBottom: 4 }
1704
1715
  })
1705
- }), r.slice(0, 6).map((e) => /* @__PURE__ */ I(ye, {
1706
- icon: /* @__PURE__ */ I(W.building, { size: 13 }),
1716
+ }), r.slice(0, 6).map((e) => /* @__PURE__ */ I(ve, {
1717
+ icon: /* @__PURE__ */ I(G.building, { size: 13 }),
1707
1718
  onClick: () => {
1708
- n && n(e.name), a(!1);
1719
+ n && n(e.name), c(!1);
1709
1720
  },
1710
1721
  children: e.name
1711
1722
  }, e.id))]
1712
1723
  })] });
1713
1724
  }
1714
- function Pe({ label: e, children: t, mono: n, wide: r, empty: i }) {
1725
+ function Ne({ label: e, children: t, mono: n, wide: r, empty: i }) {
1715
1726
  return /* @__PURE__ */ L("div", {
1716
1727
  style: {
1717
1728
  display: "flex",
@@ -1744,7 +1755,7 @@ function Pe({ label: e, children: t, mono: n, wide: r, empty: i }) {
1744
1755
  })]
1745
1756
  });
1746
1757
  }
1747
- function Fe({ value: e, onChange: t, type: n = "text", options: r }) {
1758
+ function Pe({ value: e, onChange: t, type: n = "text", options: r }) {
1748
1759
  let [i, a] = N(!1), [o, s] = N(e), c = () => {
1749
1760
  t && o !== void 0 && t(o), a(!1);
1750
1761
  }, l = () => {
@@ -1759,30 +1770,30 @@ function Fe({ value: e, onChange: t, type: n = "text", options: r }) {
1759
1770
  onKeyDown: (e) => {
1760
1771
  e.key === "Enter" && c(), e.key === "Escape" && l();
1761
1772
  },
1762
- children: [n === "select" ? /* @__PURE__ */ I(Te, {
1773
+ children: [n === "select" ? /* @__PURE__ */ I(we, {
1763
1774
  value: o,
1764
1775
  options: r || [],
1765
1776
  onChange: (e) => {
1766
1777
  s(e), t && t(e), a(!1);
1767
1778
  }
1768
- }) : n === "bool" ? /* @__PURE__ */ I(ve, {
1779
+ }) : n === "bool" ? /* @__PURE__ */ I(_e, {
1769
1780
  value: o === "true",
1770
1781
  onChange: (e) => {
1771
1782
  let n = String(e);
1772
1783
  s(n), t && t(n), a(!1);
1773
1784
  }
1774
- }) : /* @__PURE__ */ I(Z, {
1785
+ }) : /* @__PURE__ */ I(Q, {
1775
1786
  value: o ?? "",
1776
1787
  onChange: s,
1777
1788
  autoFocus: !0
1778
- }), n !== "select" && n !== "bool" && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(K, {
1789
+ }), n !== "select" && n !== "bool" && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(q, {
1779
1790
  size: 24,
1780
- icon: /* @__PURE__ */ I(W.check, { size: 13 }),
1791
+ icon: /* @__PURE__ */ I(G.check, { size: 13 }),
1781
1792
  onClick: c,
1782
1793
  title: "Save"
1783
- }), /* @__PURE__ */ I(K, {
1794
+ }), /* @__PURE__ */ I(q, {
1784
1795
  size: 24,
1785
- icon: /* @__PURE__ */ I(W.x, { size: 13 }),
1796
+ icon: /* @__PURE__ */ I(G.x, { size: 13 }),
1786
1797
  onClick: l,
1787
1798
  title: "Cancel"
1788
1799
  })] })]
@@ -1813,7 +1824,7 @@ function Fe({ value: e, onChange: t, type: n = "text", options: r }) {
1813
1824
  }
1814
1825
  //#endregion
1815
1826
  //#region src/types/ordmap.ts
1816
- var Ie = class e {
1827
+ var Fe = class e {
1817
1828
  #e;
1818
1829
  #t;
1819
1830
  constructor(e) {
@@ -1854,55 +1865,72 @@ var Ie = class e {
1854
1865
  for (let e of this.#e) yield [e.name ?? "", e];
1855
1866
  }
1856
1867
  };
1857
- function Q(e, t = "en") {
1868
+ function $(e, t = "en") {
1858
1869
  return e ? e[t] ?? Object.values(e)[0] ?? "" : "";
1859
1870
  }
1860
- var Le = "$display";
1861
- function Re(e, t) {
1871
+ var Ie = "$display";
1872
+ function Le(e, t) {
1862
1873
  if (!e) return;
1863
- let n = e[Le];
1874
+ let n = e[Ie];
1864
1875
  if (typeof n == "string" && n !== "") return n;
1865
1876
  let r = t?.display?.display_field;
1866
1877
  if (!r) return;
1867
1878
  let i = e[r];
1868
- if (i != null) return typeof i == "object" && !Array.isArray(i) ? Q(i) || void 0 : String(i);
1879
+ if (i != null) return typeof i == "object" && !Array.isArray(i) ? $(i) || void 0 : String(i);
1869
1880
  }
1870
- function ze(e, t, n) {
1871
- let r = e[Le];
1881
+ function Re(e, t, n) {
1882
+ let r = e[Ie];
1872
1883
  if (typeof r == "string" && r !== "") return r;
1873
1884
  if (t) {
1874
1885
  let r = e[t];
1875
- if (r != null) return typeof r == "object" && !Array.isArray(r) ? Q(r) || n : String(r);
1886
+ if (r != null) return typeof r == "object" && !Array.isArray(r) ? $(r) || n : String(r);
1876
1887
  }
1877
1888
  return n;
1878
1889
  }
1879
- function Be(e) {
1890
+ function ze(e) {
1880
1891
  let t = e.replace(/\/+$/, "").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
1881
1892
  return RegExp("^" + t.join("/") + "$");
1882
1893
  }
1883
- function Ve(e, t) {
1894
+ function Be(e) {
1895
+ let t = (() => {
1896
+ try {
1897
+ return decodeURIComponent(e);
1898
+ } catch {
1899
+ return e;
1900
+ }
1901
+ })().split("-")[0];
1902
+ return t.length > 8 ? t.slice(0, 8) : t;
1903
+ }
1904
+ function Ve(e, t, n) {
1884
1905
  if (!t) return;
1885
- let n = e.replace(/\/+$/, "") || "/", r;
1906
+ let r = e.replace(/\/+$/, "") || "/", i;
1886
1907
  for (let e of Object.values(t)) {
1887
- if (!e.route || !Be(e.route).test(n)) continue;
1888
- let t = Q(e.display?.name);
1889
- if (!t) continue;
1890
- let i = {
1891
- title: t,
1908
+ if (!e.route || !ze(e.route).test(r)) continue;
1909
+ let t = e.route.includes("/:"), a = $(e.display?.name);
1910
+ if (!a && t && n && e.entity) {
1911
+ let t = $(n[e.entity]?.display?.name);
1912
+ if (t) {
1913
+ let e = r.slice(r.lastIndexOf("/") + 1);
1914
+ a = e ? `${t} ${Be(e)}` : t;
1915
+ }
1916
+ }
1917
+ if (!a) continue;
1918
+ let o = {
1919
+ title: a,
1892
1920
  icon: e.display?.icon
1893
1921
  };
1894
- if (!e.route.includes("/:")) return i;
1895
- r ??= i;
1922
+ if (!t) return o;
1923
+ i ??= o;
1896
1924
  }
1897
- return r;
1925
+ return i;
1898
1926
  }
1899
1927
  function He(e, t, n) {
1900
- let r = Q(e.display?.name);
1928
+ let r = $(e.display?.name);
1901
1929
  if (r) return r;
1902
1930
  if (e.type === "ref" && e.ref?.entity && n) {
1903
1931
  let t = n[e.ref.entity];
1904
1932
  if (t) {
1905
- let e = Q(t.display?.name);
1933
+ let e = $(t.display?.name);
1906
1934
  if (e) return e;
1907
1935
  }
1908
1936
  }
@@ -1977,13 +2005,13 @@ function tt(e) {
1977
2005
  function nt(e) {
1978
2006
  return {
1979
2007
  ...e,
1980
- params: e.params ? Ie.fromObject(e.params) : void 0
2008
+ params: e.params ? Fe.fromObject(e.params) : void 0
1981
2009
  };
1982
2010
  }
1983
2011
  function rt(e) {
1984
2012
  return {
1985
2013
  ...e,
1986
- resolved_params: e.resolved_params ? Ie.fromObject(e.resolved_params) : void 0
2014
+ resolved_params: e.resolved_params ? Fe.fromObject(e.resolved_params) : void 0
1987
2015
  };
1988
2016
  }
1989
2017
  function it(e) {
@@ -1993,8 +2021,8 @@ function it(e) {
1993
2021
  if (e.actions) for (let [t, r] of Object.entries(e.actions)) n[t] = rt(r);
1994
2022
  return {
1995
2023
  ...e,
1996
- fields: Ie.fromObject(e.fields),
1997
- files: e.files ? Ie.fromObject(e.files) : void 0,
2024
+ fields: Fe.fromObject(e.fields),
2025
+ files: e.files ? Fe.fromObject(e.files) : void 0,
1998
2026
  handlers: e.handlers ? t : void 0,
1999
2027
  actions: e.actions ? n : void 0
2000
2028
  };
@@ -2005,7 +2033,7 @@ function at(e) {
2005
2033
  let n = {};
2006
2034
  if (e.structures) for (let [t, r] of Object.entries(e.structures)) n[t] = {
2007
2035
  ...r,
2008
- fields: Ie.fromObject(r.fields)
2036
+ fields: Fe.fromObject(r.fields)
2009
2037
  };
2010
2038
  let r = {};
2011
2039
  if (e.handlers) for (let [t, n] of Object.entries(e.handlers)) r[t] = nt(n);
@@ -2280,7 +2308,7 @@ var Bt = z((e, t) => ({
2280
2308
  //#endregion
2281
2309
  //#region src/lib/utils.ts
2282
2310
  function Vt(...e) {
2283
- return te(B(e));
2311
+ return V(B(e));
2284
2312
  }
2285
2313
  function Ht(e) {
2286
2314
  return e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0;
@@ -2398,22 +2426,22 @@ function cn({ value: e, title: t, size: n = "icon" }) {
2398
2426
  await navigator.clipboard.writeText(e), i(!0), setTimeout(() => i(!1), 2e3);
2399
2427
  } catch {}
2400
2428
  }, [e]), o = n === "sm" ? 12 : 14;
2401
- return /* @__PURE__ */ I(K, {
2429
+ return /* @__PURE__ */ I(q, {
2402
2430
  size: n === "sm" ? 22 : 28,
2403
- icon: r ? /* @__PURE__ */ I(W.check, {
2431
+ icon: r ? /* @__PURE__ */ I(G.check, {
2404
2432
  size: o,
2405
2433
  style: { color: "var(--success)" }
2406
- }) : /* @__PURE__ */ I(W.copy, { size: o }),
2434
+ }) : /* @__PURE__ */ I(G.copy, { size: o }),
2407
2435
  onClick: a,
2408
2436
  title: t ?? "Copy to clipboard"
2409
2437
  });
2410
2438
  }
2411
2439
  //#endregion
2412
2440
  //#region src/components/fields/StringField.tsx
2413
- function ln({ field: e, value: t, mode: n, onChange: r }) {
2414
- if (n === "display") {
2415
- let n = String(t ?? "");
2416
- return e.copyable && n ? /* @__PURE__ */ L("span", {
2441
+ function ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2442
+ if (r === "display") {
2443
+ let t = String(n ?? "");
2444
+ return e.copyable && t ? /* @__PURE__ */ L("span", {
2417
2445
  style: {
2418
2446
  display: "inline-flex",
2419
2447
  alignItems: "center",
@@ -2421,38 +2449,41 @@ function ln({ field: e, value: t, mode: n, onChange: r }) {
2421
2449
  },
2422
2450
  children: [/* @__PURE__ */ I("span", {
2423
2451
  style: { fontSize: 12.5 },
2424
- children: n
2452
+ children: t
2425
2453
  }), /* @__PURE__ */ I(cn, {
2426
- value: n,
2454
+ value: t,
2427
2455
  size: "sm"
2428
2456
  })]
2429
2457
  }) : /* @__PURE__ */ I("span", {
2430
2458
  style: { fontSize: 12.5 },
2431
- children: n || /* @__PURE__ */ I("span", {
2459
+ children: t || /* @__PURE__ */ I("span", {
2432
2460
  style: { color: "var(--text-4)" },
2433
2461
  children: "—"
2434
2462
  })
2435
2463
  });
2436
2464
  }
2437
- return /* @__PURE__ */ I(Z, {
2438
- value: String(t ?? ""),
2439
- onChange: (e) => r?.(e)
2465
+ return /* @__PURE__ */ I(Q, {
2466
+ id: a,
2467
+ name: t,
2468
+ "aria-required": e.required || void 0,
2469
+ value: String(n ?? ""),
2470
+ onChange: (e) => i?.(e)
2440
2471
  });
2441
2472
  }
2442
2473
  //#endregion
2443
2474
  //#region src/components/fields/TextField.tsx
2444
- function un({ field: e, value: t, mode: n, onChange: r, fill: i, compact: a }) {
2445
- let o = e.display?.widget;
2446
- if (n === "display") {
2447
- let n = String(t ?? "");
2448
- if (!n) return /* @__PURE__ */ I("span", {
2475
+ function un({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, compact: o, fieldId: s }) {
2476
+ let c = e.display?.widget;
2477
+ if (r === "display") {
2478
+ let t = String(n ?? "");
2479
+ if (!t) return /* @__PURE__ */ I("span", {
2449
2480
  style: {
2450
2481
  fontSize: 12.5,
2451
2482
  color: "var(--text-4)"
2452
2483
  },
2453
2484
  children: "—"
2454
2485
  });
2455
- let r = o === "markdown" ? /* @__PURE__ */ I(Gt, { content: n }) : o === "code" ? /* @__PURE__ */ I("pre", {
2486
+ let r = c === "markdown" ? /* @__PURE__ */ I(Gt, { content: t }) : c === "code" ? /* @__PURE__ */ I("pre", {
2456
2487
  className: "mono",
2457
2488
  style: {
2458
2489
  fontSize: 12,
@@ -2466,7 +2497,7 @@ function un({ field: e, value: t, mode: n, onChange: r, fill: i, compact: a }) {
2466
2497
  overflowY: "auto",
2467
2498
  whiteSpace: "pre"
2468
2499
  },
2469
- children: n
2500
+ children: t
2470
2501
  }) : /* @__PURE__ */ I("p", {
2471
2502
  style: {
2472
2503
  fontSize: 12.5,
@@ -2474,7 +2505,7 @@ function un({ field: e, value: t, mode: n, onChange: r, fill: i, compact: a }) {
2474
2505
  wordBreak: "break-word",
2475
2506
  margin: 0
2476
2507
  },
2477
- children: n
2508
+ children: t
2478
2509
  });
2479
2510
  return e.copyable ? /* @__PURE__ */ L("div", {
2480
2511
  style: { position: "relative" },
@@ -2485,31 +2516,39 @@ function un({ field: e, value: t, mode: n, onChange: r, fill: i, compact: a }) {
2485
2516
  right: 0
2486
2517
  },
2487
2518
  children: /* @__PURE__ */ I(cn, {
2488
- value: n,
2519
+ value: t,
2489
2520
  size: "sm"
2490
2521
  })
2491
2522
  })]
2492
2523
  }) : r;
2493
2524
  }
2494
- return a ? /* @__PURE__ */ I(Z, {
2495
- value: String(t ?? ""),
2496
- onChange: (e) => r?.(e)
2497
- }) : /* @__PURE__ */ I(we, {
2498
- value: String(t ?? ""),
2499
- onChange: (e) => r?.(e),
2500
- rows: o === "markdown" || o === "code" ? 10 : 4,
2501
- fill: i
2525
+ if (o) return /* @__PURE__ */ I(Q, {
2526
+ id: s,
2527
+ name: t,
2528
+ "aria-required": e.required || void 0,
2529
+ value: String(n ?? ""),
2530
+ onChange: (e) => i?.(e)
2531
+ });
2532
+ let l = c === "markdown" || c === "code" ? 10 : 4;
2533
+ return /* @__PURE__ */ I(Ce, {
2534
+ id: s,
2535
+ name: t,
2536
+ ariaRequired: e.required,
2537
+ value: String(n ?? ""),
2538
+ onChange: (e) => i?.(e),
2539
+ rows: l,
2540
+ fill: a
2502
2541
  });
2503
2542
  }
2504
2543
  //#endregion
2505
2544
  //#region src/components/fields/EnumField.tsx
2506
2545
  var dn = "__declarion_enum_null__";
2507
- function fn({ field: e, value: t, mode: n, onChange: r }) {
2508
- let i = e.values ?? [], a = i.find((e) => e.code === t);
2509
- if (n === "display") return a ? /* @__PURE__ */ I(q, {
2510
- tone: a.color ?? "slate",
2546
+ function fn({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }) {
2547
+ let o = e.values ?? [], s = o.find((e) => e.code === t);
2548
+ if (n === "display") return s ? /* @__PURE__ */ I(J, {
2549
+ tone: s.color ?? "slate",
2511
2550
  size: "xs",
2512
- children: Q(a.name)
2551
+ children: $(s.name)
2513
2552
  }) : /* @__PURE__ */ I("span", {
2514
2553
  style: {
2515
2554
  fontSize: 12.5,
@@ -2517,53 +2556,65 @@ function fn({ field: e, value: t, mode: n, onChange: r }) {
2517
2556
  },
2518
2557
  children: "—"
2519
2558
  });
2520
- let o = !e.required;
2521
- return /* @__PURE__ */ I(Te, {
2522
- value: t != null && t !== "" ? String(t) : dn,
2523
- options: [...o ? [{
2524
- value: dn,
2525
- label: "— None —"
2526
- }] : [], ...i.map((e) => ({
2527
- value: e.code,
2528
- label: Q(e.name) || e.code
2529
- }))],
2559
+ let c = !e.required, l = t != null && t !== "" ? String(t) : dn, u = [...c ? [{
2560
+ value: dn,
2561
+ label: "— None —"
2562
+ }] : [], ...o.map((e) => ({
2563
+ value: e.code,
2564
+ label: $(e.name) || e.code
2565
+ }))];
2566
+ return /* @__PURE__ */ I(we, {
2567
+ id: i,
2568
+ "aria-labelledby": a,
2569
+ "aria-required": e.required || void 0,
2570
+ value: l,
2571
+ options: u,
2530
2572
  onChange: (e) => r?.(e === dn ? null : e),
2531
2573
  placeholder: "Select…"
2532
2574
  });
2533
2575
  }
2534
2576
  //#endregion
2535
2577
  //#region src/components/fields/EmailField.tsx
2536
- function pn({ value: e, onChange: t }) {
2537
- return /* @__PURE__ */ I(Z, {
2578
+ function pn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2579
+ return /* @__PURE__ */ I(Q, {
2580
+ id: i,
2581
+ name: t,
2582
+ "aria-required": e.required || void 0,
2538
2583
  type: "email",
2539
- value: String(e ?? ""),
2540
- onChange: (e) => t?.(e)
2584
+ value: String(n ?? ""),
2585
+ onChange: (e) => r?.(e)
2541
2586
  });
2542
2587
  }
2543
2588
  //#endregion
2544
2589
  //#region src/components/fields/UrlField.tsx
2545
- function mn({ value: e, onChange: t }) {
2546
- return /* @__PURE__ */ I(Z, {
2590
+ function mn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2591
+ return /* @__PURE__ */ I(Q, {
2592
+ id: i,
2593
+ name: t,
2594
+ "aria-required": e.required || void 0,
2547
2595
  type: "url",
2548
- value: String(e ?? ""),
2549
- onChange: (e) => t?.(e),
2596
+ value: String(n ?? ""),
2597
+ onChange: (e) => r?.(e),
2550
2598
  placeholder: "https://"
2551
2599
  });
2552
2600
  }
2553
2601
  //#endregion
2554
2602
  //#region src/components/fields/PhoneField.tsx
2555
- function hn({ value: e, onChange: t }) {
2556
- return /* @__PURE__ */ I(Z, {
2603
+ function hn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2604
+ return /* @__PURE__ */ I(Q, {
2605
+ id: i,
2606
+ name: t,
2607
+ "aria-required": e.required || void 0,
2557
2608
  type: "tel",
2558
- value: String(e ?? ""),
2559
- onChange: (e) => t?.(e),
2609
+ value: String(n ?? ""),
2610
+ onChange: (e) => r?.(e),
2560
2611
  placeholder: "+1 555 555 5555"
2561
2612
  });
2562
2613
  }
2563
2614
  //#endregion
2564
2615
  //#region src/lib/timestamp.ts
2565
2616
  function gn(e = /* @__PURE__ */ new Date()) {
2566
- return H(e);
2617
+ return U(e);
2567
2618
  }
2568
2619
  function _n(e) {
2569
2620
  let t = e.match(/([+-]\d{2}:\d{2})$/), n = e.endsWith("Z");
@@ -2613,10 +2664,10 @@ function vn(e, t = /* @__PURE__ */ new Date()) {
2613
2664
  }
2614
2665
  let r = _n(typeof e == "string" ? e : n.toISOString()), i = t.getTime() - n.getTime();
2615
2666
  return Math.abs(i) > 720 * 60 * 60 * 1e3 ? {
2616
- text: H(n, { representation: "date" }),
2667
+ text: U(n, { representation: "date" }),
2617
2668
  absolute: r
2618
2669
  } : {
2619
- text: ne(n, { addSuffix: !0 }),
2670
+ text: te(n, { addSuffix: !0 }),
2620
2671
  absolute: r
2621
2672
  };
2622
2673
  }
@@ -2712,20 +2763,20 @@ function Cn(e, t) {
2712
2763
  let r = n.getFullYear(), i = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0");
2713
2764
  return t ? `${r}-${i}-${a}` : `${r}-${i}-${a}T${String(n.getHours()).padStart(2, "0")}:${String(n.getMinutes()).padStart(2, "0")}`;
2714
2765
  }
2715
- function wn({ field: e, value: t, mode: n, onChange: r }) {
2716
- let i = e.type === "date", a = !!e.timezone;
2717
- if (n === "display") {
2718
- if (!t) return /* @__PURE__ */ I("span", {
2766
+ function wn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2767
+ let o = e.type === "date", s = !!e.timezone;
2768
+ if (r === "display") {
2769
+ if (!n) return /* @__PURE__ */ I("span", {
2719
2770
  style: {
2720
2771
  fontSize: 12.5,
2721
2772
  color: "var(--text-4)"
2722
2773
  },
2723
2774
  children: "—"
2724
2775
  });
2725
- let e = String(t), n = a ? yn(e, i) : bn(e, i), r = a && !i ? xn(e) : null;
2776
+ let e = String(n), t = s ? yn(e, o) : bn(e, o), r = s && !o ? xn(e) : null;
2726
2777
  return /* @__PURE__ */ L("span", {
2727
2778
  style: { fontSize: 12.5 },
2728
- children: [n, r && /* @__PURE__ */ I("span", {
2779
+ children: [t, r && /* @__PURE__ */ I("span", {
2729
2780
  style: {
2730
2781
  marginLeft: 4,
2731
2782
  color: "var(--text-3)"
@@ -2734,32 +2785,35 @@ function wn({ field: e, value: t, mode: n, onChange: r }) {
2734
2785
  })]
2735
2786
  });
2736
2787
  }
2737
- let o = t ? a ? Sn(String(t), i) : Cn(String(t), i) : "";
2738
- return /* @__PURE__ */ I(Z, {
2739
- type: i ? "date" : "datetime-local",
2740
- value: o,
2788
+ let c = n ? s ? Sn(String(n), o) : Cn(String(n), o) : "";
2789
+ return /* @__PURE__ */ I(Q, {
2790
+ id: a,
2791
+ name: t,
2792
+ "aria-required": e.required || void 0,
2793
+ type: o ? "date" : "datetime-local",
2794
+ value: c,
2741
2795
  onChange: (e) => {
2742
2796
  if (!e) {
2743
- r?.(null);
2797
+ i?.(null);
2744
2798
  return;
2745
2799
  }
2746
- if (a || i) {
2747
- r?.(e);
2800
+ if (s || o) {
2801
+ i?.(e);
2748
2802
  return;
2749
2803
  }
2750
2804
  let t = new Date(e);
2751
2805
  if (isNaN(t.getTime())) {
2752
- r?.(e);
2806
+ i?.(e);
2753
2807
  return;
2754
2808
  }
2755
- r?.(gn(t));
2809
+ i?.(gn(t));
2756
2810
  }
2757
2811
  });
2758
2812
  }
2759
2813
  //#endregion
2760
2814
  //#region src/components/fields/BoolField.tsx
2761
- function Tn({ value: e, mode: t, onChange: n }) {
2762
- let r = !!e;
2815
+ function Tn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
2816
+ let a = !!e;
2763
2817
  return t === "display" ? /* @__PURE__ */ L("span", {
2764
2818
  style: {
2765
2819
  display: "inline-flex",
@@ -2772,10 +2826,12 @@ function Tn({ value: e, mode: t, onChange: n }) {
2772
2826
  width: 6,
2773
2827
  height: 6,
2774
2828
  borderRadius: 999,
2775
- background: r ? "var(--success)" : "var(--text-4)"
2776
- } }), r ? "Yes" : "No"]
2777
- }) : /* @__PURE__ */ I(ve, {
2778
- value: r,
2829
+ background: a ? "var(--success)" : "var(--text-4)"
2830
+ } }), a ? "Yes" : "No"]
2831
+ }) : /* @__PURE__ */ I(_e, {
2832
+ id: r,
2833
+ ariaLabelledby: i,
2834
+ value: a,
2779
2835
  onChange: (e) => n?.(e)
2780
2836
  });
2781
2837
  }
@@ -2794,8 +2850,8 @@ function En(e) {
2794
2850
  return i !== void 0 && (o += `.${i}`), o;
2795
2851
  }
2796
2852
  var Dn = new Intl.NumberFormat();
2797
- function On({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a }) {
2798
- let o = e.display?.widget === "money", s = e.type === "decimal" || o, c = a?.$units?.[t], l = !c && e.unit ? e.unit.display || e.unit.storage : void 0, u = c || (l && !l.startsWith("$") ? l : void 0);
2853
+ function On({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
2854
+ 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);
2799
2855
  if (r === "display") {
2800
2856
  if (n == null) return /* @__PURE__ */ I("span", {
2801
2857
  style: {
@@ -2805,7 +2861,7 @@ function On({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a
2805
2861
  children: "—"
2806
2862
  });
2807
2863
  let e;
2808
- if (s && typeof n == "string") e = En(n);
2864
+ if (c && typeof n == "string") e = En(n);
2809
2865
  else {
2810
2866
  let t = Number(n);
2811
2867
  e = isNaN(t) ? null : Dn.format(t);
@@ -2819,16 +2875,19 @@ function On({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a
2819
2875
  fontSize: 12.5,
2820
2876
  fontVariantNumeric: "tabular-nums"
2821
2877
  },
2822
- children: [e, u && /* @__PURE__ */ I("span", {
2878
+ children: [e, d && /* @__PURE__ */ I("span", {
2823
2879
  style: {
2824
2880
  color: "var(--text-3)",
2825
2881
  marginLeft: 4
2826
2882
  },
2827
- children: u
2883
+ children: d
2828
2884
  })]
2829
2885
  });
2830
2886
  }
2831
- return s ? /* @__PURE__ */ I(Z, {
2887
+ return c ? /* @__PURE__ */ I(Q, {
2888
+ id: o,
2889
+ name: t,
2890
+ "aria-required": e.required || void 0,
2832
2891
  type: "text",
2833
2892
  inputMode: "decimal",
2834
2893
  pattern: "-?\\d*\\.?\\d*",
@@ -2836,7 +2895,10 @@ function On({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a
2836
2895
  onChange: (e) => {
2837
2896
  e === "" ? i?.(null) : i?.(e);
2838
2897
  }
2839
- }) : /* @__PURE__ */ I(Z, {
2898
+ }) : /* @__PURE__ */ I(Q, {
2899
+ id: o,
2900
+ name: t,
2901
+ "aria-required": e.required || void 0,
2840
2902
  type: "number",
2841
2903
  step: e.type === "float" ? "0.01" : "1",
2842
2904
  value: n == null ? "" : String(n),
@@ -2867,72 +2929,75 @@ function An(e) {
2867
2929
  }
2868
2930
  //#endregion
2869
2931
  //#region src/components/fields/RefField.tsx
2870
- function jn({ field: e, value: t, mode: n, onChange: r, refs: i }) {
2871
- let a = e.ref?.entity, o = An(a), s = e.display?.ref_display_field ?? e.ref?.display?.field ?? o?.display?.display_field, c = j(() => o ? [...o.fields].find(([, e]) => e.primary)?.[0] ?? "id" : "id", [o]), { data: l, isLoading: u } = kn(n === "edit" ? a : void 0, {
2932
+ function jn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, labelId: o }) {
2933
+ let s = e.ref?.entity, c = An(s), l = e.display?.ref_display_field ?? e.ref?.display?.field ?? c?.display?.display_field, u = j(() => c ? [...c.fields].find(([, e]) => e.primary)?.[0] ?? "id" : "id", [c]), { data: d, isLoading: f } = kn(n === "edit" ? s : void 0, {
2872
2934
  per_page: 200,
2873
- sort: s ? `${s}:asc` : void 0
2874
- }), d = j(() => l?.data ?? [], [l?.data]), f = j(() => {
2935
+ sort: l ? `${l}:asc` : void 0
2936
+ }), p = j(() => d?.data ?? [], [d?.data]), m = j(() => {
2875
2937
  if (t == null) return "—";
2876
2938
  let e = String(t);
2877
- if (i && a) {
2878
- let t = i[a];
2939
+ if (i && s) {
2940
+ let t = i[s];
2879
2941
  if (t) {
2880
2942
  let n = t[e];
2881
- if (n) return ze(n, s, e);
2943
+ if (n) return Re(n, l, e);
2882
2944
  }
2883
2945
  }
2884
- if (d.length > 0) {
2885
- let n = d.find((t) => String(t[c]) === e);
2886
- if (n) return ze(n, s, String(t));
2946
+ if (p.length > 0) {
2947
+ let n = p.find((t) => String(t[u]) === e);
2948
+ if (n) return Re(n, l, String(t));
2887
2949
  }
2888
2950
  return e;
2889
2951
  }, [
2890
2952
  t,
2891
2953
  i,
2892
- a,
2893
2954
  s,
2894
- d,
2895
- c
2955
+ l,
2956
+ p,
2957
+ u
2896
2958
  ]);
2897
2959
  if (n === "display") return /* @__PURE__ */ I("span", {
2898
2960
  style: { fontSize: 12.5 },
2899
- children: f
2961
+ children: m
2900
2962
  });
2901
- let p = String(t ?? ""), m = d.some((e) => String(e[c]) === p);
2902
- return /* @__PURE__ */ I(Te, {
2903
- value: p,
2904
- options: [
2905
- {
2906
- value: "",
2907
- label: "Select…"
2908
- },
2909
- ...u && p ? [{
2910
- value: p,
2911
- label: f
2912
- }] : [],
2913
- ...!u && p && !m ? [{
2914
- value: p,
2915
- label: f
2916
- }] : [],
2917
- ...d.map((e) => {
2918
- let t = String(e[c]);
2919
- return {
2920
- value: t,
2921
- label: ze(e, s, t)
2922
- };
2923
- })
2924
- ],
2963
+ let h = String(t ?? ""), g = p.some((e) => String(e[u]) === h), _ = [
2964
+ {
2965
+ value: "",
2966
+ label: "Select…"
2967
+ },
2968
+ ...f && h ? [{
2969
+ value: h,
2970
+ label: m
2971
+ }] : [],
2972
+ ...!f && h && !g ? [{
2973
+ value: h,
2974
+ label: m
2975
+ }] : [],
2976
+ ...p.map((e) => {
2977
+ let t = String(e[u]);
2978
+ return {
2979
+ value: t,
2980
+ label: Re(e, l, t)
2981
+ };
2982
+ })
2983
+ ];
2984
+ return /* @__PURE__ */ I(we, {
2985
+ id: a,
2986
+ "aria-labelledby": o,
2987
+ "aria-required": e.required || void 0,
2988
+ value: h,
2989
+ options: _,
2925
2990
  onChange: (e) => r?.(e || null),
2926
2991
  placeholder: "Select…"
2927
2992
  });
2928
2993
  }
2929
2994
  //#endregion
2930
2995
  //#region src/components/fields/JsonField.tsx
2931
- var Mn = D(() => import("./JsonEditor-Tew1oNqZ.js").then((e) => ({ default: e.JsonEditor })));
2996
+ var Mn = D(() => import("./JsonEditor-CexL5HXN.js").then((e) => ({ default: e.JsonEditor })));
2932
2997
  function Nn() {
2933
2998
  return /* @__PURE__ */ I("div", { className: "h-20 rounded-md border border-border bg-muted animate-pulse" });
2934
2999
  }
2935
- function Pn({ value: e, mode: t, onChange: n }) {
3000
+ function Pn({ value: e, mode: t, onChange: n, fieldId: r }) {
2936
3001
  return t === "display" ? e == null || typeof e == "string" && !e ? /* @__PURE__ */ I("span", {
2937
3002
  className: "text-sm text-muted-foreground",
2938
3003
  children: "-"
@@ -2946,7 +3011,8 @@ function Pn({ value: e, mode: t, onChange: n }) {
2946
3011
  fallback: /* @__PURE__ */ I(Nn, {}),
2947
3012
  children: /* @__PURE__ */ I(Mn, {
2948
3013
  value: e,
2949
- onChange: n
3014
+ onChange: n,
3015
+ id: r
2950
3016
  })
2951
3017
  });
2952
3018
  }
@@ -2955,22 +3021,22 @@ function Pn({ value: e, mode: t, onChange: n }) {
2955
3021
  function Fn(e) {
2956
3022
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
2957
3023
  }
2958
- function In({ value: e, mode: t, onChange: n }) {
2959
- let { data: r } = xt(), i = r?.languages?.length ? r.languages : [{
3024
+ function In({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3025
+ let { data: o } = xt(), s = o?.languages?.length ? o.languages : [{
2960
3026
  code: "en",
2961
3027
  name: { en: "English" }
2962
- }], a = Fn(e);
2963
- if (t === "display") return /* @__PURE__ */ I("span", {
3028
+ }], c = Fn(n);
3029
+ if (r === "display") return /* @__PURE__ */ I("span", {
2964
3030
  style: { fontSize: 12.5 },
2965
- children: Object.values(a)[0] ?? "—"
3031
+ children: Object.values(c)[0] ?? "—"
2966
3032
  });
2967
- let o = (e, t) => {
2968
- let r = {
2969
- ...a,
3033
+ let l = (e, t) => {
3034
+ let n = {
3035
+ ...c,
2970
3036
  [e]: t
2971
3037
  };
2972
- for (let e of Object.keys(r)) r[e] || delete r[e];
2973
- n?.(Object.keys(r).length > 0 ? r : null);
3038
+ for (let e of Object.keys(n)) n[e] || delete n[e];
3039
+ i?.(Object.keys(n).length > 0 ? n : null);
2974
3040
  };
2975
3041
  return /* @__PURE__ */ I("div", {
2976
3042
  style: {
@@ -2978,32 +3044,39 @@ function In({ value: e, mode: t, onChange: n }) {
2978
3044
  flexDirection: "column",
2979
3045
  gap: 6
2980
3046
  },
2981
- children: i.map((e) => /* @__PURE__ */ L("div", {
2982
- style: {
2983
- display: "flex",
2984
- alignItems: "center",
2985
- gap: 8
2986
- },
2987
- children: [/* @__PURE__ */ I("span", {
3047
+ children: s.map((n, r) => {
3048
+ let i = a ? r === 0 ? a : `${a}-${n.code}` : void 0;
3049
+ return /* @__PURE__ */ L("div", {
2988
3050
  style: {
2989
- width: 24,
2990
- fontSize: 10.5,
2991
- color: "var(--text-3)",
2992
- textTransform: "uppercase",
2993
- flexShrink: 0,
2994
- letterSpacing: "0.04em",
2995
- fontWeight: 500
3051
+ display: "flex",
3052
+ alignItems: "center",
3053
+ gap: 8
2996
3054
  },
2997
- children: e.code
2998
- }), /* @__PURE__ */ I("div", {
2999
- style: { flex: 1 },
3000
- children: /* @__PURE__ */ I(Z, {
3001
- value: a[e.code] ?? "",
3002
- onChange: (t) => o(e.code, t),
3003
- placeholder: `Value (${e.code})`
3004
- })
3005
- })]
3006
- }, e.code))
3055
+ children: [/* @__PURE__ */ I("label", {
3056
+ htmlFor: i,
3057
+ style: {
3058
+ width: 24,
3059
+ fontSize: 10.5,
3060
+ color: "var(--text-3)",
3061
+ textTransform: "uppercase",
3062
+ flexShrink: 0,
3063
+ letterSpacing: "0.04em",
3064
+ fontWeight: 500
3065
+ },
3066
+ children: n.code
3067
+ }), /* @__PURE__ */ I("div", {
3068
+ style: { flex: 1 },
3069
+ children: /* @__PURE__ */ I(Q, {
3070
+ id: i,
3071
+ name: t ? `${t}.${n.code}` : void 0,
3072
+ "aria-required": e.required && r === 0 ? !0 : void 0,
3073
+ value: c[n.code] ?? "",
3074
+ onChange: (e) => l(n.code, e),
3075
+ placeholder: `Value (${n.code})`
3076
+ })
3077
+ })]
3078
+ }, n.code);
3079
+ })
3007
3080
  });
3008
3081
  }
3009
3082
  //#endregion
@@ -3011,26 +3084,26 @@ function In({ value: e, mode: t, onChange: n }) {
3011
3084
  function Ln(e) {
3012
3085
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
3013
3086
  }
3014
- function Rn({ value: e, mode: t, onChange: n }) {
3015
- let { data: r } = xt(), i = r?.languages?.length ? r.languages : [{
3087
+ function Rn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3088
+ let { data: o } = xt(), s = o?.languages?.length ? o.languages : [{
3016
3089
  code: "en",
3017
3090
  name: { en: "English" }
3018
- }], a = Ln(e);
3019
- if (t === "display") return /* @__PURE__ */ I("p", {
3091
+ }], c = Ln(n);
3092
+ if (r === "display") return /* @__PURE__ */ I("p", {
3020
3093
  style: {
3021
3094
  fontSize: 12.5,
3022
3095
  whiteSpace: "pre-wrap",
3023
3096
  margin: 0
3024
3097
  },
3025
- children: Object.values(a)[0] ?? "—"
3098
+ children: Object.values(c)[0] ?? "—"
3026
3099
  });
3027
- let o = (e, t) => {
3028
- let r = {
3029
- ...a,
3100
+ let l = (e, t) => {
3101
+ let n = {
3102
+ ...c,
3030
3103
  [e]: t
3031
3104
  };
3032
- for (let e of Object.keys(r)) r[e] || delete r[e];
3033
- n?.(Object.keys(r).length > 0 ? r : null);
3105
+ for (let e of Object.keys(n)) n[e] || delete n[e];
3106
+ i?.(Object.keys(n).length > 0 ? n : null);
3034
3107
  };
3035
3108
  return /* @__PURE__ */ I("div", {
3036
3109
  style: {
@@ -3038,50 +3111,59 @@ function Rn({ value: e, mode: t, onChange: n }) {
3038
3111
  flexDirection: "column",
3039
3112
  gap: 10
3040
3113
  },
3041
- children: i.map((e) => /* @__PURE__ */ L("div", {
3042
- style: {
3043
- display: "flex",
3044
- flexDirection: "column",
3045
- gap: 4
3046
- },
3047
- children: [/* @__PURE__ */ I("span", {
3114
+ children: s.map((n, r) => {
3115
+ let i = a ? r === 0 ? a : `${a}-${n.code}` : void 0;
3116
+ return /* @__PURE__ */ L("div", {
3048
3117
  style: {
3049
- fontSize: 10.5,
3050
- color: "var(--text-3)",
3051
- textTransform: "uppercase",
3052
- letterSpacing: "0.04em",
3053
- fontWeight: 500
3118
+ display: "flex",
3119
+ flexDirection: "column",
3120
+ gap: 4
3054
3121
  },
3055
- children: e.code
3056
- }), /* @__PURE__ */ I(we, {
3057
- value: a[e.code] ?? "",
3058
- onChange: (t) => o(e.code, t),
3059
- placeholder: `Value (${e.code})`,
3060
- rows: 4
3061
- })]
3062
- }, e.code))
3122
+ children: [/* @__PURE__ */ I("label", {
3123
+ htmlFor: i,
3124
+ style: {
3125
+ fontSize: 10.5,
3126
+ color: "var(--text-3)",
3127
+ textTransform: "uppercase",
3128
+ letterSpacing: "0.04em",
3129
+ fontWeight: 500
3130
+ },
3131
+ children: n.code
3132
+ }), /* @__PURE__ */ I(Ce, {
3133
+ id: i,
3134
+ name: t ? `${t}.${n.code}` : void 0,
3135
+ ariaRequired: e.required && r === 0,
3136
+ value: c[n.code] ?? "",
3137
+ onChange: (e) => l(n.code, e),
3138
+ placeholder: `Value (${n.code})`,
3139
+ rows: 4
3140
+ })]
3141
+ }, n.code);
3142
+ })
3063
3143
  });
3064
3144
  }
3065
3145
  //#endregion
3066
3146
  //#region src/components/fields/StructureField.tsx
3067
3147
  function zn(e) {
3068
- let { field: t, value: n, mode: r, onChange: i, locale: a } = e, { data: o } = xt(), s = t.structure ? o?.structures?.[t.structure] : void 0;
3069
- return s ? t.array ? /* @__PURE__ */ I(Vn, {
3070
- structDef: s,
3148
+ let { field: t, value: n, mode: r, onChange: i, locale: a, fieldId: o } = e, { data: s } = xt(), c = t.structure ? s?.structures?.[t.structure] : void 0;
3149
+ return c ? t.array ? /* @__PURE__ */ I(Vn, {
3150
+ structDef: c,
3071
3151
  value: n,
3072
3152
  mode: r,
3073
3153
  onChange: i,
3074
- locale: a
3154
+ locale: a,
3155
+ fieldId: o
3075
3156
  }) : /* @__PURE__ */ I(Bn, {
3076
- structDef: s,
3157
+ structDef: c,
3077
3158
  value: n,
3078
3159
  mode: r,
3079
3160
  onChange: i,
3080
- locale: a
3161
+ locale: a,
3162
+ fieldId: o
3081
3163
  }) : /* @__PURE__ */ I(Pn, { ...e });
3082
3164
  }
3083
- function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3084
- let a = typeof t == "object" && t && !Array.isArray(t) ? t : {}, o = e.fields.names(), s = {
3165
+ function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3166
+ let o = typeof t == "object" && t && !Array.isArray(t) ? t : {}, s = e.fields.names(), c = {
3085
3167
  display: "flex",
3086
3168
  flexDirection: "column",
3087
3169
  gap: n === "display" ? 8 : 12,
@@ -3090,12 +3172,12 @@ function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3090
3172
  padding: 12,
3091
3173
  background: "var(--surface-2)"
3092
3174
  };
3093
- if (n === "display") return o.some((e) => a[e] != null && a[e] !== "") ? /* @__PURE__ */ I("div", {
3094
- style: s,
3095
- children: o.map((t) => {
3175
+ if (n === "display") return s.some((e) => o[e] != null && o[e] !== "") ? /* @__PURE__ */ I("div", {
3176
+ style: c,
3177
+ children: s.map((t) => {
3096
3178
  let n = e.fields.get(t);
3097
3179
  if (!n) return null;
3098
- let r = a[t];
3180
+ let r = o[t];
3099
3181
  return r == null ? null : /* @__PURE__ */ L("div", {
3100
3182
  style: {
3101
3183
  display: "flex",
@@ -3110,7 +3192,7 @@ function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3110
3192
  minWidth: 100,
3111
3193
  flexShrink: 0
3112
3194
  },
3113
- children: n.display ? Q(n.display.name) : t
3195
+ children: n.display ? $(n.display.name) : t
3114
3196
  }), /* @__PURE__ */ I("div", {
3115
3197
  style: {
3116
3198
  minWidth: 0,
@@ -3122,7 +3204,7 @@ function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3122
3204
  value: r,
3123
3205
  mode: "display",
3124
3206
  locale: i
3125
- }) : Ia({
3207
+ }) : La({
3126
3208
  field: n,
3127
3209
  fieldName: t,
3128
3210
  value: r,
@@ -3139,15 +3221,17 @@ function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3139
3221
  },
3140
3222
  children: "—"
3141
3223
  });
3142
- let c = (e) => (t) => {
3224
+ let l = (e) => (t) => {
3143
3225
  r?.({
3144
- ...a,
3226
+ ...o,
3145
3227
  [e]: t
3146
3228
  });
3147
3229
  };
3148
3230
  return /* @__PURE__ */ I("div", {
3149
- style: s,
3150
- children: o.map((t) => {
3231
+ style: c,
3232
+ id: a,
3233
+ role: "group",
3234
+ children: s.map((t) => {
3151
3235
  let n = e.fields.get(t);
3152
3236
  return n ? /* @__PURE__ */ L("div", {
3153
3237
  style: {
@@ -3155,31 +3239,31 @@ function Bn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3155
3239
  flexDirection: "column",
3156
3240
  gap: 2
3157
3241
  },
3158
- children: [/* @__PURE__ */ I(Se, {
3242
+ children: [/* @__PURE__ */ I(xe, {
3159
3243
  required: n.required,
3160
- children: n.display ? Q(n.display.name) : t
3244
+ children: n.display ? $(n.display.name) : t
3161
3245
  }), n.type === "structure" && n.structure ? /* @__PURE__ */ I(zn, {
3162
3246
  field: n,
3163
3247
  fieldName: t,
3164
- value: a[t],
3248
+ value: o[t],
3165
3249
  mode: "edit",
3166
- onChange: c(t),
3250
+ onChange: l(t),
3167
3251
  locale: i
3168
- }) : Ia({
3252
+ }) : La({
3169
3253
  field: n,
3170
3254
  fieldName: t,
3171
- value: a[t],
3255
+ value: o[t],
3172
3256
  mode: "edit",
3173
- onChange: c(t),
3257
+ onChange: l(t),
3174
3258
  locale: i
3175
3259
  })]
3176
3260
  }, t) : null;
3177
3261
  })
3178
3262
  });
3179
3263
  }
3180
- function Vn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3181
- let a = Array.isArray(t) ? t : [];
3182
- if (n === "display") return a.length === 0 ? /* @__PURE__ */ I("span", {
3264
+ function Vn({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3265
+ let o = Array.isArray(t) ? t : [];
3266
+ if (n === "display") return o.length === 0 ? /* @__PURE__ */ I("span", {
3183
3267
  style: {
3184
3268
  fontSize: 12.5,
3185
3269
  color: "var(--text-4)"
@@ -3191,20 +3275,20 @@ function Vn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3191
3275
  flexDirection: "column",
3192
3276
  gap: 8
3193
3277
  },
3194
- children: a.map((t, n) => /* @__PURE__ */ I(Bn, {
3278
+ children: o.map((t, n) => /* @__PURE__ */ I(Bn, {
3195
3279
  structDef: e,
3196
3280
  value: t,
3197
3281
  mode: "display",
3198
3282
  locale: i
3199
3283
  }, n))
3200
3284
  });
3201
- let o = (e) => (t) => {
3202
- let n = [...a];
3285
+ let s = (e) => (t) => {
3286
+ let n = [...o];
3203
3287
  n[e] = t, r?.(n);
3204
- }, s = () => {
3205
- r?.([...a, {}]);
3206
- }, c = (e) => () => {
3207
- let t = a.filter((t, n) => n !== e);
3288
+ }, c = () => {
3289
+ r?.([...o, {}]);
3290
+ }, l = (e) => () => {
3291
+ let t = o.filter((t, n) => n !== e);
3208
3292
  r?.(t);
3209
3293
  };
3210
3294
  return /* @__PURE__ */ L("div", {
@@ -3213,13 +3297,15 @@ function Vn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3213
3297
  flexDirection: "column",
3214
3298
  gap: 8
3215
3299
  },
3216
- children: [a.map((t, n) => /* @__PURE__ */ L("div", {
3300
+ id: a,
3301
+ role: "group",
3302
+ children: [o.map((t, n) => /* @__PURE__ */ L("div", {
3217
3303
  style: { position: "relative" },
3218
3304
  children: [/* @__PURE__ */ I(Bn, {
3219
3305
  structDef: e,
3220
3306
  value: t,
3221
3307
  mode: "edit",
3222
- onChange: o(n),
3308
+ onChange: s(n),
3223
3309
  locale: i
3224
3310
  }), /* @__PURE__ */ I("div", {
3225
3311
  style: {
@@ -3227,16 +3313,16 @@ function Vn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3227
3313
  top: 6,
3228
3314
  right: 6
3229
3315
  },
3230
- children: /* @__PURE__ */ I(K, {
3316
+ children: /* @__PURE__ */ I(q, {
3231
3317
  size: 24,
3232
- icon: /* @__PURE__ */ I(W.trash, { size: 12 }),
3233
- onClick: c(n),
3318
+ icon: /* @__PURE__ */ I(G.trash, { size: 12 }),
3319
+ onClick: l(n),
3234
3320
  title: "Remove"
3235
3321
  })
3236
3322
  })]
3237
- }, n)), /* @__PURE__ */ I("div", { children: /* @__PURE__ */ I(G, {
3238
- icon: /* @__PURE__ */ I(W.plus, { size: 13 }),
3239
- onClick: s,
3323
+ }, n)), /* @__PURE__ */ I("div", { children: /* @__PURE__ */ I(K, {
3324
+ icon: /* @__PURE__ */ I(G.plus, { size: 13 }),
3325
+ onClick: c,
3240
3326
  children: "Add"
3241
3327
  }) })]
3242
3328
  });
@@ -3244,9 +3330,9 @@ function Vn({ structDef: e, value: t, mode: n, onChange: r, locale: i }) {
3244
3330
  //#endregion
3245
3331
  //#region src/components/fields/SecretField.tsx
3246
3332
  var Hn = "[SET]";
3247
- function Un({ value: e, mode: t, onChange: n, record: r }) {
3248
- let [i, a] = N(""), o = r !== void 0, s = e === Hn || typeof e == "string" && e !== "";
3249
- return t === "display" ? s ? /* @__PURE__ */ I("span", {
3333
+ function Un({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3334
+ let [s, c] = N(""), l = a !== void 0, u = n === Hn || typeof n == "string" && n !== "";
3335
+ return r === "display" ? u ? /* @__PURE__ */ I("span", {
3250
3336
  className: "mono",
3251
3337
  style: {
3252
3338
  fontSize: 12.5,
@@ -3260,20 +3346,23 @@ function Un({ value: e, mode: t, onChange: n, record: r }) {
3260
3346
  fontStyle: "italic"
3261
3347
  },
3262
3348
  children: "Not set"
3263
- }) : /* @__PURE__ */ I(Ae, {
3264
- value: i,
3349
+ }) : /* @__PURE__ */ I(ke, {
3350
+ id: o,
3351
+ name: t,
3352
+ ariaRequired: e.required,
3353
+ value: s,
3265
3354
  onChange: (e) => {
3266
- a(e), o && e === "" ? n?.(s ? Hn : "") : n?.(e);
3355
+ c(e), l && e === "" ? i?.(u ? Hn : "") : i?.(e);
3267
3356
  },
3268
- placeholder: o ? "Leave blank to keep existing value" : "Enter value"
3357
+ placeholder: l ? "Leave blank to keep existing value" : "Enter value"
3269
3358
  });
3270
3359
  }
3271
3360
  //#endregion
3272
3361
  //#region src/components/fields/PasswordField.tsx
3273
3362
  var Wn = "[SET]";
3274
- function Gn({ value: e, mode: t, onChange: n, record: r }) {
3275
- let [i, a] = N(""), o = r !== void 0, s = e === Wn || typeof e == "string" && e !== "";
3276
- return t === "display" ? s ? /* @__PURE__ */ I("span", {
3363
+ function Gn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3364
+ let [s, c] = N(""), l = a !== void 0, u = n === Wn || typeof n == "string" && n !== "";
3365
+ return r === "display" ? u ? /* @__PURE__ */ I("span", {
3277
3366
  className: "mono",
3278
3367
  style: {
3279
3368
  fontSize: 12.5,
@@ -3287,12 +3376,15 @@ function Gn({ value: e, mode: t, onChange: n, record: r }) {
3287
3376
  fontStyle: "italic"
3288
3377
  },
3289
3378
  children: "Not set"
3290
- }) : /* @__PURE__ */ I(Ae, {
3291
- value: i,
3379
+ }) : /* @__PURE__ */ I(ke, {
3380
+ id: o,
3381
+ name: t,
3382
+ ariaRequired: e.required,
3383
+ value: s,
3292
3384
  onChange: (e) => {
3293
- a(e), o && e === "" ? n?.(s ? Wn : "") : n?.(e);
3385
+ c(e), l && e === "" ? i?.(u ? Wn : "") : i?.(e);
3294
3386
  },
3295
- placeholder: o ? "Leave blank to keep existing value" : "Enter password"
3387
+ placeholder: l ? "Leave blank to keep existing value" : "Enter password"
3296
3388
  });
3297
3389
  }
3298
3390
  //#endregion
@@ -3300,9 +3392,9 @@ function Gn({ value: e, mode: t, onChange: n, record: r }) {
3300
3392
  function Kn(e) {
3301
3393
  return Array.isArray(e) ? e.filter((e) => e != null).map(String) : [];
3302
3394
  }
3303
- function qn({ value: e, mode: t, onChange: n }) {
3304
- let r = Kn(e), [i, a] = N("");
3305
- if (t === "display") return r.length === 0 ? /* @__PURE__ */ I("span", {
3395
+ function qn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3396
+ let o = Kn(n), [s, c] = N("");
3397
+ if (r === "display") return o.length === 0 ? /* @__PURE__ */ I("span", {
3306
3398
  style: {
3307
3399
  fontSize: 12.5,
3308
3400
  color: "var(--text-4)"
@@ -3314,16 +3406,16 @@ function qn({ value: e, mode: t, onChange: n }) {
3314
3406
  flexWrap: "wrap",
3315
3407
  gap: 4
3316
3408
  },
3317
- children: r.map((e, t) => /* @__PURE__ */ I(X, {
3409
+ children: o.map((e, t) => /* @__PURE__ */ I(Z, {
3318
3410
  tone: "slate",
3319
3411
  children: e
3320
3412
  }, t))
3321
3413
  });
3322
- let o = () => {
3323
- let e = i.trim();
3324
- e && (n?.([...r, e]), a(""));
3325
- }, s = (e) => {
3326
- n?.(r.filter((t, n) => n !== e));
3414
+ let l = () => {
3415
+ let e = s.trim();
3416
+ e && (i?.([...o, e]), c(""));
3417
+ }, u = (e) => {
3418
+ i?.(o.filter((t, n) => n !== e));
3327
3419
  };
3328
3420
  return /* @__PURE__ */ L("div", {
3329
3421
  style: {
@@ -3331,15 +3423,15 @@ function qn({ value: e, mode: t, onChange: n }) {
3331
3423
  flexDirection: "column",
3332
3424
  gap: 6
3333
3425
  },
3334
- children: [r.length > 0 && /* @__PURE__ */ I("div", {
3426
+ children: [o.length > 0 && /* @__PURE__ */ I("div", {
3335
3427
  style: {
3336
3428
  display: "flex",
3337
3429
  flexWrap: "wrap",
3338
3430
  gap: 4
3339
3431
  },
3340
- children: r.map((e, t) => /* @__PURE__ */ I(X, {
3432
+ children: o.map((e, t) => /* @__PURE__ */ I(Z, {
3341
3433
  tone: "slate",
3342
- onRemove: () => s(t),
3434
+ onRemove: () => u(t),
3343
3435
  children: e
3344
3436
  }, t))
3345
3437
  }), /* @__PURE__ */ L("div", {
@@ -3349,17 +3441,20 @@ function qn({ value: e, mode: t, onChange: n }) {
3349
3441
  },
3350
3442
  children: [/* @__PURE__ */ I("div", {
3351
3443
  style: { flex: 1 },
3352
- children: /* @__PURE__ */ I(Z, {
3353
- value: i,
3354
- onChange: a,
3444
+ children: /* @__PURE__ */ I(Q, {
3445
+ id: a,
3446
+ name: t,
3447
+ "aria-required": e.required || void 0,
3448
+ value: s,
3449
+ onChange: c,
3355
3450
  onKeyDown: (e) => {
3356
- e.key === "Enter" && (e.preventDefault(), o());
3451
+ e.key === "Enter" && (e.preventDefault(), l());
3357
3452
  },
3358
3453
  placeholder: "Add item…"
3359
3454
  })
3360
- }), /* @__PURE__ */ I(G, {
3361
- icon: /* @__PURE__ */ I(W.plus, { size: 13 }),
3362
- onClick: o,
3455
+ }), /* @__PURE__ */ I(K, {
3456
+ icon: /* @__PURE__ */ I(G.plus, { size: 13 }),
3457
+ onClick: l,
3363
3458
  children: "Add"
3364
3459
  })]
3365
3460
  })]
@@ -3370,9 +3465,9 @@ function qn({ value: e, mode: t, onChange: n }) {
3370
3465
  function Jn(e) {
3371
3466
  return Array.isArray(e) ? e.filter((e) => e != null).map(Number).filter((e) => !isNaN(e)) : [];
3372
3467
  }
3373
- function Yn({ value: e, mode: t, onChange: n }) {
3374
- let r = Jn(e), [i, a] = N("");
3375
- if (t === "display") return r.length === 0 ? /* @__PURE__ */ I("span", {
3468
+ function Yn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3469
+ let o = Jn(n), [s, c] = N("");
3470
+ if (r === "display") return o.length === 0 ? /* @__PURE__ */ I("span", {
3376
3471
  style: {
3377
3472
  fontSize: 12.5,
3378
3473
  color: "var(--text-4)"
@@ -3384,18 +3479,18 @@ function Yn({ value: e, mode: t, onChange: n }) {
3384
3479
  flexWrap: "wrap",
3385
3480
  gap: 4
3386
3481
  },
3387
- children: r.map((e, t) => /* @__PURE__ */ I(X, {
3482
+ children: o.map((e, t) => /* @__PURE__ */ I(Z, {
3388
3483
  tone: "slate",
3389
3484
  children: e
3390
3485
  }, t))
3391
3486
  });
3392
- let o = () => {
3393
- let e = i.trim();
3487
+ let l = () => {
3488
+ let e = s.trim();
3394
3489
  if (!e) return;
3395
3490
  let t = Number(e);
3396
- isNaN(t) || !Number.isInteger(t) || (n?.([...r, t]), a(""));
3397
- }, s = (e) => {
3398
- n?.(r.filter((t, n) => n !== e));
3491
+ isNaN(t) || !Number.isInteger(t) || (i?.([...o, t]), c(""));
3492
+ }, u = (e) => {
3493
+ i?.(o.filter((t, n) => n !== e));
3399
3494
  };
3400
3495
  return /* @__PURE__ */ L("div", {
3401
3496
  style: {
@@ -3403,15 +3498,15 @@ function Yn({ value: e, mode: t, onChange: n }) {
3403
3498
  flexDirection: "column",
3404
3499
  gap: 6
3405
3500
  },
3406
- children: [r.length > 0 && /* @__PURE__ */ I("div", {
3501
+ children: [o.length > 0 && /* @__PURE__ */ I("div", {
3407
3502
  style: {
3408
3503
  display: "flex",
3409
3504
  flexWrap: "wrap",
3410
3505
  gap: 4
3411
3506
  },
3412
- children: r.map((e, t) => /* @__PURE__ */ I(X, {
3507
+ children: o.map((e, t) => /* @__PURE__ */ I(Z, {
3413
3508
  tone: "slate",
3414
- onRemove: () => s(t),
3509
+ onRemove: () => u(t),
3415
3510
  children: e
3416
3511
  }, t))
3417
3512
  }), /* @__PURE__ */ L("div", {
@@ -3421,18 +3516,21 @@ function Yn({ value: e, mode: t, onChange: n }) {
3421
3516
  },
3422
3517
  children: [/* @__PURE__ */ I("div", {
3423
3518
  style: { flex: 1 },
3424
- children: /* @__PURE__ */ I(Z, {
3519
+ children: /* @__PURE__ */ I(Q, {
3520
+ id: a,
3521
+ name: t,
3522
+ "aria-required": e.required || void 0,
3425
3523
  type: "number",
3426
- value: i,
3427
- onChange: a,
3524
+ value: s,
3525
+ onChange: c,
3428
3526
  onKeyDown: (e) => {
3429
- e.key === "Enter" && (e.preventDefault(), o());
3527
+ e.key === "Enter" && (e.preventDefault(), l());
3430
3528
  },
3431
3529
  placeholder: "Add number…"
3432
3530
  })
3433
- }), /* @__PURE__ */ I(G, {
3434
- icon: /* @__PURE__ */ I(W.plus, { size: 13 }),
3435
- onClick: o,
3531
+ }), /* @__PURE__ */ I(K, {
3532
+ icon: /* @__PURE__ */ I(G.plus, { size: 13 }),
3533
+ onClick: l,
3436
3534
  children: "Add"
3437
3535
  })]
3438
3536
  })]
@@ -3441,47 +3539,47 @@ function Yn({ value: e, mode: t, onChange: n }) {
3441
3539
  //#endregion
3442
3540
  //#region src/components/file-widgets/registry.ts
3443
3541
  var Xn = /* @__PURE__ */ new Map();
3444
- function $(e, t) {
3542
+ function Zn(e, t) {
3445
3543
  Xn.set(e, t);
3446
3544
  }
3447
- function Zn(e) {
3545
+ function Qn(e) {
3448
3546
  return Xn.get(e);
3449
3547
  }
3450
- function Qn(e) {
3548
+ function $n(e) {
3451
3549
  return Xn.has(e);
3452
3550
  }
3453
3551
  //#endregion
3454
3552
  //#region src/components/file-widgets/cropper.ts
3455
- var $n = async ({ file: e }) => ({
3553
+ var er = async ({ file: e }) => ({
3456
3554
  blob: e,
3457
3555
  filename: e.name
3458
- }), er = $n;
3459
- function tr(e) {
3460
- er = e ?? $n;
3556
+ }), tr = er;
3557
+ function nr(e) {
3558
+ tr = e ?? er;
3461
3559
  }
3462
- function nr() {
3463
- return er;
3560
+ function rr() {
3561
+ return tr;
3464
3562
  }
3465
3563
  //#endregion
3466
3564
  //#region src/components/file-widgets/ImageWidget.tsx
3467
- function rr(e, t) {
3565
+ function ir(e, t) {
3468
3566
  return u(e, t);
3469
3567
  }
3470
- function ir(e) {
3568
+ function ar(e) {
3471
3569
  let t = e.trim().split(/\s+/).filter(Boolean);
3472
3570
  return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[1][0]).toUpperCase();
3473
3571
  }
3474
- function ar(e) {
3475
- let { field: n, fieldName: o, value: l, onChange: u, mode: p, alt: h, disabled: g, visual: _, uploadFieldCode: v, uploadSlotCode: y } = e, b = f(l), [x, S] = N("idle"), [C, w] = N(null), [T, E] = N(null), [D, A] = N(null), [P, F] = N(!1), R = M(null), z = M(!1), B = M(null), { register: te, unregister: V, isDraft: ne } = c();
3572
+ function or(e) {
3573
+ let { field: n, fieldName: o, value: l, onChange: u, mode: p, alt: h, disabled: g, visual: _, uploadFieldCode: v, uploadSlotCode: y } = e, b = f(l), [x, S] = N("idle"), [C, w] = N(null), [T, E] = N(null), [D, A] = N(null), [P, F] = N(!1), R = M(null), z = M(!1), B = M(null), { register: V, unregister: H, isDraft: te } = c();
3476
3574
  k(() => () => {
3477
3575
  R.current && R.current.abort();
3478
3576
  }, []);
3479
- let H = j(() => a(b, h, n.display?.placeholder || o), [
3577
+ let U = j(() => a(b, h, n.display?.placeholder || o), [
3480
3578
  h,
3481
3579
  n.display?.placeholder,
3482
3580
  o,
3483
3581
  b
3484
- ]), re = (n.accepts ?? ["image/*"]).join(","), U = O(async (r) => {
3582
+ ]), ne = (n.accepts ?? ["image/*"]).join(","), W = O(async (r) => {
3485
3583
  let i = ee(r, n.accepts, n.max_size_bytes);
3486
3584
  if (i) {
3487
3585
  E(i), S("error");
@@ -3489,9 +3587,9 @@ function ar(e) {
3489
3587
  }
3490
3588
  let a = r;
3491
3589
  if (n.display?.crop_on_upload) try {
3492
- let { blob: e, filename: t } = await nr()({
3590
+ let { blob: e, filename: t } = await rr()({
3493
3591
  file: r,
3494
- aspectRatio: lr(n.display.aspect_ratio)
3592
+ aspectRatio: ur(n.display.aspect_ratio)
3495
3593
  });
3496
3594
  a = new File([e], t, { type: e.type || r.type });
3497
3595
  } catch (e) {
@@ -3518,10 +3616,10 @@ function ar(e) {
3518
3616
  onProgress: w
3519
3617
  });
3520
3618
  if (z.current) {
3521
- s(r.id).catch(() => {}), V(r.id);
3619
+ s(r.id).catch(() => {}), H(r.id);
3522
3620
  return;
3523
3621
  }
3524
- b && ne(b.id) && (s(b.id).catch(() => {}), V(b.id)), te(r.id, () => s(r.id)), A(r.id), S("idle"), w(null);
3622
+ b && te(b.id) && (s(b.id).catch(() => {}), H(b.id)), V(r.id, () => s(r.id)), A(r.id), S("idle"), w(null);
3525
3623
  let i = {
3526
3624
  id: r.id,
3527
3625
  filename: r.filename,
@@ -3553,48 +3651,48 @@ function ar(e) {
3553
3651
  o,
3554
3652
  u,
3555
3653
  e.entityCode,
3654
+ V,
3556
3655
  te,
3557
- ne,
3558
3656
  b,
3559
- V,
3657
+ H,
3560
3658
  v,
3561
3659
  y
3562
- ]), W = O(() => {
3563
- x === "uploading" && R.current && (z.current = !0, R.current.abort(), R.current = null, S("idle"), w(null)), D && (s(D).catch(() => {}), V(D), A(null));
3660
+ ]), G = O(() => {
3661
+ x === "uploading" && R.current && (z.current = !0, R.current.abort(), R.current = null, S("idle"), w(null)), D && (s(D).catch(() => {}), H(D), A(null));
3564
3662
  }, [
3565
3663
  x,
3566
3664
  D,
3567
- V
3568
- ]), G = O(() => {
3569
- b && ne(b.id) && (s(b.id).catch(() => {}), V(b.id), A(null)), u?.(n.mode === "array" ? [] : null);
3665
+ H
3666
+ ]), K = O(() => {
3667
+ b && te(b.id) && (s(b.id).catch(() => {}), H(b.id), A(null)), u?.(n.mode === "array" ? [] : null);
3570
3668
  }, [
3571
3669
  b,
3572
3670
  n.mode,
3573
- ne,
3671
+ te,
3574
3672
  u,
3575
- V
3576
- ]), K = O(() => {
3673
+ H
3674
+ ]), q = O(() => {
3577
3675
  E(null), S("idle"), B.current?.click();
3578
- }, []), q = O(() => {
3676
+ }, []), J = O(() => {
3579
3677
  g || B.current?.click();
3580
- }, [g]), ie = O((e) => {
3581
- g || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), q());
3582
- }, [g, q]), J = O((e) => {
3678
+ }, [g]), re = O((e) => {
3679
+ g || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), J());
3680
+ }, [g, J]), Y = O((e) => {
3583
3681
  g || (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
3584
- }, [g]), ae = O((e) => {
3682
+ }, [g]), ie = O((e) => {
3585
3683
  if (g) return;
3586
3684
  e.preventDefault();
3587
3685
  let t = e.dataTransfer.files?.[0];
3588
- t && U(t);
3589
- }, [g, U]), oe = O((e) => {
3686
+ t && W(t);
3687
+ }, [g, W]), ae = O((e) => {
3590
3688
  let t = e.target.files?.[0];
3591
- e.target.value = "", t && U(t);
3592
- }, [U]), se = _.aspectRatio ?? cr(_.shape, n.display?.aspect_ratio), ce = i(b), le = {
3593
- aspectRatio: se,
3689
+ e.target.value = "", t && W(t);
3690
+ }, [W]), oe = _.aspectRatio ?? lr(_.shape, n.display?.aspect_ratio), se = i(b), ce = {
3691
+ aspectRatio: oe,
3594
3692
  width: _.width ?? (_.shape === "wide" ? "100%" : "120px")
3595
- }, ue = !!b, Y = rr(b, n.display?.listable_thumbnail), de = p === "display", fe = O((e) => {
3693
+ }, le = !!b, X = ir(b, n.display?.listable_thumbnail), ue = p === "display", de = O((e) => {
3596
3694
  e.stopPropagation(), F((e) => !e);
3597
- }, []), X = O((e) => {
3695
+ }, []), Z = O((e) => {
3598
3696
  if (!b || !P) return;
3599
3697
  let t = e.currentTarget.getBoundingClientRect(), r = t.width > 0 ? (e.clientX - t.left) / t.width : .5, i = t.height > 0 ? (e.clientY - t.top) / t.height : .5, a = m(b, {
3600
3698
  x: Math.max(0, Math.min(1, r)),
@@ -3607,69 +3705,69 @@ function ar(e) {
3607
3705
  P,
3608
3706
  u
3609
3707
  ]);
3610
- return de ? /* @__PURE__ */ I("div", {
3611
- className: or(_.shape, !1),
3612
- style: le,
3613
- "aria-label": H,
3614
- children: ue && Y ? /* @__PURE__ */ I("img", {
3615
- src: Y,
3616
- alt: H,
3617
- className: sr(_.shape),
3618
- style: { objectPosition: r(ce) },
3708
+ return ue ? /* @__PURE__ */ I("div", {
3709
+ className: sr(_.shape, !1),
3710
+ style: ce,
3711
+ "aria-label": U,
3712
+ children: le && X ? /* @__PURE__ */ I("img", {
3713
+ src: X,
3714
+ alt: U,
3715
+ className: cr(_.shape),
3716
+ style: { objectPosition: r(se) },
3619
3717
  loading: "lazy"
3620
- }) : /* @__PURE__ */ I(ur, {
3718
+ }) : /* @__PURE__ */ I(dr, {
3621
3719
  shape: _.shape,
3622
- label: H,
3720
+ label: U,
3623
3721
  placeholder: n.display?.placeholder
3624
3722
  })
3625
3723
  }) : /* @__PURE__ */ L("div", {
3626
- className: or(_.shape, !g),
3627
- style: le,
3724
+ className: sr(_.shape, !g),
3725
+ style: ce,
3628
3726
  tabIndex: g ? -1 : 0,
3629
3727
  role: "button",
3630
- "aria-label": H,
3728
+ "aria-label": U,
3631
3729
  "aria-disabled": g || void 0,
3632
3730
  "aria-busy": x === "uploading" || void 0,
3633
3731
  "aria-invalid": x === "error" || void 0,
3634
- onClick: x === "idle" && !ue ? q : void 0,
3635
- onMouseDown: P ? X : void 0,
3636
- onKeyDown: ie,
3637
- onDragOver: J,
3638
- onDrop: ae,
3732
+ onClick: x === "idle" && !le ? J : void 0,
3733
+ onMouseDown: P ? Z : void 0,
3734
+ onKeyDown: re,
3735
+ onDragOver: Y,
3736
+ onDrop: ie,
3639
3737
  "data-testid": P ? "focal-point-target" : `file-widget-${o}`,
3640
3738
  children: [
3641
3739
  /* @__PURE__ */ I("input", {
3642
3740
  ref: B,
3643
3741
  type: "file",
3644
- accept: re,
3645
- onChange: oe,
3742
+ accept: ne,
3743
+ onChange: ae,
3646
3744
  style: { display: "none" },
3647
3745
  "data-testid": `file-input-${o}`
3648
3746
  }),
3649
- ue && Y ? /* @__PURE__ */ I("img", {
3650
- src: Y,
3651
- alt: H,
3652
- className: sr(_.shape),
3653
- style: { objectPosition: r(ce) },
3747
+ le && X ? /* @__PURE__ */ I("img", {
3748
+ src: X,
3749
+ alt: U,
3750
+ className: cr(_.shape),
3751
+ style: { objectPosition: r(se) },
3654
3752
  loading: "lazy"
3655
- }) : x === "uploading" ? null : /* @__PURE__ */ I(ur, {
3753
+ }) : x === "uploading" ? null : /* @__PURE__ */ I(dr, {
3656
3754
  shape: _.shape,
3657
- label: H,
3755
+ label: U,
3658
3756
  placeholder: n.display?.placeholder
3659
3757
  }),
3660
- x === "uploading" && /* @__PURE__ */ I(dr, { pct: C?.pct ?? 0 }),
3758
+ x === "uploading" && /* @__PURE__ */ I(fr, { pct: C?.pct ?? 0 }),
3661
3759
  D && /* @__PURE__ */ I("span", {
3662
3760
  className: "absolute right-1 top-1 h-2 w-2 rounded-full bg-warning",
3663
3761
  "aria-hidden": "true",
3664
3762
  "data-testid": "draft-indicator"
3665
3763
  }),
3666
- ue && x === "idle" && !g && /* @__PURE__ */ L("div", {
3764
+ le && x === "idle" && !g && /* @__PURE__ */ L("div", {
3667
3765
  className: "absolute inset-0 flex items-center justify-center gap-2 bg-black/40 opacity-0 transition-opacity hover:opacity-100 focus-within:opacity-100",
3668
3766
  children: [
3669
3767
  n.display?.focal_point && /* @__PURE__ */ I("button", {
3670
3768
  type: "button",
3671
3769
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
3672
- onClick: fe,
3770
+ onClick: de,
3673
3771
  "data-testid": "focal-point-toggle",
3674
3772
  children: P ? "Cancel focus" : "Set focus"
3675
3773
  }),
@@ -3677,7 +3775,7 @@ function ar(e) {
3677
3775
  type: "button",
3678
3776
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
3679
3777
  onClick: (e) => {
3680
- e.stopPropagation(), q();
3778
+ e.stopPropagation(), J();
3681
3779
  },
3682
3780
  children: "Change"
3683
3781
  }),
@@ -3685,17 +3783,17 @@ function ar(e) {
3685
3783
  type: "button",
3686
3784
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-destructive hover:bg-surface-2",
3687
3785
  onClick: (e) => {
3688
- e.stopPropagation(), G();
3786
+ e.stopPropagation(), K();
3689
3787
  },
3690
3788
  children: "Remove"
3691
3789
  })
3692
3790
  ]
3693
3791
  }),
3694
- ce && ue && /* @__PURE__ */ I("span", {
3792
+ se && le && /* @__PURE__ */ I("span", {
3695
3793
  className: "absolute h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full border border-white bg-black/70",
3696
3794
  style: {
3697
- left: `${ce.x * 100}%`,
3698
- top: `${ce.y * 100}%`
3795
+ left: `${se.x * 100}%`,
3796
+ top: `${se.y * 100}%`
3699
3797
  },
3700
3798
  "data-testid": "focal-point-marker"
3701
3799
  }),
@@ -3703,7 +3801,7 @@ function ar(e) {
3703
3801
  type: "button",
3704
3802
  className: "absolute bottom-1 right-1 rounded-sm border border-border bg-card px-2 py-0.5 text-xs",
3705
3803
  onClick: (e) => {
3706
- e.stopPropagation(), W();
3804
+ e.stopPropagation(), G();
3707
3805
  },
3708
3806
  "data-testid": "cancel-upload",
3709
3807
  children: "Cancel"
@@ -3719,7 +3817,7 @@ function ar(e) {
3719
3817
  type: "button",
3720
3818
  className: "underline",
3721
3819
  onClick: (e) => {
3722
- e.stopPropagation(), K();
3820
+ e.stopPropagation(), q();
3723
3821
  },
3724
3822
  "data-testid": "retry-upload",
3725
3823
  children: "Retry"
@@ -3728,32 +3826,32 @@ function ar(e) {
3728
3826
  ]
3729
3827
  });
3730
3828
  }
3731
- function or(e, t) {
3829
+ function sr(e, t) {
3732
3830
  return [
3733
3831
  "relative overflow-hidden border border-border bg-surface-2",
3734
3832
  e === "circle" ? "rounded-full" : "rounded-md",
3735
3833
  t ? "cursor-pointer focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent" : ""
3736
3834
  ].filter(Boolean).join(" ");
3737
3835
  }
3738
- function sr(e) {
3836
+ function cr(e) {
3739
3837
  return "h-full w-full object-cover";
3740
3838
  }
3741
- function cr(e, t) {
3839
+ function lr(e, t) {
3742
3840
  return t ? t.replace(":", " / ") : e === "wide" ? "16 / 9" : "1 / 1";
3743
3841
  }
3744
- function lr(e) {
3842
+ function ur(e) {
3745
3843
  if (!e) return;
3746
3844
  let t = e.replace(/\s/g, "").match(/^(\d+(?:\.\d+)?)[:/](\d+(?:\.\d+)?)$/);
3747
3845
  if (!t) return;
3748
3846
  let n = Number(t[1]), r = Number(t[2]);
3749
3847
  if (!(!n || !r)) return n / r;
3750
3848
  }
3751
- function ur({ shape: e, label: t, placeholder: n }) {
3849
+ function dr({ shape: e, label: t, placeholder: n }) {
3752
3850
  return n === "initials" ? /* @__PURE__ */ I("div", {
3753
3851
  className: "flex h-full w-full items-center justify-center bg-surface-3 text-text-3",
3754
3852
  children: /* @__PURE__ */ I("span", {
3755
3853
  className: e === "circle" ? "text-lg font-medium" : "text-base font-medium",
3756
- children: ir(t)
3854
+ children: ar(t)
3757
3855
  })
3758
3856
  }) : /* @__PURE__ */ I("div", {
3759
3857
  className: "flex h-full w-full items-center justify-center bg-surface-3 text-text-4",
@@ -3763,7 +3861,7 @@ function ur({ shape: e, label: t, placeholder: n }) {
3763
3861
  })
3764
3862
  });
3765
3863
  }
3766
- function dr({ pct: e }) {
3864
+ function fr({ pct: e }) {
3767
3865
  let t = 2 * Math.PI * 18, n = t - Math.max(0, Math.min(100, e)) / 100 * t;
3768
3866
  return /* @__PURE__ */ L("div", {
3769
3867
  className: "absolute inset-0 flex items-center justify-center bg-black/30",
@@ -3807,56 +3905,56 @@ function dr({ pct: e }) {
3807
3905
  }
3808
3906
  //#endregion
3809
3907
  //#region src/components/file-widgets/SquareImage.tsx
3810
- function fr(e) {
3811
- return /* @__PURE__ */ I(ar, {
3908
+ function pr(e) {
3909
+ return /* @__PURE__ */ I(or, {
3812
3910
  ...e,
3813
3911
  visual: { shape: "square" }
3814
3912
  });
3815
3913
  }
3816
3914
  //#endregion
3817
3915
  //#region src/components/file-widgets/CircleImage.tsx
3818
- function pr(e) {
3819
- return /* @__PURE__ */ I(ar, {
3916
+ function mr(e) {
3917
+ return /* @__PURE__ */ I(or, {
3820
3918
  ...e,
3821
3919
  visual: { shape: "circle" }
3822
3920
  });
3823
3921
  }
3824
3922
  //#endregion
3825
3923
  //#region src/components/file-widgets/WideBanner.tsx
3826
- function mr(e) {
3827
- return /* @__PURE__ */ I(ar, {
3924
+ function hr(e) {
3925
+ return /* @__PURE__ */ I(or, {
3828
3926
  ...e,
3829
3927
  visual: { shape: "wide" }
3830
3928
  });
3831
3929
  }
3832
3930
  //#endregion
3833
3931
  //#region src/components/file-widgets/GridLazy.tsx
3834
- var hr = D(() => import("./Grid-CseTLMLv.js").then((e) => ({ default: e.Grid })));
3835
- function gr() {
3932
+ var gr = D(() => import("./Grid-By_Ere-W.js").then((e) => ({ default: e.Grid })));
3933
+ function _r() {
3836
3934
  return /* @__PURE__ */ I("div", { className: "h-24 w-full rounded-md bg-muted animate-pulse" });
3837
3935
  }
3838
- function _r(e) {
3936
+ function vr(e) {
3839
3937
  return /* @__PURE__ */ I(T, {
3840
- fallback: /* @__PURE__ */ I(gr, {}),
3841
- children: /* @__PURE__ */ I(hr, { ...e })
3938
+ fallback: /* @__PURE__ */ I(_r, {}),
3939
+ children: /* @__PURE__ */ I(gr, { ...e })
3842
3940
  });
3843
3941
  }
3844
3942
  //#endregion
3845
3943
  //#region src/components/file-widgets/DocumentCard.tsx
3846
- function vr({ contentType: e }) {
3944
+ function yr({ contentType: e }) {
3847
3945
  return /* @__PURE__ */ I("div", {
3848
3946
  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",
3849
3947
  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"
3850
3948
  });
3851
3949
  }
3852
- function yr(e) {
3853
- let { field: n, fieldName: r, value: i, onChange: a, mode: l, disabled: u, uploadFieldCode: m, uploadSlotCode: g } = e, v = f(i), [y, b] = N("idle"), [x, S] = N(null), [C, w] = N(null), [T, E] = N(!1), [D, A] = N(v?.filename ?? ""), j = M(null), P = M(!1), R = M(null), { register: z, unregister: B, isDraft: te } = c();
3950
+ function br(e) {
3951
+ let { field: n, fieldName: r, value: i, onChange: a, mode: l, disabled: u, uploadFieldCode: m, uploadSlotCode: g } = e, v = f(i), [y, b] = N("idle"), [x, S] = N(null), [C, w] = N(null), [T, E] = N(!1), [D, A] = N(v?.filename ?? ""), j = M(null), P = M(!1), R = M(null), { register: z, unregister: B, isDraft: V } = c();
3854
3952
  k(() => () => {
3855
3953
  j.current && j.current.abort();
3856
3954
  }, []), k(() => {
3857
3955
  A(v?.filename ?? "");
3858
3956
  }, [v?.filename]);
3859
- let V = (n.accepts ?? []).join(","), ne = O(async (i) => {
3957
+ let H = (n.accepts ?? []).join(","), te = O(async (i) => {
3860
3958
  let o = ee(i, n.accepts, n.max_size_bytes);
3861
3959
  if (o) {
3862
3960
  w(o), b("error");
@@ -3882,7 +3980,7 @@ function yr(e) {
3882
3980
  s(o.id).catch(() => {}), B(o.id);
3883
3981
  return;
3884
3982
  }
3885
- v && te(v.id) && (s(v.id).catch(() => {}), B(v.id)), z(o.id, () => s(o.id)), b("idle"), S(null);
3983
+ v && V(v.id) && (s(v.id).catch(() => {}), B(v.id)), z(o.id, () => s(o.id)), b("idle"), S(null);
3886
3984
  let l = {
3887
3985
  id: o.id,
3888
3986
  filename: o.filename,
@@ -3911,37 +4009,37 @@ function yr(e) {
3911
4009
  n.mode,
3912
4010
  r,
3913
4011
  v,
3914
- te,
4012
+ V,
3915
4013
  a,
3916
4014
  e.entityCode,
3917
4015
  z,
3918
4016
  B,
3919
4017
  m,
3920
4018
  g
3921
- ]), H = O(() => {
4019
+ ]), U = O(() => {
3922
4020
  u || R.current?.click();
3923
- }, [u]), re = O((e) => {
4021
+ }, [u]), ne = O((e) => {
3924
4022
  let t = e.target.files?.[0];
3925
- e.target.value = "", t && ne(t);
3926
- }, [ne]), U = O(() => {
3927
- v && te(v.id) && (s(v.id).catch(() => {}), B(v.id)), a?.(n.mode === "array" ? [] : null);
4023
+ e.target.value = "", t && te(t);
4024
+ }, [te]), W = O(() => {
4025
+ v && V(v.id) && (s(v.id).catch(() => {}), B(v.id)), a?.(n.mode === "array" ? [] : null);
3928
4026
  }, [
3929
4027
  v,
3930
4028
  n.mode,
3931
- te,
4029
+ V,
3932
4030
  a,
3933
4031
  B
3934
- ]), W = O(() => {
4032
+ ]), G = O(() => {
3935
4033
  y === "uploading" && j.current && (P.current = !0, j.current.abort(), j.current = null, b("idle"), S(null));
3936
- }, [y]), G = O(() => {
4034
+ }, [y]), K = O(() => {
3937
4035
  if (!v) return;
3938
4036
  let e = h(v);
3939
4037
  e && window.open(e, "_blank", "noopener");
3940
- }, [v]), K = v ? p(v) : !1, q = O(() => {
4038
+ }, [v]), q = v ? p(v) : !1, J = O(() => {
3941
4039
  if (!v || !p(v)) return;
3942
4040
  let e = _(v);
3943
4041
  e && window.open(e, "_blank", "noopener");
3944
- }, [v]), ie = O(() => {
4042
+ }, [v]), re = O(() => {
3945
4043
  if (!v) {
3946
4044
  E(!1);
3947
4045
  return;
@@ -3961,31 +4059,31 @@ function yr(e) {
3961
4059
  v,
3962
4060
  a,
3963
4061
  n.mode
3964
- ]), J = l === "display";
4062
+ ]), Y = l === "display";
3965
4063
  return !v && y !== "uploading" ? /* @__PURE__ */ L("div", {
3966
4064
  "data-testid": `file-widget-${r}`,
3967
4065
  className: "flex items-center gap-3 rounded-md border border-dashed border-border bg-surface p-3",
3968
4066
  children: [
3969
- /* @__PURE__ */ I(vr, {}),
4067
+ /* @__PURE__ */ I(yr, {}),
3970
4068
  /* @__PURE__ */ L("div", {
3971
4069
  className: "flex flex-col gap-1",
3972
4070
  children: [/* @__PURE__ */ I("span", {
3973
4071
  className: "text-sm text-foreground",
3974
4072
  children: n.display?.placeholder || "No document attached"
3975
- }), !J && /* @__PURE__ */ I("button", {
4073
+ }), !Y && /* @__PURE__ */ I("button", {
3976
4074
  type: "button",
3977
4075
  className: "self-start rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
3978
- onClick: H,
4076
+ onClick: U,
3979
4077
  disabled: u,
3980
4078
  "data-testid": "upload",
3981
4079
  children: "Upload"
3982
4080
  })]
3983
4081
  }),
3984
- !J && /* @__PURE__ */ I("input", {
4082
+ !Y && /* @__PURE__ */ I("input", {
3985
4083
  ref: R,
3986
4084
  type: "file",
3987
- accept: V || void 0,
3988
- onChange: re,
4085
+ accept: H || void 0,
4086
+ onChange: ne,
3989
4087
  style: { display: "none" },
3990
4088
  "data-testid": `file-input-${r}`
3991
4089
  }),
@@ -4001,7 +4099,7 @@ function yr(e) {
4001
4099
  "aria-busy": y === "uploading" || void 0,
4002
4100
  "aria-invalid": y === "error" || void 0,
4003
4101
  children: [
4004
- /* @__PURE__ */ I(vr, { contentType: v?.content_type }),
4102
+ /* @__PURE__ */ I(yr, { contentType: v?.content_type }),
4005
4103
  /* @__PURE__ */ L("div", {
4006
4104
  className: "flex min-w-0 flex-1 flex-col gap-1",
4007
4105
  children: [
@@ -4011,16 +4109,16 @@ function yr(e) {
4011
4109
  value: D,
4012
4110
  autoFocus: !0,
4013
4111
  onChange: (e) => A(e.target.value),
4014
- onBlur: ie,
4112
+ onBlur: re,
4015
4113
  onKeyDown: (e) => {
4016
- e.key === "Enter" ? ie() : e.key === "Escape" && (E(!1), A(v.filename));
4114
+ e.key === "Enter" ? re() : e.key === "Escape" && (E(!1), A(v.filename));
4017
4115
  },
4018
4116
  "data-testid": "filename-input"
4019
4117
  }) : /* @__PURE__ */ I("button", {
4020
4118
  type: "button",
4021
4119
  className: "truncate text-left text-sm font-medium text-foreground hover:underline",
4022
- onClick: () => !J && v && E(!0),
4023
- disabled: J || u || !v,
4120
+ onClick: () => !Y && v && E(!0),
4121
+ disabled: Y || u || !v,
4024
4122
  title: v?.filename,
4025
4123
  "data-testid": "filename",
4026
4124
  children: v?.filename ?? "Uploading…"
@@ -4030,7 +4128,7 @@ function yr(e) {
4030
4128
  children: [
4031
4129
  v && /* @__PURE__ */ I("span", { children: o(v.size_bytes) }),
4032
4130
  v?.page_count != null && /* @__PURE__ */ L("span", { children: [v.page_count, " pages"] }),
4033
- v?.uploaded_at && /* @__PURE__ */ I("span", { children: br(v.uploaded_at) }),
4131
+ v?.uploaded_at && /* @__PURE__ */ I("span", { children: xr(v.uploaded_at) }),
4034
4132
  v?.uploaded_by && /* @__PURE__ */ L("span", { children: ["by ", v.uploaded_by] }),
4035
4133
  v?.version?.number != null && /* @__PURE__ */ L("span", {
4036
4134
  "data-testid": "version-badge",
@@ -4064,30 +4162,30 @@ function yr(e) {
4064
4162
  /* @__PURE__ */ I("button", {
4065
4163
  type: "button",
4066
4164
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4067
- onClick: G,
4165
+ onClick: K,
4068
4166
  "data-testid": "download",
4069
4167
  children: "Download"
4070
4168
  }),
4071
4169
  /* @__PURE__ */ I("button", {
4072
4170
  type: "button",
4073
4171
  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",
4074
- onClick: q,
4075
- disabled: !K,
4076
- title: K ? void 0 : "Preview is available only for images and PDFs",
4172
+ onClick: J,
4173
+ disabled: !q,
4174
+ title: q ? void 0 : "Preview is available only for images and PDFs",
4077
4175
  "data-testid": "preview",
4078
4176
  children: "Preview"
4079
4177
  }),
4080
- !J && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("button", {
4178
+ !Y && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("button", {
4081
4179
  type: "button",
4082
4180
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4083
- onClick: H,
4181
+ onClick: U,
4084
4182
  disabled: u,
4085
4183
  "data-testid": "replace",
4086
4184
  children: "Replace"
4087
4185
  }), /* @__PURE__ */ I("button", {
4088
4186
  type: "button",
4089
4187
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-destructive hover:bg-surface-2",
4090
- onClick: U,
4188
+ onClick: W,
4091
4189
  disabled: u,
4092
4190
  "data-testid": "remove",
4093
4191
  children: "Remove"
@@ -4095,32 +4193,32 @@ function yr(e) {
4095
4193
  ] }), y === "uploading" && /* @__PURE__ */ I("button", {
4096
4194
  type: "button",
4097
4195
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs",
4098
- onClick: W,
4196
+ onClick: G,
4099
4197
  "data-testid": "cancel-upload",
4100
4198
  children: "Cancel"
4101
4199
  })]
4102
4200
  }),
4103
- !J && /* @__PURE__ */ I("input", {
4201
+ !Y && /* @__PURE__ */ I("input", {
4104
4202
  ref: R,
4105
4203
  type: "file",
4106
- accept: V || void 0,
4107
- onChange: re,
4204
+ accept: H || void 0,
4205
+ onChange: ne,
4108
4206
  style: { display: "none" },
4109
4207
  "data-testid": `file-input-${r}`
4110
4208
  })
4111
4209
  ]
4112
4210
  });
4113
4211
  }
4114
- function br(e) {
4212
+ function xr(e) {
4115
4213
  let t = new Date(e);
4116
4214
  return isNaN(t.getTime()) ? e : t.toISOString().slice(0, 10);
4117
4215
  }
4118
4216
  //#endregion
4119
4217
  //#region src/components/file-widgets/FileList.tsx
4120
- function xr(e) {
4218
+ function Sr(e) {
4121
4219
  return e ? (e.split("/")[1] ?? e).toUpperCase().slice(0, 6) : "";
4122
4220
  }
4123
- function Sr(e) {
4221
+ function Cr(e) {
4124
4222
  let { field: n, fieldName: r, value: i, onChange: a, mode: l, disabled: u } = e, f = g(i), [p, m] = N([]), { register: _, unregister: v, isDraft: y } = c(), b = M(f);
4125
4223
  b.current = f;
4126
4224
  let x = M(null), S = M(/* @__PURE__ */ new Set()), C = M([]);
@@ -4239,7 +4337,7 @@ function Sr(e) {
4239
4337
  children: [
4240
4338
  /* @__PURE__ */ I("span", {
4241
4339
  className: "flex-none rounded-sm border border-border bg-surface-3 px-1.5 py-0.5 text-[10px] text-muted-foreground",
4242
- children: xr(e.content_type)
4340
+ children: Sr(e.content_type)
4243
4341
  }),
4244
4342
  /* @__PURE__ */ I("button", {
4245
4343
  type: "button",
@@ -4324,16 +4422,16 @@ function Sr(e) {
4324
4422
  }
4325
4423
  //#endregion
4326
4424
  //#region src/components/file-widgets/LabeledSlots.tsx
4327
- function Cr(e) {
4425
+ function wr(e) {
4328
4426
  return !e || Array.isArray(e) || typeof e != "object" ? {} : e;
4329
4427
  }
4330
- function wr(e) {
4428
+ function Tr(e) {
4331
4429
  return e.split("_").filter(Boolean).map((e) => e.slice(0, 1).toUpperCase() + e.slice(1)).join(" ");
4332
4430
  }
4333
- function Tr(e, t) {
4431
+ function Er(e, t) {
4334
4432
  return t?.content_type?.startsWith("image/") ? !0 : (e?.accepts ?? []).some((e) => e === "image/*" || e.startsWith("image/"));
4335
4433
  }
4336
- function Er(e, t, n, r) {
4434
+ function Dr(e, t, n, r) {
4337
4435
  return {
4338
4436
  ...e,
4339
4437
  name: `${e.name}.${t}`,
@@ -4343,14 +4441,14 @@ function Er(e, t, n, r) {
4343
4441
  slots: void 0,
4344
4442
  display: {
4345
4443
  ...e.display ?? { widget: "document_card" },
4346
- widget: Tr(n, r) ? "square_image" : "document_card",
4444
+ widget: Er(n, r) ? "square_image" : "document_card",
4347
4445
  aspect_ratio: n?.aspect_ratio ?? e.display?.aspect_ratio,
4348
- placeholder: e.display?.placeholder ?? wr(t)
4446
+ placeholder: e.display?.placeholder ?? Tr(t)
4349
4447
  }
4350
4448
  };
4351
4449
  }
4352
- function Dr(e) {
4353
- let { field: t, fieldName: n, entityCode: r, value: i, onChange: a, mode: o, disabled: s } = e, c = Object.entries(t.slots ?? {}), l = Cr(i);
4450
+ function Or(e) {
4451
+ let { field: t, fieldName: n, entityCode: r, value: i, onChange: a, mode: o, disabled: s } = e, c = Object.entries(t.slots ?? {}), l = wr(i);
4354
4452
  return c.length === 0 ? /* @__PURE__ */ I("span", {
4355
4453
  className: "text-sm text-muted-foreground",
4356
4454
  children: "No slots configured"
@@ -4360,7 +4458,7 @@ function Dr(e) {
4360
4458
  gap: 12
4361
4459
  },
4362
4460
  children: c.map(([e, i]) => {
4363
- let c = l[e] ?? null, u = Er(t, e, i, c), d = u.display?.widget ?? "document_card", f = Zn(d);
4461
+ let c = l[e] ?? null, u = Dr(t, e, i, c), d = u.display?.widget ?? "document_card", f = Qn(d);
4364
4462
  return f ? /* @__PURE__ */ L("div", {
4365
4463
  style: {
4366
4464
  display: "grid",
@@ -4372,7 +4470,7 @@ function Dr(e) {
4372
4470
  fontWeight: 600,
4373
4471
  color: "var(--text-2)"
4374
4472
  },
4375
- children: wr(e)
4473
+ children: Tr(e)
4376
4474
  }), /* @__PURE__ */ I(f, {
4377
4475
  field: u,
4378
4476
  fieldName: e,
@@ -4400,7 +4498,7 @@ function Dr(e) {
4400
4498
  fontWeight: 600,
4401
4499
  color: "var(--text-2)"
4402
4500
  },
4403
- children: wr(e)
4501
+ children: Tr(e)
4404
4502
  }), /* @__PURE__ */ I("span", {
4405
4503
  className: "text-sm text-muted-foreground",
4406
4504
  children: `Unknown file widget: ${d}`
@@ -4411,57 +4509,58 @@ function Dr(e) {
4411
4509
  }
4412
4510
  //#endregion
4413
4511
  //#region src/components/file-widgets/builtins.ts
4414
- var Or = !1;
4415
- function kr() {
4416
- Or ||= ($("square_image", fr), $("circle_image", pr), $("wide_banner", mr), $("grid", _r), $("document_card", yr), $("file_list", Sr), $("labeled_slots", Dr), !0);
4512
+ var kr = !1;
4513
+ function Ar() {
4514
+ kr ||= (Zn("square_image", pr), Zn("circle_image", mr), Zn("wide_banner", hr), Zn("grid", vr), Zn("document_card", br), Zn("file_list", Cr), Zn("labeled_slots", Or), !0);
4417
4515
  }
4418
4516
  //#endregion
4419
4517
  //#region src/components/file-widgets/host.tsx
4420
- kr();
4421
- function Ar(e, t) {
4518
+ Ar();
4519
+ function jr(e, t) {
4422
4520
  return e.files?.get(t);
4423
4521
  }
4424
- function jr(e, t) {
4522
+ function Mr(e, t) {
4425
4523
  return Object.prototype.hasOwnProperty.call(e, t) ? e[t] ?? null : e.$files?.[t] ?? null;
4426
4524
  }
4427
- function Mr(e, t, n) {
4428
- if (Ar(e, n)) return jr(t, n);
4525
+ function Nr(e, t, n) {
4526
+ if (jr(e, n)) return Mr(t, n);
4429
4527
  let r = e.fields.get(n);
4430
- return r?.type === "rich_text" && r.files?.mode === "rich_text_inline" ? w(t[n], jr(t, n)) : t[n];
4528
+ return r?.type === "rich_text" && r.files?.mode === "rich_text_inline" ? w(t[n], Mr(t, n)) : t[n];
4431
4529
  }
4432
- function Nr(e, t, n) {
4530
+ function Pr(e, t, n) {
4433
4531
  let r = e.fields.get(t);
4434
4532
  return r?.type === "rich_text" && r.files?.mode === "rich_text_inline" ? b(n) : n;
4435
4533
  }
4436
- function Pr(e, t, n) {
4437
- let r = Ar(e, t);
4534
+ function Fr(e, t, n) {
4535
+ let r = jr(e, t);
4438
4536
  if (r) return r.name || t;
4439
4537
  let i = e.fields.get(t);
4440
4538
  return i ? He(i, t, n) : t;
4441
4539
  }
4442
- function Fr(e) {
4443
- let { entity: t, entityCode: n, fieldName: r, record: i, mode: a, onChange: o, refs: s, disabled: c, surface: l, entities: u, screens: d, navigate: f, locale: p } = e, m = Ar(t, r);
4444
- if (m) {
4445
- let e = m.display?.widget ?? "", t = Zn(e);
4540
+ function Ir(e) {
4541
+ let { entity: t, entityCode: n, fieldName: r, record: i, mode: a, onChange: o, refs: s, disabled: c, surface: l, entities: u, screens: d, navigate: f, locale: p, fieldId: m, labelId: h } = e, g = jr(t, r);
4542
+ if (g) {
4543
+ let e = g.display?.widget ?? "", t = Qn(e);
4446
4544
  return t ? /* @__PURE__ */ I(t, {
4447
- field: m,
4545
+ field: g,
4448
4546
  fieldName: r,
4449
4547
  entityCode: n,
4450
- value: jr(i, r),
4548
+ value: Mr(i, r),
4451
4549
  mode: a,
4452
4550
  onChange: o,
4453
- disabled: c
4551
+ disabled: c,
4552
+ fieldId: m
4454
4553
  }) : /* @__PURE__ */ I("span", {
4455
4554
  className: "text-sm text-muted-foreground",
4456
4555
  children: e ? `Unknown file widget: ${e}` : "Missing file widget"
4457
4556
  });
4458
4557
  }
4459
- let h = t.fields.get(r);
4460
- return h ? Ia({
4461
- field: h,
4558
+ let _ = t.fields.get(r);
4559
+ return _ ? La({
4560
+ field: _,
4462
4561
  entityCode: n,
4463
4562
  fieldName: r,
4464
- value: Mr(t, i, r),
4563
+ value: Nr(t, i, r),
4465
4564
  mode: a,
4466
4565
  onChange: o,
4467
4566
  record: i,
@@ -4471,85 +4570,87 @@ function Fr(e) {
4471
4570
  entities: u,
4472
4571
  screens: d,
4473
4572
  navigate: f,
4474
- locale: p
4573
+ locale: p,
4574
+ fieldId: m,
4575
+ labelId: h
4475
4576
  }) : null;
4476
4577
  }
4477
4578
  //#endregion
4478
4579
  //#region src/components/file-widgets/payload.ts
4479
- function Ir(e) {
4580
+ function Lr(e) {
4480
4581
  return !e || Array.isArray(e) ? null : e;
4481
4582
  }
4482
- function Lr(e) {
4583
+ function Rr(e) {
4483
4584
  return Array.isArray(e) ? e : [];
4484
4585
  }
4485
- function Rr(e) {
4586
+ function zr(e) {
4486
4587
  return !e || Array.isArray(e) || typeof e != "object" ? {} : e;
4487
4588
  }
4488
- function zr(e, t) {
4489
- return e.mode === "array" ? Lr(t) : e.mode === "named_map" ? Rr(t) : Ir(t);
4589
+ function Br(e, t) {
4590
+ return e.mode === "array" ? Rr(t) : e.mode === "named_map" ? zr(t) : Lr(t);
4490
4591
  }
4491
- function Br(e, t, n, r) {
4592
+ function Vr(e, t, n, r) {
4492
4593
  let i = {
4493
4594
  file_id: e.id,
4494
4595
  filename: e.filename
4495
4596
  };
4496
4597
  return r && (i.slot = r), n && (i.position = t), e.metadata !== void 0 && (i.metadata = e.metadata), i;
4497
4598
  }
4498
- function Vr(e, t) {
4599
+ function Hr(e, t) {
4499
4600
  if (e.mode === "array") {
4500
- let e = Lr(t);
4501
- return e.length === 0 ? { clear: !0 } : { set: e.map((e, t) => Br(e, t, !0)) };
4601
+ let e = Rr(t);
4602
+ return e.length === 0 ? { clear: !0 } : { set: e.map((e, t) => Vr(e, t, !0)) };
4502
4603
  }
4503
4604
  if (e.mode === "named_map") {
4504
- let e = Rr(t), n = Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => Br(t, 0, !1, e));
4605
+ let e = zr(t), n = Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => Vr(t, 0, !1, e));
4505
4606
  return n.length === 0 ? { clear: !0 } : { set: n };
4506
4607
  }
4507
- let n = Ir(t);
4508
- return n ? { set: [Br(n, 0, !0)] } : { clear: !0 };
4608
+ let n = Lr(t);
4609
+ return n ? { set: [Vr(n, 0, !0)] } : { clear: !0 };
4509
4610
  }
4510
- function Hr(e) {
4611
+ function Ur(e) {
4511
4612
  return JSON.stringify(e);
4512
4613
  }
4513
- function Ur(e) {
4614
+ function Wr(e) {
4514
4615
  let { entity: t, formData: n, record: r, isNew: i } = e, a = {};
4515
4616
  for (let e of t.files?.names() ?? []) {
4516
4617
  if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
4517
- let o = Ar(t, e);
4618
+ let o = jr(t, e);
4518
4619
  if (!o) continue;
4519
- let s = zr(o, n[e]);
4620
+ let s = Br(o, n[e]);
4520
4621
  if (i) {
4521
- if (o.mode === "array" ? Lr(s).length === 0 : o.mode === "named_map" ? Object.values(Rr(s)).every((e) => e == null) : Ir(s) == null) continue;
4522
- a[e] = Vr(o, s);
4622
+ if (o.mode === "array" ? Rr(s).length === 0 : o.mode === "named_map" ? Object.values(zr(s)).every((e) => e == null) : Lr(s) == null) continue;
4623
+ a[e] = Hr(o, s);
4523
4624
  continue;
4524
4625
  }
4525
- let c = zr(o, r ? jr(r, e) : null), l = Vr(o, s), u = Vr(o, c);
4526
- Hr(l) !== Hr(u) && (a[e] = l);
4626
+ let c = Br(o, r ? Mr(r, e) : null), l = Hr(o, s), u = Hr(o, c);
4627
+ Ur(l) !== Ur(u) && (a[e] = l);
4527
4628
  }
4528
4629
  let o = t.fields;
4529
4630
  if (!o) return a;
4530
4631
  for (let e of o.names()) {
4531
4632
  let s = o.get(e)?.files;
4532
4633
  if (!s || s.mode !== "rich_text_inline" || !Object.prototype.hasOwnProperty.call(n, e)) continue;
4533
- let c = Gr(s, n[e]);
4634
+ let c = Kr(s, n[e]);
4534
4635
  if (i) {
4535
4636
  if (c.clear) continue;
4536
4637
  a[e] = c;
4537
4638
  continue;
4538
4639
  }
4539
- let l = Gr(s, r ? Mr({
4640
+ let l = Kr(s, r ? Nr({
4540
4641
  ...t,
4541
4642
  fields: o
4542
4643
  }, r, e) : null);
4543
- Hr(c) !== Hr(l) && (a[e] = c);
4644
+ Ur(c) !== Ur(l) && (a[e] = c);
4544
4645
  }
4545
4646
  return a;
4546
4647
  }
4547
- function Wr(e) {
4648
+ function Gr(e) {
4548
4649
  let t = [];
4549
4650
  for (let n of Object.values(e)) for (let e of n.set ?? []) t.push(e.file_id);
4550
4651
  return t;
4551
4652
  }
4552
- function Gr(e, t) {
4653
+ function Kr(e, t) {
4553
4654
  if (e.mode !== "rich_text_inline") return { clear: !0 };
4554
4655
  let n = S(b(t));
4555
4656
  return n.length === 0 ? { clear: !0 } : { set: n.map((e, t) => ({
@@ -4559,18 +4660,18 @@ function Gr(e, t) {
4559
4660
  }
4560
4661
  //#endregion
4561
4662
  //#region src/components/file-widgets/index.ts
4562
- kr();
4663
+ Ar();
4563
4664
  //#endregion
4564
4665
  //#region src/components/fields/RichTextField.tsx
4565
- function Kr(e) {
4566
- let { field: n, entityCode: r, fieldName: i, value: a, mode: o, onChange: l, record: u, compact: f } = e, p = M(null), m = M(null), h = M(/* @__PURE__ */ new Map()), g = M(/* @__PURE__ */ new Set()), [_, v] = N(0), [b, T] = N(null), { register: E, unregister: D } = c(), O = u?.$files?.[i], k = j(() => w(a, O), [O, a]), A = k.markdown, P = n.files?.accepts, F = n.files?.max_size_bytes, R = (e, t = k.files) => {
4666
+ function qr(e) {
4667
+ let { field: n, entityCode: r, fieldName: i, value: a, mode: o, onChange: l, record: u, compact: f, fieldId: p } = e, m = M(null), h = M(null), g = M(/* @__PURE__ */ new Map()), _ = M(/* @__PURE__ */ new Set()), [v, b] = N(0), [T, E] = N(null), { register: D, unregister: O } = c(), k = u?.$files?.[i], A = j(() => w(a, k), [k, a]), P = A.markdown, F = n.files?.accepts, R = n.files?.max_size_bytes, z = (e, t = A.files) => {
4567
4668
  let n = new Set(S(e)), r = [];
4568
- for (let e of g.current) n.has(e) || r.push(e);
4669
+ for (let e of _.current) n.has(e) || r.push(e);
4569
4670
  if (r.length > 0) {
4570
4671
  for (let e of r) {
4571
- g.current.delete(e), D(e), s(e).catch(() => {});
4572
- let t = h.current.get(e);
4573
- t && (URL.revokeObjectURL(t), h.current.delete(e));
4672
+ _.current.delete(e), O(e), s(e).catch(() => {});
4673
+ let t = g.current.get(e);
4674
+ t && (URL.revokeObjectURL(t), g.current.delete(e));
4574
4675
  }
4575
4676
  l?.(C({
4576
4677
  markdown: e,
@@ -4582,26 +4683,26 @@ function Kr(e) {
4582
4683
  markdown: e,
4583
4684
  files: t
4584
4685
  });
4585
- }, z = (e, t, n) => {
4586
- let r = p.current, i = r?.selectionStart ?? e.markdown.length, a = r?.selectionEnd ?? e.markdown.length;
4587
- R(`${e.markdown.slice(0, i)}${t}${e.markdown.slice(a)}`, n ? x(e, n).files : e.files), requestAnimationFrame(() => {
4686
+ }, B = (e, t, n) => {
4687
+ let r = m.current, i = r?.selectionStart ?? e.markdown.length, a = r?.selectionEnd ?? e.markdown.length;
4688
+ z(`${e.markdown.slice(0, i)}${t}${e.markdown.slice(a)}`, n ? x(e, n).files : e.files), requestAnimationFrame(() => {
4588
4689
  if (!r) return;
4589
4690
  let e = i + t.length;
4590
4691
  r.focus(), r.setSelectionRange(e, e);
4591
4692
  });
4592
- }, B = async (e) => {
4693
+ }, V = async (e) => {
4593
4694
  if (!r || !n.files) return;
4594
4695
  let a = Array.from(e);
4595
4696
  if (a.length === 0) return;
4596
- T(null), v((e) => e + a.length);
4697
+ E(null), b((e) => e + a.length);
4597
4698
  let o = {
4598
- markdown: A,
4599
- files: k.files
4699
+ markdown: P,
4700
+ files: A.files
4600
4701
  };
4601
4702
  for (let e of a) {
4602
- let n = ee(e, P, F);
4703
+ let n = ee(e, F, R);
4603
4704
  if (n) {
4604
- T(n.message), v((e) => e - 1);
4705
+ E(n.message), b((e) => e - 1);
4605
4706
  continue;
4606
4707
  }
4607
4708
  try {
@@ -4610,40 +4711,43 @@ function Kr(e) {
4610
4711
  entityCode: r,
4611
4712
  fieldCode: i
4612
4713
  }), c = e.type.startsWith("image/") ? URL.createObjectURL(e) : void 0;
4613
- c && h.current.set(n.id, c);
4614
- let l = Jr(n, c);
4615
- if (E(n.id, () => s(n.id)), g.current.add(n.id), a.length === 1) {
4616
- let e = qr(o.markdown, y(l));
4617
- z(o, e, l), o = x({
4714
+ c && g.current.set(n.id, c);
4715
+ let l = Yr(n, c);
4716
+ if (D(n.id, () => s(n.id)), _.current.add(n.id), a.length === 1) {
4717
+ let e = Jr(o.markdown, y(l));
4718
+ B(o, e, l), o = x({
4618
4719
  markdown: `${o.markdown}${e}`,
4619
4720
  files: o.files
4620
4721
  }, l);
4621
4722
  } else {
4622
- let e = qr(o.markdown, y(l));
4723
+ let e = Jr(o.markdown, y(l));
4623
4724
  o = x({
4624
4725
  markdown: `${o.markdown}${e}`,
4625
4726
  files: o.files
4626
- }, l), R(o.markdown, o.files);
4727
+ }, l), z(o.markdown, o.files);
4627
4728
  }
4628
4729
  } catch (e) {
4629
- T(e instanceof d ? e.message : "Upload failed");
4730
+ E(e instanceof d ? e.message : "Upload failed");
4630
4731
  } finally {
4631
- v((e) => e - 1);
4732
+ b((e) => e - 1);
4632
4733
  }
4633
4734
  }
4634
4735
  };
4635
- return o === "display" ? A ? /* @__PURE__ */ I(Gt, {
4636
- content: A,
4637
- files: k.files
4736
+ return o === "display" ? P ? /* @__PURE__ */ I(Gt, {
4737
+ content: P,
4738
+ files: A.files
4638
4739
  }) : /* @__PURE__ */ I("span", {
4639
4740
  style: {
4640
4741
  fontSize: 12.5,
4641
4742
  color: "var(--text-4)"
4642
4743
  },
4643
4744
  children: "-"
4644
- }) : f ? /* @__PURE__ */ I(Z, {
4645
- value: A,
4646
- onChange: (e) => R(e)
4745
+ }) : f ? /* @__PURE__ */ I(Q, {
4746
+ id: p,
4747
+ name: i,
4748
+ "aria-required": n.required || void 0,
4749
+ value: P,
4750
+ onChange: (e) => z(e)
4647
4751
  }) : /* @__PURE__ */ L("div", {
4648
4752
  style: {
4649
4753
  display: "flex",
@@ -4659,13 +4763,13 @@ function Kr(e) {
4659
4763
  flexWrap: "wrap"
4660
4764
  },
4661
4765
  children: [
4662
- /* @__PURE__ */ I(G, {
4766
+ /* @__PURE__ */ I(K, {
4663
4767
  kind: "ghost",
4664
4768
  size: "xs",
4665
- icon: I(_ > 0 ? xe : W.plus, { size: 12 }),
4666
- onClick: () => m.current?.click(),
4667
- disabled: !r || !n.files || _ > 0,
4668
- children: _ > 0 ? "Uploading…" : "Insert file"
4769
+ icon: I(v > 0 ? be : G.plus, { size: 12 }),
4770
+ onClick: () => h.current?.click(),
4771
+ disabled: !r || !n.files || v > 0,
4772
+ children: v > 0 ? "Uploading…" : "Insert file"
4669
4773
  }),
4670
4774
  /* @__PURE__ */ I("span", {
4671
4775
  style: {
@@ -4684,26 +4788,29 @@ function Kr(e) {
4684
4788
  ]
4685
4789
  }),
4686
4790
  /* @__PURE__ */ I("input", {
4687
- ref: m,
4791
+ ref: h,
4688
4792
  type: "file",
4689
4793
  hidden: !0,
4690
- accept: P?.join(","),
4794
+ accept: F?.join(","),
4691
4795
  multiple: !0,
4692
4796
  onChange: (e) => {
4693
- e.target.files && B(e.target.files), e.target.value = "";
4797
+ e.target.files && V(e.target.files), e.target.value = "";
4694
4798
  }
4695
4799
  }),
4696
4800
  /* @__PURE__ */ I("textarea", {
4697
- ref: p,
4698
- value: A,
4699
- onChange: (e) => R(e.target.value),
4801
+ ref: m,
4802
+ id: p,
4803
+ name: i,
4804
+ "aria-required": n.required || void 0,
4805
+ value: P,
4806
+ onChange: (e) => z(e.target.value),
4700
4807
  onPaste: (e) => {
4701
4808
  let t = Array.from(e.clipboardData.files ?? []).filter((e) => e.size > 0);
4702
- t.length !== 0 && (e.preventDefault(), B(t));
4809
+ t.length !== 0 && (e.preventDefault(), V(t));
4703
4810
  },
4704
4811
  onDrop: (e) => {
4705
4812
  let t = Array.from(e.dataTransfer.files ?? []).filter((e) => e.size > 0);
4706
- t.length !== 0 && (e.preventDefault(), B(t));
4813
+ t.length !== 0 && (e.preventDefault(), V(t));
4707
4814
  },
4708
4815
  onDragOver: (e) => e.preventDefault(),
4709
4816
  rows: 12,
@@ -4720,12 +4827,12 @@ function Kr(e) {
4720
4827
  color: "var(--text)"
4721
4828
  }
4722
4829
  }),
4723
- b && /* @__PURE__ */ I("div", {
4830
+ T && /* @__PURE__ */ I("div", {
4724
4831
  style: {
4725
4832
  fontSize: 12,
4726
4833
  color: "var(--danger)"
4727
4834
  },
4728
- children: b
4835
+ children: T
4729
4836
  }),
4730
4837
  /* @__PURE__ */ L("div", {
4731
4838
  style: {
@@ -4741,9 +4848,9 @@ function Kr(e) {
4741
4848
  marginBottom: 8
4742
4849
  },
4743
4850
  children: "Preview"
4744
- }), A ? /* @__PURE__ */ I(Gt, {
4745
- content: A,
4746
- files: k.files
4851
+ }), P ? /* @__PURE__ */ I(Gt, {
4852
+ content: P,
4853
+ files: A.files
4747
4854
  }) : /* @__PURE__ */ I("span", {
4748
4855
  style: {
4749
4856
  fontSize: 12.5,
@@ -4755,10 +4862,10 @@ function Kr(e) {
4755
4862
  ]
4756
4863
  });
4757
4864
  }
4758
- function qr(e, t) {
4865
+ function Jr(e, t) {
4759
4866
  return e ? e.endsWith("\n\n") ? t : e.endsWith("\n") ? `\n${t}` : `\n\n${t}` : `${t}\n`;
4760
4867
  }
4761
- function Jr(e, t) {
4868
+ function Yr(e, t) {
4762
4869
  return {
4763
4870
  id: e.id,
4764
4871
  filename: e.filename,
@@ -4773,7 +4880,7 @@ function Jr(e, t) {
4773
4880
  }
4774
4881
  //#endregion
4775
4882
  //#region src/components/fields/cells/factories/text.ts
4776
- var Yr = () => (e) => {
4883
+ var Xr = () => (e) => {
4777
4884
  if (e == null || e === "") return "—";
4778
4885
  if (typeof e == "object") try {
4779
4886
  return JSON.stringify(e);
@@ -4781,24 +4888,24 @@ var Yr = () => (e) => {
4781
4888
  return String(e);
4782
4889
  }
4783
4890
  return String(e);
4784
- }, Xr = (e) => {
4785
- let { field: t, fieldName: n, locale: r = "en" } = e, i = Zr(t, n, r);
4891
+ }, Zr = (e) => {
4892
+ let { field: t, fieldName: n, locale: r = "en" } = e, i = Qr(t, n, r);
4786
4893
  return (e) => {
4787
4894
  if (e == null) return "—";
4788
4895
  let t = !!e;
4789
- return /* @__PURE__ */ I(q, {
4896
+ return /* @__PURE__ */ I(J, {
4790
4897
  tone: t ? "emerald" : "slate",
4791
4898
  size: "xs",
4792
4899
  children: t ? i.trueLabel : i.falseLabel
4793
4900
  });
4794
4901
  };
4795
4902
  };
4796
- function Zr(e, t, n) {
4903
+ function Qr(e, t, n) {
4797
4904
  if (e.display?.bool_labels) return {
4798
- trueLabel: Q(e.display.bool_labels.true, n) || "Yes",
4799
- falseLabel: Q(e.display.bool_labels.false, n) || "No"
4905
+ trueLabel: $(e.display.bool_labels.true, n) || "Yes",
4906
+ falseLabel: $(e.display.bool_labels.false, n) || "No"
4800
4907
  };
4801
- let r = e.display?.name ? Q(e.display.name, n) : "";
4908
+ let r = e.display?.name ? $(e.display.name, n) : "";
4802
4909
  if (r.startsWith("Is ")) {
4803
4910
  let e = r.slice(3).trim();
4804
4911
  return {
@@ -4814,14 +4921,14 @@ function Zr(e, t, n) {
4814
4921
  };
4815
4922
  }
4816
4923
  if (t.startsWith("is_")) {
4817
- let e = Qr(t.slice(3));
4924
+ let e = $r(t.slice(3));
4818
4925
  return {
4819
4926
  trueLabel: e,
4820
4927
  falseLabel: `Not ${e}`
4821
4928
  };
4822
4929
  }
4823
4930
  if (t.startsWith("has_")) {
4824
- let e = Qr(t.slice(4));
4931
+ let e = $r(t.slice(4));
4825
4932
  return {
4826
4933
  trueLabel: e,
4827
4934
  falseLabel: `No ${e}`
@@ -4832,12 +4939,12 @@ function Zr(e, t, n) {
4832
4939
  falseLabel: "No"
4833
4940
  };
4834
4941
  }
4835
- function Qr(e) {
4942
+ function $r(e) {
4836
4943
  return e.split("_").map((e) => e && e[0].toUpperCase() + e.slice(1)).join(" ");
4837
4944
  }
4838
4945
  //#endregion
4839
4946
  //#region src/components/fields/cells/factories/badge.tsx
4840
- var $r = new Set([
4947
+ var ei = new Set([
4841
4948
  "indigo",
4842
4949
  "emerald",
4843
4950
  "amber",
@@ -4847,17 +4954,17 @@ var $r = new Set([
4847
4954
  "slate",
4848
4955
  "teal"
4849
4956
  ]);
4850
- function ei(e) {
4851
- return e && $r.has(e) ? e : "slate";
4957
+ function ti(e) {
4958
+ return e && ei.has(e) ? e : "slate";
4852
4959
  }
4853
- var ti = (e) => {
4960
+ var ni = (e) => {
4854
4961
  let { field: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
4855
4962
  if (t.values) for (let e of t.values) r.set(e.code, {
4856
- tone: ei(e.color),
4857
- label: Q(e.name, n) || e.code
4963
+ tone: ti(e.color),
4964
+ label: $(e.name, n) || e.code
4858
4965
  });
4859
4966
  if (t.display?.value_map) for (let [e, i] of Object.entries(t.display.value_map)) {
4860
- let t = r.get(e), a = i.color ? ei(i.color) : t?.tone ?? "slate", o = (i.label ? Q(i.label, n) : "") || t?.label || e;
4967
+ let t = r.get(e), a = i.color ? ti(i.color) : t?.tone ?? "slate", o = (i.label ? $(i.label, n) : "") || t?.label || e;
4861
4968
  r.set(e, {
4862
4969
  tone: a,
4863
4970
  label: o
@@ -4866,13 +4973,13 @@ var ti = (e) => {
4866
4973
  return (e) => {
4867
4974
  if (e == null || e === "") return "—";
4868
4975
  let t = String(e), n = r.get(t);
4869
- return /* @__PURE__ */ I(q, {
4976
+ return /* @__PURE__ */ I(J, {
4870
4977
  tone: n?.tone ?? "slate",
4871
4978
  size: "xs",
4872
4979
  children: n?.label ?? t
4873
4980
  });
4874
4981
  };
4875
- }, ni = new Set([
4982
+ }, ri = new Set([
4876
4983
  "indigo",
4877
4984
  "emerald",
4878
4985
  "amber",
@@ -4882,25 +4989,25 @@ var ti = (e) => {
4882
4989
  "slate",
4883
4990
  "teal"
4884
4991
  ]);
4885
- function ri(e) {
4886
- return e && ni.has(e) ? e : "slate";
4992
+ function ii(e) {
4993
+ return e && ri.has(e) ? e : "slate";
4887
4994
  }
4888
- var ii = (e) => {
4995
+ var ai = (e) => {
4889
4996
  let { entity: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
4890
4997
  if (t?.status_groups) for (let e of Object.values(t.status_groups)) for (let t of e.statuses) r.set(t.code, {
4891
- tone: ri(t.color),
4892
- label: Q(t.name, n) || t.code
4998
+ tone: ii(t.color),
4999
+ label: $(t.name, n) || t.code
4893
5000
  });
4894
5001
  return (e) => {
4895
5002
  if (e == null || e === "") return "—";
4896
5003
  let t = String(e), n = r.get(t);
4897
- return /* @__PURE__ */ I(q, {
5004
+ return /* @__PURE__ */ I(J, {
4898
5005
  tone: n?.tone ?? "slate",
4899
5006
  size: "xs",
4900
5007
  children: n?.label ?? t
4901
5008
  });
4902
5009
  };
4903
- }, ai = new Set([
5010
+ }, oi = new Set([
4904
5011
  "indigo",
4905
5012
  "emerald",
4906
5013
  "amber",
@@ -4910,14 +5017,14 @@ var ii = (e) => {
4910
5017
  "slate",
4911
5018
  "teal"
4912
5019
  ]);
4913
- function oi(e) {
4914
- return e && ai.has(e) ? e : null;
5020
+ function si(e) {
5021
+ return e && oi.has(e) ? e : null;
4915
5022
  }
4916
- var si = (e) => {
5023
+ var ci = (e) => {
4917
5024
  let { field: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
4918
5025
  if (t.display?.value_map) for (let [e, i] of Object.entries(t.display.value_map)) r.set(e, {
4919
- label: i.label && Q(i.label, n) || e,
4920
- tone: oi(i.color)
5026
+ label: i.label && $(i.label, n) || e,
5027
+ tone: si(i.color)
4921
5028
  });
4922
5029
  return (e) => !Array.isArray(e) || e.length === 0 ? "—" : /* @__PURE__ */ I("span", {
4923
5030
  style: {
@@ -4927,48 +5034,48 @@ var si = (e) => {
4927
5034
  },
4928
5035
  children: e.map((e, t) => {
4929
5036
  let n = String(e), i = r.get(n);
4930
- return i?.tone ? /* @__PURE__ */ I(q, {
5037
+ return i?.tone ? /* @__PURE__ */ I(J, {
4931
5038
  tone: i.tone,
4932
5039
  size: "xs",
4933
5040
  children: i.label
4934
- }, `${n}-${t}`) : /* @__PURE__ */ I(X, { children: i?.label ?? n }, `${n}-${t}`);
5041
+ }, `${n}-${t}`) : /* @__PURE__ */ I(Z, { children: i?.label ?? n }, `${n}-${t}`);
4935
5042
  })
4936
5043
  });
4937
- }, ci = () => (e) => {
5044
+ }, li = () => (e) => {
4938
5045
  if (e == null || e === "") return "—";
4939
5046
  let { text: t, absolute: n } = vn(typeof e == "string" ? e : String(e));
4940
5047
  return /* @__PURE__ */ I("span", {
4941
5048
  title: n,
4942
5049
  children: t
4943
5050
  });
4944
- }, li = () => (e) => e == null || e === "" ? "—" : _n(typeof e == "string" ? e : String(e)), ui = 60 * 1e3, di = 300 * 1e3, fi = () => (e) => {
5051
+ }, ui = () => (e) => e == null || e === "" ? "—" : _n(typeof e == "string" ? e : String(e)), di = 60 * 1e3, fi = 300 * 1e3, pi = () => (e) => {
4945
5052
  if (e == null || e === "") return "—";
4946
5053
  let t = typeof e == "string" ? e : String(e), n = new Date(t);
4947
5054
  if (isNaN(n.getTime())) return t;
4948
5055
  let r = _n(t), i = Date.now() - n.getTime();
4949
5056
  if (i <= 0) return /* @__PURE__ */ L("span", {
4950
5057
  title: r,
4951
- children: ["in ", V(n, /* @__PURE__ */ new Date(), { addSuffix: !1 })]
5058
+ children: ["in ", H(n, /* @__PURE__ */ new Date(), { addSuffix: !1 })]
4952
5059
  });
4953
- if (i <= ui) return /* @__PURE__ */ I("span", {
5060
+ if (i <= di) return /* @__PURE__ */ I("span", {
4954
5061
  title: r,
4955
- children: /* @__PURE__ */ I(q, {
5062
+ children: /* @__PURE__ */ I(J, {
4956
5063
  tone: "slate",
4957
5064
  size: "xs",
4958
5065
  children: "due"
4959
5066
  })
4960
5067
  });
4961
- let a = V(n, /* @__PURE__ */ new Date(), { addSuffix: !1 });
5068
+ let a = H(n, /* @__PURE__ */ new Date(), { addSuffix: !1 });
4962
5069
  return /* @__PURE__ */ I("span", {
4963
5070
  title: r,
4964
- children: /* @__PURE__ */ L(q, {
4965
- tone: i <= di ? "amber" : "rose",
5071
+ children: /* @__PURE__ */ L(J, {
5072
+ tone: i <= fi ? "amber" : "rose",
4966
5073
  size: "xs",
4967
5074
  children: ["overdue ", a]
4968
5075
  })
4969
5076
  });
4970
- }, pi = (e) => {
4971
- let { field: t, locale: n = "en" } = e, r = t.display?.currency || "USD", i = mi(typeof t.scale == "number" ? t.scale : 2, 0, 6), a = new Intl.NumberFormat(n, {
5077
+ }, mi = (e) => {
5078
+ let { field: t, locale: n = "en" } = e, r = t.display?.currency || "USD", i = hi(typeof t.scale == "number" ? t.scale : 2, 0, 6), a = new Intl.NumberFormat(n, {
4972
5079
  style: "currency",
4973
5080
  currency: r,
4974
5081
  minimumFractionDigits: i,
@@ -4980,16 +5087,16 @@ var si = (e) => {
4980
5087
  return Number.isFinite(t) ? a.format(t) : String(e);
4981
5088
  };
4982
5089
  };
4983
- function mi(e, t, n) {
5090
+ function hi(e, t, n) {
4984
5091
  return e < t ? t : e > n ? n : e;
4985
5092
  }
4986
5093
  //#endregion
4987
5094
  //#region src/components/fields/cells/factories/refLink.tsx
4988
- var hi = (e) => {
5095
+ var gi = (e) => {
4989
5096
  let { field: t, entities: n, screens: r, refs: i, navigate: a } = e, o = t.ref?.entity, s = o ? n?.[o] : void 0, c = typeof i == "function" ? i : () => i, l = t.display?.ref_display_field ?? t.ref?.display?.field ?? s?.display?.display_field, u = s?.detail_screen, d = (u ? r?.[u] : void 0)?.route;
4990
5097
  return (e, t) => {
4991
5098
  if (e == null || e === "") return "—";
4992
- let n = String(e), r = gi(n, o, c(), l);
5099
+ let n = String(e), r = _i(n, o, c(), l);
4993
5100
  if (!d) return r;
4994
5101
  let i = d.replace(":id", encodeURIComponent(n));
4995
5102
  return a ? /* @__PURE__ */ I("a", {
@@ -5016,29 +5123,29 @@ var hi = (e) => {
5016
5123
  });
5017
5124
  };
5018
5125
  };
5019
- function gi(e, t, n, r) {
5126
+ function _i(e, t, n, r) {
5020
5127
  let i = t && n ? n[t]?.[e] : void 0;
5021
- return i ? ze(i, r, e) : e;
5128
+ return i ? Re(i, r, e) : e;
5022
5129
  }
5023
5130
  //#endregion
5024
5131
  //#region src/components/fields/cells/factories/url-helpers.ts
5025
- var _i = /^(https?|ftps?|ssh|mailto|tel):/i, vi = /^(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;
5026
- function yi(e) {
5027
- return /^[a-z]{2,3}$/i.test(e) || vi.test(e);
5028
- }
5132
+ var vi = /^(https?|ftps?|ssh|mailto|tel):/i, yi = /^(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;
5029
5133
  function bi(e) {
5134
+ return /^[a-z]{2,3}$/i.test(e) || yi.test(e);
5135
+ }
5136
+ function xi(e) {
5030
5137
  if (!e.includes(".")) return !1;
5031
5138
  let t = e.split(".");
5032
5139
  if (t.length < 3) return !0;
5033
5140
  let n = t[0].toLowerCase();
5034
- return /^(com|org|net|edu|gov)$/.test(n) ? !1 : /^(io|app|dev)$/.test(n) ? yi(t[t.length - 1]) : !0;
5141
+ return /^(com|org|net|edu|gov)$/.test(n) ? !1 : /^(io|app|dev)$/.test(n) ? bi(t[t.length - 1]) : !0;
5035
5142
  }
5036
- function xi(e) {
5037
- if (_i.test(e)) return e;
5143
+ function Si(e) {
5144
+ if (vi.test(e)) return e;
5038
5145
  let t = e.match(/^([a-z][a-z0-9+.-]*):/i);
5039
5146
  if (t) {
5040
5147
  let n = t[1], r = e.slice(t[0].length);
5041
- if (/^\d+([/?#]|$)/.test(r) && bi(n)) {
5148
+ if (/^\d+([/?#]|$)/.test(r) && xi(n)) {
5042
5149
  let t = parseInt(r, 10);
5043
5150
  if (t >= 1 && t <= 65535) return `https://${e}`;
5044
5151
  }
@@ -5046,14 +5153,14 @@ function xi(e) {
5046
5153
  }
5047
5154
  return `https://${e}`;
5048
5155
  }
5049
- function Si(e) {
5156
+ function Ci(e) {
5050
5157
  try {
5051
5158
  return new URL(e).hostname.replace(/^www\./i, "") || null;
5052
5159
  } catch {
5053
5160
  return null;
5054
5161
  }
5055
5162
  }
5056
- function Ci(e, t) {
5163
+ function wi(e, t) {
5057
5164
  if (t !== "linkedin.com") return null;
5058
5165
  try {
5059
5166
  let t = new URL(e).pathname.match(/^\/(in|company|school)\/([^/]+)/i);
@@ -5061,7 +5168,7 @@ function Ci(e, t) {
5061
5168
  } catch {}
5062
5169
  return null;
5063
5170
  }
5064
- function wi(e) {
5171
+ function Ti(e) {
5065
5172
  try {
5066
5173
  return new URL(e), !0;
5067
5174
  } catch {
@@ -5070,7 +5177,7 @@ function wi(e) {
5070
5177
  }
5071
5178
  //#endregion
5072
5179
  //#region src/components/fields/cells/factories/host-icons.tsx
5073
- function Ti(e, t = "0 0 24 24") {
5180
+ function Ei(e, t = "0 0 24 24") {
5074
5181
  return (n) => /* @__PURE__ */ I("svg", {
5075
5182
  width: 16,
5076
5183
  height: 16,
@@ -5086,11 +5193,11 @@ function Ti(e, t = "0 0 24 24") {
5086
5193
  children: e
5087
5194
  });
5088
5195
  }
5089
- var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5196
+ var Di = Ei(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5090
5197
  cx: "12",
5091
5198
  cy: "12",
5092
5199
  r: "9"
5093
- }), /* @__PURE__ */ I("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })), Di = (e) => /* @__PURE__ */ I("svg", {
5200
+ }), /* @__PURE__ */ I("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })), Oi = (e) => /* @__PURE__ */ I("svg", {
5094
5201
  width: 16,
5095
5202
  height: 16,
5096
5203
  viewBox: "0 0 24 24",
@@ -5099,7 +5206,7 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5099
5206
  style: { flexShrink: 0 },
5100
5207
  ...e,
5101
5208
  children: /* @__PURE__ */ I("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" })
5102
- }), Oi = (e) => /* @__PURE__ */ I("svg", {
5209
+ }), ki = (e) => /* @__PURE__ */ I("svg", {
5103
5210
  width: 16,
5104
5211
  height: 16,
5105
5212
  viewBox: "0 0 24 24",
@@ -5108,7 +5215,7 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5108
5215
  style: { flexShrink: 0 },
5109
5216
  ...e,
5110
5217
  children: /* @__PURE__ */ I("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" })
5111
- }), ki = (e) => /* @__PURE__ */ I("svg", {
5218
+ }), Ai = (e) => /* @__PURE__ */ I("svg", {
5112
5219
  width: 16,
5113
5220
  height: 16,
5114
5221
  viewBox: "0 0 24 24",
@@ -5117,7 +5224,7 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5117
5224
  style: { flexShrink: 0 },
5118
5225
  ...e,
5119
5226
  children: /* @__PURE__ */ I("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" })
5120
- }), Ai = (e) => /* @__PURE__ */ I("svg", {
5227
+ }), ji = (e) => /* @__PURE__ */ I("svg", {
5121
5228
  width: 16,
5122
5229
  height: 16,
5123
5230
  viewBox: "0 0 24 24",
@@ -5126,7 +5233,7 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5126
5233
  style: { flexShrink: 0 },
5127
5234
  ...e,
5128
5235
  children: /* @__PURE__ */ I("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" })
5129
- }), ji = (e) => /* @__PURE__ */ I("svg", {
5236
+ }), Mi = (e) => /* @__PURE__ */ I("svg", {
5130
5237
  width: 16,
5131
5238
  height: 16,
5132
5239
  viewBox: "0 0 24 24",
@@ -5135,7 +5242,7 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5135
5242
  style: { flexShrink: 0 },
5136
5243
  ...e,
5137
5244
  children: /* @__PURE__ */ I("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" })
5138
- }), Mi = (e) => /* @__PURE__ */ L("svg", {
5245
+ }), Ni = (e) => /* @__PURE__ */ L("svg", {
5139
5246
  width: 16,
5140
5247
  height: 16,
5141
5248
  viewBox: "0 0 24 24",
@@ -5160,7 +5267,7 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5160
5267
  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"
5161
5268
  })
5162
5269
  ]
5163
- }), Ni = (e) => /* @__PURE__ */ I("svg", {
5270
+ }), Pi = (e) => /* @__PURE__ */ I("svg", {
5164
5271
  width: 16,
5165
5272
  height: 16,
5166
5273
  viewBox: "0 0 24 24",
@@ -5169,39 +5276,39 @@ var Ei = Ti(/* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("circle", {
5169
5276
  style: { flexShrink: 0 },
5170
5277
  ...e,
5171
5278
  children: /* @__PURE__ */ I("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" })
5172
- }), Pi = {
5173
- "linkedin.com": Di,
5174
- "github.com": Oi,
5175
- "x.com": ki,
5176
- "twitter.com": ki,
5177
- "youtube.com": Ai,
5178
- "youtu.be": Ai,
5179
- "gmail.com": ji,
5180
- "mail.google.com": ji,
5181
- "slack.com": Mi,
5182
- "notion.so": Ni,
5183
- "notion.com": Ni
5279
+ }), Fi = {
5280
+ "linkedin.com": Oi,
5281
+ "github.com": ki,
5282
+ "x.com": Ai,
5283
+ "twitter.com": Ai,
5284
+ "youtube.com": ji,
5285
+ "youtu.be": ji,
5286
+ "gmail.com": Mi,
5287
+ "mail.google.com": Mi,
5288
+ "slack.com": Ni,
5289
+ "notion.so": Pi,
5290
+ "notion.com": Pi
5184
5291
  };
5185
- function Fi(e, t) {
5292
+ function Ii(e, t) {
5186
5293
  return !e || t === "none" ? null : t === "google" ? `https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=32` : `https://${e}/favicon.ico`;
5187
5294
  }
5188
- var Ii = {
5295
+ var Li = {
5189
5296
  width: 16,
5190
5297
  height: 16,
5191
5298
  flexShrink: 0,
5192
5299
  objectFit: "contain"
5193
5300
  };
5194
- function Li({ domain: e }) {
5195
- let t = Bt((e) => e.faviconSource), n = e ? e.toLowerCase() : "", r = n ? Pi[n] : void 0;
5301
+ function Ri({ domain: e }) {
5302
+ let t = Bt((e) => e.faviconSource), n = e ? e.toLowerCase() : "", r = n ? Fi[n] : void 0;
5196
5303
  if (r) return /* @__PURE__ */ I(r, {});
5197
- let i = Fi(n, t);
5198
- return i ? /* @__PURE__ */ I(Ri, { src: i }) : /* @__PURE__ */ I(Ei, {});
5304
+ let i = Ii(n, t);
5305
+ return i ? /* @__PURE__ */ I(zi, { src: i }) : /* @__PURE__ */ I(Di, {});
5199
5306
  }
5200
- function Ri({ src: e }) {
5307
+ function zi({ src: e }) {
5201
5308
  let [t, n] = N(!1);
5202
5309
  return k(() => {
5203
5310
  n(!1);
5204
- }, [e]), t ? /* @__PURE__ */ I(Ei, {}) : /* @__PURE__ */ I("img", {
5311
+ }, [e]), t ? /* @__PURE__ */ I(Di, {}) : /* @__PURE__ */ I("img", {
5205
5312
  src: e,
5206
5313
  alt: "",
5207
5314
  width: 16,
@@ -5209,99 +5316,99 @@ function Ri({ src: e }) {
5209
5316
  loading: "lazy",
5210
5317
  decoding: "async",
5211
5318
  referrerPolicy: "no-referrer",
5212
- style: Ii,
5319
+ style: Li,
5213
5320
  onError: () => n(!0)
5214
5321
  });
5215
5322
  }
5216
5323
  //#endregion
5217
5324
  //#region src/components/fields/cells/factories/url.tsx
5218
- var zi = {
5325
+ var Bi = {
5219
5326
  display: "inline-flex",
5220
5327
  alignItems: "center",
5221
5328
  gap: 4,
5222
5329
  fontSize: 12.5,
5223
5330
  color: "var(--accent)",
5224
5331
  textDecoration: "none"
5225
- }, Bi = {
5332
+ }, Vi = {
5226
5333
  fontSize: 12.5,
5227
5334
  color: "var(--text-4)"
5228
- }, Vi = { fontSize: 12.5 }, Hi = () => (e) => {
5335
+ }, Hi = { fontSize: 12.5 }, Ui = () => (e) => {
5229
5336
  let t = e == null ? "" : String(e);
5230
5337
  if (!t) return /* @__PURE__ */ I("span", {
5231
- style: Bi,
5338
+ style: Vi,
5232
5339
  children: "—"
5233
5340
  });
5234
- let n = xi(t);
5235
- if (n == null || !wi(n)) return /* @__PURE__ */ I("span", {
5236
- style: Vi,
5341
+ let n = Si(t);
5342
+ if (n == null || !Ti(n)) return /* @__PURE__ */ I("span", {
5343
+ style: Hi,
5237
5344
  children: t
5238
5345
  });
5239
- let r = Si(n), i = Ci(n, r ?? "") ?? r ?? t;
5346
+ let r = Ci(n), i = wi(n, r ?? "") ?? r ?? t;
5240
5347
  return /* @__PURE__ */ L("a", {
5241
5348
  href: n,
5242
5349
  target: "_blank",
5243
5350
  rel: "noopener noreferrer",
5244
5351
  title: t,
5245
5352
  className: "mono",
5246
- style: zi,
5353
+ style: Bi,
5247
5354
  children: [
5248
- /* @__PURE__ */ I(Li, { domain: r }),
5355
+ /* @__PURE__ */ I(Ri, { domain: r }),
5249
5356
  i,
5250
- /* @__PURE__ */ I(W.external, { size: 11 })
5357
+ /* @__PURE__ */ I(G.external, { size: 11 })
5251
5358
  ]
5252
5359
  });
5253
- }, Ui = {
5360
+ }, Wi = {
5254
5361
  fontSize: 12.5,
5255
5362
  color: "var(--accent)",
5256
5363
  textDecoration: "none"
5257
- }, Wi = {
5364
+ }, Gi = {
5258
5365
  fontSize: 12.5,
5259
5366
  color: "var(--text-4)"
5260
- }, Gi = () => (e) => {
5367
+ }, Ki = () => (e) => {
5261
5368
  let t = e == null ? "" : String(e);
5262
5369
  return t ? /* @__PURE__ */ I("a", {
5263
5370
  href: `mailto:${t}`,
5264
5371
  className: "mono",
5265
- style: Ui,
5372
+ style: Wi,
5266
5373
  children: t
5267
5374
  }) : /* @__PURE__ */ I("span", {
5268
- style: Wi,
5375
+ style: Gi,
5269
5376
  children: "—"
5270
5377
  });
5271
- }, Ki = {
5378
+ }, qi = {
5272
5379
  fontSize: 12.5,
5273
5380
  color: "var(--accent)",
5274
5381
  textDecoration: "none"
5275
- }, qi = {
5382
+ }, Ji = {
5276
5383
  fontSize: 12.5,
5277
5384
  color: "var(--text-4)"
5278
- }, Ji = { fontSize: 12.5 }, Yi = /^[+()\-.\s\d]+$/, Xi = () => (e) => {
5385
+ }, Yi = { fontSize: 12.5 }, Xi = /^[+()\-.\s\d]+$/, Zi = () => (e) => {
5279
5386
  let t = e == null ? "" : String(e);
5280
5387
  if (!t) return /* @__PURE__ */ I("span", {
5281
- style: qi,
5388
+ style: Ji,
5282
5389
  children: "—"
5283
5390
  });
5284
5391
  let n = t.trim();
5285
- return Yi.test(n) ? /* @__PURE__ */ I("a", {
5392
+ return Xi.test(n) ? /* @__PURE__ */ I("a", {
5286
5393
  href: `tel:${n.replace(/\s+/g, "")}`,
5287
5394
  className: "mono",
5288
- style: Ki,
5395
+ style: qi,
5289
5396
  children: t
5290
5397
  }) : /* @__PURE__ */ I("span", {
5291
- style: Ji,
5398
+ style: Yi,
5292
5399
  children: t
5293
5400
  });
5294
- }, Zi = {
5401
+ }, Qi = {
5295
5402
  fontSize: 12.5,
5296
5403
  fontVariantNumeric: "tabular-nums"
5297
- }, Qi = {
5404
+ }, $i = {
5298
5405
  color: "var(--text-3)",
5299
5406
  marginLeft: 4
5300
- }, $i = {
5407
+ }, ea = {
5301
5408
  fontSize: 12.5,
5302
5409
  color: "var(--text-4)"
5303
- }, ea = { fontSize: 12.5 };
5304
- function ta(e, t) {
5410
+ }, ta = { fontSize: 12.5 };
5411
+ function na(e, t) {
5305
5412
  let n = e.trim();
5306
5413
  if (n === "" || n === "-") return n;
5307
5414
  let r = n.startsWith("-"), [i, a] = (r ? n.slice(1) : n).split("."), o;
@@ -5313,60 +5420,60 @@ function ta(e, t) {
5313
5420
  let s = r ? `-${o}` : o;
5314
5421
  return a !== void 0 && (s += `.${a}`), s;
5315
5422
  }
5316
- var na = (e) => {
5423
+ var ra = (e) => {
5317
5424
  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;
5318
5425
  return (e, t) => {
5319
5426
  if (e == null) return /* @__PURE__ */ I("span", {
5320
- style: $i,
5427
+ style: ea,
5321
5428
  children: "—"
5322
5429
  });
5323
5430
  let r = t.$units?.[n] || (o && !o.startsWith("$") ? o : void 0), s;
5324
- if (a && typeof e == "string") s = ta(e, i);
5431
+ if (a && typeof e == "string") s = na(e, i);
5325
5432
  else {
5326
5433
  let t = typeof e == "number" ? e : Number(e);
5327
5434
  s = Number.isFinite(t) ? i.format(t) : null;
5328
5435
  }
5329
5436
  return s == null ? /* @__PURE__ */ I("span", {
5330
- style: ea,
5437
+ style: ta,
5331
5438
  children: "—"
5332
5439
  }) : /* @__PURE__ */ L("span", {
5333
5440
  className: "num",
5334
- style: Zi,
5441
+ style: Qi,
5335
5442
  children: [s, r && /* @__PURE__ */ I("span", {
5336
- style: Qi,
5443
+ style: $i,
5337
5444
  children: r
5338
5445
  })]
5339
5446
  });
5340
5447
  };
5341
- }, ra = {
5448
+ }, ia = {
5342
5449
  fontSize: 12.5,
5343
5450
  color: "var(--text-4)"
5344
- }, ia = { fontSize: 12.5 }, aa = () => (e) => e == null || e === "" ? /* @__PURE__ */ I("span", {
5345
- style: ra,
5451
+ }, aa = { fontSize: 12.5 }, oa = () => (e) => e == null || e === "" ? /* @__PURE__ */ I("span", {
5452
+ style: ia,
5346
5453
  children: "—"
5347
5454
  }) : /* @__PURE__ */ I("code", {
5348
5455
  className: "mono",
5349
- style: ia,
5456
+ style: aa,
5350
5457
  children: String(e)
5351
- }), oa = {
5458
+ }), sa = {
5352
5459
  display: "inline-flex",
5353
5460
  alignItems: "center",
5354
5461
  gap: 4,
5355
5462
  fontSize: 12.5,
5356
5463
  color: "var(--accent)",
5357
5464
  textDecoration: "none"
5358
- }, sa = {
5465
+ }, ca = {
5359
5466
  fontSize: 12.5,
5360
5467
  color: "var(--text-4)"
5361
- }, ca = { fontSize: 12.5 }, la = () => (e) => {
5468
+ }, la = { fontSize: 12.5 }, ua = () => (e) => {
5362
5469
  let t = e == null ? "" : String(e);
5363
5470
  if (!t) return /* @__PURE__ */ I("span", {
5364
- style: sa,
5471
+ style: ca,
5365
5472
  children: "—"
5366
5473
  });
5367
- let n = xi(t);
5368
- return n == null || !wi(n) ? /* @__PURE__ */ I("span", {
5369
- style: ca,
5474
+ let n = Si(t);
5475
+ return n == null || !Ti(n) ? /* @__PURE__ */ I("span", {
5476
+ style: la,
5370
5477
  children: t
5371
5478
  }) : /* @__PURE__ */ L("a", {
5372
5479
  href: n,
@@ -5374,21 +5481,21 @@ var na = (e) => {
5374
5481
  rel: "noopener noreferrer",
5375
5482
  title: t,
5376
5483
  className: "mono",
5377
- style: oa,
5378
- children: [t, /* @__PURE__ */ I(W.external, { size: 11 })]
5484
+ style: sa,
5485
+ children: [t, /* @__PURE__ */ I(G.external, { size: 11 })]
5379
5486
  });
5380
- }, ua = 400, da = 2e3;
5381
- function fa(e) {
5382
- return Math.max(1, Math.min(typeof e == "number" && Number.isFinite(e) ? Math.floor(e) : ua, da));
5487
+ }, da = 400, fa = 2e3;
5488
+ function pa(e) {
5489
+ return Math.max(1, Math.min(typeof e == "number" && Number.isFinite(e) ? Math.floor(e) : da, fa));
5383
5490
  }
5384
- function pa(e, t) {
5491
+ function ma(e, t) {
5385
5492
  return e.length <= t ? e : `${e.slice(0, t)}...`;
5386
5493
  }
5387
- function ma(e, t, n, r = 0) {
5494
+ function ha(e, t, n, r = 0) {
5388
5495
  if (e == null || e === "") return "";
5389
- if (typeof e == "string") return pa(e, t);
5496
+ if (typeof e == "string") return ma(e, t);
5390
5497
  if (typeof e == "number" || typeof e == "boolean") return String(e);
5391
- if (typeof e != "object") return pa(String(e), t);
5498
+ if (typeof e != "object") return ma(String(e), t);
5392
5499
  if (n.has(e)) return "[Circular]";
5393
5500
  if (r >= 3) return Array.isArray(e) ? "[...]" : "{...}";
5394
5501
  n.add(e);
@@ -5399,23 +5506,23 @@ function ma(e, t, n, r = 0) {
5399
5506
  a.push(a.length > 1 ? ",..." : "...");
5400
5507
  break;
5401
5508
  }
5402
- let f = ma(c, d, n, r + 1);
5509
+ let f = ha(c, d, n, r + 1);
5403
5510
  if (a.push(u, f), a.join("").length >= t) {
5404
5511
  a.push(",...");
5405
5512
  break;
5406
5513
  }
5407
5514
  }
5408
- return a.push(i), n.delete(e), pa(a.join(""), t);
5515
+ return a.push(i), n.delete(e), ma(a.join(""), t);
5409
5516
  }
5410
- function ha(e, t) {
5411
- return ma(e, t, /* @__PURE__ */ new WeakSet());
5517
+ function ga(e, t) {
5518
+ return ha(e, t, /* @__PURE__ */ new WeakSet());
5412
5519
  }
5413
- var ga = (e) => {
5414
- let t = e.surface ?? "detail", n = fa(e.field.display?.list_preview?.max_chars);
5520
+ var _a = (e) => {
5521
+ let t = e.surface ?? "detail", n = pa(e.field.display?.list_preview?.max_chars);
5415
5522
  return (r) => {
5416
5523
  if (r == null || r === "") return "-";
5417
5524
  if (t === "list") {
5418
- let e = ha(r, n);
5525
+ let e = ga(r, n);
5419
5526
  return /* @__PURE__ */ I("span", {
5420
5527
  className: "font-mono text-xs text-muted-foreground",
5421
5528
  title: e,
@@ -5430,7 +5537,7 @@ var ga = (e) => {
5430
5537
  locale: e.locale
5431
5538
  });
5432
5539
  };
5433
- }, _a = [
5540
+ }, va = [
5434
5541
  {
5435
5542
  pattern: /```[^\n]*\n?([\s\S]*?)```/g,
5436
5543
  replacement: "$1"
@@ -5493,13 +5600,13 @@ var ga = (e) => {
5493
5600
  replacement: ""
5494
5601
  }
5495
5602
  ];
5496
- function va(e) {
5603
+ function ya(e) {
5497
5604
  if (!e) return {
5498
5605
  text: "",
5499
5606
  isPlain: !0
5500
5607
  };
5501
5608
  let t = e, n = !1;
5502
- for (let e of _a) {
5609
+ for (let e of va) {
5503
5610
  let r = t.replace(e.pattern, e.replacement);
5504
5611
  r !== t && e.structural !== !1 && (n = !0), t = r;
5505
5612
  }
@@ -5510,134 +5617,134 @@ function va(e) {
5510
5617
  }
5511
5618
  //#endregion
5512
5619
  //#region src/components/fields/cells/factories/markdown.tsx
5513
- var ya = {
5620
+ var ba = {
5514
5621
  fontSize: 12.5,
5515
5622
  color: "var(--text-4)"
5516
5623
  };
5517
- function ba(e) {
5624
+ function xa(e) {
5518
5625
  return /* @__PURE__ */ I(Gt, { content: e });
5519
5626
  }
5520
- var xa = (e) => {
5627
+ var Sa = (e) => {
5521
5628
  let t = e.surface === "list";
5522
5629
  return (e) => {
5523
5630
  let n = e == null ? "" : String(e);
5524
5631
  if (!n) return /* @__PURE__ */ I("span", {
5525
- style: ya,
5632
+ style: ba,
5526
5633
  children: "—"
5527
5634
  });
5528
- if (!t) return ba(n);
5529
- let { text: r, isPlain: i } = va(n);
5635
+ if (!t) return xa(n);
5636
+ let { text: r, isPlain: i } = ya(n);
5530
5637
  return i ? /* @__PURE__ */ I("span", {
5531
5638
  title: r,
5532
5639
  children: r
5533
- }) : /* @__PURE__ */ I(fe, {
5534
- content: ba(n),
5640
+ }) : /* @__PURE__ */ I(de, {
5641
+ content: xa(n),
5535
5642
  children: /* @__PURE__ */ I("span", {
5536
5643
  title: r,
5537
5644
  children: r
5538
5645
  })
5539
5646
  });
5540
5647
  };
5541
- }, Sa = "[SET]", Ca = {
5648
+ }, Ca = "[SET]", wa = {
5542
5649
  fontSize: 12.5,
5543
5650
  color: "var(--text-3)"
5544
- }, wa = {
5651
+ }, Ta = {
5545
5652
  fontSize: 12.5,
5546
5653
  color: "var(--text-4)",
5547
5654
  fontStyle: "italic"
5548
- }, Ta = () => (e) => e === Sa || typeof e == "string" && e !== "" ? /* @__PURE__ */ I("span", {
5655
+ }, Ea = () => (e) => e === Ca || typeof e == "string" && e !== "" ? /* @__PURE__ */ I("span", {
5549
5656
  className: "mono",
5550
- style: Ca,
5551
- children: Sa
5552
- }) : /* @__PURE__ */ I("span", {
5553
5657
  style: wa,
5658
+ children: Ca
5659
+ }) : /* @__PURE__ */ I("span", {
5660
+ style: Ta,
5554
5661
  children: "Not set"
5555
- }), Ea = {
5662
+ }), Da = {
5556
5663
  fontSize: 12.5,
5557
5664
  color: "var(--text-4)"
5558
5665
  };
5559
- function Da(e, t) {
5666
+ function Oa(e, t) {
5560
5667
  return /* @__PURE__ */ I(Gt, {
5561
5668
  content: e,
5562
5669
  files: t
5563
5670
  });
5564
5671
  }
5565
- var Oa = (e) => {
5672
+ var ka = (e) => {
5566
5673
  let { fieldName: t } = e, n = e.surface === "list";
5567
5674
  return (e, r) => {
5568
5675
  let i = r?.$files?.[t], a = w(e, i);
5569
5676
  if (!a.markdown) return /* @__PURE__ */ I("span", {
5570
- style: Ea,
5677
+ style: Da,
5571
5678
  children: "-"
5572
5679
  });
5573
- if (!n) return Da(a.markdown, a.files);
5574
- let { text: o, isPlain: s } = va(a.markdown);
5680
+ if (!n) return Oa(a.markdown, a.files);
5681
+ let { text: o, isPlain: s } = ya(a.markdown);
5575
5682
  return s ? /* @__PURE__ */ I("span", {
5576
5683
  title: o,
5577
5684
  children: o
5578
- }) : /* @__PURE__ */ I(fe, {
5579
- content: Da(a.markdown, a.files),
5685
+ }) : /* @__PURE__ */ I(de, {
5686
+ content: Oa(a.markdown, a.files),
5580
5687
  children: /* @__PURE__ */ I("span", {
5581
5688
  title: o,
5582
5689
  children: o
5583
5690
  })
5584
5691
  });
5585
5692
  };
5586
- }, ka = { fontSize: 12.5 }, Aa = {
5693
+ }, Aa = { fontSize: 12.5 }, ja = {
5587
5694
  fontSize: 12.5,
5588
5695
  whiteSpace: "pre-wrap",
5589
5696
  margin: 0
5590
5697
  };
5591
- function ja(e) {
5698
+ function Ma(e) {
5592
5699
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
5593
5700
  }
5594
- function Ma(e, t) {
5701
+ function Na(e, t) {
5595
5702
  if (t && typeof e[t] == "string" && e[t] !== "") return [t, e[t]];
5596
5703
  for (let [t, n] of Object.entries(e)) if (typeof n == "string" && n !== "") return [t, n];
5597
5704
  return null;
5598
5705
  }
5599
5706
  //#endregion
5600
5707
  //#region src/components/fields/cells/registry.ts
5601
- var Na = {
5602
- text: Yr,
5603
- bool_pill: Xr,
5604
- badge: ti,
5605
- status_pill: ii,
5606
- tag_list: si,
5607
- time_ago: ci,
5608
- timestamp_full: li,
5609
- next_run: fi,
5610
- money: pi,
5611
- ref_link: hi,
5612
- url: Hi,
5613
- email: Gi,
5614
- phone: Xi,
5615
- number: na,
5616
- code: aa,
5617
- link: la,
5618
- json: ga,
5619
- markdown: xa,
5620
- password_mask: Ta,
5621
- rich_text_preview: Oa,
5708
+ var Pa = {
5709
+ text: Xr,
5710
+ bool_pill: Zr,
5711
+ badge: ni,
5712
+ status_pill: ai,
5713
+ tag_list: ci,
5714
+ time_ago: li,
5715
+ timestamp_full: ui,
5716
+ next_run: pi,
5717
+ money: mi,
5718
+ ref_link: gi,
5719
+ url: Ui,
5720
+ email: Ki,
5721
+ phone: Zi,
5722
+ number: ra,
5723
+ code: oa,
5724
+ link: ua,
5725
+ json: _a,
5726
+ markdown: Sa,
5727
+ password_mask: Ea,
5728
+ rich_text_preview: ka,
5622
5729
  multilang_inline: (e) => {
5623
5730
  let { field: t, locale: n } = e, r = t.type === "multilang_text";
5624
5731
  return (e) => {
5625
- let t = Ma(ja(e), n);
5732
+ let t = Na(Ma(e), n);
5626
5733
  if (!t) return r ? /* @__PURE__ */ I("p", {
5627
- style: Aa,
5734
+ style: ja,
5628
5735
  children: "—"
5629
5736
  }) : /* @__PURE__ */ I("span", {
5630
- style: ka,
5737
+ style: Aa,
5631
5738
  children: "—"
5632
5739
  });
5633
5740
  let [i, a] = t;
5634
5741
  return r ? /* @__PURE__ */ I("p", {
5635
- style: Aa,
5742
+ style: ja,
5636
5743
  lang: i,
5637
5744
  dir: "auto",
5638
5745
  children: a
5639
5746
  }) : /* @__PURE__ */ I("span", {
5640
- style: ka,
5747
+ style: Aa,
5641
5748
  lang: i,
5642
5749
  dir: "auto",
5643
5750
  children: a
@@ -5645,18 +5752,18 @@ var Na = {
5645
5752
  };
5646
5753
  }
5647
5754
  };
5648
- Object.keys(Na).sort();
5649
- function Pa(e) {
5650
- let t = e.field.display?.widget ?? "text", n = Na[t];
5755
+ Object.keys(Pa).sort();
5756
+ function Fa(e) {
5757
+ let t = e.field.display?.widget ?? "text", n = Pa[t];
5651
5758
  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.`);
5652
5759
  return n(e);
5653
5760
  }
5654
5761
  //#endregion
5655
5762
  //#region src/components/fields/index.tsx
5656
- var Fa = {
5763
+ var Ia = {
5657
5764
  string: ln,
5658
5765
  text: un,
5659
- rich_text: Kr,
5766
+ rich_text: qr,
5660
5767
  int: On,
5661
5768
  float: On,
5662
5769
  decimal: On,
@@ -5682,16 +5789,16 @@ var Fa = {
5682
5789
  secret: Un,
5683
5790
  password: Gn
5684
5791
  };
5685
- for (let e of sn) if (!Fa[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.`);
5686
- function Ia(e) {
5792
+ for (let e of sn) if (!Ia[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.`);
5793
+ function La(e) {
5687
5794
  if (e.field.type === "json" && e.field.structure) return /* @__PURE__ */ I(zn, { ...e });
5688
5795
  if (e.mode === "edit") {
5689
- let t = Fa[e.field.type];
5796
+ let t = Ia[e.field.type];
5690
5797
  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.`);
5691
5798
  return /* @__PURE__ */ I(t, { ...e });
5692
5799
  }
5693
5800
  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.`);
5694
- return Pa({
5801
+ return Fa({
5695
5802
  field: e.field,
5696
5803
  fieldName: e.fieldName,
5697
5804
  surface: e.surface ?? "detail",
@@ -5705,19 +5812,19 @@ function Ia(e) {
5705
5812
  }
5706
5813
  //#endregion
5707
5814
  //#region src/hooks/useUserLocale.ts
5708
- var La = "en";
5709
- function Ra() {
5815
+ var Ra = "en";
5816
+ function za() {
5710
5817
  if (typeof navigator > "u") return;
5711
5818
  let e = navigator.language;
5712
5819
  if (e) return e.split("-")[0] || void 0;
5713
5820
  }
5714
- function za() {
5821
+ function Ba() {
5715
5822
  let e = bt((e) => e.user), { data: t } = xt(), n = e?.language;
5716
5823
  if (n && n.trim()) return n;
5717
5824
  let r = t?.languages?.[0]?.code;
5718
- return r && r.trim() ? r : Ra() || La;
5825
+ return r && r.trim() ? r : za() || Ra;
5719
5826
  }
5720
5827
  //#endregion
5721
- export { Le as $, Jt as A, be as At, bt as B, J as Bt, cn as C, Ne as Ct, Zt as D, Z as Dt, Yt as E, we as Et, Gt as F, pe as Ft, gt as G, W as Gt, st as H, q as Ht, Vt as I, X as It, dt as J, _t as K, re as Kt, Ht as L, fe as Lt, on as M, ve as Mt, $t as N, _e as Nt, an as O, Pe as Ot, Xt as P, ge as Pt, ft as Q, Bt as R, oe as Rt, gn as S, Fe as St, rn as T, je as Tt, ut as U, K as Ut, yt as V, ie as Vt, vt as W, G as Wt, lt as X, ct as Y, ht as Z, Qn as _, Ie as _t, Wr as a, He as at, kn as b, Me as bt, Fr as c, tt as ct, mr as d, Xe as dt, Qe as et, pr as f, Ye as ft, Zn as g, Ve as gt, tr as h, Ze as ht, Ur as i, Ke as it, qt as j, ye as jt, en as k, xe as kt, Pr as l, Q as lt, nr as m, Ue as mt, Ia as n, et as nt, Ar as o, Re as ot, fr as p, Je as pt, mt as q, Pa as r, We as rt, Mr as s, Ge as st, za as t, $e as tt, Nr as u, qe as ut, $ as v, Ee as vt, tn as w, Te as wt, _n as x, Ae as xt, An as y, Se as yt, xt as z, ae as zt };
5828
+ export { Ie as $, Jt as A, ye as At, bt as B, Y as Bt, cn as C, Me as Ct, Zt as D, Q as Dt, Yt as E, Ce as Et, Gt as F, fe as Ft, gt as G, G as Gt, st as H, J as Ht, Vt as I, Z as It, dt as J, _t as K, ne as Kt, Ht as L, de as Lt, on as M, _e as Mt, $t as N, ge as Nt, an as O, Ne as Ot, Xt as P, he as Pt, ft as Q, Bt as R, ae as Rt, gn as S, Pe as St, rn as T, Ae as Tt, ut as U, q as Ut, yt as V, re as Vt, vt as W, K as Wt, lt as X, ct as Y, ht as Z, $n as _, Fe as _t, Gr as a, He as at, kn as b, je as bt, Ir as c, tt as ct, hr as d, Xe as dt, Qe as et, mr as f, Ye as ft, Qn as g, Ve as gt, nr as h, Ze as ht, Wr as i, Ke as it, qt as j, ve as jt, en as k, be as kt, Fr as l, $ as lt, rr as m, Ue as mt, La as n, et as nt, jr as o, Le as ot, pr as p, Je as pt, mt as q, Fa as r, We as rt, Nr as s, Ge as st, Ba as t, $e as tt, Pr as u, qe as ut, Zn as v, Te as vt, tn as w, we as wt, _n as x, ke as xt, An as y, xe as yt, xt as z, ie as zt };
5722
5829
 
5723
- //# sourceMappingURL=useUserLocale-D9wc5kzQ.js.map
5830
+ //# sourceMappingURL=useUserLocale-CSS6fwi8.js.map