@adriansteffan/reactive 0.2.3 → 0.2.4
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/{mod-kduyZSvT.js → mod-Cx6xH-XQ.js} +371 -371
- package/dist/mod.d.ts +2 -0
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +2 -2
- package/dist/{web-Cng80F8T.js → web-BTzxclIT.js} +1 -1
- package/dist/{web-BDKz297R.js → web-DQBLwBB7.js} +1 -1
- package/package.json +1 -1
- package/src/components/upload.tsx +7 -6
- package/src/utils/common.ts +2 -0
- package/src/utils/upload.ts +9 -10
|
@@ -16460,7 +16460,7 @@ const Tae = (i) => {
|
|
|
16460
16460
|
if (v) {
|
|
16461
16461
|
const H = v == null ? void 0 : v.methods.find((L) => k === L.name);
|
|
16462
16462
|
if (H)
|
|
16463
|
-
return H.rtype === "promise" ? (L) => t.nativePromise(c, k.toString(), L) : (L,
|
|
16463
|
+
return H.rtype === "promise" ? (L) => t.nativePromise(c, k.toString(), L) : (L, q) => t.nativeCallback(c, k.toString(), L, q);
|
|
16464
16464
|
if (T)
|
|
16465
16465
|
return (_ = T[k]) === null || _ === void 0 ? void 0 : _.bind(T);
|
|
16466
16466
|
} else {
|
|
@@ -16472,9 +16472,9 @@ const Tae = (i) => {
|
|
|
16472
16472
|
let k;
|
|
16473
16473
|
const _ = (...B) => {
|
|
16474
16474
|
const H = g().then((L) => {
|
|
16475
|
-
const
|
|
16476
|
-
if (
|
|
16477
|
-
const $ =
|
|
16475
|
+
const q = b(L, T);
|
|
16476
|
+
if (q) {
|
|
16477
|
+
const $ = q(...B);
|
|
16478
16478
|
return k = $ == null ? void 0 : $.remove, $;
|
|
16479
16479
|
} else
|
|
16480
16480
|
throw new yf(`"${c}.${T}()" is not implemented on ${y}`, Fo.Unimplemented);
|
|
@@ -17239,14 +17239,14 @@ function kV(i) {
|
|
|
17239
17239
|
}
|
|
17240
17240
|
function Qae(i) {
|
|
17241
17241
|
const e = [], t = (s, r) => {
|
|
17242
|
-
if ((s == null ? void 0 : s.type) === "audiorecording") {
|
|
17243
|
-
|
|
17244
|
-
|
|
17245
|
-
|
|
17246
|
-
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
delete s.data64, delete s.blob, delete s.url, delete s._audioPreUploaded, delete s._audioPreUploadedFilename;
|
|
17242
|
+
if ((s == null ? void 0 : s.type) === "audiorecording" && s.data64) {
|
|
17243
|
+
const n = s._audioPreUploadedFilename ?? kV(r);
|
|
17244
|
+
e.push({
|
|
17245
|
+
filename: n,
|
|
17246
|
+
content: s.data64,
|
|
17247
|
+
encoding: "base64",
|
|
17248
|
+
_alreadyUploaded: !!s._audioPreUploaded
|
|
17249
|
+
}), s.audioFile = n, delete s.data64, delete s.blob, delete s.url, delete s._audioPreUploaded, delete s._audioPreUploadedFilename;
|
|
17250
17250
|
}
|
|
17251
17251
|
};
|
|
17252
17252
|
for (const s of i) {
|
|
@@ -17515,7 +17515,7 @@ function Kae() {
|
|
|
17515
17515
|
}
|
|
17516
17516
|
return null;
|
|
17517
17517
|
}
|
|
17518
|
-
var
|
|
17518
|
+
var q = Object.assign, $ = 0, Q, W, U, re, J, oe, te;
|
|
17519
17519
|
function ee() {
|
|
17520
17520
|
}
|
|
17521
17521
|
ee.__reactDisabledLog = !0;
|
|
@@ -17551,25 +17551,25 @@ function Kae() {
|
|
|
17551
17551
|
writable: !0
|
|
17552
17552
|
};
|
|
17553
17553
|
Object.defineProperties(console, {
|
|
17554
|
-
log:
|
|
17554
|
+
log: q({}, N, {
|
|
17555
17555
|
value: Q
|
|
17556
17556
|
}),
|
|
17557
|
-
info:
|
|
17557
|
+
info: q({}, N, {
|
|
17558
17558
|
value: W
|
|
17559
17559
|
}),
|
|
17560
|
-
warn:
|
|
17560
|
+
warn: q({}, N, {
|
|
17561
17561
|
value: U
|
|
17562
17562
|
}),
|
|
17563
|
-
error:
|
|
17563
|
+
error: q({}, N, {
|
|
17564
17564
|
value: re
|
|
17565
17565
|
}),
|
|
17566
|
-
group:
|
|
17566
|
+
group: q({}, N, {
|
|
17567
17567
|
value: J
|
|
17568
17568
|
}),
|
|
17569
|
-
groupCollapsed:
|
|
17569
|
+
groupCollapsed: q({}, N, {
|
|
17570
17570
|
value: oe
|
|
17571
17571
|
}),
|
|
17572
|
-
groupEnd:
|
|
17572
|
+
groupEnd: q({}, N, {
|
|
17573
17573
|
value: te
|
|
17574
17574
|
})
|
|
17575
17575
|
});
|
|
@@ -18194,7 +18194,7 @@ const aoe = ({ stream: i, isDark: e }) => {
|
|
|
18194
18194
|
_.current = 0, B.current = setInterval(() => {
|
|
18195
18195
|
_.current += 100;
|
|
18196
18196
|
}, 100);
|
|
18197
|
-
},
|
|
18197
|
+
}, q = () => {
|
|
18198
18198
|
B.current = setInterval(() => {
|
|
18199
18199
|
_.current += 100;
|
|
18200
18200
|
}, 100);
|
|
@@ -18220,7 +18220,7 @@ const aoe = ({ stream: i, isDark: e }) => {
|
|
|
18220
18220
|
}, W = () => {
|
|
18221
18221
|
T.current && T.current.state === "recording" && (T.current.pause(), x(!0), H(), u == null || u(_.current));
|
|
18222
18222
|
}, U = () => {
|
|
18223
|
-
T.current && T.current.state === "paused" && (T.current.resume(), x(!1),
|
|
18223
|
+
T.current && T.current.state === "paused" && (T.current.resume(), x(!1), q(), h == null || h());
|
|
18224
18224
|
}, re = async (ee, de) => {
|
|
18225
18225
|
if (ee && de) {
|
|
18226
18226
|
const he = await new Promise((X) => {
|
|
@@ -18947,10 +18947,10 @@ class ve {
|
|
|
18947
18947
|
}
|
|
18948
18948
|
function Rs(i, e) {
|
|
18949
18949
|
if (!e)
|
|
18950
|
-
return
|
|
18951
|
-
!
|
|
18950
|
+
return F.onDateCreated(/* @__PURE__ */ new Date(), i, e);
|
|
18951
|
+
!F.storeUtcDates && typeof e == "string" && boe(e) && (e += "T00:00:00");
|
|
18952
18952
|
const t = new Date(e);
|
|
18953
|
-
return
|
|
18953
|
+
return F.onDateCreated(t, i, e);
|
|
18954
18954
|
}
|
|
18955
18955
|
function boe(i) {
|
|
18956
18956
|
return i.indexOf("T") > 0 || !/\d{4}-\d{2}-\d{2}/.test(i) ? !1 : !isNaN(new Date(i).getTime());
|
|
@@ -19002,7 +19002,7 @@ class O {
|
|
|
19002
19002
|
return O.checkIfArraysEqual(e, t, { ignoreOrder: s, caseSensitive: r, trimStrings: n });
|
|
19003
19003
|
}
|
|
19004
19004
|
static compareStrings(e, t) {
|
|
19005
|
-
const s =
|
|
19005
|
+
const s = F.comparator.normalizeTextCallback;
|
|
19006
19006
|
if (e && (e = s(e, "compare").trim()), t && (t = s(t, "compare").trim()), !e && !t)
|
|
19007
19007
|
return 0;
|
|
19008
19008
|
if (!e)
|
|
@@ -19030,9 +19030,9 @@ class O {
|
|
|
19030
19030
|
static checkIfValuesEqual(e, t, s) {
|
|
19031
19031
|
if (e === t || Array.isArray(e) && e.length === 0 && typeof t > "u" || Array.isArray(t) && t.length === 0 && typeof e > "u" || e == null && t === "" || t == null && e === "")
|
|
19032
19032
|
return !0;
|
|
19033
|
-
const r = s.caseSensitive !== void 0 ? s.caseSensitive :
|
|
19033
|
+
const r = s.caseSensitive !== void 0 ? s.caseSensitive : F.comparator.caseSensitive, n = s.trimStrings !== void 0 ? s.trimStrings : F.comparator.trimStrings;
|
|
19034
19034
|
if (typeof e == "string" && typeof t == "string") {
|
|
19035
|
-
const h =
|
|
19035
|
+
const h = F.comparator.normalizeTextCallback;
|
|
19036
19036
|
return e = h(e, "compare"), t = h(t, "compare"), n && (e = e.trim(), t = t.trim()), r || (e = e.toLowerCase(), t = t.toLowerCase()), e === t;
|
|
19037
19037
|
}
|
|
19038
19038
|
if (e instanceof Date && t instanceof Date)
|
|
@@ -19114,7 +19114,7 @@ class O {
|
|
|
19114
19114
|
}
|
|
19115
19115
|
static getNumber(e) {
|
|
19116
19116
|
const t = O.getNumberCore(e);
|
|
19117
|
-
return
|
|
19117
|
+
return F.parseNumber(e, t);
|
|
19118
19118
|
}
|
|
19119
19119
|
static getNumberCore(e) {
|
|
19120
19120
|
if (typeof e == "string") {
|
|
@@ -19150,7 +19150,7 @@ class O {
|
|
|
19150
19150
|
return e < 0 && (e = t), e > 0 ? e : null;
|
|
19151
19151
|
}
|
|
19152
19152
|
static getRemainingCharacterCounterText(e, t) {
|
|
19153
|
-
return !t || t <= 0 || !
|
|
19153
|
+
return !t || t <= 0 || !F.showMaxLengthIndicator ? "" : [e ? e.length : "0", t].join("/");
|
|
19154
19154
|
}
|
|
19155
19155
|
static getNumberByIndex(e, t, s) {
|
|
19156
19156
|
if (e < 0)
|
|
@@ -20405,7 +20405,7 @@ class Eoe {
|
|
|
20405
20405
|
a.items = { type: e.className };
|
|
20406
20406
|
else {
|
|
20407
20407
|
const h = { $ref: this.getChemeRefName(e.className, s) };
|
|
20408
|
-
!
|
|
20408
|
+
!F.serialization.itemValueSerializeAsObject && this.isDescendantOf(e.className, "itemvalue") ? a.items = { anyOf: [h, { type: "string" }] } : a.items = h;
|
|
20409
20409
|
}
|
|
20410
20410
|
else
|
|
20411
20411
|
a.$ref = this.getChemeRefName(n, s);
|
|
@@ -21210,7 +21210,7 @@ function Yoe() {
|
|
|
21210
21210
|
Xe.Instance.register("currentDate", Yoe);
|
|
21211
21211
|
function WV(i) {
|
|
21212
21212
|
var e = Rs("function-today");
|
|
21213
|
-
return
|
|
21213
|
+
return F.storeUtcDates ? e.setUTCHours(0, 0, 0, 0) : e.setHours(0, 0, 0, 0), Array.isArray(i) && i.length == 1 && e.setDate(e.getDate() + i[0]), e;
|
|
21214
21214
|
}
|
|
21215
21215
|
Xe.Instance.register("today", WV);
|
|
21216
21216
|
function Xoe(i) {
|
|
@@ -21570,10 +21570,10 @@ class ZV extends fa {
|
|
|
21570
21570
|
}
|
|
21571
21571
|
class Ic extends ZV {
|
|
21572
21572
|
static get DisableConversionChar() {
|
|
21573
|
-
return
|
|
21573
|
+
return F.expressionDisableConversionChar;
|
|
21574
21574
|
}
|
|
21575
21575
|
static set DisableConversionChar(e) {
|
|
21576
|
-
|
|
21576
|
+
F.expressionDisableConversionChar = e;
|
|
21577
21577
|
}
|
|
21578
21578
|
constructor(e) {
|
|
21579
21579
|
super(e), this.variableName = e, this.valueInfo = {}, this.useValueAsItIs = !1, this.variableName && this.variableName.length > 1 && this.variableName[0] === Ic.DisableConversionChar && (this.variableName = this.variableName.substring(1), this.useValueAsItIs = !0);
|
|
@@ -21967,7 +21967,7 @@ const Dv = (
|
|
|
21967
21967
|
Expression: io
|
|
21968
21968
|
};
|
|
21969
21969
|
let o = io;
|
|
21970
|
-
const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", I = "notequal", A = "<", R = "less", D = ">", T = "greater", k = "+", _ = "-", B = "*", H = "/", L = "%",
|
|
21970
|
+
const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", I = "notequal", A = "<", R = "less", D = ">", T = "greater", k = "+", _ = "-", B = "*", H = "/", L = "%", q = "^", $ = "power", Q = "*=", W = "contains", U = "contain", re = "notcontains", J = "notcontain", oe = "anyof", te = "allof", ee = "noneof", de = "(", he = "!", X = "negate", ce = "empty", ke = "notempty", Ct = "undefined", Nt = "null", Qs = "{", Vt = "}", ps = "''", xs = '""', Ze = "'", ft = '"', fs = "[", Xt = "]", wt = ",", Ae = "true", et = "false", be = "0x", Ft = ".", Wt = "0", os = "\\'", Ys = '\\"', Us = /^[\-]/, es = /^[^"']/, Es = /^[^{}]/, Ps = /^[0-9]/, js = /^[1-9]/, Mi = /^[a-zA-Z_]/, zs = /^[ \t\n\r]/, K = Pe("||", !1), ne = Pe("or", !0), se = Pe("&&", !1), le = Pe("and", !0), ge = Pe("<=", !1), Le = Pe("lessorequal", !0), We = Pe(">=", !1), ls = Pe("greaterorequal", !0), Ls = Pe("==", !1), Zr = Pe("equal", !0), eo = Pe("=", !1), va = Pe("!=", !1), dp = Pe("notequal", !0), ju = Pe("<", !1), zu = Pe("less", !0), pp = Pe(">", !1), fp = Pe("greater", !0), Wu = Pe("+", !1), Gu = Pe("-", !1), mp = Pe("*", !1), gp = Pe("/", !1), vp = Pe("%", !1), yp = Pe("^", !1), N = Pe("power", !0), ae = Pe("*=", !1), ye = Pe("contains", !0), Fe = Pe("contain", !0), bt = Pe("notcontains", !0), Pt = Pe("notcontain", !0), rt = Pe("anyof", !0), tt = Pe("allof", !0), _s = Pe("noneof", !0), Gt = Pe("(", !1), Zt = Pe(")", !1), oi = Pe("!", !1), En = Pe("negate", !0), Jr = Pe("empty", !0), Ws = Pe("notempty", !0), fl = Pe("undefined", !1), Cp = Pe("null", !1), bp = Pe("{", !1), pT = Pe("}", !1), fT = Pe("''", !1), mT = Pe('""', !1), z0 = Pe("'", !1), W0 = Pe('"', !1), gT = Pe("[", !1), vT = Pe("]", !1), G0 = Pe(",", !1), yT = Pe("true", !0), CT = Pe("false", !0), bT = Pe("0x", !1), wT = ya(["-"], !1, !1, !1), xT = Pe(".", !1), ET = Pe("0", !1), VT = Pe("\\'", !1), ST = Pe('\\"', !1), TT = ya(['"', "'"], !0, !1, !1), IT = ya(["{", "}"], !0, !1, !1), K0 = ya([["0", "9"]], !1, !1, !1), Z0 = ya([["1", "9"]], !1, !1, !1), J0 = ya([["a", "z"], ["A", "Z"], "_"], !1, !1, !1), Y0 = ya([" ", " ", `
|
|
21971
21971
|
`, "\r"], !1, !1, !1);
|
|
21972
21972
|
function PT(C, w) {
|
|
21973
21973
|
return Ca(C, w, !0);
|
|
@@ -22340,7 +22340,7 @@ const Dv = (
|
|
|
22340
22340
|
function a1() {
|
|
22341
22341
|
let C, w;
|
|
22342
22342
|
const z = E * 34 + 11, M = Ce[z];
|
|
22343
|
-
return M ? (E = M.nextPos, M.result) : (C = E, t.charCodeAt(E) === 94 ? (w =
|
|
22343
|
+
return M ? (E = M.nextPos, M.result) : (C = E, t.charCodeAt(E) === 94 ? (w = q, E++) : (w = r, pe === 0 && fe(yp)), w === r && (w = t.substr(E, 5), w.toLowerCase() === $ ? E += 5 : (w = r, pe === 0 && fe(N))), w !== r && (Ve = C, w = GT()), C = w, Ce[z] = { nextPos: E, result: C }, C);
|
|
22344
22344
|
}
|
|
22345
22345
|
function Tp() {
|
|
22346
22346
|
let C, w, z, M, Y, ue, qe, Se;
|
|
@@ -22887,10 +22887,10 @@ class Ee {
|
|
|
22887
22887
|
Ee.currentDependencis !== void 0 && Ee.currentDependencis.addDependency(e, t);
|
|
22888
22888
|
}
|
|
22889
22889
|
static get commentSuffix() {
|
|
22890
|
-
return
|
|
22890
|
+
return F.commentSuffix;
|
|
22891
22891
|
}
|
|
22892
22892
|
static set commentSuffix(e) {
|
|
22893
|
-
|
|
22893
|
+
F.commentSuffix = e;
|
|
22894
22894
|
}
|
|
22895
22895
|
static get commentPrefix() {
|
|
22896
22896
|
return Ee.commentSuffix;
|
|
@@ -23597,7 +23597,7 @@ class Ee {
|
|
|
23597
23597
|
return this.getIsAnimationAllowed();
|
|
23598
23598
|
}
|
|
23599
23599
|
getIsAnimationAllowed() {
|
|
23600
|
-
return
|
|
23600
|
+
return F.animationEnabled && this.animationAllowedLock >= 0 && !this.isLoadingFromJson && !this.isDisposed && (!!this.onElementRerendered || !this.supportOnElementRerenderedEvent);
|
|
23601
23601
|
}
|
|
23602
23602
|
blockAnimations() {
|
|
23603
23603
|
this.animationAllowedLock--;
|
|
@@ -24112,7 +24112,7 @@ class Ut extends bs {
|
|
|
24112
24112
|
if (this.onTextSearchCallback)
|
|
24113
24113
|
return this.onTextSearchCallback(e, t);
|
|
24114
24114
|
let r = s.toLocaleLowerCase();
|
|
24115
|
-
return r =
|
|
24115
|
+
return r = F.comparator.normalizeTextCallback(r, "filter"), r.indexOf(t.toLocaleLowerCase()) > -1;
|
|
24116
24116
|
}
|
|
24117
24117
|
isItemVisible(e) {
|
|
24118
24118
|
return e.id === this.loadingIndicator.id || this.disableSearch ? e.visible : e.visible && this.hasText(e, this.filterString);
|
|
@@ -25404,7 +25404,7 @@ class Od extends Ee {
|
|
|
25404
25404
|
return t ? t.getElementTitleTagName(this, e) : e;
|
|
25405
25405
|
}
|
|
25406
25406
|
getDefaultTitleTagName() {
|
|
25407
|
-
return
|
|
25407
|
+
return F.titleTags[this.getType()];
|
|
25408
25408
|
}
|
|
25409
25409
|
get hasTitle() {
|
|
25410
25410
|
return this.title.length > 0;
|
|
@@ -25532,7 +25532,7 @@ class St extends Od {
|
|
|
25532
25532
|
}, t ? 100 : 10), r;
|
|
25533
25533
|
}
|
|
25534
25534
|
static focusElementCore(e, t) {
|
|
25535
|
-
const { root: s } =
|
|
25535
|
+
const { root: s } = F.environment;
|
|
25536
25536
|
if (!s && !t)
|
|
25537
25537
|
return !1;
|
|
25538
25538
|
const r = t ? t.querySelector(`#${CSS.escape(e)}`) : s.getElementById(e);
|
|
@@ -25895,7 +25895,7 @@ class St extends Od {
|
|
|
25895
25895
|
getValidName(e) {
|
|
25896
25896
|
if (e) {
|
|
25897
25897
|
e = e.trim();
|
|
25898
|
-
const t =
|
|
25898
|
+
const t = F.itemValueSeparator;
|
|
25899
25899
|
t && e.indexOf(t) > -1 && (e = e.replace(t, ""));
|
|
25900
25900
|
}
|
|
25901
25901
|
return e;
|
|
@@ -26380,10 +26380,10 @@ class Rle {
|
|
|
26380
26380
|
}
|
|
26381
26381
|
class ds {
|
|
26382
26382
|
static get defaultLocale() {
|
|
26383
|
-
return
|
|
26383
|
+
return F.localization.defaultLocaleName;
|
|
26384
26384
|
}
|
|
26385
26385
|
static set defaultLocale(e) {
|
|
26386
|
-
|
|
26386
|
+
F.localization.defaultLocaleName = e;
|
|
26387
26387
|
}
|
|
26388
26388
|
get localizationName() {
|
|
26389
26389
|
return this._localizationName;
|
|
@@ -26411,7 +26411,7 @@ class ds {
|
|
|
26411
26411
|
}
|
|
26412
26412
|
get isDefautlLocale() {
|
|
26413
26413
|
const e = this.locale;
|
|
26414
|
-
return !e || e ===
|
|
26414
|
+
return !e || e === F.defaultLocaleName;
|
|
26415
26415
|
}
|
|
26416
26416
|
strChanged() {
|
|
26417
26417
|
this.isTextRequested && (this.searchableText = void 0, !(this.renderedText === void 0 && this.isEmpty && !this.onGetTextCallback && !this.localizationName) && (this.calculatedTextValue = this.calcText(), this.renderedText !== this.calculatedTextValue && (this.renderedText = void 0, this.calculatedTextValue = void 0), this.htmlValues = {}, this.onChanged(), this.onStringChanged.fire(this, {})));
|
|
@@ -26429,7 +26429,7 @@ class ds {
|
|
|
26429
26429
|
let e = "";
|
|
26430
26430
|
if (!this.isDefautlLocale) {
|
|
26431
26431
|
const t = this.getRootDialect(this.locale);
|
|
26432
|
-
e = this.getLocaleText(t ||
|
|
26432
|
+
e = this.getLocaleText(t || F.defaultLocaleName);
|
|
26433
26433
|
}
|
|
26434
26434
|
return !e && this.onGetTextCallback && (e = this.onGetTextCallback("", "")), e;
|
|
26435
26435
|
}
|
|
@@ -26507,7 +26507,7 @@ class ds {
|
|
|
26507
26507
|
n && !this.isValueEmpty(a) && (this.setValue(n, t), this.fireStrChanged(n, a));
|
|
26508
26508
|
return;
|
|
26509
26509
|
}
|
|
26510
|
-
if (!(!
|
|
26510
|
+
if (!(!F.localization.storeDuplicatedTranslations && !this.isValueEmpty(t) && e && e != this.defaultLoc && !this.getValue(e) && t == this.getLocaleText(this.defaultLoc))) {
|
|
26511
26511
|
var s = this.curLocale;
|
|
26512
26512
|
e || (e = this.defaultLoc);
|
|
26513
26513
|
var r = this.onStrChanged && e === s ? this.pureText : void 0;
|
|
@@ -26521,7 +26521,7 @@ class ds {
|
|
|
26521
26521
|
return this.locale ? this.locale : this.defaultLoc;
|
|
26522
26522
|
}
|
|
26523
26523
|
canRemoveLocValue(e, t) {
|
|
26524
|
-
if (
|
|
26524
|
+
if (F.localization.storeDuplicatedTranslations || e === this.defaultLoc)
|
|
26525
26525
|
return !1;
|
|
26526
26526
|
const s = this.getRootDialect(e);
|
|
26527
26527
|
if (s) {
|
|
@@ -26556,7 +26556,7 @@ class ds {
|
|
|
26556
26556
|
}
|
|
26557
26557
|
return null;
|
|
26558
26558
|
}
|
|
26559
|
-
if (e.length == 1 && e[0] ==
|
|
26559
|
+
if (e.length == 1 && e[0] == F.localization.defaultLocaleName && !F.serialization.localizableStringSerializeAsObject)
|
|
26560
26560
|
return this.values[e[0]];
|
|
26561
26561
|
const t = {};
|
|
26562
26562
|
for (let s in this.values)
|
|
@@ -26570,7 +26570,7 @@ class ds {
|
|
|
26570
26570
|
}
|
|
26571
26571
|
if (this.lastChangedLoc = void 0, this.values = {}, this.htmlValues = {}, e != null)
|
|
26572
26572
|
if (t)
|
|
26573
|
-
typeof e == "string" ? this.values[
|
|
26573
|
+
typeof e == "string" ? this.values[F.defaultLocaleName] = e : (this.values = e, delete this.values.pos);
|
|
26574
26574
|
else {
|
|
26575
26575
|
if (typeof e == "string")
|
|
26576
26576
|
this.setLocaleText(null, e);
|
|
@@ -26625,7 +26625,7 @@ class ds {
|
|
|
26625
26625
|
return e || (e = this.defaultLoc), this.htmlValues[e];
|
|
26626
26626
|
}
|
|
26627
26627
|
deleteValuesEqualsToDefault(e) {
|
|
26628
|
-
if (!
|
|
26628
|
+
if (!F.localization.storeDuplicatedTranslations)
|
|
26629
26629
|
for (var t = this.getValuesKeys(), s = 0; s < t.length; s++)
|
|
26630
26630
|
t[s] != this.defaultLoc && this.getValue(t[s]) == e && this.deleteValue(t[s]);
|
|
26631
26631
|
}
|
|
@@ -26639,13 +26639,13 @@ class ds {
|
|
|
26639
26639
|
this.sharedData ? this.sharedData.deleteValue(e) : delete this.values[this.getValueLoc(e)];
|
|
26640
26640
|
}
|
|
26641
26641
|
getValueLoc(e) {
|
|
26642
|
-
return this.disableLocalization ?
|
|
26642
|
+
return this.disableLocalization ? F.localization.defaultLocaleName : e;
|
|
26643
26643
|
}
|
|
26644
26644
|
getValuesKeys() {
|
|
26645
26645
|
return this.sharedData ? this.sharedData.getValuesKeys() : Object.keys(this.values);
|
|
26646
26646
|
}
|
|
26647
26647
|
get defaultLoc() {
|
|
26648
|
-
return
|
|
26648
|
+
return F.localization.defaultLocaleName;
|
|
26649
26649
|
}
|
|
26650
26650
|
}
|
|
26651
26651
|
ds.SerializeAsObject = !1;
|
|
@@ -26692,7 +26692,7 @@ class Ale {
|
|
|
26692
26692
|
if (e = this.getLocale(e), this.values[e])
|
|
26693
26693
|
return this.values[e];
|
|
26694
26694
|
if (t) {
|
|
26695
|
-
var s =
|
|
26695
|
+
var s = F.localization.defaultLocaleName;
|
|
26696
26696
|
if (e !== s && this.values[s])
|
|
26697
26697
|
return this.values[s];
|
|
26698
26698
|
}
|
|
@@ -26710,7 +26710,7 @@ class Ale {
|
|
|
26710
26710
|
return this.getValuesKeys().length == 0;
|
|
26711
26711
|
}
|
|
26712
26712
|
getLocale(e) {
|
|
26713
|
-
return e || (e = this.locale, e ||
|
|
26713
|
+
return e || (e = this.locale, e || F.localization.defaultLocaleName);
|
|
26714
26714
|
}
|
|
26715
26715
|
getLocales() {
|
|
26716
26716
|
var e = this.getValuesKeys();
|
|
@@ -26718,7 +26718,7 @@ class Ale {
|
|
|
26718
26718
|
}
|
|
26719
26719
|
getJson() {
|
|
26720
26720
|
var e = this.getValuesKeys();
|
|
26721
|
-
return e.length == 0 ? null : e.length == 1 && e[0] ==
|
|
26721
|
+
return e.length == 0 ? null : e.length == 1 && e[0] == F.localization.defaultLocaleName && !F.serialization.localizableStringSerializeAsObject ? this.values[e[0]] : O.createCopy(this.values);
|
|
26722
26722
|
}
|
|
26723
26723
|
setJson(e) {
|
|
26724
26724
|
if (this.values = {}, !!e)
|
|
@@ -26733,17 +26733,17 @@ class Ale {
|
|
|
26733
26733
|
}
|
|
26734
26734
|
}
|
|
26735
26735
|
function Lle(i) {
|
|
26736
|
-
return
|
|
26736
|
+
return F && F.confirmActionFunc ? F.confirmActionFunc(i) : confirm(i);
|
|
26737
26737
|
}
|
|
26738
26738
|
function Pc(i) {
|
|
26739
26739
|
const e = (t) => {
|
|
26740
26740
|
t ? i.funcOnYes() : i.funcOnNo && i.funcOnNo();
|
|
26741
26741
|
};
|
|
26742
|
-
if (
|
|
26742
|
+
if (F && F.confirmActionFunc) {
|
|
26743
26743
|
e(Lle(i.message));
|
|
26744
26744
|
return;
|
|
26745
26745
|
}
|
|
26746
|
-
|
|
26746
|
+
F && F.confirmActionAsync ? F.confirmActionAsync(i.message, e, i) : lS(i.message, e, i);
|
|
26747
26747
|
}
|
|
26748
26748
|
function tc() {
|
|
26749
26749
|
if (typeof tc.isIEOrEdge > "u") {
|
|
@@ -26763,13 +26763,13 @@ function _le(i, e) {
|
|
|
26763
26763
|
}
|
|
26764
26764
|
}
|
|
26765
26765
|
const Rc = (i) => !!i && !!("host" in i && i.host), Dle = (i) => {
|
|
26766
|
-
const { root: e } =
|
|
26766
|
+
const { root: e } = F.environment;
|
|
26767
26767
|
return typeof i == "string" ? e.getElementById(i) : i;
|
|
26768
26768
|
};
|
|
26769
26769
|
function kle(i, e = 0) {
|
|
26770
|
-
if (typeof
|
|
26770
|
+
if (typeof F.environment > "u" || !i.offsetHeight)
|
|
26771
26771
|
return !1;
|
|
26772
|
-
const { root: t } =
|
|
26772
|
+
const { root: t } = F.environment, s = Rc(t) ? t.host.clientHeight : t.documentElement.clientHeight, r = i.getBoundingClientRect(), n = Math.max(s, xe.getInnerHeight()), a = -e, o = n + e, l = r.top, u = r.bottom, h = Math.max(a, l), c = Math.min(o, u);
|
|
26773
26773
|
return h <= c;
|
|
26774
26774
|
}
|
|
26775
26775
|
function Md(i) {
|
|
@@ -26951,8 +26951,8 @@ function $m(i) {
|
|
|
26951
26951
|
return e + s;
|
|
26952
26952
|
}
|
|
26953
26953
|
function Fle(i) {
|
|
26954
|
-
let e =
|
|
26955
|
-
return e ? $m(e) : (i = $m(i), e =
|
|
26954
|
+
let e = F.customIcons[i];
|
|
26955
|
+
return e ? $m(e) : (i = $m(i), e = F.customIcons[i], e || null);
|
|
26956
26956
|
}
|
|
26957
26957
|
function qle(i, e, t, s, r, n) {
|
|
26958
26958
|
if (!r)
|
|
@@ -27067,7 +27067,7 @@ function Nd(i, e) {
|
|
|
27067
27067
|
function lS(i, e, t = {}) {
|
|
27068
27068
|
const s = new ds(void 0, !1);
|
|
27069
27069
|
s.defaultValue = i || t.message;
|
|
27070
|
-
const r =
|
|
27070
|
+
const r = F.showDialog({
|
|
27071
27071
|
componentName: "sv-string-viewer",
|
|
27072
27072
|
data: { locStr: s, locString: s, model: s },
|
|
27073
27073
|
//TODO fix in library
|
|
@@ -27204,7 +27204,7 @@ const Lh = typeof globalThis < "u" ? globalThis.document : (void 0).document, Gl
|
|
|
27204
27204
|
file: { minWidth: "240px" },
|
|
27205
27205
|
comment: { minWidth: "200px" }
|
|
27206
27206
|
};
|
|
27207
|
-
var
|
|
27207
|
+
var F = {
|
|
27208
27208
|
version: "",
|
|
27209
27209
|
/**
|
|
27210
27210
|
* An object that configures survey appearance when the survey is being designed in Survey Creator.
|
|
@@ -27656,10 +27656,10 @@ var q = {
|
|
|
27656
27656
|
},
|
|
27657
27657
|
expressionDisableConversionChar: "#",
|
|
27658
27658
|
get commentPrefix() {
|
|
27659
|
-
return
|
|
27659
|
+
return F.commentSuffix;
|
|
27660
27660
|
},
|
|
27661
27661
|
set commentPrefix(i) {
|
|
27662
|
-
|
|
27662
|
+
F.commentSuffix = i;
|
|
27663
27663
|
},
|
|
27664
27664
|
/**
|
|
27665
27665
|
* A suffix added to the name of the property that stores comments.
|
|
@@ -27807,10 +27807,10 @@ var q = {
|
|
|
27807
27807
|
* @deprecated Use the [`itemFlowDirection`](https://surveyjs.io/form-library/documentation/api-reference/settings#itemFlowDirection) property instead.
|
|
27808
27808
|
*/
|
|
27809
27809
|
get showItemsInOrder() {
|
|
27810
|
-
return
|
|
27810
|
+
return F.itemFlowDirection;
|
|
27811
27811
|
},
|
|
27812
27812
|
set showItemsInOrder(i) {
|
|
27813
|
-
|
|
27813
|
+
F.itemFlowDirection = i;
|
|
27814
27814
|
},
|
|
27815
27815
|
/**
|
|
27816
27816
|
* A value to save in survey results when respondents select the "None" choice item.
|
|
@@ -29001,7 +29001,7 @@ class Fd {
|
|
|
29001
29001
|
this.question = e, this.isUnwrapped = t;
|
|
29002
29002
|
}
|
|
29003
29003
|
getValue(e, t, s, r) {
|
|
29004
|
-
const n =
|
|
29004
|
+
const n = F.expressionVariables;
|
|
29005
29005
|
if (e.length === 0 || e.length === 1 && e[0].name === n.question)
|
|
29006
29006
|
return this.getQuestionValue(s);
|
|
29007
29007
|
if (e.length > 1 && e[0].name === n.panel) {
|
|
@@ -29073,7 +29073,7 @@ class Bv extends Za {
|
|
|
29073
29073
|
return !0;
|
|
29074
29074
|
}
|
|
29075
29075
|
updateValueByItem(e, t) {
|
|
29076
|
-
const s = e.toLocaleLowerCase(), r =
|
|
29076
|
+
const s = e.toLocaleLowerCase(), r = F.expressionVariables.unwrapPostfix;
|
|
29077
29077
|
for (let n = 0; n < this.questions.length; n++) {
|
|
29078
29078
|
const a = this.questions[n], o = a.getFilteredName().toLocaleLowerCase();
|
|
29079
29079
|
if (o.toLocaleLowerCase() === s) {
|
|
@@ -29139,7 +29139,7 @@ class $o extends hS {
|
|
|
29139
29139
|
}
|
|
29140
29140
|
class Ts extends St {
|
|
29141
29141
|
isReadOnlyRenderDiv() {
|
|
29142
|
-
return this.isReadOnly &&
|
|
29142
|
+
return this.isReadOnly && F.readOnly.commentRenderMode === "div";
|
|
29143
29143
|
}
|
|
29144
29144
|
allowMobileInDesignMode() {
|
|
29145
29145
|
return !1;
|
|
@@ -30055,7 +30055,7 @@ class Ts extends St {
|
|
|
30055
30055
|
return this.name;
|
|
30056
30056
|
}
|
|
30057
30057
|
getDefaultTitleTagName() {
|
|
30058
|
-
return
|
|
30058
|
+
return F.titleTags.question;
|
|
30059
30059
|
}
|
|
30060
30060
|
/**
|
|
30061
30061
|
* Specifies where to display a question description.
|
|
@@ -30906,7 +30906,7 @@ class Ts extends St {
|
|
|
30906
30906
|
name: 0,
|
|
30907
30907
|
isComment: !0,
|
|
30908
30908
|
title: "Comment",
|
|
30909
|
-
value:
|
|
30909
|
+
value: F.commentSuffix,
|
|
30910
30910
|
displayValue: this.comment,
|
|
30911
30911
|
getString: (s) => typeof s == "object" ? JSON.stringify(s) : s,
|
|
30912
30912
|
isNode: !1
|
|
@@ -30949,7 +30949,7 @@ class Ts extends St {
|
|
|
30949
30949
|
return this.checkIfAnswerCorrect() ? 1 : 0;
|
|
30950
30950
|
}
|
|
30951
30951
|
checkIfAnswerCorrect() {
|
|
30952
|
-
const e = O.isTwoValueEquals(this.value, this.correctAnswer, this.getAnswerCorrectIgnoreOrder(),
|
|
30952
|
+
const e = O.isTwoValueEquals(this.value, this.correctAnswer, this.getAnswerCorrectIgnoreOrder(), F.comparator.caseSensitive, !0), t = e ? 1 : 0, s = this.quizQuestionCount - t, r = {
|
|
30953
30953
|
result: e,
|
|
30954
30954
|
correctAnswers: t,
|
|
30955
30955
|
correctAnswerCount: t,
|
|
@@ -31096,7 +31096,7 @@ class Ts extends St {
|
|
|
31096
31096
|
const e = [];
|
|
31097
31097
|
let t = this.getType();
|
|
31098
31098
|
for (; t; ) {
|
|
31099
|
-
const s =
|
|
31099
|
+
const s = F.supportedValidators[t];
|
|
31100
31100
|
if (s)
|
|
31101
31101
|
for (let n = s.length - 1; n >= 0; n--)
|
|
31102
31102
|
e.splice(0, 0, s[n]);
|
|
@@ -31205,7 +31205,7 @@ class Ts extends St {
|
|
|
31205
31205
|
return t;
|
|
31206
31206
|
}
|
|
31207
31207
|
canCollectErrors() {
|
|
31208
|
-
return !this.isReadOnly ||
|
|
31208
|
+
return !this.isReadOnly || F.readOnly.enableValidation;
|
|
31209
31209
|
}
|
|
31210
31210
|
collectErrors(e, t) {
|
|
31211
31211
|
if (this.onCheckForErrors(e, t.isOnValueChanged, t.fireCallback), e.length > 0 || !this.canRunValidators(t.isOnValueChanged))
|
|
@@ -31369,7 +31369,7 @@ class Ts extends St {
|
|
|
31369
31369
|
return this.isVisibleIndexNegative(e) && (e = -1), this.setPropertyValue("visibleIndex", e), this.resetPropertyValue("no"), e < 0 ? 0 : 1;
|
|
31370
31370
|
}
|
|
31371
31371
|
isVisibleIndexNegative(e) {
|
|
31372
|
-
return e < 0 || !this.isVisible || !this.hasTitle && !
|
|
31372
|
+
return e < 0 || !this.isVisible || !this.hasTitle && !F.numbering.includeQuestionsWithHiddenTitle || !this.showNumber && !F.numbering.includeQuestionsWithHiddenNumber;
|
|
31373
31373
|
}
|
|
31374
31374
|
removeElement(e) {
|
|
31375
31375
|
return !1;
|
|
@@ -31623,7 +31623,7 @@ class Ts extends St {
|
|
|
31623
31623
|
function Um(i) {
|
|
31624
31624
|
if (!i)
|
|
31625
31625
|
return i;
|
|
31626
|
-
for (i = i.trim().replace(/[\{\}]+/g, ""); i && i[0] ===
|
|
31626
|
+
for (i = i.trim().replace(/[\{\}]+/g, ""); i && i[0] === F.expressionDisableConversionChar; )
|
|
31627
31627
|
i = i.substring(1);
|
|
31628
31628
|
return i;
|
|
31629
31629
|
}
|
|
@@ -31638,8 +31638,8 @@ j.addClass("question", [
|
|
|
31638
31638
|
{ name: "useDisplayValuesInDynamicTexts:boolean", alternativeName: "useDisplayValuesInTitle", default: !0, layout: "row" },
|
|
31639
31639
|
"visibleIf:condition",
|
|
31640
31640
|
{ name: "width" },
|
|
31641
|
-
{ name: "minWidth", defaultFunc: () =>
|
|
31642
|
-
{ name: "maxWidth", defaultFunc: () =>
|
|
31641
|
+
{ name: "minWidth", defaultFunc: () => F.minWidth },
|
|
31642
|
+
{ name: "maxWidth", defaultFunc: () => F.maxWidth },
|
|
31643
31643
|
{
|
|
31644
31644
|
name: "colSpan:number",
|
|
31645
31645
|
visible: !1,
|
|
@@ -31809,10 +31809,10 @@ class Re extends Tt {
|
|
|
31809
31809
|
return this.locOwner ? this.locOwner.getProcessedText(e) : e;
|
|
31810
31810
|
}
|
|
31811
31811
|
static get Separator() {
|
|
31812
|
-
return
|
|
31812
|
+
return F.itemValueSeparator;
|
|
31813
31813
|
}
|
|
31814
31814
|
static set Separator(e) {
|
|
31815
|
-
|
|
31815
|
+
F.itemValueSeparator = e;
|
|
31816
31816
|
}
|
|
31817
31817
|
/**
|
|
31818
31818
|
* Resets the input array and fills it with values from the values array
|
|
@@ -31925,7 +31925,7 @@ class Re extends Tt {
|
|
|
31925
31925
|
setValue(e, t) {
|
|
31926
31926
|
let s;
|
|
31927
31927
|
e = this.getCorrectValue(e);
|
|
31928
|
-
const r =
|
|
31928
|
+
const r = F.itemValueSeparator;
|
|
31929
31929
|
if (r && !O.isValueEmpty(e)) {
|
|
31930
31930
|
var n = e.toString(), a = n.indexOf(r);
|
|
31931
31931
|
a > -1 && (e = n.slice(0, a), s = n.slice(a + 1));
|
|
@@ -31969,7 +31969,7 @@ class Re extends Tt {
|
|
|
31969
31969
|
if (e.value && e.value.pos && delete e.value.pos, O.isValueEmpty(e.value))
|
|
31970
31970
|
return e;
|
|
31971
31971
|
const t = this.canSerializeValue();
|
|
31972
|
-
return (!t || !
|
|
31972
|
+
return (!t || !F.serialization.itemValueSerializeAsObject && !F.serialization.itemValueSerializeDisplayText) && Object.keys(e).length == 1 ? this.value : (F.serialization.itemValueSerializeDisplayText && e.text === void 0 && t && (e.text = this.value.toString()), e);
|
|
31973
31973
|
}
|
|
31974
31974
|
toJSON() {
|
|
31975
31975
|
var e = {}, t = j.getProperties(this.getType());
|
|
@@ -32346,10 +32346,10 @@ class vue {
|
|
|
32346
32346
|
}
|
|
32347
32347
|
class Jt extends Ee {
|
|
32348
32348
|
static get EncodeParameters() {
|
|
32349
|
-
return
|
|
32349
|
+
return F.web.encodeUrlParams;
|
|
32350
32350
|
}
|
|
32351
32351
|
static set EncodeParameters(e) {
|
|
32352
|
-
|
|
32352
|
+
F.web.encodeUrlParams = e;
|
|
32353
32353
|
}
|
|
32354
32354
|
static clearCache() {
|
|
32355
32355
|
Jt.itemsResult = {}, Jt.sendingSameRequests = {};
|
|
@@ -32369,10 +32369,10 @@ class Jt extends Ee {
|
|
|
32369
32369
|
}
|
|
32370
32370
|
}
|
|
32371
32371
|
static get onBeforeSendRequest() {
|
|
32372
|
-
return
|
|
32372
|
+
return F.web.onBeforeRequestChoices;
|
|
32373
32373
|
}
|
|
32374
32374
|
static set onBeforeSendRequest(e) {
|
|
32375
|
-
|
|
32375
|
+
F.web.onBeforeRequestChoices = e;
|
|
32376
32376
|
}
|
|
32377
32377
|
static getCachedItemsResult(e) {
|
|
32378
32378
|
var t = e.objHash, s = Jt.itemsResult[t];
|
|
@@ -32396,7 +32396,7 @@ class Jt extends Ee {
|
|
|
32396
32396
|
}
|
|
32397
32397
|
}
|
|
32398
32398
|
get isUsingCache() {
|
|
32399
|
-
return this.isUsingCacheFromUrl === !0 ? !0 : this.isUsingCacheFromUrl === !1 ? !1 :
|
|
32399
|
+
return this.isUsingCacheFromUrl === !0 ? !0 : this.isUsingCacheFromUrl === !1 ? !1 : F.web.cacheLoadedChoices;
|
|
32400
32400
|
}
|
|
32401
32401
|
get isRunning() {
|
|
32402
32402
|
return this.getIsRunning();
|
|
@@ -32448,7 +32448,7 @@ class Jt extends Ee {
|
|
|
32448
32448
|
t.beforeLoadRequest(), e.status === 200 ? t.onLoad(t.parseResponse(e.response), s) : t.onError(e.statusText, e.responseText);
|
|
32449
32449
|
};
|
|
32450
32450
|
var r = { url: this.processedUrl, request: e };
|
|
32451
|
-
|
|
32451
|
+
F.web.onBeforeRequestChoices && F.web.onBeforeRequestChoices(this, r), this.beforeSendRequest(), r.request.send();
|
|
32452
32452
|
}
|
|
32453
32453
|
sendFetchRequest() {
|
|
32454
32454
|
const e = this, t = this.objHash, n = { url: this.processedUrl, fetchOptions: {
|
|
@@ -32457,7 +32457,7 @@ class Jt extends Ee {
|
|
|
32457
32457
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
32458
32458
|
}
|
|
32459
32459
|
} };
|
|
32460
|
-
|
|
32460
|
+
F.web.onBeforeRequestChoices && F.web.onBeforeRequestChoices(this, n), this.beforeSendRequest(), fetch(n.url, n.fetchOptions).then((a) => (e.beforeLoadRequest(), a.status === 200 ? a.text().then((o) => {
|
|
32461
32461
|
e.onLoad(e.parseResponse(o), t);
|
|
32462
32462
|
}) : a.text().then((o) => {
|
|
32463
32463
|
e.onError(a.statusText, o);
|
|
@@ -33590,7 +33590,7 @@ class wue extends Fd {
|
|
|
33590
33590
|
}
|
|
33591
33591
|
getValue(e, t, s, r) {
|
|
33592
33592
|
const n = this.question;
|
|
33593
|
-
return e.length > 0 && (e.length > 1 || !t) ? (e[0].name ===
|
|
33593
|
+
return e.length > 0 && (e.length > 1 || !t) ? (e[0].name === F.expressionVariables.composite && e.shift(), new Bv(n.contentPanel.questions).getValue(e, !1, s, r)) : { isFound: !1 };
|
|
33594
33594
|
}
|
|
33595
33595
|
}
|
|
33596
33596
|
class xue extends fS {
|
|
@@ -33724,7 +33724,7 @@ class xue extends fS {
|
|
|
33724
33724
|
for (; n < a && this.updateValueCoreWithPanelValue(); )
|
|
33725
33725
|
n++;
|
|
33726
33726
|
}
|
|
33727
|
-
this.setNewValueIntoQuestion(e, t), super.setValue(e, t, s, r), this.settingNewValue = !1, this.runPanelTriggers(
|
|
33727
|
+
this.setNewValueIntoQuestion(e, t), super.setValue(e, t, s, r), this.settingNewValue = !1, this.runPanelTriggers(F.expressionVariables.composite + "." + e, t), this.isEditingSurveyElement && this.runCondition(this.getFilteredProperties());
|
|
33728
33728
|
}
|
|
33729
33729
|
}
|
|
33730
33730
|
setComment(e, t, s) {
|
|
@@ -33744,7 +33744,7 @@ class xue extends fS {
|
|
|
33744
33744
|
return !!s && s[this.getCommentName(e)] || "";
|
|
33745
33745
|
}
|
|
33746
33746
|
getCommentName(e) {
|
|
33747
|
-
return e +
|
|
33747
|
+
return e + F.commentSuffix;
|
|
33748
33748
|
}
|
|
33749
33749
|
runPanelTriggers(e, t) {
|
|
33750
33750
|
this.contentPanel && this.contentPanel.questions.forEach((s) => {
|
|
@@ -34960,11 +34960,11 @@ class _c extends Ee {
|
|
|
34960
34960
|
return e && this.colOwner && (t = this.colOwner.getCustomCellType(this, e, t)), t;
|
|
34961
34961
|
}
|
|
34962
34962
|
getDefaultCellQuestionType(e) {
|
|
34963
|
-
return e || (e = this.cellType), e !== "default" ? e : this.colOwner ? this.colOwner.getCellType() :
|
|
34963
|
+
return e || (e = this.cellType), e !== "default" ? e : this.colOwner ? this.colOwner.getCellType() : F.matrix.defaultCellType;
|
|
34964
34964
|
}
|
|
34965
34965
|
updateTemplateQuestion(e, t, s) {
|
|
34966
34966
|
const r = this.getDefaultCellQuestionType(e), n = this.templateQuestion ? this.templateQuestion.getType() : "";
|
|
34967
|
-
r !== n && (this.templateQuestion && this.removeProperties(n), this.templateQuestionValue = this.createNewQuestion(r), this.templateQuestion.locOwner = this, this.addProperties(r), t && (this.name = t), s ? this.title = s : this.templateQuestion.locTitle.strChanged(),
|
|
34967
|
+
r !== n && (this.templateQuestion && this.removeProperties(n), this.templateQuestionValue = this.createNewQuestion(r), this.templateQuestion.locOwner = this, this.addProperties(r), t && (this.name = t), s ? this.title = s : this.templateQuestion.locTitle.strChanged(), F.serialization.matrixDropdownColumnSerializeTitle && (this.templateQuestion.locTitle.serializeCallBackText = !0), this.templateQuestion.onPropertyChanged.add((a, o) => {
|
|
34968
34968
|
this.propertyValueChanged(o.name, o.oldValue, o.newValue, o.arrayChanges, o.target);
|
|
34969
34969
|
}), this.templateQuestion.onNestedPropertyChanged.add((a, o) => {
|
|
34970
34970
|
this.colOwner && !this.isLoadingFromJson && this.colOwner.onColumnNestedPropertyChanged(this, o.name, o.nestedName, o.newValue);
|
|
@@ -35562,7 +35562,7 @@ class Hd extends Ee {
|
|
|
35562
35562
|
return this.setDefaultRowActions(e, t), this.matrix.survey && (t = this.matrix.survey.getUpdatedMatrixRowActions(this.matrix, e, t)), t;
|
|
35563
35563
|
}
|
|
35564
35564
|
get showRemoveButtonAsIcon() {
|
|
35565
|
-
return
|
|
35565
|
+
return F.matrix.renderRemoveAsIcon && this.matrix.survey && this.matrix.survey.css.root === "sd-root-modern";
|
|
35566
35566
|
}
|
|
35567
35567
|
setDefaultRowActions(e, t) {
|
|
35568
35568
|
const s = this.matrix;
|
|
@@ -35864,7 +35864,7 @@ class Pue extends dS {
|
|
|
35864
35864
|
getValue(e, t, s, r) {
|
|
35865
35865
|
if (e.length === 0)
|
|
35866
35866
|
return;
|
|
35867
|
-
const n =
|
|
35867
|
+
const n = F.expressionVariables;
|
|
35868
35868
|
if (e.length === 1) {
|
|
35869
35869
|
const o = this.getRowValue(e[0].name);
|
|
35870
35870
|
if (o !== void 0)
|
|
@@ -35907,7 +35907,7 @@ class Pue extends dS {
|
|
|
35907
35907
|
s.length > 0 && (t.isFound = !0, t.context = s[0].getValueGetterContext());
|
|
35908
35908
|
}
|
|
35909
35909
|
getRowValue(e) {
|
|
35910
|
-
const t =
|
|
35910
|
+
const t = F.expressionVariables;
|
|
35911
35911
|
if (e = e.toLocaleLowerCase(), e === t.rowIndex.toLocaleLowerCase())
|
|
35912
35912
|
return this.row.rowIndex;
|
|
35913
35913
|
if (e === t.visibleRowIndex.toLocaleLowerCase())
|
|
@@ -36049,7 +36049,7 @@ class ra {
|
|
|
36049
36049
|
if (!this.data)
|
|
36050
36050
|
return;
|
|
36051
36051
|
const s = O.createCopy(e);
|
|
36052
|
-
s[
|
|
36052
|
+
s[F.expressionVariables.row] = this, t ? this.visible = new Qr(t).runContext(this.getValueGetterContext(), e) : this.visible = !0;
|
|
36053
36053
|
for (var r = 0; r < this.cells.length; r++)
|
|
36054
36054
|
this.cells[r].runCondition(s);
|
|
36055
36055
|
this.detailPanel && this.detailPanel.runCondition(s), this.isRowHasEnabledCondition() && this.onQuestionReadOnlyChanged();
|
|
@@ -36096,7 +36096,7 @@ class ra {
|
|
|
36096
36096
|
findQuestionByName(e) {
|
|
36097
36097
|
if (!e)
|
|
36098
36098
|
return;
|
|
36099
|
-
const t =
|
|
36099
|
+
const t = F.expressionVariables.row + ".";
|
|
36100
36100
|
if (e.indexOf(t) === 0)
|
|
36101
36101
|
return this.getQuestionByName(e.substring(t.length));
|
|
36102
36102
|
const s = this.getSurvey();
|
|
@@ -36113,7 +36113,7 @@ class ra {
|
|
|
36113
36113
|
return;
|
|
36114
36114
|
const u = t == null && !o || s && !t && !!o;
|
|
36115
36115
|
this.data.onRowChanged(this, n, r, u);
|
|
36116
|
-
const h =
|
|
36116
|
+
const h = F.expressionVariables.row;
|
|
36117
36117
|
if (n) {
|
|
36118
36118
|
const c = h + "." + n;
|
|
36119
36119
|
this.runTriggers(c, r), this.data.runTriggersInRow(this, c, r);
|
|
@@ -36227,7 +36227,7 @@ class ra {
|
|
|
36227
36227
|
var r = s.value;
|
|
36228
36228
|
s.clearIncorrectValues(), this.isTwoValueEquals(r, s.value) || this.setValue(t, s.value);
|
|
36229
36229
|
} else
|
|
36230
|
-
!this.getSharedQuestionByName(t) && t.indexOf(
|
|
36230
|
+
!this.getSharedQuestionByName(t) && t.indexOf(F.matrix.totalsSuffix) < 0 && this.setValue(t, null);
|
|
36231
36231
|
}
|
|
36232
36232
|
}
|
|
36233
36233
|
getLocale() {
|
|
@@ -36397,10 +36397,10 @@ class yS {
|
|
|
36397
36397
|
}
|
|
36398
36398
|
class Lu extends qd {
|
|
36399
36399
|
static get defaultCellType() {
|
|
36400
|
-
return
|
|
36400
|
+
return F.matrix.defaultCellType;
|
|
36401
36401
|
}
|
|
36402
36402
|
static set defaultCellType(e) {
|
|
36403
|
-
|
|
36403
|
+
F.matrix.defaultCellType = e;
|
|
36404
36404
|
}
|
|
36405
36405
|
static addDefaultColumns(e) {
|
|
36406
36406
|
for (var t = ct.DefaultColums, s = 0; s < t.length; s++)
|
|
@@ -36544,7 +36544,7 @@ class Lu extends qd {
|
|
|
36544
36544
|
* @see keyDuplicationError
|
|
36545
36545
|
*/
|
|
36546
36546
|
get useCaseSensitiveComparison() {
|
|
36547
|
-
return this.useCaseSensitiveComparisonValue !== void 0 ? this.useCaseSensitiveComparisonValue :
|
|
36547
|
+
return this.useCaseSensitiveComparisonValue !== void 0 ? this.useCaseSensitiveComparisonValue : F.comparator.caseSensitive;
|
|
36548
36548
|
}
|
|
36549
36549
|
set useCaseSensitiveComparison(e) {
|
|
36550
36550
|
this.useCaseSensitiveComparisonValue = e;
|
|
@@ -36633,7 +36633,7 @@ class Lu extends qd {
|
|
|
36633
36633
|
const e = this.visibleRows;
|
|
36634
36634
|
if (!Array.isArray(e))
|
|
36635
36635
|
return;
|
|
36636
|
-
const t =
|
|
36636
|
+
const t = F.expressionVariables.visibleRowIndex, s = {};
|
|
36637
36637
|
s[t] = 0;
|
|
36638
36638
|
for (let r = 0; r < e.length; r++)
|
|
36639
36639
|
e[r].visibleIndex = r, s[t] = r + 1, e[r].runTriggers(t, r + 1, s);
|
|
@@ -36719,7 +36719,7 @@ class Lu extends qd {
|
|
|
36719
36719
|
* [Dynamic Matrix Demo](https://surveyjs.io/form-library/examples/dynamic-matrix-add-new-rows/ (linkStyle))
|
|
36720
36720
|
*/
|
|
36721
36721
|
get cellType() {
|
|
36722
|
-
return this.getPropertyValue("cellType",
|
|
36722
|
+
return this.getPropertyValue("cellType", F.matrix.defaultCellType);
|
|
36723
36723
|
}
|
|
36724
36724
|
set cellType(e) {
|
|
36725
36725
|
e = e.toLowerCase(), this.setPropertyValue("cellType", e);
|
|
@@ -36993,7 +36993,7 @@ class Lu extends qd {
|
|
|
36993
36993
|
}
|
|
36994
36994
|
getColumnWidth(e) {
|
|
36995
36995
|
var t;
|
|
36996
|
-
return e.minWidth ? e.minWidth : this.columnMinWidth ? this.columnMinWidth : ((t =
|
|
36996
|
+
return e.minWidth ? e.minWidth : this.columnMinWidth ? this.columnMinWidth : ((t = F.matrix.columnWidthsByType[e.cellType]) === null || t === void 0 ? void 0 : t.minWidth) || "";
|
|
36997
36997
|
}
|
|
36998
36998
|
/**
|
|
36999
36999
|
* Gets or sets choice items for Dropdown, Checkbox, and Radiogroup matrix cells. You can override this property for individual columns.
|
|
@@ -37135,7 +37135,7 @@ class Lu extends qd {
|
|
|
37135
37135
|
this.generatedVisibleRows.forEach((t) => {
|
|
37136
37136
|
const s = this.getRowValueCore(t, e);
|
|
37137
37137
|
if (!O.isValueEmpty(s)) {
|
|
37138
|
-
const r = O.createCopyWithPrefix(s,
|
|
37138
|
+
const r = O.createCopyWithPrefix(s, F.expressionVariables.row + ".");
|
|
37139
37139
|
t.runTriggers("", void 0, r);
|
|
37140
37140
|
}
|
|
37141
37141
|
});
|
|
@@ -37691,7 +37691,7 @@ class Lu extends qd {
|
|
|
37691
37691
|
}
|
|
37692
37692
|
}
|
|
37693
37693
|
onTotalValueChanged() {
|
|
37694
|
-
this.data && this.visibleTotalRow && !this.isUpdateLocked && !this.isSett && this.data.setValue(this.getValueName() +
|
|
37694
|
+
this.data && this.visibleTotalRow && !this.isUpdateLocked && !this.isSett && this.data.setValue(this.getValueName() + F.matrix.totalsSuffix, this.totalValue, !1);
|
|
37695
37695
|
}
|
|
37696
37696
|
getParentTextProcessor() {
|
|
37697
37697
|
if (!this.parentQuestion || !this.parent)
|
|
@@ -38097,7 +38097,7 @@ class Ho {
|
|
|
38097
38097
|
return e instanceof Document || e instanceof ShadowRoot ? e : void 0;
|
|
38098
38098
|
}
|
|
38099
38099
|
get rootElement() {
|
|
38100
|
-
return Rc(
|
|
38100
|
+
return Rc(F.environment.root) ? this.rootContainer || F.environment.root : this.rootContainer || F.environment.root.documentElement || document.body;
|
|
38101
38101
|
}
|
|
38102
38102
|
get viewRootElement() {
|
|
38103
38103
|
return Rc(this.rootElement) ? this.rootElement.host : this.rootElement;
|
|
@@ -38697,7 +38697,7 @@ class ES extends Lu {
|
|
|
38697
38697
|
return this.rowCountValue;
|
|
38698
38698
|
}
|
|
38699
38699
|
set rowCount(e) {
|
|
38700
|
-
if (e = O.getNumber(e), !(e < 0 || e >
|
|
38700
|
+
if (e = O.getNumber(e), !(e < 0 || e > F.matrix.maxRowCount || e === this.rowCount)) {
|
|
38701
38701
|
this.setRowCountValueFromData = !1;
|
|
38702
38702
|
var t = this.rowCountValue;
|
|
38703
38703
|
if (this.rowCountValue = e, this.value && this.value.length > e) {
|
|
@@ -38823,7 +38823,7 @@ class ES extends Lu {
|
|
|
38823
38823
|
return this.getPropertyValue("maxRowCount");
|
|
38824
38824
|
}
|
|
38825
38825
|
set maxRowCount(e) {
|
|
38826
|
-
e <= 0 || (e >
|
|
38826
|
+
e <= 0 || (e > F.matrix.maxRowCount && (e = F.matrix.maxRowCount), e != this.maxRowCount && this.setPropertyValue("maxRowCount", e));
|
|
38827
38827
|
}
|
|
38828
38828
|
onMaxRowCountChanged() {
|
|
38829
38829
|
const e = this.maxRowCount;
|
|
@@ -39233,7 +39233,7 @@ class ES extends Lu {
|
|
|
39233
39233
|
}
|
|
39234
39234
|
getConditionObjectsRowIndeces() {
|
|
39235
39235
|
const e = [], t = Math.max(this.rowCount, 1);
|
|
39236
|
-
for (var s = 0; s < Math.min(
|
|
39236
|
+
for (var s = 0; s < Math.min(F.matrix.maxRowCountInCondition, t); s++)
|
|
39237
39237
|
e.push(s);
|
|
39238
39238
|
return e;
|
|
39239
39239
|
}
|
|
@@ -39376,7 +39376,7 @@ j.addClass("matrixdynamic", [
|
|
|
39376
39376
|
{ name: "minRowCount:number", default: 0, minValue: 0 },
|
|
39377
39377
|
{
|
|
39378
39378
|
name: "maxRowCount:number",
|
|
39379
|
-
default:
|
|
39379
|
+
default: F.matrix.maxRowCount
|
|
39380
39380
|
},
|
|
39381
39381
|
{ name: "keyName" },
|
|
39382
39382
|
"defaultRowValue:rowvalue",
|
|
@@ -40489,7 +40489,7 @@ S([
|
|
|
40489
40489
|
], rl.prototype, "spent", void 0);
|
|
40490
40490
|
class _u extends Ee {
|
|
40491
40491
|
constructor(e) {
|
|
40492
|
-
super(), this.cssClasses = e, this.timeout =
|
|
40492
|
+
super(), this.cssClasses = e, this.timeout = F.notifications.lifetime, this.timer = void 0, this.actionsVisibility = {}, this.showActions = !0, this.actionBar = new bs(), this.actionBar.setCssClasses({
|
|
40493
40493
|
root: dr.root,
|
|
40494
40494
|
defaultSizeMode: dr.defaultSizeMode,
|
|
40495
40495
|
smallSizeMode: dr.smallSizeMode
|
|
@@ -41132,7 +41132,7 @@ class Ya extends St {
|
|
|
41132
41132
|
this.resetPropertyValue("hasTextInTitle");
|
|
41133
41133
|
}
|
|
41134
41134
|
get hasTitle() {
|
|
41135
|
-
return this.canShowTitle(this.survey) && (this.hasTextInTitle || this.locTitle.textOrHtml.length > 0) || this.isDesignMode && !this.isPanel && this.showTitle &&
|
|
41135
|
+
return this.canShowTitle(this.survey) && (this.hasTextInTitle || this.locTitle.textOrHtml.length > 0) || this.isDesignMode && !this.isPanel && this.showTitle && F.designMode.showEmptyTitles;
|
|
41136
41136
|
}
|
|
41137
41137
|
delete(e = !0) {
|
|
41138
41138
|
this.deletePanel(), this.removeFromParent(), e && this.dispose();
|
|
@@ -41150,10 +41150,10 @@ class Ya extends St {
|
|
|
41150
41150
|
return !0;
|
|
41151
41151
|
}
|
|
41152
41152
|
getDefaultTitleTagName() {
|
|
41153
|
-
return
|
|
41153
|
+
return F.titleTags.panel;
|
|
41154
41154
|
}
|
|
41155
41155
|
get _showDescription() {
|
|
41156
|
-
return !this.hasTitle && this.isDesignMode ? !1 : this.survey && this.survey.showPageTitles && this.hasDescription || this.showDescription && this.isDesignMode &&
|
|
41156
|
+
return !this.hasTitle && this.isDesignMode ? !1 : this.survey && this.survey.showPageTitles && this.hasDescription || this.showDescription && this.isDesignMode && F.designMode.showEmptyDescriptions;
|
|
41157
41157
|
}
|
|
41158
41158
|
localeChanged() {
|
|
41159
41159
|
super.localeChanged();
|
|
@@ -42750,7 +42750,7 @@ j.addClass("panel", [
|
|
|
42750
42750
|
{ name: "startWithNewLine:boolean", default: !0 },
|
|
42751
42751
|
{ name: "width" },
|
|
42752
42752
|
{ name: "minWidth", defaultFunc: () => "auto" },
|
|
42753
|
-
{ name: "maxWidth", defaultFunc: () =>
|
|
42753
|
+
{ name: "maxWidth", defaultFunc: () => F.maxWidth },
|
|
42754
42754
|
{ name: "colSpan:number", visible: !1, onSerializeValue: (i) => i.getPropertyValue("colSpan") },
|
|
42755
42755
|
{
|
|
42756
42756
|
name: "effectiveColSpan:number",
|
|
@@ -42853,7 +42853,7 @@ class Qv extends nl {
|
|
|
42853
42853
|
super.setTitleValue(e), this.navigationLocStrChanged();
|
|
42854
42854
|
}
|
|
42855
42855
|
getDefaultTitleTagName() {
|
|
42856
|
-
return
|
|
42856
|
+
return F.titleTags.page;
|
|
42857
42857
|
}
|
|
42858
42858
|
/**
|
|
42859
42859
|
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar), [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
|
|
@@ -43336,7 +43336,7 @@ class Que extends Za {
|
|
|
43336
43336
|
return n && n.isFound || (n = super.getValue(e, t, s, r), n && n.isFound) ? n : new Ki(this.valuesHash).getValue(e, t, s, r);
|
|
43337
43337
|
}
|
|
43338
43338
|
updateValueByItem(e, t) {
|
|
43339
|
-
const s =
|
|
43339
|
+
const s = F.expressionVariables.unwrapPostfix, r = e.endsWith(s);
|
|
43340
43340
|
r && (e = e.substring(0, e.length - s.length));
|
|
43341
43341
|
const n = this.survey.getQuestionByValueName(e, !0);
|
|
43342
43342
|
n && (t.isFound = !0, t.context = n.getValueGetterContext(r));
|
|
@@ -43376,10 +43376,10 @@ class je extends Od {
|
|
|
43376
43376
|
* [View Demo](https://surveyjs.io/form-library/examples/create-checkboxes-question-in-javascript/ (linkStyle))
|
|
43377
43377
|
*/
|
|
43378
43378
|
get commentSuffix() {
|
|
43379
|
-
return
|
|
43379
|
+
return F.commentSuffix;
|
|
43380
43380
|
}
|
|
43381
43381
|
set commentSuffix(e) {
|
|
43382
|
-
|
|
43382
|
+
F.commentSuffix = e;
|
|
43383
43383
|
}
|
|
43384
43384
|
get commentPrefix() {
|
|
43385
43385
|
return this.commentSuffix;
|
|
@@ -43647,10 +43647,10 @@ class je extends Od {
|
|
|
43647
43647
|
this.lazyRenderEnabled = e;
|
|
43648
43648
|
}
|
|
43649
43649
|
get isLazyRendering() {
|
|
43650
|
-
return this.lazyRenderEnabled ||
|
|
43650
|
+
return this.lazyRenderEnabled || F.lazyRender.enabled;
|
|
43651
43651
|
}
|
|
43652
43652
|
get lazyRenderFirstBatchSize() {
|
|
43653
|
-
return this.lazyRenderFirstBatchSizeValue ||
|
|
43653
|
+
return this.lazyRenderFirstBatchSizeValue || F.lazyRender.firstBatchSize;
|
|
43654
43654
|
}
|
|
43655
43655
|
set lazyRenderFirstBatchSize(e) {
|
|
43656
43656
|
this.lazyRenderFirstBatchSizeValue = e;
|
|
@@ -44275,7 +44275,7 @@ class je extends Od {
|
|
|
44275
44275
|
if (e) {
|
|
44276
44276
|
var s = this.data, r = !1;
|
|
44277
44277
|
for (var n in s)
|
|
44278
|
-
if (!this.getQuestionByValueName(n) && !(this.iscorrectValueWithPostPrefix(n,
|
|
44278
|
+
if (!this.getQuestionByValueName(n) && !(this.iscorrectValueWithPostPrefix(n, F.commentSuffix) || this.iscorrectValueWithPostPrefix(n, F.matrix.totalsSuffix))) {
|
|
44279
44279
|
var a = this.getCalculatedValueByName(n);
|
|
44280
44280
|
a && a.includeIntoResult || (r = !0, delete s[n]);
|
|
44281
44281
|
}
|
|
@@ -45103,7 +45103,7 @@ class je extends Od {
|
|
|
45103
45103
|
}
|
|
45104
45104
|
get progressBarComponentName() {
|
|
45105
45105
|
let e = this.progressBarType;
|
|
45106
|
-
return !
|
|
45106
|
+
return !F.legacyProgressBarView && To.currentType === "default" && nn(e, "pages") && (e = "buttons"), "progress-" + e;
|
|
45107
45107
|
}
|
|
45108
45108
|
get isShowProgressBarOnTop() {
|
|
45109
45109
|
return !this.canShowProgressBar() || !this.showProgressBar ? !1 : ["auto", "aboveheader", "belowheader", "topbottom", "top", "both"].indexOf(this.progressBarLocation) !== -1;
|
|
@@ -46768,7 +46768,7 @@ class je extends Od {
|
|
|
46768
46768
|
}
|
|
46769
46769
|
canBeCompleted(e, t) {
|
|
46770
46770
|
var s;
|
|
46771
|
-
if (!
|
|
46771
|
+
if (!F.triggers.changeNavigationButtonsOnComplete)
|
|
46772
46772
|
return;
|
|
46773
46773
|
const r = this.canBeCompletedByTrigger;
|
|
46774
46774
|
this.completedByTriggers || (this.completedByTriggers = {}), t ? this.completedByTriggers[e.id] = { trigger: e, pageId: (s = this.currentPage) === null || s === void 0 ? void 0 : s.id } : delete this.completedByTriggers[e.id], r !== this.canBeCompletedByTrigger && this.updateButtonsVisibility();
|
|
@@ -46902,7 +46902,7 @@ class je extends Od {
|
|
|
46902
46902
|
return this.getLocalizationFormatString("progressText", n, r.length);
|
|
46903
46903
|
}
|
|
46904
46904
|
getRootCss() {
|
|
46905
|
-
return new G().append(this.css.root).append(this.css.rootProgress + "--" + this.progressBarType).append(this.css.rootMobile, this.isMobile).append(this.css.rootAnimationDisabled, !
|
|
46905
|
+
return new G().append(this.css.root).append(this.css.rootProgress + "--" + this.progressBarType).append(this.css.rootMobile, this.isMobile).append(this.css.rootAnimationDisabled, !F.animationEnabled).append(this.css.rootReadOnly, this.readOnly && !this.isDesignMode).append(this.css.rootCompact, this.isCompact).append(this.css.rootFitToContainer, this.fitToContainer).toString();
|
|
46906
46906
|
}
|
|
46907
46907
|
afterRenderSurvey(e) {
|
|
46908
46908
|
if (!xe.isAvailable())
|
|
@@ -46992,7 +46992,7 @@ class je extends Od {
|
|
|
46992
46992
|
if (this.onAfterRenderQuestionInput.isEmpty)
|
|
46993
46993
|
return;
|
|
46994
46994
|
let s = e.inputId;
|
|
46995
|
-
const { root: r } =
|
|
46995
|
+
const { root: r } = F.environment;
|
|
46996
46996
|
if (s && (!t || t.id !== s) && typeof r < "u") {
|
|
46997
46997
|
let n = r.getElementById(s);
|
|
46998
46998
|
n && (t = n);
|
|
@@ -47211,7 +47211,7 @@ class je extends Od {
|
|
|
47211
47211
|
allow: !0
|
|
47212
47212
|
};
|
|
47213
47213
|
if (this.onScrollToTop.fire(this, u), !u.cancel && u.allow) {
|
|
47214
|
-
const h = this.getPageByElement(e), { rootElement: c } =
|
|
47214
|
+
const h = this.getPageByElement(e), { rootElement: c } = F.environment, d = this.rootElement || o || c;
|
|
47215
47215
|
if (this.isLazyRendering && h) {
|
|
47216
47216
|
let f = 1;
|
|
47217
47217
|
this.skeletonHeight && d && typeof d.getBoundingClientRect == "function" && (f = d.getBoundingClientRect().height / this.skeletonHeight - 1), h.forceRenderElement(e, () => {
|
|
@@ -47718,7 +47718,7 @@ class je extends Od {
|
|
|
47718
47718
|
if (!(this.isCompleted || this.isEndLoadingFromJson === "processing" || this.isRunningConditions)) {
|
|
47719
47719
|
this.isRunningConditionsValue = !0;
|
|
47720
47720
|
var e = this.getFilteredProperties();
|
|
47721
|
-
this.runConditionsCore(e), this.isRunningConditionsValue = !1, this.isValueChangedOnRunningCondition && this.conditionRunnerCounter <
|
|
47721
|
+
this.runConditionsCore(e), this.isRunningConditionsValue = !1, this.isValueChangedOnRunningCondition && this.conditionRunnerCounter < F.maxConditionRunCountOnValueChanged ? (this.isValueChangedOnRunningCondition = !1, this.conditionRunnerCounter++, this.runConditions()) : (this.isValueChangedOnRunningCondition = !1, this.conditionRunnerCounter = 0, this.conditionUpdateVisibleIndexes && (this.conditionUpdateVisibleIndexes = !1, this.updateVisibleIndexes()), this.conditionNotifyElementsOnAnyValueOrVariableChanged && (this.conditionNotifyElementsOnAnyValueOrVariableChanged = !1, this.notifyElementsOnAnyValueOrVariableChanged("")));
|
|
47722
47722
|
}
|
|
47723
47723
|
}
|
|
47724
47724
|
runConditionOnValueChanged(e, t) {
|
|
@@ -47816,7 +47816,7 @@ class je extends Od {
|
|
|
47816
47816
|
return;
|
|
47817
47817
|
this.resetHasLogo(), this.resetPropertyValue("titleIsEmpty"), this.questionHashesClear(), this.jsonErrors = null, this.sjsVersion = void 0;
|
|
47818
47818
|
const s = new Mt();
|
|
47819
|
-
s.toObject(e, this, t), s.errors.length > 0 && (this.jsonErrors = s.errors), this.onStateAndCurrentPageChanged(), this.endLoading(), this.updateState(), this.sjsVersion &&
|
|
47819
|
+
s.toObject(e, this, t), s.errors.length > 0 && (this.jsonErrors = s.errors), this.onStateAndCurrentPageChanged(), this.endLoading(), this.updateState(), this.sjsVersion && F.version && O.compareVerions(this.sjsVersion, F.version) > 0 && Zi.warn("The version of the survey JSON schema (v" + this.sjsVersion + ") is newer than your current Form Library version (" + F.version + "). Please update the Form Library to make sure that all survey features work as expected.");
|
|
47820
47820
|
}
|
|
47821
47821
|
startLoadingFromJson(e) {
|
|
47822
47822
|
super.startLoadingFromJson(e), e && e.locale && (this.locale = e.locale);
|
|
@@ -48013,7 +48013,7 @@ class je extends Od {
|
|
|
48013
48013
|
const o = this.currentSingleElement, l = () => {
|
|
48014
48014
|
o === this.currentSingleElement && (this.isLastElement ? this.autoAdvanceAllowComplete && this.tryCompleteOrShowPreview() : this.performNext());
|
|
48015
48015
|
};
|
|
48016
|
-
Un.safeTimeOut(l,
|
|
48016
|
+
Un.safeTimeOut(l, F.autoAdvanceDelay);
|
|
48017
48017
|
}
|
|
48018
48018
|
var s = this.getCurrentPageQuestions();
|
|
48019
48019
|
if (s.indexOf(t) < 0)
|
|
@@ -48026,7 +48026,7 @@ class je extends Od {
|
|
|
48026
48026
|
const n = this.currentPage, a = () => {
|
|
48027
48027
|
n === this.currentPage && (this.isLastPage ? this.tryCompleteOrShowPreview() : this.nextPage());
|
|
48028
48028
|
};
|
|
48029
|
-
Un.safeTimeOut(a,
|
|
48029
|
+
Un.safeTimeOut(a, F.autoAdvanceDelay);
|
|
48030
48030
|
}
|
|
48031
48031
|
tryCompleteOrShowPreview() {
|
|
48032
48032
|
this.showPreviewBeforeComplete ? this.showPreview() : this.tryComplete();
|
|
@@ -48218,7 +48218,7 @@ class je extends Od {
|
|
|
48218
48218
|
return this.processTextEx({ text: e, returnDisplayValue: t, doEncoding: !1 }).text;
|
|
48219
48219
|
}
|
|
48220
48220
|
processTextEx(e) {
|
|
48221
|
-
const t = e.doEncoding === void 0 ?
|
|
48221
|
+
const t = e.doEncoding === void 0 ? F.web.encodeUrlParams : e.doEncoding;
|
|
48222
48222
|
let s = e.text;
|
|
48223
48223
|
(e.runAtDesign || !this.isDesignMode) && (s = this.textPreProcessor.process(s, e.returnDisplayValue === !0, t, e.replaceUndefinedValues));
|
|
48224
48224
|
const r = { text: s, hasAllValuesOnLastRun: !0 };
|
|
@@ -48705,7 +48705,7 @@ class je extends Od {
|
|
|
48705
48705
|
t && !t.isDisposed && t.focus(this.focusingQuestionInfo.onError), this.focusingQuestionInfo = void 0;
|
|
48706
48706
|
}
|
|
48707
48707
|
questionEditFinishCallback(e, t) {
|
|
48708
|
-
const s = this.enterKeyAction ||
|
|
48708
|
+
const s = this.enterKeyAction || F.enterKeyAction;
|
|
48709
48709
|
if (s == "loseFocus" && t.target.blur(), s == "moveToNextEditor") {
|
|
48710
48710
|
const r = this.currentPage.questions, n = r.indexOf(e);
|
|
48711
48711
|
n > -1 && n < r.length - 1 ? r[n + 1].focus() : t.target.blur();
|
|
@@ -49437,7 +49437,7 @@ class Uv extends Ts {
|
|
|
49437
49437
|
constructor(e) {
|
|
49438
49438
|
super(e), this.isRunningChoices = !1, this.isFirstLoadChoicesFromUrl = !0, this.isUpdatingChoicesDependedQuestions = !1, this._renderedChoices = [], this.renderedChoicesAnimation = new Qa(this.getRenderedChoicesAnimationOptions(), (s) => {
|
|
49439
49439
|
this._renderedChoices = s, this.renderedChoicesChangedCallback && this.renderedChoicesChangedCallback();
|
|
49440
|
-
}, () => this._renderedChoices), this.headItemsCount = 0, this.footItemsCount = 0, this.otherItemValue = this.createItemValue("other"), this.otherItem.showCommentArea = !0, this.otherItem.isCommentRequired = !0, this.noneItemValue = this.createNoneItem(
|
|
49440
|
+
}, () => this._renderedChoices), this.headItemsCount = 0, this.footItemsCount = 0, this.otherItemValue = this.createItemValue("other"), this.otherItem.showCommentArea = !0, this.otherItem.isCommentRequired = !0, this.noneItemValue = this.createNoneItem(F.noneItemValue, "noneText", "noneItemText"), this.refuseItemValue = this.createNoneItem(F.refuseItemValue, "refuseText", "refuseItemText"), this.dontKnowItemValue = this.createNoneItem(F.dontKnowItemValue, "dontKnowText", "dontKnowItemText"), this.createItemValues("choices"), this.registerPropertyChangedHandlers(["choices"], () => {
|
|
49441
49441
|
this.filterItems() || this.onVisibleChoicesChanged();
|
|
49442
49442
|
}), this.createItemValues("customChoices"), this.registerPropertyChangedHandlers(["customChoices"], () => {
|
|
49443
49443
|
this.onVisibleChoicesChanged();
|
|
@@ -50388,7 +50388,7 @@ class Uv extends Ts {
|
|
|
50388
50388
|
})), this.newItemValue.isVisible && !this.isUsingCarryForward && this.canShowOptionItem(this.newItemValue, t, !1) && (this.footItemsCount = 1, e.push(this.newItemValue)));
|
|
50389
50389
|
}
|
|
50390
50390
|
addNonChoicesItems(e, t) {
|
|
50391
|
-
this.supportNone() && this.addNonChoiceItem(e, this.noneItem, t, this.showNoneItem,
|
|
50391
|
+
this.supportNone() && this.addNonChoiceItem(e, this.noneItem, t, this.showNoneItem, F.specialChoicesOrder.noneItem), this.supportRefuse() && this.addNonChoiceItem(e, this.refuseItem, t, this.showRefuseItem, F.specialChoicesOrder.refuseItem), this.supportDontKnow() && this.addNonChoiceItem(e, this.dontKnowItem, t, this.showDontKnowItem, F.specialChoicesOrder.dontKnowItem), this.supportOther() && this.addNonChoiceItem(e, this.otherItem, t, this.showOtherItem, F.specialChoicesOrder.otherItem);
|
|
50392
50392
|
}
|
|
50393
50393
|
addNonChoiceItem(e, t, s, r, n) {
|
|
50394
50394
|
this.canShowOptionItem(t, s, r) && n.forEach((a) => e.push({ index: a, item: t }));
|
|
@@ -50401,7 +50401,7 @@ class Uv extends Ts {
|
|
|
50401
50401
|
return e === this.otherItem ? this.showOtherItem : e === this.noneItem ? this.showNoneItem : e === this.refuseItem ? this.showRefuseItem : e === this.dontKnowItem ? this.showDontKnowItem : e !== this.newItemValue;
|
|
50402
50402
|
}
|
|
50403
50403
|
get isAddDefaultItems() {
|
|
50404
|
-
return
|
|
50404
|
+
return F.showDefaultItemsInCreator && this.isInDesignMode && !this.customWidget;
|
|
50405
50405
|
}
|
|
50406
50406
|
getPlainData(e = {
|
|
50407
50407
|
includeEmpty: !0,
|
|
@@ -50451,7 +50451,7 @@ class Uv extends Ts {
|
|
|
50451
50451
|
let u = this.getChoicesDisplayValue(r, a[o]);
|
|
50452
50452
|
u && n.push(u);
|
|
50453
50453
|
}
|
|
50454
|
-
return n.join(
|
|
50454
|
+
return n.join(F.choicesSeparator);
|
|
50455
50455
|
}
|
|
50456
50456
|
getItemDisplayValue(e, t) {
|
|
50457
50457
|
if (e === this.otherItem) {
|
|
@@ -50691,7 +50691,7 @@ class Uv extends Ts {
|
|
|
50691
50691
|
}
|
|
50692
50692
|
}
|
|
50693
50693
|
onBeforeSendRequest() {
|
|
50694
|
-
|
|
50694
|
+
F.web.disableQuestionWhileLoadingChoices === !0 && !this.isReadOnly && (this.enableOnLoadingChoices = !0, this.readOnly = !0);
|
|
50695
50695
|
}
|
|
50696
50696
|
onLoadChoicesFromUrl(e) {
|
|
50697
50697
|
this.enableOnLoadingChoices && (this.readOnly = !1);
|
|
@@ -50942,7 +50942,7 @@ class Uv extends Ts {
|
|
|
50942
50942
|
return this.footItems.length > 0;
|
|
50943
50943
|
}
|
|
50944
50944
|
get itemFlowDirection() {
|
|
50945
|
-
return
|
|
50945
|
+
return F.itemFlowDirection;
|
|
50946
50946
|
}
|
|
50947
50947
|
get columns() {
|
|
50948
50948
|
if (!this.hasColumns || this.renderedChoices.length === 0)
|
|
@@ -51256,9 +51256,9 @@ class Js extends Ee {
|
|
|
51256
51256
|
}
|
|
51257
51257
|
updateQuestionChoices(e) {
|
|
51258
51258
|
const t = this.itemsSettings.skip + 1 < this.itemsSettings.totalCount;
|
|
51259
|
-
(!this.itemsSettings.skip || t) && (this.resetTimer(), this.filterString &&
|
|
51259
|
+
(!this.itemsSettings.skip || t) && (this.resetTimer(), this.filterString && F.dropdownSearchDelay > 0 ? this.timer = setTimeout(() => {
|
|
51260
51260
|
this._loadQuestionChoices(e);
|
|
51261
|
-
},
|
|
51261
|
+
}, F.dropdownSearchDelay) : this._loadQuestionChoices(e));
|
|
51262
51262
|
}
|
|
51263
51263
|
resetTimer() {
|
|
51264
51264
|
this.timer && (clearTimeout(this.timer), this.timer = void 0);
|
|
@@ -51363,7 +51363,7 @@ class Js extends Ee {
|
|
|
51363
51363
|
if (this.filteredItems)
|
|
51364
51364
|
return this.filteredItems.indexOf(t) >= 0;
|
|
51365
51365
|
let r = t.text.toLocaleLowerCase();
|
|
51366
|
-
r =
|
|
51366
|
+
r = F.comparator.normalizeTextCallback(r, "filter");
|
|
51367
51367
|
const n = r.indexOf(s.toLocaleLowerCase());
|
|
51368
51368
|
return this.question.searchMode == "startsWith" ? n == 0 : n > -1;
|
|
51369
51369
|
});
|
|
@@ -52080,7 +52080,7 @@ j.addClass("dropdown", [
|
|
|
52080
52080
|
{ name: "choicesMin:number", default: 0 },
|
|
52081
52081
|
{ name: "choicesMax:number", default: 0 },
|
|
52082
52082
|
{ name: "choicesStep:number", default: 1, minValue: 1 },
|
|
52083
|
-
{ name: "autocomplete", alternativeName: "autoComplete", choices:
|
|
52083
|
+
{ name: "autocomplete", alternativeName: "autoComplete", choices: F.questions.dataList },
|
|
52084
52084
|
{ name: "textWrapEnabled:boolean", default: !0 },
|
|
52085
52085
|
{ name: "renderAs", default: "default", visible: !1 },
|
|
52086
52086
|
{ name: "searchEnabled:boolean", default: !0, visible: !1 },
|
|
@@ -52223,7 +52223,7 @@ class zue extends Ee {
|
|
|
52223
52223
|
}, this.locs[e][t] = s), s;
|
|
52224
52224
|
}
|
|
52225
52225
|
get defaultRowValue() {
|
|
52226
|
-
return
|
|
52226
|
+
return F.matrix.defaultRowName;
|
|
52227
52227
|
}
|
|
52228
52228
|
getCellLocData(e, t) {
|
|
52229
52229
|
let s = this.getCellLocDataFromValue(e, t);
|
|
@@ -53197,7 +53197,7 @@ class al extends jd {
|
|
|
53197
53197
|
}, this.onKeyDown = (t) => {
|
|
53198
53198
|
this.readOnlyBlocker(t) || (this.onKeyDownPreprocess && this.onKeyDownPreprocess(t), this.isInputTextUpdate && (this._isWaitingForEnter = t.keyCode === 229), this.onTextKeyDownHandler(t));
|
|
53199
53199
|
}, this.onChange = (t) => {
|
|
53200
|
-
this.updateDateValidationMessage(t), t.target ===
|
|
53200
|
+
this.updateDateValidationMessage(t), t.target === F.environment.root.activeElement ? this.isInputTextUpdate && this.updateValueOnEvent(t) : this.updateValueOnEvent(t), this.updateRemainingCharacterCounter(t.target.value);
|
|
53201
53201
|
}, this.createLocalizableString("minErrorText", this, !0, "minError"), this.createLocalizableString("maxErrorText", this, !0, "maxError"), this.setNewMaskSettingsProperty(), this.locDataListValue = new Ale(this), this.locDataListValue.onValueChanged = (t, s) => {
|
|
53202
53202
|
this.propertyValueChanged("dataList", t, s);
|
|
53203
53203
|
}, this.registerPropertyChangedHandlers(["min", "max", "inputType", "minValueExpression", "maxValueExpression"], () => {
|
|
@@ -53423,7 +53423,7 @@ class al extends jd {
|
|
|
53423
53423
|
this.maskTypeIsEmpty ? this._inputValue = e : this.maskSettings.saveMaskedValue ? this._inputValue = e ?? this.maskInstance.getMaskedValue("") : this._inputValue = this.maskInstance.getMaskedValue(e);
|
|
53424
53424
|
}
|
|
53425
53425
|
hasToConvertToUTC(e) {
|
|
53426
|
-
return
|
|
53426
|
+
return F.storeUtcDates && this.isDateTimeLocaleType() && !!e;
|
|
53427
53427
|
}
|
|
53428
53428
|
createDate(e) {
|
|
53429
53429
|
return Rs("question-text", e);
|
|
@@ -53512,9 +53512,9 @@ class al extends jd {
|
|
|
53512
53512
|
const t = (n, a) => {
|
|
53513
53513
|
this.setPropertyValue(n, this.convertFuncValuetoQuestionValue(a));
|
|
53514
53514
|
}, s = (n) => {
|
|
53515
|
-
!n && this.isDateInputType &&
|
|
53515
|
+
!n && this.isDateInputType && F.minDate && (n = F.minDate), t("renderedMin", n);
|
|
53516
53516
|
}, r = (n) => {
|
|
53517
|
-
!n && this.isDateInputType && (n =
|
|
53517
|
+
!n && this.isDateInputType && (n = F.maxDate), t("renderedMax", n);
|
|
53518
53518
|
};
|
|
53519
53519
|
this.runExpressionByProperty("minValueExpression", e, (n) => {
|
|
53520
53520
|
s(n);
|
|
@@ -53584,7 +53584,7 @@ class al extends jd {
|
|
|
53584
53584
|
return super.getControlCssClassBuilder().append(this.cssClasses.constrolWithCharacterCounter, !!e).append(this.cssClasses.characterCounterBig, e > 99);
|
|
53585
53585
|
}
|
|
53586
53586
|
isReadOnlyRenderDiv() {
|
|
53587
|
-
return this.isReadOnly &&
|
|
53587
|
+
return this.isReadOnly && F.readOnly.textRenderMode === "div";
|
|
53588
53588
|
}
|
|
53589
53589
|
get inputStyle() {
|
|
53590
53590
|
var e = {};
|
|
@@ -53677,7 +53677,7 @@ j.addClass("text", [
|
|
|
53677
53677
|
{
|
|
53678
53678
|
name: "inputType",
|
|
53679
53679
|
default: "text",
|
|
53680
|
-
choices:
|
|
53680
|
+
choices: F.questions.inputTypes
|
|
53681
53681
|
},
|
|
53682
53682
|
{
|
|
53683
53683
|
name: "inputSize:number",
|
|
@@ -53700,7 +53700,7 @@ j.addClass("text", [
|
|
|
53700
53700
|
{
|
|
53701
53701
|
name: "autocomplete",
|
|
53702
53702
|
alternativeName: "autoComplete",
|
|
53703
|
-
choices:
|
|
53703
|
+
choices: F.questions.dataList
|
|
53704
53704
|
},
|
|
53705
53705
|
{
|
|
53706
53706
|
name: "min",
|
|
@@ -54605,7 +54605,7 @@ j.addClass("multipletextitem", [
|
|
|
54605
54605
|
{
|
|
54606
54606
|
name: "inputType",
|
|
54607
54607
|
default: "text",
|
|
54608
|
-
choices:
|
|
54608
|
+
choices: F.questions.inputTypes
|
|
54609
54609
|
},
|
|
54610
54610
|
{
|
|
54611
54611
|
name: "maskType",
|
|
@@ -55142,7 +55142,7 @@ class Wd extends Ud {
|
|
|
55142
55142
|
}
|
|
55143
55143
|
getFilteredName() {
|
|
55144
55144
|
let e = super.getFilteredName();
|
|
55145
|
-
return this.hasFilteredValue && (e +=
|
|
55145
|
+
return this.hasFilteredValue && (e += F.expressionVariables.unwrapPostfix), e;
|
|
55146
55146
|
}
|
|
55147
55147
|
getFilteredValue(e) {
|
|
55148
55148
|
return e && this.hasFilteredValue ? this.renderedValue : super.getFilteredValue(e);
|
|
@@ -55305,7 +55305,7 @@ class Wd extends Ud {
|
|
|
55305
55305
|
return this.isSupportProperty("showSelectAllItem");
|
|
55306
55306
|
}
|
|
55307
55307
|
addNonChoicesItems(e, t) {
|
|
55308
|
-
super.addNonChoicesItems(e, t), this.supportSelectAll() && this.addNonChoiceItem(e, this.selectAllItem, t, this.showSelectAllItem,
|
|
55308
|
+
super.addNonChoicesItems(e, t), this.supportSelectAll() && this.addNonChoiceItem(e, this.selectAllItem, t, this.showSelectAllItem, F.specialChoicesOrder.selectAllItem);
|
|
55309
55309
|
}
|
|
55310
55310
|
isBuiltInChoice(e) {
|
|
55311
55311
|
return e === this.selectAllItem || super.isBuiltInChoice(e);
|
|
@@ -55547,7 +55547,7 @@ class ku extends Js {
|
|
|
55547
55547
|
const e = this.getAvailableItems();
|
|
55548
55548
|
let t = this.onSelectionChanged;
|
|
55549
55549
|
t || (t = (n, a) => {
|
|
55550
|
-
this.resetFilterString(), n.id === "selectall" ? this.selectAllItems() : a === "added" && n.value ===
|
|
55550
|
+
this.resetFilterString(), n.id === "selectall" ? this.selectAllItems() : a === "added" && n.value === F.noneItemValue ? this.selectNoneItem() : a === "added" ? this.selectItem(n.value) : a === "removed" && this.deselectItem(n.value), this.popupRecalculatePosition(!1), this.closeOnSelect && (this.popupModel.isVisible = !1);
|
|
55551
55551
|
});
|
|
55552
55552
|
const s = {
|
|
55553
55553
|
items: e,
|
|
@@ -55583,7 +55583,7 @@ class ku extends Js {
|
|
|
55583
55583
|
this.question.toggleSelectAll(), this.question.isAllSelected && this.question.hideSelectedItems && this.popupModel.hide(), this.updateListState();
|
|
55584
55584
|
}
|
|
55585
55585
|
selectNoneItem() {
|
|
55586
|
-
this.question.renderedValue = [
|
|
55586
|
+
this.question.renderedValue = [F.noneItemValue], this.updateListState();
|
|
55587
55587
|
}
|
|
55588
55588
|
selectItem(e) {
|
|
55589
55589
|
let t;
|
|
@@ -55855,7 +55855,7 @@ S([
|
|
|
55855
55855
|
P()
|
|
55856
55856
|
], xr.prototype, "choicesLazyLoadPageSize", void 0);
|
|
55857
55857
|
S([
|
|
55858
|
-
P({ getDefaultValue: () =>
|
|
55858
|
+
P({ getDefaultValue: () => F.tagboxCloseOnSelect })
|
|
55859
55859
|
], xr.prototype, "closeOnSelect", void 0);
|
|
55860
55860
|
S([
|
|
55861
55861
|
P()
|
|
@@ -56187,7 +56187,7 @@ class Kr extends Wd {
|
|
|
56187
56187
|
return this.selectToRankEnabled;
|
|
56188
56188
|
}
|
|
56189
56189
|
get rootClass() {
|
|
56190
|
-
return new G().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod, this.isMobileMode()).append(this.cssClasses.rootDisabled, this.isDisabledStyle).append(this.cssClasses.rootReadOnly, this.isReadOnlyStyle).append(this.cssClasses.rootPreview, this.isPreviewStyle).append(this.cssClasses.rootDesignMode, !!this.isDesignMode).append(this.cssClasses.itemOnError, this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,
|
|
56190
|
+
return new G().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod, this.isMobileMode()).append(this.cssClasses.rootDisabled, this.isDisabledStyle).append(this.cssClasses.rootReadOnly, this.isReadOnlyStyle).append(this.cssClasses.rootPreview, this.isPreviewStyle).append(this.cssClasses.rootDesignMode, !!this.isDesignMode).append(this.cssClasses.itemOnError, this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon, F.rankingDragHandleArea === "icon").append(this.cssClasses.rootSelectToRankMod, this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod, this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "horizontal").append(this.cssClasses.rootSelectToRankAlignVertical, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "vertical").append(this.cssClasses.rootSelectToRankSwapAreas, this.selectToRankEnabled && this.renderedSelectToRankAreasLayout === "horizontal" && this.selectToRankSwapAreas).toString();
|
|
56191
56191
|
}
|
|
56192
56192
|
isItemSelectedCore(e) {
|
|
56193
56193
|
return this.selectToRankEnabled ? super.isItemSelectedCore(e) : !0;
|
|
@@ -56348,7 +56348,7 @@ class Kr extends Wd {
|
|
|
56348
56348
|
return this.selectToRankEnabled ? new rhe(this.survey, null, this.longTap) : new DS(this.survey, null, this.longTap);
|
|
56349
56349
|
}
|
|
56350
56350
|
isDragStartNodeValid(e) {
|
|
56351
|
-
return
|
|
56351
|
+
return F.rankingDragHandleArea === "icon" ? e.classList.contains(this.cssClasses.itemIconHoverMod) : !0;
|
|
56352
56352
|
}
|
|
56353
56353
|
isAllowStartDrag(e, t) {
|
|
56354
56354
|
return !this.isReadOnly && !this.isDesignMode && this.canStartDragDueMaxSelectedChoices(e) && this.canStartDragDueItemEnabled(t);
|
|
@@ -56903,7 +56903,7 @@ function nhe(i, e, t) {
|
|
|
56903
56903
|
const s = atob(i.split(",")[1]), r = new Uint8Array(s.split("").map((n) => n.charCodeAt(0))).buffer;
|
|
56904
56904
|
return new File([r], e, { type: t });
|
|
56905
56905
|
}
|
|
56906
|
-
const Co =
|
|
56906
|
+
const Co = F.customFileCategoryName;
|
|
56907
56907
|
class Gd extends Ts {
|
|
56908
56908
|
constructor() {
|
|
56909
56909
|
super(...arguments), this.isUploading = !1, this.onUploadStateChanged = this.addEvent(), this.onStateChanged = this.addEvent();
|
|
@@ -57315,7 +57315,7 @@ class jt extends Gd {
|
|
|
57315
57315
|
get renderedAcceptedTypes() {
|
|
57316
57316
|
const e = [];
|
|
57317
57317
|
this.acceptedCategories.forEach((s) => {
|
|
57318
|
-
const r =
|
|
57318
|
+
const r = F.acceptedFileCategories[s];
|
|
57319
57319
|
r && e.push(...r);
|
|
57320
57320
|
});
|
|
57321
57321
|
const t = (s) => {
|
|
@@ -57790,14 +57790,14 @@ j.addClass("file", [
|
|
|
57790
57790
|
name: "acceptedCategories:set",
|
|
57791
57791
|
choices: () => {
|
|
57792
57792
|
const i = [];
|
|
57793
|
-
for (let e in
|
|
57793
|
+
for (let e in F.acceptedFileCategories)
|
|
57794
57794
|
i.push(e);
|
|
57795
57795
|
return i.push(Co), i;
|
|
57796
57796
|
},
|
|
57797
57797
|
onSerializeValue: (i) => {
|
|
57798
57798
|
const e = [];
|
|
57799
57799
|
return i.acceptedCategories.forEach((t) => {
|
|
57800
|
-
|
|
57800
|
+
F.acceptedFileCategories[t] && e.push(t);
|
|
57801
57801
|
}), e;
|
|
57802
57802
|
}
|
|
57803
57803
|
},
|
|
@@ -58276,7 +58276,7 @@ class Ot extends Ts {
|
|
|
58276
58276
|
return this.getPropertyValue("visibleChoices", void 0, () => this.calculateVisibleChoices());
|
|
58277
58277
|
}
|
|
58278
58278
|
createRateValues() {
|
|
58279
|
-
for (var e = [], t = this.rateMin, s = this.rateStep; t <= this.rateMax && e.length <
|
|
58279
|
+
for (var e = [], t = this.rateMin, s = this.rateStep; t <= this.rateMax && e.length < F.ratingMaximumRateValueCount; ) {
|
|
58280
58280
|
let r = new Re(t);
|
|
58281
58281
|
r.locOwner = this, r.ownerPropertyName = "rateValues", e.push(r), t = this.correctValue(t + s, s);
|
|
58282
58282
|
}
|
|
@@ -58426,7 +58426,7 @@ class Ot extends Ts {
|
|
|
58426
58426
|
ss || this.renderedRateItems.forEach((t) => t.highlight = "none");
|
|
58427
58427
|
}
|
|
58428
58428
|
get itemSmallMode() {
|
|
58429
|
-
return !this.isSingleInputActive && this.inMatrixMode &&
|
|
58429
|
+
return !this.isSingleInputActive && this.inMatrixMode && F.matrix.rateSize == "small";
|
|
58430
58430
|
}
|
|
58431
58431
|
get ratingRootCss() {
|
|
58432
58432
|
const e = this.hasMaxLabel || this.hasMinLabel;
|
|
@@ -58635,7 +58635,7 @@ j.addClass("rating", [
|
|
|
58635
58635
|
default: 5,
|
|
58636
58636
|
category: "rateValues",
|
|
58637
58637
|
visibleIndex: 4,
|
|
58638
|
-
onSettingValue: (i, e) => e < 2 ? 2 : e >
|
|
58638
|
+
onSettingValue: (i, e) => e < 2 ? 2 : e > F.ratingMaximumRateValueCount && e > i.rateValues.length ? F.ratingMaximumRateValueCount : e > 10 && i.rateType == "smileys" ? 10 : e
|
|
58639
58639
|
},
|
|
58640
58640
|
{
|
|
58641
58641
|
name: "rateValues:itemvalue[]",
|
|
@@ -60821,7 +60821,7 @@ class phe extends dS {
|
|
|
60821
60821
|
if (u !== void 0)
|
|
60822
60822
|
return { isFound: !0, value: u, context: this };
|
|
60823
60823
|
}
|
|
60824
|
-
const n =
|
|
60824
|
+
const n = F.expressionVariables, a = n.panel;
|
|
60825
60825
|
if (e.length > 1) {
|
|
60826
60826
|
const u = e[0].name === n.prevPanel ? -1 : e[0].name === n.nextPanel ? 1 : 0;
|
|
60827
60827
|
if (u !== 0) {
|
|
@@ -60856,10 +60856,10 @@ class phe extends dS {
|
|
|
60856
60856
|
return e = e.toLocaleLowerCase(), [this.indexVar, this.visIndexVar].indexOf(e) > -1 && t > -1 && t++, super.getTextValue(e, t, s);
|
|
60857
60857
|
}
|
|
60858
60858
|
get indexVar() {
|
|
60859
|
-
return
|
|
60859
|
+
return F.expressionVariables.panelIndex.toLocaleLowerCase();
|
|
60860
60860
|
}
|
|
60861
60861
|
get visIndexVar() {
|
|
60862
|
-
return
|
|
60862
|
+
return F.expressionVariables.visiblePanelIndex.toLocaleLowerCase();
|
|
60863
60863
|
}
|
|
60864
60864
|
getPanelValue(e) {
|
|
60865
60865
|
if (e = e.toLocaleLowerCase(), e === this.indexVar)
|
|
@@ -60923,13 +60923,13 @@ class n2 {
|
|
|
60923
60923
|
for (var a = 0; a < n.length; a++) {
|
|
60924
60924
|
const o = n[a];
|
|
60925
60925
|
o.getValueName() !== e && o.checkBindings(e, t);
|
|
60926
|
-
const l =
|
|
60926
|
+
const l = F.commentSuffix;
|
|
60927
60927
|
if (e.endsWith(l)) {
|
|
60928
60928
|
e = e.substring(0, e.length - l.length);
|
|
60929
60929
|
const h = this.panel.getQuestionByName(e);
|
|
60930
60930
|
h && (t = h.value);
|
|
60931
60931
|
}
|
|
60932
|
-
const u =
|
|
60932
|
+
const u = F.expressionVariables.panel + "." + e;
|
|
60933
60933
|
o.runTriggers(u, t);
|
|
60934
60934
|
}
|
|
60935
60935
|
}
|
|
@@ -60938,16 +60938,16 @@ class n2 {
|
|
|
60938
60938
|
setVariable(e, t) {
|
|
60939
60939
|
}
|
|
60940
60940
|
getComment(e) {
|
|
60941
|
-
var t = this.getValue(e +
|
|
60941
|
+
var t = this.getValue(e + F.commentSuffix);
|
|
60942
60942
|
return t || "";
|
|
60943
60943
|
}
|
|
60944
60944
|
setComment(e, t, s) {
|
|
60945
|
-
this.setValue(e +
|
|
60945
|
+
this.setValue(e + F.commentSuffix, t);
|
|
60946
60946
|
}
|
|
60947
60947
|
findQuestionByName(e) {
|
|
60948
60948
|
if (!e)
|
|
60949
60949
|
return;
|
|
60950
|
-
const t =
|
|
60950
|
+
const t = F.expressionVariables.panel + ".";
|
|
60951
60951
|
if (e.indexOf(t) === 0)
|
|
60952
60952
|
return this.panel.getQuestionByName(e.substring(t.length));
|
|
60953
60953
|
const s = this.getSurvey();
|
|
@@ -61738,7 +61738,7 @@ class wn extends Ts {
|
|
|
61738
61738
|
return this.getPropertyValue("maxPanelCount");
|
|
61739
61739
|
}
|
|
61740
61740
|
set maxPanelCount(e) {
|
|
61741
|
-
e <= 0 || (e >
|
|
61741
|
+
e <= 0 || (e > F.panel.maxPanelCount && (e = F.panel.maxPanelCount), this.setPropertyValue("maxPanelCount", e), this.updateFooterActions());
|
|
61742
61742
|
}
|
|
61743
61743
|
onMaxPanelCountChanged() {
|
|
61744
61744
|
const e = this.maxPanelCount;
|
|
@@ -62328,7 +62328,7 @@ class wn extends Ts {
|
|
|
62328
62328
|
for (var a in r)
|
|
62329
62329
|
if (!this.getSharedQuestionFromArray(a, e)) {
|
|
62330
62330
|
var o = t.getQuestionByValueName(a);
|
|
62331
|
-
o || this.iscorrectValueWithPostPrefix(t, a,
|
|
62331
|
+
o || this.iscorrectValueWithPostPrefix(t, a, F.commentSuffix) || this.iscorrectValueWithPostPrefix(t, a, F.matrix.totalsSuffix) || (delete r[a], n = !0);
|
|
62332
62332
|
}
|
|
62333
62333
|
n && (s[e] = r, this.value = s);
|
|
62334
62334
|
}
|
|
@@ -62343,7 +62343,7 @@ class wn extends Ts {
|
|
|
62343
62343
|
const s = t != null && t.isValidator ? t.errorOwner : t, r = !!t && (t === !0 || this.template.questions.indexOf(s) > -1), n = new Array(), a = this.template.questions;
|
|
62344
62344
|
for (var o = 0; o < a.length; o++)
|
|
62345
62345
|
a[o].addConditionObjectsByContext(n, t);
|
|
62346
|
-
for (var l = 0; l <
|
|
62346
|
+
for (var l = 0; l < F.panel.maxPanelCountInCondition; l++) {
|
|
62347
62347
|
const u = "[" + l + "].", h = this.getValueName() + u, c = this.processedTitle + u;
|
|
62348
62348
|
for (var o = 0; o < n.length; o++)
|
|
62349
62349
|
n[o].context ? e.push(n[o]) : e.push({
|
|
@@ -62353,7 +62353,7 @@ class wn extends Ts {
|
|
|
62353
62353
|
});
|
|
62354
62354
|
}
|
|
62355
62355
|
if (r) {
|
|
62356
|
-
const u = t === !0 ? this.getValueName() + "." : "", h = t === !0 ? this.processedTitle + "." : "", c =
|
|
62356
|
+
const u = t === !0 ? this.getValueName() + "." : "", h = t === !0 ? this.processedTitle + "." : "", c = F.expressionVariables.panel + ".";
|
|
62357
62357
|
for (var o = 0; o < n.length; o++) {
|
|
62358
62358
|
if (n[o].question == t)
|
|
62359
62359
|
continue;
|
|
@@ -62413,7 +62413,7 @@ class wn extends Ts {
|
|
|
62413
62413
|
this.value, this.visiblePanelsCore.forEach((e) => {
|
|
62414
62414
|
const t = this.getPanelItemData(e.data);
|
|
62415
62415
|
if (!O.isValueEmpty(t)) {
|
|
62416
|
-
const s = O.createCopyWithPrefix(t,
|
|
62416
|
+
const s = O.createCopyWithPrefix(t, F.expressionVariables.panel + ".");
|
|
62417
62417
|
e.questions.forEach((r) => r.runTriggers("", void 0, s));
|
|
62418
62418
|
}
|
|
62419
62419
|
});
|
|
@@ -62447,7 +62447,7 @@ class wn extends Ts {
|
|
|
62447
62447
|
runPanelsCondition(e, t) {
|
|
62448
62448
|
this.isValueChangingInternally = !0;
|
|
62449
62449
|
for (var s = 0; s < e.length; s++) {
|
|
62450
|
-
const r = e[s], n =
|
|
62450
|
+
const r = e[s], n = F.expressionVariables.panel, a = O.createCopy(t);
|
|
62451
62451
|
a[n] = r, r.runCondition(a), r.isVisible;
|
|
62452
62452
|
}
|
|
62453
62453
|
this.isValueChangingInternally = !1;
|
|
@@ -62455,7 +62455,7 @@ class wn extends Ts {
|
|
|
62455
62455
|
onAnyValueChanged(e, t) {
|
|
62456
62456
|
super.onAnyValueChanged(e, t), !this.hasPanelBuildFirstTime && e === this.getValueName() && (this.isValueChangedWithoutPanels = !0);
|
|
62457
62457
|
for (var s = 0; s < this.panelsCore.length; s++)
|
|
62458
|
-
this.panelsCore[s].onAnyValueChanged(e, t), this.panelsCore[s].onAnyValueChanged(
|
|
62458
|
+
this.panelsCore[s].onAnyValueChanged(e, t), this.panelsCore[s].onAnyValueChanged(F.expressionVariables.panel, "");
|
|
62459
62459
|
}
|
|
62460
62460
|
hasKeysDuplicated(e) {
|
|
62461
62461
|
for (var t = [], s, r = 0; r < this.panelsCore.length; r++)
|
|
@@ -62672,7 +62672,7 @@ class wn extends Ts {
|
|
|
62672
62672
|
const t = e.questions;
|
|
62673
62673
|
for (var s = this.getPanelItemData(e.data), r = 0; r < t.length; r++) {
|
|
62674
62674
|
const n = t[r];
|
|
62675
|
-
n.updateValueFromSurvey(s[n.getValueName()]), n.updateCommentFromSurvey(s[n.getValueName() +
|
|
62675
|
+
n.updateValueFromSurvey(s[n.getValueName()]), n.updateCommentFromSurvey(s[n.getValueName() + F.commentSuffix]), n.initDataUI();
|
|
62676
62676
|
}
|
|
62677
62677
|
}
|
|
62678
62678
|
panelSurveyValueChanged(e) {
|
|
@@ -63033,7 +63033,7 @@ j.addClass("paneldynamic", [
|
|
|
63033
63033
|
{ name: "minPanelCount:number", default: 0, minValue: 0 },
|
|
63034
63034
|
{
|
|
63035
63035
|
name: "maxPanelCount:number",
|
|
63036
|
-
defaultFunc: () =>
|
|
63036
|
+
defaultFunc: () => F.panel.maxPanelCount
|
|
63037
63037
|
},
|
|
63038
63038
|
"defaultPanelValue:panelvalue",
|
|
63039
63039
|
{ name: "copyDefaultValueFromLastEntry:boolean", alternativeName: "defaultValueFromLastPanel" },
|
|
@@ -63268,7 +63268,7 @@ class hn extends Ee {
|
|
|
63268
63268
|
return [];
|
|
63269
63269
|
const t = e.getVariables();
|
|
63270
63270
|
if (Array.isArray(t)) {
|
|
63271
|
-
const s =
|
|
63271
|
+
const s = F.expressionVariables.unwrapPostfix;
|
|
63272
63272
|
for (let r = t.length - 1; r >= 0; r--) {
|
|
63273
63273
|
const n = t[r];
|
|
63274
63274
|
n.endsWith(s) && t.push(n.substring(0, n.length - s.length));
|
|
@@ -63337,7 +63337,7 @@ class yhe extends ol {
|
|
|
63337
63337
|
return !0;
|
|
63338
63338
|
}
|
|
63339
63339
|
isRealExecution() {
|
|
63340
|
-
return !
|
|
63340
|
+
return !F.triggers.executeCompleteOnValueChanged === this.isExecutingOnNavigation;
|
|
63341
63341
|
}
|
|
63342
63342
|
onSuccess(e) {
|
|
63343
63343
|
this.owner && (this.isRealExecution() ? this.owner.setCompleted(this) : this.owner.canBeCompleted(this, !0));
|
|
@@ -63404,7 +63404,7 @@ class bhe extends ol {
|
|
|
63404
63404
|
this.setPropertyValue("gotoName", e);
|
|
63405
63405
|
}
|
|
63406
63406
|
canBeExecuted(e) {
|
|
63407
|
-
return e === !
|
|
63407
|
+
return e === !F.triggers.executeSkipOnValueChanged;
|
|
63408
63408
|
}
|
|
63409
63409
|
onSuccess(e) {
|
|
63410
63410
|
!this.gotoName || !this.owner || this.owner.focusQuestion(this.gotoName);
|
|
@@ -63801,7 +63801,7 @@ class xn extends Ee {
|
|
|
63801
63801
|
return this.getAnimationContainer();
|
|
63802
63802
|
}
|
|
63803
63803
|
isAnimationEnabled() {
|
|
63804
|
-
return this.model.displayMode !== "overlay" &&
|
|
63804
|
+
return this.model.displayMode !== "overlay" && F.animationEnabled;
|
|
63805
63805
|
}
|
|
63806
63806
|
getRerenderEvent() {
|
|
63807
63807
|
return this.onElementRerendered;
|
|
@@ -63905,7 +63905,7 @@ class xn extends Ee {
|
|
|
63905
63905
|
}
|
|
63906
63906
|
trapFocus(e) {
|
|
63907
63907
|
const t = this.container.querySelectorAll(o2), s = t[0], r = t[t.length - 1];
|
|
63908
|
-
e.shiftKey ?
|
|
63908
|
+
e.shiftKey ? F.environment.root.activeElement === s && (r.focus(), e.preventDefault()) : F.environment.root.activeElement === r && (s.focus(), e.preventDefault());
|
|
63909
63909
|
}
|
|
63910
63910
|
switchFocus() {
|
|
63911
63911
|
this.isFocusedContent ? this.focusFirstInput() : this.isFocusedContainer && this.focusContainer();
|
|
@@ -63914,7 +63914,7 @@ class xn extends Ee {
|
|
|
63914
63914
|
return this._isPositionSetValue;
|
|
63915
63915
|
}
|
|
63916
63916
|
updateOnShowing() {
|
|
63917
|
-
this.prevActiveElement =
|
|
63917
|
+
this.prevActiveElement = F.environment.root.activeElement, this.isOverlay && this.resetDimensionsAndPositionStyleProperties(), this.switchFocus(), this._isPositionSetValue = !0;
|
|
63918
63918
|
}
|
|
63919
63919
|
updateOnHiding() {
|
|
63920
63920
|
this.isFocusedContent && this.prevActiveElement && this.prevActiveElement.focus({ preventScroll: !0 });
|
|
@@ -63948,7 +63948,7 @@ class xn extends Ee {
|
|
|
63948
63948
|
initializePopupContainer() {
|
|
63949
63949
|
if (!this.container) {
|
|
63950
63950
|
const e = ve.createElement("div");
|
|
63951
|
-
this.createdContainer = e, Dle(
|
|
63951
|
+
this.createdContainer = e, Dle(F.environment.popupMountContainer).appendChild(e);
|
|
63952
63952
|
}
|
|
63953
63953
|
}
|
|
63954
63954
|
setComponentElement(e) {
|
|
@@ -64164,7 +64164,7 @@ class Kd extends xn {
|
|
|
64164
64164
|
super.resetComponentElement();
|
|
64165
64165
|
}
|
|
64166
64166
|
updateOnShowing() {
|
|
64167
|
-
const { root: e } =
|
|
64167
|
+
const { root: e } = F.environment;
|
|
64168
64168
|
this.prevActiveElement = e.activeElement, this.isOverlay ? this.resetDimensionsAndPositionStyleProperties() : this.updatePosition(!0, !1), this.switchFocus(), xe.addEventListener("resize", this.resizeWindowCallback), this.shouldCreateResizeCallback && (xe.getVisualViewport().addEventListener("resize", this.resizeEventCallback), this.container && (this.container.addEventListener("touchstart", this.touchStartEventCallback), this.container.addEventListener("touchmove", this.touchMoveEventCallback)), this.resizeEventCallback()), xe.addEventListener("scroll", this.scrollEventCallBack), this._isPositionSetValue = !0;
|
|
64169
64169
|
}
|
|
64170
64170
|
get shouldCreateResizeCallback() {
|
|
@@ -64521,15 +64521,15 @@ j.addClass("masksettings", [
|
|
|
64521
64521
|
function Kv(i) {
|
|
64522
64522
|
const e = [];
|
|
64523
64523
|
let t = !1;
|
|
64524
|
-
const s = Object.keys(
|
|
64524
|
+
const s = Object.keys(F.maskSettings.patternDefinitions);
|
|
64525
64525
|
for (let r = 0; r < i.length; r++) {
|
|
64526
64526
|
const n = i[r];
|
|
64527
|
-
n ===
|
|
64527
|
+
n === F.maskSettings.patternEscapeChar ? t = !0 : t ? (t = !1, e.push({ type: "fixed", value: n })) : e.push({ type: s.indexOf(n) !== -1 ? "regex" : "const", value: n });
|
|
64528
64528
|
}
|
|
64529
64529
|
return e;
|
|
64530
64530
|
}
|
|
64531
64531
|
function Phe(i, e, t) {
|
|
64532
|
-
const s =
|
|
64532
|
+
const s = F.maskSettings.patternDefinitions[t.value];
|
|
64533
64533
|
for (; e < i.length; ) {
|
|
64534
64534
|
if (i[e].match(s))
|
|
64535
64535
|
return e;
|
|
@@ -64547,7 +64547,7 @@ function Rhe(i, e, t) {
|
|
|
64547
64547
|
if (n < s.length && (n = Phe(s, n, a[o])), n < s.length)
|
|
64548
64548
|
r += s[n];
|
|
64549
64549
|
else if (t)
|
|
64550
|
-
r +=
|
|
64550
|
+
r += F.maskSettings.patternPlaceholderChar;
|
|
64551
64551
|
else
|
|
64552
64552
|
return r;
|
|
64553
64553
|
n++;
|
|
@@ -64566,7 +64566,7 @@ function Vf(i, e, t, s = !1) {
|
|
|
64566
64566
|
let n = typeof e == "string" ? Kv(e) : e;
|
|
64567
64567
|
for (let a = 0; a < n.length; a++)
|
|
64568
64568
|
if (n[a].type === "fixed" && !s && (r += n[a].value), n[a].type === "regex") {
|
|
64569
|
-
const o =
|
|
64569
|
+
const o = F.maskSettings.patternDefinitions[n[a].value];
|
|
64570
64570
|
if (i[a] && i[a].match(o))
|
|
64571
64571
|
r += i[a];
|
|
64572
64572
|
else if (t) {
|
|
@@ -65208,7 +65208,7 @@ j.addClass("currencymask", [
|
|
|
65208
65208
|
], () => new Yv(), "numericmask");
|
|
65209
65209
|
var Nc;
|
|
65210
65210
|
Nc = "2.4.1";
|
|
65211
|
-
|
|
65211
|
+
F.version = Nc;
|
|
65212
65212
|
function Dhe(i, e) {
|
|
65213
65213
|
if (Nc != i) {
|
|
65214
65214
|
const t = "survey-core has version '" + Nc + "' and " + e + " has version '" + i + "'. SurveyJS libraries should have the same versions to work correctly.";
|
|
@@ -66066,19 +66066,19 @@ class Fhe extends p.Component {
|
|
|
66066
66066
|
class Xl extends Me {
|
|
66067
66067
|
constructor(e) {
|
|
66068
66068
|
super(e), this.isInitialized = !1, this.init = () => {
|
|
66069
|
-
this.isInitialized || (
|
|
66069
|
+
this.isInitialized || (F.showDialog = (t, s) => this.showDialog(t, s), this.isInitialized = !0);
|
|
66070
66070
|
}, this.clean = () => {
|
|
66071
|
-
this.isInitialized && (
|
|
66071
|
+
this.isInitialized && (F.showDialog = void 0, this.isInitialized = !1);
|
|
66072
66072
|
}, this.state = { changed: 0 }, this.descriptor = {
|
|
66073
66073
|
init: this.init,
|
|
66074
66074
|
clean: this.clean
|
|
66075
66075
|
};
|
|
66076
66076
|
}
|
|
66077
66077
|
static addModalDescriptor(e) {
|
|
66078
|
-
|
|
66078
|
+
F.showDialog || e.init(), this.modalDescriptors.push(e);
|
|
66079
66079
|
}
|
|
66080
66080
|
static removeModalDescriptor(e) {
|
|
66081
|
-
e.clean(), this.modalDescriptors.splice(this.modalDescriptors.indexOf(e), 1), !
|
|
66081
|
+
e.clean(), this.modalDescriptors.splice(this.modalDescriptors.indexOf(e), 1), !F.showDialog && this.modalDescriptors[0] && this.modalDescriptors[0].init();
|
|
66082
66082
|
}
|
|
66083
66083
|
renderElement() {
|
|
66084
66084
|
return this.model ? jI(p.createElement(e0, { model: this.model }), this.model.container) : null;
|
|
@@ -67989,7 +67989,7 @@ class Xd extends Ou {
|
|
|
67989
67989
|
);
|
|
67990
67990
|
}
|
|
67991
67991
|
renderFilterInput() {
|
|
67992
|
-
const { root: e } =
|
|
67992
|
+
const { root: e } = F.environment, t = this.dropdownListModel, s = (r) => {
|
|
67993
67993
|
var n;
|
|
67994
67994
|
const a = (n = r.target.getRootNode()) === null || n === void 0 ? void 0 : n.activeElement;
|
|
67995
67995
|
r.target === a && (t.inputStringRendered = r.target.value);
|
|
@@ -72889,7 +72889,7 @@ function E2(i, e, t, s) {
|
|
|
72889
72889
|
}
|
|
72890
72890
|
function hpe() {
|
|
72891
72891
|
const i = this;
|
|
72892
|
-
let e, t, s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, I, A, R, D, T, k, _, B, H, L,
|
|
72892
|
+
let e, t, s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, I, A, R, D, T, k, _, B, H, L, q, $, Q, W;
|
|
72893
72893
|
const U = new Bt(), re = new Bt(), J = new Bt();
|
|
72894
72894
|
i.depth = [];
|
|
72895
72895
|
let oe, te, ee, de, he, X;
|
|
@@ -72898,7 +72898,7 @@ function hpe() {
|
|
|
72898
72898
|
u = 2 * n, c[f - 1] = 0;
|
|
72899
72899
|
for (let K = 0; K < f - 1; K++)
|
|
72900
72900
|
c[K] = 0;
|
|
72901
|
-
_ = rr[B].max_lazy, L = rr[B].good_length,
|
|
72901
|
+
_ = rr[B].max_lazy, L = rr[B].good_length, q = rr[B].nice_length, k = rr[B].max_chain, A = 0, g = 0, D = 0, b = T = Kt - 1, I = 0, d = 0;
|
|
72902
72902
|
}
|
|
72903
72903
|
function ke() {
|
|
72904
72904
|
let K;
|
|
@@ -73048,7 +73048,7 @@ function hpe() {
|
|
|
73048
73048
|
function Ps(K) {
|
|
73049
73049
|
let ne = k, se = A, le, ge, Le = T;
|
|
73050
73050
|
const We = A > n - Vi ? A - (n - Vi) : 0;
|
|
73051
|
-
let ls =
|
|
73051
|
+
let ls = q;
|
|
73052
73052
|
const Ls = o, Zr = A + ac;
|
|
73053
73053
|
let eo = l[se + Le - 1], va = l[se + Le];
|
|
73054
73054
|
T >= L && (ne >>= 2), ls > D && (ls = D);
|
|
@@ -73125,7 +73125,7 @@ function hpe() {
|
|
|
73125
73125
|
return t != Rf && t != qh && t != Dl ? hr : (i.lc_buf = null, i.dist_buf = null, i.pending_buf = null, c = null, h = null, l = null, i.dstate = null, t == qh ? epe : ar);
|
|
73126
73126
|
}, i.deflateParams = function(K, ne, se) {
|
|
73127
73127
|
let le = ar;
|
|
73128
|
-
return ne == $c && (ne = 6), ne < 0 || ne > 9 || se < 0 || se > kh ? hr : (rr[B].func != rr[ne].func && K.total_in !== 0 && (le = K.deflate(w2)), B != ne && (B = ne, _ = rr[B].max_lazy, L = rr[B].good_length,
|
|
73128
|
+
return ne == $c && (ne = 6), ne < 0 || ne > 9 || se < 0 || se > kh ? hr : (rr[B].func != rr[ne].func && K.total_in !== 0 && (le = K.deflate(w2)), B != ne && (B = ne, _ = rr[B].max_lazy, L = rr[B].good_length, q = rr[B].nice_length, k = rr[B].max_chain), H = se, le);
|
|
73129
73129
|
}, i.deflateSetDictionary = function(K, ne, se) {
|
|
73130
73130
|
let le = se, ge, Le = 0;
|
|
73131
73131
|
if (!ne || t != Rf)
|
|
@@ -75046,7 +75046,7 @@ function Xm() {
|
|
|
75046
75046
|
const i = this;
|
|
75047
75047
|
let e, t, s, r, n, a;
|
|
75048
75048
|
function o(u, h, c, d, f, y, v, m, g, b, x) {
|
|
75049
|
-
let I, A, R, D, T, k, _, B, H, L,
|
|
75049
|
+
let I, A, R, D, T, k, _, B, H, L, q, $, Q, W, U;
|
|
75050
75050
|
L = 0, T = c;
|
|
75051
75051
|
do
|
|
75052
75052
|
s[u[h + L]]++, L++, T--;
|
|
@@ -75068,7 +75068,7 @@ function Xm() {
|
|
|
75068
75068
|
do
|
|
75069
75069
|
(k = u[h + L]) !== 0 && (x[a[k]++] = T), L++;
|
|
75070
75070
|
while (++T < c);
|
|
75071
|
-
for (c = a[R], a[0] = T = 0, L = 0, D = -1, $ = -B, n[0] = 0,
|
|
75071
|
+
for (c = a[R], a[0] = T = 0, L = 0, D = -1, $ = -B, n[0] = 0, q = 0, U = 0; _ <= R; _++)
|
|
75072
75072
|
for (I = s[_]; I-- !== 0; ) {
|
|
75073
75073
|
for (; _ > $ + B; ) {
|
|
75074
75074
|
if (D++, $ += B, U = R - $, U = U > B ? B : U, (A = 1 << (k = _ - $)) > I + 1 && (A -= I + 1, Q = _, k < U))
|
|
@@ -75076,17 +75076,17 @@ function Xm() {
|
|
|
75076
75076
|
A -= s[Q];
|
|
75077
75077
|
if (U = 1 << k, b[0] + U > I3)
|
|
75078
75078
|
return $t;
|
|
75079
|
-
n[D] =
|
|
75079
|
+
n[D] = q = /* hp+ */
|
|
75080
75080
|
b[0], b[0] += U, D !== 0 ? (a[D] = T, r[0] = /* (byte) */
|
|
75081
75081
|
k, r[1] = /* (byte) */
|
|
75082
75082
|
B, k = T >>> $ - B, r[2] = /* (int) */
|
|
75083
|
-
|
|
75083
|
+
q - n[D - 1] - k, g.set(r, (n[D - 1] + k) * 3)) : v[0] = q;
|
|
75084
75084
|
}
|
|
75085
75085
|
for (r[1] = /* (byte) */
|
|
75086
75086
|
_ - $, L >= c ? r[0] = 192 : x[L] < d ? (r[0] = /* (byte) */
|
|
75087
75087
|
x[L] < 256 ? 0 : 96, r[2] = x[L++]) : (r[0] = /* (byte) */
|
|
75088
75088
|
y[x[L] - d] + 16 + 64, r[2] = f[x[L++] - d]), A = 1 << _ - $, k = T >>> $; k < U; k += A)
|
|
75089
|
-
g.set(r, (
|
|
75089
|
+
g.set(r, (q + k) * 3);
|
|
75090
75090
|
for (k = 1 << _ - 1; T & k; k >>>= 1)
|
|
75091
75091
|
T ^= k;
|
|
75092
75092
|
for (T ^= k, H = (1 << $) - 1; (T & H) != a[D]; )
|
|
@@ -75120,11 +75120,11 @@ function Spe() {
|
|
|
75120
75120
|
const i = this;
|
|
75121
75121
|
let e, t = 0, s, r = 0, n = 0, a = 0, o = 0, l = 0, u = 0, h = 0, c, d = 0, f, y = 0;
|
|
75122
75122
|
function v(m, g, b, x, I, A, R, D) {
|
|
75123
|
-
let T, k, _, B, H, L,
|
|
75124
|
-
|
|
75123
|
+
let T, k, _, B, H, L, q, $, Q, W, U, re, J, oe, te, ee;
|
|
75124
|
+
q = D.next_in_index, $ = D.avail_in, H = R.bitb, L = R.bitk, Q = R.write, W = Q < R.read ? R.read - Q - 1 : R.end - Q, U = Si[m], re = Si[g];
|
|
75125
75125
|
do {
|
|
75126
75126
|
for (; L < 20; )
|
|
75127
|
-
$--, H |= (D.read_byte(
|
|
75127
|
+
$--, H |= (D.read_byte(q++) & 255) << L, L += 8;
|
|
75128
75128
|
if (T = H & U, k = b, _ = x, ee = (_ + T) * 3, (B = k[ee]) === 0) {
|
|
75129
75129
|
H >>= k[ee + 1], L -= k[ee + 1], R.win[Q++] = /* (byte) */
|
|
75130
75130
|
k[ee + 2], W--;
|
|
@@ -75134,12 +75134,12 @@ function Spe() {
|
|
|
75134
75134
|
if (H >>= k[ee + 1], L -= k[ee + 1], B & 16) {
|
|
75135
75135
|
for (B &= 15, J = k[ee + 2] + /* (int) */
|
|
75136
75136
|
(H & Si[B]), H >>= B, L -= B; L < 15; )
|
|
75137
|
-
$--, H |= (D.read_byte(
|
|
75137
|
+
$--, H |= (D.read_byte(q++) & 255) << L, L += 8;
|
|
75138
75138
|
T = H & re, k = I, _ = A, ee = (_ + T) * 3, B = k[ee];
|
|
75139
75139
|
do
|
|
75140
75140
|
if (H >>= k[ee + 1], L -= k[ee + 1], B & 16) {
|
|
75141
75141
|
for (B &= 15; L < B; )
|
|
75142
|
-
$--, H |= (D.read_byte(
|
|
75142
|
+
$--, H |= (D.read_byte(q++) & 255) << L, L += 8;
|
|
75143
75143
|
if (oe = k[ee + 2] + (H & Si[B]), H >>= B, L -= B, W -= J, Q >= oe)
|
|
75144
75144
|
te = Q - oe, Q - te > 0 && 2 > Q - te ? (R.win[Q++] = R.win[te++], R.win[Q++] = R.win[te++], J -= 2) : (R.win.set(R.win.subarray(te, te + 2), Q), Q += 2, te += 2, J -= 2);
|
|
75145
75145
|
else {
|
|
@@ -75167,12 +75167,12 @@ function Spe() {
|
|
|
75167
75167
|
} else if (!(B & 64))
|
|
75168
75168
|
T += k[ee + 2], T += H & Si[B], ee = (_ + T) * 3, B = k[ee];
|
|
75169
75169
|
else
|
|
75170
|
-
return D.msg = "invalid distance code", J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J,
|
|
75170
|
+
return D.msg = "invalid distance code", J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J, q -= J, L -= J << 3, R.bitb = H, R.bitk = L, D.avail_in = $, D.total_in += q - D.next_in_index, D.next_in_index = q, R.write = Q, $t;
|
|
75171
75171
|
while (!0);
|
|
75172
75172
|
break;
|
|
75173
75173
|
}
|
|
75174
75174
|
if (B & 64)
|
|
75175
|
-
return B & 32 ? (J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J,
|
|
75175
|
+
return B & 32 ? (J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J, q -= J, L -= J << 3, R.bitb = H, R.bitk = L, D.avail_in = $, D.total_in += q - D.next_in_index, D.next_in_index = q, R.write = Q, pn) : (D.msg = "invalid literal/length code", J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J, q -= J, L -= J << 3, R.bitb = H, R.bitk = L, D.avail_in = $, D.total_in += q - D.next_in_index, D.next_in_index = q, R.write = Q, $t);
|
|
75176
75176
|
if (T += k[ee + 2], T += H & Si[B], ee = (_ + T) * 3, (B = k[ee]) === 0) {
|
|
75177
75177
|
H >>= k[ee + 1], L -= k[ee + 1], R.win[Q++] = /* (byte) */
|
|
75178
75178
|
k[ee + 2], W--;
|
|
@@ -75180,7 +75180,7 @@ function Spe() {
|
|
|
75180
75180
|
}
|
|
75181
75181
|
} while (!0);
|
|
75182
75182
|
} while (W >= 258 && $ >= 10);
|
|
75183
|
-
return J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J,
|
|
75183
|
+
return J = D.avail_in - $, J = L >> 3 < J ? L >> 3 : J, $ += J, q -= J, L -= J << 3, R.bitb = H, R.bitk = L, D.avail_in = $, D.total_in += q - D.next_in_index, D.next_in_index = q, R.write = Q, gt;
|
|
75184
75184
|
}
|
|
75185
75185
|
i.init = function(m, g, b, x, I, A) {
|
|
75186
75186
|
e = Bh, u = /* (byte) */
|
|
@@ -75324,7 +75324,7 @@ function Tpe(i, e) {
|
|
|
75324
75324
|
let g, b, x, I, A, R, D, T;
|
|
75325
75325
|
for (I = v.next_in_index, A = v.avail_in, b = t.bitb, x = t.bitk, R = t.write, D = /* (int) */
|
|
75326
75326
|
R < t.read ? t.read - R - 1 : t.end - R; ; ) {
|
|
75327
|
-
let k, _, B, H, L,
|
|
75327
|
+
let k, _, B, H, L, q, $, Q;
|
|
75328
75328
|
switch (s) {
|
|
75329
75329
|
case mo:
|
|
75330
75330
|
for (; x < 3; ) {
|
|
@@ -75432,9 +75432,9 @@ function Tpe(i, e) {
|
|
|
75432
75432
|
a = T;
|
|
75433
75433
|
}
|
|
75434
75434
|
}
|
|
75435
|
-
if (u[0] = -1, L = [],
|
|
75435
|
+
if (u[0] = -1, L = [], q = [], $ = [], Q = [], L[0] = 9, q[0] = 6, g = n, g = y.inflate_trees_dynamic(257 + (g & 31), 1 + (g >> 5 & 31), o, L, q, $, Q, d, v), g != gt)
|
|
75436
75436
|
return g == $t && (o = null, s = wa), m = g, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += I - v.next_in_index, v.next_in_index = I, t.write = R, t.inflate_flush(v, m);
|
|
75437
|
-
h.init(L[0],
|
|
75437
|
+
h.init(L[0], q[0], d, $[0], d, Q[0]), s = Hh;
|
|
75438
75438
|
case Hh:
|
|
75439
75439
|
if (t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += I - v.next_in_index, v.next_in_index = I, t.write = R, (m = h.proc(t, v, m)) != pn)
|
|
75440
75440
|
return t.inflate_flush(v, m);
|
|
@@ -78562,7 +78562,7 @@ async function gme(i, e, t, s) {
|
|
|
78562
78562
|
const h = Et(i, s, n7, /* @__PURE__ */ new Date()), c = Et(i, s, a7), d = Et(i, s, o7), f = Et(i, s, h7, !0), y = Et(i, s, l7, 0), v = Et(i, s, u7, 0), m = Et(i, s, "passThrough");
|
|
78563
78563
|
let g, b;
|
|
78564
78564
|
m || (g = Et(i, s, "password"), b = Et(i, s, "rawPassword"));
|
|
78565
|
-
const x = Et(i, s, "encryptionStrength", 3), I = Et(i, s, f7), A = Et(i, s, "extendedTimestamp", !0), R = Et(i, s, "keepOrder", !0), D = Et(i, s, "level"), T = Et(i, s, "useWebWorkers"), k = Et(i, s, "bufferedWrite"), _ = Et(i, s, "dataDescriptorSignature", !1), B = Et(i, s, "signal"), H = Et(i, s, "useUnicodeFileNames", !0), L = Et(i, s, "useCompressionStream"),
|
|
78565
|
+
const x = Et(i, s, "encryptionStrength", 3), I = Et(i, s, f7), A = Et(i, s, "extendedTimestamp", !0), R = Et(i, s, "keepOrder", !0), D = Et(i, s, "level"), T = Et(i, s, "useWebWorkers"), k = Et(i, s, "bufferedWrite"), _ = Et(i, s, "dataDescriptorSignature", !1), B = Et(i, s, "signal"), H = Et(i, s, "useUnicodeFileNames", !0), L = Et(i, s, "useCompressionStream"), q = Et(i, s, "compressionMethod");
|
|
78566
78566
|
let $ = Et(i, s, "dataDescriptor", !0), Q = Et(i, s, m0);
|
|
78567
78567
|
if (!I && (g !== Ht || b !== Ht) && !(x >= 1 && x <= 3))
|
|
78568
78568
|
throw new Error(cme);
|
|
@@ -78625,7 +78625,7 @@ async function gme(i, e, t, s) {
|
|
|
78625
78625
|
passThrough: m,
|
|
78626
78626
|
encrypted: !!(g && ot(g) || b && ot(b)) || m && Qs,
|
|
78627
78627
|
signature: Vt,
|
|
78628
|
-
compressionMethod:
|
|
78628
|
+
compressionMethod: q
|
|
78629
78629
|
});
|
|
78630
78630
|
const ps = Cme(s), xs = wme(s), Ze = ot(ps.localHeaderArray, xs.dataDescriptorArray);
|
|
78631
78631
|
J = Ze + re, i.options.usdz && (J += J + 64), i.pendingEntriesSize += J;
|
|
@@ -78725,7 +78725,7 @@ async function yme(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78725
78725
|
rawPassword: B,
|
|
78726
78726
|
level: H,
|
|
78727
78727
|
zip64: L,
|
|
78728
|
-
zip64UncompressedSize:
|
|
78728
|
+
zip64UncompressedSize: q,
|
|
78729
78729
|
zip64CompressedSize: $,
|
|
78730
78730
|
zip64Offset: Q,
|
|
78731
78731
|
zip64DiskNumberStart: W,
|
|
@@ -78799,7 +78799,7 @@ async function yme(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78799
78799
|
let et;
|
|
78800
78800
|
if (L) {
|
|
78801
78801
|
let be = 4;
|
|
78802
|
-
|
|
78802
|
+
q && (be += 8), $ && (be += 8), Q && (be += 8), W && (be += 4), et = new Uint8Array(be);
|
|
78803
78803
|
} else
|
|
78804
78804
|
et = new Uint8Array();
|
|
78805
78805
|
return xme({
|
|
@@ -78825,7 +78825,7 @@ async function yme(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78825
78825
|
signature: fs,
|
|
78826
78826
|
rawExtraFieldZip64: et,
|
|
78827
78827
|
extraFieldExtendedTimestampFlag: x,
|
|
78828
|
-
zip64UncompressedSize:
|
|
78828
|
+
zip64UncompressedSize: q,
|
|
78829
78829
|
zip64CompressedSize: $,
|
|
78830
78830
|
zip64Offset: Q,
|
|
78831
78831
|
zip64DiskNumberStart: W
|
|
@@ -78882,9 +78882,9 @@ function Cme(i) {
|
|
|
78882
78882
|
at(T, 6, H), mt(T, 22, ot(e));
|
|
78883
78883
|
const L = ot(b, I, x, c);
|
|
78884
78884
|
mt(T, 24, L);
|
|
78885
|
-
const
|
|
78886
|
-
return at($, 0, Ope), gs(
|
|
78887
|
-
localHeaderArray:
|
|
78885
|
+
const q = new Uint8Array(30 + ot(e) + L), $ = qs(q);
|
|
78886
|
+
return at($, 0, Ope), gs(q, D, 4), gs(q, e, 30), gs(q, b, 30 + ot(e)), gs(q, I, 30 + ot(e, b)), gs(q, x, 30 + ot(e, b, I)), gs(q, c, 30 + ot(e, b, I, x)), {
|
|
78887
|
+
localHeaderArray: q,
|
|
78888
78888
|
headerArray: D,
|
|
78889
78889
|
headerView: T,
|
|
78890
78890
|
lastModDate: t,
|
|
@@ -78975,13 +78975,13 @@ async function Sme(i, e, t) {
|
|
|
78975
78975
|
rawExtraField: B,
|
|
78976
78976
|
extendedTimestamp: H,
|
|
78977
78977
|
extraFieldExtendedTimestampFlag: L,
|
|
78978
|
-
lastModDate:
|
|
78978
|
+
lastModDate: q
|
|
78979
78979
|
} = A;
|
|
78980
78980
|
let $;
|
|
78981
78981
|
if (H) {
|
|
78982
78982
|
$ = new Uint8Array(9);
|
|
78983
78983
|
const Q = qs($);
|
|
78984
|
-
mt(Q, 0, _3), mt(Q, 2, 5), Qc(Q, 4, L), at(Q, 5, Math.floor(
|
|
78984
|
+
mt(Q, 0, _3), mt(Q, 2, 5), Qc(Q, 4, L), at(Q, 5, Math.floor(q.getTime() / 1e3));
|
|
78985
78985
|
} else
|
|
78986
78986
|
$ = new Uint8Array();
|
|
78987
78987
|
A.rawExtraFieldCDExtendedTimestamp = $, u += 46 + ot(
|
|
@@ -79006,7 +79006,7 @@ async function Sme(i, e, t) {
|
|
|
79006
79006
|
rawExtraFieldCDExtendedTimestamp: B,
|
|
79007
79007
|
rawExtraFieldNTFS: H,
|
|
79008
79008
|
rawExtraField: L,
|
|
79009
|
-
rawComment:
|
|
79009
|
+
rawComment: q,
|
|
79010
79010
|
versionMadeBy: $,
|
|
79011
79011
|
headerArray: Q,
|
|
79012
79012
|
directory: W,
|
|
@@ -79024,8 +79024,8 @@ async function Sme(i, e, t) {
|
|
|
79024
79024
|
} = R, Ct = ot(k, _, B, H, L);
|
|
79025
79025
|
at(f, l, Npe), mt(f, l + 4, $);
|
|
79026
79026
|
const Nt = qs(Q);
|
|
79027
|
-
re || at(Nt, 18, ce), J || at(Nt, 14, ke), gs(d, Q, l + 6), mt(f, l + 30, Ct), mt(f, l + 32, ot(
|
|
79028
|
-
const Qs = 46 + ot(T,
|
|
79027
|
+
re || at(Nt, 18, ce), J || at(Nt, 14, ke), gs(d, Q, l + 6), mt(f, l + 30, Ct), mt(f, l + 32, ot(q)), mt(f, l + 34, U && oe ? fi : X), mt(f, l + 36, de), he ? at(f, l + 38, he) : W && ee && Qc(f, l + 38, Zpe), at(f, l + 42, U && te ? gi : D), gs(d, T, l + 46), gs(d, k, l + 46 + ot(T)), gs(d, _, l + 46 + ot(T, k)), gs(d, B, l + 46 + ot(T, k, _)), gs(d, H, l + 46 + ot(T, k, _, B)), gs(d, L, l + 46 + ot(T, k, _, B, H)), gs(d, q, l + 46 + ot(T) + Ct);
|
|
79028
|
+
const Qs = 46 + ot(T, q) + Ct;
|
|
79029
79029
|
if (l - y > r.availableSize && (r.availableSize = 0, await Or(a, d.slice(y, l)), y = l), l += Qs, t.onprogress)
|
|
79030
79030
|
try {
|
|
79031
79031
|
await t.onprogress(A + 1, s.size, new m7(R));
|
|
@@ -79110,7 +79110,7 @@ var rg;
|
|
|
79110
79110
|
i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
|
|
79111
79111
|
})(rg || (rg = {}));
|
|
79112
79112
|
const Ia = Su("Filesystem", {
|
|
79113
|
-
web: () => import("./web-
|
|
79113
|
+
web: () => import("./web-BTzxclIT.js").then((i) => new i.FilesystemWeb())
|
|
79114
79114
|
});
|
|
79115
79115
|
ai("Upload", async (i, e, t, s) => {
|
|
79116
79116
|
const r = i.sessionID || `sim_${Date.now()}_${Math.floor(At(0, 2176782336)).toString(36)}`, n = OV({
|
|
@@ -79278,8 +79278,8 @@ function Ame({
|
|
|
79278
79278
|
const H = new mme(new zfe());
|
|
79279
79279
|
for (const Q of B)
|
|
79280
79280
|
await H.add(Q.filename, new Wfe(Q.content));
|
|
79281
|
-
const L = await H.close(),
|
|
79282
|
-
$.href =
|
|
79281
|
+
const L = await H.close(), q = URL.createObjectURL(L), $ = document.createElement("a");
|
|
79282
|
+
$.href = q, $.download = "study-data.zip", document.body.appendChild($), $.click(), document.body.removeChild($), URL.revokeObjectURL(q);
|
|
79283
79283
|
}, []), T = st(async () => {
|
|
79284
79284
|
if (m("uploading"), g.current)
|
|
79285
79285
|
return;
|
|
@@ -79293,28 +79293,28 @@ function Ame({
|
|
|
79293
79293
|
uploadRaw: a
|
|
79294
79294
|
});
|
|
79295
79295
|
try {
|
|
79296
|
-
|
|
79296
|
+
A && await D(H);
|
|
79297
|
+
const L = H.filter((W) => !W._alreadyUploaded), q = {
|
|
79297
79298
|
sessionId: B,
|
|
79298
|
-
// Include _uploadId so the backend can rename the eager-upload folder
|
|
79299
79299
|
...t != null && t._uploadId && t._uploadId !== B ? { _uploadId: t._uploadId } : {},
|
|
79300
|
-
files:
|
|
79300
|
+
files: L.map((W) => ({ ...W, encoding: W.encoding ?? "utf8" }))
|
|
79301
79301
|
};
|
|
79302
|
-
if (
|
|
79302
|
+
if (!I) {
|
|
79303
79303
|
e({});
|
|
79304
79304
|
return;
|
|
79305
79305
|
}
|
|
79306
|
-
const { backend:
|
|
79307
|
-
if (
|
|
79308
|
-
R.mutate(
|
|
79309
|
-
else if (
|
|
79306
|
+
const { backend: $, type: Q } = Pme(l);
|
|
79307
|
+
if (Q === "web")
|
|
79308
|
+
R.mutate(q);
|
|
79309
|
+
else if ($)
|
|
79310
79310
|
try {
|
|
79311
|
-
const
|
|
79312
|
-
await
|
|
79313
|
-
for (const
|
|
79314
|
-
await
|
|
79311
|
+
const W = await Rme($, B);
|
|
79312
|
+
await $.createDirectory(W);
|
|
79313
|
+
for (const U of H)
|
|
79314
|
+
await $.saveFile(U.filename, U.content, W);
|
|
79315
79315
|
m("success"), e({});
|
|
79316
|
-
} catch (
|
|
79317
|
-
console.error(`Error saving files with ${
|
|
79316
|
+
} catch (W) {
|
|
79317
|
+
console.error(`Error saving files with ${Q}:`, W), m("error");
|
|
79318
79318
|
}
|
|
79319
79319
|
} catch (L) {
|
|
79320
79320
|
console.error("Error uploading:", L), m("error");
|
|
@@ -79364,7 +79364,7 @@ var mw;
|
|
|
79364
79364
|
i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
|
|
79365
79365
|
})(mw || (mw = {}));
|
|
79366
79366
|
const v7 = Su("StatusBar"), y7 = Su("ImmersiveMode", {
|
|
79367
|
-
web: () => import("./web-
|
|
79367
|
+
web: () => import("./web-DQBLwBB7.js").then((i) => new i.ImmersiveModeWeb())
|
|
79368
79368
|
});
|
|
79369
79369
|
xi("EnterFullscreen", "session");
|
|
79370
79370
|
ai("EnterFullscreen", Tu, {});
|
|
@@ -79545,7 +79545,7 @@ function Ome(i) {
|
|
|
79545
79545
|
m = T == null ? [] : m.filter((k) => k !== T), A();
|
|
79546
79546
|
}, D = (T) => {
|
|
79547
79547
|
const { toastId: k, onOpen: _, updateId: B, children: H } = T.props, L = B == null;
|
|
79548
|
-
T.staleId && x.delete(T.staleId), x.set(k, T), m = [...m, T.props.toastId].filter((
|
|
79548
|
+
T.staleId && x.delete(T.staleId), x.set(k, T), m = [...m, T.props.toastId].filter((q) => q !== T.staleId), A(), d(gw(T, L ? "added" : "updated")), L && _i(_) && _(Ma(H) && H.props);
|
|
79549
79549
|
};
|
|
79550
79550
|
return { id: h, props: b, observe: (T) => (I.add(T), () => I.delete(T)), toggle: (T, k) => {
|
|
79551
79551
|
x.forEach((_) => {
|
|
@@ -79559,7 +79559,7 @@ function Ome(i) {
|
|
|
79559
79559
|
const X = ee ? ee !== h : h !== 1, ce = x.has(de) && he == null;
|
|
79560
79560
|
return X || ce;
|
|
79561
79561
|
})(k)) return;
|
|
79562
|
-
const { toastId: _, updateId: B, data: H, staleId: L, delay:
|
|
79562
|
+
const { toastId: _, updateId: B, data: H, staleId: L, delay: q } = k, $ = () => {
|
|
79563
79563
|
R(_);
|
|
79564
79564
|
}, Q = B == null;
|
|
79565
79565
|
Q && y++;
|
|
@@ -79575,9 +79575,9 @@ function Ome(i) {
|
|
|
79575
79575
|
let J = T;
|
|
79576
79576
|
Ma(T) && !Na(T.type) ? J = am(T, { closeToast: $, toastProps: W, data: H }) : _i(T) && (J = T({ closeToast: $, toastProps: W, data: H }));
|
|
79577
79577
|
const oe = { content: J, props: W, staleId: L };
|
|
79578
|
-
b.limit && b.limit > 0 && y > b.limit && Q ? v.push(oe) : au(
|
|
79578
|
+
b.limit && b.limit > 0 && y > b.limit && Q ? v.push(oe) : au(q) ? setTimeout(() => {
|
|
79579
79579
|
D(oe);
|
|
79580
|
-
},
|
|
79580
|
+
}, q) : D(oe);
|
|
79581
79581
|
}, setProps(T) {
|
|
79582
79582
|
b = T;
|
|
79583
79583
|
}, setToggle: (T, k) => {
|
|
@@ -79736,18 +79736,18 @@ const Bme = typeof window < "u" ? kg : Ye, jh = (i) => {
|
|
|
79736
79736
|
}, spinner: function() {
|
|
79737
79737
|
return Je.createElement("div", { className: "Toastify__spinner" });
|
|
79738
79738
|
} }, $me = (i) => {
|
|
79739
|
-
const { isRunning: e, preventExitTransition: t, toastRef: s, eventHandlers: r, playToast: n } = Mme(i), { closeButton: a, children: o, autoClose: l, onClick: u, type: h, hideProgressBar: c, closeToast: d, transition: f, position: y, className: v, style: m, bodyClassName: g, bodyStyle: b, progressClassName: x, progressStyle: I, updateId: A, role: R, progress: D, rtl: T, toastId: k, deleteToast: _, isIn: B, isLoading: H, closeOnClick: L, theme:
|
|
79739
|
+
const { isRunning: e, preventExitTransition: t, toastRef: s, eventHandlers: r, playToast: n } = Mme(i), { closeButton: a, children: o, autoClose: l, onClick: u, type: h, hideProgressBar: c, closeToast: d, transition: f, position: y, className: v, style: m, bodyClassName: g, bodyStyle: b, progressClassName: x, progressStyle: I, updateId: A, role: R, progress: D, rtl: T, toastId: k, deleteToast: _, isIn: B, isLoading: H, closeOnClick: L, theme: q } = i, $ = ea("Toastify__toast", `Toastify__toast-theme--${q}`, `Toastify__toast--${h}`, { "Toastify__toast--rtl": T }, { "Toastify__toast--close-on-click": L }), Q = _i(v) ? v({ rtl: T, position: y, type: h, defaultClassName: $ }) : ea($, v), W = function(oe) {
|
|
79740
79740
|
let { theme: te, type: ee, isLoading: de, icon: he } = oe, X = null;
|
|
79741
79741
|
const ce = { theme: te, type: ee };
|
|
79742
79742
|
return he === !1 || (_i(he) ? X = he({ ...ce, isLoading: de }) : Ma(he) ? X = am(he, ce) : de ? X = Hf.spinner() : ((ke) => ke in Hf)(ee) && (X = Hf[ee](ce))), X;
|
|
79743
|
-
}(i), U = !!D || !l, re = { closeToast: d, type: h, theme:
|
|
79743
|
+
}(i), U = !!D || !l, re = { closeToast: d, type: h, theme: q };
|
|
79744
79744
|
let J = null;
|
|
79745
79745
|
return a === !1 || (J = _i(a) ? a(re) : Ma(a) ? am(a, re) : function(oe) {
|
|
79746
79746
|
let { closeToast: te, theme: ee, ariaLabel: de = "close" } = oe;
|
|
79747
79747
|
return Je.createElement("button", { className: `Toastify__close-button Toastify__close-button--${ee}`, type: "button", onClick: (he) => {
|
|
79748
79748
|
he.stopPropagation(), te(he);
|
|
79749
79749
|
}, "aria-label": de }, Je.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Je.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
79750
|
-
}(re)), Je.createElement(f, { isIn: B, done: _, position: y, preventExitTransition: t, nodeRef: s, playToast: n }, Je.createElement("div", { id: k, onClick: u, "data-in": B, className: Q, ...r, style: m, ref: s }, Je.createElement("div", { ...B && { role: R }, className: _i(g) ? g({ type: h }) : ea("Toastify__toast-body", g), style: b }, W != null && Je.createElement("div", { className: ea("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !H }) }, W), Je.createElement("div", null, o)), J, Je.createElement(Nme, { ...A && !U ? { key: `pb-${A}` } : {}, rtl: T, theme:
|
|
79750
|
+
}(re)), Je.createElement(f, { isIn: B, done: _, position: y, preventExitTransition: t, nodeRef: s, playToast: n }, Je.createElement("div", { id: k, onClick: u, "data-in": B, className: Q, ...r, style: m, ref: s }, Je.createElement("div", { ...B && { role: R }, className: _i(g) ? g({ type: h }) : ea("Toastify__toast-body", g), style: b }, W != null && Je.createElement("div", { className: ea("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !H }) }, W), Je.createElement("div", null, o)), J, Je.createElement(Nme, { ...A && !U ? { key: `pb-${A}` } : {}, rtl: T, theme: q, delay: l, isRunning: e, isIn: B, closeToast: d, hide: c, type: h, style: I, className: x, controlledProgress: U, progress: D || 0 })));
|
|
79751
79751
|
}, ap = function(i, e) {
|
|
79752
79752
|
return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${i}-enter`, exit: `Toastify--animate Toastify__${i}-exit`, appendPosition: e };
|
|
79753
79753
|
}, Hme = np(ap("bounce", !0)), qCe = np(ap("slide", !0)), BCe = np(ap("zoom")), $Ce = np(ap("flip")), Qme = { position: "top-right", transition: Hme, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
@@ -79787,9 +79787,9 @@ const jme = ({
|
|
|
79787
79787
|
paramRegistry: i,
|
|
79788
79788
|
timelineRepresentation: e
|
|
79789
79789
|
}) => {
|
|
79790
|
-
const [t, s] = ze({}), [r, n] = ze([]), [a, o] = ze(""), [l, u] = ze("Copy URL"), [h, c] = ze(!1), [d, f] = ze(!1), [y, v] = ze([]), m = me(null), g = [...i].filter((L) => L.name !== "includeSubset" && L.name !== "excludeSubset").sort((L,
|
|
79790
|
+
const [t, s] = ze({}), [r, n] = ze([]), [a, o] = ze(""), [l, u] = ze("Copy URL"), [h, c] = ze(!1), [d, f] = ze(!1), [y, v] = ze([]), m = me(null), g = [...i].filter((L) => L.name !== "includeSubset" && L.name !== "excludeSubset").sort((L, q) => L.name.localeCompare(q.name));
|
|
79791
79791
|
Ye(() => {
|
|
79792
|
-
const L = new URLSearchParams(window.location.search),
|
|
79792
|
+
const L = new URLSearchParams(window.location.search), q = {}, $ = [];
|
|
79793
79793
|
let Q = [], W = !1;
|
|
79794
79794
|
const U = L.get("includeSubset"), re = L.get("excludeSubset"), J = L.get("_b");
|
|
79795
79795
|
if (J)
|
|
@@ -79810,13 +79810,13 @@ const jme = ({
|
|
|
79810
79810
|
try {
|
|
79811
79811
|
const ee = atob(oe), de = JSON.parse(ee), he = i.map((X) => X.name);
|
|
79812
79812
|
Object.entries(de).forEach(([X, ce]) => {
|
|
79813
|
-
he.includes(X) ?
|
|
79813
|
+
he.includes(X) ? q[X] = String(ce) : X !== "_b" && $.push({
|
|
79814
79814
|
name: X,
|
|
79815
79815
|
value: typeof ce == "object" ? JSON.stringify(ce) : String(ce),
|
|
79816
79816
|
type: typeof ce == "boolean" ? "boolean" : typeof ce == "number" ? "number" : Array.isArray(ce) ? "array" : typeof ce == "object" ? "json" : "string"
|
|
79817
79817
|
});
|
|
79818
79818
|
}), i.forEach((X) => {
|
|
79819
|
-
X.name in
|
|
79819
|
+
X.name in q || (X.type === "boolean" && X.defaultValue !== void 0 ? q[X.name] = String(X.defaultValue) : q[X.name] = "");
|
|
79820
79820
|
}), c(!0);
|
|
79821
79821
|
} catch {
|
|
79822
79822
|
te(L);
|
|
@@ -79826,7 +79826,7 @@ const jme = ({
|
|
|
79826
79826
|
function te(ee) {
|
|
79827
79827
|
i.forEach((he) => {
|
|
79828
79828
|
const X = ee.get(he.name);
|
|
79829
|
-
X !== null ?
|
|
79829
|
+
X !== null ? q[he.name] = X : he.type === "boolean" && he.defaultValue !== void 0 && (q[he.name] = String(he.defaultValue));
|
|
79830
79830
|
});
|
|
79831
79831
|
const de = i.map((he) => he.name);
|
|
79832
79832
|
ee.forEach((he, X) => {
|
|
@@ -79850,10 +79850,10 @@ const jme = ({
|
|
|
79850
79850
|
}
|
|
79851
79851
|
});
|
|
79852
79852
|
}
|
|
79853
|
-
s(
|
|
79853
|
+
s(q), n($);
|
|
79854
79854
|
}, [i]), Ye(() => {
|
|
79855
79855
|
const L = window.location.pathname.replace(/\/settings$/, "");
|
|
79856
|
-
let
|
|
79856
|
+
let q = "";
|
|
79857
79857
|
const $ = { ...t };
|
|
79858
79858
|
if (y.length > 0 ? d ? ($.excludeSubset = y.sort().join(","), delete $.includeSubset) : y.length != e.length && ($.includeSubset = y.sort().join(","), delete $.excludeSubset) : (delete $.includeSubset, delete $.excludeSubset), r.forEach((W) => {
|
|
79859
79859
|
W.name && W.value !== "" && W.name !== "includeSubset" && W.name !== "excludeSubset" && ($[W.name] = W.value);
|
|
@@ -79885,7 +79885,7 @@ const jme = ({
|
|
|
79885
79885
|
}
|
|
79886
79886
|
});
|
|
79887
79887
|
const U = JSON.stringify(W);
|
|
79888
|
-
|
|
79888
|
+
q = `?_b=${btoa(U)}`;
|
|
79889
79889
|
} else {
|
|
79890
79890
|
const W = new URLSearchParams();
|
|
79891
79891
|
Object.entries($).forEach(([U, re]) => {
|
|
@@ -79895,27 +79895,27 @@ const jme = ({
|
|
|
79895
79895
|
return;
|
|
79896
79896
|
W.set(U, String(re));
|
|
79897
79897
|
}
|
|
79898
|
-
}),
|
|
79898
|
+
}), q = W.toString() ? `?${W.toString()}` : "";
|
|
79899
79899
|
}
|
|
79900
|
-
const Q = `${window.location.origin}${L}${
|
|
79900
|
+
const Q = `${window.location.origin}${L}${q}`;
|
|
79901
79901
|
o(Q);
|
|
79902
79902
|
}, [t, r, h, i, y, d]);
|
|
79903
|
-
const b = (L,
|
|
79903
|
+
const b = (L, q) => {
|
|
79904
79904
|
s(($) => ({
|
|
79905
79905
|
...$,
|
|
79906
|
-
[L]:
|
|
79906
|
+
[L]: q
|
|
79907
79907
|
}));
|
|
79908
|
-
}, x = (L,
|
|
79908
|
+
}, x = (L, q, $) => {
|
|
79909
79909
|
n((Q) => {
|
|
79910
79910
|
const W = [...Q];
|
|
79911
79911
|
return W[L] = {
|
|
79912
79912
|
...W[L],
|
|
79913
|
-
[
|
|
79913
|
+
[q]: $
|
|
79914
79914
|
}, W;
|
|
79915
79915
|
});
|
|
79916
79916
|
}, I = (L) => {
|
|
79917
|
-
const
|
|
79918
|
-
v(($) => $.includes(
|
|
79917
|
+
const q = `${L + 1}`;
|
|
79918
|
+
v(($) => $.includes(q) ? $.filter((W) => W !== q) : [...$, q]);
|
|
79919
79919
|
}, A = () => {
|
|
79920
79920
|
f((L) => !L);
|
|
79921
79921
|
}, R = () => {
|
|
@@ -79923,23 +79923,23 @@ const jme = ({
|
|
|
79923
79923
|
}, D = r.filter(
|
|
79924
79924
|
(L) => L.name !== "includeSubset" && L.name !== "excludeSubset"
|
|
79925
79925
|
), T = (L) => {
|
|
79926
|
-
n((
|
|
79926
|
+
n((q) => q.filter(($, Q) => Q !== L));
|
|
79927
79927
|
}, k = () => {
|
|
79928
79928
|
m.current && (m.current.select(), document.execCommand("copy"), u("Copied!"), setTimeout(() => u("Copy URL"), 2e3));
|
|
79929
79929
|
}, _ = () => {
|
|
79930
79930
|
c(!h);
|
|
79931
79931
|
}, B = (L) => {
|
|
79932
|
-
const { name:
|
|
79933
|
-
if (
|
|
79932
|
+
const { name: q, type: $, defaultValue: Q } = L;
|
|
79933
|
+
if (q === "includeSubset" || q === "excludeSubset")
|
|
79934
79934
|
return null;
|
|
79935
|
-
const W = t[
|
|
79935
|
+
const W = t[q] || "";
|
|
79936
79936
|
switch ($) {
|
|
79937
79937
|
case "boolean":
|
|
79938
79938
|
return /* @__PURE__ */ V.jsxs(V.Fragment, { children: [
|
|
79939
79939
|
/* @__PURE__ */ V.jsx(
|
|
79940
79940
|
"button",
|
|
79941
79941
|
{
|
|
79942
|
-
onClick: () => b(
|
|
79942
|
+
onClick: () => b(q, W === "true" ? "false" : "true"),
|
|
79943
79943
|
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${W === "true" ? "bg-blue-600" : "bg-gray-200"}`,
|
|
79944
79944
|
role: "switch",
|
|
79945
79945
|
"aria-checked": W === "true",
|
|
@@ -79960,7 +79960,7 @@ const jme = ({
|
|
|
79960
79960
|
type: "number",
|
|
79961
79961
|
className: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79962
79962
|
value: W,
|
|
79963
|
-
onChange: (U) => b(
|
|
79963
|
+
onChange: (U) => b(q, U.target.value),
|
|
79964
79964
|
placeholder: Q !== void 0 ? `Default: ${Q}` : "Enter number..."
|
|
79965
79965
|
}
|
|
79966
79966
|
);
|
|
@@ -79971,7 +79971,7 @@ const jme = ({
|
|
|
79971
79971
|
{
|
|
79972
79972
|
className: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79973
79973
|
value: W,
|
|
79974
|
-
onChange: (U) => b(
|
|
79974
|
+
onChange: (U) => b(q, U.target.value),
|
|
79975
79975
|
placeholder: $ === "array" ? "Enter comma-separated values or JSON array" : "Enter JSON object",
|
|
79976
79976
|
rows: 3
|
|
79977
79977
|
}
|
|
@@ -79984,19 +79984,19 @@ const jme = ({
|
|
|
79984
79984
|
type: "text",
|
|
79985
79985
|
className: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79986
79986
|
value: W,
|
|
79987
|
-
onChange: (U) => b(
|
|
79987
|
+
onChange: (U) => b(q, U.target.value),
|
|
79988
79988
|
placeholder: Q !== void 0 && Q !== "" ? `Default: ${Q}` : "Enter value..."
|
|
79989
79989
|
}
|
|
79990
79990
|
);
|
|
79991
79991
|
}
|
|
79992
|
-
}, H = (L,
|
|
79992
|
+
}, H = (L, q) => L.name === "includeSubset" || L.name === "excludeSubset" ? null : /* @__PURE__ */ V.jsxs("div", { className: "grid grid-cols-12 gap-2 items-center mb-2", children: [
|
|
79993
79993
|
/* @__PURE__ */ V.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ V.jsx(
|
|
79994
79994
|
"input",
|
|
79995
79995
|
{
|
|
79996
79996
|
type: "text",
|
|
79997
79997
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79998
79998
|
value: L.name,
|
|
79999
|
-
onChange: ($) => x(
|
|
79999
|
+
onChange: ($) => x(q, "name", $.target.value),
|
|
80000
80000
|
placeholder: "Parameter name"
|
|
80001
80001
|
}
|
|
80002
80002
|
) }),
|
|
@@ -80005,7 +80005,7 @@ const jme = ({
|
|
|
80005
80005
|
{
|
|
80006
80006
|
className: "block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md",
|
|
80007
80007
|
value: L.type,
|
|
80008
|
-
onChange: ($) => x(
|
|
80008
|
+
onChange: ($) => x(q, "type", $.target.value),
|
|
80009
80009
|
children: [
|
|
80010
80010
|
/* @__PURE__ */ V.jsx("option", { value: "string", children: "String" }),
|
|
80011
80011
|
/* @__PURE__ */ V.jsx("option", { value: "number", children: "Number" }),
|
|
@@ -80018,7 +80018,7 @@ const jme = ({
|
|
|
80018
80018
|
/* @__PURE__ */ V.jsx("div", { className: "col-span-6", children: L.type === "boolean" ? /* @__PURE__ */ V.jsx(V.Fragment, { children: /* @__PURE__ */ V.jsx(
|
|
80019
80019
|
"button",
|
|
80020
80020
|
{
|
|
80021
|
-
onClick: () => x(
|
|
80021
|
+
onClick: () => x(q, "value", L.value === "true" ? "false" : "true"),
|
|
80022
80022
|
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${L.value === "true" ? "bg-blue-600" : "bg-gray-200"}`,
|
|
80023
80023
|
role: "switch",
|
|
80024
80024
|
"aria-checked": L.value === "true",
|
|
@@ -80034,7 +80034,7 @@ const jme = ({
|
|
|
80034
80034
|
{
|
|
80035
80035
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
80036
80036
|
value: L.value,
|
|
80037
|
-
onChange: ($) => x(
|
|
80037
|
+
onChange: ($) => x(q, "value", $.target.value),
|
|
80038
80038
|
placeholder: L.type === "array" ? "Enter JSON array [1,2,3]" : 'Enter JSON object {"key":"value"}',
|
|
80039
80039
|
rows: 1
|
|
80040
80040
|
}
|
|
@@ -80044,7 +80044,7 @@ const jme = ({
|
|
|
80044
80044
|
type: "number",
|
|
80045
80045
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
80046
80046
|
value: L.value,
|
|
80047
|
-
onChange: ($) => x(
|
|
80047
|
+
onChange: ($) => x(q, "value", $.target.value),
|
|
80048
80048
|
placeholder: "Enter number..."
|
|
80049
80049
|
}
|
|
80050
80050
|
) : /* @__PURE__ */ V.jsx(
|
|
@@ -80053,14 +80053,14 @@ const jme = ({
|
|
|
80053
80053
|
type: "text",
|
|
80054
80054
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
80055
80055
|
value: L.value,
|
|
80056
|
-
onChange: ($) => x(
|
|
80056
|
+
onChange: ($) => x(q, "value", $.target.value),
|
|
80057
80057
|
placeholder: "Enter value..."
|
|
80058
80058
|
}
|
|
80059
80059
|
) }),
|
|
80060
80060
|
/* @__PURE__ */ V.jsx("div", { className: "col-span-1", children: /* @__PURE__ */ V.jsx(
|
|
80061
80061
|
"button",
|
|
80062
80062
|
{
|
|
80063
|
-
onClick: () => T(
|
|
80063
|
+
onClick: () => T(q),
|
|
80064
80064
|
className: "inline-flex cursor-pointer items-center justify-center p-2 border border-transparent rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",
|
|
80065
80065
|
"aria-label": "Remove parameter",
|
|
80066
80066
|
children: /* @__PURE__ */ V.jsx(
|
|
@@ -80150,7 +80150,7 @@ const jme = ({
|
|
|
80150
80150
|
/* @__PURE__ */ V.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ V.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "VALUE" }) }),
|
|
80151
80151
|
/* @__PURE__ */ V.jsx("div", { className: "col-span-1" })
|
|
80152
80152
|
] }),
|
|
80153
|
-
D.map((L,
|
|
80153
|
+
D.map((L, q) => /* @__PURE__ */ V.jsx("div", { children: H(L, q) }, q))
|
|
80154
80154
|
] }) })
|
|
80155
80155
|
] }),
|
|
80156
80156
|
e.length > 0 && /* @__PURE__ */ V.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
|
|
@@ -80181,33 +80181,33 @@ const jme = ({
|
|
|
80181
80181
|
/* @__PURE__ */ V.jsxs("div", { className: "px-4 py-5 sm:px-6", children: [
|
|
80182
80182
|
/* @__PURE__ */ V.jsx("p", { className: "mb-4 text-sm font-medium text-gray-500", children: d ? "Check trials you want to EXCLUDE from the experiment" : "Check trials you want to INCLUDE in the experiment" }),
|
|
80183
80183
|
/* @__PURE__ */ V.jsx("div", { className: "border border-gray-200 rounded-md overflow-hidden", children: /* @__PURE__ */ V.jsx("ul", { className: "divide-y divide-gray-200", children: e.map(
|
|
80184
|
-
(L,
|
|
80184
|
+
(L, q) => /* @__PURE__ */ V.jsx(
|
|
80185
80185
|
"li",
|
|
80186
80186
|
{
|
|
80187
80187
|
className: "cursor-pointer px-4 py-3 hover:bg-gray-50",
|
|
80188
80188
|
onClick: ($) => {
|
|
80189
|
-
$.target.type !== "checkbox" && !$.target.closest("label") && I(
|
|
80189
|
+
$.target.type !== "checkbox" && !$.target.closest("label") && I(q);
|
|
80190
80190
|
},
|
|
80191
80191
|
children: /* @__PURE__ */ V.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ V.jsxs("div", { className: "flex items-center flex-grow", children: [
|
|
80192
80192
|
/* @__PURE__ */ V.jsx(
|
|
80193
80193
|
"input",
|
|
80194
80194
|
{
|
|
80195
|
-
id: `trial-${
|
|
80195
|
+
id: `trial-${q}`,
|
|
80196
80196
|
type: "checkbox",
|
|
80197
80197
|
className: "h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded cursor-pointer",
|
|
80198
|
-
checked: y.includes(`${
|
|
80199
|
-
onChange: () => I(
|
|
80198
|
+
checked: y.includes(`${q + 1}`),
|
|
80199
|
+
onChange: () => I(q)
|
|
80200
80200
|
}
|
|
80201
80201
|
),
|
|
80202
80202
|
/* @__PURE__ */ V.jsxs(
|
|
80203
80203
|
"label",
|
|
80204
80204
|
{
|
|
80205
|
-
htmlFor: `trial-${
|
|
80205
|
+
htmlFor: `trial-${q}`,
|
|
80206
80206
|
className: "ml-3 flex-grow flex items-center cursor-pointer",
|
|
80207
80207
|
children: [
|
|
80208
80208
|
/* @__PURE__ */ V.jsxs("div", { className: "w-8 text-center text-xs text-gray-500 font-medium", children: [
|
|
80209
80209
|
"#",
|
|
80210
|
-
|
|
80210
|
+
q + 1
|
|
80211
80211
|
] }),
|
|
80212
80212
|
/* @__PURE__ */ V.jsx("div", { className: "flex-grow", children: L.name ? /* @__PURE__ */ V.jsx("span", { className: "font-medium text-gray-900", children: L.name }) : /* @__PURE__ */ V.jsx("span", { className: "font-medium text-gray-500", children: L.type }) }),
|
|
80213
80213
|
/* @__PURE__ */ V.jsx("div", { className: "ml-2", children: /* @__PURE__ */ V.jsx("span", { className: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800", children: L.type }) })
|
|
@@ -80216,7 +80216,7 @@ const jme = ({
|
|
|
80216
80216
|
)
|
|
80217
80217
|
] }) })
|
|
80218
80218
|
},
|
|
80219
|
-
|
|
80219
|
+
q
|
|
80220
80220
|
)
|
|
80221
80221
|
) }) })
|
|
80222
80222
|
] })
|
|
@@ -80405,8 +80405,8 @@ function Jme({
|
|
|
80405
80405
|
if (Kme(L))
|
|
80406
80406
|
try {
|
|
80407
80407
|
return L(v.current, m.current);
|
|
80408
|
-
} catch (
|
|
80409
|
-
return console.error("Error executing dynamic canvas slide generator:",
|
|
80408
|
+
} catch (q) {
|
|
80409
|
+
return console.error("Error executing dynamic canvas slide generator:", q), null;
|
|
80410
80410
|
}
|
|
80411
80411
|
else if (Zme(L))
|
|
80412
80412
|
return L;
|
|
@@ -80421,25 +80421,25 @@ function Jme({
|
|
|
80421
80421
|
if (!H) return {};
|
|
80422
80422
|
const L = H.getContext("2d");
|
|
80423
80423
|
if (!L) return {};
|
|
80424
|
-
const
|
|
80424
|
+
const q = window.devicePixelRatio || 1, $ = H.width / q, Q = H.height / q;
|
|
80425
80425
|
return { ctx: L, canvasWidth: $, canvasHeight: Q };
|
|
80426
80426
|
}, []), R = st(() => {
|
|
80427
|
-
const { ctx: H, canvasWidth: L, canvasHeight:
|
|
80428
|
-
H && (H.fillStyle = "white", H.fillRect(0, 0, L,
|
|
80427
|
+
const { ctx: H, canvasWidth: L, canvasHeight: q } = A();
|
|
80428
|
+
H && (H.fillStyle = "white", H.fillRect(0, 0, L, q), d.current = !1);
|
|
80429
80429
|
}, [A]), D = st(
|
|
80430
80430
|
(H) => {
|
|
80431
|
-
const { ctx: L, canvasWidth:
|
|
80431
|
+
const { ctx: L, canvasWidth: q, canvasHeight: $ } = A();
|
|
80432
80432
|
if (L) {
|
|
80433
|
-
if (L.fillStyle = "white", L.fillRect(0, 0,
|
|
80433
|
+
if (L.fillStyle = "white", L.fillRect(0, 0, q, $), a)
|
|
80434
80434
|
try {
|
|
80435
|
-
a(L,
|
|
80435
|
+
a(L, q, $);
|
|
80436
80436
|
} catch (Q) {
|
|
80437
80437
|
console.error("Error during styleCanvas function:", Q);
|
|
80438
80438
|
}
|
|
80439
80439
|
else
|
|
80440
80440
|
L.fillStyle = "black";
|
|
80441
80441
|
try {
|
|
80442
|
-
H.draw(L,
|
|
80442
|
+
H.draw(L, q, $);
|
|
80443
80443
|
} catch (Q) {
|
|
80444
80444
|
console.error("Error during slide draw function:", Q);
|
|
80445
80445
|
}
|
|
@@ -80455,7 +80455,7 @@ function Jme({
|
|
|
80455
80455
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
80456
80456
|
return;
|
|
80457
80457
|
}
|
|
80458
|
-
const
|
|
80458
|
+
const q = l[L], $ = I(q);
|
|
80459
80459
|
if (!$) {
|
|
80460
80460
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
80461
80461
|
return;
|
|
@@ -80471,8 +80471,8 @@ function Jme({
|
|
|
80471
80471
|
h.current,
|
|
80472
80472
|
() => m.current,
|
|
80473
80473
|
() => v.current,
|
|
80474
|
-
(
|
|
80475
|
-
m.current =
|
|
80474
|
+
(q) => {
|
|
80475
|
+
m.current = q;
|
|
80476
80476
|
}
|
|
80477
80477
|
);
|
|
80478
80478
|
if (h.current = H, H >= l.length) {
|
|
@@ -80486,20 +80486,20 @@ function Jme({
|
|
|
80486
80486
|
const L = I(l[H]);
|
|
80487
80487
|
if (L) {
|
|
80488
80488
|
D(L);
|
|
80489
|
-
const
|
|
80490
|
-
(
|
|
80489
|
+
const q = L.displayDuration ?? 1 / 0, $ = L.responseTimeLimit ?? 1 / 0;
|
|
80490
|
+
(q !== 1 / 0 || $ !== 1 / 0) && (g.current = requestAnimationFrame(k));
|
|
80491
80491
|
} else
|
|
80492
80492
|
console.error("Failed to resolve slide content during control flow:", l[H]), h.current++, _();
|
|
80493
80493
|
}, [l, u, I, D, k, i]);
|
|
80494
80494
|
T = st(() => {
|
|
80495
80495
|
const H = f.current, L = Ks();
|
|
80496
80496
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
80497
|
-
const
|
|
80498
|
-
if (
|
|
80497
|
+
const q = h.current;
|
|
80498
|
+
if (q >= l.length || l[q].type !== "ExecuteContent") {
|
|
80499
80499
|
h.current++, _();
|
|
80500
80500
|
return;
|
|
80501
80501
|
}
|
|
80502
|
-
const $ = l[
|
|
80502
|
+
const $ = l[q], Q = I($);
|
|
80503
80503
|
if (Q && !Q.ignoreData) {
|
|
80504
80504
|
let W = {
|
|
80505
80505
|
index: h.current,
|
|
@@ -80516,9 +80516,9 @@ function Jme({
|
|
|
80516
80516
|
}, [l, I, _]);
|
|
80517
80517
|
const B = st(
|
|
80518
80518
|
(H) => {
|
|
80519
|
-
const L = Ks(),
|
|
80520
|
-
if (
|
|
80521
|
-
const $ = l[
|
|
80519
|
+
const L = Ks(), q = h.current;
|
|
80520
|
+
if (q >= l.length || !d.current) return;
|
|
80521
|
+
const $ = l[q];
|
|
80522
80522
|
if ($.type !== "ExecuteContent") return;
|
|
80523
80523
|
const Q = I($);
|
|
80524
80524
|
if (!Q) return;
|
|
@@ -80537,7 +80537,7 @@ function Jme({
|
|
|
80537
80537
|
return Ye(() => {
|
|
80538
80538
|
const H = y.current;
|
|
80539
80539
|
if (!H) return;
|
|
80540
|
-
const L = Wl() ? window.screen.width : window.innerWidth,
|
|
80540
|
+
const L = Wl() ? window.screen.width : window.innerWidth, q = Wl() ? window.screen.height : window.innerHeight;
|
|
80541
80541
|
let $, Q;
|
|
80542
80542
|
const W = (X, ce) => {
|
|
80543
80543
|
if (typeof X == "number")
|
|
@@ -80549,7 +80549,7 @@ function Jme({
|
|
|
80549
80549
|
}
|
|
80550
80550
|
return null;
|
|
80551
80551
|
};
|
|
80552
|
-
let U = W(s, L), re = W(r,
|
|
80552
|
+
let U = W(s, L), re = W(r, q);
|
|
80553
80553
|
const J = typeof s == "string" && /^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(s), oe = typeof r == "string" && /^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(r);
|
|
80554
80554
|
if (U !== null && re !== null)
|
|
80555
80555
|
$ = U, Q = re;
|
|
@@ -80558,12 +80558,12 @@ function Jme({
|
|
|
80558
80558
|
else if (re !== null && U === null && !J)
|
|
80559
80559
|
Q = re, $ = re;
|
|
80560
80560
|
else if (U === null && re === null && !J && !oe) {
|
|
80561
|
-
const X = Math.min(L,
|
|
80561
|
+
const X = Math.min(L, q);
|
|
80562
80562
|
$ = X, Q = X;
|
|
80563
80563
|
} else {
|
|
80564
80564
|
let X = U, ce = re;
|
|
80565
|
-
if (oe && X === null && (X = ce ??
|
|
80566
|
-
const ke = Math.min(L,
|
|
80565
|
+
if (oe && X === null && (X = ce ?? q), J && ce === null && (ce = X ?? L), X === null && ce === null) {
|
|
80566
|
+
const ke = Math.min(L, q);
|
|
80567
80567
|
X = ke, ce = ke;
|
|
80568
80568
|
} else X === null ? X = ce : ce === null && (ce = X);
|
|
80569
80569
|
$ = X, Q = ce ?? 0;
|
|
@@ -80587,16 +80587,16 @@ function Jme({
|
|
|
80587
80587
|
try {
|
|
80588
80588
|
const X = s.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);
|
|
80589
80589
|
if (X) {
|
|
80590
|
-
$ =
|
|
80590
|
+
$ = q / parseFloat(X[2]) * parseFloat(X[1]);
|
|
80591
80591
|
const ce = r.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);
|
|
80592
80592
|
ce ? Q = $ / parseFloat(ce[1]) * parseFloat(ce[2]) : Q = $;
|
|
80593
80593
|
} else {
|
|
80594
|
-
const ce = Math.min(L,
|
|
80594
|
+
const ce = Math.min(L, q);
|
|
80595
80595
|
$ = ce, Q = ce;
|
|
80596
80596
|
}
|
|
80597
80597
|
} catch (X) {
|
|
80598
80598
|
console.error("Error parsing ratios:", X);
|
|
80599
|
-
const ce = Math.min(L,
|
|
80599
|
+
const ce = Math.min(L, q);
|
|
80600
80600
|
$ = ce, Q = ce;
|
|
80601
80601
|
}
|
|
80602
80602
|
}
|
|
@@ -81487,13 +81487,13 @@ function Gc(i = Yt.visualDuration, e = Yt.bounce) {
|
|
|
81487
81487
|
I = (B) => Math.exp(-g * B) * (g * _ * B - y);
|
|
81488
81488
|
} else {
|
|
81489
81489
|
const _ = g * Math.sqrt(v * v - 1);
|
|
81490
|
-
x = (
|
|
81491
|
-
const $ = Math.exp(-v * g *
|
|
81490
|
+
x = (q) => {
|
|
81491
|
+
const $ = Math.exp(-v * g * q), Q = Math.min(_ * q, 300);
|
|
81492
81492
|
return a - $ * ((y + v * g * m) * Math.sinh(Q) + _ * m * Math.cosh(Q)) / _;
|
|
81493
81493
|
};
|
|
81494
81494
|
const B = (y + v * g * m) / _, H = v * g * B - m * _, L = v * g * m - B * _;
|
|
81495
|
-
I = (
|
|
81496
|
-
const $ = Math.exp(-v * g *
|
|
81495
|
+
I = (q) => {
|
|
81496
|
+
const $ = Math.exp(-v * g * q), Q = Math.min(_ * q, 300);
|
|
81497
81497
|
return $ * (H * Math.sinh(Q) + L * Math.cosh(Q));
|
|
81498
81498
|
};
|
|
81499
81499
|
}
|
|
@@ -81502,7 +81502,7 @@ function Gc(i = Yt.visualDuration, e = Yt.bounce) {
|
|
|
81502
81502
|
velocity: (_) => /* @__PURE__ */ bi(I(_)),
|
|
81503
81503
|
next: (_) => {
|
|
81504
81504
|
if (!f && v < 1) {
|
|
81505
|
-
const H = Math.exp(-v * g * _), L = Math.sin(A * _),
|
|
81505
|
+
const H = Math.exp(-v * g * _), L = Math.sin(A * _), q = Math.cos(A * _), $ = a - H * (R * L + m * q), Q = /* @__PURE__ */ bi(H * (D * L + T * q));
|
|
81506
81506
|
return o.done = Math.abs(Q) <= s && Math.abs(a - $) <= r, o.value = o.done ? a : $, o;
|
|
81507
81507
|
}
|
|
81508
81508
|
const B = x(_);
|
|
@@ -83939,7 +83939,7 @@ function J0e(i) {
|
|
|
83939
83939
|
const B = Array.isArray(I) ? I : [I];
|
|
83940
83940
|
let H = B.reduce(n(b), {});
|
|
83941
83941
|
R === !1 && (H = {});
|
|
83942
|
-
const { prevResolvedValues: L = {} } = x,
|
|
83942
|
+
const { prevResolvedValues: L = {} } = x, q = {
|
|
83943
83943
|
...L,
|
|
83944
83944
|
...H
|
|
83945
83945
|
}, $ = (U) => {
|
|
@@ -83947,7 +83947,7 @@ function J0e(i) {
|
|
|
83947
83947
|
const re = i.getValue(U);
|
|
83948
83948
|
re && (re.liveStyle = !1);
|
|
83949
83949
|
};
|
|
83950
|
-
for (const U in
|
|
83950
|
+
for (const U in q) {
|
|
83951
83951
|
const re = H[U], J = L[U];
|
|
83952
83952
|
if (y.hasOwnProperty(U))
|
|
83953
83953
|
continue;
|
|
@@ -86271,28 +86271,28 @@ const dT = Cr({
|
|
|
86271
86271
|
Ye(() => {
|
|
86272
86272
|
if (I && !A.current) {
|
|
86273
86273
|
D(!0);
|
|
86274
|
-
const
|
|
86275
|
-
return () => clearTimeout(
|
|
86274
|
+
const q = setTimeout(() => D(!1), 300);
|
|
86275
|
+
return () => clearTimeout(q);
|
|
86276
86276
|
}
|
|
86277
86277
|
A.current = I;
|
|
86278
86278
|
}, [I]);
|
|
86279
86279
|
const T = st(
|
|
86280
|
-
(
|
|
86281
|
-
g(($) => ({ ...$, [y]:
|
|
86280
|
+
(q) => {
|
|
86281
|
+
g(($) => ({ ...$, [y]: q }));
|
|
86282
86282
|
},
|
|
86283
86283
|
[y]
|
|
86284
86284
|
), k = st(
|
|
86285
|
-
(
|
|
86286
|
-
x.current[y] = { ...x.current[y], ...
|
|
86285
|
+
(q) => {
|
|
86286
|
+
x.current[y] = { ...x.current[y], ...q };
|
|
86287
86287
|
},
|
|
86288
86288
|
[y]
|
|
86289
86289
|
), _ = st(() => {
|
|
86290
|
-
y === e.length - 1 ? i({ slides: x.current }) : v((
|
|
86290
|
+
y === e.length - 1 ? i({ slides: x.current }) : v((q) => q + 1);
|
|
86291
86291
|
}, [y, e.length, i]), B = st(() => {
|
|
86292
86292
|
I && _();
|
|
86293
86293
|
}, [I, _]), H = st(
|
|
86294
|
-
(
|
|
86295
|
-
b.current && clearTimeout(b.current), b.current = setTimeout(() => _(),
|
|
86294
|
+
(q = 0) => {
|
|
86295
|
+
b.current && clearTimeout(b.current), b.current = setTimeout(() => _(), q);
|
|
86296
86296
|
},
|
|
86297
86297
|
[_]
|
|
86298
86298
|
);
|
|
@@ -86300,14 +86300,14 @@ const dT = Cr({
|
|
|
86300
86300
|
b.current && clearTimeout(b.current);
|
|
86301
86301
|
}, []);
|
|
86302
86302
|
const L = st(() => {
|
|
86303
|
-
y > 0 && v((
|
|
86303
|
+
y > 0 && v((q) => q - 1);
|
|
86304
86304
|
}, [y]);
|
|
86305
86305
|
return Ye(() => {
|
|
86306
86306
|
if (a === !1 && o === !1) return;
|
|
86307
|
-
const
|
|
86307
|
+
const q = ($) => {
|
|
86308
86308
|
a && $.key === a && ($.preventDefault(), B()), o && $.key === o && ($.preventDefault(), L());
|
|
86309
86309
|
};
|
|
86310
|
-
return window.addEventListener("keydown",
|
|
86310
|
+
return window.addEventListener("keydown", q), () => window.removeEventListener("keydown", q);
|
|
86311
86311
|
}, [a, o, B, L]), /* @__PURE__ */ V.jsx(J1e, { children: /* @__PURE__ */ V.jsxs(
|
|
86312
86312
|
"div",
|
|
86313
86313
|
{
|
|
@@ -86354,14 +86354,14 @@ const dT = Cr({
|
|
|
86354
86354
|
onClick: L,
|
|
86355
86355
|
className: d,
|
|
86356
86356
|
tabIndex: -1,
|
|
86357
|
-
onKeyDown: (
|
|
86358
|
-
(
|
|
86357
|
+
onKeyDown: (q) => {
|
|
86358
|
+
(q.key === " " || q.key === "Enter") && q.preventDefault();
|
|
86359
86359
|
},
|
|
86360
86360
|
style: { visibility: y > 0 ? "visible" : "hidden" },
|
|
86361
86361
|
children: "←"
|
|
86362
86362
|
}
|
|
86363
86363
|
) }),
|
|
86364
|
-
/* @__PURE__ */ V.jsx("div", { style: { display: "flex", gap: 6 }, children: e.map((
|
|
86364
|
+
/* @__PURE__ */ V.jsx("div", { style: { display: "flex", gap: 6 }, children: e.map((q, $) => /* @__PURE__ */ V.jsx(
|
|
86365
86365
|
"div",
|
|
86366
86366
|
{
|
|
86367
86367
|
style: {
|
|
@@ -86379,8 +86379,8 @@ const dT = Cr({
|
|
|
86379
86379
|
{
|
|
86380
86380
|
onClick: B,
|
|
86381
86381
|
tabIndex: -1,
|
|
86382
|
-
onKeyDown: (
|
|
86383
|
-
(
|
|
86382
|
+
onKeyDown: (q) => {
|
|
86383
|
+
(q.key === " " || q.key === "Enter") && q.preventDefault();
|
|
86384
86384
|
},
|
|
86385
86385
|
animate: { scale: R ? 1.2 : 1 },
|
|
86386
86386
|
transition: { type: "spring", stiffness: 500, damping: 15 },
|
|
@@ -86652,7 +86652,7 @@ const aCe = 10, Bx = 0.1, oCe = (i, e, t, s) => {
|
|
|
86652
86652
|
fixationHeight: B,
|
|
86653
86653
|
fixationColor: H,
|
|
86654
86654
|
fixationThickness: L,
|
|
86655
|
-
showBorder:
|
|
86655
|
+
showBorder: q,
|
|
86656
86656
|
borderWidth: $,
|
|
86657
86657
|
borderColor: Q,
|
|
86658
86658
|
active: W = !0,
|
|
@@ -86718,9 +86718,9 @@ const aCe = 10, Bx = 0.1, oCe = (i, e, t, s) => {
|
|
|
86718
86718
|
[k, H, L, _, B]
|
|
86719
86719
|
), Xt = st(
|
|
86720
86720
|
(Ae) => {
|
|
86721
|
-
|
|
86721
|
+
q && Vt.drawBorder(Ae, Q, $);
|
|
86722
86722
|
},
|
|
86723
|
-
[
|
|
86723
|
+
[q, Q, $, Vt]
|
|
86724
86724
|
), wt = st(
|
|
86725
86725
|
(Ae) => {
|
|
86726
86726
|
const et = oe.current, be = et == null ? void 0 : et.getContext("2d");
|
|
@@ -86841,7 +86841,7 @@ const aCe = 10, Bx = 0.1, oCe = (i, e, t, s) => {
|
|
|
86841
86841
|
noiseMovement: B,
|
|
86842
86842
|
showFixation: H,
|
|
86843
86843
|
fixationTime: L,
|
|
86844
|
-
fixationWidth:
|
|
86844
|
+
fixationWidth: q,
|
|
86845
86845
|
fixationHeight: $,
|
|
86846
86846
|
fixationColor: Q,
|
|
86847
86847
|
fixationThickness: W,
|
|
@@ -86944,7 +86944,7 @@ const aCe = 10, Bx = 0.1, oCe = (i, e, t, s) => {
|
|
|
86944
86944
|
noiseMovement: B,
|
|
86945
86945
|
reassignEveryMs: l,
|
|
86946
86946
|
showFixation: H,
|
|
86947
|
-
fixationWidth:
|
|
86947
|
+
fixationWidth: q,
|
|
86948
86948
|
fixationHeight: $,
|
|
86949
86949
|
fixationColor: Q,
|
|
86950
86950
|
fixationThickness: W,
|
|
@@ -87170,20 +87170,20 @@ function jCe({
|
|
|
87170
87170
|
} else
|
|
87171
87171
|
console.warn("ExecuteContent instruction does not contain standard component data:", U), H = /* @__PURE__ */ V.jsx("div", { children: "Non-component content encountered." });
|
|
87172
87172
|
} else y >= l.instructions.length && (H = /* @__PURE__ */ V.jsx(V.Fragment, {}));
|
|
87173
|
-
const L = e.theme ?? "light",
|
|
87173
|
+
const L = e.theme ?? "light", q = tr(L), $ = !n && ia("dev", !1, "boolean"), Q = me(null), W = (_ == null ? void 0 : _.type) === "ExecuteContent" ? _.content : null;
|
|
87174
87174
|
return /* @__PURE__ */ V.jsx(MV.Provider, { value: L, children: /* @__PURE__ */ V.jsx(NV.Provider, { value: f.current.audioInputId, children: /* @__PURE__ */ V.jsxs("div", { className: "w-full h-full", children: [
|
|
87175
87175
|
/* @__PURE__ */ V.jsx(
|
|
87176
87176
|
"div",
|
|
87177
87177
|
{
|
|
87178
87178
|
className: ` ${e.showProgressBar ? "" : "hidden "} px-4 mt-4 sm:mt-12 max-w-2xl mx-auto`,
|
|
87179
|
-
children: /* @__PURE__ */ V.jsx("div", { className: `flex-1 h-6 ${
|
|
87179
|
+
children: /* @__PURE__ */ V.jsx("div", { className: `flex-1 h-6 ${q.progressBg} rounded-full overflow-hidden`, children: /* @__PURE__ */ V.jsx(
|
|
87180
87180
|
"div",
|
|
87181
87181
|
{
|
|
87182
|
-
className: `h-full ${
|
|
87182
|
+
className: `h-full ${q.progressBg} rounded-full duration-300 ${A > 0 ? " border-black border-2" : ""}`,
|
|
87183
87183
|
style: {
|
|
87184
87184
|
width: `${A * 100}%`,
|
|
87185
87185
|
backgroundImage: `repeating-linear-gradient(
|
|
87186
|
-
-45deg, ${
|
|
87186
|
+
-45deg, ${q.progressStripe1}, ${q.progressStripe1} 10px, ${q.progressStripe2} 10px, ${q.progressStripe2} 20px
|
|
87187
87187
|
)`,
|
|
87188
87188
|
transition: "width 300ms ease-in-out"
|
|
87189
87189
|
}
|