treege 3.0.0-beta.55 → 3.0.0-beta.57

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