@anzusystems/common-admin 1.47.0-beta.220 → 1.47.0-beta.222
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/common-admin.js +49 -47
- package/dist/common-admin.js.map +1 -1
- package/dist/{index-M1lrm46y.mjs → index-CbRPo2xl.mjs} +3092 -3025
- package/dist/index-CbRPo2xl.mjs.map +1 -0
- package/package.json +20 -20
- package/dist/index-M1lrm46y.mjs.map +0 -1
package/dist/common-admin.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent as j, computed as x, createBlock as k, createElementBlo
|
|
|
2
2
|
import { useI18n as ae } from "vue-i18n";
|
|
3
3
|
import { useI18n as tS } from "vue-i18n";
|
|
4
4
|
import { VChip as _t } from "vuetify/components/VChip";
|
|
5
|
-
import { _ as sa, u as Ia, i as we, a as zs, C as $t, b as Pt, S as Ua, c as Oa, d as E, s as ms, e as Qt, f as yt, g as ke, h as le, j as Bt, k as cu, l as wt, m as Oe, n as ls, o as Le, p as Je, q as dl, r as eo, t as mu, v as Vu, w as ul, x as ta, y as or, z as Ts, A as ka, B as fu, D as pu, E as wa, F as Na, G as ja, H as Ha, I as bt, J as Fa, K as ga, L as ia, M as ha, N as Wa, O as Ga, P as qa, Q as Xa, R as co, T as cl, U as Et, V as vu, W as Vs, X as Fu, Y as xr, Z as ml, $ as Vl, a0 as fl, a1 as pl, a2 as vl, a3 as Fl, a4 as gl, a5 as hl, a6 as ql, a7 as
|
|
5
|
+
import { _ as sa, u as Ia, i as we, a as zs, C as $t, b as Pt, S as Ua, c as Oa, d as E, s as ms, e as Qt, f as yt, g as ke, h as le, j as Bt, k as cu, l as wt, m as Oe, n as ls, o as Le, p as Je, q as dl, r as eo, t as mu, v as Vu, w as ul, x as ta, y as or, z as Ts, A as ka, B as fu, D as pu, E as wa, F as Na, G as ja, H as Ha, I as bt, J as Fa, K as ga, L as ia, M as ha, N as Wa, O as Ga, P as qa, Q as Xa, R as co, T as cl, U as Et, V as vu, W as Vs, X as Fu, Y as xr, Z as ml, $ as Vl, a0 as fl, a1 as pl, a2 as vl, a3 as Fl, a4 as gl, a5 as hl, a6 as ql, a7 as ft, a8 as Wi, a9 as Gi, aa as cn, ab as mn, ac as gu, ad as It, ae as Xl, af as Yl, ag as rr, ah as hu, ai as Al, aj as yl, ak as mo, al as _a, am as fs, an as bl, ao as qu, ap as Xu, aq as nr, ar as ys, as as Cl, at as xl, au as Vn, av as Yu, aw as lr, ax as fn, ay as Au, az as yu, aA as bu, aB as dr, aC as Cu, aD as xu, aE as Iu, aF as ku, aG as wu, aH as _u, aI as Su, aJ as Ku, aK as Il, aL as Du, aM as pn, aN as wi, aO as vn, aP as Fn } from "./enum-DTphaHnt.mjs";
|
|
6
6
|
import { aQ as sS, aR as iS, bl as oS, bm as rS, b0 as nS, a$ as lS, bf as dS, bh as uS, bi as cS, bg as mS, bj as VS, bc as fS, b5 as pS, b7 as vS, ba as FS, b2 as gS, b4 as hS, b3 as qS, b8 as XS, b6 as YS, bd as AS, bo as yS, bn as bS, be as CS, aU as xS, aT as IS, aY as kS, aX as wS, aV as _S, aW as SS, aZ as KS, a_ as DS, bb as TS, b1 as ES, bk as MS, aS as BS, b9 as $S } from "./enum-DTphaHnt.mjs";
|
|
7
7
|
import { VAlert as oi } from "vuetify/components/VAlert";
|
|
8
8
|
import { VIcon as oe } from "vuetify/components/VIcon";
|
|
@@ -2837,7 +2837,7 @@ function pm(s, t = !1, e = void 0, a = void 0, i = !1) {
|
|
|
2837
2837
|
!he.value.enabled || E(o.value) || o.value.emit("leaveCollabRoom", s, (ie) => {
|
|
2838
2838
|
cn(ie) && r.set(s, ie.room);
|
|
2839
2839
|
});
|
|
2840
|
-
},
|
|
2840
|
+
}, pt = () => {
|
|
2841
2841
|
!he.value.enabled || E(o.value) || o.value?.emit("enteredCollabRoom", s);
|
|
2842
2842
|
}, Lt = () => new Promise((ie, st) => {
|
|
2843
2843
|
if (!he.value.enabled || E(o.value))
|
|
@@ -2865,7 +2865,7 @@ function pm(s, t = !1, e = void 0, a = void 0, i = !1) {
|
|
|
2865
2865
|
}, es = (ie) => {
|
|
2866
2866
|
!he.value.enabled || E(o.value) || o.value.emit("transferModeration", s, ie);
|
|
2867
2867
|
}, Ya = async (ie) => {
|
|
2868
|
-
const st = { name: "", status:
|
|
2868
|
+
const st = { name: "", status: ft.Inactive, users: [], moderator: null };
|
|
2869
2869
|
return new Promise((De) => {
|
|
2870
2870
|
if (!he.value.enabled || E(o.value)) return De(st);
|
|
2871
2871
|
o.value?.timeout(500).emit("fetchRoomsInfo", [ie], (mt, se) => {
|
|
@@ -2874,7 +2874,7 @@ function pm(s, t = !1, e = void 0, a = void 0, i = !1) {
|
|
|
2874
2874
|
return E(ge) && De(st), E(e) || e(ge.users), E(a) || a(), De(ge);
|
|
2875
2875
|
});
|
|
2876
2876
|
});
|
|
2877
|
-
}, de = x(() => r.get(s) ?? { name: s, moderator: null, users: [], status:
|
|
2877
|
+
}, de = x(() => r.get(s) ?? { name: s, moderator: null, users: [], status: ft.Inactive });
|
|
2878
2878
|
t && ye(
|
|
2879
2879
|
de,
|
|
2880
2880
|
(ie) => {
|
|
@@ -2901,7 +2901,7 @@ function pm(s, t = !1, e = void 0, a = void 0, i = !1) {
|
|
|
2901
2901
|
addRequestToTakeModerationListener: xe,
|
|
2902
2902
|
addApprovedRequestToTakeModerationListener: He,
|
|
2903
2903
|
addRejectedRequestToTakeModerationListener: Ye,
|
|
2904
|
-
enteredCollabRoom:
|
|
2904
|
+
enteredCollabRoom: pt,
|
|
2905
2905
|
kickUserFromRoom: Js,
|
|
2906
2906
|
transferModeration: es,
|
|
2907
2907
|
addKickedFromRoomListener: ue,
|
|
@@ -2965,7 +2965,7 @@ const vm = { class: "ml-3" }, Fm = { class: "ml-1" }, xw = /* @__PURE__ */ j({
|
|
|
2965
2965
|
});
|
|
2966
2966
|
const D = () => {
|
|
2967
2967
|
_.value = !1;
|
|
2968
|
-
}, R = x(() => N.value === null && e.value.users.length && !e.value.users.includes(b.value ?? 0) && !_.value), U = x(() => t.isEdit && e.value.status ===
|
|
2968
|
+
}, R = x(() => N.value === null && e.value.users.length && !e.value.users.includes(b.value ?? 0) && !_.value), U = x(() => t.isEdit && e.value.status === ft.Active && e.value.moderator !== b.value), Q = x(() => H.value && e.value.status === ft.Active), S = x(() => t.isEdit && e.value.status === ft.Active), O = x(() => t.isEdit && e.value.moderator === b.value && e.value.status === ft.Active), Z = x(() => !t.isEdit && I.value.has(t.collabRoom) && N.value === null), G = (Ye) => {
|
|
2969
2969
|
A.value = A.value.filter((te) => te.userId !== Ye), $.value = $.value.filter((te) => te !== Ye);
|
|
2970
2970
|
}, ve = async () => {
|
|
2971
2971
|
try {
|
|
@@ -15479,7 +15479,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
15479
15479
|
image: { default: void 0 },
|
|
15480
15480
|
configName: { default: "default" },
|
|
15481
15481
|
collab: { default: void 0 },
|
|
15482
|
-
collabStatus: { default:
|
|
15482
|
+
collabStatus: { default: ft.Inactive },
|
|
15483
15483
|
label: { default: void 0 },
|
|
15484
15484
|
required: { type: Boolean, default: !1 },
|
|
15485
15485
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -15515,9 +15515,9 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
15515
15515
|
});
|
|
15516
15516
|
}
|
|
15517
15517
|
const V = w(!1), p = () => {
|
|
15518
|
-
V.value === !0 || a.collabStatus ===
|
|
15518
|
+
V.value === !0 || a.collabStatus === ft.Inactive || (d.value(), V.value = !0);
|
|
15519
15519
|
}, g = (de) => {
|
|
15520
|
-
V.value === !1 || a.collabStatus ===
|
|
15520
|
+
V.value === !1 || a.collabStatus === ft.Inactive || (n.value(de), V.value = !1);
|
|
15521
15521
|
}, F = ct(
|
|
15522
15522
|
qs,
|
|
15523
15523
|
void 0
|
|
@@ -15529,7 +15529,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
15529
15529
|
}, ve = () => {
|
|
15530
15530
|
N.value = !0;
|
|
15531
15531
|
}, { cachedExtSystemId: ce } = na(), re = w(!1), Te = async () => {
|
|
15532
|
-
if (!l.value.enabled || E(a.collab) || a.collabStatus ===
|
|
15532
|
+
if (!l.value.enabled || E(a.collab) || a.collabStatus === ft.Inactive)
|
|
15533
15533
|
return Promise.resolve(!0);
|
|
15534
15534
|
let de = 0;
|
|
15535
15535
|
const Ae = () => re.value ? Promise.resolve(!0) : (de++, de < 50 ? new Promise((ie) => setTimeout(() => ie(Ae()), 100)) : Promise.reject(!1));
|
|
@@ -15666,7 +15666,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
15666
15666
|
D.value = !1;
|
|
15667
15667
|
}
|
|
15668
15668
|
}
|
|
15669
|
-
},
|
|
15669
|
+
}, pt = async () => {
|
|
15670
15670
|
if (!le(o.value)) {
|
|
15671
15671
|
if (a.callDeleteApiOnRemove) {
|
|
15672
15672
|
try {
|
|
@@ -15850,7 +15850,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
15850
15850
|
}, 8, ["modelValue", "file-input-key", "accept", "max-sizes"]),
|
|
15851
15851
|
Z.value ? (v(), k(ze, {
|
|
15852
15852
|
key: 1,
|
|
15853
|
-
onClick:
|
|
15853
|
+
onClick: pt
|
|
15854
15854
|
}, {
|
|
15855
15855
|
default: m(() => [
|
|
15856
15856
|
c(Wt, null, {
|
|
@@ -15967,7 +15967,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
15967
15967
|
image: { default: void 0 },
|
|
15968
15968
|
configName: { default: "default" },
|
|
15969
15969
|
collab: { default: void 0 },
|
|
15970
|
-
collabStatus: { default:
|
|
15970
|
+
collabStatus: { default: ft.Inactive },
|
|
15971
15971
|
label: { default: void 0 },
|
|
15972
15972
|
readonly: { type: Boolean, default: !1 },
|
|
15973
15973
|
required: { type: Boolean, default: !1 },
|
|
@@ -16300,7 +16300,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16300
16300
|
initialMedia: { default: void 0 },
|
|
16301
16301
|
configName: { default: "default" },
|
|
16302
16302
|
collab: { default: void 0 },
|
|
16303
|
-
collabStatus: { default:
|
|
16303
|
+
collabStatus: { default: ft.Inactive },
|
|
16304
16304
|
label: { default: void 0 },
|
|
16305
16305
|
required: { type: Boolean, default: !1 },
|
|
16306
16306
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -16329,18 +16329,18 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16329
16329
|
const { releaseCollabFieldLock: se, acquireCollabFieldLock: ge, addCollabFieldLockStatusListener: Ne, lockedByUser: ot } = zs(a.collab.room, a.collab.field);
|
|
16330
16330
|
n.value = se, d.value = ge, ye(
|
|
16331
16331
|
ot,
|
|
16332
|
-
(
|
|
16333
|
-
f.value =
|
|
16332
|
+
(vt) => {
|
|
16333
|
+
f.value = vt;
|
|
16334
16334
|
},
|
|
16335
16335
|
{ immediate: !0 }
|
|
16336
|
-
), Ne((
|
|
16337
|
-
|
|
16336
|
+
), Ne((vt) => {
|
|
16337
|
+
vt.status === $t.Success && vt.type === Pt.Acquire ? re.value = !0 : vt.status === $t.Failure && vt.type === Pt.Acquire || vt.status === $t.Success && vt.type === Pt.Release ? re.value = !1 : vt.status === $t.Failure && vt.type === Pt.Release && (re.value = !0);
|
|
16338
16338
|
});
|
|
16339
16339
|
}
|
|
16340
16340
|
const V = w(!1), p = () => {
|
|
16341
|
-
V.value === !0 || a.collabStatus ===
|
|
16341
|
+
V.value === !0 || a.collabStatus === ft.Inactive || (d.value(), V.value = !0);
|
|
16342
16342
|
}, g = (se) => {
|
|
16343
|
-
V.value === !1 || a.collabStatus ===
|
|
16343
|
+
V.value === !1 || a.collabStatus === ft.Inactive || (n.value(se), V.value = !1);
|
|
16344
16344
|
}, F = ct(
|
|
16345
16345
|
qs,
|
|
16346
16346
|
void 0
|
|
@@ -16352,7 +16352,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16352
16352
|
}, ve = () => {
|
|
16353
16353
|
N.value = !0;
|
|
16354
16354
|
}, { cachedExtSystemId: ce } = na(), re = w(!1), Te = async () => {
|
|
16355
|
-
if (!l.value.enabled || E(a.collab) || a.collabStatus ===
|
|
16355
|
+
if (!l.value.enabled || E(a.collab) || a.collabStatus === ft.Inactive)
|
|
16356
16356
|
return Promise.resolve(!0);
|
|
16357
16357
|
let se = 0;
|
|
16358
16358
|
const ge = () => re.value ? Promise.resolve(!0) : (se++, se < 50 ? new Promise((Ne) => setTimeout(() => Ne(ge()), 100)) : Promise.reject(!1));
|
|
@@ -16448,7 +16448,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16448
16448
|
if (ot.mainFile) {
|
|
16449
16449
|
if (ot.attributes.assetType === me.Video && Wf(ot.mainFile)) {
|
|
16450
16450
|
_.value = !0;
|
|
16451
|
-
const
|
|
16451
|
+
const vt = {
|
|
16452
16452
|
extService: ar.DamVideo,
|
|
16453
16453
|
dam: {
|
|
16454
16454
|
imageFileId: ot.mainFile.imagePreview?.imageFile || null,
|
|
@@ -16456,10 +16456,10 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16456
16456
|
licenceId: ot.licence
|
|
16457
16457
|
}
|
|
16458
16458
|
};
|
|
16459
|
-
le(r.value) || (
|
|
16459
|
+
le(r.value) || (vt.id = r.value), te.setDetail(vt);
|
|
16460
16460
|
} else if (ot.attributes.assetType === me.Audio && ot.podcasts.length > 0 && Gf(ot.mainFile)) {
|
|
16461
16461
|
_.value = !0;
|
|
16462
|
-
const
|
|
16462
|
+
const vt = {
|
|
16463
16463
|
extService: ar.DamPodcast,
|
|
16464
16464
|
dam: {
|
|
16465
16465
|
imageFileId: ot.mainFile.imagePreview?.imageFile || null,
|
|
@@ -16467,7 +16467,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16467
16467
|
licenceId: ot.licence
|
|
16468
16468
|
}
|
|
16469
16469
|
};
|
|
16470
|
-
le(r.value) || (
|
|
16470
|
+
le(r.value) || (vt.id = r.value), te.setDetail(vt);
|
|
16471
16471
|
} else if (ot.attributes.assetType === me.Image) {
|
|
16472
16472
|
if (!E(se.copyToLicence)) {
|
|
16473
16473
|
try {
|
|
@@ -16493,7 +16493,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16493
16493
|
} catch (Ut) {
|
|
16494
16494
|
X(Ut);
|
|
16495
16495
|
}
|
|
16496
|
-
const
|
|
16496
|
+
const vt = {
|
|
16497
16497
|
texts: {
|
|
16498
16498
|
description: ge,
|
|
16499
16499
|
source: Ne
|
|
@@ -16508,11 +16508,11 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16508
16508
|
},
|
|
16509
16509
|
position: 1
|
|
16510
16510
|
};
|
|
16511
|
-
le(o.value) || (
|
|
16511
|
+
le(o.value) || (vt.id = o.value), te.setDetail(vt);
|
|
16512
16512
|
}
|
|
16513
16513
|
R.value = !1;
|
|
16514
16514
|
}
|
|
16515
|
-
}, he = xt(), { loading: Re, dialog: Ee, asset: Ge } = at(he), { damClient: _e } = et(),
|
|
16515
|
+
}, he = xt(), { loading: Re, dialog: Ee, asset: Ge } = at(he), { damClient: _e } = et(), pt = async (se) => {
|
|
16516
16516
|
Re.value = !0, Ee.value = a.queueKey;
|
|
16517
16517
|
try {
|
|
16518
16518
|
const ge = await qi(_e, se), Ne = await qo(_e, ge.licence);
|
|
@@ -16831,7 +16831,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16831
16831
|
saving: D.value,
|
|
16832
16832
|
loading: R.value,
|
|
16833
16833
|
type: mt.value,
|
|
16834
|
-
onEditAsset:
|
|
16834
|
+
onEditAsset: pt,
|
|
16835
16835
|
onOnConfirm: Ws,
|
|
16836
16836
|
onOnClose: Lt
|
|
16837
16837
|
}, null, 8, ["modelValue", "show-dam-authors", "expand", "saving", "loading", "type"])
|
|
@@ -16879,7 +16879,7 @@ const Ah = { key: 0 }, yh = /* @__PURE__ */ j({
|
|
|
16879
16879
|
initialMedia: { default: void 0 },
|
|
16880
16880
|
configName: { default: "default" },
|
|
16881
16881
|
collab: { default: void 0 },
|
|
16882
|
-
collabStatus: { default:
|
|
16882
|
+
collabStatus: { default: ft.Inactive },
|
|
16883
16883
|
label: { default: void 0 },
|
|
16884
16884
|
readonly: { type: Boolean, default: !1 },
|
|
16885
16885
|
required: { type: Boolean, default: !1 },
|
|
@@ -18530,27 +18530,27 @@ const Y7 = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, A7 = { clas
|
|
|
18530
18530
|
authorIds: _e.authors
|
|
18531
18531
|
});
|
|
18532
18532
|
}), he.forEach((_e) => {
|
|
18533
|
-
_e.authorIds.forEach((
|
|
18534
|
-
Re.add(
|
|
18533
|
+
_e.authorIds.forEach((pt) => {
|
|
18534
|
+
Re.add(pt);
|
|
18535
18535
|
});
|
|
18536
18536
|
}), Re.size > 0 && (await Gt(S, ue.selectedSelectConfig.extSystem, [
|
|
18537
18537
|
...Re
|
|
18538
|
-
])).forEach((
|
|
18539
|
-
Ee.set(
|
|
18538
|
+
])).forEach((pt) => {
|
|
18539
|
+
Ee.set(pt.id, pt.name);
|
|
18540
18540
|
});
|
|
18541
18541
|
} catch (Ge) {
|
|
18542
18542
|
d(Ge);
|
|
18543
18543
|
}
|
|
18544
18544
|
return te.map((Ge) => {
|
|
18545
18545
|
C.value++;
|
|
18546
|
-
const _e = he.get(Ge.id)?.authorIds || [],
|
|
18546
|
+
const _e = he.get(Ge.id)?.authorIds || [], pt = he.get(Ge.id)?.description ?? "", Lt = [];
|
|
18547
18547
|
return he.get(Ge.id)?.authorIds.forEach((Qa) => {
|
|
18548
18548
|
const la = Ee.get(Qa);
|
|
18549
18549
|
!E(la) && la.trim().length > 0 && Lt.push(la);
|
|
18550
18550
|
}), {
|
|
18551
18551
|
key: ys(),
|
|
18552
18552
|
texts: {
|
|
18553
|
-
description:
|
|
18553
|
+
description: pt,
|
|
18554
18554
|
source: Lt.join(", ")
|
|
18555
18555
|
},
|
|
18556
18556
|
flags: {
|
|
@@ -18606,8 +18606,8 @@ const Y7 = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, A7 = { clas
|
|
|
18606
18606
|
const te = [], ue = tt(h.value);
|
|
18607
18607
|
for (const _e of ue)
|
|
18608
18608
|
if (_e.showDamAuthors && _e.assetId && te.push({ id: _e.assetId, authors: _e.damAuthors }), _e.damAuthors.length > 0) {
|
|
18609
|
-
const
|
|
18610
|
-
_e.texts.source =
|
|
18609
|
+
const pt = await Gt(S, $.value, _e.damAuthors);
|
|
18610
|
+
_e.texts.source = pt.map((Lt) => Lt.name).join(", ");
|
|
18611
18611
|
}
|
|
18612
18612
|
te.length && await IV(S, te);
|
|
18613
18613
|
const Ke = await Nv(n, tt(h.value)), he = [], Re = Ke.map((_e) => (he.push(_e.id), {
|
|
@@ -18619,11 +18619,11 @@ const Y7 = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, A7 = { clas
|
|
|
18619
18619
|
}));
|
|
18620
18620
|
if (I.images.length === 0) return;
|
|
18621
18621
|
const Ee = async (_e) => {
|
|
18622
|
-
const
|
|
18622
|
+
const pt = I.images.find((Lt) => Lt.dam.damId === _e.dam.damId);
|
|
18623
18623
|
return {
|
|
18624
18624
|
..._e,
|
|
18625
|
-
damAuthors:
|
|
18626
|
-
showDamAuthors:
|
|
18625
|
+
damAuthors: pt ? pt.damAuthors : _e.damAuthors,
|
|
18626
|
+
showDamAuthors: pt ? pt.damAuthors.length === 0 : _e.damAuthors.length === 0,
|
|
18627
18627
|
assetId: _e.assetId
|
|
18628
18628
|
};
|
|
18629
18629
|
}, Ge = await Promise.all(Re.map((_e) => Ee(_e)));
|
|
@@ -20525,7 +20525,7 @@ function z_(s) {
|
|
|
20525
20525
|
}
|
|
20526
20526
|
const UI = "/adm/users/current", R_ = (s) => St(s, UI, {}, "coreDam", "user");
|
|
20527
20527
|
let sr = null;
|
|
20528
|
-
const Hi = () => (sr || (sr = import("./index-
|
|
20528
|
+
const Hi = () => (sr || (sr = import("./index-CbRPo2xl.mjs").then((s) => s).catch(() => null)), sr);
|
|
20529
20529
|
function OI() {
|
|
20530
20530
|
return {
|
|
20531
20531
|
logError: (i, o) => {
|
|
@@ -20698,7 +20698,7 @@ function L_() {
|
|
|
20698
20698
|
}
|
|
20699
20699
|
a.value = i.value?.connected ?? !1, l(q, { level: "error", message: "Collab connect_error" });
|
|
20700
20700
|
}), i.value.on("disconnect", async (q) => {
|
|
20701
|
-
o.forEach((b) => b.status =
|
|
20701
|
+
o.forEach((b) => b.status = ft.Inactive), a.value = i.value?.connected ?? !1, q === "io server disconnect" && (await s.value.beforeReconnect(), i.value?.connect());
|
|
20702
20702
|
});
|
|
20703
20703
|
} catch (q) {
|
|
20704
20704
|
l(q, { level: "error", message: "Collab init error" });
|
|
@@ -20721,7 +20721,9 @@ function O_(s, t = !1) {
|
|
|
20721
20721
|
}, p = (I) => {
|
|
20722
20722
|
d.value = I, f.value = l.on(V);
|
|
20723
20723
|
}, g = (I, h, C = void 0) => {
|
|
20724
|
-
!e.value.enabled || E(a.value)
|
|
20724
|
+
if (!e.value.enabled || E(a.value)) return;
|
|
20725
|
+
const q = r.get(s);
|
|
20726
|
+
q && q.status === ft.Inactive || a.value.emit("changeFieldData", s, I, h, () => {
|
|
20725
20727
|
E(C) || C();
|
|
20726
20728
|
});
|
|
20727
20729
|
}, F = (I, h, C) => {
|
|
@@ -20744,7 +20746,7 @@ function O_(s, t = !1) {
|
|
|
20744
20746
|
acquireCollabAnyLock: (I, h = {}) => {
|
|
20745
20747
|
if (!e.value.enabled || E(a.value)) return;
|
|
20746
20748
|
const C = r.get(s);
|
|
20747
|
-
C && C.status ===
|
|
20749
|
+
C && C.status === ft.Inactive || a.value?.timeout(1e3).emit("acquireFieldLock", s, I, h, (q, b) => {
|
|
20748
20750
|
const A = { field: I, room: s };
|
|
20749
20751
|
if (q || pn(b))
|
|
20750
20752
|
return void n.emit(
|
|
@@ -20766,7 +20768,7 @@ function O_(s, t = !1) {
|
|
|
20766
20768
|
releaseCollabAnyLock: (I, h, C = {}) => {
|
|
20767
20769
|
if (!e.value.enabled || E(a.value)) return;
|
|
20768
20770
|
const q = r.get(s);
|
|
20769
|
-
if (q && q.status ===
|
|
20771
|
+
if (q && q.status === ft.Inactive) {
|
|
20770
20772
|
o.has(s) || o.set(s, /* @__PURE__ */ new Map()), o.get(s)?.set(I, h);
|
|
20771
20773
|
return;
|
|
20772
20774
|
}
|
|
@@ -21214,7 +21216,7 @@ export {
|
|
|
21214
21216
|
Gi as CollabRequestToJoinStatus,
|
|
21215
21217
|
Wi as CollabRequestToTakeModerationStatus,
|
|
21216
21218
|
rS as CollabRoomJoinStrategy,
|
|
21217
|
-
|
|
21219
|
+
ft as CollabStatus,
|
|
21218
21220
|
qt as CustomDataFormElementType,
|
|
21219
21221
|
s_ as CustomDataFormElementTypeDefault,
|
|
21220
21222
|
nS as DATETIME_MAX,
|