@gnome-ui/react-native 1.3.0 → 1.5.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.
Files changed (38) hide show
  1. package/README.md +463 -4
  2. package/dist/components/Avatar/Avatar.d.ts +53 -0
  3. package/dist/components/Avatar/index.d.ts +2 -0
  4. package/dist/components/Badge/Badge.d.ts +48 -0
  5. package/dist/components/Badge/index.d.ts +2 -0
  6. package/dist/components/BottomSheet/BottomSheet.d.ts +82 -0
  7. package/dist/components/BottomSheet/index.d.ts +2 -0
  8. package/dist/components/Chip/Chip.d.ts +63 -0
  9. package/dist/components/Chip/index.d.ts +2 -0
  10. package/dist/components/Divider/Divider.d.ts +36 -0
  11. package/dist/components/Divider/index.d.ts +2 -0
  12. package/dist/components/Drawer/Drawer.d.ts +117 -0
  13. package/dist/components/Drawer/index.d.ts +2 -0
  14. package/dist/components/Expander/Expander.d.ts +64 -0
  15. package/dist/components/Expander/index.d.ts +2 -0
  16. package/dist/components/FileTypeIcon/FileTypeIcon.d.ts +45 -0
  17. package/dist/components/FileTypeIcon/fileType.d.ts +8 -0
  18. package/dist/components/FileTypeIcon/index.d.ts +3 -0
  19. package/dist/components/Highlight/Highlight.d.ts +42 -0
  20. package/dist/components/Highlight/index.d.ts +2 -0
  21. package/dist/components/IconButton/IconButton.d.ts +34 -0
  22. package/dist/components/IconButton/index.d.ts +2 -0
  23. package/dist/components/LevelBar/LevelBar.d.ts +72 -0
  24. package/dist/components/LevelBar/index.d.ts +2 -0
  25. package/dist/components/Overlay/Overlay.d.ts +41 -0
  26. package/dist/components/Overlay/index.d.ts +2 -0
  27. package/dist/components/Popover/Popover.d.ts +91 -0
  28. package/dist/components/Popover/index.d.ts +2 -0
  29. package/dist/components/SegmentedBar/SegmentedBar.d.ts +64 -0
  30. package/dist/components/SegmentedBar/index.d.ts +2 -0
  31. package/dist/components/SpinButton/SpinButton.d.ts +57 -0
  32. package/dist/components/SpinButton/index.d.ts +2 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.ts +15 -0
  36. package/dist/index.js +2089 -662
  37. package/dist/index.js.map +1 -1
  38. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Children as e, Fragment as t, cloneElement as n, createContext as r, forwardRef as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d, useState as f } from "react";
2
- import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Linking as y, Modal as b, PanResponder as x, Platform as S, Pressable as C, ScrollView as w, StyleSheet as T, Text as E, TextInput as D, View as O, useColorScheme as k } from "react-native";
3
- import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
4
- import { Check as N, Connecting as ee, Downloading as P, PanDown as te, Recording as ne, Syncing as F } from "@gnome-ui/icons";
5
- import { Circle as re, G as ie, Path as I, Svg as ae, SvgXml as oe } from "react-native-svg";
2
+ import { AccessibilityInfo as p, Animated as m, BackHandler as h, Dimensions as g, Easing as _, I18nManager as v, Image as y, Linking as b, Modal as x, PanResponder as S, Platform as C, Pressable as w, ScrollView as T, StyleSheet as E, Text as D, TextInput as O, View as k, useColorScheme as A } from "react-native";
3
+ import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
4
+ import { ApplicationXExecutable as P, AudioXGeneric as F, Check as I, Close as L, Connecting as R, Document as z, Downloading as ee, Folder as te, FontXGeneric as ne, ImageXGeneric as re, PackageXGeneric as ie, PanDown as ae, PanEnd as oe, Recording as se, Syncing as ce, TextXGeneric as le, VideoXGeneric as ue, XOfficeDocument as de, XOfficePresentation as fe, XOfficeSpreadsheet as pe } from "@gnome-ui/icons";
5
+ import { Circle as me, G as he, Path as B, Svg as ge, SvgXml as _e } from "react-native-svg";
6
6
  //#region src/theme/tokens.generated.ts
7
- var se = {
7
+ var ve = {
8
8
  accentBgColor: "#3584e4",
9
9
  accentColor: "#3584e4",
10
10
  accentFgColor: "#fff",
@@ -145,7 +145,7 @@ var se = {
145
145
  yellow3: "#f6d32d",
146
146
  yellow4: "#f5c211",
147
147
  yellow5: "#e5a50a"
148
- }, ce = {
148
+ }, ye = {
149
149
  accentBgColor: "#3584e4",
150
150
  accentColor: "#62a0ea",
151
151
  accentFgColor: "#fff",
@@ -286,7 +286,7 @@ var se = {
286
286
  yellow3: "#f6d32d",
287
287
  yellow4: "#f5c211",
288
288
  yellow5: "#e5a50a"
289
- }, le = {
289
+ }, be = {
290
290
  accentBgColor: "#1a5fb4",
291
291
  accentColor: "#1a5fb4",
292
292
  accentFgColor: "#fff",
@@ -427,7 +427,7 @@ var se = {
427
427
  yellow3: "#f6d32d",
428
428
  yellow4: "#f5c211",
429
429
  yellow5: "#e5a50a"
430
- }, ue = {
430
+ }, xe = {
431
431
  accentBgColor: "#62a0ea",
432
432
  accentColor: "#99c1f1",
433
433
  accentFgColor: "#fff",
@@ -568,7 +568,7 @@ var se = {
568
568
  yellow3: "#f6d32d",
569
569
  yellow4: "#f5c211",
570
570
  yellow5: "#e5a50a"
571
- }, de = {
571
+ }, Se = {
572
572
  "--gnome-accent-bg-color": "#3584e4",
573
573
  "--gnome-accent-color": "#3584e4",
574
574
  "--gnome-accent-fg-color": "#fff",
@@ -709,7 +709,7 @@ var se = {
709
709
  "--gnome-yellow-3": "#f6d32d",
710
710
  "--gnome-yellow-4": "#f5c211",
711
711
  "--gnome-yellow-5": "#e5a50a"
712
- }, fe = {
712
+ }, Ce = {
713
713
  "--gnome-accent-bg-color": "#3584e4",
714
714
  "--gnome-accent-color": "#62a0ea",
715
715
  "--gnome-accent-fg-color": "#fff",
@@ -850,7 +850,7 @@ var se = {
850
850
  "--gnome-yellow-3": "#f6d32d",
851
851
  "--gnome-yellow-4": "#f5c211",
852
852
  "--gnome-yellow-5": "#e5a50a"
853
- }, pe = {
853
+ }, we = {
854
854
  "--gnome-accent-bg-color": "#1a5fb4",
855
855
  "--gnome-accent-color": "#1a5fb4",
856
856
  "--gnome-accent-fg-color": "#fff",
@@ -991,7 +991,7 @@ var se = {
991
991
  "--gnome-yellow-3": "#f6d32d",
992
992
  "--gnome-yellow-4": "#f5c211",
993
993
  "--gnome-yellow-5": "#e5a50a"
994
- }, me = {
994
+ }, Te = {
995
995
  "--gnome-accent-bg-color": "#62a0ea",
996
996
  "--gnome-accent-color": "#99c1f1",
997
997
  "--gnome-accent-fg-color": "#fff",
@@ -1132,7 +1132,7 @@ var se = {
1132
1132
  "--gnome-yellow-3": "#f6d32d",
1133
1133
  "--gnome-yellow-4": "#f5c211",
1134
1134
  "--gnome-yellow-5": "#e5a50a"
1135
- }, L = r({
1135
+ }, V = r({
1136
1136
  locale: void 0,
1137
1137
  dir: "ltr",
1138
1138
  numberFormat: void 0,
@@ -1142,16 +1142,16 @@ var se = {
1142
1142
  contrast: "system",
1143
1143
  resolvedContrast: "normal",
1144
1144
  accentColor: "blue",
1145
- theme: se
1145
+ theme: ve
1146
1146
  });
1147
- function he() {
1148
- return s(L).locale;
1147
+ function Ee() {
1148
+ return s(V).locale;
1149
1149
  }
1150
- function ge() {
1151
- return s(L).dir;
1150
+ function De() {
1151
+ return s(V).dir;
1152
1152
  }
1153
- function _e(e) {
1154
- let { locale: t, numberFormat: n } = s(L);
1153
+ function Oe(e) {
1154
+ let { locale: t, numberFormat: n } = s(V);
1155
1155
  return u(() => new Intl.NumberFormat(t, {
1156
1156
  ...n,
1157
1157
  ...e
@@ -1161,8 +1161,8 @@ function _e(e) {
1161
1161
  e
1162
1162
  ]);
1163
1163
  }
1164
- function ve(e) {
1165
- let { locale: t, dateTimeFormat: n } = s(L);
1164
+ function ke(e) {
1165
+ let { locale: t, dateTimeFormat: n } = s(V);
1166
1166
  return u(() => new Intl.DateTimeFormat(t, {
1167
1167
  ...n,
1168
1168
  ...e
@@ -1172,32 +1172,32 @@ function ve(e) {
1172
1172
  e
1173
1173
  ]);
1174
1174
  }
1175
- function ye() {
1176
- return s(L).colorScheme;
1175
+ function Ae() {
1176
+ return s(V).colorScheme;
1177
1177
  }
1178
- function R() {
1179
- return s(L).resolvedColorScheme;
1178
+ function H() {
1179
+ return s(V).resolvedColorScheme;
1180
1180
  }
1181
- function be() {
1182
- return s(L).contrast;
1181
+ function je() {
1182
+ return s(V).contrast;
1183
1183
  }
1184
- function z() {
1185
- return s(L).resolvedContrast;
1184
+ function U() {
1185
+ return s(V).resolvedContrast;
1186
1186
  }
1187
- function xe() {
1188
- return s(L).accentColor;
1187
+ function Me() {
1188
+ return s(V).accentColor;
1189
1189
  }
1190
- function B() {
1191
- return s(L).theme;
1190
+ function W() {
1191
+ return s(V).theme;
1192
1192
  }
1193
1193
  //#endregion
1194
1194
  //#region src/theme/resolveTheme.ts
1195
- function Se({ colorScheme: e, contrast: t = "normal" }) {
1196
- return t === "more" ? e === "dark" ? ue : le : e === "dark" ? ce : se;
1195
+ function Ne({ colorScheme: e, contrast: t = "normal" }) {
1196
+ return t === "more" ? e === "dark" ? xe : be : e === "dark" ? ye : ve;
1197
1197
  }
1198
1198
  //#endregion
1199
1199
  //#region src/GnomeProvider/resolveContext.ts
1200
- var Ce = new Set([
1200
+ var Pe = new Set([
1201
1201
  "blue",
1202
1202
  "green",
1203
1203
  "yellow",
@@ -1206,15 +1206,15 @@ var Ce = new Set([
1206
1206
  "purple",
1207
1207
  "brown"
1208
1208
  ]);
1209
- function we(e, t) {
1209
+ function Fe(e, t) {
1210
1210
  return e === "system" ? t === "dark" ? "dark" : "light" : e;
1211
1211
  }
1212
- function Te(e, t) {
1212
+ function Ie(e, t) {
1213
1213
  return e === "system" ? t ? "more" : "normal" : e;
1214
1214
  }
1215
- function Ee(e, t, n, r) {
1215
+ function Le(e, t, n, r) {
1216
1216
  if (t === "blue") return e;
1217
- let i = Ce.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
1217
+ let i = Pe.has(t), a = i ? e[`${t}${n === "dark" ? 2 : 3}`] : t, o = i ? e[`${t}3`] : t;
1218
1218
  return {
1219
1219
  ...e,
1220
1220
  accentColor: a,
@@ -1224,23 +1224,23 @@ function Ee(e, t, n, r) {
1224
1224
  }
1225
1225
  //#endregion
1226
1226
  //#region src/GnomeProvider/GnomeProvider.tsx
1227
- function De() {
1227
+ function Re() {
1228
1228
  let [e, t] = f(!1);
1229
1229
  return c(() => {
1230
- let e = S.OS === "android" ? p.isHighTextContrastEnabled : S.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
1230
+ let e = C.OS === "android" ? p.isHighTextContrastEnabled : C.OS === "ios" ? p.isDarkerSystemColorsEnabled : void 0;
1231
1231
  if (!e) return;
1232
1232
  let n = !0;
1233
1233
  (async () => {
1234
1234
  let r = await e();
1235
1235
  n && t(r);
1236
1236
  })();
1237
- let r = S.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
1237
+ let r = C.OS === "android" ? "highTextContrastChanged" : "darkerSystemColorsChanged", i = p.addEventListener(r, t);
1238
1238
  return () => {
1239
1239
  n = !1, i.remove();
1240
1240
  };
1241
1241
  }, []), e;
1242
1242
  }
1243
- function V() {
1243
+ function G() {
1244
1244
  let [e, t] = f(!1);
1245
1245
  return c(() => {
1246
1246
  let e = !0;
@@ -1254,8 +1254,8 @@ function V() {
1254
1254
  };
1255
1255
  }, []), e;
1256
1256
  }
1257
- var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1258
- let c = k(), l = De(), d = we(i, c), f = Te(a, l), p = t ?? (v.isRTL ? "rtl" : "ltr"), m = u(() => ({
1257
+ var ze = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme: i = "system", contrast: a = "system", accentColor: o = "blue", children: s }) => {
1258
+ let c = A(), l = Re(), d = Fe(i, c), f = Ie(a, l), p = t ?? (v.isRTL ? "rtl" : "ltr"), m = u(() => ({
1259
1259
  locale: e,
1260
1260
  dir: p,
1261
1261
  numberFormat: n,
@@ -1265,7 +1265,7 @@ var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1265
1265
  contrast: a,
1266
1266
  resolvedContrast: f,
1267
1267
  accentColor: o,
1268
- theme: Ee(Se({
1268
+ theme: Le(Ne({
1269
1269
  colorScheme: d,
1270
1270
  contrast: f
1271
1271
  }), o, d, f)
@@ -1280,11 +1280,11 @@ var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1280
1280
  f,
1281
1281
  o
1282
1282
  ]);
1283
- return /* @__PURE__ */ j(L.Provider, {
1283
+ return /* @__PURE__ */ M(V.Provider, {
1284
1284
  value: m,
1285
1285
  children: s
1286
1286
  });
1287
- }, ke = new Set([
1287
+ }, Be = new Set([
1288
1288
  "large-title",
1289
1289
  "title-1",
1290
1290
  "title-2",
@@ -1292,7 +1292,7 @@ var Oe = ({ locale: e, dir: t, numberFormat: n, dateTimeFormat: r, colorScheme:
1292
1292
  "title-4",
1293
1293
  "heading"
1294
1294
  ]);
1295
- function Ae(e, t) {
1295
+ function Ve(e, t) {
1296
1296
  let n = (e) => String(e);
1297
1297
  switch (t) {
1298
1298
  case "large-title": return {
@@ -1361,7 +1361,7 @@ function Ae(e, t) {
1361
1361
  };
1362
1362
  }
1363
1363
  }
1364
- function je(e, t) {
1364
+ function He(e, t) {
1365
1365
  switch (t) {
1366
1366
  case "dim": return {
1367
1367
  color: e.windowFgColor,
@@ -1375,22 +1375,22 @@ function je(e, t) {
1375
1375
  default: return { color: e.windowFgColor };
1376
1376
  }
1377
1377
  }
1378
- var H = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
1379
- let s = B();
1380
- return /* @__PURE__ */ j(E, {
1378
+ var K = i(function({ variant: e = "body", color: t = "default", style: n, children: r, accessibilityRole: i, ...a }, o) {
1379
+ let s = W();
1380
+ return /* @__PURE__ */ M(D, {
1381
1381
  ref: o,
1382
- accessibilityRole: i ?? (ke.has(e) ? "header" : void 0),
1382
+ accessibilityRole: i ?? (Be.has(e) ? "header" : void 0),
1383
1383
  style: [
1384
1384
  { fontFamily: s.fontFamily },
1385
- Ae(s, e),
1386
- je(s, t),
1385
+ Ve(s, e),
1386
+ He(s, t),
1387
1387
  n
1388
1388
  ],
1389
1389
  ...a,
1390
1390
  children: r
1391
1391
  });
1392
- }), Me = i(function({ title: e, subtitle: t, leading: n, trailing: r, interactive: i = !1, variant: a = "default", style: o, disabled: s, ...c }, l) {
1393
- let u = B(), d = a === "property", f = {
1392
+ }), Ue = 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 = W(), d = a === "property", f = {
1394
1394
  flexDirection: "row",
1395
1395
  alignItems: "center",
1396
1396
  gap: u.space2,
@@ -1398,23 +1398,23 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
1398
1398
  paddingHorizontal: u.space4,
1399
1399
  minHeight: 52,
1400
1400
  width: "100%"
1401
- }, p = /* @__PURE__ */ M(A, { children: [
1402
- n && /* @__PURE__ */ j(O, {
1401
+ }, p = /* @__PURE__ */ N(j, { children: [
1402
+ n && /* @__PURE__ */ M(k, {
1403
1403
  style: { flexShrink: 0 },
1404
1404
  children: n
1405
1405
  }),
1406
- /* @__PURE__ */ M(O, {
1406
+ /* @__PURE__ */ N(k, {
1407
1407
  style: {
1408
1408
  flex: 1,
1409
1409
  gap: 2
1410
1410
  },
1411
- children: [/* @__PURE__ */ j(H, {
1411
+ children: [/* @__PURE__ */ M(K, {
1412
1412
  variant: d ? "caption" : "body",
1413
1413
  color: d ? "dim" : "default",
1414
1414
  numberOfLines: 1,
1415
1415
  ellipsizeMode: "tail",
1416
1416
  children: e
1417
- }), t && /* @__PURE__ */ j(H, {
1417
+ }), t && /* @__PURE__ */ M(K, {
1418
1418
  variant: d ? "body" : "caption",
1419
1419
  color: d ? "default" : "dim",
1420
1420
  numberOfLines: 1,
@@ -1422,7 +1422,7 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
1422
1422
  children: t
1423
1423
  })]
1424
1424
  }),
1425
- r && /* @__PURE__ */ j(O, {
1425
+ r && /* @__PURE__ */ M(k, {
1426
1426
  style: {
1427
1427
  flexShrink: 0,
1428
1428
  flexDirection: "row",
@@ -1432,7 +1432,7 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
1432
1432
  children: r
1433
1433
  })
1434
1434
  ] });
1435
- return i ? /* @__PURE__ */ j(C, {
1435
+ return i ? /* @__PURE__ */ M(w, {
1436
1436
  ref: l,
1437
1437
  disabled: s,
1438
1438
  accessibilityRole: "button",
@@ -1446,22 +1446,22 @@ var H = i(function({ variant: e = "body", color: t = "default", style: n, childr
1446
1446
  o
1447
1447
  ],
1448
1448
  ...c,
1449
- children: ({ pressed: e }) => /* @__PURE__ */ M(A, { children: [p, e && !s ? /* @__PURE__ */ j(O, {
1449
+ children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [p, e && !s ? /* @__PURE__ */ M(k, {
1450
1450
  pointerEvents: "none",
1451
- style: [T.absoluteFill, { backgroundColor: u.activeOverlay }]
1451
+ style: [E.absoluteFill, { backgroundColor: u.activeOverlay }]
1452
1452
  }) : null] })
1453
- }) : /* @__PURE__ */ j(O, {
1453
+ }) : /* @__PURE__ */ M(k, {
1454
1454
  ref: l,
1455
1455
  style: [f, o],
1456
1456
  ...c,
1457
1457
  children: p
1458
1458
  });
1459
- }), Ne = {
1459
+ }), We = {
1460
1460
  sm: 12,
1461
1461
  md: 16,
1462
1462
  lg: 20
1463
1463
  };
1464
- function Pe(e, t) {
1464
+ function Ge(e, t) {
1465
1465
  switch (t) {
1466
1466
  case "blue": return e.blue3;
1467
1467
  case "green": return e.green4;
@@ -1473,7 +1473,7 @@ function Pe(e, t) {
1473
1473
  default: return e.windowFgColor;
1474
1474
  }
1475
1475
  }
1476
- function Fe(e) {
1476
+ function Ke(e) {
1477
1477
  return e ? {
1478
1478
  accessible: !0,
1479
1479
  accessibilityLabel: e,
@@ -1485,27 +1485,27 @@ function Fe(e) {
1485
1485
  }
1486
1486
  //#endregion
1487
1487
  //#region src/components/Icon/Icon.tsx
1488
- function U(e) {
1488
+ function qe(e) {
1489
1489
  return "paths" in e && Array.isArray(e.paths) ? !0 : typeof e.svg == "string" && !("path" in e);
1490
1490
  }
1491
- function Ie(e) {
1491
+ function Je(e) {
1492
1492
  return e === "nonzero" || e === "evenodd" ? e : void 0;
1493
1493
  }
1494
- var W = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
1495
- let s = B(), c = Ne[t], l = Pe(s, a), u = U(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = U(e) ? e.svg : void 0, f = U(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ j(I, {
1494
+ var q = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, style: o }) => {
1495
+ let s = W(), c = We[t], l = Ge(s, a), u = qe(e) ? e.viewBox : e.viewBox ?? "0 0 24 24", d = qe(e) ? e.svg : void 0, f = qe(e) ? e.svg ? void 0 : e.paths?.map((e, t) => /* @__PURE__ */ M(B, {
1496
1496
  d: e.d,
1497
- fillRule: Ie(e.fillRule),
1498
- clipRule: Ie(e.clipRule),
1497
+ fillRule: Je(e.fillRule),
1498
+ clipRule: Je(e.clipRule),
1499
1499
  transform: e.transform
1500
- }, t)) : [/* @__PURE__ */ j(I, { d: e.path }, 0)], p = Fe(i);
1501
- return d ? /* @__PURE__ */ j(oe, {
1500
+ }, t)) : [/* @__PURE__ */ M(B, { d: e.path }, 0)], p = Ke(i);
1501
+ return d ? /* @__PURE__ */ M(_e, {
1502
1502
  xml: `<svg viewBox="${u}">${d}</svg>`,
1503
1503
  width: n ?? c,
1504
1504
  height: r ?? c,
1505
1505
  fill: l,
1506
1506
  style: o,
1507
1507
  ...p
1508
- }) : /* @__PURE__ */ j(ae, {
1508
+ }) : /* @__PURE__ */ M(ge, {
1509
1509
  viewBox: u,
1510
1510
  width: n ?? c,
1511
1511
  height: r ?? c,
@@ -1514,8 +1514,8 @@ var W = ({ icon: e, size: t = "md", width: n, height: r, label: i, color: a, sty
1514
1514
  ...p,
1515
1515
  children: f
1516
1516
  });
1517
- }, Le = m.createAnimatedComponent(ie), Re = m.createAnimatedComponent(I), ze = m.createAnimatedComponent(re);
1518
- function Be(e) {
1517
+ }, Ye = m.createAnimatedComponent(he), Xe = m.createAnimatedComponent(B), Ze = m.createAnimatedComponent(me);
1518
+ function Qe(e) {
1519
1519
  let t = d(new m.Value(0)).current;
1520
1520
  return c(() => {
1521
1521
  let n = m.loop(m.timing(t, {
@@ -1527,7 +1527,7 @@ function Be(e) {
1527
1527
  return n.start(), () => n.stop();
1528
1528
  }, [t, e]), t;
1529
1529
  }
1530
- function Ve(e, t) {
1530
+ function $e(e, t) {
1531
1531
  let n = d(new m.Value(0)).current;
1532
1532
  return c(() => {
1533
1533
  let r = m.sequence([m.delay(t), m.loop(m.timing(n, {
@@ -1543,17 +1543,17 @@ function Ve(e, t) {
1543
1543
  t
1544
1544
  ]), n;
1545
1545
  }
1546
- var He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
1547
- transform: Be(1500).interpolate({
1546
+ var et = ({ fill: e }) => /* @__PURE__ */ M(Ye, {
1547
+ transform: Qe(1500).interpolate({
1548
1548
  inputRange: [0, 1],
1549
1549
  outputRange: ["rotate(0, 8, 8)", "rotate(360, 8, 8)"]
1550
1550
  }),
1551
- children: /* @__PURE__ */ j(I, {
1551
+ children: /* @__PURE__ */ M(B, {
1552
1552
  fill: e,
1553
1553
  fillRule: "evenodd",
1554
1554
  d: "M8 2a6 6 0 0 0-6 6h2a4 4 0 0 1 4-4 4 4 0 0 1 4 4 4 4 0 0 1-4 4v-2L5 13l3 3v-2a6 6 0 0 0 6-6 6 6 0 0 0-6-6z"
1555
1555
  })
1556
- }), Ue = ({ fill: e }) => {
1556
+ }), tt = ({ fill: e }) => {
1557
1557
  let t = d(new m.Value(1)).current;
1558
1558
  return c(() => {
1559
1559
  let e = _.inOut(_.ease), n = m.loop(m.sequence([m.timing(t, {
@@ -1568,13 +1568,13 @@ var He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
1568
1568
  useNativeDriver: !1
1569
1569
  })]));
1570
1570
  return n.start(), () => n.stop();
1571
- }, [t]), /* @__PURE__ */ j(Re, {
1571
+ }, [t]), /* @__PURE__ */ M(Xe, {
1572
1572
  fill: e,
1573
1573
  opacity: t,
1574
1574
  d: "m 15 8 c 0 3.867188 -3.132812 7 -7 7 s -7 -3.132812 -7 -7 s 3.132812 -7 7 -7 s 7 3.132812 7 7 z m 0 0"
1575
1575
  });
1576
- }, We = ({ fill: e }) => {
1577
- let t = Be(1400), n = [
1576
+ }, nt = ({ fill: e }) => {
1577
+ let t = Qe(1400), n = [
1578
1578
  0,
1579
1579
  .2,
1580
1580
  .5,
@@ -1602,30 +1602,30 @@ var He = ({ fill: e }) => /* @__PURE__ */ j(Le, {
1602
1602
  1
1603
1603
  ]
1604
1604
  });
1605
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(I, {
1605
+ return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(B, {
1606
1606
  fill: e,
1607
1607
  d: "M2 13h12v2H2z"
1608
- }), /* @__PURE__ */ j(Le, {
1608
+ }), /* @__PURE__ */ M(Ye, {
1609
1609
  transform: r,
1610
1610
  opacity: i,
1611
- children: /* @__PURE__ */ j(I, {
1611
+ children: /* @__PURE__ */ M(B, {
1612
1612
  fill: e,
1613
1613
  fillRule: "evenodd",
1614
1614
  d: "m2.5 5 5.5 6 5.5-6z"
1615
1615
  })
1616
1616
  })] });
1617
1617
  };
1618
- function G(e, t, n) {
1618
+ function J(e, t, n) {
1619
1619
  return `translate(${e}, ${t}) scale(${n}) translate(${-e}, ${-t})`;
1620
1620
  }
1621
- var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1622
- let i = Ve(1200, r), a = [
1621
+ var rt = ({ cx: e, cy: t, fill: n, delay: r }) => {
1622
+ let i = $e(1200, r), a = [
1623
1623
  0,
1624
1624
  .2,
1625
1625
  .4,
1626
1626
  1
1627
1627
  ];
1628
- return /* @__PURE__ */ j(ze, {
1628
+ return /* @__PURE__ */ M(Ze, {
1629
1629
  cx: e,
1630
1630
  cy: t,
1631
1631
  r: 2,
@@ -1642,44 +1642,44 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1642
1642
  transform: i.interpolate({
1643
1643
  inputRange: a,
1644
1644
  outputRange: [
1645
- G(e, t, 1),
1646
- G(e, t, .7),
1647
- G(e, t, 1),
1648
- G(e, t, 1)
1645
+ J(e, t, 1),
1646
+ J(e, t, .7),
1647
+ J(e, t, 1),
1648
+ J(e, t, 1)
1649
1649
  ]
1650
1650
  })
1651
1651
  });
1652
- }, Ke = new Map([
1653
- [F, He],
1654
- [ne, Ue],
1655
- [P, We],
1656
- [ee, ({ fill: e }) => /* @__PURE__ */ M(A, { children: [
1657
- /* @__PURE__ */ j(I, {
1652
+ }, it = new Map([
1653
+ [ce, et],
1654
+ [se, tt],
1655
+ [ee, nt],
1656
+ [R, ({ fill: e }) => /* @__PURE__ */ N(j, { children: [
1657
+ /* @__PURE__ */ M(B, {
1658
1658
  fill: e,
1659
1659
  d: "m 8 1.992188 c -2.617188 0 -5.238281 0.933593 -7.195312 2.808593 l -0.496094 0.480469 c -0.3984378 0.378906 -0.410156 1.011719 -0.03125 1.410156 c 0.003906 0.007813 0.011718 0.011719 0.019531 0.015625 c 0.480469 -1.011719 1.503906 -1.707031 2.703125 -1.707031 h 0.9375 c 2.480469 -1.292969 5.644531 -1.292969 8.125 0 h 0.9375 c 1.199219 0 2.222656 0.695312 2.707031 1.707031 c 0.003907 -0.007812 0.011719 -0.011719 0.015625 -0.015625 c 0.378906 -0.398437 0.367188 -1.03125 -0.03125 -1.410156 l -0.496094 -0.480469 c -1.957031 -1.875 -4.578124 -2.808593 -7.195312 -2.808593 z m -1.730469 9.007812 c -0.441406 0.765625 -0.339843 1.757812 0.316407 2.414062 c 0.78125 0.78125 2.046874 0.78125 2.828124 0 c 0.65625 -0.65625 0.757813 -1.648437 0.316407 -2.414062 z m 0 0"
1660
1660
  }),
1661
- /* @__PURE__ */ j(Ge, {
1661
+ /* @__PURE__ */ M(rt, {
1662
1662
  cx: 3,
1663
1663
  cy: 8,
1664
1664
  fill: e,
1665
1665
  delay: 0
1666
1666
  }),
1667
- /* @__PURE__ */ j(Ge, {
1667
+ /* @__PURE__ */ M(rt, {
1668
1668
  cx: 8,
1669
1669
  cy: 8,
1670
1670
  fill: e,
1671
1671
  delay: 150
1672
1672
  }),
1673
- /* @__PURE__ */ j(Ge, {
1673
+ /* @__PURE__ */ M(rt, {
1674
1674
  cx: 13,
1675
1675
  cy: 8,
1676
1676
  fill: e,
1677
1677
  delay: 300
1678
1678
  })
1679
1679
  ] })]
1680
- ]), qe = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
1681
- let s = B(), c = V(), l = t && !c ? Ke.get(e) : void 0;
1682
- if (!l) return /* @__PURE__ */ j(W, {
1680
+ ]), at = ({ icon: e, playing: t = !0, size: n = "md", width: r, height: i, label: a, color: o }) => {
1681
+ let s = W(), c = G(), l = t && !c ? it.get(e) : void 0;
1682
+ if (!l) return /* @__PURE__ */ M(q, {
1683
1683
  icon: e,
1684
1684
  size: n,
1685
1685
  width: r,
@@ -1687,16 +1687,193 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1687
1687
  label: a,
1688
1688
  color: o
1689
1689
  });
1690
- let u = Ne[n], d = Pe(s, o), f = Fe(a);
1691
- return /* @__PURE__ */ j(ae, {
1690
+ let u = We[n], d = Ge(s, o), f = Ke(a);
1691
+ return /* @__PURE__ */ M(ge, {
1692
1692
  viewBox: e.viewBox,
1693
1693
  width: r ?? u,
1694
1694
  height: i ?? u,
1695
1695
  ...f,
1696
- children: /* @__PURE__ */ j(l, { fill: d })
1696
+ children: /* @__PURE__ */ M(l, { fill: d })
1697
+ });
1698
+ }, ot = [
1699
+ "blue",
1700
+ "green",
1701
+ "yellow",
1702
+ "orange",
1703
+ "red",
1704
+ "purple",
1705
+ "brown",
1706
+ "teal",
1707
+ "slate"
1708
+ ], st = {
1709
+ sm: 24,
1710
+ md: 32,
1711
+ lg: 48,
1712
+ xl: 64
1713
+ }, ct = {
1714
+ sm: .5,
1715
+ md: .6,
1716
+ lg: 1,
1717
+ xl: 1.4
1718
+ };
1719
+ function lt(e) {
1720
+ let t = 0;
1721
+ for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
1722
+ return ot[t % ot.length];
1723
+ }
1724
+ function ut(e) {
1725
+ let t = e.trim().split(/\s+/).filter(Boolean);
1726
+ return t.length === 0 ? "" : t.length === 1 ? t[0].charAt(0).toUpperCase() : t[0].charAt(0).toUpperCase() + t[t.length - 1].charAt(0).toUpperCase();
1727
+ }
1728
+ function dt(e, t) {
1729
+ switch (t) {
1730
+ case "blue": return {
1731
+ backgroundColor: e.blue3,
1732
+ initialsColor: "#fff"
1733
+ };
1734
+ case "green": return {
1735
+ backgroundColor: e.green4,
1736
+ initialsColor: "#fff"
1737
+ };
1738
+ case "yellow": return {
1739
+ backgroundColor: e.yellow4,
1740
+ initialsColor: "rgba(0, 0, 0, 0.8)"
1741
+ };
1742
+ case "orange": return {
1743
+ backgroundColor: e.orange4,
1744
+ initialsColor: "#fff"
1745
+ };
1746
+ case "red": return {
1747
+ backgroundColor: e.red3,
1748
+ initialsColor: "#fff"
1749
+ };
1750
+ case "purple": return {
1751
+ backgroundColor: e.purple3,
1752
+ initialsColor: "#fff"
1753
+ };
1754
+ case "brown": return {
1755
+ backgroundColor: e.brown3,
1756
+ initialsColor: "#fff"
1757
+ };
1758
+ case "teal": return {
1759
+ backgroundColor: "#2190a4",
1760
+ initialsColor: "#fff"
1761
+ };
1762
+ case "slate": return {
1763
+ backgroundColor: e.dark2,
1764
+ initialsColor: "#fff"
1765
+ };
1766
+ }
1767
+ }
1768
+ var ft = ({ name: e = "", src: t, alt: n, size: r = "md", color: i, style: a }) => {
1769
+ let o = W(), s = H(), c = i ?? (e ? lt(e) : "blue"), l = ut(e), u = st[r], { backgroundColor: d, initialsColor: f } = dt(o, c), p = s === "dark" ? "rgba(255, 255, 255, 0.08)" : "rgba(0, 0, 0, 0.08)";
1770
+ return /* @__PURE__ */ M(k, {
1771
+ accessible: !0,
1772
+ role: "img",
1773
+ accessibilityLabel: n ?? (e || void 0) ?? "Avatar",
1774
+ style: [{
1775
+ width: u,
1776
+ height: u,
1777
+ borderRadius: o.radiusPill,
1778
+ overflow: "hidden",
1779
+ alignItems: "center",
1780
+ justifyContent: "center",
1781
+ backgroundColor: t ? void 0 : d,
1782
+ borderWidth: 1,
1783
+ borderColor: p
1784
+ }, a],
1785
+ children: t ? /* @__PURE__ */ M(y, {
1786
+ testID: "avatar-image",
1787
+ source: { uri: t },
1788
+ accessibilityElementsHidden: !0,
1789
+ importantForAccessibility: "no",
1790
+ resizeMode: "cover",
1791
+ style: {
1792
+ width: "100%",
1793
+ height: "100%"
1794
+ }
1795
+ }) : /* @__PURE__ */ M(D, {
1796
+ accessibilityElementsHidden: !0,
1797
+ importantForAccessibility: "no",
1798
+ style: {
1799
+ fontFamily: o.fontFamily,
1800
+ fontWeight: String(o.fontWeightSemibold),
1801
+ fontSize: o.fontSizeBody * ct[r],
1802
+ lineHeight: o.fontSizeBody * ct[r],
1803
+ color: f
1804
+ },
1805
+ children: l
1806
+ })
1807
+ });
1808
+ };
1809
+ //#endregion
1810
+ //#region src/components/Badge/Badge.tsx
1811
+ function pt(e, t, n) {
1812
+ switch (n) {
1813
+ case "accent": return {
1814
+ backgroundColor: e.accentBgColor,
1815
+ color: e.accentFgColor
1816
+ };
1817
+ case "success": return {
1818
+ backgroundColor: e.successBgColor,
1819
+ color: e.successFgColor
1820
+ };
1821
+ case "warning": return {
1822
+ backgroundColor: e.warningBgColor,
1823
+ color: e.warningFgColor
1824
+ };
1825
+ case "error": return {
1826
+ backgroundColor: e.errorBgColor,
1827
+ color: e.errorFgColor
1828
+ };
1829
+ case "neutral": return {
1830
+ backgroundColor: t === "dark" ? e.dark2 : e.light4,
1831
+ color: e.windowFgColor
1832
+ };
1833
+ }
1834
+ }
1835
+ var mt = ({ variant: e = "accent", dot: t = !1, children: n, anchor: r, style: i }) => {
1836
+ let a = W(), { backgroundColor: o, color: s } = pt(a, H(), e), c = /* @__PURE__ */ M(k, {
1837
+ testID: "badge-ring",
1838
+ style: [{
1839
+ padding: 2,
1840
+ borderRadius: a.radiusPill,
1841
+ backgroundColor: a.windowBgColor
1842
+ }, r ? {
1843
+ position: "absolute",
1844
+ top: t ? -2 : -4,
1845
+ right: t ? -2 : -4,
1846
+ zIndex: 1
1847
+ } : null],
1848
+ children: /* @__PURE__ */ M(k, {
1849
+ testID: "badge",
1850
+ style: [{
1851
+ minWidth: t ? 10 : 18,
1852
+ height: t ? 10 : 18,
1853
+ paddingHorizontal: t ? 0 : 5,
1854
+ borderRadius: a.radiusPill,
1855
+ backgroundColor: o,
1856
+ alignItems: "center",
1857
+ justifyContent: "center"
1858
+ }, i],
1859
+ children: !t && (typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ M(D, {
1860
+ style: {
1861
+ fontFamily: a.fontFamily,
1862
+ fontWeight: String(a.fontWeightSemibold),
1863
+ fontSize: 11,
1864
+ lineHeight: 13,
1865
+ color: s
1866
+ },
1867
+ children: n
1868
+ }) : n)
1869
+ })
1697
1870
  });
1698
- }, Je = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1699
- let c = B(), l = {
1871
+ return r ? /* @__PURE__ */ N(k, {
1872
+ style: { alignSelf: "flex-start" },
1873
+ children: [r, c]
1874
+ }) : c;
1875
+ }, ht = ({ variant: e = "info", children: t, actionLabel: n, onAction: r, dismissible: i = !1, onDismiss: a, style: o, ...s }) => {
1876
+ let c = W(), l = {
1700
1877
  info: {
1701
1878
  bg: c.accentBgColor,
1702
1879
  fg: c.accentFgColor
@@ -1714,7 +1891,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1714
1891
  fg: c.successFgColor
1715
1892
  }
1716
1893
  }[e], u = e === "warning" ? "rgba(0, 0, 0, 0.14)" : "rgba(255, 255, 255, 0.25)";
1717
- return /* @__PURE__ */ M(O, {
1894
+ return /* @__PURE__ */ N(k, {
1718
1895
  accessible: !0,
1719
1896
  accessibilityRole: "alert",
1720
1897
  accessibilityLiveRegion: "polite",
@@ -1729,7 +1906,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1729
1906
  backgroundColor: l.bg
1730
1907
  }, o],
1731
1908
  ...s,
1732
- children: [/* @__PURE__ */ j(H, {
1909
+ children: [/* @__PURE__ */ M(K, {
1733
1910
  variant: "body",
1734
1911
  style: {
1735
1912
  flex: 1,
@@ -1737,14 +1914,14 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1737
1914
  color: l.fg
1738
1915
  },
1739
1916
  children: t
1740
- }), (n || i) && /* @__PURE__ */ M(O, {
1917
+ }), (n || i) && /* @__PURE__ */ N(k, {
1741
1918
  style: {
1742
1919
  flexDirection: "row",
1743
1920
  alignItems: "center",
1744
1921
  gap: c.space1,
1745
1922
  flexShrink: 0
1746
1923
  },
1747
- children: [n && /* @__PURE__ */ j(C, {
1924
+ children: [n && /* @__PURE__ */ M(w, {
1748
1925
  accessibilityRole: "button",
1749
1926
  accessibilityLabel: n,
1750
1927
  onPress: r,
@@ -1754,7 +1931,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1754
1931
  borderRadius: c.radiusMd,
1755
1932
  backgroundColor: e ? u : "transparent"
1756
1933
  }),
1757
- children: /* @__PURE__ */ j(E, {
1934
+ children: /* @__PURE__ */ M(D, {
1758
1935
  style: {
1759
1936
  fontFamily: c.fontFamily,
1760
1937
  fontSize: c.fontSizeBody,
@@ -1763,7 +1940,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1763
1940
  },
1764
1941
  children: n
1765
1942
  })
1766
- }), i && /* @__PURE__ */ j(C, {
1943
+ }), i && /* @__PURE__ */ M(w, {
1767
1944
  accessibilityRole: "button",
1768
1945
  accessibilityLabel: "Dismiss",
1769
1946
  hitSlop: 4,
@@ -1777,7 +1954,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1777
1954
  opacity: e ? 1 : .6,
1778
1955
  backgroundColor: e ? u : "transparent"
1779
1956
  }),
1780
- children: /* @__PURE__ */ j(E, {
1957
+ children: /* @__PURE__ */ M(D, {
1781
1958
  style: {
1782
1959
  fontSize: c.fontSizeBody,
1783
1960
  color: l.fg
@@ -1787,13 +1964,169 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1787
1964
  })]
1788
1965
  })]
1789
1966
  });
1790
- }, Ye = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
1791
- return /* @__PURE__ */ j(O, {
1967
+ }, gt = m.createAnimatedComponent(w), _t = 150, vt = ({ open: e, title: t, children: n, onClose: r, closeOnBackdrop: i = !0, style: a, testID: o }) => {
1968
+ let s = W(), l = G(), [p, _] = f(e), [v, y] = f(0), b = d(new m.Value(g.get("window").height)).current, C = d(new m.Value(0)).current, T = d(!1);
1969
+ c(() => {
1970
+ e && _(!0);
1971
+ }, [e]), c(() => {
1972
+ if (!(!p || T.current)) if (e) {
1973
+ if (l) {
1974
+ b.setValue(0), C.setValue(1);
1975
+ return;
1976
+ }
1977
+ v > 0 && (b.setValue(v), m.timing(b, {
1978
+ toValue: 0,
1979
+ duration: s.durationNormal,
1980
+ useNativeDriver: !0
1981
+ }).start()), m.timing(C, {
1982
+ toValue: 1,
1983
+ duration: s.durationNormal,
1984
+ useNativeDriver: !0
1985
+ }).start();
1986
+ } else {
1987
+ if (l) {
1988
+ _(!1);
1989
+ return;
1990
+ }
1991
+ m.timing(b, {
1992
+ toValue: v || g.get("window").height,
1993
+ duration: s.durationNormal,
1994
+ useNativeDriver: !0
1995
+ }).start(({ finished: e }) => {
1996
+ e && _(!1);
1997
+ }), m.timing(C, {
1998
+ toValue: 0,
1999
+ duration: s.durationNormal,
2000
+ useNativeDriver: !0
2001
+ }).start();
2002
+ }
2003
+ }, [
2004
+ e,
2005
+ p,
2006
+ v,
2007
+ l,
2008
+ b,
2009
+ C,
2010
+ s.durationNormal
2011
+ ]), c(() => {
2012
+ if (!e) return;
2013
+ let t = h.addEventListener("hardwareBackPress", () => (r?.(), !0));
2014
+ return () => t.remove();
2015
+ }, [e, r]);
2016
+ let E = u(() => S.create({
2017
+ onStartShouldSetPanResponder: () => !0,
2018
+ onPanResponderGrant: () => {
2019
+ T.current = !0;
2020
+ },
2021
+ onPanResponderMove: (e, t) => {
2022
+ b.setValue(Math.max(0, t.dy));
2023
+ },
2024
+ onPanResponderRelease: (e, t) => {
2025
+ T.current = !1, Math.max(0, t.dy) >= _t ? r?.() : m.timing(b, {
2026
+ toValue: 0,
2027
+ duration: s.durationNormal,
2028
+ useNativeDriver: !0
2029
+ }).start();
2030
+ }
2031
+ }), [
2032
+ b,
2033
+ s.durationNormal,
2034
+ r
2035
+ ]);
2036
+ return p ? /* @__PURE__ */ M(x, {
2037
+ visible: p,
2038
+ transparent: !0,
2039
+ animationType: "none",
2040
+ statusBarTranslucent: !0,
2041
+ onRequestClose: r,
2042
+ children: /* @__PURE__ */ M(gt, {
2043
+ testID: o,
2044
+ onPress: i ? r : void 0,
2045
+ accessible: !1,
2046
+ style: {
2047
+ flex: 1,
2048
+ justifyContent: "flex-end",
2049
+ backgroundColor: s.dialogBackdropColor,
2050
+ opacity: C
2051
+ },
2052
+ children: /* @__PURE__ */ M(w, {
2053
+ onPress: () => {},
2054
+ accessible: !1,
2055
+ children: /* @__PURE__ */ N(m.View, {
2056
+ onLayout: (e) => {
2057
+ y(e.nativeEvent.layout.height);
2058
+ },
2059
+ accessible: !0,
2060
+ role: "dialog",
2061
+ accessibilityViewIsModal: !0,
2062
+ style: [{
2063
+ alignSelf: "center",
2064
+ width: "100%",
2065
+ maxWidth: 560,
2066
+ backgroundColor: s.dialogBgColor,
2067
+ borderTopLeftRadius: s.radiusXl,
2068
+ borderTopRightRadius: s.radiusXl,
2069
+ shadowColor: "#000",
2070
+ shadowOffset: {
2071
+ width: 0,
2072
+ height: -4
2073
+ },
2074
+ shadowOpacity: .18,
2075
+ shadowRadius: 24,
2076
+ elevation: 12,
2077
+ transform: [{ translateY: b }]
2078
+ }, a],
2079
+ children: [
2080
+ /* @__PURE__ */ M(k, {
2081
+ testID: "bottom-sheet-handle",
2082
+ accessibilityElementsHidden: !0,
2083
+ importantForAccessibility: "no",
2084
+ style: {
2085
+ alignItems: "center",
2086
+ paddingTop: s.space2,
2087
+ paddingBottom: s.space1
2088
+ },
2089
+ ...E.panHandlers,
2090
+ children: /* @__PURE__ */ M(k, { style: {
2091
+ width: 36,
2092
+ height: 4,
2093
+ borderRadius: 2,
2094
+ backgroundColor: s.windowFgColor,
2095
+ opacity: .2
2096
+ } })
2097
+ }),
2098
+ t && /* @__PURE__ */ M(K, {
2099
+ variant: "title-4",
2100
+ style: {
2101
+ paddingHorizontal: s.space4,
2102
+ paddingBottom: s.space2,
2103
+ textAlign: "center",
2104
+ fontWeight: String(s.fontWeightBold)
2105
+ },
2106
+ children: t
2107
+ }),
2108
+ n && /* @__PURE__ */ M(k, {
2109
+ style: {
2110
+ paddingHorizontal: s.space4,
2111
+ paddingBottom: s.space4
2112
+ },
2113
+ children: typeof n == "string" ? /* @__PURE__ */ M(K, {
2114
+ variant: "body",
2115
+ children: n
2116
+ }) : n
2117
+ })
2118
+ ]
2119
+ })
2120
+ })
2121
+ })
2122
+ }) : null;
2123
+ }, yt = i(function({ orientation: e = "horizontal", style: t, ...n }, r) {
2124
+ return /* @__PURE__ */ M(k, {
1792
2125
  ref: r,
1793
2126
  accessible: !1,
1794
2127
  style: [
1795
2128
  {
1796
- backgroundColor: B().cardShadeColor,
2129
+ backgroundColor: W().cardShadeColor,
1797
2130
  flexShrink: 0
1798
2131
  },
1799
2132
  e === "vertical" ? {
@@ -1808,15 +2141,15 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1808
2141
  ],
1809
2142
  ...n
1810
2143
  });
1811
- }), Xe = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
1812
- let o = B(), s = e.toArray(t).filter(Boolean);
1813
- return n === "separate" ? /* @__PURE__ */ j(O, {
2144
+ }), bt = i(function({ children: t, variant: n = "default", style: r, ...i }, a) {
2145
+ let o = W(), s = e.toArray(t).filter(Boolean);
2146
+ return n === "separate" ? /* @__PURE__ */ M(k, {
1814
2147
  ref: a,
1815
2148
  accessible: !0,
1816
2149
  accessibilityRole: "list",
1817
2150
  style: [{ gap: o.space2 }, r],
1818
2151
  ...i,
1819
- children: s.map((e, t) => /* @__PURE__ */ j(O, {
2152
+ children: s.map((e, t) => /* @__PURE__ */ M(k, {
1820
2153
  style: {
1821
2154
  backgroundColor: o.cardBgColor,
1822
2155
  borderWidth: 1,
@@ -1826,7 +2159,7 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1826
2159
  },
1827
2160
  children: e
1828
2161
  }, t))
1829
- }) : /* @__PURE__ */ j(O, {
2162
+ }) : /* @__PURE__ */ M(k, {
1830
2163
  ref: a,
1831
2164
  accessible: !0,
1832
2165
  accessibilityRole: "list",
@@ -1838,12 +2171,12 @@ var Ge = ({ cx: e, cy: t, fill: n, delay: r }) => {
1838
2171
  overflow: "hidden"
1839
2172
  }, r],
1840
2173
  ...i,
1841
- children: s.map((e, t) => /* @__PURE__ */ M(O, { children: [t > 0 && /* @__PURE__ */ j(Ye, { testID: "boxed-list-separator" }), e] }, t))
2174
+ children: s.map((e, t) => /* @__PURE__ */ N(k, { children: [t > 0 && /* @__PURE__ */ M(yt, { testID: "boxed-list-separator" }), e] }, t))
1842
2175
  });
1843
2176
  });
1844
2177
  //#endregion
1845
2178
  //#region src/components/Button/Button.tsx
1846
- function Ze(e, t) {
2179
+ function xt(e, t) {
1847
2180
  switch (t) {
1848
2181
  case "sm": return {
1849
2182
  minHeight: 28,
@@ -1868,14 +2201,14 @@ function Ze(e, t) {
1868
2201
  };
1869
2202
  }
1870
2203
  }
1871
- function Qe(e) {
2204
+ function St(e) {
1872
2205
  switch (e) {
1873
2206
  case "sm": return 28;
1874
2207
  case "lg": return 42;
1875
2208
  default: return 34;
1876
2209
  }
1877
2210
  }
1878
- function $e(e, t, n, r) {
2211
+ function Ct(e, t, n, r) {
1879
2212
  if (r) return {
1880
2213
  backgroundColor: n ? "rgba(0, 0, 0, 0.85)" : "rgba(0, 0, 0, 0.65)",
1881
2214
  borderColor: "rgba(255, 255, 255, 0.12)",
@@ -1904,15 +2237,15 @@ function $e(e, t, n, r) {
1904
2237
  };
1905
2238
  }
1906
2239
  }
1907
- var et = i(function({ variant: e = "default", size: t = "md", shape: n = "default", osd: r = !1, leadingIcon: i, trailingIcon: a, children: o, style: s, textStyle: c, disabled: l, ...u }, d) {
1908
- let f = B(), p = z();
1909
- return /* @__PURE__ */ j(C, {
2240
+ var wt = 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) {
2241
+ let f = W(), p = U();
2242
+ return /* @__PURE__ */ M(w, {
1910
2243
  ref: d,
1911
2244
  disabled: l,
1912
2245
  accessibilityRole: "button",
1913
2246
  accessibilityState: { disabled: !!l },
1914
2247
  style: ({ pressed: i }) => {
1915
- let { backgroundColor: a, borderColor: o } = $e(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? Qe(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = Ze(f, t);
2248
+ let { backgroundColor: a, borderColor: o } = Ct(f, e, i, r), c = !r && (e === "suggested" || e === "destructive"), u = n === "circular" ? St(t) : void 0, { minHeight: d, minWidth: m, paddingVertical: h, paddingHorizontal: g } = xt(f, t);
1916
2249
  return [{
1917
2250
  flexDirection: "row",
1918
2251
  alignItems: "center",
@@ -1933,10 +2266,10 @@ var et = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
1933
2266
  },
1934
2267
  ...u,
1935
2268
  children: ({ pressed: n }) => {
1936
- let { fontSize: s } = Ze(f, t), { color: l } = $e(f, e, n, r);
1937
- return /* @__PURE__ */ M(A, { children: [
2269
+ let { fontSize: s } = xt(f, t), { color: l } = Ct(f, e, n, r);
2270
+ return /* @__PURE__ */ N(j, { children: [
1938
2271
  i,
1939
- typeof o == "string" ? /* @__PURE__ */ j(E, {
2272
+ typeof o == "string" ? /* @__PURE__ */ M(D, {
1940
2273
  style: [{
1941
2274
  fontFamily: f.fontFamily,
1942
2275
  fontWeight: String(f.fontWeightSemibold),
@@ -1952,7 +2285,7 @@ var et = i(function({ variant: e = "default", size: t = "md", shape: n = "defaul
1952
2285
  });
1953
2286
  //#endregion
1954
2287
  //#region src/components/Card/Card.tsx
1955
- function tt(e, t) {
2288
+ function Tt(e, t) {
1956
2289
  switch (t) {
1957
2290
  case "none": return 0;
1958
2291
  case "sm": return e.space2;
@@ -1960,16 +2293,16 @@ function tt(e, t) {
1960
2293
  default: return e.space4;
1961
2294
  }
1962
2295
  }
1963
- var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
1964
- let s = B(), c = {
2296
+ var Et = i(function({ interactive: e = !1, padding: t = "md", style: n, children: r, disabled: i, ...a }, o) {
2297
+ let s = W(), c = {
1965
2298
  backgroundColor: s.cardBgColor,
1966
2299
  borderWidth: 1,
1967
2300
  borderColor: s.cardShadeColor,
1968
2301
  borderRadius: s.radiusLg,
1969
2302
  overflow: "hidden",
1970
- padding: tt(s, t)
2303
+ padding: Tt(s, t)
1971
2304
  };
1972
- return e ? /* @__PURE__ */ j(C, {
2305
+ return e ? /* @__PURE__ */ M(w, {
1973
2306
  ref: o,
1974
2307
  disabled: i,
1975
2308
  accessibilityRole: "button",
@@ -1983,21 +2316,21 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
1983
2316
  n
1984
2317
  ],
1985
2318
  ...a,
1986
- children: ({ pressed: e }) => /* @__PURE__ */ M(A, { children: [r, e && !i ? /* @__PURE__ */ j(O, {
2319
+ children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [r, e && !i ? /* @__PURE__ */ M(k, {
1987
2320
  pointerEvents: "none",
1988
- style: [T.absoluteFill, {
2321
+ style: [E.absoluteFill, {
1989
2322
  backgroundColor: s.activeOverlay,
1990
2323
  borderRadius: s.radiusLg
1991
2324
  }]
1992
2325
  }) : null] })
1993
- }) : /* @__PURE__ */ j(O, {
2326
+ }) : /* @__PURE__ */ M(k, {
1994
2327
  ref: o,
1995
2328
  style: [c, n],
1996
2329
  ...a,
1997
2330
  children: r
1998
2331
  });
1999
- }), rt = 18, it = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
2000
- let s = B(), l = R(), u = z(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
2332
+ }), Dt = 18, Ot = i(function({ value: e, indeterminate: t = !1, onValueChange: n, disabled: r, style: i, ...a }, o) {
2333
+ let s = W(), l = H(), u = U(), f = e || t, p = d(new m.Value(+!!f)).current, h = d(!0);
2001
2334
  c(() => {
2002
2335
  if (h.current) {
2003
2336
  h.current = !1;
@@ -2023,7 +2356,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2023
2356
  inputRange: [0, 1],
2024
2357
  outputRange: [s.cardBgColor, s.accentBgColor]
2025
2358
  });
2026
- return /* @__PURE__ */ j(C, {
2359
+ return /* @__PURE__ */ M(w, {
2027
2360
  ref: o,
2028
2361
  disabled: r,
2029
2362
  accessibilityRole: "checkbox",
@@ -2034,10 +2367,10 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2034
2367
  onPress: () => n?.(!e),
2035
2368
  style: [{ opacity: r ? s.opacityDisabled : 1 }, i],
2036
2369
  ...a,
2037
- children: /* @__PURE__ */ j(m.View, {
2370
+ children: /* @__PURE__ */ M(m.View, {
2038
2371
  style: {
2039
- width: rt,
2040
- height: rt,
2372
+ width: Dt,
2373
+ height: Dt,
2041
2374
  alignItems: "center",
2042
2375
  justifyContent: "center",
2043
2376
  borderRadius: s.radiusSm,
@@ -2045,13 +2378,13 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2045
2378
  borderColor: v,
2046
2379
  backgroundColor: y
2047
2380
  },
2048
- children: t ? /* @__PURE__ */ j(m.View, { style: {
2381
+ children: t ? /* @__PURE__ */ M(m.View, { style: {
2049
2382
  width: 10,
2050
2383
  height: 2,
2051
2384
  borderRadius: 1,
2052
2385
  backgroundColor: "#fff",
2053
2386
  opacity: p
2054
- } }) : /* @__PURE__ */ j(m.Text, {
2387
+ } }) : /* @__PURE__ */ M(m.Text, {
2055
2388
  style: {
2056
2389
  opacity: p,
2057
2390
  color: "#fff",
@@ -2063,13 +2396,85 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2063
2396
  })
2064
2397
  })
2065
2398
  });
2066
- }), at = m.createAnimatedComponent(C), ot = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
2067
- let p = B(), g = R(), v = V(), y = d(new m.Value(+!!v)).current, x = !!s, S = () => {
2399
+ }), kt = ({ label: e, icon: t, onRemove: n, selectable: r = !1, selected: i = !1, onToggle: a, disabled: o = !1, style: s, testID: c }) => {
2400
+ let l = W(), u = r && !n, d = {
2401
+ flexDirection: "row",
2402
+ alignItems: "center",
2403
+ gap: l.space1,
2404
+ paddingVertical: 3,
2405
+ paddingHorizontal: l.space2,
2406
+ borderRadius: l.radiusPill,
2407
+ borderWidth: 1,
2408
+ borderColor: i ? `${l.accentBgColor}80` : l.light3,
2409
+ backgroundColor: i ? `${l.accentBgColor}26` : l.cardBgColor,
2410
+ overflow: "hidden"
2411
+ }, f = {
2412
+ color: i ? l.accentColor : l.windowFgColor,
2413
+ fontWeight: String(i ? l.fontWeightSemibold : l.fontWeightNormal)
2414
+ }, p = /* @__PURE__ */ N(j, { children: [
2415
+ t && /* @__PURE__ */ M(k, {
2416
+ style: { marginStart: -2 },
2417
+ children: /* @__PURE__ */ M(q, {
2418
+ icon: t,
2419
+ size: "sm"
2420
+ })
2421
+ }),
2422
+ /* @__PURE__ */ M(K, {
2423
+ variant: "caption",
2424
+ style: f,
2425
+ children: e
2426
+ }),
2427
+ n && /* @__PURE__ */ M(w, {
2428
+ accessibilityRole: "button",
2429
+ accessibilityLabel: `Remove ${e}`,
2430
+ disabled: o,
2431
+ onPress: n,
2432
+ hitSlop: 8,
2433
+ style: {
2434
+ marginEnd: -4,
2435
+ opacity: o ? l.opacityDisabled : 1
2436
+ },
2437
+ children: /* @__PURE__ */ M(q, {
2438
+ icon: L,
2439
+ size: "sm"
2440
+ })
2441
+ })
2442
+ ] });
2443
+ return u ? /* @__PURE__ */ M(w, {
2444
+ testID: c,
2445
+ disabled: o,
2446
+ accessibilityRole: "checkbox",
2447
+ accessibilityState: {
2448
+ checked: i,
2449
+ disabled: o
2450
+ },
2451
+ accessibilityLabel: e,
2452
+ onPress: a,
2453
+ style: [
2454
+ d,
2455
+ { opacity: o ? l.opacityDisabled : 1 },
2456
+ s
2457
+ ],
2458
+ children: ({ pressed: e }) => /* @__PURE__ */ N(j, { children: [p, e && !o && /* @__PURE__ */ M(k, {
2459
+ pointerEvents: "none",
2460
+ style: [E.absoluteFill, { backgroundColor: l.activeOverlay }]
2461
+ })] })
2462
+ }) : /* @__PURE__ */ M(k, {
2463
+ testID: c,
2464
+ style: [
2465
+ d,
2466
+ { opacity: o ? l.opacityDisabled : 1 },
2467
+ s
2468
+ ],
2469
+ children: p
2470
+ });
2471
+ }, At = m.createAnimatedComponent(w), jt = ({ open: e, title: t, children: n, buttons: r = [], onClose: i, closeOnBackdrop: a = !0, role: o = "dialog", responses: s, onResponse: l, style: u, testID: f }) => {
2472
+ let p = W(), g = H(), v = G(), y = d(new m.Value(+!!v)).current, b = !!s, S = () => {
2068
2473
  let e = s?.find((e) => e.variant !== "destructive" && !e.disabled);
2069
2474
  e && l?.(e.id);
2070
- }, w = () => {
2071
- x ? S() : i?.();
2072
- }, T = x ? S : a ? i : void 0;
2475
+ }, C = () => {
2476
+ b ? S() : i?.();
2477
+ }, T = b ? S : a ? i : void 0;
2073
2478
  c(() => {
2074
2479
  if (!e) return;
2075
2480
  if (v) {
@@ -2092,25 +2497,25 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2092
2497
  p.easingDefault
2093
2498
  ]), c(() => {
2094
2499
  if (!e) return;
2095
- let t = h.addEventListener("hardwareBackPress", () => (w(), !0));
2500
+ let t = h.addEventListener("hardwareBackPress", () => (C(), !0));
2096
2501
  return () => t.remove();
2097
2502
  }, [
2098
2503
  e,
2099
- x,
2504
+ b,
2100
2505
  s,
2101
2506
  l,
2102
2507
  i
2103
2508
  ]);
2104
2509
  let E = () => {
2105
- let e = x && s ? s : r;
2106
- return e.length === 0 ? null : /* @__PURE__ */ j(O, {
2510
+ let e = b && s ? s : r;
2511
+ return e.length === 0 ? null : /* @__PURE__ */ M(k, {
2107
2512
  style: {
2108
2513
  borderTopWidth: 1,
2109
2514
  borderTopColor: p.cardShadeColor
2110
2515
  },
2111
2516
  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__ */ j(C, {
2517
+ let r = t.variant ?? "default", i = r === "destructive" ? p.destructiveColor : p.accentColor, a = b ? () => l?.(t.id) : t.onPress;
2518
+ return /* @__PURE__ */ M(w, {
2114
2519
  accessibilityRole: "button",
2115
2520
  accessibilityState: { disabled: t.disabled },
2116
2521
  disabled: t.disabled,
@@ -2123,7 +2528,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2123
2528
  backgroundColor: r ? p.activeOverlay : "transparent",
2124
2529
  opacity: t.disabled ? p.opacityDisabled : 1
2125
2530
  }),
2126
- children: /* @__PURE__ */ j(H, {
2531
+ children: /* @__PURE__ */ M(K, {
2127
2532
  variant: "body",
2128
2533
  style: {
2129
2534
  textAlign: "center",
@@ -2132,7 +2537,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2132
2537
  },
2133
2538
  children: t.label
2134
2539
  })
2135
- }, x ? t.id : t.label);
2540
+ }, b ? t.id : t.label);
2136
2541
  })
2137
2542
  });
2138
2543
  }, D = g === "dark" ? {
@@ -2144,13 +2549,13 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2144
2549
  shadowRadius: 32,
2145
2550
  elevation: 8
2146
2551
  };
2147
- return /* @__PURE__ */ j(b, {
2552
+ return /* @__PURE__ */ M(x, {
2148
2553
  visible: e,
2149
2554
  transparent: !0,
2150
2555
  animationType: "none",
2151
2556
  statusBarTranslucent: !0,
2152
- onRequestClose: w,
2153
- children: /* @__PURE__ */ j(at, {
2557
+ onRequestClose: C,
2558
+ children: /* @__PURE__ */ M(At, {
2154
2559
  testID: f,
2155
2560
  onPress: T,
2156
2561
  style: {
@@ -2161,14 +2566,14 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2161
2566
  backgroundColor: p.dialogBackdropColor,
2162
2567
  opacity: y
2163
2568
  },
2164
- children: /* @__PURE__ */ j(C, {
2569
+ children: /* @__PURE__ */ M(w, {
2165
2570
  onPress: () => {},
2166
2571
  accessible: !1,
2167
2572
  style: {
2168
2573
  width: "100%",
2169
2574
  maxWidth: 480
2170
2575
  },
2171
- children: /* @__PURE__ */ M(m.View, {
2576
+ children: /* @__PURE__ */ N(m.View, {
2172
2577
  accessible: !0,
2173
2578
  role: o,
2174
2579
  accessibilityViewIsModal: !0,
@@ -2192,7 +2597,7 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2192
2597
  }) }]
2193
2598
  }, u],
2194
2599
  children: [
2195
- t && /* @__PURE__ */ j(H, {
2600
+ t && /* @__PURE__ */ M(K, {
2196
2601
  variant: "title-4",
2197
2602
  style: {
2198
2603
  padding: p.space4,
@@ -2202,12 +2607,12 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2202
2607
  },
2203
2608
  children: t
2204
2609
  }),
2205
- n && /* @__PURE__ */ j(O, {
2610
+ n && /* @__PURE__ */ M(k, {
2206
2611
  style: {
2207
2612
  paddingVertical: p.space2,
2208
2613
  paddingHorizontal: p.space4
2209
2614
  },
2210
- children: typeof n == "string" ? /* @__PURE__ */ j(H, {
2615
+ children: typeof n == "string" ? /* @__PURE__ */ M(K, {
2211
2616
  variant: "body",
2212
2617
  style: {
2213
2618
  textAlign: "center",
@@ -2222,67 +2627,507 @@ var nt = i(function({ interactive: e = !1, padding: t = "md", style: n, children
2222
2627
  })
2223
2628
  })
2224
2629
  });
2225
- }, st = 4, ct = 8, lt = 280;
2226
- function ut(e, t) {
2227
- let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - st : e.y + e.height + st;
2630
+ }, Mt = ({ children: e, accessibilityLabel: t, style: n, testID: r }) => {
2631
+ let i = W(), a = !!e;
2632
+ return /* @__PURE__ */ N(k, {
2633
+ testID: r,
2634
+ accessible: !0,
2635
+ role: "separator",
2636
+ accessibilityLabel: t ?? (typeof e == "string" ? e : void 0),
2637
+ style: [{
2638
+ flexDirection: "row",
2639
+ alignItems: "center",
2640
+ width: "100%",
2641
+ gap: i.space2
2642
+ }, n],
2643
+ children: [/* @__PURE__ */ M(k, { style: {
2644
+ flex: 1,
2645
+ height: 1,
2646
+ backgroundColor: i.cardShadeColor
2647
+ } }), a && /* @__PURE__ */ N(j, { children: [typeof e == "string" ? /* @__PURE__ */ M(K, {
2648
+ variant: "caption",
2649
+ color: "dim",
2650
+ children: e
2651
+ }) : e, /* @__PURE__ */ M(k, { style: {
2652
+ flex: 1,
2653
+ height: 1,
2654
+ backgroundColor: i.cardShadeColor
2655
+ } })] })]
2656
+ });
2657
+ }, Y = 6, X = 8, Nt = 5;
2658
+ function Pt(e, t) {
2659
+ if (e) {
2660
+ if (typeof e == "function") {
2661
+ e(t);
2662
+ return;
2663
+ }
2664
+ e.current = t;
2665
+ }
2666
+ }
2667
+ function Ft(e, t, n) {
2668
+ switch (n) {
2669
+ case "top": return {
2670
+ top: e.y - t.height - Y,
2671
+ left: e.x + e.width / 2 - t.width / 2
2672
+ };
2673
+ case "bottom": return {
2674
+ top: e.y + e.height + Y,
2675
+ left: e.x + e.width / 2 - t.width / 2
2676
+ };
2677
+ case "left": return {
2678
+ top: e.y + e.height / 2 - t.height / 2,
2679
+ left: e.x - t.width - Y
2680
+ };
2681
+ case "right": return {
2682
+ top: e.y + e.height / 2 - t.height / 2,
2683
+ left: e.x + e.width + Y
2684
+ };
2685
+ }
2686
+ }
2687
+ function It(e, t, n) {
2688
+ let { width: r, height: i } = g.get("window"), a = [
2689
+ n,
2690
+ n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
2691
+ "top",
2692
+ "bottom",
2693
+ "left",
2694
+ "right"
2695
+ ];
2696
+ for (let n of a) {
2697
+ let { top: a, left: o } = Ft(e, t, n), s = o >= X && o + t.width <= r - X, c = a >= X && a + t.height <= i - X;
2698
+ if (s && c) return {
2699
+ top: Math.max(X, Math.min(a, i - t.height - X)),
2700
+ left: Math.max(X, Math.min(o, r - t.width - X)),
2701
+ placement: n
2702
+ };
2703
+ }
2704
+ let { top: o, left: s } = Ft(e, t, n);
2228
2705
  return {
2229
- top: Math.max(ct, Math.min(i, n - t - ct)),
2230
- left: e.x,
2231
- width: e.width,
2232
- flipUp: r
2706
+ top: Math.max(X, Math.min(o, i - t.height - X)),
2707
+ left: Math.max(X, Math.min(s, r - t.width - X)),
2708
+ placement: n
2233
2709
  };
2234
2710
  }
2235
- var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
2236
- let l = B(), u = V(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [x, S] = f(null), T = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), k = () => {
2237
- a || h(!0);
2238
- }, A = () => h(!1), ee = (e) => {
2239
- e.disabled || (n?.(e.value), A());
2240
- };
2241
- return c(() => {
2242
- if (!p) {
2243
- _(null), y(null), S(null);
2711
+ var Lt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
2712
+ let a = W(), s = H(), l = G(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, b] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, T = o(() => {
2713
+ C.current &&= (clearTimeout(C.current), null);
2714
+ }, []), D = o(() => {
2715
+ T(), p(!0);
2716
+ }, [T]), O = o(() => {
2717
+ T(), C.current = setTimeout(D, r);
2718
+ }, [
2719
+ T,
2720
+ D,
2721
+ r
2722
+ ]), A = o(() => {
2723
+ T(), p(!1);
2724
+ }, [T]);
2725
+ c(() => {
2726
+ if (!u) {
2727
+ g(null), v(null), b(null);
2244
2728
  return;
2245
2729
  }
2246
- T.current?.measureInWindow((e, t, n, r) => {
2247
- _({
2730
+ S.current?.measureInWindow((e, t, n, r) => {
2731
+ g({
2248
2732
  x: e,
2249
2733
  y: t,
2250
2734
  width: n,
2251
2735
  height: r
2252
2736
  });
2253
2737
  });
2254
- }, [p]), c(() => {
2255
- g === null || v === null || S(ut(g, v));
2256
- }, [g, v]), c(() => {
2257
- if (x) {
2258
- if (u) {
2259
- E.setValue(1);
2738
+ }, [u]), c(() => {
2739
+ !h || !_ || b(It(h, _, t));
2740
+ }, [
2741
+ h,
2742
+ _,
2743
+ t
2744
+ ]), c(() => {
2745
+ if (y) {
2746
+ if (l) {
2747
+ w.setValue(1);
2260
2748
  return;
2261
2749
  }
2262
- E.setValue(0), m.timing(E, {
2750
+ w.setValue(0), m.timing(w, {
2263
2751
  toValue: 1,
2264
- duration: l.durationFast,
2752
+ duration: a.durationFast,
2265
2753
  useNativeDriver: !0
2266
2754
  }).start();
2267
2755
  }
2268
2756
  }, [
2269
- x,
2270
- u,
2271
- E,
2272
- l.durationFast
2273
- ]), /* @__PURE__ */ M(O, {
2274
- style: o,
2275
- children: [/* @__PURE__ */ M(C, {
2276
- ref: T,
2277
- testID: s,
2278
- role: "combobox",
2279
- accessibilityLabel: i,
2280
- accessibilityState: {
2757
+ y,
2758
+ l,
2759
+ w,
2760
+ a.durationFast
2761
+ ]), c(() => T, [T]);
2762
+ let P = (e) => {
2763
+ let { width: t, height: n } = e.nativeEvent.layout;
2764
+ v({
2765
+ width: t,
2766
+ height: n
2767
+ });
2768
+ }, F = s === "dark" ? "#c0bfbc" : "#3d3d3d", I = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", L = s === "dark" ? {
2769
+ shadowOpacity: .4,
2770
+ shadowRadius: 8,
2771
+ elevation: 6
2772
+ } : {
2773
+ shadowOpacity: .2,
2774
+ shadowRadius: 8,
2775
+ elevation: 4
2776
+ }, R = {
2777
+ position: "absolute",
2778
+ width: 0,
2779
+ height: 0,
2780
+ borderWidth: Nt,
2781
+ borderColor: "transparent"
2782
+ }, z = (() => {
2783
+ switch (y?.placement) {
2784
+ case "top": return {
2785
+ ...R,
2786
+ top: "100%",
2787
+ left: "50%",
2788
+ marginLeft: -5,
2789
+ borderTopColor: F
2790
+ };
2791
+ case "bottom": return {
2792
+ ...R,
2793
+ bottom: "100%",
2794
+ left: "50%",
2795
+ marginLeft: -5,
2796
+ borderBottomColor: F
2797
+ };
2798
+ case "left": return {
2799
+ ...R,
2800
+ left: "100%",
2801
+ top: "50%",
2802
+ marginTop: -5,
2803
+ borderLeftColor: F
2804
+ };
2805
+ case "right": return {
2806
+ ...R,
2807
+ right: "100%",
2808
+ top: "50%",
2809
+ marginTop: -5,
2810
+ borderRightColor: F
2811
+ };
2812
+ default: return null;
2813
+ }
2814
+ })(), ee = i.props.ref;
2815
+ return /* @__PURE__ */ N(j, { children: [n(i, {
2816
+ ref: (e) => {
2817
+ S.current = e, Pt(ee, e);
2818
+ },
2819
+ delayLongPress: r,
2820
+ accessibilityHint: i.props.accessibilityHint ?? e,
2821
+ onLongPress: (e) => {
2822
+ D(), i.props.onLongPress?.(e);
2823
+ },
2824
+ onPressOut: (e) => {
2825
+ A(), i.props.onPressOut?.(e);
2826
+ },
2827
+ onHoverIn: (e) => {
2828
+ O(), i.props.onHoverIn?.(e);
2829
+ },
2830
+ onHoverOut: (e) => {
2831
+ A(), i.props.onHoverOut?.(e);
2832
+ },
2833
+ onFocus: (e) => {
2834
+ O(), i.props.onFocus?.(e);
2835
+ },
2836
+ onBlur: (e) => {
2837
+ A(), i.props.onBlur?.(e);
2838
+ }
2839
+ }), /* @__PURE__ */ M(x, {
2840
+ visible: u,
2841
+ transparent: !0,
2842
+ animationType: "none",
2843
+ statusBarTranslucent: !0,
2844
+ children: /* @__PURE__ */ M(k, {
2845
+ pointerEvents: "box-none",
2846
+ style: E.absoluteFill,
2847
+ children: /* @__PURE__ */ N(m.View, {
2848
+ onLayout: P,
2849
+ accessible: !0,
2850
+ role: "tooltip",
2851
+ style: [{
2852
+ position: "absolute",
2853
+ maxWidth: 240,
2854
+ paddingVertical: 4,
2855
+ paddingHorizontal: a.space2,
2856
+ backgroundColor: F,
2857
+ borderRadius: a.radiusSm,
2858
+ shadowColor: "#000",
2859
+ shadowOffset: {
2860
+ width: 0,
2861
+ height: 2
2862
+ },
2863
+ ...L
2864
+ }, y ? {
2865
+ top: y.top,
2866
+ left: y.left,
2867
+ opacity: w
2868
+ } : {
2869
+ top: -9999,
2870
+ left: -9999,
2871
+ opacity: 0
2872
+ }],
2873
+ children: [/* @__PURE__ */ M(K, {
2874
+ style: {
2875
+ color: I,
2876
+ fontSize: a.fontSizeCaption,
2877
+ fontWeight: String(a.fontWeightNormal),
2878
+ lineHeight: a.fontSizeCaption * a.lineHeightBody,
2879
+ textAlign: "center"
2880
+ },
2881
+ children: e
2882
+ }), z && /* @__PURE__ */ M(k, { style: z })]
2883
+ })
2884
+ })
2885
+ })] });
2886
+ }, Rt = {
2887
+ sm: "sm",
2888
+ md: "md",
2889
+ lg: "lg"
2890
+ }, zt = i(function({ icon: e, label: t, variant: n = "default", size: r = "md", iconSize: i, tooltip: a, tooltipPlacement: o, tooltipDelay: s, ...c }, l) {
2891
+ let u = /* @__PURE__ */ M(wt, {
2892
+ ref: l,
2893
+ accessibilityLabel: t,
2894
+ shape: "circular",
2895
+ size: r,
2896
+ variant: n === "osd" ? "flat" : n,
2897
+ osd: n === "osd",
2898
+ ...c,
2899
+ children: /* @__PURE__ */ M(q, {
2900
+ icon: e,
2901
+ size: i ?? Rt[r]
2902
+ })
2903
+ });
2904
+ return a ? /* @__PURE__ */ M(Lt, {
2905
+ label: a,
2906
+ placement: o,
2907
+ delay: s,
2908
+ children: u
2909
+ }) : u;
2910
+ }), Bt = m.createAnimatedComponent(w), Vt = r(0), Ht = {
2911
+ classic: 420,
2912
+ wide: 640
2913
+ }, Ut = .85, Wt = 240, Gt = ({ open: e, side: t = "right", size: n = "classic", title: r, content: i, children: a, onClose: o, closeOnBackdrop: l = !0, rail: u, style: f, testID: p }) => {
2914
+ let v = W(), y = H(), b = G(), S = s(Vt), C = i === void 0 ? a : i, T = Ht[n], E = S > 0 ? Math.max(Wt, Math.round(T * Ut ** S)) : T, D = g.get("window").width - v.space3 * 2, O = Math.min(E, D), A = d(new m.Value(+!!b)).current;
2915
+ c(() => {
2916
+ if (!e) return;
2917
+ if (b) {
2918
+ A.setValue(1);
2919
+ return;
2920
+ }
2921
+ A.setValue(0);
2922
+ let [t, n, r, i] = v.easingDefault;
2923
+ m.timing(A, {
2924
+ toValue: 1,
2925
+ duration: v.durationNormal,
2926
+ easing: _.bezier(t, n, r, i),
2927
+ useNativeDriver: !0
2928
+ }).start();
2929
+ }, [
2930
+ e,
2931
+ b,
2932
+ A,
2933
+ v.durationNormal,
2934
+ v.easingDefault
2935
+ ]), c(() => {
2936
+ if (!e) return;
2937
+ let t = h.addEventListener("hardwareBackPress", () => (o?.(), !0));
2938
+ return () => t.remove();
2939
+ }, [e, o]);
2940
+ let j = t === "left" ? -O : O, P = A.interpolate({
2941
+ inputRange: [0, 1],
2942
+ outputRange: [j, 0]
2943
+ }), F = y === "dark" ? {
2944
+ shadowOpacity: .45,
2945
+ shadowRadius: 24,
2946
+ elevation: 12
2947
+ } : {
2948
+ shadowOpacity: .18,
2949
+ shadowRadius: 24,
2950
+ elevation: 8
2951
+ }, I = u && u.length > 0 ? /* @__PURE__ */ M(k, {
2952
+ style: {
2953
+ width: 56,
2954
+ flexShrink: 0,
2955
+ alignItems: "center",
2956
+ gap: v.space2,
2957
+ paddingVertical: v.space3,
2958
+ [t === "right" ? "borderRightWidth" : "borderLeftWidth"]: 1,
2959
+ borderColor: v.cardShadeColor
2960
+ },
2961
+ children: u.map((e) => /* @__PURE__ */ M(zt, {
2962
+ icon: e.icon,
2963
+ label: e.label,
2964
+ tooltip: e.label,
2965
+ tooltipPlacement: t === "right" ? "left" : "right",
2966
+ variant: "flat",
2967
+ size: "sm",
2968
+ disabled: e.disabled,
2969
+ accessibilityState: {
2970
+ selected: !!e.active,
2971
+ disabled: !!e.disabled
2972
+ },
2973
+ onPress: e.onPress
2974
+ }, e.id))
2975
+ }) : null;
2976
+ return /* @__PURE__ */ M(x, {
2977
+ visible: e,
2978
+ transparent: !0,
2979
+ animationType: "none",
2980
+ statusBarTranslucent: !0,
2981
+ onRequestClose: o,
2982
+ children: /* @__PURE__ */ M(Bt, {
2983
+ testID: p,
2984
+ onPress: l ? o : void 0,
2985
+ accessible: !1,
2986
+ style: {
2987
+ flex: 1,
2988
+ flexDirection: "row",
2989
+ justifyContent: t === "left" ? "flex-start" : "flex-end",
2990
+ padding: v.space3,
2991
+ backgroundColor: v.dialogBackdropColor,
2992
+ opacity: A
2993
+ },
2994
+ children: /* @__PURE__ */ M(w, {
2995
+ onPress: () => {},
2996
+ accessible: !1,
2997
+ style: { width: O },
2998
+ children: /* @__PURE__ */ N(m.View, {
2999
+ accessible: !0,
3000
+ role: "dialog",
3001
+ accessibilityViewIsModal: !0,
3002
+ style: [{
3003
+ flex: 1,
3004
+ flexDirection: "row",
3005
+ overflow: "hidden",
3006
+ borderRadius: v.radiusXl,
3007
+ backgroundColor: v.dialogBgColor,
3008
+ shadowColor: "#000",
3009
+ shadowOffset: {
3010
+ width: t === "left" ? 4 : -4,
3011
+ height: 0
3012
+ },
3013
+ ...F,
3014
+ transform: [{ translateX: P }]
3015
+ }, f],
3016
+ children: [
3017
+ t === "right" && I,
3018
+ /* @__PURE__ */ N(k, {
3019
+ style: {
3020
+ flex: 1,
3021
+ minWidth: 0
3022
+ },
3023
+ children: [r && /* @__PURE__ */ N(k, {
3024
+ style: {
3025
+ flexDirection: "row",
3026
+ alignItems: "center",
3027
+ gap: v.space2,
3028
+ padding: v.space4,
3029
+ paddingBottom: v.space2
3030
+ },
3031
+ children: [/* @__PURE__ */ M(K, {
3032
+ variant: "title-4",
3033
+ style: {
3034
+ flex: 1,
3035
+ fontWeight: String(v.fontWeightBold)
3036
+ },
3037
+ children: r
3038
+ }), o && /* @__PURE__ */ M(wt, {
3039
+ variant: "flat",
3040
+ shape: "circular",
3041
+ size: "sm",
3042
+ accessibilityLabel: "Close",
3043
+ onPress: o,
3044
+ children: /* @__PURE__ */ M(q, {
3045
+ icon: L,
3046
+ size: "sm"
3047
+ })
3048
+ })]
3049
+ }), C !== void 0 && /* @__PURE__ */ M(k, {
3050
+ style: {
3051
+ flex: 1,
3052
+ padding: v.space4,
3053
+ paddingTop: r ? 0 : v.space4
3054
+ },
3055
+ children: /* @__PURE__ */ M(Vt.Provider, {
3056
+ value: S + 1,
3057
+ children: typeof C == "string" ? /* @__PURE__ */ M(K, {
3058
+ variant: "body",
3059
+ children: C
3060
+ }) : C
3061
+ })
3062
+ })]
3063
+ }),
3064
+ t === "left" && I
3065
+ ]
3066
+ })
3067
+ })
3068
+ })
3069
+ });
3070
+ }, Kt = 4, qt = 8, Jt = 280;
3071
+ function Yt(e, t) {
3072
+ let { height: n } = g.get("window"), r = n - (e.y + e.height) < t && e.y > t, i = r ? e.y - t - Kt : e.y + e.height + Kt;
3073
+ return {
3074
+ top: Math.max(qt, Math.min(i, n - t - qt)),
3075
+ left: e.x,
3076
+ width: e.width,
3077
+ flipUp: r
3078
+ };
3079
+ }
3080
+ var Xt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an option", accessibilityLabel: i, disabled: a, style: o, testID: s }) => {
3081
+ let l = W(), u = G(), [p, h] = f(!1), [g, _] = f(null), [v, y] = f(null), [b, S] = f(null), C = d(null), E = d(new m.Value(0)).current, D = e.find((e) => e.value === t), O = () => {
3082
+ a || h(!0);
3083
+ }, A = () => h(!1), j = (e) => {
3084
+ e.disabled || (n?.(e.value), A());
3085
+ };
3086
+ return c(() => {
3087
+ if (!p) {
3088
+ _(null), y(null), S(null);
3089
+ return;
3090
+ }
3091
+ C.current?.measureInWindow((e, t, n, r) => {
3092
+ _({
3093
+ x: e,
3094
+ y: t,
3095
+ width: n,
3096
+ height: r
3097
+ });
3098
+ });
3099
+ }, [p]), c(() => {
3100
+ g === null || v === null || S(Yt(g, v));
3101
+ }, [g, v]), c(() => {
3102
+ if (b) {
3103
+ if (u) {
3104
+ E.setValue(1);
3105
+ return;
3106
+ }
3107
+ E.setValue(0), m.timing(E, {
3108
+ toValue: 1,
3109
+ duration: l.durationFast,
3110
+ useNativeDriver: !0
3111
+ }).start();
3112
+ }
3113
+ }, [
3114
+ b,
3115
+ u,
3116
+ E,
3117
+ l.durationFast
3118
+ ]), /* @__PURE__ */ N(k, {
3119
+ style: o,
3120
+ children: [/* @__PURE__ */ N(w, {
3121
+ ref: C,
3122
+ testID: s,
3123
+ role: "combobox",
3124
+ accessibilityLabel: i,
3125
+ accessibilityState: {
2281
3126
  expanded: p,
2282
3127
  disabled: !!a
2283
3128
  },
2284
3129
  disabled: a,
2285
- onPress: () => p ? A() : k(),
3130
+ onPress: () => p ? A() : O(),
2286
3131
  style: ({ pressed: e }) => ({
2287
3132
  flexDirection: "row",
2288
3133
  alignItems: "center",
@@ -2298,7 +3143,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2298
3143
  borderRadius: l.radiusMd,
2299
3144
  opacity: a ? l.opacityDisabled : 1
2300
3145
  }),
2301
- children: [/* @__PURE__ */ j(H, {
3146
+ children: [/* @__PURE__ */ M(K, {
2302
3147
  numberOfLines: 1,
2303
3148
  style: {
2304
3149
  flex: 1,
@@ -2307,31 +3152,31 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2307
3152
  opacity: D ? 1 : l.opacityDim
2308
3153
  },
2309
3154
  children: D?.label ?? r
2310
- }), /* @__PURE__ */ j(W, {
2311
- icon: te,
3155
+ }), /* @__PURE__ */ M(q, {
3156
+ icon: ae,
2312
3157
  size: "md",
2313
3158
  color: "default",
2314
3159
  style: { transform: [{ rotate: p ? "180deg" : "0deg" }] }
2315
3160
  })]
2316
- }), /* @__PURE__ */ j(b, {
3161
+ }), /* @__PURE__ */ M(x, {
2317
3162
  visible: p,
2318
3163
  transparent: !0,
2319
3164
  animationType: "none",
2320
3165
  statusBarTranslucent: !0,
2321
- children: /* @__PURE__ */ j(C, {
3166
+ children: /* @__PURE__ */ M(w, {
2322
3167
  onPress: A,
2323
3168
  accessible: !1,
2324
3169
  style: { flex: 1 },
2325
3170
  testID: s ? `${s}-backdrop` : void 0,
2326
- children: /* @__PURE__ */ j(m.View, {
3171
+ children: /* @__PURE__ */ M(m.View, {
2327
3172
  onLayout: (e) => {
2328
- y(Math.min(e.nativeEvent.layout.height, lt));
3173
+ y(Math.min(e.nativeEvent.layout.height, Jt));
2329
3174
  },
2330
3175
  role: "list",
2331
3176
  accessible: !0,
2332
3177
  style: [{
2333
3178
  position: "absolute",
2334
- maxHeight: lt,
3179
+ maxHeight: Jt,
2335
3180
  backgroundColor: l.popoverBgColor,
2336
3181
  borderWidth: 1,
2337
3182
  borderColor: l.cardShadeColor,
@@ -2345,10 +3190,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2345
3190
  shadowOpacity: .15,
2346
3191
  shadowRadius: 12,
2347
3192
  elevation: 6
2348
- }, x ? {
2349
- top: x.top,
2350
- left: x.left,
2351
- width: x.width,
3193
+ }, b ? {
3194
+ top: b.top,
3195
+ left: b.left,
3196
+ width: b.width,
2352
3197
  opacity: E
2353
3198
  } : {
2354
3199
  top: -9999,
@@ -2356,18 +3201,18 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2356
3201
  width: 200,
2357
3202
  opacity: 0
2358
3203
  }],
2359
- children: /* @__PURE__ */ j(w, {
3204
+ children: /* @__PURE__ */ M(T, {
2360
3205
  bounces: !1,
2361
3206
  children: e.map((e) => {
2362
3207
  let n = e.value === t;
2363
- return /* @__PURE__ */ M(C, {
3208
+ return /* @__PURE__ */ N(w, {
2364
3209
  role: "option",
2365
3210
  accessibilityState: {
2366
3211
  selected: n,
2367
3212
  disabled: !!e.disabled
2368
3213
  },
2369
3214
  disabled: e.disabled,
2370
- onPress: () => ee(e),
3215
+ onPress: () => j(e),
2371
3216
  style: ({ pressed: t }) => ({
2372
3217
  flexDirection: "row",
2373
3218
  alignItems: "center",
@@ -2378,12 +3223,12 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2378
3223
  backgroundColor: t ? l.activeOverlay : "transparent",
2379
3224
  opacity: e.disabled ? l.opacityDisabled : 1
2380
3225
  }),
2381
- children: [/* @__PURE__ */ M(O, {
3226
+ children: [/* @__PURE__ */ N(k, {
2382
3227
  style: {
2383
3228
  flex: 1,
2384
3229
  gap: 1
2385
3230
  },
2386
- children: [/* @__PURE__ */ j(H, {
3231
+ children: [/* @__PURE__ */ M(K, {
2387
3232
  numberOfLines: 1,
2388
3233
  style: {
2389
3234
  fontSize: l.fontSizeBody,
@@ -2391,7 +3236,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2391
3236
  fontWeight: n ? String(l.fontWeightSemibold) : void 0
2392
3237
  },
2393
3238
  children: e.label
2394
- }), e.description && /* @__PURE__ */ j(H, {
3239
+ }), e.description && /* @__PURE__ */ M(K, {
2395
3240
  numberOfLines: 1,
2396
3241
  style: {
2397
3242
  fontSize: l.fontSizeCaption,
@@ -2400,8 +3245,8 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2400
3245
  },
2401
3246
  children: e.description
2402
3247
  })]
2403
- }), n && /* @__PURE__ */ j(W, {
2404
- icon: N,
3248
+ }), n && /* @__PURE__ */ M(q, {
3249
+ icon: I,
2405
3250
  size: "md",
2406
3251
  color: "blue"
2407
3252
  })]
@@ -2412,9 +3257,275 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2412
3257
  })
2413
3258
  })]
2414
3259
  });
2415
- }, ft = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
2416
- let s = B();
2417
- return /* @__PURE__ */ M(O, {
3260
+ }, Zt = ({ label: e, children: t, expanded: n, defaultExpanded: r = !1, onExpandedChange: i, disabled: a = !1, style: o, testID: s }) => {
3261
+ let l = W(), u = G(), p = n !== void 0, [h, g] = f(r), v = p ? n : h, [y, b] = f(0), x = d(!1), S = d(new m.Value(0)).current, C = d(new m.Value(+!!r)).current, T = () => {
3262
+ if (a) return;
3263
+ let e = !v;
3264
+ p || g(e), i?.(e);
3265
+ }, E = (e) => {
3266
+ let t = e.nativeEvent.layout.height;
3267
+ if (t === y) {
3268
+ x.current = !0;
3269
+ return;
3270
+ }
3271
+ v && !x.current && S.setValue(t), x.current = !0, b(t);
3272
+ };
3273
+ c(() => {
3274
+ let [e, t, n, r] = l.easingDefault, i = _.bezier(e, t, n, r), a = v ? y : 0;
3275
+ if (u) {
3276
+ S.setValue(a), C.setValue(+!!v);
3277
+ return;
3278
+ }
3279
+ m.parallel([m.timing(S, {
3280
+ toValue: a,
3281
+ duration: l.durationNormal,
3282
+ easing: i,
3283
+ useNativeDriver: !1
3284
+ }), m.timing(C, {
3285
+ toValue: +!!v,
3286
+ duration: l.durationFast,
3287
+ easing: i,
3288
+ useNativeDriver: !0
3289
+ })]).start();
3290
+ }, [
3291
+ v,
3292
+ y,
3293
+ u,
3294
+ S,
3295
+ C,
3296
+ l.durationNormal,
3297
+ l.durationFast,
3298
+ l.easingDefault
3299
+ ]);
3300
+ let D = v && !x.current, O = C.interpolate({
3301
+ inputRange: [0, 1],
3302
+ outputRange: ["0deg", "90deg"]
3303
+ });
3304
+ return /* @__PURE__ */ N(k, {
3305
+ testID: s,
3306
+ style: [{ width: "100%" }, o],
3307
+ children: [/* @__PURE__ */ N(w, {
3308
+ role: "button",
3309
+ disabled: a,
3310
+ accessibilityState: {
3311
+ expanded: v,
3312
+ disabled: a
3313
+ },
3314
+ onPress: T,
3315
+ style: ({ pressed: e }) => ({
3316
+ flexDirection: "row",
3317
+ alignItems: "center",
3318
+ alignSelf: "flex-start",
3319
+ gap: l.space2,
3320
+ padding: l.space1,
3321
+ margin: -l.space1,
3322
+ borderRadius: l.radiusSm,
3323
+ backgroundColor: e ? l.activeOverlay : "transparent",
3324
+ opacity: a ? l.opacityDisabled : 1
3325
+ }),
3326
+ children: [/* @__PURE__ */ M(m.View, {
3327
+ style: {
3328
+ opacity: .55,
3329
+ transform: [{ rotate: O }]
3330
+ },
3331
+ children: /* @__PURE__ */ M(q, {
3332
+ icon: oe,
3333
+ size: "md"
3334
+ })
3335
+ }), typeof e == "string" ? /* @__PURE__ */ M(K, {
3336
+ style: { color: l.windowFgColor },
3337
+ children: e
3338
+ }) : e]
3339
+ }), /* @__PURE__ */ M(m.View, {
3340
+ style: {
3341
+ height: D ? void 0 : S,
3342
+ overflow: "hidden"
3343
+ },
3344
+ accessibilityElementsHidden: !v,
3345
+ importantForAccessibility: v ? "yes" : "no",
3346
+ children: /* @__PURE__ */ M(k, {
3347
+ accessible: !0,
3348
+ role: "region",
3349
+ onLayout: E,
3350
+ style: { paddingTop: l.space2 },
3351
+ children: t
3352
+ })
3353
+ })]
3354
+ });
3355
+ }, Qt = {
3356
+ folder: te,
3357
+ image: re,
3358
+ audio: F,
3359
+ video: ue,
3360
+ text: le,
3361
+ pdf: z,
3362
+ archive: ie,
3363
+ document: de,
3364
+ spreadsheet: pe,
3365
+ presentation: fe,
3366
+ font: ne,
3367
+ executable: P,
3368
+ unknown: le
3369
+ }, $t = {
3370
+ folder: "Folder",
3371
+ image: "Image file",
3372
+ audio: "Audio file",
3373
+ video: "Video file",
3374
+ text: "Text file",
3375
+ pdf: "PDF document",
3376
+ archive: "Archive",
3377
+ document: "Document",
3378
+ spreadsheet: "Spreadsheet",
3379
+ presentation: "Presentation",
3380
+ font: "Font file",
3381
+ executable: "Executable",
3382
+ unknown: "File"
3383
+ }, en = {
3384
+ png: "image",
3385
+ jpg: "image",
3386
+ jpeg: "image",
3387
+ gif: "image",
3388
+ webp: "image",
3389
+ svg: "image",
3390
+ bmp: "image",
3391
+ ico: "image",
3392
+ tiff: "image",
3393
+ heic: "image",
3394
+ mp3: "audio",
3395
+ wav: "audio",
3396
+ ogg: "audio",
3397
+ flac: "audio",
3398
+ m4a: "audio",
3399
+ aac: "audio",
3400
+ mp4: "video",
3401
+ mov: "video",
3402
+ avi: "video",
3403
+ mkv: "video",
3404
+ webm: "video",
3405
+ m4v: "video",
3406
+ pdf: "pdf",
3407
+ zip: "archive",
3408
+ tar: "archive",
3409
+ gz: "archive",
3410
+ rar: "archive",
3411
+ "7z": "archive",
3412
+ xz: "archive",
3413
+ doc: "document",
3414
+ docx: "document",
3415
+ odt: "document",
3416
+ rtf: "document",
3417
+ xls: "spreadsheet",
3418
+ xlsx: "spreadsheet",
3419
+ ods: "spreadsheet",
3420
+ csv: "spreadsheet",
3421
+ ppt: "presentation",
3422
+ pptx: "presentation",
3423
+ odp: "presentation",
3424
+ ttf: "font",
3425
+ otf: "font",
3426
+ woff: "font",
3427
+ woff2: "font",
3428
+ exe: "executable",
3429
+ app: "executable",
3430
+ sh: "executable",
3431
+ bin: "executable",
3432
+ txt: "text",
3433
+ md: "text",
3434
+ log: "text",
3435
+ json: "text",
3436
+ yaml: "text",
3437
+ yml: "text",
3438
+ toml: "text",
3439
+ xml: "text",
3440
+ html: "text",
3441
+ css: "text",
3442
+ js: "text",
3443
+ jsx: "text",
3444
+ ts: "text",
3445
+ tsx: "text",
3446
+ py: "text",
3447
+ rb: "text",
3448
+ go: "text",
3449
+ rs: "text",
3450
+ c: "text",
3451
+ cpp: "text",
3452
+ h: "text",
3453
+ java: "text",
3454
+ sql: "text"
3455
+ }, tn = {
3456
+ image: "image",
3457
+ audio: "audio",
3458
+ video: "video",
3459
+ text: "text",
3460
+ font: "font"
3461
+ }, nn = {
3462
+ pdf: "pdf",
3463
+ zip: "archive",
3464
+ gzip: "archive",
3465
+ "x-tar": "archive",
3466
+ "x-7z-compressed": "archive",
3467
+ "x-rar-compressed": "archive",
3468
+ "vnd.rar": "archive",
3469
+ msword: "document",
3470
+ "vnd.openxmlformats-officedocument.wordprocessingml.document": "document",
3471
+ "vnd.oasis.opendocument.text": "document",
3472
+ "vnd.ms-excel": "spreadsheet",
3473
+ "vnd.openxmlformats-officedocument.spreadsheetml.sheet": "spreadsheet",
3474
+ "vnd.oasis.opendocument.spreadsheet": "spreadsheet",
3475
+ "vnd.ms-powerpoint": "presentation",
3476
+ "vnd.openxmlformats-officedocument.presentationml.presentation": "presentation",
3477
+ "vnd.oasis.opendocument.presentation": "presentation",
3478
+ "x-sh": "executable",
3479
+ "x-executable": "executable"
3480
+ };
3481
+ function rn(e) {
3482
+ let t = e.trim().toLowerCase();
3483
+ if (t === "inode/directory") return "folder";
3484
+ let [n, r] = t.split("/");
3485
+ return r && nn[r] ? nn[r] : tn[n] ?? null;
3486
+ }
3487
+ function an(e) {
3488
+ let t = e.trim().replace(/^\.+/, ""), n = t.lastIndexOf(".");
3489
+ return n <= 0 ? null : en[t.slice(n + 1).toLowerCase()] ?? null;
3490
+ }
3491
+ function on(e) {
3492
+ return Qt[e];
3493
+ }
3494
+ function sn(e) {
3495
+ return $t[e];
3496
+ }
3497
+ //#endregion
3498
+ //#region src/components/FileTypeIcon/FileTypeIcon.tsx
3499
+ var cn = ({ name: e, mimeType: t, isFolder: n = !1, thumbnail: r, label: i, size: a = "md", style: o, testID: s }) => {
3500
+ let c = W(), l = We[a], u = n ? "folder" : t && rn(t) || e && an(e) || "unknown";
3501
+ return /* @__PURE__ */ M(k, {
3502
+ testID: s,
3503
+ accessible: !0,
3504
+ role: "img",
3505
+ accessibilityLabel: i ?? sn(u),
3506
+ style: [{
3507
+ width: l,
3508
+ height: l,
3509
+ alignItems: "center",
3510
+ justifyContent: "center"
3511
+ }, o],
3512
+ children: r ? /* @__PURE__ */ M(y, {
3513
+ testID: s ? `${s}-thumbnail` : void 0,
3514
+ source: { uri: r },
3515
+ resizeMode: "cover",
3516
+ style: {
3517
+ width: l,
3518
+ height: l,
3519
+ borderRadius: c.radiusSm
3520
+ }
3521
+ }) : /* @__PURE__ */ M(q, {
3522
+ icon: on(u),
3523
+ size: a
3524
+ })
3525
+ });
3526
+ }, ln = i(function({ title: e, start: t, end: n, flat: r = !1, style: i, ...a }, o) {
3527
+ let s = W();
3528
+ return /* @__PURE__ */ N(k, {
2418
3529
  ref: o,
2419
3530
  style: [{
2420
3531
  flexDirection: "row",
@@ -2428,7 +3539,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2428
3539
  }, i],
2429
3540
  ...a,
2430
3541
  children: [
2431
- /* @__PURE__ */ j(O, {
3542
+ /* @__PURE__ */ M(k, {
2432
3543
  style: {
2433
3544
  flex: 1,
2434
3545
  flexDirection: "row",
@@ -2437,14 +3548,14 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2437
3548
  },
2438
3549
  children: t
2439
3550
  }),
2440
- /* @__PURE__ */ j(O, {
3551
+ /* @__PURE__ */ M(k, {
2441
3552
  accessibilityLiveRegion: "polite",
2442
3553
  style: {
2443
3554
  alignItems: "center",
2444
3555
  justifyContent: "center",
2445
3556
  paddingHorizontal: s.space1
2446
3557
  },
2447
- children: typeof e == "string" ? /* @__PURE__ */ j(E, {
3558
+ children: typeof e == "string" ? /* @__PURE__ */ M(D, {
2448
3559
  numberOfLines: 1,
2449
3560
  ellipsizeMode: "tail",
2450
3561
  style: {
@@ -2457,7 +3568,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2457
3568
  children: e
2458
3569
  }) : e
2459
3570
  }),
2460
- /* @__PURE__ */ j(O, {
3571
+ /* @__PURE__ */ M(k, {
2461
3572
  style: {
2462
3573
  flex: 1,
2463
3574
  flexDirection: "row",
@@ -2469,22 +3580,124 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2469
3580
  })
2470
3581
  ]
2471
3582
  });
2472
- }), pt = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
2473
- let c = B();
2474
- return /* @__PURE__ */ j(C, {
3583
+ });
3584
+ //#endregion
3585
+ //#region src/components/Highlight/Highlight.tsx
3586
+ function un(e) {
3587
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3588
+ }
3589
+ var dn = ({ text: e, query: t, caseSensitive: n = !1, ...r }) => {
3590
+ let i = W(), a = U(), o = (Array.isArray(t) ? t : [t]).map((e) => e.trim()).filter(Boolean);
3591
+ if (o.length === 0) return /* @__PURE__ */ M(K, {
3592
+ ...r,
3593
+ children: e
3594
+ });
3595
+ let s = RegExp(`(${o.map(un).join("|")})`, n ? "g" : "gi"), c = e.split(s), l = {
3596
+ fontWeight: String(i.fontWeightSemibold),
3597
+ ...a === "more" ? {
3598
+ backgroundColor: i.accentBgColor,
3599
+ color: "#fff"
3600
+ } : { backgroundColor: `${i.accentBgColor}4D` }
3601
+ };
3602
+ return /* @__PURE__ */ M(K, {
3603
+ ...r,
3604
+ children: c.map((e, t) => t % 2 == 1 ? /* @__PURE__ */ M(D, {
3605
+ style: l,
3606
+ children: e
3607
+ }, t) : e)
3608
+ });
3609
+ };
3610
+ //#endregion
3611
+ //#region src/components/LevelBar/LevelBar.tsx
3612
+ function fn(e, t, n, r, i, a) {
3613
+ return t !== void 0 && e <= t ? n : r !== void 0 && e >= r ? i : a;
3614
+ }
3615
+ function pn(e, t) {
3616
+ switch (t) {
3617
+ case "accent": return e.accentBgColor;
3618
+ case "success": return e.successBgColor;
3619
+ case "warning": return e.warningBgColor;
3620
+ case "error": return e.errorBgColor;
3621
+ }
3622
+ }
3623
+ var mn = ({ value: e, min: t = 0, max: n = 1, low: r, lowVariant: i = "warning", high: a, highVariant: o = "error", variant: s = "accent", discrete: l = !1, numBlocks: u = 10, accessibilityLabel: f, style: p, testID: h }) => {
3624
+ let g = W(), v = H(), y = G(), b = n - t, x = Math.min(n, Math.max(t, e)), S = b > 0 ? (x - t) / b : 0, C = fn(x, r, i, a, o, s), w = d(new m.Value(S)).current;
3625
+ c(() => {
3626
+ if (l) return;
3627
+ let [e, t, n, r] = g.easingDefault;
3628
+ m.timing(w, {
3629
+ toValue: S,
3630
+ duration: y ? 0 : g.durationNormal,
3631
+ easing: _.bezier(e, t, n, r),
3632
+ useNativeDriver: !0
3633
+ }).start();
3634
+ }, [
3635
+ S,
3636
+ l,
3637
+ y,
3638
+ w,
3639
+ g.durationNormal,
3640
+ g.easingDefault
3641
+ ]);
3642
+ let T = v === "dark" ? g.dark2 : g.light3;
3643
+ return /* @__PURE__ */ M(k, {
3644
+ testID: h,
3645
+ accessible: !0,
3646
+ role: "meter",
3647
+ accessibilityLabel: f,
3648
+ accessibilityValue: {
3649
+ min: t,
3650
+ max: n,
3651
+ now: x
3652
+ },
3653
+ style: [{
3654
+ flexDirection: "row",
3655
+ width: "100%",
3656
+ height: 6,
3657
+ borderRadius: l ? 0 : g.radiusPill,
3658
+ backgroundColor: l ? "transparent" : T,
3659
+ overflow: l ? "visible" : "hidden",
3660
+ gap: l ? 2 : 0
3661
+ }, p],
3662
+ children: l ? Array.from({ length: u }, (e, t) => /* @__PURE__ */ M(k, {
3663
+ testID: "level-bar-block",
3664
+ accessibilityElementsHidden: !0,
3665
+ importantForAccessibility: "no",
3666
+ style: {
3667
+ flex: 1,
3668
+ height: "100%",
3669
+ minWidth: 2,
3670
+ borderRadius: 1,
3671
+ backgroundColor: (t + 1) / u <= S ? pn(g, C) : T
3672
+ }
3673
+ }, t)) : /* @__PURE__ */ M(m.View, {
3674
+ testID: h ? `${h}-fill` : void 0,
3675
+ style: {
3676
+ width: "100%",
3677
+ height: "100%",
3678
+ borderRadius: g.radiusPill,
3679
+ backgroundColor: pn(g, C),
3680
+ transformOrigin: "left",
3681
+ transform: [{ scaleX: w }]
3682
+ }
3683
+ })
3684
+ });
3685
+ }, hn = i(function({ href: e, external: t = !1, children: n, style: r, textStyle: i, onPress: a, ...o }, s) {
3686
+ let c = W();
3687
+ return /* @__PURE__ */ M(w, {
2475
3688
  ref: s,
2476
3689
  accessibilityRole: "link",
2477
3690
  accessibilityHint: t ? "Opens in browser" : void 0,
2478
- onPress: a ?? (() => y.openURL(e)),
3691
+ onPress: a ?? (() => b.openURL(e)),
2479
3692
  style: r,
2480
3693
  ...o,
2481
- children: ({ pressed: e }) => /* @__PURE__ */ M(H, {
3694
+ children: ({ pressed: e }) => /* @__PURE__ */ N(K, {
2482
3695
  style: [{
2483
3696
  color: c.accentColor,
2484
3697
  textDecorationLine: e ? "underline" : "none",
2485
3698
  opacity: e ? .7 : 1
2486
3699
  }, i],
2487
- children: [n, t && /* @__PURE__ */ j(E, {
3700
+ children: [n, t && /* @__PURE__ */ M(D, {
2488
3701
  accessibilityElementsHidden: !0,
2489
3702
  importantForAccessibility: "no",
2490
3703
  style: { fontSize: 12 },
@@ -2492,9 +3705,66 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2492
3705
  })]
2493
3706
  })
2494
3707
  });
2495
- }), mt = ({ segments: e, onNavigate: n, style: r, ...i }) => {
2496
- let a = B();
2497
- return /* @__PURE__ */ j(O, {
3708
+ }), gn = m.createAnimatedComponent(w), _n = ({ open: e, onDismiss: t, children: n, style: r, testID: i }) => {
3709
+ let a = W(), o = G(), [s, l] = f(e), u = d(new m.Value(+!!e)).current;
3710
+ return c(() => {
3711
+ e && l(!0);
3712
+ }, [e]), c(() => {
3713
+ if (s) if (e) {
3714
+ if (o) {
3715
+ u.setValue(1);
3716
+ return;
3717
+ }
3718
+ u.setValue(0), m.timing(u, {
3719
+ toValue: 1,
3720
+ duration: a.durationNormal,
3721
+ useNativeDriver: !0
3722
+ }).start();
3723
+ } else {
3724
+ if (o) {
3725
+ l(!1);
3726
+ return;
3727
+ }
3728
+ m.timing(u, {
3729
+ toValue: 0,
3730
+ duration: a.durationNormal,
3731
+ useNativeDriver: !0
3732
+ }).start(({ finished: e }) => {
3733
+ e && l(!1);
3734
+ });
3735
+ }
3736
+ }, [
3737
+ e,
3738
+ s,
3739
+ o,
3740
+ u,
3741
+ a.durationNormal
3742
+ ]), s ? /* @__PURE__ */ M(x, {
3743
+ visible: s,
3744
+ transparent: !0,
3745
+ animationType: "none",
3746
+ statusBarTranslucent: !0,
3747
+ children: /* @__PURE__ */ M(gn, {
3748
+ testID: i,
3749
+ onPress: t,
3750
+ accessible: !1,
3751
+ style: [{
3752
+ flex: 1,
3753
+ alignItems: "center",
3754
+ justifyContent: "center",
3755
+ backgroundColor: a.dialogBackdropColor,
3756
+ opacity: u
3757
+ }, r],
3758
+ children: /* @__PURE__ */ M(w, {
3759
+ onPress: () => {},
3760
+ accessible: !1,
3761
+ children: n
3762
+ })
3763
+ })
3764
+ }) : null;
3765
+ }, vn = ({ segments: e, onNavigate: n, style: r, ...i }) => {
3766
+ let a = W();
3767
+ return /* @__PURE__ */ M(k, {
2498
3768
  style: [{
2499
3769
  flexDirection: "row",
2500
3770
  flexWrap: "wrap",
@@ -2503,7 +3773,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2503
3773
  ...i,
2504
3774
  children: e.map((r, i) => {
2505
3775
  let o = i === e.length - 1;
2506
- return /* @__PURE__ */ M(t, { children: [i > 0 && /* @__PURE__ */ j(E, {
3776
+ return /* @__PURE__ */ N(t, { children: [i > 0 && /* @__PURE__ */ M(D, {
2507
3777
  accessibilityElementsHidden: !0,
2508
3778
  importantForAccessibility: "no",
2509
3779
  style: {
@@ -2513,7 +3783,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2513
3783
  fontSize: a.fontSizeBody
2514
3784
  },
2515
3785
  children: "›"
2516
- }), o ? /* @__PURE__ */ M(O, {
3786
+ }), o ? /* @__PURE__ */ N(k, {
2517
3787
  style: {
2518
3788
  flexDirection: "row",
2519
3789
  alignItems: "center",
@@ -2522,10 +3792,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2522
3792
  paddingHorizontal: a.space1,
2523
3793
  maxWidth: 200
2524
3794
  },
2525
- children: [r.icon && /* @__PURE__ */ j(O, {
3795
+ children: [r.icon && /* @__PURE__ */ M(k, {
2526
3796
  style: { flexShrink: 0 },
2527
3797
  children: r.icon
2528
- }), /* @__PURE__ */ j(E, {
3798
+ }), /* @__PURE__ */ M(D, {
2529
3799
  numberOfLines: 1,
2530
3800
  ellipsizeMode: "tail",
2531
3801
  style: {
@@ -2536,7 +3806,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2536
3806
  },
2537
3807
  children: r.label
2538
3808
  })]
2539
- }) : /* @__PURE__ */ M(C, {
3809
+ }) : /* @__PURE__ */ N(w, {
2540
3810
  accessibilityRole: "button",
2541
3811
  accessibilityLabel: r.label,
2542
3812
  onPress: () => n?.(r.path, i),
@@ -2550,10 +3820,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2550
3820
  borderRadius: a.radiusSm,
2551
3821
  backgroundColor: e ? a.activeOverlay : "transparent"
2552
3822
  }),
2553
- children: [r.icon && /* @__PURE__ */ j(O, {
3823
+ children: [r.icon && /* @__PURE__ */ M(k, {
2554
3824
  style: { flexShrink: 0 },
2555
3825
  children: r.icon
2556
- }), /* @__PURE__ */ j(E, {
3826
+ }), /* @__PURE__ */ M(D, {
2557
3827
  numberOfLines: 1,
2558
3828
  ellipsizeMode: "tail",
2559
3829
  style: {
@@ -2561,13 +3831,217 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2561
3831
  fontSize: a.fontSizeBody,
2562
3832
  color: a.windowFgColor
2563
3833
  },
2564
- children: r.label
2565
- })]
2566
- })] }, r.path);
3834
+ children: r.label
3835
+ })]
3836
+ })] }, r.path);
3837
+ })
3838
+ });
3839
+ }, Z = 8, Q = 10, yn = 6;
3840
+ function bn(e, t) {
3841
+ if (e) {
3842
+ if (typeof e == "function") {
3843
+ e(t);
3844
+ return;
3845
+ }
3846
+ e.current = t;
3847
+ }
3848
+ }
3849
+ function xn(e, t, n) {
3850
+ switch (n) {
3851
+ case "top": return {
3852
+ top: e.y - t.height - Z,
3853
+ left: e.x + e.width / 2 - t.width / 2
3854
+ };
3855
+ case "bottom": return {
3856
+ top: e.y + e.height + Z,
3857
+ left: e.x + e.width / 2 - t.width / 2
3858
+ };
3859
+ case "left": return {
3860
+ top: e.y + e.height / 2 - t.height / 2,
3861
+ left: e.x - t.width - Z
3862
+ };
3863
+ case "right": return {
3864
+ top: e.y + e.height / 2 - t.height / 2,
3865
+ left: e.x + e.width + Z
3866
+ };
3867
+ }
3868
+ }
3869
+ function Sn(e, t, n) {
3870
+ let { width: r, height: i } = g.get("window"), a = [
3871
+ n,
3872
+ n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
3873
+ "bottom",
3874
+ "top",
3875
+ "left",
3876
+ "right"
3877
+ ];
3878
+ for (let n of a) {
3879
+ let { top: a, left: o } = xn(e, t, n), s = o >= Q && o + t.width <= r - Q, c = a >= Q && a + t.height <= i - Q;
3880
+ if (s && c) return {
3881
+ top: Math.max(Q, Math.min(a, i - t.height - Q)),
3882
+ left: Math.max(Q, Math.min(o, r - t.width - Q)),
3883
+ placement: n
3884
+ };
3885
+ }
3886
+ let { top: o, left: s } = xn(e, t, n);
3887
+ return {
3888
+ top: Math.max(Q, Math.min(o, i - t.height - Q)),
3889
+ left: Math.max(Q, Math.min(s, r - t.width - Q)),
3890
+ placement: n
3891
+ };
3892
+ }
3893
+ var Cn = ({ content: e, placement: t = "bottom", open: r, onOpenChange: i, panelStyle: a, children: s }) => {
3894
+ let l = W(), u = G(), p = r !== void 0, [g, _] = f(!1), v = p ? r : g, [y, b] = f(null), [S, C] = f(null), [T, E] = f(null), D = d(null), O = d(new m.Value(0)).current, A = o((e) => {
3895
+ p || _(e), i?.(e);
3896
+ }, [p, i]), P = o(() => A(!1), [A]), F = o(() => A(!v), [v, A]);
3897
+ c(() => {
3898
+ if (!v) {
3899
+ b(null), C(null), E(null);
3900
+ return;
3901
+ }
3902
+ D.current?.measureInWindow((e, t, n, r) => {
3903
+ b({
3904
+ x: e,
3905
+ y: t,
3906
+ width: n,
3907
+ height: r
3908
+ });
3909
+ });
3910
+ }, [v]), c(() => {
3911
+ !y || !S || E(Sn(y, S, t));
3912
+ }, [
3913
+ y,
3914
+ S,
3915
+ t
3916
+ ]), c(() => {
3917
+ if (T) {
3918
+ if (u) {
3919
+ O.setValue(1);
3920
+ return;
3921
+ }
3922
+ O.setValue(0), m.timing(O, {
3923
+ toValue: 1,
3924
+ duration: l.durationFast,
3925
+ useNativeDriver: !0
3926
+ }).start();
3927
+ }
3928
+ }, [
3929
+ T,
3930
+ u,
3931
+ O,
3932
+ l.durationFast
3933
+ ]), c(() => {
3934
+ if (!v) return;
3935
+ let e = h.addEventListener("hardwareBackPress", () => (P(), !0));
3936
+ return () => e.remove();
3937
+ }, [v, P]);
3938
+ let I = (e) => {
3939
+ let { width: t, height: n } = e.nativeEvent.layout;
3940
+ C({
3941
+ width: t,
3942
+ height: n
3943
+ });
3944
+ }, L = {
3945
+ position: "absolute",
3946
+ width: 0,
3947
+ height: 0,
3948
+ borderWidth: yn,
3949
+ borderColor: "transparent"
3950
+ }, R = (() => {
3951
+ switch (T?.placement) {
3952
+ case "top": return {
3953
+ ...L,
3954
+ top: "100%",
3955
+ left: "50%",
3956
+ marginLeft: -6,
3957
+ borderTopColor: l.popoverBgColor
3958
+ };
3959
+ case "bottom": return {
3960
+ ...L,
3961
+ bottom: "100%",
3962
+ left: "50%",
3963
+ marginLeft: -6,
3964
+ borderBottomColor: l.popoverBgColor
3965
+ };
3966
+ case "left": return {
3967
+ ...L,
3968
+ left: "100%",
3969
+ top: "50%",
3970
+ marginTop: -6,
3971
+ borderLeftColor: l.popoverBgColor
3972
+ };
3973
+ case "right": return {
3974
+ ...L,
3975
+ right: "100%",
3976
+ top: "50%",
3977
+ marginTop: -6,
3978
+ borderRightColor: l.popoverBgColor
3979
+ };
3980
+ default: return null;
3981
+ }
3982
+ })(), z = s.props.ref;
3983
+ return /* @__PURE__ */ N(j, { children: [n(s, {
3984
+ ref: (e) => {
3985
+ D.current = e, bn(z, e);
3986
+ },
3987
+ accessibilityState: {
3988
+ expanded: v,
3989
+ ...s.props.accessibilityState
3990
+ },
3991
+ onPress: (e) => {
3992
+ F(), s.props.onPress?.(e);
3993
+ }
3994
+ }), /* @__PURE__ */ M(x, {
3995
+ visible: v,
3996
+ transparent: !0,
3997
+ animationType: "none",
3998
+ statusBarTranslucent: !0,
3999
+ onRequestClose: P,
4000
+ children: /* @__PURE__ */ M(w, {
4001
+ onPress: P,
4002
+ accessible: !1,
4003
+ style: { flex: 1 },
4004
+ children: /* @__PURE__ */ N(m.View, {
4005
+ onLayout: I,
4006
+ role: "dialog",
4007
+ accessible: !0,
4008
+ onStartShouldSetResponder: () => !0,
4009
+ style: [
4010
+ {
4011
+ position: "absolute",
4012
+ minWidth: 180,
4013
+ maxWidth: 320,
4014
+ backgroundColor: l.popoverBgColor,
4015
+ borderWidth: 1,
4016
+ borderColor: l.cardShadeColor,
4017
+ borderRadius: l.radiusLg,
4018
+ padding: l.space2,
4019
+ shadowColor: "#000",
4020
+ shadowOffset: {
4021
+ width: 0,
4022
+ height: 4
4023
+ },
4024
+ shadowOpacity: .15,
4025
+ shadowRadius: 12,
4026
+ elevation: 6
4027
+ },
4028
+ T ? {
4029
+ top: T.top,
4030
+ left: T.left,
4031
+ opacity: O
4032
+ } : {
4033
+ top: -9999,
4034
+ left: -9999,
4035
+ opacity: 0
4036
+ },
4037
+ a
4038
+ ],
4039
+ children: [e, R && /* @__PURE__ */ M(k, { style: R })]
4040
+ })
2567
4041
  })
2568
- });
2569
- }, ht = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
2570
- let o = B(), s = R(), l = V(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
4042
+ })] });
4043
+ }, wn = ({ value: e, variant: t = "accent", accessibilityLabel: n, style: r, onLayout: i, ...a }) => {
4044
+ let o = W(), s = H(), l = G(), u = e == null, p = u ? void 0 : Math.min(1, Math.max(0, e)), h = p === void 0 ? void 0 : p * 100, g = d(new m.Value(p ?? 0)).current, v = d(new m.Value(0)).current, [y, b] = f(0), x = (e) => {
2571
4045
  b(e.nativeEvent.layout.width), i?.(e);
2572
4046
  };
2573
4047
  c(() => {
@@ -2623,7 +4097,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2623
4097
  transformOrigin: "left",
2624
4098
  transform: [{ scaleX: g }]
2625
4099
  };
2626
- return /* @__PURE__ */ j(m.View, {
4100
+ return /* @__PURE__ */ M(m.View, {
2627
4101
  accessible: !0,
2628
4102
  accessibilityRole: "progressbar",
2629
4103
  accessibilityLabel: n,
@@ -2641,7 +4115,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2641
4115
  overflow: "hidden"
2642
4116
  }, r],
2643
4117
  ...a,
2644
- children: /* @__PURE__ */ j(m.View, { style: [{
4118
+ children: /* @__PURE__ */ M(m.View, { style: [{
2645
4119
  position: u ? "absolute" : "relative",
2646
4120
  top: 0,
2647
4121
  height: "100%",
@@ -2649,8 +4123,8 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2649
4123
  backgroundColor: C[t]
2650
4124
  }, w] })
2651
4125
  });
2652
- }, gt = 18, _t = 6, vt = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
2653
- let o = B(), s = R(), l = z(), u = d(new m.Value(+!!e)).current, f = d(!0);
4126
+ }, Tn = 18, En = 6, Dn = i(function({ value: e, onSelect: t, disabled: n, style: r, ...i }, a) {
4127
+ let o = W(), s = H(), l = U(), u = d(new m.Value(+!!e)).current, f = d(!0);
2654
4128
  c(() => {
2655
4129
  if (f.current) {
2656
4130
  f.current = !1;
@@ -2676,7 +4150,7 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2676
4150
  inputRange: [0, 1],
2677
4151
  outputRange: [o.cardBgColor, o.accentBgColor]
2678
4152
  });
2679
- return /* @__PURE__ */ j(C, {
4153
+ return /* @__PURE__ */ M(w, {
2680
4154
  ref: a,
2681
4155
  disabled: n,
2682
4156
  accessibilityRole: "radio",
@@ -2689,10 +4163,10 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2689
4163
  },
2690
4164
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
2691
4165
  ...i,
2692
- children: /* @__PURE__ */ j(m.View, {
4166
+ children: /* @__PURE__ */ M(m.View, {
2693
4167
  style: {
2694
- width: gt,
2695
- height: gt,
4168
+ width: Tn,
4169
+ height: Tn,
2696
4170
  alignItems: "center",
2697
4171
  justifyContent: "center",
2698
4172
  borderRadius: o.radiusPill,
@@ -2700,9 +4174,9 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2700
4174
  borderColor: h,
2701
4175
  backgroundColor: g
2702
4176
  },
2703
- children: /* @__PURE__ */ j(m.View, { style: {
2704
- width: _t,
2705
- height: _t,
4177
+ children: /* @__PURE__ */ M(m.View, { style: {
4178
+ width: En,
4179
+ height: En,
2706
4180
  borderRadius: o.radiusPill,
2707
4181
  backgroundColor: "#fff",
2708
4182
  opacity: u
@@ -2712,29 +4186,29 @@ var dt = ({ options: e, value: t, onChange: n, placeholder: r = "Select an optio
2712
4186
  });
2713
4187
  //#endregion
2714
4188
  //#region src/components/SearchBar/SearchBar.tsx
2715
- function yt(e, t) {
4189
+ function On(e, t) {
2716
4190
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
2717
4191
  if (!n) return e;
2718
4192
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
2719
4193
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
2720
4194
  }
2721
- var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, placeholder: a = "Search…", editable: o = !0, inline: s = !1, closeLabel: u = "Cancel", style: f, inputStyle: p, ...m }, h) {
2722
- let g = B(), _ = d(null);
4195
+ var kn = 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) {
4196
+ let g = W(), _ = d(null);
2723
4197
  if (l(h, () => _.current, []), c(() => {
2724
4198
  if (!e) return;
2725
4199
  let t = requestAnimationFrame(() => _.current?.focus());
2726
4200
  return () => cancelAnimationFrame(t);
2727
4201
  }, [e]), !e) return null;
2728
4202
  let v = !o, y = typeof i == "string" && i.length > 0, b = s ? "transparent" : g.headerbarBgColor, x = s ? "transparent" : g.headerbarShadeColor;
2729
- return /* @__PURE__ */ M(O, {
4203
+ return /* @__PURE__ */ N(k, {
2730
4204
  style: f,
2731
- children: [/* @__PURE__ */ M(O, {
4205
+ children: [/* @__PURE__ */ N(k, {
2732
4206
  style: {
2733
4207
  flexDirection: "row",
2734
4208
  alignItems: "center",
2735
4209
  gap: g.space1
2736
4210
  },
2737
- children: [/* @__PURE__ */ M(O, {
4211
+ children: [/* @__PURE__ */ N(k, {
2738
4212
  style: {
2739
4213
  flex: 1,
2740
4214
  flexDirection: "row",
@@ -2748,7 +4222,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2748
4222
  opacity: v ? g.opacityDisabled : 1
2749
4223
  },
2750
4224
  children: [
2751
- /* @__PURE__ */ j(E, {
4225
+ /* @__PURE__ */ M(D, {
2752
4226
  accessibilityElementsHidden: !0,
2753
4227
  importantForAccessibility: "no",
2754
4228
  style: {
@@ -2757,12 +4231,12 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2757
4231
  },
2758
4232
  children: "🔍"
2759
4233
  }),
2760
- /* @__PURE__ */ j(D, {
4234
+ /* @__PURE__ */ M(O, {
2761
4235
  ref: _,
2762
4236
  editable: o,
2763
4237
  value: i,
2764
4238
  placeholder: a,
2765
- placeholderTextColor: yt(g.windowFgColor, g.opacityDim),
4239
+ placeholderTextColor: On(g.windowFgColor, g.opacityDim),
2766
4240
  style: [{
2767
4241
  flex: 1,
2768
4242
  padding: 0,
@@ -2773,7 +4247,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2773
4247
  }, p],
2774
4248
  ...m
2775
4249
  }),
2776
- y && /* @__PURE__ */ j(C, {
4250
+ y && /* @__PURE__ */ M(w, {
2777
4251
  accessibilityRole: "button",
2778
4252
  accessibilityLabel: "Clear search",
2779
4253
  disabled: v,
@@ -2790,7 +4264,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2790
4264
  opacity: v ? g.opacityDisabled : 1,
2791
4265
  backgroundColor: e ? g.activeOverlay : "transparent"
2792
4266
  }),
2793
- children: /* @__PURE__ */ j(E, {
4267
+ children: /* @__PURE__ */ M(D, {
2794
4268
  style: {
2795
4269
  fontSize: g.fontSizeBody,
2796
4270
  color: g.windowFgColor
@@ -2799,12 +4273,12 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2799
4273
  })
2800
4274
  })
2801
4275
  ]
2802
- }), t && /* @__PURE__ */ j(C, {
4276
+ }), t && /* @__PURE__ */ M(w, {
2803
4277
  accessibilityRole: "button",
2804
4278
  accessibilityLabel: u,
2805
4279
  onPress: t,
2806
4280
  hitSlop: 8,
2807
- children: /* @__PURE__ */ j(E, {
4281
+ children: /* @__PURE__ */ M(D, {
2808
4282
  style: {
2809
4283
  fontFamily: g.fontFamily,
2810
4284
  fontSize: g.fontSizeBody,
@@ -2813,7 +4287,7 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2813
4287
  children: u
2814
4288
  })
2815
4289
  })]
2816
- }), r && /* @__PURE__ */ j(O, {
4290
+ }), r && /* @__PURE__ */ M(k, {
2817
4291
  style: {
2818
4292
  flexDirection: "row",
2819
4293
  flexWrap: "wrap",
@@ -2827,35 +4301,84 @@ var bt = i(function({ open: e, onClose: t, onClear: n, children: r, value: i, pl
2827
4301
  children: r
2828
4302
  })]
2829
4303
  });
2830
- });
4304
+ }), An = 8;
4305
+ function jn(e, t) {
4306
+ switch (t % An) {
4307
+ case 0: return e.blue3;
4308
+ case 1: return e.green3;
4309
+ case 2: return e.purple3;
4310
+ case 3: return e.orange3;
4311
+ case 4: return e.red3;
4312
+ case 5: return e.brown3;
4313
+ case 6: return e.blue5;
4314
+ default: return e.green5;
4315
+ }
4316
+ }
4317
+ var Mn = ({ values: e, accessibilityLabel: t, style: n, testID: r }) => {
4318
+ let i = W(), a = H(), [o, s] = f(null), c = e.reduce((e, t) => e + t.value, 0) || 100, l = e.map((e) => `${e.label} ${e.value}%`).join(", "), u = a === "dark" ? i.dark2 : i.light3;
4319
+ return /* @__PURE__ */ M(k, {
4320
+ testID: r,
4321
+ accessible: !0,
4322
+ role: "img",
4323
+ accessibilityLabel: t ?? l,
4324
+ style: [{
4325
+ flexDirection: "row",
4326
+ width: "100%",
4327
+ height: 8,
4328
+ borderRadius: i.radiusPill,
4329
+ overflow: "hidden",
4330
+ gap: 2,
4331
+ backgroundColor: u
4332
+ }, n],
4333
+ children: e.map((e, t) => {
4334
+ let n = `${e.value / c * 100}%`, r = e.value % 1 == 0 ? e.value : e.value.toFixed(1);
4335
+ return /* @__PURE__ */ M(Lt, {
4336
+ label: `${e.label}: ${r}%`,
4337
+ placement: "top",
4338
+ delay: 200,
4339
+ children: /* @__PURE__ */ M(w, {
4340
+ testID: "segmented-bar-segment",
4341
+ onPressIn: () => s(t),
4342
+ onPressOut: () => s(null),
4343
+ style: {
4344
+ width: n,
4345
+ height: "100%",
4346
+ backgroundColor: e.color ?? jn(i, t),
4347
+ opacity: o !== null && o !== t ? .35 : 1
4348
+ }
4349
+ })
4350
+ }, e.label);
4351
+ })
4352
+ });
4353
+ };
2831
4354
  //#endregion
2832
4355
  //#region src/components/Sidebar/filterUtils.ts
2833
- function xt(t, n) {
4356
+ function Nn(t, n) {
2834
4357
  let r = 0;
2835
4358
  return e.forEach(t, (e) => {
2836
4359
  if (!a(e)) return;
2837
4360
  let t = e.props;
2838
- typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += xt(t.children, n));
4361
+ typeof t.label == "string" ? t.label.toLowerCase().includes(n.toLowerCase()) && r++ : t.children && (r += Nn(t.children, n));
2839
4362
  }), r;
2840
4363
  }
2841
- function St(e, t) {
4364
+ function Pn(e, t) {
2842
4365
  if (!t || !a(e)) return !0;
2843
4366
  let n = e.props;
2844
- return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? xt(n.children, t) > 0 : !0;
4367
+ return typeof n.label == "string" ? n.label.toLowerCase().includes(t.toLowerCase()) : n.children ? Nn(n.children, t) > 0 : !0;
2845
4368
  }
2846
4369
  //#endregion
2847
4370
  //#region src/components/Sidebar/Sidebar.tsx
2848
- var K = r(!1);
2849
- function Ct() {
2850
- return s(K);
4371
+ var Fn = r(!1);
4372
+ function In() {
4373
+ return s(Fn);
2851
4374
  }
2852
- var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
2853
- let c = B(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => St(e, i)), d = !l || u.length > 0;
2854
- return /* @__PURE__ */ j(K.Provider, {
4375
+ var Ln = r(""), Rn = i(function({ children: n, collapsed: r = !1, filter: i = "", style: a, ...o }, s) {
4376
+ let c = W(), l = i.length > 0, u = e.toArray(n).filter(Boolean).filter((e) => Pn(e, i)), d = !l || u.length > 0;
4377
+ return /* @__PURE__ */ M(Fn.Provider, {
2855
4378
  value: r,
2856
- children: /* @__PURE__ */ j(q.Provider, {
4379
+ children: /* @__PURE__ */ M(Ln.Provider, {
2857
4380
  value: i,
2858
- children: /* @__PURE__ */ j(O, {
4381
+ children: /* @__PURE__ */ M(k, {
2859
4382
  ref: s,
2860
4383
  style: [{
2861
4384
  flexShrink: 0,
@@ -2865,9 +4388,9 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2865
4388
  borderRightColor: c.headerbarBorderColor
2866
4389
  }, a],
2867
4390
  ...o,
2868
- children: /* @__PURE__ */ j(w, {
4391
+ children: /* @__PURE__ */ M(T, {
2869
4392
  contentContainerStyle: { padding: c.space1 },
2870
- children: l && !d ? /* @__PURE__ */ j(H, {
4393
+ children: l && !d ? /* @__PURE__ */ M(K, {
2871
4394
  variant: "caption",
2872
4395
  color: "dim",
2873
4396
  style: {
@@ -2875,7 +4398,7 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2875
4398
  padding: c.space4
2876
4399
  },
2877
4400
  children: "No items match your search."
2878
- }) : u.map((e, n) => /* @__PURE__ */ M(t, { children: [n > 0 && /* @__PURE__ */ j(Ye, {
4401
+ }) : u.map((e, n) => /* @__PURE__ */ N(t, { children: [n > 0 && /* @__PURE__ */ M(yt, {
2879
4402
  testID: "sidebar-separator",
2880
4403
  style: { marginVertical: c.space1 }
2881
4404
  }), e] }, n))
@@ -2883,9 +4406,9 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2883
4406
  })
2884
4407
  })
2885
4408
  });
2886
- }), Tt = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
2887
- let l = B(), u = Ct(), d = s(q);
2888
- return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ M(C, {
4409
+ }), zn = i(function({ label: e, icon: t, active: n = !1, suffix: r, disabled: i, style: a, ...o }, c) {
4410
+ let l = W(), u = In(), d = s(Ln);
4411
+ return d.length > 0 && !e.toLowerCase().includes(d.toLowerCase()) ? null : /* @__PURE__ */ N(w, {
2889
4412
  ref: c,
2890
4413
  disabled: i,
2891
4414
  accessibilityRole: "button",
@@ -2913,14 +4436,14 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2913
4436
  ],
2914
4437
  ...o,
2915
4438
  children: [
2916
- t && /* @__PURE__ */ j(O, {
4439
+ t && /* @__PURE__ */ M(k, {
2917
4440
  style: {
2918
4441
  flexShrink: 0,
2919
4442
  opacity: n ? 1 : .85
2920
4443
  },
2921
4444
  children: t
2922
4445
  }),
2923
- !u && /* @__PURE__ */ j(H, {
4446
+ !u && /* @__PURE__ */ M(K, {
2924
4447
  numberOfLines: 1,
2925
4448
  ellipsizeMode: "tail",
2926
4449
  style: {
@@ -2931,22 +4454,22 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2931
4454
  },
2932
4455
  children: e
2933
4456
  }),
2934
- !u && r && /* @__PURE__ */ j(O, {
4457
+ !u && r && /* @__PURE__ */ M(k, {
2935
4458
  style: { flexShrink: 0 },
2936
4459
  children: r
2937
4460
  })
2938
4461
  ]
2939
4462
  });
2940
- }), Et = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
2941
- let p = B(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = Ct(), y = s(q), b = (e) => {
4463
+ }), Bn = i(function({ title: e, icon: t, collapsible: n = !1, defaultOpen: r = !0, open: i, onOpenChange: a, children: o, style: c, ...u }, d) {
4464
+ let p = W(), [m, h] = f(r), g = i !== void 0, _ = g ? i : m, v = In(), y = s(Ln), b = (e) => {
2942
4465
  g || h(e), a?.(e);
2943
4466
  };
2944
4467
  if (l(d, () => ({
2945
4468
  expand: () => b(!0),
2946
4469
  collapse: () => b(!1),
2947
4470
  toggle: () => b(!_)
2948
- })), !(y.length === 0 || xt(o, y) > 0)) return null;
2949
- let x = v ? !0 : _, S = !v && !!(e || t), w = (e || t) && /* @__PURE__ */ M(O, {
4471
+ })), !(y.length === 0 || Nn(o, y) > 0)) return null;
4472
+ let x = v ? !0 : _, S = !v && !!(e || t), C = (e || t) && /* @__PURE__ */ N(k, {
2950
4473
  style: {
2951
4474
  flexDirection: "row",
2952
4475
  alignItems: "center",
@@ -2957,21 +4480,21 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2957
4480
  marginBottom: 2
2958
4481
  },
2959
4482
  children: [
2960
- t && /* @__PURE__ */ j(O, {
4483
+ t && /* @__PURE__ */ M(k, {
2961
4484
  style: {
2962
4485
  flexShrink: 0,
2963
4486
  opacity: .7
2964
4487
  },
2965
4488
  children: t
2966
4489
  }),
2967
- e && /* @__PURE__ */ j(H, {
4490
+ e && /* @__PURE__ */ M(K, {
2968
4491
  variant: "caption-heading",
2969
4492
  color: "dim",
2970
4493
  style: { flex: 1 },
2971
4494
  numberOfLines: 1,
2972
4495
  children: e
2973
4496
  }),
2974
- n && /* @__PURE__ */ j(H, {
4497
+ n && /* @__PURE__ */ M(K, {
2975
4498
  variant: "caption",
2976
4499
  color: "dim",
2977
4500
  style: { flexShrink: 0 },
@@ -2979,16 +4502,16 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2979
4502
  })
2980
4503
  ]
2981
4504
  });
2982
- return /* @__PURE__ */ M(O, {
4505
+ return /* @__PURE__ */ N(k, {
2983
4506
  style: c,
2984
4507
  ...u,
2985
- children: [S && (n ? /* @__PURE__ */ j(C, {
4508
+ children: [S && (n ? /* @__PURE__ */ M(w, {
2986
4509
  accessibilityRole: "button",
2987
4510
  accessibilityState: { expanded: _ },
2988
4511
  accessibilityLabel: e,
2989
4512
  onPress: () => b(!_),
2990
- children: w
2991
- }) : w), /* @__PURE__ */ j(O, {
4513
+ children: C
4514
+ }) : C), /* @__PURE__ */ M(k, {
2992
4515
  accessible: !0,
2993
4516
  accessibilityRole: "list",
2994
4517
  style: {
@@ -2998,8 +4521,8 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
2998
4521
  children: o
2999
4522
  })]
3000
4523
  });
3001
- }), Dt = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
3002
- let l = B(), u = V(), f = d(new m.Value(1)).current, p = a && !u;
4524
+ }), Vn = ({ variant: e = "rect", width: t = "100%", height: n = 16, size: r = 40, lines: i = 3, animated: a = !0, style: o, ...s }) => {
4525
+ let l = W(), u = G(), f = d(new m.Value(1)).current, p = a && !u;
3003
4526
  if (c(() => {
3004
4527
  if (!p) {
3005
4528
  f.setValue(1);
@@ -3023,11 +4546,11 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3023
4546
  l.easingDefault
3024
4547
  ]), e === "text") {
3025
4548
  let e = Math.max(1, Math.floor(i));
3026
- return /* @__PURE__ */ j(O, {
4549
+ return /* @__PURE__ */ M(k, {
3027
4550
  accessible: !1,
3028
4551
  style: [{ gap: 8 }, o],
3029
4552
  ...s,
3030
- children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ j(m.View, { style: {
4553
+ children: Array.from({ length: e }, (t, n) => /* @__PURE__ */ M(m.View, { style: {
3031
4554
  width: n === e - 1 ? "60%" : "100%",
3032
4555
  height: 12,
3033
4556
  borderRadius: l.radiusPill,
@@ -3045,7 +4568,7 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3045
4568
  height: n,
3046
4569
  borderRadius: l.radiusMd
3047
4570
  };
3048
- return /* @__PURE__ */ j(m.View, {
4571
+ return /* @__PURE__ */ M(m.View, {
3049
4572
  accessible: !1,
3050
4573
  style: [
3051
4574
  h,
@@ -3057,22 +4580,22 @@ var q = r(""), wt = i(function({ children: n, collapsed: r = !1, filter: i = "",
3057
4580
  ],
3058
4581
  ...s
3059
4582
  });
3060
- }, Ot = 6, J = 22, Y = 4;
3061
- function X(e, t, n) {
4583
+ }, Hn = 6, Un = 22, Wn = 4;
4584
+ function $(e, t, n) {
3062
4585
  return Math.min(n, Math.max(t, e));
3063
4586
  }
3064
- function Z(e, t, n, r) {
4587
+ function Gn(e, t, n, r) {
3065
4588
  return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
3066
4589
  }
3067
- function kt(e) {
4590
+ function Kn(e) {
3068
4591
  let t = e.toString(), n = t.indexOf(".");
3069
4592
  return n === -1 ? 0 : t.length - n - 1;
3070
4593
  }
3071
- var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabled: a = !1, marks: s, accessibilityLabel: c, style: l, onLayout: d, ...p }) => {
3072
- let m = B(), [h, g] = f(0), [_, v] = f({}), y = kt(i), b = X(e, n, r), S = (b - n) / (r - n) * 100, C = o((e) => {
4594
+ var qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabled: a = !1, marks: s, accessibilityLabel: c, style: l, onLayout: d, ...p }) => {
4595
+ let m = W(), [h, g] = f(0), [_, v] = f({}), y = Kn(i), b = $(e, n, r), x = (b - n) / (r - n) * 100, C = o((e) => {
3073
4596
  g(e.nativeEvent.layout.width), d?.(e);
3074
4597
  }, [d]), w = o((e) => {
3075
- a || h <= 0 || t(X(Z(e / h * (r - n) + n, n, i, y), n, r));
4598
+ a || h <= 0 || t($(Gn(e / h * (r - n) + n, n, i, y), n, r));
3076
4599
  }, [
3077
4600
  a,
3078
4601
  h,
@@ -3081,18 +4604,18 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3081
4604
  i,
3082
4605
  y,
3083
4606
  t
3084
- ]), T = u(() => x.create({
4607
+ ]), T = u(() => S.create({
3085
4608
  onStartShouldSetPanResponder: () => !a,
3086
4609
  onMoveShouldSetPanResponder: () => !a,
3087
4610
  onPanResponderGrant: (e) => w(e.nativeEvent.locationX),
3088
4611
  onPanResponderMove: (e) => w(e.nativeEvent.locationX)
3089
- }), [a, w]), D = o((o) => {
4612
+ }), [a, w]), E = o((o) => {
3090
4613
  if (!a) switch (o.nativeEvent.actionName) {
3091
4614
  case "increment":
3092
- t(X(Z(e + i, n, i, y), n, r));
4615
+ t($(Gn(e + i, n, i, y), n, r));
3093
4616
  break;
3094
4617
  case "decrement":
3095
- t(X(Z(e - i, n, i, y), n, r));
4618
+ t($(Gn(e - i, n, i, y), n, r));
3096
4619
  break;
3097
4620
  }
3098
4621
  }, [
@@ -3103,15 +4626,15 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3103
4626
  r,
3104
4627
  y,
3105
4628
  t
3106
- ]), k = s && s.length > 0, A = k && s.some((e) => e.label), N = S / 100 * h - J / 2;
3107
- return /* @__PURE__ */ M(O, {
4629
+ ]), O = s && s.length > 0, A = O && s.some((e) => e.label), j = x / 100 * h - Un / 2;
4630
+ return /* @__PURE__ */ N(k, {
3108
4631
  style: [{
3109
4632
  width: "100%",
3110
4633
  paddingTop: 10,
3111
4634
  paddingBottom: A ? 0 : 10
3112
4635
  }, l],
3113
4636
  ...p,
3114
- children: [/* @__PURE__ */ M(O, {
4637
+ children: [/* @__PURE__ */ N(k, {
3115
4638
  onLayout: C,
3116
4639
  accessible: !0,
3117
4640
  accessibilityRole: "adjustable",
@@ -3129,37 +4652,37 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3129
4652
  name: "decrement",
3130
4653
  label: "decrement"
3131
4654
  }],
3132
- onAccessibilityAction: D,
4655
+ onAccessibilityAction: E,
3133
4656
  style: {
3134
4657
  justifyContent: "center",
3135
- height: J,
4658
+ height: Un,
3136
4659
  opacity: a ? m.opacityDisabled : 1
3137
4660
  },
3138
4661
  ...T.panHandlers,
3139
4662
  children: [
3140
- /* @__PURE__ */ j(O, {
4663
+ /* @__PURE__ */ M(k, {
3141
4664
  pointerEvents: "none",
3142
4665
  style: {
3143
4666
  width: "100%",
3144
- height: Ot,
4667
+ height: Hn,
3145
4668
  borderRadius: m.radiusPill,
3146
4669
  backgroundColor: m.cardShadeColor,
3147
4670
  overflow: "hidden"
3148
4671
  },
3149
- children: /* @__PURE__ */ j(O, { style: {
4672
+ children: /* @__PURE__ */ M(k, { style: {
3150
4673
  height: "100%",
3151
- width: `${S}%`,
4674
+ width: `${x}%`,
3152
4675
  borderRadius: m.radiusPill,
3153
4676
  backgroundColor: m.accentBgColor
3154
4677
  } })
3155
4678
  }),
3156
- /* @__PURE__ */ j(O, {
4679
+ /* @__PURE__ */ M(k, {
3157
4680
  pointerEvents: "none",
3158
4681
  style: {
3159
4682
  position: "absolute",
3160
- left: N,
3161
- width: J,
3162
- height: J,
4683
+ left: j,
4684
+ width: Un,
4685
+ height: Un,
3163
4686
  borderRadius: m.radiusPill,
3164
4687
  backgroundColor: m.accentBgColor,
3165
4688
  borderWidth: 2,
@@ -3174,20 +4697,20 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3174
4697
  elevation: 3
3175
4698
  }
3176
4699
  }),
3177
- k && s.map((e) => /* @__PURE__ */ j(O, {
4700
+ O && s.map((e) => /* @__PURE__ */ M(k, {
3178
4701
  pointerEvents: "none",
3179
4702
  importantForAccessibility: "no",
3180
4703
  style: {
3181
4704
  position: "absolute",
3182
- left: (X(e.value, n, r) - n) / (r - n) * 100 / 100 * h - Y / 2,
3183
- width: Y,
3184
- height: Y,
3185
- borderRadius: Y / 2,
4705
+ left: ($(e.value, n, r) - n) / (r - n) * 100 / 100 * h - Wn / 2,
4706
+ width: Wn,
4707
+ height: Wn,
4708
+ borderRadius: Wn / 2,
3186
4709
  backgroundColor: m.windowBgColor
3187
4710
  }
3188
4711
  }, e.value))
3189
4712
  ]
3190
- }), A && /* @__PURE__ */ j(O, {
4713
+ }), A && /* @__PURE__ */ M(k, {
3191
4714
  importantForAccessibility: "no",
3192
4715
  style: {
3193
4716
  position: "relative",
@@ -3195,7 +4718,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3195
4718
  height: 20,
3196
4719
  marginTop: 6
3197
4720
  },
3198
- children: s.map((e) => /* @__PURE__ */ j(E, {
4721
+ children: s.map((e) => /* @__PURE__ */ M(D, {
3199
4722
  numberOfLines: 1,
3200
4723
  onLayout: (t) => {
3201
4724
  let { layout: { width: n } } = t.nativeEvent;
@@ -3206,7 +4729,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3206
4729
  },
3207
4730
  style: {
3208
4731
  position: "absolute",
3209
- left: (X(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
4732
+ left: ($(e.value, n, r) - n) / (r - n) * 100 / 100 * h - (_[e.value] ?? 0) / 2,
3210
4733
  fontFamily: m.fontFamily,
3211
4734
  fontSize: m.fontSizeCaption,
3212
4735
  color: m.windowFgColor,
@@ -3216,7 +4739,140 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3216
4739
  }, e.value))
3217
4740
  })]
3218
4741
  });
3219
- }, jt = {
4742
+ }, Jn = 36;
4743
+ function Yn(e) {
4744
+ let t = e.toString(), n = t.indexOf(".");
4745
+ return n === -1 ? 0 : t.length - n - 1;
4746
+ }
4747
+ function Xn(e, t, n) {
4748
+ return Math.min(n, Math.max(t, e));
4749
+ }
4750
+ function Zn(e, t, n, r) {
4751
+ let i = n - t + r;
4752
+ return ((e - t) % i + i) % i + t;
4753
+ }
4754
+ var Qn = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, decimals: a, wrap: s = !1, format: c, disabled: l = !1, accessibilityLabel: u, style: d }) => {
4755
+ let f = W(), p = a ?? Yn(i), m = o((e) => {
4756
+ let a = s ? Zn(e, n, r, i) : Xn(e, n, r);
4757
+ t(parseFloat(a.toFixed(p)));
4758
+ }, [
4759
+ t,
4760
+ n,
4761
+ r,
4762
+ i,
4763
+ p,
4764
+ s
4765
+ ]), h = c ? c(e) : e.toFixed(p), g = o((t) => {
4766
+ if (!l) switch (t.nativeEvent.actionName) {
4767
+ case "increment":
4768
+ m(e + i);
4769
+ break;
4770
+ case "decrement":
4771
+ m(e - i);
4772
+ break;
4773
+ }
4774
+ }, [
4775
+ l,
4776
+ e,
4777
+ i,
4778
+ m
4779
+ ]), _ = l || !s && e <= n, v = l || !s && e >= r;
4780
+ return /* @__PURE__ */ N(k, {
4781
+ accessible: !0,
4782
+ accessibilityRole: "adjustable",
4783
+ accessibilityLabel: u,
4784
+ accessibilityValue: {
4785
+ min: n,
4786
+ max: r,
4787
+ now: e,
4788
+ text: c ? h : void 0
4789
+ },
4790
+ accessibilityState: { disabled: l },
4791
+ accessibilityActions: [{
4792
+ name: "increment",
4793
+ label: "increment"
4794
+ }, {
4795
+ name: "decrement",
4796
+ label: "decrement"
4797
+ }],
4798
+ onAccessibilityAction: g,
4799
+ style: [{
4800
+ flexDirection: "row",
4801
+ alignSelf: "flex-start",
4802
+ alignItems: "center",
4803
+ borderWidth: 1,
4804
+ borderColor: f.cardShadeColor,
4805
+ borderRadius: f.radiusMd,
4806
+ backgroundColor: f.viewBgColor,
4807
+ overflow: "hidden",
4808
+ opacity: l ? f.opacityDisabled : 1
4809
+ }, d],
4810
+ children: [
4811
+ /* @__PURE__ */ M(w, {
4812
+ accessibilityElementsHidden: !0,
4813
+ importantForAccessibility: "no",
4814
+ disabled: _,
4815
+ onPress: () => m(e - i),
4816
+ style: ({ pressed: e }) => ({
4817
+ width: Jn,
4818
+ height: Jn,
4819
+ alignItems: "center",
4820
+ justifyContent: "center",
4821
+ borderRightWidth: 1,
4822
+ borderRightColor: f.cardShadeColor,
4823
+ backgroundColor: e && !_ ? f.activeOverlay : "transparent",
4824
+ opacity: _ ? f.opacityDisabled : 1
4825
+ }),
4826
+ children: /* @__PURE__ */ M(D, {
4827
+ style: {
4828
+ fontSize: 17,
4829
+ lineHeight: 20,
4830
+ color: f.viewFgColor
4831
+ },
4832
+ children: "−"
4833
+ })
4834
+ }),
4835
+ /* @__PURE__ */ M(D, {
4836
+ accessibilityElementsHidden: !0,
4837
+ importantForAccessibility: "no",
4838
+ style: {
4839
+ minWidth: 56,
4840
+ textAlign: "center",
4841
+ paddingHorizontal: f.space2,
4842
+ fontFamily: f.fontFamily,
4843
+ fontSize: f.fontSizeBody,
4844
+ fontVariant: ["tabular-nums"],
4845
+ color: f.viewFgColor
4846
+ },
4847
+ children: h
4848
+ }),
4849
+ /* @__PURE__ */ M(w, {
4850
+ accessibilityElementsHidden: !0,
4851
+ importantForAccessibility: "no",
4852
+ disabled: v,
4853
+ onPress: () => m(e + i),
4854
+ style: ({ pressed: e }) => ({
4855
+ width: Jn,
4856
+ height: Jn,
4857
+ alignItems: "center",
4858
+ justifyContent: "center",
4859
+ borderLeftWidth: 1,
4860
+ borderLeftColor: f.cardShadeColor,
4861
+ backgroundColor: e && !v ? f.activeOverlay : "transparent",
4862
+ opacity: v ? f.opacityDisabled : 1
4863
+ }),
4864
+ children: /* @__PURE__ */ M(D, {
4865
+ style: {
4866
+ fontSize: 17,
4867
+ lineHeight: 20,
4868
+ color: f.viewFgColor
4869
+ },
4870
+ children: "+"
4871
+ })
4872
+ })
4873
+ ]
4874
+ });
4875
+ }, $n = {
3220
4876
  sm: {
3221
4877
  dimension: 16,
3222
4878
  borderWidth: 2
@@ -3229,8 +4885,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3229
4885
  dimension: 36,
3230
4886
  borderWidth: 3
3231
4887
  }
3232
- }, Mt = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
3233
- let i = B(), a = R(), o = V(), s = d(new m.Value(0)).current;
4888
+ }, er = ({ size: e = "md", label: t = "Loading…", style: n, ...r }) => {
4889
+ let i = W(), a = H(), o = G(), s = d(new m.Value(0)).current;
3234
4890
  c(() => {
3235
4891
  s.setValue(0);
3236
4892
  let e = m.loop(m.timing(s, {
@@ -3244,8 +4900,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3244
4900
  let l = s.interpolate({
3245
4901
  inputRange: [0, 1],
3246
4902
  outputRange: ["0deg", "360deg"]
3247
- }), { dimension: u, borderWidth: f } = jt[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
3248
- return /* @__PURE__ */ j(m.View, {
4903
+ }), { dimension: u, borderWidth: f } = $n[e], p = a === "dark" ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.15)";
4904
+ return /* @__PURE__ */ M(m.View, {
3249
4905
  accessible: !0,
3250
4906
  accessibilityRole: "progressbar",
3251
4907
  accessibilityLabel: t || void 0,
@@ -3262,8 +4918,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3262
4918
  }, n],
3263
4919
  ...r
3264
4920
  });
3265
- }, Nt = 56, Pt = 28, Ft = 20, It = 3, Lt = 28, Rt = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
3266
- let o = B(), s = R(), l = z(), u = d(new m.Value(+!!e)).current, f = d(!0);
4921
+ }, tr = 56, nr = 28, rr = 20, ir = 3, ar = 28, or = i(function({ value: e, onValueChange: t, disabled: n, style: r, ...i }, a) {
4922
+ let o = W(), s = H(), l = U(), u = d(new m.Value(+!!e)).current, f = d(!0);
3267
4923
  c(() => {
3268
4924
  if (f.current) {
3269
4925
  f.current = !1;
@@ -3289,7 +4945,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3289
4945
  inputRange: [0, 1],
3290
4946
  outputRange: [o.borderSubtle, o.accentBgColor]
3291
4947
  });
3292
- return /* @__PURE__ */ j(C, {
4948
+ return /* @__PURE__ */ M(w, {
3293
4949
  ref: a,
3294
4950
  disabled: n,
3295
4951
  accessibilityRole: "switch",
@@ -3300,26 +4956,26 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3300
4956
  onPress: () => t?.(!e),
3301
4957
  style: [{ opacity: n ? o.opacityDisabled : 1 }, r],
3302
4958
  ...i,
3303
- children: /* @__PURE__ */ j(m.View, {
4959
+ children: /* @__PURE__ */ M(m.View, {
3304
4960
  style: {
3305
- width: Nt,
3306
- height: Pt,
4961
+ width: tr,
4962
+ height: nr,
3307
4963
  borderRadius: o.radiusPill,
3308
4964
  borderWidth: l === "more" ? 2 : 1,
3309
4965
  borderColor: v,
3310
4966
  backgroundColor: g
3311
4967
  },
3312
- children: /* @__PURE__ */ j(m.View, { style: [{
4968
+ children: /* @__PURE__ */ M(m.View, { style: [{
3313
4969
  position: "absolute",
3314
- top: It,
3315
- left: It,
3316
- width: Ft,
3317
- height: Ft,
4970
+ top: ir,
4971
+ left: ir,
4972
+ width: rr,
4973
+ height: rr,
3318
4974
  borderRadius: o.radiusPill,
3319
4975
  backgroundColor: e ? "#fff" : h,
3320
4976
  transform: [{ translateX: u.interpolate({
3321
4977
  inputRange: [0, 1],
3322
- outputRange: [0, Lt]
4978
+ outputRange: [0, ar]
3323
4979
  }) }]
3324
4980
  }, l !== "more" && {
3325
4981
  shadowColor: "#000",
@@ -3333,9 +4989,9 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3333
4989
  }] })
3334
4990
  })
3335
4991
  });
3336
- }), zt = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
3337
- let o = B();
3338
- return /* @__PURE__ */ j(w, {
4992
+ }), sr = i(function({ children: e, inline: t = !1, accessibilityLabel: n = "Tabs", style: r, ...i }, a) {
4993
+ let o = W();
4994
+ return /* @__PURE__ */ M(T, {
3339
4995
  ref: a,
3340
4996
  horizontal: !0,
3341
4997
  showsHorizontalScrollIndicator: !1,
@@ -3359,9 +5015,9 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3359
5015
  ...i,
3360
5016
  children: e
3361
5017
  });
3362
- }), Bt = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
3363
- let l = B();
3364
- return /* @__PURE__ */ M(C, {
5018
+ }), cr = i(function({ label: e, icon: t, active: n = !1, onClose: r, closeLabel: i = "Close tab", count: a, disabled: o, ...s }, c) {
5019
+ let l = W();
5020
+ return /* @__PURE__ */ N(w, {
3365
5021
  ref: c,
3366
5022
  disabled: o,
3367
5023
  accessibilityRole: "tab",
@@ -3385,11 +5041,11 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3385
5041
  }),
3386
5042
  ...s,
3387
5043
  children: [
3388
- t && /* @__PURE__ */ j(O, {
5044
+ t && /* @__PURE__ */ M(k, {
3389
5045
  style: { flexShrink: 0 },
3390
5046
  children: t
3391
5047
  }),
3392
- /* @__PURE__ */ j(E, {
5048
+ /* @__PURE__ */ M(D, {
3393
5049
  numberOfLines: 1,
3394
5050
  ellipsizeMode: "tail",
3395
5051
  style: {
@@ -3400,7 +5056,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3400
5056
  },
3401
5057
  children: e
3402
5058
  }),
3403
- a !== void 0 && /* @__PURE__ */ j(O, {
5059
+ a !== void 0 && /* @__PURE__ */ M(k, {
3404
5060
  style: {
3405
5061
  flexShrink: 0,
3406
5062
  minWidth: 18,
@@ -3411,7 +5067,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3411
5067
  justifyContent: "center",
3412
5068
  backgroundColor: l.accentBgColor
3413
5069
  },
3414
- children: /* @__PURE__ */ j(E, {
5070
+ children: /* @__PURE__ */ M(D, {
3415
5071
  style: {
3416
5072
  fontFamily: l.fontFamily,
3417
5073
  fontSize: 11,
@@ -3421,7 +5077,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3421
5077
  children: a > 99 ? "99+" : a
3422
5078
  })
3423
5079
  }),
3424
- r && /* @__PURE__ */ j(C, {
5080
+ r && /* @__PURE__ */ M(w, {
3425
5081
  accessibilityRole: "button",
3426
5082
  accessibilityLabel: i,
3427
5083
  hitSlop: 8,
@@ -3435,7 +5091,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3435
5091
  borderRadius: l.radiusSm,
3436
5092
  backgroundColor: e ? l.activeOverlay : "transparent"
3437
5093
  }),
3438
- children: /* @__PURE__ */ j(E, {
5094
+ children: /* @__PURE__ */ M(D, {
3439
5095
  style: {
3440
5096
  fontFamily: l.fontFamily,
3441
5097
  fontSize: 15,
@@ -3445,7 +5101,7 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3445
5101
  children: "×"
3446
5102
  })
3447
5103
  }),
3448
- n && /* @__PURE__ */ j(O, {
5104
+ n && /* @__PURE__ */ M(k, {
3449
5105
  pointerEvents: "none",
3450
5106
  style: {
3451
5107
  position: "absolute",
@@ -3459,8 +5115,8 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3459
5115
  })
3460
5116
  ]
3461
5117
  });
3462
- }), Vt = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
3463
- return /* @__PURE__ */ j(O, {
5118
+ }), lr = i(function({ active: e = !1, style: t, children: n, ...r }, i) {
5119
+ return /* @__PURE__ */ M(k, {
3464
5120
  ref: i,
3465
5121
  style: [{ display: e ? "flex" : "none" }, t],
3466
5122
  ...r,
@@ -3469,31 +5125,31 @@ var At = ({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, disabl
3469
5125
  });
3470
5126
  //#endregion
3471
5127
  //#region src/components/TextField/TextField.tsx
3472
- function Ht(e, t) {
5128
+ function ur(e, t) {
3473
5129
  let n = e.match(/^rgba?\(([^,]+),([^,]+),([^,]+),?([^)]+)?\)$/);
3474
5130
  if (!n) return e;
3475
5131
  let [, r, i, a, o] = n, s = (o ? Number.parseFloat(o) : 1) * t;
3476
5132
  return `rgba(${r.trim()}, ${i.trim()}, ${a.trim()}, ${s})`;
3477
5133
  }
3478
- var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i, editable: a = !0, onFocus: o, onBlur: s, accessibilityLabel: c, accessibilityHint: l, ...u }, d) {
3479
- let p = B(), m = z(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
3480
- return /* @__PURE__ */ M(O, {
5134
+ var dr = 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) {
5135
+ let p = W(), m = U(), [h, g] = f(!1), _ = !a, v = n ?? t, y = n ? p.errorColor : h ? p.accentColor : p.borderSubtle;
5136
+ return /* @__PURE__ */ N(k, {
3481
5137
  style: [{
3482
5138
  gap: p.space1,
3483
5139
  opacity: _ ? p.opacityDisabled : 1
3484
5140
  }, r],
3485
5141
  children: [
3486
- e && /* @__PURE__ */ j(H, {
5142
+ e && /* @__PURE__ */ M(K, {
3487
5143
  variant: "body",
3488
5144
  style: { fontWeight: String(p.fontWeightSemibold) },
3489
5145
  children: e
3490
5146
  }),
3491
- /* @__PURE__ */ j(D, {
5147
+ /* @__PURE__ */ M(O, {
3492
5148
  ref: d,
3493
5149
  editable: a,
3494
5150
  accessibilityLabel: c ?? e,
3495
5151
  accessibilityHint: l ?? v,
3496
- placeholderTextColor: Ht(p.windowFgColor, p.opacityDim),
5152
+ placeholderTextColor: ur(p.windowFgColor, p.opacityDim),
3497
5153
  onFocus: (e) => {
3498
5154
  g(!0), o?.(e);
3499
5155
  },
@@ -3515,7 +5171,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3515
5171
  }, i],
3516
5172
  ...u
3517
5173
  }),
3518
- v && /* @__PURE__ */ j(H, {
5174
+ v && /* @__PURE__ */ M(K, {
3519
5175
  variant: "caption",
3520
5176
  style: {
3521
5177
  color: n ? p.errorColor : p.windowFgColor,
@@ -3525,8 +5181,8 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3525
5181
  })
3526
5182
  ]
3527
5183
  });
3528
- }), Wt = m.createAnimatedComponent(C), Gt = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
3529
- let u = B(), f = R(), p = V(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
5184
+ }), fr = m.createAnimatedComponent(w), pr = ({ title: e, duration: t = 3e3, onDismiss: n, actionLabel: r, onAction: i, dismissible: a = !1, style: s, ...l }) => {
5185
+ let u = W(), f = H(), p = G(), h = d(null), g = d(t), v = d(0), y = d(new m.Value(+!!p)).current, b = o(() => {
3530
5186
  h.current &&= (clearTimeout(h.current), null);
3531
5187
  }, []), x = o((e) => {
3532
5188
  e <= 0 || !n || (b(), v.current = Date.now(), h.current = setTimeout(() => n(), e));
@@ -3558,11 +5214,11 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3558
5214
  let e = Date.now() - v.current;
3559
5215
  g.current = Math.max(0, g.current - e), b();
3560
5216
  }
3561
- }, w = () => {
5217
+ }, C = () => {
3562
5218
  x(g.current);
3563
5219
  }, T = () => {
3564
5220
  b(), i?.(), n?.();
3565
- }, D = f === "dark" ? {
5221
+ }, E = f === "dark" ? {
3566
5222
  shadowOpacity: .4,
3567
5223
  shadowRadius: 12,
3568
5224
  elevation: 6
@@ -3571,12 +5227,12 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3571
5227
  shadowRadius: 8,
3572
5228
  elevation: 4
3573
5229
  };
3574
- return /* @__PURE__ */ M(Wt, {
5230
+ return /* @__PURE__ */ N(fr, {
3575
5231
  accessible: !0,
3576
5232
  accessibilityRole: "alert",
3577
5233
  accessibilityLiveRegion: "polite",
3578
5234
  onPressIn: S,
3579
- onPressOut: w,
5235
+ onPressOut: C,
3580
5236
  style: [{
3581
5237
  flexDirection: "row",
3582
5238
  alignItems: "center",
@@ -3602,10 +5258,10 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3602
5258
  inputRange: [0, 1],
3603
5259
  outputRange: [.96, 1]
3604
5260
  }) }],
3605
- ...D
5261
+ ...E
3606
5262
  }, s],
3607
5263
  ...l,
3608
- children: [/* @__PURE__ */ j(H, {
5264
+ children: [/* @__PURE__ */ M(K, {
3609
5265
  variant: "body",
3610
5266
  style: {
3611
5267
  flex: 1,
@@ -3613,7 +5269,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3613
5269
  },
3614
5270
  numberOfLines: typeof e == "string" ? 2 : void 0,
3615
5271
  children: e
3616
- }), (r || a) && /* @__PURE__ */ M(A, { children: [r && /* @__PURE__ */ j(C, {
5272
+ }), (r || a) && /* @__PURE__ */ N(j, { children: [r && /* @__PURE__ */ M(w, {
3617
5273
  accessibilityRole: "button",
3618
5274
  accessibilityLabel: r,
3619
5275
  onPress: T,
@@ -3623,7 +5279,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3623
5279
  borderRadius: u.radiusSm,
3624
5280
  backgroundColor: e ? u.activeOverlay : "transparent"
3625
5281
  }),
3626
- children: /* @__PURE__ */ j(E, {
5282
+ children: /* @__PURE__ */ M(D, {
3627
5283
  style: {
3628
5284
  fontFamily: u.fontFamily,
3629
5285
  fontSize: u.fontSizeBody,
@@ -3632,7 +5288,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3632
5288
  },
3633
5289
  children: r
3634
5290
  })
3635
- }), a && /* @__PURE__ */ j(C, {
5291
+ }), a && /* @__PURE__ */ M(w, {
3636
5292
  accessibilityRole: "button",
3637
5293
  accessibilityLabel: "Dismiss",
3638
5294
  hitSlop: 4,
@@ -3648,7 +5304,7 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3648
5304
  opacity: e ? 1 : .55,
3649
5305
  backgroundColor: e ? u.activeOverlay : "transparent"
3650
5306
  }),
3651
- children: /* @__PURE__ */ j(E, {
5307
+ children: /* @__PURE__ */ M(D, {
3652
5308
  style: {
3653
5309
  fontSize: u.fontSizeBody,
3654
5310
  color: u.windowFgColor
@@ -3657,9 +5313,9 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3657
5313
  })
3658
5314
  })] })]
3659
5315
  });
3660
- }, Kt = ({ position: e = "bottom", children: t, style: n, ...r }) => {
3661
- let i = B();
3662
- return /* @__PURE__ */ j(O, {
5316
+ }, mr = ({ position: e = "bottom", children: t, style: n, ...r }) => {
5317
+ let i = W();
5318
+ return /* @__PURE__ */ M(k, {
3663
5319
  pointerEvents: "box-none",
3664
5320
  accessibilityLabel: "Notifications",
3665
5321
  style: [
@@ -3677,238 +5333,9 @@ var Ut = i(function({ label: e, helperText: t, error: n, style: r, inputStyle: i
3677
5333
  ...r,
3678
5334
  children: t
3679
5335
  });
3680
- }, Q = 6, $ = 8, qt = 5;
3681
- function Jt(e, t) {
3682
- if (e) {
3683
- if (typeof e == "function") {
3684
- e(t);
3685
- return;
3686
- }
3687
- e.current = t;
3688
- }
3689
- }
3690
- function Yt(e, t, n) {
3691
- switch (n) {
3692
- case "top": return {
3693
- top: e.y - t.height - Q,
3694
- left: e.x + e.width / 2 - t.width / 2
3695
- };
3696
- case "bottom": return {
3697
- top: e.y + e.height + Q,
3698
- left: e.x + e.width / 2 - t.width / 2
3699
- };
3700
- case "left": return {
3701
- top: e.y + e.height / 2 - t.height / 2,
3702
- left: e.x - t.width - Q
3703
- };
3704
- case "right": return {
3705
- top: e.y + e.height / 2 - t.height / 2,
3706
- left: e.x + e.width + Q
3707
- };
3708
- }
3709
- }
3710
- function Xt(e, t, n) {
3711
- let { width: r, height: i } = g.get("window"), a = [
3712
- n,
3713
- n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
3714
- "top",
3715
- "bottom",
3716
- "left",
3717
- "right"
3718
- ];
3719
- for (let n of a) {
3720
- let { top: a, left: o } = Yt(e, t, n), s = o >= $ && o + t.width <= r - $, c = a >= $ && a + t.height <= i - $;
3721
- if (s && c) return {
3722
- top: Math.max($, Math.min(a, i - t.height - $)),
3723
- left: Math.max($, Math.min(o, r - t.width - $)),
3724
- placement: n
3725
- };
3726
- }
3727
- let { top: o, left: s } = Yt(e, t, n);
3728
- return {
3729
- top: Math.max($, Math.min(o, i - t.height - $)),
3730
- left: Math.max($, Math.min(s, r - t.width - $)),
3731
- placement: n
3732
- };
3733
- }
3734
- var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3735
- let a = B(), s = R(), l = V(), [u, p] = f(!1), [h, g] = f(null), [_, v] = f(null), [y, x] = f(null), S = d(null), C = d(null), w = d(new m.Value(0)).current, E = o(() => {
3736
- C.current &&= (clearTimeout(C.current), null);
3737
- }, []), D = o(() => {
3738
- E(), p(!0);
3739
- }, [E]), k = o(() => {
3740
- E(), C.current = setTimeout(D, r);
3741
- }, [
3742
- E,
3743
- D,
3744
- r
3745
- ]), N = o(() => {
3746
- E(), p(!1);
3747
- }, [E]);
3748
- c(() => {
3749
- if (!u) {
3750
- g(null), v(null), x(null);
3751
- return;
3752
- }
3753
- S.current?.measureInWindow((e, t, n, r) => {
3754
- g({
3755
- x: e,
3756
- y: t,
3757
- width: n,
3758
- height: r
3759
- });
3760
- });
3761
- }, [u]), c(() => {
3762
- !h || !_ || x(Xt(h, _, t));
3763
- }, [
3764
- h,
3765
- _,
3766
- t
3767
- ]), c(() => {
3768
- if (y) {
3769
- if (l) {
3770
- w.setValue(1);
3771
- return;
3772
- }
3773
- w.setValue(0), m.timing(w, {
3774
- toValue: 1,
3775
- duration: a.durationFast,
3776
- useNativeDriver: !0
3777
- }).start();
3778
- }
3779
- }, [
3780
- y,
3781
- l,
3782
- w,
3783
- a.durationFast
3784
- ]), c(() => E, [E]);
3785
- let ee = (e) => {
3786
- let { width: t, height: n } = e.nativeEvent.layout;
3787
- v({
3788
- width: t,
3789
- height: n
3790
- });
3791
- }, P = s === "dark" ? "#c0bfbc" : "#3d3d3d", te = s === "dark" ? "rgba(0, 0, 0, 0.8)" : "#fff", ne = s === "dark" ? {
3792
- shadowOpacity: .4,
3793
- shadowRadius: 8,
3794
- elevation: 6
3795
- } : {
3796
- shadowOpacity: .2,
3797
- shadowRadius: 8,
3798
- elevation: 4
3799
- }, F = {
3800
- position: "absolute",
3801
- width: 0,
3802
- height: 0,
3803
- borderWidth: qt,
3804
- borderColor: "transparent"
3805
- }, re = (() => {
3806
- switch (y?.placement) {
3807
- case "top": return {
3808
- ...F,
3809
- top: "100%",
3810
- left: "50%",
3811
- marginLeft: -5,
3812
- borderTopColor: P
3813
- };
3814
- case "bottom": return {
3815
- ...F,
3816
- bottom: "100%",
3817
- left: "50%",
3818
- marginLeft: -5,
3819
- borderBottomColor: P
3820
- };
3821
- case "left": return {
3822
- ...F,
3823
- left: "100%",
3824
- top: "50%",
3825
- marginTop: -5,
3826
- borderLeftColor: P
3827
- };
3828
- case "right": return {
3829
- ...F,
3830
- right: "100%",
3831
- top: "50%",
3832
- marginTop: -5,
3833
- borderRightColor: P
3834
- };
3835
- default: return null;
3836
- }
3837
- })(), ie = i.props.ref;
3838
- return /* @__PURE__ */ M(A, { children: [n(i, {
3839
- ref: (e) => {
3840
- S.current = e, Jt(ie, e);
3841
- },
3842
- delayLongPress: r,
3843
- accessibilityHint: i.props.accessibilityHint ?? e,
3844
- onLongPress: (e) => {
3845
- D(), i.props.onLongPress?.(e);
3846
- },
3847
- onPressOut: (e) => {
3848
- N(), i.props.onPressOut?.(e);
3849
- },
3850
- onHoverIn: (e) => {
3851
- k(), i.props.onHoverIn?.(e);
3852
- },
3853
- onHoverOut: (e) => {
3854
- N(), i.props.onHoverOut?.(e);
3855
- },
3856
- onFocus: (e) => {
3857
- k(), i.props.onFocus?.(e);
3858
- },
3859
- onBlur: (e) => {
3860
- N(), i.props.onBlur?.(e);
3861
- }
3862
- }), /* @__PURE__ */ j(b, {
3863
- visible: u,
3864
- transparent: !0,
3865
- animationType: "none",
3866
- statusBarTranslucent: !0,
3867
- children: /* @__PURE__ */ j(O, {
3868
- pointerEvents: "box-none",
3869
- style: T.absoluteFill,
3870
- children: /* @__PURE__ */ M(m.View, {
3871
- onLayout: ee,
3872
- accessible: !0,
3873
- role: "tooltip",
3874
- style: [{
3875
- position: "absolute",
3876
- maxWidth: 240,
3877
- paddingVertical: 4,
3878
- paddingHorizontal: a.space2,
3879
- backgroundColor: P,
3880
- borderRadius: a.radiusSm,
3881
- shadowColor: "#000",
3882
- shadowOffset: {
3883
- width: 0,
3884
- height: 2
3885
- },
3886
- ...ne
3887
- }, y ? {
3888
- top: y.top,
3889
- left: y.left,
3890
- opacity: w
3891
- } : {
3892
- top: -9999,
3893
- left: -9999,
3894
- opacity: 0
3895
- }],
3896
- children: [/* @__PURE__ */ j(H, {
3897
- style: {
3898
- color: te,
3899
- fontSize: a.fontSizeCaption,
3900
- fontWeight: String(a.fontWeightNormal),
3901
- lineHeight: a.fontSizeCaption * a.lineHeightBody,
3902
- textAlign: "center"
3903
- },
3904
- children: e
3905
- }), re && /* @__PURE__ */ j(O, { style: re })]
3906
- })
3907
- })
3908
- })] });
3909
- }, Qt = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
3910
- let a = B(), o = R();
3911
- return /* @__PURE__ */ M(O, {
5336
+ }, hr = i(function({ children: e, accessibilityLabel: t = "View switcher", style: n, ...r }, i) {
5337
+ let a = W(), o = H();
5338
+ return /* @__PURE__ */ N(k, {
3912
5339
  ref: i,
3913
5340
  accessible: !0,
3914
5341
  accessibilityRole: "radiogroup",
@@ -3920,10 +5347,10 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3920
5347
  backgroundColor: a.headerbarBgColor
3921
5348
  }, n],
3922
5349
  ...r,
3923
- children: [/* @__PURE__ */ j(O, {
5350
+ children: [/* @__PURE__ */ M(k, {
3924
5351
  pointerEvents: "none",
3925
- style: [T.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
3926
- }), /* @__PURE__ */ j(O, {
5352
+ style: [E.absoluteFill, { backgroundColor: o === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.25)" }]
5353
+ }), /* @__PURE__ */ M(k, {
3927
5354
  style: {
3928
5355
  flexDirection: "row",
3929
5356
  alignItems: "center",
@@ -3933,9 +5360,9 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3933
5360
  children: e
3934
5361
  })]
3935
5362
  });
3936
- }), $t = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
3937
- let o = B();
3938
- return /* @__PURE__ */ M(C, {
5363
+ }), gr = i(function({ label: e, icon: t, active: n = !1, disabled: r, ...i }, a) {
5364
+ let o = W();
5365
+ return /* @__PURE__ */ N(w, {
3939
5366
  ref: a,
3940
5367
  disabled: r,
3941
5368
  accessibilityRole: "radio",
@@ -3956,10 +5383,10 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3956
5383
  backgroundColor: n ? o.headerbarBgColor : e ? o.activeOverlay : "transparent"
3957
5384
  }),
3958
5385
  ...i,
3959
- children: [t && /* @__PURE__ */ j(O, {
5386
+ children: [t && /* @__PURE__ */ M(k, {
3960
5387
  style: { flexShrink: 0 },
3961
5388
  children: t
3962
- }), /* @__PURE__ */ j(E, {
5389
+ }), /* @__PURE__ */ M(D, {
3963
5390
  style: {
3964
5391
  fontFamily: o.fontFamily,
3965
5392
  fontSize: o.fontSizeBody,
@@ -3971,6 +5398,6 @@ var Zt = ({ label: e, placement: t = "top", delay: r = 500, children: i }) => {
3971
5398
  });
3972
5399
  });
3973
5400
  //#endregion
3974
- export { Me as ActionRow, qe as AnimatedIcon, Je as Banner, Xe as BoxedList, et as Button, nt as Card, it as Checkbox, ot as Dialog, dt as Dropdown, L as GnomeContext, Oe as GnomeProvider, ft as HeaderBar, W as Icon, pt as Link, Ce as NAMED_ACCENT_COLORS, mt as PathBar, ht as ProgressBar, vt as RadioButton, bt as SearchBar, Ye as Separator, wt as Sidebar, K as SidebarCollapsedContext, q as SidebarFilterContext, Tt as SidebarItem, Et as SidebarSection, Dt as Skeleton, At as Slider, Mt as Spinner, Rt as Switch, zt as TabBar, Bt as TabItem, Vt as TabPanel, H as Text, Ut as TextField, Gt as Toast, Kt as Toaster, Zt as Tooltip, Qt as ViewSwitcher, $t as ViewSwitcherItem, Ee as applyAccentColor, fe as darkRawTokens, ce as darkTheme, me as highContrastDarkRawTokens, ue as highContrastDarkTheme, pe as highContrastRawTokens, le as highContrastTheme, de as lightRawTokens, se as lightTheme, we as resolveColorScheme, Te as resolveContrast, Se as resolveGnomeTheme, xe as useAccentColor, ye as useColorScheme, be as useContrast, ve as useDateTimeFormatter, ge as useDir, B as useGnomeTheme, he as useLocale, _e as useNumberFormatter, V as useReducedMotion, R as useResolvedColorScheme, z as useResolvedContrast, Ct as useSidebarCollapsed };
5401
+ export { Ue as ActionRow, at as AnimatedIcon, ft as Avatar, mt as Badge, ht as Banner, vt as BottomSheet, bt as BoxedList, wt as Button, Et as Card, Ot as Checkbox, kt as Chip, jt as Dialog, Mt as Divider, Gt as Drawer, Xt as Dropdown, Zt as Expander, cn as FileTypeIcon, V as GnomeContext, ze as GnomeProvider, ln as HeaderBar, dn as Highlight, q as Icon, zt as IconButton, mn as LevelBar, hn as Link, Pe as NAMED_ACCENT_COLORS, _n as Overlay, vn as PathBar, Cn as Popover, wn as ProgressBar, Dn as RadioButton, kn as SearchBar, Mn as SegmentedBar, yt as Separator, Rn as Sidebar, Fn as SidebarCollapsedContext, Ln as SidebarFilterContext, zn as SidebarItem, Bn as SidebarSection, Vn as Skeleton, qn as Slider, Qn as SpinButton, er as Spinner, or as Switch, sr as TabBar, cr as TabItem, lr as TabPanel, K as Text, dr as TextField, pr as Toast, mr as Toaster, Lt as Tooltip, hr as ViewSwitcher, gr as ViewSwitcherItem, Le as applyAccentColor, Ce as darkRawTokens, ye as darkTheme, Te as highContrastDarkRawTokens, xe as highContrastDarkTheme, we as highContrastRawTokens, be as highContrastTheme, Se as lightRawTokens, ve as lightTheme, Fe as resolveColorScheme, Ie as resolveContrast, Ne as resolveGnomeTheme, Me as useAccentColor, Ae as useColorScheme, je as useContrast, ke as useDateTimeFormatter, De as useDir, W as useGnomeTheme, Ee as useLocale, Oe as useNumberFormatter, G as useReducedMotion, H as useResolvedColorScheme, U as useResolvedContrast, In as useSidebarCollapsed };
3975
5402
 
3976
5403
  //# sourceMappingURL=index.js.map