@gnome-ui/react-native 1.2.0 → 1.4.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,10 +1,10 @@
1
1
  import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
2
- import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Linking as y, Modal as b, Platform as x, Pressable as S, ScrollView as C, StyleSheet as w, Text as T, TextInput as E, View as D, useColorScheme as O } from "react-native";
3
- import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
4
- import { Check as M, Connecting as N, Downloading as P, PanDown as F, Recording as ee, Syncing as te } from "@gnome-ui/icons";
5
- import { Circle as I, G as L, Path as R, Svg as ne, SvgXml as re } from "react-native-svg";
2
+ import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Image as y, Linking as b, Modal as x, PanResponder as S, Platform as C, Pressable as w, ScrollView as T, StyleSheet as E, Text as D, TextInput as O, View as k, useColorScheme as A } from "react-native";
3
+ import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
4
+ import { Check as P, Connecting as F, Downloading as ee, PanDown as I, PanEnd as L, Recording as R, Syncing as te } from "@gnome-ui/icons";
5
+ import { Circle as ne, G as re, Path as z, Svg as ie, SvgXml as ae } from "react-native-svg";
6
6
  //#region src/theme/tokens.generated.ts
7
- var z = {
7
+ var oe = {
8
8
  accentBgColor: "#3584e4",
9
9
  accentColor: "#3584e4",
10
10
  accentFgColor: "#fff",
@@ -145,7 +145,7 @@ var z = {
145
145
  yellow3: "#f6d32d",
146
146
  yellow4: "#f5c211",
147
147
  yellow5: "#e5a50a"
148
- }, ie = {
148
+ }, se = {
149
149
  accentBgColor: "#3584e4",
150
150
  accentColor: "#62a0ea",
151
151
  accentFgColor: "#fff",
@@ -286,7 +286,7 @@ var z = {
286
286
  yellow3: "#f6d32d",
287
287
  yellow4: "#f5c211",
288
288
  yellow5: "#e5a50a"
289
- }, ae = {
289
+ }, ce = {
290
290
  accentBgColor: "#1a5fb4",
291
291
  accentColor: "#1a5fb4",
292
292
  accentFgColor: "#fff",
@@ -427,7 +427,7 @@ var z = {
427
427
  yellow3: "#f6d32d",
428
428
  yellow4: "#f5c211",
429
429
  yellow5: "#e5a50a"
430
- }, oe = {
430
+ }, le = {
431
431
  accentBgColor: "#62a0ea",
432
432
  accentColor: "#99c1f1",
433
433
  accentFgColor: "#fff",
@@ -568,7 +568,7 @@ var z = {
568
568
  yellow3: "#f6d32d",
569
569
  yellow4: "#f5c211",
570
570
  yellow5: "#e5a50a"
571
- }, se = {
571
+ }, ue = {
572
572
  "--gnome-accent-bg-color": "#3584e4",
573
573
  "--gnome-accent-color": "#3584e4",
574
574
  "--gnome-accent-fg-color": "#fff",
@@ -709,7 +709,7 @@ var z = {
709
709
  "--gnome-yellow-3": "#f6d32d",
710
710
  "--gnome-yellow-4": "#f5c211",
711
711
  "--gnome-yellow-5": "#e5a50a"
712
- }, ce = {
712
+ }, de = {
713
713
  "--gnome-accent-bg-color": "#3584e4",
714
714
  "--gnome-accent-color": "#62a0ea",
715
715
  "--gnome-accent-fg-color": "#fff",
@@ -850,7 +850,7 @@ var z = {
850
850
  "--gnome-yellow-3": "#f6d32d",
851
851
  "--gnome-yellow-4": "#f5c211",
852
852
  "--gnome-yellow-5": "#e5a50a"
853
- }, le = {
853
+ }, fe = {
854
854
  "--gnome-accent-bg-color": "#1a5fb4",
855
855
  "--gnome-accent-color": "#1a5fb4",
856
856
  "--gnome-accent-fg-color": "#fff",
@@ -991,7 +991,7 @@ var z = {
991
991
  "--gnome-yellow-3": "#f6d32d",
992
992
  "--gnome-yellow-4": "#f5c211",
993
993
  "--gnome-yellow-5": "#e5a50a"
994
- }, ue = {
994
+ }, pe = {
995
995
  "--gnome-accent-bg-color": "#62a0ea",
996
996
  "--gnome-accent-color": "#99c1f1",
997
997
  "--gnome-accent-fg-color": "#fff",
@@ -1142,15 +1142,15 @@ var z = {
1142
1142
  contrast: "system",
1143
1143
  resolvedContrast: "normal",
1144
1144
  accentColor: "blue",
1145
- theme: z
1145
+ theme: oe
1146
1146
  });
1147
- function de() {
1147
+ function me() {
1148
1148
  return s(B).locale;
1149
1149
  }
1150
- function fe() {
1150
+ function he() {
1151
1151
  return s(B).dir;
1152
1152
  }
1153
- function pe(e) {
1153
+ function ge(e) {
1154
1154
  let { locale: t, numberFormat: n } = s(B);
1155
1155
  return u(() => new Intl.NumberFormat(t, {
1156
1156
  ...n,
@@ -1161,7 +1161,7 @@ function pe(e) {
1161
1161
  e
1162
1162
  ]);
1163
1163
  }
1164
- function me(e) {
1164
+ function _e(e) {
1165
1165
  let { locale: t, dateTimeFormat: n } = s(B);
1166
1166
  return u(() => new Intl.DateTimeFormat(t, {
1167
1167
  ...n,
@@ -1172,19 +1172,19 @@ function me(e) {
1172
1172
  e
1173
1173
  ]);
1174
1174
  }
1175
- function he() {
1175
+ function ve() {
1176
1176
  return s(B).colorScheme;
1177
1177
  }
1178
1178
  function V() {
1179
1179
  return s(B).resolvedColorScheme;
1180
1180
  }
1181
- function ge() {
1181
+ function ye() {
1182
1182
  return s(B).contrast;
1183
1183
  }
1184
1184
  function H() {
1185
1185
  return s(B).resolvedContrast;
1186
1186
  }
1187
- function _e() {
1187
+ function be() {
1188
1188
  return s(B).accentColor;
1189
1189
  }
1190
1190
  function U() {
@@ -1192,12 +1192,12 @@ function U() {
1192
1192
  }
1193
1193
  //#endregion
1194
1194
  //#region src/theme/resolveTheme.ts
1195
- function ve({ colorScheme: e, contrast: t = "normal" }) {
1196
- return t === "more" ? e === "dark" ? oe : ae : e === "dark" ? ie : z;
1195
+ function xe({ colorScheme: e, contrast: t = "normal" }) {
1196
+ return t === "more" ? e === "dark" ? le : ce : e === "dark" ? se : oe;
1197
1197
  }
1198
1198
  //#endregion
1199
1199
  //#region src/GnomeProvider/resolveContext.ts
1200
- var ye = new Set([
1200
+ var Se = new Set([
1201
1201
  "blue",
1202
1202
  "green",
1203
1203
  "yellow",
@@ -1206,15 +1206,15 @@ var ye = new Set([
1206
1206
  "purple",
1207
1207
  "brown"
1208
1208
  ]);
1209
- function be(e, t) {
1209
+ function Ce(e, t) {
1210
1210
  return e === "system" ? t === "dark" ? "dark" : "light" : e;
1211
1211
  }
1212
- function xe(e, t) {
1212
+ function we(e, t) {
1213
1213
  return e === "system" ? t ? "more" : "normal" : e;
1214
1214
  }
1215
- function Se(e, t, n, r) {
1215
+ function Te(e, t, n, r) {
1216
1216
  if (t === "blue") return e;
1217
- let i = ye.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
1217
+ let i = Se.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
1218
1218
  return {
1219
1219
  ...e,
1220
1220
  accentColor: a,
@@ -1224,17 +1224,17 @@ function Se(e, t, n, r) {
1224
1224
  }
1225
1225
  //#endregion
1226
1226
  //#region src/GnomeProvider/GnomeProvider.tsx
1227
- function Ce() {
1227
+ function Ee() {
1228
1228
  let [e, t] = f(!1);
1229
1229
  return c(() => {
1230
- let e = x.OS === "android" ? p.isHighTextContrastEnabled : x.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
1230
+ let e = C.OS === "android" ? p.isHighTextContrastEnabled : C.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
1231
1231
  if (!e) return;
1232
1232
  let n = !0;
1233
1233
  (async () => {
1234
1234
  let r = await e();
1235
1235
  n && t(r);
1236
1236
  })();
1237
- let r = x.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
1237
+ let r = C.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
1238
1238
  return () => {
1239
1239
  n = !1, i.remove();
1240
1240
  };
@@ -1254,8 +1254,8 @@ function W() {
1254
1254
  };
1255
1255
  }, []), e;
1256
1256
  }
1257
- var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1258
- let c = O(), l = Ce(), d = be(i, c), f = xe(a, l), p = t ?? (v.isRTL ? "rtl" : "ltr"), m = u(() => ({
1257
+ var De = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1258
+ let c = A(), l = Ee(), d = Ce(i, c), f = we(a, l), p = t ?? (v.isRTL ? "rtl" : "ltr"), m = u(() => ({
1259
1259
  locale: e,
1260
1260
  dir: p,
1261
1261
  numberFormat: n,
@@ -1265,7 +1265,7 @@ var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1265
1265
  contrast: a,
1266
1266
  resolvedContrast: f,
1267
1267
  accentColor: o,
1268
- theme: Se(ve({
1268
+ theme: Te(xe({
1269
1269
  colorScheme: d,
1270
1270
  contrast: f
1271
1271
  }), o, d, f)
@@ -1280,11 +1280,11 @@ var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1280
1280
  f,
1281
1281
  o
1282
1282
  ]);
1283
- return /* @__PURE__ */ A(B.Provider, {
1283
+ return /* @__PURE__ */ M(B.Provider, {
1284
1284
  value: m,
1285
1285
  children: s
1286
1286
  });
1287
- }, Te = new Set([
1287
+ }, Oe = new Set([
1288
1288
  "large-title",
1289
1289
  "title-1",
1290
1290
  "title-2",
@@ -1292,7 +1292,7 @@ var we = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1292
1292
  "title-4",
1293
1293
  "heading"
1294
1294
  ]);
1295
- function Ee(e, t) {
1295
+ function ke(e, t) {
1296
1296
  let n = (e) => String(e);
1297
1297
  switch (t) {
1298
1298
  case "large-title": return {
@@ -1361,7 +1361,7 @@ function Ee(e, t) {
1361
1361
  };
1362
1362
  }
1363
1363
  }
1364
- function De(e, t) {
1364
+ function Ae(e, t) {
1365
1365
  switch (t) {
1366
1366
  case "dim": return {
1367
1367
  color: e.windowFgColor,
@@ -1377,19 +1377,19 @@ function De(e, t) {
1377
1377
  }
1378
1378
  var G = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
1379
1379
  let s = U();
1380
- return /* @__PURE__ */ A(T, {
1380
+ return /* @__PURE__ */ M(D, {
1381
1381
  ref: o,
1382
- accessibilityRole: i ?? (Te.has(e) ? "header" : void 0),
1382
+ accessibilityRole: i ?? (Oe.has(e) ? "header" : void 0),
1383
1383
  style: [
1384
1384
  { fontFamily: s.fontFamily },
1385
- Ee(s, e),
1386
- De(s, t),
1385
+ ke(s, e),
1386
+ Ae(s, t),
1387
1387
  n
1388
1388
  ],
1389
1389
  ...a,
1390
1390
  children: r
1391
1391
  });
1392
- }), Oe = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
1392
+ }), je = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
1393
1393
  let u = U(), d = a === "property", f = {
1394
1394
  flexDirection: "row",
1395
1395
  alignItems: "center",
@@ -1398,23 +1398,23 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
1398
1398
  paddingHorizontal: u.space4,
1399
1399
  minHeight: 52,
1400
1400
  width: "100%"
1401
- }, p = /* @__PURE__ */ j(k, { children: [
1402
- n && /* @__PURE__ */ A(D, {
1401
+ }, p = /* @__PURE__ */ N(j, { children: [
1402
+ n && /* @__PURE__ */ M(k, {
1403
1403
  style: { flexShrink: 0 },
1404
1404
  children: n
1405
1405
  }),
1406
- /* @__PURE__ */ j(D, {
1406
+ /* @__PURE__ */ N(k, {
1407
1407
  style: {
1408
1408
  flex: 1,
1409
1409
  gap: 2
1410
1410
  },
1411
- children: [/* @__PURE__ */ A(G, {
1411
+ children: [/* @__PURE__ */ M(G, {
1412
1412
  variant: d ? "caption" : "body",
1413
1413
  color: d ? "dim" : "default",
1414
1414
  numberOfLines: 1,
1415
1415
  ellipsizeMode: "tail",
1416
1416
  children: e
1417
- }), t && /* @__PURE__ */ A(G, {
1417
+ }), t && /* @__PURE__ */ M(G, {
1418
1418
  variant: d ? "body" : "caption",
1419
1419
  color: d ? "default" : "dim",
1420
1420
  numberOfLines: 1,
@@ -1422,7 +1422,7 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
1422
1422
  children: t
1423
1423
  })]
1424
1424
  }),
1425
- r && /* @__PURE__ */ A(D, {
1425
+ r && /* @__PURE__ */ M(k, {
1426
1426
  style: {
1427
1427
  flexShrink: 0,
1428
1428
  flexDirection: "row",
@@ -1432,7 +1432,7 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
1432
1432
  children: r
1433
1433
  })
1434
1434
  ] });
1435
- return i ? /* @__PURE__ */ A(S, {
1435
+ return i ? /* @__PURE__ */ M(w, {
1436
1436
  ref: l,
1437
1437
  disabled: s,
1438
1438
  accessibilityRole: "button",
@@ -1446,22 +1446,22 @@ var G = i(function({ variant: e = "body", color: t = "default", style: n, childr
1446
1446
  o
1447
1447
  ],
1448
1448
  ...c,
1449
- children: ({ pressed: e }) => /* @__PURE__ */ j(k, { children: [p, e && !s ? /* @__PURE__ */ A(D, {
1449
+ children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [p, e && !s ? /* @__PURE__ */ M(k, {
1450
1450
  pointerEvents: "none",
1451
- style: [w.absoluteFill, { backgroundColor: u.activeOverlay }]
1451
+ style: [E.absoluteFill, { backgroundColor: u.activeOverlay }]
1452
1452
  }) : null] })
1453
- }) : /* @__PURE__ */ A(D, {
1453
+ }) : /* @__PURE__ */ M(k, {
1454
1454
  ref: l,
1455
1455
  style: [f, o],
1456
1456
  ...c,
1457
1457
  children: p
1458
1458
  });
1459
- }), ke = {
1459
+ }), Me = {
1460
1460
  sm: 12,
1461
1461
  md: 16,
1462
1462
  lg: 20
1463
1463
  };
1464
- function Ae(e, t) {
1464
+ function Ne(e, t) {
1465
1465
  switch (t) {
1466
1466
  case "blue": return e.blue3;
1467
1467
  case "green": return e.green4;
@@ -1473,7 +1473,7 @@ function Ae(e, t) {
1473
1473
  default: return e.windowFgColor;
1474
1474
  }
1475
1475
  }
1476
- function je(e) {
1476
+ function Pe(e) {
1477
1477
  return e ? {
1478
1478
  accessible: !0,
1479
1479
  accessibilityLabel: e,
@@ -1485,27 +1485,27 @@ function je(e) {
1485
1485
  }
1486
1486
  //#endregion
1487
1487
  //#region src/components/Icon/Icon.tsx
1488
- function K(e) {
1488
+ function Fe(e) {
1489
1489
  return "paths" in e && Array.isArray(e.paths) ? !0 : typeof e.svg == "string" && !("path" in e);
1490
1490
  }
1491
- function Me(e) {
1491
+ function Ie(e) {
1492
1492
  return e === "nonzero" || e === "evenodd" ? e : void 0;
1493
1493
  }
1494
- var q = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
1495
- let s = U(), c = ke[t], l = Ae(s, a), u = K(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = K(e) ? e.svg : void 0, f = K(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ A(R, {
1494
+ var K = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
1495
+ let s = U(), c = Me[t], l = Ne(s, a), u = Fe(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = Fe(e) ? e.svg : void 0, f = Fe(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ M(z, {
1496
1496
  d: e.d,
1497
- fillRule: Me(e.fillRule),
1498
- clipRule: Me(e.clipRule),
1497
+ fillRule: Ie(e.fillRule),
1498
+ clipRule: Ie(e.clipRule),
1499
1499
  transform: e.transform
1500
- }, t)) : [/* @__PURE__ */ A(R, { d: e.path }, 0)], p = je(i);
1501
- return d ? /* @__PURE__ */ A(re, {
1500
+ }, t)) : [/* @__PURE__ */ M(z, { d: e.path }, 0)], p = Pe(i);
1501
+ return d ? /* @__PURE__ */ M(ae, {
1502
1502
  xml: `<svg viewBox="${u}">${d}</svg>`,
1503
1503
  width: n ?? c,
1504
1504
  height: r ?? c,
1505
1505
  fill: l,
1506
1506
  style: o,
1507
1507
  ...p
1508
- }) : /* @__PURE__ */ A(ne, {
1508
+ }) : /* @__PURE__ */ M(ie, {
1509
1509
  viewBox: u,
1510
1510
  width: n ?? c,
1511
1511
  height: r ?? c,
@@ -1514,8 +1514,8 @@ var q = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, sty
1514
1514
  ...p,
1515
1515
  children: f
1516
1516
  });
1517
- }, Ne = m.createAnimatedComponent(L), Pe = m.createAnimatedComponent(R), Fe = m.createAnimatedComponent(I);
1518
- function Ie(e) {
1517
+ }, Le = m.createAnimatedComponent(re), Re = m.createAnimatedComponent(z), ze = m.createAnimatedComponent(ne);
1518
+ function Be(e) {
1519
1519
  let t = d(new m.Value(0)).current;
1520
1520
  return c(() => {
1521
1521
  let n = m.loop(m.timing(t, {
@@ -1527,7 +1527,7 @@ function Ie(e) {
1527
1527
  return n.start(), () => n.stop();
1528
1528
  }, [t, e]), t;
1529
1529
  }
1530
- function Le(e, t) {
1530
+ function Ve(e, t) {
1531
1531
  let n = d(new m.Value(0)).current;
1532
1532
  return c(() => {
1533
1533
  let r = m.sequence([m.delay(t), m.loop(m.timing(n, {
@@ -1543,17 +1543,17 @@ function Le(e, t) {
1543
1543
  t
1544
1544
  ]), n;
1545
1545
  }
1546
- var Re = ({ fill: e }) => /* @__PURE__ */ A(Ne, {
1547
- transform: Ie(1500).interpolate({
1546
+ var He = ({ fill: e }) => /* @__PURE__ */ M(Le, {
1547
+ transform: Be(1500).interpolate({
1548
1548
  inputRange: [0, 1],
1549
1549
  outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
1550
1550
  }),
1551
- children: /* @__PURE__ */ A(R, {
1551
+ children: /* @__PURE__ */ M(z, {
1552
1552
  fill: e,
1553
1553
  fillRule: "evenodd",
1554
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
1555
  })
1556
- }), ze = ({ fill: e }) => {
1556
+ }), Ue = ({ fill: e }) => {
1557
1557
  let t = d(new m.Value(1)).current;
1558
1558
  return c(() => {
1559
1559
  let e = _.inOut(_.ease), n = m.loop(m.sequence([m.timing(t, {
@@ -1568,13 +1568,13 @@ var Re = ({ fill: e }) => /* @__PURE__ */ A(Ne, {
1568
1568
  useNativeDriver: !1
1569
1569
  })]));
1570
1570
  return n.start(), () => n.stop();
1571
- }, [t]), /* @__PURE__ */ A(Pe, {
1571
+ }, [t]), /* @__PURE__ */ M(Re, {
1572
1572
  fill: e,
1573
1573
  opacity: t,
1574
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
1575
  });
1576
- }, Be = ({ fill: e }) => {
1577
- let t = Ie(1400), n = [
1576
+ }, We = ({ fill: e }) => {
1577
+ let t = Be(1400), n = [
1578
1578
  0,
1579
1579
  .2,
1580
1580
  .5,
@@ -1602,30 +1602,30 @@ var Re = ({ fill: e }) => /* @__PURE__ */ A(Ne, {
1602
1602
  1
1603
1603
  ]
1604
1604
  });
1605
- return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(R, {
1605
+ return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(z, {
1606
1606
  fill: e,
1607
1607
  d: "M2 13h12v2H2z"
1608
- }), /* @__PURE__ */ A(Ne, {
1608
+ }), /* @__PURE__ */ M(Le, {
1609
1609
  transform: r,
1610
1610
  opacity: i,
1611
- children: /* @__PURE__ */ A(R, {
1611
+ children: /* @__PURE__ */ M(z, {
1612
1612
  fill: e,
1613
1613
  fillRule: "evenodd",
1614
1614
  d: "m2.5 5 5.5 6 5.5-6z"
1615
1615
  })
1616
1616
  })] });
1617
1617
  };
1618
- function J(e, t, n) {
1618
+ function q(e, t, n) {
1619
1619
  return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
1620
1620
  }
1621
- var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1622
- let i = Le(1200, r), a = [
1621
+ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1622
+ let i = Ve(1200, r), a = [
1623
1623
  0,
1624
1624
  .2,
1625
1625
  .4,
1626
1626
  1
1627
1627
  ];
1628
- return /* @__PURE__ */ A(Fe, {
1628
+ return /* @__PURE__ */ M(ze, {
1629
1629
  cx: e,
1630
1630
  cy: t,
1631
1631
  r: 2,
@@ -1642,44 +1642,44 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1642
1642
  transform: i.interpolate({
1643
1643
  inputRange: a,
1644
1644
  outputRange: [
1645
- J(e, t, 1),
1646
- J(e, t, .7),
1647
- J(e, t, 1),
1648
- J(e, t, 1)
1645
+ q(e, t, 1),
1646
+ q(e, t, .7),
1647
+ q(e, t, 1),
1648
+ q(e, t, 1)
1649
1649
  ]
1650
1650
  })
1651
1651
  });
1652
- }, Ve = new Map([
1653
- [te, Re],
1654
- [ee, ze],
1655
- [P, Be],
1656
- [N, ({ fill: e }) => /* @__PURE__ */ j(k, { children: [
1657
- /* @__PURE__ */ A(R, {
1652
+ }, Ke = new Map([
1653
+ [te, He],
1654
+ [R, Ue],
1655
+ [ee, We],
1656
+ [F, ({ fill: e }) => /* @__PURE__ */ N(j, { children: [
1657
+ /* @__PURE__ */ M(z, {
1658
1658
  fill: e,
1659
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
1660
  }),
1661
- /* @__PURE__ */ A(Y, {
1661
+ /* @__PURE__ */ M(Ge, {
1662
1662
  cx: 3,
1663
1663
  cy: 8,
1664
1664
  fill: e,
1665
1665
  delay: 0
1666
1666
  }),
1667
- /* @__PURE__ */ A(Y, {
1667
+ /* @__PURE__ */ M(Ge, {
1668
1668
  cx: 8,
1669
1669
  cy: 8,
1670
1670
  fill: e,
1671
1671
  delay: 150
1672
1672
  }),
1673
- /* @__PURE__ */ A(Y, {
1673
+ /* @__PURE__ */ M(Ge, {
1674
1674
  cx: 13,
1675
1675
  cy: 8,
1676
1676
  fill: e,
1677
1677
  delay: 300
1678
1678
  })
1679
1679
  ] })]
1680
- ]), He = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
1681
- let s = U(), c = W(), l = t && !c ? Ve.get(e) : void 0;
1682
- if (!l) return /* @__PURE__ */ A(q, {
1680
+ ]), qe = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
1681
+ let s = U(), c = W(), l = t && !c ? Ke.get(e) : void 0;
1682
+ if (!l) return /* @__PURE__ */ M(K, {
1683
1683
  icon: e,
1684
1684
  size: n,
1685
1685
  width: r,
@@ -1687,15 +1687,192 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1687
1687
  label: a,
1688
1688
  color: o
1689
1689
  });
1690
- let u = ke[n], d = Ae(s, o), f = je(a);
1691
- return /* @__PURE__ */ A(ne, {
1690
+ let u = Me[n], d = Ne(s, o), f = Pe(a);
1691
+ return /* @__PURE__ */ M(ie, {
1692
1692
  viewBox: e.viewBox,
1693
1693
  width: r ?? u,
1694
1694
  height: i ?? u,
1695
1695
  ...f,
1696
- children: /* @__PURE__ */ A(l, { fill: d })
1696
+ children: /* @__PURE__ */ M(l, { fill: d })
1697
+ });
1698
+ }, Je = [
1699
+ "blue",
1700
+ "green",
1701
+ "yellow",
1702
+ "orange",
1703
+ "red",
1704
+ "purple",
1705
+ "brown",
1706
+ "teal",
1707
+ "slate"
1708
+ ], Ye = {
1709
+ sm: 24,
1710
+ md: 32,
1711
+ lg: 48,
1712
+ xl: 64
1713
+ }, Xe = {
1714
+ sm: .5,
1715
+ md: .6,
1716
+ lg: 1,
1717
+ xl: 1.4
1718
+ };
1719
+ function Ze(e) {
1720
+ let t = 0;
1721
+ for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
1722
+ return Je[t % Je.length];
1723
+ }
1724
+ function Qe(e) {
1725
+ let t = e.trim().split(/\s+/).filter(Boolean);
1726
+ return t.length === 0 ? "" : t.length === 1 ? t[0].charAt(0).toUpperCase() : t[0].charAt(0).toUpperCase() + t[t.length - 1].charAt(0).toUpperCase();
1727
+ }
1728
+ function $e(e, t) {
1729
+ switch (t) {
1730
+ case "blue": return {
1731
+ backgroundColor: e.blue3,
1732
+ initialsColor: "#fff"
1733
+ };
1734
+ case "green": return {
1735
+ backgroundColor: e.green4,
1736
+ initialsColor: "#fff"
1737
+ };
1738
+ case "yellow": return {
1739
+ backgroundColor: e.yellow4,
1740
+ initialsColor: "rgba(0, 0, 0, 0.8)"
1741
+ };
1742
+ case "orange": return {
1743
+ backgroundColor: e.orange4,
1744
+ initialsColor: "#fff"
1745
+ };
1746
+ case "red": return {
1747
+ backgroundColor: e.red3,
1748
+ initialsColor: "#fff"
1749
+ };
1750
+ case "purple": return {
1751
+ backgroundColor: e.purple3,
1752
+ initialsColor: "#fff"
1753
+ };
1754
+ case "brown": return {
1755
+ backgroundColor: e.brown3,
1756
+ initialsColor: "#fff"
1757
+ };
1758
+ case "teal": return {
1759
+ backgroundColor: "#2190a4",
1760
+ initialsColor: "#fff"
1761
+ };
1762
+ case "slate": return {
1763
+ backgroundColor: e.dark2,
1764
+ initialsColor: "#fff"
1765
+ };
1766
+ }
1767
+ }
1768
+ var et = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a }) => {
1769
+ let o = U(), s = V(), c = i ?? (e ? Ze(e) : "blue"), l = Qe(e), u = Ye[r], { backgroundColor: d, initialsColor: f } = $e(o, c), p = s === "dark" ? "rgba(255, 255, 255, 0.08)" : "rgba(0, 0, 0, 0.08)";
1770
+ return /* @__PURE__ */ M(k, {
1771
+ accessible: !0,
1772
+ role: "img",
1773
+ accessibilityLabel: n ?? (e || void 0) ?? "Avatar",
1774
+ style: [{
1775
+ width: u,
1776
+ height: u,
1777
+ borderRadius: o.radiusPill,
1778
+ overflow: "hidden",
1779
+ alignItems: "center",
1780
+ justifyContent: "center",
1781
+ backgroundColor: t ? void 0 : d,
1782
+ borderWidth: 1,
1783
+ borderColor: p
1784
+ }, a],
1785
+ children: t ? /* @__PURE__ */ M(y, {
1786
+ testID: "avatar-image",
1787
+ source: { uri: t },
1788
+ accessibilityElementsHidden: !0,
1789
+ importantForAccessibility: "no",
1790
+ resizeMode: "cover",
1791
+ style: {
1792
+ width: "100%",
1793
+ height: "100%"
1794
+ }
1795
+ }) : /* @__PURE__ */ M(D, {
1796
+ accessibilityElementsHidden: !0,
1797
+ importantForAccessibility: "no",
1798
+ style: {
1799
+ fontFamily: o.fontFamily,
1800
+ fontWeight: String(o.fontWeightSemibold),
1801
+ fontSize: o.fontSizeBody * Xe[r],
1802
+ lineHeight: o.fontSizeBody * Xe[r],
1803
+ color: f
1804
+ },
1805
+ children: l
1806
+ })
1807
+ });
1808
+ };
1809
+ //#endregion
1810
+ //#region src/components/Badge/Badge.tsx
1811
+ function tt(e, t, n) {
1812
+ switch (n) {
1813
+ case "accent": return {
1814
+ backgroundColor: e.accentBgColor,
1815
+ color: e.accentFgColor
1816
+ };
1817
+ case "success": return {
1818
+ backgroundColor: e.successBgColor,
1819
+ color: e.successFgColor
1820
+ };
1821
+ case "warning": return {
1822
+ backgroundColor: e.warningBgColor,
1823
+ color: e.warningFgColor
1824
+ };
1825
+ case "error": return {
1826
+ backgroundColor: e.errorBgColor,
1827
+ color: e.errorFgColor
1828
+ };
1829
+ case "neutral": return {
1830
+ backgroundColor: t === "dark" ? e.dark2 : e.light4,
1831
+ color: e.windowFgColor
1832
+ };
1833
+ }
1834
+ }
1835
+ var nt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i }) => {
1836
+ let a = U(), { backgroundColor: o, color: s } = tt(a, V(), e), c = /* @__PURE__ */ M(k, {
1837
+ testID: "badge-ring",
1838
+ style: [{
1839
+ padding: 2,
1840
+ borderRadius: a.radiusPill,
1841
+ backgroundColor: a.windowBgColor
1842
+ }, r ? {
1843
+ position: "absolute",
1844
+ top: t ? -2 : -4,
1845
+ right: t ? -2 : -4,
1846
+ zIndex: 1
1847
+ } : null],
1848
+ children: /* @__PURE__ */ M(k, {
1849
+ testID: "badge",
1850
+ style: [{
1851
+ minWidth: t ? 10 : 18,
1852
+ height: t ? 10 : 18,
1853
+ paddingHorizontal: t ? 0 : 5,
1854
+ borderRadius: a.radiusPill,
1855
+ backgroundColor: o,
1856
+ alignItems: "center",
1857
+ justifyContent: "center"
1858
+ }, i],
1859
+ children: !t && (typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ M(D, {
1860
+ style: {
1861
+ fontFamily: a.fontFamily,
1862
+ fontWeight: String(a.fontWeightSemibold),
1863
+ fontSize: 11,
1864
+ lineHeight: 13,
1865
+ color: s
1866
+ },
1867
+ children: n
1868
+ }) : n)
1869
+ })
1697
1870
  });
1698
- }, Ue = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1871
+ return r ? /* @__PURE__ */ N(k, {
1872
+ style: { alignSelf: "flex-start" },
1873
+ children: [r, c]
1874
+ }) : c;
1875
+ }, rt = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1699
1876
  let c = U(), l = {
1700
1877
  info: {
1701
1878
  bg: c.accentBgColor,
@@ -1714,7 +1891,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1714
1891
  fg: c.successFgColor
1715
1892
  }
1716
1893
  }[e], u = e === "warning" ? "rgba(0, 0, 0, 0.14)" : "rgba(255, 255, 255, 0.25)";
1717
- return /* @__PURE__ */ j(D, {
1894
+ return /* @__PURE__ */ N(k, {
1718
1895
  accessible: !0,
1719
1896
  accessibilityRole: "alert",
1720
1897
  accessibilityLiveRegion: "polite",
@@ -1729,7 +1906,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1729
1906
  backgroundColor: l.bg
1730
1907
  }, o],
1731
1908
  ...s,
1732
- children: [/* @__PURE__ */ A(G, {
1909
+ children: [/* @__PURE__ */ M(G, {
1733
1910
  variant: "body",
1734
1911
  style: {
1735
1912
  flex: 1,
@@ -1737,14 +1914,14 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1737
1914
  color: l.fg
1738
1915
  },
1739
1916
  children: t
1740
- }), (n || i) && /* @__PURE__ */ j(D, {
1917
+ }), (n || i) && /* @__PURE__ */ N(k, {
1741
1918
  style: {
1742
1919
  flexDirection: "row",
1743
1920
  alignItems: "center",
1744
1921
  gap: c.space1,
1745
1922
  flexShrink: 0
1746
1923
  },
1747
- children: [n && /* @__PURE__ */ A(S, {
1924
+ children: [n && /* @__PURE__ */ M(w, {
1748
1925
  accessibilityRole: "button",
1749
1926
  accessibilityLabel: n,
1750
1927
  onPress: r,
@@ -1754,7 +1931,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1754
1931
  borderRadius: c.radiusMd,
1755
1932
  backgroundColor: e ? u : "transparent"
1756
1933
  }),
1757
- children: /* @__PURE__ */ A(T, {
1934
+ children: /* @__PURE__ */ M(D, {
1758
1935
  style: {
1759
1936
  fontFamily: c.fontFamily,
1760
1937
  fontSize: c.fontSizeBody,
@@ -1763,7 +1940,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1763
1940
  },
1764
1941
  children: n
1765
1942
  })
1766
- }), i && /* @__PURE__ */ A(S, {
1943
+ }), i && /* @__PURE__ */ M(w, {
1767
1944
  accessibilityRole: "button",
1768
1945
  accessibilityLabel: "Dismiss",
1769
1946
  hitSlop: 4,
@@ -1777,7 +1954,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1777
1954
  opacity: e ? 1 : .6,
1778
1955
  backgroundColor: e ? u : "transparent"
1779
1956
  }),
1780
- children: /* @__PURE__ */ A(T, {
1957
+ children: /* @__PURE__ */ M(D, {
1781
1958
  style: {
1782
1959
  fontSize: c.fontSizeBody,
1783
1960
  color: l.fg
@@ -1787,8 +1964,164 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1787
1964
  })]
1788
1965
  })]
1789
1966
  });
1790
- }, X = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
1791
- return /* @__PURE__ */ A(D, {
1967
+ }, it = m.createAnimatedComponent(w), at = 150, ot = ({ open: e, title: t, children: n, onClose: r, closeOnBackdrop: i = !0, style: a, testID: o }) => {
1968
+ let s = U(), l = W(), [p, _] = f(e), [v, y] = f(0), b = d(new m.Value(g.get("window").height)).current, C = d(new m.Value(0)).current, T = d(!1);
1969
+ c(() => {
1970
+ e && _(!0);
1971
+ }, [e]), c(() => {
1972
+ if (!(!p || T.current)) if (e) {
1973
+ if (l) {
1974
+ b.setValue(0), C.setValue(1);
1975
+ return;
1976
+ }
1977
+ v > 0 && (b.setValue(v), m.timing(b, {
1978
+ toValue: 0,
1979
+ duration: s.durationNormal,
1980
+ useNativeDriver: !0
1981
+ }).start()), m.timing(C, {
1982
+ toValue: 1,
1983
+ duration: s.durationNormal,
1984
+ useNativeDriver: !0
1985
+ }).start();
1986
+ } else {
1987
+ if (l) {
1988
+ _(!1);
1989
+ return;
1990
+ }
1991
+ m.timing(b, {
1992
+ toValue: v || g.get("window").height,
1993
+ duration: s.durationNormal,
1994
+ useNativeDriver: !0
1995
+ }).start(({ finished: e }) => {
1996
+ e && _(!1);
1997
+ }), m.timing(C, {
1998
+ toValue: 0,
1999
+ duration: s.durationNormal,
2000
+ useNativeDriver: !0
2001
+ }).start();
2002
+ }
2003
+ }, [
2004
+ e,
2005
+ p,
2006
+ v,
2007
+ l,
2008
+ b,
2009
+ C,
2010
+ s.durationNormal
2011
+ ]), c(() => {
2012
+ if (!e) return;
2013
+ let t = h.addEventListener("hardwareBackPress", () => (r?.(), !0));
2014
+ return () => t.remove();
2015
+ }, [e, r]);
2016
+ let E = u(() => S.create({
2017
+ onStartShouldSetPanResponder: () => !0,
2018
+ onPanResponderGrant: () => {
2019
+ T.current = !0;
2020
+ },
2021
+ onPanResponderMove: (e, t) => {
2022
+ b.setValue(Math.max(0, t.dy));
2023
+ },
2024
+ onPanResponderRelease: (e, t) => {
2025
+ T.current = !1, Math.max(0, t.dy) >= at ? r?.() : m.timing(b, {
2026
+ toValue: 0,
2027
+ duration: s.durationNormal,
2028
+ useNativeDriver: !0
2029
+ }).start();
2030
+ }
2031
+ }), [
2032
+ b,
2033
+ s.durationNormal,
2034
+ r
2035
+ ]);
2036
+ return p ? /* @__PURE__ */ M(x, {
2037
+ visible: p,
2038
+ transparent: !0,
2039
+ animationType: "none",
2040
+ statusBarTranslucent: !0,
2041
+ onRequestClose: r,
2042
+ children: /* @__PURE__ */ M(it, {
2043
+ testID: o,
2044
+ onPress: i ? r : void 0,
2045
+ accessible: !1,
2046
+ style: {
2047
+ flex: 1,
2048
+ justifyContent: "flex-end",
2049
+ backgroundColor: s.dialogBackdropColor,
2050
+ opacity: C
2051
+ },
2052
+ children: /* @__PURE__ */ M(w, {
2053
+ onPress: () => {},
2054
+ accessible: !1,
2055
+ children: /* @__PURE__ */ N(m.View, {
2056
+ onLayout: (e) => {
2057
+ y(e.nativeEvent.layout.height);
2058
+ },
2059
+ accessible: !0,
2060
+ role: "dialog",
2061
+ accessibilityViewIsModal: !0,
2062
+ style: [{
2063
+ alignSelf: "center",
2064
+ width: "100%",
2065
+ maxWidth: 560,
2066
+ backgroundColor: s.dialogBgColor,
2067
+ borderTopLeftRadius: s.radiusXl,
2068
+ borderTopRightRadius: s.radiusXl,
2069
+ shadowColor: "#000",
2070
+ shadowOffset: {
2071
+ width: 0,
2072
+ height: -4
2073
+ },
2074
+ shadowOpacity: .18,
2075
+ shadowRadius: 24,
2076
+ elevation: 12,
2077
+ transform: [{ translateY: b }]
2078
+ }, a],
2079
+ children: [
2080
+ /* @__PURE__ */ M(k, {
2081
+ testID: "bottom-sheet-handle",
2082
+ accessibilityElementsHidden: !0,
2083
+ importantForAccessibility: "no",
2084
+ style: {
2085
+ alignItems: "center",
2086
+ paddingTop: s.space2,
2087
+ paddingBottom: s.space1
2088
+ },
2089
+ ...E.panHandlers,
2090
+ children: /* @__PURE__ */ M(k, { style: {
2091
+ width: 36,
2092
+ height: 4,
2093
+ borderRadius: 2,
2094
+ backgroundColor: s.windowFgColor,
2095
+ opacity: .2
2096
+ } })
2097
+ }),
2098
+ t && /* @__PURE__ */ M(G, {
2099
+ variant: "title-4",
2100
+ style: {
2101
+ paddingHorizontal: s.space4,
2102
+ paddingBottom: s.space2,
2103
+ textAlign: "center",
2104
+ fontWeight: String(s.fontWeightBold)
2105
+ },
2106
+ children: t
2107
+ }),
2108
+ n && /* @__PURE__ */ M(k, {
2109
+ style: {
2110
+ paddingHorizontal: s.space4,
2111
+ paddingBottom: s.space4
2112
+ },
2113
+ children: typeof n == "string" ? /* @__PURE__ */ M(G, {
2114
+ variant: "body",
2115
+ children: n
2116
+ }) : n
2117
+ })
2118
+ ]
2119
+ })
2120
+ })
2121
+ })
2122
+ }) : null;
2123
+ }, st = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
2124
+ return /* @__PURE__ */ M(k, {
1792
2125
  ref: r,
1793
2126
  accessible: !1,
1794
2127
  style: [
@@ -1808,15 +2141,15 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1808
2141
  ],
1809
2142
  ...n
1810
2143
  });
1811
- }), We = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
2144
+ }), ct = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
1812
2145
  let o = U(), s = e.toArray(t).filter(Boolean);
1813
- return n === "separate" ? /* @__PURE__ */ A(D, {
2146
+ return n === "separate" ? /* @__PURE__ */ M(k, {
1814
2147
  ref: a,
1815
2148
  accessible: !0,
1816
2149
  accessibilityRole: "list",
1817
2150
  style: [{ gap: o.space2 }, r],
1818
2151
  ...i,
1819
- children: s.map((e, t) => /* @__PURE__ */ A(D, {
2152
+ children: s.map((e, t) => /* @__PURE__ */ M(k, {
1820
2153
  style: {
1821
2154
  backgroundColor: o.cardBgColor,
1822
2155
  borderWidth: 1,
@@ -1826,7 +2159,7 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1826
2159
  },
1827
2160
  children: e
1828
2161
  }, t))
1829
- }) : /* @__PURE__ */ A(D, {
2162
+ }) : /* @__PURE__ */ M(k, {
1830
2163
  ref: a,
1831
2164
  accessible: !0,
1832
2165
  accessibilityRole: "list",
@@ -1838,12 +2171,12 @@ var Y = ({ cx: e, cy: t, fill: n, delay: r }) => {
1838
2171
  overflow: "hidden"
1839
2172
  }, r],
1840
2173
  ...i,
1841
- children: s.map((e, t) => /* @__PURE__ */ j(D, { children: [t > 0 && /* @__PURE__ */ A(X, { testID: "boxed-list-separator" }), e] }, t))
2174
+ children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(st, { testID: "boxed-list-separator" }), e] }, t))
1842
2175
  });
1843
2176
  });
1844
2177
  //#endregion
1845
2178
  //#region src/components/Button/Button.tsx
1846
- function Ge(e, t) {
2179
+ function lt(e, t) {
1847
2180
  switch (t) {
1848
2181
  case "sm": return {
1849
2182
  minHeight: 28,
@@ -1868,14 +2201,14 @@ function Ge(e, t) {
1868
2201
  };
1869
2202
  }
1870
2203
  }
1871
- function Ke(e) {
2204
+ function ut(e) {
1872
2205
  switch (e) {
1873
2206
  case "sm": return 28;
1874
2207
  case "lg": return 42;
1875
2208
  default: return 34;
1876
2209
  }
1877
2210
  }
1878
- function qe(e, t, n, r) {
2211
+ function dt(e, t, n, r) {
1879
2212
  if (r) return {
1880
2213
  backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
1881
2214
  borderColor: "rgba(255, 255, 255, 0.12)",
@@ -1904,15 +2237,15 @@ function qe(e, t, n, r) {
1904
2237
  };
1905
2238
  }
1906
2239
  }
1907
- var Je = i(function({ variant: e = "default", size: t = "md", shape: n = "default", osd: r = !1, leadingIcon: i, trailingIcon: a, children: o, style: s, textStyle: c, disabled: l, ...u }, d) {
2240
+ var ft = 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
2241
  let f = U(), p = H();
1909
- return /* @__PURE__ */ A(S, {
2242
+ return /* @__PURE__ */ M(w, {
1910
2243
  ref: d,
1911
2244
  disabled: l,
1912
2245
  accessibilityRole: "button",
1913
2246
  accessibilityState: { disabled: !!l },
1914
2247
  style: ({ pressed: i }) => {
1915
- let { backgroundColor: a, borderColor: o } = qe(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? Ke(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Ge(f, t);
2248
+ let { backgroundColor: a, borderColor: o } = dt(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? ut(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = lt(f, t);
1916
2249
  return [{
1917
2250
  flexDirection: "row",
1918
2251
  alignItems: "center",
@@ -1933,10 +2266,10 @@ var Je = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
1933
2266
  },
1934
2267
  ...u,
1935
2268
  children: ({ pressed: n }) => {
1936
- let { fontSize: s } = Ge(f, t), { color: l } = qe(f, e, n, r);
1937
- return /* @__PURE__ */ j(k, { children: [
2269
+ let { fontSize: s } = lt(f, t), { color: l } = dt(f, e, n, r);
2270
+ return /* @__PURE__ */ N(j, { children: [
1938
2271
  i,
1939
- typeof o == "string" ? /* @__PURE__ */ A(T, {
2272
+ typeof o == "string" ? /* @__PURE__ */ M(D, {
1940
2273
  style: [{
1941
2274
  fontFamily: f.fontFamily,
1942
2275
  fontWeight: String(f.fontWeightSemibold),
@@ -1952,7 +2285,7 @@ var Je = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
1952
2285
  });
1953
2286
  //#endregion
1954
2287
  //#region src/components/Card/Card.tsx
1955
- function Ye(e, t) {
2288
+ function pt(e, t) {
1956
2289
  switch (t) {
1957
2290
  case "none": return 0;
1958
2291
  case "sm": return e.space2;
@@ -1960,16 +2293,16 @@ function Ye(e, t) {
1960
2293
  default: return e.space4;
1961
2294
  }
1962
2295
  }
1963
- var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
2296
+ var mt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
1964
2297
  let s = U(), c = {
1965
2298
  backgroundColor: s.cardBgColor,
1966
2299
  borderWidth: 1,
1967
2300
  borderColor: s.cardShadeColor,
1968
2301
  borderRadius: s.radiusLg,
1969
2302
  overflow: "hidden",
1970
- padding: Ye(s, t)
2303
+ padding: pt(s, t)
1971
2304
  };
1972
- return e ? /* @__PURE__ */ A(S, {
2305
+ return e ? /* @__PURE__ */ M(w, {
1973
2306
  ref: o,
1974
2307
  disabled: i,
1975
2308
  accessibilityRole: "button",
@@ -1983,20 +2316,20 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
1983
2316
  n
1984
2317
  ],
1985
2318
  ...a,
1986
- children: ({ pressed: e }) => /* @__PURE__ */ j(k, { children: [r, e && !i ? /* @__PURE__ */ A(D, {
2319
+ children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [r, e && !i ? /* @__PURE__ */ M(k, {
1987
2320
  pointerEvents: "none",
1988
- style: [w.absoluteFill, {
2321
+ style: [E.absoluteFill, {
1989
2322
  backgroundColor: s.activeOverlay,
1990
2323
  borderRadius: s.radiusLg
1991
2324
  }]
1992
2325
  }) : null] })
1993
- }) : /* @__PURE__ */ A(D, {
2326
+ }) : /* @__PURE__ */ M(k, {
1994
2327
  ref: o,
1995
2328
  style: [c, n],
1996
2329
  ...a,
1997
2330
  children: r
1998
2331
  });
1999
- }), Ze = 18, Qe = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
2332
+ }), ht = 18, gt = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
2000
2333
  let s = U(), l = V(), u = H(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
2001
2334
  c(() => {
2002
2335
  if (h.current) {
@@ -2023,7 +2356,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2023
2356
  inputRange: [0, 1],
2024
2357
  outputRange: [s.cardBgColor, s.accentBgColor]
2025
2358
  });
2026
- return /* @__PURE__ */ A(S, {
2359
+ return /* @__PURE__ */ M(w, {
2027
2360
  ref: o,
2028
2361
  disabled: r,
2029
2362
  accessibilityRole: "checkbox",
@@ -2034,10 +2367,10 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2034
2367
  onPress: () => n?.(!e),
2035
2368
  style: [{ opacity: r ? s.opacityDisabled : 1 }, i],
2036
2369
  ...a,
2037
- children: /* @__PURE__ */ A(m.View, {
2370
+ children: /* @__PURE__ */ M(m.View, {
2038
2371
  style: {
2039
- width: Ze,
2040
- height: Ze,
2372
+ width: ht,
2373
+ height: ht,
2041
2374
  alignItems: "center",
2042
2375
  justifyContent: "center",
2043
2376
  borderRadius: s.radiusSm,
@@ -2045,13 +2378,13 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2045
2378
  borderColor: v,
2046
2379
  backgroundColor: y
2047
2380
  },
2048
- children: t ? /* @__PURE__ */ A(m.View, { style: {
2381
+ children: t ? /* @__PURE__ */ M(m.View, { style: {
2049
2382
  width: 10,
2050
2383
  height: 2,
2051
2384
  borderRadius: 1,
2052
2385
  backgroundColor: "#fff",
2053
2386
  opacity: p
2054
- } }) : /* @__PURE__ */ A(m.Text, {
2387
+ } }) : /* @__PURE__ */ M(m.Text, {
2055
2388
  style: {
2056
2389
  opacity: p,
2057
2390
  color: "#fff",
@@ -2063,13 +2396,13 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2063
2396
  })
2064
2397
  })
2065
2398
  });
2066
- }), $e = m.createAnimatedComponent(S), et = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
2067
- let p = U(), g = V(), v = W(), y = d(new m.Value(+!!v)).current, x = !!s, C = () => {
2399
+ }), _t = m.createAnimatedComponent(w), vt = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
2400
+ let p = U(), g = V(), v = W(), y = d(new m.Value(+!!v)).current, b = !!s, S = () => {
2068
2401
  let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
2069
2402
  e && l?.(e.id);
2070
- }, w = () => {
2071
- x ? C() : i?.();
2072
- }, T = x ? C : a ? i : void 0;
2403
+ }, C = () => {
2404
+ b ? S() : i?.();
2405
+ }, T = b ? S : a ? i : void 0;
2073
2406
  c(() => {
2074
2407
  if (!e) return;
2075
2408
  if (v) {
@@ -2092,25 +2425,25 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2092
2425
  p.easingDefault
2093
2426
  ]), c(() => {
2094
2427
  if (!e) return;
2095
- let t = h.addEventListener("hardwareBackPress", () => (w(), !0));
2428
+ let t = h.addEventListener("hardwareBackPress", () => (C(), !0));
2096
2429
  return () => t.remove();
2097
2430
  }, [
2098
2431
  e,
2099
- x,
2432
+ b,
2100
2433
  s,
2101
2434
  l,
2102
2435
  i
2103
2436
  ]);
2104
2437
  let E = () => {
2105
- let e = x && s ? s : r;
2106
- return e.length === 0 ? null : /* @__PURE__ */ A(D, {
2438
+ let e = b && s ? s : r;
2439
+ return e.length === 0 ? null : /* @__PURE__ */ M(k, {
2107
2440
  style: {
2108
2441
  borderTopWidth: 1,
2109
2442
  borderTopColor: p.cardShadeColor
2110
2443
  },
2111
2444
  children: e.map((t, n) => {
2112
- let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = x ? () => l?.(t.id) : t.onPress;
2113
- return /* @__PURE__ */ A(S, {
2445
+ let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = b ? () => l?.(t.id) : t.onPress;
2446
+ return /* @__PURE__ */ M(w, {
2114
2447
  accessibilityRole: "button",
2115
2448
  accessibilityState: { disabled: t.disabled },
2116
2449
  disabled: t.disabled,
@@ -2123,7 +2456,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2123
2456
  backgroundColor: r ? p.activeOverlay : "transparent",
2124
2457
  opacity: t.disabled ? p.opacityDisabled : 1
2125
2458
  }),
2126
- children: /* @__PURE__ */ A(G, {
2459
+ children: /* @__PURE__ */ M(G, {
2127
2460
  variant: "body",
2128
2461
  style: {
2129
2462
  textAlign: "center",
@@ -2132,10 +2465,10 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2132
2465
  },
2133
2466
  children: t.label
2134
2467
  })
2135
- }, x ? t.id : t.label);
2468
+ }, b ? t.id : t.label);
2136
2469
  })
2137
2470
  });
2138
- }, O = g === "dark" ? {
2471
+ }, D = g === "dark" ? {
2139
2472
  shadowOpacity: .5,
2140
2473
  shadowRadius: 32,
2141
2474
  elevation: 12
@@ -2144,13 +2477,13 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2144
2477
  shadowRadius: 32,
2145
2478
  elevation: 8
2146
2479
  };
2147
- return /* @__PURE__ */ A(b, {
2480
+ return /* @__PURE__ */ M(x, {
2148
2481
  visible: e,
2149
2482
  transparent: !0,
2150
2483
  animationType: "none",
2151
2484
  statusBarTranslucent: !0,
2152
- onRequestClose: w,
2153
- children: /* @__PURE__ */ A($e, {
2485
+ onRequestClose: C,
2486
+ children: /* @__PURE__ */ M(_t, {
2154
2487
  testID: f,
2155
2488
  onPress: T,
2156
2489
  style: {
@@ -2161,14 +2494,14 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2161
2494
  backgroundColor: p.dialogBackdropColor,
2162
2495
  opacity: y
2163
2496
  },
2164
- children: /* @__PURE__ */ A(S, {
2497
+ children: /* @__PURE__ */ M(w, {
2165
2498
  onPress: () => {},
2166
2499
  accessible: !1,
2167
2500
  style: {
2168
2501
  width: "100%",
2169
2502
  maxWidth: 480
2170
2503
  },
2171
- children: /* @__PURE__ */ j(m.View, {
2504
+ children: /* @__PURE__ */ N(m.View, {
2172
2505
  accessible: !0,
2173
2506
  role: o,
2174
2507
  accessibilityViewIsModal: !0,
@@ -2181,7 +2514,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2181
2514
  width: 0,
2182
2515
  height: 8
2183
2516
  },
2184
- ...O,
2517
+ ...D,
2185
2518
  opacity: y,
2186
2519
  transform: [{ translateY: y.interpolate({
2187
2520
  inputRange: [0, 1],
@@ -2192,7 +2525,7 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2192
2525
  }) }]
2193
2526
  }, u],
2194
2527
  children: [
2195
- t && /* @__PURE__ */ A(G, {
2528
+ t && /* @__PURE__ */ M(G, {
2196
2529
  variant: "title-4",
2197
2530
  style: {
2198
2531
  padding: p.space4,
@@ -2202,12 +2535,12 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2202
2535
  },
2203
2536
  children: t
2204
2537
  }),
2205
- n && /* @__PURE__ */ A(D, {
2538
+ n && /* @__PURE__ */ M(k, {
2206
2539
  style: {
2207
2540
  paddingVertical: p.space2,
2208
2541
  paddingHorizontal: p.space4
2209
2542
  },
2210
- children: typeof n == "string" ? /* @__PURE__ */ A(G, {
2543
+ children: typeof n == "string" ? /* @__PURE__ */ M(G, {
2211
2544
  variant: "body",
2212
2545
  style: {
2213
2546
  textAlign: "center",
@@ -2222,28 +2555,55 @@ var Xe = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2222
2555
  })
2223
2556
  })
2224
2557
  });
2225
- }, tt = 4, nt = 8, rt = 280;
2226
- function it(e, t) {
2227
- let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - tt : e.y + e.height + tt;
2558
+ }, yt = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
2559
+ let i = U(), a = !!e;
2560
+ return /* @__PURE__ */ N(k, {
2561
+ testID: r,
2562
+ accessible: !0,
2563
+ role: "separator",
2564
+ accessibilityLabel: t ?? (typeof e == "string" ? e : void 0),
2565
+ style: [{
2566
+ flexDirection: "row",
2567
+ alignItems: "center",
2568
+ width: "100%",
2569
+ gap: i.space2
2570
+ }, n],
2571
+ children: [/* @__PURE__ */ M(k, { style: {
2572
+ flex: 1,
2573
+ height: 1,
2574
+ backgroundColor: i.cardShadeColor
2575
+ } }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(G, {
2576
+ variant: "caption",
2577
+ color: "dim",
2578
+ children: e
2579
+ }) : e, /* @__PURE__ */ M(k, { style: {
2580
+ flex: 1,
2581
+ height: 1,
2582
+ backgroundColor: i.cardShadeColor
2583
+ } })] })]
2584
+ });
2585
+ }, bt = 4, xt = 8, St = 280;
2586
+ function Ct(e, t) {
2587
+ let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - bt : e.y + e.height + bt;
2228
2588
  return {
2229
- top: Math.max(nt, Math.min(i, n - t - nt)),
2589
+ top: Math.max(xt, Math.min(i, n - t - xt)),
2230
2590
  left: e.x,
2231
2591
  width: e.width,
2232
2592
  flipUp: r
2233
2593
  };
2234
2594
  }
2235
- var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
2236
- let l = U(), u = W(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [x, w] = f(null), T = d(null), E = d(new m.Value(0)).current, O = e.find((e) => e.value === t), k = () => {
2595
+ var wt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
2596
+ let l = U(), u = W(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [b, S] = f(null), C = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), O = () => {
2237
2597
  a || h(!0);
2238
- }, N = () => h(!1), P = (e) => {
2239
- e.disabled || (n?.(e.value), N());
2598
+ }, A = () => h(!1), j = (e) => {
2599
+ e.disabled || (n?.(e.value), A());
2240
2600
  };
2241
2601
  return c(() => {
2242
2602
  if (!p) {
2243
- _(null), y(null), w(null);
2603
+ _(null), y(null), S(null);
2244
2604
  return;
2245
2605
  }
2246
- T.current?.measureInWindow((e, t, n, r) => {
2606
+ C.current?.measureInWindow((e, t, n, r) => {
2247
2607
  _({
2248
2608
  x: e,
2249
2609
  y: t,
@@ -2252,9 +2612,9 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2252
2612
  });
2253
2613
  });
2254
2614
  }, [p]), c(() => {
2255
- g === null || v === null || w(it(g, v));
2615
+ g === null || v === null || S(Ct(g, v));
2256
2616
  }, [g, v]), c(() => {
2257
- if (x) {
2617
+ if (b) {
2258
2618
  if (u) {
2259
2619
  E.setValue(1);
2260
2620
  return;
@@ -2266,14 +2626,14 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2266
2626
  }).start();
2267
2627
  }
2268
2628
  }, [
2269
- x,
2629
+ b,
2270
2630
  u,
2271
2631
  E,
2272
2632
  l.durationFast
2273
- ]), /* @__PURE__ */ j(D, {
2633
+ ]), /* @__PURE__ */ N(k, {
2274
2634
  style: o,
2275
- children: [/* @__PURE__ */ j(S, {
2276
- ref: T,
2635
+ children: [/* @__PURE__ */ N(w, {
2636
+ ref: C,
2277
2637
  testID: s,
2278
2638
  role: "combobox",
2279
2639
  accessibilityLabel: i,
@@ -2282,7 +2642,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2282
2642
  disabled: !!a
2283
2643
  },
2284
2644
  disabled: a,
2285
- onPress: () => p ? N() : k(),
2645
+ onPress: () => p ? A() : O(),
2286
2646
  style: ({ pressed: e }) => ({
2287
2647
  flexDirection: "row",
2288
2648
  alignItems: "center",
@@ -2298,40 +2658,40 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2298
2658
  borderRadius: l.radiusMd,
2299
2659
  opacity: a ? l.opacityDisabled : 1
2300
2660
  }),
2301
- children: [/* @__PURE__ */ A(G, {
2661
+ children: [/* @__PURE__ */ M(G, {
2302
2662
  numberOfLines: 1,
2303
2663
  style: {
2304
2664
  flex: 1,
2305
2665
  fontSize: l.fontSizeBody,
2306
2666
  color: l.windowFgColor,
2307
- opacity: O ? 1 : l.opacityDim
2667
+ opacity: D ? 1 : l.opacityDim
2308
2668
  },
2309
- children: O?.label ?? r
2310
- }), /* @__PURE__ */ A(q, {
2311
- icon: F,
2669
+ children: D?.label ?? r
2670
+ }), /* @__PURE__ */ M(K, {
2671
+ icon: I,
2312
2672
  size: "md",
2313
2673
  color: "default",
2314
2674
  style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
2315
2675
  })]
2316
- }), /* @__PURE__ */ A(b, {
2676
+ }), /* @__PURE__ */ M(x, {
2317
2677
  visible: p,
2318
2678
  transparent: !0,
2319
2679
  animationType: "none",
2320
2680
  statusBarTranslucent: !0,
2321
- children: /* @__PURE__ */ A(S, {
2322
- onPress: N,
2681
+ children: /* @__PURE__ */ M(w, {
2682
+ onPress: A,
2323
2683
  accessible: !1,
2324
2684
  style: { flex: 1 },
2325
2685
  testID: s ? `${s}-backdrop` : void 0,
2326
- children: /* @__PURE__ */ A(m.View, {
2686
+ children: /* @__PURE__ */ M(m.View, {
2327
2687
  onLayout: (e) => {
2328
- y(Math.min(e.nativeEvent.layout.height, rt));
2688
+ y(Math.min(e.nativeEvent.layout.height, St));
2329
2689
  },
2330
2690
  role: "list",
2331
2691
  accessible: !0,
2332
2692
  style: [{
2333
2693
  position: "absolute",
2334
- maxHeight: rt,
2694
+ maxHeight: St,
2335
2695
  backgroundColor: l.popoverBgColor,
2336
2696
  borderWidth: 1,
2337
2697
  borderColor: l.cardShadeColor,
@@ -2345,10 +2705,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2345
2705
  shadowOpacity: .15,
2346
2706
  shadowRadius: 12,
2347
2707
  elevation: 6
2348
- }, x ? {
2349
- top: x.top,
2350
- left: x.left,
2351
- width: x.width,
2708
+ }, b ? {
2709
+ top: b.top,
2710
+ left: b.left,
2711
+ width: b.width,
2352
2712
  opacity: E
2353
2713
  } : {
2354
2714
  top: -9999,
@@ -2356,18 +2716,18 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2356
2716
  width: 200,
2357
2717
  opacity: 0
2358
2718
  }],
2359
- children: /* @__PURE__ */ A(C, {
2719
+ children: /* @__PURE__ */ M(T, {
2360
2720
  bounces: !1,
2361
2721
  children: e.map((e) => {
2362
2722
  let n = e.value === t;
2363
- return /* @__PURE__ */ j(S, {
2723
+ return /* @__PURE__ */ N(w, {
2364
2724
  role: "option",
2365
2725
  accessibilityState: {
2366
2726
  selected: n,
2367
2727
  disabled: !!e.disabled
2368
2728
  },
2369
2729
  disabled: e.disabled,
2370
- onPress: () => P(e),
2730
+ onPress: () => j(e),
2371
2731
  style: ({ pressed: t }) => ({
2372
2732
  flexDirection: "row",
2373
2733
  alignItems: "center",
@@ -2378,12 +2738,12 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2378
2738
  backgroundColor: t ? l.activeOverlay : "transparent",
2379
2739
  opacity: e.disabled ? l.opacityDisabled : 1
2380
2740
  }),
2381
- children: [/* @__PURE__ */ j(D, {
2741
+ children: [/* @__PURE__ */ N(k, {
2382
2742
  style: {
2383
2743
  flex: 1,
2384
2744
  gap: 1
2385
2745
  },
2386
- children: [/* @__PURE__ */ A(G, {
2746
+ children: [/* @__PURE__ */ M(G, {
2387
2747
  numberOfLines: 1,
2388
2748
  style: {
2389
2749
  fontSize: l.fontSizeBody,
@@ -2391,7 +2751,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2391
2751
  fontWeight: n ? String(l.fontWeightSemibold) : void 0
2392
2752
  },
2393
2753
  children: e.label
2394
- }), e.description && /* @__PURE__ */ A(G, {
2754
+ }), e.description && /* @__PURE__ */ M(G, {
2395
2755
  numberOfLines: 1,
2396
2756
  style: {
2397
2757
  fontSize: l.fontSizeCaption,
@@ -2400,8 +2760,8 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2400
2760
  },
2401
2761
  children: e.description
2402
2762
  })]
2403
- }), n && /* @__PURE__ */ A(q, {
2404
- icon: M,
2763
+ }), n && /* @__PURE__ */ M(K, {
2764
+ icon: P,
2405
2765
  size: "md",
2406
2766
  color: "blue"
2407
2767
  })]
@@ -2412,9 +2772,104 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2412
2772
  })
2413
2773
  })]
2414
2774
  });
2415
- }, ot = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
2775
+ }, Tt = ({ label: e, children: t, expanded: n, defaultExpanded: r = !1, onExpandedChange: i, disabled: a = !1, style: o, testID: s }) => {
2776
+ let l = U(), u = W(), p = n !== void 0, [h, g] = f(r), v = p ? n : h, [y, b] = f(0), x = d(!1), S = d(new m.Value(0)).current, C = d(new m.Value(+!!r)).current, T = () => {
2777
+ if (a) return;
2778
+ let e = !v;
2779
+ p || g(e), i?.(e);
2780
+ }, E = (e) => {
2781
+ let t = e.nativeEvent.layout.height;
2782
+ if (t === y) {
2783
+ x.current = !0;
2784
+ return;
2785
+ }
2786
+ v && !x.current && S.setValue(t), x.current = !0, b(t);
2787
+ };
2788
+ c(() => {
2789
+ let [e, t, n, r] = l.easingDefault, i = _.bezier(e, t, n, r), a = v ? y : 0;
2790
+ if (u) {
2791
+ S.setValue(a), C.setValue(+!!v);
2792
+ return;
2793
+ }
2794
+ m.parallel([m.timing(S, {
2795
+ toValue: a,
2796
+ duration: l.durationNormal,
2797
+ easing: i,
2798
+ useNativeDriver: !1
2799
+ }), m.timing(C, {
2800
+ toValue: +!!v,
2801
+ duration: l.durationFast,
2802
+ easing: i,
2803
+ useNativeDriver: !0
2804
+ })]).start();
2805
+ }, [
2806
+ v,
2807
+ y,
2808
+ u,
2809
+ S,
2810
+ C,
2811
+ l.durationNormal,
2812
+ l.durationFast,
2813
+ l.easingDefault
2814
+ ]);
2815
+ let D = v && !x.current, O = C.interpolate({
2816
+ inputRange: [0, 1],
2817
+ outputRange: ["0deg", "90deg"]
2818
+ });
2819
+ return /* @__PURE__ */ N(k, {
2820
+ testID: s,
2821
+ style: [{ width: "100%" }, o],
2822
+ children: [/* @__PURE__ */ N(w, {
2823
+ role: "button",
2824
+ disabled: a,
2825
+ accessibilityState: {
2826
+ expanded: v,
2827
+ disabled: a
2828
+ },
2829
+ onPress: T,
2830
+ style: ({ pressed: e }) => ({
2831
+ flexDirection: "row",
2832
+ alignItems: "center",
2833
+ alignSelf: "flex-start",
2834
+ gap: l.space2,
2835
+ padding: l.space1,
2836
+ margin: -l.space1,
2837
+ borderRadius: l.radiusSm,
2838
+ backgroundColor: e ? l.activeOverlay : "transparent",
2839
+ opacity: a ? l.opacityDisabled : 1
2840
+ }),
2841
+ children: [/* @__PURE__ */ M(m.View, {
2842
+ style: {
2843
+ opacity: .55,
2844
+ transform: [{ rotate: O }]
2845
+ },
2846
+ children: /* @__PURE__ */ M(K, {
2847
+ icon: L,
2848
+ size: "md"
2849
+ })
2850
+ }), typeof e == "string" ? /* @__PURE__ */ M(G, {
2851
+ style: { color: l.windowFgColor },
2852
+ children: e
2853
+ }) : e]
2854
+ }), /* @__PURE__ */ M(m.View, {
2855
+ style: {
2856
+ height: D ? void 0 : S,
2857
+ overflow: "hidden"
2858
+ },
2859
+ accessibilityElementsHidden: !v,
2860
+ importantForAccessibility: v ? "yes" : "no",
2861
+ children: /* @__PURE__ */ M(k, {
2862
+ accessible: !0,
2863
+ role: "region",
2864
+ onLayout: E,
2865
+ style: { paddingTop: l.space2 },
2866
+ children: t
2867
+ })
2868
+ })]
2869
+ });
2870
+ }, Et = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
2416
2871
  let s = U();
2417
- return /* @__PURE__ */ j(D, {
2872
+ return /* @__PURE__ */ N(k, {
2418
2873
  ref: o,
2419
2874
  style: [{
2420
2875
  flexDirection: "row",
@@ -2428,7 +2883,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2428
2883
  }, i],
2429
2884
  ...a,
2430
2885
  children: [
2431
- /* @__PURE__ */ A(D, {
2886
+ /* @__PURE__ */ M(k, {
2432
2887
  style: {
2433
2888
  flex: 1,
2434
2889
  flexDirection: "row",
@@ -2437,14 +2892,14 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2437
2892
  },
2438
2893
  children: t
2439
2894
  }),
2440
- /* @__PURE__ */ A(D, {
2895
+ /* @__PURE__ */ M(k, {
2441
2896
  accessibilityLiveRegion: "polite",
2442
2897
  style: {
2443
2898
  alignItems: "center",
2444
2899
  justifyContent: "center",
2445
2900
  paddingHorizontal: s.space1
2446
2901
  },
2447
- children: typeof e == "string" ? /* @__PURE__ */ A(T, {
2902
+ children: typeof e == "string" ? /* @__PURE__ */ M(D, {
2448
2903
  numberOfLines: 1,
2449
2904
  ellipsizeMode: "tail",
2450
2905
  style: {
@@ -2457,7 +2912,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2457
2912
  children: e
2458
2913
  }) : e
2459
2914
  }),
2460
- /* @__PURE__ */ A(D, {
2915
+ /* @__PURE__ */ M(k, {
2461
2916
  style: {
2462
2917
  flex: 1,
2463
2918
  flexDirection: "row",
@@ -2469,22 +2924,124 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2469
2924
  })
2470
2925
  ]
2471
2926
  });
2472
- }), st = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
2927
+ });
2928
+ //#endregion
2929
+ //#region src/components/Highlight/Highlight.tsx
2930
+ function Dt(e) {
2931
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2932
+ }
2933
+ var Ot = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
2934
+ let i = U(), a = H(), o = (Array.isArray(t) ? t : [t]).map((e) => e.trim()).filter(Boolean);
2935
+ if (o.length === 0) return /* @__PURE__ */ M(G, {
2936
+ ...r,
2937
+ children: e
2938
+ });
2939
+ let s = RegExp(`(${o.map(Dt).join("|")})`, n ? "g" : "gi"), c = e.split(s), l = {
2940
+ fontWeight: String(i.fontWeightSemibold),
2941
+ ...a === "more" ? {
2942
+ backgroundColor: i.accentBgColor,
2943
+ color: "#fff"
2944
+ } : { backgroundColor: `${i.accentBgColor}4D` }
2945
+ };
2946
+ return /* @__PURE__ */ M(G, {
2947
+ ...r,
2948
+ children: c.map((e, t) => t % 2 == 1 ? /* @__PURE__ */ M(D, {
2949
+ style: l,
2950
+ children: e
2951
+ }, t) : e)
2952
+ });
2953
+ };
2954
+ //#endregion
2955
+ //#region src/components/LevelBar/LevelBar.tsx
2956
+ function kt(e, t, n, r, i, a) {
2957
+ return t !== void 0 && e <= t ? n : r !== void 0 && e >= r ? i : a;
2958
+ }
2959
+ function At(e, t) {
2960
+ switch (t) {
2961
+ case "accent": return e.accentBgColor;
2962
+ case "success": return e.successBgColor;
2963
+ case "warning": return e.warningBgColor;
2964
+ case "error": return e.errorBgColor;
2965
+ }
2966
+ }
2967
+ var jt = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning", high: a, highVariant: o = "error", variant: s = "accent", discrete: l = !1, numBlocks: u = 10, accessibilityLabel: f, style: p, testID: h }) => {
2968
+ let g = U(), v = V(), y = W(), b = n - t, x = Math.min(n, Math.max(t, e)), S = b > 0 ? (x - t) / b : 0, C = kt(x, r, i, a, o, s), w = d(new m.Value(S)).current;
2969
+ c(() => {
2970
+ if (l) return;
2971
+ let [e, t, n, r] = g.easingDefault;
2972
+ m.timing(w, {
2973
+ toValue: S,
2974
+ duration: y ? 0 : g.durationNormal,
2975
+ easing: _.bezier(e, t, n, r),
2976
+ useNativeDriver: !0
2977
+ }).start();
2978
+ }, [
2979
+ S,
2980
+ l,
2981
+ y,
2982
+ w,
2983
+ g.durationNormal,
2984
+ g.easingDefault
2985
+ ]);
2986
+ let T = v === "dark" ? g.dark2 : g.light3;
2987
+ return /* @__PURE__ */ M(k, {
2988
+ testID: h,
2989
+ accessible: !0,
2990
+ role: "meter",
2991
+ accessibilityLabel: f,
2992
+ accessibilityValue: {
2993
+ min: t,
2994
+ max: n,
2995
+ now: x
2996
+ },
2997
+ style: [{
2998
+ flexDirection: "row",
2999
+ width: "100%",
3000
+ height: 6,
3001
+ borderRadius: l ? 0 : g.radiusPill,
3002
+ backgroundColor: l ? "transparent" : T,
3003
+ overflow: l ? "visible" : "hidden",
3004
+ gap: l ? 2 : 0
3005
+ }, p],
3006
+ children: l ? Array.from({ length: u }, (e, t) => /* @__PURE__ */ M(k, {
3007
+ testID: "level-bar-block",
3008
+ accessibilityElementsHidden: !0,
3009
+ importantForAccessibility: "no",
3010
+ style: {
3011
+ flex: 1,
3012
+ height: "100%",
3013
+ minWidth: 2,
3014
+ borderRadius: 1,
3015
+ backgroundColor: (t + 1) / u <= S ? At(g, C) : T
3016
+ }
3017
+ }, t)) : /* @__PURE__ */ M(m.View, {
3018
+ testID: h ? `${h}-fill` : void 0,
3019
+ style: {
3020
+ width: "100%",
3021
+ height: "100%",
3022
+ borderRadius: g.radiusPill,
3023
+ backgroundColor: At(g, C),
3024
+ transformOrigin: "left",
3025
+ transform: [{ scaleX: w }]
3026
+ }
3027
+ })
3028
+ });
3029
+ }, Mt = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
2473
3030
  let c = U();
2474
- return /* @__PURE__ */ A(S, {
3031
+ return /* @__PURE__ */ M(w, {
2475
3032
  ref: s,
2476
3033
  accessibilityRole: "link",
2477
3034
  accessibilityHint: t ? "Opens in browser" : void 0,
2478
- onPress: a ?? (() => y.openURL(e)),
3035
+ onPress: a ?? (() => b.openURL(e)),
2479
3036
  style: r,
2480
3037
  ...o,
2481
- children: ({ pressed: e }) => /* @__PURE__ */ j(G, {
3038
+ children: ({ pressed: e }) => /* @__PURE__ */ N(G, {
2482
3039
  style: [{
2483
3040
  color: c.accentColor,
2484
3041
  textDecorationLine: e ? "underline" : "none",
2485
3042
  opacity: e ? .7 : 1
2486
3043
  }, i],
2487
- children: [n, t && /* @__PURE__ */ A(T, {
3044
+ children: [n, t && /* @__PURE__ */ M(D, {
2488
3045
  accessibilityElementsHidden: !0,
2489
3046
  importantForAccessibility: "no",
2490
3047
  style: { fontSize: 12 },
@@ -2492,9 +3049,66 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2492
3049
  })]
2493
3050
  })
2494
3051
  });
2495
- }), ct = ({ segments: e, onNavigate: n, style: r, ...i }) => {
3052
+ }), Nt = m.createAnimatedComponent(w), Pt = ({ open: e, onDismiss: t, children: n, style: r, testID: i }) => {
3053
+ let a = U(), o = W(), [s, l] = f(e), u = d(new m.Value(+!!e)).current;
3054
+ return c(() => {
3055
+ e && l(!0);
3056
+ }, [e]), c(() => {
3057
+ if (s) if (e) {
3058
+ if (o) {
3059
+ u.setValue(1);
3060
+ return;
3061
+ }
3062
+ u.setValue(0), m.timing(u, {
3063
+ toValue: 1,
3064
+ duration: a.durationNormal,
3065
+ useNativeDriver: !0
3066
+ }).start();
3067
+ } else {
3068
+ if (o) {
3069
+ l(!1);
3070
+ return;
3071
+ }
3072
+ m.timing(u, {
3073
+ toValue: 0,
3074
+ duration: a.durationNormal,
3075
+ useNativeDriver: !0
3076
+ }).start(({ finished: e }) => {
3077
+ e && l(!1);
3078
+ });
3079
+ }
3080
+ }, [
3081
+ e,
3082
+ s,
3083
+ o,
3084
+ u,
3085
+ a.durationNormal
3086
+ ]), s ? /* @__PURE__ */ M(x, {
3087
+ visible: s,
3088
+ transparent: !0,
3089
+ animationType: "none",
3090
+ statusBarTranslucent: !0,
3091
+ children: /* @__PURE__ */ M(Nt, {
3092
+ testID: i,
3093
+ onPress: t,
3094
+ accessible: !1,
3095
+ style: [{
3096
+ flex: 1,
3097
+ alignItems: "center",
3098
+ justifyContent: "center",
3099
+ backgroundColor: a.dialogBackdropColor,
3100
+ opacity: u
3101
+ }, r],
3102
+ children: /* @__PURE__ */ M(w, {
3103
+ onPress: () => {},
3104
+ accessible: !1,
3105
+ children: n
3106
+ })
3107
+ })
3108
+ }) : null;
3109
+ }, Ft = ({ segments: e, onNavigate: n, style: r, ...i }) => {
2496
3110
  let a = U();
2497
- return /* @__PURE__ */ A(D, {
3111
+ return /* @__PURE__ */ M(k, {
2498
3112
  style: [{
2499
3113
  flexDirection: "row",
2500
3114
  flexWrap: "wrap",
@@ -2503,7 +3117,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2503
3117
  ...i,
2504
3118
  children: e.map((r, i) => {
2505
3119
  let o = i === e.length - 1;
2506
- return /* @__PURE__ */ j(t, { children: [i > 0 && /* @__PURE__ */ A(T, {
3120
+ return /* @__PURE__ */ N(t, { children: [i > 0 && /* @__PURE__ */ M(D, {
2507
3121
  accessibilityElementsHidden: !0,
2508
3122
  importantForAccessibility: "no",
2509
3123
  style: {
@@ -2513,7 +3127,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2513
3127
  fontSize: a.fontSizeBody
2514
3128
  },
2515
3129
  children: "›"
2516
- }), o ? /* @__PURE__ */ j(D, {
3130
+ }), o ? /* @__PURE__ */ N(k, {
2517
3131
  style: {
2518
3132
  flexDirection: "row",
2519
3133
  alignItems: "center",
@@ -2522,10 +3136,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2522
3136
  paddingHorizontal: a.space1,
2523
3137
  maxWidth: 200
2524
3138
  },
2525
- children: [r.icon && /* @__PURE__ */ A(D, {
3139
+ children: [r.icon && /* @__PURE__ */ M(k, {
2526
3140
  style: { flexShrink: 0 },
2527
3141
  children: r.icon
2528
- }), /* @__PURE__ */ A(T, {
3142
+ }), /* @__PURE__ */ M(D, {
2529
3143
  numberOfLines: 1,
2530
3144
  ellipsizeMode: "tail",
2531
3145
  style: {
@@ -2536,7 +3150,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2536
3150
  },
2537
3151
  children: r.label
2538
3152
  })]
2539
- }) : /* @__PURE__ */ j(S, {
3153
+ }) : /* @__PURE__ */ N(w, {
2540
3154
  accessibilityRole: "button",
2541
3155
  accessibilityLabel: r.label,
2542
3156
  onPress: () => n?.(r.path, i),
@@ -2550,10 +3164,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2550
3164
  borderRadius: a.radiusSm,
2551
3165
  backgroundColor: e ? a.activeOverlay : "transparent"
2552
3166
  }),
2553
- children: [r.icon && /* @__PURE__ */ A(D, {
3167
+ children: [r.icon && /* @__PURE__ */ M(k, {
2554
3168
  style: { flexShrink: 0 },
2555
3169
  children: r.icon
2556
- }), /* @__PURE__ */ A(T, {
3170
+ }), /* @__PURE__ */ M(D, {
2557
3171
  numberOfLines: 1,
2558
3172
  ellipsizeMode: "tail",
2559
3173
  style: {
@@ -2566,7 +3180,211 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2566
3180
  })] }, r.path);
2567
3181
  })
2568
3182
  });
2569
- }, lt = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
3183
+ }, J = 8, Y = 10, It = 6;
3184
+ function Lt(e, t) {
3185
+ if (e) {
3186
+ if (typeof e == "function") {
3187
+ e(t);
3188
+ return;
3189
+ }
3190
+ e.current = t;
3191
+ }
3192
+ }
3193
+ function Rt(e, t, n) {
3194
+ switch (n) {
3195
+ case "top": return {
3196
+ top: e.y - t.height - J,
3197
+ left: e.x + e.width / 2 - t.width / 2
3198
+ };
3199
+ case "bottom": return {
3200
+ top: e.y + e.height + J,
3201
+ left: e.x + e.width / 2 - t.width / 2
3202
+ };
3203
+ case "left": return {
3204
+ top: e.y + e.height / 2 - t.height / 2,
3205
+ left: e.x - t.width - J
3206
+ };
3207
+ case "right": return {
3208
+ top: e.y + e.height / 2 - t.height / 2,
3209
+ left: e.x + e.width + J
3210
+ };
3211
+ }
3212
+ }
3213
+ function zt(e, t, n) {
3214
+ let { width: r, height: i } = g.get("window"), a = [
3215
+ n,
3216
+ n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
3217
+ "bottom",
3218
+ "top",
3219
+ "left",
3220
+ "right"
3221
+ ];
3222
+ for (let n of a) {
3223
+ let { top: a, left: o } = Rt(e, t, n), s = o >= Y && o + t.width <= r - Y, c = a >= Y && a + t.height <= i - Y;
3224
+ if (s && c) return {
3225
+ top: Math.max(Y, Math.min(a, i - t.height - Y)),
3226
+ left: Math.max(Y, Math.min(o, r - t.width - Y)),
3227
+ placement: n
3228
+ };
3229
+ }
3230
+ let { top: o, left: s } = Rt(e, t, n);
3231
+ return {
3232
+ top: Math.max(Y, Math.min(o, i - t.height - Y)),
3233
+ left: Math.max(Y, Math.min(s, r - t.width - Y)),
3234
+ placement: n
3235
+ };
3236
+ }
3237
+ var Bt = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panelStyle: a, children: s }) => {
3238
+ let l = U(), u = W(), p = r !== void 0, [g, _] = f(!1), v = p ? r : g, [y, b] = f(null), [S, C] = f(null), [T, E] = f(null), D = d(null), O = d(new m.Value(0)).current, A = o((e) => {
3239
+ p || _(e), i?.(e);
3240
+ }, [p, i]), P = o(() => A(!1), [A]), F = o(() => A(!v), [v, A]);
3241
+ c(() => {
3242
+ if (!v) {
3243
+ b(null), C(null), E(null);
3244
+ return;
3245
+ }
3246
+ D.current?.measureInWindow((e, t, n, r) => {
3247
+ b({
3248
+ x: e,
3249
+ y: t,
3250
+ width: n,
3251
+ height: r
3252
+ });
3253
+ });
3254
+ }, [v]), c(() => {
3255
+ !y || !S || E(zt(y, S, t));
3256
+ }, [
3257
+ y,
3258
+ S,
3259
+ t
3260
+ ]), c(() => {
3261
+ if (T) {
3262
+ if (u) {
3263
+ O.setValue(1);
3264
+ return;
3265
+ }
3266
+ O.setValue(0), m.timing(O, {
3267
+ toValue: 1,
3268
+ duration: l.durationFast,
3269
+ useNativeDriver: !0
3270
+ }).start();
3271
+ }
3272
+ }, [
3273
+ T,
3274
+ u,
3275
+ O,
3276
+ l.durationFast
3277
+ ]), c(() => {
3278
+ if (!v) return;
3279
+ let e = h.addEventListener("hardwareBackPress", () => (P(), !0));
3280
+ return () => e.remove();
3281
+ }, [v, P]);
3282
+ let ee = (e) => {
3283
+ let { width: t, height: n } = e.nativeEvent.layout;
3284
+ C({
3285
+ width: t,
3286
+ height: n
3287
+ });
3288
+ }, I = {
3289
+ position: "absolute",
3290
+ width: 0,
3291
+ height: 0,
3292
+ borderWidth: It,
3293
+ borderColor: "transparent"
3294
+ }, L = (() => {
3295
+ switch (T?.placement) {
3296
+ case "top": return {
3297
+ ...I,
3298
+ top: "100%",
3299
+ left: "50%",
3300
+ marginLeft: -6,
3301
+ borderTopColor: l.popoverBgColor
3302
+ };
3303
+ case "bottom": return {
3304
+ ...I,
3305
+ bottom: "100%",
3306
+ left: "50%",
3307
+ marginLeft: -6,
3308
+ borderBottomColor: l.popoverBgColor
3309
+ };
3310
+ case "left": return {
3311
+ ...I,
3312
+ left: "100%",
3313
+ top: "50%",
3314
+ marginTop: -6,
3315
+ borderLeftColor: l.popoverBgColor
3316
+ };
3317
+ case "right": return {
3318
+ ...I,
3319
+ right: "100%",
3320
+ top: "50%",
3321
+ marginTop: -6,
3322
+ borderRightColor: l.popoverBgColor
3323
+ };
3324
+ default: return null;
3325
+ }
3326
+ })(), R = s.props.ref;
3327
+ return /* @__PURE__ */ N(j, { children: [n(s, {
3328
+ ref: (e) => {
3329
+ D.current = e, Lt(R, e);
3330
+ },
3331
+ accessibilityState: {
3332
+ expanded: v,
3333
+ ...s.props.accessibilityState
3334
+ },
3335
+ onPress: (e) => {
3336
+ F(), s.props.onPress?.(e);
3337
+ }
3338
+ }), /* @__PURE__ */ M(x, {
3339
+ visible: v,
3340
+ transparent: !0,
3341
+ animationType: "none",
3342
+ statusBarTranslucent: !0,
3343
+ onRequestClose: P,
3344
+ children: /* @__PURE__ */ M(w, {
3345
+ onPress: P,
3346
+ accessible: !1,
3347
+ style: { flex: 1 },
3348
+ children: /* @__PURE__ */ N(m.View, {
3349
+ onLayout: ee,
3350
+ role: "dialog",
3351
+ accessible: !0,
3352
+ onStartShouldSetResponder: () => !0,
3353
+ style: [
3354
+ {
3355
+ position: "absolute",
3356
+ minWidth: 180,
3357
+ maxWidth: 320,
3358
+ backgroundColor: l.popoverBgColor,
3359
+ borderWidth: 1,
3360
+ borderColor: l.cardShadeColor,
3361
+ borderRadius: l.radiusLg,
3362
+ padding: l.space2,
3363
+ shadowColor: "#000",
3364
+ shadowOffset: {
3365
+ width: 0,
3366
+ height: 4
3367
+ },
3368
+ shadowOpacity: .15,
3369
+ shadowRadius: 12,
3370
+ elevation: 6
3371
+ },
3372
+ T ? {
3373
+ top: T.top,
3374
+ left: T.left,
3375
+ opacity: O
3376
+ } : {
3377
+ top: -9999,
3378
+ left: -9999,
3379
+ opacity: 0
3380
+ },
3381
+ a
3382
+ ],
3383
+ children: [e, L && /* @__PURE__ */ M(k, { style: L })]
3384
+ })
3385
+ })
3386
+ })] });
3387
+ }, Vt = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
2570
3388
  let o = U(), s = V(), l = W(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
2571
3389
  b(e.nativeEvent.layout.width), i?.(e);
2572
3390
  };
@@ -2623,7 +3441,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2623
3441
  transformOrigin: "left",
2624
3442
  transform: [{ scaleX: g }]
2625
3443
  };
2626
- return /* @__PURE__ */ A(m.View, {
3444
+ return /* @__PURE__ */ M(m.View, {
2627
3445
  accessible: !0,
2628
3446
  accessibilityRole: "progressbar",
2629
3447
  accessibilityLabel: n,
@@ -2641,7 +3459,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2641
3459
  overflow: "hidden"
2642
3460
  }, r],
2643
3461
  ...a,
2644
- children: /* @__PURE__ */ A(m.View, { style: [{
3462
+ children: /* @__PURE__ */ M(m.View, { style: [{
2645
3463
  position: u ? "absolute" : "relative",
2646
3464
  top: 0,
2647
3465
  height: "100%",
@@ -2649,7 +3467,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2649
3467
  backgroundColor: C[t]
2650
3468
  }, w] })
2651
3469
  });
2652
- }, ut = 18, dt = 6, ft = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
3470
+ }, Ht = 18, Ut = 6, Wt = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
2653
3471
  let o = U(), s = V(), l = H(), u = d(new m.Value(+!!e)).current, f = d(!0);
2654
3472
  c(() => {
2655
3473
  if (f.current) {
@@ -2676,7 +3494,7 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2676
3494
  inputRange: [0, 1],
2677
3495
  outputRange: [o.cardBgColor, o.accentBgColor]
2678
3496
  });
2679
- return /* @__PURE__ */ A(S, {
3497
+ return /* @__PURE__ */ M(w, {
2680
3498
  ref: a,
2681
3499
  disabled: n,
2682
3500
  accessibilityRole: "radio",
@@ -2689,10 +3507,10 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2689
3507
  },
2690
3508
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
2691
3509
  ...i,
2692
- children: /* @__PURE__ */ A(m.View, {
3510
+ children: /* @__PURE__ */ M(m.View, {
2693
3511
  style: {
2694
- width: ut,
2695
- height: ut,
3512
+ width: Ht,
3513
+ height: Ht,
2696
3514
  alignItems: "center",
2697
3515
  justifyContent: "center",
2698
3516
  borderRadius: o.radiusPill,
@@ -2700,9 +3518,9 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2700
3518
  borderColor: h,
2701
3519
  backgroundColor: g
2702
3520
  },
2703
- children: /* @__PURE__ */ A(m.View, { style: {
2704
- width: dt,
2705
- height: dt,
3521
+ children: /* @__PURE__ */ M(m.View, { style: {
3522
+ width: Ut,
3523
+ height: Ut,
2706
3524
  borderRadius: o.radiusPill,
2707
3525
  backgroundColor: "#fff",
2708
3526
  opacity: u
@@ -2712,13 +3530,13 @@ var at = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2712
3530
  });
2713
3531
  //#endregion
2714
3532
  //#region src/components/SearchBar/SearchBar.tsx
2715
- function pt(e, t) {
3533
+ function Gt(e, t) {
2716
3534
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
2717
3535
  if (!n) return e;
2718
3536
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
2719
3537
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
2720
3538
  }
2721
- var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, placeholder: a = "Search…", editable: o = !0, inline: s = !1, closeLabel: u = "Cancel", style: f, inputStyle: p, ...m }, h) {
3539
+ var Kt = 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
3540
  let g = U(), _ = d(null);
2723
3541
  if (l(h, () => _.current, []), c(() => {
2724
3542
  if (!e) return;
@@ -2726,15 +3544,15 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2726
3544
  return () => cancelAnimationFrame(t);
2727
3545
  }, [e]), !e) return null;
2728
3546
  let v = !o, y = typeof i == "string" && i.length > 0, b = s ? "transparent" : g.headerbarBgColor, x = s ? "transparent" : g.headerbarShadeColor;
2729
- return /* @__PURE__ */ j(D, {
3547
+ return /* @__PURE__ */ N(k, {
2730
3548
  style: f,
2731
- children: [/* @__PURE__ */ j(D, {
3549
+ children: [/* @__PURE__ */ N(k, {
2732
3550
  style: {
2733
3551
  flexDirection: "row",
2734
3552
  alignItems: "center",
2735
3553
  gap: g.space1
2736
3554
  },
2737
- children: [/* @__PURE__ */ j(D, {
3555
+ children: [/* @__PURE__ */ N(k, {
2738
3556
  style: {
2739
3557
  flex: 1,
2740
3558
  flexDirection: "row",
@@ -2748,7 +3566,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2748
3566
  opacity: v ? g.opacityDisabled : 1
2749
3567
  },
2750
3568
  children: [
2751
- /* @__PURE__ */ A(T, {
3569
+ /* @__PURE__ */ M(D, {
2752
3570
  accessibilityElementsHidden: !0,
2753
3571
  importantForAccessibility: "no",
2754
3572
  style: {
@@ -2757,12 +3575,12 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2757
3575
  },
2758
3576
  children: "🔍"
2759
3577
  }),
2760
- /* @__PURE__ */ A(E, {
3578
+ /* @__PURE__ */ M(O, {
2761
3579
  ref: _,
2762
3580
  editable: o,
2763
3581
  value: i,
2764
3582
  placeholder: a,
2765
- placeholderTextColor: pt(g.windowFgColor, g.opacityDim),
3583
+ placeholderTextColor: Gt(g.windowFgColor, g.opacityDim),
2766
3584
  style: [{
2767
3585
  flex: 1,
2768
3586
  padding: 0,
@@ -2773,7 +3591,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2773
3591
  }, p],
2774
3592
  ...m
2775
3593
  }),
2776
- y && /* @__PURE__ */ A(S, {
3594
+ y && /* @__PURE__ */ M(w, {
2777
3595
  accessibilityRole: "button",
2778
3596
  accessibilityLabel: "Clear search",
2779
3597
  disabled: v,
@@ -2790,7 +3608,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2790
3608
  opacity: v ? g.opacityDisabled : 1,
2791
3609
  backgroundColor: e ? g.activeOverlay : "transparent"
2792
3610
  }),
2793
- children: /* @__PURE__ */ A(T, {
3611
+ children: /* @__PURE__ */ M(D, {
2794
3612
  style: {
2795
3613
  fontSize: g.fontSizeBody,
2796
3614
  color: g.windowFgColor
@@ -2799,12 +3617,12 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2799
3617
  })
2800
3618
  })
2801
3619
  ]
2802
- }), t && /* @__PURE__ */ A(S, {
3620
+ }), t && /* @__PURE__ */ M(w, {
2803
3621
  accessibilityRole: "button",
2804
3622
  accessibilityLabel: u,
2805
3623
  onPress: t,
2806
3624
  hitSlop: 8,
2807
- children: /* @__PURE__ */ A(T, {
3625
+ children: /* @__PURE__ */ M(D, {
2808
3626
  style: {
2809
3627
  fontFamily: g.fontFamily,
2810
3628
  fontSize: g.fontSizeBody,
@@ -2813,7 +3631,7 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2813
3631
  children: u
2814
3632
  })
2815
3633
  })]
2816
- }), r && /* @__PURE__ */ A(D, {
3634
+ }), r && /* @__PURE__ */ M(k, {
2817
3635
  style: {
2818
3636
  flexDirection: "row",
2819
3637
  flexWrap: "wrap",
@@ -2830,32 +3648,32 @@ var mt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2830
3648
  });
2831
3649
  //#endregion
2832
3650
  //#region src/components/Sidebar/filterUtils.ts
2833
- function ht(t, n) {
3651
+ function qt(t, n) {
2834
3652
  let r = 0;
2835
3653
  return e.forEach(t, (e) => {
2836
3654
  if (!a(e)) return;
2837
3655
  let t = e.props;
2838
- typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += ht(t.children, n));
3656
+ typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += qt(t.children, n));
2839
3657
  }), r;
2840
3658
  }
2841
- function gt(e, t) {
3659
+ function Jt(e, t) {
2842
3660
  if (!t || !a(e)) return !0;
2843
3661
  let n = e.props;
2844
- return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? ht(n.children, t) > 0 : !0;
3662
+ return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? qt(n.children, t) > 0 : !0;
2845
3663
  }
2846
3664
  //#endregion
2847
3665
  //#region src/components/Sidebar/Sidebar.tsx
2848
- var _t = r(!1);
2849
- function vt() {
2850
- return s(_t);
3666
+ var Yt = r(!1);
3667
+ function Xt() {
3668
+ return s(Yt);
2851
3669
  }
2852
- var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
2853
- let c = U(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => gt(e, i)), d = !l || u.length > 0;
2854
- return /* @__PURE__ */ A(_t.Provider, {
3670
+ var X = r(""), Zt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
3671
+ let c = U(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => Jt(e, i)), d = !l || u.length > 0;
3672
+ return /* @__PURE__ */ M(Yt.Provider, {
2855
3673
  value: r,
2856
- children: /* @__PURE__ */ A(Z.Provider, {
3674
+ children: /* @__PURE__ */ M(X.Provider, {
2857
3675
  value: i,
2858
- children: /* @__PURE__ */ A(D, {
3676
+ children: /* @__PURE__ */ M(k, {
2859
3677
  ref: s,
2860
3678
  style: [{
2861
3679
  flexShrink: 0,
@@ -2865,9 +3683,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2865
3683
  borderRightColor: c.headerbarBorderColor
2866
3684
  }, a],
2867
3685
  ...o,
2868
- children: /* @__PURE__ */ A(C, {
3686
+ children: /* @__PURE__ */ M(T, {
2869
3687
  contentContainerStyle: { padding: c.space1 },
2870
- children: l && !d ? /* @__PURE__ */ A(G, {
3688
+ children: l && !d ? /* @__PURE__ */ M(G, {
2871
3689
  variant: "caption",
2872
3690
  color: "dim",
2873
3691
  style: {
@@ -2875,7 +3693,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2875
3693
  padding: c.space4
2876
3694
  },
2877
3695
  children: "No items match your search."
2878
- }) : u.map((e, n) => /* @__PURE__ */ j(t, { children: [n > 0 && /* @__PURE__ */ A(X, {
3696
+ }) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(st, {
2879
3697
  testID: "sidebar-separator",
2880
3698
  style: { marginVertical: c.space1 }
2881
3699
  }), e] }, n))
@@ -2883,9 +3701,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2883
3701
  })
2884
3702
  })
2885
3703
  });
2886
- }), bt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
2887
- let l = U(), u = vt(), d = s(Z);
2888
- return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ j(S, {
3704
+ }), Qt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
3705
+ let l = U(), u = Xt(), d = s(X);
3706
+ return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ N(w, {
2889
3707
  ref: c,
2890
3708
  disabled: i,
2891
3709
  accessibilityRole: "button",
@@ -2913,14 +3731,14 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2913
3731
  ],
2914
3732
  ...o,
2915
3733
  children: [
2916
- t && /* @__PURE__ */ A(D, {
3734
+ t && /* @__PURE__ */ M(k, {
2917
3735
  style: {
2918
3736
  flexShrink: 0,
2919
3737
  opacity: n ? 1 : .85
2920
3738
  },
2921
3739
  children: t
2922
3740
  }),
2923
- !u && /* @__PURE__ */ A(G, {
3741
+ !u && /* @__PURE__ */ M(G, {
2924
3742
  numberOfLines: 1,
2925
3743
  ellipsizeMode: "tail",
2926
3744
  style: {
@@ -2931,22 +3749,22 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2931
3749
  },
2932
3750
  children: e
2933
3751
  }),
2934
- !u && r && /* @__PURE__ */ A(D, {
3752
+ !u && r && /* @__PURE__ */ M(k, {
2935
3753
  style: { flexShrink: 0 },
2936
3754
  children: r
2937
3755
  })
2938
3756
  ]
2939
3757
  });
2940
- }), xt = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
2941
- let p = U(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = vt(), y = s(Z), b = (e) => {
3758
+ }), $t = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
3759
+ let p = U(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = Xt(), y = s(X), b = (e) => {
2942
3760
  g || h(e), a?.(e);
2943
3761
  };
2944
3762
  if (l(d, () => ({
2945
3763
  expand: () => b(!0),
2946
3764
  collapse: () => b(!1),
2947
3765
  toggle: () => b(!_)
2948
- })), !(y.length === 0 || ht(o, y) > 0)) return null;
2949
- let x = v ? !0 : _, C = !v && !!(e || t), w = (e || t) && /* @__PURE__ */ j(D, {
3766
+ })), !(y.length === 0 || qt(o, y) > 0)) return null;
3767
+ let x = v ? !0 : _, S = !v && !!(e || t), C = (e || t) && /* @__PURE__ */ N(k, {
2950
3768
  style: {
2951
3769
  flexDirection: "row",
2952
3770
  alignItems: "center",
@@ -2957,21 +3775,21 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2957
3775
  marginBottom: 2
2958
3776
  },
2959
3777
  children: [
2960
- t && /* @__PURE__ */ A(D, {
3778
+ t && /* @__PURE__ */ M(k, {
2961
3779
  style: {
2962
3780
  flexShrink: 0,
2963
3781
  opacity: .7
2964
3782
  },
2965
3783
  children: t
2966
3784
  }),
2967
- e && /* @__PURE__ */ A(G, {
3785
+ e && /* @__PURE__ */ M(G, {
2968
3786
  variant: "caption-heading",
2969
3787
  color: "dim",
2970
3788
  style: { flex: 1 },
2971
3789
  numberOfLines: 1,
2972
3790
  children: e
2973
3791
  }),
2974
- n && /* @__PURE__ */ A(G, {
3792
+ n && /* @__PURE__ */ M(G, {
2975
3793
  variant: "caption",
2976
3794
  color: "dim",
2977
3795
  style: { flexShrink: 0 },
@@ -2979,16 +3797,16 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2979
3797
  })
2980
3798
  ]
2981
3799
  });
2982
- return /* @__PURE__ */ j(D, {
3800
+ return /* @__PURE__ */ N(k, {
2983
3801
  style: c,
2984
3802
  ...u,
2985
- children: [C && (n ? /* @__PURE__ */ A(S, {
3803
+ children: [S && (n ? /* @__PURE__ */ M(w, {
2986
3804
  accessibilityRole: "button",
2987
3805
  accessibilityState: { expanded: _ },
2988
3806
  accessibilityLabel: e,
2989
3807
  onPress: () => b(!_),
2990
- children: w
2991
- }) : w), /* @__PURE__ */ A(D, {
3808
+ children: C
3809
+ }) : C), /* @__PURE__ */ M(k, {
2992
3810
  accessible: !0,
2993
3811
  accessibilityRole: "list",
2994
3812
  style: {
@@ -2998,7 +3816,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2998
3816
  children: o
2999
3817
  })]
3000
3818
  });
3001
- }), St = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
3819
+ }), en = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
3002
3820
  let l = U(), u = W(), f = d(new m.Value(1)).current, p = a && !u;
3003
3821
  if (c(() => {
3004
3822
  if (!p) {
@@ -3023,11 +3841,11 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3023
3841
  l.easingDefault
3024
3842
  ]), e === "text") {
3025
3843
  let e = Math.max(1, Math.floor(i));
3026
- return /* @__PURE__ */ A(D, {
3844
+ return /* @__PURE__ */ M(k, {
3027
3845
  accessible: !1,
3028
3846
  style: [{ gap: 8 }, o],
3029
3847
  ...s,
3030
- children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ A(m.View, { style: {
3848
+ children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ M(m.View, { style: {
3031
3849
  width: n === e - 1 ? "60%" : "100%",
3032
3850
  height: 12,
3033
3851
  borderRadius: l.radiusPill,
@@ -3045,7 +3863,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3045
3863
  height: n,
3046
3864
  borderRadius: l.radiusMd
3047
3865
  };
3048
- return /* @__PURE__ */ A(m.View, {
3866
+ return /* @__PURE__ */ M(m.View, {
3049
3867
  accessible: !1,
3050
3868
  style: [
3051
3869
  h,
@@ -3057,7 +3875,299 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3057
3875
  ],
3058
3876
  ...s
3059
3877
  });
3060
- }, Ct = {
3878
+ }, tn = 6, Z = 22, nn = 4;
3879
+ function Q(e, t, n) {
3880
+ return Math.min(n, Math.max(t, e));
3881
+ }
3882
+ function rn(e, t, n, r) {
3883
+ return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
3884
+ }
3885
+ function an(e) {
3886
+ let t = e.toString(), n = t.indexOf(".");
3887
+ return n === -1 ? 0 : t.length - n - 1;
3888
+ }
3889
+ var on = ({ 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 }) => {
3890
+ let m = U(), [h, g] = f(0), [_, v] = f({}), y = an(i), b = Q(e, n, r), x = (b - n) / (r - n) * 100, C = o((e) => {
3891
+ g(e.nativeEvent.layout.width), d?.(e);
3892
+ }, [d]), w = o((e) => {
3893
+ a || h <= 0 || t(Q(rn(e / h * (r - n) + n, n, i, y), n, r));
3894
+ }, [
3895
+ a,
3896
+ h,
3897
+ n,
3898
+ r,
3899
+ i,
3900
+ y,
3901
+ t
3902
+ ]), T = u(() => S.create({
3903
+ onStartShouldSetPanResponder: () => !a,
3904
+ onMoveShouldSetPanResponder: () => !a,
3905
+ onPanResponderGrant: (e) => w(e.nativeEvent.locationX),
3906
+ onPanResponderMove: (e) => w(e.nativeEvent.locationX)
3907
+ }), [a, w]), E = o((o) => {
3908
+ if (!a) switch (o.nativeEvent.actionName) {
3909
+ case "increment":
3910
+ t(Q(rn(e + i, n, i, y), n, r));
3911
+ break;
3912
+ case "decrement":
3913
+ t(Q(rn(e - i, n, i, y), n, r));
3914
+ break;
3915
+ }
3916
+ }, [
3917
+ a,
3918
+ e,
3919
+ i,
3920
+ n,
3921
+ r,
3922
+ y,
3923
+ t
3924
+ ]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h - Z / 2;
3925
+ return /* @__PURE__ */ N(k, {
3926
+ style: [{
3927
+ width: "100%",
3928
+ paddingTop: 10,
3929
+ paddingBottom: A ? 0 : 10
3930
+ }, l],
3931
+ ...p,
3932
+ children: [/* @__PURE__ */ N(k, {
3933
+ onLayout: C,
3934
+ accessible: !0,
3935
+ accessibilityRole: "adjustable",
3936
+ accessibilityLabel: c,
3937
+ accessibilityValue: {
3938
+ min: n,
3939
+ max: r,
3940
+ now: b
3941
+ },
3942
+ accessibilityState: { disabled: a },
3943
+ accessibilityActions: [{
3944
+ name: "increment",
3945
+ label: "increment"
3946
+ }, {
3947
+ name: "decrement",
3948
+ label: "decrement"
3949
+ }],
3950
+ onAccessibilityAction: E,
3951
+ style: {
3952
+ justifyContent: "center",
3953
+ height: Z,
3954
+ opacity: a ? m.opacityDisabled : 1
3955
+ },
3956
+ ...T.panHandlers,
3957
+ children: [
3958
+ /* @__PURE__ */ M(k, {
3959
+ pointerEvents: "none",
3960
+ style: {
3961
+ width: "100%",
3962
+ height: tn,
3963
+ borderRadius: m.radiusPill,
3964
+ backgroundColor: m.cardShadeColor,
3965
+ overflow: "hidden"
3966
+ },
3967
+ children: /* @__PURE__ */ M(k, { style: {
3968
+ height: "100%",
3969
+ width: `${x}%`,
3970
+ borderRadius: m.radiusPill,
3971
+ backgroundColor: m.accentBgColor
3972
+ } })
3973
+ }),
3974
+ /* @__PURE__ */ M(k, {
3975
+ pointerEvents: "none",
3976
+ style: {
3977
+ position: "absolute",
3978
+ left: j,
3979
+ width: Z,
3980
+ height: Z,
3981
+ borderRadius: m.radiusPill,
3982
+ backgroundColor: m.accentBgColor,
3983
+ borderWidth: 2,
3984
+ borderColor: m.windowBgColor,
3985
+ shadowColor: "#000",
3986
+ shadowOffset: {
3987
+ width: 0,
3988
+ height: 1
3989
+ },
3990
+ shadowOpacity: .25,
3991
+ shadowRadius: 3,
3992
+ elevation: 3
3993
+ }
3994
+ }),
3995
+ O && s.map((e) => /* @__PURE__ */ M(k, {
3996
+ pointerEvents: "none",
3997
+ importantForAccessibility: "no",
3998
+ style: {
3999
+ position: "absolute",
4000
+ left: (Q(e.value, n, r) - n) / (r - n) * 100 / 100 * h - nn / 2,
4001
+ width: nn,
4002
+ height: nn,
4003
+ borderRadius: nn / 2,
4004
+ backgroundColor: m.windowBgColor
4005
+ }
4006
+ }, e.value))
4007
+ ]
4008
+ }), A && /* @__PURE__ */ M(k, {
4009
+ importantForAccessibility: "no",
4010
+ style: {
4011
+ position: "relative",
4012
+ width: "100%",
4013
+ height: 20,
4014
+ marginTop: 6
4015
+ },
4016
+ children: s.map((e) => /* @__PURE__ */ M(D, {
4017
+ numberOfLines: 1,
4018
+ onLayout: (t) => {
4019
+ let { layout: { width: n } } = t.nativeEvent;
4020
+ v((t) => t[e.value] === n ? t : {
4021
+ ...t,
4022
+ [e.value]: n
4023
+ });
4024
+ },
4025
+ style: {
4026
+ position: "absolute",
4027
+ left: (Q(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
4028
+ fontFamily: m.fontFamily,
4029
+ fontSize: m.fontSizeCaption,
4030
+ color: m.windowFgColor,
4031
+ opacity: m.opacityDim
4032
+ },
4033
+ children: e.label
4034
+ }, e.value))
4035
+ })]
4036
+ });
4037
+ }, sn = 36;
4038
+ function cn(e) {
4039
+ let t = e.toString(), n = t.indexOf(".");
4040
+ return n === -1 ? 0 : t.length - n - 1;
4041
+ }
4042
+ function ln(e, t, n) {
4043
+ return Math.min(n, Math.max(t, e));
4044
+ }
4045
+ function un(e, t, n, r) {
4046
+ let i = n - t + r;
4047
+ return ((e - t) % i + i) % i + t;
4048
+ }
4049
+ var dn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decimals: a, wrap: s = !1, format: c, disabled: l = !1, accessibilityLabel: u, style: d }) => {
4050
+ let f = U(), p = a ?? cn(i), m = o((e) => {
4051
+ let a = s ? un(e, n, r, i) : ln(e, n, r);
4052
+ t(parseFloat(a.toFixed(p)));
4053
+ }, [
4054
+ t,
4055
+ n,
4056
+ r,
4057
+ i,
4058
+ p,
4059
+ s
4060
+ ]), h = c ? c(e) : e.toFixed(p), g = o((t) => {
4061
+ if (!l) switch (t.nativeEvent.actionName) {
4062
+ case "increment":
4063
+ m(e + i);
4064
+ break;
4065
+ case "decrement":
4066
+ m(e - i);
4067
+ break;
4068
+ }
4069
+ }, [
4070
+ l,
4071
+ e,
4072
+ i,
4073
+ m
4074
+ ]), _ = l || !s && e <= n, v = l || !s && e >= r;
4075
+ return /* @__PURE__ */ N(k, {
4076
+ accessible: !0,
4077
+ accessibilityRole: "adjustable",
4078
+ accessibilityLabel: u,
4079
+ accessibilityValue: {
4080
+ min: n,
4081
+ max: r,
4082
+ now: e,
4083
+ text: c ? h : void 0
4084
+ },
4085
+ accessibilityState: { disabled: l },
4086
+ accessibilityActions: [{
4087
+ name: "increment",
4088
+ label: "increment"
4089
+ }, {
4090
+ name: "decrement",
4091
+ label: "decrement"
4092
+ }],
4093
+ onAccessibilityAction: g,
4094
+ style: [{
4095
+ flexDirection: "row",
4096
+ alignSelf: "flex-start",
4097
+ alignItems: "center",
4098
+ borderWidth: 1,
4099
+ borderColor: f.cardShadeColor,
4100
+ borderRadius: f.radiusMd,
4101
+ backgroundColor: f.viewBgColor,
4102
+ overflow: "hidden",
4103
+ opacity: l ? f.opacityDisabled : 1
4104
+ }, d],
4105
+ children: [
4106
+ /* @__PURE__ */ M(w, {
4107
+ accessibilityElementsHidden: !0,
4108
+ importantForAccessibility: "no",
4109
+ disabled: _,
4110
+ onPress: () => m(e - i),
4111
+ style: ({ pressed: e }) => ({
4112
+ width: sn,
4113
+ height: sn,
4114
+ alignItems: "center",
4115
+ justifyContent: "center",
4116
+ borderRightWidth: 1,
4117
+ borderRightColor: f.cardShadeColor,
4118
+ backgroundColor: e && !_ ? f.activeOverlay : "transparent",
4119
+ opacity: _ ? f.opacityDisabled : 1
4120
+ }),
4121
+ children: /* @__PURE__ */ M(D, {
4122
+ style: {
4123
+ fontSize: 17,
4124
+ lineHeight: 20,
4125
+ color: f.viewFgColor
4126
+ },
4127
+ children: "−"
4128
+ })
4129
+ }),
4130
+ /* @__PURE__ */ M(D, {
4131
+ accessibilityElementsHidden: !0,
4132
+ importantForAccessibility: "no",
4133
+ style: {
4134
+ minWidth: 56,
4135
+ textAlign: "center",
4136
+ paddingHorizontal: f.space2,
4137
+ fontFamily: f.fontFamily,
4138
+ fontSize: f.fontSizeBody,
4139
+ fontVariant: ["tabular-nums"],
4140
+ color: f.viewFgColor
4141
+ },
4142
+ children: h
4143
+ }),
4144
+ /* @__PURE__ */ M(w, {
4145
+ accessibilityElementsHidden: !0,
4146
+ importantForAccessibility: "no",
4147
+ disabled: v,
4148
+ onPress: () => m(e + i),
4149
+ style: ({ pressed: e }) => ({
4150
+ width: sn,
4151
+ height: sn,
4152
+ alignItems: "center",
4153
+ justifyContent: "center",
4154
+ borderLeftWidth: 1,
4155
+ borderLeftColor: f.cardShadeColor,
4156
+ backgroundColor: e && !v ? f.activeOverlay : "transparent",
4157
+ opacity: v ? f.opacityDisabled : 1
4158
+ }),
4159
+ children: /* @__PURE__ */ M(D, {
4160
+ style: {
4161
+ fontSize: 17,
4162
+ lineHeight: 20,
4163
+ color: f.viewFgColor
4164
+ },
4165
+ children: "+"
4166
+ })
4167
+ })
4168
+ ]
4169
+ });
4170
+ }, fn = {
3061
4171
  sm: {
3062
4172
  dimension: 16,
3063
4173
  borderWidth: 2
@@ -3070,7 +4180,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3070
4180
  dimension: 36,
3071
4181
  borderWidth: 3
3072
4182
  }
3073
- }, wt = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
4183
+ }, pn = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
3074
4184
  let i = U(), a = V(), o = W(), s = d(new m.Value(0)).current;
3075
4185
  c(() => {
3076
4186
  s.setValue(0);
@@ -3085,8 +4195,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3085
4195
  let l = s.interpolate({
3086
4196
  inputRange: [0, 1],
3087
4197
  outputRange: ["0deg", "360deg"]
3088
- }), { dimension: u, borderWidth: f } = Ct[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
3089
- return /* @__PURE__ */ A(m.View, {
4198
+ }), { dimension: u, borderWidth: f } = fn[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
4199
+ return /* @__PURE__ */ M(m.View, {
3090
4200
  accessible: !0,
3091
4201
  accessibilityRole: "progressbar",
3092
4202
  accessibilityLabel: t || void 0,
@@ -3103,7 +4213,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3103
4213
  }, n],
3104
4214
  ...r
3105
4215
  });
3106
- }, Tt = 56, Et = 28, Dt = 20, Ot = 3, kt = 28, At = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
4216
+ }, mn = 56, hn = 28, gn = 20, _n = 3, vn = 28, yn = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
3107
4217
  let o = U(), s = V(), l = H(), u = d(new m.Value(+!!e)).current, f = d(!0);
3108
4218
  c(() => {
3109
4219
  if (f.current) {
@@ -3130,7 +4240,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3130
4240
  inputRange: [0, 1],
3131
4241
  outputRange: [o.borderSubtle, o.accentBgColor]
3132
4242
  });
3133
- return /* @__PURE__ */ A(S, {
4243
+ return /* @__PURE__ */ M(w, {
3134
4244
  ref: a,
3135
4245
  disabled: n,
3136
4246
  accessibilityRole: "switch",
@@ -3141,26 +4251,26 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3141
4251
  onPress: () => t?.(!e),
3142
4252
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
3143
4253
  ...i,
3144
- children: /* @__PURE__ */ A(m.View, {
4254
+ children: /* @__PURE__ */ M(m.View, {
3145
4255
  style: {
3146
- width: Tt,
3147
- height: Et,
4256
+ width: mn,
4257
+ height: hn,
3148
4258
  borderRadius: o.radiusPill,
3149
4259
  borderWidth: l === "more" ? 2 : 1,
3150
4260
  borderColor: v,
3151
4261
  backgroundColor: g
3152
4262
  },
3153
- children: /* @__PURE__ */ A(m.View, { style: [{
4263
+ children: /* @__PURE__ */ M(m.View, { style: [{
3154
4264
  position: "absolute",
3155
- top: Ot,
3156
- left: Ot,
3157
- width: Dt,
3158
- height: Dt,
4265
+ top: _n,
4266
+ left: _n,
4267
+ width: gn,
4268
+ height: gn,
3159
4269
  borderRadius: o.radiusPill,
3160
4270
  backgroundColor: e ? "#fff" : h,
3161
4271
  transform: [{ translateX: u.interpolate({
3162
4272
  inputRange: [0, 1],
3163
- outputRange: [0, kt]
4273
+ outputRange: [0, vn]
3164
4274
  }) }]
3165
4275
  }, l !== "more" && {
3166
4276
  shadowColor: "#000",
@@ -3174,9 +4284,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3174
4284
  }] })
3175
4285
  })
3176
4286
  });
3177
- }), jt = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
4287
+ }), bn = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
3178
4288
  let o = U();
3179
- return /* @__PURE__ */ A(C, {
4289
+ return /* @__PURE__ */ M(T, {
3180
4290
  ref: a,
3181
4291
  horizontal: !0,
3182
4292
  showsHorizontalScrollIndicator: !1,
@@ -3200,9 +4310,9 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3200
4310
  ...i,
3201
4311
  children: e
3202
4312
  });
3203
- }), Mt = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
4313
+ }), xn = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
3204
4314
  let l = U();
3205
- return /* @__PURE__ */ j(S, {
4315
+ return /* @__PURE__ */ N(w, {
3206
4316
  ref: c,
3207
4317
  disabled: o,
3208
4318
  accessibilityRole: "tab",
@@ -3226,11 +4336,11 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3226
4336
  }),
3227
4337
  ...s,
3228
4338
  children: [
3229
- t && /* @__PURE__ */ A(D, {
4339
+ t && /* @__PURE__ */ M(k, {
3230
4340
  style: { flexShrink: 0 },
3231
4341
  children: t
3232
4342
  }),
3233
- /* @__PURE__ */ A(T, {
4343
+ /* @__PURE__ */ M(D, {
3234
4344
  numberOfLines: 1,
3235
4345
  ellipsizeMode: "tail",
3236
4346
  style: {
@@ -3241,7 +4351,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3241
4351
  },
3242
4352
  children: e
3243
4353
  }),
3244
- a !== void 0 && /* @__PURE__ */ A(D, {
4354
+ a !== void 0 && /* @__PURE__ */ M(k, {
3245
4355
  style: {
3246
4356
  flexShrink: 0,
3247
4357
  minWidth: 18,
@@ -3252,7 +4362,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3252
4362
  justifyContent: "center",
3253
4363
  backgroundColor: l.accentBgColor
3254
4364
  },
3255
- children: /* @__PURE__ */ A(T, {
4365
+ children: /* @__PURE__ */ M(D, {
3256
4366
  style: {
3257
4367
  fontFamily: l.fontFamily,
3258
4368
  fontSize: 11,
@@ -3262,7 +4372,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3262
4372
  children: a > 99 ? "99+" : a
3263
4373
  })
3264
4374
  }),
3265
- r && /* @__PURE__ */ A(S, {
4375
+ r && /* @__PURE__ */ M(w, {
3266
4376
  accessibilityRole: "button",
3267
4377
  accessibilityLabel: i,
3268
4378
  hitSlop: 8,
@@ -3276,7 +4386,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3276
4386
  borderRadius: l.radiusSm,
3277
4387
  backgroundColor: e ? l.activeOverlay : "transparent"
3278
4388
  }),
3279
- children: /* @__PURE__ */ A(T, {
4389
+ children: /* @__PURE__ */ M(D, {
3280
4390
  style: {
3281
4391
  fontFamily: l.fontFamily,
3282
4392
  fontSize: 15,
@@ -3286,7 +4396,7 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3286
4396
  children: "×"
3287
4397
  })
3288
4398
  }),
3289
- n && /* @__PURE__ */ A(D, {
4399
+ n && /* @__PURE__ */ M(k, {
3290
4400
  pointerEvents: "none",
3291
4401
  style: {
3292
4402
  position: "absolute",
@@ -3300,8 +4410,8 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3300
4410
  })
3301
4411
  ]
3302
4412
  });
3303
- }), Nt = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
3304
- return /* @__PURE__ */ A(D, {
4413
+ }), Sn = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
4414
+ return /* @__PURE__ */ M(k, {
3305
4415
  ref: i,
3306
4416
  style: [{ display: e ? "flex" : "none" }, t],
3307
4417
  ...r,
@@ -3310,31 +4420,31 @@ var Z = r(""), yt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3310
4420
  });
3311
4421
  //#endregion
3312
4422
  //#region src/components/TextField/TextField.tsx
3313
- function Pt(e, t) {
4423
+ function Cn(e, t) {
3314
4424
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
3315
4425
  if (!n) return e;
3316
4426
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
3317
4427
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
3318
4428
  }
3319
- var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i, editable: a = !0, onFocus: o, onBlur: s, accessibilityLabel: c, accessibilityHint: l, ...u }, d) {
4429
+ var wn = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i, editable: a = !0, onFocus: o, onBlur: s, accessibilityLabel: c, accessibilityHint: l, ...u }, d) {
3320
4430
  let p = U(), m = H(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
3321
- return /* @__PURE__ */ j(D, {
4431
+ return /* @__PURE__ */ N(k, {
3322
4432
  style: [{
3323
4433
  gap: p.space1,
3324
4434
  opacity: _ ? p.opacityDisabled : 1
3325
4435
  }, r],
3326
4436
  children: [
3327
- e && /* @__PURE__ */ A(G, {
4437
+ e && /* @__PURE__ */ M(G, {
3328
4438
  variant: "body",
3329
4439
  style: { fontWeight: String(p.fontWeightSemibold) },
3330
4440
  children: e
3331
4441
  }),
3332
- /* @__PURE__ */ A(E, {
4442
+ /* @__PURE__ */ M(O, {
3333
4443
  ref: d,
3334
4444
  editable: a,
3335
4445
  accessibilityLabel: c ?? e,
3336
4446
  accessibilityHint: l ?? v,
3337
- placeholderTextColor: Pt(p.windowFgColor, p.opacityDim),
4447
+ placeholderTextColor: Cn(p.windowFgColor, p.opacityDim),
3338
4448
  onFocus: (e) => {
3339
4449
  g(!0), o?.(e);
3340
4450
  },
@@ -3356,7 +4466,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3356
4466
  }, i],
3357
4467
  ...u
3358
4468
  }),
3359
- v && /* @__PURE__ */ A(G, {
4469
+ v && /* @__PURE__ */ M(G, {
3360
4470
  variant: "caption",
3361
4471
  style: {
3362
4472
  color: n ? p.errorColor : p.windowFgColor,
@@ -3366,7 +4476,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3366
4476
  })
3367
4477
  ]
3368
4478
  });
3369
- }), It = m.createAnimatedComponent(S), Lt = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
4479
+ }), Tn = m.createAnimatedComponent(w), En = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
3370
4480
  let u = U(), f = V(), p = W(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
3371
4481
  h.current &&= (clearTimeout(h.current), null);
3372
4482
  }, []), x = o((e) => {
@@ -3394,16 +4504,16 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3394
4504
  u.durationNormal,
3395
4505
  u.easingDefault
3396
4506
  ]);
3397
- let C = () => {
4507
+ let S = () => {
3398
4508
  if (h.current) {
3399
4509
  let e = Date.now() - v.current;
3400
4510
  g.current = Math.max(0, g.current - e), b();
3401
4511
  }
3402
- }, w = () => {
4512
+ }, C = () => {
3403
4513
  x(g.current);
3404
- }, E = () => {
4514
+ }, T = () => {
3405
4515
  b(), i?.(), n?.();
3406
- }, D = f === "dark" ? {
4516
+ }, E = f === "dark" ? {
3407
4517
  shadowOpacity: .4,
3408
4518
  shadowRadius: 12,
3409
4519
  elevation: 6
@@ -3412,12 +4522,12 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3412
4522
  shadowRadius: 8,
3413
4523
  elevation: 4
3414
4524
  };
3415
- return /* @__PURE__ */ j(It, {
4525
+ return /* @__PURE__ */ N(Tn, {
3416
4526
  accessible: !0,
3417
4527
  accessibilityRole: "alert",
3418
4528
  accessibilityLiveRegion: "polite",
3419
- onPressIn: C,
3420
- onPressOut: w,
4529
+ onPressIn: S,
4530
+ onPressOut: C,
3421
4531
  style: [{
3422
4532
  flexDirection: "row",
3423
4533
  alignItems: "center",
@@ -3443,10 +4553,10 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3443
4553
  inputRange: [0, 1],
3444
4554
  outputRange: [.96, 1]
3445
4555
  }) }],
3446
- ...D
4556
+ ...E
3447
4557
  }, s],
3448
4558
  ...l,
3449
- children: [/* @__PURE__ */ A(G, {
4559
+ children: [/* @__PURE__ */ M(G, {
3450
4560
  variant: "body",
3451
4561
  style: {
3452
4562
  flex: 1,
@@ -3454,17 +4564,17 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3454
4564
  },
3455
4565
  numberOfLines: typeof e == "string" ? 2 : void 0,
3456
4566
  children: e
3457
- }), (r || a) && /* @__PURE__ */ j(k, { children: [r && /* @__PURE__ */ A(S, {
4567
+ }), (r || a) && /* @__PURE__ */ N(j, { children: [r && /* @__PURE__ */ M(w, {
3458
4568
  accessibilityRole: "button",
3459
4569
  accessibilityLabel: r,
3460
- onPress: E,
4570
+ onPress: T,
3461
4571
  style: ({ pressed: e }) => ({
3462
4572
  paddingVertical: 4,
3463
4573
  paddingHorizontal: u.space1,
3464
4574
  borderRadius: u.radiusSm,
3465
4575
  backgroundColor: e ? u.activeOverlay : "transparent"
3466
4576
  }),
3467
- children: /* @__PURE__ */ A(T, {
4577
+ children: /* @__PURE__ */ M(D, {
3468
4578
  style: {
3469
4579
  fontFamily: u.fontFamily,
3470
4580
  fontSize: u.fontSizeBody,
@@ -3473,7 +4583,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3473
4583
  },
3474
4584
  children: r
3475
4585
  })
3476
- }), a && /* @__PURE__ */ A(S, {
4586
+ }), a && /* @__PURE__ */ M(w, {
3477
4587
  accessibilityRole: "button",
3478
4588
  accessibilityLabel: "Dismiss",
3479
4589
  hitSlop: 4,
@@ -3489,7 +4599,7 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3489
4599
  opacity: e ? 1 : .55,
3490
4600
  backgroundColor: e ? u.activeOverlay : "transparent"
3491
4601
  }),
3492
- children: /* @__PURE__ */ A(T, {
4602
+ children: /* @__PURE__ */ M(D, {
3493
4603
  style: {
3494
4604
  fontSize: u.fontSizeBody,
3495
4605
  color: u.windowFgColor
@@ -3498,9 +4608,9 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3498
4608
  })
3499
4609
  })] })]
3500
4610
  });
3501
- }, Rt = ({ position: e = "bottom", children: t, style: n, ...r }) => {
4611
+ }, Dn = ({ position: e = "bottom", children: t, style: n, ...r }) => {
3502
4612
  let i = U();
3503
- return /* @__PURE__ */ A(D, {
4613
+ return /* @__PURE__ */ M(k, {
3504
4614
  pointerEvents: "box-none",
3505
4615
  accessibilityLabel: "Notifications",
3506
4616
  style: [
@@ -3518,8 +4628,8 @@ var Ft = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3518
4628
  ...r,
3519
4629
  children: t
3520
4630
  });
3521
- }, Q = 6, $ = 8, zt = 5;
3522
- function Bt(e, t) {
4631
+ }, On = 6, $ = 8, kn = 5;
4632
+ function An(e, t) {
3523
4633
  if (e) {
3524
4634
  if (typeof e == "function") {
3525
4635
  e(t);
@@ -3528,27 +4638,27 @@ function Bt(e, t) {
3528
4638
  e.current = t;
3529
4639
  }
3530
4640
  }
3531
- function Vt(e, t, n) {
4641
+ function jn(e, t, n) {
3532
4642
  switch (n) {
3533
4643
  case "top": return {
3534
- top: e.y - t.height - Q,
4644
+ top: e.y - t.height - On,
3535
4645
  left: e.x + e.width / 2 - t.width / 2
3536
4646
  };
3537
4647
  case "bottom": return {
3538
- top: e.y + e.height + Q,
4648
+ top: e.y + e.height + On,
3539
4649
  left: e.x + e.width / 2 - t.width / 2
3540
4650
  };
3541
4651
  case "left": return {
3542
4652
  top: e.y + e.height / 2 - t.height / 2,
3543
- left: e.x - t.width - Q
4653
+ left: e.x - t.width - On
3544
4654
  };
3545
4655
  case "right": return {
3546
4656
  top: e.y + e.height / 2 - t.height / 2,
3547
- left: e.x + e.width + Q
4657
+ left: e.x + e.width + On
3548
4658
  };
3549
4659
  }
3550
4660
  }
3551
- function Ht(e, t, n) {
4661
+ function Mn(e, t, n) {
3552
4662
  let { width: r, height: i } = g.get("window"), a = [
3553
4663
  n,
3554
4664
  n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
@@ -3558,37 +4668,37 @@ function Ht(e, t, n) {
3558
4668
  "right"
3559
4669
  ];
3560
4670
  for (let n of a) {
3561
- let { top: a, left: o } = Vt(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
4671
+ let { top: a, left: o } = jn(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
3562
4672
  if (s && c) return {
3563
4673
  top: Math.max($, Math.min(a, i - t.height - $)),
3564
4674
  left: Math.max($, Math.min(o, r - t.width - $)),
3565
4675
  placement: n
3566
4676
  };
3567
4677
  }
3568
- let { top: o, left: s } = Vt(e, t, n);
4678
+ let { top: o, left: s } = jn(e, t, n);
3569
4679
  return {
3570
4680
  top: Math.max($, Math.min(o, i - t.height - $)),
3571
4681
  left: Math.max($, Math.min(s, r - t.width - $)),
3572
4682
  placement: n
3573
4683
  };
3574
4684
  }
3575
- var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3576
- let a = U(), s = V(), l = W(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, x] = f(null), S = d(null), C = d(null), T = d(new m.Value(0)).current, E = o(() => {
4685
+ var Nn = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
4686
+ let a = U(), s = V(), l = W(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, b] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, T = o(() => {
3577
4687
  C.current &&= (clearTimeout(C.current), null);
3578
- }, []), O = o(() => {
3579
- E(), p(!0);
3580
- }, [E]), M = o(() => {
3581
- E(), C.current = setTimeout(O, r);
4688
+ }, []), D = o(() => {
4689
+ T(), p(!0);
4690
+ }, [T]), O = o(() => {
4691
+ T(), C.current = setTimeout(D, r);
3582
4692
  }, [
3583
- E,
3584
- O,
4693
+ T,
4694
+ D,
3585
4695
  r
3586
- ]), N = o(() => {
3587
- E(), p(!1);
3588
- }, [E]);
4696
+ ]), A = o(() => {
4697
+ T(), p(!1);
4698
+ }, [T]);
3589
4699
  c(() => {
3590
4700
  if (!u) {
3591
- g(null), v(null), x(null);
4701
+ g(null), v(null), b(null);
3592
4702
  return;
3593
4703
  }
3594
4704
  S.current?.measureInWindow((e, t, n, r) => {
@@ -3600,7 +4710,7 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3600
4710
  });
3601
4711
  });
3602
4712
  }, [u]), c(() => {
3603
- !h || !_ || x(Ht(h, _, t));
4713
+ !h || !_ || b(Mn(h, _, t));
3604
4714
  }, [
3605
4715
  h,
3606
4716
  _,
@@ -3608,10 +4718,10 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3608
4718
  ]), c(() => {
3609
4719
  if (y) {
3610
4720
  if (l) {
3611
- T.setValue(1);
4721
+ w.setValue(1);
3612
4722
  return;
3613
4723
  }
3614
- T.setValue(0), m.timing(T, {
4724
+ w.setValue(0), m.timing(w, {
3615
4725
  toValue: 1,
3616
4726
  duration: a.durationFast,
3617
4727
  useNativeDriver: !0
@@ -3620,16 +4730,16 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3620
4730
  }, [
3621
4731
  y,
3622
4732
  l,
3623
- T,
4733
+ w,
3624
4734
  a.durationFast
3625
- ]), c(() => E, [E]);
4735
+ ]), c(() => T, [T]);
3626
4736
  let P = (e) => {
3627
4737
  let { width: t, height: n } = e.nativeEvent.layout;
3628
4738
  v({
3629
4739
  width: t,
3630
4740
  height: n
3631
4741
  });
3632
- }, F = s === "dark" ? "#c0bfbc" : "#3d3d3d", ee = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", te = s === "dark" ? {
4742
+ }, F = s === "dark" ? "#c0bfbc" : "#3d3d3d", ee = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", I = s === "dark" ? {
3633
4743
  shadowOpacity: .4,
3634
4744
  shadowRadius: 8,
3635
4745
  elevation: 6
@@ -3637,37 +4747,37 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3637
4747
  shadowOpacity: .2,
3638
4748
  shadowRadius: 8,
3639
4749
  elevation: 4
3640
- }, I = {
4750
+ }, L = {
3641
4751
  position: "absolute",
3642
4752
  width: 0,
3643
4753
  height: 0,
3644
- borderWidth: zt,
4754
+ borderWidth: kn,
3645
4755
  borderColor: "transparent"
3646
- }, L = (() => {
4756
+ }, R = (() => {
3647
4757
  switch (y?.placement) {
3648
4758
  case "top": return {
3649
- ...I,
4759
+ ...L,
3650
4760
  top: "100%",
3651
4761
  left: "50%",
3652
4762
  marginLeft: -5,
3653
4763
  borderTopColor: F
3654
4764
  };
3655
4765
  case "bottom": return {
3656
- ...I,
4766
+ ...L,
3657
4767
  bottom: "100%",
3658
4768
  left: "50%",
3659
4769
  marginLeft: -5,
3660
4770
  borderBottomColor: F
3661
4771
  };
3662
4772
  case "left": return {
3663
- ...I,
4773
+ ...L,
3664
4774
  left: "100%",
3665
4775
  top: "50%",
3666
4776
  marginTop: -5,
3667
4777
  borderLeftColor: F
3668
4778
  };
3669
4779
  case "right": return {
3670
- ...I,
4780
+ ...L,
3671
4781
  right: "100%",
3672
4782
  top: "50%",
3673
4783
  marginTop: -5,
@@ -3675,40 +4785,40 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3675
4785
  };
3676
4786
  default: return null;
3677
4787
  }
3678
- })(), R = i.props.ref;
3679
- return /* @__PURE__ */ j(k, { children: [n(i, {
4788
+ })(), te = i.props.ref;
4789
+ return /* @__PURE__ */ N(j, { children: [n(i, {
3680
4790
  ref: (e) => {
3681
- S.current = e, Bt(R, e);
4791
+ S.current = e, An(te, e);
3682
4792
  },
3683
4793
  delayLongPress: r,
3684
4794
  accessibilityHint: i.props.accessibilityHint ?? e,
3685
4795
  onLongPress: (e) => {
3686
- O(), i.props.onLongPress?.(e);
4796
+ D(), i.props.onLongPress?.(e);
3687
4797
  },
3688
4798
  onPressOut: (e) => {
3689
- N(), i.props.onPressOut?.(e);
4799
+ A(), i.props.onPressOut?.(e);
3690
4800
  },
3691
4801
  onHoverIn: (e) => {
3692
- M(), i.props.onHoverIn?.(e);
4802
+ O(), i.props.onHoverIn?.(e);
3693
4803
  },
3694
4804
  onHoverOut: (e) => {
3695
- N(), i.props.onHoverOut?.(e);
4805
+ A(), i.props.onHoverOut?.(e);
3696
4806
  },
3697
4807
  onFocus: (e) => {
3698
- M(), i.props.onFocus?.(e);
4808
+ O(), i.props.onFocus?.(e);
3699
4809
  },
3700
4810
  onBlur: (e) => {
3701
- N(), i.props.onBlur?.(e);
4811
+ A(), i.props.onBlur?.(e);
3702
4812
  }
3703
- }), /* @__PURE__ */ A(b, {
4813
+ }), /* @__PURE__ */ M(x, {
3704
4814
  visible: u,
3705
4815
  transparent: !0,
3706
4816
  animationType: "none",
3707
4817
  statusBarTranslucent: !0,
3708
- children: /* @__PURE__ */ A(D, {
4818
+ children: /* @__PURE__ */ M(k, {
3709
4819
  pointerEvents: "box-none",
3710
- style: w.absoluteFill,
3711
- children: /* @__PURE__ */ j(m.View, {
4820
+ style: E.absoluteFill,
4821
+ children: /* @__PURE__ */ N(m.View, {
3712
4822
  onLayout: P,
3713
4823
  accessible: !0,
3714
4824
  role: "tooltip",
@@ -3724,17 +4834,17 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3724
4834
  width: 0,
3725
4835
  height: 2
3726
4836
  },
3727
- ...te
4837
+ ...I
3728
4838
  }, y ? {
3729
4839
  top: y.top,
3730
4840
  left: y.left,
3731
- opacity: T
4841
+ opacity: w
3732
4842
  } : {
3733
4843
  top: -9999,
3734
4844
  left: -9999,
3735
4845
  opacity: 0
3736
4846
  }],
3737
- children: [/* @__PURE__ */ A(G, {
4847
+ children: [/* @__PURE__ */ M(G, {
3738
4848
  style: {
3739
4849
  color: ee,
3740
4850
  fontSize: a.fontSizeCaption,
@@ -3743,13 +4853,13 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3743
4853
  textAlign: "center"
3744
4854
  },
3745
4855
  children: e
3746
- }), L && /* @__PURE__ */ A(D, { style: L })]
4856
+ }), R && /* @__PURE__ */ M(k, { style: R })]
3747
4857
  })
3748
4858
  })
3749
4859
  })] });
3750
- }, Wt = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
4860
+ }, Pn = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
3751
4861
  let a = U(), o = V();
3752
- return /* @__PURE__ */ j(D, {
4862
+ return /* @__PURE__ */ N(k, {
3753
4863
  ref: i,
3754
4864
  accessible: !0,
3755
4865
  accessibilityRole: "radiogroup",
@@ -3761,10 +4871,10 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3761
4871
  backgroundColor: a.headerbarBgColor
3762
4872
  }, n],
3763
4873
  ...r,
3764
- children: [/* @__PURE__ */ A(D, {
4874
+ children: [/* @__PURE__ */ M(k, {
3765
4875
  pointerEvents: "none",
3766
- style: [w.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
3767
- }), /* @__PURE__ */ A(D, {
4876
+ style: [E.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
4877
+ }), /* @__PURE__ */ M(k, {
3768
4878
  style: {
3769
4879
  flexDirection: "row",
3770
4880
  alignItems: "center",
@@ -3774,9 +4884,9 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3774
4884
  children: e
3775
4885
  })]
3776
4886
  });
3777
- }), Gt = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
4887
+ }), Fn = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
3778
4888
  let o = U();
3779
- return /* @__PURE__ */ j(S, {
4889
+ return /* @__PURE__ */ N(w, {
3780
4890
  ref: a,
3781
4891
  disabled: r,
3782
4892
  accessibilityRole: "radio",
@@ -3797,10 +4907,10 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3797
4907
  backgroundColor: n ? o.headerbarBgColor : e ? o.activeOverlay : "transparent"
3798
4908
  }),
3799
4909
  ...i,
3800
- children: [t && /* @__PURE__ */ A(D, {
4910
+ children: [t && /* @__PURE__ */ M(k, {
3801
4911
  style: { flexShrink: 0 },
3802
4912
  children: t
3803
- }), /* @__PURE__ */ A(T, {
4913
+ }), /* @__PURE__ */ M(D, {
3804
4914
  style: {
3805
4915
  fontFamily: o.fontFamily,
3806
4916
  fontSize: o.fontSizeBody,
@@ -3812,6 +4922,6 @@ var Ut = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3812
4922
  });
3813
4923
  });
3814
4924
  //#endregion
3815
- export { Oe as ActionRow, He as AnimatedIcon, Ue as Banner, We as BoxedList, Je as Button, Xe as Card, Qe as Checkbox, et as Dialog, at as Dropdown, B as GnomeContext, we as GnomeProvider, ot as HeaderBar, q as Icon, st as Link, ye as NAMED_ACCENT_COLORS, ct as PathBar, lt as ProgressBar, ft as RadioButton, mt as SearchBar, X as Separator, yt as Sidebar, _t as SidebarCollapsedContext, Z as SidebarFilterContext, bt as SidebarItem, xt as SidebarSection, St as Skeleton, wt as Spinner, At as Switch, jt as TabBar, Mt as TabItem, Nt as TabPanel, G as Text, Ft as TextField, Lt as Toast, Rt as Toaster, Ut as Tooltip, Wt as ViewSwitcher, Gt as ViewSwitcherItem, Se as applyAccentColor, ce as darkRawTokens, ie as darkTheme, ue as highContrastDarkRawTokens, oe as highContrastDarkTheme, le as highContrastRawTokens, ae as highContrastTheme, se as lightRawTokens, z as lightTheme, be as resolveColorScheme, xe as resolveContrast, ve as resolveGnomeTheme, _e as useAccentColor, he as useColorScheme, ge as useContrast, me as useDateTimeFormatter, fe as useDir, U as useGnomeTheme, de as useLocale, pe as useNumberFormatter, W as useReducedMotion, V as useResolvedColorScheme, H as useResolvedContrast, vt as useSidebarCollapsed };
4925
+ export { je as ActionRow, qe as AnimatedIcon, et as Avatar, nt as Badge, rt as Banner, ot as BottomSheet, ct as BoxedList, ft as Button, mt as Card, gt as Checkbox, vt as Dialog, yt as Divider, wt as Dropdown, Tt as Expander, B as GnomeContext, De as GnomeProvider, Et as HeaderBar, Ot as Highlight, K as Icon, jt as LevelBar, Mt as Link, Se as NAMED_ACCENT_COLORS, Pt as Overlay, Ft as PathBar, Bt as Popover, Vt as ProgressBar, Wt as RadioButton, Kt as SearchBar, st as Separator, Zt as Sidebar, Yt as SidebarCollapsedContext, X as SidebarFilterContext, Qt as SidebarItem, $t as SidebarSection, en as Skeleton, on as Slider, dn as SpinButton, pn as Spinner, yn as Switch, bn as TabBar, xn as TabItem, Sn as TabPanel, G as Text, wn as TextField, En as Toast, Dn as Toaster, Nn as Tooltip, Pn as ViewSwitcher, Fn as ViewSwitcherItem, Te as applyAccentColor, de as darkRawTokens, se as darkTheme, pe as highContrastDarkRawTokens, le as highContrastDarkTheme, fe as highContrastRawTokens, ce as highContrastTheme, ue as lightRawTokens, oe as lightTheme, Ce as resolveColorScheme, we as resolveContrast, xe as resolveGnomeTheme, be as useAccentColor, ve as useColorScheme, ye as useContrast, _e as useDateTimeFormatter, he as useDir, U as useGnomeTheme, me as useLocale, ge as useNumberFormatter, W as useReducedMotion, V as useResolvedColorScheme, H as useResolvedContrast, Xt as useSidebarCollapsed };
3816
4926
 
3817
4927
  //# sourceMappingURL=index.js.map