treege 3.0.0-beta.44 → 3.0.0-beta.46

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