@hanzo/ui 8.0.12 → 8.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-VGGGGXWS.cjs +1280 -0
- package/dist/chunk-VGGGGXWS.cjs.map +1 -0
- package/dist/chunk-YAYUPOE3.js +1229 -0
- package/dist/chunk-YAYUPOE3.js.map +1 -0
- package/dist/gitops.cjs +3 -3
- package/dist/gitops.d.ts +1 -1
- package/dist/gitops.js +1 -1
- package/dist/product/index.cjs +217 -975
- package/dist/product/index.cjs.map +1 -1
- package/dist/product/index.js +16 -935
- package/dist/product/index.js.map +1 -1
- package/dist/product/social/ChannelBadge.d.ts +3 -1
- package/dist/product/social/PostAgenda.d.ts +1 -1
- package/dist/product/social/PostCard.d.ts +1 -10
- package/dist/product/social/PostComposer.d.ts +1 -1
- package/dist/product/social/ProviderReadinessList.d.ts +1 -7
- package/dist/product/social/SocialResource.d.ts +7 -0
- package/dist/product/social/SocialSummaryBar.d.ts +1 -6
- package/dist/product/social/api.d.ts +128 -0
- package/dist/product/social/index.cjs +109 -0
- package/dist/product/social/index.cjs.map +1 -0
- package/dist/product/social/index.d.ts +2 -0
- package/dist/product/social/index.js +4 -0
- package/dist/product/social/index.js.map +1 -0
- package/package.json +27 -20
- package/LICENSE.md +0 -21
package/dist/product/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ThemeToggle } from '../chunk-42CU5GSF.js';
|
|
3
3
|
export { AgnosticThemeToggle, ThemeToggle, ThemeToggleNext } from '../chunk-42CU5GSF.js';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { classifyBackend, PageHeader, BackendStateCard, DataTable, asColor } from '../chunk-YAYUPOE3.js';
|
|
5
|
+
export { ACCOUNT_STATUSES, BackendStateCard, COMPOSE_MODES, CampaignCard, ChannelBadge, DataTable, EmptyState, FieldRow, FieldSelect, FieldSlider, FieldSwitch, FieldText, FieldTextArea, HostProvider, POST_STATUSES, PROVIDERS, PageHeader, PostAgenda, PostCard, PostComposer, PrimaryButton, ProviderReadinessList, LG as SLIDEOVER_LG, SlideOver, SocialResource, SocialSummaryBar, StatusTag, ViewToggle, accentFor, asColor, classifyBackend, classifyRead, contrastText, createSocialApi, formatPostTime, isHexColor, normalizeAccount, normalizeAccounts, normalizePost, normalizePosts, normalizeProviderCapability, normalizeProviders, normalizeSummary, parsePostTime, postDayBucket, postPreview, resolveAccent, setOrgAccent, useAccent, useHost } from '../chunk-YAYUPOE3.js';
|
|
6
|
+
import { createContext, useRef, useState, useEffect, useCallback, useLayoutEffect, useMemo, cloneElement, useContext } from 'react';
|
|
7
|
+
import { useTheme, XStack, Text, YStack, Card, Theme, useThemeName, Portal, Input, Button, Spinner, Popover, Separator, useControllableState } from '@hanzo/gui';
|
|
6
8
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
import { Check, ChevronRight, ChevronDown, RefreshCw, Grip, CreditCard, Users, Bot, MessageCircle, AppWindow, LayoutGrid, Sparkles, UserRound, Settings2, LogOut, ChevronsUpDown, Plus, Search,
|
|
9
|
+
import { Check, ChevronRight, ChevronDown, RefreshCw, Grip, CreditCard, Users, Bot, MessageCircle, AppWindow, LayoutGrid, Sparkles, UserRound, Settings2, LogOut, ChevronsUpDown, Plus, Search, Trash2, Cpu, Globe, Server, Info, CircleX, CircleCheck, X } from '@hanzogui/lucide-icons-2';
|
|
8
10
|
export { Boxes as CustomModelMark } from '@hanzogui/lucide-icons-2';
|
|
9
11
|
import { surfaceById } from '@hanzo/products';
|
|
10
12
|
import { HanzoLogo } from '@hanzo/logo/react';
|
|
@@ -674,12 +676,12 @@ function menuKeyDown(e, onClose) {
|
|
|
674
676
|
if (items.length === 0) return;
|
|
675
677
|
e.preventDefault();
|
|
676
678
|
const active = document.activeElement;
|
|
677
|
-
const
|
|
679
|
+
const current = active ? items.indexOf(active) : -1;
|
|
678
680
|
let next;
|
|
679
681
|
if (e.key === "Home") next = 0;
|
|
680
682
|
else if (e.key === "End") next = items.length - 1;
|
|
681
|
-
else if (e.key === "ArrowDown") next =
|
|
682
|
-
else next =
|
|
683
|
+
else if (e.key === "ArrowDown") next = current < 0 ? 0 : (current + 1) % items.length;
|
|
684
|
+
else next = current <= 0 ? items.length - 1 : current - 1;
|
|
683
685
|
items[next]?.focus();
|
|
684
686
|
}
|
|
685
687
|
var EDGE = 8;
|
|
@@ -854,8 +856,8 @@ var SURFACES = ORDER.map((id) => {
|
|
|
854
856
|
const s = surfaceById(id);
|
|
855
857
|
return { id, label: s.label, href: s.href, hint: s.domain };
|
|
856
858
|
});
|
|
857
|
-
function otherSurfaces(
|
|
858
|
-
return
|
|
859
|
+
function otherSurfaces(current) {
|
|
860
|
+
return current ? SURFACES.filter((s) => s.id !== current) : SURFACES;
|
|
859
861
|
}
|
|
860
862
|
function HanzoMark({ size = 22, color = "currentColor" }) {
|
|
861
863
|
return /* @__PURE__ */ jsxs(
|
|
@@ -912,7 +914,7 @@ function AppHeader({
|
|
|
912
914
|
onBrand,
|
|
913
915
|
org,
|
|
914
916
|
children,
|
|
915
|
-
current
|
|
917
|
+
current,
|
|
916
918
|
surfaces,
|
|
917
919
|
open,
|
|
918
920
|
user,
|
|
@@ -925,7 +927,7 @@ function AppHeader({
|
|
|
925
927
|
}) {
|
|
926
928
|
const [appsOpen, setAppsOpen] = useState(false);
|
|
927
929
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
928
|
-
const items = surfaces ?? otherSurfaces(
|
|
930
|
+
const items = surfaces ?? otherSurfaces(current);
|
|
929
931
|
const launch = (s) => {
|
|
930
932
|
setAppsOpen(false);
|
|
931
933
|
if (open) open(s);
|
|
@@ -1131,11 +1133,11 @@ function OrgSwitcher({ scope, orgs, pageSize = 20, current: given, create, picke
|
|
|
1131
1133
|
if (orgs) return filterOrgs(rows, query);
|
|
1132
1134
|
return [{ name: currentId, displayName: titleCase(currentId) }];
|
|
1133
1135
|
}, [orgs, rows, query, currentId]);
|
|
1134
|
-
const
|
|
1136
|
+
const current = useMemo(() => {
|
|
1135
1137
|
if (given && given.name === currentId) return given;
|
|
1136
1138
|
return rows.find((o) => o.name === currentId) ?? { name: currentId, displayName: titleCase(currentId) };
|
|
1137
1139
|
}, [given, rows, currentId]);
|
|
1138
|
-
const currentLabel =
|
|
1140
|
+
const currentLabel = current.displayName || titleCase(current.name);
|
|
1139
1141
|
const select = useCallback(
|
|
1140
1142
|
(org) => {
|
|
1141
1143
|
setOpen(false);
|
|
@@ -1158,7 +1160,7 @@ function OrgSwitcher({ scope, orgs, pageSize = 20, current: given, create, picke
|
|
|
1158
1160
|
};
|
|
1159
1161
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, placement: "bottom-start", children: [
|
|
1160
1162
|
/* @__PURE__ */ jsx(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { chromeless: true, height: 44, px: "$2", justify: "flex-start", "aria-label": `${currentLabel} \xB7 switch organization`, children: /* @__PURE__ */ jsxs(XStack, { items: "center", gap: "$2.5", flex: 1, minW: 0, children: [
|
|
1161
|
-
/* @__PURE__ */ jsx(OrgMark, { org:
|
|
1163
|
+
/* @__PURE__ */ jsx(OrgMark, { org: current, size: 30 }),
|
|
1162
1164
|
/* @__PURE__ */ jsx(Text, { flex: 1, minW: 0, fontSize: "$4", fontWeight: "800", color: "$color12", numberOfLines: 1, children: currentLabel }),
|
|
1163
1165
|
/* @__PURE__ */ jsx(ChevronsUpDown, { size: 15, color: "$color9" })
|
|
1164
1166
|
] }) }) }),
|
|
@@ -1589,203 +1591,6 @@ function SiteFooter({ footer, brand, tagline, meta, link = defaultLink2 }) {
|
|
|
1589
1591
|
] })
|
|
1590
1592
|
] });
|
|
1591
1593
|
}
|
|
1592
|
-
var HostCtx = createContext({});
|
|
1593
|
-
var HostProvider = ({ actions, children }) => /* @__PURE__ */ jsx(HostCtx.Provider, { value: actions, children });
|
|
1594
|
-
var useHost = () => useContext(HostCtx);
|
|
1595
|
-
function classifyBackend(e) {
|
|
1596
|
-
const status = typeof e?.status === "number" ? e.status : 0;
|
|
1597
|
-
const message = e instanceof Error ? e.message : String(e);
|
|
1598
|
-
if (status === 503) return { kind: "not-initialized", message };
|
|
1599
|
-
if (status === 404 || status === 405) return { kind: "unavailable", message };
|
|
1600
|
-
if (status === 501) return { kind: "not-implemented", message };
|
|
1601
|
-
if (status === 402) return { kind: "billing", message };
|
|
1602
|
-
if (status === 401) return { kind: "signin", message };
|
|
1603
|
-
if (status === 403) return { kind: "access", message };
|
|
1604
|
-
return { kind: "error", message };
|
|
1605
|
-
}
|
|
1606
|
-
function classifyRead(e) {
|
|
1607
|
-
const s = classifyBackend(e);
|
|
1608
|
-
return s.kind === "billing" ? null : s;
|
|
1609
|
-
}
|
|
1610
|
-
var TITLES = {
|
|
1611
|
-
"not-initialized": "Backend not initialized",
|
|
1612
|
-
unavailable: "Not available on this deployment yet",
|
|
1613
|
-
"not-implemented": "Not yet available",
|
|
1614
|
-
access: "Not enabled for your account",
|
|
1615
|
-
signin: "Your session expired",
|
|
1616
|
-
billing: "Add credits to continue",
|
|
1617
|
-
error: "Could not reach the backend"
|
|
1618
|
-
};
|
|
1619
|
-
var BODIES = {
|
|
1620
|
-
"not-initialized": "The /v1 route is mounted but its runtime (or the console API key it proxies to) is not configured on this deployment yet. Real data appears here once it is \u2014 no placeholder data is shown.",
|
|
1621
|
-
unavailable: "This endpoint is not mounted at the gateway on this host yet. The view lights up automatically once the route is live.",
|
|
1622
|
-
// 501 — a real, planned capability whose body ships in a later phase.
|
|
1623
|
-
"not-implemented": "This capability is planned but not wired yet. The backend answers honestly rather than pretending it worked \u2014 nothing here is fabricated, and the view lights up automatically once it ships.",
|
|
1624
|
-
// 403 for a SIGNED-IN user — never "sign in".
|
|
1625
|
-
access: "You're signed in, but this isn't enabled for your organization on this deployment, or it's an admin-only surface. It appears here automatically once your account has access \u2014 nothing is fabricated.",
|
|
1626
|
-
// 401 — the session itself lapsed; re-auth returns to this exact page.
|
|
1627
|
-
signin: "Your session has expired or isn\u2019t recognized here. Sign in again to continue where you left off.",
|
|
1628
|
-
// Empty → the card shows the backend's own message (the honest "Insufficient
|
|
1629
|
-
// balance. Please add credits…" from the gateway billing gate).
|
|
1630
|
-
billing: "",
|
|
1631
|
-
error: ""
|
|
1632
|
-
};
|
|
1633
|
-
function BackendStateCard({
|
|
1634
|
-
state,
|
|
1635
|
-
onRetry,
|
|
1636
|
-
hint
|
|
1637
|
-
}) {
|
|
1638
|
-
const { signIn, addCredits } = useHost();
|
|
1639
|
-
return /* @__PURE__ */ jsxs(Card, { borderWidth: 1, borderColor: "$borderColor", p: "$4", gap: "$2", maxWidth: 640, children: [
|
|
1640
|
-
/* @__PURE__ */ jsxs(XStack, { gap: "$2", items: "center", children: [
|
|
1641
|
-
/* @__PURE__ */ jsx(TriangleAlert, { size: 16 }),
|
|
1642
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$4", fontWeight: "700", children: TITLES[state.kind] })
|
|
1643
|
-
] }),
|
|
1644
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$3", color: "$color11", children: BODIES[state.kind] || state.message }),
|
|
1645
|
-
hint ? /* @__PURE__ */ jsx(Text, { fontSize: "$2", color: "$color10", children: hint }) : null,
|
|
1646
|
-
state.kind === "signin" && signIn ? /* @__PURE__ */ jsx(Button, { size: "$2", theme: "light", self: "flex-start", onPress: signIn, children: "Sign in again" }) : state.kind === "billing" && addCredits ? (
|
|
1647
|
-
// 402 — the org has no funded balance. Offer a top-up CTA (and keep Retry so
|
|
1648
|
-
// a returning, funded caller can reload in place).
|
|
1649
|
-
/* @__PURE__ */ jsxs(XStack, { gap: "$2", items: "center", flexWrap: "wrap", children: [
|
|
1650
|
-
/* @__PURE__ */ jsx(Button, { size: "$2", theme: "light", self: "flex-start", icon: /* @__PURE__ */ jsx(CreditCard, { size: 14 }), onPress: addCredits, children: "Add credits" }),
|
|
1651
|
-
onRetry ? /* @__PURE__ */ jsx(Button, { size: "$2", self: "flex-start", onPress: onRetry, children: "Retry" }) : null
|
|
1652
|
-
] })
|
|
1653
|
-
) : onRetry ? /* @__PURE__ */ jsx(Button, { size: "$2", self: "flex-start", onPress: onRetry, children: "Retry" }) : null
|
|
1654
|
-
] });
|
|
1655
|
-
}
|
|
1656
|
-
function PageHeader({
|
|
1657
|
-
title,
|
|
1658
|
-
subtitle,
|
|
1659
|
-
actions
|
|
1660
|
-
}) {
|
|
1661
|
-
return (
|
|
1662
|
-
// flexWrap lets the actions drop below the title on narrow screens; flex={1}
|
|
1663
|
-
// minW={0} lets the title column shrink so a long subtitle WRAPS instead of
|
|
1664
|
-
// running off the viewport (a flex child defaults to min-width:auto = content
|
|
1665
|
-
// width, which would overflow on mobile).
|
|
1666
|
-
/* @__PURE__ */ jsxs(XStack, { justify: "space-between", items: "flex-start", gap: "$3", flexWrap: "wrap", children: [
|
|
1667
|
-
/* @__PURE__ */ jsxs(YStack, { gap: "$1", flex: 1, minW: 200, children: [
|
|
1668
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$7", fontWeight: "500", letterSpacing: -0.4, children: title }),
|
|
1669
|
-
subtitle ? /* @__PURE__ */ jsx(Text, { fontSize: "$3", color: "$color11", children: subtitle }) : null
|
|
1670
|
-
] }),
|
|
1671
|
-
actions ? /* @__PURE__ */ jsx(XStack, { gap: "$2", items: "center", flexWrap: "wrap", width: "100%", $md: { width: "auto", justify: "flex-end" }, children: actions }) : null
|
|
1672
|
-
] })
|
|
1673
|
-
);
|
|
1674
|
-
}
|
|
1675
|
-
function SkeletonRows({ columns, count = 6 }) {
|
|
1676
|
-
return /* @__PURE__ */ jsx(YStack, { children: Array.from({ length: count }).map((_, r) => /* @__PURE__ */ jsx(XStack, { py: "$2.5", px: "$3", gap: "$3", borderTopWidth: 1, borderColor: "$borderColor", items: "center", children: columns.map((c, i) => /* @__PURE__ */ jsx(YStack, { width: c.width, flex: c.width ? void 0 : 1, minW: c.width ? void 0 : FLEX_MIN_COL_W, items: c.align === "right" ? "flex-end" : "flex-start", children: /* @__PURE__ */ jsx(
|
|
1677
|
-
"div",
|
|
1678
|
-
{
|
|
1679
|
-
className: "hz-skeleton",
|
|
1680
|
-
style: { height: 12, borderRadius: 6, width: `${[62, 40, 54, 34, 48][(i + r) % 5]}%` },
|
|
1681
|
-
"aria-hidden": true
|
|
1682
|
-
}
|
|
1683
|
-
) }, c.key)) }, r)) });
|
|
1684
|
-
}
|
|
1685
|
-
function DataTable({
|
|
1686
|
-
columns,
|
|
1687
|
-
rows,
|
|
1688
|
-
loading,
|
|
1689
|
-
empty = "Nothing here yet.",
|
|
1690
|
-
rowKey,
|
|
1691
|
-
onRowPress,
|
|
1692
|
-
isRowExpanded,
|
|
1693
|
-
renderExpanded,
|
|
1694
|
-
sort,
|
|
1695
|
-
onSortChange
|
|
1696
|
-
}) {
|
|
1697
|
-
const minTableW = columns.reduce((sum, c) => sum + (c.width ?? FLEX_MIN_COL_W), 0) + (columns.length + 1) * 12;
|
|
1698
|
-
return /* @__PURE__ */ jsxs(YStack, { borderWidth: 1, borderColor: "$borderColor", rounded: "$4", overflow: "hidden", children: [
|
|
1699
|
-
/* @__PURE__ */ jsx(YStack, { style: { overflowX: "auto", overflowY: "visible" }, children: /* @__PURE__ */ jsxs(YStack, { minW: minTableW, children: [
|
|
1700
|
-
/* @__PURE__ */ jsx(XStack, { bg: "$color1", py: "$2.5", px: "$3", gap: "$3", borderBottomWidth: 1, borderColor: "$borderColor", role: "row", children: columns.map((c) => {
|
|
1701
|
-
const sortable = c.sortable === true && !!onSortChange;
|
|
1702
|
-
const active = sortable && sort?.key === c.key;
|
|
1703
|
-
const Caret = !sortable ? null : !active ? ChevronsUpDown : sort?.dir === "asc" ? ChevronUp : ChevronDown;
|
|
1704
|
-
return /* @__PURE__ */ jsxs(
|
|
1705
|
-
XStack,
|
|
1706
|
-
{
|
|
1707
|
-
width: c.width,
|
|
1708
|
-
flex: c.width ? void 0 : 1,
|
|
1709
|
-
minW: c.width ? void 0 : FLEX_MIN_COL_W,
|
|
1710
|
-
items: "center",
|
|
1711
|
-
gap: "$1",
|
|
1712
|
-
justify: c.align === "right" ? "flex-end" : "flex-start",
|
|
1713
|
-
role: "columnheader",
|
|
1714
|
-
"aria-sort": sortable ? active ? sort?.dir === "asc" ? "ascending" : "descending" : "none" : void 0,
|
|
1715
|
-
"aria-label": sortable ? `Sort by ${c.header}` : void 0,
|
|
1716
|
-
cursor: sortable ? "pointer" : void 0,
|
|
1717
|
-
hoverStyle: sortable ? { opacity: 0.75 } : void 0,
|
|
1718
|
-
onPress: sortable ? () => onSortChange?.(c.key) : void 0,
|
|
1719
|
-
children: [
|
|
1720
|
-
/* @__PURE__ */ jsx(
|
|
1721
|
-
Text,
|
|
1722
|
-
{
|
|
1723
|
-
fontSize: "$1",
|
|
1724
|
-
fontWeight: "500",
|
|
1725
|
-
color: active ? "$color12" : "$color10",
|
|
1726
|
-
text: c.align === "right" ? "right" : "left",
|
|
1727
|
-
className: c.mono ? "hz-tnum" : void 0,
|
|
1728
|
-
children: c.header
|
|
1729
|
-
}
|
|
1730
|
-
),
|
|
1731
|
-
Caret ? /* @__PURE__ */ jsx(Caret, { size: 12, color: active ? "$color12" : "$color9" }) : null
|
|
1732
|
-
]
|
|
1733
|
-
},
|
|
1734
|
-
c.key
|
|
1735
|
-
);
|
|
1736
|
-
}) }),
|
|
1737
|
-
loading ? /* @__PURE__ */ jsx(SkeletonRows, { columns }) : rows.length > 0 ? /* @__PURE__ */ jsx(YStack, { children: rows.map((row) => {
|
|
1738
|
-
const expanded = (isRowExpanded?.(row) ?? false) && !!renderExpanded;
|
|
1739
|
-
return /* @__PURE__ */ jsxs(YStack, { children: [
|
|
1740
|
-
/* @__PURE__ */ jsx(
|
|
1741
|
-
XStack,
|
|
1742
|
-
{
|
|
1743
|
-
className: "hz-row",
|
|
1744
|
-
py: "$2.5",
|
|
1745
|
-
px: "$3",
|
|
1746
|
-
gap: "$3",
|
|
1747
|
-
borderTopWidth: 1,
|
|
1748
|
-
borderColor: "$borderColor",
|
|
1749
|
-
items: "center",
|
|
1750
|
-
bg: expanded ? "$color2" : void 0,
|
|
1751
|
-
hoverStyle: onRowPress ? { bg: "$color2" } : void 0,
|
|
1752
|
-
cursor: onRowPress ? "pointer" : void 0,
|
|
1753
|
-
onPress: onRowPress ? () => onRowPress(row) : void 0,
|
|
1754
|
-
children: columns.map((c) => {
|
|
1755
|
-
const cell = c.render ? c.render(row) : String(row[c.key] ?? "");
|
|
1756
|
-
return /* @__PURE__ */ jsx(
|
|
1757
|
-
YStack,
|
|
1758
|
-
{
|
|
1759
|
-
width: c.width,
|
|
1760
|
-
flex: c.width ? void 0 : 1,
|
|
1761
|
-
minW: c.width ? void 0 : FLEX_MIN_COL_W,
|
|
1762
|
-
justify: "center",
|
|
1763
|
-
items: c.align === "right" ? "flex-end" : "flex-start",
|
|
1764
|
-
children: typeof cell === "string" || typeof cell === "number" ? /* @__PURE__ */ jsx(
|
|
1765
|
-
Text,
|
|
1766
|
-
{
|
|
1767
|
-
fontSize: "$3",
|
|
1768
|
-
numberOfLines: 1,
|
|
1769
|
-
color: "$color12",
|
|
1770
|
-
text: c.align === "right" ? "right" : "left",
|
|
1771
|
-
className: c.mono ? "hz-mono" : void 0,
|
|
1772
|
-
children: cell
|
|
1773
|
-
}
|
|
1774
|
-
) : cell
|
|
1775
|
-
},
|
|
1776
|
-
c.key
|
|
1777
|
-
);
|
|
1778
|
-
})
|
|
1779
|
-
}
|
|
1780
|
-
),
|
|
1781
|
-
expanded && renderExpanded ? /* @__PURE__ */ jsx(YStack, { borderTopWidth: 1, borderColor: "$borderColor", bg: "$color1", children: renderExpanded(row) }) : null
|
|
1782
|
-
] }, rowKey(row));
|
|
1783
|
-
}) }) : null
|
|
1784
|
-
] }) }),
|
|
1785
|
-
!loading && rows.length === 0 ? /* @__PURE__ */ jsx(YStack, { py: "$8", px: "$4", items: "center", gap: "$1", borderTopWidth: 1, borderColor: "$borderColor", children: /* @__PURE__ */ jsx(Text, { color: "$color10", fontSize: "$3", text: "center", children: empty }) }) : null
|
|
1786
|
-
] });
|
|
1787
|
-
}
|
|
1788
|
-
var FLEX_MIN_COL_W = 120;
|
|
1789
1594
|
function CommerceResource({
|
|
1790
1595
|
title,
|
|
1791
1596
|
subtitle,
|
|
@@ -2068,131 +1873,6 @@ function AnimatedLogo({
|
|
|
2068
1873
|
}
|
|
2069
1874
|
);
|
|
2070
1875
|
}
|
|
2071
|
-
function isHexColor(v) {
|
|
2072
|
-
return typeof v === "string" && /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(v.trim());
|
|
2073
|
-
}
|
|
2074
|
-
function resolveAccent(theme) {
|
|
2075
|
-
if (!theme || !theme.isEnabled) return null;
|
|
2076
|
-
const hex = (theme.colorPrimary ?? "").trim();
|
|
2077
|
-
return isHexColor(hex) ? hex : null;
|
|
2078
|
-
}
|
|
2079
|
-
function expandHex(hex) {
|
|
2080
|
-
const h = hex.trim().toLowerCase();
|
|
2081
|
-
if (h.length === 4) return `#${h[1]}${h[1]}${h[2]}${h[2]}${h[3]}${h[3]}`;
|
|
2082
|
-
return h;
|
|
2083
|
-
}
|
|
2084
|
-
function contrastText(hex) {
|
|
2085
|
-
if (!isHexColor(hex)) return "#ffffff";
|
|
2086
|
-
const h = expandHex(hex);
|
|
2087
|
-
const r = parseInt(h.slice(1, 3), 16) / 255;
|
|
2088
|
-
const g = parseInt(h.slice(3, 5), 16) / 255;
|
|
2089
|
-
const b = parseInt(h.slice(5, 7), 16) / 255;
|
|
2090
|
-
const lin = (c) => c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
2091
|
-
const luminance = 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
|
|
2092
|
-
return luminance > 0.5 ? "#000000" : "#ffffff";
|
|
2093
|
-
}
|
|
2094
|
-
function accentFor(theme) {
|
|
2095
|
-
const hex = resolveAccent(theme);
|
|
2096
|
-
return { accent: hex, contrast: hex ? contrastText(hex) : "#ffffff" };
|
|
2097
|
-
}
|
|
2098
|
-
var DEFAULT = { accent: null, contrast: "#ffffff" };
|
|
2099
|
-
var current = DEFAULT;
|
|
2100
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
2101
|
-
function setOrgAccent(theme) {
|
|
2102
|
-
const next = accentFor(theme);
|
|
2103
|
-
if (next.accent === current.accent) return;
|
|
2104
|
-
current = next.accent ? next : DEFAULT;
|
|
2105
|
-
for (const l of listeners) l();
|
|
2106
|
-
}
|
|
2107
|
-
function subscribe(cb) {
|
|
2108
|
-
listeners.add(cb);
|
|
2109
|
-
return () => {
|
|
2110
|
-
listeners.delete(cb);
|
|
2111
|
-
};
|
|
2112
|
-
}
|
|
2113
|
-
function useAccent() {
|
|
2114
|
-
return useSyncExternalStore(
|
|
2115
|
-
subscribe,
|
|
2116
|
-
() => current,
|
|
2117
|
-
() => DEFAULT
|
|
2118
|
-
);
|
|
2119
|
-
}
|
|
2120
|
-
function PrimaryButton(props) {
|
|
2121
|
-
const { accent, contrast } = useAccent();
|
|
2122
|
-
if (accent) {
|
|
2123
|
-
return /* @__PURE__ */ jsx(Button, { style: { backgroundColor: accent, color: contrast, borderColor: accent }, ...props });
|
|
2124
|
-
}
|
|
2125
|
-
return /* @__PURE__ */ jsx(Button, { theme: "light", ...props });
|
|
2126
|
-
}
|
|
2127
|
-
function openHref2(href) {
|
|
2128
|
-
if (typeof window !== "undefined") window.open(href, "_blank", "noopener");
|
|
2129
|
-
}
|
|
2130
|
-
function EmptyState({
|
|
2131
|
-
icon: Icon,
|
|
2132
|
-
title,
|
|
2133
|
-
description,
|
|
2134
|
-
bullets,
|
|
2135
|
-
primary,
|
|
2136
|
-
secondary
|
|
2137
|
-
}) {
|
|
2138
|
-
return /* @__PURE__ */ jsxs(
|
|
2139
|
-
Card,
|
|
2140
|
-
{
|
|
2141
|
-
borderWidth: 1,
|
|
2142
|
-
borderColor: "$borderColor",
|
|
2143
|
-
borderStyle: "dashed",
|
|
2144
|
-
p: "$6",
|
|
2145
|
-
gap: "$4",
|
|
2146
|
-
items: "center",
|
|
2147
|
-
maxWidth: 640,
|
|
2148
|
-
self: "center",
|
|
2149
|
-
width: "100%",
|
|
2150
|
-
children: [
|
|
2151
|
-
/* @__PURE__ */ jsx(
|
|
2152
|
-
YStack,
|
|
2153
|
-
{
|
|
2154
|
-
width: 48,
|
|
2155
|
-
height: 48,
|
|
2156
|
-
items: "center",
|
|
2157
|
-
justify: "center",
|
|
2158
|
-
rounded: "$4",
|
|
2159
|
-
bg: "$color3",
|
|
2160
|
-
children: /* @__PURE__ */ jsx(Icon, { size: 24 })
|
|
2161
|
-
}
|
|
2162
|
-
),
|
|
2163
|
-
/* @__PURE__ */ jsxs(YStack, { gap: "$2", items: "center", maxW: 480, children: [
|
|
2164
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$6", fontWeight: "500", text: "center", letterSpacing: -0.3, children: title }),
|
|
2165
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$3", color: "$color11", text: "center", children: description })
|
|
2166
|
-
] }),
|
|
2167
|
-
bullets && bullets.length ? /* @__PURE__ */ jsx(YStack, { gap: "$2", self: "stretch", maxW: 420, mx: "auto", children: bullets.map((b) => /* @__PURE__ */ jsxs(XStack, { gap: "$2", items: "flex-start", children: [
|
|
2168
|
-
/* @__PURE__ */ jsx(YStack, { pt: "$1", children: /* @__PURE__ */ jsx(Check, { size: 14, color: "$color10" }) }),
|
|
2169
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$3", color: "$color11", flex: 1, children: b })
|
|
2170
|
-
] }, b)) }) : null,
|
|
2171
|
-
primary || secondary ? /* @__PURE__ */ jsxs(XStack, { gap: "$2", items: "center", flexWrap: "wrap", justify: "center", children: [
|
|
2172
|
-
primary ? /* @__PURE__ */ jsx(
|
|
2173
|
-
PrimaryButton,
|
|
2174
|
-
{
|
|
2175
|
-
icon: primary.icon,
|
|
2176
|
-
iconAfter: primary.href ? /* @__PURE__ */ jsx(ExternalLink, { size: 15 }) : /* @__PURE__ */ jsx(ArrowRight, { size: 15 }),
|
|
2177
|
-
onPress: () => primary.href ? openHref2(primary.href) : primary.onPress?.(),
|
|
2178
|
-
children: primary.label
|
|
2179
|
-
}
|
|
2180
|
-
) : null,
|
|
2181
|
-
secondary ? /* @__PURE__ */ jsx(
|
|
2182
|
-
Button,
|
|
2183
|
-
{
|
|
2184
|
-
chromeless: true,
|
|
2185
|
-
icon: secondary.icon,
|
|
2186
|
-
iconAfter: secondary.href ? /* @__PURE__ */ jsx(ExternalLink, { size: 14 }) : void 0,
|
|
2187
|
-
onPress: () => secondary.href ? openHref2(secondary.href) : secondary.onPress?.(),
|
|
2188
|
-
children: secondary.label
|
|
2189
|
-
}
|
|
2190
|
-
) : null
|
|
2191
|
-
] }) : null
|
|
2192
|
-
]
|
|
2193
|
-
}
|
|
2194
|
-
);
|
|
2195
|
-
}
|
|
2196
1876
|
function FadeIn({
|
|
2197
1877
|
children,
|
|
2198
1878
|
index = 0,
|
|
@@ -2203,125 +1883,6 @@ function FadeIn({
|
|
|
2203
1883
|
const delay = delayMs ?? index * step;
|
|
2204
1884
|
return /* @__PURE__ */ jsx("div", { className: "hz-fade-up", style: { animationDelay: `${delay}ms`, ...style }, children });
|
|
2205
1885
|
}
|
|
2206
|
-
function FieldRow({ label, children }) {
|
|
2207
|
-
return /* @__PURE__ */ jsxs(XStack, { gap: "$3", items: "flex-start", flexWrap: "wrap", children: [
|
|
2208
|
-
/* @__PURE__ */ jsx(Label, { width: "100%", pt: "$2", color: "$color11", fontSize: "$3", $md: { width: 180 }, children: label }),
|
|
2209
|
-
/* @__PURE__ */ jsx(YStack, { flex: 1, minW: 0, $md: { minW: 240 }, children })
|
|
2210
|
-
] });
|
|
2211
|
-
}
|
|
2212
|
-
function FieldText({
|
|
2213
|
-
value,
|
|
2214
|
-
onChange,
|
|
2215
|
-
disabled,
|
|
2216
|
-
secure,
|
|
2217
|
-
placeholder
|
|
2218
|
-
}) {
|
|
2219
|
-
return /* @__PURE__ */ jsx(
|
|
2220
|
-
Input,
|
|
2221
|
-
{
|
|
2222
|
-
value,
|
|
2223
|
-
onChangeText: onChange,
|
|
2224
|
-
disabled,
|
|
2225
|
-
secureTextEntry: secure,
|
|
2226
|
-
placeholder,
|
|
2227
|
-
autoCapitalize: "none"
|
|
2228
|
-
}
|
|
2229
|
-
);
|
|
2230
|
-
}
|
|
2231
|
-
function FieldTextArea({
|
|
2232
|
-
value,
|
|
2233
|
-
onChange,
|
|
2234
|
-
disabled,
|
|
2235
|
-
rows = 6
|
|
2236
|
-
}) {
|
|
2237
|
-
return /* @__PURE__ */ jsx(TextArea, { value, onChangeText: onChange, disabled, numberOfLines: rows });
|
|
2238
|
-
}
|
|
2239
|
-
function FieldSwitch({
|
|
2240
|
-
checked,
|
|
2241
|
-
onChange,
|
|
2242
|
-
disabled
|
|
2243
|
-
}) {
|
|
2244
|
-
return /* @__PURE__ */ jsx(Switch, { checked, onCheckedChange: onChange, disabled, size: "$3", children: /* @__PURE__ */ jsx(Switch.Thumb, {}) });
|
|
2245
|
-
}
|
|
2246
|
-
var CHEVRON = `data:image/svg+xml,${encodeURIComponent(
|
|
2247
|
-
'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#9a9a9a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>'
|
|
2248
|
-
)}`;
|
|
2249
|
-
function selectStyle(disabled) {
|
|
2250
|
-
return {
|
|
2251
|
-
width: "100%",
|
|
2252
|
-
boxSizing: "border-box",
|
|
2253
|
-
appearance: "none",
|
|
2254
|
-
WebkitAppearance: "none",
|
|
2255
|
-
MozAppearance: "none",
|
|
2256
|
-
background: `var(--background) url("${CHEVRON}") no-repeat right 10px center`,
|
|
2257
|
-
color: "var(--color12)",
|
|
2258
|
-
border: "1px solid var(--borderColor)",
|
|
2259
|
-
borderRadius: 9,
|
|
2260
|
-
padding: "9px 34px 9px 12px",
|
|
2261
|
-
fontSize: 14,
|
|
2262
|
-
lineHeight: "20px",
|
|
2263
|
-
fontFamily: "inherit",
|
|
2264
|
-
height: 40,
|
|
2265
|
-
outline: "none",
|
|
2266
|
-
cursor: disabled ? "not-allowed" : "pointer",
|
|
2267
|
-
opacity: disabled ? 0.5 : 1
|
|
2268
|
-
};
|
|
2269
|
-
}
|
|
2270
|
-
var OPTION_STYLE = { background: "var(--color2)", color: "var(--color12)" };
|
|
2271
|
-
function FieldSelect({
|
|
2272
|
-
value,
|
|
2273
|
-
options,
|
|
2274
|
-
onChange,
|
|
2275
|
-
disabled,
|
|
2276
|
-
placeholder = "Select\u2026"
|
|
2277
|
-
}) {
|
|
2278
|
-
const showPlaceholder = value === "" || !options.includes(value);
|
|
2279
|
-
return /* @__PURE__ */ jsxs(
|
|
2280
|
-
"select",
|
|
2281
|
-
{
|
|
2282
|
-
value: showPlaceholder ? "" : value,
|
|
2283
|
-
onChange: (e) => onChange(e.currentTarget.value),
|
|
2284
|
-
disabled,
|
|
2285
|
-
"aria-label": placeholder,
|
|
2286
|
-
style: selectStyle(disabled),
|
|
2287
|
-
children: [
|
|
2288
|
-
showPlaceholder ? /* @__PURE__ */ jsx("option", { value: "", disabled: true, style: OPTION_STYLE, children: placeholder }) : null,
|
|
2289
|
-
options.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, style: OPTION_STYLE, children: opt }, opt))
|
|
2290
|
-
]
|
|
2291
|
-
}
|
|
2292
|
-
);
|
|
2293
|
-
}
|
|
2294
|
-
function FieldSlider({
|
|
2295
|
-
value,
|
|
2296
|
-
min,
|
|
2297
|
-
max,
|
|
2298
|
-
step,
|
|
2299
|
-
onChange,
|
|
2300
|
-
disabled
|
|
2301
|
-
}) {
|
|
2302
|
-
return /* @__PURE__ */ jsxs(XStack, { gap: "$3", items: "center", children: [
|
|
2303
|
-
/* @__PURE__ */ jsx(Text, { width: 56, fontSize: "$3", color: "$color11", children: value }),
|
|
2304
|
-
/* @__PURE__ */ jsxs(
|
|
2305
|
-
Slider,
|
|
2306
|
-
{
|
|
2307
|
-
flex: 1,
|
|
2308
|
-
min,
|
|
2309
|
-
max,
|
|
2310
|
-
step,
|
|
2311
|
-
value: [value],
|
|
2312
|
-
onValueChange: (v) => onChange(v[0] ?? min),
|
|
2313
|
-
disabled,
|
|
2314
|
-
children: [
|
|
2315
|
-
/* @__PURE__ */ jsx(Slider.Track, { children: /* @__PURE__ */ jsx(Slider.TrackActive, {}) }),
|
|
2316
|
-
/* @__PURE__ */ jsx(Slider.Thumb, { index: 0, circular: true })
|
|
2317
|
-
]
|
|
2318
|
-
}
|
|
2319
|
-
)
|
|
2320
|
-
] });
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
// src/product/color.ts
|
|
2324
|
-
var asColor = (hex) => hex;
|
|
2325
1886
|
function ProductIcon({
|
|
2326
1887
|
icon: Icon,
|
|
2327
1888
|
color,
|
|
@@ -2525,169 +2086,6 @@ function SelectMenu({
|
|
|
2525
2086
|
}
|
|
2526
2087
|
);
|
|
2527
2088
|
}
|
|
2528
|
-
var LG = 1024;
|
|
2529
|
-
var lockCount = 0;
|
|
2530
|
-
var savedOverflow = "";
|
|
2531
|
-
function lockScroll() {
|
|
2532
|
-
if (typeof document === "undefined") return;
|
|
2533
|
-
if (lockCount === 0) {
|
|
2534
|
-
savedOverflow = document.body.style.overflow;
|
|
2535
|
-
document.body.style.overflow = "hidden";
|
|
2536
|
-
}
|
|
2537
|
-
lockCount++;
|
|
2538
|
-
}
|
|
2539
|
-
function unlockScroll() {
|
|
2540
|
-
if (typeof document === "undefined") return;
|
|
2541
|
-
lockCount = Math.max(0, lockCount - 1);
|
|
2542
|
-
if (lockCount === 0) document.body.style.overflow = savedOverflow;
|
|
2543
|
-
}
|
|
2544
|
-
function SlideOver({
|
|
2545
|
-
open,
|
|
2546
|
-
onClose,
|
|
2547
|
-
side = "right",
|
|
2548
|
-
size = 420,
|
|
2549
|
-
title,
|
|
2550
|
-
icon: Icon,
|
|
2551
|
-
iconColor,
|
|
2552
|
-
headerRight,
|
|
2553
|
-
ariaLabel,
|
|
2554
|
-
zIndex = 1e3,
|
|
2555
|
-
children
|
|
2556
|
-
}) {
|
|
2557
|
-
const panelRef = useRef(null);
|
|
2558
|
-
const openerRef = useRef(null);
|
|
2559
|
-
useEffect(() => {
|
|
2560
|
-
if (!open) return;
|
|
2561
|
-
openerRef.current = typeof document !== "undefined" ? document.activeElement : null;
|
|
2562
|
-
lockScroll();
|
|
2563
|
-
const t = window.setTimeout(() => {
|
|
2564
|
-
const el = panelRef.current;
|
|
2565
|
-
if (el && typeof el.focus === "function") el.focus();
|
|
2566
|
-
}, 0);
|
|
2567
|
-
return () => {
|
|
2568
|
-
window.clearTimeout(t);
|
|
2569
|
-
unlockScroll();
|
|
2570
|
-
const opener = openerRef.current;
|
|
2571
|
-
if (opener && opener instanceof HTMLElement && typeof opener.focus === "function") opener.focus();
|
|
2572
|
-
};
|
|
2573
|
-
}, [open]);
|
|
2574
|
-
useEffect(() => {
|
|
2575
|
-
if (!open) return;
|
|
2576
|
-
const onKey = (e) => {
|
|
2577
|
-
if (e.key === "Escape") {
|
|
2578
|
-
e.stopPropagation();
|
|
2579
|
-
onClose();
|
|
2580
|
-
}
|
|
2581
|
-
};
|
|
2582
|
-
window.addEventListener("keydown", onKey);
|
|
2583
|
-
return () => window.removeEventListener("keydown", onKey);
|
|
2584
|
-
}, [open, onClose]);
|
|
2585
|
-
const offscreen = side === "right" ? "translateX(100%)" : "translateX(-100%)";
|
|
2586
|
-
const edge = side === "right" ? { r: 0 } : { l: 0 };
|
|
2587
|
-
return /* @__PURE__ */ jsxs(
|
|
2588
|
-
YStack,
|
|
2589
|
-
{
|
|
2590
|
-
overflow: "hidden",
|
|
2591
|
-
pointerEvents: open ? "auto" : "none",
|
|
2592
|
-
"aria-hidden": !open,
|
|
2593
|
-
style: { position: "fixed", inset: 0, zIndex },
|
|
2594
|
-
children: [
|
|
2595
|
-
/* @__PURE__ */ jsx(
|
|
2596
|
-
YStack,
|
|
2597
|
-
{
|
|
2598
|
-
position: "absolute",
|
|
2599
|
-
t: 0,
|
|
2600
|
-
l: 0,
|
|
2601
|
-
r: 0,
|
|
2602
|
-
b: 0,
|
|
2603
|
-
bg: "rgba(0,0,0,0.55)",
|
|
2604
|
-
className: "hz-fade",
|
|
2605
|
-
style: { opacity: open ? 1 : 0 },
|
|
2606
|
-
onPress: onClose
|
|
2607
|
-
}
|
|
2608
|
-
),
|
|
2609
|
-
/* @__PURE__ */ jsx(
|
|
2610
|
-
YStack,
|
|
2611
|
-
{
|
|
2612
|
-
ref: panelRef,
|
|
2613
|
-
tabIndex: -1,
|
|
2614
|
-
role: "dialog",
|
|
2615
|
-
"aria-modal": open ? true : void 0,
|
|
2616
|
-
"aria-label": typeof title === "string" ? title : ariaLabel,
|
|
2617
|
-
position: "absolute",
|
|
2618
|
-
t: 0,
|
|
2619
|
-
b: 0,
|
|
2620
|
-
...edge,
|
|
2621
|
-
width: "100%",
|
|
2622
|
-
$lg: { width: size, maxW: "100vw" },
|
|
2623
|
-
bg: "$color1",
|
|
2624
|
-
borderLeftWidth: side === "right" ? 1 : 0,
|
|
2625
|
-
borderRightWidth: side === "left" ? 1 : 0,
|
|
2626
|
-
borderColor: "$borderColor",
|
|
2627
|
-
className: "hz-slide hz-elevation-4",
|
|
2628
|
-
style: {
|
|
2629
|
-
transform: open ? "translateX(0)" : offscreen,
|
|
2630
|
-
height: "100dvh",
|
|
2631
|
-
paddingTop: "env(safe-area-inset-top)",
|
|
2632
|
-
paddingBottom: "env(safe-area-inset-bottom)"
|
|
2633
|
-
},
|
|
2634
|
-
children: title !== void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2635
|
-
/* @__PURE__ */ jsxs(
|
|
2636
|
-
XStack,
|
|
2637
|
-
{
|
|
2638
|
-
items: "center",
|
|
2639
|
-
gap: "$2.5",
|
|
2640
|
-
px: "$4",
|
|
2641
|
-
height: 56,
|
|
2642
|
-
borderBottomWidth: 1,
|
|
2643
|
-
borderColor: "$borderColor",
|
|
2644
|
-
children: [
|
|
2645
|
-
Icon ? /* @__PURE__ */ jsx(Icon, { size: 18, color: iconColor ? asColor(iconColor) : void 0 }) : null,
|
|
2646
|
-
/* @__PURE__ */ jsx(Text, { flex: 1, fontSize: "$5", fontWeight: "700", color: "$color12", numberOfLines: 1, children: title }),
|
|
2647
|
-
headerRight,
|
|
2648
|
-
/* @__PURE__ */ jsx(Button, { chromeless: true, width: 44, height: 44, icon: /* @__PURE__ */ jsx(X, { size: 18 }), onPress: onClose, "aria-label": "Close" })
|
|
2649
|
-
]
|
|
2650
|
-
}
|
|
2651
|
-
),
|
|
2652
|
-
/* @__PURE__ */ jsx(ScrollView, { flex: 1, children: /* @__PURE__ */ jsx(YStack, { flex: 1, p: "$4", gap: "$3", children }) })
|
|
2653
|
-
] }) : (
|
|
2654
|
-
// Bare mode — the caller owns the full panel layout (e.g. the nav drawer
|
|
2655
|
-
// renders its own header + scroll + footer).
|
|
2656
|
-
children
|
|
2657
|
-
)
|
|
2658
|
-
}
|
|
2659
|
-
)
|
|
2660
|
-
]
|
|
2661
|
-
}
|
|
2662
|
-
);
|
|
2663
|
-
}
|
|
2664
|
-
var toneOf = (status) => {
|
|
2665
|
-
const s = status.toLowerCase();
|
|
2666
|
-
if (s === "green") return "green";
|
|
2667
|
-
if (s === "yellow") return "yellow";
|
|
2668
|
-
if (s === "red") return "red";
|
|
2669
|
-
if (["ready", "active", "running", "available", "ok", "live", "succeeded", "connected", "synced", "imported"].includes(s)) return "green";
|
|
2670
|
-
if (["creating", "provisioning", "pending", "updating", "attaching", "building", "deploying", "queued", "importing"].includes(s))
|
|
2671
|
-
return "yellow";
|
|
2672
|
-
if (["error", "failed", "degraded", "down", "canceled", "conflict"].includes(s)) return "red";
|
|
2673
|
-
return "neutral";
|
|
2674
|
-
};
|
|
2675
|
-
var TONE_BG = {
|
|
2676
|
-
green: "$color5",
|
|
2677
|
-
yellow: "$color4",
|
|
2678
|
-
red: "$color4",
|
|
2679
|
-
neutral: "$color3"
|
|
2680
|
-
};
|
|
2681
|
-
var TONE_FG = {
|
|
2682
|
-
green: "$color12",
|
|
2683
|
-
yellow: "$color12",
|
|
2684
|
-
red: "$color12",
|
|
2685
|
-
neutral: "$color11"
|
|
2686
|
-
};
|
|
2687
|
-
function StatusTag({ status }) {
|
|
2688
|
-
const tone2 = toneOf(status ?? "");
|
|
2689
|
-
return /* @__PURE__ */ jsx(Text, { fontSize: "$1", px: "$2", py: "$1", rounded: "$2", bg: TONE_BG[tone2], color: TONE_FG[tone2], children: status || "unknown" });
|
|
2690
|
-
}
|
|
2691
2089
|
var ToastContext = createContext(null);
|
|
2692
2090
|
var ACCENT3 = {
|
|
2693
2091
|
success: "$green10",
|
|
@@ -2784,324 +2182,7 @@ function useToast() {
|
|
|
2784
2182
|
if (!ctx) throw new Error("useToast must be used within <ToastProvider>");
|
|
2785
2183
|
return ctx;
|
|
2786
2184
|
}
|
|
2787
|
-
var META = {
|
|
2788
|
-
x: { label: "X", bg: "#0f0f12", fg: "#e6e6ea", mark: "\u{1D54F}" },
|
|
2789
|
-
facebook: { label: "Facebook", bg: "#1877f2", fg: "#ffffff", mark: "f" },
|
|
2790
|
-
instagram: { label: "Instagram", bg: "#e1306c", fg: "#ffffff", mark: "IG" },
|
|
2791
|
-
linkedin: { label: "LinkedIn", bg: "#0a66c2", fg: "#ffffff", mark: "in" },
|
|
2792
|
-
tiktok: { label: "TikTok", bg: "#111114", fg: "#25f4ee", mark: "TT" },
|
|
2793
|
-
youtube: { label: "YouTube", bg: "#ff0000", fg: "#ffffff", mark: "\u25B6" },
|
|
2794
|
-
threads: { label: "Threads", bg: "#111114", fg: "#e6e6ea", mark: "@" }
|
|
2795
|
-
};
|
|
2796
|
-
function ChannelBadge({
|
|
2797
|
-
channel,
|
|
2798
|
-
showLabel = false,
|
|
2799
|
-
size = 22
|
|
2800
|
-
}) {
|
|
2801
|
-
const m = META[channel] ?? META.x;
|
|
2802
|
-
return /* @__PURE__ */ jsxs(XStack, { items: "center", gap: "$2", children: [
|
|
2803
|
-
/* @__PURE__ */ jsx(
|
|
2804
|
-
YStack,
|
|
2805
|
-
{
|
|
2806
|
-
width: size,
|
|
2807
|
-
height: size,
|
|
2808
|
-
items: "center",
|
|
2809
|
-
justify: "center",
|
|
2810
|
-
rounded: "$2",
|
|
2811
|
-
bg: m.bg,
|
|
2812
|
-
children: /* @__PURE__ */ jsx(Text, { fontSize: "$1", fontWeight: "800", color: m.fg, children: m.mark })
|
|
2813
|
-
}
|
|
2814
|
-
),
|
|
2815
|
-
showLabel ? /* @__PURE__ */ jsx(Text, { fontSize: "$3", color: "$color12", children: m.label }) : null
|
|
2816
|
-
] });
|
|
2817
|
-
}
|
|
2818
|
-
var money = (cents) => `$${Math.round((cents || 0) / 100).toLocaleString()}`;
|
|
2819
|
-
function CampaignCard({ campaign }) {
|
|
2820
|
-
const pct = campaign.budget > 0 ? Math.min(100, campaign.spend / campaign.budget * 100) : 0;
|
|
2821
|
-
return /* @__PURE__ */ jsxs(Card, { p: "$4", gap: "$3", borderWidth: 1, borderColor: "$borderColor", width: "100%", children: [
|
|
2822
|
-
/* @__PURE__ */ jsxs(XStack, { items: "flex-start", justify: "space-between", gap: "$2", children: [
|
|
2823
|
-
/* @__PURE__ */ jsxs(YStack, { gap: "$1", children: [
|
|
2824
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$4", fontWeight: "700", children: campaign.name }),
|
|
2825
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$2", color: "$color11", children: campaign.channel })
|
|
2826
|
-
] }),
|
|
2827
|
-
/* @__PURE__ */ jsx(StatusTag, { status: campaign.status })
|
|
2828
|
-
] }),
|
|
2829
|
-
campaign.objective ? /* @__PURE__ */ jsx(Text, { fontSize: "$2", color: "$color11", children: campaign.objective }) : null,
|
|
2830
|
-
/* @__PURE__ */ jsxs(YStack, { gap: "$1.5", children: [
|
|
2831
|
-
/* @__PURE__ */ jsxs(XStack, { justify: "space-between", children: [
|
|
2832
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "$1", color: "$color11", children: [
|
|
2833
|
-
money(campaign.spend),
|
|
2834
|
-
" spent"
|
|
2835
|
-
] }),
|
|
2836
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "$1", color: "$color11", children: [
|
|
2837
|
-
money(campaign.budget),
|
|
2838
|
-
" budget"
|
|
2839
|
-
] })
|
|
2840
|
-
] }),
|
|
2841
|
-
/* @__PURE__ */ jsx(YStack, { height: 6, rounded: "$2", bg: "$color3", overflow: "hidden", children: /* @__PURE__ */ jsx(YStack, { height: 6, rounded: "$2", bg: "$color9", width: `${pct}%` }) })
|
|
2842
|
-
] })
|
|
2843
|
-
] });
|
|
2844
|
-
}
|
|
2845
|
-
|
|
2846
|
-
// src/product/social/format.ts
|
|
2847
|
-
function formatPostTime(unix) {
|
|
2848
|
-
if (!unix) return "\u2014";
|
|
2849
|
-
return new Date(unix * 1e3).toLocaleString(void 0, {
|
|
2850
|
-
month: "short",
|
|
2851
|
-
day: "numeric",
|
|
2852
|
-
hour: "2-digit",
|
|
2853
|
-
minute: "2-digit"
|
|
2854
|
-
});
|
|
2855
|
-
}
|
|
2856
|
-
function postDayBucket(unix) {
|
|
2857
|
-
const d = new Date(unix * 1e3);
|
|
2858
|
-
const key = `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}`;
|
|
2859
|
-
const label = d.toLocaleDateString(void 0, { weekday: "short", month: "short", day: "numeric" });
|
|
2860
|
-
return { key, label };
|
|
2861
|
-
}
|
|
2862
|
-
function postPreview(s) {
|
|
2863
|
-
const t = s.trim();
|
|
2864
|
-
return t.length > 72 ? `${t.slice(0, 72)}\u2026` : t || "\u2014";
|
|
2865
|
-
}
|
|
2866
|
-
function parsePostTime(dt) {
|
|
2867
|
-
const ms = Date.parse(dt.trim());
|
|
2868
|
-
return Number.isFinite(ms) && ms > 0 ? Math.floor(ms / 1e3) : 0;
|
|
2869
|
-
}
|
|
2870
|
-
function PostCard({
|
|
2871
|
-
post,
|
|
2872
|
-
onEdit,
|
|
2873
|
-
onDelete
|
|
2874
|
-
}) {
|
|
2875
|
-
const mediaCount = post.media?.length ?? 0;
|
|
2876
|
-
return /* @__PURE__ */ jsxs(Card, { p: "$3", gap: "$2.5", borderWidth: 1, borderColor: "$borderColor", width: "100%", children: [
|
|
2877
|
-
/* @__PURE__ */ jsxs(XStack, { items: "center", justify: "space-between", gap: "$2", children: [
|
|
2878
|
-
/* @__PURE__ */ jsxs(XStack, { items: "center", gap: "$2", children: [
|
|
2879
|
-
/* @__PURE__ */ jsx(ChannelBadge, { channel: post.channel }),
|
|
2880
|
-
/* @__PURE__ */ jsx(StatusTag, { status: post.status })
|
|
2881
|
-
] }),
|
|
2882
|
-
/* @__PURE__ */ jsxs(XStack, { gap: "$1", children: [
|
|
2883
|
-
onEdit ? /* @__PURE__ */ jsx(Button, { size: "$2", chromeless: true, icon: /* @__PURE__ */ jsx(Pencil, { size: 15 }), onPress: () => onEdit(post) }) : null,
|
|
2884
|
-
onDelete ? /* @__PURE__ */ jsx(Button, { size: "$2", chromeless: true, icon: /* @__PURE__ */ jsx(Trash2, { size: 15 }), onPress: () => onDelete(post) }) : null
|
|
2885
|
-
] })
|
|
2886
|
-
] }),
|
|
2887
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$3", color: "$color12", children: post.content }),
|
|
2888
|
-
/* @__PURE__ */ jsxs(XStack, { items: "center", justify: "space-between", gap: "$2", children: [
|
|
2889
|
-
post.scheduleAt ? /* @__PURE__ */ jsx(Text, { fontSize: "$1", color: "$color11", children: formatPostTime(post.scheduleAt) }) : /* @__PURE__ */ jsx(YStack, {}),
|
|
2890
|
-
mediaCount ? /* @__PURE__ */ jsxs(Text, { fontSize: "$1", color: "$color10", children: [
|
|
2891
|
-
mediaCount,
|
|
2892
|
-
" media"
|
|
2893
|
-
] }) : null
|
|
2894
|
-
] })
|
|
2895
|
-
] });
|
|
2896
|
-
}
|
|
2897
|
-
function PostAgenda({ posts, onOpen }) {
|
|
2898
|
-
const days = useMemo(() => {
|
|
2899
|
-
const timed = posts.filter((p) => (p.scheduleAt ?? 0) > 0).sort((a, b) => (a.scheduleAt ?? 0) - (b.scheduleAt ?? 0));
|
|
2900
|
-
const groups = [];
|
|
2901
|
-
const index = /* @__PURE__ */ new Map();
|
|
2902
|
-
for (const p of timed) {
|
|
2903
|
-
const { key, label } = postDayBucket(p.scheduleAt ?? 0);
|
|
2904
|
-
let i = index.get(key);
|
|
2905
|
-
if (i === void 0) {
|
|
2906
|
-
i = groups.length;
|
|
2907
|
-
index.set(key, i);
|
|
2908
|
-
groups.push({ label, items: [] });
|
|
2909
|
-
}
|
|
2910
|
-
groups[i].items.push(p);
|
|
2911
|
-
}
|
|
2912
|
-
return groups;
|
|
2913
|
-
}, [posts]);
|
|
2914
|
-
if (days.length === 0) {
|
|
2915
|
-
return /* @__PURE__ */ jsx(
|
|
2916
|
-
EmptyState,
|
|
2917
|
-
{
|
|
2918
|
-
icon: Calendar,
|
|
2919
|
-
title: "Nothing on the calendar",
|
|
2920
|
-
description: "Scheduled and timed posts appear here, grouped by day. Compose a post and pick Schedule to plan ahead."
|
|
2921
|
-
}
|
|
2922
|
-
);
|
|
2923
|
-
}
|
|
2924
|
-
return /* @__PURE__ */ jsx(YStack, { gap: "$4", children: days.map((d) => /* @__PURE__ */ jsxs(YStack, { gap: "$2", children: [
|
|
2925
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$3", fontWeight: "500", color: "$color11", children: d.label }),
|
|
2926
|
-
d.items.map((p) => /* @__PURE__ */ jsxs(
|
|
2927
|
-
XStack,
|
|
2928
|
-
{
|
|
2929
|
-
items: "center",
|
|
2930
|
-
justify: "space-between",
|
|
2931
|
-
gap: "$3",
|
|
2932
|
-
borderWidth: 1,
|
|
2933
|
-
borderColor: "$borderColor",
|
|
2934
|
-
rounded: "$4",
|
|
2935
|
-
px: "$4",
|
|
2936
|
-
py: "$3",
|
|
2937
|
-
cursor: "pointer",
|
|
2938
|
-
hoverStyle: { bg: "$color2" },
|
|
2939
|
-
onPress: () => onOpen(p),
|
|
2940
|
-
children: [
|
|
2941
|
-
/* @__PURE__ */ jsxs(YStack, { gap: "$1", flex: 1, children: [
|
|
2942
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$3", children: postPreview(p.content) }),
|
|
2943
|
-
/* @__PURE__ */ jsxs(XStack, { gap: "$2", items: "center", children: [
|
|
2944
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$1", color: "$color10", children: p.channel }),
|
|
2945
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "$1", color: "$color10", children: [
|
|
2946
|
-
"\xB7 ",
|
|
2947
|
-
formatPostTime(p.scheduleAt ?? 0)
|
|
2948
|
-
] })
|
|
2949
|
-
] })
|
|
2950
|
-
] }),
|
|
2951
|
-
/* @__PURE__ */ jsx(StatusTag, { status: p.status })
|
|
2952
|
-
]
|
|
2953
|
-
},
|
|
2954
|
-
p.id
|
|
2955
|
-
))
|
|
2956
|
-
] }, d.label)) });
|
|
2957
|
-
}
|
|
2958
|
-
var COMPOSE_MODES = ["draft", "schedule", "now"];
|
|
2959
|
-
var COMPOSE_LABEL = {
|
|
2960
|
-
draft: "Save draft",
|
|
2961
|
-
schedule: "Schedule",
|
|
2962
|
-
now: "Publish now"
|
|
2963
|
-
};
|
|
2964
|
-
function PostComposer({
|
|
2965
|
-
channels,
|
|
2966
|
-
providers,
|
|
2967
|
-
onSubmit
|
|
2968
|
-
}) {
|
|
2969
|
-
const [content, setContent] = useState("");
|
|
2970
|
-
const [channel, setChannel] = useState(channels[0] ?? "x");
|
|
2971
|
-
const [mode, setMode] = useState("draft");
|
|
2972
|
-
const [scheduleAt, setScheduleAt] = useState("");
|
|
2973
|
-
const [saving, setSaving] = useState(false);
|
|
2974
|
-
const [error, setError] = useState(null);
|
|
2975
|
-
const cap = providers.find((p) => p.provider === channel);
|
|
2976
|
-
const unconfigured = (mode === "now" || mode === "schedule") && !!cap && !cap.credentialsConfigured;
|
|
2977
|
-
const submit = async () => {
|
|
2978
|
-
if (!content.trim()) {
|
|
2979
|
-
setError("Content is required.");
|
|
2980
|
-
return;
|
|
2981
|
-
}
|
|
2982
|
-
let status = "draft";
|
|
2983
|
-
let at = 0;
|
|
2984
|
-
if (mode === "schedule") {
|
|
2985
|
-
at = parsePostTime(scheduleAt);
|
|
2986
|
-
if (at <= Math.floor(Date.now() / 1e3)) {
|
|
2987
|
-
setError("Pick a future date and time to schedule.");
|
|
2988
|
-
return;
|
|
2989
|
-
}
|
|
2990
|
-
status = "scheduled";
|
|
2991
|
-
} else if (mode === "now") {
|
|
2992
|
-
status = "scheduled";
|
|
2993
|
-
}
|
|
2994
|
-
setSaving(true);
|
|
2995
|
-
setError(null);
|
|
2996
|
-
const message = await onSubmit({ content: content.trim(), channel, status, scheduleAt: at }, mode);
|
|
2997
|
-
if (message) {
|
|
2998
|
-
setError(message);
|
|
2999
|
-
setSaving(false);
|
|
3000
|
-
}
|
|
3001
|
-
};
|
|
3002
|
-
return /* @__PURE__ */ jsxs(YStack, { gap: "$3", p: "$4", children: [
|
|
3003
|
-
/* @__PURE__ */ jsx(FieldRow, { label: "Content", children: /* @__PURE__ */ jsx(FieldTextArea, { value: content, onChange: setContent, disabled: saving }) }),
|
|
3004
|
-
/* @__PURE__ */ jsx(FieldRow, { label: "Channel", children: /* @__PURE__ */ jsx(FieldSelect, { value: channel, options: channels, onChange: setChannel, disabled: saving }) }),
|
|
3005
|
-
/* @__PURE__ */ jsx(FieldRow, { label: "When", children: /* @__PURE__ */ jsx(
|
|
3006
|
-
FieldSelect,
|
|
3007
|
-
{
|
|
3008
|
-
value: mode,
|
|
3009
|
-
options: [...COMPOSE_MODES],
|
|
3010
|
-
onChange: (v) => setMode(v),
|
|
3011
|
-
disabled: saving
|
|
3012
|
-
}
|
|
3013
|
-
) }),
|
|
3014
|
-
mode === "schedule" ? /* @__PURE__ */ jsx(FieldRow, { label: "Schedule at", children: /* @__PURE__ */ jsx(
|
|
3015
|
-
FieldText,
|
|
3016
|
-
{
|
|
3017
|
-
value: scheduleAt,
|
|
3018
|
-
onChange: setScheduleAt,
|
|
3019
|
-
placeholder: "2026-07-15 09:00",
|
|
3020
|
-
disabled: saving
|
|
3021
|
-
}
|
|
3022
|
-
) }) : null,
|
|
3023
|
-
unconfigured ? /* @__PURE__ */ jsxs(XStack, { items: "flex-start", gap: "$2", children: [
|
|
3024
|
-
/* @__PURE__ */ jsx(AlertTriangle, { size: 14, color: "var(--yellow10)" }),
|
|
3025
|
-
/* @__PURE__ */ jsxs(Text, { fontSize: "$1", color: "$color10", children: [
|
|
3026
|
-
channel,
|
|
3027
|
-
" isn\u2019t configured to publish yet \u2014 needs ",
|
|
3028
|
-
cap?.missingCredentials.join(", "),
|
|
3029
|
-
". The post is saved and marked failed on publish until credentials are supplied."
|
|
3030
|
-
] })
|
|
3031
|
-
] }) : null,
|
|
3032
|
-
error ? /* @__PURE__ */ jsx(Text, { fontSize: "$2", color: "$red10", children: error }) : null,
|
|
3033
|
-
/* @__PURE__ */ jsx(PrimaryButton, { onPress: submit, disabled: saving, children: saving ? "Working\u2026" : COMPOSE_LABEL[mode] })
|
|
3034
|
-
] });
|
|
3035
|
-
}
|
|
3036
|
-
function ProviderReadinessList({ providers }) {
|
|
3037
|
-
return /* @__PURE__ */ jsxs(YStack, { gap: "$2", children: [
|
|
3038
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$2", color: "$color10", children: "Network publish-readiness" }),
|
|
3039
|
-
providers.map((p) => /* @__PURE__ */ jsxs(XStack, { items: "center", justify: "space-between", gap: "$3", py: "$1", children: [
|
|
3040
|
-
/* @__PURE__ */ jsxs(XStack, { items: "center", gap: "$2", children: [
|
|
3041
|
-
p.credentialsConfigured ? /* @__PURE__ */ jsx(CheckCircle2, { size: 14, color: "var(--green10)" }) : /* @__PURE__ */ jsx(AlertTriangle, { size: 14, color: "var(--yellow10)" }),
|
|
3042
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$2", children: p.provider })
|
|
3043
|
-
] }),
|
|
3044
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$1", color: "$color10", children: p.credentialsConfigured ? "Ready" : `needs ${p.missingCredentials.join(", ")}` })
|
|
3045
|
-
] }, p.provider))
|
|
3046
|
-
] });
|
|
3047
|
-
}
|
|
3048
|
-
function SocialSummaryBar({ summary }) {
|
|
3049
|
-
const cells = [
|
|
3050
|
-
{ label: "Posts", value: summary.posts },
|
|
3051
|
-
{ label: "Scheduled", value: summary.scheduled },
|
|
3052
|
-
{ label: "Published", value: summary.published },
|
|
3053
|
-
{ label: "Accounts", value: summary.accounts }
|
|
3054
|
-
];
|
|
3055
|
-
return /* @__PURE__ */ jsx(XStack, { gap: "$3", flexWrap: "wrap", children: cells.map((c) => /* @__PURE__ */ jsxs(
|
|
3056
|
-
YStack,
|
|
3057
|
-
{
|
|
3058
|
-
gap: "$1",
|
|
3059
|
-
borderWidth: 1,
|
|
3060
|
-
borderColor: "$borderColor",
|
|
3061
|
-
rounded: "$4",
|
|
3062
|
-
px: "$4",
|
|
3063
|
-
py: "$3",
|
|
3064
|
-
minW: 140,
|
|
3065
|
-
children: [
|
|
3066
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$1", color: "$color10", children: c.label }),
|
|
3067
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$6", fontWeight: "500", className: "hz-tnum", children: c.value })
|
|
3068
|
-
]
|
|
3069
|
-
},
|
|
3070
|
-
c.label
|
|
3071
|
-
)) });
|
|
3072
|
-
}
|
|
3073
|
-
var OPTIONS = [
|
|
3074
|
-
{ id: "list", label: "List", icon: List },
|
|
3075
|
-
{ id: "calendar", label: "Calendar", icon: Calendar }
|
|
3076
|
-
];
|
|
3077
|
-
function ViewToggle({
|
|
3078
|
-
view,
|
|
3079
|
-
onChange
|
|
3080
|
-
}) {
|
|
3081
|
-
return /* @__PURE__ */ jsx(XStack, { borderWidth: 1, borderColor: "$borderColor", rounded: "$4", overflow: "hidden", children: OPTIONS.map((o) => {
|
|
3082
|
-
const Icon = o.icon;
|
|
3083
|
-
const active = view === o.id;
|
|
3084
|
-
return /* @__PURE__ */ jsxs(
|
|
3085
|
-
XStack,
|
|
3086
|
-
{
|
|
3087
|
-
items: "center",
|
|
3088
|
-
gap: "$2",
|
|
3089
|
-
px: "$3",
|
|
3090
|
-
py: "$2",
|
|
3091
|
-
cursor: "pointer",
|
|
3092
|
-
bg: active ? "$color4" : "transparent",
|
|
3093
|
-
hoverStyle: { bg: active ? "$color4" : "$color2" },
|
|
3094
|
-
onPress: () => onChange(o.id),
|
|
3095
|
-
children: [
|
|
3096
|
-
/* @__PURE__ */ jsx(Icon, { size: 14 }),
|
|
3097
|
-
/* @__PURE__ */ jsx(Text, { fontSize: "$2", fontWeight: active ? "500" : "400", children: o.label })
|
|
3098
|
-
]
|
|
3099
|
-
},
|
|
3100
|
-
o.id
|
|
3101
|
-
);
|
|
3102
|
-
}) });
|
|
3103
|
-
}
|
|
3104
2185
|
|
|
3105
|
-
export { AnimatedLogo, AppHeader, BRANDS,
|
|
2186
|
+
export { AnimatedLogo, AppHeader, BRANDS, BarChart, BarRows, BrandMark, CHART_OTHER, CHART_PALETTE, ComboBox, CommerceResource, ConfirmDelete, ContextMenu, Donut, Donut2 as DonutRing, DropdownMenu, FadeIn, FloatingMenu, GenericLogo, HANZO, HANZO_MARK_CONTENT, HanzoMark, HintButton, LUX, LegendDot, LineChart, MenuItemView, MenuLabelView, MenuPanel, MenuSeparatorView, MetricCard, Sparkline2 as MetricSparkline, MiniBars, OrgMark, OrgSwitcher, PARS, Panel, PortalTheme, ProductIcon, ProviderLogo, Reorder, SERIES, SURFACES, SearchInput, Segmented, SelectMenu, SiteFooter, SiteNav, Sparkline, ToastProvider, UtilBar, ZOO, colorForIndex, filterOptions, filterOrgs, isKnownOption, monogram, orgScope, otherSurfaces, providerInitials, renderMenuItems, resolveBrand, rowShift, targetIndex, useContainerWidth, useToast, utilColor };
|
|
3106
2187
|
//# sourceMappingURL=index.js.map
|
|
3107
2188
|
//# sourceMappingURL=index.js.map
|