@wacht/jsx 1.0.0-beta.60 → 1.0.0-beta.62
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.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +591 -583
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as a, Fragment as se, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import xe, { createContext as sa, useState as C, useRef as
|
|
4
|
+
import xe, { createContext as sa, useState as C, useRef as j, useEffect as X, useMemo as ot, useContext as oa, useCallback as I, useLayoutEffect as x0, useDebugValue as k0, createElement as N0, memo as A0, forwardRef as ce } from "react";
|
|
5
5
|
import or from "react-dom";
|
|
6
6
|
export * from "@wacht/types";
|
|
7
7
|
const qi = "__dev_session__", C0 = "__dev_session_updated_at", E0 = "__dev_session_updated_at";
|
|
@@ -87,13 +87,13 @@ function jn(e, t) {
|
|
|
87
87
|
const ki = sa(
|
|
88
88
|
void 0
|
|
89
89
|
);
|
|
90
|
-
function
|
|
90
|
+
function X6({
|
|
91
91
|
children: e,
|
|
92
92
|
publicKey: t,
|
|
93
93
|
adapter: n,
|
|
94
94
|
uiOverrides: i
|
|
95
95
|
}) {
|
|
96
|
-
const [s, o] = C(!0), [m, l] = C(null), c =
|
|
96
|
+
const [s, o] = C(!0), [m, l] = C(null), c = j(!1);
|
|
97
97
|
X(() => {
|
|
98
98
|
async function u() {
|
|
99
99
|
if (!c.current)
|
|
@@ -1073,7 +1073,7 @@ const Sr = xe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1073
1073
|
}), Mr = {
|
|
1074
1074
|
dedupe: !0
|
|
1075
1075
|
}, os = Promise.resolve(yt), b1 = () => aa, y1 = (e, t, n) => {
|
|
1076
|
-
const { cache: i, compare: s, suspense: o, fallbackData: m, revalidateOnMount: l, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: h, strictServerPrefetchWarning: g } = n, [v, w, y, x] = qt.get(i), [b, N] = xn(e), E =
|
|
1076
|
+
const { cache: i, compare: s, suspense: o, fallbackData: m, revalidateOnMount: l, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: h, strictServerPrefetchWarning: g } = n, [v, w, y, x] = qt.get(i), [b, N] = xn(e), E = j(!1), k = j(!1), A = j(b), _ = j(t), M = j(n), L = () => M.current, F = () => L().isVisible() && L().isOnline(), [R, z, O, S] = _a(i, b), Z = j({}).current, T = Le(m) ? Le(n.fallback) ? yt : n.fallback[b] : m, P = (fe, K) => {
|
|
1077
1077
|
for (const Q in Z) {
|
|
1078
1078
|
const ne = Q;
|
|
1079
1079
|
if (ne === "data") {
|
|
@@ -1117,7 +1117,7 @@ const Sr = xe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1117
1117
|
i,
|
|
1118
1118
|
b
|
|
1119
1119
|
]
|
|
1120
|
-
), H[0], H[1]), q = v[b] && v[b].length > 0,
|
|
1120
|
+
), H[0], H[1]), q = v[b] && v[b].length > 0, G = V.data, U = Le(G) ? T && bo(T) ? Sr(T) : T : G, Y = V.error, ee = j(U), we = h ? Le(G) ? Le(ee.current) ? U : ee.current : G : U, _e = b && Le(U), de = j(null);
|
|
1121
1121
|
!tn && // getServerSnapshot is only called during hydration
|
|
1122
1122
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1123
1123
|
Qr.useSyncExternalStore(b1, () => (de.current = !1, de), () => (de.current = !0, de));
|
|
@@ -1193,7 +1193,7 @@ const Sr = xe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
1193
1193
|
[]
|
|
1194
1194
|
);
|
|
1195
1195
|
if (Gn(() => {
|
|
1196
|
-
_.current = t, M.current = n, Le(
|
|
1196
|
+
_.current = t, M.current = n, Le(G) || (ee.current = G);
|
|
1197
1197
|
}), Gn(() => {
|
|
1198
1198
|
if (!b) return;
|
|
1199
1199
|
const fe = qe.bind(yt, Mr);
|
|
@@ -1506,7 +1506,7 @@ const la = () => {
|
|
|
1506
1506
|
[s, t, i]
|
|
1507
1507
|
), f = I(
|
|
1508
1508
|
async ($, H) => {
|
|
1509
|
-
const V = Object.entries(H).reduce((
|
|
1509
|
+
const V = Object.entries(H).reduce((G, [U, Y]) => (Y != null && (Array.isArray(Y) ? Y.forEach((ee) => G.append(U, ee)) : G.append(U, Y)), G), new FormData()), q = await D(
|
|
1510
1510
|
await i(`/organizations/${$.id}/update`, {
|
|
1511
1511
|
method: "POST",
|
|
1512
1512
|
body: V
|
|
@@ -1643,8 +1643,8 @@ const la = () => {
|
|
|
1643
1643
|
), L = I(
|
|
1644
1644
|
async ($, H) => {
|
|
1645
1645
|
const V = new FormData();
|
|
1646
|
-
return V.append("name", H.name), H.permissions && H.permissions.forEach((
|
|
1647
|
-
V.append(`permissions[${U}]`,
|
|
1646
|
+
return V.append("name", H.name), H.permissions && H.permissions.forEach((G, U) => {
|
|
1647
|
+
V.append(`permissions[${U}]`, G);
|
|
1648
1648
|
}), await D(
|
|
1649
1649
|
await i(`/organizations/${$.id}/roles`, {
|
|
1650
1650
|
method: "POST",
|
|
@@ -1692,9 +1692,9 @@ const la = () => {
|
|
|
1692
1692
|
[i]
|
|
1693
1693
|
), S = I(
|
|
1694
1694
|
async ($, H) => {
|
|
1695
|
-
var
|
|
1695
|
+
var G, U;
|
|
1696
1696
|
const V = new FormData();
|
|
1697
|
-
return V.append("email", H.email), V.append("role_id", H.organizationRole.id), (
|
|
1697
|
+
return V.append("email", H.email), V.append("role_id", H.organizationRole.id), (G = H.workspace) != null && G.id && V.append("workspace_id", H.workspace.id), (U = H.workspaceRole) != null && U.id && V.append("workspace_role_id", H.workspaceRole.id), (await D(
|
|
1698
1698
|
await i(`/organizations/${$.id}/invitations`, {
|
|
1699
1699
|
method: "POST",
|
|
1700
1700
|
body: V
|
|
@@ -1804,7 +1804,7 @@ const la = () => {
|
|
|
1804
1804
|
), H = I(async () => P ? await i(P) : [], [P, i]), V = I(async () => P ? await s(P) : [], [P, s]), q = I(
|
|
1805
1805
|
async (W) => P ? await m(P, W) : [],
|
|
1806
1806
|
[P, m]
|
|
1807
|
-
),
|
|
1807
|
+
), G = I(
|
|
1808
1808
|
async (W) => P ? await b(P, W) : void 0,
|
|
1809
1809
|
[P, b]
|
|
1810
1810
|
), U = I(async () => P ? await c(P) : [], [P, c]), Y = I(
|
|
@@ -1934,7 +1934,7 @@ const la = () => {
|
|
|
1934
1934
|
getInvitations: dt,
|
|
1935
1935
|
removeMember: q,
|
|
1936
1936
|
leave: J,
|
|
1937
|
-
removeRole:
|
|
1937
|
+
removeRole: G,
|
|
1938
1938
|
addMemberRole: _e,
|
|
1939
1939
|
removeMemberRole: de,
|
|
1940
1940
|
inviteMember: oe,
|
|
@@ -2312,7 +2312,7 @@ const Ci = () => {
|
|
|
2312
2312
|
);
|
|
2313
2313
|
},
|
|
2314
2314
|
[$, y]
|
|
2315
|
-
),
|
|
2315
|
+
), G = I(
|
|
2316
2316
|
async (ee) => {
|
|
2317
2317
|
if ($)
|
|
2318
2318
|
return await x(
|
|
@@ -2361,7 +2361,7 @@ const Ci = () => {
|
|
|
2361
2361
|
removeMemberRole: P,
|
|
2362
2362
|
getInvitations: H,
|
|
2363
2363
|
discardInvitation: q,
|
|
2364
|
-
resendInvitation:
|
|
2364
|
+
resendInvitation: G
|
|
2365
2365
|
};
|
|
2366
2366
|
};
|
|
2367
2367
|
function Lr(e) {
|
|
@@ -2386,8 +2386,8 @@ function Ba() {
|
|
|
2386
2386
|
mutate: o
|
|
2387
2387
|
} = $e(t ? null : "/user", () => R1(e)), m = async ($) => {
|
|
2388
2388
|
const H = new FormData();
|
|
2389
|
-
for (const [q,
|
|
2390
|
-
|
|
2389
|
+
for (const [q, G] of Object.entries($))
|
|
2390
|
+
G != null && G !== "" && H.append(q, String(G));
|
|
2391
2391
|
const V = await D(
|
|
2392
2392
|
await e("/me", {
|
|
2393
2393
|
method: "POST",
|
|
@@ -2467,8 +2467,8 @@ function Ba() {
|
|
|
2467
2467
|
})
|
|
2468
2468
|
)).data, E = async ($, H) => {
|
|
2469
2469
|
const V = new FormData();
|
|
2470
|
-
return V.append("authenticator_id", $), H.forEach((
|
|
2471
|
-
V.append("codes",
|
|
2470
|
+
return V.append("authenticator_id", $), H.forEach((G) => {
|
|
2471
|
+
V.append("codes", G);
|
|
2472
2472
|
}), await D(
|
|
2473
2473
|
await e("/me/authenticator/attempt-verification", {
|
|
2474
2474
|
method: "POST",
|
|
@@ -2529,7 +2529,7 @@ function Ba() {
|
|
|
2529
2529
|
provider: $,
|
|
2530
2530
|
redirectUri: H
|
|
2531
2531
|
}) => {
|
|
2532
|
-
var
|
|
2532
|
+
var G;
|
|
2533
2533
|
const V = new URLSearchParams({ provider: $ });
|
|
2534
2534
|
H && V.append("redirect_uri", H);
|
|
2535
2535
|
const q = await D(
|
|
@@ -2537,7 +2537,7 @@ function Ba() {
|
|
|
2537
2537
|
method: "POST"
|
|
2538
2538
|
})
|
|
2539
2539
|
);
|
|
2540
|
-
return "data" in q && ((
|
|
2540
|
+
return "data" in q && ((G = q.data) != null && G.oauth_url) && window.open(q.data.oauth_url, "_blank"), q;
|
|
2541
2541
|
}, S = async () => await D(
|
|
2542
2542
|
await e("/me/passkeys", { method: "GET" })
|
|
2543
2543
|
), Z = async ($) => {
|
|
@@ -2564,15 +2564,15 @@ function Ba() {
|
|
|
2564
2564
|
id: Rr(de.id),
|
|
2565
2565
|
transports: de.transports
|
|
2566
2566
|
}))
|
|
2567
|
-
},
|
|
2567
|
+
}, G = await navigator.credentials.create({
|
|
2568
2568
|
publicKey: q
|
|
2569
2569
|
});
|
|
2570
|
-
if (!
|
|
2570
|
+
if (!G)
|
|
2571
2571
|
throw new Error("Failed to create credential");
|
|
2572
|
-
const U =
|
|
2573
|
-
id:
|
|
2574
|
-
rawId: Lr(
|
|
2575
|
-
type:
|
|
2572
|
+
const U = G.response, Y = {
|
|
2573
|
+
id: G.id,
|
|
2574
|
+
rawId: Lr(G.rawId),
|
|
2575
|
+
type: G.type,
|
|
2576
2576
|
response: {
|
|
2577
2577
|
clientDataJSON: Lr(U.clientDataJSON),
|
|
2578
2578
|
attestationObject: Lr(U.attestationObject),
|
|
@@ -2881,7 +2881,7 @@ const li = (e) => {
|
|
|
2881
2881
|
t
|
|
2882
2882
|
];
|
|
2883
2883
|
}, j1 = (e) => B1(e ? e(0, null) : null)[0], $r = Promise.resolve(), G1 = (e) => (t, n, i) => {
|
|
2884
|
-
const s =
|
|
2884
|
+
const s = j(!1), { cache: o, initialSize: m = 1, revalidateAll: l = !1, persistSize: c = !1, revalidateFirstPage: p = !0, revalidateOnMount: u = !1, parallel: f = !1 } = i, [, , , h] = qt.get(Ai);
|
|
2885
2885
|
let g;
|
|
2886
2886
|
try {
|
|
2887
2887
|
g = j1(t), g && (g = _o + g);
|
|
@@ -2909,7 +2909,7 @@ const li = (e) => {
|
|
|
2909
2909
|
}, [
|
|
2910
2910
|
g,
|
|
2911
2911
|
m
|
|
2912
|
-
]), N =
|
|
2912
|
+
]), N = j(b());
|
|
2913
2913
|
Gn(() => {
|
|
2914
2914
|
if (!s.current) {
|
|
2915
2915
|
s.current = !0;
|
|
@@ -2934,25 +2934,25 @@ const li = (e) => {
|
|
|
2934
2934
|
if (!$)
|
|
2935
2935
|
break;
|
|
2936
2936
|
const [V, q] = _a(o, $);
|
|
2937
|
-
let
|
|
2938
|
-
const U = l || L || Le(
|
|
2939
|
-
if (n && (typeof F == "function" ? F(
|
|
2937
|
+
let G = V().data;
|
|
2938
|
+
const U = l || L || Le(G) || p && !P && !Le(S) || E || S && !Le(S[P]) && !i.compare(S[P], G);
|
|
2939
|
+
if (n && (typeof F == "function" ? F(G, H) : U)) {
|
|
2940
2940
|
const Y = async () => {
|
|
2941
2941
|
if (!($ in h))
|
|
2942
|
-
|
|
2942
|
+
G = await n(H);
|
|
2943
2943
|
else {
|
|
2944
2944
|
const we = h[$];
|
|
2945
|
-
delete h[$],
|
|
2945
|
+
delete h[$], G = await we;
|
|
2946
2946
|
}
|
|
2947
2947
|
q({
|
|
2948
|
-
data:
|
|
2948
|
+
data: G,
|
|
2949
2949
|
_k: H
|
|
2950
|
-
}), R[P] =
|
|
2950
|
+
}), R[P] = G;
|
|
2951
2951
|
};
|
|
2952
2952
|
f ? Z.push(Y) : await Y();
|
|
2953
2953
|
} else
|
|
2954
|
-
R[P] =
|
|
2955
|
-
f || (T =
|
|
2954
|
+
R[P] = G;
|
|
2955
|
+
f || (T = G);
|
|
2956
2956
|
}
|
|
2957
2957
|
return f && await Promise.all(Z.map((P) => P())), w({
|
|
2958
2958
|
_i: yt
|
|
@@ -3036,7 +3036,7 @@ function q1({
|
|
|
3036
3036
|
reconnectDelay: m = 1e3,
|
|
3037
3037
|
maxReconnectAttempts: l = 5
|
|
3038
3038
|
} = {}) {
|
|
3039
|
-
const { session: c, loading: p } = gt(), { deployment: u, loading: f } = Oe(), [h, g] = C(!1), [v, w] = C(null), y =
|
|
3039
|
+
const { session: c, loading: p } = gt(), { deployment: u, loading: f } = Oe(), [h, g] = C(!1), [v, w] = C(null), y = j(null), x = j(null), b = j(0), N = j(null), E = j(s), k = j(o), A = j(t), _ = j(n), M = j(i), L = j(m), F = j(l);
|
|
3040
3040
|
E.current = s, k.current = o, A.current = t, _.current = n, M.current = i, L.current = m, F.current = l;
|
|
3041
3041
|
const R = I(() => {
|
|
3042
3042
|
x.current && (clearTimeout(x.current), x.current = null), N.current && (clearInterval(N.current), N.current = null), y.current && (y.current.close(), y.current = null);
|
|
@@ -3058,14 +3058,14 @@ function q1({
|
|
|
3058
3058
|
H.readyState === WebSocket.OPEN && H.send("ping");
|
|
3059
3059
|
}, 3e4);
|
|
3060
3060
|
}, H.onmessage = (V) => {
|
|
3061
|
-
var q,
|
|
3061
|
+
var q, G;
|
|
3062
3062
|
try {
|
|
3063
3063
|
const U = JSON.parse(V.data);
|
|
3064
3064
|
if (U.type === "notification" && U.data)
|
|
3065
3065
|
(q = E.current) == null || q.call(E, U.data);
|
|
3066
3066
|
else if (U.type === "error") {
|
|
3067
3067
|
const Y = U.error || "Unknown error occurred";
|
|
3068
|
-
w(Y), (
|
|
3068
|
+
w(Y), (G = k.current) == null || G.call(k, Y);
|
|
3069
3069
|
} else U.type;
|
|
3070
3070
|
} catch {
|
|
3071
3071
|
}
|
|
@@ -3076,10 +3076,10 @@ function q1({
|
|
|
3076
3076
|
var q;
|
|
3077
3077
|
if (g(!1), N.current && (clearInterval(N.current), N.current = null), e && V.code !== 1e3 && b.current < F.current) {
|
|
3078
3078
|
b.current++;
|
|
3079
|
-
const
|
|
3079
|
+
const G = L.current * Math.pow(2, b.current - 1);
|
|
3080
3080
|
x.current = setTimeout(() => {
|
|
3081
3081
|
z();
|
|
3082
|
-
},
|
|
3082
|
+
}, G);
|
|
3083
3083
|
} else b.current >= F.current && (w("Max reconnection attempts reached"), (q = k.current) == null || q.call(k, "Max reconnection attempts reached"));
|
|
3084
3084
|
};
|
|
3085
3085
|
} catch {
|
|
@@ -3501,7 +3501,7 @@ function wd({
|
|
|
3501
3501
|
return o.toString();
|
|
3502
3502
|
}
|
|
3503
3503
|
const gd = 5e3, vd = 5e3;
|
|
3504
|
-
function
|
|
3504
|
+
function ep({
|
|
3505
3505
|
threadId: e,
|
|
3506
3506
|
initialThread: t = null,
|
|
3507
3507
|
boardItemId: n,
|
|
@@ -3512,7 +3512,7 @@ function X6({
|
|
|
3512
3512
|
t
|
|
3513
3513
|
), [v, w] = C(
|
|
3514
3514
|
Ge.IDLE
|
|
3515
|
-
), [y, x] = C({ status: qa.DISCONNECTED }), [b, N] = C(!0), [E, k] = C(!1), [A, _] = C(!1), [M, L] = C(null), F =
|
|
3515
|
+
), [y, x] = C({ status: qa.DISCONNECTED }), [b, N] = C(!0), [E, k] = C(!1), [A, _] = C(!1), [M, L] = C(null), F = j(null), R = j(e), z = j(0), O = j(Ge.IDLE), S = j(null), Z = I((te) => {
|
|
3516
3516
|
l((he) => {
|
|
3517
3517
|
const ve = [...he], je = ve.findIndex(
|
|
3518
3518
|
(Ve) => String(Ve.id) === String(te.id)
|
|
@@ -3549,7 +3549,7 @@ function X6({
|
|
|
3549
3549
|
[P]
|
|
3550
3550
|
), q = I(() => {
|
|
3551
3551
|
p(null), f(null);
|
|
3552
|
-
}, []),
|
|
3552
|
+
}, []), G = I((te) => {
|
|
3553
3553
|
g((he) => he && {
|
|
3554
3554
|
...he,
|
|
3555
3555
|
...te ? { status: te } : {},
|
|
@@ -3607,13 +3607,13 @@ function X6({
|
|
|
3607
3607
|
(ve = i == null ? void 0 : i.onPlatformEvent) == null || ve.call(i, te, he);
|
|
3608
3608
|
},
|
|
3609
3609
|
[i]
|
|
3610
|
-
), we =
|
|
3610
|
+
), we = j(Y), _e = j(ee), de = j(o), oe = j(s);
|
|
3611
3611
|
X(() => {
|
|
3612
3612
|
we.current = Y, _e.current = ee, de.current = o, oe.current = s;
|
|
3613
3613
|
}), X(() => {
|
|
3614
3614
|
R.current = e;
|
|
3615
3615
|
}, [e]);
|
|
3616
|
-
const ue =
|
|
3616
|
+
const ue = j(null), Ie = j(null), J = j(0), dt = 10, qe = I(
|
|
3617
3617
|
async (te) => {
|
|
3618
3618
|
if (!e) return;
|
|
3619
3619
|
const he = e;
|
|
@@ -3764,7 +3764,7 @@ function X6({
|
|
|
3764
3764
|
});
|
|
3765
3765
|
if (Ve.ok) {
|
|
3766
3766
|
const et = await D(Ve), _t = ((ve = et.data) == null ? void 0 : ve.conversation_id) ?? null;
|
|
3767
|
-
|
|
3767
|
+
G(
|
|
3768
3768
|
typeof ((je = et.data) == null ? void 0 : je.status) == "string" ? et.data.status : void 0
|
|
3769
3769
|
), _t ? U(_t, te) : q(), $(Ge.RUNNING);
|
|
3770
3770
|
} else
|
|
@@ -3780,7 +3780,7 @@ function X6({
|
|
|
3780
3780
|
o,
|
|
3781
3781
|
$,
|
|
3782
3782
|
P,
|
|
3783
|
-
|
|
3783
|
+
G,
|
|
3784
3784
|
q,
|
|
3785
3785
|
U
|
|
3786
3786
|
]
|
|
@@ -3812,7 +3812,7 @@ function X6({
|
|
|
3812
3812
|
te,
|
|
3813
3813
|
he
|
|
3814
3814
|
)
|
|
3815
|
-
})).ok ? (
|
|
3815
|
+
})).ok ? (G(), $(Ge.RUNNING), !0) : (z.current = 0, P(Ge.IDLE), !1);
|
|
3816
3816
|
} catch {
|
|
3817
3817
|
return z.current = 0, P(Ge.IDLE), !1;
|
|
3818
3818
|
}
|
|
@@ -3822,7 +3822,7 @@ function X6({
|
|
|
3822
3822
|
o,
|
|
3823
3823
|
$,
|
|
3824
3824
|
P,
|
|
3825
|
-
|
|
3825
|
+
G
|
|
3826
3826
|
]
|
|
3827
3827
|
), pe = I(
|
|
3828
3828
|
async (te) => {
|
|
@@ -3836,7 +3836,7 @@ function X6({
|
|
|
3836
3836
|
headers: { "Content-Type": "application/json" },
|
|
3837
3837
|
body: JSON.stringify(te)
|
|
3838
3838
|
}
|
|
3839
|
-
)).ok ? (
|
|
3839
|
+
)).ok ? (G(), $(Ge.RUNNING), !0) : (z.current = 0, P(Ge.IDLE), !1);
|
|
3840
3840
|
} catch {
|
|
3841
3841
|
return z.current = 0, P(Ge.IDLE), !1;
|
|
3842
3842
|
}
|
|
@@ -3846,7 +3846,7 @@ function X6({
|
|
|
3846
3846
|
o,
|
|
3847
3847
|
$,
|
|
3848
3848
|
P,
|
|
3849
|
-
|
|
3849
|
+
G
|
|
3850
3850
|
]
|
|
3851
3851
|
), Ze = I(async () => {
|
|
3852
3852
|
if (!(!e || !Ka(v)))
|
|
@@ -3854,7 +3854,7 @@ function X6({
|
|
|
3854
3854
|
await o(`/ai/threads/${e}/run`, {
|
|
3855
3855
|
method: "POST",
|
|
3856
3856
|
body: fd()
|
|
3857
|
-
}), z.current = 0,
|
|
3857
|
+
}), z.current = 0, G(), P(Ge.IDLE);
|
|
3858
3858
|
} catch {
|
|
3859
3859
|
}
|
|
3860
3860
|
}, [
|
|
@@ -3862,7 +3862,7 @@ function X6({
|
|
|
3862
3862
|
v,
|
|
3863
3863
|
o,
|
|
3864
3864
|
P,
|
|
3865
|
-
|
|
3865
|
+
G
|
|
3866
3866
|
]), W = I(
|
|
3867
3867
|
(te) => !s || !e || !te ? null : wd({ deployment: s, threadId: e, file: te }),
|
|
3868
3868
|
[e, s]
|
|
@@ -3906,8 +3906,8 @@ function X6({
|
|
|
3906
3906
|
downloadMessageFile: B
|
|
3907
3907
|
};
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3910
|
-
const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c =
|
|
3909
|
+
function tp(e) {
|
|
3910
|
+
const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c = j(!1), p = j(!1), u = j(null), f = n, h = I(async () => {
|
|
3911
3911
|
const E = await t("/ai/session", {
|
|
3912
3912
|
method: "GET"
|
|
3913
3913
|
});
|
|
@@ -4090,7 +4090,7 @@ function Eo(e, t = []) {
|
|
|
4090
4090
|
n.append("files", i);
|
|
4091
4091
|
return n;
|
|
4092
4092
|
}
|
|
4093
|
-
function
|
|
4093
|
+
function ap(e = {}) {
|
|
4094
4094
|
const { client: t } = Me(), { includeArchived: n = !1, enabled: i = !0 } = e, s = i ? `wacht-ai-actor-projects:${n}` : null, o = I(async () => {
|
|
4095
4095
|
const g = await t(`/ai/projects${bd("include_archived", n)}`);
|
|
4096
4096
|
return (await D(g)).data;
|
|
@@ -4144,7 +4144,7 @@ function tp(e = {}) {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
};
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function np(e = {}) {
|
|
4148
4148
|
const { client: t } = Me(), {
|
|
4149
4149
|
enabled: n = !0,
|
|
4150
4150
|
query: i = "",
|
|
@@ -4166,7 +4166,7 @@ function ap(e = {}) {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
4169
|
-
function
|
|
4169
|
+
function rp(e, t = {}) {
|
|
4170
4170
|
const { client: n } = Me(), { includeArchived: i = !1, enabled: s = !0 } = t, o = s && e ? `wacht-ai-threads:${e}:${i}` : null, m = I(async () => {
|
|
4171
4171
|
if (!e) return { data: [], has_more: !1, next_cursor: "" };
|
|
4172
4172
|
const w = new URLSearchParams({ limit: "100" });
|
|
@@ -4217,7 +4217,7 @@ function np(e, t = {}) {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
};
|
|
4219
4219
|
}
|
|
4220
|
-
function
|
|
4220
|
+
function ip(e, t = {}) {
|
|
4221
4221
|
var g, v;
|
|
4222
4222
|
const { client: n } = Me(), {
|
|
4223
4223
|
includeArchived: i = !1,
|
|
@@ -4267,7 +4267,7 @@ function rp(e, t = {}) {
|
|
|
4267
4267
|
}
|
|
4268
4268
|
};
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function sp(e = {}) {
|
|
4271
4271
|
const { client: t } = Me(), {
|
|
4272
4272
|
enabled: n = !0,
|
|
4273
4273
|
query: i = "",
|
|
@@ -4289,7 +4289,7 @@ function ip(e = {}) {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
};
|
|
4291
4291
|
}
|
|
4292
|
-
function
|
|
4292
|
+
function op(e, t = !0) {
|
|
4293
4293
|
const { client: n } = Me(), i = t && e ? `wacht-ai-thread:${e}` : null, s = I(async () => {
|
|
4294
4294
|
if (!e) return null;
|
|
4295
4295
|
const u = await n(`/ai/threads/${e}`);
|
|
@@ -4336,7 +4336,7 @@ function sp(e, t = !0) {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
};
|
|
4338
4338
|
}
|
|
4339
|
-
function
|
|
4339
|
+
function lp(e, t = !0) {
|
|
4340
4340
|
const { client: n } = Me(), i = t && e ? `wacht-ai-thread-filesystem:${e}` : null, s = I(async (l) => {
|
|
4341
4341
|
if (!e) throw new Error("threadId is required");
|
|
4342
4342
|
const c = await n(
|
|
@@ -4374,7 +4374,7 @@ function op(e, t = !0) {
|
|
|
4374
4374
|
}
|
|
4375
4375
|
};
|
|
4376
4376
|
}
|
|
4377
|
-
function
|
|
4377
|
+
function cp(e, t = {}) {
|
|
4378
4378
|
var f, h;
|
|
4379
4379
|
const { client: n } = Me(), { enabled: i = !0, limit: s = 40, order: o = "asc" } = t, m = Math.min(Math.max(s, 1), 200), l = dn(
|
|
4380
4380
|
(g, v) => {
|
|
@@ -4417,7 +4417,7 @@ function Nd(e = {}, t) {
|
|
|
4417
4417
|
const i = n.toString();
|
|
4418
4418
|
return i ? `?${i}` : "";
|
|
4419
4419
|
}
|
|
4420
|
-
function
|
|
4420
|
+
function dp(e, t = !0, n = {}) {
|
|
4421
4421
|
var v, w, y;
|
|
4422
4422
|
const { client: i } = Me(), s = ((v = n.statuses) == null ? void 0 : v.join(",")) || "all", o = n.archivedOnly ? "archived-only" : n.includeArchived ? "with-archived" : "active-only", m = n.limit || 60, l = dn(
|
|
4423
4423
|
(x, b) => {
|
|
@@ -4491,7 +4491,7 @@ function cp(e, t = !0, n = {}) {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
};
|
|
4493
4493
|
}
|
|
4494
|
-
function
|
|
4494
|
+
function up(e, t, n = !0, i = {}) {
|
|
4495
4495
|
var z, O;
|
|
4496
4496
|
const { client: s } = Me(), o = i.includeArchived ? "with-archived" : "active-only", m = i.includeArchived ? "?include_archived=true" : "", l = i.assignmentsOrder ?? "asc", c = Math.min(Math.max(i.assignmentsLimit ?? 40, 1), 200), p = n && e && t ? `wacht-ai-board-item:${e}:${t}:${o}` : null, u = n && e && t ? `wacht-ai-board-item-workspace:${e}:${t}:${o}` : null, f = I(async () => {
|
|
4497
4497
|
if (!e || !t) return null;
|
|
@@ -4639,7 +4639,7 @@ function dp(e, t, n = !0, i = {}) {
|
|
|
4639
4639
|
}
|
|
4640
4640
|
};
|
|
4641
4641
|
}
|
|
4642
|
-
function
|
|
4642
|
+
function mp(e, t = !0) {
|
|
4643
4643
|
var g;
|
|
4644
4644
|
const { client: n } = Me(), {
|
|
4645
4645
|
data: i,
|
|
@@ -4693,7 +4693,7 @@ function up(e, t = !0) {
|
|
|
4693
4693
|
}
|
|
4694
4694
|
};
|
|
4695
4695
|
}
|
|
4696
|
-
function
|
|
4696
|
+
function pp(e, t, n = !0) {
|
|
4697
4697
|
const { client: i } = Me(), s = n && e && t ? `wacht-ai-board-item-comments:${e}:${t}` : null, o = I(async () => {
|
|
4698
4698
|
if (!e || !t) return [];
|
|
4699
4699
|
const c = await i(
|
|
@@ -4730,7 +4730,7 @@ function mp(e, t, n = !0) {
|
|
|
4730
4730
|
}
|
|
4731
4731
|
};
|
|
4732
4732
|
}
|
|
4733
|
-
function
|
|
4733
|
+
function hp(e = !0) {
|
|
4734
4734
|
const { client: t } = Me(), n = e ? "wacht-ai-actor-mcp-servers" : null, i = I(async () => {
|
|
4735
4735
|
const u = await t("/ai/mcp-servers");
|
|
4736
4736
|
return (await D(u)).data;
|
|
@@ -4766,7 +4766,7 @@ function pp(e = !0) {
|
|
|
4766
4766
|
}
|
|
4767
4767
|
};
|
|
4768
4768
|
}
|
|
4769
|
-
function
|
|
4769
|
+
function fp(e = !0) {
|
|
4770
4770
|
const { client: t } = Me(), n = e ? "wacht-ai-external-agent-connections" : null, i = I(async () => {
|
|
4771
4771
|
const u = await t("/ai/external-connections");
|
|
4772
4772
|
return (await D(u)).data;
|
|
@@ -4966,8 +4966,8 @@ async function Vd(e, { taskId: t }) {
|
|
|
4966
4966
|
"Failed to cancel replay task"
|
|
4967
4967
|
);
|
|
4968
4968
|
}
|
|
4969
|
-
function
|
|
4970
|
-
const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c =
|
|
4969
|
+
function wp(e) {
|
|
4970
|
+
const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c = j(!1), p = j(!1), u = j(null), f = n, h = I(async () => Sd(t), [t]), { data: g, error: v, isLoading: w, mutate: y } = $e(
|
|
4971
4971
|
f ? "wacht-webhook-app-session" : null,
|
|
4972
4972
|
h,
|
|
4973
4973
|
{
|
|
@@ -5045,7 +5045,7 @@ function fp(e) {
|
|
|
5045
5045
|
fetchDeliveryDetail: M
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function gp() {
|
|
5049
5049
|
const { client: e } = Me(), t = I(async () => {
|
|
5050
5050
|
const m = await e("/webhook/stats", {
|
|
5051
5051
|
method: "GET"
|
|
@@ -5066,7 +5066,7 @@ function wp() {
|
|
|
5066
5066
|
refetch: () => o()
|
|
5067
5067
|
};
|
|
5068
5068
|
}
|
|
5069
|
-
function
|
|
5069
|
+
function vp() {
|
|
5070
5070
|
const { client: e } = Me(), t = I(async () => {
|
|
5071
5071
|
const m = await e("/webhook/endpoints", {
|
|
5072
5072
|
method: "GET"
|
|
@@ -5087,7 +5087,7 @@ function gp() {
|
|
|
5087
5087
|
refetch: () => o()
|
|
5088
5088
|
};
|
|
5089
5089
|
}
|
|
5090
|
-
function
|
|
5090
|
+
function bp() {
|
|
5091
5091
|
const { client: e } = Me();
|
|
5092
5092
|
return {
|
|
5093
5093
|
createEndpoint: I(async (n) => {
|
|
@@ -5104,7 +5104,7 @@ function vp() {
|
|
|
5104
5104
|
error: null
|
|
5105
5105
|
};
|
|
5106
5106
|
}
|
|
5107
|
-
function
|
|
5107
|
+
function yp() {
|
|
5108
5108
|
const { client: e } = Me(), t = I(async () => {
|
|
5109
5109
|
const m = await e("/webhook/events", {
|
|
5110
5110
|
method: "GET"
|
|
@@ -5125,7 +5125,7 @@ function bp() {
|
|
|
5125
5125
|
refetch: () => o()
|
|
5126
5126
|
};
|
|
5127
5127
|
}
|
|
5128
|
-
function
|
|
5128
|
+
function _p(e = {}) {
|
|
5129
5129
|
const { client: t } = Me(), n = I(async () => {
|
|
5130
5130
|
const l = new URLSearchParams();
|
|
5131
5131
|
e.endpoint_id && l.set("endpoint_id", e.endpoint_id), e.status && l.set("status", e.status), e.event_name && l.set("event_name", e.event_name), e.limit && l.set("limit", e.limit.toString()), e.cursor && l.set("cursor", e.cursor);
|
|
@@ -5153,7 +5153,7 @@ function yp(e = {}) {
|
|
|
5153
5153
|
refetch: () => m()
|
|
5154
5154
|
};
|
|
5155
5155
|
}
|
|
5156
|
-
function
|
|
5156
|
+
function xp(e = {}) {
|
|
5157
5157
|
const { client: t } = Me(), n = I(async () => {
|
|
5158
5158
|
const l = new URLSearchParams();
|
|
5159
5159
|
e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.endpoint_id && l.set("endpoint_id", e.endpoint_id), e.fields && e.fields.length > 0 && l.set("fields", e.fields.join(","));
|
|
@@ -5179,7 +5179,7 @@ function _p(e = {}) {
|
|
|
5179
5179
|
refetch: () => m()
|
|
5180
5180
|
};
|
|
5181
5181
|
}
|
|
5182
|
-
function
|
|
5182
|
+
function kp(e = {}) {
|
|
5183
5183
|
const { client: t } = Me(), n = I(async () => {
|
|
5184
5184
|
const l = new URLSearchParams();
|
|
5185
5185
|
e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.interval && l.set("interval", e.interval), e.endpoint_id && l.set("endpoint_id", e.endpoint_id);
|
|
@@ -5206,8 +5206,8 @@ function xp(e = {}) {
|
|
|
5206
5206
|
refetch: () => m()
|
|
5207
5207
|
};
|
|
5208
5208
|
}
|
|
5209
|
-
function
|
|
5210
|
-
const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c =
|
|
5209
|
+
function Np(e) {
|
|
5210
|
+
const { client: t } = Me(), [n, i] = C(!e), [s, o] = C(!!e), [m, l] = C(null), c = j(!1), p = j(!1), u = j(null), f = n, h = I(async () => {
|
|
5211
5211
|
const E = await t("/api-auth/session", {
|
|
5212
5212
|
method: "GET"
|
|
5213
5213
|
});
|
|
@@ -5251,7 +5251,7 @@ function kp(e) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
};
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function Ap(e = {}) {
|
|
5255
5255
|
const { client: t } = Me(), n = I(async () => {
|
|
5256
5256
|
const u = new URLSearchParams();
|
|
5257
5257
|
e.status && u.set("status", e.status);
|
|
@@ -5298,7 +5298,7 @@ function Np(e = {}) {
|
|
|
5298
5298
|
refetch: () => m()
|
|
5299
5299
|
};
|
|
5300
5300
|
}
|
|
5301
|
-
function
|
|
5301
|
+
function Cp(e = {}) {
|
|
5302
5302
|
const { client: t } = Me(), n = I(async () => {
|
|
5303
5303
|
const l = new URLSearchParams();
|
|
5304
5304
|
e.limit && l.set("limit", e.limit.toString()), e.cursor && l.set("cursor", e.cursor), e.outcome && l.set("outcome", e.outcome), e.key_id && l.set("key_id", e.key_id), e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date);
|
|
@@ -5327,7 +5327,7 @@ function Ap(e = {}) {
|
|
|
5327
5327
|
refetch: () => m()
|
|
5328
5328
|
};
|
|
5329
5329
|
}
|
|
5330
|
-
function
|
|
5330
|
+
function Ep(e = {}) {
|
|
5331
5331
|
const { client: t } = Me(), n = I(async () => {
|
|
5332
5332
|
const l = new URLSearchParams();
|
|
5333
5333
|
e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.key_id && l.set("key_id", e.key_id), e.include_top_keys && l.set("include_top_keys", "true"), e.include_top_paths && l.set("include_top_paths", "true"), e.include_blocked_reasons && l.set("include_blocked_reasons", "true"), e.include_rate_limits && l.set("include_rate_limits", "true"), e.top_limit && l.set("top_limit", e.top_limit.toString());
|
|
@@ -5363,7 +5363,7 @@ function Cp(e = {}) {
|
|
|
5363
5363
|
refetch: () => m()
|
|
5364
5364
|
};
|
|
5365
5365
|
}
|
|
5366
|
-
function
|
|
5366
|
+
function Sp(e = {}) {
|
|
5367
5367
|
const { client: t } = Me(), n = I(async () => {
|
|
5368
5368
|
const l = new URLSearchParams();
|
|
5369
5369
|
e.start_date && l.set("start_date", e.start_date), e.end_date && l.set("end_date", e.end_date), e.interval && l.set("interval", e.interval), e.key_id && l.set("key_id", e.key_id);
|
|
@@ -5419,12 +5419,12 @@ const zd = () => {
|
|
|
5419
5419
|
error: i,
|
|
5420
5420
|
reset: c
|
|
5421
5421
|
};
|
|
5422
|
-
},
|
|
5422
|
+
}, Mp = ({
|
|
5423
5423
|
children: e
|
|
5424
5424
|
}) => {
|
|
5425
5425
|
const { loading: t } = Oe();
|
|
5426
5426
|
return t ? null : /* @__PURE__ */ a(se, { children: e });
|
|
5427
|
-
},
|
|
5427
|
+
}, Lp = ({
|
|
5428
5428
|
children: e
|
|
5429
5429
|
}) => {
|
|
5430
5430
|
const { loading: t } = Oe();
|
|
@@ -8182,33 +8182,33 @@ function wu(e, t, n) {
|
|
|
8182
8182
|
let S, Z;
|
|
8183
8183
|
{
|
|
8184
8184
|
const H = xe.useRef(null), V = H.current;
|
|
8185
|
-
if (V !== null && V[1] === O && V[2] === R.styleSheet && V[3] === R.stylis && V[7] === k && (function(q,
|
|
8186
|
-
const Y = q, ee =
|
|
8185
|
+
if (V !== null && V[1] === O && V[2] === R.styleSheet && V[3] === R.stylis && V[7] === k && (function(q, G, U) {
|
|
8186
|
+
const Y = q, ee = G;
|
|
8187
8187
|
let we = 0;
|
|
8188
8188
|
for (const _e in ee) if (Es.call(ee, _e) && (we++, Y[_e] !== ee[_e])) return !1;
|
|
8189
8189
|
return we === U;
|
|
8190
8190
|
})(V[0], b, V[4])) S = V[5], Z = V[6];
|
|
8191
8191
|
else {
|
|
8192
|
-
S = (function(
|
|
8193
|
-
const ee = Object.assign(Object.assign({}, U), { className: void 0, theme: Y }), we =
|
|
8194
|
-
for (let _e = 0; _e <
|
|
8195
|
-
const de =
|
|
8192
|
+
S = (function(G, U, Y) {
|
|
8193
|
+
const ee = Object.assign(Object.assign({}, U), { className: void 0, theme: Y }), we = G.length > 1;
|
|
8194
|
+
for (let _e = 0; _e < G.length; _e++) {
|
|
8195
|
+
const de = G[_e], oe = Mn(de) ? de(we ? Object.assign({}, ee) : ee) : de;
|
|
8196
8196
|
for (const ue in oe) ue === "className" ? ee.className = gn(ee.className, oe[ue]) : ue === "style" ? ee.style = Object.assign(Object.assign({}, ee.style), oe[ue]) : ue in U && U[ue] === void 0 || (ee[ue] = oe[ue]);
|
|
8197
8197
|
}
|
|
8198
8198
|
return "className" in U && typeof U.className == "string" && (ee.className = gn(ee.className, U.className)), ee;
|
|
8199
|
-
})(E, b, O), Z = (function(
|
|
8200
|
-
const we =
|
|
8199
|
+
})(E, b, O), Z = (function(G, U, Y, ee) {
|
|
8200
|
+
const we = G.generateAndInjectStyles(U, Y, ee);
|
|
8201
8201
|
return process.env.NODE_ENV !== "production" && xe.useDebugValue && xe.useDebugValue(we), we;
|
|
8202
8202
|
})(k, S, R.styleSheet, R.stylis);
|
|
8203
8203
|
let q = 0;
|
|
8204
|
-
for (const
|
|
8204
|
+
for (const G in b) Es.call(b, G) && q++;
|
|
8205
8205
|
H.current = [b, O, R.styleSheet, R.stylis, q, S, Z, k];
|
|
8206
8206
|
}
|
|
8207
8207
|
}
|
|
8208
8208
|
process.env.NODE_ENV !== "production" && x.warnTooManyClasses && x.warnTooManyClasses(Z);
|
|
8209
|
-
const T = S.as || L, P = (function(H, V, q,
|
|
8209
|
+
const T = S.as || L, P = (function(H, V, q, G) {
|
|
8210
8210
|
const U = {};
|
|
8211
|
-
for (const Y in H) H[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && H.theme === q || (Y === "forwardedAs" ? U.as = H.forwardedAs :
|
|
8211
|
+
for (const Y in H) H[Y] === void 0 || Y[0] === "$" || Y === "as" || Y === "theme" && H.theme === q || (Y === "forwardedAs" ? U.as = H.forwardedAs : G && !G(Y, V) || (U[Y] = H[Y], G || process.env.NODE_ENV !== "development" || c8(Y) || (Dr || (Dr = /* @__PURE__ */ new Set())).has(Y) || !Xn(V) || V.includes("-") || (Dr.add(Y), console.warn(`styled-components: it looks like an unknown prop "${Y}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));
|
|
8212
8212
|
return U;
|
|
8213
8213
|
})(S, T, O, z);
|
|
8214
8214
|
let $ = gn(_, M);
|
|
@@ -8398,7 +8398,7 @@ function Ga({
|
|
|
8398
8398
|
error: i,
|
|
8399
8399
|
isSubmitting: s = !1
|
|
8400
8400
|
}) {
|
|
8401
|
-
const [o, m] = C(new Array(e).fill("")), [l, c] = C(60), [p, u] = C(!1), f =
|
|
8401
|
+
const [o, m] = C(new Array(e).fill("")), [l, c] = C(60), [p, u] = C(!1), f = j([]), h = I(() => {
|
|
8402
8402
|
const x = setInterval(() => {
|
|
8403
8403
|
c((b) => b <= 1 ? (u(!0), clearInterval(x), 0) : b - 1);
|
|
8404
8404
|
}, 1e3);
|
|
@@ -9019,7 +9019,7 @@ const er = [
|
|
|
9019
9019
|
}) => {
|
|
9020
9020
|
const [o, m] = C(!1), [l, c] = C(
|
|
9021
9021
|
er.find((v) => v.code === i) || er[0]
|
|
9022
|
-
), p =
|
|
9022
|
+
), p = j(null), [u, f] = C(""), h = j(null);
|
|
9023
9023
|
X(() => {
|
|
9024
9024
|
function v(w) {
|
|
9025
9025
|
p.current && !p.current.contains(w.target) && m(!1);
|
|
@@ -9214,39 +9214,47 @@ function Ou(e, t) {
|
|
|
9214
9214
|
function At(e, t) {
|
|
9215
9215
|
return t && Ou(e, t) ? t : null;
|
|
9216
9216
|
}
|
|
9217
|
-
const Zu = "https://cdn.wacht.services/captcha/wacht-challenge.min.js", Rs = "wacht-challenge-script";
|
|
9218
|
-
function
|
|
9217
|
+
const Zu = "https://cdn.wacht.services/captcha/wacht-challenge.min.js", Hu = "https://cdn.wacht.services/captcha/cap_wasm_bg.wasm", Rs = "wacht-challenge-script";
|
|
9218
|
+
function Tu(e) {
|
|
9219
9219
|
const t = e.trim().replace(/\/$/, "");
|
|
9220
9220
|
return t ? /^https?:\/\//i.test(t) ? t : `https://${t}` : "";
|
|
9221
9221
|
}
|
|
9222
|
-
function
|
|
9222
|
+
function Fu() {
|
|
9223
9223
|
return document.getElementById(Rs) ? Promise.resolve() : new Promise((e, t) => {
|
|
9224
9224
|
const n = document.createElement("script");
|
|
9225
9225
|
n.id = Rs, n.src = Zu, n.async = !0, n.onload = () => e(), n.onerror = () => t(new Error("Failed to load challenge script")), document.head.appendChild(n);
|
|
9226
9226
|
});
|
|
9227
9227
|
}
|
|
9228
9228
|
function bc({ apiHost: e, onSolve: t, onError: n }) {
|
|
9229
|
-
const i =
|
|
9230
|
-
|
|
9229
|
+
const i = j(null), [s, o] = C(null), m = j(t), l = j(n), c = j(!1);
|
|
9230
|
+
return m.current = t, l.current = n, X(() => {
|
|
9231
|
+
if (c.current) return;
|
|
9232
|
+
c.current = !0;
|
|
9233
|
+
const p = Tu(e);
|
|
9234
|
+
if (!p) return;
|
|
9235
|
+
let u = !1;
|
|
9236
|
+
return (async () => {
|
|
9237
|
+
var f;
|
|
9231
9238
|
try {
|
|
9232
|
-
if (await
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
} catch (
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
}
|
|
9249
|
-
|
|
9239
|
+
if (await Fu(), u || !window.Cap) return;
|
|
9240
|
+
window.CAP_SILENT = !0, window.CAP_DISABLE_WIDGET_REF = !0, window.CAP_CUSTOM_WASM_URL = Hu;
|
|
9241
|
+
const h = new window.Cap({ apiEndpoint: `${p}/captcha/` });
|
|
9242
|
+
i.current = h;
|
|
9243
|
+
const g = await h.solve();
|
|
9244
|
+
if (u) return;
|
|
9245
|
+
m.current(g.token);
|
|
9246
|
+
} catch (h) {
|
|
9247
|
+
if (u) return;
|
|
9248
|
+
const g = h instanceof Error ? h.message : "Challenge failed";
|
|
9249
|
+
o(g), (f = l.current) == null || f.call(l, "challenge_failed");
|
|
9250
|
+
}
|
|
9251
|
+
})(), () => {
|
|
9252
|
+
var f;
|
|
9253
|
+
u = !0, (f = i.current) == null || f.reset(), i.current = null;
|
|
9254
|
+
};
|
|
9255
|
+
}, [e]), s ? /* @__PURE__ */ a("div", { style: { fontSize: 12, color: "var(--wa-error)", marginBottom: 12 }, children: s }) : null;
|
|
9256
|
+
}
|
|
9257
|
+
function Rp() {
|
|
9250
9258
|
var _e, de, oe, ue, Ie, J, dt, qe, Qe, Fe, fe, K, Q, ne, pe, Ze;
|
|
9251
9259
|
const { loading: e, signUp: t, signupAttempt: n, discardSignupAttempt: i } = W0(), { signIn: s } = vn("oauth"), { deployment: o } = Oe(), { navigate: m } = Ot(), {
|
|
9252
9260
|
session: l,
|
|
@@ -9350,7 +9358,7 @@ function Lp() {
|
|
|
9350
9358
|
w(!1);
|
|
9351
9359
|
}
|
|
9352
9360
|
}
|
|
9353
|
-
},
|
|
9361
|
+
}, G = (o == null ? void 0 : o.social_connections.filter((W) => W.enabled)) || [], U = o == null ? void 0 : o.auth_settings, Y = !!((Ie = U == null ? void 0 : U.first_name) != null && Ie.enabled && ((J = U == null ? void 0 : U.last_name) != null && J.enabled)), ee = async (W) => {
|
|
9354
9362
|
var ke;
|
|
9355
9363
|
if (W.preventDefault(), e || v) return;
|
|
9356
9364
|
w(!0);
|
|
@@ -9539,11 +9547,11 @@ function Lp() {
|
|
|
9539
9547
|
sub: b != null && b.valid ? "You've been invited — complete your registration below." : "Get started in a few seconds."
|
|
9540
9548
|
}
|
|
9541
9549
|
),
|
|
9542
|
-
|
|
9550
|
+
G.length > 0 && /* @__PURE__ */ d(se, { children: [
|
|
9543
9551
|
/* @__PURE__ */ a(
|
|
9544
9552
|
Zi,
|
|
9545
9553
|
{
|
|
9546
|
-
connections:
|
|
9554
|
+
connections: G,
|
|
9547
9555
|
callback: q
|
|
9548
9556
|
}
|
|
9549
9557
|
),
|
|
@@ -9782,11 +9790,11 @@ function xc() {
|
|
|
9782
9790
|
throw new Error("useSignIn must be used within a SignInProvider");
|
|
9783
9791
|
return e;
|
|
9784
9792
|
}
|
|
9785
|
-
function
|
|
9793
|
+
function Iu({ children: e }) {
|
|
9786
9794
|
var x;
|
|
9787
9795
|
const { deployment: t } = Oe(), [n, i] = C(
|
|
9788
9796
|
(t == null ? void 0 : t.auth_settings.first_factor) || "email_password"
|
|
9789
|
-
), s =
|
|
9797
|
+
), s = j(
|
|
9790
9798
|
!!(t != null && t.auth_settings.first_factor)
|
|
9791
9799
|
), [o, m] = C(""), [l, c] = C(!1), [p, u] = C(!1), [f, h] = C(!1), [g, v] = C("identifier"), w = (t == null ? void 0 : t.social_connections.filter((b) => b.enabled)) || [], y = t == null ? void 0 : t.auth_settings;
|
|
9792
9800
|
return X(() => {
|
|
@@ -9816,7 +9824,7 @@ function Fu({ children: e }) {
|
|
|
9816
9824
|
}
|
|
9817
9825
|
);
|
|
9818
9826
|
}
|
|
9819
|
-
const
|
|
9827
|
+
const Vu = [
|
|
9820
9828
|
{
|
|
9821
9829
|
key: "email_magic_link",
|
|
9822
9830
|
icon: /* @__PURE__ */ a(e8, {}),
|
|
@@ -9862,7 +9870,7 @@ function kc() {
|
|
|
9862
9870
|
l(!1);
|
|
9863
9871
|
}
|
|
9864
9872
|
}
|
|
9865
|
-
}, f =
|
|
9873
|
+
}, f = Vu.filter((v) => {
|
|
9866
9874
|
if (v.key === i) return !1;
|
|
9867
9875
|
const w = c == null ? void 0 : c.auth_factors_enabled;
|
|
9868
9876
|
return w ? w[v.key] : !1;
|
|
@@ -9890,7 +9898,7 @@ function kc() {
|
|
|
9890
9898
|
)) })
|
|
9891
9899
|
] });
|
|
9892
9900
|
}
|
|
9893
|
-
function
|
|
9901
|
+
function zu({ onBack: e }) {
|
|
9894
9902
|
var F;
|
|
9895
9903
|
const { deployment: t } = Oe(), { navigate: n } = Ot(), [i, s] = C(
|
|
9896
9904
|
"start"
|
|
@@ -10153,7 +10161,7 @@ function Vu({ onBack: e }) {
|
|
|
10153
10161
|
] })
|
|
10154
10162
|
] });
|
|
10155
10163
|
}
|
|
10156
|
-
function
|
|
10164
|
+
function Du({ onBack: e }) {
|
|
10157
10165
|
var i;
|
|
10158
10166
|
const { deployment: t } = Oe(), n = (i = t == null ? void 0 : t.ui_settings) == null ? void 0 : i.app_name;
|
|
10159
10167
|
return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ d(
|
|
@@ -10181,7 +10189,7 @@ function zu({ onBack: e }) {
|
|
|
10181
10189
|
}
|
|
10182
10190
|
) });
|
|
10183
10191
|
}
|
|
10184
|
-
function
|
|
10192
|
+
function Uu({
|
|
10185
10193
|
methods: e,
|
|
10186
10194
|
onSelectMethod: t,
|
|
10187
10195
|
onBack: n
|
|
@@ -10221,7 +10229,7 @@ function Du({
|
|
|
10221
10229
|
}
|
|
10222
10230
|
) });
|
|
10223
10231
|
}
|
|
10224
|
-
function
|
|
10232
|
+
function Wu({
|
|
10225
10233
|
onVerify: e,
|
|
10226
10234
|
onBack: t,
|
|
10227
10235
|
loading: n
|
|
@@ -10303,7 +10311,7 @@ function Uu({
|
|
|
10303
10311
|
}
|
|
10304
10312
|
) });
|
|
10305
10313
|
}
|
|
10306
|
-
const
|
|
10314
|
+
const Bu = () => /* @__PURE__ */ a(
|
|
10307
10315
|
"svg",
|
|
10308
10316
|
{
|
|
10309
10317
|
viewBox: "0 0 24 24",
|
|
@@ -10314,7 +10322,7 @@ const Wu = () => /* @__PURE__ */ a(
|
|
|
10314
10322
|
strokeLinejoin: "round",
|
|
10315
10323
|
children: /* @__PURE__ */ a("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" })
|
|
10316
10324
|
}
|
|
10317
|
-
),
|
|
10325
|
+
), ju = () => /* @__PURE__ */ d(
|
|
10318
10326
|
"svg",
|
|
10319
10327
|
{
|
|
10320
10328
|
viewBox: "0 0 24 24",
|
|
@@ -10328,7 +10336,7 @@ const Wu = () => /* @__PURE__ */ a(
|
|
|
10328
10336
|
/* @__PURE__ */ a("path", { d: "M12 18h.01" })
|
|
10329
10337
|
]
|
|
10330
10338
|
}
|
|
10331
|
-
),
|
|
10339
|
+
), Gu = () => /* @__PURE__ */ a(
|
|
10332
10340
|
"svg",
|
|
10333
10341
|
{
|
|
10334
10342
|
viewBox: "0 0 24 24",
|
|
@@ -10340,7 +10348,7 @@ const Wu = () => /* @__PURE__ */ a(
|
|
|
10340
10348
|
children: /* @__PURE__ */ a("path", { d: "m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4" })
|
|
10341
10349
|
}
|
|
10342
10350
|
);
|
|
10343
|
-
function
|
|
10351
|
+
function qu({
|
|
10344
10352
|
onBack: e,
|
|
10345
10353
|
attempt: t,
|
|
10346
10354
|
completeVerification: n,
|
|
@@ -10351,14 +10359,14 @@ function Gu({
|
|
|
10351
10359
|
id: "authenticator",
|
|
10352
10360
|
name: "Authenticator app",
|
|
10353
10361
|
description: "Use your authenticator app",
|
|
10354
|
-
icon: /* @__PURE__ */ a(
|
|
10362
|
+
icon: /* @__PURE__ */ a(Bu, {}),
|
|
10355
10363
|
available: A.includes("authenticator")
|
|
10356
10364
|
},
|
|
10357
10365
|
{
|
|
10358
10366
|
id: "phone_otp",
|
|
10359
10367
|
name: "Text message",
|
|
10360
10368
|
description: "Get a code via SMS",
|
|
10361
|
-
icon: /* @__PURE__ */ a(
|
|
10369
|
+
icon: /* @__PURE__ */ a(ju, {}),
|
|
10362
10370
|
available: A.includes("phone_otp"),
|
|
10363
10371
|
phoneNumber: x
|
|
10364
10372
|
},
|
|
@@ -10366,7 +10374,7 @@ function Gu({
|
|
|
10366
10374
|
id: "backup_code",
|
|
10367
10375
|
name: "Backup code",
|
|
10368
10376
|
description: "Use one of your backup codes",
|
|
10369
|
-
icon: /* @__PURE__ */ a(
|
|
10377
|
+
icon: /* @__PURE__ */ a(Gu, {}),
|
|
10370
10378
|
available: A.includes("backup_code")
|
|
10371
10379
|
}
|
|
10372
10380
|
].filter((O) => O.available), M = async (O) => {
|
|
@@ -10464,7 +10472,7 @@ function Gu({
|
|
|
10464
10472
|
]
|
|
10465
10473
|
}
|
|
10466
10474
|
) }) : /* @__PURE__ */ a(
|
|
10467
|
-
|
|
10475
|
+
Uu,
|
|
10468
10476
|
{
|
|
10469
10477
|
methods: _,
|
|
10470
10478
|
onSelectMethod: M,
|
|
@@ -10473,7 +10481,7 @@ function Gu({
|
|
|
10473
10481
|
);
|
|
10474
10482
|
if (w && f === "phone_otp")
|
|
10475
10483
|
return /* @__PURE__ */ a(
|
|
10476
|
-
|
|
10484
|
+
Wu,
|
|
10477
10485
|
{
|
|
10478
10486
|
onVerify: L,
|
|
10479
10487
|
onBack: () => {
|
|
@@ -10609,14 +10617,14 @@ function Gu({
|
|
|
10609
10617
|
}
|
|
10610
10618
|
) });
|
|
10611
10619
|
}
|
|
10612
|
-
function
|
|
10620
|
+
function Ku({
|
|
10613
10621
|
attempt: e,
|
|
10614
10622
|
onBack: t,
|
|
10615
10623
|
completeProfile: n,
|
|
10616
10624
|
completeVerification: i,
|
|
10617
10625
|
prepareVerification: s
|
|
10618
10626
|
}) {
|
|
10619
|
-
var H, V, q,
|
|
10627
|
+
var H, V, q, G, U, Y, ee, we, _e;
|
|
10620
10628
|
const { deployment: o } = Oe(), { navigate: m } = Ot(), [l, c] = C({}), [p, u] = C({}), [f, h] = C("US"), [g, v] = C(!1), [w, y] = C(!1), [x, b] = C(null), [N, E] = C(!1), k = x, A = w, _ = () => {
|
|
10621
10629
|
var oe;
|
|
10622
10630
|
E(!0);
|
|
@@ -10792,7 +10800,7 @@ function qu({
|
|
|
10792
10800
|
gap: 16
|
|
10793
10801
|
},
|
|
10794
10802
|
children: [
|
|
10795
|
-
(F.includes("first_name") || F.includes("last_name")) && (((q = R == null ? void 0 : R.first_name) == null ? void 0 : q.enabled) || ((
|
|
10803
|
+
(F.includes("first_name") || F.includes("last_name")) && (((q = R == null ? void 0 : R.first_name) == null ? void 0 : q.enabled) || ((G = R == null ? void 0 : R.last_name) == null ? void 0 : G.enabled)) && /* @__PURE__ */ d("div", { className: $ ? "w-grid-2" : "", children: [
|
|
10796
10804
|
F.includes("first_name") && ((U = R == null ? void 0 : R.first_name) == null ? void 0 : U.enabled) && /* @__PURE__ */ d("div", { className: "w-field", children: [
|
|
10797
10805
|
/* @__PURE__ */ d(
|
|
10798
10806
|
"label",
|
|
@@ -10997,10 +11005,10 @@ function Nc({ onComplete: e, onSkip: t }) {
|
|
|
10997
11005
|
s && /* @__PURE__ */ a("p", { className: "w-input-err", style: { marginTop: 14 }, children: s })
|
|
10998
11006
|
] });
|
|
10999
11007
|
}
|
|
11000
|
-
function
|
|
11001
|
-
return /* @__PURE__ */ a(
|
|
11008
|
+
function Pp() {
|
|
11009
|
+
return /* @__PURE__ */ a(Iu, { children: /* @__PURE__ */ a(Yu, {}) });
|
|
11002
11010
|
}
|
|
11003
|
-
function
|
|
11011
|
+
function Yu() {
|
|
11004
11012
|
var Mt, pa, ha, fa, wa, me, Ce, He, ae, Ee, it, Ke, Lt, Rt, tt, Nt, Jt, ga, va, ba, Bi, ji, Gi;
|
|
11005
11013
|
const { deployment: e } = Oe(), { navigate: t } = Ot(), {
|
|
11006
11014
|
session: n,
|
|
@@ -11032,7 +11040,7 @@ function Ku() {
|
|
|
11032
11040
|
username: "",
|
|
11033
11041
|
password: "",
|
|
11034
11042
|
phone: ""
|
|
11035
|
-
}), [O, S] = C({}), [Z, T] = C(!1), [P, $] = C(""), [H, V] = C("US"), [q,
|
|
11043
|
+
}), [O, S] = C({}), [Z, T] = C(!1), [P, $] = C(""), [H, V] = C("US"), [q, G] = C(!1), [U, Y] = C(null), [ee, we] = C(!1), [_e, de] = C(!1), [oe, ue] = C(!1), [Ie, J] = C(60), [dt, qe] = C(!1), [Qe, Fe] = C(
|
|
11036
11044
|
null
|
|
11037
11045
|
), [fe, K] = C(""), Q = !!fe, ne = [...(n == null ? void 0 : n.signins) || []].sort(
|
|
11038
11046
|
(re, ie) => {
|
|
@@ -11063,7 +11071,7 @@ function Ku() {
|
|
|
11063
11071
|
);
|
|
11064
11072
|
Pe || (Pe = ((re = e == null ? void 0 : e.ui_settings) == null ? void 0 : re.after_signin_redirect_url) || null), !Pe && (e != null && e.frontend_host) && (Pe = `https://${e.frontend_host}`);
|
|
11065
11073
|
const vt = (ie = e == null ? void 0 : e.auth_settings) == null ? void 0 : ie.passkey;
|
|
11066
|
-
(vt == null ? void 0 : vt.enabled) && (vt == null ? void 0 : vt.prompt_registration_on_auth) && !((De = (ge = n.active_signin) == null ? void 0 : ge.user) != null && De.has_passkeys) ? (Fe(Pe), we(!0)) : Pe && (
|
|
11074
|
+
(vt == null ? void 0 : vt.enabled) && (vt == null ? void 0 : vt.prompt_registration_on_auth) && !((De = (ge = n.active_signin) == null ? void 0 : ge.user) != null && De.has_passkeys) ? (Fe(Pe), we(!0)) : Pe && (G(!0), t(Pe));
|
|
11067
11075
|
}
|
|
11068
11076
|
}, [
|
|
11069
11077
|
n,
|
|
@@ -11107,7 +11115,7 @@ function Ku() {
|
|
|
11107
11115
|
fe
|
|
11108
11116
|
);
|
|
11109
11117
|
if (Pe && Pe.sso_url) {
|
|
11110
|
-
|
|
11118
|
+
G(!0), window.location.href = Pe.sso_url;
|
|
11111
11119
|
return;
|
|
11112
11120
|
}
|
|
11113
11121
|
} else if (ie.strategy === "social" && ie.provider) {
|
|
@@ -11126,7 +11134,7 @@ function Ku() {
|
|
|
11126
11134
|
challenge_token: fe
|
|
11127
11135
|
});
|
|
11128
11136
|
if (vt && typeof vt == "object" && "oauth_url" in vt) {
|
|
11129
|
-
|
|
11137
|
+
G(!0), window.location.href = vt.oauth_url;
|
|
11130
11138
|
return;
|
|
11131
11139
|
}
|
|
11132
11140
|
} else
|
|
@@ -11241,7 +11249,7 @@ function Ku() {
|
|
|
11241
11249
|
"redirect_uri"
|
|
11242
11250
|
)
|
|
11243
11251
|
);
|
|
11244
|
-
ge || (ge = ((re = e == null ? void 0 : e.ui_settings) == null ? void 0 : re.after_signin_redirect_url) || null), !ge && (e != null && e.frontend_host) && (ge = `https://${e.frontend_host}`),
|
|
11252
|
+
ge || (ge = ((re = e == null ? void 0 : e.ui_settings) == null ? void 0 : re.after_signin_redirect_url) || null), !ge && (e != null && e.frontend_host) && (ge = `https://${e.frontend_host}`), G(!0), ge && t(ge);
|
|
11245
11253
|
}
|
|
11246
11254
|
} catch (ie) {
|
|
11247
11255
|
S({
|
|
@@ -11274,7 +11282,7 @@ function Ku() {
|
|
|
11274
11282
|
try {
|
|
11275
11283
|
await m(re);
|
|
11276
11284
|
const ie = ft();
|
|
11277
|
-
ie && (
|
|
11285
|
+
ie && (G(!0), t(ie));
|
|
11278
11286
|
} catch (ie) {
|
|
11279
11287
|
S({
|
|
11280
11288
|
submit: ie.message || "Failed to continue with selected account"
|
|
@@ -11283,7 +11291,7 @@ function Ku() {
|
|
|
11283
11291
|
T(!1);
|
|
11284
11292
|
}
|
|
11285
11293
|
}
|
|
11286
|
-
}, te = (re, ie) => `${re || ""} ${ie || ""}`.trim().split(" ").filter(Boolean).map((ge) => ge[0]).join("").toUpperCase().slice(0, 2) || "?", he =
|
|
11294
|
+
}, te = (re, ie) => `${re || ""} ${ie || ""}`.trim().split(" ").filter(Boolean).map((ge) => ge[0]).join("").toUpperCase().slice(0, 2) || "?", he = j(!1);
|
|
11287
11295
|
if (X(() => {
|
|
11288
11296
|
if (i) return;
|
|
11289
11297
|
const re = new URLSearchParams(window.location.search), ie = re.get("ticket");
|
|
@@ -11293,7 +11301,7 @@ function Ku() {
|
|
|
11293
11301
|
window.history.replaceState({}, "", De), (async () => {
|
|
11294
11302
|
var vt;
|
|
11295
11303
|
try {
|
|
11296
|
-
T(!0), await o(ie),
|
|
11304
|
+
T(!0), await o(ie), G(!0);
|
|
11297
11305
|
let Gt = At(
|
|
11298
11306
|
e,
|
|
11299
11307
|
new URLSearchParams(window.location.search).get(
|
|
@@ -11338,7 +11346,7 @@ function Ku() {
|
|
|
11338
11346
|
var De;
|
|
11339
11347
|
if (!A) return;
|
|
11340
11348
|
if (A.completed) {
|
|
11341
|
-
|
|
11349
|
+
G(!0);
|
|
11342
11350
|
let Pe = new URLSearchParams(
|
|
11343
11351
|
window.location.search
|
|
11344
11352
|
).get("redirect_uri");
|
|
@@ -11375,12 +11383,12 @@ function Ku() {
|
|
|
11375
11383
|
}
|
|
11376
11384
|
})();
|
|
11377
11385
|
}, [A, k, p, u, t, e]), g)
|
|
11378
|
-
return /* @__PURE__ */ a(
|
|
11386
|
+
return /* @__PURE__ */ a(Du, { onBack: () => v(!1) });
|
|
11379
11387
|
if (f)
|
|
11380
|
-
return /* @__PURE__ */ a(
|
|
11388
|
+
return /* @__PURE__ */ a(zu, { onBack: () => h(!1) });
|
|
11381
11389
|
if ((A == null ? void 0 : A.current_step) === "verify_second_factor")
|
|
11382
11390
|
return /* @__PURE__ */ a(
|
|
11383
|
-
|
|
11391
|
+
qu,
|
|
11384
11392
|
{
|
|
11385
11393
|
attempt: A,
|
|
11386
11394
|
completeVerification: k.completeVerification,
|
|
@@ -11392,7 +11400,7 @@ function Ku() {
|
|
|
11392
11400
|
);
|
|
11393
11401
|
if ((A == null ? void 0 : A.current_step) === "complete_profile")
|
|
11394
11402
|
return /* @__PURE__ */ a(
|
|
11395
|
-
|
|
11403
|
+
Ku,
|
|
11396
11404
|
{
|
|
11397
11405
|
attempt: A,
|
|
11398
11406
|
completeProfile: k.completeProfile,
|
|
@@ -11408,10 +11416,10 @@ function Ku() {
|
|
|
11408
11416
|
Nc,
|
|
11409
11417
|
{
|
|
11410
11418
|
onComplete: () => {
|
|
11411
|
-
we(!1), Qe && (
|
|
11419
|
+
we(!1), Qe && (G(!0), t(Qe));
|
|
11412
11420
|
},
|
|
11413
11421
|
onSkip: () => {
|
|
11414
|
-
we(!1), Qe && (
|
|
11422
|
+
we(!1), Qe && (G(!0), t(Qe));
|
|
11415
11423
|
}
|
|
11416
11424
|
}
|
|
11417
11425
|
) }) });
|
|
@@ -11960,7 +11968,7 @@ function Ku() {
|
|
|
11960
11968
|
Qt
|
|
11961
11969
|
] }) });
|
|
11962
11970
|
}
|
|
11963
|
-
function
|
|
11971
|
+
function $p() {
|
|
11964
11972
|
var y, x, b, N, E, k, A, _, M, L, F, R;
|
|
11965
11973
|
const { deployment: e } = Oe(), { loading: t, joinWaitlist: n } = Z1(), [i, s] = C({
|
|
11966
11974
|
first_name: "",
|
|
@@ -12149,7 +12157,7 @@ function Ur({
|
|
|
12149
12157
|
] })
|
|
12150
12158
|
] }) });
|
|
12151
12159
|
}
|
|
12152
|
-
function
|
|
12160
|
+
function Op() {
|
|
12153
12161
|
const { deployment: e } = Oe(), { navigate: t } = Ot(), { error: n, session: i, processed: s, signinAttempt: o, redirectUri: m, loading: l } = H1(), [c, p] = C(!1), [u, f] = C(
|
|
12154
12162
|
null
|
|
12155
12163
|
), h = () => {
|
|
@@ -12276,13 +12284,13 @@ function $p() {
|
|
|
12276
12284
|
}
|
|
12277
12285
|
);
|
|
12278
12286
|
}
|
|
12279
|
-
function
|
|
12287
|
+
function Zp({
|
|
12280
12288
|
onSuccess: e,
|
|
12281
12289
|
onError: t
|
|
12282
12290
|
} = {}) {
|
|
12283
12291
|
const [n, i] = C(
|
|
12284
12292
|
"loading"
|
|
12285
|
-
), [s, o] = C(""), { token: m, attempt: l, redirectUri: c } = F1(), { verifyMagicLink: p } = T1(), { navigate: u } = Ot(), { deployment: f } = Oe(), h =
|
|
12293
|
+
), [s, o] = C(""), { token: m, attempt: l, redirectUri: c } = F1(), { verifyMagicLink: p } = T1(), { navigate: u } = Ot(), { deployment: f } = Oe(), h = j(!1);
|
|
12286
12294
|
return X(() => {
|
|
12287
12295
|
(async () => {
|
|
12288
12296
|
if (!h.current) {
|
|
@@ -12348,7 +12356,7 @@ function Op({
|
|
|
12348
12356
|
] })
|
|
12349
12357
|
] }) });
|
|
12350
12358
|
}
|
|
12351
|
-
function
|
|
12359
|
+
function Hp(e) {
|
|
12352
12360
|
var i, s;
|
|
12353
12361
|
return e ? ((i = e.signin_attempts) == null ? void 0 : i.find(
|
|
12354
12362
|
(o) => o.requires_completion && !o.completed
|
|
@@ -12359,7 +12367,7 @@ function Zp(e) {
|
|
|
12359
12367
|
}
|
|
12360
12368
|
)) : !1;
|
|
12361
12369
|
}
|
|
12362
|
-
function
|
|
12370
|
+
function Tp(e) {
|
|
12363
12371
|
const t = e ? `/profile-completion?redirect_uri=${encodeURIComponent(e)}` : "/profile-completion";
|
|
12364
12372
|
window.location.href = t;
|
|
12365
12373
|
}
|
|
@@ -12388,13 +12396,13 @@ function Sa({
|
|
|
12388
12396
|
] })
|
|
12389
12397
|
] }) });
|
|
12390
12398
|
}
|
|
12391
|
-
function
|
|
12399
|
+
function Fp({
|
|
12392
12400
|
token: e,
|
|
12393
12401
|
onSuccess: t,
|
|
12394
12402
|
onError: n
|
|
12395
12403
|
}) {
|
|
12396
12404
|
var y;
|
|
12397
|
-
const { acceptInvitation: i, invitationData: s, loading: o, error: m } = zd(), { navigate: l } = Ot(), { deployment: c } = Oe(), p =
|
|
12405
|
+
const { acceptInvitation: i, invitationData: s, loading: o, error: m } = zd(), { navigate: l } = Ot(), { deployment: c } = Oe(), p = j(!1), u = () => {
|
|
12398
12406
|
var b;
|
|
12399
12407
|
const x = new URLSearchParams(window.location.search);
|
|
12400
12408
|
return {
|
|
@@ -12553,7 +12561,7 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12553
12561
|
if (!e)
|
|
12554
12562
|
throw new Error("Dialog components must be used within a Dialog");
|
|
12555
12563
|
return e;
|
|
12556
|
-
},
|
|
12564
|
+
}, Qu = ({ isOpen: e, onClose: t, children: n }) => {
|
|
12557
12565
|
const [i, s] = C(!1), o = Rn();
|
|
12558
12566
|
return X(() => {
|
|
12559
12567
|
s(!0);
|
|
@@ -12567,12 +12575,12 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12567
12575
|
/* @__PURE__ */ a("div", { className: "wacht-root", style: o, children: /* @__PURE__ */ a(Ac.Provider, { value: { isOpen: e, onClose: t }, children: n }) }),
|
|
12568
12576
|
document.body
|
|
12569
12577
|
);
|
|
12570
|
-
},
|
|
12571
|
-
const { onClose: t } = Cc(), n =
|
|
12578
|
+
}, Ju = ({ children: e }) => {
|
|
12579
|
+
const { onClose: t } = Cc(), n = j(null);
|
|
12572
12580
|
return /* @__PURE__ */ a("div", { className: "w-modal", onClick: (s) => {
|
|
12573
12581
|
n.current && !n.current.contains(s.target) && (t == null || t());
|
|
12574
12582
|
}, children: /* @__PURE__ */ a("div", { ref: n, style: { maxWidth: "100%", minWidth: 0 }, children: e }) });
|
|
12575
|
-
},
|
|
12583
|
+
}, Xu = ({
|
|
12576
12584
|
children: e,
|
|
12577
12585
|
style: t,
|
|
12578
12586
|
className: n
|
|
@@ -12583,7 +12591,7 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12583
12591
|
style: { maxHeight: "90vh", overflowY: "auto", ...t },
|
|
12584
12592
|
children: e
|
|
12585
12593
|
}
|
|
12586
|
-
),
|
|
12594
|
+
), e4 = ({
|
|
12587
12595
|
children: e,
|
|
12588
12596
|
showCloseButton: t = !0
|
|
12589
12597
|
}) => {
|
|
@@ -12592,20 +12600,20 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12592
12600
|
typeof e == "string" ? /* @__PURE__ */ a("h2", { className: "w-dialog-title", children: e }) : e,
|
|
12593
12601
|
t && /* @__PURE__ */ a("button", { className: "w-btn w-btn--icon", onClick: n, children: /* @__PURE__ */ a(Ta, { size: 18 }) })
|
|
12594
12602
|
] });
|
|
12595
|
-
},
|
|
12603
|
+
}, t4 = ({ children: e, style: t, className: n }) => /* @__PURE__ */ a(
|
|
12596
12604
|
"div",
|
|
12597
12605
|
{
|
|
12598
12606
|
className: `w-dialog-body${n ? ` ${n}` : ""}`,
|
|
12599
12607
|
style: t,
|
|
12600
12608
|
children: e
|
|
12601
12609
|
}
|
|
12602
|
-
),
|
|
12603
|
-
Overlay:
|
|
12604
|
-
Content:
|
|
12605
|
-
Header:
|
|
12606
|
-
Body:
|
|
12607
|
-
Footer:
|
|
12608
|
-
}),
|
|
12610
|
+
), a4 = ({ children: e }) => /* @__PURE__ */ a("div", { className: "w-dialog-foot", children: e }), Xe = Object.assign(Qu, {
|
|
12611
|
+
Overlay: Ju,
|
|
12612
|
+
Content: Xu,
|
|
12613
|
+
Header: e4,
|
|
12614
|
+
Body: t4,
|
|
12615
|
+
Footer: a4
|
|
12616
|
+
}), Ip = ({
|
|
12609
12617
|
isOpen: e,
|
|
12610
12618
|
onClose: t,
|
|
12611
12619
|
title: n,
|
|
@@ -12614,7 +12622,7 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12614
12622
|
}) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { children: [
|
|
12615
12623
|
n && /* @__PURE__ */ a(Xe.Header, { showCloseButton: s, children: n }),
|
|
12616
12624
|
/* @__PURE__ */ a(Xe.Body, { children: i })
|
|
12617
|
-
] }) }) }),
|
|
12625
|
+
] }) }) }), Vp = ({
|
|
12618
12626
|
trigger: e,
|
|
12619
12627
|
renderDialog: t
|
|
12620
12628
|
}) => {
|
|
@@ -12638,7 +12646,7 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12638
12646
|
openChange: n,
|
|
12639
12647
|
style: i
|
|
12640
12648
|
}) => {
|
|
12641
|
-
const s =
|
|
12649
|
+
const s = j(null), [o, m] = C(!1);
|
|
12642
12650
|
return X(() => {
|
|
12643
12651
|
const l = (c) => {
|
|
12644
12652
|
s.current && !s.current.contains(c.target) && m(!1);
|
|
@@ -12665,7 +12673,7 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12665
12673
|
style: t,
|
|
12666
12674
|
className: n
|
|
12667
12675
|
}) => {
|
|
12668
|
-
const { open: i } = Sc(), [s, o] = C({ top: 0, left: 0 }), [m, l] = C(!1), c =
|
|
12676
|
+
const { open: i } = Sc(), [s, o] = C({ top: 0, left: 0 }), [m, l] = C(!1), c = j(null);
|
|
12669
12677
|
return X(() => {
|
|
12670
12678
|
i && c.current ? (l(!1), requestAnimationFrame(() => {
|
|
12671
12679
|
var f, h;
|
|
@@ -12723,7 +12731,7 @@ const Ac = sa(void 0), Cc = () => {
|
|
|
12723
12731
|
)
|
|
12724
12732
|
);
|
|
12725
12733
|
Ca.displayName = "DropdownItem";
|
|
12726
|
-
const
|
|
12734
|
+
const n4 = () => /* @__PURE__ */ a(
|
|
12727
12735
|
"div",
|
|
12728
12736
|
{
|
|
12729
12737
|
style: {
|
|
@@ -12733,7 +12741,7 @@ const a4 = () => /* @__PURE__ */ a(
|
|
|
12733
12741
|
margin: "4px 0"
|
|
12734
12742
|
}
|
|
12735
12743
|
}
|
|
12736
|
-
),
|
|
12744
|
+
), r4 = ce(({ className: e, style: t, ...n }, i) => /* @__PURE__ */ a(
|
|
12737
12745
|
"form",
|
|
12738
12746
|
{
|
|
12739
12747
|
ref: i,
|
|
@@ -12747,7 +12755,7 @@ const a4 = () => /* @__PURE__ */ a(
|
|
|
12747
12755
|
...n
|
|
12748
12756
|
}
|
|
12749
12757
|
));
|
|
12750
|
-
|
|
12758
|
+
r4.displayName = "Form";
|
|
12751
12759
|
const at = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
12752
12760
|
"div",
|
|
12753
12761
|
{
|
|
@@ -12912,7 +12920,7 @@ const Lc = (e) => ({
|
|
|
12912
12920
|
groupsEnabled: p = !1,
|
|
12913
12921
|
className: u
|
|
12914
12922
|
}) => {
|
|
12915
|
-
const [f, h] = C(!1), [g, v] = C(""), w =
|
|
12923
|
+
const [f, h] = C(!1), [g, v] = C(""), w = j(null), y = j(null), x = p && "options" in e[0], N = (x ? e.flatMap((_) => _.options) : e).find((_) => _.value === t), E = g ? x ? e.map((_) => ({
|
|
12916
12924
|
..._,
|
|
12917
12925
|
options: _.options.filter(
|
|
12918
12926
|
(M) => M.label.toLowerCase().includes(g.toLowerCase())
|
|
@@ -13032,7 +13040,7 @@ const Lc = (e) => ({
|
|
|
13032
13040
|
groupsEnabled: p = !1,
|
|
13033
13041
|
className: u
|
|
13034
13042
|
}) => {
|
|
13035
|
-
const [f, h] = C(!1), [g, v] = C(""), w =
|
|
13043
|
+
const [f, h] = C(!1), [g, v] = C(""), w = j(null), y = j(null), x = p && "options" in e[0], N = (x ? e.flatMap((_) => _.options) : e).filter(
|
|
13036
13044
|
(_) => t.includes(_.value)
|
|
13037
13045
|
), E = g ? x ? e.map((_) => ({
|
|
13038
13046
|
..._,
|
|
@@ -13141,13 +13149,13 @@ const Lc = (e) => ({
|
|
|
13141
13149
|
]
|
|
13142
13150
|
}
|
|
13143
13151
|
);
|
|
13144
|
-
}, Dn = (e) => e.split(" ").map((t) => t[0]).join("").toUpperCase().slice(0, 2) || "?", Ps = (e) => e.trim().replace(/[<>"'&]/g, ""),
|
|
13152
|
+
}, Dn = (e) => e.split(" ").map((t) => t[0]).join("").toUpperCase().slice(0, 2) || "?", Ps = (e) => e.trim().replace(/[<>"'&]/g, ""), i4 = (e) => e.length >= 2 && e.length <= 100 && /^[a-zA-Z0-9\s_.-]+$/.test(e), s4 = (e) => /.+@.+\..+/.test(e), $s = (e, t) => e.length ? e.find((n) => n.name === t) || e[0] : null, o4 = ({
|
|
13145
13153
|
roles: e,
|
|
13146
13154
|
value: t,
|
|
13147
13155
|
onChange: n,
|
|
13148
13156
|
fullWidth: i
|
|
13149
13157
|
}) => {
|
|
13150
|
-
const [s, o] = C(!1), m =
|
|
13158
|
+
const [s, o] = C(!1), m = j(null);
|
|
13151
13159
|
return X(() => {
|
|
13152
13160
|
if (!s) return;
|
|
13153
13161
|
const l = (c) => {
|
|
@@ -13193,7 +13201,7 @@ const Lc = (e) => ({
|
|
|
13193
13201
|
onCreateOrganization: s
|
|
13194
13202
|
}) => {
|
|
13195
13203
|
var fe;
|
|
13196
|
-
const o = e === "org", m = o ? "organization" : "workspace", l = o ? "Organization" : "Workspace", { createOrganization: c, getOrganizationRoles: p, inviteOrganizationMember: u } = la(), { createWorkspace: f, getWorkspaceRoles: h, createWorkspaceInvitation: g } = Wa(), { organizationMemberships: v } = Ua(), { refetch: w } = gt(), [y, x] = C(0), [b, N] = C(""), [E, k] = C(""), [A, _] = C(), [M, L] = C(null), [F, R] = C(!1), [z, O] = C(null), [S, Z] = C(t), [T, P] = C(!1), $ =
|
|
13204
|
+
const o = e === "org", m = o ? "organization" : "workspace", l = o ? "Organization" : "Workspace", { createOrganization: c, getOrganizationRoles: p, inviteOrganizationMember: u } = la(), { createWorkspace: f, getWorkspaceRoles: h, createWorkspaceInvitation: g } = Wa(), { organizationMemberships: v } = Ua(), { refetch: w } = gt(), [y, x] = C(0), [b, N] = C(""), [E, k] = C(""), [A, _] = C(), [M, L] = C(null), [F, R] = C(!1), [z, O] = C(null), [S, Z] = C(t), [T, P] = C(!1), $ = j(null), H = j(null), [V, q] = C(null), [G, U] = C([]), [Y, ee] = C([]), [we, _e] = C(""), [de, oe] = C(null), ue = (fe = v == null ? void 0 : v.find(
|
|
13197
13205
|
(K) => K.organization.id === S
|
|
13198
13206
|
)) == null ? void 0 : fe.organization;
|
|
13199
13207
|
X(() => () => {
|
|
@@ -13222,7 +13230,7 @@ const Lc = (e) => ({
|
|
|
13222
13230
|
}, J = async () => {
|
|
13223
13231
|
var ne;
|
|
13224
13232
|
const K = Ps(b), Q = Ps(E);
|
|
13225
|
-
if (!
|
|
13233
|
+
if (!i4(K)) {
|
|
13226
13234
|
O(`Enter a valid ${m} name (2–100 characters).`);
|
|
13227
13235
|
return;
|
|
13228
13236
|
}
|
|
@@ -13267,7 +13275,7 @@ const Lc = (e) => ({
|
|
|
13267
13275
|
}
|
|
13268
13276
|
}, dt = () => {
|
|
13269
13277
|
const K = we.trim();
|
|
13270
|
-
!
|
|
13278
|
+
!s4(K) || Y.some((Q) => Q.email === K) || de && (ee((Q) => [
|
|
13271
13279
|
...Q,
|
|
13272
13280
|
{ email: K, roleId: de.id, roleName: de.name }
|
|
13273
13281
|
]), _e(""));
|
|
@@ -13516,9 +13524,9 @@ const Lc = (e) => ({
|
|
|
13516
13524
|
}
|
|
13517
13525
|
),
|
|
13518
13526
|
/* @__PURE__ */ a(
|
|
13519
|
-
|
|
13527
|
+
o4,
|
|
13520
13528
|
{
|
|
13521
|
-
roles:
|
|
13529
|
+
roles: G,
|
|
13522
13530
|
value: de,
|
|
13523
13531
|
onChange: oe
|
|
13524
13532
|
}
|
|
@@ -13654,7 +13662,7 @@ const Lc = (e) => ({
|
|
|
13654
13662
|
onCancel: i,
|
|
13655
13663
|
style: s
|
|
13656
13664
|
}) => {
|
|
13657
|
-
const o =
|
|
13665
|
+
const o = j(null);
|
|
13658
13666
|
return X(() => {
|
|
13659
13667
|
const m = (l) => {
|
|
13660
13668
|
o.current && !o.current.contains(l.target) && i();
|
|
@@ -13902,7 +13910,7 @@ const Lc = (e) => ({
|
|
|
13902
13910
|
docUrl: "",
|
|
13903
13911
|
placeholders: {}
|
|
13904
13912
|
}
|
|
13905
|
-
],
|
|
13913
|
+
], l4 = ({ template: e }) => {
|
|
13906
13914
|
const [t, n] = C(!1);
|
|
13907
13915
|
return !e.logo || t ? /* @__PURE__ */ a("span", { className: "w-avatar w-avatar--square w-avatar--md w-sso-logo--ph", children: /* @__PURE__ */ a(ia, { size: 18, className: "w-text-muted" }) }) : /* @__PURE__ */ a(
|
|
13908
13916
|
"img",
|
|
@@ -13913,7 +13921,7 @@ const Lc = (e) => ({
|
|
|
13913
13921
|
onError: () => n(!0)
|
|
13914
13922
|
}
|
|
13915
13923
|
);
|
|
13916
|
-
},
|
|
13924
|
+
}, c4 = ({
|
|
13917
13925
|
organization: e
|
|
13918
13926
|
}) => {
|
|
13919
13927
|
const {
|
|
@@ -13946,7 +13954,7 @@ const Lc = (e) => ({
|
|
|
13946
13954
|
h(null);
|
|
13947
13955
|
};
|
|
13948
13956
|
return v ? /* @__PURE__ */ a("div", { className: "w-loading", children: /* @__PURE__ */ a(Re, {}) }) : p ? /* @__PURE__ */ a(
|
|
13949
|
-
|
|
13957
|
+
u4,
|
|
13950
13958
|
{
|
|
13951
13959
|
organization: e,
|
|
13952
13960
|
onClose: () => u(!1),
|
|
@@ -13980,7 +13988,7 @@ const Lc = (e) => ({
|
|
|
13980
13988
|
/* @__PURE__ */ a("p", { className: "w-sub", children: "Configure SAML or OIDC SSO for your organization" })
|
|
13981
13989
|
] }) }),
|
|
13982
13990
|
g.map((x) => /* @__PURE__ */ a(
|
|
13983
|
-
|
|
13991
|
+
d4,
|
|
13984
13992
|
{
|
|
13985
13993
|
connection: x,
|
|
13986
13994
|
onDelete: (b) => h(b),
|
|
@@ -13996,7 +14004,7 @@ const Lc = (e) => ({
|
|
|
13996
14004
|
x.id
|
|
13997
14005
|
))
|
|
13998
14006
|
] }) });
|
|
13999
|
-
},
|
|
14007
|
+
}, d4 = ({
|
|
14000
14008
|
connection: e,
|
|
14001
14009
|
onDelete: t,
|
|
14002
14010
|
connectionToDelete: n,
|
|
@@ -14213,7 +14221,7 @@ const Lc = (e) => ({
|
|
|
14213
14221
|
] })
|
|
14214
14222
|
] })
|
|
14215
14223
|
] });
|
|
14216
|
-
},
|
|
14224
|
+
}, u4 = ({
|
|
14217
14225
|
onCreate: e,
|
|
14218
14226
|
organization: t
|
|
14219
14227
|
}) => {
|
|
@@ -14367,7 +14375,7 @@ const Lc = (e) => ({
|
|
|
14367
14375
|
} finally {
|
|
14368
14376
|
N(!1);
|
|
14369
14377
|
}
|
|
14370
|
-
}, Z = (T) => /* @__PURE__ */ a(
|
|
14378
|
+
}, Z = (T) => /* @__PURE__ */ a(l4, { template: T });
|
|
14371
14379
|
return /* @__PURE__ */ d("form", { onSubmit: O, autoComplete: "off", className: "w-flex-col w-gap-4", children: [
|
|
14372
14380
|
c ? /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-4 w-sso-template", children: [
|
|
14373
14381
|
Z(c),
|
|
@@ -14818,7 +14826,7 @@ const Lc = (e) => ({
|
|
|
14818
14826
|
className: xt("w-card", "w-flex-col", "w-full", "w-minh-full", e),
|
|
14819
14827
|
...t
|
|
14820
14828
|
}
|
|
14821
|
-
),
|
|
14829
|
+
), m4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-tabsbar", e), ...t }), p4 = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
14822
14830
|
"div",
|
|
14823
14831
|
{
|
|
14824
14832
|
className: xt("w-flex", "w-items-center", "w-gap-1", "w-tabs", e),
|
|
@@ -14834,7 +14842,7 @@ const Lc = (e) => ({
|
|
|
14834
14842
|
className: xt("w-tab", t && "w-tab--active", e),
|
|
14835
14843
|
...n
|
|
14836
14844
|
}
|
|
14837
|
-
), Ja = ({ className: e, ...t }) => /* @__PURE__ */ a("span", { className: xt("w-inline", "w-gap-2", e), ...t }),
|
|
14845
|
+
), Ja = ({ className: e, ...t }) => /* @__PURE__ */ a("span", { className: xt("w-inline", "w-gap-2", e), ...t }), h4 = ({ className: e, children: t, ...n }) => /* @__PURE__ */ a("div", { className: xt("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }), Fi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-sechead", e), ...t }), Hs = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
14838
14846
|
"div",
|
|
14839
14847
|
{
|
|
14840
14848
|
className: xt(
|
|
@@ -14852,7 +14860,7 @@ const Lc = (e) => ({
|
|
|
14852
14860
|
className: xt("w-flex", "w-items-center", "w-gap-3", "w-none", e),
|
|
14853
14861
|
...t
|
|
14854
14862
|
}
|
|
14855
|
-
), _r = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-full", e), ...t }),
|
|
14863
|
+
), _r = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-full", e), ...t }), f4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-page-head", e), ...t }), w4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-grow", "w-flex-col", "w-gap-1", e), ...t }), g4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-sec", "w-truncate", e), ...t }), v4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: xt("w-secsub", "w-truncate", e), ...t }), b4 = {
|
|
14856
14864
|
primary: "w-pill--current",
|
|
14857
14865
|
success: "w-pill--success",
|
|
14858
14866
|
warning: "w-pill--pending",
|
|
@@ -14863,14 +14871,14 @@ const Lc = (e) => ({
|
|
|
14863
14871
|
$variant: t = "neutral",
|
|
14864
14872
|
children: n,
|
|
14865
14873
|
...i
|
|
14866
|
-
}) => /* @__PURE__ */ d("span", { className: xt("w-pill",
|
|
14874
|
+
}) => /* @__PURE__ */ d("span", { className: xt("w-pill", b4[t], e), ...i, children: [
|
|
14867
14875
|
/* @__PURE__ */ a("span", { className: "w-dot" }),
|
|
14868
14876
|
n
|
|
14869
14877
|
] }), Is = ({
|
|
14870
14878
|
className: e,
|
|
14871
14879
|
$first: t,
|
|
14872
14880
|
...n
|
|
14873
|
-
}) => /* @__PURE__ */ a("div", { className: xt("w-sec", e), ...n }),
|
|
14881
|
+
}) => /* @__PURE__ */ a("div", { className: xt("w-sec", e), ...n }), y4 = ({
|
|
14874
14882
|
organization: e
|
|
14875
14883
|
}) => {
|
|
14876
14884
|
var R, z, O, S, Z, T;
|
|
@@ -14881,7 +14889,7 @@ const Lc = (e) => ({
|
|
|
14881
14889
|
ip_restrictions: !1,
|
|
14882
14890
|
allowed_ips: "",
|
|
14883
14891
|
default_workspace_id: ""
|
|
14884
|
-
}), [y, x] = C(""), [b, N] = C(!1), [E, k] = C(!1), A =
|
|
14892
|
+
}), [y, x] = C(""), [b, N] = C(!1), [E, k] = C(!1), A = j({ name: c, description: u, security: v, isSaving: h });
|
|
14885
14893
|
X(() => {
|
|
14886
14894
|
A.current = { name: c, description: u, security: v, isSaving: h };
|
|
14887
14895
|
}, [c, u, v, h]);
|
|
@@ -15109,8 +15117,8 @@ const We = ce((e, t) => /* @__PURE__ */ a("th", { ref: t, ...e }));
|
|
|
15109
15117
|
We.displayName = "TableHeader";
|
|
15110
15118
|
const st = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: e, ...t }));
|
|
15111
15119
|
st.displayName = "TableCell";
|
|
15112
|
-
const
|
|
15113
|
-
|
|
15120
|
+
const _4 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: Ii("w-td--flex", e), ...t }));
|
|
15121
|
+
_4.displayName = "TableCellFlex";
|
|
15114
15122
|
const Bt = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("td", { ref: n, className: Ii("w-td--actions", e), ...t }));
|
|
15115
15123
|
Bt.displayName = "ActionsCell";
|
|
15116
15124
|
const $t = ({
|
|
@@ -15159,7 +15167,7 @@ const $t = ({
|
|
|
15159
15167
|
domain: t,
|
|
15160
15168
|
triggerRef: n
|
|
15161
15169
|
}) => {
|
|
15162
|
-
const i =
|
|
15170
|
+
const i = j(null), [s, o] = C(), [m, l] = C(""), [c, p] = C(!1), [u, f] = C(!1), { addDomain: h, verifyDomain: g } = Da(), { toast: v } = Pt(), w = St({
|
|
15163
15171
|
contentRef: i,
|
|
15164
15172
|
triggerRef: n ?? { current: null },
|
|
15165
15173
|
isOpen: u,
|
|
@@ -15294,11 +15302,11 @@ const $t = ({
|
|
|
15294
15302
|
]
|
|
15295
15303
|
}
|
|
15296
15304
|
);
|
|
15297
|
-
},
|
|
15305
|
+
}, x4 = ({ organization: e }) => {
|
|
15298
15306
|
const {
|
|
15299
15307
|
getOrganizationDomains: t,
|
|
15300
15308
|
removeOrganizationDomain: n
|
|
15301
|
-
} = la(), [i, s] = C(null), [o, m] = C(!1), [l, c] = C(null), [p, u] = C(/* @__PURE__ */ new Set()), f =
|
|
15309
|
+
} = la(), [i, s] = C(null), [o, m] = C(!1), [l, c] = C(null), [p, u] = C(/* @__PURE__ */ new Set()), f = j(null), h = j({}), {
|
|
15302
15310
|
data: g = [],
|
|
15303
15311
|
isLoading: v,
|
|
15304
15312
|
mutate: w
|
|
@@ -15413,7 +15421,7 @@ const $t = ({
|
|
|
15413
15421
|
roles: n,
|
|
15414
15422
|
triggerRef: i
|
|
15415
15423
|
}) => {
|
|
15416
|
-
const s =
|
|
15424
|
+
const s = j(null), [o, m] = C(""), [l, c] = C(null), [p, u] = C(!1), [f, h] = C(!1), { inviteMember: g } = Da(), { toast: v } = Pt(), w = St({
|
|
15417
15425
|
contentRef: s,
|
|
15418
15426
|
triggerRef: i ?? { current: null },
|
|
15419
15427
|
isOpen: f,
|
|
@@ -15521,7 +15529,7 @@ const $t = ({
|
|
|
15521
15529
|
]
|
|
15522
15530
|
}
|
|
15523
15531
|
) : null;
|
|
15524
|
-
},
|
|
15532
|
+
}, k4 = ({
|
|
15525
15533
|
organization: e
|
|
15526
15534
|
}) => {
|
|
15527
15535
|
const {
|
|
@@ -15530,7 +15538,7 @@ const $t = ({
|
|
|
15530
15538
|
addRoleToOrganizationMember: i,
|
|
15531
15539
|
removeRoleFromOrganizationMember: s,
|
|
15532
15540
|
removeOrganizationMember: o
|
|
15533
|
-
} = la(), { session: m } = gt(), { toast: l } = Pt(), [c, p] = C(""), [u, f] = C(1), [h] = C(10), [g, v] = C(!1), [w, y] = C(/* @__PURE__ */ new Set()), x =
|
|
15541
|
+
} = la(), { session: m } = gt(), { toast: l } = Pt(), [c, p] = C(""), [u, f] = C(1), [h] = C(10), [g, v] = C(!1), [w, y] = C(/* @__PURE__ */ new Set()), x = j(null), [b, N] = C(c);
|
|
15534
15542
|
X(() => {
|
|
15535
15543
|
const S = setTimeout(() => {
|
|
15536
15544
|
N(c), f(1);
|
|
@@ -15622,10 +15630,10 @@ const $t = ({
|
|
|
15622
15630
|
var P, $;
|
|
15623
15631
|
const Z = ((P = S.user) == null ? void 0 : P.id) === (($ = m == null ? void 0 : m.active_signin) == null ? void 0 : $.user_id), T = w.has(S.id);
|
|
15624
15632
|
return /* @__PURE__ */ d(ht, { children: [
|
|
15625
|
-
/* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(
|
|
15633
|
+
/* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(N4, { member: S, isCurrentUser: Z }) }),
|
|
15626
15634
|
/* @__PURE__ */ a(st, { children: new Date(S.created_at).toLocaleDateString() }),
|
|
15627
15635
|
/* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(
|
|
15628
|
-
|
|
15636
|
+
A4,
|
|
15629
15637
|
{
|
|
15630
15638
|
member: S,
|
|
15631
15639
|
roles: F,
|
|
@@ -15658,7 +15666,7 @@ const $t = ({
|
|
|
15658
15666
|
/* @__PURE__ */ a(le, { onClick: () => f((S) => Math.min(M, S + 1)), disabled: u === M, $size: "sm", $outline: !0, children: "Next" })
|
|
15659
15667
|
] })
|
|
15660
15668
|
] }) : /* @__PURE__ */ a(Re, {});
|
|
15661
|
-
},
|
|
15669
|
+
}, N4 = ({ member: e, isCurrentUser: t }) => {
|
|
15662
15670
|
var o, m;
|
|
15663
15671
|
const n = e.user, i = (l = "", c = "") => `${l[0] || ""}${c[0] || ""}`.toUpperCase() || "?", s = n ? `${n.first_name || ""} ${n.last_name || ""}`.trim() || ((o = n.primary_email_address) == null ? void 0 : o.email) : "Unknown";
|
|
15664
15672
|
return /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-3 w-grow", children: [
|
|
@@ -15671,7 +15679,7 @@ const $t = ({
|
|
|
15671
15679
|
/* @__PURE__ */ a("span", { className: "w-secsub", children: (m = n == null ? void 0 : n.primary_email_address) == null ? void 0 : m.email })
|
|
15672
15680
|
] })
|
|
15673
15681
|
] });
|
|
15674
|
-
},
|
|
15682
|
+
}, A4 = ({
|
|
15675
15683
|
member: e,
|
|
15676
15684
|
roles: t,
|
|
15677
15685
|
onToggle: n,
|
|
@@ -15708,16 +15716,16 @@ const $t = ({
|
|
|
15708
15716
|
);
|
|
15709
15717
|
}) })
|
|
15710
15718
|
] });
|
|
15711
|
-
},
|
|
15719
|
+
}, C4 = (e) => {
|
|
15712
15720
|
const t = e.expires_at;
|
|
15713
15721
|
return t ? new Date(t).getTime() < Date.now() : !1;
|
|
15714
|
-
},
|
|
15722
|
+
}, E4 = ({ organization: e }) => {
|
|
15715
15723
|
const {
|
|
15716
15724
|
getOrganizationInvitations: t,
|
|
15717
15725
|
getOrganizationRoles: n,
|
|
15718
15726
|
discardOrganizationInvitation: i,
|
|
15719
15727
|
resendOrganizationInvitation: s
|
|
15720
|
-
} = la(), { toast: o } = Pt(), [m, l] = C(!1), [c, p] = C(/* @__PURE__ */ new Set()), u =
|
|
15728
|
+
} = la(), { toast: o } = Pt(), [m, l] = C(!1), [c, p] = C(/* @__PURE__ */ new Set()), u = j(null), {
|
|
15721
15729
|
data: f = [],
|
|
15722
15730
|
isLoading: h,
|
|
15723
15731
|
mutate: g
|
|
@@ -15794,7 +15802,7 @@ const $t = ({
|
|
|
15794
15802
|
] }) }),
|
|
15795
15803
|
/* @__PURE__ */ a(Wt, { children: f.map((E) => {
|
|
15796
15804
|
var _;
|
|
15797
|
-
const k =
|
|
15805
|
+
const k = C4(E), A = c.has(E.id);
|
|
15798
15806
|
return /* @__PURE__ */ d(ht, { children: [
|
|
15799
15807
|
/* @__PURE__ */ a(st, { children: E.email }),
|
|
15800
15808
|
/* @__PURE__ */ a(st, { children: ((_ = E.initial_organization_role) == null ? void 0 : _.name) || "No role" }),
|
|
@@ -15834,7 +15842,7 @@ const $t = ({
|
|
|
15834
15842
|
triggerRef: i
|
|
15835
15843
|
}) => {
|
|
15836
15844
|
var k;
|
|
15837
|
-
const s =
|
|
15845
|
+
const s = j(null), [o, m] = C((n == null ? void 0 : n.name) || ""), [l, c] = C((n == null ? void 0 : n.permissions) || []), [p, u] = C(!1), [f, h] = C(!1), { deployment: g } = Oe(), { toast: v } = Pt(), w = St({
|
|
15838
15846
|
contentRef: s,
|
|
15839
15847
|
triggerRef: i ?? { current: null },
|
|
15840
15848
|
isOpen: f,
|
|
@@ -15954,29 +15962,29 @@ function Hc(e, t) {
|
|
|
15954
15962
|
const n = e[t];
|
|
15955
15963
|
return typeof n == "string" ? n.length > 0 && n !== "0" : typeof n == "number" ? Number.isFinite(n) && n > 0 : !1;
|
|
15956
15964
|
}
|
|
15957
|
-
function
|
|
15965
|
+
function S4(e, t) {
|
|
15958
15966
|
const n = e[t];
|
|
15959
15967
|
return typeof n == "boolean" ? n : null;
|
|
15960
15968
|
}
|
|
15961
15969
|
function Tc(e) {
|
|
15962
15970
|
if (!Vi(e)) return !1;
|
|
15963
|
-
const t =
|
|
15971
|
+
const t = S4(e, "is_deployment_level");
|
|
15964
15972
|
return t !== null ? t : !1;
|
|
15965
15973
|
}
|
|
15966
|
-
function
|
|
15974
|
+
function M4(e) {
|
|
15967
15975
|
return !Vi(e) || Tc(e) ? !1 : Hc(e, "organization_id");
|
|
15968
15976
|
}
|
|
15969
15977
|
function bi(e) {
|
|
15970
15978
|
return !Vi(e) || Tc(e) ? !1 : Hc(e, "workspace_id");
|
|
15971
15979
|
}
|
|
15972
|
-
const
|
|
15980
|
+
const L4 = ({
|
|
15973
15981
|
organization: e
|
|
15974
15982
|
}) => {
|
|
15975
15983
|
var k;
|
|
15976
15984
|
const {
|
|
15977
15985
|
getOrganizationRoles: t,
|
|
15978
15986
|
removeOrganizationRoles: n
|
|
15979
|
-
} = la(), { deployment: i } = Oe(), [s, o] = C({ isOpen: !1 }), [m, l] = C(null), [c, p] = C(null), [u, f] = C(/* @__PURE__ */ new Set()), h =
|
|
15987
|
+
} = la(), { deployment: i } = Oe(), [s, o] = C({ isOpen: !1 }), [m, l] = C(null), [c, p] = C(null), [u, f] = C(/* @__PURE__ */ new Set()), h = j(null), g = j(/* @__PURE__ */ new Map()), {
|
|
15980
15988
|
data: v = [],
|
|
15981
15989
|
isLoading: w,
|
|
15982
15990
|
mutate: y
|
|
@@ -16010,7 +16018,7 @@ const M4 = ({
|
|
|
16010
16018
|
};
|
|
16011
16019
|
if (w && v.length === 0) return /* @__PURE__ */ a(Re, {});
|
|
16012
16020
|
const E = (A) => {
|
|
16013
|
-
const _ =
|
|
16021
|
+
const _ = M4(A), M = u.has(A.id), L = A.permissions.length;
|
|
16014
16022
|
return /* @__PURE__ */ d(ht, { children: [
|
|
16015
16023
|
/* @__PURE__ */ a(st, { children: /* @__PURE__ */ d("span", { className: "w-inline w-gap-2 w-sec", children: [
|
|
16016
16024
|
A.name,
|
|
@@ -16135,14 +16143,14 @@ const M4 = ({
|
|
|
16135
16143
|
}
|
|
16136
16144
|
)
|
|
16137
16145
|
] });
|
|
16138
|
-
},
|
|
16146
|
+
}, R4 = () => {
|
|
16139
16147
|
const { activeOrganization: e, loading: t } = Da(), [n, i] = C(null);
|
|
16140
16148
|
return X(() => {
|
|
16141
16149
|
e ? i(e) : !t && !e && n && i(null);
|
|
16142
16150
|
}, [e, t, n]), { activeOrganization: n || e, loading: t };
|
|
16143
|
-
},
|
|
16151
|
+
}, P4 = () => {
|
|
16144
16152
|
var w, y, x;
|
|
16145
|
-
const { loading: e, activeOrganization: t } =
|
|
16153
|
+
const { loading: e, activeOrganization: t } = R4(), { updateOrganization: n } = Da(), { deployment: i } = Oe(), [s, o] = C("general"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
|
|
16146
16154
|
(b, N = "info") => {
|
|
16147
16155
|
l(b), p(N), setTimeout(() => l(null), 3e3);
|
|
16148
16156
|
},
|
|
@@ -16170,7 +16178,7 @@ const M4 = ({
|
|
|
16170
16178
|
};
|
|
16171
16179
|
return e && !t ? /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Wr, { className: "w-items-center w-justify-center", children: /* @__PURE__ */ a(Re, {}) }) }) : t ? /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Zs, { children: /* @__PURE__ */ a(Ti.Provider, { value: { screen: null, setScreen: () => {
|
|
16172
16180
|
}, toast: g }, children: /* @__PURE__ */ d(Wr, { className: "w-relative", children: [
|
|
16173
|
-
/* @__PURE__ */ d(
|
|
16181
|
+
/* @__PURE__ */ d(f4, { children: [
|
|
16174
16182
|
/* @__PURE__ */ d(
|
|
16175
16183
|
"button",
|
|
16176
16184
|
{
|
|
@@ -16200,12 +16208,12 @@ const M4 = ({
|
|
|
16200
16208
|
onChange: v
|
|
16201
16209
|
}
|
|
16202
16210
|
),
|
|
16203
|
-
/* @__PURE__ */ d(
|
|
16204
|
-
/* @__PURE__ */ a(
|
|
16205
|
-
/* @__PURE__ */ a(
|
|
16211
|
+
/* @__PURE__ */ d(w4, { children: [
|
|
16212
|
+
/* @__PURE__ */ a(g4, { children: t.name }),
|
|
16213
|
+
/* @__PURE__ */ a(v4, { children: t.member_count != null ? `${t.member_count} members` : "Organization settings" })
|
|
16206
16214
|
] })
|
|
16207
16215
|
] }),
|
|
16208
|
-
/* @__PURE__ */ a(
|
|
16216
|
+
/* @__PURE__ */ a(m4, { children: /* @__PURE__ */ d(p4, { children: [
|
|
16209
16217
|
/* @__PURE__ */ a(Qa, { $isActive: s === "general", onClick: () => o("general"), children: /* @__PURE__ */ d(Ja, { children: [
|
|
16210
16218
|
/* @__PURE__ */ a($a, { size: 16 }),
|
|
16211
16219
|
" General"
|
|
@@ -16231,13 +16239,13 @@ const M4 = ({
|
|
|
16231
16239
|
" SSO"
|
|
16232
16240
|
] }) })
|
|
16233
16241
|
] }) }),
|
|
16234
|
-
/* @__PURE__ */ d(
|
|
16235
|
-
s === "general" && /* @__PURE__ */ a(
|
|
16236
|
-
s === "domains" && /* @__PURE__ */ a(
|
|
16237
|
-
s === "members" && /* @__PURE__ */ a(
|
|
16238
|
-
s === "invitations" && /* @__PURE__ */ a(
|
|
16239
|
-
s === "roles" && /* @__PURE__ */ a(
|
|
16240
|
-
s === "sso" && /* @__PURE__ */ a(
|
|
16242
|
+
/* @__PURE__ */ d(h4, { children: [
|
|
16243
|
+
s === "general" && /* @__PURE__ */ a(y4, { organization: t }),
|
|
16244
|
+
s === "domains" && /* @__PURE__ */ a(x4, { organization: t }),
|
|
16245
|
+
s === "members" && /* @__PURE__ */ a(k4, { organization: t }),
|
|
16246
|
+
s === "invitations" && /* @__PURE__ */ a(E4, { organization: t }),
|
|
16247
|
+
s === "roles" && /* @__PURE__ */ a(L4, { organization: t }),
|
|
16248
|
+
s === "sso" && /* @__PURE__ */ a(c4, { organization: t })
|
|
16241
16249
|
] }),
|
|
16242
16250
|
m && /* @__PURE__ */ d(
|
|
16243
16251
|
"div",
|
|
@@ -16252,7 +16260,7 @@ const M4 = ({
|
|
|
16252
16260
|
] }) }) }) }) : /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Zs, { children: /* @__PURE__ */ a(Wr, { className: "w-items-center w-justify-center", children: /* @__PURE__ */ d("div", { className: "w-empty", children: [
|
|
16253
16261
|
/* @__PURE__ */ a("span", { className: "w-empty-ic", children: /* @__PURE__ */ a(kn, { size: 20 }) }),
|
|
16254
16262
|
/* @__PURE__ */ a("h4", { children: "No Organization Selected" }),
|
|
16255
|
-
/* @__PURE__ */ a(
|
|
16263
|
+
/* @__PURE__ */ a(nm, {})
|
|
16256
16264
|
] }) }) }) });
|
|
16257
16265
|
}, Fc = ({
|
|
16258
16266
|
isOpen: e,
|
|
@@ -16266,7 +16274,7 @@ const M4 = ({
|
|
|
16266
16274
|
showCloseButton: c
|
|
16267
16275
|
}) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { className: "w-dialog--panel", children: [
|
|
16268
16276
|
i && /* @__PURE__ */ a(Xe.Header, { showCloseButton: c, children: s || n }),
|
|
16269
|
-
m || l || /* @__PURE__ */ a(
|
|
16277
|
+
m || l || /* @__PURE__ */ a(P4, {}),
|
|
16270
16278
|
o && /* @__PURE__ */ a(Xe.Footer, { children: o })
|
|
16271
16279
|
] }) }) }), Ic = ({
|
|
16272
16280
|
organizationId: e,
|
|
@@ -16312,13 +16320,13 @@ const M4 = ({
|
|
|
16312
16320
|
onCreateOrganization: p
|
|
16313
16321
|
}
|
|
16314
16322
|
) }) }) }) });
|
|
16315
|
-
}, kt = (...e) => e.filter(Boolean).join(" "),
|
|
16323
|
+
}, kt = (...e) => e.filter(Boolean).join(" "), $4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-contents", e), ...t }), Ds = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
16316
16324
|
"div",
|
|
16317
16325
|
{
|
|
16318
16326
|
className: kt("w-card", "w-flex-col", "w-full", "w-minh-full", e),
|
|
16319
16327
|
...t
|
|
16320
16328
|
}
|
|
16321
|
-
),
|
|
16329
|
+
), O4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-tabsbar", e), ...t }), Z4 = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
16322
16330
|
"div",
|
|
16323
16331
|
{
|
|
16324
16332
|
className: kt("w-flex", "w-items-center", "w-gap-1", "w-tabs", e),
|
|
@@ -16337,7 +16345,7 @@ const M4 = ({
|
|
|
16337
16345
|
), Wn = ({
|
|
16338
16346
|
className: e,
|
|
16339
16347
|
...t
|
|
16340
|
-
}) => /* @__PURE__ */ a("span", { className: kt("w-inline", "w-gap-2", e), ...t }),
|
|
16348
|
+
}) => /* @__PURE__ */ a("span", { className: kt("w-inline", "w-gap-2", e), ...t }), H4 = ({ className: e, children: t, ...n }) => /* @__PURE__ */ a("div", { className: kt("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }), ir = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("button", { ref: n, className: kt("w-kebab", e), ...t }));
|
|
16341
16349
|
ir.displayName = "IconButton";
|
|
16342
16350
|
const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-sechead", e), ...t }), Us = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
16343
16351
|
"div",
|
|
@@ -16357,11 +16365,11 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16357
16365
|
className: kt("w-flex", "w-items-center", "w-gap-3", "w-none", e),
|
|
16358
16366
|
...t
|
|
16359
16367
|
}
|
|
16360
|
-
), zi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-full", e), ...t }),
|
|
16368
|
+
), zi = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-full", e), ...t }), T4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-page-head", e), ...t }), F4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-grow", "w-flex-col", "w-gap-1", e), ...t }), I4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-sec", "w-truncate", e), ...t }), V4 = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt("w-secsub", "w-truncate", e), ...t }), js = ({
|
|
16361
16369
|
$first: e,
|
|
16362
16370
|
className: t,
|
|
16363
16371
|
...n
|
|
16364
|
-
}) => /* @__PURE__ */ a("div", { className: kt("w-sec", t), ...n }),
|
|
16372
|
+
}) => /* @__PURE__ */ a("div", { className: kt("w-sec", t), ...n }), z4 = () => {
|
|
16365
16373
|
var M, L;
|
|
16366
16374
|
const { activeWorkspace: e, loading: t, updateWorkspace: n } = ca(), { deleteWorkspace: i } = Wa(), { deployment: s } = Oe(), { toast: o } = Pt(), [m, l] = C((e == null ? void 0 : e.name) || ""), [c, p] = C((e == null ? void 0 : e.description) || ""), [u, f] = C({
|
|
16367
16375
|
mfa_required: !1,
|
|
@@ -16549,13 +16557,13 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16549
16557
|
] })
|
|
16550
16558
|
] })
|
|
16551
16559
|
] });
|
|
16552
|
-
},
|
|
16560
|
+
}, D4 = ({
|
|
16553
16561
|
onClose: e,
|
|
16554
16562
|
onSuccess: t,
|
|
16555
16563
|
roles: n,
|
|
16556
16564
|
triggerRef: i
|
|
16557
16565
|
}) => {
|
|
16558
|
-
const s =
|
|
16566
|
+
const s = j(null), [o, m] = C(""), [l, c] = C(null), [p, u] = C(!1), [f, h] = C(!1), { toast: g } = Pt(), { inviteMember: v } = ca(), w = St({
|
|
16559
16567
|
contentRef: s,
|
|
16560
16568
|
triggerRef: i ?? { current: null },
|
|
16561
16569
|
isOpen: f,
|
|
@@ -16667,7 +16675,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16667
16675
|
]
|
|
16668
16676
|
}
|
|
16669
16677
|
) : null;
|
|
16670
|
-
},
|
|
16678
|
+
}, U4 = () => {
|
|
16671
16679
|
const {
|
|
16672
16680
|
activeWorkspace: e,
|
|
16673
16681
|
getMembers: t,
|
|
@@ -16675,7 +16683,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16675
16683
|
removeMember: i,
|
|
16676
16684
|
addMemberRole: s,
|
|
16677
16685
|
removeMemberRole: o
|
|
16678
|
-
} = ca(), { session: m } = gt(), { toast: l } = Pt(), [c, p] = C(""), [u, f] = C(1), [h] = C(10), [g, v] = C(""), [w, y] = C(!1), x =
|
|
16686
|
+
} = ca(), { session: m } = gt(), { toast: l } = Pt(), [c, p] = C(""), [u, f] = C(1), [h] = C(10), [g, v] = C(""), [w, y] = C(!1), x = j(null);
|
|
16679
16687
|
X(() => {
|
|
16680
16688
|
const R = setTimeout(() => {
|
|
16681
16689
|
v(c), f(1);
|
|
@@ -16730,7 +16738,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16730
16738
|
] })
|
|
16731
16739
|
] }),
|
|
16732
16740
|
w && /* @__PURE__ */ a(
|
|
16733
|
-
|
|
16741
|
+
D4,
|
|
16734
16742
|
{
|
|
16735
16743
|
onClose: () => y(!1),
|
|
16736
16744
|
onSuccess: () => {
|
|
@@ -16754,7 +16762,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16754
16762
|
] }) }),
|
|
16755
16763
|
/* @__PURE__ */ a(Wt, { children: E.map((R) => /* @__PURE__ */ d(ht, { children: [
|
|
16756
16764
|
/* @__PURE__ */ a(st, { children: /* @__PURE__ */ a(
|
|
16757
|
-
|
|
16765
|
+
W4,
|
|
16758
16766
|
{
|
|
16759
16767
|
member: R,
|
|
16760
16768
|
session: m
|
|
@@ -16764,7 +16772,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16764
16772
|
R.created_at
|
|
16765
16773
|
).toLocaleDateString() }),
|
|
16766
16774
|
/* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(
|
|
16767
|
-
|
|
16775
|
+
B4,
|
|
16768
16776
|
{
|
|
16769
16777
|
member: R,
|
|
16770
16778
|
roles: M,
|
|
@@ -16806,7 +16814,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16806
16814
|
)
|
|
16807
16815
|
] })
|
|
16808
16816
|
] }) : /* @__PURE__ */ a(Re, {});
|
|
16809
|
-
},
|
|
16817
|
+
}, W4 = ({ member: e, session: t, subtitle: n }) => {
|
|
16810
16818
|
var m, l, c;
|
|
16811
16819
|
const i = e.public_user_data || e.user, s = (i == null ? void 0 : i.id) === ((m = t == null ? void 0 : t.active_signin) == null ? void 0 : m.user_id), o = (p = "", u = "") => `${p[0] || ""}${u[0] || ""} `.toUpperCase();
|
|
16812
16820
|
return /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-3", children: [
|
|
@@ -16825,7 +16833,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16825
16833
|
] })
|
|
16826
16834
|
] })
|
|
16827
16835
|
] });
|
|
16828
|
-
},
|
|
16836
|
+
}, B4 = ({ member: e, roles: t, onToggle: n, onRemove: i }) => {
|
|
16829
16837
|
var m;
|
|
16830
16838
|
const s = e.roles || [], o = (l) => s.some((c) => c.id === l);
|
|
16831
16839
|
return /* @__PURE__ */ d(gr, { children: [
|
|
@@ -16857,21 +16865,21 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16857
16865
|
l.id
|
|
16858
16866
|
);
|
|
16859
16867
|
}),
|
|
16860
|
-
/* @__PURE__ */ a(
|
|
16868
|
+
/* @__PURE__ */ a(n4, {}),
|
|
16861
16869
|
/* @__PURE__ */ a(Ca, { $destructive: !0, onClick: i, children: /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-2", children: [
|
|
16862
16870
|
/* @__PURE__ */ a(Ei, { size: 14 }),
|
|
16863
16871
|
" Remove Member"
|
|
16864
16872
|
] }) })
|
|
16865
16873
|
] })
|
|
16866
16874
|
] });
|
|
16867
|
-
},
|
|
16875
|
+
}, j4 = ({
|
|
16868
16876
|
onClose: e,
|
|
16869
16877
|
onSuccess: t,
|
|
16870
16878
|
roles: n,
|
|
16871
16879
|
createInvitation: i,
|
|
16872
16880
|
triggerRef: s
|
|
16873
16881
|
}) => {
|
|
16874
|
-
const o =
|
|
16882
|
+
const o = j(null), [m, l] = C(""), [c, p] = C(
|
|
16875
16883
|
n[0] || null
|
|
16876
16884
|
), [u, f] = C(!1), [h, g] = C(!1), { toast: v } = Pt(), w = St({
|
|
16877
16885
|
contentRef: o,
|
|
@@ -16985,7 +16993,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16985
16993
|
]
|
|
16986
16994
|
}
|
|
16987
16995
|
) : null;
|
|
16988
|
-
},
|
|
16996
|
+
}, G4 = () => {
|
|
16989
16997
|
const {
|
|
16990
16998
|
activeWorkspace: e,
|
|
16991
16999
|
loading: t,
|
|
@@ -16994,7 +17002,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
16994
17002
|
inviteMember: s,
|
|
16995
17003
|
discardInvitation: o,
|
|
16996
17004
|
resendInvitation: m
|
|
16997
|
-
} = ca(), { toast: l } = Pt(), [c, p] = C(!0), [u, f] = C(!0), [h, g] = C([]), [v, w] = C([]), [y, x] = C(!1), b =
|
|
17005
|
+
} = ca(), { toast: l } = Pt(), [c, p] = C(!0), [u, f] = C(!0), [h, g] = C([]), [v, w] = C([]), [y, x] = C(!1), b = j(null), N = async () => {
|
|
16998
17006
|
if (e) {
|
|
16999
17007
|
p(!0), f(!0);
|
|
17000
17008
|
try {
|
|
@@ -17042,7 +17050,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17042
17050
|
)
|
|
17043
17051
|
] }),
|
|
17044
17052
|
y && /* @__PURE__ */ a(
|
|
17045
|
-
|
|
17053
|
+
j4,
|
|
17046
17054
|
{
|
|
17047
17055
|
onClose: () => x(!1),
|
|
17048
17056
|
onSuccess: () => {
|
|
@@ -17073,7 +17081,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17073
17081
|
/* @__PURE__ */ a(st, { children: ((_ = A.initial_workspace_role) == null ? void 0 : _.name) || ((M = A.initial_organization_role) == null ? void 0 : M.name) || "No role" }),
|
|
17074
17082
|
/* @__PURE__ */ a(st, { children: new Date(A.created_at).toLocaleDateString() }),
|
|
17075
17083
|
/* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(
|
|
17076
|
-
|
|
17084
|
+
q4,
|
|
17077
17085
|
{
|
|
17078
17086
|
onResend: () => k(A.id),
|
|
17079
17087
|
onCancel: () => E(A.id)
|
|
@@ -17083,7 +17091,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17083
17091
|
}) })
|
|
17084
17092
|
] }) }) })
|
|
17085
17093
|
] });
|
|
17086
|
-
},
|
|
17094
|
+
}, q4 = ({ onResend: e, onCancel: t }) => /* @__PURE__ */ d(gr, { children: [
|
|
17087
17095
|
/* @__PURE__ */ a(br, { children: /* @__PURE__ */ a(ir, { children: "•••" }) }),
|
|
17088
17096
|
/* @__PURE__ */ d(vr, { children: [
|
|
17089
17097
|
/* @__PURE__ */ d(Ca, { onClick: e, children: [
|
|
@@ -17102,7 +17110,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17102
17110
|
triggerRef: i
|
|
17103
17111
|
}) => {
|
|
17104
17112
|
var A, _;
|
|
17105
|
-
const s =
|
|
17113
|
+
const s = j(null), [o, m] = C((n == null ? void 0 : n.name) || ""), [l, c] = C((n == null ? void 0 : n.permissions) || []), [p, u] = C(!1), [f, h] = C(!1), { deployment: g } = Oe(), { toast: v } = Pt(), w = St({
|
|
17106
17114
|
contentRef: s,
|
|
17107
17115
|
triggerRef: i ?? { current: null },
|
|
17108
17116
|
isOpen: f,
|
|
@@ -17221,7 +17229,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17221
17229
|
]
|
|
17222
17230
|
}
|
|
17223
17231
|
) : null;
|
|
17224
|
-
},
|
|
17232
|
+
}, K4 = () => {
|
|
17225
17233
|
var E;
|
|
17226
17234
|
const {
|
|
17227
17235
|
activeWorkspace: e,
|
|
@@ -17229,7 +17237,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17229
17237
|
getRoles: n,
|
|
17230
17238
|
createRole: i,
|
|
17231
17239
|
deleteRole: s
|
|
17232
|
-
} = ca(), { deployment: o } = Oe(), { toast: m } = Pt(), [l, c] = C({ isOpen: !1 }), [p, u] = C(null), [f, h] = C(null), g =
|
|
17240
|
+
} = ca(), { deployment: o } = Oe(), { toast: m } = Pt(), [l, c] = C({ isOpen: !1 }), [p, u] = C(null), [f, h] = C(null), g = j(null), v = j(/* @__PURE__ */ new Map()), {
|
|
17233
17241
|
data: w = [],
|
|
17234
17242
|
isLoading: y,
|
|
17235
17243
|
mutate: x
|
|
@@ -17297,7 +17305,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17297
17305
|
!bi(k) && " • Cannot be edited or deleted"
|
|
17298
17306
|
] }) }),
|
|
17299
17307
|
/* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(
|
|
17300
|
-
|
|
17308
|
+
Y4,
|
|
17301
17309
|
{
|
|
17302
17310
|
role: k,
|
|
17303
17311
|
onEdit: (_) => c({ isOpen: !0, role: k, triggerElement: _ }),
|
|
@@ -17332,7 +17340,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17332
17340
|
}
|
|
17333
17341
|
)
|
|
17334
17342
|
] });
|
|
17335
|
-
},
|
|
17343
|
+
}, Y4 = ({
|
|
17336
17344
|
role: e,
|
|
17337
17345
|
onEdit: t,
|
|
17338
17346
|
onDelete: n,
|
|
@@ -17370,9 +17378,9 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17370
17378
|
"aria-label": "Deployment roles cannot be edited",
|
|
17371
17379
|
children: "•••"
|
|
17372
17380
|
}
|
|
17373
|
-
),
|
|
17381
|
+
), Q4 = (e) => (e || "").slice(0, 2).toUpperCase() || "W", J4 = () => {
|
|
17374
17382
|
var y, x;
|
|
17375
|
-
const { activeWorkspace: e, loading: t, updateWorkspace: n } = ca(), { deployment: i } = Oe(), [s, o] = C("general"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h =
|
|
17383
|
+
const { activeWorkspace: e, loading: t, updateWorkspace: n } = ca(), { deployment: i } = Oe(), [s, o] = C("general"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
|
|
17376
17384
|
(b, N = "info") => {
|
|
17377
17385
|
l(b), p(N), setTimeout(() => l(null), 3e3);
|
|
17378
17386
|
},
|
|
@@ -17402,13 +17410,13 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17402
17410
|
return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(Ds, { className: "w-items-center w-justify-center", children: /* @__PURE__ */ a(Re, {}) }) });
|
|
17403
17411
|
if (!e) return null;
|
|
17404
17412
|
const w = (y = e.organization) == null ? void 0 : y.name;
|
|
17405
|
-
return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a(
|
|
17413
|
+
return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ a($4, { children: /* @__PURE__ */ a(
|
|
17406
17414
|
Ti.Provider,
|
|
17407
17415
|
{
|
|
17408
17416
|
value: { screen: null, setScreen: () => {
|
|
17409
17417
|
}, toast: g },
|
|
17410
17418
|
children: /* @__PURE__ */ d(Ds, { className: "w-relative", children: [
|
|
17411
|
-
/* @__PURE__ */ d(
|
|
17419
|
+
/* @__PURE__ */ d(T4, { children: [
|
|
17412
17420
|
/* @__PURE__ */ d(
|
|
17413
17421
|
"button",
|
|
17414
17422
|
{
|
|
@@ -17423,7 +17431,7 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17423
17431
|
title: "Change logo",
|
|
17424
17432
|
"aria-label": "Change workspace logo",
|
|
17425
17433
|
children: [
|
|
17426
|
-
e.image_url ? /* @__PURE__ */ a("img", { src: e.image_url, alt: e.name }) :
|
|
17434
|
+
e.image_url ? /* @__PURE__ */ a("img", { src: e.image_url, alt: e.name }) : Q4(e.name),
|
|
17427
17435
|
/* @__PURE__ */ a("span", { className: "w-avatar-veil", children: u ? /* @__PURE__ */ a(Re, { size: 14 }) : /* @__PURE__ */ a(cr, { size: 16 }) })
|
|
17428
17436
|
]
|
|
17429
17437
|
}
|
|
@@ -17439,12 +17447,12 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17439
17447
|
onChange: v
|
|
17440
17448
|
}
|
|
17441
17449
|
),
|
|
17442
|
-
/* @__PURE__ */ d(
|
|
17443
|
-
/* @__PURE__ */ a(
|
|
17444
|
-
/* @__PURE__ */ a(
|
|
17450
|
+
/* @__PURE__ */ d(F4, { children: [
|
|
17451
|
+
/* @__PURE__ */ a(I4, { children: e.name }),
|
|
17452
|
+
/* @__PURE__ */ a(V4, { children: w ? `${w} · Workspace settings` : "Workspace settings" })
|
|
17445
17453
|
] })
|
|
17446
17454
|
] }),
|
|
17447
|
-
/* @__PURE__ */ a(
|
|
17455
|
+
/* @__PURE__ */ a(O4, { children: /* @__PURE__ */ d(Z4, { children: [
|
|
17448
17456
|
/* @__PURE__ */ a(
|
|
17449
17457
|
Un,
|
|
17450
17458
|
{
|
|
@@ -17490,11 +17498,11 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17490
17498
|
}
|
|
17491
17499
|
)
|
|
17492
17500
|
] }) }),
|
|
17493
|
-
/* @__PURE__ */ d(
|
|
17494
|
-
s === "general" && /* @__PURE__ */ a(
|
|
17495
|
-
s === "members" && /* @__PURE__ */ a(
|
|
17496
|
-
s === "invitations" && /* @__PURE__ */ a(
|
|
17497
|
-
s === "roles" && /* @__PURE__ */ a(
|
|
17501
|
+
/* @__PURE__ */ d(H4, { children: [
|
|
17502
|
+
s === "general" && /* @__PURE__ */ a(z4, {}),
|
|
17503
|
+
s === "members" && /* @__PURE__ */ a(U4, {}),
|
|
17504
|
+
s === "invitations" && /* @__PURE__ */ a(G4, {}),
|
|
17505
|
+
s === "roles" && /* @__PURE__ */ a(K4, {})
|
|
17498
17506
|
] }),
|
|
17499
17507
|
m && /* @__PURE__ */ d(
|
|
17500
17508
|
"div",
|
|
@@ -17521,12 +17529,12 @@ const zc = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: kt(
|
|
|
17521
17529
|
showCloseButton: c
|
|
17522
17530
|
}) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { className: "w-dialog--panel", children: [
|
|
17523
17531
|
i && /* @__PURE__ */ a(Xe.Header, { showCloseButton: c, children: s || n }),
|
|
17524
|
-
m || l || /* @__PURE__ */ a(
|
|
17532
|
+
m || l || /* @__PURE__ */ a(J4, {}),
|
|
17525
17533
|
o && /* @__PURE__ */ a(Xe.Footer, { children: o })
|
|
17526
|
-
] }) }) }),
|
|
17534
|
+
] }) }) }), X4 = ["organization:admin"], em = [
|
|
17527
17535
|
"organization:admin",
|
|
17528
17536
|
"organization:manage"
|
|
17529
|
-
],
|
|
17537
|
+
], tm = ["workspace:admin"], am = [
|
|
17530
17538
|
"workspace:admin",
|
|
17531
17539
|
"workspace:manage"
|
|
17532
17540
|
];
|
|
@@ -17541,10 +17549,10 @@ function Uc(e, t) {
|
|
|
17541
17549
|
) : !1;
|
|
17542
17550
|
}
|
|
17543
17551
|
function Wc(e) {
|
|
17544
|
-
return Uc(e,
|
|
17552
|
+
return Uc(e, em);
|
|
17545
17553
|
}
|
|
17546
|
-
function
|
|
17547
|
-
return Uc(e,
|
|
17554
|
+
function zp(e) {
|
|
17555
|
+
return Uc(e, X4);
|
|
17548
17556
|
}
|
|
17549
17557
|
function Bc(e, t) {
|
|
17550
17558
|
return e != null && e.roles ? e.roles.some(
|
|
@@ -17557,14 +17565,14 @@ function Bc(e, t) {
|
|
|
17557
17565
|
) : !1;
|
|
17558
17566
|
}
|
|
17559
17567
|
function jc(e) {
|
|
17560
|
-
return Bc(e,
|
|
17568
|
+
return Bc(e, am);
|
|
17561
17569
|
}
|
|
17562
|
-
function
|
|
17563
|
-
return Bc(e,
|
|
17570
|
+
function Dp(e) {
|
|
17571
|
+
return Bc(e, tm);
|
|
17564
17572
|
}
|
|
17565
|
-
const
|
|
17573
|
+
const nm = ({ showPersonal: e = !0 }) => {
|
|
17566
17574
|
var Fe, fe, K;
|
|
17567
|
-
const [t, n] = C(!1), [i, s] = C(!1), [o, m] = C(/* @__PURE__ */ new Set()), l =
|
|
17575
|
+
const [t, n] = C(!1), [i, s] = C(!1), [o, m] = C(/* @__PURE__ */ new Set()), l = j(null), c = j(null), p = St({ triggerRef: l, isOpen: t, minWidth: 300 }), u = ta(!1), f = ta(!1), h = ta(!1), g = ta(!1), [v, w] = C(null), [y, x] = C(null), b = Rn(), { organizationMemberships: N, loading: E, refetch: k } = Ua(), { activeOrganization: A, activeMembership: _, leave: M } = Da(), { activeWorkspace: L, activeMembership: F, leave: R } = ca(), { workspaces: z, loading: O } = Wa(), { session: S, switchOrganization: Z, switchWorkspace: T } = gt(), { deployment: P } = Oe(), $ = P == null ? void 0 : P.b2b_settings.organizations_enabled, H = $ && (P == null ? void 0 : P.b2b_settings.workspaces_enabled), V = P == null ? void 0 : P.b2b_settings.allow_users_to_create_orgs, q = !_, G = ot(() => {
|
|
17568
17576
|
var ne, pe;
|
|
17569
17577
|
return q ? {
|
|
17570
17578
|
name: "Personal account",
|
|
@@ -17651,11 +17659,11 @@ const am = ({ showPersonal: e = !0 }) => {
|
|
|
17651
17659
|
/* @__PURE__ */ a(
|
|
17652
17660
|
"span",
|
|
17653
17661
|
{
|
|
17654
|
-
className: `w-avatar w-avatar--sm${
|
|
17655
|
-
children:
|
|
17662
|
+
className: `w-avatar w-avatar--sm${G.isPersonal, ""}`,
|
|
17663
|
+
children: G.image_url ? /* @__PURE__ */ a("img", { src: G.image_url, alt: G.name }) : G.isPersonal ? /* @__PURE__ */ a(Nn, { size: 11 }) : U(G.name)
|
|
17656
17664
|
}
|
|
17657
17665
|
),
|
|
17658
|
-
/* @__PURE__ */ a("span", { className: "w-grow w-truncate", children:
|
|
17666
|
+
/* @__PURE__ */ a("span", { className: "w-grow w-truncate", children: G.name }),
|
|
17659
17667
|
/* @__PURE__ */ a(W2, { size: 13 })
|
|
17660
17668
|
]
|
|
17661
17669
|
}
|
|
@@ -17878,7 +17886,7 @@ const La = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("span", { ref: n,
|
|
|
17878
17886
|
La.displayName = "TabIcon";
|
|
17879
17887
|
const Qc = ce(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ a("div", { ref: i, className: ye("w-tabbody", e), ...n, children: /* @__PURE__ */ a("div", { className: "w-tabpane", children: t }) }));
|
|
17880
17888
|
Qc.displayName = "TabContent";
|
|
17881
|
-
const
|
|
17889
|
+
const rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17882
17890
|
"button",
|
|
17883
17891
|
{
|
|
17884
17892
|
ref: n,
|
|
@@ -17886,7 +17894,7 @@ const nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17886
17894
|
...t
|
|
17887
17895
|
}
|
|
17888
17896
|
));
|
|
17889
|
-
|
|
17897
|
+
rm.displayName = "IconButton";
|
|
17890
17898
|
const Jc = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17891
17899
|
"div",
|
|
17892
17900
|
{
|
|
@@ -17903,7 +17911,7 @@ const Jc = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17903
17911
|
}
|
|
17904
17912
|
));
|
|
17905
17913
|
Jc.displayName = "HeaderCTAContainer";
|
|
17906
|
-
const
|
|
17914
|
+
const im = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17907
17915
|
"div",
|
|
17908
17916
|
{
|
|
17909
17917
|
ref: n,
|
|
@@ -17911,9 +17919,9 @@ const rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17911
17919
|
...t
|
|
17912
17920
|
}
|
|
17913
17921
|
));
|
|
17914
|
-
|
|
17915
|
-
const
|
|
17916
|
-
|
|
17922
|
+
im.displayName = "ProfileSectionLayout";
|
|
17923
|
+
const sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-none", e), ...t }));
|
|
17924
|
+
sm.displayName = "ProfileImageContainer";
|
|
17917
17925
|
const Xc = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17918
17926
|
"div",
|
|
17919
17927
|
{
|
|
@@ -17947,7 +17955,7 @@ const xr = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n,
|
|
|
17947
17955
|
xr.displayName = "DesktopTableContainer";
|
|
17948
17956
|
const a0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-flex", "w-gap-3", e), ...t }));
|
|
17949
17957
|
a0.displayName = "FormRow";
|
|
17950
|
-
const
|
|
17958
|
+
const om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17951
17959
|
"div",
|
|
17952
17960
|
{
|
|
17953
17961
|
ref: n,
|
|
@@ -17955,8 +17963,8 @@ const sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17955
17963
|
...t
|
|
17956
17964
|
}
|
|
17957
17965
|
));
|
|
17958
|
-
|
|
17959
|
-
const
|
|
17966
|
+
om.displayName = "ConnectionItemRow";
|
|
17967
|
+
const lm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17960
17968
|
"div",
|
|
17961
17969
|
{
|
|
17962
17970
|
ref: n,
|
|
@@ -17964,8 +17972,8 @@ const om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17964
17972
|
...t
|
|
17965
17973
|
}
|
|
17966
17974
|
));
|
|
17967
|
-
|
|
17968
|
-
const
|
|
17975
|
+
lm.displayName = "ConnectionLeft";
|
|
17976
|
+
const cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17969
17977
|
"div",
|
|
17970
17978
|
{
|
|
17971
17979
|
ref: n,
|
|
@@ -17980,7 +17988,7 @@ const lm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17980
17988
|
...t
|
|
17981
17989
|
}
|
|
17982
17990
|
));
|
|
17983
|
-
|
|
17991
|
+
cm.displayName = "ConnectionRight";
|
|
17984
17992
|
const Ui = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17985
17993
|
"div",
|
|
17986
17994
|
{
|
|
@@ -17990,7 +17998,7 @@ const Ui = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17990
17998
|
}
|
|
17991
17999
|
));
|
|
17992
18000
|
Ui.displayName = "IconWrapper";
|
|
17993
|
-
const
|
|
18001
|
+
const dm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
17994
18002
|
"div",
|
|
17995
18003
|
{
|
|
17996
18004
|
ref: n,
|
|
@@ -17998,7 +18006,7 @@ const cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
17998
18006
|
...t
|
|
17999
18007
|
}
|
|
18000
18008
|
));
|
|
18001
|
-
|
|
18009
|
+
dm.displayName = "ButtonActions";
|
|
18002
18010
|
const n0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18003
18011
|
"div",
|
|
18004
18012
|
{
|
|
@@ -18008,8 +18016,8 @@ const n0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18008
18016
|
}
|
|
18009
18017
|
));
|
|
18010
18018
|
n0.displayName = "PageHeader";
|
|
18011
|
-
const
|
|
18012
|
-
|
|
18019
|
+
const um = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-avatar", e), ...t }));
|
|
18020
|
+
um.displayName = "PageHeaderAvatar";
|
|
18013
18021
|
const r0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18014
18022
|
"div",
|
|
18015
18023
|
{
|
|
@@ -18030,7 +18038,7 @@ const s0 = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18030
18038
|
}
|
|
18031
18039
|
));
|
|
18032
18040
|
s0.displayName = "PageHeaderSub";
|
|
18033
|
-
const
|
|
18041
|
+
const mm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18034
18042
|
"div",
|
|
18035
18043
|
{
|
|
18036
18044
|
ref: n,
|
|
@@ -18044,14 +18052,14 @@ const um = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18044
18052
|
...t
|
|
18045
18053
|
}
|
|
18046
18054
|
));
|
|
18047
|
-
|
|
18048
|
-
const
|
|
18049
|
-
|
|
18050
|
-
const
|
|
18051
|
-
|
|
18052
|
-
const
|
|
18053
|
-
|
|
18054
|
-
const
|
|
18055
|
+
mm.displayName = "PageHeaderActions";
|
|
18056
|
+
const pm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-flex-col", "w-gap-4", e), ...t }));
|
|
18057
|
+
pm.displayName = "PageContent";
|
|
18058
|
+
const hm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("section", { ref: n, className: ye("w-card", e), ...t }));
|
|
18059
|
+
hm.displayName = "Card";
|
|
18060
|
+
const fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("section", { ref: n, className: ye("w-card", "w-danger", e), ...t }));
|
|
18061
|
+
fm.displayName = "DangerCard";
|
|
18062
|
+
const wm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18055
18063
|
"div",
|
|
18056
18064
|
{
|
|
18057
18065
|
ref: n,
|
|
@@ -18059,8 +18067,8 @@ const fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18059
18067
|
...t
|
|
18060
18068
|
}
|
|
18061
18069
|
));
|
|
18062
|
-
|
|
18063
|
-
const
|
|
18070
|
+
wm.displayName = "CardHeader";
|
|
18071
|
+
const gm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18064
18072
|
"div",
|
|
18065
18073
|
{
|
|
18066
18074
|
ref: n,
|
|
@@ -18068,12 +18076,12 @@ const wm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18068
18076
|
...t
|
|
18069
18077
|
}
|
|
18070
18078
|
));
|
|
18071
|
-
|
|
18072
|
-
const
|
|
18073
|
-
|
|
18074
|
-
const
|
|
18075
|
-
|
|
18076
|
-
const
|
|
18079
|
+
gm.displayName = "CardTitleBlock";
|
|
18080
|
+
const vm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("h3", { ref: n, className: ye("w-sec", e), ...t }));
|
|
18081
|
+
vm.displayName = "CardTitle";
|
|
18082
|
+
const bm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("p", { ref: n, className: ye("w-secsub", e), ...t }));
|
|
18083
|
+
bm.displayName = "CardSubtitle";
|
|
18084
|
+
const ym = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18077
18085
|
"div",
|
|
18078
18086
|
{
|
|
18079
18087
|
ref: n,
|
|
@@ -18081,12 +18089,12 @@ const bm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18081
18089
|
...t
|
|
18082
18090
|
}
|
|
18083
18091
|
));
|
|
18084
|
-
|
|
18085
|
-
const
|
|
18086
|
-
|
|
18087
|
-
const
|
|
18088
|
-
|
|
18089
|
-
const
|
|
18092
|
+
ym.displayName = "CardActions";
|
|
18093
|
+
const _m = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-hr", e), ...t }));
|
|
18094
|
+
_m.displayName = "CardDivider";
|
|
18095
|
+
const xm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-card-body", e), ...t }));
|
|
18096
|
+
xm.displayName = "CardBody";
|
|
18097
|
+
const km = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18090
18098
|
"div",
|
|
18091
18099
|
{
|
|
18092
18100
|
ref: n,
|
|
@@ -18094,10 +18102,10 @@ const xm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18094
18102
|
...t
|
|
18095
18103
|
}
|
|
18096
18104
|
));
|
|
18097
|
-
|
|
18098
|
-
const
|
|
18099
|
-
|
|
18100
|
-
const
|
|
18105
|
+
km.displayName = "CardFooter";
|
|
18106
|
+
const Nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-list", e), ...t }));
|
|
18107
|
+
Nm.displayName = "RowList";
|
|
18108
|
+
const Am = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18101
18109
|
"div",
|
|
18102
18110
|
{
|
|
18103
18111
|
ref: n,
|
|
@@ -18105,8 +18113,8 @@ const Nm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18105
18113
|
...t
|
|
18106
18114
|
}
|
|
18107
18115
|
));
|
|
18108
|
-
|
|
18109
|
-
const
|
|
18116
|
+
Am.displayName = "RowItem";
|
|
18117
|
+
const Cm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18110
18118
|
"div",
|
|
18111
18119
|
{
|
|
18112
18120
|
ref: n,
|
|
@@ -18114,12 +18122,12 @@ const Am = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18114
18122
|
...t
|
|
18115
18123
|
}
|
|
18116
18124
|
));
|
|
18117
|
-
|
|
18118
|
-
const
|
|
18119
|
-
|
|
18120
|
-
const
|
|
18121
|
-
|
|
18122
|
-
const
|
|
18125
|
+
Cm.displayName = "RowInfo";
|
|
18126
|
+
const Em = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-sec", e), ...t }));
|
|
18127
|
+
Em.displayName = "RowTitle";
|
|
18128
|
+
const Sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-secsub", e), ...t }));
|
|
18129
|
+
Sm.displayName = "RowSub";
|
|
18130
|
+
const Mm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18123
18131
|
"div",
|
|
18124
18132
|
{
|
|
18125
18133
|
ref: n,
|
|
@@ -18127,8 +18135,8 @@ const Sm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18127
18135
|
...t
|
|
18128
18136
|
}
|
|
18129
18137
|
));
|
|
18130
|
-
|
|
18131
|
-
const
|
|
18138
|
+
Mm.displayName = "RowActions";
|
|
18139
|
+
const Lm = {
|
|
18132
18140
|
primary: "w-pill--current",
|
|
18133
18141
|
success: "w-pill--success",
|
|
18134
18142
|
warning: "w-pill--pending",
|
|
@@ -18142,16 +18150,16 @@ const Mm = {
|
|
|
18142
18150
|
}) => /* @__PURE__ */ d(
|
|
18143
18151
|
"span",
|
|
18144
18152
|
{
|
|
18145
|
-
className: ye("w-pill",
|
|
18153
|
+
className: ye("w-pill", Lm[e], t),
|
|
18146
18154
|
...i,
|
|
18147
18155
|
children: [
|
|
18148
18156
|
/* @__PURE__ */ a("span", { className: "w-dot" }),
|
|
18149
18157
|
n
|
|
18150
18158
|
]
|
|
18151
18159
|
}
|
|
18152
|
-
),
|
|
18153
|
-
|
|
18154
|
-
const
|
|
18160
|
+
), Rm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-list", e), ...t }));
|
|
18161
|
+
Rm.displayName = "Table";
|
|
18162
|
+
const Pm = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */ a(
|
|
18155
18163
|
"div",
|
|
18156
18164
|
{
|
|
18157
18165
|
ref: s,
|
|
@@ -18160,10 +18168,10 @@ const Rm = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */
|
|
|
18160
18168
|
...i
|
|
18161
18169
|
}
|
|
18162
18170
|
));
|
|
18163
|
-
|
|
18164
|
-
const
|
|
18165
|
-
|
|
18166
|
-
const
|
|
18171
|
+
Pm.displayName = "TableHead";
|
|
18172
|
+
const $m = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: e, ...t }));
|
|
18173
|
+
$m.displayName = "Th";
|
|
18174
|
+
const Om = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */ a(
|
|
18167
18175
|
"div",
|
|
18168
18176
|
{
|
|
18169
18177
|
ref: s,
|
|
@@ -18172,8 +18180,8 @@ const $m = ce(({ $cols: e, className: t, style: n, ...i }, s) => /* @__PURE__ */
|
|
|
18172
18180
|
...i
|
|
18173
18181
|
}
|
|
18174
18182
|
));
|
|
18175
|
-
|
|
18176
|
-
const
|
|
18183
|
+
Om.displayName = "Tr";
|
|
18184
|
+
const Zm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18177
18185
|
"div",
|
|
18178
18186
|
{
|
|
18179
18187
|
ref: n,
|
|
@@ -18181,8 +18189,8 @@ const Om = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18181
18189
|
...t
|
|
18182
18190
|
}
|
|
18183
18191
|
));
|
|
18184
|
-
|
|
18185
|
-
const
|
|
18192
|
+
Zm.displayName = "Td";
|
|
18193
|
+
const Hm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
18186
18194
|
"div",
|
|
18187
18195
|
{
|
|
18188
18196
|
ref: n,
|
|
@@ -18190,12 +18198,12 @@ const Zm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a(
|
|
|
18190
18198
|
...t
|
|
18191
18199
|
}
|
|
18192
18200
|
));
|
|
18193
|
-
|
|
18194
|
-
const
|
|
18195
|
-
|
|
18196
|
-
const
|
|
18197
|
-
|
|
18198
|
-
const
|
|
18201
|
+
Hm.displayName = "FieldGrid";
|
|
18202
|
+
const Tm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("div", { ref: n, className: ye("w-field", e), ...t }));
|
|
18203
|
+
Tm.displayName = "Field";
|
|
18204
|
+
const Fm = ce(({ className: e, ...t }, n) => /* @__PURE__ */ a("label", { ref: n, className: ye("w-label", e), ...t }));
|
|
18205
|
+
Fm.displayName = "FieldLabel";
|
|
18206
|
+
const Im = () => {
|
|
18199
18207
|
var z, O;
|
|
18200
18208
|
const { deployment: e } = Oe(), { refetch: t } = gt(), { user: n, updateProfile: i, deleteAccount: s } = Ba(), { toast: o } = da(), [m, l] = C(""), [c, p] = C(""), [u, f] = C(""), [h, g] = C(!1), [v, w] = C(!1), [y, x] = C(!1), [b, N] = C("");
|
|
18201
18209
|
X(() => {
|
|
@@ -18349,7 +18357,7 @@ const Fm = () => {
|
|
|
18349
18357
|
existingEmail: s,
|
|
18350
18358
|
triggerRef: o
|
|
18351
18359
|
}) => {
|
|
18352
|
-
const m =
|
|
18360
|
+
const m = j(null), [l, c] = C(!1), { toast: p } = da(), u = St({
|
|
18353
18361
|
contentRef: m,
|
|
18354
18362
|
triggerRef: o ?? { current: null },
|
|
18355
18363
|
isOpen: l,
|
|
@@ -18467,9 +18475,9 @@ const Fm = () => {
|
|
|
18467
18475
|
] })
|
|
18468
18476
|
}
|
|
18469
18477
|
) : null;
|
|
18470
|
-
},
|
|
18478
|
+
}, Vm = () => {
|
|
18471
18479
|
var L, F, R, z;
|
|
18472
|
-
const { deployment: e } = Oe(), { toast: t } = da(), [n, i] = C(""), [s, o] = C(!1), [m, l] = C(null), [c, p] = C(/* @__PURE__ */ new Set()), u =
|
|
18480
|
+
const { deployment: e } = Oe(), { toast: t } = da(), [n, i] = C(""), [s, o] = C(!1), [m, l] = C(null), [c, p] = C(/* @__PURE__ */ new Set()), u = j(null), f = j({}), {
|
|
18473
18481
|
user: h,
|
|
18474
18482
|
createEmailAddress: g,
|
|
18475
18483
|
deleteEmailAddress: v,
|
|
@@ -18637,7 +18645,7 @@ const Fm = () => {
|
|
|
18637
18645
|
triggerRef: o
|
|
18638
18646
|
}) => {
|
|
18639
18647
|
var _;
|
|
18640
|
-
const m =
|
|
18648
|
+
const m = j(null), [l, c] = C(!1), { toast: p } = da(), u = St({
|
|
18641
18649
|
contentRef: m,
|
|
18642
18650
|
triggerRef: o ?? { current: null },
|
|
18643
18651
|
isOpen: l,
|
|
@@ -18755,9 +18763,9 @@ const Fm = () => {
|
|
|
18755
18763
|
] })
|
|
18756
18764
|
}
|
|
18757
18765
|
) : null;
|
|
18758
|
-
},
|
|
18766
|
+
}, zm = () => {
|
|
18759
18767
|
var F, R, z, O;
|
|
18760
|
-
const { deployment: e } = Oe(), { toast: t } = da(), [n, i] = C(""), [s, o] = C(!1), [m, l] = C(null), [c, p] = C(/* @__PURE__ */ new Set()), u =
|
|
18768
|
+
const { deployment: e } = Oe(), { toast: t } = da(), [n, i] = C(""), [s, o] = C(!1), [m, l] = C(null), [c, p] = C(/* @__PURE__ */ new Set()), u = j(null), f = j({}), {
|
|
18761
18769
|
user: h,
|
|
18762
18770
|
createPhoneNumber: g,
|
|
18763
18771
|
deletePhoneNumber: v,
|
|
@@ -18920,7 +18928,7 @@ const Fm = () => {
|
|
|
18920
18928
|
}
|
|
18921
18929
|
)
|
|
18922
18930
|
] });
|
|
18923
|
-
},
|
|
18931
|
+
}, Dm = (e) => /* @__PURE__ */ d(
|
|
18924
18932
|
"svg",
|
|
18925
18933
|
{
|
|
18926
18934
|
width: "800px",
|
|
@@ -18936,15 +18944,15 @@ const Fm = () => {
|
|
|
18936
18944
|
/* @__PURE__ */ a("path", { fill: "#FFBA08", d: "M8.5 8.5H15V15H8.5V8.5z" })
|
|
18937
18945
|
]
|
|
18938
18946
|
}
|
|
18939
|
-
),
|
|
18947
|
+
), Um = {
|
|
18940
18948
|
google_oauth: { icon: /* @__PURE__ */ a(pc, {}), label: "Google" },
|
|
18941
|
-
microsoft_oauth: { icon: /* @__PURE__ */ a(
|
|
18949
|
+
microsoft_oauth: { icon: /* @__PURE__ */ a(Dm, {}), label: "Microsoft" },
|
|
18942
18950
|
github_oauth: { icon: /* @__PURE__ */ a(mc, {}), label: "GitHub" },
|
|
18943
18951
|
gitlab_oauth: { icon: /* @__PURE__ */ a(wc, {}), label: "GitLab" },
|
|
18944
18952
|
linkedin_oauth: { icon: /* @__PURE__ */ a(fc, {}), label: "LinkedIn" },
|
|
18945
18953
|
discord_oauth: { icon: /* @__PURE__ */ a(gc, {}), label: "Discord" },
|
|
18946
18954
|
x_oauth: { icon: /* @__PURE__ */ a(hc, {}), label: "X" }
|
|
18947
|
-
},
|
|
18955
|
+
}, Wm = () => {
|
|
18948
18956
|
const { user: e, disconnectSocialConnection: t, connectSocialAccount: n } = Ba(), { deployment: i } = Oe(), s = (i == null ? void 0 : i.social_connections.filter((l) => l.enabled)) || [], o = (l) => {
|
|
18949
18957
|
n({ provider: l, redirectUri: window.location.href });
|
|
18950
18958
|
}, m = async (l) => {
|
|
@@ -18963,7 +18971,7 @@ const Fm = () => {
|
|
|
18963
18971
|
] }) }),
|
|
18964
18972
|
/* @__PURE__ */ a("div", { className: "w-list", children: s.map((l) => {
|
|
18965
18973
|
var f;
|
|
18966
|
-
const c =
|
|
18974
|
+
const c = Um[l.provider];
|
|
18967
18975
|
if (!c) return null;
|
|
18968
18976
|
const p = ((f = e == null ? void 0 : e.social_connections) == null ? void 0 : f.filter(
|
|
18969
18977
|
(h) => h.provider === l.provider
|
|
@@ -19024,7 +19032,7 @@ const Fm = () => {
|
|
|
19024
19032
|
}) })
|
|
19025
19033
|
] });
|
|
19026
19034
|
};
|
|
19027
|
-
var
|
|
19035
|
+
var Bm = Object.defineProperty, sr = Object.getOwnPropertySymbols, o0 = Object.prototype.hasOwnProperty, l0 = Object.prototype.propertyIsEnumerable, Ys = (e, t, n) => t in e ? Bm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _i = (e, t) => {
|
|
19028
19036
|
for (var n in t || (t = {}))
|
|
19029
19037
|
o0.call(t, n) && Ys(e, n, t[n]);
|
|
19030
19038
|
if (sr)
|
|
@@ -19586,12 +19594,12 @@ var en = za;
|
|
|
19586
19594
|
* Copyright (c) Paul O'Shannessy
|
|
19587
19595
|
* SPDX-License-Identifier: ISC
|
|
19588
19596
|
*/
|
|
19589
|
-
var
|
|
19597
|
+
var jm = {
|
|
19590
19598
|
L: en.QrCode.Ecc.LOW,
|
|
19591
19599
|
M: en.QrCode.Ecc.MEDIUM,
|
|
19592
19600
|
Q: en.QrCode.Ecc.QUARTILE,
|
|
19593
19601
|
H: en.QrCode.Ecc.HIGH
|
|
19594
|
-
}, c0 = 128, d0 = "L", u0 = "#FFFFFF", m0 = "#000000", p0 = !1, h0 = 1,
|
|
19602
|
+
}, c0 = 128, d0 = "L", u0 = "#FFFFFF", m0 = "#000000", p0 = !1, h0 = 1, Gm = 4, qm = 0, Km = 0.1;
|
|
19595
19603
|
function f0(e, t = 0) {
|
|
19596
19604
|
const n = [];
|
|
19597
19605
|
return e.forEach(function(i, s) {
|
|
@@ -19618,10 +19626,10 @@ function f0(e, t = 0) {
|
|
|
19618
19626
|
function w0(e, t) {
|
|
19619
19627
|
return e.slice().map((n, i) => i < t.y || i >= t.y + t.h ? n : n.map((s, o) => o < t.x || o >= t.x + t.w ? s : !1));
|
|
19620
19628
|
}
|
|
19621
|
-
function
|
|
19629
|
+
function Ym(e, t, n, i) {
|
|
19622
19630
|
if (i == null)
|
|
19623
19631
|
return null;
|
|
19624
|
-
const s = e.length + n * 2, o = Math.floor(t *
|
|
19632
|
+
const s = e.length + n * 2, o = Math.floor(t * Km), m = s / t, l = (i.width || o) * m, c = (i.height || o) * m, p = i.x == null ? e.length / 2 - l / 2 : i.x * m, u = i.y == null ? e.length / 2 - c / 2 : i.y * m, f = i.opacity == null ? 1 : i.opacity;
|
|
19625
19633
|
let h = null;
|
|
19626
19634
|
if (i.excavate) {
|
|
19627
19635
|
let v = Math.floor(p), w = Math.floor(u), y = Math.ceil(l + p - v), x = Math.ceil(c + u - w);
|
|
@@ -19630,8 +19638,8 @@ function Km(e, t, n, i) {
|
|
|
19630
19638
|
const g = i.crossOrigin;
|
|
19631
19639
|
return { x: p, y: u, h: c, w: l, excavation: h, opacity: f, crossOrigin: g };
|
|
19632
19640
|
}
|
|
19633
|
-
function
|
|
19634
|
-
return t != null ? Math.max(Math.floor(t), 0) : e ?
|
|
19641
|
+
function Qm(e, t) {
|
|
19642
|
+
return t != null ? Math.max(Math.floor(t), 0) : e ? Gm : qm;
|
|
19635
19643
|
}
|
|
19636
19644
|
function g0({
|
|
19637
19645
|
value: e,
|
|
@@ -19647,7 +19655,7 @@ function g0({
|
|
|
19647
19655
|
const v = (Array.isArray(e) ? e : [e]).reduce((w, y) => (w.push(...en.QrSegment.makeSegments(y)), w), []);
|
|
19648
19656
|
return en.QrCode.encodeSegments(
|
|
19649
19657
|
v,
|
|
19650
|
-
|
|
19658
|
+
jm[t],
|
|
19651
19659
|
n,
|
|
19652
19660
|
void 0,
|
|
19653
19661
|
void 0,
|
|
@@ -19656,7 +19664,7 @@ function g0({
|
|
|
19656
19664
|
}, [e, t, n, l]);
|
|
19657
19665
|
const { cells: p, margin: u, numCells: f, calculatedImageSettings: h } = xe.useMemo(() => {
|
|
19658
19666
|
let g = c.getModules();
|
|
19659
|
-
const v =
|
|
19667
|
+
const v = Qm(i, s), w = g.length + v * 2, y = Ym(
|
|
19660
19668
|
g,
|
|
19661
19669
|
m,
|
|
19662
19670
|
v,
|
|
@@ -19677,14 +19685,14 @@ function g0({
|
|
|
19677
19685
|
calculatedImageSettings: h
|
|
19678
19686
|
};
|
|
19679
19687
|
}
|
|
19680
|
-
var
|
|
19688
|
+
var Jm = (function() {
|
|
19681
19689
|
try {
|
|
19682
19690
|
new Path2D().addPath(new Path2D());
|
|
19683
19691
|
} catch {
|
|
19684
19692
|
return !1;
|
|
19685
19693
|
}
|
|
19686
19694
|
return !0;
|
|
19687
|
-
})(),
|
|
19695
|
+
})(), Xm = xe.forwardRef(
|
|
19688
19696
|
function(t, n) {
|
|
19689
19697
|
const i = t, {
|
|
19690
19698
|
value: s,
|
|
@@ -19737,9 +19745,9 @@ var Qm = (function() {
|
|
|
19737
19745
|
const H = window.devicePixelRatio || 1;
|
|
19738
19746
|
S.height = S.width = o * H;
|
|
19739
19747
|
const V = o / F * H;
|
|
19740
|
-
Z.scale(V, V), Z.fillStyle = l, Z.fillRect(0, 0, F, F), Z.fillStyle = c,
|
|
19748
|
+
Z.scale(V, V), Z.fillStyle = l, Z.fillRect(0, 0, F, F), Z.fillStyle = c, Jm ? Z.fill(new Path2D(f0(T, M))) : L.forEach(function(q, G) {
|
|
19741
19749
|
q.forEach(function(U, Y) {
|
|
19742
|
-
U && Z.fillRect(Y + M,
|
|
19750
|
+
U && Z.fillRect(Y + M, G + M, 1, 1);
|
|
19743
19751
|
});
|
|
19744
19752
|
}), R && (Z.globalAlpha = R.opacity), $ && Z.drawImage(
|
|
19745
19753
|
P,
|
|
@@ -19778,7 +19786,7 @@ var Qm = (function() {
|
|
|
19778
19786
|
), O);
|
|
19779
19787
|
}
|
|
19780
19788
|
);
|
|
19781
|
-
|
|
19789
|
+
Xm.displayName = "QRCodeCanvas";
|
|
19782
19790
|
var Wi = xe.forwardRef(
|
|
19783
19791
|
function(t, n) {
|
|
19784
19792
|
const i = t, {
|
|
@@ -19863,7 +19871,7 @@ const Qs = ({
|
|
|
19863
19871
|
triggerRef: n,
|
|
19864
19872
|
isSetup: i = !1
|
|
19865
19873
|
}) => {
|
|
19866
|
-
const s =
|
|
19874
|
+
const s = j(null), [o, m] = C(!1), [l, c] = C(""), [p, u] = C(""), [f, h] = C(""), [g, v] = C(!1), [w, y] = C(!1), [x, b] = C(!1), [N, E] = C(!1), [k, A] = C({}), _ = St({
|
|
19867
19875
|
contentRef: s,
|
|
19868
19876
|
triggerRef: n ?? { current: null },
|
|
19869
19877
|
isOpen: o,
|
|
@@ -20017,12 +20025,12 @@ const Qs = ({
|
|
|
20017
20025
|
]
|
|
20018
20026
|
}
|
|
20019
20027
|
) : null;
|
|
20020
|
-
},
|
|
20028
|
+
}, e6 = ({
|
|
20021
20029
|
onClose: e,
|
|
20022
20030
|
onRemovePassword: t,
|
|
20023
20031
|
triggerRef: n
|
|
20024
20032
|
}) => {
|
|
20025
|
-
const i =
|
|
20033
|
+
const i = j(null), [s, o] = C(!1), [m, l] = C(""), [c, p] = C(!1), { toast: u } = da(), f = St({
|
|
20026
20034
|
contentRef: i,
|
|
20027
20035
|
triggerRef: n ?? { current: null },
|
|
20028
20036
|
isOpen: s,
|
|
@@ -20107,13 +20115,13 @@ const Qs = ({
|
|
|
20107
20115
|
]
|
|
20108
20116
|
}
|
|
20109
20117
|
) : null;
|
|
20110
|
-
},
|
|
20118
|
+
}, t6 = ({
|
|
20111
20119
|
onClose: e,
|
|
20112
20120
|
onSetupTOTP: t,
|
|
20113
20121
|
onVerifyTOTP: n,
|
|
20114
20122
|
triggerRef: i
|
|
20115
20123
|
}) => {
|
|
20116
|
-
const s =
|
|
20124
|
+
const s = j(null), [o, m] = C("qr"), [l, c] = C(""), [p, u] = C(""), [f, h] = C(["", ""]), [g, v] = C(!1), [w, y] = C(!1), { toast: x } = da(), b = St({
|
|
20117
20125
|
contentRef: s,
|
|
20118
20126
|
triggerRef: i ?? { current: null },
|
|
20119
20127
|
isOpen: w,
|
|
@@ -20262,14 +20270,14 @@ const Qs = ({
|
|
|
20262
20270
|
] })
|
|
20263
20271
|
}
|
|
20264
20272
|
) : null;
|
|
20265
|
-
},
|
|
20273
|
+
}, a6 = ({
|
|
20266
20274
|
codes: e,
|
|
20267
20275
|
onClose: t,
|
|
20268
20276
|
onCopy: n,
|
|
20269
20277
|
onDownload: i,
|
|
20270
20278
|
triggerRef: s
|
|
20271
20279
|
}) => {
|
|
20272
|
-
const o =
|
|
20280
|
+
const o = j(null), [m, l] = C(!1), c = St({
|
|
20273
20281
|
contentRef: o,
|
|
20274
20282
|
triggerRef: s ?? { current: null },
|
|
20275
20283
|
isOpen: m,
|
|
@@ -20339,12 +20347,12 @@ const Qs = ({
|
|
|
20339
20347
|
] })
|
|
20340
20348
|
}
|
|
20341
20349
|
) : null;
|
|
20342
|
-
},
|
|
20350
|
+
}, n6 = ({
|
|
20343
20351
|
onClose: e,
|
|
20344
20352
|
onAddPasskey: t,
|
|
20345
20353
|
triggerRef: n
|
|
20346
20354
|
}) => {
|
|
20347
|
-
const i =
|
|
20355
|
+
const i = j(null), [s, o] = C(!1), [m, l] = C(""), [c, p] = C(!1), [u, f] = C(""), h = St({
|
|
20348
20356
|
contentRef: i,
|
|
20349
20357
|
triggerRef: n ?? { current: null },
|
|
20350
20358
|
isOpen: s,
|
|
@@ -20420,9 +20428,9 @@ const Qs = ({
|
|
|
20420
20428
|
]
|
|
20421
20429
|
}
|
|
20422
20430
|
) : null;
|
|
20423
|
-
},
|
|
20431
|
+
}, r6 = ({
|
|
20424
20432
|
children: e
|
|
20425
|
-
}) => /* @__PURE__ */ a("div", { className: "w-eyebrow", children: e }),
|
|
20433
|
+
}) => /* @__PURE__ */ a("div", { className: "w-eyebrow", children: e }), i6 = () => {
|
|
20426
20434
|
var pa, ha, fa, wa, me, Ce, He;
|
|
20427
20435
|
const { deployment: e } = Oe(), {
|
|
20428
20436
|
user: t,
|
|
@@ -20445,7 +20453,7 @@ const Qs = ({
|
|
|
20445
20453
|
} catch (Ee) {
|
|
20446
20454
|
g(Ee.message || "Failed to update 2FA requirement", "error");
|
|
20447
20455
|
}
|
|
20448
|
-
}, [N, E] = C(!1), [k, A] = C(!1), [_, M] = C(!1), [L, F] = C(!1), R =
|
|
20456
|
+
}, [N, E] = C(!1), [k, A] = C(!1), [_, M] = C(!1), [L, F] = C(!1), R = j(null), z = j(null), O = j(null), S = j(null), [Z, T] = C([]), [P, $] = C(!1), [H, V] = C(!1), [q, G] = C(!1), [U, Y] = C(!1), [ee, we] = C(null), _e = j(null), [de, oe] = C("table"), [ue, Ie] = C(""), [J, dt] = C(""), [qe, Qe] = C(""), [Fe, fe] = C([
|
|
20449
20457
|
"",
|
|
20450
20458
|
""
|
|
20451
20459
|
]), [K, Q] = C([]), [ne, pe] = C(!1), [Ze, W] = C(!1), [B] = C(!1), [ke, Ne] = C(!1), Ae = (pa = e == null ? void 0 : e.auth_settings) == null ? void 0 : pa.auth_factors_enabled, ft = (fa = (ha = e == null ? void 0 : e.auth_settings) == null ? void 0 : ha.password) == null ? void 0 : fa.enabled;
|
|
@@ -20757,7 +20765,7 @@ const Qs = ({
|
|
|
20757
20765
|
] }) : /* @__PURE__ */ a(se, { children: Mt.length ? /* @__PURE__ */ a("div", { children: Mt.map((ae, Ee) => {
|
|
20758
20766
|
const it = Ee > 0 ? Mt[Ee - 1].group : null, Ke = ae.group !== it, Lt = Mt[Ee + 1], Rt = Lt && Lt.group === ae.group;
|
|
20759
20767
|
return /* @__PURE__ */ d("div", { children: [
|
|
20760
|
-
Ke && /* @__PURE__ */ a(
|
|
20768
|
+
Ke && /* @__PURE__ */ a(r6, { $first: Ee === 0, children: ae.group === "sign-in" ? "Sign-in methods" : "Recovery" }),
|
|
20761
20769
|
/* @__PURE__ */ d(Xc, { children: [
|
|
20762
20770
|
/* @__PURE__ */ d(e0, { children: [
|
|
20763
20771
|
/* @__PURE__ */ a("div", { className: "w-flex w-items-center w-wrap w-gap-2 w-sec", children: /* @__PURE__ */ a("span", { children: ae.name }) }),
|
|
@@ -20812,7 +20820,7 @@ const Qs = ({
|
|
|
20812
20820
|
}
|
|
20813
20821
|
),
|
|
20814
20822
|
_ && /* @__PURE__ */ a(
|
|
20815
|
-
|
|
20823
|
+
e6,
|
|
20816
20824
|
{
|
|
20817
20825
|
triggerRef: O,
|
|
20818
20826
|
onClose: () => M(
|
|
@@ -20872,7 +20880,7 @@ const Qs = ({
|
|
|
20872
20880
|
}
|
|
20873
20881
|
),
|
|
20874
20882
|
N && /* @__PURE__ */ a(
|
|
20875
|
-
|
|
20883
|
+
t6,
|
|
20876
20884
|
{
|
|
20877
20885
|
triggerRef: R,
|
|
20878
20886
|
onClose: () => E(
|
|
@@ -20944,7 +20952,7 @@ const Qs = ({
|
|
|
20944
20952
|
}
|
|
20945
20953
|
),
|
|
20946
20954
|
L && /* @__PURE__ */ a(
|
|
20947
|
-
|
|
20955
|
+
a6,
|
|
20948
20956
|
{
|
|
20949
20957
|
triggerRef: S,
|
|
20950
20958
|
codes: K,
|
|
@@ -20975,7 +20983,7 @@ const Qs = ({
|
|
|
20975
20983
|
{
|
|
20976
20984
|
$outline: !0,
|
|
20977
20985
|
$size: "sm",
|
|
20978
|
-
onClick: () =>
|
|
20986
|
+
onClick: () => G(
|
|
20979
20987
|
!q
|
|
20980
20988
|
),
|
|
20981
20989
|
children: [
|
|
@@ -21015,7 +21023,7 @@ const Qs = ({
|
|
|
21015
21023
|
}
|
|
21016
21024
|
),
|
|
21017
21025
|
U && /* @__PURE__ */ a(
|
|
21018
|
-
|
|
21026
|
+
n6,
|
|
21019
21027
|
{
|
|
21020
21028
|
triggerRef: _e,
|
|
21021
21029
|
onClose: () => Y(
|
|
@@ -21093,7 +21101,7 @@ const Qs = ({
|
|
|
21093
21101
|
description: "Contact your administrator to enable security features."
|
|
21094
21102
|
}
|
|
21095
21103
|
) });
|
|
21096
|
-
},
|
|
21104
|
+
}, s6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", ...e, children: [
|
|
21097
21105
|
/* @__PURE__ */ d("defs", { children: [
|
|
21098
21106
|
/* @__PURE__ */ d(
|
|
21099
21107
|
"linearGradient",
|
|
@@ -21199,7 +21207,7 @@ const Qs = ({
|
|
|
21199
21207
|
}
|
|
21200
21208
|
}
|
|
21201
21209
|
)
|
|
21202
|
-
] }),
|
|
21210
|
+
] }), o6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", width: 512, height: 512, viewBox: "0 0 512 512", ...e, children: [
|
|
21203
21211
|
/* @__PURE__ */ d("defs", { children: [
|
|
21204
21212
|
/* @__PURE__ */ d("radialGradient", { id: "g", cx: "210%", cy: "-100%", r: "290%", children: [
|
|
21205
21213
|
/* @__PURE__ */ a("stop", { offset: 0.1, stopColor: "#ffe226" }),
|
|
@@ -21389,7 +21397,7 @@ const Qs = ({
|
|
|
21389
21397
|
d: "M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0 .039.015.136.047.4C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484 2.8-.194 5.592-.429 8.442-.429 45.053 0 84.291 24.77 105.3 61.484-12.832-9.014-35.81-17.917-57.947-14.067 86.441 43.214 63.235 192.026-56.545 186.408a106.743 106.743 0 0 1-31.271-6.031 134.51 134.51 0 0 1-7.059-2.886c-1.356-.618-2.711-1.243-4.05-1.935.048.033.114.07.163.1a144.108 144.108 0 0 1-3.5-1.743c1.124.537 2.18 1.124 3.334 1.639-29.35-15.168-53.584-43.833-56.611-78.643 0 0 11.093-41.335 79.432-41.335 7.388 0 28.509-20.615 28.9-26.593-.089-1.952-41.917-18.59-58.223-34.656-8.713-8.584-12.85-12.723-16.514-15.828a71.355 71.355 0 0 0-6.225-4.7 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.435 26.916c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-.212 1.061-.324 1.586-.452 2.116-2.486 12.853-2.77 15.156-.022.177.021-.176 0 0a279.565 279.565 0 0 0-3.544 33.53c0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746zm-23.841 12.341c.012.085.027.174.04.259l-.008-.026-.032-.233z"
|
|
21390
21398
|
}
|
|
21391
21399
|
)
|
|
21392
|
-
] }),
|
|
21400
|
+
] }), l6 = (e) => /* @__PURE__ */ d(
|
|
21393
21401
|
"svg",
|
|
21394
21402
|
{
|
|
21395
21403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -21532,7 +21540,7 @@ const Qs = ({
|
|
|
21532
21540
|
/* @__PURE__ */ a("path", { d: "m12.967 50.59 23.416-15.752L53.2 12.173z", opacity: 0.243 })
|
|
21533
21541
|
]
|
|
21534
21542
|
}
|
|
21535
|
-
),
|
|
21543
|
+
), c6 = (e) => /* @__PURE__ */ d("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...e, children: [
|
|
21536
21544
|
/* @__PURE__ */ d("defs", { children: [
|
|
21537
21545
|
/* @__PURE__ */ d(
|
|
21538
21546
|
"radialGradient",
|
|
@@ -21698,7 +21706,7 @@ const Qs = ({
|
|
|
21698
21706
|
transform: "translate(-4.6 -5)"
|
|
21699
21707
|
}
|
|
21700
21708
|
)
|
|
21701
|
-
] }),
|
|
21709
|
+
] }), d6 = (e) => /* @__PURE__ */ d(
|
|
21702
21710
|
"svg",
|
|
21703
21711
|
{
|
|
21704
21712
|
width: "20",
|
|
@@ -21720,7 +21728,7 @@ const Qs = ({
|
|
|
21720
21728
|
/* @__PURE__ */ a("path", { d: "M12 8.5c-1.4 0-2.5 1.6-2.5 3.5s1.1 3.5 2.5 3.5 2.5-1.6 2.5-3.5-1.1-3.5-2.5-3.5z", fill: "url(#opera-gradient)" })
|
|
21721
21729
|
]
|
|
21722
21730
|
}
|
|
21723
|
-
),
|
|
21731
|
+
), u6 = (e) => /* @__PURE__ */ d(
|
|
21724
21732
|
"svg",
|
|
21725
21733
|
{
|
|
21726
21734
|
width: "20",
|
|
@@ -21742,7 +21750,7 @@ const Qs = ({
|
|
|
21742
21750
|
/* @__PURE__ */ a("circle", { cx: "12", cy: "16", r: "1", fill: "url(#brave-gradient)" })
|
|
21743
21751
|
]
|
|
21744
21752
|
}
|
|
21745
|
-
),
|
|
21753
|
+
), m6 = () => /* @__PURE__ */ d(
|
|
21746
21754
|
"svg",
|
|
21747
21755
|
{
|
|
21748
21756
|
width: "20",
|
|
@@ -21798,10 +21806,10 @@ const Qs = ({
|
|
|
21798
21806
|
)
|
|
21799
21807
|
]
|
|
21800
21808
|
}
|
|
21801
|
-
),
|
|
21809
|
+
), p6 = ({ browser: e }) => {
|
|
21802
21810
|
const t = (e == null ? void 0 : e.toLowerCase()) || "", n = { width: 20, height: 20 };
|
|
21803
|
-
return t.includes("chrome") ? /* @__PURE__ */ a(
|
|
21804
|
-
},
|
|
21811
|
+
return t.includes("chrome") ? /* @__PURE__ */ a(s6, { ...n }) : t.includes("firefox") ? /* @__PURE__ */ a(o6, { ...n }) : t.includes("safari") ? /* @__PURE__ */ a(l6, { ...n }) : t.includes("edge") ? /* @__PURE__ */ a(c6, { ...n }) : t.includes("opera") ? /* @__PURE__ */ a(d6, { ...n }) : t.includes("brave") ? /* @__PURE__ */ a(u6, { ...n }) : /* @__PURE__ */ a(m6, {});
|
|
21812
|
+
}, h6 = () => {
|
|
21805
21813
|
const { signins: e, removeSignin: t, refetch: n, loading: i } = $1(), { refetch: s } = gt(), { toast: o } = da(), m = e, l = async (p) => {
|
|
21806
21814
|
try {
|
|
21807
21815
|
await t(p), await Promise.all([n(), s()]), o("Session ended successfully", "info");
|
|
@@ -21829,7 +21837,7 @@ const Qs = ({
|
|
|
21829
21837
|
] }) }),
|
|
21830
21838
|
/* @__PURE__ */ a(Wt, { children: m.map((p) => /* @__PURE__ */ d(ht, { children: [
|
|
21831
21839
|
/* @__PURE__ */ a(st, { children: /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-3", children: [
|
|
21832
|
-
/* @__PURE__ */ a(Ui, { children: /* @__PURE__ */ a(
|
|
21840
|
+
/* @__PURE__ */ a(Ui, { children: /* @__PURE__ */ a(p6, { browser: p.browser || "Unknown" }) }),
|
|
21833
21841
|
/* @__PURE__ */ d("div", { className: "w-flex-col w-gap-1", children: [
|
|
21834
21842
|
/* @__PURE__ */ a("div", { children: p.browser || "Unknown Browser" }),
|
|
21835
21843
|
p.device && /* @__PURE__ */ a("div", { className: "w-text-muted", children: p.device })
|
|
@@ -21861,9 +21869,9 @@ const Qs = ({
|
|
|
21861
21869
|
description: "You don't have any active sessions at the moment."
|
|
21862
21870
|
}
|
|
21863
21871
|
) });
|
|
21864
|
-
},
|
|
21872
|
+
}, f6 = (e, t) => `${(e == null ? void 0 : e[0]) || ""}${(t == null ? void 0 : t[0]) || ""}`.toUpperCase() || "U", w6 = () => {
|
|
21865
21873
|
var E, k, A, _, M, L, F, R;
|
|
21866
|
-
const { loading: e, user: t, updateProfilePicture: n } = Ba(), { deployment: i } = Oe(), [s, o] = C("profile"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h =
|
|
21874
|
+
const { loading: e, user: t, updateProfilePicture: n } = Ba(), { deployment: i } = Oe(), [s, o] = C("profile"), [m, l] = C(null), [c, p] = C("info"), [u, f] = C(!1), h = j(null), g = I(
|
|
21867
21875
|
(z, O = "info") => {
|
|
21868
21876
|
l(z), p(O), setTimeout(() => l(null), 3e3);
|
|
21869
21877
|
},
|
|
@@ -21913,7 +21921,7 @@ const Qs = ({
|
|
|
21913
21921
|
title: "Change profile picture",
|
|
21914
21922
|
"aria-label": "Change profile picture",
|
|
21915
21923
|
children: [
|
|
21916
|
-
/* @__PURE__ */ a("span", { className: "w-avatar w-avatar--lg", children: t.profile_picture_url ? /* @__PURE__ */ a("img", { src: t.profile_picture_url, alt: "" }) :
|
|
21924
|
+
/* @__PURE__ */ a("span", { className: "w-avatar w-avatar--lg", children: t.profile_picture_url ? /* @__PURE__ */ a("img", { src: t.profile_picture_url, alt: "" }) : f6(t.first_name, t.last_name) }),
|
|
21917
21925
|
/* @__PURE__ */ a("span", { className: "w-avatar-veil", children: u ? /* @__PURE__ */ a(Re, { size: 14 }) : /* @__PURE__ */ a(cr, { size: 16 }) })
|
|
21918
21926
|
]
|
|
21919
21927
|
}
|
|
@@ -22002,12 +22010,12 @@ const Qs = ({
|
|
|
22002
22010
|
)
|
|
22003
22011
|
] }) }),
|
|
22004
22012
|
/* @__PURE__ */ d(Qc, { children: [
|
|
22005
|
-
s === "profile" && /* @__PURE__ */ a(
|
|
22006
|
-
s === "email" && y && /* @__PURE__ */ a(
|
|
22007
|
-
s === "phone" && x && /* @__PURE__ */ a(
|
|
22008
|
-
s === "social" && b && /* @__PURE__ */ a(
|
|
22009
|
-
s === "security" && N && /* @__PURE__ */ a(
|
|
22010
|
-
s === "sessions" && /* @__PURE__ */ a(
|
|
22013
|
+
s === "profile" && /* @__PURE__ */ a(Im, {}),
|
|
22014
|
+
s === "email" && y && /* @__PURE__ */ a(Vm, {}),
|
|
22015
|
+
s === "phone" && x && /* @__PURE__ */ a(zm, {}),
|
|
22016
|
+
s === "social" && b && /* @__PURE__ */ a(Wm, {}),
|
|
22017
|
+
s === "security" && N && /* @__PURE__ */ a(i6, {}),
|
|
22018
|
+
s === "sessions" && /* @__PURE__ */ a(h6, {})
|
|
22011
22019
|
] }),
|
|
22012
22020
|
m && /* @__PURE__ */ d(
|
|
22013
22021
|
"div",
|
|
@@ -22023,7 +22031,7 @@ const Qs = ({
|
|
|
22023
22031
|
] })
|
|
22024
22032
|
}
|
|
22025
22033
|
) }) });
|
|
22026
|
-
},
|
|
22034
|
+
}, g6 = ({
|
|
22027
22035
|
isOpen: e,
|
|
22028
22036
|
onClose: t,
|
|
22029
22037
|
title: n,
|
|
@@ -22035,9 +22043,9 @@ const Qs = ({
|
|
|
22035
22043
|
showCloseButton: c
|
|
22036
22044
|
}) => /* @__PURE__ */ a(Xe, { isOpen: e, onClose: t, children: /* @__PURE__ */ a(Xe.Overlay, { children: /* @__PURE__ */ d(Xe.Content, { className: "w-dialog--panel", children: [
|
|
22037
22045
|
i && /* @__PURE__ */ a(Xe.Header, { showCloseButton: c, children: s || n }),
|
|
22038
|
-
m || l || /* @__PURE__ */ a(
|
|
22046
|
+
m || l || /* @__PURE__ */ a(w6, {}),
|
|
22039
22047
|
o && /* @__PURE__ */ a(Xe.Footer, { children: o })
|
|
22040
|
-
] }) }) }), ze = (...e) => e.filter(Boolean).join(" "),
|
|
22048
|
+
] }) }) }), ze = (...e) => e.filter(Boolean).join(" "), v6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-relative", e.className) }), v0 = xe.forwardRef(
|
|
22041
22049
|
(e, t) => /* @__PURE__ */ a(
|
|
22042
22050
|
"button",
|
|
22043
22051
|
{
|
|
@@ -22049,7 +22057,7 @@ const Qs = ({
|
|
|
22049
22057
|
)
|
|
22050
22058
|
);
|
|
22051
22059
|
v0.displayName = "AccountButton";
|
|
22052
|
-
const
|
|
22060
|
+
const b6 = ({ children: e, ...t }) => /* @__PURE__ */ a(
|
|
22053
22061
|
"div",
|
|
22054
22062
|
{
|
|
22055
22063
|
...t,
|
|
@@ -22057,7 +22065,7 @@ const v6 = ({ children: e, ...t }) => /* @__PURE__ */ a(
|
|
|
22057
22065
|
style: { width: 28, height: 28, fontSize: 11, ...t.style },
|
|
22058
22066
|
children: e
|
|
22059
22067
|
}
|
|
22060
|
-
),
|
|
22068
|
+
), y6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-text-secondary", e.className) }), b0 = xe.forwardRef(({ $position: e, $isOpen: t, $maxHeight: n, children: i, ...s }, o) => /* @__PURE__ */ a(
|
|
22061
22069
|
"div",
|
|
22062
22070
|
{
|
|
22063
22071
|
...s,
|
|
@@ -22109,7 +22117,7 @@ const y0 = xe.forwardRef(({ $top: e, $left: t, $isOpen: n, $maxHeight: i, childr
|
|
|
22109
22117
|
}
|
|
22110
22118
|
));
|
|
22111
22119
|
y0.displayName = "SidePanel";
|
|
22112
|
-
const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.className) }),
|
|
22120
|
+
const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.className) }), _6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "16px 14px 8px", ...e.style } }), x6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-gap-3", e.className) }), k6 = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "w-avatar--lg", t.className), children: e }), N6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex-col", "w-grow", e.className), style: { gap: 2, ...e.style } }), A6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-truncate", e.className) }), C6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-truncate", e.className) }), E6 = ({ $active: e, ...t }) => /* @__PURE__ */ a(
|
|
22113
22121
|
"button",
|
|
22114
22122
|
{
|
|
22115
22123
|
...t,
|
|
@@ -22120,7 +22128,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22120
22128
|
...t.style
|
|
22121
22129
|
}
|
|
22122
22130
|
}
|
|
22123
|
-
),
|
|
22131
|
+
), S6 = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: "w-avatar w-avatar--sm", children: e }), M6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), L6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-none", e.className) }), R6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), P6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-menu-item", e.className) }), $6 = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-grow", e.className) }), O6 = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-menu-trail", e.className) }), Z6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), H6 = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-menu-label", e.className) }), Br = ({ $active: e, ...t }) => /* @__PURE__ */ a(
|
|
22124
22132
|
"button",
|
|
22125
22133
|
{
|
|
22126
22134
|
...t,
|
|
@@ -22135,14 +22143,14 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22135
22143
|
style: { width: 14, height: 14, color: "var(--wa-primary)", ...t.style },
|
|
22136
22144
|
children: e
|
|
22137
22145
|
}
|
|
22138
|
-
),
|
|
22146
|
+
), T6 = (e) => /* @__PURE__ */ a("div", { ...e, className: "w-none", style: { width: 14, ...e.style } }), Gr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), Xs = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-secsub", "w-none", e.className) }), F6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { padding: "5px", ...e.style } }), I6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-menu-item", "w-menu-item--danger", e.className) }), V6 = (e) => /* @__PURE__ */ a(
|
|
22139
22147
|
"button",
|
|
22140
22148
|
{
|
|
22141
22149
|
...e,
|
|
22142
22150
|
className: ze("w-menu-item", e.className),
|
|
22143
22151
|
style: { borderBottom: "0.5px solid var(--wa-border)", borderRadius: 0, flex: "none", ...e.style }
|
|
22144
22152
|
}
|
|
22145
|
-
),
|
|
22153
|
+
), z6 = (e) => /* @__PURE__ */ a("div", { ...e, style: { flex: "1 1 auto", overflowY: "auto", padding: 5, ...e.style } }), eo = ({ $active: e, ...t }) => /* @__PURE__ */ a(
|
|
22146
22154
|
"button",
|
|
22147
22155
|
{
|
|
22148
22156
|
...t,
|
|
@@ -22164,21 +22172,21 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22164
22172
|
className: ze("w-avatar", "w-avatar--sm", !e && "", n.className),
|
|
22165
22173
|
children: t
|
|
22166
22174
|
}
|
|
22167
|
-
), no = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--sm", t.className), children: e }), ro = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), io = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-secsub", "w-grow", "w-truncate", e.className) }), qr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 4, ...e.style } }),
|
|
22175
|
+
), no = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--sm", t.className), children: e }), ro = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-sec", "w-grow", "w-truncate", e.className) }), io = (e) => /* @__PURE__ */ a("span", { ...e, className: ze("w-secsub", "w-grow", "w-truncate", e.className) }), qr = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 4, ...e.style } }), D6 = ({ $open: e, ...t }) => /* @__PURE__ */ a(
|
|
22168
22176
|
Yt,
|
|
22169
22177
|
{
|
|
22170
22178
|
...t,
|
|
22171
22179
|
className: "w-text-muted",
|
|
22172
22180
|
style: { flexShrink: 0, transition: "transform 0.2s ease", transform: e ? "rotate(0deg)" : "rotate(-90deg)" }
|
|
22173
22181
|
}
|
|
22174
|
-
), Kr = (e) => /* @__PURE__ */ a(nt, { ...e, className: "w-text-primary", style: { flexShrink: 0 } }),
|
|
22182
|
+
), Kr = (e) => /* @__PURE__ */ a(nt, { ...e, className: "w-text-primary", style: { flexShrink: 0 } }), U6 = (e) => /* @__PURE__ */ a(
|
|
22175
22183
|
"div",
|
|
22176
22184
|
{
|
|
22177
22185
|
...e,
|
|
22178
22186
|
className: ze("w-flex-col", "w-gap-3", "w-none", e.className),
|
|
22179
22187
|
style: { padding: "12px 12px 16px", borderBottom: "0.5px solid var(--wa-border)", ...e.style }
|
|
22180
22188
|
}
|
|
22181
|
-
),
|
|
22189
|
+
), W6 = (e) => /* @__PURE__ */ a("button", { ...e, className: ze("w-btn", "w-btn--icon", e.className), style: { width: 24, height: 24, ...e.style } }), so = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-gap-3", e.className), style: { padding: "4px 4px 0", minWidth: 0, ...e.style } }), oo = ({ children: e, ...t }) => /* @__PURE__ */ a("div", { ...t, className: ze("w-avatar", "", "w-avatar--md", t.className), children: e }), lo = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex-col", "w-grow", e.className), style: { gap: 1, minWidth: 0, ...e.style } }), co = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-sec", "w-truncate", e.className) }), uo = (e) => /* @__PURE__ */ a("div", { ...e, className: ze("w-flex", "w-items-center", "w-none", e.className), style: { gap: 2, ...e.style } }), Bn = ({ $destructive: e, ...t }) => /* @__PURE__ */ a(
|
|
22182
22190
|
"button",
|
|
22183
22191
|
{
|
|
22184
22192
|
...t,
|
|
@@ -22198,7 +22206,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22198
22206
|
top: 0,
|
|
22199
22207
|
left: 0,
|
|
22200
22208
|
maxHeight: 400
|
|
22201
|
-
}), [N, E] = C(/* @__PURE__ */ new Set()), [k, A] = C(null), _ =
|
|
22209
|
+
}), [N, E] = C(/* @__PURE__ */ new Set()), [k, A] = C(null), _ = j(null), M = j(null), L = j(null), F = St({
|
|
22202
22210
|
triggerRef: _,
|
|
22203
22211
|
isOpen: o,
|
|
22204
22212
|
minWidth: 300
|
|
@@ -22209,7 +22217,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22209
22217
|
switchOrganization: H,
|
|
22210
22218
|
switchWorkspace: V,
|
|
22211
22219
|
refetch: q
|
|
22212
|
-
} = gt(), { navigateToSignIn:
|
|
22220
|
+
} = gt(), { navigateToSignIn: G } = Ot(), { deployment: U } = Oe(), {
|
|
22213
22221
|
activeOrganization: Y,
|
|
22214
22222
|
activeMembership: ee,
|
|
22215
22223
|
leave: we
|
|
@@ -22316,7 +22324,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22316
22324
|
const He = me.user.id === (J == null ? void 0 : J.id), ae = Ce.user.id === (J == null ? void 0 : J.id);
|
|
22317
22325
|
return He === ae ? 0 : He ? -1 : 1;
|
|
22318
22326
|
}), ve = ((Qt = he.find((me) => me.user.id === (J == null ? void 0 : J.id))) == null ? void 0 : Qt.id) || "", je = ((pa = (Mt = ee == null ? void 0 : ee.roles) == null ? void 0 : Mt[0]) == null ? void 0 : pa.name) ?? null;
|
|
22319
|
-
return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ d(
|
|
22327
|
+
return /* @__PURE__ */ a(Be, { children: /* @__PURE__ */ d(v6, { children: [
|
|
22320
22328
|
/* @__PURE__ */ d(
|
|
22321
22329
|
v0,
|
|
22322
22330
|
{
|
|
@@ -22328,9 +22336,9 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22328
22336
|
J == null ? void 0 : J.profile_picture_url,
|
|
22329
22337
|
J == null ? void 0 : J.first_name,
|
|
22330
22338
|
J == null ? void 0 : J.last_name,
|
|
22331
|
-
|
|
22339
|
+
b6
|
|
22332
22340
|
),
|
|
22333
|
-
e && /* @__PURE__ */ a(
|
|
22341
|
+
e && /* @__PURE__ */ a(y6, { children: `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`.trim() })
|
|
22334
22342
|
]
|
|
22335
22343
|
}
|
|
22336
22344
|
),
|
|
@@ -22344,28 +22352,28 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22344
22352
|
$isOpen: o && !(p && l),
|
|
22345
22353
|
$maxHeight: F == null ? void 0 : F.maxHeight,
|
|
22346
22354
|
children: [
|
|
22347
|
-
/* @__PURE__ */ a(
|
|
22355
|
+
/* @__PURE__ */ a(_6, { children: /* @__PURE__ */ d(x6, { children: [
|
|
22348
22356
|
ke(
|
|
22349
22357
|
J == null ? void 0 : J.has_profile_picture,
|
|
22350
22358
|
J == null ? void 0 : J.profile_picture_url,
|
|
22351
22359
|
J == null ? void 0 : J.first_name,
|
|
22352
22360
|
J == null ? void 0 : J.last_name,
|
|
22353
|
-
|
|
22361
|
+
k6
|
|
22354
22362
|
),
|
|
22355
|
-
/* @__PURE__ */ d(
|
|
22356
|
-
/* @__PURE__ */ a(
|
|
22357
|
-
/* @__PURE__ */ a(
|
|
22363
|
+
/* @__PURE__ */ d(N6, { children: [
|
|
22364
|
+
/* @__PURE__ */ a(A6, { children: `${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`.trim() }),
|
|
22365
|
+
/* @__PURE__ */ a(C6, { children: (ha = J == null ? void 0 : J.primary_email_address) == null ? void 0 : ha.email })
|
|
22358
22366
|
] })
|
|
22359
22367
|
] }) }),
|
|
22360
|
-
/* @__PURE__ */ d(
|
|
22368
|
+
/* @__PURE__ */ d(R6, { children: [
|
|
22361
22369
|
fe && /* @__PURE__ */ d(
|
|
22362
|
-
|
|
22370
|
+
E6,
|
|
22363
22371
|
{
|
|
22364
22372
|
$active: l,
|
|
22365
22373
|
onClick: Ze,
|
|
22366
22374
|
style: { marginBottom: 8 },
|
|
22367
22375
|
children: [
|
|
22368
|
-
/* @__PURE__ */ a(
|
|
22376
|
+
/* @__PURE__ */ a(S6, { children: Y ? Y.image_url ? /* @__PURE__ */ a(
|
|
22369
22377
|
"img",
|
|
22370
22378
|
{
|
|
22371
22379
|
src: Y.image_url,
|
|
@@ -22380,20 +22388,20 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22380
22388
|
) : B(
|
|
22381
22389
|
`${(J == null ? void 0 : J.first_name) || ""} ${(J == null ? void 0 : J.last_name) || ""}`
|
|
22382
22390
|
) }),
|
|
22383
|
-
/* @__PURE__ */ a(
|
|
22384
|
-
je && /* @__PURE__ */ a(
|
|
22391
|
+
/* @__PURE__ */ a(M6, { children: (Y == null ? void 0 : Y.name) ?? "Personal account" }),
|
|
22392
|
+
je && /* @__PURE__ */ a(L6, { children: je })
|
|
22385
22393
|
]
|
|
22386
22394
|
}
|
|
22387
22395
|
),
|
|
22388
|
-
/* @__PURE__ */ d(
|
|
22396
|
+
/* @__PURE__ */ d(P6, { onClick: te, children: [
|
|
22389
22397
|
/* @__PURE__ */ a($a, {}),
|
|
22390
|
-
/* @__PURE__ */ a(
|
|
22391
|
-
/* @__PURE__ */ a(
|
|
22398
|
+
/* @__PURE__ */ a($6, { children: "Manage account" }),
|
|
22399
|
+
/* @__PURE__ */ a(O6, { children: "⌘," })
|
|
22392
22400
|
] })
|
|
22393
22401
|
] }),
|
|
22394
22402
|
/* @__PURE__ */ a(Js, {}),
|
|
22395
|
-
/* @__PURE__ */ d(
|
|
22396
|
-
/* @__PURE__ */ a(
|
|
22403
|
+
/* @__PURE__ */ d(Z6, { children: [
|
|
22404
|
+
/* @__PURE__ */ a(H6, { children: "Accounts" }),
|
|
22397
22405
|
dt ? he.map(
|
|
22398
22406
|
({ user: me, id: Ce }) => {
|
|
22399
22407
|
var ae;
|
|
@@ -22406,7 +22414,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22406
22414
|
Ce
|
|
22407
22415
|
),
|
|
22408
22416
|
children: [
|
|
22409
|
-
He ? /* @__PURE__ */ a(jr, { children: /* @__PURE__ */ a(nt, {}) }) : /* @__PURE__ */ a(
|
|
22417
|
+
He ? /* @__PURE__ */ a(jr, { children: /* @__PURE__ */ a(nt, {}) }) : /* @__PURE__ */ a(T6, {}),
|
|
22410
22418
|
/* @__PURE__ */ a(Gr, { children: (ae = me.primary_email_address) == null ? void 0 : ae.email }),
|
|
22411
22419
|
He && /* @__PURE__ */ a(Xs, { children: "Current" })
|
|
22412
22420
|
]
|
|
@@ -22423,7 +22431,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22423
22431
|
Br,
|
|
22424
22432
|
{
|
|
22425
22433
|
onClick: () => {
|
|
22426
|
-
|
|
22434
|
+
G(), m(!1);
|
|
22427
22435
|
},
|
|
22428
22436
|
children: [
|
|
22429
22437
|
/* @__PURE__ */ a(jr, { style: { color: "var(--wa-text-muted)" }, children: /* @__PURE__ */ a(Zt, {}) }),
|
|
@@ -22433,8 +22441,8 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22433
22441
|
)
|
|
22434
22442
|
] }),
|
|
22435
22443
|
/* @__PURE__ */ a(Js, {}),
|
|
22436
|
-
/* @__PURE__ */ a(
|
|
22437
|
-
|
|
22444
|
+
/* @__PURE__ */ a(F6, { children: /* @__PURE__ */ d(
|
|
22445
|
+
I6,
|
|
22438
22446
|
{
|
|
22439
22447
|
onClick: () => Ne(ve),
|
|
22440
22448
|
children: [
|
|
@@ -22456,7 +22464,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22456
22464
|
$maxHeight: x.maxHeight,
|
|
22457
22465
|
children: [
|
|
22458
22466
|
p && /* @__PURE__ */ d(
|
|
22459
|
-
|
|
22467
|
+
V6,
|
|
22460
22468
|
{
|
|
22461
22469
|
onClick: () => c(!1),
|
|
22462
22470
|
children: [
|
|
@@ -22494,7 +22502,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22494
22502
|
if (!me) return null;
|
|
22495
22503
|
const tt = Ee === "org" ? "ws" : "org", Nt = tt === "ws" ? "Switch to workspace context" : "Switch to organization context";
|
|
22496
22504
|
return /* @__PURE__ */ a(
|
|
22497
|
-
|
|
22505
|
+
W6,
|
|
22498
22506
|
{
|
|
22499
22507
|
type: "button",
|
|
22500
22508
|
onClick: () => v(tt),
|
|
@@ -22504,7 +22512,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22504
22512
|
}
|
|
22505
22513
|
);
|
|
22506
22514
|
};
|
|
22507
|
-
return /* @__PURE__ */ d(
|
|
22515
|
+
return /* @__PURE__ */ d(U6, { children: [
|
|
22508
22516
|
Ee === "org" && Y && /* @__PURE__ */ d(so, { children: [
|
|
22509
22517
|
Lt(),
|
|
22510
22518
|
/* @__PURE__ */ a(oo, { children: Y.image_url ? /* @__PURE__ */ a(
|
|
@@ -22605,7 +22613,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22605
22613
|
] })
|
|
22606
22614
|
] });
|
|
22607
22615
|
})(),
|
|
22608
|
-
/* @__PURE__ */ d(
|
|
22616
|
+
/* @__PURE__ */ d(z6, { children: [
|
|
22609
22617
|
/* @__PURE__ */ d(
|
|
22610
22618
|
eo,
|
|
22611
22619
|
{
|
|
@@ -22688,7 +22696,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22688
22696
|
}
|
|
22689
22697
|
),
|
|
22690
22698
|
Fe && /* @__PURE__ */ a(
|
|
22691
|
-
|
|
22699
|
+
D6,
|
|
22692
22700
|
{
|
|
22693
22701
|
size: 11,
|
|
22694
22702
|
$open: ae
|
|
@@ -22827,7 +22835,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22827
22835
|
document.body
|
|
22828
22836
|
),
|
|
22829
22837
|
/* @__PURE__ */ a(
|
|
22830
|
-
|
|
22838
|
+
g6,
|
|
22831
22839
|
{
|
|
22832
22840
|
isOpen: R.isOpen,
|
|
22833
22841
|
onClose: R.close
|
|
@@ -22870,7 +22878,7 @@ const Js = (e) => /* @__PURE__ */ a("hr", { ...e, className: ze("w-hr", e.classN
|
|
|
22870
22878
|
] })
|
|
22871
22879
|
] }) });
|
|
22872
22880
|
};
|
|
22873
|
-
function
|
|
22881
|
+
function B6({
|
|
22874
22882
|
notification: e,
|
|
22875
22883
|
onAction: t
|
|
22876
22884
|
}) {
|
|
@@ -22961,9 +22969,9 @@ function W6({
|
|
|
22961
22969
|
}
|
|
22962
22970
|
);
|
|
22963
22971
|
}
|
|
22964
|
-
const
|
|
22972
|
+
const j6 = ce(
|
|
22965
22973
|
({ scope: e = "all", onAction: t, fullWidth: n, maxHeight: i, className: s }, o) => {
|
|
22966
|
-
const [m, l] = C("inbox"), [c, p] = C(!1), [u, f] = C(!1), h =
|
|
22974
|
+
const [m, l] = C("inbox"), [c, p] = C(!1), [u, f] = C(!1), h = j(null), g = {
|
|
22967
22975
|
scope: e,
|
|
22968
22976
|
limit: 20,
|
|
22969
22977
|
is_archived: m === "archive",
|
|
@@ -23099,7 +23107,7 @@ const B6 = ce(
|
|
|
23099
23107
|
}
|
|
23100
23108
|
) : /* @__PURE__ */ d(se, { children: [
|
|
23101
23109
|
v.map((z) => /* @__PURE__ */ a(
|
|
23102
|
-
|
|
23110
|
+
B6,
|
|
23103
23111
|
{
|
|
23104
23112
|
notification: z,
|
|
23105
23113
|
onAction: L
|
|
@@ -23112,7 +23120,7 @@ const B6 = ce(
|
|
|
23112
23120
|
}
|
|
23113
23121
|
);
|
|
23114
23122
|
}
|
|
23115
|
-
),
|
|
23123
|
+
), G6 = ce(
|
|
23116
23124
|
({
|
|
23117
23125
|
position: e,
|
|
23118
23126
|
scope: t,
|
|
@@ -23132,7 +23140,7 @@ const B6 = ce(
|
|
|
23132
23140
|
maxHeight: e != null && e.maxHeight ? e.maxHeight : "90vh"
|
|
23133
23141
|
},
|
|
23134
23142
|
children: /* @__PURE__ */ a(
|
|
23135
|
-
|
|
23143
|
+
j6,
|
|
23136
23144
|
{
|
|
23137
23145
|
scope: t,
|
|
23138
23146
|
onAction: n,
|
|
@@ -23143,13 +23151,13 @@ const B6 = ce(
|
|
|
23143
23151
|
}
|
|
23144
23152
|
)
|
|
23145
23153
|
);
|
|
23146
|
-
function
|
|
23154
|
+
function q6({
|
|
23147
23155
|
className: e,
|
|
23148
23156
|
showBadge: t = !0,
|
|
23149
23157
|
scope: n = "all",
|
|
23150
23158
|
onAction: i
|
|
23151
23159
|
}) {
|
|
23152
|
-
const [s, o] = C(!1), m = Rn(), l =
|
|
23160
|
+
const [s, o] = C(!1), m = Rn(), l = j(null), c = j(null), p = j(null), { count: u, refetch: f } = rd({
|
|
23153
23161
|
scope: n
|
|
23154
23162
|
}), h = async (v) => {
|
|
23155
23163
|
await f(), i == null || i(v.payload);
|
|
@@ -23205,7 +23213,7 @@ function G6({
|
|
|
23205
23213
|
),
|
|
23206
23214
|
typeof window < "u" && s && or.createPortal(
|
|
23207
23215
|
/* @__PURE__ */ a("div", { className: "wacht-root", style: m, children: /* @__PURE__ */ a(
|
|
23208
|
-
|
|
23216
|
+
G6,
|
|
23209
23217
|
{
|
|
23210
23218
|
ref: c,
|
|
23211
23219
|
position: g,
|
|
@@ -23220,21 +23228,21 @@ function G6({
|
|
|
23220
23228
|
}
|
|
23221
23229
|
) });
|
|
23222
23230
|
}
|
|
23223
|
-
const
|
|
23231
|
+
const Bp = ({
|
|
23224
23232
|
showName: e = !0,
|
|
23225
23233
|
showNotifications: t = !0
|
|
23226
23234
|
}) => /* @__PURE__ */ d("div", { className: "w-flex w-items-center w-gap-2", children: [
|
|
23227
|
-
t && /* @__PURE__ */ a(
|
|
23235
|
+
t && /* @__PURE__ */ a(q6, {}),
|
|
23228
23236
|
/* @__PURE__ */ a(_0, { showName: e })
|
|
23229
|
-
] }),
|
|
23237
|
+
] }), jp = ({ children: e }) => {
|
|
23230
23238
|
var i;
|
|
23231
23239
|
const { session: t, loading: n } = gt();
|
|
23232
23240
|
return n || !((i = t.signins) != null && i.length) || !t.active_signin ? null : /* @__PURE__ */ a(se, { children: e });
|
|
23233
|
-
},
|
|
23241
|
+
}, Gp = ({ children: e }) => {
|
|
23234
23242
|
var i;
|
|
23235
23243
|
const { loading: t, session: n } = gt();
|
|
23236
23244
|
return t || (i = n.signins) != null && i.length && n.active_signin ? null : /* @__PURE__ */ a(se, { children: e });
|
|
23237
|
-
},
|
|
23245
|
+
}, qp = ({
|
|
23238
23246
|
onAccountSelect: e,
|
|
23239
23247
|
showAddAccount: t = !0
|
|
23240
23248
|
}) => {
|
|
@@ -23371,23 +23379,23 @@ const Wp = ({
|
|
|
23371
23379
|
]
|
|
23372
23380
|
}
|
|
23373
23381
|
) }) : null;
|
|
23374
|
-
},
|
|
23382
|
+
}, Kp = () => {
|
|
23375
23383
|
const { navigateToSignIn: e } = Ot();
|
|
23376
23384
|
return X(() => {
|
|
23377
23385
|
e();
|
|
23378
23386
|
}, [e]), null;
|
|
23379
|
-
},
|
|
23387
|
+
}, Yp = () => {
|
|
23380
23388
|
const { navigateToSignUp: e } = Ot();
|
|
23381
23389
|
return X(() => {
|
|
23382
23390
|
e();
|
|
23383
23391
|
}, [e]), null;
|
|
23384
|
-
},
|
|
23392
|
+
}, K6 = () => {
|
|
23385
23393
|
var R, z;
|
|
23386
23394
|
const {
|
|
23387
23395
|
organizationMemberships: e,
|
|
23388
23396
|
refetch: t,
|
|
23389
23397
|
loading: n
|
|
23390
|
-
} = Ua(), { workspaces: i } = Wa(), { switchOrganization: s, switchWorkspace: o } = gt(), { deployment: m } = Oe(), [l, c] = C(null), [p, u] = C("orgList"), [f, h] = C(null), g = ((m == null ? void 0 : m.b2b_settings.organizations_enabled) ?? !1) && ((m == null ? void 0 : m.b2b_settings.workspaces_enabled) ?? !1), v = (m == null ? void 0 : m.b2b_settings.allow_users_to_create_orgs) ?? !1, w =
|
|
23398
|
+
} = Ua(), { workspaces: i } = Wa(), { switchOrganization: s, switchWorkspace: o } = gt(), { deployment: m } = Oe(), [l, c] = C(null), [p, u] = C("orgList"), [f, h] = C(null), g = ((m == null ? void 0 : m.b2b_settings.organizations_enabled) ?? !1) && ((m == null ? void 0 : m.b2b_settings.workspaces_enabled) ?? !1), v = (m == null ? void 0 : m.b2b_settings.allow_users_to_create_orgs) ?? !1, w = j(!1);
|
|
23391
23399
|
X(() => {
|
|
23392
23400
|
if (!(w.current || !e)) {
|
|
23393
23401
|
if (w.current = !0, e.length === 0) {
|
|
@@ -23568,10 +23576,10 @@ const Wp = ({
|
|
|
23568
23576
|
}
|
|
23569
23577
|
) })
|
|
23570
23578
|
] }) }) : e && e.length > 0 ? e.map((O) => {
|
|
23571
|
-
var
|
|
23579
|
+
var G, U, Y, ee, we;
|
|
23572
23580
|
const S = O.organization, Z = i == null ? void 0 : i.filter(
|
|
23573
23581
|
(_e) => _e.organization.id === S.id
|
|
23574
|
-
), T = (Z == null ? void 0 : Z.length) || 0, P = S.member_count, $ = ((U = (
|
|
23582
|
+
), T = (Z == null ? void 0 : Z.length) || 0, P = S.member_count, $ = ((U = (G = O.roles) == null ? void 0 : G[0]) == null ? void 0 : U.name) || "No role", H = O.roles.length - 1, V = H > 0 ? `${$.charAt(0).toUpperCase() + $.slice(1)} +${H}` : $.charAt(0).toUpperCase() + $.slice(1), q = ((Y = O.eligibility_restriction) == null ? void 0 : Y.type) !== "none" && ((ee = O.eligibility_restriction) == null ? void 0 : ee.type) !== void 0;
|
|
23575
23583
|
return /* @__PURE__ */ d(
|
|
23576
23584
|
"button",
|
|
23577
23585
|
{
|
|
@@ -23664,7 +23672,7 @@ const Wp = ({
|
|
|
23664
23672
|
)
|
|
23665
23673
|
] })
|
|
23666
23674
|
] });
|
|
23667
|
-
},
|
|
23675
|
+
}, Qp = ({
|
|
23668
23676
|
children: e
|
|
23669
23677
|
}) => {
|
|
23670
23678
|
var f, h, g, v;
|
|
@@ -23678,10 +23686,10 @@ const Wp = ({
|
|
|
23678
23686
|
{
|
|
23679
23687
|
className: "w-flex w-justify-center",
|
|
23680
23688
|
style: { padding: 0, width: 900, maxWidth: "90vw" },
|
|
23681
|
-
children: /* @__PURE__ */ a(
|
|
23689
|
+
children: /* @__PURE__ */ a(K6, {})
|
|
23682
23690
|
}
|
|
23683
23691
|
) }) }) });
|
|
23684
|
-
},
|
|
23692
|
+
}, Jp = (e) => {
|
|
23685
23693
|
const t = e.toLowerCase().trim();
|
|
23686
23694
|
return ["javascript:", "data:", "vbscript:"].some((s) => t.startsWith(s)) ? !0 : [
|
|
23687
23695
|
"http://",
|
|
@@ -23697,104 +23705,104 @@ const Wp = ({
|
|
|
23697
23705
|
].some(
|
|
23698
23706
|
(s) => t.startsWith(s)
|
|
23699
23707
|
);
|
|
23700
|
-
},
|
|
23708
|
+
}, Xp = (e) => {
|
|
23701
23709
|
const t = e.toLowerCase().trim();
|
|
23702
23710
|
return !["javascript:", "data:", "vbscript:"].some(
|
|
23703
23711
|
(i) => t.startsWith(i)
|
|
23704
23712
|
);
|
|
23705
23713
|
};
|
|
23706
23714
|
export {
|
|
23707
|
-
|
|
23715
|
+
Fp as AcceptInvite,
|
|
23708
23716
|
vc as AuthFormImage,
|
|
23709
23717
|
Hi as CreateOrganizationForm,
|
|
23710
23718
|
Vc as CreateWorkspaceDialog,
|
|
23711
23719
|
Ic as CreateWorkspaceForm,
|
|
23712
23720
|
Be as DefaultStylesProvider,
|
|
23713
|
-
|
|
23714
|
-
|
|
23715
|
-
|
|
23721
|
+
Mp as DeploymentInitialized,
|
|
23722
|
+
Lp as DeploymentInitializing,
|
|
23723
|
+
X6 as DeploymentProvider,
|
|
23716
23724
|
Xe as Dialog,
|
|
23717
|
-
|
|
23725
|
+
Vp as DialogTrigger,
|
|
23718
23726
|
gr as Dropdown,
|
|
23719
|
-
|
|
23727
|
+
n4 as DropdownDivider,
|
|
23720
23728
|
Ca as DropdownItem,
|
|
23721
23729
|
vr as DropdownItems,
|
|
23722
23730
|
br as DropdownTrigger,
|
|
23723
|
-
|
|
23731
|
+
r4 as Form,
|
|
23724
23732
|
at as FormGroup,
|
|
23725
23733
|
Se as Input,
|
|
23726
23734
|
Ye as Label,
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23731
|
-
|
|
23735
|
+
Zp as MagicLinkVerification,
|
|
23736
|
+
w6 as ManageAccount,
|
|
23737
|
+
g6 as ManageAccountDialog,
|
|
23738
|
+
P4 as ManageOrganization,
|
|
23739
|
+
J4 as ManageWorkspace,
|
|
23732
23740
|
Dc as ManageWorkspaceDialog,
|
|
23733
|
-
|
|
23734
|
-
|
|
23741
|
+
Kp as NavigateToSignIn,
|
|
23742
|
+
Yp as NavigateToSignUp,
|
|
23735
23743
|
Vt as NavigationLink,
|
|
23736
|
-
|
|
23737
|
-
|
|
23738
|
-
|
|
23739
|
-
|
|
23744
|
+
q6 as NotificationBell,
|
|
23745
|
+
B6 as NotificationItem,
|
|
23746
|
+
j6 as NotificationPanel,
|
|
23747
|
+
G6 as NotificationPopover,
|
|
23740
23748
|
P0 as OAuthProvider,
|
|
23741
|
-
|
|
23742
|
-
|
|
23749
|
+
X4 as ORG_ADMIN_PERMISSIONS,
|
|
23750
|
+
em as ORG_MANAGEMENT_PERMISSIONS,
|
|
23743
23751
|
Ga as OTPInput,
|
|
23744
|
-
|
|
23752
|
+
nm as OrganizationSwitcher,
|
|
23745
23753
|
wr as PhoneNumberInput,
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
|
|
23749
|
-
|
|
23750
|
-
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23754
|
+
Wu as PhoneVerification,
|
|
23755
|
+
Ku as ProfileCompletion,
|
|
23756
|
+
Qp as RequireActiveTenancy,
|
|
23757
|
+
Pp as SignInForm,
|
|
23758
|
+
Rp as SignUpForm,
|
|
23759
|
+
jp as SignedIn,
|
|
23760
|
+
qp as SignedInAccounts,
|
|
23761
|
+
Gp as SignedOut,
|
|
23762
|
+
Ip as SimpleDialog,
|
|
23763
|
+
Op as SocialCallback,
|
|
23756
23764
|
Re as Spinner,
|
|
23757
23765
|
on as Switch,
|
|
23758
|
-
|
|
23759
|
-
|
|
23766
|
+
Uu as TwoFactorMethodSelector,
|
|
23767
|
+
qu as TwoFactorVerification,
|
|
23760
23768
|
_0 as UserButton,
|
|
23761
|
-
|
|
23762
|
-
|
|
23763
|
-
|
|
23764
|
-
|
|
23769
|
+
Bp as UserControls,
|
|
23770
|
+
tm as WORKSPACE_ADMIN_PERMISSIONS,
|
|
23771
|
+
am as WORKSPACE_MANAGEMENT_PERMISSIONS,
|
|
23772
|
+
$p as WaitlistForm,
|
|
23765
23773
|
Wc as canManageOrganization,
|
|
23766
23774
|
jc as canManageWorkspace,
|
|
23767
23775
|
Kt as clearTokenCache,
|
|
23768
|
-
|
|
23776
|
+
Hp as hasIncompleteProfile,
|
|
23769
23777
|
Uc as hasOrgPermission,
|
|
23770
23778
|
Bc as hasWorkspacePermission,
|
|
23771
|
-
|
|
23772
|
-
|
|
23773
|
-
|
|
23774
|
-
|
|
23775
|
-
|
|
23779
|
+
Jp as isExternalUrl,
|
|
23780
|
+
zp as isOrgAdmin,
|
|
23781
|
+
Xp as isSafeUrl,
|
|
23782
|
+
Dp as isWorkspaceAdmin,
|
|
23783
|
+
Tp as redirectToProfileCompletion,
|
|
23776
23784
|
Da as useActiveOrganization,
|
|
23777
23785
|
O1 as useActiveTenancy,
|
|
23778
23786
|
ca as useActiveWorkspace,
|
|
23779
|
-
|
|
23780
|
-
|
|
23781
|
-
|
|
23782
|
-
|
|
23783
|
-
|
|
23784
|
-
|
|
23785
|
-
|
|
23786
|
-
|
|
23787
|
-
|
|
23788
|
-
|
|
23789
|
-
|
|
23790
|
-
|
|
23791
|
-
|
|
23792
|
-
|
|
23793
|
-
|
|
23787
|
+
hp as useActorMcpServers,
|
|
23788
|
+
np as useActorProjectSearch,
|
|
23789
|
+
ap as useActorProjects,
|
|
23790
|
+
sp as useActorThreadSearch,
|
|
23791
|
+
tp as useAgentSession,
|
|
23792
|
+
op as useAgentThread,
|
|
23793
|
+
cp as useAgentThreadAssignments,
|
|
23794
|
+
ep as useAgentThreadConversation,
|
|
23795
|
+
lp as useAgentThreadFilesystem,
|
|
23796
|
+
mp as useAgentThreadTaskGraphs,
|
|
23797
|
+
Np as useApiAuthAppSession,
|
|
23798
|
+
Ep as useApiAuthAuditAnalytics,
|
|
23799
|
+
Cp as useApiAuthAuditLogs,
|
|
23800
|
+
Sp as useApiAuthAuditTimeseries,
|
|
23801
|
+
Ap as useApiAuthKeys,
|
|
23794
23802
|
Me as useClient,
|
|
23795
|
-
|
|
23803
|
+
bp as useCreateWebhookEndpoint,
|
|
23796
23804
|
Oe as useDeployment,
|
|
23797
|
-
|
|
23805
|
+
fp as useExternalAgentConnections,
|
|
23798
23806
|
I1 as useForgotPassword,
|
|
23799
23807
|
zd as useInvitation,
|
|
23800
23808
|
T1 as useMagicLinkVerification,
|
|
@@ -23804,11 +23812,11 @@ export {
|
|
|
23804
23812
|
ad as useNotifications,
|
|
23805
23813
|
la as useOrganizationList,
|
|
23806
23814
|
Ua as useOrganizationMemberships,
|
|
23807
|
-
|
|
23808
|
-
|
|
23809
|
-
|
|
23810
|
-
|
|
23811
|
-
|
|
23815
|
+
up as useProjectTaskBoardItem,
|
|
23816
|
+
pp as useProjectTaskBoardItemComments,
|
|
23817
|
+
dp as useProjectTasks,
|
|
23818
|
+
ip as useProjectThreadFeed,
|
|
23819
|
+
rp as useProjectThreads,
|
|
23812
23820
|
gt as useSession,
|
|
23813
23821
|
D0 as useSignIn,
|
|
23814
23822
|
W0 as useSignUp,
|
|
@@ -23817,13 +23825,13 @@ export {
|
|
|
23817
23825
|
Ba as useUser,
|
|
23818
23826
|
$1 as useUserSignins,
|
|
23819
23827
|
Z1 as useWaitlist,
|
|
23820
|
-
|
|
23821
|
-
|
|
23822
|
-
|
|
23823
|
-
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23828
|
+
xp as useWebhookAnalytics,
|
|
23829
|
+
wp as useWebhookAppSession,
|
|
23830
|
+
_p as useWebhookDeliveries,
|
|
23831
|
+
vp as useWebhookEndpoints,
|
|
23832
|
+
yp as useWebhookEvents,
|
|
23833
|
+
gp as useWebhookStats,
|
|
23834
|
+
kp as useWebhookTimeseries,
|
|
23827
23835
|
Wa as useWorkspaceList,
|
|
23828
23836
|
Ci as useWorkspaceMemberships
|
|
23829
23837
|
};
|