@declarion/react 0.2.16 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,18 +3,18 @@ import { a as w, i as T, o as E, r as D, s as O, t as k } from "./rich-text-CJpz
3
3
  import { Suspense as A, forwardRef as j, lazy as M, useCallback as N, useEffect as P, useLayoutEffect as F, useMemo as I, useRef as L, useState as R } from "react";
4
4
  import { useQuery as z } from "@tanstack/react-query";
5
5
  import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
6
- import { createPortal as U } from "react-dom";
7
- import { create as W } from "zustand";
8
- import { clsx as te } from "clsx";
9
- import { twMerge as G } from "tailwind-merge";
10
- import { formatDistanceStrict as ne, formatDistanceToNowStrict as re, formatISO as ie } from "date-fns";
6
+ import { createPortal as te } from "react-dom";
7
+ import { create as U } from "zustand";
8
+ import { clsx as ne } from "clsx";
9
+ import { twMerge as W } from "tailwind-merge";
10
+ import { formatDistanceStrict as re, formatDistanceToNowStrict as ie, formatISO as ae } from "date-fns";
11
11
  //#region src/components/primitives/cx.ts
12
- function ae(...e) {
12
+ function oe(...e) {
13
13
  return e.filter(Boolean).join(" ");
14
14
  }
15
15
  //#endregion
16
16
  //#region src/components/primitives/Icons.tsx
17
- var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__PURE__ */ V("svg", {
17
+ var G = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__PURE__ */ V("svg", {
18
18
  width: n,
19
19
  height: n,
20
20
  viewBox: "0 0 24 24",
@@ -27,14 +27,14 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
27
27
  style: i,
28
28
  "aria-hidden": "true",
29
29
  children: e
30
- }), q = {
31
- home: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M3 10.5 12 3l9 7.5" }), /* @__PURE__ */ V("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" })] })),
32
- inbox: K(/* @__PURE__ */ H(B, { children: [
30
+ }), K = {
31
+ home: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M3 10.5 12 3l9 7.5" }), /* @__PURE__ */ V("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" })] })),
32
+ inbox: G(/* @__PURE__ */ H(B, { children: [
33
33
  /* @__PURE__ */ V("path", { d: "M4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5" }),
34
34
  /* @__PURE__ */ V("path", { d: "M4 13h5l1 2h4l1-2h5" }),
35
35
  /* @__PURE__ */ V("path", { d: "M4 13 7 5a2 2 0 0 1 2-1h6a2 2 0 0 1 2 1l3 8" })
36
36
  ] })),
37
- flow: K(/* @__PURE__ */ H(B, { children: [
37
+ flow: G(/* @__PURE__ */ H(B, { children: [
38
38
  /* @__PURE__ */ V("circle", {
39
39
  cx: "6",
40
40
  cy: "6",
@@ -57,12 +57,12 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
57
57
  }),
58
58
  /* @__PURE__ */ V("path", { d: "M8 6h8M6 8v8M18 8v8M8 18h8" })
59
59
  ] })),
60
- pipeline: K(/* @__PURE__ */ H(B, { children: [
60
+ pipeline: G(/* @__PURE__ */ H(B, { children: [
61
61
  /* @__PURE__ */ V("path", { d: "M3 6h13l5 3-5 3H3z" }),
62
62
  /* @__PURE__ */ V("path", { d: "M3 13h9" }),
63
63
  /* @__PURE__ */ V("path", { d: "M3 18h13" })
64
64
  ] })),
65
- leads: K(/* @__PURE__ */ H(B, { children: [
65
+ leads: G(/* @__PURE__ */ H(B, { children: [
66
66
  /* @__PURE__ */ V("circle", {
67
67
  cx: "9",
68
68
  cy: "8",
@@ -71,13 +71,13 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
71
71
  /* @__PURE__ */ V("path", { d: "M3 20c0-3 3-5 6-5s6 2 6 5" }),
72
72
  /* @__PURE__ */ V("path", { d: "M17 10l2 2 4-4" })
73
73
  ] })),
74
- company: K(/* @__PURE__ */ H(B, { children: [
74
+ company: G(/* @__PURE__ */ H(B, { children: [
75
75
  /* @__PURE__ */ V("path", { d: "M4 21V6a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v15" }),
76
76
  /* @__PURE__ */ V("path", { d: "M15 21V11h4a1 1 0 0 1 1 1v9" }),
77
77
  /* @__PURE__ */ V("path", { d: "M7 9h2M7 13h2M7 17h2M11 9h1M11 13h1M11 17h1" })
78
78
  ] })),
79
- activity: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M3 12h4l3-8 4 16 3-8h4" }) })),
80
- users: K(/* @__PURE__ */ H(B, { children: [
79
+ activity: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M3 12h4l3-8 4 16 3-8h4" }) })),
80
+ users: G(/* @__PURE__ */ H(B, { children: [
81
81
  /* @__PURE__ */ V("circle", {
82
82
  cx: "9",
83
83
  cy: "8",
@@ -87,19 +87,19 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
87
87
  /* @__PURE__ */ V("path", { d: "M16 3.5a3 3 0 0 1 0 6" }),
88
88
  /* @__PURE__ */ V("path", { d: "M22 20c0-2.5-1.5-5-4-6" })
89
89
  ] })),
90
- tenant: K(/* @__PURE__ */ H(B, { children: [
90
+ tenant: G(/* @__PURE__ */ H(B, { children: [
91
91
  /* @__PURE__ */ V("path", { d: "M3 21V9l6-4 6 4M3 21h18" }),
92
92
  /* @__PURE__ */ V("path", { d: "M15 21V9" }),
93
93
  /* @__PURE__ */ V("path", { d: "M19 21V13l2-2" }),
94
94
  /* @__PURE__ */ V("path", { d: "M7 13h2M7 17h2M11 13h1M11 17h1" })
95
95
  ] })),
96
- shield: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }) })),
97
- key: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
96
+ shield: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }) })),
97
+ key: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
98
98
  cx: "8",
99
99
  cy: "14",
100
100
  r: "4"
101
101
  }), /* @__PURE__ */ V("path", { d: "m11 11 9-9M17 5l3 3M15 7l3 3" })] })),
102
- group: K(/* @__PURE__ */ H(B, { children: [
102
+ group: G(/* @__PURE__ */ H(B, { children: [
103
103
  /* @__PURE__ */ V("circle", {
104
104
  cx: "8",
105
105
  cy: "10",
@@ -113,7 +113,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
113
113
  /* @__PURE__ */ V("path", { d: "M2 20c0-3 2.5-5 6-5s6 2 6 5" }),
114
114
  /* @__PURE__ */ V("path", { d: "M15 16c2-1 4-1 6 0" })
115
115
  ] })),
116
- idp: K(/* @__PURE__ */ H(B, { children: [
116
+ idp: G(/* @__PURE__ */ H(B, { children: [
117
117
  /* @__PURE__ */ V("rect", {
118
118
  x: "3",
119
119
  y: "5",
@@ -124,24 +124,24 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
124
124
  /* @__PURE__ */ V("path", { d: "M3 10h18" }),
125
125
  /* @__PURE__ */ V("path", { d: "M7 15h4" })
126
126
  ] })),
127
- audit: K(/* @__PURE__ */ H(B, { children: [
127
+ audit: G(/* @__PURE__ */ H(B, { children: [
128
128
  /* @__PURE__ */ V("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__ */ V("path", { d: "M14 3v6h6" }),
130
130
  /* @__PURE__ */ V("path", { d: "M8 13h8M8 17h5" })
131
131
  ] })),
132
- log: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
132
+ log: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
133
133
  x: "3",
134
134
  y: "4",
135
135
  width: "18",
136
136
  height: "16",
137
137
  rx: "2"
138
138
  }), /* @__PURE__ */ V("path", { d: "M7 9h10M7 13h10M7 17h6" })] })),
139
- handlers: K(/* @__PURE__ */ H(B, { children: [
139
+ handlers: G(/* @__PURE__ */ H(B, { children: [
140
140
  /* @__PURE__ */ V("path", { d: "M10 4 4 8v8l6 4 6-4" }),
141
141
  /* @__PURE__ */ V("path", { d: "M16 4l4 2.5v8L16 17" }),
142
142
  /* @__PURE__ */ V("path", { d: "m10 12 6-3.5" })
143
143
  ] })),
144
- jobs: K(/* @__PURE__ */ H(B, { children: [
144
+ jobs: G(/* @__PURE__ */ H(B, { children: [
145
145
  /* @__PURE__ */ V("rect", {
146
146
  x: "3",
147
147
  y: "6",
@@ -153,7 +153,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
153
153
  /* @__PURE__ */ V("path", { d: "M12 10v5" }),
154
154
  /* @__PURE__ */ V("path", { d: "M10 12h4" })
155
155
  ] })),
156
- sched: K(/* @__PURE__ */ H(B, { children: [
156
+ sched: G(/* @__PURE__ */ H(B, { children: [
157
157
  /* @__PURE__ */ V("circle", {
158
158
  cx: "12",
159
159
  cy: "13",
@@ -162,7 +162,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
162
162
  /* @__PURE__ */ V("path", { d: "M12 9v4l3 2" }),
163
163
  /* @__PURE__ */ V("path", { d: "M9 3h6" })
164
164
  ] })),
165
- entity: K(/* @__PURE__ */ H(B, { children: [
165
+ entity: G(/* @__PURE__ */ H(B, { children: [
166
166
  /* @__PURE__ */ V("ellipse", {
167
167
  cx: "12",
168
168
  cy: "6",
@@ -172,26 +172,26 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
172
172
  /* @__PURE__ */ V("path", { d: "M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6" }),
173
173
  /* @__PURE__ */ V("path", { d: "M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6" })
174
174
  ] })),
175
- field: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M4 6h16M4 12h10M4 18h16" }) })),
176
- action: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
177
- code: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m8 8-4 4 4 4M16 8l4 4-4 4M14 4l-4 16" }) })),
178
- search: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
175
+ field: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M4 6h16M4 12h10M4 18h16" }) })),
176
+ action: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
177
+ code: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m8 8-4 4 4 4M16 8l4 4-4 4M14 4l-4 16" }) })),
178
+ search: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
179
179
  cx: "11",
180
180
  cy: "11",
181
181
  r: "7"
182
182
  }), /* @__PURE__ */ V("path", { d: "m20 20-3.5-3.5" })] })),
183
- filter: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M3 5h18l-7 9v6l-4-2v-4z" }) })),
184
- columns: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
183
+ filter: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M3 5h18l-7 9v6l-4-2v-4z" }) })),
184
+ columns: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
185
185
  x: "3",
186
186
  y: "4",
187
187
  width: "18",
188
188
  height: "16",
189
189
  rx: "1"
190
190
  }), /* @__PURE__ */ V("path", { d: "M9 4v16M15 4v16" })] })),
191
- plus: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 5v14M5 12h14" }) })),
192
- minus: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M5 12h14" }) })),
193
- sort: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M8 4v16l-3-3M8 4l3 3" }), /* @__PURE__ */ V("path", { d: "M16 20V4l-3 3M16 20l3-3" })] })),
194
- more: K(/* @__PURE__ */ H(B, { children: [
191
+ plus: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 5v14M5 12h14" }) })),
192
+ minus: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M5 12h14" }) })),
193
+ sort: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M8 4v16l-3-3M8 4l3 3" }), /* @__PURE__ */ V("path", { d: "M16 20V4l-3 3M16 20l3-3" })] })),
194
+ more: G(/* @__PURE__ */ H(B, { children: [
195
195
  /* @__PURE__ */ V("circle", {
196
196
  cx: "5",
197
197
  cy: "12",
@@ -208,15 +208,15 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
208
208
  r: "1.2"
209
209
  })
210
210
  ] }), { sw: 2 }),
211
- x: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M18 6 6 18M6 6l12 12" }) })),
212
- check: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m5 12 5 5L20 7" }) }), { sw: 2 }),
213
- down: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m6 9 6 6 6-6" }) })),
214
- up: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m6 15 6-6 6 6" }) })),
215
- right: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m9 6 6 6-6 6" }) })),
216
- left: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m15 6-6 6 6 6" }) })),
217
- cheveron: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m8 10 4 4 4-4" }) })),
218
- back: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M19 12H5M12 19l-7-7 7-7" }) })),
219
- calendar: K(/* @__PURE__ */ H(B, { children: [
211
+ x: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M18 6 6 18M6 6l12 12" }) })),
212
+ check: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m5 12 5 5L20 7" }) }), { sw: 2 }),
213
+ down: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m6 9 6 6 6-6" }) })),
214
+ up: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m6 15 6-6 6 6" }) })),
215
+ right: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m9 6 6 6-6 6" }) })),
216
+ left: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m15 6-6 6 6 6" }) })),
217
+ cheveron: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m8 10 4 4 4-4" }) })),
218
+ back: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M19 12H5M12 19l-7-7 7-7" }) })),
219
+ calendar: G(/* @__PURE__ */ H(B, { children: [
220
220
  /* @__PURE__ */ V("rect", {
221
221
  x: "3",
222
222
  y: "5",
@@ -227,93 +227,93 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
227
227
  /* @__PURE__ */ V("path", { d: "M3 10h18" }),
228
228
  /* @__PURE__ */ V("path", { d: "M8 3v4M16 3v4" })
229
229
  ] })),
230
- clock: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
230
+ clock: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
231
231
  cx: "12",
232
232
  cy: "12",
233
233
  r: "9"
234
234
  }), /* @__PURE__ */ V("path", { d: "M12 7v5l3 2" })] })),
235
- lock: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
235
+ lock: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
236
236
  x: "5",
237
237
  y: "11",
238
238
  width: "14",
239
239
  height: "9",
240
240
  rx: "2"
241
241
  }), /* @__PURE__ */ V("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })] })),
242
- email: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
242
+ email: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
243
243
  x: "3",
244
244
  y: "5",
245
245
  width: "18",
246
246
  height: "14",
247
247
  rx: "2"
248
248
  }), /* @__PURE__ */ V("path", { d: "m3 7 9 6 9-6" })] })),
249
- link: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M10 14a5 5 0 0 0 7 0l3-3a5 5 0 1 0-7-7l-1 1" }), /* @__PURE__ */ V("path", { d: "M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 1 0 7 7l1-1" })] })),
250
- hash: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M5 9h14M5 15h14M10 3 8 21M16 3l-2 18" }) })),
251
- eye: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ V("circle", {
249
+ link: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M10 14a5 5 0 0 0 7 0l3-3a5 5 0 1 0-7-7l-1 1" }), /* @__PURE__ */ V("path", { d: "M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 1 0 7 7l1-1" })] })),
250
+ hash: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M5 9h14M5 15h14M10 3 8 21M16 3l-2 18" }) })),
251
+ eye: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ V("circle", {
252
252
  cx: "12",
253
253
  cy: "12",
254
254
  r: "3"
255
255
  })] })),
256
- eyeOff: K(/* @__PURE__ */ H(B, { children: [
256
+ eyeOff: G(/* @__PURE__ */ H(B, { children: [
257
257
  /* @__PURE__ */ V("path", { d: "M3 3l18 18" }),
258
258
  /* @__PURE__ */ V("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" }),
259
259
  /* @__PURE__ */ V("path", { d: "M9.9 9.9a3 3 0 0 0 4.2 4.2" })
260
260
  ] })),
261
- copy: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
261
+ copy: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
262
262
  x: "9",
263
263
  y: "9",
264
264
  width: "11",
265
265
  height: "11",
266
266
  rx: "2"
267
267
  }), /* @__PURE__ */ V("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })] })),
268
- trash: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }) })),
269
- edit: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 20h4l11-11-4-4L4 16z" }), /* @__PURE__ */ V("path", { d: "m13 6 4 4" })] })),
270
- save: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }), /* @__PURE__ */ V("path", { d: "M7 3v5h8V3M8 15h8v6H8z" })] })),
271
- refresh: K(/* @__PURE__ */ H(B, { children: [
268
+ trash: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }) })),
269
+ edit: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 20h4l11-11-4-4L4 16z" }), /* @__PURE__ */ V("path", { d: "m13 6 4 4" })] })),
270
+ save: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 5a2 2 0 0 1 2-2h10l4 4v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }), /* @__PURE__ */ V("path", { d: "M7 3v5h8V3M8 15h8v6H8z" })] })),
271
+ refresh: G(/* @__PURE__ */ H(B, { children: [
272
272
  /* @__PURE__ */ V("path", { d: "M3 12a9 9 0 0 1 15-6.7L21 8" }),
273
273
  /* @__PURE__ */ V("path", { d: "M21 3v5h-5" }),
274
274
  /* @__PURE__ */ V("path", { d: "M21 12a9 9 0 0 1-15 6.7L3 16" }),
275
275
  /* @__PURE__ */ V("path", { d: "M3 21v-5h5" })
276
276
  ] })),
277
- download: K(/* @__PURE__ */ H(B, { children: [
277
+ download: G(/* @__PURE__ */ H(B, { children: [
278
278
  /* @__PURE__ */ V("path", { d: "M12 3v12" }),
279
279
  /* @__PURE__ */ V("path", { d: "m7 10 5 5 5-5" }),
280
280
  /* @__PURE__ */ V("path", { d: "M5 20h14" })
281
281
  ] })),
282
- upload: K(/* @__PURE__ */ H(B, { children: [
282
+ upload: G(/* @__PURE__ */ H(B, { children: [
283
283
  /* @__PURE__ */ V("path", { d: "M12 15V3" }),
284
284
  /* @__PURE__ */ V("path", { d: "m7 8 5-5 5 5" }),
285
285
  /* @__PURE__ */ V("path", { d: "M5 20h14" })
286
286
  ] })),
287
- paperclip: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
288
- tag: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 4h7l9 9-7 7-9-9z" }), /* @__PURE__ */ V("circle", {
287
+ paperclip: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
288
+ tag: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 4h7l9 9-7 7-9-9z" }), /* @__PURE__ */ V("circle", {
289
289
  cx: "8",
290
290
  cy: "8",
291
291
  r: "1.5"
292
292
  })] })),
293
- bolt: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
294
- bell: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16z" }), /* @__PURE__ */ V("path", { d: "M10 20a2 2 0 0 0 4 0" })] })),
295
- ai: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("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__ */ V("circle", {
293
+ bolt: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
294
+ bell: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16z" }), /* @__PURE__ */ V("path", { d: "M10 20a2 2 0 0 0 4 0" })] })),
295
+ ai: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("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__ */ V("circle", {
296
296
  cx: "12",
297
297
  cy: "12",
298
298
  r: "3.5"
299
299
  })] })),
300
- sparkle: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4" }), /* @__PURE__ */ V("path", { d: "m7 7 2 2M15 15l2 2M17 7l-2 2M9 15l-2 2" })] })),
301
- command: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
302
- menu: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M4 6h16M4 12h16M4 18h16" }) })),
303
- dot: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("circle", {
300
+ sparkle: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4" }), /* @__PURE__ */ V("path", { d: "m7 7 2 2M15 15l2 2M17 7l-2 2M9 15l-2 2" })] })),
301
+ command: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
302
+ menu: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M4 6h16M4 12h16M4 18h16" }) })),
303
+ dot: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("circle", {
304
304
  cx: "12",
305
305
  cy: "12",
306
306
  r: "4",
307
307
  fill: "currentColor"
308
308
  }) })),
309
- globe: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
309
+ globe: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
310
310
  cx: "12",
311
311
  cy: "12",
312
312
  r: "9"
313
313
  }), /* @__PURE__ */ V("path", { d: "M3 12h18M12 3c3 3 3 15 0 18-3-3-3-15 0-18" })] })),
314
- folder: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
315
- file: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }), /* @__PURE__ */ V("path", { d: "M14 3v6h6" })] })),
316
- branch: K(/* @__PURE__ */ H(B, { children: [
314
+ folder: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
315
+ file: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }), /* @__PURE__ */ V("path", { d: "M14 3v6h6" })] })),
316
+ branch: G(/* @__PURE__ */ H(B, { children: [
317
317
  /* @__PURE__ */ V("circle", {
318
318
  cx: "6",
319
319
  cy: "6",
@@ -332,24 +332,24 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
332
332
  /* @__PURE__ */ V("path", { d: "M6 8v8" }),
333
333
  /* @__PURE__ */ V("path", { d: "M18 10c0 4-4 4-6 6" })
334
334
  ] })),
335
- sun: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
335
+ sun: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
336
336
  cx: "12",
337
337
  cy: "12",
338
338
  r: "4"
339
339
  }), /* @__PURE__ */ V("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" })] })),
340
- moon: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M20 14A8 8 0 0 1 10 4a8 8 0 1 0 10 10z" }) })),
341
- settings: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
340
+ moon: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M20 14A8 8 0 0 1 10 4a8 8 0 1 0 10 10z" }) })),
341
+ settings: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
342
342
  cx: "12",
343
343
  cy: "12",
344
344
  r: "3"
345
345
  }), /* @__PURE__ */ V("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" })] })),
346
- logout: K(/* @__PURE__ */ H(B, { children: [
346
+ logout: G(/* @__PURE__ */ H(B, { children: [
347
347
  /* @__PURE__ */ V("path", { d: "M14 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
348
348
  /* @__PURE__ */ V("path", { d: "M10 17 5 12l5-5" }),
349
349
  /* @__PURE__ */ V("path", { d: "M5 12h12" })
350
350
  ] })),
351
- loader: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
352
- grid: K(/* @__PURE__ */ H(B, { children: [
351
+ loader: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("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" }) })),
352
+ grid: G(/* @__PURE__ */ H(B, { children: [
353
353
  /* @__PURE__ */ V("rect", {
354
354
  x: "4",
355
355
  y: "4",
@@ -379,40 +379,40 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
379
379
  rx: "1"
380
380
  })
381
381
  ] })),
382
- star: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m12 3 3 6 6 1-4.5 4.5 1 6.5L12 18l-5.5 3 1-6.5L3 10l6-1z" }) })),
383
- warning: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "m12 3 10 18H2z" }), /* @__PURE__ */ V("path", { d: "M12 10v5M12 18v.5" })] })),
384
- info: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
382
+ star: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "m12 3 3 6 6 1-4.5 4.5 1 6.5L12 18l-5.5 3 1-6.5L3 10l6-1z" }) })),
383
+ warning: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "m12 3 10 18H2z" }), /* @__PURE__ */ V("path", { d: "M12 10v5M12 18v.5" })] })),
384
+ info: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
385
385
  cx: "12",
386
386
  cy: "12",
387
387
  r: "9"
388
388
  }), /* @__PURE__ */ V("path", { d: "M12 11v6M12 8v.5" })] })),
389
- building: K(/* @__PURE__ */ H(B, { children: [
389
+ building: G(/* @__PURE__ */ H(B, { children: [
390
390
  /* @__PURE__ */ V("path", { d: "M4 21V3h12v18M4 21h16" }),
391
391
  /* @__PURE__ */ V("path", { d: "M16 9h4v12" }),
392
392
  /* @__PURE__ */ V("path", { d: "M7 6h2M7 10h2M7 14h2M11 6h2M11 10h2M11 14h2" })
393
393
  ] })),
394
- device: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
394
+ device: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
395
395
  x: "5",
396
396
  y: "3",
397
397
  width: "14",
398
398
  height: "18",
399
399
  rx: "2"
400
400
  }), /* @__PURE__ */ V("path", { d: "M10 18h4" })] })),
401
- arrowUp: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 19V5M5 12l7-7 7 7" }) })),
402
- arrowDown: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 5v14M5 12l7 7 7-7" }) })),
403
- external: K(/* @__PURE__ */ H(B, { children: [
401
+ arrowUp: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 19V5M5 12l7-7 7 7" }) })),
402
+ arrowDown: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M12 5v14M5 12l7 7 7-7" }) })),
403
+ external: G(/* @__PURE__ */ H(B, { children: [
404
404
  /* @__PURE__ */ V("path", { d: "M14 4h6v6" }),
405
405
  /* @__PURE__ */ V("path", { d: "M20 4 10 14" }),
406
406
  /* @__PURE__ */ V("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
407
407
  ] })),
408
- dbtable: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
408
+ dbtable: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
409
409
  x: "3",
410
410
  y: "5",
411
411
  width: "18",
412
412
  height: "14",
413
413
  rx: "1"
414
414
  }), /* @__PURE__ */ V("path", { d: "M3 9h18M3 13h18M9 9v10M15 9v10" })] })),
415
- "users-round": K(/* @__PURE__ */ H(B, { children: [
415
+ "users-round": G(/* @__PURE__ */ H(B, { children: [
416
416
  /* @__PURE__ */ V("circle", {
417
417
  cx: "10",
418
418
  cy: "8",
@@ -422,12 +422,12 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
422
422
  /* @__PURE__ */ V("path", { d: "M17 4a5 5 0 0 1 0 8" }),
423
423
  /* @__PURE__ */ V("path", { d: "M22 21a6 6 0 0 0-4-5.6" })
424
424
  ] })),
425
- user: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
425
+ user: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
426
426
  cx: "12",
427
427
  cy: "7",
428
428
  r: "4"
429
429
  }), /* @__PURE__ */ V("path", { d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2" })] })),
430
- "user-plus": K(/* @__PURE__ */ H(B, { children: [
430
+ "user-plus": G(/* @__PURE__ */ H(B, { children: [
431
431
  /* @__PURE__ */ V("circle", {
432
432
  cx: "9",
433
433
  cy: "7",
@@ -436,20 +436,20 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
436
436
  /* @__PURE__ */ V("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
437
437
  /* @__PURE__ */ V("path", { d: "M19 8v6M22 11h-6" })
438
438
  ] })),
439
- "shield-check": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ V("path", { d: "m9 12 2 2 4-4" })] })),
440
- "shield-plus": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ V("path", { d: "M9 12h6M12 9v6" })] })),
441
- "key-round": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4z" }), /* @__PURE__ */ V("circle", {
439
+ "shield-check": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ V("path", { d: "m9 12 2 2 4-4" })] })),
440
+ "shield-plus": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M12 3 4 6v6c0 4.5 3.5 8 8 9 4.5-1 8-4.5 8-9V6z" }), /* @__PURE__ */ V("path", { d: "M9 12h6M12 9v6" })] })),
441
+ "key-round": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4z" }), /* @__PURE__ */ V("circle", {
442
442
  cx: "16.5",
443
443
  cy: "7.5",
444
444
  r: "0.5",
445
445
  fill: "currentColor"
446
446
  })] })),
447
- "list-checks": K(/* @__PURE__ */ H(B, { children: [
447
+ "list-checks": G(/* @__PURE__ */ H(B, { children: [
448
448
  /* @__PURE__ */ V("path", { d: "m3 17 2 2 4-4" }),
449
449
  /* @__PURE__ */ V("path", { d: "m3 7 2 2 4-4" }),
450
450
  /* @__PURE__ */ V("path", { d: "M13 6h8M13 12h8M13 18h8" })
451
451
  ] })),
452
- list: K(/* @__PURE__ */ H(B, { children: [
452
+ list: G(/* @__PURE__ */ H(B, { children: [
453
453
  /* @__PURE__ */ V("path", { d: "M8 6h13M8 12h13M8 18h13" }),
454
454
  /* @__PURE__ */ V("circle", {
455
455
  cx: "3.5",
@@ -470,18 +470,18 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
470
470
  fill: "currentColor"
471
471
  })
472
472
  ] })),
473
- "play-circle": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
473
+ "play-circle": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
474
474
  cx: "12",
475
475
  cy: "12",
476
476
  r: "9"
477
477
  }), /* @__PURE__ */ V("path", { d: "M10 8.5v7L16 12z" })] })),
478
- play: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M6 3 20 12 6 21z" }) })),
479
- layers: K(/* @__PURE__ */ H(B, { children: [
478
+ play: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M6 3 20 12 6 21z" }) })),
479
+ layers: G(/* @__PURE__ */ H(B, { children: [
480
480
  /* @__PURE__ */ V("path", { d: "M12 2 2 7l10 5 10-5z" }),
481
481
  /* @__PURE__ */ V("path", { d: "m2 12 10 5 10-5" }),
482
482
  /* @__PURE__ */ V("path", { d: "m2 17 10 5 10-5" })
483
483
  ] })),
484
- layout: K(/* @__PURE__ */ H(B, { children: [
484
+ layout: G(/* @__PURE__ */ H(B, { children: [
485
485
  /* @__PURE__ */ V("rect", {
486
486
  x: "3",
487
487
  y: "3",
@@ -492,7 +492,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
492
492
  /* @__PURE__ */ V("path", { d: "M3 9h18" }),
493
493
  /* @__PURE__ */ V("path", { d: "M9 21V9" })
494
494
  ] })),
495
- "layout-dashboard": K(/* @__PURE__ */ H(B, { children: [
495
+ "layout-dashboard": G(/* @__PURE__ */ H(B, { children: [
496
496
  /* @__PURE__ */ V("rect", {
497
497
  x: "3",
498
498
  y: "3",
@@ -522,7 +522,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
522
522
  rx: "1"
523
523
  })
524
524
  ] })),
525
- database: K(/* @__PURE__ */ H(B, { children: [
525
+ database: G(/* @__PURE__ */ H(B, { children: [
526
526
  /* @__PURE__ */ V("ellipse", {
527
527
  cx: "12",
528
528
  cy: "5",
@@ -532,8 +532,8 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
532
532
  /* @__PURE__ */ V("path", { d: "M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5" }),
533
533
  /* @__PURE__ */ V("path", { d: "M3 12c0 1.7 4 3 9 3s9-1.3 9-3" })
534
534
  ] })),
535
- zap: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
536
- cpu: K(/* @__PURE__ */ H(B, { children: [
535
+ zap: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M13 3 4 14h6l-1 7 9-11h-6z" }) })),
536
+ cpu: G(/* @__PURE__ */ H(B, { children: [
537
537
  /* @__PURE__ */ V("rect", {
538
538
  x: "4",
539
539
  y: "4",
@@ -549,7 +549,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
549
549
  }),
550
550
  /* @__PURE__ */ V("path", { d: "M9 2v2M15 2v2M9 20v2M15 20v2M2 9h2M2 15h2M20 9h2M20 15h2" })
551
551
  ] })),
552
- "circle-dot": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
552
+ "circle-dot": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
553
553
  cx: "12",
554
554
  cy: "12",
555
555
  r: "9"
@@ -559,7 +559,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
559
559
  r: "1.5",
560
560
  fill: "currentColor"
561
561
  })] })),
562
- "toggle-right": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
562
+ "toggle-right": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
563
563
  x: "2",
564
564
  y: "6",
565
565
  width: "20",
@@ -571,21 +571,21 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
571
571
  r: "2.5",
572
572
  fill: "currentColor"
573
573
  })] })),
574
- sliders: K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
575
- "sliders-horizontal": K(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
576
- box: K(/* @__PURE__ */ H(B, { children: [
574
+ sliders: G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
575
+ "sliders-horizontal": G(/* @__PURE__ */ V(B, { children: /* @__PURE__ */ V("path", { d: "M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" }) })),
576
+ box: G(/* @__PURE__ */ H(B, { children: [
577
577
  /* @__PURE__ */ V("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" }),
578
578
  /* @__PURE__ */ V("path", { d: "m3.3 7 8.7 5 8.7-5" }),
579
579
  /* @__PURE__ */ V("path", { d: "M12 22V12" })
580
580
  ] })),
581
- "columns-3": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
581
+ "columns-3": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("rect", {
582
582
  x: "3",
583
583
  y: "4",
584
584
  width: "18",
585
585
  height: "16",
586
586
  rx: "1"
587
587
  }), /* @__PURE__ */ V("path", { d: "M9 4v16M15 4v16" })] })),
588
- "settings-2": K(/* @__PURE__ */ H(B, { children: [
588
+ "settings-2": G(/* @__PURE__ */ H(B, { children: [
589
589
  /* @__PURE__ */ V("path", { d: "M20 7h-9M14 17H5" }),
590
590
  /* @__PURE__ */ V("circle", {
591
591
  cx: "17",
@@ -598,12 +598,12 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
598
598
  r: "3"
599
599
  })
600
600
  ] })),
601
- "file-diff": K(/* @__PURE__ */ H(B, { children: [
601
+ "file-diff": G(/* @__PURE__ */ H(B, { children: [
602
602
  /* @__PURE__ */ V("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
603
603
  /* @__PURE__ */ V("path", { d: "M14 2v6h6" }),
604
604
  /* @__PURE__ */ V("path", { d: "M12 12v6M9 15h6M9 18h6" })
605
605
  ] })),
606
- "git-branch": K(/* @__PURE__ */ H(B, { children: [
606
+ "git-branch": G(/* @__PURE__ */ H(B, { children: [
607
607
  /* @__PURE__ */ V("circle", {
608
608
  cx: "6",
609
609
  cy: "6",
@@ -622,29 +622,29 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
622
622
  /* @__PURE__ */ V("path", { d: "M6 8v8" }),
623
623
  /* @__PURE__ */ V("path", { d: "M18 10a6 6 0 0 1-6 6h-2" })
624
624
  ] })),
625
- "log-in": K(/* @__PURE__ */ H(B, { children: [
625
+ "log-in": G(/* @__PURE__ */ H(B, { children: [
626
626
  /* @__PURE__ */ V("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }),
627
627
  /* @__PURE__ */ V("path", { d: "m10 17 5-5-5-5" }),
628
628
  /* @__PURE__ */ V("path", { d: "M15 12H3" })
629
629
  ] })),
630
- "plus-circle": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
630
+ "plus-circle": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
631
631
  cx: "12",
632
632
  cy: "12",
633
633
  r: "9"
634
634
  }), /* @__PURE__ */ V("path", { d: "M8 12h8M12 8v8" })] })),
635
- repeat: K(/* @__PURE__ */ H(B, { children: [
635
+ repeat: G(/* @__PURE__ */ H(B, { children: [
636
636
  /* @__PURE__ */ V("path", { d: "m17 2 4 4-4 4" }),
637
637
  /* @__PURE__ */ V("path", { d: "M3 11v-1a4 4 0 0 1 4-4h14" }),
638
638
  /* @__PURE__ */ V("path", { d: "m7 22-4-4 4-4" }),
639
639
  /* @__PURE__ */ V("path", { d: "M21 13v1a4 4 0 0 1-4 4H3" })
640
640
  ] })),
641
- ban: K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
641
+ ban: G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
642
642
  cx: "12",
643
643
  cy: "12",
644
644
  r: "9"
645
645
  }), /* @__PURE__ */ V("path", { d: "m5.6 5.6 12.8 12.8" })] })),
646
- "trash-2": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ V("path", { d: "M10 11v6M14 11v6" })] })),
647
- "shopping-cart": K(/* @__PURE__ */ H(B, { children: [
646
+ "trash-2": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M4 7h16M9 7V4h6v3M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ V("path", { d: "M10 11v6M14 11v6" })] })),
647
+ "shopping-cart": G(/* @__PURE__ */ H(B, { children: [
648
648
  /* @__PURE__ */ V("circle", {
649
649
  cx: "9",
650
650
  cy: "20",
@@ -657,7 +657,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
657
657
  }),
658
658
  /* @__PURE__ */ V("path", { d: "M2 3h3l3 12h10l3-8H7" })
659
659
  ] })),
660
- "credit-card": K(/* @__PURE__ */ H(B, { children: [
660
+ "credit-card": G(/* @__PURE__ */ H(B, { children: [
661
661
  /* @__PURE__ */ V("rect", {
662
662
  x: "3",
663
663
  y: "5",
@@ -668,22 +668,22 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
668
668
  /* @__PURE__ */ V("path", { d: "M3 10h18" }),
669
669
  /* @__PURE__ */ V("path", { d: "M7 15h4" })
670
670
  ] })),
671
- package: K(/* @__PURE__ */ H(B, { children: [
671
+ package: G(/* @__PURE__ */ H(B, { children: [
672
672
  /* @__PURE__ */ V("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" }),
673
673
  /* @__PURE__ */ V("path", { d: "m3.3 7 8.7 5 8.7-5" }),
674
674
  /* @__PURE__ */ V("path", { d: "M12 22V12" })
675
675
  ] })),
676
- boxes: K(/* @__PURE__ */ H(B, { children: [
676
+ boxes: G(/* @__PURE__ */ H(B, { children: [
677
677
  /* @__PURE__ */ V("path", { d: "M7.5 7.5 3 10v5l4.5 2.5L12 15v-5z" }),
678
678
  /* @__PURE__ */ V("path", { d: "M16.5 7.5 12 10v5l4.5 2.5L21 15v-5z" }),
679
679
  /* @__PURE__ */ V("path", { d: "M12 2.5 7.5 5v5L12 12.5 16.5 10V5z" })
680
680
  ] })),
681
- tags: K(/* @__PURE__ */ H(B, { children: [
681
+ tags: G(/* @__PURE__ */ H(B, { children: [
682
682
  /* @__PURE__ */ V("path", { d: "M4 4h7l9 9-7 7-9-9z" }),
683
683
  /* @__PURE__ */ V("path", { d: "M8 8h.01" }),
684
684
  /* @__PURE__ */ V("path", { d: "M13 4h2l6 6" })
685
685
  ] })),
686
- "wallet-cards": K(/* @__PURE__ */ H(B, { children: [
686
+ "wallet-cards": G(/* @__PURE__ */ H(B, { children: [
687
687
  /* @__PURE__ */ V("rect", {
688
688
  x: "3",
689
689
  y: "7",
@@ -694,14 +694,14 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
694
694
  /* @__PURE__ */ V("path", { d: "M16 11h5v5h-5a2.5 2.5 0 0 1 0-5z" }),
695
695
  /* @__PURE__ */ V("path", { d: "M5 7V5a2 2 0 0 1 2-2h10v4" })
696
696
  ] })),
697
- "receipt-text": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M6 3h12v18l-3-2-3 2-3-2-3 2z" }), /* @__PURE__ */ V("path", { d: "M9 8h6M9 12h6M9 16h4" })] })),
698
- "badge-dollar-sign": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
697
+ "receipt-text": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M6 3h12v18l-3-2-3 2-3-2-3 2z" }), /* @__PURE__ */ V("path", { d: "M9 8h6M9 12h6M9 16h4" })] })),
698
+ "badge-dollar-sign": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("circle", {
699
699
  cx: "12",
700
700
  cy: "12",
701
701
  r: "9"
702
702
  }), /* @__PURE__ */ V("path", { d: "M12 6v12M15 9.5c-.7-.8-1.7-1.2-3-1.2-1.6 0-2.7.8-2.7 2s1 1.7 2.7 2.1c1.8.4 3 .9 3 2.3S13.8 17 12 17c-1.4 0-2.6-.5-3.4-1.4" })] })),
703
- "undo-2": K(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M9 14 4 9l5-5" }), /* @__PURE__ */ V("path", { d: "M4 9h10a6 6 0 1 1 0 12h-2" })] }))
704
- }, J = j(function({ kind: e = "default", size: t = "sm", icon: n, iconRight: r, children: i, onClick: a, active: o, danger: s, style: c, disabled: l, type: u = "button", title: d, ...f }, p) {
703
+ "undo-2": G(/* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("path", { d: "M9 14 4 9l5-5" }), /* @__PURE__ */ V("path", { d: "M4 9h10a6 6 0 1 1 0 12h-2" })] }))
704
+ }, q = j(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) {
705
705
  let m = {
706
706
  display: "inline-flex",
707
707
  alignItems: "center",
@@ -766,7 +766,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
766
766
  r
767
767
  ]
768
768
  });
769
- }), Y = j(function({ icon: e, onClick: t, title: n, size: r = 28, active: i, disabled: a, style: o }, s) {
769
+ }), J = j(function({ icon: e, onClick: t, title: n, size: r = 28, active: i, disabled: a, style: o }, s) {
770
770
  return /* @__PURE__ */ V("button", {
771
771
  type: "button",
772
772
  ref: s,
@@ -800,7 +800,7 @@ var K = (e, t = {}) => ({ size: n = 14, cls: r = "", style: i = {} }) => /* @__P
800
800
  });
801
801
  //#endregion
802
802
  //#region src/components/primitives/Pill.tsx
803
- function X({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style: i }) {
803
+ function Y({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style: i }) {
804
804
  let a = `var(--pill-${e}-bg)`, o = `var(--pill-${e})`;
805
805
  return /* @__PURE__ */ H("span", {
806
806
  className: "num",
@@ -837,7 +837,7 @@ function X({ tone: e = "slate", children: t, size: n = "sm", dot: r = !1, style:
837
837
  }
838
838
  //#endregion
839
839
  //#region src/components/primitives/Kbd.tsx
840
- function oe({ children: e }) {
840
+ function se({ children: e }) {
841
841
  return /* @__PURE__ */ V("span", {
842
842
  className: "mono",
843
843
  style: {
@@ -858,7 +858,7 @@ function oe({ children: e }) {
858
858
  }
859
859
  //#endregion
860
860
  //#region src/components/primitives/Avatar.tsx
861
- function se({ name: e, size: t = 22, color: n }) {
861
+ function ce({ name: e, size: t = 22, color: n }) {
862
862
  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 = [
863
863
  "#DCE4F6",
864
864
  "#E4DCF6",
@@ -888,7 +888,7 @@ function se({ name: e, size: t = 22, color: n }) {
888
888
  }
889
889
  //#endregion
890
890
  //#region src/components/primitives/BrandGlyph.tsx
891
- function ce({ size: e = 24, className: t, title: n }) {
891
+ function le({ size: e = 24, className: t, title: n }) {
892
892
  return /* @__PURE__ */ H("svg", {
893
893
  width: e,
894
894
  height: e,
@@ -924,7 +924,7 @@ function ce({ size: e = 24, className: t, title: n }) {
924
924
  }
925
925
  //#endregion
926
926
  //#region src/components/primitives/Dropdown.tsx
927
- function le({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
927
+ function ue({ open: e, onClose: t, anchor: n, children: r, align: i = "start", width: a, style: o }) {
928
928
  let s = L(null), [c, l] = R(null);
929
929
  return F(() => {
930
930
  if (!e || !n) return;
@@ -950,7 +950,7 @@ function le({ open: e, onClose: t, anchor: n, children: r, align: i = "start", w
950
950
  e,
951
951
  n,
952
952
  t
953
- ]), !e || !c ? null : U(/* @__PURE__ */ V("div", {
953
+ ]), !e || !c ? null : te(/* @__PURE__ */ V("div", {
954
954
  ref: s,
955
955
  style: {
956
956
  position: "fixed",
@@ -970,13 +970,13 @@ function le({ open: e, onClose: t, anchor: n, children: r, align: i = "start", w
970
970
  }
971
971
  //#endregion
972
972
  //#region src/components/primitives/HoverCard.tsx
973
- var ue = 400, de = 150, fe = 320, pe = 240, me = 4, he = 4;
974
- function ge({ content: e, children: t, width: n = fe, align: r = "center", style: i }) {
973
+ var de = 400, fe = 150, pe = 320, me = 240, he = 4, ge = 4;
974
+ function _e({ content: e, children: t, width: n = pe, align: r = "center", style: i }) {
975
975
  let a = L(null), o = L(null), s = L(null), c = L(null), [l, u] = R(!1), [d, f] = R(null), [p, m] = R(!1), h = N(() => {
976
976
  let e = a.current;
977
977
  if (!e) return;
978
- let t = e.getBoundingClientRect(), i = typeof window < "u" ? window.innerWidth : 0, s = typeof window < "u" ? window.innerHeight : 0, c = o.current?.offsetHeight ?? pe, l = s - t.bottom < c + he * 2 && t.top > c + he * 2 ? "above" : "below", u = l === "below" ? t.bottom + he : t.top - he - c, d;
979
- d = r === "start" ? t.left : r === "end" ? t.right - n : t.left + t.width / 2 - n / 2, d + n > i - me && (d = Math.max(me, t.right - n)), d < me && (d = me), f((e) => e && e.top === u && e.left === d && e.placement === l ? e : {
978
+ let t = e.getBoundingClientRect(), i = typeof window < "u" ? window.innerWidth : 0, s = typeof window < "u" ? window.innerHeight : 0, c = o.current?.offsetHeight ?? me, l = s - t.bottom < c + ge * 2 && t.top > c + ge * 2 ? "above" : "below", u = l === "below" ? t.bottom + ge : t.top - ge - c, d;
979
+ d = r === "start" ? t.left : r === "end" ? t.right - n : t.left + t.width / 2 - n / 2, d + n > i - he && (d = Math.max(he, t.right - n)), d < he && (d = he), f((e) => e && e.top === u && e.left === d && e.placement === l ? e : {
980
980
  top: u,
981
981
  left: d,
982
982
  placement: l
@@ -993,11 +993,11 @@ function ge({ content: e, children: t, width: n = fe, align: r = "center", style
993
993
  }, y = () => {
994
994
  c.current !== null && (window.clearTimeout(c.current), c.current = null), !(l || s.current !== null) && (s.current = window.setTimeout(() => {
995
995
  s.current = null, u(!0);
996
- }, ue));
996
+ }, de));
997
997
  }, b = () => {
998
998
  s.current !== null && (window.clearTimeout(s.current), s.current = null), c.current === null && (c.current = window.setTimeout(() => {
999
999
  c.current = null, u(!1);
1000
- }, de));
1000
+ }, fe));
1001
1001
  };
1002
1002
  P(() => () => {
1003
1003
  v(), g.current &&= (g.current.disconnect(), null);
@@ -1010,7 +1010,7 @@ function ge({ content: e, children: t, width: n = fe, align: r = "center", style
1010
1010
  window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
1011
1011
  };
1012
1012
  }, [l, h]);
1013
- let x = l && d ? U(/* @__PURE__ */ V("div", {
1013
+ let x = l && d ? te(/* @__PURE__ */ V("div", {
1014
1014
  ref: _,
1015
1015
  role: "tooltip",
1016
1016
  onMouseEnter: () => {
@@ -1022,7 +1022,7 @@ function ge({ content: e, children: t, width: n = fe, align: r = "center", style
1022
1022
  top: d.top,
1023
1023
  left: d.left,
1024
1024
  width: n,
1025
- maxHeight: pe,
1025
+ maxHeight: me,
1026
1026
  overflowY: "auto",
1027
1027
  zIndex: 250,
1028
1028
  background: "var(--surface)",
@@ -1051,7 +1051,7 @@ function ge({ content: e, children: t, width: n = fe, align: r = "center", style
1051
1051
  }
1052
1052
  //#endregion
1053
1053
  //#region src/components/primitives/Chip.tsx
1054
- function _e({ icon: e, children: t, onRemove: n, onClick: r }) {
1054
+ function ve({ icon: e, children: t, onRemove: n, onClick: r }) {
1055
1055
  return /* @__PURE__ */ H("span", {
1056
1056
  onClick: r,
1057
1057
  style: {
@@ -1084,14 +1084,14 @@ function _e({ icon: e, children: t, onRemove: n, onClick: r }) {
1084
1084
  cursor: "pointer",
1085
1085
  display: "flex"
1086
1086
  },
1087
- children: /* @__PURE__ */ V(q.x, { size: 12 })
1087
+ children: /* @__PURE__ */ V(K.x, { size: 12 })
1088
1088
  })
1089
1089
  ]
1090
1090
  });
1091
1091
  }
1092
1092
  //#endregion
1093
1093
  //#region src/components/primitives/SectionCard.tsx
1094
- var ve = {
1094
+ var ye = {
1095
1095
  primary: {
1096
1096
  surface: "var(--surface)",
1097
1097
  shadow: "var(--shadow-xs)"
@@ -1101,8 +1101,8 @@ var ve = {
1101
1101
  shadow: "none"
1102
1102
  }
1103
1103
  };
1104
- function ye({ title: e, subtitle: t, right: n, badge: r, count: i, children: a, footer: o, collapsible: s = !0, defaultOpen: c = !0, icon: l, emphasis: u = "primary", headingLevel: d = 2, padding: f = "16px" }) {
1105
- let [p, m] = R(c), h = ve[u] ?? ve.primary;
1104
+ function be({ title: e, subtitle: t, right: n, badge: r, count: i, children: a, footer: o, collapsible: s = !0, defaultOpen: c = !0, icon: l, emphasis: u = "primary", headingLevel: d = 2, padding: f = "16px" }) {
1105
+ let [p, m] = R(c), h = ye[u] ?? ye.primary;
1106
1106
  return /* @__PURE__ */ H("div", {
1107
1107
  "data-emphasis": u,
1108
1108
  style: {
@@ -1200,16 +1200,16 @@ function ye({ title: e, subtitle: t, right: n, badge: r, count: i, children: a,
1200
1200
  ]
1201
1201
  })
1202
1202
  }),
1203
- r && /* @__PURE__ */ V(X, {
1203
+ r && /* @__PURE__ */ V(Y, {
1204
1204
  tone: r.tone ?? "violet",
1205
1205
  size: "xs",
1206
1206
  dot: r.dot,
1207
1207
  children: r.text
1208
1208
  }),
1209
1209
  n,
1210
- s && /* @__PURE__ */ V(Y, {
1210
+ s && /* @__PURE__ */ V(J, {
1211
1211
  size: 24,
1212
- icon: V(p ? q.up : q.down, { size: 14 }),
1212
+ icon: V(p ? K.up : K.down, { size: 14 }),
1213
1213
  onClick: () => m(!p),
1214
1214
  title: p ? "Collapse" : "Expand"
1215
1215
  })
@@ -1234,19 +1234,19 @@ function ye({ title: e, subtitle: t, right: n, badge: r, count: i, children: a,
1234
1234
  }
1235
1235
  //#endregion
1236
1236
  //#region src/components/primitives/RecordIdBadge.tsx
1237
- var be = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, xe = 1200;
1238
- function Se({ value: e }) {
1239
- let [t, n] = R(!1), r = be.test(e) ? `${e.slice(0, 8)}…` : e;
1237
+ var xe = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, Se = 1200;
1238
+ function Ce({ value: e }) {
1239
+ let [t, n] = R(!1), r = xe.test(e) ? `${e.slice(0, 8)}…` : e;
1240
1240
  return /* @__PURE__ */ H("button", {
1241
1241
  type: "button",
1242
1242
  onClick: N(async () => {
1243
1243
  try {
1244
- await navigator.clipboard.writeText(e), n(!0), window.setTimeout(() => n(!1), xe);
1244
+ await navigator.clipboard.writeText(e), n(!0), window.setTimeout(() => n(!1), Se);
1245
1245
  } catch {}
1246
1246
  }, [e]),
1247
1247
  title: t ? "Copied" : `Copy ${e}`,
1248
1248
  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",
1249
- children: [/* @__PURE__ */ V("span", { children: r }), t ? /* @__PURE__ */ V(q.check, { size: 10 }) : /* @__PURE__ */ V(q.copy, {
1249
+ children: [/* @__PURE__ */ V("span", { children: r }), t ? /* @__PURE__ */ V(K.check, { size: 10 }) : /* @__PURE__ */ V(K.copy, {
1250
1250
  size: 10,
1251
1251
  style: { opacity: .6 }
1252
1252
  })]
@@ -1254,7 +1254,7 @@ function Se({ value: e }) {
1254
1254
  }
1255
1255
  //#endregion
1256
1256
  //#region src/components/primitives/RowField.tsx
1257
- function Ce({ label: e, children: t, wide: n, editing: r, required: i }) {
1257
+ function we({ label: e, children: t, wide: n, editing: r, required: i }) {
1258
1258
  return /* @__PURE__ */ H("div", {
1259
1259
  style: {
1260
1260
  display: "flex",
@@ -1296,7 +1296,7 @@ function Ce({ label: e, children: t, wide: n, editing: r, required: i }) {
1296
1296
  }
1297
1297
  //#endregion
1298
1298
  //#region src/components/primitives/BoolToggle.tsx
1299
- function we({ value: e, onChange: t, id: n, ariaLabelledby: r }) {
1299
+ function Te({ value: e, onChange: t, id: n, ariaLabelledby: r }) {
1300
1300
  return /* @__PURE__ */ V("button", {
1301
1301
  type: "button",
1302
1302
  id: n,
@@ -1329,7 +1329,7 @@ function we({ value: e, onChange: t, id: n, ariaLabelledby: r }) {
1329
1329
  }
1330
1330
  //#endregion
1331
1331
  //#region src/components/primitives/MenuItem.tsx
1332
- function Te({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, divider: o, disabled: s, title: c, "data-testid": l }) {
1332
+ function Ee({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, divider: o, disabled: s, title: c, "data-testid": l }) {
1333
1333
  return o ? /* @__PURE__ */ V("div", { style: {
1334
1334
  height: 1,
1335
1335
  background: "var(--divider)",
@@ -1369,13 +1369,13 @@ function Te({ icon: e, children: t, onClick: n, danger: r, kbd: i, active: a, di
1369
1369
  style: { flex: 1 },
1370
1370
  children: t
1371
1371
  }),
1372
- i && /* @__PURE__ */ V(oe, { children: i })
1372
+ i && /* @__PURE__ */ V(se, { children: i })
1373
1373
  ]
1374
1374
  });
1375
1375
  }
1376
1376
  //#endregion
1377
1377
  //#region src/components/primitives/Check.tsx
1378
- function Ee({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1378
+ function De({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1379
1379
  return /* @__PURE__ */ H("span", {
1380
1380
  onClick: (n) => {
1381
1381
  n.stopPropagation(), t && t(!e);
@@ -1411,7 +1411,7 @@ function Ee({ checked: e, onChange: t, indeterminate: n, size: r = 14 }) {
1411
1411
  }
1412
1412
  //#endregion
1413
1413
  //#region src/components/primitives/Spinner.tsx
1414
- function De({ size: e = 14 }) {
1414
+ function Oe({ size: e = 14 }) {
1415
1415
  return /* @__PURE__ */ H("svg", {
1416
1416
  width: e,
1417
1417
  height: e,
@@ -1439,18 +1439,18 @@ function De({ size: e = 14 }) {
1439
1439
  }
1440
1440
  //#endregion
1441
1441
  //#region src/components/primitives/ClassifiedFieldLocked.tsx
1442
- function Oe({ tier: e, tierDef: t, requiredPermission: n, locale: r = "en", variant: i = "value" }) {
1442
+ function ke({ tier: e, tierDef: t, requiredPermission: n, locale: r = "en", variant: i = "value" }) {
1443
1443
  let a = t?.name?.[r] ?? t?.name?.en ?? e, o = n ? `Locked: requires permission "${n}". Ask your administrator to grant it to your role.` : `Locked: ${a} classification — requires explicit grant.`;
1444
1444
  return /* @__PURE__ */ H("span", {
1445
1445
  title: o,
1446
1446
  "aria-label": o,
1447
1447
  className: `inline-flex items-center gap-1 text-muted-foreground italic select-none ${i === "input" ? "border border-divider rounded-md px-2 py-1 bg-surface" : ""}`,
1448
- children: [/* @__PURE__ */ V(q.lock, { size: 12 }), /* @__PURE__ */ V("span", { children: a })]
1448
+ children: [/* @__PURE__ */ V(K.lock, { size: 12 }), /* @__PURE__ */ V("span", { children: a })]
1449
1449
  });
1450
1450
  }
1451
1451
  //#endregion
1452
1452
  //#region src/components/primitives/Fields.tsx
1453
- var ke = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ H("div", {
1453
+ var Ae = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ H("div", {
1454
1454
  style: {
1455
1455
  display: "flex",
1456
1456
  alignItems: "center",
@@ -1475,10 +1475,10 @@ var ke = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ H("div", {
1475
1475
  color: "var(--text-4)",
1476
1476
  display: "flex"
1477
1477
  },
1478
- children: /* @__PURE__ */ V(q.info, { size: 11 })
1478
+ children: /* @__PURE__ */ V(K.info, { size: 11 })
1479
1479
  })
1480
1480
  ]
1481
- }), Ae = {
1481
+ }), je = {
1482
1482
  width: "100%",
1483
1483
  height: 30,
1484
1484
  padding: "0 10px",
@@ -1491,14 +1491,14 @@ var ke = ({ children: e, required: t, hint: n }) => /* @__PURE__ */ H("div", {
1491
1491
  outline: "none",
1492
1492
  transition: "border-color .12s, box-shadow .12s"
1493
1493
  };
1494
- function Z({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
1494
+ function X({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style: a, ...o }) {
1495
1495
  let [s, c] = R(!1);
1496
1496
  return /* @__PURE__ */ H("div", {
1497
1497
  style: {
1498
1498
  display: "flex",
1499
1499
  alignItems: "center",
1500
1500
  gap: 6,
1501
- ...Ae,
1501
+ ...je,
1502
1502
  padding: r || i ? "0 8px" : "0 10px",
1503
1503
  borderColor: s ? "var(--accent)" : "var(--border)",
1504
1504
  boxShadow: s ? "0 0 0 3px var(--accent-ring)" : "none",
@@ -1540,7 +1540,7 @@ function Z({ value: e, onChange: t, placeholder: n, prefix: r, suffix: i, style:
1540
1540
  ]
1541
1541
  });
1542
1542
  }
1543
- function je({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i, id: a, name: o, ariaRequired: s }) {
1543
+ function Me({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i, id: a, name: o, ariaRequired: s }) {
1544
1544
  let [c, l] = R(!1), u = i ? {
1545
1545
  flex: 1,
1546
1546
  height: "100%",
@@ -1561,7 +1561,7 @@ function je({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i, id: a
1561
1561
  onFocus: () => l(!0),
1562
1562
  onBlur: () => l(!1),
1563
1563
  style: {
1564
- ...Ae,
1564
+ ...je,
1565
1565
  padding: "8px 10px",
1566
1566
  lineHeight: 1.5,
1567
1567
  ...u,
@@ -1571,24 +1571,29 @@ function je({ value: e, onChange: t, placeholder: n, rows: r = 4, fill: i, id: a
1571
1571
  }
1572
1572
  });
1573
1573
  }
1574
- var Me = 20, Ne = 100;
1575
- function Pe(e) {
1574
+ var Ne = 20, Pe = 100;
1575
+ function Fe(e) {
1576
1576
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.value;
1577
1577
  }
1578
- function Fe({ value: e, options: t, onChange: n, placeholder: r = "Select...", ...i }) {
1579
- let [a, o] = R(!1), [s, c] = R(""), l = L(null), u = t.find((t) => t.value === e), d = t.length > Me, f = I(() => {
1578
+ function Ie({ value: e, options: t, onChange: n, placeholder: r = "Select...", ...i }) {
1579
+ let [a, o] = R(!1), [s, c] = R(""), l = L(null), u = t.find((t) => t.value === e), d = t.length > Ne, f = I(() => {
1580
1580
  let e = s.trim().toLowerCase();
1581
- return e ? t.filter((t) => Pe(t).toLowerCase().includes(e)).slice(0, Ne) : t.slice(0, Ne);
1581
+ return e ? t.filter((t) => Fe(t).toLowerCase().includes(e)).slice(0, Pe) : t.slice(0, Pe);
1582
1582
  }, [t, s]);
1583
1583
  return /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ H("button", {
1584
+ ...i,
1584
1585
  type: "button",
1585
1586
  ref: l,
1587
+ "aria-haspopup": "listbox",
1588
+ "aria-expanded": a,
1586
1589
  onClick: () => {
1587
- o(!a), a || c("");
1590
+ o((e) => {
1591
+ let t = !e;
1592
+ return t && c(""), t;
1593
+ });
1588
1594
  },
1589
- ...i,
1590
1595
  style: {
1591
- ...Ae,
1596
+ ...je,
1592
1597
  display: "flex",
1593
1598
  alignItems: "center",
1594
1599
  justifyContent: "space-between",
@@ -1606,12 +1611,12 @@ function Fe({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1606
1611
  textOverflow: "ellipsis"
1607
1612
  },
1608
1613
  children: u ? u.label : r
1609
- }), /* @__PURE__ */ V(q.down, {
1614
+ }), /* @__PURE__ */ V(K.down, {
1610
1615
  size: 12,
1611
1616
  cls: "",
1612
1617
  style: { color: "var(--text-3)" }
1613
1618
  })]
1614
- }), /* @__PURE__ */ H(le, {
1619
+ }), /* @__PURE__ */ H(ue, {
1615
1620
  open: a,
1616
1621
  anchor: l.current,
1617
1622
  onClose: () => o(!1),
@@ -1629,15 +1634,15 @@ function Fe({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1629
1634
  background: "var(--surface)",
1630
1635
  zIndex: 1
1631
1636
  },
1632
- children: /* @__PURE__ */ V(Z, {
1637
+ children: /* @__PURE__ */ V(X, {
1633
1638
  value: s,
1634
1639
  onChange: c,
1635
1640
  placeholder: "Search…",
1636
- prefix: /* @__PURE__ */ V(q.search, { size: 12 }),
1641
+ prefix: /* @__PURE__ */ V(K.search, { size: 12 }),
1637
1642
  autoFocus: !0
1638
1643
  })
1639
1644
  }),
1640
- f.map((t) => /* @__PURE__ */ V(Te, {
1645
+ f.map((t) => /* @__PURE__ */ V(Ee, {
1641
1646
  onClick: () => {
1642
1647
  n(t.value), o(!1);
1643
1648
  },
@@ -1655,35 +1660,35 @@ function Fe({ value: e, options: t, onChange: n, placeholder: r = "Select...", .
1655
1660
  ]
1656
1661
  })] });
1657
1662
  }
1658
- function Ie({ value: e, onChange: t }) {
1659
- return /* @__PURE__ */ V(Z, {
1663
+ function Le({ value: e, onChange: t }) {
1664
+ return /* @__PURE__ */ V(X, {
1660
1665
  value: e || "",
1661
1666
  onChange: t,
1662
1667
  placeholder: "YYYY-MM-DD HH:mm",
1663
- prefix: /* @__PURE__ */ V(q.calendar, { size: 13 })
1668
+ prefix: /* @__PURE__ */ V(K.calendar, { size: 13 })
1664
1669
  });
1665
1670
  }
1666
- function Le(e) {
1671
+ function Re(e) {
1667
1672
  if (!e) return 0;
1668
1673
  let t = 0;
1669
1674
  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);
1670
1675
  }
1671
- var Re = [
1676
+ var ze = [
1672
1677
  "Too short",
1673
1678
  "Weak",
1674
1679
  "Fair",
1675
1680
  "Good",
1676
1681
  "Strong"
1677
- ], ze = [
1682
+ ], Be = [
1678
1683
  "var(--danger)",
1679
1684
  "var(--danger)",
1680
1685
  "var(--warning, #B45309)",
1681
1686
  "var(--accent)",
1682
1687
  "var(--success, #3FBF8F)"
1683
1688
  ];
1684
- function Be({ value: e, onChange: t, placeholder: n = "Enter password", showStrength: r, id: i, name: a, ariaRequired: o }) {
1685
- let [s, c] = R(!1), l = e || "", u = Le(l);
1686
- return /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(Z, {
1689
+ function Ve({ value: e, onChange: t, placeholder: n = "Enter password", showStrength: r, id: i, name: a, ariaRequired: o }) {
1690
+ let [s, c] = R(!1), l = e || "", u = Re(l);
1691
+ return /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(X, {
1687
1692
  id: i,
1688
1693
  name: a,
1689
1694
  "aria-required": o || void 0,
@@ -1703,7 +1708,7 @@ function Be({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1703
1708
  display: "flex"
1704
1709
  },
1705
1710
  onClick: () => c(!s),
1706
- children: V(s ? q.eyeOff : q.eye, { size: 14 })
1711
+ children: V(s ? K.eyeOff : K.eye, { size: 14 })
1707
1712
  })
1708
1713
  }), r && /* @__PURE__ */ H("div", {
1709
1714
  style: {
@@ -1727,7 +1732,7 @@ function Be({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1727
1732
  flex: 1,
1728
1733
  height: 3,
1729
1734
  borderRadius: 999,
1730
- background: e < u ? ze[u] : "var(--surface-3)",
1735
+ background: e < u ? Be[u] : "var(--surface-3)",
1731
1736
  transition: "background .15s"
1732
1737
  } }, e))
1733
1738
  }), /* @__PURE__ */ V("span", {
@@ -1737,15 +1742,15 @@ function Be({ value: e, onChange: t, placeholder: n = "Enter password", showStre
1737
1742
  minWidth: 54,
1738
1743
  textAlign: "right"
1739
1744
  },
1740
- children: l ? Re[u] : ""
1745
+ children: l ? ze[u] : ""
1741
1746
  })]
1742
1747
  })] });
1743
1748
  }
1744
- function Ve({ value: e = [], onChange: t }) {
1749
+ function He({ value: e = [], onChange: t }) {
1745
1750
  let [n, r] = R("");
1746
1751
  return /* @__PURE__ */ H("div", {
1747
1752
  style: {
1748
- ...Ae,
1753
+ ...je,
1749
1754
  height: "auto",
1750
1755
  minHeight: 30,
1751
1756
  display: "flex",
@@ -1754,7 +1759,7 @@ function Ve({ value: e = [], onChange: t }) {
1754
1759
  padding: "4px 6px",
1755
1760
  alignItems: "center"
1756
1761
  },
1757
- children: [e.map((n, r) => /* @__PURE__ */ V(_e, {
1762
+ children: [e.map((n, r) => /* @__PURE__ */ V(ve, {
1758
1763
  tone: "slate",
1759
1764
  onRemove: () => t(e.filter((e, t) => t !== r)),
1760
1765
  children: n
@@ -1777,7 +1782,7 @@ function Ve({ value: e = [], onChange: t }) {
1777
1782
  })]
1778
1783
  });
1779
1784
  }
1780
- function He({ value: e, onChange: t }) {
1785
+ function Ue({ value: e, onChange: t }) {
1781
1786
  return /* @__PURE__ */ H("div", {
1782
1787
  style: {
1783
1788
  border: "1px solid var(--border)",
@@ -1806,12 +1811,12 @@ function He({ value: e, onChange: t }) {
1806
1811
  children: "JSON"
1807
1812
  }),
1808
1813
  /* @__PURE__ */ V("span", { style: { flex: 1 } }),
1809
- /* @__PURE__ */ V(J, {
1814
+ /* @__PURE__ */ V(q, {
1810
1815
  size: "xs",
1811
1816
  kind: "ghost",
1812
1817
  children: "Format"
1813
1818
  }),
1814
- /* @__PURE__ */ V(J, {
1819
+ /* @__PURE__ */ V(q, {
1815
1820
  size: "xs",
1816
1821
  kind: "ghost",
1817
1822
  children: "Validate"
@@ -1836,7 +1841,7 @@ function He({ value: e, onChange: t }) {
1836
1841
  })]
1837
1842
  });
1838
1843
  }
1839
- function Ue({ value: e, entity: t = "company", onChange: n, items: r = [], id: i, ariaLabelledby: a, ariaRequired: o }) {
1844
+ function We({ value: e, entity: t = "company", onChange: n, items: r = [], id: i, ariaLabelledby: a, ariaRequired: o }) {
1840
1845
  let [s, c] = R(!1), l = L(null);
1841
1846
  return /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ H("button", {
1842
1847
  type: "button",
@@ -1846,7 +1851,7 @@ function Ue({ value: e, entity: t = "company", onChange: n, items: r = [], id: i
1846
1851
  ref: l,
1847
1852
  onClick: () => c(!0),
1848
1853
  style: {
1849
- ...Ae,
1854
+ ...je,
1850
1855
  display: "flex",
1851
1856
  alignItems: "center",
1852
1857
  justifyContent: "space-between",
@@ -1871,30 +1876,30 @@ function Ue({ value: e, entity: t = "company", onChange: n, items: r = [], id: i
1871
1876
  alignItems: "center",
1872
1877
  justifyContent: "center"
1873
1878
  },
1874
- children: /* @__PURE__ */ V(q.link, { size: 11 })
1879
+ children: /* @__PURE__ */ V(K.link, { size: 11 })
1875
1880
  }), /* @__PURE__ */ V("span", {
1876
1881
  style: { color: e ? "var(--accent)" : "var(--text-placeholder)" },
1877
1882
  children: e || `Link to ${t}…`
1878
1883
  })]
1879
- }), /* @__PURE__ */ V(q.search, {
1884
+ }), /* @__PURE__ */ V(K.search, {
1880
1885
  size: 12,
1881
1886
  cls: "",
1882
1887
  style: { color: "var(--text-3)" }
1883
1888
  })]
1884
- }), /* @__PURE__ */ H(le, {
1889
+ }), /* @__PURE__ */ H(ue, {
1885
1890
  open: s,
1886
1891
  anchor: l.current,
1887
1892
  onClose: () => c(!1),
1888
1893
  width: l.current?.offsetWidth,
1889
1894
  children: [/* @__PURE__ */ V("div", {
1890
1895
  style: { padding: 4 },
1891
- children: /* @__PURE__ */ V(Z, {
1896
+ children: /* @__PURE__ */ V(X, {
1892
1897
  placeholder: `Search ${t}…`,
1893
- prefix: /* @__PURE__ */ V(q.search, { size: 12 }),
1898
+ prefix: /* @__PURE__ */ V(K.search, { size: 12 }),
1894
1899
  style: { marginBottom: 4 }
1895
1900
  })
1896
- }), r.slice(0, 6).map((e) => /* @__PURE__ */ V(Te, {
1897
- icon: /* @__PURE__ */ V(q.building, { size: 13 }),
1901
+ }), r.slice(0, 6).map((e) => /* @__PURE__ */ V(Ee, {
1902
+ icon: /* @__PURE__ */ V(K.building, { size: 13 }),
1898
1903
  onClick: () => {
1899
1904
  n && n(e.name), c(!1);
1900
1905
  },
@@ -1902,7 +1907,7 @@ function Ue({ value: e, entity: t = "company", onChange: n, items: r = [], id: i
1902
1907
  }, e.id))]
1903
1908
  })] });
1904
1909
  }
1905
- function We({ label: e, children: t, mono: n, wide: r, empty: i }) {
1910
+ function Ge({ label: e, children: t, mono: n, wide: r, empty: i }) {
1906
1911
  return /* @__PURE__ */ H("div", {
1907
1912
  style: {
1908
1913
  display: "flex",
@@ -1935,7 +1940,7 @@ function We({ label: e, children: t, mono: n, wide: r, empty: i }) {
1935
1940
  })]
1936
1941
  });
1937
1942
  }
1938
- function Ge({ value: e, onChange: t, type: n = "text", options: r }) {
1943
+ function Ke({ value: e, onChange: t, type: n = "text", options: r }) {
1939
1944
  let [i, a] = R(!1), [o, s] = R(e), c = () => {
1940
1945
  t && o !== void 0 && t(o), a(!1);
1941
1946
  }, l = () => {
@@ -1950,30 +1955,30 @@ function Ge({ value: e, onChange: t, type: n = "text", options: r }) {
1950
1955
  onKeyDown: (e) => {
1951
1956
  e.key === "Enter" && c(), e.key === "Escape" && l();
1952
1957
  },
1953
- children: [n === "select" ? /* @__PURE__ */ V(Fe, {
1958
+ children: [n === "select" ? /* @__PURE__ */ V(Ie, {
1954
1959
  value: o,
1955
1960
  options: r || [],
1956
1961
  onChange: (e) => {
1957
1962
  s(e), t && t(e), a(!1);
1958
1963
  }
1959
- }) : n === "bool" ? /* @__PURE__ */ V(we, {
1964
+ }) : n === "bool" ? /* @__PURE__ */ V(Te, {
1960
1965
  value: o === "true",
1961
1966
  onChange: (e) => {
1962
1967
  let n = String(e);
1963
1968
  s(n), t && t(n), a(!1);
1964
1969
  }
1965
- }) : /* @__PURE__ */ V(Z, {
1970
+ }) : /* @__PURE__ */ V(X, {
1966
1971
  value: o ?? "",
1967
1972
  onChange: s,
1968
1973
  autoFocus: !0
1969
- }), n !== "select" && n !== "bool" && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(Y, {
1974
+ }), n !== "select" && n !== "bool" && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(J, {
1970
1975
  size: 24,
1971
- icon: /* @__PURE__ */ V(q.check, { size: 13 }),
1976
+ icon: /* @__PURE__ */ V(K.check, { size: 13 }),
1972
1977
  onClick: c,
1973
1978
  title: "Save"
1974
- }), /* @__PURE__ */ V(Y, {
1979
+ }), /* @__PURE__ */ V(J, {
1975
1980
  size: 24,
1976
- icon: /* @__PURE__ */ V(q.x, { size: 13 }),
1981
+ icon: /* @__PURE__ */ V(K.x, { size: 13 }),
1977
1982
  onClick: l,
1978
1983
  title: "Cancel"
1979
1984
  })] })]
@@ -2004,7 +2009,7 @@ function Ge({ value: e, onChange: t, type: n = "text", options: r }) {
2004
2009
  }
2005
2010
  //#endregion
2006
2011
  //#region src/types/ordmap.ts
2007
- var Ke = class e {
2012
+ var qe = class e {
2008
2013
  #e;
2009
2014
  #t;
2010
2015
  constructor(e) {
@@ -2045,33 +2050,33 @@ var Ke = class e {
2045
2050
  for (let e of this.#e) yield [e.name ?? "", e];
2046
2051
  }
2047
2052
  };
2048
- function Q(e, t = "en") {
2053
+ function Z(e, t = "en") {
2049
2054
  return e ? e[t] ?? Object.values(e)[0] ?? "" : "";
2050
2055
  }
2051
- var qe = "$display";
2052
- function Je(e, t) {
2056
+ var Je = "$display";
2057
+ function Ye(e, t) {
2053
2058
  if (!e) return;
2054
- let n = e[qe];
2059
+ let n = e[Je];
2055
2060
  if (typeof n == "string" && n !== "") return n;
2056
2061
  let r = t?.display?.display_field;
2057
2062
  if (!r) return;
2058
2063
  let i = e[r];
2059
- if (i != null) return typeof i == "object" && !Array.isArray(i) ? Q(i) || void 0 : String(i);
2064
+ if (i != null) return typeof i == "object" && !Array.isArray(i) ? Z(i) || void 0 : String(i);
2060
2065
  }
2061
- function Ye(e, t, n) {
2062
- let r = e[qe];
2066
+ function Xe(e, t, n) {
2067
+ let r = e[Je];
2063
2068
  if (typeof r == "string" && r !== "") return r;
2064
2069
  if (t) {
2065
2070
  let r = e[t];
2066
- if (r != null) return typeof r == "object" && !Array.isArray(r) ? Q(r) || n : String(r);
2071
+ if (r != null) return typeof r == "object" && !Array.isArray(r) ? Z(r) || n : String(r);
2067
2072
  }
2068
2073
  return n;
2069
2074
  }
2070
- function Xe(e) {
2075
+ function Ze(e) {
2071
2076
  let t = e.replace(/\/+$/, "").split("/").map((e) => e.startsWith(":") ? "[^/]+" : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
2072
2077
  return RegExp("^" + t.join("/") + "$");
2073
2078
  }
2074
- function Ze(e) {
2079
+ function Qe(e) {
2075
2080
  let t = (() => {
2076
2081
  try {
2077
2082
  return decodeURIComponent(e);
@@ -2081,17 +2086,17 @@ function Ze(e) {
2081
2086
  })().split("-")[0];
2082
2087
  return t.length > 8 ? t.slice(0, 8) : t;
2083
2088
  }
2084
- function Qe(e, t, n) {
2089
+ function $e(e, t, n) {
2085
2090
  if (!t) return;
2086
2091
  let r = e.replace(/\/+$/, "") || "/", i;
2087
2092
  for (let e of Object.values(t)) {
2088
- if (!e.route || !Xe(e.route).test(r)) continue;
2089
- let t = e.route.includes("/:"), a = Q(e.display?.name);
2093
+ if (!e.route || !Ze(e.route).test(r)) continue;
2094
+ let t = e.route.includes("/:"), a = Z(e.display?.name);
2090
2095
  if (!a && t && n && e.entity) {
2091
- let t = Q(n[e.entity]?.display?.name);
2096
+ let t = Z(n[e.entity]?.display?.name);
2092
2097
  if (t) {
2093
2098
  let e = r.slice(r.lastIndexOf("/") + 1);
2094
- a = e ? `${t} ${Ze(e)}` : t;
2099
+ a = e ? `${t} ${Qe(e)}` : t;
2095
2100
  }
2096
2101
  }
2097
2102
  if (!a) continue;
@@ -2104,19 +2109,19 @@ function Qe(e, t, n) {
2104
2109
  }
2105
2110
  return i;
2106
2111
  }
2107
- function $e(e, t, n) {
2108
- let r = Q(e.display?.name);
2112
+ function et(e, t, n) {
2113
+ let r = Z(e.display?.name);
2109
2114
  if (r) return r;
2110
2115
  if (e.type === "ref" && e.ref?.entity && n) {
2111
2116
  let t = n[e.ref.entity];
2112
2117
  if (t) {
2113
- let e = Q(t.display?.name);
2118
+ let e = Z(t.display?.name);
2114
2119
  if (e) return e;
2115
2120
  }
2116
2121
  }
2117
2122
  return t;
2118
2123
  }
2119
- function et(e) {
2124
+ function tt(e) {
2120
2125
  let t = e.name, n = e.display ? {
2121
2126
  ...e.display,
2122
2127
  name: e.display.name ?? t
@@ -2129,29 +2134,29 @@ function et(e) {
2129
2134
  structure: e.structure
2130
2135
  };
2131
2136
  }
2132
- function tt(e, t) {
2137
+ function nt(e, t) {
2133
2138
  return !e || e.readonly ? !1 : e.mutations?.[t] ?? !0;
2134
2139
  }
2135
- function nt(e) {
2140
+ function rt(e) {
2136
2141
  if (e.primary_key && e.primary_key.length > 0) return e.primary_key;
2137
2142
  for (let [t, n] of e.fields) if (n.primary) return [t];
2138
2143
  return ["id"];
2139
2144
  }
2140
- function rt(e, t) {
2141
- let n = nt(e), r = {};
2145
+ function it(e, t) {
2146
+ let n = rt(e), r = {};
2142
2147
  for (let e of n) r[e] = String(t[e] ?? "");
2143
2148
  return r;
2144
2149
  }
2145
- function it(e) {
2146
- return e.length === 1 ? e[0] : JSON.stringify(e);
2147
- }
2148
2150
  function at(e) {
2149
- return it(Object.values(e));
2151
+ return e.length === 1 ? e[0] : JSON.stringify(e);
2150
2152
  }
2151
- function ot(e, t) {
2152
- return it(nt(e).map((e) => t[e] ?? ""));
2153
+ function ot(e) {
2154
+ return at(Object.values(e));
2153
2155
  }
2154
2156
  function st(e, t) {
2157
+ return at(rt(e).map((e) => t[e] ?? ""));
2158
+ }
2159
+ function ct(e, t) {
2155
2160
  if (t <= 1) return [e];
2156
2161
  try {
2157
2162
  let n = JSON.parse(e);
@@ -2161,64 +2166,64 @@ function st(e, t) {
2161
2166
  }
2162
2167
  return null;
2163
2168
  }
2164
- function ct(e, t, n) {
2169
+ function lt(e, t, n) {
2165
2170
  if (e?.detail_screen === "none") return null;
2166
2171
  let r = e?.detail_screen ?? t?.detail_screen;
2167
2172
  return r ? n?.[r]?.route ?? null : null;
2168
2173
  }
2169
- function lt(e, t, n, r) {
2174
+ function ut(e, t, n, r) {
2170
2175
  if (!t) return null;
2171
- let i = ct(e, n, r);
2176
+ let i = lt(e, n, r);
2172
2177
  return i ? i.replace(":id", encodeURIComponent(t)) : null;
2173
2178
  }
2174
- function ut(e, t, n, r) {
2175
- return !t || nt(t).some((e) => !r[e]) ? null : lt(e, ot(t, r), t, n);
2176
- }
2177
2179
  function dt(e, t, n, r) {
2178
- return t ? ut(e, t, n, rt(t, r)) : null;
2180
+ return !t || rt(t).some((e) => !r[e]) ? null : ut(e, st(t, r), t, n);
2181
+ }
2182
+ function ft(e, t, n, r) {
2183
+ return t ? dt(e, t, n, it(t, r)) : null;
2179
2184
  }
2180
- function ft(e) {
2181
- return nt(e).length > 1;
2185
+ function pt(e) {
2186
+ return rt(e).length > 1;
2182
2187
  }
2183
2188
  //#endregion
2184
2189
  //#region src/api/schema.ts
2185
- function pt(e) {
2190
+ function mt(e) {
2186
2191
  return {
2187
2192
  ...e,
2188
- params: e.params ? Ke.fromObject(e.params) : void 0
2193
+ params: e.params ? qe.fromObject(e.params) : void 0
2189
2194
  };
2190
2195
  }
2191
- function mt(e) {
2196
+ function ht(e) {
2192
2197
  return {
2193
2198
  ...e,
2194
- resolved_params: e.resolved_params ? Ke.fromObject(e.resolved_params) : void 0
2199
+ resolved_params: e.resolved_params ? qe.fromObject(e.resolved_params) : void 0
2195
2200
  };
2196
2201
  }
2197
- function ht(e) {
2202
+ function gt(e) {
2198
2203
  let t = {};
2199
- if (e.handlers) for (let [n, r] of Object.entries(e.handlers)) t[n] = pt(r);
2204
+ if (e.handlers) for (let [n, r] of Object.entries(e.handlers)) t[n] = mt(r);
2200
2205
  let n = {};
2201
- if (e.actions) for (let [t, r] of Object.entries(e.actions)) n[t] = mt(r);
2206
+ if (e.actions) for (let [t, r] of Object.entries(e.actions)) n[t] = ht(r);
2202
2207
  return {
2203
2208
  ...e,
2204
- fields: Ke.fromObject(e.fields),
2205
- files: e.files ? Ke.fromObject(e.files) : void 0,
2209
+ fields: qe.fromObject(e.fields),
2210
+ files: e.files ? qe.fromObject(e.files) : void 0,
2206
2211
  handlers: e.handlers ? t : void 0,
2207
2212
  actions: e.actions ? n : void 0
2208
2213
  };
2209
2214
  }
2210
- function gt(e) {
2215
+ function _t(e) {
2211
2216
  let t = {};
2212
- if (e.entities) for (let [n, r] of Object.entries(e.entities)) t[n] = ht(r);
2217
+ if (e.entities) for (let [n, r] of Object.entries(e.entities)) t[n] = gt(r);
2213
2218
  let n = {};
2214
2219
  if (e.structures) for (let [t, r] of Object.entries(e.structures)) n[t] = {
2215
2220
  ...r,
2216
- fields: Ke.fromObject(r.fields)
2221
+ fields: qe.fromObject(r.fields)
2217
2222
  };
2218
2223
  let r = {};
2219
- if (e.handlers) for (let [t, n] of Object.entries(e.handlers)) r[t] = pt(n);
2224
+ if (e.handlers) for (let [t, n] of Object.entries(e.handlers)) r[t] = mt(n);
2220
2225
  let i = {};
2221
- if (e.actions) for (let [t, n] of Object.entries(e.actions)) i[t] = mt(n);
2226
+ if (e.actions) for (let [t, n] of Object.entries(e.actions)) i[t] = ht(n);
2222
2227
  return {
2223
2228
  ...e,
2224
2229
  entities: t,
@@ -2227,15 +2232,15 @@ function gt(e) {
2227
2232
  actions: i
2228
2233
  };
2229
2234
  }
2230
- async function _t() {
2231
- return gt(await e("/api/schema"));
2235
+ async function vt() {
2236
+ return _t(await e("/api/schema"));
2232
2237
  }
2233
2238
  //#endregion
2234
2239
  //#region src/api/auth.ts
2235
- async function vt() {
2240
+ async function yt() {
2236
2241
  return n("auth.check_setup");
2237
2242
  }
2238
- async function yt(e, t, r = !0) {
2243
+ async function bt(e, t, r = !0) {
2239
2244
  let i = await n("auth.login", {
2240
2245
  email: e,
2241
2246
  password: t,
@@ -2243,7 +2248,7 @@ async function yt(e, t, r = !0) {
2243
2248
  });
2244
2249
  return f(i.expires_at), i;
2245
2250
  }
2246
- async function bt(e, t, r) {
2251
+ async function xt(e, t, r) {
2247
2252
  let i = await n("auth.signup", {
2248
2253
  email: e,
2249
2254
  password: t,
@@ -2251,42 +2256,42 @@ async function bt(e, t, r) {
2251
2256
  });
2252
2257
  return f(i.expires_at), i;
2253
2258
  }
2254
- async function xt() {
2259
+ async function St() {
2255
2260
  return n("auth.me");
2256
2261
  }
2257
- async function St() {
2262
+ async function Ct() {
2258
2263
  return (await n("auth.list_tenants")).tenants;
2259
2264
  }
2260
- async function Ct(e) {
2265
+ async function wt(e) {
2261
2266
  let t = await n("auth.switch_tenant", { tenant_id: e });
2262
2267
  return f(t.expires_at), t;
2263
2268
  }
2264
- async function wt() {
2269
+ async function Tt() {
2265
2270
  await n("auth.logout");
2266
2271
  }
2267
- async function Tt(e) {
2272
+ async function Et(e) {
2268
2273
  return (await n("sso_provider.list", e ? { tenant_code: e } : {})).providers;
2269
2274
  }
2270
- function Et(e, t, n) {
2275
+ function Dt(e, t, n) {
2271
2276
  let r = new URLSearchParams();
2272
2277
  t && r.set("tenant", t), n && r.set("redirect", n);
2273
2278
  let i = r.toString();
2274
2279
  return `/api/auth/sso/authorize/${encodeURIComponent(e)}${i ? `?${i}` : ""}`;
2275
2280
  }
2276
- async function Dt(e, t, r) {
2281
+ async function Ot(e, t, r) {
2277
2282
  let i = {
2278
2283
  target_user_id: e,
2279
2284
  reason: t
2280
2285
  };
2281
2286
  return r != null && (i.duration_minutes = r), n("impersonation.start", i);
2282
2287
  }
2283
- async function Ot() {
2288
+ async function kt() {
2284
2289
  return n("impersonation.stop");
2285
2290
  }
2286
- async function kt(e) {
2291
+ async function At(e) {
2287
2292
  await n("impersonation.revoke", { session_id: e });
2288
2293
  }
2289
- async function At(e, t) {
2294
+ async function jt(e, t) {
2290
2295
  await n("auth.change_password", {
2291
2296
  current_password: e,
2292
2297
  new_password: t
@@ -2294,7 +2299,7 @@ async function At(e, t) {
2294
2299
  }
2295
2300
  //#endregion
2296
2301
  //#region src/stores/auth.ts
2297
- var jt = W((e) => ({
2302
+ var Mt = U((e) => ({
2298
2303
  user: null,
2299
2304
  isAuthenticated: !1,
2300
2305
  isLoading: !0,
@@ -2302,9 +2307,9 @@ var jt = W((e) => ({
2302
2307
  tenants: [],
2303
2308
  initialize: async () => {
2304
2309
  try {
2305
- let t = await xt(), n = t.tenant ?? null, r = [];
2310
+ let t = await St(), n = t.tenant ?? null, r = [];
2306
2311
  try {
2307
- r = await St();
2312
+ r = await Ct();
2308
2313
  } catch {}
2309
2314
  e({
2310
2315
  user: t,
@@ -2323,7 +2328,7 @@ var jt = W((e) => ({
2323
2328
  },
2324
2329
  refreshMe: async () => {
2325
2330
  try {
2326
- let t = await xt();
2331
+ let t = await St();
2327
2332
  e({
2328
2333
  user: t,
2329
2334
  activeTenant: t.tenant ?? null
@@ -2347,7 +2352,7 @@ var jt = W((e) => ({
2347
2352
  logout: async () => {
2348
2353
  t();
2349
2354
  try {
2350
- await wt();
2355
+ await Tt();
2351
2356
  } catch {}
2352
2357
  e({
2353
2358
  user: null,
@@ -2359,18 +2364,18 @@ var jt = W((e) => ({
2359
2364
  }));
2360
2365
  //#endregion
2361
2366
  //#region src/hooks/useSchema.ts
2362
- function Mt() {
2363
- let e = jt((e) => e.isAuthenticated);
2367
+ function Nt() {
2368
+ let e = Mt((e) => e.isAuthenticated);
2364
2369
  return z({
2365
2370
  queryKey: ["schema", e],
2366
- queryFn: _t,
2371
+ queryFn: vt,
2367
2372
  staleTime: Infinity,
2368
2373
  enabled: e
2369
2374
  });
2370
2375
  }
2371
2376
  //#endregion
2372
2377
  //#region src/stores/appearance.ts
2373
- var Nt = {
2378
+ var Pt = {
2374
2379
  theme: "light",
2375
2380
  accent: "violet",
2376
2381
  density: "compact",
@@ -2383,26 +2388,26 @@ var Nt = {
2383
2388
  aiSurface: "both",
2384
2389
  faviconSource: "google",
2385
2390
  toastPosition: "bottom-right"
2386
- }, Pt = ["light", "dark"], Ft = [
2391
+ }, Ft = ["light", "dark"], It = [
2387
2392
  "violet",
2388
2393
  "blue",
2389
2394
  "teal",
2390
2395
  "amber",
2391
2396
  "rose"
2392
- ], It = [
2397
+ ], Lt = [
2393
2398
  "compact",
2394
2399
  "comfortable",
2395
2400
  "cozy"
2396
- ], Lt = ["wide", "collapsed"], Rt = ["top", "bottom"], zt = [
2401
+ ], Rt = ["wide", "collapsed"], zt = ["top", "bottom"], Bt = [
2397
2402
  "command",
2398
2403
  "panel",
2399
2404
  "both",
2400
2405
  "off"
2401
- ], Bt = [
2406
+ ], Vt = [
2402
2407
  "google",
2403
2408
  "direct",
2404
2409
  "none"
2405
- ], Vt = [
2410
+ ], Ht = [
2406
2411
  "top-left",
2407
2412
  "top-center",
2408
2413
  "top-right",
@@ -2410,48 +2415,48 @@ var Nt = {
2410
2415
  "bottom-center",
2411
2416
  "bottom-right"
2412
2417
  ];
2413
- function Ht(e, t) {
2418
+ function Ut(e, t) {
2414
2419
  return typeof t == "string" && e.includes(t) ? t : void 0;
2415
2420
  }
2416
- function Ut(e) {
2417
- let t = {}, n = Ht(Pt, e.theme);
2421
+ function Wt(e) {
2422
+ let t = {}, n = Ut(Ft, e.theme);
2418
2423
  n && (t.theme = n);
2419
- let r = Ht(Ft, e.accent);
2424
+ let r = Ut(It, e.accent);
2420
2425
  r && (t.accent = r);
2421
- let i = Ht(It, e.density);
2426
+ let i = Ut(Lt, e.density);
2422
2427
  i && (t.density = i);
2423
- let a = Ht(Lt, e.sidebar);
2428
+ let a = Ut(Rt, e.sidebar);
2424
2429
  a && (t.sidebar = a);
2425
- let o = Ht(Rt, e.tabsPosition);
2430
+ let o = Ut(zt, e.tabsPosition);
2426
2431
  o && (t.tabsPosition = o);
2427
- let s = Ht(zt, e.aiSurface);
2432
+ let s = Ut(Bt, e.aiSurface);
2428
2433
  s && (t.aiSurface = s);
2429
- let c = Ht(Bt, e.faviconSource);
2434
+ let c = Ut(Vt, e.faviconSource);
2430
2435
  c && (t.faviconSource = c);
2431
- let l = Ht(Vt, e.toastPosition);
2436
+ let l = Ut(Ht, e.toastPosition);
2432
2437
  return l && (t.toastPosition = l), typeof e.tabsMaxOpen == "number" && e.tabsMaxOpen > 0 && (t.tabsMaxOpen = e.tabsMaxOpen), typeof e.radius == "number" && e.radius >= 0 && e.radius <= 32 && (t.radius = e.radius), typeof e.zebra == "boolean" && (t.zebra = e.zebra), typeof e.tabsPersist == "boolean" && (t.tabsPersist = e.tabsPersist), t;
2433
2438
  }
2434
- var Wt = "declarion-appearance";
2435
- function Gt() {
2439
+ var Gt = "declarion-appearance";
2440
+ function Kt() {
2436
2441
  if (typeof window > "u") return null;
2437
2442
  try {
2438
- let e = localStorage.getItem(Wt);
2443
+ let e = localStorage.getItem(Gt);
2439
2444
  return e ? JSON.parse(e) : null;
2440
2445
  } catch {
2441
2446
  return null;
2442
2447
  }
2443
2448
  }
2444
- function Kt(e) {
2449
+ function qt(e) {
2445
2450
  if (!(typeof window > "u")) try {
2446
- localStorage.setItem(Wt, JSON.stringify(e));
2451
+ localStorage.setItem(Gt, JSON.stringify(e));
2447
2452
  } catch {}
2448
2453
  }
2449
- function qt(e) {
2454
+ function Jt(e) {
2450
2455
  if (typeof document > "u") return;
2451
2456
  let t = document.documentElement;
2452
2457
  t.dataset.theme = e.theme, t.dataset.accent = e.accent, t.dataset.density = e.density, t.dataset.sidebar = e.sidebar, t.dataset.tabbar = e.tabsPosition, t.dataset.zebra = e.zebra ? "on" : "off", t.dataset.ai = e.aiSurface, t.style.setProperty("--radius-md", `${e.radius}px`), t.style.setProperty("--radius-lg", `${e.radius + 3}px`);
2453
2458
  }
2454
- var Jt = {
2459
+ var Yt = {
2455
2460
  ui_theme: "theme",
2456
2461
  ui_accent: "accent",
2457
2462
  ui_density: "density",
@@ -2464,117 +2469,109 @@ var Jt = {
2464
2469
  ui_ai_surface: "aiSurface",
2465
2470
  ui_favicon_source: "faviconSource",
2466
2471
  ui_toast_position: "toastPosition"
2467
- }, Yt = Gt(), Xt = Yt ? new Set(Object.keys(Yt)) : /* @__PURE__ */ new Set(), Zt = {
2468
- ...Nt,
2469
- ...Yt ? Ut(Yt) : {}
2472
+ }, Xt = Kt(), Zt = Xt ? new Set(Object.keys(Xt)) : /* @__PURE__ */ new Set(), Qt = {
2473
+ ...Pt,
2474
+ ...Xt ? Wt(Xt) : {}
2470
2475
  };
2471
- typeof window < "u" && qt(Zt);
2472
- var Qt = W((e, t) => ({
2473
- ...Zt,
2476
+ typeof window < "u" && Jt(Qt);
2477
+ var $t = U((e, t) => ({
2478
+ ...Qt,
2474
2479
  set: (n, r) => {
2475
- let i = Ut({ [n]: r });
2480
+ let i = Wt({ [n]: r });
2476
2481
  if (i[n] === void 0) return;
2477
2482
  let a = {
2478
2483
  ...t(),
2479
2484
  ...i
2480
2485
  };
2481
- qt(a), Kt(a), Xt.add(n), e(i);
2486
+ Jt(a), qt(a), Zt.add(n), e(i);
2482
2487
  },
2483
2488
  setMany: (n) => {
2484
- let r = Ut(n);
2489
+ let r = Wt(n);
2485
2490
  if (!Object.keys(r).length) return;
2486
2491
  let i = {
2487
2492
  ...t(),
2488
2493
  ...r
2489
2494
  };
2490
- qt(i), Kt(i);
2491
- for (let e of Object.keys(r)) Xt.add(e);
2495
+ Jt(i), qt(i);
2496
+ for (let e of Object.keys(r)) Zt.add(e);
2492
2497
  e(r);
2493
2498
  },
2494
2499
  hydrateFromParams: (t) => {
2495
2500
  let n = {};
2496
- for (let [e, r] of Object.entries(Jt)) Xt.has(r) || t[e] !== void 0 && (n[r] = t[e]);
2497
- let r = Ut(n);
2498
- Object.keys(r).length && (qt({
2499
- ...Qt.getState(),
2501
+ for (let [e, r] of Object.entries(Yt)) Zt.has(r) || t[e] !== void 0 && (n[r] = t[e]);
2502
+ let r = Wt(n);
2503
+ Object.keys(r).length && (Jt({
2504
+ ...$t.getState(),
2500
2505
  ...r
2501
2506
  }), e(r));
2502
2507
  }
2503
2508
  }));
2504
2509
  //#endregion
2505
2510
  //#region src/lib/utils.ts
2506
- function $t(...e) {
2507
- return G(te(e));
2511
+ function en(...e) {
2512
+ return W(ne(e));
2508
2513
  }
2509
- function en(e) {
2514
+ function tn(e) {
2510
2515
  return e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0;
2511
2516
  }
2512
2517
  //#endregion
2513
2518
  //#region src/components/shared/DynamicIcon.tsx
2514
- function tn({ name: e, size: t, className: n, style: r }) {
2515
- return /* @__PURE__ */ V(q[e] ?? q.folder, {
2519
+ function nn({ name: e, size: t, className: n, style: r }) {
2520
+ return /* @__PURE__ */ V(K[e] ?? K.folder, {
2516
2521
  size: typeof t == "number" ? t : typeof t == "string" ? parseFloat(t) : void 0,
2517
2522
  cls: n,
2518
2523
  style: r
2519
2524
  });
2520
2525
  }
2521
2526
  //#endregion
2522
- //#region src/components/shared/Markdown.tsx
2523
- var nn = M(() => import("./MarkdownRenderer-Dvo_0Zcx.js").then((e) => ({ default: e.MarkdownRenderer })));
2524
- function rn() {
2525
- return /* @__PURE__ */ V("div", { className: "h-4 w-2/3 rounded bg-muted animate-pulse" });
2526
- }
2527
- function an(e) {
2528
- return /* @__PURE__ */ V(A, {
2529
- fallback: /* @__PURE__ */ V(rn, {}),
2530
- children: /* @__PURE__ */ V(nn, { ...e })
2531
- });
2532
- }
2533
- //#endregion
2534
2527
  //#region src/api/data.ts
2535
- function on(e, t) {
2528
+ function rn(e, t) {
2536
2529
  let n = new URL(`/api/data/${e}`, window.location.origin);
2537
2530
  if (t.page && n.searchParams.set("page", String(t.page)), t.per_page && n.searchParams.set("per_page", String(t.per_page)), t.sort && n.searchParams.set("sort", t.sort), t.search && n.searchParams.set("search", t.search), t.filters && t.filters.length > 0 && n.searchParams.set("filters", JSON.stringify(t.filters)), t.include_deleted && n.searchParams.set("include_deleted", "true"), t.expand) for (let e of t.expand) n.searchParams.append("expand", e);
2538
2531
  return t.select && t.select.length > 0 && n.searchParams.set("select", t.select.join(",")), t.screen && n.searchParams.set("screen", t.screen), t.preview && n.searchParams.set("preview", "true"), t.count && n.searchParams.set("count", t.count), n.pathname + n.search;
2539
2532
  }
2540
- async function sn(t, n = {}, r = {}) {
2541
- return e(on(t, n), { signal: r.signal });
2533
+ async function an(t, n = {}, r = {}) {
2534
+ return e(rn(t, n), { signal: r.signal });
2542
2535
  }
2543
- async function cn(t, n) {
2536
+ async function on(t, n) {
2544
2537
  let r = new URLSearchParams();
2545
2538
  if (typeof n == "string") r.set("id", n);
2546
2539
  else for (let [e, t] of Object.entries(n)) r.set(e, t);
2547
2540
  return e(`/api/data/${t}?${r.toString()}`);
2548
2541
  }
2549
- async function ln(t, n) {
2550
- return { data: (await e(`/api/data/${t}`, {
2551
- method: "POST",
2552
- body: JSON.stringify([n])
2553
- }))[0] };
2554
- }
2555
- async function un(e, t, n) {
2556
- let r = typeof t == "string" ? { id: t } : t;
2557
- return { data: ((await vn(`${e}.__update`, { items: [{
2558
- ...r,
2559
- ...n
2560
- }] })).result?.rows ?? [])[0] };
2561
- }
2562
- async function dn(e, t) {
2563
- let n = typeof t == "string" ? t : fn(t);
2564
- await vn(`${e}.__delete`, _n(void 0, [n]));
2542
+ async function sn(e, t) {
2543
+ return { data: ((await gn(`${e}.__create`, {
2544
+ entity: e,
2545
+ fields: t
2546
+ })).result?.rows ?? [])[0] };
2547
+ }
2548
+ async function cn(e, t, n) {
2549
+ let r = typeof t == "string" ? t : un(t);
2550
+ return { data: ((await gn(`${e}.__update`, {
2551
+ object_ids: [r],
2552
+ entity: e,
2553
+ fields: n
2554
+ })).result?.rows ?? [])[0] };
2555
+ }
2556
+ async function ln(e, t) {
2557
+ let n = typeof t == "string" ? t : un(t);
2558
+ await gn(`${e}.__delete`, {
2559
+ object_ids: [n],
2560
+ entity: e
2561
+ });
2565
2562
  }
2566
- function fn(e) {
2563
+ function un(e) {
2567
2564
  let t = Object.values(e);
2568
2565
  return t.length === 1 ? t[0] : t.join("");
2569
2566
  }
2570
- async function pn(t, n) {
2571
- let r = typeof n == "string" ? { id: n } : n;
2572
- await e(`/api/data/${t}/restore`, {
2573
- method: "POST",
2574
- body: JSON.stringify([r])
2567
+ async function dn(e, t) {
2568
+ let n = typeof t == "string" ? t : un(t);
2569
+ await gn(`${e}.__restore`, {
2570
+ object_ids: [n],
2571
+ entity: e
2575
2572
  });
2576
2573
  }
2577
- async function mn(e, t) {
2574
+ async function fn(e, t) {
2578
2575
  let n = await S(`/api/data/${e}/export`, {
2579
2576
  method: "POST",
2580
2577
  body: JSON.stringify(t)
@@ -2584,7 +2581,7 @@ async function mn(e, t) {
2584
2581
  filename: n.filename
2585
2582
  };
2586
2583
  }
2587
- var hn = class extends Error {
2584
+ var pn = class extends Error {
2588
2585
  status;
2589
2586
  response;
2590
2587
  constructor(e, t) {
@@ -2592,55 +2589,68 @@ var hn = class extends Error {
2592
2589
  super(n || "Action failed"), this.name = "ActionBatchError", this.status = e, this.response = t;
2593
2590
  }
2594
2591
  };
2595
- function gn(e) {
2592
+ function mn(e) {
2596
2593
  if (!e || typeof e != "object") return !1;
2597
2594
  let t = e;
2598
2595
  return typeof t.status == "string" && Array.isArray(t.errors);
2599
2596
  }
2600
- function _n(e, t) {
2597
+ function hn(e, t) {
2601
2598
  let n = { ...e ?? {} };
2602
- if ("_ids" in n) throw Error("handler param \"_ids\" collides with reserved key");
2603
- return t !== void 0 && (n._ids = t), n;
2599
+ if ("object_ids" in n) throw Error("handler param \"object_ids\" collides with reserved key");
2600
+ if ("_ids" in n) throw Error("handler param \"_ids\" is a removed legacy key; use object_ids");
2601
+ return t !== void 0 && (n.object_ids = t), n;
2604
2602
  }
2605
- async function vn(t, n) {
2603
+ async function gn(t, n) {
2606
2604
  try {
2607
2605
  return await e(`/api/actions/${t}`, {
2608
2606
  method: "POST",
2609
2607
  body: JSON.stringify(n)
2610
2608
  });
2611
2609
  } catch (e) {
2612
- throw e instanceof r && gn(e.raw) ? new hn(e.status, e.raw) : e;
2610
+ throw e instanceof r && mn(e.raw) ? new pn(e.status, e.raw) : e;
2613
2611
  }
2614
2612
  }
2615
- async function yn(t, n) {
2613
+ async function _n(t, n) {
2616
2614
  let r = new URLSearchParams();
2617
2615
  return r.set("ids", n.join(",")), e(`/api/associations/${t}?${r.toString()}`);
2618
2616
  }
2619
2617
  //#endregion
2618
+ //#region src/components/shared/Markdown.tsx
2619
+ var vn = M(() => import("./MarkdownRenderer-Dvo_0Zcx.js").then((e) => ({ default: e.MarkdownRenderer })));
2620
+ function yn() {
2621
+ return /* @__PURE__ */ V("div", { className: "h-4 w-2/3 rounded bg-muted animate-pulse" });
2622
+ }
2623
+ function bn(e) {
2624
+ return /* @__PURE__ */ V(A, {
2625
+ fallback: /* @__PURE__ */ V(yn, {}),
2626
+ children: /* @__PURE__ */ V(vn, { ...e })
2627
+ });
2628
+ }
2629
+ //#endregion
2620
2630
  //#region src/types/fieldType.ts
2621
- var bn = /* @__PURE__ */ "bool.bytes.date.decimal.email.enum.float.int.int_array.json.multilang.multilang_text.password.phone.ref.rich_text.secret.string.string_array.structure.tags.text.time.timestamp.url.uuid.uuid_array".split(".");
2631
+ var xn = /* @__PURE__ */ "bool.bytes.date.decimal.email.enum.float.int.int_array.json.multilang.multilang_text.password.phone.ref.rich_text.secret.string.string_array.structure.tags.text.time.timestamp.url.uuid.uuid_array".split(".");
2622
2632
  //#endregion
2623
2633
  //#region src/components/shared/CopyButton.tsx
2624
- function xn({ value: e, title: t, size: n = "icon" }) {
2634
+ function Sn({ value: e, title: t, size: n = "icon" }) {
2625
2635
  let [r, i] = R(!1), a = N(async (t) => {
2626
2636
  t.stopPropagation(), t.preventDefault();
2627
2637
  try {
2628
2638
  await navigator.clipboard.writeText(e), i(!0), setTimeout(() => i(!1), 2e3);
2629
2639
  } catch {}
2630
2640
  }, [e]), o = n === "sm" ? 12 : 14;
2631
- return /* @__PURE__ */ V(Y, {
2641
+ return /* @__PURE__ */ V(J, {
2632
2642
  size: n === "sm" ? 22 : 28,
2633
- icon: r ? /* @__PURE__ */ V(q.check, {
2643
+ icon: r ? /* @__PURE__ */ V(K.check, {
2634
2644
  size: o,
2635
2645
  style: { color: "var(--success)" }
2636
- }) : /* @__PURE__ */ V(q.copy, { size: o }),
2646
+ }) : /* @__PURE__ */ V(K.copy, { size: o }),
2637
2647
  onClick: a,
2638
2648
  title: t ?? "Copy to clipboard"
2639
2649
  });
2640
2650
  }
2641
2651
  //#endregion
2642
2652
  //#region src/components/fields/StringField.tsx
2643
- function Sn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2653
+ function Cn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2644
2654
  if (r === "display") {
2645
2655
  let t = String(n ?? "");
2646
2656
  return e.copyable && t ? /* @__PURE__ */ H("span", {
@@ -2652,7 +2662,7 @@ function Sn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2652
2662
  children: [/* @__PURE__ */ V("span", {
2653
2663
  style: { fontSize: 12.5 },
2654
2664
  children: t
2655
- }), /* @__PURE__ */ V(xn, {
2665
+ }), /* @__PURE__ */ V(Sn, {
2656
2666
  value: t,
2657
2667
  size: "sm"
2658
2668
  })]
@@ -2664,7 +2674,7 @@ function Sn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2664
2674
  })
2665
2675
  });
2666
2676
  }
2667
- return /* @__PURE__ */ V(Z, {
2677
+ return /* @__PURE__ */ V(X, {
2668
2678
  id: a,
2669
2679
  name: t,
2670
2680
  "aria-required": e.required || void 0,
@@ -2674,7 +2684,7 @@ function Sn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2674
2684
  }
2675
2685
  //#endregion
2676
2686
  //#region src/components/fields/TextField.tsx
2677
- function Cn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, compact: o, fieldId: s }) {
2687
+ function wn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, compact: o, fieldId: s }) {
2678
2688
  let c = e.display?.widget;
2679
2689
  if (r === "display") {
2680
2690
  let t = String(n ?? "");
@@ -2685,7 +2695,7 @@ function Cn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2685
2695
  },
2686
2696
  children: "—"
2687
2697
  });
2688
- let r = c === "markdown" ? /* @__PURE__ */ V(an, { content: t }) : c === "code" ? /* @__PURE__ */ V("pre", {
2698
+ let r = c === "markdown" ? /* @__PURE__ */ V(bn, { content: t }) : c === "code" ? /* @__PURE__ */ V("pre", {
2689
2699
  className: "mono",
2690
2700
  style: {
2691
2701
  fontSize: 12,
@@ -2717,14 +2727,14 @@ function Cn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2717
2727
  top: 0,
2718
2728
  right: 0
2719
2729
  },
2720
- children: /* @__PURE__ */ V(xn, {
2730
+ children: /* @__PURE__ */ V(Sn, {
2721
2731
  value: t,
2722
2732
  size: "sm"
2723
2733
  })
2724
2734
  })]
2725
2735
  }) : r;
2726
2736
  }
2727
- if (o) return /* @__PURE__ */ V(Z, {
2737
+ if (o) return /* @__PURE__ */ V(X, {
2728
2738
  id: s,
2729
2739
  name: t,
2730
2740
  "aria-required": e.required || void 0,
@@ -2732,7 +2742,7 @@ function Cn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2732
2742
  onChange: (e) => i?.(e)
2733
2743
  });
2734
2744
  let l = c === "markdown" || c === "code" ? 10 : 4;
2735
- return /* @__PURE__ */ V(je, {
2745
+ return /* @__PURE__ */ V(Me, {
2736
2746
  id: s,
2737
2747
  name: t,
2738
2748
  ariaRequired: e.required,
@@ -2744,13 +2754,13 @@ function Cn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fill: a, c
2744
2754
  }
2745
2755
  //#endregion
2746
2756
  //#region src/components/fields/EnumField.tsx
2747
- var wn = "__declarion_enum_null__";
2748
- function Tn({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }) {
2757
+ var Tn = "__declarion_enum_null__";
2758
+ function En({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }) {
2749
2759
  let o = e.values ?? [], s = o.find((e) => e.code === t);
2750
- if (n === "display") return s ? /* @__PURE__ */ V(X, {
2760
+ if (n === "display") return s ? /* @__PURE__ */ V(Y, {
2751
2761
  tone: s.color ?? "slate",
2752
2762
  size: "xs",
2753
- children: Q(s.name)
2763
+ children: Z(s.name)
2754
2764
  }) : /* @__PURE__ */ V("span", {
2755
2765
  style: {
2756
2766
  fontSize: 12.5,
@@ -2758,27 +2768,27 @@ function Tn({ field: e, value: t, mode: n, onChange: r, fieldId: i, labelId: a }
2758
2768
  },
2759
2769
  children: "—"
2760
2770
  });
2761
- let c = !e.required, l = t != null && t !== "" ? String(t) : wn, u = [...c ? [{
2762
- value: wn,
2771
+ let c = !e.required, l = t != null && t !== "" ? String(t) : Tn, u = [...c ? [{
2772
+ value: Tn,
2763
2773
  label: "— None —"
2764
2774
  }] : [], ...o.map((e) => ({
2765
2775
  value: e.code,
2766
- label: Q(e.name) || e.code
2776
+ label: Z(e.name) || e.code
2767
2777
  }))];
2768
- return /* @__PURE__ */ V(Fe, {
2778
+ return /* @__PURE__ */ V(Ie, {
2769
2779
  id: i,
2770
2780
  "aria-labelledby": a,
2771
2781
  "aria-required": e.required || void 0,
2772
2782
  value: l,
2773
2783
  options: u,
2774
- onChange: (e) => r?.(e === wn ? null : e),
2784
+ onChange: (e) => r?.(e === Tn ? null : e),
2775
2785
  placeholder: "Select…"
2776
2786
  });
2777
2787
  }
2778
2788
  //#endregion
2779
2789
  //#region src/components/fields/EmailField.tsx
2780
- function En({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2781
- return /* @__PURE__ */ V(Z, {
2790
+ function Dn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2791
+ return /* @__PURE__ */ V(X, {
2782
2792
  id: i,
2783
2793
  name: t,
2784
2794
  "aria-required": e.required || void 0,
@@ -2789,8 +2799,8 @@ function En({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2789
2799
  }
2790
2800
  //#endregion
2791
2801
  //#region src/components/fields/UrlField.tsx
2792
- function Dn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2793
- return /* @__PURE__ */ V(Z, {
2802
+ function On({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2803
+ return /* @__PURE__ */ V(X, {
2794
2804
  id: i,
2795
2805
  name: t,
2796
2806
  "aria-required": e.required || void 0,
@@ -2802,8 +2812,8 @@ function Dn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2802
2812
  }
2803
2813
  //#endregion
2804
2814
  //#region src/components/fields/PhoneField.tsx
2805
- function On({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2806
- return /* @__PURE__ */ V(Z, {
2815
+ function kn({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2816
+ return /* @__PURE__ */ V(X, {
2807
2817
  id: i,
2808
2818
  name: t,
2809
2819
  "aria-required": e.required || void 0,
@@ -2815,10 +2825,10 @@ function On({ field: e, fieldName: t, value: n, onChange: r, fieldId: i }) {
2815
2825
  }
2816
2826
  //#endregion
2817
2827
  //#region src/lib/timestamp.ts
2818
- function kn(e = /* @__PURE__ */ new Date()) {
2819
- return ie(e);
2828
+ function An(e = /* @__PURE__ */ new Date()) {
2829
+ return ae(e);
2820
2830
  }
2821
- function An(e) {
2831
+ function jn(e) {
2822
2832
  let t = e.match(/([+-]\d{2}:\d{2})$/), n = e.endsWith("Z");
2823
2833
  if (t || n) {
2824
2834
  let r = new Date(e);
@@ -2851,7 +2861,7 @@ function An(e) {
2851
2861
  timeStyle: "short"
2852
2862
  }).format(r);
2853
2863
  }
2854
- function jn(e, t = /* @__PURE__ */ new Date()) {
2864
+ function Mn(e, t = /* @__PURE__ */ new Date()) {
2855
2865
  if (e == null || e === "") return {
2856
2866
  text: "—",
2857
2867
  absolute: ""
@@ -2864,18 +2874,18 @@ function jn(e, t = /* @__PURE__ */ new Date()) {
2864
2874
  absolute: t
2865
2875
  };
2866
2876
  }
2867
- let r = An(typeof e == "string" ? e : n.toISOString()), i = t.getTime() - n.getTime();
2877
+ let r = jn(typeof e == "string" ? e : n.toISOString()), i = t.getTime() - n.getTime();
2868
2878
  return Math.abs(i) > 720 * 60 * 60 * 1e3 ? {
2869
- text: ie(n, { representation: "date" }),
2879
+ text: ae(n, { representation: "date" }),
2870
2880
  absolute: r
2871
2881
  } : {
2872
- text: re(n, { addSuffix: !0 }),
2882
+ text: ie(n, { addSuffix: !0 }),
2873
2883
  absolute: r
2874
2884
  };
2875
2885
  }
2876
2886
  //#endregion
2877
2887
  //#region src/components/fields/TimestampField.tsx
2878
- function Mn(e, t) {
2888
+ function Nn(e, t) {
2879
2889
  if (t) {
2880
2890
  let t = /* @__PURE__ */ new Date(e + "T00:00:00");
2881
2891
  return isNaN(t.getTime()) ? e : new Intl.DateTimeFormat(void 0, {
@@ -2921,7 +2931,7 @@ function Mn(e, t) {
2921
2931
  minute: "2-digit"
2922
2932
  }).format(i);
2923
2933
  }
2924
- function Nn(e, t) {
2934
+ function Pn(e, t) {
2925
2935
  if (t) {
2926
2936
  let t = /* @__PURE__ */ new Date(e + "T00:00:00");
2927
2937
  return isNaN(t.getTime()) ? e : new Intl.DateTimeFormat(void 0, {
@@ -2939,14 +2949,14 @@ function Nn(e, t) {
2939
2949
  minute: "2-digit"
2940
2950
  }).format(n);
2941
2951
  }
2942
- function Pn(e) {
2952
+ function Fn(e) {
2943
2953
  if (e.endsWith("Z")) return "UTC";
2944
2954
  let t = e.match(/([+-]\d{2}:\d{2})$/);
2945
2955
  if (!t) return null;
2946
2956
  let n = t[1].charAt(0), r = parseInt(t[1].substring(1, 3), 10), i = parseInt(t[1].substring(4, 6), 10);
2947
2957
  return r === 0 && i === 0 ? "UTC" : `UTC${n}${r}${i > 0 ? `:${String(i).padStart(2, "0")}` : ""}`;
2948
2958
  }
2949
- function Fn(e, t) {
2959
+ function In(e, t) {
2950
2960
  let n = e.match(/([+-]\d{2}:\d{2})$/), r = e.endsWith("Z"), i = new Date(e);
2951
2961
  if (isNaN(i.getTime())) return "";
2952
2962
  if (r) {
@@ -2959,13 +2969,13 @@ function Fn(e, t) {
2959
2969
  }
2960
2970
  return t ? e.slice(0, 10) : e.slice(0, 16);
2961
2971
  }
2962
- function In(e, t) {
2972
+ function Ln(e, t) {
2963
2973
  let n = new Date(e);
2964
2974
  if (isNaN(n.getTime())) return "";
2965
2975
  let r = n.getFullYear(), i = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0");
2966
2976
  return t ? `${r}-${i}-${a}` : `${r}-${i}-${a}T${String(n.getHours()).padStart(2, "0")}:${String(n.getMinutes()).padStart(2, "0")}`;
2967
2977
  }
2968
- function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2978
+ function Rn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
2969
2979
  let o = e.type === "date", s = !!e.timezone;
2970
2980
  if (r === "display") {
2971
2981
  if (!n) return /* @__PURE__ */ V("span", {
@@ -2975,7 +2985,7 @@ function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2975
2985
  },
2976
2986
  children: "—"
2977
2987
  });
2978
- let e = String(n), t = s ? Mn(e, o) : Nn(e, o), r = s && !o ? Pn(e) : null;
2988
+ let e = String(n), t = s ? Nn(e, o) : Pn(e, o), r = s && !o ? Fn(e) : null;
2979
2989
  return /* @__PURE__ */ H("span", {
2980
2990
  style: { fontSize: 12.5 },
2981
2991
  children: [t, r && /* @__PURE__ */ V("span", {
@@ -2987,8 +2997,8 @@ function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
2987
2997
  })]
2988
2998
  });
2989
2999
  }
2990
- let c = n ? s ? Fn(String(n), o) : In(String(n), o) : "";
2991
- return /* @__PURE__ */ V(Z, {
3000
+ let c = n ? s ? In(String(n), o) : Ln(String(n), o) : "";
3001
+ return /* @__PURE__ */ V(X, {
2992
3002
  id: a,
2993
3003
  name: t,
2994
3004
  "aria-required": e.required || void 0,
@@ -3008,13 +3018,13 @@ function Ln({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3008
3018
  i?.(e);
3009
3019
  return;
3010
3020
  }
3011
- i?.(kn(t));
3021
+ i?.(An(t));
3012
3022
  }
3013
3023
  });
3014
3024
  }
3015
3025
  //#endregion
3016
3026
  //#region src/components/fields/BoolField.tsx
3017
- function Rn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
3027
+ function zn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
3018
3028
  let a = !!e;
3019
3029
  return t === "display" ? /* @__PURE__ */ H("span", {
3020
3030
  style: {
@@ -3030,7 +3040,7 @@ function Rn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
3030
3040
  borderRadius: 999,
3031
3041
  background: a ? "var(--success)" : "var(--text-4)"
3032
3042
  } }), a ? "Yes" : "No"]
3033
- }) : /* @__PURE__ */ V(we, {
3043
+ }) : /* @__PURE__ */ V(Te, {
3034
3044
  id: r,
3035
3045
  ariaLabelledby: i,
3036
3046
  value: a,
@@ -3039,7 +3049,7 @@ function Rn({ value: e, mode: t, onChange: n, fieldId: r, labelId: i }) {
3039
3049
  }
3040
3050
  //#endregion
3041
3051
  //#region src/components/fields/NumberField.tsx
3042
- function zn(e) {
3052
+ function Bn(e) {
3043
3053
  let t = e.trim();
3044
3054
  if (t === "" || t === "-") return t;
3045
3055
  let n = t.startsWith("-"), [r, i] = (n ? t.slice(1) : t).split("."), a;
@@ -3051,8 +3061,8 @@ function zn(e) {
3051
3061
  let o = n ? `-${a}` : a;
3052
3062
  return i !== void 0 && (o += `.${i}`), o;
3053
3063
  }
3054
- var Bn = new Intl.NumberFormat();
3055
- function Vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3064
+ var Vn = new Intl.NumberFormat();
3065
+ function Hn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3056
3066
  let s = e.display?.widget === "money", c = e.type === "decimal" || s, l = a?.$units?.[t], u = !l && e.unit ? e.unit.display || e.unit.storage : void 0, d = l || (u && !u.startsWith("$") ? u : void 0);
3057
3067
  if (r === "display") {
3058
3068
  if (n == null) return /* @__PURE__ */ V("span", {
@@ -3063,10 +3073,10 @@ function Vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3063
3073
  children: "—"
3064
3074
  });
3065
3075
  let e;
3066
- if (c && typeof n == "string") e = zn(n);
3076
+ if (c && typeof n == "string") e = Bn(n);
3067
3077
  else {
3068
3078
  let t = Number(n);
3069
- e = isNaN(t) ? null : Bn.format(t);
3079
+ e = isNaN(t) ? null : Vn.format(t);
3070
3080
  }
3071
3081
  return e == null ? /* @__PURE__ */ V("span", {
3072
3082
  style: { fontSize: 12.5 },
@@ -3086,7 +3096,7 @@ function Vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3086
3096
  })]
3087
3097
  });
3088
3098
  }
3089
- return c ? /* @__PURE__ */ V(Z, {
3099
+ return c ? /* @__PURE__ */ V(X, {
3090
3100
  id: o,
3091
3101
  name: t,
3092
3102
  "aria-required": e.required || void 0,
@@ -3097,7 +3107,7 @@ function Vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3097
3107
  onChange: (e) => {
3098
3108
  e === "" ? i?.(null) : i?.(e);
3099
3109
  }
3100
- }) : /* @__PURE__ */ V(Z, {
3110
+ }) : /* @__PURE__ */ V(X, {
3101
3111
  id: o,
3102
3112
  name: t,
3103
3113
  "aria-required": e.required || void 0,
@@ -3111,7 +3121,7 @@ function Vn({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3111
3121
  }
3112
3122
  //#endregion
3113
3123
  //#region src/hooks/useEntityData.ts
3114
- function Hn(e, t) {
3124
+ function Un(e, t) {
3115
3125
  let n = {
3116
3126
  ...t,
3117
3127
  count: "window"
@@ -3122,12 +3132,12 @@ function Hn(e, t) {
3122
3132
  e,
3123
3133
  n
3124
3134
  ],
3125
- queryFn: ({ signal: t }) => sn(e, n, { signal: t }),
3135
+ queryFn: ({ signal: t }) => an(e, n, { signal: t }),
3126
3136
  enabled: !!e,
3127
3137
  placeholderData: (t, n) => n?.queryKey?.[1] === e ? t : void 0
3128
3138
  });
3129
3139
  }
3130
- function Un(e, t) {
3140
+ function Wn(e, t) {
3131
3141
  let n = {
3132
3142
  ...t,
3133
3143
  count: "only",
@@ -3143,7 +3153,7 @@ function Un(e, t) {
3143
3153
  e,
3144
3154
  n
3145
3155
  ],
3146
- queryFn: ({ signal: t }) => sn(e, n, { signal: t }),
3156
+ queryFn: ({ signal: t }) => an(e, n, { signal: t }),
3147
3157
  enabled: !!e,
3148
3158
  retry: 1,
3149
3159
  staleTime: 3e4,
@@ -3152,14 +3162,14 @@ function Un(e, t) {
3152
3162
  }
3153
3163
  //#endregion
3154
3164
  //#region src/hooks/useEntity.ts
3155
- function Wn(e) {
3156
- let { data: t } = Mt();
3165
+ function Gn(e) {
3166
+ let { data: t } = Nt();
3157
3167
  if (!(!t || !e)) return t.entities[e];
3158
3168
  }
3159
3169
  //#endregion
3160
3170
  //#region src/components/fields/RefField.tsx
3161
- function Gn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, labelId: o }) {
3162
- let s = e.ref?.entity, c = Wn(s), l = e.display?.ref_display_field ?? e.ref?.display?.field ?? c?.display?.display_field, u = I(() => c ? [...c.fields].find(([, e]) => e.primary)?.[0] ?? "id" : "id", [c]), { data: d, isLoading: f } = Hn(n === "edit" ? s : void 0, {
3171
+ function Kn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, labelId: o }) {
3172
+ let s = e.ref?.entity, c = Gn(s), l = e.display?.ref_display_field ?? e.ref?.display?.field ?? c?.display?.display_field, u = I(() => c ? [...c.fields].find(([, e]) => e.primary)?.[0] ?? "id" : "id", [c]), { data: d, isLoading: f } = Un(n === "edit" ? s : void 0, {
3163
3173
  per_page: 200,
3164
3174
  sort: l ? `${l}:asc` : void 0
3165
3175
  }), p = I(() => d?.data ?? [], [d?.data]), m = I(() => {
@@ -3169,12 +3179,12 @@ function Gn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
3169
3179
  let t = i[s];
3170
3180
  if (t) {
3171
3181
  let n = t[e];
3172
- if (n) return Ye(n, l, e);
3182
+ if (n) return Xe(n, l, e);
3173
3183
  }
3174
3184
  }
3175
3185
  if (p.length > 0) {
3176
3186
  let n = p.find((t) => String(t[u]) === e);
3177
- if (n) return Ye(n, l, String(t));
3187
+ if (n) return Xe(n, l, String(t));
3178
3188
  }
3179
3189
  return e;
3180
3190
  }, [
@@ -3206,11 +3216,11 @@ function Gn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
3206
3216
  let t = String(e[u]);
3207
3217
  return {
3208
3218
  value: t,
3209
- label: Ye(e, l, t)
3219
+ label: Xe(e, l, t)
3210
3220
  };
3211
3221
  })
3212
3222
  ];
3213
- return /* @__PURE__ */ V(Fe, {
3223
+ return /* @__PURE__ */ V(Ie, {
3214
3224
  id: a,
3215
3225
  "aria-labelledby": o,
3216
3226
  "aria-required": e.required || void 0,
@@ -3222,29 +3232,29 @@ function Gn({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
3222
3232
  }
3223
3233
  //#endregion
3224
3234
  //#region src/components/fields/JsonField.tsx
3225
- var Kn = M(() => import("./JsonEditor-KelPV-OQ.js").then((e) => ({ default: e.JsonEditor })));
3226
- function qn() {
3235
+ var qn = M(() => import("./JsonEditor-KelPV-OQ.js").then((e) => ({ default: e.JsonEditor })));
3236
+ function Jn() {
3227
3237
  return /* @__PURE__ */ V("div", { className: "h-20 rounded-md border border-border bg-muted animate-pulse" });
3228
3238
  }
3229
- function Jn(e) {
3239
+ function Yn(e) {
3230
3240
  return e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
3231
3241
  }
3232
- function Yn({ value: e, mode: t, onChange: n, fieldId: r }) {
3233
- return t === "display" ? Jn(e) ? /* @__PURE__ */ V("span", {
3242
+ function Xn({ value: e, mode: t, onChange: n, fieldId: r }) {
3243
+ return t === "display" ? Yn(e) ? /* @__PURE__ */ V("span", {
3234
3244
  style: {
3235
3245
  fontSize: 12.5,
3236
3246
  color: "var(--text-4)"
3237
3247
  },
3238
3248
  children: "—"
3239
3249
  }) : /* @__PURE__ */ V(A, {
3240
- fallback: /* @__PURE__ */ V(qn, {}),
3241
- children: /* @__PURE__ */ V(Kn, {
3250
+ fallback: /* @__PURE__ */ V(Jn, {}),
3251
+ children: /* @__PURE__ */ V(qn, {
3242
3252
  value: e,
3243
3253
  readOnly: !0
3244
3254
  })
3245
3255
  }) : /* @__PURE__ */ V(A, {
3246
- fallback: /* @__PURE__ */ V(qn, {}),
3247
- children: /* @__PURE__ */ V(Kn, {
3256
+ fallback: /* @__PURE__ */ V(Jn, {}),
3257
+ children: /* @__PURE__ */ V(qn, {
3248
3258
  value: e,
3249
3259
  onChange: n,
3250
3260
  id: r
@@ -3253,14 +3263,14 @@ function Yn({ value: e, mode: t, onChange: n, fieldId: r }) {
3253
3263
  }
3254
3264
  //#endregion
3255
3265
  //#region src/components/fields/MultilangField.tsx
3256
- function Xn(e) {
3266
+ function Zn(e) {
3257
3267
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
3258
3268
  }
3259
- function Zn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3260
- let { data: o } = Mt(), s = o?.languages?.length ? o.languages : [{
3269
+ function Qn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3270
+ let { data: o } = Nt(), s = o?.languages?.length ? o.languages : [{
3261
3271
  code: "en",
3262
3272
  name: { en: "English" }
3263
- }], c = Xn(n);
3273
+ }], c = Zn(n);
3264
3274
  if (r === "display") return /* @__PURE__ */ V("span", {
3265
3275
  style: { fontSize: 12.5 },
3266
3276
  children: Object.values(c)[0] ?? "—"
@@ -3301,7 +3311,7 @@ function Zn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3301
3311
  children: n.code
3302
3312
  }), /* @__PURE__ */ V("div", {
3303
3313
  style: { flex: 1 },
3304
- children: /* @__PURE__ */ V(Z, {
3314
+ children: /* @__PURE__ */ V(X, {
3305
3315
  id: i,
3306
3316
  name: t ? `${t}.${n.code}` : void 0,
3307
3317
  "aria-required": e.required && r === 0 ? !0 : void 0,
@@ -3316,14 +3326,14 @@ function Zn({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3316
3326
  }
3317
3327
  //#endregion
3318
3328
  //#region src/components/fields/MultilangTextField.tsx
3319
- function Qn(e) {
3329
+ function $n(e) {
3320
3330
  return e == null ? {} : typeof e == "object" && !Array.isArray(e) ? e : typeof e == "string" ? { en: e } : {};
3321
3331
  }
3322
- function $n({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3323
- let { data: o } = Mt(), s = o?.languages?.length ? o.languages : [{
3332
+ function er({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3333
+ let { data: o } = Nt(), s = o?.languages?.length ? o.languages : [{
3324
3334
  code: "en",
3325
3335
  name: { en: "English" }
3326
- }], c = Qn(n);
3336
+ }], c = $n(n);
3327
3337
  if (r === "display") return /* @__PURE__ */ V("p", {
3328
3338
  style: {
3329
3339
  fontSize: 12.5,
@@ -3364,7 +3374,7 @@ function $n({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3364
3374
  fontWeight: 500
3365
3375
  },
3366
3376
  children: n.code
3367
- }), /* @__PURE__ */ V(je, {
3377
+ }), /* @__PURE__ */ V(Me, {
3368
3378
  id: i,
3369
3379
  name: t ? `${t}.${n.code}` : void 0,
3370
3380
  ariaRequired: e.required && r === 0,
@@ -3379,25 +3389,25 @@ function $n({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3379
3389
  }
3380
3390
  //#endregion
3381
3391
  //#region src/components/fields/StructureField.tsx
3382
- function er(e) {
3383
- let { field: t, value: n, mode: r, onChange: i, locale: a, fieldId: o } = e, { data: s } = Mt(), c = t.structure ? s?.structures?.[t.structure] : void 0;
3384
- return c ? t.array ? /* @__PURE__ */ V(nr, {
3392
+ function tr(e) {
3393
+ let { field: t, value: n, mode: r, onChange: i, locale: a, fieldId: o } = e, { data: s } = Nt(), c = t.structure ? s?.structures?.[t.structure] : void 0;
3394
+ return c ? t.array ? /* @__PURE__ */ V(rr, {
3385
3395
  structDef: c,
3386
3396
  value: n,
3387
3397
  mode: r,
3388
3398
  onChange: i,
3389
3399
  locale: a,
3390
3400
  fieldId: o
3391
- }) : /* @__PURE__ */ V(tr, {
3401
+ }) : /* @__PURE__ */ V(nr, {
3392
3402
  structDef: c,
3393
3403
  value: n,
3394
3404
  mode: r,
3395
3405
  onChange: i,
3396
3406
  locale: a,
3397
3407
  fieldId: o
3398
- }) : /* @__PURE__ */ V(Yn, { ...e });
3408
+ }) : /* @__PURE__ */ V(Xn, { ...e });
3399
3409
  }
3400
- function tr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3410
+ function nr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3401
3411
  let o = typeof t == "object" && t && !Array.isArray(t) ? t : {}, s = e.fields.names(), c = {
3402
3412
  display: "flex",
3403
3413
  flexDirection: "column",
@@ -3427,13 +3437,13 @@ function tr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3427
3437
  minWidth: 100,
3428
3438
  flexShrink: 0
3429
3439
  },
3430
- children: n.display ? Q(n.display.name) : t
3440
+ children: n.display ? Z(n.display.name) : t
3431
3441
  }), /* @__PURE__ */ V("div", {
3432
3442
  style: {
3433
3443
  minWidth: 0,
3434
3444
  flex: 1
3435
3445
  },
3436
- children: n.type === "structure" && n.structure ? /* @__PURE__ */ V(er, {
3446
+ children: n.type === "structure" && n.structure ? /* @__PURE__ */ V(tr, {
3437
3447
  field: n,
3438
3448
  fieldName: t,
3439
3449
  value: r,
@@ -3474,10 +3484,10 @@ function tr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3474
3484
  flexDirection: "column",
3475
3485
  gap: 2
3476
3486
  },
3477
- children: [/* @__PURE__ */ V(ke, {
3487
+ children: [/* @__PURE__ */ V(Ae, {
3478
3488
  required: n.required,
3479
- children: n.display ? Q(n.display.name) : t
3480
- }), n.type === "structure" && n.structure ? /* @__PURE__ */ V(er, {
3489
+ children: n.display ? Z(n.display.name) : t
3490
+ }), n.type === "structure" && n.structure ? /* @__PURE__ */ V(tr, {
3481
3491
  field: n,
3482
3492
  fieldName: t,
3483
3493
  value: o[t],
@@ -3496,7 +3506,7 @@ function tr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3496
3506
  })
3497
3507
  });
3498
3508
  }
3499
- function nr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3509
+ function rr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId: a }) {
3500
3510
  let o = Array.isArray(t) ? t : [];
3501
3511
  if (n === "display") return o.length === 0 ? /* @__PURE__ */ V("span", {
3502
3512
  style: {
@@ -3510,7 +3520,7 @@ function nr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3510
3520
  flexDirection: "column",
3511
3521
  gap: 8
3512
3522
  },
3513
- children: o.map((t, n) => /* @__PURE__ */ V(tr, {
3523
+ children: o.map((t, n) => /* @__PURE__ */ V(nr, {
3514
3524
  structDef: e,
3515
3525
  value: t,
3516
3526
  mode: "display",
@@ -3536,7 +3546,7 @@ function nr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3536
3546
  role: "group",
3537
3547
  children: [o.map((t, n) => /* @__PURE__ */ H("div", {
3538
3548
  style: { position: "relative" },
3539
- children: [/* @__PURE__ */ V(tr, {
3549
+ children: [/* @__PURE__ */ V(nr, {
3540
3550
  structDef: e,
3541
3551
  value: t,
3542
3552
  mode: "edit",
@@ -3548,15 +3558,15 @@ function nr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3548
3558
  top: 6,
3549
3559
  right: 6
3550
3560
  },
3551
- children: /* @__PURE__ */ V(Y, {
3561
+ children: /* @__PURE__ */ V(J, {
3552
3562
  size: 24,
3553
- icon: /* @__PURE__ */ V(q.trash, { size: 12 }),
3563
+ icon: /* @__PURE__ */ V(K.trash, { size: 12 }),
3554
3564
  onClick: l(n),
3555
3565
  title: "Remove"
3556
3566
  })
3557
3567
  })]
3558
- }, n)), /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(J, {
3559
- icon: /* @__PURE__ */ V(q.plus, { size: 13 }),
3568
+ }, n)), /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(q, {
3569
+ icon: /* @__PURE__ */ V(K.plus, { size: 13 }),
3560
3570
  onClick: c,
3561
3571
  children: "Add"
3562
3572
  }) })]
@@ -3564,16 +3574,16 @@ function nr({ structDef: e, value: t, mode: n, onChange: r, locale: i, fieldId:
3564
3574
  }
3565
3575
  //#endregion
3566
3576
  //#region src/components/fields/SecretField.tsx
3567
- var rr = "[SET]";
3568
- function ir({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3569
- let [s, c] = R(""), l = a !== void 0, u = n === rr || typeof n == "string" && n !== "";
3577
+ var ir = "[SET]";
3578
+ function ar({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3579
+ let [s, c] = R(""), l = a !== void 0, u = n === ir || typeof n == "string" && n !== "";
3570
3580
  return r === "display" ? u ? /* @__PURE__ */ V("span", {
3571
3581
  className: "mono",
3572
3582
  style: {
3573
3583
  fontSize: 12.5,
3574
3584
  color: "var(--text-3)"
3575
3585
  },
3576
- children: rr
3586
+ children: ir
3577
3587
  }) : /* @__PURE__ */ V("span", {
3578
3588
  style: {
3579
3589
  fontSize: 12.5,
@@ -3581,29 +3591,29 @@ function ir({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3581
3591
  fontStyle: "italic"
3582
3592
  },
3583
3593
  children: "Not set"
3584
- }) : /* @__PURE__ */ V(Be, {
3594
+ }) : /* @__PURE__ */ V(Ve, {
3585
3595
  id: o,
3586
3596
  name: t,
3587
3597
  ariaRequired: e.required,
3588
3598
  value: s,
3589
3599
  onChange: (e) => {
3590
- c(e), l && e === "" ? i?.(u ? rr : "") : i?.(e);
3600
+ c(e), l && e === "" ? i?.(u ? ir : "") : i?.(e);
3591
3601
  },
3592
3602
  placeholder: l ? "Leave blank to keep existing value" : "Enter value"
3593
3603
  });
3594
3604
  }
3595
3605
  //#endregion
3596
3606
  //#region src/components/fields/PasswordField.tsx
3597
- var ar = "[SET]";
3598
- function or({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3599
- let [s, c] = R(""), l = a !== void 0, u = n === ar || typeof n == "string" && n !== "";
3607
+ var or = "[SET]";
3608
+ function sr({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a, fieldId: o }) {
3609
+ let [s, c] = R(""), l = a !== void 0, u = n === or || typeof n == "string" && n !== "";
3600
3610
  return r === "display" ? u ? /* @__PURE__ */ V("span", {
3601
3611
  className: "mono",
3602
3612
  style: {
3603
3613
  fontSize: 12.5,
3604
3614
  color: "var(--text-3)"
3605
3615
  },
3606
- children: ar
3616
+ children: or
3607
3617
  }) : /* @__PURE__ */ V("span", {
3608
3618
  style: {
3609
3619
  fontSize: 12.5,
@@ -3611,24 +3621,24 @@ function or({ field: e, fieldName: t, value: n, mode: r, onChange: i, record: a,
3611
3621
  fontStyle: "italic"
3612
3622
  },
3613
3623
  children: "Not set"
3614
- }) : /* @__PURE__ */ V(Be, {
3624
+ }) : /* @__PURE__ */ V(Ve, {
3615
3625
  id: o,
3616
3626
  name: t,
3617
3627
  ariaRequired: e.required,
3618
3628
  value: s,
3619
3629
  onChange: (e) => {
3620
- c(e), l && e === "" ? i?.(u ? ar : "") : i?.(e);
3630
+ c(e), l && e === "" ? i?.(u ? or : "") : i?.(e);
3621
3631
  },
3622
3632
  placeholder: l ? "Leave blank to keep existing value" : "Enter password"
3623
3633
  });
3624
3634
  }
3625
3635
  //#endregion
3626
3636
  //#region src/components/fields/StringArrayField.tsx
3627
- function sr(e) {
3637
+ function cr(e) {
3628
3638
  return Array.isArray(e) ? e.filter((e) => e != null).map(String) : [];
3629
3639
  }
3630
- function cr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3631
- let o = sr(n), [s, c] = R("");
3640
+ function lr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3641
+ let o = cr(n), [s, c] = R("");
3632
3642
  if (r === "display") return o.length === 0 ? /* @__PURE__ */ V("span", {
3633
3643
  style: {
3634
3644
  fontSize: 12.5,
@@ -3641,7 +3651,7 @@ function cr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3641
3651
  flexWrap: "wrap",
3642
3652
  gap: 4
3643
3653
  },
3644
- children: o.map((e, t) => /* @__PURE__ */ V(_e, {
3654
+ children: o.map((e, t) => /* @__PURE__ */ V(ve, {
3645
3655
  tone: "slate",
3646
3656
  children: e
3647
3657
  }, t))
@@ -3664,7 +3674,7 @@ function cr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3664
3674
  flexWrap: "wrap",
3665
3675
  gap: 4
3666
3676
  },
3667
- children: o.map((e, t) => /* @__PURE__ */ V(_e, {
3677
+ children: o.map((e, t) => /* @__PURE__ */ V(ve, {
3668
3678
  tone: "slate",
3669
3679
  onRemove: () => u(t),
3670
3680
  children: e
@@ -3676,7 +3686,7 @@ function cr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3676
3686
  },
3677
3687
  children: [/* @__PURE__ */ V("div", {
3678
3688
  style: { flex: 1 },
3679
- children: /* @__PURE__ */ V(Z, {
3689
+ children: /* @__PURE__ */ V(X, {
3680
3690
  id: a,
3681
3691
  name: t,
3682
3692
  "aria-required": e.required || void 0,
@@ -3687,8 +3697,8 @@ function cr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3687
3697
  },
3688
3698
  placeholder: "Add item…"
3689
3699
  })
3690
- }), /* @__PURE__ */ V(J, {
3691
- icon: /* @__PURE__ */ V(q.plus, { size: 13 }),
3700
+ }), /* @__PURE__ */ V(q, {
3701
+ icon: /* @__PURE__ */ V(K.plus, { size: 13 }),
3692
3702
  onClick: l,
3693
3703
  children: "Add"
3694
3704
  })]
@@ -3697,11 +3707,11 @@ function cr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3697
3707
  }
3698
3708
  //#endregion
3699
3709
  //#region src/components/fields/IntArrayField.tsx
3700
- function lr(e) {
3710
+ function ur(e) {
3701
3711
  return Array.isArray(e) ? e.filter((e) => e != null).map(Number).filter((e) => !isNaN(e)) : [];
3702
3712
  }
3703
- function ur({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3704
- let o = lr(n), [s, c] = R("");
3713
+ function dr({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a }) {
3714
+ let o = ur(n), [s, c] = R("");
3705
3715
  if (r === "display") return o.length === 0 ? /* @__PURE__ */ V("span", {
3706
3716
  style: {
3707
3717
  fontSize: 12.5,
@@ -3714,7 +3724,7 @@ function ur({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3714
3724
  flexWrap: "wrap",
3715
3725
  gap: 4
3716
3726
  },
3717
- children: o.map((e, t) => /* @__PURE__ */ V(_e, {
3727
+ children: o.map((e, t) => /* @__PURE__ */ V(ve, {
3718
3728
  tone: "slate",
3719
3729
  children: e
3720
3730
  }, t))
@@ -3739,7 +3749,7 @@ function ur({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3739
3749
  flexWrap: "wrap",
3740
3750
  gap: 4
3741
3751
  },
3742
- children: o.map((e, t) => /* @__PURE__ */ V(_e, {
3752
+ children: o.map((e, t) => /* @__PURE__ */ V(ve, {
3743
3753
  tone: "slate",
3744
3754
  onRemove: () => u(t),
3745
3755
  children: e
@@ -3751,7 +3761,7 @@ function ur({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3751
3761
  },
3752
3762
  children: [/* @__PURE__ */ V("div", {
3753
3763
  style: { flex: 1 },
3754
- children: /* @__PURE__ */ V(Z, {
3764
+ children: /* @__PURE__ */ V(X, {
3755
3765
  id: a,
3756
3766
  name: t,
3757
3767
  "aria-required": e.required || void 0,
@@ -3763,8 +3773,8 @@ function ur({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3763
3773
  },
3764
3774
  placeholder: "Add number…"
3765
3775
  })
3766
- }), /* @__PURE__ */ V(J, {
3767
- icon: /* @__PURE__ */ V(q.plus, { size: 13 }),
3776
+ }), /* @__PURE__ */ V(q, {
3777
+ icon: /* @__PURE__ */ V(K.plus, { size: 13 }),
3768
3778
  onClick: l,
3769
3779
  children: "Add"
3770
3780
  })]
@@ -3773,15 +3783,15 @@ function ur({ field: e, fieldName: t, value: n, mode: r, onChange: i, fieldId: a
3773
3783
  }
3774
3784
  //#endregion
3775
3785
  //#region src/components/file-widgets/registry.ts
3776
- var dr = /* @__PURE__ */ new Map();
3777
- function fr(e, t) {
3778
- dr.set(e, t);
3786
+ var fr = /* @__PURE__ */ new Map();
3787
+ function Q(e, t) {
3788
+ fr.set(e, t);
3779
3789
  }
3780
3790
  function pr(e) {
3781
- return dr.get(e);
3791
+ return fr.get(e);
3782
3792
  }
3783
3793
  function mr(e) {
3784
- return dr.has(e);
3794
+ return fr.has(e);
3785
3795
  }
3786
3796
  //#endregion
3787
3797
  //#region src/components/file-widgets/cropper.ts
@@ -3805,16 +3815,16 @@ function br(e) {
3805
3815
  return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[1][0]).toUpperCase();
3806
3816
  }
3807
3817
  function xr(e) {
3808
- let { field: t, fieldName: n, value: r, onChange: o, mode: s, alt: f, disabled: p, visual: _, uploadFieldCode: v, uploadSlotCode: y } = e, S = h(r), [C, w] = R("idle"), [T, E] = R(null), [D, O] = R(null), [k, A] = R(null), [j, M] = R(!1), F = L(null), z = L(!1), B = L(null), { register: U, unregister: W, isDraft: te } = g();
3818
+ let { field: t, fieldName: n, value: r, onChange: o, mode: s, alt: f, disabled: p, visual: _, uploadFieldCode: v, uploadSlotCode: y } = e, S = h(r), [C, w] = R("idle"), [T, E] = R(null), [D, O] = R(null), [k, A] = R(null), [j, M] = R(!1), F = L(null), z = L(!1), B = L(null), { register: te, unregister: U, isDraft: ne } = g();
3809
3819
  P(() => () => {
3810
3820
  F.current && F.current.abort();
3811
3821
  }, []);
3812
- let G = I(() => u(S, f, t.display?.placeholder || n), [
3822
+ let W = I(() => u(S, f, t.display?.placeholder || n), [
3813
3823
  f,
3814
3824
  t.display?.placeholder,
3815
3825
  n,
3816
3826
  S
3817
- ]), ne = (t.accepts ?? ["image/*"]).join(","), re = N(async (r) => {
3827
+ ]), re = (t.accepts ?? ["image/*"]).join(","), ie = N(async (r) => {
3818
3828
  let s = ee(r, t.accepts, t.max_size_bytes);
3819
3829
  if (s) {
3820
3830
  O(s), w("error");
@@ -3851,10 +3861,10 @@ function xr(e) {
3851
3861
  onProgress: E
3852
3862
  });
3853
3863
  if (z.current) {
3854
- x(r.id).catch(() => {}), W(r.id);
3864
+ x(r.id).catch(() => {}), U(r.id);
3855
3865
  return;
3856
3866
  }
3857
- S && te(S.id) && (x(S.id).catch(() => {}), W(S.id)), U(r.id, () => x(r.id)), A(r.id), w("idle"), E(null);
3867
+ S && ne(S.id) && (x(S.id).catch(() => {}), U(S.id)), te(r.id, () => x(r.id)), A(r.id), w("idle"), E(null);
3858
3868
  let i = {
3859
3869
  id: r.id,
3860
3870
  filename: r.filename,
@@ -3886,48 +3896,48 @@ function xr(e) {
3886
3896
  n,
3887
3897
  o,
3888
3898
  e.entityCode,
3889
- U,
3890
3899
  te,
3900
+ ne,
3891
3901
  S,
3892
- W,
3902
+ U,
3893
3903
  v,
3894
3904
  y
3895
- ]), ie = N(() => {
3896
- C === "uploading" && F.current && (z.current = !0, F.current.abort(), F.current = null, w("idle"), E(null)), k && (x(k).catch(() => {}), W(k), A(null));
3905
+ ]), ae = N(() => {
3906
+ C === "uploading" && F.current && (z.current = !0, F.current.abort(), F.current = null, w("idle"), E(null)), k && (x(k).catch(() => {}), U(k), A(null));
3897
3907
  }, [
3898
3908
  C,
3899
3909
  k,
3900
- W
3901
- ]), ae = N(() => {
3902
- S && te(S.id) && (x(S.id).catch(() => {}), W(S.id), A(null)), o?.(t.mode === "array" ? [] : null);
3910
+ U
3911
+ ]), oe = N(() => {
3912
+ S && ne(S.id) && (x(S.id).catch(() => {}), U(S.id), A(null)), o?.(t.mode === "array" ? [] : null);
3903
3913
  }, [
3904
3914
  S,
3905
3915
  t.mode,
3906
- te,
3916
+ ne,
3907
3917
  o,
3908
- W
3909
- ]), K = N(() => {
3918
+ U
3919
+ ]), G = N(() => {
3910
3920
  O(null), w("idle"), B.current?.click();
3911
- }, []), q = N(() => {
3921
+ }, []), K = N(() => {
3912
3922
  p || B.current?.click();
3913
- }, [p]), J = N((e) => {
3914
- p || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), q());
3915
- }, [p, q]), Y = N((e) => {
3923
+ }, [p]), q = N((e) => {
3924
+ p || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), K());
3925
+ }, [p, K]), J = N((e) => {
3916
3926
  p || (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
3917
- }, [p]), X = N((e) => {
3927
+ }, [p]), Y = N((e) => {
3918
3928
  if (p) return;
3919
3929
  e.preventDefault();
3920
3930
  let t = e.dataTransfer.files?.[0];
3921
- t && re(t);
3922
- }, [p, re]), oe = N((e) => {
3931
+ t && ie(t);
3932
+ }, [p, ie]), se = N((e) => {
3923
3933
  let t = e.target.files?.[0];
3924
- e.target.value = "", t && re(t);
3925
- }, [re]), se = _.aspectRatio ?? wr(_.shape, t.display?.aspect_ratio), ce = m(S), le = {
3926
- aspectRatio: se,
3934
+ e.target.value = "", t && ie(t);
3935
+ }, [ie]), ce = _.aspectRatio ?? wr(_.shape, t.display?.aspect_ratio), le = m(S), ue = {
3936
+ aspectRatio: ce,
3927
3937
  width: _.width ?? (_.shape === "wide" ? "100%" : "120px")
3928
- }, ue = !!S, de = yr(S, t.display?.listable_thumbnail), fe = c(S, t.display?.listable_thumbnail), pe = d(S?.id, fe, de), me = s === "display", he = N((e) => {
3938
+ }, de = !!S, fe = yr(S, t.display?.listable_thumbnail), pe = c(S, t.display?.listable_thumbnail), me = d(S?.id, pe, fe), he = s === "display", ge = N((e) => {
3929
3939
  e.stopPropagation(), M((e) => !e);
3930
- }, []), ge = N((e) => {
3940
+ }, []), _e = N((e) => {
3931
3941
  if (!S || !j) return;
3932
3942
  let n = e.currentTarget.getBoundingClientRect(), r = n.width > 0 ? (e.clientX - n.left) / n.width : .5, i = n.height > 0 ? (e.clientY - n.top) / n.height : .5, a = l(S, {
3933
3943
  x: Math.max(0, Math.min(1, r)),
@@ -3940,54 +3950,54 @@ function xr(e) {
3940
3950
  j,
3941
3951
  o
3942
3952
  ]);
3943
- return me ? /* @__PURE__ */ V("div", {
3953
+ return he ? /* @__PURE__ */ V("div", {
3944
3954
  className: Sr(_.shape, !1),
3945
- style: le,
3946
- "aria-label": G,
3947
- children: ue && pe ? /* @__PURE__ */ V("img", {
3948
- src: pe,
3949
- alt: G,
3955
+ style: ue,
3956
+ "aria-label": W,
3957
+ children: de && me ? /* @__PURE__ */ V("img", {
3958
+ src: me,
3959
+ alt: W,
3950
3960
  className: Cr(_.shape),
3951
- style: { objectPosition: b(ce) },
3961
+ style: { objectPosition: b(le) },
3952
3962
  loading: "lazy"
3953
3963
  }) : /* @__PURE__ */ V(Er, {
3954
3964
  shape: _.shape,
3955
- label: G,
3965
+ label: W,
3956
3966
  placeholder: t.display?.placeholder
3957
3967
  })
3958
3968
  }) : /* @__PURE__ */ H("div", {
3959
3969
  className: Sr(_.shape, !p),
3960
- style: le,
3970
+ style: ue,
3961
3971
  tabIndex: p ? -1 : 0,
3962
3972
  role: "button",
3963
- "aria-label": G,
3973
+ "aria-label": W,
3964
3974
  "aria-disabled": p || void 0,
3965
3975
  "aria-busy": C === "uploading" || void 0,
3966
3976
  "aria-invalid": C === "error" || void 0,
3967
- onClick: C === "idle" && !ue ? q : void 0,
3968
- onMouseDown: j ? ge : void 0,
3969
- onKeyDown: J,
3970
- onDragOver: Y,
3971
- onDrop: X,
3977
+ onClick: C === "idle" && !de ? K : void 0,
3978
+ onMouseDown: j ? _e : void 0,
3979
+ onKeyDown: q,
3980
+ onDragOver: J,
3981
+ onDrop: Y,
3972
3982
  "data-testid": j ? "focal-point-target" : `file-widget-${n}`,
3973
3983
  children: [
3974
3984
  /* @__PURE__ */ V("input", {
3975
3985
  ref: B,
3976
3986
  type: "file",
3977
- accept: ne,
3978
- onChange: oe,
3987
+ accept: re,
3988
+ onChange: se,
3979
3989
  style: { display: "none" },
3980
3990
  "data-testid": `file-input-${n}`
3981
3991
  }),
3982
- ue && pe ? /* @__PURE__ */ V("img", {
3983
- src: pe,
3984
- alt: G,
3992
+ de && me ? /* @__PURE__ */ V("img", {
3993
+ src: me,
3994
+ alt: W,
3985
3995
  className: Cr(_.shape),
3986
- style: { objectPosition: b(ce) },
3996
+ style: { objectPosition: b(le) },
3987
3997
  loading: "lazy"
3988
3998
  }) : C === "uploading" ? null : /* @__PURE__ */ V(Er, {
3989
3999
  shape: _.shape,
3990
- label: G,
4000
+ label: W,
3991
4001
  placeholder: t.display?.placeholder
3992
4002
  }),
3993
4003
  C === "uploading" && /* @__PURE__ */ V(Dr, { pct: T?.pct ?? 0 }),
@@ -3996,13 +4006,13 @@ function xr(e) {
3996
4006
  "aria-hidden": "true",
3997
4007
  "data-testid": "draft-indicator"
3998
4008
  }),
3999
- ue && C === "idle" && !p && /* @__PURE__ */ H("div", {
4009
+ de && C === "idle" && !p && /* @__PURE__ */ H("div", {
4000
4010
  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",
4001
4011
  children: [
4002
4012
  t.display?.focal_point && /* @__PURE__ */ V("button", {
4003
4013
  type: "button",
4004
4014
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4005
- onClick: he,
4015
+ onClick: ge,
4006
4016
  "data-testid": "focal-point-toggle",
4007
4017
  children: j ? "Cancel focus" : "Set focus"
4008
4018
  }),
@@ -4010,7 +4020,7 @@ function xr(e) {
4010
4020
  type: "button",
4011
4021
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4012
4022
  onClick: (e) => {
4013
- e.stopPropagation(), q();
4023
+ e.stopPropagation(), K();
4014
4024
  },
4015
4025
  children: "Change"
4016
4026
  }),
@@ -4018,17 +4028,17 @@ function xr(e) {
4018
4028
  type: "button",
4019
4029
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-destructive hover:bg-surface-2",
4020
4030
  onClick: (e) => {
4021
- e.stopPropagation(), ae();
4031
+ e.stopPropagation(), oe();
4022
4032
  },
4023
4033
  children: "Remove"
4024
4034
  })
4025
4035
  ]
4026
4036
  }),
4027
- ce && ue && /* @__PURE__ */ V("span", {
4037
+ le && de && /* @__PURE__ */ V("span", {
4028
4038
  className: "absolute h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full border border-white bg-black/70",
4029
4039
  style: {
4030
- left: `${ce.x * 100}%`,
4031
- top: `${ce.y * 100}%`
4040
+ left: `${le.x * 100}%`,
4041
+ top: `${le.y * 100}%`
4032
4042
  },
4033
4043
  "data-testid": "focal-point-marker"
4034
4044
  }),
@@ -4036,7 +4046,7 @@ function xr(e) {
4036
4046
  type: "button",
4037
4047
  className: "absolute bottom-1 right-1 rounded-sm border border-border bg-card px-2 py-0.5 text-xs",
4038
4048
  onClick: (e) => {
4039
- e.stopPropagation(), ie();
4049
+ e.stopPropagation(), ae();
4040
4050
  },
4041
4051
  "data-testid": "cancel-upload",
4042
4052
  children: "Cancel"
@@ -4052,7 +4062,7 @@ function xr(e) {
4052
4062
  type: "button",
4053
4063
  className: "underline",
4054
4064
  onClick: (e) => {
4055
- e.stopPropagation(), K();
4065
+ e.stopPropagation(), G();
4056
4066
  },
4057
4067
  "data-testid": "retry-upload",
4058
4068
  children: "Retry"
@@ -4183,13 +4193,13 @@ function Pr({ contentType: e }) {
4183
4193
  });
4184
4194
  }
4185
4195
  function Fr(e) {
4186
- let { field: t, fieldName: n, value: r, onChange: s, mode: c, disabled: l, uploadFieldCode: u, uploadSlotCode: d } = e, f = h(r), [m, y] = R("idle"), [b, S] = R(null), [w, T] = R(null), [E, D] = R(!1), [O, k] = R(f?.filename ?? ""), A = L(null), j = L(!1), M = L(null), { register: F, unregister: I, isDraft: z } = g(), { open: U } = v();
4196
+ let { field: t, fieldName: n, value: r, onChange: s, mode: c, disabled: l, uploadFieldCode: u, uploadSlotCode: d } = e, f = h(r), [m, y] = R("idle"), [b, S] = R(null), [w, T] = R(null), [E, D] = R(!1), [O, k] = R(f?.filename ?? ""), A = L(null), j = L(!1), M = L(null), { register: F, unregister: I, isDraft: z } = g(), { open: te } = v();
4187
4197
  P(() => () => {
4188
4198
  A.current && A.current.abort();
4189
4199
  }, []), P(() => {
4190
4200
  k(f?.filename ?? "");
4191
4201
  }, [f?.filename]);
4192
- let W = (t.accepts ?? []).join(","), te = N(async (r) => {
4202
+ let U = (t.accepts ?? []).join(","), ne = N(async (r) => {
4193
4203
  let o = ee(r, t.accepts, t.max_size_bytes);
4194
4204
  if (o) {
4195
4205
  T(o), y("error");
@@ -4251,12 +4261,12 @@ function Fr(e) {
4251
4261
  I,
4252
4262
  u,
4253
4263
  d
4254
- ]), G = N(() => {
4264
+ ]), W = N(() => {
4255
4265
  l || M.current?.click();
4256
- }, [l]), ne = N((e) => {
4266
+ }, [l]), re = N((e) => {
4257
4267
  let t = e.target.files?.[0];
4258
- e.target.value = "", t && te(t);
4259
- }, [te]), re = N(() => {
4268
+ e.target.value = "", t && ne(t);
4269
+ }, [ne]), ie = N(() => {
4260
4270
  f && z(f.id) && (x(f.id).catch(() => {}), I(f.id)), s?.(t.mode === "array" ? [] : null);
4261
4271
  }, [
4262
4272
  f,
@@ -4264,13 +4274,13 @@ function Fr(e) {
4264
4274
  z,
4265
4275
  s,
4266
4276
  I
4267
- ]), ie = N(() => {
4277
+ ]), ae = N(() => {
4268
4278
  m === "uploading" && A.current && (j.current = !0, A.current.abort(), A.current = null, y("idle"), S(null));
4269
- }, [m]), ae = N(() => {
4270
- f && U(f.id, "download", p(f));
4271
- }, [f, U]), K = f ? o(f) : !1, q = N(() => {
4272
- !f || !o(f) || U(f.id, "preview", _(f));
4273
- }, [f, U]), J = N(() => {
4279
+ }, [m]), oe = N(() => {
4280
+ f && te(f.id, "download", p(f));
4281
+ }, [f, te]), G = f ? o(f) : !1, K = N(() => {
4282
+ !f || !o(f) || te(f.id, "preview", _(f));
4283
+ }, [f, te]), q = N(() => {
4274
4284
  if (!f) {
4275
4285
  D(!1);
4276
4286
  return;
@@ -4290,7 +4300,7 @@ function Fr(e) {
4290
4300
  f,
4291
4301
  s,
4292
4302
  t.mode
4293
- ]), Y = c === "display";
4303
+ ]), J = c === "display";
4294
4304
  return !f && m !== "uploading" ? /* @__PURE__ */ H("div", {
4295
4305
  "data-testid": `file-widget-${n}`,
4296
4306
  className: "flex items-center gap-3 rounded-md border border-dashed border-border bg-surface p-3",
@@ -4301,20 +4311,20 @@ function Fr(e) {
4301
4311
  children: [/* @__PURE__ */ V("span", {
4302
4312
  className: "text-sm text-foreground",
4303
4313
  children: t.display?.placeholder || "No document attached"
4304
- }), !Y && /* @__PURE__ */ V("button", {
4314
+ }), !J && /* @__PURE__ */ V("button", {
4305
4315
  type: "button",
4306
4316
  className: "self-start rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4307
- onClick: G,
4317
+ onClick: W,
4308
4318
  disabled: l,
4309
4319
  "data-testid": "upload",
4310
4320
  children: "Upload"
4311
4321
  })]
4312
4322
  }),
4313
- !Y && /* @__PURE__ */ V("input", {
4323
+ !J && /* @__PURE__ */ V("input", {
4314
4324
  ref: M,
4315
4325
  type: "file",
4316
- accept: W || void 0,
4317
- onChange: ne,
4326
+ accept: U || void 0,
4327
+ onChange: re,
4318
4328
  style: { display: "none" },
4319
4329
  "data-testid": `file-input-${n}`
4320
4330
  }),
@@ -4340,16 +4350,16 @@ function Fr(e) {
4340
4350
  value: O,
4341
4351
  autoFocus: !0,
4342
4352
  onChange: (e) => k(e.target.value),
4343
- onBlur: J,
4353
+ onBlur: q,
4344
4354
  onKeyDown: (e) => {
4345
- e.key === "Enter" ? J() : e.key === "Escape" && (D(!1), k(f.filename));
4355
+ e.key === "Enter" ? q() : e.key === "Escape" && (D(!1), k(f.filename));
4346
4356
  },
4347
4357
  "data-testid": "filename-input"
4348
4358
  }) : /* @__PURE__ */ V("button", {
4349
4359
  type: "button",
4350
4360
  className: "truncate text-left text-sm font-medium text-foreground hover:underline",
4351
- onClick: () => !Y && f && D(!0),
4352
- disabled: Y || l || !f,
4361
+ onClick: () => !J && f && D(!0),
4362
+ disabled: J || l || !f,
4353
4363
  title: f?.filename,
4354
4364
  "data-testid": "filename",
4355
4365
  children: f?.filename ?? "Uploading…"
@@ -4393,30 +4403,30 @@ function Fr(e) {
4393
4403
  /* @__PURE__ */ V("button", {
4394
4404
  type: "button",
4395
4405
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4396
- onClick: ae,
4406
+ onClick: oe,
4397
4407
  "data-testid": "download",
4398
4408
  children: "Download"
4399
4409
  }),
4400
4410
  /* @__PURE__ */ V("button", {
4401
4411
  type: "button",
4402
4412
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50",
4403
- onClick: q,
4404
- disabled: !K,
4405
- title: K ? void 0 : "Preview is available only for images and PDFs",
4413
+ onClick: K,
4414
+ disabled: !G,
4415
+ title: G ? void 0 : "Preview is available only for images and PDFs",
4406
4416
  "data-testid": "preview",
4407
4417
  children: "Preview"
4408
4418
  }),
4409
- !Y && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("button", {
4419
+ !J && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("button", {
4410
4420
  type: "button",
4411
4421
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-foreground hover:bg-surface-2",
4412
- onClick: G,
4422
+ onClick: W,
4413
4423
  disabled: l,
4414
4424
  "data-testid": "replace",
4415
4425
  children: "Replace"
4416
4426
  }), /* @__PURE__ */ V("button", {
4417
4427
  type: "button",
4418
4428
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs text-destructive hover:bg-surface-2",
4419
- onClick: re,
4429
+ onClick: ie,
4420
4430
  disabled: l,
4421
4431
  "data-testid": "remove",
4422
4432
  children: "Remove"
@@ -4424,16 +4434,16 @@ function Fr(e) {
4424
4434
  ] }), m === "uploading" && /* @__PURE__ */ V("button", {
4425
4435
  type: "button",
4426
4436
  className: "rounded-sm border border-border bg-card px-2 py-1 text-xs",
4427
- onClick: ie,
4437
+ onClick: ae,
4428
4438
  "data-testid": "cancel-upload",
4429
4439
  children: "Cancel"
4430
4440
  })]
4431
4441
  }),
4432
- !Y && /* @__PURE__ */ V("input", {
4442
+ !J && /* @__PURE__ */ V("input", {
4433
4443
  ref: M,
4434
4444
  type: "file",
4435
- accept: W || void 0,
4436
- onChange: ne,
4445
+ accept: U || void 0,
4446
+ onChange: re,
4437
4447
  style: { display: "none" },
4438
4448
  "data-testid": `file-input-${n}`
4439
4449
  })
@@ -4743,7 +4753,7 @@ function Ur(e) {
4743
4753
  //#region src/components/file-widgets/builtins.ts
4744
4754
  var Wr = !1;
4745
4755
  function Gr() {
4746
- Wr ||= (fr("square_image", Or), fr("circle_image", kr), fr("wide_banner", Ar), fr("grid", Nr), fr("document_card", Fr), fr("file_list", Rr), fr("labeled_slots", Ur), !0);
4756
+ Wr ||= (Q("square_image", Or), Q("circle_image", kr), Q("wide_banner", Ar), Q("grid", Nr), Q("document_card", Fr), Q("file_list", Rr), Q("labeled_slots", Ur), !0);
4747
4757
  }
4748
4758
  //#endregion
4749
4759
  //#region src/components/file-widgets/host.tsx
@@ -4767,7 +4777,7 @@ function Xr(e, t, n) {
4767
4777
  let r = Kr(e, t);
4768
4778
  if (r) return r.name || t;
4769
4779
  let i = e.fields.get(t);
4770
- return i ? $e(i, t, n) : t;
4780
+ return i ? et(i, t, n) : t;
4771
4781
  }
4772
4782
  function Zr(e) {
4773
4783
  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 = Kr(t, r);
@@ -4965,7 +4975,7 @@ function ci(e) {
4965
4975
  }
4966
4976
  }
4967
4977
  };
4968
- return s === "display" ? j ? /* @__PURE__ */ V(an, {
4978
+ return s === "display" ? j ? /* @__PURE__ */ V(bn, {
4969
4979
  content: j,
4970
4980
  files: A.files
4971
4981
  }) : /* @__PURE__ */ V("span", {
@@ -4974,7 +4984,7 @@ function ci(e) {
4974
4984
  color: "var(--text-4)"
4975
4985
  },
4976
4986
  children: "—"
4977
- }) : u ? /* @__PURE__ */ V(Z, {
4987
+ }) : u ? /* @__PURE__ */ V(X, {
4978
4988
  id: d,
4979
4989
  name: r,
4980
4990
  "aria-required": t.required || void 0,
@@ -4995,10 +5005,10 @@ function ci(e) {
4995
5005
  flexWrap: "wrap"
4996
5006
  },
4997
5007
  children: [
4998
- /* @__PURE__ */ V(J, {
5008
+ /* @__PURE__ */ V(q, {
4999
5009
  kind: "ghost",
5000
5010
  size: "xs",
5001
- icon: V(_ > 0 ? De : q.plus, { size: 12 }),
5011
+ icon: V(_ > 0 ? Oe : K.plus, { size: 12 }),
5002
5012
  onClick: () => p.current?.click(),
5003
5013
  disabled: !n || !t.files || _ > 0,
5004
5014
  children: _ > 0 ? "Uploading…" : "Insert file"
@@ -5080,7 +5090,7 @@ function ci(e) {
5080
5090
  marginBottom: 8
5081
5091
  },
5082
5092
  children: "Preview"
5083
- }), j ? /* @__PURE__ */ V(an, {
5093
+ }), j ? /* @__PURE__ */ V(bn, {
5084
5094
  content: j,
5085
5095
  files: A.files
5086
5096
  }) : /* @__PURE__ */ V("span", {
@@ -5125,7 +5135,7 @@ var di = () => (e) => {
5125
5135
  return (e) => {
5126
5136
  if (e == null) return "—";
5127
5137
  let t = !!e;
5128
- return /* @__PURE__ */ V(X, {
5138
+ return /* @__PURE__ */ V(Y, {
5129
5139
  tone: t ? "emerald" : "slate",
5130
5140
  size: "xs",
5131
5141
  children: t ? i.trueLabel : i.falseLabel
@@ -5134,10 +5144,10 @@ var di = () => (e) => {
5134
5144
  };
5135
5145
  function pi(e, t, n) {
5136
5146
  if (e.display?.bool_labels) return {
5137
- trueLabel: Q(e.display.bool_labels.true, n) || "Yes",
5138
- falseLabel: Q(e.display.bool_labels.false, n) || "No"
5147
+ trueLabel: Z(e.display.bool_labels.true, n) || "Yes",
5148
+ falseLabel: Z(e.display.bool_labels.false, n) || "No"
5139
5149
  };
5140
- let r = e.display?.name ? Q(e.display.name, n) : "";
5150
+ let r = e.display?.name ? Z(e.display.name, n) : "";
5141
5151
  if (r.startsWith("Is ")) {
5142
5152
  let e = r.slice(3).trim();
5143
5153
  return {
@@ -5193,10 +5203,10 @@ var _i = (e) => {
5193
5203
  let { field: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
5194
5204
  if (t.values) for (let e of t.values) r.set(e.code, {
5195
5205
  tone: gi(e.color),
5196
- label: Q(e.name, n) || e.code
5206
+ label: Z(e.name, n) || e.code
5197
5207
  });
5198
5208
  if (t.display?.value_map) for (let [e, i] of Object.entries(t.display.value_map)) {
5199
- let t = r.get(e), a = i.color ? gi(i.color) : t?.tone ?? "slate", o = (i.label ? Q(i.label, n) : "") || t?.label || e;
5209
+ let t = r.get(e), a = i.color ? gi(i.color) : t?.tone ?? "slate", o = (i.label ? Z(i.label, n) : "") || t?.label || e;
5200
5210
  r.set(e, {
5201
5211
  tone: a,
5202
5212
  label: o
@@ -5205,7 +5215,7 @@ var _i = (e) => {
5205
5215
  return (e) => {
5206
5216
  if (e == null || e === "") return "—";
5207
5217
  let t = String(e), n = r.get(t);
5208
- return /* @__PURE__ */ V(X, {
5218
+ return /* @__PURE__ */ V(Y, {
5209
5219
  tone: n?.tone ?? "slate",
5210
5220
  size: "xs",
5211
5221
  children: n?.label ?? t
@@ -5228,12 +5238,12 @@ var bi = (e) => {
5228
5238
  let { entity: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
5229
5239
  if (t?.status_groups) for (let e of Object.values(t.status_groups)) for (let t of e.statuses) r.set(t.code, {
5230
5240
  tone: yi(t.color),
5231
- label: Q(t.name, n) || t.code
5241
+ label: Z(t.name, n) || t.code
5232
5242
  });
5233
5243
  return (e) => {
5234
5244
  if (e == null || e === "") return "—";
5235
5245
  let t = String(e), n = r.get(t);
5236
- return /* @__PURE__ */ V(X, {
5246
+ return /* @__PURE__ */ V(Y, {
5237
5247
  tone: n?.tone ?? "slate",
5238
5248
  size: "xs",
5239
5249
  children: n?.label ?? t
@@ -5255,7 +5265,7 @@ function Si(e) {
5255
5265
  var Ci = (e) => {
5256
5266
  let { field: t, locale: n = "en" } = e, r = /* @__PURE__ */ new Map();
5257
5267
  if (t.display?.value_map) for (let [e, i] of Object.entries(t.display.value_map)) r.set(e, {
5258
- label: i.label && Q(i.label, n) || e,
5268
+ label: i.label && Z(i.label, n) || e,
5259
5269
  tone: Si(i.color)
5260
5270
  });
5261
5271
  return (e) => !Array.isArray(e) || e.length === 0 ? "—" : /* @__PURE__ */ V("span", {
@@ -5266,41 +5276,41 @@ var Ci = (e) => {
5266
5276
  },
5267
5277
  children: e.map((e, t) => {
5268
5278
  let n = String(e), i = r.get(n);
5269
- return i?.tone ? /* @__PURE__ */ V(X, {
5279
+ return i?.tone ? /* @__PURE__ */ V(Y, {
5270
5280
  tone: i.tone,
5271
5281
  size: "xs",
5272
5282
  children: i.label
5273
- }, `${n}-${t}`) : /* @__PURE__ */ V(_e, { children: i?.label ?? n }, `${n}-${t}`);
5283
+ }, `${n}-${t}`) : /* @__PURE__ */ V(ve, { children: i?.label ?? n }, `${n}-${t}`);
5274
5284
  })
5275
5285
  });
5276
5286
  }, wi = () => (e) => {
5277
5287
  if (e == null || e === "") return "—";
5278
- let { text: t, absolute: n } = jn(typeof e == "string" ? e : String(e));
5288
+ let { text: t, absolute: n } = Mn(typeof e == "string" ? e : String(e));
5279
5289
  return /* @__PURE__ */ V("span", {
5280
5290
  title: n,
5281
5291
  children: t
5282
5292
  });
5283
- }, Ti = () => (e) => e == null || e === "" ? "—" : An(typeof e == "string" ? e : String(e)), Ei = 60 * 1e3, Di = 300 * 1e3, Oi = () => (e) => {
5293
+ }, Ti = () => (e) => e == null || e === "" ? "—" : jn(typeof e == "string" ? e : String(e)), Ei = 60 * 1e3, Di = 300 * 1e3, Oi = () => (e) => {
5284
5294
  if (e == null || e === "") return "—";
5285
5295
  let t = typeof e == "string" ? e : String(e), n = new Date(t);
5286
5296
  if (isNaN(n.getTime())) return t;
5287
- let r = An(t), i = Date.now() - n.getTime();
5297
+ let r = jn(t), i = Date.now() - n.getTime();
5288
5298
  if (i <= 0) return /* @__PURE__ */ H("span", {
5289
5299
  title: r,
5290
- children: ["in ", ne(n, /* @__PURE__ */ new Date(), { addSuffix: !1 })]
5300
+ children: ["in ", re(n, /* @__PURE__ */ new Date(), { addSuffix: !1 })]
5291
5301
  });
5292
5302
  if (i <= Ei) return /* @__PURE__ */ V("span", {
5293
5303
  title: r,
5294
- children: /* @__PURE__ */ V(X, {
5304
+ children: /* @__PURE__ */ V(Y, {
5295
5305
  tone: "slate",
5296
5306
  size: "xs",
5297
5307
  children: "due"
5298
5308
  })
5299
5309
  });
5300
- let a = ne(n, /* @__PURE__ */ new Date(), { addSuffix: !1 });
5310
+ let a = re(n, /* @__PURE__ */ new Date(), { addSuffix: !1 });
5301
5311
  return /* @__PURE__ */ V("span", {
5302
5312
  title: r,
5303
- children: /* @__PURE__ */ H(X, {
5313
+ children: /* @__PURE__ */ H(Y, {
5304
5314
  tone: i <= Di ? "amber" : "rose",
5305
5315
  size: "xs",
5306
5316
  children: ["overdue ", a]
@@ -5338,7 +5348,7 @@ function ji(e, t, n) {
5338
5348
  //#region src/components/fields/cells/factories/refLink.tsx
5339
5349
  var Mi = (e) => {
5340
5350
  let { field: t, entities: n, screens: r, refs: i, navigate: a, surface: o } = e, s = t.ref?.entity, c = s ? n?.[s] : void 0, l = typeof i == "function" ? i : () => i, u = o === "detail", d = c?.display?.icon, f = t.display?.ref_display_field ?? t.ref?.display?.field ?? c?.display?.display_field, p = c?.detail_screen, m = (p ? r?.[p] : void 0)?.route, h = (e) => (t) => {
5341
- t.stopPropagation(), !en(t) && (t.preventDefault(), a?.(e));
5351
+ t.stopPropagation(), !tn(t) && (t.preventDefault(), a?.(e));
5342
5352
  };
5343
5353
  return (e, t) => {
5344
5354
  if (e == null || e === "") return "—";
@@ -5350,7 +5360,7 @@ var Mi = (e) => {
5350
5360
  display: "flex",
5351
5361
  flexShrink: 0
5352
5362
  },
5353
- children: /* @__PURE__ */ V(tn, {
5363
+ children: /* @__PURE__ */ V(nn, {
5354
5364
  name: d,
5355
5365
  size: 13
5356
5366
  })
@@ -5402,7 +5412,7 @@ var Mi = (e) => {
5402
5412
  };
5403
5413
  function Ni(e, t, n, r) {
5404
5414
  let i = t && n ? n[t]?.[e] : void 0;
5405
- return i ? Ye(i, r, e) : e;
5415
+ return i ? Xe(i, r, e) : e;
5406
5416
  }
5407
5417
  //#endregion
5408
5418
  //#region src/components/fields/cells/factories/url-helpers.ts
@@ -5576,7 +5586,7 @@ var $i = {
5576
5586
  objectFit: "contain"
5577
5587
  };
5578
5588
  function ea({ domain: e }) {
5579
- let t = Qt((e) => e.faviconSource), n = e ? e.toLowerCase() : "", r = n ? Zi[n] : void 0;
5589
+ let t = $t((e) => e.faviconSource), n = e ? e.toLowerCase() : "", r = n ? Zi[n] : void 0;
5580
5590
  if (r) return /* @__PURE__ */ V(r, {});
5581
5591
  let i = Qi(n, t);
5582
5592
  return i ? /* @__PURE__ */ V(ta, { src: i }) : /* @__PURE__ */ V(Ui, {});
@@ -5629,7 +5639,7 @@ var $ = /* @__PURE__ */ V("span", {
5629
5639
  children: [
5630
5640
  /* @__PURE__ */ V(ea, { domain: r }),
5631
5641
  i,
5632
- /* @__PURE__ */ V(q.external, { size: 11 })
5642
+ /* @__PURE__ */ V(K.external, { size: 11 })
5633
5643
  ]
5634
5644
  });
5635
5645
  }, aa = {
@@ -5727,7 +5737,7 @@ var ha = (e) => {
5727
5737
  title: t,
5728
5738
  className: "mono",
5729
5739
  style: va,
5730
- children: [t, /* @__PURE__ */ V(q.external, { size: 11 })]
5740
+ children: [t, /* @__PURE__ */ V(K.external, { size: 11 })]
5731
5741
  });
5732
5742
  }, xa = 400, Sa = 2e3;
5733
5743
  function Ca(e) {
@@ -5765,7 +5775,7 @@ function Ea(e, t) {
5765
5775
  var Da = (e) => {
5766
5776
  let t = e.surface ?? "detail", n = Ca(e.field.display?.list_preview?.max_chars);
5767
5777
  return (r) => {
5768
- if (Jn(r)) return $;
5778
+ if (Yn(r)) return $;
5769
5779
  if (t === "list") {
5770
5780
  let e = Ea(r, n);
5771
5781
  return /* @__PURE__ */ V("span", {
@@ -5774,7 +5784,7 @@ var Da = (e) => {
5774
5784
  children: e
5775
5785
  });
5776
5786
  }
5777
- return /* @__PURE__ */ V(Yn, {
5787
+ return /* @__PURE__ */ V(Xn, {
5778
5788
  field: e.field,
5779
5789
  fieldName: e.fieldName,
5780
5790
  value: r,
@@ -5863,7 +5873,7 @@ function ka(e) {
5863
5873
  //#endregion
5864
5874
  //#region src/components/fields/cells/factories/markdown.tsx
5865
5875
  function Aa(e) {
5866
- return /* @__PURE__ */ V(an, { content: e });
5876
+ return /* @__PURE__ */ V(bn, { content: e });
5867
5877
  }
5868
5878
  var ja = (e) => {
5869
5879
  let t = e.surface === "list";
@@ -5875,7 +5885,7 @@ var ja = (e) => {
5875
5885
  return i ? /* @__PURE__ */ V("span", {
5876
5886
  title: r,
5877
5887
  children: r
5878
- }) : /* @__PURE__ */ V(ge, {
5888
+ }) : /* @__PURE__ */ V(_e, {
5879
5889
  content: Aa(n),
5880
5890
  children: /* @__PURE__ */ V("span", {
5881
5891
  title: r,
@@ -5901,7 +5911,7 @@ var ja = (e) => {
5901
5911
  //#endregion
5902
5912
  //#region src/components/fields/cells/factories/richTextPreview.tsx
5903
5913
  function Ia(e, t) {
5904
- return /* @__PURE__ */ V(an, {
5914
+ return /* @__PURE__ */ V(bn, {
5905
5915
  content: e,
5906
5916
  files: t
5907
5917
  });
@@ -5916,7 +5926,7 @@ var La = (e) => {
5916
5926
  return s ? /* @__PURE__ */ V("span", {
5917
5927
  title: o,
5918
5928
  children: o
5919
- }) : /* @__PURE__ */ V(ge, {
5929
+ }) : /* @__PURE__ */ V(_e, {
5920
5930
  content: Ia(a.markdown, a.files),
5921
5931
  children: /* @__PURE__ */ V("span", {
5922
5932
  title: o,
@@ -5995,37 +6005,37 @@ function Ua(e) {
5995
6005
  //#endregion
5996
6006
  //#region src/components/fields/index.tsx
5997
6007
  var Wa = {
5998
- string: Sn,
5999
- text: Cn,
6008
+ string: Cn,
6009
+ text: wn,
6000
6010
  rich_text: ci,
6001
- int: Vn,
6002
- float: Vn,
6003
- decimal: Vn,
6004
- bool: Rn,
6005
- timestamp: Ln,
6006
- date: Ln,
6007
- time: Ln,
6008
- enum: Tn,
6009
- email: En,
6010
- url: Dn,
6011
- phone: On,
6012
- uuid: Sn,
6013
- bytes: Sn,
6014
- ref: Gn,
6015
- json: Yn,
6016
- tags: Sn,
6017
- string_array: cr,
6018
- int_array: ur,
6019
- uuid_array: cr,
6020
- multilang: Zn,
6021
- multilang_text: $n,
6022
- structure: er,
6023
- secret: ir,
6024
- password: or
6011
+ int: Hn,
6012
+ float: Hn,
6013
+ decimal: Hn,
6014
+ bool: zn,
6015
+ timestamp: Rn,
6016
+ date: Rn,
6017
+ time: Rn,
6018
+ enum: En,
6019
+ email: Dn,
6020
+ url: On,
6021
+ phone: kn,
6022
+ uuid: Cn,
6023
+ bytes: Cn,
6024
+ ref: Kn,
6025
+ json: Xn,
6026
+ tags: Cn,
6027
+ string_array: lr,
6028
+ int_array: dr,
6029
+ uuid_array: lr,
6030
+ multilang: Qn,
6031
+ multilang_text: er,
6032
+ structure: tr,
6033
+ secret: ar,
6034
+ password: sr
6025
6035
  };
6026
- for (let e of bn) if (!Wa[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.`);
6036
+ for (let e of xn) if (!Wa[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.`);
6027
6037
  function Ga(e) {
6028
- if (e.field.type === "json" && e.field.structure) return /* @__PURE__ */ V(er, { ...e });
6038
+ if (e.field.type === "json" && e.field.structure) return /* @__PURE__ */ V(tr, { ...e });
6029
6039
  if (e.mode === "edit") {
6030
6040
  let t = Wa[e.field.type];
6031
6041
  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.`);
@@ -6053,7 +6063,7 @@ function qa() {
6053
6063
  if (e) return e.split("-")[0] || void 0;
6054
6064
  }
6055
6065
  function Ja() {
6056
- let e = jt((e) => e.user), { data: t } = Mt(), n = e?.language;
6066
+ let e = Mt((e) => e.user), { data: t } = Nt(), n = e?.language;
6057
6067
  if (n && n.trim()) return n;
6058
6068
  let r = t?.languages?.[0]?.code;
6059
6069
  return r && r.trim() ? r : qa() || Ka;
@@ -6080,6 +6090,6 @@ var Ya = {
6080
6090
  verticalAlign: "middle"
6081
6091
  };
6082
6092
  //#endregion
6083
- export { Ot as $, q as $t, ln as A, Ue as At, an as B, we as Bt, Un as C, Qe as Ct, xn as D, He as Dt, kn as E, ke as Et, cn as F, We as Ft, Qt as G, ge as Gt, $t as H, Se as Ht, sn as I, Oe as It, At as J, se as Jt, Mt as K, le as Kt, yn as L, De as Lt, fn as M, Ve as Mt, vn as N, je as Nt, hn as O, Be as Ot, mn as P, Z as Pt, Dt as Q, J as Qt, pn as R, Ee as Rt, Wn as S, ct as St, An as T, Ie as Tt, en as U, ye as Ut, tn as V, Ce as Vt, qt as W, _e as Wt, xt as X, X as Xt, vt as Y, oe as Yt, kt as Z, Y as Zt, vr as _, it as _t, Ga as a, Ct as at, mr as b, at as bt, oi as c, ut as ct, Zr as d, rt as dt, ae as en, Tt as et, Xr as f, $e as ft, Or as g, Q as gt, kr as h, ft as ht, Ja as i, Et as it, dn as j, Fe as jt, _n as k, Ge as kt, Kr as l, dt as lt, Ar as m, nt as mt, Xa as n, yt as nt, Ua as o, qe as ot, Yr as p, Je as pt, jt as q, ce as qt, Ya as r, bt as rt, ai as s, lt as st, Za as t, St as tt, Jr as u, tt as ut, _r as v, st as vt, Hn as w, Ke as wt, fr as x, et as xt, pr as y, ot as yt, un as z, Te as zt };
6093
+ export { kt as $, K as $t, hn as A, We as At, cn as B, Te as Bt, Wn as C, $e as Ct, Sn as D, Ue as Dt, An as E, Ae as Et, fn as F, Ge as Ft, $t as G, _e as Gt, en as H, Ce as Ht, on as I, ke as It, jt as J, ce as Jt, Nt as K, ue as Kt, an as L, Oe as Lt, ln as M, He as Mt, un as N, Me as Nt, bn as O, Ve as Ot, gn as P, X as Pt, Ot as Q, q as Qt, _n as R, De as Rt, Gn as S, lt as St, jn as T, Le as Tt, tn as U, be as Ut, nn as V, we as Vt, Jt as W, ve as Wt, St as X, Y as Xt, yt as Y, se as Yt, At as Z, J as Zt, vr as _, at as _t, Ga as a, wt as at, mr as b, ot as bt, oi as c, dt as ct, Zr as d, it as dt, oe as en, Et as et, Xr as f, et as ft, Or as g, Z as gt, kr as h, pt as ht, Ja as i, Dt as it, sn as j, Ie as jt, pn as k, Ke as kt, Kr as l, ft as lt, Ar as m, rt as mt, Xa as n, bt as nt, Ua as o, Je as ot, Yr as p, Ye as pt, Mt as q, le as qt, Ya as r, xt as rt, ai as s, ut as st, Za as t, Ct as tt, Jr as u, nt as ut, _r as v, ct as vt, Un as w, qe as wt, Q as x, tt as xt, pr as y, st as yt, dn as z, Ee as zt };
6084
6094
 
6085
- //# sourceMappingURL=dataTableStyles-DQdH4Ilw.js.map
6095
+ //# sourceMappingURL=dataTableStyles-ChRNMLAZ.js.map