@dxos/shell 0.4.8-main.59ec3a0 → 0.4.8-main.5d02988
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 +125 -112
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +7 -7
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/package.json +19 -19
package/dist/bundle/shell.mjs
CHANGED
|
@@ -482,15 +482,15 @@ function Gd() {
|
|
|
482
482
|
return e;
|
|
483
483
|
}, Gd.apply(this, arguments);
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
return
|
|
485
|
+
function fn() {
|
|
486
|
+
return fn = Object.assign ? Object.assign.bind() : function(e) {
|
|
487
487
|
for (var n = 1; n < arguments.length; n++) {
|
|
488
488
|
var t = arguments[n];
|
|
489
489
|
for (var i in t)
|
|
490
490
|
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
491
491
|
}
|
|
492
492
|
return e;
|
|
493
|
-
},
|
|
493
|
+
}, fn.apply(this, arguments);
|
|
494
494
|
}
|
|
495
495
|
function B2(e, n) {
|
|
496
496
|
typeof e == "function" ? e(n) : e != null && (e.current = n);
|
|
@@ -507,11 +507,11 @@ const Fn = /* @__PURE__ */ ie((e, n) => {
|
|
|
507
507
|
const { children: t, ...i } = e, r = kt.toArray(t), a = r.find(U2);
|
|
508
508
|
if (a) {
|
|
509
509
|
const o = a.props.children, s = r.map((f) => f === a ? kt.count(o) > 1 ? kt.only(null) : /* @__PURE__ */ Yi(o) ? o.props.children : null : f);
|
|
510
|
-
return /* @__PURE__ */ X(Kd,
|
|
510
|
+
return /* @__PURE__ */ X(Kd, fn({}, i, {
|
|
511
511
|
ref: n
|
|
512
512
|
}), /* @__PURE__ */ Yi(o) ? /* @__PURE__ */ Ut(o, void 0, s) : null);
|
|
513
513
|
}
|
|
514
|
-
return /* @__PURE__ */ X(Kd,
|
|
514
|
+
return /* @__PURE__ */ X(Kd, fn({}, i, {
|
|
515
515
|
ref: n
|
|
516
516
|
}), t);
|
|
517
517
|
});
|
|
@@ -3141,15 +3141,15 @@ function ut(e) {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
const ni = globalThis != null && globalThis.document ? kr : () => {
|
|
3143
3143
|
};
|
|
3144
|
-
function
|
|
3145
|
-
return
|
|
3144
|
+
function en() {
|
|
3145
|
+
return en = Object.assign ? Object.assign.bind() : function(e) {
|
|
3146
3146
|
for (var n = 1; n < arguments.length; n++) {
|
|
3147
3147
|
var t = arguments[n];
|
|
3148
3148
|
for (var i in t)
|
|
3149
3149
|
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
3150
3150
|
}
|
|
3151
3151
|
return e;
|
|
3152
|
-
},
|
|
3152
|
+
}, en.apply(this, arguments);
|
|
3153
3153
|
}
|
|
3154
3154
|
function f3(e, n) {
|
|
3155
3155
|
typeof e == "function" ? e(n) : e != null && (e.current = n);
|
|
@@ -3166,11 +3166,11 @@ const Zc = /* @__PURE__ */ ie((e, n) => {
|
|
|
3166
3166
|
const { children: t, ...i } = e, r = kt.toArray(t), a = r.find(l3);
|
|
3167
3167
|
if (a) {
|
|
3168
3168
|
const o = a.props.children, s = r.map((f) => f === a ? kt.count(o) > 1 ? kt.only(null) : /* @__PURE__ */ Yi(o) ? o.props.children : null : f);
|
|
3169
|
-
return /* @__PURE__ */ X(Jd,
|
|
3169
|
+
return /* @__PURE__ */ X(Jd, en({}, i, {
|
|
3170
3170
|
ref: n
|
|
3171
3171
|
}), /* @__PURE__ */ Yi(o) ? /* @__PURE__ */ Ut(o, void 0, s) : null);
|
|
3172
3172
|
}
|
|
3173
|
-
return /* @__PURE__ */ X(Jd,
|
|
3173
|
+
return /* @__PURE__ */ X(Jd, en({}, i, {
|
|
3174
3174
|
ref: n
|
|
3175
3175
|
}), t);
|
|
3176
3176
|
});
|
|
@@ -3230,7 +3230,7 @@ const c3 = [
|
|
|
3230
3230
|
const { asChild: a, ...o } = i, s = a ? Zc : n;
|
|
3231
3231
|
return xe(() => {
|
|
3232
3232
|
window[Symbol.for("radix-ui")] = !0;
|
|
3233
|
-
}, []), /* @__PURE__ */ X(s,
|
|
3233
|
+
}, []), /* @__PURE__ */ X(s, en({}, o, {
|
|
3234
3234
|
ref: r
|
|
3235
3235
|
}));
|
|
3236
3236
|
});
|
|
@@ -3493,7 +3493,7 @@ const T3 = /* @__PURE__ */ Zn({
|
|
|
3493
3493
|
]), xe(() => {
|
|
3494
3494
|
const T = () => m({});
|
|
3495
3495
|
return document.addEventListener(Xd, T), () => document.removeEventListener(Xd, T);
|
|
3496
|
-
}, []), /* @__PURE__ */ X(En.div,
|
|
3496
|
+
}, []), /* @__PURE__ */ X(En.div, en({}, l, {
|
|
3497
3497
|
ref: g,
|
|
3498
3498
|
style: {
|
|
3499
3499
|
pointerEvents: S ? P ? "auto" : "none" : void 0,
|
|
@@ -3650,7 +3650,7 @@ const Jl = "focusScope.autoFocusOnMount", Xl = "focusScope.autoFocusOnUnmount",
|
|
|
3650
3650
|
i,
|
|
3651
3651
|
p.paused
|
|
3652
3652
|
]);
|
|
3653
|
-
return /* @__PURE__ */ X(En.div,
|
|
3653
|
+
return /* @__PURE__ */ X(En.div, en({
|
|
3654
3654
|
tabIndex: -1
|
|
3655
3655
|
}, o, {
|
|
3656
3656
|
ref: h,
|
|
@@ -3741,7 +3741,7 @@ function L3(e) {
|
|
|
3741
3741
|
const Dm = /* @__PURE__ */ ie((e, n) => {
|
|
3742
3742
|
var t;
|
|
3743
3743
|
const { container: i = globalThis == null || (t = globalThis.document) === null || t === void 0 ? void 0 : t.body, ...r } = e;
|
|
3744
|
-
return i ? /* @__PURE__ */ Kc.createPortal(/* @__PURE__ */ X(En.div,
|
|
3744
|
+
return i ? /* @__PURE__ */ Kc.createPortal(/* @__PURE__ */ X(En.div, en({}, r, {
|
|
3745
3745
|
ref: n
|
|
3746
3746
|
})), i) : null;
|
|
3747
3747
|
});
|
|
@@ -5333,7 +5333,7 @@ function E6(e) {
|
|
|
5333
5333
|
}
|
|
5334
5334
|
const S6 = /* @__PURE__ */ ie((e, n) => {
|
|
5335
5335
|
const { children: t, width: i = 10, height: r = 5, ...a } = e;
|
|
5336
|
-
return /* @__PURE__ */ X(rn.svg,
|
|
5336
|
+
return /* @__PURE__ */ X(rn.svg, en({}, a, {
|
|
5337
5337
|
ref: n,
|
|
5338
5338
|
width: i,
|
|
5339
5339
|
height: r,
|
|
@@ -5490,7 +5490,7 @@ const rd = "rovingFocusGroup.onEntryFocus", O6 = {
|
|
|
5490
5490
|
scope: e.__scopeRovingFocusGroup
|
|
5491
5491
|
}, /* @__PURE__ */ X(ic.Slot, {
|
|
5492
5492
|
scope: e.__scopeRovingFocusGroup
|
|
5493
|
-
}, /* @__PURE__ */ X(N6,
|
|
5493
|
+
}, /* @__PURE__ */ X(N6, en({}, e, {
|
|
5494
5494
|
ref: n
|
|
5495
5495
|
}))))), N6 = /* @__PURE__ */ ie((e, n) => {
|
|
5496
5496
|
const { __scopeRovingFocusGroup: t, orientation: i, loop: r = !1, dir: a, currentTabStopId: o, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: f, onEntryFocus: l, ...d } = e, u = ye(null), h = pt(n, u), p = lg(a), [m = null, g] = Tt({
|
|
@@ -5532,7 +5532,7 @@ const rd = "rovingFocusGroup.onEntryFocus", O6 = {
|
|
|
5532
5532
|
),
|
|
5533
5533
|
[]
|
|
5534
5534
|
)
|
|
5535
|
-
}, /* @__PURE__ */ X(rn.div,
|
|
5535
|
+
}, /* @__PURE__ */ X(rn.div, en({
|
|
5536
5536
|
tabIndex: y || P === 0 ? -1 : 0,
|
|
5537
5537
|
"data-orientation": i
|
|
5538
5538
|
}, d, {
|
|
@@ -5586,7 +5586,7 @@ const rd = "rovingFocusGroup.onEntryFocus", O6 = {
|
|
|
5586
5586
|
id: f,
|
|
5587
5587
|
focusable: i,
|
|
5588
5588
|
active: r
|
|
5589
|
-
}, /* @__PURE__ */ X(rn.span,
|
|
5589
|
+
}, /* @__PURE__ */ X(rn.span, en({
|
|
5590
5590
|
tabIndex: d ? 0 : -1,
|
|
5591
5591
|
"data-orientation": l.orientation
|
|
5592
5592
|
}, o, {
|
|
@@ -5709,7 +5709,7 @@ const G6 = /* @__PURE__ */ Zn({
|
|
|
5709
5709
|
]), xe(() => {
|
|
5710
5710
|
const T = () => m({});
|
|
5711
5711
|
return document.addEventListener(rc, T), () => document.removeEventListener(rc, T);
|
|
5712
|
-
}, []), /* @__PURE__ */ X(rn.div,
|
|
5712
|
+
}, []), /* @__PURE__ */ X(rn.div, en({}, l, {
|
|
5713
5713
|
ref: g,
|
|
5714
5714
|
style: {
|
|
5715
5715
|
pointerEvents: S ? P ? "auto" : "none" : void 0,
|
|
@@ -5878,7 +5878,7 @@ const ad = "focusScope.autoFocusOnMount", od = "focusScope.autoFocusOnUnmount",
|
|
|
5878
5878
|
i,
|
|
5879
5879
|
p.paused
|
|
5880
5880
|
]);
|
|
5881
|
-
return /* @__PURE__ */ X(rn.div,
|
|
5881
|
+
return /* @__PURE__ */ X(rn.div, en({
|
|
5882
5882
|
tabIndex: -1
|
|
5883
5883
|
}, o, {
|
|
5884
5884
|
ref: h,
|
|
@@ -6161,7 +6161,7 @@ function Mg(e) {
|
|
|
6161
6161
|
const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
6162
6162
|
var t;
|
|
6163
6163
|
const { container: i = globalThis == null || (t = globalThis.document) === null || t === void 0 ? void 0 : t.body, ...r } = e;
|
|
6164
|
-
return i ? /* @__PURE__ */ Kc.createPortal(/* @__PURE__ */ X(rn.div,
|
|
6164
|
+
return i ? /* @__PURE__ */ Kc.createPortal(/* @__PURE__ */ X(rn.div, en({}, r, {
|
|
6165
6165
|
ref: n
|
|
6166
6166
|
})), i) : null;
|
|
6167
6167
|
}), vx = [
|
|
@@ -6225,7 +6225,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6225
6225
|
}, i)));
|
|
6226
6226
|
}, kx = /* @__PURE__ */ ie((e, n) => {
|
|
6227
6227
|
const { __scopeMenu: t, ...i } = e, r = Vf(t);
|
|
6228
|
-
return /* @__PURE__ */ X(fu,
|
|
6228
|
+
return /* @__PURE__ */ X(fu, en({}, r, i, {
|
|
6229
6229
|
ref: n
|
|
6230
6230
|
}));
|
|
6231
6231
|
}), Wg = "MenuPortal", [xx, Ex] = Sr(Wg, {
|
|
@@ -6249,9 +6249,9 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6249
6249
|
present: i || a.open
|
|
6250
6250
|
}, /* @__PURE__ */ X(ac.Slot, {
|
|
6251
6251
|
scope: e.__scopeMenu
|
|
6252
|
-
}, o.modal ? /* @__PURE__ */ X(Ax,
|
|
6252
|
+
}, o.modal ? /* @__PURE__ */ X(Ax, en({}, r, {
|
|
6253
6253
|
ref: n
|
|
6254
|
-
})) : /* @__PURE__ */ X(Tx,
|
|
6254
|
+
})) : /* @__PURE__ */ X(Tx, en({}, r, {
|
|
6255
6255
|
ref: n
|
|
6256
6256
|
})))));
|
|
6257
6257
|
}), Ax = /* @__PURE__ */ ie((e, n) => {
|
|
@@ -6260,7 +6260,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6260
6260
|
const a = i.current;
|
|
6261
6261
|
if (a)
|
|
6262
6262
|
return nu(a);
|
|
6263
|
-
}, []), /* @__PURE__ */ X(Vg,
|
|
6263
|
+
}, []), /* @__PURE__ */ X(Vg, en({}, e, {
|
|
6264
6264
|
ref: r,
|
|
6265
6265
|
trapFocus: t.open,
|
|
6266
6266
|
disableOutsidePointerEvents: t.open,
|
|
@@ -6276,7 +6276,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6276
6276
|
}));
|
|
6277
6277
|
}), Tx = /* @__PURE__ */ ie((e, n) => {
|
|
6278
6278
|
const t = zo(Hi, e.__scopeMenu);
|
|
6279
|
-
return /* @__PURE__ */ X(Vg,
|
|
6279
|
+
return /* @__PURE__ */ X(Vg, en({}, e, {
|
|
6280
6280
|
ref: n,
|
|
6281
6281
|
trapFocus: !1,
|
|
6282
6282
|
disableOutsidePointerEvents: !1,
|
|
@@ -6351,7 +6351,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6351
6351
|
onFocusOutside: u,
|
|
6352
6352
|
onInteractOutside: h,
|
|
6353
6353
|
onDismiss: p
|
|
6354
|
-
}, /* @__PURE__ */ X(W6,
|
|
6354
|
+
}, /* @__PURE__ */ X(W6, en({
|
|
6355
6355
|
asChild: !0
|
|
6356
6356
|
}, E, {
|
|
6357
6357
|
dir: w.dir,
|
|
@@ -6362,7 +6362,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6362
6362
|
onEntryFocus: cn(f, (fe) => {
|
|
6363
6363
|
w.isUsingKeyboardRef.current || fe.preventDefault();
|
|
6364
6364
|
})
|
|
6365
|
-
}), /* @__PURE__ */ X(Dg,
|
|
6365
|
+
}), /* @__PURE__ */ X(Dg, en({
|
|
6366
6366
|
role: "menu",
|
|
6367
6367
|
"aria-orientation": "vertical",
|
|
6368
6368
|
"data-state": Ux(y.open),
|
|
@@ -6401,14 +6401,14 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6401
6401
|
})))))));
|
|
6402
6402
|
}), Ox = /* @__PURE__ */ ie((e, n) => {
|
|
6403
6403
|
const { __scopeMenu: t, ...i } = e;
|
|
6404
|
-
return /* @__PURE__ */ X(rn.div,
|
|
6404
|
+
return /* @__PURE__ */ X(rn.div, en({
|
|
6405
6405
|
role: "group"
|
|
6406
6406
|
}, i, {
|
|
6407
6407
|
ref: n
|
|
6408
6408
|
}));
|
|
6409
6409
|
}), Px = /* @__PURE__ */ ie((e, n) => {
|
|
6410
6410
|
const { __scopeMenu: t, ...i } = e;
|
|
6411
|
-
return /* @__PURE__ */ X(rn.div,
|
|
6411
|
+
return /* @__PURE__ */ X(rn.div, en({}, i, {
|
|
6412
6412
|
ref: n
|
|
6413
6413
|
}));
|
|
6414
6414
|
}), oc = "MenuItem", Ev = "menu.itemSelect", qg = /* @__PURE__ */ ie((e, n) => {
|
|
@@ -6428,7 +6428,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6428
6428
|
), Sm(u, h), h.defaultPrevented ? l.current = !1 : o.onClose();
|
|
6429
6429
|
}
|
|
6430
6430
|
};
|
|
6431
|
-
return /* @__PURE__ */ X(Ix,
|
|
6431
|
+
return /* @__PURE__ */ X(Ix, en({}, r, {
|
|
6432
6432
|
ref: f,
|
|
6433
6433
|
disabled: t,
|
|
6434
6434
|
onClick: cn(e.onClick, d),
|
|
@@ -6459,11 +6459,11 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6459
6459
|
scope: t,
|
|
6460
6460
|
disabled: i,
|
|
6461
6461
|
textValue: r ?? h
|
|
6462
|
-
}, /* @__PURE__ */ X(H6,
|
|
6462
|
+
}, /* @__PURE__ */ X(H6, en({
|
|
6463
6463
|
asChild: !0
|
|
6464
6464
|
}, s, {
|
|
6465
6465
|
focusable: !i
|
|
6466
|
-
}), /* @__PURE__ */ X(rn.div,
|
|
6466
|
+
}), /* @__PURE__ */ X(rn.div, en({
|
|
6467
6467
|
role: "menuitem",
|
|
6468
6468
|
"data-highlighted": d ? "" : void 0,
|
|
6469
6469
|
"aria-disabled": i || void 0,
|
|
@@ -6490,7 +6490,7 @@ const Ng = ix, fu = ax, Dg = fx, Lg = cx, Bg = /* @__PURE__ */ ie((e, n) => {
|
|
|
6490
6490
|
return /* @__PURE__ */ X(Mx, {
|
|
6491
6491
|
scope: e.__scopeMenu,
|
|
6492
6492
|
checked: t
|
|
6493
|
-
}, /* @__PURE__ */ X(qg,
|
|
6493
|
+
}, /* @__PURE__ */ X(qg, en({
|
|
6494
6494
|
role: "menuitemcheckbox",
|
|
6495
6495
|
"aria-checked": ff(t) ? "mixed" : t
|
|
6496
6496
|
}, r, {
|
|
@@ -6516,13 +6516,13 @@ const Gg = "MenuItemIndicator", [Mx, Nx] = Sr(Gg, {
|
|
|
6516
6516
|
const { __scopeMenu: t, forceMount: i, ...r } = e, a = Nx(Gg, t);
|
|
6517
6517
|
return /* @__PURE__ */ X(Pa, {
|
|
6518
6518
|
present: i || ff(a.checked) || a.checked === !0
|
|
6519
|
-
}, /* @__PURE__ */ X(rn.span,
|
|
6519
|
+
}, /* @__PURE__ */ X(rn.span, en({}, r, {
|
|
6520
6520
|
ref: n,
|
|
6521
6521
|
"data-state": Kg(a.checked)
|
|
6522
6522
|
})));
|
|
6523
6523
|
}), Lx = /* @__PURE__ */ ie((e, n) => {
|
|
6524
6524
|
const { __scopeMenu: t, ...i } = e;
|
|
6525
|
-
return /* @__PURE__ */ X(rn.div,
|
|
6525
|
+
return /* @__PURE__ */ X(rn.div, en({
|
|
6526
6526
|
role: "separator",
|
|
6527
6527
|
"aria-orientation": "horizontal"
|
|
6528
6528
|
}, i, {
|
|
@@ -6530,7 +6530,7 @@ const Gg = "MenuItemIndicator", [Mx, Nx] = Sr(Gg, {
|
|
|
6530
6530
|
}));
|
|
6531
6531
|
}), Bx = /* @__PURE__ */ ie((e, n) => {
|
|
6532
6532
|
const { __scopeMenu: t, ...i } = e, r = Vf(t);
|
|
6533
|
-
return /* @__PURE__ */ X(Lg,
|
|
6533
|
+
return /* @__PURE__ */ X(Lg, en({}, r, i, {
|
|
6534
6534
|
ref: n
|
|
6535
6535
|
}));
|
|
6536
6536
|
}), jx = "MenuSub";
|
|
@@ -6774,7 +6774,7 @@ const Zg = "Checkbox", [O5, mU] = er(Zg), [P5, I5] = O5(Zg), R5 = /* @__PURE__ *
|
|
|
6774
6774
|
scope: t,
|
|
6775
6775
|
state: y,
|
|
6776
6776
|
disabled: s
|
|
6777
|
-
}, /* @__PURE__ */ X(En.button,
|
|
6777
|
+
}, /* @__PURE__ */ X(En.button, fn({
|
|
6778
6778
|
type: "button",
|
|
6779
6779
|
role: "checkbox",
|
|
6780
6780
|
"aria-checked": pr(y) ? "mixed" : y,
|
|
@@ -6809,7 +6809,7 @@ const Zg = "Checkbox", [O5, mU] = er(Zg), [P5, I5] = O5(Zg), R5 = /* @__PURE__ *
|
|
|
6809
6809
|
const { __scopeCheckbox: t, forceMount: i, ...r } = e, a = I5(F5, t);
|
|
6810
6810
|
return /* @__PURE__ */ X(Pt, {
|
|
6811
6811
|
present: i || pr(a.state) || a.state === !0
|
|
6812
|
-
}, /* @__PURE__ */ X(En.span,
|
|
6812
|
+
}, /* @__PURE__ */ X(En.span, fn({
|
|
6813
6813
|
"data-state": Qg(a.state),
|
|
6814
6814
|
"data-disabled": a.disabled ? "" : void 0
|
|
6815
6815
|
}, r, {
|
|
@@ -6833,7 +6833,7 @@ const Zg = "Checkbox", [O5, mU] = er(Zg), [P5, I5] = O5(Zg), R5 = /* @__PURE__ *
|
|
|
6833
6833
|
o,
|
|
6834
6834
|
t,
|
|
6835
6835
|
i
|
|
6836
|
-
]), /* @__PURE__ */ X("input",
|
|
6836
|
+
]), /* @__PURE__ */ X("input", fn({
|
|
6837
6837
|
type: "checkbox",
|
|
6838
6838
|
"aria-hidden": !0,
|
|
6839
6839
|
defaultChecked: pr(t) ? !1 : t
|
|
@@ -12860,10 +12860,12 @@ var a7 = Symbol("logInfoProperties"), o7 = (e) => {
|
|
|
12860
12860
|
value: a + "$log"
|
|
12861
12861
|
});
|
|
12862
12862
|
}, d7 = (e) => e && typeof e.then == "function", c7 = (e) => {
|
|
12863
|
-
|
|
12863
|
+
let n;
|
|
12864
|
+
if (typeof localStorage > "u" ? globalThis.localStorage_dxlog && (n = globalThis.localStorage_dxlog) : n = localStorage.getItem("dxlog") ?? void 0, !!n)
|
|
12864
12865
|
try {
|
|
12865
|
-
return JSON.parse(
|
|
12866
|
-
} catch {
|
|
12866
|
+
return JSON.parse(n);
|
|
12867
|
+
} catch (t) {
|
|
12868
|
+
console.info("can't parse dxlog config", t);
|
|
12867
12869
|
return;
|
|
12868
12870
|
}
|
|
12869
12871
|
}, V0 = () => {
|
|
@@ -13092,11 +13094,11 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13092
13094
|
return xe(() => (o(), () => s()), [
|
|
13093
13095
|
o,
|
|
13094
13096
|
s
|
|
13095
|
-
]), /* @__PURE__ */ X(fu,
|
|
13097
|
+
]), /* @__PURE__ */ X(fu, fn({}, a, i, {
|
|
13096
13098
|
ref: n
|
|
13097
13099
|
}));
|
|
13098
13100
|
}), C7 = "PopoverTrigger", $7 = /* @__PURE__ */ ie((e, n) => {
|
|
13099
|
-
const { __scopePopover: t, ...i } = e, r = nr(C7, t), a = qo(t), o = pt(n, r.triggerRef), s = /* @__PURE__ */ X(rn.button,
|
|
13101
|
+
const { __scopePopover: t, ...i } = e, r = nr(C7, t), a = qo(t), o = pt(n, r.triggerRef), s = /* @__PURE__ */ X(rn.button, fn({
|
|
13100
13102
|
type: "button",
|
|
13101
13103
|
"aria-haspopup": "dialog",
|
|
13102
13104
|
"aria-expanded": r.open,
|
|
@@ -13106,7 +13108,7 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13106
13108
|
ref: o,
|
|
13107
13109
|
onClick: cn(e.onClick, r.onOpenToggle)
|
|
13108
13110
|
}));
|
|
13109
|
-
return r.hasCustomAnchor ? s : /* @__PURE__ */ X(fu,
|
|
13111
|
+
return r.hasCustomAnchor ? s : /* @__PURE__ */ X(fu, fn({
|
|
13110
13112
|
asChild: !0
|
|
13111
13113
|
}, a), s);
|
|
13112
13114
|
}), J0 = "PopoverPortal", [A7, T7] = Y0(J0, {
|
|
@@ -13126,9 +13128,9 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13126
13128
|
const t = T7(Po, e.__scopePopover), { forceMount: i = t.forceMount, ...r } = e, a = nr(Po, e.__scopePopover);
|
|
13127
13129
|
return /* @__PURE__ */ X(Pa, {
|
|
13128
13130
|
present: i || a.open
|
|
13129
|
-
}, a.modal ? /* @__PURE__ */ X(I7,
|
|
13131
|
+
}, a.modal ? /* @__PURE__ */ X(I7, fn({}, r, {
|
|
13130
13132
|
ref: n
|
|
13131
|
-
})) : /* @__PURE__ */ X(R7,
|
|
13133
|
+
})) : /* @__PURE__ */ X(R7, fn({}, r, {
|
|
13132
13134
|
ref: n
|
|
13133
13135
|
})));
|
|
13134
13136
|
}), I7 = /* @__PURE__ */ ie((e, n) => {
|
|
@@ -13140,7 +13142,7 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13140
13142
|
}, []), /* @__PURE__ */ X(eu, {
|
|
13141
13143
|
as: Fn,
|
|
13142
13144
|
allowPinchZoom: !0
|
|
13143
|
-
}, /* @__PURE__ */ X(X0,
|
|
13145
|
+
}, /* @__PURE__ */ X(X0, fn({}, e, {
|
|
13144
13146
|
ref: r,
|
|
13145
13147
|
trapFocus: t.open,
|
|
13146
13148
|
disableOutsidePointerEvents: !0,
|
|
@@ -13164,7 +13166,7 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13164
13166
|
})));
|
|
13165
13167
|
}), R7 = /* @__PURE__ */ ie((e, n) => {
|
|
13166
13168
|
const t = nr(Po, e.__scopePopover), i = ye(!1), r = ye(!1);
|
|
13167
|
-
return /* @__PURE__ */ X(X0,
|
|
13169
|
+
return /* @__PURE__ */ X(X0, fn({}, e, {
|
|
13168
13170
|
ref: n,
|
|
13169
13171
|
trapFocus: !1,
|
|
13170
13172
|
disableOutsidePointerEvents: !1,
|
|
@@ -13199,7 +13201,7 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13199
13201
|
onPointerDownOutside: f,
|
|
13200
13202
|
onFocusOutside: l,
|
|
13201
13203
|
onDismiss: () => h.onOpenChange(!1)
|
|
13202
|
-
}, /* @__PURE__ */ X(Dg,
|
|
13204
|
+
}, /* @__PURE__ */ X(Dg, fn({
|
|
13203
13205
|
"data-state": Z0(h.open),
|
|
13204
13206
|
role: "dialog",
|
|
13205
13207
|
id: h.contentId
|
|
@@ -13216,7 +13218,7 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13216
13218
|
}))));
|
|
13217
13219
|
}), F7 = "PopoverClose", M7 = /* @__PURE__ */ ie((e, n) => {
|
|
13218
13220
|
const { __scopePopover: t, ...i } = e, r = nr(F7, t);
|
|
13219
|
-
return /* @__PURE__ */ X(rn.button,
|
|
13221
|
+
return /* @__PURE__ */ X(rn.button, fn({
|
|
13220
13222
|
type: "button"
|
|
13221
13223
|
}, i, {
|
|
13222
13224
|
ref: n,
|
|
@@ -13227,7 +13229,7 @@ const K0 = "Popover", [Y0, xU] = Wt(K0, [
|
|
|
13227
13229
|
}));
|
|
13228
13230
|
}), N7 = /* @__PURE__ */ ie((e, n) => {
|
|
13229
13231
|
const { __scopePopover: t, ...i } = e, r = qo(t);
|
|
13230
|
-
return /* @__PURE__ */ X(Lg,
|
|
13232
|
+
return /* @__PURE__ */ X(Lg, fn({}, r, i, {
|
|
13231
13233
|
ref: n
|
|
13232
13234
|
}));
|
|
13233
13235
|
});
|
|
@@ -13269,7 +13271,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13269
13271
|
onScrollbarYEnabledChange: T,
|
|
13270
13272
|
onCornerWidthChange: k,
|
|
13271
13273
|
onCornerHeightChange: S
|
|
13272
|
-
}, /* @__PURE__ */ X(En.div,
|
|
13274
|
+
}, /* @__PURE__ */ X(En.div, fn({
|
|
13273
13275
|
dir: B
|
|
13274
13276
|
}, o, {
|
|
13275
13277
|
ref: F,
|
|
@@ -13287,7 +13289,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13287
13289
|
dangerouslySetInnerHTML: {
|
|
13288
13290
|
__html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
|
|
13289
13291
|
}
|
|
13290
|
-
}), /* @__PURE__ */ X(En.div,
|
|
13292
|
+
}), /* @__PURE__ */ X(En.div, fn({
|
|
13291
13293
|
"data-radix-scroll-area-viewport": ""
|
|
13292
13294
|
}, r, {
|
|
13293
13295
|
ref: s,
|
|
@@ -13322,16 +13324,16 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13322
13324
|
s,
|
|
13323
13325
|
a,
|
|
13324
13326
|
o
|
|
13325
|
-
]), r.type === "hover" ? /* @__PURE__ */ X(V7,
|
|
13327
|
+
]), r.type === "hover" ? /* @__PURE__ */ X(V7, fn({}, i, {
|
|
13326
13328
|
ref: n,
|
|
13327
13329
|
forceMount: t
|
|
13328
|
-
})) : r.type === "scroll" ? /* @__PURE__ */ X(q7,
|
|
13330
|
+
})) : r.type === "scroll" ? /* @__PURE__ */ X(q7, fn({}, i, {
|
|
13329
13331
|
ref: n,
|
|
13330
13332
|
forceMount: t
|
|
13331
|
-
})) : r.type === "auto" ? /* @__PURE__ */ X(nb,
|
|
13333
|
+
})) : r.type === "auto" ? /* @__PURE__ */ X(nb, fn({}, i, {
|
|
13332
13334
|
ref: n,
|
|
13333
13335
|
forceMount: t
|
|
13334
|
-
})) : r.type === "always" ? /* @__PURE__ */ X($u,
|
|
13336
|
+
})) : r.type === "always" ? /* @__PURE__ */ X($u, fn({}, i, {
|
|
13335
13337
|
ref: n
|
|
13336
13338
|
})) : null;
|
|
13337
13339
|
}), V7 = /* @__PURE__ */ ie((e, n) => {
|
|
@@ -13357,7 +13359,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13357
13359
|
r.scrollHideDelay
|
|
13358
13360
|
]), /* @__PURE__ */ X(Pt, {
|
|
13359
13361
|
present: t || a
|
|
13360
|
-
}, /* @__PURE__ */ X(nb,
|
|
13362
|
+
}, /* @__PURE__ */ X(nb, fn({
|
|
13361
13363
|
"data-state": a ? "visible" : "hidden"
|
|
13362
13364
|
}, i, {
|
|
13363
13365
|
ref: n
|
|
@@ -13413,7 +13415,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13413
13415
|
o
|
|
13414
13416
|
]), /* @__PURE__ */ X(Pt, {
|
|
13415
13417
|
present: t || s !== "hidden"
|
|
13416
|
-
}, /* @__PURE__ */ X($u,
|
|
13418
|
+
}, /* @__PURE__ */ X($u, fn({
|
|
13417
13419
|
"data-state": s === "hidden" ? "hidden" : "visible"
|
|
13418
13420
|
}, i, {
|
|
13419
13421
|
ref: n,
|
|
@@ -13435,7 +13437,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13435
13437
|
}, 10);
|
|
13436
13438
|
return wa(t.viewport, f), wa(t.content, f), /* @__PURE__ */ X(Pt, {
|
|
13437
13439
|
present: i || a
|
|
13438
|
-
}, /* @__PURE__ */ X($u,
|
|
13440
|
+
}, /* @__PURE__ */ X($u, fn({
|
|
13439
13441
|
"data-state": a ? "visible" : "hidden"
|
|
13440
13442
|
}, r, {
|
|
13441
13443
|
ref: n
|
|
@@ -13461,7 +13463,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13461
13463
|
function u(h, p) {
|
|
13462
13464
|
return eC(h, o.current, s, p);
|
|
13463
13465
|
}
|
|
13464
|
-
return t === "horizontal" ? /* @__PURE__ */ X(G7,
|
|
13466
|
+
return t === "horizontal" ? /* @__PURE__ */ X(G7, fn({}, d, {
|
|
13465
13467
|
ref: n,
|
|
13466
13468
|
onThumbPositionChange: () => {
|
|
13467
13469
|
if (r.viewport && a.current) {
|
|
@@ -13475,7 +13477,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13475
13477
|
onDragScroll: (h) => {
|
|
13476
13478
|
r.viewport && (r.viewport.scrollLeft = u(h, r.dir));
|
|
13477
13479
|
}
|
|
13478
|
-
})) : t === "vertical" ? /* @__PURE__ */ X(K7,
|
|
13480
|
+
})) : t === "vertical" ? /* @__PURE__ */ X(K7, fn({}, d, {
|
|
13479
13481
|
ref: n,
|
|
13480
13482
|
onThumbPositionChange: () => {
|
|
13481
13483
|
if (r.viewport && a.current) {
|
|
@@ -13496,7 +13498,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13496
13498
|
f.current && s(getComputedStyle(f.current));
|
|
13497
13499
|
}, [
|
|
13498
13500
|
f
|
|
13499
|
-
]), /* @__PURE__ */ X(ib,
|
|
13501
|
+
]), /* @__PURE__ */ X(ib, fn({
|
|
13500
13502
|
"data-orientation": "horizontal"
|
|
13501
13503
|
}, r, {
|
|
13502
13504
|
ref: l,
|
|
@@ -13534,7 +13536,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13534
13536
|
f.current && s(getComputedStyle(f.current));
|
|
13535
13537
|
}, [
|
|
13536
13538
|
f
|
|
13537
|
-
]), /* @__PURE__ */ X(ib,
|
|
13539
|
+
]), /* @__PURE__ */ X(ib, fn({
|
|
13538
13540
|
"data-orientation": "vertical"
|
|
13539
13541
|
}, r, {
|
|
13540
13542
|
ref: l,
|
|
@@ -13607,7 +13609,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13607
13609
|
onThumbPointerUp: ut(o),
|
|
13608
13610
|
onThumbPositionChange: I,
|
|
13609
13611
|
onThumbPointerDown: ut(s)
|
|
13610
|
-
}, /* @__PURE__ */ X(En.div,
|
|
13612
|
+
}, /* @__PURE__ */ X(En.div, fn({}, h, {
|
|
13611
13613
|
ref: y,
|
|
13612
13614
|
style: {
|
|
13613
13615
|
position: "absolute",
|
|
@@ -13626,7 +13628,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13626
13628
|
const { forceMount: t, ...i } = e, r = tb(hc, e.__scopeScrollArea);
|
|
13627
13629
|
return /* @__PURE__ */ X(Pt, {
|
|
13628
13630
|
present: t || r.hasThumb
|
|
13629
|
-
}, /* @__PURE__ */ X(X7,
|
|
13631
|
+
}, /* @__PURE__ */ X(X7, fn({
|
|
13630
13632
|
ref: n
|
|
13631
13633
|
}, i)));
|
|
13632
13634
|
}), X7 = /* @__PURE__ */ ie((e, n) => {
|
|
@@ -13651,7 +13653,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13651
13653
|
a.viewport,
|
|
13652
13654
|
d,
|
|
13653
13655
|
s
|
|
13654
|
-
]), /* @__PURE__ */ X(En.div,
|
|
13656
|
+
]), /* @__PURE__ */ X(En.div, fn({
|
|
13655
13657
|
"data-state": o.hasThumb ? "visible" : "hidden"
|
|
13656
13658
|
}, r, {
|
|
13657
13659
|
ref: f,
|
|
@@ -13671,7 +13673,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13671
13673
|
}));
|
|
13672
13674
|
}), rb = "ScrollAreaCorner", Z7 = /* @__PURE__ */ ie((e, n) => {
|
|
13673
13675
|
const t = It(rb, e.__scopeScrollArea), i = !!(t.scrollbarX && t.scrollbarY);
|
|
13674
|
-
return t.type !== "scroll" && i ? /* @__PURE__ */ X(Q7,
|
|
13676
|
+
return t.type !== "scroll" && i ? /* @__PURE__ */ X(Q7, fn({}, e, {
|
|
13675
13677
|
ref: n
|
|
13676
13678
|
})) : null;
|
|
13677
13679
|
}), Q7 = /* @__PURE__ */ ie((e, n) => {
|
|
@@ -13684,7 +13686,7 @@ const Q0 = "ScrollArea", [eb, EU] = er(Q0), [j7, It] = eb(Q0), U7 = /* @__PURE__
|
|
|
13684
13686
|
var d;
|
|
13685
13687
|
const u = ((d = r.scrollbarY) === null || d === void 0 ? void 0 : d.offsetWidth) || 0;
|
|
13686
13688
|
r.onCornerWidthChange(u), o(u);
|
|
13687
|
-
}), l ? /* @__PURE__ */ X(En.div,
|
|
13689
|
+
}), l ? /* @__PURE__ */ X(En.div, fn({}, i, {
|
|
13688
13690
|
ref: n,
|
|
13689
13691
|
style: {
|
|
13690
13692
|
width: a,
|
|
@@ -14332,7 +14334,7 @@ const CC = (e) => {
|
|
|
14332
14334
|
};
|
|
14333
14335
|
}, $C = /* @__PURE__ */ ie((e, n) => {
|
|
14334
14336
|
const { children: t, width: i = 10, height: r = 5, ...a } = e;
|
|
14335
|
-
return /* @__PURE__ */ X(En.svg,
|
|
14337
|
+
return /* @__PURE__ */ X(En.svg, en({}, a, {
|
|
14336
14338
|
ref: n,
|
|
14337
14339
|
width: i,
|
|
14338
14340
|
height: r,
|
|
@@ -14352,7 +14354,7 @@ const CC = (e) => {
|
|
|
14352
14354
|
const { __scopePopper: t, virtualRef: i, ...r } = e, a = yb(PC, t), o = ye(null), s = jn(n, o);
|
|
14353
14355
|
return xe(() => {
|
|
14354
14356
|
a.onAnchorChange((i == null ? void 0 : i.current) || o.current);
|
|
14355
|
-
}), i ? null : /* @__PURE__ */ X(En.div,
|
|
14357
|
+
}), i ? null : /* @__PURE__ */ X(En.div, en({}, r, {
|
|
14356
14358
|
ref: s
|
|
14357
14359
|
}));
|
|
14358
14360
|
}), gf = "PopperContent", [RC, FC] = Ou(gf), [MC, NC] = Ou(gf, {
|
|
@@ -14528,7 +14530,7 @@ const CC = (e) => {
|
|
|
14528
14530
|
}[a.placedSide],
|
|
14529
14531
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
14530
14532
|
}
|
|
14531
|
-
}, /* @__PURE__ */ X(AC,
|
|
14533
|
+
}, /* @__PURE__ */ X(AC, en({}, r, {
|
|
14532
14534
|
ref: t,
|
|
14533
14535
|
style: {
|
|
14534
14536
|
...r.style,
|
|
@@ -14576,7 +14578,7 @@ function wb(e) {
|
|
|
14576
14578
|
t
|
|
14577
14579
|
];
|
|
14578
14580
|
}
|
|
14579
|
-
const VC = OC, qC = IC, GC = DC, KC = jC, YC = /* @__PURE__ */ ie((e, n) => /* @__PURE__ */ X(En.span,
|
|
14581
|
+
const VC = OC, qC = IC, GC = DC, KC = jC, YC = /* @__PURE__ */ ie((e, n) => /* @__PURE__ */ X(En.span, en({}, e, {
|
|
14580
14582
|
ref: n,
|
|
14581
14583
|
style: {
|
|
14582
14584
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -22544,7 +22546,7 @@ var bI = (
|
|
|
22544
22546
|
};
|
|
22545
22547
|
FT(({ addUtilities: e, theme: n, e: t }) => {
|
|
22546
22548
|
const i = n("semanticColors"), r = Object.entries(i).map(([a, o]) => {
|
|
22547
|
-
var s, f, l, d, u, h;
|
|
22549
|
+
var s, f, l, d, u, h, p, m;
|
|
22548
22550
|
return {
|
|
22549
22551
|
// TODO(thure): Refactor all of these tokens to simply prefix the properties they apply with `s-` as with `s-accent`.
|
|
22550
22552
|
[`.fg-${t(`${a}`)}`]: {
|
|
@@ -22570,6 +22572,12 @@ FT(({ addUtilities: e, theme: n, e: t }) => {
|
|
|
22570
22572
|
},
|
|
22571
22573
|
[`.dark .separator-${t(`${a}`)}`]: {
|
|
22572
22574
|
borderColor: `${((h = o.fg) == null ? void 0 : h.dark) ?? o.dark}`
|
|
22575
|
+
},
|
|
22576
|
+
[`.s-outline-${t(`${a}`)}`]: {
|
|
22577
|
+
outlineColor: `${((p = o.fg) == null ? void 0 : p.light) ?? o.light}`
|
|
22578
|
+
},
|
|
22579
|
+
[`.dark .s-outline-${t(`${a}`)}`]: {
|
|
22580
|
+
outlineColor: `${((m = o.fg) == null ? void 0 : m.dark) ?? o.dark}`
|
|
22573
22581
|
}
|
|
22574
22582
|
};
|
|
22575
22583
|
});
|
|
@@ -67675,56 +67683,46 @@ function mN(e, n) {
|
|
|
67675
67683
|
}
|
|
67676
67684
|
var ep;
|
|
67677
67685
|
(function(e) {
|
|
67678
|
-
e[e.
|
|
67686
|
+
e[e.ACTIVE = 0] = "ACTIVE", e[e.INACTIVE = 1] = "INACTIVE";
|
|
67679
67687
|
})(ep || (ep = {}));
|
|
67680
67688
|
var np;
|
|
67681
|
-
(function(e) {
|
|
67682
|
-
(function(n) {
|
|
67683
|
-
n[n.INCLUSIVE = 1] = "INCLUSIVE", n[n.EXPLICIT = 2] = "EXPLICIT";
|
|
67684
|
-
})(e.MatchingOptions || (e.MatchingOptions = {}));
|
|
67685
|
-
})(np || (np = {}));
|
|
67686
|
-
var tp;
|
|
67687
|
-
(function(e) {
|
|
67688
|
-
e[e.ACTIVE = 0] = "ACTIVE", e[e.INACTIVE = 1] = "INACTIVE";
|
|
67689
|
-
})(tp || (tp = {}));
|
|
67690
|
-
var ip;
|
|
67691
67689
|
(function(e) {
|
|
67692
67690
|
(function(n) {
|
|
67693
67691
|
n[n.NONE = 0] = "NONE", n[n.TRUNCATE = 1] = "TRUNCATE", n[n.HUMANIZE = 2] = "HUMANIZE";
|
|
67694
67692
|
})(e.KEY_OPTION || (e.KEY_OPTION = {}));
|
|
67695
|
-
})(
|
|
67696
|
-
var
|
|
67693
|
+
})(np || (np = {}));
|
|
67694
|
+
var tp;
|
|
67697
67695
|
(function(e) {
|
|
67698
67696
|
(function(n) {
|
|
67699
67697
|
n[n.BROWSER = 0] = "BROWSER", n[n.SHARED_WORKER = 1] = "SHARED_WORKER", n[n.NODE = 2] = "NODE";
|
|
67700
67698
|
})(e.PLATFORM_TYPE || (e.PLATFORM_TYPE = {}));
|
|
67701
|
-
})(
|
|
67702
|
-
var
|
|
67699
|
+
})(tp || (tp = {}));
|
|
67700
|
+
var ip;
|
|
67703
67701
|
(function(e) {
|
|
67704
67702
|
e[e.CURRENT = 0] = "CURRENT", e[e.TRUSTED = 1] = "TRUSTED";
|
|
67705
|
-
})(
|
|
67706
|
-
var
|
|
67703
|
+
})(ip || (ip = {}));
|
|
67704
|
+
var rp;
|
|
67707
67705
|
(function(e) {
|
|
67708
67706
|
(function(n) {
|
|
67709
67707
|
n[n.OFFLINE = 0] = "OFFLINE", n[n.ONLINE = 1] = "ONLINE", n[n.REMOVED = 2] = "REMOVED";
|
|
67710
67708
|
})(e.PresenceState || (e.PresenceState = {}));
|
|
67711
|
-
})(
|
|
67712
|
-
var
|
|
67709
|
+
})(rp || (rp = {}));
|
|
67710
|
+
var ap;
|
|
67713
67711
|
(function(e) {
|
|
67714
67712
|
(function(n) {
|
|
67715
67713
|
n[n.OFFLINE = 0] = "OFFLINE", n[n.ONLINE = 1] = "ONLINE", n[n.REMOVED = 2] = "REMOVED";
|
|
67716
67714
|
})(e.PresenceState || (e.PresenceState = {}));
|
|
67717
|
-
})(
|
|
67718
|
-
var
|
|
67715
|
+
})(ap || (ap = {}));
|
|
67716
|
+
var op;
|
|
67719
67717
|
(function(e) {
|
|
67720
67718
|
e[e.INACTIVE = 2] = "INACTIVE", e[e.ACTIVE = 6] = "ACTIVE", e[e.CLOSED = 1] = "CLOSED", e[e.CONTROL_ONLY = 7] = "CONTROL_ONLY", e[e.INITIALIZING = 4] = "INITIALIZING", e[e.READY = 3] = "READY", e[e.ERROR = 5] = "ERROR";
|
|
67721
|
-
})(
|
|
67722
|
-
var
|
|
67719
|
+
})(op || (op = {}));
|
|
67720
|
+
var sp;
|
|
67723
67721
|
(function(e) {
|
|
67724
67722
|
(function(n) {
|
|
67725
67723
|
n[n.NONE = 0] = "NONE", n[n.INIT_AUTOMERGE = 1] = "INIT_AUTOMERGE", n[n.PRUNE_AUTOMERGE_ROOT_HISTORY = 2] = "PRUNE_AUTOMERGE_ROOT_HISTORY";
|
|
67726
67724
|
})(e.Migration || (e.Migration = {}));
|
|
67727
|
-
})(
|
|
67725
|
+
})(sp || (sp = {}));
|
|
67728
67726
|
var $e;
|
|
67729
67727
|
(function(e) {
|
|
67730
67728
|
(function(n) {
|
|
@@ -67737,17 +67735,27 @@ var $e;
|
|
|
67737
67735
|
n[n.INIT = 0] = "INIT", n[n.CONNECTING = 1] = "CONNECTING", n[n.CONNECTED = 2] = "CONNECTED", n[n.READY_FOR_AUTHENTICATION = 3] = "READY_FOR_AUTHENTICATION", n[n.AUTHENTICATING = 4] = "AUTHENTICATING", n[n.SUCCESS = 5] = "SUCCESS", n[n.CANCELLED = 6] = "CANCELLED", n[n.TIMEOUT = 7] = "TIMEOUT", n[n.ERROR = 8] = "ERROR", n[n.EXPIRED = 9] = "EXPIRED";
|
|
67738
67736
|
}(e.State || (e.State = {}));
|
|
67739
67737
|
})($e || ($e = {}));
|
|
67740
|
-
var
|
|
67738
|
+
var fp;
|
|
67741
67739
|
(function(e) {
|
|
67742
67740
|
(function(n) {
|
|
67743
67741
|
n[n.ADDED = 0] = "ADDED", n[n.REMOVED = 1] = "REMOVED", n[n.SAVED = 2] = "SAVED", n[n.LOAD_COMPLETE = 3] = "LOAD_COMPLETE";
|
|
67744
67742
|
})(e.Action || (e.Action = {})), function(n) {
|
|
67745
67743
|
n[n.CREATED = 0] = "CREATED", n[n.ACCEPTED = 1] = "ACCEPTED";
|
|
67746
67744
|
}(e.Type || (e.Type = {}));
|
|
67745
|
+
})(fp || (fp = {}));
|
|
67746
|
+
var lp;
|
|
67747
|
+
(function(e) {
|
|
67748
|
+
e[e.OFFLINE = 0] = "OFFLINE", e[e.ONLINE = 1] = "ONLINE";
|
|
67749
|
+
})(lp || (lp = {}));
|
|
67750
|
+
var dp;
|
|
67751
|
+
(function(e) {
|
|
67752
|
+
e[e.TRACE = 5] = "TRACE", e[e.DEBUG = 10] = "DEBUG", e[e.INFO = 11] = "INFO", e[e.WARN = 12] = "WARN", e[e.ERROR = 13] = "ERROR";
|
|
67747
67753
|
})(dp || (dp = {}));
|
|
67748
67754
|
var cp;
|
|
67749
67755
|
(function(e) {
|
|
67750
|
-
|
|
67756
|
+
(function(n) {
|
|
67757
|
+
n[n.INCLUSIVE = 1] = "INCLUSIVE", n[n.EXPLICIT = 2] = "EXPLICIT";
|
|
67758
|
+
})(e.MatchingOptions || (e.MatchingOptions = {}));
|
|
67751
67759
|
})(cp || (cp = {}));
|
|
67752
67760
|
var gN = class extends Error {
|
|
67753
67761
|
constructor() {
|
|
@@ -67822,22 +67830,27 @@ var Cd = "/home/runner/work/dxos/dxos/packages/common/context/src/context.ts", y
|
|
|
67822
67830
|
if (this._disposePromise)
|
|
67823
67831
|
return this._disposePromise;
|
|
67824
67832
|
this._isDisposed = !0;
|
|
67825
|
-
|
|
67826
|
-
|
|
67827
|
-
n
|
|
67833
|
+
let n;
|
|
67834
|
+
this._disposePromise = new Promise((r) => {
|
|
67835
|
+
n = r;
|
|
67836
|
+
});
|
|
67837
|
+
const t = [], i = Array.from(this._disposeCallbacks).reverse();
|
|
67838
|
+
for (const r of i)
|
|
67839
|
+
t.push((async () => {
|
|
67828
67840
|
try {
|
|
67829
|
-
await
|
|
67830
|
-
} catch (
|
|
67831
|
-
Ye.catch(
|
|
67841
|
+
await r();
|
|
67842
|
+
} catch (a) {
|
|
67843
|
+
Ye.catch(a, void 0, {
|
|
67832
67844
|
F: Cd,
|
|
67833
|
-
L:
|
|
67845
|
+
L: 132,
|
|
67834
67846
|
S: this,
|
|
67835
|
-
C: (
|
|
67847
|
+
C: (o, s) => o(...s)
|
|
67836
67848
|
});
|
|
67837
67849
|
}
|
|
67838
67850
|
})());
|
|
67839
|
-
return this._disposeCallbacks.length = 0,
|
|
67840
|
-
|
|
67851
|
+
return this._disposeCallbacks.length = 0, Promise.all(t).then(() => {
|
|
67852
|
+
n();
|
|
67853
|
+
}), this._disposePromise;
|
|
67841
67854
|
}
|
|
67842
67855
|
/**
|
|
67843
67856
|
* Raise the error inside the context.
|