@streamoid/settings 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +32 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.js +521 -365
- package/dist/index.mjs +521 -365
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
ExportDateModal: () => ExportDateModal,
|
|
42
42
|
INITIAL_USAGE_LOGS_STATE: () => INITIAL_USAGE_LOGS_STATE,
|
|
43
43
|
InviteUpdateModal: () => InviteUpdateModal,
|
|
44
|
+
MOCK_REFERRED_USERS: () => MOCK_REFERRED_USERS,
|
|
44
45
|
MemberCreditLimitModal: () => MemberCreditLimitModal,
|
|
45
46
|
MemberListFrame: () => MemberListFrame,
|
|
46
47
|
MemberListToolbar: () => MemberListToolbar,
|
|
@@ -56,6 +57,7 @@ __export(index_exports, {
|
|
|
56
57
|
ProfileAvatar: () => ProfileAvatar,
|
|
57
58
|
ProfileTab: () => ProfileTab,
|
|
58
59
|
REMOVE_REASON_MAX_LENGTH: () => REMOVE_REASON_MAX_LENGTH,
|
|
60
|
+
ReferralHistoryView: () => ReferralHistoryView,
|
|
59
61
|
ReferralTab: () => ReferralTab,
|
|
60
62
|
RemovePoolMemberModal: () => RemovePoolMemberModal,
|
|
61
63
|
SCOPE_LABELS: () => SCOPE_LABELS,
|
|
@@ -132,7 +134,9 @@ __export(index_exports, {
|
|
|
132
134
|
productsForCountry: () => productsForCountry,
|
|
133
135
|
readSettingsCaller: () => readSettingsCaller,
|
|
134
136
|
referralCodeOf: () => referralCodeOf,
|
|
137
|
+
referralCountLabel: () => referralCountLabel,
|
|
135
138
|
referralLink: () => referralLink,
|
|
139
|
+
referralSignupDate: () => referralSignupDate,
|
|
136
140
|
rememberSettingsCaller: () => rememberSettingsCaller,
|
|
137
141
|
resolveSettingsTabFromPath: () => resolveSettingsTabFromPath,
|
|
138
142
|
roundCredits: () => roundCredits,
|
|
@@ -140,6 +144,7 @@ __export(index_exports, {
|
|
|
140
144
|
sharedPoolBannerText: () => sharedPoolBannerText,
|
|
141
145
|
sharedPoolEndsText: () => sharedPoolEndsText,
|
|
142
146
|
sliceUsageLogsPage: () => sliceUsageLogsPage,
|
|
147
|
+
sortReferredUsers: () => sortReferredUsers,
|
|
143
148
|
sponsoredCreditsText: () => sponsoredCreditsText,
|
|
144
149
|
toCsv: () => toCsv,
|
|
145
150
|
toLocalDateInput: () => toLocalDateInput,
|
|
@@ -9786,7 +9791,11 @@ function Spinner() {
|
|
|
9786
9791
|
}
|
|
9787
9792
|
);
|
|
9788
9793
|
}
|
|
9789
|
-
function LoadError({
|
|
9794
|
+
function LoadError({
|
|
9795
|
+
message,
|
|
9796
|
+
onRetry,
|
|
9797
|
+
retryLabel = "Try again"
|
|
9798
|
+
}) {
|
|
9790
9799
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
9791
9800
|
"div",
|
|
9792
9801
|
{
|
|
@@ -9801,7 +9810,7 @@ function LoadError({ message, onRetry }) {
|
|
|
9801
9810
|
},
|
|
9802
9811
|
children: [
|
|
9803
9812
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { style: { margin: 0, fontFamily: T15.font, fontSize: T15.fsSm, lineHeight: T15.lhSm, color: T15.primary }, children: message }),
|
|
9804
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_ui13.ScButton, { text:
|
|
9813
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_ui13.ScButton, { text: retryLabel, variant: "outline", size: "sm", onClick: onRetry })
|
|
9805
9814
|
]
|
|
9806
9815
|
}
|
|
9807
9816
|
);
|
|
@@ -14493,14 +14502,158 @@ function referralCodeOf(user) {
|
|
|
14493
14502
|
function referralLink(code, origin) {
|
|
14494
14503
|
return code && origin ? `${origin}?referral_code=${encodeURIComponent(code)}` : "";
|
|
14495
14504
|
}
|
|
14505
|
+
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
14506
|
+
function referralSignupDate(iso) {
|
|
14507
|
+
const date = iso ? new Date(iso) : null;
|
|
14508
|
+
if (!date || Number.isNaN(date.valueOf())) return "\u2013";
|
|
14509
|
+
return `${date.getDate()} ${MONTHS[date.getMonth()]} ${date.getFullYear()}`;
|
|
14510
|
+
}
|
|
14511
|
+
function sortReferredUsers(users) {
|
|
14512
|
+
const time = (u) => {
|
|
14513
|
+
const t = new Date(u.createdAt).valueOf();
|
|
14514
|
+
return Number.isNaN(t) ? -Infinity : t;
|
|
14515
|
+
};
|
|
14516
|
+
return [...users].sort((a, b) => time(b) - time(a));
|
|
14517
|
+
}
|
|
14518
|
+
function referralCountLabel(count) {
|
|
14519
|
+
return `${count} ${count === 1 ? "person" : "people"} signed up with your link`;
|
|
14520
|
+
}
|
|
14521
|
+
var MOCK_REFERRED_USERS = [
|
|
14522
|
+
{ id: "r1", email: "chris@kepler.com", createdAt: "2025-11-09T10:30:00.000Z" },
|
|
14523
|
+
{ id: "r2", email: "maya@northwind.studio", createdAt: "2026-11-24T06:15:00.000Z" },
|
|
14524
|
+
{ id: "r3", email: "arjun@lumen.co", createdAt: "2026-03-02T12:00:00.000Z" }
|
|
14525
|
+
];
|
|
14526
|
+
|
|
14527
|
+
// src/referral-history.tsx
|
|
14528
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
14529
|
+
var TITLE_ID = "settings-referral-history-title";
|
|
14530
|
+
var SKELETON_ROWS = 3;
|
|
14531
|
+
var REFERRAL_HISTORY_EMPTY = "No one has signed up with your link yet. Share it to get started.";
|
|
14532
|
+
var LOAD_FAILED = "Couldn't load your referral history.";
|
|
14533
|
+
function ReferralHistory({
|
|
14534
|
+
load
|
|
14535
|
+
}) {
|
|
14536
|
+
const { value, error, retry } = useLoad(
|
|
14537
|
+
"referred-users",
|
|
14538
|
+
(signal) => load(signal),
|
|
14539
|
+
LOAD_FAILED
|
|
14540
|
+
);
|
|
14541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ReferralHistoryView, { users: value, error, onRetry: retry });
|
|
14542
|
+
}
|
|
14543
|
+
function ReferralHistoryView({ users, error, onRetry }) {
|
|
14544
|
+
let body;
|
|
14545
|
+
if (error) {
|
|
14546
|
+
body = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LoadError, { message: error, onRetry, retryLabel: "Retry" });
|
|
14547
|
+
} else if (!users) {
|
|
14548
|
+
body = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(HistorySkeleton, {});
|
|
14549
|
+
} else if (users.length === 0) {
|
|
14550
|
+
body = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Card2, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { style: { padding: T15.sp6xl }, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Muted, { children: REFERRAL_HISTORY_EMPTY }) }) });
|
|
14551
|
+
} else {
|
|
14552
|
+
body = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(HistoryTable, { users: sortReferredUsers(users) });
|
|
14553
|
+
}
|
|
14554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("section", { "aria-labelledby": TITLE_ID, className: "flex flex-col w-full", style: { gap: T15.spXl }, children: [
|
|
14555
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col", style: { gap: T15.spXs }, children: [
|
|
14556
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
14557
|
+
"h2",
|
|
14558
|
+
{
|
|
14559
|
+
id: TITLE_ID,
|
|
14560
|
+
style: {
|
|
14561
|
+
margin: 0,
|
|
14562
|
+
fontFamily: T15.font,
|
|
14563
|
+
fontSize: T15.fsSm,
|
|
14564
|
+
fontWeight: 400,
|
|
14565
|
+
lineHeight: T15.lhSm,
|
|
14566
|
+
color: "var(--alias-text---icons-tertiary)"
|
|
14567
|
+
},
|
|
14568
|
+
children: "Referral History"
|
|
14569
|
+
}
|
|
14570
|
+
),
|
|
14571
|
+
!error && users && users.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Muted, { children: referralCountLabel(users.length) })
|
|
14572
|
+
] }),
|
|
14573
|
+
body
|
|
14574
|
+
] });
|
|
14575
|
+
}
|
|
14576
|
+
function Card2({ children }) {
|
|
14577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
14578
|
+
"div",
|
|
14579
|
+
{
|
|
14580
|
+
className: "w-full overflow-clip",
|
|
14581
|
+
style: {
|
|
14582
|
+
backgroundColor: T15.surfaceBase,
|
|
14583
|
+
border: `1px solid ${T15.borderSubtle}`,
|
|
14584
|
+
borderRadius: T15.r3xl
|
|
14585
|
+
},
|
|
14586
|
+
children
|
|
14587
|
+
}
|
|
14588
|
+
);
|
|
14589
|
+
}
|
|
14590
|
+
var CELL = { padding: `${T15.spXl} ${T15.sp6xl}`, textAlign: "left" };
|
|
14591
|
+
var HEAD_CELL = {
|
|
14592
|
+
...CELL,
|
|
14593
|
+
fontFamily: T15.font,
|
|
14594
|
+
fontSize: T15.fsXs,
|
|
14595
|
+
lineHeight: T15.lhXs,
|
|
14596
|
+
fontWeight: 500,
|
|
14597
|
+
color: T15.muted
|
|
14598
|
+
};
|
|
14599
|
+
var BODY_CELL = {
|
|
14600
|
+
...CELL,
|
|
14601
|
+
fontFamily: T15.font,
|
|
14602
|
+
fontSize: T15.fsSm,
|
|
14603
|
+
lineHeight: T15.lhSm,
|
|
14604
|
+
borderTop: `1px solid ${T15.borderDivider}`
|
|
14605
|
+
};
|
|
14606
|
+
function HistoryTable({ users }) {
|
|
14607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Card2, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("table", { className: "w-full", style: { borderCollapse: "collapse" }, children: [
|
|
14608
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("tr", { children: [
|
|
14609
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("th", { scope: "col", style: HEAD_CELL, children: "Email" }),
|
|
14610
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("th", { scope: "col", style: { ...HEAD_CELL, textAlign: "right" }, children: "Signed up" })
|
|
14611
|
+
] }) }),
|
|
14612
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("tbody", { children: users.map((user) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("tr", { children: [
|
|
14613
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("td", { style: { ...BODY_CELL, color: T15.primary, wordBreak: "break-all" }, children: user.email }),
|
|
14614
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("td", { style: { ...BODY_CELL, color: T15.muted, textAlign: "right", whiteSpace: "nowrap" }, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("time", { dateTime: user.createdAt, children: referralSignupDate(user.createdAt) }) })
|
|
14615
|
+
] }, user.id)) })
|
|
14616
|
+
] }) });
|
|
14617
|
+
}
|
|
14618
|
+
function Bar({ width }) {
|
|
14619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
14620
|
+
"div",
|
|
14621
|
+
{
|
|
14622
|
+
className: "animate-pulse",
|
|
14623
|
+
style: {
|
|
14624
|
+
width,
|
|
14625
|
+
height: 12,
|
|
14626
|
+
borderRadius: "var(--radius-full)",
|
|
14627
|
+
backgroundColor: "var(--alias-fill-neutral-neutral)"
|
|
14628
|
+
}
|
|
14629
|
+
}
|
|
14630
|
+
);
|
|
14631
|
+
}
|
|
14632
|
+
function HistorySkeleton() {
|
|
14633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { role: "status", "aria-label": "Loading referral history", className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Card2, { children: Array.from({ length: SKELETON_ROWS }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
14634
|
+
"div",
|
|
14635
|
+
{
|
|
14636
|
+
className: "flex items-center justify-between",
|
|
14637
|
+
style: {
|
|
14638
|
+
padding: `${T15.spXl} ${T15.sp6xl}`,
|
|
14639
|
+
borderTop: i === 0 ? void 0 : `1px solid ${T15.borderDivider}`
|
|
14640
|
+
},
|
|
14641
|
+
children: [
|
|
14642
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Bar, { width: 180 }),
|
|
14643
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Bar, { width: 72 })
|
|
14644
|
+
]
|
|
14645
|
+
},
|
|
14646
|
+
i
|
|
14647
|
+
)) }) });
|
|
14648
|
+
}
|
|
14496
14649
|
|
|
14497
14650
|
// src/organization-integrations-content.tsx
|
|
14498
14651
|
var import_react26 = require("react");
|
|
14499
14652
|
var import_ui20 = require("@streamoid/ui");
|
|
14500
|
-
var
|
|
14653
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
14501
14654
|
var COLUMN = { app: "6.5rem", workspace: "9rem", date: "6.5rem", action: "4.75rem" };
|
|
14502
14655
|
function HeaderRow() {
|
|
14503
|
-
const cell = (label, width) => /* @__PURE__ */ (0,
|
|
14656
|
+
const cell = (label, width) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14504
14657
|
"span",
|
|
14505
14658
|
{
|
|
14506
14659
|
className: width ? "shrink-0" : "flex-1 min-w-0",
|
|
@@ -14518,7 +14671,7 @@ function HeaderRow() {
|
|
|
14518
14671
|
children: label
|
|
14519
14672
|
}
|
|
14520
14673
|
);
|
|
14521
|
-
return /* @__PURE__ */ (0,
|
|
14674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
14522
14675
|
"div",
|
|
14523
14676
|
{
|
|
14524
14677
|
className: "flex items-center",
|
|
@@ -14529,7 +14682,7 @@ function HeaderRow() {
|
|
|
14529
14682
|
cell("Workspace", COLUMN.workspace),
|
|
14530
14683
|
cell("Connected", COLUMN.date),
|
|
14531
14684
|
cell("Last used", COLUMN.date),
|
|
14532
|
-
/* @__PURE__ */ (0,
|
|
14685
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "shrink-0", style: { width: COLUMN.action } })
|
|
14533
14686
|
]
|
|
14534
14687
|
}
|
|
14535
14688
|
);
|
|
@@ -14538,7 +14691,7 @@ function ConnectionRow({ app, onRevoke }) {
|
|
|
14538
14691
|
const name = app.user?.name?.trim();
|
|
14539
14692
|
const email = app.user?.email ?? "";
|
|
14540
14693
|
const active = app.status === "active";
|
|
14541
|
-
const text2 = (value, width, color = T15.primary) => /* @__PURE__ */ (0,
|
|
14694
|
+
const text2 = (value, width, color = T15.primary) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14542
14695
|
"span",
|
|
14543
14696
|
{
|
|
14544
14697
|
className: "truncate shrink-0",
|
|
@@ -14547,7 +14700,7 @@ function ConnectionRow({ app, onRevoke }) {
|
|
|
14547
14700
|
children: value
|
|
14548
14701
|
}
|
|
14549
14702
|
);
|
|
14550
|
-
return /* @__PURE__ */ (0,
|
|
14703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
14551
14704
|
"div",
|
|
14552
14705
|
{
|
|
14553
14706
|
className: "flex items-center",
|
|
@@ -14558,10 +14711,10 @@ function ConnectionRow({ app, onRevoke }) {
|
|
|
14558
14711
|
opacity: active ? 1 : 0.6
|
|
14559
14712
|
},
|
|
14560
14713
|
children: [
|
|
14561
|
-
/* @__PURE__ */ (0,
|
|
14562
|
-
/* @__PURE__ */ (0,
|
|
14563
|
-
/* @__PURE__ */ (0,
|
|
14564
|
-
/* @__PURE__ */ (0,
|
|
14714
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center flex-1 min-w-0", style: { minWidth: 200, gap: T15.spMd }, children: [
|
|
14715
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ProfileAvatar, { name: name || email || "Member", size: 32 }),
|
|
14716
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col min-w-0", children: [
|
|
14717
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14565
14718
|
"span",
|
|
14566
14719
|
{
|
|
14567
14720
|
className: "truncate",
|
|
@@ -14569,17 +14722,17 @@ function ConnectionRow({ app, onRevoke }) {
|
|
|
14569
14722
|
children: name || email || "A member"
|
|
14570
14723
|
}
|
|
14571
14724
|
),
|
|
14572
|
-
name && email && /* @__PURE__ */ (0,
|
|
14725
|
+
name && email && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "truncate", style: { fontFamily: T15.font, fontSize: T15.fsSm, lineHeight: T15.lhSm, color: T15.muted }, children: email })
|
|
14573
14726
|
] })
|
|
14574
14727
|
] }),
|
|
14575
|
-
/* @__PURE__ */ (0,
|
|
14576
|
-
/* @__PURE__ */ (0,
|
|
14577
|
-
/* @__PURE__ */ (0,
|
|
14728
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center shrink-0", style: { width: COLUMN.app, gap: T15.spMd }, children: [
|
|
14729
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AppMark, { name: app.clientName, size: 24 }),
|
|
14730
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "truncate", style: { fontFamily: T15.font, fontSize: T15.fsSm, lineHeight: T15.lhSm, color: T15.primary }, children: app.clientName })
|
|
14578
14731
|
] }),
|
|
14579
14732
|
text2(workspaceLabel(app), COLUMN.workspace),
|
|
14580
14733
|
text2(formatDate2(app.createdAt), COLUMN.date),
|
|
14581
14734
|
text2(active ? lastUsedLabel(app.lastUsedAt) : "Revoked", COLUMN.date, T15.muted),
|
|
14582
|
-
/* @__PURE__ */ (0,
|
|
14735
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex justify-end shrink-0", style: { width: COLUMN.action }, children: active && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14583
14736
|
import_ui20.ScButton,
|
|
14584
14737
|
{
|
|
14585
14738
|
text: "Revoke",
|
|
@@ -14599,7 +14752,7 @@ function AccessCard({
|
|
|
14599
14752
|
activeCount,
|
|
14600
14753
|
onToggle
|
|
14601
14754
|
}) {
|
|
14602
|
-
return /* @__PURE__ */ (0,
|
|
14755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
14603
14756
|
"section",
|
|
14604
14757
|
{
|
|
14605
14758
|
"aria-label": "ChatGPT and Codex access",
|
|
@@ -14612,19 +14765,19 @@ function AccessCard({
|
|
|
14612
14765
|
borderRadius: T15.r3xl
|
|
14613
14766
|
},
|
|
14614
14767
|
children: [
|
|
14615
|
-
/* @__PURE__ */ (0,
|
|
14616
|
-
/* @__PURE__ */ (0,
|
|
14617
|
-
/* @__PURE__ */ (0,
|
|
14618
|
-
/* @__PURE__ */ (0,
|
|
14619
|
-
enabled === false && activeCount > 0 && /* @__PURE__ */ (0,
|
|
14768
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AppMark, { name: "ChatGPT and Codex" }),
|
|
14769
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col flex-1 min-w-0", style: { gap: T15.spXs }, children: [
|
|
14770
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { style: { fontFamily: T15.font, fontSize: T15.fsMd, fontWeight: 600, lineHeight: T15.lhMd, color: T15.primary }, children: "ChatGPT & Codex" }),
|
|
14771
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Muted, { children: "Let members use CXO from ChatGPT and Codex. Each member still chooses which workspace an app can reach, and the app gets only that member's permissions there." }),
|
|
14772
|
+
enabled === false && activeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { style: { fontFamily: T15.font, fontSize: T15.fsSm, lineHeight: T15.lhSm, color: T15.primary }, children: [
|
|
14620
14773
|
"Off: the ",
|
|
14621
14774
|
countLabel(activeCount, "connection"),
|
|
14622
14775
|
" below can't start new work until you turn this back on."
|
|
14623
14776
|
] })
|
|
14624
14777
|
] }),
|
|
14625
|
-
/* @__PURE__ */ (0,
|
|
14626
|
-
/* @__PURE__ */ (0,
|
|
14627
|
-
/* @__PURE__ */ (0,
|
|
14778
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center shrink-0", style: { alignSelf: "center", gap: T15.spMd, minHeight: 26 }, children: [
|
|
14779
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { style: { fontFamily: T15.font, fontSize: T15.fsSm, lineHeight: T15.lhSm, color: T15.muted }, children: enabled === null ? "" : enabled ? "On" : "Off" }),
|
|
14780
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { style: { display: "inline-flex", width: 41, height: 25, alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14628
14781
|
import_ui20.ScToggleSwitch,
|
|
14629
14782
|
{
|
|
14630
14783
|
checked: !!enabled,
|
|
@@ -14670,7 +14823,7 @@ function OrganizationIntegrationsContent() {
|
|
|
14670
14823
|
const [confirmOff, setConfirmOff] = (0, import_react26.useState)(false);
|
|
14671
14824
|
const [revoking, setRevoking] = (0, import_react26.useState)(null);
|
|
14672
14825
|
if (!canLoad) {
|
|
14673
|
-
return /* @__PURE__ */ (0,
|
|
14826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-col flex-1 min-w-0", style: { gap: T15.sp3xl }, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Muted, { children: !supported ? "Integrations aren't available here yet." : "Integrations are managed by organization admins." }) });
|
|
14674
14827
|
}
|
|
14675
14828
|
const value = data.value;
|
|
14676
14829
|
const rows = value ? sortConnections(value.rows) : [];
|
|
@@ -14708,8 +14861,8 @@ function OrganizationIntegrationsContent() {
|
|
|
14708
14861
|
toast.error(errorMessage(cause, { method: "DELETE" }));
|
|
14709
14862
|
}
|
|
14710
14863
|
}
|
|
14711
|
-
return /* @__PURE__ */ (0,
|
|
14712
|
-
/* @__PURE__ */ (0,
|
|
14864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 min-h-0 h-full", style: { gap: T15.sp3xl }, children: [
|
|
14865
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14713
14866
|
ScopeHeader,
|
|
14714
14867
|
{
|
|
14715
14868
|
kind: "organization",
|
|
@@ -14719,10 +14872,10 @@ function OrganizationIntegrationsContent() {
|
|
|
14719
14872
|
facts: [value && countLabel(activeRows.length, "active connection")]
|
|
14720
14873
|
}
|
|
14721
14874
|
),
|
|
14722
|
-
data.error && /* @__PURE__ */ (0,
|
|
14723
|
-
!value && !data.error && /* @__PURE__ */ (0,
|
|
14724
|
-
value && /* @__PURE__ */ (0,
|
|
14725
|
-
/* @__PURE__ */ (0,
|
|
14875
|
+
data.error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(LoadError, { message: data.error, onRetry: data.retry }),
|
|
14876
|
+
!value && !data.error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Spinner, {}),
|
|
14877
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
14878
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14726
14879
|
AccessCard,
|
|
14727
14880
|
{
|
|
14728
14881
|
enabled: value.enabled,
|
|
@@ -14731,7 +14884,7 @@ function OrganizationIntegrationsContent() {
|
|
|
14731
14884
|
onToggle: (next) => next ? void setAccess(true) : setConfirmOff(true)
|
|
14732
14885
|
}
|
|
14733
14886
|
),
|
|
14734
|
-
/* @__PURE__ */ (0,
|
|
14887
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14735
14888
|
MemberListToolbar,
|
|
14736
14889
|
{
|
|
14737
14890
|
activeTab: "active",
|
|
@@ -14741,7 +14894,7 @@ function OrganizationIntegrationsContent() {
|
|
|
14741
14894
|
activeCount: visible.length,
|
|
14742
14895
|
searchQuery: search,
|
|
14743
14896
|
onSearchChange: setSearch,
|
|
14744
|
-
action: revokedCount > 0 ? /* @__PURE__ */ (0,
|
|
14897
|
+
action: revokedCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14745
14898
|
import_ui20.ScButton,
|
|
14746
14899
|
{
|
|
14747
14900
|
text: showRevoked ? "Hide revoked" : `Show revoked (${revokedCount})`,
|
|
@@ -14752,30 +14905,30 @@ function OrganizationIntegrationsContent() {
|
|
|
14752
14905
|
) : void 0
|
|
14753
14906
|
}
|
|
14754
14907
|
),
|
|
14755
|
-
/* @__PURE__ */ (0,
|
|
14908
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14756
14909
|
MemberListFrame,
|
|
14757
14910
|
{
|
|
14758
|
-
header: /* @__PURE__ */ (0,
|
|
14911
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(HeaderRow, {}),
|
|
14759
14912
|
isEmpty: visible.length === 0,
|
|
14760
14913
|
emptyText: q ? "No connections match your search" : value.enabled ? "No one has connected ChatGPT or Codex yet" : "Turn on ChatGPT & Codex to let members connect",
|
|
14761
14914
|
grow: "fill",
|
|
14762
|
-
children: visible.map((app) => /* @__PURE__ */ (0,
|
|
14915
|
+
children: visible.map((app) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ConnectionRow, { app, onRevoke: () => setRevoking(app) }, app.id))
|
|
14763
14916
|
}
|
|
14764
14917
|
)
|
|
14765
14918
|
] }),
|
|
14766
|
-
confirmOff && /* @__PURE__ */ (0,
|
|
14919
|
+
confirmOff && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14767
14920
|
ConfirmActionModal,
|
|
14768
14921
|
{
|
|
14769
14922
|
title: "Turn off ChatGPT & Codex?",
|
|
14770
|
-
body: /* @__PURE__ */ (0,
|
|
14771
|
-
/* @__PURE__ */ (0,
|
|
14923
|
+
body: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
14924
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
|
|
14772
14925
|
"Members of ",
|
|
14773
14926
|
current?.name || "this organization",
|
|
14774
14927
|
" won't be able to connect ChatGPT or Codex",
|
|
14775
14928
|
activeRows.length > 0 ? `, and the ${countLabel(activeRows.length, "existing connection")} will stop working` : "",
|
|
14776
14929
|
"."
|
|
14777
14930
|
] }),
|
|
14778
|
-
/* @__PURE__ */ (0,
|
|
14931
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { style: { color: T15.muted, fontSize: T15.fsSm, lineHeight: T15.lhSm }, children: [
|
|
14779
14932
|
REVOKE_TIMING,
|
|
14780
14933
|
" Connections come back when you turn this on again."
|
|
14781
14934
|
] })
|
|
@@ -14786,20 +14939,20 @@ function OrganizationIntegrationsContent() {
|
|
|
14786
14939
|
onConfirm: () => setAccess(false)
|
|
14787
14940
|
}
|
|
14788
14941
|
),
|
|
14789
|
-
revoking && /* @__PURE__ */ (0,
|
|
14942
|
+
revoking && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14790
14943
|
ConfirmActionModal,
|
|
14791
14944
|
{
|
|
14792
14945
|
title: `Revoke ${revoking.clientName}?`,
|
|
14793
|
-
body: /* @__PURE__ */ (0,
|
|
14794
|
-
/* @__PURE__ */ (0,
|
|
14946
|
+
body: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
14947
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
|
|
14795
14948
|
revoking.user?.name || revoking.user?.email || "This member",
|
|
14796
14949
|
"'s ",
|
|
14797
14950
|
revoking.clientName,
|
|
14798
14951
|
" will no longer be able to use CXO in ",
|
|
14799
|
-
/* @__PURE__ */ (0,
|
|
14952
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { style: { fontWeight: 600 }, children: workspaceLabel(revoking) }),
|
|
14800
14953
|
"."
|
|
14801
14954
|
] }),
|
|
14802
|
-
/* @__PURE__ */ (0,
|
|
14955
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { style: { color: T15.muted, fontSize: T15.fsSm, lineHeight: T15.lhSm }, children: [
|
|
14803
14956
|
REVOKE_TIMING,
|
|
14804
14957
|
" They can connect again unless you turn access off."
|
|
14805
14958
|
] })
|
|
@@ -14814,7 +14967,7 @@ function OrganizationIntegrationsContent() {
|
|
|
14814
14967
|
}
|
|
14815
14968
|
|
|
14816
14969
|
// src/settings-content.tsx
|
|
14817
|
-
var
|
|
14970
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
14818
14971
|
function deriveInitials(name) {
|
|
14819
14972
|
return name.split(/\s+/).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("") || "WS";
|
|
14820
14973
|
}
|
|
@@ -14850,7 +15003,7 @@ function SettingsNavItem({
|
|
|
14850
15003
|
onTabChange
|
|
14851
15004
|
}) {
|
|
14852
15005
|
const isActive = activeTab === tab;
|
|
14853
|
-
return /* @__PURE__ */ (0,
|
|
15006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SettingsTooltip, { content: TAB_DESCRIPTIONS[tab], placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
14854
15007
|
import_ui21.ScSidebarMenu,
|
|
14855
15008
|
{
|
|
14856
15009
|
icon: icon(isActive ? PRIMARY_COLOR3 : MUTED_COLOR2),
|
|
@@ -14882,7 +15035,7 @@ function SettingsNav({
|
|
|
14882
15035
|
showIntegrations = false,
|
|
14883
15036
|
showReferral = false
|
|
14884
15037
|
}) {
|
|
14885
|
-
const item = (tab, icon) => /* @__PURE__ */ (0,
|
|
15038
|
+
const item = (tab, icon) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
14886
15039
|
SettingsNavItem,
|
|
14887
15040
|
{
|
|
14888
15041
|
tab,
|
|
@@ -14892,7 +15045,7 @@ function SettingsNav({
|
|
|
14892
15045
|
onTabChange
|
|
14893
15046
|
}
|
|
14894
15047
|
);
|
|
14895
|
-
return /* @__PURE__ */ (0,
|
|
15048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
14896
15049
|
"div",
|
|
14897
15050
|
{
|
|
14898
15051
|
className: "flex flex-col items-start shrink-0 relative overflow-y-auto",
|
|
@@ -14915,43 +15068,43 @@ function SettingsNav({
|
|
|
14915
15068
|
gap: "var(--spacing-5xl)"
|
|
14916
15069
|
},
|
|
14917
15070
|
children: [
|
|
14918
|
-
/* @__PURE__ */ (0,
|
|
14919
|
-
/* @__PURE__ */ (0,
|
|
14920
|
-
item("profile", (color) => /* @__PURE__ */ (0,
|
|
14921
|
-
item("workspaceList", (color) => /* @__PURE__ */ (0,
|
|
14922
|
-
showConnectedApps && item("connectedApps", (color) => /* @__PURE__ */ (0,
|
|
14923
|
-
showReferral && item("referral", (color) => /* @__PURE__ */ (0,
|
|
15071
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col w-full", style: { gap: "var(--spacing-md)" }, children: [
|
|
15072
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { padding: "4px 12px", fontSize: 11, fontWeight: 500, color: MUTED_COLOR2, textTransform: "uppercase", letterSpacing: "0.08em" }, children: "Account" }),
|
|
15073
|
+
item("profile", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconUser, { className: "w-5 h-5", color })),
|
|
15074
|
+
item("workspaceList", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconSwitch, { className: "w-5 h-5", color })),
|
|
15075
|
+
showConnectedApps && item("connectedApps", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SiconPlug_default, { className: "w-5 h-5", color })),
|
|
15076
|
+
showReferral && item("referral", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconReferral, { className: "w-5 h-5", color }))
|
|
14924
15077
|
] }),
|
|
14925
|
-
/* @__PURE__ */ (0,
|
|
14926
|
-
/* @__PURE__ */ (0,
|
|
14927
|
-
/* @__PURE__ */ (0,
|
|
14928
|
-
item("workspace", (color) => /* @__PURE__ */ (0,
|
|
14929
|
-
item("workspaceMembers", (color) => /* @__PURE__ */ (0,
|
|
14930
|
-
isWorkspaceAdmin && /* @__PURE__ */ (0,
|
|
14931
|
-
item("billing", (color) => /* @__PURE__ */ (0,
|
|
14932
|
-
item("apikey", (color) => /* @__PURE__ */ (0,
|
|
15078
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui21.ScHDivider, {}),
|
|
15079
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col w-full", style: { gap: "var(--spacing-md)" }, children: [
|
|
15080
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { title: workspaceName ?? void 0, style: { padding: "4px 12px", fontSize: 11, fontWeight: 500, color: MUTED_COLOR2, textTransform: "uppercase", letterSpacing: "0.08em" }, children: "Workspace" }),
|
|
15081
|
+
item("workspace", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconSettings, { className: "w-5 h-5", color })),
|
|
15082
|
+
item("workspaceMembers", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconTeam, { className: "w-5 h-5", color })),
|
|
15083
|
+
isWorkspaceAdmin && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
15084
|
+
item("billing", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconBilling, { className: "w-5 h-5", color })),
|
|
15085
|
+
item("apikey", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SiconKey_default, { className: "w-5 h-5", color }))
|
|
14933
15086
|
] }),
|
|
14934
|
-
!isWorkspaceAdmin && /* @__PURE__ */ (0,
|
|
15087
|
+
!isWorkspaceAdmin && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { style: { margin: "4px 12px", fontSize: 12, lineHeight: "18px", color: MUTED_COLOR2 }, children: "Contact your workspace admin for credit top-ups and billing history." })
|
|
14935
15088
|
] }),
|
|
14936
|
-
/* @__PURE__ */ (0,
|
|
14937
|
-
/* @__PURE__ */ (0,
|
|
14938
|
-
/* @__PURE__ */ (0,
|
|
14939
|
-
item("organizationList", (color) => /* @__PURE__ */ (0,
|
|
14940
|
-
item("organization", (color) => /* @__PURE__ */ (0,
|
|
14941
|
-
item("organizationWorkspaces", (color) => /* @__PURE__ */ (0,
|
|
14942
|
-
showIntegrations && item("organizationIntegrations", (color) => /* @__PURE__ */ (0,
|
|
14943
|
-
] }) : /* @__PURE__ */ (0,
|
|
14944
|
-
/* @__PURE__ */ (0,
|
|
15089
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui21.ScHDivider, {}),
|
|
15090
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col w-full", style: { gap: "var(--spacing-md)" }, children: hasOrganization ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
15091
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { style: { padding: "4px 12px", fontSize: 11, fontWeight: 500, color: MUTED_COLOR2, textTransform: "uppercase", letterSpacing: "0.08em" }, children: "Organization" }),
|
|
15092
|
+
item("organizationList", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconSwitch, { className: "w-5 h-5", color })),
|
|
15093
|
+
item("organization", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconTeam, { className: "w-5 h-5", color })),
|
|
15094
|
+
item("organizationWorkspaces", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconWorkspace, { className: "w-5 h-5", color })),
|
|
15095
|
+
showIntegrations && item("organizationIntegrations", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SiconPlug_default, { className: "w-5 h-5", color }))
|
|
15096
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
15097
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
14945
15098
|
SettingsNavItem,
|
|
14946
15099
|
{
|
|
14947
15100
|
tab: "organization",
|
|
14948
15101
|
label: "Organization",
|
|
14949
|
-
icon: (color) => /* @__PURE__ */ (0,
|
|
15102
|
+
icon: (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconGlobe, { className: "w-5 h-5", color }),
|
|
14950
15103
|
activeTab,
|
|
14951
15104
|
onTabChange
|
|
14952
15105
|
}
|
|
14953
15106
|
),
|
|
14954
|
-
item("organizationList", (color) => /* @__PURE__ */ (0,
|
|
15107
|
+
item("organizationList", (color) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconSwitch, { className: "w-5 h-5", color }))
|
|
14955
15108
|
] }) })
|
|
14956
15109
|
]
|
|
14957
15110
|
}
|
|
@@ -14960,7 +15113,7 @@ function SettingsNav({
|
|
|
14960
15113
|
var SPECIALIZATION_ICON_SIZE = 24;
|
|
14961
15114
|
function SpecializationIcon({ iconUrl }) {
|
|
14962
15115
|
if (iconUrl) {
|
|
14963
|
-
return /* @__PURE__ */ (0,
|
|
15116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
14964
15117
|
"img",
|
|
14965
15118
|
{
|
|
14966
15119
|
src: iconUrl,
|
|
@@ -14973,7 +15126,7 @@ function SpecializationIcon({ iconUrl }) {
|
|
|
14973
15126
|
}
|
|
14974
15127
|
);
|
|
14975
15128
|
}
|
|
14976
|
-
return /* @__PURE__ */ (0,
|
|
15129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
14977
15130
|
import_icons18.SiconBolt,
|
|
14978
15131
|
{
|
|
14979
15132
|
style: {
|
|
@@ -15046,15 +15199,15 @@ function SpecializationDropdown({
|
|
|
15046
15199
|
};
|
|
15047
15200
|
}, [open]);
|
|
15048
15201
|
const selected = options.find((o) => o.id === value);
|
|
15049
|
-
return /* @__PURE__ */ (0,
|
|
15202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15050
15203
|
"div",
|
|
15051
15204
|
{
|
|
15052
15205
|
ref: containerRef,
|
|
15053
15206
|
className: "w-full",
|
|
15054
15207
|
style: { position: "relative" },
|
|
15055
15208
|
children: [
|
|
15056
|
-
/* @__PURE__ */ (0,
|
|
15057
|
-
/* @__PURE__ */ (0,
|
|
15209
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("style", { children: DROPDOWN_TRIGGER_STYLES }),
|
|
15210
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15058
15211
|
"div",
|
|
15059
15212
|
{
|
|
15060
15213
|
className: "spec-dropdown-trigger",
|
|
@@ -15062,7 +15215,7 @@ function SpecializationDropdown({
|
|
|
15062
15215
|
onClick: () => !disabled && setOpen((v) => !v),
|
|
15063
15216
|
"aria-haspopup": "listbox",
|
|
15064
15217
|
"aria-expanded": open,
|
|
15065
|
-
children: /* @__PURE__ */ (0,
|
|
15218
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15066
15219
|
import_ui22.ScTextField,
|
|
15067
15220
|
{
|
|
15068
15221
|
label: "Specialization",
|
|
@@ -15070,8 +15223,8 @@ function SpecializationDropdown({
|
|
|
15070
15223
|
value: selected?.label ?? "",
|
|
15071
15224
|
placeholderFilled: "Select specialization",
|
|
15072
15225
|
tfGroup: "icon-left-right",
|
|
15073
|
-
tfLeftIcon: /* @__PURE__ */ (0,
|
|
15074
|
-
tfRightIcon: /* @__PURE__ */ (0,
|
|
15226
|
+
tfLeftIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SpecializationIcon, { iconUrl: selected?.iconUrl }),
|
|
15227
|
+
tfRightIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15075
15228
|
"span",
|
|
15076
15229
|
{
|
|
15077
15230
|
style: {
|
|
@@ -15081,7 +15234,7 @@ function SpecializationDropdown({
|
|
|
15081
15234
|
transform: open ? "rotate(180deg)" : "none",
|
|
15082
15235
|
transition: "transform 120ms ease-out"
|
|
15083
15236
|
},
|
|
15084
|
-
children: /* @__PURE__ */ (0,
|
|
15237
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconDown, {})
|
|
15085
15238
|
}
|
|
15086
15239
|
),
|
|
15087
15240
|
className: "sc-text-field-full-width",
|
|
@@ -15092,7 +15245,7 @@ function SpecializationDropdown({
|
|
|
15092
15245
|
)
|
|
15093
15246
|
}
|
|
15094
15247
|
),
|
|
15095
|
-
open && /* @__PURE__ */ (0,
|
|
15248
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15096
15249
|
"div",
|
|
15097
15250
|
{
|
|
15098
15251
|
role: "listbox",
|
|
@@ -15114,11 +15267,11 @@ function SpecializationDropdown({
|
|
|
15114
15267
|
},
|
|
15115
15268
|
children: options.map((opt) => {
|
|
15116
15269
|
const isActive = opt.id === value;
|
|
15117
|
-
return /* @__PURE__ */ (0,
|
|
15270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15118
15271
|
import_ui21.ScMenuOptions,
|
|
15119
15272
|
{
|
|
15120
15273
|
text: opt.label,
|
|
15121
|
-
icon: /* @__PURE__ */ (0,
|
|
15274
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SpecializationIcon, { iconUrl: opt.iconUrl }),
|
|
15122
15275
|
hover: isActive ? "true" : "false",
|
|
15123
15276
|
variant: "default",
|
|
15124
15277
|
role: "option",
|
|
@@ -15162,15 +15315,15 @@ function LanguageDropdown({
|
|
|
15162
15315
|
document.removeEventListener("keydown", handleKeyDown);
|
|
15163
15316
|
};
|
|
15164
15317
|
}, [open]);
|
|
15165
|
-
return /* @__PURE__ */ (0,
|
|
15318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15166
15319
|
"div",
|
|
15167
15320
|
{
|
|
15168
15321
|
ref: containerRef,
|
|
15169
15322
|
className: "w-full",
|
|
15170
15323
|
style: { position: "relative" },
|
|
15171
15324
|
children: [
|
|
15172
|
-
/* @__PURE__ */ (0,
|
|
15173
|
-
/* @__PURE__ */ (0,
|
|
15325
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("style", { children: DROPDOWN_TRIGGER_STYLES }),
|
|
15326
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15174
15327
|
"div",
|
|
15175
15328
|
{
|
|
15176
15329
|
className: "spec-dropdown-trigger",
|
|
@@ -15178,7 +15331,7 @@ function LanguageDropdown({
|
|
|
15178
15331
|
onClick: () => !disabled && setOpen((v) => !v),
|
|
15179
15332
|
"aria-haspopup": "listbox",
|
|
15180
15333
|
"aria-expanded": open,
|
|
15181
|
-
children: /* @__PURE__ */ (0,
|
|
15334
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15182
15335
|
import_ui22.ScTextField,
|
|
15183
15336
|
{
|
|
15184
15337
|
label: "Language",
|
|
@@ -15186,7 +15339,7 @@ function LanguageDropdown({
|
|
|
15186
15339
|
value: userLanguageLabel(value),
|
|
15187
15340
|
placeholderFilled: "Select language",
|
|
15188
15341
|
tfGroup: "icon-right",
|
|
15189
|
-
tfRightIcon: /* @__PURE__ */ (0,
|
|
15342
|
+
tfRightIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15190
15343
|
"span",
|
|
15191
15344
|
{
|
|
15192
15345
|
style: {
|
|
@@ -15196,7 +15349,7 @@ function LanguageDropdown({
|
|
|
15196
15349
|
transform: open ? "rotate(180deg)" : "none",
|
|
15197
15350
|
transition: "transform 120ms ease-out"
|
|
15198
15351
|
},
|
|
15199
|
-
children: /* @__PURE__ */ (0,
|
|
15352
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconDown, {})
|
|
15200
15353
|
}
|
|
15201
15354
|
),
|
|
15202
15355
|
className: "sc-text-field-full-width",
|
|
@@ -15207,7 +15360,7 @@ function LanguageDropdown({
|
|
|
15207
15360
|
)
|
|
15208
15361
|
}
|
|
15209
15362
|
),
|
|
15210
|
-
open && /* @__PURE__ */ (0,
|
|
15363
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15211
15364
|
"div",
|
|
15212
15365
|
{
|
|
15213
15366
|
role: "listbox",
|
|
@@ -15233,11 +15386,11 @@ function LanguageDropdown({
|
|
|
15233
15386
|
},
|
|
15234
15387
|
children: USER_LANGUAGES.map((lang) => {
|
|
15235
15388
|
const isActive = lang.code === value;
|
|
15236
|
-
return /* @__PURE__ */ (0,
|
|
15389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15237
15390
|
import_ui21.ScMenuOptions,
|
|
15238
15391
|
{
|
|
15239
15392
|
text: lang.label,
|
|
15240
|
-
icon: /* @__PURE__ */ (0,
|
|
15393
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, {}),
|
|
15241
15394
|
hover: isActive ? "true" : "false",
|
|
15242
15395
|
variant: "default",
|
|
15243
15396
|
role: "option",
|
|
@@ -15366,13 +15519,13 @@ function ProfileTab() {
|
|
|
15366
15519
|
}
|
|
15367
15520
|
auth.clearAuth();
|
|
15368
15521
|
};
|
|
15369
|
-
return /* @__PURE__ */ (0,
|
|
15522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15370
15523
|
"div",
|
|
15371
15524
|
{
|
|
15372
15525
|
className: "flex flex-col items-start flex-1 min-w-0 min-h-0 overflow-y-auto",
|
|
15373
15526
|
style: { gap: "var(--spacing-3xl)" },
|
|
15374
15527
|
children: [
|
|
15375
|
-
/* @__PURE__ */ (0,
|
|
15528
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15376
15529
|
"div",
|
|
15377
15530
|
{
|
|
15378
15531
|
className: "sc-profile-card flex flex-col items-start w-full",
|
|
@@ -15385,13 +15538,13 @@ function ProfileTab() {
|
|
|
15385
15538
|
gap: "var(--spacing-6xl)"
|
|
15386
15539
|
},
|
|
15387
15540
|
children: [
|
|
15388
|
-
/* @__PURE__ */ (0,
|
|
15541
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15389
15542
|
"div",
|
|
15390
15543
|
{
|
|
15391
15544
|
className: "flex items-center shrink-0 w-full",
|
|
15392
15545
|
style: { gap: 24, flexWrap: "wrap" },
|
|
15393
15546
|
children: [
|
|
15394
|
-
profileImage ? /* @__PURE__ */ (0,
|
|
15547
|
+
profileImage ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15395
15548
|
"img",
|
|
15396
15549
|
{
|
|
15397
15550
|
src: profileImage,
|
|
@@ -15404,7 +15557,7 @@ function ProfileTab() {
|
|
|
15404
15557
|
flexShrink: 0
|
|
15405
15558
|
}
|
|
15406
15559
|
}
|
|
15407
|
-
) : /* @__PURE__ */ (0,
|
|
15560
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15408
15561
|
"div",
|
|
15409
15562
|
{
|
|
15410
15563
|
"aria-label": "Profile",
|
|
@@ -15417,7 +15570,7 @@ function ProfileTab() {
|
|
|
15417
15570
|
border: "1px solid var(--alias-border-subtle)",
|
|
15418
15571
|
flexShrink: 0
|
|
15419
15572
|
},
|
|
15420
|
-
children: /* @__PURE__ */ (0,
|
|
15573
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15421
15574
|
"span",
|
|
15422
15575
|
{
|
|
15423
15576
|
style: {
|
|
@@ -15432,7 +15585,7 @@ function ProfileTab() {
|
|
|
15432
15585
|
)
|
|
15433
15586
|
}
|
|
15434
15587
|
),
|
|
15435
|
-
/* @__PURE__ */ (0,
|
|
15588
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15436
15589
|
"input",
|
|
15437
15590
|
{
|
|
15438
15591
|
ref: fileInputRef,
|
|
@@ -15442,17 +15595,17 @@ function ProfileTab() {
|
|
|
15442
15595
|
onChange: handleImageChange
|
|
15443
15596
|
}
|
|
15444
15597
|
),
|
|
15445
|
-
/* @__PURE__ */ (0,
|
|
15598
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15446
15599
|
"div",
|
|
15447
15600
|
{
|
|
15448
15601
|
className: "flex items-center",
|
|
15449
15602
|
style: { gap: 12, flexWrap: "wrap" },
|
|
15450
15603
|
children: [
|
|
15451
|
-
/* @__PURE__ */ (0,
|
|
15604
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15452
15605
|
import_ui23.ScButton,
|
|
15453
15606
|
{
|
|
15454
15607
|
text: "Upload photo",
|
|
15455
|
-
icon: /* @__PURE__ */ (0,
|
|
15608
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconUpload, { className: "w-5 h-5", color: PRIMARY_COLOR3 }),
|
|
15456
15609
|
styleVariant: "icon-left",
|
|
15457
15610
|
variant: "outline",
|
|
15458
15611
|
size: "md",
|
|
@@ -15460,11 +15613,11 @@ function ProfileTab() {
|
|
|
15460
15613
|
onClick: handleUploadClick
|
|
15461
15614
|
}
|
|
15462
15615
|
),
|
|
15463
|
-
/* @__PURE__ */ (0,
|
|
15616
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15464
15617
|
import_ui23.ScButton,
|
|
15465
15618
|
{
|
|
15466
15619
|
text: "Remove photo",
|
|
15467
|
-
icon: /* @__PURE__ */ (0,
|
|
15620
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15468
15621
|
import_icons18.SiconDelete,
|
|
15469
15622
|
{
|
|
15470
15623
|
className: "w-5 h-5",
|
|
@@ -15484,15 +15637,15 @@ function ProfileTab() {
|
|
|
15484
15637
|
]
|
|
15485
15638
|
}
|
|
15486
15639
|
),
|
|
15487
|
-
/* @__PURE__ */ (0,
|
|
15488
|
-
/* @__PURE__ */ (0,
|
|
15640
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui21.ScHDivider, {}),
|
|
15641
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15489
15642
|
"div",
|
|
15490
15643
|
{
|
|
15491
15644
|
className: "sc-profile-fields flex flex-col min-w-0 w-full",
|
|
15492
15645
|
style: { gap: 24 },
|
|
15493
15646
|
children: [
|
|
15494
|
-
/* @__PURE__ */ (0,
|
|
15495
|
-
/* @__PURE__ */ (0,
|
|
15647
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { style: { display: "grid", width: "100%", gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 240px), 1fr))", gap: 24 }, children: [
|
|
15648
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-1 min-w-0", style: { overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15496
15649
|
import_ui22.ScTextField,
|
|
15497
15650
|
{
|
|
15498
15651
|
label: "Full Name",
|
|
@@ -15506,7 +15659,7 @@ function ProfileTab() {
|
|
|
15506
15659
|
onChange: (e) => setFullName(e.target.value)
|
|
15507
15660
|
}
|
|
15508
15661
|
) }),
|
|
15509
|
-
/* @__PURE__ */ (0,
|
|
15662
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15510
15663
|
SpecializationDropdown,
|
|
15511
15664
|
{
|
|
15512
15665
|
value: selectedSpec,
|
|
@@ -15515,8 +15668,8 @@ function ProfileTab() {
|
|
|
15515
15668
|
}
|
|
15516
15669
|
) })
|
|
15517
15670
|
] }),
|
|
15518
|
-
/* @__PURE__ */ (0,
|
|
15519
|
-
/* @__PURE__ */ (0,
|
|
15671
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-start w-full", style: { gap: "var(--spacing-3xl)" }, children: [
|
|
15672
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15520
15673
|
LanguageDropdown,
|
|
15521
15674
|
{
|
|
15522
15675
|
value: selectedLanguage,
|
|
@@ -15524,9 +15677,9 @@ function ProfileTab() {
|
|
|
15524
15677
|
disabled: disableAllActions
|
|
15525
15678
|
}
|
|
15526
15679
|
) }),
|
|
15527
|
-
/* @__PURE__ */ (0,
|
|
15680
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-1 min-w-0" })
|
|
15528
15681
|
] }),
|
|
15529
|
-
/* @__PURE__ */ (0,
|
|
15682
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-full", style: { overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15530
15683
|
import_ui22.ScTextField,
|
|
15531
15684
|
{
|
|
15532
15685
|
label: "Email ID",
|
|
@@ -15535,7 +15688,7 @@ function ProfileTab() {
|
|
|
15535
15688
|
value: user?.email ?? "",
|
|
15536
15689
|
placeholderFilled: user?.email ?? "chris@kepler.com",
|
|
15537
15690
|
tfGroup: "icon-right",
|
|
15538
|
-
tfRightIcon: /* @__PURE__ */ (0,
|
|
15691
|
+
tfRightIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15539
15692
|
import_icons18.SiconLock,
|
|
15540
15693
|
{
|
|
15541
15694
|
className: "w-6 h-6",
|
|
@@ -15547,12 +15700,12 @@ function ProfileTab() {
|
|
|
15547
15700
|
readOnly: true
|
|
15548
15701
|
}
|
|
15549
15702
|
) }),
|
|
15550
|
-
/* @__PURE__ */ (0,
|
|
15703
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15551
15704
|
"div",
|
|
15552
15705
|
{
|
|
15553
15706
|
className: "flex items-center w-full",
|
|
15554
15707
|
style: { justifyContent: "flex-end", paddingTop: "var(--spacing-md)" },
|
|
15555
|
-
children: /* @__PURE__ */ (0,
|
|
15708
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15556
15709
|
import_ui23.ScButton,
|
|
15557
15710
|
{
|
|
15558
15711
|
text: saving ? "Saving..." : "Save changes",
|
|
@@ -15570,7 +15723,7 @@ function ProfileTab() {
|
|
|
15570
15723
|
]
|
|
15571
15724
|
}
|
|
15572
15725
|
),
|
|
15573
|
-
/* @__PURE__ */ (0,
|
|
15726
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15574
15727
|
"div",
|
|
15575
15728
|
{
|
|
15576
15729
|
className: "flex items-center w-full",
|
|
@@ -15582,8 +15735,8 @@ function ProfileTab() {
|
|
|
15582
15735
|
gap: "var(--spacing-3xl)"
|
|
15583
15736
|
},
|
|
15584
15737
|
children: [
|
|
15585
|
-
/* @__PURE__ */ (0,
|
|
15586
|
-
/* @__PURE__ */ (0,
|
|
15738
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col min-w-0 flex-1", style: { gap: "var(--spacing-xs)" }, children: [
|
|
15739
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15587
15740
|
"span",
|
|
15588
15741
|
{
|
|
15589
15742
|
style: {
|
|
@@ -15596,7 +15749,7 @@ function ProfileTab() {
|
|
|
15596
15749
|
children: "Session"
|
|
15597
15750
|
}
|
|
15598
15751
|
),
|
|
15599
|
-
/* @__PURE__ */ (0,
|
|
15752
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15600
15753
|
"span",
|
|
15601
15754
|
{
|
|
15602
15755
|
className: "truncate",
|
|
@@ -15611,7 +15764,7 @@ function ProfileTab() {
|
|
|
15611
15764
|
}
|
|
15612
15765
|
)
|
|
15613
15766
|
] }),
|
|
15614
|
-
/* @__PURE__ */ (0,
|
|
15767
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15615
15768
|
import_ui23.ScButton,
|
|
15616
15769
|
{
|
|
15617
15770
|
text: "Log out",
|
|
@@ -15745,13 +15898,13 @@ function WorkspaceListTab({
|
|
|
15745
15898
|
});
|
|
15746
15899
|
}, [fetchPlans, listLoading, visibleKey]);
|
|
15747
15900
|
const planOf = (ws) => fetchPlans ? plans[ws._id] ?? "" : ws.plan ?? "";
|
|
15748
|
-
return /* @__PURE__ */ (0,
|
|
15901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15749
15902
|
"div",
|
|
15750
15903
|
{
|
|
15751
15904
|
className: "flex flex-col items-start flex-1 min-w-0",
|
|
15752
15905
|
style: { gap: "var(--spacing-3xl)", height: "100%" },
|
|
15753
15906
|
children: [
|
|
15754
|
-
/* @__PURE__ */ (0,
|
|
15907
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15755
15908
|
"p",
|
|
15756
15909
|
{
|
|
15757
15910
|
className: "shrink-0 w-full",
|
|
@@ -15764,7 +15917,7 @@ function WorkspaceListTab({
|
|
|
15764
15917
|
children: "Switching changes which workspace the rest of Settings acts on."
|
|
15765
15918
|
}
|
|
15766
15919
|
),
|
|
15767
|
-
listLoading && /* @__PURE__ */ (0,
|
|
15920
|
+
listLoading && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15768
15921
|
"p",
|
|
15769
15922
|
{
|
|
15770
15923
|
style: {
|
|
@@ -15775,13 +15928,13 @@ function WorkspaceListTab({
|
|
|
15775
15928
|
children: "Loading workspaces\u2026"
|
|
15776
15929
|
}
|
|
15777
15930
|
),
|
|
15778
|
-
!listLoading && currentWorkspace && /* @__PURE__ */ (0,
|
|
15931
|
+
!listLoading && currentWorkspace && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15779
15932
|
"div",
|
|
15780
15933
|
{
|
|
15781
15934
|
className: "flex flex-col items-start shrink-0 w-full",
|
|
15782
15935
|
style: { gap: 16, padding: "var(--spacing-md) 0" },
|
|
15783
15936
|
children: [
|
|
15784
|
-
/* @__PURE__ */ (0,
|
|
15937
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15785
15938
|
"p",
|
|
15786
15939
|
{
|
|
15787
15940
|
className: "w-full overflow-hidden text-ellipsis whitespace-nowrap",
|
|
@@ -15798,7 +15951,7 @@ function WorkspaceListTab({
|
|
|
15798
15951
|
]
|
|
15799
15952
|
}
|
|
15800
15953
|
),
|
|
15801
|
-
/* @__PURE__ */ (0,
|
|
15954
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15802
15955
|
import_ui24.ScWorkspaceSwitchCard,
|
|
15803
15956
|
{
|
|
15804
15957
|
wsName: currentWorkspace.name,
|
|
@@ -15815,7 +15968,7 @@ function WorkspaceListTab({
|
|
|
15815
15968
|
]
|
|
15816
15969
|
}
|
|
15817
15970
|
),
|
|
15818
|
-
!listLoading && currentWorkspace && listTotal > 0 && /* @__PURE__ */ (0,
|
|
15971
|
+
!listLoading && currentWorkspace && listTotal > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15819
15972
|
"div",
|
|
15820
15973
|
{
|
|
15821
15974
|
className: "shrink-0 w-full",
|
|
@@ -15825,19 +15978,19 @@ function WorkspaceListTab({
|
|
|
15825
15978
|
}
|
|
15826
15979
|
}
|
|
15827
15980
|
),
|
|
15828
|
-
!listLoading && listTotal > 0 && /* @__PURE__ */ (0,
|
|
15981
|
+
!listLoading && listTotal > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15829
15982
|
"div",
|
|
15830
15983
|
{
|
|
15831
15984
|
className: "flex flex-col items-start flex-1 min-h-0 w-full",
|
|
15832
15985
|
style: { gap: 16, overflowY: "auto" },
|
|
15833
15986
|
children: [
|
|
15834
|
-
/* @__PURE__ */ (0,
|
|
15987
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15835
15988
|
"div",
|
|
15836
15989
|
{
|
|
15837
15990
|
className: "flex flex-col items-start w-full",
|
|
15838
15991
|
style: { gap: 16 },
|
|
15839
|
-
children: pageRows.map(({ ws, group }, index) => /* @__PURE__ */ (0,
|
|
15840
|
-
(index === 0 || pageRows[index - 1].group.key !== group.key) && /* @__PURE__ */ (0,
|
|
15992
|
+
children: pageRows.map(({ ws, group }, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react27.Fragment, { children: [
|
|
15993
|
+
(index === 0 || pageRows[index - 1].group.key !== group.key) && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15841
15994
|
"p",
|
|
15842
15995
|
{
|
|
15843
15996
|
className: "w-full overflow-hidden text-ellipsis whitespace-nowrap shrink-0",
|
|
@@ -15852,7 +16005,7 @@ function WorkspaceListTab({
|
|
|
15852
16005
|
children: group.label
|
|
15853
16006
|
}
|
|
15854
16007
|
),
|
|
15855
|
-
/* @__PURE__ */ (0,
|
|
16008
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15856
16009
|
import_ui24.ScWorkspaceSwitchCard,
|
|
15857
16010
|
{
|
|
15858
16011
|
wsName: ws.name,
|
|
@@ -15870,13 +16023,13 @@ function WorkspaceListTab({
|
|
|
15870
16023
|
] }, ws._id))
|
|
15871
16024
|
}
|
|
15872
16025
|
),
|
|
15873
|
-
pageCount > 1 && /* @__PURE__ */ (0,
|
|
16026
|
+
pageCount > 1 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15874
16027
|
"div",
|
|
15875
16028
|
{
|
|
15876
16029
|
className: "flex items-center justify-between shrink-0 w-full",
|
|
15877
16030
|
style: { gap: "var(--spacing-md)" },
|
|
15878
16031
|
children: [
|
|
15879
|
-
/* @__PURE__ */ (0,
|
|
16032
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15880
16033
|
"span",
|
|
15881
16034
|
{
|
|
15882
16035
|
style: {
|
|
@@ -15895,8 +16048,8 @@ function WorkspaceListTab({
|
|
|
15895
16048
|
]
|
|
15896
16049
|
}
|
|
15897
16050
|
),
|
|
15898
|
-
/* @__PURE__ */ (0,
|
|
15899
|
-
/* @__PURE__ */ (0,
|
|
16051
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center", style: { gap: "var(--spacing-md)" }, children: [
|
|
16052
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15900
16053
|
import_ui23.ScButton,
|
|
15901
16054
|
{
|
|
15902
16055
|
text: "Previous",
|
|
@@ -15906,7 +16059,7 @@ function WorkspaceListTab({
|
|
|
15906
16059
|
onClick: safePage === 0 ? void 0 : () => setPage(safePage - 1)
|
|
15907
16060
|
}
|
|
15908
16061
|
),
|
|
15909
|
-
/* @__PURE__ */ (0,
|
|
16062
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
15910
16063
|
import_ui23.ScButton,
|
|
15911
16064
|
{
|
|
15912
16065
|
text: "Next",
|
|
@@ -15929,7 +16082,7 @@ function WorkspaceListTab({
|
|
|
15929
16082
|
}
|
|
15930
16083
|
var WorkspaceTab = WorkspaceListTab;
|
|
15931
16084
|
function ReferralTab() {
|
|
15932
|
-
const { auth, toast } = useSettingsAdapters();
|
|
16085
|
+
const { auth, toast, api } = useSettingsAdapters();
|
|
15933
16086
|
const domain = typeof window !== "undefined" ? window.location.origin : "";
|
|
15934
16087
|
const link = referralLink(referralCodeOf(auth.user), domain);
|
|
15935
16088
|
const [copied, setCopied] = (0, import_react27.useState)(false);
|
|
@@ -15949,68 +16102,71 @@ function ReferralTab() {
|
|
|
15949
16102
|
toast.error("Couldn't copy the referral link");
|
|
15950
16103
|
}
|
|
15951
16104
|
};
|
|
15952
|
-
return /* @__PURE__ */ (0,
|
|
16105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
15953
16106
|
"div",
|
|
15954
16107
|
{
|
|
15955
16108
|
className: "flex flex-col items-start flex-1 min-w-0",
|
|
15956
16109
|
style: { gap: "var(--spacing-3xl)" },
|
|
15957
|
-
children:
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
e
|
|
15996
|
-
|
|
15997
|
-
|
|
15998
|
-
e
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16110
|
+
children: [
|
|
16111
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16112
|
+
"div",
|
|
16113
|
+
{
|
|
16114
|
+
className: "w-full relative",
|
|
16115
|
+
style: {
|
|
16116
|
+
backgroundColor: "var(--alias-surface-base)",
|
|
16117
|
+
borderRadius: "var(--radius-3xl)",
|
|
16118
|
+
padding: "var(--spacing-6xl)"
|
|
16119
|
+
},
|
|
16120
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16121
|
+
import_ui22.ScTextField,
|
|
16122
|
+
{
|
|
16123
|
+
label: "Your Referral Link",
|
|
16124
|
+
labelGroup: "label",
|
|
16125
|
+
state: "filled",
|
|
16126
|
+
value: link,
|
|
16127
|
+
placeholderFilled: "https://your-domain.com?referral_code=ABC123",
|
|
16128
|
+
tfGroup: "none",
|
|
16129
|
+
rightSlot: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
16130
|
+
"button",
|
|
16131
|
+
{
|
|
16132
|
+
type: "button",
|
|
16133
|
+
"aria-label": copied ? "Copied" : "Copy referral link",
|
|
16134
|
+
title: copied ? "Copied" : "Copy referral link",
|
|
16135
|
+
disabled: !link,
|
|
16136
|
+
onClick: () => void copyLink(),
|
|
16137
|
+
className: "flex items-center justify-center shrink-0 cursor-pointer border-none",
|
|
16138
|
+
style: {
|
|
16139
|
+
gap: "var(--spacing-xs)",
|
|
16140
|
+
padding: "0 var(--spacing-md)",
|
|
16141
|
+
height: 32,
|
|
16142
|
+
borderRadius: "var(--radius-lg)",
|
|
16143
|
+
background: "transparent",
|
|
16144
|
+
color: "var(--alias-text---icons-primary)",
|
|
16145
|
+
fontSize: "var(--font-size-font-size-sm)",
|
|
16146
|
+
fontWeight: 500
|
|
16147
|
+
},
|
|
16148
|
+
onMouseEnter: (e) => {
|
|
16149
|
+
e.currentTarget.style.background = "var(--alias-fill-neutral-neutralplus)";
|
|
16150
|
+
},
|
|
16151
|
+
onMouseLeave: (e) => {
|
|
16152
|
+
e.currentTarget.style.background = "transparent";
|
|
16153
|
+
},
|
|
16154
|
+
children: [
|
|
16155
|
+
copied ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconCheck, { className: "w-4 h-4", color: "var(--alias-text---icons-primary)" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconCopy, { className: "w-4 h-4", color: "var(--alias-text---icons-primary)" }),
|
|
16156
|
+
copied ? "Copied" : "Copy"
|
|
16157
|
+
]
|
|
16158
|
+
}
|
|
16159
|
+
),
|
|
16160
|
+
desc: "Share this link. When someone opens it and creates a new Streamoid account, it's recorded as your referral.",
|
|
16161
|
+
className: "sc-text-field-full-width w-full min-w-0",
|
|
16162
|
+
readOnly: true,
|
|
16163
|
+
onFocus: (e) => e.currentTarget.select()
|
|
16164
|
+
}
|
|
16165
|
+
)
|
|
16166
|
+
}
|
|
16167
|
+
),
|
|
16168
|
+
api.getReferredUsers && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ReferralHistory, { load: (signal) => api.getReferredUsers(signal) })
|
|
16169
|
+
]
|
|
16014
16170
|
}
|
|
16015
16171
|
);
|
|
16016
16172
|
}
|
|
@@ -16027,7 +16183,7 @@ function SettingsContent({
|
|
|
16027
16183
|
inviteRequested,
|
|
16028
16184
|
onInviteRequestHandled
|
|
16029
16185
|
}) {
|
|
16030
|
-
return /* @__PURE__ */ (0,
|
|
16186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SettingsAdaptersProvider, { adapters, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16031
16187
|
SettingsContentInner,
|
|
16032
16188
|
{
|
|
16033
16189
|
activeTab,
|
|
@@ -16480,7 +16636,7 @@ function SettingsContentInner({
|
|
|
16480
16636
|
setConfirmLeaveOpen(true);
|
|
16481
16637
|
return false;
|
|
16482
16638
|
}
|
|
16483
|
-
return /* @__PURE__ */ (0,
|
|
16639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
16484
16640
|
"div",
|
|
16485
16641
|
{
|
|
16486
16642
|
"data-streamoid-settings": "",
|
|
@@ -16491,8 +16647,8 @@ function SettingsContentInner({
|
|
|
16491
16647
|
...isOverview ? { display: "block", overflowY: "auto" } : {}
|
|
16492
16648
|
},
|
|
16493
16649
|
children: [
|
|
16494
|
-
!isOverview && /* @__PURE__ */ (0,
|
|
16495
|
-
/* @__PURE__ */ (0,
|
|
16650
|
+
!isOverview && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SettingsAppearance, {}),
|
|
16651
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16496
16652
|
"div",
|
|
16497
16653
|
{
|
|
16498
16654
|
className: "flex flex-col items-start relative h-full overflow-hidden",
|
|
@@ -16503,8 +16659,8 @@ function SettingsContentInner({
|
|
|
16503
16659
|
width: "100%",
|
|
16504
16660
|
...isOverview ? { height: "auto", minHeight: "100%", overflow: "visible", marginInline: "auto" } : {}
|
|
16505
16661
|
},
|
|
16506
|
-
children: /* @__PURE__ */ (0,
|
|
16507
|
-
!overviewDetail && onBack !== null && /* @__PURE__ */ (0,
|
|
16662
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col w-full flex-1 min-h-0", style: { gap: 20, paddingTop: 16 }, children: [
|
|
16663
|
+
!overviewDetail && onBack !== null && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex items-center shrink-0", style: { paddingLeft: 20 }, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
16508
16664
|
"button",
|
|
16509
16665
|
{
|
|
16510
16666
|
type: "button",
|
|
@@ -16536,19 +16692,19 @@ function SettingsContentInner({
|
|
|
16536
16692
|
else window.history.back();
|
|
16537
16693
|
},
|
|
16538
16694
|
children: [
|
|
16539
|
-
/* @__PURE__ */ (0,
|
|
16695
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconLeft, { className: "w-4 h-4 shrink-0", color: "var(--alias-text---icons-muted)" }),
|
|
16540
16696
|
"Back"
|
|
16541
16697
|
]
|
|
16542
16698
|
}
|
|
16543
16699
|
) }),
|
|
16544
|
-
overviewDetail && !isOverview && (isBillingSubView || onOverview) && /* @__PURE__ */ (0,
|
|
16700
|
+
overviewDetail && !isOverview && (isBillingSubView || onOverview) && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex items-center shrink-0", style: { paddingLeft: 20 }, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16545
16701
|
import_ui23.ScButton,
|
|
16546
16702
|
{
|
|
16547
16703
|
text: isBillingSubView ? "Back to billing" : "Back to account and workspace settings",
|
|
16548
16704
|
variant: "tertiary",
|
|
16549
16705
|
size: "sm",
|
|
16550
16706
|
styleVariant: "icon-left",
|
|
16551
|
-
icon: /* @__PURE__ */ (0,
|
|
16707
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconArrowLeft, { size: 18, "aria-hidden": "true" }),
|
|
16552
16708
|
onClick: () => {
|
|
16553
16709
|
if (isBillingSubView) {
|
|
16554
16710
|
setBillingShowPlans(false);
|
|
@@ -16560,7 +16716,7 @@ function SettingsContentInner({
|
|
|
16560
16716
|
}
|
|
16561
16717
|
}
|
|
16562
16718
|
) }),
|
|
16563
|
-
/* @__PURE__ */ (0,
|
|
16719
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
16564
16720
|
"div",
|
|
16565
16721
|
{
|
|
16566
16722
|
className: "flex items-center shrink-0 w-full",
|
|
@@ -16571,9 +16727,9 @@ function SettingsContentInner({
|
|
|
16571
16727
|
paddingRight: 20
|
|
16572
16728
|
},
|
|
16573
16729
|
children: [
|
|
16574
|
-
/* @__PURE__ */ (0,
|
|
16575
|
-
/* @__PURE__ */ (0,
|
|
16576
|
-
/* @__PURE__ */ (0,
|
|
16730
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center flex-1 min-w-0", style: { gap: 8, paddingLeft: 20 }, children: [
|
|
16731
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconSettings, { className: "w-6 h-6 shrink-0", color: "var(--alias-text---icons-primary)" }),
|
|
16732
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16577
16733
|
"h1",
|
|
16578
16734
|
{
|
|
16579
16735
|
style: {
|
|
@@ -16587,10 +16743,10 @@ function SettingsContentInner({
|
|
|
16587
16743
|
children: overviewDetail ? "Account and workspace settings" : "Settings"
|
|
16588
16744
|
}
|
|
16589
16745
|
),
|
|
16590
|
-
!isOverview && /* @__PURE__ */ (0,
|
|
16591
|
-
scopeCrumb && /* @__PURE__ */ (0,
|
|
16592
|
-
/* @__PURE__ */ (0,
|
|
16593
|
-
/* @__PURE__ */ (0,
|
|
16746
|
+
!isOverview && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("nav", { "aria-label": "Breadcrumb", className: "flex items-center min-w-0", style: { gap: 8 }, children: [
|
|
16747
|
+
scopeCrumb && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
16748
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconRight, { className: "w-6 h-6 shrink-0", color: "var(--alias-text---icons-primary)" }),
|
|
16749
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16594
16750
|
"span",
|
|
16595
16751
|
{
|
|
16596
16752
|
className: "truncate",
|
|
@@ -16607,8 +16763,8 @@ function SettingsContentInner({
|
|
|
16607
16763
|
}
|
|
16608
16764
|
)
|
|
16609
16765
|
] }),
|
|
16610
|
-
/* @__PURE__ */ (0,
|
|
16611
|
-
/* @__PURE__ */ (0,
|
|
16766
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconRight, { className: "w-6 h-6 shrink-0", color: "var(--alias-text---icons-primary)" }),
|
|
16767
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16612
16768
|
"span",
|
|
16613
16769
|
{
|
|
16614
16770
|
style: {
|
|
@@ -16621,9 +16777,9 @@ function SettingsContentInner({
|
|
|
16621
16777
|
children: leafLabel
|
|
16622
16778
|
}
|
|
16623
16779
|
),
|
|
16624
|
-
isBillingPlans && /* @__PURE__ */ (0,
|
|
16625
|
-
/* @__PURE__ */ (0,
|
|
16626
|
-
/* @__PURE__ */ (0,
|
|
16780
|
+
isBillingPlans && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
16781
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconRight, { className: "w-6 h-6 shrink-0", color: "var(--alias-text---icons-primary)" }),
|
|
16782
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16627
16783
|
"span",
|
|
16628
16784
|
{
|
|
16629
16785
|
style: {
|
|
@@ -16637,9 +16793,9 @@ function SettingsContentInner({
|
|
|
16637
16793
|
}
|
|
16638
16794
|
)
|
|
16639
16795
|
] }),
|
|
16640
|
-
isBillingPerUserLimits && /* @__PURE__ */ (0,
|
|
16641
|
-
/* @__PURE__ */ (0,
|
|
16642
|
-
/* @__PURE__ */ (0,
|
|
16796
|
+
isBillingPerUserLimits && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
16797
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconRight, { className: "w-6 h-6 shrink-0", color: "var(--alias-text---icons-primary)" }),
|
|
16798
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16643
16799
|
"span",
|
|
16644
16800
|
{
|
|
16645
16801
|
style: {
|
|
@@ -16653,9 +16809,9 @@ function SettingsContentInner({
|
|
|
16653
16809
|
}
|
|
16654
16810
|
)
|
|
16655
16811
|
] }),
|
|
16656
|
-
isBillingSharedCredits && /* @__PURE__ */ (0,
|
|
16657
|
-
/* @__PURE__ */ (0,
|
|
16658
|
-
/* @__PURE__ */ (0,
|
|
16812
|
+
isBillingSharedCredits && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
16813
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconRight, { className: "w-6 h-6 shrink-0", color: "var(--alias-text---icons-primary)" }),
|
|
16814
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16659
16815
|
"span",
|
|
16660
16816
|
{
|
|
16661
16817
|
style: {
|
|
@@ -16671,20 +16827,20 @@ function SettingsContentInner({
|
|
|
16671
16827
|
] })
|
|
16672
16828
|
] })
|
|
16673
16829
|
] }),
|
|
16674
|
-
!isOverview && activeTab === "workspaceList" && /* @__PURE__ */ (0,
|
|
16830
|
+
!isOverview && activeTab === "workspaceList" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16675
16831
|
SettingsTooltip,
|
|
16676
16832
|
{
|
|
16677
16833
|
content: "Start a new workspace with its own team, members and billing",
|
|
16678
16834
|
placement: "bottom",
|
|
16679
16835
|
inline: true,
|
|
16680
|
-
children: /* @__PURE__ */ (0,
|
|
16836
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16681
16837
|
import_ui23.ScButton,
|
|
16682
16838
|
{
|
|
16683
16839
|
text: "Create Workspace",
|
|
16684
16840
|
variant: "secondary",
|
|
16685
16841
|
size: "md",
|
|
16686
16842
|
styleVariant: "icon-left",
|
|
16687
|
-
icon: /* @__PURE__ */ (0,
|
|
16843
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16688
16844
|
import_icons18.SiconWorkspace,
|
|
16689
16845
|
{
|
|
16690
16846
|
className: "w-5 h-5",
|
|
@@ -16696,13 +16852,13 @@ function SettingsContentInner({
|
|
|
16696
16852
|
)
|
|
16697
16853
|
}
|
|
16698
16854
|
),
|
|
16699
|
-
!isOverview && activeTab === "workspaceMembers" && /* @__PURE__ */ (0,
|
|
16855
|
+
!isOverview && activeTab === "workspaceMembers" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16700
16856
|
SettingsTooltip,
|
|
16701
16857
|
{
|
|
16702
16858
|
content: "Send someone an invite to join this workspace",
|
|
16703
16859
|
placement: "bottom",
|
|
16704
16860
|
inline: true,
|
|
16705
|
-
children: /* @__PURE__ */ (0,
|
|
16861
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16706
16862
|
import_ui23.ScButton,
|
|
16707
16863
|
{
|
|
16708
16864
|
text: overviewDetail ? "Invite people" : "Invite user",
|
|
@@ -16710,7 +16866,7 @@ function SettingsContentInner({
|
|
|
16710
16866
|
size: "md",
|
|
16711
16867
|
styleVariant: "icon-left",
|
|
16712
16868
|
state: canUseHeaderInvite ? "default" : "disabled",
|
|
16713
|
-
icon: /* @__PURE__ */ (0,
|
|
16869
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16714
16870
|
import_icons18.SiconUserAdd,
|
|
16715
16871
|
{
|
|
16716
16872
|
className: "w-5 h-5",
|
|
@@ -16724,14 +16880,14 @@ function SettingsContentInner({
|
|
|
16724
16880
|
)
|
|
16725
16881
|
}
|
|
16726
16882
|
),
|
|
16727
|
-
!isOverview && activeTab === "apikey" && isWorkspaceAdmin && /* @__PURE__ */ (0,
|
|
16728
|
-
/* @__PURE__ */ (0,
|
|
16883
|
+
!isOverview && activeTab === "apikey" && isWorkspaceAdmin && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center shrink-0", style: { gap: "var(--spacing-md)" }, children: [
|
|
16884
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16729
16885
|
SettingsTooltip,
|
|
16730
16886
|
{
|
|
16731
16887
|
content: "Include keys you have already revoked in the list below",
|
|
16732
16888
|
placement: "bottom",
|
|
16733
16889
|
inline: true,
|
|
16734
|
-
children: /* @__PURE__ */ (0,
|
|
16890
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16735
16891
|
import_ui23.ScButton,
|
|
16736
16892
|
{
|
|
16737
16893
|
text: tokenShowRevoked ? "Hide Revoked" : "Show Revoked",
|
|
@@ -16742,20 +16898,20 @@ function SettingsContentInner({
|
|
|
16742
16898
|
)
|
|
16743
16899
|
}
|
|
16744
16900
|
),
|
|
16745
|
-
/* @__PURE__ */ (0,
|
|
16901
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16746
16902
|
SettingsTooltip,
|
|
16747
16903
|
{
|
|
16748
16904
|
content: "Generate a key for calling the Streamoid APIs from your own code",
|
|
16749
16905
|
placement: "bottom",
|
|
16750
16906
|
inline: true,
|
|
16751
|
-
children: /* @__PURE__ */ (0,
|
|
16907
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16752
16908
|
import_ui23.ScButton,
|
|
16753
16909
|
{
|
|
16754
16910
|
text: "New API Key",
|
|
16755
16911
|
variant: "secondary",
|
|
16756
16912
|
size: "md",
|
|
16757
16913
|
styleVariant: "icon-left",
|
|
16758
|
-
icon: /* @__PURE__ */ (0,
|
|
16914
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16759
16915
|
import_icons18.SiconPlus,
|
|
16760
16916
|
{
|
|
16761
16917
|
className: "w-5 h-5",
|
|
@@ -16768,13 +16924,13 @@ function SettingsContentInner({
|
|
|
16768
16924
|
}
|
|
16769
16925
|
)
|
|
16770
16926
|
] }),
|
|
16771
|
-
overviewDetail && onClose && /* @__PURE__ */ (0,
|
|
16927
|
+
overviewDetail && onClose && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SettingsTooltip, { content: "Close settings", placement: "bottom", inline: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16772
16928
|
import_ui23.ScButton,
|
|
16773
16929
|
{
|
|
16774
16930
|
styleVariant: "icon-only",
|
|
16775
16931
|
variant: "outline",
|
|
16776
16932
|
size: "md",
|
|
16777
|
-
icon: /* @__PURE__ */ (0,
|
|
16933
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconClose, { className: "w-5 h-5", color: PRIMARY_COLOR3 }),
|
|
16778
16934
|
"aria-label": "Close settings",
|
|
16779
16935
|
style: isOverview ? { width: "2rem", height: "2rem", padding: 0 } : void 0,
|
|
16780
16936
|
onClick: onClose
|
|
@@ -16783,7 +16939,7 @@ function SettingsContentInner({
|
|
|
16783
16939
|
]
|
|
16784
16940
|
}
|
|
16785
16941
|
),
|
|
16786
|
-
isOverview ? /* @__PURE__ */ (0,
|
|
16942
|
+
isOverview ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16787
16943
|
AdministrationOverview,
|
|
16788
16944
|
{
|
|
16789
16945
|
workspaceName: workspaceScopeName,
|
|
@@ -16798,13 +16954,13 @@ function SettingsContentInner({
|
|
|
16798
16954
|
onNavigate: setActiveTab,
|
|
16799
16955
|
onInvitePeople
|
|
16800
16956
|
}
|
|
16801
|
-
) : /* @__PURE__ */ (0,
|
|
16957
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
16802
16958
|
"div",
|
|
16803
16959
|
{
|
|
16804
16960
|
className: "flex items-start flex-1 min-h-0 w-full overflow-hidden",
|
|
16805
16961
|
style: { gap: 20 },
|
|
16806
16962
|
children: [
|
|
16807
|
-
!overviewDetail && !isBillingSubView && /* @__PURE__ */ (0,
|
|
16963
|
+
!overviewDetail && !isBillingSubView && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16808
16964
|
SettingsNav,
|
|
16809
16965
|
{
|
|
16810
16966
|
isWorkspaceAdmin,
|
|
@@ -16818,8 +16974,8 @@ function SettingsContentInner({
|
|
|
16818
16974
|
showReferral
|
|
16819
16975
|
}
|
|
16820
16976
|
),
|
|
16821
|
-
activeTab === "profile" && /* @__PURE__ */ (0,
|
|
16822
|
-
activeTab === "workspace" && /* @__PURE__ */ (0,
|
|
16977
|
+
activeTab === "profile" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ProfileTab, {}),
|
|
16978
|
+
activeTab === "workspace" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col flex-1 min-w-0 min-h-0 h-full", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16823
16979
|
WorkspaceGeneralTab,
|
|
16824
16980
|
{
|
|
16825
16981
|
workspace: currentWorkspaceData,
|
|
@@ -16841,7 +16997,7 @@ function SettingsContentInner({
|
|
|
16841
16997
|
}
|
|
16842
16998
|
}
|
|
16843
16999
|
) }),
|
|
16844
|
-
activeTab === "workspaceMembers" && /* @__PURE__ */ (0,
|
|
17000
|
+
activeTab === "workspaceMembers" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col flex-1 min-w-0 min-h-0 h-full", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16845
17001
|
TeamsContent,
|
|
16846
17002
|
{
|
|
16847
17003
|
embedded: true,
|
|
@@ -16856,7 +17012,7 @@ function SettingsContentInner({
|
|
|
16856
17012
|
hiddenApps
|
|
16857
17013
|
}
|
|
16858
17014
|
) }),
|
|
16859
|
-
activeTab === "workspaceList" && /* @__PURE__ */ (0,
|
|
17015
|
+
activeTab === "workspaceList" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16860
17016
|
WorkspaceListTab,
|
|
16861
17017
|
{
|
|
16862
17018
|
workspaces: displayWorkspaces,
|
|
@@ -16881,11 +17037,11 @@ function SettingsContentInner({
|
|
|
16881
17037
|
}
|
|
16882
17038
|
}
|
|
16883
17039
|
),
|
|
16884
|
-
activeTab === "referral" && showReferral && /* @__PURE__ */ (0,
|
|
16885
|
-
activeTab === "connectedApps" && /* @__PURE__ */ (0,
|
|
16886
|
-
activeTab === "organizationIntegrations" && /* @__PURE__ */ (0,
|
|
16887
|
-
activeTab === "organizationList" && /* @__PURE__ */ (0,
|
|
16888
|
-
(activeTab === "organization" || activeTab === "organizationWorkspaces" || activeTab === "organizationDomains") && /* @__PURE__ */ (0,
|
|
17040
|
+
activeTab === "referral" && showReferral && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ReferralTab, {}),
|
|
17041
|
+
activeTab === "connectedApps" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ConnectedAppsContent, {}),
|
|
17042
|
+
activeTab === "organizationIntegrations" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(OrganizationIntegrationsContent, {}),
|
|
17043
|
+
activeTab === "organizationList" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(OrganizationListContent, {}),
|
|
17044
|
+
(activeTab === "organization" || activeTab === "organizationWorkspaces" || activeTab === "organizationDomains") && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col flex-1 min-w-0 min-h-0 h-full", children: organization.managementUrl ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16889
17045
|
ManagedOrganizationSummary,
|
|
16890
17046
|
{
|
|
16891
17047
|
name: workspaceOwner.organizationName,
|
|
@@ -16893,14 +17049,14 @@ function SettingsContentInner({
|
|
|
16893
17049
|
status: workspaceOwner.organizationStatus,
|
|
16894
17050
|
managementUrl: organization.managementUrl
|
|
16895
17051
|
}
|
|
16896
|
-
) : /* @__PURE__ */ (0,
|
|
17052
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16897
17053
|
OrganizationContent,
|
|
16898
17054
|
{
|
|
16899
17055
|
embedded: true,
|
|
16900
17056
|
view: activeTab === "organizationWorkspaces" || activeTab === "organizationDomains" ? "workspaces" : "people"
|
|
16901
17057
|
}
|
|
16902
17058
|
) }),
|
|
16903
|
-
activeTab === "billing" && isWorkspaceAdmin && /* @__PURE__ */ (0,
|
|
17059
|
+
activeTab === "billing" && isWorkspaceAdmin && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col flex-1 min-w-0 min-h-0 h-full", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16904
17060
|
BillingContent,
|
|
16905
17061
|
{
|
|
16906
17062
|
embedded: true,
|
|
@@ -16930,14 +17086,14 @@ function SettingsContentInner({
|
|
|
16930
17086
|
}
|
|
16931
17087
|
}
|
|
16932
17088
|
) }),
|
|
16933
|
-
(activeTab === "billing" || activeTab === "apikey") && !isWorkspaceAdmin && /* @__PURE__ */ (0,
|
|
16934
|
-
/* @__PURE__ */ (0,
|
|
16935
|
-
/* @__PURE__ */ (0,
|
|
16936
|
-
/* @__PURE__ */ (0,
|
|
16937
|
-
/* @__PURE__ */ (0,
|
|
17089
|
+
(activeTab === "billing" || activeTab === "apikey") && !isWorkspaceAdmin && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("section", { role: "status", className: "flex flex-col flex-1 min-w-0", style: { padding: 28, gap: 12, background: "var(--alias-surface-base)", border: "1px solid var(--alias-border-default)", borderRadius: "var(--radius-3xl, 16px)" }, children: [
|
|
17090
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconLock, { size: 24, color: MUTED_COLOR2 }),
|
|
17091
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { style: { margin: 0, fontSize: 18, fontWeight: 600, color: PRIMARY_COLOR3 }, children: "Contact your workspace admin" }),
|
|
17092
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { style: { margin: 0, fontSize: 14, lineHeight: "22px", color: MUTED_COLOR2, maxWidth: 480 }, children: activeTab === "billing" ? "Your workspace admin manages credit top-ups, plans and billing history. Get in touch with them to add credits or request billing details." : "API Keys are available to workspace Admins only. Get in touch with your workspace admin to manage API access." }),
|
|
17093
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { type: "button", onClick: () => setActiveTab("workspaceMembers"), style: { alignSelf: "flex-start", marginTop: 8, padding: "8px 12px", background: "transparent", color: PRIMARY_COLOR3, border: "1px solid var(--alias-border-default)", borderRadius: 8, cursor: "pointer" }, children: "View workspace members" })
|
|
16938
17094
|
] }),
|
|
16939
|
-
activeTab === "apikey" && isWorkspaceAdmin && /* @__PURE__ */ (0,
|
|
16940
|
-
/* @__PURE__ */ (0,
|
|
17095
|
+
activeTab === "apikey" && isWorkspaceAdmin && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 min-h-0 h-full", children: [
|
|
17096
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
16941
17097
|
"a",
|
|
16942
17098
|
{
|
|
16943
17099
|
href: "https://docs.streamoid.com",
|
|
@@ -16947,19 +17103,19 @@ function SettingsContentInner({
|
|
|
16947
17103
|
className: "flex items-center shrink-0",
|
|
16948
17104
|
style: { gap: 14, padding: "16px 20px", marginBottom: 16, border: "1px solid var(--alias-border-default)", borderRadius: "var(--radius-3xl, 16px)", background: "var(--alias-surface-base)", color: PRIMARY_COLOR3, textDecoration: "none" },
|
|
16949
17105
|
children: [
|
|
16950
|
-
/* @__PURE__ */ (0,
|
|
16951
|
-
/* @__PURE__ */ (0,
|
|
16952
|
-
/* @__PURE__ */ (0,
|
|
16953
|
-
/* @__PURE__ */ (0,
|
|
17106
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconBookOpen, { size: 24 }),
|
|
17107
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { style: { display: "flex", flexDirection: "column", gap: 4, flex: 1 }, children: [
|
|
17108
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { style: { fontSize: 14, fontWeight: 600 }, children: "Build with the Streamoid API" }),
|
|
17109
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { style: { fontSize: 13, lineHeight: "20px", color: MUTED_COLOR2 }, children: "Explore authentication, API references and integration guides." })
|
|
16954
17110
|
] }),
|
|
16955
|
-
/* @__PURE__ */ (0,
|
|
17111
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, fontSize: 13, whiteSpace: "nowrap" }, children: [
|
|
16956
17112
|
"View docs ",
|
|
16957
|
-
/* @__PURE__ */ (0,
|
|
17113
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons18.SiconExternalLink, { size: 16 })
|
|
16958
17114
|
] })
|
|
16959
17115
|
]
|
|
16960
17116
|
}
|
|
16961
17117
|
),
|
|
16962
|
-
/* @__PURE__ */ (0,
|
|
17118
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16963
17119
|
TokensContent,
|
|
16964
17120
|
{
|
|
16965
17121
|
embedded: true,
|
|
@@ -16976,7 +17132,7 @@ function SettingsContentInner({
|
|
|
16976
17132
|
] })
|
|
16977
17133
|
}
|
|
16978
17134
|
),
|
|
16979
|
-
/* @__PURE__ */ (0,
|
|
17135
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16980
17136
|
WorkspaceModal,
|
|
16981
17137
|
{
|
|
16982
17138
|
open: wsModalOpen,
|
|
@@ -16995,7 +17151,7 @@ function SettingsContentInner({
|
|
|
16995
17151
|
}
|
|
16996
17152
|
}
|
|
16997
17153
|
),
|
|
16998
|
-
/* @__PURE__ */ (0,
|
|
17154
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16999
17155
|
ConfirmLeaveModal,
|
|
17000
17156
|
{
|
|
17001
17157
|
open: confirmLeaveOpen,
|
|
@@ -17028,7 +17184,7 @@ function SettingsContentInner({
|
|
|
17028
17184
|
}
|
|
17029
17185
|
}
|
|
17030
17186
|
),
|
|
17031
|
-
/* @__PURE__ */ (0,
|
|
17187
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
17032
17188
|
ConfirmDeleteModal,
|
|
17033
17189
|
{
|
|
17034
17190
|
open: confirmDeleteOpen,
|
|
@@ -17061,7 +17217,7 @@ function SettingsContentInner({
|
|
|
17061
17217
|
var import_react28 = require("react");
|
|
17062
17218
|
var import_ui25 = require("@streamoid/ui");
|
|
17063
17219
|
var import_icons19 = require("@streamoid/icons");
|
|
17064
|
-
var
|
|
17220
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
17065
17221
|
var T19 = {
|
|
17066
17222
|
primary: "var(--alias-text---icons-primary)",
|
|
17067
17223
|
muted: "var(--alias-text---icons-muted)",
|
|
@@ -17144,7 +17300,7 @@ function WorkspacePicker({
|
|
|
17144
17300
|
);
|
|
17145
17301
|
const workspaceRow = (workspace, first) => {
|
|
17146
17302
|
const checked = selected.has(workspace._id);
|
|
17147
|
-
return /* @__PURE__ */ (0,
|
|
17303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
17148
17304
|
"div",
|
|
17149
17305
|
{
|
|
17150
17306
|
role: "checkbox",
|
|
@@ -17165,8 +17321,8 @@ function WorkspacePicker({
|
|
|
17165
17321
|
}
|
|
17166
17322
|
},
|
|
17167
17323
|
children: [
|
|
17168
|
-
/* @__PURE__ */ (0,
|
|
17169
|
-
/* @__PURE__ */ (0,
|
|
17324
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui25.ScCheckbox, { checked }),
|
|
17325
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17170
17326
|
ProfileAvatar,
|
|
17171
17327
|
{
|
|
17172
17328
|
name: workspace.name,
|
|
@@ -17175,8 +17331,8 @@ function WorkspacePicker({
|
|
|
17175
17331
|
borderRadius: T19.rLg
|
|
17176
17332
|
}
|
|
17177
17333
|
),
|
|
17178
|
-
/* @__PURE__ */ (0,
|
|
17179
|
-
/* @__PURE__ */ (0,
|
|
17334
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col min-w-0", children: [
|
|
17335
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17180
17336
|
"span",
|
|
17181
17337
|
{
|
|
17182
17338
|
className: "truncate",
|
|
@@ -17184,7 +17340,7 @@ function WorkspacePicker({
|
|
|
17184
17340
|
children: workspace.name
|
|
17185
17341
|
}
|
|
17186
17342
|
),
|
|
17187
|
-
workspace.ownerName && /* @__PURE__ */ (0,
|
|
17343
|
+
workspace.ownerName && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
17188
17344
|
"span",
|
|
17189
17345
|
{
|
|
17190
17346
|
className: "truncate",
|
|
@@ -17205,8 +17361,8 @@ function WorkspacePicker({
|
|
|
17205
17361
|
const isCollapsed = collapsed.has(section.organizationId);
|
|
17206
17362
|
const picked = section.workspaces.filter((w) => selected.has(w._id)).length;
|
|
17207
17363
|
const Chevron = isCollapsed ? import_icons19.SiconChevronRight : import_icons19.SiconChevronDown;
|
|
17208
|
-
return /* @__PURE__ */ (0,
|
|
17209
|
-
/* @__PURE__ */ (0,
|
|
17364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col w-full", children: [
|
|
17365
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
17210
17366
|
"div",
|
|
17211
17367
|
{
|
|
17212
17368
|
role: "button",
|
|
@@ -17230,8 +17386,8 @@ function WorkspacePicker({
|
|
|
17230
17386
|
}
|
|
17231
17387
|
},
|
|
17232
17388
|
children: [
|
|
17233
|
-
/* @__PURE__ */ (0,
|
|
17234
|
-
/* @__PURE__ */ (0,
|
|
17389
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Chevron, { className: "w-4 h-4", color: T19.muted }),
|
|
17390
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17235
17391
|
ProfileAvatar,
|
|
17236
17392
|
{
|
|
17237
17393
|
name: section.organizationName,
|
|
@@ -17240,7 +17396,7 @@ function WorkspacePicker({
|
|
|
17240
17396
|
borderRadius: T19.rLg
|
|
17241
17397
|
}
|
|
17242
17398
|
),
|
|
17243
|
-
/* @__PURE__ */ (0,
|
|
17399
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17244
17400
|
"span",
|
|
17245
17401
|
{
|
|
17246
17402
|
className: "truncate flex-1 min-w-0",
|
|
@@ -17248,11 +17404,11 @@ function WorkspacePicker({
|
|
|
17248
17404
|
children: section.organizationName
|
|
17249
17405
|
}
|
|
17250
17406
|
),
|
|
17251
|
-
/* @__PURE__ */ (0,
|
|
17407
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { style: { color: T19.muted, fontSize: T19.fsXs, lineHeight: T19.lhXs, flexShrink: 0 }, children: picked ? `${picked} of ${section.workspaces.length} selected` : `${section.workspaces.length} workspace${section.workspaces.length === 1 ? "" : "s"}` })
|
|
17252
17408
|
]
|
|
17253
17409
|
}
|
|
17254
17410
|
),
|
|
17255
|
-
!isCollapsed && (section.workspaces.length ? section.workspaces.map((w) => workspaceRow(w, false)) : /* @__PURE__ */ (0,
|
|
17411
|
+
!isCollapsed && (section.workspaces.length ? section.workspaces.map((w) => workspaceRow(w, false)) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17256
17412
|
"div",
|
|
17257
17413
|
{
|
|
17258
17414
|
style: {
|
|
@@ -17267,14 +17423,14 @@ function WorkspacePicker({
|
|
|
17267
17423
|
))
|
|
17268
17424
|
] }, section.organizationId);
|
|
17269
17425
|
};
|
|
17270
|
-
return /* @__PURE__ */ (0,
|
|
17426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
17271
17427
|
"div",
|
|
17272
17428
|
{
|
|
17273
17429
|
className: "flex flex-col w-full",
|
|
17274
17430
|
style: { maxWidth: 520, gap: T19.sp5xl, fontFamily: T19.font },
|
|
17275
17431
|
children: [
|
|
17276
|
-
/* @__PURE__ */ (0,
|
|
17277
|
-
/* @__PURE__ */ (0,
|
|
17432
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col", style: { gap: T19.spMd }, children: [
|
|
17433
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17278
17434
|
"p",
|
|
17279
17435
|
{
|
|
17280
17436
|
style: {
|
|
@@ -17287,9 +17443,9 @@ function WorkspacePicker({
|
|
|
17287
17443
|
children: "Choose your workspaces"
|
|
17288
17444
|
}
|
|
17289
17445
|
),
|
|
17290
|
-
/* @__PURE__ */ (0,
|
|
17446
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { style: { color: T19.muted, fontSize: T19.fsSm, lineHeight: T19.lhSm, margin: 0 }, children: hasWorkspaces || loading ? canCreate ? `Join one or more workspaces in ${orgLabel} as a member, or create your own.` : `Join one or more workspaces in ${orgLabel} as a member.` : canCreate ? `There are no workspaces to join in ${orgLabel} yet. Create one to get started.` : `There are no workspaces you can join in ${orgLabel} yet. Ask an admin${grouped ? "" : ` of ${orgLabel}`} to invite you to one.` })
|
|
17291
17447
|
] }),
|
|
17292
|
-
(loading || hasWorkspaces) && /* @__PURE__ */ (0,
|
|
17448
|
+
(loading || hasWorkspaces) && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17293
17449
|
"div",
|
|
17294
17450
|
{
|
|
17295
17451
|
className: "flex flex-col w-full overflow-y-auto",
|
|
@@ -17299,7 +17455,7 @@ function WorkspacePicker({
|
|
|
17299
17455
|
border: `1px solid ${T19.borderSubtle}`,
|
|
17300
17456
|
borderRadius: T19.r3xl
|
|
17301
17457
|
},
|
|
17302
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
17458
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17303
17459
|
"div",
|
|
17304
17460
|
{
|
|
17305
17461
|
className: "flex items-center justify-center",
|
|
@@ -17309,9 +17465,9 @@ function WorkspacePicker({
|
|
|
17309
17465
|
) : grouped ? sections.map(groupSection) : sections[0].workspaces.map((w, index) => workspaceRow(w, index === 0))
|
|
17310
17466
|
}
|
|
17311
17467
|
),
|
|
17312
|
-
showCreate ? /* @__PURE__ */ (0,
|
|
17313
|
-
creatable.length > 1 && /* @__PURE__ */ (0,
|
|
17314
|
-
/* @__PURE__ */ (0,
|
|
17468
|
+
showCreate ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col w-full", style: { gap: T19.spMd }, children: [
|
|
17469
|
+
creatable.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
17470
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17315
17471
|
"label",
|
|
17316
17472
|
{
|
|
17317
17473
|
htmlFor: "workspace-picker-organization",
|
|
@@ -17319,7 +17475,7 @@ function WorkspacePicker({
|
|
|
17319
17475
|
children: "Organization"
|
|
17320
17476
|
}
|
|
17321
17477
|
),
|
|
17322
|
-
/* @__PURE__ */ (0,
|
|
17478
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17323
17479
|
"select",
|
|
17324
17480
|
{
|
|
17325
17481
|
id: "workspace-picker-organization",
|
|
@@ -17336,11 +17492,11 @@ function WorkspacePicker({
|
|
|
17336
17492
|
fontFamily: T19.font,
|
|
17337
17493
|
fontSize: T19.fsSm
|
|
17338
17494
|
},
|
|
17339
|
-
children: creatable.map((s) => /* @__PURE__ */ (0,
|
|
17495
|
+
children: creatable.map((s) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { value: s.organizationId, children: s.organizationName }, s.organizationId))
|
|
17340
17496
|
}
|
|
17341
17497
|
)
|
|
17342
17498
|
] }),
|
|
17343
|
-
/* @__PURE__ */ (0,
|
|
17499
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17344
17500
|
"label",
|
|
17345
17501
|
{
|
|
17346
17502
|
htmlFor: "workspace-picker-name",
|
|
@@ -17348,7 +17504,7 @@ function WorkspacePicker({
|
|
|
17348
17504
|
children: "New workspace name"
|
|
17349
17505
|
}
|
|
17350
17506
|
),
|
|
17351
|
-
/* @__PURE__ */ (0,
|
|
17507
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17352
17508
|
"input",
|
|
17353
17509
|
{
|
|
17354
17510
|
id: "workspace-picker-name",
|
|
@@ -17372,12 +17528,12 @@ function WorkspacePicker({
|
|
|
17372
17528
|
}
|
|
17373
17529
|
}
|
|
17374
17530
|
),
|
|
17375
|
-
/* @__PURE__ */ (0,
|
|
17531
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { role: "radiogroup", className: "flex w-full", style: { gap: T19.spMd }, children: [
|
|
17376
17532
|
["shared", "Shared", `Anyone in ${createLabel} can join`],
|
|
17377
17533
|
["private", "Private", "Invite only"]
|
|
17378
17534
|
].map(([value, label, hint]) => {
|
|
17379
17535
|
const active = visibility === value;
|
|
17380
|
-
return /* @__PURE__ */ (0,
|
|
17536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
17381
17537
|
"div",
|
|
17382
17538
|
{
|
|
17383
17539
|
role: "radio",
|
|
@@ -17398,7 +17554,7 @@ function WorkspacePicker({
|
|
|
17398
17554
|
border: `1px solid ${active ? T19.primary : T19.borderSubtle}`
|
|
17399
17555
|
},
|
|
17400
17556
|
children: [
|
|
17401
|
-
/* @__PURE__ */ (0,
|
|
17557
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17402
17558
|
"span",
|
|
17403
17559
|
{
|
|
17404
17560
|
style: {
|
|
@@ -17410,14 +17566,14 @@ function WorkspacePicker({
|
|
|
17410
17566
|
children: label
|
|
17411
17567
|
}
|
|
17412
17568
|
),
|
|
17413
|
-
/* @__PURE__ */ (0,
|
|
17569
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { style: { color: T19.muted, fontSize: T19.fsXs, lineHeight: T19.lhXs }, children: hint })
|
|
17414
17570
|
]
|
|
17415
17571
|
},
|
|
17416
17572
|
value
|
|
17417
17573
|
);
|
|
17418
17574
|
}) }),
|
|
17419
|
-
/* @__PURE__ */ (0,
|
|
17420
|
-
hasWorkspaces && /* @__PURE__ */ (0,
|
|
17575
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center justify-end w-full", style: { gap: T19.spMd }, children: [
|
|
17576
|
+
hasWorkspaces && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17421
17577
|
import_ui25.ScButton,
|
|
17422
17578
|
{
|
|
17423
17579
|
text: "Back",
|
|
@@ -17426,7 +17582,7 @@ function WorkspacePicker({
|
|
|
17426
17582
|
onClick: () => setCreating(false)
|
|
17427
17583
|
}
|
|
17428
17584
|
),
|
|
17429
|
-
/* @__PURE__ */ (0,
|
|
17585
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17430
17586
|
import_ui25.ScButton,
|
|
17431
17587
|
{
|
|
17432
17588
|
text: busy ? "Creating\u2026" : "Create workspace",
|
|
@@ -17437,8 +17593,8 @@ function WorkspacePicker({
|
|
|
17437
17593
|
}
|
|
17438
17594
|
)
|
|
17439
17595
|
] })
|
|
17440
|
-
] }) : !loading && !hasWorkspaces ? null : /* @__PURE__ */ (0,
|
|
17441
|
-
canCreate ? /* @__PURE__ */ (0,
|
|
17596
|
+
] }) : !loading && !hasWorkspaces ? null : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-wrap items-center justify-between w-full", style: { gap: T19.spMd }, children: [
|
|
17597
|
+
canCreate ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17442
17598
|
import_ui25.ScButton,
|
|
17443
17599
|
{
|
|
17444
17600
|
text: "Create a workspace",
|
|
@@ -17447,8 +17603,8 @@ function WorkspacePicker({
|
|
|
17447
17603
|
state: loading || busy ? "disabled" : "default",
|
|
17448
17604
|
onClick: loading || busy ? void 0 : () => setCreating(true)
|
|
17449
17605
|
}
|
|
17450
|
-
) : /* @__PURE__ */ (0,
|
|
17451
|
-
/* @__PURE__ */ (0,
|
|
17606
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", {}),
|
|
17607
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
17452
17608
|
import_ui25.ScButton,
|
|
17453
17609
|
{
|
|
17454
17610
|
text: busy ? "Joining\u2026" : selected.size > 1 ? `Join ${selected.size} workspaces` : "Join workspace",
|
|
@@ -17467,7 +17623,7 @@ function WorkspacePicker({
|
|
|
17467
17623
|
// src/organization-picker.tsx
|
|
17468
17624
|
var import_react29 = require("react");
|
|
17469
17625
|
var import_ui26 = require("@streamoid/ui");
|
|
17470
|
-
var
|
|
17626
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
17471
17627
|
var T20 = {
|
|
17472
17628
|
primary: "var(--alias-text---icons-primary)",
|
|
17473
17629
|
muted: "var(--alias-text---icons-muted)",
|
|
@@ -17527,18 +17683,18 @@ function OrganizationPicker({
|
|
|
17527
17683
|
const heading = choosing ? "Choose your organization" : "Create your organization";
|
|
17528
17684
|
const subheading = choosing ? `${companyDomain ?? "Your company"} has more than one organization. Pick the ones to join as a member.` : publicDomain ? "Create an organization for your team. Or, if your team already uses Streamoid, ask them to invite you." : `Nobody from ${companyDomain ?? "your company"} has set up an organization you can join yet. Create one; you'll be its admin.`;
|
|
17529
17685
|
const textStyle = { margin: 0, fontFamily: T20.font };
|
|
17530
|
-
return /* @__PURE__ */ (0,
|
|
17686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
17531
17687
|
"div",
|
|
17532
17688
|
{
|
|
17533
17689
|
className: "flex flex-col w-full",
|
|
17534
17690
|
style: { maxWidth: 520, gap: T20.sp5xl, fontFamily: T20.font },
|
|
17535
17691
|
children: [
|
|
17536
|
-
/* @__PURE__ */ (0,
|
|
17537
|
-
/* @__PURE__ */ (0,
|
|
17538
|
-
/* @__PURE__ */ (0,
|
|
17692
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col", style: { gap: T20.spMd }, children: [
|
|
17693
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { style: { ...textStyle, color: T20.primary, fontSize: T20.fsXl, fontWeight: 600, lineHeight: T20.lhXl }, children: heading }),
|
|
17694
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { style: { ...textStyle, color: T20.muted, fontSize: T20.fsSm, lineHeight: T20.lhSm }, children: loading ? "Looking up your company\u2026" : subheading })
|
|
17539
17695
|
] }),
|
|
17540
|
-
!loading && choosing && /* @__PURE__ */ (0,
|
|
17541
|
-
/* @__PURE__ */ (0,
|
|
17696
|
+
!loading && choosing && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
17697
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
17542
17698
|
"div",
|
|
17543
17699
|
{
|
|
17544
17700
|
role: "group",
|
|
@@ -17551,7 +17707,7 @@ function OrganizationPicker({
|
|
|
17551
17707
|
},
|
|
17552
17708
|
children: organizations.map((org, index) => {
|
|
17553
17709
|
const checked = selected.has(org._id);
|
|
17554
|
-
return /* @__PURE__ */ (0,
|
|
17710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
17555
17711
|
"div",
|
|
17556
17712
|
{
|
|
17557
17713
|
role: "checkbox",
|
|
@@ -17572,11 +17728,11 @@ function OrganizationPicker({
|
|
|
17572
17728
|
}
|
|
17573
17729
|
},
|
|
17574
17730
|
children: [
|
|
17575
|
-
/* @__PURE__ */ (0,
|
|
17576
|
-
/* @__PURE__ */ (0,
|
|
17577
|
-
/* @__PURE__ */ (0,
|
|
17578
|
-
/* @__PURE__ */ (0,
|
|
17579
|
-
org.domain && /* @__PURE__ */ (0,
|
|
17731
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui26.ScCheckbox, { checked }),
|
|
17732
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ProfileAvatar, { name: org.name, profileImage: org.imageUrl, size: 32, borderRadius: T20.rLg }),
|
|
17733
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col min-w-0", children: [
|
|
17734
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "truncate", style: { color: T20.primary, fontSize: T20.fsSm, fontWeight: 500, lineHeight: T20.lhSm }, children: org.name }),
|
|
17735
|
+
org.domain && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "truncate", style: { color: T20.muted, fontSize: T20.fsXs, lineHeight: T20.lhXs }, children: org.domain })
|
|
17580
17736
|
] })
|
|
17581
17737
|
]
|
|
17582
17738
|
},
|
|
@@ -17585,7 +17741,7 @@ function OrganizationPicker({
|
|
|
17585
17741
|
})
|
|
17586
17742
|
}
|
|
17587
17743
|
),
|
|
17588
|
-
/* @__PURE__ */ (0,
|
|
17744
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex items-center justify-end w-full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
17589
17745
|
import_ui26.ScButton,
|
|
17590
17746
|
{
|
|
17591
17747
|
text: busy ? "Joining\u2026" : selected.size > 1 ? `Join ${selected.size} organizations` : "Join organization",
|
|
@@ -17596,10 +17752,10 @@ function OrganizationPicker({
|
|
|
17596
17752
|
}
|
|
17597
17753
|
) })
|
|
17598
17754
|
] }),
|
|
17599
|
-
!loading && !choosing && /* @__PURE__ */ (0,
|
|
17600
|
-
/* @__PURE__ */ (0,
|
|
17601
|
-
/* @__PURE__ */ (0,
|
|
17602
|
-
/* @__PURE__ */ (0,
|
|
17755
|
+
!loading && !choosing && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col w-full", style: { gap: T20.sp3xl }, children: [
|
|
17756
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col w-full", style: { gap: T20.spMd }, children: [
|
|
17757
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { htmlFor: "organization-picker-name", style: { color: T20.tertiary, fontSize: T20.fsSm, lineHeight: T20.lhSm }, children: "Organization name" }),
|
|
17758
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
17603
17759
|
"input",
|
|
17604
17760
|
{
|
|
17605
17761
|
id: "organization-picker-name",
|
|
@@ -17621,14 +17777,14 @@ function OrganizationPicker({
|
|
|
17621
17777
|
}
|
|
17622
17778
|
)
|
|
17623
17779
|
] }),
|
|
17624
|
-
!publicDomain && /* @__PURE__ */ (0,
|
|
17625
|
-
/* @__PURE__ */ (0,
|
|
17626
|
-
/* @__PURE__ */ (0,
|
|
17780
|
+
!publicDomain && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col w-full", style: { gap: T20.spMd }, children: [
|
|
17781
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { style: { color: T20.tertiary, fontSize: T20.fsSm, lineHeight: T20.lhSm }, children: "Who can join" }),
|
|
17782
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { role: "radiogroup", className: "flex w-full", style: { gap: T20.spMd }, children: [
|
|
17627
17783
|
["shared", "Shared"],
|
|
17628
17784
|
["private", "Private"]
|
|
17629
17785
|
].map(([value, label]) => {
|
|
17630
17786
|
const active = type === value;
|
|
17631
|
-
return /* @__PURE__ */ (0,
|
|
17787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
17632
17788
|
"div",
|
|
17633
17789
|
{
|
|
17634
17790
|
role: "radio",
|
|
@@ -17647,12 +17803,12 @@ function OrganizationPicker({
|
|
|
17647
17803
|
borderRadius: T20.r3xl,
|
|
17648
17804
|
border: `1px solid ${active ? T20.primary : T20.borderSubtle}`
|
|
17649
17805
|
},
|
|
17650
|
-
children: /* @__PURE__ */ (0,
|
|
17806
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { style: { color: T20.primary, fontSize: T20.fsSm, lineHeight: T20.lhSm, fontWeight: active ? 600 : 400 }, children: label })
|
|
17651
17807
|
},
|
|
17652
17808
|
value
|
|
17653
17809
|
);
|
|
17654
17810
|
}) }),
|
|
17655
|
-
/* @__PURE__ */ (0,
|
|
17811
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
17656
17812
|
"span",
|
|
17657
17813
|
{
|
|
17658
17814
|
"data-testid": "organization-visibility-message",
|
|
@@ -17662,7 +17818,7 @@ function OrganizationPicker({
|
|
|
17662
17818
|
}
|
|
17663
17819
|
)
|
|
17664
17820
|
] }),
|
|
17665
|
-
/* @__PURE__ */ (0,
|
|
17821
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex items-center justify-end w-full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
17666
17822
|
import_ui26.ScButton,
|
|
17667
17823
|
{
|
|
17668
17824
|
text: busy ? "Creating\u2026" : "Create organization",
|
|
@@ -17770,18 +17926,18 @@ var app_settings_page_default = {
|
|
|
17770
17926
|
};
|
|
17771
17927
|
|
|
17772
17928
|
// src/app-settings-page.tsx
|
|
17773
|
-
var
|
|
17929
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
17774
17930
|
function AppSettingsHeader({ administrationHref, onOpenAdministration, onClose }) {
|
|
17775
|
-
return /* @__PURE__ */ (0,
|
|
17776
|
-
/* @__PURE__ */ (0,
|
|
17777
|
-
/* @__PURE__ */ (0,
|
|
17778
|
-
/* @__PURE__ */ (0,
|
|
17931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("header", { className: app_settings_page_default.header, children: [
|
|
17932
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h1", { children: "App settings" }),
|
|
17933
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: app_settings_page_default.actions, children: [
|
|
17934
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("a", { href: administrationHref, onClick: (event) => {
|
|
17779
17935
|
if (onOpenAdministration && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey && event.button === 0) {
|
|
17780
17936
|
event.preventDefault();
|
|
17781
17937
|
onOpenAdministration();
|
|
17782
17938
|
}
|
|
17783
17939
|
}, children: "Account and workspace settings" }),
|
|
17784
|
-
onClose ? /* @__PURE__ */ (0,
|
|
17940
|
+
onClose ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("button", { type: "button", className: app_settings_page_default.close, "aria-label": "Close App settings", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons20.SiconX, { size: 20, "aria-hidden": "true" }) }) : null
|
|
17785
17941
|
] })
|
|
17786
17942
|
] });
|
|
17787
17943
|
}
|
|
@@ -17793,43 +17949,43 @@ function AppSettingsPage({
|
|
|
17793
17949
|
emptyDescription = "Account, workspace and organization settings are available above.",
|
|
17794
17950
|
children
|
|
17795
17951
|
}) {
|
|
17796
|
-
return /* @__PURE__ */ (0,
|
|
17797
|
-
/* @__PURE__ */ (0,
|
|
17798
|
-
children ?? /* @__PURE__ */ (0,
|
|
17799
|
-
/* @__PURE__ */ (0,
|
|
17800
|
-
/* @__PURE__ */ (0,
|
|
17952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: app_settings_page_default.page, children: [
|
|
17953
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AppSettingsHeader, { administrationHref, onOpenAdministration, onClose }),
|
|
17954
|
+
children ?? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { className: app_settings_page_default.empty, "aria-label": "App settings empty state", children: [
|
|
17955
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h2", { children: emptyTitle }),
|
|
17956
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { children: emptyDescription })
|
|
17801
17957
|
] })
|
|
17802
17958
|
] });
|
|
17803
17959
|
}
|
|
17804
17960
|
function AppSettingsSection({ title, action, children }) {
|
|
17805
|
-
return /* @__PURE__ */ (0,
|
|
17806
|
-
/* @__PURE__ */ (0,
|
|
17807
|
-
/* @__PURE__ */ (0,
|
|
17808
|
-
action ? /* @__PURE__ */ (0,
|
|
17961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { className: app_settings_page_default.section, "aria-label": title, children: [
|
|
17962
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: app_settings_page_default.sectionHeader, children: [
|
|
17963
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h2", { children: title }),
|
|
17964
|
+
action ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: app_settings_page_default.sectionAction, children: action }) : null
|
|
17809
17965
|
] }),
|
|
17810
|
-
/* @__PURE__ */ (0,
|
|
17966
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children })
|
|
17811
17967
|
] });
|
|
17812
17968
|
}
|
|
17813
17969
|
function AppSettingsRow({ title, description, summary, href, onClick, disabled, disabledReason, ariaLabel, trailing }) {
|
|
17814
17970
|
const reasonId = (0, import_react31.useId)();
|
|
17815
|
-
const content = /* @__PURE__ */ (0,
|
|
17816
|
-
/* @__PURE__ */ (0,
|
|
17817
|
-
/* @__PURE__ */ (0,
|
|
17818
|
-
description ? /* @__PURE__ */ (0,
|
|
17971
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
17972
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: app_settings_page_default.rowCopy, children: [
|
|
17973
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: app_settings_page_default.rowTitle, children: title }),
|
|
17974
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: app_settings_page_default.rowDescription, children: description }) : null
|
|
17819
17975
|
] }),
|
|
17820
|
-
summary || trailing || href || onClick ? /* @__PURE__ */ (0,
|
|
17976
|
+
summary || trailing || href || onClick ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: app_settings_page_default.rowEnd, children: [
|
|
17821
17977
|
summary,
|
|
17822
|
-
trailing ?? (!disabled && (href || onClick) ? /* @__PURE__ */ (0,
|
|
17978
|
+
trailing ?? (!disabled && (href || onClick) ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons20.SiconArrowRight, { size: 18, "aria-hidden": "true" }) : null)
|
|
17823
17979
|
] }) : null,
|
|
17824
|
-
disabledReason ? /* @__PURE__ */ (0,
|
|
17980
|
+
disabledReason ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: app_settings_page_default.srOnly, id: reasonId, children: disabledReason }) : null
|
|
17825
17981
|
] });
|
|
17826
17982
|
const props = { className: app_settings_page_default.row, "aria-label": ariaLabel, "aria-describedby": disabledReason ? reasonId : void 0 };
|
|
17827
|
-
if (href && !disabled) return /* @__PURE__ */ (0,
|
|
17983
|
+
if (href && !disabled) return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("a", { ...props, href, onClick: (event) => {
|
|
17828
17984
|
if (onClick && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey && event.button === 0) {
|
|
17829
17985
|
event.preventDefault();
|
|
17830
17986
|
onClick();
|
|
17831
17987
|
}
|
|
17832
17988
|
}, children: content });
|
|
17833
|
-
if (onClick || disabled) return /* @__PURE__ */ (0,
|
|
17834
|
-
return /* @__PURE__ */ (0,
|
|
17989
|
+
if (onClick || disabled) return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("button", { ...props, type: "button", disabled, onClick, children: content });
|
|
17990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { ...props, children: content });
|
|
17835
17991
|
}
|