@dxos/shell 0.4.4-main.c03108b → 0.4.4-main.e9abdca
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/bundle/shell.mjs +207 -198
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +1 -1
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +9 -4
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +1 -1
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts +2 -1
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.js +6 -3
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +1 -0
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +1 -0
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +19 -19
- package/src/panels/JoinPanel/steps/ResetIdentity.tsx +13 -4
- package/src/translations/locales/en-US.ts +1 -0
package/dist/bundle/shell.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as we from "react";
|
|
2
|
-
import x, { createContext as Vt, useContext as Jt, useState as
|
|
2
|
+
import x, { createContext as Vt, useContext as Jt, useState as Se, useRef as Ee, useEffect as _e, useMemo as gt, useCallback as De, forwardRef as ne, Children as fr, isValidElement as Mn, createElement as te, cloneElement as Ir, Fragment as vo, useLayoutEffect as ui, useReducer as ac, Suspense as Ew, StrictMode as xw } from "react";
|
|
3
3
|
import * as _v from "react-dom";
|
|
4
4
|
import If, { flushSync as sc } from "react-dom";
|
|
5
5
|
import { CaretDown as Ev, CaretRight as ri, Minus as Sw, Check as cc, Copy as xv, X as pa, Placeholder as Sv, HardDrive as $w, Plus as $v, Devices as Cw, UserGear as Aw, Power as Ow, Warning as Tw, QrCode as Iw, Textbox as Pw, UserPlus as Rw, UsersThree as kw, Planet as Nw } from "@phosphor-icons/react";
|
|
@@ -323,7 +323,7 @@ function E_(e) {
|
|
|
323
323
|
function v() {
|
|
324
324
|
return a.getFixedT(null, l.nsMode === "fallback" ? p : p[0], d);
|
|
325
325
|
}
|
|
326
|
-
var m =
|
|
326
|
+
var m = Se(v), b = w_(m, 2), w = b[0], _ = b[1], S = p.join(), $ = __(S), R = Ee(!0);
|
|
327
327
|
_e(function() {
|
|
328
328
|
var T = l.bindI18n, N = l.bindI18nStore;
|
|
329
329
|
R.current = !0, !g && !f && ap(a, p, function() {
|
|
@@ -410,7 +410,7 @@ var Pf = (e) => {
|
|
|
410
410
|
}, $_ = S_, C_ = new $_("@dxos/react-hooks"), A_ = (e = 4) => C_().toString(16).slice(2, e + 2), It = (e, t, r) => gt(() => t ?? `${e}-${A_((r == null ? void 0 : r.n) ?? 4)}`, [
|
|
411
411
|
t
|
|
412
412
|
]), O_ = (e) => {
|
|
413
|
-
const [t, r] =
|
|
413
|
+
const [t, r] = Se(void 0), n = Ee(t);
|
|
414
414
|
return n.current = t, _e(() => {
|
|
415
415
|
const i = e.current;
|
|
416
416
|
if (!i)
|
|
@@ -437,7 +437,7 @@ var Pf = (e) => {
|
|
|
437
437
|
n
|
|
438
438
|
];
|
|
439
439
|
o = o.filter((c) => c != null);
|
|
440
|
-
const [a, s] =
|
|
440
|
+
const [a, s] = Se(() => i.map((c, l) => {
|
|
441
441
|
var f;
|
|
442
442
|
return {
|
|
443
443
|
media: c,
|
|
@@ -3237,7 +3237,7 @@ function tx(e, t) {
|
|
|
3237
3237
|
);
|
|
3238
3238
|
}
|
|
3239
3239
|
const Bv = "Avatar", [rx, oj] = zn(Bv), [nx, ix] = rx(Bv), ox = /* @__PURE__ */ ne((e, t) => {
|
|
3240
|
-
const { __scopeAvatar: r, ...n } = e, [i, o] =
|
|
3240
|
+
const { __scopeAvatar: r, ...n } = e, [i, o] = Se("idle");
|
|
3241
3241
|
return /* @__PURE__ */ te(nx, {
|
|
3242
3242
|
scope: r,
|
|
3243
3243
|
imageLoadingStatus: i,
|
|
@@ -3246,7 +3246,7 @@ const Bv = "Avatar", [rx, oj] = zn(Bv), [nx, ix] = rx(Bv), ox = /* @__PURE__ */
|
|
|
3246
3246
|
ref: t
|
|
3247
3247
|
})));
|
|
3248
3248
|
}), ax = "AvatarFallback", sx = /* @__PURE__ */ ne((e, t) => {
|
|
3249
|
-
const { __scopeAvatar: r, delayMs: n, ...i } = e, o = ix(ax, r), [a, s] =
|
|
3249
|
+
const { __scopeAvatar: r, delayMs: n, ...i } = e, o = ix(ax, r), [a, s] = Se(n === void 0);
|
|
3250
3250
|
return _e(() => {
|
|
3251
3251
|
if (n !== void 0) {
|
|
3252
3252
|
const c = window.setTimeout(
|
|
@@ -3869,7 +3869,7 @@ function fc({ prop: e, defaultProp: t, onChange: r = () => {
|
|
|
3869
3869
|
];
|
|
3870
3870
|
}
|
|
3871
3871
|
function Ox({ defaultProp: e, onChange: t }) {
|
|
3872
|
-
const r =
|
|
3872
|
+
const r = Se(e), [n] = r, i = Ee(n), o = ir(t);
|
|
3873
3873
|
return _e(() => {
|
|
3874
3874
|
i.current !== n && (o(n), i.current = n);
|
|
3875
3875
|
}, [
|
|
@@ -3916,7 +3916,7 @@ const Lx = /* @__PURE__ */ Vt({
|
|
|
3916
3916
|
branches: /* @__PURE__ */ new Set()
|
|
3917
3917
|
}), zv = /* @__PURE__ */ ne((e, t) => {
|
|
3918
3918
|
var r;
|
|
3919
|
-
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: a, onInteractOutside: s, onDismiss: c, ...l } = e, f = Jt(Lx), [d, p] =
|
|
3919
|
+
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: a, onInteractOutside: s, onDismiss: c, ...l } = e, f = Jt(Lx), [d, p] = Se(null), g = (r = d == null ? void 0 : d.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, v] = Se({}), m = Dt(
|
|
3920
3920
|
t,
|
|
3921
3921
|
(T) => p(T)
|
|
3922
3922
|
), b = Array.from(f.layers), [w] = [
|
|
@@ -4037,7 +4037,7 @@ const Cl = "focusScope.autoFocusOnMount", Al = "focusScope.autoFocusOnUnmount",
|
|
|
4037
4037
|
bubbles: !1,
|
|
4038
4038
|
cancelable: !0
|
|
4039
4039
|
}, Bx = /* @__PURE__ */ ne((e, t) => {
|
|
4040
|
-
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...a } = e, [s, c] =
|
|
4040
|
+
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...a } = e, [s, c] = Se(null), l = ir(i), f = ir(o), d = Ee(null), p = Dt(
|
|
4041
4041
|
t,
|
|
4042
4042
|
(m) => c(m)
|
|
4043
4043
|
), g = Ee({
|
|
@@ -4224,7 +4224,7 @@ const br = (e) => {
|
|
|
4224
4224
|
};
|
|
4225
4225
|
br.displayName = "Presence";
|
|
4226
4226
|
function Kx(e) {
|
|
4227
|
-
const [t, r] =
|
|
4227
|
+
const [t, r] = Se(), n = Ee({}), i = Ee(e), o = Ee("none"), a = e ? "mounted" : "unmounted", [s, c] = Gx(a, {
|
|
4228
4228
|
mounted: {
|
|
4229
4229
|
UNMOUNT: "unmounted",
|
|
4230
4230
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4328,7 +4328,7 @@ function Zx(e, t) {
|
|
|
4328
4328
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4329
4329
|
}
|
|
4330
4330
|
function Qx(e, t) {
|
|
4331
|
-
var r =
|
|
4331
|
+
var r = Se(function() {
|
|
4332
4332
|
return {
|
|
4333
4333
|
// value
|
|
4334
4334
|
value: e,
|
|
@@ -5807,7 +5807,7 @@ const kS = /* @__PURE__ */ ne((e, t) => {
|
|
|
5807
5807
|
}));
|
|
5808
5808
|
}), NS = kS;
|
|
5809
5809
|
function km(e) {
|
|
5810
|
-
const [t, r] =
|
|
5810
|
+
const [t, r] = Se(void 0);
|
|
5811
5811
|
return co(() => {
|
|
5812
5812
|
if (e) {
|
|
5813
5813
|
r({
|
|
@@ -5854,7 +5854,7 @@ const gc = (e) => {
|
|
|
5854
5854
|
};
|
|
5855
5855
|
gc.displayName = "Presence";
|
|
5856
5856
|
function LS(e) {
|
|
5857
|
-
const [t, r] =
|
|
5857
|
+
const [t, r] = Se(), n = Ee({}), i = Ee(e), o = Ee("none"), a = e ? "mounted" : "unmounted", [s, c] = DS(a, {
|
|
5858
5858
|
mounted: {
|
|
5859
5859
|
UNMOUNT: "unmounted",
|
|
5860
5860
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -5935,7 +5935,7 @@ function fn({ prop: e, defaultProp: t, onChange: r = () => {
|
|
|
5935
5935
|
];
|
|
5936
5936
|
}
|
|
5937
5937
|
function MS({ defaultProp: e, onChange: t }) {
|
|
5938
|
-
const r =
|
|
5938
|
+
const r = Se(e), [n] = r, i = Ee(n), o = Gr(t);
|
|
5939
5939
|
return _e(() => {
|
|
5940
5940
|
i.current !== n && (o(n), i.current = n);
|
|
5941
5941
|
}, [
|
|
@@ -5960,7 +5960,7 @@ const Nl = "rovingFocusGroup.onEntryFocus", FS = {
|
|
|
5960
5960
|
prop: a,
|
|
5961
5961
|
defaultProp: s,
|
|
5962
5962
|
onChange: c
|
|
5963
|
-
}), [b, w] =
|
|
5963
|
+
}), [b, w] = Se(!1), _ = Gr(l), S = Nm(r), $ = Ee(!1), [R, P] = Se(0);
|
|
5964
5964
|
return _e(() => {
|
|
5965
5965
|
const C = d.current;
|
|
5966
5966
|
if (C)
|
|
@@ -6132,7 +6132,7 @@ const t$ = /* @__PURE__ */ Vt({
|
|
|
6132
6132
|
branches: /* @__PURE__ */ new Set()
|
|
6133
6133
|
}), r$ = /* @__PURE__ */ ne((e, t) => {
|
|
6134
6134
|
var r;
|
|
6135
|
-
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: a, onInteractOutside: s, onDismiss: c, ...l } = e, f = Jt(t$), [d, p] =
|
|
6135
|
+
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: a, onInteractOutside: s, onDismiss: c, ...l } = e, f = Jt(t$), [d, p] = Se(null), g = (r = d == null ? void 0 : d.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, v] = Se({}), m = dr(
|
|
6136
6136
|
t,
|
|
6137
6137
|
(T) => p(T)
|
|
6138
6138
|
), b = Array.from(f.layers), [w] = [
|
|
@@ -6253,7 +6253,7 @@ const Dl = "focusScope.autoFocusOnMount", Ll = "focusScope.autoFocusOnUnmount",
|
|
|
6253
6253
|
bubbles: !1,
|
|
6254
6254
|
cancelable: !0
|
|
6255
6255
|
}, o$ = /* @__PURE__ */ ne((e, t) => {
|
|
6256
|
-
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...a } = e, [s, c] =
|
|
6256
|
+
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...a } = e, [s, c] = Se(null), l = Gr(i), f = Gr(o), d = Ee(null), p = dr(
|
|
6257
6257
|
t,
|
|
6258
6258
|
(m) => c(m)
|
|
6259
6259
|
), g = Ee({
|
|
@@ -6430,7 +6430,7 @@ function f$(e) {
|
|
|
6430
6430
|
);
|
|
6431
6431
|
}
|
|
6432
6432
|
const Bm = "Popper", [jm, Um] = Jr(Bm), [d$, Wm] = jm(Bm), p$ = (e) => {
|
|
6433
|
-
const { __scopePopper: t, children: r } = e, [n, i] =
|
|
6433
|
+
const { __scopePopper: t, children: r } = e, [n, i] = Se(null);
|
|
6434
6434
|
return /* @__PURE__ */ te(d$, {
|
|
6435
6435
|
scope: t,
|
|
6436
6436
|
anchor: n,
|
|
@@ -6445,10 +6445,10 @@ const Bm = "Popper", [jm, Um] = Jr(Bm), [d$, Wm] = jm(Bm), p$ = (e) => {
|
|
|
6445
6445
|
}));
|
|
6446
6446
|
}), zm = "PopperContent", [v$, m$] = jm(zm), y$ = /* @__PURE__ */ ne((e, t) => {
|
|
6447
6447
|
var r, n, i, o, a, s, c, l;
|
|
6448
|
-
const { __scopePopper: f, side: d = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: v = 0, arrowPadding: m = 0, collisionBoundary: b = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: S = !1, avoidCollisions: $ = !0, onPlaced: R, ...P } = e, C = Wm(zm, f), [T, N] =
|
|
6448
|
+
const { __scopePopper: f, side: d = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: v = 0, arrowPadding: m = 0, collisionBoundary: b = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: S = !1, avoidCollisions: $ = !0, onPlaced: R, ...P } = e, C = Wm(zm, f), [T, N] = Se(null), B = dr(
|
|
6449
6449
|
t,
|
|
6450
6450
|
(ae) => N(ae)
|
|
6451
|
-
), [M, L] =
|
|
6451
|
+
), [M, L] = Se(null), Z = km(M), Y = (r = Z == null ? void 0 : Z.width) !== null && r !== void 0 ? r : 0, X = (n = Z == null ? void 0 : Z.height) !== null && n !== void 0 ? n : 0, oe = d + (g !== "center" ? "-" + g : ""), se = typeof w == "number" ? w : {
|
|
6452
6452
|
top: 0,
|
|
6453
6453
|
right: 0,
|
|
6454
6454
|
bottom: 0,
|
|
@@ -6509,7 +6509,7 @@ const Bm = "Popper", [jm, Um] = Jr(Bm), [d$, Wm] = jm(Bm), p$ = (e) => {
|
|
|
6509
6509
|
ie,
|
|
6510
6510
|
F
|
|
6511
6511
|
]);
|
|
6512
|
-
const z = (i = he.arrow) === null || i === void 0 ? void 0 : i.x, K = (o = he.arrow) === null || o === void 0 ? void 0 : o.y, I = ((a = he.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [k, Q] =
|
|
6512
|
+
const z = (i = he.arrow) === null || i === void 0 ? void 0 : i.x, K = (o = he.arrow) === null || o === void 0 ? void 0 : o.y, I = ((a = he.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [k, Q] = Se();
|
|
6513
6513
|
return co(() => {
|
|
6514
6514
|
T && Q(window.getComputedStyle(T).zIndex);
|
|
6515
6515
|
}, [
|
|
@@ -6646,7 +6646,7 @@ const S$ = p$, $$ = g$, C$ = y$, A$ = _$, O$ = /* @__PURE__ */ ne((e, t) => {
|
|
|
6646
6646
|
Um,
|
|
6647
6647
|
Dm
|
|
6648
6648
|
]), mc = Um(), Km = Dm(), [N$, Aa] = pi(vc), [D$, Wf] = pi(vc), L$ = (e) => {
|
|
6649
|
-
const { __scopeMenu: t, open: r = !1, children: n, dir: i, onOpenChange: o, modal: a = !0 } = e, s = mc(t), [c, l] =
|
|
6649
|
+
const { __scopeMenu: t, open: r = !1, children: n, dir: i, onOpenChange: o, modal: a = !0 } = e, s = mc(t), [c, l] = Se(null), f = Ee(!1), d = Gr(o), p = wm(i);
|
|
6650
6650
|
return _e(() => {
|
|
6651
6651
|
const g = () => {
|
|
6652
6652
|
f.current = !0, document.addEventListener("pointerdown", v, {
|
|
@@ -6747,7 +6747,7 @@ const S$ = p$, $$ = g$, C$ = y$, A$ = _$, O$ = /* @__PURE__ */ ne((e, t) => {
|
|
|
6747
6747
|
onDismiss: () => r.onOpenChange(!1)
|
|
6748
6748
|
}));
|
|
6749
6749
|
}), Jm = /* @__PURE__ */ ne((e, t) => {
|
|
6750
|
-
const { __scopeMenu: r, loop: n = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: a, disableOutsidePointerEvents: s, onEntryFocus: c, onEscapeKeyDown: l, onPointerDownOutside: f, onFocusOutside: d, onInteractOutside: p, onDismiss: g, disableOutsideScroll: v, ...m } = e, b = Aa(kn, r), w = Wf(kn, r), _ = mc(r), S = Km(r), $ = R$(r), [R, P] =
|
|
6750
|
+
const { __scopeMenu: r, loop: n = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: a, disableOutsidePointerEvents: s, onEntryFocus: c, onEscapeKeyDown: l, onPointerDownOutside: f, onFocusOutside: d, onInteractOutside: p, onDismiss: g, disableOutsideScroll: v, ...m } = e, b = Aa(kn, r), w = Wf(kn, r), _ = mc(r), S = Km(r), $ = R$(r), [R, P] = Se(null), C = Ee(null), T = dr(t, C, b.onContentChange), N = Ee(0), B = Ee(""), M = Ee(0), L = Ee(null), Z = Ee("right"), Y = Ee(0), X = v ? tm : vo, oe = v ? {
|
|
6751
6751
|
as: kt,
|
|
6752
6752
|
allowPinchZoom: !0
|
|
6753
6753
|
} : void 0, se = (le) => {
|
|
@@ -6909,7 +6909,7 @@ const S$ = p$, $$ = g$, C$ = y$, A$ = _$, O$ = /* @__PURE__ */ ne((e, t) => {
|
|
|
6909
6909
|
})
|
|
6910
6910
|
}));
|
|
6911
6911
|
}), K$ = /* @__PURE__ */ ne((e, t) => {
|
|
6912
|
-
const { __scopeMenu: r, disabled: n = !1, textValue: i, ...o } = e, a = Ym(Lu, r), s = Km(r), c = Ee(null), l = dr(t, c), [f, d] =
|
|
6912
|
+
const { __scopeMenu: r, disabled: n = !1, textValue: i, ...o } = e, a = Ym(Lu, r), s = Km(r), c = Ee(null), l = dr(t, c), [f, d] = Se(!1), [p, g] = Se("");
|
|
6913
6913
|
return _e(() => {
|
|
6914
6914
|
const v = c.current;
|
|
6915
6915
|
if (v) {
|
|
@@ -7184,7 +7184,7 @@ function HC(e) {
|
|
|
7184
7184
|
]);
|
|
7185
7185
|
}
|
|
7186
7186
|
function r0(e) {
|
|
7187
|
-
const [t, r] =
|
|
7187
|
+
const [t, r] = Se(void 0);
|
|
7188
7188
|
return Hr(() => {
|
|
7189
7189
|
if (e) {
|
|
7190
7190
|
r({
|
|
@@ -7216,7 +7216,7 @@ function r0(e) {
|
|
|
7216
7216
|
]), t;
|
|
7217
7217
|
}
|
|
7218
7218
|
const n0 = "Checkbox", [VC, uj] = zn(n0), [GC, KC] = VC(n0), qC = /* @__PURE__ */ ne((e, t) => {
|
|
7219
|
-
const { __scopeCheckbox: r, name: n, checked: i, defaultChecked: o, required: a, disabled: s, value: c = "on", onCheckedChange: l, ...f } = e, [d, p] =
|
|
7219
|
+
const { __scopeCheckbox: r, name: n, checked: i, defaultChecked: o, required: a, disabled: s, value: c = "on", onCheckedChange: l, ...f } = e, [d, p] = Se(null), g = Dt(
|
|
7220
7220
|
t,
|
|
7221
7221
|
(S) => p(S)
|
|
7222
7222
|
), v = Ee(!1), m = d ? !!d.closest("form") : !0, [b = !1, w] = fc({
|
|
@@ -7330,7 +7330,7 @@ function eA(e) {
|
|
|
7330
7330
|
]);
|
|
7331
7331
|
}
|
|
7332
7332
|
const o0 = "Switch", [tA, fj] = Jr(o0), [rA, nA] = tA(o0), iA = /* @__PURE__ */ ne((e, t) => {
|
|
7333
|
-
const { __scopeSwitch: r, name: n, checked: i, defaultChecked: o, required: a, disabled: s, value: c = "on", onCheckedChange: l, ...f } = e, [d, p] =
|
|
7333
|
+
const { __scopeSwitch: r, name: n, checked: i, defaultChecked: o, required: a, disabled: s, value: c = "on", onCheckedChange: l, ...f } = e, [d, p] = Se(null), g = dr(
|
|
7334
7334
|
t,
|
|
7335
7335
|
(_) => p(_)
|
|
7336
7336
|
), v = Ee(!1), m = d ? !!d.closest("form") : !0, [b = !1, w] = fn({
|
|
@@ -7469,7 +7469,7 @@ var uA = function(e) {
|
|
|
7469
7469
|
};
|
|
7470
7470
|
}, [t, n, r]);
|
|
7471
7471
|
}, pA = function(e) {
|
|
7472
|
-
var t =
|
|
7472
|
+
var t = Se(s0), r = t[0], n = t[1], i = Ee(), o = fA({ inputRef: e, previousRef: i, setSelection: n });
|
|
7473
7473
|
return dA({ inputRef: e, previousRef: i, handler: o }), r;
|
|
7474
7474
|
}, Bu = { exports: {} }, Go = {};
|
|
7475
7475
|
/**
|
|
@@ -7522,16 +7522,16 @@ function gA() {
|
|
|
7522
7522
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
7523
7523
|
function _(q) {
|
|
7524
7524
|
{
|
|
7525
|
-
for (var pe = arguments.length,
|
|
7526
|
-
|
|
7527
|
-
S("error", q,
|
|
7525
|
+
for (var pe = arguments.length, $e = new Array(pe > 1 ? pe - 1 : 0), Be = 1; Be < pe; Be++)
|
|
7526
|
+
$e[Be - 1] = arguments[Be];
|
|
7527
|
+
S("error", q, $e);
|
|
7528
7528
|
}
|
|
7529
7529
|
}
|
|
7530
|
-
function S(q, pe,
|
|
7530
|
+
function S(q, pe, $e) {
|
|
7531
7531
|
{
|
|
7532
7532
|
var Be = w.ReactDebugCurrentFrame, et = Be.getStackAddendum();
|
|
7533
|
-
et !== "" && (pe += "%s",
|
|
7534
|
-
var qe =
|
|
7533
|
+
et !== "" && (pe += "%s", $e = $e.concat([et]));
|
|
7534
|
+
var qe = $e.map(function(Xe) {
|
|
7535
7535
|
return String(Xe);
|
|
7536
7536
|
});
|
|
7537
7537
|
qe.unshift("Warning: " + pe), Function.prototype.apply.call(console[q], console, qe);
|
|
@@ -7546,12 +7546,12 @@ function gA() {
|
|
|
7546
7546
|
// with.
|
|
7547
7547
|
q.$$typeof === N || q.getModuleId !== void 0));
|
|
7548
7548
|
}
|
|
7549
|
-
function M(q, pe,
|
|
7549
|
+
function M(q, pe, $e) {
|
|
7550
7550
|
var Be = q.displayName;
|
|
7551
7551
|
if (Be)
|
|
7552
7552
|
return Be;
|
|
7553
7553
|
var et = pe.displayName || pe.name || "";
|
|
7554
|
-
return et !== "" ?
|
|
7554
|
+
return et !== "" ? $e + "(" + et + ")" : $e;
|
|
7555
7555
|
}
|
|
7556
7556
|
function L(q) {
|
|
7557
7557
|
return q.displayName || "Context";
|
|
@@ -7583,8 +7583,8 @@ function gA() {
|
|
|
7583
7583
|
var pe = q;
|
|
7584
7584
|
return L(pe) + ".Consumer";
|
|
7585
7585
|
case a:
|
|
7586
|
-
var
|
|
7587
|
-
return L(
|
|
7586
|
+
var $e = q;
|
|
7587
|
+
return L($e._context) + ".Provider";
|
|
7588
7588
|
case c:
|
|
7589
7589
|
return M(q, q.render, "ForwardRef");
|
|
7590
7590
|
case d:
|
|
@@ -7664,7 +7664,7 @@ function gA() {
|
|
|
7664
7664
|
}
|
|
7665
7665
|
}
|
|
7666
7666
|
var H = w.ReactCurrentDispatcher, G;
|
|
7667
|
-
function F(q, pe,
|
|
7667
|
+
function F(q, pe, $e) {
|
|
7668
7668
|
{
|
|
7669
7669
|
if (G === void 0)
|
|
7670
7670
|
try {
|
|
@@ -7686,9 +7686,9 @@ function gA() {
|
|
|
7686
7686
|
if (!q || z)
|
|
7687
7687
|
return "";
|
|
7688
7688
|
{
|
|
7689
|
-
var
|
|
7690
|
-
if (
|
|
7691
|
-
return
|
|
7689
|
+
var $e = K.get(q);
|
|
7690
|
+
if ($e !== void 0)
|
|
7691
|
+
return $e;
|
|
7692
7692
|
}
|
|
7693
7693
|
var Be;
|
|
7694
7694
|
z = !0;
|
|
@@ -7753,14 +7753,14 @@ function gA() {
|
|
|
7753
7753
|
var sr = q ? q.displayName || q.name : "", Ti = sr ? F(sr) : "";
|
|
7754
7754
|
return typeof q == "function" && K.set(q, Ti), Ti;
|
|
7755
7755
|
}
|
|
7756
|
-
function Q(q, pe,
|
|
7756
|
+
function Q(q, pe, $e) {
|
|
7757
7757
|
return k(q, !1);
|
|
7758
7758
|
}
|
|
7759
7759
|
function ae(q) {
|
|
7760
7760
|
var pe = q.prototype;
|
|
7761
7761
|
return !!(pe && pe.isReactComponent);
|
|
7762
7762
|
}
|
|
7763
|
-
function ge(q, pe,
|
|
7763
|
+
function ge(q, pe, $e) {
|
|
7764
7764
|
if (q == null)
|
|
7765
7765
|
return "";
|
|
7766
7766
|
if (typeof q == "function")
|
|
@@ -7778,11 +7778,11 @@ function gA() {
|
|
|
7778
7778
|
case c:
|
|
7779
7779
|
return Q(q.render);
|
|
7780
7780
|
case d:
|
|
7781
|
-
return ge(q.type, pe,
|
|
7781
|
+
return ge(q.type, pe, $e);
|
|
7782
7782
|
case p: {
|
|
7783
7783
|
var Be = q, et = Be._payload, qe = Be._init;
|
|
7784
7784
|
try {
|
|
7785
|
-
return ge(qe(et), pe,
|
|
7785
|
+
return ge(qe(et), pe, $e);
|
|
7786
7786
|
} catch {
|
|
7787
7787
|
}
|
|
7788
7788
|
}
|
|
@@ -7792,12 +7792,12 @@ function gA() {
|
|
|
7792
7792
|
var be = Object.prototype.hasOwnProperty, Ae = {}, Oe = w.ReactDebugCurrentFrame;
|
|
7793
7793
|
function ce(q) {
|
|
7794
7794
|
if (q) {
|
|
7795
|
-
var pe = q._owner,
|
|
7796
|
-
Oe.setExtraStackFrame(
|
|
7795
|
+
var pe = q._owner, $e = ge(q.type, q._source, pe ? pe.type : null);
|
|
7796
|
+
Oe.setExtraStackFrame($e);
|
|
7797
7797
|
} else
|
|
7798
7798
|
Oe.setExtraStackFrame(null);
|
|
7799
7799
|
}
|
|
7800
|
-
function je(q, pe,
|
|
7800
|
+
function je(q, pe, $e, Be, et) {
|
|
7801
7801
|
{
|
|
7802
7802
|
var qe = Function.call.bind(be);
|
|
7803
7803
|
for (var Xe in q)
|
|
@@ -7805,14 +7805,14 @@ function gA() {
|
|
|
7805
7805
|
var Ye = void 0;
|
|
7806
7806
|
try {
|
|
7807
7807
|
if (typeof q[Xe] != "function") {
|
|
7808
|
-
var Lt = Error((Be || "React class") + ": " +
|
|
7808
|
+
var Lt = Error((Be || "React class") + ": " + $e + " type `" + Xe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof q[Xe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
7809
7809
|
throw Lt.name = "Invariant Violation", Lt;
|
|
7810
7810
|
}
|
|
7811
|
-
Ye = q[Xe](pe, Xe, Be,
|
|
7811
|
+
Ye = q[Xe](pe, Xe, Be, $e, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
7812
7812
|
} catch (_t) {
|
|
7813
7813
|
Ye = _t;
|
|
7814
7814
|
}
|
|
7815
|
-
Ye && !(Ye instanceof Error) && (ce(et), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Be || "React class",
|
|
7815
|
+
Ye && !(Ye instanceof Error) && (ce(et), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Be || "React class", $e, Xe, typeof Ye), ce(null)), Ye instanceof Error && !(Ye.message in Ae) && (Ae[Ye.message] = !0, ce(et), _("Failed %s type: %s", $e, Ye.message), ce(null));
|
|
7816
7816
|
}
|
|
7817
7817
|
}
|
|
7818
7818
|
}
|
|
@@ -7822,8 +7822,8 @@ function gA() {
|
|
|
7822
7822
|
}
|
|
7823
7823
|
function Ge(q) {
|
|
7824
7824
|
{
|
|
7825
|
-
var pe = typeof Symbol == "function" && Symbol.toStringTag,
|
|
7826
|
-
return
|
|
7825
|
+
var pe = typeof Symbol == "function" && Symbol.toStringTag, $e = pe && q[Symbol.toStringTag] || q.constructor.name || "Object";
|
|
7826
|
+
return $e;
|
|
7827
7827
|
}
|
|
7828
7828
|
}
|
|
7829
7829
|
function bt(q) {
|
|
@@ -7865,40 +7865,40 @@ function gA() {
|
|
|
7865
7865
|
}
|
|
7866
7866
|
function ye(q, pe) {
|
|
7867
7867
|
if (typeof q.ref == "string" && y.current && pe && y.current.stateNode !== pe) {
|
|
7868
|
-
var
|
|
7869
|
-
O[
|
|
7868
|
+
var $e = Z(y.current.type);
|
|
7869
|
+
O[$e] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(y.current.type), q.ref), O[$e] = !0);
|
|
7870
7870
|
}
|
|
7871
7871
|
}
|
|
7872
7872
|
function Me(q, pe) {
|
|
7873
7873
|
{
|
|
7874
|
-
var
|
|
7874
|
+
var $e = function() {
|
|
7875
7875
|
h || (h = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", pe));
|
|
7876
7876
|
};
|
|
7877
|
-
|
|
7878
|
-
get:
|
|
7877
|
+
$e.isReactWarning = !0, Object.defineProperty(q, "key", {
|
|
7878
|
+
get: $e,
|
|
7879
7879
|
configurable: !0
|
|
7880
7880
|
});
|
|
7881
7881
|
}
|
|
7882
7882
|
}
|
|
7883
7883
|
function Ie(q, pe) {
|
|
7884
7884
|
{
|
|
7885
|
-
var
|
|
7885
|
+
var $e = function() {
|
|
7886
7886
|
E || (E = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", pe));
|
|
7887
7887
|
};
|
|
7888
|
-
|
|
7889
|
-
get:
|
|
7888
|
+
$e.isReactWarning = !0, Object.defineProperty(q, "ref", {
|
|
7889
|
+
get: $e,
|
|
7890
7890
|
configurable: !0
|
|
7891
7891
|
});
|
|
7892
7892
|
}
|
|
7893
7893
|
}
|
|
7894
|
-
var Le = function(q, pe,
|
|
7894
|
+
var Le = function(q, pe, $e, Be, et, qe, Xe) {
|
|
7895
7895
|
var Ye = {
|
|
7896
7896
|
// This tag allows us to uniquely identify this as a React Element
|
|
7897
7897
|
$$typeof: t,
|
|
7898
7898
|
// Built-in properties that belong on the element
|
|
7899
7899
|
type: q,
|
|
7900
7900
|
key: pe,
|
|
7901
|
-
ref:
|
|
7901
|
+
ref: $e,
|
|
7902
7902
|
props: Xe,
|
|
7903
7903
|
// Record the component responsible for creating this element.
|
|
7904
7904
|
_owner: qe
|
|
@@ -7920,10 +7920,10 @@ function gA() {
|
|
|
7920
7920
|
value: et
|
|
7921
7921
|
}), Object.freeze && (Object.freeze(Ye.props), Object.freeze(Ye)), Ye;
|
|
7922
7922
|
};
|
|
7923
|
-
function Re(q, pe,
|
|
7923
|
+
function Re(q, pe, $e, Be, et) {
|
|
7924
7924
|
{
|
|
7925
7925
|
var qe, Xe = {}, Ye = null, Lt = null;
|
|
7926
|
-
|
|
7926
|
+
$e !== void 0 && (Ve($e), Ye = "" + $e), W(pe) && (Ve(pe.key), Ye = "" + pe.key), D(pe) && (Lt = pe.ref, ye(pe, et));
|
|
7927
7927
|
for (qe in pe)
|
|
7928
7928
|
be.call(pe, qe) && !u.hasOwnProperty(qe) && (Xe[qe] = pe[qe]);
|
|
7929
7929
|
if (q && q.defaultProps) {
|
|
@@ -7941,8 +7941,8 @@ function gA() {
|
|
|
7941
7941
|
var en = w.ReactCurrentOwner, Si = w.ReactDebugCurrentFrame;
|
|
7942
7942
|
function hr(q) {
|
|
7943
7943
|
if (q) {
|
|
7944
|
-
var pe = q._owner,
|
|
7945
|
-
Si.setExtraStackFrame(
|
|
7944
|
+
var pe = q._owner, $e = ge(q.type, q._source, pe ? pe.type : null);
|
|
7945
|
+
Si.setExtraStackFrame($e);
|
|
7946
7946
|
} else
|
|
7947
7947
|
Si.setExtraStackFrame(null);
|
|
7948
7948
|
}
|
|
@@ -7966,10 +7966,10 @@ Check the render method of \`` + q + "`.";
|
|
|
7966
7966
|
function Po(q) {
|
|
7967
7967
|
{
|
|
7968
7968
|
if (q !== void 0) {
|
|
7969
|
-
var pe = q.fileName.replace(/^.*[\\\/]/, ""),
|
|
7969
|
+
var pe = q.fileName.replace(/^.*[\\\/]/, ""), $e = q.lineNumber;
|
|
7970
7970
|
return `
|
|
7971
7971
|
|
|
7972
|
-
Check your code at ` + pe + ":" +
|
|
7972
|
+
Check your code at ` + pe + ":" + $e + ".";
|
|
7973
7973
|
}
|
|
7974
7974
|
return "";
|
|
7975
7975
|
}
|
|
@@ -7979,10 +7979,10 @@ Check your code at ` + pe + ":" + Se + ".";
|
|
|
7979
7979
|
{
|
|
7980
7980
|
var pe = Bt();
|
|
7981
7981
|
if (!pe) {
|
|
7982
|
-
var
|
|
7983
|
-
|
|
7982
|
+
var $e = typeof q == "string" ? q : q.displayName || q.name;
|
|
7983
|
+
$e && (pe = `
|
|
7984
7984
|
|
|
7985
|
-
Check the top-level render call using <` +
|
|
7985
|
+
Check the top-level render call using <` + $e + ">.");
|
|
7986
7986
|
}
|
|
7987
7987
|
return pe;
|
|
7988
7988
|
}
|
|
@@ -7992,12 +7992,12 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
7992
7992
|
if (!q._store || q._store.validated || q.key != null)
|
|
7993
7993
|
return;
|
|
7994
7994
|
q._store.validated = !0;
|
|
7995
|
-
var
|
|
7996
|
-
if ($i[
|
|
7995
|
+
var $e = Ro(pe);
|
|
7996
|
+
if ($i[$e])
|
|
7997
7997
|
return;
|
|
7998
|
-
$i[
|
|
7998
|
+
$i[$e] = !0;
|
|
7999
7999
|
var Be = "";
|
|
8000
|
-
q && q._owner && q._owner !== en.current && (Be = " It was passed a child from " + Z(q._owner.type) + "."), hr(q), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
8000
|
+
q && q._owner && q._owner !== en.current && (Be = " It was passed a child from " + Z(q._owner.type) + "."), hr(q), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $e, Be), hr(null);
|
|
8001
8001
|
}
|
|
8002
8002
|
}
|
|
8003
8003
|
function Ai(q, pe) {
|
|
@@ -8005,8 +8005,8 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
8005
8005
|
if (typeof q != "object")
|
|
8006
8006
|
return;
|
|
8007
8007
|
if (ke(q))
|
|
8008
|
-
for (var
|
|
8009
|
-
var Be = q[
|
|
8008
|
+
for (var $e = 0; $e < q.length; $e++) {
|
|
8009
|
+
var Be = q[$e];
|
|
8010
8010
|
Hn(Be) && Ci(Be, pe);
|
|
8011
8011
|
}
|
|
8012
8012
|
else if (Hn(q))
|
|
@@ -8024,18 +8024,18 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
8024
8024
|
var pe = q.type;
|
|
8025
8025
|
if (pe == null || typeof pe == "string")
|
|
8026
8026
|
return;
|
|
8027
|
-
var
|
|
8027
|
+
var $e;
|
|
8028
8028
|
if (typeof pe == "function")
|
|
8029
|
-
|
|
8029
|
+
$e = pe.propTypes;
|
|
8030
8030
|
else if (typeof pe == "object" && (pe.$$typeof === c || // Note: Memo only checks outer props here.
|
|
8031
8031
|
// Inner props are checked in the reconciler.
|
|
8032
8032
|
pe.$$typeof === d))
|
|
8033
|
-
|
|
8033
|
+
$e = pe.propTypes;
|
|
8034
8034
|
else
|
|
8035
8035
|
return;
|
|
8036
|
-
if (
|
|
8036
|
+
if ($e) {
|
|
8037
8037
|
var Be = Z(pe);
|
|
8038
|
-
je(
|
|
8038
|
+
je($e, q.props, "prop", Be, q);
|
|
8039
8039
|
} else if (pe.PropTypes !== void 0 && !Qt) {
|
|
8040
8040
|
Qt = !0;
|
|
8041
8041
|
var et = Z(pe);
|
|
@@ -8046,8 +8046,8 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
8046
8046
|
}
|
|
8047
8047
|
function ko(q) {
|
|
8048
8048
|
{
|
|
8049
|
-
for (var pe = Object.keys(q.props),
|
|
8050
|
-
var Be = pe[
|
|
8049
|
+
for (var pe = Object.keys(q.props), $e = 0; $e < pe.length; $e++) {
|
|
8050
|
+
var Be = pe[$e];
|
|
8051
8051
|
if (Be !== "children" && Be !== "key") {
|
|
8052
8052
|
hr(q), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Be), hr(null);
|
|
8053
8053
|
break;
|
|
@@ -8056,7 +8056,7 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
8056
8056
|
q.ref !== null && (hr(q), _("Invalid attribute `ref` supplied to `React.Fragment`."), hr(null));
|
|
8057
8057
|
}
|
|
8058
8058
|
}
|
|
8059
|
-
function Oi(q, pe,
|
|
8059
|
+
function Oi(q, pe, $e, Be, et, qe) {
|
|
8060
8060
|
{
|
|
8061
8061
|
var Xe = B(q);
|
|
8062
8062
|
if (!Xe) {
|
|
@@ -8067,7 +8067,7 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
8067
8067
|
var _t;
|
|
8068
8068
|
q === null ? _t = "null" : ke(q) ? _t = "array" : q !== void 0 && q.$$typeof === t ? (_t = "<" + (Z(q.type) || "Unknown") + " />", Ye = " Did you accidentally export a JSX literal instead of a component?") : _t = typeof q, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _t, Ye);
|
|
8069
8069
|
}
|
|
8070
|
-
var Ct = Re(q, pe,
|
|
8070
|
+
var Ct = Re(q, pe, $e, et, qe);
|
|
8071
8071
|
if (Ct == null)
|
|
8072
8072
|
return Ct;
|
|
8073
8073
|
if (Xe) {
|
|
@@ -8086,11 +8086,11 @@ Check the top-level render call using <` + Se + ">.");
|
|
|
8086
8086
|
return q === n ? ko(Ct) : Pt(Ct), Ct;
|
|
8087
8087
|
}
|
|
8088
8088
|
}
|
|
8089
|
-
function No(q, pe,
|
|
8090
|
-
return Oi(q, pe,
|
|
8089
|
+
function No(q, pe, $e) {
|
|
8090
|
+
return Oi(q, pe, $e, !0);
|
|
8091
8091
|
}
|
|
8092
|
-
function Do(q, pe,
|
|
8093
|
-
return Oi(q, pe,
|
|
8092
|
+
function Do(q, pe, $e) {
|
|
8093
|
+
return Oi(q, pe, $e, !1);
|
|
8094
8094
|
}
|
|
8095
8095
|
var Lo = Do, er = No;
|
|
8096
8096
|
Ko.Fragment = n, Ko.jsx = Lo, Ko.jsxs = er;
|
|
@@ -8331,7 +8331,7 @@ const d0 = "Collapsible", [FA, pj] = zn(d0), [BA, zf] = FA(d0), jA = /* @__PURE_
|
|
|
8331
8331
|
}))
|
|
8332
8332
|
);
|
|
8333
8333
|
}), HA = /* @__PURE__ */ ne((e, t) => {
|
|
8334
|
-
const { __scopeCollapsible: r, present: n, children: i, ...o } = e, a = zf(p0, r), [s, c] =
|
|
8334
|
+
const { __scopeCollapsible: r, present: n, children: i, ...o } = e, a = zf(p0, r), [s, c] = Se(n), l = Ee(null), f = Dt(t, l), d = Ee(0), p = d.current, g = Ee(0), v = g.current, m = a.open || s, b = Ee(m), w = Ee();
|
|
8335
8335
|
return _e(() => {
|
|
8336
8336
|
const _ = requestAnimationFrame(
|
|
8337
8337
|
() => b.current = !1
|
|
@@ -8437,7 +8437,7 @@ function nO(e, t) {
|
|
|
8437
8437
|
}, e);
|
|
8438
8438
|
}
|
|
8439
8439
|
const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__ */ ne((e, t) => {
|
|
8440
|
-
const { __scopeScrollArea: r, type: n = "hover", dir: i, scrollHideDelay: o = 600, ...a } = e, [s, c] =
|
|
8440
|
+
const { __scopeScrollArea: r, type: n = "hover", dir: i, scrollHideDelay: o = 600, ...a } = e, [s, c] = Se(null), [l, f] = Se(null), [d, p] = Se(null), [g, v] = Se(null), [m, b] = Se(null), [w, _] = Se(0), [S, $] = Se(0), [R, P] = Se(!1), [C, T] = Se(!1), N = Dt(
|
|
8441
8441
|
t,
|
|
8442
8442
|
(M) => c(M)
|
|
8443
8443
|
), B = Rx(i);
|
|
@@ -8527,7 +8527,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8527
8527
|
ref: t
|
|
8528
8528
|
})) : null;
|
|
8529
8529
|
}), lO = /* @__PURE__ */ ne((e, t) => {
|
|
8530
|
-
const { forceMount: r, ...n } = e, i = wr(hn, e.__scopeScrollArea), [o, a] =
|
|
8530
|
+
const { forceMount: r, ...n } = e, i = wr(hn, e.__scopeScrollArea), [o, a] = Se(!1);
|
|
8531
8531
|
return _e(() => {
|
|
8532
8532
|
const s = i.scrollArea;
|
|
8533
8533
|
let c = 0;
|
|
@@ -8619,7 +8619,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8619
8619
|
)
|
|
8620
8620
|
})));
|
|
8621
8621
|
}), b0 = /* @__PURE__ */ ne((e, t) => {
|
|
8622
|
-
const r = wr(hn, e.__scopeScrollArea), { forceMount: n, ...i } = e, [o, a] =
|
|
8622
|
+
const r = wr(hn, e.__scopeScrollArea), { forceMount: n, ...i } = e, [o, a] = Se(!1), s = e.orientation === "horizontal", c = wc(() => {
|
|
8623
8623
|
if (r.viewport) {
|
|
8624
8624
|
const l = r.viewport.offsetWidth < r.viewport.scrollWidth, f = r.viewport.offsetHeight < r.viewport.scrollHeight;
|
|
8625
8625
|
a(s ? l : f);
|
|
@@ -8633,7 +8633,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8633
8633
|
ref: t
|
|
8634
8634
|
})));
|
|
8635
8635
|
}), Vf = /* @__PURE__ */ ne((e, t) => {
|
|
8636
|
-
const { orientation: r = "vertical", ...n } = e, i = wr(hn, e.__scopeScrollArea), o = Ee(null), a = Ee(0), [s, c] =
|
|
8636
|
+
const { orientation: r = "vertical", ...n } = e, i = wr(hn, e.__scopeScrollArea), o = Ee(null), a = Ee(0), [s, c] = Se({
|
|
8637
8637
|
content: 0,
|
|
8638
8638
|
viewport: 0,
|
|
8639
8639
|
scrollbar: {
|
|
@@ -8683,7 +8683,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8683
8683
|
}
|
|
8684
8684
|
})) : null;
|
|
8685
8685
|
}), fO = /* @__PURE__ */ ne((e, t) => {
|
|
8686
|
-
const { sizes: r, onSizesChange: n, ...i } = e, o = wr(hn, e.__scopeScrollArea), [a, s] =
|
|
8686
|
+
const { sizes: r, onSizesChange: n, ...i } = e, o = wr(hn, e.__scopeScrollArea), [a, s] = Se(), c = Ee(null), l = Dt(t, c, o.onScrollbarXChange);
|
|
8687
8687
|
return _e(() => {
|
|
8688
8688
|
c.current && s(getComputedStyle(c.current));
|
|
8689
8689
|
}, [
|
|
@@ -8721,7 +8721,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8721
8721
|
}
|
|
8722
8722
|
}));
|
|
8723
8723
|
}), dO = /* @__PURE__ */ ne((e, t) => {
|
|
8724
|
-
const { sizes: r, onSizesChange: n, ...i } = e, o = wr(hn, e.__scopeScrollArea), [a, s] =
|
|
8724
|
+
const { sizes: r, onSizesChange: n, ...i } = e, o = wr(hn, e.__scopeScrollArea), [a, s] = Se(), c = Ee(null), l = Dt(t, c, o.onScrollbarYChange);
|
|
8725
8725
|
return _e(() => {
|
|
8726
8726
|
c.current && s(getComputedStyle(c.current));
|
|
8727
8727
|
}, [
|
|
@@ -8760,7 +8760,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8760
8760
|
}
|
|
8761
8761
|
}));
|
|
8762
8762
|
}), [pO, w0] = y0(hn), _0 = /* @__PURE__ */ ne((e, t) => {
|
|
8763
|
-
const { __scopeScrollArea: r, sizes: n, hasThumb: i, onThumbChange: o, onThumbPointerUp: a, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: f, onResize: d, ...p } = e, g = wr(hn, r), [v, m] =
|
|
8763
|
+
const { __scopeScrollArea: r, sizes: n, hasThumb: i, onThumbChange: o, onThumbPointerUp: a, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: f, onResize: d, ...p } = e, g = wr(hn, r), [v, m] = Se(null), b = Dt(
|
|
8764
8764
|
t,
|
|
8765
8765
|
(N) => m(N)
|
|
8766
8766
|
), w = Ee(null), _ = Ee(""), S = g.viewport, $ = n.content - n.viewport, R = ir(f), P = ir(c), C = wc(d, 10);
|
|
@@ -8867,7 +8867,7 @@ const m0 = "ScrollArea", [y0, vj] = zn(m0), [iO, wr] = y0(m0), oO = /* @__PURE__
|
|
|
8867
8867
|
ref: t
|
|
8868
8868
|
})) : null;
|
|
8869
8869
|
}), mO = /* @__PURE__ */ ne((e, t) => {
|
|
8870
|
-
const { __scopeScrollArea: r, ...n } = e, i = wr(E0, r), [o, a] =
|
|
8870
|
+
const { __scopeScrollArea: r, ...n } = e, i = wr(E0, r), [o, a] = Se(0), [s, c] = Se(0), l = !!(o && s);
|
|
8871
8871
|
return uo(i.scrollbarX, () => {
|
|
8872
8872
|
var f;
|
|
8873
8873
|
const d = ((f = i.scrollbarX) === null || f === void 0 ? void 0 : f.offsetHeight) || 0;
|
|
@@ -9534,7 +9534,7 @@ const HO = (e) => {
|
|
|
9534
9534
|
points: "0,0 30,0 15,10"
|
|
9535
9535
|
}));
|
|
9536
9536
|
}), GO = VO, D0 = "Popper", [qf, L0] = zn(D0), [KO, M0] = qf(D0), qO = (e) => {
|
|
9537
|
-
const { __scopePopper: t, children: r } = e, [n, i] =
|
|
9537
|
+
const { __scopePopper: t, children: r } = e, [n, i] = Se(null);
|
|
9538
9538
|
return /* @__PURE__ */ te(KO, {
|
|
9539
9539
|
scope: t,
|
|
9540
9540
|
anchor: n,
|
|
@@ -9552,10 +9552,10 @@ const HO = (e) => {
|
|
|
9552
9552
|
positionUpdateFns: /* @__PURE__ */ new Set()
|
|
9553
9553
|
}), t5 = /* @__PURE__ */ ne((e, t) => {
|
|
9554
9554
|
var r, n, i, o, a, s, c, l;
|
|
9555
|
-
const { __scopePopper: f, side: d = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: v = 0, arrowPadding: m = 0, collisionBoundary: b = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: S = !1, avoidCollisions: $ = !0, onPlaced: R, ...P } = e, C = M0(Hs, f), [T, N] =
|
|
9555
|
+
const { __scopePopper: f, side: d = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: v = 0, arrowPadding: m = 0, collisionBoundary: b = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: S = !1, avoidCollisions: $ = !0, onPlaced: R, ...P } = e, C = M0(Hs, f), [T, N] = Se(null), B = Dt(
|
|
9556
9556
|
t,
|
|
9557
9557
|
(ke) => N(ke)
|
|
9558
|
-
), [M, L] =
|
|
9558
|
+
), [M, L] = Se(null), Z = r0(M), Y = (r = Z == null ? void 0 : Z.width) !== null && r !== void 0 ? r : 0, X = (n = Z == null ? void 0 : Z.height) !== null && n !== void 0 ? n : 0, oe = d + (g !== "center" ? "-" + g : ""), se = typeof w == "number" ? w : {
|
|
9559
9559
|
top: 0,
|
|
9560
9560
|
right: 0,
|
|
9561
9561
|
bottom: 0,
|
|
@@ -9620,7 +9620,7 @@ const HO = (e) => {
|
|
|
9620
9620
|
z,
|
|
9621
9621
|
k
|
|
9622
9622
|
]);
|
|
9623
|
-
const Q = (i = G.arrow) === null || i === void 0 ? void 0 : i.x, ae = (o = G.arrow) === null || o === void 0 ? void 0 : o.y, ge = ((a = G.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [be, Ae] =
|
|
9623
|
+
const Q = (i = G.arrow) === null || i === void 0 ? void 0 : i.x, ae = (o = G.arrow) === null || o === void 0 ? void 0 : o.y, ge = ((a = G.arrow) === null || a === void 0 ? void 0 : a.centerOffset) !== 0, [be, Ae] = Se();
|
|
9624
9624
|
Hr(() => {
|
|
9625
9625
|
T && Ae(window.getComputedStyle(T).zIndex);
|
|
9626
9626
|
}, [
|
|
@@ -9787,7 +9787,7 @@ const l5 = qO, u5 = JO, f5 = t5, d5 = i5, p5 = /* @__PURE__ */ ne((e, t) => /* @
|
|
|
9787
9787
|
}))), h5 = p5, [xc, mj] = zn("Tooltip", [
|
|
9788
9788
|
L0
|
|
9789
9789
|
]), Sc = L0(), g5 = "TooltipProvider", v5 = 700, Vu = "tooltip.open", [m5, Yf] = xc(g5), y5 = (e) => {
|
|
9790
|
-
const { __scopeTooltip: t, delayDuration: r = v5, skipDelayDuration: n = 300, disableHoverableContent: i = !1, children: o } = e, [a, s] =
|
|
9790
|
+
const { __scopeTooltip: t, delayDuration: r = v5, skipDelayDuration: n = 300, disableHoverableContent: i = !1, children: o } = e, [a, s] = Se(!0), c = Ee(!1), l = Ee(0);
|
|
9791
9791
|
return _e(() => {
|
|
9792
9792
|
const f = l.current;
|
|
9793
9793
|
return () => window.clearTimeout(f);
|
|
@@ -9813,7 +9813,7 @@ const l5 = qO, u5 = JO, f5 = t5, d5 = i5, p5 = /* @__PURE__ */ ne((e, t) => /* @
|
|
|
9813
9813
|
disableHoverableContent: i
|
|
9814
9814
|
}, o);
|
|
9815
9815
|
}, Jf = "Tooltip", [b5, Pa] = xc(Jf), w5 = (e) => {
|
|
9816
|
-
const { __scopeTooltip: t, children: r, open: n, defaultOpen: i = !1, onOpenChange: o, disableHoverableContent: a, delayDuration: s } = e, c = Yf(Jf, e.__scopeTooltip), l = Sc(t), [f, d] =
|
|
9816
|
+
const { __scopeTooltip: t, children: r, open: n, defaultOpen: i = !1, onOpenChange: o, disableHoverableContent: a, delayDuration: s } = e, c = Yf(Jf, e.__scopeTooltip), l = Sc(t), [f, d] = Se(null), p = oa(), g = Ee(0), v = a ?? c.disableHoverableContent, m = s ?? c.delayDuration, b = Ee(!1), [w = !1, _] = fc({
|
|
9817
9817
|
prop: n,
|
|
9818
9818
|
defaultProp: i,
|
|
9819
9819
|
onChange: (C) => {
|
|
@@ -9921,7 +9921,7 @@ const l5 = qO, u5 = JO, f5 = t5, d5 = i5, p5 = /* @__PURE__ */ ne((e, t) => /* @
|
|
|
9921
9921
|
ref: t
|
|
9922
9922
|
})));
|
|
9923
9923
|
}), C5 = /* @__PURE__ */ ne((e, t) => {
|
|
9924
|
-
const r = Pa(ya, e.__scopeTooltip), n = Yf(ya, e.__scopeTooltip), i = Ee(null), o = Dt(t, i), [a, s] =
|
|
9924
|
+
const r = Pa(ya, e.__scopeTooltip), n = Yf(ya, e.__scopeTooltip), i = Ee(null), o = Dt(t, i), [a, s] = Se(null), { trigger: c, onClose: l } = r, f = i.current, { onPointerInTransitChange: d } = n, p = De(() => {
|
|
9925
9925
|
s(null), d(!1);
|
|
9926
9926
|
}, [
|
|
9927
9927
|
d
|
|
@@ -10419,7 +10419,7 @@ var G0 = /* @__PURE__ */ Vt({
|
|
|
10419
10419
|
dtLocale: r
|
|
10420
10420
|
};
|
|
10421
10421
|
}, G5 = ({ fallback: e, resourceExtensions: t, children: r, appNs: n, dtLocale: i }) => {
|
|
10422
|
-
const [o, a] =
|
|
10422
|
+
const [o, a] = Se(!1);
|
|
10423
10423
|
return _e(() => {
|
|
10424
10424
|
a(!1), t && t.length && t.forEach((s) => {
|
|
10425
10425
|
Object.keys(s).forEach((c) => {
|
|
@@ -10439,7 +10439,7 @@ var G0 = /* @__PURE__ */ Vt({
|
|
|
10439
10439
|
fallback: e
|
|
10440
10440
|
}, o ? r : e));
|
|
10441
10441
|
}, Fe = () => Jt(gy), K5 = (e) => {
|
|
10442
|
-
const [t, r] =
|
|
10442
|
+
const [t, r] = Se(null), [n, i] = Se(null);
|
|
10443
10443
|
return _e(() => {
|
|
10444
10444
|
var a;
|
|
10445
10445
|
const o = () => {
|
|
@@ -11057,7 +11057,7 @@ var JT = (e, {
|
|
|
11057
11057
|
offset: i = 0
|
|
11058
11058
|
/* side = 'inline-start' */
|
|
11059
11059
|
}) => {
|
|
11060
|
-
const o = e.current, [a, s] =
|
|
11060
|
+
const o = e.current, [a, s] = Se(0), [c, l] = Se(0), f = De(() => {
|
|
11061
11061
|
s(0), o == null || o.style.removeProperty("inset-inline-start"), o == null || o.style.setProperty("transition-duration", "200ms");
|
|
11062
11062
|
}, [
|
|
11063
11063
|
o
|
|
@@ -13388,7 +13388,7 @@ Vs.exports;
|
|
|
13388
13388
|
var ee = Gn(this, j).delete(j);
|
|
13389
13389
|
return this.size -= ee ? 1 : 0, ee;
|
|
13390
13390
|
}
|
|
13391
|
-
function
|
|
13391
|
+
function $e(j) {
|
|
13392
13392
|
return Gn(this, j).get(j);
|
|
13393
13393
|
}
|
|
13394
13394
|
function Be(j) {
|
|
@@ -13398,7 +13398,7 @@ Vs.exports;
|
|
|
13398
13398
|
var A = Gn(this, j), U = A.size;
|
|
13399
13399
|
return A.set(j, ee), this.size += A.size == U ? 0 : 1, this;
|
|
13400
13400
|
}
|
|
13401
|
-
er.prototype.clear = q, er.prototype.delete = pe, er.prototype.get =
|
|
13401
|
+
er.prototype.clear = q, er.prototype.delete = pe, er.prototype.get = $e, er.prototype.has = Be, er.prototype.set = et;
|
|
13402
13402
|
function qe(j) {
|
|
13403
13403
|
var ee = this.__data__ = new Pt(j);
|
|
13404
13404
|
this.size = ee.size;
|
|
@@ -18703,7 +18703,7 @@ const lb = Vt({
|
|
|
18703
18703
|
setTextValue: async (e) => {
|
|
18704
18704
|
}
|
|
18705
18705
|
}), ub = () => Jt(lb), gd = ({ children: e }) => {
|
|
18706
|
-
const [t, r] =
|
|
18706
|
+
const [t, r] = Se(""), n = De(async (i) => (await navigator.clipboard.writeText(i), r(i)), []);
|
|
18707
18707
|
return /* @__PURE__ */ x.createElement(lb.Provider, { value: { textValue: t, setTextValue: n } }, e);
|
|
18708
18708
|
}, Hh = "invisible bs-px -mbe-px overflow-hidden", xk = ({ value: e, classNames: t, iconProps: r, ...n }) => {
|
|
18709
18709
|
const { t: i } = ut("os"), { textValue: o, setTextValue: a } = ub(), s = o === e;
|
|
@@ -18719,7 +18719,7 @@ const lb = Vt({
|
|
|
18719
18719
|
/* @__PURE__ */ x.createElement("div", { role: "none", className: de("flex gap-1 items-center", !s && Hh) }, /* @__PURE__ */ x.createElement("span", { className: "pli-1" }, i("copy invitation code success label")), /* @__PURE__ */ x.createElement(cc, { className: Qe(4), weight: "bold", ...r }))
|
|
18720
18720
|
);
|
|
18721
18721
|
}, Sk = ({ value: e, classNames: t, iconProps: r, variant: n, ...i }) => {
|
|
18722
|
-
const { t: o } = ut("os"), { textValue: a, setTextValue: s } = ub(), l = o(a === e ? "copy invitation code success label" : "copy invitation code label"), [f, d] =
|
|
18722
|
+
const { t: o } = ut("os"), { textValue: a, setTextValue: s } = ub(), l = o(a === e ? "copy invitation code success label" : "copy invitation code label"), [f, d] = Se(!1);
|
|
18723
18723
|
return /* @__PURE__ */ x.createElement($r.Root, { delayDuration: 1500, open: f, onOpenChange: d }, /* @__PURE__ */ x.createElement($r.Portal, null, /* @__PURE__ */ x.createElement($r.Content, { side: "bottom", sideOffset: 12, classNames: "z-30" }, /* @__PURE__ */ x.createElement("span", null, l), /* @__PURE__ */ x.createElement($r.Arrow, null))), /* @__PURE__ */ x.createElement(
|
|
18724
18724
|
$r.Trigger,
|
|
18725
18725
|
{
|
|
@@ -19980,7 +19980,7 @@ var eg;
|
|
|
19980
19980
|
t[t.NONE = 0] = "NONE", t[t.INIT_AUTOMERGE = 1] = "INIT_AUTOMERGE";
|
|
19981
19981
|
})(e.Migration || (e.Migration = {}));
|
|
19982
19982
|
})(eg || (eg = {}));
|
|
19983
|
-
var
|
|
19983
|
+
var Ce;
|
|
19984
19984
|
(function(e) {
|
|
19985
19985
|
(function(t) {
|
|
19986
19986
|
t[t.INTERACTIVE = 0] = "INTERACTIVE", t[t.OFFLINE = 1] = "OFFLINE", t[t.MULTIUSE = 2] = "MULTIUSE";
|
|
@@ -19991,7 +19991,7 @@ var $e;
|
|
|
19991
19991
|
}(e.AuthMethod || (e.AuthMethod = {})), function(t) {
|
|
19992
19992
|
t[t.INIT = 0] = "INIT", t[t.CONNECTING = 1] = "CONNECTING", t[t.CONNECTED = 2] = "CONNECTED", t[t.READY_FOR_AUTHENTICATION = 3] = "READY_FOR_AUTHENTICATION", t[t.AUTHENTICATING = 4] = "AUTHENTICATING", t[t.SUCCESS = 5] = "SUCCESS", t[t.CANCELLED = 6] = "CANCELLED", t[t.TIMEOUT = 7] = "TIMEOUT", t[t.ERROR = 8] = "ERROR";
|
|
19993
19993
|
}(e.State || (e.State = {}));
|
|
19994
|
-
})(
|
|
19994
|
+
})(Ce || (Ce = {}));
|
|
19995
19995
|
var tg;
|
|
19996
19996
|
(function(e) {
|
|
19997
19997
|
(function(t) {
|
|
@@ -23400,7 +23400,7 @@ Ys.exports;
|
|
|
23400
23400
|
var U = vn(this, A).delete(A);
|
|
23401
23401
|
return this.size -= U ? 1 : 0, U;
|
|
23402
23402
|
}
|
|
23403
|
-
function
|
|
23403
|
+
function $e(A) {
|
|
23404
23404
|
return vn(this, A).get(A);
|
|
23405
23405
|
}
|
|
23406
23406
|
function Be(A) {
|
|
@@ -23410,7 +23410,7 @@ Ys.exports;
|
|
|
23410
23410
|
var re = vn(this, A), ve = re.size;
|
|
23411
23411
|
return re.set(A, U), this.size += re.size == ve ? 0 : 1, this;
|
|
23412
23412
|
}
|
|
23413
|
-
er.prototype.clear = q, er.prototype.delete = pe, er.prototype.get =
|
|
23413
|
+
er.prototype.clear = q, er.prototype.delete = pe, er.prototype.get = $e, er.prototype.has = Be, er.prototype.set = et;
|
|
23414
23414
|
function qe(A) {
|
|
23415
23415
|
var U = this.__data__ = new Pt(A);
|
|
23416
23416
|
this.size = U.size;
|
|
@@ -28601,18 +28601,18 @@ var Lg = "/home/runner/work/dxos/dxos/packages/sdk/react-client/src/invitations/
|
|
|
28601
28601
|
// TODO(burdon): State.
|
|
28602
28602
|
status: s.status,
|
|
28603
28603
|
// `invitationObservable`, `secret`, and `result` is persisted between the status-actions that set them.
|
|
28604
|
-
result: s.status ===
|
|
28604
|
+
result: s.status === Ce.State.SUCCESS ? s.result : a.result,
|
|
28605
28605
|
// `error` gets set each time we enter the error state
|
|
28606
|
-
...s.status ===
|
|
28606
|
+
...s.status === Ce.State.ERROR && {
|
|
28607
28607
|
error: s.error
|
|
28608
28608
|
},
|
|
28609
28609
|
// `haltedAt` gets set on only the first error/cancelled/timeout action and reset on any others.
|
|
28610
|
-
...(s.status ===
|
|
28610
|
+
...(s.status === Ce.State.ERROR || s.status === Ce.State.CANCELLED || s.status === Ce.State.TIMEOUT) && {
|
|
28611
28611
|
haltedAt: typeof a.haltedAt > "u" ? s.haltedAt : a.haltedAt
|
|
28612
28612
|
},
|
|
28613
|
-
observable: s.status ===
|
|
28613
|
+
observable: s.status === Ce.State.CONNECTING ? s.observable ?? a.observable : a.observable
|
|
28614
28614
|
}), null, (a) => ({
|
|
28615
|
-
status:
|
|
28615
|
+
status: Ce.State.INIT,
|
|
28616
28616
|
result: {
|
|
28617
28617
|
spaceKey: null,
|
|
28618
28618
|
identityKey: null,
|
|
@@ -28625,15 +28625,15 @@ var Lg = "/home/runner/work/dxos/dxos/packages/sdk/react-client/src/invitations/
|
|
|
28625
28625
|
var l, f;
|
|
28626
28626
|
const a = (d) => {
|
|
28627
28627
|
switch (d.state) {
|
|
28628
|
-
case
|
|
28629
|
-
case
|
|
28630
|
-
case
|
|
28628
|
+
case Ce.State.CONNECTED:
|
|
28629
|
+
case Ce.State.READY_FOR_AUTHENTICATION:
|
|
28630
|
+
case Ce.State.AUTHENTICATING: {
|
|
28631
28631
|
r({
|
|
28632
28632
|
status: d.state
|
|
28633
28633
|
});
|
|
28634
28634
|
break;
|
|
28635
28635
|
}
|
|
28636
|
-
case
|
|
28636
|
+
case Ce.State.SUCCESS: {
|
|
28637
28637
|
r({
|
|
28638
28638
|
status: d.state,
|
|
28639
28639
|
result: {
|
|
@@ -28645,8 +28645,8 @@ var Lg = "/home/runner/work/dxos/dxos/packages/sdk/react-client/src/invitations/
|
|
|
28645
28645
|
});
|
|
28646
28646
|
break;
|
|
28647
28647
|
}
|
|
28648
|
-
case
|
|
28649
|
-
case
|
|
28648
|
+
case Ce.State.CANCELLED:
|
|
28649
|
+
case Ce.State.TIMEOUT: {
|
|
28650
28650
|
r({
|
|
28651
28651
|
status: d.state,
|
|
28652
28652
|
haltedAt: t.status
|
|
@@ -28656,7 +28656,7 @@ var Lg = "/home/runner/work/dxos/dxos/packages/sdk/react-client/src/invitations/
|
|
|
28656
28656
|
}
|
|
28657
28657
|
}, s = (l = t.observable) == null ? void 0 : l.subscribe(a, (d) => {
|
|
28658
28658
|
r({
|
|
28659
|
-
status:
|
|
28659
|
+
status: Ce.State.ERROR,
|
|
28660
28660
|
error: d,
|
|
28661
28661
|
haltedAt: t.status
|
|
28662
28662
|
});
|
|
@@ -28668,7 +28668,7 @@ var Lg = "/home/runner/work/dxos/dxos/packages/sdk/react-client/src/invitations/
|
|
|
28668
28668
|
]);
|
|
28669
28669
|
const n = De((a) => {
|
|
28670
28670
|
r({
|
|
28671
|
-
status:
|
|
28671
|
+
status: Ce.State.CONNECTING,
|
|
28672
28672
|
observable: a
|
|
28673
28673
|
});
|
|
28674
28674
|
}, []), i = De((a) => (ot("authenticating...", {
|
|
@@ -28711,15 +28711,15 @@ var Lg = "/home/runner/work/dxos/dxos/packages/sdk/react-client/src/invitations/
|
|
|
28711
28711
|
]);
|
|
28712
28712
|
};
|
|
28713
28713
|
const wL = /* @__PURE__ */ new Map([
|
|
28714
|
-
[
|
|
28715
|
-
[
|
|
28716
|
-
[
|
|
28717
|
-
[
|
|
28718
|
-
[
|
|
28719
|
-
[
|
|
28720
|
-
[
|
|
28721
|
-
[
|
|
28722
|
-
[
|
|
28714
|
+
[Ce.State.ERROR, -3],
|
|
28715
|
+
[Ce.State.TIMEOUT, -2],
|
|
28716
|
+
[Ce.State.CANCELLED, -1],
|
|
28717
|
+
[Ce.State.INIT, 0],
|
|
28718
|
+
[Ce.State.CONNECTING, 1],
|
|
28719
|
+
[Ce.State.CONNECTED, 2],
|
|
28720
|
+
[Ce.State.READY_FOR_AUTHENTICATION, 3],
|
|
28721
|
+
[Ce.State.AUTHENTICATING, 4],
|
|
28722
|
+
[Ce.State.SUCCESS, 5]
|
|
28723
28723
|
]);
|
|
28724
28724
|
var b1 = 9007199254740991, _L = "[object Arguments]", EL = "[object Function]", xL = "[object GeneratorFunction]", af = "[object Map]", SL = "[object Object]", Mg = "[object Promise]", sf = "[object Set]", $L = "[object String]", Fg = "[object WeakMap]", Bg = "[object DataView]", CL = /[\\^$.*+?()[\]{}|]/g, AL = /^\[object .+?Constructor\]$/, OL = /^(?:0|[1-9]\d*)$/, Bd = "\\ud800-\\udfff", w1 = "\\u0300-\\u036f\\ufe20-\\ufe23", _1 = "\\u20d0-\\u20f0", E1 = "\\ufe0e\\ufe0f", TL = "[" + Bd + "]", cf = "[" + w1 + _1 + "]", lf = "\\ud83c[\\udffb-\\udfff]", IL = "(?:" + cf + "|" + lf + ")", x1 = "[^" + Bd + "]", S1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", $1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", C1 = "\\u200d", A1 = IL + "?", O1 = "[" + E1 + "]?", PL = "(?:" + C1 + "(?:" + [x1, S1, $1].join("|") + ")" + O1 + A1 + ")*", RL = O1 + A1 + PL, kL = "(?:" + [x1 + cf + "?", cf, S1, $1, TL].join("|") + ")", NL = RegExp(lf + "(?=" + lf + ")|" + kL + RL, "g"), DL = RegExp("[" + C1 + Bd + w1 + _1 + E1 + "]"), LL = typeof it == "object" && it && it.Object === Object && it, ML = typeof self == "object" && self && self.Object === Object && self, _i = LL || ML || Function("return this")();
|
|
28725
28725
|
function FL(e, t) {
|
|
@@ -28978,21 +28978,21 @@ const EM = /* @__PURE__ */ Un(_M), Wg = EM(
|
|
|
28978
28978
|
onClickRemove: n,
|
|
28979
28979
|
createInvitationUrl: i
|
|
28980
28980
|
}) => {
|
|
28981
|
-
const { t: o } = ut("os"), { cancel: a, status: s, invitationCode: c, authCode: l, type: f } = t, d = !([
|
|
28982
|
-
|
|
28983
|
-
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
].includes(s) ? "pulse" : "none", _ = [
|
|
28981
|
+
const { t: o } = ut("os"), { cancel: a, status: s, invitationCode: c, authCode: l, type: f } = t, d = !([Ce.State.ERROR, Ce.State.TIMEOUT, Ce.State.CANCELLED].indexOf(s) >= 0), p = f === Ce.Type.MULTIUSE || [Ce.State.INIT, Ce.State.CONNECTING, Ce.State.CONNECTED].indexOf(s) >= 0, g = s === Ce.State.READY_FOR_AUTHENTICATION, v = De(() => n == null ? void 0 : n(e), [e, n]), m = c && i(c), b = e == null ? void 0 : e.get().invitationId, w = [
|
|
28982
|
+
Ce.State.INIT,
|
|
28983
|
+
Ce.State.CONNECTING,
|
|
28984
|
+
Ce.State.CONNECTED,
|
|
28985
|
+
Ce.State.READY_FOR_AUTHENTICATION,
|
|
28986
|
+
Ce.State.AUTHENTICATING
|
|
28987
|
+
].includes(s) ? "pulse" : "none", _ = [Ce.State.ERROR, Ce.State.TIMEOUT, Ce.State.CANCELLED].includes(
|
|
28988
28988
|
s
|
|
28989
28989
|
), S = [
|
|
28990
|
-
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28990
|
+
Ce.State.CONNECTED,
|
|
28991
|
+
Ce.State.READY_FOR_AUTHENTICATION,
|
|
28992
|
+
Ce.State.AUTHENTICATING,
|
|
28993
|
+
Ce.State.SUCCESS
|
|
28994
28994
|
].includes(s), $ = _ ? "error" : S ? "active" : "inactive";
|
|
28995
|
-
return /* @__PURE__ */ x.createElement(Gu.Root, { id: c, classNames: "flex gap-2 pis-3 pie-1 items-center relative" }, /* @__PURE__ */ x.createElement(Gu.Heading, { classNames: "sr-only" }, o(f ===
|
|
28995
|
+
return /* @__PURE__ */ x.createElement(Gu.Root, { id: c, classNames: "flex gap-2 pis-3 pie-1 items-center relative" }, /* @__PURE__ */ x.createElement(Gu.Heading, { classNames: "sr-only" }, o(f === Ce.Type.MULTIUSE ? "invite many list item label" : "invite one list item label")), f === Ce.Type.MULTIUSE && /* @__PURE__ */ x.createElement(SM, { status: $, animation: w }), /* @__PURE__ */ x.createElement($r.Root, null, /* @__PURE__ */ x.createElement(Ft.Root, { ...ea, animation: w, status: $ }, /* @__PURE__ */ x.createElement($r.Trigger, { asChild: !0 }, /* @__PURE__ */ x.createElement(Ft.Frame, { tabIndex: 0, classNames: [Zr, "relative rounded-full"] }, /* @__PURE__ */ x.createElement(Ft.Fallback, { text: Ud(b) })))), /* @__PURE__ */ x.createElement($r.Portal, null, /* @__PURE__ */ x.createElement($r.Content, { side: "left", classNames: "z-[70]" }, o(f === Ce.Type.MULTIUSE ? "invite many qr label" : "invite one qr label"), /* @__PURE__ */ x.createElement($r.Arrow, null)))), p && m ? /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(
|
|
28996
28996
|
Or,
|
|
28997
28997
|
{
|
|
28998
28998
|
variant: "ghost",
|
|
@@ -29001,7 +29001,7 @@ const EM = /* @__PURE__ */ Un(_M), Wg = EM(
|
|
|
29001
29001
|
"data-testid": "show-qrcode"
|
|
29002
29002
|
},
|
|
29003
29003
|
/* @__PURE__ */ x.createElement("span", null, o("open share panel label"))
|
|
29004
|
-
), /* @__PURE__ */ x.createElement(Sk, { variant: "ghost", value: m })) : g ? /* @__PURE__ */ x.createElement(N1, { code: l, classNames: "grow" }) : s ===
|
|
29004
|
+
), /* @__PURE__ */ x.createElement(Sk, { variant: "ghost", value: m })) : g ? /* @__PURE__ */ x.createElement(N1, { code: l, classNames: "grow" }) : s === Ce.State.CONNECTING ? /* @__PURE__ */ x.createElement("span", { className: "pli-2 grow text-neutral-500" }, "Connecting...") : s === Ce.State.AUTHENTICATING ? /* @__PURE__ */ x.createElement("span", { className: "pli-2 grow text-neutral-500" }, "Authenticating...") : s === Ce.State.ERROR || s === Ce.State.TIMEOUT ? /* @__PURE__ */ x.createElement("span", { className: "pli-2 grow text-neutral-500" }, "Failed") : s === Ce.State.CANCELLED ? /* @__PURE__ */ x.createElement("span", { className: "pli-2 grow text-neutral-500" }, "Cancelled") : s === Ce.State.SUCCESS ? /* @__PURE__ */ x.createElement("span", { className: "pli-2 grow truncate" }, "User joined") : /* @__PURE__ */ x.createElement("span", { className: "grow" }, " "), d ? /* @__PURE__ */ x.createElement(Or, { variant: "ghost", classNames: "flex gap-1", onClick: a, "data-testid": "cancel-invitation" }, /* @__PURE__ */ x.createElement("span", { className: "sr-only" }, o("cancel invitation label")), /* @__PURE__ */ x.createElement(pa, { className: Qe(5), weight: "bold" })) : /* @__PURE__ */ x.createElement(Or, { variant: "ghost", classNames: "flex gap-1", onClick: v, "data-testid": "remove-invitation" }, /* @__PURE__ */ x.createElement("span", { className: "sr-only" }, o("remove invitation label")), /* @__PURE__ */ x.createElement(pa, { className: Qe(5), weight: "bold" })));
|
|
29005
29005
|
}, CM = ({ invitations: e, send: t, ...r }) => {
|
|
29006
29006
|
const { className: n, InvitationListItem: i = xM } = r;
|
|
29007
29007
|
return /* @__PURE__ */ x.createElement(Zf, { classNames: de("flex flex-col gap-2", n) }, e.map((o) => {
|
|
@@ -34020,7 +34020,7 @@ function K9(e, t) {
|
|
|
34020
34020
|
return typeof e == "function" ? e() : e;
|
|
34021
34021
|
});
|
|
34022
34022
|
if (process.env.NODE_ENV !== "production" && typeof e != "function") {
|
|
34023
|
-
var n = G9(
|
|
34023
|
+
var n = G9(Se(r), 1), i = n[0];
|
|
34024
34024
|
e !== i && console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.");
|
|
34025
34025
|
}
|
|
34026
34026
|
var o = t.context, a = t.guards, s = t.actions, c = t.activities, l = t.services, f = t.delays;
|
|
@@ -34225,12 +34225,12 @@ const X9 = Xd(
|
|
|
34225
34225
|
}, tB = (e) => {
|
|
34226
34226
|
const { send: t } = e, r = fi(), n = Cv(), i = De((a) => {
|
|
34227
34227
|
const s = ao.encode(a);
|
|
34228
|
-
a.state ===
|
|
34228
|
+
a.state === Ce.State.CONNECTING && console.log(JSON.stringify({ invitationCode: s, authCode: a.authCode }));
|
|
34229
34229
|
}, []), o = (a) => {
|
|
34230
34230
|
const s = a.altKey && a.shiftKey;
|
|
34231
34231
|
n.forEach((l) => l.cancel());
|
|
34232
34232
|
const c = r.halo.share(
|
|
34233
|
-
s ? { type:
|
|
34233
|
+
s ? { type: Ce.Type.MULTIUSE, authMethod: Ce.AuthMethod.NONE } : void 0
|
|
34234
34234
|
);
|
|
34235
34235
|
process.env.NODE_ENV !== "production" && c.subscribe(i), t == null || t({ type: "selectInvitation", invitation: c });
|
|
34236
34236
|
};
|
|
@@ -34266,14 +34266,14 @@ const X9 = Xd(
|
|
|
34266
34266
|
/* @__PURE__ */ x.createElement(ri, { weight: "bold", className: Qe(4) })
|
|
34267
34267
|
))));
|
|
34268
34268
|
}, nB = (e) => {
|
|
34269
|
-
const { onUpdateProfile: t } = e, { t: r } = ut("os"), [n, i] =
|
|
34269
|
+
const { onUpdateProfile: t } = e, { t: r } = ut("os"), [n, i] = Se(""), o = async (a) => {
|
|
34270
34270
|
await (t == null ? void 0 : t(a).catch((s) => {
|
|
34271
34271
|
ot.catch(s), i(r("failed to update profile message"));
|
|
34272
34272
|
}));
|
|
34273
34273
|
};
|
|
34274
34274
|
return /* @__PURE__ */ x.createElement(iB, { ...e, onUpdateProfile: o, validationMessage: n });
|
|
34275
34275
|
}, iB = (e) => {
|
|
34276
|
-
const { active: t, profile: r, send: n, onUpdateProfile: i, validationMessage: o } = e, a = !t, { t: s } = ut("os"), [c, l] =
|
|
34276
|
+
const { active: t, profile: r, send: n, onUpdateProfile: i, validationMessage: o } = e, a = !t, { t: s } = ut("os"), [c, l] = Se((r == null ? void 0 : r.displayName) ?? "");
|
|
34277
34277
|
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement("div", { role: "none", className: "grow flex flex-col justify-center" }, /* @__PURE__ */ x.createElement(
|
|
34278
34278
|
Fa,
|
|
34279
34279
|
{
|
|
@@ -34350,7 +34350,7 @@ const X9 = Xd(
|
|
|
34350
34350
|
invitations: t,
|
|
34351
34351
|
identity: r
|
|
34352
34352
|
}) => {
|
|
34353
|
-
const [n, i] =
|
|
34353
|
+
const [n, i] = Se(""), [o, a] = Se(""), [s, c] = Se(!1), l = Bw(e.config);
|
|
34354
34354
|
_e(() => {
|
|
34355
34355
|
(async () => {
|
|
34356
34356
|
if (l) {
|
|
@@ -34362,7 +34362,7 @@ const X9 = Xd(
|
|
|
34362
34362
|
}, []);
|
|
34363
34363
|
const f = De(async (g) => {
|
|
34364
34364
|
const v = ao.encode(g);
|
|
34365
|
-
if (g.state ===
|
|
34365
|
+
if (g.state === Ce.State.CONNECTING && (console.log(JSON.stringify({ invitationCode: v, authCode: g.authCode })), la(r, "Identity not found"), l))
|
|
34366
34366
|
try {
|
|
34367
34367
|
const m = await (l == null ? void 0 : l.createAgent(v, r.identityKey.truncate()));
|
|
34368
34368
|
a(m), c(!0), i("");
|
|
@@ -34371,7 +34371,7 @@ const X9 = Xd(
|
|
|
34371
34371
|
}
|
|
34372
34372
|
}, []);
|
|
34373
34373
|
return { onAgentCreate: async () => {
|
|
34374
|
-
t.forEach((v) => v.cancel()), e.halo.share({ type:
|
|
34374
|
+
t.forEach((v) => v.cancel()), e.halo.share({ type: Ce.Type.MULTIUSE, authMethod: Ce.AuthMethod.NONE }).subscribe(f);
|
|
34375
34375
|
}, onAgentDestroy: async () => {
|
|
34376
34376
|
const g = e.halo.identity.get();
|
|
34377
34377
|
la(g, "Identity not found");
|
|
@@ -35555,7 +35555,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
35555
35555
|
authCode: o,
|
|
35556
35556
|
id: a
|
|
35557
35557
|
}) => {
|
|
35558
|
-
const { t: s } = ut("os"), c = It("invitation-manager__qr-code"), l = i ===
|
|
35558
|
+
const { t: s } = ut("os"), c = It("invitation-manager__qr-code"), l = i === Ce.Type.MULTIUSE ? 0 : wL.get(n) ?? 0, f = l === 3, d = Ud(a ?? ""), p = gt(() => {
|
|
35559
35559
|
switch (!0) {
|
|
35560
35560
|
case l === 5:
|
|
35561
35561
|
case l < 0:
|
|
@@ -35566,7 +35566,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
35566
35566
|
return "showing qr";
|
|
35567
35567
|
}
|
|
35568
35568
|
}, [l]);
|
|
35569
|
-
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(dt.Root, { activeView: p, classNames: "grow plb-1" }, /* @__PURE__ */ x.createElement(dt.Views, null, /* @__PURE__ */ x.createElement(bu, { id: "showing qr", emoji: d }, /* @__PURE__ */ x.createElement("p", { className: "text-sm mlb-1 font-normal text-center" }, s(i ===
|
|
35569
|
+
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(dt.Root, { activeView: p, classNames: "grow plb-1" }, /* @__PURE__ */ x.createElement(dt.Views, null, /* @__PURE__ */ x.createElement(bu, { id: "showing qr", emoji: d }, /* @__PURE__ */ x.createElement("p", { className: "text-sm mlb-1 font-normal text-center" }, s(i === Ce.Type.MULTIUSE ? "invite many qr label" : "invite one qr label")), /* @__PURE__ */ x.createElement("div", { role: "none", className: de(Nt, "is-full max-is-[14rem] relative") }, /* @__PURE__ */ x.createElement(
|
|
35570
35570
|
yB,
|
|
35571
35571
|
{
|
|
35572
35572
|
rounding: 100,
|
|
@@ -35706,19 +35706,19 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
35706
35706
|
subscribe: (r, n, i) => t.subscribe(
|
|
35707
35707
|
(o) => {
|
|
35708
35708
|
switch (o.state) {
|
|
35709
|
-
case
|
|
35709
|
+
case Ce.State.CONNECTING:
|
|
35710
35710
|
return ot("[invitation connecting]", { Kind: e, invitation: o }), r({ type: `connecting${e}Invitation`, invitation: o });
|
|
35711
|
-
case
|
|
35711
|
+
case Ce.State.CONNECTED:
|
|
35712
35712
|
return ot("[invitation connected]", { Kind: e, invitation: o }), r({ type: `connected${e}Invitation`, invitation: o });
|
|
35713
|
-
case
|
|
35713
|
+
case Ce.State.READY_FOR_AUTHENTICATION:
|
|
35714
35714
|
return ot("[invitation ready for authentication]", { Kind: e, invitation: o }), r({ type: `readyForAuthentication${e}Invitation`, invitation: o });
|
|
35715
|
-
case
|
|
35715
|
+
case Ce.State.AUTHENTICATING:
|
|
35716
35716
|
return ot("[invitation authenticating]", { Kind: e, invitation: o }), r({ type: `authenticating${e}Invitation`, invitation: o });
|
|
35717
|
-
case
|
|
35717
|
+
case Ce.State.SUCCESS:
|
|
35718
35718
|
return ot("[invitation success]", { Kind: e, invitation: o }), r({ type: `success${e}Invitation`, invitation: o }), i == null ? void 0 : i();
|
|
35719
|
-
case
|
|
35719
|
+
case Ce.State.CANCELLED:
|
|
35720
35720
|
return ot.warn("[invitation cancelled]", { Kind: e }), r({ type: `fail${e}Invitation`, reason: "cancelled" });
|
|
35721
|
-
case
|
|
35721
|
+
case Ce.State.TIMEOUT:
|
|
35722
35722
|
return ot.error("[invitation timeout]", { Kind: e }), r({ type: `fail${e}Invitation`, reason: "timeout" });
|
|
35723
35723
|
}
|
|
35724
35724
|
},
|
|
@@ -35769,7 +35769,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
35769
35769
|
{
|
|
35770
35770
|
cond: (n) => {
|
|
35771
35771
|
const i = n[e.toLowerCase()].invitation;
|
|
35772
|
-
return !i || (i == null ? void 0 : i.state) ===
|
|
35772
|
+
return !i || (i == null ? void 0 : i.state) === Ce.State.CONNECTING;
|
|
35773
35773
|
},
|
|
35774
35774
|
target: `connecting${e}Invitation`,
|
|
35775
35775
|
actions: "log"
|
|
@@ -36085,7 +36085,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36085
36085
|
c("continue label")
|
|
36086
36086
|
)));
|
|
36087
36087
|
}, AB = (e) => {
|
|
36088
|
-
const { send: t, method: r } = e, n = r === "recover identity", i = fi(), { t: o } = ut("os"), [a, s] =
|
|
36088
|
+
const { send: t, method: r } = e, n = r === "recover identity", i = fi(), { t: o } = ut("os"), [a, s] = Se(""), c = (l) => {
|
|
36089
36089
|
i.halo.createIdentity({ [n ? "seedphrase" : "displayName"]: l }).then(
|
|
36090
36090
|
(f) => {
|
|
36091
36091
|
t == null || t({ type: "selectIdentity", identity: f });
|
|
@@ -36097,7 +36097,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36097
36097
|
};
|
|
36098
36098
|
return /* @__PURE__ */ x.createElement(OB, { ...e, onDisplayNameConfirm: c, validationMessage: a });
|
|
36099
36099
|
}, OB = (e) => {
|
|
36100
|
-
const { method: t, send: r, active: n, onDisplayNameConfirm: i, validationMessage: o } = e, a = !n, { t: s } = ut("os"), [c, l] =
|
|
36100
|
+
const { method: t, send: r, active: n, onDisplayNameConfirm: i, validationMessage: o } = e, a = !n, { t: s } = ut("os"), [c, l] = Se(""), f = t === "recover identity";
|
|
36101
36101
|
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement("div", { role: "none", className: "grow flex flex-col justify-center" }, /* @__PURE__ */ x.createElement(
|
|
36102
36102
|
Fa,
|
|
36103
36103
|
{
|
|
@@ -36148,7 +36148,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36148
36148
|
return ot.catch(t), e;
|
|
36149
36149
|
}
|
|
36150
36150
|
}, dv = (e) => {
|
|
36151
|
-
const { Kind: t, active: r, send: n, unredeemedCode: i, onExit: o, exitActionParent: a, onDone: s, doneActionParent: c, succeededKeys: l } = e, f = !r, { t: d } = ut("os"), [p, g] =
|
|
36151
|
+
const { Kind: t, active: r, send: n, unredeemedCode: i, onExit: o, exitActionParent: a, onDone: s, doneActionParent: c, succeededKeys: l } = e, f = !r, { t: d } = ut("os"), [p, g] = Se(i ?? "");
|
|
36152
36152
|
_e(() => {
|
|
36153
36153
|
i && g(i ?? "");
|
|
36154
36154
|
}, [i]);
|
|
@@ -36241,7 +36241,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36241
36241
|
onInvitationAuthenticate: o,
|
|
36242
36242
|
onInvitationCancel: a
|
|
36243
36243
|
}) => {
|
|
36244
|
-
const s = !r || n, { t: c } = ut("os"), l = t.toLowerCase(), [f, d] =
|
|
36244
|
+
const s = !r || n, { t: c } = ut("os"), l = t.toLowerCase(), [f, d] = Se(""), p = ({ target: { value: g } }) => {
|
|
36245
36245
|
var v;
|
|
36246
36246
|
d(g), g.length === hv && ((v = document.querySelector(`[data-autofocus-pinlength="${l}"]`)) == null || v.focus());
|
|
36247
36247
|
};
|
|
@@ -36290,36 +36290,44 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36290
36290
|
c("next label")
|
|
36291
36291
|
)));
|
|
36292
36292
|
}, PB = ({ send: e, active: t }) => {
|
|
36293
|
-
const r = fi(), { t: n } = ut("os"), [i, o] =
|
|
36294
|
-
r.reset().then(
|
|
36293
|
+
const r = fi(), { t: n } = ut("os"), [i, o] = Se(""), [a, s] = Se(!1), c = () => {
|
|
36294
|
+
s(!0), r.reset().then(
|
|
36295
36295
|
() => e == null ? void 0 : e({ type: "resetIdentity" }),
|
|
36296
|
-
(
|
|
36297
|
-
ot.catch(
|
|
36296
|
+
(l) => {
|
|
36297
|
+
ot.catch(l), o(n("failed to reset identity message")), s(!1);
|
|
36298
36298
|
}
|
|
36299
36299
|
);
|
|
36300
36300
|
};
|
|
36301
|
-
return /* @__PURE__ */ x.createElement(
|
|
36302
|
-
|
|
36303
|
-
|
|
36301
|
+
return /* @__PURE__ */ x.createElement(
|
|
36302
|
+
RB,
|
|
36303
|
+
{
|
|
36304
|
+
disabled: !t,
|
|
36305
|
+
pending: a,
|
|
36306
|
+
validationMessage: i,
|
|
36307
|
+
onConfirm: () => c()
|
|
36308
|
+
}
|
|
36309
|
+
);
|
|
36310
|
+
}, RB = ({ disabled: e, pending: t, validationMessage: r, onConfirm: n }) => {
|
|
36311
|
+
const { t: i } = ut("os"), o = i("confirmation value"), [a, s] = Se("");
|
|
36304
36312
|
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement("div", { role: "none", className: "grow flex flex-col justify-center" }, /* @__PURE__ */ x.createElement(
|
|
36305
36313
|
Fa,
|
|
36306
36314
|
{
|
|
36307
|
-
validationMessage:
|
|
36308
|
-
label: /* @__PURE__ */ x.createElement(Rr, null,
|
|
36315
|
+
validationMessage: r,
|
|
36316
|
+
label: /* @__PURE__ */ x.createElement(Rr, null, i("reset identity input label", { confirmationValue: o })),
|
|
36309
36317
|
disabled: e,
|
|
36310
36318
|
"data-testid": "reset-identity-input",
|
|
36311
|
-
placeholder:
|
|
36312
|
-
onChange: ({ target: { value:
|
|
36319
|
+
placeholder: o,
|
|
36320
|
+
onChange: ({ target: { value: c } }) => s(c)
|
|
36313
36321
|
}
|
|
36314
36322
|
)), /* @__PURE__ */ x.createElement(ar, null, /* @__PURE__ */ x.createElement(
|
|
36315
36323
|
pt,
|
|
36316
36324
|
{
|
|
36317
36325
|
variant: "primary",
|
|
36318
|
-
disabled: e ||
|
|
36319
|
-
onClick: () =>
|
|
36326
|
+
disabled: e || t || a !== o,
|
|
36327
|
+
onClick: () => n == null ? void 0 : n(),
|
|
36320
36328
|
"data-testid": "reset-identity-input-confirm"
|
|
36321
36329
|
},
|
|
36322
|
-
|
|
36330
|
+
i(t ? "reset in progress label" : "confirm label")
|
|
36323
36331
|
)));
|
|
36324
36332
|
}, nr = "pbs-1 pbe-3 pli-3", kB = (e) => {
|
|
36325
36333
|
const {
|
|
@@ -36707,7 +36715,7 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36707
36715
|
), LB = (e) => Zd(DB, { ...e, context: { ...e == null ? void 0 : e.context } }), vv = "dxos:react-shell/space-manager/active-action", MB = (e) => {
|
|
36708
36716
|
const { space: t, target: r } = e, { t: n } = ut("os"), i = Ww(), o = Mw(t == null ? void 0 : t.key), a = De((c) => {
|
|
36709
36717
|
const l = ao.encode(c);
|
|
36710
|
-
c.state ===
|
|
36718
|
+
c.state === Ce.State.CONNECTING && console.log(JSON.stringify({ invitationCode: l, authCode: c.authCode }));
|
|
36711
36719
|
}, []), s = {
|
|
36712
36720
|
inviteOne: {
|
|
36713
36721
|
label: n("invite one label"),
|
|
@@ -36716,8 +36724,8 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36716
36724
|
onClick: De(() => {
|
|
36717
36725
|
var l, f, d, p;
|
|
36718
36726
|
const c = (l = t.share) == null ? void 0 : l.call(t, {
|
|
36719
|
-
type:
|
|
36720
|
-
authMethod:
|
|
36727
|
+
type: Ce.Type.INTERACTIVE,
|
|
36728
|
+
authMethod: Ce.AuthMethod.SHARED_SECRET,
|
|
36721
36729
|
target: r
|
|
36722
36730
|
});
|
|
36723
36731
|
c && ((p = (d = (f = i.values.runtime) == null ? void 0 : f.app) == null ? void 0 : d.env) == null ? void 0 : p.DX_ENVIRONMENT) !== "production" && c.subscribe(a);
|
|
@@ -36730,8 +36738,8 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36730
36738
|
onClick: De(() => {
|
|
36731
36739
|
var l, f, d, p;
|
|
36732
36740
|
const c = (l = t.share) == null ? void 0 : l.call(t, {
|
|
36733
|
-
type:
|
|
36734
|
-
authMethod:
|
|
36741
|
+
type: Ce.Type.MULTIUSE,
|
|
36742
|
+
authMethod: Ce.AuthMethod.NONE,
|
|
36735
36743
|
target: r
|
|
36736
36744
|
});
|
|
36737
36745
|
c && ((p = (d = (f = i.values.runtime) == null ? void 0 : f.app) == null ? void 0 : d.env) == null ? void 0 : p.DX_ENVIRONMENT) !== "production" && c.subscribe(a);
|
|
@@ -36758,9 +36766,9 @@ const bu = ({ children: e, ...t }) => /* @__PURE__ */ x.createElement(dt.View, {
|
|
|
36758
36766
|
onClick: () => {
|
|
36759
36767
|
}
|
|
36760
36768
|
}
|
|
36761
|
-
}, [p, g] =
|
|
36769
|
+
}, [p, g] = Se(localStorage.getItem(vv) ?? "inviteOne"), v = (b) => {
|
|
36762
36770
|
g(b), localStorage.setItem(vv, b);
|
|
36763
|
-
}, m = s ? a : a == null ? void 0 : a.filter((b) => ![
|
|
36771
|
+
}, m = s ? a : a == null ? void 0 : a.filter((b) => ![Ce.State.CANCELLED].includes(b.get().state));
|
|
36764
36772
|
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(ss.Root, { classNames: "grow shrink basis-28 -mli-2" }, /* @__PURE__ */ x.createElement(ss.Viewport, { classNames: "is-full pie-2" }, !!(m != null && m.length) && /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement("h3", { className: de(mv, Nt) }, f("invitation list heading")), /* @__PURE__ */ x.createElement(
|
|
36765
36773
|
l,
|
|
36766
36774
|
{
|
|
@@ -38115,7 +38123,7 @@ const GB = (e) => {
|
|
|
38115
38123
|
}
|
|
38116
38124
|
))))));
|
|
38117
38125
|
}, KB = ({ runtime: e, origin: t }) => {
|
|
38118
|
-
const [{ layout: r, invitationCode: n, spaceKey: i, target: o }, a] =
|
|
38126
|
+
const [{ layout: r, invitationCode: n, spaceKey: i, target: o }, a] = Se({
|
|
38119
38127
|
layout: e.layout,
|
|
38120
38128
|
invitationCode: e.invitationCode,
|
|
38121
38129
|
spaceKey: e.spaceKey,
|
|
@@ -38282,6 +38290,7 @@ const GB = (e) => {
|
|
|
38282
38290
|
"invite many qr label": "Multiple-use",
|
|
38283
38291
|
"invite many list item label": "Active multiple-use invitation",
|
|
38284
38292
|
"invite options label": "Change the active invite option.",
|
|
38293
|
+
"reset in progress label": "Resetting...",
|
|
38285
38294
|
"confirm label": "Confirm",
|
|
38286
38295
|
"reset identity input label": "This will clear this device and all associated data. Type {{confirmationValue}} and confirm to continue.",
|
|
38287
38296
|
"failed to reset identity message": "Failed to reset identity.",
|