treege 3.0.0-beta.94 → 3.0.0-beta.96

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,17 +1,17 @@
1
- import { B as e, D as t, F as n, M as r, N as i, P as a, R as o, T as s, V as c, X as l, _ as u, a as d, b as f, c as p, g as m, h, i as g, k as _, l as v, m as y, n as b, o as x, q as S, r as C, s as ee, t as w, v as T, w as te, x as E, y as D, z as ne } from "./ThemeContext-CE3SE9DG.js";
2
- import { a as O, c as k, i as A, l as j, n as re, o as ie, r as ae, s as M, t as N } from "./useRenderNode-BPgpYSyg.js";
3
- import { useCallback as oe, useEffect as se, useMemo as ce, useRef as P, useState as F } from "react";
4
- import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
5
- import { ActivityIndicator as le, Alert as ue, Animated as de, FlatList as fe, Image as pe, Modal as me, ScrollView as he, StyleSheet as z, Switch as ge, Text as B, TextInput as _e, TouchableOpacity as V, View as H } from "react-native";
1
+ import { $ as e, A as t, B as n, E as r, F as i, H as a, I as o, N as s, O as c, P as l, S as u, T as d, V as f, X as p, _ as m, a as h, b as g, c as _, g as v, h as y, i as b, l as x, n as S, o as C, r as w, s as T, t as E, u as ee, v as D, x as O, y as k, z as A } from "./ThemeContext-B9-cptw0.js";
2
+ import { a as j, c as te, i as ne, l as re, n as ie, o as ae, r as M, s as N, t as P } from "./useRenderNode-C9RSQFX3.js";
3
+ import { useCallback as oe, useEffect as se, useMemo as ce, useRef as F, useState as I } from "react";
4
+ import { Fragment as le, jsx as L, jsxs as R } from "react/jsx-runtime";
5
+ import { ActivityIndicator as ue, Alert as de, Animated as fe, FlatList as pe, Image as me, Modal as he, ScrollView as ge, StyleSheet as z, Switch as _e, Text as B, TextInput as ve, TouchableOpacity as V, View as H } from "react-native";
6
6
  //#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
7
- var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
8
- style: ye.container,
7
+ var ye = ({ children: e }) => /* @__PURE__ */ L(H, {
8
+ style: be.container,
9
9
  children: e
10
- }), ye = z.create({ container: { padding: 16 } }), be = ({ label: e, required: t, style: n }) => {
11
- let { colors: r } = b();
10
+ }), be = z.create({ container: { padding: 16 } }), xe = ({ label: e, required: t, style: n }) => {
11
+ let { colors: r } = S();
12
12
  return e ? /* @__PURE__ */ R(B, {
13
13
  style: [
14
- xe.label,
14
+ Se.label,
15
15
  { color: r.textSecondary },
16
16
  n
17
17
  ],
@@ -20,11 +20,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
20
20
  children: "*"
21
21
  })]
22
22
  }) : null;
23
- }, xe = z.create({ label: {
23
+ }, Se = z.create({ label: {
24
24
  fontSize: 14,
25
25
  fontWeight: "500",
26
26
  marginBottom: 8
27
- } }), Se = async (e, t) => {
27
+ } }), Ce = 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 ve = ({ children: e }) => /* @__PURE__ */ L(H, {
39
39
  } catch (e) {
40
40
  return console.error("Nominatim fetch error:", e), [];
41
41
  }
42
- }, Ce = async (e, t) => {
42
+ }, we = 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,144 +52,144 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
52
52
  } catch (e) {
53
53
  return console.error("Google Places fetch error:", e), [];
54
54
  }
55
- }, we = ({ field: e, extra: t }) => {
56
- let [r, i] = F(""), [a, o] = F([]), [s, l] = F(!1), [u, d] = F(!1), { value: f, placeholder: p, id: m, name: h } = e, { InputLabel: g, node: _, setValue: v, error: y, label: x, helperText: S } = t, { language: C, googleApiKey: ee } = c(), w = n(), { colors: T } = b(), te = oe((e) => {
57
- v(e.value), i(""), l(!1), o([]);
58
- }, [v]), E = () => {
55
+ }, Te = ({ field: e, extra: t }) => {
56
+ let [n, r] = I(""), [i, s] = I([]), [c, l] = I(!1), [u, d] = I(!1), { value: f, placeholder: p, id: m, name: h } = e, { InputLabel: g, node: _, setValue: v, error: y, label: b, helperText: x } = t, { language: C, googleApiKey: w } = a(), T = o(), { colors: E } = S(), ee = oe((e) => {
57
+ v(e.value), r(""), l(!1), s([]);
58
+ }, [v]), D = () => {
59
59
  l(!1);
60
60
  };
61
61
  return se(() => {
62
- if (!r || r.trim().length < 3) {
63
- o([]), d(!1);
62
+ if (!n || n.trim().length < 3) {
63
+ s([]), d(!1);
64
64
  return;
65
65
  }
66
66
  d(!0);
67
67
  let e = setTimeout(async () => {
68
- o(ee ? await Ce(r, ee) : await Se(r, C)), d(!1);
68
+ s(w ? await we(n, w) : await Ce(n, C)), d(!1);
69
69
  }, 300);
70
70
  return () => {
71
71
  clearTimeout(e), d(!1);
72
72
  };
73
73
  }, [
74
- r,
74
+ n,
75
75
  C,
76
- ee
76
+ w
77
77
  ]), /* @__PURE__ */ R(H, {
78
78
  style: U.container,
79
79
  children: [
80
80
  /* @__PURE__ */ L(g, {
81
- label: x,
81
+ label: b,
82
82
  required: _.data.required
83
83
  }),
84
84
  /* @__PURE__ */ R(V, {
85
85
  style: [
86
86
  U.trigger,
87
87
  {
88
- backgroundColor: T.input,
89
- borderColor: T.border
88
+ backgroundColor: E.input,
89
+ borderColor: E.border
90
90
  },
91
- y && { borderColor: T.error }
91
+ y && { borderColor: E.error }
92
92
  ],
93
93
  onPress: () => l(!0),
94
94
  activeOpacity: .7,
95
95
  children: [/* @__PURE__ */ L(B, {
96
96
  style: [
97
97
  U.triggerText,
98
- { color: T.text },
99
- !f && { color: T.textMuted }
98
+ { color: E.text },
99
+ !f && { color: E.textMuted }
100
100
  ],
101
101
  numberOfLines: 1,
102
- children: f || p || w("renderer.defaultAddressInput.enterAddress")
102
+ children: f || p || T("renderer.defaultAddressInput.enterAddress")
103
103
  }), /* @__PURE__ */ L(B, {
104
104
  style: U.icon,
105
105
  children: "📍"
106
106
  })]
107
107
  }),
108
- /* @__PURE__ */ L(me, {
109
- visible: s,
108
+ /* @__PURE__ */ L(he, {
109
+ visible: c,
110
110
  transparent: !0,
111
111
  animationType: "fade",
112
- onRequestClose: E,
112
+ onRequestClose: D,
113
113
  children: /* @__PURE__ */ L(V, {
114
114
  style: U.modalOverlay,
115
115
  activeOpacity: 1,
116
- onPress: E,
116
+ onPress: D,
117
117
  children: /* @__PURE__ */ R(V, {
118
- style: [U.modalContent, { backgroundColor: T.card }],
118
+ style: [U.modalContent, { backgroundColor: E.card }],
119
119
  activeOpacity: 1,
120
120
  onPress: () => {},
121
121
  children: [
122
122
  /* @__PURE__ */ R(H, {
123
- style: [U.modalHeader, { borderBottomColor: T.separator }],
123
+ style: [U.modalHeader, { borderBottomColor: E.separator }],
124
124
  children: [/* @__PURE__ */ L(B, {
125
- style: [U.modalTitle, { color: T.text }],
126
- children: x || p || w("renderer.defaultAddressInput.enterAddress")
125
+ style: [U.modalTitle, { color: E.text }],
126
+ children: b || p || T("renderer.defaultAddressInput.enterAddress")
127
127
  }), /* @__PURE__ */ L(V, {
128
- onPress: E,
128
+ onPress: D,
129
129
  children: /* @__PURE__ */ L(B, {
130
- style: [U.closeButton, { color: T.textMuted }],
130
+ style: [U.closeButton, { color: E.textMuted }],
131
131
  children: "✕"
132
132
  })
133
133
  })]
134
134
  }),
135
135
  /* @__PURE__ */ R(H, {
136
136
  style: U.searchContainer,
137
- children: [/* @__PURE__ */ L(_e, {
137
+ children: [/* @__PURE__ */ L(ve, {
138
138
  style: [U.searchInput, {
139
- backgroundColor: T.muted,
140
- borderColor: T.border,
141
- color: T.text
139
+ backgroundColor: E.muted,
140
+ borderColor: E.border,
141
+ color: E.text
142
142
  }],
143
- placeholder: p || w("renderer.defaultAddressInput.enterAddress"),
144
- placeholderTextColor: T.textMuted,
145
- value: r,
146
- onChangeText: i,
143
+ placeholder: p || T("renderer.defaultAddressInput.enterAddress"),
144
+ placeholderTextColor: E.textMuted,
145
+ value: n,
146
+ onChangeText: r,
147
147
  autoFocus: !0,
148
148
  autoCapitalize: "none",
149
149
  autoCorrect: !1
150
- }), u && /* @__PURE__ */ L(le, {
150
+ }), u && /* @__PURE__ */ L(ue, {
151
151
  size: "small",
152
- color: T.primary,
152
+ color: E.primary,
153
153
  style: U.searchLoader
154
154
  })]
155
155
  }),
156
156
  u ? /* @__PURE__ */ R(H, {
157
157
  style: U.loadingContainer,
158
- children: [/* @__PURE__ */ L(le, {
158
+ children: [/* @__PURE__ */ L(ue, {
159
159
  size: "small",
160
- color: T.primary
160
+ color: E.primary
161
161
  }), /* @__PURE__ */ L(B, {
162
- style: [U.loadingText, { color: T.textMuted }],
163
- children: w("renderer.defaultAddressInput.searching")
162
+ style: [U.loadingText, { color: E.textMuted }],
163
+ children: T("renderer.defaultAddressInput.searching")
164
164
  })]
165
- }) : /* @__PURE__ */ L(fe, {
166
- data: a,
165
+ }) : /* @__PURE__ */ L(pe, {
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: r.length >= 3 ? /* @__PURE__ */ L(H, {
171
+ ListEmptyComponent: n.length >= 3 ? /* @__PURE__ */ L(H, {
172
172
  style: U.emptyContainer,
173
173
  children: /* @__PURE__ */ L(B, {
174
- style: [U.emptyText, { color: T.textMuted }],
175
- children: w("renderer.defaultAddressInput.noAddressesFound")
174
+ style: [U.emptyText, { color: E.textMuted }],
175
+ children: T("renderer.defaultAddressInput.noAddressesFound")
176
176
  })
177
177
  }) : /* @__PURE__ */ L(H, {
178
178
  style: U.emptyContainer,
179
179
  children: /* @__PURE__ */ L(B, {
180
- style: [U.emptyText, { color: T.textMuted }],
181
- children: w("renderer.defaultAddressInput.typeMinChars")
180
+ style: [U.emptyText, { color: E.textMuted }],
181
+ children: T("renderer.defaultAddressInput.typeMinChars")
182
182
  })
183
183
  }),
184
184
  renderItem: ({ item: e }) => /* @__PURE__ */ R(V, {
185
185
  style: U.suggestionItem,
186
- onPress: () => te(e),
186
+ onPress: () => ee(e),
187
187
  activeOpacity: .7,
188
188
  children: [/* @__PURE__ */ L(B, {
189
189
  style: U.suggestionIcon,
190
190
  children: "📍"
191
191
  }), /* @__PURE__ */ L(B, {
192
- style: [U.suggestionText, { color: T.text }],
192
+ style: [U.suggestionText, { color: E.text }],
193
193
  numberOfLines: 2,
194
194
  children: e.label
195
195
  })]
@@ -200,12 +200,12 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
200
200
  })
201
201
  }),
202
202
  y && /* @__PURE__ */ L(B, {
203
- style: [U.error, { color: T.error }],
203
+ style: [U.error, { color: E.error }],
204
204
  children: y
205
205
  }),
206
- S && !y && /* @__PURE__ */ L(B, {
207
- style: [U.helperText, { color: T.textMuted }],
208
- children: S
206
+ x && !y && /* @__PURE__ */ L(B, {
207
+ style: [U.helperText, { color: E.textMuted }],
208
+ children: x
209
209
  })
210
210
  ]
211
211
  });
@@ -314,25 +314,25 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
314
314
  flex: 1,
315
315
  fontSize: 14
316
316
  }
317
- }), Te = ({ label: e, description: t, image: n, disabled: r }) => {
318
- let { colors: i } = b();
317
+ }), Ee = ({ label: e, description: t, image: n, disabled: r }) => {
318
+ let { colors: i } = S();
319
319
  return /* @__PURE__ */ R(H, {
320
- style: Ee.content,
321
- children: [n ? /* @__PURE__ */ L(pe, {
320
+ style: De.content,
321
+ children: [n ? /* @__PURE__ */ L(me, {
322
322
  source: { uri: n },
323
- style: Ee.image
323
+ style: De.image
324
324
  }) : null, /* @__PURE__ */ R(H, {
325
- style: Ee.textWrapper,
325
+ style: De.textWrapper,
326
326
  children: [/* @__PURE__ */ L(B, {
327
- style: [Ee.label, { color: r ? i.textMuted : i.text }],
327
+ style: [De.label, { color: r ? i.textMuted : i.text }],
328
328
  children: e
329
329
  }), t ? /* @__PURE__ */ L(B, {
330
- style: [Ee.description, { color: i.textMuted }],
330
+ style: [De.description, { color: i.textMuted }],
331
331
  children: t
332
332
  }) : null]
333
333
  })]
334
334
  });
335
- }, Ee = z.create({
335
+ }, De = z.create({
336
336
  content: {
337
337
  alignItems: "center",
338
338
  flex: 1,
@@ -350,19 +350,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
350
350
  },
351
351
  label: { fontSize: 14 },
352
352
  textWrapper: { flex: 1 }
353
- }), De = ({ field: e, extra: t }) => {
354
- let [r, i] = F(!1), [a, o] = F(""), { value: s, placeholder: c } = e, { InputLabel: l, node: u, setValue: d, error: f, label: p, helperText: m } = t, h = n(), { colors: g } = b(), _ = u.data.options || [], v = _.find((e) => e.value === s), y = ce(() => {
355
- if (!a.trim()) return _;
356
- let e = a.toLowerCase();
353
+ }), Oe = ({ field: e, extra: t }) => {
354
+ let [n, r] = I(!1), [i, a] = I(""), { value: s, placeholder: c } = e, { InputLabel: l, node: u, setValue: d, error: f, label: p, helperText: m } = t, h = o(), { colors: g } = S(), _ = u.data.options || [], v = _.find((e) => e.value === s), y = ce(() => {
355
+ if (!i.trim()) return _;
356
+ let e = i.toLowerCase();
357
357
  return _.filter((t) => h(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
358
358
  }, [
359
359
  _,
360
- a,
360
+ i,
361
361
  h
362
- ]), x = (e) => {
363
- d(e === s ? "" : e), i(!1), o("");
364
- }, S = () => {
365
- i(!1), o("");
362
+ ]), b = (e) => {
363
+ d(e === s ? "" : e), r(!1), a("");
364
+ }, x = () => {
365
+ r(!1), a("");
366
366
  };
367
367
  return /* @__PURE__ */ R(H, {
368
368
  style: W.container,
@@ -380,7 +380,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
380
380
  },
381
381
  f && { borderColor: g.error }
382
382
  ],
383
- onPress: () => i(!0),
383
+ onPress: () => r(!0),
384
384
  activeOpacity: .7,
385
385
  children: [
386
386
  /* @__PURE__ */ L(B, {
@@ -412,15 +412,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
412
412
  })
413
413
  ]
414
414
  }),
415
- /* @__PURE__ */ L(me, {
416
- visible: r,
415
+ /* @__PURE__ */ L(he, {
416
+ visible: n,
417
417
  transparent: !0,
418
418
  animationType: "fade",
419
- onRequestClose: S,
419
+ onRequestClose: x,
420
420
  children: /* @__PURE__ */ L(V, {
421
421
  style: W.modalOverlay,
422
422
  activeOpacity: 1,
423
- onPress: S,
423
+ onPress: x,
424
424
  children: /* @__PURE__ */ R(V, {
425
425
  style: [W.modalContent, { backgroundColor: g.card }],
426
426
  activeOpacity: 1,
@@ -432,7 +432,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
432
432
  style: [W.modalTitle, { color: g.text }],
433
433
  children: p || c || h("renderer.defaultAutocompleteInput.selectOption")
434
434
  }), /* @__PURE__ */ L(V, {
435
- onPress: S,
435
+ onPress: x,
436
436
  children: /* @__PURE__ */ L(B, {
437
437
  style: [W.closeButton, { color: g.textMuted }],
438
438
  children: "✕"
@@ -441,7 +441,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
441
441
  }),
442
442
  /* @__PURE__ */ L(H, {
443
443
  style: W.searchContainer,
444
- children: /* @__PURE__ */ L(_e, {
444
+ children: /* @__PURE__ */ L(ve, {
445
445
  style: [W.searchInput, {
446
446
  backgroundColor: g.muted,
447
447
  borderColor: g.border,
@@ -449,14 +449,14 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
449
449
  }],
450
450
  placeholder: c || h("renderer.defaultAutocompleteInput.search"),
451
451
  placeholderTextColor: g.textMuted,
452
- value: a,
453
- onChangeText: o,
452
+ value: i,
453
+ onChangeText: a,
454
454
  autoFocus: !0,
455
455
  autoCapitalize: "none",
456
456
  autoCorrect: !1
457
457
  })
458
458
  }),
459
- /* @__PURE__ */ L(fe, {
459
+ /* @__PURE__ */ L(pe, {
460
460
  data: y,
461
461
  keyExtractor: (e) => e.value,
462
462
  style: W.optionsList,
@@ -472,10 +472,10 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
472
472
  let t = e.value === s;
473
473
  return /* @__PURE__ */ R(V, {
474
474
  style: [W.option, t && { backgroundColor: g.primaryLight }],
475
- onPress: () => x(e.value),
475
+ onPress: () => b(e.value),
476
476
  disabled: e.disabled,
477
477
  activeOpacity: .7,
478
- children: [/* @__PURE__ */ L(Te, {
478
+ children: [/* @__PURE__ */ L(Ee, {
479
479
  label: h(e.label) || e.value,
480
480
  description: h(e.description),
481
481
  image: e.image,
@@ -588,19 +588,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
588
588
  flex: 1,
589
589
  fontSize: 14
590
590
  }
591
- }), Oe = ({ field: e, extra: t }) => {
592
- let r = n(), { value: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = b(), f = o.data.options || [], p = f.length > 0, m = Array.isArray(i) ? i : [], h = typeof i == "boolean" ? i : !1, g = (e) => {
591
+ }), ke = ({ field: e, extra: t }) => {
592
+ let n = o(), { value: r } = e, { InputLabel: i, node: a, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = S(), f = a.data.options || [], p = f.length > 0, m = Array.isArray(r) ? r : [], h = typeof r == "boolean" ? r : !1, g = (e) => {
593
593
  s(p ? m.includes(e) ? m.filter((t) => t !== e) : [...m, e] : !h);
594
594
  }, _ = (e) => p ? m.includes(e) : h;
595
595
  return /* @__PURE__ */ R(H, {
596
596
  style: G.container,
597
597
  children: [
598
- /* @__PURE__ */ L(a, {
598
+ /* @__PURE__ */ L(i, {
599
599
  label: l,
600
- required: o.data.required
600
+ required: a.data.required
601
601
  }),
602
602
  f.length > 0 ? f.map((e) => {
603
- let t = r(e.description);
603
+ let t = n(e.description);
604
604
  return /* @__PURE__ */ R(V, {
605
605
  style: G.option,
606
606
  onPress: () => g(e.value),
@@ -612,7 +612,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
612
612
  checked: _(e.value),
613
613
  disabled: e.disabled
614
614
  },
615
- accessibilityLabel: r(e.label) || e.value,
615
+ accessibilityLabel: n(e.label) || e.value,
616
616
  children: [
617
617
  /* @__PURE__ */ L(H, {
618
618
  style: [
@@ -631,7 +631,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
631
631
  children: "✓"
632
632
  })
633
633
  }),
634
- e.image ? /* @__PURE__ */ L(pe, {
634
+ e.image ? /* @__PURE__ */ L(me, {
635
635
  source: { uri: e.image },
636
636
  style: G.image
637
637
  }) : null,
@@ -643,7 +643,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
643
643
  { color: d.textSecondary },
644
644
  e.disabled && { color: d.textMuted }
645
645
  ],
646
- children: r(e.label) || e.value
646
+ children: n(e.label) || e.value
647
647
  }), t && /* @__PURE__ */ L(B, {
648
648
  style: [G.optionDescription, { color: d.textMuted }],
649
649
  children: t
@@ -658,7 +658,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
658
658
  accessible: !0,
659
659
  accessibilityRole: "checkbox",
660
660
  accessibilityState: { checked: h },
661
- accessibilityLabel: l || o.data.name,
661
+ accessibilityLabel: l || a.data.name,
662
662
  children: [/* @__PURE__ */ L(H, {
663
663
  style: [
664
664
  G.checkbox,
@@ -731,15 +731,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
731
731
  },
732
732
  optionLabel: { fontSize: 14 },
733
733
  optionTextContainer: { flex: 1 }
734
- }), ke = ({ field: e, extra: t }) => {
735
- let [r, i] = F(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b(), m = n(), h = a ? new Date(a) : void 0, { year: g, month: _, today: v } = ce(() => {
734
+ }), Ae = ({ field: e, extra: t }) => {
735
+ let [n, r] = I(!1), { value: i, placeholder: a } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = S(), m = o(), h = i ? new Date(i) : void 0, { year: g, month: _, today: v } = ce(() => {
736
736
  let e = h || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
737
737
  return r.setHours(0, 0, 0, 0), {
738
738
  month: n,
739
739
  today: r,
740
740
  year: t
741
741
  };
742
- }, [h]), [y, x] = F(g), [S, C] = F(_), ee = [
742
+ }, [h]), [y, b] = I(g), [x, C] = I(_), w = [
743
743
  "January",
744
744
  "February",
745
745
  "March",
@@ -752,36 +752,36 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
752
752
  "October",
753
753
  "November",
754
754
  "December"
755
- ], w = ce(() => {
756
- let e = new Date(y, S, 1).getDay(), t = new Date(y, S + 1, 0).getDate(), n = new Date(y, S, 0).getDate(), r = [];
755
+ ], T = ce(() => {
756
+ let e = new Date(y, x, 1).getDay(), t = new Date(y, x + 1, 0).getDate(), n = new Date(y, x, 0).getDate(), r = [];
757
757
  for (let t = e - 1; t >= 0; t--) r.push({
758
- date: new Date(y, S - 1, n - t),
758
+ date: new Date(y, x - 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(y, S, e),
763
+ date: new Date(y, x, 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(y, S + 1, e),
769
+ date: new Date(y, x + 1, e),
770
770
  day: e,
771
771
  isCurrentMonth: !1
772
772
  });
773
773
  return r;
774
- }, [y, S]), T = oe((e) => {
775
- c.data.disablePast && e < v || (l(e.toISOString()), i(!1));
774
+ }, [y, x]), E = oe((e) => {
775
+ c.data.disablePast && e < v || (l(e.toISOString()), r(!1));
776
776
  }, [
777
777
  c.data.disablePast,
778
778
  v,
779
779
  l
780
- ]), te = () => {
781
- S === 0 ? (C(11), x(y - 1)) : C(S - 1);
782
- }, E = () => {
783
- S === 11 ? (C(0), x(y + 1)) : C(S + 1);
784
- }, D = () => h ? h.toLocaleDateString() : o || m("renderer.defaultInputs.selectDate"), ne = (e) => c.data.disablePast ? e < v : !1, O = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
780
+ ]), ee = () => {
781
+ x === 0 ? (C(11), b(y - 1)) : C(x - 1);
782
+ }, D = () => {
783
+ x === 11 ? (C(0), b(y + 1)) : C(x + 1);
784
+ }, O = () => h ? h.toLocaleDateString() : a || m("renderer.defaultInputs.selectDate"), k = (e) => c.data.disablePast ? e < v : !1, A = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
785
785
  return /* @__PURE__ */ R(H, {
786
786
  style: K.container,
787
787
  children: [
@@ -798,30 +798,30 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
798
798
  },
799
799
  u && { borderColor: p.error }
800
800
  ],
801
- onPress: () => i(!0),
801
+ onPress: () => r(!0),
802
802
  activeOpacity: .7,
803
803
  children: [/* @__PURE__ */ L(B, {
804
804
  style: [
805
805
  K.triggerText,
806
806
  { color: p.text },
807
- !a && { color: p.textMuted }
807
+ !i && { color: p.textMuted }
808
808
  ],
809
809
  numberOfLines: 1,
810
- children: D()
810
+ children: O()
811
811
  }), /* @__PURE__ */ L(B, {
812
812
  style: K.icon,
813
813
  children: "📅"
814
814
  })]
815
815
  }),
816
- /* @__PURE__ */ L(me, {
817
- visible: r,
816
+ /* @__PURE__ */ L(he, {
817
+ visible: n,
818
818
  transparent: !0,
819
819
  animationType: "fade",
820
- onRequestClose: () => i(!1),
820
+ onRequestClose: () => r(!1),
821
821
  children: /* @__PURE__ */ L(V, {
822
822
  style: K.modalOverlay,
823
823
  activeOpacity: 1,
824
- onPress: () => i(!1),
824
+ onPress: () => r(!1),
825
825
  children: /* @__PURE__ */ R(V, {
826
826
  style: [K.modalContent, { backgroundColor: p.card }],
827
827
  activeOpacity: 1,
@@ -831,9 +831,9 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
831
831
  style: [K.modalHeader, { borderBottomColor: p.separator }],
832
832
  children: [/* @__PURE__ */ L(B, {
833
833
  style: [K.modalTitle, { color: p.text }],
834
- children: d || o || m("renderer.defaultInputs.selectDate")
834
+ children: d || a || m("renderer.defaultInputs.selectDate")
835
835
  }), /* @__PURE__ */ L(V, {
836
- onPress: () => i(!1),
836
+ onPress: () => r(!1),
837
837
  children: /* @__PURE__ */ L(B, {
838
838
  style: [K.closeButton, { color: p.textMuted }],
839
839
  children: "✕"
@@ -844,7 +844,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
844
844
  style: K.calendarHeader,
845
845
  children: [
846
846
  /* @__PURE__ */ L(V, {
847
- onPress: te,
847
+ onPress: ee,
848
848
  style: K.navButton,
849
849
  children: /* @__PURE__ */ L(B, {
850
850
  style: [K.navButtonText, { color: p.primary }],
@@ -854,13 +854,13 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
854
854
  /* @__PURE__ */ R(B, {
855
855
  style: [K.monthYear, { color: p.text }],
856
856
  children: [
857
- ee[S],
857
+ w[x],
858
858
  " ",
859
859
  y
860
860
  ]
861
861
  }),
862
862
  /* @__PURE__ */ L(V, {
863
- onPress: E,
863
+ onPress: D,
864
864
  style: K.navButton,
865
865
  children: /* @__PURE__ */ L(B, {
866
866
  style: [K.navButtonText, { color: p.primary }],
@@ -884,15 +884,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
884
884
  children: e
885
885
  }, e))
886
886
  }),
887
- /* @__PURE__ */ L(fe, {
888
- data: w,
887
+ /* @__PURE__ */ L(pe, {
888
+ data: T,
889
889
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
890
890
  numColumns: 7,
891
891
  scrollEnabled: !1,
892
892
  style: K.calendar,
893
893
  contentContainerStyle: K.calendarContent,
894
894
  renderItem: ({ item: e }) => {
895
- let t = ne(e.date), n = O(e.date);
895
+ let t = k(e.date), n = A(e.date);
896
896
  return /* @__PURE__ */ L(V, {
897
897
  style: [
898
898
  K.dayCell,
@@ -903,7 +903,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
903
903
  },
904
904
  t && K.dayCellDisabled
905
905
  ],
906
- onPress: () => T(e.date),
906
+ onPress: () => E(e.date),
907
907
  disabled: t,
908
908
  activeOpacity: .7,
909
909
  children: /* @__PURE__ */ L(B, {
@@ -1031,15 +1031,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1031
1031
  flexDirection: "row",
1032
1032
  marginBottom: 8
1033
1033
  }
1034
- }), Ae = ({ field: e, extra: t }) => {
1035
- let [r, i] = F(!1), [a, o] = F(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, m = n(), { colors: h } = b(), g = Array.isArray(s) ? s : [], _ = g[0] ? new Date(g[0]) : void 0, v = g[1] ? new Date(g[1]) : void 0, { year: y, month: x, today: S } = ce(() => {
1034
+ }), je = ({ field: e, extra: t }) => {
1035
+ let [n, r] = I(!1), [i, a] = I(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, m = o(), { colors: h } = S(), g = Array.isArray(s) ? s : [], _ = g[0] ? new Date(g[0]) : void 0, v = g[1] ? new Date(g[1]) : void 0, { year: y, month: b, today: x } = ce(() => {
1036
1036
  let e = _ || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
1037
1037
  return r.setHours(0, 0, 0, 0), {
1038
1038
  month: n,
1039
1039
  today: r,
1040
1040
  year: t
1041
1041
  };
1042
- }, [_]), [C, ee] = F(y), [w, T] = F(x), te = [
1042
+ }, [_]), [C, w] = I(y), [T, E] = I(b), ee = [
1043
1043
  "January",
1044
1044
  "February",
1045
1045
  "March",
@@ -1052,39 +1052,39 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1052
1052
  "October",
1053
1053
  "November",
1054
1054
  "December"
1055
- ], E = ce(() => {
1056
- let e = new Date(C, w, 1).getDay(), t = new Date(C, w + 1, 0).getDate(), n = new Date(C, w, 0).getDate(), r = [];
1055
+ ], D = ce(() => {
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
- date: new Date(C, w - 1, n - t),
1058
+ date: new Date(C, T - 1, n - t),
1059
1059
  day: n - t,
1060
1060
  isCurrentMonth: !1
1061
1061
  });
1062
1062
  for (let e = 1; e <= t; e++) r.push({
1063
- date: new Date(C, w, e),
1063
+ date: new Date(C, T, e),
1064
1064
  day: e,
1065
1065
  isCurrentMonth: !0
1066
1066
  });
1067
1067
  let i = 42 - r.length;
1068
1068
  for (let e = 1; e <= i; e++) r.push({
1069
- date: new Date(C, w + 1, e),
1069
+ date: new Date(C, T + 1, e),
1070
1070
  day: e,
1071
1071
  isCurrentMonth: !1
1072
1072
  });
1073
1073
  return r;
1074
- }, [C, w]), D = oe((e) => {
1075
- l.data.disablePast && e < S || (a ? (u([e.toISOString(), v?.toISOString()]), o(!1)) : (u(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), i(!1), o(!0)));
1074
+ }, [C, T]), O = oe((e) => {
1075
+ l.data.disablePast && e < x || (i ? (u([e.toISOString(), v?.toISOString()]), a(!1)) : (u(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), r(!1), a(!0)));
1076
1076
  }, [
1077
1077
  l.data.disablePast,
1078
- S,
1079
- a,
1078
+ x,
1079
+ i,
1080
1080
  _,
1081
1081
  v,
1082
1082
  u
1083
- ]), ne = () => {
1084
- w === 0 ? (T(11), ee(C - 1)) : T(w - 1);
1085
- }, O = () => {
1086
- w === 11 ? (T(0), ee(C + 1)) : T(w + 1);
1087
- }, k = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), A = (e) => l.data.disablePast ? e < S : !1, j = (e) => _ && v ? e >= _ && e <= v : !1, re = (e) => {
1083
+ ]), k = () => {
1084
+ T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1085
+ }, A = () => {
1086
+ T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1087
+ }, j = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), te = (e) => l.data.disablePast ? e < x : !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;
@@ -1105,7 +1105,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1105
1105
  },
1106
1106
  d && { borderColor: h.error }
1107
1107
  ],
1108
- onPress: () => i(!0),
1108
+ onPress: () => r(!0),
1109
1109
  activeOpacity: .7,
1110
1110
  children: [/* @__PURE__ */ L(B, {
1111
1111
  style: [
@@ -1114,21 +1114,21 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1114
1114
  !_ && { color: h.textMuted }
1115
1115
  ],
1116
1116
  numberOfLines: 1,
1117
- children: k()
1117
+ children: j()
1118
1118
  }), /* @__PURE__ */ L(B, {
1119
1119
  style: q.icon,
1120
1120
  children: "📅"
1121
1121
  })]
1122
1122
  }),
1123
- /* @__PURE__ */ L(me, {
1124
- visible: r,
1123
+ /* @__PURE__ */ L(he, {
1124
+ visible: n,
1125
1125
  transparent: !0,
1126
1126
  animationType: "fade",
1127
- onRequestClose: () => i(!1),
1127
+ onRequestClose: () => r(!1),
1128
1128
  children: /* @__PURE__ */ L(V, {
1129
1129
  style: q.modalOverlay,
1130
1130
  activeOpacity: 1,
1131
- onPress: () => i(!1),
1131
+ onPress: () => r(!1),
1132
1132
  children: /* @__PURE__ */ R(V, {
1133
1133
  style: [q.modalContent, { backgroundColor: h.card }],
1134
1134
  activeOpacity: 1,
@@ -1140,7 +1140,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1140
1140
  style: [q.modalTitle, { color: h.text }],
1141
1141
  children: f || m("renderer.defaultInputs.selectDateRange")
1142
1142
  }), /* @__PURE__ */ L(V, {
1143
- onPress: () => i(!1),
1143
+ onPress: () => r(!1),
1144
1144
  children: /* @__PURE__ */ L(B, {
1145
1145
  style: [q.closeButton, { color: h.textMuted }],
1146
1146
  children: "✕"
@@ -1151,14 +1151,14 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1151
1151
  style: [q.rangeIndicator, { backgroundColor: h.primaryLight }],
1152
1152
  children: /* @__PURE__ */ L(B, {
1153
1153
  style: [q.rangeIndicatorText, { color: h.primary }],
1154
- children: m(a ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
1154
+ children: m(i ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
1155
1155
  })
1156
1156
  }),
1157
1157
  /* @__PURE__ */ R(H, {
1158
1158
  style: q.calendarHeader,
1159
1159
  children: [
1160
1160
  /* @__PURE__ */ L(V, {
1161
- onPress: ne,
1161
+ onPress: k,
1162
1162
  style: q.navButton,
1163
1163
  children: /* @__PURE__ */ L(B, {
1164
1164
  style: [q.navButtonText, { color: h.primary }],
@@ -1168,13 +1168,13 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1168
1168
  /* @__PURE__ */ R(B, {
1169
1169
  style: [q.monthYear, { color: h.text }],
1170
1170
  children: [
1171
- te[w],
1171
+ ee[T],
1172
1172
  " ",
1173
1173
  C
1174
1174
  ]
1175
1175
  }),
1176
1176
  /* @__PURE__ */ L(V, {
1177
- onPress: O,
1177
+ onPress: A,
1178
1178
  style: q.navButton,
1179
1179
  children: /* @__PURE__ */ L(B, {
1180
1180
  style: [q.navButtonText, { color: h.primary }],
@@ -1198,15 +1198,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1198
1198
  children: e
1199
1199
  }, e))
1200
1200
  }),
1201
- /* @__PURE__ */ L(fe, {
1202
- data: E,
1201
+ /* @__PURE__ */ L(pe, {
1202
+ data: D,
1203
1203
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
1204
1204
  numColumns: 7,
1205
1205
  scrollEnabled: !1,
1206
1206
  style: q.calendar,
1207
1207
  contentContainerStyle: q.calendarContent,
1208
1208
  renderItem: ({ item: e }) => {
1209
- let t = A(e.date), n = j(e.date), r = re(e.date);
1209
+ let t = te(e.date), n = ne(e.date), r = re(e.date);
1210
1210
  return /* @__PURE__ */ L(V, {
1211
1211
  style: [
1212
1212
  q.dayCell,
@@ -1218,7 +1218,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1218
1218
  },
1219
1219
  t && q.dayCellDisabled
1220
1220
  ],
1221
- onPress: () => D(e.date),
1221
+ onPress: () => O(e.date),
1222
1222
  disabled: t,
1223
1223
  activeOpacity: .7,
1224
1224
  children: /* @__PURE__ */ L(B, {
@@ -1357,58 +1357,58 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1357
1357
  flexDirection: "row",
1358
1358
  marginBottom: 8
1359
1359
  }
1360
- }), je = ({ field: e, extra: t }) => {
1361
- let [r, i] = F(null), [a, o] = F(!0), { value: s } = e, { InputLabel: c, node: l, setValue: d, error: f, label: p, helperText: m } = t, { colors: h } = b(), g = n(), _ = D(s), v = l.data.multiple, y = oe(async () => {
1362
- if (r) try {
1363
- let e = (await r({ allowMultiSelection: v })).map((e) => ({
1360
+ }), Me = ({ field: e, extra: t }) => {
1361
+ let [n, r] = I(null), [i, a] = I(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, { colors: m } = S(), h = o(), _ = g(s), v = l.data.multiple, y = oe(async () => {
1362
+ if (n) try {
1363
+ let e = (await n({ allowMultiSelection: v })).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
- d(v ? [..._, ...e] : e[0] || null);
1370
+ u(v ? [..._, ...e] : e[0] || null);
1371
1371
  } catch (e) {
1372
- e.code !== "DOCUMENT_PICKER_CANCELED" && ue.alert("Error", g("renderer.defaultInputs.filePickerError"));
1372
+ e.code !== "DOCUMENT_PICKER_CANCELED" && de.alert("Error", h("renderer.defaultInputs.filePickerError"));
1373
1373
  }
1374
1374
  }, [
1375
- r,
1375
+ n,
1376
1376
  _,
1377
1377
  v,
1378
- d,
1379
- g
1380
- ]), x = oe((e) => {
1378
+ u,
1379
+ h
1380
+ ]), b = oe((e) => {
1381
1381
  let t = _.filter((t, n) => n !== e);
1382
- d(t.length > 0 ? t : null);
1383
- }, [_, d]);
1382
+ u(t.length > 0 ? t : null);
1383
+ }, [_, u]);
1384
1384
  return se(() => {
1385
1385
  (async () => {
1386
1386
  try {
1387
1387
  let { pick: e } = await import("react-native-document-picker");
1388
- i(() => e);
1388
+ r(() => e);
1389
1389
  } catch {
1390
- i(null);
1390
+ r(null);
1391
1391
  } finally {
1392
- o(!1);
1392
+ a(!1);
1393
1393
  }
1394
1394
  })();
1395
- }, []), a ? null : r ? /* @__PURE__ */ R(H, {
1395
+ }, []), i ? null : n ? /* @__PURE__ */ R(H, {
1396
1396
  style: J.container,
1397
1397
  children: [
1398
1398
  /* @__PURE__ */ L(c, {
1399
- label: p,
1399
+ label: f,
1400
1400
  required: l.data.required
1401
1401
  }),
1402
1402
  _.length > 0 && /* @__PURE__ */ L(H, {
1403
1403
  style: J.filesList,
1404
1404
  children: _.map((e, t) => /* @__PURE__ */ R(H, {
1405
1405
  style: [J.fileItem, {
1406
- backgroundColor: h.card,
1407
- borderColor: h.separator
1406
+ backgroundColor: m.card,
1407
+ borderColor: m.separator
1408
1408
  }],
1409
1409
  children: [
1410
1410
  /* @__PURE__ */ L(H, {
1411
- style: [J.fileIcon, { backgroundColor: h.muted }],
1411
+ style: [J.fileIcon, { backgroundColor: m.muted }],
1412
1412
  children: /* @__PURE__ */ L(B, {
1413
1413
  style: J.fileIconText,
1414
1414
  children: "📄"
@@ -1417,21 +1417,21 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1417
1417
  /* @__PURE__ */ R(H, {
1418
1418
  style: J.fileInfo,
1419
1419
  children: [/* @__PURE__ */ L(B, {
1420
- style: [J.fileName, { color: h.text }],
1420
+ style: [J.fileName, { color: m.text }],
1421
1421
  numberOfLines: 1,
1422
1422
  children: e.name
1423
1423
  }), e.size > 0 && /* @__PURE__ */ L(B, {
1424
- style: [J.fileSize, { color: h.textMuted }],
1425
- children: u(e.size)
1424
+ style: [J.fileSize, { color: m.textMuted }],
1425
+ children: D(e.size)
1426
1426
  })]
1427
1427
  }),
1428
1428
  /* @__PURE__ */ L(V, {
1429
1429
  style: J.removeButton,
1430
- onPress: () => x(t),
1430
+ onPress: () => b(t),
1431
1431
  activeOpacity: .7,
1432
- accessibilityLabel: g("renderer.defaultInputs.removeFile"),
1432
+ accessibilityLabel: h("renderer.defaultInputs.removeFile"),
1433
1433
  children: /* @__PURE__ */ L(B, {
1434
- style: [J.removeButtonText, { color: h.textMuted }],
1434
+ style: [J.removeButtonText, { color: m.textMuted }],
1435
1435
  children: "✕"
1436
1436
  })
1437
1437
  })
@@ -1440,45 +1440,45 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1440
1440
  }),
1441
1441
  /* @__PURE__ */ L(V, {
1442
1442
  style: [J.pickButton, {
1443
- backgroundColor: h.input,
1444
- borderColor: h.border
1443
+ backgroundColor: m.input,
1444
+ borderColor: m.border
1445
1445
  }],
1446
1446
  onPress: y,
1447
1447
  activeOpacity: .7,
1448
1448
  children: /* @__PURE__ */ L(B, {
1449
- style: [J.pickButtonText, { color: h.textMuted }],
1450
- children: _.length === 0 ? g(v ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : g(v ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
1449
+ style: [J.pickButtonText, { color: m.textMuted }],
1450
+ children: _.length === 0 ? h(v ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : h(v ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
1451
1451
  })
1452
1452
  }),
1453
- f && /* @__PURE__ */ L(B, {
1454
- style: [J.error, { color: h.error }],
1455
- children: f
1453
+ d && /* @__PURE__ */ L(B, {
1454
+ style: [J.error, { color: m.error }],
1455
+ children: d
1456
1456
  }),
1457
- m && !f && /* @__PURE__ */ L(B, {
1458
- style: [J.helperText, { color: h.textMuted }],
1459
- children: m
1457
+ p && !d && /* @__PURE__ */ L(B, {
1458
+ style: [J.helperText, { color: m.textMuted }],
1459
+ children: p
1460
1460
  })
1461
1461
  ]
1462
1462
  }) : /* @__PURE__ */ R(H, {
1463
1463
  style: J.container,
1464
1464
  children: [
1465
1465
  /* @__PURE__ */ L(c, {
1466
- label: p,
1466
+ label: f,
1467
1467
  required: l.data.required
1468
1468
  }),
1469
1469
  /* @__PURE__ */ L(H, {
1470
1470
  style: [J.unavailableContainer, {
1471
- backgroundColor: h.errorLight,
1472
- borderColor: h.error
1471
+ backgroundColor: m.errorLight,
1472
+ borderColor: m.error
1473
1473
  }],
1474
1474
  children: /* @__PURE__ */ L(B, {
1475
- style: [J.unavailableText, { color: h.error }],
1476
- children: g("renderer.defaultInputs.filePickerUnavailable")
1475
+ style: [J.unavailableText, { color: m.error }],
1476
+ children: h("renderer.defaultInputs.filePickerUnavailable")
1477
1477
  })
1478
1478
  }),
1479
- m && /* @__PURE__ */ L(B, {
1480
- style: [J.helperText, { color: h.textMuted }],
1481
- children: m
1479
+ p && /* @__PURE__ */ L(B, {
1480
+ style: [J.helperText, { color: m.textMuted }],
1481
+ children: p
1482
1482
  })
1483
1483
  ]
1484
1484
  });
@@ -1546,15 +1546,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1546
1546
  fontSize: 12,
1547
1547
  textAlign: "center"
1548
1548
  }
1549
- }), Me = (e) => null, Ne = ({ missing: e, children: t }) => {
1550
- let r = n(), { colors: i } = b();
1551
- return /* @__PURE__ */ R(I, { children: [t, e.length > 0 && /* @__PURE__ */ R(H, {
1552
- style: Pe.container,
1549
+ }), Ne = (e) => null, Pe = ({ missing: e, children: t }) => {
1550
+ let n = o(), { colors: r } = S();
1551
+ return /* @__PURE__ */ R(le, { children: [t, e.length > 0 && /* @__PURE__ */ R(H, {
1552
+ style: Fe.container,
1553
1553
  children: [/* @__PURE__ */ L(B, {
1554
- style: [Pe.title, { color: i.textMuted }],
1555
- children: r("renderer.dependencyHint.title")
1554
+ style: [Fe.title, { color: r.textMuted }],
1555
+ children: n("renderer.dependencyHint.title")
1556
1556
  }), e.map((e) => /* @__PURE__ */ R(B, {
1557
- style: [Pe.item, { color: i.textMuted }],
1557
+ style: [Fe.item, { color: r.textMuted }],
1558
1558
  children: [
1559
1559
  "•",
1560
1560
  " ",
@@ -1562,7 +1562,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1562
1562
  ]
1563
1563
  }, e.id))]
1564
1564
  })] });
1565
- }, Pe = z.create({
1565
+ }, Fe = z.create({
1566
1566
  container: {
1567
1567
  gap: 2,
1568
1568
  marginTop: 4
@@ -1572,110 +1572,110 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1572
1572
  fontSize: 12,
1573
1573
  fontWeight: "500"
1574
1574
  }
1575
- }), Fe = (e) => {
1575
+ }), Ie = (e) => {
1576
1576
  let t = e.matchAll(/{{([\w-]+)}}/g);
1577
1577
  return Array.from(t, (e) => e[1]);
1578
- }, Ie = (e, t) => Fe(e).every((e) => {
1578
+ }, Le = (e, t) => Ie(e).every((e) => {
1579
1579
  let n = t[e];
1580
1580
  return n != null && n !== "";
1581
- }), Le = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1581
+ }), Re = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1582
1582
  let i = t[r], a = i == null ? "" : String(i);
1583
1583
  return n ? encodeURIComponent(a) : a;
1584
- }), Re = ({ field: e, extra: o }) => {
1585
- let [l, u] = F(!1), [d, f] = F(null), [p, m] = F([]), [h, g] = F(""), [v, y] = F(!1), { value: x, placeholder: S } = e, { InputLabel: C, node: w, setValue: T, error: D, label: O, helperText: k, missingDependencies: A } = o, { formValues: j, inputNodes: re, headers: ie, baseUrl: ae } = c(), { colors: M } = b(), { httpConfig: N } = w.data, I = n(), ue = P(!1), de = P(!1), pe = P(""), he = P(N), z = P(j), ge = P(re), ve = P(ie), ye = P(ae), be = P(T), xe = P(null), Se = P(null), Ce = P(w.data.normalizeOptionLabels !== !1), we = ce(() => N?.url ? Fe(N.url) : [], [N?.url]), U = we.length > 0, Ee = ce(() => we.map((e) => `${e}:${String(j[e] ?? "")}`).join("|"), [we, j]), De = ce(() => N?.url ? U ? Ie(N.url, j) : !0 : !1, [
1584
+ }), ze = ({ field: e, extra: f }) => {
1585
+ let [p, m] = I(!1), [h, g] = I(null), [_, v] = I([]), [y, b] = I(""), [x, C] = I(!1), { value: w, placeholder: E } = e, { InputLabel: ee, node: D, setValue: O, error: k, label: A, helperText: j, missingDependencies: te } = f, { formValues: ne, inputNodes: re, headers: ie, baseUrl: ae } = a(), { colors: M } = S(), { httpConfig: N } = D.data, P = o(), le = F(!1), de = F(!1), fe = F(""), me = F(N), ge = F(ne), z = F(re), _e = F(ie), ye = F(ae), be = F(O), xe = F(null), Se = F(null), Ce = F(D.data.normalizeOptionLabels !== !1), we = ce(() => N?.url ? Ie(N.url) : [], [N?.url]), Te = we.length > 0, U = ce(() => we.map((e) => `${e}:${String(ne[e] ?? "")}`).join("|"), [we, ne]), De = ce(() => N?.url ? Te ? Le(N.url, ne) : !0 : !1, [
1586
1586
  N?.url,
1587
- U,
1588
- j
1589
- ]), W = oe(async (e) => {
1587
+ Te,
1588
+ ne
1589
+ ]), Oe = oe(async (e) => {
1590
1590
  Se.current && Se.current.abort();
1591
- let n = new AbortController();
1592
- Se.current = n;
1593
- let o = he.current, c = z.current, l = be.current;
1591
+ let a = new AbortController();
1592
+ Se.current = a;
1593
+ let o = me.current, f = ge.current, p = be.current;
1594
1594
  if (!o?.url) {
1595
- f(I("renderer.defaultHttpInput.noUrlConfigured")), Se.current = null;
1595
+ g(P("renderer.defaultHttpInput.noUrlConfigured")), Se.current = null;
1596
1596
  return;
1597
1597
  }
1598
- if (o.url && !Ie(o.url, c)) {
1598
+ if (o.url && !Le(o.url, f)) {
1599
1599
  Se.current = null;
1600
1600
  return;
1601
1601
  }
1602
- u(!0), f(null);
1602
+ m(!0), g(null);
1603
1603
  try {
1604
- let u = i(Le(o.url, c, !0), ye.current), d = s(o.searchParam && e ? `${u}${u.includes("?") ? "&" : "?"}${o.searchParam}=${encodeURIComponent(e)}` : u, r(o.queryParams, c)), p = _({ "Content-Type": "application/json" }, r(ve.current, c), r(o.headers, c)), h = [
1604
+ let m = l(Re(o.url, f, !0), ye.current), h = r(o.searchParam && e ? `${m}${m.includes("?") ? "&" : "?"}${o.searchParam}=${encodeURIComponent(e)}` : m, s(o.queryParams, f)), _ = t({ "Content-Type": "application/json" }, s(_e.current, f), s(o.headers, f)), y = [
1605
1605
  "POST",
1606
1606
  "PUT",
1607
1607
  "PATCH"
1608
- ].includes(o.method || "") ? o.sendAllFormValues ? JSON.stringify(ee(c, ge.current)) : te(o.body, c, ge.current) : void 0, g = setTimeout(() => n.abort(), 3e4), v = await fetch(d, {
1609
- body: h || void 0,
1610
- headers: Object.fromEntries(Object.entries(p).filter(([, e]) => e)),
1608
+ ].includes(o.method || "") ? o.sendAllFormValues ? JSON.stringify(T(f, z.current)) : d(o.body, f, z.current) : void 0, b = setTimeout(() => a.abort(), 3e4), x = await fetch(h, {
1609
+ body: y || void 0,
1610
+ headers: Object.fromEntries(Object.entries(_).filter(([, e]) => e)),
1611
1611
  method: o.method || "GET",
1612
- signal: n.signal
1612
+ signal: a.signal
1613
1613
  });
1614
- if (clearTimeout(g), !v.ok) {
1615
- f(`HTTP Error ${v.status}: ${v.statusText}`);
1614
+ if (clearTimeout(b), !x.ok) {
1615
+ g(`HTTP Error ${x.status}: ${x.statusText}`);
1616
1616
  return;
1617
1617
  }
1618
- let y = a(await v.text());
1619
- if (!y.ok) {
1620
- f(I("renderer.defaultHttpInput.invalidJson"));
1618
+ let S = i(await x.text());
1619
+ if (!S.ok) {
1620
+ g(P("renderer.defaultHttpInput.invalidJson"));
1621
1621
  return;
1622
1622
  }
1623
- let b = ne(y.value), x = o.responsePath ? t(b, o.responsePath) : b;
1624
- if (o.responseMapping && Array.isArray(x)) {
1625
- let { valueField: e = "value", labelField: n = "label", descriptionField: r, imageField: i } = o.responseMapping, a = Ce.current;
1626
- m(x.map((o) => {
1627
- let s = r ? t(o, r) : void 0, c = i ? t(o, i) : void 0, l = String(t(o, n) || "");
1623
+ let C = n(S.value), w = o.responsePath ? c(C, o.responsePath) : C;
1624
+ if (o.responseMapping && Array.isArray(w)) {
1625
+ let { valueField: e = "value", labelField: t = "label", descriptionField: n, imageField: r } = o.responseMapping, i = Ce.current;
1626
+ v(w.map((a) => {
1627
+ let o = n ? c(a, n) : void 0, s = r ? c(a, r) : void 0, l = String(c(a, t) || "");
1628
1628
  return {
1629
- description: s != null && s !== "" ? String(s) : void 0,
1630
- image: typeof c == "string" && c !== "" ? c : void 0,
1631
- label: a ? E(l) : l,
1632
- value: String(t(o, e) || "")
1629
+ description: o != null && o !== "" ? String(o) : void 0,
1630
+ image: typeof s == "string" && s !== "" ? s : void 0,
1631
+ label: i ? u(l) : l,
1632
+ value: String(c(a, e) || "")
1633
1633
  };
1634
1634
  }));
1635
- } else l(typeof x == "string" ? x : JSON.stringify(x));
1635
+ } else p(typeof w == "string" ? w : JSON.stringify(w));
1636
1636
  } catch (e) {
1637
1637
  if (e instanceof Error && e.name === "AbortError") return;
1638
- f(e instanceof Error ? e.message : I("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1638
+ g(e instanceof Error ? e.message : P("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1639
1639
  } finally {
1640
- Se.current === n && (u(!1), Se.current = null);
1640
+ Se.current === a && (m(!1), Se.current = null);
1641
1641
  }
1642
- }, [I]);
1642
+ }, [P]);
1643
1643
  if (se(() => {
1644
- he.current = N, z.current = j, ge.current = re, ve.current = ie, ye.current = ae, be.current = T, xe.current = W, Ce.current = w.data.normalizeOptionLabels !== !1;
1644
+ me.current = N, ge.current = ne, z.current = re, _e.current = ie, ye.current = ae, be.current = O, xe.current = Oe, Ce.current = D.data.normalizeOptionLabels !== !1;
1645
1645
  }, [
1646
1646
  N,
1647
- j,
1647
+ ne,
1648
1648
  re,
1649
1649
  ie,
1650
1650
  ae,
1651
- T,
1652
- W,
1653
- w.data.normalizeOptionLabels
1651
+ O,
1652
+ Oe,
1653
+ D.data.normalizeOptionLabels
1654
1654
  ]), se(() => () => {
1655
- Se.current && Se.current.abort(), ue.current = !1, de.current = !1;
1655
+ Se.current && Se.current.abort(), le.current = !1, de.current = !1;
1656
1656
  }, []), se(() => {
1657
- if (ue.current) return;
1658
- ue.current = !0;
1659
- let e = he.current, t = z.current, n = xe.current, r = e?.url && Ie(e.url, t);
1660
- e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Fe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1657
+ if (le.current) return;
1658
+ le.current = !0;
1659
+ let e = me.current, t = ge.current, n = xe.current, r = e?.url && Le(e.url, t);
1660
+ e?.fetchOnMount && r && n && (n(), e.url && (fe.current = Ie(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1661
1661
  }, []), se(() => {
1662
- if (!ue.current || !U || pe.current === Ee || !De) return;
1662
+ if (!le.current || !Te || fe.current === U || !De) return;
1663
1663
  let e = setTimeout(() => {
1664
- W(), pe.current = Ee;
1664
+ Oe(), fe.current = U;
1665
1665
  }, 500);
1666
1666
  return () => clearTimeout(e);
1667
1667
  }, [
1668
- Ee,
1669
1668
  U,
1669
+ Te,
1670
1670
  De,
1671
- W
1671
+ Oe
1672
1672
  ]), se(() => {
1673
1673
  if (!de.current) {
1674
1674
  de.current = !0;
1675
1675
  return;
1676
1676
  }
1677
- let e = he.current, t = z.current, n = xe.current, r = e?.url && Ie(e.url, t);
1678
- e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Fe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1677
+ let e = me.current, t = ge.current, n = xe.current, r = e?.url && Le(e.url, t);
1678
+ e?.fetchOnMount && r && n && (n(), e.url && (fe.current = Ie(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1679
1679
  }, [ce(() => JSON.stringify({
1680
1680
  body: N?.body,
1681
1681
  fetchOnMount: N?.fetchOnMount,
@@ -1688,28 +1688,28 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1688
1688
  sendAllFormValues: N?.sendAllFormValues,
1689
1689
  url: N?.url
1690
1690
  }), [N])]), se(() => {
1691
- if (!(N?.searchParam && h)) return;
1691
+ if (!(N?.searchParam && y)) return;
1692
1692
  let e = setTimeout(() => {
1693
- W(h);
1693
+ Oe(y);
1694
1694
  }, 300);
1695
1695
  return () => clearTimeout(e);
1696
1696
  }, [
1697
- h,
1697
+ y,
1698
1698
  N?.searchParam,
1699
- W
1699
+ Oe
1700
1700
  ]), N?.responseMapping) {
1701
- let e = Array.isArray(x) ? x[0] : x, t = p.find((t) => t.value === e);
1701
+ let e = Array.isArray(w) ? w[0] : w, t = _.find((t) => t.value === e);
1702
1702
  if (N.searchParam) {
1703
- let n = l && N?.showLoading;
1703
+ let n = p && N?.showLoading;
1704
1704
  return /* @__PURE__ */ R(H, {
1705
1705
  style: Y.container,
1706
1706
  children: [
1707
- /* @__PURE__ */ L(C, {
1708
- label: O,
1709
- required: w.data.required
1707
+ /* @__PURE__ */ L(ee, {
1708
+ label: A,
1709
+ required: D.data.required
1710
1710
  }),
1711
- /* @__PURE__ */ L(Ne, {
1712
- missing: A,
1711
+ /* @__PURE__ */ L(Pe, {
1712
+ missing: te,
1713
1713
  children: /* @__PURE__ */ R(V, {
1714
1714
  style: [
1715
1715
  Y.trigger,
@@ -1717,11 +1717,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1717
1717
  backgroundColor: M.input,
1718
1718
  borderColor: M.border
1719
1719
  },
1720
- D && { borderColor: M.error },
1721
- A.length > 0 && { backgroundColor: M.muted }
1720
+ k && { borderColor: M.error },
1721
+ te.length > 0 && { backgroundColor: M.muted }
1722
1722
  ],
1723
- onPress: () => y(!0),
1724
- disabled: A.length > 0,
1723
+ onPress: () => C(!0),
1724
+ disabled: te.length > 0,
1725
1725
  activeOpacity: .7,
1726
1726
  children: [
1727
1727
  /* @__PURE__ */ L(B, {
@@ -1731,15 +1731,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1731
1731
  !t && { color: M.textMuted }
1732
1732
  ],
1733
1733
  numberOfLines: 1,
1734
- children: t?.label || S || I("renderer.defaultHttpInput.search")
1734
+ children: t?.label || E || P("renderer.defaultHttpInput.search")
1735
1735
  }),
1736
- n && /* @__PURE__ */ L(le, {
1736
+ n && /* @__PURE__ */ L(ue, {
1737
1737
  size: "small",
1738
1738
  color: M.primary,
1739
1739
  style: Y.triggerLoader
1740
1740
  }),
1741
1741
  e ? /* @__PURE__ */ L(V, {
1742
- onPress: () => T(""),
1742
+ onPress: () => O(""),
1743
1743
  hitSlop: {
1744
1744
  bottom: 8,
1745
1745
  left: 8,
@@ -1759,15 +1759,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1759
1759
  ]
1760
1760
  })
1761
1761
  }),
1762
- /* @__PURE__ */ L(me, {
1763
- visible: v,
1762
+ /* @__PURE__ */ L(he, {
1763
+ visible: x,
1764
1764
  transparent: !0,
1765
1765
  animationType: "fade",
1766
- onRequestClose: () => y(!1),
1766
+ onRequestClose: () => C(!1),
1767
1767
  children: /* @__PURE__ */ L(V, {
1768
1768
  style: Y.modalOverlay,
1769
1769
  activeOpacity: 1,
1770
- onPress: () => y(!1),
1770
+ onPress: () => C(!1),
1771
1771
  children: /* @__PURE__ */ R(V, {
1772
1772
  style: [Y.modalContent, { backgroundColor: M.card }],
1773
1773
  activeOpacity: 1,
@@ -1777,9 +1777,9 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1777
1777
  style: [Y.modalHeader, { borderBottomColor: M.separator }],
1778
1778
  children: [/* @__PURE__ */ L(B, {
1779
1779
  style: [Y.modalTitle, { color: M.text }],
1780
- children: O || S || I("renderer.defaultHttpInput.search")
1780
+ children: A || E || P("renderer.defaultHttpInput.search")
1781
1781
  }), /* @__PURE__ */ L(V, {
1782
- onPress: () => y(!1),
1782
+ onPress: () => C(!1),
1783
1783
  children: /* @__PURE__ */ L(B, {
1784
1784
  style: [Y.closeButton, { color: M.textMuted }],
1785
1785
  children: "✕"
@@ -1788,44 +1788,44 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1788
1788
  }),
1789
1789
  /* @__PURE__ */ L(H, {
1790
1790
  style: Y.searchContainer,
1791
- children: /* @__PURE__ */ L(_e, {
1791
+ children: /* @__PURE__ */ L(ve, {
1792
1792
  style: [Y.searchInput, {
1793
1793
  backgroundColor: M.muted,
1794
1794
  borderColor: M.border,
1795
1795
  color: M.text
1796
1796
  }],
1797
- placeholder: I("renderer.defaultHttpInput.search"),
1797
+ placeholder: P("renderer.defaultHttpInput.search"),
1798
1798
  placeholderTextColor: M.textMuted,
1799
- value: h,
1799
+ value: y,
1800
1800
  onChangeText: (e) => {
1801
- g(e), f(null);
1801
+ b(e), g(null);
1802
1802
  },
1803
1803
  autoFocus: !0,
1804
1804
  autoCapitalize: "none",
1805
1805
  autoCorrect: !1
1806
1806
  })
1807
1807
  }),
1808
- l ? /* @__PURE__ */ L(H, {
1808
+ p ? /* @__PURE__ */ L(H, {
1809
1809
  style: Y.loadingContainer,
1810
- children: /* @__PURE__ */ L(le, {
1810
+ children: /* @__PURE__ */ L(ue, {
1811
1811
  size: "small",
1812
1812
  color: M.primary
1813
1813
  })
1814
- }) : d ? /* @__PURE__ */ R(H, {
1814
+ }) : h ? /* @__PURE__ */ R(H, {
1815
1815
  style: Y.errorContainer,
1816
1816
  children: [/* @__PURE__ */ L(B, {
1817
1817
  style: [Y.errorText, { color: M.error }],
1818
- children: d
1818
+ children: h
1819
1819
  }), /* @__PURE__ */ L(V, {
1820
- onPress: () => W(h),
1820
+ onPress: () => Oe(y),
1821
1821
  style: Y.retryButton,
1822
1822
  children: /* @__PURE__ */ L(B, {
1823
1823
  style: [Y.retryButtonText, { color: M.primary }],
1824
- children: I("renderer.defaultHttpInput.retry")
1824
+ children: P("renderer.defaultHttpInput.retry")
1825
1825
  })
1826
1826
  })]
1827
- }) : /* @__PURE__ */ L(fe, {
1828
- data: p,
1827
+ }) : /* @__PURE__ */ L(pe, {
1828
+ data: _,
1829
1829
  keyExtractor: (e) => e.value,
1830
1830
  style: Y.optionsList,
1831
1831
  contentContainerStyle: Y.optionsListContent,
@@ -1833,7 +1833,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1833
1833
  style: Y.emptyContainer,
1834
1834
  children: /* @__PURE__ */ L(B, {
1835
1835
  style: [Y.emptyText, { color: M.textMuted }],
1836
- children: I("renderer.defaultHttpInput.noResults")
1836
+ children: P("renderer.defaultHttpInput.noResults")
1837
1837
  })
1838
1838
  }),
1839
1839
  renderItem: ({ item: t }) => {
@@ -1841,10 +1841,10 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1841
1841
  return /* @__PURE__ */ R(V, {
1842
1842
  style: [Y.option, n && { backgroundColor: M.primaryLight }],
1843
1843
  onPress: () => {
1844
- T(t.value), y(!1);
1844
+ O(t.value), C(!1);
1845
1845
  },
1846
1846
  activeOpacity: .7,
1847
- children: [/* @__PURE__ */ L(Te, {
1847
+ children: [/* @__PURE__ */ L(Ee, {
1848
1848
  label: t.label,
1849
1849
  description: t.description,
1850
1850
  image: t.image
@@ -1859,27 +1859,27 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1859
1859
  })
1860
1860
  })
1861
1861
  }),
1862
- D && /* @__PURE__ */ L(B, {
1862
+ k && /* @__PURE__ */ L(B, {
1863
1863
  style: [Y.error, { color: M.error }],
1864
- children: D
1864
+ children: k
1865
1865
  }),
1866
- k && !D && /* @__PURE__ */ L(B, {
1866
+ j && !k && /* @__PURE__ */ L(B, {
1867
1867
  style: [Y.helperText, { color: M.textMuted }],
1868
- children: k
1868
+ children: j
1869
1869
  })
1870
1870
  ]
1871
1871
  });
1872
1872
  }
1873
- let n = l && N?.showLoading, r = A.length === 0 && p.length === 0 && !n ? d ?? I("renderer.defaultHttpInput.noDataAvailable") : void 0;
1873
+ let n = p && N?.showLoading, r = te.length === 0 && _.length === 0 && !n ? h ?? P("renderer.defaultHttpInput.noDataAvailable") : void 0;
1874
1874
  return /* @__PURE__ */ R(H, {
1875
1875
  style: Y.container,
1876
1876
  children: [
1877
- /* @__PURE__ */ L(C, {
1878
- label: O,
1879
- required: w.data.required
1877
+ /* @__PURE__ */ L(ee, {
1878
+ label: A,
1879
+ required: D.data.required
1880
1880
  }),
1881
- /* @__PURE__ */ L(Ne, {
1882
- missing: A,
1881
+ /* @__PURE__ */ L(Pe, {
1882
+ missing: te,
1883
1883
  children: /* @__PURE__ */ R(V, {
1884
1884
  style: [
1885
1885
  Y.trigger,
@@ -1887,11 +1887,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1887
1887
  backgroundColor: M.input,
1888
1888
  borderColor: M.border
1889
1889
  },
1890
- D && { borderColor: M.error },
1891
- (n || p.length === 0) && { backgroundColor: M.muted }
1890
+ k && { borderColor: M.error },
1891
+ (n || _.length === 0) && { backgroundColor: M.muted }
1892
1892
  ],
1893
- onPress: () => y(!0),
1894
- disabled: n || p.length === 0,
1893
+ onPress: () => C(!0),
1894
+ disabled: n || _.length === 0,
1895
1895
  activeOpacity: .7,
1896
1896
  children: [
1897
1897
  /* @__PURE__ */ L(B, {
@@ -1901,15 +1901,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1901
1901
  !t && { color: M.textMuted }
1902
1902
  ],
1903
1903
  numberOfLines: 1,
1904
- children: t?.label || S || I("renderer.defaultHttpInput.selectOption")
1904
+ children: t?.label || E || P("renderer.defaultHttpInput.selectOption")
1905
1905
  }),
1906
- n && /* @__PURE__ */ L(le, {
1906
+ n && /* @__PURE__ */ L(ue, {
1907
1907
  size: "small",
1908
1908
  color: M.primary,
1909
1909
  style: Y.triggerLoader
1910
1910
  }),
1911
1911
  e ? /* @__PURE__ */ L(V, {
1912
- onPress: () => T(""),
1912
+ onPress: () => O(""),
1913
1913
  hitSlop: {
1914
1914
  bottom: 8,
1915
1915
  left: 8,
@@ -1933,15 +1933,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1933
1933
  style: [Y.disabledMessage, { color: M.error }],
1934
1934
  children: r
1935
1935
  }),
1936
- /* @__PURE__ */ L(me, {
1937
- visible: v,
1936
+ /* @__PURE__ */ L(he, {
1937
+ visible: x,
1938
1938
  transparent: !0,
1939
1939
  animationType: "fade",
1940
- onRequestClose: () => y(!1),
1940
+ onRequestClose: () => C(!1),
1941
1941
  children: /* @__PURE__ */ L(V, {
1942
1942
  style: Y.modalOverlay,
1943
1943
  activeOpacity: 1,
1944
- onPress: () => y(!1),
1944
+ onPress: () => C(!1),
1945
1945
  children: /* @__PURE__ */ R(V, {
1946
1946
  style: [Y.modalContent, { backgroundColor: M.card }],
1947
1947
  activeOpacity: 1,
@@ -1950,16 +1950,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1950
1950
  style: [Y.modalHeader, { borderBottomColor: M.separator }],
1951
1951
  children: [/* @__PURE__ */ L(B, {
1952
1952
  style: [Y.modalTitle, { color: M.text }],
1953
- children: O || S || I("renderer.defaultHttpInput.selectOption")
1953
+ children: A || E || P("renderer.defaultHttpInput.selectOption")
1954
1954
  }), /* @__PURE__ */ L(V, {
1955
- onPress: () => y(!1),
1955
+ onPress: () => C(!1),
1956
1956
  children: /* @__PURE__ */ L(B, {
1957
1957
  style: [Y.closeButton, { color: M.textMuted }],
1958
1958
  children: "✕"
1959
1959
  })
1960
1960
  })]
1961
- }), /* @__PURE__ */ L(fe, {
1962
- data: p,
1961
+ }), /* @__PURE__ */ L(pe, {
1962
+ data: _,
1963
1963
  keyExtractor: (e) => e.value,
1964
1964
  style: Y.optionsList,
1965
1965
  contentContainerStyle: Y.optionsListContent,
@@ -1968,10 +1968,10 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1968
1968
  return /* @__PURE__ */ R(V, {
1969
1969
  style: [Y.option, n && { backgroundColor: M.primaryLight }],
1970
1970
  onPress: () => {
1971
- T(t.value), y(!1);
1971
+ O(t.value), C(!1);
1972
1972
  },
1973
1973
  activeOpacity: .7,
1974
- children: [/* @__PURE__ */ L(Te, {
1974
+ children: [/* @__PURE__ */ L(Ee, {
1975
1975
  label: t.label,
1976
1976
  description: t.description,
1977
1977
  image: t.image
@@ -1985,13 +1985,13 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1985
1985
  })
1986
1986
  })
1987
1987
  }),
1988
- D && /* @__PURE__ */ L(B, {
1988
+ k && /* @__PURE__ */ L(B, {
1989
1989
  style: [Y.error, { color: M.error }],
1990
- children: D
1990
+ children: k
1991
1991
  }),
1992
- k && !D && /* @__PURE__ */ L(B, {
1992
+ j && !k && /* @__PURE__ */ L(B, {
1993
1993
  style: [Y.helperText, { color: M.textMuted }],
1994
- children: k
1994
+ children: j
1995
1995
  })
1996
1996
  ]
1997
1997
  });
@@ -1999,26 +1999,26 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
1999
1999
  return /* @__PURE__ */ R(H, {
2000
2000
  style: Y.container,
2001
2001
  children: [
2002
- /* @__PURE__ */ L(C, {
2003
- label: O,
2004
- required: w.data.required
2002
+ /* @__PURE__ */ L(ee, {
2003
+ label: A,
2004
+ required: D.data.required
2005
2005
  }),
2006
- /* @__PURE__ */ L(_e, {
2006
+ /* @__PURE__ */ L(ve, {
2007
2007
  style: [Y.input, {
2008
2008
  backgroundColor: M.muted,
2009
2009
  borderColor: M.border,
2010
2010
  color: M.textMuted
2011
2011
  }],
2012
- value: typeof x == "string" ? x : JSON.stringify(x),
2012
+ value: typeof w == "string" ? w : JSON.stringify(w),
2013
2013
  editable: !1
2014
2014
  }),
2015
- D && /* @__PURE__ */ L(B, {
2015
+ k && /* @__PURE__ */ L(B, {
2016
2016
  style: [Y.error, { color: M.error }],
2017
- children: D
2017
+ children: k
2018
2018
  }),
2019
- k && !D && /* @__PURE__ */ L(B, {
2019
+ j && !k && /* @__PURE__ */ L(B, {
2020
2020
  style: [Y.helperText, { color: M.textMuted }],
2021
- children: k
2021
+ children: j
2022
2022
  })
2023
2023
  ]
2024
2024
  });
@@ -2138,20 +2138,20 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2138
2138
  flex: 1,
2139
2139
  fontSize: 14
2140
2140
  }
2141
- }), ze = ({ field: e, extra: t }) => {
2142
- let { value: n, placeholder: r, name: i } = e, [a, o] = F(n?.toString() ?? ""), { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b();
2141
+ }), Be = ({ field: e, extra: t }) => {
2142
+ let { value: n, placeholder: r, name: i } = e, [a, o] = I(n?.toString() ?? ""), { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = S();
2143
2143
  return se(() => {
2144
2144
  o(n?.toString() ?? "");
2145
2145
  }, [n]), /* @__PURE__ */ R(H, {
2146
- style: Be.container,
2146
+ style: Ve.container,
2147
2147
  children: [
2148
2148
  /* @__PURE__ */ L(s, {
2149
2149
  label: d,
2150
2150
  required: c.data.required
2151
2151
  }),
2152
- /* @__PURE__ */ L(_e, {
2152
+ /* @__PURE__ */ L(ve, {
2153
2153
  style: [
2154
- Be.input,
2154
+ Ve.input,
2155
2155
  {
2156
2156
  backgroundColor: p.input,
2157
2157
  borderColor: p.border,
@@ -2174,16 +2174,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2174
2174
  accessibilityLabel: i
2175
2175
  }),
2176
2176
  u && /* @__PURE__ */ L(B, {
2177
- style: [Be.error, { color: p.error }],
2177
+ style: [Ve.error, { color: p.error }],
2178
2178
  children: u
2179
2179
  }),
2180
2180
  f && !u && /* @__PURE__ */ L(B, {
2181
- style: [Be.helperText, { color: p.textMuted }],
2181
+ style: [Ve.helperText, { color: p.textMuted }],
2182
2182
  children: f
2183
2183
  })
2184
2184
  ]
2185
2185
  });
2186
- }, Be = z.create({
2186
+ }, Ve = z.create({
2187
2187
  container: { marginBottom: 16 },
2188
2188
  error: {
2189
2189
  fontSize: 12,
@@ -2200,20 +2200,20 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2200
2200
  paddingHorizontal: 12,
2201
2201
  paddingVertical: 8
2202
2202
  }
2203
- }), Ve = ({ field: e, extra: t }) => {
2204
- let [n, r] = F(!1), { value: i, placeholder: a, name: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b();
2203
+ }), He = ({ field: e, extra: t }) => {
2204
+ let [n, r] = I(!1), { value: i, placeholder: a, name: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = S();
2205
2205
  return /* @__PURE__ */ R(H, {
2206
- style: He.container,
2206
+ style: Ue.container,
2207
2207
  children: [
2208
2208
  /* @__PURE__ */ L(s, {
2209
2209
  label: d,
2210
2210
  required: c.data.required
2211
2211
  }),
2212
2212
  /* @__PURE__ */ R(H, {
2213
- style: He.inputWrapper,
2214
- children: [/* @__PURE__ */ L(_e, {
2213
+ style: Ue.inputWrapper,
2214
+ children: [/* @__PURE__ */ L(ve, {
2215
2215
  style: [
2216
- He.input,
2216
+ Ue.input,
2217
2217
  {
2218
2218
  backgroundColor: p.input,
2219
2219
  borderColor: p.border,
@@ -2228,26 +2228,26 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2228
2228
  secureTextEntry: !n,
2229
2229
  accessibilityLabel: o
2230
2230
  }), /* @__PURE__ */ L(V, {
2231
- style: He.toggleButton,
2231
+ style: Ue.toggleButton,
2232
2232
  onPress: () => r(!n),
2233
2233
  activeOpacity: .7,
2234
2234
  children: /* @__PURE__ */ L(B, {
2235
- style: [He.toggleText, { color: p.primary }],
2235
+ style: [Ue.toggleText, { color: p.primary }],
2236
2236
  children: n ? "Hide" : "Show"
2237
2237
  })
2238
2238
  })]
2239
2239
  }),
2240
2240
  u && /* @__PURE__ */ L(B, {
2241
- style: [He.error, { color: p.error }],
2241
+ style: [Ue.error, { color: p.error }],
2242
2242
  children: u
2243
2243
  }),
2244
2244
  f && !u && /* @__PURE__ */ L(B, {
2245
- style: [He.helperText, { color: p.textMuted }],
2245
+ style: [Ue.helperText, { color: p.textMuted }],
2246
2246
  children: f
2247
2247
  })
2248
2248
  ]
2249
2249
  });
2250
- }, He = z.create({
2250
+ }, Ue = z.create({
2251
2251
  container: { marginBottom: 16 },
2252
2252
  error: {
2253
2253
  fontSize: 12,
@@ -2280,16 +2280,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2280
2280
  fontSize: 12,
2281
2281
  fontWeight: "600"
2282
2282
  }
2283
- }), Ue = ({ field: e, extra: t }) => {
2284
- let { value: r } = e, { InputLabel: i, node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = b(), d = n(), f = a.data.options || [], p = r || "", m = a.data.variant !== "default", h = (e) => {
2285
- o(e);
2283
+ }), We = ({ field: e, extra: t }) => {
2284
+ let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: s, label: c, helperText: l } = t, { colors: u } = S(), d = o(), f = i.data.options || [], p = n || "", m = i.data.variant !== "default", h = (e) => {
2285
+ a(e);
2286
2286
  };
2287
2287
  return /* @__PURE__ */ R(H, {
2288
2288
  style: X.container,
2289
2289
  children: [
2290
- /* @__PURE__ */ L(i, {
2290
+ /* @__PURE__ */ L(r, {
2291
2291
  label: c,
2292
- required: a.data.required
2292
+ required: i.data.required
2293
2293
  }),
2294
2294
  f.map((e) => {
2295
2295
  let t = p === e.value, n = d(e.label) || e.value, r = d(e.description);
@@ -2310,7 +2310,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2310
2310
  disabled: e.disabled,
2311
2311
  activeOpacity: .7,
2312
2312
  children: [
2313
- e.image && /* @__PURE__ */ L(pe, {
2313
+ e.image && /* @__PURE__ */ L(me, {
2314
2314
  source: { uri: e.image },
2315
2315
  style: X.cardImage
2316
2316
  }),
@@ -2354,7 +2354,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2354
2354
  ],
2355
2355
  children: t && /* @__PURE__ */ L(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
2356
2356
  }),
2357
- e.image && /* @__PURE__ */ L(pe, {
2357
+ e.image && /* @__PURE__ */ L(me, {
2358
2358
  source: { uri: e.image },
2359
2359
  style: X.image
2360
2360
  }),
@@ -2453,9 +2453,9 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2453
2453
  height: 10,
2454
2454
  width: 10
2455
2455
  }
2456
- }), We = ({ field: e, extra: t }) => {
2457
- let [r, i] = F(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = b(), m = n(), h = c.data.options || [], g = c.data.multiple, _ = Array.isArray(a) ? a : a ? [a] : [], v = (e) => {
2458
- g ? l(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (l(e), i(!1));
2456
+ }), Ge = ({ field: e, extra: t }) => {
2457
+ let [n, r] = I(!1), { value: i, placeholder: a } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = S(), m = o(), h = c.data.options || [], g = c.data.multiple, _ = Array.isArray(i) ? i : i ? [i] : [], v = (e) => {
2458
+ g ? l(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (l(e), r(!1));
2459
2459
  };
2460
2460
  return /* @__PURE__ */ R(H, {
2461
2461
  style: Z.container,
@@ -2473,7 +2473,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2473
2473
  },
2474
2474
  u && { borderColor: p.error }
2475
2475
  ],
2476
- onPress: () => i(!0),
2476
+ onPress: () => r(!0),
2477
2477
  activeOpacity: .7,
2478
2478
  children: [
2479
2479
  /* @__PURE__ */ L(B, {
@@ -2483,10 +2483,10 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2483
2483
  _.length === 0 && { color: p.textMuted }
2484
2484
  ],
2485
2485
  children: (() => {
2486
- if (_.length === 0) return o || "Select...";
2486
+ if (_.length === 0) return a || "Select...";
2487
2487
  if (g) return h.filter((e) => _.includes(e.value)).map((e) => m(e.label) || e.value).join(", ");
2488
2488
  let e = h.find((e) => e.value === _[0]);
2489
- return e ? m(e.label) || e.value : o || "Select...";
2489
+ return e ? m(e.label) || e.value : a || "Select...";
2490
2490
  })()
2491
2491
  }),
2492
2492
  _.length > 0 && /* @__PURE__ */ L(V, {
@@ -2509,15 +2509,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2509
2509
  })
2510
2510
  ]
2511
2511
  }),
2512
- /* @__PURE__ */ L(me, {
2513
- visible: r,
2512
+ /* @__PURE__ */ L(he, {
2513
+ visible: n,
2514
2514
  transparent: !0,
2515
2515
  animationType: "fade",
2516
- onRequestClose: () => i(!1),
2516
+ onRequestClose: () => r(!1),
2517
2517
  children: /* @__PURE__ */ L(V, {
2518
2518
  style: Z.modalOverlay,
2519
2519
  activeOpacity: 1,
2520
- onPress: () => i(!1),
2520
+ onPress: () => r(!1),
2521
2521
  children: /* @__PURE__ */ R(H, {
2522
2522
  style: [Z.modalContent, { backgroundColor: p.card }],
2523
2523
  onStartShouldSetResponder: () => !0,
@@ -2526,16 +2526,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2526
2526
  style: [Z.modalHeader, { borderBottomColor: p.border }],
2527
2527
  children: [/* @__PURE__ */ L(B, {
2528
2528
  style: [Z.modalTitle, { color: p.text }],
2529
- children: d || o || m("renderer.defaultSelectInput.selectOption")
2529
+ children: d || a || m("renderer.defaultSelectInput.selectOption")
2530
2530
  }), /* @__PURE__ */ L(V, {
2531
- onPress: () => i(!1),
2531
+ onPress: () => r(!1),
2532
2532
  children: /* @__PURE__ */ L(B, {
2533
2533
  style: [Z.closeButton, { color: p.textMuted }],
2534
2534
  children: "✕"
2535
2535
  })
2536
2536
  })]
2537
2537
  }),
2538
- /* @__PURE__ */ L(he, {
2538
+ /* @__PURE__ */ L(ge, {
2539
2539
  style: Z.optionsList,
2540
2540
  children: h.map((e) => {
2541
2541
  let t = _.includes(e.value);
@@ -2544,7 +2544,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2544
2544
  onPress: () => v(e.value),
2545
2545
  disabled: e.disabled,
2546
2546
  activeOpacity: .7,
2547
- children: [/* @__PURE__ */ L(Te, {
2547
+ children: [/* @__PURE__ */ L(Ee, {
2548
2548
  label: m(e.label) || e.value,
2549
2549
  description: m(e.description),
2550
2550
  image: e.image,
@@ -2558,7 +2558,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2558
2558
  }),
2559
2559
  g && /* @__PURE__ */ L(V, {
2560
2560
  style: [Z.doneButton, { backgroundColor: p.primary }],
2561
- onPress: () => i(!1),
2561
+ onPress: () => r(!1),
2562
2562
  children: /* @__PURE__ */ L(B, {
2563
2563
  style: Z.doneButtonText,
2564
2564
  children: "Done"
@@ -2659,20 +2659,20 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2659
2659
  flex: 1,
2660
2660
  fontSize: 14
2661
2661
  }
2662
- }), Ge = (e) => null, Ke = ({ field: e, extra: t }) => {
2663
- let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = b(), u = !!n;
2662
+ }), Ke = (e) => null, qe = ({ field: e, extra: t }) => {
2663
+ let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = S(), u = !!n;
2664
2664
  return /* @__PURE__ */ R(H, {
2665
- style: qe.container,
2665
+ style: Je.container,
2666
2666
  children: [
2667
2667
  /* @__PURE__ */ R(H, {
2668
- style: qe.row,
2668
+ style: Je.row,
2669
2669
  children: [/* @__PURE__ */ L(H, {
2670
- style: qe.labelContainer,
2670
+ style: Je.labelContainer,
2671
2671
  children: /* @__PURE__ */ L(r, {
2672
2672
  label: s,
2673
2673
  required: i.data.required
2674
2674
  })
2675
- }), /* @__PURE__ */ L(ge, {
2675
+ }), /* @__PURE__ */ L(_e, {
2676
2676
  trackColor: {
2677
2677
  false: l.border,
2678
2678
  true: `${l.primary}80`
@@ -2684,16 +2684,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2684
2684
  })]
2685
2685
  }),
2686
2686
  o && /* @__PURE__ */ L(B, {
2687
- style: [qe.error, { color: l.error }],
2687
+ style: [Je.error, { color: l.error }],
2688
2688
  children: o
2689
2689
  }),
2690
2690
  c && !o && /* @__PURE__ */ L(B, {
2691
- style: [qe.helperText, { color: l.textMuted }],
2691
+ style: [Je.helperText, { color: l.textMuted }],
2692
2692
  children: c
2693
2693
  })
2694
2694
  ]
2695
2695
  });
2696
- }, qe = z.create({
2696
+ }, Je = z.create({
2697
2697
  container: { marginBottom: 16 },
2698
2698
  error: {
2699
2699
  fontSize: 12,
@@ -2709,18 +2709,18 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2709
2709
  flexDirection: "row",
2710
2710
  justifyContent: "space-between"
2711
2711
  }
2712
- }), Je = ({ field: e, extra: t }) => {
2713
- let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = b();
2712
+ }), Ye = ({ field: e, extra: t }) => {
2713
+ let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = S();
2714
2714
  return /* @__PURE__ */ R(H, {
2715
- style: Ye.container,
2715
+ style: Xe.container,
2716
2716
  children: [
2717
2717
  /* @__PURE__ */ L(a, {
2718
2718
  label: l,
2719
2719
  required: o.data.required
2720
2720
  }),
2721
- /* @__PURE__ */ L(_e, {
2721
+ /* @__PURE__ */ L(ve, {
2722
2722
  style: [
2723
- Ye.textarea,
2723
+ Xe.textarea,
2724
2724
  {
2725
2725
  backgroundColor: d.input,
2726
2726
  borderColor: d.border,
@@ -2738,16 +2738,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2738
2738
  accessibilityLabel: i
2739
2739
  }),
2740
2740
  c && /* @__PURE__ */ L(B, {
2741
- style: [Ye.error, { color: d.error }],
2741
+ style: [Xe.error, { color: d.error }],
2742
2742
  children: c
2743
2743
  }),
2744
2744
  u && !c && /* @__PURE__ */ L(B, {
2745
- style: [Ye.helperText, { color: d.textMuted }],
2745
+ style: [Xe.helperText, { color: d.textMuted }],
2746
2746
  children: u
2747
2747
  })
2748
2748
  ]
2749
2749
  });
2750
- }, Ye = z.create({
2750
+ }, Xe = z.create({
2751
2751
  container: { marginBottom: 16 },
2752
2752
  error: {
2753
2753
  fontSize: 12,
@@ -2765,18 +2765,18 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2765
2765
  paddingHorizontal: 12,
2766
2766
  paddingVertical: 8
2767
2767
  }
2768
- }), Xe = ({ field: e, extra: t }) => {
2769
- let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = b();
2768
+ }), Ze = ({ field: e, extra: t }) => {
2769
+ let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = S();
2770
2770
  return /* @__PURE__ */ R(H, {
2771
- style: Ze.container,
2771
+ style: Qe.container,
2772
2772
  children: [
2773
2773
  /* @__PURE__ */ L(a, {
2774
2774
  label: l,
2775
2775
  required: o.data.required
2776
2776
  }),
2777
- /* @__PURE__ */ L(_e, {
2777
+ /* @__PURE__ */ L(ve, {
2778
2778
  style: [
2779
- Ze.input,
2779
+ Qe.input,
2780
2780
  {
2781
2781
  backgroundColor: d.input,
2782
2782
  borderColor: d.border,
@@ -2791,16 +2791,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2791
2791
  accessibilityLabel: i
2792
2792
  }),
2793
2793
  c && /* @__PURE__ */ L(B, {
2794
- style: [Ze.error, { color: d.error }],
2794
+ style: [Qe.error, { color: d.error }],
2795
2795
  children: c
2796
2796
  }),
2797
2797
  u && !c && /* @__PURE__ */ L(B, {
2798
- style: [Ze.helperText, { color: d.textMuted }],
2798
+ style: [Qe.helperText, { color: d.textMuted }],
2799
2799
  children: u
2800
2800
  })
2801
2801
  ]
2802
2802
  });
2803
- }, Ze = z.create({
2803
+ }, Qe = z.create({
2804
2804
  container: { marginBottom: 16 },
2805
2805
  error: {
2806
2806
  fontSize: 12,
@@ -2817,8 +2817,8 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2817
2817
  paddingHorizontal: 12,
2818
2818
  paddingVertical: 8
2819
2819
  }
2820
- }), Qe = ({ field: e, extra: t }) => {
2821
- let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] = F(c || 0), [f, p] = F(l || 0), [m, h] = F(!1), { InputLabel: g, node: _, setValue: v, error: y, label: x, helperText: S } = t, { colors: C } = b(), ee = n(), w = P(null), T = P(null), te = Array.from({ length: 24 }, (e, t) => t), E = Array.from({ length: 60 }, (e, t) => t), D = () => r || i || ee("renderer.defaultInputs.selectTime"), ne = oe(() => {
2820
+ }), $e = ({ field: e, extra: t }) => {
2821
+ let { value: n, placeholder: r } = e, i = (n || "").split(":"), a = Number.parseInt(i[0], 10), s = Number.parseInt(i[1], 10), c = Number.isNaN(a) ? 0 : a, l = Number.isNaN(s) ? 0 : s, [u, d] = I(c || 0), [f, p] = I(l || 0), [m, h] = I(!1), { InputLabel: g, node: _, setValue: v, error: y, label: b, helperText: x } = t, { colors: C } = S(), w = o(), T = F(null), E = F(null), ee = Array.from({ length: 24 }, (e, t) => t), D = Array.from({ length: 60 }, (e, t) => t), O = () => n || r || w("renderer.defaultInputs.selectTime"), k = oe(() => {
2822
2822
  v(`${String(u).padStart(2, "0")}:${String(f).padStart(2, "0")}`), h(!1);
2823
2823
  }, [
2824
2824
  u,
@@ -2829,7 +2829,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2829
2829
  style: Q.container,
2830
2830
  children: [
2831
2831
  /* @__PURE__ */ L(g, {
2832
- label: x,
2832
+ label: b,
2833
2833
  required: _.data.required
2834
2834
  }),
2835
2835
  /* @__PURE__ */ R(V, {
@@ -2849,16 +2849,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2849
2849
  style: [
2850
2850
  Q.triggerText,
2851
2851
  { color: C.text },
2852
- !r && { color: C.textMuted }
2852
+ !n && { color: C.textMuted }
2853
2853
  ],
2854
2854
  numberOfLines: 1,
2855
- children: D()
2855
+ children: O()
2856
2856
  }), /* @__PURE__ */ L(B, {
2857
2857
  style: Q.icon,
2858
2858
  children: "🕐"
2859
2859
  })]
2860
2860
  }),
2861
- /* @__PURE__ */ L(me, {
2861
+ /* @__PURE__ */ L(he, {
2862
2862
  visible: m,
2863
2863
  transparent: !0,
2864
2864
  animationType: "fade",
@@ -2876,7 +2876,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2876
2876
  style: [Q.modalHeader, { borderBottomColor: C.separator }],
2877
2877
  children: [/* @__PURE__ */ L(B, {
2878
2878
  style: [Q.modalTitle, { color: C.text }],
2879
- children: x || i || ee("renderer.defaultInputs.selectTime")
2879
+ children: b || r || w("renderer.defaultInputs.selectTime")
2880
2880
  }), /* @__PURE__ */ L(V, {
2881
2881
  onPress: () => h(!1),
2882
2882
  children: /* @__PURE__ */ L(B, {
@@ -2893,12 +2893,12 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2893
2893
  children: [/* @__PURE__ */ L(B, {
2894
2894
  style: [Q.pickerLabel, { color: C.textMuted }],
2895
2895
  children: "Hour"
2896
- }), /* @__PURE__ */ L(he, {
2897
- ref: w,
2896
+ }), /* @__PURE__ */ L(ge, {
2897
+ ref: T,
2898
2898
  style: Q.picker,
2899
2899
  contentContainerStyle: Q.pickerContent,
2900
2900
  showsVerticalScrollIndicator: !1,
2901
- children: te.map((e) => /* @__PURE__ */ L(V, {
2901
+ children: ee.map((e) => /* @__PURE__ */ L(V, {
2902
2902
  style: [Q.pickerItem, u === e && { backgroundColor: C.primary }],
2903
2903
  onPress: () => d(e),
2904
2904
  activeOpacity: .7,
@@ -2925,12 +2925,12 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2925
2925
  children: [/* @__PURE__ */ L(B, {
2926
2926
  style: [Q.pickerLabel, { color: C.textMuted }],
2927
2927
  children: "Minute"
2928
- }), /* @__PURE__ */ L(he, {
2929
- ref: T,
2928
+ }), /* @__PURE__ */ L(ge, {
2929
+ ref: E,
2930
2930
  style: Q.picker,
2931
2931
  contentContainerStyle: Q.pickerContent,
2932
2932
  showsVerticalScrollIndicator: !1,
2933
- children: E.map((e) => /* @__PURE__ */ L(V, {
2933
+ children: D.map((e) => /* @__PURE__ */ L(V, {
2934
2934
  style: [Q.pickerItem, f === e && { backgroundColor: C.primary }],
2935
2935
  onPress: () => p(e),
2936
2936
  activeOpacity: .7,
@@ -2952,7 +2952,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2952
2952
  }),
2953
2953
  /* @__PURE__ */ L(V, {
2954
2954
  style: [Q.confirmButton, { backgroundColor: C.primary }],
2955
- onPress: ne,
2955
+ onPress: k,
2956
2956
  activeOpacity: .7,
2957
2957
  children: /* @__PURE__ */ L(B, {
2958
2958
  style: [Q.confirmButtonText, { color: C.background }],
@@ -2967,9 +2967,9 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
2967
2967
  style: [Q.error, { color: C.error }],
2968
2968
  children: y
2969
2969
  }),
2970
- S && !y && /* @__PURE__ */ L(B, {
2970
+ x && !y && /* @__PURE__ */ L(B, {
2971
2971
  style: [Q.helperText, { color: C.textMuted }],
2972
- children: S
2972
+ children: x
2973
2973
  })
2974
2974
  ]
2975
2975
  });
@@ -3059,18 +3059,18 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3059
3059
  flex: 1,
3060
3060
  fontSize: 14
3061
3061
  }
3062
- }), $e = ({ field: e, extra: t }) => {
3063
- let [r, i] = F(!1), [a, o] = F(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, { colors: m } = b(), h = n(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", y = _.split(":"), x = Number.parseInt(y[0], 10), S = Number.parseInt(y[1], 10), C = Number.isNaN(x) ? 0 : x, ee = Number.isNaN(S) ? 0 : S, w = v.split(":"), T = Number.parseInt(w[0], 10), te = Number.parseInt(w[1], 10), E = Number.isNaN(T) ? 0 : T, D = Number.isNaN(te) ? 0 : te, [ne, O] = F(0), [k, A] = F(0), j = Array.from({ length: 24 }, (e, t) => t), re = Array.from({ length: 60 }, (e, t) => t), ie = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectTimeRange"), ae = oe(() => {
3064
- let e = `${String(ne).padStart(2, "0")}:${String(k).padStart(2, "0")}`;
3065
- a ? (u([e, v]), o(!1), O(E || 0), A(D || 0)) : (u([_, e]), i(!1), o(!0));
3062
+ }), et = ({ field: e, extra: t }) => {
3063
+ let [n, r] = I(!1), [i, a] = I(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, { colors: m } = S(), h = o(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", y = _.split(":"), b = Number.parseInt(y[0], 10), x = Number.parseInt(y[1], 10), C = Number.isNaN(b) ? 0 : b, w = Number.isNaN(x) ? 0 : x, T = v.split(":"), E = Number.parseInt(T[0], 10), ee = Number.parseInt(T[1], 10), D = Number.isNaN(E) ? 0 : E, O = Number.isNaN(ee) ? 0 : ee, [k, A] = I(0), [j, te] = I(0), ne = Array.from({ length: 24 }, (e, t) => t), re = Array.from({ length: 60 }, (e, t) => t), ie = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectTimeRange"), ae = oe(() => {
3064
+ let e = `${String(k).padStart(2, "0")}:${String(j).padStart(2, "0")}`;
3065
+ i ? (u([e, v]), a(!1), A(D || 0), te(O || 0)) : (u([_, e]), r(!1), a(!0));
3066
3066
  }, [
3067
- a,
3068
- ne,
3067
+ i,
3069
3068
  k,
3069
+ j,
3070
3070
  _,
3071
3071
  v,
3072
- E,
3073
3072
  D,
3073
+ O,
3074
3074
  u
3075
3075
  ]);
3076
3076
  return /* @__PURE__ */ R(H, {
@@ -3090,7 +3090,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3090
3090
  d && { borderColor: m.error }
3091
3091
  ],
3092
3092
  onPress: () => {
3093
- O(C || 0), A(ee || 0), o(!0), i(!0);
3093
+ A(C || 0), te(w || 0), a(!0), r(!0);
3094
3094
  },
3095
3095
  activeOpacity: .7,
3096
3096
  children: [/* @__PURE__ */ L(B, {
@@ -3106,15 +3106,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3106
3106
  children: "🕐"
3107
3107
  })]
3108
3108
  }),
3109
- /* @__PURE__ */ L(me, {
3110
- visible: r,
3109
+ /* @__PURE__ */ L(he, {
3110
+ visible: n,
3111
3111
  transparent: !0,
3112
3112
  animationType: "fade",
3113
- onRequestClose: () => i(!1),
3113
+ onRequestClose: () => r(!1),
3114
3114
  children: /* @__PURE__ */ L(V, {
3115
3115
  style: $.modalOverlay,
3116
3116
  activeOpacity: 1,
3117
- onPress: () => i(!1),
3117
+ onPress: () => r(!1),
3118
3118
  children: /* @__PURE__ */ R(V, {
3119
3119
  style: [$.modalContent, { backgroundColor: m.card }],
3120
3120
  activeOpacity: 1,
@@ -3126,7 +3126,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3126
3126
  style: [$.modalTitle, { color: m.text }],
3127
3127
  children: f || h("renderer.defaultInputs.selectTimeRange")
3128
3128
  }), /* @__PURE__ */ L(V, {
3129
- onPress: () => i(!1),
3129
+ onPress: () => r(!1),
3130
3130
  children: /* @__PURE__ */ L(B, {
3131
3131
  style: [$.closeButton, { color: m.textMuted }],
3132
3132
  children: "✕"
@@ -3137,7 +3137,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3137
3137
  style: [$.rangeIndicator, { backgroundColor: m.primaryLight }],
3138
3138
  children: /* @__PURE__ */ L(B, {
3139
3139
  style: [$.rangeIndicatorText, { color: m.primary }],
3140
- children: h(a ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3140
+ children: h(i ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3141
3141
  })
3142
3142
  }),
3143
3143
  /* @__PURE__ */ R(H, {
@@ -3148,19 +3148,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3148
3148
  children: [/* @__PURE__ */ L(B, {
3149
3149
  style: [$.pickerLabel, { color: m.textMuted }],
3150
3150
  children: "Hour"
3151
- }), /* @__PURE__ */ L(he, {
3151
+ }), /* @__PURE__ */ L(ge, {
3152
3152
  style: $.picker,
3153
3153
  contentContainerStyle: $.pickerContent,
3154
3154
  showsVerticalScrollIndicator: !1,
3155
- children: j.map((e) => /* @__PURE__ */ L(V, {
3156
- style: [$.pickerItem, ne === e && { backgroundColor: m.primary }],
3157
- onPress: () => O(e),
3155
+ children: ne.map((e) => /* @__PURE__ */ L(V, {
3156
+ style: [$.pickerItem, k === e && { backgroundColor: m.primary }],
3157
+ onPress: () => A(e),
3158
3158
  activeOpacity: .7,
3159
3159
  children: /* @__PURE__ */ L(B, {
3160
3160
  style: [
3161
3161
  $.pickerItemText,
3162
3162
  { color: m.text },
3163
- ne === e && {
3163
+ k === e && {
3164
3164
  color: m.background,
3165
3165
  fontWeight: "600"
3166
3166
  }
@@ -3179,19 +3179,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3179
3179
  children: [/* @__PURE__ */ L(B, {
3180
3180
  style: [$.pickerLabel, { color: m.textMuted }],
3181
3181
  children: "Minute"
3182
- }), /* @__PURE__ */ L(he, {
3182
+ }), /* @__PURE__ */ L(ge, {
3183
3183
  style: $.picker,
3184
3184
  contentContainerStyle: $.pickerContent,
3185
3185
  showsVerticalScrollIndicator: !1,
3186
3186
  children: re.map((e) => /* @__PURE__ */ L(V, {
3187
- style: [$.pickerItem, k === e && { backgroundColor: m.primary }],
3188
- onPress: () => A(e),
3187
+ style: [$.pickerItem, j === e && { backgroundColor: m.primary }],
3188
+ onPress: () => te(e),
3189
3189
  activeOpacity: .7,
3190
3190
  children: /* @__PURE__ */ L(B, {
3191
3191
  style: [
3192
3192
  $.pickerItemText,
3193
3193
  { color: m.text },
3194
- k === e && {
3194
+ j === e && {
3195
3195
  color: m.background,
3196
3196
  fontWeight: "600"
3197
3197
  }
@@ -3209,7 +3209,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3209
3209
  activeOpacity: .7,
3210
3210
  children: /* @__PURE__ */ L(B, {
3211
3211
  style: [$.confirmButtonText, { color: m.background }],
3212
- children: a ? "Next" : "Confirm"
3212
+ children: i ? "Next" : "Confirm"
3213
3213
  })
3214
3214
  })
3215
3215
  ]
@@ -3322,54 +3322,54 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3322
3322
  flex: 1,
3323
3323
  fontSize: 14
3324
3324
  }
3325
- }), et = {
3326
- address: we,
3327
- autocomplete: De,
3328
- checkbox: Oe,
3329
- date: ke,
3330
- daterange: Ae,
3331
- file: je,
3332
- hidden: Me,
3333
- http: Re,
3334
- number: ze,
3335
- password: Ve,
3336
- radio: Ue,
3337
- select: We,
3338
- submit: Ge,
3339
- switch: Ke,
3340
- text: Xe,
3341
- textarea: Je,
3342
- time: Qe,
3343
- timerange: $e
3344
- }, tt = ({ step: e, label: t, children: r, canGoBack: i, isLastStep: a, canContinue: o, isSubmitting: s, onBack: c, onContinue: u }) => {
3345
- let { colors: d } = b(), f = n(), p = !o || s, m = e.nodes.find((e) => l(e) && e.data.type === "submit"), h = m && l(m) ? f(m.data.label) : void 0, g = a ? h || f("renderer.defaultSubmitButton.submit") : f("renderer.step.continue");
3325
+ }), tt = {
3326
+ address: Te,
3327
+ autocomplete: Oe,
3328
+ checkbox: ke,
3329
+ date: Ae,
3330
+ daterange: je,
3331
+ file: Me,
3332
+ hidden: Ne,
3333
+ http: ze,
3334
+ number: Be,
3335
+ password: He,
3336
+ radio: We,
3337
+ select: Ge,
3338
+ submit: Ke,
3339
+ switch: qe,
3340
+ text: Ze,
3341
+ textarea: Ye,
3342
+ time: $e,
3343
+ timerange: et
3344
+ }, nt = ({ step: t, label: n, children: r, canGoBack: i, isLastStep: a, canContinue: s, isSubmitting: c, onBack: l, onContinue: u }) => {
3345
+ let { colors: d } = S(), f = o(), p = !s || c, m = t.nodes.find((t) => e(t) && t.data.type === "submit"), h = m && e(m) ? f(m.data.label) : void 0, g = a ? h || f("renderer.defaultSubmitButton.submit") : f("renderer.step.continue");
3346
3346
  return /* @__PURE__ */ R(H, { children: [
3347
- t ? /* @__PURE__ */ L(B, {
3348
- style: [nt.label, { color: d.text }],
3349
- children: t
3347
+ n ? /* @__PURE__ */ L(B, {
3348
+ style: [rt.label, { color: d.text }],
3349
+ children: n
3350
3350
  }) : null,
3351
3351
  /* @__PURE__ */ L(H, {
3352
- style: nt.content,
3352
+ style: rt.content,
3353
3353
  children: r
3354
3354
  }),
3355
3355
  /* @__PURE__ */ R(H, {
3356
- style: nt.actions,
3356
+ style: rt.actions,
3357
3357
  children: [i ? /* @__PURE__ */ L(V, {
3358
3358
  style: [
3359
- nt.backButton,
3359
+ rt.backButton,
3360
3360
  { borderColor: d.border },
3361
- s && nt.disabled
3361
+ c && rt.disabled
3362
3362
  ],
3363
- onPress: c,
3364
- disabled: s,
3363
+ onPress: l,
3364
+ disabled: c,
3365
3365
  activeOpacity: .7,
3366
3366
  children: /* @__PURE__ */ L(B, {
3367
- style: [nt.backButtonText, { color: d.text }],
3367
+ style: [rt.backButtonText, { color: d.text }],
3368
3368
  children: f("renderer.step.back")
3369
3369
  })
3370
3370
  }) : /* @__PURE__ */ L(H, {}), /* @__PURE__ */ L(V, {
3371
3371
  style: [
3372
- nt.continueButton,
3372
+ rt.continueButton,
3373
3373
  { backgroundColor: d.primary },
3374
3374
  p && {
3375
3375
  backgroundColor: d.primaryDisabled,
@@ -3379,14 +3379,14 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3379
3379
  onPress: u,
3380
3380
  disabled: p,
3381
3381
  activeOpacity: .7,
3382
- children: s ? /* @__PURE__ */ L(le, { color: d.primaryForeground }) : /* @__PURE__ */ L(B, {
3383
- style: [nt.continueButtonText, { color: d.primaryForeground }],
3382
+ children: c ? /* @__PURE__ */ L(ue, { color: d.primaryForeground }) : /* @__PURE__ */ L(B, {
3383
+ style: [rt.continueButtonText, { color: d.primaryForeground }],
3384
3384
  children: g
3385
3385
  })
3386
3386
  })]
3387
3387
  })
3388
3388
  ] });
3389
- }, nt = z.create({
3389
+ }, rt = z.create({
3390
3390
  actions: {
3391
3391
  alignItems: "center",
3392
3392
  flexDirection: "row",
@@ -3421,11 +3421,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3421
3421
  fontWeight: "600",
3422
3422
  marginBottom: 12
3423
3423
  }
3424
- }), rt = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3425
- let { colors: i } = b();
3424
+ }), it = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3425
+ let { colors: i } = S();
3426
3426
  return /* @__PURE__ */ L(V, {
3427
3427
  style: [
3428
- it.button,
3428
+ at.button,
3429
3429
  { backgroundColor: i.primary },
3430
3430
  (t || n) && {
3431
3431
  backgroundColor: i.primaryDisabled,
@@ -3435,12 +3435,12 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3435
3435
  disabled: t || n,
3436
3436
  onPress: r,
3437
3437
  activeOpacity: .7,
3438
- children: n ? /* @__PURE__ */ L(le, { color: i.primaryForeground }) : /* @__PURE__ */ L(B, {
3439
- style: [it.buttonText, { color: i.primaryForeground }],
3438
+ children: n ? /* @__PURE__ */ L(ue, { color: i.primaryForeground }) : /* @__PURE__ */ L(B, {
3439
+ style: [at.buttonText, { color: i.primaryForeground }],
3440
3440
  children: e
3441
3441
  })
3442
3442
  });
3443
- }, it = z.create({
3443
+ }, at = z.create({
3444
3444
  button: {
3445
3445
  alignItems: "center",
3446
3446
  borderRadius: 6,
@@ -3453,16 +3453,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3453
3453
  fontSize: 16,
3454
3454
  fontWeight: "600"
3455
3455
  }
3456
- }), at = ({ children: e }) => e, ot = ({ node: e }) => {
3457
- let t = n(), { colors: r } = b(), i = t(e.data?.label);
3456
+ }), ot = ({ children: e }) => e, st = ({ node: e }) => {
3457
+ let t = o(), { colors: n } = S(), r = t(e.data?.label);
3458
3458
  return /* @__PURE__ */ L(B, {
3459
- style: [ct.title, { color: r.text }],
3460
- children: i
3459
+ style: [lt.title, { color: n.text }],
3460
+ children: r
3461
3461
  });
3462
- }, st = () => {
3463
- let { colors: e } = b();
3464
- return /* @__PURE__ */ L(H, { style: [ct.divider, { backgroundColor: e.separator }] });
3465
- }, ct = z.create({
3462
+ }, ct = () => {
3463
+ let { colors: e } = S();
3464
+ return /* @__PURE__ */ L(H, { style: [lt.divider, { backgroundColor: e.separator }] });
3465
+ }, lt = z.create({
3466
3466
  divider: {
3467
3467
  height: 1,
3468
3468
  marginBottom: 16,
@@ -3473,63 +3473,63 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3473
3473
  fontWeight: "700",
3474
3474
  marginBottom: 16
3475
3475
  }
3476
- }), lt = {
3477
- divider: st,
3478
- title: ot
3479
- }, ut = ({ node: e, children: t }) => {
3476
+ }), ut = {
3477
+ divider: ct,
3478
+ title: st
3479
+ }, dt = ({ node: e, children: t }) => {
3480
3480
  let { image: n } = e.data;
3481
- return /* @__PURE__ */ R(H, { children: [n && /* @__PURE__ */ L(pe, {
3481
+ return /* @__PURE__ */ R(H, { children: [n && /* @__PURE__ */ L(me, {
3482
3482
  source: { uri: n },
3483
- style: dt.image,
3483
+ style: ft.image,
3484
3484
  resizeMode: "cover"
3485
3485
  }), t] });
3486
- }, dt = z.create({ image: {
3486
+ }, ft = z.create({ image: {
3487
3487
  borderRadius: 6,
3488
3488
  height: 160,
3489
3489
  marginBottom: 8,
3490
3490
  width: "100%"
3491
- } }), ft = ({ style: e }) => {
3492
- let { colors: t } = b(), n = P(new de.Value(.5)).current;
3491
+ } }), pt = ({ style: e }) => {
3492
+ let { colors: t } = S(), n = F(new fe.Value(.5)).current;
3493
3493
  return se(() => {
3494
- let e = de.loop(de.sequence([de.timing(n, {
3494
+ let e = fe.loop(fe.sequence([fe.timing(n, {
3495
3495
  duration: 600,
3496
3496
  toValue: 1,
3497
3497
  useNativeDriver: !0
3498
- }), de.timing(n, {
3498
+ }), fe.timing(n, {
3499
3499
  duration: 600,
3500
3500
  toValue: .5,
3501
3501
  useNativeDriver: !0
3502
3502
  })]));
3503
3503
  return e.start(), () => e.stop();
3504
- }, [n]), /* @__PURE__ */ L(de.View, { style: [
3505
- mt.bar,
3504
+ }, [n]), /* @__PURE__ */ L(fe.View, { style: [
3505
+ ht.bar,
3506
3506
  {
3507
3507
  backgroundColor: t.muted,
3508
3508
  opacity: n
3509
3509
  },
3510
3510
  e
3511
3511
  ] });
3512
- }, pt = () => /* @__PURE__ */ R(H, {
3512
+ }, mt = () => /* @__PURE__ */ R(H, {
3513
3513
  accessibilityState: { busy: !0 },
3514
3514
  children: [
3515
- /* @__PURE__ */ L(ft, { style: mt.title }),
3515
+ /* @__PURE__ */ L(pt, { style: ht.title }),
3516
3516
  /* @__PURE__ */ L(H, {
3517
- style: mt.fields,
3517
+ style: ht.fields,
3518
3518
  children: [
3519
3519
  0,
3520
3520
  1,
3521
3521
  2
3522
3522
  ].map((e) => /* @__PURE__ */ R(H, {
3523
- style: mt.field,
3524
- children: [/* @__PURE__ */ L(ft, { style: mt.fieldLabel }), /* @__PURE__ */ L(ft, { style: mt.fieldInput })]
3523
+ style: ht.field,
3524
+ children: [/* @__PURE__ */ L(pt, { style: ht.fieldLabel }), /* @__PURE__ */ L(pt, { style: ht.fieldInput })]
3525
3525
  }, e))
3526
3526
  }),
3527
3527
  /* @__PURE__ */ L(H, {
3528
- style: mt.actions,
3529
- children: /* @__PURE__ */ L(ft, { style: mt.button })
3528
+ style: ht.actions,
3529
+ children: /* @__PURE__ */ L(pt, { style: ht.button })
3530
3530
  })
3531
3531
  ]
3532
- }), mt = z.create({
3532
+ }), ht = z.create({
3533
3533
  actions: {
3534
3534
  alignItems: "flex-end",
3535
3535
  marginTop: 24
@@ -3554,122 +3554,107 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3554
3554
  marginBottom: 24,
3555
3555
  width: "33%"
3556
3556
  }
3557
- }), ht = ({ baseUrl: t, components: n, contentContainerStyle: r, extraPayload: i, flow: a, googleApiKey: o, headers: s, initialValues: c, isLoading: l = !1, isSubmitting: u = !1, language: d, onBack: f, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, title: v, validate: y, validationMode: x }) => {
3558
- let { colors: S } = b(), { canContinueStep: C, canSubmit: ee, clearSubmitMessage: w, config: T, currentStep: te, currentStepGroupNode: E, currentStepIndex: D, formErrors: ne, formValues: O, goToNextStep: k, goToPreviousStep: A, handleSubmit: j, inputNodes: ie, isFirstStep: ae, isLastStep: M, isSubmitting: se, missingRequiredFields: P, setFieldValue: F, steps: I, submitMessage: le, t: ue } = re({
3559
- baseUrl: t,
3560
- components: n,
3561
- extraPayload: i,
3562
- flow: a,
3563
- googleApiKey: o,
3564
- headers: s,
3565
- initialValues: c,
3566
- language: d,
3557
+ }), gt = ({ baseUrl: e, components: t, contentContainerStyle: n, extraPayload: r, flow: i, googleApiKey: a, headers: o, initialValues: s, isLoading: c = !1, isSubmitting: l = !1, language: u, onBack: d, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, title: v, validate: y, validationMode: b }) => {
3558
+ let { colors: x } = S(), { canContinue: C, canGoBack: w, clearSubmitMessage: T, config: E, currentStep: ee, currentStepGroupNode: D, currentStepIndex: O, formErrors: k, formTitle: A, formValues: j, handleBack: te, handleContinue: ne, handleSubmit: re, inputNodes: ae, isFinalStep: M, isFirstStep: N, isSubmitting: oe, missingRequiredFields: se, setFieldValue: ce, stepLabel: F, steps: I, submitMessage: le, t: ue } = ie({
3559
+ baseUrl: e,
3560
+ components: t,
3561
+ extraPayload: r,
3562
+ flow: i,
3563
+ googleApiKey: a,
3564
+ headers: o,
3565
+ initialValues: s,
3566
+ isSubmitting: l,
3567
+ language: u,
3568
+ onBack: d,
3567
3569
  onChange: p,
3568
3570
  onSubmit: m,
3569
3571
  showPoweredBy: h,
3570
3572
  theme: _,
3573
+ title: v,
3571
3574
  validate: y,
3572
- validationMode: x
3573
- }), de = u || se, { FormWrapper: fe, SubmitButtonWrapper: pe, renderNode: me } = N({
3574
- config: T,
3575
- DefaultFormWrapper: ve,
3576
- DefaultInputLabel: be,
3577
- DefaultInputWrapper: ut,
3578
- DefaultSubmitButton: rt,
3579
- DefaultSubmitButtonWrapper: at,
3580
- defaultInputRenderers: et,
3581
- defaultUI: lt,
3582
- formErrors: ne,
3583
- formValues: O,
3584
- inputNodes: ie,
3585
- isSubmitting: de,
3586
- missingRequiredFields: P,
3587
- setFieldValue: F
3588
- }), z = T.components.step ?? tt, ge = T.components.loadingSkeleton ?? pt, _e = ce(() => ue(E?.data?.label), [ue, E]), V = ce(() => ue(v), [ue, v]), ye = oe(() => {
3589
- if (M) {
3590
- j();
3591
- return;
3592
- }
3593
- k();
3594
- }, [
3595
- M,
3596
- j,
3597
- k
3598
- ]), xe = oe(() => {
3599
- if (ae) {
3600
- f?.();
3601
- return;
3602
- }
3603
- A();
3604
- }, [
3605
- ae,
3606
- f,
3607
- A
3608
- ]), Se = !ae || !!f;
3609
- return /* @__PURE__ */ R(he, {
3575
+ validationMode: b
3576
+ }), { FormWrapper: de, LoadingSkeleton: fe, StepComponent: pe, SubmitButtonWrapper: me, renderNode: he } = P({
3577
+ config: E,
3578
+ DefaultFormWrapper: ye,
3579
+ DefaultInputLabel: xe,
3580
+ DefaultInputWrapper: dt,
3581
+ DefaultLoadingSkeleton: mt,
3582
+ DefaultStep: nt,
3583
+ DefaultSubmitButton: it,
3584
+ DefaultSubmitButtonWrapper: ot,
3585
+ defaultInputRenderers: tt,
3586
+ defaultUI: ut,
3587
+ formErrors: k,
3588
+ formValues: j,
3589
+ inputNodes: ae,
3590
+ isSubmitting: oe,
3591
+ missingRequiredFields: se,
3592
+ setFieldValue: ce
3593
+ });
3594
+ return /* @__PURE__ */ R(ge, {
3610
3595
  nestedScrollEnabled: !0,
3611
3596
  style: [
3612
- _t.container,
3613
- { backgroundColor: S.background },
3597
+ vt.container,
3598
+ { backgroundColor: x.background },
3614
3599
  g
3615
3600
  ],
3616
- contentContainerStyle: r,
3617
- children: [V ? /* @__PURE__ */ L(B, {
3618
- style: [_t.title, { color: S.text }],
3619
- children: V
3620
- }) : null, l ? /* @__PURE__ */ L(ge, {}) : /* @__PURE__ */ R(e, {
3601
+ contentContainerStyle: n,
3602
+ children: [A ? /* @__PURE__ */ L(B, {
3603
+ style: [vt.title, { color: x.text }],
3604
+ children: A
3605
+ }) : null, c ? /* @__PURE__ */ L(fe, {}) : /* @__PURE__ */ R(f, {
3621
3606
  value: {
3622
- baseUrl: T.baseUrl,
3623
- flow: a,
3624
- formErrors: ne,
3625
- formValues: O,
3626
- googleApiKey: T.googleApiKey,
3627
- headers: T.headers,
3628
- inputNodes: ie,
3629
- language: T.language,
3630
- setFieldValue: F
3607
+ baseUrl: E.baseUrl,
3608
+ flow: i,
3609
+ formErrors: k,
3610
+ formValues: j,
3611
+ googleApiKey: E.googleApiKey,
3612
+ headers: E.headers,
3613
+ inputNodes: ae,
3614
+ language: E.language,
3615
+ setFieldValue: ce
3631
3616
  },
3632
- children: [/* @__PURE__ */ R(fe, {
3633
- onSubmit: j,
3634
- children: [te && /* @__PURE__ */ L(pe, {
3635
- missingFields: P,
3636
- children: /* @__PURE__ */ L(z, {
3637
- step: te,
3638
- groupNode: E,
3639
- stepIndex: D,
3617
+ children: [/* @__PURE__ */ R(de, {
3618
+ onSubmit: re,
3619
+ children: [ee && /* @__PURE__ */ L(me, {
3620
+ missingFields: se,
3621
+ children: /* @__PURE__ */ L(pe, {
3622
+ step: ee,
3623
+ groupNode: D,
3624
+ stepIndex: O,
3640
3625
  totalSteps: I.length,
3641
- isFirstStep: ae,
3626
+ isFirstStep: N,
3642
3627
  isLastStep: M,
3643
- canContinue: C && (!M || ee),
3644
- canGoBack: Se,
3645
- isSubmitting: de,
3646
- onBack: xe,
3647
- onContinue: ye,
3648
- label: _e,
3649
- children: te.nodes.map((e) => me(e))
3628
+ canContinue: C,
3629
+ canGoBack: w,
3630
+ isSubmitting: oe,
3631
+ onBack: te,
3632
+ onContinue: ne,
3633
+ label: F,
3634
+ children: ee.nodes.map((e) => he(e))
3650
3635
  })
3651
- }), T.showPoweredBy && /* @__PURE__ */ L(B, {
3652
- style: [_t.poweredBy, { color: S.textMuted }],
3636
+ }), E.showPoweredBy && /* @__PURE__ */ L(B, {
3637
+ style: [vt.poweredBy, { color: x.textMuted }],
3653
3638
  children: "Powered by Treege"
3654
3639
  })]
3655
3640
  }), le && /* @__PURE__ */ R(H, {
3656
- style: [_t.message, { backgroundColor: le.type === "success" ? S.successBg : S.errorBg }],
3641
+ style: [vt.message, { backgroundColor: le.type === "success" ? x.successBg : x.errorBg }],
3657
3642
  children: [/* @__PURE__ */ L(B, {
3658
- style: [_t.messageText, { color: le.type === "success" ? S.success : S.error }],
3643
+ style: [vt.messageText, { color: le.type === "success" ? x.success : x.error }],
3659
3644
  children: le.message
3660
3645
  }), /* @__PURE__ */ L(B, {
3661
- style: [_t.messageClose, { color: le.type === "success" ? S.success : S.error }],
3662
- onPress: w,
3646
+ style: [vt.messageClose, { color: le.type === "success" ? x.success : x.error }],
3647
+ onPress: T,
3663
3648
  children: ue("common.close")
3664
3649
  })]
3665
3650
  })]
3666
3651
  })]
3667
3652
  });
3668
- }, gt = (e) => /* @__PURE__ */ L(w, {
3653
+ }, _t = (e) => /* @__PURE__ */ L(E, {
3669
3654
  theme: e.theme,
3670
3655
  storageKey: "treege-renderer-theme",
3671
- children: /* @__PURE__ */ L(ht, { ...e })
3672
- }), _t = z.create({
3656
+ children: /* @__PURE__ */ L(gt, { ...e })
3657
+ }), vt = z.create({
3673
3658
  container: {
3674
3659
  flexBasis: "auto",
3675
3660
  flexGrow: 1,
@@ -3703,4 +3688,4 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
3703
3688
  }
3704
3689
  });
3705
3690
  //#endregion
3706
- export { we as DefaultAddressInput, De as DefaultAutocompleteInput, Oe as DefaultCheckboxInput, ke as DefaultDateInput, Ae as DefaultDateRangeInput, st as DefaultDividerUI, je as DefaultFileInput, Me as DefaultHiddenInput, Re as DefaultHttpInput, be as DefaultInputLabel, ze as DefaultNumberInput, Ve as DefaultPasswordInput, Ue as DefaultRadioInput, We as DefaultSelectInput, Ke as DefaultSwitchInput, Xe as DefaultTextInput, Je as DefaultTextareaInput, Qe as DefaultTimeInput, $e as DefaultTimeRangeInput, ot as DefaultTitleUI, gt as TreegeRenderer, k as TreegeRendererProvider, C as applyReferenceTransformation, g as buildInitialFormValues, d as calculateReferenceFieldUpdates, x as checkFormFieldHasValue, ee as convertFormValuesToNamedFormat, et as defaultInputRenderers, lt as defaultUI, ie as evaluateCondition, M as evaluateConditions, y as fileNameFromUrl, h as fileToSerializable, m as filesToSerializable, ae as findStartNode, u as formatFileSize, A as getFlowRenderState, S as getTranslatedText, p as isFieldEmpty, T as isRemoteFileData, O as isStartNode, D as normalizeSerializableFiles, v as resolveNodeDefaultValue, o as sanitize, ne as sanitizeHttpResponse, f as serializableToFile, re as useTreegeRenderer, j as useTreegeRendererConfig };
3691
+ export { Te as DefaultAddressInput, Oe as DefaultAutocompleteInput, ke as DefaultCheckboxInput, Ae as DefaultDateInput, je as DefaultDateRangeInput, ct as DefaultDividerUI, Me as DefaultFileInput, Ne as DefaultHiddenInput, ze as DefaultHttpInput, xe 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, te as TreegeRendererProvider, w as applyReferenceTransformation, b as buildInitialFormValues, h as calculateReferenceFieldUpdates, C as checkFormFieldHasValue, T as convertFormValuesToNamedFormat, tt as defaultInputRenderers, ut as defaultUI, ae as evaluateCondition, N as evaluateConditions, y as fileNameFromUrl, v as fileToSerializable, m as filesToSerializable, M as findStartNode, D as formatFileSize, ne as getFlowRenderState, p as getTranslatedText, _ as isFieldEmpty, k as isRemoteFileData, j as isStartNode, g as normalizeSerializableFiles, x as resolveEmptyInputValue, ee as resolveNodeDefaultValue, A as sanitize, n as sanitizeHttpResponse, O as serializableToFile, ie as useTreegeRenderer, re as useTreegeRendererConfig };