treege 3.0.0-beta.56 → 3.0.0-beta.58

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 (76) hide show
  1. package/README.md +33 -10
  2. package/dist/DefaultInputs-Dr3R5r53.js +1881 -0
  3. package/dist/ThemeContext-DrI5HTYl.js +1402 -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/features/TreegeEditor/inputs/ApiUrlCombobox.d.ts +0 -10
  8. package/dist/editor/types/editor.d.ts +35 -4
  9. package/dist/editor/utils/cleanNodeConfig.d.ts +5 -0
  10. package/dist/editor/utils/sensitiveHeaders.d.ts +15 -0
  11. package/dist/editor-BhL3w_KP.js +6251 -0
  12. package/dist/editor.js +2 -2
  13. package/dist/main.js +4 -4
  14. package/dist/renderer/context/TreegeRendererContext.d.ts +12 -0
  15. package/dist/renderer/features/TreegeRenderer/InputRendererHost.d.ts +15 -0
  16. package/dist/renderer/features/TreegeRenderer/native/components/DefaultInputs.d.ts +2 -2
  17. package/dist/renderer/features/TreegeRenderer/native/components/DependencyHint.d.ts +15 -0
  18. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultAddressInput.d.ts +2 -2
  19. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultAutocompleteInput.d.ts +2 -2
  20. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultCheckboxInput.d.ts +2 -2
  21. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultDateInput.d.ts +2 -2
  22. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultDateRangeInput.d.ts +2 -2
  23. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultFileInput.d.ts +2 -2
  24. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultHiddenInput.d.ts +2 -2
  25. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultHttpInput.d.ts +2 -2
  26. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultNumberInput.d.ts +2 -2
  27. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultPasswordInput.d.ts +2 -2
  28. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultRadioInput.d.ts +2 -2
  29. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultSelectInput.d.ts +2 -2
  30. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultSwitchInput.d.ts +2 -2
  31. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultTextInput.d.ts +2 -2
  32. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultTextareaInput.d.ts +2 -2
  33. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultTimeInput.d.ts +2 -2
  34. package/dist/renderer/features/TreegeRenderer/native/components/inputs/DefaultTimeRangeInput.d.ts +2 -2
  35. package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +20 -19
  36. package/dist/renderer/features/TreegeRenderer/web/TreegeRenderer.d.ts +1 -1
  37. package/dist/renderer/features/TreegeRenderer/web/components/DependencyHint.d.ts +22 -0
  38. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultAddressInput.d.ts +2 -2
  39. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultAutocompleteInput.d.ts +2 -2
  40. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultCheckboxInput.d.ts +2 -2
  41. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultDateInput.d.ts +2 -2
  42. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultDateRangeInput.d.ts +2 -2
  43. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultFileInput.d.ts +2 -2
  44. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultHiddenInput.d.ts +2 -2
  45. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultHttpInput.d.ts +2 -2
  46. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultNumberInput.d.ts +2 -2
  47. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultPasswordInput.d.ts +2 -2
  48. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultRadioInput.d.ts +2 -2
  49. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultSelectInput.d.ts +2 -2
  50. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultSubmitInput.d.ts +2 -2
  51. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultSwitchInput.d.ts +2 -2
  52. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultTextAreaInput.d.ts +2 -2
  53. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultTextInput.d.ts +2 -2
  54. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultTimeInput.d.ts +2 -2
  55. package/dist/renderer/features/TreegeRenderer/web/components/inputs/DefaultTimeRangeInput.d.ts +2 -2
  56. package/dist/renderer/hooks/useRenderNode.d.ts +2 -1
  57. package/dist/renderer/hooks/useSubmitHandler.d.ts +2 -1
  58. package/dist/renderer/types/renderer.d.ts +77 -23
  59. package/dist/renderer/utils/http.d.ts +11 -0
  60. package/dist/renderer/utils/node.d.ts +11 -0
  61. package/dist/renderer/utils/submit.d.ts +2 -1
  62. package/dist/renderer/utils/templateDependencies.d.ts +17 -0
  63. package/dist/renderer-native.js +1333 -1280
  64. package/dist/renderer.js +3 -3
  65. package/dist/shared/constants/inputType.d.ts +5 -0
  66. package/dist/shared/locales/ar.json.d.ts +15 -2
  67. package/dist/shared/locales/de.json.d.ts +15 -2
  68. package/dist/shared/locales/en.json.d.ts +15 -2
  69. package/dist/shared/locales/es.json.d.ts +15 -2
  70. package/dist/shared/locales/fr.json.d.ts +15 -2
  71. package/dist/shared/locales/it.json.d.ts +15 -2
  72. package/dist/shared/locales/pt.json.d.ts +15 -2
  73. package/package.json +1 -1
  74. package/dist/DefaultInputs-DklwwMaZ.js +0 -1807
  75. package/dist/ThemeContext-DAMkr9gW.js +0 -1362
  76. package/dist/editor-uMYOjG2i.js +0 -6079
@@ -1,12 +1,12 @@
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, N as t, O as n, P as r, S as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, k 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, z as E } from "./ThemeContext-DrI5HTYl.js";
2
+ import { useCallback as ee, useEffect as D, useMemo as O, useRef as k, useState as A } from "react";
3
+ import { Fragment as te, jsx as j, jsxs as M } from "react/jsx-runtime";
4
+ import { ActivityIndicator as N, Alert as P, Animated as F, FlatList as I, Image as ne, Modal as re, ScrollView as ie, 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, {
7
- style: ae.container,
6
+ var ae = ({ children: e }) => /* @__PURE__ */ j(H, {
7
+ style: oe.container,
8
8
  children: e
9
- }), ae = L.create({ container: { padding: 16 } }), oe = async (e, t) => {
9
+ }), oe = L.create({ container: { padding: 16 } }), se = async (e, t) => {
10
10
  if (!e || e.trim().length < 3) return [];
11
11
  try {
12
12
  let n = await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&addressdetails=1&limit=5`, { headers: {
@@ -21,7 +21,7 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
21
21
  } catch (e) {
22
22
  return console.error("Nominatim fetch error:", e), [];
23
23
  }
24
- }, se = async (e, t) => {
24
+ }, ce = async (e, t) => {
25
25
  if (!e || e.trim().length < 3) return [];
26
26
  try {
27
27
  let n = await fetch(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${encodeURIComponent(e)}&key=${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
+ }, le = (e, t) => {
38
+ let [n, i] = A(""), [a, o] = A([]), [s, c] = A(!1), [l, u] = A(!1), { value: d, placeholder: f, id: m, name: h } = e, { node: _, setValue: v, error: y, label: b, helperText: x } = t, { language: S, googleApiKey: C } = r(), w = p(), { colors: T } = g(), E = ee((e) => {
39
+ v(e.value), i(""), c(!1), o([]);
40
+ }, [v]), O = () => {
41
+ c(!1);
42
42
  };
43
- return E(() => {
44
- if (!u || u.trim().length < 3) {
45
- p([]), v(!1);
43
+ return D(() => {
44
+ if (!n || n.trim().length < 3) {
45
+ o([]), u(!1);
46
46
  return;
47
47
  }
48
- v(!0);
48
+ u(!0);
49
49
  let e = setTimeout(async () => {
50
- p(x ? await se(u, x) : await oe(u, b)), v(!1);
50
+ o(C ? await ce(n, C) : await se(n, S)), u(!1);
51
51
  }, 300);
52
52
  return () => {
53
- clearTimeout(e), v(!1);
53
+ clearTimeout(e), u(!1);
54
54
  };
55
55
  }, [
56
- u,
57
- b,
58
- x
59
- ]), /* @__PURE__ */ j(H, {
56
+ n,
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: () => c(!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
+ !d && { color: T.textMuted }
85
85
  ],
86
86
  numberOfLines: 1,
87
- children: t || o || S("renderer.defaultAddressInput.enterAddress")
88
- }), /* @__PURE__ */ A(z, {
87
+ children: d || f || 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: s,
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: f || w("renderer.defaultAddressInput.enterAddress"),
129
+ placeholderTextColor: T.textMuted,
130
+ value: n,
131
+ onChangeText: i,
132
132
  autoFocus: !0,
133
133
  autoCapitalize: "none",
134
134
  autoCorrect: !1
135
- }), _ && /* @__PURE__ */ A(M, {
135
+ }), l && /* @__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
+ l ? /* @__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(I, {
151
+ data: a,
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: n.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: () => E(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
+ }), ue = (e, t) => {
308
+ let [n, r] = A(!1), [i, a] = A(""), { value: o, placeholder: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, m = p(), { colors: h } = g(), _ = c.data.options || [], v = _.find((e) => e.value === o), y = O(() => {
309
+ if (!i.trim()) return _;
310
+ let e = i.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
+ i,
315
+ m
316
+ ]), b = (e) => {
317
+ l(e === o ? "" : e), r(!1), a("");
318
+ }, x = () => {
319
+ r(!1), a("");
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: [d || c.data.name, c.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
+ u && { borderColor: h.error }
339
339
  ],
340
- onPress: () => c(!0),
340
+ onPress: () => r(!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
+ !o && { 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: o && v ? m(v.label) : s || 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: d || c.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: s || m("renderer.defaultAutocompleteInput.search"),
391
+ placeholderTextColor: h.textMuted,
392
+ value: i,
393
+ onChangeText: a,
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(I, {
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 === o;
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
+ u && /* @__PURE__ */ j(z, {
437
+ style: [W.error, { color: h.error }],
438
+ children: u
439
439
  }),
440
- o && !r && /* @__PURE__ */ A(z, {
441
- style: [W.helperText, { color: f.textMuted }],
442
- children: o
440
+ f && !u && /* @__PURE__ */ j(z, {
441
+ style: [W.helperText, { color: h.textMuted }],
442
+ children: f
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
+ }), de = (e, t) => {
538
+ let n = p(), { value: r } = e, { node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = g(), u = i.data.options || [], d = u.length > 0, f = Array.isArray(r) ? r : [], m = typeof r == "boolean" ? r : !1, h = (e) => {
539
+ a(d ? f.includes(e) ? f.filter((t) => t !== e) : [...f, e] : !m);
540
+ }, _ = (e) => d ? f.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: l.textSecondary }],
546
+ children: [s || i.data.name, i.data.required && /* @__PURE__ */ j(z, {
547
+ style: { color: l.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
+ u.length > 0 ? u.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: l.input,
570
+ borderColor: l.border
571
571
  },
572
- p(e.value) && {
573
- backgroundColor: s.primary,
574
- borderColor: s.primary
572
+ _(e.value) && {
573
+ backgroundColor: l.primary,
574
+ borderColor: l.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: l.textSecondary },
587
+ e.disabled && { color: l.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: l.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: s || i.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: l.input,
609
+ borderColor: l.border
610
610
  },
611
- d && {
612
- backgroundColor: s.primary,
613
- borderColor: s.primary
611
+ m && {
612
+ backgroundColor: l.primary,
613
+ borderColor: l.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: l.textSecondary }],
622
+ children: s || i.data.name
623
623
  })]
624
624
  }),
625
- r && /* @__PURE__ */ A(z, {
626
- style: [G.error, { color: s.error }],
627
- children: r
625
+ o && /* @__PURE__ */ j(z, {
626
+ style: [G.error, { color: l.error }],
627
+ children: o
628
628
  }),
629
- a && !r && /* @__PURE__ */ A(z, {
630
- style: [G.helperText, { color: s.textMuted }],
631
- children: a
629
+ c && !o && /* @__PURE__ */ j(z, {
630
+ style: [G.helperText, { color: l.textMuted }],
631
+ children: c
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
+ }), fe = (e, t) => {
676
+ let [n, r] = A(!1), { value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = g(), f = p(), m = i ? new Date(i) : void 0, { year: h, month: _, today: v } = O(() => {
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] = A(h), [x, S] = A(_), 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 = O(() => {
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
+ o.data.disablePast && e < v || (s(e.toISOString()), r(!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
+ o.data.disablePast,
719
+ v,
720
+ s
721
+ ]), E = () => {
722
+ x === 0 ? (S(11), b(y - 1)) : S(x - 1);
723
+ }, D = () => {
724
+ x === 11 ? (S(0), b(y + 1)) : S(x + 1);
725
+ }, k = () => m ? m.toLocaleDateString() : a || f("renderer.defaultInputs.selectDate"), te = (e) => o.data.disablePast ? e < v : !1, N = (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: d.textSecondary }],
731
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ j(z, {
732
+ style: { color: d.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: d.input,
741
+ borderColor: d.border
742
742
  },
743
- r && { borderColor: u.error }
743
+ c && { borderColor: d.error }
744
744
  ],
745
- onPress: () => c(!0),
745
+ onPress: () => r(!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: d.text },
751
+ !i && { color: d.textMuted }
752
752
  ],
753
753
  numberOfLines: 1,
754
- children: T()
755
- }), /* @__PURE__ */ A(z, {
754
+ children: k()
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: () => r(!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: () => r(!1),
769
+ children: /* @__PURE__ */ M(V, {
770
+ style: [K.modalContent, { backgroundColor: d.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: d.separator }],
776
+ children: [/* @__PURE__ */ j(z, {
777
+ style: [K.modalTitle, { color: d.text }],
778
+ children: l || o.data.name
779
+ }), /* @__PURE__ */ j(V, {
780
+ onPress: () => r(!1),
781
+ children: /* @__PURE__ */ j(z, {
782
+ style: [K.closeButton, { color: d.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: d.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: d.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: D,
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: d.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: d.textMuted }],
828
828
  children: e
829
829
  }, e))
830
830
  }),
831
- /* @__PURE__ */ A(F, {
832
- data: S,
831
+ /* @__PURE__ */ j(I, {
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 = te(e.date), n = N(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: d.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: d.text },
857
+ !e.isCurrentMonth && { color: d.textMuted },
858
858
  n && {
859
- color: u.background,
859
+ color: d.background,
860
860
  fontWeight: "600"
861
861
  },
862
- t && { color: u.textMuted }
862
+ t && { color: d.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
+ c && /* @__PURE__ */ j(z, {
874
+ style: [K.error, { color: d.error }],
875
+ children: c
876
876
  }),
877
- o && !r && /* @__PURE__ */ A(z, {
878
- style: [K.helperText, { color: u.textMuted }],
879
- children: o
877
+ u && !c && /* @__PURE__ */ j(z, {
878
+ style: [K.helperText, { color: d.textMuted }],
879
+ children: u
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
+ }), pe = (e, t) => {
984
+ let [n, r] = A(!1), [i, a] = A(!0), { value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, f = p(), { colors: m } = g(), h = Array.isArray(o) ? o : [], _ = h[0] ? new Date(h[0]) : void 0, v = h[1] ? new Date(h[1]) : void 0, { year: y, month: b, today: x } = O(() => {
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] = A(y), [w, T] = A(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
+ ], D = O(() => {
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]), k = ee((e) => {
1024
+ s.data.disablePast && e < x || (i ? (c([e.toISOString(), v?.toISOString()]), a(!1)) : (c(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), r(!1), a(!0)));
1025
1025
  }, [
1026
- e.data.disablePast,
1026
+ s.data.disablePast,
1027
+ x,
1028
+ i,
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
+ c
1032
+ ]), te = () => {
1033
+ w === 0 ? (T(11), C(S - 1)) : T(w - 1);
1034
+ }, N = () => {
1035
+ w === 11 ? (T(0), C(S + 1)) : T(w + 1);
1036
+ }, P = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : f("renderer.defaultInputs.selectDateRange"), F = (e) => s.data.disablePast ? e < x : !1, ne = (e) => _ && v ? e >= _ && e <= v : !1, ie = (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: [u || s.data.name, s.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
+ l && { borderColor: m.error }
1059
1059
  ],
1060
- onPress: () => s(!0),
1060
+ onPress: () => r(!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: P()
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: () => r(!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: () => r(!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: u || s.data.name
1094
+ }), /* @__PURE__ */ j(V, {
1095
+ onPress: () => r(!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: f(i ? "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: te,
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: N,
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(I, {
1154
+ data: D,
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 = F(e.date), n = ne(e.date), r = ie(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: () => k(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
+ l && /* @__PURE__ */ j(z, {
1198
+ style: [q.error, { color: m.error }],
1199
+ children: l
1200
1200
  }),
1201
- a && !r && /* @__PURE__ */ A(z, {
1202
- style: [q.helperText, { color: d.textMuted }],
1203
- children: a
1201
+ d && !l && /* @__PURE__ */ j(z, {
1202
+ style: [q.helperText, { color: m.textMuted }],
1203
+ children: d
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
+ }), me = (e, t) => {
1318
+ let [n, r] = A(null), [i, a] = A(!0), { value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = g(), m = p(), h = Array.isArray(o) ? o : o ? [o] : [], _ = s.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
+ c(_ ? [...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`;
1341
- return E(() => {
1333
+ h,
1334
+ _,
1335
+ c,
1336
+ m
1337
+ ]), y = ee((e) => {
1338
+ let t = h.filter((t, n) => n !== e);
1339
+ c(t.length > 0 ? t : null);
1340
+ }, [h, c]), b = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1341
+ return D(() => {
1342
1342
  (async () => {
1343
1343
  try {
1344
1344
  let { pick: e } = await import("react-native-document-picker");
1345
- s(() => e);
1345
+ r(() => e);
1346
1346
  } catch {
1347
- s(null);
1347
+ r(null);
1348
1348
  } finally {
1349
- l(!1);
1349
+ a(!1);
1350
1350
  }
1351
1351
  })();
1352
- }, []), c ? null : o ? /* @__PURE__ */ j(H, {
1352
+ }, []), i ? 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: f.textSecondary }],
1357
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ j(z, {
1358
+ style: { color: f.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: f.card,
1367
+ borderColor: f.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: f.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: f.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: f.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: f.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: f.input,
1403
+ borderColor: f.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: f.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
+ l && /* @__PURE__ */ j(z, {
1413
+ style: [J.error, { color: f.error }],
1414
+ children: l
1415
1415
  }),
1416
- a && !r && /* @__PURE__ */ A(z, {
1417
- style: [J.helperText, { color: d.textMuted }],
1418
- children: a
1416
+ d && !l && /* @__PURE__ */ j(z, {
1417
+ style: [J.helperText, { color: f.textMuted }],
1418
+ children: d
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: f.textSecondary }],
1426
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ j(z, {
1427
+ style: { color: f.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: f.errorLight,
1434
+ borderColor: f.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: f.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
+ d && /* @__PURE__ */ j(z, {
1442
+ style: [J.helperText, { color: f.textMuted }],
1443
+ children: d
1444
1444
  })
1445
1445
  ]
1446
1446
  });
@@ -1513,261 +1513,311 @@ 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
+ }), he = (e, t) => null, ge = ({ missing: e, children: t }) => {
1517
+ let n = p(), { colors: r } = g();
1518
+ return /* @__PURE__ */ M(te, { children: [t, e.length > 0 && /* @__PURE__ */ M(H, {
1519
+ style: _e.container,
1520
+ children: [/* @__PURE__ */ j(z, {
1521
+ style: [_e.title, { color: r.textMuted }],
1522
+ children: n("renderer.dependencyHint.title")
1523
+ }), e.map((e) => /* @__PURE__ */ M(z, {
1524
+ style: [_e.item, { color: r.textMuted }],
1525
+ children: [
1526
+ "•",
1527
+ " ",
1528
+ e.label
1529
+ ]
1530
+ }, e.id))]
1531
+ })] });
1532
+ }, _e = 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
+ }), ve = (e) => e.replace(/<[^>]*>/g, ""), ye = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), be = (e, t = {}) => e == null || e === "" ? "" : ye(ve(String(e))), xe = 100, Se = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1543
+ if (n > xe) return console.warn(`sanitizeHttpResponse: Maximum depth (${xe}) exceeded.`), typeof e == "string" ? be(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 be(e, t);
1546
+ if (Array.isArray(e)) return e.map((e) => Se(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] = Se(o, t, n + 1, r);
1526
1552
  return r.delete(e), i;
1527
1553
  }
1528
1554
  return e;
1529
- }, be = (e) => {
1555
+ }, Ce = (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
+ }, we = (e, t) => Ce(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
+ }), Te = (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, [
1540
- L?.url,
1541
- de,
1542
- N
1543
- ]), q = te(async (n) => {
1544
- ue.current && ue.current.abort();
1564
+ }), Ee = (t, a) => {
1565
+ let [o, s] = A(!1), [c, l] = A(null), [u, f] = A([]), [m, h] = A(""), [_, v] = A(!1), { value: y, placeholder: b } = t, { node: x, setValue: S, error: w, label: T, helperText: E, missingDependencies: te } = a, { formValues: P, inputNodes: F, headers: ne, baseUrl: ie } = r(), { colors: L } = g(), { httpConfig: R } = x.data, ae = p(), oe = k(!1), se = k(!1), ce = k(""), le = k(R), U = k(P), ue = k(F), W = k(ne), de = k(ie), G = k(S), fe = k(null), K = k(null), pe = O(() => R?.url ? Ce(R.url) : [], [R?.url]), q = pe.length > 0, me = O(() => pe.map((e) => `${e}:${String(P[e] ?? "")}`).join("|"), [pe, P]), J = O(() => R?.url ? q ? we(R.url, P) : !0 : !1, [
1566
+ R?.url,
1567
+ q,
1568
+ P
1569
+ ]), he = ee(async (t) => {
1570
+ K.current && K.current.abort();
1545
1571
  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;
1572
+ K.current = r;
1573
+ let a = le.current, o = U.current, c = G.current;
1574
+ if (!a?.url) {
1575
+ l(ae("renderer.defaultHttpInput.noUrlConfigured")), K.current = null;
1550
1576
  return;
1551
1577
  }
1552
- if (i.url && !xe(i.url, a)) {
1553
- ue.current = null;
1578
+ if (a.url && !we(a.url, o)) {
1579
+ K.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 u = n(Te(a.url, o, !0), de.current), p = i(a.searchParam && t ? `${u}${u.includes("?") ? "&" : "?"}${a.searchParam}=${encodeURIComponent(t)}` : u, a.queryParams?.map((e) => ({
1559
1585
  key: e.key,
1560
- value: Se(e.value, a)
1561
- }))), u = (e) => ({
1586
+ value: Te(e.value, o)
1587
+ }))), m = (e) => ({
1562
1588
  key: e.key,
1563
- value: Se(e.value, a)
1564
- }), d = t([{
1589
+ value: Te(e.value, o)
1590
+ }), h = e([{
1565
1591
  key: "Content-Type",
1566
1592
  value: "application/json"
1567
- }], U.current?.map(u), i.headers?.map(u)), f = [
1593
+ }], W.current?.map(m), a.headers?.map(m)), g = [
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",
1597
+ ].includes(a.method || "") ? a.sendAllFormValues ? JSON.stringify(d(o, ue.current)) : a.body ? Te(a.body, o) : void 0 : void 0, _ = setTimeout(() => r.abort(), 3e4), v = await fetch(p, {
1598
+ body: g || void 0,
1599
+ headers: Object.fromEntries(h.filter((e) => e.key && e.value).map((e) => [e.key, e.value])),
1600
+ method: a.method || "GET",
1575
1601
  signal: r.signal
1576
1602
  });
1577
- if (clearTimeout(p), !h.ok) {
1578
- b(`HTTP Error ${h.status}: ${h.statusText}`), _(!1);
1603
+ if (clearTimeout(_), !v.ok) {
1604
+ l(`HTTP Error ${v.status}: ${v.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 y = Se(await v.json()), b = a.responsePath ? C(y, a.responsePath) : y;
1608
+ if (a.responseMapping && Array.isArray(b)) {
1609
+ let { valueField: e = "value", labelField: t = "label" } = a.responseMapping;
1610
+ f(b.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 c(typeof b == "string" ? b : JSON.stringify(b));
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 : ae("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1592
1618
  } finally {
1593
- _(!1), ue.current = null;
1619
+ s(!1), K.current = null;
1594
1620
  }
1595
- }, [R]);
1596
- if (E(() => {
1597
- oe.current = L, se.current = N, ce.current = P, U.current = ne, le.current = a, W.current = q;
1621
+ }, [ae]);
1622
+ if (D(() => {
1623
+ le.current = R, U.current = P, ue.current = F, W.current = ne, de.current = ie, G.current = S, fe.current = he;
1598
1624
  }, [
1599
- L,
1600
- N,
1625
+ R,
1601
1626
  P,
1627
+ F,
1602
1628
  ne,
1603
- a,
1604
- q
1605
- ]), E(() => () => {
1606
- ue.current && ue.current.abort(), ie.current = !1;
1607
- }, []), E(() => {
1608
- if (ie.current) return;
1609
- 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("|")));
1612
- }, []), E(() => {
1613
- if (!ie.current || !de || ae.current === K || !fe) return;
1629
+ ie,
1630
+ S,
1631
+ he
1632
+ ]), D(() => () => {
1633
+ K.current && K.current.abort(), oe.current = !1, se.current = !1;
1634
+ }, []), D(() => {
1635
+ if (oe.current) return;
1636
+ oe.current = !0;
1637
+ let e = le.current, t = U.current, n = fe.current, r = e?.url && we(e.url, t);
1638
+ e?.fetchOnMount && r && n && (n(), e.url && (ce.current = Ce(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1639
+ }, []), D(() => {
1640
+ if (!oe.current || !q || ce.current === me || !J) return;
1614
1641
  let e = setTimeout(() => {
1615
- q(), ae.current = K;
1642
+ he(), ce.current = me;
1616
1643
  }, 500);
1617
1644
  return () => clearTimeout(e);
1618
1645
  }, [
1619
- K,
1620
- de,
1621
- fe,
1622
- q
1623
- ]), E(() => {
1624
- if (!(L?.searchParam && C)) return;
1646
+ me,
1647
+ q,
1648
+ J,
1649
+ he
1650
+ ]), D(() => {
1651
+ if (!se.current) {
1652
+ se.current = !0;
1653
+ return;
1654
+ }
1655
+ let e = le.current, t = U.current, n = fe.current, r = e?.url && we(e.url, t);
1656
+ e?.fetchOnMount && r && n && (n(), e.url && (ce.current = Ce(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1657
+ }, [O(() => JSON.stringify({
1658
+ body: R?.body,
1659
+ fetchOnMount: R?.fetchOnMount,
1660
+ headers: R?.headers,
1661
+ method: R?.method,
1662
+ queryParams: R?.queryParams,
1663
+ responseMapping: R?.responseMapping,
1664
+ responsePath: R?.responsePath,
1665
+ searchParam: R?.searchParam,
1666
+ sendAllFormValues: R?.sendAllFormValues,
1667
+ url: R?.url
1668
+ }), [R])]), D(() => {
1669
+ if (!(R?.searchParam && m)) return;
1625
1670
  let e = setTimeout(() => {
1626
- q(C);
1671
+ he(m);
1627
1672
  }, 300);
1628
1673
  return () => clearTimeout(e);
1629
1674
  }, [
1630
- C,
1631
- L?.searchParam,
1632
- q
1633
- ]), L?.responseMapping) {
1634
- let e = Array.isArray(i) ? i[0] : i, t = x.find((t) => t.value === e);
1635
- if (L.searchParam) {
1636
- let r = h && L?.showLoading;
1637
- return /* @__PURE__ */ j(H, {
1675
+ m,
1676
+ R?.searchParam,
1677
+ he
1678
+ ]), R?.responseMapping) {
1679
+ let e = Array.isArray(y) ? y[0] : y, t = u.find((t) => t.value === e);
1680
+ if (R.searchParam) {
1681
+ let n = o && R?.showLoading;
1682
+ return /* @__PURE__ */ M(H, {
1638
1683
  style: Y.container,
1639
1684
  children: [
1640
- /* @__PURE__ */ j(z, {
1641
- style: [Y.label, { color: I.textSecondary }],
1642
- children: [l || n.data.name, n.data.required && /* @__PURE__ */ A(z, {
1643
- style: { color: I.error },
1685
+ /* @__PURE__ */ M(z, {
1686
+ style: [Y.label, { color: L.textSecondary }],
1687
+ children: [T || x.data.name, x.data.required && /* @__PURE__ */ j(z, {
1688
+ style: { color: L.error },
1644
1689
  children: "*"
1645
1690
  })]
1646
1691
  }),
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, {
1692
+ /* @__PURE__ */ j(ge, {
1693
+ missing: te,
1694
+ children: /* @__PURE__ */ M(V, {
1669
1695
  style: [
1670
- Y.triggerText,
1671
- { color: I.text },
1672
- !t && { color: I.textMuted }
1696
+ Y.trigger,
1697
+ {
1698
+ backgroundColor: L.input,
1699
+ borderColor: L.border
1700
+ },
1701
+ w && { borderColor: L.error },
1702
+ te.length > 0 && { backgroundColor: L.muted }
1673
1703
  ],
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
- })]
1704
+ onPress: () => v(!0),
1705
+ disabled: te.length > 0,
1706
+ activeOpacity: .7,
1707
+ children: [n ? /* @__PURE__ */ M(H, {
1708
+ style: Y.loadingTrigger,
1709
+ children: [/* @__PURE__ */ j(N, {
1710
+ size: "small",
1711
+ color: L.primary
1712
+ }), /* @__PURE__ */ j(z, {
1713
+ style: [Y.triggerText, { color: L.textMuted }],
1714
+ numberOfLines: 1,
1715
+ children: t?.label || b || ae("renderer.defaultHttpInput.search")
1716
+ })]
1717
+ }) : /* @__PURE__ */ j(z, {
1718
+ style: [
1719
+ Y.triggerText,
1720
+ { color: L.text },
1721
+ !t && { color: L.textMuted }
1722
+ ],
1723
+ numberOfLines: 1,
1724
+ children: t?.label || b || ae("renderer.defaultHttpInput.search")
1725
+ }), /* @__PURE__ */ j(z, {
1726
+ style: [Y.arrow, { color: L.textMuted }],
1727
+ children: "▼"
1728
+ })]
1729
+ })
1680
1730
  }),
1681
- /* @__PURE__ */ A(re, {
1682
- visible: w,
1731
+ /* @__PURE__ */ j(re, {
1732
+ visible: _,
1683
1733
  transparent: !0,
1684
1734
  animationType: "fade",
1685
- onRequestClose: () => T(!1),
1686
- children: /* @__PURE__ */ A(V, {
1735
+ onRequestClose: () => v(!1),
1736
+ children: /* @__PURE__ */ j(V, {
1687
1737
  style: Y.modalOverlay,
1688
1738
  activeOpacity: 1,
1689
- onPress: () => T(!1),
1690
- children: /* @__PURE__ */ j(V, {
1691
- style: [Y.modalContent, { backgroundColor: I.card }],
1739
+ onPress: () => v(!1),
1740
+ children: /* @__PURE__ */ M(V, {
1741
+ style: [Y.modalContent, { backgroundColor: L.card }],
1692
1742
  activeOpacity: 1,
1693
1743
  onPress: () => {},
1694
1744
  children: [
1695
- /* @__PURE__ */ j(H, {
1696
- style: [Y.modalHeader, { borderBottomColor: I.separator }],
1697
- children: [/* @__PURE__ */ A(z, {
1698
- 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, {
1703
- style: [Y.closeButton, { color: I.textMuted }],
1745
+ /* @__PURE__ */ M(H, {
1746
+ style: [Y.modalHeader, { borderBottomColor: L.separator }],
1747
+ children: [/* @__PURE__ */ j(z, {
1748
+ style: [Y.modalTitle, { color: L.text }],
1749
+ children: T || x.data.name
1750
+ }), /* @__PURE__ */ j(V, {
1751
+ onPress: () => v(!1),
1752
+ children: /* @__PURE__ */ j(z, {
1753
+ style: [Y.closeButton, { color: L.textMuted }],
1704
1754
  children: "✕"
1705
1755
  })
1706
1756
  })]
1707
1757
  }),
1708
- /* @__PURE__ */ A(H, {
1758
+ /* @__PURE__ */ j(H, {
1709
1759
  style: Y.searchContainer,
1710
- children: /* @__PURE__ */ A(B, {
1760
+ children: /* @__PURE__ */ j(B, {
1711
1761
  style: [Y.searchInput, {
1712
- backgroundColor: I.muted,
1713
- borderColor: I.border,
1714
- color: I.text
1762
+ backgroundColor: L.muted,
1763
+ borderColor: L.border,
1764
+ color: L.text
1715
1765
  }],
1716
- placeholder: R("renderer.defaultHttpInput.search"),
1717
- placeholderTextColor: I.textMuted,
1718
- value: C,
1766
+ placeholder: ae("renderer.defaultHttpInput.search"),
1767
+ placeholderTextColor: L.textMuted,
1768
+ value: m,
1719
1769
  onChangeText: (e) => {
1720
- ee(e), b(null);
1770
+ h(e), l(null);
1721
1771
  },
1722
1772
  autoFocus: !0,
1723
1773
  autoCapitalize: "none",
1724
1774
  autoCorrect: !1
1725
1775
  })
1726
1776
  }),
1727
- h ? /* @__PURE__ */ A(H, {
1777
+ o ? /* @__PURE__ */ j(H, {
1728
1778
  style: Y.loadingContainer,
1729
- children: /* @__PURE__ */ A(M, {
1779
+ children: /* @__PURE__ */ j(N, {
1730
1780
  size: "small",
1731
- color: I.primary
1781
+ color: L.primary
1732
1782
  })
1733
- }) : v ? /* @__PURE__ */ j(H, {
1783
+ }) : c ? /* @__PURE__ */ M(H, {
1734
1784
  style: Y.errorContainer,
1735
- children: [/* @__PURE__ */ A(z, {
1736
- style: [Y.errorText, { color: I.error }],
1737
- children: v
1738
- }), /* @__PURE__ */ A(V, {
1739
- onPress: () => q(C),
1785
+ children: [/* @__PURE__ */ j(z, {
1786
+ style: [Y.errorText, { color: L.error }],
1787
+ children: c
1788
+ }), /* @__PURE__ */ j(V, {
1789
+ onPress: () => he(m),
1740
1790
  style: Y.retryButton,
1741
- children: /* @__PURE__ */ A(z, {
1742
- style: [Y.retryButtonText, { color: I.primary }],
1743
- children: R("renderer.defaultHttpInput.retry")
1791
+ children: /* @__PURE__ */ j(z, {
1792
+ style: [Y.retryButtonText, { color: L.primary }],
1793
+ children: ae("renderer.defaultHttpInput.retry")
1744
1794
  })
1745
1795
  })]
1746
- }) : /* @__PURE__ */ A(F, {
1747
- data: x,
1796
+ }) : /* @__PURE__ */ j(I, {
1797
+ data: u,
1748
1798
  keyExtractor: (e) => e.value,
1749
1799
  style: Y.optionsList,
1750
1800
  contentContainerStyle: Y.optionsListContent,
1751
- ListEmptyComponent: /* @__PURE__ */ A(H, {
1801
+ ListEmptyComponent: /* @__PURE__ */ j(H, {
1752
1802
  style: Y.emptyContainer,
1753
- children: /* @__PURE__ */ A(z, {
1754
- style: [Y.emptyText, { color: I.textMuted }],
1755
- children: R("renderer.defaultHttpInput.noResults")
1803
+ children: /* @__PURE__ */ j(z, {
1804
+ style: [Y.emptyText, { color: L.textMuted }],
1805
+ children: ae("renderer.defaultHttpInput.noResults")
1756
1806
  })
1757
1807
  }),
1758
1808
  renderItem: ({ item: t }) => {
1759
1809
  let n = t.value === e;
1760
- return /* @__PURE__ */ j(V, {
1761
- style: [Y.option, n && { backgroundColor: I.primaryLight }],
1810
+ return /* @__PURE__ */ M(V, {
1811
+ style: [Y.option, n && { backgroundColor: L.primaryLight }],
1762
1812
  onPress: () => {
1763
- a(t.value), T(!1);
1813
+ S(t.value), v(!1);
1764
1814
  },
1765
1815
  activeOpacity: .7,
1766
- children: [/* @__PURE__ */ A(z, {
1767
- style: [Y.optionText, { color: I.text }],
1816
+ children: [/* @__PURE__ */ j(z, {
1817
+ style: [Y.optionText, { color: L.text }],
1768
1818
  children: t.label
1769
- }), n && /* @__PURE__ */ A(z, {
1770
- style: [Y.checkmark, { color: I.primary }],
1819
+ }), n && /* @__PURE__ */ j(z, {
1820
+ style: [Y.checkmark, { color: L.primary }],
1771
1821
  children: "✓"
1772
1822
  })]
1773
1823
  });
@@ -1777,112 +1827,112 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
1777
1827
  })
1778
1828
  })
1779
1829
  }),
1780
- c && /* @__PURE__ */ A(z, {
1781
- style: [Y.error, { color: I.error }],
1782
- children: c
1830
+ w && /* @__PURE__ */ j(z, {
1831
+ style: [Y.error, { color: L.error }],
1832
+ children: w
1783
1833
  }),
1784
- d && !c && /* @__PURE__ */ A(z, {
1785
- style: [Y.helperText, { color: I.textMuted }],
1786
- children: d
1834
+ E && !w && /* @__PURE__ */ j(z, {
1835
+ style: [Y.helperText, { color: L.textMuted }],
1836
+ children: E
1787
1837
  })
1788
1838
  ]
1789
1839
  });
1790
1840
  }
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, {
1841
+ let n = o && R?.showLoading, r = te.length === 0 && u.length === 0 && !n ? c ?? ae("renderer.defaultHttpInput.noDataAvailable") : void 0;
1842
+ return /* @__PURE__ */ M(H, {
1796
1843
  style: Y.container,
1797
1844
  children: [
1798
- /* @__PURE__ */ j(z, {
1799
- style: [Y.label, { color: I.textSecondary }],
1800
- children: [l || n.data.name, n.data.required && /* @__PURE__ */ A(z, {
1801
- style: { color: I.error },
1845
+ /* @__PURE__ */ M(z, {
1846
+ style: [Y.label, { color: L.textSecondary }],
1847
+ children: [T || x.data.name, x.data.required && /* @__PURE__ */ j(z, {
1848
+ style: { color: L.error },
1802
1849
  children: "*"
1803
1850
  })]
1804
1851
  }),
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
- ]
1852
+ /* @__PURE__ */ j(ge, {
1853
+ missing: te,
1854
+ children: /* @__PURE__ */ M(V, {
1855
+ style: [
1856
+ Y.trigger,
1857
+ {
1858
+ backgroundColor: L.input,
1859
+ borderColor: L.border
1860
+ },
1861
+ w && { borderColor: L.error },
1862
+ (n || u.length === 0) && { backgroundColor: L.muted }
1863
+ ],
1864
+ onPress: () => v(!0),
1865
+ disabled: n || u.length === 0,
1866
+ activeOpacity: .7,
1867
+ children: [
1868
+ n && /* @__PURE__ */ j(N, {
1869
+ size: "small",
1870
+ color: L.primary,
1871
+ style: Y.triggerLoader
1872
+ }),
1873
+ /* @__PURE__ */ j(z, {
1874
+ style: [
1875
+ Y.triggerText,
1876
+ { color: L.text },
1877
+ !t && { color: L.textMuted }
1878
+ ],
1879
+ numberOfLines: 1,
1880
+ children: t?.label || b || ae("renderer.defaultHttpInput.selectOption")
1881
+ }),
1882
+ /* @__PURE__ */ j(z, {
1883
+ style: [Y.arrow, { color: L.textMuted }],
1884
+ children: "▼"
1885
+ })
1886
+ ]
1887
+ })
1838
1888
  }),
1839
- p && /* @__PURE__ */ A(z, {
1840
- style: [Y.disabledMessage, { color: I.error }],
1841
- children: p
1889
+ r && /* @__PURE__ */ j(z, {
1890
+ style: [Y.disabledMessage, { color: L.error }],
1891
+ children: r
1842
1892
  }),
1843
- /* @__PURE__ */ A(re, {
1844
- visible: w,
1893
+ /* @__PURE__ */ j(re, {
1894
+ visible: _,
1845
1895
  transparent: !0,
1846
1896
  animationType: "fade",
1847
- onRequestClose: () => T(!1),
1848
- children: /* @__PURE__ */ A(V, {
1897
+ onRequestClose: () => v(!1),
1898
+ children: /* @__PURE__ */ j(V, {
1849
1899
  style: Y.modalOverlay,
1850
1900
  activeOpacity: 1,
1851
- onPress: () => T(!1),
1852
- children: /* @__PURE__ */ j(V, {
1853
- style: [Y.modalContent, { backgroundColor: I.card }],
1901
+ onPress: () => v(!1),
1902
+ children: /* @__PURE__ */ M(V, {
1903
+ style: [Y.modalContent, { backgroundColor: L.card }],
1854
1904
  activeOpacity: 1,
1855
1905
  onPress: () => {},
1856
- children: [/* @__PURE__ */ j(H, {
1857
- style: [Y.modalHeader, { borderBottomColor: I.separator }],
1858
- children: [/* @__PURE__ */ A(z, {
1859
- 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, {
1864
- style: [Y.closeButton, { color: I.textMuted }],
1906
+ children: [/* @__PURE__ */ M(H, {
1907
+ style: [Y.modalHeader, { borderBottomColor: L.separator }],
1908
+ children: [/* @__PURE__ */ j(z, {
1909
+ style: [Y.modalTitle, { color: L.text }],
1910
+ children: T || x.data.name
1911
+ }), /* @__PURE__ */ j(V, {
1912
+ onPress: () => v(!1),
1913
+ children: /* @__PURE__ */ j(z, {
1914
+ style: [Y.closeButton, { color: L.textMuted }],
1865
1915
  children: "✕"
1866
1916
  })
1867
1917
  })]
1868
- }), /* @__PURE__ */ A(F, {
1869
- data: x,
1918
+ }), /* @__PURE__ */ j(I, {
1919
+ data: u,
1870
1920
  keyExtractor: (e) => e.value,
1871
1921
  style: Y.optionsList,
1872
1922
  contentContainerStyle: Y.optionsListContent,
1873
1923
  renderItem: ({ item: t }) => {
1874
1924
  let n = t.value === e;
1875
- return /* @__PURE__ */ j(V, {
1876
- style: [Y.option, n && { backgroundColor: I.primaryLight }],
1925
+ return /* @__PURE__ */ M(V, {
1926
+ style: [Y.option, n && { backgroundColor: L.primaryLight }],
1877
1927
  onPress: () => {
1878
- a(t.value), T(!1);
1928
+ S(t.value), v(!1);
1879
1929
  },
1880
1930
  activeOpacity: .7,
1881
- children: [/* @__PURE__ */ A(z, {
1882
- style: [Y.optionText, { color: I.text }],
1931
+ children: [/* @__PURE__ */ j(z, {
1932
+ style: [Y.optionText, { color: L.text }],
1883
1933
  children: t.label
1884
- }), n && /* @__PURE__ */ A(z, {
1885
- style: [Y.checkmark, { color: I.primary }],
1934
+ }), n && /* @__PURE__ */ j(z, {
1935
+ style: [Y.checkmark, { color: L.primary }],
1886
1936
  children: "✓"
1887
1937
  })]
1888
1938
  });
@@ -1891,43 +1941,43 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
1891
1941
  })
1892
1942
  })
1893
1943
  }),
1894
- c && /* @__PURE__ */ A(z, {
1895
- style: [Y.error, { color: I.error }],
1896
- children: c
1944
+ w && /* @__PURE__ */ j(z, {
1945
+ style: [Y.error, { color: L.error }],
1946
+ children: w
1897
1947
  }),
1898
- d && !c && /* @__PURE__ */ A(z, {
1899
- style: [Y.helperText, { color: I.textMuted }],
1900
- children: d
1948
+ E && !w && /* @__PURE__ */ j(z, {
1949
+ style: [Y.helperText, { color: L.textMuted }],
1950
+ children: E
1901
1951
  })
1902
1952
  ]
1903
1953
  });
1904
1954
  }
1905
- return /* @__PURE__ */ j(H, {
1955
+ return /* @__PURE__ */ M(H, {
1906
1956
  style: Y.container,
1907
1957
  children: [
1908
- /* @__PURE__ */ j(z, {
1909
- style: [Y.label, { color: I.textSecondary }],
1910
- children: [l || n.data.name, n.data.required && /* @__PURE__ */ A(z, {
1911
- style: { color: I.error },
1958
+ /* @__PURE__ */ M(z, {
1959
+ style: [Y.label, { color: L.textSecondary }],
1960
+ children: [T || x.data.name, x.data.required && /* @__PURE__ */ j(z, {
1961
+ style: { color: L.error },
1912
1962
  children: "*"
1913
1963
  })]
1914
1964
  }),
1915
- /* @__PURE__ */ A(B, {
1965
+ /* @__PURE__ */ j(B, {
1916
1966
  style: [Y.input, {
1917
- backgroundColor: I.muted,
1918
- borderColor: I.border,
1919
- color: I.textMuted
1967
+ backgroundColor: L.muted,
1968
+ borderColor: L.border,
1969
+ color: L.textMuted
1920
1970
  }],
1921
- value: typeof i == "string" ? i : JSON.stringify(i),
1971
+ value: typeof y == "string" ? y : JSON.stringify(y),
1922
1972
  editable: !1
1923
1973
  }),
1924
- c && /* @__PURE__ */ A(z, {
1925
- style: [Y.error, { color: I.error }],
1926
- children: c
1974
+ w && /* @__PURE__ */ j(z, {
1975
+ style: [Y.error, { color: L.error }],
1976
+ children: w
1927
1977
  }),
1928
- d && !c && /* @__PURE__ */ A(z, {
1929
- style: [Y.helperText, { color: I.textMuted }],
1930
- children: d
1978
+ E && !w && /* @__PURE__ */ j(z, {
1979
+ style: [Y.helperText, { color: L.textMuted }],
1980
+ children: E
1931
1981
  })
1932
1982
  ]
1933
1983
  });
@@ -2057,55 +2107,55 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2057
2107
  flex: 1,
2058
2108
  fontSize: 14
2059
2109
  }
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() ?? "");
2062
- return E(() => {
2063
- u(t?.toString() ?? "");
2064
- }, [t]), /* @__PURE__ */ j(H, {
2065
- style: Te.container,
2110
+ }), De = (e, t) => {
2111
+ let { value: n, placeholder: r, name: i } = e, [a, o] = A(n?.toString() ?? ""), { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = g();
2112
+ return D(() => {
2113
+ o(n?.toString() ?? "");
2114
+ }, [n]), /* @__PURE__ */ M(H, {
2115
+ style: Oe.container,
2066
2116
  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 },
2117
+ /* @__PURE__ */ M(z, {
2118
+ style: [Oe.label, { color: f.textSecondary }],
2119
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ j(z, {
2120
+ style: { color: f.error },
2071
2121
  children: "*"
2072
2122
  })]
2073
2123
  }),
2074
- /* @__PURE__ */ A(B, {
2124
+ /* @__PURE__ */ j(B, {
2075
2125
  style: [
2076
- Te.input,
2126
+ Oe.input,
2077
2127
  {
2078
- backgroundColor: c.input,
2079
- borderColor: c.border,
2080
- color: c.text
2128
+ backgroundColor: f.input,
2129
+ borderColor: f.border,
2130
+ color: f.text
2081
2131
  },
2082
- r && { borderColor: c.error }
2132
+ l && { borderColor: f.error }
2083
2133
  ],
2084
- value: l,
2134
+ value: a,
2085
2135
  onChangeText: (e) => {
2086
- if (u(e), e.trim() === "") {
2087
- n(null);
2136
+ if (o(e), e.trim() === "") {
2137
+ c(null);
2088
2138
  return;
2089
2139
  }
2090
2140
  let t = Number(e);
2091
- Number.isNaN(t) || n(t);
2141
+ Number.isNaN(t) || c(t);
2092
2142
  },
2093
- placeholder: a,
2094
- placeholderTextColor: c.textMuted,
2143
+ placeholder: r,
2144
+ placeholderTextColor: f.textMuted,
2095
2145
  keyboardType: "numeric",
2096
- accessibilityLabel: s
2146
+ accessibilityLabel: i
2097
2147
  }),
2098
- r && /* @__PURE__ */ A(z, {
2099
- style: [Te.error, { color: c.error }],
2100
- children: r
2148
+ l && /* @__PURE__ */ j(z, {
2149
+ style: [Oe.error, { color: f.error }],
2150
+ children: l
2101
2151
  }),
2102
- o && !r && /* @__PURE__ */ A(z, {
2103
- style: [Te.helperText, { color: c.textMuted }],
2104
- children: o
2152
+ d && !l && /* @__PURE__ */ j(z, {
2153
+ style: [Oe.helperText, { color: f.textMuted }],
2154
+ children: d
2105
2155
  })
2106
2156
  ]
2107
2157
  });
2108
- }, Te = L.create({
2158
+ }, Oe = L.create({
2109
2159
  container: { marginBottom: 16 },
2110
2160
  error: {
2111
2161
  fontSize: 12,
@@ -2127,57 +2177,57 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2127
2177
  fontWeight: "500",
2128
2178
  marginBottom: 8
2129
2179
  }
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,
2180
+ }), ke = (e, t) => {
2181
+ let [n, r] = A(!1), { value: i, placeholder: a, name: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = g();
2182
+ return /* @__PURE__ */ M(H, {
2183
+ style: Ae.container,
2134
2184
  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 },
2185
+ /* @__PURE__ */ M(z, {
2186
+ style: [Ae.label, { color: f.textSecondary }],
2187
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ j(z, {
2188
+ style: { color: f.error },
2139
2189
  children: "*"
2140
2190
  })]
2141
2191
  }),
2142
- /* @__PURE__ */ j(H, {
2143
- style: De.inputWrapper,
2144
- children: [/* @__PURE__ */ A(B, {
2192
+ /* @__PURE__ */ M(H, {
2193
+ style: Ae.inputWrapper,
2194
+ children: [/* @__PURE__ */ j(B, {
2145
2195
  style: [
2146
- De.input,
2196
+ Ae.input,
2147
2197
  {
2148
- backgroundColor: c.input,
2149
- borderColor: c.border,
2150
- color: c.text
2198
+ backgroundColor: f.input,
2199
+ borderColor: f.border,
2200
+ color: f.text
2151
2201
  },
2152
- r && { borderColor: c.error }
2202
+ l && { borderColor: f.error }
2153
2203
  ],
2154
- value: t ?? "",
2155
- onChangeText: n,
2204
+ value: i ?? "",
2205
+ onChangeText: c,
2156
2206
  placeholder: a,
2157
- placeholderTextColor: c.textMuted,
2158
- secureTextEntry: !l,
2159
- accessibilityLabel: s
2160
- }), /* @__PURE__ */ A(V, {
2161
- style: De.toggleButton,
2162
- onPress: () => u(!l),
2207
+ placeholderTextColor: f.textMuted,
2208
+ secureTextEntry: !n,
2209
+ accessibilityLabel: o
2210
+ }), /* @__PURE__ */ j(V, {
2211
+ style: Ae.toggleButton,
2212
+ onPress: () => r(!n),
2163
2213
  activeOpacity: .7,
2164
- children: /* @__PURE__ */ A(z, {
2165
- style: [De.toggleText, { color: c.primary }],
2166
- children: l ? "Hide" : "Show"
2214
+ children: /* @__PURE__ */ j(z, {
2215
+ style: [Ae.toggleText, { color: f.primary }],
2216
+ children: n ? "Hide" : "Show"
2167
2217
  })
2168
2218
  })]
2169
2219
  }),
2170
- r && /* @__PURE__ */ A(z, {
2171
- style: [De.error, { color: c.error }],
2172
- children: r
2220
+ l && /* @__PURE__ */ j(z, {
2221
+ style: [Ae.error, { color: f.error }],
2222
+ children: l
2173
2223
  }),
2174
- o && !r && /* @__PURE__ */ A(z, {
2175
- style: [De.helperText, { color: c.textMuted }],
2176
- children: o
2224
+ d && !l && /* @__PURE__ */ j(z, {
2225
+ style: [Ae.helperText, { color: f.textMuted }],
2226
+ children: d
2177
2227
  })
2178
2228
  ]
2179
2229
  });
2180
- }, De = L.create({
2230
+ }, Ae = L.create({
2181
2231
  container: { marginBottom: 16 },
2182
2232
  error: {
2183
2233
  fontSize: 12,
@@ -2215,111 +2265,111 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2215
2265
  fontSize: 12,
2216
2266
  fontWeight: "600"
2217
2267
  }
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);
2268
+ }), je = (e, t) => {
2269
+ let { value: n } = e, { node: r, setValue: i, error: a, label: o, helperText: s } = t, { colors: c } = g(), l = p(), u = r.data.options || [], d = n || "", f = r.data.variant !== "default", m = (e) => {
2270
+ i(e);
2221
2271
  };
2222
- return /* @__PURE__ */ j(H, {
2272
+ return /* @__PURE__ */ M(H, {
2223
2273
  style: X.container,
2224
2274
  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 },
2275
+ /* @__PURE__ */ M(z, {
2276
+ style: [X.label, { color: c.textSecondary }],
2277
+ children: [o || r.data.name, r.data.required && /* @__PURE__ */ j(z, {
2278
+ style: { color: c.error },
2229
2279
  children: "*"
2230
2280
  })]
2231
2281
  }),
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, {
2282
+ u.map((e) => {
2283
+ let t = d === e.value, n = l(e.label) || e.value, r = l(e.description);
2284
+ return f ? /* @__PURE__ */ M(V, {
2235
2285
  style: [
2236
2286
  X.card,
2237
2287
  {
2238
- backgroundColor: s.input,
2239
- borderColor: s.border
2288
+ backgroundColor: c.input,
2289
+ borderColor: c.border
2240
2290
  },
2241
2291
  t && {
2242
- backgroundColor: `${s.primary}10`,
2243
- borderColor: s.primary
2292
+ backgroundColor: `${c.primary}10`,
2293
+ borderColor: c.primary
2244
2294
  },
2245
2295
  e.disabled && { opacity: .5 }
2246
2296
  ],
2247
- onPress: () => d(e.value),
2297
+ onPress: () => m(e.value),
2248
2298
  disabled: e.disabled,
2249
2299
  activeOpacity: .7,
2250
2300
  children: [
2251
- e.image && /* @__PURE__ */ A(ne, {
2301
+ e.image && /* @__PURE__ */ j(ne, {
2252
2302
  source: { uri: e.image },
2253
2303
  style: X.cardImage
2254
2304
  }),
2255
- /* @__PURE__ */ j(H, {
2305
+ /* @__PURE__ */ M(H, {
2256
2306
  style: X.cardTextContainer,
2257
- children: [/* @__PURE__ */ A(z, {
2258
- style: [X.cardLabel, { color: s.textSecondary }],
2307
+ children: [/* @__PURE__ */ j(z, {
2308
+ style: [X.cardLabel, { color: c.textSecondary }],
2259
2309
  children: n
2260
- }), r && /* @__PURE__ */ A(z, {
2261
- style: [X.cardDescription, { color: s.textMuted }],
2310
+ }), r && /* @__PURE__ */ j(z, {
2311
+ style: [X.cardDescription, { color: c.textMuted }],
2262
2312
  children: r
2263
2313
  })]
2264
2314
  }),
2265
- /* @__PURE__ */ A(H, {
2315
+ /* @__PURE__ */ j(H, {
2266
2316
  style: [
2267
2317
  X.radio,
2268
2318
  X.cardRadio,
2269
2319
  {
2270
- backgroundColor: s.input,
2271
- borderColor: s.border
2320
+ backgroundColor: c.input,
2321
+ borderColor: c.border
2272
2322
  },
2273
- t && { borderColor: s.primary }
2323
+ t && { borderColor: c.primary }
2274
2324
  ],
2275
- children: t && /* @__PURE__ */ A(H, { style: [X.radioInner, { backgroundColor: s.primary }] })
2325
+ children: t && /* @__PURE__ */ j(H, { style: [X.radioInner, { backgroundColor: c.primary }] })
2276
2326
  })
2277
2327
  ]
2278
- }, e.value) : /* @__PURE__ */ j(V, {
2328
+ }, e.value) : /* @__PURE__ */ M(V, {
2279
2329
  style: X.option,
2280
- onPress: () => d(e.value),
2330
+ onPress: () => m(e.value),
2281
2331
  disabled: e.disabled,
2282
2332
  activeOpacity: .7,
2283
2333
  children: [
2284
- /* @__PURE__ */ A(H, {
2334
+ /* @__PURE__ */ j(H, {
2285
2335
  style: [
2286
2336
  X.radio,
2287
2337
  {
2288
- backgroundColor: s.input,
2289
- borderColor: s.border
2338
+ backgroundColor: c.input,
2339
+ borderColor: c.border
2290
2340
  },
2291
- t && { borderColor: s.primary }
2341
+ t && { borderColor: c.primary }
2292
2342
  ],
2293
- children: t && /* @__PURE__ */ A(H, { style: [X.radioInner, { backgroundColor: s.primary }] })
2343
+ children: t && /* @__PURE__ */ j(H, { style: [X.radioInner, { backgroundColor: c.primary }] })
2294
2344
  }),
2295
- e.image && /* @__PURE__ */ A(ne, {
2345
+ e.image && /* @__PURE__ */ j(ne, {
2296
2346
  source: { uri: e.image },
2297
2347
  style: X.image
2298
2348
  }),
2299
- /* @__PURE__ */ j(H, {
2349
+ /* @__PURE__ */ M(H, {
2300
2350
  style: X.optionTextContainer,
2301
- children: [/* @__PURE__ */ A(z, {
2351
+ children: [/* @__PURE__ */ j(z, {
2302
2352
  style: [
2303
2353
  X.optionLabel,
2304
- { color: s.textSecondary },
2305
- e.disabled && { color: s.textMuted }
2354
+ { color: c.textSecondary },
2355
+ e.disabled && { color: c.textMuted }
2306
2356
  ],
2307
2357
  children: n
2308
- }), r && /* @__PURE__ */ A(z, {
2309
- style: [X.optionDescription, { color: s.textMuted }],
2358
+ }), r && /* @__PURE__ */ j(z, {
2359
+ style: [X.optionDescription, { color: c.textMuted }],
2310
2360
  children: r
2311
2361
  })]
2312
2362
  })
2313
2363
  ]
2314
2364
  }, e.value);
2315
2365
  }),
2316
- r && /* @__PURE__ */ A(z, {
2317
- style: [X.error, { color: s.error }],
2318
- children: r
2319
- }),
2320
- a && !r && /* @__PURE__ */ A(z, {
2321
- style: [X.helperText, { color: s.textMuted }],
2366
+ a && /* @__PURE__ */ j(z, {
2367
+ style: [X.error, { color: c.error }],
2322
2368
  children: a
2369
+ }),
2370
+ s && !a && /* @__PURE__ */ j(z, {
2371
+ style: [X.helperText, { color: c.textMuted }],
2372
+ children: s
2323
2373
  })
2324
2374
  ]
2325
2375
  });
@@ -2396,101 +2446,101 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2396
2446
  height: 10,
2397
2447
  width: 10
2398
2448
  }
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));
2449
+ }), Me = (e, t) => {
2450
+ let [n, r] = A(!1), { value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = g(), f = p(), m = o.data.options || [], h = o.data.multiple, _ = Array.isArray(i) ? i : i ? [i] : [], v = (e) => {
2451
+ h ? s(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (s(e), r(!1));
2402
2452
  };
2403
- return /* @__PURE__ */ j(H, {
2453
+ return /* @__PURE__ */ M(H, {
2404
2454
  style: Z.container,
2405
2455
  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 },
2456
+ /* @__PURE__ */ M(z, {
2457
+ style: [Z.label, { color: d.textSecondary }],
2458
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ j(z, {
2459
+ style: { color: d.error },
2410
2460
  children: "*"
2411
2461
  })]
2412
2462
  }),
2413
- /* @__PURE__ */ j(V, {
2463
+ /* @__PURE__ */ M(V, {
2414
2464
  style: [
2415
2465
  Z.trigger,
2416
2466
  {
2417
- backgroundColor: u.input,
2418
- borderColor: u.border
2467
+ backgroundColor: d.input,
2468
+ borderColor: d.border
2419
2469
  },
2420
- r && { borderColor: u.error }
2470
+ c && { borderColor: d.error }
2421
2471
  ],
2422
- onPress: () => c(!0),
2472
+ onPress: () => r(!0),
2423
2473
  activeOpacity: .7,
2424
- children: [/* @__PURE__ */ A(z, {
2474
+ children: [/* @__PURE__ */ j(z, {
2425
2475
  style: [
2426
2476
  Z.triggerText,
2427
- { color: u.text },
2428
- p.length === 0 && { color: u.textMuted }
2477
+ { color: d.text },
2478
+ _.length === 0 && { color: d.textMuted }
2429
2479
  ],
2430
2480
  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...";
2481
+ if (_.length === 0) return a || "Select...";
2482
+ if (h) return m.filter((e) => _.includes(e.value)).map((e) => f(e.label) || e.value).join(", ");
2483
+ let e = m.find((e) => e.value === _[0]);
2484
+ return e ? f(e.label) || e.value : a || "Select...";
2435
2485
  })()
2436
- }), /* @__PURE__ */ A(z, {
2437
- style: [Z.arrow, { color: u.textMuted }],
2486
+ }), /* @__PURE__ */ j(z, {
2487
+ style: [Z.arrow, { color: d.textMuted }],
2438
2488
  children: "▼"
2439
2489
  })]
2440
2490
  }),
2441
- /* @__PURE__ */ A(re, {
2442
- visible: s,
2491
+ /* @__PURE__ */ j(re, {
2492
+ visible: n,
2443
2493
  transparent: !0,
2444
2494
  animationType: "fade",
2445
- onRequestClose: () => c(!1),
2446
- children: /* @__PURE__ */ A(V, {
2495
+ onRequestClose: () => r(!1),
2496
+ children: /* @__PURE__ */ j(V, {
2447
2497
  style: Z.modalOverlay,
2448
2498
  activeOpacity: 1,
2449
- onPress: () => c(!1),
2450
- children: /* @__PURE__ */ j(H, {
2451
- style: [Z.modalContent, { backgroundColor: u.card }],
2499
+ onPress: () => r(!1),
2500
+ children: /* @__PURE__ */ M(H, {
2501
+ style: [Z.modalContent, { backgroundColor: d.card }],
2452
2502
  onStartShouldSetResponder: () => !0,
2453
2503
  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 }],
2504
+ /* @__PURE__ */ M(H, {
2505
+ style: [Z.modalHeader, { borderBottomColor: d.border }],
2506
+ children: [/* @__PURE__ */ j(z, {
2507
+ style: [Z.modalTitle, { color: d.text }],
2508
+ children: l || o.data.name
2509
+ }), /* @__PURE__ */ j(V, {
2510
+ onPress: () => r(!1),
2511
+ children: /* @__PURE__ */ j(z, {
2512
+ style: [Z.closeButton, { color: d.textMuted }],
2463
2513
  children: "✕"
2464
2514
  })
2465
2515
  })]
2466
2516
  }),
2467
- /* @__PURE__ */ A(I, {
2517
+ /* @__PURE__ */ j(ie, {
2468
2518
  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),
2519
+ children: m.map((e) => {
2520
+ let t = _.includes(e.value);
2521
+ return /* @__PURE__ */ M(V, {
2522
+ style: [Z.option, t && { backgroundColor: `${d.primary}20` }],
2523
+ onPress: () => v(e.value),
2474
2524
  disabled: e.disabled,
2475
2525
  activeOpacity: .7,
2476
- children: [/* @__PURE__ */ A(z, {
2526
+ children: [/* @__PURE__ */ j(z, {
2477
2527
  style: [
2478
2528
  Z.optionText,
2479
- { color: u.textSecondary },
2480
- e.disabled && { color: u.textMuted }
2529
+ { color: d.textSecondary },
2530
+ e.disabled && { color: d.textMuted }
2481
2531
  ],
2482
- children: l(e.label) || e.value
2483
- }), t && /* @__PURE__ */ A(z, {
2484
- style: [Z.checkmark, { color: u.primary }],
2532
+ children: f(e.label) || e.value
2533
+ }), t && /* @__PURE__ */ j(z, {
2534
+ style: [Z.checkmark, { color: d.primary }],
2485
2535
  children: "✓"
2486
2536
  })]
2487
2537
  }, e.value);
2488
2538
  })
2489
2539
  }),
2490
- f && /* @__PURE__ */ A(V, {
2491
- style: [Z.doneButton, { backgroundColor: u.primary }],
2492
- onPress: () => c(!1),
2493
- children: /* @__PURE__ */ A(z, {
2540
+ h && /* @__PURE__ */ j(V, {
2541
+ style: [Z.doneButton, { backgroundColor: d.primary }],
2542
+ onPress: () => r(!1),
2543
+ children: /* @__PURE__ */ j(z, {
2494
2544
  style: Z.doneButtonText,
2495
2545
  children: "Done"
2496
2546
  })
@@ -2499,13 +2549,13 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2499
2549
  })
2500
2550
  })
2501
2551
  }),
2502
- r && /* @__PURE__ */ A(z, {
2503
- style: [Z.error, { color: u.error }],
2504
- children: r
2552
+ c && /* @__PURE__ */ j(z, {
2553
+ style: [Z.error, { color: d.error }],
2554
+ children: c
2505
2555
  }),
2506
- o && !r && /* @__PURE__ */ A(z, {
2507
- style: [Z.helperText, { color: u.textMuted }],
2508
- children: o
2556
+ u && !c && /* @__PURE__ */ j(z, {
2557
+ style: [Z.helperText, { color: d.textMuted }],
2558
+ children: u
2509
2559
  })
2510
2560
  ]
2511
2561
  });
@@ -2591,44 +2641,44 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2591
2641
  flex: 1,
2592
2642
  fontSize: 14
2593
2643
  }
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,
2644
+ }), Ne = (e, t) => {
2645
+ let { value: n } = e, { node: r, setValue: i, error: a, label: o, helperText: s } = t, { colors: c } = g(), l = !!n;
2646
+ return /* @__PURE__ */ M(H, {
2647
+ style: Pe.container,
2598
2648
  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 },
2649
+ /* @__PURE__ */ M(H, {
2650
+ style: Pe.row,
2651
+ children: [/* @__PURE__ */ j(H, {
2652
+ style: Pe.labelContainer,
2653
+ children: /* @__PURE__ */ M(z, {
2654
+ style: [Pe.label, { color: c.textSecondary }],
2655
+ children: [o || r.data.name, r.data.required && /* @__PURE__ */ j(z, {
2656
+ style: { color: c.error },
2607
2657
  children: "*"
2608
2658
  })]
2609
2659
  })
2610
- }), /* @__PURE__ */ A(R, {
2660
+ }), /* @__PURE__ */ j(R, {
2611
2661
  trackColor: {
2612
- false: o.border,
2613
- true: `${o.primary}80`
2662
+ false: c.border,
2663
+ true: `${c.primary}80`
2614
2664
  },
2615
- thumbColor: s ? o.primary : o.card,
2616
- ios_backgroundColor: o.border,
2617
- onValueChange: n,
2618
- value: s
2665
+ thumbColor: l ? c.primary : c.card,
2666
+ ios_backgroundColor: c.border,
2667
+ onValueChange: i,
2668
+ value: l
2619
2669
  })]
2620
2670
  }),
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 }],
2671
+ a && /* @__PURE__ */ j(z, {
2672
+ style: [Pe.error, { color: c.error }],
2627
2673
  children: a
2674
+ }),
2675
+ s && !a && /* @__PURE__ */ j(z, {
2676
+ style: [Pe.helperText, { color: c.textMuted }],
2677
+ children: s
2628
2678
  })
2629
2679
  ]
2630
2680
  });
2631
- }, je = L.create({
2681
+ }, Pe = L.create({
2632
2682
  container: { marginBottom: 16 },
2633
2683
  error: {
2634
2684
  fontSize: 12,
@@ -2648,48 +2698,48 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2648
2698
  flexDirection: "row",
2649
2699
  justifyContent: "space-between"
2650
2700
  }
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,
2701
+ }), Fe = (e, t) => {
2702
+ let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = g();
2703
+ return /* @__PURE__ */ M(H, {
2704
+ style: Ie.container,
2655
2705
  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 },
2706
+ /* @__PURE__ */ M(z, {
2707
+ style: [Ie.label, { color: u.textSecondary }],
2708
+ children: [c || a.data.name, a.data.required && /* @__PURE__ */ j(z, {
2709
+ style: { color: u.error },
2660
2710
  children: "*"
2661
2711
  })]
2662
2712
  }),
2663
- /* @__PURE__ */ A(B, {
2713
+ /* @__PURE__ */ j(B, {
2664
2714
  style: [
2665
- Ne.textarea,
2715
+ Ie.textarea,
2666
2716
  {
2667
- backgroundColor: c.input,
2668
- borderColor: c.border,
2669
- color: c.text
2717
+ backgroundColor: u.input,
2718
+ borderColor: u.border,
2719
+ color: u.text
2670
2720
  },
2671
- r && { borderColor: c.error }
2721
+ s && { borderColor: u.error }
2672
2722
  ],
2673
- value: t ?? "",
2674
- onChangeText: n,
2675
- placeholder: a,
2676
- placeholderTextColor: c.textMuted,
2723
+ value: n ?? "",
2724
+ onChangeText: o,
2725
+ placeholder: r,
2726
+ placeholderTextColor: u.textMuted,
2677
2727
  multiline: !0,
2678
2728
  numberOfLines: 4,
2679
2729
  textAlignVertical: "top",
2680
- accessibilityLabel: s
2730
+ accessibilityLabel: i
2681
2731
  }),
2682
- r && /* @__PURE__ */ A(z, {
2683
- style: [Ne.error, { color: c.error }],
2684
- children: r
2732
+ s && /* @__PURE__ */ j(z, {
2733
+ style: [Ie.error, { color: u.error }],
2734
+ children: s
2685
2735
  }),
2686
- o && !r && /* @__PURE__ */ A(z, {
2687
- style: [Ne.helperText, { color: c.textMuted }],
2688
- children: o
2736
+ l && !s && /* @__PURE__ */ j(z, {
2737
+ style: [Ie.helperText, { color: u.textMuted }],
2738
+ children: l
2689
2739
  })
2690
2740
  ]
2691
2741
  });
2692
- }, Ne = L.create({
2742
+ }, Ie = L.create({
2693
2743
  container: { marginBottom: 16 },
2694
2744
  error: {
2695
2745
  fontSize: 12,
@@ -2712,45 +2762,45 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2712
2762
  paddingHorizontal: 12,
2713
2763
  paddingVertical: 8
2714
2764
  }
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,
2765
+ }), Le = (e, t) => {
2766
+ let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = g();
2767
+ return /* @__PURE__ */ M(H, {
2768
+ style: Re.container,
2719
2769
  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 },
2770
+ /* @__PURE__ */ M(z, {
2771
+ style: [Re.label, { color: u.textSecondary }],
2772
+ children: [c || a.data.name, a.data.required && /* @__PURE__ */ j(z, {
2773
+ style: { color: u.error },
2724
2774
  children: "*"
2725
2775
  })]
2726
2776
  }),
2727
- /* @__PURE__ */ A(B, {
2777
+ /* @__PURE__ */ j(B, {
2728
2778
  style: [
2729
- Fe.input,
2779
+ Re.input,
2730
2780
  {
2731
- backgroundColor: c.input,
2732
- borderColor: c.border,
2733
- color: c.text
2781
+ backgroundColor: u.input,
2782
+ borderColor: u.border,
2783
+ color: u.text
2734
2784
  },
2735
- r && { borderColor: c.error }
2785
+ s && { borderColor: u.error }
2736
2786
  ],
2737
- value: t ?? "",
2738
- onChangeText: n,
2739
- placeholder: a,
2740
- placeholderTextColor: c.textMuted,
2741
- accessibilityLabel: s
2787
+ value: n ?? "",
2788
+ onChangeText: o,
2789
+ placeholder: r,
2790
+ placeholderTextColor: u.textMuted,
2791
+ accessibilityLabel: i
2742
2792
  }),
2743
- r && /* @__PURE__ */ A(z, {
2744
- style: [Fe.error, { color: c.error }],
2745
- children: r
2793
+ s && /* @__PURE__ */ j(z, {
2794
+ style: [Re.error, { color: u.error }],
2795
+ children: s
2746
2796
  }),
2747
- o && !r && /* @__PURE__ */ A(z, {
2748
- style: [Fe.helperText, { color: c.textMuted }],
2749
- children: o
2797
+ l && !s && /* @__PURE__ */ j(z, {
2798
+ style: [Re.helperText, { color: u.textMuted }],
2799
+ children: l
2750
2800
  })
2751
2801
  ]
2752
2802
  });
2753
- }, Fe = L.create({
2803
+ }, Re = L.create({
2754
2804
  container: { marginBottom: 16 },
2755
2805
  error: {
2756
2806
  fontSize: 12,
@@ -2772,100 +2822,100 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2772
2822
  fontWeight: "500",
2773
2823
  marginBottom: 8
2774
2824
  }
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);
2825
+ }), ze = (e, t) => {
2826
+ 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] = A(s || 0), [d, f] = A(c || 0), [p, m] = A(!1), { node: h, setValue: _, error: v, label: y, helperText: b } = t, { colors: x } = g(), S = k(null), C = k(null), w = Array.from({ length: 24 }, (e, t) => t), T = Array.from({ length: 60 }, (e, t) => t), E = () => n || r || "Select time", D = ee(() => {
2827
+ _(`${String(l).padStart(2, "0")}:${String(d).padStart(2, "0")}`), m(!1);
2778
2828
  }, [
2779
- h,
2780
- _,
2781
- n
2829
+ l,
2830
+ d,
2831
+ _
2782
2832
  ]);
2783
- return /* @__PURE__ */ j(H, {
2833
+ return /* @__PURE__ */ M(H, {
2784
2834
  style: Q.container,
2785
2835
  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 },
2836
+ /* @__PURE__ */ M(z, {
2837
+ style: [Q.label, { color: x.textSecondary }],
2838
+ children: [y || h.data.name, h.data.required && /* @__PURE__ */ j(z, {
2839
+ style: { color: x.error },
2790
2840
  children: "*"
2791
2841
  })]
2792
2842
  }),
2793
- /* @__PURE__ */ j(V, {
2843
+ /* @__PURE__ */ M(V, {
2794
2844
  style: [
2795
2845
  Q.trigger,
2796
2846
  {
2797
- backgroundColor: l.input,
2798
- borderColor: l.border
2847
+ backgroundColor: x.input,
2848
+ borderColor: x.border
2799
2849
  },
2800
- r && { borderColor: l.error }
2850
+ v && { borderColor: x.error }
2801
2851
  ],
2802
2852
  onPress: () => {
2803
- g(p || 0), v(m || 0), c(!0);
2853
+ u(s || 0), f(c || 0), m(!0);
2804
2854
  },
2805
2855
  activeOpacity: .7,
2806
- children: [/* @__PURE__ */ A(z, {
2856
+ children: [/* @__PURE__ */ j(z, {
2807
2857
  style: [
2808
2858
  Q.triggerText,
2809
- { color: l.text },
2810
- !t && { color: l.textMuted }
2859
+ { color: x.text },
2860
+ !n && { color: x.textMuted }
2811
2861
  ],
2812
2862
  numberOfLines: 1,
2813
- children: ee()
2814
- }), /* @__PURE__ */ A(z, {
2863
+ children: E()
2864
+ }), /* @__PURE__ */ j(z, {
2815
2865
  style: Q.icon,
2816
2866
  children: "🕐"
2817
2867
  })]
2818
2868
  }),
2819
- /* @__PURE__ */ A(re, {
2820
- visible: s,
2869
+ /* @__PURE__ */ j(re, {
2870
+ visible: p,
2821
2871
  transparent: !0,
2822
2872
  animationType: "fade",
2823
- onRequestClose: () => c(!1),
2824
- children: /* @__PURE__ */ A(V, {
2873
+ onRequestClose: () => m(!1),
2874
+ children: /* @__PURE__ */ j(V, {
2825
2875
  style: Q.modalOverlay,
2826
2876
  activeOpacity: 1,
2827
- onPress: () => c(!1),
2828
- children: /* @__PURE__ */ j(V, {
2829
- style: [Q.modalContent, { backgroundColor: l.card }],
2877
+ onPress: () => m(!1),
2878
+ children: /* @__PURE__ */ M(V, {
2879
+ style: [Q.modalContent, { backgroundColor: x.card }],
2830
2880
  activeOpacity: 1,
2831
2881
  onPress: () => {},
2832
2882
  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 }],
2883
+ /* @__PURE__ */ M(H, {
2884
+ style: [Q.modalHeader, { borderBottomColor: x.separator }],
2885
+ children: [/* @__PURE__ */ j(z, {
2886
+ style: [Q.modalTitle, { color: x.text }],
2887
+ children: y || h.data.name
2888
+ }), /* @__PURE__ */ j(V, {
2889
+ onPress: () => m(!1),
2890
+ children: /* @__PURE__ */ j(z, {
2891
+ style: [Q.closeButton, { color: x.textMuted }],
2842
2892
  children: "✕"
2843
2893
  })
2844
2894
  })]
2845
2895
  }),
2846
- /* @__PURE__ */ j(H, {
2896
+ /* @__PURE__ */ M(H, {
2847
2897
  style: Q.pickerContainer,
2848
2898
  children: [
2849
- /* @__PURE__ */ j(H, {
2899
+ /* @__PURE__ */ M(H, {
2850
2900
  style: Q.pickerColumn,
2851
- children: [/* @__PURE__ */ A(z, {
2852
- style: [Q.pickerLabel, { color: l.textMuted }],
2901
+ children: [/* @__PURE__ */ j(z, {
2902
+ style: [Q.pickerLabel, { color: x.textMuted }],
2853
2903
  children: "Hour"
2854
- }), /* @__PURE__ */ A(I, {
2855
- ref: b,
2904
+ }), /* @__PURE__ */ j(ie, {
2905
+ ref: S,
2856
2906
  style: Q.picker,
2857
2907
  contentContainerStyle: Q.pickerContent,
2858
2908
  showsVerticalScrollIndicator: !1,
2859
- children: S.map((e) => /* @__PURE__ */ A(V, {
2860
- style: [Q.pickerItem, h === e && { backgroundColor: l.primary }],
2861
- onPress: () => g(e),
2909
+ children: w.map((e) => /* @__PURE__ */ j(V, {
2910
+ style: [Q.pickerItem, l === e && { backgroundColor: x.primary }],
2911
+ onPress: () => u(e),
2862
2912
  activeOpacity: .7,
2863
- children: /* @__PURE__ */ A(z, {
2913
+ children: /* @__PURE__ */ j(z, {
2864
2914
  style: [
2865
2915
  Q.pickerItemText,
2866
- { color: l.text },
2867
- h === e && {
2868
- color: l.background,
2916
+ { color: x.text },
2917
+ l === e && {
2918
+ color: x.background,
2869
2919
  fontWeight: "600"
2870
2920
  }
2871
2921
  ],
@@ -2874,30 +2924,30 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2874
2924
  }, e))
2875
2925
  })]
2876
2926
  }),
2877
- /* @__PURE__ */ A(z, {
2878
- style: [Q.pickerSeparator, { color: l.text }],
2927
+ /* @__PURE__ */ j(z, {
2928
+ style: [Q.pickerSeparator, { color: x.text }],
2879
2929
  children: ":"
2880
2930
  }),
2881
- /* @__PURE__ */ j(H, {
2931
+ /* @__PURE__ */ M(H, {
2882
2932
  style: Q.pickerColumn,
2883
- children: [/* @__PURE__ */ A(z, {
2884
- style: [Q.pickerLabel, { color: l.textMuted }],
2933
+ children: [/* @__PURE__ */ j(z, {
2934
+ style: [Q.pickerLabel, { color: x.textMuted }],
2885
2935
  children: "Minute"
2886
- }), /* @__PURE__ */ A(I, {
2887
- ref: x,
2936
+ }), /* @__PURE__ */ j(ie, {
2937
+ ref: C,
2888
2938
  style: Q.picker,
2889
2939
  contentContainerStyle: Q.pickerContent,
2890
2940
  showsVerticalScrollIndicator: !1,
2891
- children: C.map((e) => /* @__PURE__ */ A(V, {
2892
- style: [Q.pickerItem, _ === e && { backgroundColor: l.primary }],
2893
- onPress: () => v(e),
2941
+ children: T.map((e) => /* @__PURE__ */ j(V, {
2942
+ style: [Q.pickerItem, d === e && { backgroundColor: x.primary }],
2943
+ onPress: () => f(e),
2894
2944
  activeOpacity: .7,
2895
- children: /* @__PURE__ */ A(z, {
2945
+ children: /* @__PURE__ */ j(z, {
2896
2946
  style: [
2897
2947
  Q.pickerItemText,
2898
- { color: l.text },
2899
- _ === e && {
2900
- color: l.background,
2948
+ { color: x.text },
2949
+ d === e && {
2950
+ color: x.background,
2901
2951
  fontWeight: "600"
2902
2952
  }
2903
2953
  ],
@@ -2908,12 +2958,12 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2908
2958
  })
2909
2959
  ]
2910
2960
  }),
2911
- /* @__PURE__ */ A(V, {
2912
- style: [Q.confirmButton, { backgroundColor: l.primary }],
2913
- onPress: w,
2961
+ /* @__PURE__ */ j(V, {
2962
+ style: [Q.confirmButton, { backgroundColor: x.primary }],
2963
+ onPress: D,
2914
2964
  activeOpacity: .7,
2915
- children: /* @__PURE__ */ A(z, {
2916
- style: [Q.confirmButtonText, { color: l.background }],
2965
+ children: /* @__PURE__ */ j(z, {
2966
+ style: [Q.confirmButtonText, { color: x.background }],
2917
2967
  children: "Confirm"
2918
2968
  })
2919
2969
  })
@@ -2921,13 +2971,13 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
2921
2971
  })
2922
2972
  })
2923
2973
  }),
2924
- r && /* @__PURE__ */ A(z, {
2925
- style: [Q.error, { color: l.error }],
2926
- children: r
2974
+ v && /* @__PURE__ */ j(z, {
2975
+ style: [Q.error, { color: x.error }],
2976
+ children: v
2927
2977
  }),
2928
- o && !r && /* @__PURE__ */ A(z, {
2929
- style: [Q.helperText, { color: l.textMuted }],
2930
- children: o
2978
+ b && !v && /* @__PURE__ */ j(z, {
2979
+ style: [Q.helperText, { color: x.textMuted }],
2980
+ children: b
2931
2981
  })
2932
2982
  ]
2933
2983
  });
@@ -3022,112 +3072,112 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3022
3072
  flex: 1,
3023
3073
  fontSize: 14
3024
3074
  }
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));
3075
+ }), Be = (e, t) => {
3076
+ let [n, r] = A(!1), [i, a] = A(!0), { value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = g(), m = p(), h = Array.isArray(o) ? o : [], _ = 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, [k, te] = A(0), [N, P] = A(0), F = Array.from({ length: 24 }, (e, t) => t), I = Array.from({ length: 60 }, (e, t) => t), ne = () => _ && v ? `${_} - ${v}` : _ || m("renderer.defaultInputs.selectDateRange"), L = ee(() => {
3077
+ let e = `${String(k).padStart(2, "0")}:${String(N).padStart(2, "0")}`;
3078
+ i ? (c([e, v]), a(!1), te(D || 0), P(O || 0)) : (c([_, e]), r(!1), a(!0));
3029
3079
  }, [
3030
- c,
3031
- E,
3080
+ i,
3081
+ k,
3082
+ N,
3083
+ _,
3084
+ v,
3085
+ D,
3032
3086
  O,
3033
- p,
3034
- m,
3035
- w,
3036
- T,
3037
- n
3087
+ c
3038
3088
  ]);
3039
- return /* @__PURE__ */ j(H, {
3089
+ return /* @__PURE__ */ M(H, {
3040
3090
  style: $.container,
3041
3091
  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 },
3092
+ /* @__PURE__ */ M(z, {
3093
+ style: [$.label, { color: f.textSecondary }],
3094
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ j(z, {
3095
+ style: { color: f.error },
3046
3096
  children: "*"
3047
3097
  })]
3048
3098
  }),
3049
- /* @__PURE__ */ j(V, {
3099
+ /* @__PURE__ */ M(V, {
3050
3100
  style: [
3051
3101
  $.trigger,
3052
3102
  {
3053
- backgroundColor: d.input,
3054
- borderColor: d.border
3103
+ backgroundColor: f.input,
3104
+ borderColor: f.border
3055
3105
  },
3056
- r && { borderColor: d.error }
3106
+ l && { borderColor: f.error }
3057
3107
  ],
3058
3108
  onPress: () => {
3059
- D(b || 0), M(x || 0), l(!0), s(!0);
3109
+ te(S || 0), P(C || 0), a(!0), r(!0);
3060
3110
  },
3061
3111
  activeOpacity: .7,
3062
- children: [/* @__PURE__ */ A(z, {
3112
+ children: [/* @__PURE__ */ j(z, {
3063
3113
  style: [
3064
3114
  $.triggerText,
3065
- { color: d.text },
3066
- !p && { color: d.textMuted }
3115
+ { color: f.text },
3116
+ !_ && { color: f.textMuted }
3067
3117
  ],
3068
3118
  numberOfLines: 1,
3069
- children: F()
3070
- }), /* @__PURE__ */ A(z, {
3119
+ children: ne()
3120
+ }), /* @__PURE__ */ j(z, {
3071
3121
  style: $.icon,
3072
3122
  children: "🕐"
3073
3123
  })]
3074
3124
  }),
3075
- /* @__PURE__ */ A(re, {
3076
- visible: o,
3125
+ /* @__PURE__ */ j(re, {
3126
+ visible: n,
3077
3127
  transparent: !0,
3078
3128
  animationType: "fade",
3079
- onRequestClose: () => s(!1),
3080
- children: /* @__PURE__ */ A(V, {
3129
+ onRequestClose: () => r(!1),
3130
+ children: /* @__PURE__ */ j(V, {
3081
3131
  style: $.modalOverlay,
3082
3132
  activeOpacity: 1,
3083
- onPress: () => s(!1),
3084
- children: /* @__PURE__ */ j(V, {
3085
- style: [$.modalContent, { backgroundColor: d.card }],
3133
+ onPress: () => r(!1),
3134
+ children: /* @__PURE__ */ M(V, {
3135
+ style: [$.modalContent, { backgroundColor: f.card }],
3086
3136
  activeOpacity: 1,
3087
3137
  onPress: () => {},
3088
3138
  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 }],
3139
+ /* @__PURE__ */ M(H, {
3140
+ style: [$.modalHeader, { borderBottomColor: f.separator }],
3141
+ children: [/* @__PURE__ */ j(z, {
3142
+ style: [$.modalTitle, { color: f.text }],
3143
+ children: u || s.data.name
3144
+ }), /* @__PURE__ */ j(V, {
3145
+ onPress: () => r(!1),
3146
+ children: /* @__PURE__ */ j(z, {
3147
+ style: [$.closeButton, { color: f.textMuted }],
3098
3148
  children: "✕"
3099
3149
  })
3100
3150
  })]
3101
3151
  }),
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")
3152
+ /* @__PURE__ */ j(H, {
3153
+ style: [$.rangeIndicator, { backgroundColor: f.primaryLight }],
3154
+ children: /* @__PURE__ */ j(z, {
3155
+ style: [$.rangeIndicatorText, { color: f.primary }],
3156
+ children: m(i ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3107
3157
  })
3108
3158
  }),
3109
- /* @__PURE__ */ j(H, {
3159
+ /* @__PURE__ */ M(H, {
3110
3160
  style: $.pickerContainer,
3111
3161
  children: [
3112
- /* @__PURE__ */ j(H, {
3162
+ /* @__PURE__ */ M(H, {
3113
3163
  style: $.pickerColumn,
3114
- children: [/* @__PURE__ */ A(z, {
3115
- style: [$.pickerLabel, { color: d.textMuted }],
3164
+ children: [/* @__PURE__ */ j(z, {
3165
+ style: [$.pickerLabel, { color: f.textMuted }],
3116
3166
  children: "Hour"
3117
- }), /* @__PURE__ */ A(I, {
3167
+ }), /* @__PURE__ */ j(ie, {
3118
3168
  style: $.picker,
3119
3169
  contentContainerStyle: $.pickerContent,
3120
3170
  showsVerticalScrollIndicator: !1,
3121
- children: N.map((e) => /* @__PURE__ */ A(V, {
3122
- style: [$.pickerItem, E === e && { backgroundColor: d.primary }],
3123
- onPress: () => D(e),
3171
+ children: F.map((e) => /* @__PURE__ */ j(V, {
3172
+ style: [$.pickerItem, k === e && { backgroundColor: f.primary }],
3173
+ onPress: () => te(e),
3124
3174
  activeOpacity: .7,
3125
- children: /* @__PURE__ */ A(z, {
3175
+ children: /* @__PURE__ */ j(z, {
3126
3176
  style: [
3127
3177
  $.pickerItemText,
3128
- { color: d.text },
3129
- E === e && {
3130
- color: d.background,
3178
+ { color: f.text },
3179
+ k === e && {
3180
+ color: f.background,
3131
3181
  fontWeight: "600"
3132
3182
  }
3133
3183
  ],
@@ -3136,29 +3186,29 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3136
3186
  }, e))
3137
3187
  })]
3138
3188
  }),
3139
- /* @__PURE__ */ A(z, {
3140
- style: [$.pickerSeparator, { color: d.text }],
3189
+ /* @__PURE__ */ j(z, {
3190
+ style: [$.pickerSeparator, { color: f.text }],
3141
3191
  children: ":"
3142
3192
  }),
3143
- /* @__PURE__ */ j(H, {
3193
+ /* @__PURE__ */ M(H, {
3144
3194
  style: $.pickerColumn,
3145
- children: [/* @__PURE__ */ A(z, {
3146
- style: [$.pickerLabel, { color: d.textMuted }],
3195
+ children: [/* @__PURE__ */ j(z, {
3196
+ style: [$.pickerLabel, { color: f.textMuted }],
3147
3197
  children: "Minute"
3148
- }), /* @__PURE__ */ A(I, {
3198
+ }), /* @__PURE__ */ j(ie, {
3149
3199
  style: $.picker,
3150
3200
  contentContainerStyle: $.pickerContent,
3151
3201
  showsVerticalScrollIndicator: !1,
3152
- children: P.map((e) => /* @__PURE__ */ A(V, {
3153
- style: [$.pickerItem, O === e && { backgroundColor: d.primary }],
3154
- onPress: () => M(e),
3202
+ children: I.map((e) => /* @__PURE__ */ j(V, {
3203
+ style: [$.pickerItem, N === e && { backgroundColor: f.primary }],
3204
+ onPress: () => P(e),
3155
3205
  activeOpacity: .7,
3156
- children: /* @__PURE__ */ A(z, {
3206
+ children: /* @__PURE__ */ j(z, {
3157
3207
  style: [
3158
3208
  $.pickerItemText,
3159
- { color: d.text },
3160
- O === e && {
3161
- color: d.background,
3209
+ { color: f.text },
3210
+ N === e && {
3211
+ color: f.background,
3162
3212
  fontWeight: "600"
3163
3213
  }
3164
3214
  ],
@@ -3169,26 +3219,26 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3169
3219
  })
3170
3220
  ]
3171
3221
  }),
3172
- /* @__PURE__ */ A(V, {
3173
- style: [$.confirmButton, { backgroundColor: d.primary }],
3174
- onPress: ne,
3222
+ /* @__PURE__ */ j(V, {
3223
+ style: [$.confirmButton, { backgroundColor: f.primary }],
3224
+ onPress: L,
3175
3225
  activeOpacity: .7,
3176
- children: /* @__PURE__ */ A(z, {
3177
- style: [$.confirmButtonText, { color: d.background }],
3178
- children: c ? "Next" : "Confirm"
3226
+ children: /* @__PURE__ */ j(z, {
3227
+ style: [$.confirmButtonText, { color: f.background }],
3228
+ children: i ? "Next" : "Confirm"
3179
3229
  })
3180
3230
  })
3181
3231
  ]
3182
3232
  })
3183
3233
  })
3184
3234
  }),
3185
- r && /* @__PURE__ */ A(z, {
3186
- style: [$.error, { color: d.error }],
3187
- children: r
3235
+ l && /* @__PURE__ */ j(z, {
3236
+ style: [$.error, { color: f.error }],
3237
+ children: l
3188
3238
  }),
3189
- a && !r && /* @__PURE__ */ A(z, {
3190
- style: [$.helperText, { color: d.textMuted }],
3191
- children: a
3239
+ d && !l && /* @__PURE__ */ j(z, {
3240
+ style: [$.helperText, { color: f.textMuted }],
3241
+ children: d
3192
3242
  })
3193
3243
  ]
3194
3244
  });
@@ -3293,75 +3343,75 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3293
3343
  flex: 1,
3294
3344
  fontSize: 14
3295
3345
  }
3296
- }), Re = ({ node: e }) => /* @__PURE__ */ j(z, { children: [
3346
+ }), Ve = (e, t) => /* @__PURE__ */ M(z, { children: [
3297
3347
  "TODO: Implement ",
3298
- e.data.type,
3348
+ t.node.data.type,
3299
3349
  " input for React Native"
3300
- ] }), ze = {
3301
- address: ce,
3302
- autocomplete: le,
3303
- checkbox: ue,
3304
- date: de,
3305
- daterange: fe,
3306
- file: pe,
3307
- 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 }],
3350
+ ] }), He = {
3351
+ address: le,
3352
+ autocomplete: ue,
3353
+ checkbox: de,
3354
+ date: fe,
3355
+ daterange: pe,
3356
+ file: me,
3357
+ hidden: he,
3358
+ http: Ee,
3359
+ number: De,
3360
+ password: ke,
3361
+ radio: je,
3362
+ select: Me,
3363
+ submit: Ve,
3364
+ switch: Ne,
3365
+ text: Le,
3366
+ textarea: Fe,
3367
+ time: ze,
3368
+ timerange: Be
3369
+ }, Ue = ({ label: e, children: t, isFirstStep: n, isLastStep: r, canContinue: i, isSubmitting: a, onBack: o, onContinue: s }) => {
3370
+ let { colors: c } = g(), l = p(), u = !i || a;
3371
+ return /* @__PURE__ */ M(H, { children: [
3372
+ e ? /* @__PURE__ */ j(z, {
3373
+ style: [We.label, { color: c.text }],
3324
3374
  children: e
3325
3375
  }) : null,
3326
- /* @__PURE__ */ A(H, {
3327
- style: Ve.content,
3376
+ /* @__PURE__ */ j(H, {
3377
+ style: We.content,
3328
3378
  children: t
3329
3379
  }),
3330
- /* @__PURE__ */ j(H, {
3331
- style: Ve.actions,
3332
- children: [n ? /* @__PURE__ */ A(H, {}) : /* @__PURE__ */ A(V, {
3380
+ /* @__PURE__ */ M(H, {
3381
+ style: We.actions,
3382
+ children: [n ? /* @__PURE__ */ j(H, {}) : /* @__PURE__ */ j(V, {
3333
3383
  style: [
3334
- Ve.backButton,
3335
- { borderColor: l.border },
3336
- a && Ve.disabled
3384
+ We.backButton,
3385
+ { borderColor: c.border },
3386
+ a && We.disabled
3337
3387
  ],
3338
3388
  onPress: o,
3339
3389
  disabled: a,
3340
3390
  activeOpacity: .7,
3341
- children: /* @__PURE__ */ A(z, {
3342
- style: [Ve.backButtonText, { color: l.text }],
3343
- children: c("renderer.step.back")
3391
+ children: /* @__PURE__ */ j(z, {
3392
+ style: [We.backButtonText, { color: c.text }],
3393
+ children: l("renderer.step.back")
3344
3394
  })
3345
- }), /* @__PURE__ */ A(V, {
3395
+ }), /* @__PURE__ */ j(V, {
3346
3396
  style: [
3347
- Ve.continueButton,
3348
- { backgroundColor: l.primary },
3397
+ We.continueButton,
3398
+ { backgroundColor: c.primary },
3349
3399
  u && {
3350
- backgroundColor: l.primaryDisabled,
3400
+ backgroundColor: c.primaryDisabled,
3351
3401
  opacity: .6
3352
3402
  }
3353
3403
  ],
3354
3404
  onPress: s,
3355
3405
  disabled: u,
3356
3406
  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")
3407
+ children: a ? /* @__PURE__ */ j(N, { color: c.primaryForeground }) : /* @__PURE__ */ j(z, {
3408
+ style: [We.continueButtonText, { color: c.primaryForeground }],
3409
+ children: l(r ? "renderer.defaultSubmitButton.submit" : "renderer.step.continue")
3360
3410
  })
3361
3411
  })]
3362
3412
  })
3363
3413
  ] });
3364
- }, Ve = L.create({
3414
+ }, We = L.create({
3365
3415
  actions: {
3366
3416
  alignItems: "center",
3367
3417
  flexDirection: "row",
@@ -3396,11 +3446,11 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3396
3446
  fontWeight: "600",
3397
3447
  marginBottom: 12
3398
3448
  }
3399
- }), He = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3400
- let { colors: i } = y();
3401
- return /* @__PURE__ */ A(V, {
3449
+ }), Ge = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3450
+ let { colors: i } = g();
3451
+ return /* @__PURE__ */ j(V, {
3402
3452
  style: [
3403
- Ue.button,
3453
+ Ke.button,
3404
3454
  { backgroundColor: i.primary },
3405
3455
  (t || n) && {
3406
3456
  backgroundColor: i.primaryDisabled,
@@ -3410,12 +3460,12 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3410
3460
  disabled: t || n,
3411
3461
  onPress: r,
3412
3462
  activeOpacity: .7,
3413
- children: n ? /* @__PURE__ */ A(M, { color: i.primaryForeground }) : /* @__PURE__ */ A(z, {
3414
- style: [Ue.buttonText, { color: i.primaryForeground }],
3463
+ children: n ? /* @__PURE__ */ j(N, { color: i.primaryForeground }) : /* @__PURE__ */ j(z, {
3464
+ style: [Ke.buttonText, { color: i.primaryForeground }],
3415
3465
  children: e
3416
3466
  })
3417
3467
  });
3418
- }, Ue = L.create({
3468
+ }, Ke = L.create({
3419
3469
  button: {
3420
3470
  alignItems: "center",
3421
3471
  borderRadius: 6,
@@ -3428,16 +3478,16 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3428
3478
  fontSize: 16,
3429
3479
  fontWeight: "600"
3430
3480
  }
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 }],
3481
+ }), qe = ({ children: e }) => e, Je = ({ node: e }) => {
3482
+ let t = p(), { colors: n } = g(), r = t(e.data?.label);
3483
+ return /* @__PURE__ */ j(z, {
3484
+ style: [Xe.title, { color: n.text }],
3435
3485
  children: r
3436
3486
  });
3437
- }, Ke = () => {
3438
- let { colors: e } = y();
3439
- return /* @__PURE__ */ A(H, { style: [qe.divider, { backgroundColor: e.separator }] });
3440
- }, qe = L.create({
3487
+ }, Ye = () => {
3488
+ let { colors: e } = g();
3489
+ return /* @__PURE__ */ j(H, { style: [Xe.divider, { backgroundColor: e.separator }] });
3490
+ }, Xe = L.create({
3441
3491
  divider: {
3442
3492
  height: 1,
3443
3493
  marginBottom: 16,
@@ -3448,63 +3498,63 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3448
3498
  fontWeight: "700",
3449
3499
  marginBottom: 16
3450
3500
  }
3451
- }), Je = {
3452
- divider: Ke,
3453
- title: Ge
3454
- }, Ye = ({ node: e, children: t }) => {
3501
+ }), Ze = {
3502
+ divider: Ye,
3503
+ title: Je
3504
+ }, Qe = ({ node: e, children: t }) => {
3455
3505
  let { image: n } = e.data;
3456
- return /* @__PURE__ */ j(H, { children: [n && /* @__PURE__ */ A(ne, {
3506
+ return /* @__PURE__ */ M(H, { children: [n && /* @__PURE__ */ j(ne, {
3457
3507
  source: { uri: n },
3458
- style: Xe.image,
3508
+ style: $e.image,
3459
3509
  resizeMode: "cover"
3460
3510
  }), t] });
3461
- }, Xe = L.create({ image: {
3511
+ }, $e = L.create({ image: {
3462
3512
  borderRadius: 6,
3463
3513
  height: 160,
3464
3514
  marginBottom: 8,
3465
3515
  width: "100%"
3466
- } }), Ze = ({ style: e }) => {
3467
- let { colors: t } = y(), n = O(new P.Value(.5)).current;
3468
- return E(() => {
3469
- let e = P.loop(P.sequence([P.timing(n, {
3516
+ } }), et = ({ style: e }) => {
3517
+ let { colors: t } = g(), n = k(new F.Value(.5)).current;
3518
+ return D(() => {
3519
+ let e = F.loop(F.sequence([F.timing(n, {
3470
3520
  duration: 600,
3471
3521
  toValue: 1,
3472
3522
  useNativeDriver: !0
3473
- }), P.timing(n, {
3523
+ }), F.timing(n, {
3474
3524
  duration: 600,
3475
3525
  toValue: .5,
3476
3526
  useNativeDriver: !0
3477
3527
  })]));
3478
3528
  return e.start(), () => e.stop();
3479
- }, [n]), /* @__PURE__ */ A(P.View, { style: [
3480
- $e.bar,
3529
+ }, [n]), /* @__PURE__ */ j(F.View, { style: [
3530
+ nt.bar,
3481
3531
  {
3482
3532
  backgroundColor: t.muted,
3483
3533
  opacity: n
3484
3534
  },
3485
3535
  e
3486
3536
  ] });
3487
- }, Qe = () => /* @__PURE__ */ j(H, {
3537
+ }, tt = () => /* @__PURE__ */ M(H, {
3488
3538
  accessibilityState: { busy: !0 },
3489
3539
  children: [
3490
- /* @__PURE__ */ A(Ze, { style: $e.title }),
3491
- /* @__PURE__ */ A(H, {
3492
- style: $e.fields,
3540
+ /* @__PURE__ */ j(et, { style: nt.title }),
3541
+ /* @__PURE__ */ j(H, {
3542
+ style: nt.fields,
3493
3543
  children: [
3494
3544
  0,
3495
3545
  1,
3496
3546
  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 })]
3547
+ ].map((e) => /* @__PURE__ */ M(H, {
3548
+ style: nt.field,
3549
+ children: [/* @__PURE__ */ j(et, { style: nt.fieldLabel }), /* @__PURE__ */ j(et, { style: nt.fieldInput })]
3500
3550
  }, e))
3501
3551
  }),
3502
- /* @__PURE__ */ A(H, {
3503
- style: $e.actions,
3504
- children: /* @__PURE__ */ A(Ze, { style: $e.button })
3552
+ /* @__PURE__ */ j(H, {
3553
+ style: nt.actions,
3554
+ children: /* @__PURE__ */ j(et, { style: nt.button })
3505
3555
  })
3506
3556
  ]
3507
- }), $e = L.create({
3557
+ }), nt = L.create({
3508
3558
  actions: {
3509
3559
  alignItems: "flex-end",
3510
3560
  marginTop: 24
@@ -3529,101 +3579,104 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3529
3579
  marginBottom: 24,
3530
3580
  width: "33%"
3531
3581
  }
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({
3534
- components: e,
3535
- flows: r,
3536
- googleApiKey: i,
3537
- headers: a,
3538
- initialValues: o,
3539
- language: c,
3540
- onChange: l,
3541
- onSubmit: u,
3542
- theme: f,
3543
- validate: p,
3544
- validationMode: m
3545
- }), { FormWrapper: ae, SubmitButtonWrapper: oe, renderNode: se } = S({
3546
- config: x,
3547
- DefaultFormWrapper: ie,
3548
- DefaultInputWrapper: Ye,
3549
- DefaultSubmitButton: He,
3550
- DefaultSubmitButtonWrapper: We,
3551
- defaultInputRenderers: ze,
3552
- defaultUI: Je,
3553
- formErrors: T,
3554
- formValues: E,
3582
+ }), rt = ({ baseUrl: e, components: n, contentContainerStyle: r, flows: i, googleApiKey: a, headers: o, initialValues: s, isLoading: c = !1, language: l, onChange: u, onSubmit: d, style: p, theme: m, validate: h, validationMode: _ }) => {
3583
+ let { colors: v } = g(), { canContinueStep: b, canSubmit: x, clearSubmitMessage: S, config: C, currentStep: w, currentStepGroupNode: T, currentStepIndex: E, formErrors: D, formValues: k, goToNextStep: A, goToPreviousStep: te, handleSubmit: N, inputNodes: P, isFirstStep: F, isLastStep: I, isSubmitting: ne, missingRequiredFields: re, setFieldValue: L, steps: R, submitMessage: B, t: V } = f({
3584
+ baseUrl: e,
3585
+ components: n,
3586
+ flows: i,
3587
+ googleApiKey: a,
3588
+ headers: o,
3589
+ initialValues: s,
3590
+ language: l,
3591
+ onChange: u,
3592
+ onSubmit: d,
3593
+ theme: m,
3594
+ validate: h,
3595
+ validationMode: _
3596
+ }), { FormWrapper: oe, SubmitButtonWrapper: se, renderNode: ce } = y({
3597
+ config: C,
3598
+ DefaultFormWrapper: ae,
3599
+ DefaultInputWrapper: Qe,
3600
+ DefaultSubmitButton: Ge,
3601
+ DefaultSubmitButtonWrapper: qe,
3602
+ defaultInputRenderers: He,
3603
+ defaultUI: Ze,
3604
+ formErrors: D,
3605
+ formValues: k,
3606
+ inputNodes: P,
3555
3607
  missingRequiredFields: re,
3556
3608
  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();
3609
+ }), le = C.components.step ?? Ue, U = C.components.loadingSkeleton ?? tt, ue = O(() => V(T?.data?.label), [V, T]), W = ee(() => {
3610
+ if (I) {
3611
+ N();
3560
3612
  return;
3561
3613
  }
3562
- O();
3614
+ A();
3563
3615
  }, [
3564
- F,
3565
- M,
3566
- O
3616
+ I,
3617
+ N,
3618
+ A
3567
3619
  ]);
3568
- return /* @__PURE__ */ A(I, {
3620
+ return /* @__PURE__ */ j(ie, {
3569
3621
  nestedScrollEnabled: !0,
3570
3622
  style: [
3571
- nt.container,
3572
- { backgroundColor: g.background },
3573
- d
3623
+ at.container,
3624
+ { backgroundColor: v.background },
3625
+ p
3574
3626
  ],
3575
- contentContainerStyle: t,
3576
- children: s ? /* @__PURE__ */ A(U, {}) : /* @__PURE__ */ j(n, {
3627
+ contentContainerStyle: r,
3628
+ children: c ? /* @__PURE__ */ j(U, {}) : /* @__PURE__ */ M(t, {
3577
3629
  value: {
3578
- flows: r,
3579
- formErrors: T,
3580
- formValues: E,
3581
- googleApiKey: x.googleApiKey,
3582
- headers: x.headers,
3583
- inputNodes: N,
3584
- language: x.language,
3630
+ baseUrl: C.baseUrl,
3631
+ flows: i,
3632
+ formErrors: D,
3633
+ formValues: k,
3634
+ googleApiKey: C.googleApiKey,
3635
+ headers: C.headers,
3636
+ inputNodes: P,
3637
+ language: C.language,
3585
3638
  setFieldValue: L
3586
3639
  },
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, {
3592
- step: C,
3593
- groupNode: ee,
3594
- stepIndex: w,
3640
+ children: [/* @__PURE__ */ M(oe, {
3641
+ onSubmit: N,
3642
+ children: [w && /* @__PURE__ */ j(se, {
3643
+ missingFields: I ? re : void 0,
3644
+ children: /* @__PURE__ */ j(le, {
3645
+ step: w,
3646
+ groupNode: T,
3647
+ stepIndex: E,
3595
3648
  totalSteps: R.length,
3596
- isFirstStep: P,
3597
- isLastStep: F,
3598
- canContinue: _ && (!F || v),
3649
+ isFirstStep: F,
3650
+ isLastStep: I,
3651
+ canContinue: b && (!I || x),
3599
3652
  isSubmitting: ne,
3600
- onBack: k,
3653
+ onBack: te,
3601
3654
  onContinue: W,
3602
- label: le,
3603
- children: C.nodes.map((e) => se(e))
3655
+ label: ue,
3656
+ children: w.nodes.map((e) => ce(e))
3604
3657
  })
3605
- }), /* @__PURE__ */ A(z, {
3606
- style: [nt.poweredBy, { color: g.textMuted }],
3658
+ }), /* @__PURE__ */ j(z, {
3659
+ style: [at.poweredBy, { color: v.textMuted }],
3607
3660
  children: "Powered by Treege"
3608
3661
  })]
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 }],
3662
+ }), B && /* @__PURE__ */ M(H, {
3663
+ style: [at.message, { backgroundColor: B.type === "success" ? v.successBg : v.errorBg }],
3664
+ children: [/* @__PURE__ */ j(z, {
3665
+ style: [at.messageText, { color: B.type === "success" ? v.success : v.error }],
3613
3666
  children: B.message
3614
- }), /* @__PURE__ */ A(z, {
3615
- style: [nt.messageClose, { color: B.type === "success" ? g.success : g.error }],
3616
- onPress: b,
3667
+ }), /* @__PURE__ */ j(z, {
3668
+ style: [at.messageClose, { color: B.type === "success" ? v.success : v.error }],
3669
+ onPress: S,
3617
3670
  children: V("common.close")
3618
3671
  })]
3619
3672
  })]
3620
3673
  })
3621
3674
  });
3622
- }, tt = (e) => /* @__PURE__ */ A(ee, {
3675
+ }, it = (e) => /* @__PURE__ */ j(x, {
3623
3676
  theme: e.theme,
3624
3677
  storageKey: "treege-renderer-theme",
3625
- children: /* @__PURE__ */ A(et, { ...e })
3626
- }), nt = L.create({
3678
+ children: /* @__PURE__ */ j(rt, { ...e })
3679
+ }), at = L.create({
3627
3680
  container: { flex: 1 },
3628
3681
  message: {
3629
3682
  borderRadius: 6,
@@ -3646,4 +3699,4 @@ var ie = ({ children: e }) => /* @__PURE__ */ A(H, {
3646
3699
  }
3647
3700
  });
3648
3701
  //#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 };
3702
+ export { le as DefaultAddressInput, ue as DefaultAutocompleteInput, de as DefaultCheckboxInput, fe as DefaultDateInput, pe as DefaultDateRangeInput, Ye as DefaultDividerUI, me as DefaultFileInput, he as DefaultHiddenInput, Ee as DefaultHttpInput, De as DefaultNumberInput, ke as DefaultPasswordInput, je as DefaultRadioInput, Me as DefaultSelectInput, Ve as DefaultSubmitInput, Ne as DefaultSwitchInput, Le as DefaultTextInput, Fe as DefaultTextareaInput, ze as DefaultTimeInput, Be as DefaultTimeRangeInput, Je as DefaultTitleUI, S as TreegeConfigProvider, it as TreegeRenderer, l as applyReferenceTransformation, v as calculateReferenceFieldUpdates, h as checkFormFieldHasValue, d as convertFormValuesToNamedFormat, He as defaultInputRenderers, Ze as defaultUI, s as evaluateCondition, m as evaluateConditions, T as fileToSerializable, o as filesToSerializable, a as findStartNode, _ as getFlowRenderState, E as getTranslatedText, u as isFieldEmpty, b as isStartNode, be as sanitize, Se as sanitizeHttpResponse, w as serializableToFile, c as useTreegeConfig, f as useTreegeRenderer };