treege 3.0.0-beta.94 → 3.0.0-beta.95
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/README.md +40 -22
- package/dist/DefaultSubmitButton-D4Hqyara.js +5130 -0
- package/dist/{ThemeContext-CE3SE9DG.js → ThemeContext-CDewydK5.js} +94 -70
- package/dist/{editor-mvGEgr3P.js → editor-BzhBNy8O.js} +1521 -1521
- package/dist/editor.js +2 -2
- package/dist/main.js +6 -6
- package/dist/renderer/features/TreegeRenderer/native/TreegeRenderer.d.ts +3 -2
- package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +8 -1
- package/dist/renderer/features/TreegeRenderer/web/TreegeRenderer.d.ts +1 -1
- package/dist/renderer/features/TreegeRenderer/web/components/DefaultStep.d.ts +1 -1
- package/dist/renderer/hooks/useRenderNode.d.ts +7 -1
- package/dist/renderer/types/renderer.d.ts +19 -1
- package/dist/renderer/utils/dateLocale.d.ts +6 -0
- package/dist/renderer/utils/step.d.ts +9 -0
- package/dist/renderer-Cd2P21x9.js +437 -0
- package/dist/renderer-native.js +646 -661
- package/dist/renderer.js +5 -5
- package/dist/useRenderNode-BaBKq6Ed.js +600 -0
- package/package.json +1 -1
- package/dist/DefaultSubmitButton-DNVIV9BO.js +0 -1909
- package/dist/renderer-CfoZiy7J.js +0 -449
- package/dist/useRenderNode-BPgpYSyg.js +0 -538
package/dist/renderer-native.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { B as e, D as t, F as n, M as r, N as i, P as a,
|
|
2
|
-
import { a as O, c as k, i as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { ActivityIndicator as
|
|
1
|
+
import { B as e, D as t, F as n, M as r, N as i, P as a, Q as o, R as s, T as c, V as l, Y as u, _ as d, a as f, b as p, c as m, g as h, h as g, i as _, k as v, l as y, m as b, n as x, o as S, r as C, s as w, t as T, v as E, w as ee, x as te, y as D, z as ne } from "./ThemeContext-CDewydK5.js";
|
|
2
|
+
import { a as O, c as k, i as re, l as ie, n as ae, o as oe, r as se, s as A, t as j } from "./useRenderNode-BaBKq6Ed.js";
|
|
3
|
+
import { useCallback as ce, useEffect as M, useMemo as le, useRef as N, useState as P } from "react";
|
|
4
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
5
|
+
import { ActivityIndicator as R, Alert as ue, Animated as de, FlatList as fe, Image as pe, Modal as me, ScrollView as he, StyleSheet as z, Switch as ge, Text as B, TextInput as _e, TouchableOpacity as V, View as H } from "react-native";
|
|
6
6
|
//#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
|
|
7
|
-
var ve = ({ children: e }) => /* @__PURE__ */
|
|
7
|
+
var ve = ({ children: e }) => /* @__PURE__ */ I(H, {
|
|
8
8
|
style: ye.container,
|
|
9
9
|
children: e
|
|
10
10
|
}), ye = z.create({ container: { padding: 16 } }), be = ({ label: e, required: t, style: n }) => {
|
|
11
|
-
let { colors: r } =
|
|
12
|
-
return e ? /* @__PURE__ */
|
|
11
|
+
let { colors: r } = x();
|
|
12
|
+
return e ? /* @__PURE__ */ L(B, {
|
|
13
13
|
style: [
|
|
14
14
|
xe.label,
|
|
15
15
|
{ color: r.textSecondary },
|
|
16
16
|
n
|
|
17
17
|
],
|
|
18
|
-
children: [e, t && /* @__PURE__ */
|
|
18
|
+
children: [e, t && /* @__PURE__ */ I(B, {
|
|
19
19
|
style: { color: r.error },
|
|
20
20
|
children: "*"
|
|
21
21
|
})]
|
|
@@ -53,19 +53,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
53
53
|
return console.error("Google Places fetch error:", e), [];
|
|
54
54
|
}
|
|
55
55
|
}, we = ({ field: e, extra: t }) => {
|
|
56
|
-
let [r, i] =
|
|
57
|
-
v(e.value), i(""),
|
|
58
|
-
}, [v]),
|
|
59
|
-
|
|
56
|
+
let [r, i] = P(""), [a, o] = P([]), [s, c] = P(!1), [u, d] = P(!1), { value: f, placeholder: p, id: m, name: h } = e, { InputLabel: g, node: _, setValue: v, error: y, label: b, helperText: S } = t, { language: C, googleApiKey: w } = l(), T = n(), { colors: E } = x(), ee = ce((e) => {
|
|
57
|
+
v(e.value), i(""), c(!1), o([]);
|
|
58
|
+
}, [v]), te = () => {
|
|
59
|
+
c(!1);
|
|
60
60
|
};
|
|
61
|
-
return
|
|
61
|
+
return M(() => {
|
|
62
62
|
if (!r || r.trim().length < 3) {
|
|
63
63
|
o([]), d(!1);
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
d(!0);
|
|
67
67
|
let e = setTimeout(async () => {
|
|
68
|
-
o(
|
|
68
|
+
o(w ? await Ce(r, w) : await Se(r, C)), d(!1);
|
|
69
69
|
}, 300);
|
|
70
70
|
return () => {
|
|
71
71
|
clearTimeout(e), d(!1);
|
|
@@ -73,123 +73,123 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
73
73
|
}, [
|
|
74
74
|
r,
|
|
75
75
|
C,
|
|
76
|
-
|
|
77
|
-
]), /* @__PURE__ */
|
|
76
|
+
w
|
|
77
|
+
]), /* @__PURE__ */ L(H, {
|
|
78
78
|
style: U.container,
|
|
79
79
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
label:
|
|
80
|
+
/* @__PURE__ */ I(g, {
|
|
81
|
+
label: b,
|
|
82
82
|
required: _.data.required
|
|
83
83
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ L(V, {
|
|
85
85
|
style: [
|
|
86
86
|
U.trigger,
|
|
87
87
|
{
|
|
88
|
-
backgroundColor:
|
|
89
|
-
borderColor:
|
|
88
|
+
backgroundColor: E.input,
|
|
89
|
+
borderColor: E.border
|
|
90
90
|
},
|
|
91
|
-
y && { borderColor:
|
|
91
|
+
y && { borderColor: E.error }
|
|
92
92
|
],
|
|
93
|
-
onPress: () =>
|
|
93
|
+
onPress: () => c(!0),
|
|
94
94
|
activeOpacity: .7,
|
|
95
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ I(B, {
|
|
96
96
|
style: [
|
|
97
97
|
U.triggerText,
|
|
98
|
-
{ color:
|
|
99
|
-
!f && { color:
|
|
98
|
+
{ color: E.text },
|
|
99
|
+
!f && { color: E.textMuted }
|
|
100
100
|
],
|
|
101
101
|
numberOfLines: 1,
|
|
102
|
-
children: f || p ||
|
|
103
|
-
}), /* @__PURE__ */
|
|
102
|
+
children: f || p || T("renderer.defaultAddressInput.enterAddress")
|
|
103
|
+
}), /* @__PURE__ */ I(B, {
|
|
104
104
|
style: U.icon,
|
|
105
105
|
children: "📍"
|
|
106
106
|
})]
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ I(me, {
|
|
109
109
|
visible: s,
|
|
110
110
|
transparent: !0,
|
|
111
111
|
animationType: "fade",
|
|
112
|
-
onRequestClose:
|
|
113
|
-
children: /* @__PURE__ */
|
|
112
|
+
onRequestClose: te,
|
|
113
|
+
children: /* @__PURE__ */ I(V, {
|
|
114
114
|
style: U.modalOverlay,
|
|
115
115
|
activeOpacity: 1,
|
|
116
|
-
onPress:
|
|
117
|
-
children: /* @__PURE__ */
|
|
118
|
-
style: [U.modalContent, { backgroundColor:
|
|
116
|
+
onPress: te,
|
|
117
|
+
children: /* @__PURE__ */ L(V, {
|
|
118
|
+
style: [U.modalContent, { backgroundColor: E.card }],
|
|
119
119
|
activeOpacity: 1,
|
|
120
120
|
onPress: () => {},
|
|
121
121
|
children: [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
style: [U.modalHeader, { borderBottomColor:
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
-
style: [U.modalTitle, { color:
|
|
126
|
-
children:
|
|
127
|
-
}), /* @__PURE__ */
|
|
128
|
-
onPress:
|
|
129
|
-
children: /* @__PURE__ */
|
|
130
|
-
style: [U.closeButton, { color:
|
|
122
|
+
/* @__PURE__ */ L(H, {
|
|
123
|
+
style: [U.modalHeader, { borderBottomColor: E.separator }],
|
|
124
|
+
children: [/* @__PURE__ */ I(B, {
|
|
125
|
+
style: [U.modalTitle, { color: E.text }],
|
|
126
|
+
children: b || p || T("renderer.defaultAddressInput.enterAddress")
|
|
127
|
+
}), /* @__PURE__ */ I(V, {
|
|
128
|
+
onPress: te,
|
|
129
|
+
children: /* @__PURE__ */ I(B, {
|
|
130
|
+
style: [U.closeButton, { color: E.textMuted }],
|
|
131
131
|
children: "✕"
|
|
132
132
|
})
|
|
133
133
|
})]
|
|
134
134
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ L(H, {
|
|
136
136
|
style: U.searchContainer,
|
|
137
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ I(_e, {
|
|
138
138
|
style: [U.searchInput, {
|
|
139
|
-
backgroundColor:
|
|
140
|
-
borderColor:
|
|
141
|
-
color:
|
|
139
|
+
backgroundColor: E.muted,
|
|
140
|
+
borderColor: E.border,
|
|
141
|
+
color: E.text
|
|
142
142
|
}],
|
|
143
|
-
placeholder: p ||
|
|
144
|
-
placeholderTextColor:
|
|
143
|
+
placeholder: p || T("renderer.defaultAddressInput.enterAddress"),
|
|
144
|
+
placeholderTextColor: E.textMuted,
|
|
145
145
|
value: r,
|
|
146
146
|
onChangeText: i,
|
|
147
147
|
autoFocus: !0,
|
|
148
148
|
autoCapitalize: "none",
|
|
149
149
|
autoCorrect: !1
|
|
150
|
-
}), u && /* @__PURE__ */
|
|
150
|
+
}), u && /* @__PURE__ */ I(R, {
|
|
151
151
|
size: "small",
|
|
152
|
-
color:
|
|
152
|
+
color: E.primary,
|
|
153
153
|
style: U.searchLoader
|
|
154
154
|
})]
|
|
155
155
|
}),
|
|
156
|
-
u ? /* @__PURE__ */
|
|
156
|
+
u ? /* @__PURE__ */ L(H, {
|
|
157
157
|
style: U.loadingContainer,
|
|
158
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ I(R, {
|
|
159
159
|
size: "small",
|
|
160
|
-
color:
|
|
161
|
-
}), /* @__PURE__ */
|
|
162
|
-
style: [U.loadingText, { color:
|
|
163
|
-
children:
|
|
160
|
+
color: E.primary
|
|
161
|
+
}), /* @__PURE__ */ I(B, {
|
|
162
|
+
style: [U.loadingText, { color: E.textMuted }],
|
|
163
|
+
children: T("renderer.defaultAddressInput.searching")
|
|
164
164
|
})]
|
|
165
|
-
}) : /* @__PURE__ */
|
|
165
|
+
}) : /* @__PURE__ */ I(fe, {
|
|
166
166
|
data: a,
|
|
167
167
|
keyExtractor: (e, t) => t.toString(),
|
|
168
168
|
style: U.suggestionsList,
|
|
169
169
|
contentContainerStyle: U.suggestionsListContent,
|
|
170
170
|
keyboardShouldPersistTaps: "handled",
|
|
171
|
-
ListEmptyComponent: r.length >= 3 ? /* @__PURE__ */
|
|
171
|
+
ListEmptyComponent: r.length >= 3 ? /* @__PURE__ */ I(H, {
|
|
172
172
|
style: U.emptyContainer,
|
|
173
|
-
children: /* @__PURE__ */
|
|
174
|
-
style: [U.emptyText, { color:
|
|
175
|
-
children:
|
|
173
|
+
children: /* @__PURE__ */ I(B, {
|
|
174
|
+
style: [U.emptyText, { color: E.textMuted }],
|
|
175
|
+
children: T("renderer.defaultAddressInput.noAddressesFound")
|
|
176
176
|
})
|
|
177
|
-
}) : /* @__PURE__ */
|
|
177
|
+
}) : /* @__PURE__ */ I(H, {
|
|
178
178
|
style: U.emptyContainer,
|
|
179
|
-
children: /* @__PURE__ */
|
|
180
|
-
style: [U.emptyText, { color:
|
|
181
|
-
children:
|
|
179
|
+
children: /* @__PURE__ */ I(B, {
|
|
180
|
+
style: [U.emptyText, { color: E.textMuted }],
|
|
181
|
+
children: T("renderer.defaultAddressInput.typeMinChars")
|
|
182
182
|
})
|
|
183
183
|
}),
|
|
184
|
-
renderItem: ({ item: e }) => /* @__PURE__ */
|
|
184
|
+
renderItem: ({ item: e }) => /* @__PURE__ */ L(V, {
|
|
185
185
|
style: U.suggestionItem,
|
|
186
|
-
onPress: () =>
|
|
186
|
+
onPress: () => ee(e),
|
|
187
187
|
activeOpacity: .7,
|
|
188
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ I(B, {
|
|
189
189
|
style: U.suggestionIcon,
|
|
190
190
|
children: "📍"
|
|
191
|
-
}), /* @__PURE__ */
|
|
192
|
-
style: [U.suggestionText, { color:
|
|
191
|
+
}), /* @__PURE__ */ I(B, {
|
|
192
|
+
style: [U.suggestionText, { color: E.text }],
|
|
193
193
|
numberOfLines: 2,
|
|
194
194
|
children: e.label
|
|
195
195
|
})]
|
|
@@ -199,12 +199,12 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
199
199
|
})
|
|
200
200
|
})
|
|
201
201
|
}),
|
|
202
|
-
y && /* @__PURE__ */
|
|
203
|
-
style: [U.error, { color:
|
|
202
|
+
y && /* @__PURE__ */ I(B, {
|
|
203
|
+
style: [U.error, { color: E.error }],
|
|
204
204
|
children: y
|
|
205
205
|
}),
|
|
206
|
-
S && !y && /* @__PURE__ */
|
|
207
|
-
style: [U.helperText, { color:
|
|
206
|
+
S && !y && /* @__PURE__ */ I(B, {
|
|
207
|
+
style: [U.helperText, { color: E.textMuted }],
|
|
208
208
|
children: S
|
|
209
209
|
})
|
|
210
210
|
]
|
|
@@ -315,18 +315,18 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
315
315
|
fontSize: 14
|
|
316
316
|
}
|
|
317
317
|
}), Te = ({ label: e, description: t, image: n, disabled: r }) => {
|
|
318
|
-
let { colors: i } =
|
|
319
|
-
return /* @__PURE__ */
|
|
318
|
+
let { colors: i } = x();
|
|
319
|
+
return /* @__PURE__ */ L(H, {
|
|
320
320
|
style: Ee.content,
|
|
321
|
-
children: [n ? /* @__PURE__ */
|
|
321
|
+
children: [n ? /* @__PURE__ */ I(pe, {
|
|
322
322
|
source: { uri: n },
|
|
323
323
|
style: Ee.image
|
|
324
|
-
}) : null, /* @__PURE__ */
|
|
324
|
+
}) : null, /* @__PURE__ */ L(H, {
|
|
325
325
|
style: Ee.textWrapper,
|
|
326
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ I(B, {
|
|
327
327
|
style: [Ee.label, { color: r ? i.textMuted : i.text }],
|
|
328
328
|
children: e
|
|
329
|
-
}), t ? /* @__PURE__ */
|
|
329
|
+
}), t ? /* @__PURE__ */ I(B, {
|
|
330
330
|
style: [Ee.description, { color: i.textMuted }],
|
|
331
331
|
children: t
|
|
332
332
|
}) : null]
|
|
@@ -351,7 +351,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
351
351
|
label: { fontSize: 14 },
|
|
352
352
|
textWrapper: { flex: 1 }
|
|
353
353
|
}), De = ({ field: e, extra: t }) => {
|
|
354
|
-
let [r, i] =
|
|
354
|
+
let [r, i] = P(!1), [a, o] = P(""), { value: s, placeholder: c } = e, { InputLabel: l, node: u, setValue: d, error: f, label: p, helperText: m } = t, h = n(), { colors: g } = x(), _ = u.data.options || [], v = _.find((e) => e.value === s), y = le(() => {
|
|
355
355
|
if (!a.trim()) return _;
|
|
356
356
|
let e = a.toLowerCase();
|
|
357
357
|
return _.filter((t) => h(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
|
|
@@ -359,19 +359,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
359
359
|
_,
|
|
360
360
|
a,
|
|
361
361
|
h
|
|
362
|
-
]),
|
|
362
|
+
]), b = (e) => {
|
|
363
363
|
d(e === s ? "" : e), i(!1), o("");
|
|
364
364
|
}, S = () => {
|
|
365
365
|
i(!1), o("");
|
|
366
366
|
};
|
|
367
|
-
return /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ L(H, {
|
|
368
368
|
style: W.container,
|
|
369
369
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ I(l, {
|
|
371
371
|
label: p,
|
|
372
372
|
required: u.data.required
|
|
373
373
|
}),
|
|
374
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ L(V, {
|
|
375
375
|
style: [
|
|
376
376
|
W.trigger,
|
|
377
377
|
{
|
|
@@ -383,7 +383,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
383
383
|
onPress: () => i(!0),
|
|
384
384
|
activeOpacity: .7,
|
|
385
385
|
children: [
|
|
386
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ I(B, {
|
|
387
387
|
style: [
|
|
388
388
|
W.triggerText,
|
|
389
389
|
{ color: g.text },
|
|
@@ -392,7 +392,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
392
392
|
numberOfLines: 1,
|
|
393
393
|
children: s && v ? h(v.label) : c || h("renderer.defaultAutocompleteInput.selectOption")
|
|
394
394
|
}),
|
|
395
|
-
s ? /* @__PURE__ */
|
|
395
|
+
s ? /* @__PURE__ */ I(V, {
|
|
396
396
|
onPress: () => d(""),
|
|
397
397
|
hitSlop: {
|
|
398
398
|
bottom: 8,
|
|
@@ -401,47 +401,47 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
401
401
|
top: 8
|
|
402
402
|
},
|
|
403
403
|
style: W.clearButton,
|
|
404
|
-
children: /* @__PURE__ */
|
|
404
|
+
children: /* @__PURE__ */ I(B, {
|
|
405
405
|
style: [W.clearIcon, { color: g.textMuted }],
|
|
406
406
|
children: "✕"
|
|
407
407
|
})
|
|
408
408
|
}) : null,
|
|
409
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ I(B, {
|
|
410
410
|
style: [W.arrow, { color: g.textMuted }],
|
|
411
411
|
children: "▼"
|
|
412
412
|
})
|
|
413
413
|
]
|
|
414
414
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ I(me, {
|
|
416
416
|
visible: r,
|
|
417
417
|
transparent: !0,
|
|
418
418
|
animationType: "fade",
|
|
419
419
|
onRequestClose: S,
|
|
420
|
-
children: /* @__PURE__ */
|
|
420
|
+
children: /* @__PURE__ */ I(V, {
|
|
421
421
|
style: W.modalOverlay,
|
|
422
422
|
activeOpacity: 1,
|
|
423
423
|
onPress: S,
|
|
424
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ L(V, {
|
|
425
425
|
style: [W.modalContent, { backgroundColor: g.card }],
|
|
426
426
|
activeOpacity: 1,
|
|
427
427
|
onPress: () => {},
|
|
428
428
|
children: [
|
|
429
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ L(H, {
|
|
430
430
|
style: [W.modalHeader, { borderBottomColor: g.separator }],
|
|
431
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ I(B, {
|
|
432
432
|
style: [W.modalTitle, { color: g.text }],
|
|
433
433
|
children: p || c || h("renderer.defaultAutocompleteInput.selectOption")
|
|
434
|
-
}), /* @__PURE__ */
|
|
434
|
+
}), /* @__PURE__ */ I(V, {
|
|
435
435
|
onPress: S,
|
|
436
|
-
children: /* @__PURE__ */
|
|
436
|
+
children: /* @__PURE__ */ I(B, {
|
|
437
437
|
style: [W.closeButton, { color: g.textMuted }],
|
|
438
438
|
children: "✕"
|
|
439
439
|
})
|
|
440
440
|
})]
|
|
441
441
|
}),
|
|
442
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ I(H, {
|
|
443
443
|
style: W.searchContainer,
|
|
444
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ I(_e, {
|
|
445
445
|
style: [W.searchInput, {
|
|
446
446
|
backgroundColor: g.muted,
|
|
447
447
|
borderColor: g.border,
|
|
@@ -456,31 +456,31 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
456
456
|
autoCorrect: !1
|
|
457
457
|
})
|
|
458
458
|
}),
|
|
459
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ I(fe, {
|
|
460
460
|
data: y,
|
|
461
461
|
keyExtractor: (e) => e.value,
|
|
462
462
|
style: W.optionsList,
|
|
463
463
|
contentContainerStyle: W.optionsListContent,
|
|
464
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
464
|
+
ListEmptyComponent: /* @__PURE__ */ I(H, {
|
|
465
465
|
style: W.emptyContainer,
|
|
466
|
-
children: /* @__PURE__ */
|
|
466
|
+
children: /* @__PURE__ */ I(B, {
|
|
467
467
|
style: [W.emptyText, { color: g.textMuted }],
|
|
468
468
|
children: h("renderer.defaultAutocompleteInput.noResults")
|
|
469
469
|
})
|
|
470
470
|
}),
|
|
471
471
|
renderItem: ({ item: e }) => {
|
|
472
472
|
let t = e.value === s;
|
|
473
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ L(V, {
|
|
474
474
|
style: [W.option, t && { backgroundColor: g.primaryLight }],
|
|
475
|
-
onPress: () =>
|
|
475
|
+
onPress: () => b(e.value),
|
|
476
476
|
disabled: e.disabled,
|
|
477
477
|
activeOpacity: .7,
|
|
478
|
-
children: [/* @__PURE__ */
|
|
478
|
+
children: [/* @__PURE__ */ I(Te, {
|
|
479
479
|
label: h(e.label) || e.value,
|
|
480
480
|
description: h(e.description),
|
|
481
481
|
image: e.image,
|
|
482
482
|
disabled: e.disabled
|
|
483
|
-
}), t && /* @__PURE__ */
|
|
483
|
+
}), t && /* @__PURE__ */ I(B, {
|
|
484
484
|
style: [W.checkmark, { color: g.primary }],
|
|
485
485
|
children: "✓"
|
|
486
486
|
})]
|
|
@@ -491,11 +491,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
491
491
|
})
|
|
492
492
|
})
|
|
493
493
|
}),
|
|
494
|
-
f && /* @__PURE__ */
|
|
494
|
+
f && /* @__PURE__ */ I(B, {
|
|
495
495
|
style: [W.error, { color: g.error }],
|
|
496
496
|
children: f
|
|
497
497
|
}),
|
|
498
|
-
m && !f && /* @__PURE__ */
|
|
498
|
+
m && !f && /* @__PURE__ */ I(B, {
|
|
499
499
|
style: [W.helperText, { color: g.textMuted }],
|
|
500
500
|
children: m
|
|
501
501
|
})
|
|
@@ -589,19 +589,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
589
589
|
fontSize: 14
|
|
590
590
|
}
|
|
591
591
|
}), Oe = ({ field: e, extra: t }) => {
|
|
592
|
-
let r = n(), { value: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } =
|
|
592
|
+
let r = n(), { value: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = x(), f = o.data.options || [], p = f.length > 0, m = Array.isArray(i) ? i : [], h = typeof i == "boolean" ? i : !1, g = (e) => {
|
|
593
593
|
s(p ? m.includes(e) ? m.filter((t) => t !== e) : [...m, e] : !h);
|
|
594
594
|
}, _ = (e) => p ? m.includes(e) : h;
|
|
595
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ L(H, {
|
|
596
596
|
style: G.container,
|
|
597
597
|
children: [
|
|
598
|
-
/* @__PURE__ */
|
|
598
|
+
/* @__PURE__ */ I(a, {
|
|
599
599
|
label: l,
|
|
600
600
|
required: o.data.required
|
|
601
601
|
}),
|
|
602
602
|
f.length > 0 ? f.map((e) => {
|
|
603
603
|
let t = r(e.description);
|
|
604
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ L(V, {
|
|
605
605
|
style: G.option,
|
|
606
606
|
onPress: () => g(e.value),
|
|
607
607
|
disabled: e.disabled,
|
|
@@ -614,7 +614,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
614
614
|
},
|
|
615
615
|
accessibilityLabel: r(e.label) || e.value,
|
|
616
616
|
children: [
|
|
617
|
-
/* @__PURE__ */
|
|
617
|
+
/* @__PURE__ */ I(H, {
|
|
618
618
|
style: [
|
|
619
619
|
G.checkbox,
|
|
620
620
|
{
|
|
@@ -626,32 +626,32 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
626
626
|
borderColor: d.primary
|
|
627
627
|
}
|
|
628
628
|
],
|
|
629
|
-
children: _(e.value) && /* @__PURE__ */
|
|
629
|
+
children: _(e.value) && /* @__PURE__ */ I(B, {
|
|
630
630
|
style: G.checkmark,
|
|
631
631
|
children: "✓"
|
|
632
632
|
})
|
|
633
633
|
}),
|
|
634
|
-
e.image ? /* @__PURE__ */
|
|
634
|
+
e.image ? /* @__PURE__ */ I(pe, {
|
|
635
635
|
source: { uri: e.image },
|
|
636
636
|
style: G.image
|
|
637
637
|
}) : null,
|
|
638
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ L(H, {
|
|
639
639
|
style: G.optionTextContainer,
|
|
640
|
-
children: [/* @__PURE__ */
|
|
640
|
+
children: [/* @__PURE__ */ I(B, {
|
|
641
641
|
style: [
|
|
642
642
|
G.optionLabel,
|
|
643
643
|
{ color: d.textSecondary },
|
|
644
644
|
e.disabled && { color: d.textMuted }
|
|
645
645
|
],
|
|
646
646
|
children: r(e.label) || e.value
|
|
647
|
-
}), t && /* @__PURE__ */
|
|
647
|
+
}), t && /* @__PURE__ */ I(B, {
|
|
648
648
|
style: [G.optionDescription, { color: d.textMuted }],
|
|
649
649
|
children: t
|
|
650
650
|
})]
|
|
651
651
|
})
|
|
652
652
|
]
|
|
653
653
|
}, e.value);
|
|
654
|
-
}) : /* @__PURE__ */
|
|
654
|
+
}) : /* @__PURE__ */ L(V, {
|
|
655
655
|
style: G.option,
|
|
656
656
|
onPress: () => g(""),
|
|
657
657
|
activeOpacity: .7,
|
|
@@ -659,7 +659,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
659
659
|
accessibilityRole: "checkbox",
|
|
660
660
|
accessibilityState: { checked: h },
|
|
661
661
|
accessibilityLabel: l || o.data.name,
|
|
662
|
-
children: [/* @__PURE__ */
|
|
662
|
+
children: [/* @__PURE__ */ I(H, {
|
|
663
663
|
style: [
|
|
664
664
|
G.checkbox,
|
|
665
665
|
{
|
|
@@ -671,20 +671,20 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
671
671
|
borderColor: d.primary
|
|
672
672
|
}
|
|
673
673
|
],
|
|
674
|
-
children: h && /* @__PURE__ */
|
|
674
|
+
children: h && /* @__PURE__ */ I(B, {
|
|
675
675
|
style: G.checkmark,
|
|
676
676
|
children: "✓"
|
|
677
677
|
})
|
|
678
|
-
}), l && /* @__PURE__ */
|
|
678
|
+
}), l && /* @__PURE__ */ I(B, {
|
|
679
679
|
style: [G.optionLabel, { color: d.textSecondary }],
|
|
680
680
|
children: l
|
|
681
681
|
})]
|
|
682
682
|
}),
|
|
683
|
-
c && /* @__PURE__ */
|
|
683
|
+
c && /* @__PURE__ */ I(B, {
|
|
684
684
|
style: [G.error, { color: d.error }],
|
|
685
685
|
children: c
|
|
686
686
|
}),
|
|
687
|
-
u && !c && /* @__PURE__ */
|
|
687
|
+
u && !c && /* @__PURE__ */ I(B, {
|
|
688
688
|
style: [G.helperText, { color: d.textMuted }],
|
|
689
689
|
children: u
|
|
690
690
|
})
|
|
@@ -732,14 +732,14 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
732
732
|
optionLabel: { fontSize: 14 },
|
|
733
733
|
optionTextContainer: { flex: 1 }
|
|
734
734
|
}), ke = ({ field: e, extra: t }) => {
|
|
735
|
-
let [r, i] =
|
|
735
|
+
let [r, i] = P(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = x(), m = n(), h = a ? new Date(a) : void 0, { year: g, month: _, today: v } = le(() => {
|
|
736
736
|
let e = h || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
|
|
737
737
|
return r.setHours(0, 0, 0, 0), {
|
|
738
738
|
month: n,
|
|
739
739
|
today: r,
|
|
740
740
|
year: t
|
|
741
741
|
};
|
|
742
|
-
}, [h]), [y,
|
|
742
|
+
}, [h]), [y, b] = P(g), [S, C] = P(_), w = [
|
|
743
743
|
"January",
|
|
744
744
|
"February",
|
|
745
745
|
"March",
|
|
@@ -752,7 +752,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
752
752
|
"October",
|
|
753
753
|
"November",
|
|
754
754
|
"December"
|
|
755
|
-
],
|
|
755
|
+
], T = le(() => {
|
|
756
756
|
let e = new Date(y, S, 1).getDay(), t = new Date(y, S + 1, 0).getDate(), n = new Date(y, S, 0).getDate(), r = [];
|
|
757
757
|
for (let t = e - 1; t >= 0; t--) r.push({
|
|
758
758
|
date: new Date(y, S - 1, n - t),
|
|
@@ -771,25 +771,25 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
771
771
|
isCurrentMonth: !1
|
|
772
772
|
});
|
|
773
773
|
return r;
|
|
774
|
-
}, [y, S]),
|
|
774
|
+
}, [y, S]), E = ce((e) => {
|
|
775
775
|
c.data.disablePast && e < v || (l(e.toISOString()), i(!1));
|
|
776
776
|
}, [
|
|
777
777
|
c.data.disablePast,
|
|
778
778
|
v,
|
|
779
779
|
l
|
|
780
|
-
]),
|
|
781
|
-
S === 0 ? (C(11),
|
|
782
|
-
},
|
|
783
|
-
S === 11 ? (C(0),
|
|
780
|
+
]), ee = () => {
|
|
781
|
+
S === 0 ? (C(11), b(y - 1)) : C(S - 1);
|
|
782
|
+
}, te = () => {
|
|
783
|
+
S === 11 ? (C(0), b(y + 1)) : C(S + 1);
|
|
784
784
|
}, D = () => h ? h.toLocaleDateString() : o || m("renderer.defaultInputs.selectDate"), ne = (e) => c.data.disablePast ? e < v : !1, O = (e) => h ? e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear() : !1;
|
|
785
|
-
return /* @__PURE__ */
|
|
785
|
+
return /* @__PURE__ */ L(H, {
|
|
786
786
|
style: K.container,
|
|
787
787
|
children: [
|
|
788
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ I(s, {
|
|
789
789
|
label: d,
|
|
790
790
|
required: c.data.required
|
|
791
791
|
}),
|
|
792
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ L(V, {
|
|
793
793
|
style: [
|
|
794
794
|
K.trigger,
|
|
795
795
|
{
|
|
@@ -800,7 +800,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
800
800
|
],
|
|
801
801
|
onPress: () => i(!0),
|
|
802
802
|
activeOpacity: .7,
|
|
803
|
-
children: [/* @__PURE__ */
|
|
803
|
+
children: [/* @__PURE__ */ I(B, {
|
|
804
804
|
style: [
|
|
805
805
|
K.triggerText,
|
|
806
806
|
{ color: p.text },
|
|
@@ -808,68 +808,68 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
808
808
|
],
|
|
809
809
|
numberOfLines: 1,
|
|
810
810
|
children: D()
|
|
811
|
-
}), /* @__PURE__ */
|
|
811
|
+
}), /* @__PURE__ */ I(B, {
|
|
812
812
|
style: K.icon,
|
|
813
813
|
children: "📅"
|
|
814
814
|
})]
|
|
815
815
|
}),
|
|
816
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ I(me, {
|
|
817
817
|
visible: r,
|
|
818
818
|
transparent: !0,
|
|
819
819
|
animationType: "fade",
|
|
820
820
|
onRequestClose: () => i(!1),
|
|
821
|
-
children: /* @__PURE__ */
|
|
821
|
+
children: /* @__PURE__ */ I(V, {
|
|
822
822
|
style: K.modalOverlay,
|
|
823
823
|
activeOpacity: 1,
|
|
824
824
|
onPress: () => i(!1),
|
|
825
|
-
children: /* @__PURE__ */
|
|
825
|
+
children: /* @__PURE__ */ L(V, {
|
|
826
826
|
style: [K.modalContent, { backgroundColor: p.card }],
|
|
827
827
|
activeOpacity: 1,
|
|
828
828
|
onPress: () => {},
|
|
829
829
|
children: [
|
|
830
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ L(H, {
|
|
831
831
|
style: [K.modalHeader, { borderBottomColor: p.separator }],
|
|
832
|
-
children: [/* @__PURE__ */
|
|
832
|
+
children: [/* @__PURE__ */ I(B, {
|
|
833
833
|
style: [K.modalTitle, { color: p.text }],
|
|
834
834
|
children: d || o || m("renderer.defaultInputs.selectDate")
|
|
835
|
-
}), /* @__PURE__ */
|
|
835
|
+
}), /* @__PURE__ */ I(V, {
|
|
836
836
|
onPress: () => i(!1),
|
|
837
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ I(B, {
|
|
838
838
|
style: [K.closeButton, { color: p.textMuted }],
|
|
839
839
|
children: "✕"
|
|
840
840
|
})
|
|
841
841
|
})]
|
|
842
842
|
}),
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ L(H, {
|
|
844
844
|
style: K.calendarHeader,
|
|
845
845
|
children: [
|
|
846
|
-
/* @__PURE__ */
|
|
847
|
-
onPress:
|
|
846
|
+
/* @__PURE__ */ I(V, {
|
|
847
|
+
onPress: ee,
|
|
848
848
|
style: K.navButton,
|
|
849
|
-
children: /* @__PURE__ */
|
|
849
|
+
children: /* @__PURE__ */ I(B, {
|
|
850
850
|
style: [K.navButtonText, { color: p.primary }],
|
|
851
851
|
children: "‹"
|
|
852
852
|
})
|
|
853
853
|
}),
|
|
854
|
-
/* @__PURE__ */
|
|
854
|
+
/* @__PURE__ */ L(B, {
|
|
855
855
|
style: [K.monthYear, { color: p.text }],
|
|
856
856
|
children: [
|
|
857
|
-
|
|
857
|
+
w[S],
|
|
858
858
|
" ",
|
|
859
859
|
y
|
|
860
860
|
]
|
|
861
861
|
}),
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
onPress:
|
|
862
|
+
/* @__PURE__ */ I(V, {
|
|
863
|
+
onPress: te,
|
|
864
864
|
style: K.navButton,
|
|
865
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ I(B, {
|
|
866
866
|
style: [K.navButtonText, { color: p.primary }],
|
|
867
867
|
children: "›"
|
|
868
868
|
})
|
|
869
869
|
})
|
|
870
870
|
]
|
|
871
871
|
}),
|
|
872
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ I(H, {
|
|
873
873
|
style: K.weekDays,
|
|
874
874
|
children: [
|
|
875
875
|
"Sun",
|
|
@@ -879,13 +879,13 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
879
879
|
"Thu",
|
|
880
880
|
"Fri",
|
|
881
881
|
"Sat"
|
|
882
|
-
].map((e) => /* @__PURE__ */
|
|
882
|
+
].map((e) => /* @__PURE__ */ I(B, {
|
|
883
883
|
style: [K.weekDay, { color: p.textMuted }],
|
|
884
884
|
children: e
|
|
885
885
|
}, e))
|
|
886
886
|
}),
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
data:
|
|
887
|
+
/* @__PURE__ */ I(fe, {
|
|
888
|
+
data: T,
|
|
889
889
|
keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
|
|
890
890
|
numColumns: 7,
|
|
891
891
|
scrollEnabled: !1,
|
|
@@ -893,7 +893,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
893
893
|
contentContainerStyle: K.calendarContent,
|
|
894
894
|
renderItem: ({ item: e }) => {
|
|
895
895
|
let t = ne(e.date), n = O(e.date);
|
|
896
|
-
return /* @__PURE__ */
|
|
896
|
+
return /* @__PURE__ */ I(V, {
|
|
897
897
|
style: [
|
|
898
898
|
K.dayCell,
|
|
899
899
|
!e.isCurrentMonth && K.dayCellOtherMonth,
|
|
@@ -903,10 +903,10 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
903
903
|
},
|
|
904
904
|
t && K.dayCellDisabled
|
|
905
905
|
],
|
|
906
|
-
onPress: () =>
|
|
906
|
+
onPress: () => E(e.date),
|
|
907
907
|
disabled: t,
|
|
908
908
|
activeOpacity: .7,
|
|
909
|
-
children: /* @__PURE__ */
|
|
909
|
+
children: /* @__PURE__ */ I(B, {
|
|
910
910
|
style: [
|
|
911
911
|
K.dayText,
|
|
912
912
|
{ color: p.text },
|
|
@@ -926,11 +926,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
926
926
|
})
|
|
927
927
|
})
|
|
928
928
|
}),
|
|
929
|
-
u && /* @__PURE__ */
|
|
929
|
+
u && /* @__PURE__ */ I(B, {
|
|
930
930
|
style: [K.error, { color: p.error }],
|
|
931
931
|
children: u
|
|
932
932
|
}),
|
|
933
|
-
f && !u && /* @__PURE__ */
|
|
933
|
+
f && !u && /* @__PURE__ */ I(B, {
|
|
934
934
|
style: [K.helperText, { color: p.textMuted }],
|
|
935
935
|
children: f
|
|
936
936
|
})
|
|
@@ -1032,14 +1032,14 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1032
1032
|
marginBottom: 8
|
|
1033
1033
|
}
|
|
1034
1034
|
}), Ae = ({ field: e, extra: t }) => {
|
|
1035
|
-
let [r, i] =
|
|
1035
|
+
let [r, i] = P(!1), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, m = n(), { colors: h } = x(), 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: S } = le(() => {
|
|
1036
1036
|
let e = _ || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
|
|
1037
1037
|
return r.setHours(0, 0, 0, 0), {
|
|
1038
1038
|
month: n,
|
|
1039
1039
|
today: r,
|
|
1040
1040
|
year: t
|
|
1041
1041
|
};
|
|
1042
|
-
}, [_]), [C,
|
|
1042
|
+
}, [_]), [C, w] = P(y), [T, E] = P(b), ee = [
|
|
1043
1043
|
"January",
|
|
1044
1044
|
"February",
|
|
1045
1045
|
"March",
|
|
@@ -1052,26 +1052,26 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1052
1052
|
"October",
|
|
1053
1053
|
"November",
|
|
1054
1054
|
"December"
|
|
1055
|
-
],
|
|
1056
|
-
let e = new Date(C,
|
|
1055
|
+
], te = le(() => {
|
|
1056
|
+
let e = new Date(C, T, 1).getDay(), t = new Date(C, T + 1, 0).getDate(), n = new Date(C, T, 0).getDate(), r = [];
|
|
1057
1057
|
for (let t = e - 1; t >= 0; t--) r.push({
|
|
1058
|
-
date: new Date(C,
|
|
1058
|
+
date: new Date(C, T - 1, n - t),
|
|
1059
1059
|
day: n - t,
|
|
1060
1060
|
isCurrentMonth: !1
|
|
1061
1061
|
});
|
|
1062
1062
|
for (let e = 1; e <= t; e++) r.push({
|
|
1063
|
-
date: new Date(C,
|
|
1063
|
+
date: new Date(C, T, e),
|
|
1064
1064
|
day: e,
|
|
1065
1065
|
isCurrentMonth: !0
|
|
1066
1066
|
});
|
|
1067
1067
|
let i = 42 - r.length;
|
|
1068
1068
|
for (let e = 1; e <= i; e++) r.push({
|
|
1069
|
-
date: new Date(C,
|
|
1069
|
+
date: new Date(C, T + 1, e),
|
|
1070
1070
|
day: e,
|
|
1071
1071
|
isCurrentMonth: !1
|
|
1072
1072
|
});
|
|
1073
1073
|
return r;
|
|
1074
|
-
}, [C,
|
|
1074
|
+
}, [C, T]), D = ce((e) => {
|
|
1075
1075
|
l.data.disablePast && e < S || (a ? (u([e.toISOString(), v?.toISOString()]), o(!1)) : (u(_ && e < _ ? [e.toISOString(), _.toISOString()] : [_?.toISOString(), e.toISOString()]), i(!1), o(!0)));
|
|
1076
1076
|
}, [
|
|
1077
1077
|
l.data.disablePast,
|
|
@@ -1081,22 +1081,22 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1081
1081
|
v,
|
|
1082
1082
|
u
|
|
1083
1083
|
]), ne = () => {
|
|
1084
|
-
|
|
1084
|
+
T === 0 ? (E(11), w(C - 1)) : E(T - 1);
|
|
1085
1085
|
}, O = () => {
|
|
1086
|
-
|
|
1087
|
-
}, k = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"),
|
|
1086
|
+
T === 11 ? (E(0), w(C + 1)) : E(T + 1);
|
|
1087
|
+
}, k = () => _ && v ? `${_.toLocaleDateString()} - ${v.toLocaleDateString()}` : _ ? _.toLocaleDateString() : m("renderer.defaultInputs.selectDateRange"), re = (e) => l.data.disablePast ? e < S : !1, ie = (e) => _ && v ? e >= _ && e <= v : !1, ae = (e) => {
|
|
1088
1088
|
if (!(_ || v)) return !1;
|
|
1089
1089
|
let t = _ && e.getDate() === _.getDate() && e.getMonth() === _.getMonth() && e.getFullYear() === _.getFullYear(), n = v && e.getDate() === v.getDate() && e.getMonth() === v.getMonth() && e.getFullYear() === v.getFullYear();
|
|
1090
1090
|
return t || n;
|
|
1091
1091
|
};
|
|
1092
|
-
return /* @__PURE__ */
|
|
1092
|
+
return /* @__PURE__ */ L(H, {
|
|
1093
1093
|
style: q.container,
|
|
1094
1094
|
children: [
|
|
1095
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ I(c, {
|
|
1096
1096
|
label: f,
|
|
1097
1097
|
required: l.data.required
|
|
1098
1098
|
}),
|
|
1099
|
-
/* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ L(V, {
|
|
1100
1100
|
style: [
|
|
1101
1101
|
q.trigger,
|
|
1102
1102
|
{
|
|
@@ -1107,7 +1107,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1107
1107
|
],
|
|
1108
1108
|
onPress: () => i(!0),
|
|
1109
1109
|
activeOpacity: .7,
|
|
1110
|
-
children: [/* @__PURE__ */
|
|
1110
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1111
1111
|
style: [
|
|
1112
1112
|
q.triggerText,
|
|
1113
1113
|
{ color: h.text },
|
|
@@ -1115,75 +1115,75 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1115
1115
|
],
|
|
1116
1116
|
numberOfLines: 1,
|
|
1117
1117
|
children: k()
|
|
1118
|
-
}), /* @__PURE__ */
|
|
1118
|
+
}), /* @__PURE__ */ I(B, {
|
|
1119
1119
|
style: q.icon,
|
|
1120
1120
|
children: "📅"
|
|
1121
1121
|
})]
|
|
1122
1122
|
}),
|
|
1123
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ I(me, {
|
|
1124
1124
|
visible: r,
|
|
1125
1125
|
transparent: !0,
|
|
1126
1126
|
animationType: "fade",
|
|
1127
1127
|
onRequestClose: () => i(!1),
|
|
1128
|
-
children: /* @__PURE__ */
|
|
1128
|
+
children: /* @__PURE__ */ I(V, {
|
|
1129
1129
|
style: q.modalOverlay,
|
|
1130
1130
|
activeOpacity: 1,
|
|
1131
1131
|
onPress: () => i(!1),
|
|
1132
|
-
children: /* @__PURE__ */
|
|
1132
|
+
children: /* @__PURE__ */ L(V, {
|
|
1133
1133
|
style: [q.modalContent, { backgroundColor: h.card }],
|
|
1134
1134
|
activeOpacity: 1,
|
|
1135
1135
|
onPress: () => {},
|
|
1136
1136
|
children: [
|
|
1137
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ L(H, {
|
|
1138
1138
|
style: [q.modalHeader, { borderBottomColor: h.separator }],
|
|
1139
|
-
children: [/* @__PURE__ */
|
|
1139
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1140
1140
|
style: [q.modalTitle, { color: h.text }],
|
|
1141
1141
|
children: f || m("renderer.defaultInputs.selectDateRange")
|
|
1142
|
-
}), /* @__PURE__ */
|
|
1142
|
+
}), /* @__PURE__ */ I(V, {
|
|
1143
1143
|
onPress: () => i(!1),
|
|
1144
|
-
children: /* @__PURE__ */
|
|
1144
|
+
children: /* @__PURE__ */ I(B, {
|
|
1145
1145
|
style: [q.closeButton, { color: h.textMuted }],
|
|
1146
1146
|
children: "✕"
|
|
1147
1147
|
})
|
|
1148
1148
|
})]
|
|
1149
1149
|
}),
|
|
1150
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ I(H, {
|
|
1151
1151
|
style: [q.rangeIndicator, { backgroundColor: h.primaryLight }],
|
|
1152
|
-
children: /* @__PURE__ */
|
|
1152
|
+
children: /* @__PURE__ */ I(B, {
|
|
1153
1153
|
style: [q.rangeIndicatorText, { color: h.primary }],
|
|
1154
1154
|
children: m(a ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
|
|
1155
1155
|
})
|
|
1156
1156
|
}),
|
|
1157
|
-
/* @__PURE__ */
|
|
1157
|
+
/* @__PURE__ */ L(H, {
|
|
1158
1158
|
style: q.calendarHeader,
|
|
1159
1159
|
children: [
|
|
1160
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ I(V, {
|
|
1161
1161
|
onPress: ne,
|
|
1162
1162
|
style: q.navButton,
|
|
1163
|
-
children: /* @__PURE__ */
|
|
1163
|
+
children: /* @__PURE__ */ I(B, {
|
|
1164
1164
|
style: [q.navButtonText, { color: h.primary }],
|
|
1165
1165
|
children: "‹"
|
|
1166
1166
|
})
|
|
1167
1167
|
}),
|
|
1168
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ L(B, {
|
|
1169
1169
|
style: [q.monthYear, { color: h.text }],
|
|
1170
1170
|
children: [
|
|
1171
|
-
|
|
1171
|
+
ee[T],
|
|
1172
1172
|
" ",
|
|
1173
1173
|
C
|
|
1174
1174
|
]
|
|
1175
1175
|
}),
|
|
1176
|
-
/* @__PURE__ */
|
|
1176
|
+
/* @__PURE__ */ I(V, {
|
|
1177
1177
|
onPress: O,
|
|
1178
1178
|
style: q.navButton,
|
|
1179
|
-
children: /* @__PURE__ */
|
|
1179
|
+
children: /* @__PURE__ */ I(B, {
|
|
1180
1180
|
style: [q.navButtonText, { color: h.primary }],
|
|
1181
1181
|
children: "›"
|
|
1182
1182
|
})
|
|
1183
1183
|
})
|
|
1184
1184
|
]
|
|
1185
1185
|
}),
|
|
1186
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ I(H, {
|
|
1187
1187
|
style: q.weekDays,
|
|
1188
1188
|
children: [
|
|
1189
1189
|
"Sun",
|
|
@@ -1193,21 +1193,21 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1193
1193
|
"Thu",
|
|
1194
1194
|
"Fri",
|
|
1195
1195
|
"Sat"
|
|
1196
|
-
].map((e) => /* @__PURE__ */
|
|
1196
|
+
].map((e) => /* @__PURE__ */ I(B, {
|
|
1197
1197
|
style: [q.weekDay, { color: h.textMuted }],
|
|
1198
1198
|
children: e
|
|
1199
1199
|
}, e))
|
|
1200
1200
|
}),
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
data:
|
|
1201
|
+
/* @__PURE__ */ I(fe, {
|
|
1202
|
+
data: te,
|
|
1203
1203
|
keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
|
|
1204
1204
|
numColumns: 7,
|
|
1205
1205
|
scrollEnabled: !1,
|
|
1206
1206
|
style: q.calendar,
|
|
1207
1207
|
contentContainerStyle: q.calendarContent,
|
|
1208
1208
|
renderItem: ({ item: e }) => {
|
|
1209
|
-
let t =
|
|
1210
|
-
return /* @__PURE__ */
|
|
1209
|
+
let t = re(e.date), n = ie(e.date), r = ae(e.date);
|
|
1210
|
+
return /* @__PURE__ */ I(V, {
|
|
1211
1211
|
style: [
|
|
1212
1212
|
q.dayCell,
|
|
1213
1213
|
!e.isCurrentMonth && q.dayCellOtherMonth,
|
|
@@ -1221,7 +1221,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1221
1221
|
onPress: () => D(e.date),
|
|
1222
1222
|
disabled: t,
|
|
1223
1223
|
activeOpacity: .7,
|
|
1224
|
-
children: /* @__PURE__ */
|
|
1224
|
+
children: /* @__PURE__ */ I(B, {
|
|
1225
1225
|
style: [
|
|
1226
1226
|
q.dayText,
|
|
1227
1227
|
{ color: h.text },
|
|
@@ -1242,11 +1242,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1242
1242
|
})
|
|
1243
1243
|
})
|
|
1244
1244
|
}),
|
|
1245
|
-
d && /* @__PURE__ */
|
|
1245
|
+
d && /* @__PURE__ */ I(B, {
|
|
1246
1246
|
style: [q.error, { color: h.error }],
|
|
1247
1247
|
children: d
|
|
1248
1248
|
}),
|
|
1249
|
-
p && !d && /* @__PURE__ */
|
|
1249
|
+
p && !d && /* @__PURE__ */ I(B, {
|
|
1250
1250
|
style: [q.helperText, { color: h.textMuted }],
|
|
1251
1251
|
children: p
|
|
1252
1252
|
})
|
|
@@ -1358,7 +1358,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1358
1358
|
marginBottom: 8
|
|
1359
1359
|
}
|
|
1360
1360
|
}), je = ({ field: e, extra: t }) => {
|
|
1361
|
-
let [r, i] =
|
|
1361
|
+
let [r, i] = P(null), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: f, label: p, helperText: m } = t, { colors: h } = x(), g = n(), _ = D(s), v = l.data.multiple, y = ce(async () => {
|
|
1362
1362
|
if (r) try {
|
|
1363
1363
|
let e = (await r({ allowMultiSelection: v })).map((e) => ({
|
|
1364
1364
|
data: e.uri,
|
|
@@ -1367,7 +1367,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1367
1367
|
size: e.size,
|
|
1368
1368
|
type: e.type || "application/octet-stream"
|
|
1369
1369
|
}));
|
|
1370
|
-
|
|
1370
|
+
u(v ? [..._, ...e] : e[0] || null);
|
|
1371
1371
|
} catch (e) {
|
|
1372
1372
|
e.code !== "DOCUMENT_PICKER_CANCELED" && ue.alert("Error", g("renderer.defaultInputs.filePickerError"));
|
|
1373
1373
|
}
|
|
@@ -1375,13 +1375,13 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1375
1375
|
r,
|
|
1376
1376
|
_,
|
|
1377
1377
|
v,
|
|
1378
|
-
|
|
1378
|
+
u,
|
|
1379
1379
|
g
|
|
1380
|
-
]),
|
|
1380
|
+
]), b = ce((e) => {
|
|
1381
1381
|
let t = _.filter((t, n) => n !== e);
|
|
1382
|
-
|
|
1383
|
-
}, [_,
|
|
1384
|
-
return
|
|
1382
|
+
u(t.length > 0 ? t : null);
|
|
1383
|
+
}, [_, u]);
|
|
1384
|
+
return M(() => {
|
|
1385
1385
|
(async () => {
|
|
1386
1386
|
try {
|
|
1387
1387
|
let { pick: e } = await import("react-native-document-picker");
|
|
@@ -1392,45 +1392,45 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1392
1392
|
o(!1);
|
|
1393
1393
|
}
|
|
1394
1394
|
})();
|
|
1395
|
-
}, []), a ? null : r ? /* @__PURE__ */
|
|
1395
|
+
}, []), a ? null : r ? /* @__PURE__ */ L(H, {
|
|
1396
1396
|
style: J.container,
|
|
1397
1397
|
children: [
|
|
1398
|
-
/* @__PURE__ */
|
|
1398
|
+
/* @__PURE__ */ I(c, {
|
|
1399
1399
|
label: p,
|
|
1400
1400
|
required: l.data.required
|
|
1401
1401
|
}),
|
|
1402
|
-
_.length > 0 && /* @__PURE__ */
|
|
1402
|
+
_.length > 0 && /* @__PURE__ */ I(H, {
|
|
1403
1403
|
style: J.filesList,
|
|
1404
|
-
children: _.map((e, t) => /* @__PURE__ */
|
|
1404
|
+
children: _.map((e, t) => /* @__PURE__ */ L(H, {
|
|
1405
1405
|
style: [J.fileItem, {
|
|
1406
1406
|
backgroundColor: h.card,
|
|
1407
1407
|
borderColor: h.separator
|
|
1408
1408
|
}],
|
|
1409
1409
|
children: [
|
|
1410
|
-
/* @__PURE__ */
|
|
1410
|
+
/* @__PURE__ */ I(H, {
|
|
1411
1411
|
style: [J.fileIcon, { backgroundColor: h.muted }],
|
|
1412
|
-
children: /* @__PURE__ */
|
|
1412
|
+
children: /* @__PURE__ */ I(B, {
|
|
1413
1413
|
style: J.fileIconText,
|
|
1414
1414
|
children: "📄"
|
|
1415
1415
|
})
|
|
1416
1416
|
}),
|
|
1417
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ L(H, {
|
|
1418
1418
|
style: J.fileInfo,
|
|
1419
|
-
children: [/* @__PURE__ */
|
|
1419
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1420
1420
|
style: [J.fileName, { color: h.text }],
|
|
1421
1421
|
numberOfLines: 1,
|
|
1422
1422
|
children: e.name
|
|
1423
|
-
}), e.size > 0 && /* @__PURE__ */
|
|
1423
|
+
}), e.size > 0 && /* @__PURE__ */ I(B, {
|
|
1424
1424
|
style: [J.fileSize, { color: h.textMuted }],
|
|
1425
|
-
children:
|
|
1425
|
+
children: d(e.size)
|
|
1426
1426
|
})]
|
|
1427
1427
|
}),
|
|
1428
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ I(V, {
|
|
1429
1429
|
style: J.removeButton,
|
|
1430
|
-
onPress: () =>
|
|
1430
|
+
onPress: () => b(t),
|
|
1431
1431
|
activeOpacity: .7,
|
|
1432
1432
|
accessibilityLabel: g("renderer.defaultInputs.removeFile"),
|
|
1433
|
-
children: /* @__PURE__ */
|
|
1433
|
+
children: /* @__PURE__ */ I(B, {
|
|
1434
1434
|
style: [J.removeButtonText, { color: h.textMuted }],
|
|
1435
1435
|
children: "✕"
|
|
1436
1436
|
})
|
|
@@ -1438,45 +1438,45 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1438
1438
|
]
|
|
1439
1439
|
}, `${e.name}-${t}`))
|
|
1440
1440
|
}),
|
|
1441
|
-
/* @__PURE__ */
|
|
1441
|
+
/* @__PURE__ */ I(V, {
|
|
1442
1442
|
style: [J.pickButton, {
|
|
1443
1443
|
backgroundColor: h.input,
|
|
1444
1444
|
borderColor: h.border
|
|
1445
1445
|
}],
|
|
1446
1446
|
onPress: y,
|
|
1447
1447
|
activeOpacity: .7,
|
|
1448
|
-
children: /* @__PURE__ */
|
|
1448
|
+
children: /* @__PURE__ */ I(B, {
|
|
1449
1449
|
style: [J.pickButtonText, { color: h.textMuted }],
|
|
1450
1450
|
children: _.length === 0 ? g(v ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : g(v ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
|
|
1451
1451
|
})
|
|
1452
1452
|
}),
|
|
1453
|
-
f && /* @__PURE__ */
|
|
1453
|
+
f && /* @__PURE__ */ I(B, {
|
|
1454
1454
|
style: [J.error, { color: h.error }],
|
|
1455
1455
|
children: f
|
|
1456
1456
|
}),
|
|
1457
|
-
m && !f && /* @__PURE__ */
|
|
1457
|
+
m && !f && /* @__PURE__ */ I(B, {
|
|
1458
1458
|
style: [J.helperText, { color: h.textMuted }],
|
|
1459
1459
|
children: m
|
|
1460
1460
|
})
|
|
1461
1461
|
]
|
|
1462
|
-
}) : /* @__PURE__ */
|
|
1462
|
+
}) : /* @__PURE__ */ L(H, {
|
|
1463
1463
|
style: J.container,
|
|
1464
1464
|
children: [
|
|
1465
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ I(c, {
|
|
1466
1466
|
label: p,
|
|
1467
1467
|
required: l.data.required
|
|
1468
1468
|
}),
|
|
1469
|
-
/* @__PURE__ */
|
|
1469
|
+
/* @__PURE__ */ I(H, {
|
|
1470
1470
|
style: [J.unavailableContainer, {
|
|
1471
1471
|
backgroundColor: h.errorLight,
|
|
1472
1472
|
borderColor: h.error
|
|
1473
1473
|
}],
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1474
|
+
children: /* @__PURE__ */ I(B, {
|
|
1475
1475
|
style: [J.unavailableText, { color: h.error }],
|
|
1476
1476
|
children: g("renderer.defaultInputs.filePickerUnavailable")
|
|
1477
1477
|
})
|
|
1478
1478
|
}),
|
|
1479
|
-
m && /* @__PURE__ */
|
|
1479
|
+
m && /* @__PURE__ */ I(B, {
|
|
1480
1480
|
style: [J.helperText, { color: h.textMuted }],
|
|
1481
1481
|
children: m
|
|
1482
1482
|
})
|
|
@@ -1547,13 +1547,13 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1547
1547
|
textAlign: "center"
|
|
1548
1548
|
}
|
|
1549
1549
|
}), Me = (e) => null, Ne = ({ missing: e, children: t }) => {
|
|
1550
|
-
let r = n(), { colors: i } =
|
|
1551
|
-
return /* @__PURE__ */
|
|
1550
|
+
let r = n(), { colors: i } = x();
|
|
1551
|
+
return /* @__PURE__ */ L(F, { children: [t, e.length > 0 && /* @__PURE__ */ L(H, {
|
|
1552
1552
|
style: Pe.container,
|
|
1553
|
-
children: [/* @__PURE__ */
|
|
1553
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1554
1554
|
style: [Pe.title, { color: i.textMuted }],
|
|
1555
1555
|
children: r("renderer.dependencyHint.title")
|
|
1556
|
-
}), e.map((e) => /* @__PURE__ */
|
|
1556
|
+
}), e.map((e) => /* @__PURE__ */ L(B, {
|
|
1557
1557
|
style: [Pe.item, { color: i.textMuted }],
|
|
1558
1558
|
children: [
|
|
1559
1559
|
"•",
|
|
@@ -1582,42 +1582,42 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1582
1582
|
let i = t[r], a = i == null ? "" : String(i);
|
|
1583
1583
|
return n ? encodeURIComponent(a) : a;
|
|
1584
1584
|
}), Re = ({ field: e, extra: o }) => {
|
|
1585
|
-
let [
|
|
1586
|
-
|
|
1585
|
+
let [s, u] = P(!1), [d, f] = P(null), [p, m] = P([]), [h, g] = P(""), [_, y] = P(!1), { value: b, placeholder: S } = e, { InputLabel: C, node: T, setValue: E, error: D, label: O, helperText: k, missingDependencies: re } = o, { formValues: ie, inputNodes: ae, headers: oe, baseUrl: se } = l(), { colors: A } = x(), { httpConfig: j } = T.data, F = n(), ue = N(!1), de = N(!1), pe = N(""), he = N(j), z = N(ie), ge = N(ae), ve = N(oe), ye = N(se), be = N(E), xe = N(null), Se = N(null), Ce = N(T.data.normalizeOptionLabels !== !1), we = le(() => j?.url ? Fe(j.url) : [], [j?.url]), U = we.length > 0, Ee = le(() => we.map((e) => `${e}:${String(ie[e] ?? "")}`).join("|"), [we, ie]), De = le(() => j?.url ? U ? Ie(j.url, ie) : !0 : !1, [
|
|
1586
|
+
j?.url,
|
|
1587
1587
|
U,
|
|
1588
|
-
|
|
1589
|
-
]), W =
|
|
1588
|
+
ie
|
|
1589
|
+
]), W = ce(async (e) => {
|
|
1590
1590
|
Se.current && Se.current.abort();
|
|
1591
1591
|
let n = new AbortController();
|
|
1592
1592
|
Se.current = n;
|
|
1593
|
-
let o = he.current,
|
|
1593
|
+
let o = he.current, s = z.current, l = be.current;
|
|
1594
1594
|
if (!o?.url) {
|
|
1595
|
-
f(
|
|
1595
|
+
f(F("renderer.defaultHttpInput.noUrlConfigured")), Se.current = null;
|
|
1596
1596
|
return;
|
|
1597
1597
|
}
|
|
1598
|
-
if (o.url && !Ie(o.url,
|
|
1598
|
+
if (o.url && !Ie(o.url, s)) {
|
|
1599
1599
|
Se.current = null;
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
1602
|
u(!0), f(null);
|
|
1603
1603
|
try {
|
|
1604
|
-
let u = i(Le(o.url,
|
|
1604
|
+
let u = i(Le(o.url, s, !0), ye.current), d = c(o.searchParam && e ? `${u}${u.includes("?") ? "&" : "?"}${o.searchParam}=${encodeURIComponent(e)}` : u, r(o.queryParams, s)), p = v({ "Content-Type": "application/json" }, r(ve.current, s), r(o.headers, s)), h = [
|
|
1605
1605
|
"POST",
|
|
1606
1606
|
"PUT",
|
|
1607
1607
|
"PATCH"
|
|
1608
|
-
].includes(o.method || "") ? o.sendAllFormValues ? JSON.stringify(
|
|
1608
|
+
].includes(o.method || "") ? o.sendAllFormValues ? JSON.stringify(w(s, ge.current)) : ee(o.body, s, ge.current) : void 0, g = setTimeout(() => n.abort(), 3e4), _ = await fetch(d, {
|
|
1609
1609
|
body: h || void 0,
|
|
1610
1610
|
headers: Object.fromEntries(Object.entries(p).filter(([, e]) => e)),
|
|
1611
1611
|
method: o.method || "GET",
|
|
1612
1612
|
signal: n.signal
|
|
1613
1613
|
});
|
|
1614
|
-
if (clearTimeout(g), !
|
|
1615
|
-
f(`HTTP Error ${
|
|
1614
|
+
if (clearTimeout(g), !_.ok) {
|
|
1615
|
+
f(`HTTP Error ${_.status}: ${_.statusText}`);
|
|
1616
1616
|
return;
|
|
1617
1617
|
}
|
|
1618
|
-
let y = a(await
|
|
1618
|
+
let y = a(await _.text());
|
|
1619
1619
|
if (!y.ok) {
|
|
1620
|
-
f(
|
|
1620
|
+
f(F("renderer.defaultHttpInput.invalidJson"));
|
|
1621
1621
|
return;
|
|
1622
1622
|
}
|
|
1623
1623
|
let b = ne(y.value), x = o.responsePath ? t(b, o.responsePath) : b;
|
|
@@ -1628,37 +1628,37 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1628
1628
|
return {
|
|
1629
1629
|
description: s != null && s !== "" ? String(s) : void 0,
|
|
1630
1630
|
image: typeof c == "string" && c !== "" ? c : void 0,
|
|
1631
|
-
label: a ?
|
|
1631
|
+
label: a ? te(l) : l,
|
|
1632
1632
|
value: String(t(o, e) || "")
|
|
1633
1633
|
};
|
|
1634
1634
|
}));
|
|
1635
1635
|
} else l(typeof x == "string" ? x : JSON.stringify(x));
|
|
1636
1636
|
} catch (e) {
|
|
1637
1637
|
if (e instanceof Error && e.name === "AbortError") return;
|
|
1638
|
-
f(e instanceof Error ? e.message :
|
|
1638
|
+
f(e instanceof Error ? e.message : F("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
|
|
1639
1639
|
} finally {
|
|
1640
1640
|
Se.current === n && (u(!1), Se.current = null);
|
|
1641
1641
|
}
|
|
1642
|
-
}, [
|
|
1643
|
-
if (
|
|
1644
|
-
he.current =
|
|
1642
|
+
}, [F]);
|
|
1643
|
+
if (M(() => {
|
|
1644
|
+
he.current = j, z.current = ie, ge.current = ae, ve.current = oe, ye.current = se, be.current = E, xe.current = W, Ce.current = T.data.normalizeOptionLabels !== !1;
|
|
1645
1645
|
}, [
|
|
1646
|
-
N,
|
|
1647
1646
|
j,
|
|
1648
|
-
re,
|
|
1649
1647
|
ie,
|
|
1650
1648
|
ae,
|
|
1651
|
-
|
|
1649
|
+
oe,
|
|
1650
|
+
se,
|
|
1651
|
+
E,
|
|
1652
1652
|
W,
|
|
1653
|
-
|
|
1654
|
-
]),
|
|
1653
|
+
T.data.normalizeOptionLabels
|
|
1654
|
+
]), M(() => () => {
|
|
1655
1655
|
Se.current && Se.current.abort(), ue.current = !1, de.current = !1;
|
|
1656
|
-
}, []),
|
|
1656
|
+
}, []), M(() => {
|
|
1657
1657
|
if (ue.current) return;
|
|
1658
1658
|
ue.current = !0;
|
|
1659
1659
|
let e = he.current, t = z.current, n = xe.current, r = e?.url && Ie(e.url, t);
|
|
1660
1660
|
e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Fe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
|
|
1661
|
-
}, []),
|
|
1661
|
+
}, []), M(() => {
|
|
1662
1662
|
if (!ue.current || !U || pe.current === Ee || !De) return;
|
|
1663
1663
|
let e = setTimeout(() => {
|
|
1664
1664
|
W(), pe.current = Ee;
|
|
@@ -1669,77 +1669,77 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1669
1669
|
U,
|
|
1670
1670
|
De,
|
|
1671
1671
|
W
|
|
1672
|
-
]),
|
|
1672
|
+
]), M(() => {
|
|
1673
1673
|
if (!de.current) {
|
|
1674
1674
|
de.current = !0;
|
|
1675
1675
|
return;
|
|
1676
1676
|
}
|
|
1677
1677
|
let e = he.current, t = z.current, n = xe.current, r = e?.url && Ie(e.url, t);
|
|
1678
1678
|
e?.fetchOnMount && r && n && (n(), e.url && (pe.current = Fe(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
|
|
1679
|
-
}, [
|
|
1680
|
-
body:
|
|
1681
|
-
fetchOnMount:
|
|
1682
|
-
headers:
|
|
1683
|
-
method:
|
|
1684
|
-
queryParams:
|
|
1685
|
-
responseMapping:
|
|
1686
|
-
responsePath:
|
|
1687
|
-
searchParam:
|
|
1688
|
-
sendAllFormValues:
|
|
1689
|
-
url:
|
|
1690
|
-
}), [
|
|
1691
|
-
if (!(
|
|
1679
|
+
}, [le(() => JSON.stringify({
|
|
1680
|
+
body: j?.body,
|
|
1681
|
+
fetchOnMount: j?.fetchOnMount,
|
|
1682
|
+
headers: j?.headers,
|
|
1683
|
+
method: j?.method,
|
|
1684
|
+
queryParams: j?.queryParams,
|
|
1685
|
+
responseMapping: j?.responseMapping,
|
|
1686
|
+
responsePath: j?.responsePath,
|
|
1687
|
+
searchParam: j?.searchParam,
|
|
1688
|
+
sendAllFormValues: j?.sendAllFormValues,
|
|
1689
|
+
url: j?.url
|
|
1690
|
+
}), [j])]), M(() => {
|
|
1691
|
+
if (!(j?.searchParam && h)) return;
|
|
1692
1692
|
let e = setTimeout(() => {
|
|
1693
1693
|
W(h);
|
|
1694
1694
|
}, 300);
|
|
1695
1695
|
return () => clearTimeout(e);
|
|
1696
1696
|
}, [
|
|
1697
1697
|
h,
|
|
1698
|
-
|
|
1698
|
+
j?.searchParam,
|
|
1699
1699
|
W
|
|
1700
|
-
]),
|
|
1701
|
-
let e = Array.isArray(
|
|
1702
|
-
if (
|
|
1703
|
-
let n =
|
|
1704
|
-
return /* @__PURE__ */
|
|
1700
|
+
]), j?.responseMapping) {
|
|
1701
|
+
let e = Array.isArray(b) ? b[0] : b, t = p.find((t) => t.value === e);
|
|
1702
|
+
if (j.searchParam) {
|
|
1703
|
+
let n = s && j?.showLoading;
|
|
1704
|
+
return /* @__PURE__ */ L(H, {
|
|
1705
1705
|
style: Y.container,
|
|
1706
1706
|
children: [
|
|
1707
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ I(C, {
|
|
1708
1708
|
label: O,
|
|
1709
|
-
required:
|
|
1709
|
+
required: T.data.required
|
|
1710
1710
|
}),
|
|
1711
|
-
/* @__PURE__ */
|
|
1712
|
-
missing:
|
|
1713
|
-
children: /* @__PURE__ */
|
|
1711
|
+
/* @__PURE__ */ I(Ne, {
|
|
1712
|
+
missing: re,
|
|
1713
|
+
children: /* @__PURE__ */ L(V, {
|
|
1714
1714
|
style: [
|
|
1715
1715
|
Y.trigger,
|
|
1716
1716
|
{
|
|
1717
|
-
backgroundColor:
|
|
1718
|
-
borderColor:
|
|
1717
|
+
backgroundColor: A.input,
|
|
1718
|
+
borderColor: A.border
|
|
1719
1719
|
},
|
|
1720
|
-
D && { borderColor:
|
|
1721
|
-
|
|
1720
|
+
D && { borderColor: A.error },
|
|
1721
|
+
re.length > 0 && { backgroundColor: A.muted }
|
|
1722
1722
|
],
|
|
1723
1723
|
onPress: () => y(!0),
|
|
1724
|
-
disabled:
|
|
1724
|
+
disabled: re.length > 0,
|
|
1725
1725
|
activeOpacity: .7,
|
|
1726
1726
|
children: [
|
|
1727
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ I(B, {
|
|
1728
1728
|
style: [
|
|
1729
1729
|
Y.triggerText,
|
|
1730
|
-
{ color:
|
|
1731
|
-
!t && { color:
|
|
1730
|
+
{ color: A.text },
|
|
1731
|
+
!t && { color: A.textMuted }
|
|
1732
1732
|
],
|
|
1733
1733
|
numberOfLines: 1,
|
|
1734
|
-
children: t?.label || S ||
|
|
1734
|
+
children: t?.label || S || F("renderer.defaultHttpInput.search")
|
|
1735
1735
|
}),
|
|
1736
|
-
n && /* @__PURE__ */
|
|
1736
|
+
n && /* @__PURE__ */ I(R, {
|
|
1737
1737
|
size: "small",
|
|
1738
|
-
color:
|
|
1738
|
+
color: A.primary,
|
|
1739
1739
|
style: Y.triggerLoader
|
|
1740
1740
|
}),
|
|
1741
|
-
e ? /* @__PURE__ */
|
|
1742
|
-
onPress: () =>
|
|
1741
|
+
e ? /* @__PURE__ */ I(V, {
|
|
1742
|
+
onPress: () => E(""),
|
|
1743
1743
|
hitSlop: {
|
|
1744
1744
|
bottom: 8,
|
|
1745
1745
|
left: 8,
|
|
@@ -1747,55 +1747,55 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1747
1747
|
top: 8
|
|
1748
1748
|
},
|
|
1749
1749
|
style: Y.clearButton,
|
|
1750
|
-
children: /* @__PURE__ */
|
|
1751
|
-
style: [Y.clearIcon, { color:
|
|
1750
|
+
children: /* @__PURE__ */ I(B, {
|
|
1751
|
+
style: [Y.clearIcon, { color: A.textMuted }],
|
|
1752
1752
|
children: "✕"
|
|
1753
1753
|
})
|
|
1754
1754
|
}) : null,
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
style: [Y.arrow, { color:
|
|
1755
|
+
/* @__PURE__ */ I(B, {
|
|
1756
|
+
style: [Y.arrow, { color: A.textMuted }],
|
|
1757
1757
|
children: "▼"
|
|
1758
1758
|
})
|
|
1759
1759
|
]
|
|
1760
1760
|
})
|
|
1761
1761
|
}),
|
|
1762
|
-
/* @__PURE__ */
|
|
1763
|
-
visible:
|
|
1762
|
+
/* @__PURE__ */ I(me, {
|
|
1763
|
+
visible: _,
|
|
1764
1764
|
transparent: !0,
|
|
1765
1765
|
animationType: "fade",
|
|
1766
1766
|
onRequestClose: () => y(!1),
|
|
1767
|
-
children: /* @__PURE__ */
|
|
1767
|
+
children: /* @__PURE__ */ I(V, {
|
|
1768
1768
|
style: Y.modalOverlay,
|
|
1769
1769
|
activeOpacity: 1,
|
|
1770
1770
|
onPress: () => y(!1),
|
|
1771
|
-
children: /* @__PURE__ */
|
|
1772
|
-
style: [Y.modalContent, { backgroundColor:
|
|
1771
|
+
children: /* @__PURE__ */ L(V, {
|
|
1772
|
+
style: [Y.modalContent, { backgroundColor: A.card }],
|
|
1773
1773
|
activeOpacity: 1,
|
|
1774
1774
|
onPress: () => {},
|
|
1775
1775
|
children: [
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
style: [Y.modalHeader, { borderBottomColor:
|
|
1778
|
-
children: [/* @__PURE__ */
|
|
1779
|
-
style: [Y.modalTitle, { color:
|
|
1780
|
-
children: O || S ||
|
|
1781
|
-
}), /* @__PURE__ */
|
|
1776
|
+
/* @__PURE__ */ L(H, {
|
|
1777
|
+
style: [Y.modalHeader, { borderBottomColor: A.separator }],
|
|
1778
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1779
|
+
style: [Y.modalTitle, { color: A.text }],
|
|
1780
|
+
children: O || S || F("renderer.defaultHttpInput.search")
|
|
1781
|
+
}), /* @__PURE__ */ I(V, {
|
|
1782
1782
|
onPress: () => y(!1),
|
|
1783
|
-
children: /* @__PURE__ */
|
|
1784
|
-
style: [Y.closeButton, { color:
|
|
1783
|
+
children: /* @__PURE__ */ I(B, {
|
|
1784
|
+
style: [Y.closeButton, { color: A.textMuted }],
|
|
1785
1785
|
children: "✕"
|
|
1786
1786
|
})
|
|
1787
1787
|
})]
|
|
1788
1788
|
}),
|
|
1789
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ I(H, {
|
|
1790
1790
|
style: Y.searchContainer,
|
|
1791
|
-
children: /* @__PURE__ */
|
|
1791
|
+
children: /* @__PURE__ */ I(_e, {
|
|
1792
1792
|
style: [Y.searchInput, {
|
|
1793
|
-
backgroundColor:
|
|
1794
|
-
borderColor:
|
|
1795
|
-
color:
|
|
1793
|
+
backgroundColor: A.muted,
|
|
1794
|
+
borderColor: A.border,
|
|
1795
|
+
color: A.text
|
|
1796
1796
|
}],
|
|
1797
|
-
placeholder:
|
|
1798
|
-
placeholderTextColor:
|
|
1797
|
+
placeholder: F("renderer.defaultHttpInput.search"),
|
|
1798
|
+
placeholderTextColor: A.textMuted,
|
|
1799
1799
|
value: h,
|
|
1800
1800
|
onChangeText: (e) => {
|
|
1801
1801
|
g(e), f(null);
|
|
@@ -1805,51 +1805,51 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1805
1805
|
autoCorrect: !1
|
|
1806
1806
|
})
|
|
1807
1807
|
}),
|
|
1808
|
-
|
|
1808
|
+
s ? /* @__PURE__ */ I(H, {
|
|
1809
1809
|
style: Y.loadingContainer,
|
|
1810
|
-
children: /* @__PURE__ */
|
|
1810
|
+
children: /* @__PURE__ */ I(R, {
|
|
1811
1811
|
size: "small",
|
|
1812
|
-
color:
|
|
1812
|
+
color: A.primary
|
|
1813
1813
|
})
|
|
1814
|
-
}) : d ? /* @__PURE__ */
|
|
1814
|
+
}) : d ? /* @__PURE__ */ L(H, {
|
|
1815
1815
|
style: Y.errorContainer,
|
|
1816
|
-
children: [/* @__PURE__ */
|
|
1817
|
-
style: [Y.errorText, { color:
|
|
1816
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1817
|
+
style: [Y.errorText, { color: A.error }],
|
|
1818
1818
|
children: d
|
|
1819
|
-
}), /* @__PURE__ */
|
|
1819
|
+
}), /* @__PURE__ */ I(V, {
|
|
1820
1820
|
onPress: () => W(h),
|
|
1821
1821
|
style: Y.retryButton,
|
|
1822
|
-
children: /* @__PURE__ */
|
|
1823
|
-
style: [Y.retryButtonText, { color:
|
|
1824
|
-
children:
|
|
1822
|
+
children: /* @__PURE__ */ I(B, {
|
|
1823
|
+
style: [Y.retryButtonText, { color: A.primary }],
|
|
1824
|
+
children: F("renderer.defaultHttpInput.retry")
|
|
1825
1825
|
})
|
|
1826
1826
|
})]
|
|
1827
|
-
}) : /* @__PURE__ */
|
|
1827
|
+
}) : /* @__PURE__ */ I(fe, {
|
|
1828
1828
|
data: p,
|
|
1829
1829
|
keyExtractor: (e) => e.value,
|
|
1830
1830
|
style: Y.optionsList,
|
|
1831
1831
|
contentContainerStyle: Y.optionsListContent,
|
|
1832
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
1832
|
+
ListEmptyComponent: /* @__PURE__ */ I(H, {
|
|
1833
1833
|
style: Y.emptyContainer,
|
|
1834
|
-
children: /* @__PURE__ */
|
|
1835
|
-
style: [Y.emptyText, { color:
|
|
1836
|
-
children:
|
|
1834
|
+
children: /* @__PURE__ */ I(B, {
|
|
1835
|
+
style: [Y.emptyText, { color: A.textMuted }],
|
|
1836
|
+
children: F("renderer.defaultHttpInput.noResults")
|
|
1837
1837
|
})
|
|
1838
1838
|
}),
|
|
1839
1839
|
renderItem: ({ item: t }) => {
|
|
1840
1840
|
let n = t.value === e;
|
|
1841
|
-
return /* @__PURE__ */
|
|
1842
|
-
style: [Y.option, n && { backgroundColor:
|
|
1841
|
+
return /* @__PURE__ */ L(V, {
|
|
1842
|
+
style: [Y.option, n && { backgroundColor: A.primaryLight }],
|
|
1843
1843
|
onPress: () => {
|
|
1844
|
-
|
|
1844
|
+
E(t.value), y(!1);
|
|
1845
1845
|
},
|
|
1846
1846
|
activeOpacity: .7,
|
|
1847
|
-
children: [/* @__PURE__ */
|
|
1847
|
+
children: [/* @__PURE__ */ I(Te, {
|
|
1848
1848
|
label: t.label,
|
|
1849
1849
|
description: t.description,
|
|
1850
1850
|
image: t.image
|
|
1851
|
-
}), n && /* @__PURE__ */
|
|
1852
|
-
style: [Y.checkmark, { color:
|
|
1851
|
+
}), n && /* @__PURE__ */ I(B, {
|
|
1852
|
+
style: [Y.checkmark, { color: A.primary }],
|
|
1853
1853
|
children: "✓"
|
|
1854
1854
|
})]
|
|
1855
1855
|
});
|
|
@@ -1859,57 +1859,57 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1859
1859
|
})
|
|
1860
1860
|
})
|
|
1861
1861
|
}),
|
|
1862
|
-
D && /* @__PURE__ */
|
|
1863
|
-
style: [Y.error, { color:
|
|
1862
|
+
D && /* @__PURE__ */ I(B, {
|
|
1863
|
+
style: [Y.error, { color: A.error }],
|
|
1864
1864
|
children: D
|
|
1865
1865
|
}),
|
|
1866
|
-
k && !D && /* @__PURE__ */
|
|
1867
|
-
style: [Y.helperText, { color:
|
|
1866
|
+
k && !D && /* @__PURE__ */ I(B, {
|
|
1867
|
+
style: [Y.helperText, { color: A.textMuted }],
|
|
1868
1868
|
children: k
|
|
1869
1869
|
})
|
|
1870
1870
|
]
|
|
1871
1871
|
});
|
|
1872
1872
|
}
|
|
1873
|
-
let n =
|
|
1874
|
-
return /* @__PURE__ */
|
|
1873
|
+
let n = s && j?.showLoading, r = re.length === 0 && p.length === 0 && !n ? d ?? F("renderer.defaultHttpInput.noDataAvailable") : void 0;
|
|
1874
|
+
return /* @__PURE__ */ L(H, {
|
|
1875
1875
|
style: Y.container,
|
|
1876
1876
|
children: [
|
|
1877
|
-
/* @__PURE__ */
|
|
1877
|
+
/* @__PURE__ */ I(C, {
|
|
1878
1878
|
label: O,
|
|
1879
|
-
required:
|
|
1879
|
+
required: T.data.required
|
|
1880
1880
|
}),
|
|
1881
|
-
/* @__PURE__ */
|
|
1882
|
-
missing:
|
|
1883
|
-
children: /* @__PURE__ */
|
|
1881
|
+
/* @__PURE__ */ I(Ne, {
|
|
1882
|
+
missing: re,
|
|
1883
|
+
children: /* @__PURE__ */ L(V, {
|
|
1884
1884
|
style: [
|
|
1885
1885
|
Y.trigger,
|
|
1886
1886
|
{
|
|
1887
|
-
backgroundColor:
|
|
1888
|
-
borderColor:
|
|
1887
|
+
backgroundColor: A.input,
|
|
1888
|
+
borderColor: A.border
|
|
1889
1889
|
},
|
|
1890
|
-
D && { borderColor:
|
|
1891
|
-
(n || p.length === 0) && { backgroundColor:
|
|
1890
|
+
D && { borderColor: A.error },
|
|
1891
|
+
(n || p.length === 0) && { backgroundColor: A.muted }
|
|
1892
1892
|
],
|
|
1893
1893
|
onPress: () => y(!0),
|
|
1894
1894
|
disabled: n || p.length === 0,
|
|
1895
1895
|
activeOpacity: .7,
|
|
1896
1896
|
children: [
|
|
1897
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ I(B, {
|
|
1898
1898
|
style: [
|
|
1899
1899
|
Y.triggerText,
|
|
1900
|
-
{ color:
|
|
1901
|
-
!t && { color:
|
|
1900
|
+
{ color: A.text },
|
|
1901
|
+
!t && { color: A.textMuted }
|
|
1902
1902
|
],
|
|
1903
1903
|
numberOfLines: 1,
|
|
1904
|
-
children: t?.label || S ||
|
|
1904
|
+
children: t?.label || S || F("renderer.defaultHttpInput.selectOption")
|
|
1905
1905
|
}),
|
|
1906
|
-
n && /* @__PURE__ */
|
|
1906
|
+
n && /* @__PURE__ */ I(R, {
|
|
1907
1907
|
size: "small",
|
|
1908
|
-
color:
|
|
1908
|
+
color: A.primary,
|
|
1909
1909
|
style: Y.triggerLoader
|
|
1910
1910
|
}),
|
|
1911
|
-
e ? /* @__PURE__ */
|
|
1912
|
-
onPress: () =>
|
|
1911
|
+
e ? /* @__PURE__ */ I(V, {
|
|
1912
|
+
onPress: () => E(""),
|
|
1913
1913
|
hitSlop: {
|
|
1914
1914
|
bottom: 8,
|
|
1915
1915
|
left: 8,
|
|
@@ -1917,66 +1917,66 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1917
1917
|
top: 8
|
|
1918
1918
|
},
|
|
1919
1919
|
style: Y.clearButton,
|
|
1920
|
-
children: /* @__PURE__ */
|
|
1921
|
-
style: [Y.clearIcon, { color:
|
|
1920
|
+
children: /* @__PURE__ */ I(B, {
|
|
1921
|
+
style: [Y.clearIcon, { color: A.textMuted }],
|
|
1922
1922
|
children: "✕"
|
|
1923
1923
|
})
|
|
1924
1924
|
}) : null,
|
|
1925
|
-
/* @__PURE__ */
|
|
1926
|
-
style: [Y.arrow, { color:
|
|
1925
|
+
/* @__PURE__ */ I(B, {
|
|
1926
|
+
style: [Y.arrow, { color: A.textMuted }],
|
|
1927
1927
|
children: "▼"
|
|
1928
1928
|
})
|
|
1929
1929
|
]
|
|
1930
1930
|
})
|
|
1931
1931
|
}),
|
|
1932
|
-
r && /* @__PURE__ */
|
|
1933
|
-
style: [Y.disabledMessage, { color:
|
|
1932
|
+
r && /* @__PURE__ */ I(B, {
|
|
1933
|
+
style: [Y.disabledMessage, { color: A.error }],
|
|
1934
1934
|
children: r
|
|
1935
1935
|
}),
|
|
1936
|
-
/* @__PURE__ */
|
|
1937
|
-
visible:
|
|
1936
|
+
/* @__PURE__ */ I(me, {
|
|
1937
|
+
visible: _,
|
|
1938
1938
|
transparent: !0,
|
|
1939
1939
|
animationType: "fade",
|
|
1940
1940
|
onRequestClose: () => y(!1),
|
|
1941
|
-
children: /* @__PURE__ */
|
|
1941
|
+
children: /* @__PURE__ */ I(V, {
|
|
1942
1942
|
style: Y.modalOverlay,
|
|
1943
1943
|
activeOpacity: 1,
|
|
1944
1944
|
onPress: () => y(!1),
|
|
1945
|
-
children: /* @__PURE__ */
|
|
1946
|
-
style: [Y.modalContent, { backgroundColor:
|
|
1945
|
+
children: /* @__PURE__ */ L(V, {
|
|
1946
|
+
style: [Y.modalContent, { backgroundColor: A.card }],
|
|
1947
1947
|
activeOpacity: 1,
|
|
1948
1948
|
onPress: () => {},
|
|
1949
|
-
children: [/* @__PURE__ */
|
|
1950
|
-
style: [Y.modalHeader, { borderBottomColor:
|
|
1951
|
-
children: [/* @__PURE__ */
|
|
1952
|
-
style: [Y.modalTitle, { color:
|
|
1953
|
-
children: O || S ||
|
|
1954
|
-
}), /* @__PURE__ */
|
|
1949
|
+
children: [/* @__PURE__ */ L(H, {
|
|
1950
|
+
style: [Y.modalHeader, { borderBottomColor: A.separator }],
|
|
1951
|
+
children: [/* @__PURE__ */ I(B, {
|
|
1952
|
+
style: [Y.modalTitle, { color: A.text }],
|
|
1953
|
+
children: O || S || F("renderer.defaultHttpInput.selectOption")
|
|
1954
|
+
}), /* @__PURE__ */ I(V, {
|
|
1955
1955
|
onPress: () => y(!1),
|
|
1956
|
-
children: /* @__PURE__ */
|
|
1957
|
-
style: [Y.closeButton, { color:
|
|
1956
|
+
children: /* @__PURE__ */ I(B, {
|
|
1957
|
+
style: [Y.closeButton, { color: A.textMuted }],
|
|
1958
1958
|
children: "✕"
|
|
1959
1959
|
})
|
|
1960
1960
|
})]
|
|
1961
|
-
}), /* @__PURE__ */
|
|
1961
|
+
}), /* @__PURE__ */ I(fe, {
|
|
1962
1962
|
data: p,
|
|
1963
1963
|
keyExtractor: (e) => e.value,
|
|
1964
1964
|
style: Y.optionsList,
|
|
1965
1965
|
contentContainerStyle: Y.optionsListContent,
|
|
1966
1966
|
renderItem: ({ item: t }) => {
|
|
1967
1967
|
let n = t.value === e;
|
|
1968
|
-
return /* @__PURE__ */
|
|
1969
|
-
style: [Y.option, n && { backgroundColor:
|
|
1968
|
+
return /* @__PURE__ */ L(V, {
|
|
1969
|
+
style: [Y.option, n && { backgroundColor: A.primaryLight }],
|
|
1970
1970
|
onPress: () => {
|
|
1971
|
-
|
|
1971
|
+
E(t.value), y(!1);
|
|
1972
1972
|
},
|
|
1973
1973
|
activeOpacity: .7,
|
|
1974
|
-
children: [/* @__PURE__ */
|
|
1974
|
+
children: [/* @__PURE__ */ I(Te, {
|
|
1975
1975
|
label: t.label,
|
|
1976
1976
|
description: t.description,
|
|
1977
1977
|
image: t.image
|
|
1978
|
-
}), n && /* @__PURE__ */
|
|
1979
|
-
style: [Y.checkmark, { color:
|
|
1978
|
+
}), n && /* @__PURE__ */ I(B, {
|
|
1979
|
+
style: [Y.checkmark, { color: A.primary }],
|
|
1980
1980
|
children: "✓"
|
|
1981
1981
|
})]
|
|
1982
1982
|
});
|
|
@@ -1985,39 +1985,39 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
1985
1985
|
})
|
|
1986
1986
|
})
|
|
1987
1987
|
}),
|
|
1988
|
-
D && /* @__PURE__ */
|
|
1989
|
-
style: [Y.error, { color:
|
|
1988
|
+
D && /* @__PURE__ */ I(B, {
|
|
1989
|
+
style: [Y.error, { color: A.error }],
|
|
1990
1990
|
children: D
|
|
1991
1991
|
}),
|
|
1992
|
-
k && !D && /* @__PURE__ */
|
|
1993
|
-
style: [Y.helperText, { color:
|
|
1992
|
+
k && !D && /* @__PURE__ */ I(B, {
|
|
1993
|
+
style: [Y.helperText, { color: A.textMuted }],
|
|
1994
1994
|
children: k
|
|
1995
1995
|
})
|
|
1996
1996
|
]
|
|
1997
1997
|
});
|
|
1998
1998
|
}
|
|
1999
|
-
return /* @__PURE__ */
|
|
1999
|
+
return /* @__PURE__ */ L(H, {
|
|
2000
2000
|
style: Y.container,
|
|
2001
2001
|
children: [
|
|
2002
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ I(C, {
|
|
2003
2003
|
label: O,
|
|
2004
|
-
required:
|
|
2004
|
+
required: T.data.required
|
|
2005
2005
|
}),
|
|
2006
|
-
/* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ I(_e, {
|
|
2007
2007
|
style: [Y.input, {
|
|
2008
|
-
backgroundColor:
|
|
2009
|
-
borderColor:
|
|
2010
|
-
color:
|
|
2008
|
+
backgroundColor: A.muted,
|
|
2009
|
+
borderColor: A.border,
|
|
2010
|
+
color: A.textMuted
|
|
2011
2011
|
}],
|
|
2012
|
-
value: typeof
|
|
2012
|
+
value: typeof b == "string" ? b : JSON.stringify(b),
|
|
2013
2013
|
editable: !1
|
|
2014
2014
|
}),
|
|
2015
|
-
D && /* @__PURE__ */
|
|
2016
|
-
style: [Y.error, { color:
|
|
2015
|
+
D && /* @__PURE__ */ I(B, {
|
|
2016
|
+
style: [Y.error, { color: A.error }],
|
|
2017
2017
|
children: D
|
|
2018
2018
|
}),
|
|
2019
|
-
k && !D && /* @__PURE__ */
|
|
2020
|
-
style: [Y.helperText, { color:
|
|
2019
|
+
k && !D && /* @__PURE__ */ I(B, {
|
|
2020
|
+
style: [Y.helperText, { color: A.textMuted }],
|
|
2021
2021
|
children: k
|
|
2022
2022
|
})
|
|
2023
2023
|
]
|
|
@@ -2139,17 +2139,17 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2139
2139
|
fontSize: 14
|
|
2140
2140
|
}
|
|
2141
2141
|
}), ze = ({ field: e, extra: t }) => {
|
|
2142
|
-
let { value: n, placeholder: r, name: i } = e, [a, o] =
|
|
2143
|
-
return
|
|
2142
|
+
let { value: n, placeholder: r, name: i } = e, [a, o] = P(n?.toString() ?? ""), { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = x();
|
|
2143
|
+
return M(() => {
|
|
2144
2144
|
o(n?.toString() ?? "");
|
|
2145
|
-
}, [n]), /* @__PURE__ */
|
|
2145
|
+
}, [n]), /* @__PURE__ */ L(H, {
|
|
2146
2146
|
style: Be.container,
|
|
2147
2147
|
children: [
|
|
2148
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ I(s, {
|
|
2149
2149
|
label: d,
|
|
2150
2150
|
required: c.data.required
|
|
2151
2151
|
}),
|
|
2152
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ I(_e, {
|
|
2153
2153
|
style: [
|
|
2154
2154
|
Be.input,
|
|
2155
2155
|
{
|
|
@@ -2173,11 +2173,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2173
2173
|
keyboardType: "numeric",
|
|
2174
2174
|
accessibilityLabel: i
|
|
2175
2175
|
}),
|
|
2176
|
-
u && /* @__PURE__ */
|
|
2176
|
+
u && /* @__PURE__ */ I(B, {
|
|
2177
2177
|
style: [Be.error, { color: p.error }],
|
|
2178
2178
|
children: u
|
|
2179
2179
|
}),
|
|
2180
|
-
f && !u && /* @__PURE__ */
|
|
2180
|
+
f && !u && /* @__PURE__ */ I(B, {
|
|
2181
2181
|
style: [Be.helperText, { color: p.textMuted }],
|
|
2182
2182
|
children: f
|
|
2183
2183
|
})
|
|
@@ -2201,17 +2201,17 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2201
2201
|
paddingVertical: 8
|
|
2202
2202
|
}
|
|
2203
2203
|
}), Ve = ({ field: e, extra: t }) => {
|
|
2204
|
-
let [n, r] =
|
|
2205
|
-
return /* @__PURE__ */
|
|
2204
|
+
let [n, r] = P(!1), { value: i, placeholder: a, name: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = x();
|
|
2205
|
+
return /* @__PURE__ */ L(H, {
|
|
2206
2206
|
style: He.container,
|
|
2207
2207
|
children: [
|
|
2208
|
-
/* @__PURE__ */
|
|
2208
|
+
/* @__PURE__ */ I(s, {
|
|
2209
2209
|
label: d,
|
|
2210
2210
|
required: c.data.required
|
|
2211
2211
|
}),
|
|
2212
|
-
/* @__PURE__ */
|
|
2212
|
+
/* @__PURE__ */ L(H, {
|
|
2213
2213
|
style: He.inputWrapper,
|
|
2214
|
-
children: [/* @__PURE__ */
|
|
2214
|
+
children: [/* @__PURE__ */ I(_e, {
|
|
2215
2215
|
style: [
|
|
2216
2216
|
He.input,
|
|
2217
2217
|
{
|
|
@@ -2227,21 +2227,21 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2227
2227
|
placeholderTextColor: p.textMuted,
|
|
2228
2228
|
secureTextEntry: !n,
|
|
2229
2229
|
accessibilityLabel: o
|
|
2230
|
-
}), /* @__PURE__ */
|
|
2230
|
+
}), /* @__PURE__ */ I(V, {
|
|
2231
2231
|
style: He.toggleButton,
|
|
2232
2232
|
onPress: () => r(!n),
|
|
2233
2233
|
activeOpacity: .7,
|
|
2234
|
-
children: /* @__PURE__ */
|
|
2234
|
+
children: /* @__PURE__ */ I(B, {
|
|
2235
2235
|
style: [He.toggleText, { color: p.primary }],
|
|
2236
2236
|
children: n ? "Hide" : "Show"
|
|
2237
2237
|
})
|
|
2238
2238
|
})]
|
|
2239
2239
|
}),
|
|
2240
|
-
u && /* @__PURE__ */
|
|
2240
|
+
u && /* @__PURE__ */ I(B, {
|
|
2241
2241
|
style: [He.error, { color: p.error }],
|
|
2242
2242
|
children: u
|
|
2243
2243
|
}),
|
|
2244
|
-
f && !u && /* @__PURE__ */
|
|
2244
|
+
f && !u && /* @__PURE__ */ I(B, {
|
|
2245
2245
|
style: [He.helperText, { color: p.textMuted }],
|
|
2246
2246
|
children: f
|
|
2247
2247
|
})
|
|
@@ -2281,19 +2281,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2281
2281
|
fontWeight: "600"
|
|
2282
2282
|
}
|
|
2283
2283
|
}), Ue = ({ field: e, extra: t }) => {
|
|
2284
|
-
let { value: r } = e, { InputLabel: i, node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } =
|
|
2284
|
+
let { value: r } = e, { InputLabel: i, node: a, setValue: o, error: s, label: c, helperText: l } = t, { colors: u } = x(), d = n(), f = a.data.options || [], p = r || "", m = a.data.variant !== "default", h = (e) => {
|
|
2285
2285
|
o(e);
|
|
2286
2286
|
};
|
|
2287
|
-
return /* @__PURE__ */
|
|
2287
|
+
return /* @__PURE__ */ L(H, {
|
|
2288
2288
|
style: X.container,
|
|
2289
2289
|
children: [
|
|
2290
|
-
/* @__PURE__ */
|
|
2290
|
+
/* @__PURE__ */ I(i, {
|
|
2291
2291
|
label: c,
|
|
2292
2292
|
required: a.data.required
|
|
2293
2293
|
}),
|
|
2294
2294
|
f.map((e) => {
|
|
2295
2295
|
let t = p === e.value, n = d(e.label) || e.value, r = d(e.description);
|
|
2296
|
-
return m ? /* @__PURE__ */
|
|
2296
|
+
return m ? /* @__PURE__ */ L(V, {
|
|
2297
2297
|
style: [
|
|
2298
2298
|
X.card,
|
|
2299
2299
|
{
|
|
@@ -2310,21 +2310,21 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2310
2310
|
disabled: e.disabled,
|
|
2311
2311
|
activeOpacity: .7,
|
|
2312
2312
|
children: [
|
|
2313
|
-
e.image && /* @__PURE__ */
|
|
2313
|
+
e.image && /* @__PURE__ */ I(pe, {
|
|
2314
2314
|
source: { uri: e.image },
|
|
2315
2315
|
style: X.cardImage
|
|
2316
2316
|
}),
|
|
2317
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ L(H, {
|
|
2318
2318
|
style: X.cardTextContainer,
|
|
2319
|
-
children: [/* @__PURE__ */
|
|
2319
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2320
2320
|
style: [X.cardLabel, { color: u.textSecondary }],
|
|
2321
2321
|
children: n
|
|
2322
|
-
}), r && /* @__PURE__ */
|
|
2322
|
+
}), r && /* @__PURE__ */ I(B, {
|
|
2323
2323
|
style: [X.cardDescription, { color: u.textMuted }],
|
|
2324
2324
|
children: r
|
|
2325
2325
|
})]
|
|
2326
2326
|
}),
|
|
2327
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ I(H, {
|
|
2328
2328
|
style: [
|
|
2329
2329
|
X.radio,
|
|
2330
2330
|
X.cardRadio,
|
|
@@ -2334,16 +2334,16 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2334
2334
|
},
|
|
2335
2335
|
t && { borderColor: u.primary }
|
|
2336
2336
|
],
|
|
2337
|
-
children: t && /* @__PURE__ */
|
|
2337
|
+
children: t && /* @__PURE__ */ I(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
|
|
2338
2338
|
})
|
|
2339
2339
|
]
|
|
2340
|
-
}, e.value) : /* @__PURE__ */
|
|
2340
|
+
}, e.value) : /* @__PURE__ */ L(V, {
|
|
2341
2341
|
style: X.option,
|
|
2342
2342
|
onPress: () => h(e.value),
|
|
2343
2343
|
disabled: e.disabled,
|
|
2344
2344
|
activeOpacity: .7,
|
|
2345
2345
|
children: [
|
|
2346
|
-
/* @__PURE__ */
|
|
2346
|
+
/* @__PURE__ */ I(H, {
|
|
2347
2347
|
style: [
|
|
2348
2348
|
X.radio,
|
|
2349
2349
|
{
|
|
@@ -2352,22 +2352,22 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2352
2352
|
},
|
|
2353
2353
|
t && { borderColor: u.primary }
|
|
2354
2354
|
],
|
|
2355
|
-
children: t && /* @__PURE__ */
|
|
2355
|
+
children: t && /* @__PURE__ */ I(H, { style: [X.radioInner, { backgroundColor: u.primary }] })
|
|
2356
2356
|
}),
|
|
2357
|
-
e.image && /* @__PURE__ */
|
|
2357
|
+
e.image && /* @__PURE__ */ I(pe, {
|
|
2358
2358
|
source: { uri: e.image },
|
|
2359
2359
|
style: X.image
|
|
2360
2360
|
}),
|
|
2361
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ L(H, {
|
|
2362
2362
|
style: X.optionTextContainer,
|
|
2363
|
-
children: [/* @__PURE__ */
|
|
2363
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2364
2364
|
style: [
|
|
2365
2365
|
X.optionLabel,
|
|
2366
2366
|
{ color: u.textSecondary },
|
|
2367
2367
|
e.disabled && { color: u.textMuted }
|
|
2368
2368
|
],
|
|
2369
2369
|
children: n
|
|
2370
|
-
}), r && /* @__PURE__ */
|
|
2370
|
+
}), r && /* @__PURE__ */ I(B, {
|
|
2371
2371
|
style: [X.optionDescription, { color: u.textMuted }],
|
|
2372
2372
|
children: r
|
|
2373
2373
|
})]
|
|
@@ -2375,11 +2375,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2375
2375
|
]
|
|
2376
2376
|
}, e.value);
|
|
2377
2377
|
}),
|
|
2378
|
-
s && /* @__PURE__ */
|
|
2378
|
+
s && /* @__PURE__ */ I(B, {
|
|
2379
2379
|
style: [X.error, { color: u.error }],
|
|
2380
2380
|
children: s
|
|
2381
2381
|
}),
|
|
2382
|
-
l && !s && /* @__PURE__ */
|
|
2382
|
+
l && !s && /* @__PURE__ */ I(B, {
|
|
2383
2383
|
style: [X.helperText, { color: u.textMuted }],
|
|
2384
2384
|
children: l
|
|
2385
2385
|
})
|
|
@@ -2454,17 +2454,17 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2454
2454
|
width: 10
|
|
2455
2455
|
}
|
|
2456
2456
|
}), We = ({ field: e, extra: t }) => {
|
|
2457
|
-
let [r, i] =
|
|
2457
|
+
let [r, i] = P(!1), { value: a, placeholder: o } = e, { InputLabel: s, node: c, setValue: l, error: u, label: d, helperText: f } = t, { colors: p } = x(), m = n(), h = c.data.options || [], g = c.data.multiple, _ = Array.isArray(a) ? a : a ? [a] : [], v = (e) => {
|
|
2458
2458
|
g ? l(_.includes(e) ? _.filter((t) => t !== e) : [..._, e]) : (l(e), i(!1));
|
|
2459
2459
|
};
|
|
2460
|
-
return /* @__PURE__ */
|
|
2460
|
+
return /* @__PURE__ */ L(H, {
|
|
2461
2461
|
style: Z.container,
|
|
2462
2462
|
children: [
|
|
2463
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ I(s, {
|
|
2464
2464
|
label: d,
|
|
2465
2465
|
required: c.data.required
|
|
2466
2466
|
}),
|
|
2467
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ L(V, {
|
|
2468
2468
|
style: [
|
|
2469
2469
|
Z.trigger,
|
|
2470
2470
|
{
|
|
@@ -2476,7 +2476,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2476
2476
|
onPress: () => i(!0),
|
|
2477
2477
|
activeOpacity: .7,
|
|
2478
2478
|
children: [
|
|
2479
|
-
/* @__PURE__ */
|
|
2479
|
+
/* @__PURE__ */ I(B, {
|
|
2480
2480
|
style: [
|
|
2481
2481
|
Z.triggerText,
|
|
2482
2482
|
{ color: p.text },
|
|
@@ -2489,7 +2489,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2489
2489
|
return e ? m(e.label) || e.value : o || "Select...";
|
|
2490
2490
|
})()
|
|
2491
2491
|
}),
|
|
2492
|
-
_.length > 0 && /* @__PURE__ */
|
|
2492
|
+
_.length > 0 && /* @__PURE__ */ I(V, {
|
|
2493
2493
|
onPress: () => l(g ? [] : ""),
|
|
2494
2494
|
hitSlop: {
|
|
2495
2495
|
bottom: 8,
|
|
@@ -2498,68 +2498,68 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2498
2498
|
top: 8
|
|
2499
2499
|
},
|
|
2500
2500
|
style: Z.clearButton,
|
|
2501
|
-
children: /* @__PURE__ */
|
|
2501
|
+
children: /* @__PURE__ */ I(B, {
|
|
2502
2502
|
style: [Z.clearIcon, { color: p.textMuted }],
|
|
2503
2503
|
children: "✕"
|
|
2504
2504
|
})
|
|
2505
2505
|
}),
|
|
2506
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ I(B, {
|
|
2507
2507
|
style: [Z.arrow, { color: p.textMuted }],
|
|
2508
2508
|
children: "▼"
|
|
2509
2509
|
})
|
|
2510
2510
|
]
|
|
2511
2511
|
}),
|
|
2512
|
-
/* @__PURE__ */
|
|
2512
|
+
/* @__PURE__ */ I(me, {
|
|
2513
2513
|
visible: r,
|
|
2514
2514
|
transparent: !0,
|
|
2515
2515
|
animationType: "fade",
|
|
2516
2516
|
onRequestClose: () => i(!1),
|
|
2517
|
-
children: /* @__PURE__ */
|
|
2517
|
+
children: /* @__PURE__ */ I(V, {
|
|
2518
2518
|
style: Z.modalOverlay,
|
|
2519
2519
|
activeOpacity: 1,
|
|
2520
2520
|
onPress: () => i(!1),
|
|
2521
|
-
children: /* @__PURE__ */
|
|
2521
|
+
children: /* @__PURE__ */ L(H, {
|
|
2522
2522
|
style: [Z.modalContent, { backgroundColor: p.card }],
|
|
2523
2523
|
onStartShouldSetResponder: () => !0,
|
|
2524
2524
|
children: [
|
|
2525
|
-
/* @__PURE__ */
|
|
2525
|
+
/* @__PURE__ */ L(H, {
|
|
2526
2526
|
style: [Z.modalHeader, { borderBottomColor: p.border }],
|
|
2527
|
-
children: [/* @__PURE__ */
|
|
2527
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2528
2528
|
style: [Z.modalTitle, { color: p.text }],
|
|
2529
2529
|
children: d || o || m("renderer.defaultSelectInput.selectOption")
|
|
2530
|
-
}), /* @__PURE__ */
|
|
2530
|
+
}), /* @__PURE__ */ I(V, {
|
|
2531
2531
|
onPress: () => i(!1),
|
|
2532
|
-
children: /* @__PURE__ */
|
|
2532
|
+
children: /* @__PURE__ */ I(B, {
|
|
2533
2533
|
style: [Z.closeButton, { color: p.textMuted }],
|
|
2534
2534
|
children: "✕"
|
|
2535
2535
|
})
|
|
2536
2536
|
})]
|
|
2537
2537
|
}),
|
|
2538
|
-
/* @__PURE__ */
|
|
2538
|
+
/* @__PURE__ */ I(he, {
|
|
2539
2539
|
style: Z.optionsList,
|
|
2540
2540
|
children: h.map((e) => {
|
|
2541
2541
|
let t = _.includes(e.value);
|
|
2542
|
-
return /* @__PURE__ */
|
|
2542
|
+
return /* @__PURE__ */ L(V, {
|
|
2543
2543
|
style: [Z.option, t && { backgroundColor: `${p.primary}20` }],
|
|
2544
2544
|
onPress: () => v(e.value),
|
|
2545
2545
|
disabled: e.disabled,
|
|
2546
2546
|
activeOpacity: .7,
|
|
2547
|
-
children: [/* @__PURE__ */
|
|
2547
|
+
children: [/* @__PURE__ */ I(Te, {
|
|
2548
2548
|
label: m(e.label) || e.value,
|
|
2549
2549
|
description: m(e.description),
|
|
2550
2550
|
image: e.image,
|
|
2551
2551
|
disabled: e.disabled
|
|
2552
|
-
}), t && /* @__PURE__ */
|
|
2552
|
+
}), t && /* @__PURE__ */ I(B, {
|
|
2553
2553
|
style: [Z.checkmark, { color: p.primary }],
|
|
2554
2554
|
children: "✓"
|
|
2555
2555
|
})]
|
|
2556
2556
|
}, e.value);
|
|
2557
2557
|
})
|
|
2558
2558
|
}),
|
|
2559
|
-
g && /* @__PURE__ */
|
|
2559
|
+
g && /* @__PURE__ */ I(V, {
|
|
2560
2560
|
style: [Z.doneButton, { backgroundColor: p.primary }],
|
|
2561
2561
|
onPress: () => i(!1),
|
|
2562
|
-
children: /* @__PURE__ */
|
|
2562
|
+
children: /* @__PURE__ */ I(B, {
|
|
2563
2563
|
style: Z.doneButtonText,
|
|
2564
2564
|
children: "Done"
|
|
2565
2565
|
})
|
|
@@ -2568,11 +2568,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2568
2568
|
})
|
|
2569
2569
|
})
|
|
2570
2570
|
}),
|
|
2571
|
-
u && /* @__PURE__ */
|
|
2571
|
+
u && /* @__PURE__ */ I(B, {
|
|
2572
2572
|
style: [Z.error, { color: p.error }],
|
|
2573
2573
|
children: u
|
|
2574
2574
|
}),
|
|
2575
|
-
f && !u && /* @__PURE__ */
|
|
2575
|
+
f && !u && /* @__PURE__ */ I(B, {
|
|
2576
2576
|
style: [Z.helperText, { color: p.textMuted }],
|
|
2577
2577
|
children: f
|
|
2578
2578
|
})
|
|
@@ -2660,19 +2660,19 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2660
2660
|
fontSize: 14
|
|
2661
2661
|
}
|
|
2662
2662
|
}), Ge = (e) => null, Ke = ({ field: e, extra: t }) => {
|
|
2663
|
-
let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } =
|
|
2664
|
-
return /* @__PURE__ */
|
|
2663
|
+
let { value: n } = e, { InputLabel: r, node: i, setValue: a, error: o, label: s, helperText: c } = t, { colors: l } = x(), u = !!n;
|
|
2664
|
+
return /* @__PURE__ */ L(H, {
|
|
2665
2665
|
style: qe.container,
|
|
2666
2666
|
children: [
|
|
2667
|
-
/* @__PURE__ */
|
|
2667
|
+
/* @__PURE__ */ L(H, {
|
|
2668
2668
|
style: qe.row,
|
|
2669
|
-
children: [/* @__PURE__ */
|
|
2669
|
+
children: [/* @__PURE__ */ I(H, {
|
|
2670
2670
|
style: qe.labelContainer,
|
|
2671
|
-
children: /* @__PURE__ */
|
|
2671
|
+
children: /* @__PURE__ */ I(r, {
|
|
2672
2672
|
label: s,
|
|
2673
2673
|
required: i.data.required
|
|
2674
2674
|
})
|
|
2675
|
-
}), /* @__PURE__ */
|
|
2675
|
+
}), /* @__PURE__ */ I(ge, {
|
|
2676
2676
|
trackColor: {
|
|
2677
2677
|
false: l.border,
|
|
2678
2678
|
true: `${l.primary}80`
|
|
@@ -2683,11 +2683,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2683
2683
|
value: u
|
|
2684
2684
|
})]
|
|
2685
2685
|
}),
|
|
2686
|
-
o && /* @__PURE__ */
|
|
2686
|
+
o && /* @__PURE__ */ I(B, {
|
|
2687
2687
|
style: [qe.error, { color: l.error }],
|
|
2688
2688
|
children: o
|
|
2689
2689
|
}),
|
|
2690
|
-
c && !o && /* @__PURE__ */
|
|
2690
|
+
c && !o && /* @__PURE__ */ I(B, {
|
|
2691
2691
|
style: [qe.helperText, { color: l.textMuted }],
|
|
2692
2692
|
children: c
|
|
2693
2693
|
})
|
|
@@ -2710,15 +2710,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2710
2710
|
justifyContent: "space-between"
|
|
2711
2711
|
}
|
|
2712
2712
|
}), Je = ({ field: e, extra: t }) => {
|
|
2713
|
-
let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } =
|
|
2714
|
-
return /* @__PURE__ */
|
|
2713
|
+
let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = x();
|
|
2714
|
+
return /* @__PURE__ */ L(H, {
|
|
2715
2715
|
style: Ye.container,
|
|
2716
2716
|
children: [
|
|
2717
|
-
/* @__PURE__ */
|
|
2717
|
+
/* @__PURE__ */ I(a, {
|
|
2718
2718
|
label: l,
|
|
2719
2719
|
required: o.data.required
|
|
2720
2720
|
}),
|
|
2721
|
-
/* @__PURE__ */
|
|
2721
|
+
/* @__PURE__ */ I(_e, {
|
|
2722
2722
|
style: [
|
|
2723
2723
|
Ye.textarea,
|
|
2724
2724
|
{
|
|
@@ -2737,11 +2737,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2737
2737
|
textAlignVertical: "top",
|
|
2738
2738
|
accessibilityLabel: i
|
|
2739
2739
|
}),
|
|
2740
|
-
c && /* @__PURE__ */
|
|
2740
|
+
c && /* @__PURE__ */ I(B, {
|
|
2741
2741
|
style: [Ye.error, { color: d.error }],
|
|
2742
2742
|
children: c
|
|
2743
2743
|
}),
|
|
2744
|
-
u && !c && /* @__PURE__ */
|
|
2744
|
+
u && !c && /* @__PURE__ */ I(B, {
|
|
2745
2745
|
style: [Ye.helperText, { color: d.textMuted }],
|
|
2746
2746
|
children: u
|
|
2747
2747
|
})
|
|
@@ -2766,15 +2766,15 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2766
2766
|
paddingVertical: 8
|
|
2767
2767
|
}
|
|
2768
2768
|
}), Xe = ({ field: e, extra: t }) => {
|
|
2769
|
-
let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } =
|
|
2770
|
-
return /* @__PURE__ */
|
|
2769
|
+
let { value: n, placeholder: r, name: i } = e, { InputLabel: a, node: o, setValue: s, error: c, label: l, helperText: u } = t, { colors: d } = x();
|
|
2770
|
+
return /* @__PURE__ */ L(H, {
|
|
2771
2771
|
style: Ze.container,
|
|
2772
2772
|
children: [
|
|
2773
|
-
/* @__PURE__ */
|
|
2773
|
+
/* @__PURE__ */ I(a, {
|
|
2774
2774
|
label: l,
|
|
2775
2775
|
required: o.data.required
|
|
2776
2776
|
}),
|
|
2777
|
-
/* @__PURE__ */
|
|
2777
|
+
/* @__PURE__ */ I(_e, {
|
|
2778
2778
|
style: [
|
|
2779
2779
|
Ze.input,
|
|
2780
2780
|
{
|
|
@@ -2790,11 +2790,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2790
2790
|
placeholderTextColor: d.textMuted,
|
|
2791
2791
|
accessibilityLabel: i
|
|
2792
2792
|
}),
|
|
2793
|
-
c && /* @__PURE__ */
|
|
2793
|
+
c && /* @__PURE__ */ I(B, {
|
|
2794
2794
|
style: [Ze.error, { color: d.error }],
|
|
2795
2795
|
children: c
|
|
2796
2796
|
}),
|
|
2797
|
-
u && !c && /* @__PURE__ */
|
|
2797
|
+
u && !c && /* @__PURE__ */ I(B, {
|
|
2798
2798
|
style: [Ze.helperText, { color: d.textMuted }],
|
|
2799
2799
|
children: u
|
|
2800
2800
|
})
|
|
@@ -2818,21 +2818,21 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2818
2818
|
paddingVertical: 8
|
|
2819
2819
|
}
|
|
2820
2820
|
}), Qe = ({ field: e, extra: t }) => {
|
|
2821
|
-
let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] =
|
|
2821
|
+
let { value: r, placeholder: i } = e, a = (r || "").split(":"), o = Number.parseInt(a[0], 10), s = Number.parseInt(a[1], 10), c = Number.isNaN(o) ? 0 : o, l = Number.isNaN(s) ? 0 : s, [u, d] = P(c || 0), [f, p] = P(l || 0), [m, h] = P(!1), { InputLabel: g, node: _, setValue: v, error: y, label: b, helperText: S } = t, { colors: C } = x(), w = n(), T = N(null), E = N(null), ee = Array.from({ length: 24 }, (e, t) => t), te = Array.from({ length: 60 }, (e, t) => t), D = () => r || i || w("renderer.defaultInputs.selectTime"), ne = ce(() => {
|
|
2822
2822
|
v(`${String(u).padStart(2, "0")}:${String(f).padStart(2, "0")}`), h(!1);
|
|
2823
2823
|
}, [
|
|
2824
2824
|
u,
|
|
2825
2825
|
f,
|
|
2826
2826
|
v
|
|
2827
2827
|
]);
|
|
2828
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ L(H, {
|
|
2829
2829
|
style: Q.container,
|
|
2830
2830
|
children: [
|
|
2831
|
-
/* @__PURE__ */
|
|
2832
|
-
label:
|
|
2831
|
+
/* @__PURE__ */ I(g, {
|
|
2832
|
+
label: b,
|
|
2833
2833
|
required: _.data.required
|
|
2834
2834
|
}),
|
|
2835
|
-
/* @__PURE__ */
|
|
2835
|
+
/* @__PURE__ */ L(V, {
|
|
2836
2836
|
style: [
|
|
2837
2837
|
Q.trigger,
|
|
2838
2838
|
{
|
|
@@ -2845,7 +2845,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2845
2845
|
d(c || 0), p(l || 0), h(!0);
|
|
2846
2846
|
},
|
|
2847
2847
|
activeOpacity: .7,
|
|
2848
|
-
children: [/* @__PURE__ */
|
|
2848
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2849
2849
|
style: [
|
|
2850
2850
|
Q.triggerText,
|
|
2851
2851
|
{ color: C.text },
|
|
@@ -2853,56 +2853,56 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2853
2853
|
],
|
|
2854
2854
|
numberOfLines: 1,
|
|
2855
2855
|
children: D()
|
|
2856
|
-
}), /* @__PURE__ */
|
|
2856
|
+
}), /* @__PURE__ */ I(B, {
|
|
2857
2857
|
style: Q.icon,
|
|
2858
2858
|
children: "🕐"
|
|
2859
2859
|
})]
|
|
2860
2860
|
}),
|
|
2861
|
-
/* @__PURE__ */
|
|
2861
|
+
/* @__PURE__ */ I(me, {
|
|
2862
2862
|
visible: m,
|
|
2863
2863
|
transparent: !0,
|
|
2864
2864
|
animationType: "fade",
|
|
2865
2865
|
onRequestClose: () => h(!1),
|
|
2866
|
-
children: /* @__PURE__ */
|
|
2866
|
+
children: /* @__PURE__ */ I(V, {
|
|
2867
2867
|
style: Q.modalOverlay,
|
|
2868
2868
|
activeOpacity: 1,
|
|
2869
2869
|
onPress: () => h(!1),
|
|
2870
|
-
children: /* @__PURE__ */
|
|
2870
|
+
children: /* @__PURE__ */ L(V, {
|
|
2871
2871
|
style: [Q.modalContent, { backgroundColor: C.card }],
|
|
2872
2872
|
activeOpacity: 1,
|
|
2873
2873
|
onPress: () => {},
|
|
2874
2874
|
children: [
|
|
2875
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ L(H, {
|
|
2876
2876
|
style: [Q.modalHeader, { borderBottomColor: C.separator }],
|
|
2877
|
-
children: [/* @__PURE__ */
|
|
2877
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2878
2878
|
style: [Q.modalTitle, { color: C.text }],
|
|
2879
|
-
children:
|
|
2880
|
-
}), /* @__PURE__ */
|
|
2879
|
+
children: b || i || w("renderer.defaultInputs.selectTime")
|
|
2880
|
+
}), /* @__PURE__ */ I(V, {
|
|
2881
2881
|
onPress: () => h(!1),
|
|
2882
|
-
children: /* @__PURE__ */
|
|
2882
|
+
children: /* @__PURE__ */ I(B, {
|
|
2883
2883
|
style: [Q.closeButton, { color: C.textMuted }],
|
|
2884
2884
|
children: "✕"
|
|
2885
2885
|
})
|
|
2886
2886
|
})]
|
|
2887
2887
|
}),
|
|
2888
|
-
/* @__PURE__ */
|
|
2888
|
+
/* @__PURE__ */ L(H, {
|
|
2889
2889
|
style: Q.pickerContainer,
|
|
2890
2890
|
children: [
|
|
2891
|
-
/* @__PURE__ */
|
|
2891
|
+
/* @__PURE__ */ L(H, {
|
|
2892
2892
|
style: Q.pickerColumn,
|
|
2893
|
-
children: [/* @__PURE__ */
|
|
2893
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2894
2894
|
style: [Q.pickerLabel, { color: C.textMuted }],
|
|
2895
2895
|
children: "Hour"
|
|
2896
|
-
}), /* @__PURE__ */
|
|
2897
|
-
ref:
|
|
2896
|
+
}), /* @__PURE__ */ I(he, {
|
|
2897
|
+
ref: T,
|
|
2898
2898
|
style: Q.picker,
|
|
2899
2899
|
contentContainerStyle: Q.pickerContent,
|
|
2900
2900
|
showsVerticalScrollIndicator: !1,
|
|
2901
|
-
children:
|
|
2901
|
+
children: ee.map((e) => /* @__PURE__ */ I(V, {
|
|
2902
2902
|
style: [Q.pickerItem, u === e && { backgroundColor: C.primary }],
|
|
2903
2903
|
onPress: () => d(e),
|
|
2904
2904
|
activeOpacity: .7,
|
|
2905
|
-
children: /* @__PURE__ */
|
|
2905
|
+
children: /* @__PURE__ */ I(B, {
|
|
2906
2906
|
style: [
|
|
2907
2907
|
Q.pickerItemText,
|
|
2908
2908
|
{ color: C.text },
|
|
@@ -2916,25 +2916,25 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2916
2916
|
}, e))
|
|
2917
2917
|
})]
|
|
2918
2918
|
}),
|
|
2919
|
-
/* @__PURE__ */
|
|
2919
|
+
/* @__PURE__ */ I(B, {
|
|
2920
2920
|
style: [Q.pickerSeparator, { color: C.text }],
|
|
2921
2921
|
children: ":"
|
|
2922
2922
|
}),
|
|
2923
|
-
/* @__PURE__ */
|
|
2923
|
+
/* @__PURE__ */ L(H, {
|
|
2924
2924
|
style: Q.pickerColumn,
|
|
2925
|
-
children: [/* @__PURE__ */
|
|
2925
|
+
children: [/* @__PURE__ */ I(B, {
|
|
2926
2926
|
style: [Q.pickerLabel, { color: C.textMuted }],
|
|
2927
2927
|
children: "Minute"
|
|
2928
|
-
}), /* @__PURE__ */
|
|
2929
|
-
ref:
|
|
2928
|
+
}), /* @__PURE__ */ I(he, {
|
|
2929
|
+
ref: E,
|
|
2930
2930
|
style: Q.picker,
|
|
2931
2931
|
contentContainerStyle: Q.pickerContent,
|
|
2932
2932
|
showsVerticalScrollIndicator: !1,
|
|
2933
|
-
children:
|
|
2933
|
+
children: te.map((e) => /* @__PURE__ */ I(V, {
|
|
2934
2934
|
style: [Q.pickerItem, f === e && { backgroundColor: C.primary }],
|
|
2935
2935
|
onPress: () => p(e),
|
|
2936
2936
|
activeOpacity: .7,
|
|
2937
|
-
children: /* @__PURE__ */
|
|
2937
|
+
children: /* @__PURE__ */ I(B, {
|
|
2938
2938
|
style: [
|
|
2939
2939
|
Q.pickerItemText,
|
|
2940
2940
|
{ color: C.text },
|
|
@@ -2950,11 +2950,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2950
2950
|
})
|
|
2951
2951
|
]
|
|
2952
2952
|
}),
|
|
2953
|
-
/* @__PURE__ */
|
|
2953
|
+
/* @__PURE__ */ I(V, {
|
|
2954
2954
|
style: [Q.confirmButton, { backgroundColor: C.primary }],
|
|
2955
2955
|
onPress: ne,
|
|
2956
2956
|
activeOpacity: .7,
|
|
2957
|
-
children: /* @__PURE__ */
|
|
2957
|
+
children: /* @__PURE__ */ I(B, {
|
|
2958
2958
|
style: [Q.confirmButtonText, { color: C.background }],
|
|
2959
2959
|
children: "Confirm"
|
|
2960
2960
|
})
|
|
@@ -2963,11 +2963,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
2963
2963
|
})
|
|
2964
2964
|
})
|
|
2965
2965
|
}),
|
|
2966
|
-
y && /* @__PURE__ */
|
|
2966
|
+
y && /* @__PURE__ */ I(B, {
|
|
2967
2967
|
style: [Q.error, { color: C.error }],
|
|
2968
2968
|
children: y
|
|
2969
2969
|
}),
|
|
2970
|
-
S && !y && /* @__PURE__ */
|
|
2970
|
+
S && !y && /* @__PURE__ */ I(B, {
|
|
2971
2971
|
style: [Q.helperText, { color: C.textMuted }],
|
|
2972
2972
|
children: S
|
|
2973
2973
|
})
|
|
@@ -3060,27 +3060,27 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3060
3060
|
fontSize: 14
|
|
3061
3061
|
}
|
|
3062
3062
|
}), $e = ({ field: e, extra: t }) => {
|
|
3063
|
-
let [r, i] =
|
|
3063
|
+
let [r, i] = P(!1), [a, o] = P(!0), { value: s } = e, { InputLabel: c, node: l, setValue: u, error: d, label: f, helperText: p } = t, { colors: m } = x(), h = n(), g = Array.isArray(s) ? s : [], _ = g[0] || "", v = g[1] || "", y = _.split(":"), b = Number.parseInt(y[0], 10), S = Number.parseInt(y[1], 10), C = Number.isNaN(b) ? 0 : b, w = Number.isNaN(S) ? 0 : S, T = v.split(":"), E = Number.parseInt(T[0], 10), ee = Number.parseInt(T[1], 10), te = Number.isNaN(E) ? 0 : E, D = Number.isNaN(ee) ? 0 : ee, [ne, O] = P(0), [k, re] = P(0), ie = Array.from({ length: 24 }, (e, t) => t), ae = Array.from({ length: 60 }, (e, t) => t), oe = () => _ && v ? `${_} - ${v}` : _ || h("renderer.defaultInputs.selectTimeRange"), se = ce(() => {
|
|
3064
3064
|
let e = `${String(ne).padStart(2, "0")}:${String(k).padStart(2, "0")}`;
|
|
3065
|
-
a ? (u([e, v]), o(!1), O(
|
|
3065
|
+
a ? (u([e, v]), o(!1), O(te || 0), re(D || 0)) : (u([_, e]), i(!1), o(!0));
|
|
3066
3066
|
}, [
|
|
3067
3067
|
a,
|
|
3068
3068
|
ne,
|
|
3069
3069
|
k,
|
|
3070
3070
|
_,
|
|
3071
3071
|
v,
|
|
3072
|
-
|
|
3072
|
+
te,
|
|
3073
3073
|
D,
|
|
3074
3074
|
u
|
|
3075
3075
|
]);
|
|
3076
|
-
return /* @__PURE__ */
|
|
3076
|
+
return /* @__PURE__ */ L(H, {
|
|
3077
3077
|
style: $.container,
|
|
3078
3078
|
children: [
|
|
3079
|
-
/* @__PURE__ */
|
|
3079
|
+
/* @__PURE__ */ I(c, {
|
|
3080
3080
|
label: f,
|
|
3081
3081
|
required: l.data.required
|
|
3082
3082
|
}),
|
|
3083
|
-
/* @__PURE__ */
|
|
3083
|
+
/* @__PURE__ */ L(V, {
|
|
3084
3084
|
style: [
|
|
3085
3085
|
$.trigger,
|
|
3086
3086
|
{
|
|
@@ -3090,73 +3090,73 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3090
3090
|
d && { borderColor: m.error }
|
|
3091
3091
|
],
|
|
3092
3092
|
onPress: () => {
|
|
3093
|
-
O(C || 0),
|
|
3093
|
+
O(C || 0), re(w || 0), o(!0), i(!0);
|
|
3094
3094
|
},
|
|
3095
3095
|
activeOpacity: .7,
|
|
3096
|
-
children: [/* @__PURE__ */
|
|
3096
|
+
children: [/* @__PURE__ */ I(B, {
|
|
3097
3097
|
style: [
|
|
3098
3098
|
$.triggerText,
|
|
3099
3099
|
{ color: m.text },
|
|
3100
3100
|
!_ && { color: m.textMuted }
|
|
3101
3101
|
],
|
|
3102
3102
|
numberOfLines: 1,
|
|
3103
|
-
children:
|
|
3104
|
-
}), /* @__PURE__ */
|
|
3103
|
+
children: oe()
|
|
3104
|
+
}), /* @__PURE__ */ I(B, {
|
|
3105
3105
|
style: $.icon,
|
|
3106
3106
|
children: "🕐"
|
|
3107
3107
|
})]
|
|
3108
3108
|
}),
|
|
3109
|
-
/* @__PURE__ */
|
|
3109
|
+
/* @__PURE__ */ I(me, {
|
|
3110
3110
|
visible: r,
|
|
3111
3111
|
transparent: !0,
|
|
3112
3112
|
animationType: "fade",
|
|
3113
3113
|
onRequestClose: () => i(!1),
|
|
3114
|
-
children: /* @__PURE__ */
|
|
3114
|
+
children: /* @__PURE__ */ I(V, {
|
|
3115
3115
|
style: $.modalOverlay,
|
|
3116
3116
|
activeOpacity: 1,
|
|
3117
3117
|
onPress: () => i(!1),
|
|
3118
|
-
children: /* @__PURE__ */
|
|
3118
|
+
children: /* @__PURE__ */ L(V, {
|
|
3119
3119
|
style: [$.modalContent, { backgroundColor: m.card }],
|
|
3120
3120
|
activeOpacity: 1,
|
|
3121
3121
|
onPress: () => {},
|
|
3122
3122
|
children: [
|
|
3123
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ L(H, {
|
|
3124
3124
|
style: [$.modalHeader, { borderBottomColor: m.separator }],
|
|
3125
|
-
children: [/* @__PURE__ */
|
|
3125
|
+
children: [/* @__PURE__ */ I(B, {
|
|
3126
3126
|
style: [$.modalTitle, { color: m.text }],
|
|
3127
3127
|
children: f || h("renderer.defaultInputs.selectTimeRange")
|
|
3128
|
-
}), /* @__PURE__ */
|
|
3128
|
+
}), /* @__PURE__ */ I(V, {
|
|
3129
3129
|
onPress: () => i(!1),
|
|
3130
|
-
children: /* @__PURE__ */
|
|
3130
|
+
children: /* @__PURE__ */ I(B, {
|
|
3131
3131
|
style: [$.closeButton, { color: m.textMuted }],
|
|
3132
3132
|
children: "✕"
|
|
3133
3133
|
})
|
|
3134
3134
|
})]
|
|
3135
3135
|
}),
|
|
3136
|
-
/* @__PURE__ */
|
|
3136
|
+
/* @__PURE__ */ I(H, {
|
|
3137
3137
|
style: [$.rangeIndicator, { backgroundColor: m.primaryLight }],
|
|
3138
|
-
children: /* @__PURE__ */
|
|
3138
|
+
children: /* @__PURE__ */ I(B, {
|
|
3139
3139
|
style: [$.rangeIndicatorText, { color: m.primary }],
|
|
3140
3140
|
children: h(a ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
|
|
3141
3141
|
})
|
|
3142
3142
|
}),
|
|
3143
|
-
/* @__PURE__ */
|
|
3143
|
+
/* @__PURE__ */ L(H, {
|
|
3144
3144
|
style: $.pickerContainer,
|
|
3145
3145
|
children: [
|
|
3146
|
-
/* @__PURE__ */
|
|
3146
|
+
/* @__PURE__ */ L(H, {
|
|
3147
3147
|
style: $.pickerColumn,
|
|
3148
|
-
children: [/* @__PURE__ */
|
|
3148
|
+
children: [/* @__PURE__ */ I(B, {
|
|
3149
3149
|
style: [$.pickerLabel, { color: m.textMuted }],
|
|
3150
3150
|
children: "Hour"
|
|
3151
|
-
}), /* @__PURE__ */
|
|
3151
|
+
}), /* @__PURE__ */ I(he, {
|
|
3152
3152
|
style: $.picker,
|
|
3153
3153
|
contentContainerStyle: $.pickerContent,
|
|
3154
3154
|
showsVerticalScrollIndicator: !1,
|
|
3155
|
-
children:
|
|
3155
|
+
children: ie.map((e) => /* @__PURE__ */ I(V, {
|
|
3156
3156
|
style: [$.pickerItem, ne === e && { backgroundColor: m.primary }],
|
|
3157
3157
|
onPress: () => O(e),
|
|
3158
3158
|
activeOpacity: .7,
|
|
3159
|
-
children: /* @__PURE__ */
|
|
3159
|
+
children: /* @__PURE__ */ I(B, {
|
|
3160
3160
|
style: [
|
|
3161
3161
|
$.pickerItemText,
|
|
3162
3162
|
{ color: m.text },
|
|
@@ -3170,24 +3170,24 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3170
3170
|
}, e))
|
|
3171
3171
|
})]
|
|
3172
3172
|
}),
|
|
3173
|
-
/* @__PURE__ */
|
|
3173
|
+
/* @__PURE__ */ I(B, {
|
|
3174
3174
|
style: [$.pickerSeparator, { color: m.text }],
|
|
3175
3175
|
children: ":"
|
|
3176
3176
|
}),
|
|
3177
|
-
/* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ L(H, {
|
|
3178
3178
|
style: $.pickerColumn,
|
|
3179
|
-
children: [/* @__PURE__ */
|
|
3179
|
+
children: [/* @__PURE__ */ I(B, {
|
|
3180
3180
|
style: [$.pickerLabel, { color: m.textMuted }],
|
|
3181
3181
|
children: "Minute"
|
|
3182
|
-
}), /* @__PURE__ */
|
|
3182
|
+
}), /* @__PURE__ */ I(he, {
|
|
3183
3183
|
style: $.picker,
|
|
3184
3184
|
contentContainerStyle: $.pickerContent,
|
|
3185
3185
|
showsVerticalScrollIndicator: !1,
|
|
3186
|
-
children:
|
|
3186
|
+
children: ae.map((e) => /* @__PURE__ */ I(V, {
|
|
3187
3187
|
style: [$.pickerItem, k === e && { backgroundColor: m.primary }],
|
|
3188
|
-
onPress: () =>
|
|
3188
|
+
onPress: () => re(e),
|
|
3189
3189
|
activeOpacity: .7,
|
|
3190
|
-
children: /* @__PURE__ */
|
|
3190
|
+
children: /* @__PURE__ */ I(B, {
|
|
3191
3191
|
style: [
|
|
3192
3192
|
$.pickerItemText,
|
|
3193
3193
|
{ color: m.text },
|
|
@@ -3203,11 +3203,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3203
3203
|
})
|
|
3204
3204
|
]
|
|
3205
3205
|
}),
|
|
3206
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ I(V, {
|
|
3207
3207
|
style: [$.confirmButton, { backgroundColor: m.primary }],
|
|
3208
|
-
onPress:
|
|
3208
|
+
onPress: se,
|
|
3209
3209
|
activeOpacity: .7,
|
|
3210
|
-
children: /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ I(B, {
|
|
3211
3211
|
style: [$.confirmButtonText, { color: m.background }],
|
|
3212
3212
|
children: a ? "Next" : "Confirm"
|
|
3213
3213
|
})
|
|
@@ -3216,11 +3216,11 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3216
3216
|
})
|
|
3217
3217
|
})
|
|
3218
3218
|
}),
|
|
3219
|
-
d && /* @__PURE__ */
|
|
3219
|
+
d && /* @__PURE__ */ I(B, {
|
|
3220
3220
|
style: [$.error, { color: m.error }],
|
|
3221
3221
|
children: d
|
|
3222
3222
|
}),
|
|
3223
|
-
p && !d && /* @__PURE__ */
|
|
3223
|
+
p && !d && /* @__PURE__ */ I(B, {
|
|
3224
3224
|
style: [$.helperText, { color: m.textMuted }],
|
|
3225
3225
|
children: p
|
|
3226
3226
|
})
|
|
@@ -3341,33 +3341,33 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3341
3341
|
textarea: Je,
|
|
3342
3342
|
time: Qe,
|
|
3343
3343
|
timerange: $e
|
|
3344
|
-
}, tt = ({ step: e, label: t, children: r, canGoBack: i, isLastStep: a, canContinue:
|
|
3345
|
-
let { colors: d } =
|
|
3346
|
-
return /* @__PURE__ */
|
|
3347
|
-
t ? /* @__PURE__ */
|
|
3344
|
+
}, tt = ({ step: e, label: t, children: r, canGoBack: i, isLastStep: a, canContinue: s, isSubmitting: c, onBack: l, onContinue: u }) => {
|
|
3345
|
+
let { colors: d } = x(), f = n(), p = !s || c, m = e.nodes.find((e) => o(e) && e.data.type === "submit"), h = m && o(m) ? f(m.data.label) : void 0, g = a ? h || f("renderer.defaultSubmitButton.submit") : f("renderer.step.continue");
|
|
3346
|
+
return /* @__PURE__ */ L(H, { children: [
|
|
3347
|
+
t ? /* @__PURE__ */ I(B, {
|
|
3348
3348
|
style: [nt.label, { color: d.text }],
|
|
3349
3349
|
children: t
|
|
3350
3350
|
}) : null,
|
|
3351
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ I(H, {
|
|
3352
3352
|
style: nt.content,
|
|
3353
3353
|
children: r
|
|
3354
3354
|
}),
|
|
3355
|
-
/* @__PURE__ */
|
|
3355
|
+
/* @__PURE__ */ L(H, {
|
|
3356
3356
|
style: nt.actions,
|
|
3357
|
-
children: [i ? /* @__PURE__ */
|
|
3357
|
+
children: [i ? /* @__PURE__ */ I(V, {
|
|
3358
3358
|
style: [
|
|
3359
3359
|
nt.backButton,
|
|
3360
3360
|
{ borderColor: d.border },
|
|
3361
|
-
|
|
3361
|
+
c && nt.disabled
|
|
3362
3362
|
],
|
|
3363
|
-
onPress:
|
|
3364
|
-
disabled:
|
|
3363
|
+
onPress: l,
|
|
3364
|
+
disabled: c,
|
|
3365
3365
|
activeOpacity: .7,
|
|
3366
|
-
children: /* @__PURE__ */
|
|
3366
|
+
children: /* @__PURE__ */ I(B, {
|
|
3367
3367
|
style: [nt.backButtonText, { color: d.text }],
|
|
3368
3368
|
children: f("renderer.step.back")
|
|
3369
3369
|
})
|
|
3370
|
-
}) : /* @__PURE__ */
|
|
3370
|
+
}) : /* @__PURE__ */ I(H, {}), /* @__PURE__ */ I(V, {
|
|
3371
3371
|
style: [
|
|
3372
3372
|
nt.continueButton,
|
|
3373
3373
|
{ backgroundColor: d.primary },
|
|
@@ -3379,7 +3379,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3379
3379
|
onPress: u,
|
|
3380
3380
|
disabled: p,
|
|
3381
3381
|
activeOpacity: .7,
|
|
3382
|
-
children:
|
|
3382
|
+
children: c ? /* @__PURE__ */ I(R, { color: d.primaryForeground }) : /* @__PURE__ */ I(B, {
|
|
3383
3383
|
style: [nt.continueButtonText, { color: d.primaryForeground }],
|
|
3384
3384
|
children: g
|
|
3385
3385
|
})
|
|
@@ -3422,8 +3422,8 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3422
3422
|
marginBottom: 12
|
|
3423
3423
|
}
|
|
3424
3424
|
}), rt = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
|
|
3425
|
-
let { colors: i } =
|
|
3426
|
-
return /* @__PURE__ */
|
|
3425
|
+
let { colors: i } = x();
|
|
3426
|
+
return /* @__PURE__ */ I(V, {
|
|
3427
3427
|
style: [
|
|
3428
3428
|
it.button,
|
|
3429
3429
|
{ backgroundColor: i.primary },
|
|
@@ -3435,7 +3435,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3435
3435
|
disabled: t || n,
|
|
3436
3436
|
onPress: r,
|
|
3437
3437
|
activeOpacity: .7,
|
|
3438
|
-
children: n ? /* @__PURE__ */
|
|
3438
|
+
children: n ? /* @__PURE__ */ I(R, { color: i.primaryForeground }) : /* @__PURE__ */ I(B, {
|
|
3439
3439
|
style: [it.buttonText, { color: i.primaryForeground }],
|
|
3440
3440
|
children: e
|
|
3441
3441
|
})
|
|
@@ -3454,14 +3454,14 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3454
3454
|
fontWeight: "600"
|
|
3455
3455
|
}
|
|
3456
3456
|
}), at = ({ children: e }) => e, ot = ({ node: e }) => {
|
|
3457
|
-
let t = n(), { colors: r } =
|
|
3458
|
-
return /* @__PURE__ */
|
|
3457
|
+
let t = n(), { colors: r } = x(), i = t(e.data?.label);
|
|
3458
|
+
return /* @__PURE__ */ I(B, {
|
|
3459
3459
|
style: [ct.title, { color: r.text }],
|
|
3460
3460
|
children: i
|
|
3461
3461
|
});
|
|
3462
3462
|
}, st = () => {
|
|
3463
|
-
let { colors: e } =
|
|
3464
|
-
return /* @__PURE__ */
|
|
3463
|
+
let { colors: e } = x();
|
|
3464
|
+
return /* @__PURE__ */ I(H, { style: [ct.divider, { backgroundColor: e.separator }] });
|
|
3465
3465
|
}, ct = z.create({
|
|
3466
3466
|
divider: {
|
|
3467
3467
|
height: 1,
|
|
@@ -3478,7 +3478,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3478
3478
|
title: ot
|
|
3479
3479
|
}, ut = ({ node: e, children: t }) => {
|
|
3480
3480
|
let { image: n } = e.data;
|
|
3481
|
-
return /* @__PURE__ */
|
|
3481
|
+
return /* @__PURE__ */ L(H, { children: [n && /* @__PURE__ */ I(pe, {
|
|
3482
3482
|
source: { uri: n },
|
|
3483
3483
|
style: dt.image,
|
|
3484
3484
|
resizeMode: "cover"
|
|
@@ -3489,8 +3489,8 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3489
3489
|
marginBottom: 8,
|
|
3490
3490
|
width: "100%"
|
|
3491
3491
|
} }), ft = ({ style: e }) => {
|
|
3492
|
-
let { colors: t } =
|
|
3493
|
-
return
|
|
3492
|
+
let { colors: t } = x(), n = N(new de.Value(.5)).current;
|
|
3493
|
+
return M(() => {
|
|
3494
3494
|
let e = de.loop(de.sequence([de.timing(n, {
|
|
3495
3495
|
duration: 600,
|
|
3496
3496
|
toValue: 1,
|
|
@@ -3501,7 +3501,7 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3501
3501
|
useNativeDriver: !0
|
|
3502
3502
|
})]));
|
|
3503
3503
|
return e.start(), () => e.stop();
|
|
3504
|
-
}, [n]), /* @__PURE__ */
|
|
3504
|
+
}, [n]), /* @__PURE__ */ I(de.View, { style: [
|
|
3505
3505
|
mt.bar,
|
|
3506
3506
|
{
|
|
3507
3507
|
backgroundColor: t.muted,
|
|
@@ -3509,24 +3509,24 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3509
3509
|
},
|
|
3510
3510
|
e
|
|
3511
3511
|
] });
|
|
3512
|
-
}, pt = () => /* @__PURE__ */
|
|
3512
|
+
}, pt = () => /* @__PURE__ */ L(H, {
|
|
3513
3513
|
accessibilityState: { busy: !0 },
|
|
3514
3514
|
children: [
|
|
3515
|
-
/* @__PURE__ */
|
|
3516
|
-
/* @__PURE__ */
|
|
3515
|
+
/* @__PURE__ */ I(ft, { style: mt.title }),
|
|
3516
|
+
/* @__PURE__ */ I(H, {
|
|
3517
3517
|
style: mt.fields,
|
|
3518
3518
|
children: [
|
|
3519
3519
|
0,
|
|
3520
3520
|
1,
|
|
3521
3521
|
2
|
|
3522
|
-
].map((e) => /* @__PURE__ */
|
|
3522
|
+
].map((e) => /* @__PURE__ */ L(H, {
|
|
3523
3523
|
style: mt.field,
|
|
3524
|
-
children: [/* @__PURE__ */
|
|
3524
|
+
children: [/* @__PURE__ */ I(ft, { style: mt.fieldLabel }), /* @__PURE__ */ I(ft, { style: mt.fieldInput })]
|
|
3525
3525
|
}, e))
|
|
3526
3526
|
}),
|
|
3527
|
-
/* @__PURE__ */
|
|
3527
|
+
/* @__PURE__ */ I(H, {
|
|
3528
3528
|
style: mt.actions,
|
|
3529
|
-
children: /* @__PURE__ */
|
|
3529
|
+
children: /* @__PURE__ */ I(ft, { style: mt.button })
|
|
3530
3530
|
})
|
|
3531
3531
|
]
|
|
3532
3532
|
}), mt = z.create({
|
|
@@ -3554,8 +3554,8 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3554
3554
|
marginBottom: 24,
|
|
3555
3555
|
width: "33%"
|
|
3556
3556
|
}
|
|
3557
|
-
}), ht = ({ baseUrl: t, components: n, contentContainerStyle: r, extraPayload: i, flow: a, googleApiKey: o, headers: s, initialValues: c, isLoading: l = !1, isSubmitting: u = !1, language: d, onBack: f, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, title: v, validate: y, validationMode:
|
|
3558
|
-
let { colors: S } =
|
|
3557
|
+
}), ht = ({ baseUrl: t, components: n, contentContainerStyle: r, extraPayload: i, flow: a, googleApiKey: o, headers: s, initialValues: c, isLoading: l = !1, isSubmitting: u = !1, language: d, onBack: f, onChange: p, onSubmit: m, showPoweredBy: h, style: g, theme: _, title: v, validate: y, validationMode: b }) => {
|
|
3558
|
+
let { colors: S } = x(), { canContinue: C, canGoBack: w, clearSubmitMessage: T, config: E, currentStep: ee, currentStepGroupNode: te, currentStepIndex: D, formErrors: ne, formTitle: O, formValues: k, handleBack: re, handleContinue: ie, handleSubmit: oe, inputNodes: se, isFinalStep: A, isFirstStep: ce, isSubmitting: M, missingRequiredFields: le, setFieldValue: N, stepLabel: P, steps: F, submitMessage: R, t: ue } = ae({
|
|
3559
3559
|
baseUrl: t,
|
|
3560
3560
|
components: n,
|
|
3561
3561
|
extraPayload: i,
|
|
@@ -3563,50 +3563,35 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3563
3563
|
googleApiKey: o,
|
|
3564
3564
|
headers: s,
|
|
3565
3565
|
initialValues: c,
|
|
3566
|
+
isSubmitting: u,
|
|
3566
3567
|
language: d,
|
|
3568
|
+
onBack: f,
|
|
3567
3569
|
onChange: p,
|
|
3568
3570
|
onSubmit: m,
|
|
3569
3571
|
showPoweredBy: h,
|
|
3570
3572
|
theme: _,
|
|
3573
|
+
title: v,
|
|
3571
3574
|
validate: y,
|
|
3572
|
-
validationMode:
|
|
3573
|
-
}),
|
|
3574
|
-
config:
|
|
3575
|
+
validationMode: b
|
|
3576
|
+
}), { FormWrapper: de, LoadingSkeleton: fe, StepComponent: pe, SubmitButtonWrapper: me, renderNode: z } = j({
|
|
3577
|
+
config: E,
|
|
3575
3578
|
DefaultFormWrapper: ve,
|
|
3576
3579
|
DefaultInputLabel: be,
|
|
3577
3580
|
DefaultInputWrapper: ut,
|
|
3581
|
+
DefaultLoadingSkeleton: pt,
|
|
3582
|
+
DefaultStep: tt,
|
|
3578
3583
|
DefaultSubmitButton: rt,
|
|
3579
3584
|
DefaultSubmitButtonWrapper: at,
|
|
3580
3585
|
defaultInputRenderers: et,
|
|
3581
3586
|
defaultUI: lt,
|
|
3582
3587
|
formErrors: ne,
|
|
3583
|
-
formValues:
|
|
3584
|
-
inputNodes:
|
|
3585
|
-
isSubmitting:
|
|
3586
|
-
missingRequiredFields:
|
|
3587
|
-
setFieldValue:
|
|
3588
|
-
})
|
|
3589
|
-
|
|
3590
|
-
j();
|
|
3591
|
-
return;
|
|
3592
|
-
}
|
|
3593
|
-
k();
|
|
3594
|
-
}, [
|
|
3595
|
-
M,
|
|
3596
|
-
j,
|
|
3597
|
-
k
|
|
3598
|
-
]), xe = oe(() => {
|
|
3599
|
-
if (ae) {
|
|
3600
|
-
f?.();
|
|
3601
|
-
return;
|
|
3602
|
-
}
|
|
3603
|
-
A();
|
|
3604
|
-
}, [
|
|
3605
|
-
ae,
|
|
3606
|
-
f,
|
|
3607
|
-
A
|
|
3608
|
-
]), Se = !ae || !!f;
|
|
3609
|
-
return /* @__PURE__ */ R(he, {
|
|
3588
|
+
formValues: k,
|
|
3589
|
+
inputNodes: se,
|
|
3590
|
+
isSubmitting: M,
|
|
3591
|
+
missingRequiredFields: le,
|
|
3592
|
+
setFieldValue: N
|
|
3593
|
+
});
|
|
3594
|
+
return /* @__PURE__ */ L(he, {
|
|
3610
3595
|
nestedScrollEnabled: !0,
|
|
3611
3596
|
style: [
|
|
3612
3597
|
_t.container,
|
|
@@ -3614,61 +3599,61 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3614
3599
|
g
|
|
3615
3600
|
],
|
|
3616
3601
|
contentContainerStyle: r,
|
|
3617
|
-
children: [
|
|
3602
|
+
children: [O ? /* @__PURE__ */ I(B, {
|
|
3618
3603
|
style: [_t.title, { color: S.text }],
|
|
3619
|
-
children:
|
|
3620
|
-
}) : null, l ? /* @__PURE__ */
|
|
3604
|
+
children: O
|
|
3605
|
+
}) : null, l ? /* @__PURE__ */ I(fe, {}) : /* @__PURE__ */ L(e, {
|
|
3621
3606
|
value: {
|
|
3622
|
-
baseUrl:
|
|
3607
|
+
baseUrl: E.baseUrl,
|
|
3623
3608
|
flow: a,
|
|
3624
3609
|
formErrors: ne,
|
|
3625
|
-
formValues:
|
|
3626
|
-
googleApiKey:
|
|
3627
|
-
headers:
|
|
3628
|
-
inputNodes:
|
|
3629
|
-
language:
|
|
3630
|
-
setFieldValue:
|
|
3610
|
+
formValues: k,
|
|
3611
|
+
googleApiKey: E.googleApiKey,
|
|
3612
|
+
headers: E.headers,
|
|
3613
|
+
inputNodes: se,
|
|
3614
|
+
language: E.language,
|
|
3615
|
+
setFieldValue: N
|
|
3631
3616
|
},
|
|
3632
|
-
children: [/* @__PURE__ */
|
|
3633
|
-
onSubmit:
|
|
3634
|
-
children: [
|
|
3635
|
-
missingFields:
|
|
3636
|
-
children: /* @__PURE__ */
|
|
3637
|
-
step:
|
|
3638
|
-
groupNode:
|
|
3617
|
+
children: [/* @__PURE__ */ L(de, {
|
|
3618
|
+
onSubmit: oe,
|
|
3619
|
+
children: [ee && /* @__PURE__ */ I(me, {
|
|
3620
|
+
missingFields: le,
|
|
3621
|
+
children: /* @__PURE__ */ I(pe, {
|
|
3622
|
+
step: ee,
|
|
3623
|
+
groupNode: te,
|
|
3639
3624
|
stepIndex: D,
|
|
3640
|
-
totalSteps:
|
|
3641
|
-
isFirstStep:
|
|
3642
|
-
isLastStep:
|
|
3643
|
-
canContinue: C
|
|
3644
|
-
canGoBack:
|
|
3645
|
-
isSubmitting:
|
|
3646
|
-
onBack:
|
|
3647
|
-
onContinue:
|
|
3648
|
-
label:
|
|
3649
|
-
children:
|
|
3625
|
+
totalSteps: F.length,
|
|
3626
|
+
isFirstStep: ce,
|
|
3627
|
+
isLastStep: A,
|
|
3628
|
+
canContinue: C,
|
|
3629
|
+
canGoBack: w,
|
|
3630
|
+
isSubmitting: M,
|
|
3631
|
+
onBack: re,
|
|
3632
|
+
onContinue: ie,
|
|
3633
|
+
label: P,
|
|
3634
|
+
children: ee.nodes.map((e) => z(e))
|
|
3650
3635
|
})
|
|
3651
|
-
}),
|
|
3636
|
+
}), E.showPoweredBy && /* @__PURE__ */ I(B, {
|
|
3652
3637
|
style: [_t.poweredBy, { color: S.textMuted }],
|
|
3653
3638
|
children: "Powered by Treege"
|
|
3654
3639
|
})]
|
|
3655
|
-
}),
|
|
3656
|
-
style: [_t.message, { backgroundColor:
|
|
3657
|
-
children: [/* @__PURE__ */
|
|
3658
|
-
style: [_t.messageText, { color:
|
|
3659
|
-
children:
|
|
3660
|
-
}), /* @__PURE__ */
|
|
3661
|
-
style: [_t.messageClose, { color:
|
|
3662
|
-
onPress:
|
|
3640
|
+
}), R && /* @__PURE__ */ L(H, {
|
|
3641
|
+
style: [_t.message, { backgroundColor: R.type === "success" ? S.successBg : S.errorBg }],
|
|
3642
|
+
children: [/* @__PURE__ */ I(B, {
|
|
3643
|
+
style: [_t.messageText, { color: R.type === "success" ? S.success : S.error }],
|
|
3644
|
+
children: R.message
|
|
3645
|
+
}), /* @__PURE__ */ I(B, {
|
|
3646
|
+
style: [_t.messageClose, { color: R.type === "success" ? S.success : S.error }],
|
|
3647
|
+
onPress: T,
|
|
3663
3648
|
children: ue("common.close")
|
|
3664
3649
|
})]
|
|
3665
3650
|
})]
|
|
3666
3651
|
})]
|
|
3667
3652
|
});
|
|
3668
|
-
}, gt = (e) => /* @__PURE__ */
|
|
3653
|
+
}, gt = (e) => /* @__PURE__ */ I(T, {
|
|
3669
3654
|
theme: e.theme,
|
|
3670
3655
|
storageKey: "treege-renderer-theme",
|
|
3671
|
-
children: /* @__PURE__ */
|
|
3656
|
+
children: /* @__PURE__ */ I(ht, { ...e })
|
|
3672
3657
|
}), _t = z.create({
|
|
3673
3658
|
container: {
|
|
3674
3659
|
flexBasis: "auto",
|
|
@@ -3703,4 +3688,4 @@ var ve = ({ children: e }) => /* @__PURE__ */ L(H, {
|
|
|
3703
3688
|
}
|
|
3704
3689
|
});
|
|
3705
3690
|
//#endregion
|
|
3706
|
-
export { we as DefaultAddressInput, De as DefaultAutocompleteInput, Oe as DefaultCheckboxInput, ke as DefaultDateInput, Ae as DefaultDateRangeInput, st as DefaultDividerUI, je as DefaultFileInput, Me as DefaultHiddenInput, Re as DefaultHttpInput, be as DefaultInputLabel, ze as DefaultNumberInput, Ve as DefaultPasswordInput, Ue as DefaultRadioInput, We as DefaultSelectInput, Ke as DefaultSwitchInput, Xe as DefaultTextInput, Je as DefaultTextareaInput, Qe as DefaultTimeInput, $e as DefaultTimeRangeInput, ot as DefaultTitleUI, gt as TreegeRenderer, k as TreegeRendererProvider, C as applyReferenceTransformation,
|
|
3691
|
+
export { we as DefaultAddressInput, De as DefaultAutocompleteInput, Oe as DefaultCheckboxInput, ke as DefaultDateInput, Ae as DefaultDateRangeInput, st as DefaultDividerUI, je as DefaultFileInput, Me as DefaultHiddenInput, Re as DefaultHttpInput, be as DefaultInputLabel, ze as DefaultNumberInput, Ve as DefaultPasswordInput, Ue as DefaultRadioInput, We as DefaultSelectInput, Ke as DefaultSwitchInput, Xe as DefaultTextInput, Je as DefaultTextareaInput, Qe as DefaultTimeInput, $e as DefaultTimeRangeInput, ot as DefaultTitleUI, gt as TreegeRenderer, k as TreegeRendererProvider, C as applyReferenceTransformation, _ as buildInitialFormValues, f as calculateReferenceFieldUpdates, S as checkFormFieldHasValue, w as convertFormValuesToNamedFormat, et as defaultInputRenderers, lt as defaultUI, oe as evaluateCondition, A as evaluateConditions, b as fileNameFromUrl, g as fileToSerializable, h as filesToSerializable, se as findStartNode, d as formatFileSize, re as getFlowRenderState, u as getTranslatedText, m as isFieldEmpty, E as isRemoteFileData, O as isStartNode, D as normalizeSerializableFiles, y as resolveNodeDefaultValue, s as sanitize, ne as sanitizeHttpResponse, p as serializableToFile, ae as useTreegeRenderer, ie as useTreegeRendererConfig };
|