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