treege 3.0.0-beta.45 → 3.0.0-beta.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/DefaultInputs-UkiUaJcf.js +1734 -0
  2. package/dist/{ThemeContext-O482h1XZ.js → ThemeContext-CNsS53ku.js} +274 -217
  3. package/dist/editor/constants/nodeTypes.d.ts +1 -1
  4. package/dist/editor/features/TreegeEditor/nodes/components/NodeGroupBadge.d.ts +5 -0
  5. package/dist/editor/features/TreegeEditor/nodes/layout/NodeWrapper.d.ts +1 -2
  6. package/dist/editor/hooks/useHistoryStore.d.ts +26 -0
  7. package/dist/editor/hooks/useUndoRedo.d.ts +31 -0
  8. package/dist/editor/utils/dagreLayout.d.ts +5 -2
  9. package/dist/editor/utils/groupColor.d.ts +14 -0
  10. package/dist/{editor-DBCMmZtt.js → editor-DrGQB__b.js} +1471 -1305
  11. package/dist/editor.js +2 -2
  12. package/dist/main.js +4 -4
  13. package/dist/renderer/features/TreegeRenderer/native/components/DefaultStep.d.ts +3 -0
  14. package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +12 -4
  15. package/dist/renderer/features/TreegeRenderer/web/components/DefaultStep.d.ts +3 -0
  16. package/dist/renderer/hooks/useRenderNode.d.ts +1 -3
  17. package/dist/renderer/index.d.ts +1 -1
  18. package/dist/renderer/index.native.d.ts +1 -1
  19. package/dist/renderer/types/renderer.d.ts +43 -5
  20. package/dist/renderer/utils/step.d.ts +27 -0
  21. package/dist/renderer-native.js +757 -685
  22. package/dist/renderer.js +3 -3
  23. package/dist/shared/locales/ar.json.d.ts +6 -1
  24. package/dist/shared/locales/de.json.d.ts +6 -1
  25. package/dist/shared/locales/en.json.d.ts +6 -1
  26. package/dist/shared/locales/es.json.d.ts +6 -1
  27. package/dist/shared/locales/fr.json.d.ts +6 -1
  28. package/dist/shared/locales/it.json.d.ts +6 -1
  29. package/dist/shared/locales/pt.json.d.ts +6 -1
  30. package/package.json +11 -11
  31. package/dist/DefaultInputs-DYKtphqY.js +0 -1701
  32. package/dist/editor/features/TreegeEditor/nodes/GroupNode.d.ts +0 -6
  33. package/dist/renderer/features/TreegeRenderer/native/components/DefaultGroup.d.ts +0 -7
  34. package/dist/renderer/features/TreegeRenderer/web/components/DefaultGroup.d.ts +0 -6
@@ -1,32 +1,12 @@
1
- import { C as e, D as t, E as n, M as r, N as i, O as a, R as o, S as s, T as c, a as l, b as u, c as d, d as f, h as p, i as m, k as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, v as C, w, x as T, y as ee } from "./ThemeContext-O482h1XZ.js";
2
- import { useCallback as E, useEffect as D, useMemo as O, useRef as k, useState as A } from "react";
3
- import { jsx as j, jsxs as M } from "react/jsx-runtime";
4
- import { ActivityIndicator as N, Alert as te, FlatList as ne, Image as P, Modal as F, ScrollView as I, StyleSheet as L, Switch as R, Text as z, TextInput as re, TouchableOpacity as B, View as V } from "react-native";
1
+ import { C as e, D as t, E as n, M as r, N as i, O as a, R as o, S as s, T as c, a as l, b as u, c as d, d as f, h as p, i as m, k as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, v as C, w, x as T, y as ee } from "./ThemeContext-CNsS53ku.js";
2
+ import { useCallback as te, useEffect as E, useMemo as D, useRef as O, useState as k } from "react";
3
+ import { jsx as A, jsxs as j } from "react/jsx-runtime";
4
+ import { ActivityIndicator as M, Alert as ne, FlatList as N, Image as re, Modal as P, ScrollView as F, StyleSheet as I, Switch as L, Text as R, TextInput as z, TouchableOpacity as B, View as V } from "react-native";
5
5
  //#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
6
- var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
6
+ var ie = ({ children: e }) => /* @__PURE__ */ A(V, {
7
7
  style: ae.container,
8
8
  children: e
9
- }), ae = L.create({ container: { padding: 16 } }), oe = ({ children: e, node: t }) => {
10
- let n = p(), { colors: r } = _(), i = n(t.data.label);
11
- return /* @__PURE__ */ M(V, {
12
- style: se.container,
13
- children: [i && /* @__PURE__ */ j(z, {
14
- style: [se.label, { color: r.text }],
15
- children: i
16
- }), /* @__PURE__ */ j(V, {
17
- style: se.content,
18
- children: e
19
- })]
20
- });
21
- }, se = L.create({
22
- container: { marginBottom: 16 },
23
- content: { gap: 8 },
24
- label: {
25
- fontSize: 16,
26
- fontWeight: "600",
27
- marginBottom: 12
28
- }
29
- }), ce = async (e, t) => {
9
+ }), ae = I.create({ container: { padding: 16 } }), oe = async (e, t) => {
30
10
  if (!e || e.trim().length < 3) return [];
31
11
  try {
32
12
  let n = await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&addressdetails=1&limit=5`, { headers: {
@@ -41,7 +21,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
41
21
  } catch (e) {
42
22
  return console.error("Nominatim fetch error:", e), [];
43
23
  }
44
- }, le = async (e, t) => {
24
+ }, se = async (e, t) => {
45
25
  if (!e || e.trim().length < 3) return [];
46
26
  try {
47
27
  let n = await fetch(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${encodeURIComponent(e)}&key=${t}`);
@@ -54,20 +34,20 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
54
34
  } catch (e) {
55
35
  return console.error("Google Places fetch error:", e), [];
56
36
  }
57
- }, ue = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, id: s, name: c }) => {
58
- let [l, u] = A(""), [d, f] = A([]), [m, h] = A(!1), [g, v] = A(!1), { language: y, googleApiKey: b } = ee(), x = p(), { colors: S } = _(), C = E((e) => {
37
+ }, ce = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, id: s, name: c }) => {
38
+ let [l, u] = k(""), [d, f] = k([]), [m, h] = k(!1), [g, v] = k(!1), { language: y, googleApiKey: b } = ee(), x = p(), { colors: S } = _(), C = te((e) => {
59
39
  n(e.value), u(""), h(!1), f([]);
60
40
  }, [n]), w = () => {
61
41
  h(!1);
62
42
  };
63
- return D(() => {
43
+ return E(() => {
64
44
  if (!l || l.trim().length < 3) {
65
45
  f([]), v(!1);
66
46
  return;
67
47
  }
68
48
  v(!0);
69
49
  let e = setTimeout(async () => {
70
- f(b ? await le(l, b) : await ce(l, y)), v(!1);
50
+ f(b ? await se(l, b) : await oe(l, y)), v(!1);
71
51
  }, 300);
72
52
  return () => {
73
53
  clearTimeout(e), v(!1);
@@ -76,17 +56,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
76
56
  l,
77
57
  y,
78
58
  b
79
- ]), /* @__PURE__ */ M(V, {
59
+ ]), /* @__PURE__ */ j(V, {
80
60
  style: H.container,
81
61
  children: [
82
- /* @__PURE__ */ M(z, {
62
+ /* @__PURE__ */ j(R, {
83
63
  style: [H.label, { color: S.textSecondary }],
84
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
64
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
85
65
  style: { color: S.error },
86
66
  children: "*"
87
67
  })]
88
68
  }),
89
- /* @__PURE__ */ M(B, {
69
+ /* @__PURE__ */ j(B, {
90
70
  style: [
91
71
  H.trigger,
92
72
  {
@@ -97,7 +77,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
97
77
  ],
98
78
  onPress: () => h(!0),
99
79
  activeOpacity: .7,
100
- children: [/* @__PURE__ */ j(z, {
80
+ children: [/* @__PURE__ */ A(R, {
101
81
  style: [
102
82
  H.triggerText,
103
83
  { color: S.text },
@@ -105,41 +85,41 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
105
85
  ],
106
86
  numberOfLines: 1,
107
87
  children: t || a || x("renderer.defaultAddressInput.enterAddress")
108
- }), /* @__PURE__ */ j(z, {
88
+ }), /* @__PURE__ */ A(R, {
109
89
  style: H.icon,
110
90
  children: "📍"
111
91
  })]
112
92
  }),
113
- /* @__PURE__ */ j(F, {
93
+ /* @__PURE__ */ A(P, {
114
94
  visible: m,
115
95
  transparent: !0,
116
96
  animationType: "fade",
117
97
  onRequestClose: w,
118
- children: /* @__PURE__ */ j(B, {
98
+ children: /* @__PURE__ */ A(B, {
119
99
  style: H.modalOverlay,
120
100
  activeOpacity: 1,
121
101
  onPress: w,
122
- children: /* @__PURE__ */ M(B, {
102
+ children: /* @__PURE__ */ j(B, {
123
103
  style: [H.modalContent, { backgroundColor: S.card }],
124
104
  activeOpacity: 1,
125
105
  onPress: () => {},
126
106
  children: [
127
- /* @__PURE__ */ M(V, {
107
+ /* @__PURE__ */ j(V, {
128
108
  style: [H.modalHeader, { borderBottomColor: S.separator }],
129
- children: [/* @__PURE__ */ j(z, {
109
+ children: [/* @__PURE__ */ A(R, {
130
110
  style: [H.modalTitle, { color: S.text }],
131
111
  children: i || e.data.name
132
- }), /* @__PURE__ */ j(B, {
112
+ }), /* @__PURE__ */ A(B, {
133
113
  onPress: w,
134
- children: /* @__PURE__ */ j(z, {
114
+ children: /* @__PURE__ */ A(R, {
135
115
  style: [H.closeButton, { color: S.textMuted }],
136
116
  children: "✕"
137
117
  })
138
118
  })]
139
119
  }),
140
- /* @__PURE__ */ M(V, {
120
+ /* @__PURE__ */ j(V, {
141
121
  style: H.searchContainer,
142
- children: [/* @__PURE__ */ j(re, {
122
+ children: [/* @__PURE__ */ A(z, {
143
123
  style: [H.searchInput, {
144
124
  backgroundColor: S.muted,
145
125
  borderColor: S.border,
@@ -152,48 +132,48 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
152
132
  autoFocus: !0,
153
133
  autoCapitalize: "none",
154
134
  autoCorrect: !1
155
- }), g && /* @__PURE__ */ j(N, {
135
+ }), g && /* @__PURE__ */ A(M, {
156
136
  size: "small",
157
137
  color: S.primary,
158
138
  style: H.searchLoader
159
139
  })]
160
140
  }),
161
- g ? /* @__PURE__ */ M(V, {
141
+ g ? /* @__PURE__ */ j(V, {
162
142
  style: H.loadingContainer,
163
- children: [/* @__PURE__ */ j(N, {
143
+ children: [/* @__PURE__ */ A(M, {
164
144
  size: "small",
165
145
  color: S.primary
166
- }), /* @__PURE__ */ j(z, {
146
+ }), /* @__PURE__ */ A(R, {
167
147
  style: [H.loadingText, { color: S.textMuted }],
168
148
  children: x("renderer.defaultAddressInput.searching")
169
149
  })]
170
- }) : /* @__PURE__ */ j(ne, {
150
+ }) : /* @__PURE__ */ A(N, {
171
151
  data: d,
172
152
  keyExtractor: (e, t) => t.toString(),
173
153
  style: H.suggestionsList,
174
154
  contentContainerStyle: H.suggestionsListContent,
175
155
  keyboardShouldPersistTaps: "handled",
176
- ListEmptyComponent: l.length >= 3 ? /* @__PURE__ */ j(V, {
156
+ ListEmptyComponent: l.length >= 3 ? /* @__PURE__ */ A(V, {
177
157
  style: H.emptyContainer,
178
- children: /* @__PURE__ */ j(z, {
158
+ children: /* @__PURE__ */ A(R, {
179
159
  style: [H.emptyText, { color: S.textMuted }],
180
160
  children: x("renderer.defaultAddressInput.noAddressesFound")
181
161
  })
182
- }) : /* @__PURE__ */ j(V, {
162
+ }) : /* @__PURE__ */ A(V, {
183
163
  style: H.emptyContainer,
184
- children: /* @__PURE__ */ j(z, {
164
+ children: /* @__PURE__ */ A(R, {
185
165
  style: [H.emptyText, { color: S.textMuted }],
186
166
  children: x("renderer.defaultAddressInput.typeMinChars")
187
167
  })
188
168
  }),
189
- renderItem: ({ item: e }) => /* @__PURE__ */ M(B, {
169
+ renderItem: ({ item: e }) => /* @__PURE__ */ j(B, {
190
170
  style: H.suggestionItem,
191
171
  onPress: () => C(e),
192
172
  activeOpacity: .7,
193
- children: [/* @__PURE__ */ j(z, {
173
+ children: [/* @__PURE__ */ A(R, {
194
174
  style: H.suggestionIcon,
195
175
  children: "📍"
196
- }), /* @__PURE__ */ j(z, {
176
+ }), /* @__PURE__ */ A(R, {
197
177
  style: [H.suggestionText, { color: S.text }],
198
178
  numberOfLines: 2,
199
179
  children: e.label
@@ -204,17 +184,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
204
184
  })
205
185
  })
206
186
  }),
207
- r && /* @__PURE__ */ j(z, {
187
+ r && /* @__PURE__ */ A(R, {
208
188
  style: [H.error, { color: S.error }],
209
189
  children: r
210
190
  }),
211
- o && !r && /* @__PURE__ */ j(z, {
191
+ o && !r && /* @__PURE__ */ A(R, {
212
192
  style: [H.helperText, { color: S.textMuted }],
213
193
  children: o
214
194
  })
215
195
  ]
216
196
  });
217
- }, H = L.create({
197
+ }, H = I.create({
218
198
  closeButton: {
219
199
  fontSize: 24,
220
200
  fontWeight: "300"
@@ -324,8 +304,8 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
324
304
  flex: 1,
325
305
  fontSize: 14
326
306
  }
327
- }), U = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
328
- let [s, c] = A(!1), [l, u] = A(""), d = p(), { colors: f } = _(), m = e.data.options || [], h = m.find((e) => e.value === t), g = O(() => {
307
+ }), le = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
308
+ let [s, c] = k(!1), [l, u] = k(""), d = p(), { colors: f } = _(), m = e.data.options || [], h = m.find((e) => e.value === t), g = D(() => {
329
309
  if (!l.trim()) return m;
330
310
  let e = l.toLowerCase();
331
311
  return m.filter((t) => d(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
@@ -338,19 +318,19 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
338
318
  }, y = () => {
339
319
  c(!1), u("");
340
320
  };
341
- return /* @__PURE__ */ M(V, {
342
- style: W.container,
321
+ return /* @__PURE__ */ j(V, {
322
+ style: U.container,
343
323
  children: [
344
- /* @__PURE__ */ M(z, {
345
- style: [W.label, { color: f.textSecondary }],
346
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
324
+ /* @__PURE__ */ j(R, {
325
+ style: [U.label, { color: f.textSecondary }],
326
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
347
327
  style: { color: f.error },
348
328
  children: "*"
349
329
  })]
350
330
  }),
351
- /* @__PURE__ */ M(B, {
331
+ /* @__PURE__ */ j(B, {
352
332
  style: [
353
- W.trigger,
333
+ U.trigger,
354
334
  {
355
335
  backgroundColor: f.input,
356
336
  borderColor: f.border
@@ -359,50 +339,50 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
359
339
  ],
360
340
  onPress: () => c(!0),
361
341
  activeOpacity: .7,
362
- children: [/* @__PURE__ */ j(z, {
342
+ children: [/* @__PURE__ */ A(R, {
363
343
  style: [
364
- W.triggerText,
344
+ U.triggerText,
365
345
  { color: f.text },
366
346
  !t && { color: f.textMuted }
367
347
  ],
368
348
  numberOfLines: 1,
369
349
  children: t && h ? d(h.label) : a || d("renderer.defaultAutocompleteInput.selectOption")
370
- }), /* @__PURE__ */ j(z, {
371
- style: [W.arrow, { color: f.textMuted }],
350
+ }), /* @__PURE__ */ A(R, {
351
+ style: [U.arrow, { color: f.textMuted }],
372
352
  children: "▼"
373
353
  })]
374
354
  }),
375
- /* @__PURE__ */ j(F, {
355
+ /* @__PURE__ */ A(P, {
376
356
  visible: s,
377
357
  transparent: !0,
378
358
  animationType: "fade",
379
359
  onRequestClose: y,
380
- children: /* @__PURE__ */ j(B, {
381
- style: W.modalOverlay,
360
+ children: /* @__PURE__ */ A(B, {
361
+ style: U.modalOverlay,
382
362
  activeOpacity: 1,
383
363
  onPress: y,
384
- children: /* @__PURE__ */ M(B, {
385
- style: [W.modalContent, { backgroundColor: f.card }],
364
+ children: /* @__PURE__ */ j(B, {
365
+ style: [U.modalContent, { backgroundColor: f.card }],
386
366
  activeOpacity: 1,
387
367
  onPress: () => {},
388
368
  children: [
389
- /* @__PURE__ */ M(V, {
390
- style: [W.modalHeader, { borderBottomColor: f.separator }],
391
- children: [/* @__PURE__ */ j(z, {
392
- style: [W.modalTitle, { color: f.text }],
369
+ /* @__PURE__ */ j(V, {
370
+ style: [U.modalHeader, { borderBottomColor: f.separator }],
371
+ children: [/* @__PURE__ */ A(R, {
372
+ style: [U.modalTitle, { color: f.text }],
393
373
  children: i || e.data.name
394
- }), /* @__PURE__ */ j(B, {
374
+ }), /* @__PURE__ */ A(B, {
395
375
  onPress: y,
396
- children: /* @__PURE__ */ j(z, {
397
- style: [W.closeButton, { color: f.textMuted }],
376
+ children: /* @__PURE__ */ A(R, {
377
+ style: [U.closeButton, { color: f.textMuted }],
398
378
  children: "✕"
399
379
  })
400
380
  })]
401
381
  }),
402
- /* @__PURE__ */ j(V, {
403
- style: W.searchContainer,
404
- children: /* @__PURE__ */ j(re, {
405
- style: [W.searchInput, {
382
+ /* @__PURE__ */ A(V, {
383
+ style: U.searchContainer,
384
+ children: /* @__PURE__ */ A(z, {
385
+ style: [U.searchInput, {
406
386
  backgroundColor: f.muted,
407
387
  borderColor: f.border,
408
388
  color: f.text
@@ -416,34 +396,34 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
416
396
  autoCorrect: !1
417
397
  })
418
398
  }),
419
- /* @__PURE__ */ j(ne, {
399
+ /* @__PURE__ */ A(N, {
420
400
  data: g,
421
401
  keyExtractor: (e) => e.value,
422
- style: W.optionsList,
423
- contentContainerStyle: W.optionsListContent,
424
- ListEmptyComponent: /* @__PURE__ */ j(V, {
425
- style: W.emptyContainer,
426
- children: /* @__PURE__ */ j(z, {
427
- style: [W.emptyText, { color: f.textMuted }],
402
+ style: U.optionsList,
403
+ contentContainerStyle: U.optionsListContent,
404
+ ListEmptyComponent: /* @__PURE__ */ A(V, {
405
+ style: U.emptyContainer,
406
+ children: /* @__PURE__ */ A(R, {
407
+ style: [U.emptyText, { color: f.textMuted }],
428
408
  children: d("renderer.defaultAutocompleteInput.noResults")
429
409
  })
430
410
  }),
431
411
  renderItem: ({ item: e }) => {
432
412
  let n = e.value === t;
433
- return /* @__PURE__ */ M(B, {
434
- style: [W.option, n && { backgroundColor: f.primaryLight }],
413
+ return /* @__PURE__ */ j(B, {
414
+ style: [U.option, n && { backgroundColor: f.primaryLight }],
435
415
  onPress: () => v(e.value),
436
416
  disabled: e.disabled,
437
417
  activeOpacity: .7,
438
- children: [/* @__PURE__ */ j(z, {
418
+ children: [/* @__PURE__ */ A(R, {
439
419
  style: [
440
- W.optionText,
420
+ U.optionText,
441
421
  { color: f.text },
442
422
  e.disabled && { color: f.textMuted }
443
423
  ],
444
424
  children: d(e.label)
445
- }), n && /* @__PURE__ */ j(z, {
446
- style: [W.checkmark, { color: f.primary }],
425
+ }), n && /* @__PURE__ */ A(R, {
426
+ style: [U.checkmark, { color: f.primary }],
447
427
  children: "✓"
448
428
  })]
449
429
  });
@@ -453,17 +433,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
453
433
  })
454
434
  })
455
435
  }),
456
- r && /* @__PURE__ */ j(z, {
457
- style: [W.error, { color: f.error }],
436
+ r && /* @__PURE__ */ A(R, {
437
+ style: [U.error, { color: f.error }],
458
438
  children: r
459
439
  }),
460
- o && !r && /* @__PURE__ */ j(z, {
461
- style: [W.helperText, { color: f.textMuted }],
440
+ o && !r && /* @__PURE__ */ A(R, {
441
+ style: [U.helperText, { color: f.textMuted }],
462
442
  children: o
463
443
  })
464
444
  ]
465
445
  });
466
- }, W = L.create({
446
+ }, U = I.create({
467
447
  arrow: { fontSize: 12 },
468
448
  checkmark: {
469
449
  fontSize: 18,
@@ -554,23 +534,23 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
554
534
  flex: 1,
555
535
  fontSize: 14
556
536
  }
557
- }), de = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
537
+ }), W = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
558
538
  let o = p(), { colors: s } = _(), c = e.data.options || [], l = c.length > 0, u = Array.isArray(t) ? t : [], d = typeof t == "boolean" ? t : !1, f = (e) => {
559
539
  n(l ? u.includes(e) ? u.filter((t) => t !== e) : [...u, e] : !d);
560
540
  }, m = (e) => l ? u.includes(e) : d;
561
- return /* @__PURE__ */ M(V, {
541
+ return /* @__PURE__ */ j(V, {
562
542
  style: G.container,
563
543
  children: [
564
- /* @__PURE__ */ M(z, {
544
+ /* @__PURE__ */ j(R, {
565
545
  style: [G.label, { color: s.textSecondary }],
566
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
546
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
567
547
  style: { color: s.error },
568
548
  children: "*"
569
549
  })]
570
550
  }),
571
551
  c.length > 0 ? c.map((e) => {
572
552
  let t = o(e.description);
573
- return /* @__PURE__ */ M(B, {
553
+ return /* @__PURE__ */ j(B, {
574
554
  style: G.option,
575
555
  onPress: () => f(e.value),
576
556
  disabled: e.disabled,
@@ -582,7 +562,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
582
562
  disabled: e.disabled
583
563
  },
584
564
  accessibilityLabel: o(e.label) || e.value,
585
- children: [/* @__PURE__ */ j(V, {
565
+ children: [/* @__PURE__ */ A(V, {
586
566
  style: [
587
567
  G.checkbox,
588
568
  {
@@ -594,26 +574,26 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
594
574
  borderColor: s.primary
595
575
  }
596
576
  ],
597
- children: m(e.value) && /* @__PURE__ */ j(z, {
577
+ children: m(e.value) && /* @__PURE__ */ A(R, {
598
578
  style: G.checkmark,
599
579
  children: "✓"
600
580
  })
601
- }), /* @__PURE__ */ M(V, {
581
+ }), /* @__PURE__ */ j(V, {
602
582
  style: G.optionTextContainer,
603
- children: [/* @__PURE__ */ j(z, {
583
+ children: [/* @__PURE__ */ A(R, {
604
584
  style: [
605
585
  G.optionLabel,
606
586
  { color: s.textSecondary },
607
587
  e.disabled && { color: s.textMuted }
608
588
  ],
609
589
  children: o(e.label) || e.value
610
- }), t && /* @__PURE__ */ j(z, {
590
+ }), t && /* @__PURE__ */ A(R, {
611
591
  style: [G.optionDescription, { color: s.textMuted }],
612
592
  children: t
613
593
  })]
614
594
  })]
615
595
  }, e.value);
616
- }) : /* @__PURE__ */ M(B, {
596
+ }) : /* @__PURE__ */ j(B, {
617
597
  style: G.option,
618
598
  onPress: () => f(""),
619
599
  activeOpacity: .7,
@@ -621,7 +601,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
621
601
  accessibilityRole: "checkbox",
622
602
  accessibilityState: { checked: d },
623
603
  accessibilityLabel: i || e.data.name,
624
- children: [/* @__PURE__ */ j(V, {
604
+ children: [/* @__PURE__ */ A(V, {
625
605
  style: [
626
606
  G.checkbox,
627
607
  {
@@ -633,26 +613,26 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
633
613
  borderColor: s.primary
634
614
  }
635
615
  ],
636
- children: d && /* @__PURE__ */ j(z, {
616
+ children: d && /* @__PURE__ */ A(R, {
637
617
  style: G.checkmark,
638
618
  children: "✓"
639
619
  })
640
- }), /* @__PURE__ */ j(z, {
620
+ }), /* @__PURE__ */ A(R, {
641
621
  style: [G.optionLabel, { color: s.textSecondary }],
642
622
  children: i || e.data.name
643
623
  })]
644
624
  }),
645
- r && /* @__PURE__ */ j(z, {
625
+ r && /* @__PURE__ */ A(R, {
646
626
  style: [G.error, { color: s.error }],
647
627
  children: r
648
628
  }),
649
- a && !r && /* @__PURE__ */ j(z, {
629
+ a && !r && /* @__PURE__ */ A(R, {
650
630
  style: [G.helperText, { color: s.textMuted }],
651
631
  children: a
652
632
  })
653
633
  ]
654
634
  });
655
- }, G = L.create({
635
+ }, G = I.create({
656
636
  checkbox: {
657
637
  alignItems: "center",
658
638
  borderRadius: 4,
@@ -692,15 +672,15 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
692
672
  },
693
673
  optionLabel: { fontSize: 14 },
694
674
  optionTextContainer: { flex: 1 }
695
- }), fe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
696
- let [s, c] = A(!1), l = p(), { colors: u } = _(), d = t ? new Date(t) : void 0, { year: f, month: m, today: h } = O(() => {
675
+ }), ue = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
676
+ let [s, c] = k(!1), l = p(), { colors: u } = _(), d = t ? new Date(t) : void 0, { year: f, month: m, today: h } = D(() => {
697
677
  let e = d || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
698
678
  return r.setHours(0, 0, 0, 0), {
699
679
  month: n,
700
680
  today: r,
701
681
  year: t
702
682
  };
703
- }, [d]), [g, v] = A(f), [y, b] = A(m), x = [
683
+ }, [d]), [g, v] = k(f), [y, b] = k(m), x = [
704
684
  "January",
705
685
  "February",
706
686
  "March",
@@ -713,7 +693,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
713
693
  "October",
714
694
  "November",
715
695
  "December"
716
- ], S = O(() => {
696
+ ], S = D(() => {
717
697
  let e = new Date(g, y, 1).getDay(), t = new Date(g, y + 1, 0).getDate(), n = new Date(g, y, 0).getDate(), r = [];
718
698
  for (let t = e - 1; t >= 0; t--) r.push({
719
699
  date: new Date(g, y - 1, n - t),
@@ -732,7 +712,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
732
712
  isCurrentMonth: !1
733
713
  });
734
714
  return r;
735
- }, [g, y]), C = E((t) => {
715
+ }, [g, y]), C = te((t) => {
736
716
  e.data.disablePast && t < h || (n(t.toISOString()), c(!1));
737
717
  }, [
738
718
  e.data.disablePast,
@@ -742,18 +722,18 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
742
722
  y === 0 ? (b(11), v(g - 1)) : b(y - 1);
743
723
  }, T = () => {
744
724
  y === 11 ? (b(0), v(g + 1)) : b(y + 1);
745
- }, ee = () => d ? d.toLocaleDateString() : a || l("renderer.defaultInputs.selectDate"), D = (t) => e.data.disablePast ? t < h : !1, k = (e) => d ? e.getDate() === d.getDate() && e.getMonth() === d.getMonth() && e.getFullYear() === d.getFullYear() : !1;
746
- return /* @__PURE__ */ M(V, {
725
+ }, ee = () => d ? d.toLocaleDateString() : a || l("renderer.defaultInputs.selectDate"), E = (t) => e.data.disablePast ? t < h : !1, O = (e) => d ? e.getDate() === d.getDate() && e.getMonth() === d.getMonth() && e.getFullYear() === d.getFullYear() : !1;
726
+ return /* @__PURE__ */ j(V, {
747
727
  style: K.container,
748
728
  children: [
749
- /* @__PURE__ */ M(z, {
729
+ /* @__PURE__ */ j(R, {
750
730
  style: [K.label, { color: u.textSecondary }],
751
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
731
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
752
732
  style: { color: u.error },
753
733
  children: "*"
754
734
  })]
755
735
  }),
756
- /* @__PURE__ */ M(B, {
736
+ /* @__PURE__ */ j(B, {
757
737
  style: [
758
738
  K.trigger,
759
739
  {
@@ -764,7 +744,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
764
744
  ],
765
745
  onPress: () => c(!0),
766
746
  activeOpacity: .7,
767
- children: [/* @__PURE__ */ j(z, {
747
+ children: [/* @__PURE__ */ A(R, {
768
748
  style: [
769
749
  K.triggerText,
770
750
  { color: u.text },
@@ -772,50 +752,50 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
772
752
  ],
773
753
  numberOfLines: 1,
774
754
  children: ee()
775
- }), /* @__PURE__ */ j(z, {
755
+ }), /* @__PURE__ */ A(R, {
776
756
  style: K.icon,
777
757
  children: "📅"
778
758
  })]
779
759
  }),
780
- /* @__PURE__ */ j(F, {
760
+ /* @__PURE__ */ A(P, {
781
761
  visible: s,
782
762
  transparent: !0,
783
763
  animationType: "fade",
784
764
  onRequestClose: () => c(!1),
785
- children: /* @__PURE__ */ j(B, {
765
+ children: /* @__PURE__ */ A(B, {
786
766
  style: K.modalOverlay,
787
767
  activeOpacity: 1,
788
768
  onPress: () => c(!1),
789
- children: /* @__PURE__ */ M(B, {
769
+ children: /* @__PURE__ */ j(B, {
790
770
  style: [K.modalContent, { backgroundColor: u.card }],
791
771
  activeOpacity: 1,
792
772
  onPress: () => {},
793
773
  children: [
794
- /* @__PURE__ */ M(V, {
774
+ /* @__PURE__ */ j(V, {
795
775
  style: [K.modalHeader, { borderBottomColor: u.separator }],
796
- children: [/* @__PURE__ */ j(z, {
776
+ children: [/* @__PURE__ */ A(R, {
797
777
  style: [K.modalTitle, { color: u.text }],
798
778
  children: i || e.data.name
799
- }), /* @__PURE__ */ j(B, {
779
+ }), /* @__PURE__ */ A(B, {
800
780
  onPress: () => c(!1),
801
- children: /* @__PURE__ */ j(z, {
781
+ children: /* @__PURE__ */ A(R, {
802
782
  style: [K.closeButton, { color: u.textMuted }],
803
783
  children: "✕"
804
784
  })
805
785
  })]
806
786
  }),
807
- /* @__PURE__ */ M(V, {
787
+ /* @__PURE__ */ j(V, {
808
788
  style: K.calendarHeader,
809
789
  children: [
810
- /* @__PURE__ */ j(B, {
790
+ /* @__PURE__ */ A(B, {
811
791
  onPress: w,
812
792
  style: K.navButton,
813
- children: /* @__PURE__ */ j(z, {
793
+ children: /* @__PURE__ */ A(R, {
814
794
  style: [K.navButtonText, { color: u.primary }],
815
795
  children: "‹"
816
796
  })
817
797
  }),
818
- /* @__PURE__ */ M(z, {
798
+ /* @__PURE__ */ j(R, {
819
799
  style: [K.monthYear, { color: u.text }],
820
800
  children: [
821
801
  x[y],
@@ -823,17 +803,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
823
803
  g
824
804
  ]
825
805
  }),
826
- /* @__PURE__ */ j(B, {
806
+ /* @__PURE__ */ A(B, {
827
807
  onPress: T,
828
808
  style: K.navButton,
829
- children: /* @__PURE__ */ j(z, {
809
+ children: /* @__PURE__ */ A(R, {
830
810
  style: [K.navButtonText, { color: u.primary }],
831
811
  children: "›"
832
812
  })
833
813
  })
834
814
  ]
835
815
  }),
836
- /* @__PURE__ */ j(V, {
816
+ /* @__PURE__ */ A(V, {
837
817
  style: K.weekDays,
838
818
  children: [
839
819
  "Sun",
@@ -843,12 +823,12 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
843
823
  "Thu",
844
824
  "Fri",
845
825
  "Sat"
846
- ].map((e) => /* @__PURE__ */ j(z, {
826
+ ].map((e) => /* @__PURE__ */ A(R, {
847
827
  style: [K.weekDay, { color: u.textMuted }],
848
828
  children: e
849
829
  }, e))
850
830
  }),
851
- /* @__PURE__ */ j(ne, {
831
+ /* @__PURE__ */ A(N, {
852
832
  data: S,
853
833
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
854
834
  numColumns: 7,
@@ -856,8 +836,8 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
856
836
  style: K.calendar,
857
837
  contentContainerStyle: K.calendarContent,
858
838
  renderItem: ({ item: e }) => {
859
- let t = D(e.date), n = k(e.date);
860
- return /* @__PURE__ */ j(B, {
839
+ let t = E(e.date), n = O(e.date);
840
+ return /* @__PURE__ */ A(B, {
861
841
  style: [
862
842
  K.dayCell,
863
843
  !e.isCurrentMonth && K.dayCellOtherMonth,
@@ -870,7 +850,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
870
850
  onPress: () => C(e.date),
871
851
  disabled: t,
872
852
  activeOpacity: .7,
873
- children: /* @__PURE__ */ j(z, {
853
+ children: /* @__PURE__ */ A(R, {
874
854
  style: [
875
855
  K.dayText,
876
856
  { color: u.text },
@@ -890,17 +870,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
890
870
  })
891
871
  })
892
872
  }),
893
- r && /* @__PURE__ */ j(z, {
873
+ r && /* @__PURE__ */ A(R, {
894
874
  style: [K.error, { color: u.error }],
895
875
  children: r
896
876
  }),
897
- o && !r && /* @__PURE__ */ j(z, {
877
+ o && !r && /* @__PURE__ */ A(R, {
898
878
  style: [K.helperText, { color: u.textMuted }],
899
879
  children: o
900
880
  })
901
881
  ]
902
882
  });
903
- }, K = L.create({
883
+ }, K = I.create({
904
884
  calendar: {
905
885
  flexGrow: 0,
906
886
  flexShrink: 1
@@ -1000,15 +980,15 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1000
980
  flexDirection: "row",
1001
981
  marginBottom: 8
1002
982
  }
1003
- }), pe = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
1004
- let [o, s] = A(!1), [c, l] = A(!0), u = p(), { colors: d } = _(), f = Array.isArray(t) ? t : [], m = f[0] ? new Date(f[0]) : void 0, h = f[1] ? new Date(f[1]) : void 0, { year: g, month: v, today: y } = O(() => {
983
+ }), de = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
984
+ let [o, s] = k(!1), [c, l] = k(!0), u = p(), { colors: d } = _(), f = Array.isArray(t) ? t : [], m = f[0] ? new Date(f[0]) : void 0, h = f[1] ? new Date(f[1]) : void 0, { year: g, month: v, today: y } = D(() => {
1005
985
  let e = m || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
1006
986
  return r.setHours(0, 0, 0, 0), {
1007
987
  month: n,
1008
988
  today: r,
1009
989
  year: t
1010
990
  };
1011
- }, [m]), [b, x] = A(g), [S, C] = A(v), w = [
991
+ }, [m]), [b, x] = k(g), [S, C] = k(v), w = [
1012
992
  "January",
1013
993
  "February",
1014
994
  "March",
@@ -1021,7 +1001,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1021
1001
  "October",
1022
1002
  "November",
1023
1003
  "December"
1024
- ], T = O(() => {
1004
+ ], T = D(() => {
1025
1005
  let e = new Date(b, S, 1).getDay(), t = new Date(b, S + 1, 0).getDate(), n = new Date(b, S, 0).getDate(), r = [];
1026
1006
  for (let t = e - 1; t >= 0; t--) r.push({
1027
1007
  date: new Date(b, S - 1, n - t),
@@ -1040,7 +1020,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1040
1020
  isCurrentMonth: !1
1041
1021
  });
1042
1022
  return r;
1043
- }, [b, S]), ee = E((t) => {
1023
+ }, [b, S]), ee = te((t) => {
1044
1024
  e.data.disablePast && t < y || (c ? (n([t.toISOString(), h?.toISOString()]), l(!1)) : (n(m && t < m ? [t.toISOString(), m.toISOString()] : [m?.toISOString(), t.toISOString()]), s(!1), l(!0)));
1045
1025
  }, [
1046
1026
  e.data.disablePast,
@@ -1049,26 +1029,26 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1049
1029
  m,
1050
1030
  h,
1051
1031
  n
1052
- ]), D = () => {
1032
+ ]), E = () => {
1053
1033
  S === 0 ? (C(11), x(b - 1)) : C(S - 1);
1054
- }, k = () => {
1034
+ }, O = () => {
1055
1035
  S === 11 ? (C(0), x(b + 1)) : C(S + 1);
1056
- }, N = () => m && h ? `${m.toLocaleDateString()} - ${h.toLocaleDateString()}` : m ? m.toLocaleDateString() : u("renderer.defaultInputs.selectDateRange"), te = (t) => e.data.disablePast ? t < y : !1, P = (e) => m && h ? e >= m && e <= h : !1, I = (e) => {
1036
+ }, M = () => m && h ? `${m.toLocaleDateString()} - ${h.toLocaleDateString()}` : m ? m.toLocaleDateString() : u("renderer.defaultInputs.selectDateRange"), ne = (t) => e.data.disablePast ? t < y : !1, re = (e) => m && h ? e >= m && e <= h : !1, F = (e) => {
1057
1037
  if (!(m || h)) return !1;
1058
1038
  let t = m && e.getDate() === m.getDate() && e.getMonth() === m.getMonth() && e.getFullYear() === m.getFullYear(), n = h && e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear();
1059
1039
  return t || n;
1060
1040
  };
1061
- return /* @__PURE__ */ M(V, {
1041
+ return /* @__PURE__ */ j(V, {
1062
1042
  style: q.container,
1063
1043
  children: [
1064
- /* @__PURE__ */ M(z, {
1044
+ /* @__PURE__ */ j(R, {
1065
1045
  style: [q.label, { color: d.textSecondary }],
1066
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
1046
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
1067
1047
  style: { color: d.error },
1068
1048
  children: "*"
1069
1049
  })]
1070
1050
  }),
1071
- /* @__PURE__ */ M(B, {
1051
+ /* @__PURE__ */ j(B, {
1072
1052
  style: [
1073
1053
  q.trigger,
1074
1054
  {
@@ -1079,65 +1059,65 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1079
1059
  ],
1080
1060
  onPress: () => s(!0),
1081
1061
  activeOpacity: .7,
1082
- children: [/* @__PURE__ */ j(z, {
1062
+ children: [/* @__PURE__ */ A(R, {
1083
1063
  style: [
1084
1064
  q.triggerText,
1085
1065
  { color: d.text },
1086
1066
  !m && { color: d.textMuted }
1087
1067
  ],
1088
1068
  numberOfLines: 1,
1089
- children: N()
1090
- }), /* @__PURE__ */ j(z, {
1069
+ children: M()
1070
+ }), /* @__PURE__ */ A(R, {
1091
1071
  style: q.icon,
1092
1072
  children: "📅"
1093
1073
  })]
1094
1074
  }),
1095
- /* @__PURE__ */ j(F, {
1075
+ /* @__PURE__ */ A(P, {
1096
1076
  visible: o,
1097
1077
  transparent: !0,
1098
1078
  animationType: "fade",
1099
1079
  onRequestClose: () => s(!1),
1100
- children: /* @__PURE__ */ j(B, {
1080
+ children: /* @__PURE__ */ A(B, {
1101
1081
  style: q.modalOverlay,
1102
1082
  activeOpacity: 1,
1103
1083
  onPress: () => s(!1),
1104
- children: /* @__PURE__ */ M(B, {
1084
+ children: /* @__PURE__ */ j(B, {
1105
1085
  style: [q.modalContent, { backgroundColor: d.card }],
1106
1086
  activeOpacity: 1,
1107
1087
  onPress: () => {},
1108
1088
  children: [
1109
- /* @__PURE__ */ M(V, {
1089
+ /* @__PURE__ */ j(V, {
1110
1090
  style: [q.modalHeader, { borderBottomColor: d.separator }],
1111
- children: [/* @__PURE__ */ j(z, {
1091
+ children: [/* @__PURE__ */ A(R, {
1112
1092
  style: [q.modalTitle, { color: d.text }],
1113
1093
  children: i || e.data.name
1114
- }), /* @__PURE__ */ j(B, {
1094
+ }), /* @__PURE__ */ A(B, {
1115
1095
  onPress: () => s(!1),
1116
- children: /* @__PURE__ */ j(z, {
1096
+ children: /* @__PURE__ */ A(R, {
1117
1097
  style: [q.closeButton, { color: d.textMuted }],
1118
1098
  children: "✕"
1119
1099
  })
1120
1100
  })]
1121
1101
  }),
1122
- /* @__PURE__ */ j(V, {
1102
+ /* @__PURE__ */ A(V, {
1123
1103
  style: [q.rangeIndicator, { backgroundColor: d.primaryLight }],
1124
- children: /* @__PURE__ */ j(z, {
1104
+ children: /* @__PURE__ */ A(R, {
1125
1105
  style: [q.rangeIndicatorText, { color: d.primary }],
1126
1106
  children: u(c ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
1127
1107
  })
1128
1108
  }),
1129
- /* @__PURE__ */ M(V, {
1109
+ /* @__PURE__ */ j(V, {
1130
1110
  style: q.calendarHeader,
1131
1111
  children: [
1132
- /* @__PURE__ */ j(B, {
1133
- onPress: D,
1112
+ /* @__PURE__ */ A(B, {
1113
+ onPress: E,
1134
1114
  style: q.navButton,
1135
- children: /* @__PURE__ */ j(z, {
1115
+ children: /* @__PURE__ */ A(R, {
1136
1116
  style: [q.navButtonText, { color: d.primary }],
1137
1117
  children: "‹"
1138
1118
  })
1139
1119
  }),
1140
- /* @__PURE__ */ M(z, {
1120
+ /* @__PURE__ */ j(R, {
1141
1121
  style: [q.monthYear, { color: d.text }],
1142
1122
  children: [
1143
1123
  w[S],
@@ -1145,17 +1125,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1145
1125
  b
1146
1126
  ]
1147
1127
  }),
1148
- /* @__PURE__ */ j(B, {
1149
- onPress: k,
1128
+ /* @__PURE__ */ A(B, {
1129
+ onPress: O,
1150
1130
  style: q.navButton,
1151
- children: /* @__PURE__ */ j(z, {
1131
+ children: /* @__PURE__ */ A(R, {
1152
1132
  style: [q.navButtonText, { color: d.primary }],
1153
1133
  children: "›"
1154
1134
  })
1155
1135
  })
1156
1136
  ]
1157
1137
  }),
1158
- /* @__PURE__ */ j(V, {
1138
+ /* @__PURE__ */ A(V, {
1159
1139
  style: q.weekDays,
1160
1140
  children: [
1161
1141
  "Sun",
@@ -1165,12 +1145,12 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1165
1145
  "Thu",
1166
1146
  "Fri",
1167
1147
  "Sat"
1168
- ].map((e) => /* @__PURE__ */ j(z, {
1148
+ ].map((e) => /* @__PURE__ */ A(R, {
1169
1149
  style: [q.weekDay, { color: d.textMuted }],
1170
1150
  children: e
1171
1151
  }, e))
1172
1152
  }),
1173
- /* @__PURE__ */ j(ne, {
1153
+ /* @__PURE__ */ A(N, {
1174
1154
  data: T,
1175
1155
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
1176
1156
  numColumns: 7,
@@ -1178,8 +1158,8 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1178
1158
  style: q.calendar,
1179
1159
  contentContainerStyle: q.calendarContent,
1180
1160
  renderItem: ({ item: e }) => {
1181
- let t = te(e.date), n = P(e.date), r = I(e.date);
1182
- return /* @__PURE__ */ j(B, {
1161
+ let t = ne(e.date), n = re(e.date), r = F(e.date);
1162
+ return /* @__PURE__ */ A(B, {
1183
1163
  style: [
1184
1164
  q.dayCell,
1185
1165
  !e.isCurrentMonth && q.dayCellOtherMonth,
@@ -1193,7 +1173,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1193
1173
  onPress: () => ee(e.date),
1194
1174
  disabled: t,
1195
1175
  activeOpacity: .7,
1196
- children: /* @__PURE__ */ j(z, {
1176
+ children: /* @__PURE__ */ A(R, {
1197
1177
  style: [
1198
1178
  q.dayText,
1199
1179
  { color: d.text },
@@ -1214,17 +1194,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1214
1194
  })
1215
1195
  })
1216
1196
  }),
1217
- r && /* @__PURE__ */ j(z, {
1197
+ r && /* @__PURE__ */ A(R, {
1218
1198
  style: [q.error, { color: d.error }],
1219
1199
  children: r
1220
1200
  }),
1221
- a && !r && /* @__PURE__ */ j(z, {
1201
+ a && !r && /* @__PURE__ */ A(R, {
1222
1202
  style: [q.helperText, { color: d.textMuted }],
1223
1203
  children: a
1224
1204
  })
1225
1205
  ]
1226
1206
  });
1227
- }, q = L.create({
1207
+ }, q = I.create({
1228
1208
  calendar: {
1229
1209
  flexGrow: 0,
1230
1210
  flexShrink: 1
@@ -1334,8 +1314,8 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1334
1314
  flexDirection: "row",
1335
1315
  marginBottom: 8
1336
1316
  }
1337
- }), me = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
1338
- let [o, s] = A(null), [c, l] = A(!0), u = p(), { colors: d } = _(), f = Array.isArray(t) ? t : t ? [t] : [], m = e.data.multiple, h = E(async () => {
1317
+ }), fe = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
1318
+ let [o, s] = k(null), [c, l] = k(!0), u = p(), { colors: d } = _(), f = Array.isArray(t) ? t : t ? [t] : [], m = e.data.multiple, h = te(async () => {
1339
1319
  if (o) try {
1340
1320
  let e = (await o({ allowMultiSelection: m })).map((e) => ({
1341
1321
  data: e.uri,
@@ -1346,7 +1326,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1346
1326
  }));
1347
1327
  n(m ? [...f, ...e] : e[0] || null);
1348
1328
  } catch (e) {
1349
- e.code !== "DOCUMENT_PICKER_CANCELED" && te.alert("Error", u("renderer.defaultInputs.filePickerError"));
1329
+ e.code !== "DOCUMENT_PICKER_CANCELED" && ne.alert("Error", u("renderer.defaultInputs.filePickerError"));
1350
1330
  }
1351
1331
  }, [
1352
1332
  o,
@@ -1354,11 +1334,11 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1354
1334
  m,
1355
1335
  n,
1356
1336
  u
1357
- ]), g = E((e) => {
1337
+ ]), g = te((e) => {
1358
1338
  let t = f.filter((t, n) => n !== e);
1359
1339
  n(t.length > 0 ? t : null);
1360
1340
  }, [f, n]), v = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1361
- return D(() => {
1341
+ return E(() => {
1362
1342
  (async () => {
1363
1343
  try {
1364
1344
  let { pick: e } = await import("react-native-document-picker");
@@ -1369,47 +1349,47 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1369
1349
  l(!1);
1370
1350
  }
1371
1351
  })();
1372
- }, []), c ? null : o ? /* @__PURE__ */ M(V, {
1352
+ }, []), c ? null : o ? /* @__PURE__ */ j(V, {
1373
1353
  style: J.container,
1374
1354
  children: [
1375
- /* @__PURE__ */ M(z, {
1355
+ /* @__PURE__ */ j(R, {
1376
1356
  style: [J.label, { color: d.textSecondary }],
1377
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
1357
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
1378
1358
  style: { color: d.error },
1379
1359
  children: "*"
1380
1360
  })]
1381
1361
  }),
1382
- f.length > 0 && /* @__PURE__ */ j(V, {
1362
+ f.length > 0 && /* @__PURE__ */ A(V, {
1383
1363
  style: J.filesList,
1384
- children: f.map((e, t) => /* @__PURE__ */ M(V, {
1364
+ children: f.map((e, t) => /* @__PURE__ */ j(V, {
1385
1365
  style: [J.fileItem, {
1386
1366
  backgroundColor: d.card,
1387
1367
  borderColor: d.separator
1388
1368
  }],
1389
1369
  children: [
1390
- /* @__PURE__ */ j(V, {
1370
+ /* @__PURE__ */ A(V, {
1391
1371
  style: [J.fileIcon, { backgroundColor: d.muted }],
1392
- children: /* @__PURE__ */ j(z, {
1372
+ children: /* @__PURE__ */ A(R, {
1393
1373
  style: J.fileIconText,
1394
1374
  children: "📄"
1395
1375
  })
1396
1376
  }),
1397
- /* @__PURE__ */ M(V, {
1377
+ /* @__PURE__ */ j(V, {
1398
1378
  style: J.fileInfo,
1399
- children: [/* @__PURE__ */ j(z, {
1379
+ children: [/* @__PURE__ */ A(R, {
1400
1380
  style: [J.fileName, { color: d.text }],
1401
1381
  numberOfLines: 1,
1402
1382
  children: e.name
1403
- }), e.size > 0 && /* @__PURE__ */ j(z, {
1383
+ }), e.size > 0 && /* @__PURE__ */ A(R, {
1404
1384
  style: [J.fileSize, { color: d.textMuted }],
1405
1385
  children: v(e.size)
1406
1386
  })]
1407
1387
  }),
1408
- /* @__PURE__ */ j(B, {
1388
+ /* @__PURE__ */ A(B, {
1409
1389
  style: J.removeButton,
1410
1390
  onPress: () => g(t),
1411
1391
  activeOpacity: .7,
1412
- children: /* @__PURE__ */ j(z, {
1392
+ children: /* @__PURE__ */ A(R, {
1413
1393
  style: [J.removeButtonText, { color: d.textMuted }],
1414
1394
  children: "✕"
1415
1395
  })
@@ -1417,54 +1397,54 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1417
1397
  ]
1418
1398
  }, `${e.name}-${t}`))
1419
1399
  }),
1420
- /* @__PURE__ */ j(B, {
1400
+ /* @__PURE__ */ A(B, {
1421
1401
  style: [J.pickButton, {
1422
1402
  backgroundColor: d.input,
1423
1403
  borderColor: d.border
1424
1404
  }],
1425
1405
  onPress: h,
1426
1406
  activeOpacity: .7,
1427
- children: /* @__PURE__ */ j(z, {
1407
+ children: /* @__PURE__ */ A(R, {
1428
1408
  style: [J.pickButtonText, { color: d.textMuted }],
1429
1409
  children: f.length === 0 ? u(m ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : u(m ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
1430
1410
  })
1431
1411
  }),
1432
- r && /* @__PURE__ */ j(z, {
1412
+ r && /* @__PURE__ */ A(R, {
1433
1413
  style: [J.error, { color: d.error }],
1434
1414
  children: r
1435
1415
  }),
1436
- a && !r && /* @__PURE__ */ j(z, {
1416
+ a && !r && /* @__PURE__ */ A(R, {
1437
1417
  style: [J.helperText, { color: d.textMuted }],
1438
1418
  children: a
1439
1419
  })
1440
1420
  ]
1441
- }) : /* @__PURE__ */ M(V, {
1421
+ }) : /* @__PURE__ */ j(V, {
1442
1422
  style: J.container,
1443
1423
  children: [
1444
- /* @__PURE__ */ M(z, {
1424
+ /* @__PURE__ */ j(R, {
1445
1425
  style: [J.label, { color: d.textSecondary }],
1446
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
1426
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
1447
1427
  style: { color: d.error },
1448
1428
  children: "*"
1449
1429
  })]
1450
1430
  }),
1451
- /* @__PURE__ */ j(V, {
1431
+ /* @__PURE__ */ A(V, {
1452
1432
  style: [J.unavailableContainer, {
1453
1433
  backgroundColor: d.errorLight,
1454
1434
  borderColor: d.error
1455
1435
  }],
1456
- children: /* @__PURE__ */ j(z, {
1436
+ children: /* @__PURE__ */ A(R, {
1457
1437
  style: [J.unavailableText, { color: d.error }],
1458
1438
  children: u("renderer.defaultInputs.filePickerUnavailable")
1459
1439
  })
1460
1440
  }),
1461
- a && /* @__PURE__ */ j(z, {
1441
+ a && /* @__PURE__ */ A(R, {
1462
1442
  style: [J.helperText, { color: d.textMuted }],
1463
1443
  children: a
1464
1444
  })
1465
1445
  ]
1466
1446
  });
1467
- }, J = L.create({
1447
+ }, J = I.create({
1468
1448
  container: { marginBottom: 16 },
1469
1449
  error: {
1470
1450
  fontSize: 12,
@@ -1533,59 +1513,59 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1533
1513
  fontSize: 12,
1534
1514
  textAlign: "center"
1535
1515
  }
1536
- }), he = (e) => null, ge = (e) => e.replace(/<[^>]*>/g, ""), _e = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), ve = (e, t = {}) => e == null || e === "" ? "" : _e(ge(String(e))), ye = 100, be = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1537
- if (n > ye) return console.warn(`sanitizeHttpResponse: Maximum depth (${ye}) exceeded.`), typeof e == "string" ? ve(e, t) : "[Max Depth Exceeded]";
1516
+ }), pe = (e) => null, me = (e) => e.replace(/<[^>]*>/g, ""), he = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), ge = (e, t = {}) => e == null || e === "" ? "" : he(me(String(e))), _e = 100, ve = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1517
+ if (n > _e) return console.warn(`sanitizeHttpResponse: Maximum depth (${_e}) exceeded.`), typeof e == "string" ? ge(e, t) : "[Max Depth Exceeded]";
1538
1518
  if (e == null) return e;
1539
- if (typeof e == "string") return ve(e, t);
1540
- if (Array.isArray(e)) return e.map((e) => be(e, t, n + 1, r));
1519
+ if (typeof e == "string") return ge(e, t);
1520
+ if (Array.isArray(e)) return e.map((e) => ve(e, t, n + 1, r));
1541
1521
  if (typeof e == "object") {
1542
1522
  if (r.has(e)) return console.warn("sanitizeHttpResponse: Circular reference detected. Breaking cycle to prevent infinite recursion."), "[Circular Reference]";
1543
1523
  r.add(e);
1544
1524
  let i = {};
1545
- for (let [a, o] of Object.entries(e)) i[a] = be(o, t, n + 1, r);
1525
+ for (let [a, o] of Object.entries(e)) i[a] = ve(o, t, n + 1, r);
1546
1526
  return r.delete(e), i;
1547
1527
  }
1548
1528
  return e;
1549
- }, xe = (e) => {
1529
+ }, ye = (e) => {
1550
1530
  let t = e.matchAll(/{{([\w-]+)}}/g);
1551
1531
  return Array.from(t, (e) => e[1]);
1552
- }, Se = (e, t) => xe(e).every((e) => {
1532
+ }, be = (e, t) => ye(e).every((e) => {
1553
1533
  let n = t[e];
1554
1534
  return n != null && n !== "";
1555
- }), Ce = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1535
+ }), xe = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1556
1536
  let i = t[r], a = i == null ? "" : String(i);
1557
1537
  return n ? encodeURIComponent(a) : a;
1558
- }), we = ({ node: e, value: n, setValue: r, error: i, label: a, placeholder: o, helperText: s, id: c, name: l }) => {
1559
- let [u, d] = A(!1), [m, g] = A(null), [v, b] = A([]), [x, S] = A(""), [C, w] = A(!1), { formValues: T, inputNodes: te, headers: P } = ee(), { colors: I } = _(), { httpConfig: L } = e.data, R = p(), ie = k(!1), ae = k(""), oe = k(L), se = k(T), ce = k(te), le = k(P), ue = k(r), H = k(null), U = k(null), W = O(() => L?.url ? xe(L.url) : [], [L?.url]), de = W.length > 0, G = O(() => W.map((e) => `${e}:${String(T[e] ?? "")}`).join("|"), [W, T]), fe = O(() => L?.url ? de ? Se(L.url, T) : !0 : !1, [
1560
- L?.url,
1561
- de,
1538
+ }), Se = ({ node: e, value: n, setValue: r, error: i, label: a, placeholder: o, helperText: s, id: c, name: l }) => {
1539
+ let [u, d] = k(!1), [m, g] = k(null), [v, b] = k([]), [x, S] = k(""), [C, w] = k(!1), { formValues: T, inputNodes: ne, headers: re } = ee(), { colors: F } = _(), { httpConfig: I } = e.data, L = p(), ie = O(!1), ae = O(""), oe = O(I), se = O(T), ce = O(ne), H = O(re), le = O(r), U = O(null), W = O(null), G = D(() => I?.url ? ye(I.url) : [], [I?.url]), ue = G.length > 0, K = D(() => G.map((e) => `${e}:${String(T[e] ?? "")}`).join("|"), [G, T]), de = D(() => I?.url ? ue ? be(I.url, T) : !0 : !1, [
1540
+ I?.url,
1541
+ ue,
1562
1542
  T
1563
- ]), K = E(async (e) => {
1564
- U.current && U.current.abort();
1543
+ ]), q = te(async (e) => {
1544
+ W.current && W.current.abort();
1565
1545
  let n = new AbortController();
1566
- U.current = n;
1567
- let r = oe.current, i = se.current, a = ue.current;
1546
+ W.current = n;
1547
+ let r = oe.current, i = se.current, a = le.current;
1568
1548
  if (!r?.url) {
1569
- g(R("renderer.defaultHttpInput.noUrlConfigured")), U.current = null;
1549
+ g(L("renderer.defaultHttpInput.noUrlConfigured")), W.current = null;
1570
1550
  return;
1571
1551
  }
1572
- if (r.url && !Se(r.url, i)) {
1573
- U.current = null;
1552
+ if (r.url && !be(r.url, i)) {
1553
+ W.current = null;
1574
1554
  return;
1575
1555
  }
1576
1556
  d(!0), g(null);
1577
1557
  try {
1578
- let o = Ce(r.url, i, !0), s = r.searchParam && e ? `${o}${o.includes("?") ? "&" : "?"}${r.searchParam}=${encodeURIComponent(e)}` : o, c = (e) => ({
1558
+ let o = xe(r.url, i, !0), s = r.searchParam && e ? `${o}${o.includes("?") ? "&" : "?"}${r.searchParam}=${encodeURIComponent(e)}` : o, c = (e) => ({
1579
1559
  key: e.key,
1580
- value: Ce(e.value, i)
1560
+ value: xe(e.value, i)
1581
1561
  }), l = y([{
1582
1562
  key: "Content-Type",
1583
1563
  value: "application/json"
1584
- }], le.current?.map(c), r.headers?.map(c)), u = [
1564
+ }], H.current?.map(c), r.headers?.map(c)), u = [
1585
1565
  "POST",
1586
1566
  "PUT",
1587
1567
  "PATCH"
1588
- ].includes(r.method || "") ? r.sendAllFormValues ? JSON.stringify(t(i, ce.current)) : r.body ? Ce(r.body, i) : void 0 : void 0, p = setTimeout(() => n.abort(), 3e4), m = await fetch(s, {
1568
+ ].includes(r.method || "") ? r.sendAllFormValues ? JSON.stringify(t(i, ce.current)) : r.body ? xe(r.body, i) : void 0 : void 0, p = setTimeout(() => n.abort(), 3e4), m = await fetch(s, {
1589
1569
  body: u || void 0,
1590
1570
  headers: Object.fromEntries(l.filter((e) => e.key && e.value).map((e) => [e.key, e.value])),
1591
1571
  method: r.method || "GET",
@@ -1595,7 +1575,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1595
1575
  g(`HTTP Error ${m.status}: ${m.statusText}`), d(!1);
1596
1576
  return;
1597
1577
  }
1598
- let h = be(await m.json()), _ = r.responsePath ? f(h, r.responsePath) : h;
1578
+ let h = ve(await m.json()), _ = r.responsePath ? f(h, r.responsePath) : h;
1599
1579
  if (r.responseMapping && Array.isArray(_)) {
1600
1580
  let { valueField: e = "value", labelField: t = "label" } = r.responseMapping;
1601
1581
  b(_.map((n) => ({
@@ -1605,133 +1585,133 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1605
1585
  } else a(typeof _ == "string" ? _ : JSON.stringify(_));
1606
1586
  } catch (e) {
1607
1587
  if (e instanceof Error && e.name === "AbortError") return;
1608
- g(e instanceof Error ? e.message : R("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1588
+ g(e instanceof Error ? e.message : L("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1609
1589
  } finally {
1610
- d(!1), U.current = null;
1590
+ d(!1), W.current = null;
1611
1591
  }
1612
- }, [R]);
1613
- if (D(() => {
1614
- oe.current = L, se.current = T, ce.current = te, le.current = P, ue.current = r, H.current = K;
1592
+ }, [L]);
1593
+ if (E(() => {
1594
+ oe.current = I, se.current = T, ce.current = ne, H.current = re, le.current = r, U.current = q;
1615
1595
  }, [
1616
- L,
1596
+ I,
1617
1597
  T,
1618
- te,
1619
- P,
1598
+ ne,
1599
+ re,
1620
1600
  r,
1621
- K
1622
- ]), D(() => () => {
1623
- U.current && U.current.abort();
1624
- }, []), D(() => {
1601
+ q
1602
+ ]), E(() => () => {
1603
+ W.current && W.current.abort();
1604
+ }, []), E(() => {
1625
1605
  if (ie.current) return;
1626
1606
  ie.current = !0;
1627
- let e = oe.current, t = se.current, n = H.current, r = e?.url && Se(e.url, t);
1628
- e?.fetchOnMount && r && n && (n(), e.url && (ae.current = xe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1629
- }, []), D(() => {
1630
- if (!ie.current || !de || ae.current === G || !fe) return;
1607
+ let e = oe.current, t = se.current, n = U.current, r = e?.url && be(e.url, t);
1608
+ e?.fetchOnMount && r && n && (n(), e.url && (ae.current = ye(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1609
+ }, []), E(() => {
1610
+ if (!ie.current || !ue || ae.current === K || !de) return;
1631
1611
  let e = setTimeout(() => {
1632
- K(), ae.current = G;
1612
+ q(), ae.current = K;
1633
1613
  }, 500);
1634
1614
  return () => clearTimeout(e);
1635
1615
  }, [
1636
- G,
1616
+ K,
1617
+ ue,
1637
1618
  de,
1638
- fe,
1639
- K
1640
- ]), D(() => {
1641
- if (!(L?.searchParam && x)) return;
1619
+ q
1620
+ ]), E(() => {
1621
+ if (!(I?.searchParam && x)) return;
1642
1622
  let e = setTimeout(() => {
1643
- K(x);
1623
+ q(x);
1644
1624
  }, 300);
1645
1625
  return () => clearTimeout(e);
1646
1626
  }, [
1647
1627
  x,
1648
- L?.searchParam,
1649
- K
1650
- ]), L?.responseMapping) {
1628
+ I?.searchParam,
1629
+ q
1630
+ ]), I?.responseMapping) {
1651
1631
  let t = Array.isArray(n) ? n[0] : n, c = v.find((e) => e.value === t);
1652
- if (L.searchParam) {
1653
- let n = u && L?.showLoading;
1654
- return /* @__PURE__ */ M(V, {
1632
+ if (I.searchParam) {
1633
+ let n = u && I?.showLoading;
1634
+ return /* @__PURE__ */ j(V, {
1655
1635
  style: Y.container,
1656
1636
  children: [
1657
- /* @__PURE__ */ M(z, {
1658
- style: [Y.label, { color: I.textSecondary }],
1659
- children: [a || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
1660
- style: { color: I.error },
1637
+ /* @__PURE__ */ j(R, {
1638
+ style: [Y.label, { color: F.textSecondary }],
1639
+ children: [a || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
1640
+ style: { color: F.error },
1661
1641
  children: "*"
1662
1642
  })]
1663
1643
  }),
1664
- /* @__PURE__ */ M(B, {
1644
+ /* @__PURE__ */ j(B, {
1665
1645
  style: [
1666
1646
  Y.trigger,
1667
1647
  {
1668
- backgroundColor: I.input,
1669
- borderColor: I.border
1648
+ backgroundColor: F.input,
1649
+ borderColor: F.border
1670
1650
  },
1671
- i && { borderColor: I.error }
1651
+ i && { borderColor: F.error }
1672
1652
  ],
1673
1653
  onPress: () => w(!0),
1674
1654
  activeOpacity: .7,
1675
- children: [n ? /* @__PURE__ */ M(V, {
1655
+ children: [n ? /* @__PURE__ */ j(V, {
1676
1656
  style: Y.loadingTrigger,
1677
- children: [/* @__PURE__ */ j(N, {
1657
+ children: [/* @__PURE__ */ A(M, {
1678
1658
  size: "small",
1679
- color: I.primary
1680
- }), /* @__PURE__ */ j(z, {
1681
- style: [Y.triggerText, { color: I.textMuted }],
1659
+ color: F.primary
1660
+ }), /* @__PURE__ */ A(R, {
1661
+ style: [Y.triggerText, { color: F.textMuted }],
1682
1662
  numberOfLines: 1,
1683
- children: c?.label || o || R("renderer.defaultHttpInput.search")
1663
+ children: c?.label || o || L("renderer.defaultHttpInput.search")
1684
1664
  })]
1685
- }) : /* @__PURE__ */ j(z, {
1665
+ }) : /* @__PURE__ */ A(R, {
1686
1666
  style: [
1687
1667
  Y.triggerText,
1688
- { color: I.text },
1689
- !c && { color: I.textMuted }
1668
+ { color: F.text },
1669
+ !c && { color: F.textMuted }
1690
1670
  ],
1691
1671
  numberOfLines: 1,
1692
- children: c?.label || o || R("renderer.defaultHttpInput.search")
1693
- }), /* @__PURE__ */ j(z, {
1694
- style: [Y.arrow, { color: I.textMuted }],
1672
+ children: c?.label || o || L("renderer.defaultHttpInput.search")
1673
+ }), /* @__PURE__ */ A(R, {
1674
+ style: [Y.arrow, { color: F.textMuted }],
1695
1675
  children: "▼"
1696
1676
  })]
1697
1677
  }),
1698
- /* @__PURE__ */ j(F, {
1678
+ /* @__PURE__ */ A(P, {
1699
1679
  visible: C,
1700
1680
  transparent: !0,
1701
1681
  animationType: "fade",
1702
1682
  onRequestClose: () => w(!1),
1703
- children: /* @__PURE__ */ j(B, {
1683
+ children: /* @__PURE__ */ A(B, {
1704
1684
  style: Y.modalOverlay,
1705
1685
  activeOpacity: 1,
1706
1686
  onPress: () => w(!1),
1707
- children: /* @__PURE__ */ M(B, {
1708
- style: [Y.modalContent, { backgroundColor: I.card }],
1687
+ children: /* @__PURE__ */ j(B, {
1688
+ style: [Y.modalContent, { backgroundColor: F.card }],
1709
1689
  activeOpacity: 1,
1710
1690
  onPress: () => {},
1711
1691
  children: [
1712
- /* @__PURE__ */ M(V, {
1713
- style: [Y.modalHeader, { borderBottomColor: I.separator }],
1714
- children: [/* @__PURE__ */ j(z, {
1715
- style: [Y.modalTitle, { color: I.text }],
1692
+ /* @__PURE__ */ j(V, {
1693
+ style: [Y.modalHeader, { borderBottomColor: F.separator }],
1694
+ children: [/* @__PURE__ */ A(R, {
1695
+ style: [Y.modalTitle, { color: F.text }],
1716
1696
  children: a || e.data.name
1717
- }), /* @__PURE__ */ j(B, {
1697
+ }), /* @__PURE__ */ A(B, {
1718
1698
  onPress: () => w(!1),
1719
- children: /* @__PURE__ */ j(z, {
1720
- style: [Y.closeButton, { color: I.textMuted }],
1699
+ children: /* @__PURE__ */ A(R, {
1700
+ style: [Y.closeButton, { color: F.textMuted }],
1721
1701
  children: "✕"
1722
1702
  })
1723
1703
  })]
1724
1704
  }),
1725
- /* @__PURE__ */ j(V, {
1705
+ /* @__PURE__ */ A(V, {
1726
1706
  style: Y.searchContainer,
1727
- children: /* @__PURE__ */ j(re, {
1707
+ children: /* @__PURE__ */ A(z, {
1728
1708
  style: [Y.searchInput, {
1729
- backgroundColor: I.muted,
1730
- borderColor: I.border,
1731
- color: I.text
1709
+ backgroundColor: F.muted,
1710
+ borderColor: F.border,
1711
+ color: F.text
1732
1712
  }],
1733
- placeholder: R("renderer.defaultHttpInput.search"),
1734
- placeholderTextColor: I.textMuted,
1713
+ placeholder: L("renderer.defaultHttpInput.search"),
1714
+ placeholderTextColor: F.textMuted,
1735
1715
  value: x,
1736
1716
  onChangeText: (e) => {
1737
1717
  S(e), g(null);
@@ -1741,50 +1721,50 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1741
1721
  autoCorrect: !1
1742
1722
  })
1743
1723
  }),
1744
- u ? /* @__PURE__ */ j(V, {
1724
+ u ? /* @__PURE__ */ A(V, {
1745
1725
  style: Y.loadingContainer,
1746
- children: /* @__PURE__ */ j(N, {
1726
+ children: /* @__PURE__ */ A(M, {
1747
1727
  size: "small",
1748
- color: I.primary
1728
+ color: F.primary
1749
1729
  })
1750
- }) : m ? /* @__PURE__ */ M(V, {
1730
+ }) : m ? /* @__PURE__ */ j(V, {
1751
1731
  style: Y.errorContainer,
1752
- children: [/* @__PURE__ */ j(z, {
1753
- style: [Y.errorText, { color: I.error }],
1732
+ children: [/* @__PURE__ */ A(R, {
1733
+ style: [Y.errorText, { color: F.error }],
1754
1734
  children: m
1755
- }), /* @__PURE__ */ j(B, {
1756
- onPress: () => K(x),
1735
+ }), /* @__PURE__ */ A(B, {
1736
+ onPress: () => q(x),
1757
1737
  style: Y.retryButton,
1758
- children: /* @__PURE__ */ j(z, {
1759
- style: [Y.retryButtonText, { color: I.primary }],
1760
- children: R("renderer.defaultHttpInput.retry")
1738
+ children: /* @__PURE__ */ A(R, {
1739
+ style: [Y.retryButtonText, { color: F.primary }],
1740
+ children: L("renderer.defaultHttpInput.retry")
1761
1741
  })
1762
1742
  })]
1763
- }) : /* @__PURE__ */ j(ne, {
1743
+ }) : /* @__PURE__ */ A(N, {
1764
1744
  data: v,
1765
1745
  keyExtractor: (e) => e.value,
1766
1746
  style: Y.optionsList,
1767
1747
  contentContainerStyle: Y.optionsListContent,
1768
- ListEmptyComponent: /* @__PURE__ */ j(V, {
1748
+ ListEmptyComponent: /* @__PURE__ */ A(V, {
1769
1749
  style: Y.emptyContainer,
1770
- children: /* @__PURE__ */ j(z, {
1771
- style: [Y.emptyText, { color: I.textMuted }],
1772
- children: R("renderer.defaultHttpInput.noResults")
1750
+ children: /* @__PURE__ */ A(R, {
1751
+ style: [Y.emptyText, { color: F.textMuted }],
1752
+ children: L("renderer.defaultHttpInput.noResults")
1773
1753
  })
1774
1754
  }),
1775
1755
  renderItem: ({ item: e }) => {
1776
1756
  let n = e.value === t;
1777
- return /* @__PURE__ */ M(B, {
1778
- style: [Y.option, n && { backgroundColor: I.primaryLight }],
1757
+ return /* @__PURE__ */ j(B, {
1758
+ style: [Y.option, n && { backgroundColor: F.primaryLight }],
1779
1759
  onPress: () => {
1780
1760
  r(e.value), w(!1);
1781
1761
  },
1782
1762
  activeOpacity: .7,
1783
- children: [/* @__PURE__ */ j(z, {
1784
- style: [Y.optionText, { color: I.text }],
1763
+ children: [/* @__PURE__ */ A(R, {
1764
+ style: [Y.optionText, { color: F.text }],
1785
1765
  children: e.label
1786
- }), n && /* @__PURE__ */ j(z, {
1787
- style: [Y.checkmark, { color: I.primary }],
1766
+ }), n && /* @__PURE__ */ A(R, {
1767
+ style: [Y.checkmark, { color: F.primary }],
1788
1768
  children: "✓"
1789
1769
  })]
1790
1770
  });
@@ -1794,112 +1774,112 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1794
1774
  })
1795
1775
  })
1796
1776
  }),
1797
- i && /* @__PURE__ */ j(z, {
1798
- style: [Y.error, { color: I.error }],
1777
+ i && /* @__PURE__ */ A(R, {
1778
+ style: [Y.error, { color: F.error }],
1799
1779
  children: i
1800
1780
  }),
1801
- s && !i && /* @__PURE__ */ j(z, {
1802
- style: [Y.helperText, { color: I.textMuted }],
1781
+ s && !i && /* @__PURE__ */ A(R, {
1782
+ style: [Y.helperText, { color: F.textMuted }],
1803
1783
  children: s
1804
1784
  })
1805
1785
  ]
1806
1786
  });
1807
1787
  }
1808
- let l = u && L?.showLoading, d = W.filter((e) => {
1788
+ let l = u && I?.showLoading, d = G.filter((e) => {
1809
1789
  let t = T[e];
1810
1790
  return t == null || t === "";
1811
- }), f = d.map((e) => h(e, te) || e), p = v.length === 0 && !l ? m || (d.length > 0 ? `${R("renderer.defaultHttpInput.waitingForRequiredFields")}: ${f.join(", ")}` : R("renderer.defaultHttpInput.noDataAvailable")) : void 0;
1812
- return /* @__PURE__ */ M(V, {
1791
+ }), f = d.map((e) => h(e, ne) || e), p = v.length === 0 && !l ? m || (d.length > 0 ? `${L("renderer.defaultHttpInput.waitingForRequiredFields")}: ${f.join(", ")}` : L("renderer.defaultHttpInput.noDataAvailable")) : void 0;
1792
+ return /* @__PURE__ */ j(V, {
1813
1793
  style: Y.container,
1814
1794
  children: [
1815
- /* @__PURE__ */ M(z, {
1816
- style: [Y.label, { color: I.textSecondary }],
1817
- children: [a || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
1818
- style: { color: I.error },
1795
+ /* @__PURE__ */ j(R, {
1796
+ style: [Y.label, { color: F.textSecondary }],
1797
+ children: [a || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
1798
+ style: { color: F.error },
1819
1799
  children: "*"
1820
1800
  })]
1821
1801
  }),
1822
- /* @__PURE__ */ M(B, {
1802
+ /* @__PURE__ */ j(B, {
1823
1803
  style: [
1824
1804
  Y.trigger,
1825
1805
  {
1826
- backgroundColor: I.input,
1827
- borderColor: I.border
1806
+ backgroundColor: F.input,
1807
+ borderColor: F.border
1828
1808
  },
1829
- i && { borderColor: I.error },
1830
- (l || v.length === 0) && { backgroundColor: I.muted }
1809
+ i && { borderColor: F.error },
1810
+ (l || v.length === 0) && { backgroundColor: F.muted }
1831
1811
  ],
1832
1812
  onPress: () => w(!0),
1833
1813
  disabled: l || v.length === 0,
1834
1814
  activeOpacity: .7,
1835
1815
  children: [
1836
- l && /* @__PURE__ */ j(N, {
1816
+ l && /* @__PURE__ */ A(M, {
1837
1817
  size: "small",
1838
- color: I.primary,
1818
+ color: F.primary,
1839
1819
  style: Y.triggerLoader
1840
1820
  }),
1841
- /* @__PURE__ */ j(z, {
1821
+ /* @__PURE__ */ A(R, {
1842
1822
  style: [
1843
1823
  Y.triggerText,
1844
- { color: I.text },
1845
- !c && { color: I.textMuted }
1824
+ { color: F.text },
1825
+ !c && { color: F.textMuted }
1846
1826
  ],
1847
1827
  numberOfLines: 1,
1848
- children: c?.label || o || R("renderer.defaultHttpInput.selectOption")
1828
+ children: c?.label || o || L("renderer.defaultHttpInput.selectOption")
1849
1829
  }),
1850
- /* @__PURE__ */ j(z, {
1851
- style: [Y.arrow, { color: I.textMuted }],
1830
+ /* @__PURE__ */ A(R, {
1831
+ style: [Y.arrow, { color: F.textMuted }],
1852
1832
  children: "▼"
1853
1833
  })
1854
1834
  ]
1855
1835
  }),
1856
- p && /* @__PURE__ */ j(z, {
1857
- style: [Y.disabledMessage, { color: I.error }],
1836
+ p && /* @__PURE__ */ A(R, {
1837
+ style: [Y.disabledMessage, { color: F.error }],
1858
1838
  children: p
1859
1839
  }),
1860
- /* @__PURE__ */ j(F, {
1840
+ /* @__PURE__ */ A(P, {
1861
1841
  visible: C,
1862
1842
  transparent: !0,
1863
1843
  animationType: "fade",
1864
1844
  onRequestClose: () => w(!1),
1865
- children: /* @__PURE__ */ j(B, {
1845
+ children: /* @__PURE__ */ A(B, {
1866
1846
  style: Y.modalOverlay,
1867
1847
  activeOpacity: 1,
1868
1848
  onPress: () => w(!1),
1869
- children: /* @__PURE__ */ M(B, {
1870
- style: [Y.modalContent, { backgroundColor: I.card }],
1849
+ children: /* @__PURE__ */ j(B, {
1850
+ style: [Y.modalContent, { backgroundColor: F.card }],
1871
1851
  activeOpacity: 1,
1872
1852
  onPress: () => {},
1873
- children: [/* @__PURE__ */ M(V, {
1874
- style: [Y.modalHeader, { borderBottomColor: I.separator }],
1875
- children: [/* @__PURE__ */ j(z, {
1876
- style: [Y.modalTitle, { color: I.text }],
1853
+ children: [/* @__PURE__ */ j(V, {
1854
+ style: [Y.modalHeader, { borderBottomColor: F.separator }],
1855
+ children: [/* @__PURE__ */ A(R, {
1856
+ style: [Y.modalTitle, { color: F.text }],
1877
1857
  children: a || e.data.name
1878
- }), /* @__PURE__ */ j(B, {
1858
+ }), /* @__PURE__ */ A(B, {
1879
1859
  onPress: () => w(!1),
1880
- children: /* @__PURE__ */ j(z, {
1881
- style: [Y.closeButton, { color: I.textMuted }],
1860
+ children: /* @__PURE__ */ A(R, {
1861
+ style: [Y.closeButton, { color: F.textMuted }],
1882
1862
  children: "✕"
1883
1863
  })
1884
1864
  })]
1885
- }), /* @__PURE__ */ j(ne, {
1865
+ }), /* @__PURE__ */ A(N, {
1886
1866
  data: v,
1887
1867
  keyExtractor: (e) => e.value,
1888
1868
  style: Y.optionsList,
1889
1869
  contentContainerStyle: Y.optionsListContent,
1890
1870
  renderItem: ({ item: e }) => {
1891
1871
  let n = e.value === t;
1892
- return /* @__PURE__ */ M(B, {
1893
- style: [Y.option, n && { backgroundColor: I.primaryLight }],
1872
+ return /* @__PURE__ */ j(B, {
1873
+ style: [Y.option, n && { backgroundColor: F.primaryLight }],
1894
1874
  onPress: () => {
1895
1875
  r(e.value), w(!1);
1896
1876
  },
1897
1877
  activeOpacity: .7,
1898
- children: [/* @__PURE__ */ j(z, {
1899
- style: [Y.optionText, { color: I.text }],
1878
+ children: [/* @__PURE__ */ A(R, {
1879
+ style: [Y.optionText, { color: F.text }],
1900
1880
  children: e.label
1901
- }), n && /* @__PURE__ */ j(z, {
1902
- style: [Y.checkmark, { color: I.primary }],
1881
+ }), n && /* @__PURE__ */ A(R, {
1882
+ style: [Y.checkmark, { color: F.primary }],
1903
1883
  children: "✓"
1904
1884
  })]
1905
1885
  });
@@ -1908,47 +1888,47 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
1908
1888
  })
1909
1889
  })
1910
1890
  }),
1911
- i && /* @__PURE__ */ j(z, {
1912
- style: [Y.error, { color: I.error }],
1891
+ i && /* @__PURE__ */ A(R, {
1892
+ style: [Y.error, { color: F.error }],
1913
1893
  children: i
1914
1894
  }),
1915
- s && !i && /* @__PURE__ */ j(z, {
1916
- style: [Y.helperText, { color: I.textMuted }],
1895
+ s && !i && /* @__PURE__ */ A(R, {
1896
+ style: [Y.helperText, { color: F.textMuted }],
1917
1897
  children: s
1918
1898
  })
1919
1899
  ]
1920
1900
  });
1921
1901
  }
1922
- return /* @__PURE__ */ M(V, {
1902
+ return /* @__PURE__ */ j(V, {
1923
1903
  style: Y.container,
1924
1904
  children: [
1925
- /* @__PURE__ */ M(z, {
1926
- style: [Y.label, { color: I.textSecondary }],
1927
- children: [a || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
1928
- style: { color: I.error },
1905
+ /* @__PURE__ */ j(R, {
1906
+ style: [Y.label, { color: F.textSecondary }],
1907
+ children: [a || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
1908
+ style: { color: F.error },
1929
1909
  children: "*"
1930
1910
  })]
1931
1911
  }),
1932
- /* @__PURE__ */ j(re, {
1912
+ /* @__PURE__ */ A(z, {
1933
1913
  style: [Y.input, {
1934
- backgroundColor: I.muted,
1935
- borderColor: I.border,
1936
- color: I.textMuted
1914
+ backgroundColor: F.muted,
1915
+ borderColor: F.border,
1916
+ color: F.textMuted
1937
1917
  }],
1938
1918
  value: typeof n == "string" ? n : JSON.stringify(n),
1939
1919
  editable: !1
1940
1920
  }),
1941
- i && /* @__PURE__ */ j(z, {
1942
- style: [Y.error, { color: I.error }],
1921
+ i && /* @__PURE__ */ A(R, {
1922
+ style: [Y.error, { color: F.error }],
1943
1923
  children: i
1944
1924
  }),
1945
- s && !i && /* @__PURE__ */ j(z, {
1946
- style: [Y.helperText, { color: I.textMuted }],
1925
+ s && !i && /* @__PURE__ */ A(R, {
1926
+ style: [Y.helperText, { color: F.textMuted }],
1947
1927
  children: s
1948
1928
  })
1949
1929
  ]
1950
1930
  });
1951
- }, Y = L.create({
1931
+ }, Y = I.create({
1952
1932
  arrow: { fontSize: 12 },
1953
1933
  checkmark: {
1954
1934
  fontSize: 18,
@@ -2074,23 +2054,23 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2074
2054
  flex: 1,
2075
2055
  fontSize: 14
2076
2056
  }
2077
- }), Te = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2078
- let { colors: c } = _(), [l, u] = A(t?.toString() ?? "");
2079
- return D(() => {
2057
+ }), Ce = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2058
+ let { colors: c } = _(), [l, u] = k(t?.toString() ?? "");
2059
+ return E(() => {
2080
2060
  u(t?.toString() ?? "");
2081
- }, [t]), /* @__PURE__ */ M(V, {
2082
- style: Ee.container,
2061
+ }, [t]), /* @__PURE__ */ j(V, {
2062
+ style: we.container,
2083
2063
  children: [
2084
- /* @__PURE__ */ M(z, {
2085
- style: [Ee.label, { color: c.textSecondary }],
2086
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2064
+ /* @__PURE__ */ j(R, {
2065
+ style: [we.label, { color: c.textSecondary }],
2066
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2087
2067
  style: { color: c.error },
2088
2068
  children: "*"
2089
2069
  })]
2090
2070
  }),
2091
- /* @__PURE__ */ j(re, {
2071
+ /* @__PURE__ */ A(z, {
2092
2072
  style: [
2093
- Ee.input,
2073
+ we.input,
2094
2074
  {
2095
2075
  backgroundColor: c.input,
2096
2076
  borderColor: c.border,
@@ -2112,17 +2092,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2112
2092
  keyboardType: "numeric",
2113
2093
  accessibilityLabel: s
2114
2094
  }),
2115
- r && /* @__PURE__ */ j(z, {
2116
- style: [Ee.error, { color: c.error }],
2095
+ r && /* @__PURE__ */ A(R, {
2096
+ style: [we.error, { color: c.error }],
2117
2097
  children: r
2118
2098
  }),
2119
- o && !r && /* @__PURE__ */ j(z, {
2120
- style: [Ee.helperText, { color: c.textMuted }],
2099
+ o && !r && /* @__PURE__ */ A(R, {
2100
+ style: [we.helperText, { color: c.textMuted }],
2121
2101
  children: o
2122
2102
  })
2123
2103
  ]
2124
2104
  });
2125
- }, Ee = L.create({
2105
+ }, we = I.create({
2126
2106
  container: { marginBottom: 16 },
2127
2107
  error: {
2128
2108
  fontSize: 12,
@@ -2144,23 +2124,23 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2144
2124
  fontWeight: "500",
2145
2125
  marginBottom: 8
2146
2126
  }
2147
- }), De = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2148
- let { colors: c } = _(), [l, u] = A(!1);
2149
- return /* @__PURE__ */ M(V, {
2150
- style: Oe.container,
2127
+ }), Te = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2128
+ let { colors: c } = _(), [l, u] = k(!1);
2129
+ return /* @__PURE__ */ j(V, {
2130
+ style: Ee.container,
2151
2131
  children: [
2152
- /* @__PURE__ */ M(z, {
2153
- style: [Oe.label, { color: c.textSecondary }],
2154
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2132
+ /* @__PURE__ */ j(R, {
2133
+ style: [Ee.label, { color: c.textSecondary }],
2134
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2155
2135
  style: { color: c.error },
2156
2136
  children: "*"
2157
2137
  })]
2158
2138
  }),
2159
- /* @__PURE__ */ M(V, {
2160
- style: Oe.inputWrapper,
2161
- children: [/* @__PURE__ */ j(re, {
2139
+ /* @__PURE__ */ j(V, {
2140
+ style: Ee.inputWrapper,
2141
+ children: [/* @__PURE__ */ A(z, {
2162
2142
  style: [
2163
- Oe.input,
2143
+ Ee.input,
2164
2144
  {
2165
2145
  backgroundColor: c.input,
2166
2146
  borderColor: c.border,
@@ -2174,27 +2154,27 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2174
2154
  placeholderTextColor: c.textMuted,
2175
2155
  secureTextEntry: !l,
2176
2156
  accessibilityLabel: s
2177
- }), /* @__PURE__ */ j(B, {
2178
- style: Oe.toggleButton,
2157
+ }), /* @__PURE__ */ A(B, {
2158
+ style: Ee.toggleButton,
2179
2159
  onPress: () => u(!l),
2180
2160
  activeOpacity: .7,
2181
- children: /* @__PURE__ */ j(z, {
2182
- style: [Oe.toggleText, { color: c.primary }],
2161
+ children: /* @__PURE__ */ A(R, {
2162
+ style: [Ee.toggleText, { color: c.primary }],
2183
2163
  children: l ? "Hide" : "Show"
2184
2164
  })
2185
2165
  })]
2186
2166
  }),
2187
- r && /* @__PURE__ */ j(z, {
2188
- style: [Oe.error, { color: c.error }],
2167
+ r && /* @__PURE__ */ A(R, {
2168
+ style: [Ee.error, { color: c.error }],
2189
2169
  children: r
2190
2170
  }),
2191
- o && !r && /* @__PURE__ */ j(z, {
2192
- style: [Oe.helperText, { color: c.textMuted }],
2171
+ o && !r && /* @__PURE__ */ A(R, {
2172
+ style: [Ee.helperText, { color: c.textMuted }],
2193
2173
  children: o
2194
2174
  })
2195
2175
  ]
2196
2176
  });
2197
- }, Oe = L.create({
2177
+ }, Ee = I.create({
2198
2178
  container: { marginBottom: 16 },
2199
2179
  error: {
2200
2180
  fontSize: 12,
@@ -2232,23 +2212,23 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2232
2212
  fontSize: 12,
2233
2213
  fontWeight: "600"
2234
2214
  }
2235
- }), ke = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
2215
+ }), De = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
2236
2216
  let o = p(), { colors: s } = _(), c = e.data.options || [], l = t || "", u = e.data.variant !== "default", d = (e) => {
2237
2217
  n(e);
2238
2218
  };
2239
- return /* @__PURE__ */ M(V, {
2219
+ return /* @__PURE__ */ j(V, {
2240
2220
  style: X.container,
2241
2221
  children: [
2242
- /* @__PURE__ */ M(z, {
2222
+ /* @__PURE__ */ j(R, {
2243
2223
  style: [X.label, { color: s.textSecondary }],
2244
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2224
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2245
2225
  style: { color: s.error },
2246
2226
  children: "*"
2247
2227
  })]
2248
2228
  }),
2249
2229
  c.map((e) => {
2250
2230
  let t = l === e.value, n = o(e.label) || e.value, r = o(e.description);
2251
- return u ? /* @__PURE__ */ M(B, {
2231
+ return u ? /* @__PURE__ */ j(B, {
2252
2232
  style: [
2253
2233
  X.card,
2254
2234
  {
@@ -2265,21 +2245,21 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2265
2245
  disabled: e.disabled,
2266
2246
  activeOpacity: .7,
2267
2247
  children: [
2268
- e.image && /* @__PURE__ */ j(P, {
2248
+ e.image && /* @__PURE__ */ A(re, {
2269
2249
  source: { uri: e.image },
2270
2250
  style: X.cardImage
2271
2251
  }),
2272
- /* @__PURE__ */ M(V, {
2252
+ /* @__PURE__ */ j(V, {
2273
2253
  style: X.cardTextContainer,
2274
- children: [/* @__PURE__ */ j(z, {
2254
+ children: [/* @__PURE__ */ A(R, {
2275
2255
  style: [X.cardLabel, { color: s.textSecondary }],
2276
2256
  children: n
2277
- }), r && /* @__PURE__ */ j(z, {
2257
+ }), r && /* @__PURE__ */ A(R, {
2278
2258
  style: [X.cardDescription, { color: s.textMuted }],
2279
2259
  children: r
2280
2260
  })]
2281
2261
  }),
2282
- /* @__PURE__ */ j(V, {
2262
+ /* @__PURE__ */ A(V, {
2283
2263
  style: [
2284
2264
  X.radio,
2285
2265
  X.cardRadio,
@@ -2289,16 +2269,16 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2289
2269
  },
2290
2270
  t && { borderColor: s.primary }
2291
2271
  ],
2292
- children: t && /* @__PURE__ */ j(V, { style: [X.radioInner, { backgroundColor: s.primary }] })
2272
+ children: t && /* @__PURE__ */ A(V, { style: [X.radioInner, { backgroundColor: s.primary }] })
2293
2273
  })
2294
2274
  ]
2295
- }, e.value) : /* @__PURE__ */ M(B, {
2275
+ }, e.value) : /* @__PURE__ */ j(B, {
2296
2276
  style: X.option,
2297
2277
  onPress: () => d(e.value),
2298
2278
  disabled: e.disabled,
2299
2279
  activeOpacity: .7,
2300
2280
  children: [
2301
- /* @__PURE__ */ j(V, {
2281
+ /* @__PURE__ */ A(V, {
2302
2282
  style: [
2303
2283
  X.radio,
2304
2284
  {
@@ -2307,22 +2287,22 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2307
2287
  },
2308
2288
  t && { borderColor: s.primary }
2309
2289
  ],
2310
- children: t && /* @__PURE__ */ j(V, { style: [X.radioInner, { backgroundColor: s.primary }] })
2290
+ children: t && /* @__PURE__ */ A(V, { style: [X.radioInner, { backgroundColor: s.primary }] })
2311
2291
  }),
2312
- e.image && /* @__PURE__ */ j(P, {
2292
+ e.image && /* @__PURE__ */ A(re, {
2313
2293
  source: { uri: e.image },
2314
2294
  style: X.image
2315
2295
  }),
2316
- /* @__PURE__ */ M(V, {
2296
+ /* @__PURE__ */ j(V, {
2317
2297
  style: X.optionTextContainer,
2318
- children: [/* @__PURE__ */ j(z, {
2298
+ children: [/* @__PURE__ */ A(R, {
2319
2299
  style: [
2320
2300
  X.optionLabel,
2321
2301
  { color: s.textSecondary },
2322
2302
  e.disabled && { color: s.textMuted }
2323
2303
  ],
2324
2304
  children: n
2325
- }), r && /* @__PURE__ */ j(z, {
2305
+ }), r && /* @__PURE__ */ A(R, {
2326
2306
  style: [X.optionDescription, { color: s.textMuted }],
2327
2307
  children: r
2328
2308
  })]
@@ -2330,17 +2310,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2330
2310
  ]
2331
2311
  }, e.value);
2332
2312
  }),
2333
- r && /* @__PURE__ */ j(z, {
2313
+ r && /* @__PURE__ */ A(R, {
2334
2314
  style: [X.error, { color: s.error }],
2335
2315
  children: r
2336
2316
  }),
2337
- a && !r && /* @__PURE__ */ j(z, {
2317
+ a && !r && /* @__PURE__ */ A(R, {
2338
2318
  style: [X.helperText, { color: s.textMuted }],
2339
2319
  children: a
2340
2320
  })
2341
2321
  ]
2342
2322
  });
2343
- }, X = L.create({
2323
+ }, X = I.create({
2344
2324
  card: {
2345
2325
  alignItems: "center",
2346
2326
  borderRadius: 8,
@@ -2413,21 +2393,21 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2413
2393
  height: 10,
2414
2394
  width: 10
2415
2395
  }
2416
- }), Ae = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
2417
- let [s, c] = A(!1), l = p(), { colors: u } = _(), d = e.data.options || [], f = e.data.multiple, m = Array.isArray(t) ? t : t ? [t] : [], h = (e) => {
2396
+ }), Oe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
2397
+ let [s, c] = k(!1), l = p(), { colors: u } = _(), d = e.data.options || [], f = e.data.multiple, m = Array.isArray(t) ? t : t ? [t] : [], h = (e) => {
2418
2398
  f ? n(m.includes(e) ? m.filter((t) => t !== e) : [...m, e]) : (n(e), c(!1));
2419
2399
  };
2420
- return /* @__PURE__ */ M(V, {
2400
+ return /* @__PURE__ */ j(V, {
2421
2401
  style: Z.container,
2422
2402
  children: [
2423
- /* @__PURE__ */ M(z, {
2403
+ /* @__PURE__ */ j(R, {
2424
2404
  style: [Z.label, { color: u.textSecondary }],
2425
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2405
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2426
2406
  style: { color: u.error },
2427
2407
  children: "*"
2428
2408
  })]
2429
2409
  }),
2430
- /* @__PURE__ */ M(B, {
2410
+ /* @__PURE__ */ j(B, {
2431
2411
  style: [
2432
2412
  Z.trigger,
2433
2413
  {
@@ -2438,7 +2418,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2438
2418
  ],
2439
2419
  onPress: () => c(!0),
2440
2420
  activeOpacity: .7,
2441
- children: [/* @__PURE__ */ j(z, {
2421
+ children: [/* @__PURE__ */ A(R, {
2442
2422
  style: [
2443
2423
  Z.triggerText,
2444
2424
  { color: u.text },
@@ -2450,64 +2430,64 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2450
2430
  let e = d.find((e) => e.value === m[0]);
2451
2431
  return e ? l(e.label) || e.value : a || "Select...";
2452
2432
  })()
2453
- }), /* @__PURE__ */ j(z, {
2433
+ }), /* @__PURE__ */ A(R, {
2454
2434
  style: [Z.arrow, { color: u.textMuted }],
2455
2435
  children: "▼"
2456
2436
  })]
2457
2437
  }),
2458
- /* @__PURE__ */ j(F, {
2438
+ /* @__PURE__ */ A(P, {
2459
2439
  visible: s,
2460
2440
  transparent: !0,
2461
2441
  animationType: "fade",
2462
2442
  onRequestClose: () => c(!1),
2463
- children: /* @__PURE__ */ j(B, {
2443
+ children: /* @__PURE__ */ A(B, {
2464
2444
  style: Z.modalOverlay,
2465
2445
  activeOpacity: 1,
2466
2446
  onPress: () => c(!1),
2467
- children: /* @__PURE__ */ M(V, {
2447
+ children: /* @__PURE__ */ j(V, {
2468
2448
  style: [Z.modalContent, { backgroundColor: u.card }],
2469
2449
  onStartShouldSetResponder: () => !0,
2470
2450
  children: [
2471
- /* @__PURE__ */ M(V, {
2451
+ /* @__PURE__ */ j(V, {
2472
2452
  style: [Z.modalHeader, { borderBottomColor: u.border }],
2473
- children: [/* @__PURE__ */ j(z, {
2453
+ children: [/* @__PURE__ */ A(R, {
2474
2454
  style: [Z.modalTitle, { color: u.text }],
2475
2455
  children: i || e.data.name
2476
- }), /* @__PURE__ */ j(B, {
2456
+ }), /* @__PURE__ */ A(B, {
2477
2457
  onPress: () => c(!1),
2478
- children: /* @__PURE__ */ j(z, {
2458
+ children: /* @__PURE__ */ A(R, {
2479
2459
  style: [Z.closeButton, { color: u.textMuted }],
2480
2460
  children: "✕"
2481
2461
  })
2482
2462
  })]
2483
2463
  }),
2484
- /* @__PURE__ */ j(I, {
2464
+ /* @__PURE__ */ A(F, {
2485
2465
  style: Z.optionsList,
2486
2466
  children: d.map((e) => {
2487
2467
  let t = m.includes(e.value);
2488
- return /* @__PURE__ */ M(B, {
2468
+ return /* @__PURE__ */ j(B, {
2489
2469
  style: [Z.option, t && { backgroundColor: `${u.primary}20` }],
2490
2470
  onPress: () => h(e.value),
2491
2471
  disabled: e.disabled,
2492
2472
  activeOpacity: .7,
2493
- children: [/* @__PURE__ */ j(z, {
2473
+ children: [/* @__PURE__ */ A(R, {
2494
2474
  style: [
2495
2475
  Z.optionText,
2496
2476
  { color: u.textSecondary },
2497
2477
  e.disabled && { color: u.textMuted }
2498
2478
  ],
2499
2479
  children: l(e.label) || e.value
2500
- }), t && /* @__PURE__ */ j(z, {
2480
+ }), t && /* @__PURE__ */ A(R, {
2501
2481
  style: [Z.checkmark, { color: u.primary }],
2502
2482
  children: "✓"
2503
2483
  })]
2504
2484
  }, e.value);
2505
2485
  })
2506
2486
  }),
2507
- f && /* @__PURE__ */ j(B, {
2487
+ f && /* @__PURE__ */ A(B, {
2508
2488
  style: [Z.doneButton, { backgroundColor: u.primary }],
2509
2489
  onPress: () => c(!1),
2510
- children: /* @__PURE__ */ j(z, {
2490
+ children: /* @__PURE__ */ A(R, {
2511
2491
  style: Z.doneButtonText,
2512
2492
  children: "Done"
2513
2493
  })
@@ -2516,17 +2496,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2516
2496
  })
2517
2497
  })
2518
2498
  }),
2519
- r && /* @__PURE__ */ j(z, {
2499
+ r && /* @__PURE__ */ A(R, {
2520
2500
  style: [Z.error, { color: u.error }],
2521
2501
  children: r
2522
2502
  }),
2523
- o && !r && /* @__PURE__ */ j(z, {
2503
+ o && !r && /* @__PURE__ */ A(R, {
2524
2504
  style: [Z.helperText, { color: u.textMuted }],
2525
2505
  children: o
2526
2506
  })
2527
2507
  ]
2528
2508
  });
2529
- }, Z = L.create({
2509
+ }, Z = I.create({
2530
2510
  arrow: { fontSize: 12 },
2531
2511
  checkmark: {
2532
2512
  fontSize: 18,
@@ -2608,23 +2588,23 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2608
2588
  flex: 1,
2609
2589
  fontSize: 14
2610
2590
  }
2611
- }), je = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
2591
+ }), ke = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
2612
2592
  let { colors: o } = _(), s = !!t;
2613
- return /* @__PURE__ */ M(V, {
2614
- style: Me.container,
2593
+ return /* @__PURE__ */ j(V, {
2594
+ style: Ae.container,
2615
2595
  children: [
2616
- /* @__PURE__ */ M(V, {
2617
- style: Me.row,
2618
- children: [/* @__PURE__ */ j(V, {
2619
- style: Me.labelContainer,
2620
- children: /* @__PURE__ */ M(z, {
2621
- style: [Me.label, { color: o.textSecondary }],
2622
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2596
+ /* @__PURE__ */ j(V, {
2597
+ style: Ae.row,
2598
+ children: [/* @__PURE__ */ A(V, {
2599
+ style: Ae.labelContainer,
2600
+ children: /* @__PURE__ */ j(R, {
2601
+ style: [Ae.label, { color: o.textSecondary }],
2602
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2623
2603
  style: { color: o.error },
2624
2604
  children: "*"
2625
2605
  })]
2626
2606
  })
2627
- }), /* @__PURE__ */ j(R, {
2607
+ }), /* @__PURE__ */ A(L, {
2628
2608
  trackColor: {
2629
2609
  false: o.border,
2630
2610
  true: `${o.primary}80`
@@ -2635,17 +2615,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2635
2615
  value: s
2636
2616
  })]
2637
2617
  }),
2638
- r && /* @__PURE__ */ j(z, {
2639
- style: [Me.error, { color: o.error }],
2618
+ r && /* @__PURE__ */ A(R, {
2619
+ style: [Ae.error, { color: o.error }],
2640
2620
  children: r
2641
2621
  }),
2642
- a && !r && /* @__PURE__ */ j(z, {
2643
- style: [Me.helperText, { color: o.textMuted }],
2622
+ a && !r && /* @__PURE__ */ A(R, {
2623
+ style: [Ae.helperText, { color: o.textMuted }],
2644
2624
  children: a
2645
2625
  })
2646
2626
  ]
2647
2627
  });
2648
- }, Me = L.create({
2628
+ }, Ae = I.create({
2649
2629
  container: { marginBottom: 16 },
2650
2630
  error: {
2651
2631
  fontSize: 12,
@@ -2665,21 +2645,21 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2665
2645
  flexDirection: "row",
2666
2646
  justifyContent: "space-between"
2667
2647
  }
2668
- }), Ne = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2648
+ }), je = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2669
2649
  let { colors: c } = _();
2670
- return /* @__PURE__ */ M(V, {
2671
- style: Pe.container,
2650
+ return /* @__PURE__ */ j(V, {
2651
+ style: Me.container,
2672
2652
  children: [
2673
- /* @__PURE__ */ M(z, {
2674
- style: [Pe.label, { color: c.textSecondary }],
2675
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2653
+ /* @__PURE__ */ j(R, {
2654
+ style: [Me.label, { color: c.textSecondary }],
2655
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2676
2656
  style: { color: c.error },
2677
2657
  children: "*"
2678
2658
  })]
2679
2659
  }),
2680
- /* @__PURE__ */ j(re, {
2660
+ /* @__PURE__ */ A(z, {
2681
2661
  style: [
2682
- Pe.textarea,
2662
+ Me.textarea,
2683
2663
  {
2684
2664
  backgroundColor: c.input,
2685
2665
  borderColor: c.border,
@@ -2696,17 +2676,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2696
2676
  textAlignVertical: "top",
2697
2677
  accessibilityLabel: s
2698
2678
  }),
2699
- r && /* @__PURE__ */ j(z, {
2700
- style: [Pe.error, { color: c.error }],
2679
+ r && /* @__PURE__ */ A(R, {
2680
+ style: [Me.error, { color: c.error }],
2701
2681
  children: r
2702
2682
  }),
2703
- o && !r && /* @__PURE__ */ j(z, {
2704
- style: [Pe.helperText, { color: c.textMuted }],
2683
+ o && !r && /* @__PURE__ */ A(R, {
2684
+ style: [Me.helperText, { color: c.textMuted }],
2705
2685
  children: o
2706
2686
  })
2707
2687
  ]
2708
2688
  });
2709
- }, Pe = L.create({
2689
+ }, Me = I.create({
2710
2690
  container: { marginBottom: 16 },
2711
2691
  error: {
2712
2692
  fontSize: 12,
@@ -2729,21 +2709,21 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2729
2709
  paddingHorizontal: 12,
2730
2710
  paddingVertical: 8
2731
2711
  }
2732
- }), Fe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2712
+ }), Ne = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2733
2713
  let { colors: c } = _();
2734
- return /* @__PURE__ */ M(V, {
2735
- style: Ie.container,
2714
+ return /* @__PURE__ */ j(V, {
2715
+ style: Pe.container,
2736
2716
  children: [
2737
- /* @__PURE__ */ M(z, {
2738
- style: [Ie.label, { color: c.textSecondary }],
2739
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2717
+ /* @__PURE__ */ j(R, {
2718
+ style: [Pe.label, { color: c.textSecondary }],
2719
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2740
2720
  style: { color: c.error },
2741
2721
  children: "*"
2742
2722
  })]
2743
2723
  }),
2744
- /* @__PURE__ */ j(re, {
2724
+ /* @__PURE__ */ A(z, {
2745
2725
  style: [
2746
- Ie.input,
2726
+ Pe.input,
2747
2727
  {
2748
2728
  backgroundColor: c.input,
2749
2729
  borderColor: c.border,
@@ -2757,17 +2737,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2757
2737
  placeholderTextColor: c.textMuted,
2758
2738
  accessibilityLabel: s
2759
2739
  }),
2760
- r && /* @__PURE__ */ j(z, {
2761
- style: [Ie.error, { color: c.error }],
2740
+ r && /* @__PURE__ */ A(R, {
2741
+ style: [Pe.error, { color: c.error }],
2762
2742
  children: r
2763
2743
  }),
2764
- o && !r && /* @__PURE__ */ j(z, {
2765
- style: [Ie.helperText, { color: c.textMuted }],
2744
+ o && !r && /* @__PURE__ */ A(R, {
2745
+ style: [Pe.helperText, { color: c.textMuted }],
2766
2746
  children: o
2767
2747
  })
2768
2748
  ]
2769
2749
  });
2770
- }, Ie = L.create({
2750
+ }, Pe = I.create({
2771
2751
  container: { marginBottom: 16 },
2772
2752
  error: {
2773
2753
  fontSize: 12,
@@ -2789,25 +2769,25 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2789
2769
  fontWeight: "500",
2790
2770
  marginBottom: 8
2791
2771
  }
2792
- }), Le = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
2793
- let [s, c] = A(!1), { colors: l } = _(), u = (t || "").split(":"), d = Number.parseInt(u[0], 10), f = Number.parseInt(u[1], 10), p = Number.isNaN(d) ? 0 : d, m = Number.isNaN(f) ? 0 : f, [h, g] = A(p || 0), [v, y] = A(m || 0), b = k(null), x = k(null), S = Array.from({ length: 24 }, (e, t) => t), C = Array.from({ length: 60 }, (e, t) => t), w = () => t || a || "Select time", T = E(() => {
2772
+ }), Fe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
2773
+ let [s, c] = k(!1), { colors: l } = _(), u = (t || "").split(":"), d = Number.parseInt(u[0], 10), f = Number.parseInt(u[1], 10), p = Number.isNaN(d) ? 0 : d, m = Number.isNaN(f) ? 0 : f, [h, g] = k(p || 0), [v, y] = k(m || 0), b = O(null), x = O(null), S = Array.from({ length: 24 }, (e, t) => t), C = Array.from({ length: 60 }, (e, t) => t), w = () => t || a || "Select time", T = te(() => {
2794
2774
  n(`${String(h).padStart(2, "0")}:${String(v).padStart(2, "0")}`), c(!1);
2795
2775
  }, [
2796
2776
  h,
2797
2777
  v,
2798
2778
  n
2799
2779
  ]);
2800
- return /* @__PURE__ */ M(V, {
2780
+ return /* @__PURE__ */ j(V, {
2801
2781
  style: Q.container,
2802
2782
  children: [
2803
- /* @__PURE__ */ M(z, {
2783
+ /* @__PURE__ */ j(R, {
2804
2784
  style: [Q.label, { color: l.textSecondary }],
2805
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
2785
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
2806
2786
  style: { color: l.error },
2807
2787
  children: "*"
2808
2788
  })]
2809
2789
  }),
2810
- /* @__PURE__ */ M(B, {
2790
+ /* @__PURE__ */ j(B, {
2811
2791
  style: [
2812
2792
  Q.trigger,
2813
2793
  {
@@ -2820,7 +2800,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2820
2800
  g(p || 0), y(m || 0), c(!0);
2821
2801
  },
2822
2802
  activeOpacity: .7,
2823
- children: [/* @__PURE__ */ j(z, {
2803
+ children: [/* @__PURE__ */ A(R, {
2824
2804
  style: [
2825
2805
  Q.triggerText,
2826
2806
  { color: l.text },
@@ -2828,56 +2808,56 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2828
2808
  ],
2829
2809
  numberOfLines: 1,
2830
2810
  children: w()
2831
- }), /* @__PURE__ */ j(z, {
2811
+ }), /* @__PURE__ */ A(R, {
2832
2812
  style: Q.icon,
2833
2813
  children: "🕐"
2834
2814
  })]
2835
2815
  }),
2836
- /* @__PURE__ */ j(F, {
2816
+ /* @__PURE__ */ A(P, {
2837
2817
  visible: s,
2838
2818
  transparent: !0,
2839
2819
  animationType: "fade",
2840
2820
  onRequestClose: () => c(!1),
2841
- children: /* @__PURE__ */ j(B, {
2821
+ children: /* @__PURE__ */ A(B, {
2842
2822
  style: Q.modalOverlay,
2843
2823
  activeOpacity: 1,
2844
2824
  onPress: () => c(!1),
2845
- children: /* @__PURE__ */ M(B, {
2825
+ children: /* @__PURE__ */ j(B, {
2846
2826
  style: [Q.modalContent, { backgroundColor: l.card }],
2847
2827
  activeOpacity: 1,
2848
2828
  onPress: () => {},
2849
2829
  children: [
2850
- /* @__PURE__ */ M(V, {
2830
+ /* @__PURE__ */ j(V, {
2851
2831
  style: [Q.modalHeader, { borderBottomColor: l.separator }],
2852
- children: [/* @__PURE__ */ j(z, {
2832
+ children: [/* @__PURE__ */ A(R, {
2853
2833
  style: [Q.modalTitle, { color: l.text }],
2854
2834
  children: i || e.data.name
2855
- }), /* @__PURE__ */ j(B, {
2835
+ }), /* @__PURE__ */ A(B, {
2856
2836
  onPress: () => c(!1),
2857
- children: /* @__PURE__ */ j(z, {
2837
+ children: /* @__PURE__ */ A(R, {
2858
2838
  style: [Q.closeButton, { color: l.textMuted }],
2859
2839
  children: "✕"
2860
2840
  })
2861
2841
  })]
2862
2842
  }),
2863
- /* @__PURE__ */ M(V, {
2843
+ /* @__PURE__ */ j(V, {
2864
2844
  style: Q.pickerContainer,
2865
2845
  children: [
2866
- /* @__PURE__ */ M(V, {
2846
+ /* @__PURE__ */ j(V, {
2867
2847
  style: Q.pickerColumn,
2868
- children: [/* @__PURE__ */ j(z, {
2848
+ children: [/* @__PURE__ */ A(R, {
2869
2849
  style: [Q.pickerLabel, { color: l.textMuted }],
2870
2850
  children: "Hour"
2871
- }), /* @__PURE__ */ j(I, {
2851
+ }), /* @__PURE__ */ A(F, {
2872
2852
  ref: b,
2873
2853
  style: Q.picker,
2874
2854
  contentContainerStyle: Q.pickerContent,
2875
2855
  showsVerticalScrollIndicator: !1,
2876
- children: S.map((e) => /* @__PURE__ */ j(B, {
2856
+ children: S.map((e) => /* @__PURE__ */ A(B, {
2877
2857
  style: [Q.pickerItem, h === e && { backgroundColor: l.primary }],
2878
2858
  onPress: () => g(e),
2879
2859
  activeOpacity: .7,
2880
- children: /* @__PURE__ */ j(z, {
2860
+ children: /* @__PURE__ */ A(R, {
2881
2861
  style: [
2882
2862
  Q.pickerItemText,
2883
2863
  { color: l.text },
@@ -2891,25 +2871,25 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2891
2871
  }, e))
2892
2872
  })]
2893
2873
  }),
2894
- /* @__PURE__ */ j(z, {
2874
+ /* @__PURE__ */ A(R, {
2895
2875
  style: [Q.pickerSeparator, { color: l.text }],
2896
2876
  children: ":"
2897
2877
  }),
2898
- /* @__PURE__ */ M(V, {
2878
+ /* @__PURE__ */ j(V, {
2899
2879
  style: Q.pickerColumn,
2900
- children: [/* @__PURE__ */ j(z, {
2880
+ children: [/* @__PURE__ */ A(R, {
2901
2881
  style: [Q.pickerLabel, { color: l.textMuted }],
2902
2882
  children: "Minute"
2903
- }), /* @__PURE__ */ j(I, {
2883
+ }), /* @__PURE__ */ A(F, {
2904
2884
  ref: x,
2905
2885
  style: Q.picker,
2906
2886
  contentContainerStyle: Q.pickerContent,
2907
2887
  showsVerticalScrollIndicator: !1,
2908
- children: C.map((e) => /* @__PURE__ */ j(B, {
2888
+ children: C.map((e) => /* @__PURE__ */ A(B, {
2909
2889
  style: [Q.pickerItem, v === e && { backgroundColor: l.primary }],
2910
2890
  onPress: () => y(e),
2911
2891
  activeOpacity: .7,
2912
- children: /* @__PURE__ */ j(z, {
2892
+ children: /* @__PURE__ */ A(R, {
2913
2893
  style: [
2914
2894
  Q.pickerItemText,
2915
2895
  { color: l.text },
@@ -2925,11 +2905,11 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2925
2905
  })
2926
2906
  ]
2927
2907
  }),
2928
- /* @__PURE__ */ j(B, {
2908
+ /* @__PURE__ */ A(B, {
2929
2909
  style: [Q.confirmButton, { backgroundColor: l.primary }],
2930
2910
  onPress: T,
2931
2911
  activeOpacity: .7,
2932
- children: /* @__PURE__ */ j(z, {
2912
+ children: /* @__PURE__ */ A(R, {
2933
2913
  style: [Q.confirmButtonText, { color: l.background }],
2934
2914
  children: "Confirm"
2935
2915
  })
@@ -2938,17 +2918,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
2938
2918
  })
2939
2919
  })
2940
2920
  }),
2941
- r && /* @__PURE__ */ j(z, {
2921
+ r && /* @__PURE__ */ A(R, {
2942
2922
  style: [Q.error, { color: l.error }],
2943
2923
  children: r
2944
2924
  }),
2945
- o && !r && /* @__PURE__ */ j(z, {
2925
+ o && !r && /* @__PURE__ */ A(R, {
2946
2926
  style: [Q.helperText, { color: l.textMuted }],
2947
2927
  children: o
2948
2928
  })
2949
2929
  ]
2950
2930
  });
2951
- }, Q = L.create({
2931
+ }, Q = I.create({
2952
2932
  closeButton: {
2953
2933
  fontSize: 24,
2954
2934
  fontWeight: "300"
@@ -3039,31 +3019,31 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3039
3019
  flex: 1,
3040
3020
  fontSize: 14
3041
3021
  }
3042
- }), Re = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
3043
- let [o, s] = A(!1), [c, l] = A(!0), u = p(), { colors: d } = _(), f = Array.isArray(t) ? t : [], m = f[0] || "", h = f[1] || "", g = m.split(":"), v = Number.parseInt(g[0], 10), y = Number.parseInt(g[1], 10), b = Number.isNaN(v) ? 0 : v, x = Number.isNaN(y) ? 0 : y, S = h.split(":"), C = Number.parseInt(S[0], 10), w = Number.parseInt(S[1], 10), T = Number.isNaN(C) ? 0 : C, ee = Number.isNaN(w) ? 0 : w, [D, O] = A(0), [k, N] = A(0), te = Array.from({ length: 24 }, (e, t) => t), ne = Array.from({ length: 60 }, (e, t) => t), P = () => m && h ? `${m} - ${h}` : m || u("renderer.defaultInputs.selectDateRange"), L = E(() => {
3044
- let e = `${String(D).padStart(2, "0")}:${String(k).padStart(2, "0")}`;
3045
- c ? (n([e, h]), l(!1), O(T || 0), N(ee || 0)) : (n([m, e]), s(!1), l(!0));
3022
+ }), Ie = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
3023
+ let [o, s] = k(!1), [c, l] = k(!0), u = p(), { colors: d } = _(), f = Array.isArray(t) ? t : [], m = f[0] || "", h = f[1] || "", g = m.split(":"), v = Number.parseInt(g[0], 10), y = Number.parseInt(g[1], 10), b = Number.isNaN(v) ? 0 : v, x = Number.isNaN(y) ? 0 : y, S = h.split(":"), C = Number.parseInt(S[0], 10), w = Number.parseInt(S[1], 10), T = Number.isNaN(C) ? 0 : C, ee = Number.isNaN(w) ? 0 : w, [E, D] = k(0), [O, M] = k(0), ne = Array.from({ length: 24 }, (e, t) => t), N = Array.from({ length: 60 }, (e, t) => t), re = () => m && h ? `${m} - ${h}` : m || u("renderer.defaultInputs.selectDateRange"), I = te(() => {
3024
+ let e = `${String(E).padStart(2, "0")}:${String(O).padStart(2, "0")}`;
3025
+ c ? (n([e, h]), l(!1), D(T || 0), M(ee || 0)) : (n([m, e]), s(!1), l(!0));
3046
3026
  }, [
3047
3027
  c,
3048
- D,
3049
- k,
3028
+ E,
3029
+ O,
3050
3030
  m,
3051
3031
  h,
3052
3032
  T,
3053
3033
  ee,
3054
3034
  n
3055
3035
  ]);
3056
- return /* @__PURE__ */ M(V, {
3036
+ return /* @__PURE__ */ j(V, {
3057
3037
  style: $.container,
3058
3038
  children: [
3059
- /* @__PURE__ */ M(z, {
3039
+ /* @__PURE__ */ j(R, {
3060
3040
  style: [$.label, { color: d.textSecondary }],
3061
- children: [i || e.data.name, e.data.required && /* @__PURE__ */ j(z, {
3041
+ children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(R, {
3062
3042
  style: { color: d.error },
3063
3043
  children: "*"
3064
3044
  })]
3065
3045
  }),
3066
- /* @__PURE__ */ M(B, {
3046
+ /* @__PURE__ */ j(B, {
3067
3047
  style: [
3068
3048
  $.trigger,
3069
3049
  {
@@ -3073,77 +3053,77 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3073
3053
  r && { borderColor: d.error }
3074
3054
  ],
3075
3055
  onPress: () => {
3076
- O(b || 0), N(x || 0), l(!0), s(!0);
3056
+ D(b || 0), M(x || 0), l(!0), s(!0);
3077
3057
  },
3078
3058
  activeOpacity: .7,
3079
- children: [/* @__PURE__ */ j(z, {
3059
+ children: [/* @__PURE__ */ A(R, {
3080
3060
  style: [
3081
3061
  $.triggerText,
3082
3062
  { color: d.text },
3083
3063
  !m && { color: d.textMuted }
3084
3064
  ],
3085
3065
  numberOfLines: 1,
3086
- children: P()
3087
- }), /* @__PURE__ */ j(z, {
3066
+ children: re()
3067
+ }), /* @__PURE__ */ A(R, {
3088
3068
  style: $.icon,
3089
3069
  children: "🕐"
3090
3070
  })]
3091
3071
  }),
3092
- /* @__PURE__ */ j(F, {
3072
+ /* @__PURE__ */ A(P, {
3093
3073
  visible: o,
3094
3074
  transparent: !0,
3095
3075
  animationType: "fade",
3096
3076
  onRequestClose: () => s(!1),
3097
- children: /* @__PURE__ */ j(B, {
3077
+ children: /* @__PURE__ */ A(B, {
3098
3078
  style: $.modalOverlay,
3099
3079
  activeOpacity: 1,
3100
3080
  onPress: () => s(!1),
3101
- children: /* @__PURE__ */ M(B, {
3081
+ children: /* @__PURE__ */ j(B, {
3102
3082
  style: [$.modalContent, { backgroundColor: d.card }],
3103
3083
  activeOpacity: 1,
3104
3084
  onPress: () => {},
3105
3085
  children: [
3106
- /* @__PURE__ */ M(V, {
3086
+ /* @__PURE__ */ j(V, {
3107
3087
  style: [$.modalHeader, { borderBottomColor: d.separator }],
3108
- children: [/* @__PURE__ */ j(z, {
3088
+ children: [/* @__PURE__ */ A(R, {
3109
3089
  style: [$.modalTitle, { color: d.text }],
3110
3090
  children: i || e.data.name
3111
- }), /* @__PURE__ */ j(B, {
3091
+ }), /* @__PURE__ */ A(B, {
3112
3092
  onPress: () => s(!1),
3113
- children: /* @__PURE__ */ j(z, {
3093
+ children: /* @__PURE__ */ A(R, {
3114
3094
  style: [$.closeButton, { color: d.textMuted }],
3115
3095
  children: "✕"
3116
3096
  })
3117
3097
  })]
3118
3098
  }),
3119
- /* @__PURE__ */ j(V, {
3099
+ /* @__PURE__ */ A(V, {
3120
3100
  style: [$.rangeIndicator, { backgroundColor: d.primaryLight }],
3121
- children: /* @__PURE__ */ j(z, {
3101
+ children: /* @__PURE__ */ A(R, {
3122
3102
  style: [$.rangeIndicatorText, { color: d.primary }],
3123
3103
  children: u(c ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3124
3104
  })
3125
3105
  }),
3126
- /* @__PURE__ */ M(V, {
3106
+ /* @__PURE__ */ j(V, {
3127
3107
  style: $.pickerContainer,
3128
3108
  children: [
3129
- /* @__PURE__ */ M(V, {
3109
+ /* @__PURE__ */ j(V, {
3130
3110
  style: $.pickerColumn,
3131
- children: [/* @__PURE__ */ j(z, {
3111
+ children: [/* @__PURE__ */ A(R, {
3132
3112
  style: [$.pickerLabel, { color: d.textMuted }],
3133
3113
  children: "Hour"
3134
- }), /* @__PURE__ */ j(I, {
3114
+ }), /* @__PURE__ */ A(F, {
3135
3115
  style: $.picker,
3136
3116
  contentContainerStyle: $.pickerContent,
3137
3117
  showsVerticalScrollIndicator: !1,
3138
- children: te.map((e) => /* @__PURE__ */ j(B, {
3139
- style: [$.pickerItem, D === e && { backgroundColor: d.primary }],
3140
- onPress: () => O(e),
3118
+ children: ne.map((e) => /* @__PURE__ */ A(B, {
3119
+ style: [$.pickerItem, E === e && { backgroundColor: d.primary }],
3120
+ onPress: () => D(e),
3141
3121
  activeOpacity: .7,
3142
- children: /* @__PURE__ */ j(z, {
3122
+ children: /* @__PURE__ */ A(R, {
3143
3123
  style: [
3144
3124
  $.pickerItemText,
3145
3125
  { color: d.text },
3146
- D === e && {
3126
+ E === e && {
3147
3127
  color: d.background,
3148
3128
  fontWeight: "600"
3149
3129
  }
@@ -3153,28 +3133,28 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3153
3133
  }, e))
3154
3134
  })]
3155
3135
  }),
3156
- /* @__PURE__ */ j(z, {
3136
+ /* @__PURE__ */ A(R, {
3157
3137
  style: [$.pickerSeparator, { color: d.text }],
3158
3138
  children: ":"
3159
3139
  }),
3160
- /* @__PURE__ */ M(V, {
3140
+ /* @__PURE__ */ j(V, {
3161
3141
  style: $.pickerColumn,
3162
- children: [/* @__PURE__ */ j(z, {
3142
+ children: [/* @__PURE__ */ A(R, {
3163
3143
  style: [$.pickerLabel, { color: d.textMuted }],
3164
3144
  children: "Minute"
3165
- }), /* @__PURE__ */ j(I, {
3145
+ }), /* @__PURE__ */ A(F, {
3166
3146
  style: $.picker,
3167
3147
  contentContainerStyle: $.pickerContent,
3168
3148
  showsVerticalScrollIndicator: !1,
3169
- children: ne.map((e) => /* @__PURE__ */ j(B, {
3170
- style: [$.pickerItem, k === e && { backgroundColor: d.primary }],
3171
- onPress: () => N(e),
3149
+ children: N.map((e) => /* @__PURE__ */ A(B, {
3150
+ style: [$.pickerItem, O === e && { backgroundColor: d.primary }],
3151
+ onPress: () => M(e),
3172
3152
  activeOpacity: .7,
3173
- children: /* @__PURE__ */ j(z, {
3153
+ children: /* @__PURE__ */ A(R, {
3174
3154
  style: [
3175
3155
  $.pickerItemText,
3176
3156
  { color: d.text },
3177
- k === e && {
3157
+ O === e && {
3178
3158
  color: d.background,
3179
3159
  fontWeight: "600"
3180
3160
  }
@@ -3186,11 +3166,11 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3186
3166
  })
3187
3167
  ]
3188
3168
  }),
3189
- /* @__PURE__ */ j(B, {
3169
+ /* @__PURE__ */ A(B, {
3190
3170
  style: [$.confirmButton, { backgroundColor: d.primary }],
3191
- onPress: L,
3171
+ onPress: I,
3192
3172
  activeOpacity: .7,
3193
- children: /* @__PURE__ */ j(z, {
3173
+ children: /* @__PURE__ */ A(R, {
3194
3174
  style: [$.confirmButtonText, { color: d.background }],
3195
3175
  children: c ? "Next" : "Confirm"
3196
3176
  })
@@ -3199,17 +3179,17 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3199
3179
  })
3200
3180
  })
3201
3181
  }),
3202
- r && /* @__PURE__ */ j(z, {
3182
+ r && /* @__PURE__ */ A(R, {
3203
3183
  style: [$.error, { color: d.error }],
3204
3184
  children: r
3205
3185
  }),
3206
- a && !r && /* @__PURE__ */ j(z, {
3186
+ a && !r && /* @__PURE__ */ A(R, {
3207
3187
  style: [$.helperText, { color: d.textMuted }],
3208
3188
  children: a
3209
3189
  })
3210
3190
  ]
3211
3191
  });
3212
- }, $ = L.create({
3192
+ }, $ = I.create({
3213
3193
  closeButton: {
3214
3194
  fontSize: 24,
3215
3195
  fontWeight: "300"
@@ -3310,32 +3290,112 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3310
3290
  flex: 1,
3311
3291
  fontSize: 14
3312
3292
  }
3313
- }), ze = ({ node: e }) => /* @__PURE__ */ M(z, { children: [
3293
+ }), Le = ({ node: e }) => /* @__PURE__ */ j(R, { children: [
3314
3294
  "TODO: Implement ",
3315
3295
  e.data.type,
3316
3296
  " input for React Native"
3317
- ] }), Be = {
3318
- address: ue,
3319
- autocomplete: U,
3320
- checkbox: de,
3321
- date: fe,
3322
- daterange: pe,
3323
- file: me,
3324
- hidden: he,
3325
- http: we,
3326
- number: Te,
3327
- password: De,
3328
- radio: ke,
3329
- select: Ae,
3330
- submit: ze,
3331
- switch: je,
3332
- text: Fe,
3333
- textarea: Ne,
3334
- time: Le,
3335
- timerange: Re
3336
- }, Ve = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3297
+ ] }), Re = {
3298
+ address: ce,
3299
+ autocomplete: le,
3300
+ checkbox: W,
3301
+ date: ue,
3302
+ daterange: de,
3303
+ file: fe,
3304
+ hidden: pe,
3305
+ http: Se,
3306
+ number: Ce,
3307
+ password: Te,
3308
+ radio: De,
3309
+ select: Oe,
3310
+ submit: Le,
3311
+ switch: ke,
3312
+ text: Ne,
3313
+ textarea: je,
3314
+ time: Fe,
3315
+ timerange: Ie
3316
+ }, ze = ({ label: e, children: t, isFirstStep: n, isLastStep: r, canContinue: i, isSubmitting: a, onBack: o, onContinue: s }) => {
3317
+ let c = p(), { colors: l } = _(), u = !i || a;
3318
+ return /* @__PURE__ */ j(V, { children: [
3319
+ e ? /* @__PURE__ */ A(R, {
3320
+ style: [Be.label, { color: l.text }],
3321
+ children: e
3322
+ }) : null,
3323
+ /* @__PURE__ */ A(V, {
3324
+ style: Be.content,
3325
+ children: t
3326
+ }),
3327
+ /* @__PURE__ */ j(V, {
3328
+ style: Be.actions,
3329
+ children: [n ? /* @__PURE__ */ A(V, {}) : /* @__PURE__ */ A(B, {
3330
+ style: [
3331
+ Be.backButton,
3332
+ { borderColor: l.border },
3333
+ a && Be.disabled
3334
+ ],
3335
+ onPress: o,
3336
+ disabled: a,
3337
+ activeOpacity: .7,
3338
+ children: /* @__PURE__ */ A(R, {
3339
+ style: [Be.backButtonText, { color: l.text }],
3340
+ children: c("renderer.step.back")
3341
+ })
3342
+ }), /* @__PURE__ */ A(B, {
3343
+ style: [
3344
+ Be.continueButton,
3345
+ { backgroundColor: l.primary },
3346
+ u && {
3347
+ backgroundColor: l.primaryDisabled,
3348
+ opacity: .6
3349
+ }
3350
+ ],
3351
+ onPress: s,
3352
+ disabled: u,
3353
+ activeOpacity: .7,
3354
+ children: a ? /* @__PURE__ */ A(M, { color: l.primaryForeground }) : /* @__PURE__ */ A(R, {
3355
+ style: [Be.continueButtonText, { color: l.primaryForeground }],
3356
+ children: c(r ? "renderer.defaultSubmitButton.submit" : "renderer.step.continue")
3357
+ })
3358
+ })]
3359
+ })
3360
+ ] });
3361
+ }, Be = I.create({
3362
+ actions: {
3363
+ alignItems: "center",
3364
+ flexDirection: "row",
3365
+ justifyContent: "space-between",
3366
+ marginTop: 24
3367
+ },
3368
+ backButton: {
3369
+ borderRadius: 6,
3370
+ borderWidth: 1,
3371
+ paddingHorizontal: 16,
3372
+ paddingVertical: 10
3373
+ },
3374
+ backButtonText: {
3375
+ fontSize: 14,
3376
+ fontWeight: "500"
3377
+ },
3378
+ content: { gap: 8 },
3379
+ continueButton: {
3380
+ alignItems: "center",
3381
+ borderRadius: 6,
3382
+ justifyContent: "center",
3383
+ paddingHorizontal: 24,
3384
+ paddingVertical: 12
3385
+ },
3386
+ continueButtonText: {
3387
+ fontSize: 14,
3388
+ fontWeight: "600"
3389
+ },
3390
+ disabled: { opacity: .5 },
3391
+ label: {
3392
+ fontSize: 16,
3393
+ fontWeight: "600",
3394
+ marginBottom: 12
3395
+ }
3396
+ }), Ve = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3337
3397
  let { colors: i } = _();
3338
- return /* @__PURE__ */ j(B, {
3398
+ return /* @__PURE__ */ A(B, {
3339
3399
  style: [
3340
3400
  He.button,
3341
3401
  { backgroundColor: i.primary },
@@ -3347,12 +3407,12 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3347
3407
  disabled: t || n,
3348
3408
  onPress: r,
3349
3409
  activeOpacity: .7,
3350
- children: n ? /* @__PURE__ */ j(N, { color: i.primaryForeground }) : /* @__PURE__ */ j(z, {
3410
+ children: n ? /* @__PURE__ */ A(M, { color: i.primaryForeground }) : /* @__PURE__ */ A(R, {
3351
3411
  style: [He.buttonText, { color: i.primaryForeground }],
3352
3412
  children: e
3353
3413
  })
3354
3414
  });
3355
- }, He = L.create({
3415
+ }, He = I.create({
3356
3416
  button: {
3357
3417
  alignItems: "center",
3358
3418
  borderRadius: 6,
@@ -3367,14 +3427,14 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3367
3427
  }
3368
3428
  }), Ue = ({ children: e }) => e, We = ({ node: e }) => {
3369
3429
  let t = p(), { colors: n } = _(), r = t(e.data?.label);
3370
- return /* @__PURE__ */ j(z, {
3430
+ return /* @__PURE__ */ A(R, {
3371
3431
  style: [Ke.title, { color: n.text }],
3372
3432
  children: r
3373
3433
  });
3374
3434
  }, Ge = () => {
3375
3435
  let { colors: e } = _();
3376
- return /* @__PURE__ */ j(V, { style: [Ke.divider, { backgroundColor: e.separator }] });
3377
- }, Ke = L.create({
3436
+ return /* @__PURE__ */ A(V, { style: [Ke.divider, { backgroundColor: e.separator }] });
3437
+ }, Ke = I.create({
3378
3438
  divider: {
3379
3439
  height: 1,
3380
3440
  marginBottom: 16,
@@ -3390,18 +3450,18 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3390
3450
  title: We
3391
3451
  }, Je = ({ node: e, children: t }) => {
3392
3452
  let { image: n } = e.data;
3393
- return /* @__PURE__ */ M(V, { children: [n && /* @__PURE__ */ j(P, {
3453
+ return /* @__PURE__ */ j(V, { children: [n && /* @__PURE__ */ A(re, {
3394
3454
  source: { uri: n },
3395
3455
  style: Ye.image,
3396
3456
  resizeMode: "cover"
3397
3457
  }), t] });
3398
- }, Ye = L.create({ image: {
3458
+ }, Ye = I.create({ image: {
3399
3459
  borderRadius: 6,
3400
3460
  height: 160,
3401
3461
  marginBottom: 8,
3402
3462
  width: "100%"
3403
3463
  } }), Xe = ({ components: e, contentContainerStyle: t, flows: n, googleApiKey: r, headers: i, initialValues: a, language: o, onChange: s, onSubmit: c, style: l, theme: u, validate: d, validationMode: f }) => {
3404
- let { colors: p } = _(), { canSubmit: h, clearSubmitMessage: g, config: v, formErrors: y, formValues: x, handleSubmit: S, inputNodes: w, isSubmitting: T, mergedFlow: ee, missingRequiredFields: E, setFieldValue: D, submitMessage: O, t: k, visibleNodes: A, visibleRootNodes: N } = m({
3464
+ let { colors: p } = _(), { canContinueStep: h, canSubmit: g, clearSubmitMessage: v, config: y, currentStep: x, currentStepGroupNode: S, currentStepIndex: w, formErrors: T, formValues: ee, goToNextStep: E, goToPreviousStep: O, handleSubmit: k, inputNodes: M, isFirstStep: ne, isLastStep: N, isSubmitting: re, mergedFlow: P, missingRequiredFields: I, setFieldValue: L, steps: z, submitMessage: B, t: ae } = m({
3405
3465
  components: e,
3406
3466
  flows: n,
3407
3467
  googleApiKey: r,
@@ -3413,22 +3473,30 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3413
3473
  theme: u,
3414
3474
  validate: d,
3415
3475
  validationMode: f
3416
- }), { FormWrapper: te, SubmitButton: ne, SubmitButtonWrapper: P, renderNode: F } = b({
3417
- config: v,
3476
+ }), { FormWrapper: oe, SubmitButtonWrapper: se, renderNode: ce } = b({
3477
+ config: y,
3418
3478
  DefaultFormWrapper: ie,
3419
- DefaultGroup: oe,
3420
3479
  DefaultInputWrapper: Je,
3421
3480
  DefaultSubmitButton: Ve,
3422
3481
  DefaultSubmitButtonWrapper: Ue,
3423
- defaultInputRenderers: Be,
3482
+ defaultInputRenderers: Re,
3424
3483
  defaultUI: qe,
3425
- formErrors: y,
3426
- formValues: x,
3427
- missingRequiredFields: E,
3428
- setFieldValue: D,
3429
- visibleNodes: A
3430
- });
3431
- return /* @__PURE__ */ j(I, {
3484
+ formErrors: T,
3485
+ formValues: ee,
3486
+ missingRequiredFields: I,
3487
+ setFieldValue: L
3488
+ }), H = y.components.step ?? ze, le = te(() => {
3489
+ if (N) {
3490
+ k();
3491
+ return;
3492
+ }
3493
+ E();
3494
+ }, [
3495
+ N,
3496
+ k,
3497
+ E
3498
+ ]), U = D(() => ae(S?.data?.label), [ae, S]);
3499
+ return /* @__PURE__ */ A(F, {
3432
3500
  nestedScrollEnabled: !0,
3433
3501
  style: [
3434
3502
  Qe.container,
@@ -3436,53 +3504,57 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3436
3504
  l
3437
3505
  ],
3438
3506
  contentContainerStyle: t,
3439
- children: /* @__PURE__ */ M(C, {
3507
+ children: /* @__PURE__ */ j(C, {
3440
3508
  value: {
3441
- flows: ee,
3442
- formErrors: y,
3443
- formValues: x,
3444
- googleApiKey: v.googleApiKey,
3445
- headers: v.headers,
3446
- inputNodes: w,
3447
- language: v.language,
3448
- setFieldValue: D
3509
+ flows: P,
3510
+ formErrors: T,
3511
+ formValues: ee,
3512
+ googleApiKey: y.googleApiKey,
3513
+ headers: y.headers,
3514
+ inputNodes: M,
3515
+ language: y.language,
3516
+ setFieldValue: L
3449
3517
  },
3450
- children: [/* @__PURE__ */ M(te, {
3451
- onSubmit: S,
3452
- children: [
3453
- N.map((e) => F(e)),
3454
- h && /* @__PURE__ */ j(P, {
3455
- missingFields: E,
3456
- children: /* @__PURE__ */ j(ne, {
3457
- onPress: S,
3458
- disabled: T,
3459
- isSubmitting: T,
3460
- children: k("renderer.defaultSubmitButton.submit")
3461
- })
3462
- }),
3463
- /* @__PURE__ */ j(z, {
3464
- style: [Qe.poweredBy, { color: p.textMuted }],
3465
- children: "Powered by Treege"
3518
+ children: [/* @__PURE__ */ j(oe, {
3519
+ onSubmit: k,
3520
+ children: [x && /* @__PURE__ */ A(se, {
3521
+ missingFields: N ? I : void 0,
3522
+ children: /* @__PURE__ */ A(H, {
3523
+ step: x,
3524
+ groupNode: S,
3525
+ stepIndex: w,
3526
+ totalSteps: z.length,
3527
+ isFirstStep: ne,
3528
+ isLastStep: N,
3529
+ canContinue: h && (!N || g),
3530
+ isSubmitting: re,
3531
+ onBack: O,
3532
+ onContinue: le,
3533
+ label: U,
3534
+ children: x.nodes.map((e) => ce(e))
3466
3535
  })
3467
- ]
3468
- }), O && /* @__PURE__ */ M(V, {
3469
- style: [Qe.message, { backgroundColor: O.type === "success" ? p.successBg : p.errorBg }],
3470
- children: [/* @__PURE__ */ j(z, {
3471
- style: [Qe.messageText, { color: O.type === "success" ? p.success : p.error }],
3472
- children: O.message
3473
- }), /* @__PURE__ */ j(z, {
3474
- style: [Qe.messageClose, { color: O.type === "success" ? p.success : p.error }],
3475
- onPress: g,
3476
- children: k("common.close")
3536
+ }), /* @__PURE__ */ A(R, {
3537
+ style: [Qe.poweredBy, { color: p.textMuted }],
3538
+ children: "Powered by Treege"
3539
+ })]
3540
+ }), B && /* @__PURE__ */ j(V, {
3541
+ style: [Qe.message, { backgroundColor: B.type === "success" ? p.successBg : p.errorBg }],
3542
+ children: [/* @__PURE__ */ A(R, {
3543
+ style: [Qe.messageText, { color: B.type === "success" ? p.success : p.error }],
3544
+ children: B.message
3545
+ }), /* @__PURE__ */ A(R, {
3546
+ style: [Qe.messageClose, { color: B.type === "success" ? p.success : p.error }],
3547
+ onPress: v,
3548
+ children: ae("common.close")
3477
3549
  })]
3478
3550
  })]
3479
3551
  })
3480
3552
  });
3481
- }, Ze = (e) => /* @__PURE__ */ j(S, {
3553
+ }, Ze = (e) => /* @__PURE__ */ A(S, {
3482
3554
  theme: e.theme,
3483
3555
  storageKey: "treege-renderer-theme",
3484
- children: /* @__PURE__ */ j(Xe, { ...e })
3485
- }), Qe = L.create({
3556
+ children: /* @__PURE__ */ A(Xe, { ...e })
3557
+ }), Qe = I.create({
3486
3558
  container: { flex: 1 },
3487
3559
  message: {
3488
3560
  borderRadius: 6,
@@ -3501,8 +3573,8 @@ var ie = ({ children: e }) => /* @__PURE__ */ j(V, {
3501
3573
  poweredBy: {
3502
3574
  fontSize: 12,
3503
3575
  paddingVertical: 8,
3504
- textAlign: "center"
3576
+ textAlign: "right"
3505
3577
  }
3506
3578
  });
3507
3579
  //#endregion
3508
- export { ue as DefaultAddressInput, U as DefaultAutocompleteInput, de as DefaultCheckboxInput, fe as DefaultDateInput, pe as DefaultDateRangeInput, Ge as DefaultDividerUI, me as DefaultFileInput, he as DefaultHiddenInput, we as DefaultHttpInput, Te as DefaultNumberInput, De as DefaultPasswordInput, ke as DefaultRadioInput, Ae as DefaultSelectInput, ze as DefaultSubmitInput, je as DefaultSwitchInput, Fe as DefaultTextInput, Ne as DefaultTextareaInput, Le as DefaultTimeInput, Re as DefaultTimeRangeInput, We as DefaultTitleUI, l as TreegeConfigProvider, Ze as TreegeRenderer, w as applyReferenceTransformation, c as calculateReferenceFieldUpdates, n as checkFormFieldHasValue, t as convertFormValuesToNamedFormat, Be as defaultInputRenderers, qe as defaultUI, r as evaluateCondition, i as evaluateConditions, x as fileToSerializable, d as filesToSerializable, u as findStartNode, T as getFlowRenderState, o as getTranslatedText, a as isFieldEmpty, s as isStartNode, e as mergeFlows, ve as sanitize, be as sanitizeHttpResponse, g as serializableToFile, v as useTreegeConfig, m as useTreegeRenderer };
3580
+ export { ce as DefaultAddressInput, le as DefaultAutocompleteInput, W as DefaultCheckboxInput, ue as DefaultDateInput, de as DefaultDateRangeInput, Ge as DefaultDividerUI, fe as DefaultFileInput, pe as DefaultHiddenInput, Se as DefaultHttpInput, Ce as DefaultNumberInput, Te as DefaultPasswordInput, De as DefaultRadioInput, Oe as DefaultSelectInput, Le as DefaultSubmitInput, ke as DefaultSwitchInput, Ne as DefaultTextInput, je as DefaultTextareaInput, Fe as DefaultTimeInput, Ie as DefaultTimeRangeInput, We as DefaultTitleUI, l as TreegeConfigProvider, Ze as TreegeRenderer, w as applyReferenceTransformation, c as calculateReferenceFieldUpdates, n as checkFormFieldHasValue, t as convertFormValuesToNamedFormat, Re as defaultInputRenderers, qe as defaultUI, r as evaluateCondition, i as evaluateConditions, x as fileToSerializable, d as filesToSerializable, u as findStartNode, T as getFlowRenderState, o as getTranslatedText, a as isFieldEmpty, s as isStartNode, e as mergeFlows, ge as sanitize, ve as sanitizeHttpResponse, g as serializableToFile, v as useTreegeConfig, m as useTreegeRenderer };