rechtspilot-ui 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,25 @@
1
1
  import { G as e, J as t, K as n, W as r, Y as i, q as a, t as o } from "./chunks-native.js";
2
2
  import * as s from "react";
3
3
  import { createContext as c, useContext as l, useEffect as u, useRef as d, useState as f } from "react";
4
- import { Animated as p, Easing as m, KeyboardAvoidingView as h, Modal as g, Platform as _, Pressable as v, ScrollView as y, StyleSheet as b, Text as x, TextInput as ee, TouchableOpacity as S, View as C } from "react-native";
5
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
6
- import { Circle as D, Path as O, Svg as k } from "react-native-svg";
7
- import { useSafeAreaInsets as te } from "react-native-safe-area-context";
4
+ import { Animated as p, Easing as m, Modal as h, Platform as g, Pressable as _, ScrollView as v, StyleSheet as y, Text as b, TouchableOpacity as ee, View as x } from "react-native";
5
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
6
+ import { Circle as T, Path as E, Svg as D } from "react-native-svg";
7
+ import { HelperText as te, TextInput as O } from "react-native-paper";
8
+ import { KeyboardAvoidingView as ne } from "react-native-keyboard-controller";
9
+ import { useSafeAreaInsets as re } from "react-native-safe-area-context";
8
10
  //#region src/components/Text/Text.native.tsx
9
- var ne = {
11
+ var ie = {
10
12
  heading: 20,
11
13
  title: 16,
12
14
  label: 13,
13
15
  body: 15,
14
16
  caption: 12
15
17
  };
16
- function A({ variant: e = "body", color: t, style: n, ...r }) {
17
- return /* @__PURE__ */ T(x, {
18
+ function k({ variant: e = "body", color: t, style: n, ...r }) {
19
+ return /* @__PURE__ */ C(b, {
18
20
  style: [
19
21
  i[e],
20
- { fontSize: ne[e] },
22
+ { fontSize: ie[e] },
21
23
  t ? { color: t } : void 0,
22
24
  n
23
25
  ],
@@ -26,22 +28,22 @@ function A({ variant: e = "body", color: t, style: n, ...r }) {
26
28
  }
27
29
  //#endregion
28
30
  //#region src/components/Badge/Badge.native.tsx
29
- function re({ icon: e, children: n, backgroundColor: r = t.neutral["800-A08"], textColor: i = t.fg.primary, style: a }) {
30
- return /* @__PURE__ */ E(C, {
31
+ function ae({ icon: e, children: n, backgroundColor: r = t.neutral["800-A08"], textColor: i = t.fg.primary, style: a }) {
32
+ return /* @__PURE__ */ w(x, {
31
33
  style: [
32
- ie.badge,
34
+ A.badge,
33
35
  { backgroundColor: r },
34
36
  a
35
37
  ],
36
- children: [e, /* @__PURE__ */ T(A, {
38
+ children: [e, /* @__PURE__ */ C(k, {
37
39
  variant: "label",
38
40
  color: i,
39
- style: ie.label,
41
+ style: A.label,
40
42
  children: n
41
43
  })]
42
44
  });
43
45
  }
44
- var ie = b.create({
46
+ var A = y.create({
45
47
  badge: {
46
48
  flexDirection: "row",
47
49
  alignItems: "center",
@@ -70,25 +72,25 @@ function j({ size: e = 24, color: n = t.fg.primary, trackColor: r = t.neutral["8
70
72
  inputRange: [0, 1],
71
73
  outputRange: ["0deg", "360deg"]
72
74
  });
73
- return /* @__PURE__ */ T(p.View, {
75
+ return /* @__PURE__ */ C(p.View, {
74
76
  style: [{
75
77
  width: e,
76
78
  height: e,
77
79
  transform: [{ rotate: s }]
78
80
  }, a],
79
- children: /* @__PURE__ */ E(k, {
81
+ children: /* @__PURE__ */ w(D, {
80
82
  width: e,
81
83
  height: e,
82
84
  viewBox: "0 0 24 24",
83
85
  fill: "none",
84
- children: [/* @__PURE__ */ T(D, {
86
+ children: [/* @__PURE__ */ C(T, {
85
87
  cx: "12",
86
88
  cy: "12",
87
89
  r: "8",
88
90
  stroke: r,
89
91
  strokeWidth: 3,
90
92
  fill: "none"
91
- }), /* @__PURE__ */ T(O, {
93
+ }), /* @__PURE__ */ C(E, {
92
94
  d: "M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",
93
95
  stroke: n,
94
96
  strokeWidth: 3,
@@ -100,7 +102,7 @@ function j({ size: e = 24, color: n = t.fg.primary, trackColor: r = t.neutral["8
100
102
  }
101
103
  //#endregion
102
104
  //#region src/components/Button/Button.native.tsx
103
- var ae = (e) => {
105
+ var oe = (e) => {
104
106
  let n = {
105
107
  alignItems: "center",
106
108
  borderRadius: 12,
@@ -173,22 +175,23 @@ var ae = (e) => {
173
175
  };
174
176
  }
175
177
  };
176
- function oe({ variant: e = "primary", fullWidth: n = !1, children: r, loading: i = !1, disabled: a = !1, onPress: o, ...s }) {
177
- let c = ae(e);
178
- return /* @__PURE__ */ E(S, {
179
- style: b.flatten([
180
- c.container,
178
+ function se({ variant: e = "primary", fullWidth: n = !1, children: r, loading: i = !1, disabled: a = !1, onPress: o, style: s, ...c }) {
179
+ let l = oe(e);
180
+ return /* @__PURE__ */ w(ee, {
181
+ style: [
182
+ l.container,
181
183
  n && { width: "100%" },
182
- (a || i) && { opacity: .4 }
183
- ]),
184
+ (a || i) && { opacity: .4 },
185
+ s
186
+ ],
184
187
  onPress: o,
185
188
  disabled: a || i,
186
189
  activeOpacity: .7,
187
- ...s,
188
- children: [typeof r == "string" ? /* @__PURE__ */ T(x, {
189
- style: c.text,
190
+ ...c,
191
+ children: [typeof r == "string" ? /* @__PURE__ */ C(b, {
192
+ style: l.text,
190
193
  children: r
191
- }) : r, i && /* @__PURE__ */ T(j, {
194
+ }) : r, i && /* @__PURE__ */ C(j, {
192
195
  size: 16,
193
196
  color: e === "secondary" ? t.primary[600] : e === "destructiveSubtle" ? t.fg.accent.error : t.white
194
197
  })]
@@ -196,7 +199,7 @@ function oe({ variant: e = "primary", fullWidth: n = !1, children: r, loading: i
196
199
  }
197
200
  //#endregion
198
201
  //#region src/components/Card/Card.native.tsx
199
- var se = {
202
+ var ce = {
200
203
  outlined: {
201
204
  backgroundColor: t.white,
202
205
  borderWidth: 1,
@@ -215,11 +218,11 @@ var se = {
215
218
  elevation: 8
216
219
  }
217
220
  };
218
- function ce({ variant: e = "outlined", radius: t = 16, padding: n = 16, backgroundColor: r, style: i, children: a }) {
219
- return /* @__PURE__ */ T(C, {
221
+ function le({ variant: e = "outlined", radius: t = 16, padding: n = 16, backgroundColor: r, style: i, children: a }) {
222
+ return /* @__PURE__ */ C(x, {
220
223
  style: [
221
- le.base,
222
- se[e],
224
+ ue.base,
225
+ ce[e],
223
226
  {
224
227
  borderRadius: t,
225
228
  padding: n
@@ -230,16 +233,16 @@ function ce({ variant: e = "outlined", radius: t = 16, padding: n = 16, backgrou
230
233
  children: a
231
234
  });
232
235
  }
233
- var le = b.create({ base: { width: "100%" } });
236
+ var ue = y.create({ base: { width: "100%" } });
234
237
  //#endregion
235
238
  //#region src/components/Divider/Divider.native.tsx
236
- function ue({ style: e, ...t }) {
237
- return /* @__PURE__ */ T(C, {
238
- style: [de.divider, e],
239
+ function de({ style: e, ...t }) {
240
+ return /* @__PURE__ */ C(x, {
241
+ style: [fe.divider, e],
239
242
  ...t
240
243
  });
241
244
  }
242
- var de = b.create({ divider: {
245
+ var fe = y.create({ divider: {
243
246
  height: 1,
244
247
  width: "100%",
245
248
  backgroundColor: t.border.default,
@@ -247,25 +250,25 @@ var de = b.create({ divider: {
247
250
  } });
248
251
  //#endregion
249
252
  //#region src/components/EmptyState/EmptyState.native.tsx
250
- function fe({ icon: e, title: n, description: r, actionLabel: i, onAction: a }) {
251
- return /* @__PURE__ */ E(C, {
253
+ function pe({ icon: e, title: n, description: r, actionLabel: i, onAction: a }) {
254
+ return /* @__PURE__ */ w(x, {
252
255
  style: M.container,
253
256
  children: [
254
257
  e,
255
- /* @__PURE__ */ T(A, {
258
+ /* @__PURE__ */ C(k, {
256
259
  variant: "title",
257
260
  style: M.title,
258
261
  children: n
259
262
  }),
260
- r && /* @__PURE__ */ T(A, {
263
+ r && /* @__PURE__ */ C(k, {
261
264
  variant: "body",
262
265
  color: t.fg.secondary,
263
266
  style: M.description,
264
267
  children: r
265
268
  }),
266
- i && a && /* @__PURE__ */ T(C, {
269
+ i && a && /* @__PURE__ */ C(x, {
267
270
  style: M.action,
268
- children: /* @__PURE__ */ T(oe, {
271
+ children: /* @__PURE__ */ C(se, {
269
272
  variant: "secondary",
270
273
  onPress: a,
271
274
  children: i
@@ -274,7 +277,7 @@ function fe({ icon: e, title: n, description: r, actionLabel: i, onAction: a })
274
277
  ]
275
278
  });
276
279
  }
277
- var M = b.create({
280
+ var M = y.create({
278
281
  container: {
279
282
  alignItems: "center",
280
283
  justifyContent: "center",
@@ -289,37 +292,37 @@ var M = b.create({
289
292
  textAlign: "center"
290
293
  },
291
294
  action: { marginTop: 16 }
292
- }), pe = {
295
+ }), me = {
293
296
  sm: 32,
294
297
  md: 40,
295
298
  lg: 48
296
- }, me = {
299
+ }, he = {
297
300
  base: { backgroundColor: t.sf.base },
298
301
  primary: { backgroundColor: t.primary["600-A08"] },
299
302
  outline: {
300
303
  borderWidth: 1,
301
304
  borderColor: t.sf.base
302
305
  }
303
- }, he = {
306
+ }, ge = {
304
307
  base: { backgroundColor: t.neutral["800-A08"] },
305
308
  primary: { backgroundColor: t.primary[50] },
306
309
  outline: { backgroundColor: t.sf.tertiaryHover }
307
310
  };
308
311
  function N({ children: e, size: t = "md", variant: n = "base", disabled: r = !1, hitSlop: i = 10, ...a }) {
309
- let o = pe[t], s = {
312
+ let o = me[t], s = {
310
313
  width: o,
311
314
  height: o,
312
315
  borderRadius: o / 2,
313
316
  alignItems: "center",
314
317
  justifyContent: "center"
315
318
  };
316
- return /* @__PURE__ */ T(v, {
319
+ return /* @__PURE__ */ C(_, {
317
320
  accessibilityRole: "button",
318
321
  ...a,
319
322
  style: ({ pressed: e }) => [
320
323
  s,
321
- me[n],
322
- e && he[n],
324
+ he[n],
325
+ e && ge[n],
323
326
  r && { opacity: .4 }
324
327
  ],
325
328
  disabled: r,
@@ -329,153 +332,82 @@ function N({ children: e, size: t = "md", variant: n = "base", disabled: r = !1,
329
332
  }
330
333
  //#endregion
331
334
  //#region src/components/Input/Input.native.tsx
332
- var P = b.create({
333
- container: { marginBottom: 8 },
334
- fieldContainer: {
335
- height: 49,
336
- paddingHorizontal: 12,
337
- borderRadius: 12,
338
- flexDirection: "row",
339
- alignItems: "center",
340
- backgroundColor: t.bg.secondary,
341
- borderWidth: 2,
342
- borderColor: t.bg.tertiary
343
- },
344
- fieldContainerError: { borderColor: t.fg.accent.error },
345
- fieldContainerFocused: { borderColor: t.fg.base },
346
- fieldContainerFocusedError: { borderColor: t.fg.accent.error },
347
- formGroup: {
348
- position: "relative",
349
- paddingVertical: 14,
350
- flex: 1,
351
- height: "100%",
352
- justifyContent: "center"
353
- },
335
+ function _e({ label: e, value: n = "", onChange: r, onFocus: i, onBlur: a, error: o, helperText: s, placeholder: c, secureTextEntry: l = !1, keyboardType: u, autoCapitalize: d, autoComplete: f, autoCorrect: p, textContentType: m, editable: h = !0, multiline: g = !1, numberOfLines: _, currency: v = !1, prefix: y }) {
336
+ return /* @__PURE__ */ w(x, {
337
+ style: P.container,
338
+ children: [/* @__PURE__ */ C(O, {
339
+ label: e,
340
+ value: n,
341
+ onChangeText: r,
342
+ onFocus: i,
343
+ onBlur: a,
344
+ error: !!o,
345
+ editable: h,
346
+ mode: "outlined",
347
+ placeholder: c,
348
+ keyboardType: u ?? (v ? "numeric" : "default"),
349
+ secureTextEntry: l,
350
+ autoCapitalize: d,
351
+ autoComplete: f,
352
+ autoCorrect: p,
353
+ textContentType: m,
354
+ multiline: g,
355
+ numberOfLines: _,
356
+ left: v ? /* @__PURE__ */ C(O.Affix, { text: "€" }) : y ? /* @__PURE__ */ C(O.Affix, { text: y }) : void 0,
357
+ style: [P.input, g && P.inputMultiline],
358
+ outlineStyle: [P.outline, o && P.outlineError],
359
+ theme: { colors: {
360
+ primary: t.fg.base,
361
+ error: t.fg.accent.error,
362
+ onSurfaceVariant: t.fg.tertiary,
363
+ onSurface: t.primary[900]
364
+ } },
365
+ contentStyle: P.content,
366
+ textColor: t.primary[900]
367
+ }), (o || s) && /* @__PURE__ */ C(te, {
368
+ type: o ? "error" : "info",
369
+ visible: !!(o || s),
370
+ style: P.helperText,
371
+ children: o || s
372
+ })]
373
+ });
374
+ }
375
+ var P = y.create({
376
+ container: { width: "100%" },
354
377
  input: {
355
- width: "100%",
356
- paddingTop: 4,
357
- backgroundColor: "transparent",
358
- fontFamily: i.body.fontFamily,
378
+ backgroundColor: t.bg.secondary,
359
379
  fontSize: 15,
360
- fontWeight: "500",
361
- color: t.primary[900],
362
- paddingBottom: 0
380
+ minHeight: 49
363
381
  },
364
- label: {
365
- position: "absolute",
366
- left: 0,
367
- fontFamily: i.body.fontFamily,
368
- fontSize: 15,
369
- fontWeight: "500",
370
- color: t.fg.tertiary
382
+ inputMultiline: { textAlignVertical: "top" },
383
+ outline: {
384
+ borderRadius: 12,
385
+ borderWidth: 2,
386
+ borderColor: t.bg.tertiary
371
387
  },
372
- currencyPrefix: {
388
+ outlineError: { borderColor: t.fg.accent.error },
389
+ content: { fontFamily: i.body.fontFamily },
390
+ helperText: {
373
391
  fontFamily: i.body.fontFamily,
374
- fontSize: 15,
375
- fontWeight: "400",
376
- color: t.fg.secondary,
377
- marginRight: 4,
378
- alignSelf: "center"
379
- },
380
- prefixContainer: {
381
- alignSelf: "center",
382
- justifyContent: "center"
383
- },
384
- fieldDivider: {
385
- width: 1,
386
- height: 21,
387
- backgroundColor: t.neutral["800-A08"],
388
- marginHorizontal: 8
389
- },
390
- labelFloating: {
391
- top: 2,
392
- fontSize: 12,
393
- color: t.fg.secondary
394
- },
395
- labelNormal: {
396
- top: "50%",
397
- transform: [{ translateY: -7.5 }]
398
- },
399
- helper: {
400
- marginTop: 4,
401
- fontSize: 12,
402
- paddingHorizontal: 4
403
- },
404
- helperError: { color: t.fg.accent.error },
405
- helperNormal: { color: t.fg.secondary }
406
- });
407
- function ge({ label: e, value: n = "", onChange: r, error: i, helperText: a, placeholder: o, secureTextEntry: s = !1, keyboardType: c, autoCapitalize: l = "sentences", editable: u = !0, multiline: d = !1, numberOfLines: p = 1, currency: m = !1, prefix: h, ...g }) {
408
- let [_, v] = f(!1), y = n.length > 0, S = _ || y || m, D = [
409
- P.fieldContainer,
410
- i && P.fieldContainerError,
411
- _ && !i && P.fieldContainerFocused,
412
- _ && i && P.fieldContainerFocusedError
413
- ], O = [P.label, S ? P.labelFloating : P.labelNormal], k = b.flatten([P.input, d && {
414
- height: p * 20,
415
- textAlignVertical: "top"
416
- }]);
417
- return /* @__PURE__ */ E(C, {
418
- style: P.container,
419
- children: [/* @__PURE__ */ E(C, {
420
- style: D,
421
- children: [
422
- m && /* @__PURE__ */ T(x, {
423
- style: P.currencyPrefix,
424
- children: "€"
425
- }),
426
- h && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(C, {
427
- style: P.prefixContainer,
428
- children: h
429
- }), /* @__PURE__ */ T(C, { style: P.fieldDivider })] }),
430
- /* @__PURE__ */ E(C, {
431
- style: P.formGroup,
432
- children: [/* @__PURE__ */ T(ee, {
433
- style: k,
434
- value: n,
435
- onChangeText: r,
436
- onFocus: () => v(!0),
437
- onBlur: () => v(!1),
438
- placeholder: S ? o : "",
439
- placeholderTextColor: t.fg.tertiary,
440
- secureTextEntry: s,
441
- keyboardType: c ?? (m ? "numeric" : "default"),
442
- autoCapitalize: l,
443
- editable: u,
444
- multiline: d,
445
- numberOfLines: p,
446
- ...g
447
- }), /* @__PURE__ */ T(x, {
448
- style: O,
449
- pointerEvents: "none",
450
- children: e
451
- })]
452
- })
453
- ]
454
- }), (i || a) && /* @__PURE__ */ T(x, {
455
- style: [P.helper, i ? P.helperError : P.helperNormal],
456
- children: i || a
457
- })]
458
- });
459
- }
460
- //#endregion
461
- //#region src/components/Letter/Letter.native.tsx
462
- var _e = 96 / 25.4, ve = 96 / 72, F = (e, t) => e * _e * t, I = (e, t) => e * ve * t, L = i.body.fontFamily, R = (e) => (e ?? "").replace(/<br\s*\/?>/gi, "\n").replace(/<[^>]+>/g, ""), ye = c(1);
392
+ fontSize: 12
393
+ }
394
+ }), ve = 96 / 25.4, ye = 96 / 72, F = (e, t) => e * ve * t, I = (e, t) => e * ye * t, L = i.body.fontFamily, R = (e) => (e ?? "").replace(/<br\s*\/?>/gi, "\n").replace(/<[^>]+>/g, ""), be = c(1);
463
395
  function z(e) {
464
- let t = l(ye);
396
+ let t = l(be);
465
397
  return e ?? t;
466
398
  }
467
- function be({ children: e }) {
468
- return /* @__PURE__ */ T(w, { children: e || "Date" });
469
- }
470
399
  function xe({ children: e }) {
471
- return /* @__PURE__ */ T(w, { children: e || "Sehr geehrte Damen und Herren" });
400
+ return /* @__PURE__ */ C(S, { children: e || "Date" });
472
401
  }
473
402
  function Se({ children: e }) {
474
- return /* @__PURE__ */ T(w, { children: e || "Mit freundlichen Grüßen" });
403
+ return /* @__PURE__ */ C(S, { children: e || "Sehr geehrte Damen und Herren" });
475
404
  }
476
- function Ce({ address: e, children: n, scale: r }) {
405
+ function Ce({ children: e }) {
406
+ return /* @__PURE__ */ C(S, { children: e || "Mit freundlichen Grüßen" });
407
+ }
408
+ function we({ address: e, children: n, scale: r }) {
477
409
  let i = z(r);
478
- return !n && !e ? null : /* @__PURE__ */ T(x, {
410
+ return !n && !e ? null : /* @__PURE__ */ C(b, {
479
411
  style: {
480
412
  position: "absolute",
481
413
  top: F(45, i),
@@ -490,9 +422,9 @@ function Ce({ address: e, children: n, scale: r }) {
490
422
  children: n || R(e)
491
423
  });
492
424
  }
493
- function we({ address: e, children: n, scale: r }) {
425
+ function Te({ address: e, children: n, scale: r }) {
494
426
  let i = z(r);
495
- return /* @__PURE__ */ T(x, {
427
+ return /* @__PURE__ */ C(b, {
496
428
  style: {
497
429
  position: "absolute",
498
430
  top: F(72, i),
@@ -507,9 +439,9 @@ function we({ address: e, children: n, scale: r }) {
507
439
  children: n || R(e)
508
440
  });
509
441
  }
510
- function Te({ address: e, children: n, scale: r }) {
442
+ function Ee({ address: e, children: n, scale: r }) {
511
443
  let i = z(r);
512
- return /* @__PURE__ */ T(x, {
444
+ return /* @__PURE__ */ C(b, {
513
445
  style: {
514
446
  position: "absolute",
515
447
  top: F(20, i),
@@ -524,23 +456,23 @@ function Te({ address: e, children: n, scale: r }) {
524
456
  children: n || R(e)
525
457
  });
526
458
  }
527
- var Ee = [
459
+ var De = [
528
460
  195.7333333333,
529
461
  185.149999999,
530
462
  174.566666665,
531
463
  163.983333331
532
464
  ];
533
- function De({ identificationFields: e = [], children: n, scale: r }) {
465
+ function Oe({ identificationFields: e = [], children: n, scale: r }) {
534
466
  let i = z(r);
535
- return !n && e.length === 0 ? null : n ? /* @__PURE__ */ T(w, { children: n }) : /* @__PURE__ */ T(w, { children: e.slice(0, Ee.length).map((e, n) => /* @__PURE__ */ T(C, {
467
+ return !n && e.length === 0 ? null : n ? /* @__PURE__ */ C(S, { children: n }) : /* @__PURE__ */ C(S, { children: e.slice(0, De.length).map((e, n) => /* @__PURE__ */ C(x, {
536
468
  style: {
537
469
  position: "absolute",
538
470
  right: F(15, i),
539
471
  width: F(95.25, i),
540
472
  height: F(42.9166666667, i),
541
- bottom: F(Ee[n], i)
473
+ bottom: F(De[n], i)
542
474
  },
543
- children: /* @__PURE__ */ E(x, {
475
+ children: /* @__PURE__ */ w(b, {
544
476
  style: {
545
477
  textAlign: "right",
546
478
  fontFamily: L,
@@ -551,7 +483,7 @@ function De({ identificationFields: e = [], children: n, scale: r }) {
551
483
  children: [
552
484
  e.label,
553
485
  "\n",
554
- /* @__PURE__ */ T(x, {
486
+ /* @__PURE__ */ C(b, {
555
487
  style: { fontWeight: "bold" },
556
488
  children: e.value
557
489
  })
@@ -559,9 +491,9 @@ function De({ identificationFields: e = [], children: n, scale: r }) {
559
491
  })
560
492
  }, n)) });
561
493
  }
562
- function Oe({ date: e, children: n, scale: r }) {
494
+ function ke({ date: e, children: n, scale: r }) {
563
495
  let i = z(r);
564
- return !n && !e ? null : /* @__PURE__ */ T(x, {
496
+ return !n && !e ? null : /* @__PURE__ */ C(b, {
565
497
  style: {
566
498
  position: "absolute",
567
499
  right: F(15, i),
@@ -574,24 +506,24 @@ function Oe({ date: e, children: n, scale: r }) {
574
506
  lineHeight: I(10 * 1.22, i),
575
507
  color: t.black
576
508
  },
577
- children: n || /* @__PURE__ */ E(w, { children: [
578
- /* @__PURE__ */ T(be, {}),
509
+ children: n || /* @__PURE__ */ w(S, { children: [
510
+ /* @__PURE__ */ C(xe, {}),
579
511
  ": ",
580
512
  e
581
513
  ] })
582
514
  });
583
515
  }
584
- function ke({ letterSubject: e, letterText: n, userFullName: r, children: i, scale: a }) {
516
+ function Ae({ letterSubject: e, letterText: n, userFullName: r, children: i, scale: a }) {
585
517
  let o = z(a);
586
- return /* @__PURE__ */ T(C, {
518
+ return /* @__PURE__ */ C(x, {
587
519
  style: {
588
520
  position: "absolute",
589
521
  top: F(105, o),
590
522
  left: F(15, o),
591
523
  width: F(175, o)
592
524
  },
593
- children: i || /* @__PURE__ */ E(w, { children: [
594
- /* @__PURE__ */ T(x, {
525
+ children: i || /* @__PURE__ */ w(S, { children: [
526
+ /* @__PURE__ */ C(b, {
595
527
  style: {
596
528
  fontFamily: L,
597
529
  fontSize: I(10, o),
@@ -600,16 +532,16 @@ function ke({ letterSubject: e, letterText: n, userFullName: r, children: i, sca
600
532
  },
601
533
  children: e
602
534
  }),
603
- /* @__PURE__ */ E(x, {
535
+ /* @__PURE__ */ w(b, {
604
536
  style: {
605
537
  marginVertical: F(5.2916666667, o),
606
538
  fontFamily: L,
607
539
  fontSize: I(10, o),
608
540
  color: t.black
609
541
  },
610
- children: [/* @__PURE__ */ T(xe, {}), ","]
542
+ children: [/* @__PURE__ */ C(Se, {}), ","]
611
543
  }),
612
- /* @__PURE__ */ T(x, {
544
+ /* @__PURE__ */ C(b, {
613
545
  style: {
614
546
  fontFamily: L,
615
547
  fontSize: I(10, o),
@@ -618,16 +550,16 @@ function ke({ letterSubject: e, letterText: n, userFullName: r, children: i, sca
618
550
  },
619
551
  children: R(n)
620
552
  }),
621
- /* @__PURE__ */ T(x, {
553
+ /* @__PURE__ */ C(b, {
622
554
  style: {
623
555
  marginVertical: F(5.2916666667, o),
624
556
  fontFamily: L,
625
557
  fontSize: I(10, o),
626
558
  color: t.black
627
559
  },
628
- children: /* @__PURE__ */ T(Se, {})
560
+ children: /* @__PURE__ */ C(Ce, {})
629
561
  }),
630
- /* @__PURE__ */ T(x, {
562
+ /* @__PURE__ */ C(b, {
631
563
  style: {
632
564
  marginVertical: F(5.2916666667, o),
633
565
  fontFamily: L,
@@ -639,22 +571,22 @@ function ke({ letterSubject: e, letterText: n, userFullName: r, children: i, sca
639
571
  ] })
640
572
  });
641
573
  }
642
- function Ae({ senderAddressSlim: e, vendorAddress: n, senderAddress: r, identificationFields: i = [], date: a, letterSubject: o, letterText: s, userFullName: c, scale: l = 1, children: u }) {
643
- return /* @__PURE__ */ T(ye.Provider, {
574
+ function je({ senderAddressSlim: e, vendorAddress: n, senderAddress: r, identificationFields: i = [], date: a, letterSubject: o, letterText: s, userFullName: c, scale: l = 1, children: u }) {
575
+ return /* @__PURE__ */ C(be.Provider, {
644
576
  value: l,
645
- children: /* @__PURE__ */ T(C, {
577
+ children: /* @__PURE__ */ C(x, {
646
578
  style: {
647
579
  width: F(210, l),
648
580
  height: F(297, l),
649
581
  backgroundColor: t.white
650
582
  },
651
- children: u || /* @__PURE__ */ E(w, { children: [
652
- /* @__PURE__ */ T(Ce, { address: e }),
653
- /* @__PURE__ */ T(we, { address: n }),
654
- /* @__PURE__ */ T(Te, { address: r }),
655
- /* @__PURE__ */ T(De, { identificationFields: i }),
656
- /* @__PURE__ */ T(Oe, { date: a }),
657
- /* @__PURE__ */ T(ke, {
583
+ children: u || /* @__PURE__ */ w(S, { children: [
584
+ /* @__PURE__ */ C(we, { address: e }),
585
+ /* @__PURE__ */ C(Te, { address: n }),
586
+ /* @__PURE__ */ C(Ee, { address: r }),
587
+ /* @__PURE__ */ C(Oe, { identificationFields: i }),
588
+ /* @__PURE__ */ C(ke, { date: a }),
589
+ /* @__PURE__ */ C(Ae, {
658
590
  letterSubject: o,
659
591
  letterText: s,
660
592
  userFullName: c
@@ -665,9 +597,9 @@ function Ae({ senderAddressSlim: e, vendorAddress: n, senderAddress: r, identifi
665
597
  }
666
598
  //#endregion
667
599
  //#region src/components/MenuItem/MenuItem.native.tsx
668
- function je({ label: e, onPress: n, icon: r, destructive: i = !1, loading: a = !1, disabled: o = !1 }) {
600
+ function Me({ label: e, onPress: n, icon: r, destructive: i = !1, loading: a = !1, disabled: o = !1 }) {
669
601
  let s = i ? t.fg.accent.error : t.fg.accent.action;
670
- return /* @__PURE__ */ E(v, {
602
+ return /* @__PURE__ */ w(_, {
671
603
  accessibilityRole: "menuitem",
672
604
  accessibilityState: { disabled: o || a },
673
605
  onPress: n,
@@ -675,20 +607,20 @@ function je({ label: e, onPress: n, icon: r, destructive: i = !1, loading: a = !
675
607
  style: [B.row, (o || a) && B.disabled],
676
608
  children: [
677
609
  r,
678
- /* @__PURE__ */ T(A, {
610
+ /* @__PURE__ */ C(k, {
679
611
  variant: "label",
680
612
  color: s,
681
613
  style: B.label,
682
614
  children: e
683
615
  }),
684
- a && /* @__PURE__ */ T(j, {
616
+ a && /* @__PURE__ */ C(j, {
685
617
  size: 18,
686
618
  color: s
687
619
  })
688
620
  ]
689
621
  });
690
622
  }
691
- var B = b.create({
623
+ var B = y.create({
692
624
  row: {
693
625
  flexDirection: "row",
694
626
  alignItems: "center",
@@ -701,8 +633,8 @@ var B = b.create({
701
633
  });
702
634
  //#endregion
703
635
  //#region src/components/RadioCard/RadioCard.native.tsx
704
- function Me({ selected: e, onSelect: n, icon: r, title: i, description: o, trailing: s, disabled: c = !1 }) {
705
- return /* @__PURE__ */ E(v, {
636
+ function Ne({ selected: e, onSelect: n, icon: r, title: i, description: o, trailing: s, disabled: c = !1 }) {
637
+ return /* @__PURE__ */ w(_, {
706
638
  accessibilityRole: "radio",
707
639
  accessibilityState: {
708
640
  checked: e,
@@ -715,26 +647,26 @@ function Me({ selected: e, onSelect: n, icon: r, title: i, description: o, trail
715
647
  e && V.cardSelected,
716
648
  c && V.cardDisabled
717
649
  ],
718
- children: [/* @__PURE__ */ T(C, {
650
+ children: [/* @__PURE__ */ C(x, {
719
651
  style: [V.indicator, e && V.indicatorSelected],
720
- children: e && /* @__PURE__ */ T(a, {
652
+ children: e && /* @__PURE__ */ C(a, {
721
653
  size: "small",
722
654
  color: t.white
723
655
  })
724
- }), /* @__PURE__ */ E(C, {
656
+ }), /* @__PURE__ */ w(x, {
725
657
  style: V.content,
726
- children: [/* @__PURE__ */ E(C, {
658
+ children: [/* @__PURE__ */ w(x, {
727
659
  style: V.titleRow,
728
660
  children: [
729
661
  r,
730
- /* @__PURE__ */ T(A, {
662
+ /* @__PURE__ */ C(k, {
731
663
  variant: "label",
732
664
  style: V.title,
733
665
  children: i
734
666
  }),
735
667
  s
736
668
  ]
737
- }), o && /* @__PURE__ */ T(A, {
669
+ }), o && /* @__PURE__ */ C(k, {
738
670
  variant: "body",
739
671
  color: t.fg.secondary,
740
672
  children: o
@@ -742,7 +674,7 @@ function Me({ selected: e, onSelect: n, icon: r, title: i, description: o, trail
742
674
  })]
743
675
  });
744
676
  }
745
- var V = b.create({
677
+ var V = y.create({
746
678
  card: {
747
679
  minHeight: 110,
748
680
  width: "100%",
@@ -787,15 +719,15 @@ var V = b.create({
787
719
  });
788
720
  //#endregion
789
721
  //#region src/components/Select/Select.native.tsx
790
- function Ne({ label: e, value: r, onChange: i, options: a, error: o, disabled: s = !1 }) {
722
+ function Pe({ label: e, value: r, onChange: i, options: a, error: o, disabled: s = !1 }) {
791
723
  let [c, l] = f(!1);
792
724
  u(() => {
793
725
  a.length === 1 && !r && i(a[0].value);
794
726
  }, [a, r]);
795
727
  let d = a.find((e) => e.value === r), p = o ? t.fg.accent.error : c ? t.fg.base : t.bg.tertiary;
796
- return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E(C, {
728
+ return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(x, {
797
729
  style: H.container,
798
- children: [/* @__PURE__ */ E(v, {
730
+ children: [/* @__PURE__ */ w(_, {
799
731
  style: [
800
732
  H.trigger,
801
733
  { borderColor: p },
@@ -809,47 +741,47 @@ function Ne({ label: e, value: r, onChange: i, options: a, error: o, disabled: s
809
741
  expanded: c,
810
742
  disabled: s
811
743
  },
812
- children: [/* @__PURE__ */ E(C, {
744
+ children: [/* @__PURE__ */ w(x, {
813
745
  style: H.triggerContent,
814
- children: [/* @__PURE__ */ T(x, {
746
+ children: [/* @__PURE__ */ C(b, {
815
747
  style: [H.labelText, d && H.labelFloating],
816
748
  children: e
817
- }), d && /* @__PURE__ */ T(x, {
749
+ }), d && /* @__PURE__ */ C(b, {
818
750
  style: H.valueText,
819
751
  numberOfLines: 1,
820
752
  children: d.text
821
753
  })]
822
- }), /* @__PURE__ */ T(n, {
754
+ }), /* @__PURE__ */ C(n, {
823
755
  direction: "down",
824
756
  color: t.fg.secondary,
825
757
  size: "small"
826
758
  })]
827
- }), o && /* @__PURE__ */ T(x, {
759
+ }), o && /* @__PURE__ */ C(b, {
828
760
  style: H.errorText,
829
761
  children: o
830
762
  })]
831
- }), /* @__PURE__ */ T(g, {
763
+ }), /* @__PURE__ */ C(h, {
832
764
  visible: c,
833
765
  transparent: !0,
834
766
  animationType: "fade",
835
767
  onRequestClose: () => l(!1),
836
- children: /* @__PURE__ */ T(v, {
768
+ children: /* @__PURE__ */ C(_, {
837
769
  style: H.backdrop,
838
770
  onPress: () => l(!1),
839
- children: /* @__PURE__ */ E(C, {
771
+ children: /* @__PURE__ */ w(x, {
840
772
  style: H.sheet,
841
- children: [/* @__PURE__ */ T(C, { style: H.sheetHandle }), /* @__PURE__ */ T(y, {
773
+ children: [/* @__PURE__ */ C(x, { style: H.sheetHandle }), /* @__PURE__ */ C(v, {
842
774
  bounces: !1,
843
775
  children: a.map((e) => {
844
776
  let t = e.value === r;
845
- return /* @__PURE__ */ T(v, {
777
+ return /* @__PURE__ */ C(_, {
846
778
  style: [H.option, t && H.optionActive],
847
779
  onPress: () => {
848
780
  i(e.value), l(!1);
849
781
  },
850
782
  accessibilityRole: "menuitem",
851
783
  accessibilityState: { selected: t },
852
- children: /* @__PURE__ */ T(x, {
784
+ children: /* @__PURE__ */ C(b, {
853
785
  style: [H.optionText, t && H.optionTextActive],
854
786
  children: e.text
855
787
  })
@@ -860,7 +792,7 @@ function Ne({ label: e, value: r, onChange: i, options: a, error: o, disabled: s
860
792
  })
861
793
  })] });
862
794
  }
863
- var H = b.create({
795
+ var H = y.create({
864
796
  container: { marginBottom: 8 },
865
797
  trigger: {
866
798
  height: 50,
@@ -939,52 +871,66 @@ var H = b.create({
939
871
  });
940
872
  //#endregion
941
873
  //#region src/components/Sheet/Sheet.native.tsx
942
- function Pe({ open: r, onClose: i, onGoBack: a, title: o, children: s, footer: c, background: l, headerBackgroundColor: u }) {
943
- let d = te();
944
- return /* @__PURE__ */ T(g, {
874
+ function Fe({ open: r, onClose: i, onDismiss: a, onGoBack: o, title: s, children: c, footer: l, background: f, headerBackgroundColor: p, closeDisabled: m }) {
875
+ let _ = re(), b = d(r);
876
+ return u(() => {
877
+ let e = b.current;
878
+ if (b.current = r, g.OS === "android" && e && !r) {
879
+ let e = setTimeout(() => a?.(), 300);
880
+ return () => clearTimeout(e);
881
+ }
882
+ }, [r, a]), /* @__PURE__ */ C(h, {
945
883
  visible: r,
946
884
  animationType: "slide",
947
885
  presentationStyle: "pageSheet",
948
- onRequestClose: i,
949
- children: /* @__PURE__ */ T(h, {
886
+ onRequestClose: () => {
887
+ m || i();
888
+ },
889
+ onDismiss: g.OS === "ios" ? a : void 0,
890
+ children: /* @__PURE__ */ C(ne, {
950
891
  style: U.flex,
951
- behavior: _.OS === "ios" ? "padding" : void 0,
952
- children: /* @__PURE__ */ E(C, {
953
- style: [U.container, { paddingTop: Math.max(d.top, 16) }],
892
+ behavior: "padding",
893
+ automaticOffset: !0,
894
+ children: /* @__PURE__ */ w(x, {
895
+ style: [U.container, {
896
+ paddingTop: Math.max(_.top, 16),
897
+ paddingBottom: _.bottom
898
+ }],
954
899
  children: [
955
- l && /* @__PURE__ */ T(C, {
956
- style: b.absoluteFillObject,
957
- children: l
900
+ f && /* @__PURE__ */ C(x, {
901
+ style: y.absoluteFillObject,
902
+ children: f
958
903
  }),
959
- /* @__PURE__ */ E(C, {
960
- style: [U.header, u ? { backgroundColor: u } : void 0],
904
+ /* @__PURE__ */ w(x, {
905
+ style: [U.header, p ? { backgroundColor: p } : void 0],
961
906
  children: [
962
- /* @__PURE__ */ T(C, {
907
+ /* @__PURE__ */ C(x, {
963
908
  style: U.headerSide,
964
- children: a && /* @__PURE__ */ T(N, {
909
+ children: o && /* @__PURE__ */ C(N, {
965
910
  variant: "base",
966
911
  size: "md",
967
912
  accessibilityLabel: "Go back",
968
- onPress: a,
969
- children: /* @__PURE__ */ T(n, {
913
+ onPress: o,
914
+ children: /* @__PURE__ */ C(n, {
970
915
  color: t.fg.secondary,
971
916
  direction: "left"
972
917
  })
973
918
  })
974
919
  }),
975
- o ? /* @__PURE__ */ T(A, {
920
+ s ? /* @__PURE__ */ C(k, {
976
921
  variant: "heading",
977
922
  style: U.headerTitle,
978
- children: o
979
- }) : /* @__PURE__ */ T(C, { style: U.flex }),
980
- /* @__PURE__ */ T(C, {
923
+ children: s
924
+ }) : /* @__PURE__ */ C(x, { style: U.flex }),
925
+ /* @__PURE__ */ C(x, {
981
926
  style: [U.headerSide, U.headerSideRight],
982
- children: /* @__PURE__ */ T(N, {
927
+ children: /* @__PURE__ */ C(N, {
983
928
  variant: "base",
984
929
  size: "md",
985
930
  accessibilityLabel: "Close",
986
931
  onPress: i,
987
- children: /* @__PURE__ */ T(e, {
932
+ disabled: m,
933
+ children: /* @__PURE__ */ C(e, {
988
934
  color: t.fg.secondary,
989
935
  size: "small"
990
936
  })
@@ -992,21 +938,23 @@ function Pe({ open: r, onClose: i, onGoBack: a, title: o, children: s, footer: c
992
938
  })
993
939
  ]
994
940
  }),
995
- /* @__PURE__ */ T(y, {
941
+ /* @__PURE__ */ C(v, {
996
942
  style: U.flex,
997
943
  contentContainerStyle: U.body,
998
- children: s
944
+ keyboardDismissMode: "on-drag",
945
+ keyboardShouldPersistTaps: "handled",
946
+ children: c
999
947
  }),
1000
- c && /* @__PURE__ */ T(C, {
948
+ l && /* @__PURE__ */ C(x, {
1001
949
  style: U.footer,
1002
- children: c
950
+ children: l
1003
951
  })
1004
952
  ]
1005
953
  })
1006
954
  })
1007
955
  });
1008
956
  }
1009
- var U = b.create({
957
+ var U = y.create({
1010
958
  flex: { flex: 1 },
1011
959
  container: {
1012
960
  flex: 1,
@@ -1026,6 +974,7 @@ var U = b.create({
1026
974
  textAlign: "center"
1027
975
  },
1028
976
  body: {
977
+ flexGrow: 1,
1029
978
  paddingHorizontal: 20,
1030
979
  paddingBottom: 20
1031
980
  },
@@ -1035,14 +984,14 @@ var U = b.create({
1035
984
  borderTopWidth: 1,
1036
985
  borderTopColor: t.border.default
1037
986
  }
1038
- }), W = 24, G = 8, K = 12, Fe = 2 * Math.PI * G, Ie = p.createAnimatedComponent(D);
1039
- function Le() {
1040
- return /* @__PURE__ */ T(k, {
987
+ }), W = 24, G = 8, K = 12, Ie = 2 * Math.PI * G, Le = p.createAnimatedComponent(T);
988
+ function Re() {
989
+ return /* @__PURE__ */ C(D, {
1041
990
  width: W,
1042
991
  height: W,
1043
992
  viewBox: "0 0 24 24",
1044
993
  fill: "none",
1045
- children: /* @__PURE__ */ T(D, {
994
+ children: /* @__PURE__ */ C(T, {
1046
995
  cx: K,
1047
996
  cy: K,
1048
997
  r: G,
@@ -1052,7 +1001,7 @@ function Le() {
1052
1001
  })
1053
1002
  });
1054
1003
  }
1055
- function Re({ durationMs: e = 1500 }) {
1004
+ function ze({ durationMs: e = 1500 }) {
1056
1005
  let n = d(new p.Value(0)).current;
1057
1006
  u(() => {
1058
1007
  n.setValue(0);
@@ -1065,28 +1014,28 @@ function Re({ durationMs: e = 1500 }) {
1065
1014
  }, [n, e]);
1066
1015
  let r = n.interpolate({
1067
1016
  inputRange: [0, 1],
1068
- outputRange: [Fe, 0]
1017
+ outputRange: [Ie, 0]
1069
1018
  });
1070
- return /* @__PURE__ */ E(k, {
1019
+ return /* @__PURE__ */ w(D, {
1071
1020
  width: W,
1072
1021
  height: W,
1073
1022
  viewBox: "0 0 24 24",
1074
1023
  fill: "none",
1075
- children: [/* @__PURE__ */ T(D, {
1024
+ children: [/* @__PURE__ */ C(T, {
1076
1025
  cx: K,
1077
1026
  cy: K,
1078
1027
  r: G,
1079
1028
  stroke: t.neutral["800-A16"],
1080
1029
  strokeWidth: 3,
1081
1030
  fill: "none"
1082
- }), /* @__PURE__ */ T(Ie, {
1031
+ }), /* @__PURE__ */ C(Le, {
1083
1032
  cx: K,
1084
1033
  cy: K,
1085
1034
  r: G,
1086
1035
  stroke: t.fg.accent.action,
1087
1036
  strokeWidth: 3,
1088
1037
  fill: "none",
1089
- strokeDasharray: Fe,
1038
+ strokeDasharray: Ie,
1090
1039
  strokeDashoffset: r,
1091
1040
  strokeLinecap: "round",
1092
1041
  rotation: "-90",
@@ -1094,44 +1043,46 @@ function Re({ durationMs: e = 1500 }) {
1094
1043
  })]
1095
1044
  });
1096
1045
  }
1097
- function ze({ state: e, mode: n = "determinate", durationMs: i }) {
1046
+ function Be({ state: e, mode: n = "determinate", durationMs: i }) {
1098
1047
  switch (e) {
1099
- case "pending": return /* @__PURE__ */ T(Le, {});
1100
- case "loading": return n === "indeterminate" ? /* @__PURE__ */ T(j, {
1048
+ case "pending": return /* @__PURE__ */ C(Re, {});
1049
+ case "loading": return n === "indeterminate" ? /* @__PURE__ */ C(j, {
1101
1050
  size: W,
1102
1051
  color: t.fg.accent.action,
1103
- trackColor: t.neutral["800-A16"]
1104
- }) : /* @__PURE__ */ T(Re, { durationMs: i });
1105
- case "complete": return /* @__PURE__ */ T(a, {
1052
+ trackColor: t.neutral["800-A16"],
1053
+ duration: i
1054
+ }) : /* @__PURE__ */ C(ze, { durationMs: i });
1055
+ case "complete": return /* @__PURE__ */ C(a, {
1106
1056
  size: W,
1107
1057
  color: t.fg.accent.action
1108
1058
  });
1109
- case "error": return /* @__PURE__ */ T(r, {
1059
+ case "error": return /* @__PURE__ */ C(r, {
1110
1060
  size: W,
1111
1061
  color: t.fg.accent.error
1112
1062
  });
1113
1063
  }
1114
1064
  }
1115
- function Be({ steps: e }) {
1116
- return /* @__PURE__ */ T(C, {
1065
+ function Ve({ steps: e }) {
1066
+ return /* @__PURE__ */ C(x, {
1117
1067
  style: q.container,
1118
- children: e.map((e, t) => /* @__PURE__ */ E(C, {
1068
+ children: e.map((e, n) => /* @__PURE__ */ w(x, {
1119
1069
  style: q.row,
1120
- children: [/* @__PURE__ */ T(C, {
1070
+ children: [/* @__PURE__ */ C(x, {
1121
1071
  style: q.iconSlot,
1122
- children: /* @__PURE__ */ T(ze, {
1072
+ children: /* @__PURE__ */ C(Be, {
1123
1073
  state: e.state,
1124
1074
  mode: e.mode,
1125
1075
  durationMs: e.durationMs
1126
1076
  })
1127
- }), /* @__PURE__ */ T(A, {
1077
+ }), /* @__PURE__ */ C(k, {
1128
1078
  variant: "body",
1079
+ color: e.state === "error" ? t.fg.accent.error : void 0,
1129
1080
  children: e.label
1130
1081
  })]
1131
- }, t))
1082
+ }, n))
1132
1083
  });
1133
1084
  }
1134
- var q = b.create({
1085
+ var q = y.create({
1135
1086
  container: { gap: 12 },
1136
1087
  row: {
1137
1088
  flexDirection: "row",
@@ -1144,24 +1095,24 @@ var q = b.create({
1144
1095
  alignItems: "center",
1145
1096
  justifyContent: "center"
1146
1097
  }
1147
- }), Ve = 1, He = 1e6, J = 0;
1148
- function Ue() {
1098
+ }), He = 1, Ue = 1e6, J = 0;
1099
+ function We() {
1149
1100
  return J = (J + 1) % (2 ** 53 - 1), J.toString();
1150
1101
  }
1151
- var Y = /* @__PURE__ */ new Map(), We = (e) => {
1102
+ var Y = /* @__PURE__ */ new Map(), Ge = (e) => {
1152
1103
  if (Y.has(e)) return;
1153
1104
  let t = setTimeout(() => {
1154
1105
  Y.delete(e), Q({
1155
1106
  type: "REMOVE_TOAST",
1156
1107
  toastId: e
1157
1108
  });
1158
- }, He);
1109
+ }, Ue);
1159
1110
  Y.set(e, t);
1160
- }, Ge = (e, t) => {
1111
+ }, Ke = (e, t) => {
1161
1112
  switch (t.type) {
1162
1113
  case "ADD_TOAST": return {
1163
1114
  ...e,
1164
- toasts: [t.toast, ...e.toasts].slice(0, Ve)
1115
+ toasts: [t.toast, ...e.toasts].slice(0, He)
1165
1116
  };
1166
1117
  case "UPDATE_TOAST": return {
1167
1118
  ...e,
@@ -1172,8 +1123,8 @@ var Y = /* @__PURE__ */ new Map(), We = (e) => {
1172
1123
  };
1173
1124
  case "DISMISS_TOAST": {
1174
1125
  let { toastId: n } = t;
1175
- return n ? We(n) : e.toasts.forEach((e) => {
1176
- We(e.id);
1126
+ return n ? Ge(n) : e.toasts.forEach((e) => {
1127
+ Ge(e.id);
1177
1128
  }), {
1178
1129
  ...e,
1179
1130
  toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
@@ -1192,12 +1143,12 @@ var Y = /* @__PURE__ */ new Map(), We = (e) => {
1192
1143
  }
1193
1144
  }, X = [], Z = { toasts: [] };
1194
1145
  function Q(e) {
1195
- Z = Ge(Z, e), X.forEach((e) => {
1146
+ Z = Ke(Z, e), X.forEach((e) => {
1196
1147
  e(Z);
1197
1148
  });
1198
1149
  }
1199
- function Ke({ ...e }) {
1200
- let t = Ue(), n = (e) => Q({
1150
+ function qe({ ...e }) {
1151
+ let t = We(), n = (e) => Q({
1201
1152
  type: "UPDATE_TOAST",
1202
1153
  toast: {
1203
1154
  ...e,
@@ -1223,14 +1174,14 @@ function Ke({ ...e }) {
1223
1174
  update: n
1224
1175
  };
1225
1176
  }
1226
- function qe() {
1177
+ function Je() {
1227
1178
  let [e, t] = s.useState(Z);
1228
1179
  return s.useEffect(() => (X.push(t), () => {
1229
1180
  let e = X.indexOf(t);
1230
1181
  e > -1 && X.splice(e, 1);
1231
1182
  }), [e]), {
1232
1183
  ...e,
1233
- toast: Ke,
1184
+ toast: qe,
1234
1185
  dismiss: (e) => Q({
1235
1186
  type: "DISMISS_TOAST",
1236
1187
  toastId: e
@@ -1239,13 +1190,13 @@ function qe() {
1239
1190
  }
1240
1191
  //#endregion
1241
1192
  //#region src/icons/toast/Error.native.tsx
1242
- function Je() {
1243
- return /* @__PURE__ */ T(k, {
1193
+ function Ye() {
1194
+ return /* @__PURE__ */ C(D, {
1244
1195
  width: "24",
1245
1196
  height: "24",
1246
1197
  viewBox: "0 0 24 24",
1247
1198
  fill: "none",
1248
- children: /* @__PURE__ */ T(O, {
1199
+ children: /* @__PURE__ */ C(E, {
1249
1200
  fillRule: "evenodd",
1250
1201
  clipRule: "evenodd",
1251
1202
  d: "M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z",
@@ -1255,13 +1206,13 @@ function Je() {
1255
1206
  }
1256
1207
  //#endregion
1257
1208
  //#region src/icons/toast/Info.native.tsx
1258
- function Ye() {
1259
- return /* @__PURE__ */ T(k, {
1209
+ function Xe() {
1210
+ return /* @__PURE__ */ C(D, {
1260
1211
  width: "24",
1261
1212
  height: "24",
1262
1213
  viewBox: "0 0 24 24",
1263
1214
  fill: "none",
1264
- children: /* @__PURE__ */ T(O, {
1215
+ children: /* @__PURE__ */ C(E, {
1265
1216
  fillRule: "evenodd",
1266
1217
  clipRule: "evenodd",
1267
1218
  d: "M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z",
@@ -1271,13 +1222,13 @@ function Ye() {
1271
1222
  }
1272
1223
  //#endregion
1273
1224
  //#region src/icons/toast/Success.native.tsx
1274
- function Xe() {
1275
- return /* @__PURE__ */ T(k, {
1225
+ function Ze() {
1226
+ return /* @__PURE__ */ C(D, {
1276
1227
  width: "24",
1277
1228
  height: "24",
1278
1229
  viewBox: "0 0 24 24",
1279
1230
  fill: "none",
1280
- children: /* @__PURE__ */ T(O, {
1231
+ children: /* @__PURE__ */ C(E, {
1281
1232
  fillRule: "evenodd",
1282
1233
  clipRule: "evenodd",
1283
1234
  d: "M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z",
@@ -1287,13 +1238,13 @@ function Xe() {
1287
1238
  }
1288
1239
  //#endregion
1289
1240
  //#region src/icons/toast/Warning.native.tsx
1290
- function Ze() {
1291
- return /* @__PURE__ */ T(k, {
1241
+ function Qe() {
1242
+ return /* @__PURE__ */ C(D, {
1292
1243
  width: "24",
1293
1244
  height: "24",
1294
1245
  viewBox: "0 0 24 24",
1295
1246
  fill: "none",
1296
- children: /* @__PURE__ */ T(O, {
1247
+ children: /* @__PURE__ */ C(E, {
1297
1248
  fillRule: "evenodd",
1298
1249
  clipRule: "evenodd",
1299
1250
  d: "M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z",
@@ -1303,7 +1254,7 @@ function Ze() {
1303
1254
  }
1304
1255
  //#endregion
1305
1256
  //#region src/components/Toaster/Toaster.native.tsx
1306
- var Qe = {
1257
+ var $e = {
1307
1258
  success: {
1308
1259
  background: t.sf.light.action,
1309
1260
  color: t.fg.accent.action
@@ -1321,17 +1272,17 @@ var Qe = {
1321
1272
  color: t.fg.accent.warning
1322
1273
  }
1323
1274
  };
1324
- function $e({ variant: e }) {
1275
+ function et({ variant: e }) {
1325
1276
  switch (e) {
1326
- case "success": return /* @__PURE__ */ T(Xe, {});
1327
- case "error": return /* @__PURE__ */ T(Je, {});
1328
- case "warning": return /* @__PURE__ */ T(Ze, {});
1329
- default: return /* @__PURE__ */ T(Ye, {});
1277
+ case "success": return /* @__PURE__ */ C(Ze, {});
1278
+ case "error": return /* @__PURE__ */ C(Ye, {});
1279
+ case "warning": return /* @__PURE__ */ C(Qe, {});
1280
+ default: return /* @__PURE__ */ C(Xe, {});
1330
1281
  }
1331
1282
  }
1332
- var et = 5e3;
1333
- function tt({ id: t, title: n, description: r, variant: i = "info", duration: a, onDismiss: o }) {
1334
- let { background: s, color: c } = Qe[i], l = d(new p.Value(0)).current;
1283
+ var tt = 5e3;
1284
+ function nt({ id: t, title: n, description: r, variant: i = "info", duration: a, onDismiss: o }) {
1285
+ let { background: s, color: c } = $e[i], l = d(new p.Value(0)).current;
1335
1286
  u(() => {
1336
1287
  let e = p.timing(l, {
1337
1288
  toValue: 1,
@@ -1342,42 +1293,42 @@ function tt({ id: t, title: n, description: r, variant: i = "info", duration: a,
1342
1293
  }, [l]);
1343
1294
  let f = d(o);
1344
1295
  f.current = o, u(() => {
1345
- let e = setTimeout(() => f.current(t), a ?? et);
1296
+ let e = setTimeout(() => f.current(t), a ?? tt);
1346
1297
  return () => clearTimeout(e);
1347
1298
  }, [t, a]);
1348
1299
  let m = l.interpolate({
1349
1300
  inputRange: [0, 1],
1350
- outputRange: [-16, 0]
1301
+ outputRange: [16, 0]
1351
1302
  });
1352
- return /* @__PURE__ */ E(p.View, {
1303
+ return /* @__PURE__ */ w(p.View, {
1353
1304
  style: [$.card, {
1354
1305
  backgroundColor: s,
1355
1306
  opacity: l,
1356
1307
  transform: [{ translateY: m }]
1357
1308
  }],
1358
1309
  children: [
1359
- /* @__PURE__ */ T(C, {
1310
+ /* @__PURE__ */ C(x, {
1360
1311
  style: $.iconWrapper,
1361
- children: /* @__PURE__ */ T($e, { variant: i })
1312
+ children: /* @__PURE__ */ C(et, { variant: i })
1362
1313
  }),
1363
- /* @__PURE__ */ E(C, {
1314
+ /* @__PURE__ */ w(x, {
1364
1315
  style: $.content,
1365
- children: [n && /* @__PURE__ */ T(A, {
1316
+ children: [n && /* @__PURE__ */ C(k, {
1366
1317
  variant: "label",
1367
1318
  color: c,
1368
1319
  children: n
1369
- }), r && /* @__PURE__ */ T(A, {
1320
+ }), r && /* @__PURE__ */ C(k, {
1370
1321
  variant: "body",
1371
1322
  color: c,
1372
1323
  style: $.description,
1373
1324
  children: r
1374
1325
  })]
1375
1326
  }),
1376
- /* @__PURE__ */ T(N, {
1327
+ /* @__PURE__ */ C(N, {
1377
1328
  size: "sm",
1378
1329
  accessibilityLabel: "Dismiss",
1379
1330
  onPress: () => o(t),
1380
- children: /* @__PURE__ */ T(e, {
1331
+ children: /* @__PURE__ */ C(e, {
1381
1332
  size: "small",
1382
1333
  color: c
1383
1334
  })
@@ -1385,12 +1336,12 @@ function tt({ id: t, title: n, description: r, variant: i = "info", duration: a,
1385
1336
  ]
1386
1337
  });
1387
1338
  }
1388
- function nt() {
1389
- let { toasts: e, dismiss: t } = qe(), n = te(), r = e.filter((e) => e.open !== !1);
1390
- return r.length === 0 ? null : /* @__PURE__ */ T(C, {
1391
- style: [$.container, { top: Math.max(n.top, 16) }],
1339
+ function rt() {
1340
+ let { toasts: e, dismiss: t } = Je(), n = re(), r = e.filter((e) => e.open !== !1);
1341
+ return r.length === 0 ? null : /* @__PURE__ */ C(x, {
1342
+ style: [$.container, { bottom: Math.max(n.bottom, 16) }],
1392
1343
  pointerEvents: "box-none",
1393
- children: r.map((e) => /* @__PURE__ */ T(tt, {
1344
+ children: r.map((e) => /* @__PURE__ */ C(nt, {
1394
1345
  id: e.id,
1395
1346
  title: e.title,
1396
1347
  description: e.description,
@@ -1400,7 +1351,7 @@ function nt() {
1400
1351
  }, e.id))
1401
1352
  });
1402
1353
  }
1403
- var $ = b.create({
1354
+ var $ = y.create({
1404
1355
  container: {
1405
1356
  position: "absolute",
1406
1357
  left: 0,
@@ -1432,7 +1383,7 @@ var $ = b.create({
1432
1383
  },
1433
1384
  content: { flex: 1 },
1434
1385
  description: { fontSize: 13 }
1435
- }), rt = () => {
1386
+ }), it = () => {
1436
1387
  let [e, t] = f(window.innerWidth <= 768), n = d(window.innerWidth);
1437
1388
  return u(() => {
1438
1389
  let e = () => {
@@ -1443,4 +1394,4 @@ var $ = b.create({
1443
1394
  }, []), e;
1444
1395
  };
1445
1396
  //#endregion
1446
- export { re as Badge, oe as Button, ce as Card, ue as Divider, fe as EmptyState, N as IconButton, ge as Input, Ae as Letter, je as MenuItem, Me as RadioCard, Ne as Select, Pe as Sheet, j as Spinner, Be as StepProgress, A as Text, nt as Toaster, t as colors, o as icons, i as typography, rt as useIsMobile, qe as useToast };
1397
+ export { ae as Badge, se as Button, le as Card, de as Divider, pe as EmptyState, N as IconButton, _e as Input, je as Letter, Me as MenuItem, Ne as RadioCard, Pe as Select, Fe as Sheet, j as Spinner, Ve as StepProgress, k as Text, rt as Toaster, t as colors, o as icons, i as typography, it as useIsMobile, Je as useToast };