treege 3.0.0-beta.72 → 3.0.0-beta.74

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,13 +1,13 @@
1
- import { C as e, D as t, E as n, L as r, M as i, O as a, a as o, c as s, g as c, h as l, i as u, j as d, l as f, m as p, n as m, o as h, r as g, s as _, t as v, v as y, x as b, y as x, z as S } from "./ThemeContext-BGeTYtnw.js";
2
- import { a as C, c as w, i as T, l as E, n as D, o as O, r as k, s as A, t as ee } from "./useRenderNode-eqCek6JX.js";
3
- import { useCallback as te, useEffect as j, useMemo as ne, useRef as M, useState as N } from "react";
4
- import { Fragment as re, jsx as P, jsxs as F } from "react/jsx-runtime";
5
- import { ActivityIndicator as ie, Alert as ae, Animated as I, FlatList as oe, Image as L, Modal as se, ScrollView as R, StyleSheet as z, Switch as ce, Text as B, TextInput as le, TouchableOpacity as V, View as H } from "react-native";
1
+ import { A as e, B as t, C as n, F as r, H as i, O as a, P as o, T as s, _ as c, a as l, b as u, c as d, g as f, h as p, i as m, j as h, k as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, x as w } from "./ThemeContext-CSH4Fupd.js";
2
+ import { a as T, c as E, i as D, l as O, n as ee, o as k, r as te, s as A, t as ne } from "./useRenderNode-GobhZp-Y.js";
3
+ import { useCallback as re, useEffect as j, useMemo as ie, useRef as M, useState as N } from "react";
4
+ import { Fragment as ae, jsx as P, jsxs as F } from "react/jsx-runtime";
5
+ import { ActivityIndicator as oe, Alert as se, Animated as I, FlatList as ce, Image as L, Modal as le, ScrollView as R, StyleSheet as z, Switch as ue, Text as B, TextInput as de, TouchableOpacity as V, View as H } from "react-native";
6
6
  //#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
7
- var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
8
- style: de.container,
7
+ var fe = ({ children: e }) => /* @__PURE__ */ P(H, {
8
+ style: pe.container,
9
9
  children: e
10
- }), de = z.create({ container: { padding: 16 } }), fe = async (e, t) => {
10
+ }), pe = z.create({ container: { padding: 16 } }), me = async (e, t) => {
11
11
  if (!e || e.trim().length < 3) return [];
12
12
  try {
13
13
  let n = await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&addressdetails=1&limit=5`, { headers: {
@@ -22,7 +22,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
22
22
  } catch (e) {
23
23
  return console.error("Nominatim fetch error:", e), [];
24
24
  }
25
- }, pe = async (e, t) => {
25
+ }, he = async (e, t) => {
26
26
  if (!e || e.trim().length < 3) return [];
27
27
  try {
28
28
  let n = await fetch(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${encodeURIComponent(e)}&key=${t}`);
@@ -35,23 +35,23 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
35
35
  } catch (e) {
36
36
  return console.error("Google Places fetch error:", e), [];
37
37
  }
38
- }, me = ({ field: e, extra: t }) => {
39
- let [n, r] = N(""), [o, s] = N([]), [c, l] = N(!1), [u, d] = N(!1), { value: f, placeholder: p, id: h, name: g } = e, { node: _, setValue: v, error: y, label: b, helperText: x } = t, { language: S, googleApiKey: C } = i(), w = a(), { colors: T } = m(), E = te((e) => {
40
- v(e.value), r(""), l(!1), s([]);
41
- }, [v]), D = () => {
42
- l(!1);
38
+ }, ge = ({ field: e, extra: t }) => {
39
+ let [n, i] = N(""), [a, o] = N([]), [s, c] = N(!1), [l, u] = N(!1), { value: d, placeholder: f, id: p, name: m } = e, { node: g, setValue: _, error: v, label: b, helperText: x } = t, { language: S, googleApiKey: C } = r(), w = h(), { colors: T } = y(), E = re((e) => {
40
+ _(e.value), i(""), c(!1), o([]);
41
+ }, [_]), D = () => {
42
+ c(!1);
43
43
  };
44
44
  return j(() => {
45
45
  if (!n || n.trim().length < 3) {
46
- s([]), d(!1);
46
+ o([]), u(!1);
47
47
  return;
48
48
  }
49
- d(!0);
49
+ u(!0);
50
50
  let e = setTimeout(async () => {
51
- s(C ? await pe(n, C) : await fe(n, S)), d(!1);
51
+ o(C ? await he(n, C) : await me(n, S)), u(!1);
52
52
  }, 300);
53
53
  return () => {
54
- clearTimeout(e), d(!1);
54
+ clearTimeout(e), u(!1);
55
55
  };
56
56
  }, [
57
57
  n,
@@ -62,7 +62,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
62
62
  children: [
63
63
  /* @__PURE__ */ F(B, {
64
64
  style: [U.label, { color: T.textSecondary }],
65
- children: [b || _.data.name, _.data.required && /* @__PURE__ */ P(B, {
65
+ children: [b || g.data.name, g.data.required && /* @__PURE__ */ P(B, {
66
66
  style: { color: T.error },
67
67
  children: "*"
68
68
  })]
@@ -74,25 +74,25 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
74
74
  backgroundColor: T.input,
75
75
  borderColor: T.border
76
76
  },
77
- y && { borderColor: T.error }
77
+ v && { borderColor: T.error }
78
78
  ],
79
- onPress: () => l(!0),
79
+ onPress: () => c(!0),
80
80
  activeOpacity: .7,
81
81
  children: [/* @__PURE__ */ P(B, {
82
82
  style: [
83
83
  U.triggerText,
84
84
  { color: T.text },
85
- !f && { color: T.textMuted }
85
+ !d && { color: T.textMuted }
86
86
  ],
87
87
  numberOfLines: 1,
88
- children: f || p || w("renderer.defaultAddressInput.enterAddress")
88
+ children: d || f || w("renderer.defaultAddressInput.enterAddress")
89
89
  }), /* @__PURE__ */ P(B, {
90
90
  style: U.icon,
91
91
  children: "📍"
92
92
  })]
93
93
  }),
94
- /* @__PURE__ */ P(se, {
95
- visible: c,
94
+ /* @__PURE__ */ P(le, {
95
+ visible: s,
96
96
  transparent: !0,
97
97
  animationType: "fade",
98
98
  onRequestClose: D,
@@ -109,7 +109,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
109
109
  style: [U.modalHeader, { borderBottomColor: T.separator }],
110
110
  children: [/* @__PURE__ */ P(B, {
111
111
  style: [U.modalTitle, { color: T.text }],
112
- children: b || _.data.name
112
+ children: b || g.data.name
113
113
  }), /* @__PURE__ */ P(V, {
114
114
  onPress: D,
115
115
  children: /* @__PURE__ */ P(B, {
@@ -120,36 +120,36 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
120
120
  }),
121
121
  /* @__PURE__ */ F(H, {
122
122
  style: U.searchContainer,
123
- children: [/* @__PURE__ */ P(le, {
123
+ children: [/* @__PURE__ */ P(de, {
124
124
  style: [U.searchInput, {
125
125
  backgroundColor: T.muted,
126
126
  borderColor: T.border,
127
127
  color: T.text
128
128
  }],
129
- placeholder: p || w("renderer.defaultAddressInput.enterAddress"),
129
+ placeholder: f || w("renderer.defaultAddressInput.enterAddress"),
130
130
  placeholderTextColor: T.textMuted,
131
131
  value: n,
132
- onChangeText: r,
132
+ onChangeText: i,
133
133
  autoFocus: !0,
134
134
  autoCapitalize: "none",
135
135
  autoCorrect: !1
136
- }), u && /* @__PURE__ */ P(ie, {
136
+ }), l && /* @__PURE__ */ P(oe, {
137
137
  size: "small",
138
138
  color: T.primary,
139
139
  style: U.searchLoader
140
140
  })]
141
141
  }),
142
- u ? /* @__PURE__ */ F(H, {
142
+ l ? /* @__PURE__ */ F(H, {
143
143
  style: U.loadingContainer,
144
- children: [/* @__PURE__ */ P(ie, {
144
+ children: [/* @__PURE__ */ P(oe, {
145
145
  size: "small",
146
146
  color: T.primary
147
147
  }), /* @__PURE__ */ P(B, {
148
148
  style: [U.loadingText, { color: T.textMuted }],
149
149
  children: w("renderer.defaultAddressInput.searching")
150
150
  })]
151
- }) : /* @__PURE__ */ P(oe, {
152
- data: o,
151
+ }) : /* @__PURE__ */ P(ce, {
152
+ data: a,
153
153
  keyExtractor: (e, t) => t.toString(),
154
154
  style: U.suggestionsList,
155
155
  contentContainerStyle: U.suggestionsListContent,
@@ -185,11 +185,11 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
185
185
  })
186
186
  })
187
187
  }),
188
- y && /* @__PURE__ */ P(B, {
188
+ v && /* @__PURE__ */ P(B, {
189
189
  style: [U.error, { color: T.error }],
190
- children: y
190
+ children: v
191
191
  }),
192
- x && !y && /* @__PURE__ */ P(B, {
192
+ x && !v && /* @__PURE__ */ P(B, {
193
193
  style: [U.helperText, { color: T.textMuted }],
194
194
  children: x
195
195
  })
@@ -305,25 +305,25 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
305
305
  flex: 1,
306
306
  fontSize: 14
307
307
  }
308
- }), he = ({ label: e, description: t, image: n, disabled: r }) => {
309
- let { colors: i } = m();
308
+ }), _e = ({ label: e, description: t, image: n, disabled: r }) => {
309
+ let { colors: i } = y();
310
310
  return /* @__PURE__ */ F(H, {
311
- style: ge.content,
311
+ style: ve.content,
312
312
  children: [n ? /* @__PURE__ */ P(L, {
313
313
  source: { uri: n },
314
- style: ge.image
314
+ style: ve.image
315
315
  }) : null, /* @__PURE__ */ F(H, {
316
- style: ge.textWrapper,
316
+ style: ve.textWrapper,
317
317
  children: [/* @__PURE__ */ P(B, {
318
- style: [ge.label, { color: r ? i.textMuted : i.text }],
318
+ style: [ve.label, { color: r ? i.textMuted : i.text }],
319
319
  children: e
320
320
  }), t ? /* @__PURE__ */ P(B, {
321
- style: [ge.description, { color: i.textMuted }],
321
+ style: [ve.description, { color: i.textMuted }],
322
322
  children: t
323
323
  }) : null]
324
324
  })]
325
325
  });
326
- }, ge = z.create({
326
+ }, ve = z.create({
327
327
  content: {
328
328
  alignItems: "center",
329
329
  flex: 1,
@@ -341,27 +341,27 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
341
341
  },
342
342
  label: { fontSize: 14 },
343
343
  textWrapper: { flex: 1 }
344
- }), _e = ({ field: e, extra: t }) => {
345
- let [n, r] = N(!1), [i, o] = N(""), { value: s, placeholder: c } = e, { node: l, setValue: u, error: d, label: f, helperText: p } = t, h = a(), { colors: g } = m(), _ = l.data.options || [], v = _.find((e) => e.value === s), y = ne(() => {
346
- if (!i.trim()) return _;
344
+ }), ye = ({ field: e, extra: t }) => {
345
+ let [n, r] = N(!1), [i, a] = N(""), { value: o, placeholder: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, p = h(), { colors: m } = y(), g = c.data.options || [], _ = g.find((e) => e.value === o), v = ie(() => {
346
+ if (!i.trim()) return g;
347
347
  let e = i.toLowerCase();
348
- return _.filter((t) => h(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
348
+ return g.filter((t) => p(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
349
349
  }, [
350
- _,
350
+ g,
351
351
  i,
352
- h
352
+ p
353
353
  ]), b = (e) => {
354
- u(e === s ? "" : e), r(!1), o("");
354
+ l(e === o ? "" : e), r(!1), a("");
355
355
  }, x = () => {
356
- r(!1), o("");
356
+ r(!1), a("");
357
357
  };
358
358
  return /* @__PURE__ */ F(H, {
359
359
  style: W.container,
360
360
  children: [
361
361
  /* @__PURE__ */ F(B, {
362
- style: [W.label, { color: g.textSecondary }],
363
- children: [f || l.data.name, l.data.required && /* @__PURE__ */ P(B, {
364
- style: { color: g.error },
362
+ style: [W.label, { color: m.textSecondary }],
363
+ children: [d || c.data.name, c.data.required && /* @__PURE__ */ P(B, {
364
+ style: { color: m.error },
365
365
  children: "*"
366
366
  })]
367
367
  }),
@@ -369,10 +369,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
369
369
  style: [
370
370
  W.trigger,
371
371
  {
372
- backgroundColor: g.input,
373
- borderColor: g.border
372
+ backgroundColor: m.input,
373
+ borderColor: m.border
374
374
  },
375
- d && { borderColor: g.error }
375
+ u && { borderColor: m.error }
376
376
  ],
377
377
  onPress: () => r(!0),
378
378
  activeOpacity: .7,
@@ -380,14 +380,14 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
380
380
  /* @__PURE__ */ P(B, {
381
381
  style: [
382
382
  W.triggerText,
383
- { color: g.text },
384
- !s && { color: g.textMuted }
383
+ { color: m.text },
384
+ !o && { color: m.textMuted }
385
385
  ],
386
386
  numberOfLines: 1,
387
- children: s && v ? h(v.label) : c || h("renderer.defaultAutocompleteInput.selectOption")
387
+ children: o && _ ? p(_.label) : s || p("renderer.defaultAutocompleteInput.selectOption")
388
388
  }),
389
- s ? /* @__PURE__ */ P(V, {
390
- onPress: () => u(""),
389
+ o ? /* @__PURE__ */ P(V, {
390
+ onPress: () => l(""),
391
391
  hitSlop: {
392
392
  bottom: 8,
393
393
  left: 8,
@@ -396,17 +396,17 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
396
396
  },
397
397
  style: W.clearButton,
398
398
  children: /* @__PURE__ */ P(B, {
399
- style: [W.clearIcon, { color: g.textMuted }],
399
+ style: [W.clearIcon, { color: m.textMuted }],
400
400
  children: "✕"
401
401
  })
402
402
  }) : null,
403
403
  /* @__PURE__ */ P(B, {
404
- style: [W.arrow, { color: g.textMuted }],
404
+ style: [W.arrow, { color: m.textMuted }],
405
405
  children: "▼"
406
406
  })
407
407
  ]
408
408
  }),
409
- /* @__PURE__ */ P(se, {
409
+ /* @__PURE__ */ P(le, {
410
410
  visible: n,
411
411
  transparent: !0,
412
412
  animationType: "fade",
@@ -416,66 +416,66 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
416
416
  activeOpacity: 1,
417
417
  onPress: x,
418
418
  children: /* @__PURE__ */ F(V, {
419
- style: [W.modalContent, { backgroundColor: g.card }],
419
+ style: [W.modalContent, { backgroundColor: m.card }],
420
420
  activeOpacity: 1,
421
421
  onPress: () => {},
422
422
  children: [
423
423
  /* @__PURE__ */ F(H, {
424
- style: [W.modalHeader, { borderBottomColor: g.separator }],
424
+ style: [W.modalHeader, { borderBottomColor: m.separator }],
425
425
  children: [/* @__PURE__ */ P(B, {
426
- style: [W.modalTitle, { color: g.text }],
427
- children: f || l.data.name
426
+ style: [W.modalTitle, { color: m.text }],
427
+ children: d || c.data.name
428
428
  }), /* @__PURE__ */ P(V, {
429
429
  onPress: x,
430
430
  children: /* @__PURE__ */ P(B, {
431
- style: [W.closeButton, { color: g.textMuted }],
431
+ style: [W.closeButton, { color: m.textMuted }],
432
432
  children: "✕"
433
433
  })
434
434
  })]
435
435
  }),
436
436
  /* @__PURE__ */ P(H, {
437
437
  style: W.searchContainer,
438
- children: /* @__PURE__ */ P(le, {
438
+ children: /* @__PURE__ */ P(de, {
439
439
  style: [W.searchInput, {
440
- backgroundColor: g.muted,
441
- borderColor: g.border,
442
- color: g.text
440
+ backgroundColor: m.muted,
441
+ borderColor: m.border,
442
+ color: m.text
443
443
  }],
444
- placeholder: c || h("renderer.defaultAutocompleteInput.search"),
445
- placeholderTextColor: g.textMuted,
444
+ placeholder: s || p("renderer.defaultAutocompleteInput.search"),
445
+ placeholderTextColor: m.textMuted,
446
446
  value: i,
447
- onChangeText: o,
447
+ onChangeText: a,
448
448
  autoFocus: !0,
449
449
  autoCapitalize: "none",
450
450
  autoCorrect: !1
451
451
  })
452
452
  }),
453
- /* @__PURE__ */ P(oe, {
454
- data: y,
453
+ /* @__PURE__ */ P(ce, {
454
+ data: v,
455
455
  keyExtractor: (e) => e.value,
456
456
  style: W.optionsList,
457
457
  contentContainerStyle: W.optionsListContent,
458
458
  ListEmptyComponent: /* @__PURE__ */ P(H, {
459
459
  style: W.emptyContainer,
460
460
  children: /* @__PURE__ */ P(B, {
461
- style: [W.emptyText, { color: g.textMuted }],
462
- children: h("renderer.defaultAutocompleteInput.noResults")
461
+ style: [W.emptyText, { color: m.textMuted }],
462
+ children: p("renderer.defaultAutocompleteInput.noResults")
463
463
  })
464
464
  }),
465
465
  renderItem: ({ item: e }) => {
466
- let t = e.value === s;
466
+ let t = e.value === o;
467
467
  return /* @__PURE__ */ F(V, {
468
- style: [W.option, t && { backgroundColor: g.primaryLight }],
468
+ style: [W.option, t && { backgroundColor: m.primaryLight }],
469
469
  onPress: () => b(e.value),
470
470
  disabled: e.disabled,
471
471
  activeOpacity: .7,
472
- children: [/* @__PURE__ */ P(he, {
473
- label: h(e.label) || e.value,
474
- description: h(e.description),
472
+ children: [/* @__PURE__ */ P(_e, {
473
+ label: p(e.label) || e.value,
474
+ description: p(e.description),
475
475
  image: e.image,
476
476
  disabled: e.disabled
477
477
  }), t && /* @__PURE__ */ P(B, {
478
- style: [W.checkmark, { color: g.primary }],
478
+ style: [W.checkmark, { color: m.primary }],
479
479
  children: "✓"
480
480
  })]
481
481
  });
@@ -485,13 +485,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
485
485
  })
486
486
  })
487
487
  }),
488
- d && /* @__PURE__ */ P(B, {
489
- style: [W.error, { color: g.error }],
490
- children: d
488
+ u && /* @__PURE__ */ P(B, {
489
+ style: [W.error, { color: m.error }],
490
+ children: u
491
491
  }),
492
- p && !d && /* @__PURE__ */ P(B, {
493
- style: [W.helperText, { color: g.textMuted }],
494
- children: p
492
+ f && !u && /* @__PURE__ */ P(B, {
493
+ style: [W.helperText, { color: m.textMuted }],
494
+ children: f
495
495
  })
496
496
  ]
497
497
  });
@@ -587,31 +587,31 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
587
587
  flex: 1,
588
588
  fontSize: 14
589
589
  }
590
- }), ve = ({ field: e, extra: t }) => {
591
- let n = a(), { value: r } = e, { node: i, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = m(), d = i.data.options || [], f = d.length > 0, p = Array.isArray(r) ? r : [], h = typeof r == "boolean" ? r : !1, g = (e) => {
592
- o(f ? p.includes(e) ? p.filter((t) => t !== e) : [...p, e] : !h);
593
- }, _ = (e) => f ? p.includes(e) : h;
590
+ }), be = ({ field: e, extra: t }) => {
591
+ let n = h(), { value: r } = e, { node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = y(), u = i.data.options || [], d = u.length > 0, f = Array.isArray(r) ? r : [], p = typeof r == "boolean" ? r : !1, m = (e) => {
592
+ a(d ? f.includes(e) ? f.filter((t) => t !== e) : [...f, e] : !p);
593
+ }, g = (e) => d ? f.includes(e) : p;
594
594
  return /* @__PURE__ */ F(H, {
595
595
  style: G.container,
596
596
  children: [
597
597
  /* @__PURE__ */ F(B, {
598
- style: [G.label, { color: u.textSecondary }],
599
- children: [c || i.data.name, i.data.required && /* @__PURE__ */ P(B, {
600
- style: { color: u.error },
598
+ style: [G.label, { color: l.textSecondary }],
599
+ children: [s || i.data.name, i.data.required && /* @__PURE__ */ P(B, {
600
+ style: { color: l.error },
601
601
  children: "*"
602
602
  })]
603
603
  }),
604
- d.length > 0 ? d.map((e) => {
604
+ u.length > 0 ? u.map((e) => {
605
605
  let t = n(e.description);
606
606
  return /* @__PURE__ */ F(V, {
607
607
  style: G.option,
608
- onPress: () => g(e.value),
608
+ onPress: () => m(e.value),
609
609
  disabled: e.disabled,
610
610
  activeOpacity: .7,
611
611
  accessible: !0,
612
612
  accessibilityRole: "checkbox",
613
613
  accessibilityState: {
614
- checked: _(e.value),
614
+ checked: g(e.value),
615
615
  disabled: e.disabled
616
616
  },
617
617
  accessibilityLabel: n(e.label) || e.value,
@@ -620,15 +620,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
620
620
  style: [
621
621
  G.checkbox,
622
622
  {
623
- backgroundColor: u.input,
624
- borderColor: u.border
623
+ backgroundColor: l.input,
624
+ borderColor: l.border
625
625
  },
626
- _(e.value) && {
627
- backgroundColor: u.primary,
628
- borderColor: u.primary
626
+ g(e.value) && {
627
+ backgroundColor: l.primary,
628
+ borderColor: l.primary
629
629
  }
630
630
  ],
631
- children: _(e.value) && /* @__PURE__ */ P(B, {
631
+ children: g(e.value) && /* @__PURE__ */ P(B, {
632
632
  style: G.checkmark,
633
633
  children: "✓"
634
634
  })
@@ -642,12 +642,12 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
642
642
  children: [/* @__PURE__ */ P(B, {
643
643
  style: [
644
644
  G.optionLabel,
645
- { color: u.textSecondary },
646
- e.disabled && { color: u.textMuted }
645
+ { color: l.textSecondary },
646
+ e.disabled && { color: l.textMuted }
647
647
  ],
648
648
  children: n(e.label) || e.value
649
649
  }), t && /* @__PURE__ */ P(B, {
650
- style: [G.optionDescription, { color: u.textMuted }],
650
+ style: [G.optionDescription, { color: l.textMuted }],
651
651
  children: t
652
652
  })]
653
653
  })
@@ -655,40 +655,40 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
655
655
  }, e.value);
656
656
  }) : /* @__PURE__ */ F(V, {
657
657
  style: G.option,
658
- onPress: () => g(""),
658
+ onPress: () => m(""),
659
659
  activeOpacity: .7,
660
660
  accessible: !0,
661
661
  accessibilityRole: "checkbox",
662
- accessibilityState: { checked: h },
663
- accessibilityLabel: c || i.data.name,
662
+ accessibilityState: { checked: p },
663
+ accessibilityLabel: s || i.data.name,
664
664
  children: [/* @__PURE__ */ P(H, {
665
665
  style: [
666
666
  G.checkbox,
667
667
  {
668
- backgroundColor: u.input,
669
- borderColor: u.border
668
+ backgroundColor: l.input,
669
+ borderColor: l.border
670
670
  },
671
- h && {
672
- backgroundColor: u.primary,
673
- borderColor: u.primary
671
+ p && {
672
+ backgroundColor: l.primary,
673
+ borderColor: l.primary
674
674
  }
675
675
  ],
676
- children: h && /* @__PURE__ */ P(B, {
676
+ children: p && /* @__PURE__ */ P(B, {
677
677
  style: G.checkmark,
678
678
  children: "✓"
679
679
  })
680
680
  }), /* @__PURE__ */ P(B, {
681
- style: [G.optionLabel, { color: u.textSecondary }],
682
- children: c || i.data.name
681
+ style: [G.optionLabel, { color: l.textSecondary }],
682
+ children: s || i.data.name
683
683
  })]
684
684
  }),
685
- s && /* @__PURE__ */ P(B, {
686
- style: [G.error, { color: u.error }],
687
- children: s
685
+ o && /* @__PURE__ */ P(B, {
686
+ style: [G.error, { color: l.error }],
687
+ children: o
688
688
  }),
689
- l && !s && /* @__PURE__ */ P(B, {
690
- style: [G.helperText, { color: u.textMuted }],
691
- children: l
689
+ c && !o && /* @__PURE__ */ P(B, {
690
+ style: [G.helperText, { color: l.textMuted }],
691
+ children: c
692
692
  })
693
693
  ]
694
694
  });
@@ -738,15 +738,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
738
738
  },
739
739
  optionLabel: { fontSize: 14 },
740
740
  optionTextContainer: { flex: 1 }
741
- }), ye = ({ field: e, extra: t }) => {
742
- let [n, r] = N(!1), { value: i, placeholder: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = m(), p = a(), h = i ? new Date(i) : void 0, { year: g, month: _, today: v } = ne(() => {
743
- let e = h || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
741
+ }), xe = ({ field: e, extra: t }) => {
742
+ let [n, r] = N(!1), { value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = y(), f = h(), p = i ? new Date(i) : void 0, { year: m, month: g, today: _ } = ie(() => {
743
+ let e = p || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
744
744
  return r.setHours(0, 0, 0, 0), {
745
745
  month: n,
746
746
  today: r,
747
747
  year: t
748
748
  };
749
- }, [h]), [y, b] = N(g), [x, S] = N(_), C = [
749
+ }, [p]), [v, b] = N(m), [x, S] = N(g), C = [
750
750
  "January",
751
751
  "February",
752
752
  "March",
@@ -759,43 +759,43 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
759
759
  "October",
760
760
  "November",
761
761
  "December"
762
- ], w = ne(() => {
763
- let e = new Date(y, x, 1).getDay(), t = new Date(y, x + 1, 0).getDate(), n = new Date(y, x, 0).getDate(), r = [];
762
+ ], w = ie(() => {
763
+ let e = new Date(v, x, 1).getDay(), t = new Date(v, x + 1, 0).getDate(), n = new Date(v, x, 0).getDate(), r = [];
764
764
  for (let t = e - 1; t >= 0; t--) r.push({
765
- date: new Date(y, x - 1, n - t),
765
+ date: new Date(v, x - 1, n - t),
766
766
  day: n - t,
767
767
  isCurrentMonth: !1
768
768
  });
769
769
  for (let e = 1; e <= t; e++) r.push({
770
- date: new Date(y, x, e),
770
+ date: new Date(v, x, e),
771
771
  day: e,
772
772
  isCurrentMonth: !0
773
773
  });
774
774
  let i = 42 - r.length;
775
775
  for (let e = 1; e <= i; e++) r.push({
776
- date: new Date(y, x + 1, e),
776
+ date: new Date(v, x + 1, e),
777
777
  day: e,
778
778
  isCurrentMonth: !1
779
779
  });
780
780
  return r;
781
- }, [y, x]), T = te((e) => {
782
- s.data.disablePast && e < v || (c(e.toISOString()), r(!1));
781
+ }, [v, x]), T = re((e) => {
782
+ o.data.disablePast && e < _ || (s(e.toISOString()), r(!1));
783
783
  }, [
784
- s.data.disablePast,
785
- v,
786
- c
784
+ o.data.disablePast,
785
+ _,
786
+ s
787
787
  ]), E = () => {
788
- x === 0 ? (S(11), b(y - 1)) : S(x - 1);
788
+ x === 0 ? (S(11), b(v - 1)) : S(x - 1);
789
789
  }, D = () => {
790
- x === 11 ? (S(0), b(y + 1)) : S(x + 1);
791
- }, O = () => h ? h.toLocaleDateString() : o || p("renderer.defaultInputs.selectDate"), k = (e) => s.data.disablePast ? e < v : !1, A = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
790
+ x === 11 ? (S(0), b(v + 1)) : S(x + 1);
791
+ }, O = () => p ? p.toLocaleDateString() : a || f("renderer.defaultInputs.selectDate"), ee = (e) => o.data.disablePast ? e < _ : !1, k = (e) => p ? e.getDate() === p.getDate() && e.getMonth() === p.getMonth() && e.getFullYear() === p.getFullYear() : !1;
792
792
  return /* @__PURE__ */ F(H, {
793
793
  style: K.container,
794
794
  children: [
795
795
  /* @__PURE__ */ F(B, {
796
- style: [K.label, { color: f.textSecondary }],
797
- children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
798
- style: { color: f.error },
796
+ style: [K.label, { color: d.textSecondary }],
797
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ P(B, {
798
+ style: { color: d.error },
799
799
  children: "*"
800
800
  })]
801
801
  }),
@@ -803,18 +803,18 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
803
803
  style: [
804
804
  K.trigger,
805
805
  {
806
- backgroundColor: f.input,
807
- borderColor: f.border
806
+ backgroundColor: d.input,
807
+ borderColor: d.border
808
808
  },
809
- l && { borderColor: f.error }
809
+ c && { borderColor: d.error }
810
810
  ],
811
811
  onPress: () => r(!0),
812
812
  activeOpacity: .7,
813
813
  children: [/* @__PURE__ */ P(B, {
814
814
  style: [
815
815
  K.triggerText,
816
- { color: f.text },
817
- !i && { color: f.textMuted }
816
+ { color: d.text },
817
+ !i && { color: d.textMuted }
818
818
  ],
819
819
  numberOfLines: 1,
820
820
  children: O()
@@ -823,7 +823,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
823
823
  children: "📅"
824
824
  })]
825
825
  }),
826
- /* @__PURE__ */ P(se, {
826
+ /* @__PURE__ */ P(le, {
827
827
  visible: n,
828
828
  transparent: !0,
829
829
  animationType: "fade",
@@ -833,19 +833,19 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
833
833
  activeOpacity: 1,
834
834
  onPress: () => r(!1),
835
835
  children: /* @__PURE__ */ F(V, {
836
- style: [K.modalContent, { backgroundColor: f.card }],
836
+ style: [K.modalContent, { backgroundColor: d.card }],
837
837
  activeOpacity: 1,
838
838
  onPress: () => {},
839
839
  children: [
840
840
  /* @__PURE__ */ F(H, {
841
- style: [K.modalHeader, { borderBottomColor: f.separator }],
841
+ style: [K.modalHeader, { borderBottomColor: d.separator }],
842
842
  children: [/* @__PURE__ */ P(B, {
843
- style: [K.modalTitle, { color: f.text }],
844
- children: u || s.data.name
843
+ style: [K.modalTitle, { color: d.text }],
844
+ children: l || o.data.name
845
845
  }), /* @__PURE__ */ P(V, {
846
846
  onPress: () => r(!1),
847
847
  children: /* @__PURE__ */ P(B, {
848
- style: [K.closeButton, { color: f.textMuted }],
848
+ style: [K.closeButton, { color: d.textMuted }],
849
849
  children: "✕"
850
850
  })
851
851
  })]
@@ -857,23 +857,23 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
857
857
  onPress: E,
858
858
  style: K.navButton,
859
859
  children: /* @__PURE__ */ P(B, {
860
- style: [K.navButtonText, { color: f.primary }],
860
+ style: [K.navButtonText, { color: d.primary }],
861
861
  children: "‹"
862
862
  })
863
863
  }),
864
864
  /* @__PURE__ */ F(B, {
865
- style: [K.monthYear, { color: f.text }],
865
+ style: [K.monthYear, { color: d.text }],
866
866
  children: [
867
867
  C[x],
868
868
  " ",
869
- y
869
+ v
870
870
  ]
871
871
  }),
872
872
  /* @__PURE__ */ P(V, {
873
873
  onPress: D,
874
874
  style: K.navButton,
875
875
  children: /* @__PURE__ */ P(B, {
876
- style: [K.navButtonText, { color: f.primary }],
876
+ style: [K.navButtonText, { color: d.primary }],
877
877
  children: "›"
878
878
  })
879
879
  })
@@ -890,11 +890,11 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
890
890
  "Fri",
891
891
  "Sat"
892
892
  ].map((e) => /* @__PURE__ */ P(B, {
893
- style: [K.weekDay, { color: f.textMuted }],
893
+ style: [K.weekDay, { color: d.textMuted }],
894
894
  children: e
895
895
  }, e))
896
896
  }),
897
- /* @__PURE__ */ P(oe, {
897
+ /* @__PURE__ */ P(ce, {
898
898
  data: w,
899
899
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
900
900
  numColumns: 7,
@@ -902,13 +902,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
902
902
  style: K.calendar,
903
903
  contentContainerStyle: K.calendarContent,
904
904
  renderItem: ({ item: e }) => {
905
- let t = k(e.date), n = A(e.date);
905
+ let t = ee(e.date), n = k(e.date);
906
906
  return /* @__PURE__ */ P(V, {
907
907
  style: [
908
908
  K.dayCell,
909
909
  !e.isCurrentMonth && K.dayCellOtherMonth,
910
910
  n && {
911
- backgroundColor: f.primary,
911
+ backgroundColor: d.primary,
912
912
  borderRadius: 20
913
913
  },
914
914
  t && K.dayCellDisabled
@@ -919,13 +919,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
919
919
  children: /* @__PURE__ */ P(B, {
920
920
  style: [
921
921
  K.dayText,
922
- { color: f.text },
923
- !e.isCurrentMonth && { color: f.textMuted },
922
+ { color: d.text },
923
+ !e.isCurrentMonth && { color: d.textMuted },
924
924
  n && {
925
- color: f.background,
925
+ color: d.background,
926
926
  fontWeight: "600"
927
927
  },
928
- t && { color: f.textMuted }
928
+ t && { color: d.textMuted }
929
929
  ],
930
930
  children: e.day
931
931
  })
@@ -936,13 +936,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
936
936
  })
937
937
  })
938
938
  }),
939
- l && /* @__PURE__ */ P(B, {
940
- style: [K.error, { color: f.error }],
941
- children: l
939
+ c && /* @__PURE__ */ P(B, {
940
+ style: [K.error, { color: d.error }],
941
+ children: c
942
942
  }),
943
- d && !l && /* @__PURE__ */ P(B, {
944
- style: [K.helperText, { color: f.textMuted }],
945
- children: d
943
+ u && !c && /* @__PURE__ */ P(B, {
944
+ style: [K.helperText, { color: d.textMuted }],
945
+ children: u
946
946
  })
947
947
  ]
948
948
  });
@@ -1046,15 +1046,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1046
1046
  flexDirection: "row",
1047
1047
  marginBottom: 8
1048
1048
  }
1049
- }), be = ({ field: e, extra: t }) => {
1050
- let [n, r] = N(!1), [i, o] = N(!0), { value: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, p = a(), { colors: h } = m(), 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 } = ne(() => {
1051
- let e = _ || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
1049
+ }), Se = ({ field: e, extra: t }) => {
1050
+ let [n, r] = N(!1), [i, a] = N(!0), { value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, f = h(), { colors: p } = y(), m = Array.isArray(o) ? o : [], g = m[0] ? new Date(m[0]) : void 0, _ = m[1] ? new Date(m[1]) : void 0, { year: v, month: b, today: x } = ie(() => {
1051
+ let e = g || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
1052
1052
  return r.setHours(0, 0, 0, 0), {
1053
1053
  month: n,
1054
1054
  today: r,
1055
1055
  year: t
1056
1056
  };
1057
- }, [_]), [S, C] = N(y), [w, T] = N(b), E = [
1057
+ }, [g]), [S, C] = N(v), [w, T] = N(b), E = [
1058
1058
  "January",
1059
1059
  "February",
1060
1060
  "March",
@@ -1067,7 +1067,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1067
1067
  "October",
1068
1068
  "November",
1069
1069
  "December"
1070
- ], D = ne(() => {
1070
+ ], D = ie(() => {
1071
1071
  let e = new Date(S, w, 1).getDay(), t = new Date(S, w + 1, 0).getDate(), n = new Date(S, w, 0).getDate(), r = [];
1072
1072
  for (let t = e - 1; t >= 0; t--) r.push({
1073
1073
  date: new Date(S, w - 1, n - t),
@@ -1086,31 +1086,31 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1086
1086
  isCurrentMonth: !1
1087
1087
  });
1088
1088
  return r;
1089
- }, [S, w]), O = te((e) => {
1090
- c.data.disablePast && e < x || (i ? (l([e.toISOString(), v?.toISOString()]), o(!1)) : (l(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), r(!1), o(!0)));
1089
+ }, [S, w]), O = re((e) => {
1090
+ s.data.disablePast && e < x || (i ? (c([e.toISOString(), _?.toISOString()]), a(!1)) : (c(g && e < g ? [e.toISOString(), g.toISOString()] : [g?.toISOString(), e.toISOString()]), r(!1), a(!0)));
1091
1091
  }, [
1092
- c.data.disablePast,
1092
+ s.data.disablePast,
1093
1093
  x,
1094
1094
  i,
1095
+ g,
1095
1096
  _,
1096
- v,
1097
- l
1098
- ]), k = () => {
1097
+ c
1098
+ ]), ee = () => {
1099
1099
  w === 0 ? (T(11), C(S - 1)) : T(w - 1);
1100
- }, A = () => {
1100
+ }, k = () => {
1101
1101
  w === 11 ? (T(0), C(S + 1)) : T(w + 1);
1102
- }, ee = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : p("renderer.defaultInputs.selectDateRange"), j = (e) => c.data.disablePast ? e < x : !1, M = (e) => _ && v ? e >= _ && e <= v : !1, re = (e) => {
1103
- if (!(_ || v)) return !1;
1104
- 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();
1102
+ }, te = () => g && _ ? `${g.toLocaleDateString()} - ${_.toLocaleDateString()}` : g ? g.toLocaleDateString() : f("renderer.defaultInputs.selectDateRange"), A = (e) => s.data.disablePast ? e < x : !1, ne = (e) => g && _ ? e >= g && e <= _ : !1, j = (e) => {
1103
+ if (!(g || _)) return !1;
1104
+ let t = g && e.getDate() === g.getDate() && e.getMonth() === g.getMonth() && e.getFullYear() === g.getFullYear(), n = _ && e.getDate() === _.getDate() && e.getMonth() === _.getMonth() && e.getFullYear() === _.getFullYear();
1105
1105
  return t || n;
1106
1106
  };
1107
1107
  return /* @__PURE__ */ F(H, {
1108
1108
  style: q.container,
1109
1109
  children: [
1110
1110
  /* @__PURE__ */ F(B, {
1111
- style: [q.label, { color: h.textSecondary }],
1112
- children: [d || c.data.name, c.data.required && /* @__PURE__ */ P(B, {
1113
- style: { color: h.error },
1111
+ style: [q.label, { color: p.textSecondary }],
1112
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
1113
+ style: { color: p.error },
1114
1114
  children: "*"
1115
1115
  })]
1116
1116
  }),
@@ -1118,27 +1118,27 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1118
1118
  style: [
1119
1119
  q.trigger,
1120
1120
  {
1121
- backgroundColor: h.input,
1122
- borderColor: h.border
1121
+ backgroundColor: p.input,
1122
+ borderColor: p.border
1123
1123
  },
1124
- u && { borderColor: h.error }
1124
+ l && { borderColor: p.error }
1125
1125
  ],
1126
1126
  onPress: () => r(!0),
1127
1127
  activeOpacity: .7,
1128
1128
  children: [/* @__PURE__ */ P(B, {
1129
1129
  style: [
1130
1130
  q.triggerText,
1131
- { color: h.text },
1132
- !_ && { color: h.textMuted }
1131
+ { color: p.text },
1132
+ !g && { color: p.textMuted }
1133
1133
  ],
1134
1134
  numberOfLines: 1,
1135
- children: ee()
1135
+ children: te()
1136
1136
  }), /* @__PURE__ */ P(B, {
1137
1137
  style: q.icon,
1138
1138
  children: "📅"
1139
1139
  })]
1140
1140
  }),
1141
- /* @__PURE__ */ P(se, {
1141
+ /* @__PURE__ */ P(le, {
1142
1142
  visible: n,
1143
1143
  transparent: !0,
1144
1144
  animationType: "fade",
@@ -1148,43 +1148,43 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1148
1148
  activeOpacity: 1,
1149
1149
  onPress: () => r(!1),
1150
1150
  children: /* @__PURE__ */ F(V, {
1151
- style: [q.modalContent, { backgroundColor: h.card }],
1151
+ style: [q.modalContent, { backgroundColor: p.card }],
1152
1152
  activeOpacity: 1,
1153
1153
  onPress: () => {},
1154
1154
  children: [
1155
1155
  /* @__PURE__ */ F(H, {
1156
- style: [q.modalHeader, { borderBottomColor: h.separator }],
1156
+ style: [q.modalHeader, { borderBottomColor: p.separator }],
1157
1157
  children: [/* @__PURE__ */ P(B, {
1158
- style: [q.modalTitle, { color: h.text }],
1159
- children: d || c.data.name
1158
+ style: [q.modalTitle, { color: p.text }],
1159
+ children: u || s.data.name
1160
1160
  }), /* @__PURE__ */ P(V, {
1161
1161
  onPress: () => r(!1),
1162
1162
  children: /* @__PURE__ */ P(B, {
1163
- style: [q.closeButton, { color: h.textMuted }],
1163
+ style: [q.closeButton, { color: p.textMuted }],
1164
1164
  children: "✕"
1165
1165
  })
1166
1166
  })]
1167
1167
  }),
1168
1168
  /* @__PURE__ */ P(H, {
1169
- style: [q.rangeIndicator, { backgroundColor: h.primaryLight }],
1169
+ style: [q.rangeIndicator, { backgroundColor: p.primaryLight }],
1170
1170
  children: /* @__PURE__ */ P(B, {
1171
- style: [q.rangeIndicatorText, { color: h.primary }],
1172
- children: p(i ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
1171
+ style: [q.rangeIndicatorText, { color: p.primary }],
1172
+ children: f(i ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
1173
1173
  })
1174
1174
  }),
1175
1175
  /* @__PURE__ */ F(H, {
1176
1176
  style: q.calendarHeader,
1177
1177
  children: [
1178
1178
  /* @__PURE__ */ P(V, {
1179
- onPress: k,
1179
+ onPress: ee,
1180
1180
  style: q.navButton,
1181
1181
  children: /* @__PURE__ */ P(B, {
1182
- style: [q.navButtonText, { color: h.primary }],
1182
+ style: [q.navButtonText, { color: p.primary }],
1183
1183
  children: "‹"
1184
1184
  })
1185
1185
  }),
1186
1186
  /* @__PURE__ */ F(B, {
1187
- style: [q.monthYear, { color: h.text }],
1187
+ style: [q.monthYear, { color: p.text }],
1188
1188
  children: [
1189
1189
  E[w],
1190
1190
  " ",
@@ -1192,10 +1192,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1192
1192
  ]
1193
1193
  }),
1194
1194
  /* @__PURE__ */ P(V, {
1195
- onPress: A,
1195
+ onPress: k,
1196
1196
  style: q.navButton,
1197
1197
  children: /* @__PURE__ */ P(B, {
1198
- style: [q.navButtonText, { color: h.primary }],
1198
+ style: [q.navButtonText, { color: p.primary }],
1199
1199
  children: "›"
1200
1200
  })
1201
1201
  })
@@ -1212,11 +1212,11 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1212
1212
  "Fri",
1213
1213
  "Sat"
1214
1214
  ].map((e) => /* @__PURE__ */ P(B, {
1215
- style: [q.weekDay, { color: h.textMuted }],
1215
+ style: [q.weekDay, { color: p.textMuted }],
1216
1216
  children: e
1217
1217
  }, e))
1218
1218
  }),
1219
- /* @__PURE__ */ P(oe, {
1219
+ /* @__PURE__ */ P(ce, {
1220
1220
  data: D,
1221
1221
  keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
1222
1222
  numColumns: 7,
@@ -1224,14 +1224,14 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1224
1224
  style: q.calendar,
1225
1225
  contentContainerStyle: q.calendarContent,
1226
1226
  renderItem: ({ item: e }) => {
1227
- let t = j(e.date), n = M(e.date), r = re(e.date);
1227
+ let t = A(e.date), n = ne(e.date), r = j(e.date);
1228
1228
  return /* @__PURE__ */ P(V, {
1229
1229
  style: [
1230
1230
  q.dayCell,
1231
1231
  !e.isCurrentMonth && q.dayCellOtherMonth,
1232
- n && { backgroundColor: h.primaryLight },
1232
+ n && { backgroundColor: p.primaryLight },
1233
1233
  r && {
1234
- backgroundColor: h.primary,
1234
+ backgroundColor: p.primary,
1235
1235
  borderRadius: 20
1236
1236
  },
1237
1237
  t && q.dayCellDisabled
@@ -1242,14 +1242,14 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1242
1242
  children: /* @__PURE__ */ P(B, {
1243
1243
  style: [
1244
1244
  q.dayText,
1245
- { color: h.text },
1246
- !e.isCurrentMonth && { color: h.textMuted },
1247
- n && { color: h.primary },
1245
+ { color: p.text },
1246
+ !e.isCurrentMonth && { color: p.textMuted },
1247
+ n && { color: p.primary },
1248
1248
  r && {
1249
- color: h.background,
1249
+ color: p.background,
1250
1250
  fontWeight: "600"
1251
1251
  },
1252
- t && { color: h.textMuted }
1252
+ t && { color: p.textMuted }
1253
1253
  ],
1254
1254
  children: e.day
1255
1255
  })
@@ -1260,13 +1260,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1260
1260
  })
1261
1261
  })
1262
1262
  }),
1263
- u && /* @__PURE__ */ P(B, {
1264
- style: [q.error, { color: h.error }],
1265
- children: u
1263
+ l && /* @__PURE__ */ P(B, {
1264
+ style: [q.error, { color: p.error }],
1265
+ children: l
1266
1266
  }),
1267
- f && !u && /* @__PURE__ */ P(B, {
1268
- style: [q.helperText, { color: h.textMuted }],
1269
- children: f
1267
+ d && !l && /* @__PURE__ */ P(B, {
1268
+ style: [q.helperText, { color: p.textMuted }],
1269
+ children: d
1270
1270
  })
1271
1271
  ]
1272
1272
  });
@@ -1380,30 +1380,30 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1380
1380
  flexDirection: "row",
1381
1381
  marginBottom: 8
1382
1382
  }
1383
- }), xe = ({ field: e, extra: t }) => {
1384
- let [n, r] = N(null), [i, o] = N(!0), { value: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = m(), h = a(), g = Array.isArray(s) ? s : s ? [s] : [], _ = c.data.multiple, v = te(async () => {
1383
+ }), Ce = ({ field: e, extra: t }) => {
1384
+ let [n, r] = N(null), [i, a] = N(!0), { value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = y(), p = h(), m = Array.isArray(o) ? o : o ? [o] : [], g = s.data.multiple, _ = re(async () => {
1385
1385
  if (n) try {
1386
- let e = (await n({ allowMultiSelection: _ })).map((e) => ({
1386
+ let e = (await n({ allowMultiSelection: g })).map((e) => ({
1387
1387
  data: e.uri,
1388
1388
  lastModified: Date.now(),
1389
1389
  name: e.name,
1390
1390
  size: e.size,
1391
1391
  type: e.type || "application/octet-stream"
1392
1392
  }));
1393
- l(_ ? [...g, ...e] : e[0] || null);
1393
+ c(g ? [...m, ...e] : e[0] || null);
1394
1394
  } catch (e) {
1395
- e.code !== "DOCUMENT_PICKER_CANCELED" && ae.alert("Error", h("renderer.defaultInputs.filePickerError"));
1395
+ e.code !== "DOCUMENT_PICKER_CANCELED" && se.alert("Error", p("renderer.defaultInputs.filePickerError"));
1396
1396
  }
1397
1397
  }, [
1398
1398
  n,
1399
+ m,
1399
1400
  g,
1400
- _,
1401
- l,
1402
- h
1403
- ]), y = te((e) => {
1404
- let t = g.filter((t, n) => n !== e);
1405
- l(t.length > 0 ? t : null);
1406
- }, [g, l]), b = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1401
+ c,
1402
+ p
1403
+ ]), v = re((e) => {
1404
+ let t = m.filter((t, n) => n !== e);
1405
+ c(t.length > 0 ? t : null);
1406
+ }, [m, c]), b = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1407
1407
  return j(() => {
1408
1408
  (async () => {
1409
1409
  try {
@@ -1412,29 +1412,29 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1412
1412
  } catch {
1413
1413
  r(null);
1414
1414
  } finally {
1415
- o(!1);
1415
+ a(!1);
1416
1416
  }
1417
1417
  })();
1418
1418
  }, []), i ? null : n ? /* @__PURE__ */ F(H, {
1419
1419
  style: J.container,
1420
1420
  children: [
1421
1421
  /* @__PURE__ */ F(B, {
1422
- style: [J.label, { color: p.textSecondary }],
1423
- children: [d || c.data.name, c.data.required && /* @__PURE__ */ P(B, {
1424
- style: { color: p.error },
1422
+ style: [J.label, { color: f.textSecondary }],
1423
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
1424
+ style: { color: f.error },
1425
1425
  children: "*"
1426
1426
  })]
1427
1427
  }),
1428
- g.length > 0 && /* @__PURE__ */ P(H, {
1428
+ m.length > 0 && /* @__PURE__ */ P(H, {
1429
1429
  style: J.filesList,
1430
- children: g.map((e, t) => /* @__PURE__ */ F(H, {
1430
+ children: m.map((e, t) => /* @__PURE__ */ F(H, {
1431
1431
  style: [J.fileItem, {
1432
- backgroundColor: p.card,
1433
- borderColor: p.separator
1432
+ backgroundColor: f.card,
1433
+ borderColor: f.separator
1434
1434
  }],
1435
1435
  children: [
1436
1436
  /* @__PURE__ */ P(H, {
1437
- style: [J.fileIcon, { backgroundColor: p.muted }],
1437
+ style: [J.fileIcon, { backgroundColor: f.muted }],
1438
1438
  children: /* @__PURE__ */ P(B, {
1439
1439
  style: J.fileIconText,
1440
1440
  children: "📄"
@@ -1443,20 +1443,20 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1443
1443
  /* @__PURE__ */ F(H, {
1444
1444
  style: J.fileInfo,
1445
1445
  children: [/* @__PURE__ */ P(B, {
1446
- style: [J.fileName, { color: p.text }],
1446
+ style: [J.fileName, { color: f.text }],
1447
1447
  numberOfLines: 1,
1448
1448
  children: e.name
1449
1449
  }), e.size > 0 && /* @__PURE__ */ P(B, {
1450
- style: [J.fileSize, { color: p.textMuted }],
1450
+ style: [J.fileSize, { color: f.textMuted }],
1451
1451
  children: b(e.size)
1452
1452
  })]
1453
1453
  }),
1454
1454
  /* @__PURE__ */ P(V, {
1455
1455
  style: J.removeButton,
1456
- onPress: () => y(t),
1456
+ onPress: () => v(t),
1457
1457
  activeOpacity: .7,
1458
1458
  children: /* @__PURE__ */ P(B, {
1459
- style: [J.removeButtonText, { color: p.textMuted }],
1459
+ style: [J.removeButtonText, { color: f.textMuted }],
1460
1460
  children: "✕"
1461
1461
  })
1462
1462
  })
@@ -1465,48 +1465,48 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1465
1465
  }),
1466
1466
  /* @__PURE__ */ P(V, {
1467
1467
  style: [J.pickButton, {
1468
- backgroundColor: p.input,
1469
- borderColor: p.border
1468
+ backgroundColor: f.input,
1469
+ borderColor: f.border
1470
1470
  }],
1471
- onPress: v,
1471
+ onPress: _,
1472
1472
  activeOpacity: .7,
1473
1473
  children: /* @__PURE__ */ P(B, {
1474
- style: [J.pickButtonText, { color: p.textMuted }],
1475
- children: g.length === 0 ? h(_ ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : h(_ ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
1474
+ style: [J.pickButtonText, { color: f.textMuted }],
1475
+ children: m.length === 0 ? p(g ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : p(g ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
1476
1476
  })
1477
1477
  }),
1478
- u && /* @__PURE__ */ P(B, {
1479
- style: [J.error, { color: p.error }],
1480
- children: u
1478
+ l && /* @__PURE__ */ P(B, {
1479
+ style: [J.error, { color: f.error }],
1480
+ children: l
1481
1481
  }),
1482
- f && !u && /* @__PURE__ */ P(B, {
1483
- style: [J.helperText, { color: p.textMuted }],
1484
- children: f
1482
+ d && !l && /* @__PURE__ */ P(B, {
1483
+ style: [J.helperText, { color: f.textMuted }],
1484
+ children: d
1485
1485
  })
1486
1486
  ]
1487
1487
  }) : /* @__PURE__ */ F(H, {
1488
1488
  style: J.container,
1489
1489
  children: [
1490
1490
  /* @__PURE__ */ F(B, {
1491
- style: [J.label, { color: p.textSecondary }],
1492
- children: [d || c.data.name, c.data.required && /* @__PURE__ */ P(B, {
1493
- style: { color: p.error },
1491
+ style: [J.label, { color: f.textSecondary }],
1492
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
1493
+ style: { color: f.error },
1494
1494
  children: "*"
1495
1495
  })]
1496
1496
  }),
1497
1497
  /* @__PURE__ */ P(H, {
1498
1498
  style: [J.unavailableContainer, {
1499
- backgroundColor: p.errorLight,
1500
- borderColor: p.error
1499
+ backgroundColor: f.errorLight,
1500
+ borderColor: f.error
1501
1501
  }],
1502
1502
  children: /* @__PURE__ */ P(B, {
1503
- style: [J.unavailableText, { color: p.error }],
1504
- children: h("renderer.defaultInputs.filePickerUnavailable")
1503
+ style: [J.unavailableText, { color: f.error }],
1504
+ children: p("renderer.defaultInputs.filePickerUnavailable")
1505
1505
  })
1506
1506
  }),
1507
- f && /* @__PURE__ */ P(B, {
1508
- style: [J.helperText, { color: p.textMuted }],
1509
- children: f
1507
+ d && /* @__PURE__ */ P(B, {
1508
+ style: [J.helperText, { color: f.textMuted }],
1509
+ children: d
1510
1510
  })
1511
1511
  ]
1512
1512
  });
@@ -1579,15 +1579,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1579
1579
  fontSize: 12,
1580
1580
  textAlign: "center"
1581
1581
  }
1582
- }), Se = (e) => null, Ce = ({ missing: e, children: t }) => {
1583
- let n = a(), { colors: r } = m();
1584
- return /* @__PURE__ */ F(re, { children: [t, e.length > 0 && /* @__PURE__ */ F(H, {
1585
- style: we.container,
1582
+ }), we = (e) => null, Te = ({ missing: e, children: t }) => {
1583
+ let n = h(), { colors: r } = y();
1584
+ return /* @__PURE__ */ F(ae, { children: [t, e.length > 0 && /* @__PURE__ */ F(H, {
1585
+ style: Ee.container,
1586
1586
  children: [/* @__PURE__ */ P(B, {
1587
- style: [we.title, { color: r.textMuted }],
1587
+ style: [Ee.title, { color: r.textMuted }],
1588
1588
  children: n("renderer.dependencyHint.title")
1589
1589
  }), e.map((e) => /* @__PURE__ */ F(B, {
1590
- style: [we.item, { color: r.textMuted }],
1590
+ style: [Ee.item, { color: r.textMuted }],
1591
1591
  children: [
1592
1592
  "•",
1593
1593
  " ",
@@ -1595,7 +1595,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1595
1595
  ]
1596
1596
  }, e.id))]
1597
1597
  })] });
1598
- }, we = z.create({
1598
+ }, Ee = z.create({
1599
1599
  container: {
1600
1600
  gap: 2,
1601
1601
  marginTop: 4
@@ -1605,118 +1605,124 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1605
1605
  fontSize: 12,
1606
1606
  fontWeight: "500"
1607
1607
  }
1608
- }), Te = (e) => e.replace(/<[^>]*>/g, ""), Ee = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), De = (e, t = {}) => e == null || e === "" ? "" : Ee(Te(String(e))), Oe = 100, ke = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1609
- if (n > Oe) return console.warn(`sanitizeHttpResponse: Maximum depth (${Oe}) exceeded.`), typeof e == "string" ? De(e, t) : "[Max Depth Exceeded]";
1608
+ }), De = (e) => e.replace(/<[^>]*>/g, ""), Oe = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), ke = (e, t = {}) => e == null || e === "" ? "" : Oe(De(String(e))), Ae = 100, je = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1609
+ if (n > Ae) return console.warn(`sanitizeHttpResponse: Maximum depth (${Ae}) exceeded.`), typeof e == "string" ? ke(e, t) : "[Max Depth Exceeded]";
1610
1610
  if (e == null) return e;
1611
- if (typeof e == "string") return De(e, t);
1612
- if (Array.isArray(e)) return e.map((e) => ke(e, t, n + 1, r));
1611
+ if (typeof e == "string") return ke(e, t);
1612
+ if (Array.isArray(e)) return e.map((e) => je(e, t, n + 1, r));
1613
1613
  if (typeof e == "object") {
1614
1614
  if (r.has(e)) return console.warn("sanitizeHttpResponse: Circular reference detected. Breaking cycle to prevent infinite recursion."), "[Circular Reference]";
1615
1615
  r.add(e);
1616
1616
  let i = {};
1617
- for (let [a, o] of Object.entries(e)) i[a] = ke(o, t, n + 1, r);
1617
+ for (let [a, o] of Object.entries(e)) i[a] = je(o, t, n + 1, r);
1618
1618
  return r.delete(e), i;
1619
1619
  }
1620
1620
  return e;
1621
- }, Ae = (e) => {
1621
+ }, Me = (e) => {
1622
1622
  let t = e.matchAll(/{{([\w-]+)}}/g);
1623
1623
  return Array.from(t, (e) => e[1]);
1624
- }, je = (e, t) => Ae(e).every((e) => {
1624
+ }, Ne = (e, t) => Me(e).every((e) => {
1625
1625
  let n = t[e];
1626
1626
  return n != null && n !== "";
1627
- }), Me = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1627
+ }), Pe = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1628
1628
  let i = t[r], a = i == null ? "" : String(i);
1629
1629
  return n ? encodeURIComponent(a) : a;
1630
- }), Ne = ({ field: r, extra: o }) => {
1631
- let [s, c] = N(!1), [l, u] = N(null), [d, f] = N([]), [p, h] = N(""), [g, v] = N(!1), { value: S, placeholder: C } = r, { node: w, setValue: T, error: E, label: D, helperText: O, missingDependencies: k } = o, { formValues: A, inputNodes: ee, headers: re, baseUrl: ae } = i(), { colors: I } = m(), { httpConfig: L } = w.data, R = a(), z = M(!1), ce = M(!1), ue = M(""), de = M(L), fe = M(A), pe = M(ee), me = M(re), U = M(ae), ge = M(T), _e = M(null), W = M(null), ve = ne(() => L?.url ? Ae(L.url) : [], [L?.url]), G = ve.length > 0, ye = ne(() => ve.map((e) => `${e}:${String(A[e] ?? "")}`).join("|"), [ve, A]), K = ne(() => L?.url ? G ? je(L.url, A) : !0 : !1, [
1630
+ }), Fe = ({ field: t, extra: i }) => {
1631
+ let [o, l] = N(!1), [d, f] = N(null), [p, m] = N([]), [_, v] = N(""), [b, x] = N(!1), { value: C, placeholder: T } = t, { node: E, setValue: D, error: O, label: ee, helperText: k, missingDependencies: te } = i, { formValues: A, inputNodes: ne, headers: ae, baseUrl: se } = r(), { colors: I } = y(), { httpConfig: L } = E.data, R = h(), z = M(!1), ue = M(!1), fe = M(""), pe = M(L), me = M(A), he = M(ne), ge = M(ae), U = M(se), ve = M(D), ye = M(null), W = M(null), be = M(E.data.normalizeOptionLabels !== !1), G = ie(() => L?.url ? Me(L.url) : [], [L?.url]), xe = G.length > 0, K = ie(() => G.map((e) => `${e}:${String(A[e] ?? "")}`).join("|"), [G, A]), Se = ie(() => L?.url ? xe ? Ne(L.url, A) : !0 : !1, [
1632
1632
  L?.url,
1633
- G,
1633
+ xe,
1634
1634
  A
1635
- ]), be = te(async (r) => {
1635
+ ]), q = re(async (t) => {
1636
1636
  W.current && W.current.abort();
1637
- let i = new AbortController();
1638
- W.current = i;
1639
- let a = de.current, o = fe.current, s = ge.current;
1640
- if (!a?.url) {
1641
- u(R("renderer.defaultHttpInput.noUrlConfigured")), W.current = null;
1637
+ let r = new AbortController();
1638
+ W.current = r;
1639
+ let i = pe.current, o = me.current, d = ve.current;
1640
+ if (!i?.url) {
1641
+ f(R("renderer.defaultHttpInput.noUrlConfigured")), W.current = null;
1642
1642
  return;
1643
1643
  }
1644
- if (a.url && !je(a.url, o)) {
1644
+ if (i.url && !Ne(i.url, o)) {
1645
1645
  W.current = null;
1646
1646
  return;
1647
1647
  }
1648
- c(!0), u(null);
1648
+ l(!0), f(null);
1649
1649
  try {
1650
- let l = t(Me(a.url, o, !0), U.current), d = x(a.searchParam && r ? `${l}${l.includes("?") ? "&" : "?"}${a.searchParam}=${encodeURIComponent(r)}` : l, n(a.queryParams, o)), p = e({ "Content-Type": "application/json" }, n(me.current, o), n(a.headers, o)), m = [
1650
+ let l = g(Pe(i.url, o, !0), U.current), p = w(i.searchParam && t ? `${l}${l.includes("?") ? "&" : "?"}${i.searchParam}=${encodeURIComponent(t)}` : l, a(i.queryParams, o)), h = s({ "Content-Type": "application/json" }, a(ge.current, o), a(i.headers, o)), _ = [
1651
1651
  "POST",
1652
1652
  "PUT",
1653
1653
  "PATCH"
1654
- ].includes(a.method || "") ? a.sendAllFormValues ? JSON.stringify(_(o, pe.current)) : y(a.body, o, pe.current) : void 0, h = setTimeout(() => i.abort(), 3e4), g = await fetch(d, {
1655
- body: m || void 0,
1656
- headers: Object.fromEntries(Object.entries(p).filter(([, e]) => e)),
1657
- method: a.method || "GET",
1658
- signal: i.signal
1654
+ ].includes(i.method || "") ? i.sendAllFormValues ? JSON.stringify(S(o, he.current)) : u(i.body, o, he.current) : void 0, v = setTimeout(() => r.abort(), 3e4), y = await fetch(p, {
1655
+ body: _ || void 0,
1656
+ headers: Object.fromEntries(Object.entries(h).filter(([, e]) => e)),
1657
+ method: i.method || "GET",
1658
+ signal: r.signal
1659
1659
  });
1660
- if (clearTimeout(h), !g.ok) {
1661
- u(`HTTP Error ${g.status}: ${g.statusText}`), c(!1);
1660
+ if (clearTimeout(v), !y.ok) {
1661
+ f(`HTTP Error ${y.status}: ${y.statusText}`);
1662
1662
  return;
1663
1663
  }
1664
- let v = ke(await g.json()), S = a.responsePath ? b(v, a.responsePath) : v;
1665
- if (a.responseMapping && Array.isArray(S)) {
1666
- let { valueField: e = "value", labelField: t = "label", descriptionField: n, imageField: r } = a.responseMapping;
1667
- f(S.map((i) => {
1668
- let a = n ? b(i, n) : void 0, o = r ? b(i, r) : void 0;
1664
+ let b = e(await y.text());
1665
+ if (!b.ok) {
1666
+ f(R("renderer.defaultHttpInput.invalidJson"));
1667
+ return;
1668
+ }
1669
+ let x = je(b.value), C = i.responsePath ? n(x, i.responsePath) : x;
1670
+ if (i.responseMapping && Array.isArray(C)) {
1671
+ let { valueField: e = "value", labelField: t = "label", descriptionField: r, imageField: a } = i.responseMapping, o = be.current;
1672
+ m(C.map((i) => {
1673
+ let s = r ? n(i, r) : void 0, l = a ? n(i, a) : void 0, u = String(n(i, t) || "");
1669
1674
  return {
1670
- description: a != null && a !== "" ? String(a) : void 0,
1671
- image: typeof o == "string" && o !== "" ? o : void 0,
1672
- label: String(b(i, t) || ""),
1673
- value: String(b(i, e) || "")
1675
+ description: s != null && s !== "" ? String(s) : void 0,
1676
+ image: typeof l == "string" && l !== "" ? l : void 0,
1677
+ label: o ? c(u) : u,
1678
+ value: String(n(i, e) || "")
1674
1679
  };
1675
1680
  }));
1676
- } else s(typeof S == "string" ? S : JSON.stringify(S));
1681
+ } else d(typeof C == "string" ? C : JSON.stringify(C));
1677
1682
  } catch (e) {
1678
1683
  if (e instanceof Error && e.name === "AbortError") return;
1679
- u(e instanceof Error ? e.message : R("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1684
+ f(e instanceof Error ? e.message : R("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1680
1685
  } finally {
1681
- c(!1), W.current = null;
1686
+ W.current === r && (l(!1), W.current = null);
1682
1687
  }
1683
1688
  }, [R]);
1684
1689
  if (j(() => {
1685
- de.current = L, fe.current = A, pe.current = ee, me.current = re, U.current = ae, ge.current = T, _e.current = be;
1690
+ pe.current = L, me.current = A, he.current = ne, ge.current = ae, U.current = se, ve.current = D, ye.current = q, be.current = E.data.normalizeOptionLabels !== !1;
1686
1691
  }, [
1687
1692
  L,
1688
1693
  A,
1689
- ee,
1690
- re,
1694
+ ne,
1691
1695
  ae,
1692
- T,
1693
- be
1696
+ se,
1697
+ D,
1698
+ q,
1699
+ E.data.normalizeOptionLabels
1694
1700
  ]), j(() => () => {
1695
- W.current && W.current.abort(), z.current = !1, ce.current = !1;
1701
+ W.current && W.current.abort(), z.current = !1, ue.current = !1;
1696
1702
  }, []), j(() => {
1697
1703
  if (z.current) return;
1698
1704
  z.current = !0;
1699
- let e = de.current, t = fe.current, n = _e.current, r = e?.url && je(e.url, t);
1700
- e?.fetchOnMount && r && n && (n(), e.url && (ue.current = Ae(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1705
+ let e = pe.current, t = me.current, n = ye.current, r = e?.url && Ne(e.url, t);
1706
+ e?.fetchOnMount && r && n && (n(), e.url && (fe.current = Me(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1701
1707
  }, []), j(() => {
1702
- if (!z.current || !G || ue.current === ye || !K) return;
1708
+ if (!z.current || !xe || fe.current === K || !Se) return;
1703
1709
  let e = setTimeout(() => {
1704
- be(), ue.current = ye;
1710
+ q(), fe.current = K;
1705
1711
  }, 500);
1706
1712
  return () => clearTimeout(e);
1707
1713
  }, [
1708
- ye,
1709
- G,
1710
1714
  K,
1711
- be
1715
+ xe,
1716
+ Se,
1717
+ q
1712
1718
  ]), j(() => {
1713
- if (!ce.current) {
1714
- ce.current = !0;
1719
+ if (!ue.current) {
1720
+ ue.current = !0;
1715
1721
  return;
1716
1722
  }
1717
- let e = de.current, t = fe.current, n = _e.current, r = e?.url && je(e.url, t);
1718
- e?.fetchOnMount && r && n && (n(), e.url && (ue.current = Ae(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1719
- }, [ne(() => JSON.stringify({
1723
+ let e = pe.current, t = me.current, n = ye.current, r = e?.url && Ne(e.url, t);
1724
+ e?.fetchOnMount && r && n && (n(), e.url && (fe.current = Me(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1725
+ }, [ie(() => JSON.stringify({
1720
1726
  body: L?.body,
1721
1727
  fetchOnMount: L?.fetchOnMount,
1722
1728
  headers: L?.headers,
@@ -1728,31 +1734,31 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1728
1734
  sendAllFormValues: L?.sendAllFormValues,
1729
1735
  url: L?.url
1730
1736
  }), [L])]), j(() => {
1731
- if (!(L?.searchParam && p)) return;
1737
+ if (!(L?.searchParam && _)) return;
1732
1738
  let e = setTimeout(() => {
1733
- be(p);
1739
+ q(_);
1734
1740
  }, 300);
1735
1741
  return () => clearTimeout(e);
1736
1742
  }, [
1737
- p,
1743
+ _,
1738
1744
  L?.searchParam,
1739
- be
1745
+ q
1740
1746
  ]), L?.responseMapping) {
1741
- let e = Array.isArray(S) ? S[0] : S, t = d.find((t) => t.value === e);
1747
+ let e = Array.isArray(C) ? C[0] : C, t = p.find((t) => t.value === e);
1742
1748
  if (L.searchParam) {
1743
- let n = s && L?.showLoading;
1749
+ let n = o && L?.showLoading;
1744
1750
  return /* @__PURE__ */ F(H, {
1745
1751
  style: Y.container,
1746
1752
  children: [
1747
1753
  /* @__PURE__ */ F(B, {
1748
1754
  style: [Y.label, { color: I.textSecondary }],
1749
- children: [D || w.data.name, w.data.required && /* @__PURE__ */ P(B, {
1755
+ children: [ee || E.data.name, E.data.required && /* @__PURE__ */ P(B, {
1750
1756
  style: { color: I.error },
1751
1757
  children: "*"
1752
1758
  })]
1753
1759
  }),
1754
- /* @__PURE__ */ P(Ce, {
1755
- missing: k,
1760
+ /* @__PURE__ */ P(Te, {
1761
+ missing: te,
1756
1762
  children: /* @__PURE__ */ F(V, {
1757
1763
  style: [
1758
1764
  Y.trigger,
@@ -1760,34 +1766,29 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1760
1766
  backgroundColor: I.input,
1761
1767
  borderColor: I.border
1762
1768
  },
1763
- E && { borderColor: I.error },
1764
- k.length > 0 && { backgroundColor: I.muted }
1769
+ O && { borderColor: I.error },
1770
+ te.length > 0 && { backgroundColor: I.muted }
1765
1771
  ],
1766
- onPress: () => v(!0),
1767
- disabled: k.length > 0,
1772
+ onPress: () => x(!0),
1773
+ disabled: te.length > 0,
1768
1774
  activeOpacity: .7,
1769
1775
  children: [
1770
- n ? /* @__PURE__ */ F(H, {
1771
- style: Y.loadingTrigger,
1772
- children: [/* @__PURE__ */ P(ie, {
1773
- size: "small",
1774
- color: I.primary
1775
- }), /* @__PURE__ */ P(B, {
1776
- style: [Y.triggerText, { color: I.textMuted }],
1777
- numberOfLines: 1,
1778
- children: t?.label || C || R("renderer.defaultHttpInput.search")
1779
- })]
1780
- }) : /* @__PURE__ */ P(B, {
1776
+ /* @__PURE__ */ P(B, {
1781
1777
  style: [
1782
1778
  Y.triggerText,
1783
1779
  { color: I.text },
1784
1780
  !t && { color: I.textMuted }
1785
1781
  ],
1786
1782
  numberOfLines: 1,
1787
- children: t?.label || C || R("renderer.defaultHttpInput.search")
1783
+ children: t?.label || T || R("renderer.defaultHttpInput.search")
1784
+ }),
1785
+ n && /* @__PURE__ */ P(oe, {
1786
+ size: "small",
1787
+ color: I.primary,
1788
+ style: Y.triggerLoader
1788
1789
  }),
1789
1790
  e ? /* @__PURE__ */ P(V, {
1790
- onPress: () => T(""),
1791
+ onPress: () => D(""),
1791
1792
  hitSlop: {
1792
1793
  bottom: 8,
1793
1794
  left: 8,
@@ -1807,15 +1808,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1807
1808
  ]
1808
1809
  })
1809
1810
  }),
1810
- /* @__PURE__ */ P(se, {
1811
- visible: g,
1811
+ /* @__PURE__ */ P(le, {
1812
+ visible: b,
1812
1813
  transparent: !0,
1813
1814
  animationType: "fade",
1814
- onRequestClose: () => v(!1),
1815
+ onRequestClose: () => x(!1),
1815
1816
  children: /* @__PURE__ */ P(V, {
1816
1817
  style: Y.modalOverlay,
1817
1818
  activeOpacity: 1,
1818
- onPress: () => v(!1),
1819
+ onPress: () => x(!1),
1819
1820
  children: /* @__PURE__ */ F(V, {
1820
1821
  style: [Y.modalContent, { backgroundColor: I.card }],
1821
1822
  activeOpacity: 1,
@@ -1825,9 +1826,9 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1825
1826
  style: [Y.modalHeader, { borderBottomColor: I.separator }],
1826
1827
  children: [/* @__PURE__ */ P(B, {
1827
1828
  style: [Y.modalTitle, { color: I.text }],
1828
- children: D || w.data.name
1829
+ children: ee || E.data.name
1829
1830
  }), /* @__PURE__ */ P(V, {
1830
- onPress: () => v(!1),
1831
+ onPress: () => x(!1),
1831
1832
  children: /* @__PURE__ */ P(B, {
1832
1833
  style: [Y.closeButton, { color: I.textMuted }],
1833
1834
  children: "✕"
@@ -1836,7 +1837,7 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1836
1837
  }),
1837
1838
  /* @__PURE__ */ P(H, {
1838
1839
  style: Y.searchContainer,
1839
- children: /* @__PURE__ */ P(le, {
1840
+ children: /* @__PURE__ */ P(de, {
1840
1841
  style: [Y.searchInput, {
1841
1842
  backgroundColor: I.muted,
1842
1843
  borderColor: I.border,
@@ -1844,36 +1845,36 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1844
1845
  }],
1845
1846
  placeholder: R("renderer.defaultHttpInput.search"),
1846
1847
  placeholderTextColor: I.textMuted,
1847
- value: p,
1848
+ value: _,
1848
1849
  onChangeText: (e) => {
1849
- h(e), u(null);
1850
+ v(e), f(null);
1850
1851
  },
1851
1852
  autoFocus: !0,
1852
1853
  autoCapitalize: "none",
1853
1854
  autoCorrect: !1
1854
1855
  })
1855
1856
  }),
1856
- s ? /* @__PURE__ */ P(H, {
1857
+ o ? /* @__PURE__ */ P(H, {
1857
1858
  style: Y.loadingContainer,
1858
- children: /* @__PURE__ */ P(ie, {
1859
+ children: /* @__PURE__ */ P(oe, {
1859
1860
  size: "small",
1860
1861
  color: I.primary
1861
1862
  })
1862
- }) : l ? /* @__PURE__ */ F(H, {
1863
+ }) : d ? /* @__PURE__ */ F(H, {
1863
1864
  style: Y.errorContainer,
1864
1865
  children: [/* @__PURE__ */ P(B, {
1865
1866
  style: [Y.errorText, { color: I.error }],
1866
- children: l
1867
+ children: d
1867
1868
  }), /* @__PURE__ */ P(V, {
1868
- onPress: () => be(p),
1869
+ onPress: () => q(_),
1869
1870
  style: Y.retryButton,
1870
1871
  children: /* @__PURE__ */ P(B, {
1871
1872
  style: [Y.retryButtonText, { color: I.primary }],
1872
1873
  children: R("renderer.defaultHttpInput.retry")
1873
1874
  })
1874
1875
  })]
1875
- }) : /* @__PURE__ */ P(oe, {
1876
- data: d,
1876
+ }) : /* @__PURE__ */ P(ce, {
1877
+ data: p,
1877
1878
  keyExtractor: (e) => e.value,
1878
1879
  style: Y.optionsList,
1879
1880
  contentContainerStyle: Y.optionsListContent,
@@ -1889,10 +1890,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1889
1890
  return /* @__PURE__ */ F(V, {
1890
1891
  style: [Y.option, n && { backgroundColor: I.primaryLight }],
1891
1892
  onPress: () => {
1892
- T(t.value), v(!1);
1893
+ D(t.value), x(!1);
1893
1894
  },
1894
1895
  activeOpacity: .7,
1895
- children: [/* @__PURE__ */ P(he, {
1896
+ children: [/* @__PURE__ */ P(_e, {
1896
1897
  label: t.label,
1897
1898
  description: t.description,
1898
1899
  image: t.image
@@ -1907,30 +1908,30 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1907
1908
  })
1908
1909
  })
1909
1910
  }),
1910
- E && /* @__PURE__ */ P(B, {
1911
+ O && /* @__PURE__ */ P(B, {
1911
1912
  style: [Y.error, { color: I.error }],
1912
- children: E
1913
+ children: O
1913
1914
  }),
1914
- O && !E && /* @__PURE__ */ P(B, {
1915
+ k && !O && /* @__PURE__ */ P(B, {
1915
1916
  style: [Y.helperText, { color: I.textMuted }],
1916
- children: O
1917
+ children: k
1917
1918
  })
1918
1919
  ]
1919
1920
  });
1920
1921
  }
1921
- let n = s && L?.showLoading, r = k.length === 0 && d.length === 0 && !n ? l ?? R("renderer.defaultHttpInput.noDataAvailable") : void 0;
1922
+ let n = o && L?.showLoading, r = te.length === 0 && p.length === 0 && !n ? d ?? R("renderer.defaultHttpInput.noDataAvailable") : void 0;
1922
1923
  return /* @__PURE__ */ F(H, {
1923
1924
  style: Y.container,
1924
1925
  children: [
1925
1926
  /* @__PURE__ */ F(B, {
1926
1927
  style: [Y.label, { color: I.textSecondary }],
1927
- children: [D || w.data.name, w.data.required && /* @__PURE__ */ P(B, {
1928
+ children: [ee || E.data.name, E.data.required && /* @__PURE__ */ P(B, {
1928
1929
  style: { color: I.error },
1929
1930
  children: "*"
1930
1931
  })]
1931
1932
  }),
1932
- /* @__PURE__ */ P(Ce, {
1933
- missing: k,
1933
+ /* @__PURE__ */ P(Te, {
1934
+ missing: te,
1934
1935
  children: /* @__PURE__ */ F(V, {
1935
1936
  style: [
1936
1937
  Y.trigger,
@@ -1938,18 +1939,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1938
1939
  backgroundColor: I.input,
1939
1940
  borderColor: I.border
1940
1941
  },
1941
- E && { borderColor: I.error },
1942
- (n || d.length === 0) && { backgroundColor: I.muted }
1942
+ O && { borderColor: I.error },
1943
+ (n || p.length === 0) && { backgroundColor: I.muted }
1943
1944
  ],
1944
- onPress: () => v(!0),
1945
- disabled: n || d.length === 0,
1945
+ onPress: () => x(!0),
1946
+ disabled: n || p.length === 0,
1946
1947
  activeOpacity: .7,
1947
1948
  children: [
1948
- n && /* @__PURE__ */ P(ie, {
1949
- size: "small",
1950
- color: I.primary,
1951
- style: Y.triggerLoader
1952
- }),
1953
1949
  /* @__PURE__ */ P(B, {
1954
1950
  style: [
1955
1951
  Y.triggerText,
@@ -1957,10 +1953,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1957
1953
  !t && { color: I.textMuted }
1958
1954
  ],
1959
1955
  numberOfLines: 1,
1960
- children: t?.label || C || R("renderer.defaultHttpInput.selectOption")
1956
+ children: t?.label || T || R("renderer.defaultHttpInput.selectOption")
1957
+ }),
1958
+ n && /* @__PURE__ */ P(oe, {
1959
+ size: "small",
1960
+ color: I.primary,
1961
+ style: Y.triggerLoader
1961
1962
  }),
1962
1963
  e ? /* @__PURE__ */ P(V, {
1963
- onPress: () => T(""),
1964
+ onPress: () => D(""),
1964
1965
  hitSlop: {
1965
1966
  bottom: 8,
1966
1967
  left: 8,
@@ -1984,15 +1985,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
1984
1985
  style: [Y.disabledMessage, { color: I.error }],
1985
1986
  children: r
1986
1987
  }),
1987
- /* @__PURE__ */ P(se, {
1988
- visible: g,
1988
+ /* @__PURE__ */ P(le, {
1989
+ visible: b,
1989
1990
  transparent: !0,
1990
1991
  animationType: "fade",
1991
- onRequestClose: () => v(!1),
1992
+ onRequestClose: () => x(!1),
1992
1993
  children: /* @__PURE__ */ P(V, {
1993
1994
  style: Y.modalOverlay,
1994
1995
  activeOpacity: 1,
1995
- onPress: () => v(!1),
1996
+ onPress: () => x(!1),
1996
1997
  children: /* @__PURE__ */ F(V, {
1997
1998
  style: [Y.modalContent, { backgroundColor: I.card }],
1998
1999
  activeOpacity: 1,
@@ -2001,16 +2002,16 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2001
2002
  style: [Y.modalHeader, { borderBottomColor: I.separator }],
2002
2003
  children: [/* @__PURE__ */ P(B, {
2003
2004
  style: [Y.modalTitle, { color: I.text }],
2004
- children: D || w.data.name
2005
+ children: ee || E.data.name
2005
2006
  }), /* @__PURE__ */ P(V, {
2006
- onPress: () => v(!1),
2007
+ onPress: () => x(!1),
2007
2008
  children: /* @__PURE__ */ P(B, {
2008
2009
  style: [Y.closeButton, { color: I.textMuted }],
2009
2010
  children: "✕"
2010
2011
  })
2011
2012
  })]
2012
- }), /* @__PURE__ */ P(oe, {
2013
- data: d,
2013
+ }), /* @__PURE__ */ P(ce, {
2014
+ data: p,
2014
2015
  keyExtractor: (e) => e.value,
2015
2016
  style: Y.optionsList,
2016
2017
  contentContainerStyle: Y.optionsListContent,
@@ -2019,10 +2020,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2019
2020
  return /* @__PURE__ */ F(V, {
2020
2021
  style: [Y.option, n && { backgroundColor: I.primaryLight }],
2021
2022
  onPress: () => {
2022
- T(t.value), v(!1);
2023
+ D(t.value), x(!1);
2023
2024
  },
2024
2025
  activeOpacity: .7,
2025
- children: [/* @__PURE__ */ P(he, {
2026
+ children: [/* @__PURE__ */ P(_e, {
2026
2027
  label: t.label,
2027
2028
  description: t.description,
2028
2029
  image: t.image
@@ -2036,13 +2037,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2036
2037
  })
2037
2038
  })
2038
2039
  }),
2039
- E && /* @__PURE__ */ P(B, {
2040
+ O && /* @__PURE__ */ P(B, {
2040
2041
  style: [Y.error, { color: I.error }],
2041
- children: E
2042
+ children: O
2042
2043
  }),
2043
- O && !E && /* @__PURE__ */ P(B, {
2044
+ k && !O && /* @__PURE__ */ P(B, {
2044
2045
  style: [Y.helperText, { color: I.textMuted }],
2045
- children: O
2046
+ children: k
2046
2047
  })
2047
2048
  ]
2048
2049
  });
@@ -2052,27 +2053,27 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2052
2053
  children: [
2053
2054
  /* @__PURE__ */ F(B, {
2054
2055
  style: [Y.label, { color: I.textSecondary }],
2055
- children: [D || w.data.name, w.data.required && /* @__PURE__ */ P(B, {
2056
+ children: [ee || E.data.name, E.data.required && /* @__PURE__ */ P(B, {
2056
2057
  style: { color: I.error },
2057
2058
  children: "*"
2058
2059
  })]
2059
2060
  }),
2060
- /* @__PURE__ */ P(le, {
2061
+ /* @__PURE__ */ P(de, {
2061
2062
  style: [Y.input, {
2062
2063
  backgroundColor: I.muted,
2063
2064
  borderColor: I.border,
2064
2065
  color: I.textMuted
2065
2066
  }],
2066
- value: typeof S == "string" ? S : JSON.stringify(S),
2067
+ value: typeof C == "string" ? C : JSON.stringify(C),
2067
2068
  editable: !1
2068
2069
  }),
2069
- E && /* @__PURE__ */ P(B, {
2070
+ O && /* @__PURE__ */ P(B, {
2070
2071
  style: [Y.error, { color: I.error }],
2071
- children: E
2072
+ children: O
2072
2073
  }),
2073
- O && !E && /* @__PURE__ */ P(B, {
2074
+ k && !O && /* @__PURE__ */ P(B, {
2074
2075
  style: [Y.helperText, { color: I.textMuted }],
2075
- children: O
2076
+ children: k
2076
2077
  })
2077
2078
  ]
2078
2079
  });
@@ -2133,12 +2134,6 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2133
2134
  alignItems: "center",
2134
2135
  paddingVertical: 24
2135
2136
  },
2136
- loadingTrigger: {
2137
- alignItems: "center",
2138
- flex: 1,
2139
- flexDirection: "row",
2140
- gap: 8
2141
- },
2142
2137
  modalContent: {
2143
2138
  borderRadius: 12,
2144
2139
  maxHeight: "80%",
@@ -2203,23 +2198,23 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2203
2198
  flex: 1,
2204
2199
  fontSize: 14
2205
2200
  }
2206
- }), Pe = ({ field: e, extra: t }) => {
2207
- let { value: n, placeholder: r, name: i } = e, [a, o] = N(n?.toString() ?? ""), { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = m();
2201
+ }), Ie = ({ field: e, extra: t }) => {
2202
+ let { value: n, placeholder: r, name: i } = e, [a, o] = N(n?.toString() ?? ""), { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = y();
2208
2203
  return j(() => {
2209
2204
  o(n?.toString() ?? "");
2210
2205
  }, [n]), /* @__PURE__ */ F(H, {
2211
- style: Fe.container,
2206
+ style: Le.container,
2212
2207
  children: [
2213
2208
  /* @__PURE__ */ F(B, {
2214
- style: [Fe.label, { color: f.textSecondary }],
2209
+ style: [Le.label, { color: f.textSecondary }],
2215
2210
  children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
2216
2211
  style: { color: f.error },
2217
2212
  children: "*"
2218
2213
  })]
2219
2214
  }),
2220
- /* @__PURE__ */ P(le, {
2215
+ /* @__PURE__ */ P(de, {
2221
2216
  style: [
2222
- Fe.input,
2217
+ Le.input,
2223
2218
  {
2224
2219
  backgroundColor: f.input,
2225
2220
  borderColor: f.border,
@@ -2242,16 +2237,16 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2242
2237
  accessibilityLabel: i
2243
2238
  }),
2244
2239
  l && /* @__PURE__ */ P(B, {
2245
- style: [Fe.error, { color: f.error }],
2240
+ style: [Le.error, { color: f.error }],
2246
2241
  children: l
2247
2242
  }),
2248
2243
  d && !l && /* @__PURE__ */ P(B, {
2249
- style: [Fe.helperText, { color: f.textMuted }],
2244
+ style: [Le.helperText, { color: f.textMuted }],
2250
2245
  children: d
2251
2246
  })
2252
2247
  ]
2253
2248
  });
2254
- }, Fe = z.create({
2249
+ }, Le = z.create({
2255
2250
  container: { marginBottom: 16 },
2256
2251
  error: {
2257
2252
  fontSize: 12,
@@ -2273,23 +2268,23 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2273
2268
  fontWeight: "500",
2274
2269
  marginBottom: 8
2275
2270
  }
2276
- }), Ie = ({ field: e, extra: t }) => {
2277
- let [n, r] = N(!1), { value: i, placeholder: a, name: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = m();
2271
+ }), Re = ({ field: e, extra: t }) => {
2272
+ let [n, r] = N(!1), { value: i, placeholder: a, name: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = y();
2278
2273
  return /* @__PURE__ */ F(H, {
2279
- style: Le.container,
2274
+ style: ze.container,
2280
2275
  children: [
2281
2276
  /* @__PURE__ */ F(B, {
2282
- style: [Le.label, { color: f.textSecondary }],
2277
+ style: [ze.label, { color: f.textSecondary }],
2283
2278
  children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
2284
2279
  style: { color: f.error },
2285
2280
  children: "*"
2286
2281
  })]
2287
2282
  }),
2288
2283
  /* @__PURE__ */ F(H, {
2289
- style: Le.inputWrapper,
2290
- children: [/* @__PURE__ */ P(le, {
2284
+ style: ze.inputWrapper,
2285
+ children: [/* @__PURE__ */ P(de, {
2291
2286
  style: [
2292
- Le.input,
2287
+ ze.input,
2293
2288
  {
2294
2289
  backgroundColor: f.input,
2295
2290
  borderColor: f.border,
@@ -2304,26 +2299,26 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2304
2299
  secureTextEntry: !n,
2305
2300
  accessibilityLabel: o
2306
2301
  }), /* @__PURE__ */ P(V, {
2307
- style: Le.toggleButton,
2302
+ style: ze.toggleButton,
2308
2303
  onPress: () => r(!n),
2309
2304
  activeOpacity: .7,
2310
2305
  children: /* @__PURE__ */ P(B, {
2311
- style: [Le.toggleText, { color: f.primary }],
2306
+ style: [ze.toggleText, { color: f.primary }],
2312
2307
  children: n ? "Hide" : "Show"
2313
2308
  })
2314
2309
  })]
2315
2310
  }),
2316
2311
  l && /* @__PURE__ */ P(B, {
2317
- style: [Le.error, { color: f.error }],
2312
+ style: [ze.error, { color: f.error }],
2318
2313
  children: l
2319
2314
  }),
2320
2315
  d && !l && /* @__PURE__ */ P(B, {
2321
- style: [Le.helperText, { color: f.textMuted }],
2316
+ style: [ze.helperText, { color: f.textMuted }],
2322
2317
  children: d
2323
2318
  })
2324
2319
  ]
2325
2320
  });
2326
- }, Le = z.create({
2321
+ }, ze = z.create({
2327
2322
  container: { marginBottom: 16 },
2328
2323
  error: {
2329
2324
  fontSize: 12,
@@ -2361,36 +2356,36 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2361
2356
  fontSize: 12,
2362
2357
  fontWeight: "600"
2363
2358
  }
2364
- }), Re = ({ field: e, extra: t }) => {
2365
- let { value: n } = e, { node: r, setValue: i, error: o, label: s, helperText: c } = t, { colors: l } = m(), u = a(), d = r.data.options || [], f = n || "", p = r.data.variant !== "default", h = (e) => {
2359
+ }), Be = ({ field: e, extra: t }) => {
2360
+ let { value: n } = e, { node: r, setValue: i, error: a, label: o, helperText: s } = t, { colors: c } = y(), l = h(), u = r.data.options || [], d = n || "", f = r.data.variant !== "default", p = (e) => {
2366
2361
  i(e);
2367
2362
  };
2368
2363
  return /* @__PURE__ */ F(H, {
2369
2364
  style: X.container,
2370
2365
  children: [
2371
2366
  /* @__PURE__ */ F(B, {
2372
- style: [X.label, { color: l.textSecondary }],
2373
- children: [s || r.data.name, r.data.required && /* @__PURE__ */ P(B, {
2374
- style: { color: l.error },
2367
+ style: [X.label, { color: c.textSecondary }],
2368
+ children: [o || r.data.name, r.data.required && /* @__PURE__ */ P(B, {
2369
+ style: { color: c.error },
2375
2370
  children: "*"
2376
2371
  })]
2377
2372
  }),
2378
- d.map((e) => {
2379
- let t = f === e.value, n = u(e.label) || e.value, r = u(e.description);
2380
- return p ? /* @__PURE__ */ F(V, {
2373
+ u.map((e) => {
2374
+ let t = d === e.value, n = l(e.label) || e.value, r = l(e.description);
2375
+ return f ? /* @__PURE__ */ F(V, {
2381
2376
  style: [
2382
2377
  X.card,
2383
2378
  {
2384
- backgroundColor: l.input,
2385
- borderColor: l.border
2379
+ backgroundColor: c.input,
2380
+ borderColor: c.border
2386
2381
  },
2387
2382
  t && {
2388
- backgroundColor: `${l.primary}10`,
2389
- borderColor: l.primary
2383
+ backgroundColor: `${c.primary}10`,
2384
+ borderColor: c.primary
2390
2385
  },
2391
2386
  e.disabled && { opacity: .5 }
2392
2387
  ],
2393
- onPress: () => h(e.value),
2388
+ onPress: () => p(e.value),
2394
2389
  disabled: e.disabled,
2395
2390
  activeOpacity: .7,
2396
2391
  children: [
@@ -2401,10 +2396,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2401
2396
  /* @__PURE__ */ F(H, {
2402
2397
  style: X.cardTextContainer,
2403
2398
  children: [/* @__PURE__ */ P(B, {
2404
- style: [X.cardLabel, { color: l.textSecondary }],
2399
+ style: [X.cardLabel, { color: c.textSecondary }],
2405
2400
  children: n
2406
2401
  }), r && /* @__PURE__ */ P(B, {
2407
- style: [X.cardDescription, { color: l.textMuted }],
2402
+ style: [X.cardDescription, { color: c.textMuted }],
2408
2403
  children: r
2409
2404
  })]
2410
2405
  }),
@@ -2413,17 +2408,17 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2413
2408
  X.radio,
2414
2409
  X.cardRadio,
2415
2410
  {
2416
- backgroundColor: l.input,
2417
- borderColor: l.border
2411
+ backgroundColor: c.input,
2412
+ borderColor: c.border
2418
2413
  },
2419
- t && { borderColor: l.primary }
2414
+ t && { borderColor: c.primary }
2420
2415
  ],
2421
- children: t && /* @__PURE__ */ P(H, { style: [X.radioInner, { backgroundColor: l.primary }] })
2416
+ children: t && /* @__PURE__ */ P(H, { style: [X.radioInner, { backgroundColor: c.primary }] })
2422
2417
  })
2423
2418
  ]
2424
2419
  }, e.value) : /* @__PURE__ */ F(V, {
2425
2420
  style: X.option,
2426
- onPress: () => h(e.value),
2421
+ onPress: () => p(e.value),
2427
2422
  disabled: e.disabled,
2428
2423
  activeOpacity: .7,
2429
2424
  children: [
@@ -2431,12 +2426,12 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2431
2426
  style: [
2432
2427
  X.radio,
2433
2428
  {
2434
- backgroundColor: l.input,
2435
- borderColor: l.border
2429
+ backgroundColor: c.input,
2430
+ borderColor: c.border
2436
2431
  },
2437
- t && { borderColor: l.primary }
2432
+ t && { borderColor: c.primary }
2438
2433
  ],
2439
- children: t && /* @__PURE__ */ P(H, { style: [X.radioInner, { backgroundColor: l.primary }] })
2434
+ children: t && /* @__PURE__ */ P(H, { style: [X.radioInner, { backgroundColor: c.primary }] })
2440
2435
  }),
2441
2436
  e.image && /* @__PURE__ */ P(L, {
2442
2437
  source: { uri: e.image },
@@ -2447,25 +2442,25 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2447
2442
  children: [/* @__PURE__ */ P(B, {
2448
2443
  style: [
2449
2444
  X.optionLabel,
2450
- { color: l.textSecondary },
2451
- e.disabled && { color: l.textMuted }
2445
+ { color: c.textSecondary },
2446
+ e.disabled && { color: c.textMuted }
2452
2447
  ],
2453
2448
  children: n
2454
2449
  }), r && /* @__PURE__ */ P(B, {
2455
- style: [X.optionDescription, { color: l.textMuted }],
2450
+ style: [X.optionDescription, { color: c.textMuted }],
2456
2451
  children: r
2457
2452
  })]
2458
2453
  })
2459
2454
  ]
2460
2455
  }, e.value);
2461
2456
  }),
2462
- o && /* @__PURE__ */ P(B, {
2463
- style: [X.error, { color: l.error }],
2464
- children: o
2457
+ a && /* @__PURE__ */ P(B, {
2458
+ style: [X.error, { color: c.error }],
2459
+ children: a
2465
2460
  }),
2466
- c && !o && /* @__PURE__ */ P(B, {
2467
- style: [X.helperText, { color: l.textMuted }],
2468
- children: c
2461
+ s && !a && /* @__PURE__ */ P(B, {
2462
+ style: [X.helperText, { color: c.textMuted }],
2463
+ children: s
2469
2464
  })
2470
2465
  ]
2471
2466
  });
@@ -2542,17 +2537,17 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2542
2537
  height: 10,
2543
2538
  width: 10
2544
2539
  }
2545
- }), ze = ({ field: e, extra: t }) => {
2546
- let [n, r] = N(!1), { value: i, placeholder: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = m(), p = a(), h = s.data.options || [], g = s.data.multiple, _ = Array.isArray(i) ? i : i ? [i] : [], v = (e) => {
2547
- g ? c(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (c(e), r(!1));
2540
+ }), Ve = ({ field: e, extra: t }) => {
2541
+ let [n, r] = N(!1), { value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = y(), f = h(), p = o.data.options || [], m = o.data.multiple, g = Array.isArray(i) ? i : i ? [i] : [], _ = (e) => {
2542
+ m ? s(g.includes(e) ? g.filter((t) => t !== e) : [...g, e]) : (s(e), r(!1));
2548
2543
  };
2549
2544
  return /* @__PURE__ */ F(H, {
2550
2545
  style: Z.container,
2551
2546
  children: [
2552
2547
  /* @__PURE__ */ F(B, {
2553
- style: [Z.label, { color: f.textSecondary }],
2554
- children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
2555
- style: { color: f.error },
2548
+ style: [Z.label, { color: d.textSecondary }],
2549
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ P(B, {
2550
+ style: { color: d.error },
2556
2551
  children: "*"
2557
2552
  })]
2558
2553
  }),
@@ -2560,10 +2555,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2560
2555
  style: [
2561
2556
  Z.trigger,
2562
2557
  {
2563
- backgroundColor: f.input,
2564
- borderColor: f.border
2558
+ backgroundColor: d.input,
2559
+ borderColor: d.border
2565
2560
  },
2566
- l && { borderColor: f.error }
2561
+ c && { borderColor: d.error }
2567
2562
  ],
2568
2563
  onPress: () => r(!0),
2569
2564
  activeOpacity: .7,
@@ -2571,18 +2566,18 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2571
2566
  /* @__PURE__ */ P(B, {
2572
2567
  style: [
2573
2568
  Z.triggerText,
2574
- { color: f.text },
2575
- _.length === 0 && { color: f.textMuted }
2569
+ { color: d.text },
2570
+ g.length === 0 && { color: d.textMuted }
2576
2571
  ],
2577
2572
  children: (() => {
2578
- if (_.length === 0) return o || "Select...";
2579
- if (g) return h.filter((e) => _.includes(e.value)).map((e) => p(e.label) || e.value).join(", ");
2580
- let e = h.find((e) => e.value === _[0]);
2581
- return e ? p(e.label) || e.value : o || "Select...";
2573
+ if (g.length === 0) return a || "Select...";
2574
+ if (m) return p.filter((e) => g.includes(e.value)).map((e) => f(e.label) || e.value).join(", ");
2575
+ let e = p.find((e) => e.value === g[0]);
2576
+ return e ? f(e.label) || e.value : a || "Select...";
2582
2577
  })()
2583
2578
  }),
2584
- _.length > 0 && /* @__PURE__ */ P(V, {
2585
- onPress: () => c(g ? [] : ""),
2579
+ g.length > 0 && /* @__PURE__ */ P(V, {
2580
+ onPress: () => s(m ? [] : ""),
2586
2581
  hitSlop: {
2587
2582
  bottom: 8,
2588
2583
  left: 8,
@@ -2591,17 +2586,17 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2591
2586
  },
2592
2587
  style: Z.clearButton,
2593
2588
  children: /* @__PURE__ */ P(B, {
2594
- style: [Z.clearIcon, { color: f.textMuted }],
2589
+ style: [Z.clearIcon, { color: d.textMuted }],
2595
2590
  children: "✕"
2596
2591
  })
2597
2592
  }),
2598
2593
  /* @__PURE__ */ P(B, {
2599
- style: [Z.arrow, { color: f.textMuted }],
2594
+ style: [Z.arrow, { color: d.textMuted }],
2600
2595
  children: "▼"
2601
2596
  })
2602
2597
  ]
2603
2598
  }),
2604
- /* @__PURE__ */ P(se, {
2599
+ /* @__PURE__ */ P(le, {
2605
2600
  visible: n,
2606
2601
  transparent: !0,
2607
2602
  animationType: "fade",
@@ -2611,45 +2606,45 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2611
2606
  activeOpacity: 1,
2612
2607
  onPress: () => r(!1),
2613
2608
  children: /* @__PURE__ */ F(H, {
2614
- style: [Z.modalContent, { backgroundColor: f.card }],
2609
+ style: [Z.modalContent, { backgroundColor: d.card }],
2615
2610
  onStartShouldSetResponder: () => !0,
2616
2611
  children: [
2617
2612
  /* @__PURE__ */ F(H, {
2618
- style: [Z.modalHeader, { borderBottomColor: f.border }],
2613
+ style: [Z.modalHeader, { borderBottomColor: d.border }],
2619
2614
  children: [/* @__PURE__ */ P(B, {
2620
- style: [Z.modalTitle, { color: f.text }],
2621
- children: u || s.data.name
2615
+ style: [Z.modalTitle, { color: d.text }],
2616
+ children: l || o.data.name
2622
2617
  }), /* @__PURE__ */ P(V, {
2623
2618
  onPress: () => r(!1),
2624
2619
  children: /* @__PURE__ */ P(B, {
2625
- style: [Z.closeButton, { color: f.textMuted }],
2620
+ style: [Z.closeButton, { color: d.textMuted }],
2626
2621
  children: "✕"
2627
2622
  })
2628
2623
  })]
2629
2624
  }),
2630
2625
  /* @__PURE__ */ P(R, {
2631
2626
  style: Z.optionsList,
2632
- children: h.map((e) => {
2633
- let t = _.includes(e.value);
2627
+ children: p.map((e) => {
2628
+ let t = g.includes(e.value);
2634
2629
  return /* @__PURE__ */ F(V, {
2635
- style: [Z.option, t && { backgroundColor: `${f.primary}20` }],
2636
- onPress: () => v(e.value),
2630
+ style: [Z.option, t && { backgroundColor: `${d.primary}20` }],
2631
+ onPress: () => _(e.value),
2637
2632
  disabled: e.disabled,
2638
2633
  activeOpacity: .7,
2639
- children: [/* @__PURE__ */ P(he, {
2640
- label: p(e.label) || e.value,
2641
- description: p(e.description),
2634
+ children: [/* @__PURE__ */ P(_e, {
2635
+ label: f(e.label) || e.value,
2636
+ description: f(e.description),
2642
2637
  image: e.image,
2643
2638
  disabled: e.disabled
2644
2639
  }), t && /* @__PURE__ */ P(B, {
2645
- style: [Z.checkmark, { color: f.primary }],
2640
+ style: [Z.checkmark, { color: d.primary }],
2646
2641
  children: "✓"
2647
2642
  })]
2648
2643
  }, e.value);
2649
2644
  })
2650
2645
  }),
2651
- g && /* @__PURE__ */ P(V, {
2652
- style: [Z.doneButton, { backgroundColor: f.primary }],
2646
+ m && /* @__PURE__ */ P(V, {
2647
+ style: [Z.doneButton, { backgroundColor: d.primary }],
2653
2648
  onPress: () => r(!1),
2654
2649
  children: /* @__PURE__ */ P(B, {
2655
2650
  style: Z.doneButtonText,
@@ -2660,13 +2655,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2660
2655
  })
2661
2656
  })
2662
2657
  }),
2663
- l && /* @__PURE__ */ P(B, {
2664
- style: [Z.error, { color: f.error }],
2665
- children: l
2658
+ c && /* @__PURE__ */ P(B, {
2659
+ style: [Z.error, { color: d.error }],
2660
+ children: c
2666
2661
  }),
2667
- d && !l && /* @__PURE__ */ P(B, {
2668
- style: [Z.helperText, { color: f.textMuted }],
2669
- children: d
2662
+ u && !c && /* @__PURE__ */ P(B, {
2663
+ style: [Z.helperText, { color: d.textMuted }],
2664
+ children: u
2670
2665
  })
2671
2666
  ]
2672
2667
  });
@@ -2756,23 +2751,23 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2756
2751
  flex: 1,
2757
2752
  fontSize: 14
2758
2753
  }
2759
- }), Be = (e) => null, Ve = ({ field: e, extra: t }) => {
2760
- let { value: n } = e, { node: r, setValue: i, error: a, label: o, helperText: s } = t, { colors: c } = m(), l = !!n;
2754
+ }), He = (e) => null, Ue = ({ field: e, extra: t }) => {
2755
+ let { value: n } = e, { node: r, setValue: i, error: a, label: o, helperText: s } = t, { colors: c } = y(), l = !!n;
2761
2756
  return /* @__PURE__ */ F(H, {
2762
- style: He.container,
2757
+ style: We.container,
2763
2758
  children: [
2764
2759
  /* @__PURE__ */ F(H, {
2765
- style: He.row,
2760
+ style: We.row,
2766
2761
  children: [/* @__PURE__ */ P(H, {
2767
- style: He.labelContainer,
2762
+ style: We.labelContainer,
2768
2763
  children: /* @__PURE__ */ F(B, {
2769
- style: [He.label, { color: c.textSecondary }],
2764
+ style: [We.label, { color: c.textSecondary }],
2770
2765
  children: [o || r.data.name, r.data.required && /* @__PURE__ */ P(B, {
2771
2766
  style: { color: c.error },
2772
2767
  children: "*"
2773
2768
  })]
2774
2769
  })
2775
- }), /* @__PURE__ */ P(ce, {
2770
+ }), /* @__PURE__ */ P(ue, {
2776
2771
  trackColor: {
2777
2772
  false: c.border,
2778
2773
  true: `${c.primary}80`
@@ -2784,16 +2779,16 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2784
2779
  })]
2785
2780
  }),
2786
2781
  a && /* @__PURE__ */ P(B, {
2787
- style: [He.error, { color: c.error }],
2782
+ style: [We.error, { color: c.error }],
2788
2783
  children: a
2789
2784
  }),
2790
2785
  s && !a && /* @__PURE__ */ P(B, {
2791
- style: [He.helperText, { color: c.textMuted }],
2786
+ style: [We.helperText, { color: c.textMuted }],
2792
2787
  children: s
2793
2788
  })
2794
2789
  ]
2795
2790
  });
2796
- }, He = z.create({
2791
+ }, We = z.create({
2797
2792
  container: { marginBottom: 16 },
2798
2793
  error: {
2799
2794
  fontSize: 12,
@@ -2813,21 +2808,21 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2813
2808
  flexDirection: "row",
2814
2809
  justifyContent: "space-between"
2815
2810
  }
2816
- }), Ue = ({ field: e, extra: t }) => {
2817
- let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = m();
2811
+ }), Ge = ({ field: e, extra: t }) => {
2812
+ let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = y();
2818
2813
  return /* @__PURE__ */ F(H, {
2819
- style: We.container,
2814
+ style: Ke.container,
2820
2815
  children: [
2821
2816
  /* @__PURE__ */ F(B, {
2822
- style: [We.label, { color: u.textSecondary }],
2817
+ style: [Ke.label, { color: u.textSecondary }],
2823
2818
  children: [c || a.data.name, a.data.required && /* @__PURE__ */ P(B, {
2824
2819
  style: { color: u.error },
2825
2820
  children: "*"
2826
2821
  })]
2827
2822
  }),
2828
- /* @__PURE__ */ P(le, {
2823
+ /* @__PURE__ */ P(de, {
2829
2824
  style: [
2830
- We.textarea,
2825
+ Ke.textarea,
2831
2826
  {
2832
2827
  backgroundColor: u.input,
2833
2828
  borderColor: u.border,
@@ -2845,16 +2840,16 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2845
2840
  accessibilityLabel: i
2846
2841
  }),
2847
2842
  s && /* @__PURE__ */ P(B, {
2848
- style: [We.error, { color: u.error }],
2843
+ style: [Ke.error, { color: u.error }],
2849
2844
  children: s
2850
2845
  }),
2851
2846
  l && !s && /* @__PURE__ */ P(B, {
2852
- style: [We.helperText, { color: u.textMuted }],
2847
+ style: [Ke.helperText, { color: u.textMuted }],
2853
2848
  children: l
2854
2849
  })
2855
2850
  ]
2856
2851
  });
2857
- }, We = z.create({
2852
+ }, Ke = z.create({
2858
2853
  container: { marginBottom: 16 },
2859
2854
  error: {
2860
2855
  fontSize: 12,
@@ -2877,21 +2872,21 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2877
2872
  paddingHorizontal: 12,
2878
2873
  paddingVertical: 8
2879
2874
  }
2880
- }), Ge = ({ field: e, extra: t }) => {
2881
- let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = m();
2875
+ }), qe = ({ field: e, extra: t }) => {
2876
+ let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = y();
2882
2877
  return /* @__PURE__ */ F(H, {
2883
- style: Ke.container,
2878
+ style: Je.container,
2884
2879
  children: [
2885
2880
  /* @__PURE__ */ F(B, {
2886
- style: [Ke.label, { color: u.textSecondary }],
2881
+ style: [Je.label, { color: u.textSecondary }],
2887
2882
  children: [c || a.data.name, a.data.required && /* @__PURE__ */ P(B, {
2888
2883
  style: { color: u.error },
2889
2884
  children: "*"
2890
2885
  })]
2891
2886
  }),
2892
- /* @__PURE__ */ P(le, {
2887
+ /* @__PURE__ */ P(de, {
2893
2888
  style: [
2894
- Ke.input,
2889
+ Je.input,
2895
2890
  {
2896
2891
  backgroundColor: u.input,
2897
2892
  borderColor: u.border,
@@ -2906,16 +2901,16 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2906
2901
  accessibilityLabel: i
2907
2902
  }),
2908
2903
  s && /* @__PURE__ */ P(B, {
2909
- style: [Ke.error, { color: u.error }],
2904
+ style: [Je.error, { color: u.error }],
2910
2905
  children: s
2911
2906
  }),
2912
2907
  l && !s && /* @__PURE__ */ P(B, {
2913
- style: [Ke.helperText, { color: u.textMuted }],
2908
+ style: [Je.helperText, { color: u.textMuted }],
2914
2909
  children: l
2915
2910
  })
2916
2911
  ]
2917
2912
  });
2918
- }, Ke = z.create({
2913
+ }, Je = z.create({
2919
2914
  container: { marginBottom: 16 },
2920
2915
  error: {
2921
2916
  fontSize: 12,
@@ -2937,20 +2932,20 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2937
2932
  fontWeight: "500",
2938
2933
  marginBottom: 8
2939
2934
  }
2940
- }), qe = ({ field: e, extra: t }) => {
2941
- let { value: n, placeholder: r } = e, i = (n || "").split(":"), a = Number.parseInt(i[0], 10), o = Number.parseInt(i[1], 10), s = Number.isNaN(a) ? 0 : a, c = Number.isNaN(o) ? 0 : o, [l, u] = N(s || 0), [d, f] = N(c || 0), [p, h] = N(!1), { node: g, setValue: _, error: v, label: y, helperText: b } = t, { colors: x } = m(), S = M(null), C = M(null), w = Array.from({ length: 24 }, (e, t) => t), T = Array.from({ length: 60 }, (e, t) => t), E = () => n || r || "Select time", D = te(() => {
2942
- _(`${String(l).padStart(2, "0")}:${String(d).padStart(2, "0")}`), h(!1);
2935
+ }), Ye = ({ field: e, extra: t }) => {
2936
+ let { value: n, placeholder: r } = e, i = (n || "").split(":"), a = Number.parseInt(i[0], 10), o = Number.parseInt(i[1], 10), s = Number.isNaN(a) ? 0 : a, c = Number.isNaN(o) ? 0 : o, [l, u] = N(s || 0), [d, f] = N(c || 0), [p, m] = N(!1), { node: h, setValue: g, error: _, label: v, helperText: b } = t, { colors: x } = y(), S = M(null), C = M(null), w = Array.from({ length: 24 }, (e, t) => t), T = Array.from({ length: 60 }, (e, t) => t), E = () => n || r || "Select time", D = re(() => {
2937
+ g(`${String(l).padStart(2, "0")}:${String(d).padStart(2, "0")}`), m(!1);
2943
2938
  }, [
2944
2939
  l,
2945
2940
  d,
2946
- _
2941
+ g
2947
2942
  ]);
2948
2943
  return /* @__PURE__ */ F(H, {
2949
2944
  style: Q.container,
2950
2945
  children: [
2951
2946
  /* @__PURE__ */ F(B, {
2952
2947
  style: [Q.label, { color: x.textSecondary }],
2953
- children: [y || g.data.name, g.data.required && /* @__PURE__ */ P(B, {
2948
+ children: [v || h.data.name, h.data.required && /* @__PURE__ */ P(B, {
2954
2949
  style: { color: x.error },
2955
2950
  children: "*"
2956
2951
  })]
@@ -2962,10 +2957,10 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2962
2957
  backgroundColor: x.input,
2963
2958
  borderColor: x.border
2964
2959
  },
2965
- v && { borderColor: x.error }
2960
+ _ && { borderColor: x.error }
2966
2961
  ],
2967
2962
  onPress: () => {
2968
- u(s || 0), f(c || 0), h(!0);
2963
+ u(s || 0), f(c || 0), m(!0);
2969
2964
  },
2970
2965
  activeOpacity: .7,
2971
2966
  children: [/* @__PURE__ */ P(B, {
@@ -2981,15 +2976,15 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2981
2976
  children: "🕐"
2982
2977
  })]
2983
2978
  }),
2984
- /* @__PURE__ */ P(se, {
2979
+ /* @__PURE__ */ P(le, {
2985
2980
  visible: p,
2986
2981
  transparent: !0,
2987
2982
  animationType: "fade",
2988
- onRequestClose: () => h(!1),
2983
+ onRequestClose: () => m(!1),
2989
2984
  children: /* @__PURE__ */ P(V, {
2990
2985
  style: Q.modalOverlay,
2991
2986
  activeOpacity: 1,
2992
- onPress: () => h(!1),
2987
+ onPress: () => m(!1),
2993
2988
  children: /* @__PURE__ */ F(V, {
2994
2989
  style: [Q.modalContent, { backgroundColor: x.card }],
2995
2990
  activeOpacity: 1,
@@ -2999,9 +2994,9 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
2999
2994
  style: [Q.modalHeader, { borderBottomColor: x.separator }],
3000
2995
  children: [/* @__PURE__ */ P(B, {
3001
2996
  style: [Q.modalTitle, { color: x.text }],
3002
- children: y || g.data.name
2997
+ children: v || h.data.name
3003
2998
  }), /* @__PURE__ */ P(V, {
3004
- onPress: () => h(!1),
2999
+ onPress: () => m(!1),
3005
3000
  children: /* @__PURE__ */ P(B, {
3006
3001
  style: [Q.closeButton, { color: x.textMuted }],
3007
3002
  children: "✕"
@@ -3086,11 +3081,11 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3086
3081
  })
3087
3082
  })
3088
3083
  }),
3089
- v && /* @__PURE__ */ P(B, {
3084
+ _ && /* @__PURE__ */ P(B, {
3090
3085
  style: [Q.error, { color: x.error }],
3091
- children: v
3086
+ children: _
3092
3087
  }),
3093
- b && !v && /* @__PURE__ */ P(B, {
3088
+ b && !_ && /* @__PURE__ */ P(B, {
3094
3089
  style: [Q.helperText, { color: x.textMuted }],
3095
3090
  children: b
3096
3091
  })
@@ -3187,27 +3182,27 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3187
3182
  flex: 1,
3188
3183
  fontSize: 14
3189
3184
  }
3190
- }), Je = ({ field: e, extra: t }) => {
3191
- let [n, r] = N(!1), [i, o] = N(!0), { value: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = m(), h = a(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", y = _.split(":"), b = Number.parseInt(y[0], 10), x = Number.parseInt(y[1], 10), S = Number.isNaN(b) ? 0 : b, C = Number.isNaN(x) ? 0 : x, w = v.split(":"), T = Number.parseInt(w[0], 10), E = Number.parseInt(w[1], 10), D = Number.isNaN(T) ? 0 : T, O = Number.isNaN(E) ? 0 : E, [k, A] = N(0), [ee, j] = N(0), ne = Array.from({ length: 24 }, (e, t) => t), M = Array.from({ length: 60 }, (e, t) => t), re = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectDateRange"), ie = te(() => {
3192
- let e = `${String(k).padStart(2, "0")}:${String(ee).padStart(2, "0")}`;
3193
- i ? (l([e, v]), o(!1), A(D || 0), j(O || 0)) : (l([_, e]), r(!1), o(!0));
3185
+ }), Xe = ({ field: e, extra: t }) => {
3186
+ let [n, r] = N(!1), [i, a] = N(!0), { value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = y(), p = h(), m = Array.isArray(o) ? o : [], g = m[0] || "", _ = m[1] || "", v = g.split(":"), b = Number.parseInt(v[0], 10), x = Number.parseInt(v[1], 10), S = Number.isNaN(b) ? 0 : b, C = Number.isNaN(x) ? 0 : x, w = _.split(":"), T = Number.parseInt(w[0], 10), E = Number.parseInt(w[1], 10), D = Number.isNaN(T) ? 0 : T, O = Number.isNaN(E) ? 0 : E, [ee, k] = N(0), [te, A] = N(0), ne = Array.from({ length: 24 }, (e, t) => t), j = Array.from({ length: 60 }, (e, t) => t), ie = () => g && _ ? `${g} - ${_}` : g || p("renderer.defaultInputs.selectDateRange"), M = re(() => {
3187
+ let e = `${String(ee).padStart(2, "0")}:${String(te).padStart(2, "0")}`;
3188
+ i ? (c([e, _]), a(!1), k(D || 0), A(O || 0)) : (c([g, e]), r(!1), a(!0));
3194
3189
  }, [
3195
3190
  i,
3196
- k,
3197
3191
  ee,
3192
+ te,
3193
+ g,
3198
3194
  _,
3199
- v,
3200
3195
  D,
3201
3196
  O,
3202
- l
3197
+ c
3203
3198
  ]);
3204
3199
  return /* @__PURE__ */ F(H, {
3205
3200
  style: $.container,
3206
3201
  children: [
3207
3202
  /* @__PURE__ */ F(B, {
3208
- style: [$.label, { color: p.textSecondary }],
3209
- children: [d || c.data.name, c.data.required && /* @__PURE__ */ P(B, {
3210
- style: { color: p.error },
3203
+ style: [$.label, { color: f.textSecondary }],
3204
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ P(B, {
3205
+ style: { color: f.error },
3211
3206
  children: "*"
3212
3207
  })]
3213
3208
  }),
@@ -3215,29 +3210,29 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3215
3210
  style: [
3216
3211
  $.trigger,
3217
3212
  {
3218
- backgroundColor: p.input,
3219
- borderColor: p.border
3213
+ backgroundColor: f.input,
3214
+ borderColor: f.border
3220
3215
  },
3221
- u && { borderColor: p.error }
3216
+ l && { borderColor: f.error }
3222
3217
  ],
3223
3218
  onPress: () => {
3224
- A(S || 0), j(C || 0), o(!0), r(!0);
3219
+ k(S || 0), A(C || 0), a(!0), r(!0);
3225
3220
  },
3226
3221
  activeOpacity: .7,
3227
3222
  children: [/* @__PURE__ */ P(B, {
3228
3223
  style: [
3229
3224
  $.triggerText,
3230
- { color: p.text },
3231
- !_ && { color: p.textMuted }
3225
+ { color: f.text },
3226
+ !g && { color: f.textMuted }
3232
3227
  ],
3233
3228
  numberOfLines: 1,
3234
- children: re()
3229
+ children: ie()
3235
3230
  }), /* @__PURE__ */ P(B, {
3236
3231
  style: $.icon,
3237
3232
  children: "🕐"
3238
3233
  })]
3239
3234
  }),
3240
- /* @__PURE__ */ P(se, {
3235
+ /* @__PURE__ */ P(le, {
3241
3236
  visible: n,
3242
3237
  transparent: !0,
3243
3238
  animationType: "fade",
@@ -3247,28 +3242,28 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3247
3242
  activeOpacity: 1,
3248
3243
  onPress: () => r(!1),
3249
3244
  children: /* @__PURE__ */ F(V, {
3250
- style: [$.modalContent, { backgroundColor: p.card }],
3245
+ style: [$.modalContent, { backgroundColor: f.card }],
3251
3246
  activeOpacity: 1,
3252
3247
  onPress: () => {},
3253
3248
  children: [
3254
3249
  /* @__PURE__ */ F(H, {
3255
- style: [$.modalHeader, { borderBottomColor: p.separator }],
3250
+ style: [$.modalHeader, { borderBottomColor: f.separator }],
3256
3251
  children: [/* @__PURE__ */ P(B, {
3257
- style: [$.modalTitle, { color: p.text }],
3258
- children: d || c.data.name
3252
+ style: [$.modalTitle, { color: f.text }],
3253
+ children: u || s.data.name
3259
3254
  }), /* @__PURE__ */ P(V, {
3260
3255
  onPress: () => r(!1),
3261
3256
  children: /* @__PURE__ */ P(B, {
3262
- style: [$.closeButton, { color: p.textMuted }],
3257
+ style: [$.closeButton, { color: f.textMuted }],
3263
3258
  children: "✕"
3264
3259
  })
3265
3260
  })]
3266
3261
  }),
3267
3262
  /* @__PURE__ */ P(H, {
3268
- style: [$.rangeIndicator, { backgroundColor: p.primaryLight }],
3263
+ style: [$.rangeIndicator, { backgroundColor: f.primaryLight }],
3269
3264
  children: /* @__PURE__ */ P(B, {
3270
- style: [$.rangeIndicatorText, { color: p.primary }],
3271
- children: h(i ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3265
+ style: [$.rangeIndicatorText, { color: f.primary }],
3266
+ children: p(i ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
3272
3267
  })
3273
3268
  }),
3274
3269
  /* @__PURE__ */ F(H, {
@@ -3277,22 +3272,22 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3277
3272
  /* @__PURE__ */ F(H, {
3278
3273
  style: $.pickerColumn,
3279
3274
  children: [/* @__PURE__ */ P(B, {
3280
- style: [$.pickerLabel, { color: p.textMuted }],
3275
+ style: [$.pickerLabel, { color: f.textMuted }],
3281
3276
  children: "Hour"
3282
3277
  }), /* @__PURE__ */ P(R, {
3283
3278
  style: $.picker,
3284
3279
  contentContainerStyle: $.pickerContent,
3285
3280
  showsVerticalScrollIndicator: !1,
3286
3281
  children: ne.map((e) => /* @__PURE__ */ P(V, {
3287
- style: [$.pickerItem, k === e && { backgroundColor: p.primary }],
3288
- onPress: () => A(e),
3282
+ style: [$.pickerItem, ee === e && { backgroundColor: f.primary }],
3283
+ onPress: () => k(e),
3289
3284
  activeOpacity: .7,
3290
3285
  children: /* @__PURE__ */ P(B, {
3291
3286
  style: [
3292
3287
  $.pickerItemText,
3293
- { color: p.text },
3294
- k === e && {
3295
- color: p.background,
3288
+ { color: f.text },
3289
+ ee === e && {
3290
+ color: f.background,
3296
3291
  fontWeight: "600"
3297
3292
  }
3298
3293
  ],
@@ -3302,28 +3297,28 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3302
3297
  })]
3303
3298
  }),
3304
3299
  /* @__PURE__ */ P(B, {
3305
- style: [$.pickerSeparator, { color: p.text }],
3300
+ style: [$.pickerSeparator, { color: f.text }],
3306
3301
  children: ":"
3307
3302
  }),
3308
3303
  /* @__PURE__ */ F(H, {
3309
3304
  style: $.pickerColumn,
3310
3305
  children: [/* @__PURE__ */ P(B, {
3311
- style: [$.pickerLabel, { color: p.textMuted }],
3306
+ style: [$.pickerLabel, { color: f.textMuted }],
3312
3307
  children: "Minute"
3313
3308
  }), /* @__PURE__ */ P(R, {
3314
3309
  style: $.picker,
3315
3310
  contentContainerStyle: $.pickerContent,
3316
3311
  showsVerticalScrollIndicator: !1,
3317
- children: M.map((e) => /* @__PURE__ */ P(V, {
3318
- style: [$.pickerItem, ee === e && { backgroundColor: p.primary }],
3319
- onPress: () => j(e),
3312
+ children: j.map((e) => /* @__PURE__ */ P(V, {
3313
+ style: [$.pickerItem, te === e && { backgroundColor: f.primary }],
3314
+ onPress: () => A(e),
3320
3315
  activeOpacity: .7,
3321
3316
  children: /* @__PURE__ */ P(B, {
3322
3317
  style: [
3323
3318
  $.pickerItemText,
3324
- { color: p.text },
3325
- ee === e && {
3326
- color: p.background,
3319
+ { color: f.text },
3320
+ te === e && {
3321
+ color: f.background,
3327
3322
  fontWeight: "600"
3328
3323
  }
3329
3324
  ],
@@ -3335,11 +3330,11 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3335
3330
  ]
3336
3331
  }),
3337
3332
  /* @__PURE__ */ P(V, {
3338
- style: [$.confirmButton, { backgroundColor: p.primary }],
3339
- onPress: ie,
3333
+ style: [$.confirmButton, { backgroundColor: f.primary }],
3334
+ onPress: M,
3340
3335
  activeOpacity: .7,
3341
3336
  children: /* @__PURE__ */ P(B, {
3342
- style: [$.confirmButtonText, { color: p.background }],
3337
+ style: [$.confirmButtonText, { color: f.background }],
3343
3338
  children: i ? "Next" : "Confirm"
3344
3339
  })
3345
3340
  })
@@ -3347,13 +3342,13 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3347
3342
  })
3348
3343
  })
3349
3344
  }),
3350
- u && /* @__PURE__ */ P(B, {
3351
- style: [$.error, { color: p.error }],
3352
- children: u
3345
+ l && /* @__PURE__ */ P(B, {
3346
+ style: [$.error, { color: f.error }],
3347
+ children: l
3353
3348
  }),
3354
- f && !u && /* @__PURE__ */ P(B, {
3355
- style: [$.helperText, { color: p.textMuted }],
3356
- children: f
3349
+ d && !l && /* @__PURE__ */ P(B, {
3350
+ style: [$.helperText, { color: f.textMuted }],
3351
+ children: d
3357
3352
  })
3358
3353
  ]
3359
3354
  });
@@ -3458,54 +3453,54 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3458
3453
  flex: 1,
3459
3454
  fontSize: 14
3460
3455
  }
3461
- }), Ye = {
3462
- address: me,
3463
- autocomplete: _e,
3464
- checkbox: ve,
3465
- date: ye,
3466
- daterange: be,
3467
- file: xe,
3468
- hidden: Se,
3469
- http: Ne,
3470
- number: Pe,
3471
- password: Ie,
3472
- radio: Re,
3473
- select: ze,
3474
- submit: Be,
3475
- switch: Ve,
3476
- text: Ge,
3477
- textarea: Ue,
3478
- time: qe,
3479
- timerange: Je
3480
- }, Xe = ({ step: e, label: t, children: n, canGoBack: r, isLastStep: i, canContinue: o, isSubmitting: s, onBack: c, onContinue: l }) => {
3481
- let { colors: u } = m(), d = a(), f = !o || s, p = e.nodes.find((e) => S(e) && e.data.type === "submit"), h = p && S(p) ? d(p.data.label) : void 0, g = i ? h || d("renderer.defaultSubmitButton.submit") : d("renderer.step.continue");
3456
+ }), Ze = {
3457
+ address: ge,
3458
+ autocomplete: ye,
3459
+ checkbox: be,
3460
+ date: xe,
3461
+ daterange: Se,
3462
+ file: Ce,
3463
+ hidden: we,
3464
+ http: Fe,
3465
+ number: Ie,
3466
+ password: Re,
3467
+ radio: Be,
3468
+ select: Ve,
3469
+ submit: He,
3470
+ switch: Ue,
3471
+ text: qe,
3472
+ textarea: Ge,
3473
+ time: Ye,
3474
+ timerange: Xe
3475
+ }, Qe = ({ step: e, label: t, children: n, canGoBack: r, isLastStep: a, canContinue: o, isSubmitting: s, onBack: c, onContinue: l }) => {
3476
+ let { colors: u } = y(), d = h(), f = !o || s, p = e.nodes.find((e) => i(e) && e.data.type === "submit"), m = p && i(p) ? d(p.data.label) : void 0, g = a ? m || d("renderer.defaultSubmitButton.submit") : d("renderer.step.continue");
3482
3477
  return /* @__PURE__ */ F(H, { children: [
3483
3478
  t ? /* @__PURE__ */ P(B, {
3484
- style: [Ze.label, { color: u.text }],
3479
+ style: [$e.label, { color: u.text }],
3485
3480
  children: t
3486
3481
  }) : null,
3487
3482
  /* @__PURE__ */ P(H, {
3488
- style: Ze.content,
3483
+ style: $e.content,
3489
3484
  children: n
3490
3485
  }),
3491
3486
  /* @__PURE__ */ F(H, {
3492
- style: Ze.actions,
3487
+ style: $e.actions,
3493
3488
  children: [r ? /* @__PURE__ */ P(V, {
3494
3489
  style: [
3495
- Ze.backButton,
3490
+ $e.backButton,
3496
3491
  { borderColor: u.border },
3497
- s && Ze.disabled
3492
+ s && $e.disabled
3498
3493
  ],
3499
3494
  onPress: c,
3500
3495
  disabled: s,
3501
3496
  activeOpacity: .7,
3502
3497
  children: /* @__PURE__ */ P(B, {
3503
- style: [Ze.backButtonText, { color: u.text }],
3498
+ style: [$e.backButtonText, { color: u.text }],
3504
3499
  children: d("renderer.step.back")
3505
3500
  })
3506
3501
  }) : /* @__PURE__ */ P(H, {}), /* @__PURE__ */ P(V, {
3507
3502
  style: [
3508
- Ze.continueButton,
3503
+ $e.continueButton,
3509
3504
  { backgroundColor: u.primary },
3510
3505
  f && {
3511
3506
  backgroundColor: u.primaryDisabled,
@@ -3515,14 +3510,14 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3515
3510
  onPress: l,
3516
3511
  disabled: f,
3517
3512
  activeOpacity: .7,
3518
- children: s ? /* @__PURE__ */ P(ie, { color: u.primaryForeground }) : /* @__PURE__ */ P(B, {
3519
- style: [Ze.continueButtonText, { color: u.primaryForeground }],
3513
+ children: s ? /* @__PURE__ */ P(oe, { color: u.primaryForeground }) : /* @__PURE__ */ P(B, {
3514
+ style: [$e.continueButtonText, { color: u.primaryForeground }],
3520
3515
  children: g
3521
3516
  })
3522
3517
  })]
3523
3518
  })
3524
3519
  ] });
3525
- }, Ze = z.create({
3520
+ }, $e = z.create({
3526
3521
  actions: {
3527
3522
  alignItems: "center",
3528
3523
  flexDirection: "row",
@@ -3557,11 +3552,11 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3557
3552
  fontWeight: "600",
3558
3553
  marginBottom: 12
3559
3554
  }
3560
- }), Qe = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3561
- let { colors: i } = m();
3555
+ }), et = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3556
+ let { colors: i } = y();
3562
3557
  return /* @__PURE__ */ P(V, {
3563
3558
  style: [
3564
- $e.button,
3559
+ tt.button,
3565
3560
  { backgroundColor: i.primary },
3566
3561
  (t || n) && {
3567
3562
  backgroundColor: i.primaryDisabled,
@@ -3571,12 +3566,12 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3571
3566
  disabled: t || n,
3572
3567
  onPress: r,
3573
3568
  activeOpacity: .7,
3574
- children: n ? /* @__PURE__ */ P(ie, { color: i.primaryForeground }) : /* @__PURE__ */ P(B, {
3575
- style: [$e.buttonText, { color: i.primaryForeground }],
3569
+ children: n ? /* @__PURE__ */ P(oe, { color: i.primaryForeground }) : /* @__PURE__ */ P(B, {
3570
+ style: [tt.buttonText, { color: i.primaryForeground }],
3576
3571
  children: e
3577
3572
  })
3578
3573
  });
3579
- }, $e = z.create({
3574
+ }, tt = z.create({
3580
3575
  button: {
3581
3576
  alignItems: "center",
3582
3577
  borderRadius: 6,
@@ -3589,16 +3584,16 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3589
3584
  fontSize: 16,
3590
3585
  fontWeight: "600"
3591
3586
  }
3592
- }), et = ({ children: e }) => e, tt = ({ node: e }) => {
3593
- let t = a(), { colors: n } = m(), r = t(e.data?.label);
3587
+ }), nt = ({ children: e }) => e, rt = ({ node: e }) => {
3588
+ let t = h(), { colors: n } = y(), r = t(e.data?.label);
3594
3589
  return /* @__PURE__ */ P(B, {
3595
- style: [rt.title, { color: n.text }],
3590
+ style: [at.title, { color: n.text }],
3596
3591
  children: r
3597
3592
  });
3598
- }, nt = () => {
3599
- let { colors: e } = m();
3600
- return /* @__PURE__ */ P(H, { style: [rt.divider, { backgroundColor: e.separator }] });
3601
- }, rt = z.create({
3593
+ }, it = () => {
3594
+ let { colors: e } = y();
3595
+ return /* @__PURE__ */ P(H, { style: [at.divider, { backgroundColor: e.separator }] });
3596
+ }, at = z.create({
3602
3597
  divider: {
3603
3598
  height: 1,
3604
3599
  marginBottom: 16,
@@ -3609,23 +3604,23 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3609
3604
  fontWeight: "700",
3610
3605
  marginBottom: 16
3611
3606
  }
3612
- }), it = {
3613
- divider: nt,
3614
- title: tt
3615
- }, at = ({ node: e, children: t }) => {
3607
+ }), ot = {
3608
+ divider: it,
3609
+ title: rt
3610
+ }, st = ({ node: e, children: t }) => {
3616
3611
  let { image: n } = e.data;
3617
3612
  return /* @__PURE__ */ F(H, { children: [n && /* @__PURE__ */ P(L, {
3618
3613
  source: { uri: n },
3619
- style: ot.image,
3614
+ style: ct.image,
3620
3615
  resizeMode: "cover"
3621
3616
  }), t] });
3622
- }, ot = z.create({ image: {
3617
+ }, ct = z.create({ image: {
3623
3618
  borderRadius: 6,
3624
3619
  height: 160,
3625
3620
  marginBottom: 8,
3626
3621
  width: "100%"
3627
- } }), st = ({ style: e }) => {
3628
- let { colors: t } = m(), n = M(new I.Value(.5)).current;
3622
+ } }), lt = ({ style: e }) => {
3623
+ let { colors: t } = y(), n = M(new I.Value(.5)).current;
3629
3624
  return j(() => {
3630
3625
  let e = I.loop(I.sequence([I.timing(n, {
3631
3626
  duration: 600,
@@ -3638,34 +3633,34 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3638
3633
  })]));
3639
3634
  return e.start(), () => e.stop();
3640
3635
  }, [n]), /* @__PURE__ */ P(I.View, { style: [
3641
- lt.bar,
3636
+ dt.bar,
3642
3637
  {
3643
3638
  backgroundColor: t.muted,
3644
3639
  opacity: n
3645
3640
  },
3646
3641
  e
3647
3642
  ] });
3648
- }, ct = () => /* @__PURE__ */ F(H, {
3643
+ }, ut = () => /* @__PURE__ */ F(H, {
3649
3644
  accessibilityState: { busy: !0 },
3650
3645
  children: [
3651
- /* @__PURE__ */ P(st, { style: lt.title }),
3646
+ /* @__PURE__ */ P(lt, { style: dt.title }),
3652
3647
  /* @__PURE__ */ P(H, {
3653
- style: lt.fields,
3648
+ style: dt.fields,
3654
3649
  children: [
3655
3650
  0,
3656
3651
  1,
3657
3652
  2
3658
3653
  ].map((e) => /* @__PURE__ */ F(H, {
3659
- style: lt.field,
3660
- children: [/* @__PURE__ */ P(st, { style: lt.fieldLabel }), /* @__PURE__ */ P(st, { style: lt.fieldInput })]
3654
+ style: dt.field,
3655
+ children: [/* @__PURE__ */ P(lt, { style: dt.fieldLabel }), /* @__PURE__ */ P(lt, { style: dt.fieldInput })]
3661
3656
  }, e))
3662
3657
  }),
3663
3658
  /* @__PURE__ */ P(H, {
3664
- style: lt.actions,
3665
- children: /* @__PURE__ */ P(st, { style: lt.button })
3659
+ style: dt.actions,
3660
+ children: /* @__PURE__ */ P(lt, { style: dt.button })
3666
3661
  })
3667
3662
  ]
3668
- }), lt = z.create({
3663
+ }), dt = z.create({
3669
3664
  actions: {
3670
3665
  alignItems: "flex-end",
3671
3666
  marginTop: 24
@@ -3690,117 +3685,117 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3690
3685
  marginBottom: 24,
3691
3686
  width: "33%"
3692
3687
  }
3693
- }), ut = ({ baseUrl: e, components: t, contentContainerStyle: n, flow: r, googleApiKey: i, headers: a, initialValues: o, isLoading: s = !1, isSubmitting: c = !1, language: l, onBack: u, onChange: f, onSubmit: p, showPoweredBy: h, style: g, theme: _, validate: v, validationMode: y }) => {
3694
- let { colors: b } = m(), { canContinueStep: x, canSubmit: S, clearSubmitMessage: C, config: w, currentStep: T, currentStepGroupNode: E, currentStepIndex: O, formErrors: k, formValues: A, goToNextStep: j, goToPreviousStep: M, handleSubmit: N, inputNodes: re, isFirstStep: ie, isLastStep: ae, isSubmitting: I, missingRequiredFields: oe, setFieldValue: L, steps: se, submitMessage: z, t: ce } = D({
3688
+ }), ft = ({ baseUrl: e, components: t, contentContainerStyle: n, flow: r, googleApiKey: i, headers: a, initialValues: s, isLoading: c = !1, isSubmitting: l = !1, language: u, onBack: d, onChange: f, onSubmit: p, showPoweredBy: m, style: h, theme: g, validate: _, validationMode: v }) => {
3689
+ let { colors: b } = y(), { canContinueStep: x, canSubmit: S, clearSubmitMessage: C, config: w, currentStep: T, currentStepGroupNode: E, currentStepIndex: D, formErrors: O, formValues: k, goToNextStep: te, goToPreviousStep: A, handleSubmit: j, inputNodes: M, isFirstStep: N, isLastStep: ae, isSubmitting: oe, missingRequiredFields: se, setFieldValue: I, steps: ce, submitMessage: L, t: le } = ee({
3695
3690
  baseUrl: e,
3696
3691
  components: t,
3697
3692
  flow: r,
3698
3693
  googleApiKey: i,
3699
3694
  headers: a,
3700
- initialValues: o,
3701
- language: l,
3695
+ initialValues: s,
3696
+ language: u,
3702
3697
  onChange: f,
3703
3698
  onSubmit: p,
3704
- showPoweredBy: h,
3705
- theme: _,
3706
- validate: v,
3707
- validationMode: y
3708
- }), le = c || I, { FormWrapper: V, SubmitButtonWrapper: de, renderNode: fe } = ee({
3699
+ showPoweredBy: m,
3700
+ theme: g,
3701
+ validate: _,
3702
+ validationMode: v
3703
+ }), z = l || oe, { FormWrapper: ue, SubmitButtonWrapper: de, renderNode: V } = ne({
3709
3704
  config: w,
3710
- DefaultFormWrapper: ue,
3711
- DefaultInputWrapper: at,
3712
- DefaultSubmitButton: Qe,
3713
- DefaultSubmitButtonWrapper: et,
3714
- defaultInputRenderers: Ye,
3715
- defaultUI: it,
3716
- formErrors: k,
3717
- formValues: A,
3718
- inputNodes: re,
3719
- isSubmitting: le,
3720
- missingRequiredFields: oe,
3721
- setFieldValue: L
3722
- }), pe = w.components.step ?? Xe, me = w.components.loadingSkeleton ?? ct, U = ne(() => ce(E?.data?.label), [ce, E]), he = te(() => {
3705
+ DefaultFormWrapper: fe,
3706
+ DefaultInputWrapper: st,
3707
+ DefaultSubmitButton: et,
3708
+ DefaultSubmitButtonWrapper: nt,
3709
+ defaultInputRenderers: Ze,
3710
+ defaultUI: ot,
3711
+ formErrors: O,
3712
+ formValues: k,
3713
+ inputNodes: M,
3714
+ isSubmitting: z,
3715
+ missingRequiredFields: se,
3716
+ setFieldValue: I
3717
+ }), pe = w.components.step ?? Qe, me = w.components.loadingSkeleton ?? ut, he = ie(() => le(E?.data?.label), [le, E]), ge = re(() => {
3723
3718
  if (ae) {
3724
- N();
3719
+ j();
3725
3720
  return;
3726
3721
  }
3727
- j();
3722
+ te();
3728
3723
  }, [
3729
3724
  ae,
3730
- N,
3731
- j
3732
- ]), ge = te(() => {
3733
- if (ie) {
3734
- u?.();
3725
+ j,
3726
+ te
3727
+ ]), U = re(() => {
3728
+ if (N) {
3729
+ d?.();
3735
3730
  return;
3736
3731
  }
3737
- M();
3732
+ A();
3738
3733
  }, [
3739
- ie,
3740
- u,
3741
- M
3742
- ]), _e = !ie || !!u;
3734
+ N,
3735
+ d,
3736
+ A
3737
+ ]), _e = !N || !!d;
3743
3738
  return /* @__PURE__ */ P(R, {
3744
3739
  nestedScrollEnabled: !0,
3745
3740
  style: [
3746
- ft.container,
3741
+ mt.container,
3747
3742
  { backgroundColor: b.background },
3748
- g
3743
+ h
3749
3744
  ],
3750
3745
  contentContainerStyle: n,
3751
- children: s ? /* @__PURE__ */ P(me, {}) : /* @__PURE__ */ F(d, {
3746
+ children: c ? /* @__PURE__ */ P(me, {}) : /* @__PURE__ */ F(o, {
3752
3747
  value: {
3753
3748
  baseUrl: w.baseUrl,
3754
3749
  flow: r,
3755
- formErrors: k,
3756
- formValues: A,
3750
+ formErrors: O,
3751
+ formValues: k,
3757
3752
  googleApiKey: w.googleApiKey,
3758
3753
  headers: w.headers,
3759
- inputNodes: re,
3754
+ inputNodes: M,
3760
3755
  language: w.language,
3761
- setFieldValue: L
3756
+ setFieldValue: I
3762
3757
  },
3763
- children: [/* @__PURE__ */ F(V, {
3764
- onSubmit: N,
3758
+ children: [/* @__PURE__ */ F(ue, {
3759
+ onSubmit: j,
3765
3760
  children: [T && /* @__PURE__ */ P(de, {
3766
- missingFields: oe,
3761
+ missingFields: se,
3767
3762
  children: /* @__PURE__ */ P(pe, {
3768
3763
  step: T,
3769
3764
  groupNode: E,
3770
- stepIndex: O,
3771
- totalSteps: se.length,
3772
- isFirstStep: ie,
3765
+ stepIndex: D,
3766
+ totalSteps: ce.length,
3767
+ isFirstStep: N,
3773
3768
  isLastStep: ae,
3774
3769
  canContinue: x && (!ae || S),
3775
3770
  canGoBack: _e,
3776
- isSubmitting: le,
3777
- onBack: ge,
3778
- onContinue: he,
3779
- label: U,
3780
- children: T.nodes.map((e) => fe(e))
3771
+ isSubmitting: z,
3772
+ onBack: U,
3773
+ onContinue: ge,
3774
+ label: he,
3775
+ children: T.nodes.map((e) => V(e))
3781
3776
  })
3782
3777
  }), w.showPoweredBy && /* @__PURE__ */ P(B, {
3783
- style: [ft.poweredBy, { color: b.textMuted }],
3778
+ style: [mt.poweredBy, { color: b.textMuted }],
3784
3779
  children: "Powered by Treege"
3785
3780
  })]
3786
- }), z && /* @__PURE__ */ F(H, {
3787
- style: [ft.message, { backgroundColor: z.type === "success" ? b.successBg : b.errorBg }],
3781
+ }), L && /* @__PURE__ */ F(H, {
3782
+ style: [mt.message, { backgroundColor: L.type === "success" ? b.successBg : b.errorBg }],
3788
3783
  children: [/* @__PURE__ */ P(B, {
3789
- style: [ft.messageText, { color: z.type === "success" ? b.success : b.error }],
3790
- children: z.message
3784
+ style: [mt.messageText, { color: L.type === "success" ? b.success : b.error }],
3785
+ children: L.message
3791
3786
  }), /* @__PURE__ */ P(B, {
3792
- style: [ft.messageClose, { color: z.type === "success" ? b.success : b.error }],
3787
+ style: [mt.messageClose, { color: L.type === "success" ? b.success : b.error }],
3793
3788
  onPress: C,
3794
- children: ce("common.close")
3789
+ children: le("common.close")
3795
3790
  })]
3796
3791
  })]
3797
3792
  })
3798
3793
  });
3799
- }, dt = (e) => /* @__PURE__ */ P(v, {
3794
+ }, pt = (e) => /* @__PURE__ */ P(C, {
3800
3795
  theme: e.theme,
3801
3796
  storageKey: "treege-renderer-theme",
3802
- children: /* @__PURE__ */ P(ut, { ...e })
3803
- }), ft = z.create({
3797
+ children: /* @__PURE__ */ P(ft, { ...e })
3798
+ }), mt = z.create({
3804
3799
  container: { flex: 1 },
3805
3800
  message: {
3806
3801
  borderRadius: 6,
@@ -3823,4 +3818,4 @@ var ue = ({ children: e }) => /* @__PURE__ */ P(H, {
3823
3818
  }
3824
3819
  });
3825
3820
  //#endregion
3826
- export { me as DefaultAddressInput, _e as DefaultAutocompleteInput, ve as DefaultCheckboxInput, ye as DefaultDateInput, be as DefaultDateRangeInput, nt as DefaultDividerUI, xe as DefaultFileInput, Se as DefaultHiddenInput, Ne as DefaultHttpInput, Pe as DefaultNumberInput, Ie as DefaultPasswordInput, Re as DefaultRadioInput, ze as DefaultSelectInput, Ve as DefaultSwitchInput, Ge as DefaultTextInput, Ue as DefaultTextareaInput, qe as DefaultTimeInput, Je as DefaultTimeRangeInput, tt as DefaultTitleUI, dt as TreegeRenderer, w as TreegeRendererProvider, g as applyReferenceTransformation, u as buildInitialFormValues, o as calculateReferenceFieldUpdates, h as checkFormFieldHasValue, _ as convertFormValuesToNamedFormat, Ye as defaultInputRenderers, it as defaultUI, O as evaluateCondition, A as evaluateConditions, p as fileToSerializable, l as filesToSerializable, k as findStartNode, T as getFlowRenderState, r as getTranslatedText, s as isFieldEmpty, C as isStartNode, f as resolveNodeDefaultValue, De as sanitize, ke as sanitizeHttpResponse, c as serializableToFile, D as useTreegeRenderer, E as useTreegeRendererConfig };
3821
+ export { ge as DefaultAddressInput, ye as DefaultAutocompleteInput, be as DefaultCheckboxInput, xe as DefaultDateInput, Se as DefaultDateRangeInput, it as DefaultDividerUI, Ce as DefaultFileInput, we as DefaultHiddenInput, Fe as DefaultHttpInput, Ie as DefaultNumberInput, Re as DefaultPasswordInput, Be as DefaultRadioInput, Ve as DefaultSelectInput, Ue as DefaultSwitchInput, qe as DefaultTextInput, Ge as DefaultTextareaInput, Ye as DefaultTimeInput, Xe as DefaultTimeRangeInput, rt as DefaultTitleUI, pt as TreegeRenderer, E as TreegeRendererProvider, x as applyReferenceTransformation, m as buildInitialFormValues, l as calculateReferenceFieldUpdates, b as checkFormFieldHasValue, S as convertFormValuesToNamedFormat, Ze as defaultInputRenderers, ot as defaultUI, k as evaluateCondition, A as evaluateConditions, v as fileToSerializable, p as filesToSerializable, te as findStartNode, D as getFlowRenderState, t as getTranslatedText, d as isFieldEmpty, T as isStartNode, _ as resolveNodeDefaultValue, ke as sanitize, je as sanitizeHttpResponse, f as serializableToFile, ee as useTreegeRenderer, O as useTreegeRendererConfig };