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