@gnome-ui/react-native 1.1.0 → 1.2.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.
package/dist/index.js CHANGED
@@ -1,8 +1,10 @@
1
- import { Children as e, Fragment as t, createContext as n, forwardRef as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useImperativeHandle as c, useMemo as l, useRef as u, useState as d } from "react";
2
- import { AccessibilityInfo as f, Animated as p, BackHandler as m, Easing as h, I18nManager as g, Linking as _, Modal as v, Platform as y, Pressable as b, ScrollView as x, StyleSheet as S, Text as C, TextInput as w, View as T, useColorScheme as E } from "react-native";
3
- import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
1
+ import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
2
+ import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Linking as y, Modal as b, Platform as x, Pressable as S, ScrollView as C, StyleSheet as w, Text as T, TextInput as E, View as D, useColorScheme as O } from "react-native";
3
+ import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
4
+ import { Check as M, Connecting as N, Downloading as P, PanDown as F, Recording as ee, Syncing as te } from "@gnome-ui/icons";
5
+ import { Circle as I, G as L, Path as R, Svg as ne, SvgXml as re } from "react-native-svg";
4
6
  //#region src/theme/tokens.generated.ts
5
- var A = {
7
+ var z = {
6
8
  accentBgColor: "#3584e4",
7
9
  accentColor: "#3584e4",
8
10
  accentFgColor: "#fff",
@@ -143,7 +145,7 @@ var A = {
143
145
  yellow3: "#f6d32d",
144
146
  yellow4: "#f5c211",
145
147
  yellow5: "#e5a50a"
146
- }, j = {
148
+ }, ie = {
147
149
  accentBgColor: "#3584e4",
148
150
  accentColor: "#62a0ea",
149
151
  accentFgColor: "#fff",
@@ -284,7 +286,7 @@ var A = {
284
286
  yellow3: "#f6d32d",
285
287
  yellow4: "#f5c211",
286
288
  yellow5: "#e5a50a"
287
- }, M = {
289
+ }, ae = {
288
290
  accentBgColor: "#1a5fb4",
289
291
  accentColor: "#1a5fb4",
290
292
  accentFgColor: "#fff",
@@ -425,7 +427,7 @@ var A = {
425
427
  yellow3: "#f6d32d",
426
428
  yellow4: "#f5c211",
427
429
  yellow5: "#e5a50a"
428
- }, ee = {
430
+ }, oe = {
429
431
  accentBgColor: "#62a0ea",
430
432
  accentColor: "#99c1f1",
431
433
  accentFgColor: "#fff",
@@ -566,7 +568,7 @@ var A = {
566
568
  yellow3: "#f6d32d",
567
569
  yellow4: "#f5c211",
568
570
  yellow5: "#e5a50a"
569
- }, te = {
571
+ }, se = {
570
572
  "--gnome-accent-bg-color": "#3584e4",
571
573
  "--gnome-accent-color": "#3584e4",
572
574
  "--gnome-accent-fg-color": "#fff",
@@ -707,7 +709,7 @@ var A = {
707
709
  "--gnome-yellow-3": "#f6d32d",
708
710
  "--gnome-yellow-4": "#f5c211",
709
711
  "--gnome-yellow-5": "#e5a50a"
710
- }, ne = {
712
+ }, ce = {
711
713
  "--gnome-accent-bg-color": "#3584e4",
712
714
  "--gnome-accent-color": "#62a0ea",
713
715
  "--gnome-accent-fg-color": "#fff",
@@ -848,7 +850,7 @@ var A = {
848
850
  "--gnome-yellow-3": "#f6d32d",
849
851
  "--gnome-yellow-4": "#f5c211",
850
852
  "--gnome-yellow-5": "#e5a50a"
851
- }, re = {
853
+ }, le = {
852
854
  "--gnome-accent-bg-color": "#1a5fb4",
853
855
  "--gnome-accent-color": "#1a5fb4",
854
856
  "--gnome-accent-fg-color": "#fff",
@@ -989,7 +991,7 @@ var A = {
989
991
  "--gnome-yellow-3": "#f6d32d",
990
992
  "--gnome-yellow-4": "#f5c211",
991
993
  "--gnome-yellow-5": "#e5a50a"
992
- }, ie = {
994
+ }, ue = {
993
995
  "--gnome-accent-bg-color": "#62a0ea",
994
996
  "--gnome-accent-color": "#99c1f1",
995
997
  "--gnome-accent-fg-color": "#fff",
@@ -1130,7 +1132,7 @@ var A = {
1130
1132
  "--gnome-yellow-3": "#f6d32d",
1131
1133
  "--gnome-yellow-4": "#f5c211",
1132
1134
  "--gnome-yellow-5": "#e5a50a"
1133
- }, N = n({
1135
+ }, B = r({
1134
1136
  locale: void 0,
1135
1137
  dir: "ltr",
1136
1138
  numberFormat: void 0,
@@ -1140,17 +1142,17 @@ var A = {
1140
1142
  contrast: "system",
1141
1143
  resolvedContrast: "normal",
1142
1144
  accentColor: "blue",
1143
- theme: A
1145
+ theme: z
1144
1146
  });
1145
- function ae() {
1146
- return o(N).locale;
1147
+ function de() {
1148
+ return s(B).locale;
1147
1149
  }
1148
- function oe() {
1149
- return o(N).dir;
1150
+ function fe() {
1151
+ return s(B).dir;
1150
1152
  }
1151
- function se(e) {
1152
- let { locale: t, numberFormat: n } = o(N);
1153
- return l(() => new Intl.NumberFormat(t, {
1153
+ function pe(e) {
1154
+ let { locale: t, numberFormat: n } = s(B);
1155
+ return u(() => new Intl.NumberFormat(t, {
1154
1156
  ...n,
1155
1157
  ...e
1156
1158
  }), [
@@ -1159,9 +1161,9 @@ function se(e) {
1159
1161
  e
1160
1162
  ]);
1161
1163
  }
1162
- function ce(e) {
1163
- let { locale: t, dateTimeFormat: n } = o(N);
1164
- return l(() => new Intl.DateTimeFormat(t, {
1164
+ function me(e) {
1165
+ let { locale: t, dateTimeFormat: n } = s(B);
1166
+ return u(() => new Intl.DateTimeFormat(t, {
1165
1167
  ...n,
1166
1168
  ...e
1167
1169
  }), [
@@ -1170,32 +1172,32 @@ function ce(e) {
1170
1172
  e
1171
1173
  ]);
1172
1174
  }
1173
- function le() {
1174
- return o(N).colorScheme;
1175
+ function he() {
1176
+ return s(B).colorScheme;
1175
1177
  }
1176
- function P() {
1177
- return o(N).resolvedColorScheme;
1178
+ function V() {
1179
+ return s(B).resolvedColorScheme;
1178
1180
  }
1179
- function ue() {
1180
- return o(N).contrast;
1181
+ function ge() {
1182
+ return s(B).contrast;
1181
1183
  }
1182
- function F() {
1183
- return o(N).resolvedContrast;
1184
+ function H() {
1185
+ return s(B).resolvedContrast;
1184
1186
  }
1185
- function de() {
1186
- return o(N).accentColor;
1187
+ function _e() {
1188
+ return s(B).accentColor;
1187
1189
  }
1188
- function I() {
1189
- return o(N).theme;
1190
+ function U() {
1191
+ return s(B).theme;
1190
1192
  }
1191
1193
  //#endregion
1192
1194
  //#region src/theme/resolveTheme.ts
1193
- function L({ colorScheme: e, contrast: t = "normal" }) {
1194
- return t === "more" ? e === "dark" ? ee : M : e === "dark" ? j : A;
1195
+ function ve({ colorScheme: e, contrast: t = "normal" }) {
1196
+ return t === "more" ? e === "dark" ? oe : ae : e === "dark" ? ie : z;
1195
1197
  }
1196
1198
  //#endregion
1197
1199
  //#region src/GnomeProvider/resolveContext.ts
1198
- var R = new Set([
1200
+ var ye = new Set([
1199
1201
  "blue",
1200
1202
  "green",
1201
1203
  "yellow",
@@ -1204,15 +1206,15 @@ var R = new Set([
1204
1206
  "purple",
1205
1207
  "brown"
1206
1208
  ]);
1207
- function z(e, t) {
1209
+ function be(e, t) {
1208
1210
  return e === "system" ? t === "dark" ? "dark" : "light" : e;
1209
1211
  }
1210
- function B(e, t) {
1212
+ function xe(e, t) {
1211
1213
  return e === "system" ? t ? "more" : "normal" : e;
1212
1214
  }
1213
- function V(e, t, n, r) {
1215
+ function Se(e, t, n, r) {
1214
1216
  if (t === "blue") return e;
1215
- let i = R.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
1217
+ let i = ye.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
1216
1218
  return {
1217
1219
  ...e,
1218
1220
  accentColor: a,
@@ -1222,38 +1224,38 @@ function V(e, t, n, r) {
1222
1224
  }
1223
1225
  //#endregion
1224
1226
  //#region src/GnomeProvider/GnomeProvider.tsx
1225
- function fe() {
1226
- let [e, t] = d(!1);
1227
- return s(() => {
1228
- let e = y.OS === "android" ? f.isHighTextContrastEnabled : y.OS === "ios" ? f.isDarkerSystemColorsEnabled : void 0;
1227
+ function Ce() {
1228
+ let [e, t] = f(!1);
1229
+ return c(() => {
1230
+ let e = x.OS === "android" ? p.isHighTextContrastEnabled : x.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
1229
1231
  if (!e) return;
1230
1232
  let n = !0;
1231
1233
  (async () => {
1232
1234
  let r = await e();
1233
1235
  n && t(r);
1234
1236
  })();
1235
- let r = y.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = f.addEventListener(r, t);
1237
+ let r = x.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
1236
1238
  return () => {
1237
1239
  n = !1, i.remove();
1238
1240
  };
1239
1241
  }, []), e;
1240
1242
  }
1241
- function H() {
1242
- let [e, t] = d(!1);
1243
- return s(() => {
1243
+ function W() {
1244
+ let [e, t] = f(!1);
1245
+ return c(() => {
1244
1246
  let e = !0;
1245
1247
  (async () => {
1246
- let n = await f.isReduceMotionEnabled();
1248
+ let n = await p.isReduceMotionEnabled();
1247
1249
  e && t(n);
1248
1250
  })();
1249
- let n = f.addEventListener("reduceMotionChanged", t);
1251
+ let n = p.addEventListener("reduceMotionChanged", t);
1250
1252
  return () => {
1251
1253
  e = !1, n.remove();
1252
1254
  };
1253
1255
  }, []), e;
1254
1256
  }
1255
- var pe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1256
- let c = E(), u = fe(), d = z(i, c), f = B(a, u), p = t ?? (g.isRTL ? "rtl" : "ltr"), m = l(() => ({
1257
+ var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1258
+ let c = O(), l = Ce(), d = be(i, c), f = xe(a, l), p = t ?? (v.isRTL ? "rtl" : "ltr"), m = u(() => ({
1257
1259
  locale: e,
1258
1260
  dir: p,
1259
1261
  numberFormat: n,
@@ -1263,7 +1265,7 @@ var pe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1263
1265
  contrast: a,
1264
1266
  resolvedContrast: f,
1265
1267
  accentColor: o,
1266
- theme: V(L({
1268
+ theme: Se(ve({
1267
1269
  colorScheme: d,
1268
1270
  contrast: f
1269
1271
  }), o, d, f)
@@ -1278,11 +1280,11 @@ var pe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1278
1280
  f,
1279
1281
  o
1280
1282
  ]);
1281
- return /* @__PURE__ */ O(N.Provider, {
1283
+ return /* @__PURE__ */ A(B.Provider, {
1282
1284
  value: m,
1283
1285
  children: s
1284
1286
  });
1285
- }, me = new Set([
1287
+ }, Te = new Set([
1286
1288
  "large-title",
1287
1289
  "title-1",
1288
1290
  "title-2",
@@ -1290,7 +1292,7 @@ var pe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1290
1292
  "title-4",
1291
1293
  "heading"
1292
1294
  ]);
1293
- function he(e, t) {
1295
+ function Ee(e, t) {
1294
1296
  let n = (e) => String(e);
1295
1297
  switch (t) {
1296
1298
  case "large-title": return {
@@ -1359,7 +1361,7 @@ function he(e, t) {
1359
1361
  };
1360
1362
  }
1361
1363
  }
1362
- function ge(e, t) {
1364
+ function De(e, t) {
1363
1365
  switch (t) {
1364
1366
  case "dim": return {
1365
1367
  color: e.windowFgColor,
@@ -1373,22 +1375,22 @@ function ge(e, t) {
1373
1375
  default: return { color: e.windowFgColor };
1374
1376
  }
1375
1377
  }
1376
- var U = r(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
1377
- let s = I();
1378
- return /* @__PURE__ */ O(C, {
1378
+ var G = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
1379
+ let s = U();
1380
+ return /* @__PURE__ */ A(T, {
1379
1381
  ref: o,
1380
- accessibilityRole: i ?? (me.has(e) ? "header" : void 0),
1382
+ accessibilityRole: i ?? (Te.has(e) ? "header" : void 0),
1381
1383
  style: [
1382
1384
  { fontFamily: s.fontFamily },
1383
- he(s, e),
1384
- ge(s, t),
1385
+ Ee(s, e),
1386
+ De(s, t),
1385
1387
  n
1386
1388
  ],
1387
1389
  ...a,
1388
1390
  children: r
1389
1391
  });
1390
- }), _e = r(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
1391
- let u = I(), d = a === "property", f = {
1392
+ }), Oe = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
1393
+ let u = U(), d = a === "property", f = {
1392
1394
  flexDirection: "row",
1393
1395
  alignItems: "center",
1394
1396
  gap: u.space2,
@@ -1396,23 +1398,23 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1396
1398
  paddingHorizontal: u.space4,
1397
1399
  minHeight: 52,
1398
1400
  width: "100%"
1399
- }, p = /* @__PURE__ */ k(D, { children: [
1400
- n && /* @__PURE__ */ O(T, {
1401
+ }, p = /* @__PURE__ */ j(k, { children: [
1402
+ n && /* @__PURE__ */ A(D, {
1401
1403
  style: { flexShrink: 0 },
1402
1404
  children: n
1403
1405
  }),
1404
- /* @__PURE__ */ k(T, {
1406
+ /* @__PURE__ */ j(D, {
1405
1407
  style: {
1406
1408
  flex: 1,
1407
1409
  gap: 2
1408
1410
  },
1409
- children: [/* @__PURE__ */ O(U, {
1411
+ children: [/* @__PURE__ */ A(G, {
1410
1412
  variant: d ? "caption" : "body",
1411
1413
  color: d ? "dim" : "default",
1412
1414
  numberOfLines: 1,
1413
1415
  ellipsizeMode: "tail",
1414
1416
  children: e
1415
- }), t && /* @__PURE__ */ O(U, {
1417
+ }), t && /* @__PURE__ */ A(G, {
1416
1418
  variant: d ? "body" : "caption",
1417
1419
  color: d ? "default" : "dim",
1418
1420
  numberOfLines: 1,
@@ -1420,7 +1422,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1420
1422
  children: t
1421
1423
  })]
1422
1424
  }),
1423
- r && /* @__PURE__ */ O(T, {
1425
+ r && /* @__PURE__ */ A(D, {
1424
1426
  style: {
1425
1427
  flexShrink: 0,
1426
1428
  flexDirection: "row",
@@ -1430,7 +1432,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1430
1432
  children: r
1431
1433
  })
1432
1434
  ] });
1433
- return i ? /* @__PURE__ */ O(b, {
1435
+ return i ? /* @__PURE__ */ A(S, {
1434
1436
  ref: l,
1435
1437
  disabled: s,
1436
1438
  accessibilityRole: "button",
@@ -1444,18 +1446,257 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1444
1446
  o
1445
1447
  ],
1446
1448
  ...c,
1447
- children: ({ pressed: e }) => /* @__PURE__ */ k(D, { children: [p, e && !s ? /* @__PURE__ */ O(T, {
1449
+ children: ({ pressed: e }) => /* @__PURE__ */ j(k, { children: [p, e && !s ? /* @__PURE__ */ A(D, {
1448
1450
  pointerEvents: "none",
1449
- style: [S.absoluteFill, { backgroundColor: u.activeOverlay }]
1451
+ style: [w.absoluteFill, { backgroundColor: u.activeOverlay }]
1450
1452
  }) : null] })
1451
- }) : /* @__PURE__ */ O(T, {
1453
+ }) : /* @__PURE__ */ A(D, {
1452
1454
  ref: l,
1453
1455
  style: [f, o],
1454
1456
  ...c,
1455
1457
  children: p
1456
1458
  });
1457
- }), ve = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1458
- let c = I(), l = {
1459
+ }), ke = {
1460
+ sm: 12,
1461
+ md: 16,
1462
+ lg: 20
1463
+ };
1464
+ function Ae(e, t) {
1465
+ switch (t) {
1466
+ case "blue": return e.blue3;
1467
+ case "green": return e.green4;
1468
+ case "yellow": return e.yellow4;
1469
+ case "orange": return e.orange3;
1470
+ case "red": return e.red3;
1471
+ case "purple": return e.purple3;
1472
+ case "brown": return e.brown3;
1473
+ default: return e.windowFgColor;
1474
+ }
1475
+ }
1476
+ function je(e) {
1477
+ return e ? {
1478
+ accessible: !0,
1479
+ accessibilityLabel: e,
1480
+ accessibilityRole: "image"
1481
+ } : {
1482
+ accessible: !1,
1483
+ accessibilityRole: "none"
1484
+ };
1485
+ }
1486
+ //#endregion
1487
+ //#region src/components/Icon/Icon.tsx
1488
+ function K(e) {
1489
+ return "paths" in e && Array.isArray(e.paths) ? !0 : typeof e.svg == "string" && !("path" in e);
1490
+ }
1491
+ function Me(e) {
1492
+ return e === "nonzero" || e === "evenodd" ? e : void 0;
1493
+ }
1494
+ var q = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
1495
+ let s = U(), c = ke[t], l = Ae(s, a), u = K(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = K(e) ? e.svg : void 0, f = K(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ A(R, {
1496
+ d: e.d,
1497
+ fillRule: Me(e.fillRule),
1498
+ clipRule: Me(e.clipRule),
1499
+ transform: e.transform
1500
+ }, t)) : [/* @__PURE__ */ A(R, { d: e.path }, 0)], p = je(i);
1501
+ return d ? /* @__PURE__ */ A(re, {
1502
+ xml: `<svg viewBox="${u}">${d}</svg>`,
1503
+ width: n ?? c,
1504
+ height: r ?? c,
1505
+ fill: l,
1506
+ style: o,
1507
+ ...p
1508
+ }) : /* @__PURE__ */ A(ne, {
1509
+ viewBox: u,
1510
+ width: n ?? c,
1511
+ height: r ?? c,
1512
+ fill: l,
1513
+ style: o,
1514
+ ...p,
1515
+ children: f
1516
+ });
1517
+ }, Ne = m.createAnimatedComponent(L), Pe = m.createAnimatedComponent(R), Fe = m.createAnimatedComponent(I);
1518
+ function Ie(e) {
1519
+ let t = d(new m.Value(0)).current;
1520
+ return c(() => {
1521
+ let n = m.loop(m.timing(t, {
1522
+ toValue: 1,
1523
+ duration: e,
1524
+ easing: _.linear,
1525
+ useNativeDriver: !1
1526
+ }));
1527
+ return n.start(), () => n.stop();
1528
+ }, [t, e]), t;
1529
+ }
1530
+ function Le(e, t) {
1531
+ let n = d(new m.Value(0)).current;
1532
+ return c(() => {
1533
+ let r = m.sequence([m.delay(t), m.loop(m.timing(n, {
1534
+ toValue: 1,
1535
+ duration: e,
1536
+ easing: _.linear,
1537
+ useNativeDriver: !1
1538
+ }))]);
1539
+ return r.start(), () => r.stop();
1540
+ }, [
1541
+ n,
1542
+ e,
1543
+ t
1544
+ ]), n;
1545
+ }
1546
+ var Re = ({ fill: e }) => /* @__PURE__ */ A(Ne, {
1547
+ transform: Ie(1500).interpolate({
1548
+ inputRange: [0, 1],
1549
+ outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
1550
+ }),
1551
+ children: /* @__PURE__ */ A(R, {
1552
+ fill: e,
1553
+ fillRule: "evenodd",
1554
+ d: "M8 2a6 6 0 0 0-6 6h2a4 4 0 0 1 4-4 4 4 0 0 1 4 4 4 4 0 0 1-4 4v-2L5 13l3 3v-2a6 6 0 0 0 6-6 6 6 0 0 0-6-6z"
1555
+ })
1556
+ }), ze = ({ fill: e }) => {
1557
+ let t = d(new m.Value(1)).current;
1558
+ return c(() => {
1559
+ let e = _.inOut(_.ease), n = m.loop(m.sequence([m.timing(t, {
1560
+ toValue: .35,
1561
+ duration: 600,
1562
+ easing: e,
1563
+ useNativeDriver: !1
1564
+ }), m.timing(t, {
1565
+ toValue: 1,
1566
+ duration: 600,
1567
+ easing: e,
1568
+ useNativeDriver: !1
1569
+ })]));
1570
+ return n.start(), () => n.stop();
1571
+ }, [t]), /* @__PURE__ */ A(Pe, {
1572
+ fill: e,
1573
+ opacity: t,
1574
+ d: "m 15 8 c 0 3.867188 -3.132812 7 -7 7 s -7 -3.132812 -7 -7 s 3.132812 -7 7 -7 s 7 3.132812 7 7 z m 0 0"
1575
+ });
1576
+ }, Be = ({ fill: e }) => {
1577
+ let t = Ie(1400), n = [
1578
+ 0,
1579
+ .2,
1580
+ .5,
1581
+ .55,
1582
+ .8,
1583
+ 1
1584
+ ], r = t.interpolate({
1585
+ inputRange: n,
1586
+ outputRange: [
1587
+ "translate(0, 0)",
1588
+ "translate(0, 0)",
1589
+ "translate(0, 3)",
1590
+ "translate(0, -3)",
1591
+ "translate(0, 0)",
1592
+ "translate(0, 0)"
1593
+ ]
1594
+ }), i = t.interpolate({
1595
+ inputRange: n,
1596
+ outputRange: [
1597
+ 1,
1598
+ 1,
1599
+ 0,
1600
+ 0,
1601
+ 1,
1602
+ 1
1603
+ ]
1604
+ });
1605
+ return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(R, {
1606
+ fill: e,
1607
+ d: "M2 13h12v2H2z"
1608
+ }), /* @__PURE__ */ A(Ne, {
1609
+ transform: r,
1610
+ opacity: i,
1611
+ children: /* @__PURE__ */ A(R, {
1612
+ fill: e,
1613
+ fillRule: "evenodd",
1614
+ d: "m2.5 5 5.5 6 5.5-6z"
1615
+ })
1616
+ })] });
1617
+ };
1618
+ function J(e, t, n) {
1619
+ return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
1620
+ }
1621
+ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1622
+ let i = Le(1200, r), a = [
1623
+ 0,
1624
+ .2,
1625
+ .4,
1626
+ 1
1627
+ ];
1628
+ return /* @__PURE__ */ A(Fe, {
1629
+ cx: e,
1630
+ cy: t,
1631
+ r: 2,
1632
+ fill: n,
1633
+ opacity: i.interpolate({
1634
+ inputRange: a,
1635
+ outputRange: [
1636
+ 1,
1637
+ .3,
1638
+ 1,
1639
+ 1
1640
+ ]
1641
+ }),
1642
+ transform: i.interpolate({
1643
+ inputRange: a,
1644
+ outputRange: [
1645
+ J(e, t, 1),
1646
+ J(e, t, .7),
1647
+ J(e, t, 1),
1648
+ J(e, t, 1)
1649
+ ]
1650
+ })
1651
+ });
1652
+ }, Ve = new Map([
1653
+ [te, Re],
1654
+ [ee, ze],
1655
+ [P, Be],
1656
+ [N, ({ fill: e }) => /* @__PURE__ */ j(k, { children: [
1657
+ /* @__PURE__ */ A(R, {
1658
+ fill: e,
1659
+ d: "m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0"
1660
+ }),
1661
+ /* @__PURE__ */ A(Y, {
1662
+ cx: 3,
1663
+ cy: 8,
1664
+ fill: e,
1665
+ delay: 0
1666
+ }),
1667
+ /* @__PURE__ */ A(Y, {
1668
+ cx: 8,
1669
+ cy: 8,
1670
+ fill: e,
1671
+ delay: 150
1672
+ }),
1673
+ /* @__PURE__ */ A(Y, {
1674
+ cx: 13,
1675
+ cy: 8,
1676
+ fill: e,
1677
+ delay: 300
1678
+ })
1679
+ ] })]
1680
+ ]), He = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
1681
+ let s = U(), c = W(), l = t && !c ? Ve.get(e) : void 0;
1682
+ if (!l) return /* @__PURE__ */ A(q, {
1683
+ icon: e,
1684
+ size: n,
1685
+ width: r,
1686
+ height: i,
1687
+ label: a,
1688
+ color: o
1689
+ });
1690
+ let u = ke[n], d = Ae(s, o), f = je(a);
1691
+ return /* @__PURE__ */ A(ne, {
1692
+ viewBox: e.viewBox,
1693
+ width: r ?? u,
1694
+ height: i ?? u,
1695
+ ...f,
1696
+ children: /* @__PURE__ */ A(l, { fill: d })
1697
+ });
1698
+ }, Ue = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1699
+ let c = U(), l = {
1459
1700
  info: {
1460
1701
  bg: c.accentBgColor,
1461
1702
  fg: c.accentFgColor
@@ -1473,7 +1714,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1473
1714
  fg: c.successFgColor
1474
1715
  }
1475
1716
  }[e], u = e === "warning" ? "rgba(0, 0, 0, 0.14)" : "rgba(255, 255, 255, 0.25)";
1476
- return /* @__PURE__ */ k(T, {
1717
+ return /* @__PURE__ */ j(D, {
1477
1718
  accessible: !0,
1478
1719
  accessibilityRole: "alert",
1479
1720
  accessibilityLiveRegion: "polite",
@@ -1488,7 +1729,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1488
1729
  backgroundColor: l.bg
1489
1730
  }, o],
1490
1731
  ...s,
1491
- children: [/* @__PURE__ */ O(U, {
1732
+ children: [/* @__PURE__ */ A(G, {
1492
1733
  variant: "body",
1493
1734
  style: {
1494
1735
  flex: 1,
@@ -1496,14 +1737,14 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1496
1737
  color: l.fg
1497
1738
  },
1498
1739
  children: t
1499
- }), (n || i) && /* @__PURE__ */ k(T, {
1740
+ }), (n || i) && /* @__PURE__ */ j(D, {
1500
1741
  style: {
1501
1742
  flexDirection: "row",
1502
1743
  alignItems: "center",
1503
1744
  gap: c.space1,
1504
1745
  flexShrink: 0
1505
1746
  },
1506
- children: [n && /* @__PURE__ */ O(b, {
1747
+ children: [n && /* @__PURE__ */ A(S, {
1507
1748
  accessibilityRole: "button",
1508
1749
  accessibilityLabel: n,
1509
1750
  onPress: r,
@@ -1513,7 +1754,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1513
1754
  borderRadius: c.radiusMd,
1514
1755
  backgroundColor: e ? u : "transparent"
1515
1756
  }),
1516
- children: /* @__PURE__ */ O(C, {
1757
+ children: /* @__PURE__ */ A(T, {
1517
1758
  style: {
1518
1759
  fontFamily: c.fontFamily,
1519
1760
  fontSize: c.fontSizeBody,
@@ -1522,7 +1763,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1522
1763
  },
1523
1764
  children: n
1524
1765
  })
1525
- }), i && /* @__PURE__ */ O(b, {
1766
+ }), i && /* @__PURE__ */ A(S, {
1526
1767
  accessibilityRole: "button",
1527
1768
  accessibilityLabel: "Dismiss",
1528
1769
  hitSlop: 4,
@@ -1536,7 +1777,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1536
1777
  opacity: e ? 1 : .6,
1537
1778
  backgroundColor: e ? u : "transparent"
1538
1779
  }),
1539
- children: /* @__PURE__ */ O(C, {
1780
+ children: /* @__PURE__ */ A(T, {
1540
1781
  style: {
1541
1782
  fontSize: c.fontSizeBody,
1542
1783
  color: l.fg
@@ -1546,13 +1787,13 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1546
1787
  })]
1547
1788
  })]
1548
1789
  });
1549
- }, W = r(function({ orientation: e = "horizontal", style: t, ...n }, r) {
1550
- return /* @__PURE__ */ O(T, {
1790
+ }, X = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
1791
+ return /* @__PURE__ */ A(D, {
1551
1792
  ref: r,
1552
1793
  accessible: !1,
1553
1794
  style: [
1554
1795
  {
1555
- backgroundColor: I().cardShadeColor,
1796
+ backgroundColor: U().cardShadeColor,
1556
1797
  flexShrink: 0
1557
1798
  },
1558
1799
  e === "vertical" ? {
@@ -1567,15 +1808,15 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1567
1808
  ],
1568
1809
  ...n
1569
1810
  });
1570
- }), ye = r(function({ children: t, variant: n = "default", style: r, ...i }, a) {
1571
- let o = I(), s = e.toArray(t).filter(Boolean);
1572
- return n === "separate" ? /* @__PURE__ */ O(T, {
1811
+ }), We = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
1812
+ let o = U(), s = e.toArray(t).filter(Boolean);
1813
+ return n === "separate" ? /* @__PURE__ */ A(D, {
1573
1814
  ref: a,
1574
1815
  accessible: !0,
1575
1816
  accessibilityRole: "list",
1576
1817
  style: [{ gap: o.space2 }, r],
1577
1818
  ...i,
1578
- children: s.map((e, t) => /* @__PURE__ */ O(T, {
1819
+ children: s.map((e, t) => /* @__PURE__ */ A(D, {
1579
1820
  style: {
1580
1821
  backgroundColor: o.cardBgColor,
1581
1822
  borderWidth: 1,
@@ -1585,7 +1826,7 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1585
1826
  },
1586
1827
  children: e
1587
1828
  }, t))
1588
- }) : /* @__PURE__ */ O(T, {
1829
+ }) : /* @__PURE__ */ A(D, {
1589
1830
  ref: a,
1590
1831
  accessible: !0,
1591
1832
  accessibilityRole: "list",
@@ -1597,12 +1838,12 @@ var U = r(function({ variant: e = "body", color: t = "default", style: n, childr
1597
1838
  overflow: "hidden"
1598
1839
  }, r],
1599
1840
  ...i,
1600
- children: s.map((e, t) => /* @__PURE__ */ k(T, { children: [t > 0 && /* @__PURE__ */ O(W, { testID: "boxed-list-separator" }), e] }, t))
1841
+ children: s.map((e, t) => /* @__PURE__ */ j(D, { children: [t > 0 && /* @__PURE__ */ A(X, { testID: "boxed-list-separator" }), e] }, t))
1601
1842
  });
1602
1843
  });
1603
1844
  //#endregion
1604
1845
  //#region src/components/Button/Button.tsx
1605
- function G(e, t) {
1846
+ function Ge(e, t) {
1606
1847
  switch (t) {
1607
1848
  case "sm": return {
1608
1849
  minHeight: 28,
@@ -1627,14 +1868,14 @@ function G(e, t) {
1627
1868
  };
1628
1869
  }
1629
1870
  }
1630
- function be(e) {
1871
+ function Ke(e) {
1631
1872
  switch (e) {
1632
1873
  case "sm": return 28;
1633
1874
  case "lg": return 42;
1634
1875
  default: return 34;
1635
1876
  }
1636
1877
  }
1637
- function K(e, t, n, r) {
1878
+ function qe(e, t, n, r) {
1638
1879
  if (r) return {
1639
1880
  backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
1640
1881
  borderColor: "rgba(255, 255, 255, 0.12)",
@@ -1663,15 +1904,15 @@ function K(e, t, n, r) {
1663
1904
  };
1664
1905
  }
1665
1906
  }
1666
- var xe = r(function({ variant: e = "default", size: t = "md", shape: n = "default", osd: r = !1, leadingIcon: i, trailingIcon: a, children: o, style: s, textStyle: c, disabled: l, ...u }, d) {
1667
- let f = I(), p = F();
1668
- return /* @__PURE__ */ O(b, {
1907
+ var Je = i(function({ variant: e = "default", size: t = "md", shape: n = "default", osd: r = !1, leadingIcon: i, trailingIcon: a, children: o, style: s, textStyle: c, disabled: l, ...u }, d) {
1908
+ let f = U(), p = H();
1909
+ return /* @__PURE__ */ A(S, {
1669
1910
  ref: d,
1670
1911
  disabled: l,
1671
1912
  accessibilityRole: "button",
1672
1913
  accessibilityState: { disabled: !!l },
1673
1914
  style: ({ pressed: i }) => {
1674
- let { backgroundColor: a, borderColor: o } = K(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? be(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = G(f, t);
1915
+ let { backgroundColor: a, borderColor: o } = qe(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? Ke(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Ge(f, t);
1675
1916
  return [{
1676
1917
  flexDirection: "row",
1677
1918
  alignItems: "center",
@@ -1692,10 +1933,10 @@ var xe = r(function({ variant: e = "default", size: t = "md", shape: n = "defaul
1692
1933
  },
1693
1934
  ...u,
1694
1935
  children: ({ pressed: n }) => {
1695
- let { fontSize: s } = G(f, t), { color: l } = K(f, e, n, r);
1696
- return /* @__PURE__ */ k(D, { children: [
1936
+ let { fontSize: s } = Ge(f, t), { color: l } = qe(f, e, n, r);
1937
+ return /* @__PURE__ */ j(k, { children: [
1697
1938
  i,
1698
- typeof o == "string" ? /* @__PURE__ */ O(C, {
1939
+ typeof o == "string" ? /* @__PURE__ */ A(T, {
1699
1940
  style: [{
1700
1941
  fontFamily: f.fontFamily,
1701
1942
  fontWeight: String(f.fontWeightSemibold),
@@ -1711,7 +1952,7 @@ var xe = r(function({ variant: e = "default", size: t = "md", shape: n = "defaul
1711
1952
  });
1712
1953
  //#endregion
1713
1954
  //#region src/components/Card/Card.tsx
1714
- function Se(e, t) {
1955
+ function Ye(e, t) {
1715
1956
  switch (t) {
1716
1957
  case "none": return 0;
1717
1958
  case "sm": return e.space2;
@@ -1719,16 +1960,16 @@ function Se(e, t) {
1719
1960
  default: return e.space4;
1720
1961
  }
1721
1962
  }
1722
- var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
1723
- let s = I(), c = {
1963
+ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
1964
+ let s = U(), c = {
1724
1965
  backgroundColor: s.cardBgColor,
1725
1966
  borderWidth: 1,
1726
1967
  borderColor: s.cardShadeColor,
1727
1968
  borderRadius: s.radiusLg,
1728
1969
  overflow: "hidden",
1729
- padding: Se(s, t)
1970
+ padding: Ye(s, t)
1730
1971
  };
1731
- return e ? /* @__PURE__ */ O(b, {
1972
+ return e ? /* @__PURE__ */ A(S, {
1732
1973
  ref: o,
1733
1974
  disabled: i,
1734
1975
  accessibilityRole: "button",
@@ -1742,47 +1983,47 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
1742
1983
  n
1743
1984
  ],
1744
1985
  ...a,
1745
- children: ({ pressed: e }) => /* @__PURE__ */ k(D, { children: [r, e && !i ? /* @__PURE__ */ O(T, {
1986
+ children: ({ pressed: e }) => /* @__PURE__ */ j(k, { children: [r, e && !i ? /* @__PURE__ */ A(D, {
1746
1987
  pointerEvents: "none",
1747
- style: [S.absoluteFill, {
1988
+ style: [w.absoluteFill, {
1748
1989
  backgroundColor: s.activeOverlay,
1749
1990
  borderRadius: s.radiusLg
1750
1991
  }]
1751
1992
  }) : null] })
1752
- }) : /* @__PURE__ */ O(T, {
1993
+ }) : /* @__PURE__ */ A(D, {
1753
1994
  ref: o,
1754
1995
  style: [c, n],
1755
1996
  ...a,
1756
1997
  children: r
1757
1998
  });
1758
- }), q = 18, we = r(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
1759
- let c = I(), l = P(), d = F(), f = e || t, m = u(new p.Value(+!!f)).current, g = u(!0);
1760
- s(() => {
1761
- if (g.current) {
1762
- g.current = !1;
1999
+ }), Ze = 18, Qe = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
2000
+ let s = U(), l = V(), u = H(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
2001
+ c(() => {
2002
+ if (h.current) {
2003
+ h.current = !1;
1763
2004
  return;
1764
2005
  }
1765
- let [e, t, n, r] = c.easingDefault;
1766
- p.timing(m, {
2006
+ let [e, t, n, r] = s.easingDefault;
2007
+ m.timing(p, {
1767
2008
  toValue: +!!f,
1768
- duration: c.durationFast,
1769
- easing: h.bezier(e, t, n, r),
2009
+ duration: s.durationFast,
2010
+ easing: _.bezier(e, t, n, r),
1770
2011
  useNativeDriver: !1
1771
2012
  }).start();
1772
2013
  }, [
1773
2014
  f,
1774
- m,
1775
- c.durationFast,
1776
- c.easingDefault
2015
+ p,
2016
+ s.durationFast,
2017
+ s.easingDefault
1777
2018
  ]);
1778
- let _ = d === "more" ? c.windowFgColor : l === "dark" ? c.dark1 : c.light4, v = m.interpolate({
2019
+ let g = u === "more" ? s.windowFgColor : l === "dark" ? s.dark1 : s.light4, v = p.interpolate({
1779
2020
  inputRange: [0, 1],
1780
- outputRange: [_, c.accentBgColor]
1781
- }), y = m.interpolate({
2021
+ outputRange: [g, s.accentBgColor]
2022
+ }), y = p.interpolate({
1782
2023
  inputRange: [0, 1],
1783
- outputRange: [c.cardBgColor, c.accentBgColor]
2024
+ outputRange: [s.cardBgColor, s.accentBgColor]
1784
2025
  });
1785
- return /* @__PURE__ */ O(b, {
2026
+ return /* @__PURE__ */ A(S, {
1786
2027
  ref: o,
1787
2028
  disabled: r,
1788
2029
  accessibilityRole: "checkbox",
@@ -1791,28 +2032,28 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
1791
2032
  disabled: !!r
1792
2033
  },
1793
2034
  onPress: () => n?.(!e),
1794
- style: [{ opacity: r ? c.opacityDisabled : 1 }, i],
2035
+ style: [{ opacity: r ? s.opacityDisabled : 1 }, i],
1795
2036
  ...a,
1796
- children: /* @__PURE__ */ O(p.View, {
2037
+ children: /* @__PURE__ */ A(m.View, {
1797
2038
  style: {
1798
- width: q,
1799
- height: q,
2039
+ width: Ze,
2040
+ height: Ze,
1800
2041
  alignItems: "center",
1801
2042
  justifyContent: "center",
1802
- borderRadius: c.radiusSm,
1803
- borderWidth: d === "more" ? 2 : 1.5,
2043
+ borderRadius: s.radiusSm,
2044
+ borderWidth: u === "more" ? 2 : 1.5,
1804
2045
  borderColor: v,
1805
2046
  backgroundColor: y
1806
2047
  },
1807
- children: t ? /* @__PURE__ */ O(p.View, { style: {
2048
+ children: t ? /* @__PURE__ */ A(m.View, { style: {
1808
2049
  width: 10,
1809
2050
  height: 2,
1810
2051
  borderRadius: 1,
1811
2052
  backgroundColor: "#fff",
1812
- opacity: m
1813
- } }) : /* @__PURE__ */ O(p.Text, {
2053
+ opacity: p
2054
+ } }) : /* @__PURE__ */ A(m.Text, {
1814
2055
  style: {
1815
- opacity: m,
2056
+ opacity: p,
1816
2057
  color: "#fff",
1817
2058
  fontSize: 13,
1818
2059
  fontWeight: "bold",
@@ -1822,79 +2063,79 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
1822
2063
  })
1823
2064
  })
1824
2065
  });
1825
- }), Te = p.createAnimatedComponent(b), Ee = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: c, onResponse: l, style: d, testID: f }) => {
1826
- let g = I(), _ = P(), y = H(), x = u(new p.Value(+!!y)).current, S = !!c, C = () => {
1827
- let e = c?.find((e) => e.variant !== "destructive" && !e.disabled);
2066
+ }), $e = m.createAnimatedComponent(S), et = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
2067
+ let p = U(), g = V(), v = W(), y = d(new m.Value(+!!v)).current, x = !!s, C = () => {
2068
+ let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
1828
2069
  e && l?.(e.id);
1829
2070
  }, w = () => {
1830
- S ? C() : i?.();
1831
- }, E = S ? C : a ? i : void 0;
1832
- s(() => {
2071
+ x ? C() : i?.();
2072
+ }, T = x ? C : a ? i : void 0;
2073
+ c(() => {
1833
2074
  if (!e) return;
1834
- if (y) {
1835
- x.setValue(1);
2075
+ if (v) {
2076
+ y.setValue(1);
1836
2077
  return;
1837
2078
  }
1838
- x.setValue(0);
1839
- let [t, n, r, i] = g.easingDefault;
1840
- p.timing(x, {
2079
+ y.setValue(0);
2080
+ let [t, n, r, i] = p.easingDefault;
2081
+ m.timing(y, {
1841
2082
  toValue: 1,
1842
- duration: g.durationNormal,
1843
- easing: h.bezier(t, n, r, i),
2083
+ duration: p.durationNormal,
2084
+ easing: _.bezier(t, n, r, i),
1844
2085
  useNativeDriver: !0
1845
2086
  }).start();
1846
2087
  }, [
1847
2088
  e,
2089
+ v,
1848
2090
  y,
1849
- x,
1850
- g.durationNormal,
1851
- g.easingDefault
1852
- ]), s(() => {
2091
+ p.durationNormal,
2092
+ p.easingDefault
2093
+ ]), c(() => {
1853
2094
  if (!e) return;
1854
- let t = m.addEventListener("hardwareBackPress", () => (w(), !0));
2095
+ let t = h.addEventListener("hardwareBackPress", () => (w(), !0));
1855
2096
  return () => t.remove();
1856
2097
  }, [
1857
2098
  e,
1858
- S,
1859
- c,
2099
+ x,
2100
+ s,
1860
2101
  l,
1861
2102
  i
1862
2103
  ]);
1863
- let D = () => {
1864
- let e = S && c ? c : r;
1865
- return e.length === 0 ? null : /* @__PURE__ */ O(T, {
2104
+ let E = () => {
2105
+ let e = x && s ? s : r;
2106
+ return e.length === 0 ? null : /* @__PURE__ */ A(D, {
1866
2107
  style: {
1867
2108
  borderTopWidth: 1,
1868
- borderTopColor: g.cardShadeColor
2109
+ borderTopColor: p.cardShadeColor
1869
2110
  },
1870
2111
  children: e.map((t, n) => {
1871
- let r = t.variant ?? "default", i = r === "destructive" ? g.destructiveColor : g.accentColor, a = S ? () => l?.(t.id) : t.onPress;
1872
- return /* @__PURE__ */ O(b, {
2112
+ let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = x ? () => l?.(t.id) : t.onPress;
2113
+ return /* @__PURE__ */ A(S, {
1873
2114
  accessibilityRole: "button",
1874
2115
  accessibilityState: { disabled: t.disabled },
1875
2116
  disabled: t.disabled,
1876
2117
  onPress: a,
1877
2118
  style: ({ pressed: r }) => ({
1878
2119
  paddingVertical: 14,
1879
- paddingHorizontal: g.space4,
2120
+ paddingHorizontal: p.space4,
1880
2121
  borderBottomWidth: +(n < e.length - 1),
1881
- borderBottomColor: g.cardShadeColor,
1882
- backgroundColor: r ? g.activeOverlay : "transparent",
1883
- opacity: t.disabled ? g.opacityDisabled : 1
2122
+ borderBottomColor: p.cardShadeColor,
2123
+ backgroundColor: r ? p.activeOverlay : "transparent",
2124
+ opacity: t.disabled ? p.opacityDisabled : 1
1884
2125
  }),
1885
- children: /* @__PURE__ */ O(U, {
2126
+ children: /* @__PURE__ */ A(G, {
1886
2127
  variant: "body",
1887
2128
  style: {
1888
2129
  textAlign: "center",
1889
2130
  color: i,
1890
- fontWeight: r === "suggested" ? String(g.fontWeightSemibold) : void 0
2131
+ fontWeight: r === "suggested" ? String(p.fontWeightSemibold) : void 0
1891
2132
  },
1892
2133
  children: t.label
1893
2134
  })
1894
- }, S ? t.id : t.label);
2135
+ }, x ? t.id : t.label);
1895
2136
  })
1896
2137
  });
1897
- }, A = _ === "dark" ? {
2138
+ }, O = g === "dark" ? {
1898
2139
  shadowOpacity: .5,
1899
2140
  shadowRadius: 32,
1900
2141
  elevation: 12
@@ -1903,87 +2144,277 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
1903
2144
  shadowRadius: 32,
1904
2145
  elevation: 8
1905
2146
  };
1906
- return /* @__PURE__ */ O(v, {
2147
+ return /* @__PURE__ */ A(b, {
1907
2148
  visible: e,
1908
2149
  transparent: !0,
1909
2150
  animationType: "none",
1910
2151
  statusBarTranslucent: !0,
1911
2152
  onRequestClose: w,
1912
- children: /* @__PURE__ */ O(Te, {
2153
+ children: /* @__PURE__ */ A($e, {
1913
2154
  testID: f,
1914
- onPress: E,
2155
+ onPress: T,
1915
2156
  style: {
1916
2157
  flex: 1,
1917
2158
  alignItems: "center",
1918
2159
  justifyContent: "center",
1919
2160
  paddingHorizontal: 24,
1920
- backgroundColor: g.dialogBackdropColor,
1921
- opacity: x
2161
+ backgroundColor: p.dialogBackdropColor,
2162
+ opacity: y
1922
2163
  },
1923
- children: /* @__PURE__ */ O(b, {
2164
+ children: /* @__PURE__ */ A(S, {
1924
2165
  onPress: () => {},
1925
2166
  accessible: !1,
1926
2167
  style: {
1927
2168
  width: "100%",
1928
2169
  maxWidth: 480
1929
2170
  },
1930
- children: /* @__PURE__ */ k(p.View, {
2171
+ children: /* @__PURE__ */ j(m.View, {
1931
2172
  accessible: !0,
1932
2173
  role: o,
1933
2174
  accessibilityViewIsModal: !0,
1934
2175
  style: [{
1935
- backgroundColor: g.dialogBgColor,
1936
- borderRadius: g.radiusXl,
2176
+ backgroundColor: p.dialogBgColor,
2177
+ borderRadius: p.radiusXl,
1937
2178
  overflow: "hidden",
1938
2179
  shadowColor: "#000",
1939
2180
  shadowOffset: {
1940
2181
  width: 0,
1941
2182
  height: 8
1942
2183
  },
1943
- ...A,
1944
- opacity: x,
1945
- transform: [{ translateY: x.interpolate({
2184
+ ...O,
2185
+ opacity: y,
2186
+ transform: [{ translateY: y.interpolate({
1946
2187
  inputRange: [0, 1],
1947
2188
  outputRange: [-8, 0]
1948
- }) }, { scale: x.interpolate({
2189
+ }) }, { scale: y.interpolate({
1949
2190
  inputRange: [0, 1],
1950
2191
  outputRange: [.92, 1]
1951
2192
  }) }]
1952
- }, d],
2193
+ }, u],
1953
2194
  children: [
1954
- t && /* @__PURE__ */ O(U, {
2195
+ t && /* @__PURE__ */ A(G, {
1955
2196
  variant: "title-4",
1956
2197
  style: {
1957
- padding: g.space4,
1958
- paddingBottom: n ? 0 : g.space4,
2198
+ padding: p.space4,
2199
+ paddingBottom: n ? 0 : p.space4,
1959
2200
  textAlign: "center",
1960
- fontWeight: String(g.fontWeightBold)
2201
+ fontWeight: String(p.fontWeightBold)
1961
2202
  },
1962
2203
  children: t
1963
2204
  }),
1964
- n && /* @__PURE__ */ O(T, {
2205
+ n && /* @__PURE__ */ A(D, {
1965
2206
  style: {
1966
- paddingVertical: g.space2,
1967
- paddingHorizontal: g.space4
2207
+ paddingVertical: p.space2,
2208
+ paddingHorizontal: p.space4
1968
2209
  },
1969
- children: typeof n == "string" ? /* @__PURE__ */ O(U, {
2210
+ children: typeof n == "string" ? /* @__PURE__ */ A(G, {
1970
2211
  variant: "body",
1971
2212
  style: {
1972
2213
  textAlign: "center",
1973
- opacity: g.opacityDim
2214
+ opacity: p.opacityDim
1974
2215
  },
1975
2216
  children: n
1976
2217
  }) : n
1977
2218
  }),
1978
- D()
2219
+ E()
1979
2220
  ]
1980
2221
  })
1981
2222
  })
1982
2223
  })
1983
2224
  });
1984
- }, De = r(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
1985
- let s = I();
1986
- return /* @__PURE__ */ k(T, {
2225
+ }, tt = 4, nt = 8, rt = 280;
2226
+ function it(e, t) {
2227
+ let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - tt : e.y + e.height + tt;
2228
+ return {
2229
+ top: Math.max(nt, Math.min(i, n - t - nt)),
2230
+ left: e.x,
2231
+ width: e.width,
2232
+ flipUp: r
2233
+ };
2234
+ }
2235
+ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
2236
+ let l = U(), u = W(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [x, w] = f(null), T = d(null), E = d(new m.Value(0)).current, O = e.find((e) => e.value === t), k = () => {
2237
+ a || h(!0);
2238
+ }, N = () => h(!1), P = (e) => {
2239
+ e.disabled || (n?.(e.value), N());
2240
+ };
2241
+ return c(() => {
2242
+ if (!p) {
2243
+ _(null), y(null), w(null);
2244
+ return;
2245
+ }
2246
+ T.current?.measureInWindow((e, t, n, r) => {
2247
+ _({
2248
+ x: e,
2249
+ y: t,
2250
+ width: n,
2251
+ height: r
2252
+ });
2253
+ });
2254
+ }, [p]), c(() => {
2255
+ g === null || v === null || w(it(g, v));
2256
+ }, [g, v]), c(() => {
2257
+ if (x) {
2258
+ if (u) {
2259
+ E.setValue(1);
2260
+ return;
2261
+ }
2262
+ E.setValue(0), m.timing(E, {
2263
+ toValue: 1,
2264
+ duration: l.durationFast,
2265
+ useNativeDriver: !0
2266
+ }).start();
2267
+ }
2268
+ }, [
2269
+ x,
2270
+ u,
2271
+ E,
2272
+ l.durationFast
2273
+ ]), /* @__PURE__ */ j(D, {
2274
+ style: o,
2275
+ children: [/* @__PURE__ */ j(S, {
2276
+ ref: T,
2277
+ testID: s,
2278
+ role: "combobox",
2279
+ accessibilityLabel: i,
2280
+ accessibilityState: {
2281
+ expanded: p,
2282
+ disabled: !!a
2283
+ },
2284
+ disabled: a,
2285
+ onPress: () => p ? N() : k(),
2286
+ style: ({ pressed: e }) => ({
2287
+ flexDirection: "row",
2288
+ alignItems: "center",
2289
+ justifyContent: "space-between",
2290
+ gap: l.space1,
2291
+ minHeight: 36,
2292
+ minWidth: 160,
2293
+ paddingVertical: 7,
2294
+ paddingHorizontal: l.space2,
2295
+ backgroundColor: e ? l.activeOverlay : l.cardBgColor,
2296
+ borderWidth: 1,
2297
+ borderColor: p ? l.accentColor : l.cardShadeColor,
2298
+ borderRadius: l.radiusMd,
2299
+ opacity: a ? l.opacityDisabled : 1
2300
+ }),
2301
+ children: [/* @__PURE__ */ A(G, {
2302
+ numberOfLines: 1,
2303
+ style: {
2304
+ flex: 1,
2305
+ fontSize: l.fontSizeBody,
2306
+ color: l.windowFgColor,
2307
+ opacity: O ? 1 : l.opacityDim
2308
+ },
2309
+ children: O?.label ?? r
2310
+ }), /* @__PURE__ */ A(q, {
2311
+ icon: F,
2312
+ size: "md",
2313
+ color: "default",
2314
+ style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
2315
+ })]
2316
+ }), /* @__PURE__ */ A(b, {
2317
+ visible: p,
2318
+ transparent: !0,
2319
+ animationType: "none",
2320
+ statusBarTranslucent: !0,
2321
+ children: /* @__PURE__ */ A(S, {
2322
+ onPress: N,
2323
+ accessible: !1,
2324
+ style: { flex: 1 },
2325
+ testID: s ? `${s}-backdrop` : void 0,
2326
+ children: /* @__PURE__ */ A(m.View, {
2327
+ onLayout: (e) => {
2328
+ y(Math.min(e.nativeEvent.layout.height, rt));
2329
+ },
2330
+ role: "list",
2331
+ accessible: !0,
2332
+ style: [{
2333
+ position: "absolute",
2334
+ maxHeight: rt,
2335
+ backgroundColor: l.popoverBgColor,
2336
+ borderWidth: 1,
2337
+ borderColor: l.cardShadeColor,
2338
+ borderRadius: l.radiusMd,
2339
+ paddingVertical: 4,
2340
+ shadowColor: "#000",
2341
+ shadowOffset: {
2342
+ width: 0,
2343
+ height: 4
2344
+ },
2345
+ shadowOpacity: .15,
2346
+ shadowRadius: 12,
2347
+ elevation: 6
2348
+ }, x ? {
2349
+ top: x.top,
2350
+ left: x.left,
2351
+ width: x.width,
2352
+ opacity: E
2353
+ } : {
2354
+ top: -9999,
2355
+ left: -9999,
2356
+ width: 200,
2357
+ opacity: 0
2358
+ }],
2359
+ children: /* @__PURE__ */ A(C, {
2360
+ bounces: !1,
2361
+ children: e.map((e) => {
2362
+ let n = e.value === t;
2363
+ return /* @__PURE__ */ j(S, {
2364
+ role: "option",
2365
+ accessibilityState: {
2366
+ selected: n,
2367
+ disabled: !!e.disabled
2368
+ },
2369
+ disabled: e.disabled,
2370
+ onPress: () => P(e),
2371
+ style: ({ pressed: t }) => ({
2372
+ flexDirection: "row",
2373
+ alignItems: "center",
2374
+ gap: l.space2,
2375
+ minHeight: 40,
2376
+ paddingVertical: 8,
2377
+ paddingHorizontal: l.space2,
2378
+ backgroundColor: t ? l.activeOverlay : "transparent",
2379
+ opacity: e.disabled ? l.opacityDisabled : 1
2380
+ }),
2381
+ children: [/* @__PURE__ */ j(D, {
2382
+ style: {
2383
+ flex: 1,
2384
+ gap: 1
2385
+ },
2386
+ children: [/* @__PURE__ */ A(G, {
2387
+ numberOfLines: 1,
2388
+ style: {
2389
+ fontSize: l.fontSizeBody,
2390
+ color: l.windowFgColor,
2391
+ fontWeight: n ? String(l.fontWeightSemibold) : void 0
2392
+ },
2393
+ children: e.label
2394
+ }), e.description && /* @__PURE__ */ A(G, {
2395
+ numberOfLines: 1,
2396
+ style: {
2397
+ fontSize: l.fontSizeCaption,
2398
+ color: l.windowFgColor,
2399
+ opacity: l.opacityDim
2400
+ },
2401
+ children: e.description
2402
+ })]
2403
+ }), n && /* @__PURE__ */ A(q, {
2404
+ icon: M,
2405
+ size: "md",
2406
+ color: "blue"
2407
+ })]
2408
+ }, e.value);
2409
+ })
2410
+ })
2411
+ })
2412
+ })
2413
+ })]
2414
+ });
2415
+ }, ot = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
2416
+ let s = U();
2417
+ return /* @__PURE__ */ j(D, {
1987
2418
  ref: o,
1988
2419
  style: [{
1989
2420
  flexDirection: "row",
@@ -1997,7 +2428,7 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
1997
2428
  }, i],
1998
2429
  ...a,
1999
2430
  children: [
2000
- /* @__PURE__ */ O(T, {
2431
+ /* @__PURE__ */ A(D, {
2001
2432
  style: {
2002
2433
  flex: 1,
2003
2434
  flexDirection: "row",
@@ -2006,14 +2437,14 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2006
2437
  },
2007
2438
  children: t
2008
2439
  }),
2009
- /* @__PURE__ */ O(T, {
2440
+ /* @__PURE__ */ A(D, {
2010
2441
  accessibilityLiveRegion: "polite",
2011
2442
  style: {
2012
2443
  alignItems: "center",
2013
2444
  justifyContent: "center",
2014
2445
  paddingHorizontal: s.space1
2015
2446
  },
2016
- children: typeof e == "string" ? /* @__PURE__ */ O(C, {
2447
+ children: typeof e == "string" ? /* @__PURE__ */ A(T, {
2017
2448
  numberOfLines: 1,
2018
2449
  ellipsizeMode: "tail",
2019
2450
  style: {
@@ -2026,7 +2457,7 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2026
2457
  children: e
2027
2458
  }) : e
2028
2459
  }),
2029
- /* @__PURE__ */ O(T, {
2460
+ /* @__PURE__ */ A(D, {
2030
2461
  style: {
2031
2462
  flex: 1,
2032
2463
  flexDirection: "row",
@@ -2038,22 +2469,22 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2038
2469
  })
2039
2470
  ]
2040
2471
  });
2041
- }), Oe = r(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
2042
- let c = I();
2043
- return /* @__PURE__ */ O(b, {
2472
+ }), st = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
2473
+ let c = U();
2474
+ return /* @__PURE__ */ A(S, {
2044
2475
  ref: s,
2045
2476
  accessibilityRole: "link",
2046
2477
  accessibilityHint: t ? "Opens in browser" : void 0,
2047
- onPress: a ?? (() => _.openURL(e)),
2478
+ onPress: a ?? (() => y.openURL(e)),
2048
2479
  style: r,
2049
2480
  ...o,
2050
- children: ({ pressed: e }) => /* @__PURE__ */ k(U, {
2481
+ children: ({ pressed: e }) => /* @__PURE__ */ j(G, {
2051
2482
  style: [{
2052
2483
  color: c.accentColor,
2053
2484
  textDecorationLine: e ? "underline" : "none",
2054
2485
  opacity: e ? .7 : 1
2055
2486
  }, i],
2056
- children: [n, t && /* @__PURE__ */ O(C, {
2487
+ children: [n, t && /* @__PURE__ */ A(T, {
2057
2488
  accessibilityElementsHidden: !0,
2058
2489
  importantForAccessibility: "no",
2059
2490
  style: { fontSize: 12 },
@@ -2061,9 +2492,9 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2061
2492
  })]
2062
2493
  })
2063
2494
  });
2064
- }), ke = ({ segments: e, onNavigate: n, style: r, ...i }) => {
2065
- let a = I();
2066
- return /* @__PURE__ */ O(T, {
2495
+ }), ct = ({ segments: e, onNavigate: n, style: r, ...i }) => {
2496
+ let a = U();
2497
+ return /* @__PURE__ */ A(D, {
2067
2498
  style: [{
2068
2499
  flexDirection: "row",
2069
2500
  flexWrap: "wrap",
@@ -2072,7 +2503,7 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2072
2503
  ...i,
2073
2504
  children: e.map((r, i) => {
2074
2505
  let o = i === e.length - 1;
2075
- return /* @__PURE__ */ k(t, { children: [i > 0 && /* @__PURE__ */ O(C, {
2506
+ return /* @__PURE__ */ j(t, { children: [i > 0 && /* @__PURE__ */ A(T, {
2076
2507
  accessibilityElementsHidden: !0,
2077
2508
  importantForAccessibility: "no",
2078
2509
  style: {
@@ -2082,7 +2513,7 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2082
2513
  fontSize: a.fontSizeBody
2083
2514
  },
2084
2515
  children: "›"
2085
- }), o ? /* @__PURE__ */ k(T, {
2516
+ }), o ? /* @__PURE__ */ j(D, {
2086
2517
  style: {
2087
2518
  flexDirection: "row",
2088
2519
  alignItems: "center",
@@ -2091,10 +2522,10 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2091
2522
  paddingHorizontal: a.space1,
2092
2523
  maxWidth: 200
2093
2524
  },
2094
- children: [r.icon && /* @__PURE__ */ O(T, {
2525
+ children: [r.icon && /* @__PURE__ */ A(D, {
2095
2526
  style: { flexShrink: 0 },
2096
2527
  children: r.icon
2097
- }), /* @__PURE__ */ O(C, {
2528
+ }), /* @__PURE__ */ A(T, {
2098
2529
  numberOfLines: 1,
2099
2530
  ellipsizeMode: "tail",
2100
2531
  style: {
@@ -2105,7 +2536,7 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2105
2536
  },
2106
2537
  children: r.label
2107
2538
  })]
2108
- }) : /* @__PURE__ */ k(b, {
2539
+ }) : /* @__PURE__ */ j(S, {
2109
2540
  accessibilityRole: "button",
2110
2541
  accessibilityLabel: r.label,
2111
2542
  onPress: () => n?.(r.path, i),
@@ -2119,10 +2550,10 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2119
2550
  borderRadius: a.radiusSm,
2120
2551
  backgroundColor: e ? a.activeOverlay : "transparent"
2121
2552
  }),
2122
- children: [r.icon && /* @__PURE__ */ O(T, {
2553
+ children: [r.icon && /* @__PURE__ */ A(D, {
2123
2554
  style: { flexShrink: 0 },
2124
2555
  children: r.icon
2125
- }), /* @__PURE__ */ O(C, {
2556
+ }), /* @__PURE__ */ A(T, {
2126
2557
  numberOfLines: 1,
2127
2558
  ellipsizeMode: "tail",
2128
2559
  style: {
@@ -2135,48 +2566,48 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2135
2566
  })] }, r.path);
2136
2567
  })
2137
2568
  });
2138
- }, Ae = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
2139
- let o = I(), c = P(), l = H(), f = e == null, m = f ? void 0 : Math.min(1, Math.max(0, e)), g = m === void 0 ? void 0 : m * 100, _ = u(new p.Value(m ?? 0)).current, v = u(new p.Value(0)).current, [y, b] = d(0), x = (e) => {
2569
+ }, lt = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
2570
+ let o = U(), s = V(), l = W(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
2140
2571
  b(e.nativeEvent.layout.width), i?.(e);
2141
2572
  };
2142
- s(() => {
2143
- if (f) return;
2573
+ c(() => {
2574
+ if (u) return;
2144
2575
  let [e, t, n, r] = o.easingDefault;
2145
- p.timing(_, {
2146
- toValue: m ?? 0,
2576
+ m.timing(g, {
2577
+ toValue: p ?? 0,
2147
2578
  duration: l ? 0 : o.durationNormal,
2148
- easing: h.bezier(e, t, n, r),
2579
+ easing: _.bezier(e, t, n, r),
2149
2580
  useNativeDriver: !0
2150
2581
  }).start();
2151
2582
  }, [
2152
- m,
2153
- f,
2583
+ p,
2584
+ u,
2154
2585
  l,
2155
- _,
2586
+ g,
2156
2587
  o.durationNormal,
2157
2588
  o.easingDefault
2158
- ]), s(() => {
2159
- if (!f || l) return;
2589
+ ]), c(() => {
2590
+ if (!u || l) return;
2160
2591
  v.setValue(0);
2161
- let [e, t, n, r] = o.easingDefault, i = p.loop(p.timing(v, {
2592
+ let [e, t, n, r] = o.easingDefault, i = m.loop(m.timing(v, {
2162
2593
  toValue: 1,
2163
2594
  duration: 1400,
2164
- easing: h.bezier(e, t, n, r),
2595
+ easing: _.bezier(e, t, n, r),
2165
2596
  useNativeDriver: !0
2166
2597
  }));
2167
2598
  return i.start(), () => i.stop();
2168
2599
  }, [
2169
- f,
2600
+ u,
2170
2601
  l,
2171
2602
  v,
2172
2603
  o.easingDefault
2173
2604
  ]);
2174
- let S = c === "dark" ? o.dark2 : o.light3, C = {
2605
+ let S = s === "dark" ? o.dark2 : o.light3, C = {
2175
2606
  accent: o.accentBgColor,
2176
2607
  success: o.successBgColor,
2177
2608
  warning: o.warningBgColor,
2178
2609
  error: o.errorBgColor
2179
- }, w = f ? l ? {
2610
+ }, w = u ? l ? {
2180
2611
  left: 0,
2181
2612
  width: "100%",
2182
2613
  opacity: .5
@@ -2190,16 +2621,16 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2190
2621
  } : {
2191
2622
  width: "100%",
2192
2623
  transformOrigin: "left",
2193
- transform: [{ scaleX: _ }]
2624
+ transform: [{ scaleX: g }]
2194
2625
  };
2195
- return /* @__PURE__ */ O(p.View, {
2626
+ return /* @__PURE__ */ A(m.View, {
2196
2627
  accessible: !0,
2197
2628
  accessibilityRole: "progressbar",
2198
2629
  accessibilityLabel: n,
2199
- accessibilityValue: m === void 0 ? void 0 : {
2630
+ accessibilityValue: p === void 0 ? void 0 : {
2200
2631
  min: 0,
2201
2632
  max: 100,
2202
- now: Math.round(g)
2633
+ now: Math.round(h)
2203
2634
  },
2204
2635
  onLayout: x,
2205
2636
  style: [{
@@ -2210,42 +2641,42 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2210
2641
  overflow: "hidden"
2211
2642
  }, r],
2212
2643
  ...a,
2213
- children: /* @__PURE__ */ O(p.View, { style: [{
2214
- position: f ? "absolute" : "relative",
2644
+ children: /* @__PURE__ */ A(m.View, { style: [{
2645
+ position: u ? "absolute" : "relative",
2215
2646
  top: 0,
2216
2647
  height: "100%",
2217
2648
  borderRadius: o.radiusPill,
2218
2649
  backgroundColor: C[t]
2219
2650
  }, w] })
2220
2651
  });
2221
- }, J = 18, Y = 6, je = r(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
2222
- let o = I(), c = P(), l = F(), d = u(new p.Value(+!!e)).current, f = u(!0);
2223
- s(() => {
2652
+ }, ut = 18, dt = 6, ft = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
2653
+ let o = U(), s = V(), l = H(), u = d(new m.Value(+!!e)).current, f = d(!0);
2654
+ c(() => {
2224
2655
  if (f.current) {
2225
2656
  f.current = !1;
2226
2657
  return;
2227
2658
  }
2228
2659
  let [t, n, r, i] = o.easingDefault;
2229
- p.timing(d, {
2660
+ m.timing(u, {
2230
2661
  toValue: +!!e,
2231
2662
  duration: o.durationFast,
2232
- easing: h.bezier(t, n, r, i),
2663
+ easing: _.bezier(t, n, r, i),
2233
2664
  useNativeDriver: !1
2234
2665
  }).start();
2235
2666
  }, [
2236
2667
  e,
2237
- d,
2668
+ u,
2238
2669
  o.durationFast,
2239
2670
  o.easingDefault
2240
2671
  ]);
2241
- let m = l === "more" ? o.windowFgColor : c === "dark" ? o.dark1 : o.light4, g = d.interpolate({
2672
+ let p = l === "more" ? o.windowFgColor : s === "dark" ? o.dark1 : o.light4, h = u.interpolate({
2242
2673
  inputRange: [0, 1],
2243
- outputRange: [m, o.accentBgColor]
2244
- }), _ = d.interpolate({
2674
+ outputRange: [p, o.accentBgColor]
2675
+ }), g = u.interpolate({
2245
2676
  inputRange: [0, 1],
2246
2677
  outputRange: [o.cardBgColor, o.accentBgColor]
2247
2678
  });
2248
- return /* @__PURE__ */ O(b, {
2679
+ return /* @__PURE__ */ A(S, {
2249
2680
  ref: a,
2250
2681
  disabled: n,
2251
2682
  accessibilityRole: "radio",
@@ -2258,52 +2689,52 @@ var Ce = r(function({ interactive: e = !1, padding: t = "md", style: n, children
2258
2689
  },
2259
2690
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
2260
2691
  ...i,
2261
- children: /* @__PURE__ */ O(p.View, {
2692
+ children: /* @__PURE__ */ A(m.View, {
2262
2693
  style: {
2263
- width: J,
2264
- height: J,
2694
+ width: ut,
2695
+ height: ut,
2265
2696
  alignItems: "center",
2266
2697
  justifyContent: "center",
2267
2698
  borderRadius: o.radiusPill,
2268
2699
  borderWidth: l === "more" ? 2 : 1.5,
2269
- borderColor: g,
2270
- backgroundColor: _
2700
+ borderColor: h,
2701
+ backgroundColor: g
2271
2702
  },
2272
- children: /* @__PURE__ */ O(p.View, { style: {
2273
- width: Y,
2274
- height: Y,
2703
+ children: /* @__PURE__ */ A(m.View, { style: {
2704
+ width: dt,
2705
+ height: dt,
2275
2706
  borderRadius: o.radiusPill,
2276
2707
  backgroundColor: "#fff",
2277
- opacity: d
2708
+ opacity: u
2278
2709
  } })
2279
2710
  })
2280
2711
  });
2281
2712
  });
2282
2713
  //#endregion
2283
2714
  //#region src/components/SearchBar/SearchBar.tsx
2284
- function Me(e, t) {
2715
+ function pt(e, t) {
2285
2716
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
2286
2717
  if (!n) return e;
2287
2718
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
2288
2719
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
2289
2720
  }
2290
- var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, placeholder: a = "Search…", editable: o = !0, inline: l = !1, closeLabel: d = "Cancel", style: f, inputStyle: p, ...m }, h) {
2291
- let g = I(), _ = u(null);
2292
- if (c(h, () => _.current, []), s(() => {
2721
+ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, placeholder: a = "Search…", editable: o = !0, inline: s = !1, closeLabel: u = "Cancel", style: f, inputStyle: p, ...m }, h) {
2722
+ let g = U(), _ = d(null);
2723
+ if (l(h, () => _.current, []), c(() => {
2293
2724
  if (!e) return;
2294
2725
  let t = requestAnimationFrame(() => _.current?.focus());
2295
2726
  return () => cancelAnimationFrame(t);
2296
2727
  }, [e]), !e) return null;
2297
- let v = !o, y = typeof i == "string" && i.length > 0, x = l ? "transparent" : g.headerbarBgColor, S = l ? "transparent" : g.headerbarShadeColor;
2298
- return /* @__PURE__ */ k(T, {
2728
+ let v = !o, y = typeof i == "string" && i.length > 0, b = s ? "transparent" : g.headerbarBgColor, x = s ? "transparent" : g.headerbarShadeColor;
2729
+ return /* @__PURE__ */ j(D, {
2299
2730
  style: f,
2300
- children: [/* @__PURE__ */ k(T, {
2731
+ children: [/* @__PURE__ */ j(D, {
2301
2732
  style: {
2302
2733
  flexDirection: "row",
2303
2734
  alignItems: "center",
2304
2735
  gap: g.space1
2305
2736
  },
2306
- children: [/* @__PURE__ */ k(T, {
2737
+ children: [/* @__PURE__ */ j(D, {
2307
2738
  style: {
2308
2739
  flex: 1,
2309
2740
  flexDirection: "row",
@@ -2311,13 +2742,13 @@ var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2311
2742
  gap: g.space1,
2312
2743
  paddingVertical: g.space1,
2313
2744
  paddingHorizontal: g.space2,
2314
- backgroundColor: x,
2745
+ backgroundColor: b,
2315
2746
  borderBottomWidth: 1,
2316
- borderBottomColor: S,
2747
+ borderBottomColor: x,
2317
2748
  opacity: v ? g.opacityDisabled : 1
2318
2749
  },
2319
2750
  children: [
2320
- /* @__PURE__ */ O(C, {
2751
+ /* @__PURE__ */ A(T, {
2321
2752
  accessibilityElementsHidden: !0,
2322
2753
  importantForAccessibility: "no",
2323
2754
  style: {
@@ -2326,12 +2757,12 @@ var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2326
2757
  },
2327
2758
  children: "🔍"
2328
2759
  }),
2329
- /* @__PURE__ */ O(w, {
2760
+ /* @__PURE__ */ A(E, {
2330
2761
  ref: _,
2331
2762
  editable: o,
2332
2763
  value: i,
2333
2764
  placeholder: a,
2334
- placeholderTextColor: Me(g.windowFgColor, g.opacityDim),
2765
+ placeholderTextColor: pt(g.windowFgColor, g.opacityDim),
2335
2766
  style: [{
2336
2767
  flex: 1,
2337
2768
  padding: 0,
@@ -2342,7 +2773,7 @@ var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2342
2773
  }, p],
2343
2774
  ...m
2344
2775
  }),
2345
- y && /* @__PURE__ */ O(b, {
2776
+ y && /* @__PURE__ */ A(S, {
2346
2777
  accessibilityRole: "button",
2347
2778
  accessibilityLabel: "Clear search",
2348
2779
  disabled: v,
@@ -2359,7 +2790,7 @@ var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2359
2790
  opacity: v ? g.opacityDisabled : 1,
2360
2791
  backgroundColor: e ? g.activeOverlay : "transparent"
2361
2792
  }),
2362
- children: /* @__PURE__ */ O(C, {
2793
+ children: /* @__PURE__ */ A(T, {
2363
2794
  style: {
2364
2795
  fontSize: g.fontSizeBody,
2365
2796
  color: g.windowFgColor
@@ -2368,30 +2799,30 @@ var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2368
2799
  })
2369
2800
  })
2370
2801
  ]
2371
- }), t && /* @__PURE__ */ O(b, {
2802
+ }), t && /* @__PURE__ */ A(S, {
2372
2803
  accessibilityRole: "button",
2373
- accessibilityLabel: d,
2804
+ accessibilityLabel: u,
2374
2805
  onPress: t,
2375
2806
  hitSlop: 8,
2376
- children: /* @__PURE__ */ O(C, {
2807
+ children: /* @__PURE__ */ A(T, {
2377
2808
  style: {
2378
2809
  fontFamily: g.fontFamily,
2379
2810
  fontSize: g.fontSizeBody,
2380
2811
  color: g.accentColor
2381
2812
  },
2382
- children: d
2813
+ children: u
2383
2814
  })
2384
2815
  })]
2385
- }), r && /* @__PURE__ */ O(T, {
2816
+ }), r && /* @__PURE__ */ A(D, {
2386
2817
  style: {
2387
2818
  flexDirection: "row",
2388
2819
  flexWrap: "wrap",
2389
2820
  gap: g.space1,
2390
2821
  padding: g.space1,
2391
2822
  paddingHorizontal: g.space2,
2392
- backgroundColor: x,
2823
+ backgroundColor: b,
2393
2824
  borderBottomWidth: 1,
2394
- borderBottomColor: S
2825
+ borderBottomColor: x
2395
2826
  },
2396
2827
  children: r
2397
2828
  })]
@@ -2399,32 +2830,32 @@ var Ne = r(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2399
2830
  });
2400
2831
  //#endregion
2401
2832
  //#region src/components/Sidebar/filterUtils.ts
2402
- function X(t, n) {
2833
+ function ht(t, n) {
2403
2834
  let r = 0;
2404
2835
  return e.forEach(t, (e) => {
2405
- if (!i(e)) return;
2836
+ if (!a(e)) return;
2406
2837
  let t = e.props;
2407
- typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += X(t.children, n));
2838
+ typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += ht(t.children, n));
2408
2839
  }), r;
2409
2840
  }
2410
- function Pe(e, t) {
2411
- if (!t || !i(e)) return !0;
2841
+ function gt(e, t) {
2842
+ if (!t || !a(e)) return !0;
2412
2843
  let n = e.props;
2413
- return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? X(n.children, t) > 0 : !0;
2844
+ return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? ht(n.children, t) > 0 : !0;
2414
2845
  }
2415
2846
  //#endregion
2416
2847
  //#region src/components/Sidebar/Sidebar.tsx
2417
- var Z = n(!1);
2418
- function Q() {
2419
- return o(Z);
2848
+ var _t = r(!1);
2849
+ function vt() {
2850
+ return s(_t);
2420
2851
  }
2421
- var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
2422
- let c = I(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => Pe(e, i)), d = !l || u.length > 0;
2423
- return /* @__PURE__ */ O(Z.Provider, {
2852
+ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
2853
+ let c = U(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => gt(e, i)), d = !l || u.length > 0;
2854
+ return /* @__PURE__ */ A(_t.Provider, {
2424
2855
  value: r,
2425
- children: /* @__PURE__ */ O($.Provider, {
2856
+ children: /* @__PURE__ */ A(Z.Provider, {
2426
2857
  value: i,
2427
- children: /* @__PURE__ */ O(T, {
2858
+ children: /* @__PURE__ */ A(D, {
2428
2859
  ref: s,
2429
2860
  style: [{
2430
2861
  flexShrink: 0,
@@ -2434,9 +2865,9 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2434
2865
  borderRightColor: c.headerbarBorderColor
2435
2866
  }, a],
2436
2867
  ...o,
2437
- children: /* @__PURE__ */ O(x, {
2868
+ children: /* @__PURE__ */ A(C, {
2438
2869
  contentContainerStyle: { padding: c.space1 },
2439
- children: l && !d ? /* @__PURE__ */ O(U, {
2870
+ children: l && !d ? /* @__PURE__ */ A(G, {
2440
2871
  variant: "caption",
2441
2872
  color: "dim",
2442
2873
  style: {
@@ -2444,7 +2875,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2444
2875
  padding: c.space4
2445
2876
  },
2446
2877
  children: "No items match your search."
2447
- }) : u.map((e, n) => /* @__PURE__ */ k(t, { children: [n > 0 && /* @__PURE__ */ O(W, {
2878
+ }) : u.map((e, n) => /* @__PURE__ */ j(t, { children: [n > 0 && /* @__PURE__ */ A(X, {
2448
2879
  testID: "sidebar-separator",
2449
2880
  style: { marginVertical: c.space1 }
2450
2881
  }), e] }, n))
@@ -2452,9 +2883,9 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2452
2883
  })
2453
2884
  })
2454
2885
  });
2455
- }), Ie = r(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...s }, c) {
2456
- let l = I(), u = Q(), d = o($);
2457
- return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ k(b, {
2886
+ }), bt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
2887
+ let l = U(), u = vt(), d = s(Z);
2888
+ return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ j(S, {
2458
2889
  ref: c,
2459
2890
  disabled: i,
2460
2891
  accessibilityRole: "button",
@@ -2480,16 +2911,16 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2480
2911
  },
2481
2912
  a
2482
2913
  ],
2483
- ...s,
2914
+ ...o,
2484
2915
  children: [
2485
- t && /* @__PURE__ */ O(T, {
2916
+ t && /* @__PURE__ */ A(D, {
2486
2917
  style: {
2487
2918
  flexShrink: 0,
2488
2919
  opacity: n ? 1 : .85
2489
2920
  },
2490
2921
  children: t
2491
2922
  }),
2492
- !u && /* @__PURE__ */ O(U, {
2923
+ !u && /* @__PURE__ */ A(G, {
2493
2924
  numberOfLines: 1,
2494
2925
  ellipsizeMode: "tail",
2495
2926
  style: {
@@ -2500,22 +2931,22 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2500
2931
  },
2501
2932
  children: e
2502
2933
  }),
2503
- !u && r && /* @__PURE__ */ O(T, {
2934
+ !u && r && /* @__PURE__ */ A(D, {
2504
2935
  style: { flexShrink: 0 },
2505
2936
  children: r
2506
2937
  })
2507
2938
  ]
2508
2939
  });
2509
- }), Le = r(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: s, style: l, ...u }, f) {
2510
- let p = I(), [m, h] = d(r), g = i !== void 0, _ = g ? i : m, v = Q(), y = o($), x = (e) => {
2940
+ }), xt = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
2941
+ let p = U(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = vt(), y = s(Z), b = (e) => {
2511
2942
  g || h(e), a?.(e);
2512
2943
  };
2513
- if (c(f, () => ({
2514
- expand: () => x(!0),
2515
- collapse: () => x(!1),
2516
- toggle: () => x(!_)
2517
- })), !(y.length === 0 || X(s, y) > 0)) return null;
2518
- let S = v ? !0 : _, C = !v && !!(e || t), w = (e || t) && /* @__PURE__ */ k(T, {
2944
+ if (l(d, () => ({
2945
+ expand: () => b(!0),
2946
+ collapse: () => b(!1),
2947
+ toggle: () => b(!_)
2948
+ })), !(y.length === 0 || ht(o, y) > 0)) return null;
2949
+ let x = v ? !0 : _, C = !v && !!(e || t), w = (e || t) && /* @__PURE__ */ j(D, {
2519
2950
  style: {
2520
2951
  flexDirection: "row",
2521
2952
  alignItems: "center",
@@ -2526,21 +2957,21 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2526
2957
  marginBottom: 2
2527
2958
  },
2528
2959
  children: [
2529
- t && /* @__PURE__ */ O(T, {
2960
+ t && /* @__PURE__ */ A(D, {
2530
2961
  style: {
2531
2962
  flexShrink: 0,
2532
2963
  opacity: .7
2533
2964
  },
2534
2965
  children: t
2535
2966
  }),
2536
- e && /* @__PURE__ */ O(U, {
2967
+ e && /* @__PURE__ */ A(G, {
2537
2968
  variant: "caption-heading",
2538
2969
  color: "dim",
2539
2970
  style: { flex: 1 },
2540
2971
  numberOfLines: 1,
2541
2972
  children: e
2542
2973
  }),
2543
- n && /* @__PURE__ */ O(U, {
2974
+ n && /* @__PURE__ */ A(G, {
2544
2975
  variant: "caption",
2545
2976
  color: "dim",
2546
2977
  style: { flexShrink: 0 },
@@ -2548,38 +2979,38 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2548
2979
  })
2549
2980
  ]
2550
2981
  });
2551
- return /* @__PURE__ */ k(T, {
2552
- style: l,
2982
+ return /* @__PURE__ */ j(D, {
2983
+ style: c,
2553
2984
  ...u,
2554
- children: [C && (n ? /* @__PURE__ */ O(b, {
2985
+ children: [C && (n ? /* @__PURE__ */ A(S, {
2555
2986
  accessibilityRole: "button",
2556
2987
  accessibilityState: { expanded: _ },
2557
2988
  accessibilityLabel: e,
2558
- onPress: () => x(!_),
2989
+ onPress: () => b(!_),
2559
2990
  children: w
2560
- }) : w), /* @__PURE__ */ O(T, {
2991
+ }) : w), /* @__PURE__ */ A(D, {
2561
2992
  accessible: !0,
2562
2993
  accessibilityRole: "list",
2563
2994
  style: {
2564
- display: S ? "flex" : "none",
2995
+ display: x ? "flex" : "none",
2565
2996
  gap: 2
2566
2997
  },
2567
- children: s
2998
+ children: o
2568
2999
  })]
2569
3000
  });
2570
- }), Re = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...c }) => {
2571
- let l = I(), d = H(), f = u(new p.Value(1)).current, m = a && !d;
2572
- if (s(() => {
2573
- if (!m) {
3001
+ }), St = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
3002
+ let l = U(), u = W(), f = d(new m.Value(1)).current, p = a && !u;
3003
+ if (c(() => {
3004
+ if (!p) {
2574
3005
  f.setValue(1);
2575
3006
  return;
2576
3007
  }
2577
- let [e, t, n, r] = l.easingDefault, i = h.bezier(e, t, n, r), a = p.loop(p.sequence([p.timing(f, {
3008
+ let [e, t, n, r] = l.easingDefault, i = _.bezier(e, t, n, r), a = m.loop(m.sequence([m.timing(f, {
2578
3009
  toValue: .5,
2579
3010
  duration: 700,
2580
3011
  easing: i,
2581
3012
  useNativeDriver: !0
2582
- }), p.timing(f, {
3013
+ }), m.timing(f, {
2583
3014
  toValue: 1,
2584
3015
  duration: 700,
2585
3016
  easing: i,
@@ -2587,16 +3018,16 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2587
3018
  })]));
2588
3019
  return a.start(), () => a.stop();
2589
3020
  }, [
2590
- m,
3021
+ p,
2591
3022
  f,
2592
3023
  l.easingDefault
2593
3024
  ]), e === "text") {
2594
3025
  let e = Math.max(1, Math.floor(i));
2595
- return /* @__PURE__ */ O(T, {
3026
+ return /* @__PURE__ */ A(D, {
2596
3027
  accessible: !1,
2597
3028
  style: [{ gap: 8 }, o],
2598
- ...c,
2599
- children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ O(p.View, { style: {
3029
+ ...s,
3030
+ children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ A(m.View, { style: {
2600
3031
  width: n === e - 1 ? "60%" : "100%",
2601
3032
  height: 12,
2602
3033
  borderRadius: l.radiusPill,
@@ -2605,7 +3036,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2605
3036
  } }, n))
2606
3037
  });
2607
3038
  }
2608
- let g = e === "circle" ? {
3039
+ let h = e === "circle" ? {
2609
3040
  width: r,
2610
3041
  height: r,
2611
3042
  borderRadius: r / 2
@@ -2614,19 +3045,19 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2614
3045
  height: n,
2615
3046
  borderRadius: l.radiusMd
2616
3047
  };
2617
- return /* @__PURE__ */ O(p.View, {
3048
+ return /* @__PURE__ */ A(m.View, {
2618
3049
  accessible: !1,
2619
3050
  style: [
2620
- g,
3051
+ h,
2621
3052
  {
2622
3053
  backgroundColor: l.skeletonBaseColor,
2623
3054
  opacity: f
2624
3055
  },
2625
3056
  o
2626
3057
  ],
2627
- ...c
3058
+ ...s
2628
3059
  });
2629
- }, ze = {
3060
+ }, Ct = {
2630
3061
  sm: {
2631
3062
  dimension: 16,
2632
3063
  borderWidth: 2
@@ -2639,67 +3070,67 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2639
3070
  dimension: 36,
2640
3071
  borderWidth: 3
2641
3072
  }
2642
- }, Be = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
2643
- let i = I(), a = P(), o = H(), c = u(new p.Value(0)).current;
2644
- s(() => {
2645
- c.setValue(0);
2646
- let e = p.loop(p.timing(c, {
3073
+ }, wt = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
3074
+ let i = U(), a = V(), o = W(), s = d(new m.Value(0)).current;
3075
+ c(() => {
3076
+ s.setValue(0);
3077
+ let e = m.loop(m.timing(s, {
2647
3078
  toValue: 1,
2648
3079
  duration: o ? 2e3 : 750,
2649
- easing: h.linear,
3080
+ easing: _.linear,
2650
3081
  useNativeDriver: !0
2651
3082
  }));
2652
3083
  return e.start(), () => e.stop();
2653
- }, [c, o]);
2654
- let l = c.interpolate({
3084
+ }, [s, o]);
3085
+ let l = s.interpolate({
2655
3086
  inputRange: [0, 1],
2656
3087
  outputRange: ["0deg", "360deg"]
2657
- }), { dimension: d, borderWidth: f } = ze[e], m = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
2658
- return /* @__PURE__ */ O(p.View, {
3088
+ }), { dimension: u, borderWidth: f } = Ct[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
3089
+ return /* @__PURE__ */ A(m.View, {
2659
3090
  accessible: !0,
2660
3091
  accessibilityRole: "progressbar",
2661
3092
  accessibilityLabel: t || void 0,
2662
3093
  accessibilityElementsHidden: t === "",
2663
3094
  importantForAccessibility: t === "" ? "no-hide-descendants" : "yes",
2664
3095
  style: [{
2665
- width: d,
2666
- height: d,
2667
- borderRadius: d / 2,
3096
+ width: u,
3097
+ height: u,
3098
+ borderRadius: u / 2,
2668
3099
  borderWidth: f,
2669
- borderColor: m,
3100
+ borderColor: p,
2670
3101
  borderTopColor: i.accentColor,
2671
3102
  transform: [{ rotate: l }]
2672
3103
  }, n],
2673
3104
  ...r
2674
3105
  });
2675
- }, Ve = 56, He = 28, Ue = 20, We = 3, Ge = 28, Ke = r(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
2676
- let o = I(), c = P(), l = F(), d = u(new p.Value(+!!e)).current, f = u(!0);
2677
- s(() => {
3106
+ }, Tt = 56, Et = 28, Dt = 20, Ot = 3, kt = 28, At = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
3107
+ let o = U(), s = V(), l = H(), u = d(new m.Value(+!!e)).current, f = d(!0);
3108
+ c(() => {
2678
3109
  if (f.current) {
2679
3110
  f.current = !1;
2680
3111
  return;
2681
3112
  }
2682
3113
  let [t, n, r, i] = o.easingDefault;
2683
- p.timing(d, {
3114
+ m.timing(u, {
2684
3115
  toValue: +!!e,
2685
3116
  duration: o.durationFast,
2686
- easing: h.bezier(t, n, r, i),
3117
+ easing: _.bezier(t, n, r, i),
2687
3118
  useNativeDriver: !1
2688
3119
  }).start();
2689
3120
  }, [
2690
3121
  e,
2691
- d,
3122
+ u,
2692
3123
  o.durationFast,
2693
3124
  o.easingDefault
2694
3125
  ]);
2695
- let m = c === "dark" ? o.dark2 : o.light4, g = c === "dark" ? o.light3 : "#fff", _ = d.interpolate({
3126
+ let p = s === "dark" ? o.dark2 : o.light4, h = s === "dark" ? o.light3 : "#fff", g = u.interpolate({
2696
3127
  inputRange: [0, 1],
2697
- outputRange: [m, o.accentBgColor]
2698
- }), v = d.interpolate({
3128
+ outputRange: [p, o.accentBgColor]
3129
+ }), v = u.interpolate({
2699
3130
  inputRange: [0, 1],
2700
3131
  outputRange: [o.borderSubtle, o.accentBgColor]
2701
3132
  });
2702
- return /* @__PURE__ */ O(b, {
3133
+ return /* @__PURE__ */ A(S, {
2703
3134
  ref: a,
2704
3135
  disabled: n,
2705
3136
  accessibilityRole: "switch",
@@ -2710,26 +3141,26 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2710
3141
  onPress: () => t?.(!e),
2711
3142
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
2712
3143
  ...i,
2713
- children: /* @__PURE__ */ O(p.View, {
3144
+ children: /* @__PURE__ */ A(m.View, {
2714
3145
  style: {
2715
- width: Ve,
2716
- height: He,
3146
+ width: Tt,
3147
+ height: Et,
2717
3148
  borderRadius: o.radiusPill,
2718
3149
  borderWidth: l === "more" ? 2 : 1,
2719
3150
  borderColor: v,
2720
- backgroundColor: _
3151
+ backgroundColor: g
2721
3152
  },
2722
- children: /* @__PURE__ */ O(p.View, { style: [{
3153
+ children: /* @__PURE__ */ A(m.View, { style: [{
2723
3154
  position: "absolute",
2724
- top: We,
2725
- left: We,
2726
- width: Ue,
2727
- height: Ue,
3155
+ top: Ot,
3156
+ left: Ot,
3157
+ width: Dt,
3158
+ height: Dt,
2728
3159
  borderRadius: o.radiusPill,
2729
- backgroundColor: e ? "#fff" : g,
2730
- transform: [{ translateX: d.interpolate({
3160
+ backgroundColor: e ? "#fff" : h,
3161
+ transform: [{ translateX: u.interpolate({
2731
3162
  inputRange: [0, 1],
2732
- outputRange: [0, Ge]
3163
+ outputRange: [0, kt]
2733
3164
  }) }]
2734
3165
  }, l !== "more" && {
2735
3166
  shadowColor: "#000",
@@ -2743,9 +3174,9 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2743
3174
  }] })
2744
3175
  })
2745
3176
  });
2746
- }), qe = r(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
2747
- let o = I();
2748
- return /* @__PURE__ */ O(x, {
3177
+ }), jt = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
3178
+ let o = U();
3179
+ return /* @__PURE__ */ A(C, {
2749
3180
  ref: a,
2750
3181
  horizontal: !0,
2751
3182
  showsHorizontalScrollIndicator: !1,
@@ -2769,9 +3200,9 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2769
3200
  ...i,
2770
3201
  children: e
2771
3202
  });
2772
- }), Je = r(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
2773
- let l = I();
2774
- return /* @__PURE__ */ k(b, {
3203
+ }), Mt = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
3204
+ let l = U();
3205
+ return /* @__PURE__ */ j(S, {
2775
3206
  ref: c,
2776
3207
  disabled: o,
2777
3208
  accessibilityRole: "tab",
@@ -2795,11 +3226,11 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2795
3226
  }),
2796
3227
  ...s,
2797
3228
  children: [
2798
- t && /* @__PURE__ */ O(T, {
3229
+ t && /* @__PURE__ */ A(D, {
2799
3230
  style: { flexShrink: 0 },
2800
3231
  children: t
2801
3232
  }),
2802
- /* @__PURE__ */ O(C, {
3233
+ /* @__PURE__ */ A(T, {
2803
3234
  numberOfLines: 1,
2804
3235
  ellipsizeMode: "tail",
2805
3236
  style: {
@@ -2810,7 +3241,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2810
3241
  },
2811
3242
  children: e
2812
3243
  }),
2813
- a !== void 0 && /* @__PURE__ */ O(T, {
3244
+ a !== void 0 && /* @__PURE__ */ A(D, {
2814
3245
  style: {
2815
3246
  flexShrink: 0,
2816
3247
  minWidth: 18,
@@ -2821,7 +3252,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2821
3252
  justifyContent: "center",
2822
3253
  backgroundColor: l.accentBgColor
2823
3254
  },
2824
- children: /* @__PURE__ */ O(C, {
3255
+ children: /* @__PURE__ */ A(T, {
2825
3256
  style: {
2826
3257
  fontFamily: l.fontFamily,
2827
3258
  fontSize: 11,
@@ -2831,7 +3262,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2831
3262
  children: a > 99 ? "99+" : a
2832
3263
  })
2833
3264
  }),
2834
- r && /* @__PURE__ */ O(b, {
3265
+ r && /* @__PURE__ */ A(S, {
2835
3266
  accessibilityRole: "button",
2836
3267
  accessibilityLabel: i,
2837
3268
  hitSlop: 8,
@@ -2845,7 +3276,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2845
3276
  borderRadius: l.radiusSm,
2846
3277
  backgroundColor: e ? l.activeOverlay : "transparent"
2847
3278
  }),
2848
- children: /* @__PURE__ */ O(C, {
3279
+ children: /* @__PURE__ */ A(T, {
2849
3280
  style: {
2850
3281
  fontFamily: l.fontFamily,
2851
3282
  fontSize: 15,
@@ -2855,7 +3286,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2855
3286
  children: "×"
2856
3287
  })
2857
3288
  }),
2858
- n && /* @__PURE__ */ O(T, {
3289
+ n && /* @__PURE__ */ A(D, {
2859
3290
  pointerEvents: "none",
2860
3291
  style: {
2861
3292
  position: "absolute",
@@ -2869,8 +3300,8 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2869
3300
  })
2870
3301
  ]
2871
3302
  });
2872
- }), Ye = r(function({ active: e = !1, style: t, children: n, ...r }, i) {
2873
- return /* @__PURE__ */ O(T, {
3303
+ }), Nt = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
3304
+ return /* @__PURE__ */ A(D, {
2874
3305
  ref: i,
2875
3306
  style: [{ display: e ? "flex" : "none" }, t],
2876
3307
  ...r,
@@ -2879,31 +3310,31 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2879
3310
  });
2880
3311
  //#endregion
2881
3312
  //#region src/components/TextField/TextField.tsx
2882
- function Xe(e, t) {
3313
+ function Pt(e, t) {
2883
3314
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
2884
3315
  if (!n) return e;
2885
3316
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
2886
3317
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
2887
3318
  }
2888
- var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i, editable: a = !0, onFocus: o, onBlur: s, accessibilityLabel: c, accessibilityHint: l, ...u }, f) {
2889
- let p = I(), m = F(), [h, g] = d(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
2890
- return /* @__PURE__ */ k(T, {
3319
+ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i, editable: a = !0, onFocus: o, onBlur: s, accessibilityLabel: c, accessibilityHint: l, ...u }, d) {
3320
+ let p = U(), m = H(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
3321
+ return /* @__PURE__ */ j(D, {
2891
3322
  style: [{
2892
3323
  gap: p.space1,
2893
3324
  opacity: _ ? p.opacityDisabled : 1
2894
3325
  }, r],
2895
3326
  children: [
2896
- e && /* @__PURE__ */ O(U, {
3327
+ e && /* @__PURE__ */ A(G, {
2897
3328
  variant: "body",
2898
3329
  style: { fontWeight: String(p.fontWeightSemibold) },
2899
3330
  children: e
2900
3331
  }),
2901
- /* @__PURE__ */ O(w, {
2902
- ref: f,
3332
+ /* @__PURE__ */ A(E, {
3333
+ ref: d,
2903
3334
  editable: a,
2904
3335
  accessibilityLabel: c ?? e,
2905
3336
  accessibilityHint: l ?? v,
2906
- placeholderTextColor: Xe(p.windowFgColor, p.opacityDim),
3337
+ placeholderTextColor: Pt(p.windowFgColor, p.opacityDim),
2907
3338
  onFocus: (e) => {
2908
3339
  g(!0), o?.(e);
2909
3340
  },
@@ -2925,7 +3356,7 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
2925
3356
  }, i],
2926
3357
  ...u
2927
3358
  }),
2928
- v && /* @__PURE__ */ O(U, {
3359
+ v && /* @__PURE__ */ A(G, {
2929
3360
  variant: "caption",
2930
3361
  style: {
2931
3362
  color: n ? p.errorColor : p.windowFgColor,
@@ -2935,44 +3366,44 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
2935
3366
  })
2936
3367
  ]
2937
3368
  });
2938
- }), Qe = p.createAnimatedComponent(b), $e = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: o = !1, style: c, ...l }) => {
2939
- let d = I(), f = P(), m = H(), g = u(null), _ = u(t), v = u(0), y = u(new p.Value(+!!m)).current, x = a(() => {
2940
- g.current &&= (clearTimeout(g.current), null);
2941
- }, []), S = a((e) => {
2942
- e <= 0 || !n || (x(), v.current = Date.now(), g.current = setTimeout(() => n(), e));
2943
- }, [n, x]);
2944
- s(() => (t > 0 && (_.current = t, S(t)), x), [
3369
+ }), It = m.createAnimatedComponent(S), Lt = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
3370
+ let u = U(), f = V(), p = W(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
3371
+ h.current &&= (clearTimeout(h.current), null);
3372
+ }, []), x = o((e) => {
3373
+ e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
3374
+ }, [n, b]);
3375
+ c(() => (t > 0 && (g.current = t, x(t)), b), [
2945
3376
  t,
2946
- S,
2947
- x
2948
- ]), s(() => {
2949
- if (m) {
3377
+ x,
3378
+ b
3379
+ ]), c(() => {
3380
+ if (p) {
2950
3381
  y.setValue(1);
2951
3382
  return;
2952
3383
  }
2953
- let [e, t, n, r] = d.easingDefault;
2954
- p.timing(y, {
3384
+ let [e, t, n, r] = u.easingDefault;
3385
+ m.timing(y, {
2955
3386
  toValue: 1,
2956
- duration: d.durationNormal,
2957
- easing: h.bezier(e, t, n, r),
3387
+ duration: u.durationNormal,
3388
+ easing: _.bezier(e, t, n, r),
2958
3389
  useNativeDriver: !0
2959
3390
  }).start();
2960
3391
  }, [
2961
- m,
3392
+ p,
2962
3393
  y,
2963
- d.durationNormal,
2964
- d.easingDefault
3394
+ u.durationNormal,
3395
+ u.easingDefault
2965
3396
  ]);
2966
- let w = () => {
2967
- if (g.current) {
3397
+ let C = () => {
3398
+ if (h.current) {
2968
3399
  let e = Date.now() - v.current;
2969
- _.current = Math.max(0, _.current - e), x();
3400
+ g.current = Math.max(0, g.current - e), b();
2970
3401
  }
2971
- }, T = () => {
2972
- S(_.current);
3402
+ }, w = () => {
3403
+ x(g.current);
2973
3404
  }, E = () => {
2974
- x(), i?.(), n?.();
2975
- }, A = f === "dark" ? {
3405
+ b(), i?.(), n?.();
3406
+ }, D = f === "dark" ? {
2976
3407
  shadowOpacity: .4,
2977
3408
  shadowRadius: 12,
2978
3409
  elevation: 6
@@ -2981,24 +3412,24 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
2981
3412
  shadowRadius: 8,
2982
3413
  elevation: 4
2983
3414
  };
2984
- return /* @__PURE__ */ k(Qe, {
3415
+ return /* @__PURE__ */ j(It, {
2985
3416
  accessible: !0,
2986
3417
  accessibilityRole: "alert",
2987
3418
  accessibilityLiveRegion: "polite",
2988
- onPressIn: w,
2989
- onPressOut: T,
3419
+ onPressIn: C,
3420
+ onPressOut: w,
2990
3421
  style: [{
2991
3422
  flexDirection: "row",
2992
3423
  alignItems: "center",
2993
- gap: d.space2,
3424
+ gap: u.space2,
2994
3425
  paddingVertical: 10,
2995
- paddingRight: d.space2,
2996
- paddingLeft: d.space3,
3426
+ paddingRight: u.space2,
3427
+ paddingLeft: u.space3,
2997
3428
  minHeight: 44,
2998
3429
  maxWidth: 480,
2999
3430
  minWidth: 240,
3000
- backgroundColor: d.cardBgColor,
3001
- borderRadius: d.radiusLg,
3431
+ backgroundColor: u.cardBgColor,
3432
+ borderRadius: u.radiusLg,
3002
3433
  shadowColor: "#000",
3003
3434
  shadowOffset: {
3004
3435
  width: 0,
@@ -3012,10 +3443,10 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3012
3443
  inputRange: [0, 1],
3013
3444
  outputRange: [.96, 1]
3014
3445
  }) }],
3015
- ...A
3016
- }, c],
3446
+ ...D
3447
+ }, s],
3017
3448
  ...l,
3018
- children: [/* @__PURE__ */ O(U, {
3449
+ children: [/* @__PURE__ */ A(G, {
3019
3450
  variant: "body",
3020
3451
  style: {
3021
3452
  flex: 1,
@@ -3023,53 +3454,53 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3023
3454
  },
3024
3455
  numberOfLines: typeof e == "string" ? 2 : void 0,
3025
3456
  children: e
3026
- }), (r || o) && /* @__PURE__ */ k(D, { children: [r && /* @__PURE__ */ O(b, {
3457
+ }), (r || a) && /* @__PURE__ */ j(k, { children: [r && /* @__PURE__ */ A(S, {
3027
3458
  accessibilityRole: "button",
3028
3459
  accessibilityLabel: r,
3029
3460
  onPress: E,
3030
3461
  style: ({ pressed: e }) => ({
3031
3462
  paddingVertical: 4,
3032
- paddingHorizontal: d.space1,
3033
- borderRadius: d.radiusSm,
3034
- backgroundColor: e ? d.activeOverlay : "transparent"
3463
+ paddingHorizontal: u.space1,
3464
+ borderRadius: u.radiusSm,
3465
+ backgroundColor: e ? u.activeOverlay : "transparent"
3035
3466
  }),
3036
- children: /* @__PURE__ */ O(C, {
3467
+ children: /* @__PURE__ */ A(T, {
3037
3468
  style: {
3038
- fontFamily: d.fontFamily,
3039
- fontSize: d.fontSizeBody,
3040
- fontWeight: String(d.fontWeightSemibold),
3041
- color: d.accentColor
3469
+ fontFamily: u.fontFamily,
3470
+ fontSize: u.fontSizeBody,
3471
+ fontWeight: String(u.fontWeightSemibold),
3472
+ color: u.accentColor
3042
3473
  },
3043
3474
  children: r
3044
3475
  })
3045
- }), o && /* @__PURE__ */ O(b, {
3476
+ }), a && /* @__PURE__ */ A(S, {
3046
3477
  accessibilityRole: "button",
3047
3478
  accessibilityLabel: "Dismiss",
3048
3479
  hitSlop: 4,
3049
3480
  onPress: () => {
3050
- x(), n?.();
3481
+ b(), n?.();
3051
3482
  },
3052
3483
  style: ({ pressed: e }) => ({
3053
3484
  width: 28,
3054
3485
  height: 28,
3055
3486
  alignItems: "center",
3056
3487
  justifyContent: "center",
3057
- borderRadius: d.radiusSm,
3488
+ borderRadius: u.radiusSm,
3058
3489
  opacity: e ? 1 : .55,
3059
- backgroundColor: e ? d.activeOverlay : "transparent"
3490
+ backgroundColor: e ? u.activeOverlay : "transparent"
3060
3491
  }),
3061
- children: /* @__PURE__ */ O(C, {
3492
+ children: /* @__PURE__ */ A(T, {
3062
3493
  style: {
3063
- fontSize: d.fontSizeBody,
3064
- color: d.windowFgColor
3494
+ fontSize: u.fontSizeBody,
3495
+ color: u.windowFgColor
3065
3496
  },
3066
3497
  children: "×"
3067
3498
  })
3068
3499
  })] })]
3069
3500
  });
3070
- }, et = ({ position: e = "bottom", children: t, style: n, ...r }) => {
3071
- let i = I();
3072
- return /* @__PURE__ */ O(T, {
3501
+ }, Rt = ({ position: e = "bottom", children: t, style: n, ...r }) => {
3502
+ let i = U();
3503
+ return /* @__PURE__ */ A(D, {
3073
3504
  pointerEvents: "box-none",
3074
3505
  accessibilityLabel: "Notifications",
3075
3506
  style: [
@@ -3087,9 +3518,238 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3087
3518
  ...r,
3088
3519
  children: t
3089
3520
  });
3090
- }, tt = r(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
3091
- let a = I(), o = P();
3092
- return /* @__PURE__ */ k(T, {
3521
+ }, Q = 6, $ = 8, zt = 5;
3522
+ function Bt(e, t) {
3523
+ if (e) {
3524
+ if (typeof e == "function") {
3525
+ e(t);
3526
+ return;
3527
+ }
3528
+ e.current = t;
3529
+ }
3530
+ }
3531
+ function Vt(e, t, n) {
3532
+ switch (n) {
3533
+ case "top": return {
3534
+ top: e.y - t.height - Q,
3535
+ left: e.x + e.width / 2 - t.width / 2
3536
+ };
3537
+ case "bottom": return {
3538
+ top: e.y + e.height + Q,
3539
+ left: e.x + e.width / 2 - t.width / 2
3540
+ };
3541
+ case "left": return {
3542
+ top: e.y + e.height / 2 - t.height / 2,
3543
+ left: e.x - t.width - Q
3544
+ };
3545
+ case "right": return {
3546
+ top: e.y + e.height / 2 - t.height / 2,
3547
+ left: e.x + e.width + Q
3548
+ };
3549
+ }
3550
+ }
3551
+ function Ht(e, t, n) {
3552
+ let { width: r, height: i } = g.get("window"), a = [
3553
+ n,
3554
+ n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
3555
+ "top",
3556
+ "bottom",
3557
+ "left",
3558
+ "right"
3559
+ ];
3560
+ for (let n of a) {
3561
+ let { top: a, left: o } = Vt(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
3562
+ if (s && c) return {
3563
+ top: Math.max($, Math.min(a, i - t.height - $)),
3564
+ left: Math.max($, Math.min(o, r - t.width - $)),
3565
+ placement: n
3566
+ };
3567
+ }
3568
+ let { top: o, left: s } = Vt(e, t, n);
3569
+ return {
3570
+ top: Math.max($, Math.min(o, i - t.height - $)),
3571
+ left: Math.max($, Math.min(s, r - t.width - $)),
3572
+ placement: n
3573
+ };
3574
+ }
3575
+ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3576
+ let a = U(), s = V(), l = W(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, x] = f(null), S = d(null), C = d(null), T = d(new m.Value(0)).current, E = o(() => {
3577
+ C.current &&= (clearTimeout(C.current), null);
3578
+ }, []), O = o(() => {
3579
+ E(), p(!0);
3580
+ }, [E]), M = o(() => {
3581
+ E(), C.current = setTimeout(O, r);
3582
+ }, [
3583
+ E,
3584
+ O,
3585
+ r
3586
+ ]), N = o(() => {
3587
+ E(), p(!1);
3588
+ }, [E]);
3589
+ c(() => {
3590
+ if (!u) {
3591
+ g(null), v(null), x(null);
3592
+ return;
3593
+ }
3594
+ S.current?.measureInWindow((e, t, n, r) => {
3595
+ g({
3596
+ x: e,
3597
+ y: t,
3598
+ width: n,
3599
+ height: r
3600
+ });
3601
+ });
3602
+ }, [u]), c(() => {
3603
+ !h || !_ || x(Ht(h, _, t));
3604
+ }, [
3605
+ h,
3606
+ _,
3607
+ t
3608
+ ]), c(() => {
3609
+ if (y) {
3610
+ if (l) {
3611
+ T.setValue(1);
3612
+ return;
3613
+ }
3614
+ T.setValue(0), m.timing(T, {
3615
+ toValue: 1,
3616
+ duration: a.durationFast,
3617
+ useNativeDriver: !0
3618
+ }).start();
3619
+ }
3620
+ }, [
3621
+ y,
3622
+ l,
3623
+ T,
3624
+ a.durationFast
3625
+ ]), c(() => E, [E]);
3626
+ let P = (e) => {
3627
+ let { width: t, height: n } = e.nativeEvent.layout;
3628
+ v({
3629
+ width: t,
3630
+ height: n
3631
+ });
3632
+ }, F = s === "dark" ? "#c0bfbc" : "#3d3d3d", ee = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", te = s === "dark" ? {
3633
+ shadowOpacity: .4,
3634
+ shadowRadius: 8,
3635
+ elevation: 6
3636
+ } : {
3637
+ shadowOpacity: .2,
3638
+ shadowRadius: 8,
3639
+ elevation: 4
3640
+ }, I = {
3641
+ position: "absolute",
3642
+ width: 0,
3643
+ height: 0,
3644
+ borderWidth: zt,
3645
+ borderColor: "transparent"
3646
+ }, L = (() => {
3647
+ switch (y?.placement) {
3648
+ case "top": return {
3649
+ ...I,
3650
+ top: "100%",
3651
+ left: "50%",
3652
+ marginLeft: -5,
3653
+ borderTopColor: F
3654
+ };
3655
+ case "bottom": return {
3656
+ ...I,
3657
+ bottom: "100%",
3658
+ left: "50%",
3659
+ marginLeft: -5,
3660
+ borderBottomColor: F
3661
+ };
3662
+ case "left": return {
3663
+ ...I,
3664
+ left: "100%",
3665
+ top: "50%",
3666
+ marginTop: -5,
3667
+ borderLeftColor: F
3668
+ };
3669
+ case "right": return {
3670
+ ...I,
3671
+ right: "100%",
3672
+ top: "50%",
3673
+ marginTop: -5,
3674
+ borderRightColor: F
3675
+ };
3676
+ default: return null;
3677
+ }
3678
+ })(), R = i.props.ref;
3679
+ return /* @__PURE__ */ j(k, { children: [n(i, {
3680
+ ref: (e) => {
3681
+ S.current = e, Bt(R, e);
3682
+ },
3683
+ delayLongPress: r,
3684
+ accessibilityHint: i.props.accessibilityHint ?? e,
3685
+ onLongPress: (e) => {
3686
+ O(), i.props.onLongPress?.(e);
3687
+ },
3688
+ onPressOut: (e) => {
3689
+ N(), i.props.onPressOut?.(e);
3690
+ },
3691
+ onHoverIn: (e) => {
3692
+ M(), i.props.onHoverIn?.(e);
3693
+ },
3694
+ onHoverOut: (e) => {
3695
+ N(), i.props.onHoverOut?.(e);
3696
+ },
3697
+ onFocus: (e) => {
3698
+ M(), i.props.onFocus?.(e);
3699
+ },
3700
+ onBlur: (e) => {
3701
+ N(), i.props.onBlur?.(e);
3702
+ }
3703
+ }), /* @__PURE__ */ A(b, {
3704
+ visible: u,
3705
+ transparent: !0,
3706
+ animationType: "none",
3707
+ statusBarTranslucent: !0,
3708
+ children: /* @__PURE__ */ A(D, {
3709
+ pointerEvents: "box-none",
3710
+ style: w.absoluteFill,
3711
+ children: /* @__PURE__ */ j(m.View, {
3712
+ onLayout: P,
3713
+ accessible: !0,
3714
+ role: "tooltip",
3715
+ style: [{
3716
+ position: "absolute",
3717
+ maxWidth: 240,
3718
+ paddingVertical: 4,
3719
+ paddingHorizontal: a.space2,
3720
+ backgroundColor: F,
3721
+ borderRadius: a.radiusSm,
3722
+ shadowColor: "#000",
3723
+ shadowOffset: {
3724
+ width: 0,
3725
+ height: 2
3726
+ },
3727
+ ...te
3728
+ }, y ? {
3729
+ top: y.top,
3730
+ left: y.left,
3731
+ opacity: T
3732
+ } : {
3733
+ top: -9999,
3734
+ left: -9999,
3735
+ opacity: 0
3736
+ }],
3737
+ children: [/* @__PURE__ */ A(G, {
3738
+ style: {
3739
+ color: ee,
3740
+ fontSize: a.fontSizeCaption,
3741
+ fontWeight: String(a.fontWeightNormal),
3742
+ lineHeight: a.fontSizeCaption * a.lineHeightBody,
3743
+ textAlign: "center"
3744
+ },
3745
+ children: e
3746
+ }), L && /* @__PURE__ */ A(D, { style: L })]
3747
+ })
3748
+ })
3749
+ })] });
3750
+ }, Wt = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
3751
+ let a = U(), o = V();
3752
+ return /* @__PURE__ */ j(D, {
3093
3753
  ref: i,
3094
3754
  accessible: !0,
3095
3755
  accessibilityRole: "radiogroup",
@@ -3101,10 +3761,10 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3101
3761
  backgroundColor: a.headerbarBgColor
3102
3762
  }, n],
3103
3763
  ...r,
3104
- children: [/* @__PURE__ */ O(T, {
3764
+ children: [/* @__PURE__ */ A(D, {
3105
3765
  pointerEvents: "none",
3106
- style: [S.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
3107
- }), /* @__PURE__ */ O(T, {
3766
+ style: [w.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
3767
+ }), /* @__PURE__ */ A(D, {
3108
3768
  style: {
3109
3769
  flexDirection: "row",
3110
3770
  alignItems: "center",
@@ -3114,9 +3774,9 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3114
3774
  children: e
3115
3775
  })]
3116
3776
  });
3117
- }), nt = r(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
3118
- let o = I();
3119
- return /* @__PURE__ */ k(b, {
3777
+ }), Gt = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
3778
+ let o = U();
3779
+ return /* @__PURE__ */ j(S, {
3120
3780
  ref: a,
3121
3781
  disabled: r,
3122
3782
  accessibilityRole: "radio",
@@ -3137,10 +3797,10 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3137
3797
  backgroundColor: n ? o.headerbarBgColor : e ? o.activeOverlay : "transparent"
3138
3798
  }),
3139
3799
  ...i,
3140
- children: [t && /* @__PURE__ */ O(T, {
3800
+ children: [t && /* @__PURE__ */ A(D, {
3141
3801
  style: { flexShrink: 0 },
3142
3802
  children: t
3143
- }), /* @__PURE__ */ O(C, {
3803
+ }), /* @__PURE__ */ A(T, {
3144
3804
  style: {
3145
3805
  fontFamily: o.fontFamily,
3146
3806
  fontSize: o.fontSizeBody,
@@ -3152,6 +3812,6 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3152
3812
  });
3153
3813
  });
3154
3814
  //#endregion
3155
- export { _e as ActionRow, ve as Banner, ye as BoxedList, xe as Button, Ce as Card, we as Checkbox, Ee as Dialog, N as GnomeContext, pe as GnomeProvider, De as HeaderBar, Oe as Link, R as NAMED_ACCENT_COLORS, ke as PathBar, Ae as ProgressBar, je as RadioButton, Ne as SearchBar, W as Separator, Fe as Sidebar, Z as SidebarCollapsedContext, $ as SidebarFilterContext, Ie as SidebarItem, Le as SidebarSection, Re as Skeleton, Be as Spinner, Ke as Switch, qe as TabBar, Je as TabItem, Ye as TabPanel, U as Text, Ze as TextField, $e as Toast, et as Toaster, tt as ViewSwitcher, nt as ViewSwitcherItem, V as applyAccentColor, ne as darkRawTokens, j as darkTheme, ie as highContrastDarkRawTokens, ee as highContrastDarkTheme, re as highContrastRawTokens, M as highContrastTheme, te as lightRawTokens, A as lightTheme, z as resolveColorScheme, B as resolveContrast, L as resolveGnomeTheme, de as useAccentColor, le as useColorScheme, ue as useContrast, ce as useDateTimeFormatter, oe as useDir, I as useGnomeTheme, ae as useLocale, se as useNumberFormatter, H as useReducedMotion, P as useResolvedColorScheme, F as useResolvedContrast, Q as useSidebarCollapsed };
3815
+ export { Oe as ActionRow, He as AnimatedIcon, Ue as Banner, We as BoxedList, Je as Button, Xe as Card, Qe as Checkbox, et as Dialog, at as Dropdown, B as GnomeContext, we as GnomeProvider, ot as HeaderBar, q as Icon, st as Link, ye as NAMED_ACCENT_COLORS, ct as PathBar, lt as ProgressBar, ft as RadioButton, mt as SearchBar, X as Separator, yt as Sidebar, _t as SidebarCollapsedContext, Z as SidebarFilterContext, bt as SidebarItem, xt as SidebarSection, St as Skeleton, wt as Spinner, At as Switch, jt as TabBar, Mt as TabItem, Nt as TabPanel, G as Text, Ft as TextField, Lt as Toast, Rt as Toaster, Ut as Tooltip, Wt as ViewSwitcher, Gt as ViewSwitcherItem, Se as applyAccentColor, ce as darkRawTokens, ie as darkTheme, ue as highContrastDarkRawTokens, oe as highContrastDarkTheme, le as highContrastRawTokens, ae as highContrastTheme, se as lightRawTokens, z as lightTheme, be as resolveColorScheme, xe as resolveContrast, ve as resolveGnomeTheme, _e as useAccentColor, he as useColorScheme, ge as useContrast, me as useDateTimeFormatter, fe as useDir, U as useGnomeTheme, de as useLocale, pe as useNumberFormatter, W as useReducedMotion, V as useResolvedColorScheme, H as useResolvedContrast, vt as useSidebarCollapsed };
3156
3816
 
3157
3817
  //# sourceMappingURL=index.js.map