@golemui/gui-shared 1.1.1-rc.1 → 1.1.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,607 +1,207 @@
1
- import { GuiItemTypes as y, createShortcutType as u, processAutoLabel as d, processAutoPlaceholder as m, extractWidgetProps as r, buildTypedValidator as c, createGslSelector as Te, eventWiringService as pe, withForm as le, createItemTypeRegistry as ge, registerShortcutType as be, defineShortcutType as _e, createDxService as Ie, createResolveFormInput as Se } from "@golemui/dx";
1
+ import { createShortcutType as u, processAutoLabel as d, processAutoPlaceholder as m, extractWidgetProps as p, buildTypedValidator as c, eventWiringService as ye, withForm as pe, createGslSelector as Ie, createItemTypeRegistry as _e, registerShortcutType as ke, defineShortcutType as Se, GuiItemTypes as y, createSelectors as Ae, createImplementation as Ee } from "@golemui/dx";
2
2
  import "@golemui/core";
3
- function et(e, t, s) {
4
- if (typeof t == "function") {
5
- const i = t;
6
- return {
7
- items: [{ key: e, def: (l) => ({ type: "text", ...i(l) }) }],
8
- type: "ITEMS",
9
- itemType: y.INPUTS,
10
- tags: s ?? []
11
- };
3
+ function he(e) {
4
+ switch (e.type) {
5
+ case "text":
6
+ return De(e);
7
+ case "number":
8
+ return Pe(e);
9
+ case "boolean":
10
+ return Ue(e);
11
+ default:
12
+ throw new Error(`Unsupported field type "${e.type}"`);
12
13
  }
13
- const a = { type: "text", ...t };
14
+ }
15
+ function Ue(e) {
16
+ const t = p(e);
14
17
  return {
15
- items: [{ key: e, def: a }],
16
- type: "ITEMS",
17
- itemType: y.INPUTS,
18
- tags: s ?? []
18
+ uid: e.uid ?? "",
19
+ kind: "input",
20
+ type: "toggle",
21
+ path: e.path ?? "",
22
+ ...e.label != null ? { label: e.label } : {},
23
+ ...e.disabled != null ? { disabled: e.disabled } : {},
24
+ ...e.readonly != null ? { readonly: e.readonly } : {},
25
+ ...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
26
+ props: t
19
27
  };
20
28
  }
21
- function tt(e, t, s) {
22
- if (typeof t == "function") {
23
- const i = t;
24
- return {
25
- items: [{ key: e, def: (l) => ({ type: "number", ...i(l) }) }],
26
- type: "ITEMS",
27
- itemType: y.INPUTS,
28
- tags: s ?? []
29
- };
30
- }
31
- const a = { type: "number", ...t };
29
+ function De(e) {
30
+ const t = p(e);
32
31
  return {
33
- items: [{ key: e, def: a }],
34
- type: "ITEMS",
35
- itemType: y.INPUTS,
36
- tags: s ?? []
32
+ uid: e.uid ?? "",
33
+ kind: "input",
34
+ type: "textinput",
35
+ path: e.path ?? "",
36
+ ...e.label != null ? { label: e.label } : {},
37
+ ...e.disabled != null ? { disabled: e.disabled } : {},
38
+ ...e.readonly != null ? { readonly: e.readonly } : {},
39
+ props: {
40
+ placeholder: t.placeholder ?? "",
41
+ ...t
42
+ },
43
+ validator: c(e.validator, "string")
37
44
  };
38
45
  }
39
- function st(e, t, s) {
40
- if (typeof t == "function") {
41
- const i = t;
42
- return {
43
- items: [{ key: e, def: (l) => ({ type: "boolean", ...i(l) }) }],
44
- type: "ITEMS",
45
- itemType: y.INPUTS,
46
- tags: s ?? []
47
- };
48
- }
49
- const a = { type: "boolean", ...t };
46
+ function Pe(e) {
47
+ const t = p(e);
50
48
  return {
51
- items: [{ key: e, def: a }],
52
- type: "ITEMS",
53
- itemType: y.INPUTS,
54
- tags: s ?? []
49
+ uid: e.uid ?? "",
50
+ kind: "input",
51
+ type: "number",
52
+ path: e.path ?? "",
53
+ ...e.label != null ? { label: e.label } : {},
54
+ ...e.disabled != null ? { disabled: e.disabled } : {},
55
+ ...e.readonly != null ? { readonly: e.readonly } : {},
56
+ props: {
57
+ placeholder: t.placeholder ?? "",
58
+ ...t
59
+ },
60
+ validator: c(e.validator, "number")
55
61
  };
56
62
  }
57
- function at(e, t, s) {
58
- if (typeof t == "function") {
59
- const n = t;
60
- return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: (o) => ({ type: "select", ...n(o) }) }], tags: s ?? [] };
61
- }
62
- const a = { type: "select", ...t };
63
- return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: a }], tags: s ?? [] };
64
- }
65
- function it(e, t, s) {
66
- if (typeof t == "function") {
67
- const n = t;
68
- return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: (o) => ({
69
- type: "dropdown",
70
- ...n(o)
71
- }) }], tags: s ?? [] };
72
- }
73
- const a = { type: "dropdown", ...t };
74
- return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
75
- }
76
- function nt(e, t, s) {
77
- if (typeof t == "function") {
78
- const n = t;
79
- return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: (o) => ({ type: "radiogroup", ...n(o) }) }], tags: s ?? [] };
80
- }
81
- const a = { type: "radiogroup", ...t };
82
- return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: a }], tags: s ?? [] };
83
- }
84
- function lt(e, t, s) {
85
- if (typeof t == "function") {
86
- const n = t;
87
- return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: (o) => ({ type: "checkbox", ...n(o) }) }], tags: s ?? [] };
88
- }
89
- const a = { type: "checkbox", ...t };
90
- return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: a }], tags: s ?? [] };
63
+ const k = u({
64
+ itemType: "INPUTS",
65
+ kind: "input",
66
+ entryShape: "keyed",
67
+ sensibleDefaults: {
68
+ base: {
69
+ suppressAutomaticLabels: !1,
70
+ suppressAutomaticPlaceholders: !1
71
+ },
72
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
73
+ apply: (e, t) => {
74
+ let s = d(e, t);
75
+ return s = m(s, t), s;
76
+ }
77
+ },
78
+ mapToWidget: he
79
+ }), b = k.gsl, Me = k.gslByUid;
80
+ function Be(e) {
81
+ const {
82
+ uid: t,
83
+ label: s,
84
+ actionType: a,
85
+ disabled: i,
86
+ on: n,
87
+ onClick: l,
88
+ data: r,
89
+ type: o,
90
+ tags: T,
91
+ size: g,
92
+ include: ge,
93
+ exclude: be,
94
+ states: re,
95
+ ...I
96
+ } = e;
97
+ return {
98
+ uid: t ?? "",
99
+ kind: "action",
100
+ type: "button",
101
+ disabled: i,
102
+ actionType: a,
103
+ label: s,
104
+ ...n != null ? { on: n } : {},
105
+ props: I
106
+ };
91
107
  }
92
- function ot(e, t, s) {
93
- if (typeof t == "function") {
94
- const n = t;
95
- return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: (o) => ({ type: "textarea", ...n(o) }) }], tags: s ?? [] };
96
- }
97
- const a = { type: "textarea", ...t };
98
- return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: a }], tags: s ?? [] };
108
+ const S = u({
109
+ itemType: "ACTIONS",
110
+ kind: "action",
111
+ entryShape: "bare",
112
+ mapToWidget: Be,
113
+ afterMerge: (e, t) => ye.extractOnClickFromMergeResult(
114
+ e,
115
+ t.eventRegistry,
116
+ t.eventIdGenerator
117
+ )
118
+ }), Re = S.gsl, Le = S.gslByUid;
119
+ function ve(e) {
120
+ const {
121
+ uid: t,
122
+ widgetName: s,
123
+ tags: a,
124
+ size: i,
125
+ onChange: n,
126
+ include: l,
127
+ exclude: r,
128
+ ...o
129
+ } = e, { on: T, ...g } = o;
130
+ return {
131
+ uid: t ?? "",
132
+ kind: "layout",
133
+ type: s ?? "flex",
134
+ props: {
135
+ direction: g.direction ?? "column",
136
+ ...g
137
+ },
138
+ children: []
139
+ };
99
140
  }
100
- function ut(e, t, s) {
101
- if (typeof t == "function") {
102
- const n = t;
103
- return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: (o) => ({ type: "password", ...n(o) }) }], tags: s ?? [] };
104
- }
105
- const a = { type: "password", ...t };
106
- return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: a }], tags: s ?? [] };
141
+ function fe(e, t) {
142
+ const s = t.walkChildren(t.children ?? []);
143
+ if (e.kind === "static")
144
+ return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: s };
145
+ const a = e.fn;
146
+ return ((i) => {
147
+ const n = a(i);
148
+ return { ...t.mapStaticDef(n, "LAYOUTS"), children: s };
149
+ });
107
150
  }
108
- function pt(e, t, s) {
109
- if (typeof t == "function") {
110
- const n = t;
111
- return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: (o) => ({ type: "currency", ...n(o) }) }], tags: s ?? [] };
112
- }
113
- const a = { type: "currency", ...t };
114
- return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: a }], tags: s ?? [] };
151
+ function Ce(e) {
152
+ return e.children;
115
153
  }
116
- function rt(e, t, s) {
117
- if (typeof t == "function") {
118
- const n = t;
119
- return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: (o) => ({ type: "markdown", ...n(o) }) }], tags: s ?? [] };
120
- }
121
- const a = { type: "markdown", ...t };
122
- return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
154
+ const A = u({
155
+ itemType: "LAYOUTS",
156
+ kind: "layout",
157
+ entryShape: "compound",
158
+ mapToWidget: ve,
159
+ buildCustomWidget: fe,
160
+ getChildren: Ce
161
+ }), Ne = A.gsl, We = A.gslByUid;
162
+ function we(e) {
163
+ return {
164
+ uid: "",
165
+ kind: "display",
166
+ type: "renderer",
167
+ props: { render: e.render }
168
+ };
123
169
  }
124
- function dt(e, t, s) {
125
- if (typeof t == "function") {
126
- const n = t;
127
- return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: (o) => ({ type: "list", ...n(o) }) }], tags: s ?? [] };
170
+ function xe(e, t) {
171
+ if (e.kind === "static") {
172
+ const a = e.def;
173
+ return ((i) => ({
174
+ uid: "",
175
+ kind: "display",
176
+ type: "renderer",
177
+ ...a.include != null ? { include: a.include } : {},
178
+ ...a.exclude != null ? { exclude: a.exclude } : {},
179
+ props: { render: a.render(pe(i)) }
180
+ }));
128
181
  }
129
- const a = { type: "list", ...t };
130
- return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: a }], tags: s ?? [] };
131
- }
132
- function ct(e, t, s) {
133
- if (typeof t == "function") {
134
- const i = t;
182
+ const s = e.fn;
183
+ return ((a) => {
184
+ const i = s(a);
135
185
  return {
136
- items: [(l) => ({
137
- type: "calendar",
138
- path: e,
139
- ...i(l)
140
- })],
141
- type: "ITEMS",
142
- itemType: "CALENDAR",
143
- tags: s ?? []
186
+ uid: "",
187
+ kind: "display",
188
+ type: "renderer",
189
+ ...i.include != null ? { include: i.include } : {},
190
+ ...i.exclude != null ? { exclude: i.exclude } : {},
191
+ props: { render: i.render(pe(a)) }
144
192
  };
145
- }
146
- return {
147
- items: [{ type: "calendar", path: e, ...t }],
148
- type: "ITEMS",
149
- itemType: "CALENDAR",
150
- tags: s ?? []
151
- };
152
- }
153
- function yt(e, t, s) {
154
- if (typeof t == "function") {
155
- const i = t;
156
- return {
157
- items: [(l) => ({
158
- type: "dateTimeCalendar",
159
- path: e,
160
- ...i(l)
161
- })],
162
- type: "ITEMS",
163
- itemType: "DATE_TIME_CALENDAR",
164
- tags: s ?? []
165
- };
166
- }
167
- return {
168
- items: [{ type: "dateTimeCalendar", path: e, ...t }],
169
- type: "ITEMS",
170
- itemType: "DATE_TIME_CALENDAR",
171
- tags: s ?? []
172
- };
173
- }
174
- function mt(e, t, s) {
175
- if (typeof t == "function") {
176
- const n = t;
177
- return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (o) => ({ type: "dateInput", ...n(o) }) }], tags: s ?? [] };
178
- }
179
- const a = { type: "dateInput", ...t };
180
- return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
181
- }
182
- function Tt(e, t, s) {
183
- if (typeof t == "function") {
184
- const n = t;
185
- return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (o) => ({
186
- type: "datePicker",
187
- ...n(o)
188
- }) }], tags: s ?? [] };
189
- }
190
- const a = { type: "datePicker", ...t };
191
- return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
192
- }
193
- function gt(e, t, s) {
194
- if (typeof t == "function") {
195
- const n = t;
196
- return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
197
- type: "dateTimePicker",
198
- ...n(o)
199
- }) }], tags: s ?? [] };
200
- }
201
- const a = { type: "dateTimePicker", ...t };
202
- return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
203
- }
204
- function bt(e, t, s) {
205
- if (typeof t == "function") {
206
- const n = t;
207
- return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (o) => ({
208
- type: "rangeCalendar",
209
- ...n(o)
210
- }) }], tags: s ?? [] };
211
- }
212
- const a = { type: "rangeCalendar", ...t };
213
- return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
214
- }
215
- function _t(e, t, s) {
216
- if (typeof t == "function") {
217
- const n = t;
218
- return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (o) => ({
219
- type: "rangeDateInput",
220
- ...n(o)
221
- }) }], tags: s ?? [] };
222
- }
223
- const a = { type: "rangeDateInput", ...t };
224
- return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
225
- }
226
- function It(e, t, s) {
227
- if (typeof t == "function") {
228
- const n = t;
229
- return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
230
- type: "rangeDateTimeInput",
231
- ...n(o)
232
- }) }], tags: s ?? [] };
233
- }
234
- const a = { type: "rangeDateTimeInput", ...t };
235
- return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
236
- }
237
- function St(e, t, s) {
238
- if (typeof t == "function") {
239
- const n = t;
240
- return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: (o) => ({
241
- type: "rangeDateTimeCalendar",
242
- ...n(o)
243
- }) }], tags: s ?? [] };
244
- }
245
- const a = { type: "rangeDateTimeCalendar", ...t };
246
- return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
247
- }
248
- function At(e, t, s) {
249
- if (typeof t == "function") {
250
- const n = t;
251
- return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
252
- type: "rangeDateTimePicker",
253
- ...n(o)
254
- }) }], tags: s ?? [] };
255
- }
256
- const a = { type: "rangeDateTimePicker", ...t };
257
- return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
258
- }
259
- function Et(e, t, s) {
260
- if (typeof t == "function") {
261
- const n = t;
262
- return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: (o) => ({
263
- type: "rangeTimeInput",
264
- ...n(o)
265
- }) }], tags: s ?? [] };
266
- }
267
- const a = { type: "rangeTimeInput", ...t };
268
- return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
269
- }
270
- function ht(e, t, s) {
271
- if (typeof t == "function") {
272
- const n = t;
273
- return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (o) => ({
274
- type: "rangeDatePicker",
275
- ...n(o)
276
- }) }], tags: s ?? [] };
277
- }
278
- const a = { type: "rangeDatePicker", ...t };
279
- return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
280
- }
281
- function kt(e, t, s) {
282
- if (typeof t == "function") {
283
- const n = t;
284
- return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: (o) => ({
285
- type: "rangeTimePicker",
286
- ...n(o)
287
- }) }], tags: s ?? [] };
288
- }
289
- const a = { type: "rangeTimePicker", ...t };
290
- return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
291
- }
292
- function Dt(e, t, s) {
293
- if (typeof t == "function") {
294
- const n = t;
295
- return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: (o) => ({ type: "timeInput", ...n(o) }) }], tags: s ?? [] };
296
- }
297
- const a = { type: "timeInput", ...t };
298
- return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
299
- }
300
- function Pt(e, t, s) {
301
- if (typeof t == "function") {
302
- const n = t;
303
- return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: (o) => ({
304
- type: "timePicker",
305
- ...n(o)
306
- }) }], tags: s ?? [] };
307
- }
308
- const a = { type: "timePicker", ...t };
309
- return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
310
- }
311
- function Mt(e, t, s) {
312
- if (typeof t == "function") {
313
- const n = t;
314
- return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
315
- type: "dateTimeInput",
316
- ...n(o)
317
- }) }], tags: s ?? [] };
318
- }
319
- const a = { type: "dateTimeInput", ...t };
320
- return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
321
- }
322
- function Ut(e, t, s, a) {
323
- if (typeof s == "function") {
324
- const l = s;
325
- return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (T) => ({
326
- customType: e,
327
- ...l(T)
328
- }) }], tags: a ?? [] };
329
- }
330
- const i = { customType: e, ...s };
331
- return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: i }], tags: a ?? [] };
332
- }
333
- function Rt(e, t) {
334
- return {
335
- items: [e],
336
- type: "ITEMS",
337
- itemType: y.ACTIONS,
338
- tags: t ?? []
339
- };
340
- }
341
- function Lt(e, t, s) {
342
- if (typeof t == "function") {
343
- const n = t;
344
- return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
345
- (p) => ({ customType: e, ...n(p) })
346
- ], tags: s ?? [] };
347
- }
348
- return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: s ?? [] };
349
- }
350
- const Ae = (e, t) => ({
351
- type: "ITEMS",
352
- itemType: y.DISPLAYS,
353
- items: [{ render: e }],
354
- tags: t ?? []
355
- });
356
- function vt(e, t) {
357
- return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
358
- }
359
- function ft(e, t) {
360
- return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
361
- }
362
- function Bt(e, t, s) {
363
- if (typeof t == "function") {
364
- const p = t;
365
- return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
366
- (T) => ({ customType: e, ...p(T) })
367
- ], tags: s ?? [] };
368
- }
369
- const { uid: a, ...i } = t ?? {};
370
- return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [{
371
- customType: e,
372
- ...a != null ? { uid: a } : {},
373
- props: Object.keys(i).length > 0 ? i : void 0
374
- }], tags: s ?? [] };
375
- }
376
- const re = (e, t, s) => ({
377
- type: "ITEMS",
378
- itemType: y.LAYOUTS,
379
- items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
380
- tags: s ?? []
381
- }), Nt = (e, t, s) => re(e, { direction: "row", ...t ?? {} }, s), Ct = (e, t, s) => re(e, { direction: "column", ...t ?? {} }, s), de = (e, t, s) => ({
382
- type: "ITEMS",
383
- itemType: y.LAYOUTS,
384
- items: [
385
- {
386
- def: {
387
- widgetName: "grid",
388
- direction: "row",
389
- autoFit: !0,
390
- ...t ?? {}
391
- },
392
- children: e
393
- }
394
- ],
395
- tags: s ?? []
396
- }), Wt = (e, t, s) => de(e, { direction: "row", ...t ?? {} }, s), wt = (e, t, s) => de(e, { direction: "column", ...t ?? {} }, s);
397
- function oe(e) {
398
- return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
399
- }
400
- function xt(e, t, s) {
401
- const a = e.map((l) => ({
402
- label: l.label,
403
- uid: l.uid ?? oe(l.label)
404
- })), i = e.map((l) => ({
405
- type: "ITEMS",
406
- itemType: y.LAYOUTS,
407
- items: [
408
- {
409
- def: { uid: l.uid ?? oe(l.label), direction: "column", widgetName: "flex" },
410
- children: l.children
411
- }
412
- ],
413
- tags: []
414
- }));
415
- return {
416
- type: "ITEMS",
417
- itemType: "TABS",
418
- items: [{ def: {
419
- tabs: a,
420
- ...t
421
- }, children: i }],
422
- tags: s ?? []
423
- };
424
- }
425
- function ue(e) {
426
- return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
193
+ });
427
194
  }
428
- function Gt(e, t, s) {
429
- const a = e.map((l) => ({
430
- label: l.label,
431
- uid: l.uid ?? ue(l.label)
432
- })), i = e.map((l) => ({
433
- type: "ITEMS",
434
- itemType: y.LAYOUTS,
435
- items: [
436
- {
437
- def: { uid: l.uid ?? ue(l.label), direction: "column", widgetName: "flex" },
438
- children: l.children
439
- }
440
- ],
441
- tags: []
442
- }));
443
- return {
444
- type: "ITEMS",
445
- itemType: "ACCORDION",
446
- items: [{ def: {
447
- sections: a,
448
- ...t
449
- }, children: i }],
450
- tags: s ?? []
451
- };
452
- }
453
- function Kt(e, t, s, a) {
454
- if (typeof s == "function") {
455
- const l = s;
456
- return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (T) => ({
457
- customType: e,
458
- ...l(T)
459
- }), children: t }], tags: a ?? [] };
460
- }
461
- return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...s }, children: t }], tags: a ?? [] };
462
- }
463
- function Yt(e, t, s) {
464
- const { template: a, ...i } = t;
465
- return {
466
- type: "ITEMS",
467
- itemType: "REPEATER",
468
- items: [{ key: e, def: i, children: a }],
469
- tags: s ?? []
470
- };
471
- }
472
- function $t(e, t, s) {
473
- if (typeof t == "function") {
474
- const n = t;
475
- return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (o) => ({ type: "tags", ...n(o) }) }], tags: s ?? [] };
476
- }
477
- const a = { type: "tags", ...t };
478
- return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: a }], tags: s ?? [] };
479
- }
480
- function Ee(e) {
481
- switch (e.type) {
482
- case "text":
483
- return ke(e);
484
- case "number":
485
- return De(e);
486
- case "boolean":
487
- return he(e);
488
- default:
489
- throw new Error(`Unsupported field type "${e.type}"`);
490
- }
491
- }
492
- function he(e) {
493
- const t = r(e);
494
- return {
495
- uid: e.uid ?? "",
496
- kind: "input",
497
- type: "toggle",
498
- path: e.path ?? "",
499
- ...e.label != null ? { label: e.label } : {},
500
- ...e.disabled != null ? { disabled: e.disabled } : {},
501
- ...e.readonly != null ? { readonly: e.readonly } : {},
502
- ...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
503
- props: t
504
- };
505
- }
506
- function ke(e) {
507
- const t = r(e);
508
- return {
509
- uid: e.uid ?? "",
510
- kind: "input",
511
- type: "textinput",
512
- path: e.path ?? "",
513
- ...e.label != null ? { label: e.label } : {},
514
- ...e.disabled != null ? { disabled: e.disabled } : {},
515
- ...e.readonly != null ? { readonly: e.readonly } : {},
516
- props: {
517
- placeholder: t.placeholder ?? "",
518
- ...t
519
- },
520
- validator: c(e.validator, "string")
521
- };
522
- }
523
- function De(e) {
524
- const t = r(e);
525
- return {
526
- uid: e.uid ?? "",
527
- kind: "input",
528
- type: "number",
529
- path: e.path ?? "",
530
- ...e.label != null ? { label: e.label } : {},
531
- ...e.disabled != null ? { disabled: e.disabled } : {},
532
- ...e.readonly != null ? { readonly: e.readonly } : {},
533
- props: {
534
- placeholder: t.placeholder ?? "",
535
- ...t
536
- },
537
- validator: c(e.validator, "number")
538
- };
539
- }
540
- const I = u({
541
- itemType: "INPUTS",
542
- kind: "input",
543
- entryShape: "keyed",
544
- sensibleDefaults: {
545
- base: {
546
- suppressAutomaticLabels: !1,
547
- suppressAutomaticPlaceholders: !1
548
- },
549
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
550
- apply: (e, t) => {
551
- let s = d(e, t);
552
- return s = m(s, t), s;
553
- }
554
- },
555
- mapToWidget: Ee
556
- }), S = I.gsl, zt = I.gslByUid, Ft = (e) => S(e, (t) => t.type === "text"), Ot = (e) => S(e, (t) => t.type === "number"), Xt = (e) => S(e, (t) => t.type === "boolean"), A = u(
557
- {
558
- itemType: "SELECT",
559
- kind: "input",
560
- entryShape: "keyed",
561
- sensibleDefaults: {
562
- base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
563
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
564
- apply: (e, t) => m(d(e, t), t)
565
- },
566
- mapToWidget: (e) => ({
567
- uid: e.uid ?? "",
568
- kind: "input",
569
- type: "select",
570
- path: e.path ?? "",
571
- ...e.label != null ? { label: e.label } : {},
572
- ...e.disabled != null ? { disabled: e.disabled } : {},
573
- ...e.readonly != null ? { readonly: e.readonly } : {},
574
- ...e.validator != null ? { validator: e.validator } : {},
575
- props: r(e)
576
- })
577
- }
578
- ), Ht = A.gsl, Vt = A.gslByUid, E = u({
579
- itemType: "DROPDOWN",
580
- kind: "input",
581
- entryShape: "keyed",
582
- sensibleDefaults: {
583
- base: {
584
- suppressAutomaticLabels: !1,
585
- suppressAutomaticPlaceholders: !1
586
- },
587
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
588
- apply: (e, t) => m(d(e, t), t)
589
- },
590
- mapToWidget: (e) => ({
591
- uid: e.uid ?? "",
592
- kind: "input",
593
- type: "dropdown",
594
- path: e.path ?? "",
595
- ...e.label != null ? { label: e.label } : {},
596
- ...e.disabled != null ? { disabled: e.disabled } : {},
597
- ...e.readonly != null ? { readonly: e.readonly } : {},
598
- ...e.validator != null ? { validator: e.validator } : {},
599
- props: r(e)
600
- })
601
- }), jt = E.gsl, qt = E.gslByUid, h = u({
602
- itemType: "RADIOGROUP",
195
+ const E = u({
196
+ itemType: "DISPLAYS",
197
+ kind: "display",
198
+ entryShape: "bare",
199
+ mapToWidget: we,
200
+ buildCustomWidget: xe
201
+ }), Ge = E.gsl, Ke = E.gslByUid, h = u({
202
+ itemType: "CALENDAR",
603
203
  kind: "input",
604
- entryShape: "keyed",
204
+ entryShape: "bare",
605
205
  sensibleDefaults: {
606
206
  base: { suppressAutomaticLabels: !1 },
607
207
  fields: ["suppressAutomaticLabels"],
@@ -610,18 +210,18 @@ const I = u({
610
210
  mapToWidget: (e) => ({
611
211
  uid: e.uid ?? "",
612
212
  kind: "input",
613
- type: "radiogroup",
213
+ type: "calendar",
614
214
  path: e.path ?? "",
615
215
  ...e.label != null ? { label: e.label } : {},
616
216
  ...e.disabled != null ? { disabled: e.disabled } : {},
617
217
  ...e.readonly != null ? { readonly: e.readonly } : {},
618
- ...e.validator != null ? { validator: e.validator } : {},
619
- props: r(e)
218
+ ...e.validator != null ? { validator: c(e.validator, "string") } : {},
219
+ props: p(e)
620
220
  })
621
- }), Jt = h.gsl, Qt = h.gslByUid, k = u({
622
- itemType: "CHECKBOX",
221
+ }), Ye = h.gsl, $e = h.gslByUid, U = u({
222
+ itemType: "DATE_TIME_CALENDAR",
623
223
  kind: "input",
624
- entryShape: "keyed",
224
+ entryShape: "bare",
625
225
  sensibleDefaults: {
626
226
  base: { suppressAutomaticLabels: !1 },
627
227
  fields: ["suppressAutomaticLabels"],
@@ -630,56 +230,39 @@ const I = u({
630
230
  mapToWidget: (e) => ({
631
231
  uid: e.uid ?? "",
632
232
  kind: "input",
633
- type: "checkbox",
634
- path: e.path ?? "",
635
- ...e.label != null ? { label: e.label } : {},
636
- ...e.disabled != null ? { disabled: e.disabled } : {},
637
- ...e.readonly != null ? { readonly: e.readonly } : {},
638
- ...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
639
- props: r(e)
640
- })
641
- }), Zt = k.gsl, es = k.gslByUid, D = u({
642
- itemType: "TEXTAREA",
643
- kind: "input",
644
- entryShape: "keyed",
645
- sensibleDefaults: {
646
- base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
647
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
648
- apply: (e, t) => m(d(e, t), t)
649
- },
650
- mapToWidget: (e) => ({
651
- uid: e.uid ?? "",
652
- kind: "input",
653
- type: "textarea",
233
+ type: "dateTimeCalendar",
654
234
  path: e.path ?? "",
655
235
  ...e.label != null ? { label: e.label } : {},
656
236
  ...e.disabled != null ? { disabled: e.disabled } : {},
657
237
  ...e.readonly != null ? { readonly: e.readonly } : {},
658
238
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
659
- props: r(e)
239
+ props: p(e)
660
240
  })
661
- }), ts = D.gsl, ss = D.gslByUid, P = u({
662
- itemType: "PASSWORD",
241
+ }), Fe = U.gsl, ze = U.gslByUid, D = u({
242
+ itemType: "DATE_TIME_PICKER",
663
243
  kind: "input",
664
244
  entryShape: "keyed",
665
245
  sensibleDefaults: {
666
- base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
246
+ base: {
247
+ suppressAutomaticLabels: !1,
248
+ suppressAutomaticPlaceholders: !1
249
+ },
667
250
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
668
251
  apply: (e, t) => m(d(e, t), t)
669
252
  },
670
253
  mapToWidget: (e) => ({
671
254
  uid: e.uid ?? "",
672
255
  kind: "input",
673
- type: "password",
256
+ type: "dateTimePicker",
674
257
  path: e.path ?? "",
675
258
  ...e.label != null ? { label: e.label } : {},
676
259
  ...e.disabled != null ? { disabled: e.disabled } : {},
677
260
  ...e.readonly != null ? { readonly: e.readonly } : {},
678
261
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
679
- props: r(e)
262
+ props: p(e)
680
263
  })
681
- }), as = P.gsl, is = P.gslByUid, M = u({
682
- itemType: "CURRENCY",
264
+ }), Oe = D.gsl, Xe = D.gslByUid, P = u({
265
+ itemType: "TEXTAREA",
683
266
  kind: "input",
684
267
  entryShape: "keyed",
685
268
  sensibleDefaults: {
@@ -690,16 +273,16 @@ const I = u({
690
273
  mapToWidget: (e) => ({
691
274
  uid: e.uid ?? "",
692
275
  kind: "input",
693
- type: "currency",
276
+ type: "textarea",
694
277
  path: e.path ?? "",
695
278
  ...e.label != null ? { label: e.label } : {},
696
279
  ...e.disabled != null ? { disabled: e.disabled } : {},
697
280
  ...e.readonly != null ? { readonly: e.readonly } : {},
698
- ...e.validator != null ? { validator: c(e.validator, "number") } : {},
699
- props: r(e)
281
+ ...e.validator != null ? { validator: c(e.validator, "string") } : {},
282
+ props: p(e)
700
283
  })
701
- }), ns = M.gsl, ls = M.gslByUid, U = u({
702
- itemType: "MARKDOWN",
284
+ }), He = P.gsl, Ve = P.gslByUid, M = u({
285
+ itemType: "PASSWORD",
703
286
  kind: "input",
704
287
  entryShape: "keyed",
705
288
  sensibleDefaults: {
@@ -710,16 +293,16 @@ const I = u({
710
293
  mapToWidget: (e) => ({
711
294
  uid: e.uid ?? "",
712
295
  kind: "input",
713
- type: "markdown",
296
+ type: "password",
714
297
  path: e.path ?? "",
715
298
  ...e.label != null ? { label: e.label } : {},
716
299
  ...e.disabled != null ? { disabled: e.disabled } : {},
717
300
  ...e.readonly != null ? { readonly: e.readonly } : {},
718
301
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
719
- props: r(e)
302
+ props: p(e)
720
303
  })
721
- }), os = U.gsl, us = U.gslByUid, R = u({
722
- itemType: "LIST",
304
+ }), je = M.gsl, qe = M.gslByUid, B = u({
305
+ itemType: "CHECKBOX",
723
306
  kind: "input",
724
307
  entryShape: "keyed",
725
308
  sensibleDefaults: {
@@ -730,18 +313,18 @@ const I = u({
730
313
  mapToWidget: (e) => ({
731
314
  uid: e.uid ?? "",
732
315
  kind: "input",
733
- type: "list",
316
+ type: "checkbox",
734
317
  path: e.path ?? "",
735
318
  ...e.label != null ? { label: e.label } : {},
736
319
  ...e.disabled != null ? { disabled: e.disabled } : {},
737
320
  ...e.readonly != null ? { readonly: e.readonly } : {},
738
- ...e.validator != null ? { validator: e.validator } : {},
739
- props: r(e)
321
+ ...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
322
+ props: p(e)
740
323
  })
741
- }), ps = R.gsl, rs = R.gslByUid, L = u({
742
- itemType: "CALENDAR",
324
+ }), Je = B.gsl, Qe = B.gslByUid, R = u({
325
+ itemType: "DATE_INPUT",
743
326
  kind: "input",
744
- entryShape: "bare",
327
+ entryShape: "keyed",
745
328
  sensibleDefaults: {
746
329
  base: { suppressAutomaticLabels: !1 },
747
330
  fields: ["suppressAutomaticLabels"],
@@ -750,18 +333,18 @@ const I = u({
750
333
  mapToWidget: (e) => ({
751
334
  uid: e.uid ?? "",
752
335
  kind: "input",
753
- type: "calendar",
336
+ type: "dateInput",
754
337
  path: e.path ?? "",
755
338
  ...e.label != null ? { label: e.label } : {},
756
339
  ...e.disabled != null ? { disabled: e.disabled } : {},
757
340
  ...e.readonly != null ? { readonly: e.readonly } : {},
758
341
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
759
- props: r(e)
342
+ props: p(e)
760
343
  })
761
- }), ds = L.gsl, cs = L.gslByUid, v = u({
762
- itemType: "DATE_TIME_CALENDAR",
344
+ }), Ze = R.gsl, et = R.gslByUid, L = u({
345
+ itemType: "TIME_INPUT",
763
346
  kind: "input",
764
- entryShape: "bare",
347
+ entryShape: "keyed",
765
348
  sensibleDefaults: {
766
349
  base: { suppressAutomaticLabels: !1 },
767
350
  fields: ["suppressAutomaticLabels"],
@@ -770,81 +353,78 @@ const I = u({
770
353
  mapToWidget: (e) => ({
771
354
  uid: e.uid ?? "",
772
355
  kind: "input",
773
- type: "dateTimeCalendar",
356
+ type: "timeInput",
774
357
  path: e.path ?? "",
775
358
  ...e.label != null ? { label: e.label } : {},
776
359
  ...e.disabled != null ? { disabled: e.disabled } : {},
777
360
  ...e.readonly != null ? { readonly: e.readonly } : {},
778
361
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
779
- props: r(e)
362
+ props: p(e)
780
363
  })
781
- }), ys = v.gsl, ms = v.gslByUid, f = u({
782
- itemType: "DATE_INPUT",
364
+ }), tt = L.gsl, st = L.gslByUid, v = u({
365
+ itemType: "TIME_PICKER",
783
366
  kind: "input",
784
367
  entryShape: "keyed",
785
368
  sensibleDefaults: {
786
- base: { suppressAutomaticLabels: !1 },
787
- fields: ["suppressAutomaticLabels"],
788
- apply: (e, t) => d(e, t)
369
+ base: {
370
+ suppressAutomaticLabels: !1,
371
+ suppressAutomaticPlaceholders: !1
372
+ },
373
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
374
+ apply: (e, t) => m(d(e, t), t)
789
375
  },
790
376
  mapToWidget: (e) => ({
791
377
  uid: e.uid ?? "",
792
378
  kind: "input",
793
- type: "dateInput",
379
+ type: "timePicker",
794
380
  path: e.path ?? "",
795
381
  ...e.label != null ? { label: e.label } : {},
796
382
  ...e.disabled != null ? { disabled: e.disabled } : {},
797
383
  ...e.readonly != null ? { readonly: e.readonly } : {},
798
384
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
799
- props: r(e)
385
+ props: p(e)
800
386
  })
801
- }), Ts = f.gsl, gs = f.gslByUid, B = u({
802
- itemType: "DATE_PICKER",
387
+ }), at = v.gsl, it = v.gslByUid, f = u({
388
+ itemType: "DATE_TIME_INPUT",
803
389
  kind: "input",
804
390
  entryShape: "keyed",
805
391
  sensibleDefaults: {
806
- base: {
807
- suppressAutomaticLabels: !1,
808
- suppressAutomaticPlaceholders: !1
809
- },
810
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
811
- apply: (e, t) => m(d(e, t), t)
392
+ base: { suppressAutomaticLabels: !1 },
393
+ fields: ["suppressAutomaticLabels"],
394
+ apply: (e, t) => d(e, t)
812
395
  },
813
396
  mapToWidget: (e) => ({
814
397
  uid: e.uid ?? "",
815
398
  kind: "input",
816
- type: "datePicker",
399
+ type: "dateTimeInput",
817
400
  path: e.path ?? "",
818
401
  ...e.label != null ? { label: e.label } : {},
819
402
  ...e.disabled != null ? { disabled: e.disabled } : {},
820
403
  ...e.readonly != null ? { readonly: e.readonly } : {},
821
404
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
822
- props: r(e)
405
+ props: p(e)
823
406
  })
824
- }), bs = B.gsl, _s = B.gslByUid, N = u({
825
- itemType: "DATE_TIME_PICKER",
407
+ }), nt = f.gsl, lt = f.gslByUid, C = u({
408
+ itemType: "CURRENCY",
826
409
  kind: "input",
827
410
  entryShape: "keyed",
828
411
  sensibleDefaults: {
829
- base: {
830
- suppressAutomaticLabels: !1,
831
- suppressAutomaticPlaceholders: !1
832
- },
412
+ base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
833
413
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
834
414
  apply: (e, t) => m(d(e, t), t)
835
415
  },
836
416
  mapToWidget: (e) => ({
837
417
  uid: e.uid ?? "",
838
418
  kind: "input",
839
- type: "dateTimePicker",
419
+ type: "currency",
840
420
  path: e.path ?? "",
841
421
  ...e.label != null ? { label: e.label } : {},
842
422
  ...e.disabled != null ? { disabled: e.disabled } : {},
843
423
  ...e.readonly != null ? { readonly: e.readonly } : {},
844
- ...e.validator != null ? { validator: c(e.validator, "string") } : {},
845
- props: r(e)
424
+ ...e.validator != null ? { validator: c(e.validator, "number") } : {},
425
+ props: p(e)
846
426
  })
847
- }), Is = N.gsl, Ss = N.gslByUid, C = u({
427
+ }), ot = C.gsl, ut = C.gslByUid, N = u({
848
428
  itemType: "RANGE_CALENDAR",
849
429
  kind: "input",
850
430
  entryShape: "keyed",
@@ -862,12 +442,34 @@ const I = u({
862
442
  ...e.disabled != null ? { disabled: e.disabled } : {},
863
443
  ...e.readonly != null ? { readonly: e.readonly } : {},
864
444
  ...e.validator != null ? { validator: c(e.validator, "array") } : {},
865
- props: r(e)
445
+ props: p(e)
866
446
  })
867
- }), As = C.gsl, Es = C.gslByUid, W = u({
868
- itemType: "RANGE_DATE_INPUT",
869
- kind: "input",
870
- entryShape: "keyed",
447
+ }), rt = N.gsl, pt = N.gslByUid, W = u(
448
+ {
449
+ itemType: "SELECT",
450
+ kind: "input",
451
+ entryShape: "keyed",
452
+ sensibleDefaults: {
453
+ base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
454
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
455
+ apply: (e, t) => m(d(e, t), t)
456
+ },
457
+ mapToWidget: (e) => ({
458
+ uid: e.uid ?? "",
459
+ kind: "input",
460
+ type: "select",
461
+ path: e.path ?? "",
462
+ ...e.label != null ? { label: e.label } : {},
463
+ ...e.disabled != null ? { disabled: e.disabled } : {},
464
+ ...e.readonly != null ? { readonly: e.readonly } : {},
465
+ ...e.validator != null ? { validator: e.validator } : {},
466
+ props: p(e)
467
+ })
468
+ }
469
+ ), dt = W.gsl, ct = W.gslByUid, w = u({
470
+ itemType: "RADIOGROUP",
471
+ kind: "input",
472
+ entryShape: "keyed",
871
473
  sensibleDefaults: {
872
474
  base: { suppressAutomaticLabels: !1 },
873
475
  fields: ["suppressAutomaticLabels"],
@@ -876,16 +478,50 @@ const I = u({
876
478
  mapToWidget: (e) => ({
877
479
  uid: e.uid ?? "",
878
480
  kind: "input",
879
- type: "rangeDateInput",
481
+ type: "radiogroup",
880
482
  path: e.path ?? "",
881
483
  ...e.label != null ? { label: e.label } : {},
882
484
  ...e.disabled != null ? { disabled: e.disabled } : {},
883
485
  ...e.readonly != null ? { readonly: e.readonly } : {},
884
- ...e.validator != null ? { validator: c(e.validator, "array") } : {},
885
- props: r(e)
486
+ ...e.validator != null ? { validator: e.validator } : {},
487
+ props: p(e)
886
488
  })
887
- }), hs = W.gsl, ks = W.gslByUid, w = u({
888
- itemType: "RANGE_DATE_TIME_INPUT",
489
+ }), yt = w.gsl, mt = w.gslByUid;
490
+ function Tt(e) {
491
+ return {
492
+ uid: e.uid ?? "",
493
+ kind: "layout",
494
+ type: "tabs",
495
+ props: {
496
+ tabs: e.tabs,
497
+ renderMode: e.renderMode ?? "all",
498
+ ...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
499
+ },
500
+ children: []
501
+ };
502
+ }
503
+ function gt(e, t) {
504
+ const s = t.walkChildren(t.children ?? []);
505
+ if (e.kind === "static")
506
+ return { ...t.mapStaticDef(e.def, "TABS"), children: s };
507
+ const a = e.fn;
508
+ return ((i) => {
509
+ const n = a(i);
510
+ return { ...t.mapStaticDef(n, "TABS"), children: s };
511
+ });
512
+ }
513
+ function bt(e) {
514
+ return e.children;
515
+ }
516
+ const x = u({
517
+ itemType: "TABS",
518
+ kind: "layout",
519
+ entryShape: "compound",
520
+ mapToWidget: Tt,
521
+ buildCustomWidget: gt,
522
+ getChildren: bt
523
+ }), It = x.gsl, _t = x.gslByUid, G = u({
524
+ itemType: "LIST",
889
525
  kind: "input",
890
526
  entryShape: "keyed",
891
527
  sensibleDefaults: {
@@ -896,119 +532,241 @@ const I = u({
896
532
  mapToWidget: (e) => ({
897
533
  uid: e.uid ?? "",
898
534
  kind: "input",
899
- type: "rangeDateTimeInput",
535
+ type: "list",
900
536
  path: e.path ?? "",
901
537
  ...e.label != null ? { label: e.label } : {},
902
538
  ...e.disabled != null ? { disabled: e.disabled } : {},
903
539
  ...e.readonly != null ? { readonly: e.readonly } : {},
904
- ...e.validator != null ? { validator: c(e.validator, "array") } : {},
905
- props: r(e)
540
+ ...e.validator != null ? { validator: e.validator } : {},
541
+ props: p(e)
906
542
  })
907
- }), Ds = w.gsl, Ps = w.gslByUid, x = u({
908
- itemType: "RANGE_DATE_TIME_CALENDAR",
543
+ }), kt = G.gsl, St = G.gslByUid, K = u({
544
+ itemType: "TAGS",
909
545
  kind: "input",
910
546
  entryShape: "keyed",
911
547
  sensibleDefaults: {
912
- base: { suppressAutomaticLabels: !1 },
913
- fields: ["suppressAutomaticLabels"],
914
- apply: (e, t) => d(e, t)
548
+ base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
549
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
550
+ apply: (e, t) => m(d(e, t), t)
915
551
  },
916
552
  mapToWidget: (e) => ({
917
553
  uid: e.uid ?? "",
918
554
  kind: "input",
919
- type: "rangeDateTimeCalendar",
555
+ type: "tags",
920
556
  path: e.path ?? "",
921
557
  ...e.label != null ? { label: e.label } : {},
922
558
  ...e.disabled != null ? { disabled: e.disabled } : {},
923
559
  ...e.readonly != null ? { readonly: e.readonly } : {},
924
560
  ...e.validator != null ? { validator: c(e.validator, "array") } : {},
925
- props: r(e)
561
+ props: p(e)
926
562
  })
927
- }), Ms = x.gsl, Us = x.gslByUid, G = u({
928
- itemType: "RANGE_DATE_TIME_PICKER",
563
+ }), ya = K.gsl, ma = K.gslByUid, Y = u({
564
+ itemType: "ALERTS",
565
+ kind: "display",
566
+ entryShape: "bare",
567
+ mapToWidget: (e) => ({
568
+ uid: e.uid ?? "",
569
+ kind: "display",
570
+ type: "alert",
571
+ props: {
572
+ text: e.text,
573
+ ...e.level != null ? { level: e.level } : {}
574
+ }
575
+ })
576
+ }), At = Y.gsl, Et = Y.gslByUid, $ = u({
577
+ itemType: "MARKDOWN_TEXTS",
578
+ kind: "display",
579
+ entryShape: "bare",
580
+ mapToWidget: (e) => ({
581
+ uid: e.uid ?? "",
582
+ kind: "display",
583
+ type: "markdownText",
584
+ props: {
585
+ md: e.md
586
+ }
587
+ })
588
+ }), ht = $.gsl, Ut = $.gslByUid, F = u({
589
+ itemType: "DATE_PICKER",
929
590
  kind: "input",
930
591
  entryShape: "keyed",
931
592
  sensibleDefaults: {
932
- base: { suppressAutomaticLabels: !1 },
933
- fields: ["suppressAutomaticLabels"],
934
- apply: (e, t) => d(e, t)
593
+ base: {
594
+ suppressAutomaticLabels: !1,
595
+ suppressAutomaticPlaceholders: !1
596
+ },
597
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
598
+ apply: (e, t) => m(d(e, t), t)
935
599
  },
936
600
  mapToWidget: (e) => ({
937
601
  uid: e.uid ?? "",
938
602
  kind: "input",
939
- type: "rangeDateTimePicker",
603
+ type: "datePicker",
940
604
  path: e.path ?? "",
941
605
  ...e.label != null ? { label: e.label } : {},
942
606
  ...e.disabled != null ? { disabled: e.disabled } : {},
943
607
  ...e.readonly != null ? { readonly: e.readonly } : {},
944
- ...e.validator != null ? { validator: c(e.validator, "array") } : {},
945
- props: r(e)
608
+ ...e.validator != null ? { validator: c(e.validator, "string") } : {},
609
+ props: p(e)
946
610
  })
947
- }), Rs = G.gsl, Ls = G.gslByUid, K = u({
948
- itemType: "RANGE_TIME_INPUT",
611
+ }), Dt = F.gsl, Pt = F.gslByUid, z = u({
612
+ itemType: "DROPDOWN",
949
613
  kind: "input",
950
614
  entryShape: "keyed",
951
615
  sensibleDefaults: {
952
- base: { suppressAutomaticLabels: !1 },
953
- fields: ["suppressAutomaticLabels"],
954
- apply: (e, t) => d(e, t)
616
+ base: {
617
+ suppressAutomaticLabels: !1,
618
+ suppressAutomaticPlaceholders: !1
619
+ },
620
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
621
+ apply: (e, t) => m(d(e, t), t)
955
622
  },
956
623
  mapToWidget: (e) => ({
957
624
  uid: e.uid ?? "",
958
625
  kind: "input",
959
- type: "rangeTimeInput",
626
+ type: "dropdown",
960
627
  path: e.path ?? "",
961
628
  ...e.label != null ? { label: e.label } : {},
962
629
  ...e.disabled != null ? { disabled: e.disabled } : {},
963
630
  ...e.readonly != null ? { readonly: e.readonly } : {},
964
- ...e.validator != null ? { validator: c(e.validator, "array") } : {},
965
- props: r(e)
631
+ ...e.validator != null ? { validator: e.validator } : {},
632
+ props: p(e)
966
633
  })
967
- }), vs = K.gsl, fs = K.gslByUid, Y = u({
968
- itemType: "TIME_INPUT",
969
- kind: "input",
970
- entryShape: "keyed",
971
- sensibleDefaults: {
972
- base: { suppressAutomaticLabels: !1 },
973
- fields: ["suppressAutomaticLabels"],
974
- apply: (e, t) => d(e, t)
975
- },
976
- mapToWidget: (e) => ({
634
+ }), Mt = z.gsl, Bt = z.gslByUid;
635
+ function Rt(e) {
636
+ return {
637
+ uid: e.uid ?? "",
638
+ kind: "layout",
639
+ type: "accordion",
640
+ props: {
641
+ sections: e.sections,
642
+ renderMode: e.renderMode ?? "all",
643
+ ...e.singleOpen != null ? { singleOpen: e.singleOpen } : {},
644
+ ...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
645
+ },
646
+ children: []
647
+ };
648
+ }
649
+ function Lt(e, t) {
650
+ const s = t.walkChildren(t.children ?? []);
651
+ if (e.kind === "static")
652
+ return { ...t.mapStaticDef(e.def, "ACCORDION"), children: s };
653
+ const a = e.fn;
654
+ return ((i) => {
655
+ const n = a(i);
656
+ return { ...t.mapStaticDef(n, "ACCORDION"), children: s };
657
+ });
658
+ }
659
+ function vt(e) {
660
+ return e.children;
661
+ }
662
+ const O = u({
663
+ itemType: "ACCORDION",
664
+ kind: "layout",
665
+ entryShape: "compound",
666
+ mapToWidget: Rt,
667
+ buildCustomWidget: Lt,
668
+ getChildren: vt
669
+ }), ft = O.gsl, Ct = O.gslByUid;
670
+ function Nt(e) {
671
+ const t = {};
672
+ return e.addLabel != null && (t.addLabel = e.addLabel), e.removeLabel != null && (t.removeLabel = e.removeLabel), e.limit != null && (t.limit = e.limit), e.title != null && (t.title = e.title), e.addButtonIcon != null && (t.addButtonIcon = e.addButtonIcon), e.removeButtonIcon != null && (t.removeButtonIcon = e.removeButtonIcon), t;
673
+ }
674
+ function Wt(e) {
675
+ return {
977
676
  uid: e.uid ?? "",
978
677
  kind: "input",
979
- type: "timeInput",
678
+ type: "repeater",
980
679
  path: e.path ?? "",
981
680
  ...e.label != null ? { label: e.label } : {},
982
681
  ...e.disabled != null ? { disabled: e.disabled } : {},
983
682
  ...e.readonly != null ? { readonly: e.readonly } : {},
984
- ...e.validator != null ? { validator: c(e.validator, "string") } : {},
985
- props: r(e)
986
- })
987
- }), Bs = Y.gsl, Ns = Y.gslByUid, $ = u({
988
- itemType: "TIME_PICKER",
683
+ ...e.validator != null ? { validator: c(e.validator, "array") } : {},
684
+ props: {
685
+ ...Nt(e),
686
+ template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
687
+ }
688
+ };
689
+ }
690
+ function _(e, t) {
691
+ for (const s of e) {
692
+ if (typeof s == "function") continue;
693
+ const a = s;
694
+ typeof a.path == "string" && a.path && !a.path.startsWith(t) && (a.path = t + a.path), "children" in a && Array.isArray(a.children) && _(a.children, t);
695
+ const i = a.props;
696
+ i?.template?.children && Array.isArray(i.template.children) && _(i.template.children, t);
697
+ }
698
+ }
699
+ function wt(e, t) {
700
+ const s = t.walkChildren(t.children ?? []), a = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
701
+ a && _(s, a + ".items.");
702
+ const i = {
703
+ kind: "layout",
704
+ type: "flex",
705
+ uid: "",
706
+ children: s,
707
+ props: { direction: "column" }
708
+ };
709
+ if (e.kind === "static") {
710
+ const l = t.mapStaticDef(e.def, "REPEATER");
711
+ return {
712
+ ...l,
713
+ props: { ...l.props, template: i }
714
+ };
715
+ }
716
+ const n = e.fn;
717
+ return ((l) => {
718
+ const r = n(l), o = t.mapStaticDef(r, "REPEATER");
719
+ return {
720
+ ...o,
721
+ props: { ...o.props, template: i }
722
+ };
723
+ });
724
+ }
725
+ function xt(e) {
726
+ return {
727
+ baseDef: e.def,
728
+ path: e.key,
729
+ children: e.children
730
+ };
731
+ }
732
+ function Gt(e) {
733
+ return e.children;
734
+ }
735
+ const Kt = {
736
+ parseEntry: xt,
737
+ rollUpSensibleDefaults: () => ({}),
738
+ applySensibleDefaults: (e) => e,
739
+ mapToWidget: Wt,
740
+ buildCustomWidget: wt,
741
+ getChildren: Gt
742
+ }, X = Ie("REPEATER"), me = (e, t) => X(t, ((s) => s.uid === e)), Yt = {
743
+ itemType: "REPEATER",
744
+ kind: "input",
745
+ handler: Kt,
746
+ gsl: X,
747
+ gslByUid: me
748
+ }, H = u({
749
+ itemType: "MARKDOWN",
989
750
  kind: "input",
990
751
  entryShape: "keyed",
991
752
  sensibleDefaults: {
992
- base: {
993
- suppressAutomaticLabels: !1,
994
- suppressAutomaticPlaceholders: !1
995
- },
753
+ base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
996
754
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
997
755
  apply: (e, t) => m(d(e, t), t)
998
756
  },
999
757
  mapToWidget: (e) => ({
1000
758
  uid: e.uid ?? "",
1001
759
  kind: "input",
1002
- type: "timePicker",
760
+ type: "markdown",
1003
761
  path: e.path ?? "",
1004
762
  ...e.label != null ? { label: e.label } : {},
1005
763
  ...e.disabled != null ? { disabled: e.disabled } : {},
1006
764
  ...e.readonly != null ? { readonly: e.readonly } : {},
1007
765
  ...e.validator != null ? { validator: c(e.validator, "string") } : {},
1008
- props: r(e)
766
+ props: p(e)
1009
767
  })
1010
- }), Cs = $.gsl, Ws = $.gslByUid, z = u({
1011
- itemType: "DATE_TIME_INPUT",
768
+ }), $t = H.gsl, Ft = H.gslByUid, V = u({
769
+ itemType: "RANGE_DATE_INPUT",
1012
770
  kind: "input",
1013
771
  entryShape: "keyed",
1014
772
  sensibleDefaults: {
@@ -1019,39 +777,36 @@ const I = u({
1019
777
  mapToWidget: (e) => ({
1020
778
  uid: e.uid ?? "",
1021
779
  kind: "input",
1022
- type: "dateTimeInput",
780
+ type: "rangeDateInput",
1023
781
  path: e.path ?? "",
1024
782
  ...e.label != null ? { label: e.label } : {},
1025
783
  ...e.disabled != null ? { disabled: e.disabled } : {},
1026
784
  ...e.readonly != null ? { readonly: e.readonly } : {},
1027
- ...e.validator != null ? { validator: c(e.validator, "string") } : {},
1028
- props: r(e)
785
+ ...e.validator != null ? { validator: c(e.validator, "array") } : {},
786
+ props: p(e)
1029
787
  })
1030
- }), ws = z.gsl, xs = z.gslByUid, F = u({
1031
- itemType: "RANGE_DATE_PICKER",
788
+ }), zt = V.gsl, Ot = V.gslByUid, j = u({
789
+ itemType: "RANGE_TIME_INPUT",
1032
790
  kind: "input",
1033
791
  entryShape: "keyed",
1034
792
  sensibleDefaults: {
1035
- base: {
1036
- suppressAutomaticLabels: !1,
1037
- suppressAutomaticPlaceholders: !1
1038
- },
1039
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1040
- apply: (e, t) => m(d(e, t), t)
793
+ base: { suppressAutomaticLabels: !1 },
794
+ fields: ["suppressAutomaticLabels"],
795
+ apply: (e, t) => d(e, t)
1041
796
  },
1042
797
  mapToWidget: (e) => ({
1043
798
  uid: e.uid ?? "",
1044
799
  kind: "input",
1045
- type: "rangeDatePicker",
800
+ type: "rangeTimeInput",
1046
801
  path: e.path ?? "",
1047
802
  ...e.label != null ? { label: e.label } : {},
1048
803
  ...e.disabled != null ? { disabled: e.disabled } : {},
1049
804
  ...e.readonly != null ? { readonly: e.readonly } : {},
1050
805
  ...e.validator != null ? { validator: c(e.validator, "array") } : {},
1051
- props: r(e)
806
+ props: p(e)
1052
807
  })
1053
- }), Gs = F.gsl, Ks = F.gslByUid, O = u({
1054
- itemType: "RANGE_TIME_PICKER",
808
+ }), Xt = j.gsl, Ht = j.gslByUid, q = u({
809
+ itemType: "RANGE_DATE_TIME_INPUT",
1055
810
  kind: "input",
1056
811
  entryShape: "keyed",
1057
812
  sensibleDefaults: {
@@ -1062,479 +817,807 @@ const I = u({
1062
817
  mapToWidget: (e) => ({
1063
818
  uid: e.uid ?? "",
1064
819
  kind: "input",
1065
- type: "rangeTimePicker",
820
+ type: "rangeDateTimeInput",
1066
821
  path: e.path ?? "",
1067
822
  ...e.label != null ? { label: e.label } : {},
1068
823
  ...e.disabled != null ? { disabled: e.disabled } : {},
1069
824
  ...e.readonly != null ? { readonly: e.readonly } : {},
1070
825
  ...e.validator != null ? { validator: c(e.validator, "array") } : {},
1071
- props: r(e)
826
+ props: p(e)
1072
827
  })
1073
- }), Ys = O.gsl, $s = O.gslByUid;
1074
- function Pe(e) {
1075
- const t = {};
1076
- return e.addLabel != null && (t.addLabel = e.addLabel), e.removeLabel != null && (t.removeLabel = e.removeLabel), e.limit != null && (t.limit = e.limit), e.title != null && (t.title = e.title), e.addButtonIcon != null && (t.addButtonIcon = e.addButtonIcon), e.removeButtonIcon != null && (t.removeButtonIcon = e.removeButtonIcon), t;
828
+ }), Vt = q.gsl, jt = q.gslByUid, J = u({
829
+ itemType: "RANGE_DATE_TIME_CALENDAR",
830
+ kind: "input",
831
+ entryShape: "keyed",
832
+ sensibleDefaults: {
833
+ base: { suppressAutomaticLabels: !1 },
834
+ fields: ["suppressAutomaticLabels"],
835
+ apply: (e, t) => d(e, t)
836
+ },
837
+ mapToWidget: (e) => ({
838
+ uid: e.uid ?? "",
839
+ kind: "input",
840
+ type: "rangeDateTimeCalendar",
841
+ path: e.path ?? "",
842
+ ...e.label != null ? { label: e.label } : {},
843
+ ...e.disabled != null ? { disabled: e.disabled } : {},
844
+ ...e.readonly != null ? { readonly: e.readonly } : {},
845
+ ...e.validator != null ? { validator: c(e.validator, "array") } : {},
846
+ props: p(e)
847
+ })
848
+ }), qt = J.gsl, Jt = J.gslByUid, Q = u({
849
+ itemType: "RANGE_DATE_TIME_PICKER",
850
+ kind: "input",
851
+ entryShape: "keyed",
852
+ sensibleDefaults: {
853
+ base: { suppressAutomaticLabels: !1 },
854
+ fields: ["suppressAutomaticLabels"],
855
+ apply: (e, t) => d(e, t)
856
+ },
857
+ mapToWidget: (e) => ({
858
+ uid: e.uid ?? "",
859
+ kind: "input",
860
+ type: "rangeDateTimePicker",
861
+ path: e.path ?? "",
862
+ ...e.label != null ? { label: e.label } : {},
863
+ ...e.disabled != null ? { disabled: e.disabled } : {},
864
+ ...e.readonly != null ? { readonly: e.readonly } : {},
865
+ ...e.validator != null ? { validator: c(e.validator, "array") } : {},
866
+ props: p(e)
867
+ })
868
+ }), Qt = Q.gsl, Zt = Q.gslByUid, Z = u({
869
+ itemType: "RANGE_DATE_PICKER",
870
+ kind: "input",
871
+ entryShape: "keyed",
872
+ sensibleDefaults: {
873
+ base: {
874
+ suppressAutomaticLabels: !1,
875
+ suppressAutomaticPlaceholders: !1
876
+ },
877
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
878
+ apply: (e, t) => m(d(e, t), t)
879
+ },
880
+ mapToWidget: (e) => ({
881
+ uid: e.uid ?? "",
882
+ kind: "input",
883
+ type: "rangeDatePicker",
884
+ path: e.path ?? "",
885
+ ...e.label != null ? { label: e.label } : {},
886
+ ...e.disabled != null ? { disabled: e.disabled } : {},
887
+ ...e.readonly != null ? { readonly: e.readonly } : {},
888
+ ...e.validator != null ? { validator: c(e.validator, "array") } : {},
889
+ props: p(e)
890
+ })
891
+ }), es = Z.gsl, ts = Z.gslByUid, ee = u({
892
+ itemType: "RANGE_TIME_PICKER",
893
+ kind: "input",
894
+ entryShape: "keyed",
895
+ sensibleDefaults: {
896
+ base: { suppressAutomaticLabels: !1 },
897
+ fields: ["suppressAutomaticLabels"],
898
+ apply: (e, t) => d(e, t)
899
+ },
900
+ mapToWidget: (e) => ({
901
+ uid: e.uid ?? "",
902
+ kind: "input",
903
+ type: "rangeTimePicker",
904
+ path: e.path ?? "",
905
+ ...e.label != null ? { label: e.label } : {},
906
+ ...e.disabled != null ? { disabled: e.disabled } : {},
907
+ ...e.readonly != null ? { readonly: e.readonly } : {},
908
+ ...e.validator != null ? { validator: c(e.validator, "array") } : {},
909
+ props: p(e)
910
+ })
911
+ }), ss = ee.gsl, as = ee.gslByUid, te = u({
912
+ itemType: "CUSTOM_DISPLAY",
913
+ kind: "display",
914
+ entryShape: "bare",
915
+ mapToWidget: (e) => ({
916
+ uid: e.uid ?? "",
917
+ kind: "display",
918
+ type: e.customType,
919
+ props: e.props ?? {}
920
+ })
921
+ }), is = te.gsl, ns = te.gslByUid, se = u({
922
+ itemType: "CUSTOM_INPUT",
923
+ kind: "input",
924
+ entryShape: "keyed",
925
+ sensibleDefaults: {
926
+ base: {
927
+ suppressAutomaticLabels: !1
928
+ },
929
+ fields: ["suppressAutomaticLabels"],
930
+ apply: (e, t) => d(e, t)
931
+ },
932
+ mapToWidget: (e) => ({
933
+ uid: e.uid ?? "",
934
+ kind: "input",
935
+ type: e.customType,
936
+ path: e.path ?? "",
937
+ ...e.label != null ? { label: e.label } : {},
938
+ ...e.disabled != null ? { disabled: e.disabled } : {},
939
+ ...e.readonly != null ? { readonly: e.readonly } : {},
940
+ ...e.defaultValue != null ? { defaultValue: e.defaultValue } : {},
941
+ ...e.validator != null ? { validator: e.validator } : {},
942
+ props: e.props ?? {}
943
+ })
944
+ }), ls = se.gsl, os = se.gslByUid, ae = u({
945
+ itemType: "CUSTOM_ACTION",
946
+ kind: "action",
947
+ entryShape: "bare",
948
+ mapToWidget: (e) => {
949
+ const {
950
+ uid: t,
951
+ label: s,
952
+ disabled: a,
953
+ on: i,
954
+ onClick: n,
955
+ data: l,
956
+ customType: r,
957
+ tags: o,
958
+ size: T,
959
+ include: g,
960
+ exclude: ge,
961
+ states: be,
962
+ props: re,
963
+ ...I
964
+ } = e;
965
+ return {
966
+ uid: t ?? "",
967
+ kind: "action",
968
+ type: e.customType,
969
+ label: s,
970
+ disabled: a,
971
+ ...i != null ? { on: i } : {},
972
+ props: { ...re, ...I }
973
+ };
974
+ },
975
+ afterMerge: (e, t) => ye.extractOnClickFromMergeResult(
976
+ e,
977
+ t.eventRegistry,
978
+ t.eventIdGenerator
979
+ )
980
+ }), us = ae.gsl, rs = ae.gslByUid;
981
+ function ps(e) {
982
+ return {
983
+ uid: e.uid ?? "",
984
+ kind: "layout",
985
+ type: e.customType,
986
+ props: e.props ?? {},
987
+ children: []
988
+ };
989
+ }
990
+ function ds(e, t) {
991
+ const s = t.walkChildren(t.children ?? []);
992
+ if (e.kind === "static")
993
+ return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: s };
994
+ const a = e.fn;
995
+ return ((i) => {
996
+ const n = a(i);
997
+ return { ...t.mapStaticDef(n, "CUSTOM_LAYOUT"), children: s };
998
+ });
999
+ }
1000
+ function cs(e) {
1001
+ return e.children;
1002
+ }
1003
+ const ie = u({
1004
+ itemType: "CUSTOM_LAYOUT",
1005
+ kind: "layout",
1006
+ entryShape: "compound",
1007
+ mapToWidget: ps,
1008
+ buildCustomWidget: ds,
1009
+ getChildren: cs
1010
+ }), ys = ie.gsl, ms = ie.gslByUid, Ts = [
1011
+ k,
1012
+ S,
1013
+ A,
1014
+ E,
1015
+ h,
1016
+ U,
1017
+ D,
1018
+ P,
1019
+ M,
1020
+ B,
1021
+ R,
1022
+ L,
1023
+ v,
1024
+ f,
1025
+ C,
1026
+ N,
1027
+ W,
1028
+ w,
1029
+ x,
1030
+ G,
1031
+ K,
1032
+ Y,
1033
+ $,
1034
+ F,
1035
+ z,
1036
+ O,
1037
+ Yt,
1038
+ H,
1039
+ V,
1040
+ j,
1041
+ q,
1042
+ J,
1043
+ Q,
1044
+ Z,
1045
+ ee,
1046
+ te,
1047
+ se,
1048
+ ae,
1049
+ ie
1050
+ ], ne = _e();
1051
+ for (const e of Ts)
1052
+ ke(ne, e);
1053
+ function Ta(e) {
1054
+ return Se(
1055
+ ne,
1056
+ e
1057
+ );
1058
+ }
1059
+ function gs(e, t, s) {
1060
+ if (typeof t == "function") {
1061
+ const i = t;
1062
+ return {
1063
+ items: [{ key: e, def: (l) => ({ type: "text", ...i(l) }) }],
1064
+ type: "ITEMS",
1065
+ itemType: y.INPUTS,
1066
+ tags: s ?? []
1067
+ };
1068
+ }
1069
+ const a = { type: "text", ...t };
1070
+ return {
1071
+ items: [{ key: e, def: a }],
1072
+ type: "ITEMS",
1073
+ itemType: y.INPUTS,
1074
+ tags: s ?? []
1075
+ };
1076
+ }
1077
+ function bs(e, t, s) {
1078
+ if (typeof t == "function") {
1079
+ const i = t;
1080
+ return {
1081
+ items: [{ key: e, def: (l) => ({ type: "number", ...i(l) }) }],
1082
+ type: "ITEMS",
1083
+ itemType: y.INPUTS,
1084
+ tags: s ?? []
1085
+ };
1086
+ }
1087
+ const a = { type: "number", ...t };
1088
+ return {
1089
+ items: [{ key: e, def: a }],
1090
+ type: "ITEMS",
1091
+ itemType: y.INPUTS,
1092
+ tags: s ?? []
1093
+ };
1094
+ }
1095
+ function Is(e, t, s) {
1096
+ if (typeof t == "function") {
1097
+ const i = t;
1098
+ return {
1099
+ items: [{ key: e, def: (l) => ({ type: "boolean", ...i(l) }) }],
1100
+ type: "ITEMS",
1101
+ itemType: y.INPUTS,
1102
+ tags: s ?? []
1103
+ };
1104
+ }
1105
+ const a = { type: "boolean", ...t };
1106
+ return {
1107
+ items: [{ key: e, def: a }],
1108
+ type: "ITEMS",
1109
+ itemType: y.INPUTS,
1110
+ tags: s ?? []
1111
+ };
1112
+ }
1113
+ function _s(e, t, s) {
1114
+ if (typeof t == "function") {
1115
+ const n = t;
1116
+ return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: (o) => ({ type: "select", ...n(o) }) }], tags: s ?? [] };
1117
+ }
1118
+ const a = { type: "select", ...t };
1119
+ return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: a }], tags: s ?? [] };
1120
+ }
1121
+ function ks(e, t, s) {
1122
+ if (typeof t == "function") {
1123
+ const n = t;
1124
+ return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: (o) => ({
1125
+ type: "dropdown",
1126
+ ...n(o)
1127
+ }) }], tags: s ?? [] };
1128
+ }
1129
+ const a = { type: "dropdown", ...t };
1130
+ return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
1131
+ }
1132
+ function Ss(e, t, s) {
1133
+ if (typeof t == "function") {
1134
+ const n = t;
1135
+ return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: (o) => ({ type: "radiogroup", ...n(o) }) }], tags: s ?? [] };
1136
+ }
1137
+ const a = { type: "radiogroup", ...t };
1138
+ return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: a }], tags: s ?? [] };
1139
+ }
1140
+ function As(e, t, s) {
1141
+ if (typeof t == "function") {
1142
+ const n = t;
1143
+ return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: (o) => ({ type: "checkbox", ...n(o) }) }], tags: s ?? [] };
1144
+ }
1145
+ const a = { type: "checkbox", ...t };
1146
+ return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: a }], tags: s ?? [] };
1147
+ }
1148
+ function Es(e, t, s) {
1149
+ if (typeof t == "function") {
1150
+ const n = t;
1151
+ return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: (o) => ({ type: "textarea", ...n(o) }) }], tags: s ?? [] };
1152
+ }
1153
+ const a = { type: "textarea", ...t };
1154
+ return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: a }], tags: s ?? [] };
1155
+ }
1156
+ function hs(e, t, s) {
1157
+ if (typeof t == "function") {
1158
+ const n = t;
1159
+ return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: (o) => ({ type: "password", ...n(o) }) }], tags: s ?? [] };
1160
+ }
1161
+ const a = { type: "password", ...t };
1162
+ return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: a }], tags: s ?? [] };
1163
+ }
1164
+ function Us(e, t, s) {
1165
+ if (typeof t == "function") {
1166
+ const n = t;
1167
+ return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: (o) => ({ type: "currency", ...n(o) }) }], tags: s ?? [] };
1168
+ }
1169
+ const a = { type: "currency", ...t };
1170
+ return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: a }], tags: s ?? [] };
1171
+ }
1172
+ function Ds(e, t, s) {
1173
+ if (typeof t == "function") {
1174
+ const n = t;
1175
+ return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: (o) => ({ type: "markdown", ...n(o) }) }], tags: s ?? [] };
1176
+ }
1177
+ const a = { type: "markdown", ...t };
1178
+ return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
1179
+ }
1180
+ function Ps(e, t, s) {
1181
+ if (typeof t == "function") {
1182
+ const n = t;
1183
+ return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: (o) => ({ type: "list", ...n(o) }) }], tags: s ?? [] };
1184
+ }
1185
+ const a = { type: "list", ...t };
1186
+ return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: a }], tags: s ?? [] };
1187
+ }
1188
+ function Ms(e, t, s) {
1189
+ if (typeof t == "function") {
1190
+ const i = t;
1191
+ return {
1192
+ items: [(l) => ({
1193
+ type: "calendar",
1194
+ path: e,
1195
+ ...i(l)
1196
+ })],
1197
+ type: "ITEMS",
1198
+ itemType: "CALENDAR",
1199
+ tags: s ?? []
1200
+ };
1201
+ }
1202
+ return {
1203
+ items: [{ type: "calendar", path: e, ...t }],
1204
+ type: "ITEMS",
1205
+ itemType: "CALENDAR",
1206
+ tags: s ?? []
1207
+ };
1208
+ }
1209
+ function Bs(e, t, s) {
1210
+ if (typeof t == "function") {
1211
+ const i = t;
1212
+ return {
1213
+ items: [(l) => ({
1214
+ type: "dateTimeCalendar",
1215
+ path: e,
1216
+ ...i(l)
1217
+ })],
1218
+ type: "ITEMS",
1219
+ itemType: "DATE_TIME_CALENDAR",
1220
+ tags: s ?? []
1221
+ };
1222
+ }
1223
+ return {
1224
+ items: [{ type: "dateTimeCalendar", path: e, ...t }],
1225
+ type: "ITEMS",
1226
+ itemType: "DATE_TIME_CALENDAR",
1227
+ tags: s ?? []
1228
+ };
1229
+ }
1230
+ function Rs(e, t, s) {
1231
+ if (typeof t == "function") {
1232
+ const n = t;
1233
+ return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (o) => ({ type: "dateInput", ...n(o) }) }], tags: s ?? [] };
1234
+ }
1235
+ const a = { type: "dateInput", ...t };
1236
+ return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
1237
+ }
1238
+ function Ls(e, t, s) {
1239
+ if (typeof t == "function") {
1240
+ const n = t;
1241
+ return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (o) => ({
1242
+ type: "datePicker",
1243
+ ...n(o)
1244
+ }) }], tags: s ?? [] };
1245
+ }
1246
+ const a = { type: "datePicker", ...t };
1247
+ return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
1248
+ }
1249
+ function vs(e, t, s) {
1250
+ if (typeof t == "function") {
1251
+ const n = t;
1252
+ return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
1253
+ type: "dateTimePicker",
1254
+ ...n(o)
1255
+ }) }], tags: s ?? [] };
1256
+ }
1257
+ const a = { type: "dateTimePicker", ...t };
1258
+ return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
1259
+ }
1260
+ function fs(e, t, s) {
1261
+ if (typeof t == "function") {
1262
+ const n = t;
1263
+ return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (o) => ({
1264
+ type: "rangeCalendar",
1265
+ ...n(o)
1266
+ }) }], tags: s ?? [] };
1267
+ }
1268
+ const a = { type: "rangeCalendar", ...t };
1269
+ return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
1270
+ }
1271
+ function Cs(e, t, s) {
1272
+ if (typeof t == "function") {
1273
+ const n = t;
1274
+ return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (o) => ({
1275
+ type: "rangeDateInput",
1276
+ ...n(o)
1277
+ }) }], tags: s ?? [] };
1278
+ }
1279
+ const a = { type: "rangeDateInput", ...t };
1280
+ return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
1281
+ }
1282
+ function Ns(e, t, s) {
1283
+ if (typeof t == "function") {
1284
+ const n = t;
1285
+ return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
1286
+ type: "rangeDateTimeInput",
1287
+ ...n(o)
1288
+ }) }], tags: s ?? [] };
1289
+ }
1290
+ const a = { type: "rangeDateTimeInput", ...t };
1291
+ return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
1292
+ }
1293
+ function Ws(e, t, s) {
1294
+ if (typeof t == "function") {
1295
+ const n = t;
1296
+ return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: (o) => ({
1297
+ type: "rangeDateTimeCalendar",
1298
+ ...n(o)
1299
+ }) }], tags: s ?? [] };
1300
+ }
1301
+ const a = { type: "rangeDateTimeCalendar", ...t };
1302
+ return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
1303
+ }
1304
+ function ws(e, t, s) {
1305
+ if (typeof t == "function") {
1306
+ const n = t;
1307
+ return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
1308
+ type: "rangeDateTimePicker",
1309
+ ...n(o)
1310
+ }) }], tags: s ?? [] };
1311
+ }
1312
+ const a = { type: "rangeDateTimePicker", ...t };
1313
+ return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
1077
1314
  }
1078
- function Me(e) {
1079
- return {
1080
- uid: e.uid ?? "",
1081
- kind: "input",
1082
- type: "repeater",
1083
- path: e.path ?? "",
1084
- ...e.label != null ? { label: e.label } : {},
1085
- ...e.disabled != null ? { disabled: e.disabled } : {},
1086
- ...e.readonly != null ? { readonly: e.readonly } : {},
1087
- ...e.validator != null ? { validator: c(e.validator, "array") } : {},
1088
- props: {
1089
- ...Pe(e),
1090
- template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
1091
- }
1092
- };
1315
+ function xs(e, t, s) {
1316
+ if (typeof t == "function") {
1317
+ const n = t;
1318
+ return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: (o) => ({
1319
+ type: "rangeTimeInput",
1320
+ ...n(o)
1321
+ }) }], tags: s ?? [] };
1322
+ }
1323
+ const a = { type: "rangeTimeInput", ...t };
1324
+ return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
1093
1325
  }
1094
- function _(e, t) {
1095
- for (const s of e) {
1096
- if (typeof s == "function") continue;
1097
- const a = s;
1098
- typeof a.path == "string" && a.path && !a.path.startsWith(t) && (a.path = t + a.path), "children" in a && Array.isArray(a.children) && _(a.children, t);
1099
- const i = a.props;
1100
- i?.template?.children && Array.isArray(i.template.children) && _(i.template.children, t);
1326
+ function Gs(e, t, s) {
1327
+ if (typeof t == "function") {
1328
+ const n = t;
1329
+ return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (o) => ({
1330
+ type: "rangeDatePicker",
1331
+ ...n(o)
1332
+ }) }], tags: s ?? [] };
1101
1333
  }
1334
+ const a = { type: "rangeDatePicker", ...t };
1335
+ return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
1102
1336
  }
1103
- function Ue(e, t) {
1104
- const s = t.walkChildren(t.children ?? []), a = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
1105
- a && _(s, a + ".items.");
1106
- const i = {
1107
- kind: "layout",
1108
- type: "flex",
1109
- uid: "",
1110
- children: s,
1111
- props: { direction: "column" }
1112
- };
1113
- if (e.kind === "static") {
1114
- const l = t.mapStaticDef(e.def, "REPEATER");
1115
- return {
1116
- ...l,
1117
- props: { ...l.props, template: i }
1118
- };
1337
+ function Ks(e, t, s) {
1338
+ if (typeof t == "function") {
1339
+ const n = t;
1340
+ return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: (o) => ({
1341
+ type: "rangeTimePicker",
1342
+ ...n(o)
1343
+ }) }], tags: s ?? [] };
1119
1344
  }
1120
- const n = e.fn;
1121
- return ((l) => {
1122
- const p = n(l), o = t.mapStaticDef(p, "REPEATER");
1123
- return {
1124
- ...o,
1125
- props: { ...o.props, template: i }
1126
- };
1127
- });
1345
+ const a = { type: "rangeTimePicker", ...t };
1346
+ return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
1128
1347
  }
1129
- function Re(e) {
1130
- return {
1131
- baseDef: e.def,
1132
- path: e.key,
1133
- children: e.children
1134
- };
1348
+ function Ys(e, t, s) {
1349
+ if (typeof t == "function") {
1350
+ const n = t;
1351
+ return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: (o) => ({ type: "timeInput", ...n(o) }) }], tags: s ?? [] };
1352
+ }
1353
+ const a = { type: "timeInput", ...t };
1354
+ return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
1135
1355
  }
1136
- function Le(e) {
1137
- return e.children;
1356
+ function $s(e, t, s) {
1357
+ if (typeof t == "function") {
1358
+ const n = t;
1359
+ return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: (o) => ({
1360
+ type: "timePicker",
1361
+ ...n(o)
1362
+ }) }], tags: s ?? [] };
1363
+ }
1364
+ const a = { type: "timePicker", ...t };
1365
+ return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
1138
1366
  }
1139
- const ve = {
1140
- parseEntry: Re,
1141
- rollUpSensibleDefaults: () => ({}),
1142
- applySensibleDefaults: (e) => e,
1143
- mapToWidget: Me,
1144
- buildCustomWidget: Ue,
1145
- getChildren: Le
1146
- }, ce = Te("REPEATER"), fe = (e, t) => ce(t, ((s) => s.uid === e)), Be = {
1147
- itemType: "REPEATER",
1148
- kind: "input",
1149
- handler: ve,
1150
- gsl: ce,
1151
- gslByUid: fe
1152
- };
1153
- function Ne(e) {
1154
- const {
1155
- uid: t,
1156
- label: s,
1157
- actionType: a,
1158
- disabled: i,
1159
- on: n,
1160
- onClick: l,
1161
- data: p,
1162
- type: o,
1163
- tags: T,
1164
- size: g,
1165
- include: ye,
1166
- exclude: me,
1167
- states: ne,
1168
- ...b
1169
- } = e;
1170
- return {
1171
- uid: t ?? "",
1172
- kind: "action",
1173
- type: "button",
1174
- disabled: i,
1175
- actionType: a,
1176
- label: s,
1177
- ...n != null ? { on: n } : {},
1178
- props: b
1179
- };
1367
+ function Fs(e, t, s) {
1368
+ if (typeof t == "function") {
1369
+ const n = t;
1370
+ return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
1371
+ type: "dateTimeInput",
1372
+ ...n(o)
1373
+ }) }], tags: s ?? [] };
1374
+ }
1375
+ const a = { type: "dateTimeInput", ...t };
1376
+ return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
1180
1377
  }
1181
- const X = u({
1182
- itemType: "ACTIONS",
1183
- kind: "action",
1184
- entryShape: "bare",
1185
- mapToWidget: Ne,
1186
- afterMerge: (e, t) => pe.extractOnClickFromMergeResult(
1187
- e,
1188
- t.eventRegistry,
1189
- t.eventIdGenerator
1190
- )
1191
- }), zs = X.gsl, Fs = X.gslByUid;
1192
- function Ce(e) {
1193
- const {
1194
- uid: t,
1195
- widgetName: s,
1196
- tags: a,
1197
- size: i,
1198
- onChange: n,
1199
- include: l,
1200
- exclude: p,
1201
- ...o
1202
- } = e, { on: T, ...g } = o;
1378
+ function zs(e, t, s, a) {
1379
+ if (typeof s == "function") {
1380
+ const l = s;
1381
+ return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (T) => ({
1382
+ customType: e,
1383
+ ...l(T)
1384
+ }) }], tags: a ?? [] };
1385
+ }
1386
+ const i = { customType: e, ...s };
1387
+ return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: i }], tags: a ?? [] };
1388
+ }
1389
+ function Os(e, t) {
1203
1390
  return {
1204
- uid: t ?? "",
1205
- kind: "layout",
1206
- type: s ?? "flex",
1207
- props: {
1208
- direction: g.direction ?? "column",
1209
- ...g
1210
- },
1211
- children: []
1391
+ items: [e],
1392
+ type: "ITEMS",
1393
+ itemType: y.ACTIONS,
1394
+ tags: t ?? []
1212
1395
  };
1213
1396
  }
1214
- function We(e, t) {
1215
- const s = t.walkChildren(t.children ?? []);
1216
- if (e.kind === "static")
1217
- return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: s };
1218
- const a = e.fn;
1219
- return ((i) => {
1220
- const n = a(i);
1221
- return { ...t.mapStaticDef(n, "LAYOUTS"), children: s };
1222
- });
1397
+ function Xs(e, t, s) {
1398
+ if (typeof t == "function") {
1399
+ const n = t;
1400
+ return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
1401
+ (r) => ({ customType: e, ...n(r) })
1402
+ ], tags: s ?? [] };
1403
+ }
1404
+ return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: s ?? [] };
1223
1405
  }
1224
- function we(e) {
1225
- return e.children;
1406
+ const Te = (e, t) => ({
1407
+ type: "ITEMS",
1408
+ itemType: y.DISPLAYS,
1409
+ items: [{ render: e }],
1410
+ tags: t ?? []
1411
+ });
1412
+ function Hs(e, t) {
1413
+ return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
1226
1414
  }
1227
- const H = u({
1228
- itemType: "LAYOUTS",
1229
- kind: "layout",
1230
- entryShape: "compound",
1231
- mapToWidget: Ce,
1232
- buildCustomWidget: We,
1233
- getChildren: we
1234
- }), Os = H.gsl, Xs = H.gslByUid;
1235
- function xe(e) {
1236
- return {
1237
- uid: "",
1238
- kind: "display",
1239
- type: "renderer",
1240
- props: { render: e.render }
1241
- };
1415
+ function Vs(e, t) {
1416
+ return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
1242
1417
  }
1243
- function Ge(e, t) {
1244
- if (e.kind === "static") {
1245
- const a = e.def;
1246
- return ((i) => ({
1247
- uid: "",
1248
- kind: "display",
1249
- type: "renderer",
1250
- ...a.include != null ? { include: a.include } : {},
1251
- ...a.exclude != null ? { exclude: a.exclude } : {},
1252
- props: { render: a.render(le(i)) }
1253
- }));
1418
+ function js(e, t, s) {
1419
+ if (typeof t == "function") {
1420
+ const r = t;
1421
+ return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
1422
+ (T) => ({ customType: e, ...r(T) })
1423
+ ], tags: s ?? [] };
1254
1424
  }
1255
- const s = e.fn;
1256
- return ((a) => {
1257
- const i = s(a);
1258
- return {
1259
- uid: "",
1260
- kind: "display",
1261
- type: "renderer",
1262
- ...i.include != null ? { include: i.include } : {},
1263
- ...i.exclude != null ? { exclude: i.exclude } : {},
1264
- props: { render: i.render(le(a)) }
1265
- };
1266
- });
1425
+ const { uid: a, ...i } = t ?? {};
1426
+ return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [{
1427
+ customType: e,
1428
+ ...a != null ? { uid: a } : {},
1429
+ props: Object.keys(i).length > 0 ? i : void 0
1430
+ }], tags: s ?? [] };
1267
1431
  }
1268
- const V = u({
1269
- itemType: "DISPLAYS",
1270
- kind: "display",
1271
- entryShape: "bare",
1272
- mapToWidget: xe,
1273
- buildCustomWidget: Ge
1274
- }), Hs = V.gsl, Vs = V.gslByUid, j = u({
1275
- itemType: "ALERTS",
1276
- kind: "display",
1277
- entryShape: "bare",
1278
- mapToWidget: (e) => ({
1279
- uid: e.uid ?? "",
1280
- kind: "display",
1281
- type: "alert",
1282
- props: {
1283
- text: e.text,
1284
- ...e.level != null ? { level: e.level } : {}
1285
- }
1286
- })
1287
- }), js = j.gsl, qs = j.gslByUid, q = u({
1288
- itemType: "MARKDOWN_TEXTS",
1289
- kind: "display",
1290
- entryShape: "bare",
1291
- mapToWidget: (e) => ({
1292
- uid: e.uid ?? "",
1293
- kind: "display",
1294
- type: "markdownText",
1295
- props: {
1296
- md: e.md
1432
+ const le = (e, t, s) => ({
1433
+ type: "ITEMS",
1434
+ itemType: y.LAYOUTS,
1435
+ items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
1436
+ tags: s ?? []
1437
+ }), qs = (e, t, s) => le(e, { direction: "row", ...t ?? {} }, s), Js = (e, t, s) => le(e, { direction: "column", ...t ?? {} }, s), oe = (e, t, s) => ({
1438
+ type: "ITEMS",
1439
+ itemType: y.LAYOUTS,
1440
+ items: [
1441
+ {
1442
+ def: {
1443
+ widgetName: "grid",
1444
+ direction: "row",
1445
+ autoFit: !0,
1446
+ ...t ?? {}
1447
+ },
1448
+ children: e
1297
1449
  }
1298
- })
1299
- }), Js = q.gsl, Qs = q.gslByUid;
1300
- function Ke(e) {
1450
+ ],
1451
+ tags: s ?? []
1452
+ }), Qs = (e, t, s) => oe(e, { direction: "row", ...t ?? {} }, s), Zs = (e, t, s) => oe(e, { direction: "column", ...t ?? {} }, s);
1453
+ function de(e) {
1454
+ return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
1455
+ }
1456
+ function ea(e, t, s) {
1457
+ const a = e.map((l) => ({
1458
+ label: l.label,
1459
+ uid: l.uid ?? de(l.label)
1460
+ })), i = e.map((l) => ({
1461
+ type: "ITEMS",
1462
+ itemType: y.LAYOUTS,
1463
+ items: [
1464
+ {
1465
+ def: { uid: l.uid ?? de(l.label), direction: "column", widgetName: "flex" },
1466
+ children: l.children
1467
+ }
1468
+ ],
1469
+ tags: []
1470
+ }));
1301
1471
  return {
1302
- uid: e.uid ?? "",
1303
- kind: "layout",
1304
- type: "tabs",
1305
- props: {
1306
- tabs: e.tabs,
1307
- renderMode: e.renderMode ?? "all",
1308
- ...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
1309
- },
1310
- children: []
1472
+ type: "ITEMS",
1473
+ itemType: "TABS",
1474
+ items: [{ def: {
1475
+ tabs: a,
1476
+ ...t
1477
+ }, children: i }],
1478
+ tags: s ?? []
1311
1479
  };
1312
1480
  }
1313
- function Ye(e, t) {
1314
- const s = t.walkChildren(t.children ?? []);
1315
- if (e.kind === "static")
1316
- return { ...t.mapStaticDef(e.def, "TABS"), children: s };
1317
- const a = e.fn;
1318
- return ((i) => {
1319
- const n = a(i);
1320
- return { ...t.mapStaticDef(n, "TABS"), children: s };
1321
- });
1322
- }
1323
- function $e(e) {
1324
- return e.children;
1481
+ function ce(e) {
1482
+ return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
1325
1483
  }
1326
- const J = u({
1327
- itemType: "TABS",
1328
- kind: "layout",
1329
- entryShape: "compound",
1330
- mapToWidget: Ke,
1331
- buildCustomWidget: Ye,
1332
- getChildren: $e
1333
- }), Zs = J.gsl, ea = J.gslByUid;
1334
- function ze(e) {
1484
+ function ta(e, t, s) {
1485
+ const a = e.map((l) => ({
1486
+ label: l.label,
1487
+ uid: l.uid ?? ce(l.label)
1488
+ })), i = e.map((l) => ({
1489
+ type: "ITEMS",
1490
+ itemType: y.LAYOUTS,
1491
+ items: [
1492
+ {
1493
+ def: { uid: l.uid ?? ce(l.label), direction: "column", widgetName: "flex" },
1494
+ children: l.children
1495
+ }
1496
+ ],
1497
+ tags: []
1498
+ }));
1335
1499
  return {
1336
- uid: e.uid ?? "",
1337
- kind: "layout",
1338
- type: "accordion",
1339
- props: {
1340
- sections: e.sections,
1341
- renderMode: e.renderMode ?? "all",
1342
- ...e.singleOpen != null ? { singleOpen: e.singleOpen } : {},
1343
- ...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
1344
- },
1345
- children: []
1500
+ type: "ITEMS",
1501
+ itemType: "ACCORDION",
1502
+ items: [{ def: {
1503
+ sections: a,
1504
+ ...t
1505
+ }, children: i }],
1506
+ tags: s ?? []
1346
1507
  };
1347
1508
  }
1348
- function Fe(e, t) {
1349
- const s = t.walkChildren(t.children ?? []);
1350
- if (e.kind === "static")
1351
- return { ...t.mapStaticDef(e.def, "ACCORDION"), children: s };
1352
- const a = e.fn;
1353
- return ((i) => {
1354
- const n = a(i);
1355
- return { ...t.mapStaticDef(n, "ACCORDION"), children: s };
1356
- });
1357
- }
1358
- function Oe(e) {
1359
- return e.children;
1509
+ function sa(e, t, s, a) {
1510
+ if (typeof s == "function") {
1511
+ const l = s;
1512
+ return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (T) => ({
1513
+ customType: e,
1514
+ ...l(T)
1515
+ }), children: t }], tags: a ?? [] };
1516
+ }
1517
+ return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...s }, children: t }], tags: a ?? [] };
1360
1518
  }
1361
- const Q = u({
1362
- itemType: "ACCORDION",
1363
- kind: "layout",
1364
- entryShape: "compound",
1365
- mapToWidget: ze,
1366
- buildCustomWidget: Fe,
1367
- getChildren: Oe
1368
- }), ta = Q.gsl, sa = Q.gslByUid, Z = u({
1369
- itemType: "CUSTOM_INPUT",
1370
- kind: "input",
1371
- entryShape: "keyed",
1372
- sensibleDefaults: {
1373
- base: {
1374
- suppressAutomaticLabels: !1
1375
- },
1376
- fields: ["suppressAutomaticLabels"],
1377
- apply: (e, t) => d(e, t)
1378
- },
1379
- mapToWidget: (e) => ({
1380
- uid: e.uid ?? "",
1381
- kind: "input",
1382
- type: e.customType,
1383
- path: e.path ?? "",
1384
- ...e.label != null ? { label: e.label } : {},
1385
- ...e.disabled != null ? { disabled: e.disabled } : {},
1386
- ...e.readonly != null ? { readonly: e.readonly } : {},
1387
- ...e.defaultValue != null ? { defaultValue: e.defaultValue } : {},
1388
- ...e.validator != null ? { validator: e.validator } : {},
1389
- props: e.props ?? {}
1390
- })
1391
- }), aa = Z.gsl, ia = Z.gslByUid, ee = u({
1392
- itemType: "CUSTOM_ACTION",
1393
- kind: "action",
1394
- entryShape: "bare",
1395
- mapToWidget: (e) => {
1396
- const {
1397
- uid: t,
1398
- label: s,
1399
- disabled: a,
1400
- on: i,
1401
- onClick: n,
1402
- data: l,
1403
- customType: p,
1404
- tags: o,
1405
- size: T,
1406
- include: g,
1407
- exclude: ye,
1408
- states: me,
1409
- props: ne,
1410
- ...b
1411
- } = e;
1412
- return {
1413
- uid: t ?? "",
1414
- kind: "action",
1415
- type: e.customType,
1416
- label: s,
1417
- disabled: a,
1418
- ...i != null ? { on: i } : {},
1419
- props: { ...ne, ...b }
1420
- };
1421
- },
1422
- afterMerge: (e, t) => pe.extractOnClickFromMergeResult(
1423
- e,
1424
- t.eventRegistry,
1425
- t.eventIdGenerator
1426
- )
1427
- }), na = ee.gsl, la = ee.gslByUid, te = u({
1428
- itemType: "CUSTOM_DISPLAY",
1429
- kind: "display",
1430
- entryShape: "bare",
1431
- mapToWidget: (e) => ({
1432
- uid: e.uid ?? "",
1433
- kind: "display",
1434
- type: e.customType,
1435
- props: e.props ?? {}
1436
- })
1437
- }), oa = te.gsl, ua = te.gslByUid;
1438
- function Xe(e) {
1519
+ function aa(e, t, s) {
1520
+ const { template: a, ...i } = t;
1439
1521
  return {
1440
- uid: e.uid ?? "",
1441
- kind: "layout",
1442
- type: e.customType,
1443
- props: e.props ?? {},
1444
- children: []
1522
+ type: "ITEMS",
1523
+ itemType: "REPEATER",
1524
+ items: [{ key: e, def: i, children: a }],
1525
+ tags: s ?? []
1445
1526
  };
1446
1527
  }
1447
- function He(e, t) {
1448
- const s = t.walkChildren(t.children ?? []);
1449
- if (e.kind === "static")
1450
- return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: s };
1451
- const a = e.fn;
1452
- return ((i) => {
1453
- const n = a(i);
1454
- return { ...t.mapStaticDef(n, "CUSTOM_LAYOUT"), children: s };
1455
- });
1456
- }
1457
- function Ve(e) {
1458
- return e.children;
1459
- }
1460
- const se = u({
1461
- itemType: "CUSTOM_LAYOUT",
1462
- kind: "layout",
1463
- entryShape: "compound",
1464
- mapToWidget: Xe,
1465
- buildCustomWidget: He,
1466
- getChildren: Ve
1467
- }), pa = se.gsl, ra = se.gslByUid, ae = u({
1468
- itemType: "TAGS",
1469
- kind: "input",
1470
- entryShape: "keyed",
1471
- sensibleDefaults: {
1472
- base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
1473
- fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1474
- apply: (e, t) => m(d(e, t), t)
1475
- },
1476
- mapToWidget: (e) => ({
1477
- uid: e.uid ?? "",
1478
- kind: "input",
1479
- type: "tags",
1480
- path: e.path ?? "",
1481
- ...e.label != null ? { label: e.label } : {},
1482
- ...e.disabled != null ? { disabled: e.disabled } : {},
1483
- ...e.readonly != null ? { readonly: e.readonly } : {},
1484
- ...e.validator != null ? { validator: c(e.validator, "array") } : {},
1485
- props: r(e)
1486
- })
1487
- }), da = ae.gsl, ca = ae.gslByUid, je = [
1488
- I,
1489
- X,
1490
- H,
1491
- V,
1492
- L,
1493
- v,
1494
- N,
1495
- D,
1496
- P,
1497
- k,
1498
- f,
1499
- Y,
1500
- $,
1501
- z,
1502
- M,
1503
- C,
1504
- A,
1505
- h,
1506
- J,
1507
- R,
1508
- ae,
1509
- j,
1510
- q,
1511
- B,
1512
- E,
1513
- Q,
1514
- Be,
1515
- U,
1516
- W,
1517
- K,
1518
- w,
1519
- x,
1520
- G,
1521
- F,
1522
- O,
1523
- te,
1524
- Z,
1525
- ee,
1526
- se
1527
- ], ie = ge();
1528
- for (const e of je)
1529
- be(ie, e);
1530
- function ya(e) {
1531
- return _e(
1532
- ie,
1533
- e
1534
- );
1528
+ function ia(e, t, s) {
1529
+ if (typeof t == "function") {
1530
+ const n = t;
1531
+ return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (o) => ({ type: "tags", ...n(o) }) }], tags: s ?? [] };
1532
+ }
1533
+ const a = { type: "tags", ...t };
1534
+ return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: a }], tags: s ?? [] };
1535
1535
  }
1536
- const qe = {
1537
- bareItemToWidget: (e) => Ae(e),
1536
+ const na = (e) => b(e, (t) => t.type === "text"), la = (e) => b(e, (t) => t.type === "number"), oa = (e) => b(e, (t) => t.type === "boolean"), ua = Ae({
1537
+ // Inputs
1538
+ inputs: b,
1539
+ inputByUid: Me,
1540
+ textInputs: na,
1541
+ numberInputs: la,
1542
+ booleanInputs: oa,
1543
+ selects: dt,
1544
+ selectByUid: ct,
1545
+ dropdowns: Mt,
1546
+ dropdownByUid: Bt,
1547
+ radiogroups: yt,
1548
+ radiogroupByUid: mt,
1549
+ checkboxes: Je,
1550
+ checkboxByUid: Qe,
1551
+ textareas: He,
1552
+ textareaByUid: Ve,
1553
+ passwords: je,
1554
+ passwordByUid: qe,
1555
+ currencies: ot,
1556
+ currencyByUid: ut,
1557
+ markdowns: $t,
1558
+ markdownByUid: Ft,
1559
+ lists: kt,
1560
+ listByUid: St,
1561
+ calendars: Ye,
1562
+ calendarByUid: $e,
1563
+ dateTimeCalendars: Fe,
1564
+ dateTimeCalendarByUid: ze,
1565
+ dateInputs: Ze,
1566
+ dateInputByUid: et,
1567
+ timeInputs: tt,
1568
+ timeInputByUid: st,
1569
+ timePickers: at,
1570
+ timePickerByUid: it,
1571
+ dateTimeInputs: nt,
1572
+ dateTimeInputByUid: lt,
1573
+ datePickers: Dt,
1574
+ datePickerByUid: Pt,
1575
+ dateTimePickers: Oe,
1576
+ dateTimePickerByUid: Xe,
1577
+ rangeCalendars: rt,
1578
+ rangeCalendarByUid: pt,
1579
+ rangeDateInputs: zt,
1580
+ rangeDateInputByUid: Ot,
1581
+ rangeTimeInputs: Xt,
1582
+ rangeTimeInputByUid: Ht,
1583
+ rangeDateTimeInputs: Vt,
1584
+ rangeDateTimeInputByUid: jt,
1585
+ rangeDateTimeCalendars: qt,
1586
+ rangeDateTimeCalendarByUid: Jt,
1587
+ rangeDateTimePickers: Qt,
1588
+ rangeDateTimePickerByUid: Zt,
1589
+ rangeDatePickers: es,
1590
+ rangeDatePickerByUid: ts,
1591
+ rangeTimePickers: ss,
1592
+ rangeTimePickerByUid: as,
1593
+ repeaters: X,
1594
+ repeaterByUid: me,
1595
+ // Actions, displays, layouts
1596
+ actions: Re,
1597
+ actionByUid: Le,
1598
+ layouts: Ne,
1599
+ layoutByUid: We,
1600
+ displays: Ge,
1601
+ displayByUid: Ke,
1602
+ alerts: At,
1603
+ alertByUid: Et,
1604
+ markdownTexts: ht,
1605
+ markdownTextByUid: Ut,
1606
+ tabs: It,
1607
+ tabsByUid: _t,
1608
+ accordions: ft,
1609
+ accordionByUid: Ct,
1610
+ // Custom kinds
1611
+ customInputs: ls,
1612
+ customInputByUid: os,
1613
+ customActions: us,
1614
+ customActionByUid: rs,
1615
+ customDisplays: is,
1616
+ customDisplayByUid: ns,
1617
+ customLayouts: ys,
1618
+ customLayoutByUid: ms
1619
+ }), ra = {
1620
+ bareItemToWidget: (e) => Te(e),
1538
1621
  rootEntry: (e) => {
1539
1622
  const t = {
1540
1623
  def: { uid: "#root", direction: "column", widgetName: "flex" },
@@ -1542,136 +1625,198 @@ const qe = {
1542
1625
  };
1543
1626
  return { type: "ITEMS", itemType: y.LAYOUTS, items: [t], tags: [] };
1544
1627
  }
1545
- }, Je = Ie({ registry: ie, adapter: qe }), ma = Se(Je);
1628
+ }, pa = {
1629
+ inputs: {
1630
+ textInput: gs,
1631
+ numberInput: bs,
1632
+ booleanInput: Is,
1633
+ select: _s,
1634
+ dropdown: ks,
1635
+ radiogroup: Ss,
1636
+ checkbox: As,
1637
+ textarea: Es,
1638
+ password: hs,
1639
+ currency: Us,
1640
+ markdown: Ds,
1641
+ list: Ps,
1642
+ calendar: Ms,
1643
+ dateTimeCalendar: Bs,
1644
+ dateInput: Rs,
1645
+ datePicker: Ls,
1646
+ dateTimePicker: vs,
1647
+ timeInput: Ys,
1648
+ timePicker: $s,
1649
+ dateTimeInput: Fs,
1650
+ rangeCalendar: fs,
1651
+ rangeDateInput: Cs,
1652
+ rangeDateTimeInput: Ns,
1653
+ rangeDateTimeCalendar: Ws,
1654
+ rangeDateTimePicker: ws,
1655
+ rangeTimeInput: xs,
1656
+ rangeDatePicker: Gs,
1657
+ rangeTimePicker: Ks,
1658
+ repeater: aa,
1659
+ tags: ia,
1660
+ custom: zs
1661
+ },
1662
+ actions: {
1663
+ button: Os,
1664
+ custom: Xs
1665
+ },
1666
+ displays: {
1667
+ display: Te,
1668
+ alert: Hs,
1669
+ markdownText: Vs,
1670
+ custom: js
1671
+ },
1672
+ layouts: {
1673
+ flex: le,
1674
+ horizontalFlex: qs,
1675
+ verticalFlex: Js,
1676
+ grid: oe,
1677
+ horizontalGrid: Qs,
1678
+ verticalGrid: Zs,
1679
+ tabs: ea,
1680
+ accordion: ta,
1681
+ custom: sa
1682
+ }
1683
+ }, ue = Ee({
1684
+ name: "gui",
1685
+ registry: ne,
1686
+ facade: pa,
1687
+ selectors: ua,
1688
+ adapter: ra
1689
+ }), ga = ue.namespace, ba = ue.formDefs, Ia = ue.resolveFormInput;
1546
1690
  export {
1547
- Ys as $,
1548
- Ts as A,
1549
- gs as B,
1550
- Bs as C,
1551
- Ns as D,
1552
- Cs as E,
1553
- Ws as F,
1554
- ws as G,
1555
- xs as H,
1556
- bs as I,
1557
- _s as J,
1558
- Is as K,
1559
- Ss as L,
1560
- As as M,
1561
- Es as N,
1562
- hs as O,
1563
- ks as P,
1564
- vs as Q,
1565
- fs as R,
1566
- Ds as S,
1567
- Ps as T,
1568
- Ms as U,
1569
- Us as V,
1570
- Rs as W,
1571
- Ls as X,
1572
- Gs as Y,
1573
- Ks as Z,
1574
- S as _,
1575
- zt as a,
1576
- ot as a$,
1577
- $s as a0,
1578
- ce as a1,
1579
- fe as a2,
1580
- zs as a3,
1581
- Fs as a4,
1582
- Os as a5,
1583
- Xs as a6,
1584
- Hs as a7,
1585
- Vs as a8,
1586
- js as a9,
1587
- vt as aA,
1588
- Ae as aB,
1589
- Lt as aC,
1590
- Rt as aD,
1591
- Ut as aE,
1592
- $t as aF,
1593
- Yt as aG,
1594
- kt as aH,
1595
- ht as aI,
1596
- Et as aJ,
1597
- At as aK,
1598
- St as aL,
1599
- It as aM,
1600
- _t as aN,
1601
- bt as aO,
1602
- Mt as aP,
1603
- Pt as aQ,
1604
- Dt as aR,
1605
- gt as aS,
1606
- Tt as aT,
1607
- mt as aU,
1608
- yt as aV,
1609
- ct as aW,
1610
- dt as aX,
1611
- rt as aY,
1612
- pt as aZ,
1613
- ut as a_,
1614
- qs as aa,
1615
- Js as ab,
1616
- Qs as ac,
1617
- Zs as ad,
1618
- ea as ae,
1619
- ta as af,
1620
- sa as ag,
1621
- aa as ah,
1622
- ia as ai,
1623
- na as aj,
1624
- la as ak,
1625
- oa as al,
1626
- ua as am,
1627
- pa as an,
1628
- ra as ao,
1629
- Kt as ap,
1630
- Gt as aq,
1631
- xt as ar,
1632
- wt as as,
1633
- Wt as at,
1634
- de as au,
1635
- Ct as av,
1636
- Nt as aw,
1637
- re as ax,
1638
- Bt as ay,
1639
- ft as az,
1640
- Ft as b,
1641
- lt as b0,
1642
- nt as b1,
1643
- it as b2,
1644
- at as b3,
1645
- st as b4,
1646
- tt as b5,
1647
- et as b6,
1648
- da as b7,
1649
- ca as b8,
1650
- ya as b9,
1651
- Je as ba,
1652
- ma as bb,
1653
- Ot as c,
1654
- Xt as d,
1655
- Ht as e,
1656
- Vt as f,
1657
- jt as g,
1658
- qt as h,
1659
- Jt as i,
1660
- Qt as j,
1661
- Zt as k,
1662
- es as l,
1663
- ts as m,
1664
- ss as n,
1665
- as as o,
1666
- is as p,
1667
- ns as q,
1668
- ls as r,
1669
- os as s,
1670
- us as t,
1671
- ps as u,
1672
- rs as v,
1673
- ds as w,
1674
- cs as x,
1675
- ys as y,
1676
- ms as z
1691
+ Ot as $,
1692
+ Fe as A,
1693
+ lt as B,
1694
+ nt as C,
1695
+ Xe as D,
1696
+ Oe as E,
1697
+ Ke as F,
1698
+ Ge as G,
1699
+ Bt as H,
1700
+ Mt as I,
1701
+ Me as J,
1702
+ b as K,
1703
+ We as L,
1704
+ Ne as M,
1705
+ St as N,
1706
+ kt as O,
1707
+ Ft as P,
1708
+ Ut as Q,
1709
+ ht as R,
1710
+ $t as S,
1711
+ la as T,
1712
+ qe as U,
1713
+ je as V,
1714
+ mt as W,
1715
+ yt as X,
1716
+ pt as Y,
1717
+ rt as Z,
1718
+ Ct as _,
1719
+ ft as a,
1720
+ Ks as a$,
1721
+ zt as a0,
1722
+ ts as a1,
1723
+ es as a2,
1724
+ Jt as a3,
1725
+ qt as a4,
1726
+ jt as a5,
1727
+ Vt as a6,
1728
+ Zt as a7,
1729
+ Qt as a8,
1730
+ Ht as a9,
1731
+ js as aA,
1732
+ zs as aB,
1733
+ sa as aC,
1734
+ Rs as aD,
1735
+ Ls as aE,
1736
+ Bs as aF,
1737
+ Fs as aG,
1738
+ vs as aH,
1739
+ Te as aI,
1740
+ ks as aJ,
1741
+ le as aK,
1742
+ oe as aL,
1743
+ qs as aM,
1744
+ Qs as aN,
1745
+ Ps as aO,
1746
+ Ds as aP,
1747
+ Vs as aQ,
1748
+ bs as aR,
1749
+ hs as aS,
1750
+ Ss as aT,
1751
+ fs as aU,
1752
+ Cs as aV,
1753
+ Gs as aW,
1754
+ Ws as aX,
1755
+ Ns as aY,
1756
+ ws as aZ,
1757
+ xs as a_,
1758
+ Xt as aa,
1759
+ as as ab,
1760
+ ss as ac,
1761
+ me as ad,
1762
+ X as ae,
1763
+ ct as af,
1764
+ dt as ag,
1765
+ It as ah,
1766
+ _t as ai,
1767
+ ya as aj,
1768
+ ma as ak,
1769
+ na as al,
1770
+ Ve as am,
1771
+ He as an,
1772
+ st as ao,
1773
+ tt as ap,
1774
+ it as aq,
1775
+ at as ar,
1776
+ ta as as,
1777
+ Hs as at,
1778
+ Is as au,
1779
+ Os as av,
1780
+ Ms as aw,
1781
+ As as ax,
1782
+ Us as ay,
1783
+ Xs as az,
1784
+ Le as b,
1785
+ aa as b0,
1786
+ _s as b1,
1787
+ ea as b2,
1788
+ ia as b3,
1789
+ gs as b4,
1790
+ Es as b5,
1791
+ Ys as b6,
1792
+ $s as b7,
1793
+ Js as b8,
1794
+ Zs as b9,
1795
+ Ta as ba,
1796
+ ba as bb,
1797
+ Ia as bc,
1798
+ Re as c,
1799
+ Et as d,
1800
+ At as e,
1801
+ oa as f,
1802
+ ga as g,
1803
+ $e as h,
1804
+ Ye as i,
1805
+ Qe as j,
1806
+ Je as k,
1807
+ ot as l,
1808
+ ut as m,
1809
+ rs as n,
1810
+ us as o,
1811
+ ns as p,
1812
+ is as q,
1813
+ os as r,
1814
+ ls as s,
1815
+ ms as t,
1816
+ ys as u,
1817
+ et as v,
1818
+ Ze as w,
1819
+ Pt as x,
1820
+ Dt as y,
1821
+ ze as z
1677
1822
  };