treege 3.0.0-beta.64 → 3.0.0-beta.65
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.
- package/dist/main.js +2 -2
- package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +2 -1
- package/dist/renderer/features/TreegeRenderer/web/TreegeRenderer.d.ts +1 -1
- package/dist/renderer/types/renderer.d.ts +5 -0
- package/dist/{renderer-DlAYvOLz.js → renderer-BZDW7wcE.js} +53 -52
- package/dist/renderer-native.js +620 -619
- package/dist/renderer.js +2 -2
- package/dist/{useRenderNode-CZt7LwVV.js → useRenderNode-DGe-7y4d.js} +113 -111
- package/package.json +1 -1
package/dist/renderer-native.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { C as e, I as t, O as n, P as r, T as i, a, b as o, c as s, g as c, h as l, i as u, k as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, v as y, w as b } from "./ThemeContext-7cghqUb0.js";
|
|
2
|
-
import { a as x, c as S, i as C, l as w, n as T, o as E, r as D, s as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { ActivityIndicator as
|
|
2
|
+
import { a as x, c as S, i as C, l as w, n as T, o as E, r as D, s as ee, t as O } from "./useRenderNode-DGe-7y4d.js";
|
|
3
|
+
import { useCallback as te, useEffect as k, useMemo as A, useRef as j, useState as M } from "react";
|
|
4
|
+
import { Fragment as ne, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
5
|
+
import { ActivityIndicator as re, Alert as ie, Animated as F, FlatList as ae, Image as I, Modal as oe, ScrollView as L, StyleSheet as R, Switch as se, Text as z, TextInput as B, TouchableOpacity as V, View as H } from "react-native";
|
|
6
6
|
//#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
|
|
7
|
-
var ce = ({ children: e }) => /* @__PURE__ */
|
|
7
|
+
var ce = ({ children: e }) => /* @__PURE__ */ N(H, {
|
|
8
8
|
style: le.container,
|
|
9
9
|
children: e
|
|
10
|
-
}), le =
|
|
10
|
+
}), le = R.create({ container: { padding: 16 } }), ue = 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: {
|
|
@@ -36,12 +36,12 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
36
36
|
return console.error("Google Places fetch error:", e), [];
|
|
37
37
|
}
|
|
38
38
|
}, fe = ({ field: e, extra: t }) => {
|
|
39
|
-
let [n, r] =
|
|
39
|
+
let [n, r] = M(""), [a, o] = M([]), [s, c] = M(!1), [l, u] = M(!1), { value: f, placeholder: m, id: h, name: g } = e, { node: _, setValue: v, error: y, label: b, helperText: x } = t, { language: S, googleApiKey: C } = d(), w = i(), { colors: T } = p(), E = te((e) => {
|
|
40
40
|
v(e.value), r(""), c(!1), o([]);
|
|
41
41
|
}, [v]), D = () => {
|
|
42
42
|
c(!1);
|
|
43
43
|
};
|
|
44
|
-
return
|
|
44
|
+
return k(() => {
|
|
45
45
|
if (!n || n.trim().length < 3) {
|
|
46
46
|
o([]), u(!1);
|
|
47
47
|
return;
|
|
@@ -57,17 +57,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
57
57
|
n,
|
|
58
58
|
S,
|
|
59
59
|
C
|
|
60
|
-
]), /* @__PURE__ */
|
|
60
|
+
]), /* @__PURE__ */ P(H, {
|
|
61
61
|
style: U.container,
|
|
62
62
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ P(z, {
|
|
64
64
|
style: [U.label, { color: T.textSecondary }],
|
|
65
|
-
children: [b || _.data.name, _.data.required && /* @__PURE__ */
|
|
65
|
+
children: [b || _.data.name, _.data.required && /* @__PURE__ */ N(z, {
|
|
66
66
|
style: { color: T.error },
|
|
67
67
|
children: "*"
|
|
68
68
|
})]
|
|
69
69
|
}),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ P(V, {
|
|
71
71
|
style: [
|
|
72
72
|
U.trigger,
|
|
73
73
|
{
|
|
@@ -78,7 +78,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
78
78
|
],
|
|
79
79
|
onPress: () => c(!0),
|
|
80
80
|
activeOpacity: .7,
|
|
81
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ N(z, {
|
|
82
82
|
style: [
|
|
83
83
|
U.triggerText,
|
|
84
84
|
{ color: T.text },
|
|
@@ -86,41 +86,41 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
86
86
|
],
|
|
87
87
|
numberOfLines: 1,
|
|
88
88
|
children: f || m || w("renderer.defaultAddressInput.enterAddress")
|
|
89
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ N(z, {
|
|
90
90
|
style: U.icon,
|
|
91
91
|
children: "📍"
|
|
92
92
|
})]
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ N(oe, {
|
|
95
95
|
visible: s,
|
|
96
96
|
transparent: !0,
|
|
97
97
|
animationType: "fade",
|
|
98
98
|
onRequestClose: D,
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ N(V, {
|
|
100
100
|
style: U.modalOverlay,
|
|
101
101
|
activeOpacity: 1,
|
|
102
102
|
onPress: D,
|
|
103
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ P(V, {
|
|
104
104
|
style: [U.modalContent, { backgroundColor: T.card }],
|
|
105
105
|
activeOpacity: 1,
|
|
106
106
|
onPress: () => {},
|
|
107
107
|
children: [
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ P(H, {
|
|
109
109
|
style: [U.modalHeader, { borderBottomColor: T.separator }],
|
|
110
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [/* @__PURE__ */ N(z, {
|
|
111
111
|
style: [U.modalTitle, { color: T.text }],
|
|
112
112
|
children: b || _.data.name
|
|
113
|
-
}), /* @__PURE__ */
|
|
113
|
+
}), /* @__PURE__ */ N(V, {
|
|
114
114
|
onPress: D,
|
|
115
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ N(z, {
|
|
116
116
|
style: [U.closeButton, { color: T.textMuted }],
|
|
117
117
|
children: "✕"
|
|
118
118
|
})
|
|
119
119
|
})]
|
|
120
120
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ P(H, {
|
|
122
122
|
style: U.searchContainer,
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ N(B, {
|
|
124
124
|
style: [U.searchInput, {
|
|
125
125
|
backgroundColor: T.muted,
|
|
126
126
|
borderColor: T.border,
|
|
@@ -133,48 +133,48 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
133
133
|
autoFocus: !0,
|
|
134
134
|
autoCapitalize: "none",
|
|
135
135
|
autoCorrect: !1
|
|
136
|
-
}), l && /* @__PURE__ */
|
|
136
|
+
}), l && /* @__PURE__ */ N(re, {
|
|
137
137
|
size: "small",
|
|
138
138
|
color: T.primary,
|
|
139
139
|
style: U.searchLoader
|
|
140
140
|
})]
|
|
141
141
|
}),
|
|
142
|
-
l ? /* @__PURE__ */
|
|
142
|
+
l ? /* @__PURE__ */ P(H, {
|
|
143
143
|
style: U.loadingContainer,
|
|
144
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ N(re, {
|
|
145
145
|
size: "small",
|
|
146
146
|
color: T.primary
|
|
147
|
-
}), /* @__PURE__ */
|
|
147
|
+
}), /* @__PURE__ */ N(z, {
|
|
148
148
|
style: [U.loadingText, { color: T.textMuted }],
|
|
149
149
|
children: w("renderer.defaultAddressInput.searching")
|
|
150
150
|
})]
|
|
151
|
-
}) : /* @__PURE__ */
|
|
151
|
+
}) : /* @__PURE__ */ N(ae, {
|
|
152
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__ */
|
|
157
|
+
ListEmptyComponent: n.length >= 3 ? /* @__PURE__ */ N(H, {
|
|
158
158
|
style: U.emptyContainer,
|
|
159
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ N(z, {
|
|
160
160
|
style: [U.emptyText, { color: T.textMuted }],
|
|
161
161
|
children: w("renderer.defaultAddressInput.noAddressesFound")
|
|
162
162
|
})
|
|
163
|
-
}) : /* @__PURE__ */
|
|
163
|
+
}) : /* @__PURE__ */ N(H, {
|
|
164
164
|
style: U.emptyContainer,
|
|
165
|
-
children: /* @__PURE__ */
|
|
165
|
+
children: /* @__PURE__ */ N(z, {
|
|
166
166
|
style: [U.emptyText, { color: T.textMuted }],
|
|
167
167
|
children: w("renderer.defaultAddressInput.typeMinChars")
|
|
168
168
|
})
|
|
169
169
|
}),
|
|
170
|
-
renderItem: ({ item: e }) => /* @__PURE__ */
|
|
170
|
+
renderItem: ({ item: e }) => /* @__PURE__ */ P(V, {
|
|
171
171
|
style: U.suggestionItem,
|
|
172
172
|
onPress: () => E(e),
|
|
173
173
|
activeOpacity: .7,
|
|
174
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ N(z, {
|
|
175
175
|
style: U.suggestionIcon,
|
|
176
176
|
children: "📍"
|
|
177
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ N(z, {
|
|
178
178
|
style: [U.suggestionText, { color: T.text }],
|
|
179
179
|
numberOfLines: 2,
|
|
180
180
|
children: e.label
|
|
@@ -185,17 +185,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
185
185
|
})
|
|
186
186
|
})
|
|
187
187
|
}),
|
|
188
|
-
y && /* @__PURE__ */
|
|
188
|
+
y && /* @__PURE__ */ N(z, {
|
|
189
189
|
style: [U.error, { color: T.error }],
|
|
190
190
|
children: y
|
|
191
191
|
}),
|
|
192
|
-
x && !y && /* @__PURE__ */
|
|
192
|
+
x && !y && /* @__PURE__ */ N(z, {
|
|
193
193
|
style: [U.helperText, { color: T.textMuted }],
|
|
194
194
|
children: x
|
|
195
195
|
})
|
|
196
196
|
]
|
|
197
197
|
});
|
|
198
|
-
}, U =
|
|
198
|
+
}, U = R.create({
|
|
199
199
|
closeButton: {
|
|
200
200
|
fontSize: 24,
|
|
201
201
|
fontWeight: "300"
|
|
@@ -307,23 +307,23 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
307
307
|
}
|
|
308
308
|
}), pe = ({ label: e, description: t, image: n, disabled: r }) => {
|
|
309
309
|
let { colors: i } = p();
|
|
310
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ P(H, {
|
|
311
311
|
style: me.content,
|
|
312
|
-
children: [n ? /* @__PURE__ */
|
|
312
|
+
children: [n ? /* @__PURE__ */ N(I, {
|
|
313
313
|
source: { uri: n },
|
|
314
314
|
style: me.image
|
|
315
|
-
}) : null, /* @__PURE__ */
|
|
315
|
+
}) : null, /* @__PURE__ */ P(H, {
|
|
316
316
|
style: me.textWrapper,
|
|
317
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ N(z, {
|
|
318
318
|
style: [me.label, { color: r ? i.textMuted : i.text }],
|
|
319
319
|
children: e
|
|
320
|
-
}), t ? /* @__PURE__ */
|
|
320
|
+
}), t ? /* @__PURE__ */ N(z, {
|
|
321
321
|
style: [me.description, { color: i.textMuted }],
|
|
322
322
|
children: t
|
|
323
323
|
}) : null]
|
|
324
324
|
})]
|
|
325
325
|
});
|
|
326
|
-
}, me =
|
|
326
|
+
}, me = R.create({
|
|
327
327
|
content: {
|
|
328
328
|
alignItems: "center",
|
|
329
329
|
flex: 1,
|
|
@@ -342,7 +342,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
342
342
|
label: { fontSize: 14 },
|
|
343
343
|
textWrapper: { flex: 1 }
|
|
344
344
|
}), he = ({ field: e, extra: t }) => {
|
|
345
|
-
let [n, r] =
|
|
345
|
+
let [n, r] = M(!1), [a, o] = M(""), { value: s, placeholder: c } = e, { node: l, setValue: u, error: d, label: f, helperText: m } = t, h = i(), { colors: g } = p(), _ = l.data.options || [], v = _.find((e) => e.value === s), y = A(() => {
|
|
346
346
|
if (!a.trim()) return _;
|
|
347
347
|
let e = a.toLowerCase();
|
|
348
348
|
return _.filter((t) => h(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
|
|
@@ -355,17 +355,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
355
355
|
}, x = () => {
|
|
356
356
|
r(!1), o("");
|
|
357
357
|
};
|
|
358
|
-
return /* @__PURE__ */
|
|
358
|
+
return /* @__PURE__ */ P(H, {
|
|
359
359
|
style: W.container,
|
|
360
360
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ P(z, {
|
|
362
362
|
style: [W.label, { color: g.textSecondary }],
|
|
363
|
-
children: [f || l.data.name, l.data.required && /* @__PURE__ */
|
|
363
|
+
children: [f || l.data.name, l.data.required && /* @__PURE__ */ N(z, {
|
|
364
364
|
style: { color: g.error },
|
|
365
365
|
children: "*"
|
|
366
366
|
})]
|
|
367
367
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ P(V, {
|
|
369
369
|
style: [
|
|
370
370
|
W.trigger,
|
|
371
371
|
{
|
|
@@ -376,7 +376,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
376
376
|
],
|
|
377
377
|
onPress: () => r(!0),
|
|
378
378
|
activeOpacity: .7,
|
|
379
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ N(z, {
|
|
380
380
|
style: [
|
|
381
381
|
W.triggerText,
|
|
382
382
|
{ color: g.text },
|
|
@@ -384,41 +384,41 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
384
384
|
],
|
|
385
385
|
numberOfLines: 1,
|
|
386
386
|
children: s && v ? h(v.label) : c || h("renderer.defaultAutocompleteInput.selectOption")
|
|
387
|
-
}), /* @__PURE__ */
|
|
387
|
+
}), /* @__PURE__ */ N(z, {
|
|
388
388
|
style: [W.arrow, { color: g.textMuted }],
|
|
389
389
|
children: "▼"
|
|
390
390
|
})]
|
|
391
391
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ N(oe, {
|
|
393
393
|
visible: n,
|
|
394
394
|
transparent: !0,
|
|
395
395
|
animationType: "fade",
|
|
396
396
|
onRequestClose: x,
|
|
397
|
-
children: /* @__PURE__ */
|
|
397
|
+
children: /* @__PURE__ */ N(V, {
|
|
398
398
|
style: W.modalOverlay,
|
|
399
399
|
activeOpacity: 1,
|
|
400
400
|
onPress: x,
|
|
401
|
-
children: /* @__PURE__ */
|
|
401
|
+
children: /* @__PURE__ */ P(V, {
|
|
402
402
|
style: [W.modalContent, { backgroundColor: g.card }],
|
|
403
403
|
activeOpacity: 1,
|
|
404
404
|
onPress: () => {},
|
|
405
405
|
children: [
|
|
406
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ P(H, {
|
|
407
407
|
style: [W.modalHeader, { borderBottomColor: g.separator }],
|
|
408
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ N(z, {
|
|
409
409
|
style: [W.modalTitle, { color: g.text }],
|
|
410
410
|
children: f || l.data.name
|
|
411
|
-
}), /* @__PURE__ */
|
|
411
|
+
}), /* @__PURE__ */ N(V, {
|
|
412
412
|
onPress: x,
|
|
413
|
-
children: /* @__PURE__ */
|
|
413
|
+
children: /* @__PURE__ */ N(z, {
|
|
414
414
|
style: [W.closeButton, { color: g.textMuted }],
|
|
415
415
|
children: "✕"
|
|
416
416
|
})
|
|
417
417
|
})]
|
|
418
418
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ N(H, {
|
|
420
420
|
style: W.searchContainer,
|
|
421
|
-
children: /* @__PURE__ */
|
|
421
|
+
children: /* @__PURE__ */ N(B, {
|
|
422
422
|
style: [W.searchInput, {
|
|
423
423
|
backgroundColor: g.muted,
|
|
424
424
|
borderColor: g.border,
|
|
@@ -433,31 +433,31 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
433
433
|
autoCorrect: !1
|
|
434
434
|
})
|
|
435
435
|
}),
|
|
436
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ N(ae, {
|
|
437
437
|
data: y,
|
|
438
438
|
keyExtractor: (e) => e.value,
|
|
439
439
|
style: W.optionsList,
|
|
440
440
|
contentContainerStyle: W.optionsListContent,
|
|
441
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
441
|
+
ListEmptyComponent: /* @__PURE__ */ N(H, {
|
|
442
442
|
style: W.emptyContainer,
|
|
443
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ N(z, {
|
|
444
444
|
style: [W.emptyText, { color: g.textMuted }],
|
|
445
445
|
children: h("renderer.defaultAutocompleteInput.noResults")
|
|
446
446
|
})
|
|
447
447
|
}),
|
|
448
448
|
renderItem: ({ item: e }) => {
|
|
449
449
|
let t = e.value === s;
|
|
450
|
-
return /* @__PURE__ */
|
|
450
|
+
return /* @__PURE__ */ P(V, {
|
|
451
451
|
style: [W.option, t && { backgroundColor: g.primaryLight }],
|
|
452
452
|
onPress: () => b(e.value),
|
|
453
453
|
disabled: e.disabled,
|
|
454
454
|
activeOpacity: .7,
|
|
455
|
-
children: [/* @__PURE__ */
|
|
455
|
+
children: [/* @__PURE__ */ N(pe, {
|
|
456
456
|
label: h(e.label) || e.value,
|
|
457
457
|
description: h(e.description),
|
|
458
458
|
image: e.image,
|
|
459
459
|
disabled: e.disabled
|
|
460
|
-
}), t && /* @__PURE__ */
|
|
460
|
+
}), t && /* @__PURE__ */ N(z, {
|
|
461
461
|
style: [W.checkmark, { color: g.primary }],
|
|
462
462
|
children: "✓"
|
|
463
463
|
})]
|
|
@@ -468,17 +468,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
468
468
|
})
|
|
469
469
|
})
|
|
470
470
|
}),
|
|
471
|
-
d && /* @__PURE__ */
|
|
471
|
+
d && /* @__PURE__ */ N(z, {
|
|
472
472
|
style: [W.error, { color: g.error }],
|
|
473
473
|
children: d
|
|
474
474
|
}),
|
|
475
|
-
m && !d && /* @__PURE__ */
|
|
475
|
+
m && !d && /* @__PURE__ */ N(z, {
|
|
476
476
|
style: [W.helperText, { color: g.textMuted }],
|
|
477
477
|
children: m
|
|
478
478
|
})
|
|
479
479
|
]
|
|
480
480
|
});
|
|
481
|
-
}, W =
|
|
481
|
+
}, W = R.create({
|
|
482
482
|
arrow: { fontSize: 12 },
|
|
483
483
|
checkmark: {
|
|
484
484
|
fontSize: 18,
|
|
@@ -569,19 +569,19 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
569
569
|
let n = i(), { value: r } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = p(), d = a.data.options || [], f = d.length > 0, m = Array.isArray(r) ? r : [], h = typeof r == "boolean" ? r : !1, g = (e) => {
|
|
570
570
|
o(f ? m.includes(e) ? m.filter((t) => t !== e) : [...m, e] : !h);
|
|
571
571
|
}, _ = (e) => f ? m.includes(e) : h;
|
|
572
|
-
return /* @__PURE__ */
|
|
572
|
+
return /* @__PURE__ */ P(H, {
|
|
573
573
|
style: G.container,
|
|
574
574
|
children: [
|
|
575
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ P(z, {
|
|
576
576
|
style: [G.label, { color: u.textSecondary }],
|
|
577
|
-
children: [c || a.data.name, a.data.required && /* @__PURE__ */
|
|
577
|
+
children: [c || a.data.name, a.data.required && /* @__PURE__ */ N(z, {
|
|
578
578
|
style: { color: u.error },
|
|
579
579
|
children: "*"
|
|
580
580
|
})]
|
|
581
581
|
}),
|
|
582
582
|
d.length > 0 ? d.map((e) => {
|
|
583
583
|
let t = n(e.description);
|
|
584
|
-
return /* @__PURE__ */
|
|
584
|
+
return /* @__PURE__ */ P(V, {
|
|
585
585
|
style: G.option,
|
|
586
586
|
onPress: () => g(e.value),
|
|
587
587
|
disabled: e.disabled,
|
|
@@ -594,7 +594,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
594
594
|
},
|
|
595
595
|
accessibilityLabel: n(e.label) || e.value,
|
|
596
596
|
children: [
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ N(H, {
|
|
598
598
|
style: [
|
|
599
599
|
G.checkbox,
|
|
600
600
|
{
|
|
@@ -606,32 +606,32 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
606
606
|
borderColor: u.primary
|
|
607
607
|
}
|
|
608
608
|
],
|
|
609
|
-
children: _(e.value) && /* @__PURE__ */
|
|
609
|
+
children: _(e.value) && /* @__PURE__ */ N(z, {
|
|
610
610
|
style: G.checkmark,
|
|
611
611
|
children: "✓"
|
|
612
612
|
})
|
|
613
613
|
}),
|
|
614
|
-
e.image ? /* @__PURE__ */
|
|
614
|
+
e.image ? /* @__PURE__ */ N(I, {
|
|
615
615
|
source: { uri: e.image },
|
|
616
616
|
style: G.image
|
|
617
617
|
}) : null,
|
|
618
|
-
/* @__PURE__ */
|
|
618
|
+
/* @__PURE__ */ P(H, {
|
|
619
619
|
style: G.optionTextContainer,
|
|
620
|
-
children: [/* @__PURE__ */
|
|
620
|
+
children: [/* @__PURE__ */ N(z, {
|
|
621
621
|
style: [
|
|
622
622
|
G.optionLabel,
|
|
623
623
|
{ color: u.textSecondary },
|
|
624
624
|
e.disabled && { color: u.textMuted }
|
|
625
625
|
],
|
|
626
626
|
children: n(e.label) || e.value
|
|
627
|
-
}), t && /* @__PURE__ */
|
|
627
|
+
}), t && /* @__PURE__ */ N(z, {
|
|
628
628
|
style: [G.optionDescription, { color: u.textMuted }],
|
|
629
629
|
children: t
|
|
630
630
|
})]
|
|
631
631
|
})
|
|
632
632
|
]
|
|
633
633
|
}, e.value);
|
|
634
|
-
}) : /* @__PURE__ */
|
|
634
|
+
}) : /* @__PURE__ */ P(V, {
|
|
635
635
|
style: G.option,
|
|
636
636
|
onPress: () => g(""),
|
|
637
637
|
activeOpacity: .7,
|
|
@@ -639,7 +639,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
639
639
|
accessibilityRole: "checkbox",
|
|
640
640
|
accessibilityState: { checked: h },
|
|
641
641
|
accessibilityLabel: c || a.data.name,
|
|
642
|
-
children: [/* @__PURE__ */
|
|
642
|
+
children: [/* @__PURE__ */ N(H, {
|
|
643
643
|
style: [
|
|
644
644
|
G.checkbox,
|
|
645
645
|
{
|
|
@@ -651,26 +651,26 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
651
651
|
borderColor: u.primary
|
|
652
652
|
}
|
|
653
653
|
],
|
|
654
|
-
children: h && /* @__PURE__ */
|
|
654
|
+
children: h && /* @__PURE__ */ N(z, {
|
|
655
655
|
style: G.checkmark,
|
|
656
656
|
children: "✓"
|
|
657
657
|
})
|
|
658
|
-
}), /* @__PURE__ */
|
|
658
|
+
}), /* @__PURE__ */ N(z, {
|
|
659
659
|
style: [G.optionLabel, { color: u.textSecondary }],
|
|
660
660
|
children: c || a.data.name
|
|
661
661
|
})]
|
|
662
662
|
}),
|
|
663
|
-
s && /* @__PURE__ */
|
|
663
|
+
s && /* @__PURE__ */ N(z, {
|
|
664
664
|
style: [G.error, { color: u.error }],
|
|
665
665
|
children: s
|
|
666
666
|
}),
|
|
667
|
-
l && !s && /* @__PURE__ */
|
|
667
|
+
l && !s && /* @__PURE__ */ N(z, {
|
|
668
668
|
style: [G.helperText, { color: u.textMuted }],
|
|
669
669
|
children: l
|
|
670
670
|
})
|
|
671
671
|
]
|
|
672
672
|
});
|
|
673
|
-
}, G =
|
|
673
|
+
}, G = R.create({
|
|
674
674
|
checkbox: {
|
|
675
675
|
alignItems: "center",
|
|
676
676
|
borderRadius: 4,
|
|
@@ -717,14 +717,14 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
717
717
|
optionLabel: { fontSize: 14 },
|
|
718
718
|
optionTextContainer: { flex: 1 }
|
|
719
719
|
}), _e = ({ field: e, extra: t }) => {
|
|
720
|
-
let [n, r] =
|
|
720
|
+
let [n, r] = M(!1), { value: a, placeholder: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = p(), m = i(), h = a ? new Date(a) : void 0, { year: g, month: _, today: v } = A(() => {
|
|
721
721
|
let e = h || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
|
|
722
722
|
return r.setHours(0, 0, 0, 0), {
|
|
723
723
|
month: n,
|
|
724
724
|
today: r,
|
|
725
725
|
year: t
|
|
726
726
|
};
|
|
727
|
-
}, [h]), [y, b] =
|
|
727
|
+
}, [h]), [y, b] = M(g), [x, S] = M(_), C = [
|
|
728
728
|
"January",
|
|
729
729
|
"February",
|
|
730
730
|
"March",
|
|
@@ -737,7 +737,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
737
737
|
"October",
|
|
738
738
|
"November",
|
|
739
739
|
"December"
|
|
740
|
-
], w =
|
|
740
|
+
], w = A(() => {
|
|
741
741
|
let e = new Date(y, x, 1).getDay(), t = new Date(y, x + 1, 0).getDate(), n = new Date(y, x, 0).getDate(), r = [];
|
|
742
742
|
for (let t = e - 1; t >= 0; t--) r.push({
|
|
743
743
|
date: new Date(y, x - 1, n - t),
|
|
@@ -756,7 +756,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
756
756
|
isCurrentMonth: !1
|
|
757
757
|
});
|
|
758
758
|
return r;
|
|
759
|
-
}, [y, x]), T =
|
|
759
|
+
}, [y, x]), T = te((e) => {
|
|
760
760
|
s.data.disablePast && e < v || (c(e.toISOString()), r(!1));
|
|
761
761
|
}, [
|
|
762
762
|
s.data.disablePast,
|
|
@@ -766,18 +766,18 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
766
766
|
x === 0 ? (S(11), b(y - 1)) : S(x - 1);
|
|
767
767
|
}, D = () => {
|
|
768
768
|
x === 11 ? (S(0), b(y + 1)) : S(x + 1);
|
|
769
|
-
},
|
|
770
|
-
return /* @__PURE__ */
|
|
769
|
+
}, ee = () => h ? h.toLocaleDateString() : o || m("renderer.defaultInputs.selectDate"), O = (e) => s.data.disablePast ? e < v : !1, k = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
|
|
770
|
+
return /* @__PURE__ */ P(H, {
|
|
771
771
|
style: K.container,
|
|
772
772
|
children: [
|
|
773
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ P(z, {
|
|
774
774
|
style: [K.label, { color: f.textSecondary }],
|
|
775
|
-
children: [u || s.data.name, s.data.required && /* @__PURE__ */
|
|
775
|
+
children: [u || s.data.name, s.data.required && /* @__PURE__ */ N(z, {
|
|
776
776
|
style: { color: f.error },
|
|
777
777
|
children: "*"
|
|
778
778
|
})]
|
|
779
779
|
}),
|
|
780
|
-
/* @__PURE__ */
|
|
780
|
+
/* @__PURE__ */ P(V, {
|
|
781
781
|
style: [
|
|
782
782
|
K.trigger,
|
|
783
783
|
{
|
|
@@ -788,58 +788,58 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
788
788
|
],
|
|
789
789
|
onPress: () => r(!0),
|
|
790
790
|
activeOpacity: .7,
|
|
791
|
-
children: [/* @__PURE__ */
|
|
791
|
+
children: [/* @__PURE__ */ N(z, {
|
|
792
792
|
style: [
|
|
793
793
|
K.triggerText,
|
|
794
794
|
{ color: f.text },
|
|
795
795
|
!a && { color: f.textMuted }
|
|
796
796
|
],
|
|
797
797
|
numberOfLines: 1,
|
|
798
|
-
children:
|
|
799
|
-
}), /* @__PURE__ */
|
|
798
|
+
children: ee()
|
|
799
|
+
}), /* @__PURE__ */ N(z, {
|
|
800
800
|
style: K.icon,
|
|
801
801
|
children: "📅"
|
|
802
802
|
})]
|
|
803
803
|
}),
|
|
804
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ N(oe, {
|
|
805
805
|
visible: n,
|
|
806
806
|
transparent: !0,
|
|
807
807
|
animationType: "fade",
|
|
808
808
|
onRequestClose: () => r(!1),
|
|
809
|
-
children: /* @__PURE__ */
|
|
809
|
+
children: /* @__PURE__ */ N(V, {
|
|
810
810
|
style: K.modalOverlay,
|
|
811
811
|
activeOpacity: 1,
|
|
812
812
|
onPress: () => r(!1),
|
|
813
|
-
children: /* @__PURE__ */
|
|
813
|
+
children: /* @__PURE__ */ P(V, {
|
|
814
814
|
style: [K.modalContent, { backgroundColor: f.card }],
|
|
815
815
|
activeOpacity: 1,
|
|
816
816
|
onPress: () => {},
|
|
817
817
|
children: [
|
|
818
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ P(H, {
|
|
819
819
|
style: [K.modalHeader, { borderBottomColor: f.separator }],
|
|
820
|
-
children: [/* @__PURE__ */
|
|
820
|
+
children: [/* @__PURE__ */ N(z, {
|
|
821
821
|
style: [K.modalTitle, { color: f.text }],
|
|
822
822
|
children: u || s.data.name
|
|
823
|
-
}), /* @__PURE__ */
|
|
823
|
+
}), /* @__PURE__ */ N(V, {
|
|
824
824
|
onPress: () => r(!1),
|
|
825
|
-
children: /* @__PURE__ */
|
|
825
|
+
children: /* @__PURE__ */ N(z, {
|
|
826
826
|
style: [K.closeButton, { color: f.textMuted }],
|
|
827
827
|
children: "✕"
|
|
828
828
|
})
|
|
829
829
|
})]
|
|
830
830
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
831
|
+
/* @__PURE__ */ P(H, {
|
|
832
832
|
style: K.calendarHeader,
|
|
833
833
|
children: [
|
|
834
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ N(V, {
|
|
835
835
|
onPress: E,
|
|
836
836
|
style: K.navButton,
|
|
837
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ N(z, {
|
|
838
838
|
style: [K.navButtonText, { color: f.primary }],
|
|
839
839
|
children: "‹"
|
|
840
840
|
})
|
|
841
841
|
}),
|
|
842
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ P(z, {
|
|
843
843
|
style: [K.monthYear, { color: f.text }],
|
|
844
844
|
children: [
|
|
845
845
|
C[x],
|
|
@@ -847,17 +847,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
847
847
|
y
|
|
848
848
|
]
|
|
849
849
|
}),
|
|
850
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ N(V, {
|
|
851
851
|
onPress: D,
|
|
852
852
|
style: K.navButton,
|
|
853
|
-
children: /* @__PURE__ */
|
|
853
|
+
children: /* @__PURE__ */ N(z, {
|
|
854
854
|
style: [K.navButtonText, { color: f.primary }],
|
|
855
855
|
children: "›"
|
|
856
856
|
})
|
|
857
857
|
})
|
|
858
858
|
]
|
|
859
859
|
}),
|
|
860
|
-
/* @__PURE__ */
|
|
860
|
+
/* @__PURE__ */ N(H, {
|
|
861
861
|
style: K.weekDays,
|
|
862
862
|
children: [
|
|
863
863
|
"Sun",
|
|
@@ -867,12 +867,12 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
867
867
|
"Thu",
|
|
868
868
|
"Fri",
|
|
869
869
|
"Sat"
|
|
870
|
-
].map((e) => /* @__PURE__ */
|
|
870
|
+
].map((e) => /* @__PURE__ */ N(z, {
|
|
871
871
|
style: [K.weekDay, { color: f.textMuted }],
|
|
872
872
|
children: e
|
|
873
873
|
}, e))
|
|
874
874
|
}),
|
|
875
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ N(ae, {
|
|
876
876
|
data: w,
|
|
877
877
|
keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
|
|
878
878
|
numColumns: 7,
|
|
@@ -880,8 +880,8 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
880
880
|
style: K.calendar,
|
|
881
881
|
contentContainerStyle: K.calendarContent,
|
|
882
882
|
renderItem: ({ item: e }) => {
|
|
883
|
-
let t =
|
|
884
|
-
return /* @__PURE__ */
|
|
883
|
+
let t = O(e.date), n = k(e.date);
|
|
884
|
+
return /* @__PURE__ */ N(V, {
|
|
885
885
|
style: [
|
|
886
886
|
K.dayCell,
|
|
887
887
|
!e.isCurrentMonth && K.dayCellOtherMonth,
|
|
@@ -894,7 +894,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
894
894
|
onPress: () => T(e.date),
|
|
895
895
|
disabled: t,
|
|
896
896
|
activeOpacity: .7,
|
|
897
|
-
children: /* @__PURE__ */
|
|
897
|
+
children: /* @__PURE__ */ N(z, {
|
|
898
898
|
style: [
|
|
899
899
|
K.dayText,
|
|
900
900
|
{ color: f.text },
|
|
@@ -914,17 +914,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
914
914
|
})
|
|
915
915
|
})
|
|
916
916
|
}),
|
|
917
|
-
l && /* @__PURE__ */
|
|
917
|
+
l && /* @__PURE__ */ N(z, {
|
|
918
918
|
style: [K.error, { color: f.error }],
|
|
919
919
|
children: l
|
|
920
920
|
}),
|
|
921
|
-
d && !l && /* @__PURE__ */
|
|
921
|
+
d && !l && /* @__PURE__ */ N(z, {
|
|
922
922
|
style: [K.helperText, { color: f.textMuted }],
|
|
923
923
|
children: d
|
|
924
924
|
})
|
|
925
925
|
]
|
|
926
926
|
});
|
|
927
|
-
}, K =
|
|
927
|
+
}, K = R.create({
|
|
928
928
|
calendar: {
|
|
929
929
|
flexGrow: 0,
|
|
930
930
|
flexShrink: 1
|
|
@@ -1025,14 +1025,14 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1025
1025
|
marginBottom: 8
|
|
1026
1026
|
}
|
|
1027
1027
|
}), ve = ({ field: e, extra: t }) => {
|
|
1028
|
-
let [n, r] =
|
|
1028
|
+
let [n, r] = M(!1), [a, o] = M(!0), { value: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, m = i(), { colors: h } = p(), g = Array.isArray(s) ? s : [], _ = g[0] ? new Date(g[0]) : void 0, v = g[1] ? new Date(g[1]) : void 0, { year: y, month: b, today: x } = A(() => {
|
|
1029
1029
|
let e = _ || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
|
|
1030
1030
|
return r.setHours(0, 0, 0, 0), {
|
|
1031
1031
|
month: n,
|
|
1032
1032
|
today: r,
|
|
1033
1033
|
year: t
|
|
1034
1034
|
};
|
|
1035
|
-
}, [_]), [S, C] =
|
|
1035
|
+
}, [_]), [S, C] = M(y), [w, T] = M(b), E = [
|
|
1036
1036
|
"January",
|
|
1037
1037
|
"February",
|
|
1038
1038
|
"March",
|
|
@@ -1045,7 +1045,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1045
1045
|
"October",
|
|
1046
1046
|
"November",
|
|
1047
1047
|
"December"
|
|
1048
|
-
], D =
|
|
1048
|
+
], D = A(() => {
|
|
1049
1049
|
let e = new Date(S, w, 1).getDay(), t = new Date(S, w + 1, 0).getDate(), n = new Date(S, w, 0).getDate(), r = [];
|
|
1050
1050
|
for (let t = e - 1; t >= 0; t--) r.push({
|
|
1051
1051
|
date: new Date(S, w - 1, n - t),
|
|
@@ -1064,7 +1064,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1064
1064
|
isCurrentMonth: !1
|
|
1065
1065
|
});
|
|
1066
1066
|
return r;
|
|
1067
|
-
}, [S, w]),
|
|
1067
|
+
}, [S, w]), ee = te((e) => {
|
|
1068
1068
|
c.data.disablePast && e < x || (a ? (l([e.toISOString(), v?.toISOString()]), o(!1)) : (l(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), r(!1), o(!0)));
|
|
1069
1069
|
}, [
|
|
1070
1070
|
c.data.disablePast,
|
|
@@ -1073,26 +1073,26 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1073
1073
|
_,
|
|
1074
1074
|
v,
|
|
1075
1075
|
l
|
|
1076
|
-
]),
|
|
1076
|
+
]), O = () => {
|
|
1077
1077
|
w === 0 ? (T(11), C(S - 1)) : T(w - 1);
|
|
1078
|
-
},
|
|
1078
|
+
}, k = () => {
|
|
1079
1079
|
w === 11 ? (T(0), C(S + 1)) : T(w + 1);
|
|
1080
|
-
},
|
|
1080
|
+
}, j = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), ne = (e) => c.data.disablePast ? e < x : !1, re = (e) => _ && v ? e >= _ && e <= v : !1, ie = (e) => {
|
|
1081
1081
|
if (!(_ || v)) return !1;
|
|
1082
1082
|
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();
|
|
1083
1083
|
return t || n;
|
|
1084
1084
|
};
|
|
1085
|
-
return /* @__PURE__ */
|
|
1085
|
+
return /* @__PURE__ */ P(H, {
|
|
1086
1086
|
style: q.container,
|
|
1087
1087
|
children: [
|
|
1088
|
-
/* @__PURE__ */
|
|
1088
|
+
/* @__PURE__ */ P(z, {
|
|
1089
1089
|
style: [q.label, { color: h.textSecondary }],
|
|
1090
|
-
children: [d || c.data.name, c.data.required && /* @__PURE__ */
|
|
1090
|
+
children: [d || c.data.name, c.data.required && /* @__PURE__ */ N(z, {
|
|
1091
1091
|
style: { color: h.error },
|
|
1092
1092
|
children: "*"
|
|
1093
1093
|
})]
|
|
1094
1094
|
}),
|
|
1095
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ P(V, {
|
|
1096
1096
|
style: [
|
|
1097
1097
|
q.trigger,
|
|
1098
1098
|
{
|
|
@@ -1103,65 +1103,65 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1103
1103
|
],
|
|
1104
1104
|
onPress: () => r(!0),
|
|
1105
1105
|
activeOpacity: .7,
|
|
1106
|
-
children: [/* @__PURE__ */
|
|
1106
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1107
1107
|
style: [
|
|
1108
1108
|
q.triggerText,
|
|
1109
1109
|
{ color: h.text },
|
|
1110
1110
|
!_ && { color: h.textMuted }
|
|
1111
1111
|
],
|
|
1112
1112
|
numberOfLines: 1,
|
|
1113
|
-
children:
|
|
1114
|
-
}), /* @__PURE__ */
|
|
1113
|
+
children: j()
|
|
1114
|
+
}), /* @__PURE__ */ N(z, {
|
|
1115
1115
|
style: q.icon,
|
|
1116
1116
|
children: "📅"
|
|
1117
1117
|
})]
|
|
1118
1118
|
}),
|
|
1119
|
-
/* @__PURE__ */
|
|
1119
|
+
/* @__PURE__ */ N(oe, {
|
|
1120
1120
|
visible: n,
|
|
1121
1121
|
transparent: !0,
|
|
1122
1122
|
animationType: "fade",
|
|
1123
1123
|
onRequestClose: () => r(!1),
|
|
1124
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ N(V, {
|
|
1125
1125
|
style: q.modalOverlay,
|
|
1126
1126
|
activeOpacity: 1,
|
|
1127
1127
|
onPress: () => r(!1),
|
|
1128
|
-
children: /* @__PURE__ */
|
|
1128
|
+
children: /* @__PURE__ */ P(V, {
|
|
1129
1129
|
style: [q.modalContent, { backgroundColor: h.card }],
|
|
1130
1130
|
activeOpacity: 1,
|
|
1131
1131
|
onPress: () => {},
|
|
1132
1132
|
children: [
|
|
1133
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ P(H, {
|
|
1134
1134
|
style: [q.modalHeader, { borderBottomColor: h.separator }],
|
|
1135
|
-
children: [/* @__PURE__ */
|
|
1135
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1136
1136
|
style: [q.modalTitle, { color: h.text }],
|
|
1137
1137
|
children: d || c.data.name
|
|
1138
|
-
}), /* @__PURE__ */
|
|
1138
|
+
}), /* @__PURE__ */ N(V, {
|
|
1139
1139
|
onPress: () => r(!1),
|
|
1140
|
-
children: /* @__PURE__ */
|
|
1140
|
+
children: /* @__PURE__ */ N(z, {
|
|
1141
1141
|
style: [q.closeButton, { color: h.textMuted }],
|
|
1142
1142
|
children: "✕"
|
|
1143
1143
|
})
|
|
1144
1144
|
})]
|
|
1145
1145
|
}),
|
|
1146
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ N(H, {
|
|
1147
1147
|
style: [q.rangeIndicator, { backgroundColor: h.primaryLight }],
|
|
1148
|
-
children: /* @__PURE__ */
|
|
1148
|
+
children: /* @__PURE__ */ N(z, {
|
|
1149
1149
|
style: [q.rangeIndicatorText, { color: h.primary }],
|
|
1150
1150
|
children: m(a ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
|
|
1151
1151
|
})
|
|
1152
1152
|
}),
|
|
1153
|
-
/* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ P(H, {
|
|
1154
1154
|
style: q.calendarHeader,
|
|
1155
1155
|
children: [
|
|
1156
|
-
/* @__PURE__ */
|
|
1157
|
-
onPress:
|
|
1156
|
+
/* @__PURE__ */ N(V, {
|
|
1157
|
+
onPress: O,
|
|
1158
1158
|
style: q.navButton,
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1159
|
+
children: /* @__PURE__ */ N(z, {
|
|
1160
1160
|
style: [q.navButtonText, { color: h.primary }],
|
|
1161
1161
|
children: "‹"
|
|
1162
1162
|
})
|
|
1163
1163
|
}),
|
|
1164
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ P(z, {
|
|
1165
1165
|
style: [q.monthYear, { color: h.text }],
|
|
1166
1166
|
children: [
|
|
1167
1167
|
E[w],
|
|
@@ -1169,17 +1169,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1169
1169
|
S
|
|
1170
1170
|
]
|
|
1171
1171
|
}),
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
onPress:
|
|
1172
|
+
/* @__PURE__ */ N(V, {
|
|
1173
|
+
onPress: k,
|
|
1174
1174
|
style: q.navButton,
|
|
1175
|
-
children: /* @__PURE__ */
|
|
1175
|
+
children: /* @__PURE__ */ N(z, {
|
|
1176
1176
|
style: [q.navButtonText, { color: h.primary }],
|
|
1177
1177
|
children: "›"
|
|
1178
1178
|
})
|
|
1179
1179
|
})
|
|
1180
1180
|
]
|
|
1181
1181
|
}),
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ N(H, {
|
|
1183
1183
|
style: q.weekDays,
|
|
1184
1184
|
children: [
|
|
1185
1185
|
"Sun",
|
|
@@ -1189,12 +1189,12 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1189
1189
|
"Thu",
|
|
1190
1190
|
"Fri",
|
|
1191
1191
|
"Sat"
|
|
1192
|
-
].map((e) => /* @__PURE__ */
|
|
1192
|
+
].map((e) => /* @__PURE__ */ N(z, {
|
|
1193
1193
|
style: [q.weekDay, { color: h.textMuted }],
|
|
1194
1194
|
children: e
|
|
1195
1195
|
}, e))
|
|
1196
1196
|
}),
|
|
1197
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ N(ae, {
|
|
1198
1198
|
data: D,
|
|
1199
1199
|
keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
|
|
1200
1200
|
numColumns: 7,
|
|
@@ -1202,8 +1202,8 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1202
1202
|
style: q.calendar,
|
|
1203
1203
|
contentContainerStyle: q.calendarContent,
|
|
1204
1204
|
renderItem: ({ item: e }) => {
|
|
1205
|
-
let t =
|
|
1206
|
-
return /* @__PURE__ */
|
|
1205
|
+
let t = ne(e.date), n = re(e.date), r = ie(e.date);
|
|
1206
|
+
return /* @__PURE__ */ N(V, {
|
|
1207
1207
|
style: [
|
|
1208
1208
|
q.dayCell,
|
|
1209
1209
|
!e.isCurrentMonth && q.dayCellOtherMonth,
|
|
@@ -1214,10 +1214,10 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1214
1214
|
},
|
|
1215
1215
|
t && q.dayCellDisabled
|
|
1216
1216
|
],
|
|
1217
|
-
onPress: () =>
|
|
1217
|
+
onPress: () => ee(e.date),
|
|
1218
1218
|
disabled: t,
|
|
1219
1219
|
activeOpacity: .7,
|
|
1220
|
-
children: /* @__PURE__ */
|
|
1220
|
+
children: /* @__PURE__ */ N(z, {
|
|
1221
1221
|
style: [
|
|
1222
1222
|
q.dayText,
|
|
1223
1223
|
{ color: h.text },
|
|
@@ -1238,17 +1238,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1238
1238
|
})
|
|
1239
1239
|
})
|
|
1240
1240
|
}),
|
|
1241
|
-
u && /* @__PURE__ */
|
|
1241
|
+
u && /* @__PURE__ */ N(z, {
|
|
1242
1242
|
style: [q.error, { color: h.error }],
|
|
1243
1243
|
children: u
|
|
1244
1244
|
}),
|
|
1245
|
-
f && !u && /* @__PURE__ */
|
|
1245
|
+
f && !u && /* @__PURE__ */ N(z, {
|
|
1246
1246
|
style: [q.helperText, { color: h.textMuted }],
|
|
1247
1247
|
children: f
|
|
1248
1248
|
})
|
|
1249
1249
|
]
|
|
1250
1250
|
});
|
|
1251
|
-
}, q =
|
|
1251
|
+
}, q = R.create({
|
|
1252
1252
|
calendar: {
|
|
1253
1253
|
flexGrow: 0,
|
|
1254
1254
|
flexShrink: 1
|
|
@@ -1359,7 +1359,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1359
1359
|
marginBottom: 8
|
|
1360
1360
|
}
|
|
1361
1361
|
}), ye = ({ field: e, extra: t }) => {
|
|
1362
|
-
let [n, r] =
|
|
1362
|
+
let [n, r] = M(null), [a, o] = M(!0), { value: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: m } = p(), h = i(), g = Array.isArray(s) ? s : s ? [s] : [], _ = c.data.multiple, v = te(async () => {
|
|
1363
1363
|
if (n) try {
|
|
1364
1364
|
let e = (await n({ allowMultiSelection: _ })).map((e) => ({
|
|
1365
1365
|
data: e.uri,
|
|
@@ -1370,7 +1370,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1370
1370
|
}));
|
|
1371
1371
|
l(_ ? [...g, ...e] : e[0] || null);
|
|
1372
1372
|
} catch (e) {
|
|
1373
|
-
e.code !== "DOCUMENT_PICKER_CANCELED" &&
|
|
1373
|
+
e.code !== "DOCUMENT_PICKER_CANCELED" && ie.alert("Error", h("renderer.defaultInputs.filePickerError"));
|
|
1374
1374
|
}
|
|
1375
1375
|
}, [
|
|
1376
1376
|
n,
|
|
@@ -1378,11 +1378,11 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1378
1378
|
_,
|
|
1379
1379
|
l,
|
|
1380
1380
|
h
|
|
1381
|
-
]), y =
|
|
1381
|
+
]), y = te((e) => {
|
|
1382
1382
|
let t = g.filter((t, n) => n !== e);
|
|
1383
1383
|
l(t.length > 0 ? t : null);
|
|
1384
1384
|
}, [g, l]), b = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
1385
|
-
return
|
|
1385
|
+
return k(() => {
|
|
1386
1386
|
(async () => {
|
|
1387
1387
|
try {
|
|
1388
1388
|
let { pick: e } = await import("react-native-document-picker");
|
|
@@ -1393,47 +1393,47 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1393
1393
|
o(!1);
|
|
1394
1394
|
}
|
|
1395
1395
|
})();
|
|
1396
|
-
}, []), a ? null : n ? /* @__PURE__ */
|
|
1396
|
+
}, []), a ? null : n ? /* @__PURE__ */ P(H, {
|
|
1397
1397
|
style: J.container,
|
|
1398
1398
|
children: [
|
|
1399
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ P(z, {
|
|
1400
1400
|
style: [J.label, { color: m.textSecondary }],
|
|
1401
|
-
children: [d || c.data.name, c.data.required && /* @__PURE__ */
|
|
1401
|
+
children: [d || c.data.name, c.data.required && /* @__PURE__ */ N(z, {
|
|
1402
1402
|
style: { color: m.error },
|
|
1403
1403
|
children: "*"
|
|
1404
1404
|
})]
|
|
1405
1405
|
}),
|
|
1406
|
-
g.length > 0 && /* @__PURE__ */
|
|
1406
|
+
g.length > 0 && /* @__PURE__ */ N(H, {
|
|
1407
1407
|
style: J.filesList,
|
|
1408
|
-
children: g.map((e, t) => /* @__PURE__ */
|
|
1408
|
+
children: g.map((e, t) => /* @__PURE__ */ P(H, {
|
|
1409
1409
|
style: [J.fileItem, {
|
|
1410
1410
|
backgroundColor: m.card,
|
|
1411
1411
|
borderColor: m.separator
|
|
1412
1412
|
}],
|
|
1413
1413
|
children: [
|
|
1414
|
-
/* @__PURE__ */
|
|
1414
|
+
/* @__PURE__ */ N(H, {
|
|
1415
1415
|
style: [J.fileIcon, { backgroundColor: m.muted }],
|
|
1416
|
-
children: /* @__PURE__ */
|
|
1416
|
+
children: /* @__PURE__ */ N(z, {
|
|
1417
1417
|
style: J.fileIconText,
|
|
1418
1418
|
children: "📄"
|
|
1419
1419
|
})
|
|
1420
1420
|
}),
|
|
1421
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ P(H, {
|
|
1422
1422
|
style: J.fileInfo,
|
|
1423
|
-
children: [/* @__PURE__ */
|
|
1423
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1424
1424
|
style: [J.fileName, { color: m.text }],
|
|
1425
1425
|
numberOfLines: 1,
|
|
1426
1426
|
children: e.name
|
|
1427
|
-
}), e.size > 0 && /* @__PURE__ */
|
|
1427
|
+
}), e.size > 0 && /* @__PURE__ */ N(z, {
|
|
1428
1428
|
style: [J.fileSize, { color: m.textMuted }],
|
|
1429
1429
|
children: b(e.size)
|
|
1430
1430
|
})]
|
|
1431
1431
|
}),
|
|
1432
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ N(V, {
|
|
1433
1433
|
style: J.removeButton,
|
|
1434
1434
|
onPress: () => y(t),
|
|
1435
1435
|
activeOpacity: .7,
|
|
1436
|
-
children: /* @__PURE__ */
|
|
1436
|
+
children: /* @__PURE__ */ N(z, {
|
|
1437
1437
|
style: [J.removeButtonText, { color: m.textMuted }],
|
|
1438
1438
|
children: "✕"
|
|
1439
1439
|
})
|
|
@@ -1441,54 +1441,54 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1441
1441
|
]
|
|
1442
1442
|
}, `${e.name}-${t}`))
|
|
1443
1443
|
}),
|
|
1444
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ N(V, {
|
|
1445
1445
|
style: [J.pickButton, {
|
|
1446
1446
|
backgroundColor: m.input,
|
|
1447
1447
|
borderColor: m.border
|
|
1448
1448
|
}],
|
|
1449
1449
|
onPress: v,
|
|
1450
1450
|
activeOpacity: .7,
|
|
1451
|
-
children: /* @__PURE__ */
|
|
1451
|
+
children: /* @__PURE__ */ N(z, {
|
|
1452
1452
|
style: [J.pickButtonText, { color: m.textMuted }],
|
|
1453
1453
|
children: g.length === 0 ? h(_ ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : h(_ ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
|
|
1454
1454
|
})
|
|
1455
1455
|
}),
|
|
1456
|
-
u && /* @__PURE__ */
|
|
1456
|
+
u && /* @__PURE__ */ N(z, {
|
|
1457
1457
|
style: [J.error, { color: m.error }],
|
|
1458
1458
|
children: u
|
|
1459
1459
|
}),
|
|
1460
|
-
f && !u && /* @__PURE__ */
|
|
1460
|
+
f && !u && /* @__PURE__ */ N(z, {
|
|
1461
1461
|
style: [J.helperText, { color: m.textMuted }],
|
|
1462
1462
|
children: f
|
|
1463
1463
|
})
|
|
1464
1464
|
]
|
|
1465
|
-
}) : /* @__PURE__ */
|
|
1465
|
+
}) : /* @__PURE__ */ P(H, {
|
|
1466
1466
|
style: J.container,
|
|
1467
1467
|
children: [
|
|
1468
|
-
/* @__PURE__ */
|
|
1468
|
+
/* @__PURE__ */ P(z, {
|
|
1469
1469
|
style: [J.label, { color: m.textSecondary }],
|
|
1470
|
-
children: [d || c.data.name, c.data.required && /* @__PURE__ */
|
|
1470
|
+
children: [d || c.data.name, c.data.required && /* @__PURE__ */ N(z, {
|
|
1471
1471
|
style: { color: m.error },
|
|
1472
1472
|
children: "*"
|
|
1473
1473
|
})]
|
|
1474
1474
|
}),
|
|
1475
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ N(H, {
|
|
1476
1476
|
style: [J.unavailableContainer, {
|
|
1477
1477
|
backgroundColor: m.errorLight,
|
|
1478
1478
|
borderColor: m.error
|
|
1479
1479
|
}],
|
|
1480
|
-
children: /* @__PURE__ */
|
|
1480
|
+
children: /* @__PURE__ */ N(z, {
|
|
1481
1481
|
style: [J.unavailableText, { color: m.error }],
|
|
1482
1482
|
children: h("renderer.defaultInputs.filePickerUnavailable")
|
|
1483
1483
|
})
|
|
1484
1484
|
}),
|
|
1485
|
-
f && /* @__PURE__ */
|
|
1485
|
+
f && /* @__PURE__ */ N(z, {
|
|
1486
1486
|
style: [J.helperText, { color: m.textMuted }],
|
|
1487
1487
|
children: f
|
|
1488
1488
|
})
|
|
1489
1489
|
]
|
|
1490
1490
|
});
|
|
1491
|
-
}, J =
|
|
1491
|
+
}, J = R.create({
|
|
1492
1492
|
container: { marginBottom: 16 },
|
|
1493
1493
|
error: {
|
|
1494
1494
|
fontSize: 12,
|
|
@@ -1559,12 +1559,12 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
}), be = (e) => null, xe = ({ missing: e, children: t }) => {
|
|
1561
1561
|
let n = i(), { colors: r } = p();
|
|
1562
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ P(ne, { children: [t, e.length > 0 && /* @__PURE__ */ P(H, {
|
|
1563
1563
|
style: Se.container,
|
|
1564
|
-
children: [/* @__PURE__ */
|
|
1564
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1565
1565
|
style: [Se.title, { color: r.textMuted }],
|
|
1566
1566
|
children: n("renderer.dependencyHint.title")
|
|
1567
|
-
}), e.map((e) => /* @__PURE__ */
|
|
1567
|
+
}), e.map((e) => /* @__PURE__ */ P(z, {
|
|
1568
1568
|
style: [Se.item, { color: r.textMuted }],
|
|
1569
1569
|
children: [
|
|
1570
1570
|
"•",
|
|
@@ -1573,7 +1573,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1573
1573
|
]
|
|
1574
1574
|
}, e.id))]
|
|
1575
1575
|
})] });
|
|
1576
|
-
}, Se =
|
|
1576
|
+
}, Se = R.create({
|
|
1577
1577
|
container: {
|
|
1578
1578
|
gap: 2,
|
|
1579
1579
|
marginTop: 4
|
|
@@ -1606,17 +1606,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1606
1606
|
let i = t[r], a = i == null ? "" : String(i);
|
|
1607
1607
|
return n ? encodeURIComponent(a) : a;
|
|
1608
1608
|
}), je = ({ field: t, extra: n }) => {
|
|
1609
|
-
let [r, a] =
|
|
1610
|
-
|
|
1609
|
+
let [r, a] = M(!1), [s, l] = M(null), [u, f] = M([]), [m, h] = M(""), [g, v] = M(!1), { value: x, placeholder: S } = t, { node: C, setValue: w, error: T, label: E, helperText: D, missingDependencies: ee } = n, { formValues: O, inputNodes: ne, headers: ie, baseUrl: F } = d(), { colors: I } = p(), { httpConfig: L } = C.data, R = i(), se = j(!1), ce = j(!1), le = j(""), ue = j(L), de = j(O), fe = j(ne), U = j(ie), me = j(F), he = j(w), W = j(null), ge = j(null), G = A(() => L?.url ? Oe(L.url) : [], [L?.url]), _e = G.length > 0, K = A(() => G.map((e) => `${e}:${String(O[e] ?? "")}`).join("|"), [G, O]), ve = A(() => L?.url ? _e ? ke(L.url, O) : !0 : !1, [
|
|
1610
|
+
L?.url,
|
|
1611
1611
|
_e,
|
|
1612
|
-
|
|
1613
|
-
]), q =
|
|
1612
|
+
O
|
|
1613
|
+
]), q = te(async (t) => {
|
|
1614
1614
|
ge.current && ge.current.abort();
|
|
1615
1615
|
let n = new AbortController();
|
|
1616
1616
|
ge.current = n;
|
|
1617
1617
|
let r = ue.current, i = de.current, s = he.current;
|
|
1618
1618
|
if (!r?.url) {
|
|
1619
|
-
l(
|
|
1619
|
+
l(R("renderer.defaultHttpInput.noUrlConfigured")), ge.current = null;
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
1622
|
if (r.url && !ke(r.url, i)) {
|
|
@@ -1654,30 +1654,30 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1654
1654
|
} else s(typeof x == "string" ? x : JSON.stringify(x));
|
|
1655
1655
|
} catch (e) {
|
|
1656
1656
|
if (e instanceof Error && e.name === "AbortError") return;
|
|
1657
|
-
l(e instanceof Error ? e.message :
|
|
1657
|
+
l(e instanceof Error ? e.message : R("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
|
|
1658
1658
|
} finally {
|
|
1659
1659
|
a(!1), ge.current = null;
|
|
1660
1660
|
}
|
|
1661
|
-
}, [
|
|
1662
|
-
if (
|
|
1663
|
-
ue.current =
|
|
1661
|
+
}, [R]);
|
|
1662
|
+
if (k(() => {
|
|
1663
|
+
ue.current = L, de.current = O, fe.current = ne, U.current = ie, me.current = F, he.current = w, W.current = q;
|
|
1664
1664
|
}, [
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1665
|
+
L,
|
|
1666
|
+
O,
|
|
1667
|
+
ne,
|
|
1668
|
+
ie,
|
|
1669
|
+
F,
|
|
1670
1670
|
w,
|
|
1671
1671
|
q
|
|
1672
|
-
]),
|
|
1673
|
-
ge.current && ge.current.abort(),
|
|
1674
|
-
}, []),
|
|
1675
|
-
if (
|
|
1676
|
-
|
|
1672
|
+
]), k(() => () => {
|
|
1673
|
+
ge.current && ge.current.abort(), se.current = !1, ce.current = !1;
|
|
1674
|
+
}, []), k(() => {
|
|
1675
|
+
if (se.current) return;
|
|
1676
|
+
se.current = !0;
|
|
1677
1677
|
let e = ue.current, t = de.current, n = W.current, r = e?.url && ke(e.url, t);
|
|
1678
1678
|
e?.fetchOnMount && r && n && (n(), e.url && (le.current = Oe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
|
|
1679
|
-
}, []),
|
|
1680
|
-
if (!
|
|
1679
|
+
}, []), k(() => {
|
|
1680
|
+
if (!se.current || !_e || le.current === K || !ve) return;
|
|
1681
1681
|
let e = setTimeout(() => {
|
|
1682
1682
|
q(), le.current = K;
|
|
1683
1683
|
}, 500);
|
|
@@ -1687,124 +1687,124 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1687
1687
|
_e,
|
|
1688
1688
|
ve,
|
|
1689
1689
|
q
|
|
1690
|
-
]),
|
|
1690
|
+
]), k(() => {
|
|
1691
1691
|
if (!ce.current) {
|
|
1692
1692
|
ce.current = !0;
|
|
1693
1693
|
return;
|
|
1694
1694
|
}
|
|
1695
1695
|
let e = ue.current, t = de.current, n = W.current, r = e?.url && ke(e.url, t);
|
|
1696
1696
|
e?.fetchOnMount && r && n && (n(), e.url && (le.current = Oe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
|
|
1697
|
-
}, [
|
|
1698
|
-
body:
|
|
1699
|
-
fetchOnMount:
|
|
1700
|
-
headers:
|
|
1701
|
-
method:
|
|
1702
|
-
queryParams:
|
|
1703
|
-
responseMapping:
|
|
1704
|
-
responsePath:
|
|
1705
|
-
searchParam:
|
|
1706
|
-
sendAllFormValues:
|
|
1707
|
-
url:
|
|
1708
|
-
}), [
|
|
1709
|
-
if (!(
|
|
1697
|
+
}, [A(() => JSON.stringify({
|
|
1698
|
+
body: L?.body,
|
|
1699
|
+
fetchOnMount: L?.fetchOnMount,
|
|
1700
|
+
headers: L?.headers,
|
|
1701
|
+
method: L?.method,
|
|
1702
|
+
queryParams: L?.queryParams,
|
|
1703
|
+
responseMapping: L?.responseMapping,
|
|
1704
|
+
responsePath: L?.responsePath,
|
|
1705
|
+
searchParam: L?.searchParam,
|
|
1706
|
+
sendAllFormValues: L?.sendAllFormValues,
|
|
1707
|
+
url: L?.url
|
|
1708
|
+
}), [L])]), k(() => {
|
|
1709
|
+
if (!(L?.searchParam && m)) return;
|
|
1710
1710
|
let e = setTimeout(() => {
|
|
1711
1711
|
q(m);
|
|
1712
1712
|
}, 300);
|
|
1713
1713
|
return () => clearTimeout(e);
|
|
1714
1714
|
}, [
|
|
1715
1715
|
m,
|
|
1716
|
-
|
|
1716
|
+
L?.searchParam,
|
|
1717
1717
|
q
|
|
1718
|
-
]),
|
|
1718
|
+
]), L?.responseMapping) {
|
|
1719
1719
|
let e = Array.isArray(x) ? x[0] : x, t = u.find((t) => t.value === e);
|
|
1720
|
-
if (
|
|
1721
|
-
let n = r &&
|
|
1722
|
-
return /* @__PURE__ */
|
|
1720
|
+
if (L.searchParam) {
|
|
1721
|
+
let n = r && L?.showLoading;
|
|
1722
|
+
return /* @__PURE__ */ P(H, {
|
|
1723
1723
|
style: Y.container,
|
|
1724
1724
|
children: [
|
|
1725
|
-
/* @__PURE__ */
|
|
1726
|
-
style: [Y.label, { color:
|
|
1727
|
-
children: [E || C.data.name, C.data.required && /* @__PURE__ */
|
|
1728
|
-
style: { color:
|
|
1725
|
+
/* @__PURE__ */ P(z, {
|
|
1726
|
+
style: [Y.label, { color: I.textSecondary }],
|
|
1727
|
+
children: [E || C.data.name, C.data.required && /* @__PURE__ */ N(z, {
|
|
1728
|
+
style: { color: I.error },
|
|
1729
1729
|
children: "*"
|
|
1730
1730
|
})]
|
|
1731
1731
|
}),
|
|
1732
|
-
/* @__PURE__ */
|
|
1733
|
-
missing:
|
|
1734
|
-
children: /* @__PURE__ */
|
|
1732
|
+
/* @__PURE__ */ N(xe, {
|
|
1733
|
+
missing: ee,
|
|
1734
|
+
children: /* @__PURE__ */ P(V, {
|
|
1735
1735
|
style: [
|
|
1736
1736
|
Y.trigger,
|
|
1737
1737
|
{
|
|
1738
|
-
backgroundColor:
|
|
1739
|
-
borderColor:
|
|
1738
|
+
backgroundColor: I.input,
|
|
1739
|
+
borderColor: I.border
|
|
1740
1740
|
},
|
|
1741
|
-
T && { borderColor:
|
|
1742
|
-
|
|
1741
|
+
T && { borderColor: I.error },
|
|
1742
|
+
ee.length > 0 && { backgroundColor: I.muted }
|
|
1743
1743
|
],
|
|
1744
1744
|
onPress: () => v(!0),
|
|
1745
|
-
disabled:
|
|
1745
|
+
disabled: ee.length > 0,
|
|
1746
1746
|
activeOpacity: .7,
|
|
1747
|
-
children: [n ? /* @__PURE__ */
|
|
1747
|
+
children: [n ? /* @__PURE__ */ P(H, {
|
|
1748
1748
|
style: Y.loadingTrigger,
|
|
1749
|
-
children: [/* @__PURE__ */
|
|
1749
|
+
children: [/* @__PURE__ */ N(re, {
|
|
1750
1750
|
size: "small",
|
|
1751
|
-
color:
|
|
1752
|
-
}), /* @__PURE__ */
|
|
1753
|
-
style: [Y.triggerText, { color:
|
|
1751
|
+
color: I.primary
|
|
1752
|
+
}), /* @__PURE__ */ N(z, {
|
|
1753
|
+
style: [Y.triggerText, { color: I.textMuted }],
|
|
1754
1754
|
numberOfLines: 1,
|
|
1755
|
-
children: t?.label || S ||
|
|
1755
|
+
children: t?.label || S || R("renderer.defaultHttpInput.search")
|
|
1756
1756
|
})]
|
|
1757
|
-
}) : /* @__PURE__ */
|
|
1757
|
+
}) : /* @__PURE__ */ N(z, {
|
|
1758
1758
|
style: [
|
|
1759
1759
|
Y.triggerText,
|
|
1760
|
-
{ color:
|
|
1761
|
-
!t && { color:
|
|
1760
|
+
{ color: I.text },
|
|
1761
|
+
!t && { color: I.textMuted }
|
|
1762
1762
|
],
|
|
1763
1763
|
numberOfLines: 1,
|
|
1764
|
-
children: t?.label || S ||
|
|
1765
|
-
}), /* @__PURE__ */
|
|
1766
|
-
style: [Y.arrow, { color:
|
|
1764
|
+
children: t?.label || S || R("renderer.defaultHttpInput.search")
|
|
1765
|
+
}), /* @__PURE__ */ N(z, {
|
|
1766
|
+
style: [Y.arrow, { color: I.textMuted }],
|
|
1767
1767
|
children: "▼"
|
|
1768
1768
|
})]
|
|
1769
1769
|
})
|
|
1770
1770
|
}),
|
|
1771
|
-
/* @__PURE__ */
|
|
1771
|
+
/* @__PURE__ */ N(oe, {
|
|
1772
1772
|
visible: g,
|
|
1773
1773
|
transparent: !0,
|
|
1774
1774
|
animationType: "fade",
|
|
1775
1775
|
onRequestClose: () => v(!1),
|
|
1776
|
-
children: /* @__PURE__ */
|
|
1776
|
+
children: /* @__PURE__ */ N(V, {
|
|
1777
1777
|
style: Y.modalOverlay,
|
|
1778
1778
|
activeOpacity: 1,
|
|
1779
1779
|
onPress: () => v(!1),
|
|
1780
|
-
children: /* @__PURE__ */
|
|
1781
|
-
style: [Y.modalContent, { backgroundColor:
|
|
1780
|
+
children: /* @__PURE__ */ P(V, {
|
|
1781
|
+
style: [Y.modalContent, { backgroundColor: I.card }],
|
|
1782
1782
|
activeOpacity: 1,
|
|
1783
1783
|
onPress: () => {},
|
|
1784
1784
|
children: [
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
style: [Y.modalHeader, { borderBottomColor:
|
|
1787
|
-
children: [/* @__PURE__ */
|
|
1788
|
-
style: [Y.modalTitle, { color:
|
|
1785
|
+
/* @__PURE__ */ P(H, {
|
|
1786
|
+
style: [Y.modalHeader, { borderBottomColor: I.separator }],
|
|
1787
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1788
|
+
style: [Y.modalTitle, { color: I.text }],
|
|
1789
1789
|
children: E || C.data.name
|
|
1790
|
-
}), /* @__PURE__ */
|
|
1790
|
+
}), /* @__PURE__ */ N(V, {
|
|
1791
1791
|
onPress: () => v(!1),
|
|
1792
|
-
children: /* @__PURE__ */
|
|
1793
|
-
style: [Y.closeButton, { color:
|
|
1792
|
+
children: /* @__PURE__ */ N(z, {
|
|
1793
|
+
style: [Y.closeButton, { color: I.textMuted }],
|
|
1794
1794
|
children: "✕"
|
|
1795
1795
|
})
|
|
1796
1796
|
})]
|
|
1797
1797
|
}),
|
|
1798
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ N(H, {
|
|
1799
1799
|
style: Y.searchContainer,
|
|
1800
|
-
children: /* @__PURE__ */
|
|
1800
|
+
children: /* @__PURE__ */ N(B, {
|
|
1801
1801
|
style: [Y.searchInput, {
|
|
1802
|
-
backgroundColor:
|
|
1803
|
-
borderColor:
|
|
1804
|
-
color:
|
|
1802
|
+
backgroundColor: I.muted,
|
|
1803
|
+
borderColor: I.border,
|
|
1804
|
+
color: I.text
|
|
1805
1805
|
}],
|
|
1806
|
-
placeholder:
|
|
1807
|
-
placeholderTextColor:
|
|
1806
|
+
placeholder: R("renderer.defaultHttpInput.search"),
|
|
1807
|
+
placeholderTextColor: I.textMuted,
|
|
1808
1808
|
value: m,
|
|
1809
1809
|
onChangeText: (e) => {
|
|
1810
1810
|
h(e), l(null);
|
|
@@ -1814,51 +1814,51 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1814
1814
|
autoCorrect: !1
|
|
1815
1815
|
})
|
|
1816
1816
|
}),
|
|
1817
|
-
r ? /* @__PURE__ */
|
|
1817
|
+
r ? /* @__PURE__ */ N(H, {
|
|
1818
1818
|
style: Y.loadingContainer,
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1819
|
+
children: /* @__PURE__ */ N(re, {
|
|
1820
1820
|
size: "small",
|
|
1821
|
-
color:
|
|
1821
|
+
color: I.primary
|
|
1822
1822
|
})
|
|
1823
|
-
}) : s ? /* @__PURE__ */
|
|
1823
|
+
}) : s ? /* @__PURE__ */ P(H, {
|
|
1824
1824
|
style: Y.errorContainer,
|
|
1825
|
-
children: [/* @__PURE__ */
|
|
1826
|
-
style: [Y.errorText, { color:
|
|
1825
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1826
|
+
style: [Y.errorText, { color: I.error }],
|
|
1827
1827
|
children: s
|
|
1828
|
-
}), /* @__PURE__ */
|
|
1828
|
+
}), /* @__PURE__ */ N(V, {
|
|
1829
1829
|
onPress: () => q(m),
|
|
1830
1830
|
style: Y.retryButton,
|
|
1831
|
-
children: /* @__PURE__ */
|
|
1832
|
-
style: [Y.retryButtonText, { color:
|
|
1833
|
-
children:
|
|
1831
|
+
children: /* @__PURE__ */ N(z, {
|
|
1832
|
+
style: [Y.retryButtonText, { color: I.primary }],
|
|
1833
|
+
children: R("renderer.defaultHttpInput.retry")
|
|
1834
1834
|
})
|
|
1835
1835
|
})]
|
|
1836
|
-
}) : /* @__PURE__ */
|
|
1836
|
+
}) : /* @__PURE__ */ N(ae, {
|
|
1837
1837
|
data: u,
|
|
1838
1838
|
keyExtractor: (e) => e.value,
|
|
1839
1839
|
style: Y.optionsList,
|
|
1840
1840
|
contentContainerStyle: Y.optionsListContent,
|
|
1841
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
1841
|
+
ListEmptyComponent: /* @__PURE__ */ N(H, {
|
|
1842
1842
|
style: Y.emptyContainer,
|
|
1843
|
-
children: /* @__PURE__ */
|
|
1844
|
-
style: [Y.emptyText, { color:
|
|
1845
|
-
children:
|
|
1843
|
+
children: /* @__PURE__ */ N(z, {
|
|
1844
|
+
style: [Y.emptyText, { color: I.textMuted }],
|
|
1845
|
+
children: R("renderer.defaultHttpInput.noResults")
|
|
1846
1846
|
})
|
|
1847
1847
|
}),
|
|
1848
1848
|
renderItem: ({ item: t }) => {
|
|
1849
1849
|
let n = t.value === e;
|
|
1850
|
-
return /* @__PURE__ */
|
|
1851
|
-
style: [Y.option, n && { backgroundColor:
|
|
1850
|
+
return /* @__PURE__ */ P(V, {
|
|
1851
|
+
style: [Y.option, n && { backgroundColor: I.primaryLight }],
|
|
1852
1852
|
onPress: () => {
|
|
1853
1853
|
w(t.value), v(!1);
|
|
1854
1854
|
},
|
|
1855
1855
|
activeOpacity: .7,
|
|
1856
|
-
children: [/* @__PURE__ */
|
|
1856
|
+
children: [/* @__PURE__ */ N(pe, {
|
|
1857
1857
|
label: t.label,
|
|
1858
1858
|
description: t.description,
|
|
1859
1859
|
image: t.image
|
|
1860
|
-
}), n && /* @__PURE__ */
|
|
1861
|
-
style: [Y.checkmark, { color:
|
|
1860
|
+
}), n && /* @__PURE__ */ N(z, {
|
|
1861
|
+
style: [Y.checkmark, { color: I.primary }],
|
|
1862
1862
|
children: "✓"
|
|
1863
1863
|
})]
|
|
1864
1864
|
});
|
|
@@ -1868,113 +1868,113 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1868
1868
|
})
|
|
1869
1869
|
})
|
|
1870
1870
|
}),
|
|
1871
|
-
T && /* @__PURE__ */
|
|
1872
|
-
style: [Y.error, { color:
|
|
1871
|
+
T && /* @__PURE__ */ N(z, {
|
|
1872
|
+
style: [Y.error, { color: I.error }],
|
|
1873
1873
|
children: T
|
|
1874
1874
|
}),
|
|
1875
|
-
D && !T && /* @__PURE__ */
|
|
1876
|
-
style: [Y.helperText, { color:
|
|
1875
|
+
D && !T && /* @__PURE__ */ N(z, {
|
|
1876
|
+
style: [Y.helperText, { color: I.textMuted }],
|
|
1877
1877
|
children: D
|
|
1878
1878
|
})
|
|
1879
1879
|
]
|
|
1880
1880
|
});
|
|
1881
1881
|
}
|
|
1882
|
-
let n = r &&
|
|
1883
|
-
return /* @__PURE__ */
|
|
1882
|
+
let n = r && L?.showLoading, i = ee.length === 0 && u.length === 0 && !n ? s ?? R("renderer.defaultHttpInput.noDataAvailable") : void 0;
|
|
1883
|
+
return /* @__PURE__ */ P(H, {
|
|
1884
1884
|
style: Y.container,
|
|
1885
1885
|
children: [
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
style: [Y.label, { color:
|
|
1888
|
-
children: [E || C.data.name, C.data.required && /* @__PURE__ */
|
|
1889
|
-
style: { color:
|
|
1886
|
+
/* @__PURE__ */ P(z, {
|
|
1887
|
+
style: [Y.label, { color: I.textSecondary }],
|
|
1888
|
+
children: [E || C.data.name, C.data.required && /* @__PURE__ */ N(z, {
|
|
1889
|
+
style: { color: I.error },
|
|
1890
1890
|
children: "*"
|
|
1891
1891
|
})]
|
|
1892
1892
|
}),
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
missing:
|
|
1895
|
-
children: /* @__PURE__ */
|
|
1893
|
+
/* @__PURE__ */ N(xe, {
|
|
1894
|
+
missing: ee,
|
|
1895
|
+
children: /* @__PURE__ */ P(V, {
|
|
1896
1896
|
style: [
|
|
1897
1897
|
Y.trigger,
|
|
1898
1898
|
{
|
|
1899
|
-
backgroundColor:
|
|
1900
|
-
borderColor:
|
|
1899
|
+
backgroundColor: I.input,
|
|
1900
|
+
borderColor: I.border
|
|
1901
1901
|
},
|
|
1902
|
-
T && { borderColor:
|
|
1903
|
-
(n || u.length === 0) && { backgroundColor:
|
|
1902
|
+
T && { borderColor: I.error },
|
|
1903
|
+
(n || u.length === 0) && { backgroundColor: I.muted }
|
|
1904
1904
|
],
|
|
1905
1905
|
onPress: () => v(!0),
|
|
1906
1906
|
disabled: n || u.length === 0,
|
|
1907
1907
|
activeOpacity: .7,
|
|
1908
1908
|
children: [
|
|
1909
|
-
n && /* @__PURE__ */
|
|
1909
|
+
n && /* @__PURE__ */ N(re, {
|
|
1910
1910
|
size: "small",
|
|
1911
|
-
color:
|
|
1911
|
+
color: I.primary,
|
|
1912
1912
|
style: Y.triggerLoader
|
|
1913
1913
|
}),
|
|
1914
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ N(z, {
|
|
1915
1915
|
style: [
|
|
1916
1916
|
Y.triggerText,
|
|
1917
|
-
{ color:
|
|
1918
|
-
!t && { color:
|
|
1917
|
+
{ color: I.text },
|
|
1918
|
+
!t && { color: I.textMuted }
|
|
1919
1919
|
],
|
|
1920
1920
|
numberOfLines: 1,
|
|
1921
|
-
children: t?.label || S ||
|
|
1921
|
+
children: t?.label || S || R("renderer.defaultHttpInput.selectOption")
|
|
1922
1922
|
}),
|
|
1923
|
-
/* @__PURE__ */
|
|
1924
|
-
style: [Y.arrow, { color:
|
|
1923
|
+
/* @__PURE__ */ N(z, {
|
|
1924
|
+
style: [Y.arrow, { color: I.textMuted }],
|
|
1925
1925
|
children: "▼"
|
|
1926
1926
|
})
|
|
1927
1927
|
]
|
|
1928
1928
|
})
|
|
1929
1929
|
}),
|
|
1930
|
-
i && /* @__PURE__ */
|
|
1931
|
-
style: [Y.disabledMessage, { color:
|
|
1930
|
+
i && /* @__PURE__ */ N(z, {
|
|
1931
|
+
style: [Y.disabledMessage, { color: I.error }],
|
|
1932
1932
|
children: i
|
|
1933
1933
|
}),
|
|
1934
|
-
/* @__PURE__ */
|
|
1934
|
+
/* @__PURE__ */ N(oe, {
|
|
1935
1935
|
visible: g,
|
|
1936
1936
|
transparent: !0,
|
|
1937
1937
|
animationType: "fade",
|
|
1938
1938
|
onRequestClose: () => v(!1),
|
|
1939
|
-
children: /* @__PURE__ */
|
|
1939
|
+
children: /* @__PURE__ */ N(V, {
|
|
1940
1940
|
style: Y.modalOverlay,
|
|
1941
1941
|
activeOpacity: 1,
|
|
1942
1942
|
onPress: () => v(!1),
|
|
1943
|
-
children: /* @__PURE__ */
|
|
1944
|
-
style: [Y.modalContent, { backgroundColor:
|
|
1943
|
+
children: /* @__PURE__ */ P(V, {
|
|
1944
|
+
style: [Y.modalContent, { backgroundColor: I.card }],
|
|
1945
1945
|
activeOpacity: 1,
|
|
1946
1946
|
onPress: () => {},
|
|
1947
|
-
children: [/* @__PURE__ */
|
|
1948
|
-
style: [Y.modalHeader, { borderBottomColor:
|
|
1949
|
-
children: [/* @__PURE__ */
|
|
1950
|
-
style: [Y.modalTitle, { color:
|
|
1947
|
+
children: [/* @__PURE__ */ P(H, {
|
|
1948
|
+
style: [Y.modalHeader, { borderBottomColor: I.separator }],
|
|
1949
|
+
children: [/* @__PURE__ */ N(z, {
|
|
1950
|
+
style: [Y.modalTitle, { color: I.text }],
|
|
1951
1951
|
children: E || C.data.name
|
|
1952
|
-
}), /* @__PURE__ */
|
|
1952
|
+
}), /* @__PURE__ */ N(V, {
|
|
1953
1953
|
onPress: () => v(!1),
|
|
1954
|
-
children: /* @__PURE__ */
|
|
1955
|
-
style: [Y.closeButton, { color:
|
|
1954
|
+
children: /* @__PURE__ */ N(z, {
|
|
1955
|
+
style: [Y.closeButton, { color: I.textMuted }],
|
|
1956
1956
|
children: "✕"
|
|
1957
1957
|
})
|
|
1958
1958
|
})]
|
|
1959
|
-
}), /* @__PURE__ */
|
|
1959
|
+
}), /* @__PURE__ */ N(ae, {
|
|
1960
1960
|
data: u,
|
|
1961
1961
|
keyExtractor: (e) => e.value,
|
|
1962
1962
|
style: Y.optionsList,
|
|
1963
1963
|
contentContainerStyle: Y.optionsListContent,
|
|
1964
1964
|
renderItem: ({ item: t }) => {
|
|
1965
1965
|
let n = t.value === e;
|
|
1966
|
-
return /* @__PURE__ */
|
|
1967
|
-
style: [Y.option, n && { backgroundColor:
|
|
1966
|
+
return /* @__PURE__ */ P(V, {
|
|
1967
|
+
style: [Y.option, n && { backgroundColor: I.primaryLight }],
|
|
1968
1968
|
onPress: () => {
|
|
1969
1969
|
w(t.value), v(!1);
|
|
1970
1970
|
},
|
|
1971
1971
|
activeOpacity: .7,
|
|
1972
|
-
children: [/* @__PURE__ */
|
|
1972
|
+
children: [/* @__PURE__ */ N(pe, {
|
|
1973
1973
|
label: t.label,
|
|
1974
1974
|
description: t.description,
|
|
1975
1975
|
image: t.image
|
|
1976
|
-
}), n && /* @__PURE__ */
|
|
1977
|
-
style: [Y.checkmark, { color:
|
|
1976
|
+
}), n && /* @__PURE__ */ N(z, {
|
|
1977
|
+
style: [Y.checkmark, { color: I.primary }],
|
|
1978
1978
|
children: "✓"
|
|
1979
1979
|
})]
|
|
1980
1980
|
});
|
|
@@ -1983,47 +1983,47 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
1983
1983
|
})
|
|
1984
1984
|
})
|
|
1985
1985
|
}),
|
|
1986
|
-
T && /* @__PURE__ */
|
|
1987
|
-
style: [Y.error, { color:
|
|
1986
|
+
T && /* @__PURE__ */ N(z, {
|
|
1987
|
+
style: [Y.error, { color: I.error }],
|
|
1988
1988
|
children: T
|
|
1989
1989
|
}),
|
|
1990
|
-
D && !T && /* @__PURE__ */
|
|
1991
|
-
style: [Y.helperText, { color:
|
|
1990
|
+
D && !T && /* @__PURE__ */ N(z, {
|
|
1991
|
+
style: [Y.helperText, { color: I.textMuted }],
|
|
1992
1992
|
children: D
|
|
1993
1993
|
})
|
|
1994
1994
|
]
|
|
1995
1995
|
});
|
|
1996
1996
|
}
|
|
1997
|
-
return /* @__PURE__ */
|
|
1997
|
+
return /* @__PURE__ */ P(H, {
|
|
1998
1998
|
style: Y.container,
|
|
1999
1999
|
children: [
|
|
2000
|
-
/* @__PURE__ */
|
|
2001
|
-
style: [Y.label, { color:
|
|
2002
|
-
children: [E || C.data.name, C.data.required && /* @__PURE__ */
|
|
2003
|
-
style: { color:
|
|
2000
|
+
/* @__PURE__ */ P(z, {
|
|
2001
|
+
style: [Y.label, { color: I.textSecondary }],
|
|
2002
|
+
children: [E || C.data.name, C.data.required && /* @__PURE__ */ N(z, {
|
|
2003
|
+
style: { color: I.error },
|
|
2004
2004
|
children: "*"
|
|
2005
2005
|
})]
|
|
2006
2006
|
}),
|
|
2007
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ N(B, {
|
|
2008
2008
|
style: [Y.input, {
|
|
2009
|
-
backgroundColor:
|
|
2010
|
-
borderColor:
|
|
2011
|
-
color:
|
|
2009
|
+
backgroundColor: I.muted,
|
|
2010
|
+
borderColor: I.border,
|
|
2011
|
+
color: I.textMuted
|
|
2012
2012
|
}],
|
|
2013
2013
|
value: typeof x == "string" ? x : JSON.stringify(x),
|
|
2014
2014
|
editable: !1
|
|
2015
2015
|
}),
|
|
2016
|
-
T && /* @__PURE__ */
|
|
2017
|
-
style: [Y.error, { color:
|
|
2016
|
+
T && /* @__PURE__ */ N(z, {
|
|
2017
|
+
style: [Y.error, { color: I.error }],
|
|
2018
2018
|
children: T
|
|
2019
2019
|
}),
|
|
2020
|
-
D && !T && /* @__PURE__ */
|
|
2021
|
-
style: [Y.helperText, { color:
|
|
2020
|
+
D && !T && /* @__PURE__ */ N(z, {
|
|
2021
|
+
style: [Y.helperText, { color: I.textMuted }],
|
|
2022
2022
|
children: D
|
|
2023
2023
|
})
|
|
2024
2024
|
]
|
|
2025
2025
|
});
|
|
2026
|
-
}, Y =
|
|
2026
|
+
}, Y = R.create({
|
|
2027
2027
|
arrow: { fontSize: 12 },
|
|
2028
2028
|
checkmark: {
|
|
2029
2029
|
fontSize: 18,
|
|
@@ -2146,20 +2146,20 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2146
2146
|
fontSize: 14
|
|
2147
2147
|
}
|
|
2148
2148
|
}), Me = ({ field: e, extra: t }) => {
|
|
2149
|
-
let { value: n, placeholder: r, name: i } = e, [a, o] =
|
|
2150
|
-
return
|
|
2149
|
+
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 } = p();
|
|
2150
|
+
return k(() => {
|
|
2151
2151
|
o(n?.toString() ?? "");
|
|
2152
|
-
}, [n]), /* @__PURE__ */
|
|
2152
|
+
}, [n]), /* @__PURE__ */ P(H, {
|
|
2153
2153
|
style: Ne.container,
|
|
2154
2154
|
children: [
|
|
2155
|
-
/* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ P(z, {
|
|
2156
2156
|
style: [Ne.label, { color: f.textSecondary }],
|
|
2157
|
-
children: [u || s.data.name, s.data.required && /* @__PURE__ */
|
|
2157
|
+
children: [u || s.data.name, s.data.required && /* @__PURE__ */ N(z, {
|
|
2158
2158
|
style: { color: f.error },
|
|
2159
2159
|
children: "*"
|
|
2160
2160
|
})]
|
|
2161
2161
|
}),
|
|
2162
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ N(B, {
|
|
2163
2163
|
style: [
|
|
2164
2164
|
Ne.input,
|
|
2165
2165
|
{
|
|
@@ -2183,17 +2183,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2183
2183
|
keyboardType: "numeric",
|
|
2184
2184
|
accessibilityLabel: i
|
|
2185
2185
|
}),
|
|
2186
|
-
l && /* @__PURE__ */
|
|
2186
|
+
l && /* @__PURE__ */ N(z, {
|
|
2187
2187
|
style: [Ne.error, { color: f.error }],
|
|
2188
2188
|
children: l
|
|
2189
2189
|
}),
|
|
2190
|
-
d && !l && /* @__PURE__ */
|
|
2190
|
+
d && !l && /* @__PURE__ */ N(z, {
|
|
2191
2191
|
style: [Ne.helperText, { color: f.textMuted }],
|
|
2192
2192
|
children: d
|
|
2193
2193
|
})
|
|
2194
2194
|
]
|
|
2195
2195
|
});
|
|
2196
|
-
}, Ne =
|
|
2196
|
+
}, Ne = R.create({
|
|
2197
2197
|
container: { marginBottom: 16 },
|
|
2198
2198
|
error: {
|
|
2199
2199
|
fontSize: 12,
|
|
@@ -2216,20 +2216,20 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2216
2216
|
marginBottom: 8
|
|
2217
2217
|
}
|
|
2218
2218
|
}), Pe = ({ field: e, extra: t }) => {
|
|
2219
|
-
let [n, r] =
|
|
2220
|
-
return /* @__PURE__ */
|
|
2219
|
+
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 } = p();
|
|
2220
|
+
return /* @__PURE__ */ P(H, {
|
|
2221
2221
|
style: Fe.container,
|
|
2222
2222
|
children: [
|
|
2223
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ P(z, {
|
|
2224
2224
|
style: [Fe.label, { color: f.textSecondary }],
|
|
2225
|
-
children: [u || s.data.name, s.data.required && /* @__PURE__ */
|
|
2225
|
+
children: [u || s.data.name, s.data.required && /* @__PURE__ */ N(z, {
|
|
2226
2226
|
style: { color: f.error },
|
|
2227
2227
|
children: "*"
|
|
2228
2228
|
})]
|
|
2229
2229
|
}),
|
|
2230
|
-
/* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ P(H, {
|
|
2231
2231
|
style: Fe.inputWrapper,
|
|
2232
|
-
children: [/* @__PURE__ */
|
|
2232
|
+
children: [/* @__PURE__ */ N(B, {
|
|
2233
2233
|
style: [
|
|
2234
2234
|
Fe.input,
|
|
2235
2235
|
{
|
|
@@ -2245,27 +2245,27 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2245
2245
|
placeholderTextColor: f.textMuted,
|
|
2246
2246
|
secureTextEntry: !n,
|
|
2247
2247
|
accessibilityLabel: o
|
|
2248
|
-
}), /* @__PURE__ */
|
|
2248
|
+
}), /* @__PURE__ */ N(V, {
|
|
2249
2249
|
style: Fe.toggleButton,
|
|
2250
2250
|
onPress: () => r(!n),
|
|
2251
2251
|
activeOpacity: .7,
|
|
2252
|
-
children: /* @__PURE__ */
|
|
2252
|
+
children: /* @__PURE__ */ N(z, {
|
|
2253
2253
|
style: [Fe.toggleText, { color: f.primary }],
|
|
2254
2254
|
children: n ? "Hide" : "Show"
|
|
2255
2255
|
})
|
|
2256
2256
|
})]
|
|
2257
2257
|
}),
|
|
2258
|
-
l && /* @__PURE__ */
|
|
2258
|
+
l && /* @__PURE__ */ N(z, {
|
|
2259
2259
|
style: [Fe.error, { color: f.error }],
|
|
2260
2260
|
children: l
|
|
2261
2261
|
}),
|
|
2262
|
-
d && !l && /* @__PURE__ */
|
|
2262
|
+
d && !l && /* @__PURE__ */ N(z, {
|
|
2263
2263
|
style: [Fe.helperText, { color: f.textMuted }],
|
|
2264
2264
|
children: d
|
|
2265
2265
|
})
|
|
2266
2266
|
]
|
|
2267
2267
|
});
|
|
2268
|
-
}, Fe =
|
|
2268
|
+
}, Fe = R.create({
|
|
2269
2269
|
container: { marginBottom: 16 },
|
|
2270
2270
|
error: {
|
|
2271
2271
|
fontSize: 12,
|
|
@@ -2307,19 +2307,19 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2307
2307
|
let { value: n } = e, { node: r, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = p(), u = i(), d = r.data.options || [], f = n || "", m = r.data.variant !== "default", h = (e) => {
|
|
2308
2308
|
a(e);
|
|
2309
2309
|
};
|
|
2310
|
-
return /* @__PURE__ */
|
|
2310
|
+
return /* @__PURE__ */ P(H, {
|
|
2311
2311
|
style: X.container,
|
|
2312
2312
|
children: [
|
|
2313
|
-
/* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ P(z, {
|
|
2314
2314
|
style: [X.label, { color: l.textSecondary }],
|
|
2315
|
-
children: [s || r.data.name, r.data.required && /* @__PURE__ */
|
|
2315
|
+
children: [s || r.data.name, r.data.required && /* @__PURE__ */ N(z, {
|
|
2316
2316
|
style: { color: l.error },
|
|
2317
2317
|
children: "*"
|
|
2318
2318
|
})]
|
|
2319
2319
|
}),
|
|
2320
2320
|
d.map((e) => {
|
|
2321
2321
|
let t = f === e.value, n = u(e.label) || e.value, r = u(e.description);
|
|
2322
|
-
return m ? /* @__PURE__ */
|
|
2322
|
+
return m ? /* @__PURE__ */ P(V, {
|
|
2323
2323
|
style: [
|
|
2324
2324
|
X.card,
|
|
2325
2325
|
{
|
|
@@ -2336,21 +2336,21 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2336
2336
|
disabled: e.disabled,
|
|
2337
2337
|
activeOpacity: .7,
|
|
2338
2338
|
children: [
|
|
2339
|
-
e.image && /* @__PURE__ */
|
|
2339
|
+
e.image && /* @__PURE__ */ N(I, {
|
|
2340
2340
|
source: { uri: e.image },
|
|
2341
2341
|
style: X.cardImage
|
|
2342
2342
|
}),
|
|
2343
|
-
/* @__PURE__ */
|
|
2343
|
+
/* @__PURE__ */ P(H, {
|
|
2344
2344
|
style: X.cardTextContainer,
|
|
2345
|
-
children: [/* @__PURE__ */
|
|
2345
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2346
2346
|
style: [X.cardLabel, { color: l.textSecondary }],
|
|
2347
2347
|
children: n
|
|
2348
|
-
}), r && /* @__PURE__ */
|
|
2348
|
+
}), r && /* @__PURE__ */ N(z, {
|
|
2349
2349
|
style: [X.cardDescription, { color: l.textMuted }],
|
|
2350
2350
|
children: r
|
|
2351
2351
|
})]
|
|
2352
2352
|
}),
|
|
2353
|
-
/* @__PURE__ */
|
|
2353
|
+
/* @__PURE__ */ N(H, {
|
|
2354
2354
|
style: [
|
|
2355
2355
|
X.radio,
|
|
2356
2356
|
X.cardRadio,
|
|
@@ -2360,16 +2360,16 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2360
2360
|
},
|
|
2361
2361
|
t && { borderColor: l.primary }
|
|
2362
2362
|
],
|
|
2363
|
-
children: t && /* @__PURE__ */
|
|
2363
|
+
children: t && /* @__PURE__ */ N(H, { style: [X.radioInner, { backgroundColor: l.primary }] })
|
|
2364
2364
|
})
|
|
2365
2365
|
]
|
|
2366
|
-
}, e.value) : /* @__PURE__ */
|
|
2366
|
+
}, e.value) : /* @__PURE__ */ P(V, {
|
|
2367
2367
|
style: X.option,
|
|
2368
2368
|
onPress: () => h(e.value),
|
|
2369
2369
|
disabled: e.disabled,
|
|
2370
2370
|
activeOpacity: .7,
|
|
2371
2371
|
children: [
|
|
2372
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ N(H, {
|
|
2373
2373
|
style: [
|
|
2374
2374
|
X.radio,
|
|
2375
2375
|
{
|
|
@@ -2378,22 +2378,22 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2378
2378
|
},
|
|
2379
2379
|
t && { borderColor: l.primary }
|
|
2380
2380
|
],
|
|
2381
|
-
children: t && /* @__PURE__ */
|
|
2381
|
+
children: t && /* @__PURE__ */ N(H, { style: [X.radioInner, { backgroundColor: l.primary }] })
|
|
2382
2382
|
}),
|
|
2383
|
-
e.image && /* @__PURE__ */
|
|
2383
|
+
e.image && /* @__PURE__ */ N(I, {
|
|
2384
2384
|
source: { uri: e.image },
|
|
2385
2385
|
style: X.image
|
|
2386
2386
|
}),
|
|
2387
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ P(H, {
|
|
2388
2388
|
style: X.optionTextContainer,
|
|
2389
|
-
children: [/* @__PURE__ */
|
|
2389
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2390
2390
|
style: [
|
|
2391
2391
|
X.optionLabel,
|
|
2392
2392
|
{ color: l.textSecondary },
|
|
2393
2393
|
e.disabled && { color: l.textMuted }
|
|
2394
2394
|
],
|
|
2395
2395
|
children: n
|
|
2396
|
-
}), r && /* @__PURE__ */
|
|
2396
|
+
}), r && /* @__PURE__ */ N(z, {
|
|
2397
2397
|
style: [X.optionDescription, { color: l.textMuted }],
|
|
2398
2398
|
children: r
|
|
2399
2399
|
})]
|
|
@@ -2401,17 +2401,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2401
2401
|
]
|
|
2402
2402
|
}, e.value);
|
|
2403
2403
|
}),
|
|
2404
|
-
o && /* @__PURE__ */
|
|
2404
|
+
o && /* @__PURE__ */ N(z, {
|
|
2405
2405
|
style: [X.error, { color: l.error }],
|
|
2406
2406
|
children: o
|
|
2407
2407
|
}),
|
|
2408
|
-
c && !o && /* @__PURE__ */
|
|
2408
|
+
c && !o && /* @__PURE__ */ N(z, {
|
|
2409
2409
|
style: [X.helperText, { color: l.textMuted }],
|
|
2410
2410
|
children: c
|
|
2411
2411
|
})
|
|
2412
2412
|
]
|
|
2413
2413
|
});
|
|
2414
|
-
}, X =
|
|
2414
|
+
}, X = R.create({
|
|
2415
2415
|
card: {
|
|
2416
2416
|
alignItems: "center",
|
|
2417
2417
|
borderRadius: 8,
|
|
@@ -2485,20 +2485,20 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2485
2485
|
width: 10
|
|
2486
2486
|
}
|
|
2487
2487
|
}), Le = ({ field: e, extra: t }) => {
|
|
2488
|
-
let [n, r] =
|
|
2488
|
+
let [n, r] = M(!1), { value: a, placeholder: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, { colors: f } = p(), m = i(), h = s.data.options || [], g = s.data.multiple, _ = Array.isArray(a) ? a : a ? [a] : [], v = (e) => {
|
|
2489
2489
|
g ? c(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (c(e), r(!1));
|
|
2490
2490
|
};
|
|
2491
|
-
return /* @__PURE__ */
|
|
2491
|
+
return /* @__PURE__ */ P(H, {
|
|
2492
2492
|
style: Z.container,
|
|
2493
2493
|
children: [
|
|
2494
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ P(z, {
|
|
2495
2495
|
style: [Z.label, { color: f.textSecondary }],
|
|
2496
|
-
children: [u || s.data.name, s.data.required && /* @__PURE__ */
|
|
2496
|
+
children: [u || s.data.name, s.data.required && /* @__PURE__ */ N(z, {
|
|
2497
2497
|
style: { color: f.error },
|
|
2498
2498
|
children: "*"
|
|
2499
2499
|
})]
|
|
2500
2500
|
}),
|
|
2501
|
-
/* @__PURE__ */
|
|
2501
|
+
/* @__PURE__ */ P(V, {
|
|
2502
2502
|
style: [
|
|
2503
2503
|
Z.trigger,
|
|
2504
2504
|
{
|
|
@@ -2509,7 +2509,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2509
2509
|
],
|
|
2510
2510
|
onPress: () => r(!0),
|
|
2511
2511
|
activeOpacity: .7,
|
|
2512
|
-
children: [/* @__PURE__ */
|
|
2512
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2513
2513
|
style: [
|
|
2514
2514
|
Z.triggerText,
|
|
2515
2515
|
{ color: f.text },
|
|
@@ -2521,62 +2521,62 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2521
2521
|
let e = h.find((e) => e.value === _[0]);
|
|
2522
2522
|
return e ? m(e.label) || e.value : o || "Select...";
|
|
2523
2523
|
})()
|
|
2524
|
-
}), /* @__PURE__ */
|
|
2524
|
+
}), /* @__PURE__ */ N(z, {
|
|
2525
2525
|
style: [Z.arrow, { color: f.textMuted }],
|
|
2526
2526
|
children: "▼"
|
|
2527
2527
|
})]
|
|
2528
2528
|
}),
|
|
2529
|
-
/* @__PURE__ */
|
|
2529
|
+
/* @__PURE__ */ N(oe, {
|
|
2530
2530
|
visible: n,
|
|
2531
2531
|
transparent: !0,
|
|
2532
2532
|
animationType: "fade",
|
|
2533
2533
|
onRequestClose: () => r(!1),
|
|
2534
|
-
children: /* @__PURE__ */
|
|
2534
|
+
children: /* @__PURE__ */ N(V, {
|
|
2535
2535
|
style: Z.modalOverlay,
|
|
2536
2536
|
activeOpacity: 1,
|
|
2537
2537
|
onPress: () => r(!1),
|
|
2538
|
-
children: /* @__PURE__ */
|
|
2538
|
+
children: /* @__PURE__ */ P(H, {
|
|
2539
2539
|
style: [Z.modalContent, { backgroundColor: f.card }],
|
|
2540
2540
|
onStartShouldSetResponder: () => !0,
|
|
2541
2541
|
children: [
|
|
2542
|
-
/* @__PURE__ */
|
|
2542
|
+
/* @__PURE__ */ P(H, {
|
|
2543
2543
|
style: [Z.modalHeader, { borderBottomColor: f.border }],
|
|
2544
|
-
children: [/* @__PURE__ */
|
|
2544
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2545
2545
|
style: [Z.modalTitle, { color: f.text }],
|
|
2546
2546
|
children: u || s.data.name
|
|
2547
|
-
}), /* @__PURE__ */
|
|
2547
|
+
}), /* @__PURE__ */ N(V, {
|
|
2548
2548
|
onPress: () => r(!1),
|
|
2549
|
-
children: /* @__PURE__ */
|
|
2549
|
+
children: /* @__PURE__ */ N(z, {
|
|
2550
2550
|
style: [Z.closeButton, { color: f.textMuted }],
|
|
2551
2551
|
children: "✕"
|
|
2552
2552
|
})
|
|
2553
2553
|
})]
|
|
2554
2554
|
}),
|
|
2555
|
-
/* @__PURE__ */
|
|
2555
|
+
/* @__PURE__ */ N(L, {
|
|
2556
2556
|
style: Z.optionsList,
|
|
2557
2557
|
children: h.map((e) => {
|
|
2558
2558
|
let t = _.includes(e.value);
|
|
2559
|
-
return /* @__PURE__ */
|
|
2559
|
+
return /* @__PURE__ */ P(V, {
|
|
2560
2560
|
style: [Z.option, t && { backgroundColor: `${f.primary}20` }],
|
|
2561
2561
|
onPress: () => v(e.value),
|
|
2562
2562
|
disabled: e.disabled,
|
|
2563
2563
|
activeOpacity: .7,
|
|
2564
|
-
children: [/* @__PURE__ */
|
|
2564
|
+
children: [/* @__PURE__ */ N(pe, {
|
|
2565
2565
|
label: m(e.label) || e.value,
|
|
2566
2566
|
description: m(e.description),
|
|
2567
2567
|
image: e.image,
|
|
2568
2568
|
disabled: e.disabled
|
|
2569
|
-
}), t && /* @__PURE__ */
|
|
2569
|
+
}), t && /* @__PURE__ */ N(z, {
|
|
2570
2570
|
style: [Z.checkmark, { color: f.primary }],
|
|
2571
2571
|
children: "✓"
|
|
2572
2572
|
})]
|
|
2573
2573
|
}, e.value);
|
|
2574
2574
|
})
|
|
2575
2575
|
}),
|
|
2576
|
-
g && /* @__PURE__ */
|
|
2576
|
+
g && /* @__PURE__ */ N(V, {
|
|
2577
2577
|
style: [Z.doneButton, { backgroundColor: f.primary }],
|
|
2578
2578
|
onPress: () => r(!1),
|
|
2579
|
-
children: /* @__PURE__ */
|
|
2579
|
+
children: /* @__PURE__ */ N(z, {
|
|
2580
2580
|
style: Z.doneButtonText,
|
|
2581
2581
|
children: "Done"
|
|
2582
2582
|
})
|
|
@@ -2585,17 +2585,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2585
2585
|
})
|
|
2586
2586
|
})
|
|
2587
2587
|
}),
|
|
2588
|
-
l && /* @__PURE__ */
|
|
2588
|
+
l && /* @__PURE__ */ N(z, {
|
|
2589
2589
|
style: [Z.error, { color: f.error }],
|
|
2590
2590
|
children: l
|
|
2591
2591
|
}),
|
|
2592
|
-
d && !l && /* @__PURE__ */
|
|
2592
|
+
d && !l && /* @__PURE__ */ N(z, {
|
|
2593
2593
|
style: [Z.helperText, { color: f.textMuted }],
|
|
2594
2594
|
children: d
|
|
2595
2595
|
})
|
|
2596
2596
|
]
|
|
2597
2597
|
});
|
|
2598
|
-
}, Z =
|
|
2598
|
+
}, Z = R.create({
|
|
2599
2599
|
arrow: { fontSize: 12 },
|
|
2600
2600
|
checkmark: {
|
|
2601
2601
|
fontSize: 18,
|
|
@@ -2678,21 +2678,21 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
}), Re = (e) => null, ze = ({ field: e, extra: t }) => {
|
|
2680
2680
|
let { value: n } = e, { node: r, setValue: i, error: a, label: o, helperText: s } = t, { colors: c } = p(), l = !!n;
|
|
2681
|
-
return /* @__PURE__ */
|
|
2681
|
+
return /* @__PURE__ */ P(H, {
|
|
2682
2682
|
style: Be.container,
|
|
2683
2683
|
children: [
|
|
2684
|
-
/* @__PURE__ */
|
|
2684
|
+
/* @__PURE__ */ P(H, {
|
|
2685
2685
|
style: Be.row,
|
|
2686
|
-
children: [/* @__PURE__ */
|
|
2686
|
+
children: [/* @__PURE__ */ N(H, {
|
|
2687
2687
|
style: Be.labelContainer,
|
|
2688
|
-
children: /* @__PURE__ */
|
|
2688
|
+
children: /* @__PURE__ */ P(z, {
|
|
2689
2689
|
style: [Be.label, { color: c.textSecondary }],
|
|
2690
|
-
children: [o || r.data.name, r.data.required && /* @__PURE__ */
|
|
2690
|
+
children: [o || r.data.name, r.data.required && /* @__PURE__ */ N(z, {
|
|
2691
2691
|
style: { color: c.error },
|
|
2692
2692
|
children: "*"
|
|
2693
2693
|
})]
|
|
2694
2694
|
})
|
|
2695
|
-
}), /* @__PURE__ */
|
|
2695
|
+
}), /* @__PURE__ */ N(se, {
|
|
2696
2696
|
trackColor: {
|
|
2697
2697
|
false: c.border,
|
|
2698
2698
|
true: `${c.primary}80`
|
|
@@ -2703,17 +2703,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2703
2703
|
value: l
|
|
2704
2704
|
})]
|
|
2705
2705
|
}),
|
|
2706
|
-
a && /* @__PURE__ */
|
|
2706
|
+
a && /* @__PURE__ */ N(z, {
|
|
2707
2707
|
style: [Be.error, { color: c.error }],
|
|
2708
2708
|
children: a
|
|
2709
2709
|
}),
|
|
2710
|
-
s && !a && /* @__PURE__ */
|
|
2710
|
+
s && !a && /* @__PURE__ */ N(z, {
|
|
2711
2711
|
style: [Be.helperText, { color: c.textMuted }],
|
|
2712
2712
|
children: s
|
|
2713
2713
|
})
|
|
2714
2714
|
]
|
|
2715
2715
|
});
|
|
2716
|
-
}, Be =
|
|
2716
|
+
}, Be = R.create({
|
|
2717
2717
|
container: { marginBottom: 16 },
|
|
2718
2718
|
error: {
|
|
2719
2719
|
fontSize: 12,
|
|
@@ -2735,17 +2735,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
}), Ve = ({ field: e, extra: t }) => {
|
|
2737
2737
|
let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = p();
|
|
2738
|
-
return /* @__PURE__ */
|
|
2738
|
+
return /* @__PURE__ */ P(H, {
|
|
2739
2739
|
style: He.container,
|
|
2740
2740
|
children: [
|
|
2741
|
-
/* @__PURE__ */
|
|
2741
|
+
/* @__PURE__ */ P(z, {
|
|
2742
2742
|
style: [He.label, { color: u.textSecondary }],
|
|
2743
|
-
children: [c || a.data.name, a.data.required && /* @__PURE__ */
|
|
2743
|
+
children: [c || a.data.name, a.data.required && /* @__PURE__ */ N(z, {
|
|
2744
2744
|
style: { color: u.error },
|
|
2745
2745
|
children: "*"
|
|
2746
2746
|
})]
|
|
2747
2747
|
}),
|
|
2748
|
-
/* @__PURE__ */
|
|
2748
|
+
/* @__PURE__ */ N(B, {
|
|
2749
2749
|
style: [
|
|
2750
2750
|
He.textarea,
|
|
2751
2751
|
{
|
|
@@ -2764,17 +2764,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2764
2764
|
textAlignVertical: "top",
|
|
2765
2765
|
accessibilityLabel: i
|
|
2766
2766
|
}),
|
|
2767
|
-
s && /* @__PURE__ */
|
|
2767
|
+
s && /* @__PURE__ */ N(z, {
|
|
2768
2768
|
style: [He.error, { color: u.error }],
|
|
2769
2769
|
children: s
|
|
2770
2770
|
}),
|
|
2771
|
-
l && !s && /* @__PURE__ */
|
|
2771
|
+
l && !s && /* @__PURE__ */ N(z, {
|
|
2772
2772
|
style: [He.helperText, { color: u.textMuted }],
|
|
2773
2773
|
children: l
|
|
2774
2774
|
})
|
|
2775
2775
|
]
|
|
2776
2776
|
});
|
|
2777
|
-
}, He =
|
|
2777
|
+
}, He = R.create({
|
|
2778
2778
|
container: { marginBottom: 16 },
|
|
2779
2779
|
error: {
|
|
2780
2780
|
fontSize: 12,
|
|
@@ -2799,17 +2799,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
}), Ue = ({ field: e, extra: t }) => {
|
|
2801
2801
|
let { value: n, placeholder: r, name: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = p();
|
|
2802
|
-
return /* @__PURE__ */
|
|
2802
|
+
return /* @__PURE__ */ P(H, {
|
|
2803
2803
|
style: We.container,
|
|
2804
2804
|
children: [
|
|
2805
|
-
/* @__PURE__ */
|
|
2805
|
+
/* @__PURE__ */ P(z, {
|
|
2806
2806
|
style: [We.label, { color: u.textSecondary }],
|
|
2807
|
-
children: [c || a.data.name, a.data.required && /* @__PURE__ */
|
|
2807
|
+
children: [c || a.data.name, a.data.required && /* @__PURE__ */ N(z, {
|
|
2808
2808
|
style: { color: u.error },
|
|
2809
2809
|
children: "*"
|
|
2810
2810
|
})]
|
|
2811
2811
|
}),
|
|
2812
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ N(B, {
|
|
2813
2813
|
style: [
|
|
2814
2814
|
We.input,
|
|
2815
2815
|
{
|
|
@@ -2825,17 +2825,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2825
2825
|
placeholderTextColor: u.textMuted,
|
|
2826
2826
|
accessibilityLabel: i
|
|
2827
2827
|
}),
|
|
2828
|
-
s && /* @__PURE__ */
|
|
2828
|
+
s && /* @__PURE__ */ N(z, {
|
|
2829
2829
|
style: [We.error, { color: u.error }],
|
|
2830
2830
|
children: s
|
|
2831
2831
|
}),
|
|
2832
|
-
l && !s && /* @__PURE__ */
|
|
2832
|
+
l && !s && /* @__PURE__ */ N(z, {
|
|
2833
2833
|
style: [We.helperText, { color: u.textMuted }],
|
|
2834
2834
|
children: l
|
|
2835
2835
|
})
|
|
2836
2836
|
]
|
|
2837
2837
|
});
|
|
2838
|
-
}, We =
|
|
2838
|
+
}, We = R.create({
|
|
2839
2839
|
container: { marginBottom: 16 },
|
|
2840
2840
|
error: {
|
|
2841
2841
|
fontSize: 12,
|
|
@@ -2858,24 +2858,24 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2858
2858
|
marginBottom: 8
|
|
2859
2859
|
}
|
|
2860
2860
|
}), Ge = ({ field: e, extra: t }) => {
|
|
2861
|
-
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] =
|
|
2861
|
+
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), [m, h] = M(!1), { node: g, setValue: _, error: v, label: y, helperText: b } = t, { colors: x } = p(), S = j(null), C = j(null), w = Array.from({ length: 24 }, (e, t) => t), T = Array.from({ length: 60 }, (e, t) => t), E = () => n || r || "Select time", D = te(() => {
|
|
2862
2862
|
_(`${String(l).padStart(2, "0")}:${String(d).padStart(2, "0")}`), h(!1);
|
|
2863
2863
|
}, [
|
|
2864
2864
|
l,
|
|
2865
2865
|
d,
|
|
2866
2866
|
_
|
|
2867
2867
|
]);
|
|
2868
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ P(H, {
|
|
2869
2869
|
style: Q.container,
|
|
2870
2870
|
children: [
|
|
2871
|
-
/* @__PURE__ */
|
|
2871
|
+
/* @__PURE__ */ P(z, {
|
|
2872
2872
|
style: [Q.label, { color: x.textSecondary }],
|
|
2873
|
-
children: [y || g.data.name, g.data.required && /* @__PURE__ */
|
|
2873
|
+
children: [y || g.data.name, g.data.required && /* @__PURE__ */ N(z, {
|
|
2874
2874
|
style: { color: x.error },
|
|
2875
2875
|
children: "*"
|
|
2876
2876
|
})]
|
|
2877
2877
|
}),
|
|
2878
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ P(V, {
|
|
2879
2879
|
style: [
|
|
2880
2880
|
Q.trigger,
|
|
2881
2881
|
{
|
|
@@ -2888,7 +2888,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2888
2888
|
u(s || 0), f(c || 0), h(!0);
|
|
2889
2889
|
},
|
|
2890
2890
|
activeOpacity: .7,
|
|
2891
|
-
children: [/* @__PURE__ */
|
|
2891
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2892
2892
|
style: [
|
|
2893
2893
|
Q.triggerText,
|
|
2894
2894
|
{ color: x.text },
|
|
@@ -2896,56 +2896,56 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2896
2896
|
],
|
|
2897
2897
|
numberOfLines: 1,
|
|
2898
2898
|
children: E()
|
|
2899
|
-
}), /* @__PURE__ */
|
|
2899
|
+
}), /* @__PURE__ */ N(z, {
|
|
2900
2900
|
style: Q.icon,
|
|
2901
2901
|
children: "🕐"
|
|
2902
2902
|
})]
|
|
2903
2903
|
}),
|
|
2904
|
-
/* @__PURE__ */
|
|
2904
|
+
/* @__PURE__ */ N(oe, {
|
|
2905
2905
|
visible: m,
|
|
2906
2906
|
transparent: !0,
|
|
2907
2907
|
animationType: "fade",
|
|
2908
2908
|
onRequestClose: () => h(!1),
|
|
2909
|
-
children: /* @__PURE__ */
|
|
2909
|
+
children: /* @__PURE__ */ N(V, {
|
|
2910
2910
|
style: Q.modalOverlay,
|
|
2911
2911
|
activeOpacity: 1,
|
|
2912
2912
|
onPress: () => h(!1),
|
|
2913
|
-
children: /* @__PURE__ */
|
|
2913
|
+
children: /* @__PURE__ */ P(V, {
|
|
2914
2914
|
style: [Q.modalContent, { backgroundColor: x.card }],
|
|
2915
2915
|
activeOpacity: 1,
|
|
2916
2916
|
onPress: () => {},
|
|
2917
2917
|
children: [
|
|
2918
|
-
/* @__PURE__ */
|
|
2918
|
+
/* @__PURE__ */ P(H, {
|
|
2919
2919
|
style: [Q.modalHeader, { borderBottomColor: x.separator }],
|
|
2920
|
-
children: [/* @__PURE__ */
|
|
2920
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2921
2921
|
style: [Q.modalTitle, { color: x.text }],
|
|
2922
2922
|
children: y || g.data.name
|
|
2923
|
-
}), /* @__PURE__ */
|
|
2923
|
+
}), /* @__PURE__ */ N(V, {
|
|
2924
2924
|
onPress: () => h(!1),
|
|
2925
|
-
children: /* @__PURE__ */
|
|
2925
|
+
children: /* @__PURE__ */ N(z, {
|
|
2926
2926
|
style: [Q.closeButton, { color: x.textMuted }],
|
|
2927
2927
|
children: "✕"
|
|
2928
2928
|
})
|
|
2929
2929
|
})]
|
|
2930
2930
|
}),
|
|
2931
|
-
/* @__PURE__ */
|
|
2931
|
+
/* @__PURE__ */ P(H, {
|
|
2932
2932
|
style: Q.pickerContainer,
|
|
2933
2933
|
children: [
|
|
2934
|
-
/* @__PURE__ */
|
|
2934
|
+
/* @__PURE__ */ P(H, {
|
|
2935
2935
|
style: Q.pickerColumn,
|
|
2936
|
-
children: [/* @__PURE__ */
|
|
2936
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2937
2937
|
style: [Q.pickerLabel, { color: x.textMuted }],
|
|
2938
2938
|
children: "Hour"
|
|
2939
|
-
}), /* @__PURE__ */
|
|
2939
|
+
}), /* @__PURE__ */ N(L, {
|
|
2940
2940
|
ref: S,
|
|
2941
2941
|
style: Q.picker,
|
|
2942
2942
|
contentContainerStyle: Q.pickerContent,
|
|
2943
2943
|
showsVerticalScrollIndicator: !1,
|
|
2944
|
-
children: w.map((e) => /* @__PURE__ */
|
|
2944
|
+
children: w.map((e) => /* @__PURE__ */ N(V, {
|
|
2945
2945
|
style: [Q.pickerItem, l === e && { backgroundColor: x.primary }],
|
|
2946
2946
|
onPress: () => u(e),
|
|
2947
2947
|
activeOpacity: .7,
|
|
2948
|
-
children: /* @__PURE__ */
|
|
2948
|
+
children: /* @__PURE__ */ N(z, {
|
|
2949
2949
|
style: [
|
|
2950
2950
|
Q.pickerItemText,
|
|
2951
2951
|
{ color: x.text },
|
|
@@ -2959,25 +2959,25 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2959
2959
|
}, e))
|
|
2960
2960
|
})]
|
|
2961
2961
|
}),
|
|
2962
|
-
/* @__PURE__ */
|
|
2962
|
+
/* @__PURE__ */ N(z, {
|
|
2963
2963
|
style: [Q.pickerSeparator, { color: x.text }],
|
|
2964
2964
|
children: ":"
|
|
2965
2965
|
}),
|
|
2966
|
-
/* @__PURE__ */
|
|
2966
|
+
/* @__PURE__ */ P(H, {
|
|
2967
2967
|
style: Q.pickerColumn,
|
|
2968
|
-
children: [/* @__PURE__ */
|
|
2968
|
+
children: [/* @__PURE__ */ N(z, {
|
|
2969
2969
|
style: [Q.pickerLabel, { color: x.textMuted }],
|
|
2970
2970
|
children: "Minute"
|
|
2971
|
-
}), /* @__PURE__ */
|
|
2971
|
+
}), /* @__PURE__ */ N(L, {
|
|
2972
2972
|
ref: C,
|
|
2973
2973
|
style: Q.picker,
|
|
2974
2974
|
contentContainerStyle: Q.pickerContent,
|
|
2975
2975
|
showsVerticalScrollIndicator: !1,
|
|
2976
|
-
children: T.map((e) => /* @__PURE__ */
|
|
2976
|
+
children: T.map((e) => /* @__PURE__ */ N(V, {
|
|
2977
2977
|
style: [Q.pickerItem, d === e && { backgroundColor: x.primary }],
|
|
2978
2978
|
onPress: () => f(e),
|
|
2979
2979
|
activeOpacity: .7,
|
|
2980
|
-
children: /* @__PURE__ */
|
|
2980
|
+
children: /* @__PURE__ */ N(z, {
|
|
2981
2981
|
style: [
|
|
2982
2982
|
Q.pickerItemText,
|
|
2983
2983
|
{ color: x.text },
|
|
@@ -2993,11 +2993,11 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
2993
2993
|
})
|
|
2994
2994
|
]
|
|
2995
2995
|
}),
|
|
2996
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ N(V, {
|
|
2997
2997
|
style: [Q.confirmButton, { backgroundColor: x.primary }],
|
|
2998
2998
|
onPress: D,
|
|
2999
2999
|
activeOpacity: .7,
|
|
3000
|
-
children: /* @__PURE__ */
|
|
3000
|
+
children: /* @__PURE__ */ N(z, {
|
|
3001
3001
|
style: [Q.confirmButtonText, { color: x.background }],
|
|
3002
3002
|
children: "Confirm"
|
|
3003
3003
|
})
|
|
@@ -3006,17 +3006,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3006
3006
|
})
|
|
3007
3007
|
})
|
|
3008
3008
|
}),
|
|
3009
|
-
v && /* @__PURE__ */
|
|
3009
|
+
v && /* @__PURE__ */ N(z, {
|
|
3010
3010
|
style: [Q.error, { color: x.error }],
|
|
3011
3011
|
children: v
|
|
3012
3012
|
}),
|
|
3013
|
-
b && !v && /* @__PURE__ */
|
|
3013
|
+
b && !v && /* @__PURE__ */ N(z, {
|
|
3014
3014
|
style: [Q.helperText, { color: x.textMuted }],
|
|
3015
3015
|
children: b
|
|
3016
3016
|
})
|
|
3017
3017
|
]
|
|
3018
3018
|
});
|
|
3019
|
-
}, Q =
|
|
3019
|
+
}, Q = R.create({
|
|
3020
3020
|
closeButton: {
|
|
3021
3021
|
fontSize: 24,
|
|
3022
3022
|
fontWeight: "300"
|
|
@@ -3108,30 +3108,30 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3108
3108
|
fontSize: 14
|
|
3109
3109
|
}
|
|
3110
3110
|
}), Ke = ({ field: e, extra: t }) => {
|
|
3111
|
-
let [n, r] =
|
|
3112
|
-
let e = `${String(
|
|
3113
|
-
a ? (l([e, v]), o(!1),
|
|
3111
|
+
let [n, r] = M(!1), [a, o] = M(!0), { value: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: m } = p(), h = i(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", y = _.split(":"), b = Number.parseInt(y[0], 10), x = Number.parseInt(y[1], 10), S = Number.isNaN(b) ? 0 : b, C = Number.isNaN(x) ? 0 : x, w = v.split(":"), T = Number.parseInt(w[0], 10), E = Number.parseInt(w[1], 10), D = Number.isNaN(T) ? 0 : T, ee = Number.isNaN(E) ? 0 : E, [O, k] = M(0), [A, j] = M(0), ne = Array.from({ length: 24 }, (e, t) => t), re = Array.from({ length: 60 }, (e, t) => t), ie = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectDateRange"), F = te(() => {
|
|
3112
|
+
let e = `${String(O).padStart(2, "0")}:${String(A).padStart(2, "0")}`;
|
|
3113
|
+
a ? (l([e, v]), o(!1), k(D || 0), j(ee || 0)) : (l([_, e]), r(!1), o(!0));
|
|
3114
3114
|
}, [
|
|
3115
3115
|
a,
|
|
3116
|
-
|
|
3117
|
-
|
|
3116
|
+
O,
|
|
3117
|
+
A,
|
|
3118
3118
|
_,
|
|
3119
3119
|
v,
|
|
3120
3120
|
D,
|
|
3121
|
-
|
|
3121
|
+
ee,
|
|
3122
3122
|
l
|
|
3123
3123
|
]);
|
|
3124
|
-
return /* @__PURE__ */
|
|
3124
|
+
return /* @__PURE__ */ P(H, {
|
|
3125
3125
|
style: $.container,
|
|
3126
3126
|
children: [
|
|
3127
|
-
/* @__PURE__ */
|
|
3127
|
+
/* @__PURE__ */ P(z, {
|
|
3128
3128
|
style: [$.label, { color: m.textSecondary }],
|
|
3129
|
-
children: [d || c.data.name, c.data.required && /* @__PURE__ */
|
|
3129
|
+
children: [d || c.data.name, c.data.required && /* @__PURE__ */ N(z, {
|
|
3130
3130
|
style: { color: m.error },
|
|
3131
3131
|
children: "*"
|
|
3132
3132
|
})]
|
|
3133
3133
|
}),
|
|
3134
|
-
/* @__PURE__ */
|
|
3134
|
+
/* @__PURE__ */ P(V, {
|
|
3135
3135
|
style: [
|
|
3136
3136
|
$.trigger,
|
|
3137
3137
|
{
|
|
@@ -3141,77 +3141,77 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3141
3141
|
u && { borderColor: m.error }
|
|
3142
3142
|
],
|
|
3143
3143
|
onPress: () => {
|
|
3144
|
-
|
|
3144
|
+
k(S || 0), j(C || 0), o(!0), r(!0);
|
|
3145
3145
|
},
|
|
3146
3146
|
activeOpacity: .7,
|
|
3147
|
-
children: [/* @__PURE__ */
|
|
3147
|
+
children: [/* @__PURE__ */ N(z, {
|
|
3148
3148
|
style: [
|
|
3149
3149
|
$.triggerText,
|
|
3150
3150
|
{ color: m.text },
|
|
3151
3151
|
!_ && { color: m.textMuted }
|
|
3152
3152
|
],
|
|
3153
3153
|
numberOfLines: 1,
|
|
3154
|
-
children:
|
|
3155
|
-
}), /* @__PURE__ */
|
|
3154
|
+
children: ie()
|
|
3155
|
+
}), /* @__PURE__ */ N(z, {
|
|
3156
3156
|
style: $.icon,
|
|
3157
3157
|
children: "🕐"
|
|
3158
3158
|
})]
|
|
3159
3159
|
}),
|
|
3160
|
-
/* @__PURE__ */
|
|
3160
|
+
/* @__PURE__ */ N(oe, {
|
|
3161
3161
|
visible: n,
|
|
3162
3162
|
transparent: !0,
|
|
3163
3163
|
animationType: "fade",
|
|
3164
3164
|
onRequestClose: () => r(!1),
|
|
3165
|
-
children: /* @__PURE__ */
|
|
3165
|
+
children: /* @__PURE__ */ N(V, {
|
|
3166
3166
|
style: $.modalOverlay,
|
|
3167
3167
|
activeOpacity: 1,
|
|
3168
3168
|
onPress: () => r(!1),
|
|
3169
|
-
children: /* @__PURE__ */
|
|
3169
|
+
children: /* @__PURE__ */ P(V, {
|
|
3170
3170
|
style: [$.modalContent, { backgroundColor: m.card }],
|
|
3171
3171
|
activeOpacity: 1,
|
|
3172
3172
|
onPress: () => {},
|
|
3173
3173
|
children: [
|
|
3174
|
-
/* @__PURE__ */
|
|
3174
|
+
/* @__PURE__ */ P(H, {
|
|
3175
3175
|
style: [$.modalHeader, { borderBottomColor: m.separator }],
|
|
3176
|
-
children: [/* @__PURE__ */
|
|
3176
|
+
children: [/* @__PURE__ */ N(z, {
|
|
3177
3177
|
style: [$.modalTitle, { color: m.text }],
|
|
3178
3178
|
children: d || c.data.name
|
|
3179
|
-
}), /* @__PURE__ */
|
|
3179
|
+
}), /* @__PURE__ */ N(V, {
|
|
3180
3180
|
onPress: () => r(!1),
|
|
3181
|
-
children: /* @__PURE__ */
|
|
3181
|
+
children: /* @__PURE__ */ N(z, {
|
|
3182
3182
|
style: [$.closeButton, { color: m.textMuted }],
|
|
3183
3183
|
children: "✕"
|
|
3184
3184
|
})
|
|
3185
3185
|
})]
|
|
3186
3186
|
}),
|
|
3187
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ N(H, {
|
|
3188
3188
|
style: [$.rangeIndicator, { backgroundColor: m.primaryLight }],
|
|
3189
|
-
children: /* @__PURE__ */
|
|
3189
|
+
children: /* @__PURE__ */ N(z, {
|
|
3190
3190
|
style: [$.rangeIndicatorText, { color: m.primary }],
|
|
3191
3191
|
children: h(a ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
|
|
3192
3192
|
})
|
|
3193
3193
|
}),
|
|
3194
|
-
/* @__PURE__ */
|
|
3194
|
+
/* @__PURE__ */ P(H, {
|
|
3195
3195
|
style: $.pickerContainer,
|
|
3196
3196
|
children: [
|
|
3197
|
-
/* @__PURE__ */
|
|
3197
|
+
/* @__PURE__ */ P(H, {
|
|
3198
3198
|
style: $.pickerColumn,
|
|
3199
|
-
children: [/* @__PURE__ */
|
|
3199
|
+
children: [/* @__PURE__ */ N(z, {
|
|
3200
3200
|
style: [$.pickerLabel, { color: m.textMuted }],
|
|
3201
3201
|
children: "Hour"
|
|
3202
|
-
}), /* @__PURE__ */
|
|
3202
|
+
}), /* @__PURE__ */ N(L, {
|
|
3203
3203
|
style: $.picker,
|
|
3204
3204
|
contentContainerStyle: $.pickerContent,
|
|
3205
3205
|
showsVerticalScrollIndicator: !1,
|
|
3206
|
-
children:
|
|
3207
|
-
style: [$.pickerItem,
|
|
3208
|
-
onPress: () =>
|
|
3206
|
+
children: ne.map((e) => /* @__PURE__ */ N(V, {
|
|
3207
|
+
style: [$.pickerItem, O === e && { backgroundColor: m.primary }],
|
|
3208
|
+
onPress: () => k(e),
|
|
3209
3209
|
activeOpacity: .7,
|
|
3210
|
-
children: /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ N(z, {
|
|
3211
3211
|
style: [
|
|
3212
3212
|
$.pickerItemText,
|
|
3213
3213
|
{ color: m.text },
|
|
3214
|
-
|
|
3214
|
+
O === e && {
|
|
3215
3215
|
color: m.background,
|
|
3216
3216
|
fontWeight: "600"
|
|
3217
3217
|
}
|
|
@@ -3221,28 +3221,28 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3221
3221
|
}, e))
|
|
3222
3222
|
})]
|
|
3223
3223
|
}),
|
|
3224
|
-
/* @__PURE__ */
|
|
3224
|
+
/* @__PURE__ */ N(z, {
|
|
3225
3225
|
style: [$.pickerSeparator, { color: m.text }],
|
|
3226
3226
|
children: ":"
|
|
3227
3227
|
}),
|
|
3228
|
-
/* @__PURE__ */
|
|
3228
|
+
/* @__PURE__ */ P(H, {
|
|
3229
3229
|
style: $.pickerColumn,
|
|
3230
|
-
children: [/* @__PURE__ */
|
|
3230
|
+
children: [/* @__PURE__ */ N(z, {
|
|
3231
3231
|
style: [$.pickerLabel, { color: m.textMuted }],
|
|
3232
3232
|
children: "Minute"
|
|
3233
|
-
}), /* @__PURE__ */
|
|
3233
|
+
}), /* @__PURE__ */ N(L, {
|
|
3234
3234
|
style: $.picker,
|
|
3235
3235
|
contentContainerStyle: $.pickerContent,
|
|
3236
3236
|
showsVerticalScrollIndicator: !1,
|
|
3237
|
-
children:
|
|
3238
|
-
style: [$.pickerItem,
|
|
3239
|
-
onPress: () =>
|
|
3237
|
+
children: re.map((e) => /* @__PURE__ */ N(V, {
|
|
3238
|
+
style: [$.pickerItem, A === e && { backgroundColor: m.primary }],
|
|
3239
|
+
onPress: () => j(e),
|
|
3240
3240
|
activeOpacity: .7,
|
|
3241
|
-
children: /* @__PURE__ */
|
|
3241
|
+
children: /* @__PURE__ */ N(z, {
|
|
3242
3242
|
style: [
|
|
3243
3243
|
$.pickerItemText,
|
|
3244
3244
|
{ color: m.text },
|
|
3245
|
-
|
|
3245
|
+
A === e && {
|
|
3246
3246
|
color: m.background,
|
|
3247
3247
|
fontWeight: "600"
|
|
3248
3248
|
}
|
|
@@ -3254,11 +3254,11 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3254
3254
|
})
|
|
3255
3255
|
]
|
|
3256
3256
|
}),
|
|
3257
|
-
/* @__PURE__ */
|
|
3257
|
+
/* @__PURE__ */ N(V, {
|
|
3258
3258
|
style: [$.confirmButton, { backgroundColor: m.primary }],
|
|
3259
|
-
onPress:
|
|
3259
|
+
onPress: F,
|
|
3260
3260
|
activeOpacity: .7,
|
|
3261
|
-
children: /* @__PURE__ */
|
|
3261
|
+
children: /* @__PURE__ */ N(z, {
|
|
3262
3262
|
style: [$.confirmButtonText, { color: m.background }],
|
|
3263
3263
|
children: a ? "Next" : "Confirm"
|
|
3264
3264
|
})
|
|
@@ -3267,17 +3267,17 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3267
3267
|
})
|
|
3268
3268
|
})
|
|
3269
3269
|
}),
|
|
3270
|
-
u && /* @__PURE__ */
|
|
3270
|
+
u && /* @__PURE__ */ N(z, {
|
|
3271
3271
|
style: [$.error, { color: m.error }],
|
|
3272
3272
|
children: u
|
|
3273
3273
|
}),
|
|
3274
|
-
f && !u && /* @__PURE__ */
|
|
3274
|
+
f && !u && /* @__PURE__ */ N(z, {
|
|
3275
3275
|
style: [$.helperText, { color: m.textMuted }],
|
|
3276
3276
|
children: f
|
|
3277
3277
|
})
|
|
3278
3278
|
]
|
|
3279
3279
|
});
|
|
3280
|
-
}, $ =
|
|
3280
|
+
}, $ = R.create({
|
|
3281
3281
|
closeButton: {
|
|
3282
3282
|
fontSize: 24,
|
|
3283
3283
|
fontWeight: "300"
|
|
@@ -3399,18 +3399,18 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3399
3399
|
timerange: Ke
|
|
3400
3400
|
}, Je = ({ step: e, label: n, children: r, canGoBack: a, isLastStep: o, canContinue: s, isSubmitting: c, onBack: l, onContinue: u }) => {
|
|
3401
3401
|
let { colors: d } = p(), f = i(), m = !s || c, h = e.nodes.find((e) => t(e) && e.data.type === "submit"), g = h && t(h) ? f(h.data.label) : void 0, _ = o ? g || f("renderer.defaultSubmitButton.submit") : f("renderer.step.continue");
|
|
3402
|
-
return /* @__PURE__ */
|
|
3403
|
-
n ? /* @__PURE__ */
|
|
3402
|
+
return /* @__PURE__ */ P(H, { children: [
|
|
3403
|
+
n ? /* @__PURE__ */ N(z, {
|
|
3404
3404
|
style: [Ye.label, { color: d.text }],
|
|
3405
3405
|
children: n
|
|
3406
3406
|
}) : null,
|
|
3407
|
-
/* @__PURE__ */
|
|
3407
|
+
/* @__PURE__ */ N(H, {
|
|
3408
3408
|
style: Ye.content,
|
|
3409
3409
|
children: r
|
|
3410
3410
|
}),
|
|
3411
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ P(H, {
|
|
3412
3412
|
style: Ye.actions,
|
|
3413
|
-
children: [a ? /* @__PURE__ */
|
|
3413
|
+
children: [a ? /* @__PURE__ */ N(V, {
|
|
3414
3414
|
style: [
|
|
3415
3415
|
Ye.backButton,
|
|
3416
3416
|
{ borderColor: d.border },
|
|
@@ -3419,11 +3419,11 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3419
3419
|
onPress: l,
|
|
3420
3420
|
disabled: c,
|
|
3421
3421
|
activeOpacity: .7,
|
|
3422
|
-
children: /* @__PURE__ */
|
|
3422
|
+
children: /* @__PURE__ */ N(z, {
|
|
3423
3423
|
style: [Ye.backButtonText, { color: d.text }],
|
|
3424
3424
|
children: f("renderer.step.back")
|
|
3425
3425
|
})
|
|
3426
|
-
}) : /* @__PURE__ */
|
|
3426
|
+
}) : /* @__PURE__ */ N(H, {}), /* @__PURE__ */ N(V, {
|
|
3427
3427
|
style: [
|
|
3428
3428
|
Ye.continueButton,
|
|
3429
3429
|
{ backgroundColor: d.primary },
|
|
@@ -3435,14 +3435,14 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3435
3435
|
onPress: u,
|
|
3436
3436
|
disabled: m,
|
|
3437
3437
|
activeOpacity: .7,
|
|
3438
|
-
children: c ? /* @__PURE__ */
|
|
3438
|
+
children: c ? /* @__PURE__ */ N(re, { color: d.primaryForeground }) : /* @__PURE__ */ N(z, {
|
|
3439
3439
|
style: [Ye.continueButtonText, { color: d.primaryForeground }],
|
|
3440
3440
|
children: _
|
|
3441
3441
|
})
|
|
3442
3442
|
})]
|
|
3443
3443
|
})
|
|
3444
3444
|
] });
|
|
3445
|
-
}, Ye =
|
|
3445
|
+
}, Ye = R.create({
|
|
3446
3446
|
actions: {
|
|
3447
3447
|
alignItems: "center",
|
|
3448
3448
|
flexDirection: "row",
|
|
@@ -3479,7 +3479,7 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
}), Xe = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
|
|
3481
3481
|
let { colors: i } = p();
|
|
3482
|
-
return /* @__PURE__ */
|
|
3482
|
+
return /* @__PURE__ */ N(V, {
|
|
3483
3483
|
style: [
|
|
3484
3484
|
Ze.button,
|
|
3485
3485
|
{ backgroundColor: i.primary },
|
|
@@ -3491,12 +3491,12 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3491
3491
|
disabled: t || n,
|
|
3492
3492
|
onPress: r,
|
|
3493
3493
|
activeOpacity: .7,
|
|
3494
|
-
children: n ? /* @__PURE__ */
|
|
3494
|
+
children: n ? /* @__PURE__ */ N(re, { color: i.primaryForeground }) : /* @__PURE__ */ N(z, {
|
|
3495
3495
|
style: [Ze.buttonText, { color: i.primaryForeground }],
|
|
3496
3496
|
children: e
|
|
3497
3497
|
})
|
|
3498
3498
|
});
|
|
3499
|
-
}, Ze =
|
|
3499
|
+
}, Ze = R.create({
|
|
3500
3500
|
button: {
|
|
3501
3501
|
alignItems: "center",
|
|
3502
3502
|
borderRadius: 6,
|
|
@@ -3511,14 +3511,14 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3511
3511
|
}
|
|
3512
3512
|
}), Qe = ({ children: e }) => e, $e = ({ node: e }) => {
|
|
3513
3513
|
let t = i(), { colors: n } = p(), r = t(e.data?.label);
|
|
3514
|
-
return /* @__PURE__ */
|
|
3514
|
+
return /* @__PURE__ */ N(z, {
|
|
3515
3515
|
style: [tt.title, { color: n.text }],
|
|
3516
3516
|
children: r
|
|
3517
3517
|
});
|
|
3518
3518
|
}, et = () => {
|
|
3519
3519
|
let { colors: e } = p();
|
|
3520
|
-
return /* @__PURE__ */
|
|
3521
|
-
}, tt =
|
|
3520
|
+
return /* @__PURE__ */ N(H, { style: [tt.divider, { backgroundColor: e.separator }] });
|
|
3521
|
+
}, tt = R.create({
|
|
3522
3522
|
divider: {
|
|
3523
3523
|
height: 1,
|
|
3524
3524
|
marginBottom: 16,
|
|
@@ -3534,30 +3534,30 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3534
3534
|
title: $e
|
|
3535
3535
|
}, rt = ({ node: e, children: t }) => {
|
|
3536
3536
|
let { image: n } = e.data;
|
|
3537
|
-
return /* @__PURE__ */
|
|
3537
|
+
return /* @__PURE__ */ P(H, { children: [n && /* @__PURE__ */ N(I, {
|
|
3538
3538
|
source: { uri: n },
|
|
3539
3539
|
style: it.image,
|
|
3540
3540
|
resizeMode: "cover"
|
|
3541
3541
|
}), t] });
|
|
3542
|
-
}, it =
|
|
3542
|
+
}, it = R.create({ image: {
|
|
3543
3543
|
borderRadius: 6,
|
|
3544
3544
|
height: 160,
|
|
3545
3545
|
marginBottom: 8,
|
|
3546
3546
|
width: "100%"
|
|
3547
3547
|
} }), at = ({ style: e }) => {
|
|
3548
|
-
let { colors: t } = p(), n =
|
|
3549
|
-
return
|
|
3550
|
-
let e =
|
|
3548
|
+
let { colors: t } = p(), n = j(new F.Value(.5)).current;
|
|
3549
|
+
return k(() => {
|
|
3550
|
+
let e = F.loop(F.sequence([F.timing(n, {
|
|
3551
3551
|
duration: 600,
|
|
3552
3552
|
toValue: 1,
|
|
3553
3553
|
useNativeDriver: !0
|
|
3554
|
-
}),
|
|
3554
|
+
}), F.timing(n, {
|
|
3555
3555
|
duration: 600,
|
|
3556
3556
|
toValue: .5,
|
|
3557
3557
|
useNativeDriver: !0
|
|
3558
3558
|
})]));
|
|
3559
3559
|
return e.start(), () => e.stop();
|
|
3560
|
-
}, [n]), /* @__PURE__ */
|
|
3560
|
+
}, [n]), /* @__PURE__ */ N(F.View, { style: [
|
|
3561
3561
|
st.bar,
|
|
3562
3562
|
{
|
|
3563
3563
|
backgroundColor: t.muted,
|
|
@@ -3565,27 +3565,27 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3565
3565
|
},
|
|
3566
3566
|
e
|
|
3567
3567
|
] });
|
|
3568
|
-
}, ot = () => /* @__PURE__ */
|
|
3568
|
+
}, ot = () => /* @__PURE__ */ P(H, {
|
|
3569
3569
|
accessibilityState: { busy: !0 },
|
|
3570
3570
|
children: [
|
|
3571
|
-
/* @__PURE__ */
|
|
3572
|
-
/* @__PURE__ */
|
|
3571
|
+
/* @__PURE__ */ N(at, { style: st.title }),
|
|
3572
|
+
/* @__PURE__ */ N(H, {
|
|
3573
3573
|
style: st.fields,
|
|
3574
3574
|
children: [
|
|
3575
3575
|
0,
|
|
3576
3576
|
1,
|
|
3577
3577
|
2
|
|
3578
|
-
].map((e) => /* @__PURE__ */
|
|
3578
|
+
].map((e) => /* @__PURE__ */ P(H, {
|
|
3579
3579
|
style: st.field,
|
|
3580
|
-
children: [/* @__PURE__ */
|
|
3580
|
+
children: [/* @__PURE__ */ N(at, { style: st.fieldLabel }), /* @__PURE__ */ N(at, { style: st.fieldInput })]
|
|
3581
3581
|
}, e))
|
|
3582
3582
|
}),
|
|
3583
|
-
/* @__PURE__ */
|
|
3583
|
+
/* @__PURE__ */ N(H, {
|
|
3584
3584
|
style: st.actions,
|
|
3585
|
-
children: /* @__PURE__ */
|
|
3585
|
+
children: /* @__PURE__ */ N(at, { style: st.button })
|
|
3586
3586
|
})
|
|
3587
3587
|
]
|
|
3588
|
-
}), st =
|
|
3588
|
+
}), st = R.create({
|
|
3589
3589
|
actions: {
|
|
3590
3590
|
alignItems: "flex-end",
|
|
3591
3591
|
marginTop: 24
|
|
@@ -3610,8 +3610,8 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3610
3610
|
marginBottom: 24,
|
|
3611
3611
|
width: "33%"
|
|
3612
3612
|
}
|
|
3613
|
-
}), ct = ({ baseUrl: e, components: t, contentContainerStyle: r, flow: i, googleApiKey: a, headers: o, initialValues: s, isLoading: c = !1, isSubmitting: l = !1, language: u, onBack: d, onChange: f, onSubmit: m,
|
|
3614
|
-
let { colors:
|
|
3613
|
+
}), ct = ({ baseUrl: e, components: t, contentContainerStyle: r, flow: i, googleApiKey: a, headers: o, initialValues: s, isLoading: c = !1, isSubmitting: l = !1, language: u, onBack: d, onChange: f, onSubmit: m, showPoweredBy: h, style: g, theme: _, validate: v, validationMode: y }) => {
|
|
3614
|
+
let { colors: b } = p(), { canContinueStep: x, canSubmit: S, clearSubmitMessage: C, config: w, currentStep: E, currentStepGroupNode: D, currentStepIndex: ee, formErrors: k, formValues: j, goToNextStep: M, goToPreviousStep: ne, handleSubmit: re, inputNodes: ie, isFirstStep: F, isLastStep: ae, isSubmitting: I, missingRequiredFields: oe, setFieldValue: R, steps: se, submitMessage: B, t: V } = T({
|
|
3615
3615
|
baseUrl: e,
|
|
3616
3616
|
components: t,
|
|
3617
3617
|
flow: i,
|
|
@@ -3621,105 +3621,106 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3621
3621
|
language: u,
|
|
3622
3622
|
onChange: f,
|
|
3623
3623
|
onSubmit: m,
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3624
|
+
showPoweredBy: h,
|
|
3625
|
+
theme: _,
|
|
3626
|
+
validate: v,
|
|
3627
|
+
validationMode: y
|
|
3628
|
+
}), le = l || I, { FormWrapper: ue, SubmitButtonWrapper: de, renderNode: fe } = O({
|
|
3629
|
+
config: w,
|
|
3629
3630
|
DefaultFormWrapper: ce,
|
|
3630
3631
|
DefaultInputWrapper: rt,
|
|
3631
3632
|
DefaultSubmitButton: Xe,
|
|
3632
3633
|
DefaultSubmitButtonWrapper: Qe,
|
|
3633
3634
|
defaultInputRenderers: qe,
|
|
3634
3635
|
defaultUI: nt,
|
|
3635
|
-
formErrors:
|
|
3636
|
-
formValues:
|
|
3637
|
-
inputNodes:
|
|
3638
|
-
isSubmitting:
|
|
3639
|
-
missingRequiredFields:
|
|
3640
|
-
setFieldValue:
|
|
3641
|
-
}),
|
|
3642
|
-
if (
|
|
3643
|
-
|
|
3636
|
+
formErrors: k,
|
|
3637
|
+
formValues: j,
|
|
3638
|
+
inputNodes: ie,
|
|
3639
|
+
isSubmitting: le,
|
|
3640
|
+
missingRequiredFields: oe,
|
|
3641
|
+
setFieldValue: R
|
|
3642
|
+
}), U = w.components.step ?? Je, pe = w.components.loadingSkeleton ?? ot, me = A(() => V(D?.data?.label), [V, D]), he = te(() => {
|
|
3643
|
+
if (ae) {
|
|
3644
|
+
re();
|
|
3644
3645
|
return;
|
|
3645
3646
|
}
|
|
3646
3647
|
M();
|
|
3647
3648
|
}, [
|
|
3648
|
-
|
|
3649
|
-
|
|
3649
|
+
ae,
|
|
3650
|
+
re,
|
|
3650
3651
|
M
|
|
3651
|
-
]),
|
|
3652
|
-
if (
|
|
3652
|
+
]), W = te(() => {
|
|
3653
|
+
if (F) {
|
|
3653
3654
|
d?.();
|
|
3654
3655
|
return;
|
|
3655
3656
|
}
|
|
3656
|
-
|
|
3657
|
+
ne();
|
|
3657
3658
|
}, [
|
|
3658
|
-
|
|
3659
|
+
F,
|
|
3659
3660
|
d,
|
|
3660
|
-
|
|
3661
|
-
]),
|
|
3662
|
-
return /* @__PURE__ */
|
|
3661
|
+
ne
|
|
3662
|
+
]), ge = !F || !!d;
|
|
3663
|
+
return /* @__PURE__ */ N(L, {
|
|
3663
3664
|
nestedScrollEnabled: !0,
|
|
3664
3665
|
style: [
|
|
3665
3666
|
ut.container,
|
|
3666
|
-
{ backgroundColor:
|
|
3667
|
-
|
|
3667
|
+
{ backgroundColor: b.background },
|
|
3668
|
+
g
|
|
3668
3669
|
],
|
|
3669
3670
|
contentContainerStyle: r,
|
|
3670
|
-
children: c ? /* @__PURE__ */
|
|
3671
|
+
children: c ? /* @__PURE__ */ N(pe, {}) : /* @__PURE__ */ P(n, {
|
|
3671
3672
|
value: {
|
|
3672
|
-
baseUrl:
|
|
3673
|
+
baseUrl: w.baseUrl,
|
|
3673
3674
|
flow: i,
|
|
3674
|
-
formErrors:
|
|
3675
|
-
formValues:
|
|
3676
|
-
googleApiKey:
|
|
3677
|
-
headers:
|
|
3678
|
-
inputNodes:
|
|
3679
|
-
language:
|
|
3680
|
-
setFieldValue:
|
|
3675
|
+
formErrors: k,
|
|
3676
|
+
formValues: j,
|
|
3677
|
+
googleApiKey: w.googleApiKey,
|
|
3678
|
+
headers: w.headers,
|
|
3679
|
+
inputNodes: ie,
|
|
3680
|
+
language: w.language,
|
|
3681
|
+
setFieldValue: R
|
|
3681
3682
|
},
|
|
3682
|
-
children: [/* @__PURE__ */
|
|
3683
|
-
onSubmit:
|
|
3684
|
-
children: [
|
|
3685
|
-
missingFields:
|
|
3686
|
-
children: /* @__PURE__ */
|
|
3687
|
-
step:
|
|
3688
|
-
groupNode:
|
|
3689
|
-
stepIndex:
|
|
3690
|
-
totalSteps:
|
|
3691
|
-
isFirstStep:
|
|
3692
|
-
isLastStep:
|
|
3693
|
-
canContinue:
|
|
3694
|
-
canGoBack:
|
|
3695
|
-
isSubmitting:
|
|
3696
|
-
onBack:
|
|
3697
|
-
onContinue:
|
|
3698
|
-
label:
|
|
3699
|
-
children:
|
|
3683
|
+
children: [/* @__PURE__ */ P(ue, {
|
|
3684
|
+
onSubmit: re,
|
|
3685
|
+
children: [E && /* @__PURE__ */ N(de, {
|
|
3686
|
+
missingFields: oe,
|
|
3687
|
+
children: /* @__PURE__ */ N(U, {
|
|
3688
|
+
step: E,
|
|
3689
|
+
groupNode: D,
|
|
3690
|
+
stepIndex: ee,
|
|
3691
|
+
totalSteps: se.length,
|
|
3692
|
+
isFirstStep: F,
|
|
3693
|
+
isLastStep: ae,
|
|
3694
|
+
canContinue: x && (!ae || S),
|
|
3695
|
+
canGoBack: ge,
|
|
3696
|
+
isSubmitting: le,
|
|
3697
|
+
onBack: W,
|
|
3698
|
+
onContinue: he,
|
|
3699
|
+
label: me,
|
|
3700
|
+
children: E.nodes.map((e) => fe(e))
|
|
3700
3701
|
})
|
|
3701
|
-
}), /* @__PURE__ */
|
|
3702
|
-
style: [ut.poweredBy, { color:
|
|
3702
|
+
}), w.showPoweredBy && /* @__PURE__ */ N(z, {
|
|
3703
|
+
style: [ut.poweredBy, { color: b.textMuted }],
|
|
3703
3704
|
children: "Powered by Treege"
|
|
3704
3705
|
})]
|
|
3705
|
-
}),
|
|
3706
|
-
style: [ut.message, { backgroundColor:
|
|
3707
|
-
children: [/* @__PURE__ */
|
|
3708
|
-
style: [ut.messageText, { color:
|
|
3709
|
-
children:
|
|
3710
|
-
}), /* @__PURE__ */
|
|
3711
|
-
style: [ut.messageClose, { color:
|
|
3712
|
-
onPress:
|
|
3713
|
-
children:
|
|
3706
|
+
}), B && /* @__PURE__ */ P(H, {
|
|
3707
|
+
style: [ut.message, { backgroundColor: B.type === "success" ? b.successBg : b.errorBg }],
|
|
3708
|
+
children: [/* @__PURE__ */ N(z, {
|
|
3709
|
+
style: [ut.messageText, { color: B.type === "success" ? b.success : b.error }],
|
|
3710
|
+
children: B.message
|
|
3711
|
+
}), /* @__PURE__ */ N(z, {
|
|
3712
|
+
style: [ut.messageClose, { color: B.type === "success" ? b.success : b.error }],
|
|
3713
|
+
onPress: C,
|
|
3714
|
+
children: V("common.close")
|
|
3714
3715
|
})]
|
|
3715
3716
|
})]
|
|
3716
3717
|
})
|
|
3717
3718
|
});
|
|
3718
|
-
}, lt = (e) => /* @__PURE__ */
|
|
3719
|
+
}, lt = (e) => /* @__PURE__ */ N(v, {
|
|
3719
3720
|
theme: e.theme,
|
|
3720
3721
|
storageKey: "treege-renderer-theme",
|
|
3721
|
-
children: /* @__PURE__ */
|
|
3722
|
-
}), ut =
|
|
3722
|
+
children: /* @__PURE__ */ N(ct, { ...e })
|
|
3723
|
+
}), ut = R.create({
|
|
3723
3724
|
container: { flex: 1 },
|
|
3724
3725
|
message: {
|
|
3725
3726
|
borderRadius: 6,
|
|
@@ -3742,4 +3743,4 @@ var ce = ({ children: e }) => /* @__PURE__ */ P(H, {
|
|
|
3742
3743
|
}
|
|
3743
3744
|
});
|
|
3744
3745
|
//#endregion
|
|
3745
|
-
export { fe as DefaultAddressInput, he as DefaultAutocompleteInput, ge as DefaultCheckboxInput, _e as DefaultDateInput, ve as DefaultDateRangeInput, et as DefaultDividerUI, ye as DefaultFileInput, be as DefaultHiddenInput, je as DefaultHttpInput, Me as DefaultNumberInput, Pe as DefaultPasswordInput, Ie as DefaultRadioInput, Le as DefaultSelectInput, ze as DefaultSwitchInput, Ue as DefaultTextInput, Ve as DefaultTextareaInput, Ge as DefaultTimeInput, Ke as DefaultTimeRangeInput, $e as DefaultTitleUI, lt as TreegeRenderer, S as TreegeRendererProvider, g as applyReferenceTransformation, u as buildInitialFormValues, a as calculateReferenceFieldUpdates, m as checkFormFieldHasValue, _ as convertFormValuesToNamedFormat, qe as defaultInputRenderers, nt as defaultUI, E as evaluateCondition,
|
|
3746
|
+
export { fe as DefaultAddressInput, he as DefaultAutocompleteInput, ge as DefaultCheckboxInput, _e as DefaultDateInput, ve as DefaultDateRangeInput, et as DefaultDividerUI, ye as DefaultFileInput, be as DefaultHiddenInput, je as DefaultHttpInput, Me as DefaultNumberInput, Pe as DefaultPasswordInput, Ie as DefaultRadioInput, Le as DefaultSelectInput, ze as DefaultSwitchInput, Ue as DefaultTextInput, Ve as DefaultTextareaInput, Ge as DefaultTimeInput, Ke as DefaultTimeRangeInput, $e as DefaultTitleUI, lt as TreegeRenderer, S as TreegeRendererProvider, g as applyReferenceTransformation, u as buildInitialFormValues, a as calculateReferenceFieldUpdates, m as checkFormFieldHasValue, _ as convertFormValuesToNamedFormat, qe as defaultInputRenderers, nt as defaultUI, E as evaluateCondition, ee as evaluateConditions, h as fileToSerializable, f as filesToSerializable, D as findStartNode, C as getFlowRenderState, r as getTranslatedText, s as isFieldEmpty, x as isStartNode, Te as sanitize, De as sanitizeHttpResponse, l as serializableToFile, T as useTreegeRenderer, w as useTreegeRendererConfig };
|