treege 3.0.0-beta.41 → 3.0.0-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DefaultInputs-xMZhO-ry.js → DefaultInputs-Cr6wTVNE.js} +493 -493
- package/dist/{ThemeContext-Ejgu9Mwr.js → ThemeContext-CUHjGVUf.js} +87 -87
- package/dist/editor/features/TreegeEditor/TreegeEditor.d.ts +1 -1
- package/dist/editor/features/TreegeEditor/controls/MiniMapControl.d.ts +6 -0
- package/dist/editor/{hooks/useAutoLayout.d.ts → features/TreegeEditor/layout/AutoLayout.d.ts} +3 -3
- package/dist/editor/features/TreegeEditor/panel/ActionsPanel.d.ts +3 -1
- package/dist/editor/types/editor.d.ts +23 -0
- package/dist/{editor-sMVFoMxL.js → editor-CE8g1o72.js} +1152 -1116
- package/dist/editor.js +2 -2
- package/dist/main.js +3 -3
- package/dist/renderer-native.js +413 -413
- package/dist/renderer.js +2 -2
- package/dist/shared/hooks/useMediaQuery.d.ts +12 -0
- package/package.json +1 -1
package/dist/renderer-native.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { C as e, D as t, N as n, O as r, S as i, _ as a, a as o, b as s, c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./ThemeContext-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { C as e, D as t, N as n, O as r, S as i, _ as a, a as o, b as s, c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./ThemeContext-CUHjGVUf.js";
|
|
2
|
+
import { useCallback as ee, useEffect as T, useMemo as E, useRef as D, useState as O } from "react";
|
|
3
|
+
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
4
4
|
import { ActivityIndicator as j, Alert as M, FlatList as N, Image as P, Modal as F, ScrollView as I, StyleSheet as L, Switch as te, Text as R, TextInput as z, TouchableOpacity as B, View as V } from "react-native";
|
|
5
5
|
//#region src/renderer/features/TreegeRenderer/native/components/DefaultFormWrapper.tsx
|
|
6
|
-
var ne = ({ children: e }) => /* @__PURE__ */
|
|
6
|
+
var ne = ({ children: e }) => /* @__PURE__ */ k(V, {
|
|
7
7
|
style: re.container,
|
|
8
8
|
children: e
|
|
9
9
|
}), re = L.create({ container: { padding: 16 } }), ie = ({ children: e, node: t }) => {
|
|
10
10
|
let n = b(), { colors: r } = m(), i = n(t.data.label);
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ A(V, {
|
|
12
12
|
style: ae.container,
|
|
13
|
-
children: [i && /* @__PURE__ */
|
|
13
|
+
children: [i && /* @__PURE__ */ k(R, {
|
|
14
14
|
style: [ae.label, { color: r.text }],
|
|
15
15
|
children: i
|
|
16
|
-
}), /* @__PURE__ */
|
|
16
|
+
}), /* @__PURE__ */ k(V, {
|
|
17
17
|
style: ae.content,
|
|
18
18
|
children: e
|
|
19
19
|
})]
|
|
@@ -55,12 +55,12 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
55
55
|
return console.error("Google Places fetch error:", e), [];
|
|
56
56
|
}
|
|
57
57
|
}, H = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, id: s, name: c }) => {
|
|
58
|
-
let [l, u] =
|
|
58
|
+
let [l, u] = O(""), [d, f] = O([]), [h, g] = O(!1), [_, v] = O(!1), { language: y, googleApiKey: x } = p(), S = b(), { colors: C } = m(), w = ee((e) => {
|
|
59
59
|
n(e.value), u(""), g(!1), f([]);
|
|
60
|
-
}, [n]),
|
|
60
|
+
}, [n]), E = () => {
|
|
61
61
|
g(!1);
|
|
62
62
|
};
|
|
63
|
-
return
|
|
63
|
+
return T(() => {
|
|
64
64
|
if (!l || l.trim().length < 3) {
|
|
65
65
|
f([]), v(!1);
|
|
66
66
|
return;
|
|
@@ -76,17 +76,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
76
76
|
l,
|
|
77
77
|
y,
|
|
78
78
|
x
|
|
79
|
-
]), /* @__PURE__ */
|
|
79
|
+
]), /* @__PURE__ */ A(V, {
|
|
80
80
|
style: U.container,
|
|
81
81
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ A(R, {
|
|
83
83
|
style: [U.label, { color: C.textSecondary }],
|
|
84
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
84
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
85
85
|
style: { color: C.error },
|
|
86
86
|
children: "*"
|
|
87
87
|
})]
|
|
88
88
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ A(B, {
|
|
90
90
|
style: [
|
|
91
91
|
U.trigger,
|
|
92
92
|
{
|
|
@@ -97,7 +97,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
97
97
|
],
|
|
98
98
|
onPress: () => g(!0),
|
|
99
99
|
activeOpacity: .7,
|
|
100
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ k(R, {
|
|
101
101
|
style: [
|
|
102
102
|
U.triggerText,
|
|
103
103
|
{ color: C.text },
|
|
@@ -105,41 +105,41 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
105
105
|
],
|
|
106
106
|
numberOfLines: 1,
|
|
107
107
|
children: t || a || S("renderer.defaultAddressInput.enterAddress")
|
|
108
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ k(R, {
|
|
109
109
|
style: U.icon,
|
|
110
110
|
children: "📍"
|
|
111
111
|
})]
|
|
112
112
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ k(F, {
|
|
114
114
|
visible: h,
|
|
115
115
|
transparent: !0,
|
|
116
116
|
animationType: "fade",
|
|
117
|
-
onRequestClose:
|
|
118
|
-
children: /* @__PURE__ */
|
|
117
|
+
onRequestClose: E,
|
|
118
|
+
children: /* @__PURE__ */ k(B, {
|
|
119
119
|
style: U.modalOverlay,
|
|
120
120
|
activeOpacity: 1,
|
|
121
|
-
onPress:
|
|
122
|
-
children: /* @__PURE__ */
|
|
121
|
+
onPress: E,
|
|
122
|
+
children: /* @__PURE__ */ A(B, {
|
|
123
123
|
style: [U.modalContent, { backgroundColor: C.card }],
|
|
124
124
|
activeOpacity: 1,
|
|
125
125
|
onPress: () => {},
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ A(V, {
|
|
128
128
|
style: [U.modalHeader, { borderBottomColor: C.separator }],
|
|
129
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ k(R, {
|
|
130
130
|
style: [U.modalTitle, { color: C.text }],
|
|
131
131
|
children: i || e.data.name
|
|
132
|
-
}), /* @__PURE__ */
|
|
133
|
-
onPress:
|
|
134
|
-
children: /* @__PURE__ */
|
|
132
|
+
}), /* @__PURE__ */ k(B, {
|
|
133
|
+
onPress: E,
|
|
134
|
+
children: /* @__PURE__ */ k(R, {
|
|
135
135
|
style: [U.closeButton, { color: C.textMuted }],
|
|
136
136
|
children: "✕"
|
|
137
137
|
})
|
|
138
138
|
})]
|
|
139
139
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ A(V, {
|
|
141
141
|
style: U.searchContainer,
|
|
142
|
-
children: [/* @__PURE__ */
|
|
142
|
+
children: [/* @__PURE__ */ k(z, {
|
|
143
143
|
style: [U.searchInput, {
|
|
144
144
|
backgroundColor: C.muted,
|
|
145
145
|
borderColor: C.border,
|
|
@@ -152,48 +152,48 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
152
152
|
autoFocus: !0,
|
|
153
153
|
autoCapitalize: "none",
|
|
154
154
|
autoCorrect: !1
|
|
155
|
-
}), _ && /* @__PURE__ */
|
|
155
|
+
}), _ && /* @__PURE__ */ k(j, {
|
|
156
156
|
size: "small",
|
|
157
157
|
color: C.primary,
|
|
158
158
|
style: U.searchLoader
|
|
159
159
|
})]
|
|
160
160
|
}),
|
|
161
|
-
_ ? /* @__PURE__ */
|
|
161
|
+
_ ? /* @__PURE__ */ A(V, {
|
|
162
162
|
style: U.loadingContainer,
|
|
163
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ k(j, {
|
|
164
164
|
size: "small",
|
|
165
165
|
color: C.primary
|
|
166
|
-
}), /* @__PURE__ */
|
|
166
|
+
}), /* @__PURE__ */ k(R, {
|
|
167
167
|
style: [U.loadingText, { color: C.textMuted }],
|
|
168
168
|
children: S("renderer.defaultAddressInput.searching")
|
|
169
169
|
})]
|
|
170
|
-
}) : /* @__PURE__ */
|
|
170
|
+
}) : /* @__PURE__ */ k(N, {
|
|
171
171
|
data: d,
|
|
172
172
|
keyExtractor: (e, t) => t.toString(),
|
|
173
173
|
style: U.suggestionsList,
|
|
174
174
|
contentContainerStyle: U.suggestionsListContent,
|
|
175
175
|
keyboardShouldPersistTaps: "handled",
|
|
176
|
-
ListEmptyComponent: l.length >= 3 ? /* @__PURE__ */
|
|
176
|
+
ListEmptyComponent: l.length >= 3 ? /* @__PURE__ */ k(V, {
|
|
177
177
|
style: U.emptyContainer,
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ k(R, {
|
|
179
179
|
style: [U.emptyText, { color: C.textMuted }],
|
|
180
180
|
children: S("renderer.defaultAddressInput.noAddressesFound")
|
|
181
181
|
})
|
|
182
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ k(V, {
|
|
183
183
|
style: U.emptyContainer,
|
|
184
|
-
children: /* @__PURE__ */
|
|
184
|
+
children: /* @__PURE__ */ k(R, {
|
|
185
185
|
style: [U.emptyText, { color: C.textMuted }],
|
|
186
186
|
children: S("renderer.defaultAddressInput.typeMinChars")
|
|
187
187
|
})
|
|
188
188
|
}),
|
|
189
|
-
renderItem: ({ item: e }) => /* @__PURE__ */
|
|
189
|
+
renderItem: ({ item: e }) => /* @__PURE__ */ A(B, {
|
|
190
190
|
style: U.suggestionItem,
|
|
191
191
|
onPress: () => w(e),
|
|
192
192
|
activeOpacity: .7,
|
|
193
|
-
children: [/* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ k(R, {
|
|
194
194
|
style: U.suggestionIcon,
|
|
195
195
|
children: "📍"
|
|
196
|
-
}), /* @__PURE__ */
|
|
196
|
+
}), /* @__PURE__ */ k(R, {
|
|
197
197
|
style: [U.suggestionText, { color: C.text }],
|
|
198
198
|
numberOfLines: 2,
|
|
199
199
|
children: e.label
|
|
@@ -204,11 +204,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
204
204
|
})
|
|
205
205
|
})
|
|
206
206
|
}),
|
|
207
|
-
r && /* @__PURE__ */
|
|
207
|
+
r && /* @__PURE__ */ k(R, {
|
|
208
208
|
style: [U.error, { color: C.error }],
|
|
209
209
|
children: r
|
|
210
210
|
}),
|
|
211
|
-
o && !r && /* @__PURE__ */
|
|
211
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
212
212
|
style: [U.helperText, { color: C.textMuted }],
|
|
213
213
|
children: o
|
|
214
214
|
})
|
|
@@ -325,7 +325,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
325
325
|
fontSize: 14
|
|
326
326
|
}
|
|
327
327
|
}), ce = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
|
|
328
|
-
let [s, c] =
|
|
328
|
+
let [s, c] = O(!1), [l, u] = O(""), d = b(), { colors: f } = m(), p = e.data.options || [], h = p.find((e) => e.value === t), g = E(() => {
|
|
329
329
|
if (!l.trim()) return p;
|
|
330
330
|
let e = l.toLowerCase();
|
|
331
331
|
return p.filter((t) => d(t.label).toLowerCase().includes(e) || t.value.toLowerCase().includes(e));
|
|
@@ -338,17 +338,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
338
338
|
}, v = () => {
|
|
339
339
|
c(!1), u("");
|
|
340
340
|
};
|
|
341
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ A(V, {
|
|
342
342
|
style: W.container,
|
|
343
343
|
children: [
|
|
344
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ A(R, {
|
|
345
345
|
style: [W.label, { color: f.textSecondary }],
|
|
346
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
346
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
347
347
|
style: { color: f.error },
|
|
348
348
|
children: "*"
|
|
349
349
|
})]
|
|
350
350
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ A(B, {
|
|
352
352
|
style: [
|
|
353
353
|
W.trigger,
|
|
354
354
|
{
|
|
@@ -359,7 +359,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
359
359
|
],
|
|
360
360
|
onPress: () => c(!0),
|
|
361
361
|
activeOpacity: .7,
|
|
362
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ k(R, {
|
|
363
363
|
style: [
|
|
364
364
|
W.triggerText,
|
|
365
365
|
{ color: f.text },
|
|
@@ -367,41 +367,41 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
367
367
|
],
|
|
368
368
|
numberOfLines: 1,
|
|
369
369
|
children: t && h ? d(h.label) : a || d("renderer.defaultAutocompleteInput.selectOption")
|
|
370
|
-
}), /* @__PURE__ */
|
|
370
|
+
}), /* @__PURE__ */ k(R, {
|
|
371
371
|
style: [W.arrow, { color: f.textMuted }],
|
|
372
372
|
children: "▼"
|
|
373
373
|
})]
|
|
374
374
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ k(F, {
|
|
376
376
|
visible: s,
|
|
377
377
|
transparent: !0,
|
|
378
378
|
animationType: "fade",
|
|
379
379
|
onRequestClose: v,
|
|
380
|
-
children: /* @__PURE__ */
|
|
380
|
+
children: /* @__PURE__ */ k(B, {
|
|
381
381
|
style: W.modalOverlay,
|
|
382
382
|
activeOpacity: 1,
|
|
383
383
|
onPress: v,
|
|
384
|
-
children: /* @__PURE__ */
|
|
384
|
+
children: /* @__PURE__ */ A(B, {
|
|
385
385
|
style: [W.modalContent, { backgroundColor: f.card }],
|
|
386
386
|
activeOpacity: 1,
|
|
387
387
|
onPress: () => {},
|
|
388
388
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ A(V, {
|
|
390
390
|
style: [W.modalHeader, { borderBottomColor: f.separator }],
|
|
391
|
-
children: [/* @__PURE__ */
|
|
391
|
+
children: [/* @__PURE__ */ k(R, {
|
|
392
392
|
style: [W.modalTitle, { color: f.text }],
|
|
393
393
|
children: i || e.data.name
|
|
394
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ k(B, {
|
|
395
395
|
onPress: v,
|
|
396
|
-
children: /* @__PURE__ */
|
|
396
|
+
children: /* @__PURE__ */ k(R, {
|
|
397
397
|
style: [W.closeButton, { color: f.textMuted }],
|
|
398
398
|
children: "✕"
|
|
399
399
|
})
|
|
400
400
|
})]
|
|
401
401
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ k(V, {
|
|
403
403
|
style: W.searchContainer,
|
|
404
|
-
children: /* @__PURE__ */
|
|
404
|
+
children: /* @__PURE__ */ k(z, {
|
|
405
405
|
style: [W.searchInput, {
|
|
406
406
|
backgroundColor: f.muted,
|
|
407
407
|
borderColor: f.border,
|
|
@@ -416,33 +416,33 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
416
416
|
autoCorrect: !1
|
|
417
417
|
})
|
|
418
418
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ k(N, {
|
|
420
420
|
data: g,
|
|
421
421
|
keyExtractor: (e) => e.value,
|
|
422
422
|
style: W.optionsList,
|
|
423
423
|
contentContainerStyle: W.optionsListContent,
|
|
424
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
424
|
+
ListEmptyComponent: /* @__PURE__ */ k(V, {
|
|
425
425
|
style: W.emptyContainer,
|
|
426
|
-
children: /* @__PURE__ */
|
|
426
|
+
children: /* @__PURE__ */ k(R, {
|
|
427
427
|
style: [W.emptyText, { color: f.textMuted }],
|
|
428
428
|
children: d("renderer.defaultAutocompleteInput.noResults")
|
|
429
429
|
})
|
|
430
430
|
}),
|
|
431
431
|
renderItem: ({ item: e }) => {
|
|
432
432
|
let n = e.value === t;
|
|
433
|
-
return /* @__PURE__ */
|
|
433
|
+
return /* @__PURE__ */ A(B, {
|
|
434
434
|
style: [W.option, n && { backgroundColor: f.primaryLight }],
|
|
435
435
|
onPress: () => _(e.value),
|
|
436
436
|
disabled: e.disabled,
|
|
437
437
|
activeOpacity: .7,
|
|
438
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ k(R, {
|
|
439
439
|
style: [
|
|
440
440
|
W.optionText,
|
|
441
441
|
{ color: f.text },
|
|
442
442
|
e.disabled && { color: f.textMuted }
|
|
443
443
|
],
|
|
444
444
|
children: d(e.label)
|
|
445
|
-
}), n && /* @__PURE__ */
|
|
445
|
+
}), n && /* @__PURE__ */ k(R, {
|
|
446
446
|
style: [W.checkmark, { color: f.primary }],
|
|
447
447
|
children: "✓"
|
|
448
448
|
})]
|
|
@@ -453,11 +453,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
453
453
|
})
|
|
454
454
|
})
|
|
455
455
|
}),
|
|
456
|
-
r && /* @__PURE__ */
|
|
456
|
+
r && /* @__PURE__ */ k(R, {
|
|
457
457
|
style: [W.error, { color: f.error }],
|
|
458
458
|
children: r
|
|
459
459
|
}),
|
|
460
|
-
o && !r && /* @__PURE__ */
|
|
460
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
461
461
|
style: [W.helperText, { color: f.textMuted }],
|
|
462
462
|
children: o
|
|
463
463
|
})
|
|
@@ -558,19 +558,19 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
558
558
|
let o = b(), { colors: s } = m(), c = e.data.options || [], l = c.length > 0, u = Array.isArray(t) ? t : [], d = typeof t == "boolean" ? t : !1, f = (e) => {
|
|
559
559
|
n(l ? u.includes(e) ? u.filter((t) => t !== e) : [...u, e] : !d);
|
|
560
560
|
}, p = (e) => l ? u.includes(e) : d;
|
|
561
|
-
return /* @__PURE__ */
|
|
561
|
+
return /* @__PURE__ */ A(V, {
|
|
562
562
|
style: G.container,
|
|
563
563
|
children: [
|
|
564
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ A(R, {
|
|
565
565
|
style: [G.label, { color: s.textSecondary }],
|
|
566
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
566
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
567
567
|
style: { color: s.error },
|
|
568
568
|
children: "*"
|
|
569
569
|
})]
|
|
570
570
|
}),
|
|
571
571
|
c.length > 0 ? c.map((e) => {
|
|
572
572
|
let t = o(e.description);
|
|
573
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ A(B, {
|
|
574
574
|
style: G.option,
|
|
575
575
|
onPress: () => f(e.value),
|
|
576
576
|
disabled: e.disabled,
|
|
@@ -582,7 +582,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
582
582
|
disabled: e.disabled
|
|
583
583
|
},
|
|
584
584
|
accessibilityLabel: o(e.label) || e.value,
|
|
585
|
-
children: [/* @__PURE__ */
|
|
585
|
+
children: [/* @__PURE__ */ k(V, {
|
|
586
586
|
style: [
|
|
587
587
|
G.checkbox,
|
|
588
588
|
{
|
|
@@ -594,26 +594,26 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
594
594
|
borderColor: s.primary
|
|
595
595
|
}
|
|
596
596
|
],
|
|
597
|
-
children: p(e.value) && /* @__PURE__ */
|
|
597
|
+
children: p(e.value) && /* @__PURE__ */ k(R, {
|
|
598
598
|
style: G.checkmark,
|
|
599
599
|
children: "✓"
|
|
600
600
|
})
|
|
601
|
-
}), /* @__PURE__ */
|
|
601
|
+
}), /* @__PURE__ */ A(V, {
|
|
602
602
|
style: G.optionTextContainer,
|
|
603
|
-
children: [/* @__PURE__ */
|
|
603
|
+
children: [/* @__PURE__ */ k(R, {
|
|
604
604
|
style: [
|
|
605
605
|
G.optionLabel,
|
|
606
606
|
{ color: s.textSecondary },
|
|
607
607
|
e.disabled && { color: s.textMuted }
|
|
608
608
|
],
|
|
609
609
|
children: o(e.label) || e.value
|
|
610
|
-
}), t && /* @__PURE__ */
|
|
610
|
+
}), t && /* @__PURE__ */ k(R, {
|
|
611
611
|
style: [G.optionDescription, { color: s.textMuted }],
|
|
612
612
|
children: t
|
|
613
613
|
})]
|
|
614
614
|
})]
|
|
615
615
|
}, e.value);
|
|
616
|
-
}) : /* @__PURE__ */
|
|
616
|
+
}) : /* @__PURE__ */ A(B, {
|
|
617
617
|
style: G.option,
|
|
618
618
|
onPress: () => f(""),
|
|
619
619
|
activeOpacity: .7,
|
|
@@ -621,7 +621,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
621
621
|
accessibilityRole: "checkbox",
|
|
622
622
|
accessibilityState: { checked: d },
|
|
623
623
|
accessibilityLabel: i || e.data.name,
|
|
624
|
-
children: [/* @__PURE__ */
|
|
624
|
+
children: [/* @__PURE__ */ k(V, {
|
|
625
625
|
style: [
|
|
626
626
|
G.checkbox,
|
|
627
627
|
{
|
|
@@ -633,20 +633,20 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
633
633
|
borderColor: s.primary
|
|
634
634
|
}
|
|
635
635
|
],
|
|
636
|
-
children: d && /* @__PURE__ */
|
|
636
|
+
children: d && /* @__PURE__ */ k(R, {
|
|
637
637
|
style: G.checkmark,
|
|
638
638
|
children: "✓"
|
|
639
639
|
})
|
|
640
|
-
}), /* @__PURE__ */
|
|
640
|
+
}), /* @__PURE__ */ k(R, {
|
|
641
641
|
style: [G.optionLabel, { color: s.textSecondary }],
|
|
642
642
|
children: i || e.data.name
|
|
643
643
|
})]
|
|
644
644
|
}),
|
|
645
|
-
r && /* @__PURE__ */
|
|
645
|
+
r && /* @__PURE__ */ k(R, {
|
|
646
646
|
style: [G.error, { color: s.error }],
|
|
647
647
|
children: r
|
|
648
648
|
}),
|
|
649
|
-
a && !r && /* @__PURE__ */
|
|
649
|
+
a && !r && /* @__PURE__ */ k(R, {
|
|
650
650
|
style: [G.helperText, { color: s.textMuted }],
|
|
651
651
|
children: a
|
|
652
652
|
})
|
|
@@ -693,14 +693,14 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
693
693
|
optionLabel: { fontSize: 14 },
|
|
694
694
|
optionTextContainer: { flex: 1 }
|
|
695
695
|
}), ue = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
|
|
696
|
-
let [s, c] =
|
|
696
|
+
let [s, c] = O(!1), l = b(), { colors: u } = m(), d = t ? new Date(t) : void 0, { year: f, month: p, today: h } = E(() => {
|
|
697
697
|
let e = d || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
|
|
698
698
|
return r.setHours(0, 0, 0, 0), {
|
|
699
699
|
month: n,
|
|
700
700
|
today: r,
|
|
701
701
|
year: t
|
|
702
702
|
};
|
|
703
|
-
}, [d]), [g, _] =
|
|
703
|
+
}, [d]), [g, _] = O(f), [v, y] = O(p), x = [
|
|
704
704
|
"January",
|
|
705
705
|
"February",
|
|
706
706
|
"March",
|
|
@@ -713,7 +713,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
713
713
|
"October",
|
|
714
714
|
"November",
|
|
715
715
|
"December"
|
|
716
|
-
], S =
|
|
716
|
+
], S = E(() => {
|
|
717
717
|
let e = new Date(g, v, 1).getDay(), t = new Date(g, v + 1, 0).getDate(), n = new Date(g, v, 0).getDate(), r = [];
|
|
718
718
|
for (let t = e - 1; t >= 0; t--) r.push({
|
|
719
719
|
date: new Date(g, v - 1, n - t),
|
|
@@ -740,20 +740,20 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
740
740
|
n
|
|
741
741
|
]), w = () => {
|
|
742
742
|
v === 0 ? (y(11), _(g - 1)) : y(v - 1);
|
|
743
|
-
},
|
|
743
|
+
}, T = () => {
|
|
744
744
|
v === 11 ? (y(0), _(g + 1)) : y(v + 1);
|
|
745
|
-
},
|
|
746
|
-
return /* @__PURE__ */
|
|
745
|
+
}, D = () => d ? d.toLocaleDateString() : a || l("renderer.defaultInputs.selectDate"), j = (t) => e.data.disablePast ? t < h : !1, M = (e) => d ? e.getDate() === d.getDate() && e.getMonth() === d.getMonth() && e.getFullYear() === d.getFullYear() : !1;
|
|
746
|
+
return /* @__PURE__ */ A(V, {
|
|
747
747
|
style: K.container,
|
|
748
748
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ A(R, {
|
|
750
750
|
style: [K.label, { color: u.textSecondary }],
|
|
751
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
751
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
752
752
|
style: { color: u.error },
|
|
753
753
|
children: "*"
|
|
754
754
|
})]
|
|
755
755
|
}),
|
|
756
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ A(B, {
|
|
757
757
|
style: [
|
|
758
758
|
K.trigger,
|
|
759
759
|
{
|
|
@@ -764,58 +764,58 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
764
764
|
],
|
|
765
765
|
onPress: () => c(!0),
|
|
766
766
|
activeOpacity: .7,
|
|
767
|
-
children: [/* @__PURE__ */
|
|
767
|
+
children: [/* @__PURE__ */ k(R, {
|
|
768
768
|
style: [
|
|
769
769
|
K.triggerText,
|
|
770
770
|
{ color: u.text },
|
|
771
771
|
!t && { color: u.textMuted }
|
|
772
772
|
],
|
|
773
773
|
numberOfLines: 1,
|
|
774
|
-
children:
|
|
775
|
-
}), /* @__PURE__ */
|
|
774
|
+
children: D()
|
|
775
|
+
}), /* @__PURE__ */ k(R, {
|
|
776
776
|
style: K.icon,
|
|
777
777
|
children: "📅"
|
|
778
778
|
})]
|
|
779
779
|
}),
|
|
780
|
-
/* @__PURE__ */
|
|
780
|
+
/* @__PURE__ */ k(F, {
|
|
781
781
|
visible: s,
|
|
782
782
|
transparent: !0,
|
|
783
783
|
animationType: "fade",
|
|
784
784
|
onRequestClose: () => c(!1),
|
|
785
|
-
children: /* @__PURE__ */
|
|
785
|
+
children: /* @__PURE__ */ k(B, {
|
|
786
786
|
style: K.modalOverlay,
|
|
787
787
|
activeOpacity: 1,
|
|
788
788
|
onPress: () => c(!1),
|
|
789
|
-
children: /* @__PURE__ */
|
|
789
|
+
children: /* @__PURE__ */ A(B, {
|
|
790
790
|
style: [K.modalContent, { backgroundColor: u.card }],
|
|
791
791
|
activeOpacity: 1,
|
|
792
792
|
onPress: () => {},
|
|
793
793
|
children: [
|
|
794
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ A(V, {
|
|
795
795
|
style: [K.modalHeader, { borderBottomColor: u.separator }],
|
|
796
|
-
children: [/* @__PURE__ */
|
|
796
|
+
children: [/* @__PURE__ */ k(R, {
|
|
797
797
|
style: [K.modalTitle, { color: u.text }],
|
|
798
798
|
children: i || e.data.name
|
|
799
|
-
}), /* @__PURE__ */
|
|
799
|
+
}), /* @__PURE__ */ k(B, {
|
|
800
800
|
onPress: () => c(!1),
|
|
801
|
-
children: /* @__PURE__ */
|
|
801
|
+
children: /* @__PURE__ */ k(R, {
|
|
802
802
|
style: [K.closeButton, { color: u.textMuted }],
|
|
803
803
|
children: "✕"
|
|
804
804
|
})
|
|
805
805
|
})]
|
|
806
806
|
}),
|
|
807
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ A(V, {
|
|
808
808
|
style: K.calendarHeader,
|
|
809
809
|
children: [
|
|
810
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ k(B, {
|
|
811
811
|
onPress: w,
|
|
812
812
|
style: K.navButton,
|
|
813
|
-
children: /* @__PURE__ */
|
|
813
|
+
children: /* @__PURE__ */ k(R, {
|
|
814
814
|
style: [K.navButtonText, { color: u.primary }],
|
|
815
815
|
children: "‹"
|
|
816
816
|
})
|
|
817
817
|
}),
|
|
818
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ A(R, {
|
|
819
819
|
style: [K.monthYear, { color: u.text }],
|
|
820
820
|
children: [
|
|
821
821
|
x[v],
|
|
@@ -823,17 +823,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
823
823
|
g
|
|
824
824
|
]
|
|
825
825
|
}),
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
onPress:
|
|
826
|
+
/* @__PURE__ */ k(B, {
|
|
827
|
+
onPress: T,
|
|
828
828
|
style: K.navButton,
|
|
829
|
-
children: /* @__PURE__ */
|
|
829
|
+
children: /* @__PURE__ */ k(R, {
|
|
830
830
|
style: [K.navButtonText, { color: u.primary }],
|
|
831
831
|
children: "›"
|
|
832
832
|
})
|
|
833
833
|
})
|
|
834
834
|
]
|
|
835
835
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ k(V, {
|
|
837
837
|
style: K.weekDays,
|
|
838
838
|
children: [
|
|
839
839
|
"Sun",
|
|
@@ -843,12 +843,12 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
843
843
|
"Thu",
|
|
844
844
|
"Fri",
|
|
845
845
|
"Sat"
|
|
846
|
-
].map((e) => /* @__PURE__ */
|
|
846
|
+
].map((e) => /* @__PURE__ */ k(R, {
|
|
847
847
|
style: [K.weekDay, { color: u.textMuted }],
|
|
848
848
|
children: e
|
|
849
849
|
}, e))
|
|
850
850
|
}),
|
|
851
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ k(N, {
|
|
852
852
|
data: S,
|
|
853
853
|
keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
|
|
854
854
|
numColumns: 7,
|
|
@@ -857,7 +857,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
857
857
|
contentContainerStyle: K.calendarContent,
|
|
858
858
|
renderItem: ({ item: e }) => {
|
|
859
859
|
let t = j(e.date), n = M(e.date);
|
|
860
|
-
return /* @__PURE__ */
|
|
860
|
+
return /* @__PURE__ */ k(B, {
|
|
861
861
|
style: [
|
|
862
862
|
K.dayCell,
|
|
863
863
|
!e.isCurrentMonth && K.dayCellOtherMonth,
|
|
@@ -870,7 +870,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
870
870
|
onPress: () => C(e.date),
|
|
871
871
|
disabled: t,
|
|
872
872
|
activeOpacity: .7,
|
|
873
|
-
children: /* @__PURE__ */
|
|
873
|
+
children: /* @__PURE__ */ k(R, {
|
|
874
874
|
style: [
|
|
875
875
|
K.dayText,
|
|
876
876
|
{ color: u.text },
|
|
@@ -890,11 +890,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
890
890
|
})
|
|
891
891
|
})
|
|
892
892
|
}),
|
|
893
|
-
r && /* @__PURE__ */
|
|
893
|
+
r && /* @__PURE__ */ k(R, {
|
|
894
894
|
style: [K.error, { color: u.error }],
|
|
895
895
|
children: r
|
|
896
896
|
}),
|
|
897
|
-
o && !r && /* @__PURE__ */
|
|
897
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
898
898
|
style: [K.helperText, { color: u.textMuted }],
|
|
899
899
|
children: o
|
|
900
900
|
})
|
|
@@ -1001,14 +1001,14 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1001
1001
|
marginBottom: 8
|
|
1002
1002
|
}
|
|
1003
1003
|
}), de = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
|
|
1004
|
-
let [o, s] =
|
|
1004
|
+
let [o, s] = O(!1), [c, l] = O(!0), u = b(), { colors: d } = m(), f = Array.isArray(t) ? t : [], p = f[0] ? new Date(f[0]) : void 0, h = f[1] ? new Date(f[1]) : void 0, { year: g, month: _, today: v } = E(() => {
|
|
1005
1005
|
let e = p || /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth(), r = /* @__PURE__ */ new Date();
|
|
1006
1006
|
return r.setHours(0, 0, 0, 0), {
|
|
1007
1007
|
month: n,
|
|
1008
1008
|
today: r,
|
|
1009
1009
|
year: t
|
|
1010
1010
|
};
|
|
1011
|
-
}, [p]), [y, x] =
|
|
1011
|
+
}, [p]), [y, x] = O(g), [S, C] = O(_), w = [
|
|
1012
1012
|
"January",
|
|
1013
1013
|
"February",
|
|
1014
1014
|
"March",
|
|
@@ -1021,7 +1021,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1021
1021
|
"October",
|
|
1022
1022
|
"November",
|
|
1023
1023
|
"December"
|
|
1024
|
-
],
|
|
1024
|
+
], T = E(() => {
|
|
1025
1025
|
let e = new Date(y, S, 1).getDay(), t = new Date(y, S + 1, 0).getDate(), n = new Date(y, S, 0).getDate(), r = [];
|
|
1026
1026
|
for (let t = e - 1; t >= 0; t--) r.push({
|
|
1027
1027
|
date: new Date(y, S - 1, n - t),
|
|
@@ -1040,7 +1040,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1040
1040
|
isCurrentMonth: !1
|
|
1041
1041
|
});
|
|
1042
1042
|
return r;
|
|
1043
|
-
}, [y, S]),
|
|
1043
|
+
}, [y, S]), D = ee((t) => {
|
|
1044
1044
|
e.data.disablePast && t < v || (c ? (n([t.toISOString(), h?.toISOString()]), l(!1)) : (n(p && t < p ? [t.toISOString(), p.toISOString()] : [p?.toISOString(), t.toISOString()]), s(!1), l(!0)));
|
|
1045
1045
|
}, [
|
|
1046
1046
|
e.data.disablePast,
|
|
@@ -1058,17 +1058,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1058
1058
|
let t = p && e.getDate() === p.getDate() && e.getMonth() === p.getMonth() && e.getFullYear() === p.getFullYear(), n = h && e.getDate() === h.getDate() && e.getMonth() === h.getMonth() && e.getFullYear() === h.getFullYear();
|
|
1059
1059
|
return t || n;
|
|
1060
1060
|
};
|
|
1061
|
-
return /* @__PURE__ */
|
|
1061
|
+
return /* @__PURE__ */ A(V, {
|
|
1062
1062
|
style: q.container,
|
|
1063
1063
|
children: [
|
|
1064
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ A(R, {
|
|
1065
1065
|
style: [q.label, { color: d.textSecondary }],
|
|
1066
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
1066
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
1067
1067
|
style: { color: d.error },
|
|
1068
1068
|
children: "*"
|
|
1069
1069
|
})]
|
|
1070
1070
|
}),
|
|
1071
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ A(B, {
|
|
1072
1072
|
style: [
|
|
1073
1073
|
q.trigger,
|
|
1074
1074
|
{
|
|
@@ -1079,7 +1079,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1079
1079
|
],
|
|
1080
1080
|
onPress: () => s(!0),
|
|
1081
1081
|
activeOpacity: .7,
|
|
1082
|
-
children: [/* @__PURE__ */
|
|
1082
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1083
1083
|
style: [
|
|
1084
1084
|
q.triggerText,
|
|
1085
1085
|
{ color: d.text },
|
|
@@ -1087,57 +1087,57 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1087
1087
|
],
|
|
1088
1088
|
numberOfLines: 1,
|
|
1089
1089
|
children: P()
|
|
1090
|
-
}), /* @__PURE__ */
|
|
1090
|
+
}), /* @__PURE__ */ k(R, {
|
|
1091
1091
|
style: q.icon,
|
|
1092
1092
|
children: "📅"
|
|
1093
1093
|
})]
|
|
1094
1094
|
}),
|
|
1095
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ k(F, {
|
|
1096
1096
|
visible: o,
|
|
1097
1097
|
transparent: !0,
|
|
1098
1098
|
animationType: "fade",
|
|
1099
1099
|
onRequestClose: () => s(!1),
|
|
1100
|
-
children: /* @__PURE__ */
|
|
1100
|
+
children: /* @__PURE__ */ k(B, {
|
|
1101
1101
|
style: q.modalOverlay,
|
|
1102
1102
|
activeOpacity: 1,
|
|
1103
1103
|
onPress: () => s(!1),
|
|
1104
|
-
children: /* @__PURE__ */
|
|
1104
|
+
children: /* @__PURE__ */ A(B, {
|
|
1105
1105
|
style: [q.modalContent, { backgroundColor: d.card }],
|
|
1106
1106
|
activeOpacity: 1,
|
|
1107
1107
|
onPress: () => {},
|
|
1108
1108
|
children: [
|
|
1109
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ A(V, {
|
|
1110
1110
|
style: [q.modalHeader, { borderBottomColor: d.separator }],
|
|
1111
|
-
children: [/* @__PURE__ */
|
|
1111
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1112
1112
|
style: [q.modalTitle, { color: d.text }],
|
|
1113
1113
|
children: i || e.data.name
|
|
1114
|
-
}), /* @__PURE__ */
|
|
1114
|
+
}), /* @__PURE__ */ k(B, {
|
|
1115
1115
|
onPress: () => s(!1),
|
|
1116
|
-
children: /* @__PURE__ */
|
|
1116
|
+
children: /* @__PURE__ */ k(R, {
|
|
1117
1117
|
style: [q.closeButton, { color: d.textMuted }],
|
|
1118
1118
|
children: "✕"
|
|
1119
1119
|
})
|
|
1120
1120
|
})]
|
|
1121
1121
|
}),
|
|
1122
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ k(V, {
|
|
1123
1123
|
style: [q.rangeIndicator, { backgroundColor: d.primaryLight }],
|
|
1124
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ k(R, {
|
|
1125
1125
|
style: [q.rangeIndicatorText, { color: d.primary }],
|
|
1126
1126
|
children: u(c ? "renderer.defaultInputs.startDate" : "renderer.defaultInputs.endDate")
|
|
1127
1127
|
})
|
|
1128
1128
|
}),
|
|
1129
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ A(V, {
|
|
1130
1130
|
style: q.calendarHeader,
|
|
1131
1131
|
children: [
|
|
1132
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ k(B, {
|
|
1133
1133
|
onPress: j,
|
|
1134
1134
|
style: q.navButton,
|
|
1135
|
-
children: /* @__PURE__ */
|
|
1135
|
+
children: /* @__PURE__ */ k(R, {
|
|
1136
1136
|
style: [q.navButtonText, { color: d.primary }],
|
|
1137
1137
|
children: "‹"
|
|
1138
1138
|
})
|
|
1139
1139
|
}),
|
|
1140
|
-
/* @__PURE__ */
|
|
1140
|
+
/* @__PURE__ */ A(R, {
|
|
1141
1141
|
style: [q.monthYear, { color: d.text }],
|
|
1142
1142
|
children: [
|
|
1143
1143
|
w[S],
|
|
@@ -1145,17 +1145,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1145
1145
|
y
|
|
1146
1146
|
]
|
|
1147
1147
|
}),
|
|
1148
|
-
/* @__PURE__ */
|
|
1148
|
+
/* @__PURE__ */ k(B, {
|
|
1149
1149
|
onPress: M,
|
|
1150
1150
|
style: q.navButton,
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1151
|
+
children: /* @__PURE__ */ k(R, {
|
|
1152
1152
|
style: [q.navButtonText, { color: d.primary }],
|
|
1153
1153
|
children: "›"
|
|
1154
1154
|
})
|
|
1155
1155
|
})
|
|
1156
1156
|
]
|
|
1157
1157
|
}),
|
|
1158
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ k(V, {
|
|
1159
1159
|
style: q.weekDays,
|
|
1160
1160
|
children: [
|
|
1161
1161
|
"Sun",
|
|
@@ -1165,13 +1165,13 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1165
1165
|
"Thu",
|
|
1166
1166
|
"Fri",
|
|
1167
1167
|
"Sat"
|
|
1168
|
-
].map((e) => /* @__PURE__ */
|
|
1168
|
+
].map((e) => /* @__PURE__ */ k(R, {
|
|
1169
1169
|
style: [q.weekDay, { color: d.textMuted }],
|
|
1170
1170
|
children: e
|
|
1171
1171
|
}, e))
|
|
1172
1172
|
}),
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
data:
|
|
1173
|
+
/* @__PURE__ */ k(N, {
|
|
1174
|
+
data: T,
|
|
1175
1175
|
keyExtractor: (e, t) => `${e.date.getTime()}-${t}`,
|
|
1176
1176
|
numColumns: 7,
|
|
1177
1177
|
scrollEnabled: !1,
|
|
@@ -1179,7 +1179,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1179
1179
|
contentContainerStyle: q.calendarContent,
|
|
1180
1180
|
renderItem: ({ item: e }) => {
|
|
1181
1181
|
let t = I(e.date), n = L(e.date), r = te(e.date);
|
|
1182
|
-
return /* @__PURE__ */
|
|
1182
|
+
return /* @__PURE__ */ k(B, {
|
|
1183
1183
|
style: [
|
|
1184
1184
|
q.dayCell,
|
|
1185
1185
|
!e.isCurrentMonth && q.dayCellOtherMonth,
|
|
@@ -1190,10 +1190,10 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1190
1190
|
},
|
|
1191
1191
|
t && q.dayCellDisabled
|
|
1192
1192
|
],
|
|
1193
|
-
onPress: () =>
|
|
1193
|
+
onPress: () => D(e.date),
|
|
1194
1194
|
disabled: t,
|
|
1195
1195
|
activeOpacity: .7,
|
|
1196
|
-
children: /* @__PURE__ */
|
|
1196
|
+
children: /* @__PURE__ */ k(R, {
|
|
1197
1197
|
style: [
|
|
1198
1198
|
q.dayText,
|
|
1199
1199
|
{ color: d.text },
|
|
@@ -1214,11 +1214,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1214
1214
|
})
|
|
1215
1215
|
})
|
|
1216
1216
|
}),
|
|
1217
|
-
r && /* @__PURE__ */
|
|
1217
|
+
r && /* @__PURE__ */ k(R, {
|
|
1218
1218
|
style: [q.error, { color: d.error }],
|
|
1219
1219
|
children: r
|
|
1220
1220
|
}),
|
|
1221
|
-
a && !r && /* @__PURE__ */
|
|
1221
|
+
a && !r && /* @__PURE__ */ k(R, {
|
|
1222
1222
|
style: [q.helperText, { color: d.textMuted }],
|
|
1223
1223
|
children: a
|
|
1224
1224
|
})
|
|
@@ -1335,7 +1335,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1335
1335
|
marginBottom: 8
|
|
1336
1336
|
}
|
|
1337
1337
|
}), fe = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
|
|
1338
|
-
let [o, s] =
|
|
1338
|
+
let [o, s] = O(null), [c, l] = O(!0), u = b(), { colors: d } = m(), f = Array.isArray(t) ? t : t ? [t] : [], p = e.data.multiple, h = ee(async () => {
|
|
1339
1339
|
if (o) try {
|
|
1340
1340
|
let e = (await o({ allowMultiSelection: p })).map((e) => ({
|
|
1341
1341
|
data: e.uri,
|
|
@@ -1358,7 +1358,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1358
1358
|
let t = f.filter((t, n) => n !== e);
|
|
1359
1359
|
n(t.length > 0 ? t : null);
|
|
1360
1360
|
}, [f, n]), _ = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
1361
|
-
return
|
|
1361
|
+
return T(() => {
|
|
1362
1362
|
(async () => {
|
|
1363
1363
|
try {
|
|
1364
1364
|
let { pick: e } = await import("react-native-document-picker");
|
|
@@ -1369,47 +1369,47 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1369
1369
|
l(!1);
|
|
1370
1370
|
}
|
|
1371
1371
|
})();
|
|
1372
|
-
}, []), c ? null : o ? /* @__PURE__ */
|
|
1372
|
+
}, []), c ? null : o ? /* @__PURE__ */ A(V, {
|
|
1373
1373
|
style: J.container,
|
|
1374
1374
|
children: [
|
|
1375
|
-
/* @__PURE__ */
|
|
1375
|
+
/* @__PURE__ */ A(R, {
|
|
1376
1376
|
style: [J.label, { color: d.textSecondary }],
|
|
1377
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
1377
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
1378
1378
|
style: { color: d.error },
|
|
1379
1379
|
children: "*"
|
|
1380
1380
|
})]
|
|
1381
1381
|
}),
|
|
1382
|
-
f.length > 0 && /* @__PURE__ */
|
|
1382
|
+
f.length > 0 && /* @__PURE__ */ k(V, {
|
|
1383
1383
|
style: J.filesList,
|
|
1384
|
-
children: f.map((e, t) => /* @__PURE__ */
|
|
1384
|
+
children: f.map((e, t) => /* @__PURE__ */ A(V, {
|
|
1385
1385
|
style: [J.fileItem, {
|
|
1386
1386
|
backgroundColor: d.card,
|
|
1387
1387
|
borderColor: d.separator
|
|
1388
1388
|
}],
|
|
1389
1389
|
children: [
|
|
1390
|
-
/* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ k(V, {
|
|
1391
1391
|
style: [J.fileIcon, { backgroundColor: d.muted }],
|
|
1392
|
-
children: /* @__PURE__ */
|
|
1392
|
+
children: /* @__PURE__ */ k(R, {
|
|
1393
1393
|
style: J.fileIconText,
|
|
1394
1394
|
children: "📄"
|
|
1395
1395
|
})
|
|
1396
1396
|
}),
|
|
1397
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ A(V, {
|
|
1398
1398
|
style: J.fileInfo,
|
|
1399
|
-
children: [/* @__PURE__ */
|
|
1399
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1400
1400
|
style: [J.fileName, { color: d.text }],
|
|
1401
1401
|
numberOfLines: 1,
|
|
1402
1402
|
children: e.name
|
|
1403
|
-
}), e.size > 0 && /* @__PURE__ */
|
|
1403
|
+
}), e.size > 0 && /* @__PURE__ */ k(R, {
|
|
1404
1404
|
style: [J.fileSize, { color: d.textMuted }],
|
|
1405
1405
|
children: _(e.size)
|
|
1406
1406
|
})]
|
|
1407
1407
|
}),
|
|
1408
|
-
/* @__PURE__ */
|
|
1408
|
+
/* @__PURE__ */ k(B, {
|
|
1409
1409
|
style: J.removeButton,
|
|
1410
1410
|
onPress: () => g(t),
|
|
1411
1411
|
activeOpacity: .7,
|
|
1412
|
-
children: /* @__PURE__ */
|
|
1412
|
+
children: /* @__PURE__ */ k(R, {
|
|
1413
1413
|
style: [J.removeButtonText, { color: d.textMuted }],
|
|
1414
1414
|
children: "✕"
|
|
1415
1415
|
})
|
|
@@ -1417,48 +1417,48 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1417
1417
|
]
|
|
1418
1418
|
}, `${e.name}-${t}`))
|
|
1419
1419
|
}),
|
|
1420
|
-
/* @__PURE__ */
|
|
1420
|
+
/* @__PURE__ */ k(B, {
|
|
1421
1421
|
style: [J.pickButton, {
|
|
1422
1422
|
backgroundColor: d.input,
|
|
1423
1423
|
borderColor: d.border
|
|
1424
1424
|
}],
|
|
1425
1425
|
onPress: h,
|
|
1426
1426
|
activeOpacity: .7,
|
|
1427
|
-
children: /* @__PURE__ */
|
|
1427
|
+
children: /* @__PURE__ */ k(R, {
|
|
1428
1428
|
style: [J.pickButtonText, { color: d.textMuted }],
|
|
1429
1429
|
children: f.length === 0 ? u(p ? "renderer.defaultInputs.selectFiles" : "renderer.defaultInputs.selectFile") : u(p ? "renderer.defaultInputs.addMoreFiles" : "renderer.defaultInputs.replaceFile")
|
|
1430
1430
|
})
|
|
1431
1431
|
}),
|
|
1432
|
-
r && /* @__PURE__ */
|
|
1432
|
+
r && /* @__PURE__ */ k(R, {
|
|
1433
1433
|
style: [J.error, { color: d.error }],
|
|
1434
1434
|
children: r
|
|
1435
1435
|
}),
|
|
1436
|
-
a && !r && /* @__PURE__ */
|
|
1436
|
+
a && !r && /* @__PURE__ */ k(R, {
|
|
1437
1437
|
style: [J.helperText, { color: d.textMuted }],
|
|
1438
1438
|
children: a
|
|
1439
1439
|
})
|
|
1440
1440
|
]
|
|
1441
|
-
}) : /* @__PURE__ */
|
|
1441
|
+
}) : /* @__PURE__ */ A(V, {
|
|
1442
1442
|
style: J.container,
|
|
1443
1443
|
children: [
|
|
1444
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ A(R, {
|
|
1445
1445
|
style: [J.label, { color: d.textSecondary }],
|
|
1446
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
1446
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
1447
1447
|
style: { color: d.error },
|
|
1448
1448
|
children: "*"
|
|
1449
1449
|
})]
|
|
1450
1450
|
}),
|
|
1451
|
-
/* @__PURE__ */
|
|
1451
|
+
/* @__PURE__ */ k(V, {
|
|
1452
1452
|
style: [J.unavailableContainer, {
|
|
1453
1453
|
backgroundColor: d.errorLight,
|
|
1454
1454
|
borderColor: d.error
|
|
1455
1455
|
}],
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ k(R, {
|
|
1457
1457
|
style: [J.unavailableText, { color: d.error }],
|
|
1458
1458
|
children: u("renderer.defaultInputs.filePickerUnavailable")
|
|
1459
1459
|
})
|
|
1460
1460
|
}),
|
|
1461
|
-
a && /* @__PURE__ */
|
|
1461
|
+
a && /* @__PURE__ */ k(R, {
|
|
1462
1462
|
style: [J.helperText, { color: d.textMuted }],
|
|
1463
1463
|
children: a
|
|
1464
1464
|
})
|
|
@@ -1564,7 +1564,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1564
1564
|
let i = t[r], a = i == null ? "" : String(i);
|
|
1565
1565
|
return n ? encodeURIComponent(a) : a;
|
|
1566
1566
|
}), Ce = ({ node: e, value: t, setValue: n, error: r, label: a, placeholder: o, helperText: s, id: c, name: l }) => {
|
|
1567
|
-
let [u, d] =
|
|
1567
|
+
let [u, d] = O(!1), [f, h] = O(null), [g, _] = O([]), [v, y] = O(""), [x, C] = O(!1), { formValues: w, inputNodes: M } = p(), P = b(), { colors: I } = m(), { httpConfig: L } = e.data, te = D(!1), ne = D(""), re = D(L), ie = D(w), ae = D(M), oe = D(n), se = D(null), H = D(null), U = E(() => L?.url ? be(L.url) : [], [L?.url]), ce = U.length > 0, W = E(() => U.map((e) => `${e}:${String(w[e] ?? "")}`).join("|"), [U, w]), le = E(() => L?.url ? ce ? xe(L.url, w) : !0 : !1, [
|
|
1568
1568
|
L?.url,
|
|
1569
1569
|
ce,
|
|
1570
1570
|
w
|
|
@@ -1619,7 +1619,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1619
1619
|
d(!1), H.current = null;
|
|
1620
1620
|
}
|
|
1621
1621
|
}, [P]);
|
|
1622
|
-
if (
|
|
1622
|
+
if (T(() => {
|
|
1623
1623
|
re.current = L, ie.current = w, ae.current = M, oe.current = n, se.current = G;
|
|
1624
1624
|
}, [
|
|
1625
1625
|
L,
|
|
@@ -1627,14 +1627,14 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1627
1627
|
M,
|
|
1628
1628
|
n,
|
|
1629
1629
|
G
|
|
1630
|
-
]),
|
|
1630
|
+
]), T(() => () => {
|
|
1631
1631
|
H.current && H.current.abort();
|
|
1632
|
-
}, []),
|
|
1632
|
+
}, []), T(() => {
|
|
1633
1633
|
if (te.current) return;
|
|
1634
1634
|
te.current = !0;
|
|
1635
1635
|
let e = re.current, t = ie.current, n = se.current, r = e?.url && xe(e.url, t);
|
|
1636
1636
|
e?.fetchOnMount && r && n && (n(), e.url && (ne.current = be(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
|
|
1637
|
-
}, []),
|
|
1637
|
+
}, []), T(() => {
|
|
1638
1638
|
if (!te.current || !ce || ne.current === W || !le) return;
|
|
1639
1639
|
let e = setTimeout(() => {
|
|
1640
1640
|
G(), ne.current = W;
|
|
@@ -1645,7 +1645,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1645
1645
|
ce,
|
|
1646
1646
|
le,
|
|
1647
1647
|
G
|
|
1648
|
-
]),
|
|
1648
|
+
]), T(() => {
|
|
1649
1649
|
if (!(L?.searchParam && v)) return;
|
|
1650
1650
|
let e = setTimeout(() => {
|
|
1651
1651
|
G(v);
|
|
@@ -1659,17 +1659,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1659
1659
|
let i = Array.isArray(t) ? t[0] : t, c = g.find((e) => e.value === i);
|
|
1660
1660
|
if (L.searchParam) {
|
|
1661
1661
|
let t = u && L?.showLoading;
|
|
1662
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ A(V, {
|
|
1663
1663
|
style: Y.container,
|
|
1664
1664
|
children: [
|
|
1665
|
-
/* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ A(R, {
|
|
1666
1666
|
style: [Y.label, { color: I.textSecondary }],
|
|
1667
|
-
children: [a || e.data.name, e.data.required && /* @__PURE__ */
|
|
1667
|
+
children: [a || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
1668
1668
|
style: { color: I.error },
|
|
1669
1669
|
children: "*"
|
|
1670
1670
|
})]
|
|
1671
1671
|
}),
|
|
1672
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ A(B, {
|
|
1673
1673
|
style: [
|
|
1674
1674
|
Y.trigger,
|
|
1675
1675
|
{
|
|
@@ -1680,17 +1680,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1680
1680
|
],
|
|
1681
1681
|
onPress: () => C(!0),
|
|
1682
1682
|
activeOpacity: .7,
|
|
1683
|
-
children: [t ? /* @__PURE__ */
|
|
1683
|
+
children: [t ? /* @__PURE__ */ A(V, {
|
|
1684
1684
|
style: Y.loadingTrigger,
|
|
1685
|
-
children: [/* @__PURE__ */
|
|
1685
|
+
children: [/* @__PURE__ */ k(j, {
|
|
1686
1686
|
size: "small",
|
|
1687
1687
|
color: I.primary
|
|
1688
|
-
}), /* @__PURE__ */
|
|
1688
|
+
}), /* @__PURE__ */ k(R, {
|
|
1689
1689
|
style: [Y.triggerText, { color: I.textMuted }],
|
|
1690
1690
|
numberOfLines: 1,
|
|
1691
1691
|
children: c?.label || o || P("renderer.defaultHttpInput.search")
|
|
1692
1692
|
})]
|
|
1693
|
-
}) : /* @__PURE__ */
|
|
1693
|
+
}) : /* @__PURE__ */ k(R, {
|
|
1694
1694
|
style: [
|
|
1695
1695
|
Y.triggerText,
|
|
1696
1696
|
{ color: I.text },
|
|
@@ -1698,41 +1698,41 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1698
1698
|
],
|
|
1699
1699
|
numberOfLines: 1,
|
|
1700
1700
|
children: c?.label || o || P("renderer.defaultHttpInput.search")
|
|
1701
|
-
}), /* @__PURE__ */
|
|
1701
|
+
}), /* @__PURE__ */ k(R, {
|
|
1702
1702
|
style: [Y.arrow, { color: I.textMuted }],
|
|
1703
1703
|
children: "▼"
|
|
1704
1704
|
})]
|
|
1705
1705
|
}),
|
|
1706
|
-
/* @__PURE__ */
|
|
1706
|
+
/* @__PURE__ */ k(F, {
|
|
1707
1707
|
visible: x,
|
|
1708
1708
|
transparent: !0,
|
|
1709
1709
|
animationType: "fade",
|
|
1710
1710
|
onRequestClose: () => C(!1),
|
|
1711
|
-
children: /* @__PURE__ */
|
|
1711
|
+
children: /* @__PURE__ */ k(B, {
|
|
1712
1712
|
style: Y.modalOverlay,
|
|
1713
1713
|
activeOpacity: 1,
|
|
1714
1714
|
onPress: () => C(!1),
|
|
1715
|
-
children: /* @__PURE__ */
|
|
1715
|
+
children: /* @__PURE__ */ A(B, {
|
|
1716
1716
|
style: [Y.modalContent, { backgroundColor: I.card }],
|
|
1717
1717
|
activeOpacity: 1,
|
|
1718
1718
|
onPress: () => {},
|
|
1719
1719
|
children: [
|
|
1720
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ A(V, {
|
|
1721
1721
|
style: [Y.modalHeader, { borderBottomColor: I.separator }],
|
|
1722
|
-
children: [/* @__PURE__ */
|
|
1722
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1723
1723
|
style: [Y.modalTitle, { color: I.text }],
|
|
1724
1724
|
children: a || e.data.name
|
|
1725
|
-
}), /* @__PURE__ */
|
|
1725
|
+
}), /* @__PURE__ */ k(B, {
|
|
1726
1726
|
onPress: () => C(!1),
|
|
1727
|
-
children: /* @__PURE__ */
|
|
1727
|
+
children: /* @__PURE__ */ k(R, {
|
|
1728
1728
|
style: [Y.closeButton, { color: I.textMuted }],
|
|
1729
1729
|
children: "✕"
|
|
1730
1730
|
})
|
|
1731
1731
|
})]
|
|
1732
1732
|
}),
|
|
1733
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ k(V, {
|
|
1734
1734
|
style: Y.searchContainer,
|
|
1735
|
-
children: /* @__PURE__ */
|
|
1735
|
+
children: /* @__PURE__ */ k(z, {
|
|
1736
1736
|
style: [Y.searchInput, {
|
|
1737
1737
|
backgroundColor: I.muted,
|
|
1738
1738
|
borderColor: I.border,
|
|
@@ -1749,49 +1749,49 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1749
1749
|
autoCorrect: !1
|
|
1750
1750
|
})
|
|
1751
1751
|
}),
|
|
1752
|
-
u ? /* @__PURE__ */
|
|
1752
|
+
u ? /* @__PURE__ */ k(V, {
|
|
1753
1753
|
style: Y.loadingContainer,
|
|
1754
|
-
children: /* @__PURE__ */
|
|
1754
|
+
children: /* @__PURE__ */ k(j, {
|
|
1755
1755
|
size: "small",
|
|
1756
1756
|
color: I.primary
|
|
1757
1757
|
})
|
|
1758
|
-
}) : f ? /* @__PURE__ */
|
|
1758
|
+
}) : f ? /* @__PURE__ */ A(V, {
|
|
1759
1759
|
style: Y.errorContainer,
|
|
1760
|
-
children: [/* @__PURE__ */
|
|
1760
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1761
1761
|
style: [Y.errorText, { color: I.error }],
|
|
1762
1762
|
children: f
|
|
1763
|
-
}), /* @__PURE__ */
|
|
1763
|
+
}), /* @__PURE__ */ k(B, {
|
|
1764
1764
|
onPress: () => G(v),
|
|
1765
1765
|
style: Y.retryButton,
|
|
1766
|
-
children: /* @__PURE__ */
|
|
1766
|
+
children: /* @__PURE__ */ k(R, {
|
|
1767
1767
|
style: [Y.retryButtonText, { color: I.primary }],
|
|
1768
1768
|
children: P("renderer.defaultHttpInput.retry")
|
|
1769
1769
|
})
|
|
1770
1770
|
})]
|
|
1771
|
-
}) : /* @__PURE__ */
|
|
1771
|
+
}) : /* @__PURE__ */ k(N, {
|
|
1772
1772
|
data: g,
|
|
1773
1773
|
keyExtractor: (e) => e.value,
|
|
1774
1774
|
style: Y.optionsList,
|
|
1775
1775
|
contentContainerStyle: Y.optionsListContent,
|
|
1776
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
1776
|
+
ListEmptyComponent: /* @__PURE__ */ k(V, {
|
|
1777
1777
|
style: Y.emptyContainer,
|
|
1778
|
-
children: /* @__PURE__ */
|
|
1778
|
+
children: /* @__PURE__ */ k(R, {
|
|
1779
1779
|
style: [Y.emptyText, { color: I.textMuted }],
|
|
1780
1780
|
children: P("renderer.defaultHttpInput.noResults")
|
|
1781
1781
|
})
|
|
1782
1782
|
}),
|
|
1783
1783
|
renderItem: ({ item: e }) => {
|
|
1784
1784
|
let t = e.value === i;
|
|
1785
|
-
return /* @__PURE__ */
|
|
1785
|
+
return /* @__PURE__ */ A(B, {
|
|
1786
1786
|
style: [Y.option, t && { backgroundColor: I.primaryLight }],
|
|
1787
1787
|
onPress: () => {
|
|
1788
1788
|
n(e.value), C(!1);
|
|
1789
1789
|
},
|
|
1790
1790
|
activeOpacity: .7,
|
|
1791
|
-
children: [/* @__PURE__ */
|
|
1791
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1792
1792
|
style: [Y.optionText, { color: I.text }],
|
|
1793
1793
|
children: e.label
|
|
1794
|
-
}), t && /* @__PURE__ */
|
|
1794
|
+
}), t && /* @__PURE__ */ k(R, {
|
|
1795
1795
|
style: [Y.checkmark, { color: I.primary }],
|
|
1796
1796
|
children: "✓"
|
|
1797
1797
|
})]
|
|
@@ -1802,11 +1802,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1802
1802
|
})
|
|
1803
1803
|
})
|
|
1804
1804
|
}),
|
|
1805
|
-
r && /* @__PURE__ */
|
|
1805
|
+
r && /* @__PURE__ */ k(R, {
|
|
1806
1806
|
style: [Y.error, { color: I.error }],
|
|
1807
1807
|
children: r
|
|
1808
1808
|
}),
|
|
1809
|
-
s && !r && /* @__PURE__ */
|
|
1809
|
+
s && !r && /* @__PURE__ */ k(R, {
|
|
1810
1810
|
style: [Y.helperText, { color: I.textMuted }],
|
|
1811
1811
|
children: s
|
|
1812
1812
|
})
|
|
@@ -1817,17 +1817,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1817
1817
|
let t = w[e];
|
|
1818
1818
|
return t == null || t === "";
|
|
1819
1819
|
}), p = d.map((e) => S(e, M) || e), m = g.length === 0 && !l ? f || (d.length > 0 ? `${P("renderer.defaultHttpInput.waitingForRequiredFields")}: ${p.join(", ")}` : P("renderer.defaultHttpInput.noDataAvailable")) : void 0;
|
|
1820
|
-
return /* @__PURE__ */
|
|
1820
|
+
return /* @__PURE__ */ A(V, {
|
|
1821
1821
|
style: Y.container,
|
|
1822
1822
|
children: [
|
|
1823
|
-
/* @__PURE__ */
|
|
1823
|
+
/* @__PURE__ */ A(R, {
|
|
1824
1824
|
style: [Y.label, { color: I.textSecondary }],
|
|
1825
|
-
children: [a || e.data.name, e.data.required && /* @__PURE__ */
|
|
1825
|
+
children: [a || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
1826
1826
|
style: { color: I.error },
|
|
1827
1827
|
children: "*"
|
|
1828
1828
|
})]
|
|
1829
1829
|
}),
|
|
1830
|
-
/* @__PURE__ */
|
|
1830
|
+
/* @__PURE__ */ A(B, {
|
|
1831
1831
|
style: [
|
|
1832
1832
|
Y.trigger,
|
|
1833
1833
|
{
|
|
@@ -1841,12 +1841,12 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1841
1841
|
disabled: l || g.length === 0,
|
|
1842
1842
|
activeOpacity: .7,
|
|
1843
1843
|
children: [
|
|
1844
|
-
l && /* @__PURE__ */
|
|
1844
|
+
l && /* @__PURE__ */ k(j, {
|
|
1845
1845
|
size: "small",
|
|
1846
1846
|
color: I.primary,
|
|
1847
1847
|
style: Y.triggerLoader
|
|
1848
1848
|
}),
|
|
1849
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ k(R, {
|
|
1850
1850
|
style: [
|
|
1851
1851
|
Y.triggerText,
|
|
1852
1852
|
{ color: I.text },
|
|
@@ -1855,58 +1855,58 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1855
1855
|
numberOfLines: 1,
|
|
1856
1856
|
children: c?.label || o || P("renderer.defaultHttpInput.selectOption")
|
|
1857
1857
|
}),
|
|
1858
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ k(R, {
|
|
1859
1859
|
style: [Y.arrow, { color: I.textMuted }],
|
|
1860
1860
|
children: "▼"
|
|
1861
1861
|
})
|
|
1862
1862
|
]
|
|
1863
1863
|
}),
|
|
1864
|
-
m && /* @__PURE__ */
|
|
1864
|
+
m && /* @__PURE__ */ k(R, {
|
|
1865
1865
|
style: [Y.disabledMessage, { color: I.error }],
|
|
1866
1866
|
children: m
|
|
1867
1867
|
}),
|
|
1868
|
-
/* @__PURE__ */
|
|
1868
|
+
/* @__PURE__ */ k(F, {
|
|
1869
1869
|
visible: x,
|
|
1870
1870
|
transparent: !0,
|
|
1871
1871
|
animationType: "fade",
|
|
1872
1872
|
onRequestClose: () => C(!1),
|
|
1873
|
-
children: /* @__PURE__ */
|
|
1873
|
+
children: /* @__PURE__ */ k(B, {
|
|
1874
1874
|
style: Y.modalOverlay,
|
|
1875
1875
|
activeOpacity: 1,
|
|
1876
1876
|
onPress: () => C(!1),
|
|
1877
|
-
children: /* @__PURE__ */
|
|
1877
|
+
children: /* @__PURE__ */ A(B, {
|
|
1878
1878
|
style: [Y.modalContent, { backgroundColor: I.card }],
|
|
1879
1879
|
activeOpacity: 1,
|
|
1880
1880
|
onPress: () => {},
|
|
1881
|
-
children: [/* @__PURE__ */
|
|
1881
|
+
children: [/* @__PURE__ */ A(V, {
|
|
1882
1882
|
style: [Y.modalHeader, { borderBottomColor: I.separator }],
|
|
1883
|
-
children: [/* @__PURE__ */
|
|
1883
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1884
1884
|
style: [Y.modalTitle, { color: I.text }],
|
|
1885
1885
|
children: a || e.data.name
|
|
1886
|
-
}), /* @__PURE__ */
|
|
1886
|
+
}), /* @__PURE__ */ k(B, {
|
|
1887
1887
|
onPress: () => C(!1),
|
|
1888
|
-
children: /* @__PURE__ */
|
|
1888
|
+
children: /* @__PURE__ */ k(R, {
|
|
1889
1889
|
style: [Y.closeButton, { color: I.textMuted }],
|
|
1890
1890
|
children: "✕"
|
|
1891
1891
|
})
|
|
1892
1892
|
})]
|
|
1893
|
-
}), /* @__PURE__ */
|
|
1893
|
+
}), /* @__PURE__ */ k(N, {
|
|
1894
1894
|
data: g,
|
|
1895
1895
|
keyExtractor: (e) => e.value,
|
|
1896
1896
|
style: Y.optionsList,
|
|
1897
1897
|
contentContainerStyle: Y.optionsListContent,
|
|
1898
1898
|
renderItem: ({ item: e }) => {
|
|
1899
1899
|
let t = e.value === i;
|
|
1900
|
-
return /* @__PURE__ */
|
|
1900
|
+
return /* @__PURE__ */ A(B, {
|
|
1901
1901
|
style: [Y.option, t && { backgroundColor: I.primaryLight }],
|
|
1902
1902
|
onPress: () => {
|
|
1903
1903
|
n(e.value), C(!1);
|
|
1904
1904
|
},
|
|
1905
1905
|
activeOpacity: .7,
|
|
1906
|
-
children: [/* @__PURE__ */
|
|
1906
|
+
children: [/* @__PURE__ */ k(R, {
|
|
1907
1907
|
style: [Y.optionText, { color: I.text }],
|
|
1908
1908
|
children: e.label
|
|
1909
|
-
}), t && /* @__PURE__ */
|
|
1909
|
+
}), t && /* @__PURE__ */ k(R, {
|
|
1910
1910
|
style: [Y.checkmark, { color: I.primary }],
|
|
1911
1911
|
children: "✓"
|
|
1912
1912
|
})]
|
|
@@ -1916,28 +1916,28 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1916
1916
|
})
|
|
1917
1917
|
})
|
|
1918
1918
|
}),
|
|
1919
|
-
r && /* @__PURE__ */
|
|
1919
|
+
r && /* @__PURE__ */ k(R, {
|
|
1920
1920
|
style: [Y.error, { color: I.error }],
|
|
1921
1921
|
children: r
|
|
1922
1922
|
}),
|
|
1923
|
-
s && !r && /* @__PURE__ */
|
|
1923
|
+
s && !r && /* @__PURE__ */ k(R, {
|
|
1924
1924
|
style: [Y.helperText, { color: I.textMuted }],
|
|
1925
1925
|
children: s
|
|
1926
1926
|
})
|
|
1927
1927
|
]
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
|
-
return /* @__PURE__ */
|
|
1930
|
+
return /* @__PURE__ */ A(V, {
|
|
1931
1931
|
style: Y.container,
|
|
1932
1932
|
children: [
|
|
1933
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ A(R, {
|
|
1934
1934
|
style: [Y.label, { color: I.textSecondary }],
|
|
1935
|
-
children: [a || e.data.name, e.data.required && /* @__PURE__ */
|
|
1935
|
+
children: [a || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
1936
1936
|
style: { color: I.error },
|
|
1937
1937
|
children: "*"
|
|
1938
1938
|
})]
|
|
1939
1939
|
}),
|
|
1940
|
-
/* @__PURE__ */
|
|
1940
|
+
/* @__PURE__ */ k(z, {
|
|
1941
1941
|
style: [Y.input, {
|
|
1942
1942
|
backgroundColor: I.muted,
|
|
1943
1943
|
borderColor: I.border,
|
|
@@ -1946,11 +1946,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
1946
1946
|
value: typeof t == "string" ? t : JSON.stringify(t),
|
|
1947
1947
|
editable: !1
|
|
1948
1948
|
}),
|
|
1949
|
-
r && /* @__PURE__ */
|
|
1949
|
+
r && /* @__PURE__ */ k(R, {
|
|
1950
1950
|
style: [Y.error, { color: I.error }],
|
|
1951
1951
|
children: r
|
|
1952
1952
|
}),
|
|
1953
|
-
s && !r && /* @__PURE__ */
|
|
1953
|
+
s && !r && /* @__PURE__ */ k(R, {
|
|
1954
1954
|
style: [Y.helperText, { color: I.textMuted }],
|
|
1955
1955
|
children: s
|
|
1956
1956
|
})
|
|
@@ -2083,20 +2083,20 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2083
2083
|
fontSize: 14
|
|
2084
2084
|
}
|
|
2085
2085
|
}), we = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
|
|
2086
|
-
let { colors: c } = m(), [l, u] =
|
|
2087
|
-
return
|
|
2086
|
+
let { colors: c } = m(), [l, u] = O(t?.toString() ?? "");
|
|
2087
|
+
return T(() => {
|
|
2088
2088
|
u(t?.toString() ?? "");
|
|
2089
|
-
}, [t]), /* @__PURE__ */
|
|
2089
|
+
}, [t]), /* @__PURE__ */ A(V, {
|
|
2090
2090
|
style: Te.container,
|
|
2091
2091
|
children: [
|
|
2092
|
-
/* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ A(R, {
|
|
2093
2093
|
style: [Te.label, { color: c.textSecondary }],
|
|
2094
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2094
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2095
2095
|
style: { color: c.error },
|
|
2096
2096
|
children: "*"
|
|
2097
2097
|
})]
|
|
2098
2098
|
}),
|
|
2099
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ k(z, {
|
|
2100
2100
|
style: [
|
|
2101
2101
|
Te.input,
|
|
2102
2102
|
{
|
|
@@ -2120,11 +2120,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2120
2120
|
keyboardType: "numeric",
|
|
2121
2121
|
accessibilityLabel: s
|
|
2122
2122
|
}),
|
|
2123
|
-
r && /* @__PURE__ */
|
|
2123
|
+
r && /* @__PURE__ */ k(R, {
|
|
2124
2124
|
style: [Te.error, { color: c.error }],
|
|
2125
2125
|
children: r
|
|
2126
2126
|
}),
|
|
2127
|
-
o && !r && /* @__PURE__ */
|
|
2127
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
2128
2128
|
style: [Te.helperText, { color: c.textMuted }],
|
|
2129
2129
|
children: o
|
|
2130
2130
|
})
|
|
@@ -2153,20 +2153,20 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2153
2153
|
marginBottom: 8
|
|
2154
2154
|
}
|
|
2155
2155
|
}), Ee = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
|
|
2156
|
-
let { colors: c } = m(), [l, u] =
|
|
2157
|
-
return /* @__PURE__ */
|
|
2156
|
+
let { colors: c } = m(), [l, u] = O(!1);
|
|
2157
|
+
return /* @__PURE__ */ A(V, {
|
|
2158
2158
|
style: De.container,
|
|
2159
2159
|
children: [
|
|
2160
|
-
/* @__PURE__ */
|
|
2160
|
+
/* @__PURE__ */ A(R, {
|
|
2161
2161
|
style: [De.label, { color: c.textSecondary }],
|
|
2162
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2162
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2163
2163
|
style: { color: c.error },
|
|
2164
2164
|
children: "*"
|
|
2165
2165
|
})]
|
|
2166
2166
|
}),
|
|
2167
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ A(V, {
|
|
2168
2168
|
style: De.inputWrapper,
|
|
2169
|
-
children: [/* @__PURE__ */
|
|
2169
|
+
children: [/* @__PURE__ */ k(z, {
|
|
2170
2170
|
style: [
|
|
2171
2171
|
De.input,
|
|
2172
2172
|
{
|
|
@@ -2182,21 +2182,21 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2182
2182
|
placeholderTextColor: c.textMuted,
|
|
2183
2183
|
secureTextEntry: !l,
|
|
2184
2184
|
accessibilityLabel: s
|
|
2185
|
-
}), /* @__PURE__ */
|
|
2185
|
+
}), /* @__PURE__ */ k(B, {
|
|
2186
2186
|
style: De.toggleButton,
|
|
2187
2187
|
onPress: () => u(!l),
|
|
2188
2188
|
activeOpacity: .7,
|
|
2189
|
-
children: /* @__PURE__ */
|
|
2189
|
+
children: /* @__PURE__ */ k(R, {
|
|
2190
2190
|
style: [De.toggleText, { color: c.primary }],
|
|
2191
2191
|
children: l ? "Hide" : "Show"
|
|
2192
2192
|
})
|
|
2193
2193
|
})]
|
|
2194
2194
|
}),
|
|
2195
|
-
r && /* @__PURE__ */
|
|
2195
|
+
r && /* @__PURE__ */ k(R, {
|
|
2196
2196
|
style: [De.error, { color: c.error }],
|
|
2197
2197
|
children: r
|
|
2198
2198
|
}),
|
|
2199
|
-
o && !r && /* @__PURE__ */
|
|
2199
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
2200
2200
|
style: [De.helperText, { color: c.textMuted }],
|
|
2201
2201
|
children: o
|
|
2202
2202
|
})
|
|
@@ -2244,19 +2244,19 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2244
2244
|
let o = b(), { colors: s } = m(), c = e.data.options || [], l = t || "", u = e.data.variant === "card", d = (e) => {
|
|
2245
2245
|
n(e);
|
|
2246
2246
|
};
|
|
2247
|
-
return /* @__PURE__ */
|
|
2247
|
+
return /* @__PURE__ */ A(V, {
|
|
2248
2248
|
style: X.container,
|
|
2249
2249
|
children: [
|
|
2250
|
-
/* @__PURE__ */
|
|
2250
|
+
/* @__PURE__ */ A(R, {
|
|
2251
2251
|
style: [X.label, { color: s.textSecondary }],
|
|
2252
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2252
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2253
2253
|
style: { color: s.error },
|
|
2254
2254
|
children: "*"
|
|
2255
2255
|
})]
|
|
2256
2256
|
}),
|
|
2257
2257
|
c.map((e) => {
|
|
2258
2258
|
let t = l === e.value, n = o(e.label) || e.value, r = o(e.description);
|
|
2259
|
-
return u ? /* @__PURE__ */
|
|
2259
|
+
return u ? /* @__PURE__ */ A(B, {
|
|
2260
2260
|
style: [
|
|
2261
2261
|
X.card,
|
|
2262
2262
|
{
|
|
@@ -2273,7 +2273,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2273
2273
|
disabled: e.disabled,
|
|
2274
2274
|
activeOpacity: .7,
|
|
2275
2275
|
children: [
|
|
2276
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ k(V, {
|
|
2277
2277
|
style: [
|
|
2278
2278
|
X.radio,
|
|
2279
2279
|
{
|
|
@@ -2282,30 +2282,30 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2282
2282
|
},
|
|
2283
2283
|
t && { borderColor: s.primary }
|
|
2284
2284
|
],
|
|
2285
|
-
children: t && /* @__PURE__ */
|
|
2285
|
+
children: t && /* @__PURE__ */ k(V, { style: [X.radioInner, { backgroundColor: s.primary }] })
|
|
2286
2286
|
}),
|
|
2287
|
-
e.image && /* @__PURE__ */
|
|
2287
|
+
e.image && /* @__PURE__ */ k(P, {
|
|
2288
2288
|
source: { uri: e.image },
|
|
2289
2289
|
style: X.cardImage
|
|
2290
2290
|
}),
|
|
2291
|
-
/* @__PURE__ */
|
|
2291
|
+
/* @__PURE__ */ A(V, {
|
|
2292
2292
|
style: X.cardTextContainer,
|
|
2293
|
-
children: [/* @__PURE__ */
|
|
2293
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2294
2294
|
style: [X.cardLabel, { color: s.textSecondary }],
|
|
2295
2295
|
children: n
|
|
2296
|
-
}), r && /* @__PURE__ */
|
|
2296
|
+
}), r && /* @__PURE__ */ k(R, {
|
|
2297
2297
|
style: [X.cardDescription, { color: s.textMuted }],
|
|
2298
2298
|
children: r
|
|
2299
2299
|
})]
|
|
2300
2300
|
})
|
|
2301
2301
|
]
|
|
2302
|
-
}, e.value) : /* @__PURE__ */
|
|
2302
|
+
}, e.value) : /* @__PURE__ */ A(B, {
|
|
2303
2303
|
style: X.option,
|
|
2304
2304
|
onPress: () => d(e.value),
|
|
2305
2305
|
disabled: e.disabled,
|
|
2306
2306
|
activeOpacity: .7,
|
|
2307
2307
|
children: [
|
|
2308
|
-
/* @__PURE__ */
|
|
2308
|
+
/* @__PURE__ */ k(V, {
|
|
2309
2309
|
style: [
|
|
2310
2310
|
X.radio,
|
|
2311
2311
|
{
|
|
@@ -2314,22 +2314,22 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2314
2314
|
},
|
|
2315
2315
|
t && { borderColor: s.primary }
|
|
2316
2316
|
],
|
|
2317
|
-
children: t && /* @__PURE__ */
|
|
2317
|
+
children: t && /* @__PURE__ */ k(V, { style: [X.radioInner, { backgroundColor: s.primary }] })
|
|
2318
2318
|
}),
|
|
2319
|
-
e.image && /* @__PURE__ */
|
|
2319
|
+
e.image && /* @__PURE__ */ k(P, {
|
|
2320
2320
|
source: { uri: e.image },
|
|
2321
2321
|
style: X.image
|
|
2322
2322
|
}),
|
|
2323
|
-
/* @__PURE__ */
|
|
2323
|
+
/* @__PURE__ */ A(V, {
|
|
2324
2324
|
style: X.optionTextContainer,
|
|
2325
|
-
children: [/* @__PURE__ */
|
|
2325
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2326
2326
|
style: [
|
|
2327
2327
|
X.optionLabel,
|
|
2328
2328
|
{ color: s.textSecondary },
|
|
2329
2329
|
e.disabled && { color: s.textMuted }
|
|
2330
2330
|
],
|
|
2331
2331
|
children: n
|
|
2332
|
-
}), r && /* @__PURE__ */
|
|
2332
|
+
}), r && /* @__PURE__ */ k(R, {
|
|
2333
2333
|
style: [X.optionDescription, { color: s.textMuted }],
|
|
2334
2334
|
children: r
|
|
2335
2335
|
})]
|
|
@@ -2337,11 +2337,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2337
2337
|
]
|
|
2338
2338
|
}, e.value);
|
|
2339
2339
|
}),
|
|
2340
|
-
r && /* @__PURE__ */
|
|
2340
|
+
r && /* @__PURE__ */ k(R, {
|
|
2341
2341
|
style: [X.error, { color: s.error }],
|
|
2342
2342
|
children: r
|
|
2343
2343
|
}),
|
|
2344
|
-
a && !r && /* @__PURE__ */
|
|
2344
|
+
a && !r && /* @__PURE__ */ k(R, {
|
|
2345
2345
|
style: [X.helperText, { color: s.textMuted }],
|
|
2346
2346
|
children: a
|
|
2347
2347
|
})
|
|
@@ -2417,20 +2417,20 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2417
2417
|
width: 10
|
|
2418
2418
|
}
|
|
2419
2419
|
}), ke = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
|
|
2420
|
-
let [s, c] =
|
|
2420
|
+
let [s, c] = O(!1), l = b(), { colors: u } = m(), d = e.data.options || [], f = e.data.multiple, p = Array.isArray(t) ? t : t ? [t] : [], h = (e) => {
|
|
2421
2421
|
f ? n(p.includes(e) ? p.filter((t) => t !== e) : [...p, e]) : (n(e), c(!1));
|
|
2422
2422
|
};
|
|
2423
|
-
return /* @__PURE__ */
|
|
2423
|
+
return /* @__PURE__ */ A(V, {
|
|
2424
2424
|
style: Z.container,
|
|
2425
2425
|
children: [
|
|
2426
|
-
/* @__PURE__ */
|
|
2426
|
+
/* @__PURE__ */ A(R, {
|
|
2427
2427
|
style: [Z.label, { color: u.textSecondary }],
|
|
2428
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2428
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2429
2429
|
style: { color: u.error },
|
|
2430
2430
|
children: "*"
|
|
2431
2431
|
})]
|
|
2432
2432
|
}),
|
|
2433
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ A(B, {
|
|
2434
2434
|
style: [
|
|
2435
2435
|
Z.trigger,
|
|
2436
2436
|
{
|
|
@@ -2441,7 +2441,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2441
2441
|
],
|
|
2442
2442
|
onPress: () => c(!0),
|
|
2443
2443
|
activeOpacity: .7,
|
|
2444
|
-
children: [/* @__PURE__ */
|
|
2444
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2445
2445
|
style: [
|
|
2446
2446
|
Z.triggerText,
|
|
2447
2447
|
{ color: u.text },
|
|
@@ -2453,64 +2453,64 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2453
2453
|
let e = d.find((e) => e.value === p[0]);
|
|
2454
2454
|
return e ? l(e.label) || e.value : a || "Select...";
|
|
2455
2455
|
})()
|
|
2456
|
-
}), /* @__PURE__ */
|
|
2456
|
+
}), /* @__PURE__ */ k(R, {
|
|
2457
2457
|
style: [Z.arrow, { color: u.textMuted }],
|
|
2458
2458
|
children: "▼"
|
|
2459
2459
|
})]
|
|
2460
2460
|
}),
|
|
2461
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ k(F, {
|
|
2462
2462
|
visible: s,
|
|
2463
2463
|
transparent: !0,
|
|
2464
2464
|
animationType: "fade",
|
|
2465
2465
|
onRequestClose: () => c(!1),
|
|
2466
|
-
children: /* @__PURE__ */
|
|
2466
|
+
children: /* @__PURE__ */ k(B, {
|
|
2467
2467
|
style: Z.modalOverlay,
|
|
2468
2468
|
activeOpacity: 1,
|
|
2469
2469
|
onPress: () => c(!1),
|
|
2470
|
-
children: /* @__PURE__ */
|
|
2470
|
+
children: /* @__PURE__ */ A(V, {
|
|
2471
2471
|
style: [Z.modalContent, { backgroundColor: u.card }],
|
|
2472
2472
|
onStartShouldSetResponder: () => !0,
|
|
2473
2473
|
children: [
|
|
2474
|
-
/* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ A(V, {
|
|
2475
2475
|
style: [Z.modalHeader, { borderBottomColor: u.border }],
|
|
2476
|
-
children: [/* @__PURE__ */
|
|
2476
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2477
2477
|
style: [Z.modalTitle, { color: u.text }],
|
|
2478
2478
|
children: i || e.data.name
|
|
2479
|
-
}), /* @__PURE__ */
|
|
2479
|
+
}), /* @__PURE__ */ k(B, {
|
|
2480
2480
|
onPress: () => c(!1),
|
|
2481
|
-
children: /* @__PURE__ */
|
|
2481
|
+
children: /* @__PURE__ */ k(R, {
|
|
2482
2482
|
style: [Z.closeButton, { color: u.textMuted }],
|
|
2483
2483
|
children: "✕"
|
|
2484
2484
|
})
|
|
2485
2485
|
})]
|
|
2486
2486
|
}),
|
|
2487
|
-
/* @__PURE__ */
|
|
2487
|
+
/* @__PURE__ */ k(I, {
|
|
2488
2488
|
style: Z.optionsList,
|
|
2489
2489
|
children: d.map((e) => {
|
|
2490
2490
|
let t = p.includes(e.value);
|
|
2491
|
-
return /* @__PURE__ */
|
|
2491
|
+
return /* @__PURE__ */ A(B, {
|
|
2492
2492
|
style: [Z.option, t && { backgroundColor: `${u.primary}20` }],
|
|
2493
2493
|
onPress: () => h(e.value),
|
|
2494
2494
|
disabled: e.disabled,
|
|
2495
2495
|
activeOpacity: .7,
|
|
2496
|
-
children: [/* @__PURE__ */
|
|
2496
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2497
2497
|
style: [
|
|
2498
2498
|
Z.optionText,
|
|
2499
2499
|
{ color: u.textSecondary },
|
|
2500
2500
|
e.disabled && { color: u.textMuted }
|
|
2501
2501
|
],
|
|
2502
2502
|
children: l(e.label) || e.value
|
|
2503
|
-
}), t && /* @__PURE__ */
|
|
2503
|
+
}), t && /* @__PURE__ */ k(R, {
|
|
2504
2504
|
style: [Z.checkmark, { color: u.primary }],
|
|
2505
2505
|
children: "✓"
|
|
2506
2506
|
})]
|
|
2507
2507
|
}, e.value);
|
|
2508
2508
|
})
|
|
2509
2509
|
}),
|
|
2510
|
-
f && /* @__PURE__ */
|
|
2510
|
+
f && /* @__PURE__ */ k(B, {
|
|
2511
2511
|
style: [Z.doneButton, { backgroundColor: u.primary }],
|
|
2512
2512
|
onPress: () => c(!1),
|
|
2513
|
-
children: /* @__PURE__ */
|
|
2513
|
+
children: /* @__PURE__ */ k(R, {
|
|
2514
2514
|
style: Z.doneButtonText,
|
|
2515
2515
|
children: "Done"
|
|
2516
2516
|
})
|
|
@@ -2519,11 +2519,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2519
2519
|
})
|
|
2520
2520
|
})
|
|
2521
2521
|
}),
|
|
2522
|
-
r && /* @__PURE__ */
|
|
2522
|
+
r && /* @__PURE__ */ k(R, {
|
|
2523
2523
|
style: [Z.error, { color: u.error }],
|
|
2524
2524
|
children: r
|
|
2525
2525
|
}),
|
|
2526
|
-
o && !r && /* @__PURE__ */
|
|
2526
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
2527
2527
|
style: [Z.helperText, { color: u.textMuted }],
|
|
2528
2528
|
children: o
|
|
2529
2529
|
})
|
|
@@ -2613,21 +2613,21 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
}), Ae = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
|
|
2615
2615
|
let { colors: o } = m(), s = !!t;
|
|
2616
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ A(V, {
|
|
2617
2617
|
style: je.container,
|
|
2618
2618
|
children: [
|
|
2619
|
-
/* @__PURE__ */
|
|
2619
|
+
/* @__PURE__ */ A(V, {
|
|
2620
2620
|
style: je.row,
|
|
2621
|
-
children: [/* @__PURE__ */
|
|
2621
|
+
children: [/* @__PURE__ */ k(V, {
|
|
2622
2622
|
style: je.labelContainer,
|
|
2623
|
-
children: /* @__PURE__ */
|
|
2623
|
+
children: /* @__PURE__ */ A(R, {
|
|
2624
2624
|
style: [je.label, { color: o.textSecondary }],
|
|
2625
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2625
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2626
2626
|
style: { color: o.error },
|
|
2627
2627
|
children: "*"
|
|
2628
2628
|
})]
|
|
2629
2629
|
})
|
|
2630
|
-
}), /* @__PURE__ */
|
|
2630
|
+
}), /* @__PURE__ */ k(te, {
|
|
2631
2631
|
trackColor: {
|
|
2632
2632
|
false: o.border,
|
|
2633
2633
|
true: `${o.primary}80`
|
|
@@ -2638,11 +2638,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2638
2638
|
value: s
|
|
2639
2639
|
})]
|
|
2640
2640
|
}),
|
|
2641
|
-
r && /* @__PURE__ */
|
|
2641
|
+
r && /* @__PURE__ */ k(R, {
|
|
2642
2642
|
style: [je.error, { color: o.error }],
|
|
2643
2643
|
children: r
|
|
2644
2644
|
}),
|
|
2645
|
-
a && !r && /* @__PURE__ */
|
|
2645
|
+
a && !r && /* @__PURE__ */ k(R, {
|
|
2646
2646
|
style: [je.helperText, { color: o.textMuted }],
|
|
2647
2647
|
children: a
|
|
2648
2648
|
})
|
|
@@ -2670,17 +2670,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
}), Me = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
|
|
2672
2672
|
let { colors: c } = m();
|
|
2673
|
-
return /* @__PURE__ */
|
|
2673
|
+
return /* @__PURE__ */ A(V, {
|
|
2674
2674
|
style: Ne.container,
|
|
2675
2675
|
children: [
|
|
2676
|
-
/* @__PURE__ */
|
|
2676
|
+
/* @__PURE__ */ A(R, {
|
|
2677
2677
|
style: [Ne.label, { color: c.textSecondary }],
|
|
2678
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2678
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2679
2679
|
style: { color: c.error },
|
|
2680
2680
|
children: "*"
|
|
2681
2681
|
})]
|
|
2682
2682
|
}),
|
|
2683
|
-
/* @__PURE__ */
|
|
2683
|
+
/* @__PURE__ */ k(z, {
|
|
2684
2684
|
style: [
|
|
2685
2685
|
Ne.textarea,
|
|
2686
2686
|
{
|
|
@@ -2699,11 +2699,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2699
2699
|
textAlignVertical: "top",
|
|
2700
2700
|
accessibilityLabel: s
|
|
2701
2701
|
}),
|
|
2702
|
-
r && /* @__PURE__ */
|
|
2702
|
+
r && /* @__PURE__ */ k(R, {
|
|
2703
2703
|
style: [Ne.error, { color: c.error }],
|
|
2704
2704
|
children: r
|
|
2705
2705
|
}),
|
|
2706
|
-
o && !r && /* @__PURE__ */
|
|
2706
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
2707
2707
|
style: [Ne.helperText, { color: c.textMuted }],
|
|
2708
2708
|
children: o
|
|
2709
2709
|
})
|
|
@@ -2734,17 +2734,17 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2734
2734
|
}
|
|
2735
2735
|
}), Pe = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o, name: s }) => {
|
|
2736
2736
|
let { colors: c } = m();
|
|
2737
|
-
return /* @__PURE__ */
|
|
2737
|
+
return /* @__PURE__ */ A(V, {
|
|
2738
2738
|
style: Fe.container,
|
|
2739
2739
|
children: [
|
|
2740
|
-
/* @__PURE__ */
|
|
2740
|
+
/* @__PURE__ */ A(R, {
|
|
2741
2741
|
style: [Fe.label, { color: c.textSecondary }],
|
|
2742
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2742
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2743
2743
|
style: { color: c.error },
|
|
2744
2744
|
children: "*"
|
|
2745
2745
|
})]
|
|
2746
2746
|
}),
|
|
2747
|
-
/* @__PURE__ */
|
|
2747
|
+
/* @__PURE__ */ k(z, {
|
|
2748
2748
|
style: [
|
|
2749
2749
|
Fe.input,
|
|
2750
2750
|
{
|
|
@@ -2760,11 +2760,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2760
2760
|
placeholderTextColor: c.textMuted,
|
|
2761
2761
|
accessibilityLabel: s
|
|
2762
2762
|
}),
|
|
2763
|
-
r && /* @__PURE__ */
|
|
2763
|
+
r && /* @__PURE__ */ k(R, {
|
|
2764
2764
|
style: [Fe.error, { color: c.error }],
|
|
2765
2765
|
children: r
|
|
2766
2766
|
}),
|
|
2767
|
-
o && !r && /* @__PURE__ */
|
|
2767
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
2768
2768
|
style: [Fe.helperText, { color: c.textMuted }],
|
|
2769
2769
|
children: o
|
|
2770
2770
|
})
|
|
@@ -2793,24 +2793,24 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2793
2793
|
marginBottom: 8
|
|
2794
2794
|
}
|
|
2795
2795
|
}), Ie = ({ node: e, value: t, setValue: n, error: r, label: i, placeholder: a, helperText: o }) => {
|
|
2796
|
-
let [s, c] =
|
|
2796
|
+
let [s, c] = O(!1), { colors: l } = m(), u = (t || "").split(":"), d = Number.parseInt(u[0], 10), f = Number.parseInt(u[1], 10), p = Number.isNaN(d) ? 0 : d, h = Number.isNaN(f) ? 0 : f, [g, _] = O(p || 0), [v, y] = O(h || 0), b = D(null), x = D(null), S = Array.from({ length: 24 }, (e, t) => t), C = Array.from({ length: 60 }, (e, t) => t), w = () => t || a || "Select time", T = ee(() => {
|
|
2797
2797
|
n(`${String(g).padStart(2, "0")}:${String(v).padStart(2, "0")}`), c(!1);
|
|
2798
2798
|
}, [
|
|
2799
2799
|
g,
|
|
2800
2800
|
v,
|
|
2801
2801
|
n
|
|
2802
2802
|
]);
|
|
2803
|
-
return /* @__PURE__ */
|
|
2803
|
+
return /* @__PURE__ */ A(V, {
|
|
2804
2804
|
style: Q.container,
|
|
2805
2805
|
children: [
|
|
2806
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ A(R, {
|
|
2807
2807
|
style: [Q.label, { color: l.textSecondary }],
|
|
2808
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
2808
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
2809
2809
|
style: { color: l.error },
|
|
2810
2810
|
children: "*"
|
|
2811
2811
|
})]
|
|
2812
2812
|
}),
|
|
2813
|
-
/* @__PURE__ */
|
|
2813
|
+
/* @__PURE__ */ A(B, {
|
|
2814
2814
|
style: [
|
|
2815
2815
|
Q.trigger,
|
|
2816
2816
|
{
|
|
@@ -2823,7 +2823,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2823
2823
|
_(p || 0), y(h || 0), c(!0);
|
|
2824
2824
|
},
|
|
2825
2825
|
activeOpacity: .7,
|
|
2826
|
-
children: [/* @__PURE__ */
|
|
2826
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2827
2827
|
style: [
|
|
2828
2828
|
Q.triggerText,
|
|
2829
2829
|
{ color: l.text },
|
|
@@ -2831,56 +2831,56 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2831
2831
|
],
|
|
2832
2832
|
numberOfLines: 1,
|
|
2833
2833
|
children: w()
|
|
2834
|
-
}), /* @__PURE__ */
|
|
2834
|
+
}), /* @__PURE__ */ k(R, {
|
|
2835
2835
|
style: Q.icon,
|
|
2836
2836
|
children: "🕐"
|
|
2837
2837
|
})]
|
|
2838
2838
|
}),
|
|
2839
|
-
/* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ k(F, {
|
|
2840
2840
|
visible: s,
|
|
2841
2841
|
transparent: !0,
|
|
2842
2842
|
animationType: "fade",
|
|
2843
2843
|
onRequestClose: () => c(!1),
|
|
2844
|
-
children: /* @__PURE__ */
|
|
2844
|
+
children: /* @__PURE__ */ k(B, {
|
|
2845
2845
|
style: Q.modalOverlay,
|
|
2846
2846
|
activeOpacity: 1,
|
|
2847
2847
|
onPress: () => c(!1),
|
|
2848
|
-
children: /* @__PURE__ */
|
|
2848
|
+
children: /* @__PURE__ */ A(B, {
|
|
2849
2849
|
style: [Q.modalContent, { backgroundColor: l.card }],
|
|
2850
2850
|
activeOpacity: 1,
|
|
2851
2851
|
onPress: () => {},
|
|
2852
2852
|
children: [
|
|
2853
|
-
/* @__PURE__ */
|
|
2853
|
+
/* @__PURE__ */ A(V, {
|
|
2854
2854
|
style: [Q.modalHeader, { borderBottomColor: l.separator }],
|
|
2855
|
-
children: [/* @__PURE__ */
|
|
2855
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2856
2856
|
style: [Q.modalTitle, { color: l.text }],
|
|
2857
2857
|
children: i || e.data.name
|
|
2858
|
-
}), /* @__PURE__ */
|
|
2858
|
+
}), /* @__PURE__ */ k(B, {
|
|
2859
2859
|
onPress: () => c(!1),
|
|
2860
|
-
children: /* @__PURE__ */
|
|
2860
|
+
children: /* @__PURE__ */ k(R, {
|
|
2861
2861
|
style: [Q.closeButton, { color: l.textMuted }],
|
|
2862
2862
|
children: "✕"
|
|
2863
2863
|
})
|
|
2864
2864
|
})]
|
|
2865
2865
|
}),
|
|
2866
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ A(V, {
|
|
2867
2867
|
style: Q.pickerContainer,
|
|
2868
2868
|
children: [
|
|
2869
|
-
/* @__PURE__ */
|
|
2869
|
+
/* @__PURE__ */ A(V, {
|
|
2870
2870
|
style: Q.pickerColumn,
|
|
2871
|
-
children: [/* @__PURE__ */
|
|
2871
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2872
2872
|
style: [Q.pickerLabel, { color: l.textMuted }],
|
|
2873
2873
|
children: "Hour"
|
|
2874
|
-
}), /* @__PURE__ */
|
|
2874
|
+
}), /* @__PURE__ */ k(I, {
|
|
2875
2875
|
ref: b,
|
|
2876
2876
|
style: Q.picker,
|
|
2877
2877
|
contentContainerStyle: Q.pickerContent,
|
|
2878
2878
|
showsVerticalScrollIndicator: !1,
|
|
2879
|
-
children: S.map((e) => /* @__PURE__ */
|
|
2879
|
+
children: S.map((e) => /* @__PURE__ */ k(B, {
|
|
2880
2880
|
style: [Q.pickerItem, g === e && { backgroundColor: l.primary }],
|
|
2881
2881
|
onPress: () => _(e),
|
|
2882
2882
|
activeOpacity: .7,
|
|
2883
|
-
children: /* @__PURE__ */
|
|
2883
|
+
children: /* @__PURE__ */ k(R, {
|
|
2884
2884
|
style: [
|
|
2885
2885
|
Q.pickerItemText,
|
|
2886
2886
|
{ color: l.text },
|
|
@@ -2894,25 +2894,25 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2894
2894
|
}, e))
|
|
2895
2895
|
})]
|
|
2896
2896
|
}),
|
|
2897
|
-
/* @__PURE__ */
|
|
2897
|
+
/* @__PURE__ */ k(R, {
|
|
2898
2898
|
style: [Q.pickerSeparator, { color: l.text }],
|
|
2899
2899
|
children: ":"
|
|
2900
2900
|
}),
|
|
2901
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ A(V, {
|
|
2902
2902
|
style: Q.pickerColumn,
|
|
2903
|
-
children: [/* @__PURE__ */
|
|
2903
|
+
children: [/* @__PURE__ */ k(R, {
|
|
2904
2904
|
style: [Q.pickerLabel, { color: l.textMuted }],
|
|
2905
2905
|
children: "Minute"
|
|
2906
|
-
}), /* @__PURE__ */
|
|
2906
|
+
}), /* @__PURE__ */ k(I, {
|
|
2907
2907
|
ref: x,
|
|
2908
2908
|
style: Q.picker,
|
|
2909
2909
|
contentContainerStyle: Q.pickerContent,
|
|
2910
2910
|
showsVerticalScrollIndicator: !1,
|
|
2911
|
-
children: C.map((e) => /* @__PURE__ */
|
|
2911
|
+
children: C.map((e) => /* @__PURE__ */ k(B, {
|
|
2912
2912
|
style: [Q.pickerItem, v === e && { backgroundColor: l.primary }],
|
|
2913
2913
|
onPress: () => y(e),
|
|
2914
2914
|
activeOpacity: .7,
|
|
2915
|
-
children: /* @__PURE__ */
|
|
2915
|
+
children: /* @__PURE__ */ k(R, {
|
|
2916
2916
|
style: [
|
|
2917
2917
|
Q.pickerItemText,
|
|
2918
2918
|
{ color: l.text },
|
|
@@ -2928,11 +2928,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2928
2928
|
})
|
|
2929
2929
|
]
|
|
2930
2930
|
}),
|
|
2931
|
-
/* @__PURE__ */
|
|
2931
|
+
/* @__PURE__ */ k(B, {
|
|
2932
2932
|
style: [Q.confirmButton, { backgroundColor: l.primary }],
|
|
2933
|
-
onPress:
|
|
2933
|
+
onPress: T,
|
|
2934
2934
|
activeOpacity: .7,
|
|
2935
|
-
children: /* @__PURE__ */
|
|
2935
|
+
children: /* @__PURE__ */ k(R, {
|
|
2936
2936
|
style: [Q.confirmButtonText, { color: l.background }],
|
|
2937
2937
|
children: "Confirm"
|
|
2938
2938
|
})
|
|
@@ -2941,11 +2941,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
2941
2941
|
})
|
|
2942
2942
|
})
|
|
2943
2943
|
}),
|
|
2944
|
-
r && /* @__PURE__ */
|
|
2944
|
+
r && /* @__PURE__ */ k(R, {
|
|
2945
2945
|
style: [Q.error, { color: l.error }],
|
|
2946
2946
|
children: r
|
|
2947
2947
|
}),
|
|
2948
|
-
o && !r && /* @__PURE__ */
|
|
2948
|
+
o && !r && /* @__PURE__ */ k(R, {
|
|
2949
2949
|
style: [Q.helperText, { color: l.textMuted }],
|
|
2950
2950
|
children: o
|
|
2951
2951
|
})
|
|
@@ -3043,30 +3043,30 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3043
3043
|
fontSize: 14
|
|
3044
3044
|
}
|
|
3045
3045
|
}), Le = ({ node: e, value: t, setValue: n, error: r, label: i, helperText: a }) => {
|
|
3046
|
-
let [o, s] =
|
|
3047
|
-
let e = `${String(
|
|
3048
|
-
c ? (n([e, h]), l(!1), j(
|
|
3046
|
+
let [o, s] = O(!1), [c, l] = O(!0), u = b(), { colors: d } = m(), f = Array.isArray(t) ? t : [], p = f[0] || "", h = f[1] || "", g = p.split(":"), _ = Number.parseInt(g[0], 10), v = Number.parseInt(g[1], 10), y = Number.isNaN(_) ? 0 : _, x = Number.isNaN(v) ? 0 : v, S = h.split(":"), C = Number.parseInt(S[0], 10), w = Number.parseInt(S[1], 10), T = Number.isNaN(C) ? 0 : C, E = Number.isNaN(w) ? 0 : w, [D, j] = O(0), [M, N] = O(0), P = Array.from({ length: 24 }, (e, t) => t), L = Array.from({ length: 60 }, (e, t) => t), te = () => p && h ? `${p} - ${h}` : p || u("renderer.defaultInputs.selectDateRange"), z = ee(() => {
|
|
3047
|
+
let e = `${String(D).padStart(2, "0")}:${String(M).padStart(2, "0")}`;
|
|
3048
|
+
c ? (n([e, h]), l(!1), j(T || 0), N(E || 0)) : (n([p, e]), s(!1), l(!0));
|
|
3049
3049
|
}, [
|
|
3050
3050
|
c,
|
|
3051
|
-
|
|
3051
|
+
D,
|
|
3052
3052
|
M,
|
|
3053
3053
|
p,
|
|
3054
3054
|
h,
|
|
3055
|
-
|
|
3056
|
-
|
|
3055
|
+
T,
|
|
3056
|
+
E,
|
|
3057
3057
|
n
|
|
3058
3058
|
]);
|
|
3059
|
-
return /* @__PURE__ */
|
|
3059
|
+
return /* @__PURE__ */ A(V, {
|
|
3060
3060
|
style: $.container,
|
|
3061
3061
|
children: [
|
|
3062
|
-
/* @__PURE__ */
|
|
3062
|
+
/* @__PURE__ */ A(R, {
|
|
3063
3063
|
style: [$.label, { color: d.textSecondary }],
|
|
3064
|
-
children: [i || e.data.name, e.data.required && /* @__PURE__ */
|
|
3064
|
+
children: [i || e.data.name, e.data.required && /* @__PURE__ */ k(R, {
|
|
3065
3065
|
style: { color: d.error },
|
|
3066
3066
|
children: "*"
|
|
3067
3067
|
})]
|
|
3068
3068
|
}),
|
|
3069
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ A(B, {
|
|
3070
3070
|
style: [
|
|
3071
3071
|
$.trigger,
|
|
3072
3072
|
{
|
|
@@ -3079,7 +3079,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3079
3079
|
j(y || 0), N(x || 0), l(!0), s(!0);
|
|
3080
3080
|
},
|
|
3081
3081
|
activeOpacity: .7,
|
|
3082
|
-
children: [/* @__PURE__ */
|
|
3082
|
+
children: [/* @__PURE__ */ k(R, {
|
|
3083
3083
|
style: [
|
|
3084
3084
|
$.triggerText,
|
|
3085
3085
|
{ color: d.text },
|
|
@@ -3087,66 +3087,66 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3087
3087
|
],
|
|
3088
3088
|
numberOfLines: 1,
|
|
3089
3089
|
children: te()
|
|
3090
|
-
}), /* @__PURE__ */
|
|
3090
|
+
}), /* @__PURE__ */ k(R, {
|
|
3091
3091
|
style: $.icon,
|
|
3092
3092
|
children: "🕐"
|
|
3093
3093
|
})]
|
|
3094
3094
|
}),
|
|
3095
|
-
/* @__PURE__ */
|
|
3095
|
+
/* @__PURE__ */ k(F, {
|
|
3096
3096
|
visible: o,
|
|
3097
3097
|
transparent: !0,
|
|
3098
3098
|
animationType: "fade",
|
|
3099
3099
|
onRequestClose: () => s(!1),
|
|
3100
|
-
children: /* @__PURE__ */
|
|
3100
|
+
children: /* @__PURE__ */ k(B, {
|
|
3101
3101
|
style: $.modalOverlay,
|
|
3102
3102
|
activeOpacity: 1,
|
|
3103
3103
|
onPress: () => s(!1),
|
|
3104
|
-
children: /* @__PURE__ */
|
|
3104
|
+
children: /* @__PURE__ */ A(B, {
|
|
3105
3105
|
style: [$.modalContent, { backgroundColor: d.card }],
|
|
3106
3106
|
activeOpacity: 1,
|
|
3107
3107
|
onPress: () => {},
|
|
3108
3108
|
children: [
|
|
3109
|
-
/* @__PURE__ */
|
|
3109
|
+
/* @__PURE__ */ A(V, {
|
|
3110
3110
|
style: [$.modalHeader, { borderBottomColor: d.separator }],
|
|
3111
|
-
children: [/* @__PURE__ */
|
|
3111
|
+
children: [/* @__PURE__ */ k(R, {
|
|
3112
3112
|
style: [$.modalTitle, { color: d.text }],
|
|
3113
3113
|
children: i || e.data.name
|
|
3114
|
-
}), /* @__PURE__ */
|
|
3114
|
+
}), /* @__PURE__ */ k(B, {
|
|
3115
3115
|
onPress: () => s(!1),
|
|
3116
|
-
children: /* @__PURE__ */
|
|
3116
|
+
children: /* @__PURE__ */ k(R, {
|
|
3117
3117
|
style: [$.closeButton, { color: d.textMuted }],
|
|
3118
3118
|
children: "✕"
|
|
3119
3119
|
})
|
|
3120
3120
|
})]
|
|
3121
3121
|
}),
|
|
3122
|
-
/* @__PURE__ */
|
|
3122
|
+
/* @__PURE__ */ k(V, {
|
|
3123
3123
|
style: [$.rangeIndicator, { backgroundColor: d.primaryLight }],
|
|
3124
|
-
children: /* @__PURE__ */
|
|
3124
|
+
children: /* @__PURE__ */ k(R, {
|
|
3125
3125
|
style: [$.rangeIndicatorText, { color: d.primary }],
|
|
3126
3126
|
children: u(c ? "renderer.defaultInputs.startTime" : "renderer.defaultInputs.endTime")
|
|
3127
3127
|
})
|
|
3128
3128
|
}),
|
|
3129
|
-
/* @__PURE__ */
|
|
3129
|
+
/* @__PURE__ */ A(V, {
|
|
3130
3130
|
style: $.pickerContainer,
|
|
3131
3131
|
children: [
|
|
3132
|
-
/* @__PURE__ */
|
|
3132
|
+
/* @__PURE__ */ A(V, {
|
|
3133
3133
|
style: $.pickerColumn,
|
|
3134
|
-
children: [/* @__PURE__ */
|
|
3134
|
+
children: [/* @__PURE__ */ k(R, {
|
|
3135
3135
|
style: [$.pickerLabel, { color: d.textMuted }],
|
|
3136
3136
|
children: "Hour"
|
|
3137
|
-
}), /* @__PURE__ */
|
|
3137
|
+
}), /* @__PURE__ */ k(I, {
|
|
3138
3138
|
style: $.picker,
|
|
3139
3139
|
contentContainerStyle: $.pickerContent,
|
|
3140
3140
|
showsVerticalScrollIndicator: !1,
|
|
3141
|
-
children: P.map((e) => /* @__PURE__ */
|
|
3142
|
-
style: [$.pickerItem,
|
|
3141
|
+
children: P.map((e) => /* @__PURE__ */ k(B, {
|
|
3142
|
+
style: [$.pickerItem, D === e && { backgroundColor: d.primary }],
|
|
3143
3143
|
onPress: () => j(e),
|
|
3144
3144
|
activeOpacity: .7,
|
|
3145
|
-
children: /* @__PURE__ */
|
|
3145
|
+
children: /* @__PURE__ */ k(R, {
|
|
3146
3146
|
style: [
|
|
3147
3147
|
$.pickerItemText,
|
|
3148
3148
|
{ color: d.text },
|
|
3149
|
-
|
|
3149
|
+
D === e && {
|
|
3150
3150
|
color: d.background,
|
|
3151
3151
|
fontWeight: "600"
|
|
3152
3152
|
}
|
|
@@ -3156,24 +3156,24 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3156
3156
|
}, e))
|
|
3157
3157
|
})]
|
|
3158
3158
|
}),
|
|
3159
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ k(R, {
|
|
3160
3160
|
style: [$.pickerSeparator, { color: d.text }],
|
|
3161
3161
|
children: ":"
|
|
3162
3162
|
}),
|
|
3163
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ A(V, {
|
|
3164
3164
|
style: $.pickerColumn,
|
|
3165
|
-
children: [/* @__PURE__ */
|
|
3165
|
+
children: [/* @__PURE__ */ k(R, {
|
|
3166
3166
|
style: [$.pickerLabel, { color: d.textMuted }],
|
|
3167
3167
|
children: "Minute"
|
|
3168
|
-
}), /* @__PURE__ */
|
|
3168
|
+
}), /* @__PURE__ */ k(I, {
|
|
3169
3169
|
style: $.picker,
|
|
3170
3170
|
contentContainerStyle: $.pickerContent,
|
|
3171
3171
|
showsVerticalScrollIndicator: !1,
|
|
3172
|
-
children: L.map((e) => /* @__PURE__ */
|
|
3172
|
+
children: L.map((e) => /* @__PURE__ */ k(B, {
|
|
3173
3173
|
style: [$.pickerItem, M === e && { backgroundColor: d.primary }],
|
|
3174
3174
|
onPress: () => N(e),
|
|
3175
3175
|
activeOpacity: .7,
|
|
3176
|
-
children: /* @__PURE__ */
|
|
3176
|
+
children: /* @__PURE__ */ k(R, {
|
|
3177
3177
|
style: [
|
|
3178
3178
|
$.pickerItemText,
|
|
3179
3179
|
{ color: d.text },
|
|
@@ -3189,11 +3189,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3189
3189
|
})
|
|
3190
3190
|
]
|
|
3191
3191
|
}),
|
|
3192
|
-
/* @__PURE__ */
|
|
3192
|
+
/* @__PURE__ */ k(B, {
|
|
3193
3193
|
style: [$.confirmButton, { backgroundColor: d.primary }],
|
|
3194
3194
|
onPress: z,
|
|
3195
3195
|
activeOpacity: .7,
|
|
3196
|
-
children: /* @__PURE__ */
|
|
3196
|
+
children: /* @__PURE__ */ k(R, {
|
|
3197
3197
|
style: [$.confirmButtonText, { color: d.background }],
|
|
3198
3198
|
children: c ? "Next" : "Confirm"
|
|
3199
3199
|
})
|
|
@@ -3202,11 +3202,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3202
3202
|
})
|
|
3203
3203
|
})
|
|
3204
3204
|
}),
|
|
3205
|
-
r && /* @__PURE__ */
|
|
3205
|
+
r && /* @__PURE__ */ k(R, {
|
|
3206
3206
|
style: [$.error, { color: d.error }],
|
|
3207
3207
|
children: r
|
|
3208
3208
|
}),
|
|
3209
|
-
a && !r && /* @__PURE__ */
|
|
3209
|
+
a && !r && /* @__PURE__ */ k(R, {
|
|
3210
3210
|
style: [$.helperText, { color: d.textMuted }],
|
|
3211
3211
|
children: a
|
|
3212
3212
|
})
|
|
@@ -3313,7 +3313,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3313
3313
|
flex: 1,
|
|
3314
3314
|
fontSize: 14
|
|
3315
3315
|
}
|
|
3316
|
-
}), Re = ({ node: e }) => /* @__PURE__ */
|
|
3316
|
+
}), Re = ({ node: e }) => /* @__PURE__ */ A(R, { children: [
|
|
3317
3317
|
"TODO: Implement ",
|
|
3318
3318
|
e.data.type,
|
|
3319
3319
|
" input for React Native"
|
|
@@ -3338,7 +3338,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3338
3338
|
timerange: Le
|
|
3339
3339
|
}, Be = ({ children: e = "Submit", disabled: t, isSubmitting: n, onPress: r }) => {
|
|
3340
3340
|
let { colors: i } = m();
|
|
3341
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ k(B, {
|
|
3342
3342
|
style: [
|
|
3343
3343
|
Ve.button,
|
|
3344
3344
|
{ backgroundColor: i.primary },
|
|
@@ -3350,7 +3350,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3350
3350
|
disabled: t || n,
|
|
3351
3351
|
onPress: r,
|
|
3352
3352
|
activeOpacity: .7,
|
|
3353
|
-
children: n ? /* @__PURE__ */
|
|
3353
|
+
children: n ? /* @__PURE__ */ k(j, { color: i.primaryForeground }) : /* @__PURE__ */ k(R, {
|
|
3354
3354
|
style: [Ve.buttonText, { color: i.primaryForeground }],
|
|
3355
3355
|
children: e
|
|
3356
3356
|
})
|
|
@@ -3370,13 +3370,13 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
}), He = ({ children: e }) => e, Ue = ({ node: e }) => {
|
|
3372
3372
|
let t = b(), { colors: n } = m(), r = t(e.data?.label);
|
|
3373
|
-
return /* @__PURE__ */
|
|
3373
|
+
return /* @__PURE__ */ k(R, {
|
|
3374
3374
|
style: [Ge.title, { color: n.text }],
|
|
3375
3375
|
children: r
|
|
3376
3376
|
});
|
|
3377
3377
|
}, We = () => {
|
|
3378
3378
|
let { colors: e } = m();
|
|
3379
|
-
return /* @__PURE__ */
|
|
3379
|
+
return /* @__PURE__ */ k(V, { style: [Ge.divider, { backgroundColor: e.separator }] });
|
|
3380
3380
|
}, Ge = L.create({
|
|
3381
3381
|
divider: {
|
|
3382
3382
|
height: 1,
|
|
@@ -3392,7 +3392,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3392
3392
|
divider: We,
|
|
3393
3393
|
title: Ue
|
|
3394
3394
|
}, qe = ({ components: e, contentContainerStyle: t, flows: n, googleApiKey: r, initialValues: i, language: a, onChange: o, onSubmit: s, style: c, theme: l, validate: u, validationMode: f }) => {
|
|
3395
|
-
let { colors: p } = m(), { canSubmit: h, clearSubmitMessage: v, config: y, formErrors: b, formValues: x, handleSubmit: S, inputNodes: C, isSubmitting: w, mergedFlow: ee, missingRequiredFields:
|
|
3395
|
+
let { colors: p } = m(), { canSubmit: h, clearSubmitMessage: v, config: y, formErrors: b, formValues: x, handleSubmit: S, inputNodes: C, isSubmitting: w, mergedFlow: ee, missingRequiredFields: T, setFieldValue: E, submitMessage: D, t: O, visibleNodes: j, visibleRootNodes: M } = d({
|
|
3396
3396
|
components: e,
|
|
3397
3397
|
flows: n,
|
|
3398
3398
|
googleApiKey: r,
|
|
@@ -3413,11 +3413,11 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3413
3413
|
defaultUI: Ke,
|
|
3414
3414
|
formErrors: b,
|
|
3415
3415
|
formValues: x,
|
|
3416
|
-
missingRequiredFields:
|
|
3417
|
-
setFieldValue:
|
|
3416
|
+
missingRequiredFields: T,
|
|
3417
|
+
setFieldValue: E,
|
|
3418
3418
|
visibleNodes: j
|
|
3419
3419
|
});
|
|
3420
|
-
return /* @__PURE__ */
|
|
3420
|
+
return /* @__PURE__ */ k(I, {
|
|
3421
3421
|
nestedScrollEnabled: !0,
|
|
3422
3422
|
style: [
|
|
3423
3423
|
Ye.container,
|
|
@@ -3425,7 +3425,7 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3425
3425
|
c
|
|
3426
3426
|
],
|
|
3427
3427
|
contentContainerStyle: t,
|
|
3428
|
-
children: /* @__PURE__ */
|
|
3428
|
+
children: /* @__PURE__ */ A(g, {
|
|
3429
3429
|
value: {
|
|
3430
3430
|
flows: ee,
|
|
3431
3431
|
formErrors: b,
|
|
@@ -3433,43 +3433,43 @@ var ne = ({ children: e }) => /* @__PURE__ */ T(V, {
|
|
|
3433
3433
|
googleApiKey: y.googleApiKey,
|
|
3434
3434
|
inputNodes: C,
|
|
3435
3435
|
language: y.language,
|
|
3436
|
-
setFieldValue:
|
|
3436
|
+
setFieldValue: E
|
|
3437
3437
|
},
|
|
3438
|
-
children: [/* @__PURE__ */
|
|
3438
|
+
children: [/* @__PURE__ */ A(N, {
|
|
3439
3439
|
onSubmit: S,
|
|
3440
3440
|
children: [
|
|
3441
3441
|
M.map((e) => L(e)),
|
|
3442
|
-
h && /* @__PURE__ */
|
|
3443
|
-
missingFields:
|
|
3444
|
-
children: /* @__PURE__ */
|
|
3442
|
+
h && /* @__PURE__ */ k(F, {
|
|
3443
|
+
missingFields: T,
|
|
3444
|
+
children: /* @__PURE__ */ k(P, {
|
|
3445
3445
|
onPress: S,
|
|
3446
3446
|
disabled: w,
|
|
3447
3447
|
isSubmitting: w,
|
|
3448
|
-
children:
|
|
3448
|
+
children: O("renderer.defaultSubmitButton.submit")
|
|
3449
3449
|
})
|
|
3450
3450
|
}),
|
|
3451
|
-
/* @__PURE__ */
|
|
3451
|
+
/* @__PURE__ */ k(R, {
|
|
3452
3452
|
style: [Ye.poweredBy, { color: p.textMuted }],
|
|
3453
3453
|
children: "Powered by Treege"
|
|
3454
3454
|
})
|
|
3455
3455
|
]
|
|
3456
|
-
}),
|
|
3457
|
-
style: [Ye.message, { backgroundColor:
|
|
3458
|
-
children: [/* @__PURE__ */
|
|
3459
|
-
style: [Ye.messageText, { color:
|
|
3460
|
-
children:
|
|
3461
|
-
}), /* @__PURE__ */
|
|
3462
|
-
style: [Ye.messageClose, { color:
|
|
3456
|
+
}), D && /* @__PURE__ */ A(V, {
|
|
3457
|
+
style: [Ye.message, { backgroundColor: D.type === "success" ? p.successBg : p.errorBg }],
|
|
3458
|
+
children: [/* @__PURE__ */ k(R, {
|
|
3459
|
+
style: [Ye.messageText, { color: D.type === "success" ? p.success : p.error }],
|
|
3460
|
+
children: D.message
|
|
3461
|
+
}), /* @__PURE__ */ k(R, {
|
|
3462
|
+
style: [Ye.messageClose, { color: D.type === "success" ? p.success : p.error }],
|
|
3463
3463
|
onPress: v,
|
|
3464
|
-
children:
|
|
3464
|
+
children: O("common.close")
|
|
3465
3465
|
})]
|
|
3466
3466
|
})]
|
|
3467
3467
|
})
|
|
3468
3468
|
});
|
|
3469
|
-
}, Je = (e) => /* @__PURE__ */
|
|
3469
|
+
}, Je = (e) => /* @__PURE__ */ k(y, {
|
|
3470
3470
|
theme: e.theme,
|
|
3471
3471
|
storageKey: "treege-renderer-theme",
|
|
3472
|
-
children: /* @__PURE__ */
|
|
3472
|
+
children: /* @__PURE__ */ k(qe, { ...e })
|
|
3473
3473
|
}), Ye = L.create({
|
|
3474
3474
|
container: { flex: 1 },
|
|
3475
3475
|
message: {
|