treege 3.0.0-beta.52 → 3.0.0-beta.54

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,12 +1,12 @@
1
- import { E as e, L as t, M as n, O as r, S as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, j as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, w, x as T } from "./ThemeContext-DRLlkF0n.js";
1
+ import { E as e, L as t, M as n, O as r, S as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, j as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, w, x as T } from "./ThemeContext-C9418UR6.js";
2
2
  import { useCallback as ee, useEffect as E, useMemo as D, useRef as O, useState as k } from "react";
3
3
  import { jsx as A, jsxs as j } from "react/jsx-runtime";
4
- import { ActivityIndicator as M, Alert as N, FlatList as te, Image as P, Modal as F, ScrollView as I, StyleSheet as L, Switch as R, Text as z, TextInput as ne, TouchableOpacity as B, View as V } from "react-native";
4
+ import { ActivityIndicator as M, Alert as N, Animated as P, FlatList as te, Image as F, Modal as ne, ScrollView as I, StyleSheet as L, Switch as R, Text as z, TextInput as re, TouchableOpacity as B, View as V } from "react-native";
5
5
  //#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
6
- var H = ({ children: e }) => /* @__PURE__ */ A(V, {
7
- style: re.container,
6
+ var ie = ({ children: e }) => /* @__PURE__ */ A(V, {
7
+ style: ae.container,
8
8
  children: e
9
- }), re = L.create({ container: { padding: 16 } }), ie = async (e, t) => {
9
+ }), ae = L.create({ container: { padding: 16 } }), oe = async (e, t) => {
10
10
  if (!e || e.trim().length < 3) return [];
11
11
  try {
12
12
  let n = await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&addressdetails=1&limit=5`, { headers: {
@@ -21,7 +21,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
21
21
  } catch (e) {
22
22
  return console.error("Nominatim fetch error:", e), [];
23
23
  }
24
- }, ae = async (e, t) => {
24
+ }, se = async (e, t) => {
25
25
  if (!e || e.trim().length < 3) return [];
26
26
  try {
27
27
  let n = await fetch(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${encodeURIComponent(e)}&key=${t}`);
@@ -34,7 +34,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
34
34
  } catch (e) {
35
35
  return console.error("Google Places fetch error:", e), [];
36
36
  }
37
- }, oe = ({ node: e, value: t, setValue: i, error: a, label: o, placeholder: s, helperText: c, id: l, name: u }) => {
37
+ }, ce = ({ node: e, value: t, setValue: i, error: a, label: o, placeholder: s, helperText: c, id: l, name: u }) => {
38
38
  let [d, f] = k(""), [p, m] = k([]), [h, g] = k(!1), [v, y] = k(!1), { language: b, googleApiKey: x } = n(), S = r(), { colors: C } = _(), w = ee((e) => {
39
39
  i(e.value), f(""), g(!1), m([]);
40
40
  }, [i]), T = () => {
@@ -47,7 +47,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
47
47
  }
48
48
  y(!0);
49
49
  let e = setTimeout(async () => {
50
- m(x ? await ae(d, x) : await ie(d, b)), y(!1);
50
+ m(x ? await se(d, x) : await oe(d, b)), y(!1);
51
51
  }, 300);
52
52
  return () => {
53
53
  clearTimeout(e), y(!1);
@@ -57,10 +57,10 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
57
57
  b,
58
58
  x
59
59
  ]), /* @__PURE__ */ j(V, {
60
- style: U.container,
60
+ style: H.container,
61
61
  children: [
62
62
  /* @__PURE__ */ j(z, {
63
- style: [U.label, { color: C.textSecondary }],
63
+ style: [H.label, { color: C.textSecondary }],
64
64
  children: [o || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
65
65
  style: { color: C.error },
66
66
  children: "*"
@@ -68,7 +68,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
68
68
  }),
69
69
  /* @__PURE__ */ j(B, {
70
70
  style: [
71
- U.trigger,
71
+ H.trigger,
72
72
  {
73
73
  backgroundColor: C.input,
74
74
  borderColor: C.border
@@ -79,48 +79,48 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
79
79
  activeOpacity: .7,
80
80
  children: [/* @__PURE__ */ A(z, {
81
81
  style: [
82
- U.triggerText,
82
+ H.triggerText,
83
83
  { color: C.text },
84
84
  !t && { color: C.textMuted }
85
85
  ],
86
86
  numberOfLines: 1,
87
87
  children: t || s || S("renderer.defaultAddressInput.enterAddress")
88
88
  }), /* @__PURE__ */ A(z, {
89
- style: U.icon,
89
+ style: H.icon,
90
90
  children: "📍"
91
91
  })]
92
92
  }),
93
- /* @__PURE__ */ A(F, {
93
+ /* @__PURE__ */ A(ne, {
94
94
  visible: h,
95
95
  transparent: !0,
96
96
  animationType: "fade",
97
97
  onRequestClose: T,
98
98
  children: /* @__PURE__ */ A(B, {
99
- style: U.modalOverlay,
99
+ style: H.modalOverlay,
100
100
  activeOpacity: 1,
101
101
  onPress: T,
102
102
  children: /* @__PURE__ */ j(B, {
103
- style: [U.modalContent, { backgroundColor: C.card }],
103
+ style: [H.modalContent, { backgroundColor: C.card }],
104
104
  activeOpacity: 1,
105
105
  onPress: () => {},
106
106
  children: [
107
107
  /* @__PURE__ */ j(V, {
108
- style: [U.modalHeader, { borderBottomColor: C.separator }],
108
+ style: [H.modalHeader, { borderBottomColor: C.separator }],
109
109
  children: [/* @__PURE__ */ A(z, {
110
- style: [U.modalTitle, { color: C.text }],
110
+ style: [H.modalTitle, { color: C.text }],
111
111
  children: o || e.data.name
112
112
  }), /* @__PURE__ */ A(B, {
113
113
  onPress: T,
114
114
  children: /* @__PURE__ */ A(z, {
115
- style: [U.closeButton, { color: C.textMuted }],
115
+ style: [H.closeButton, { color: C.textMuted }],
116
116
  children: "✕"
117
117
  })
118
118
  })]
119
119
  }),
120
120
  /* @__PURE__ */ j(V, {
121
- style: U.searchContainer,
122
- children: [/* @__PURE__ */ A(ne, {
123
- style: [U.searchInput, {
121
+ style: H.searchContainer,
122
+ children: [/* @__PURE__ */ A(re, {
123
+ style: [H.searchInput, {
124
124
  backgroundColor: C.muted,
125
125
  borderColor: C.border,
126
126
  color: C.text
@@ -135,46 +135,46 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
135
135
  }), v && /* @__PURE__ */ A(M, {
136
136
  size: "small",
137
137
  color: C.primary,
138
- style: U.searchLoader
138
+ style: H.searchLoader
139
139
  })]
140
140
  }),
141
141
  v ? /* @__PURE__ */ j(V, {
142
- style: U.loadingContainer,
142
+ style: H.loadingContainer,
143
143
  children: [/* @__PURE__ */ A(M, {
144
144
  size: "small",
145
145
  color: C.primary
146
146
  }), /* @__PURE__ */ A(z, {
147
- style: [U.loadingText, { color: C.textMuted }],
147
+ style: [H.loadingText, { color: C.textMuted }],
148
148
  children: S("renderer.defaultAddressInput.searching")
149
149
  })]
150
150
  }) : /* @__PURE__ */ A(te, {
151
151
  data: p,
152
152
  keyExtractor: (e, t) => t.toString(),
153
- style: U.suggestionsList,
154
- contentContainerStyle: U.suggestionsListContent,
153
+ style: H.suggestionsList,
154
+ contentContainerStyle: H.suggestionsListContent,
155
155
  keyboardShouldPersistTaps: "handled",
156
156
  ListEmptyComponent: d.length >= 3 ? /* @__PURE__ */ A(V, {
157
- style: U.emptyContainer,
157
+ style: H.emptyContainer,
158
158
  children: /* @__PURE__ */ A(z, {
159
- style: [U.emptyText, { color: C.textMuted }],
159
+ style: [H.emptyText, { color: C.textMuted }],
160
160
  children: S("renderer.defaultAddressInput.noAddressesFound")
161
161
  })
162
162
  }) : /* @__PURE__ */ A(V, {
163
- style: U.emptyContainer,
163
+ style: H.emptyContainer,
164
164
  children: /* @__PURE__ */ A(z, {
165
- style: [U.emptyText, { color: C.textMuted }],
165
+ style: [H.emptyText, { color: C.textMuted }],
166
166
  children: S("renderer.defaultAddressInput.typeMinChars")
167
167
  })
168
168
  }),
169
169
  renderItem: ({ item: e }) => /* @__PURE__ */ j(B, {
170
- style: U.suggestionItem,
170
+ style: H.suggestionItem,
171
171
  onPress: () => w(e),
172
172
  activeOpacity: .7,
173
173
  children: [/* @__PURE__ */ A(z, {
174
- style: U.suggestionIcon,
174
+ style: H.suggestionIcon,
175
175
  children: "📍"
176
176
  }), /* @__PURE__ */ A(z, {
177
- style: [U.suggestionText, { color: C.text }],
177
+ style: [H.suggestionText, { color: C.text }],
178
178
  numberOfLines: 2,
179
179
  children: e.label
180
180
  })]
@@ -185,16 +185,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
185
185
  })
186
186
  }),
187
187
  a && /* @__PURE__ */ A(z, {
188
- style: [U.error, { color: C.error }],
188
+ style: [H.error, { color: C.error }],
189
189
  children: a
190
190
  }),
191
191
  c && !a && /* @__PURE__ */ A(z, {
192
- style: [U.helperText, { color: C.textMuted }],
192
+ style: [H.helperText, { color: C.textMuted }],
193
193
  children: c
194
194
  })
195
195
  ]
196
196
  });
197
- }, U = L.create({
197
+ }, H = L.create({
198
198
  closeButton: {
199
199
  fontSize: 24,
200
200
  fontWeight: "300"
@@ -304,7 +304,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
304
304
  flex: 1,
305
305
  fontSize: 14
306
306
  }
307
- }), se = ({ node: e, value: t, setValue: n, error: i, label: a, placeholder: o, helperText: s }) => {
307
+ }), le = ({ node: e, value: t, setValue: n, error: i, label: a, placeholder: o, helperText: s }) => {
308
308
  let [c, l] = k(!1), [u, d] = k(""), f = r(), { colors: p } = _(), m = e.data.options || [], h = m.find((e) => e.value === t), g = D(() => {
309
309
  if (!u.trim()) return m;
310
310
  let e = u.toLowerCase();
@@ -319,10 +319,10 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
319
319
  l(!1), d("");
320
320
  };
321
321
  return /* @__PURE__ */ j(V, {
322
- style: W.container,
322
+ style: U.container,
323
323
  children: [
324
324
  /* @__PURE__ */ j(z, {
325
- style: [W.label, { color: p.textSecondary }],
325
+ style: [U.label, { color: p.textSecondary }],
326
326
  children: [a || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
327
327
  style: { color: p.error },
328
328
  children: "*"
@@ -330,7 +330,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
330
330
  }),
331
331
  /* @__PURE__ */ j(B, {
332
332
  style: [
333
- W.trigger,
333
+ U.trigger,
334
334
  {
335
335
  backgroundColor: p.input,
336
336
  borderColor: p.border
@@ -341,48 +341,48 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
341
341
  activeOpacity: .7,
342
342
  children: [/* @__PURE__ */ A(z, {
343
343
  style: [
344
- W.triggerText,
344
+ U.triggerText,
345
345
  { color: p.text },
346
346
  !t && { color: p.textMuted }
347
347
  ],
348
348
  numberOfLines: 1,
349
349
  children: t && h ? f(h.label) : o || f("renderer.defaultAutocompleteInput.selectOption")
350
350
  }), /* @__PURE__ */ A(z, {
351
- style: [W.arrow, { color: p.textMuted }],
351
+ style: [U.arrow, { color: p.textMuted }],
352
352
  children: "▼"
353
353
  })]
354
354
  }),
355
- /* @__PURE__ */ A(F, {
355
+ /* @__PURE__ */ A(ne, {
356
356
  visible: c,
357
357
  transparent: !0,
358
358
  animationType: "fade",
359
359
  onRequestClose: y,
360
360
  children: /* @__PURE__ */ A(B, {
361
- style: W.modalOverlay,
361
+ style: U.modalOverlay,
362
362
  activeOpacity: 1,
363
363
  onPress: y,
364
364
  children: /* @__PURE__ */ j(B, {
365
- style: [W.modalContent, { backgroundColor: p.card }],
365
+ style: [U.modalContent, { backgroundColor: p.card }],
366
366
  activeOpacity: 1,
367
367
  onPress: () => {},
368
368
  children: [
369
369
  /* @__PURE__ */ j(V, {
370
- style: [W.modalHeader, { borderBottomColor: p.separator }],
370
+ style: [U.modalHeader, { borderBottomColor: p.separator }],
371
371
  children: [/* @__PURE__ */ A(z, {
372
- style: [W.modalTitle, { color: p.text }],
372
+ style: [U.modalTitle, { color: p.text }],
373
373
  children: a || e.data.name
374
374
  }), /* @__PURE__ */ A(B, {
375
375
  onPress: y,
376
376
  children: /* @__PURE__ */ A(z, {
377
- style: [W.closeButton, { color: p.textMuted }],
377
+ style: [U.closeButton, { color: p.textMuted }],
378
378
  children: "✕"
379
379
  })
380
380
  })]
381
381
  }),
382
382
  /* @__PURE__ */ A(V, {
383
- style: W.searchContainer,
384
- children: /* @__PURE__ */ A(ne, {
385
- style: [W.searchInput, {
383
+ style: U.searchContainer,
384
+ children: /* @__PURE__ */ A(re, {
385
+ style: [U.searchInput, {
386
386
  backgroundColor: p.muted,
387
387
  borderColor: p.border,
388
388
  color: p.text
@@ -399,31 +399,31 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
399
399
  /* @__PURE__ */ A(te, {
400
400
  data: g,
401
401
  keyExtractor: (e) => e.value,
402
- style: W.optionsList,
403
- contentContainerStyle: W.optionsListContent,
402
+ style: U.optionsList,
403
+ contentContainerStyle: U.optionsListContent,
404
404
  ListEmptyComponent: /* @__PURE__ */ A(V, {
405
- style: W.emptyContainer,
405
+ style: U.emptyContainer,
406
406
  children: /* @__PURE__ */ A(z, {
407
- style: [W.emptyText, { color: p.textMuted }],
407
+ style: [U.emptyText, { color: p.textMuted }],
408
408
  children: f("renderer.defaultAutocompleteInput.noResults")
409
409
  })
410
410
  }),
411
411
  renderItem: ({ item: e }) => {
412
412
  let n = e.value === t;
413
413
  return /* @__PURE__ */ j(B, {
414
- style: [W.option, n && { backgroundColor: p.primaryLight }],
414
+ style: [U.option, n && { backgroundColor: p.primaryLight }],
415
415
  onPress: () => v(e.value),
416
416
  disabled: e.disabled,
417
417
  activeOpacity: .7,
418
418
  children: [/* @__PURE__ */ A(z, {
419
419
  style: [
420
- W.optionText,
420
+ U.optionText,
421
421
  { color: p.text },
422
422
  e.disabled && { color: p.textMuted }
423
423
  ],
424
424
  children: f(e.label)
425
425
  }), n && /* @__PURE__ */ A(z, {
426
- style: [W.checkmark, { color: p.primary }],
426
+ style: [U.checkmark, { color: p.primary }],
427
427
  children: "✓"
428
428
  })]
429
429
  });
@@ -434,16 +434,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
434
434
  })
435
435
  }),
436
436
  i && /* @__PURE__ */ A(z, {
437
- style: [W.error, { color: p.error }],
437
+ style: [U.error, { color: p.error }],
438
438
  children: i
439
439
  }),
440
440
  s && !i && /* @__PURE__ */ A(z, {
441
- style: [W.helperText, { color: p.textMuted }],
441
+ style: [U.helperText, { color: p.textMuted }],
442
442
  children: s
443
443
  })
444
444
  ]
445
445
  });
446
- }, W = L.create({
446
+ }, U = L.create({
447
447
  arrow: { fontSize: 12 },
448
448
  checkmark: {
449
449
  fontSize: 18,
@@ -534,7 +534,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
534
534
  flex: 1,
535
535
  fontSize: 14
536
536
  }
537
- }), ce = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
537
+ }), W = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
538
538
  let s = r(), { colors: c } = _(), l = e.data.options || [], u = l.length > 0, d = Array.isArray(t) ? t : [], f = typeof t == "boolean" ? t : !1, p = (e) => {
539
539
  n(u ? d.includes(e) ? d.filter((t) => t !== e) : [...d, e] : !f);
540
540
  }, m = (e) => u ? d.includes(e) : f;
@@ -672,7 +672,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
672
672
  },
673
673
  optionLabel: { fontSize: 14 },
674
674
  optionTextContainer: { flex: 1 }
675
- }), le = ({ node: e, value: t, setValue: n, error: i, label: a, placeholder: o, helperText: s }) => {
675
+ }), ue = ({ node: e, value: t, setValue: n, error: i, label: a, placeholder: o, helperText: s }) => {
676
676
  let [c, l] = k(!1), u = r(), { colors: d } = _(), f = t ? new Date(t) : void 0, { year: p, month: m, today: h } = D(() => {
677
677
  let e = f || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
678
678
  return r.setHours(0, 0, 0, 0), {
@@ -757,7 +757,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
757
757
  children: "📅"
758
758
  })]
759
759
  }),
760
- /* @__PURE__ */ A(F, {
760
+ /* @__PURE__ */ A(ne, {
761
761
  visible: c,
762
762
  transparent: !0,
763
763
  animationType: "fade",
@@ -980,7 +980,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
980
980
  flexDirection: "row",
981
981
  marginBottom: 8
982
982
  }
983
- }), ue = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
983
+ }), de = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
984
984
  let [s, c] = k(!1), [l, u] = k(!0), d = r(), { colors: f } = _(), p = Array.isArray(t) ? t : [], m = p[0] ? new Date(p[0]) : void 0, h = p[1] ? new Date(p[1]) : void 0, { year: g, month: v, today: y } = D(() => {
985
985
  let e = m || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
986
986
  return r.setHours(0, 0, 0, 0), {
@@ -1033,7 +1033,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1033
1033
  S === 0 ? (C(11), x(b - 1)) : C(S - 1);
1034
1034
  }, M = () => {
1035
1035
  S === 11 ? (C(0), x(b + 1)) : C(S + 1);
1036
- }, N = () => m && h ? `${m.toLocaleDateString()} - ${h.toLocaleDateString()}` : m ? m.toLocaleDateString() : d("renderer.defaultInputs.selectDateRange"), P = (t) => e.data.disablePast ? t < y : !1, I = (e) => m && h ? e >= m && e <= h : !1, L = (e) => {
1036
+ }, N = () => m && h ? `${m.toLocaleDateString()} - ${h.toLocaleDateString()}` : m ? m.toLocaleDateString() : d("renderer.defaultInputs.selectDateRange"), P = (t) => e.data.disablePast ? t < y : !1, F = (e) => m && h ? e >= m && e <= h : !1, I = (e) => {
1037
1037
  if (!(m || h)) return !1;
1038
1038
  let t = m && e.getDate() === m.getDate() && e.getMonth() === m.getMonth() && e.getFullYear() === m.getFullYear(), n = h && e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear();
1039
1039
  return t || n;
@@ -1072,7 +1072,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1072
1072
  children: "📅"
1073
1073
  })]
1074
1074
  }),
1075
- /* @__PURE__ */ A(F, {
1075
+ /* @__PURE__ */ A(ne, {
1076
1076
  visible: s,
1077
1077
  transparent: !0,
1078
1078
  animationType: "fade",
@@ -1158,7 +1158,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1158
1158
  style: q.calendar,
1159
1159
  contentContainerStyle: q.calendarContent,
1160
1160
  renderItem: ({ item: e }) => {
1161
- let t = P(e.date), n = I(e.date), r = L(e.date);
1161
+ let t = P(e.date), n = F(e.date), r = I(e.date);
1162
1162
  return /* @__PURE__ */ A(B, {
1163
1163
  style: [
1164
1164
  q.dayCell,
@@ -1314,7 +1314,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1314
1314
  flexDirection: "row",
1315
1315
  marginBottom: 8
1316
1316
  }
1317
- }), de = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
1317
+ }), fe = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
1318
1318
  let [s, c] = k(null), [l, u] = k(!0), d = r(), { colors: f } = _(), p = Array.isArray(t) ? t : t ? [t] : [], m = e.data.multiple, h = ee(async () => {
1319
1319
  if (s) try {
1320
1320
  let e = (await s({ allowMultiSelection: m })).map((e) => ({
@@ -1513,59 +1513,59 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1513
1513
  fontSize: 12,
1514
1514
  textAlign: "center"
1515
1515
  }
1516
- }), fe = (e) => null, pe = (e) => e.replace(/<[^>]*>/g, ""), me = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), he = (e, t = {}) => e == null || e === "" ? "" : me(pe(String(e))), ge = 100, _e = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1517
- if (n > ge) return console.warn(`sanitizeHttpResponse: Maximum depth (${ge}) exceeded.`), typeof e == "string" ? he(e, t) : "[Max Depth Exceeded]";
1516
+ }), pe = (e) => null, me = (e) => e.replace(/<[^>]*>/g, ""), he = (e) => e.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;/g, "'").replace(/&#x2F;/g, "/"), ge = (e, t = {}) => e == null || e === "" ? "" : he(me(String(e))), _e = 100, ve = (e, t = {}, n = 0, r = /* @__PURE__ */ new WeakSet()) => {
1517
+ if (n > _e) return console.warn(`sanitizeHttpResponse: Maximum depth (${_e}) exceeded.`), typeof e == "string" ? ge(e, t) : "[Max Depth Exceeded]";
1518
1518
  if (e == null) return e;
1519
- if (typeof e == "string") return he(e, t);
1520
- if (Array.isArray(e)) return e.map((e) => _e(e, t, n + 1, r));
1519
+ if (typeof e == "string") return ge(e, t);
1520
+ if (Array.isArray(e)) return e.map((e) => ve(e, t, n + 1, r));
1521
1521
  if (typeof e == "object") {
1522
1522
  if (r.has(e)) return console.warn("sanitizeHttpResponse: Circular reference detected. Breaking cycle to prevent infinite recursion."), "[Circular Reference]";
1523
1523
  r.add(e);
1524
1524
  let i = {};
1525
- for (let [a, o] of Object.entries(e)) i[a] = _e(o, t, n + 1, r);
1525
+ for (let [a, o] of Object.entries(e)) i[a] = ve(o, t, n + 1, r);
1526
1526
  return r.delete(e), i;
1527
1527
  }
1528
1528
  return e;
1529
- }, ve = (e) => {
1529
+ }, ye = (e) => {
1530
1530
  let t = e.matchAll(/{{([\w-]+)}}/g);
1531
1531
  return Array.from(t, (e) => e[1]);
1532
- }, ye = (e, t) => ve(e).every((e) => {
1532
+ }, be = (e, t) => ye(e).every((e) => {
1533
1533
  let n = t[e];
1534
1534
  return n != null && n !== "";
1535
- }), be = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1535
+ }), xe = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1536
1536
  let i = t[r], a = i == null ? "" : String(i);
1537
1537
  return n ? encodeURIComponent(a) : a;
1538
- }), xe = ({ node: t, value: i, setValue: o, error: s, label: c, placeholder: l, helperText: u, id: d, name: p }) => {
1539
- let [m, h] = k(!1), [g, v] = k(null), [y, b] = k([]), [x, S] = k(""), [C, T] = k(!1), { formValues: N, inputNodes: P, headers: I } = n(), { colors: L } = _(), { httpConfig: R } = t.data, H = r(), re = O(!1), ie = O(""), ae = O(R), oe = O(N), U = O(P), se = O(I), W = O(o), ce = O(null), G = O(null), le = D(() => R?.url ? ve(R.url) : [], [R?.url]), K = le.length > 0, ue = D(() => le.map((e) => `${e}:${String(N[e] ?? "")}`).join("|"), [le, N]), q = D(() => R?.url ? K ? ye(R.url, N) : !0 : !1, [
1540
- R?.url,
1541
- K,
1538
+ }), Se = ({ node: t, value: i, setValue: o, error: s, label: c, placeholder: l, helperText: u, id: d, name: p }) => {
1539
+ let [m, h] = k(!1), [g, v] = k(null), [y, b] = k([]), [x, S] = k(""), [C, T] = k(!1), { formValues: N, inputNodes: P, headers: F } = n(), { colors: I } = _(), { httpConfig: L } = t.data, R = r(), ie = O(!1), ae = O(""), oe = O(L), se = O(N), ce = O(P), H = O(F), le = O(o), U = O(null), W = O(null), G = D(() => L?.url ? ye(L.url) : [], [L?.url]), ue = G.length > 0, K = D(() => G.map((e) => `${e}:${String(N[e] ?? "")}`).join("|"), [G, N]), de = D(() => L?.url ? ue ? be(L.url, N) : !0 : !1, [
1540
+ L?.url,
1541
+ ue,
1542
1542
  N
1543
- ]), de = ee(async (t) => {
1544
- G.current && G.current.abort();
1543
+ ]), q = ee(async (t) => {
1544
+ W.current && W.current.abort();
1545
1545
  let n = new AbortController();
1546
- G.current = n;
1547
- let r = ae.current, i = oe.current, a = W.current;
1546
+ W.current = n;
1547
+ let r = oe.current, i = se.current, a = le.current;
1548
1548
  if (!r?.url) {
1549
- v(H("renderer.defaultHttpInput.noUrlConfigured")), G.current = null;
1549
+ v(R("renderer.defaultHttpInput.noUrlConfigured")), W.current = null;
1550
1550
  return;
1551
1551
  }
1552
- if (r.url && !ye(r.url, i)) {
1553
- G.current = null;
1552
+ if (r.url && !be(r.url, i)) {
1553
+ W.current = null;
1554
1554
  return;
1555
1555
  }
1556
1556
  h(!0), v(null);
1557
1557
  try {
1558
- let o = be(r.url, i, !0), s = r.searchParam && t ? `${o}${o.includes("?") ? "&" : "?"}${r.searchParam}=${encodeURIComponent(t)}` : o, c = (e) => ({
1558
+ let o = xe(r.url, i, !0), s = r.searchParam && t ? `${o}${o.includes("?") ? "&" : "?"}${r.searchParam}=${encodeURIComponent(t)}` : o, c = (e) => ({
1559
1559
  key: e.key,
1560
- value: be(e.value, i)
1560
+ value: xe(e.value, i)
1561
1561
  }), l = e([{
1562
1562
  key: "Content-Type",
1563
1563
  value: "application/json"
1564
- }], se.current?.map(c), r.headers?.map(c)), u = [
1564
+ }], H.current?.map(c), r.headers?.map(c)), u = [
1565
1565
  "POST",
1566
1566
  "PUT",
1567
1567
  "PATCH"
1568
- ].includes(r.method || "") ? r.sendAllFormValues ? JSON.stringify(f(i, U.current)) : r.body ? be(r.body, i) : void 0 : void 0, d = setTimeout(() => n.abort(), 3e4), p = await fetch(s, {
1568
+ ].includes(r.method || "") ? r.sendAllFormValues ? JSON.stringify(f(i, ce.current)) : r.body ? xe(r.body, i) : void 0 : void 0, d = setTimeout(() => n.abort(), 3e4), p = await fetch(s, {
1569
1569
  body: u || void 0,
1570
1570
  headers: Object.fromEntries(l.filter((e) => e.key && e.value).map((e) => [e.key, e.value])),
1571
1571
  method: r.method || "GET",
@@ -1575,7 +1575,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1575
1575
  v(`HTTP Error ${p.status}: ${p.statusText}`), h(!1);
1576
1576
  return;
1577
1577
  }
1578
- let m = _e(await p.json()), g = r.responsePath ? w(m, r.responsePath) : m;
1578
+ let m = ve(await p.json()), g = r.responsePath ? w(m, r.responsePath) : m;
1579
1579
  if (r.responseMapping && Array.isArray(g)) {
1580
1580
  let { valueField: e = "value", labelField: t = "label" } = r.responseMapping;
1581
1581
  b(g.map((n) => ({
@@ -1585,59 +1585,59 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1585
1585
  } else a(typeof g == "string" ? g : JSON.stringify(g));
1586
1586
  } catch (e) {
1587
1587
  if (e instanceof Error && e.name === "AbortError") return;
1588
- v(e instanceof Error ? e.message : H("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1588
+ v(e instanceof Error ? e.message : R("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1589
1589
  } finally {
1590
- h(!1), G.current = null;
1590
+ h(!1), W.current = null;
1591
1591
  }
1592
- }, [H]);
1592
+ }, [R]);
1593
1593
  if (E(() => {
1594
- ae.current = R, oe.current = N, U.current = P, se.current = I, W.current = o, ce.current = de;
1594
+ oe.current = L, se.current = N, ce.current = P, H.current = F, le.current = o, U.current = q;
1595
1595
  }, [
1596
- R,
1596
+ L,
1597
1597
  N,
1598
1598
  P,
1599
- I,
1599
+ F,
1600
1600
  o,
1601
- de
1601
+ q
1602
1602
  ]), E(() => () => {
1603
- G.current && G.current.abort();
1603
+ W.current && W.current.abort();
1604
1604
  }, []), E(() => {
1605
- if (re.current) return;
1606
- re.current = !0;
1607
- let e = ae.current, t = oe.current, n = ce.current, r = e?.url && ye(e.url, t);
1608
- e?.fetchOnMount && r && n && (n(), e.url && (ie.current = ve(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1605
+ if (ie.current) return;
1606
+ ie.current = !0;
1607
+ let e = oe.current, t = se.current, n = U.current, r = e?.url && be(e.url, t);
1608
+ e?.fetchOnMount && r && n && (n(), e.url && (ae.current = ye(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1609
1609
  }, []), E(() => {
1610
- if (!re.current || !K || ie.current === ue || !q) return;
1610
+ if (!ie.current || !ue || ae.current === K || !de) return;
1611
1611
  let e = setTimeout(() => {
1612
- de(), ie.current = ue;
1612
+ q(), ae.current = K;
1613
1613
  }, 500);
1614
1614
  return () => clearTimeout(e);
1615
1615
  }, [
1616
- ue,
1617
1616
  K,
1618
- q,
1619
- de
1617
+ ue,
1618
+ de,
1619
+ q
1620
1620
  ]), E(() => {
1621
- if (!(R?.searchParam && x)) return;
1621
+ if (!(L?.searchParam && x)) return;
1622
1622
  let e = setTimeout(() => {
1623
- de(x);
1623
+ q(x);
1624
1624
  }, 300);
1625
1625
  return () => clearTimeout(e);
1626
1626
  }, [
1627
1627
  x,
1628
- R?.searchParam,
1629
- de
1630
- ]), R?.responseMapping) {
1628
+ L?.searchParam,
1629
+ q
1630
+ ]), L?.responseMapping) {
1631
1631
  let e = Array.isArray(i) ? i[0] : i, n = y.find((t) => t.value === e);
1632
- if (R.searchParam) {
1633
- let r = m && R?.showLoading;
1632
+ if (L.searchParam) {
1633
+ let r = m && L?.showLoading;
1634
1634
  return /* @__PURE__ */ j(V, {
1635
1635
  style: Y.container,
1636
1636
  children: [
1637
1637
  /* @__PURE__ */ j(z, {
1638
- style: [Y.label, { color: L.textSecondary }],
1638
+ style: [Y.label, { color: I.textSecondary }],
1639
1639
  children: [c || t.data.name, t.data.required && /* @__PURE__ */ A(z, {
1640
- style: { color: L.error },
1640
+ style: { color: I.error },
1641
1641
  children: "*"
1642
1642
  })]
1643
1643
  }),
@@ -1645,10 +1645,10 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1645
1645
  style: [
1646
1646
  Y.trigger,
1647
1647
  {
1648
- backgroundColor: L.input,
1649
- borderColor: L.border
1648
+ backgroundColor: I.input,
1649
+ borderColor: I.border
1650
1650
  },
1651
- s && { borderColor: L.error }
1651
+ s && { borderColor: I.error }
1652
1652
  ],
1653
1653
  onPress: () => T(!0),
1654
1654
  activeOpacity: .7,
@@ -1656,26 +1656,26 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1656
1656
  style: Y.loadingTrigger,
1657
1657
  children: [/* @__PURE__ */ A(M, {
1658
1658
  size: "small",
1659
- color: L.primary
1659
+ color: I.primary
1660
1660
  }), /* @__PURE__ */ A(z, {
1661
- style: [Y.triggerText, { color: L.textMuted }],
1661
+ style: [Y.triggerText, { color: I.textMuted }],
1662
1662
  numberOfLines: 1,
1663
- children: n?.label || l || H("renderer.defaultHttpInput.search")
1663
+ children: n?.label || l || R("renderer.defaultHttpInput.search")
1664
1664
  })]
1665
1665
  }) : /* @__PURE__ */ A(z, {
1666
1666
  style: [
1667
1667
  Y.triggerText,
1668
- { color: L.text },
1669
- !n && { color: L.textMuted }
1668
+ { color: I.text },
1669
+ !n && { color: I.textMuted }
1670
1670
  ],
1671
1671
  numberOfLines: 1,
1672
- children: n?.label || l || H("renderer.defaultHttpInput.search")
1672
+ children: n?.label || l || R("renderer.defaultHttpInput.search")
1673
1673
  }), /* @__PURE__ */ A(z, {
1674
- style: [Y.arrow, { color: L.textMuted }],
1674
+ style: [Y.arrow, { color: I.textMuted }],
1675
1675
  children: "▼"
1676
1676
  })]
1677
1677
  }),
1678
- /* @__PURE__ */ A(F, {
1678
+ /* @__PURE__ */ A(ne, {
1679
1679
  visible: C,
1680
1680
  transparent: !0,
1681
1681
  animationType: "fade",
@@ -1685,33 +1685,33 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1685
1685
  activeOpacity: 1,
1686
1686
  onPress: () => T(!1),
1687
1687
  children: /* @__PURE__ */ j(B, {
1688
- style: [Y.modalContent, { backgroundColor: L.card }],
1688
+ style: [Y.modalContent, { backgroundColor: I.card }],
1689
1689
  activeOpacity: 1,
1690
1690
  onPress: () => {},
1691
1691
  children: [
1692
1692
  /* @__PURE__ */ j(V, {
1693
- style: [Y.modalHeader, { borderBottomColor: L.separator }],
1693
+ style: [Y.modalHeader, { borderBottomColor: I.separator }],
1694
1694
  children: [/* @__PURE__ */ A(z, {
1695
- style: [Y.modalTitle, { color: L.text }],
1695
+ style: [Y.modalTitle, { color: I.text }],
1696
1696
  children: c || t.data.name
1697
1697
  }), /* @__PURE__ */ A(B, {
1698
1698
  onPress: () => T(!1),
1699
1699
  children: /* @__PURE__ */ A(z, {
1700
- style: [Y.closeButton, { color: L.textMuted }],
1700
+ style: [Y.closeButton, { color: I.textMuted }],
1701
1701
  children: "✕"
1702
1702
  })
1703
1703
  })]
1704
1704
  }),
1705
1705
  /* @__PURE__ */ A(V, {
1706
1706
  style: Y.searchContainer,
1707
- children: /* @__PURE__ */ A(ne, {
1707
+ children: /* @__PURE__ */ A(re, {
1708
1708
  style: [Y.searchInput, {
1709
- backgroundColor: L.muted,
1710
- borderColor: L.border,
1711
- color: L.text
1709
+ backgroundColor: I.muted,
1710
+ borderColor: I.border,
1711
+ color: I.text
1712
1712
  }],
1713
- placeholder: H("renderer.defaultHttpInput.search"),
1714
- placeholderTextColor: L.textMuted,
1713
+ placeholder: R("renderer.defaultHttpInput.search"),
1714
+ placeholderTextColor: I.textMuted,
1715
1715
  value: x,
1716
1716
  onChangeText: (e) => {
1717
1717
  S(e), v(null);
@@ -1725,19 +1725,19 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1725
1725
  style: Y.loadingContainer,
1726
1726
  children: /* @__PURE__ */ A(M, {
1727
1727
  size: "small",
1728
- color: L.primary
1728
+ color: I.primary
1729
1729
  })
1730
1730
  }) : g ? /* @__PURE__ */ j(V, {
1731
1731
  style: Y.errorContainer,
1732
1732
  children: [/* @__PURE__ */ A(z, {
1733
- style: [Y.errorText, { color: L.error }],
1733
+ style: [Y.errorText, { color: I.error }],
1734
1734
  children: g
1735
1735
  }), /* @__PURE__ */ A(B, {
1736
- onPress: () => de(x),
1736
+ onPress: () => q(x),
1737
1737
  style: Y.retryButton,
1738
1738
  children: /* @__PURE__ */ A(z, {
1739
- style: [Y.retryButtonText, { color: L.primary }],
1740
- children: H("renderer.defaultHttpInput.retry")
1739
+ style: [Y.retryButtonText, { color: I.primary }],
1740
+ children: R("renderer.defaultHttpInput.retry")
1741
1741
  })
1742
1742
  })]
1743
1743
  }) : /* @__PURE__ */ A(te, {
@@ -1748,23 +1748,23 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1748
1748
  ListEmptyComponent: /* @__PURE__ */ A(V, {
1749
1749
  style: Y.emptyContainer,
1750
1750
  children: /* @__PURE__ */ A(z, {
1751
- style: [Y.emptyText, { color: L.textMuted }],
1752
- children: H("renderer.defaultHttpInput.noResults")
1751
+ style: [Y.emptyText, { color: I.textMuted }],
1752
+ children: R("renderer.defaultHttpInput.noResults")
1753
1753
  })
1754
1754
  }),
1755
1755
  renderItem: ({ item: t }) => {
1756
1756
  let n = t.value === e;
1757
1757
  return /* @__PURE__ */ j(B, {
1758
- style: [Y.option, n && { backgroundColor: L.primaryLight }],
1758
+ style: [Y.option, n && { backgroundColor: I.primaryLight }],
1759
1759
  onPress: () => {
1760
1760
  o(t.value), T(!1);
1761
1761
  },
1762
1762
  activeOpacity: .7,
1763
1763
  children: [/* @__PURE__ */ A(z, {
1764
- style: [Y.optionText, { color: L.text }],
1764
+ style: [Y.optionText, { color: I.text }],
1765
1765
  children: t.label
1766
1766
  }), n && /* @__PURE__ */ A(z, {
1767
- style: [Y.checkmark, { color: L.primary }],
1767
+ style: [Y.checkmark, { color: I.primary }],
1768
1768
  children: "✓"
1769
1769
  })]
1770
1770
  });
@@ -1775,27 +1775,27 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1775
1775
  })
1776
1776
  }),
1777
1777
  s && /* @__PURE__ */ A(z, {
1778
- style: [Y.error, { color: L.error }],
1778
+ style: [Y.error, { color: I.error }],
1779
1779
  children: s
1780
1780
  }),
1781
1781
  u && !s && /* @__PURE__ */ A(z, {
1782
- style: [Y.helperText, { color: L.textMuted }],
1782
+ style: [Y.helperText, { color: I.textMuted }],
1783
1783
  children: u
1784
1784
  })
1785
1785
  ]
1786
1786
  });
1787
1787
  }
1788
- let r = m && R?.showLoading, d = le.filter((e) => {
1788
+ let r = m && L?.showLoading, d = G.filter((e) => {
1789
1789
  let t = N[e];
1790
1790
  return t == null || t === "";
1791
- }), f = d.map((e) => a(e, P) || e), p = y.length === 0 && !r ? g || (d.length > 0 ? `${H("renderer.defaultHttpInput.waitingForRequiredFields")}: ${f.join(", ")}` : H("renderer.defaultHttpInput.noDataAvailable")) : void 0;
1791
+ }), f = d.map((e) => a(e, P) || e), p = y.length === 0 && !r ? g || (d.length > 0 ? `${R("renderer.defaultHttpInput.waitingForRequiredFields")}: ${f.join(", ")}` : R("renderer.defaultHttpInput.noDataAvailable")) : void 0;
1792
1792
  return /* @__PURE__ */ j(V, {
1793
1793
  style: Y.container,
1794
1794
  children: [
1795
1795
  /* @__PURE__ */ j(z, {
1796
- style: [Y.label, { color: L.textSecondary }],
1796
+ style: [Y.label, { color: I.textSecondary }],
1797
1797
  children: [c || t.data.name, t.data.required && /* @__PURE__ */ A(z, {
1798
- style: { color: L.error },
1798
+ style: { color: I.error },
1799
1799
  children: "*"
1800
1800
  })]
1801
1801
  }),
@@ -1803,11 +1803,11 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1803
1803
  style: [
1804
1804
  Y.trigger,
1805
1805
  {
1806
- backgroundColor: L.input,
1807
- borderColor: L.border
1806
+ backgroundColor: I.input,
1807
+ borderColor: I.border
1808
1808
  },
1809
- s && { borderColor: L.error },
1810
- (r || y.length === 0) && { backgroundColor: L.muted }
1809
+ s && { borderColor: I.error },
1810
+ (r || y.length === 0) && { backgroundColor: I.muted }
1811
1811
  ],
1812
1812
  onPress: () => T(!0),
1813
1813
  disabled: r || y.length === 0,
@@ -1815,29 +1815,29 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1815
1815
  children: [
1816
1816
  r && /* @__PURE__ */ A(M, {
1817
1817
  size: "small",
1818
- color: L.primary,
1818
+ color: I.primary,
1819
1819
  style: Y.triggerLoader
1820
1820
  }),
1821
1821
  /* @__PURE__ */ A(z, {
1822
1822
  style: [
1823
1823
  Y.triggerText,
1824
- { color: L.text },
1825
- !n && { color: L.textMuted }
1824
+ { color: I.text },
1825
+ !n && { color: I.textMuted }
1826
1826
  ],
1827
1827
  numberOfLines: 1,
1828
- children: n?.label || l || H("renderer.defaultHttpInput.selectOption")
1828
+ children: n?.label || l || R("renderer.defaultHttpInput.selectOption")
1829
1829
  }),
1830
1830
  /* @__PURE__ */ A(z, {
1831
- style: [Y.arrow, { color: L.textMuted }],
1831
+ style: [Y.arrow, { color: I.textMuted }],
1832
1832
  children: "▼"
1833
1833
  })
1834
1834
  ]
1835
1835
  }),
1836
1836
  p && /* @__PURE__ */ A(z, {
1837
- style: [Y.disabledMessage, { color: L.error }],
1837
+ style: [Y.disabledMessage, { color: I.error }],
1838
1838
  children: p
1839
1839
  }),
1840
- /* @__PURE__ */ A(F, {
1840
+ /* @__PURE__ */ A(ne, {
1841
1841
  visible: C,
1842
1842
  transparent: !0,
1843
1843
  animationType: "fade",
@@ -1847,18 +1847,18 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1847
1847
  activeOpacity: 1,
1848
1848
  onPress: () => T(!1),
1849
1849
  children: /* @__PURE__ */ j(B, {
1850
- style: [Y.modalContent, { backgroundColor: L.card }],
1850
+ style: [Y.modalContent, { backgroundColor: I.card }],
1851
1851
  activeOpacity: 1,
1852
1852
  onPress: () => {},
1853
1853
  children: [/* @__PURE__ */ j(V, {
1854
- style: [Y.modalHeader, { borderBottomColor: L.separator }],
1854
+ style: [Y.modalHeader, { borderBottomColor: I.separator }],
1855
1855
  children: [/* @__PURE__ */ A(z, {
1856
- style: [Y.modalTitle, { color: L.text }],
1856
+ style: [Y.modalTitle, { color: I.text }],
1857
1857
  children: c || t.data.name
1858
1858
  }), /* @__PURE__ */ A(B, {
1859
1859
  onPress: () => T(!1),
1860
1860
  children: /* @__PURE__ */ A(z, {
1861
- style: [Y.closeButton, { color: L.textMuted }],
1861
+ style: [Y.closeButton, { color: I.textMuted }],
1862
1862
  children: "✕"
1863
1863
  })
1864
1864
  })]
@@ -1870,16 +1870,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1870
1870
  renderItem: ({ item: t }) => {
1871
1871
  let n = t.value === e;
1872
1872
  return /* @__PURE__ */ j(B, {
1873
- style: [Y.option, n && { backgroundColor: L.primaryLight }],
1873
+ style: [Y.option, n && { backgroundColor: I.primaryLight }],
1874
1874
  onPress: () => {
1875
1875
  o(t.value), T(!1);
1876
1876
  },
1877
1877
  activeOpacity: .7,
1878
1878
  children: [/* @__PURE__ */ A(z, {
1879
- style: [Y.optionText, { color: L.text }],
1879
+ style: [Y.optionText, { color: I.text }],
1880
1880
  children: t.label
1881
1881
  }), n && /* @__PURE__ */ A(z, {
1882
- style: [Y.checkmark, { color: L.primary }],
1882
+ style: [Y.checkmark, { color: I.primary }],
1883
1883
  children: "✓"
1884
1884
  })]
1885
1885
  });
@@ -1889,11 +1889,11 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1889
1889
  })
1890
1890
  }),
1891
1891
  s && /* @__PURE__ */ A(z, {
1892
- style: [Y.error, { color: L.error }],
1892
+ style: [Y.error, { color: I.error }],
1893
1893
  children: s
1894
1894
  }),
1895
1895
  u && !s && /* @__PURE__ */ A(z, {
1896
- style: [Y.helperText, { color: L.textMuted }],
1896
+ style: [Y.helperText, { color: I.textMuted }],
1897
1897
  children: u
1898
1898
  })
1899
1899
  ]
@@ -1903,27 +1903,27 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
1903
1903
  style: Y.container,
1904
1904
  children: [
1905
1905
  /* @__PURE__ */ j(z, {
1906
- style: [Y.label, { color: L.textSecondary }],
1906
+ style: [Y.label, { color: I.textSecondary }],
1907
1907
  children: [c || t.data.name, t.data.required && /* @__PURE__ */ A(z, {
1908
- style: { color: L.error },
1908
+ style: { color: I.error },
1909
1909
  children: "*"
1910
1910
  })]
1911
1911
  }),
1912
- /* @__PURE__ */ A(ne, {
1912
+ /* @__PURE__ */ A(re, {
1913
1913
  style: [Y.input, {
1914
- backgroundColor: L.muted,
1915
- borderColor: L.border,
1916
- color: L.textMuted
1914
+ backgroundColor: I.muted,
1915
+ borderColor: I.border,
1916
+ color: I.textMuted
1917
1917
  }],
1918
1918
  value: typeof i == "string" ? i : JSON.stringify(i),
1919
1919
  editable: !1
1920
1920
  }),
1921
1921
  s && /* @__PURE__ */ A(z, {
1922
- style: [Y.error, { color: L.error }],
1922
+ style: [Y.error, { color: I.error }],
1923
1923
  children: s
1924
1924
  }),
1925
1925
  u && !s && /* @__PURE__ */ A(z, {
1926
- style: [Y.helperText, { color: L.textMuted }],
1926
+ style: [Y.helperText, { color: I.textMuted }],
1927
1927
  children: u
1928
1928
  })
1929
1929
  ]
@@ -2054,23 +2054,23 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2054
2054
  flex: 1,
2055
2055
  fontSize: 14
2056
2056
  }
2057
- }), Se = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2057
+ }), Ce = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2058
2058
  let { colors: c } = _(), [l, u] = k(t?.toString() ?? "");
2059
2059
  return E(() => {
2060
2060
  u(t?.toString() ?? "");
2061
2061
  }, [t]), /* @__PURE__ */ j(V, {
2062
- style: Ce.container,
2062
+ style: we.container,
2063
2063
  children: [
2064
2064
  /* @__PURE__ */ j(z, {
2065
- style: [Ce.label, { color: c.textSecondary }],
2065
+ style: [we.label, { color: c.textSecondary }],
2066
2066
  children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
2067
2067
  style: { color: c.error },
2068
2068
  children: "*"
2069
2069
  })]
2070
2070
  }),
2071
- /* @__PURE__ */ A(ne, {
2071
+ /* @__PURE__ */ A(re, {
2072
2072
  style: [
2073
- Ce.input,
2073
+ we.input,
2074
2074
  {
2075
2075
  backgroundColor: c.input,
2076
2076
  borderColor: c.border,
@@ -2093,16 +2093,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2093
2093
  accessibilityLabel: s
2094
2094
  }),
2095
2095
  r && /* @__PURE__ */ A(z, {
2096
- style: [Ce.error, { color: c.error }],
2096
+ style: [we.error, { color: c.error }],
2097
2097
  children: r
2098
2098
  }),
2099
2099
  o && !r && /* @__PURE__ */ A(z, {
2100
- style: [Ce.helperText, { color: c.textMuted }],
2100
+ style: [we.helperText, { color: c.textMuted }],
2101
2101
  children: o
2102
2102
  })
2103
2103
  ]
2104
2104
  });
2105
- }, Ce = L.create({
2105
+ }, we = L.create({
2106
2106
  container: { marginBottom: 16 },
2107
2107
  error: {
2108
2108
  fontSize: 12,
@@ -2124,23 +2124,23 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2124
2124
  fontWeight: "500",
2125
2125
  marginBottom: 8
2126
2126
  }
2127
- }), we = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2127
+ }), Te = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2128
2128
  let { colors: c } = _(), [l, u] = k(!1);
2129
2129
  return /* @__PURE__ */ j(V, {
2130
- style: Te.container,
2130
+ style: Ee.container,
2131
2131
  children: [
2132
2132
  /* @__PURE__ */ j(z, {
2133
- style: [Te.label, { color: c.textSecondary }],
2133
+ style: [Ee.label, { color: c.textSecondary }],
2134
2134
  children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
2135
2135
  style: { color: c.error },
2136
2136
  children: "*"
2137
2137
  })]
2138
2138
  }),
2139
2139
  /* @__PURE__ */ j(V, {
2140
- style: Te.inputWrapper,
2141
- children: [/* @__PURE__ */ A(ne, {
2140
+ style: Ee.inputWrapper,
2141
+ children: [/* @__PURE__ */ A(re, {
2142
2142
  style: [
2143
- Te.input,
2143
+ Ee.input,
2144
2144
  {
2145
2145
  backgroundColor: c.input,
2146
2146
  borderColor: c.border,
@@ -2155,26 +2155,26 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2155
2155
  secureTextEntry: !l,
2156
2156
  accessibilityLabel: s
2157
2157
  }), /* @__PURE__ */ A(B, {
2158
- style: Te.toggleButton,
2158
+ style: Ee.toggleButton,
2159
2159
  onPress: () => u(!l),
2160
2160
  activeOpacity: .7,
2161
2161
  children: /* @__PURE__ */ A(z, {
2162
- style: [Te.toggleText, { color: c.primary }],
2162
+ style: [Ee.toggleText, { color: c.primary }],
2163
2163
  children: l ? "Hide" : "Show"
2164
2164
  })
2165
2165
  })]
2166
2166
  }),
2167
2167
  r && /* @__PURE__ */ A(z, {
2168
- style: [Te.error, { color: c.error }],
2168
+ style: [Ee.error, { color: c.error }],
2169
2169
  children: r
2170
2170
  }),
2171
2171
  o && !r && /* @__PURE__ */ A(z, {
2172
- style: [Te.helperText, { color: c.textMuted }],
2172
+ style: [Ee.helperText, { color: c.textMuted }],
2173
2173
  children: o
2174
2174
  })
2175
2175
  ]
2176
2176
  });
2177
- }, Te = L.create({
2177
+ }, Ee = L.create({
2178
2178
  container: { marginBottom: 16 },
2179
2179
  error: {
2180
2180
  fontSize: 12,
@@ -2212,7 +2212,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2212
2212
  fontSize: 12,
2213
2213
  fontWeight: "600"
2214
2214
  }
2215
- }), Ee = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
2215
+ }), De = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
2216
2216
  let s = r(), { colors: c } = _(), l = e.data.options || [], u = t || "", d = e.data.variant !== "default", f = (e) => {
2217
2217
  n(e);
2218
2218
  };
@@ -2245,7 +2245,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2245
2245
  disabled: e.disabled,
2246
2246
  activeOpacity: .7,
2247
2247
  children: [
2248
- e.image && /* @__PURE__ */ A(P, {
2248
+ e.image && /* @__PURE__ */ A(F, {
2249
2249
  source: { uri: e.image },
2250
2250
  style: X.cardImage
2251
2251
  }),
@@ -2289,7 +2289,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2289
2289
  ],
2290
2290
  children: t && /* @__PURE__ */ A(V, { style: [X.radioInner, { backgroundColor: c.primary }] })
2291
2291
  }),
2292
- e.image && /* @__PURE__ */ A(P, {
2292
+ e.image && /* @__PURE__ */ A(F, {
2293
2293
  source: { uri: e.image },
2294
2294
  style: X.image
2295
2295
  }),
@@ -2393,7 +2393,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2393
2393
  height: 10,
2394
2394
  width: 10
2395
2395
  }
2396
- }), De = ({ node: e, value: t, setValue: n, error: i, label: a, placeholder: o, helperText: s }) => {
2396
+ }), Oe = ({ node: e, value: t, setValue: n, error: i, label: a, placeholder: o, helperText: s }) => {
2397
2397
  let [c, l] = k(!1), u = r(), { colors: d } = _(), f = e.data.options || [], p = e.data.multiple, m = Array.isArray(t) ? t : t ? [t] : [], h = (e) => {
2398
2398
  p ? n(m.includes(e) ? m.filter((t) => t !== e) : [...m, e]) : (n(e), l(!1));
2399
2399
  };
@@ -2435,7 +2435,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2435
2435
  children: "▼"
2436
2436
  })]
2437
2437
  }),
2438
- /* @__PURE__ */ A(F, {
2438
+ /* @__PURE__ */ A(ne, {
2439
2439
  visible: c,
2440
2440
  transparent: !0,
2441
2441
  animationType: "fade",
@@ -2588,17 +2588,17 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2588
2588
  flex: 1,
2589
2589
  fontSize: 14
2590
2590
  }
2591
- }), Oe = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
2591
+ }), ke = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
2592
2592
  let { colors: o } = _(), s = !!t;
2593
2593
  return /* @__PURE__ */ j(V, {
2594
- style: ke.container,
2594
+ style: Ae.container,
2595
2595
  children: [
2596
2596
  /* @__PURE__ */ j(V, {
2597
- style: ke.row,
2597
+ style: Ae.row,
2598
2598
  children: [/* @__PURE__ */ A(V, {
2599
- style: ke.labelContainer,
2599
+ style: Ae.labelContainer,
2600
2600
  children: /* @__PURE__ */ j(z, {
2601
- style: [ke.label, { color: o.textSecondary }],
2601
+ style: [Ae.label, { color: o.textSecondary }],
2602
2602
  children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
2603
2603
  style: { color: o.error },
2604
2604
  children: "*"
@@ -2616,16 +2616,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2616
2616
  })]
2617
2617
  }),
2618
2618
  r && /* @__PURE__ */ A(z, {
2619
- style: [ke.error, { color: o.error }],
2619
+ style: [Ae.error, { color: o.error }],
2620
2620
  children: r
2621
2621
  }),
2622
2622
  a && !r && /* @__PURE__ */ A(z, {
2623
- style: [ke.helperText, { color: o.textMuted }],
2623
+ style: [Ae.helperText, { color: o.textMuted }],
2624
2624
  children: a
2625
2625
  })
2626
2626
  ]
2627
2627
  });
2628
- }, ke = L.create({
2628
+ }, Ae = L.create({
2629
2629
  container: { marginBottom: 16 },
2630
2630
  error: {
2631
2631
  fontSize: 12,
@@ -2645,21 +2645,21 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2645
2645
  flexDirection: "row",
2646
2646
  justifyContent: "space-between"
2647
2647
  }
2648
- }), Ae = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2648
+ }), je = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2649
2649
  let { colors: c } = _();
2650
2650
  return /* @__PURE__ */ j(V, {
2651
- style: je.container,
2651
+ style: Me.container,
2652
2652
  children: [
2653
2653
  /* @__PURE__ */ j(z, {
2654
- style: [je.label, { color: c.textSecondary }],
2654
+ style: [Me.label, { color: c.textSecondary }],
2655
2655
  children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
2656
2656
  style: { color: c.error },
2657
2657
  children: "*"
2658
2658
  })]
2659
2659
  }),
2660
- /* @__PURE__ */ A(ne, {
2660
+ /* @__PURE__ */ A(re, {
2661
2661
  style: [
2662
- je.textarea,
2662
+ Me.textarea,
2663
2663
  {
2664
2664
  backgroundColor: c.input,
2665
2665
  borderColor: c.border,
@@ -2677,16 +2677,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2677
2677
  accessibilityLabel: s
2678
2678
  }),
2679
2679
  r && /* @__PURE__ */ A(z, {
2680
- style: [je.error, { color: c.error }],
2680
+ style: [Me.error, { color: c.error }],
2681
2681
  children: r
2682
2682
  }),
2683
2683
  o && !r && /* @__PURE__ */ A(z, {
2684
- style: [je.helperText, { color: c.textMuted }],
2684
+ style: [Me.helperText, { color: c.textMuted }],
2685
2685
  children: o
2686
2686
  })
2687
2687
  ]
2688
2688
  });
2689
- }, je = L.create({
2689
+ }, Me = L.create({
2690
2690
  container: { marginBottom: 16 },
2691
2691
  error: {
2692
2692
  fontSize: 12,
@@ -2709,21 +2709,21 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2709
2709
  paddingHorizontal: 12,
2710
2710
  paddingVertical: 8
2711
2711
  }
2712
- }), Me = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2712
+ }), Ne = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
2713
2713
  let { colors: c } = _();
2714
2714
  return /* @__PURE__ */ j(V, {
2715
- style: Ne.container,
2715
+ style: Pe.container,
2716
2716
  children: [
2717
2717
  /* @__PURE__ */ j(z, {
2718
- style: [Ne.label, { color: c.textSecondary }],
2718
+ style: [Pe.label, { color: c.textSecondary }],
2719
2719
  children: [i || e.data.name, e.data.required && /* @__PURE__ */ A(z, {
2720
2720
  style: { color: c.error },
2721
2721
  children: "*"
2722
2722
  })]
2723
2723
  }),
2724
- /* @__PURE__ */ A(ne, {
2724
+ /* @__PURE__ */ A(re, {
2725
2725
  style: [
2726
- Ne.input,
2726
+ Pe.input,
2727
2727
  {
2728
2728
  backgroundColor: c.input,
2729
2729
  borderColor: c.border,
@@ -2738,16 +2738,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2738
2738
  accessibilityLabel: s
2739
2739
  }),
2740
2740
  r && /* @__PURE__ */ A(z, {
2741
- style: [Ne.error, { color: c.error }],
2741
+ style: [Pe.error, { color: c.error }],
2742
2742
  children: r
2743
2743
  }),
2744
2744
  o && !r && /* @__PURE__ */ A(z, {
2745
- style: [Ne.helperText, { color: c.textMuted }],
2745
+ style: [Pe.helperText, { color: c.textMuted }],
2746
2746
  children: o
2747
2747
  })
2748
2748
  ]
2749
2749
  });
2750
- }, Ne = L.create({
2750
+ }, Pe = L.create({
2751
2751
  container: { marginBottom: 16 },
2752
2752
  error: {
2753
2753
  fontSize: 12,
@@ -2769,7 +2769,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2769
2769
  fontWeight: "500",
2770
2770
  marginBottom: 8
2771
2771
  }
2772
- }), Pe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
2772
+ }), Fe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
2773
2773
  let [s, c] = k(!1), { colors: l } = _(), u = (t || "").split(":"), d = Number.parseInt(u[0], 10), f = Number.parseInt(u[1], 10), p = Number.isNaN(d) ? 0 : d, m = Number.isNaN(f) ? 0 : f, [h, g] = k(p || 0), [v, y] = k(m || 0), b = O(null), x = O(null), S = Array.from({ length: 24 }, (e, t) => t), C = Array.from({ length: 60 }, (e, t) => t), w = () => t || a || "Select time", T = ee(() => {
2774
2774
  n(`${String(h).padStart(2, "0")}:${String(v).padStart(2, "0")}`), c(!1);
2775
2775
  }, [
@@ -2813,7 +2813,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
2813
2813
  children: "🕐"
2814
2814
  })]
2815
2815
  }),
2816
- /* @__PURE__ */ A(F, {
2816
+ /* @__PURE__ */ A(ne, {
2817
2817
  visible: s,
2818
2818
  transparent: !0,
2819
2819
  animationType: "fade",
@@ -3019,8 +3019,8 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3019
3019
  flex: 1,
3020
3020
  fontSize: 14
3021
3021
  }
3022
- }), Fe = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
3023
- let [s, c] = k(!1), [l, u] = k(!0), d = r(), { colors: f } = _(), p = Array.isArray(t) ? t : [], m = p[0] || "", h = p[1] || "", g = m.split(":"), v = Number.parseInt(g[0], 10), y = Number.parseInt(g[1], 10), b = Number.isNaN(v) ? 0 : v, x = Number.isNaN(y) ? 0 : y, S = h.split(":"), C = Number.parseInt(S[0], 10), w = Number.parseInt(S[1], 10), T = Number.isNaN(C) ? 0 : C, E = Number.isNaN(w) ? 0 : w, [D, O] = k(0), [M, N] = k(0), te = Array.from({ length: 24 }, (e, t) => t), P = Array.from({ length: 60 }, (e, t) => t), L = () => m && h ? `${m} - ${h}` : m || d("renderer.defaultInputs.selectDateRange"), R = ee(() => {
3022
+ }), Ie = ({ node: e, value: t, setValue: n, error: i, label: a, helperText: o }) => {
3023
+ let [s, c] = k(!1), [l, u] = k(!0), d = r(), { colors: f } = _(), p = Array.isArray(t) ? t : [], m = p[0] || "", h = p[1] || "", g = m.split(":"), v = Number.parseInt(g[0], 10), y = Number.parseInt(g[1], 10), b = Number.isNaN(v) ? 0 : v, x = Number.isNaN(y) ? 0 : y, S = h.split(":"), C = Number.parseInt(S[0], 10), w = Number.parseInt(S[1], 10), T = Number.isNaN(C) ? 0 : C, E = Number.isNaN(w) ? 0 : w, [D, O] = k(0), [M, N] = k(0), P = Array.from({ length: 24 }, (e, t) => t), te = Array.from({ length: 60 }, (e, t) => t), F = () => m && h ? `${m} - ${h}` : m || d("renderer.defaultInputs.selectDateRange"), L = ee(() => {
3024
3024
  let e = `${String(D).padStart(2, "0")}:${String(M).padStart(2, "0")}`;
3025
3025
  l ? (n([e, h]), u(!1), O(T || 0), N(E || 0)) : (n([m, e]), c(!1), u(!0));
3026
3026
  }, [
@@ -3063,13 +3063,13 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3063
3063
  !m && { color: f.textMuted }
3064
3064
  ],
3065
3065
  numberOfLines: 1,
3066
- children: L()
3066
+ children: F()
3067
3067
  }), /* @__PURE__ */ A(z, {
3068
3068
  style: $.icon,
3069
3069
  children: "🕐"
3070
3070
  })]
3071
3071
  }),
3072
- /* @__PURE__ */ A(F, {
3072
+ /* @__PURE__ */ A(ne, {
3073
3073
  visible: s,
3074
3074
  transparent: !0,
3075
3075
  animationType: "fade",
@@ -3115,7 +3115,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3115
3115
  style: $.picker,
3116
3116
  contentContainerStyle: $.pickerContent,
3117
3117
  showsVerticalScrollIndicator: !1,
3118
- children: te.map((e) => /* @__PURE__ */ A(B, {
3118
+ children: P.map((e) => /* @__PURE__ */ A(B, {
3119
3119
  style: [$.pickerItem, D === e && { backgroundColor: f.primary }],
3120
3120
  onPress: () => O(e),
3121
3121
  activeOpacity: .7,
@@ -3146,7 +3146,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3146
3146
  style: $.picker,
3147
3147
  contentContainerStyle: $.pickerContent,
3148
3148
  showsVerticalScrollIndicator: !1,
3149
- children: P.map((e) => /* @__PURE__ */ A(B, {
3149
+ children: te.map((e) => /* @__PURE__ */ A(B, {
3150
3150
  style: [$.pickerItem, M === e && { backgroundColor: f.primary }],
3151
3151
  onPress: () => N(e),
3152
3152
  activeOpacity: .7,
@@ -3168,7 +3168,7 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3168
3168
  }),
3169
3169
  /* @__PURE__ */ A(B, {
3170
3170
  style: [$.confirmButton, { backgroundColor: f.primary }],
3171
- onPress: R,
3171
+ onPress: L,
3172
3172
  activeOpacity: .7,
3173
3173
  children: /* @__PURE__ */ A(z, {
3174
3174
  style: [$.confirmButtonText, { color: f.background }],
@@ -3290,58 +3290,58 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3290
3290
  flex: 1,
3291
3291
  fontSize: 14
3292
3292
  }
3293
- }), Ie = ({ node: e }) => /* @__PURE__ */ j(z, { children: [
3293
+ }), Le = ({ node: e }) => /* @__PURE__ */ j(z, { children: [
3294
3294
  "TODO: Implement ",
3295
3295
  e.data.type,
3296
3296
  " input for React Native"
3297
- ] }), Le = {
3298
- address: oe,
3299
- autocomplete: se,
3300
- checkbox: ce,
3301
- date: le,
3302
- daterange: ue,
3303
- file: de,
3304
- hidden: fe,
3305
- http: xe,
3306
- number: Se,
3307
- password: we,
3308
- radio: Ee,
3309
- select: De,
3310
- submit: Ie,
3311
- switch: Oe,
3312
- text: Me,
3313
- textarea: Ae,
3314
- time: Pe,
3315
- timerange: Fe
3316
- }, Re = ({ label: e, children: t, isFirstStep: n, isLastStep: i, canContinue: a, isSubmitting: o, onBack: s, onContinue: c }) => {
3297
+ ] }), Re = {
3298
+ address: ce,
3299
+ autocomplete: le,
3300
+ checkbox: W,
3301
+ date: ue,
3302
+ daterange: de,
3303
+ file: fe,
3304
+ hidden: pe,
3305
+ http: Se,
3306
+ number: Ce,
3307
+ password: Te,
3308
+ radio: De,
3309
+ select: Oe,
3310
+ submit: Le,
3311
+ switch: ke,
3312
+ text: Ne,
3313
+ textarea: je,
3314
+ time: Fe,
3315
+ timerange: Ie
3316
+ }, ze = ({ label: e, children: t, isFirstStep: n, isLastStep: i, canContinue: a, isSubmitting: o, onBack: s, onContinue: c }) => {
3317
3317
  let l = r(), { colors: u } = _(), d = !a || o;
3318
3318
  return /* @__PURE__ */ j(V, { children: [
3319
3319
  e ? /* @__PURE__ */ A(z, {
3320
- style: [ze.label, { color: u.text }],
3320
+ style: [Be.label, { color: u.text }],
3321
3321
  children: e
3322
3322
  }) : null,
3323
3323
  /* @__PURE__ */ A(V, {
3324
- style: ze.content,
3324
+ style: Be.content,
3325
3325
  children: t
3326
3326
  }),
3327
3327
  /* @__PURE__ */ j(V, {
3328
- style: ze.actions,
3328
+ style: Be.actions,
3329
3329
  children: [n ? /* @__PURE__ */ A(V, {}) : /* @__PURE__ */ A(B, {
3330
3330
  style: [
3331
- ze.backButton,
3331
+ Be.backButton,
3332
3332
  { borderColor: u.border },
3333
- o && ze.disabled
3333
+ o && Be.disabled
3334
3334
  ],
3335
3335
  onPress: s,
3336
3336
  disabled: o,
3337
3337
  activeOpacity: .7,
3338
3338
  children: /* @__PURE__ */ A(z, {
3339
- style: [ze.backButtonText, { color: u.text }],
3339
+ style: [Be.backButtonText, { color: u.text }],
3340
3340
  children: l("renderer.step.back")
3341
3341
  })
3342
3342
  }), /* @__PURE__ */ A(B, {
3343
3343
  style: [
3344
- ze.continueButton,
3344
+ Be.continueButton,
3345
3345
  { backgroundColor: u.primary },
3346
3346
  d && {
3347
3347
  backgroundColor: u.primaryDisabled,
@@ -3352,13 +3352,13 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3352
3352
  disabled: d,
3353
3353
  activeOpacity: .7,
3354
3354
  children: o ? /* @__PURE__ */ A(M, { color: u.primaryForeground }) : /* @__PURE__ */ A(z, {
3355
- style: [ze.continueButtonText, { color: u.primaryForeground }],
3355
+ style: [Be.continueButtonText, { color: u.primaryForeground }],
3356
3356
  children: l(i ? "renderer.defaultSubmitButton.submit" : "renderer.step.continue")
3357
3357
  })
3358
3358
  })]
3359
3359
  })
3360
3360
  ] });
3361
- }, ze = L.create({
3361
+ }, Be = L.create({
3362
3362
  actions: {
3363
3363
  alignItems: "center",
3364
3364
  flexDirection: "row",
@@ -3393,11 +3393,11 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3393
3393
  fontWeight: "600",
3394
3394
  marginBottom: 12
3395
3395
  }
3396
- }), Be = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3396
+ }), Ve = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
3397
3397
  let { colors: i } = _();
3398
3398
  return /* @__PURE__ */ A(B, {
3399
3399
  style: [
3400
- Ve.button,
3400
+ He.button,
3401
3401
  { backgroundColor: i.primary },
3402
3402
  (t || n) && {
3403
3403
  backgroundColor: i.primaryDisabled,
@@ -3408,11 +3408,11 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3408
3408
  onPress: r,
3409
3409
  activeOpacity: .7,
3410
3410
  children: n ? /* @__PURE__ */ A(M, { color: i.primaryForeground }) : /* @__PURE__ */ A(z, {
3411
- style: [Ve.buttonText, { color: i.primaryForeground }],
3411
+ style: [He.buttonText, { color: i.primaryForeground }],
3412
3412
  children: e
3413
3413
  })
3414
3414
  });
3415
- }, Ve = L.create({
3415
+ }, He = L.create({
3416
3416
  button: {
3417
3417
  alignItems: "center",
3418
3418
  borderRadius: 6,
@@ -3425,16 +3425,16 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3425
3425
  fontSize: 16,
3426
3426
  fontWeight: "600"
3427
3427
  }
3428
- }), He = ({ children: e }) => e, Ue = ({ node: e }) => {
3428
+ }), Ue = ({ children: e }) => e, We = ({ node: e }) => {
3429
3429
  let t = r(), { colors: n } = _(), i = t(e.data?.label);
3430
3430
  return /* @__PURE__ */ A(z, {
3431
- style: [Ge.title, { color: n.text }],
3431
+ style: [Ke.title, { color: n.text }],
3432
3432
  children: i
3433
3433
  });
3434
- }, We = () => {
3434
+ }, Ge = () => {
3435
3435
  let { colors: e } = _();
3436
- return /* @__PURE__ */ A(V, { style: [Ge.divider, { backgroundColor: e.separator }] });
3437
- }, Ge = L.create({
3436
+ return /* @__PURE__ */ A(V, { style: [Ke.divider, { backgroundColor: e.separator }] });
3437
+ }, Ke = L.create({
3438
3438
  divider: {
3439
3439
  height: 1,
3440
3440
  marginBottom: 16,
@@ -3445,116 +3445,182 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3445
3445
  fontWeight: "700",
3446
3446
  marginBottom: 16
3447
3447
  }
3448
- }), Ke = {
3449
- divider: We,
3450
- title: Ue
3451
- }, qe = ({ node: e, children: t }) => {
3448
+ }), qe = {
3449
+ divider: Ge,
3450
+ title: We
3451
+ }, Je = ({ node: e, children: t }) => {
3452
3452
  let { image: n } = e.data;
3453
- return /* @__PURE__ */ j(V, { children: [n && /* @__PURE__ */ A(P, {
3453
+ return /* @__PURE__ */ j(V, { children: [n && /* @__PURE__ */ A(F, {
3454
3454
  source: { uri: n },
3455
- style: Je.image,
3455
+ style: Ye.image,
3456
3456
  resizeMode: "cover"
3457
3457
  }), t] });
3458
- }, Je = L.create({ image: {
3458
+ }, Ye = L.create({ image: {
3459
3459
  borderRadius: 6,
3460
3460
  height: 160,
3461
3461
  marginBottom: 8,
3462
3462
  width: "100%"
3463
- } }), Ye = ({ components: e, contentContainerStyle: t, flows: n, googleApiKey: r, headers: i, initialValues: a, language: o, onChange: s, onSubmit: c, style: l, theme: u, validate: d, validationMode: f }) => {
3464
- let { colors: h } = _(), { canContinueStep: g, canSubmit: v, clearSubmitMessage: y, config: x, currentStep: S, currentStepGroupNode: C, currentStepIndex: w, formErrors: T, formValues: E, goToNextStep: O, goToPreviousStep: k, handleSubmit: M, inputNodes: N, isFirstStep: te, isLastStep: P, isSubmitting: F, missingRequiredFields: L, setFieldValue: R, steps: ne, submitMessage: B, t: re } = p({
3463
+ } }), Xe = ({ style: e }) => {
3464
+ let { colors: t } = _(), n = O(new P.Value(.5)).current;
3465
+ return E(() => {
3466
+ let e = P.loop(P.sequence([P.timing(n, {
3467
+ duration: 600,
3468
+ toValue: 1,
3469
+ useNativeDriver: !0
3470
+ }), P.timing(n, {
3471
+ duration: 600,
3472
+ toValue: .5,
3473
+ useNativeDriver: !0
3474
+ })]));
3475
+ return e.start(), () => e.stop();
3476
+ }, [n]), /* @__PURE__ */ A(P.View, { style: [
3477
+ Qe.bar,
3478
+ {
3479
+ backgroundColor: t.muted,
3480
+ opacity: n
3481
+ },
3482
+ e
3483
+ ] });
3484
+ }, Ze = () => /* @__PURE__ */ j(V, {
3485
+ accessibilityState: { busy: !0 },
3486
+ children: [
3487
+ /* @__PURE__ */ A(Xe, { style: Qe.title }),
3488
+ /* @__PURE__ */ A(V, {
3489
+ style: Qe.fields,
3490
+ children: [
3491
+ 0,
3492
+ 1,
3493
+ 2
3494
+ ].map((e) => /* @__PURE__ */ j(V, {
3495
+ style: Qe.field,
3496
+ children: [/* @__PURE__ */ A(Xe, { style: Qe.fieldLabel }), /* @__PURE__ */ A(Xe, { style: Qe.fieldInput })]
3497
+ }, e))
3498
+ }),
3499
+ /* @__PURE__ */ A(V, {
3500
+ style: Qe.actions,
3501
+ children: /* @__PURE__ */ A(Xe, { style: Qe.button })
3502
+ })
3503
+ ]
3504
+ }), Qe = L.create({
3505
+ actions: {
3506
+ alignItems: "flex-end",
3507
+ marginTop: 24
3508
+ },
3509
+ bar: { borderRadius: 6 },
3510
+ button: {
3511
+ height: 44,
3512
+ width: 120
3513
+ },
3514
+ field: { gap: 8 },
3515
+ fieldInput: {
3516
+ height: 44,
3517
+ width: "100%"
3518
+ },
3519
+ fieldLabel: {
3520
+ height: 16,
3521
+ width: "25%"
3522
+ },
3523
+ fields: { gap: 24 },
3524
+ title: {
3525
+ height: 24,
3526
+ marginBottom: 24,
3527
+ width: "33%"
3528
+ }
3529
+ }), $e = ({ components: e, contentContainerStyle: t, flows: n, googleApiKey: r, headers: i, initialValues: a, isLoading: o = !1, language: s, onChange: c, onSubmit: l, style: u, theme: d, validate: f, validationMode: h }) => {
3530
+ let { colors: g } = _(), { canContinueStep: v, canSubmit: y, clearSubmitMessage: x, config: S, currentStep: C, currentStepGroupNode: w, currentStepIndex: T, formErrors: E, formValues: O, goToNextStep: k, goToPreviousStep: M, handleSubmit: N, inputNodes: P, isFirstStep: te, isLastStep: F, isSubmitting: ne, missingRequiredFields: L, setFieldValue: R, steps: re, submitMessage: B, t: ae } = p({
3465
3531
  components: e,
3466
3532
  flows: n,
3467
3533
  googleApiKey: r,
3468
3534
  headers: i,
3469
3535
  initialValues: a,
3470
- language: o,
3471
- onChange: s,
3472
- onSubmit: c,
3473
- theme: u,
3474
- validate: d,
3475
- validationMode: f
3476
- }), { FormWrapper: ie, SubmitButtonWrapper: ae, renderNode: oe } = b({
3477
- config: x,
3478
- DefaultFormWrapper: H,
3479
- DefaultInputWrapper: qe,
3480
- DefaultSubmitButton: Be,
3481
- DefaultSubmitButtonWrapper: He,
3482
- defaultInputRenderers: Le,
3483
- defaultUI: Ke,
3484
- formErrors: T,
3485
- formValues: E,
3536
+ language: s,
3537
+ onChange: c,
3538
+ onSubmit: l,
3539
+ theme: d,
3540
+ validate: f,
3541
+ validationMode: h
3542
+ }), { FormWrapper: oe, SubmitButtonWrapper: se, renderNode: ce } = b({
3543
+ config: S,
3544
+ DefaultFormWrapper: ie,
3545
+ DefaultInputWrapper: Je,
3546
+ DefaultSubmitButton: Ve,
3547
+ DefaultSubmitButtonWrapper: Ue,
3548
+ defaultInputRenderers: Re,
3549
+ defaultUI: qe,
3550
+ formErrors: E,
3551
+ formValues: O,
3486
3552
  missingRequiredFields: L,
3487
3553
  setFieldValue: R
3488
- }), U = x.components.step ?? Re, se = D(() => re(C?.data?.label), [re, C]), W = ee(() => {
3489
- if (P) {
3490
- M();
3554
+ }), H = S.components.step ?? ze, le = S.components.loadingSkeleton ?? Ze, U = D(() => ae(w?.data?.label), [ae, w]), W = ee(() => {
3555
+ if (F) {
3556
+ N();
3491
3557
  return;
3492
3558
  }
3493
- O();
3559
+ k();
3494
3560
  }, [
3495
- P,
3496
- M,
3497
- O
3561
+ F,
3562
+ N,
3563
+ k
3498
3564
  ]);
3499
3565
  return /* @__PURE__ */ A(I, {
3500
3566
  nestedScrollEnabled: !0,
3501
3567
  style: [
3502
- Ze.container,
3503
- { backgroundColor: h.background },
3504
- l
3568
+ tt.container,
3569
+ { backgroundColor: g.background },
3570
+ u
3505
3571
  ],
3506
3572
  contentContainerStyle: t,
3507
- children: /* @__PURE__ */ j(m, {
3573
+ children: o ? /* @__PURE__ */ A(le, {}) : /* @__PURE__ */ j(m, {
3508
3574
  value: {
3509
3575
  flows: n,
3510
- formErrors: T,
3511
- formValues: E,
3512
- googleApiKey: x.googleApiKey,
3513
- headers: x.headers,
3514
- inputNodes: N,
3515
- language: x.language,
3576
+ formErrors: E,
3577
+ formValues: O,
3578
+ googleApiKey: S.googleApiKey,
3579
+ headers: S.headers,
3580
+ inputNodes: P,
3581
+ language: S.language,
3516
3582
  setFieldValue: R
3517
3583
  },
3518
- children: [/* @__PURE__ */ j(ie, {
3519
- onSubmit: M,
3520
- children: [S && /* @__PURE__ */ A(ae, {
3521
- missingFields: P ? L : void 0,
3522
- children: /* @__PURE__ */ A(U, {
3523
- step: S,
3524
- groupNode: C,
3525
- stepIndex: w,
3526
- totalSteps: ne.length,
3584
+ children: [/* @__PURE__ */ j(oe, {
3585
+ onSubmit: N,
3586
+ children: [C && /* @__PURE__ */ A(se, {
3587
+ missingFields: F ? L : void 0,
3588
+ children: /* @__PURE__ */ A(H, {
3589
+ step: C,
3590
+ groupNode: w,
3591
+ stepIndex: T,
3592
+ totalSteps: re.length,
3527
3593
  isFirstStep: te,
3528
- isLastStep: P,
3529
- canContinue: g && (!P || v),
3530
- isSubmitting: F,
3531
- onBack: k,
3594
+ isLastStep: F,
3595
+ canContinue: v && (!F || y),
3596
+ isSubmitting: ne,
3597
+ onBack: M,
3532
3598
  onContinue: W,
3533
- label: se,
3534
- children: S.nodes.map((e) => oe(e))
3599
+ label: U,
3600
+ children: C.nodes.map((e) => ce(e))
3535
3601
  })
3536
3602
  }), /* @__PURE__ */ A(z, {
3537
- style: [Ze.poweredBy, { color: h.textMuted }],
3603
+ style: [tt.poweredBy, { color: g.textMuted }],
3538
3604
  children: "Powered by Treege"
3539
3605
  })]
3540
3606
  }), B && /* @__PURE__ */ j(V, {
3541
- style: [Ze.message, { backgroundColor: B.type === "success" ? h.successBg : h.errorBg }],
3607
+ style: [tt.message, { backgroundColor: B.type === "success" ? g.successBg : g.errorBg }],
3542
3608
  children: [/* @__PURE__ */ A(z, {
3543
- style: [Ze.messageText, { color: B.type === "success" ? h.success : h.error }],
3609
+ style: [tt.messageText, { color: B.type === "success" ? g.success : g.error }],
3544
3610
  children: B.message
3545
3611
  }), /* @__PURE__ */ A(z, {
3546
- style: [Ze.messageClose, { color: B.type === "success" ? h.success : h.error }],
3547
- onPress: y,
3548
- children: re("common.close")
3612
+ style: [tt.messageClose, { color: B.type === "success" ? g.success : g.error }],
3613
+ onPress: x,
3614
+ children: ae("common.close")
3549
3615
  })]
3550
3616
  })]
3551
3617
  })
3552
3618
  });
3553
- }, Xe = (e) => /* @__PURE__ */ A(S, {
3619
+ }, et = (e) => /* @__PURE__ */ A(S, {
3554
3620
  theme: e.theme,
3555
3621
  storageKey: "treege-renderer-theme",
3556
- children: /* @__PURE__ */ A(Ye, { ...e })
3557
- }), Ze = L.create({
3622
+ children: /* @__PURE__ */ A($e, { ...e })
3623
+ }), tt = L.create({
3558
3624
  container: { flex: 1 },
3559
3625
  message: {
3560
3626
  borderRadius: 6,
@@ -3577,4 +3643,4 @@ var H = ({ children: e }) => /* @__PURE__ */ A(V, {
3577
3643
  }
3578
3644
  });
3579
3645
  //#endregion
3580
- export { oe as DefaultAddressInput, se as DefaultAutocompleteInput, ce as DefaultCheckboxInput, le as DefaultDateInput, ue as DefaultDateRangeInput, We as DefaultDividerUI, de as DefaultFileInput, fe as DefaultHiddenInput, xe as DefaultHttpInput, Se as DefaultNumberInput, we as DefaultPasswordInput, Ee as DefaultRadioInput, De as DefaultSelectInput, Ie as DefaultSubmitInput, Oe as DefaultSwitchInput, Me as DefaultTextInput, Ae as DefaultTextareaInput, Pe as DefaultTimeInput, Fe as DefaultTimeRangeInput, Ue as DefaultTitleUI, C as TreegeConfigProvider, Xe as TreegeRenderer, u as applyReferenceTransformation, y as calculateReferenceFieldUpdates, g as checkFormFieldHasValue, f as convertFormValuesToNamedFormat, Le as defaultInputRenderers, Ke as defaultUI, c as evaluateCondition, h as evaluateConditions, s as fileToSerializable, T as filesToSerializable, o as findStartNode, v as getFlowRenderState, t as getTranslatedText, d as isFieldEmpty, x as isStartNode, he as sanitize, _e as sanitizeHttpResponse, i as serializableToFile, l as useTreegeConfig, p as useTreegeRenderer };
3646
+ export { ce as DefaultAddressInput, le as DefaultAutocompleteInput, W as DefaultCheckboxInput, ue as DefaultDateInput, de as DefaultDateRangeInput, Ge as DefaultDividerUI, fe as DefaultFileInput, pe as DefaultHiddenInput, Se as DefaultHttpInput, Ce as DefaultNumberInput, Te as DefaultPasswordInput, De as DefaultRadioInput, Oe as DefaultSelectInput, Le as DefaultSubmitInput, ke as DefaultSwitchInput, Ne as DefaultTextInput, je as DefaultTextareaInput, Fe as DefaultTimeInput, Ie as DefaultTimeRangeInput, We as DefaultTitleUI, C as TreegeConfigProvider, et as TreegeRenderer, u as applyReferenceTransformation, y as calculateReferenceFieldUpdates, g as checkFormFieldHasValue, f as convertFormValuesToNamedFormat, Re as defaultInputRenderers, qe as defaultUI, c as evaluateCondition, h as evaluateConditions, s as fileToSerializable, T as filesToSerializable, o as findStartNode, v as getFlowRenderState, t as getTranslatedText, d as isFieldEmpty, x as isStartNode, ge as sanitize, ve as sanitizeHttpResponse, i as serializableToFile, l as useTreegeConfig, p as useTreegeRenderer };