treege 3.0.0-beta.80 → 3.0.0-beta.81

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