@gnome-ui/react-native 1.0.0 → 1.2.0

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