labmaker-plugin 0.0.267 → 0.0.269
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/labmaker-plugin.js +109 -110
- package/dist/labmaker-plugin.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/labmaker-plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as B, createElementBlock as V, Fragment as D, createElementVNode as U, toDisplayString as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as B, createElementBlock as V, Fragment as D, createElementVNode as U, toDisplayString as Z, normalizeClass as O, createCommentVNode as S, resolveComponent as y, normalizeStyle as D2, createBlock as K, withModifiers as p2, withCtx as k, createTextVNode as o2, createVNode as X, renderList as f2, renderSlot as Nn, defineComponent as i0, computed as L2, watch as En, h as A5 } from "vue";
|
|
2
|
+
const t2 = (A, c) => {
|
|
3
3
|
const e = A.__vccOpts || A;
|
|
4
4
|
for (const [a, r] of c)
|
|
5
5
|
e[a] = r;
|
|
@@ -46,7 +46,7 @@ function _n(A, c, e, a, r, s) {
|
|
|
46
46
|
])
|
|
47
47
|
], 64);
|
|
48
48
|
}
|
|
49
|
-
const On = /* @__PURE__ */
|
|
49
|
+
const On = /* @__PURE__ */ t2(kn, [["render", _n]]);
|
|
50
50
|
const Pn = {
|
|
51
51
|
props: ["title"],
|
|
52
52
|
data() {
|
|
@@ -56,10 +56,10 @@ const Pn = {
|
|
|
56
56
|
};
|
|
57
57
|
function Gn(A, c, e, a, r, s) {
|
|
58
58
|
return B(), V("header", null, [
|
|
59
|
-
U("h1", null,
|
|
59
|
+
U("h1", null, Z(e.title), 1)
|
|
60
60
|
]);
|
|
61
61
|
}
|
|
62
|
-
const Wn = /* @__PURE__ */
|
|
62
|
+
const Wn = /* @__PURE__ */ t2(Pn, [["render", Gn]]);
|
|
63
63
|
const Xn = {
|
|
64
64
|
props: ["content"],
|
|
65
65
|
data() {
|
|
@@ -103,7 +103,7 @@ function Ao(A, c, e, a, r, s) {
|
|
|
103
103
|
])
|
|
104
104
|
]);
|
|
105
105
|
}
|
|
106
|
-
const co = /* @__PURE__ */
|
|
106
|
+
const co = /* @__PURE__ */ t2(Xn, [["render", Ao], ["__scopeId", "data-v-45f6f0d2"]]);
|
|
107
107
|
const eo = {
|
|
108
108
|
props: ["content"],
|
|
109
109
|
//moduleLessonPage
|
|
@@ -297,13 +297,13 @@ function lo(A, c, e, a, r, s) {
|
|
|
297
297
|
onClick: c[3] || (c[3] = p2((i) => s.showText(e.content.kalturaType), ["stop"]))
|
|
298
298
|
}, {
|
|
299
299
|
default: k(() => [
|
|
300
|
-
|
|
300
|
+
o2(Z(s.getButtonText(e.content.kalturaType)), 1)
|
|
301
301
|
]),
|
|
302
302
|
_: 1
|
|
303
303
|
})) : S("", !0)
|
|
304
304
|
], 2);
|
|
305
305
|
}
|
|
306
|
-
const fo = /* @__PURE__ */
|
|
306
|
+
const fo = /* @__PURE__ */ t2(eo, [["render", lo]]);
|
|
307
307
|
const ho = {
|
|
308
308
|
props: ["content"],
|
|
309
309
|
data() {
|
|
@@ -330,8 +330,8 @@ const ho = {
|
|
|
330
330
|
mounted() {
|
|
331
331
|
},
|
|
332
332
|
beforeMount() {
|
|
333
|
-
var A;
|
|
334
|
-
this.stepperStore = this.stepperMain(), ((A = this.content.feedbackContent) == null ? void 0 : A.type) === "media" && this.content.feedbackContent.fieldValues.kalturaType === "video" && (this.content.feedbackContent.fieldValues.width = "480", this.content.feedbackContent.fieldValues.height = "360", this.content.feedbackWidth = "80%");
|
|
333
|
+
var A, c;
|
|
334
|
+
this.stepperStore = this.stepperMain(), ((A = this.content.feedbackContent) == null ? void 0 : A.type) === "media" && ((c = this.content.feedbackContent.fieldValues) == null ? void 0 : c.kalturaType) === "video" && (this.content.feedbackContent.fieldValues.width = "480", this.content.feedbackContent.fieldValues.height = "360", this.content.feedbackWidth = "80%");
|
|
335
335
|
}
|
|
336
336
|
}, uo = { class: "my-header" }, mo = ["id", "innerHTML"], Ho = ["innerHTML"], vo = { key: 1 }, Co = { key: 0 }, Bo = ["src"], po = ["innerHTML"], go = { class: "dialog-footer" };
|
|
337
337
|
function zo(A, c, e, a, r, s) {
|
|
@@ -360,7 +360,7 @@ function zo(A, c, e, a, r, s) {
|
|
|
360
360
|
onClick: c[0] || (c[0] = p2((o) => s.feedbackClose(), ["stop"]))
|
|
361
361
|
}, {
|
|
362
362
|
default: k(() => [
|
|
363
|
-
|
|
363
|
+
o2("Close")
|
|
364
364
|
]),
|
|
365
365
|
_: 1
|
|
366
366
|
})
|
|
@@ -373,7 +373,6 @@ function zo(A, c, e, a, r, s) {
|
|
|
373
373
|
innerHTML: e.content.feedbackAttempts
|
|
374
374
|
}, null, 8, Ho)) : (B(), V("p", vo, "You have tried too many times, the correct answer has been provided for you."))
|
|
375
375
|
], 64)) : (B(), V(D, { key: 1 }, [
|
|
376
|
-
s2(j(e.content.feedbackContent) + " ", 1),
|
|
377
376
|
e.content.feedbackContent ? (B(), V("div", Co, [
|
|
378
377
|
e.content.feedbackContent.type === "media" ? (B(), K(t, {
|
|
379
378
|
key: 0,
|
|
@@ -399,7 +398,7 @@ function zo(A, c, e, a, r, s) {
|
|
|
399
398
|
_: 1
|
|
400
399
|
}, 8, ["width", "modelValue", "before-close"]);
|
|
401
400
|
}
|
|
402
|
-
const c5 = /* @__PURE__ */
|
|
401
|
+
const c5 = /* @__PURE__ */ t2(ho, [["render", zo]]);
|
|
403
402
|
const Vo = {
|
|
404
403
|
components: {
|
|
405
404
|
Feedback: c5
|
|
@@ -463,7 +462,7 @@ function Uo(A, c, e, a, r, s) {
|
|
|
463
462
|
src: n.buttonImage,
|
|
464
463
|
alt: "image marker " + Number(l + 1)
|
|
465
464
|
}, null, 8, Qo)) : S("", !0),
|
|
466
|
-
U("span", Fo,
|
|
465
|
+
U("span", Fo, Z(n.name), 1)
|
|
467
466
|
]),
|
|
468
467
|
_: 2
|
|
469
468
|
}, 1032, ["type", "onClick", "id", "class", "style", "icon"]),
|
|
@@ -475,7 +474,7 @@ function Uo(A, c, e, a, r, s) {
|
|
|
475
474
|
])
|
|
476
475
|
]);
|
|
477
476
|
}
|
|
478
|
-
const bo = /* @__PURE__ */
|
|
477
|
+
const bo = /* @__PURE__ */ t2(Vo, [["render", Uo], ["__scopeId", "data-v-fd3c7401"]]);
|
|
479
478
|
const xo = {
|
|
480
479
|
props: ["content"],
|
|
481
480
|
data() {
|
|
@@ -542,7 +541,7 @@ function Eo(A, c, e, a, r, s) {
|
|
|
542
541
|
_: 1
|
|
543
542
|
});
|
|
544
543
|
}
|
|
545
|
-
const ko = /* @__PURE__ */
|
|
544
|
+
const ko = /* @__PURE__ */ t2(xo, [["render", Eo], ["__scopeId", "data-v-d6c87f03"]]);
|
|
546
545
|
const Io = {
|
|
547
546
|
components: {},
|
|
548
547
|
props: ["content"],
|
|
@@ -646,7 +645,7 @@ function To(A, c, e, a, r, s) {
|
|
|
646
645
|
}, [
|
|
647
646
|
U("span", {
|
|
648
647
|
class: O("quizText quizSection_" + h)
|
|
649
|
-
},
|
|
648
|
+
}, Z(f) + " ", 3),
|
|
650
649
|
s.quizType(h) === "choose" ? (B(), K(i, {
|
|
651
650
|
key: 0,
|
|
652
651
|
onChange: (u) => s.choicesMade(h),
|
|
@@ -675,7 +674,7 @@ function To(A, c, e, a, r, s) {
|
|
|
675
674
|
disabled: s.quizArrayCompleted(h)
|
|
676
675
|
}, null, 8, ["onChange", "modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "disabled"])) : S("", !0)
|
|
677
676
|
], 2),
|
|
678
|
-
|
|
677
|
+
o2(" ")
|
|
679
678
|
], 64))), 256))
|
|
680
679
|
]),
|
|
681
680
|
X(l, {
|
|
@@ -685,7 +684,7 @@ function To(A, c, e, a, r, s) {
|
|
|
685
684
|
onClick: c[0] || (c[0] = (f) => s.choicesCheck())
|
|
686
685
|
}, {
|
|
687
686
|
default: k(() => [
|
|
688
|
-
|
|
687
|
+
o2("Submit")
|
|
689
688
|
]),
|
|
690
689
|
_: 1
|
|
691
690
|
}),
|
|
@@ -695,7 +694,7 @@ function To(A, c, e, a, r, s) {
|
|
|
695
694
|
}, null, 8, ["content"])) : S("", !0)
|
|
696
695
|
], 2);
|
|
697
696
|
}
|
|
698
|
-
const Do = /* @__PURE__ */
|
|
697
|
+
const Do = /* @__PURE__ */ t2(Io, [["render", To]]);
|
|
699
698
|
const Ko = {
|
|
700
699
|
components: {},
|
|
701
700
|
props: ["content"],
|
|
@@ -765,7 +764,7 @@ function Ro(A, c, e, a, r, s) {
|
|
|
765
764
|
}, [
|
|
766
765
|
U("p", null, [
|
|
767
766
|
(B(!0), V(D, null, f2(r.quizArray, (l, o) => (B(), V(D, null, [
|
|
768
|
-
|
|
767
|
+
o2(Z(l), 1),
|
|
769
768
|
o < s.quizArrayCount ? (B(), K(t, {
|
|
770
769
|
key: 0,
|
|
771
770
|
modelValue: r.input[o],
|
|
@@ -782,7 +781,7 @@ function Ro(A, c, e, a, r, s) {
|
|
|
782
781
|
onClick: c[0] || (c[0] = (l) => s.choicesCheck())
|
|
783
782
|
}, {
|
|
784
783
|
default: k(() => [
|
|
785
|
-
|
|
784
|
+
o2("Submit")
|
|
786
785
|
]),
|
|
787
786
|
_: 1
|
|
788
787
|
}),
|
|
@@ -792,7 +791,7 @@ function Ro(A, c, e, a, r, s) {
|
|
|
792
791
|
}, null, 8, ["content"])) : S("", !0)
|
|
793
792
|
], 2);
|
|
794
793
|
}
|
|
795
|
-
const _o = /* @__PURE__ */
|
|
794
|
+
const _o = /* @__PURE__ */ t2(Ko, [["render", Ro]]);
|
|
796
795
|
const Oo = {
|
|
797
796
|
components: {},
|
|
798
797
|
props: ["content"],
|
|
@@ -900,7 +899,7 @@ function qo(A, c, e, a, r, s) {
|
|
|
900
899
|
src: h.image,
|
|
901
900
|
alt: h.alt ? h.alt : "button image"
|
|
902
901
|
}, null, 8, Wo)) : S("", !0),
|
|
903
|
-
U("span", Xo,
|
|
902
|
+
U("span", Xo, Z(h.text), 1)
|
|
904
903
|
])
|
|
905
904
|
]),
|
|
906
905
|
_: 2
|
|
@@ -917,7 +916,7 @@ function qo(A, c, e, a, r, s) {
|
|
|
917
916
|
_: 1
|
|
918
917
|
}, 8, ["id", "class"]);
|
|
919
918
|
}
|
|
920
|
-
const Yo = /* @__PURE__ */
|
|
919
|
+
const Yo = /* @__PURE__ */ t2(Oo, [["render", qo], ["__scopeId", "data-v-0f6d367e"]]);
|
|
921
920
|
const Jo = {
|
|
922
921
|
components: {},
|
|
923
922
|
props: ["content"],
|
|
@@ -977,7 +976,7 @@ function $o(A, c, e, a, r, s) {
|
|
|
977
976
|
return B(), V("div", {
|
|
978
977
|
class: O(["textbox", e.content.class])
|
|
979
978
|
}, [
|
|
980
|
-
U("p", null,
|
|
979
|
+
U("p", null, Z(e.content.quiz), 1),
|
|
981
980
|
X(t, {
|
|
982
981
|
modelValue: r.input,
|
|
983
982
|
"onUpdate:modelValue": c[0] || (c[0] = (l) => r.input = l),
|
|
@@ -992,7 +991,7 @@ function $o(A, c, e, a, r, s) {
|
|
|
992
991
|
onClick: c[1] || (c[1] = (l) => s.choicesCheck())
|
|
993
992
|
}, {
|
|
994
993
|
default: k(() => [
|
|
995
|
-
|
|
994
|
+
o2("Submit")
|
|
996
995
|
]),
|
|
997
996
|
_: 1
|
|
998
997
|
}),
|
|
@@ -1002,7 +1001,7 @@ function $o(A, c, e, a, r, s) {
|
|
|
1002
1001
|
}, null, 8, ["content"])) : S("", !0)
|
|
1003
1002
|
], 2);
|
|
1004
1003
|
}
|
|
1005
|
-
const jo = /* @__PURE__ */
|
|
1004
|
+
const jo = /* @__PURE__ */ t2(Jo, [["render", $o]]);
|
|
1006
1005
|
const Zo = {
|
|
1007
1006
|
components: {},
|
|
1008
1007
|
props: ["content"],
|
|
@@ -1092,7 +1091,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1092
1091
|
class: "nav-mask",
|
|
1093
1092
|
onClick: c[0] || (c[0] = (...o) => s.hideSubs && s.hideSubs(...o))
|
|
1094
1093
|
})) : S("", !0),
|
|
1095
|
-
U("p", null,
|
|
1094
|
+
U("p", null, Z(e.content.quiz), 1),
|
|
1096
1095
|
U("div", {
|
|
1097
1096
|
class: "jl-menu",
|
|
1098
1097
|
onSelect: c[1] || (c[1] = (...o) => s.choicesCheck && s.choicesCheck(...o))
|
|
@@ -1107,7 +1106,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1107
1106
|
onClick: p2((h) => s.showSub("sub-" + f), ["stop"])
|
|
1108
1107
|
}, [
|
|
1109
1108
|
U("div", el, [
|
|
1110
|
-
|
|
1109
|
+
o2(Z(o.name) + " ", 1),
|
|
1111
1110
|
X(i, null, {
|
|
1112
1111
|
default: k(() => [
|
|
1113
1112
|
X(t)
|
|
@@ -1130,7 +1129,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1130
1129
|
onClick: p2((m) => s.showSubSub("sub-sub-" + f), ["stop"])
|
|
1131
1130
|
}, [
|
|
1132
1131
|
U("div", sl, [
|
|
1133
|
-
|
|
1132
|
+
o2(Z(h.name), 1),
|
|
1134
1133
|
X(i, null, {
|
|
1135
1134
|
default: k(() => [
|
|
1136
1135
|
X(n)
|
|
@@ -1150,7 +1149,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1150
1149
|
role: "menuitem",
|
|
1151
1150
|
onClick: p2((d) => s.choicesCheck(f + "-" + u + "-" + C), ["stop"])
|
|
1152
1151
|
}, [
|
|
1153
|
-
U("div", null,
|
|
1152
|
+
U("div", null, Z(m.name), 1)
|
|
1154
1153
|
], 8, il))), 256))
|
|
1155
1154
|
], 8, tl)
|
|
1156
1155
|
], 64)) : (B(), V("button", {
|
|
@@ -1160,7 +1159,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1160
1159
|
role: "menuitem",
|
|
1161
1160
|
onClick: p2((m) => s.choicesCheck(f + "-" + u), ["stop"])
|
|
1162
1161
|
}, [
|
|
1163
|
-
U("div", null,
|
|
1162
|
+
U("div", null, Z(h.name), 1)
|
|
1164
1163
|
], 8, nl))
|
|
1165
1164
|
], 64))), 256))
|
|
1166
1165
|
], 8, al)
|
|
@@ -1171,7 +1170,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1171
1170
|
tabindex: "0",
|
|
1172
1171
|
role: "menuitem",
|
|
1173
1172
|
onClick: p2((h) => s.choicesCheck(f), ["stop"])
|
|
1174
|
-
},
|
|
1173
|
+
}, Z(o.name), 9, ll)
|
|
1175
1174
|
]))
|
|
1176
1175
|
], 64))), 256))
|
|
1177
1176
|
], 32),
|
|
@@ -1181,7 +1180,7 @@ function fl(A, c, e, a, r, s) {
|
|
|
1181
1180
|
}, null, 8, ["content"])) : S("", !0)
|
|
1182
1181
|
], 2);
|
|
1183
1182
|
}
|
|
1184
|
-
const hl = /* @__PURE__ */
|
|
1183
|
+
const hl = /* @__PURE__ */ t2(Zo, [["render", fl]]);
|
|
1185
1184
|
const Q8 = {
|
|
1186
1185
|
y: {
|
|
1187
1186
|
t: "top",
|
|
@@ -1723,7 +1722,7 @@ function Cl(A, c, e, a, r, s) {
|
|
|
1723
1722
|
}, null, 46, vl))), 256))
|
|
1724
1723
|
], 38);
|
|
1725
1724
|
}
|
|
1726
|
-
const e5 = /* @__PURE__ */
|
|
1725
|
+
const e5 = /* @__PURE__ */ t2(Hl, [["render", Cl]]);
|
|
1727
1726
|
const Bl = {
|
|
1728
1727
|
components: {
|
|
1729
1728
|
VueDragResize: e5
|
|
@@ -1844,7 +1843,7 @@ function Ml(A, c, e, a, r, s) {
|
|
|
1844
1843
|
], 2)
|
|
1845
1844
|
]);
|
|
1846
1845
|
}
|
|
1847
|
-
const wl = /* @__PURE__ */
|
|
1846
|
+
const wl = /* @__PURE__ */ t2(Bl, [["render", Ml]]);
|
|
1848
1847
|
const Ll = {
|
|
1849
1848
|
components: {},
|
|
1850
1849
|
props: ["content"],
|
|
@@ -1932,7 +1931,7 @@ function Sl(A, c, e, a, r, s) {
|
|
|
1932
1931
|
src: e.content.sound,
|
|
1933
1932
|
type: "audio/mpeg"
|
|
1934
1933
|
}, null, 8, Ul),
|
|
1935
|
-
|
|
1934
|
+
o2(" Your browser does not support the audio element. ")
|
|
1936
1935
|
])) : S("", !0)
|
|
1937
1936
|
]),
|
|
1938
1937
|
_: 1
|
|
@@ -1954,7 +1953,7 @@ function Sl(A, c, e, a, r, s) {
|
|
|
1954
1953
|
class: "dragItems-button",
|
|
1955
1954
|
onClick: p2((u) => s.keyboardDrag(h, f), ["stop"])
|
|
1956
1955
|
}, [
|
|
1957
|
-
|
|
1956
|
+
o2(Z(h.text) + " ", 1),
|
|
1958
1957
|
h.image ? (B(), V("img", {
|
|
1959
1958
|
key: 0,
|
|
1960
1959
|
id: h.id,
|
|
@@ -1974,7 +1973,7 @@ function Sl(A, c, e, a, r, s) {
|
|
|
1974
1973
|
_: 1
|
|
1975
1974
|
}, 8, ["class"]);
|
|
1976
1975
|
}
|
|
1977
|
-
const Nl = /* @__PURE__ */
|
|
1976
|
+
const Nl = /* @__PURE__ */ t2(Ll, [["render", Sl]]);
|
|
1978
1977
|
const El = {
|
|
1979
1978
|
components: {},
|
|
1980
1979
|
props: ["content"],
|
|
@@ -2137,7 +2136,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2137
2136
|
class: "dragItems-button",
|
|
2138
2137
|
onClick: p2((m) => s.keyboardDrag(u), ["stop"])
|
|
2139
2138
|
}, [
|
|
2140
|
-
|
|
2139
|
+
o2(Z(u.text) + " ", 1),
|
|
2141
2140
|
u.image ? (B(), V("img", {
|
|
2142
2141
|
key: 0,
|
|
2143
2142
|
id: u.id,
|
|
@@ -2154,7 +2153,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2154
2153
|
}),
|
|
2155
2154
|
(B(!0), V(D, null, f2(r.listOne, (u, m) => (B(), K(i, { span: s.binColumns }, {
|
|
2156
2155
|
default: k(() => [
|
|
2157
|
-
U("h4", null,
|
|
2156
|
+
U("h4", null, Z(e.content.bins[m].header), 1),
|
|
2158
2157
|
X(n, {
|
|
2159
2158
|
class: O(["dropBins el-row", e.content.bins[m].class]),
|
|
2160
2159
|
"data-index": m,
|
|
@@ -2168,7 +2167,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2168
2167
|
item: k(({ element: C }) => [
|
|
2169
2168
|
C.hide ? S("", !0) : (B(), V("div", Dl, [
|
|
2170
2169
|
U("button", Kl, [
|
|
2171
|
-
|
|
2170
|
+
o2(Z(C.text) + " ", 1),
|
|
2172
2171
|
C.image ? (B(), V("img", {
|
|
2173
2172
|
key: 0,
|
|
2174
2173
|
id: C.id,
|
|
@@ -2205,7 +2204,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2205
2204
|
onClick: c[0] || (c[0] = (u) => s.kbCheckMove())
|
|
2206
2205
|
}, {
|
|
2207
2206
|
default: k(() => [
|
|
2208
|
-
|
|
2207
|
+
o2("Close")
|
|
2209
2208
|
]),
|
|
2210
2209
|
_: 1
|
|
2211
2210
|
})
|
|
@@ -2222,7 +2221,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2222
2221
|
onClick: (H) => s.kbCheckMove(m, d)
|
|
2223
2222
|
}, {
|
|
2224
2223
|
default: k(() => [
|
|
2225
|
-
|
|
2224
|
+
o2(Z(e.content.bins[m].header), 1)
|
|
2226
2225
|
]),
|
|
2227
2226
|
_: 2
|
|
2228
2227
|
}, 1032, ["onClick"])) : (B(), K(f, {
|
|
@@ -2232,7 +2231,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2232
2231
|
onClick: (H) => s.kbCheckMove(m, d)
|
|
2233
2232
|
}, {
|
|
2234
2233
|
default: k(() => [
|
|
2235
|
-
|
|
2234
|
+
o2(Z(e.content.bins[m].header), 1)
|
|
2236
2235
|
]),
|
|
2237
2236
|
_: 2
|
|
2238
2237
|
}, 1032, ["onClick"]))
|
|
@@ -2243,7 +2242,7 @@ function Ol(A, c, e, a, r, s) {
|
|
|
2243
2242
|
}, 8, ["title", "modelValue"])
|
|
2244
2243
|
], 64);
|
|
2245
2244
|
}
|
|
2246
|
-
const Pl = /* @__PURE__ */
|
|
2245
|
+
const Pl = /* @__PURE__ */ t2(El, [["render", Ol]]);
|
|
2247
2246
|
const Gl = {
|
|
2248
2247
|
props: ["content"],
|
|
2249
2248
|
data() {
|
|
@@ -2294,7 +2293,7 @@ function Xl(A, c, e, a, r, s) {
|
|
|
2294
2293
|
}, null, 8, Wl)
|
|
2295
2294
|
]);
|
|
2296
2295
|
}
|
|
2297
|
-
const ql = /* @__PURE__ */
|
|
2296
|
+
const ql = /* @__PURE__ */ t2(Gl, [["render", Xl], ["__scopeId", "data-v-f5bc6f4c"]]);
|
|
2298
2297
|
/*!
|
|
2299
2298
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
2300
2299
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
@@ -2368,7 +2367,7 @@ function l2(A, c, e, a) {
|
|
|
2368
2367
|
l((a = a.apply(A, c || [])).next());
|
|
2369
2368
|
});
|
|
2370
2369
|
}
|
|
2371
|
-
function
|
|
2370
|
+
function i2(A, c) {
|
|
2372
2371
|
var e = { label: 0, sent: function() {
|
|
2373
2372
|
if (s[0] & 1)
|
|
2374
2373
|
throw s[1];
|
|
@@ -2689,12 +2688,12 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
2689
2688
|
return { done: !0, value: null };
|
|
2690
2689
|
}
|
|
2691
2690
|
};
|
|
2692
|
-
}, yf = 1, Sf = 2, m4 = 4, K8 = 8, n3 = 10, R8 = 47, j1 = 92, Nf = 9, Ef = 32, y4 = 34, R1 = 61, kf = 35, If = 36, Tf = 37, S4 = 39, N4 = 40, _1 = 41, Df = 95, v2 = 45, Kf = 33, Rf = 60, _f = 62, Of = 64, Pf = 91, Gf = 93, Wf = 61, Xf = 123, E4 = 63, qf = 125, _8 = 124, Yf = 126, Jf = 128, O8 = 65533, s6 = 42, u1 = 43, $f = 44, jf = 58, Zf = 59, i4 = 46, Ah = 0, ch = 8, eh = 11, ah = 14, rh = 31, sh = 127, x2 = -1, l5 = 48, f5 = 97, h5 = 101, th = 102, ih = 117, nh = 122, u5 = 65, m5 = 69, H5 = 70, oh = 85, lh = 90,
|
|
2691
|
+
}, yf = 1, Sf = 2, m4 = 4, K8 = 8, n3 = 10, R8 = 47, j1 = 92, Nf = 9, Ef = 32, y4 = 34, R1 = 61, kf = 35, If = 36, Tf = 37, S4 = 39, N4 = 40, _1 = 41, Df = 95, v2 = 45, Kf = 33, Rf = 60, _f = 62, Of = 64, Pf = 91, Gf = 93, Wf = 61, Xf = 123, E4 = 63, qf = 125, _8 = 124, Yf = 126, Jf = 128, O8 = 65533, s6 = 42, u1 = 43, $f = 44, jf = 58, Zf = 59, i4 = 46, Ah = 0, ch = 8, eh = 11, ah = 14, rh = 31, sh = 127, x2 = -1, l5 = 48, f5 = 97, h5 = 101, th = 102, ih = 117, nh = 122, u5 = 65, m5 = 69, H5 = 70, oh = 85, lh = 90, n2 = function(A) {
|
|
2693
2692
|
return A >= l5 && A <= 57;
|
|
2694
2693
|
}, fh = function(A) {
|
|
2695
2694
|
return A >= 55296 && A <= 57343;
|
|
2696
2695
|
}, V1 = function(A) {
|
|
2697
|
-
return
|
|
2696
|
+
return n2(A) || A >= u5 && A <= H5 || A >= f5 && A <= th;
|
|
2698
2697
|
}, hh = function(A) {
|
|
2699
2698
|
return A >= f5 && A <= nh;
|
|
2700
2699
|
}, uh = function(A) {
|
|
@@ -2708,7 +2707,7 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
2708
2707
|
}, o3 = function(A) {
|
|
2709
2708
|
return mh(A) || Hh(A) || A === Df;
|
|
2710
2709
|
}, P8 = function(A) {
|
|
2711
|
-
return o3(A) ||
|
|
2710
|
+
return o3(A) || n2(A) || A === v2;
|
|
2712
2711
|
}, vh = function(A) {
|
|
2713
2712
|
return A >= Ah && A <= ch || A === eh || A >= ah && A <= rh || A === sh;
|
|
2714
2713
|
}, $2 = function(A, c) {
|
|
@@ -2716,21 +2715,21 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
2716
2715
|
}, I4 = function(A, c, e) {
|
|
2717
2716
|
return A === v2 ? o3(c) || $2(c, e) : o3(A) ? !0 : !!(A === j1 && $2(A, c));
|
|
2718
2717
|
}, t6 = function(A, c, e) {
|
|
2719
|
-
return A === u1 || A === v2 ?
|
|
2718
|
+
return A === u1 || A === v2 ? n2(c) ? !0 : c === i4 && n2(e) : n2(A === i4 ? c : A);
|
|
2720
2719
|
}, Ch = function(A) {
|
|
2721
2720
|
var c = 0, e = 1;
|
|
2722
2721
|
(A[c] === u1 || A[c] === v2) && (A[c] === v2 && (e = -1), c++);
|
|
2723
|
-
for (var a = [];
|
|
2722
|
+
for (var a = []; n2(A[c]); )
|
|
2724
2723
|
a.push(A[c++]);
|
|
2725
2724
|
var r = a.length ? parseInt($.apply(void 0, a), 10) : 0;
|
|
2726
2725
|
A[c] === i4 && c++;
|
|
2727
|
-
for (var s = [];
|
|
2726
|
+
for (var s = []; n2(A[c]); )
|
|
2728
2727
|
s.push(A[c++]);
|
|
2729
2728
|
var t = s.length, i = t ? parseInt($.apply(void 0, s), 10) : 0;
|
|
2730
2729
|
(A[c] === m5 || A[c] === h5) && c++;
|
|
2731
2730
|
var n = 1;
|
|
2732
2731
|
(A[c] === u1 || A[c] === v2) && (A[c] === v2 && (n = -1), c++);
|
|
2733
|
-
for (var l = [];
|
|
2732
|
+
for (var l = []; n2(A[c]); )
|
|
2734
2733
|
l.push(A[c++]);
|
|
2735
2734
|
var o = l.length ? parseInt($.apply(void 0, l), 10) : 0;
|
|
2736
2735
|
return e * (r + i * Math.pow(10, -t)) * Math.pow(10, n * o);
|
|
@@ -2912,7 +2911,7 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
2912
2911
|
case x2:
|
|
2913
2912
|
return I6;
|
|
2914
2913
|
}
|
|
2915
|
-
return k4(c) ? (this.consumeWhiteSpace(), kh) :
|
|
2914
|
+
return k4(c) ? (this.consumeWhiteSpace(), kh) : n2(c) ? (this.reconsumeCodePoint(c), this.consumeNumericToken()) : o3(c) ? (this.reconsumeCodePoint(c), this.consumeIdentLikeToken()) : { type: 6, value: $(c) };
|
|
2916
2915
|
}, A.prototype.consumeCodePoint = function() {
|
|
2917
2916
|
var c = this._value.shift();
|
|
2918
2917
|
return typeof c > "u" ? -1 : c;
|
|
@@ -3002,17 +3001,17 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
3002
3001
|
} while (!0);
|
|
3003
3002
|
}, A.prototype.consumeNumber = function() {
|
|
3004
3003
|
var c = [], e = m4, a = this.peekCodePoint(0);
|
|
3005
|
-
for ((a === u1 || a === v2) && c.push(this.consumeCodePoint());
|
|
3004
|
+
for ((a === u1 || a === v2) && c.push(this.consumeCodePoint()); n2(this.peekCodePoint(0)); )
|
|
3006
3005
|
c.push(this.consumeCodePoint());
|
|
3007
3006
|
a = this.peekCodePoint(0);
|
|
3008
3007
|
var r = this.peekCodePoint(1);
|
|
3009
|
-
if (a === i4 &&
|
|
3010
|
-
for (c.push(this.consumeCodePoint(), this.consumeCodePoint()), e = K8;
|
|
3008
|
+
if (a === i4 && n2(r))
|
|
3009
|
+
for (c.push(this.consumeCodePoint(), this.consumeCodePoint()), e = K8; n2(this.peekCodePoint(0)); )
|
|
3011
3010
|
c.push(this.consumeCodePoint());
|
|
3012
3011
|
a = this.peekCodePoint(0), r = this.peekCodePoint(1);
|
|
3013
3012
|
var s = this.peekCodePoint(2);
|
|
3014
|
-
if ((a === m5 || a === h5) && ((r === u1 || r === v2) &&
|
|
3015
|
-
for (c.push(this.consumeCodePoint(), this.consumeCodePoint()), e = K8;
|
|
3013
|
+
if ((a === m5 || a === h5) && ((r === u1 || r === v2) && n2(s) || n2(r)))
|
|
3014
|
+
for (c.push(this.consumeCodePoint(), this.consumeCodePoint()), e = K8; n2(this.peekCodePoint(0)); )
|
|
3016
3015
|
c.push(this.consumeCodePoint());
|
|
3017
3016
|
return [Ch(c), e];
|
|
3018
3017
|
}, A.prototype.consumeNumericToken = function() {
|
|
@@ -3142,11 +3141,11 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
3142
3141
|
return c === 11 && A.type === 12 || c === 28 && A.type === 29 ? !0 : c === 2 && A.type === 3;
|
|
3143
3142
|
}, a1 = function(A) {
|
|
3144
3143
|
return A.type === 17 || A.type === 15;
|
|
3145
|
-
},
|
|
3144
|
+
}, j = function(A) {
|
|
3146
3145
|
return A.type === 16 || a1(A);
|
|
3147
3146
|
}, p5 = function(A) {
|
|
3148
3147
|
return A.length > 1 ? [A[0], A[1]] : [A[0]];
|
|
3149
|
-
},
|
|
3148
|
+
}, s2 = {
|
|
3150
3149
|
type: 17,
|
|
3151
3150
|
number: 0,
|
|
3152
3151
|
flags: m4
|
|
@@ -3201,7 +3200,7 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
3201
3200
|
case "to right bottom":
|
|
3202
3201
|
case "left top":
|
|
3203
3202
|
case "top left":
|
|
3204
|
-
return [
|
|
3203
|
+
return [s2, s2];
|
|
3205
3204
|
case "to top":
|
|
3206
3205
|
case "bottom":
|
|
3207
3206
|
return V2(0);
|
|
@@ -3209,7 +3208,7 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
3209
3208
|
case "to left bottom":
|
|
3210
3209
|
case "right top":
|
|
3211
3210
|
case "top right":
|
|
3212
|
-
return [
|
|
3211
|
+
return [s2, Z2];
|
|
3213
3212
|
case "to right":
|
|
3214
3213
|
case "left":
|
|
3215
3214
|
return V2(90);
|
|
@@ -3225,7 +3224,7 @@ var Hf = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
3225
3224
|
case "to right top":
|
|
3226
3225
|
case "left bottom":
|
|
3227
3226
|
case "bottom left":
|
|
3228
|
-
return [Z2,
|
|
3227
|
+
return [Z2, s2];
|
|
3229
3228
|
case "to left":
|
|
3230
3229
|
case "right":
|
|
3231
3230
|
return V2(270);
|
|
@@ -3298,7 +3297,7 @@ function i6(A, c, e) {
|
|
|
3298
3297
|
return e < 0 && (e += 1), e >= 1 && (e -= 1), e < 1 / 6 ? (c - A) * e * 6 + A : e < 1 / 2 ? c : e < 2 / 3 ? (c - A) * 6 * (2 / 3 - e) + A : A;
|
|
3299
3298
|
}
|
|
3300
3299
|
var X8 = function(A, c) {
|
|
3301
|
-
var e = c.filter(N1), a = e[0], r = e[1], s = e[2], t = e[3], i = (a.type === 17 ? V2(a.number) : w3.parse(A, a)) / (Math.PI * 2), n =
|
|
3300
|
+
var e = c.filter(N1), a = e[0], r = e[1], s = e[2], t = e[3], i = (a.type === 17 ? V2(a.number) : w3.parse(A, a)) / (Math.PI * 2), n = j(r) ? r.number / 100 : 0, l = j(s) ? s.number / 100 : 0, o = typeof t < "u" && j(t) ? _(t, 1) : 1;
|
|
3302
3301
|
if (n === 0)
|
|
3303
3302
|
return A1(l * 255, l * 255, l * 255, 1);
|
|
3304
3303
|
var f = l <= 0.5 ? l * (n + 1) : l + n - l * n, h = l * 2 - f, u = i6(h, f, i + 1 / 3), m = i6(h, f, i), C = i6(h, f, i - 1 / 3);
|
|
@@ -3485,10 +3484,10 @@ var X8 = function(A, c) {
|
|
|
3485
3484
|
format: "color"
|
|
3486
3485
|
}, L3 = function(A, c) {
|
|
3487
3486
|
var e = c1.parse(A, c[0]), a = c[1];
|
|
3488
|
-
return a &&
|
|
3487
|
+
return a && j(a) ? { color: e, stop: a } : { color: e, stop: null };
|
|
3489
3488
|
}, q8 = function(A, c) {
|
|
3490
3489
|
var e = A[0], a = A[A.length - 1];
|
|
3491
|
-
e.stop === null && (e.stop =
|
|
3490
|
+
e.stop === null && (e.stop = s2), a.stop === null && (a.stop = Z2);
|
|
3492
3491
|
for (var r = [], s = 0, t = 0; t < A.length; t++) {
|
|
3493
3492
|
var i = A[t].stop;
|
|
3494
3493
|
if (i !== null) {
|
|
@@ -3621,7 +3620,7 @@ var X8 = function(A, c) {
|
|
|
3621
3620
|
if (o.type === 18) {
|
|
3622
3621
|
if (o.name === "from") {
|
|
3623
3622
|
var f = c1.parse(A, o.values[0]);
|
|
3624
|
-
a.push({ stop:
|
|
3623
|
+
a.push({ stop: s2, color: f });
|
|
3625
3624
|
} else if (o.name === "to") {
|
|
3626
3625
|
var f = c1.parse(A, o.values[0]);
|
|
3627
3626
|
a.push({ stop: Z2, color: f });
|
|
@@ -3655,13 +3654,13 @@ var X8 = function(A, c) {
|
|
|
3655
3654
|
return s.push(o0), f;
|
|
3656
3655
|
case "top":
|
|
3657
3656
|
case "left":
|
|
3658
|
-
return s.push(
|
|
3657
|
+
return s.push(s2), f;
|
|
3659
3658
|
case "right":
|
|
3660
3659
|
case "bottom":
|
|
3661
3660
|
return s.push(Z2), f;
|
|
3662
3661
|
}
|
|
3663
3662
|
else
|
|
3664
|
-
(
|
|
3663
|
+
(j(h) || a1(h)) && s.push(h);
|
|
3665
3664
|
else if (R(h))
|
|
3666
3665
|
switch (h.value) {
|
|
3667
3666
|
case b5:
|
|
@@ -3681,7 +3680,7 @@ var X8 = function(A, c) {
|
|
|
3681
3680
|
case U5:
|
|
3682
3681
|
return a = 3, !1;
|
|
3683
3682
|
}
|
|
3684
|
-
else if (a1(h) ||
|
|
3683
|
+
else if (a1(h) || j(h))
|
|
3685
3684
|
return Array.isArray(a) || (a = []), a.push(h), !1;
|
|
3686
3685
|
return f;
|
|
3687
3686
|
}, n);
|
|
@@ -3709,12 +3708,12 @@ var X8 = function(A, c) {
|
|
|
3709
3708
|
return s.push(o0), !1;
|
|
3710
3709
|
case "top":
|
|
3711
3710
|
case "left":
|
|
3712
|
-
return s.push(
|
|
3711
|
+
return s.push(s2), !1;
|
|
3713
3712
|
case "right":
|
|
3714
3713
|
case "bottom":
|
|
3715
3714
|
return s.push(Z2), !1;
|
|
3716
3715
|
}
|
|
3717
|
-
else if (
|
|
3716
|
+
else if (j(f) || a1(f))
|
|
3718
3717
|
return s.push(f), !1;
|
|
3719
3718
|
return o;
|
|
3720
3719
|
}, n) : i === 1 && (n = t.reduce(function(o, f) {
|
|
@@ -3735,7 +3734,7 @@ var X8 = function(A, c) {
|
|
|
3735
3734
|
case U5:
|
|
3736
3735
|
return a = 3, !1;
|
|
3737
3736
|
}
|
|
3738
|
-
else if (a1(f) ||
|
|
3737
|
+
else if (a1(f) || j(f))
|
|
3739
3738
|
return Array.isArray(a) || (a = []), a.push(f), !1;
|
|
3740
3739
|
return o;
|
|
3741
3740
|
}, n)), n) {
|
|
@@ -3828,7 +3827,7 @@ var N5 = {
|
|
|
3828
3827
|
prefix: !1,
|
|
3829
3828
|
parse: function(A, c) {
|
|
3830
3829
|
return S2(c).map(function(e) {
|
|
3831
|
-
return e.filter(
|
|
3830
|
+
return e.filter(j);
|
|
3832
3831
|
}).map(p5);
|
|
3833
3832
|
}
|
|
3834
3833
|
}, Au = {
|
|
@@ -3872,7 +3871,7 @@ var eu = {
|
|
|
3872
3871
|
});
|
|
3873
3872
|
}
|
|
3874
3873
|
}, au = function(A) {
|
|
3875
|
-
return R(A) ||
|
|
3874
|
+
return R(A) || j(A);
|
|
3876
3875
|
}, Q3 = function(A) {
|
|
3877
3876
|
return {
|
|
3878
3877
|
name: "border-" + A + "-color",
|
|
@@ -3888,7 +3887,7 @@ var eu = {
|
|
|
3888
3887
|
prefix: !1,
|
|
3889
3888
|
type: 1,
|
|
3890
3889
|
parse: function(c, e) {
|
|
3891
|
-
return p5(e.filter(
|
|
3890
|
+
return p5(e.filter(j));
|
|
3892
3891
|
}
|
|
3893
3892
|
};
|
|
3894
3893
|
}, nu = F3("top-left"), ou = F3("top-right"), lu = F3("bottom-right"), fu = F3("bottom-left"), U3 = function(A) {
|
|
@@ -4071,7 +4070,7 @@ var Lu = {
|
|
|
4071
4070
|
type: 4
|
|
4072
4071
|
/* TOKEN_VALUE */
|
|
4073
4072
|
}, J8 = function(A, c) {
|
|
4074
|
-
return R(A) && A.value === "normal" ? 1.2 * c : A.type === 17 ? c * A.number :
|
|
4073
|
+
return R(A) && A.value === "normal" ? 1.2 * c : A.type === 17 ? c * A.number : j(A) ? _(A, c) : c;
|
|
4075
4074
|
}, Fu = {
|
|
4076
4075
|
name: "list-style-image",
|
|
4077
4076
|
initialValue: "none",
|
|
@@ -4308,9 +4307,9 @@ var Lu = {
|
|
|
4308
4307
|
return c.length === 1 && T6(c[0], "none") ? [] : S2(c).map(function(e) {
|
|
4309
4308
|
for (var a = {
|
|
4310
4309
|
color: K2.TRANSPARENT,
|
|
4311
|
-
offsetX:
|
|
4312
|
-
offsetY:
|
|
4313
|
-
blur:
|
|
4310
|
+
offsetX: s2,
|
|
4311
|
+
offsetY: s2,
|
|
4312
|
+
blur: s2
|
|
4314
4313
|
}, r = 0, s = 0; s < e.length; s++) {
|
|
4315
4314
|
var t = e[s];
|
|
4316
4315
|
a1(t) ? (r === 0 ? a.offsetX = t : r === 1 ? a.offsetY = t : a.blur = t, r++) : a.color = c1.parse(A, t);
|
|
@@ -4381,7 +4380,7 @@ var Lu = {
|
|
|
4381
4380
|
prefix: !0,
|
|
4382
4381
|
type: 1,
|
|
4383
4382
|
parse: function(A, c) {
|
|
4384
|
-
var e = c.filter(
|
|
4383
|
+
var e = c.filter(j);
|
|
4385
4384
|
return e.length !== 2 ? qu : [e[0], e[1]];
|
|
4386
4385
|
}
|
|
4387
4386
|
}, Ju = {
|
|
@@ -4648,10 +4647,10 @@ var $u = {
|
|
|
4648
4647
|
return c.length === 1 && T6(c[0], "none") ? [] : S2(c).map(function(e) {
|
|
4649
4648
|
for (var a = {
|
|
4650
4649
|
color: 255,
|
|
4651
|
-
offsetX:
|
|
4652
|
-
offsetY:
|
|
4653
|
-
blur:
|
|
4654
|
-
spread:
|
|
4650
|
+
offsetX: s2,
|
|
4651
|
+
offsetY: s2,
|
|
4652
|
+
blur: s2,
|
|
4653
|
+
spread: s2,
|
|
4655
4654
|
inset: !1
|
|
4656
4655
|
}, r = 0, s = 0; s < e.length; s++) {
|
|
4657
4656
|
var t = e[s];
|
|
@@ -4800,10 +4799,10 @@ var $u = {
|
|
|
4800
4799
|
return l0.parse(A, s.parseComponentValue());
|
|
4801
4800
|
case "length":
|
|
4802
4801
|
var i = s.parseComponentValue();
|
|
4803
|
-
return a1(i) ? i :
|
|
4802
|
+
return a1(i) ? i : s2;
|
|
4804
4803
|
case "length-percentage":
|
|
4805
4804
|
var n = s.parseComponentValue();
|
|
4806
|
-
return
|
|
4805
|
+
return j(n) ? n : s2;
|
|
4807
4806
|
case "time":
|
|
4808
4807
|
return E5.parse(A, s.parseComponentValue());
|
|
4809
4808
|
}
|
|
@@ -5783,7 +5782,7 @@ var Tm = 1, l6 = 2, f6 = 3, aA = 4, rA = 5, Dm = 7, sA = 8, h6 = 9, u6 = 10, tA
|
|
|
5783
5782
|
var s = c.defaultView.pageXOffset, t = c.defaultView.pageYOffset, i = r.contentWindow, n = i.document, l = FH(r).then(function() {
|
|
5784
5783
|
return l2(a, void 0, void 0, function() {
|
|
5785
5784
|
var o, f;
|
|
5786
|
-
return
|
|
5785
|
+
return i2(this, function(h) {
|
|
5787
5786
|
switch (h.label) {
|
|
5788
5787
|
case 0:
|
|
5789
5788
|
return this.scrolledElements.forEach(yH), i && (i.scrollTo(e.left, e.top), /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (i.scrollY !== e.top || i.scrollX !== e.left) && (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(i.scrollX - e.left, i.scrollY - e.top, 0, 0))), o = this.options.onclone, f = this.clonedReferenceElement, typeof f > "u" ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : n.fonts && n.fonts.ready ? [4, n.fonts.ready] : [3, 2];
|
|
@@ -6051,7 +6050,7 @@ var wH = function(A, c) {
|
|
|
6051
6050
|
}, A.prototype.loadImage = function(c) {
|
|
6052
6051
|
return l2(this, void 0, void 0, function() {
|
|
6053
6052
|
var e, a, r, s, t = this;
|
|
6054
|
-
return
|
|
6053
|
+
return i2(this, function(i) {
|
|
6055
6054
|
switch (i.label) {
|
|
6056
6055
|
case 0:
|
|
6057
6056
|
return e = Z5.isSameOrigin(c), a = !B6(c) && this._options.useCORS === !0 && r2.SUPPORT_CORS_IMAGES && !e, r = !B6(c) && !e && !p6(c) && typeof this._options.proxy == "string" && r2.SUPPORT_CORS_XHR && !a, !e && this._options.allowTaint === !1 && !B6(c) && !p6(c) && !r && !a ? [
|
|
@@ -6441,7 +6440,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6441
6440
|
var a = c[0], r = c[1], s = c[2], t = A[0], i = A[1];
|
|
6442
6441
|
if (!t)
|
|
6443
6442
|
return [0, 0];
|
|
6444
|
-
if (
|
|
6443
|
+
if (j(t) && i && j(i))
|
|
6445
6444
|
return [_(t, e.width), _(i, e.height)];
|
|
6446
6445
|
var n = W4(s);
|
|
6447
6446
|
if (R(t) && (t.value === y1.CONTAIN || t.value === y1.COVER)) {
|
|
@@ -6466,10 +6465,10 @@ var W = function(A, c, e, a, r) {
|
|
|
6466
6465
|
}
|
|
6467
6466
|
if (n) {
|
|
6468
6467
|
var H = 0, v = 0;
|
|
6469
|
-
return
|
|
6468
|
+
return j(t) ? H = _(t, e.width) : j(i) && (v = _(i, e.height)), L1(t) ? H = v * s : (!i || L1(i)) && (v = H / s), [H, v];
|
|
6470
6469
|
}
|
|
6471
6470
|
var L = null, Q = null;
|
|
6472
|
-
if (
|
|
6471
|
+
if (j(t) ? L = _(t, e.width) : i && j(i) && (Q = _(i, e.height)), L !== null && (!i || L1(i)) && (Q = o && f ? L / a * r : e.height), Q !== null && L1(t) && (L = o && f ? Q / r * a : e.width), L !== null && Q !== null)
|
|
6473
6472
|
return [L, Q];
|
|
6474
6473
|
throw new Error("Unable to calculate background-size for element");
|
|
6475
6474
|
}, F1 = function(A, c) {
|
|
@@ -6554,7 +6553,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6554
6553
|
}, c.prototype.renderStack = function(e) {
|
|
6555
6554
|
return l2(this, void 0, void 0, function() {
|
|
6556
6555
|
var a;
|
|
6557
|
-
return
|
|
6556
|
+
return i2(this, function(r) {
|
|
6558
6557
|
switch (r.label) {
|
|
6559
6558
|
case 0:
|
|
6560
6559
|
return a = e.element.container.styles, a.isVisible() ? [4, this.renderStackContent(e)] : [3, 2];
|
|
@@ -6570,7 +6569,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6570
6569
|
});
|
|
6571
6570
|
}, c.prototype.renderNode = function(e) {
|
|
6572
6571
|
return l2(this, void 0, void 0, function() {
|
|
6573
|
-
return
|
|
6572
|
+
return i2(this, function(a) {
|
|
6574
6573
|
switch (a.label) {
|
|
6575
6574
|
case 0:
|
|
6576
6575
|
if (A2(
|
|
@@ -6614,7 +6613,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6614
6613
|
}, c.prototype.renderTextNode = function(e, a) {
|
|
6615
6614
|
return l2(this, void 0, void 0, function() {
|
|
6616
6615
|
var r, s, t, i, n, l, o, f, h = this;
|
|
6617
|
-
return
|
|
6616
|
+
return i2(this, function(u) {
|
|
6618
6617
|
return r = this.createFontStyle(a), s = r[0], t = r[1], i = r[2], this.ctx.font = s, this.ctx.direction = a.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", n = this.fontMetrics.getMetrics(t, i), l = n.baseline, o = n.middle, f = a.paintOrder, e.textBounds.forEach(function(m) {
|
|
6619
6618
|
f.forEach(function(C) {
|
|
6620
6619
|
switch (C) {
|
|
@@ -6656,7 +6655,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6656
6655
|
}, c.prototype.renderNodeContent = function(e) {
|
|
6657
6656
|
return l2(this, void 0, void 0, function() {
|
|
6658
6657
|
var a, r, s, t, i, n, v, v, l, o, f, h, Q, u, m, M, C, d, H, v, L, Q, M;
|
|
6659
|
-
return
|
|
6658
|
+
return i2(this, function(p) {
|
|
6660
6659
|
switch (p.label) {
|
|
6661
6660
|
case 0:
|
|
6662
6661
|
this.applyEffects(e.getEffects(
|
|
@@ -6757,7 +6756,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6757
6756
|
}, c.prototype.renderStackContent = function(e) {
|
|
6758
6757
|
return l2(this, void 0, void 0, function() {
|
|
6759
6758
|
var a, r, H, s, t, H, i, n, H, l, o, H, f, h, H, u, m, H, C, d, H;
|
|
6760
|
-
return
|
|
6759
|
+
return i2(this, function(v) {
|
|
6761
6760
|
switch (v.label) {
|
|
6762
6761
|
case 0:
|
|
6763
6762
|
if (A2(
|
|
@@ -6856,12 +6855,12 @@ var W = function(A, c, e, a, r) {
|
|
|
6856
6855
|
}, c.prototype.renderBackgroundImage = function(e) {
|
|
6857
6856
|
return l2(this, void 0, void 0, function() {
|
|
6858
6857
|
var a, r, s, t, i, n;
|
|
6859
|
-
return
|
|
6858
|
+
return i2(this, function(l) {
|
|
6860
6859
|
switch (l.label) {
|
|
6861
6860
|
case 0:
|
|
6862
6861
|
a = e.styles.backgroundImage.length - 1, r = function(o) {
|
|
6863
6862
|
var f, h, u, q, u2, m2, T, a2, N, m, q, u2, m2, T, a2, C, d, H, v, L, Q, M, p, x, N, b, q, h2, C2, T, a2, W2, u2, m2, i1, b2, X2, n1, o1, E2, l1, k2;
|
|
6864
|
-
return
|
|
6863
|
+
return i2(this, function(g1) {
|
|
6865
6864
|
switch (g1.label) {
|
|
6866
6865
|
case 0:
|
|
6867
6866
|
if (o.type !== 0)
|
|
@@ -6913,7 +6912,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6913
6912
|
});
|
|
6914
6913
|
}, c.prototype.renderSolidBorder = function(e, a, r) {
|
|
6915
6914
|
return l2(this, void 0, void 0, function() {
|
|
6916
|
-
return
|
|
6915
|
+
return i2(this, function(s) {
|
|
6917
6916
|
return this.path(wA(r, a)), this.ctx.fillStyle = e2(e), this.ctx.fill(), [
|
|
6918
6917
|
2
|
|
6919
6918
|
/*return*/
|
|
@@ -6923,7 +6922,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6923
6922
|
}, c.prototype.renderDoubleBorder = function(e, a, r, s) {
|
|
6924
6923
|
return l2(this, void 0, void 0, function() {
|
|
6925
6924
|
var t, i;
|
|
6926
|
-
return
|
|
6925
|
+
return i2(this, function(n) {
|
|
6927
6926
|
switch (n.label) {
|
|
6928
6927
|
case 0:
|
|
6929
6928
|
return a < 3 ? [4, this.renderSolidBorder(e, r, s)] : [3, 2];
|
|
@@ -6943,7 +6942,7 @@ var W = function(A, c, e, a, r) {
|
|
|
6943
6942
|
}, c.prototype.renderNodeBackgroundAndBorders = function(e) {
|
|
6944
6943
|
return l2(this, void 0, void 0, function() {
|
|
6945
6944
|
var a, r, s, t, i, n, l, o, f = this;
|
|
6946
|
-
return
|
|
6945
|
+
return i2(this, function(h) {
|
|
6947
6946
|
switch (h.label) {
|
|
6948
6947
|
case 0:
|
|
6949
6948
|
return this.applyEffects(e.getEffects(
|
|
@@ -7008,7 +7007,7 @@ var W = function(A, c, e, a, r) {
|
|
|
7008
7007
|
}, c.prototype.renderDashedDottedBorder = function(e, a, r, s, t) {
|
|
7009
7008
|
return l2(this, void 0, void 0, function() {
|
|
7010
7009
|
var i, n, l, o, f, h, u, m, C, d, H, v, L, Q, M, p, M, p;
|
|
7011
|
-
return
|
|
7010
|
+
return i2(this, function(x) {
|
|
7012
7011
|
return this.ctx.save(), i = Av(s, r), n = wA(s, r), t === 2 && (this.path(n), this.ctx.clip()), z2(n[0]) ? (l = n[0].start.x, o = n[0].start.y) : (l = n[0].x, o = n[0].y), z2(n[1]) ? (f = n[1].end.x, h = n[1].end.y) : (f = n[1].x, h = n[1].y), r === 0 || r === 2 ? u = Math.abs(l - f) : u = Math.abs(o - h), this.ctx.beginPath(), t === 3 ? this.formatPath(i) : this.formatPath(n.slice(0, 2)), m = a < 3 ? a * 3 : a * 2, C = a < 3 ? a * 2 : a, t === 3 && (m = a, C = a), d = !0, u <= m * 2 ? d = !1 : u <= m * 2 + C ? (H = u / (2 * m + C), m *= H, C *= H) : (v = Math.floor((u + C) / (m + C)), L = (u - v * m) / (v - 1), Q = (u - (v + 1) * m) / v, C = Q <= 0 || Math.abs(C - L) < Math.abs(C - Q) ? L : Q), d && (t === 3 ? this.ctx.setLineDash([0, m + C]) : this.ctx.setLineDash([m, C])), t === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = a) : this.ctx.lineWidth = a * 2 + 1.1, this.ctx.strokeStyle = e2(e), this.ctx.stroke(), this.ctx.setLineDash([]), t === 2 && (z2(n[0]) && (M = n[3], p = n[0], this.ctx.beginPath(), this.formatPath([new g(M.end.x, M.end.y), new g(p.start.x, p.start.y)]), this.ctx.stroke()), z2(n[1]) && (M = n[1], p = n[2], this.ctx.beginPath(), this.formatPath([new g(M.end.x, M.end.y), new g(p.start.x, p.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
|
7013
7012
|
2
|
|
7014
7013
|
/*return*/
|
|
@@ -7018,7 +7017,7 @@ var W = function(A, c, e, a, r) {
|
|
|
7018
7017
|
}, c.prototype.render = function(e) {
|
|
7019
7018
|
return l2(this, void 0, void 0, function() {
|
|
7020
7019
|
var a;
|
|
7021
|
-
return
|
|
7020
|
+
return i2(this, function(r) {
|
|
7022
7021
|
switch (r.label) {
|
|
7023
7022
|
case 0:
|
|
7024
7023
|
return this.options.backgroundColor && (this.ctx.fillStyle = e2(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), a = $H(e), [4, this.renderStack(a)];
|
|
@@ -7066,7 +7065,7 @@ var W = function(A, c, e, a, r) {
|
|
|
7066
7065
|
return c.prototype.render = function(e) {
|
|
7067
7066
|
return l2(this, void 0, void 0, function() {
|
|
7068
7067
|
var a, r;
|
|
7069
|
-
return
|
|
7068
|
+
return i2(this, function(s) {
|
|
7070
7069
|
switch (s.label) {
|
|
7071
7070
|
case 0:
|
|
7072
7071
|
return a = R6(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, e), [4, Hv(a)];
|
|
@@ -7127,7 +7126,7 @@ typeof window < "u" && Z5.setContext(window);
|
|
|
7127
7126
|
var pv = function(A, c) {
|
|
7128
7127
|
return l2(void 0, void 0, void 0, function() {
|
|
7129
7128
|
var e, a, r, s, t, i, n, l, o, f, h, u, m, C, d, H, v, L, Q, M, x, p, x, N, b, q, h2, C2, T, a2, W2, u2, m2, i1, b2, X2, n1, o1, E2, l1;
|
|
7130
|
-
return
|
|
7129
|
+
return i2(this, function(k2) {
|
|
7131
7130
|
switch (k2.label) {
|
|
7132
7131
|
case 0:
|
|
7133
7132
|
if (!A || typeof A != "object")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(n,o4){typeof exports=="object"&&typeof module<"u"?module.exports=o4(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o4):(n=typeof globalThis<"u"?globalThis:n||self,n.LabmakerPlugin=o4(n.Vue))})(this,function(n){"use strict";const o4="",X=(A,c)=>{const e=A.__vccOpts||A;for(const[a,r]of c)e[a]=r;return e},pi={props:["custom-img"],data(){return{imgSRC:this.customImg}},computed:{},methods:{fileUpload(A){const e=A.target.files[0];this.fileProcess(e)},fileProcess(A){this.imgSRC=URL.createObjectURL(A)}},mounted(){}},vi=n.createElementVNode("h1",null,"File Uploader",-1),di={class:"image-uploader"},gi=n.createElementVNode("h1",null,"File Uploader",-1),zi={class:"your-file"},Vi=["src"];function Mi(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock(n.Fragment,null,[vi,n.createElementVNode("div",di,[gi,n.createElementVNode("input",{onChange:c[0]||(c[0]=(...s)=>t.fileUpload&&t.fileUpload(...s)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),n.createElementVNode("div",zi,[n.createElementVNode("img",{src:r.imgSRC,alt:"",scrset:""},null,8,Vi)])])],64)}const wi=X(pi,[["render",Mi]]),kq="",Li={props:["title"],data(){return{}},computed:{}};function Qi(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("header",null,[n.createElementVNode("h1",null,n.toDisplayString(e.title),1)])}const Fi=X(Li,[["render",Qi]]),Iq="",Ui={props:["content"],data(){return{}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)}},mounted(){},beforeMount(){this.stepperStore=this.stepperMain()}},bi={class:"image-container"},xi={class:"image"},yi=["src","alt"],Si=["innerHTML"],Ni=["innerHTML"],Ei=["innerHTML"];function ki(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("div",bi,[n.createElementVNode("div",xi,[n.createElementVNode("img",{src:e.content.src,alt:e.content.alt,class:n.normalizeClass(e.content.class)},null,10,yi),e.content.captionHeader?(n.openBlock(),n.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:e.content.captionHeader},null,8,Si)):n.createCommentVNode("",!0),e.content.caption?(n.openBlock(),n.createElementBlock("span",{key:1,class:"caption",innerHTML:e.content.caption},null,8,Ni)):n.createCommentVNode("",!0),e.content.copyright?(n.openBlock(),n.createElementBlock("span",{key:2,innerHTML:e.content.copyright,class:"copyright"},null,8,Ei)):n.createCommentVNode("",!0)])])}const Ii=X(Ui,[["render",ki],["__scopeId","data-v-45f6f0d2"]]),Tq="",Ti={props:["content"],data(){return{showingKaltura:!1,showingText:!1,buttonText:!1,hasText:!1,video:{width:640,height:480},audio:{width:260,height:80},audioBtn:{width:40,height:40},textversionArray:{}}},watch:{content:function(){this.tvCleaner()}},computed:{kHeight(){if(this.content.kalturaType==="video")if(this.content.height&&this.content.height!=""){let A=this.content.height;return A.slice(-2)==="px"?A.slice(0,-2):this.content.height}else return this.video.height;else if(this.content.kalturaType==="audio")if(this.content.height&&this.content.height!=""){let A=this.content.height;return A.slice(-2)==="px"?A.slice(0,-2):this.content.height}else return this.audio.height;else if(this.content.kalturaType==="audiobtn")return this.audioBtn.height},kWidth(){if(this.content.kalturaType==="video")if(this.content.width&&this.content.width!=""){let A=this.content.width;return A.slice(-2)==="px"?A.slice(0,-2):this.content.width}else return this.video.width;else{if(this.content.kalturaType==="audio")return this.audio.width;if(this.content.kalturaType==="audiobtn")return this.audioBtn.width}}},methods:{getButtonText(A){return A==="video"?this.showingText?"Show Video":"Show Text Version":this.showingText?"Show Audio":"Show Text Version"},textVersionCheck(){this.content.textVersion&&this.content.textVersion.length>1&&(this.hasText=!0)},kalturaLoad(){this.textVersionCheck()},kalturaMedia(A){let c={uiconf_id:"35766781",partner_id:"2061901",entry_id:"",height:"400",width:"640",type:"video"};return c.entry_id=this.content.kalturaEntryId,this.content.kalturaType&&(c.type=this.content.kalturaType),c.type==="audio"?c.uiconf_id="36511471":c.type==="audiobtn"?c.uiconf_id="36582731":c.type==="videocc"&&(c.uiconf_id="35766781"),this.content.standalone&&(this.stepperStore.stepHold=!1),"https://cdnapisec.kaltura.com/p/"+c.partner_id+"/sp/"+c.partner_id+"00/embedIframeJs/uiconf_id/"+c.uiconf_id+"/partner_id/"+c.partner_id+"?iframeembed=true&playerId=Kaltura&entry_id="+c.entry_id},showKaltura(){this.showingKaltura=!0},showText(){this.showingText=!this.showingText,this.buttonText=!this.buttonText},tvCleaner(){let A=document.createElement("div");A.innerHTML=this.content.textVersion;for(let c=0;c<A.children.length;c++){let e=A.children[c];if(e.tagName=="DIV"&&e.className=="panel-default"&&e.children[0].dataset.toggle)for(let a=0;a<e.children.length;a++){let r=e.children[a];if(r.dataset.toggle=="collapse"){let t={heading:r.innerHTML,body:e.children[a+1].innerHTML};this.textversionArray[c]=t}}else this.textversionArray[c]=e.outerHTML}}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("vidText"),this.kalturaLoad(),this.tvCleaner()},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("vidText");setTimeout(()=>{A[0].focus()})}}},Di={key:0,class:"textVersion"},Ki=n.createElementVNode("h1",null,"Text Version",-1),Ri=["innerHTML"],_i=["src","width","height"],Oi=["src","width","height"],Pi=["src","width","height"],Gi={key:2,class:"alert alert-danger"};function Wi(A,c,e,a,r,t){const s=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["kContainer",e.content.class])},[e.content.textVersion&&r.showingText?(n.openBlock(),n.createElementBlock("div",Di,[Ki,n.createElementVNode("div",{innerHTML:e.content.textVersion},null,8,Ri)])):n.createCommentVNode("",!0),!r.showingText&&e.content.kalturaEntryId?(n.openBlock(),n.createElementBlock("div",{key:1,class:"mainVersion",style:n.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[e.content.kalturaType=="video"&&!r.showingKaltura?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["kPoster",{active:r.showingKaltura==!0}]),style:n.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[n.createElementVNode("iframe",{onClick:c[0]||(c[0]=(...i)=>t.showKaltura&&t.showKaltura(...i)),class:"videoIframe",src:t.kalturaMedia(e.content),width:t.kWidth+"px",height:t.kHeight+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,_i)],6)):n.createCommentVNode("",!0),e.content.kalturaType=="audio"?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["kAudio",{active:r.showingKaltura==!0}]),onClick:c[1]||(c[1]=(...i)=>t.showKaltura&&t.showKaltura(...i))},[n.createElementVNode("iframe",{id:"my_iframe",src:t.kalturaMedia(e.content),width:t.kWidth+"px",height:t.kHeight+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Oi)],2)):n.createCommentVNode("",!0),e.content.kalturaType=="audiobtn"?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["kAudiobtn",{active:r.showingKaltura==!0}]),onClick:c[2]||(c[2]=(...i)=>t.showKaltura&&t.showKaltura(...i))},[n.createElementVNode("iframe",{src:t.kalturaMedia(e.content),width:r.audioBtn.width+"px",height:r.audioBtn.height+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Pi)],2)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.content.kalturaEntryId==""?(n.openBlock(),n.createElementBlock("div",Gi,"There is no Kaltura Entry ID")):n.createCommentVNode("",!0),e.content.textVersion?(n.openBlock(),n.createBlock(s,{key:3,size:"medium",type:"primary","aria-label":"text version",class:"toggleSwitch ftSwitch btn btn-primary vidText",onClick:c[3]||(c[3]=n.withModifiers(i=>t.showText(e.content.kalturaType),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.getButtonText(e.content.kalturaType)),1)]),_:1})):n.createCommentVNode("",!0)],2)}const Xi=X(Ti,[["render",Wi]]),Dq="",qi={props:["content"],data(){return{show:!0}},computed:{getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts},feedbackHeader(){return this.stepperStore.getShowFeedbackAttempts?"Too many Attempts":this.content.feedbackHeader},feedbackWidth(){return this.content.feedbackWidth?this.content.feedbackWidth:"50%"}},methods:{feedbackClose(){this.content.finalInstructions&&(this.stepperStore.completedDirections[this.stepperStore.currentPage].display=!1),this.content.instructions&&(this.stepperStore.directions[this.stepperStore.currentPage].display=!1),this.stepperStore.showFeedback=!1,this.stepperStore.showFeedbackAttempts=!1,this.stepperStore.lastPageFocus()}},mounted(){},beforeMount(){var A;this.stepperStore=this.stepperMain(),((A=this.content.feedbackContent)==null?void 0:A.type)==="media"&&this.content.feedbackContent.fieldValues.kalturaType==="video"&&(this.content.feedbackContent.fieldValues.width="480",this.content.feedbackContent.fieldValues.height="360",this.content.feedbackWidth="80%")}},Yi={class:"my-header"},Ji=["id","innerHTML"],$i=["innerHTML"],ji={key:1},Zi={key:0},Ao=["src"],co=["innerHTML"],eo={class:"dialog-footer"};function ao(A,c,e,a,r,t){const s=n.resolveComponent("lab-kaltura"),i=n.resolveComponent("lab-image"),o=n.resolveComponent("el-button"),f=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(f,{width:t.feedbackWidth,modelValue:r.show,"onUpdate:modelValue":c[1]||(c[1]=l=>r.show=l),"before-close":t.feedbackClose},{header:n.withCtx(({close:l,titleId:m,titleClass:h})=>[n.createElementVNode("div",Yi,[n.createElementVNode("h4",{id:m,class:n.normalizeClass(h),innerHTML:t.feedbackHeader},null,10,Ji)])]),footer:n.withCtx(()=>[n.createElementVNode("span",eo,[n.createVNode(o,{size:"small",id:"feedbackClose",type:"primary",onClick:c[0]||(c[0]=n.withModifiers(l=>t.feedbackClose(),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode("Close")]),_:1})])]),default:n.withCtx(()=>[t.getShowFeedbackAttempts?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.content.feedbackAttempts?(n.openBlock(),n.createElementBlock("p",{key:0,innerHTML:e.content.feedbackAttempts},null,8,$i)):(n.openBlock(),n.createElementBlock("p",ji,"You have tried too many times, the correct answer has been provided for you."))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.content.feedbackContent)+" ",1),e.content.feedbackContent?(n.openBlock(),n.createElementBlock("div",Zi,[e.content.feedbackContent.type==="media"?(n.openBlock(),n.createBlock(s,{key:0,content:e.content.feedbackContent.fieldValues,class:n.normalizeClass([e.content.feedbackContent.fieldValues.class,{video:e.content.feedbackContent.fieldValues.kalturaType==="video"}])},null,8,["content","class"])):n.createCommentVNode("",!0),e.content.feedbackContent.type==="image"?(n.openBlock(),n.createBlock(i,{key:1,content:e.content.feedbackContent.fieldValues},null,8,["content"])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.content.feedbackImage?(n.openBlock(),n.createElementBlock("img",{key:1,class:"im-ButtonImage",src:e.content.feedbackImage,alt:"button image"},null,8,Ao)):n.createCommentVNode("",!0),n.createElementVNode("p",{innerHTML:e.content.feedback},null,8,co)],64))]),_:1},8,["width","modelValue","before-close"])}const m8=X(qi,[["render",ao]]),Kq="",ro={components:{Feedback:m8},inject:["message"],props:["content"],data(){return{dialogVisible:!1,feedbackVisibility:[],feedbackIndex:0}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)},changePage(A,c){A.pageLink?this.stepperStore.currentPage=A.pageLink:A.feedback&&(this.feedbackIndex=c,this.feedbackVisibility.indexOf(c)===-1&&this.feedbackVisibility.push(c),this.stepperStore.showFeedback=!0,this.content.hotspots.length-1===this.feedbackVisibility.length-1&&this.stepperStore.finishSteps(),setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()}))},showFeedback(A){return!!(this.stepperStore.getShowFeedback&&this.feedbackIndex===A)}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("hotspot");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("hotspot")}},to={class:"imageMarker"},so=["src","alt"],no={class:"hotspotArea"},io=["src","alt"],oo={class:"im-buttonText"};function lo(A,c,e,a,r,t){const s=n.resolveComponent("el-button"),i=n.resolveComponent("Feedback");return n.openBlock(),n.createElementBlock("div",to,[n.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,so),n.createElementVNode("div",no,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.hotspots,(o,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(s,{type:o.buttonType,onClick:n.withModifiers(l=>t.changePage(o,f),["stop"]),id:"hotspot_"+f,class:n.normalizeClass([["is-"+o.buttonShape,{noBG:o.buttonImage},o.class],"hotspot"]),style:n.normalizeStyle({top:t.pixelFormat(o.cordinatesX),left:t.pixelFormat(o.cordinatesY),width:t.pixelFormat(o.dimensionsW),height:t.pixelFormat(o.dimensionsH)}),icon:o.buttonIcon},{default:n.withCtx(()=>[o.buttonImage?(n.openBlock(),n.createElementBlock("img",{key:0,class:"im-ButtonImage",src:o.buttonImage,alt:"image marker "+Number(f+1)},null,8,io)):n.createCommentVNode("",!0),n.createElementVNode("span",oo,n.toDisplayString(o.name),1)]),_:2},1032,["type","onClick","id","class","style","icon"]),t.showFeedback(f)?(n.openBlock(),n.createBlock(i,{key:0,content:o},null,8,["content"])):n.createCommentVNode("",!0)],64))),256))])])}const fo=X(ro,[["render",lo],["__scopeId","data-v-fd3c7401"]]),Rq="",mo={props:["content"],data(){return{imageReplaced:!1,imageSrc:this.content.image,imageAlt:this.content.imageAlt}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)},async changeImage(A){this.imageReplaced=!0,this.imageSrc=this.content.hotspots[A].imageOverlay,this.imageAlt=this.content.hotspots[A].imageOverlayAlt,await this.stepperStore.finishSteps(),this.stepperStore.lastPageFocus()}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("instructions");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("instructions")}},ho=["innerHTML"],Ho=["src","alt"],uo={class:"hotspotArea"};function Co(A,c,e,a,r,t){const s=n.resolveComponent("el-col"),i=n.resolveComponent("el-button"),o=n.resolveComponent("el-row");return n.openBlock(),n.createBlock(o,{class:"imageReplacer"},{default:n.withCtx(()=>[n.createVNode(s,{span:12},{default:n.withCtx(()=>[n.createElementVNode("p",{class:"imageReplacerDescription",innerHTML:e.content.description},null,8,ho)]),_:1}),n.createVNode(s,{span:12},{default:n.withCtx(()=>[n.createElementVNode("img",{class:"im-ButtonImage",src:r.imageSrc,alt:r.imageAlt},null,8,Ho),n.createElementVNode("div",uo,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.hotspots,(f,l)=>(n.openBlock(),n.createBlock(i,{type:f.buttonType,onClick:n.withModifiers(m=>t.changeImage(l),["stop"]),class:"hotspot",style:n.normalizeStyle({top:t.pixelFormat(f.cordinatesX),left:t.pixelFormat(f.cordinatesY),width:t.pixelFormat(f.dimensionsW),height:t.pixelFormat(f.dimensionsH)}),icon:f.buttonIcon},null,8,["type","onClick","style","icon"]))),256))])]),_:1})]),_:1})}const Bo=X(mo,[["render",Co],["__scopeId","data-v-d6c87f03"]]),_q="",po={components:{},props:["content"],data(){return{quizArray:[],quizOptions:[],quizItemCompleted:[],input:[],totalAttempts:99,correctChoices:[],feedbackObject:{},value1:""}},watch:{},computed:{quizArrayCount(){return this.quizArray.length-1},getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{quizArrayCompleted(A){return!(this.quizItemCompleted.includes(A)||A===0)},prepareQuiz(){this.quizArray=this.content.quiz.split("*_").filter(A=>A),this.content.options.forEach((A,c)=>{A.options?A.random?this.quizOptions.push(this.shuffle(A.options)):this.quizOptions.push(A.options):this.quizOptions.push(!1)})},quizType(A){return this.content.options[A]&&this.content.options[A].type?this.content.options[A].type:!1},quizDisplay(A){return this.content.options[A]&&this.content.options[A].display?this.content.options[A].display:"Select"},quizClass(A){return this.content.options[A]&&this.content.options[A].class?this.content.options[A].class:""},shuffle(A){let c=A.length,e;for(;c!=0;)e=Math.floor(Math.random()*c),c--,[A[c],A[e]]=[A[e],A[c]];return A},choicesCheck(){if(this.getAttempt<this.content.attempts){let A=!0,c=!1;this.input.length===0?this.content.options[0].stopFlow&&(c=!0,this.feedbackObject.feedbackHeader=this.content.options[0].notSelectedHeader,this.feedbackObject.feedback=this.content.options[0].notSelectedBody):this.content.options.forEach((e,a)=>{this.input[a]?this.input[a]!==this.content.options[a].answer&&(A=!1):this.content.options[this.input.length].stopFlow&&(c=!0,this.feedbackObject.feedbackHeader=this.content.options[this.input.length].notSelectedHeader,this.feedbackObject.feedback=this.content.options[this.input.length].notSelectedBody)}),this.stepperStore.attempts=this.getAttempt+1,A===!0&&this.input.length===this.quizArray.length?(this.choicesComplete(),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback):(c||(this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback),this.stepperStore.attempts=this.getAttempt+1)}else this.feedbackObject.feedbackAttempts=this.content.feedbackAttempts,this.stepperStore.showFeedbackAttempts=!0,this.choicesComplete();this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.quizArray.forEach((A,c)=>{this.input[c]?this.input[c]=this.content.options[c].answer:this.input.push(this.content.options[c].answer),this.quizItemCompleted.push(c+1)}),this.stepperStore.finishSteps()},choicesMade(A){this.quizItemCompleted.includes(A+1)===!1&&this.quizItemCompleted.push(A+1)},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.prepareQuiz(),this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("el-input__inner");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-input__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}};function vo(A,c,e,a,r,t){const s=n.resolveComponent("el-option"),i=n.resolveComponent("el-select"),o=n.resolveComponent("el-date-picker"),f=n.resolveComponent("el-button"),l=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["drop-down",e.content.class])},[n.createElementVNode("p",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.quizArray,(m,h)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("span",{class:n.normalizeClass(t.quizClass(h))},[n.createElementVNode("span",{class:n.normalizeClass("quizText quizSection_"+h)},n.toDisplayString(m)+" ",3),t.quizType(h)==="choose"?(n.openBlock(),n.createBlock(i,{key:0,onChange:H=>t.choicesMade(h),modelValue:r.input[h],"onUpdate:modelValue":H=>r.input[h]=H,placeholder:t.quizDisplay(h)},{default:n.withCtx(()=>[t.quizArrayCompleted(h)?n.createCommentVNode("",!0):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.quizOptions[h],H=>(n.openBlock(),n.createBlock(s,{key:H,label:H,value:H},null,8,["label","value"]))),128))]),_:2},1032,["onChange","modelValue","onUpdate:modelValue","placeholder"])):n.createCommentVNode("",!0),t.quizType(h)==="date"?(n.openBlock(),n.createBlock(o,{key:1,onChange:H=>t.choicesMade(h),modelValue:r.input[h],"onUpdate:modelValue":H=>r.input[h]=H,type:"date",placeholder:t.quizDisplay(h),format:e.content.options[h].format,"value-format":e.content.options[h].format,disabled:t.quizArrayCompleted(h)},null,8,["onChange","modelValue","onUpdate:modelValue","placeholder","format","value-format","disabled"])):n.createCommentVNode("",!0)],2),n.createTextVNode(" ")],64))),256))]),n.createVNode(f,{size:"small",type:"primary",class:"drop-down-submit",onClick:c[0]||(c[0]=m=>t.choicesCheck())},{default:n.withCtx(()=>[n.createTextVNode("Submit")]),_:1}),t.showFeedback()?(n.openBlock(),n.createBlock(l,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const go=X(po,[["render",vo]]),Oq="",zo={components:{},props:["content"],data(){return{quizArray:[],input:[],totalAttempts:99,correctChoices:[],feedbackObject:{}}},watch:{},computed:{quizArrayCount(){return this.quizArray.length-1},getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{prepareQuiz(){this.quizArray=this.content.quiz.split("*_")},choicesCheck(){this.getAttempt<this.content.attempts?(this.input.forEach((A,c)=>{if(this.content.answers[c]===A)this.correctChoices.includes(c)===!1&&this.correctChoices.push(c);else if(this.correctChoices.includes(c)===!0){let e=this.correctChoices.indexOf(c);this.correctChoices.splice(e,1)}}),this.input.length===0?(this.feedbackObject.feedbackHeader="You did not enter an answer",this.feedbackObject.feedback="Please enter your choice in the input field"):this.correctChoices.length===this.content.answers.length?(this.choicesComplete(),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback):(this.stepperStore.attempts=this.getAttempt+1,this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback)):(this.feedbackObject.feedbackAttempts=this.content.feedbackAttempts,this.stepperStore.showFeedbackAttempts=!0,this.choicesComplete()),this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.input.forEach((A,c)=>{this.input[c]=this.content.answers[c]}),this.stepperStore.finishSteps()},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.prepareQuiz(),this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("el-input__inner");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-input__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}};function Vo(A,c,e,a,r,t){const s=n.resolveComponent("el-input"),i=n.resolveComponent("el-button"),o=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fill-blank",e.content.class])},[n.createElementVNode("p",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.quizArray,(f,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createTextVNode(n.toDisplayString(f),1),l<t.quizArrayCount?(n.openBlock(),n.createBlock(s,{key:0,modelValue:r.input[l],"onUpdate:modelValue":m=>r.input[l]=m,placeholder:"Please input",size:"small"},null,8,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)],64))),256))]),n.createVNode(i,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[0]||(c[0]=f=>t.choicesCheck())},{default:n.withCtx(()=>[n.createTextVNode("Submit")]),_:1}),t.showFeedback()?(n.openBlock(),n.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const Mo=X(zo,[["render",Vo]]),Pq="",wo={components:{},props:["content"],data(){return{feedbackIndex:-1,totalAttempts:99}},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{leftColWidth(){return this.content.leftColWidth?Number(this.content.leftColWidth):12},rightColWidth(){return this.content.leftColWidth?this.content.leftColWidth<24?24-this.content.leftColWidth:24:12},pixelFormat(A){return this.stepperStore.pixelFormat(A)},choicesComplete(){let A=document.querySelectorAll(".selectableButton");for(let c=0;c<A.length;c++)A[c].classList.add("is-failure"),A[c].setAttribute("disabled",!0),this.content.choices[c].correct&&A[c].classList.add("is-success");this.stepperStore.finishSteps()},choicesCheck(A){this.getAttempt<Number(this.content.attempts)?this.content.choices[A].correct===!0?(console.log(" it was true"),this.choicesComplete()):this.stepperStore.attempts=this.getAttempt+1:(this.content.choices[A].correct!==!0&&(this.stepperStore.showFeedbackAttempts=!0),this.choicesComplete()),this.feedbackIndex=A,this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},shuffledChoices(){let A=this.content.choices;for(let c=A.length-1;c>0;c--){const e=Math.floor(Math.random()*(c+1));[A[c],A[e]]=[A[e],A[c]]}this.content.choices=A},showFeedback(A){return this.stepperStore.getShowFeedback&&this.feedbackIndex===A?(this.content.choices[A].correct&&this.choicesComplete(),!0):!1}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("selectableButton");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("selectableButton"),this.feedbackIndex=-1,this.shuffledChoices(),this.content.attempts&&(this.totalAttempts=this.content.attempts)}},Lo=["innerHTML"],Qo={class:"buttonSpan"},Fo=["src","alt"],Uo={class:"selectable-buttonText"};function bo(A,c,e,a,r,t){const s=n.resolveComponent("lab-image"),i=n.resolveComponent("el-col"),o=n.resolveComponent("el-divider"),f=n.resolveComponent("el-button"),l=n.resolveComponent("lab-feedback"),m=n.resolveComponent("el-row");return n.openBlock(),n.createBlock(m,{id:e.content.id,class:n.normalizeClass(["selectable",e.content.classes])},{default:n.withCtx(()=>[n.createVNode(i,{span:t.leftColWidth(A.index)},{default:n.withCtx(()=>[e.content.directions?(n.openBlock(),n.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,Lo)):n.createCommentVNode("",!0),e.content.image?(n.openBlock(),n.createBlock(s,{key:1,content:e.content.image},null,8,["content"])):n.createCommentVNode("",!0)]),_:1},8,["span"]),n.createVNode(i,{span:t.rightColWidth(A.index),class:"selectArea"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.choices,(h,H)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[!e.content.noDivider&&H>0?(n.openBlock(),n.createBlock(o,{key:0})):n.createCommentVNode("",!0),n.createVNode(f,{size:"small",type:"primary",class:"selectableButton",style:n.normalizeStyle({width:t.pixelFormat(e.content.choiceWidth),height:t.pixelFormat(e.content.choiceHeight)}),onClick:u=>t.choicesCheck(H)},{default:n.withCtx(()=>[n.createElementVNode("div",Qo,[h.image?(n.openBlock(),n.createElementBlock("img",{key:0,class:"im-ButtonImage",src:h.image,alt:h.alt?h.alt:"button image"},null,8,Fo)):n.createCommentVNode("",!0),n.createElementVNode("span",Uo,n.toDisplayString(h.text),1)])]),_:2},1032,["style","onClick"]),t.showFeedback(H)?(n.openBlock(),n.createBlock(l,{key:1,content:h},null,8,["content"])):n.createCommentVNode("",!0)],64))),256))]),_:1},8,["span"])]),_:1},8,["id","class"])}const xo=X(wo,[["render",bo],["__scopeId","data-v-0f6d367e"]]),Gq="",yo={components:{},props:["content"],data(){return{input:"",totalAttempts:99,correctChoices:[],feedbackObject:{}}},watch:{},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{choicesCheck(){if(this.getAttempt<this.content.attempts){let A=!1;this.content.answers.forEach((c,e)=>{let a=c.toLowerCase();this.input.toLowerCase().includes(a)||(A=!0)}),A?(this.stepperStore.attempts=this.getAttempt+1,this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback):(this.choicesComplete(),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback)}else this.feedbackObject.feedbackAttempts=this.content.feedbackAttempts,this.stepperStore.showFeedbackAttempts=!0,this.choicesComplete();this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.stepperStore.finishSteps()},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("el-textarea__inner");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-textarea__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}};function So(A,c,e,a,r,t){const s=n.resolveComponent("el-input"),i=n.resolveComponent("el-button"),o=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["textbox",e.content.class])},[n.createElementVNode("p",null,n.toDisplayString(e.content.quiz),1),n.createVNode(s,{modelValue:r.input,"onUpdate:modelValue":c[0]||(c[0]=f=>r.input=f),autosize:{minRows:4,maxRows:8},type:"textarea",placeholder:"Please input"},null,8,["modelValue"]),n.createVNode(i,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[1]||(c[1]=f=>t.choicesCheck())},{default:n.withCtx(()=>[n.createTextVNode("Submit")]),_:1}),t.showFeedback()?(n.openBlock(),n.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const No=X(yo,[["render",So]]),Wq="",Eo={components:{},props:["content"],data(){return{quizArray:[],quizOptions:[],input:[],totalAttempts:99,correctChoices:[],feedbackObject:{},value1:"",showMenuOverlay:!1}},watch:{},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{showSub(A){let c=document.getElementById(A);c.classList.contains("jl-menu-sub_show")?(this.showMenuOverlay=!1,this.hideSubs()):(this.showMenuOverlay=!0,c.classList.add("jl-menu-sub_show"))},showSubSub(A){let c=document.getElementById(A);c.classList.contains("jl-menu-sub-sub_show")?(this.showMenuOverlay=!1,this.hideSubs()):(this.showMenuOverlay=!0,c.classList.add("jl-menu-sub-sub_show"))},hideSubs(){this.showMenuOverlay=!1;let A=document.getElementsByClassName("jl-menu-sub_show");for(;A.length>0;)A[0].classList.remove("jl-menu-sub_show");let c=document.getElementsByClassName("jl-menu-sub-sub_show");for(;c.length>0;)c[0].classList.remove("jl-menu-sub-sub_show")},choicesCheck(A){this.hideSubs();let c=!1,e="";if(this.getAttempt<this.content.attempts){if(console.log("got some left"),typeof A=="string"){let a=A.split("-");a.forEach((r,t)=>{a[t]=Number(r)}),a.length===2?this.content.menu[a[0]].subMenu[a[1]].correct&&(this.content.menu[a[0]].subMenu[a[1]].page&&(e=this.content.menu[a[0]].subMenu[a[1]].page),c=!0):a.length===3&&this.content.menu[a[0]].subMenu[a[1]].subMenu[a[2]].correct&&(this.content.menu[a[0]].subMenu[a[1]].subMenu[a[2]].page&&(e=this.content.menu[a[0]].subMenu[a[1]].subMenu[a[2]].page),c=!0)}else this.content.menu[A].correct&&(this.content.menu[A].page&&(e=this.content.menu[A].page),c=!0);c?(this.choicesComplete(e),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback):(this.stepperStore.attempts=this.getAttempt+1,this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback)}else this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.feedbackAttempts,this.choicesComplete();e===""&&(this.stepperStore.showFeedback=!0),setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){this.stepperStore.finishSteps(),typeof A<"u"&&A!==""&&(this.stepperStore.currentPage=A)},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){this.stepperStore.getDirections.display===!1&&(document.getElementsByClassName("jl-menu-sub"),setTimeout(()=>{}))},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("jl-menu-sub"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}},ko={key:0},Io=["index","onClick"],To={class:"jl-menu-sub__title"},Do=["id"],Ko=["index","onClick"],Ro={class:"jl-menu-sub-sub__title"},_o=["id"],Oo=["index","onClick"],Po=["onClick"],Go={key:1,class:"jl-menu-item"},Wo=["index","onClick"];function Xo(A,c,e,a,r,t){const s=n.resolveComponent("CaretBottom"),i=n.resolveComponent("el-icon"),o=n.resolveComponent("CaretRight"),f=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["menu-chooser",e.content.class])},[r.showMenuOverlay?(n.openBlock(),n.createElementBlock("div",{key:0,class:"nav-mask",onClick:c[0]||(c[0]=(...l)=>t.hideSubs&&t.hideSubs(...l))})):n.createCommentVNode("",!0),n.createElementVNode("p",null,n.toDisplayString(e.content.quiz),1),n.createElementVNode("div",{class:"jl-menu",onSelect:c[1]||(c[1]=(...l)=>t.choicesCheck&&t.choicesCheck(...l))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.menu,(l,m)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[l.subMenu?(n.openBlock(),n.createElementBlock("div",ko,[n.createElementVNode("button",{class:n.normalizeClass("jl-menu-sub sub-"+m),index:m,tabindex:"0",role:"menuitem",onClick:n.withModifiers(h=>t.showSub("sub-"+m),["stop"])},[n.createElementVNode("div",To,[n.createTextVNode(n.toDisplayString(l.name)+" ",1),n.createVNode(i,null,{default:n.withCtx(()=>[n.createVNode(s)]),_:1})])],10,Io),n.createElementVNode("div",{class:"jl-menu-sub-menu",id:"sub-"+m},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.subMenu,(h,H)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[h.subMenu?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{class:n.normalizeClass("jl-menu-sub-sub sub-sub-"+H),index:m+"-"+H,tabindex:"0",role:"menuitem",onClick:n.withModifiers(u=>t.showSubSub("sub-sub-"+m),["stop"])},[n.createElementVNode("div",Ro,[n.createTextVNode(n.toDisplayString(h.name),1),n.createVNode(i,null,{default:n.withCtx(()=>[n.createVNode(o)]),_:1})])],10,Ko),n.createElementVNode("div",{class:"jl-menu-sub-sub-menu",id:"sub-sub-"+m},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.subMenu,(u,p)=>(n.openBlock(),n.createElementBlock("button",{class:"jl-menu-sub-sub-item",index:m+"-"+H+"-"+p,tabindex:"0",role:"menuitem",onClick:n.withModifiers(z=>t.choicesCheck(m+"-"+H+"-"+p),["stop"])},[n.createElementVNode("div",null,n.toDisplayString(u.name),1)],8,Oo))),256))],8,_o)],64)):(n.openBlock(),n.createElementBlock("button",{key:1,class:"jl-menu-sub-item",tabindex:"0",role:"menuitem",onClick:n.withModifiers(u=>t.choicesCheck(m+"-"+H),["stop"])},[n.createElementVNode("div",null,n.toDisplayString(h.name),1)],8,Po))],64))),256))],8,Do)])):(n.openBlock(),n.createElementBlock("div",Go,[n.createElementVNode("button",{class:"jl-menu-sub",index:m,tabindex:"0",role:"menuitem",onClick:n.withModifiers(h=>t.choicesCheck(m),["stop"])},n.toDisplayString(l.name),9,Wo)]))],64))),256))],32),t.showFeedback()?(n.openBlock(),n.createBlock(f,{key:1,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const qo=X(Eo,[["render",Xo]]),Xq="",h8={y:{t:"top",m:"marginTop",b:"bottom"},x:{l:"left",m:"marginLeft",r:"right"}};function Yo(A){A.forEach((c,e)=>{document.documentElement.addEventListener(e,c)})}function Jo(A){A.forEach((c,e)=>{document.documentElement.removeEventListener(e,c)})}const $o={name:"vue-drag-resize",emits:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"],props:{stickSize:{type:Number,default:8},parentScaleX:{type:Number,default:1},parentScaleY:{type:Number,default:1},isActive:{type:Boolean,default:!1},preventActiveBehavior:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},aspectRatio:{type:Boolean,default:!1},parentLimitation:{type:Boolean,default:!1},snapToGrid:{type:Boolean,default:!1},gridX:{type:Number,default:50,validator(A){return A>=0}},gridY:{type:Number,default:50,validator(A){return A>=0}},parentW:{type:Number,default:0,validator(A){return A>=0}},parentH:{type:Number,default:0,validator(A){return A>=0}},w:{type:[String,Number],default:200,validator(A){return typeof A=="string"?A==="auto":A>=0}},h:{type:[String,Number],default:200,validator(A){return typeof A=="string"?A==="auto":A>=0}},minw:{type:Number,default:50,validator(A){return A>=0}},minh:{type:Number,default:50,validator(A){return A>=0}},x:{type:Number,default:0,validator(A){return typeof A=="number"}},y:{type:Number,default:0,validator(A){return typeof A=="number"}},z:{type:[String,Number],default:"auto",validator(A){return typeof A=="string"?A==="auto":A>=0}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},sticks:{type:Array,default(){return["tl","tm","tr","mr","br","bm","bl","ml"]}},axis:{type:String,default:"both",validator(A){return["x","y","both","none"].indexOf(A)!==-1}},contentClass:{type:String,required:!1,default:""}},data(){return{fixAspectRatio:null,active:null,zIndex:null,parentWidth:null,parentHeight:null,left:null,top:null,right:null,bottom:null,minHeight:null}},beforeCreate(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null},mounted(){this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-(this.w==="auto"?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-(this.h==="auto"?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up]]),Yo(this.domEvents),this.dragHandle&&[...this.$el.querySelectorAll(this.dragHandle)].forEach(A=>{A.setAttribute("data-drag-handle",this._uid)}),this.dragCancel&&[...this.$el.querySelectorAll(this.dragCancel)].forEach(A=>{A.setAttribute("data-drag-cancel",this._uid)})},beforeUnmount(){Jo(this.domEvents)},methods:{deselect(){this.preventActiveBehavior||(this.active=!1)},move(A){if(!this.stickDrag&&!this.bodyDrag)return;A.stopPropagation();const c=typeof A.pageX<"u"?A.pageX:A.touches[0].pageX,e=typeof A.pageY<"u"?A.pageY:A.touches[0].pageY,{dimensionsBeforeMove:a}=this,r={x:(a.pointerX-c)/this.parentScaleX,y:(a.pointerY-e)/this.parentScaleY};if(this.stickDrag&&this.stickMove(r),this.bodyDrag){if(this.axis==="x")r.y=0;else if(this.axis==="y")r.x=0;else if(this.axis==="none")return;this.bodyMove(r)}},up(A){this.stickDrag?this.stickUp(A):this.bodyDrag&&this.bodyUp(A)},bodyDown(A){const{target:c,button:e}=A;if(this.preventActiveBehavior||(this.active=!0),e&&e!==0||(this.$emit("clicked",A),!this.active)||this.dragHandle&&c.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&c.getAttribute("data-drag-cancel")===this._uid.toString())return;typeof A.stopPropagation<"u"&&A.stopPropagation(),typeof A.preventDefault<"u"&&A.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);const a=typeof A.pageX<"u"?A.pageX:A.touches[0].pageX,r=typeof A.pageY<"u"?A.pageY:A.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:a,pointerY:r}),this.parentLimitation&&(this.limits=this.calcDragLimitation())},bodyMove(A){const{dimensionsBeforeMove:c,parentWidth:e,parentHeight:a,gridX:r,gridY:t,width:s,height:i}=this;let o=c.top-A.y,f=c.bottom+A.y,l=c.left-A.x,m=c.right+A.x;if(this.snapToGrid){let h=!0,H=!0,u=o-Math.floor(o/t)*t,p=a-f-Math.floor((a-f)/t)*t,z=l-Math.floor(l/r)*r,C=e-m-Math.floor((e-m)/r)*r;u>t/2&&(u-=t),p>t/2&&(p-=t),z>r/2&&(z-=r),C>r/2&&(C-=r),Math.abs(p)<Math.abs(u)&&(h=!1),Math.abs(C)<Math.abs(z)&&(H=!1),o-=h?u:p,f=a-i-o,l-=H?z:C,m=e-s-l}({newLeft:this.left,newRight:this.right,newTop:this.top,newBottom:this.bottom}=this.rectCorrectionByLimit({newLeft:l,newRight:m,newTop:o,newBottom:f})),this.$emit("dragging",this.rect)},bodyUp(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}},stickDown(A,c,e=!1){if((!this.isResizable||!this.active)&&!e)return;this.stickDrag=!0;const a=typeof c.pageX<"u"?c.pageX:c.touches[0].pageX,r=typeof c.pageY<"u"?c.pageY:c.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:a,pointerY:r}),this.currentStick=A,this.limits=this.calcResizeLimits()},saveDimensionsBeforeMove({pointerX:A,pointerY:c}){this.dimensionsBeforeMove.pointerX=A,this.dimensionsBeforeMove.pointerY=c,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height},stickMove(A){const{currentStick:c,dimensionsBeforeMove:e,gridY:a,gridX:r,snapToGrid:t,parentHeight:s,parentWidth:i}=this;let o=e.top,f=e.bottom,l=e.left,m=e.right;switch(c[0]){case"b":f=e.bottom+A.y,t&&(f=s-Math.round((s-f)/a)*a);break;case"t":o=e.top-A.y,t&&(o=Math.round(o/a)*a);break}switch(c[1]){case"r":m=e.right+A.x,t&&(m=i-Math.round((i-m)/r)*r);break;case"l":l=e.left-A.x,t&&(l=Math.round(l/r)*r);break}({newLeft:l,newRight:m,newTop:o,newBottom:f}=this.rectCorrectionByLimit({newLeft:l,newRight:m,newTop:o,newBottom:f})),this.aspectRatio&&({newLeft:l,newRight:m,newTop:o,newBottom:f}=this.rectCorrectionByAspectRatio({newLeft:l,newRight:m,newTop:o,newBottom:f})),this.left=l,this.right=m,this.top=o,this.bottom=f,this.$emit("resizing",this.rect)},stickUp(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},calcDragLimitation(){const{parentWidth:A,parentHeight:c}=this;return{left:{min:0,max:A-this.width},right:{min:0,max:A-this.width},top:{min:0,max:c-this.height},bottom:{min:0,max:c-this.height}}},calcResizeLimits(){const{aspectFactor:A,width:c,height:e,bottom:a,top:r,left:t,right:s}=this;let{minh:i,minw:o}=this;const f=this.parentLimitation?0:null;this.aspectRatio&&(o/i>A?i=o/A:o=A*i);const l={left:{min:f,max:t+(c-o)},right:{min:f,max:s+(c-o)},top:{min:f,max:r+(e-i)},bottom:{min:f,max:a+(e-i)}};if(this.aspectRatio){const m={left:{min:t-Math.min(r,a)*A*2,max:t+(e-i)/2*A*2},right:{min:s-Math.min(r,a)*A*2,max:s+(e-i)/2*A*2},top:{min:r-Math.min(t,s)/A*2,max:r+(c-o)/2/A*2},bottom:{min:a-Math.min(t,s)/A*2,max:a+(c-o)/2/A*2}};this.currentStick[0]==="m"?(l.left={min:Math.max(l.left.min,m.left.min),max:Math.min(l.left.max,m.left.max)},l.right={min:Math.max(l.right.min,m.right.min),max:Math.min(l.right.max,m.right.max)}):this.currentStick[1]==="m"&&(l.top={min:Math.max(l.top.min,m.top.min),max:Math.min(l.top.max,m.top.max)},l.bottom={min:Math.max(l.bottom.min,m.bottom.min),max:Math.min(l.bottom.max,m.bottom.max)})}return l},sideCorrectionByLimit(A,c){let e=c;return A.min!==null&&c<A.min?e=A.min:A.max!==null&&A.max<c&&(e=A.max),e},rectCorrectionByLimit(A){const{limits:c}=this;let{newRight:e,newLeft:a,newBottom:r,newTop:t}=A;return a=this.sideCorrectionByLimit(c.left,a),e=this.sideCorrectionByLimit(c.right,e),t=this.sideCorrectionByLimit(c.top,t),r=this.sideCorrectionByLimit(c.bottom,r),{newLeft:a,newRight:e,newTop:t,newBottom:r}},rectCorrectionByAspectRatio(A){let{newLeft:c,newRight:e,newTop:a,newBottom:r}=A;const{parentWidth:t,parentHeight:s,currentStick:i,aspectFactor:o,dimensionsBeforeMove:f}=this;let l=t-c-e,m=s-a-r;if(i[1]==="m"){const h=m-f.height;c-=h*o/2,e-=h*o/2}else if(i[0]==="m"){const h=l-f.width;a-=h/o/2,r-=h/o/2}else l/m>o?(l=o*m,i[1]==="l"?c=t-e-l:e=t-c-l):(m=l/o,i[0]==="t"?a=s-r-m:r=s-a-m);return{newLeft:c,newRight:e,newTop:a,newBottom:r}}},computed:{positionStyle(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}},sizeStyle(){return{width:this.width+"px",height:this.height+"px"}},vdrStick(){return A=>{const c={width:`${this.stickSize/this.parentScaleX}px`,height:`${this.stickSize/this.parentScaleY}px`};return c[h8.y[A[0]]]=`${this.stickSize/this.parentScaleX/-2}px`,c[h8.x[A[1]]]=`${this.stickSize/this.parentScaleX/-2}px`,c}},width(){return this.parentWidth-this.left-this.right},height(){return this.parentHeight-this.top-this.bottom},rect(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}},watch:{active(A){A?this.$emit("activated"):this.$emit("deactivated")},isActive:{immediate:!0,handler(A){this.active=A}},z:{immediate:!0,handler(A){(A>=0||A==="auto")&&(this.zIndex=A)}},x:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.left)return;const e=c-A;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:e,y:0}),this.$nextTick(()=>{this.bodyUp()})}},y:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.top)return;const e=c-A;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:e}),this.$nextTick(()=>{this.bodyUp()})}},w:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.width)return;const e="mr",a=c-A;this.stickDown(e,{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:a,y:0}),this.$nextTick(()=>{this.stickUp()})}},h:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.height)return;const e="bm",a=c-A;this.stickDown(e,{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:a}),this.$nextTick(()=>{this.stickUp()})}},parentW(A){this.right=A-this.width-this.left,this.parentWidth=A},parentH(A){this.bottom=A-this.height-this.top,this.parentHeight=A}}},jo=["onMousedown","onTouchstart"];function Zo(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vdr",`${r.active||e.isActive?"active":"inactive"} ${e.contentClass?e.contentClass:""}`]),style:n.normalizeStyle(t.positionStyle),onMousedown:c[0]||(c[0]=s=>t.bodyDown(s)),onTouchstart:c[1]||(c[1]=s=>t.bodyDown(s)),onTouchend:c[2]||(c[2]=s=>t.up(s)),ref:"container",tabindex:"0"},[n.createElementVNode("div",{style:n.normalizeStyle(t.sizeStyle),class:"content-container",ref:"container2"},[n.renderSlot(A.$slots,"default")],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.sticks,s=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vdr-stick",["vdr-stick-"+s,e.isResizable?"":"not-resizable"]]),onMousedown:n.withModifiers(i=>t.stickDown(s,i),["stop","prevent"]),onTouchstart:n.withModifiers(i=>t.stickDown(s,i),["stop","prevent"]),style:n.normalizeStyle(t.vdrStick(s))},null,46,jo))),256))],38)}const H8=X($o,[["render",Zo]]),qq="",Al={components:{VueDragResize:H8},props:["content"],data(){return{}},watch:{},computed:{},methods:{onResizstop(A){console.log("i have stopped resizing",A)},onDragstop(A){},reset(){this.listOne=[]},getParentWidth(){let A=document.getElementsByClassName("fridgemagnet");setTimeout(()=>A[0].offsetWidth)},getParentHeight(){let A=document.getElementsByClassName("fridgemagnet");setTimeout(()=>A[0].offsetHeight)},keyboardMove(A){for(let c of A)document.getElementById(c.id).addEventListener("focusin",a=>{let r=document.getElementsByClassName("fridgemagnet");addEventListener("keydown",function(t){let s=document.getElementById(t.target.id);if(t.altKey&&t.key==="ArrowLeft"){let i=Number(s.style.left.slice(0,-2));i-10<0?s.style.left=`${i}px`:s.style.left=`${i-10}px`}if(t.altKey&&t.key==="ArrowRight"){let i=Number(s.style.left.slice(0,-2));i+10>r[0].offsetWidth-50?s.style.left=`${i}px`:s.style.left=`${i+10}px`}if(t.altKey&&t.key==="ArrowUp"){let i=Number(s.style.top.slice(0,-2));i+10<0?s.style.top=`${i}px`:s.style.top=`${i-10}px`}if(t.altKey&&t.key==="ArrowDown"){let i=Number(s.style.top.slice(0,-2));i+10>r[0].offsetHeight-80?s.style.top=`${i}px`:s.style.top=`${i+10}px`}})})}},mounted(){let A=document.getElementsByClassName("vdr");setTimeout(()=>{A[0].focus()}),this.keyboardMove(A)},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("vdr")}},cl={class:"fridgemagnet"},el=["innerHTML"],al=["src","alt"],rl=["id","src","alt"],tl=["innerHTML"];function sl(A,c,e,a,r,t){const s=n.resolveComponent("VueDragResize");return n.openBlock(),n.createElementBlock("div",cl,[e.content.directions?(n.openBlock(),n.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,el)):n.createCommentVNode("",!0),n.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,al),n.createElementVNode("div",{class:n.normalizeClass(["fridge",e.content.class,e.content.noOutline?"no_outline":""])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.magnets,(i,o)=>(n.openBlock(),n.createBlock(s,{id:"vdr_"+o,isActive:!0,w:i.width?i.width:50,minw:i.minWidth?i.minWidth:50,h:i.height?i.height:50,minh:i.minHeight?i.minHeight:50,x:i.x?i.x:0,y:i.y?i.y:60*o,class:n.normalizeClass(i.class),parentLimitation:!0,parentW:i.parentwidth?i.parentwidth:t.getParentWidth(),parentH:i.parentheight?i.parentheight:t.getParentHeight(),isResizable:i.resizable,isDraggable:i.draggable,snapToGrid:i.snap,gridX:i.snapX,gridY:i.snapY,dragHandle:i.handle,onResizing:A.resize,onDragging:A.resize,aspectRatio:!0,onResizestop:t.onResizstop,onDragstop:t.onDragstop,sticks:["tl","bl","tr","br"]},{default:n.withCtx(()=>[i.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:i.index,src:i.image,alt:i.imageAlt},null,8,rl)):n.createCommentVNode("",!0),i.text?(n.openBlock(),n.createElementBlock("p",{key:1,innerHTML:i.text},null,8,tl)):n.createCommentVNode("",!0)]),_:2},1032,["id","w","minw","h","minh","x","y","class","parentW","parentH","isResizable","isDraggable","snapToGrid","gridX","gridY","dragHandle","onResizing","onDragging","onResizestop","onDragstop"]))),256))],2)])}const nl=X(Al,[["render",sl]]),Yq="",il={components:{},props:["content"],data(){return{binCount:0,listOne:[]}},watch:{},computed:{binColumns(){return Math.round(24/this.binCount)},myList:{get(){return this.listOne}}},methods:{createItems(){this.binCount=this.content.bins.length,this.content.bins.forEach(A=>{this.listOne.push(A.items)})},dragBackground(A){return`white url(${A}) 0 0 no-repeat`},pixelFormat(A){return this.stepperStore.pixelFormat(A)},checkMove(A){if(this.content.sound){let c=document.getElementById("myAudio");setTimeout(()=>{c.play()},1e3)}if(A.draggedContext.element.relSwap&&setTimeout(()=>{let c=A.draggedContext.element.id,e=document.getElementById(c);e.src=A.draggedContext.element.relSwap},1500),this.stepperStore.stepHold=!1,this.stepperStore.finishSteps(),this.stepperStore.lastPageFocus(),A!=="clicked")return!A.from.classList.contains("preventMove")},reset(){this.listOne=[],this.createItems()},keyboardDrag(A,c){if(A.class.indexOf("preventMove")>0)return!1;A.class+=" preventMove",this.listOne[c].splice(A),this.listOne[c+1].push(A),this.checkMove("clicked")}},mounted(){let A=document.getElementsByClassName("dragItems-button");setTimeout(()=>{A[0].focus()})},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("dragItems-button"),this.createItems()}},ol=["innerHTML"],ll={key:1,id:"myAudio"},fl=["src"],ml={class:"list-group-item"},hl=["onClick"],Hl=["id","src","alt","data-swap"];function ul(A,c,e,a,r,t){const s=n.resolveComponent("lab-image"),i=n.resolveComponent("el-col"),o=n.resolveComponent("draggable"),f=n.resolveComponent("el-row");return n.openBlock(),n.createBlock(f,{class:n.normalizeClass(["dragDrop",e.content.handle])},{default:n.withCtx(()=>[n.createVNode(i,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",{innerHTML:e.content.directions},null,8,ol),e.content.image?(n.openBlock(),n.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):n.createCommentVNode("",!0),e.content.sound?(n.openBlock(),n.createElementBlock("audio",ll,[n.createElementVNode("source",{src:e.content.sound,type:"audio/mpeg"},null,8,fl),n.createTextVNode(" Your browser does not support the audio element. ")])):n.createCommentVNode("",!0)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listOne,(l,m)=>(n.openBlock(),n.createBlock(i,{span:t.binColumns},{default:n.withCtx(()=>[n.createVNode(o,{class:n.normalizeClass(["draggable list-group",e.content.bins[m].class]),style:n.normalizeStyle({width:t.pixelFormat(e.content.bins[m].width),height:t.pixelFormat(e.content.bins[m].height),background:t.dragBackground(e.content.bins[m].bgImage)}),modelValue:t.myList[m],"onUpdate:modelValue":h=>t.myList[m]=h,move:t.checkMove,group:"people",forceFallback:"true"},{item:n.withCtx(({element:h})=>[n.createElementVNode("div",ml,[n.createElementVNode("button",{class:"dragItems-button",onClick:n.withModifiers(H=>t.keyboardDrag(h,m),["stop"])},[n.createTextVNode(n.toDisplayString(h.text)+" ",1),h.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:h.id,src:h.image,alt:h.imageAlt,"data-swap":h.relSwap},null,8,Hl)):n.createCommentVNode("",!0)],8,hl)])]),_:2},1032,["class","style","modelValue","onUpdate:modelValue","move"])]),_:2},1032,["span"]))),256))]),_:1},8,["class"])}const Cl=X(il,[["render",ul]]),Jq="",Bl={components:{},props:["content"],data(){return{binCount:0,listOne:[],listTwo:[],listTwoCompleted:[],totalAttempts:99,choice:{header:"",feedback:""},chooseBin:{},chooseVisibility:!1,kbCurrentId:"",feedbackObject:{}}},watch:{},computed:{binColumns(){return Math.round(24/this.binCount)},myList:{get(){return this.listOne}},myList2:{get(){return this.listTwo}},getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{failed(){this.listTwo.length>0&&(this.listTwo.forEach(A=>{this.listOne.forEach(c=>{c.forEach(e=>{A.id===e.id&&c.push(A)})})}),this.listTwo="",this.choice.header=this.content.failedHeader,this.choice.feedback=this.content.failedFeedback,this.feedbackVisibility=!0)},createItems(){this.binCount=this.content.bins.length,this.content.bins.forEach((A,c)=>{let e=Math.round(Date.now()/Math.random());A.items.forEach(a=>{a.hide=!0,a.id=e,a.oldKey=c,this.listTwo.push(a)}),this.listOne.push(JSON.parse(JSON.stringify(A.items)))}),this.listTwo.forEach(A=>{A.hide=!1})},dragBackground(A){return`white url(${A}) 0 0 no-repeat`},pixelFormat(A){return this.stepperStore.pixelFormat(A)},checkMove(A){if(A.to.dataset.index){let c=this.listOne[A.to.dataset.index],e=A.oldIndex,a=!1;c.forEach(r=>{r.hide===!0&&r.id===A.item._underlying_vm_.id&&(a=!0)}),a?(this.stepperStore.showFeedback=!0,this.feedbackObject.feedbackHeader=A.item._underlying_vm_.correctHeader,this.feedbackObject.feedback=A.item._underlying_vm_.correctFeedback,this.feedbackObject.feedbackImage=A.item._underlying_vm_.correctFeedbackImage,this.listTwoCompleted.push(e),this.myList2.length===0&&this.stepperStore.finishSteps()):(this.feedbackObject.feedbackHeader=A.item._underlying_vm_.incorrectHeader,this.feedbackObject.feedback=A.item._underlying_vm_.incorrectFeedback,this.feedbackObject.feedbackImage=A.item._underlying_vm_.incorrectFeedbackImage,this.listTwo.push(A.item._underlying_vm_),this.getAttempt<this.content.attempts?this.stepperStore.attempts=this.getAttempt+1:(this.stepperStore.showFeedbackAttempts=!0,this.failed()),this.stepperStore.showFeedback=!0,c.forEach((r,t)=>{r.id===A.item._underlying_vm_.id&&c.splice(t,1)})),setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})}},stopMove(){return!1},kbCheckMove(A,c){if(typeof A>"u")this.chooseVisibility=!1;else{if(this.listOne[A][c].id===this.kbCurrentId){let a=-1;this.listTwo.forEach((r,t)=>{r.id===this.kbCurrentId&&(a=t)}),this.stepperStore.showFeedback=!0,this.feedbackObject.feedbackHeader=this.listOne[A][c].correctHeader,this.feedbackObject.feedback=this.listOne[A][c].correctFeedback,this.feedbackObject.feedbackImage=this.listOne[A][c].correctFeedbackImage,this.chooseVisibility=!1,this.listTwoCompleted.push(A),this.listTwo.splice(a,1),this.myList2.length===0&&this.stepperStore.finishSteps(),this.listOne[A][c].hide=!1}else this.feedbackObject.feedbackHeader=this.listOne[A][c].incorrectHeader,this.feedbackObject.feedback=this.listOne[A][c].incorrectFeedback,this.feedbackObject.feedbackImage=this.listOne[A][c].incorrectFeedbackImage,this.chooseVisibility=!1,this.stepperStore.showFeedback=!0,this.getAttempt<this.content.attempts?this.stepperStore.attempts=this.getAttempt+1:(this.chooseVisibility=!1,this.stepperStore.showFeedbackAttempts=!0,this.failed());setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})}},keyboardDrag(A){if(A.class.indexOf("preventMove")>0)return!1;this.chooseVisibility=!0,this.kbCurrentId=A.id,setTimeout(()=>{document.getElementById("firstBin").focus()})},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("dragItems-button");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("dragItems-button"),this.stepperStore.attempts=0,this.content.attempts&&(this.totalAttempts=this.content.attempts),this.createItems()}},pl=["innerHTML"],vl=["onClick"],dl=["id","src","alt"],gl={key:0,class:"dropBin"},zl={class:"dragItems-button"},Vl=["id","src","alt"],Ml={class:"dialog-footer"};function wl(A,c,e,a,r,t){const s=n.resolveComponent("lab-image"),i=n.resolveComponent("el-col"),o=n.resolveComponent("draggable"),f=n.resolveComponent("el-row"),l=n.resolveComponent("lab-feedback"),m=n.resolveComponent("el-button"),h=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(f,{class:n.normalizeClass(["dragDrop",e.content.handle]),id:"dragItemDiv"},{default:n.withCtx(()=>[n.createVNode(i,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",{innerHTML:e.content.directions},null,8,pl),e.content.image?(n.openBlock(),n.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):n.createCommentVNode("",!0)]),_:1}),n.createVNode(i,{span:24},{default:n.withCtx(()=>[n.createVNode(o,{class:"dragItems",list:r.listTwo,group:"put",forceFallback:"true",itemKey:"image",sort:!1,onEnd:t.checkMove},{item:n.withCtx(({element:H})=>[n.createElementVNode("div",{class:n.normalizeClass(["dragItem",H.class])},[n.createElementVNode("button",{class:"dragItems-button",onClick:n.withModifiers(u=>t.keyboardDrag(H),["stop"])},[n.createTextVNode(n.toDisplayString(H.text)+" ",1),H.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:H.id,src:H.image,alt:H.imageAlt},null,8,dl)):n.createCommentVNode("",!0)],8,vl)],2)]),_:1},8,["list","onEnd"])]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listOne,(H,u)=>(n.openBlock(),n.createBlock(i,{span:t.binColumns},{default:n.withCtx(()=>[n.createElementVNode("h4",null,n.toDisplayString(e.content.bins[u].header),1),n.createVNode(o,{class:n.normalizeClass(["dropBins el-row",e.content.bins[u].class]),"data-index":u,list:r.listOne[u],group:"put",forceFallback:"true",itemKey:"text",sort:!1,move:t.stopMove},{item:n.withCtx(({element:p})=>[p.hide?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",gl,[n.createElementVNode("button",zl,[n.createTextVNode(n.toDisplayString(p.text)+" ",1),p.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:p.id,src:p.droppedImage,alt:p.imageAlt},null,8,Vl)):n.createCommentVNode("",!0)])]))]),_:2},1032,["class","data-index","list","move"])]),_:2},1032,["span"]))),256))]),_:1},8,["class"]),t.showFeedback()?(n.openBlock(),n.createBlock(l,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0),n.createVNode(h,{title:e.content.kbModalQuestion,modelValue:r.chooseVisibility,"onUpdate:modelValue":c[1]||(c[1]=H=>r.chooseVisibility=H),width:"50%"},{footer:n.withCtx(()=>[n.createElementVNode("span",Ml,[n.createVNode(m,{size:"small",id:"visibilityClose",type:"primary",onClick:c[0]||(c[0]=H=>t.kbCheckMove())},{default:n.withCtx(()=>[n.createTextVNode("Close")]),_:1})])]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listOne,(H,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(H,(p,z)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[u===0?(n.openBlock(),n.createBlock(m,{key:0,id:"firstBin",size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.content.bins[u].header),1)]),_:2},1032,["onClick"])):(n.openBlock(),n.createBlock(m,{key:1,size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.content.bins[u].header),1)]),_:2},1032,["onClick"]))],64))),256))],64))),256))]),_:1},8,["title","modelValue"])],64)}const Ll=X(Bl,[["render",wl]]),$q="",Ql={props:["content"],data(){return{totalAttempts:99}},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{choicesCheck(){setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.stepperStore.finishSteps()},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){this.stepperStore.getDirections.display===!1&&setTimeout(()=>{})},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-input__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}},Fl=["src","width","height"];function Ul(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("iframe",{class:"importedIframe",src:"imports/"+e.content.importFolder+"/"+e.content.importIndex,allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",width:e.content.width,height:e.content.height},null,8,Fl)])}const bl=X(Ql,[["render",Ul],["__scopeId","data-v-f5bc6f4c"]]);/*!
|
|
1
|
+
(function(n,o4){typeof exports=="object"&&typeof module<"u"?module.exports=o4(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o4):(n=typeof globalThis<"u"?globalThis:n||self,n.LabmakerPlugin=o4(n.Vue))})(this,function(n){"use strict";const o4="",X=(A,c)=>{const e=A.__vccOpts||A;for(const[a,r]of c)e[a]=r;return e},pi={props:["custom-img"],data(){return{imgSRC:this.customImg}},computed:{},methods:{fileUpload(A){const e=A.target.files[0];this.fileProcess(e)},fileProcess(A){this.imgSRC=URL.createObjectURL(A)}},mounted(){}},vi=n.createElementVNode("h1",null,"File Uploader",-1),di={class:"image-uploader"},gi=n.createElementVNode("h1",null,"File Uploader",-1),zi={class:"your-file"},Vi=["src"];function Mi(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock(n.Fragment,null,[vi,n.createElementVNode("div",di,[gi,n.createElementVNode("input",{onChange:c[0]||(c[0]=(...s)=>t.fileUpload&&t.fileUpload(...s)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),n.createElementVNode("div",zi,[n.createElementVNode("img",{src:r.imgSRC,alt:"",scrset:""},null,8,Vi)])])],64)}const wi=X(pi,[["render",Mi]]),kq="",Li={props:["title"],data(){return{}},computed:{}};function Qi(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("header",null,[n.createElementVNode("h1",null,n.toDisplayString(e.title),1)])}const Fi=X(Li,[["render",Qi]]),Iq="",Ui={props:["content"],data(){return{}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)}},mounted(){},beforeMount(){this.stepperStore=this.stepperMain()}},bi={class:"image-container"},xi={class:"image"},yi=["src","alt"],Si=["innerHTML"],Ni=["innerHTML"],Ei=["innerHTML"];function ki(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("div",bi,[n.createElementVNode("div",xi,[n.createElementVNode("img",{src:e.content.src,alt:e.content.alt,class:n.normalizeClass(e.content.class)},null,10,yi),e.content.captionHeader?(n.openBlock(),n.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:e.content.captionHeader},null,8,Si)):n.createCommentVNode("",!0),e.content.caption?(n.openBlock(),n.createElementBlock("span",{key:1,class:"caption",innerHTML:e.content.caption},null,8,Ni)):n.createCommentVNode("",!0),e.content.copyright?(n.openBlock(),n.createElementBlock("span",{key:2,innerHTML:e.content.copyright,class:"copyright"},null,8,Ei)):n.createCommentVNode("",!0)])])}const Ii=X(Ui,[["render",ki],["__scopeId","data-v-45f6f0d2"]]),Tq="",Ti={props:["content"],data(){return{showingKaltura:!1,showingText:!1,buttonText:!1,hasText:!1,video:{width:640,height:480},audio:{width:260,height:80},audioBtn:{width:40,height:40},textversionArray:{}}},watch:{content:function(){this.tvCleaner()}},computed:{kHeight(){if(this.content.kalturaType==="video")if(this.content.height&&this.content.height!=""){let A=this.content.height;return A.slice(-2)==="px"?A.slice(0,-2):this.content.height}else return this.video.height;else if(this.content.kalturaType==="audio")if(this.content.height&&this.content.height!=""){let A=this.content.height;return A.slice(-2)==="px"?A.slice(0,-2):this.content.height}else return this.audio.height;else if(this.content.kalturaType==="audiobtn")return this.audioBtn.height},kWidth(){if(this.content.kalturaType==="video")if(this.content.width&&this.content.width!=""){let A=this.content.width;return A.slice(-2)==="px"?A.slice(0,-2):this.content.width}else return this.video.width;else{if(this.content.kalturaType==="audio")return this.audio.width;if(this.content.kalturaType==="audiobtn")return this.audioBtn.width}}},methods:{getButtonText(A){return A==="video"?this.showingText?"Show Video":"Show Text Version":this.showingText?"Show Audio":"Show Text Version"},textVersionCheck(){this.content.textVersion&&this.content.textVersion.length>1&&(this.hasText=!0)},kalturaLoad(){this.textVersionCheck()},kalturaMedia(A){let c={uiconf_id:"35766781",partner_id:"2061901",entry_id:"",height:"400",width:"640",type:"video"};return c.entry_id=this.content.kalturaEntryId,this.content.kalturaType&&(c.type=this.content.kalturaType),c.type==="audio"?c.uiconf_id="36511471":c.type==="audiobtn"?c.uiconf_id="36582731":c.type==="videocc"&&(c.uiconf_id="35766781"),this.content.standalone&&(this.stepperStore.stepHold=!1),"https://cdnapisec.kaltura.com/p/"+c.partner_id+"/sp/"+c.partner_id+"00/embedIframeJs/uiconf_id/"+c.uiconf_id+"/partner_id/"+c.partner_id+"?iframeembed=true&playerId=Kaltura&entry_id="+c.entry_id},showKaltura(){this.showingKaltura=!0},showText(){this.showingText=!this.showingText,this.buttonText=!this.buttonText},tvCleaner(){let A=document.createElement("div");A.innerHTML=this.content.textVersion;for(let c=0;c<A.children.length;c++){let e=A.children[c];if(e.tagName=="DIV"&&e.className=="panel-default"&&e.children[0].dataset.toggle)for(let a=0;a<e.children.length;a++){let r=e.children[a];if(r.dataset.toggle=="collapse"){let t={heading:r.innerHTML,body:e.children[a+1].innerHTML};this.textversionArray[c]=t}}else this.textversionArray[c]=e.outerHTML}}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("vidText"),this.kalturaLoad(),this.tvCleaner()},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("vidText");setTimeout(()=>{A[0].focus()})}}},Di={key:0,class:"textVersion"},Ki=n.createElementVNode("h1",null,"Text Version",-1),Ri=["innerHTML"],_i=["src","width","height"],Oi=["src","width","height"],Pi=["src","width","height"],Gi={key:2,class:"alert alert-danger"};function Wi(A,c,e,a,r,t){const s=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["kContainer",e.content.class])},[e.content.textVersion&&r.showingText?(n.openBlock(),n.createElementBlock("div",Di,[Ki,n.createElementVNode("div",{innerHTML:e.content.textVersion},null,8,Ri)])):n.createCommentVNode("",!0),!r.showingText&&e.content.kalturaEntryId?(n.openBlock(),n.createElementBlock("div",{key:1,class:"mainVersion",style:n.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[e.content.kalturaType=="video"&&!r.showingKaltura?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["kPoster",{active:r.showingKaltura==!0}]),style:n.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[n.createElementVNode("iframe",{onClick:c[0]||(c[0]=(...i)=>t.showKaltura&&t.showKaltura(...i)),class:"videoIframe",src:t.kalturaMedia(e.content),width:t.kWidth+"px",height:t.kHeight+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,_i)],6)):n.createCommentVNode("",!0),e.content.kalturaType=="audio"?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["kAudio",{active:r.showingKaltura==!0}]),onClick:c[1]||(c[1]=(...i)=>t.showKaltura&&t.showKaltura(...i))},[n.createElementVNode("iframe",{id:"my_iframe",src:t.kalturaMedia(e.content),width:t.kWidth+"px",height:t.kHeight+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Oi)],2)):n.createCommentVNode("",!0),e.content.kalturaType=="audiobtn"?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["kAudiobtn",{active:r.showingKaltura==!0}]),onClick:c[2]||(c[2]=(...i)=>t.showKaltura&&t.showKaltura(...i))},[n.createElementVNode("iframe",{src:t.kalturaMedia(e.content),width:r.audioBtn.width+"px",height:r.audioBtn.height+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Pi)],2)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.content.kalturaEntryId==""?(n.openBlock(),n.createElementBlock("div",Gi,"There is no Kaltura Entry ID")):n.createCommentVNode("",!0),e.content.textVersion?(n.openBlock(),n.createBlock(s,{key:3,size:"medium",type:"primary","aria-label":"text version",class:"toggleSwitch ftSwitch btn btn-primary vidText",onClick:c[3]||(c[3]=n.withModifiers(i=>t.showText(e.content.kalturaType),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.getButtonText(e.content.kalturaType)),1)]),_:1})):n.createCommentVNode("",!0)],2)}const Xi=X(Ti,[["render",Wi]]),Dq="",qi={props:["content"],data(){return{show:!0}},computed:{getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts},feedbackHeader(){return this.stepperStore.getShowFeedbackAttempts?"Too many Attempts":this.content.feedbackHeader},feedbackWidth(){return this.content.feedbackWidth?this.content.feedbackWidth:"50%"}},methods:{feedbackClose(){this.content.finalInstructions&&(this.stepperStore.completedDirections[this.stepperStore.currentPage].display=!1),this.content.instructions&&(this.stepperStore.directions[this.stepperStore.currentPage].display=!1),this.stepperStore.showFeedback=!1,this.stepperStore.showFeedbackAttempts=!1,this.stepperStore.lastPageFocus()}},mounted(){},beforeMount(){var A,c;this.stepperStore=this.stepperMain(),((A=this.content.feedbackContent)==null?void 0:A.type)==="media"&&((c=this.content.feedbackContent.fieldValues)==null?void 0:c.kalturaType)==="video"&&(this.content.feedbackContent.fieldValues.width="480",this.content.feedbackContent.fieldValues.height="360",this.content.feedbackWidth="80%")}},Yi={class:"my-header"},Ji=["id","innerHTML"],$i=["innerHTML"],ji={key:1},Zi={key:0},Ao=["src"],co=["innerHTML"],eo={class:"dialog-footer"};function ao(A,c,e,a,r,t){const s=n.resolveComponent("lab-kaltura"),i=n.resolveComponent("lab-image"),o=n.resolveComponent("el-button"),f=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(f,{width:t.feedbackWidth,modelValue:r.show,"onUpdate:modelValue":c[1]||(c[1]=l=>r.show=l),"before-close":t.feedbackClose},{header:n.withCtx(({close:l,titleId:m,titleClass:h})=>[n.createElementVNode("div",Yi,[n.createElementVNode("h4",{id:m,class:n.normalizeClass(h),innerHTML:t.feedbackHeader},null,10,Ji)])]),footer:n.withCtx(()=>[n.createElementVNode("span",eo,[n.createVNode(o,{size:"small",id:"feedbackClose",type:"primary",onClick:c[0]||(c[0]=n.withModifiers(l=>t.feedbackClose(),["stop"]))},{default:n.withCtx(()=>[n.createTextVNode("Close")]),_:1})])]),default:n.withCtx(()=>[t.getShowFeedbackAttempts?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.content.feedbackAttempts?(n.openBlock(),n.createElementBlock("p",{key:0,innerHTML:e.content.feedbackAttempts},null,8,$i)):(n.openBlock(),n.createElementBlock("p",ji,"You have tried too many times, the correct answer has been provided for you."))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.content.feedbackContent?(n.openBlock(),n.createElementBlock("div",Zi,[e.content.feedbackContent.type==="media"?(n.openBlock(),n.createBlock(s,{key:0,content:e.content.feedbackContent.fieldValues,class:n.normalizeClass([e.content.feedbackContent.fieldValues.class,{video:e.content.feedbackContent.fieldValues.kalturaType==="video"}])},null,8,["content","class"])):n.createCommentVNode("",!0),e.content.feedbackContent.type==="image"?(n.openBlock(),n.createBlock(i,{key:1,content:e.content.feedbackContent.fieldValues},null,8,["content"])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.content.feedbackImage?(n.openBlock(),n.createElementBlock("img",{key:1,class:"im-ButtonImage",src:e.content.feedbackImage,alt:"button image"},null,8,Ao)):n.createCommentVNode("",!0),n.createElementVNode("p",{innerHTML:e.content.feedback},null,8,co)],64))]),_:1},8,["width","modelValue","before-close"])}const m8=X(qi,[["render",ao]]),Kq="",ro={components:{Feedback:m8},inject:["message"],props:["content"],data(){return{dialogVisible:!1,feedbackVisibility:[],feedbackIndex:0}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)},changePage(A,c){A.pageLink?this.stepperStore.currentPage=A.pageLink:A.feedback&&(this.feedbackIndex=c,this.feedbackVisibility.indexOf(c)===-1&&this.feedbackVisibility.push(c),this.stepperStore.showFeedback=!0,this.content.hotspots.length-1===this.feedbackVisibility.length-1&&this.stepperStore.finishSteps(),setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()}))},showFeedback(A){return!!(this.stepperStore.getShowFeedback&&this.feedbackIndex===A)}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("hotspot");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("hotspot")}},to={class:"imageMarker"},so=["src","alt"],no={class:"hotspotArea"},io=["src","alt"],oo={class:"im-buttonText"};function lo(A,c,e,a,r,t){const s=n.resolveComponent("el-button"),i=n.resolveComponent("Feedback");return n.openBlock(),n.createElementBlock("div",to,[n.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,so),n.createElementVNode("div",no,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.hotspots,(o,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(s,{type:o.buttonType,onClick:n.withModifiers(l=>t.changePage(o,f),["stop"]),id:"hotspot_"+f,class:n.normalizeClass([["is-"+o.buttonShape,{noBG:o.buttonImage},o.class],"hotspot"]),style:n.normalizeStyle({top:t.pixelFormat(o.cordinatesX),left:t.pixelFormat(o.cordinatesY),width:t.pixelFormat(o.dimensionsW),height:t.pixelFormat(o.dimensionsH)}),icon:o.buttonIcon},{default:n.withCtx(()=>[o.buttonImage?(n.openBlock(),n.createElementBlock("img",{key:0,class:"im-ButtonImage",src:o.buttonImage,alt:"image marker "+Number(f+1)},null,8,io)):n.createCommentVNode("",!0),n.createElementVNode("span",oo,n.toDisplayString(o.name),1)]),_:2},1032,["type","onClick","id","class","style","icon"]),t.showFeedback(f)?(n.openBlock(),n.createBlock(i,{key:0,content:o},null,8,["content"])):n.createCommentVNode("",!0)],64))),256))])])}const fo=X(ro,[["render",lo],["__scopeId","data-v-fd3c7401"]]),Rq="",mo={props:["content"],data(){return{imageReplaced:!1,imageSrc:this.content.image,imageAlt:this.content.imageAlt}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)},async changeImage(A){this.imageReplaced=!0,this.imageSrc=this.content.hotspots[A].imageOverlay,this.imageAlt=this.content.hotspots[A].imageOverlayAlt,await this.stepperStore.finishSteps(),this.stepperStore.lastPageFocus()}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("instructions");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("instructions")}},ho=["innerHTML"],Ho=["src","alt"],uo={class:"hotspotArea"};function Co(A,c,e,a,r,t){const s=n.resolveComponent("el-col"),i=n.resolveComponent("el-button"),o=n.resolveComponent("el-row");return n.openBlock(),n.createBlock(o,{class:"imageReplacer"},{default:n.withCtx(()=>[n.createVNode(s,{span:12},{default:n.withCtx(()=>[n.createElementVNode("p",{class:"imageReplacerDescription",innerHTML:e.content.description},null,8,ho)]),_:1}),n.createVNode(s,{span:12},{default:n.withCtx(()=>[n.createElementVNode("img",{class:"im-ButtonImage",src:r.imageSrc,alt:r.imageAlt},null,8,Ho),n.createElementVNode("div",uo,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.hotspots,(f,l)=>(n.openBlock(),n.createBlock(i,{type:f.buttonType,onClick:n.withModifiers(m=>t.changeImage(l),["stop"]),class:"hotspot",style:n.normalizeStyle({top:t.pixelFormat(f.cordinatesX),left:t.pixelFormat(f.cordinatesY),width:t.pixelFormat(f.dimensionsW),height:t.pixelFormat(f.dimensionsH)}),icon:f.buttonIcon},null,8,["type","onClick","style","icon"]))),256))])]),_:1})]),_:1})}const Bo=X(mo,[["render",Co],["__scopeId","data-v-d6c87f03"]]),_q="",po={components:{},props:["content"],data(){return{quizArray:[],quizOptions:[],quizItemCompleted:[],input:[],totalAttempts:99,correctChoices:[],feedbackObject:{},value1:""}},watch:{},computed:{quizArrayCount(){return this.quizArray.length-1},getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{quizArrayCompleted(A){return!(this.quizItemCompleted.includes(A)||A===0)},prepareQuiz(){this.quizArray=this.content.quiz.split("*_").filter(A=>A),this.content.options.forEach((A,c)=>{A.options?A.random?this.quizOptions.push(this.shuffle(A.options)):this.quizOptions.push(A.options):this.quizOptions.push(!1)})},quizType(A){return this.content.options[A]&&this.content.options[A].type?this.content.options[A].type:!1},quizDisplay(A){return this.content.options[A]&&this.content.options[A].display?this.content.options[A].display:"Select"},quizClass(A){return this.content.options[A]&&this.content.options[A].class?this.content.options[A].class:""},shuffle(A){let c=A.length,e;for(;c!=0;)e=Math.floor(Math.random()*c),c--,[A[c],A[e]]=[A[e],A[c]];return A},choicesCheck(){if(this.getAttempt<this.content.attempts){let A=!0,c=!1;this.input.length===0?this.content.options[0].stopFlow&&(c=!0,this.feedbackObject.feedbackHeader=this.content.options[0].notSelectedHeader,this.feedbackObject.feedback=this.content.options[0].notSelectedBody):this.content.options.forEach((e,a)=>{this.input[a]?this.input[a]!==this.content.options[a].answer&&(A=!1):this.content.options[this.input.length].stopFlow&&(c=!0,this.feedbackObject.feedbackHeader=this.content.options[this.input.length].notSelectedHeader,this.feedbackObject.feedback=this.content.options[this.input.length].notSelectedBody)}),this.stepperStore.attempts=this.getAttempt+1,A===!0&&this.input.length===this.quizArray.length?(this.choicesComplete(),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback):(c||(this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback),this.stepperStore.attempts=this.getAttempt+1)}else this.feedbackObject.feedbackAttempts=this.content.feedbackAttempts,this.stepperStore.showFeedbackAttempts=!0,this.choicesComplete();this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.quizArray.forEach((A,c)=>{this.input[c]?this.input[c]=this.content.options[c].answer:this.input.push(this.content.options[c].answer),this.quizItemCompleted.push(c+1)}),this.stepperStore.finishSteps()},choicesMade(A){this.quizItemCompleted.includes(A+1)===!1&&this.quizItemCompleted.push(A+1)},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.prepareQuiz(),this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("el-input__inner");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-input__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}};function vo(A,c,e,a,r,t){const s=n.resolveComponent("el-option"),i=n.resolveComponent("el-select"),o=n.resolveComponent("el-date-picker"),f=n.resolveComponent("el-button"),l=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["drop-down",e.content.class])},[n.createElementVNode("p",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.quizArray,(m,h)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("span",{class:n.normalizeClass(t.quizClass(h))},[n.createElementVNode("span",{class:n.normalizeClass("quizText quizSection_"+h)},n.toDisplayString(m)+" ",3),t.quizType(h)==="choose"?(n.openBlock(),n.createBlock(i,{key:0,onChange:H=>t.choicesMade(h),modelValue:r.input[h],"onUpdate:modelValue":H=>r.input[h]=H,placeholder:t.quizDisplay(h)},{default:n.withCtx(()=>[t.quizArrayCompleted(h)?n.createCommentVNode("",!0):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.quizOptions[h],H=>(n.openBlock(),n.createBlock(s,{key:H,label:H,value:H},null,8,["label","value"]))),128))]),_:2},1032,["onChange","modelValue","onUpdate:modelValue","placeholder"])):n.createCommentVNode("",!0),t.quizType(h)==="date"?(n.openBlock(),n.createBlock(o,{key:1,onChange:H=>t.choicesMade(h),modelValue:r.input[h],"onUpdate:modelValue":H=>r.input[h]=H,type:"date",placeholder:t.quizDisplay(h),format:e.content.options[h].format,"value-format":e.content.options[h].format,disabled:t.quizArrayCompleted(h)},null,8,["onChange","modelValue","onUpdate:modelValue","placeholder","format","value-format","disabled"])):n.createCommentVNode("",!0)],2),n.createTextVNode(" ")],64))),256))]),n.createVNode(f,{size:"small",type:"primary",class:"drop-down-submit",onClick:c[0]||(c[0]=m=>t.choicesCheck())},{default:n.withCtx(()=>[n.createTextVNode("Submit")]),_:1}),t.showFeedback()?(n.openBlock(),n.createBlock(l,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const go=X(po,[["render",vo]]),Oq="",zo={components:{},props:["content"],data(){return{quizArray:[],input:[],totalAttempts:99,correctChoices:[],feedbackObject:{}}},watch:{},computed:{quizArrayCount(){return this.quizArray.length-1},getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{prepareQuiz(){this.quizArray=this.content.quiz.split("*_")},choicesCheck(){this.getAttempt<this.content.attempts?(this.input.forEach((A,c)=>{if(this.content.answers[c]===A)this.correctChoices.includes(c)===!1&&this.correctChoices.push(c);else if(this.correctChoices.includes(c)===!0){let e=this.correctChoices.indexOf(c);this.correctChoices.splice(e,1)}}),this.input.length===0?(this.feedbackObject.feedbackHeader="You did not enter an answer",this.feedbackObject.feedback="Please enter your choice in the input field"):this.correctChoices.length===this.content.answers.length?(this.choicesComplete(),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback):(this.stepperStore.attempts=this.getAttempt+1,this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback)):(this.feedbackObject.feedbackAttempts=this.content.feedbackAttempts,this.stepperStore.showFeedbackAttempts=!0,this.choicesComplete()),this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.input.forEach((A,c)=>{this.input[c]=this.content.answers[c]}),this.stepperStore.finishSteps()},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.prepareQuiz(),this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("el-input__inner");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-input__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}};function Vo(A,c,e,a,r,t){const s=n.resolveComponent("el-input"),i=n.resolveComponent("el-button"),o=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fill-blank",e.content.class])},[n.createElementVNode("p",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.quizArray,(f,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createTextVNode(n.toDisplayString(f),1),l<t.quizArrayCount?(n.openBlock(),n.createBlock(s,{key:0,modelValue:r.input[l],"onUpdate:modelValue":m=>r.input[l]=m,placeholder:"Please input",size:"small"},null,8,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)],64))),256))]),n.createVNode(i,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[0]||(c[0]=f=>t.choicesCheck())},{default:n.withCtx(()=>[n.createTextVNode("Submit")]),_:1}),t.showFeedback()?(n.openBlock(),n.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const Mo=X(zo,[["render",Vo]]),Pq="",wo={components:{},props:["content"],data(){return{feedbackIndex:-1,totalAttempts:99}},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{leftColWidth(){return this.content.leftColWidth?Number(this.content.leftColWidth):12},rightColWidth(){return this.content.leftColWidth?this.content.leftColWidth<24?24-this.content.leftColWidth:24:12},pixelFormat(A){return this.stepperStore.pixelFormat(A)},choicesComplete(){let A=document.querySelectorAll(".selectableButton");for(let c=0;c<A.length;c++)A[c].classList.add("is-failure"),A[c].setAttribute("disabled",!0),this.content.choices[c].correct&&A[c].classList.add("is-success");this.stepperStore.finishSteps()},choicesCheck(A){this.getAttempt<Number(this.content.attempts)?this.content.choices[A].correct===!0?(console.log(" it was true"),this.choicesComplete()):this.stepperStore.attempts=this.getAttempt+1:(this.content.choices[A].correct!==!0&&(this.stepperStore.showFeedbackAttempts=!0),this.choicesComplete()),this.feedbackIndex=A,this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},shuffledChoices(){let A=this.content.choices;for(let c=A.length-1;c>0;c--){const e=Math.floor(Math.random()*(c+1));[A[c],A[e]]=[A[e],A[c]]}this.content.choices=A},showFeedback(A){return this.stepperStore.getShowFeedback&&this.feedbackIndex===A?(this.content.choices[A].correct&&this.choicesComplete(),!0):!1}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("selectableButton");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("selectableButton"),this.feedbackIndex=-1,this.shuffledChoices(),this.content.attempts&&(this.totalAttempts=this.content.attempts)}},Lo=["innerHTML"],Qo={class:"buttonSpan"},Fo=["src","alt"],Uo={class:"selectable-buttonText"};function bo(A,c,e,a,r,t){const s=n.resolveComponent("lab-image"),i=n.resolveComponent("el-col"),o=n.resolveComponent("el-divider"),f=n.resolveComponent("el-button"),l=n.resolveComponent("lab-feedback"),m=n.resolveComponent("el-row");return n.openBlock(),n.createBlock(m,{id:e.content.id,class:n.normalizeClass(["selectable",e.content.classes])},{default:n.withCtx(()=>[n.createVNode(i,{span:t.leftColWidth(A.index)},{default:n.withCtx(()=>[e.content.directions?(n.openBlock(),n.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,Lo)):n.createCommentVNode("",!0),e.content.image?(n.openBlock(),n.createBlock(s,{key:1,content:e.content.image},null,8,["content"])):n.createCommentVNode("",!0)]),_:1},8,["span"]),n.createVNode(i,{span:t.rightColWidth(A.index),class:"selectArea"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.choices,(h,H)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[!e.content.noDivider&&H>0?(n.openBlock(),n.createBlock(o,{key:0})):n.createCommentVNode("",!0),n.createVNode(f,{size:"small",type:"primary",class:"selectableButton",style:n.normalizeStyle({width:t.pixelFormat(e.content.choiceWidth),height:t.pixelFormat(e.content.choiceHeight)}),onClick:u=>t.choicesCheck(H)},{default:n.withCtx(()=>[n.createElementVNode("div",Qo,[h.image?(n.openBlock(),n.createElementBlock("img",{key:0,class:"im-ButtonImage",src:h.image,alt:h.alt?h.alt:"button image"},null,8,Fo)):n.createCommentVNode("",!0),n.createElementVNode("span",Uo,n.toDisplayString(h.text),1)])]),_:2},1032,["style","onClick"]),t.showFeedback(H)?(n.openBlock(),n.createBlock(l,{key:1,content:h},null,8,["content"])):n.createCommentVNode("",!0)],64))),256))]),_:1},8,["span"])]),_:1},8,["id","class"])}const xo=X(wo,[["render",bo],["__scopeId","data-v-0f6d367e"]]),Gq="",yo={components:{},props:["content"],data(){return{input:"",totalAttempts:99,correctChoices:[],feedbackObject:{}}},watch:{},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{choicesCheck(){if(this.getAttempt<this.content.attempts){let A=!1;this.content.answers.forEach((c,e)=>{let a=c.toLowerCase();this.input.toLowerCase().includes(a)||(A=!0)}),A?(this.stepperStore.attempts=this.getAttempt+1,this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback):(this.choicesComplete(),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback)}else this.feedbackObject.feedbackAttempts=this.content.feedbackAttempts,this.stepperStore.showFeedbackAttempts=!0,this.choicesComplete();this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.stepperStore.finishSteps()},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("el-textarea__inner");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-textarea__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}};function So(A,c,e,a,r,t){const s=n.resolveComponent("el-input"),i=n.resolveComponent("el-button"),o=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["textbox",e.content.class])},[n.createElementVNode("p",null,n.toDisplayString(e.content.quiz),1),n.createVNode(s,{modelValue:r.input,"onUpdate:modelValue":c[0]||(c[0]=f=>r.input=f),autosize:{minRows:4,maxRows:8},type:"textarea",placeholder:"Please input"},null,8,["modelValue"]),n.createVNode(i,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[1]||(c[1]=f=>t.choicesCheck())},{default:n.withCtx(()=>[n.createTextVNode("Submit")]),_:1}),t.showFeedback()?(n.openBlock(),n.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const No=X(yo,[["render",So]]),Wq="",Eo={components:{},props:["content"],data(){return{quizArray:[],quizOptions:[],input:[],totalAttempts:99,correctChoices:[],feedbackObject:{},value1:"",showMenuOverlay:!1}},watch:{},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{showSub(A){let c=document.getElementById(A);c.classList.contains("jl-menu-sub_show")?(this.showMenuOverlay=!1,this.hideSubs()):(this.showMenuOverlay=!0,c.classList.add("jl-menu-sub_show"))},showSubSub(A){let c=document.getElementById(A);c.classList.contains("jl-menu-sub-sub_show")?(this.showMenuOverlay=!1,this.hideSubs()):(this.showMenuOverlay=!0,c.classList.add("jl-menu-sub-sub_show"))},hideSubs(){this.showMenuOverlay=!1;let A=document.getElementsByClassName("jl-menu-sub_show");for(;A.length>0;)A[0].classList.remove("jl-menu-sub_show");let c=document.getElementsByClassName("jl-menu-sub-sub_show");for(;c.length>0;)c[0].classList.remove("jl-menu-sub-sub_show")},choicesCheck(A){this.hideSubs();let c=!1,e="";if(this.getAttempt<this.content.attempts){if(console.log("got some left"),typeof A=="string"){let a=A.split("-");a.forEach((r,t)=>{a[t]=Number(r)}),a.length===2?this.content.menu[a[0]].subMenu[a[1]].correct&&(this.content.menu[a[0]].subMenu[a[1]].page&&(e=this.content.menu[a[0]].subMenu[a[1]].page),c=!0):a.length===3&&this.content.menu[a[0]].subMenu[a[1]].subMenu[a[2]].correct&&(this.content.menu[a[0]].subMenu[a[1]].subMenu[a[2]].page&&(e=this.content.menu[a[0]].subMenu[a[1]].subMenu[a[2]].page),c=!0)}else this.content.menu[A].correct&&(this.content.menu[A].page&&(e=this.content.menu[A].page),c=!0);c?(this.choicesComplete(e),this.feedbackObject.feedbackHeader=this.content.correctHeader,this.feedbackObject.feedback=this.content.correctFeedback):(this.stepperStore.attempts=this.getAttempt+1,this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.incorrectFeedback)}else this.feedbackObject.feedbackHeader=this.content.incorrectHeader,this.feedbackObject.feedback=this.content.feedbackAttempts,this.choicesComplete();e===""&&(this.stepperStore.showFeedback=!0),setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){this.stepperStore.finishSteps(),typeof A<"u"&&A!==""&&(this.stepperStore.currentPage=A)},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){this.stepperStore.getDirections.display===!1&&(document.getElementsByClassName("jl-menu-sub"),setTimeout(()=>{}))},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("jl-menu-sub"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}},ko={key:0},Io=["index","onClick"],To={class:"jl-menu-sub__title"},Do=["id"],Ko=["index","onClick"],Ro={class:"jl-menu-sub-sub__title"},_o=["id"],Oo=["index","onClick"],Po=["onClick"],Go={key:1,class:"jl-menu-item"},Wo=["index","onClick"];function Xo(A,c,e,a,r,t){const s=n.resolveComponent("CaretBottom"),i=n.resolveComponent("el-icon"),o=n.resolveComponent("CaretRight"),f=n.resolveComponent("lab-feedback");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["menu-chooser",e.content.class])},[r.showMenuOverlay?(n.openBlock(),n.createElementBlock("div",{key:0,class:"nav-mask",onClick:c[0]||(c[0]=(...l)=>t.hideSubs&&t.hideSubs(...l))})):n.createCommentVNode("",!0),n.createElementVNode("p",null,n.toDisplayString(e.content.quiz),1),n.createElementVNode("div",{class:"jl-menu",onSelect:c[1]||(c[1]=(...l)=>t.choicesCheck&&t.choicesCheck(...l))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.menu,(l,m)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[l.subMenu?(n.openBlock(),n.createElementBlock("div",ko,[n.createElementVNode("button",{class:n.normalizeClass("jl-menu-sub sub-"+m),index:m,tabindex:"0",role:"menuitem",onClick:n.withModifiers(h=>t.showSub("sub-"+m),["stop"])},[n.createElementVNode("div",To,[n.createTextVNode(n.toDisplayString(l.name)+" ",1),n.createVNode(i,null,{default:n.withCtx(()=>[n.createVNode(s)]),_:1})])],10,Io),n.createElementVNode("div",{class:"jl-menu-sub-menu",id:"sub-"+m},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.subMenu,(h,H)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[h.subMenu?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{class:n.normalizeClass("jl-menu-sub-sub sub-sub-"+H),index:m+"-"+H,tabindex:"0",role:"menuitem",onClick:n.withModifiers(u=>t.showSubSub("sub-sub-"+m),["stop"])},[n.createElementVNode("div",Ro,[n.createTextVNode(n.toDisplayString(h.name),1),n.createVNode(i,null,{default:n.withCtx(()=>[n.createVNode(o)]),_:1})])],10,Ko),n.createElementVNode("div",{class:"jl-menu-sub-sub-menu",id:"sub-sub-"+m},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.subMenu,(u,p)=>(n.openBlock(),n.createElementBlock("button",{class:"jl-menu-sub-sub-item",index:m+"-"+H+"-"+p,tabindex:"0",role:"menuitem",onClick:n.withModifiers(z=>t.choicesCheck(m+"-"+H+"-"+p),["stop"])},[n.createElementVNode("div",null,n.toDisplayString(u.name),1)],8,Oo))),256))],8,_o)],64)):(n.openBlock(),n.createElementBlock("button",{key:1,class:"jl-menu-sub-item",tabindex:"0",role:"menuitem",onClick:n.withModifiers(u=>t.choicesCheck(m+"-"+H),["stop"])},[n.createElementVNode("div",null,n.toDisplayString(h.name),1)],8,Po))],64))),256))],8,Do)])):(n.openBlock(),n.createElementBlock("div",Go,[n.createElementVNode("button",{class:"jl-menu-sub",index:m,tabindex:"0",role:"menuitem",onClick:n.withModifiers(h=>t.choicesCheck(m),["stop"])},n.toDisplayString(l.name),9,Wo)]))],64))),256))],32),t.showFeedback()?(n.openBlock(),n.createBlock(f,{key:1,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0)],2)}const qo=X(Eo,[["render",Xo]]),Xq="",h8={y:{t:"top",m:"marginTop",b:"bottom"},x:{l:"left",m:"marginLeft",r:"right"}};function Yo(A){A.forEach((c,e)=>{document.documentElement.addEventListener(e,c)})}function Jo(A){A.forEach((c,e)=>{document.documentElement.removeEventListener(e,c)})}const $o={name:"vue-drag-resize",emits:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"],props:{stickSize:{type:Number,default:8},parentScaleX:{type:Number,default:1},parentScaleY:{type:Number,default:1},isActive:{type:Boolean,default:!1},preventActiveBehavior:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},aspectRatio:{type:Boolean,default:!1},parentLimitation:{type:Boolean,default:!1},snapToGrid:{type:Boolean,default:!1},gridX:{type:Number,default:50,validator(A){return A>=0}},gridY:{type:Number,default:50,validator(A){return A>=0}},parentW:{type:Number,default:0,validator(A){return A>=0}},parentH:{type:Number,default:0,validator(A){return A>=0}},w:{type:[String,Number],default:200,validator(A){return typeof A=="string"?A==="auto":A>=0}},h:{type:[String,Number],default:200,validator(A){return typeof A=="string"?A==="auto":A>=0}},minw:{type:Number,default:50,validator(A){return A>=0}},minh:{type:Number,default:50,validator(A){return A>=0}},x:{type:Number,default:0,validator(A){return typeof A=="number"}},y:{type:Number,default:0,validator(A){return typeof A=="number"}},z:{type:[String,Number],default:"auto",validator(A){return typeof A=="string"?A==="auto":A>=0}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},sticks:{type:Array,default(){return["tl","tm","tr","mr","br","bm","bl","ml"]}},axis:{type:String,default:"both",validator(A){return["x","y","both","none"].indexOf(A)!==-1}},contentClass:{type:String,required:!1,default:""}},data(){return{fixAspectRatio:null,active:null,zIndex:null,parentWidth:null,parentHeight:null,left:null,top:null,right:null,bottom:null,minHeight:null}},beforeCreate(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null},mounted(){this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-(this.w==="auto"?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-(this.h==="auto"?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up]]),Yo(this.domEvents),this.dragHandle&&[...this.$el.querySelectorAll(this.dragHandle)].forEach(A=>{A.setAttribute("data-drag-handle",this._uid)}),this.dragCancel&&[...this.$el.querySelectorAll(this.dragCancel)].forEach(A=>{A.setAttribute("data-drag-cancel",this._uid)})},beforeUnmount(){Jo(this.domEvents)},methods:{deselect(){this.preventActiveBehavior||(this.active=!1)},move(A){if(!this.stickDrag&&!this.bodyDrag)return;A.stopPropagation();const c=typeof A.pageX<"u"?A.pageX:A.touches[0].pageX,e=typeof A.pageY<"u"?A.pageY:A.touches[0].pageY,{dimensionsBeforeMove:a}=this,r={x:(a.pointerX-c)/this.parentScaleX,y:(a.pointerY-e)/this.parentScaleY};if(this.stickDrag&&this.stickMove(r),this.bodyDrag){if(this.axis==="x")r.y=0;else if(this.axis==="y")r.x=0;else if(this.axis==="none")return;this.bodyMove(r)}},up(A){this.stickDrag?this.stickUp(A):this.bodyDrag&&this.bodyUp(A)},bodyDown(A){const{target:c,button:e}=A;if(this.preventActiveBehavior||(this.active=!0),e&&e!==0||(this.$emit("clicked",A),!this.active)||this.dragHandle&&c.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&c.getAttribute("data-drag-cancel")===this._uid.toString())return;typeof A.stopPropagation<"u"&&A.stopPropagation(),typeof A.preventDefault<"u"&&A.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);const a=typeof A.pageX<"u"?A.pageX:A.touches[0].pageX,r=typeof A.pageY<"u"?A.pageY:A.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:a,pointerY:r}),this.parentLimitation&&(this.limits=this.calcDragLimitation())},bodyMove(A){const{dimensionsBeforeMove:c,parentWidth:e,parentHeight:a,gridX:r,gridY:t,width:s,height:i}=this;let o=c.top-A.y,f=c.bottom+A.y,l=c.left-A.x,m=c.right+A.x;if(this.snapToGrid){let h=!0,H=!0,u=o-Math.floor(o/t)*t,p=a-f-Math.floor((a-f)/t)*t,z=l-Math.floor(l/r)*r,C=e-m-Math.floor((e-m)/r)*r;u>t/2&&(u-=t),p>t/2&&(p-=t),z>r/2&&(z-=r),C>r/2&&(C-=r),Math.abs(p)<Math.abs(u)&&(h=!1),Math.abs(C)<Math.abs(z)&&(H=!1),o-=h?u:p,f=a-i-o,l-=H?z:C,m=e-s-l}({newLeft:this.left,newRight:this.right,newTop:this.top,newBottom:this.bottom}=this.rectCorrectionByLimit({newLeft:l,newRight:m,newTop:o,newBottom:f})),this.$emit("dragging",this.rect)},bodyUp(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}},stickDown(A,c,e=!1){if((!this.isResizable||!this.active)&&!e)return;this.stickDrag=!0;const a=typeof c.pageX<"u"?c.pageX:c.touches[0].pageX,r=typeof c.pageY<"u"?c.pageY:c.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:a,pointerY:r}),this.currentStick=A,this.limits=this.calcResizeLimits()},saveDimensionsBeforeMove({pointerX:A,pointerY:c}){this.dimensionsBeforeMove.pointerX=A,this.dimensionsBeforeMove.pointerY=c,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height},stickMove(A){const{currentStick:c,dimensionsBeforeMove:e,gridY:a,gridX:r,snapToGrid:t,parentHeight:s,parentWidth:i}=this;let o=e.top,f=e.bottom,l=e.left,m=e.right;switch(c[0]){case"b":f=e.bottom+A.y,t&&(f=s-Math.round((s-f)/a)*a);break;case"t":o=e.top-A.y,t&&(o=Math.round(o/a)*a);break}switch(c[1]){case"r":m=e.right+A.x,t&&(m=i-Math.round((i-m)/r)*r);break;case"l":l=e.left-A.x,t&&(l=Math.round(l/r)*r);break}({newLeft:l,newRight:m,newTop:o,newBottom:f}=this.rectCorrectionByLimit({newLeft:l,newRight:m,newTop:o,newBottom:f})),this.aspectRatio&&({newLeft:l,newRight:m,newTop:o,newBottom:f}=this.rectCorrectionByAspectRatio({newLeft:l,newRight:m,newTop:o,newBottom:f})),this.left=l,this.right=m,this.top=o,this.bottom=f,this.$emit("resizing",this.rect)},stickUp(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},calcDragLimitation(){const{parentWidth:A,parentHeight:c}=this;return{left:{min:0,max:A-this.width},right:{min:0,max:A-this.width},top:{min:0,max:c-this.height},bottom:{min:0,max:c-this.height}}},calcResizeLimits(){const{aspectFactor:A,width:c,height:e,bottom:a,top:r,left:t,right:s}=this;let{minh:i,minw:o}=this;const f=this.parentLimitation?0:null;this.aspectRatio&&(o/i>A?i=o/A:o=A*i);const l={left:{min:f,max:t+(c-o)},right:{min:f,max:s+(c-o)},top:{min:f,max:r+(e-i)},bottom:{min:f,max:a+(e-i)}};if(this.aspectRatio){const m={left:{min:t-Math.min(r,a)*A*2,max:t+(e-i)/2*A*2},right:{min:s-Math.min(r,a)*A*2,max:s+(e-i)/2*A*2},top:{min:r-Math.min(t,s)/A*2,max:r+(c-o)/2/A*2},bottom:{min:a-Math.min(t,s)/A*2,max:a+(c-o)/2/A*2}};this.currentStick[0]==="m"?(l.left={min:Math.max(l.left.min,m.left.min),max:Math.min(l.left.max,m.left.max)},l.right={min:Math.max(l.right.min,m.right.min),max:Math.min(l.right.max,m.right.max)}):this.currentStick[1]==="m"&&(l.top={min:Math.max(l.top.min,m.top.min),max:Math.min(l.top.max,m.top.max)},l.bottom={min:Math.max(l.bottom.min,m.bottom.min),max:Math.min(l.bottom.max,m.bottom.max)})}return l},sideCorrectionByLimit(A,c){let e=c;return A.min!==null&&c<A.min?e=A.min:A.max!==null&&A.max<c&&(e=A.max),e},rectCorrectionByLimit(A){const{limits:c}=this;let{newRight:e,newLeft:a,newBottom:r,newTop:t}=A;return a=this.sideCorrectionByLimit(c.left,a),e=this.sideCorrectionByLimit(c.right,e),t=this.sideCorrectionByLimit(c.top,t),r=this.sideCorrectionByLimit(c.bottom,r),{newLeft:a,newRight:e,newTop:t,newBottom:r}},rectCorrectionByAspectRatio(A){let{newLeft:c,newRight:e,newTop:a,newBottom:r}=A;const{parentWidth:t,parentHeight:s,currentStick:i,aspectFactor:o,dimensionsBeforeMove:f}=this;let l=t-c-e,m=s-a-r;if(i[1]==="m"){const h=m-f.height;c-=h*o/2,e-=h*o/2}else if(i[0]==="m"){const h=l-f.width;a-=h/o/2,r-=h/o/2}else l/m>o?(l=o*m,i[1]==="l"?c=t-e-l:e=t-c-l):(m=l/o,i[0]==="t"?a=s-r-m:r=s-a-m);return{newLeft:c,newRight:e,newTop:a,newBottom:r}}},computed:{positionStyle(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}},sizeStyle(){return{width:this.width+"px",height:this.height+"px"}},vdrStick(){return A=>{const c={width:`${this.stickSize/this.parentScaleX}px`,height:`${this.stickSize/this.parentScaleY}px`};return c[h8.y[A[0]]]=`${this.stickSize/this.parentScaleX/-2}px`,c[h8.x[A[1]]]=`${this.stickSize/this.parentScaleX/-2}px`,c}},width(){return this.parentWidth-this.left-this.right},height(){return this.parentHeight-this.top-this.bottom},rect(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}},watch:{active(A){A?this.$emit("activated"):this.$emit("deactivated")},isActive:{immediate:!0,handler(A){this.active=A}},z:{immediate:!0,handler(A){(A>=0||A==="auto")&&(this.zIndex=A)}},x:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.left)return;const e=c-A;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:e,y:0}),this.$nextTick(()=>{this.bodyUp()})}},y:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.top)return;const e=c-A;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:e}),this.$nextTick(()=>{this.bodyUp()})}},w:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.width)return;const e="mr",a=c-A;this.stickDown(e,{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:a,y:0}),this.$nextTick(()=>{this.stickUp()})}},h:{handler(A,c){if(this.stickDrag||this.bodyDrag||A===this.height)return;const e="bm",a=c-A;this.stickDown(e,{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:a}),this.$nextTick(()=>{this.stickUp()})}},parentW(A){this.right=A-this.width-this.left,this.parentWidth=A},parentH(A){this.bottom=A-this.height-this.top,this.parentHeight=A}}},jo=["onMousedown","onTouchstart"];function Zo(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vdr",`${r.active||e.isActive?"active":"inactive"} ${e.contentClass?e.contentClass:""}`]),style:n.normalizeStyle(t.positionStyle),onMousedown:c[0]||(c[0]=s=>t.bodyDown(s)),onTouchstart:c[1]||(c[1]=s=>t.bodyDown(s)),onTouchend:c[2]||(c[2]=s=>t.up(s)),ref:"container",tabindex:"0"},[n.createElementVNode("div",{style:n.normalizeStyle(t.sizeStyle),class:"content-container",ref:"container2"},[n.renderSlot(A.$slots,"default")],4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.sticks,s=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vdr-stick",["vdr-stick-"+s,e.isResizable?"":"not-resizable"]]),onMousedown:n.withModifiers(i=>t.stickDown(s,i),["stop","prevent"]),onTouchstart:n.withModifiers(i=>t.stickDown(s,i),["stop","prevent"]),style:n.normalizeStyle(t.vdrStick(s))},null,46,jo))),256))],38)}const H8=X($o,[["render",Zo]]),qq="",Al={components:{VueDragResize:H8},props:["content"],data(){return{}},watch:{},computed:{},methods:{onResizstop(A){console.log("i have stopped resizing",A)},onDragstop(A){},reset(){this.listOne=[]},getParentWidth(){let A=document.getElementsByClassName("fridgemagnet");setTimeout(()=>A[0].offsetWidth)},getParentHeight(){let A=document.getElementsByClassName("fridgemagnet");setTimeout(()=>A[0].offsetHeight)},keyboardMove(A){for(let c of A)document.getElementById(c.id).addEventListener("focusin",a=>{let r=document.getElementsByClassName("fridgemagnet");addEventListener("keydown",function(t){let s=document.getElementById(t.target.id);if(t.altKey&&t.key==="ArrowLeft"){let i=Number(s.style.left.slice(0,-2));i-10<0?s.style.left=`${i}px`:s.style.left=`${i-10}px`}if(t.altKey&&t.key==="ArrowRight"){let i=Number(s.style.left.slice(0,-2));i+10>r[0].offsetWidth-50?s.style.left=`${i}px`:s.style.left=`${i+10}px`}if(t.altKey&&t.key==="ArrowUp"){let i=Number(s.style.top.slice(0,-2));i+10<0?s.style.top=`${i}px`:s.style.top=`${i-10}px`}if(t.altKey&&t.key==="ArrowDown"){let i=Number(s.style.top.slice(0,-2));i+10>r[0].offsetHeight-80?s.style.top=`${i}px`:s.style.top=`${i+10}px`}})})}},mounted(){let A=document.getElementsByClassName("vdr");setTimeout(()=>{A[0].focus()}),this.keyboardMove(A)},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("vdr")}},cl={class:"fridgemagnet"},el=["innerHTML"],al=["src","alt"],rl=["id","src","alt"],tl=["innerHTML"];function sl(A,c,e,a,r,t){const s=n.resolveComponent("VueDragResize");return n.openBlock(),n.createElementBlock("div",cl,[e.content.directions?(n.openBlock(),n.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,el)):n.createCommentVNode("",!0),n.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,al),n.createElementVNode("div",{class:n.normalizeClass(["fridge",e.content.class,e.content.noOutline?"no_outline":""])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content.magnets,(i,o)=>(n.openBlock(),n.createBlock(s,{id:"vdr_"+o,isActive:!0,w:i.width?i.width:50,minw:i.minWidth?i.minWidth:50,h:i.height?i.height:50,minh:i.minHeight?i.minHeight:50,x:i.x?i.x:0,y:i.y?i.y:60*o,class:n.normalizeClass(i.class),parentLimitation:!0,parentW:i.parentwidth?i.parentwidth:t.getParentWidth(),parentH:i.parentheight?i.parentheight:t.getParentHeight(),isResizable:i.resizable,isDraggable:i.draggable,snapToGrid:i.snap,gridX:i.snapX,gridY:i.snapY,dragHandle:i.handle,onResizing:A.resize,onDragging:A.resize,aspectRatio:!0,onResizestop:t.onResizstop,onDragstop:t.onDragstop,sticks:["tl","bl","tr","br"]},{default:n.withCtx(()=>[i.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:i.index,src:i.image,alt:i.imageAlt},null,8,rl)):n.createCommentVNode("",!0),i.text?(n.openBlock(),n.createElementBlock("p",{key:1,innerHTML:i.text},null,8,tl)):n.createCommentVNode("",!0)]),_:2},1032,["id","w","minw","h","minh","x","y","class","parentW","parentH","isResizable","isDraggable","snapToGrid","gridX","gridY","dragHandle","onResizing","onDragging","onResizestop","onDragstop"]))),256))],2)])}const nl=X(Al,[["render",sl]]),Yq="",il={components:{},props:["content"],data(){return{binCount:0,listOne:[]}},watch:{},computed:{binColumns(){return Math.round(24/this.binCount)},myList:{get(){return this.listOne}}},methods:{createItems(){this.binCount=this.content.bins.length,this.content.bins.forEach(A=>{this.listOne.push(A.items)})},dragBackground(A){return`white url(${A}) 0 0 no-repeat`},pixelFormat(A){return this.stepperStore.pixelFormat(A)},checkMove(A){if(this.content.sound){let c=document.getElementById("myAudio");setTimeout(()=>{c.play()},1e3)}if(A.draggedContext.element.relSwap&&setTimeout(()=>{let c=A.draggedContext.element.id,e=document.getElementById(c);e.src=A.draggedContext.element.relSwap},1500),this.stepperStore.stepHold=!1,this.stepperStore.finishSteps(),this.stepperStore.lastPageFocus(),A!=="clicked")return!A.from.classList.contains("preventMove")},reset(){this.listOne=[],this.createItems()},keyboardDrag(A,c){if(A.class.indexOf("preventMove")>0)return!1;A.class+=" preventMove",this.listOne[c].splice(A),this.listOne[c+1].push(A),this.checkMove("clicked")}},mounted(){let A=document.getElementsByClassName("dragItems-button");setTimeout(()=>{A[0].focus()})},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("dragItems-button"),this.createItems()}},ol=["innerHTML"],ll={key:1,id:"myAudio"},fl=["src"],ml={class:"list-group-item"},hl=["onClick"],Hl=["id","src","alt","data-swap"];function ul(A,c,e,a,r,t){const s=n.resolveComponent("lab-image"),i=n.resolveComponent("el-col"),o=n.resolveComponent("draggable"),f=n.resolveComponent("el-row");return n.openBlock(),n.createBlock(f,{class:n.normalizeClass(["dragDrop",e.content.handle])},{default:n.withCtx(()=>[n.createVNode(i,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",{innerHTML:e.content.directions},null,8,ol),e.content.image?(n.openBlock(),n.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):n.createCommentVNode("",!0),e.content.sound?(n.openBlock(),n.createElementBlock("audio",ll,[n.createElementVNode("source",{src:e.content.sound,type:"audio/mpeg"},null,8,fl),n.createTextVNode(" Your browser does not support the audio element. ")])):n.createCommentVNode("",!0)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listOne,(l,m)=>(n.openBlock(),n.createBlock(i,{span:t.binColumns},{default:n.withCtx(()=>[n.createVNode(o,{class:n.normalizeClass(["draggable list-group",e.content.bins[m].class]),style:n.normalizeStyle({width:t.pixelFormat(e.content.bins[m].width),height:t.pixelFormat(e.content.bins[m].height),background:t.dragBackground(e.content.bins[m].bgImage)}),modelValue:t.myList[m],"onUpdate:modelValue":h=>t.myList[m]=h,move:t.checkMove,group:"people",forceFallback:"true"},{item:n.withCtx(({element:h})=>[n.createElementVNode("div",ml,[n.createElementVNode("button",{class:"dragItems-button",onClick:n.withModifiers(H=>t.keyboardDrag(h,m),["stop"])},[n.createTextVNode(n.toDisplayString(h.text)+" ",1),h.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:h.id,src:h.image,alt:h.imageAlt,"data-swap":h.relSwap},null,8,Hl)):n.createCommentVNode("",!0)],8,hl)])]),_:2},1032,["class","style","modelValue","onUpdate:modelValue","move"])]),_:2},1032,["span"]))),256))]),_:1},8,["class"])}const Cl=X(il,[["render",ul]]),Jq="",Bl={components:{},props:["content"],data(){return{binCount:0,listOne:[],listTwo:[],listTwoCompleted:[],totalAttempts:99,choice:{header:"",feedback:""},chooseBin:{},chooseVisibility:!1,kbCurrentId:"",feedbackObject:{}}},watch:{},computed:{binColumns(){return Math.round(24/this.binCount)},myList:{get(){return this.listOne}},myList2:{get(){return this.listTwo}},getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{failed(){this.listTwo.length>0&&(this.listTwo.forEach(A=>{this.listOne.forEach(c=>{c.forEach(e=>{A.id===e.id&&c.push(A)})})}),this.listTwo="",this.choice.header=this.content.failedHeader,this.choice.feedback=this.content.failedFeedback,this.feedbackVisibility=!0)},createItems(){this.binCount=this.content.bins.length,this.content.bins.forEach((A,c)=>{let e=Math.round(Date.now()/Math.random());A.items.forEach(a=>{a.hide=!0,a.id=e,a.oldKey=c,this.listTwo.push(a)}),this.listOne.push(JSON.parse(JSON.stringify(A.items)))}),this.listTwo.forEach(A=>{A.hide=!1})},dragBackground(A){return`white url(${A}) 0 0 no-repeat`},pixelFormat(A){return this.stepperStore.pixelFormat(A)},checkMove(A){if(A.to.dataset.index){let c=this.listOne[A.to.dataset.index],e=A.oldIndex,a=!1;c.forEach(r=>{r.hide===!0&&r.id===A.item._underlying_vm_.id&&(a=!0)}),a?(this.stepperStore.showFeedback=!0,this.feedbackObject.feedbackHeader=A.item._underlying_vm_.correctHeader,this.feedbackObject.feedback=A.item._underlying_vm_.correctFeedback,this.feedbackObject.feedbackImage=A.item._underlying_vm_.correctFeedbackImage,this.listTwoCompleted.push(e),this.myList2.length===0&&this.stepperStore.finishSteps()):(this.feedbackObject.feedbackHeader=A.item._underlying_vm_.incorrectHeader,this.feedbackObject.feedback=A.item._underlying_vm_.incorrectFeedback,this.feedbackObject.feedbackImage=A.item._underlying_vm_.incorrectFeedbackImage,this.listTwo.push(A.item._underlying_vm_),this.getAttempt<this.content.attempts?this.stepperStore.attempts=this.getAttempt+1:(this.stepperStore.showFeedbackAttempts=!0,this.failed()),this.stepperStore.showFeedback=!0,c.forEach((r,t)=>{r.id===A.item._underlying_vm_.id&&c.splice(t,1)})),setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})}},stopMove(){return!1},kbCheckMove(A,c){if(typeof A>"u")this.chooseVisibility=!1;else{if(this.listOne[A][c].id===this.kbCurrentId){let a=-1;this.listTwo.forEach((r,t)=>{r.id===this.kbCurrentId&&(a=t)}),this.stepperStore.showFeedback=!0,this.feedbackObject.feedbackHeader=this.listOne[A][c].correctHeader,this.feedbackObject.feedback=this.listOne[A][c].correctFeedback,this.feedbackObject.feedbackImage=this.listOne[A][c].correctFeedbackImage,this.chooseVisibility=!1,this.listTwoCompleted.push(A),this.listTwo.splice(a,1),this.myList2.length===0&&this.stepperStore.finishSteps(),this.listOne[A][c].hide=!1}else this.feedbackObject.feedbackHeader=this.listOne[A][c].incorrectHeader,this.feedbackObject.feedback=this.listOne[A][c].incorrectFeedback,this.feedbackObject.feedbackImage=this.listOne[A][c].incorrectFeedbackImage,this.chooseVisibility=!1,this.stepperStore.showFeedback=!0,this.getAttempt<this.content.attempts?this.stepperStore.attempts=this.getAttempt+1:(this.chooseVisibility=!1,this.stepperStore.showFeedbackAttempts=!0,this.failed());setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})}},keyboardDrag(A){if(A.class.indexOf("preventMove")>0)return!1;this.chooseVisibility=!0,this.kbCurrentId=A.id,setTimeout(()=>{document.getElementById("firstBin").focus()})},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){if(this.stepperStore.getDirections.display===!1){let A=document.getElementsByClassName("dragItems-button");setTimeout(()=>{A[0].focus()})}},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("dragItems-button"),this.stepperStore.attempts=0,this.content.attempts&&(this.totalAttempts=this.content.attempts),this.createItems()}},pl=["innerHTML"],vl=["onClick"],dl=["id","src","alt"],gl={key:0,class:"dropBin"},zl={class:"dragItems-button"},Vl=["id","src","alt"],Ml={class:"dialog-footer"};function wl(A,c,e,a,r,t){const s=n.resolveComponent("lab-image"),i=n.resolveComponent("el-col"),o=n.resolveComponent("draggable"),f=n.resolveComponent("el-row"),l=n.resolveComponent("lab-feedback"),m=n.resolveComponent("el-button"),h=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(f,{class:n.normalizeClass(["dragDrop",e.content.handle]),id:"dragItemDiv"},{default:n.withCtx(()=>[n.createVNode(i,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",{innerHTML:e.content.directions},null,8,pl),e.content.image?(n.openBlock(),n.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):n.createCommentVNode("",!0)]),_:1}),n.createVNode(i,{span:24},{default:n.withCtx(()=>[n.createVNode(o,{class:"dragItems",list:r.listTwo,group:"put",forceFallback:"true",itemKey:"image",sort:!1,onEnd:t.checkMove},{item:n.withCtx(({element:H})=>[n.createElementVNode("div",{class:n.normalizeClass(["dragItem",H.class])},[n.createElementVNode("button",{class:"dragItems-button",onClick:n.withModifiers(u=>t.keyboardDrag(H),["stop"])},[n.createTextVNode(n.toDisplayString(H.text)+" ",1),H.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:H.id,src:H.image,alt:H.imageAlt},null,8,dl)):n.createCommentVNode("",!0)],8,vl)],2)]),_:1},8,["list","onEnd"])]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listOne,(H,u)=>(n.openBlock(),n.createBlock(i,{span:t.binColumns},{default:n.withCtx(()=>[n.createElementVNode("h4",null,n.toDisplayString(e.content.bins[u].header),1),n.createVNode(o,{class:n.normalizeClass(["dropBins el-row",e.content.bins[u].class]),"data-index":u,list:r.listOne[u],group:"put",forceFallback:"true",itemKey:"text",sort:!1,move:t.stopMove},{item:n.withCtx(({element:p})=>[p.hide?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",gl,[n.createElementVNode("button",zl,[n.createTextVNode(n.toDisplayString(p.text)+" ",1),p.image?(n.openBlock(),n.createElementBlock("img",{key:0,id:p.id,src:p.droppedImage,alt:p.imageAlt},null,8,Vl)):n.createCommentVNode("",!0)])]))]),_:2},1032,["class","data-index","list","move"])]),_:2},1032,["span"]))),256))]),_:1},8,["class"]),t.showFeedback()?(n.openBlock(),n.createBlock(l,{key:0,content:r.feedbackObject},null,8,["content"])):n.createCommentVNode("",!0),n.createVNode(h,{title:e.content.kbModalQuestion,modelValue:r.chooseVisibility,"onUpdate:modelValue":c[1]||(c[1]=H=>r.chooseVisibility=H),width:"50%"},{footer:n.withCtx(()=>[n.createElementVNode("span",Ml,[n.createVNode(m,{size:"small",id:"visibilityClose",type:"primary",onClick:c[0]||(c[0]=H=>t.kbCheckMove())},{default:n.withCtx(()=>[n.createTextVNode("Close")]),_:1})])]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listOne,(H,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(H,(p,z)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[u===0?(n.openBlock(),n.createBlock(m,{key:0,id:"firstBin",size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.content.bins[u].header),1)]),_:2},1032,["onClick"])):(n.openBlock(),n.createBlock(m,{key:1,size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.content.bins[u].header),1)]),_:2},1032,["onClick"]))],64))),256))],64))),256))]),_:1},8,["title","modelValue"])],64)}const Ll=X(Bl,[["render",wl]]),$q="",Ql={props:["content"],data(){return{totalAttempts:99}},computed:{getAttempt(){return this.stepperStore.getAttempts},getShowFeedbackAttempts(){return this.stepperStore.getShowFeedbackAttempts}},methods:{choicesCheck(){setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(){this.stepperStore.finishSteps()},showFeedback(){return!!this.stepperStore.getShowFeedback}},mounted(){this.stepperStore.getDirections.display===!1&&setTimeout(()=>{})},beforeMount(){this.stepperStore=this.stepperMain(),this.stepperStore.resetSteps("el-input__inner"),this.content.attempts&&(this.totalAttempts=this.content.attempts)}},Fl=["src","width","height"];function Ul(A,c,e,a,r,t){return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("iframe",{class:"importedIframe",src:"imports/"+e.content.importFolder+"/"+e.content.importIndex,allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",width:e.content.width,height:e.content.height},null,8,Fl)])}const bl=X(Ql,[["render",Ul],["__scopeId","data-v-f5bc6f4c"]]);/*!
|
|
2
2
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
3
3
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
4
4
|
* Released under MIT License
|