@gnome-ui/react-native 1.1.0 → 1.3.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, PanResponder as x, Platform as S, Pressable as C, ScrollView as w, StyleSheet as T, Text as E, TextInput as D, View as O, useColorScheme as k } from "react-native";
3
+ import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
4
+ import { Check as N, Connecting as ee, Downloading as P, PanDown as te, Recording as ne, Syncing as F } from "@gnome-ui/icons";
5
+ import { Circle as re, G as ie, Path as I, Svg as ae, SvgXml as oe } from "react-native-svg";
4
6
  //#region src/theme/tokens.generated.ts
5
- var A = {
7
+ var se = {
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
+ }, ce = {
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
+ }, le = {
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
+ }, ue = {
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
+ }, de = {
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
+ }, fe = {
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
+ }, pe = {
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
+ }, me = {
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
+ }, L = 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: se
1144
1146
  });
1145
- function ae() {
1146
- return o(N).locale;
1147
+ function he() {
1148
+ return s(L).locale;
1147
1149
  }
1148
- function oe() {
1149
- return o(N).dir;
1150
+ function ge() {
1151
+ return s(L).dir;
1150
1152
  }
1151
- function se(e) {
1152
- let { locale: t, numberFormat: n } = o(N);
1153
- return l(() => new Intl.NumberFormat(t, {
1153
+ function _e(e) {
1154
+ let { locale: t, numberFormat: n } = s(L);
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 ve(e) {
1165
+ let { locale: t, dateTimeFormat: n } = s(L);
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 ye() {
1176
+ return s(L).colorScheme;
1175
1177
  }
1176
- function P() {
1177
- return o(N).resolvedColorScheme;
1178
+ function R() {
1179
+ return s(L).resolvedColorScheme;
1178
1180
  }
1179
- function ue() {
1180
- return o(N).contrast;
1181
+ function be() {
1182
+ return s(L).contrast;
1181
1183
  }
1182
- function F() {
1183
- return o(N).resolvedContrast;
1184
+ function z() {
1185
+ return s(L).resolvedContrast;
1184
1186
  }
1185
- function de() {
1186
- return o(N).accentColor;
1187
+ function xe() {
1188
+ return s(L).accentColor;
1187
1189
  }
1188
- function I() {
1189
- return o(N).theme;
1190
+ function B() {
1191
+ return s(L).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 Se({ colorScheme: e, contrast: t = "normal" }) {
1196
+ return t === "more" ? e === "dark" ? ue : le : e === "dark" ? ce : se;
1195
1197
  }
1196
1198
  //#endregion
1197
1199
  //#region src/GnomeProvider/resolveContext.ts
1198
- var R = new Set([
1200
+ var Ce = 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 we(e, t) {
1208
1210
  return e === "system" ? t === "dark" ? "dark" : "light" : e;
1209
1211
  }
1210
- function B(e, t) {
1212
+ function Te(e, t) {
1211
1213
  return e === "system" ? t ? "more" : "normal" : e;
1212
1214
  }
1213
- function V(e, t, n, r) {
1215
+ function Ee(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 = Ce.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 De() {
1228
+ let [e, t] = f(!1);
1229
+ return c(() => {
1230
+ let e = S.OS === "android" ? p.isHighTextContrastEnabled : S.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 = S.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 V() {
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 Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1258
+ let c = k(), l = De(), d = we(i, c), f = Te(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: Ee(Se({
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__ */ j(L.Provider, {
1282
1284
  value: m,
1283
1285
  children: s
1284
1286
  });
1285
- }, me = new Set([
1287
+ }, ke = 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 Ae(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 je(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 H = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
1379
+ let s = B();
1380
+ return /* @__PURE__ */ j(E, {
1379
1381
  ref: o,
1380
- accessibilityRole: i ?? (me.has(e) ? "header" : void 0),
1382
+ accessibilityRole: i ?? (ke.has(e) ? "header" : void 0),
1381
1383
  style: [
1382
1384
  { fontFamily: s.fontFamily },
1383
- he(s, e),
1384
- ge(s, t),
1385
+ Ae(s, e),
1386
+ je(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
+ }), Me = 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 = B(), 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__ */ M(A, { children: [
1402
+ n && /* @__PURE__ */ j(O, {
1401
1403
  style: { flexShrink: 0 },
1402
1404
  children: n
1403
1405
  }),
1404
- /* @__PURE__ */ k(T, {
1406
+ /* @__PURE__ */ M(O, {
1405
1407
  style: {
1406
1408
  flex: 1,
1407
1409
  gap: 2
1408
1410
  },
1409
- children: [/* @__PURE__ */ O(U, {
1411
+ children: [/* @__PURE__ */ j(H, {
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__ */ j(H, {
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__ */ j(O, {
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__ */ j(C, {
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__ */ M(A, { children: [p, e && !s ? /* @__PURE__ */ j(O, {
1448
1450
  pointerEvents: "none",
1449
- style: [S.absoluteFill, { backgroundColor: u.activeOverlay }]
1451
+ style: [T.absoluteFill, { backgroundColor: u.activeOverlay }]
1450
1452
  }) : null] })
1451
- }) : /* @__PURE__ */ O(T, {
1453
+ }) : /* @__PURE__ */ j(O, {
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
+ }), Ne = {
1460
+ sm: 12,
1461
+ md: 16,
1462
+ lg: 20
1463
+ };
1464
+ function Pe(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 Fe(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 U(e) {
1489
+ return "paths" in e && Array.isArray(e.paths) ? !0 : typeof e.svg == "string" && !("path" in e);
1490
+ }
1491
+ function Ie(e) {
1492
+ return e === "nonzero" || e === "evenodd" ? e : void 0;
1493
+ }
1494
+ var W = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
1495
+ let s = B(), c = Ne[t], l = Pe(s, a), u = U(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = U(e) ? e.svg : void 0, f = U(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ j(I, {
1496
+ d: e.d,
1497
+ fillRule: Ie(e.fillRule),
1498
+ clipRule: Ie(e.clipRule),
1499
+ transform: e.transform
1500
+ }, t)) : [/* @__PURE__ */ j(I, { d: e.path }, 0)], p = Fe(i);
1501
+ return d ? /* @__PURE__ */ j(oe, {
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__ */ j(ae, {
1509
+ viewBox: u,
1510
+ width: n ?? c,
1511
+ height: r ?? c,
1512
+ fill: l,
1513
+ style: o,
1514
+ ...p,
1515
+ children: f
1516
+ });
1517
+ }, Le = m.createAnimatedComponent(ie), Re = m.createAnimatedComponent(I), ze = m.createAnimatedComponent(re);
1518
+ function Be(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 Ve(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 He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
1547
+ transform: Be(1500).interpolate({
1548
+ inputRange: [0, 1],
1549
+ outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
1550
+ }),
1551
+ children: /* @__PURE__ */ j(I, {
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
+ }), Ue = ({ 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__ */ j(Re, {
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
+ }, We = ({ fill: e }) => {
1577
+ let t = Be(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__ */ M(A, { children: [/* @__PURE__ */ j(I, {
1606
+ fill: e,
1607
+ d: "M2 13h12v2H2z"
1608
+ }), /* @__PURE__ */ j(Le, {
1609
+ transform: r,
1610
+ opacity: i,
1611
+ children: /* @__PURE__ */ j(I, {
1612
+ fill: e,
1613
+ fillRule: "evenodd",
1614
+ d: "m2.5 5 5.5 6 5.5-6z"
1615
+ })
1616
+ })] });
1617
+ };
1618
+ function G(e, t, n) {
1619
+ return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
1620
+ }
1621
+ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1622
+ let i = Ve(1200, r), a = [
1623
+ 0,
1624
+ .2,
1625
+ .4,
1626
+ 1
1627
+ ];
1628
+ return /* @__PURE__ */ j(ze, {
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
+ G(e, t, 1),
1646
+ G(e, t, .7),
1647
+ G(e, t, 1),
1648
+ G(e, t, 1)
1649
+ ]
1650
+ })
1651
+ });
1652
+ }, Ke = new Map([
1653
+ [F, He],
1654
+ [ne, Ue],
1655
+ [P, We],
1656
+ [ee, ({ fill: e }) => /* @__PURE__ */ M(A, { children: [
1657
+ /* @__PURE__ */ j(I, {
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__ */ j(Ge, {
1662
+ cx: 3,
1663
+ cy: 8,
1664
+ fill: e,
1665
+ delay: 0
1666
+ }),
1667
+ /* @__PURE__ */ j(Ge, {
1668
+ cx: 8,
1669
+ cy: 8,
1670
+ fill: e,
1671
+ delay: 150
1672
+ }),
1673
+ /* @__PURE__ */ j(Ge, {
1674
+ cx: 13,
1675
+ cy: 8,
1676
+ fill: e,
1677
+ delay: 300
1678
+ })
1679
+ ] })]
1680
+ ]), qe = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
1681
+ let s = B(), c = V(), l = t && !c ? Ke.get(e) : void 0;
1682
+ if (!l) return /* @__PURE__ */ j(W, {
1683
+ icon: e,
1684
+ size: n,
1685
+ width: r,
1686
+ height: i,
1687
+ label: a,
1688
+ color: o
1689
+ });
1690
+ let u = Ne[n], d = Pe(s, o), f = Fe(a);
1691
+ return /* @__PURE__ */ j(ae, {
1692
+ viewBox: e.viewBox,
1693
+ width: r ?? u,
1694
+ height: i ?? u,
1695
+ ...f,
1696
+ children: /* @__PURE__ */ j(l, { fill: d })
1697
+ });
1698
+ }, Je = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1699
+ let c = B(), 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__ */ M(O, {
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__ */ j(H, {
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__ */ M(O, {
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__ */ j(C, {
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__ */ j(E, {
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__ */ j(C, {
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__ */ j(E, {
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
+ }, Ye = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
1791
+ return /* @__PURE__ */ j(O, {
1551
1792
  ref: r,
1552
1793
  accessible: !1,
1553
1794
  style: [
1554
1795
  {
1555
- backgroundColor: I().cardShadeColor,
1796
+ backgroundColor: B().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
+ }), Xe = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
1812
+ let o = B(), s = e.toArray(t).filter(Boolean);
1813
+ return n === "separate" ? /* @__PURE__ */ j(O, {
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__ */ j(O, {
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__ */ j(O, {
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__ */ M(O, { children: [t > 0 && /* @__PURE__ */ j(Ye, { 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 Ze(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 Qe(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 $e(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 et = 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 = B(), p = z();
1909
+ return /* @__PURE__ */ j(C, {
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 } = $e(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? Qe(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Ze(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 } = Ze(f, t), { color: l } = $e(f, e, n, r);
1937
+ return /* @__PURE__ */ M(A, { children: [
1697
1938
  i,
1698
- typeof o == "string" ? /* @__PURE__ */ O(C, {
1939
+ typeof o == "string" ? /* @__PURE__ */ j(E, {
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 tt(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 nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
1964
+ let s = B(), 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: tt(s, t)
1730
1971
  };
1731
- return e ? /* @__PURE__ */ O(b, {
1972
+ return e ? /* @__PURE__ */ j(C, {
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__ */ M(A, { children: [r, e && !i ? /* @__PURE__ */ j(O, {
1746
1987
  pointerEvents: "none",
1747
- style: [S.absoluteFill, {
1988
+ style: [T.absoluteFill, {
1748
1989
  backgroundColor: s.activeOverlay,
1749
1990
  borderRadius: s.radiusLg
1750
1991
  }]
1751
1992
  }) : null] })
1752
- }) : /* @__PURE__ */ O(T, {
1993
+ }) : /* @__PURE__ */ j(O, {
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
+ }), rt = 18, it = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
2000
+ let s = B(), l = R(), u = z(), 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__ */ j(C, {
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__ */ j(m.View, {
1797
2038
  style: {
1798
- width: q,
1799
- height: q,
2039
+ width: rt,
2040
+ height: rt,
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__ */ j(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__ */ j(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
+ }), at = m.createAnimatedComponent(C), ot = ({ 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 = B(), g = R(), v = V(), y = d(new m.Value(+!!v)).current, x = !!s, S = () => {
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 ? S() : i?.();
2072
+ }, T = x ? S : 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__ */ j(O, {
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__ */ j(C, {
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__ */ j(H, {
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
+ }, D = 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__ */ j(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__ */ j(at, {
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__ */ j(C, {
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__ */ M(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
+ ...D,
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__ */ j(H, {
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__ */ j(O, {
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__ */ j(H, {
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
+ }, st = 4, ct = 8, lt = 280;
2226
+ function ut(e, t) {
2227
+ let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - st : e.y + e.height + st;
2228
+ return {
2229
+ top: Math.max(ct, Math.min(i, n - t - ct)),
2230
+ left: e.x,
2231
+ width: e.width,
2232
+ flipUp: r
2233
+ };
2234
+ }
2235
+ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
2236
+ let l = B(), u = V(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [x, S] = f(null), T = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), k = () => {
2237
+ a || h(!0);
2238
+ }, A = () => h(!1), ee = (e) => {
2239
+ e.disabled || (n?.(e.value), A());
2240
+ };
2241
+ return c(() => {
2242
+ if (!p) {
2243
+ _(null), y(null), S(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 || S(ut(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__ */ M(O, {
2274
+ style: o,
2275
+ children: [/* @__PURE__ */ M(C, {
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 ? A() : 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__ */ j(H, {
2302
+ numberOfLines: 1,
2303
+ style: {
2304
+ flex: 1,
2305
+ fontSize: l.fontSizeBody,
2306
+ color: l.windowFgColor,
2307
+ opacity: D ? 1 : l.opacityDim
2308
+ },
2309
+ children: D?.label ?? r
2310
+ }), /* @__PURE__ */ j(W, {
2311
+ icon: te,
2312
+ size: "md",
2313
+ color: "default",
2314
+ style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
2315
+ })]
2316
+ }), /* @__PURE__ */ j(b, {
2317
+ visible: p,
2318
+ transparent: !0,
2319
+ animationType: "none",
2320
+ statusBarTranslucent: !0,
2321
+ children: /* @__PURE__ */ j(C, {
2322
+ onPress: A,
2323
+ accessible: !1,
2324
+ style: { flex: 1 },
2325
+ testID: s ? `${s}-backdrop` : void 0,
2326
+ children: /* @__PURE__ */ j(m.View, {
2327
+ onLayout: (e) => {
2328
+ y(Math.min(e.nativeEvent.layout.height, lt));
2329
+ },
2330
+ role: "list",
2331
+ accessible: !0,
2332
+ style: [{
2333
+ position: "absolute",
2334
+ maxHeight: lt,
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__ */ j(w, {
2360
+ bounces: !1,
2361
+ children: e.map((e) => {
2362
+ let n = e.value === t;
2363
+ return /* @__PURE__ */ M(C, {
2364
+ role: "option",
2365
+ accessibilityState: {
2366
+ selected: n,
2367
+ disabled: !!e.disabled
2368
+ },
2369
+ disabled: e.disabled,
2370
+ onPress: () => ee(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__ */ M(O, {
2382
+ style: {
2383
+ flex: 1,
2384
+ gap: 1
2385
+ },
2386
+ children: [/* @__PURE__ */ j(H, {
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__ */ j(H, {
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__ */ j(W, {
2404
+ icon: N,
2405
+ size: "md",
2406
+ color: "blue"
2407
+ })]
2408
+ }, e.value);
2409
+ })
2410
+ })
2411
+ })
2412
+ })
2413
+ })]
2414
+ });
2415
+ }, ft = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
2416
+ let s = B();
2417
+ return /* @__PURE__ */ M(O, {
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__ */ j(O, {
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__ */ j(O, {
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__ */ j(E, {
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__ */ j(O, {
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
+ }), pt = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
2473
+ let c = B();
2474
+ return /* @__PURE__ */ j(C, {
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__ */ M(H, {
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__ */ j(E, {
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
+ }), mt = ({ segments: e, onNavigate: n, style: r, ...i }) => {
2496
+ let a = B();
2497
+ return /* @__PURE__ */ j(O, {
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__ */ M(t, { children: [i > 0 && /* @__PURE__ */ j(E, {
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__ */ M(O, {
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__ */ j(O, {
2095
2526
  style: { flexShrink: 0 },
2096
2527
  children: r.icon
2097
- }), /* @__PURE__ */ O(C, {
2528
+ }), /* @__PURE__ */ j(E, {
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__ */ M(C, {
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__ */ j(O, {
2123
2554
  style: { flexShrink: 0 },
2124
2555
  children: r.icon
2125
- }), /* @__PURE__ */ O(C, {
2556
+ }), /* @__PURE__ */ j(E, {
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
+ }, ht = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
2570
+ let o = B(), s = R(), l = V(), 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__ */ j(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__ */ j(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
+ }, gt = 18, _t = 6, vt = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
2653
+ let o = B(), s = R(), l = z(), 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__ */ j(C, {
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__ */ j(m.View, {
2262
2693
  style: {
2263
- width: J,
2264
- height: J,
2694
+ width: gt,
2695
+ height: gt,
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__ */ j(m.View, { style: {
2704
+ width: _t,
2705
+ height: _t,
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 yt(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 bt = 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 = B(), _ = 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__ */ M(O, {
2299
2730
  style: f,
2300
- children: [/* @__PURE__ */ k(T, {
2731
+ children: [/* @__PURE__ */ M(O, {
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__ */ M(O, {
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__ */ j(E, {
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__ */ j(D, {
2330
2761
  ref: _,
2331
2762
  editable: o,
2332
2763
  value: i,
2333
2764
  placeholder: a,
2334
- placeholderTextColor: Me(g.windowFgColor, g.opacityDim),
2765
+ placeholderTextColor: yt(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__ */ j(C, {
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__ */ j(E, {
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__ */ j(C, {
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__ */ j(E, {
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__ */ j(O, {
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 xt(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 += xt(t.children, n));
2408
2839
  }), r;
2409
2840
  }
2410
- function Pe(e, t) {
2411
- if (!t || !i(e)) return !0;
2841
+ function St(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 ? xt(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 K = r(!1);
2849
+ function Ct() {
2850
+ return s(K);
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 q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
2853
+ let c = B(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => St(e, i)), d = !l || u.length > 0;
2854
+ return /* @__PURE__ */ j(K.Provider, {
2424
2855
  value: r,
2425
- children: /* @__PURE__ */ O($.Provider, {
2856
+ children: /* @__PURE__ */ j(q.Provider, {
2426
2857
  value: i,
2427
- children: /* @__PURE__ */ O(T, {
2858
+ children: /* @__PURE__ */ j(O, {
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__ */ j(w, {
2438
2869
  contentContainerStyle: { padding: c.space1 },
2439
- children: l && !d ? /* @__PURE__ */ O(U, {
2870
+ children: l && !d ? /* @__PURE__ */ j(H, {
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__ */ M(t, { children: [n > 0 && /* @__PURE__ */ j(Ye, {
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
+ }), Tt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
2887
+ let l = B(), u = Ct(), d = s(q);
2888
+ return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ M(C, {
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__ */ j(O, {
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__ */ j(H, {
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__ */ j(O, {
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
+ }), Et = 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 = B(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = Ct(), y = s(q), 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 || xt(o, y) > 0)) return null;
2949
+ let x = v ? !0 : _, S = !v && !!(e || t), w = (e || t) && /* @__PURE__ */ M(O, {
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__ */ j(O, {
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__ */ j(H, {
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__ */ j(H, {
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__ */ M(O, {
2983
+ style: c,
2553
2984
  ...u,
2554
- children: [C && (n ? /* @__PURE__ */ O(b, {
2985
+ children: [S && (n ? /* @__PURE__ */ j(C, {
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__ */ j(O, {
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
+ }), Dt = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
3002
+ let l = B(), u = V(), 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__ */ j(O, {
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__ */ j(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,178 @@ 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__ */ j(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
3059
+ });
3060
+ }, Ot = 6, J = 22, Y = 4;
3061
+ function X(e, t, n) {
3062
+ return Math.min(n, Math.max(t, e));
3063
+ }
3064
+ function Z(e, t, n, r) {
3065
+ return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
3066
+ }
3067
+ function kt(e) {
3068
+ let t = e.toString(), n = t.indexOf(".");
3069
+ return n === -1 ? 0 : t.length - n - 1;
3070
+ }
3071
+ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabled: a = !1, marks: s, accessibilityLabel: c, style: l, onLayout: d, ...p }) => {
3072
+ let m = B(), [h, g] = f(0), [_, v] = f({}), y = kt(i), b = X(e, n, r), S = (b - n) / (r - n) * 100, C = o((e) => {
3073
+ g(e.nativeEvent.layout.width), d?.(e);
3074
+ }, [d]), w = o((e) => {
3075
+ a || h <= 0 || t(X(Z(e / h * (r - n) + n, n, i, y), n, r));
3076
+ }, [
3077
+ a,
3078
+ h,
3079
+ n,
3080
+ r,
3081
+ i,
3082
+ y,
3083
+ t
3084
+ ]), T = u(() => x.create({
3085
+ onStartShouldSetPanResponder: () => !a,
3086
+ onMoveShouldSetPanResponder: () => !a,
3087
+ onPanResponderGrant: (e) => w(e.nativeEvent.locationX),
3088
+ onPanResponderMove: (e) => w(e.nativeEvent.locationX)
3089
+ }), [a, w]), D = o((o) => {
3090
+ if (!a) switch (o.nativeEvent.actionName) {
3091
+ case "increment":
3092
+ t(X(Z(e + i, n, i, y), n, r));
3093
+ break;
3094
+ case "decrement":
3095
+ t(X(Z(e - i, n, i, y), n, r));
3096
+ break;
3097
+ }
3098
+ }, [
3099
+ a,
3100
+ e,
3101
+ i,
3102
+ n,
3103
+ r,
3104
+ y,
3105
+ t
3106
+ ]), k = s && s.length > 0, A = k && s.some((e) => e.label), N = S / 100 * h - J / 2;
3107
+ return /* @__PURE__ */ M(O, {
3108
+ style: [{
3109
+ width: "100%",
3110
+ paddingTop: 10,
3111
+ paddingBottom: A ? 0 : 10
3112
+ }, l],
3113
+ ...p,
3114
+ children: [/* @__PURE__ */ M(O, {
3115
+ onLayout: C,
3116
+ accessible: !0,
3117
+ accessibilityRole: "adjustable",
3118
+ accessibilityLabel: c,
3119
+ accessibilityValue: {
3120
+ min: n,
3121
+ max: r,
3122
+ now: b
3123
+ },
3124
+ accessibilityState: { disabled: a },
3125
+ accessibilityActions: [{
3126
+ name: "increment",
3127
+ label: "increment"
3128
+ }, {
3129
+ name: "decrement",
3130
+ label: "decrement"
3131
+ }],
3132
+ onAccessibilityAction: D,
3133
+ style: {
3134
+ justifyContent: "center",
3135
+ height: J,
3136
+ opacity: a ? m.opacityDisabled : 1
3137
+ },
3138
+ ...T.panHandlers,
3139
+ children: [
3140
+ /* @__PURE__ */ j(O, {
3141
+ pointerEvents: "none",
3142
+ style: {
3143
+ width: "100%",
3144
+ height: Ot,
3145
+ borderRadius: m.radiusPill,
3146
+ backgroundColor: m.cardShadeColor,
3147
+ overflow: "hidden"
3148
+ },
3149
+ children: /* @__PURE__ */ j(O, { style: {
3150
+ height: "100%",
3151
+ width: `${S}%`,
3152
+ borderRadius: m.radiusPill,
3153
+ backgroundColor: m.accentBgColor
3154
+ } })
3155
+ }),
3156
+ /* @__PURE__ */ j(O, {
3157
+ pointerEvents: "none",
3158
+ style: {
3159
+ position: "absolute",
3160
+ left: N,
3161
+ width: J,
3162
+ height: J,
3163
+ borderRadius: m.radiusPill,
3164
+ backgroundColor: m.accentBgColor,
3165
+ borderWidth: 2,
3166
+ borderColor: m.windowBgColor,
3167
+ shadowColor: "#000",
3168
+ shadowOffset: {
3169
+ width: 0,
3170
+ height: 1
3171
+ },
3172
+ shadowOpacity: .25,
3173
+ shadowRadius: 3,
3174
+ elevation: 3
3175
+ }
3176
+ }),
3177
+ k && s.map((e) => /* @__PURE__ */ j(O, {
3178
+ pointerEvents: "none",
3179
+ importantForAccessibility: "no",
3180
+ style: {
3181
+ position: "absolute",
3182
+ left: (X(e.value, n, r) - n) / (r - n) * 100 / 100 * h - Y / 2,
3183
+ width: Y,
3184
+ height: Y,
3185
+ borderRadius: Y / 2,
3186
+ backgroundColor: m.windowBgColor
3187
+ }
3188
+ }, e.value))
3189
+ ]
3190
+ }), A && /* @__PURE__ */ j(O, {
3191
+ importantForAccessibility: "no",
3192
+ style: {
3193
+ position: "relative",
3194
+ width: "100%",
3195
+ height: 20,
3196
+ marginTop: 6
3197
+ },
3198
+ children: s.map((e) => /* @__PURE__ */ j(E, {
3199
+ numberOfLines: 1,
3200
+ onLayout: (t) => {
3201
+ let { layout: { width: n } } = t.nativeEvent;
3202
+ v((t) => t[e.value] === n ? t : {
3203
+ ...t,
3204
+ [e.value]: n
3205
+ });
3206
+ },
3207
+ style: {
3208
+ position: "absolute",
3209
+ left: (X(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
3210
+ fontFamily: m.fontFamily,
3211
+ fontSize: m.fontSizeCaption,
3212
+ color: m.windowFgColor,
3213
+ opacity: m.opacityDim
3214
+ },
3215
+ children: e.label
3216
+ }, e.value))
3217
+ })]
2628
3218
  });
2629
- }, ze = {
3219
+ }, jt = {
2630
3220
  sm: {
2631
3221
  dimension: 16,
2632
3222
  borderWidth: 2
@@ -2639,67 +3229,67 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2639
3229
  dimension: 36,
2640
3230
  borderWidth: 3
2641
3231
  }
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, {
3232
+ }, Mt = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
3233
+ let i = B(), a = R(), o = V(), s = d(new m.Value(0)).current;
3234
+ c(() => {
3235
+ s.setValue(0);
3236
+ let e = m.loop(m.timing(s, {
2647
3237
  toValue: 1,
2648
3238
  duration: o ? 2e3 : 750,
2649
- easing: h.linear,
3239
+ easing: _.linear,
2650
3240
  useNativeDriver: !0
2651
3241
  }));
2652
3242
  return e.start(), () => e.stop();
2653
- }, [c, o]);
2654
- let l = c.interpolate({
3243
+ }, [s, o]);
3244
+ let l = s.interpolate({
2655
3245
  inputRange: [0, 1],
2656
3246
  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, {
3247
+ }), { dimension: u, borderWidth: f } = jt[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
3248
+ return /* @__PURE__ */ j(m.View, {
2659
3249
  accessible: !0,
2660
3250
  accessibilityRole: "progressbar",
2661
3251
  accessibilityLabel: t || void 0,
2662
3252
  accessibilityElementsHidden: t === "",
2663
3253
  importantForAccessibility: t === "" ? "no-hide-descendants" : "yes",
2664
3254
  style: [{
2665
- width: d,
2666
- height: d,
2667
- borderRadius: d / 2,
3255
+ width: u,
3256
+ height: u,
3257
+ borderRadius: u / 2,
2668
3258
  borderWidth: f,
2669
- borderColor: m,
3259
+ borderColor: p,
2670
3260
  borderTopColor: i.accentColor,
2671
3261
  transform: [{ rotate: l }]
2672
3262
  }, n],
2673
3263
  ...r
2674
3264
  });
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(() => {
3265
+ }, Nt = 56, Pt = 28, Ft = 20, It = 3, Lt = 28, Rt = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
3266
+ let o = B(), s = R(), l = z(), u = d(new m.Value(+!!e)).current, f = d(!0);
3267
+ c(() => {
2678
3268
  if (f.current) {
2679
3269
  f.current = !1;
2680
3270
  return;
2681
3271
  }
2682
3272
  let [t, n, r, i] = o.easingDefault;
2683
- p.timing(d, {
3273
+ m.timing(u, {
2684
3274
  toValue: +!!e,
2685
3275
  duration: o.durationFast,
2686
- easing: h.bezier(t, n, r, i),
3276
+ easing: _.bezier(t, n, r, i),
2687
3277
  useNativeDriver: !1
2688
3278
  }).start();
2689
3279
  }, [
2690
3280
  e,
2691
- d,
3281
+ u,
2692
3282
  o.durationFast,
2693
3283
  o.easingDefault
2694
3284
  ]);
2695
- let m = c === "dark" ? o.dark2 : o.light4, g = c === "dark" ? o.light3 : "#fff", _ = d.interpolate({
3285
+ let p = s === "dark" ? o.dark2 : o.light4, h = s === "dark" ? o.light3 : "#fff", g = u.interpolate({
2696
3286
  inputRange: [0, 1],
2697
- outputRange: [m, o.accentBgColor]
2698
- }), v = d.interpolate({
3287
+ outputRange: [p, o.accentBgColor]
3288
+ }), v = u.interpolate({
2699
3289
  inputRange: [0, 1],
2700
3290
  outputRange: [o.borderSubtle, o.accentBgColor]
2701
3291
  });
2702
- return /* @__PURE__ */ O(b, {
3292
+ return /* @__PURE__ */ j(C, {
2703
3293
  ref: a,
2704
3294
  disabled: n,
2705
3295
  accessibilityRole: "switch",
@@ -2710,26 +3300,26 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2710
3300
  onPress: () => t?.(!e),
2711
3301
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
2712
3302
  ...i,
2713
- children: /* @__PURE__ */ O(p.View, {
3303
+ children: /* @__PURE__ */ j(m.View, {
2714
3304
  style: {
2715
- width: Ve,
2716
- height: He,
3305
+ width: Nt,
3306
+ height: Pt,
2717
3307
  borderRadius: o.radiusPill,
2718
3308
  borderWidth: l === "more" ? 2 : 1,
2719
3309
  borderColor: v,
2720
- backgroundColor: _
3310
+ backgroundColor: g
2721
3311
  },
2722
- children: /* @__PURE__ */ O(p.View, { style: [{
3312
+ children: /* @__PURE__ */ j(m.View, { style: [{
2723
3313
  position: "absolute",
2724
- top: We,
2725
- left: We,
2726
- width: Ue,
2727
- height: Ue,
3314
+ top: It,
3315
+ left: It,
3316
+ width: Ft,
3317
+ height: Ft,
2728
3318
  borderRadius: o.radiusPill,
2729
- backgroundColor: e ? "#fff" : g,
2730
- transform: [{ translateX: d.interpolate({
3319
+ backgroundColor: e ? "#fff" : h,
3320
+ transform: [{ translateX: u.interpolate({
2731
3321
  inputRange: [0, 1],
2732
- outputRange: [0, Ge]
3322
+ outputRange: [0, Lt]
2733
3323
  }) }]
2734
3324
  }, l !== "more" && {
2735
3325
  shadowColor: "#000",
@@ -2743,9 +3333,9 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2743
3333
  }] })
2744
3334
  })
2745
3335
  });
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, {
3336
+ }), zt = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
3337
+ let o = B();
3338
+ return /* @__PURE__ */ j(w, {
2749
3339
  ref: a,
2750
3340
  horizontal: !0,
2751
3341
  showsHorizontalScrollIndicator: !1,
@@ -2769,9 +3359,9 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2769
3359
  ...i,
2770
3360
  children: e
2771
3361
  });
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, {
3362
+ }), Bt = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
3363
+ let l = B();
3364
+ return /* @__PURE__ */ M(C, {
2775
3365
  ref: c,
2776
3366
  disabled: o,
2777
3367
  accessibilityRole: "tab",
@@ -2795,11 +3385,11 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2795
3385
  }),
2796
3386
  ...s,
2797
3387
  children: [
2798
- t && /* @__PURE__ */ O(T, {
3388
+ t && /* @__PURE__ */ j(O, {
2799
3389
  style: { flexShrink: 0 },
2800
3390
  children: t
2801
3391
  }),
2802
- /* @__PURE__ */ O(C, {
3392
+ /* @__PURE__ */ j(E, {
2803
3393
  numberOfLines: 1,
2804
3394
  ellipsizeMode: "tail",
2805
3395
  style: {
@@ -2810,7 +3400,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2810
3400
  },
2811
3401
  children: e
2812
3402
  }),
2813
- a !== void 0 && /* @__PURE__ */ O(T, {
3403
+ a !== void 0 && /* @__PURE__ */ j(O, {
2814
3404
  style: {
2815
3405
  flexShrink: 0,
2816
3406
  minWidth: 18,
@@ -2821,7 +3411,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2821
3411
  justifyContent: "center",
2822
3412
  backgroundColor: l.accentBgColor
2823
3413
  },
2824
- children: /* @__PURE__ */ O(C, {
3414
+ children: /* @__PURE__ */ j(E, {
2825
3415
  style: {
2826
3416
  fontFamily: l.fontFamily,
2827
3417
  fontSize: 11,
@@ -2831,7 +3421,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2831
3421
  children: a > 99 ? "99+" : a
2832
3422
  })
2833
3423
  }),
2834
- r && /* @__PURE__ */ O(b, {
3424
+ r && /* @__PURE__ */ j(C, {
2835
3425
  accessibilityRole: "button",
2836
3426
  accessibilityLabel: i,
2837
3427
  hitSlop: 8,
@@ -2845,7 +3435,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2845
3435
  borderRadius: l.radiusSm,
2846
3436
  backgroundColor: e ? l.activeOverlay : "transparent"
2847
3437
  }),
2848
- children: /* @__PURE__ */ O(C, {
3438
+ children: /* @__PURE__ */ j(E, {
2849
3439
  style: {
2850
3440
  fontFamily: l.fontFamily,
2851
3441
  fontSize: 15,
@@ -2855,7 +3445,7 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2855
3445
  children: "×"
2856
3446
  })
2857
3447
  }),
2858
- n && /* @__PURE__ */ O(T, {
3448
+ n && /* @__PURE__ */ j(O, {
2859
3449
  pointerEvents: "none",
2860
3450
  style: {
2861
3451
  position: "absolute",
@@ -2869,8 +3459,8 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2869
3459
  })
2870
3460
  ]
2871
3461
  });
2872
- }), Ye = r(function({ active: e = !1, style: t, children: n, ...r }, i) {
2873
- return /* @__PURE__ */ O(T, {
3462
+ }), Vt = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
3463
+ return /* @__PURE__ */ j(O, {
2874
3464
  ref: i,
2875
3465
  style: [{ display: e ? "flex" : "none" }, t],
2876
3466
  ...r,
@@ -2879,31 +3469,31 @@ var $ = n(""), Fe = r(function({ children: n, collapsed: r = !1, filter: i = "",
2879
3469
  });
2880
3470
  //#endregion
2881
3471
  //#region src/components/TextField/TextField.tsx
2882
- function Xe(e, t) {
3472
+ function Ht(e, t) {
2883
3473
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
2884
3474
  if (!n) return e;
2885
3475
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
2886
3476
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
2887
3477
  }
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, {
3478
+ var Ut = 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) {
3479
+ let p = B(), m = z(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
3480
+ return /* @__PURE__ */ M(O, {
2891
3481
  style: [{
2892
3482
  gap: p.space1,
2893
3483
  opacity: _ ? p.opacityDisabled : 1
2894
3484
  }, r],
2895
3485
  children: [
2896
- e && /* @__PURE__ */ O(U, {
3486
+ e && /* @__PURE__ */ j(H, {
2897
3487
  variant: "body",
2898
3488
  style: { fontWeight: String(p.fontWeightSemibold) },
2899
3489
  children: e
2900
3490
  }),
2901
- /* @__PURE__ */ O(w, {
2902
- ref: f,
3491
+ /* @__PURE__ */ j(D, {
3492
+ ref: d,
2903
3493
  editable: a,
2904
3494
  accessibilityLabel: c ?? e,
2905
3495
  accessibilityHint: l ?? v,
2906
- placeholderTextColor: Xe(p.windowFgColor, p.opacityDim),
3496
+ placeholderTextColor: Ht(p.windowFgColor, p.opacityDim),
2907
3497
  onFocus: (e) => {
2908
3498
  g(!0), o?.(e);
2909
3499
  },
@@ -2925,7 +3515,7 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
2925
3515
  }, i],
2926
3516
  ...u
2927
3517
  }),
2928
- v && /* @__PURE__ */ O(U, {
3518
+ v && /* @__PURE__ */ j(H, {
2929
3519
  variant: "caption",
2930
3520
  style: {
2931
3521
  color: n ? p.errorColor : p.windowFgColor,
@@ -2935,44 +3525,44 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
2935
3525
  })
2936
3526
  ]
2937
3527
  });
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), [
3528
+ }), Wt = m.createAnimatedComponent(C), Gt = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
3529
+ let u = B(), f = R(), p = V(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
3530
+ h.current &&= (clearTimeout(h.current), null);
3531
+ }, []), x = o((e) => {
3532
+ e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
3533
+ }, [n, b]);
3534
+ c(() => (t > 0 && (g.current = t, x(t)), b), [
2945
3535
  t,
2946
- S,
2947
- x
2948
- ]), s(() => {
2949
- if (m) {
3536
+ x,
3537
+ b
3538
+ ]), c(() => {
3539
+ if (p) {
2950
3540
  y.setValue(1);
2951
3541
  return;
2952
3542
  }
2953
- let [e, t, n, r] = d.easingDefault;
2954
- p.timing(y, {
3543
+ let [e, t, n, r] = u.easingDefault;
3544
+ m.timing(y, {
2955
3545
  toValue: 1,
2956
- duration: d.durationNormal,
2957
- easing: h.bezier(e, t, n, r),
3546
+ duration: u.durationNormal,
3547
+ easing: _.bezier(e, t, n, r),
2958
3548
  useNativeDriver: !0
2959
3549
  }).start();
2960
3550
  }, [
2961
- m,
3551
+ p,
2962
3552
  y,
2963
- d.durationNormal,
2964
- d.easingDefault
3553
+ u.durationNormal,
3554
+ u.easingDefault
2965
3555
  ]);
2966
- let w = () => {
2967
- if (g.current) {
3556
+ let S = () => {
3557
+ if (h.current) {
2968
3558
  let e = Date.now() - v.current;
2969
- _.current = Math.max(0, _.current - e), x();
3559
+ g.current = Math.max(0, g.current - e), b();
2970
3560
  }
3561
+ }, w = () => {
3562
+ x(g.current);
2971
3563
  }, T = () => {
2972
- S(_.current);
2973
- }, E = () => {
2974
- x(), i?.(), n?.();
2975
- }, A = f === "dark" ? {
3564
+ b(), i?.(), n?.();
3565
+ }, D = f === "dark" ? {
2976
3566
  shadowOpacity: .4,
2977
3567
  shadowRadius: 12,
2978
3568
  elevation: 6
@@ -2981,24 +3571,24 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
2981
3571
  shadowRadius: 8,
2982
3572
  elevation: 4
2983
3573
  };
2984
- return /* @__PURE__ */ k(Qe, {
3574
+ return /* @__PURE__ */ M(Wt, {
2985
3575
  accessible: !0,
2986
3576
  accessibilityRole: "alert",
2987
3577
  accessibilityLiveRegion: "polite",
2988
- onPressIn: w,
2989
- onPressOut: T,
3578
+ onPressIn: S,
3579
+ onPressOut: w,
2990
3580
  style: [{
2991
3581
  flexDirection: "row",
2992
3582
  alignItems: "center",
2993
- gap: d.space2,
3583
+ gap: u.space2,
2994
3584
  paddingVertical: 10,
2995
- paddingRight: d.space2,
2996
- paddingLeft: d.space3,
3585
+ paddingRight: u.space2,
3586
+ paddingLeft: u.space3,
2997
3587
  minHeight: 44,
2998
3588
  maxWidth: 480,
2999
3589
  minWidth: 240,
3000
- backgroundColor: d.cardBgColor,
3001
- borderRadius: d.radiusLg,
3590
+ backgroundColor: u.cardBgColor,
3591
+ borderRadius: u.radiusLg,
3002
3592
  shadowColor: "#000",
3003
3593
  shadowOffset: {
3004
3594
  width: 0,
@@ -3012,10 +3602,10 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3012
3602
  inputRange: [0, 1],
3013
3603
  outputRange: [.96, 1]
3014
3604
  }) }],
3015
- ...A
3016
- }, c],
3605
+ ...D
3606
+ }, s],
3017
3607
  ...l,
3018
- children: [/* @__PURE__ */ O(U, {
3608
+ children: [/* @__PURE__ */ j(H, {
3019
3609
  variant: "body",
3020
3610
  style: {
3021
3611
  flex: 1,
@@ -3023,53 +3613,53 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3023
3613
  },
3024
3614
  numberOfLines: typeof e == "string" ? 2 : void 0,
3025
3615
  children: e
3026
- }), (r || o) && /* @__PURE__ */ k(D, { children: [r && /* @__PURE__ */ O(b, {
3616
+ }), (r || a) && /* @__PURE__ */ M(A, { children: [r && /* @__PURE__ */ j(C, {
3027
3617
  accessibilityRole: "button",
3028
3618
  accessibilityLabel: r,
3029
- onPress: E,
3619
+ onPress: T,
3030
3620
  style: ({ pressed: e }) => ({
3031
3621
  paddingVertical: 4,
3032
- paddingHorizontal: d.space1,
3033
- borderRadius: d.radiusSm,
3034
- backgroundColor: e ? d.activeOverlay : "transparent"
3622
+ paddingHorizontal: u.space1,
3623
+ borderRadius: u.radiusSm,
3624
+ backgroundColor: e ? u.activeOverlay : "transparent"
3035
3625
  }),
3036
- children: /* @__PURE__ */ O(C, {
3626
+ children: /* @__PURE__ */ j(E, {
3037
3627
  style: {
3038
- fontFamily: d.fontFamily,
3039
- fontSize: d.fontSizeBody,
3040
- fontWeight: String(d.fontWeightSemibold),
3041
- color: d.accentColor
3628
+ fontFamily: u.fontFamily,
3629
+ fontSize: u.fontSizeBody,
3630
+ fontWeight: String(u.fontWeightSemibold),
3631
+ color: u.accentColor
3042
3632
  },
3043
3633
  children: r
3044
3634
  })
3045
- }), o && /* @__PURE__ */ O(b, {
3635
+ }), a && /* @__PURE__ */ j(C, {
3046
3636
  accessibilityRole: "button",
3047
3637
  accessibilityLabel: "Dismiss",
3048
3638
  hitSlop: 4,
3049
3639
  onPress: () => {
3050
- x(), n?.();
3640
+ b(), n?.();
3051
3641
  },
3052
3642
  style: ({ pressed: e }) => ({
3053
3643
  width: 28,
3054
3644
  height: 28,
3055
3645
  alignItems: "center",
3056
3646
  justifyContent: "center",
3057
- borderRadius: d.radiusSm,
3647
+ borderRadius: u.radiusSm,
3058
3648
  opacity: e ? 1 : .55,
3059
- backgroundColor: e ? d.activeOverlay : "transparent"
3649
+ backgroundColor: e ? u.activeOverlay : "transparent"
3060
3650
  }),
3061
- children: /* @__PURE__ */ O(C, {
3651
+ children: /* @__PURE__ */ j(E, {
3062
3652
  style: {
3063
- fontSize: d.fontSizeBody,
3064
- color: d.windowFgColor
3653
+ fontSize: u.fontSizeBody,
3654
+ color: u.windowFgColor
3065
3655
  },
3066
3656
  children: "×"
3067
3657
  })
3068
3658
  })] })]
3069
3659
  });
3070
- }, et = ({ position: e = "bottom", children: t, style: n, ...r }) => {
3071
- let i = I();
3072
- return /* @__PURE__ */ O(T, {
3660
+ }, Kt = ({ position: e = "bottom", children: t, style: n, ...r }) => {
3661
+ let i = B();
3662
+ return /* @__PURE__ */ j(O, {
3073
3663
  pointerEvents: "box-none",
3074
3664
  accessibilityLabel: "Notifications",
3075
3665
  style: [
@@ -3087,9 +3677,238 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3087
3677
  ...r,
3088
3678
  children: t
3089
3679
  });
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, {
3680
+ }, Q = 6, $ = 8, qt = 5;
3681
+ function Jt(e, t) {
3682
+ if (e) {
3683
+ if (typeof e == "function") {
3684
+ e(t);
3685
+ return;
3686
+ }
3687
+ e.current = t;
3688
+ }
3689
+ }
3690
+ function Yt(e, t, n) {
3691
+ switch (n) {
3692
+ case "top": return {
3693
+ top: e.y - t.height - Q,
3694
+ left: e.x + e.width / 2 - t.width / 2
3695
+ };
3696
+ case "bottom": return {
3697
+ top: e.y + e.height + Q,
3698
+ left: e.x + e.width / 2 - t.width / 2
3699
+ };
3700
+ case "left": return {
3701
+ top: e.y + e.height / 2 - t.height / 2,
3702
+ left: e.x - t.width - Q
3703
+ };
3704
+ case "right": return {
3705
+ top: e.y + e.height / 2 - t.height / 2,
3706
+ left: e.x + e.width + Q
3707
+ };
3708
+ }
3709
+ }
3710
+ function Xt(e, t, n) {
3711
+ let { width: r, height: i } = g.get("window"), a = [
3712
+ n,
3713
+ n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
3714
+ "top",
3715
+ "bottom",
3716
+ "left",
3717
+ "right"
3718
+ ];
3719
+ for (let n of a) {
3720
+ let { top: a, left: o } = Yt(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
3721
+ if (s && c) return {
3722
+ top: Math.max($, Math.min(a, i - t.height - $)),
3723
+ left: Math.max($, Math.min(o, r - t.width - $)),
3724
+ placement: n
3725
+ };
3726
+ }
3727
+ let { top: o, left: s } = Yt(e, t, n);
3728
+ return {
3729
+ top: Math.max($, Math.min(o, i - t.height - $)),
3730
+ left: Math.max($, Math.min(s, r - t.width - $)),
3731
+ placement: n
3732
+ };
3733
+ }
3734
+ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3735
+ let a = B(), s = R(), l = V(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, x] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, E = o(() => {
3736
+ C.current &&= (clearTimeout(C.current), null);
3737
+ }, []), D = o(() => {
3738
+ E(), p(!0);
3739
+ }, [E]), k = o(() => {
3740
+ E(), C.current = setTimeout(D, r);
3741
+ }, [
3742
+ E,
3743
+ D,
3744
+ r
3745
+ ]), N = o(() => {
3746
+ E(), p(!1);
3747
+ }, [E]);
3748
+ c(() => {
3749
+ if (!u) {
3750
+ g(null), v(null), x(null);
3751
+ return;
3752
+ }
3753
+ S.current?.measureInWindow((e, t, n, r) => {
3754
+ g({
3755
+ x: e,
3756
+ y: t,
3757
+ width: n,
3758
+ height: r
3759
+ });
3760
+ });
3761
+ }, [u]), c(() => {
3762
+ !h || !_ || x(Xt(h, _, t));
3763
+ }, [
3764
+ h,
3765
+ _,
3766
+ t
3767
+ ]), c(() => {
3768
+ if (y) {
3769
+ if (l) {
3770
+ w.setValue(1);
3771
+ return;
3772
+ }
3773
+ w.setValue(0), m.timing(w, {
3774
+ toValue: 1,
3775
+ duration: a.durationFast,
3776
+ useNativeDriver: !0
3777
+ }).start();
3778
+ }
3779
+ }, [
3780
+ y,
3781
+ l,
3782
+ w,
3783
+ a.durationFast
3784
+ ]), c(() => E, [E]);
3785
+ let ee = (e) => {
3786
+ let { width: t, height: n } = e.nativeEvent.layout;
3787
+ v({
3788
+ width: t,
3789
+ height: n
3790
+ });
3791
+ }, P = s === "dark" ? "#c0bfbc" : "#3d3d3d", te = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", ne = s === "dark" ? {
3792
+ shadowOpacity: .4,
3793
+ shadowRadius: 8,
3794
+ elevation: 6
3795
+ } : {
3796
+ shadowOpacity: .2,
3797
+ shadowRadius: 8,
3798
+ elevation: 4
3799
+ }, F = {
3800
+ position: "absolute",
3801
+ width: 0,
3802
+ height: 0,
3803
+ borderWidth: qt,
3804
+ borderColor: "transparent"
3805
+ }, re = (() => {
3806
+ switch (y?.placement) {
3807
+ case "top": return {
3808
+ ...F,
3809
+ top: "100%",
3810
+ left: "50%",
3811
+ marginLeft: -5,
3812
+ borderTopColor: P
3813
+ };
3814
+ case "bottom": return {
3815
+ ...F,
3816
+ bottom: "100%",
3817
+ left: "50%",
3818
+ marginLeft: -5,
3819
+ borderBottomColor: P
3820
+ };
3821
+ case "left": return {
3822
+ ...F,
3823
+ left: "100%",
3824
+ top: "50%",
3825
+ marginTop: -5,
3826
+ borderLeftColor: P
3827
+ };
3828
+ case "right": return {
3829
+ ...F,
3830
+ right: "100%",
3831
+ top: "50%",
3832
+ marginTop: -5,
3833
+ borderRightColor: P
3834
+ };
3835
+ default: return null;
3836
+ }
3837
+ })(), ie = i.props.ref;
3838
+ return /* @__PURE__ */ M(A, { children: [n(i, {
3839
+ ref: (e) => {
3840
+ S.current = e, Jt(ie, e);
3841
+ },
3842
+ delayLongPress: r,
3843
+ accessibilityHint: i.props.accessibilityHint ?? e,
3844
+ onLongPress: (e) => {
3845
+ D(), i.props.onLongPress?.(e);
3846
+ },
3847
+ onPressOut: (e) => {
3848
+ N(), i.props.onPressOut?.(e);
3849
+ },
3850
+ onHoverIn: (e) => {
3851
+ k(), i.props.onHoverIn?.(e);
3852
+ },
3853
+ onHoverOut: (e) => {
3854
+ N(), i.props.onHoverOut?.(e);
3855
+ },
3856
+ onFocus: (e) => {
3857
+ k(), i.props.onFocus?.(e);
3858
+ },
3859
+ onBlur: (e) => {
3860
+ N(), i.props.onBlur?.(e);
3861
+ }
3862
+ }), /* @__PURE__ */ j(b, {
3863
+ visible: u,
3864
+ transparent: !0,
3865
+ animationType: "none",
3866
+ statusBarTranslucent: !0,
3867
+ children: /* @__PURE__ */ j(O, {
3868
+ pointerEvents: "box-none",
3869
+ style: T.absoluteFill,
3870
+ children: /* @__PURE__ */ M(m.View, {
3871
+ onLayout: ee,
3872
+ accessible: !0,
3873
+ role: "tooltip",
3874
+ style: [{
3875
+ position: "absolute",
3876
+ maxWidth: 240,
3877
+ paddingVertical: 4,
3878
+ paddingHorizontal: a.space2,
3879
+ backgroundColor: P,
3880
+ borderRadius: a.radiusSm,
3881
+ shadowColor: "#000",
3882
+ shadowOffset: {
3883
+ width: 0,
3884
+ height: 2
3885
+ },
3886
+ ...ne
3887
+ }, y ? {
3888
+ top: y.top,
3889
+ left: y.left,
3890
+ opacity: w
3891
+ } : {
3892
+ top: -9999,
3893
+ left: -9999,
3894
+ opacity: 0
3895
+ }],
3896
+ children: [/* @__PURE__ */ j(H, {
3897
+ style: {
3898
+ color: te,
3899
+ fontSize: a.fontSizeCaption,
3900
+ fontWeight: String(a.fontWeightNormal),
3901
+ lineHeight: a.fontSizeCaption * a.lineHeightBody,
3902
+ textAlign: "center"
3903
+ },
3904
+ children: e
3905
+ }), re && /* @__PURE__ */ j(O, { style: re })]
3906
+ })
3907
+ })
3908
+ })] });
3909
+ }, Qt = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
3910
+ let a = B(), o = R();
3911
+ return /* @__PURE__ */ M(O, {
3093
3912
  ref: i,
3094
3913
  accessible: !0,
3095
3914
  accessibilityRole: "radiogroup",
@@ -3101,10 +3920,10 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3101
3920
  backgroundColor: a.headerbarBgColor
3102
3921
  }, n],
3103
3922
  ...r,
3104
- children: [/* @__PURE__ */ O(T, {
3923
+ children: [/* @__PURE__ */ j(O, {
3105
3924
  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, {
3925
+ style: [T.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
3926
+ }), /* @__PURE__ */ j(O, {
3108
3927
  style: {
3109
3928
  flexDirection: "row",
3110
3929
  alignItems: "center",
@@ -3114,9 +3933,9 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3114
3933
  children: e
3115
3934
  })]
3116
3935
  });
3117
- }), nt = r(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
3118
- let o = I();
3119
- return /* @__PURE__ */ k(b, {
3936
+ }), $t = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
3937
+ let o = B();
3938
+ return /* @__PURE__ */ M(C, {
3120
3939
  ref: a,
3121
3940
  disabled: r,
3122
3941
  accessibilityRole: "radio",
@@ -3137,10 +3956,10 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3137
3956
  backgroundColor: n ? o.headerbarBgColor : e ? o.activeOverlay : "transparent"
3138
3957
  }),
3139
3958
  ...i,
3140
- children: [t && /* @__PURE__ */ O(T, {
3959
+ children: [t && /* @__PURE__ */ j(O, {
3141
3960
  style: { flexShrink: 0 },
3142
3961
  children: t
3143
- }), /* @__PURE__ */ O(C, {
3962
+ }), /* @__PURE__ */ j(E, {
3144
3963
  style: {
3145
3964
  fontFamily: o.fontFamily,
3146
3965
  fontSize: o.fontSizeBody,
@@ -3152,6 +3971,6 @@ var Ze = r(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3152
3971
  });
3153
3972
  });
3154
3973
  //#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 };
3974
+ export { Me as ActionRow, qe as AnimatedIcon, Je as Banner, Xe as BoxedList, et as Button, nt as Card, it as Checkbox, ot as Dialog, dt as Dropdown, L as GnomeContext, Oe as GnomeProvider, ft as HeaderBar, W as Icon, pt as Link, Ce as NAMED_ACCENT_COLORS, mt as PathBar, ht as ProgressBar, vt as RadioButton, bt as SearchBar, Ye as Separator, wt as Sidebar, K as SidebarCollapsedContext, q as SidebarFilterContext, Tt as SidebarItem, Et as SidebarSection, Dt as Skeleton, At as Slider, Mt as Spinner, Rt as Switch, zt as TabBar, Bt as TabItem, Vt as TabPanel, H as Text, Ut as TextField, Gt as Toast, Kt as Toaster, Zt as Tooltip, Qt as ViewSwitcher, $t as ViewSwitcherItem, Ee as applyAccentColor, fe as darkRawTokens, ce as darkTheme, me as highContrastDarkRawTokens, ue as highContrastDarkTheme, pe as highContrastRawTokens, le as highContrastTheme, de as lightRawTokens, se as lightTheme, we as resolveColorScheme, Te as resolveContrast, Se as resolveGnomeTheme, xe as useAccentColor, ye as useColorScheme, be as useContrast, ve as useDateTimeFormatter, ge as useDir, B as useGnomeTheme, he as useLocale, _e as useNumberFormatter, V as useReducedMotion, R as useResolvedColorScheme, z as useResolvedContrast, Ct as useSidebarCollapsed };
3156
3975
 
3157
3976
  //# sourceMappingURL=index.js.map