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