treege 3.0.0-beta.89 → 3.0.0-beta.90

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.
@@ -1,30 +1,30 @@
1
- import { D as e, F as t, G as n, J as r, M as i, N as a, P as o, R as s, T as c, _ as l, a as u, b as d, c as f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, v as w, w as T, x as E, y as D, z as ee } from "./ThemeContext-CiVygpDK.js";
2
- import { a as O, c as k, i as A, l as te, n as ne, o as re, r as ie, s as ae, t as j } from "./useRenderNode-D9gPe-xm.js";
3
- import { useCallback as oe, useEffect as M, useMemo as se, useRef as N, useState as P } from "react";
4
- import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
5
- import { ActivityIndicator as ce, Alert as R, Animated as le, FlatList as ue, Image as de, Modal as fe, ScrollView as pe, StyleSheet as z, Switch as me, Text as B, TextInput as he, TouchableOpacity as V, View as H } from "react-native";
1
+ import { B as e, D as t, F as n, M as r, N as i, P as a, R as o, T as s, V as c, X as l, _ as u, a as d, b as f, c as p, g as m, h, i as g, k as _, l as v, m as y, n as b, o as x, q as S, r as C, s as ee, t as w, v as T, w as te, x as ne, y as E, z as re } from "./ThemeContext-CPsC8QIP.js";
2
+ import { a as D, c as O, i as k, l as A, n as ie, o as ae, r as oe, s as j, t as M } from "./useRenderNode-CG466pNk.js";
3
+ import { useCallback as se, useEffect as N, useMemo as ce, useRef as P, useState as F } from "react";
4
+ import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
5
+ import { ActivityIndicator as le, Alert as ue, Animated as de, FlatList as fe, Image as pe, Modal as me, ScrollView as he, StyleSheet as z, Switch as ge, Text as B, TextInput as _e, TouchableOpacity as V, View as H } from "react-native";
6
6
  //#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
7
- var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
8
- style: _e.container,
7
+ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
8
+ style: ye.container,
9
9
  children: e
10
- }), _e = z.create({ container: { padding: 16 } }), ve = ({ label: e, required: t, style: n }) => {
11
- let { colors: r } = y();
12
- return e ? /* @__PURE__ */ L(B, {
10
+ }), ye = z.create({ container: { padding: 16 } }), be = ({ label: e, required: t, style: n }) => {
11
+ let { colors: r } = b();
12
+ return e ? /* @__PURE__ */ R(B, {
13
13
  style: [
14
- ye.label,
14
+ xe.label,
15
15
  { color: r.textSecondary },
16
16
  n
17
17
  ],
18
- children: [e, t && /* @__PURE__ */ I(B, {
18
+ children: [e, t && /* @__PURE__ */ L(B, {
19
19
  style: { color: r.error },
20
20
  children: "*"
21
21
  })]
22
22
  }) : null;
23
- }, ye = z.create({ label: {
23
+ }, xe = z.create({ label: {
24
24
  fontSize: 14,
25
25
  fontWeight: "500",
26
26
  marginBottom: 8
27
- } }), be = async (e, t) => {
27
+ } }), Se = async (e, t) => {
28
28
  if (!e || e.trim().length < 3) return [];
29
29
  try {
30
30
  let n = await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&addressdetails=1&limit=5`, { headers: {
@@ -39,7 +39,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
39
39
  } catch (e) {
40
40
  return console.error("Nominatim fetch error:", e), [];
41
41
  }
42
- }, xe = async (e, t) => {
42
+ }, Ce = async (e, t) => {
43
43
  if (!e || e.trim().length < 3) return [];
44
44
  try {
45
45
  let n = await fetch(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${encodeURIComponent(e)}&key=${t}`);
@@ -52,143 +52,143 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
52
52
  } catch (e) {
53
53
  return console.error("Google Places fetch error:", e), [];
54
54
  }
55
- }, Se = ({ field: e, extra: n }) => {
56
- let [r, i] = P(""), [a, o] = P([]), [s, c] = P(!1), [l, u] = P(!1), { value: d, placeholder: f, id: p, name: m } = e, { InputLabel: h, node: g, setValue: _, error: v, label: b, helperText: x } = n, { language: S, googleApiKey: C } = ee(), w = t(), { colors: T } = y(), E = oe((e) => {
57
- _(e.value), i(""), c(!1), o([]);
58
- }, [_]), D = () => {
59
- c(!1);
55
+ }, we = ({ field: e, extra: t }) => {
56
+ let [r, i] = F(""), [a, o] = F([]), [s, l] = F(!1), [u, d] = F(!1), { value: f, placeholder: p, id: m, name: h } = e, { InputLabel: g, node: _, setValue: v, error: y, label: x, helperText: S } = t, { language: C, googleApiKey: ee } = c(), w = n(), { colors: T } = b(), te = se((e) => {
57
+ v(e.value), i(""), l(!1), o([]);
58
+ }, [v]), ne = () => {
59
+ l(!1);
60
60
  };
61
- return M(() => {
61
+ return N(() => {
62
62
  if (!r || r.trim().length < 3) {
63
- o([]), u(!1);
63
+ o([]), d(!1);
64
64
  return;
65
65
  }
66
- u(!0);
66
+ d(!0);
67
67
  let e = setTimeout(async () => {
68
- o(C ? await xe(r, C) : await be(r, S)), u(!1);
68
+ o(ee ? await Ce(r, ee) : await Se(r, C)), d(!1);
69
69
  }, 300);
70
70
  return () => {
71
- clearTimeout(e), u(!1);
71
+ clearTimeout(e), d(!1);
72
72
  };
73
73
  }, [
74
74
  r,
75
- S,
76
- C
77
- ]), /* @__PURE__ */ L(H, {
75
+ C,
76
+ ee
77
+ ]), /* @__PURE__ */ R(H, {
78
78
  style: U.container,
79
79
  children: [
80
- /* @__PURE__ */ I(h, {
81
- label: b,
82
- required: g.data.required
80
+ /* @__PURE__ */ L(g, {
81
+ label: x,
82
+ required: _.data.required
83
83
  }),
84
- /* @__PURE__ */ L(V, {
84
+ /* @__PURE__ */ R(V, {
85
85
  style: [
86
86
  U.trigger,
87
87
  {
88
88
  backgroundColor: T.input,
89
89
  borderColor: T.border
90
90
  },
91
- v && { borderColor: T.error }
91
+ y && { borderColor: T.error }
92
92
  ],
93
- onPress: () => c(!0),
93
+ onPress: () => l(!0),
94
94
  activeOpacity: .7,
95
- children: [/* @__PURE__ */ I(B, {
95
+ children: [/* @__PURE__ */ L(B, {
96
96
  style: [
97
97
  U.triggerText,
98
98
  { color: T.text },
99
- !d && { color: T.textMuted }
99
+ !f && { color: T.textMuted }
100
100
  ],
101
101
  numberOfLines: 1,
102
- children: d || f || w("renderer.defaultAddressInput.enterAddress")
103
- }), /* @__PURE__ */ I(B, {
102
+ children: f || p || w("renderer.defaultAddressInput.enterAddress")
103
+ }), /* @__PURE__ */ L(B, {
104
104
  style: U.icon,
105
105
  children: "📍"
106
106
  })]
107
107
  }),
108
- /* @__PURE__ */ I(fe, {
108
+ /* @__PURE__ */ L(me, {
109
109
  visible: s,
110
110
  transparent: !0,
111
111
  animationType: "fade",
112
- onRequestClose: D,
113
- children: /* @__PURE__ */ I(V, {
112
+ onRequestClose: ne,
113
+ children: /* @__PURE__ */ L(V, {
114
114
  style: U.modalOverlay,
115
115
  activeOpacity: 1,
116
- onPress: D,
117
- children: /* @__PURE__ */ L(V, {
116
+ onPress: ne,
117
+ children: /* @__PURE__ */ R(V, {
118
118
  style: [U.modalContent, { backgroundColor: T.card }],
119
119
  activeOpacity: 1,
120
120
  onPress: () => {},
121
121
  children: [
122
- /* @__PURE__ */ L(H, {
122
+ /* @__PURE__ */ R(H, {
123
123
  style: [U.modalHeader, { borderBottomColor: T.separator }],
124
- children: [/* @__PURE__ */ I(B, {
124
+ children: [/* @__PURE__ */ L(B, {
125
125
  style: [U.modalTitle, { color: T.text }],
126
- children: b || f || w("renderer.defaultAddressInput.enterAddress")
127
- }), /* @__PURE__ */ I(V, {
128
- onPress: D,
129
- children: /* @__PURE__ */ I(B, {
126
+ children: x || p || w("renderer.defaultAddressInput.enterAddress")
127
+ }), /* @__PURE__ */ L(V, {
128
+ onPress: ne,
129
+ children: /* @__PURE__ */ L(B, {
130
130
  style: [U.closeButton, { color: T.textMuted }],
131
131
  children: "✕"
132
132
  })
133
133
  })]
134
134
  }),
135
- /* @__PURE__ */ L(H, {
135
+ /* @__PURE__ */ R(H, {
136
136
  style: U.searchContainer,
137
- children: [/* @__PURE__ */ I(he, {
137
+ children: [/* @__PURE__ */ L(_e, {
138
138
  style: [U.searchInput, {
139
139
  backgroundColor: T.muted,
140
140
  borderColor: T.border,
141
141
  color: T.text
142
142
  }],
143
- placeholder: f || w("renderer.defaultAddressInput.enterAddress"),
143
+ placeholder: p || w("renderer.defaultAddressInput.enterAddress"),
144
144
  placeholderTextColor: T.textMuted,
145
145
  value: r,
146
146
  onChangeText: i,
147
147
  autoFocus: !0,
148
148
  autoCapitalize: "none",
149
149
  autoCorrect: !1
150
- }), l && /* @__PURE__ */ I(ce, {
150
+ }), u && /* @__PURE__ */ L(le, {
151
151
  size: "small",
152
152
  color: T.primary,
153
153
  style: U.searchLoader
154
154
  })]
155
155
  }),
156
- l ? /* @__PURE__ */ L(H, {
156
+ u ? /* @__PURE__ */ R(H, {
157
157
  style: U.loadingContainer,
158
- children: [/* @__PURE__ */ I(ce, {
158
+ children: [/* @__PURE__ */ L(le, {
159
159
  size: "small",
160
160
  color: T.primary
161
- }), /* @__PURE__ */ I(B, {
161
+ }), /* @__PURE__ */ L(B, {
162
162
  style: [U.loadingText, { color: T.textMuted }],
163
163
  children: w("renderer.defaultAddressInput.searching")
164
164
  })]
165
- }) : /* @__PURE__ */ I(ue, {
165
+ }) : /* @__PURE__ */ L(fe, {
166
166
  data: a,
167
167
  keyExtractor: (e, t) => t.toString(),
168
168
  style: U.suggestionsList,
169
169
  contentContainerStyle: U.suggestionsListContent,
170
170
  keyboardShouldPersistTaps: "handled",
171
- ListEmptyComponent: r.length >= 3 ? /* @__PURE__ */ I(H, {
171
+ ListEmptyComponent: r.length >= 3 ? /* @__PURE__ */ L(H, {
172
172
  style: U.emptyContainer,
173
- children: /* @__PURE__ */ I(B, {
173
+ children: /* @__PURE__ */ L(B, {
174
174
  style: [U.emptyText, { color: T.textMuted }],
175
175
  children: w("renderer.defaultAddressInput.noAddressesFound")
176
176
  })
177
- }) : /* @__PURE__ */ I(H, {
177
+ }) : /* @__PURE__ */ L(H, {
178
178
  style: U.emptyContainer,
179
- children: /* @__PURE__ */ I(B, {
179
+ children: /* @__PURE__ */ L(B, {
180
180
  style: [U.emptyText, { color: T.textMuted }],
181
181
  children: w("renderer.defaultAddressInput.typeMinChars")
182
182
  })
183
183
  }),
184
- renderItem: ({ item: e }) => /* @__PURE__ */ L(V, {
184
+ renderItem: ({ item: e }) => /* @__PURE__ */ R(V, {
185
185
  style: U.suggestionItem,
186
- onPress: () => E(e),
186
+ onPress: () => te(e),
187
187
  activeOpacity: .7,
188
- children: [/* @__PURE__ */ I(B, {
188
+ children: [/* @__PURE__ */ L(B, {
189
189
  style: U.suggestionIcon,
190
190
  children: "📍"
191
- }), /* @__PURE__ */ I(B, {
191
+ }), /* @__PURE__ */ L(B, {
192
192
  style: [U.suggestionText, { color: T.text }],
193
193
  numberOfLines: 2,
194
194
  children: e.label
@@ -199,13 +199,13 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
199
199
  })
200
200
  })
201
201
  }),
202
- v && /* @__PURE__ */ I(B, {
202
+ y && /* @__PURE__ */ L(B, {
203
203
  style: [U.error, { color: T.error }],
204
- children: v
204
+ children: y
205
205
  }),
206
- x && !v && /* @__PURE__ */ I(B, {
206
+ S && !y && /* @__PURE__ */ L(B, {
207
207
  style: [U.helperText, { color: T.textMuted }],
208
- children: x
208
+ children: S
209
209
  })
210
210
  ]
211
211
  });
@@ -314,25 +314,25 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
314
314
  flex: 1,
315
315
  fontSize: 14
316
316
  }
317
- }), Ce = ({ label: e, description: t, image: n, disabled: r }) => {
318
- let { colors: i } = y();
319
- return /* @__PURE__ */ L(H, {
320
- style: we.content,
321
- children: [n ? /* @__PURE__ */ I(de, {
317
+ }), Te = ({ label: e, description: t, image: n, disabled: r }) => {
318
+ let { colors: i } = b();
319
+ return /* @__PURE__ */ R(H, {
320
+ style: Ee.content,
321
+ children: [n ? /* @__PURE__ */ L(pe, {
322
322
  source: { uri: n },
323
- style: we.image
324
- }) : null, /* @__PURE__ */ L(H, {
325
- style: we.textWrapper,
326
- children: [/* @__PURE__ */ I(B, {
327
- style: [we.label, { color: r ? i.textMuted : i.text }],
323
+ style: Ee.image
324
+ }) : null, /* @__PURE__ */ R(H, {
325
+ style: Ee.textWrapper,
326
+ children: [/* @__PURE__ */ L(B, {
327
+ style: [Ee.label, { color: r ? i.textMuted : i.text }],
328
328
  children: e
329
- }), t ? /* @__PURE__ */ I(B, {
330
- style: [we.description, { color: i.textMuted }],
329
+ }), t ? /* @__PURE__ */ L(B, {
330
+ style: [Ee.description, { color: i.textMuted }],
331
331
  children: t
332
332
  }) : null]
333
333
  })]
334
334
  });
335
- }, we = z.create({
335
+ }, Ee = z.create({
336
336
  content: {
337
337
  alignItems: "center",
338
338
  flex: 1,
@@ -350,8 +350,8 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
350
350
  },
351
351
  label: { fontSize: 14 },
352
352
  textWrapper: { flex: 1 }
353
- }), Te = ({ field: e, extra: n }) => {
354
- let [r, i] = P(!1), [a, o] = P(""), { value: s, placeholder: c } = e, { InputLabel: l, node: u, setValue: d, error: f, label: p, helperText: m } = n, h = t(), { colors: g } = y(), _ = u.data.options || [], v = _.find((e) => e.value === s), b = se(() => {
353
+ }), De = ({ field: e, extra: t }) => {
354
+ let [r, i] = F(!1), [a, o] = F(""), { value: s, placeholder: c } = e, { InputLabel: l, node: u, setValue: d, error: f, label: p, helperText: m } = t, h = n(), { colors: g } = b(), _ = u.data.options || [], v = _.find((e) => e.value === s), y = ce(() => {
355
355
  if (!a.trim()) return _;
356
356
  let e = a.toLowerCase();
357
357
  return _.filter((t) => h(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
@@ -364,14 +364,14 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
364
364
  }, S = () => {
365
365
  i(!1), o("");
366
366
  };
367
- return /* @__PURE__ */ L(H, {
367
+ return /* @__PURE__ */ R(H, {
368
368
  style: W.container,
369
369
  children: [
370
- /* @__PURE__ */ I(l, {
370
+ /* @__PURE__ */ L(l, {
371
371
  label: p,
372
372
  required: u.data.required
373
373
  }),
374
- /* @__PURE__ */ L(V, {
374
+ /* @__PURE__ */ R(V, {
375
375
  style: [
376
376
  W.trigger,
377
377
  {
@@ -383,7 +383,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
383
383
  onPress: () => i(!0),
384
384
  activeOpacity: .7,
385
385
  children: [
386
- /* @__PURE__ */ I(B, {
386
+ /* @__PURE__ */ L(B, {
387
387
  style: [
388
388
  W.triggerText,
389
389
  { color: g.text },
@@ -392,7 +392,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
392
392
  numberOfLines: 1,
393
393
  children: s && v ? h(v.label) : c || h("renderer.defaultAutocompleteInput.selectOption")
394
394
  }),
395
- s ? /* @__PURE__ */ I(V, {
395
+ s ? /* @__PURE__ */ L(V, {
396
396
  onPress: () => d(""),
397
397
  hitSlop: {
398
398
  bottom: 8,
@@ -401,47 +401,47 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
401
401
  top: 8
402
402
  },
403
403
  style: W.clearButton,
404
- children: /* @__PURE__ */ I(B, {
404
+ children: /* @__PURE__ */ L(B, {
405
405
  style: [W.clearIcon, { color: g.textMuted }],
406
406
  children: "✕"
407
407
  })
408
408
  }) : null,
409
- /* @__PURE__ */ I(B, {
409
+ /* @__PURE__ */ L(B, {
410
410
  style: [W.arrow, { color: g.textMuted }],
411
411
  children: "▼"
412
412
  })
413
413
  ]
414
414
  }),
415
- /* @__PURE__ */ I(fe, {
415
+ /* @__PURE__ */ L(me, {
416
416
  visible: r,
417
417
  transparent: !0,
418
418
  animationType: "fade",
419
419
  onRequestClose: S,
420
- children: /* @__PURE__ */ I(V, {
420
+ children: /* @__PURE__ */ L(V, {
421
421
  style: W.modalOverlay,
422
422
  activeOpacity: 1,
423
423
  onPress: S,
424
- children: /* @__PURE__ */ L(V, {
424
+ children: /* @__PURE__ */ R(V, {
425
425
  style: [W.modalContent, { backgroundColor: g.card }],
426
426
  activeOpacity: 1,
427
427
  onPress: () => {},
428
428
  children: [
429
- /* @__PURE__ */ L(H, {
429
+ /* @__PURE__ */ R(H, {
430
430
  style: [W.modalHeader, { borderBottomColor: g.separator }],
431
- children: [/* @__PURE__ */ I(B, {
431
+ children: [/* @__PURE__ */ L(B, {
432
432
  style: [W.modalTitle, { color: g.text }],
433
433
  children: p || c || h("renderer.defaultAutocompleteInput.selectOption")
434
- }), /* @__PURE__ */ I(V, {
434
+ }), /* @__PURE__ */ L(V, {
435
435
  onPress: S,
436
- children: /* @__PURE__ */ I(B, {
436
+ children: /* @__PURE__ */ L(B, {
437
437
  style: [W.closeButton, { color: g.textMuted }],
438
438
  children: "✕"
439
439
  })
440
440
  })]
441
441
  }),
442
- /* @__PURE__ */ I(H, {
442
+ /* @__PURE__ */ L(H, {
443
443
  style: W.searchContainer,
444
- children: /* @__PURE__ */ I(he, {
444
+ children: /* @__PURE__ */ L(_e, {
445
445
  style: [W.searchInput, {
446
446
  backgroundColor: g.muted,
447
447
  borderColor: g.border,
@@ -456,31 +456,31 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
456
456
  autoCorrect: !1
457
457
  })
458
458
  }),
459
- /* @__PURE__ */ I(ue, {
460
- data: b,
459
+ /* @__PURE__ */ L(fe, {
460
+ data: y,
461
461
  keyExtractor: (e) => e.value,
462
462
  style: W.optionsList,
463
463
  contentContainerStyle: W.optionsListContent,
464
- ListEmptyComponent: /* @__PURE__ */ I(H, {
464
+ ListEmptyComponent: /* @__PURE__ */ L(H, {
465
465
  style: W.emptyContainer,
466
- children: /* @__PURE__ */ I(B, {
466
+ children: /* @__PURE__ */ L(B, {
467
467
  style: [W.emptyText, { color: g.textMuted }],
468
468
  children: h("renderer.defaultAutocompleteInput.noResults")
469
469
  })
470
470
  }),
471
471
  renderItem: ({ item: e }) => {
472
472
  let t = e.value === s;
473
- return /* @__PURE__ */ L(V, {
473
+ return /* @__PURE__ */ R(V, {
474
474
  style: [W.option, t && { backgroundColor: g.primaryLight }],
475
475
  onPress: () => x(e.value),
476
476
  disabled: e.disabled,
477
477
  activeOpacity: .7,
478
- children: [/* @__PURE__ */ I(Ce, {
478
+ children: [/* @__PURE__ */ L(Te, {
479
479
  label: h(e.label) || e.value,
480
480
  description: h(e.description),
481
481
  image: e.image,
482
482
  disabled: e.disabled
483
- }), t && /* @__PURE__ */ I(B, {
483
+ }), t && /* @__PURE__ */ L(B, {
484
484
  style: [W.checkmark, { color: g.primary }],
485
485
  children: "✓"
486
486
  })]
@@ -491,11 +491,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
491
491
  })
492
492
  })
493
493
  }),
494
- f && /* @__PURE__ */ I(B, {
494
+ f && /* @__PURE__ */ L(B, {
495
495
  style: [W.error, { color: g.error }],
496
496
  children: f
497
497
  }),
498
- m && !f && /* @__PURE__ */ I(B, {
498
+ m && !f && /* @__PURE__ */ L(B, {
499
499
  style: [W.helperText, { color: g.textMuted }],
500
500
  children: m
501
501
  })
@@ -588,20 +588,20 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
588
588
  flex: 1,
589
589
  fontSize: 14
590
590
  }
591
- }), Ee = ({ field: e, extra: n }) => {
592
- let r = t(), { value: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = n, { colors: d } = y(), f = o.data.options || [], p = f.length > 0, m = Array.isArray(i) ? i : [], h = typeof i == "boolean" ? i : !1, g = (e) => {
591
+ }), Oe = ({ field: e, extra: t }) => {
592
+ let r = n(), { value: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = b(), f = o.data.options || [], p = f.length > 0, m = Array.isArray(i) ? i : [], h = typeof i == "boolean" ? i : !1, g = (e) => {
593
593
  s(p ? m.includes(e) ? m.filter((t) => t !== e) : [...m, e] : !h);
594
594
  }, _ = (e) => p ? m.includes(e) : h;
595
- return /* @__PURE__ */ L(H, {
595
+ return /* @__PURE__ */ R(H, {
596
596
  style: G.container,
597
597
  children: [
598
- /* @__PURE__ */ I(a, {
598
+ /* @__PURE__ */ L(a, {
599
599
  label: l,
600
600
  required: o.data.required
601
601
  }),
602
602
  f.length > 0 ? f.map((e) => {
603
603
  let t = r(e.description);
604
- return /* @__PURE__ */ L(V, {
604
+ return /* @__PURE__ */ R(V, {
605
605
  style: G.option,
606
606
  onPress: () => g(e.value),
607
607
  disabled: e.disabled,
@@ -614,7 +614,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
614
614
  },
615
615
  accessibilityLabel: r(e.label) || e.value,
616
616
  children: [
617
- /* @__PURE__ */ I(H, {
617
+ /* @__PURE__ */ L(H, {
618
618
  style: [
619
619
  G.checkbox,
620
620
  {
@@ -626,32 +626,32 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
626
626
  borderColor: d.primary
627
627
  }
628
628
  ],
629
- children: _(e.value) && /* @__PURE__ */ I(B, {
629
+ children: _(e.value) && /* @__PURE__ */ L(B, {
630
630
  style: G.checkmark,
631
631
  children: "✓"
632
632
  })
633
633
  }),
634
- e.image ? /* @__PURE__ */ I(de, {
634
+ e.image ? /* @__PURE__ */ L(pe, {
635
635
  source: { uri: e.image },
636
636
  style: G.image
637
637
  }) : null,
638
- /* @__PURE__ */ L(H, {
638
+ /* @__PURE__ */ R(H, {
639
639
  style: G.optionTextContainer,
640
- children: [/* @__PURE__ */ I(B, {
640
+ children: [/* @__PURE__ */ L(B, {
641
641
  style: [
642
642
  G.optionLabel,
643
643
  { color: d.textSecondary },
644
644
  e.disabled && { color: d.textMuted }
645
645
  ],
646
646
  children: r(e.label) || e.value
647
- }), t && /* @__PURE__ */ I(B, {
647
+ }), t && /* @__PURE__ */ L(B, {
648
648
  style: [G.optionDescription, { color: d.textMuted }],
649
649
  children: t
650
650
  })]
651
651
  })
652
652
  ]
653
653
  }, e.value);
654
- }) : /* @__PURE__ */ L(V, {
654
+ }) : /* @__PURE__ */ R(V, {
655
655
  style: G.option,
656
656
  onPress: () => g(""),
657
657
  activeOpacity: .7,
@@ -659,7 +659,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
659
659
  accessibilityRole: "checkbox",
660
660
  accessibilityState: { checked: h },
661
661
  accessibilityLabel: l || o.data.name,
662
- children: [/* @__PURE__ */ I(H, {
662
+ children: [/* @__PURE__ */ L(H, {
663
663
  style: [
664
664
  G.checkbox,
665
665
  {
@@ -671,20 +671,20 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
671
671
  borderColor: d.primary
672
672
  }
673
673
  ],
674
- children: h && /* @__PURE__ */ I(B, {
674
+ children: h && /* @__PURE__ */ L(B, {
675
675
  style: G.checkmark,
676
676
  children: "✓"
677
677
  })
678
- }), l && /* @__PURE__ */ I(B, {
678
+ }), l && /* @__PURE__ */ L(B, {
679
679
  style: [G.optionLabel, { color: d.textSecondary }],
680
680
  children: l
681
681
  })]
682
682
  }),
683
- c && /* @__PURE__ */ I(B, {
683
+ c && /* @__PURE__ */ L(B, {
684
684
  style: [G.error, { color: d.error }],
685
685
  children: c
686
686
  }),
687
- u && !c && /* @__PURE__ */ I(B, {
687
+ u && !c && /* @__PURE__ */ L(B, {
688
688
  style: [G.helperText, { color: d.textMuted }],
689
689
  children: u
690
690
  })
@@ -731,15 +731,15 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
731
731
  },
732
732
  optionLabel: { fontSize: 14 },
733
733
  optionTextContainer: { flex: 1 }
734
- }), De = ({ field: e, extra: n }) => {
735
- let [r, i] = P(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = n, { colors: p } = y(), m = t(), h = a ? new Date(a) : void 0, { year: g, month: _, today: v } = se(() => {
734
+ }), ke = ({ field: e, extra: t }) => {
735
+ let [r, i] = F(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b(), m = n(), h = a ? new Date(a) : void 0, { year: g, month: _, today: v } = ce(() => {
736
736
  let e = h || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
737
737
  return r.setHours(0, 0, 0, 0), {
738
738
  month: n,
739
739
  today: r,
740
740
  year: t
741
741
  };
742
- }, [h]), [b, x] = P(g), [S, C] = P(_), w = [
742
+ }, [h]), [y, x] = F(g), [S, C] = F(_), ee = [
743
743
  "January",
744
744
  "February",
745
745
  "March",
@@ -752,44 +752,44 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
752
752
  "October",
753
753
  "November",
754
754
  "December"
755
- ], T = se(() => {
756
- let e = new Date(b, S, 1).getDay(), t = new Date(b, S + 1, 0).getDate(), n = new Date(b, S, 0).getDate(), r = [];
755
+ ], w = ce(() => {
756
+ let e = new Date(y, S, 1).getDay(), t = new Date(y, S + 1, 0).getDate(), n = new Date(y, S, 0).getDate(), r = [];
757
757
  for (let t = e - 1; t >= 0; t--) r.push({
758
- date: new Date(b, S - 1, n - t),
758
+ date: new Date(y, S - 1, n - t),
759
759
  day: n - t,
760
760
  isCurrentMonth: !1
761
761
  });
762
762
  for (let e = 1; e <= t; e++) r.push({
763
- date: new Date(b, S, e),
763
+ date: new Date(y, S, e),
764
764
  day: e,
765
765
  isCurrentMonth: !0
766
766
  });
767
767
  let i = 42 - r.length;
768
768
  for (let e = 1; e <= i; e++) r.push({
769
- date: new Date(b, S + 1, e),
769
+ date: new Date(y, S + 1, e),
770
770
  day: e,
771
771
  isCurrentMonth: !1
772
772
  });
773
773
  return r;
774
- }, [b, S]), E = oe((e) => {
774
+ }, [y, S]), T = se((e) => {
775
775
  c.data.disablePast && e < v || (l(e.toISOString()), i(!1));
776
776
  }, [
777
777
  c.data.disablePast,
778
778
  v,
779
779
  l
780
- ]), D = () => {
781
- S === 0 ? (C(11), x(b - 1)) : C(S - 1);
782
- }, ee = () => {
783
- S === 11 ? (C(0), x(b + 1)) : C(S + 1);
784
- }, O = () => h ? h.toLocaleDateString() : o || m("renderer.defaultInputs.selectDate"), k = (e) => c.data.disablePast ? e < v : !1, A = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
785
- return /* @__PURE__ */ L(H, {
780
+ ]), te = () => {
781
+ S === 0 ? (C(11), x(y - 1)) : C(S - 1);
782
+ }, ne = () => {
783
+ S === 11 ? (C(0), x(y + 1)) : C(S + 1);
784
+ }, E = () => h ? h.toLocaleDateString() : o || m("renderer.defaultInputs.selectDate"), re = (e) => c.data.disablePast ? e < v : !1, D = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
785
+ return /* @__PURE__ */ R(H, {
786
786
  style: K.container,
787
787
  children: [
788
- /* @__PURE__ */ I(s, {
788
+ /* @__PURE__ */ L(s, {
789
789
  label: d,
790
790
  required: c.data.required
791
791
  }),
792
- /* @__PURE__ */ L(V, {
792
+ /* @__PURE__ */ R(V, {
793
793
  style: [
794
794
  K.trigger,
795
795
  {
@@ -800,76 +800,76 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
800
800
  ],
801
801
  onPress: () => i(!0),
802
802
  activeOpacity: .7,
803
- children: [/* @__PURE__ */ I(B, {
803
+ children: [/* @__PURE__ */ L(B, {
804
804
  style: [
805
805
  K.triggerText,
806
806
  { color: p.text },
807
807
  !a && { color: p.textMuted }
808
808
  ],
809
809
  numberOfLines: 1,
810
- children: O()
811
- }), /* @__PURE__ */ I(B, {
810
+ children: E()
811
+ }), /* @__PURE__ */ L(B, {
812
812
  style: K.icon,
813
813
  children: "📅"
814
814
  })]
815
815
  }),
816
- /* @__PURE__ */ I(fe, {
816
+ /* @__PURE__ */ L(me, {
817
817
  visible: r,
818
818
  transparent: !0,
819
819
  animationType: "fade",
820
820
  onRequestClose: () => i(!1),
821
- children: /* @__PURE__ */ I(V, {
821
+ children: /* @__PURE__ */ L(V, {
822
822
  style: K.modalOverlay,
823
823
  activeOpacity: 1,
824
824
  onPress: () => i(!1),
825
- children: /* @__PURE__ */ L(V, {
825
+ children: /* @__PURE__ */ R(V, {
826
826
  style: [K.modalContent, { backgroundColor: p.card }],
827
827
  activeOpacity: 1,
828
828
  onPress: () => {},
829
829
  children: [
830
- /* @__PURE__ */ L(H, {
830
+ /* @__PURE__ */ R(H, {
831
831
  style: [K.modalHeader, { borderBottomColor: p.separator }],
832
- children: [/* @__PURE__ */ I(B, {
832
+ children: [/* @__PURE__ */ L(B, {
833
833
  style: [K.modalTitle, { color: p.text }],
834
834
  children: d || o || m("renderer.defaultInputs.selectDate")
835
- }), /* @__PURE__ */ I(V, {
835
+ }), /* @__PURE__ */ L(V, {
836
836
  onPress: () => i(!1),
837
- children: /* @__PURE__ */ I(B, {
837
+ children: /* @__PURE__ */ L(B, {
838
838
  style: [K.closeButton, { color: p.textMuted }],
839
839
  children: "✕"
840
840
  })
841
841
  })]
842
842
  }),
843
- /* @__PURE__ */ L(H, {
843
+ /* @__PURE__ */ R(H, {
844
844
  style: K.calendarHeader,
845
845
  children: [
846
- /* @__PURE__ */ I(V, {
847
- onPress: D,
846
+ /* @__PURE__ */ L(V, {
847
+ onPress: te,
848
848
  style: K.navButton,
849
- children: /* @__PURE__ */ I(B, {
849
+ children: /* @__PURE__ */ L(B, {
850
850
  style: [K.navButtonText, { color: p.primary }],
851
851
  children: "‹"
852
852
  })
853
853
  }),
854
- /* @__PURE__ */ L(B, {
854
+ /* @__PURE__ */ R(B, {
855
855
  style: [K.monthYear, { color: p.text }],
856
856
  children: [
857
- w[S],
857
+ ee[S],
858
858
  " ",
859
- b
859
+ y
860
860
  ]
861
861
  }),
862
- /* @__PURE__ */ I(V, {
863
- onPress: ee,
862
+ /* @__PURE__ */ L(V, {
863
+ onPress: ne,
864
864
  style: K.navButton,
865
- children: /* @__PURE__ */ I(B, {
865
+ children: /* @__PURE__ */ L(B, {
866
866
  style: [K.navButtonText, { color: p.primary }],
867
867
  children: "›"
868
868
  })
869
869
  })
870
870
  ]
871
871
  }),
872
- /* @__PURE__ */ I(H, {
872
+ /* @__PURE__ */ L(H, {
873
873
  style: K.weekDays,
874
874
  children: [
875
875
  "Sun",
@@ -879,21 +879,21 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
879
879
  "Thu",
880
880
  "Fri",
881
881
  "Sat"
882
- ].map((e) => /* @__PURE__ */ I(B, {
882
+ ].map((e) => /* @__PURE__ */ L(B, {
883
883
  style: [K.weekDay, { color: p.textMuted }],
884
884
  children: e
885
885
  }, e))
886
886
  }),
887
- /* @__PURE__ */ I(ue, {
888
- data: T,
887
+ /* @__PURE__ */ L(fe, {
888
+ data: w,
889
889
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
890
890
  numColumns: 7,
891
891
  scrollEnabled: !1,
892
892
  style: K.calendar,
893
893
  contentContainerStyle: K.calendarContent,
894
894
  renderItem: ({ item: e }) => {
895
- let t = k(e.date), n = A(e.date);
896
- return /* @__PURE__ */ I(V, {
895
+ let t = re(e.date), n = D(e.date);
896
+ return /* @__PURE__ */ L(V, {
897
897
  style: [
898
898
  K.dayCell,
899
899
  !e.isCurrentMonth && K.dayCellOtherMonth,
@@ -903,10 +903,10 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
903
903
  },
904
904
  t && K.dayCellDisabled
905
905
  ],
906
- onPress: () => E(e.date),
906
+ onPress: () => T(e.date),
907
907
  disabled: t,
908
908
  activeOpacity: .7,
909
- children: /* @__PURE__ */ I(B, {
909
+ children: /* @__PURE__ */ L(B, {
910
910
  style: [
911
911
  K.dayText,
912
912
  { color: p.text },
@@ -926,11 +926,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
926
926
  })
927
927
  })
928
928
  }),
929
- u && /* @__PURE__ */ I(B, {
929
+ u && /* @__PURE__ */ L(B, {
930
930
  style: [K.error, { color: p.error }],
931
931
  children: u
932
932
  }),
933
- f && !u && /* @__PURE__ */ I(B, {
933
+ f && !u && /* @__PURE__ */ L(B, {
934
934
  style: [K.helperText, { color: p.textMuted }],
935
935
  children: f
936
936
  })
@@ -1031,15 +1031,15 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1031
1031
  flexDirection: "row",
1032
1032
  marginBottom: 8
1033
1033
  }
1034
- }), Oe = ({ field: e, extra: n }) => {
1035
- let [r, i] = P(!1), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = n, m = t(), { colors: h } = y(), g = Array.isArray(s) ? s : [], _ = g[0] ? new Date(g[0]) : void 0, v = g[1] ? new Date(g[1]) : void 0, { year: b, month: x, today: S } = se(() => {
1034
+ }), Ae = ({ field: e, extra: t }) => {
1035
+ let [r, i] = F(!1), [a, o] = F(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, m = n(), { colors: h } = b(), g = Array.isArray(s) ? s : [], _ = g[0] ? new Date(g[0]) : void 0, v = g[1] ? new Date(g[1]) : void 0, { year: y, month: x, today: S } = ce(() => {
1036
1036
  let e = _ || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
1037
1037
  return r.setHours(0, 0, 0, 0), {
1038
1038
  month: n,
1039
1039
  today: r,
1040
1040
  year: t
1041
1041
  };
1042
- }, [_]), [C, w] = P(b), [T, E] = P(x), D = [
1042
+ }, [_]), [C, ee] = F(y), [w, T] = F(x), te = [
1043
1043
  "January",
1044
1044
  "February",
1045
1045
  "March",
@@ -1052,26 +1052,26 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1052
1052
  "October",
1053
1053
  "November",
1054
1054
  "December"
1055
- ], ee = se(() => {
1056
- let e = new Date(C, T, 1).getDay(), t = new Date(C, T + 1, 0).getDate(), n = new Date(C, T, 0).getDate(), r = [];
1055
+ ], ne = ce(() => {
1056
+ let e = new Date(C, w, 1).getDay(), t = new Date(C, w + 1, 0).getDate(), n = new Date(C, w, 0).getDate(), r = [];
1057
1057
  for (let t = e - 1; t >= 0; t--) r.push({
1058
- date: new Date(C, T - 1, n - t),
1058
+ date: new Date(C, w - 1, n - t),
1059
1059
  day: n - t,
1060
1060
  isCurrentMonth: !1
1061
1061
  });
1062
1062
  for (let e = 1; e <= t; e++) r.push({
1063
- date: new Date(C, T, e),
1063
+ date: new Date(C, w, e),
1064
1064
  day: e,
1065
1065
  isCurrentMonth: !0
1066
1066
  });
1067
1067
  let i = 42 - r.length;
1068
1068
  for (let e = 1; e <= i; e++) r.push({
1069
- date: new Date(C, T + 1, e),
1069
+ date: new Date(C, w + 1, e),
1070
1070
  day: e,
1071
1071
  isCurrentMonth: !1
1072
1072
  });
1073
1073
  return r;
1074
- }, [C, T]), O = oe((e) => {
1074
+ }, [C, w]), E = se((e) => {
1075
1075
  l.data.disablePast && e < S || (a ? (u([e.toISOString(), v?.toISOString()]), o(!1)) : (u(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), i(!1), o(!0)));
1076
1076
  }, [
1077
1077
  l.data.disablePast,
@@ -1080,23 +1080,23 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1080
1080
  _,
1081
1081
  v,
1082
1082
  u
1083
- ]), k = () => {
1084
- T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1085
- }, A = () => {
1086
- T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1087
- }, te = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), ne = (e) => l.data.disablePast ? e < S : !1, re = (e) => _ && v ? e >= _ && e <= v : !1, ie = (e) => {
1083
+ ]), re = () => {
1084
+ w === 0 ? (T(11), ee(C - 1)) : T(w - 1);
1085
+ }, D = () => {
1086
+ w === 11 ? (T(0), ee(C + 1)) : T(w + 1);
1087
+ }, O = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), k = (e) => l.data.disablePast ? e < S : !1, A = (e) => _ && v ? e >= _ && e <= v : !1, ie = (e) => {
1088
1088
  if (!(_ || v)) return !1;
1089
1089
  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();
1090
1090
  return t || n;
1091
1091
  };
1092
- return /* @__PURE__ */ L(H, {
1092
+ return /* @__PURE__ */ R(H, {
1093
1093
  style: q.container,
1094
1094
  children: [
1095
- /* @__PURE__ */ I(c, {
1095
+ /* @__PURE__ */ L(c, {
1096
1096
  label: f,
1097
1097
  required: l.data.required
1098
1098
  }),
1099
- /* @__PURE__ */ L(V, {
1099
+ /* @__PURE__ */ R(V, {
1100
1100
  style: [
1101
1101
  q.trigger,
1102
1102
  {
@@ -1107,83 +1107,83 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1107
1107
  ],
1108
1108
  onPress: () => i(!0),
1109
1109
  activeOpacity: .7,
1110
- children: [/* @__PURE__ */ I(B, {
1110
+ children: [/* @__PURE__ */ L(B, {
1111
1111
  style: [
1112
1112
  q.triggerText,
1113
1113
  { color: h.text },
1114
1114
  !_ && { color: h.textMuted }
1115
1115
  ],
1116
1116
  numberOfLines: 1,
1117
- children: te()
1118
- }), /* @__PURE__ */ I(B, {
1117
+ children: O()
1118
+ }), /* @__PURE__ */ L(B, {
1119
1119
  style: q.icon,
1120
1120
  children: "📅"
1121
1121
  })]
1122
1122
  }),
1123
- /* @__PURE__ */ I(fe, {
1123
+ /* @__PURE__ */ L(me, {
1124
1124
  visible: r,
1125
1125
  transparent: !0,
1126
1126
  animationType: "fade",
1127
1127
  onRequestClose: () => i(!1),
1128
- children: /* @__PURE__ */ I(V, {
1128
+ children: /* @__PURE__ */ L(V, {
1129
1129
  style: q.modalOverlay,
1130
1130
  activeOpacity: 1,
1131
1131
  onPress: () => i(!1),
1132
- children: /* @__PURE__ */ L(V, {
1132
+ children: /* @__PURE__ */ R(V, {
1133
1133
  style: [q.modalContent, { backgroundColor: h.card }],
1134
1134
  activeOpacity: 1,
1135
1135
  onPress: () => {},
1136
1136
  children: [
1137
- /* @__PURE__ */ L(H, {
1137
+ /* @__PURE__ */ R(H, {
1138
1138
  style: [q.modalHeader, { borderBottomColor: h.separator }],
1139
- children: [/* @__PURE__ */ I(B, {
1139
+ children: [/* @__PURE__ */ L(B, {
1140
1140
  style: [q.modalTitle, { color: h.text }],
1141
1141
  children: f || m("renderer.defaultInputs.selectDateRange")
1142
- }), /* @__PURE__ */ I(V, {
1142
+ }), /* @__PURE__ */ L(V, {
1143
1143
  onPress: () => i(!1),
1144
- children: /* @__PURE__ */ I(B, {
1144
+ children: /* @__PURE__ */ L(B, {
1145
1145
  style: [q.closeButton, { color: h.textMuted }],
1146
1146
  children: "✕"
1147
1147
  })
1148
1148
  })]
1149
1149
  }),
1150
- /* @__PURE__ */ I(H, {
1150
+ /* @__PURE__ */ L(H, {
1151
1151
  style: [q.rangeIndicator, { backgroundColor: h.primaryLight }],
1152
- children: /* @__PURE__ */ I(B, {
1152
+ children: /* @__PURE__ */ L(B, {
1153
1153
  style: [q.rangeIndicatorText, { color: h.primary }],
1154
1154
  children: m(a ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
1155
1155
  })
1156
1156
  }),
1157
- /* @__PURE__ */ L(H, {
1157
+ /* @__PURE__ */ R(H, {
1158
1158
  style: q.calendarHeader,
1159
1159
  children: [
1160
- /* @__PURE__ */ I(V, {
1161
- onPress: k,
1160
+ /* @__PURE__ */ L(V, {
1161
+ onPress: re,
1162
1162
  style: q.navButton,
1163
- children: /* @__PURE__ */ I(B, {
1163
+ children: /* @__PURE__ */ L(B, {
1164
1164
  style: [q.navButtonText, { color: h.primary }],
1165
1165
  children: "‹"
1166
1166
  })
1167
1167
  }),
1168
- /* @__PURE__ */ L(B, {
1168
+ /* @__PURE__ */ R(B, {
1169
1169
  style: [q.monthYear, { color: h.text }],
1170
1170
  children: [
1171
- D[T],
1171
+ te[w],
1172
1172
  " ",
1173
1173
  C
1174
1174
  ]
1175
1175
  }),
1176
- /* @__PURE__ */ I(V, {
1177
- onPress: A,
1176
+ /* @__PURE__ */ L(V, {
1177
+ onPress: D,
1178
1178
  style: q.navButton,
1179
- children: /* @__PURE__ */ I(B, {
1179
+ children: /* @__PURE__ */ L(B, {
1180
1180
  style: [q.navButtonText, { color: h.primary }],
1181
1181
  children: "›"
1182
1182
  })
1183
1183
  })
1184
1184
  ]
1185
1185
  }),
1186
- /* @__PURE__ */ I(H, {
1186
+ /* @__PURE__ */ L(H, {
1187
1187
  style: q.weekDays,
1188
1188
  children: [
1189
1189
  "Sun",
@@ -1193,21 +1193,21 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1193
1193
  "Thu",
1194
1194
  "Fri",
1195
1195
  "Sat"
1196
- ].map((e) => /* @__PURE__ */ I(B, {
1196
+ ].map((e) => /* @__PURE__ */ L(B, {
1197
1197
  style: [q.weekDay, { color: h.textMuted }],
1198
1198
  children: e
1199
1199
  }, e))
1200
1200
  }),
1201
- /* @__PURE__ */ I(ue, {
1202
- data: ee,
1201
+ /* @__PURE__ */ L(fe, {
1202
+ data: ne,
1203
1203
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
1204
1204
  numColumns: 7,
1205
1205
  scrollEnabled: !1,
1206
1206
  style: q.calendar,
1207
1207
  contentContainerStyle: q.calendarContent,
1208
1208
  renderItem: ({ item: e }) => {
1209
- let t = ne(e.date), n = re(e.date), r = ie(e.date);
1210
- return /* @__PURE__ */ I(V, {
1209
+ let t = k(e.date), n = A(e.date), r = ie(e.date);
1210
+ return /* @__PURE__ */ L(V, {
1211
1211
  style: [
1212
1212
  q.dayCell,
1213
1213
  !e.isCurrentMonth && q.dayCellOtherMonth,
@@ -1218,10 +1218,10 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1218
1218
  },
1219
1219
  t && q.dayCellDisabled
1220
1220
  ],
1221
- onPress: () => O(e.date),
1221
+ onPress: () => E(e.date),
1222
1222
  disabled: t,
1223
1223
  activeOpacity: .7,
1224
- children: /* @__PURE__ */ I(B, {
1224
+ children: /* @__PURE__ */ L(B, {
1225
1225
  style: [
1226
1226
  q.dayText,
1227
1227
  { color: h.text },
@@ -1242,11 +1242,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1242
1242
  })
1243
1243
  })
1244
1244
  }),
1245
- d && /* @__PURE__ */ I(B, {
1245
+ d && /* @__PURE__ */ L(B, {
1246
1246
  style: [q.error, { color: h.error }],
1247
1247
  children: d
1248
1248
  }),
1249
- p && !d && /* @__PURE__ */ I(B, {
1249
+ p && !d && /* @__PURE__ */ L(B, {
1250
1250
  style: [q.helperText, { color: h.textMuted }],
1251
1251
  children: p
1252
1252
  })
@@ -1357,8 +1357,8 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1357
1357
  flexDirection: "row",
1358
1358
  marginBottom: 8
1359
1359
  }
1360
- }), ke = ({ field: e, extra: n }) => {
1361
- let [r, i] = P(null), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: u, setValue: d, error: f, label: p, helperText: m } = n, { colors: h } = y(), g = t(), _ = D(s), v = u.data.multiple, b = oe(async () => {
1360
+ }), je = ({ field: e, extra: t }) => {
1361
+ let [r, i] = F(null), [a, o] = F(!0), { value: s } = e, { InputLabel: c, node: l, setValue: d, error: f, label: p, helperText: m } = t, { colors: h } = b(), g = n(), _ = E(s), v = l.data.multiple, y = se(async () => {
1362
1362
  if (r) try {
1363
1363
  let e = (await r({ allowMultiSelection: v })).map((e) => ({
1364
1364
  data: e.uri,
@@ -1369,7 +1369,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1369
1369
  }));
1370
1370
  d(v ? [..._, ...e] : e[0] || null);
1371
1371
  } catch (e) {
1372
- e.code !== "DOCUMENT_PICKER_CANCELED" && R.alert("Error", g("renderer.defaultInputs.filePickerError"));
1372
+ e.code !== "DOCUMENT_PICKER_CANCELED" && ue.alert("Error", g("renderer.defaultInputs.filePickerError"));
1373
1373
  }
1374
1374
  }, [
1375
1375
  r,
@@ -1377,11 +1377,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1377
1377
  v,
1378
1378
  d,
1379
1379
  g
1380
- ]), x = oe((e) => {
1380
+ ]), x = se((e) => {
1381
1381
  let t = _.filter((t, n) => n !== e);
1382
1382
  d(t.length > 0 ? t : null);
1383
1383
  }, [_, d]);
1384
- return M(() => {
1384
+ return N(() => {
1385
1385
  (async () => {
1386
1386
  try {
1387
1387
  let { pick: e } = await import("react-native-document-picker");
@@ -1392,45 +1392,45 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1392
1392
  o(!1);
1393
1393
  }
1394
1394
  })();
1395
- }, []), a ? null : r ? /* @__PURE__ */ L(H, {
1395
+ }, []), a ? null : r ? /* @__PURE__ */ R(H, {
1396
1396
  style: J.container,
1397
1397
  children: [
1398
- /* @__PURE__ */ I(c, {
1398
+ /* @__PURE__ */ L(c, {
1399
1399
  label: p,
1400
- required: u.data.required
1400
+ required: l.data.required
1401
1401
  }),
1402
- _.length > 0 && /* @__PURE__ */ I(H, {
1402
+ _.length > 0 && /* @__PURE__ */ L(H, {
1403
1403
  style: J.filesList,
1404
- children: _.map((e, t) => /* @__PURE__ */ L(H, {
1404
+ children: _.map((e, t) => /* @__PURE__ */ R(H, {
1405
1405
  style: [J.fileItem, {
1406
1406
  backgroundColor: h.card,
1407
1407
  borderColor: h.separator
1408
1408
  }],
1409
1409
  children: [
1410
- /* @__PURE__ */ I(H, {
1410
+ /* @__PURE__ */ L(H, {
1411
1411
  style: [J.fileIcon, { backgroundColor: h.muted }],
1412
- children: /* @__PURE__ */ I(B, {
1412
+ children: /* @__PURE__ */ L(B, {
1413
1413
  style: J.fileIconText,
1414
1414
  children: "📄"
1415
1415
  })
1416
1416
  }),
1417
- /* @__PURE__ */ L(H, {
1417
+ /* @__PURE__ */ R(H, {
1418
1418
  style: J.fileInfo,
1419
- children: [/* @__PURE__ */ I(B, {
1419
+ children: [/* @__PURE__ */ L(B, {
1420
1420
  style: [J.fileName, { color: h.text }],
1421
1421
  numberOfLines: 1,
1422
1422
  children: e.name
1423
- }), e.size > 0 && /* @__PURE__ */ I(B, {
1423
+ }), e.size > 0 && /* @__PURE__ */ L(B, {
1424
1424
  style: [J.fileSize, { color: h.textMuted }],
1425
- children: l(e.size)
1425
+ children: u(e.size)
1426
1426
  })]
1427
1427
  }),
1428
- /* @__PURE__ */ I(V, {
1428
+ /* @__PURE__ */ L(V, {
1429
1429
  style: J.removeButton,
1430
1430
  onPress: () => x(t),
1431
1431
  activeOpacity: .7,
1432
1432
  accessibilityLabel: g("renderer.defaultInputs.removeFile"),
1433
- children: /* @__PURE__ */ I(B, {
1433
+ children: /* @__PURE__ */ L(B, {
1434
1434
  style: [J.removeButtonText, { color: h.textMuted }],
1435
1435
  children: "✕"
1436
1436
  })
@@ -1438,45 +1438,45 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1438
1438
  ]
1439
1439
  }, `${e.name}-${t}`))
1440
1440
  }),
1441
- /* @__PURE__ */ I(V, {
1441
+ /* @__PURE__ */ L(V, {
1442
1442
  style: [J.pickButton, {
1443
1443
  backgroundColor: h.input,
1444
1444
  borderColor: h.border
1445
1445
  }],
1446
- onPress: b,
1446
+ onPress: y,
1447
1447
  activeOpacity: .7,
1448
- children: /* @__PURE__ */ I(B, {
1448
+ children: /* @__PURE__ */ L(B, {
1449
1449
  style: [J.pickButtonText, { color: h.textMuted }],
1450
1450
  children: _.length === 0 ? g(v ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : g(v ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
1451
1451
  })
1452
1452
  }),
1453
- f && /* @__PURE__ */ I(B, {
1453
+ f && /* @__PURE__ */ L(B, {
1454
1454
  style: [J.error, { color: h.error }],
1455
1455
  children: f
1456
1456
  }),
1457
- m && !f && /* @__PURE__ */ I(B, {
1457
+ m && !f && /* @__PURE__ */ L(B, {
1458
1458
  style: [J.helperText, { color: h.textMuted }],
1459
1459
  children: m
1460
1460
  })
1461
1461
  ]
1462
- }) : /* @__PURE__ */ L(H, {
1462
+ }) : /* @__PURE__ */ R(H, {
1463
1463
  style: J.container,
1464
1464
  children: [
1465
- /* @__PURE__ */ I(c, {
1465
+ /* @__PURE__ */ L(c, {
1466
1466
  label: p,
1467
- required: u.data.required
1467
+ required: l.data.required
1468
1468
  }),
1469
- /* @__PURE__ */ I(H, {
1469
+ /* @__PURE__ */ L(H, {
1470
1470
  style: [J.unavailableContainer, {
1471
1471
  backgroundColor: h.errorLight,
1472
1472
  borderColor: h.error
1473
1473
  }],
1474
- children: /* @__PURE__ */ I(B, {
1474
+ children: /* @__PURE__ */ L(B, {
1475
1475
  style: [J.unavailableText, { color: h.error }],
1476
1476
  children: g("renderer.defaultInputs.filePickerUnavailable")
1477
1477
  })
1478
1478
  }),
1479
- m && /* @__PURE__ */ I(B, {
1479
+ m && /* @__PURE__ */ L(B, {
1480
1480
  style: [J.helperText, { color: h.textMuted }],
1481
1481
  children: m
1482
1482
  })
@@ -1546,15 +1546,15 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1546
1546
  fontSize: 12,
1547
1547
  textAlign: "center"
1548
1548
  }
1549
- }), Ae = (e) => null, je = ({ missing: e, children: n }) => {
1550
- let r = t(), { colors: i } = y();
1551
- return /* @__PURE__ */ L(F, { children: [n, e.length > 0 && /* @__PURE__ */ L(H, {
1552
- style: Me.container,
1553
- children: [/* @__PURE__ */ I(B, {
1554
- style: [Me.title, { color: i.textMuted }],
1549
+ }), Me = (e) => null, Ne = ({ missing: e, children: t }) => {
1550
+ let r = n(), { colors: i } = b();
1551
+ return /* @__PURE__ */ R(I, { children: [t, e.length > 0 && /* @__PURE__ */ R(H, {
1552
+ style: Pe.container,
1553
+ children: [/* @__PURE__ */ L(B, {
1554
+ style: [Pe.title, { color: i.textMuted }],
1555
1555
  children: r("renderer.dependencyHint.title")
1556
- }), e.map((e) => /* @__PURE__ */ L(B, {
1557
- style: [Me.item, { color: i.textMuted }],
1556
+ }), e.map((e) => /* @__PURE__ */ R(B, {
1557
+ style: [Pe.item, { color: i.textMuted }],
1558
1558
  children: [
1559
1559
  "•",
1560
1560
  " ",
@@ -1562,7 +1562,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1562
1562
  ]
1563
1563
  }, e.id))]
1564
1564
  })] });
1565
- }, Me = z.create({
1565
+ }, Pe = z.create({
1566
1566
  container: {
1567
1567
  gap: 2,
1568
1568
  marginTop: 4
@@ -1572,187 +1572,174 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1572
1572
  fontSize: 12,
1573
1573
  fontWeight: "500"
1574
1574
  }
1575
- }), Ne = (e) => e.replace(/<[^>]*>/g, ""), Pe = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), Fe = (e, t = {}) => e == null || e === "" ? "" : Pe(Ne(String(e))), Ie = 100, Le = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1576
- if (n > Ie) return console.warn(`sanitizeHttpResponse: Maximum depth (${Ie}) exceeded.`), typeof e == "string" ? Fe(e, t) : "[Max Depth Exceeded]";
1577
- if (e == null) return e;
1578
- if (typeof e == "string") return Fe(e, t);
1579
- if (Array.isArray(e)) return e.map((e) => Le(e, t, n + 1, r));
1580
- if (typeof e == "object") {
1581
- if (r.has(e)) return console.warn("sanitizeHttpResponse: Circular reference detected. Breaking cycle to prevent infinite recursion."), "[Circular Reference]";
1582
- r.add(e);
1583
- let i = {};
1584
- for (let [a, o] of Object.entries(e)) i[a] = Le(o, t, n + 1, r);
1585
- return r.delete(e), i;
1586
- }
1587
- return e;
1588
- }, Re = (e) => {
1575
+ }), Fe = (e) => {
1589
1576
  let t = e.matchAll(/{{([\w-]+)}}/g);
1590
1577
  return Array.from(t, (e) => e[1]);
1591
- }, ze = (e, t) => Re(e).every((e) => {
1578
+ }, Ie = (e, t) => Fe(e).every((e) => {
1592
1579
  let n = t[e];
1593
1580
  return n != null && n !== "";
1594
- }), Be = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1581
+ }), Le = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1595
1582
  let i = t[r], a = i == null ? "" : String(i);
1596
1583
  return n ? encodeURIComponent(a) : a;
1597
- }), Ve = ({ field: n, extra: r }) => {
1598
- let [s, l] = P(!1), [u, d] = P(null), [f, p] = P([]), [m, h] = P(""), [_, v] = P(!1), { value: b, placeholder: x } = n, { InputLabel: C, node: w, setValue: D, error: O, label: k, helperText: A, missingDependencies: te } = r, { formValues: ne, inputNodes: re, headers: ie, baseUrl: ae } = ee(), { colors: j } = y(), { httpConfig: F } = w.data, R = t(), le = N(!1), de = N(!1), pe = N(""), z = N(F), me = N(ne), ge = N(re), _e = N(ie), ve = N(ae), ye = N(D), be = N(null), xe = N(null), Se = N(w.data.normalizeOptionLabels !== !1), U = se(() => F?.url ? Re(F.url) : [], [F?.url]), we = U.length > 0, Te = se(() => U.map((e) => `${e}:${String(ne[e] ?? "")}`).join("|"), [U, ne]), W = se(() => F?.url ? we ? ze(F.url, ne) : !0 : !1, [
1599
- F?.url,
1600
- we,
1601
- ne
1602
- ]), Ee = oe(async (t) => {
1603
- xe.current && xe.current.abort();
1584
+ }), Re = ({ field: e, extra: o }) => {
1585
+ let [l, u] = F(!1), [d, f] = F(null), [p, m] = F([]), [h, g] = F(""), [v, y] = F(!1), { value: x, placeholder: S } = e, { InputLabel: C, node: w, setValue: T, error: E, label: D, helperText: O, missingDependencies: k } = o, { formValues: A, inputNodes: ie, headers: ae, baseUrl: oe } = c(), { colors: j } = b(), { httpConfig: M } = w.data, I = n(), ue = P(!1), de = P(!1), pe = P(""), he = P(M), z = P(A), ge = P(ie), ve = P(ae), ye = P(oe), be = P(T), xe = P(null), Se = P(null), Ce = P(w.data.normalizeOptionLabels !== !1), we = ce(() => M?.url ? Fe(M.url) : [], [M?.url]), U = we.length > 0, Ee = ce(() => we.map((e) => `${e}:${String(A[e] ?? "")}`).join("|"), [we, A]), De = ce(() => M?.url ? U ? Ie(M.url, A) : !0 : !1, [
1586
+ M?.url,
1587
+ U,
1588
+ A
1589
+ ]), W = se(async (e) => {
1590
+ Se.current && Se.current.abort();
1604
1591
  let n = new AbortController();
1605
- xe.current = n;
1606
- let r = z.current, s = me.current, u = ye.current;
1607
- if (!r?.url) {
1608
- d(R("renderer.defaultHttpInput.noUrlConfigured")), xe.current = null;
1592
+ Se.current = n;
1593
+ let o = he.current, c = z.current, l = be.current;
1594
+ if (!o?.url) {
1595
+ f(I("renderer.defaultHttpInput.noUrlConfigured")), Se.current = null;
1609
1596
  return;
1610
1597
  }
1611
- if (r.url && !ze(r.url, s)) {
1612
- xe.current = null;
1598
+ if (o.url && !Ie(o.url, c)) {
1599
+ Se.current = null;
1613
1600
  return;
1614
1601
  }
1615
- l(!0), d(null);
1602
+ u(!0), f(null);
1616
1603
  try {
1617
- let l = a(Be(r.url, s, !0), ve.current), f = c(r.searchParam && t ? `${l}${l.includes("?") ? "&" : "?"}${r.searchParam}=${encodeURIComponent(t)}` : l, i(r.queryParams, s)), m = g({ "Content-Type": "application/json" }, i(_e.current, s), i(r.headers, s)), h = [
1604
+ let u = i(Le(o.url, c, !0), ye.current), d = s(o.searchParam && e ? `${u}${u.includes("?") ? "&" : "?"}${o.searchParam}=${encodeURIComponent(e)}` : u, r(o.queryParams, c)), p = _({ "Content-Type": "application/json" }, r(ve.current, c), r(o.headers, c)), h = [
1618
1605
  "POST",
1619
1606
  "PUT",
1620
1607
  "PATCH"
1621
- ].includes(r.method || "") ? r.sendAllFormValues ? JSON.stringify(S(s, ge.current)) : T(r.body, s, ge.current) : void 0, _ = setTimeout(() => n.abort(), 3e4), v = await fetch(f, {
1608
+ ].includes(o.method || "") ? o.sendAllFormValues ? JSON.stringify(ee(c, ge.current)) : te(o.body, c, ge.current) : void 0, g = setTimeout(() => n.abort(), 3e4), v = await fetch(d, {
1622
1609
  body: h || void 0,
1623
- headers: Object.fromEntries(Object.entries(m).filter(([, e]) => e)),
1624
- method: r.method || "GET",
1610
+ headers: Object.fromEntries(Object.entries(p).filter(([, e]) => e)),
1611
+ method: o.method || "GET",
1625
1612
  signal: n.signal
1626
1613
  });
1627
- if (clearTimeout(_), !v.ok) {
1628
- d(`HTTP Error ${v.status}: ${v.statusText}`);
1614
+ if (clearTimeout(g), !v.ok) {
1615
+ f(`HTTP Error ${v.status}: ${v.statusText}`);
1629
1616
  return;
1630
1617
  }
1631
- let y = o(await v.text());
1618
+ let y = a(await v.text());
1632
1619
  if (!y.ok) {
1633
- d(R("renderer.defaultHttpInput.invalidJson"));
1620
+ f(I("renderer.defaultHttpInput.invalidJson"));
1634
1621
  return;
1635
1622
  }
1636
- let b = Le(y.value), x = r.responsePath ? e(b, r.responsePath) : b;
1637
- if (r.responseMapping && Array.isArray(x)) {
1638
- let { valueField: t = "value", labelField: n = "label", descriptionField: i, imageField: a } = r.responseMapping, o = Se.current;
1639
- p(x.map((r) => {
1640
- let s = i ? e(r, i) : void 0, c = a ? e(r, a) : void 0, l = String(e(r, n) || "");
1623
+ let b = re(y.value), x = o.responsePath ? t(b, o.responsePath) : b;
1624
+ if (o.responseMapping && Array.isArray(x)) {
1625
+ let { valueField: e = "value", labelField: n = "label", descriptionField: r, imageField: i } = o.responseMapping, a = Ce.current;
1626
+ m(x.map((o) => {
1627
+ let s = r ? t(o, r) : void 0, c = i ? t(o, i) : void 0, l = String(t(o, n) || "");
1641
1628
  return {
1642
1629
  description: s != null && s !== "" ? String(s) : void 0,
1643
1630
  image: typeof c == "string" && c !== "" ? c : void 0,
1644
- label: o ? E(l) : l,
1645
- value: String(e(r, t) || "")
1631
+ label: a ? ne(l) : l,
1632
+ value: String(t(o, e) || "")
1646
1633
  };
1647
1634
  }));
1648
- } else u(typeof x == "string" ? x : JSON.stringify(x));
1635
+ } else l(typeof x == "string" ? x : JSON.stringify(x));
1649
1636
  } catch (e) {
1650
1637
  if (e instanceof Error && e.name === "AbortError") return;
1651
- d(e instanceof Error ? e.message : R("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1638
+ f(e instanceof Error ? e.message : I("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1652
1639
  } finally {
1653
- xe.current === n && (l(!1), xe.current = null);
1640
+ Se.current === n && (u(!1), Se.current = null);
1654
1641
  }
1655
- }, [R]);
1656
- if (M(() => {
1657
- z.current = F, me.current = ne, ge.current = re, _e.current = ie, ve.current = ae, ye.current = D, be.current = Ee, Se.current = w.data.normalizeOptionLabels !== !1;
1642
+ }, [I]);
1643
+ if (N(() => {
1644
+ he.current = M, z.current = A, ge.current = ie, ve.current = ae, ye.current = oe, be.current = T, xe.current = W, Ce.current = w.data.normalizeOptionLabels !== !1;
1658
1645
  }, [
1659
- F,
1660
- ne,
1661
- re,
1646
+ M,
1647
+ A,
1662
1648
  ie,
1663
1649
  ae,
1664
- D,
1665
- Ee,
1650
+ oe,
1651
+ T,
1652
+ W,
1666
1653
  w.data.normalizeOptionLabels
1667
- ]), M(() => () => {
1668
- xe.current && xe.current.abort(), le.current = !1, de.current = !1;
1669
- }, []), M(() => {
1670
- if (le.current) return;
1671
- le.current = !0;
1672
- let e = z.current, t = me.current, n = be.current, r = e?.url && ze(e.url, t);
1673
- e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Re(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1674
- }, []), M(() => {
1675
- if (!le.current || !we || pe.current === Te || !W) return;
1654
+ ]), N(() => () => {
1655
+ Se.current && Se.current.abort(), ue.current = !1, de.current = !1;
1656
+ }, []), N(() => {
1657
+ if (ue.current) return;
1658
+ ue.current = !0;
1659
+ let e = he.current, t = z.current, n = xe.current, r = e?.url && Ie(e.url, t);
1660
+ e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Fe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1661
+ }, []), N(() => {
1662
+ if (!ue.current || !U || pe.current === Ee || !De) return;
1676
1663
  let e = setTimeout(() => {
1677
- Ee(), pe.current = Te;
1664
+ W(), pe.current = Ee;
1678
1665
  }, 500);
1679
1666
  return () => clearTimeout(e);
1680
1667
  }, [
1681
- Te,
1682
- we,
1683
- W,
1684
- Ee
1685
- ]), M(() => {
1668
+ Ee,
1669
+ U,
1670
+ De,
1671
+ W
1672
+ ]), N(() => {
1686
1673
  if (!de.current) {
1687
1674
  de.current = !0;
1688
1675
  return;
1689
1676
  }
1690
- let e = z.current, t = me.current, n = be.current, r = e?.url && ze(e.url, t);
1691
- e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Re(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1692
- }, [se(() => JSON.stringify({
1693
- body: F?.body,
1694
- fetchOnMount: F?.fetchOnMount,
1695
- headers: F?.headers,
1696
- method: F?.method,
1697
- queryParams: F?.queryParams,
1698
- responseMapping: F?.responseMapping,
1699
- responsePath: F?.responsePath,
1700
- searchParam: F?.searchParam,
1701
- sendAllFormValues: F?.sendAllFormValues,
1702
- url: F?.url
1703
- }), [F])]), M(() => {
1704
- if (!(F?.searchParam && m)) return;
1677
+ let e = he.current, t = z.current, n = xe.current, r = e?.url && Ie(e.url, t);
1678
+ e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Fe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1679
+ }, [ce(() => JSON.stringify({
1680
+ body: M?.body,
1681
+ fetchOnMount: M?.fetchOnMount,
1682
+ headers: M?.headers,
1683
+ method: M?.method,
1684
+ queryParams: M?.queryParams,
1685
+ responseMapping: M?.responseMapping,
1686
+ responsePath: M?.responsePath,
1687
+ searchParam: M?.searchParam,
1688
+ sendAllFormValues: M?.sendAllFormValues,
1689
+ url: M?.url
1690
+ }), [M])]), N(() => {
1691
+ if (!(M?.searchParam && h)) return;
1705
1692
  let e = setTimeout(() => {
1706
- Ee(m);
1693
+ W(h);
1707
1694
  }, 300);
1708
1695
  return () => clearTimeout(e);
1709
1696
  }, [
1710
- m,
1711
- F?.searchParam,
1712
- Ee
1713
- ]), F?.responseMapping) {
1714
- let e = Array.isArray(b) ? b[0] : b, t = f.find((t) => t.value === e);
1715
- if (F.searchParam) {
1716
- let n = s && F?.showLoading;
1717
- return /* @__PURE__ */ L(H, {
1697
+ h,
1698
+ M?.searchParam,
1699
+ W
1700
+ ]), M?.responseMapping) {
1701
+ let e = Array.isArray(x) ? x[0] : x, t = p.find((t) => t.value === e);
1702
+ if (M.searchParam) {
1703
+ let n = l && M?.showLoading;
1704
+ return /* @__PURE__ */ R(H, {
1718
1705
  style: Y.container,
1719
1706
  children: [
1720
- /* @__PURE__ */ I(C, {
1721
- label: k,
1707
+ /* @__PURE__ */ L(C, {
1708
+ label: D,
1722
1709
  required: w.data.required
1723
1710
  }),
1724
- /* @__PURE__ */ I(je, {
1725
- missing: te,
1726
- children: /* @__PURE__ */ L(V, {
1711
+ /* @__PURE__ */ L(Ne, {
1712
+ missing: k,
1713
+ children: /* @__PURE__ */ R(V, {
1727
1714
  style: [
1728
1715
  Y.trigger,
1729
1716
  {
1730
1717
  backgroundColor: j.input,
1731
1718
  borderColor: j.border
1732
1719
  },
1733
- O && { borderColor: j.error },
1734
- te.length > 0 && { backgroundColor: j.muted }
1720
+ E && { borderColor: j.error },
1721
+ k.length > 0 && { backgroundColor: j.muted }
1735
1722
  ],
1736
- onPress: () => v(!0),
1737
- disabled: te.length > 0,
1723
+ onPress: () => y(!0),
1724
+ disabled: k.length > 0,
1738
1725
  activeOpacity: .7,
1739
1726
  children: [
1740
- /* @__PURE__ */ I(B, {
1727
+ /* @__PURE__ */ L(B, {
1741
1728
  style: [
1742
1729
  Y.triggerText,
1743
1730
  { color: j.text },
1744
1731
  !t && { color: j.textMuted }
1745
1732
  ],
1746
1733
  numberOfLines: 1,
1747
- children: t?.label || x || R("renderer.defaultHttpInput.search")
1734
+ children: t?.label || S || I("renderer.defaultHttpInput.search")
1748
1735
  }),
1749
- n && /* @__PURE__ */ I(ce, {
1736
+ n && /* @__PURE__ */ L(le, {
1750
1737
  size: "small",
1751
1738
  color: j.primary,
1752
1739
  style: Y.triggerLoader
1753
1740
  }),
1754
- e ? /* @__PURE__ */ I(V, {
1755
- onPress: () => D(""),
1741
+ e ? /* @__PURE__ */ L(V, {
1742
+ onPress: () => T(""),
1756
1743
  hitSlop: {
1757
1744
  bottom: 8,
1758
1745
  left: 8,
@@ -1760,108 +1747,108 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1760
1747
  top: 8
1761
1748
  },
1762
1749
  style: Y.clearButton,
1763
- children: /* @__PURE__ */ I(B, {
1750
+ children: /* @__PURE__ */ L(B, {
1764
1751
  style: [Y.clearIcon, { color: j.textMuted }],
1765
1752
  children: "✕"
1766
1753
  })
1767
1754
  }) : null,
1768
- /* @__PURE__ */ I(B, {
1755
+ /* @__PURE__ */ L(B, {
1769
1756
  style: [Y.arrow, { color: j.textMuted }],
1770
1757
  children: "▼"
1771
1758
  })
1772
1759
  ]
1773
1760
  })
1774
1761
  }),
1775
- /* @__PURE__ */ I(fe, {
1776
- visible: _,
1762
+ /* @__PURE__ */ L(me, {
1763
+ visible: v,
1777
1764
  transparent: !0,
1778
1765
  animationType: "fade",
1779
- onRequestClose: () => v(!1),
1780
- children: /* @__PURE__ */ I(V, {
1766
+ onRequestClose: () => y(!1),
1767
+ children: /* @__PURE__ */ L(V, {
1781
1768
  style: Y.modalOverlay,
1782
1769
  activeOpacity: 1,
1783
- onPress: () => v(!1),
1784
- children: /* @__PURE__ */ L(V, {
1770
+ onPress: () => y(!1),
1771
+ children: /* @__PURE__ */ R(V, {
1785
1772
  style: [Y.modalContent, { backgroundColor: j.card }],
1786
1773
  activeOpacity: 1,
1787
1774
  onPress: () => {},
1788
1775
  children: [
1789
- /* @__PURE__ */ L(H, {
1776
+ /* @__PURE__ */ R(H, {
1790
1777
  style: [Y.modalHeader, { borderBottomColor: j.separator }],
1791
- children: [/* @__PURE__ */ I(B, {
1778
+ children: [/* @__PURE__ */ L(B, {
1792
1779
  style: [Y.modalTitle, { color: j.text }],
1793
- children: k || x || R("renderer.defaultHttpInput.search")
1794
- }), /* @__PURE__ */ I(V, {
1795
- onPress: () => v(!1),
1796
- children: /* @__PURE__ */ I(B, {
1780
+ children: D || S || I("renderer.defaultHttpInput.search")
1781
+ }), /* @__PURE__ */ L(V, {
1782
+ onPress: () => y(!1),
1783
+ children: /* @__PURE__ */ L(B, {
1797
1784
  style: [Y.closeButton, { color: j.textMuted }],
1798
1785
  children: "✕"
1799
1786
  })
1800
1787
  })]
1801
1788
  }),
1802
- /* @__PURE__ */ I(H, {
1789
+ /* @__PURE__ */ L(H, {
1803
1790
  style: Y.searchContainer,
1804
- children: /* @__PURE__ */ I(he, {
1791
+ children: /* @__PURE__ */ L(_e, {
1805
1792
  style: [Y.searchInput, {
1806
1793
  backgroundColor: j.muted,
1807
1794
  borderColor: j.border,
1808
1795
  color: j.text
1809
1796
  }],
1810
- placeholder: R("renderer.defaultHttpInput.search"),
1797
+ placeholder: I("renderer.defaultHttpInput.search"),
1811
1798
  placeholderTextColor: j.textMuted,
1812
- value: m,
1799
+ value: h,
1813
1800
  onChangeText: (e) => {
1814
- h(e), d(null);
1801
+ g(e), f(null);
1815
1802
  },
1816
1803
  autoFocus: !0,
1817
1804
  autoCapitalize: "none",
1818
1805
  autoCorrect: !1
1819
1806
  })
1820
1807
  }),
1821
- s ? /* @__PURE__ */ I(H, {
1808
+ l ? /* @__PURE__ */ L(H, {
1822
1809
  style: Y.loadingContainer,
1823
- children: /* @__PURE__ */ I(ce, {
1810
+ children: /* @__PURE__ */ L(le, {
1824
1811
  size: "small",
1825
1812
  color: j.primary
1826
1813
  })
1827
- }) : u ? /* @__PURE__ */ L(H, {
1814
+ }) : d ? /* @__PURE__ */ R(H, {
1828
1815
  style: Y.errorContainer,
1829
- children: [/* @__PURE__ */ I(B, {
1816
+ children: [/* @__PURE__ */ L(B, {
1830
1817
  style: [Y.errorText, { color: j.error }],
1831
- children: u
1832
- }), /* @__PURE__ */ I(V, {
1833
- onPress: () => Ee(m),
1818
+ children: d
1819
+ }), /* @__PURE__ */ L(V, {
1820
+ onPress: () => W(h),
1834
1821
  style: Y.retryButton,
1835
- children: /* @__PURE__ */ I(B, {
1822
+ children: /* @__PURE__ */ L(B, {
1836
1823
  style: [Y.retryButtonText, { color: j.primary }],
1837
- children: R("renderer.defaultHttpInput.retry")
1824
+ children: I("renderer.defaultHttpInput.retry")
1838
1825
  })
1839
1826
  })]
1840
- }) : /* @__PURE__ */ I(ue, {
1841
- data: f,
1827
+ }) : /* @__PURE__ */ L(fe, {
1828
+ data: p,
1842
1829
  keyExtractor: (e) => e.value,
1843
1830
  style: Y.optionsList,
1844
1831
  contentContainerStyle: Y.optionsListContent,
1845
- ListEmptyComponent: /* @__PURE__ */ I(H, {
1832
+ ListEmptyComponent: /* @__PURE__ */ L(H, {
1846
1833
  style: Y.emptyContainer,
1847
- children: /* @__PURE__ */ I(B, {
1834
+ children: /* @__PURE__ */ L(B, {
1848
1835
  style: [Y.emptyText, { color: j.textMuted }],
1849
- children: R("renderer.defaultHttpInput.noResults")
1836
+ children: I("renderer.defaultHttpInput.noResults")
1850
1837
  })
1851
1838
  }),
1852
1839
  renderItem: ({ item: t }) => {
1853
1840
  let n = t.value === e;
1854
- return /* @__PURE__ */ L(V, {
1841
+ return /* @__PURE__ */ R(V, {
1855
1842
  style: [Y.option, n && { backgroundColor: j.primaryLight }],
1856
1843
  onPress: () => {
1857
- D(t.value), v(!1);
1844
+ T(t.value), y(!1);
1858
1845
  },
1859
1846
  activeOpacity: .7,
1860
- children: [/* @__PURE__ */ I(Ce, {
1847
+ children: [/* @__PURE__ */ L(Te, {
1861
1848
  label: t.label,
1862
1849
  description: t.description,
1863
1850
  image: t.image
1864
- }), n && /* @__PURE__ */ I(B, {
1851
+ }), n && /* @__PURE__ */ L(B, {
1865
1852
  style: [Y.checkmark, { color: j.primary }],
1866
1853
  children: "✓"
1867
1854
  })]
@@ -1872,57 +1859,57 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1872
1859
  })
1873
1860
  })
1874
1861
  }),
1875
- O && /* @__PURE__ */ I(B, {
1862
+ E && /* @__PURE__ */ L(B, {
1876
1863
  style: [Y.error, { color: j.error }],
1877
- children: O
1864
+ children: E
1878
1865
  }),
1879
- A && !O && /* @__PURE__ */ I(B, {
1866
+ O && !E && /* @__PURE__ */ L(B, {
1880
1867
  style: [Y.helperText, { color: j.textMuted }],
1881
- children: A
1868
+ children: O
1882
1869
  })
1883
1870
  ]
1884
1871
  });
1885
1872
  }
1886
- let n = s && F?.showLoading, r = te.length === 0 && f.length === 0 && !n ? u ?? R("renderer.defaultHttpInput.noDataAvailable") : void 0;
1887
- return /* @__PURE__ */ L(H, {
1873
+ let n = l && M?.showLoading, r = k.length === 0 && p.length === 0 && !n ? d ?? I("renderer.defaultHttpInput.noDataAvailable") : void 0;
1874
+ return /* @__PURE__ */ R(H, {
1888
1875
  style: Y.container,
1889
1876
  children: [
1890
- /* @__PURE__ */ I(C, {
1891
- label: k,
1877
+ /* @__PURE__ */ L(C, {
1878
+ label: D,
1892
1879
  required: w.data.required
1893
1880
  }),
1894
- /* @__PURE__ */ I(je, {
1895
- missing: te,
1896
- children: /* @__PURE__ */ L(V, {
1881
+ /* @__PURE__ */ L(Ne, {
1882
+ missing: k,
1883
+ children: /* @__PURE__ */ R(V, {
1897
1884
  style: [
1898
1885
  Y.trigger,
1899
1886
  {
1900
1887
  backgroundColor: j.input,
1901
1888
  borderColor: j.border
1902
1889
  },
1903
- O && { borderColor: j.error },
1904
- (n || f.length === 0) && { backgroundColor: j.muted }
1890
+ E && { borderColor: j.error },
1891
+ (n || p.length === 0) && { backgroundColor: j.muted }
1905
1892
  ],
1906
- onPress: () => v(!0),
1907
- disabled: n || f.length === 0,
1893
+ onPress: () => y(!0),
1894
+ disabled: n || p.length === 0,
1908
1895
  activeOpacity: .7,
1909
1896
  children: [
1910
- /* @__PURE__ */ I(B, {
1897
+ /* @__PURE__ */ L(B, {
1911
1898
  style: [
1912
1899
  Y.triggerText,
1913
1900
  { color: j.text },
1914
1901
  !t && { color: j.textMuted }
1915
1902
  ],
1916
1903
  numberOfLines: 1,
1917
- children: t?.label || x || R("renderer.defaultHttpInput.selectOption")
1904
+ children: t?.label || S || I("renderer.defaultHttpInput.selectOption")
1918
1905
  }),
1919
- n && /* @__PURE__ */ I(ce, {
1906
+ n && /* @__PURE__ */ L(le, {
1920
1907
  size: "small",
1921
1908
  color: j.primary,
1922
1909
  style: Y.triggerLoader
1923
1910
  }),
1924
- e ? /* @__PURE__ */ I(V, {
1925
- onPress: () => D(""),
1911
+ e ? /* @__PURE__ */ L(V, {
1912
+ onPress: () => T(""),
1926
1913
  hitSlop: {
1927
1914
  bottom: 8,
1928
1915
  left: 8,
@@ -1930,65 +1917,65 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1930
1917
  top: 8
1931
1918
  },
1932
1919
  style: Y.clearButton,
1933
- children: /* @__PURE__ */ I(B, {
1920
+ children: /* @__PURE__ */ L(B, {
1934
1921
  style: [Y.clearIcon, { color: j.textMuted }],
1935
1922
  children: "✕"
1936
1923
  })
1937
1924
  }) : null,
1938
- /* @__PURE__ */ I(B, {
1925
+ /* @__PURE__ */ L(B, {
1939
1926
  style: [Y.arrow, { color: j.textMuted }],
1940
1927
  children: "▼"
1941
1928
  })
1942
1929
  ]
1943
1930
  })
1944
1931
  }),
1945
- r && /* @__PURE__ */ I(B, {
1932
+ r && /* @__PURE__ */ L(B, {
1946
1933
  style: [Y.disabledMessage, { color: j.error }],
1947
1934
  children: r
1948
1935
  }),
1949
- /* @__PURE__ */ I(fe, {
1950
- visible: _,
1936
+ /* @__PURE__ */ L(me, {
1937
+ visible: v,
1951
1938
  transparent: !0,
1952
1939
  animationType: "fade",
1953
- onRequestClose: () => v(!1),
1954
- children: /* @__PURE__ */ I(V, {
1940
+ onRequestClose: () => y(!1),
1941
+ children: /* @__PURE__ */ L(V, {
1955
1942
  style: Y.modalOverlay,
1956
1943
  activeOpacity: 1,
1957
- onPress: () => v(!1),
1958
- children: /* @__PURE__ */ L(V, {
1944
+ onPress: () => y(!1),
1945
+ children: /* @__PURE__ */ R(V, {
1959
1946
  style: [Y.modalContent, { backgroundColor: j.card }],
1960
1947
  activeOpacity: 1,
1961
1948
  onPress: () => {},
1962
- children: [/* @__PURE__ */ L(H, {
1949
+ children: [/* @__PURE__ */ R(H, {
1963
1950
  style: [Y.modalHeader, { borderBottomColor: j.separator }],
1964
- children: [/* @__PURE__ */ I(B, {
1951
+ children: [/* @__PURE__ */ L(B, {
1965
1952
  style: [Y.modalTitle, { color: j.text }],
1966
- children: k || x || R("renderer.defaultHttpInput.selectOption")
1967
- }), /* @__PURE__ */ I(V, {
1968
- onPress: () => v(!1),
1969
- children: /* @__PURE__ */ I(B, {
1953
+ children: D || S || I("renderer.defaultHttpInput.selectOption")
1954
+ }), /* @__PURE__ */ L(V, {
1955
+ onPress: () => y(!1),
1956
+ children: /* @__PURE__ */ L(B, {
1970
1957
  style: [Y.closeButton, { color: j.textMuted }],
1971
1958
  children: "✕"
1972
1959
  })
1973
1960
  })]
1974
- }), /* @__PURE__ */ I(ue, {
1975
- data: f,
1961
+ }), /* @__PURE__ */ L(fe, {
1962
+ data: p,
1976
1963
  keyExtractor: (e) => e.value,
1977
1964
  style: Y.optionsList,
1978
1965
  contentContainerStyle: Y.optionsListContent,
1979
1966
  renderItem: ({ item: t }) => {
1980
1967
  let n = t.value === e;
1981
- return /* @__PURE__ */ L(V, {
1968
+ return /* @__PURE__ */ R(V, {
1982
1969
  style: [Y.option, n && { backgroundColor: j.primaryLight }],
1983
1970
  onPress: () => {
1984
- D(t.value), v(!1);
1971
+ T(t.value), y(!1);
1985
1972
  },
1986
1973
  activeOpacity: .7,
1987
- children: [/* @__PURE__ */ I(Ce, {
1974
+ children: [/* @__PURE__ */ L(Te, {
1988
1975
  label: t.label,
1989
1976
  description: t.description,
1990
1977
  image: t.image
1991
- }), n && /* @__PURE__ */ I(B, {
1978
+ }), n && /* @__PURE__ */ L(B, {
1992
1979
  style: [Y.checkmark, { color: j.primary }],
1993
1980
  children: "✓"
1994
1981
  })]
@@ -1998,40 +1985,40 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
1998
1985
  })
1999
1986
  })
2000
1987
  }),
2001
- O && /* @__PURE__ */ I(B, {
1988
+ E && /* @__PURE__ */ L(B, {
2002
1989
  style: [Y.error, { color: j.error }],
2003
- children: O
1990
+ children: E
2004
1991
  }),
2005
- A && !O && /* @__PURE__ */ I(B, {
1992
+ O && !E && /* @__PURE__ */ L(B, {
2006
1993
  style: [Y.helperText, { color: j.textMuted }],
2007
- children: A
1994
+ children: O
2008
1995
  })
2009
1996
  ]
2010
1997
  });
2011
1998
  }
2012
- return /* @__PURE__ */ L(H, {
1999
+ return /* @__PURE__ */ R(H, {
2013
2000
  style: Y.container,
2014
2001
  children: [
2015
- /* @__PURE__ */ I(C, {
2016
- label: k,
2002
+ /* @__PURE__ */ L(C, {
2003
+ label: D,
2017
2004
  required: w.data.required
2018
2005
  }),
2019
- /* @__PURE__ */ I(he, {
2006
+ /* @__PURE__ */ L(_e, {
2020
2007
  style: [Y.input, {
2021
2008
  backgroundColor: j.muted,
2022
2009
  borderColor: j.border,
2023
2010
  color: j.textMuted
2024
2011
  }],
2025
- value: typeof b == "string" ? b : JSON.stringify(b),
2012
+ value: typeof x == "string" ? x : JSON.stringify(x),
2026
2013
  editable: !1
2027
2014
  }),
2028
- O && /* @__PURE__ */ I(B, {
2015
+ E && /* @__PURE__ */ L(B, {
2029
2016
  style: [Y.error, { color: j.error }],
2030
- children: O
2017
+ children: E
2031
2018
  }),
2032
- A && !O && /* @__PURE__ */ I(B, {
2019
+ O && !E && /* @__PURE__ */ L(B, {
2033
2020
  style: [Y.helperText, { color: j.textMuted }],
2034
- children: A
2021
+ children: O
2035
2022
  })
2036
2023
  ]
2037
2024
  });
@@ -2151,20 +2138,20 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2151
2138
  flex: 1,
2152
2139
  fontSize: 14
2153
2140
  }
2154
- }), He = ({ field: e, extra: t }) => {
2155
- let { value: n, placeholder: r, name: i } = e, [a, o] = P(n?.toString() ?? ""), { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = y();
2156
- return M(() => {
2141
+ }), ze = ({ field: e, extra: t }) => {
2142
+ let { value: n, placeholder: r, name: i } = e, [a, o] = F(n?.toString() ?? ""), { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b();
2143
+ return N(() => {
2157
2144
  o(n?.toString() ?? "");
2158
- }, [n]), /* @__PURE__ */ L(H, {
2159
- style: Ue.container,
2145
+ }, [n]), /* @__PURE__ */ R(H, {
2146
+ style: Be.container,
2160
2147
  children: [
2161
- /* @__PURE__ */ I(s, {
2148
+ /* @__PURE__ */ L(s, {
2162
2149
  label: d,
2163
2150
  required: c.data.required
2164
2151
  }),
2165
- /* @__PURE__ */ I(he, {
2152
+ /* @__PURE__ */ L(_e, {
2166
2153
  style: [
2167
- Ue.input,
2154
+ Be.input,
2168
2155
  {
2169
2156
  backgroundColor: p.input,
2170
2157
  borderColor: p.border,
@@ -2186,17 +2173,17 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2186
2173
  keyboardType: "numeric",
2187
2174
  accessibilityLabel: i
2188
2175
  }),
2189
- u && /* @__PURE__ */ I(B, {
2190
- style: [Ue.error, { color: p.error }],
2176
+ u && /* @__PURE__ */ L(B, {
2177
+ style: [Be.error, { color: p.error }],
2191
2178
  children: u
2192
2179
  }),
2193
- f && !u && /* @__PURE__ */ I(B, {
2194
- style: [Ue.helperText, { color: p.textMuted }],
2180
+ f && !u && /* @__PURE__ */ L(B, {
2181
+ style: [Be.helperText, { color: p.textMuted }],
2195
2182
  children: f
2196
2183
  })
2197
2184
  ]
2198
2185
  });
2199
- }, Ue = z.create({
2186
+ }, Be = z.create({
2200
2187
  container: { marginBottom: 16 },
2201
2188
  error: {
2202
2189
  fontSize: 12,
@@ -2213,20 +2200,20 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2213
2200
  paddingHorizontal: 12,
2214
2201
  paddingVertical: 8
2215
2202
  }
2216
- }), We = ({ field: e, extra: t }) => {
2217
- let [n, r] = P(!1), { value: i, placeholder: a, name: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = y();
2218
- return /* @__PURE__ */ L(H, {
2219
- style: Ge.container,
2203
+ }), Ve = ({ field: e, extra: t }) => {
2204
+ let [n, r] = F(!1), { value: i, placeholder: a, name: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b();
2205
+ return /* @__PURE__ */ R(H, {
2206
+ style: He.container,
2220
2207
  children: [
2221
- /* @__PURE__ */ I(s, {
2208
+ /* @__PURE__ */ L(s, {
2222
2209
  label: d,
2223
2210
  required: c.data.required
2224
2211
  }),
2225
- /* @__PURE__ */ L(H, {
2226
- style: Ge.inputWrapper,
2227
- children: [/* @__PURE__ */ I(he, {
2212
+ /* @__PURE__ */ R(H, {
2213
+ style: He.inputWrapper,
2214
+ children: [/* @__PURE__ */ L(_e, {
2228
2215
  style: [
2229
- Ge.input,
2216
+ He.input,
2230
2217
  {
2231
2218
  backgroundColor: p.input,
2232
2219
  borderColor: p.border,
@@ -2240,27 +2227,27 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2240
2227
  placeholderTextColor: p.textMuted,
2241
2228
  secureTextEntry: !n,
2242
2229
  accessibilityLabel: o
2243
- }), /* @__PURE__ */ I(V, {
2244
- style: Ge.toggleButton,
2230
+ }), /* @__PURE__ */ L(V, {
2231
+ style: He.toggleButton,
2245
2232
  onPress: () => r(!n),
2246
2233
  activeOpacity: .7,
2247
- children: /* @__PURE__ */ I(B, {
2248
- style: [Ge.toggleText, { color: p.primary }],
2234
+ children: /* @__PURE__ */ L(B, {
2235
+ style: [He.toggleText, { color: p.primary }],
2249
2236
  children: n ? "Hide" : "Show"
2250
2237
  })
2251
2238
  })]
2252
2239
  }),
2253
- u && /* @__PURE__ */ I(B, {
2254
- style: [Ge.error, { color: p.error }],
2240
+ u && /* @__PURE__ */ L(B, {
2241
+ style: [He.error, { color: p.error }],
2255
2242
  children: u
2256
2243
  }),
2257
- f && !u && /* @__PURE__ */ I(B, {
2258
- style: [Ge.helperText, { color: p.textMuted }],
2244
+ f && !u && /* @__PURE__ */ L(B, {
2245
+ style: [He.helperText, { color: p.textMuted }],
2259
2246
  children: f
2260
2247
  })
2261
2248
  ]
2262
2249
  });
2263
- }, Ge = z.create({
2250
+ }, He = z.create({
2264
2251
  container: { marginBottom: 16 },
2265
2252
  error: {
2266
2253
  fontSize: 12,
@@ -2293,20 +2280,20 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2293
2280
  fontSize: 12,
2294
2281
  fontWeight: "600"
2295
2282
  }
2296
- }), Ke = ({ field: e, extra: n }) => {
2297
- let { value: r } = e, { InputLabel: i, node: a, setValue: o, error: s, label: c, helperText: l } = n, { colors: u } = y(), d = t(), f = a.data.options || [], p = r || "", m = a.data.variant !== "default", h = (e) => {
2283
+ }), Ue = ({ field: e, extra: t }) => {
2284
+ let { value: r } = e, { InputLabel: i, node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = b(), d = n(), f = a.data.options || [], p = r || "", m = a.data.variant !== "default", h = (e) => {
2298
2285
  o(e);
2299
2286
  };
2300
- return /* @__PURE__ */ L(H, {
2287
+ return /* @__PURE__ */ R(H, {
2301
2288
  style: X.container,
2302
2289
  children: [
2303
- /* @__PURE__ */ I(i, {
2290
+ /* @__PURE__ */ L(i, {
2304
2291
  label: c,
2305
2292
  required: a.data.required
2306
2293
  }),
2307
2294
  f.map((e) => {
2308
2295
  let t = p === e.value, n = d(e.label) || e.value, r = d(e.description);
2309
- return m ? /* @__PURE__ */ L(V, {
2296
+ return m ? /* @__PURE__ */ R(V, {
2310
2297
  style: [
2311
2298
  X.card,
2312
2299
  {
@@ -2323,21 +2310,21 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2323
2310
  disabled: e.disabled,
2324
2311
  activeOpacity: .7,
2325
2312
  children: [
2326
- e.image && /* @__PURE__ */ I(de, {
2313
+ e.image && /* @__PURE__ */ L(pe, {
2327
2314
  source: { uri: e.image },
2328
2315
  style: X.cardImage
2329
2316
  }),
2330
- /* @__PURE__ */ L(H, {
2317
+ /* @__PURE__ */ R(H, {
2331
2318
  style: X.cardTextContainer,
2332
- children: [/* @__PURE__ */ I(B, {
2319
+ children: [/* @__PURE__ */ L(B, {
2333
2320
  style: [X.cardLabel, { color: u.textSecondary }],
2334
2321
  children: n
2335
- }), r && /* @__PURE__ */ I(B, {
2322
+ }), r && /* @__PURE__ */ L(B, {
2336
2323
  style: [X.cardDescription, { color: u.textMuted }],
2337
2324
  children: r
2338
2325
  })]
2339
2326
  }),
2340
- /* @__PURE__ */ I(H, {
2327
+ /* @__PURE__ */ L(H, {
2341
2328
  style: [
2342
2329
  X.radio,
2343
2330
  X.cardRadio,
@@ -2347,16 +2334,16 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2347
2334
  },
2348
2335
  t && { borderColor: u.primary }
2349
2336
  ],
2350
- children: t && /* @__PURE__ */ I(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
2337
+ children: t && /* @__PURE__ */ L(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
2351
2338
  })
2352
2339
  ]
2353
- }, e.value) : /* @__PURE__ */ L(V, {
2340
+ }, e.value) : /* @__PURE__ */ R(V, {
2354
2341
  style: X.option,
2355
2342
  onPress: () => h(e.value),
2356
2343
  disabled: e.disabled,
2357
2344
  activeOpacity: .7,
2358
2345
  children: [
2359
- /* @__PURE__ */ I(H, {
2346
+ /* @__PURE__ */ L(H, {
2360
2347
  style: [
2361
2348
  X.radio,
2362
2349
  {
@@ -2365,22 +2352,22 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2365
2352
  },
2366
2353
  t && { borderColor: u.primary }
2367
2354
  ],
2368
- children: t && /* @__PURE__ */ I(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
2355
+ children: t && /* @__PURE__ */ L(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
2369
2356
  }),
2370
- e.image && /* @__PURE__ */ I(de, {
2357
+ e.image && /* @__PURE__ */ L(pe, {
2371
2358
  source: { uri: e.image },
2372
2359
  style: X.image
2373
2360
  }),
2374
- /* @__PURE__ */ L(H, {
2361
+ /* @__PURE__ */ R(H, {
2375
2362
  style: X.optionTextContainer,
2376
- children: [/* @__PURE__ */ I(B, {
2363
+ children: [/* @__PURE__ */ L(B, {
2377
2364
  style: [
2378
2365
  X.optionLabel,
2379
2366
  { color: u.textSecondary },
2380
2367
  e.disabled && { color: u.textMuted }
2381
2368
  ],
2382
2369
  children: n
2383
- }), r && /* @__PURE__ */ I(B, {
2370
+ }), r && /* @__PURE__ */ L(B, {
2384
2371
  style: [X.optionDescription, { color: u.textMuted }],
2385
2372
  children: r
2386
2373
  })]
@@ -2388,11 +2375,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2388
2375
  ]
2389
2376
  }, e.value);
2390
2377
  }),
2391
- s && /* @__PURE__ */ I(B, {
2378
+ s && /* @__PURE__ */ L(B, {
2392
2379
  style: [X.error, { color: u.error }],
2393
2380
  children: s
2394
2381
  }),
2395
- l && !s && /* @__PURE__ */ I(B, {
2382
+ l && !s && /* @__PURE__ */ L(B, {
2396
2383
  style: [X.helperText, { color: u.textMuted }],
2397
2384
  children: l
2398
2385
  })
@@ -2466,18 +2453,18 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2466
2453
  height: 10,
2467
2454
  width: 10
2468
2455
  }
2469
- }), qe = ({ field: e, extra: n }) => {
2470
- let [r, i] = P(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = n, { colors: p } = y(), m = t(), h = c.data.options || [], g = c.data.multiple, _ = Array.isArray(a) ? a : a ? [a] : [], v = (e) => {
2456
+ }), We = ({ field: e, extra: t }) => {
2457
+ let [r, i] = F(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b(), m = n(), h = c.data.options || [], g = c.data.multiple, _ = Array.isArray(a) ? a : a ? [a] : [], v = (e) => {
2471
2458
  g ? l(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (l(e), i(!1));
2472
2459
  };
2473
- return /* @__PURE__ */ L(H, {
2460
+ return /* @__PURE__ */ R(H, {
2474
2461
  style: Z.container,
2475
2462
  children: [
2476
- /* @__PURE__ */ I(s, {
2463
+ /* @__PURE__ */ L(s, {
2477
2464
  label: d,
2478
2465
  required: c.data.required
2479
2466
  }),
2480
- /* @__PURE__ */ L(V, {
2467
+ /* @__PURE__ */ R(V, {
2481
2468
  style: [
2482
2469
  Z.trigger,
2483
2470
  {
@@ -2489,7 +2476,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2489
2476
  onPress: () => i(!0),
2490
2477
  activeOpacity: .7,
2491
2478
  children: [
2492
- /* @__PURE__ */ I(B, {
2479
+ /* @__PURE__ */ L(B, {
2493
2480
  style: [
2494
2481
  Z.triggerText,
2495
2482
  { color: p.text },
@@ -2502,7 +2489,7 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2502
2489
  return e ? m(e.label) || e.value : o || "Select...";
2503
2490
  })()
2504
2491
  }),
2505
- _.length > 0 && /* @__PURE__ */ I(V, {
2492
+ _.length > 0 && /* @__PURE__ */ L(V, {
2506
2493
  onPress: () => l(g ? [] : ""),
2507
2494
  hitSlop: {
2508
2495
  bottom: 8,
@@ -2511,68 +2498,68 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2511
2498
  top: 8
2512
2499
  },
2513
2500
  style: Z.clearButton,
2514
- children: /* @__PURE__ */ I(B, {
2501
+ children: /* @__PURE__ */ L(B, {
2515
2502
  style: [Z.clearIcon, { color: p.textMuted }],
2516
2503
  children: "✕"
2517
2504
  })
2518
2505
  }),
2519
- /* @__PURE__ */ I(B, {
2506
+ /* @__PURE__ */ L(B, {
2520
2507
  style: [Z.arrow, { color: p.textMuted }],
2521
2508
  children: "▼"
2522
2509
  })
2523
2510
  ]
2524
2511
  }),
2525
- /* @__PURE__ */ I(fe, {
2512
+ /* @__PURE__ */ L(me, {
2526
2513
  visible: r,
2527
2514
  transparent: !0,
2528
2515
  animationType: "fade",
2529
2516
  onRequestClose: () => i(!1),
2530
- children: /* @__PURE__ */ I(V, {
2517
+ children: /* @__PURE__ */ L(V, {
2531
2518
  style: Z.modalOverlay,
2532
2519
  activeOpacity: 1,
2533
2520
  onPress: () => i(!1),
2534
- children: /* @__PURE__ */ L(H, {
2521
+ children: /* @__PURE__ */ R(H, {
2535
2522
  style: [Z.modalContent, { backgroundColor: p.card }],
2536
2523
  onStartShouldSetResponder: () => !0,
2537
2524
  children: [
2538
- /* @__PURE__ */ L(H, {
2525
+ /* @__PURE__ */ R(H, {
2539
2526
  style: [Z.modalHeader, { borderBottomColor: p.border }],
2540
- children: [/* @__PURE__ */ I(B, {
2527
+ children: [/* @__PURE__ */ L(B, {
2541
2528
  style: [Z.modalTitle, { color: p.text }],
2542
2529
  children: d || o || m("renderer.defaultSelectInput.selectOption")
2543
- }), /* @__PURE__ */ I(V, {
2530
+ }), /* @__PURE__ */ L(V, {
2544
2531
  onPress: () => i(!1),
2545
- children: /* @__PURE__ */ I(B, {
2532
+ children: /* @__PURE__ */ L(B, {
2546
2533
  style: [Z.closeButton, { color: p.textMuted }],
2547
2534
  children: "✕"
2548
2535
  })
2549
2536
  })]
2550
2537
  }),
2551
- /* @__PURE__ */ I(pe, {
2538
+ /* @__PURE__ */ L(he, {
2552
2539
  style: Z.optionsList,
2553
2540
  children: h.map((e) => {
2554
2541
  let t = _.includes(e.value);
2555
- return /* @__PURE__ */ L(V, {
2542
+ return /* @__PURE__ */ R(V, {
2556
2543
  style: [Z.option, t && { backgroundColor: `${p.primary}20` }],
2557
2544
  onPress: () => v(e.value),
2558
2545
  disabled: e.disabled,
2559
2546
  activeOpacity: .7,
2560
- children: [/* @__PURE__ */ I(Ce, {
2547
+ children: [/* @__PURE__ */ L(Te, {
2561
2548
  label: m(e.label) || e.value,
2562
2549
  description: m(e.description),
2563
2550
  image: e.image,
2564
2551
  disabled: e.disabled
2565
- }), t && /* @__PURE__ */ I(B, {
2552
+ }), t && /* @__PURE__ */ L(B, {
2566
2553
  style: [Z.checkmark, { color: p.primary }],
2567
2554
  children: "✓"
2568
2555
  })]
2569
2556
  }, e.value);
2570
2557
  })
2571
2558
  }),
2572
- g && /* @__PURE__ */ I(V, {
2559
+ g && /* @__PURE__ */ L(V, {
2573
2560
  style: [Z.doneButton, { backgroundColor: p.primary }],
2574
2561
  onPress: () => i(!1),
2575
- children: /* @__PURE__ */ I(B, {
2562
+ children: /* @__PURE__ */ L(B, {
2576
2563
  style: Z.doneButtonText,
2577
2564
  children: "Done"
2578
2565
  })
@@ -2581,11 +2568,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2581
2568
  })
2582
2569
  })
2583
2570
  }),
2584
- u && /* @__PURE__ */ I(B, {
2571
+ u && /* @__PURE__ */ L(B, {
2585
2572
  style: [Z.error, { color: p.error }],
2586
2573
  children: u
2587
2574
  }),
2588
- f && !u && /* @__PURE__ */ I(B, {
2575
+ f && !u && /* @__PURE__ */ L(B, {
2589
2576
  style: [Z.helperText, { color: p.textMuted }],
2590
2577
  children: f
2591
2578
  })
@@ -2672,20 +2659,20 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2672
2659
  flex: 1,
2673
2660
  fontSize: 14
2674
2661
  }
2675
- }), Je = (e) => null, Ye = ({ field: e, extra: t }) => {
2676
- let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = y(), u = !!n;
2677
- return /* @__PURE__ */ L(H, {
2678
- style: Xe.container,
2662
+ }), Ge = (e) => null, Ke = ({ field: e, extra: t }) => {
2663
+ let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = b(), u = !!n;
2664
+ return /* @__PURE__ */ R(H, {
2665
+ style: qe.container,
2679
2666
  children: [
2680
- /* @__PURE__ */ L(H, {
2681
- style: Xe.row,
2682
- children: [/* @__PURE__ */ I(H, {
2683
- style: Xe.labelContainer,
2684
- children: /* @__PURE__ */ I(r, {
2667
+ /* @__PURE__ */ R(H, {
2668
+ style: qe.row,
2669
+ children: [/* @__PURE__ */ L(H, {
2670
+ style: qe.labelContainer,
2671
+ children: /* @__PURE__ */ L(r, {
2685
2672
  label: s,
2686
2673
  required: i.data.required
2687
2674
  })
2688
- }), /* @__PURE__ */ I(me, {
2675
+ }), /* @__PURE__ */ L(ge, {
2689
2676
  trackColor: {
2690
2677
  false: l.border,
2691
2678
  true: `${l.primary}80`
@@ -2696,17 +2683,17 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2696
2683
  value: u
2697
2684
  })]
2698
2685
  }),
2699
- o && /* @__PURE__ */ I(B, {
2700
- style: [Xe.error, { color: l.error }],
2686
+ o && /* @__PURE__ */ L(B, {
2687
+ style: [qe.error, { color: l.error }],
2701
2688
  children: o
2702
2689
  }),
2703
- c && !o && /* @__PURE__ */ I(B, {
2704
- style: [Xe.helperText, { color: l.textMuted }],
2690
+ c && !o && /* @__PURE__ */ L(B, {
2691
+ style: [qe.helperText, { color: l.textMuted }],
2705
2692
  children: c
2706
2693
  })
2707
2694
  ]
2708
2695
  });
2709
- }, Xe = z.create({
2696
+ }, qe = z.create({
2710
2697
  container: { marginBottom: 16 },
2711
2698
  error: {
2712
2699
  fontSize: 12,
@@ -2722,18 +2709,18 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2722
2709
  flexDirection: "row",
2723
2710
  justifyContent: "space-between"
2724
2711
  }
2725
- }), Ze = ({ field: e, extra: t }) => {
2726
- let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = y();
2727
- return /* @__PURE__ */ L(H, {
2728
- style: Qe.container,
2712
+ }), Je = ({ field: e, extra: t }) => {
2713
+ let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = b();
2714
+ return /* @__PURE__ */ R(H, {
2715
+ style: Ye.container,
2729
2716
  children: [
2730
- /* @__PURE__ */ I(a, {
2717
+ /* @__PURE__ */ L(a, {
2731
2718
  label: l,
2732
2719
  required: o.data.required
2733
2720
  }),
2734
- /* @__PURE__ */ I(he, {
2721
+ /* @__PURE__ */ L(_e, {
2735
2722
  style: [
2736
- Qe.textarea,
2723
+ Ye.textarea,
2737
2724
  {
2738
2725
  backgroundColor: d.input,
2739
2726
  borderColor: d.border,
@@ -2750,17 +2737,17 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2750
2737
  textAlignVertical: "top",
2751
2738
  accessibilityLabel: i
2752
2739
  }),
2753
- c && /* @__PURE__ */ I(B, {
2754
- style: [Qe.error, { color: d.error }],
2740
+ c && /* @__PURE__ */ L(B, {
2741
+ style: [Ye.error, { color: d.error }],
2755
2742
  children: c
2756
2743
  }),
2757
- u && !c && /* @__PURE__ */ I(B, {
2758
- style: [Qe.helperText, { color: d.textMuted }],
2744
+ u && !c && /* @__PURE__ */ L(B, {
2745
+ style: [Ye.helperText, { color: d.textMuted }],
2759
2746
  children: u
2760
2747
  })
2761
2748
  ]
2762
2749
  });
2763
- }, Qe = z.create({
2750
+ }, Ye = z.create({
2764
2751
  container: { marginBottom: 16 },
2765
2752
  error: {
2766
2753
  fontSize: 12,
@@ -2778,18 +2765,18 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2778
2765
  paddingHorizontal: 12,
2779
2766
  paddingVertical: 8
2780
2767
  }
2781
- }), $e = ({ field: e, extra: t }) => {
2782
- let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = y();
2783
- return /* @__PURE__ */ L(H, {
2784
- style: et.container,
2768
+ }), Xe = ({ field: e, extra: t }) => {
2769
+ let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = b();
2770
+ return /* @__PURE__ */ R(H, {
2771
+ style: Ze.container,
2785
2772
  children: [
2786
- /* @__PURE__ */ I(a, {
2773
+ /* @__PURE__ */ L(a, {
2787
2774
  label: l,
2788
2775
  required: o.data.required
2789
2776
  }),
2790
- /* @__PURE__ */ I(he, {
2777
+ /* @__PURE__ */ L(_e, {
2791
2778
  style: [
2792
- et.input,
2779
+ Ze.input,
2793
2780
  {
2794
2781
  backgroundColor: d.input,
2795
2782
  borderColor: d.border,
@@ -2803,17 +2790,17 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2803
2790
  placeholderTextColor: d.textMuted,
2804
2791
  accessibilityLabel: i
2805
2792
  }),
2806
- c && /* @__PURE__ */ I(B, {
2807
- style: [et.error, { color: d.error }],
2793
+ c && /* @__PURE__ */ L(B, {
2794
+ style: [Ze.error, { color: d.error }],
2808
2795
  children: c
2809
2796
  }),
2810
- u && !c && /* @__PURE__ */ I(B, {
2811
- style: [et.helperText, { color: d.textMuted }],
2797
+ u && !c && /* @__PURE__ */ L(B, {
2798
+ style: [Ze.helperText, { color: d.textMuted }],
2812
2799
  children: u
2813
2800
  })
2814
2801
  ]
2815
2802
  });
2816
- }, et = z.create({
2803
+ }, Ze = z.create({
2817
2804
  container: { marginBottom: 16 },
2818
2805
  error: {
2819
2806
  fontSize: 12,
@@ -2830,92 +2817,92 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2830
2817
  paddingHorizontal: 12,
2831
2818
  paddingVertical: 8
2832
2819
  }
2833
- }), tt = ({ field: e, extra: n }) => {
2834
- let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] = P(c || 0), [f, p] = P(l || 0), [m, h] = P(!1), { InputLabel: g, node: _, setValue: v, error: b, label: x, helperText: S } = n, { colors: C } = y(), w = t(), T = N(null), E = N(null), D = Array.from({ length: 24 }, (e, t) => t), ee = Array.from({ length: 60 }, (e, t) => t), O = () => r || i || w("renderer.defaultInputs.selectTime"), k = oe(() => {
2820
+ }), Qe = ({ field: e, extra: t }) => {
2821
+ let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] = F(c || 0), [f, p] = F(l || 0), [m, h] = F(!1), { InputLabel: g, node: _, setValue: v, error: y, label: x, helperText: S } = t, { colors: C } = b(), ee = n(), w = P(null), T = P(null), te = Array.from({ length: 24 }, (e, t) => t), ne = Array.from({ length: 60 }, (e, t) => t), E = () => r || i || ee("renderer.defaultInputs.selectTime"), re = se(() => {
2835
2822
  v(`${String(u).padStart(2, "0")}:${String(f).padStart(2, "0")}`), h(!1);
2836
2823
  }, [
2837
2824
  u,
2838
2825
  f,
2839
2826
  v
2840
2827
  ]);
2841
- return /* @__PURE__ */ L(H, {
2828
+ return /* @__PURE__ */ R(H, {
2842
2829
  style: Q.container,
2843
2830
  children: [
2844
- /* @__PURE__ */ I(g, {
2831
+ /* @__PURE__ */ L(g, {
2845
2832
  label: x,
2846
2833
  required: _.data.required
2847
2834
  }),
2848
- /* @__PURE__ */ L(V, {
2835
+ /* @__PURE__ */ R(V, {
2849
2836
  style: [
2850
2837
  Q.trigger,
2851
2838
  {
2852
2839
  backgroundColor: C.input,
2853
2840
  borderColor: C.border
2854
2841
  },
2855
- b && { borderColor: C.error }
2842
+ y && { borderColor: C.error }
2856
2843
  ],
2857
2844
  onPress: () => {
2858
2845
  d(c || 0), p(l || 0), h(!0);
2859
2846
  },
2860
2847
  activeOpacity: .7,
2861
- children: [/* @__PURE__ */ I(B, {
2848
+ children: [/* @__PURE__ */ L(B, {
2862
2849
  style: [
2863
2850
  Q.triggerText,
2864
2851
  { color: C.text },
2865
2852
  !r && { color: C.textMuted }
2866
2853
  ],
2867
2854
  numberOfLines: 1,
2868
- children: O()
2869
- }), /* @__PURE__ */ I(B, {
2855
+ children: E()
2856
+ }), /* @__PURE__ */ L(B, {
2870
2857
  style: Q.icon,
2871
2858
  children: "🕐"
2872
2859
  })]
2873
2860
  }),
2874
- /* @__PURE__ */ I(fe, {
2861
+ /* @__PURE__ */ L(me, {
2875
2862
  visible: m,
2876
2863
  transparent: !0,
2877
2864
  animationType: "fade",
2878
2865
  onRequestClose: () => h(!1),
2879
- children: /* @__PURE__ */ I(V, {
2866
+ children: /* @__PURE__ */ L(V, {
2880
2867
  style: Q.modalOverlay,
2881
2868
  activeOpacity: 1,
2882
2869
  onPress: () => h(!1),
2883
- children: /* @__PURE__ */ L(V, {
2870
+ children: /* @__PURE__ */ R(V, {
2884
2871
  style: [Q.modalContent, { backgroundColor: C.card }],
2885
2872
  activeOpacity: 1,
2886
2873
  onPress: () => {},
2887
2874
  children: [
2888
- /* @__PURE__ */ L(H, {
2875
+ /* @__PURE__ */ R(H, {
2889
2876
  style: [Q.modalHeader, { borderBottomColor: C.separator }],
2890
- children: [/* @__PURE__ */ I(B, {
2877
+ children: [/* @__PURE__ */ L(B, {
2891
2878
  style: [Q.modalTitle, { color: C.text }],
2892
- children: x || i || w("renderer.defaultInputs.selectTime")
2893
- }), /* @__PURE__ */ I(V, {
2879
+ children: x || i || ee("renderer.defaultInputs.selectTime")
2880
+ }), /* @__PURE__ */ L(V, {
2894
2881
  onPress: () => h(!1),
2895
- children: /* @__PURE__ */ I(B, {
2882
+ children: /* @__PURE__ */ L(B, {
2896
2883
  style: [Q.closeButton, { color: C.textMuted }],
2897
2884
  children: "✕"
2898
2885
  })
2899
2886
  })]
2900
2887
  }),
2901
- /* @__PURE__ */ L(H, {
2888
+ /* @__PURE__ */ R(H, {
2902
2889
  style: Q.pickerContainer,
2903
2890
  children: [
2904
- /* @__PURE__ */ L(H, {
2891
+ /* @__PURE__ */ R(H, {
2905
2892
  style: Q.pickerColumn,
2906
- children: [/* @__PURE__ */ I(B, {
2893
+ children: [/* @__PURE__ */ L(B, {
2907
2894
  style: [Q.pickerLabel, { color: C.textMuted }],
2908
2895
  children: "Hour"
2909
- }), /* @__PURE__ */ I(pe, {
2910
- ref: T,
2896
+ }), /* @__PURE__ */ L(he, {
2897
+ ref: w,
2911
2898
  style: Q.picker,
2912
2899
  contentContainerStyle: Q.pickerContent,
2913
2900
  showsVerticalScrollIndicator: !1,
2914
- children: D.map((e) => /* @__PURE__ */ I(V, {
2901
+ children: te.map((e) => /* @__PURE__ */ L(V, {
2915
2902
  style: [Q.pickerItem, u === e && { backgroundColor: C.primary }],
2916
2903
  onPress: () => d(e),
2917
2904
  activeOpacity: .7,
2918
- children: /* @__PURE__ */ I(B, {
2905
+ children: /* @__PURE__ */ L(B, {
2919
2906
  style: [
2920
2907
  Q.pickerItemText,
2921
2908
  { color: C.text },
@@ -2929,25 +2916,25 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2929
2916
  }, e))
2930
2917
  })]
2931
2918
  }),
2932
- /* @__PURE__ */ I(B, {
2919
+ /* @__PURE__ */ L(B, {
2933
2920
  style: [Q.pickerSeparator, { color: C.text }],
2934
2921
  children: ":"
2935
2922
  }),
2936
- /* @__PURE__ */ L(H, {
2923
+ /* @__PURE__ */ R(H, {
2937
2924
  style: Q.pickerColumn,
2938
- children: [/* @__PURE__ */ I(B, {
2925
+ children: [/* @__PURE__ */ L(B, {
2939
2926
  style: [Q.pickerLabel, { color: C.textMuted }],
2940
2927
  children: "Minute"
2941
- }), /* @__PURE__ */ I(pe, {
2942
- ref: E,
2928
+ }), /* @__PURE__ */ L(he, {
2929
+ ref: T,
2943
2930
  style: Q.picker,
2944
2931
  contentContainerStyle: Q.pickerContent,
2945
2932
  showsVerticalScrollIndicator: !1,
2946
- children: ee.map((e) => /* @__PURE__ */ I(V, {
2933
+ children: ne.map((e) => /* @__PURE__ */ L(V, {
2947
2934
  style: [Q.pickerItem, f === e && { backgroundColor: C.primary }],
2948
2935
  onPress: () => p(e),
2949
2936
  activeOpacity: .7,
2950
- children: /* @__PURE__ */ I(B, {
2937
+ children: /* @__PURE__ */ L(B, {
2951
2938
  style: [
2952
2939
  Q.pickerItemText,
2953
2940
  { color: C.text },
@@ -2963,11 +2950,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2963
2950
  })
2964
2951
  ]
2965
2952
  }),
2966
- /* @__PURE__ */ I(V, {
2953
+ /* @__PURE__ */ L(V, {
2967
2954
  style: [Q.confirmButton, { backgroundColor: C.primary }],
2968
- onPress: k,
2955
+ onPress: re,
2969
2956
  activeOpacity: .7,
2970
- children: /* @__PURE__ */ I(B, {
2957
+ children: /* @__PURE__ */ L(B, {
2971
2958
  style: [Q.confirmButtonText, { color: C.background }],
2972
2959
  children: "Confirm"
2973
2960
  })
@@ -2976,11 +2963,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
2976
2963
  })
2977
2964
  })
2978
2965
  }),
2979
- b && /* @__PURE__ */ I(B, {
2966
+ y && /* @__PURE__ */ L(B, {
2980
2967
  style: [Q.error, { color: C.error }],
2981
- children: b
2968
+ children: y
2982
2969
  }),
2983
- S && !b && /* @__PURE__ */ I(B, {
2970
+ S && !y && /* @__PURE__ */ L(B, {
2984
2971
  style: [Q.helperText, { color: C.textMuted }],
2985
2972
  children: S
2986
2973
  })
@@ -3072,28 +3059,28 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3072
3059
  flex: 1,
3073
3060
  fontSize: 14
3074
3061
  }
3075
- }), nt = ({ field: e, extra: n }) => {
3076
- let [r, i] = P(!1), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = n, { colors: m } = y(), h = t(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", b = _.split(":"), x = Number.parseInt(b[0], 10), S = Number.parseInt(b[1], 10), C = Number.isNaN(x) ? 0 : x, w = Number.isNaN(S) ? 0 : S, T = v.split(":"), E = Number.parseInt(T[0], 10), D = Number.parseInt(T[1], 10), ee = Number.isNaN(E) ? 0 : E, O = Number.isNaN(D) ? 0 : D, [k, A] = P(0), [te, ne] = P(0), re = Array.from({ length: 24 }, (e, t) => t), ie = Array.from({ length: 60 }, (e, t) => t), ae = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectTimeRange"), j = oe(() => {
3077
- let e = `${String(k).padStart(2, "0")}:${String(te).padStart(2, "0")}`;
3078
- a ? (u([e, v]), o(!1), A(ee || 0), ne(O || 0)) : (u([_, e]), i(!1), o(!0));
3062
+ }), $e = ({ field: e, extra: t }) => {
3063
+ let [r, i] = F(!1), [a, o] = F(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, { colors: m } = b(), h = n(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", y = _.split(":"), x = Number.parseInt(y[0], 10), S = Number.parseInt(y[1], 10), C = Number.isNaN(x) ? 0 : x, ee = Number.isNaN(S) ? 0 : S, w = v.split(":"), T = Number.parseInt(w[0], 10), te = Number.parseInt(w[1], 10), ne = Number.isNaN(T) ? 0 : T, E = Number.isNaN(te) ? 0 : te, [re, D] = F(0), [O, k] = F(0), A = Array.from({ length: 24 }, (e, t) => t), ie = Array.from({ length: 60 }, (e, t) => t), ae = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectTimeRange"), oe = se(() => {
3064
+ let e = `${String(re).padStart(2, "0")}:${String(O).padStart(2, "0")}`;
3065
+ a ? (u([e, v]), o(!1), D(ne || 0), k(E || 0)) : (u([_, e]), i(!1), o(!0));
3079
3066
  }, [
3080
3067
  a,
3081
- k,
3082
- te,
3068
+ re,
3069
+ O,
3083
3070
  _,
3084
3071
  v,
3085
- ee,
3086
- O,
3072
+ ne,
3073
+ E,
3087
3074
  u
3088
3075
  ]);
3089
- return /* @__PURE__ */ L(H, {
3076
+ return /* @__PURE__ */ R(H, {
3090
3077
  style: $.container,
3091
3078
  children: [
3092
- /* @__PURE__ */ I(c, {
3079
+ /* @__PURE__ */ L(c, {
3093
3080
  label: f,
3094
3081
  required: l.data.required
3095
3082
  }),
3096
- /* @__PURE__ */ L(V, {
3083
+ /* @__PURE__ */ R(V, {
3097
3084
  style: [
3098
3085
  $.trigger,
3099
3086
  {
@@ -3103,10 +3090,10 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3103
3090
  d && { borderColor: m.error }
3104
3091
  ],
3105
3092
  onPress: () => {
3106
- A(C || 0), ne(w || 0), o(!0), i(!0);
3093
+ D(C || 0), k(ee || 0), o(!0), i(!0);
3107
3094
  },
3108
3095
  activeOpacity: .7,
3109
- children: [/* @__PURE__ */ I(B, {
3096
+ children: [/* @__PURE__ */ L(B, {
3110
3097
  style: [
3111
3098
  $.triggerText,
3112
3099
  { color: m.text },
@@ -3114,66 +3101,66 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3114
3101
  ],
3115
3102
  numberOfLines: 1,
3116
3103
  children: ae()
3117
- }), /* @__PURE__ */ I(B, {
3104
+ }), /* @__PURE__ */ L(B, {
3118
3105
  style: $.icon,
3119
3106
  children: "🕐"
3120
3107
  })]
3121
3108
  }),
3122
- /* @__PURE__ */ I(fe, {
3109
+ /* @__PURE__ */ L(me, {
3123
3110
  visible: r,
3124
3111
  transparent: !0,
3125
3112
  animationType: "fade",
3126
3113
  onRequestClose: () => i(!1),
3127
- children: /* @__PURE__ */ I(V, {
3114
+ children: /* @__PURE__ */ L(V, {
3128
3115
  style: $.modalOverlay,
3129
3116
  activeOpacity: 1,
3130
3117
  onPress: () => i(!1),
3131
- children: /* @__PURE__ */ L(V, {
3118
+ children: /* @__PURE__ */ R(V, {
3132
3119
  style: [$.modalContent, { backgroundColor: m.card }],
3133
3120
  activeOpacity: 1,
3134
3121
  onPress: () => {},
3135
3122
  children: [
3136
- /* @__PURE__ */ L(H, {
3123
+ /* @__PURE__ */ R(H, {
3137
3124
  style: [$.modalHeader, { borderBottomColor: m.separator }],
3138
- children: [/* @__PURE__ */ I(B, {
3125
+ children: [/* @__PURE__ */ L(B, {
3139
3126
  style: [$.modalTitle, { color: m.text }],
3140
3127
  children: f || h("renderer.defaultInputs.selectTimeRange")
3141
- }), /* @__PURE__ */ I(V, {
3128
+ }), /* @__PURE__ */ L(V, {
3142
3129
  onPress: () => i(!1),
3143
- children: /* @__PURE__ */ I(B, {
3130
+ children: /* @__PURE__ */ L(B, {
3144
3131
  style: [$.closeButton, { color: m.textMuted }],
3145
3132
  children: "✕"
3146
3133
  })
3147
3134
  })]
3148
3135
  }),
3149
- /* @__PURE__ */ I(H, {
3136
+ /* @__PURE__ */ L(H, {
3150
3137
  style: [$.rangeIndicator, { backgroundColor: m.primaryLight }],
3151
- children: /* @__PURE__ */ I(B, {
3138
+ children: /* @__PURE__ */ L(B, {
3152
3139
  style: [$.rangeIndicatorText, { color: m.primary }],
3153
3140
  children: h(a ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3154
3141
  })
3155
3142
  }),
3156
- /* @__PURE__ */ L(H, {
3143
+ /* @__PURE__ */ R(H, {
3157
3144
  style: $.pickerContainer,
3158
3145
  children: [
3159
- /* @__PURE__ */ L(H, {
3146
+ /* @__PURE__ */ R(H, {
3160
3147
  style: $.pickerColumn,
3161
- children: [/* @__PURE__ */ I(B, {
3148
+ children: [/* @__PURE__ */ L(B, {
3162
3149
  style: [$.pickerLabel, { color: m.textMuted }],
3163
3150
  children: "Hour"
3164
- }), /* @__PURE__ */ I(pe, {
3151
+ }), /* @__PURE__ */ L(he, {
3165
3152
  style: $.picker,
3166
3153
  contentContainerStyle: $.pickerContent,
3167
3154
  showsVerticalScrollIndicator: !1,
3168
- children: re.map((e) => /* @__PURE__ */ I(V, {
3169
- style: [$.pickerItem, k === e && { backgroundColor: m.primary }],
3170
- onPress: () => A(e),
3155
+ children: A.map((e) => /* @__PURE__ */ L(V, {
3156
+ style: [$.pickerItem, re === e && { backgroundColor: m.primary }],
3157
+ onPress: () => D(e),
3171
3158
  activeOpacity: .7,
3172
- children: /* @__PURE__ */ I(B, {
3159
+ children: /* @__PURE__ */ L(B, {
3173
3160
  style: [
3174
3161
  $.pickerItemText,
3175
3162
  { color: m.text },
3176
- k === e && {
3163
+ re === e && {
3177
3164
  color: m.background,
3178
3165
  fontWeight: "600"
3179
3166
  }
@@ -3183,28 +3170,28 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3183
3170
  }, e))
3184
3171
  })]
3185
3172
  }),
3186
- /* @__PURE__ */ I(B, {
3173
+ /* @__PURE__ */ L(B, {
3187
3174
  style: [$.pickerSeparator, { color: m.text }],
3188
3175
  children: ":"
3189
3176
  }),
3190
- /* @__PURE__ */ L(H, {
3177
+ /* @__PURE__ */ R(H, {
3191
3178
  style: $.pickerColumn,
3192
- children: [/* @__PURE__ */ I(B, {
3179
+ children: [/* @__PURE__ */ L(B, {
3193
3180
  style: [$.pickerLabel, { color: m.textMuted }],
3194
3181
  children: "Minute"
3195
- }), /* @__PURE__ */ I(pe, {
3182
+ }), /* @__PURE__ */ L(he, {
3196
3183
  style: $.picker,
3197
3184
  contentContainerStyle: $.pickerContent,
3198
3185
  showsVerticalScrollIndicator: !1,
3199
- children: ie.map((e) => /* @__PURE__ */ I(V, {
3200
- style: [$.pickerItem, te === e && { backgroundColor: m.primary }],
3201
- onPress: () => ne(e),
3186
+ children: ie.map((e) => /* @__PURE__ */ L(V, {
3187
+ style: [$.pickerItem, O === e && { backgroundColor: m.primary }],
3188
+ onPress: () => k(e),
3202
3189
  activeOpacity: .7,
3203
- children: /* @__PURE__ */ I(B, {
3190
+ children: /* @__PURE__ */ L(B, {
3204
3191
  style: [
3205
3192
  $.pickerItemText,
3206
3193
  { color: m.text },
3207
- te === e && {
3194
+ O === e && {
3208
3195
  color: m.background,
3209
3196
  fontWeight: "600"
3210
3197
  }
@@ -3216,11 +3203,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3216
3203
  })
3217
3204
  ]
3218
3205
  }),
3219
- /* @__PURE__ */ I(V, {
3206
+ /* @__PURE__ */ L(V, {
3220
3207
  style: [$.confirmButton, { backgroundColor: m.primary }],
3221
- onPress: j,
3208
+ onPress: oe,
3222
3209
  activeOpacity: .7,
3223
- children: /* @__PURE__ */ I(B, {
3210
+ children: /* @__PURE__ */ L(B, {
3224
3211
  style: [$.confirmButtonText, { color: m.background }],
3225
3212
  children: a ? "Next" : "Confirm"
3226
3213
  })
@@ -3229,11 +3216,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3229
3216
  })
3230
3217
  })
3231
3218
  }),
3232
- d && /* @__PURE__ */ I(B, {
3219
+ d && /* @__PURE__ */ L(B, {
3233
3220
  style: [$.error, { color: m.error }],
3234
3221
  children: d
3235
3222
  }),
3236
- p && !d && /* @__PURE__ */ I(B, {
3223
+ p && !d && /* @__PURE__ */ L(B, {
3237
3224
  style: [$.helperText, { color: m.textMuted }],
3238
3225
  children: p
3239
3226
  })
@@ -3335,54 +3322,54 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3335
3322
  flex: 1,
3336
3323
  fontSize: 14
3337
3324
  }
3338
- }), rt = {
3339
- address: Se,
3340
- autocomplete: Te,
3341
- checkbox: Ee,
3342
- date: De,
3343
- daterange: Oe,
3344
- file: ke,
3345
- hidden: Ae,
3346
- http: Ve,
3347
- number: He,
3348
- password: We,
3349
- radio: Ke,
3350
- select: qe,
3351
- submit: Je,
3352
- switch: Ye,
3353
- text: $e,
3354
- textarea: Ze,
3355
- time: tt,
3356
- timerange: nt
3357
- }, it = ({ step: e, label: n, children: i, canGoBack: a, isLastStep: o, canContinue: s, isSubmitting: c, onBack: l, onContinue: u }) => {
3358
- let { colors: d } = y(), f = t(), p = !s || c, m = e.nodes.find((e) => r(e) && e.data.type === "submit"), h = m && r(m) ? f(m.data.label) : void 0, g = o ? h || f("renderer.defaultSubmitButton.submit") : f("renderer.step.continue");
3359
- return /* @__PURE__ */ L(H, { children: [
3360
- n ? /* @__PURE__ */ I(B, {
3361
- style: [at.label, { color: d.text }],
3362
- children: n
3325
+ }), et = {
3326
+ address: we,
3327
+ autocomplete: De,
3328
+ checkbox: Oe,
3329
+ date: ke,
3330
+ daterange: Ae,
3331
+ file: je,
3332
+ hidden: Me,
3333
+ http: Re,
3334
+ number: ze,
3335
+ password: Ve,
3336
+ radio: Ue,
3337
+ select: We,
3338
+ submit: Ge,
3339
+ switch: Ke,
3340
+ text: Xe,
3341
+ textarea: Je,
3342
+ time: Qe,
3343
+ timerange: $e
3344
+ }, tt = ({ step: e, label: t, children: r, canGoBack: i, isLastStep: a, canContinue: o, isSubmitting: s, onBack: c, onContinue: u }) => {
3345
+ let { colors: d } = b(), f = n(), p = !o || s, m = e.nodes.find((e) => l(e) && e.data.type === "submit"), h = m && l(m) ? f(m.data.label) : void 0, g = a ? h || f("renderer.defaultSubmitButton.submit") : f("renderer.step.continue");
3346
+ return /* @__PURE__ */ R(H, { children: [
3347
+ t ? /* @__PURE__ */ L(B, {
3348
+ style: [nt.label, { color: d.text }],
3349
+ children: t
3363
3350
  }) : null,
3364
- /* @__PURE__ */ I(H, {
3365
- style: at.content,
3366
- children: i
3367
- }),
3368
3351
  /* @__PURE__ */ L(H, {
3369
- style: at.actions,
3370
- children: [a ? /* @__PURE__ */ I(V, {
3352
+ style: nt.content,
3353
+ children: r
3354
+ }),
3355
+ /* @__PURE__ */ R(H, {
3356
+ style: nt.actions,
3357
+ children: [i ? /* @__PURE__ */ L(V, {
3371
3358
  style: [
3372
- at.backButton,
3359
+ nt.backButton,
3373
3360
  { borderColor: d.border },
3374
- c && at.disabled
3361
+ s && nt.disabled
3375
3362
  ],
3376
- onPress: l,
3377
- disabled: c,
3363
+ onPress: c,
3364
+ disabled: s,
3378
3365
  activeOpacity: .7,
3379
- children: /* @__PURE__ */ I(B, {
3380
- style: [at.backButtonText, { color: d.text }],
3366
+ children: /* @__PURE__ */ L(B, {
3367
+ style: [nt.backButtonText, { color: d.text }],
3381
3368
  children: f("renderer.step.back")
3382
3369
  })
3383
- }) : /* @__PURE__ */ I(H, {}), /* @__PURE__ */ I(V, {
3370
+ }) : /* @__PURE__ */ L(H, {}), /* @__PURE__ */ L(V, {
3384
3371
  style: [
3385
- at.continueButton,
3372
+ nt.continueButton,
3386
3373
  { backgroundColor: d.primary },
3387
3374
  p && {
3388
3375
  backgroundColor: d.primaryDisabled,
@@ -3392,14 +3379,14 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3392
3379
  onPress: u,
3393
3380
  disabled: p,
3394
3381
  activeOpacity: .7,
3395
- children: c ? /* @__PURE__ */ I(ce, { color: d.primaryForeground }) : /* @__PURE__ */ I(B, {
3396
- style: [at.continueButtonText, { color: d.primaryForeground }],
3382
+ children: s ? /* @__PURE__ */ L(le, { color: d.primaryForeground }) : /* @__PURE__ */ L(B, {
3383
+ style: [nt.continueButtonText, { color: d.primaryForeground }],
3397
3384
  children: g
3398
3385
  })
3399
3386
  })]
3400
3387
  })
3401
3388
  ] });
3402
- }, at = z.create({
3389
+ }, nt = z.create({
3403
3390
  actions: {
3404
3391
  alignItems: "center",
3405
3392
  flexDirection: "row",
@@ -3434,11 +3421,11 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3434
3421
  fontWeight: "600",
3435
3422
  marginBottom: 12
3436
3423
  }
3437
- }), ot = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3438
- let { colors: i } = y();
3439
- return /* @__PURE__ */ I(V, {
3424
+ }), rt = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3425
+ let { colors: i } = b();
3426
+ return /* @__PURE__ */ L(V, {
3440
3427
  style: [
3441
- st.button,
3428
+ it.button,
3442
3429
  { backgroundColor: i.primary },
3443
3430
  (t || n) && {
3444
3431
  backgroundColor: i.primaryDisabled,
@@ -3448,12 +3435,12 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3448
3435
  disabled: t || n,
3449
3436
  onPress: r,
3450
3437
  activeOpacity: .7,
3451
- children: n ? /* @__PURE__ */ I(ce, { color: i.primaryForeground }) : /* @__PURE__ */ I(B, {
3452
- style: [st.buttonText, { color: i.primaryForeground }],
3438
+ children: n ? /* @__PURE__ */ L(le, { color: i.primaryForeground }) : /* @__PURE__ */ L(B, {
3439
+ style: [it.buttonText, { color: i.primaryForeground }],
3453
3440
  children: e
3454
3441
  })
3455
3442
  });
3456
- }, st = z.create({
3443
+ }, it = z.create({
3457
3444
  button: {
3458
3445
  alignItems: "center",
3459
3446
  borderRadius: 6,
@@ -3466,16 +3453,16 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3466
3453
  fontSize: 16,
3467
3454
  fontWeight: "600"
3468
3455
  }
3469
- }), ct = ({ children: e }) => e, lt = ({ node: e }) => {
3470
- let n = t(), { colors: r } = y(), i = n(e.data?.label);
3471
- return /* @__PURE__ */ I(B, {
3472
- style: [dt.title, { color: r.text }],
3456
+ }), at = ({ children: e }) => e, ot = ({ node: e }) => {
3457
+ let t = n(), { colors: r } = b(), i = t(e.data?.label);
3458
+ return /* @__PURE__ */ L(B, {
3459
+ style: [ct.title, { color: r.text }],
3473
3460
  children: i
3474
3461
  });
3475
- }, ut = () => {
3476
- let { colors: e } = y();
3477
- return /* @__PURE__ */ I(H, { style: [dt.divider, { backgroundColor: e.separator }] });
3478
- }, dt = z.create({
3462
+ }, st = () => {
3463
+ let { colors: e } = b();
3464
+ return /* @__PURE__ */ L(H, { style: [ct.divider, { backgroundColor: e.separator }] });
3465
+ }, ct = z.create({
3479
3466
  divider: {
3480
3467
  height: 1,
3481
3468
  marginBottom: 16,
@@ -3486,63 +3473,63 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3486
3473
  fontWeight: "700",
3487
3474
  marginBottom: 16
3488
3475
  }
3489
- }), ft = {
3490
- divider: ut,
3491
- title: lt
3492
- }, pt = ({ node: e, children: t }) => {
3476
+ }), lt = {
3477
+ divider: st,
3478
+ title: ot
3479
+ }, ut = ({ node: e, children: t }) => {
3493
3480
  let { image: n } = e.data;
3494
- return /* @__PURE__ */ L(H, { children: [n && /* @__PURE__ */ I(de, {
3481
+ return /* @__PURE__ */ R(H, { children: [n && /* @__PURE__ */ L(pe, {
3495
3482
  source: { uri: n },
3496
- style: mt.image,
3483
+ style: dt.image,
3497
3484
  resizeMode: "cover"
3498
3485
  }), t] });
3499
- }, mt = z.create({ image: {
3486
+ }, dt = z.create({ image: {
3500
3487
  borderRadius: 6,
3501
3488
  height: 160,
3502
3489
  marginBottom: 8,
3503
3490
  width: "100%"
3504
- } }), ht = ({ style: e }) => {
3505
- let { colors: t } = y(), n = N(new le.Value(.5)).current;
3506
- return M(() => {
3507
- let e = le.loop(le.sequence([le.timing(n, {
3491
+ } }), ft = ({ style: e }) => {
3492
+ let { colors: t } = b(), n = P(new de.Value(.5)).current;
3493
+ return N(() => {
3494
+ let e = de.loop(de.sequence([de.timing(n, {
3508
3495
  duration: 600,
3509
3496
  toValue: 1,
3510
3497
  useNativeDriver: !0
3511
- }), le.timing(n, {
3498
+ }), de.timing(n, {
3512
3499
  duration: 600,
3513
3500
  toValue: .5,
3514
3501
  useNativeDriver: !0
3515
3502
  })]));
3516
3503
  return e.start(), () => e.stop();
3517
- }, [n]), /* @__PURE__ */ I(le.View, { style: [
3518
- _t.bar,
3504
+ }, [n]), /* @__PURE__ */ L(de.View, { style: [
3505
+ mt.bar,
3519
3506
  {
3520
3507
  backgroundColor: t.muted,
3521
3508
  opacity: n
3522
3509
  },
3523
3510
  e
3524
3511
  ] });
3525
- }, gt = () => /* @__PURE__ */ L(H, {
3512
+ }, pt = () => /* @__PURE__ */ R(H, {
3526
3513
  accessibilityState: { busy: !0 },
3527
3514
  children: [
3528
- /* @__PURE__ */ I(ht, { style: _t.title }),
3529
- /* @__PURE__ */ I(H, {
3530
- style: _t.fields,
3515
+ /* @__PURE__ */ L(ft, { style: mt.title }),
3516
+ /* @__PURE__ */ L(H, {
3517
+ style: mt.fields,
3531
3518
  children: [
3532
3519
  0,
3533
3520
  1,
3534
3521
  2
3535
- ].map((e) => /* @__PURE__ */ L(H, {
3536
- style: _t.field,
3537
- children: [/* @__PURE__ */ I(ht, { style: _t.fieldLabel }), /* @__PURE__ */ I(ht, { style: _t.fieldInput })]
3522
+ ].map((e) => /* @__PURE__ */ R(H, {
3523
+ style: mt.field,
3524
+ children: [/* @__PURE__ */ L(ft, { style: mt.fieldLabel }), /* @__PURE__ */ L(ft, { style: mt.fieldInput })]
3538
3525
  }, e))
3539
3526
  }),
3540
- /* @__PURE__ */ I(H, {
3541
- style: _t.actions,
3542
- children: /* @__PURE__ */ I(ht, { style: _t.button })
3527
+ /* @__PURE__ */ L(H, {
3528
+ style: mt.actions,
3529
+ children: /* @__PURE__ */ L(ft, { style: mt.button })
3543
3530
  })
3544
3531
  ]
3545
- }), _t = z.create({
3532
+ }), mt = z.create({
3546
3533
  actions: {
3547
3534
  alignItems: "flex-end",
3548
3535
  marginTop: 24
@@ -3567,14 +3554,14 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3567
3554
  marginBottom: 24,
3568
3555
  width: "33%"
3569
3556
  }
3570
- }), vt = ({ baseUrl: e, components: t, contentContainerStyle: n, extraPayload: r, flow: i, googleApiKey: a, headers: o, initialValues: c, isLoading: l = !1, isSubmitting: u = !1, language: d, onBack: f, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, validate: v, validationMode: b }) => {
3571
- let { colors: x } = y(), { canContinueStep: S, canSubmit: C, clearSubmitMessage: w, config: T, currentStep: E, currentStepGroupNode: D, currentStepIndex: ee, formErrors: O, formValues: k, goToNextStep: A, goToPreviousStep: te, handleSubmit: re, inputNodes: ie, isFirstStep: ae, isLastStep: M, isSubmitting: N, missingRequiredFields: P, setFieldValue: F, steps: ce, submitMessage: R, t: le } = ne({
3572
- baseUrl: e,
3573
- components: t,
3574
- extraPayload: r,
3575
- flow: i,
3576
- googleApiKey: a,
3577
- headers: o,
3557
+ }), ht = ({ baseUrl: t, components: n, contentContainerStyle: r, extraPayload: i, flow: a, googleApiKey: o, headers: s, initialValues: c, isLoading: l = !1, isSubmitting: u = !1, language: d, onBack: f, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, validate: v, validationMode: y }) => {
3558
+ let { colors: x } = b(), { canContinueStep: S, canSubmit: C, clearSubmitMessage: ee, config: w, currentStep: T, currentStepGroupNode: te, currentStepIndex: ne, formErrors: E, formValues: re, goToNextStep: D, goToPreviousStep: O, handleSubmit: k, inputNodes: A, isFirstStep: ae, isLastStep: oe, isSubmitting: j, missingRequiredFields: N, setFieldValue: P, steps: F, submitMessage: I, t: le } = ie({
3559
+ baseUrl: t,
3560
+ components: n,
3561
+ extraPayload: i,
3562
+ flow: a,
3563
+ googleApiKey: o,
3564
+ headers: s,
3578
3565
  initialValues: c,
3579
3566
  language: d,
3580
3567
  onChange: p,
@@ -3582,104 +3569,104 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3582
3569
  showPoweredBy: h,
3583
3570
  theme: _,
3584
3571
  validate: v,
3585
- validationMode: b
3586
- }), ue = u || N, { FormWrapper: de, SubmitButtonWrapper: fe, renderNode: z } = j({
3587
- config: T,
3588
- DefaultFormWrapper: ge,
3589
- DefaultInputLabel: ve,
3590
- DefaultInputWrapper: pt,
3591
- DefaultSubmitButton: ot,
3592
- DefaultSubmitButtonWrapper: ct,
3593
- defaultInputRenderers: rt,
3594
- defaultUI: ft,
3595
- formErrors: O,
3596
- formValues: k,
3597
- inputNodes: ie,
3572
+ validationMode: y
3573
+ }), ue = u || j, { FormWrapper: de, SubmitButtonWrapper: fe, renderNode: pe } = M({
3574
+ config: w,
3575
+ DefaultFormWrapper: ve,
3576
+ DefaultInputLabel: be,
3577
+ DefaultInputWrapper: ut,
3578
+ DefaultSubmitButton: rt,
3579
+ DefaultSubmitButtonWrapper: at,
3580
+ defaultInputRenderers: et,
3581
+ defaultUI: lt,
3582
+ formErrors: E,
3583
+ formValues: re,
3584
+ inputNodes: A,
3598
3585
  isSubmitting: ue,
3599
- missingRequiredFields: P,
3600
- setFieldValue: F
3601
- }), me = T.components.step ?? it, he = T.components.loadingSkeleton ?? gt, V = se(() => le(D?.data?.label), [le, D]), _e = oe(() => {
3602
- if (M) {
3603
- re();
3586
+ missingRequiredFields: N,
3587
+ setFieldValue: P
3588
+ }), me = w.components.step ?? tt, z = w.components.loadingSkeleton ?? pt, ge = ce(() => le(te?.data?.label), [le, te]), _e = se(() => {
3589
+ if (oe) {
3590
+ k();
3604
3591
  return;
3605
3592
  }
3606
- A();
3593
+ D();
3607
3594
  }, [
3608
- M,
3609
- re,
3610
- A
3611
- ]), ye = oe(() => {
3595
+ oe,
3596
+ k,
3597
+ D
3598
+ ]), V = se(() => {
3612
3599
  if (ae) {
3613
3600
  f?.();
3614
3601
  return;
3615
3602
  }
3616
- te();
3603
+ O();
3617
3604
  }, [
3618
3605
  ae,
3619
3606
  f,
3620
- te
3621
- ]), be = !ae || !!f;
3622
- return /* @__PURE__ */ I(pe, {
3607
+ O
3608
+ ]), ye = !ae || !!f;
3609
+ return /* @__PURE__ */ L(he, {
3623
3610
  nestedScrollEnabled: !0,
3624
3611
  style: [
3625
- bt.container,
3612
+ _t.container,
3626
3613
  { backgroundColor: x.background },
3627
3614
  g
3628
3615
  ],
3629
- contentContainerStyle: n,
3630
- children: l ? /* @__PURE__ */ I(he, {}) : /* @__PURE__ */ L(s, {
3616
+ contentContainerStyle: r,
3617
+ children: l ? /* @__PURE__ */ L(z, {}) : /* @__PURE__ */ R(e, {
3631
3618
  value: {
3632
- baseUrl: T.baseUrl,
3633
- flow: i,
3634
- formErrors: O,
3635
- formValues: k,
3636
- googleApiKey: T.googleApiKey,
3637
- headers: T.headers,
3638
- inputNodes: ie,
3639
- language: T.language,
3640
- setFieldValue: F
3619
+ baseUrl: w.baseUrl,
3620
+ flow: a,
3621
+ formErrors: E,
3622
+ formValues: re,
3623
+ googleApiKey: w.googleApiKey,
3624
+ headers: w.headers,
3625
+ inputNodes: A,
3626
+ language: w.language,
3627
+ setFieldValue: P
3641
3628
  },
3642
- children: [/* @__PURE__ */ L(de, {
3643
- onSubmit: re,
3644
- children: [E && /* @__PURE__ */ I(fe, {
3645
- missingFields: P,
3646
- children: /* @__PURE__ */ I(me, {
3647
- step: E,
3648
- groupNode: D,
3649
- stepIndex: ee,
3650
- totalSteps: ce.length,
3629
+ children: [/* @__PURE__ */ R(de, {
3630
+ onSubmit: k,
3631
+ children: [T && /* @__PURE__ */ L(fe, {
3632
+ missingFields: N,
3633
+ children: /* @__PURE__ */ L(me, {
3634
+ step: T,
3635
+ groupNode: te,
3636
+ stepIndex: ne,
3637
+ totalSteps: F.length,
3651
3638
  isFirstStep: ae,
3652
- isLastStep: M,
3653
- canContinue: S && (!M || C),
3654
- canGoBack: be,
3639
+ isLastStep: oe,
3640
+ canContinue: S && (!oe || C),
3641
+ canGoBack: ye,
3655
3642
  isSubmitting: ue,
3656
- onBack: ye,
3643
+ onBack: V,
3657
3644
  onContinue: _e,
3658
- label: V,
3659
- children: E.nodes.map((e) => z(e))
3645
+ label: ge,
3646
+ children: T.nodes.map((e) => pe(e))
3660
3647
  })
3661
- }), T.showPoweredBy && /* @__PURE__ */ I(B, {
3662
- style: [bt.poweredBy, { color: x.textMuted }],
3648
+ }), w.showPoweredBy && /* @__PURE__ */ L(B, {
3649
+ style: [_t.poweredBy, { color: x.textMuted }],
3663
3650
  children: "Powered by Treege"
3664
3651
  })]
3665
- }), R && /* @__PURE__ */ L(H, {
3666
- style: [bt.message, { backgroundColor: R.type === "success" ? x.successBg : x.errorBg }],
3667
- children: [/* @__PURE__ */ I(B, {
3668
- style: [bt.messageText, { color: R.type === "success" ? x.success : x.error }],
3669
- children: R.message
3670
- }), /* @__PURE__ */ I(B, {
3671
- style: [bt.messageClose, { color: R.type === "success" ? x.success : x.error }],
3672
- onPress: w,
3652
+ }), I && /* @__PURE__ */ R(H, {
3653
+ style: [_t.message, { backgroundColor: I.type === "success" ? x.successBg : x.errorBg }],
3654
+ children: [/* @__PURE__ */ L(B, {
3655
+ style: [_t.messageText, { color: I.type === "success" ? x.success : x.error }],
3656
+ children: I.message
3657
+ }), /* @__PURE__ */ L(B, {
3658
+ style: [_t.messageClose, { color: I.type === "success" ? x.success : x.error }],
3659
+ onPress: ee,
3673
3660
  children: le("common.close")
3674
3661
  })]
3675
3662
  })]
3676
3663
  })
3677
3664
  });
3678
- }, yt = (e) => /* @__PURE__ */ I(C, {
3665
+ }, gt = (e) => /* @__PURE__ */ L(w, {
3679
3666
  theme: e.theme,
3680
3667
  storageKey: "treege-renderer-theme",
3681
- children: /* @__PURE__ */ I(vt, { ...e })
3682
- }), bt = z.create({
3668
+ children: /* @__PURE__ */ L(ht, { ...e })
3669
+ }), _t = z.create({
3683
3670
  container: { flex: 1 },
3684
3671
  message: {
3685
3672
  borderRadius: 6,
@@ -3702,4 +3689,4 @@ var ge = ({ children: e }) => /* @__PURE__ */ I(H, {
3702
3689
  }
3703
3690
  });
3704
3691
  //#endregion
3705
- export { Se as DefaultAddressInput, Te as DefaultAutocompleteInput, Ee as DefaultCheckboxInput, De as DefaultDateInput, Oe as DefaultDateRangeInput, ut as DefaultDividerUI, ke as DefaultFileInput, Ae as DefaultHiddenInput, Ve as DefaultHttpInput, ve as DefaultInputLabel, He as DefaultNumberInput, We as DefaultPasswordInput, Ke as DefaultRadioInput, qe as DefaultSelectInput, Ye as DefaultSwitchInput, $e as DefaultTextInput, Ze as DefaultTextareaInput, tt as DefaultTimeInput, nt as DefaultTimeRangeInput, lt as DefaultTitleUI, yt as TreegeRenderer, k as TreegeRendererProvider, x as applyReferenceTransformation, h as buildInitialFormValues, u as calculateReferenceFieldUpdates, b as checkFormFieldHasValue, S as convertFormValuesToNamedFormat, rt as defaultInputRenderers, ft as defaultUI, re as evaluateCondition, ae as evaluateConditions, v as fileNameFromUrl, m as fileToSerializable, p as filesToSerializable, ie as findStartNode, l as formatFileSize, A as getFlowRenderState, n as getTranslatedText, f as isFieldEmpty, w as isRemoteFileData, O as isStartNode, D as normalizeSerializableFiles, _ as resolveNodeDefaultValue, Fe as sanitize, Le as sanitizeHttpResponse, d as serializableToFile, ne as useTreegeRenderer, te as useTreegeRendererConfig };
3692
+ export { we as DefaultAddressInput, De as DefaultAutocompleteInput, Oe as DefaultCheckboxInput, ke as DefaultDateInput, Ae as DefaultDateRangeInput, st as DefaultDividerUI, je as DefaultFileInput, Me as DefaultHiddenInput, Re as DefaultHttpInput, be as DefaultInputLabel, ze as DefaultNumberInput, Ve as DefaultPasswordInput, Ue as DefaultRadioInput, We as DefaultSelectInput, Ke as DefaultSwitchInput, Xe as DefaultTextInput, Je as DefaultTextareaInput, Qe as DefaultTimeInput, $e as DefaultTimeRangeInput, ot as DefaultTitleUI, gt as TreegeRenderer, O as TreegeRendererProvider, C as applyReferenceTransformation, g as buildInitialFormValues, d as calculateReferenceFieldUpdates, x as checkFormFieldHasValue, ee as convertFormValuesToNamedFormat, et as defaultInputRenderers, lt as defaultUI, ae as evaluateCondition, j as evaluateConditions, y as fileNameFromUrl, h as fileToSerializable, m as filesToSerializable, oe as findStartNode, u as formatFileSize, k as getFlowRenderState, S as getTranslatedText, p as isFieldEmpty, T as isRemoteFileData, D as isStartNode, E as normalizeSerializableFiles, v as resolveNodeDefaultValue, o as sanitize, re as sanitizeHttpResponse, f as serializableToFile, ie as useTreegeRenderer, A as useTreegeRendererConfig };