labmaker-plugin 0.0.277 → 0.0.279

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.
@@ -1,4 +1,4 @@
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, renderList as f2, createVNode as X, renderSlot as Sn, defineComponent as i0, computed as L2, watch as Nn, h as A5 } from "vue";
1
+ import { openBlock as B, createElementBlock as V, Fragment as K, createElementVNode as U, toDisplayString as Z, normalizeClass as O, createCommentVNode as S, resolveComponent as y, normalizeStyle as D2, createBlock as T, withModifiers as p2, withCtx as k, createTextVNode as o2, renderList as f2, createVNode as X, renderSlot as Sn, defineComponent as i0, computed as L2, watch as Nn, h as A5 } from "vue";
2
2
  const s2 = (A, c) => {
3
3
  const e = A.__vccOpts || A;
4
4
  for (const [a, r] of c)
@@ -25,7 +25,7 @@ const s2 = (A, c) => {
25
25
  }
26
26
  }, kn = /* @__PURE__ */ U("h1", null, "File Uploader", -1), In = { class: "image-uploader" }, Tn = /* @__PURE__ */ U("h1", null, "File Uploader", -1), Dn = { class: "your-file" }, Kn = ["src"];
27
27
  function Rn(A, c, e, a, r, t) {
28
- return B(), V(D, null, [
28
+ return B(), V(K, null, [
29
29
  kn,
30
30
  U("div", In, [
31
31
  Tn,
@@ -288,7 +288,7 @@ function oo(A, c, e, a, r, t) {
288
288
  ], 2)) : S("", !0)
289
289
  ], 4)) : S("", !0),
290
290
  e.content.kalturaEntryId == "" ? (B(), V("div", no, "There is no Kaltura Entry ID")) : S("", !0),
291
- e.content.textVersion ? (B(), K(s, {
291
+ e.content.textVersion ? (B(), T(s, {
292
292
  key: 3,
293
293
  size: "medium",
294
294
  type: "primary",
@@ -317,6 +317,15 @@ const fo = {
317
317
  },
318
318
  computed: {},
319
319
  methods: {
320
+ showSpot(A) {
321
+ if (this.stepperStore.getStepPage[A].testPage) {
322
+ let c = !0;
323
+ return this.stepperStore.getStepPage.forEach((e, a) => {
324
+ e.testPage !== !0 && !e.completed && (c = !1);
325
+ }), !!c;
326
+ }
327
+ return !0;
328
+ },
320
329
  pixelFormat(A) {
321
330
  return this.stepperStore.pixelFormat(A);
322
331
  },
@@ -354,8 +363,9 @@ function Co(A, c, e, a, r, t) {
354
363
  alt: e.content.imageAlt
355
364
  }, null, 8, uo),
356
365
  U("div", mo, [
357
- (B(!0), V(D, null, f2(t.hotspots(), (n, o) => (B(), V(D, null, [
358
- X(s, {
366
+ (B(!0), V(K, null, f2(t.hotspots(), (n, o) => (B(), V(K, null, [
367
+ t.showSpot(o) ? (B(), T(s, {
368
+ key: 0,
359
369
  type: n.buttonType,
360
370
  onClick: p2((l) => t.changePage(n, o), ["stop"]),
361
371
  id: "hotspot_" + o,
@@ -373,16 +383,16 @@ function Co(A, c, e, a, r, t) {
373
383
  U("span", vo, Z(n.name), 1)
374
384
  ]),
375
385
  _: 2
376
- }, 1032, ["type", "onClick", "id", "class", "style", "icon"]),
377
- t.showFeedback(o) ? (B(), K(i, {
378
- key: 0,
386
+ }, 1032, ["type", "onClick", "id", "class", "style", "icon"])) : S("", !0),
387
+ t.showFeedback(o) ? (B(), T(i, {
388
+ key: 1,
379
389
  content: n
380
390
  }, null, 8, ["content"])) : S("", !0)
381
391
  ], 64))), 256))
382
392
  ])
383
393
  ]);
384
394
  }
385
- const Bo = /* @__PURE__ */ s2(fo, [["render", Co], ["__scopeId", "data-v-73fb4688"]]);
395
+ const Bo = /* @__PURE__ */ s2(fo, [["render", Co], ["__scopeId", "data-v-edf5c305"]]);
386
396
  const po = {
387
397
  props: ["content"],
388
398
  data() {
@@ -415,7 +425,7 @@ const po = {
415
425
  }, go = ["innerHTML"], zo = ["src", "alt"], Vo = { class: "hotspotArea" };
416
426
  function Mo(A, c, e, a, r, t) {
417
427
  const s = y("el-col"), i = y("el-button"), n = y("el-row");
418
- return B(), K(n, { class: "imageReplacer" }, {
428
+ return B(), T(n, { class: "imageReplacer" }, {
419
429
  default: k(() => [
420
430
  X(s, { span: 12 }, {
421
431
  default: k(() => [
@@ -434,7 +444,7 @@ function Mo(A, c, e, a, r, t) {
434
444
  alt: r.imageAlt
435
445
  }, null, 8, zo),
436
446
  U("div", Vo, [
437
- (B(!0), V(D, null, f2(e.content.hotspots, (o, l) => (B(), K(i, {
447
+ (B(!0), V(K, null, f2(e.content.hotspots, (o, l) => (B(), T(i, {
438
448
  type: o.buttonType,
439
449
  onClick: p2((f) => t.changeImage(l), ["stop"]),
440
450
  class: "hotspot",
@@ -482,7 +492,7 @@ const Lo = {
482
492
  }, Qo = { class: "my-header" }, Fo = ["id", "innerHTML"], Uo = ["innerHTML"], bo = { key: 1 }, xo = { key: 0 }, yo = ["src"], So = ["innerHTML"], No = { class: "dialog-footer" };
483
493
  function Eo(A, c, e, a, r, t) {
484
494
  const s = y("lab-kaltura"), i = y("lab-image"), n = y("el-button"), o = y("el-dialog");
485
- return B(), K(o, {
495
+ return B(), T(o, {
486
496
  width: t.feedbackWidth,
487
497
  modelValue: r.show,
488
498
  "onUpdate:modelValue": c[1] || (c[1] = (l) => r.show = l),
@@ -513,19 +523,19 @@ function Eo(A, c, e, a, r, t) {
513
523
  ])
514
524
  ]),
515
525
  default: k(() => [
516
- t.getShowFeedbackAttempts ? (B(), V(D, { key: 0 }, [
526
+ t.getShowFeedbackAttempts ? (B(), V(K, { key: 0 }, [
517
527
  e.content.feedbackAttempts ? (B(), V("p", {
518
528
  key: 0,
519
529
  innerHTML: e.content.feedbackAttempts
520
530
  }, null, 8, Uo)) : (B(), V("p", bo, "You have tried too many times, the correct answer has been provided for you."))
521
- ], 64)) : (B(), V(D, { key: 1 }, [
531
+ ], 64)) : (B(), V(K, { key: 1 }, [
522
532
  e.content.feedbackContent ? (B(), V("div", xo, [
523
- e.content.feedbackContent.type === "media" ? (B(), K(s, {
533
+ e.content.feedbackContent.type === "media" ? (B(), T(s, {
524
534
  key: 0,
525
535
  content: e.content.feedbackContent.fieldValues,
526
536
  class: O([e.content.feedbackContent.fieldValues.class, { video: e.content.feedbackContent.fieldValues.kalturaType === "video" }])
527
537
  }, null, 8, ["content", "class"])) : S("", !0),
528
- e.content.feedbackContent.type === "image" ? (B(), K(i, {
538
+ e.content.feedbackContent.type === "image" ? (B(), T(i, {
529
539
  key: 1,
530
540
  content: e.content.feedbackContent.fieldValues
531
541
  }, null, 8, ["content"])) : S("", !0)
@@ -649,14 +659,14 @@ function To(A, c, e, a, r, t) {
649
659
  class: O(["drop-down", e.content.class])
650
660
  }, [
651
661
  U("p", null, [
652
- (B(!0), V(D, null, f2(r.quizArray, (f, h) => (B(), V(D, null, [
662
+ (B(!0), V(K, null, f2(r.quizArray, (f, h) => (B(), V(K, null, [
653
663
  U("span", {
654
664
  class: O(t.quizClass(h))
655
665
  }, [
656
666
  U("span", {
657
667
  class: O("quizText quizSection_" + h)
658
668
  }, Z(f) + " ", 3),
659
- t.quizType(h) === "choose" ? (B(), K(i, {
669
+ t.quizType(h) === "choose" ? (B(), T(i, {
660
670
  key: 0,
661
671
  onChange: (u) => t.choicesMade(h),
662
672
  modelValue: r.input[h],
@@ -664,7 +674,7 @@ function To(A, c, e, a, r, t) {
664
674
  placeholder: t.quizDisplay(h)
665
675
  }, {
666
676
  default: k(() => [
667
- t.quizArrayCompleted(h) ? S("", !0) : (B(!0), V(D, { key: 0 }, f2(r.quizOptions[h], (u) => (B(), K(s, {
677
+ t.quizArrayCompleted(h) ? S("", !0) : (B(!0), V(K, { key: 0 }, f2(r.quizOptions[h], (u) => (B(), T(s, {
668
678
  key: u,
669
679
  label: u,
670
680
  value: u
@@ -672,7 +682,7 @@ function To(A, c, e, a, r, t) {
672
682
  ]),
673
683
  _: 2
674
684
  }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "placeholder"])) : S("", !0),
675
- t.quizType(h) === "date" ? (B(), K(n, {
685
+ t.quizType(h) === "date" ? (B(), T(n, {
676
686
  key: 1,
677
687
  onChange: (u) => t.choicesMade(h),
678
688
  modelValue: r.input[h],
@@ -698,7 +708,7 @@ function To(A, c, e, a, r, t) {
698
708
  ]),
699
709
  _: 1
700
710
  }),
701
- t.showFeedback() ? (B(), K(l, {
711
+ t.showFeedback() ? (B(), T(l, {
702
712
  key: 0,
703
713
  content: r.feedbackObject
704
714
  }, null, 8, ["content"])) : S("", !0)
@@ -780,9 +790,9 @@ function Ro(A, c, e, a, r, t) {
780
790
  class: O(["fill-blank", e.content.class])
781
791
  }, [
782
792
  U("p", null, [
783
- (B(!0), V(D, null, f2(r.quizArray, (o, l) => (B(), V(D, null, [
793
+ (B(!0), V(K, null, f2(r.quizArray, (o, l) => (B(), V(K, null, [
784
794
  o2(Z(o), 1),
785
- l < t.quizArrayCount ? (B(), K(s, {
795
+ l < t.quizArrayCount ? (B(), T(s, {
786
796
  key: 0,
787
797
  modelValue: r.input[l],
788
798
  "onUpdate:modelValue": (f) => r.input[l] = f,
@@ -802,7 +812,7 @@ function Ro(A, c, e, a, r, t) {
802
812
  ]),
803
813
  _: 1
804
814
  }),
805
- t.showFeedback() ? (B(), K(n, {
815
+ t.showFeedback() ? (B(), T(n, {
806
816
  key: 0,
807
817
  content: r.feedbackObject
808
818
  }, null, 8, ["content"])) : S("", !0)
@@ -880,7 +890,7 @@ const Oo = {
880
890
  }, Po = ["innerHTML"], Go = { class: "buttonSpan" }, Wo = ["src", "alt"], Xo = { class: "selectable-buttonText" };
881
891
  function qo(A, c, e, a, r, t) {
882
892
  const s = y("lab-image"), i = y("el-col"), n = y("el-divider"), o = y("el-button"), l = y("lab-feedback"), f = y("el-row");
883
- return B(), K(f, {
893
+ return B(), T(f, {
884
894
  id: e.content.id,
885
895
  class: O(["selectable", e.content.classes])
886
896
  }, {
@@ -893,7 +903,7 @@ function qo(A, c, e, a, r, t) {
893
903
  key: 0,
894
904
  innerHTML: e.content.directions
895
905
  }, null, 8, Po)) : S("", !0),
896
- e.content.image ? (B(), K(s, {
906
+ e.content.image ? (B(), T(s, {
897
907
  key: 1,
898
908
  content: e.content.image
899
909
  }, null, 8, ["content"])) : S("", !0)
@@ -905,8 +915,8 @@ function qo(A, c, e, a, r, t) {
905
915
  class: "selectArea"
906
916
  }, {
907
917
  default: k(() => [
908
- (B(!0), V(D, null, f2(e.content.choices, (h, u) => (B(), V(D, null, [
909
- !e.content.noDivider && u > 0 ? (B(), K(n, { key: 0 })) : S("", !0),
918
+ (B(!0), V(K, null, f2(e.content.choices, (h, u) => (B(), V(K, null, [
919
+ !e.content.noDivider && u > 0 ? (B(), T(n, { key: 0 })) : S("", !0),
910
920
  X(o, {
911
921
  size: "small",
912
922
  type: "primary",
@@ -927,7 +937,7 @@ function qo(A, c, e, a, r, t) {
927
937
  ]),
928
938
  _: 2
929
939
  }, 1032, ["style", "onClick"]),
930
- t.showFeedback(u) ? (B(), K(l, {
940
+ t.showFeedback(u) ? (B(), T(l, {
931
941
  key: 1,
932
942
  content: h
933
943
  }, null, 8, ["content"])) : S("", !0)
@@ -1027,7 +1037,7 @@ function $o(A, c, e, a, r, t) {
1027
1037
  ]),
1028
1038
  _: 1
1029
1039
  }),
1030
- t.showFeedback() ? (B(), K(n, {
1040
+ t.showFeedback() ? (B(), T(n, {
1031
1041
  key: 0,
1032
1042
  content: r.feedbackObject
1033
1043
  }, null, 8, ["content"])) : S("", !0)
@@ -1128,7 +1138,7 @@ function fl(A, c, e, a, r, t) {
1128
1138
  class: "jl-menu",
1129
1139
  onSelect: c[1] || (c[1] = (...l) => t.choicesCheck && t.choicesCheck(...l))
1130
1140
  }, [
1131
- (B(!0), V(D, null, f2(e.content.menu, (l, f) => (B(), V(D, null, [
1141
+ (B(!0), V(K, null, f2(e.content.menu, (l, f) => (B(), V(K, null, [
1132
1142
  l.subMenu ? (B(), V("div", Al, [
1133
1143
  U("button", {
1134
1144
  class: O("jl-menu-sub sub-" + f),
@@ -1151,8 +1161,8 @@ function fl(A, c, e, a, r, t) {
1151
1161
  class: "jl-menu-sub-menu",
1152
1162
  id: "sub-" + f
1153
1163
  }, [
1154
- (B(!0), V(D, null, f2(l.subMenu, (h, u) => (B(), V(D, null, [
1155
- h.subMenu ? (B(), V(D, { key: 0 }, [
1164
+ (B(!0), V(K, null, f2(l.subMenu, (h, u) => (B(), V(K, null, [
1165
+ h.subMenu ? (B(), V(K, { key: 0 }, [
1156
1166
  U("button", {
1157
1167
  class: O("jl-menu-sub-sub sub-sub-" + u),
1158
1168
  index: f + "-" + u,
@@ -1174,7 +1184,7 @@ function fl(A, c, e, a, r, t) {
1174
1184
  class: "jl-menu-sub-sub-menu",
1175
1185
  id: "sub-sub-" + f
1176
1186
  }, [
1177
- (B(!0), V(D, null, f2(h.subMenu, (m, C) => (B(), V("button", {
1187
+ (B(!0), V(K, null, f2(h.subMenu, (m, C) => (B(), V("button", {
1178
1188
  class: "jl-menu-sub-sub-item",
1179
1189
  index: f + "-" + u + "-" + C,
1180
1190
  tabindex: "0",
@@ -1206,7 +1216,7 @@ function fl(A, c, e, a, r, t) {
1206
1216
  ]))
1207
1217
  ], 64))), 256))
1208
1218
  ], 32),
1209
- t.showFeedback() ? (B(), K(o, {
1219
+ t.showFeedback() ? (B(), T(o, {
1210
1220
  key: 1,
1211
1221
  content: r.feedbackObject
1212
1222
  }, null, 8, ["content"])) : S("", !0)
@@ -1746,7 +1756,7 @@ function Cl(A, c, e, a, r, t) {
1746
1756
  }, [
1747
1757
  Sn(A.$slots, "default")
1748
1758
  ], 4),
1749
- (B(!0), V(D, null, f2(e.sticks, (s) => (B(), V("div", {
1759
+ (B(!0), V(K, null, f2(e.sticks, (s) => (B(), V("div", {
1750
1760
  class: O(["vdr-stick", ["vdr-stick-" + s, e.isResizable ? "" : "not-resizable"]]),
1751
1761
  onMousedown: p2((i) => t.stickDown(s, i), ["stop", "prevent"]),
1752
1762
  onTouchstart: p2((i) => t.stickDown(s, i), ["stop", "prevent"]),
@@ -1832,7 +1842,7 @@ function Ml(A, c, e, a, r, t) {
1832
1842
  U("div", {
1833
1843
  class: O(["fridge", e.content.class, e.content.noOutline ? "no_outline" : ""])
1834
1844
  }, [
1835
- (B(!0), V(D, null, f2(e.content.magnets, (i, n) => (B(), K(s, {
1845
+ (B(!0), V(K, null, f2(e.content.magnets, (i, n) => (B(), T(s, {
1836
1846
  id: "vdr_" + n,
1837
1847
  isActive: !0,
1838
1848
  w: i.width ? i.width : 50,
@@ -1925,7 +1935,7 @@ const Ll = {
1925
1935
  this.listOne = [], this.createItems();
1926
1936
  },
1927
1937
  keyboardDrag(A, c) {
1928
- if (A.class.indexOf("preventMove") > 0)
1938
+ if (A.class.indexOf("preventMove") < 0)
1929
1939
  return !1;
1930
1940
  A.class += " preventMove", this.listOne[c].splice(A), this.listOne[c + 1].push(A), this.checkMove("clicked");
1931
1941
  }
@@ -1945,7 +1955,7 @@ const Ll = {
1945
1955
  }, Ul = ["src"], bl = { class: "list-group-item" }, xl = ["onClick"], yl = ["id", "src", "alt", "data-swap"];
1946
1956
  function Sl(A, c, e, a, r, t) {
1947
1957
  const s = y("lab-image"), i = y("el-col"), n = y("draggable"), o = y("el-row");
1948
- return B(), K(o, {
1958
+ return B(), T(o, {
1949
1959
  class: O(["dragDrop", e.content.handle])
1950
1960
  }, {
1951
1961
  default: k(() => [
@@ -1954,7 +1964,7 @@ function Sl(A, c, e, a, r, t) {
1954
1964
  U("div", {
1955
1965
  innerHTML: e.content.directions
1956
1966
  }, null, 8, Ql),
1957
- e.content.image ? (B(), K(s, {
1967
+ e.content.image ? (B(), T(s, {
1958
1968
  key: 0,
1959
1969
  content: e.content.image
1960
1970
  }, null, 8, ["content"])) : S("", !0),
@@ -1968,7 +1978,7 @@ function Sl(A, c, e, a, r, t) {
1968
1978
  ]),
1969
1979
  _: 1
1970
1980
  }),
1971
- (B(!0), V(D, null, f2(r.listOne, (l, f) => (B(), K(i, { span: t.binColumns }, {
1981
+ (B(!0), V(K, null, f2(r.listOne, (l, f) => (B(), T(i, { span: t.binColumns }, {
1972
1982
  default: k(() => [
1973
1983
  X(n, {
1974
1984
  class: O(["draggable list-group", e.content.bins[f].class]),
@@ -2153,7 +2163,7 @@ const El = {
2153
2163
  }, Kl = { class: "dragItems-button" }, Rl = ["id", "src", "alt"], _l = { class: "dialog-footer" };
2154
2164
  function Ol(A, c, e, a, r, t) {
2155
2165
  const s = y("lab-image"), i = y("el-col"), n = y("draggable"), o = y("el-row"), l = y("lab-feedback"), f = y("el-button"), h = y("el-dialog");
2156
- return B(), V(D, null, [
2166
+ return B(), V(K, null, [
2157
2167
  X(o, {
2158
2168
  class: O(["dragDrop", e.content.handle]),
2159
2169
  id: "dragItemDiv"
@@ -2164,7 +2174,7 @@ function Ol(A, c, e, a, r, t) {
2164
2174
  U("div", {
2165
2175
  innerHTML: e.content.directions
2166
2176
  }, null, 8, kl),
2167
- e.content.image ? (B(), K(s, {
2177
+ e.content.image ? (B(), T(s, {
2168
2178
  key: 0,
2169
2179
  content: e.content.image
2170
2180
  }, null, 8, ["content"])) : S("", !0)
@@ -2205,7 +2215,7 @@ function Ol(A, c, e, a, r, t) {
2205
2215
  ]),
2206
2216
  _: 1
2207
2217
  }),
2208
- (B(!0), V(D, null, f2(r.listOne, (u, m) => (B(), K(i, { span: t.binColumns }, {
2218
+ (B(!0), V(K, null, f2(r.listOne, (u, m) => (B(), T(i, { span: t.binColumns }, {
2209
2219
  default: k(() => [
2210
2220
  U("h4", null, Z(e.content.bins[m].header), 1),
2211
2221
  X(n, {
@@ -2239,7 +2249,7 @@ function Ol(A, c, e, a, r, t) {
2239
2249
  ]),
2240
2250
  _: 1
2241
2251
  }, 8, ["class"]),
2242
- t.showFeedback() ? (B(), K(l, {
2252
+ t.showFeedback() ? (B(), T(l, {
2243
2253
  key: 0,
2244
2254
  content: r.feedbackObject
2245
2255
  }, null, 8, ["content"])) : S("", !0),
@@ -2265,9 +2275,9 @@ function Ol(A, c, e, a, r, t) {
2265
2275
  ])
2266
2276
  ]),
2267
2277
  default: k(() => [
2268
- (B(!0), V(D, null, f2(r.listOne, (u, m) => (B(), V(D, null, [
2269
- (B(!0), V(D, null, f2(u, (C, d) => (B(), V(D, null, [
2270
- m === 0 ? (B(), K(f, {
2278
+ (B(!0), V(K, null, f2(r.listOne, (u, m) => (B(), V(K, null, [
2279
+ (B(!0), V(K, null, f2(u, (C, d) => (B(), V(K, null, [
2280
+ m === 0 ? (B(), T(f, {
2271
2281
  key: 0,
2272
2282
  id: "firstBin",
2273
2283
  size: "small",
@@ -2278,7 +2288,7 @@ function Ol(A, c, e, a, r, t) {
2278
2288
  o2(Z(e.content.bins[m].header), 1)
2279
2289
  ]),
2280
2290
  _: 2
2281
- }, 1032, ["onClick"])) : (B(), K(f, {
2291
+ }, 1032, ["onClick"])) : (B(), T(f, {
2282
2292
  key: 1,
2283
2293
  size: "small",
2284
2294
  type: "primary",
@@ -6213,8 +6223,8 @@ var wH = function(A, c) {
6213
6223
  d.push((t + n) / a.width), d.push((m + f) / a.width), d.push((s + C) / a.height), d.push((o + h) / a.height);
6214
6224
  var H = Math.max.apply(Math, d);
6215
6225
  H > 1 && (t /= H, s /= H, n /= H, o /= H, f /= H, h /= H, m /= H, C /= H);
6216
- var v = a.width - n, L = a.height - h, Q = a.width - f, M = a.height - C, p = e.borderTopWidth, x = e.borderRightWidth, N = e.borderBottomWidth, b = e.borderLeftWidth, q = _(e.paddingTop, c.bounds.width), h2 = _(e.paddingRight, c.bounds.width), C2 = _(e.paddingBottom, c.bounds.width), T = _(e.paddingLeft, c.bounds.width);
6217
- this.topLeftBorderDoubleOuterBox = t > 0 || s > 0 ? W(a.left + b / 3, a.top + p / 3, t - b / 3, s - p / 3, I.TOP_LEFT) : new g(a.left + b / 3, a.top + p / 3), this.topRightBorderDoubleOuterBox = t > 0 || s > 0 ? W(a.left + v, a.top + p / 3, n - x / 3, o - p / 3, I.TOP_RIGHT) : new g(a.left + a.width - x / 3, a.top + p / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f - x / 3, h - N / 3, I.BOTTOM_RIGHT) : new g(a.left + a.width - x / 3, a.top + a.height - N / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || C > 0 ? W(a.left + b / 3, a.top + M, m - b / 3, C - N / 3, I.BOTTOM_LEFT) : new g(a.left + b / 3, a.top + a.height - N / 3), this.topLeftBorderDoubleInnerBox = t > 0 || s > 0 ? W(a.left + b * 2 / 3, a.top + p * 2 / 3, t - b * 2 / 3, s - p * 2 / 3, I.TOP_LEFT) : new g(a.left + b * 2 / 3, a.top + p * 2 / 3), this.topRightBorderDoubleInnerBox = t > 0 || s > 0 ? W(a.left + v, a.top + p * 2 / 3, n - x * 2 / 3, o - p * 2 / 3, I.TOP_RIGHT) : new g(a.left + a.width - x * 2 / 3, a.top + p * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f - x * 2 / 3, h - N * 2 / 3, I.BOTTOM_RIGHT) : new g(a.left + a.width - x * 2 / 3, a.top + a.height - N * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || C > 0 ? W(a.left + b * 2 / 3, a.top + M, m - b * 2 / 3, C - N * 2 / 3, I.BOTTOM_LEFT) : new g(a.left + b * 2 / 3, a.top + a.height - N * 2 / 3), this.topLeftBorderStroke = t > 0 || s > 0 ? W(a.left + b / 2, a.top + p / 2, t - b / 2, s - p / 2, I.TOP_LEFT) : new g(a.left + b / 2, a.top + p / 2), this.topRightBorderStroke = t > 0 || s > 0 ? W(a.left + v, a.top + p / 2, n - x / 2, o - p / 2, I.TOP_RIGHT) : new g(a.left + a.width - x / 2, a.top + p / 2), this.bottomRightBorderStroke = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f - x / 2, h - N / 2, I.BOTTOM_RIGHT) : new g(a.left + a.width - x / 2, a.top + a.height - N / 2), this.bottomLeftBorderStroke = m > 0 || C > 0 ? W(a.left + b / 2, a.top + M, m - b / 2, C - N / 2, I.BOTTOM_LEFT) : new g(a.left + b / 2, a.top + a.height - N / 2), this.topLeftBorderBox = t > 0 || s > 0 ? W(a.left, a.top, t, s, I.TOP_LEFT) : new g(a.left, a.top), this.topRightBorderBox = n > 0 || o > 0 ? W(a.left + v, a.top, n, o, I.TOP_RIGHT) : new g(a.left + a.width, a.top), this.bottomRightBorderBox = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f, h, I.BOTTOM_RIGHT) : new g(a.left + a.width, a.top + a.height), this.bottomLeftBorderBox = m > 0 || C > 0 ? W(a.left, a.top + M, m, C, I.BOTTOM_LEFT) : new g(a.left, a.top + a.height), this.topLeftPaddingBox = t > 0 || s > 0 ? W(a.left + b, a.top + p, Math.max(0, t - b), Math.max(0, s - p), I.TOP_LEFT) : new g(a.left + b, a.top + p), this.topRightPaddingBox = n > 0 || o > 0 ? W(a.left + Math.min(v, a.width - x), a.top + p, v > a.width + x ? 0 : Math.max(0, n - x), Math.max(0, o - p), I.TOP_RIGHT) : new g(a.left + a.width - x, a.top + p), this.bottomRightPaddingBox = f > 0 || h > 0 ? W(a.left + Math.min(Q, a.width - b), a.top + Math.min(L, a.height - N), Math.max(0, f - x), Math.max(0, h - N), I.BOTTOM_RIGHT) : new g(a.left + a.width - x, a.top + a.height - N), this.bottomLeftPaddingBox = m > 0 || C > 0 ? W(a.left + b, a.top + Math.min(M, a.height - N), Math.max(0, m - b), Math.max(0, C - N), I.BOTTOM_LEFT) : new g(a.left + b, a.top + a.height - N), this.topLeftContentBox = t > 0 || s > 0 ? W(a.left + b + T, a.top + p + q, Math.max(0, t - (b + T)), Math.max(0, s - (p + q)), I.TOP_LEFT) : new g(a.left + b + T, a.top + p + q), this.topRightContentBox = n > 0 || o > 0 ? W(a.left + Math.min(v, a.width + b + T), a.top + p + q, v > a.width + b + T ? 0 : n - b + T, o - (p + q), I.TOP_RIGHT) : new g(a.left + a.width - (x + h2), a.top + p + q), this.bottomRightContentBox = f > 0 || h > 0 ? W(a.left + Math.min(Q, a.width - (b + T)), a.top + Math.min(L, a.height + p + q), Math.max(0, f - (x + h2)), h - (N + C2), I.BOTTOM_RIGHT) : new g(a.left + a.width - (x + h2), a.top + a.height - (N + C2)), this.bottomLeftContentBox = m > 0 || C > 0 ? W(a.left + b + T, a.top + M, Math.max(0, m - (b + T)), C - (N + C2), I.BOTTOM_LEFT) : new g(a.left + b + T, a.top + a.height - (N + C2));
6226
+ var v = a.width - n, L = a.height - h, Q = a.width - f, M = a.height - C, p = e.borderTopWidth, x = e.borderRightWidth, N = e.borderBottomWidth, b = e.borderLeftWidth, q = _(e.paddingTop, c.bounds.width), h2 = _(e.paddingRight, c.bounds.width), C2 = _(e.paddingBottom, c.bounds.width), D = _(e.paddingLeft, c.bounds.width);
6227
+ this.topLeftBorderDoubleOuterBox = t > 0 || s > 0 ? W(a.left + b / 3, a.top + p / 3, t - b / 3, s - p / 3, I.TOP_LEFT) : new g(a.left + b / 3, a.top + p / 3), this.topRightBorderDoubleOuterBox = t > 0 || s > 0 ? W(a.left + v, a.top + p / 3, n - x / 3, o - p / 3, I.TOP_RIGHT) : new g(a.left + a.width - x / 3, a.top + p / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f - x / 3, h - N / 3, I.BOTTOM_RIGHT) : new g(a.left + a.width - x / 3, a.top + a.height - N / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || C > 0 ? W(a.left + b / 3, a.top + M, m - b / 3, C - N / 3, I.BOTTOM_LEFT) : new g(a.left + b / 3, a.top + a.height - N / 3), this.topLeftBorderDoubleInnerBox = t > 0 || s > 0 ? W(a.left + b * 2 / 3, a.top + p * 2 / 3, t - b * 2 / 3, s - p * 2 / 3, I.TOP_LEFT) : new g(a.left + b * 2 / 3, a.top + p * 2 / 3), this.topRightBorderDoubleInnerBox = t > 0 || s > 0 ? W(a.left + v, a.top + p * 2 / 3, n - x * 2 / 3, o - p * 2 / 3, I.TOP_RIGHT) : new g(a.left + a.width - x * 2 / 3, a.top + p * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f - x * 2 / 3, h - N * 2 / 3, I.BOTTOM_RIGHT) : new g(a.left + a.width - x * 2 / 3, a.top + a.height - N * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || C > 0 ? W(a.left + b * 2 / 3, a.top + M, m - b * 2 / 3, C - N * 2 / 3, I.BOTTOM_LEFT) : new g(a.left + b * 2 / 3, a.top + a.height - N * 2 / 3), this.topLeftBorderStroke = t > 0 || s > 0 ? W(a.left + b / 2, a.top + p / 2, t - b / 2, s - p / 2, I.TOP_LEFT) : new g(a.left + b / 2, a.top + p / 2), this.topRightBorderStroke = t > 0 || s > 0 ? W(a.left + v, a.top + p / 2, n - x / 2, o - p / 2, I.TOP_RIGHT) : new g(a.left + a.width - x / 2, a.top + p / 2), this.bottomRightBorderStroke = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f - x / 2, h - N / 2, I.BOTTOM_RIGHT) : new g(a.left + a.width - x / 2, a.top + a.height - N / 2), this.bottomLeftBorderStroke = m > 0 || C > 0 ? W(a.left + b / 2, a.top + M, m - b / 2, C - N / 2, I.BOTTOM_LEFT) : new g(a.left + b / 2, a.top + a.height - N / 2), this.topLeftBorderBox = t > 0 || s > 0 ? W(a.left, a.top, t, s, I.TOP_LEFT) : new g(a.left, a.top), this.topRightBorderBox = n > 0 || o > 0 ? W(a.left + v, a.top, n, o, I.TOP_RIGHT) : new g(a.left + a.width, a.top), this.bottomRightBorderBox = f > 0 || h > 0 ? W(a.left + Q, a.top + L, f, h, I.BOTTOM_RIGHT) : new g(a.left + a.width, a.top + a.height), this.bottomLeftBorderBox = m > 0 || C > 0 ? W(a.left, a.top + M, m, C, I.BOTTOM_LEFT) : new g(a.left, a.top + a.height), this.topLeftPaddingBox = t > 0 || s > 0 ? W(a.left + b, a.top + p, Math.max(0, t - b), Math.max(0, s - p), I.TOP_LEFT) : new g(a.left + b, a.top + p), this.topRightPaddingBox = n > 0 || o > 0 ? W(a.left + Math.min(v, a.width - x), a.top + p, v > a.width + x ? 0 : Math.max(0, n - x), Math.max(0, o - p), I.TOP_RIGHT) : new g(a.left + a.width - x, a.top + p), this.bottomRightPaddingBox = f > 0 || h > 0 ? W(a.left + Math.min(Q, a.width - b), a.top + Math.min(L, a.height - N), Math.max(0, f - x), Math.max(0, h - N), I.BOTTOM_RIGHT) : new g(a.left + a.width - x, a.top + a.height - N), this.bottomLeftPaddingBox = m > 0 || C > 0 ? W(a.left + b, a.top + Math.min(M, a.height - N), Math.max(0, m - b), Math.max(0, C - N), I.BOTTOM_LEFT) : new g(a.left + b, a.top + a.height - N), this.topLeftContentBox = t > 0 || s > 0 ? W(a.left + b + D, a.top + p + q, Math.max(0, t - (b + D)), Math.max(0, s - (p + q)), I.TOP_LEFT) : new g(a.left + b + D, a.top + p + q), this.topRightContentBox = n > 0 || o > 0 ? W(a.left + Math.min(v, a.width + b + D), a.top + p + q, v > a.width + b + D ? 0 : n - b + D, o - (p + q), I.TOP_RIGHT) : new g(a.left + a.width - (x + h2), a.top + p + q), this.bottomRightContentBox = f > 0 || h > 0 ? W(a.left + Math.min(Q, a.width - (b + D)), a.top + Math.min(L, a.height + p + q), Math.max(0, f - (x + h2)), h - (N + C2), I.BOTTOM_RIGHT) : new g(a.left + a.width - (x + h2), a.top + a.height - (N + C2)), this.bottomLeftContentBox = m > 0 || C > 0 ? W(a.left + b + D, a.top + M, Math.max(0, m - (b + D)), C - (N + C2), I.BOTTOM_LEFT) : new g(a.left + b + D, a.top + a.height - (N + C2));
6218
6228
  }
6219
6229
  return A;
6220
6230
  }()
@@ -6913,7 +6923,7 @@ var W = function(A, c, e, a, r) {
6913
6923
  switch (o.label) {
6914
6924
  case 0:
6915
6925
  a = e.styles.backgroundImage.length - 1, r = function(l) {
6916
- 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;
6926
+ var f, h, u, q, u2, m2, D, a2, N, m, q, u2, m2, D, a2, C, d, H, v, L, Q, M, p, x, N, b, q, h2, C2, D, a2, W2, u2, m2, i1, b2, X2, n1, o1, E2, l1, k2;
6917
6927
  return i2(this, function(g1) {
6918
6928
  switch (g1.label) {
6919
6929
  case 0:
@@ -6931,17 +6941,17 @@ var W = function(A, c, e, a, r) {
6931
6941
  f.width,
6932
6942
  f.height,
6933
6943
  f.width / f.height
6934
- ]), q = u[0], u2 = u[1], m2 = u[2], T = u[3], a2 = u[4], N = t.ctx.createPattern(t.resizeImage(f, T, a2), "repeat"), t.renderRepeat(q, N, u2, m2)), [3, 6];
6944
+ ]), q = u[0], u2 = u[1], m2 = u[2], D = u[3], a2 = u[4], N = t.ctx.createPattern(t.resizeImage(f, D, a2), "repeat"), t.renderRepeat(q, N, u2, m2)), [3, 6];
6935
6945
  case 5:
6936
- qh(l) ? (m = g6(e, a, [null, null, null]), q = m[0], u2 = m[1], m2 = m[2], T = m[3], a2 = m[4], C = Oh(l.angle, T, a2), d = C[0], H = C[1], v = C[2], L = C[3], Q = C[4], M = document.createElement("canvas"), M.width = T, M.height = a2, p = M.getContext("2d"), x = p.createLinearGradient(H, L, v, Q), q8(l.stops, d).forEach(function(T1) {
6946
+ qh(l) ? (m = g6(e, a, [null, null, null]), q = m[0], u2 = m[1], m2 = m[2], D = m[3], a2 = m[4], C = Oh(l.angle, D, a2), d = C[0], H = C[1], v = C[2], L = C[3], Q = C[4], M = document.createElement("canvas"), M.width = D, M.height = a2, p = M.getContext("2d"), x = p.createLinearGradient(H, L, v, Q), q8(l.stops, d).forEach(function(T1) {
6937
6947
  return x.addColorStop(T1.stop, e2(T1.color));
6938
- }), p.fillStyle = x, p.fillRect(0, 0, T, a2), T > 0 && a2 > 0 && (N = t.ctx.createPattern(M, "repeat"), t.renderRepeat(q, N, u2, m2))) : Yh(l) && (b = g6(e, a, [
6948
+ }), p.fillStyle = x, p.fillRect(0, 0, D, a2), D > 0 && a2 > 0 && (N = t.ctx.createPattern(M, "repeat"), t.renderRepeat(q, N, u2, m2))) : Yh(l) && (b = g6(e, a, [
6939
6949
  null,
6940
6950
  null,
6941
6951
  null
6942
- ]), q = b[0], h2 = b[1], C2 = b[2], T = b[3], a2 = b[4], W2 = l.position.length === 0 ? [o0] : l.position, u2 = _(W2[0], T), m2 = _(W2[W2.length - 1], a2), i1 = Ph(l, u2, m2, T, a2), b2 = i1[0], X2 = i1[1], b2 > 0 && X2 > 0 && (n1 = t.ctx.createRadialGradient(h2 + u2, C2 + m2, 0, h2 + u2, C2 + m2, b2), q8(l.stops, b2 * 2).forEach(function(T1) {
6952
+ ]), q = b[0], h2 = b[1], C2 = b[2], D = b[3], a2 = b[4], W2 = l.position.length === 0 ? [o0] : l.position, u2 = _(W2[0], D), m2 = _(W2[W2.length - 1], a2), i1 = Ph(l, u2, m2, D, a2), b2 = i1[0], X2 = i1[1], b2 > 0 && X2 > 0 && (n1 = t.ctx.createRadialGradient(h2 + u2, C2 + m2, 0, h2 + u2, C2 + m2, b2), q8(l.stops, b2 * 2).forEach(function(T1) {
6943
6953
  return n1.addColorStop(T1.stop, e2(T1.color));
6944
- }), t.path(q), t.ctx.fillStyle = n1, b2 !== X2 ? (o1 = e.bounds.left + 0.5 * e.bounds.width, E2 = e.bounds.top + 0.5 * e.bounds.height, l1 = X2 / b2, k2 = 1 / l1, t.ctx.save(), t.ctx.translate(o1, E2), t.ctx.transform(1, 0, 0, l1, 0, 0), t.ctx.translate(-o1, -E2), t.ctx.fillRect(h2, k2 * (C2 - E2) + E2, T, a2 * k2), t.ctx.restore()) : t.ctx.fill())), g1.label = 6;
6954
+ }), t.path(q), t.ctx.fillStyle = n1, b2 !== X2 ? (o1 = e.bounds.left + 0.5 * e.bounds.width, E2 = e.bounds.top + 0.5 * e.bounds.height, l1 = X2 / b2, k2 = 1 / l1, t.ctx.save(), t.ctx.translate(o1, E2), t.ctx.transform(1, 0, 0, l1, 0, 0), t.ctx.translate(-o1, -E2), t.ctx.fillRect(h2, k2 * (C2 - E2) + E2, D, a2 * k2), t.ctx.restore()) : t.ctx.fill())), g1.label = 6;
6945
6955
  case 6:
6946
6956
  return a--, [
6947
6957
  2
@@ -7179,7 +7189,7 @@ var W = function(A, c, e, a, r) {
7179
7189
  typeof window < "u" && j5.setContext(window);
7180
7190
  var pv = function(A, c) {
7181
7191
  return l2(void 0, void 0, void 0, function() {
7182
- var e, a, r, t, s, i, n, o, l, 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;
7192
+ var e, a, r, t, s, i, n, o, l, f, h, u, m, C, d, H, v, L, Q, M, x, p, x, N, b, q, h2, C2, D, a2, W2, u2, m2, i1, b2, X2, n1, o1, E2, l1;
7183
7193
  return i2(this, function(k2) {
7184
7194
  switch (k2.label) {
7185
7195
  case 0:
@@ -7196,7 +7206,7 @@ var pv = function(A, c) {
7196
7206
  useCORS: (q = c.useCORS) !== null && q !== void 0 ? q : !1
7197
7207
  }, t = L6({ logging: (h2 = c.logging) !== null && h2 !== void 0 ? h2 : !0, cache: c.cache }, r), s = {
7198
7208
  windowWidth: (C2 = c.windowWidth) !== null && C2 !== void 0 ? C2 : a.innerWidth,
7199
- windowHeight: (T = c.windowHeight) !== null && T !== void 0 ? T : a.innerHeight,
7209
+ windowHeight: (D = c.windowHeight) !== null && D !== void 0 ? D : a.innerHeight,
7200
7210
  scrollX: (a2 = c.scrollX) !== null && a2 !== void 0 ? a2 : a.pageXOffset,
7201
7211
  scrollY: (W2 = c.scrollY) !== null && W2 !== void 0 ? W2 : a.pageYOffset
7202
7212
  }, i = new R2(s.scrollX, s.scrollY, s.windowWidth, s.windowHeight), n = new Cv(t, i), o = (u2 = c.foreignObjectRendering) !== null && u2 !== void 0 ? u2 : !1, l = {
@@ -1,4 +1,4 @@
1
- (function(i,o4){typeof exports=="object"&&typeof module<"u"?module.exports=o4(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o4):(i=typeof globalThis<"u"?globalThis:i||self,i.LabmakerPlugin=o4(i.Vue))})(this,function(i){"use strict";const o4="",X=(A,c)=>{const e=A.__vccOpts||A;for(const[a,r]of c)e[a]=r;return e},Bi={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(){}},pi=i.createElementVNode("h1",null,"File Uploader",-1),vi={class:"image-uploader"},di=i.createElementVNode("h1",null,"File Uploader",-1),gi={class:"your-file"},zi=["src"];function Vi(A,c,e,a,r,t){return i.openBlock(),i.createElementBlock(i.Fragment,null,[pi,i.createElementVNode("div",vi,[di,i.createElementVNode("input",{onChange:c[0]||(c[0]=(...s)=>t.fileUpload&&t.fileUpload(...s)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),i.createElementVNode("div",gi,[i.createElementVNode("img",{src:r.imgSRC,alt:"",scrset:""},null,8,zi)])])],64)}const Mi=X(Bi,[["render",Vi]]),kq="",wi={props:["title"],data(){return{}},computed:{}};function Li(A,c,e,a,r,t){return i.openBlock(),i.createElementBlock("header",null,[i.createElementVNode("h1",null,i.toDisplayString(e.title),1)])}const Qi=X(wi,[["render",Li]]),Iq="",Fi={props:["content"],data(){return{}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)}},mounted(){},beforeMount(){this.stepperStore=this.stepperMain()}},Ui={class:"image-container"},bi={class:"image"},xi=["src","alt"],yi=["innerHTML"],Si=["innerHTML"],Ni=["innerHTML"];function Ei(A,c,e,a,r,t){return i.openBlock(),i.createElementBlock("div",Ui,[i.createElementVNode("div",bi,[i.createElementVNode("img",{src:e.content.src,alt:e.content.alt,class:i.normalizeClass(e.content.class)},null,10,xi),e.content.captionHeader?(i.openBlock(),i.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:e.content.captionHeader},null,8,yi)):i.createCommentVNode("",!0),e.content.caption?(i.openBlock(),i.createElementBlock("span",{key:1,class:"caption",innerHTML:e.content.caption},null,8,Si)):i.createCommentVNode("",!0),e.content.copyright?(i.openBlock(),i.createElementBlock("span",{key:2,innerHTML:e.content.copyright,class:"copyright"},null,8,Ni)):i.createCommentVNode("",!0)])])}const ki=X(Fi,[["render",Ei],["__scopeId","data-v-45f6f0d2"]]),Tq="",Ii={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()})}}},Ti={key:0,class:"textVersion"},Di=i.createElementVNode("h1",null,"Text Version",-1),Ki=["innerHTML"],Ri=["src","width","height"],_i=["src","width","height"],Oi=["src","width","height"],Pi={key:2,class:"alert alert-danger"};function Gi(A,c,e,a,r,t){const s=i.resolveComponent("el-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["kContainer",e.content.class])},[e.content.textVersion&&r.showingText?(i.openBlock(),i.createElementBlock("div",Ti,[Di,i.createElementVNode("div",{innerHTML:e.content.textVersion},null,8,Ki)])):i.createCommentVNode("",!0),!r.showingText&&e.content.kalturaEntryId?(i.openBlock(),i.createElementBlock("div",{key:1,class:"mainVersion",style:i.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[e.content.kalturaType=="video"&&!r.showingKaltura?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["kPoster",{active:r.showingKaltura==!0}]),style:i.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[i.createElementVNode("iframe",{onClick:c[0]||(c[0]=(...n)=>t.showKaltura&&t.showKaltura(...n)),class:"videoIframe",src:t.kalturaMedia(e.content),width:t.kWidth+"px",height:t.kHeight+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Ri)],6)):i.createCommentVNode("",!0),e.content.kalturaType=="audio"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["kAudio",{active:r.showingKaltura==!0}]),onClick:c[1]||(c[1]=(...n)=>t.showKaltura&&t.showKaltura(...n))},[i.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,_i)],2)):i.createCommentVNode("",!0),e.content.kalturaType=="audiobtn"?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["kAudiobtn",{active:r.showingKaltura==!0}]),onClick:c[2]||(c[2]=(...n)=>t.showKaltura&&t.showKaltura(...n))},[i.createElementVNode("iframe",{src:t.kalturaMedia(e.content),width:r.audioBtn.width+"px",height:r.audioBtn.height+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Oi)],2)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),e.content.kalturaEntryId==""?(i.openBlock(),i.createElementBlock("div",Pi,"There is no Kaltura Entry ID")):i.createCommentVNode("",!0),e.content.textVersion?(i.openBlock(),i.createBlock(s,{key:3,size:"medium",type:"primary","aria-label":"text version",class:"toggleSwitch ftSwitch btn btn-primary vidText",onClick:c[3]||(c[3]=i.withModifiers(n=>t.showText(e.content.kalturaType),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.getButtonText(e.content.kalturaType)),1)]),_:1})):i.createCommentVNode("",!0)],2)}const Wi=X(Ii,[["render",Gi]]),Dq="",Xi={components:{},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)},hotspots(){return this.content.showCount?function(c,e){return[...c].sort(()=>.5-Math.random()).slice(0,e)}(this.content.hotspots,this.content.showCount):this.content.hotspots}},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")}},qi={class:"imageMarker"},Yi=["src","alt"],Ji={class:"hotspotArea"},$i=["src","alt"],ji={class:"im-buttonText"};function Zi(A,c,e,a,r,t){const s=i.resolveComponent("el-button"),n=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",qi,[i.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,Yi),i.createElementVNode("div",Ji,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.hotspots(),(o,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{type:o.buttonType,onClick:i.withModifiers(f=>t.changePage(o,l),["stop"]),id:"hotspot_"+l,class:i.normalizeClass([["is-"+o.buttonShape,{noBG:o.buttonImage},o.class],"hotspot"]),style:i.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:i.withCtx(()=>[o.buttonImage?(i.openBlock(),i.createElementBlock("img",{key:0,class:"im-ButtonImage",src:o.buttonImage,alt:"image marker "+Number(l+1)},null,8,$i)):i.createCommentVNode("",!0),i.createElementVNode("span",ji,i.toDisplayString(o.name),1)]),_:2},1032,["type","onClick","id","class","style","icon"]),t.showFeedback(l)?(i.openBlock(),i.createBlock(n,{key:0,content:o},null,8,["content"])):i.createCommentVNode("",!0)],64))),256))])])}const Ao=X(Xi,[["render",Zi],["__scopeId","data-v-73fb4688"]]),Kq="",co={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")}},eo=["innerHTML"],ao=["src","alt"],ro={class:"hotspotArea"};function to(A,c,e,a,r,t){const s=i.resolveComponent("el-col"),n=i.resolveComponent("el-button"),o=i.resolveComponent("el-row");return i.openBlock(),i.createBlock(o,{class:"imageReplacer"},{default:i.withCtx(()=>[i.createVNode(s,{span:12},{default:i.withCtx(()=>[i.createElementVNode("p",{class:"imageReplacerDescription",innerHTML:e.content.description},null,8,eo)]),_:1}),i.createVNode(s,{span:12},{default:i.withCtx(()=>[i.createElementVNode("img",{class:"im-ButtonImage",src:r.imageSrc,alt:r.imageAlt},null,8,ao),i.createElementVNode("div",ro,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.hotspots,(l,f)=>(i.openBlock(),i.createBlock(n,{type:l.buttonType,onClick:i.withModifiers(h=>t.changeImage(f),["stop"]),class:"hotspot",style:i.normalizeStyle({top:t.pixelFormat(l.cordinatesX),left:t.pixelFormat(l.cordinatesY),width:t.pixelFormat(l.dimensionsW),height:t.pixelFormat(l.dimensionsH)}),icon:l.buttonIcon},null,8,["type","onClick","style","icon"]))),256))])]),_:1})]),_:1})}const so=X(co,[["render",to],["__scopeId","data-v-d6c87f03"]]),Rq="",no={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%")}},io={class:"my-header"},oo=["id","innerHTML"],lo=["innerHTML"],fo={key:1},ho={key:0},mo=["src"],Ho=["innerHTML"],uo={class:"dialog-footer"};function Co(A,c,e,a,r,t){const s=i.resolveComponent("lab-kaltura"),n=i.resolveComponent("lab-image"),o=i.resolveComponent("el-button"),l=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(l,{width:t.feedbackWidth,modelValue:r.show,"onUpdate:modelValue":c[1]||(c[1]=f=>r.show=f),"before-close":t.feedbackClose},{header:i.withCtx(({close:f,titleId:h,titleClass:m})=>[i.createElementVNode("div",io,[i.createElementVNode("h4",{id:h,class:i.normalizeClass(m),innerHTML:t.feedbackHeader},null,10,oo)])]),footer:i.withCtx(()=>[i.createElementVNode("span",uo,[i.createVNode(o,{size:"small",id:"feedbackClose",type:"primary",onClick:c[0]||(c[0]=i.withModifiers(f=>t.feedbackClose(),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode("Close")]),_:1})])]),default:i.withCtx(()=>[t.getShowFeedbackAttempts?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.content.feedbackAttempts?(i.openBlock(),i.createElementBlock("p",{key:0,innerHTML:e.content.feedbackAttempts},null,8,lo)):(i.openBlock(),i.createElementBlock("p",fo,"You have tried too many times, the correct answer has been provided for you."))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.content.feedbackContent?(i.openBlock(),i.createElementBlock("div",ho,[e.content.feedbackContent.type==="media"?(i.openBlock(),i.createBlock(s,{key:0,content:e.content.feedbackContent.fieldValues,class:i.normalizeClass([e.content.feedbackContent.fieldValues.class,{video:e.content.feedbackContent.fieldValues.kalturaType==="video"}])},null,8,["content","class"])):i.createCommentVNode("",!0),e.content.feedbackContent.type==="image"?(i.openBlock(),i.createBlock(n,{key:1,content:e.content.feedbackContent.fieldValues},null,8,["content"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),e.content.feedbackImage?(i.openBlock(),i.createElementBlock("img",{key:1,class:"im-ButtonImage",src:e.content.feedbackImage,alt:"button image"},null,8,mo)):i.createCommentVNode("",!0),i.createElementVNode("p",{innerHTML:e.content.feedback},null,8,Ho)],64))]),_:1},8,["width","modelValue","before-close"])}const Bo=X(no,[["render",Co]]),_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(!0),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(!1);this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){let c=[],e="not correct";this.quizArray.forEach((s,n)=>{this.input[n]?this.input[n]=this.content.options[n].answer:this.input.push(this.content.options[n].answer),c.push(this.content.options[n].answer),this.quizItemCompleted.push(n+1)}),A&&(e="correct");let a={page:this.stepperStore.stepPage,result:e,correctAnswer:c},r=this.stepperStore.results.find(s=>s.page===this.stepperStore.stepPage),t=this.stepperStore.results.indexOf(r);r?this.stepperStore.results.fill(r.result=e,t,t++):this.stepperStore.results.push(a),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=i.resolveComponent("el-option"),n=i.resolveComponent("el-select"),o=i.resolveComponent("el-date-picker"),l=i.resolveComponent("el-button"),f=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["drop-down",e.content.class])},[i.createElementVNode("p",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.quizArray,(h,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("span",{class:i.normalizeClass(t.quizClass(m))},[i.createElementVNode("span",{class:i.normalizeClass("quizText quizSection_"+m)},i.toDisplayString(h)+" ",3),t.quizType(m)==="choose"?(i.openBlock(),i.createBlock(n,{key:0,onChange:H=>t.choicesMade(m),modelValue:r.input[m],"onUpdate:modelValue":H=>r.input[m]=H,placeholder:t.quizDisplay(m)},{default:i.withCtx(()=>[t.quizArrayCompleted(m)?i.createCommentVNode("",!0):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(r.quizOptions[m],H=>(i.openBlock(),i.createBlock(s,{key:H,label:H,value:H},null,8,["label","value"]))),128))]),_:2},1032,["onChange","modelValue","onUpdate:modelValue","placeholder"])):i.createCommentVNode("",!0),t.quizType(m)==="date"?(i.openBlock(),i.createBlock(o,{key:1,onChange:H=>t.choicesMade(m),modelValue:r.input[m],"onUpdate:modelValue":H=>r.input[m]=H,type:"date",placeholder:t.quizDisplay(m),format:e.content.options[m].format,"value-format":e.content.options[m].format,disabled:t.quizArrayCompleted(m)},null,8,["onChange","modelValue","onUpdate:modelValue","placeholder","format","value-format","disabled"])):i.createCommentVNode("",!0)],2),i.createTextVNode("  ")],64))),256))]),i.createVNode(l,{size:"small",type:"primary",class:"drop-down-submit",onClick:c[0]||(c[0]=h=>t.choicesCheck())},{default:i.withCtx(()=>[i.createTextVNode("Submit")]),_:1}),t.showFeedback()?(i.openBlock(),i.createBlock(f,{key:0,content:r.feedbackObject},null,8,["content"])):i.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(!0),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(!1)),this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){let c=[],e="not correct";this.input.forEach((s,n)=>{this.input[n]=this.content.answers[n],c.push(this.content.answers[n])}),A&&(e="correct");let a={page:this.stepperStore.stepPage,result:e,correctAnswer:c},r=this.stepperStore.results.find(s=>s.page===this.stepperStore.stepPage),t=this.stepperStore.results.indexOf(r);r?this.stepperStore.results.fill(r.result=e,t,t++):this.stepperStore.results.push(a),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=i.resolveComponent("el-input"),n=i.resolveComponent("el-button"),o=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fill-blank",e.content.class])},[i.createElementVNode("p",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.quizArray,(l,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createTextVNode(i.toDisplayString(l),1),f<t.quizArrayCount?(i.openBlock(),i.createBlock(s,{key:0,modelValue:r.input[f],"onUpdate:modelValue":h=>r.input[f]=h,placeholder:"Please input",size:"small"},null,8,["modelValue","onUpdate:modelValue"])):i.createCommentVNode("",!0)],64))),256))]),i.createVNode(n,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[0]||(c[0]=l=>t.choicesCheck())},{default:i.withCtx(()=>[i.createTextVNode("Submit")]),_:1}),t.showFeedback()?(i.openBlock(),i.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):i.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(A){let c,e="not correct",a=document.querySelectorAll(".selectableButton");for(let n=0;n<a.length;n++)a[n].classList.add("is-failure"),a[n].setAttribute("disabled",!0),this.content.choices[n].correct&&(a[n].classList.add("is-success"),c=this.content.choices[n].text);A&&(e="correct");let r={page:this.stepperStore.stepPage,result:e,correctAnswer:c},t=this.stepperStore.results.find(n=>n.page===this.stepperStore.stepPage),s=this.stepperStore.results.indexOf(t);t?this.stepperStore.results.fill(t.result=e,s,s++):this.stepperStore.results.push(r),this.stepperStore.finishSteps()},choicesCheck(A){this.getAttempt<Number(this.content.attempts)?this.content.choices[A].correct===!0?this.choicesComplete(!0):this.stepperStore.attempts=this.getAttempt+1:(this.content.choices[A].correct!==!0&&(this.stepperStore.showFeedbackAttempts=!0),this.choicesComplete(!1)),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)}},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=i.resolveComponent("lab-image"),n=i.resolveComponent("el-col"),o=i.resolveComponent("el-divider"),l=i.resolveComponent("el-button"),f=i.resolveComponent("lab-feedback"),h=i.resolveComponent("el-row");return i.openBlock(),i.createBlock(h,{id:e.content.id,class:i.normalizeClass(["selectable",e.content.classes])},{default:i.withCtx(()=>[i.createVNode(n,{span:t.leftColWidth(A.index)},{default:i.withCtx(()=>[e.content.directions?(i.openBlock(),i.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,Lo)):i.createCommentVNode("",!0),e.content.image?(i.openBlock(),i.createBlock(s,{key:1,content:e.content.image},null,8,["content"])):i.createCommentVNode("",!0)]),_:1},8,["span"]),i.createVNode(n,{span:t.rightColWidth(A.index),class:"selectArea"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.choices,(m,H)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[!e.content.noDivider&&H>0?(i.openBlock(),i.createBlock(o,{key:0})):i.createCommentVNode("",!0),i.createVNode(l,{size:"small",type:"primary",class:"selectableButton",style:i.normalizeStyle({width:t.pixelFormat(e.content.choiceWidth),height:t.pixelFormat(e.content.choiceHeight)}),onClick:u=>t.choicesCheck(H)},{default:i.withCtx(()=>[i.createElementVNode("div",Qo,[m.image?(i.openBlock(),i.createElementBlock("img",{key:0,class:"im-ButtonImage",src:m.image,alt:m.alt?m.alt:"button image"},null,8,Fo)):i.createCommentVNode("",!0),i.createElementVNode("span",Uo,i.toDisplayString(m.text),1)])]),_:2},1032,["style","onClick"]),t.showFeedback(H)?(i.openBlock(),i.createBlock(f,{key:1,content:m},null,8,["content"])):i.createCommentVNode("",!0)],64))),256))]),_:1},8,["span"])]),_:1},8,["id","class"])}const xo=X(wo,[["render",bo],["__scopeId","data-v-73d69257"]]),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(!0),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(!1);this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){let c=[],e="not correct";this.content.answers.forEach(s=>{c.push(s)}),A&&(e="correct");let a={page:this.stepperStore.stepPage,result:e,correctAnswer:c},r=this.stepperStore.results.find(s=>s.page===this.stepperStore.stepPage),t=this.stepperStore.results.indexOf(r);r?this.stepperStore.results.fill(r.result=e,t,t++):this.stepperStore.results.push(a),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=i.resolveComponent("el-input"),n=i.resolveComponent("el-button"),o=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["textbox",e.content.class])},[i.createElementVNode("p",null,i.toDisplayString(e.content.quiz),1),i.createVNode(s,{modelValue:r.input,"onUpdate:modelValue":c[0]||(c[0]=l=>r.input=l),autosize:{minRows:4,maxRows:8},type:"textarea",placeholder:"Please input"},null,8,["modelValue"]),i.createVNode(n,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[1]||(c[1]=l=>t.choicesCheck())},{default:i.withCtx(()=>[i.createTextVNode("Submit")]),_:1}),t.showFeedback()?(i.openBlock(),i.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):i.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=i.resolveComponent("CaretBottom"),n=i.resolveComponent("el-icon"),o=i.resolveComponent("CaretRight"),l=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["menu-chooser",e.content.class])},[r.showMenuOverlay?(i.openBlock(),i.createElementBlock("div",{key:0,class:"nav-mask",onClick:c[0]||(c[0]=(...f)=>t.hideSubs&&t.hideSubs(...f))})):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.content.quiz),1),i.createElementVNode("div",{class:"jl-menu",onSelect:c[1]||(c[1]=(...f)=>t.choicesCheck&&t.choicesCheck(...f))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.menu,(f,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.subMenu?(i.openBlock(),i.createElementBlock("div",ko,[i.createElementVNode("button",{class:i.normalizeClass("jl-menu-sub sub-"+h),index:h,tabindex:"0",role:"menuitem",onClick:i.withModifiers(m=>t.showSub("sub-"+h),["stop"])},[i.createElementVNode("div",To,[i.createTextVNode(i.toDisplayString(f.name)+" ",1),i.createVNode(n,null,{default:i.withCtx(()=>[i.createVNode(s)]),_:1})])],10,Io),i.createElementVNode("div",{class:"jl-menu-sub-menu",id:"sub-"+h},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.subMenu,(m,H)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[m.subMenu?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("button",{class:i.normalizeClass("jl-menu-sub-sub sub-sub-"+H),index:h+"-"+H,tabindex:"0",role:"menuitem",onClick:i.withModifiers(u=>t.showSubSub("sub-sub-"+h),["stop"])},[i.createElementVNode("div",Ro,[i.createTextVNode(i.toDisplayString(m.name),1),i.createVNode(n,null,{default:i.withCtx(()=>[i.createVNode(o)]),_:1})])],10,Ko),i.createElementVNode("div",{class:"jl-menu-sub-sub-menu",id:"sub-sub-"+h},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.subMenu,(u,p)=>(i.openBlock(),i.createElementBlock("button",{class:"jl-menu-sub-sub-item",index:h+"-"+H+"-"+p,tabindex:"0",role:"menuitem",onClick:i.withModifiers(z=>t.choicesCheck(h+"-"+H+"-"+p),["stop"])},[i.createElementVNode("div",null,i.toDisplayString(u.name),1)],8,Oo))),256))],8,_o)],64)):(i.openBlock(),i.createElementBlock("button",{key:1,class:"jl-menu-sub-item",tabindex:"0",role:"menuitem",onClick:i.withModifiers(u=>t.choicesCheck(h+"-"+H),["stop"])},[i.createElementVNode("div",null,i.toDisplayString(m.name),1)],8,Po))],64))),256))],8,Do)])):(i.openBlock(),i.createElementBlock("div",Go,[i.createElementVNode("button",{class:"jl-menu-sub",index:h,tabindex:"0",role:"menuitem",onClick:i.withModifiers(m=>t.choicesCheck(h),["stop"])},i.toDisplayString(f.name),9,Wo)]))],64))),256))],32),t.showFeedback()?(i.openBlock(),i.createBlock(l,{key:1,content:r.feedbackObject},null,8,["content"])):i.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:n}=this;let o=c.top-A.y,l=c.bottom+A.y,f=c.left-A.x,h=c.right+A.x;if(this.snapToGrid){let m=!0,H=!0,u=o-Math.floor(o/t)*t,p=a-l-Math.floor((a-l)/t)*t,z=f-Math.floor(f/r)*r,C=e-h-Math.floor((e-h)/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)&&(m=!1),Math.abs(C)<Math.abs(z)&&(H=!1),o-=m?u:p,l=a-n-o,f-=H?z:C,h=e-s-f}({newLeft:this.left,newRight:this.right,newTop:this.top,newBottom:this.bottom}=this.rectCorrectionByLimit({newLeft:f,newRight:h,newTop:o,newBottom:l})),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:n}=this;let o=e.top,l=e.bottom,f=e.left,h=e.right;switch(c[0]){case"b":l=e.bottom+A.y,t&&(l=s-Math.round((s-l)/a)*a);break;case"t":o=e.top-A.y,t&&(o=Math.round(o/a)*a);break}switch(c[1]){case"r":h=e.right+A.x,t&&(h=n-Math.round((n-h)/r)*r);break;case"l":f=e.left-A.x,t&&(f=Math.round(f/r)*r);break}({newLeft:f,newRight:h,newTop:o,newBottom:l}=this.rectCorrectionByLimit({newLeft:f,newRight:h,newTop:o,newBottom:l})),this.aspectRatio&&({newLeft:f,newRight:h,newTop:o,newBottom:l}=this.rectCorrectionByAspectRatio({newLeft:f,newRight:h,newTop:o,newBottom:l})),this.left=f,this.right=h,this.top=o,this.bottom=l,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:n,minw:o}=this;const l=this.parentLimitation?0:null;this.aspectRatio&&(o/n>A?n=o/A:o=A*n);const f={left:{min:l,max:t+(c-o)},right:{min:l,max:s+(c-o)},top:{min:l,max:r+(e-n)},bottom:{min:l,max:a+(e-n)}};if(this.aspectRatio){const h={left:{min:t-Math.min(r,a)*A*2,max:t+(e-n)/2*A*2},right:{min:s-Math.min(r,a)*A*2,max:s+(e-n)/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"?(f.left={min:Math.max(f.left.min,h.left.min),max:Math.min(f.left.max,h.left.max)},f.right={min:Math.max(f.right.min,h.right.min),max:Math.min(f.right.max,h.right.max)}):this.currentStick[1]==="m"&&(f.top={min:Math.max(f.top.min,h.top.min),max:Math.min(f.top.max,h.top.max)},f.bottom={min:Math.max(f.bottom.min,h.bottom.min),max:Math.min(f.bottom.max,h.bottom.max)})}return f},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:n,aspectFactor:o,dimensionsBeforeMove:l}=this;let f=t-c-e,h=s-a-r;if(n[1]==="m"){const m=h-l.height;c-=m*o/2,e-=m*o/2}else if(n[0]==="m"){const m=f-l.width;a-=m/o/2,r-=m/o/2}else f/h>o?(f=o*h,n[1]==="l"?c=t-e-f:e=t-c-f):(h=f/o,n[0]==="t"?a=s-r-h:r=s-a-h);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 i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vdr",`${r.active||e.isActive?"active":"inactive"} ${e.contentClass?e.contentClass:""}`]),style:i.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"},[i.createElementVNode("div",{style:i.normalizeStyle(t.sizeStyle),class:"content-container",ref:"container2"},[i.renderSlot(A.$slots,"default")],4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.sticks,s=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vdr-stick",["vdr-stick-"+s,e.isResizable?"":"not-resizable"]]),onMousedown:i.withModifiers(n=>t.stickDown(s,n),["stop","prevent"]),onTouchstart:i.withModifiers(n=>t.stickDown(s,n),["stop","prevent"]),style:i.normalizeStyle(t.vdrStick(s))},null,46,jo))),256))],38)}const m8=X($o,[["render",Zo]]),qq="",Al={components:{VueDragResize:m8},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 n=Number(s.style.left.slice(0,-2));n-10<0?s.style.left=`${n}px`:s.style.left=`${n-10}px`}if(t.altKey&&t.key==="ArrowRight"){let n=Number(s.style.left.slice(0,-2));n+10>r[0].offsetWidth-50?s.style.left=`${n}px`:s.style.left=`${n+10}px`}if(t.altKey&&t.key==="ArrowUp"){let n=Number(s.style.top.slice(0,-2));n+10<0?s.style.top=`${n}px`:s.style.top=`${n-10}px`}if(t.altKey&&t.key==="ArrowDown"){let n=Number(s.style.top.slice(0,-2));n+10>r[0].offsetHeight-80?s.style.top=`${n}px`:s.style.top=`${n+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=i.resolveComponent("VueDragResize");return i.openBlock(),i.createElementBlock("div",cl,[e.content.directions?(i.openBlock(),i.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,el)):i.createCommentVNode("",!0),i.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,al),i.createElementVNode("div",{class:i.normalizeClass(["fridge",e.content.class,e.content.noOutline?"no_outline":""])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.magnets,(n,o)=>(i.openBlock(),i.createBlock(s,{id:"vdr_"+o,isActive:!0,w:n.width?n.width:50,minw:n.minWidth?n.minWidth:50,h:n.height?n.height:50,minh:n.minHeight?n.minHeight:50,x:n.x?n.x:0,y:n.y?n.y:60*o,class:i.normalizeClass(n.class),parentLimitation:!0,parentW:n.parentwidth?n.parentwidth:t.getParentWidth(),parentH:n.parentheight?n.parentheight:t.getParentHeight(),isResizable:n.resizable,isDraggable:n.draggable,snapToGrid:n.snap,gridX:n.snapX,gridY:n.snapY,dragHandle:n.handle,onResizing:A.resize,onDragging:A.resize,aspectRatio:!0,onResizestop:t.onResizstop,onDragstop:t.onDragstop,sticks:["tl","bl","tr","br"]},{default:i.withCtx(()=>[n.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:n.index,src:n.image,alt:n.imageAlt},null,8,rl)):i.createCommentVNode("",!0),n.text?(i.openBlock(),i.createElementBlock("p",{key:1,innerHTML:n.text},null,8,tl)):i.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"],hl={class:"list-group-item"},ml=["onClick"],Hl=["id","src","alt","data-swap"];function ul(A,c,e,a,r,t){const s=i.resolveComponent("lab-image"),n=i.resolveComponent("el-col"),o=i.resolveComponent("draggable"),l=i.resolveComponent("el-row");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(["dragDrop",e.content.handle])},{default:i.withCtx(()=>[i.createVNode(n,{span:24},{default:i.withCtx(()=>[i.createElementVNode("div",{innerHTML:e.content.directions},null,8,ol),e.content.image?(i.openBlock(),i.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):i.createCommentVNode("",!0),e.content.sound?(i.openBlock(),i.createElementBlock("audio",ll,[i.createElementVNode("source",{src:e.content.sound,type:"audio/mpeg"},null,8,fl),i.createTextVNode(" Your browser does not support the audio element. ")])):i.createCommentVNode("",!0)]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listOne,(f,h)=>(i.openBlock(),i.createBlock(n,{span:t.binColumns},{default:i.withCtx(()=>[i.createVNode(o,{class:i.normalizeClass(["draggable list-group",e.content.bins[h].class]),style:i.normalizeStyle({width:t.pixelFormat(e.content.bins[h].width),height:t.pixelFormat(e.content.bins[h].height),background:t.dragBackground(e.content.bins[h].bgImage)}),modelValue:t.myList[h],"onUpdate:modelValue":m=>t.myList[h]=m,move:t.checkMove,group:"people",forceFallback:"true"},{item:i.withCtx(({element:m})=>[i.createElementVNode("div",hl,[i.createElementVNode("button",{class:"dragItems-button",onClick:i.withModifiers(H=>t.keyboardDrag(m,h),["stop"])},[i.createTextVNode(i.toDisplayString(m.text)+" ",1),m.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:m.id,src:m.image,alt:m.imageAlt,"data-swap":m.relSwap},null,8,Hl)):i.createCommentVNode("",!0)],8,ml)])]),_: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:{recordResults(A){let c=[];this.content.bins.forEach(t=>{let s=[];t.items.forEach(o=>{let l={text:o.text,imageAlt:o.imageAlt};s.push(l)});let n={header:t.header,description:t.description,items:s};c.push(n)});let e={page:this.stepperStore.stepPage,result:A,correctAnswer:c},a=this.stepperStore.results.find(t=>t.page===this.stepperStore.stepPage),r=this.stepperStore.results.indexOf(a);a?this.stepperStore.results.fill(a.result=A,r,r++):this.stepperStore.results.push(e)},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),this.recordResults("not correct"),this.stepperStore.finishSteps()},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.recordResults("correct"))):(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=i.resolveComponent("lab-image"),n=i.resolveComponent("el-col"),o=i.resolveComponent("draggable"),l=i.resolveComponent("el-row"),f=i.resolveComponent("lab-feedback"),h=i.resolveComponent("el-button"),m=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(l,{class:i.normalizeClass(["dragDrop",e.content.handle]),id:"dragItemDiv"},{default:i.withCtx(()=>[i.createVNode(n,{span:24},{default:i.withCtx(()=>[i.createElementVNode("div",{innerHTML:e.content.directions},null,8,pl),e.content.image?(i.openBlock(),i.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):i.createCommentVNode("",!0)]),_:1}),i.createVNode(n,{span:24},{default:i.withCtx(()=>[i.createVNode(o,{class:"dragItems",list:r.listTwo,group:"put",forceFallback:"true",itemKey:"image",sort:!1,onEnd:t.checkMove},{item:i.withCtx(({element:H})=>[i.createElementVNode("div",{class:i.normalizeClass(["dragItem",H.class])},[i.createElementVNode("button",{class:"dragItems-button",onClick:i.withModifiers(u=>t.keyboardDrag(H),["stop"])},[i.createTextVNode(i.toDisplayString(H.text)+" ",1),H.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:H.id,src:H.image,alt:H.imageAlt},null,8,dl)):i.createCommentVNode("",!0)],8,vl)],2)]),_:1},8,["list","onEnd"])]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listOne,(H,u)=>(i.openBlock(),i.createBlock(n,{span:t.binColumns},{default:i.withCtx(()=>[i.createElementVNode("h4",null,i.toDisplayString(e.content.bins[u].header),1),i.createVNode(o,{class:i.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:i.withCtx(({element:p})=>[p.hide?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",gl,[i.createElementVNode("button",zl,[i.createTextVNode(i.toDisplayString(p.text)+" ",1),p.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:p.id,src:p.droppedImage,alt:p.imageAlt},null,8,Vl)):i.createCommentVNode("",!0)])]))]),_:2},1032,["class","data-index","list","move"])]),_:2},1032,["span"]))),256))]),_:1},8,["class"]),t.showFeedback()?(i.openBlock(),i.createBlock(f,{key:0,content:r.feedbackObject},null,8,["content"])):i.createCommentVNode("",!0),i.createVNode(m,{title:e.content.kbModalQuestion,modelValue:r.chooseVisibility,"onUpdate:modelValue":c[1]||(c[1]=H=>r.chooseVisibility=H),width:"50%"},{footer:i.withCtx(()=>[i.createElementVNode("span",Ml,[i.createVNode(h,{size:"small",id:"visibilityClose",type:"primary",onClick:c[0]||(c[0]=H=>t.kbCheckMove())},{default:i.withCtx(()=>[i.createTextVNode("Close")]),_:1})])]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listOne,(H,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(H,(p,z)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[u===0?(i.openBlock(),i.createBlock(h,{key:0,id:"firstBin",size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.content.bins[u].header),1)]),_:2},1032,["onClick"])):(i.openBlock(),i.createBlock(h,{key:1,size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:i.withCtx(()=>[i.createTextVNode(i.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 i.openBlock(),i.createElementBlock("div",null,[i.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(i,o4){typeof exports=="object"&&typeof module<"u"?module.exports=o4(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o4):(i=typeof globalThis<"u"?globalThis:i||self,i.LabmakerPlugin=o4(i.Vue))})(this,function(i){"use strict";const o4="",X=(A,c)=>{const e=A.__vccOpts||A;for(const[a,r]of c)e[a]=r;return e},Bi={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(){}},pi=i.createElementVNode("h1",null,"File Uploader",-1),vi={class:"image-uploader"},di=i.createElementVNode("h1",null,"File Uploader",-1),gi={class:"your-file"},zi=["src"];function Vi(A,c,e,a,r,t){return i.openBlock(),i.createElementBlock(i.Fragment,null,[pi,i.createElementVNode("div",vi,[di,i.createElementVNode("input",{onChange:c[0]||(c[0]=(...s)=>t.fileUpload&&t.fileUpload(...s)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),i.createElementVNode("div",gi,[i.createElementVNode("img",{src:r.imgSRC,alt:"",scrset:""},null,8,zi)])])],64)}const Mi=X(Bi,[["render",Vi]]),kq="",wi={props:["title"],data(){return{}},computed:{}};function Li(A,c,e,a,r,t){return i.openBlock(),i.createElementBlock("header",null,[i.createElementVNode("h1",null,i.toDisplayString(e.title),1)])}const Qi=X(wi,[["render",Li]]),Iq="",Fi={props:["content"],data(){return{}},computed:{},methods:{pixelFormat(A){return this.stepperStore.pixelFormat(A)}},mounted(){},beforeMount(){this.stepperStore=this.stepperMain()}},Ui={class:"image-container"},bi={class:"image"},xi=["src","alt"],yi=["innerHTML"],Si=["innerHTML"],Ni=["innerHTML"];function Ei(A,c,e,a,r,t){return i.openBlock(),i.createElementBlock("div",Ui,[i.createElementVNode("div",bi,[i.createElementVNode("img",{src:e.content.src,alt:e.content.alt,class:i.normalizeClass(e.content.class)},null,10,xi),e.content.captionHeader?(i.openBlock(),i.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:e.content.captionHeader},null,8,yi)):i.createCommentVNode("",!0),e.content.caption?(i.openBlock(),i.createElementBlock("span",{key:1,class:"caption",innerHTML:e.content.caption},null,8,Si)):i.createCommentVNode("",!0),e.content.copyright?(i.openBlock(),i.createElementBlock("span",{key:2,innerHTML:e.content.copyright,class:"copyright"},null,8,Ni)):i.createCommentVNode("",!0)])])}const ki=X(Fi,[["render",Ei],["__scopeId","data-v-45f6f0d2"]]),Tq="",Ii={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()})}}},Ti={key:0,class:"textVersion"},Di=i.createElementVNode("h1",null,"Text Version",-1),Ki=["innerHTML"],Ri=["src","width","height"],_i=["src","width","height"],Oi=["src","width","height"],Pi={key:2,class:"alert alert-danger"};function Gi(A,c,e,a,r,t){const s=i.resolveComponent("el-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["kContainer",e.content.class])},[e.content.textVersion&&r.showingText?(i.openBlock(),i.createElementBlock("div",Ti,[Di,i.createElementVNode("div",{innerHTML:e.content.textVersion},null,8,Ki)])):i.createCommentVNode("",!0),!r.showingText&&e.content.kalturaEntryId?(i.openBlock(),i.createElementBlock("div",{key:1,class:"mainVersion",style:i.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[e.content.kalturaType=="video"&&!r.showingKaltura?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["kPoster",{active:r.showingKaltura==!0}]),style:i.normalizeStyle({width:t.kWidth+"px",height:t.kHeight+"px"})},[i.createElementVNode("iframe",{onClick:c[0]||(c[0]=(...n)=>t.showKaltura&&t.showKaltura(...n)),class:"videoIframe",src:t.kalturaMedia(e.content),width:t.kWidth+"px",height:t.kHeight+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Ri)],6)):i.createCommentVNode("",!0),e.content.kalturaType=="audio"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["kAudio",{active:r.showingKaltura==!0}]),onClick:c[1]||(c[1]=(...n)=>t.showKaltura&&t.showKaltura(...n))},[i.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,_i)],2)):i.createCommentVNode("",!0),e.content.kalturaType=="audiobtn"?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["kAudiobtn",{active:r.showingKaltura==!0}]),onClick:c[2]||(c[2]=(...n)=>t.showKaltura&&t.showKaltura(...n))},[i.createElementVNode("iframe",{src:t.kalturaMedia(e.content),width:r.audioBtn.width+"px",height:r.audioBtn.height+"px",allowfullscreen:"",webkitallowfullscreen:"",mozAllowFullScreen:"",frameborder:"0"},null,8,Oi)],2)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),e.content.kalturaEntryId==""?(i.openBlock(),i.createElementBlock("div",Pi,"There is no Kaltura Entry ID")):i.createCommentVNode("",!0),e.content.textVersion?(i.openBlock(),i.createBlock(s,{key:3,size:"medium",type:"primary","aria-label":"text version",class:"toggleSwitch ftSwitch btn btn-primary vidText",onClick:c[3]||(c[3]=i.withModifiers(n=>t.showText(e.content.kalturaType),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.getButtonText(e.content.kalturaType)),1)]),_:1})):i.createCommentVNode("",!0)],2)}const Wi=X(Ii,[["render",Gi]]),Dq="",Xi={components:{},inject:["message"],props:["content"],data(){return{dialogVisible:!1,feedbackVisibility:[],feedbackIndex:0}},computed:{},methods:{showSpot(A){if(this.stepperStore.getStepPage[A].testPage){let c=!0;return this.stepperStore.getStepPage.forEach((e,a)=>{e.testPage!==!0&&!e.completed&&(c=!1)}),!!c}return!0},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)},hotspots(){return this.content.showCount?function(c,e){return[...c].sort(()=>.5-Math.random()).slice(0,e)}(this.content.hotspots,this.content.showCount):this.content.hotspots}},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")}},qi={class:"imageMarker"},Yi=["src","alt"],Ji={class:"hotspotArea"},$i=["src","alt"],ji={class:"im-buttonText"};function Zi(A,c,e,a,r,t){const s=i.resolveComponent("el-button"),n=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",qi,[i.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,Yi),i.createElementVNode("div",Ji,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.hotspots(),(o,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[t.showSpot(l)?(i.openBlock(),i.createBlock(s,{key:0,type:o.buttonType,onClick:i.withModifiers(f=>t.changePage(o,l),["stop"]),id:"hotspot_"+l,class:i.normalizeClass([["is-"+o.buttonShape,{noBG:o.buttonImage},o.class],"hotspot"]),style:i.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:i.withCtx(()=>[o.buttonImage?(i.openBlock(),i.createElementBlock("img",{key:0,class:"im-ButtonImage",src:o.buttonImage,alt:"image marker "+Number(l+1)},null,8,$i)):i.createCommentVNode("",!0),i.createElementVNode("span",ji,i.toDisplayString(o.name),1)]),_:2},1032,["type","onClick","id","class","style","icon"])):i.createCommentVNode("",!0),t.showFeedback(l)?(i.openBlock(),i.createBlock(n,{key:1,content:o},null,8,["content"])):i.createCommentVNode("",!0)],64))),256))])])}const Ao=X(Xi,[["render",Zi],["__scopeId","data-v-edf5c305"]]),Kq="",co={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")}},eo=["innerHTML"],ao=["src","alt"],ro={class:"hotspotArea"};function to(A,c,e,a,r,t){const s=i.resolveComponent("el-col"),n=i.resolveComponent("el-button"),o=i.resolveComponent("el-row");return i.openBlock(),i.createBlock(o,{class:"imageReplacer"},{default:i.withCtx(()=>[i.createVNode(s,{span:12},{default:i.withCtx(()=>[i.createElementVNode("p",{class:"imageReplacerDescription",innerHTML:e.content.description},null,8,eo)]),_:1}),i.createVNode(s,{span:12},{default:i.withCtx(()=>[i.createElementVNode("img",{class:"im-ButtonImage",src:r.imageSrc,alt:r.imageAlt},null,8,ao),i.createElementVNode("div",ro,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.hotspots,(l,f)=>(i.openBlock(),i.createBlock(n,{type:l.buttonType,onClick:i.withModifiers(h=>t.changeImage(f),["stop"]),class:"hotspot",style:i.normalizeStyle({top:t.pixelFormat(l.cordinatesX),left:t.pixelFormat(l.cordinatesY),width:t.pixelFormat(l.dimensionsW),height:t.pixelFormat(l.dimensionsH)}),icon:l.buttonIcon},null,8,["type","onClick","style","icon"]))),256))])]),_:1})]),_:1})}const so=X(co,[["render",to],["__scopeId","data-v-d6c87f03"]]),Rq="",no={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%")}},io={class:"my-header"},oo=["id","innerHTML"],lo=["innerHTML"],fo={key:1},ho={key:0},mo=["src"],Ho=["innerHTML"],uo={class:"dialog-footer"};function Co(A,c,e,a,r,t){const s=i.resolveComponent("lab-kaltura"),n=i.resolveComponent("lab-image"),o=i.resolveComponent("el-button"),l=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(l,{width:t.feedbackWidth,modelValue:r.show,"onUpdate:modelValue":c[1]||(c[1]=f=>r.show=f),"before-close":t.feedbackClose},{header:i.withCtx(({close:f,titleId:h,titleClass:m})=>[i.createElementVNode("div",io,[i.createElementVNode("h4",{id:h,class:i.normalizeClass(m),innerHTML:t.feedbackHeader},null,10,oo)])]),footer:i.withCtx(()=>[i.createElementVNode("span",uo,[i.createVNode(o,{size:"small",id:"feedbackClose",type:"primary",onClick:c[0]||(c[0]=i.withModifiers(f=>t.feedbackClose(),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode("Close")]),_:1})])]),default:i.withCtx(()=>[t.getShowFeedbackAttempts?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.content.feedbackAttempts?(i.openBlock(),i.createElementBlock("p",{key:0,innerHTML:e.content.feedbackAttempts},null,8,lo)):(i.openBlock(),i.createElementBlock("p",fo,"You have tried too many times, the correct answer has been provided for you."))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.content.feedbackContent?(i.openBlock(),i.createElementBlock("div",ho,[e.content.feedbackContent.type==="media"?(i.openBlock(),i.createBlock(s,{key:0,content:e.content.feedbackContent.fieldValues,class:i.normalizeClass([e.content.feedbackContent.fieldValues.class,{video:e.content.feedbackContent.fieldValues.kalturaType==="video"}])},null,8,["content","class"])):i.createCommentVNode("",!0),e.content.feedbackContent.type==="image"?(i.openBlock(),i.createBlock(n,{key:1,content:e.content.feedbackContent.fieldValues},null,8,["content"])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),e.content.feedbackImage?(i.openBlock(),i.createElementBlock("img",{key:1,class:"im-ButtonImage",src:e.content.feedbackImage,alt:"button image"},null,8,mo)):i.createCommentVNode("",!0),i.createElementVNode("p",{innerHTML:e.content.feedback},null,8,Ho)],64))]),_:1},8,["width","modelValue","before-close"])}const Bo=X(no,[["render",Co]]),_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(!0),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(!1);this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){let c=[],e="not correct";this.quizArray.forEach((s,n)=>{this.input[n]?this.input[n]=this.content.options[n].answer:this.input.push(this.content.options[n].answer),c.push(this.content.options[n].answer),this.quizItemCompleted.push(n+1)}),A&&(e="correct");let a={page:this.stepperStore.stepPage,result:e,correctAnswer:c},r=this.stepperStore.results.find(s=>s.page===this.stepperStore.stepPage),t=this.stepperStore.results.indexOf(r);r?this.stepperStore.results.fill(r.result=e,t,t++):this.stepperStore.results.push(a),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=i.resolveComponent("el-option"),n=i.resolveComponent("el-select"),o=i.resolveComponent("el-date-picker"),l=i.resolveComponent("el-button"),f=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["drop-down",e.content.class])},[i.createElementVNode("p",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.quizArray,(h,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("span",{class:i.normalizeClass(t.quizClass(m))},[i.createElementVNode("span",{class:i.normalizeClass("quizText quizSection_"+m)},i.toDisplayString(h)+" ",3),t.quizType(m)==="choose"?(i.openBlock(),i.createBlock(n,{key:0,onChange:H=>t.choicesMade(m),modelValue:r.input[m],"onUpdate:modelValue":H=>r.input[m]=H,placeholder:t.quizDisplay(m)},{default:i.withCtx(()=>[t.quizArrayCompleted(m)?i.createCommentVNode("",!0):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(r.quizOptions[m],H=>(i.openBlock(),i.createBlock(s,{key:H,label:H,value:H},null,8,["label","value"]))),128))]),_:2},1032,["onChange","modelValue","onUpdate:modelValue","placeholder"])):i.createCommentVNode("",!0),t.quizType(m)==="date"?(i.openBlock(),i.createBlock(o,{key:1,onChange:H=>t.choicesMade(m),modelValue:r.input[m],"onUpdate:modelValue":H=>r.input[m]=H,type:"date",placeholder:t.quizDisplay(m),format:e.content.options[m].format,"value-format":e.content.options[m].format,disabled:t.quizArrayCompleted(m)},null,8,["onChange","modelValue","onUpdate:modelValue","placeholder","format","value-format","disabled"])):i.createCommentVNode("",!0)],2),i.createTextVNode("  ")],64))),256))]),i.createVNode(l,{size:"small",type:"primary",class:"drop-down-submit",onClick:c[0]||(c[0]=h=>t.choicesCheck())},{default:i.withCtx(()=>[i.createTextVNode("Submit")]),_:1}),t.showFeedback()?(i.openBlock(),i.createBlock(f,{key:0,content:r.feedbackObject},null,8,["content"])):i.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(!0),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(!1)),this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){let c=[],e="not correct";this.input.forEach((s,n)=>{this.input[n]=this.content.answers[n],c.push(this.content.answers[n])}),A&&(e="correct");let a={page:this.stepperStore.stepPage,result:e,correctAnswer:c},r=this.stepperStore.results.find(s=>s.page===this.stepperStore.stepPage),t=this.stepperStore.results.indexOf(r);r?this.stepperStore.results.fill(r.result=e,t,t++):this.stepperStore.results.push(a),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=i.resolveComponent("el-input"),n=i.resolveComponent("el-button"),o=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fill-blank",e.content.class])},[i.createElementVNode("p",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.quizArray,(l,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createTextVNode(i.toDisplayString(l),1),f<t.quizArrayCount?(i.openBlock(),i.createBlock(s,{key:0,modelValue:r.input[f],"onUpdate:modelValue":h=>r.input[f]=h,placeholder:"Please input",size:"small"},null,8,["modelValue","onUpdate:modelValue"])):i.createCommentVNode("",!0)],64))),256))]),i.createVNode(n,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[0]||(c[0]=l=>t.choicesCheck())},{default:i.withCtx(()=>[i.createTextVNode("Submit")]),_:1}),t.showFeedback()?(i.openBlock(),i.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):i.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(A){let c,e="not correct",a=document.querySelectorAll(".selectableButton");for(let n=0;n<a.length;n++)a[n].classList.add("is-failure"),a[n].setAttribute("disabled",!0),this.content.choices[n].correct&&(a[n].classList.add("is-success"),c=this.content.choices[n].text);A&&(e="correct");let r={page:this.stepperStore.stepPage,result:e,correctAnswer:c},t=this.stepperStore.results.find(n=>n.page===this.stepperStore.stepPage),s=this.stepperStore.results.indexOf(t);t?this.stepperStore.results.fill(t.result=e,s,s++):this.stepperStore.results.push(r),this.stepperStore.finishSteps()},choicesCheck(A){this.getAttempt<Number(this.content.attempts)?this.content.choices[A].correct===!0?this.choicesComplete(!0):this.stepperStore.attempts=this.getAttempt+1:(this.content.choices[A].correct!==!0&&(this.stepperStore.showFeedbackAttempts=!0),this.choicesComplete(!1)),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)}},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=i.resolveComponent("lab-image"),n=i.resolveComponent("el-col"),o=i.resolveComponent("el-divider"),l=i.resolveComponent("el-button"),f=i.resolveComponent("lab-feedback"),h=i.resolveComponent("el-row");return i.openBlock(),i.createBlock(h,{id:e.content.id,class:i.normalizeClass(["selectable",e.content.classes])},{default:i.withCtx(()=>[i.createVNode(n,{span:t.leftColWidth(A.index)},{default:i.withCtx(()=>[e.content.directions?(i.openBlock(),i.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,Lo)):i.createCommentVNode("",!0),e.content.image?(i.openBlock(),i.createBlock(s,{key:1,content:e.content.image},null,8,["content"])):i.createCommentVNode("",!0)]),_:1},8,["span"]),i.createVNode(n,{span:t.rightColWidth(A.index),class:"selectArea"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.choices,(m,H)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[!e.content.noDivider&&H>0?(i.openBlock(),i.createBlock(o,{key:0})):i.createCommentVNode("",!0),i.createVNode(l,{size:"small",type:"primary",class:"selectableButton",style:i.normalizeStyle({width:t.pixelFormat(e.content.choiceWidth),height:t.pixelFormat(e.content.choiceHeight)}),onClick:u=>t.choicesCheck(H)},{default:i.withCtx(()=>[i.createElementVNode("div",Qo,[m.image?(i.openBlock(),i.createElementBlock("img",{key:0,class:"im-ButtonImage",src:m.image,alt:m.alt?m.alt:"button image"},null,8,Fo)):i.createCommentVNode("",!0),i.createElementVNode("span",Uo,i.toDisplayString(m.text),1)])]),_:2},1032,["style","onClick"]),t.showFeedback(H)?(i.openBlock(),i.createBlock(f,{key:1,content:m},null,8,["content"])):i.createCommentVNode("",!0)],64))),256))]),_:1},8,["span"])]),_:1},8,["id","class"])}const xo=X(wo,[["render",bo],["__scopeId","data-v-73d69257"]]),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(!0),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(!1);this.stepperStore.showFeedback=!0,setTimeout(()=>{document.getElementById("feedbackClose")&&document.getElementById("feedbackClose").focus()})},choicesComplete(A){let c=[],e="not correct";this.content.answers.forEach(s=>{c.push(s)}),A&&(e="correct");let a={page:this.stepperStore.stepPage,result:e,correctAnswer:c},r=this.stepperStore.results.find(s=>s.page===this.stepperStore.stepPage),t=this.stepperStore.results.indexOf(r);r?this.stepperStore.results.fill(r.result=e,t,t++):this.stepperStore.results.push(a),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=i.resolveComponent("el-input"),n=i.resolveComponent("el-button"),o=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["textbox",e.content.class])},[i.createElementVNode("p",null,i.toDisplayString(e.content.quiz),1),i.createVNode(s,{modelValue:r.input,"onUpdate:modelValue":c[0]||(c[0]=l=>r.input=l),autosize:{minRows:4,maxRows:8},type:"textarea",placeholder:"Please input"},null,8,["modelValue"]),i.createVNode(n,{size:"small",type:"primary",class:"fill-blank-submit",onClick:c[1]||(c[1]=l=>t.choicesCheck())},{default:i.withCtx(()=>[i.createTextVNode("Submit")]),_:1}),t.showFeedback()?(i.openBlock(),i.createBlock(o,{key:0,content:r.feedbackObject},null,8,["content"])):i.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=i.resolveComponent("CaretBottom"),n=i.resolveComponent("el-icon"),o=i.resolveComponent("CaretRight"),l=i.resolveComponent("lab-feedback");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["menu-chooser",e.content.class])},[r.showMenuOverlay?(i.openBlock(),i.createElementBlock("div",{key:0,class:"nav-mask",onClick:c[0]||(c[0]=(...f)=>t.hideSubs&&t.hideSubs(...f))})):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.content.quiz),1),i.createElementVNode("div",{class:"jl-menu",onSelect:c[1]||(c[1]=(...f)=>t.choicesCheck&&t.choicesCheck(...f))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.menu,(f,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.subMenu?(i.openBlock(),i.createElementBlock("div",ko,[i.createElementVNode("button",{class:i.normalizeClass("jl-menu-sub sub-"+h),index:h,tabindex:"0",role:"menuitem",onClick:i.withModifiers(m=>t.showSub("sub-"+h),["stop"])},[i.createElementVNode("div",To,[i.createTextVNode(i.toDisplayString(f.name)+" ",1),i.createVNode(n,null,{default:i.withCtx(()=>[i.createVNode(s)]),_:1})])],10,Io),i.createElementVNode("div",{class:"jl-menu-sub-menu",id:"sub-"+h},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.subMenu,(m,H)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[m.subMenu?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("button",{class:i.normalizeClass("jl-menu-sub-sub sub-sub-"+H),index:h+"-"+H,tabindex:"0",role:"menuitem",onClick:i.withModifiers(u=>t.showSubSub("sub-sub-"+h),["stop"])},[i.createElementVNode("div",Ro,[i.createTextVNode(i.toDisplayString(m.name),1),i.createVNode(n,null,{default:i.withCtx(()=>[i.createVNode(o)]),_:1})])],10,Ko),i.createElementVNode("div",{class:"jl-menu-sub-sub-menu",id:"sub-sub-"+h},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.subMenu,(u,p)=>(i.openBlock(),i.createElementBlock("button",{class:"jl-menu-sub-sub-item",index:h+"-"+H+"-"+p,tabindex:"0",role:"menuitem",onClick:i.withModifiers(z=>t.choicesCheck(h+"-"+H+"-"+p),["stop"])},[i.createElementVNode("div",null,i.toDisplayString(u.name),1)],8,Oo))),256))],8,_o)],64)):(i.openBlock(),i.createElementBlock("button",{key:1,class:"jl-menu-sub-item",tabindex:"0",role:"menuitem",onClick:i.withModifiers(u=>t.choicesCheck(h+"-"+H),["stop"])},[i.createElementVNode("div",null,i.toDisplayString(m.name),1)],8,Po))],64))),256))],8,Do)])):(i.openBlock(),i.createElementBlock("div",Go,[i.createElementVNode("button",{class:"jl-menu-sub",index:h,tabindex:"0",role:"menuitem",onClick:i.withModifiers(m=>t.choicesCheck(h),["stop"])},i.toDisplayString(f.name),9,Wo)]))],64))),256))],32),t.showFeedback()?(i.openBlock(),i.createBlock(l,{key:1,content:r.feedbackObject},null,8,["content"])):i.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:n}=this;let o=c.top-A.y,l=c.bottom+A.y,f=c.left-A.x,h=c.right+A.x;if(this.snapToGrid){let m=!0,H=!0,u=o-Math.floor(o/t)*t,p=a-l-Math.floor((a-l)/t)*t,z=f-Math.floor(f/r)*r,C=e-h-Math.floor((e-h)/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)&&(m=!1),Math.abs(C)<Math.abs(z)&&(H=!1),o-=m?u:p,l=a-n-o,f-=H?z:C,h=e-s-f}({newLeft:this.left,newRight:this.right,newTop:this.top,newBottom:this.bottom}=this.rectCorrectionByLimit({newLeft:f,newRight:h,newTop:o,newBottom:l})),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:n}=this;let o=e.top,l=e.bottom,f=e.left,h=e.right;switch(c[0]){case"b":l=e.bottom+A.y,t&&(l=s-Math.round((s-l)/a)*a);break;case"t":o=e.top-A.y,t&&(o=Math.round(o/a)*a);break}switch(c[1]){case"r":h=e.right+A.x,t&&(h=n-Math.round((n-h)/r)*r);break;case"l":f=e.left-A.x,t&&(f=Math.round(f/r)*r);break}({newLeft:f,newRight:h,newTop:o,newBottom:l}=this.rectCorrectionByLimit({newLeft:f,newRight:h,newTop:o,newBottom:l})),this.aspectRatio&&({newLeft:f,newRight:h,newTop:o,newBottom:l}=this.rectCorrectionByAspectRatio({newLeft:f,newRight:h,newTop:o,newBottom:l})),this.left=f,this.right=h,this.top=o,this.bottom=l,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:n,minw:o}=this;const l=this.parentLimitation?0:null;this.aspectRatio&&(o/n>A?n=o/A:o=A*n);const f={left:{min:l,max:t+(c-o)},right:{min:l,max:s+(c-o)},top:{min:l,max:r+(e-n)},bottom:{min:l,max:a+(e-n)}};if(this.aspectRatio){const h={left:{min:t-Math.min(r,a)*A*2,max:t+(e-n)/2*A*2},right:{min:s-Math.min(r,a)*A*2,max:s+(e-n)/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"?(f.left={min:Math.max(f.left.min,h.left.min),max:Math.min(f.left.max,h.left.max)},f.right={min:Math.max(f.right.min,h.right.min),max:Math.min(f.right.max,h.right.max)}):this.currentStick[1]==="m"&&(f.top={min:Math.max(f.top.min,h.top.min),max:Math.min(f.top.max,h.top.max)},f.bottom={min:Math.max(f.bottom.min,h.bottom.min),max:Math.min(f.bottom.max,h.bottom.max)})}return f},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:n,aspectFactor:o,dimensionsBeforeMove:l}=this;let f=t-c-e,h=s-a-r;if(n[1]==="m"){const m=h-l.height;c-=m*o/2,e-=m*o/2}else if(n[0]==="m"){const m=f-l.width;a-=m/o/2,r-=m/o/2}else f/h>o?(f=o*h,n[1]==="l"?c=t-e-f:e=t-c-f):(h=f/o,n[0]==="t"?a=s-r-h:r=s-a-h);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 i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vdr",`${r.active||e.isActive?"active":"inactive"} ${e.contentClass?e.contentClass:""}`]),style:i.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"},[i.createElementVNode("div",{style:i.normalizeStyle(t.sizeStyle),class:"content-container",ref:"container2"},[i.renderSlot(A.$slots,"default")],4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.sticks,s=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vdr-stick",["vdr-stick-"+s,e.isResizable?"":"not-resizable"]]),onMousedown:i.withModifiers(n=>t.stickDown(s,n),["stop","prevent"]),onTouchstart:i.withModifiers(n=>t.stickDown(s,n),["stop","prevent"]),style:i.normalizeStyle(t.vdrStick(s))},null,46,jo))),256))],38)}const m8=X($o,[["render",Zo]]),qq="",Al={components:{VueDragResize:m8},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 n=Number(s.style.left.slice(0,-2));n-10<0?s.style.left=`${n}px`:s.style.left=`${n-10}px`}if(t.altKey&&t.key==="ArrowRight"){let n=Number(s.style.left.slice(0,-2));n+10>r[0].offsetWidth-50?s.style.left=`${n}px`:s.style.left=`${n+10}px`}if(t.altKey&&t.key==="ArrowUp"){let n=Number(s.style.top.slice(0,-2));n+10<0?s.style.top=`${n}px`:s.style.top=`${n-10}px`}if(t.altKey&&t.key==="ArrowDown"){let n=Number(s.style.top.slice(0,-2));n+10>r[0].offsetHeight-80?s.style.top=`${n}px`:s.style.top=`${n+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=i.resolveComponent("VueDragResize");return i.openBlock(),i.createElementBlock("div",cl,[e.content.directions?(i.openBlock(),i.createElementBlock("p",{key:0,innerHTML:e.content.directions},null,8,el)):i.createCommentVNode("",!0),i.createElementVNode("img",{src:e.content.image,alt:e.content.imageAlt},null,8,al),i.createElementVNode("div",{class:i.normalizeClass(["fridge",e.content.class,e.content.noOutline?"no_outline":""])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.content.magnets,(n,o)=>(i.openBlock(),i.createBlock(s,{id:"vdr_"+o,isActive:!0,w:n.width?n.width:50,minw:n.minWidth?n.minWidth:50,h:n.height?n.height:50,minh:n.minHeight?n.minHeight:50,x:n.x?n.x:0,y:n.y?n.y:60*o,class:i.normalizeClass(n.class),parentLimitation:!0,parentW:n.parentwidth?n.parentwidth:t.getParentWidth(),parentH:n.parentheight?n.parentheight:t.getParentHeight(),isResizable:n.resizable,isDraggable:n.draggable,snapToGrid:n.snap,gridX:n.snapX,gridY:n.snapY,dragHandle:n.handle,onResizing:A.resize,onDragging:A.resize,aspectRatio:!0,onResizestop:t.onResizstop,onDragstop:t.onDragstop,sticks:["tl","bl","tr","br"]},{default:i.withCtx(()=>[n.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:n.index,src:n.image,alt:n.imageAlt},null,8,rl)):i.createCommentVNode("",!0),n.text?(i.openBlock(),i.createElementBlock("p",{key:1,innerHTML:n.text},null,8,tl)):i.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"],hl={class:"list-group-item"},ml=["onClick"],Hl=["id","src","alt","data-swap"];function ul(A,c,e,a,r,t){const s=i.resolveComponent("lab-image"),n=i.resolveComponent("el-col"),o=i.resolveComponent("draggable"),l=i.resolveComponent("el-row");return i.openBlock(),i.createBlock(l,{class:i.normalizeClass(["dragDrop",e.content.handle])},{default:i.withCtx(()=>[i.createVNode(n,{span:24},{default:i.withCtx(()=>[i.createElementVNode("div",{innerHTML:e.content.directions},null,8,ol),e.content.image?(i.openBlock(),i.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):i.createCommentVNode("",!0),e.content.sound?(i.openBlock(),i.createElementBlock("audio",ll,[i.createElementVNode("source",{src:e.content.sound,type:"audio/mpeg"},null,8,fl),i.createTextVNode(" Your browser does not support the audio element. ")])):i.createCommentVNode("",!0)]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listOne,(f,h)=>(i.openBlock(),i.createBlock(n,{span:t.binColumns},{default:i.withCtx(()=>[i.createVNode(o,{class:i.normalizeClass(["draggable list-group",e.content.bins[h].class]),style:i.normalizeStyle({width:t.pixelFormat(e.content.bins[h].width),height:t.pixelFormat(e.content.bins[h].height),background:t.dragBackground(e.content.bins[h].bgImage)}),modelValue:t.myList[h],"onUpdate:modelValue":m=>t.myList[h]=m,move:t.checkMove,group:"people",forceFallback:"true"},{item:i.withCtx(({element:m})=>[i.createElementVNode("div",hl,[i.createElementVNode("button",{class:"dragItems-button",onClick:i.withModifiers(H=>t.keyboardDrag(m,h),["stop"])},[i.createTextVNode(i.toDisplayString(m.text)+" ",1),m.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:m.id,src:m.image,alt:m.imageAlt,"data-swap":m.relSwap},null,8,Hl)):i.createCommentVNode("",!0)],8,ml)])]),_: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:{recordResults(A){let c=[];this.content.bins.forEach(t=>{let s=[];t.items.forEach(o=>{let l={text:o.text,imageAlt:o.imageAlt};s.push(l)});let n={header:t.header,description:t.description,items:s};c.push(n)});let e={page:this.stepperStore.stepPage,result:A,correctAnswer:c},a=this.stepperStore.results.find(t=>t.page===this.stepperStore.stepPage),r=this.stepperStore.results.indexOf(a);a?this.stepperStore.results.fill(a.result=A,r,r++):this.stepperStore.results.push(e)},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),this.recordResults("not correct"),this.stepperStore.finishSteps()},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.recordResults("correct"))):(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=i.resolveComponent("lab-image"),n=i.resolveComponent("el-col"),o=i.resolveComponent("draggable"),l=i.resolveComponent("el-row"),f=i.resolveComponent("lab-feedback"),h=i.resolveComponent("el-button"),m=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(l,{class:i.normalizeClass(["dragDrop",e.content.handle]),id:"dragItemDiv"},{default:i.withCtx(()=>[i.createVNode(n,{span:24},{default:i.withCtx(()=>[i.createElementVNode("div",{innerHTML:e.content.directions},null,8,pl),e.content.image?(i.openBlock(),i.createBlock(s,{key:0,content:e.content.image},null,8,["content"])):i.createCommentVNode("",!0)]),_:1}),i.createVNode(n,{span:24},{default:i.withCtx(()=>[i.createVNode(o,{class:"dragItems",list:r.listTwo,group:"put",forceFallback:"true",itemKey:"image",sort:!1,onEnd:t.checkMove},{item:i.withCtx(({element:H})=>[i.createElementVNode("div",{class:i.normalizeClass(["dragItem",H.class])},[i.createElementVNode("button",{class:"dragItems-button",onClick:i.withModifiers(u=>t.keyboardDrag(H),["stop"])},[i.createTextVNode(i.toDisplayString(H.text)+" ",1),H.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:H.id,src:H.image,alt:H.imageAlt},null,8,dl)):i.createCommentVNode("",!0)],8,vl)],2)]),_:1},8,["list","onEnd"])]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listOne,(H,u)=>(i.openBlock(),i.createBlock(n,{span:t.binColumns},{default:i.withCtx(()=>[i.createElementVNode("h4",null,i.toDisplayString(e.content.bins[u].header),1),i.createVNode(o,{class:i.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:i.withCtx(({element:p})=>[p.hide?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",gl,[i.createElementVNode("button",zl,[i.createTextVNode(i.toDisplayString(p.text)+" ",1),p.image?(i.openBlock(),i.createElementBlock("img",{key:0,id:p.id,src:p.droppedImage,alt:p.imageAlt},null,8,Vl)):i.createCommentVNode("",!0)])]))]),_:2},1032,["class","data-index","list","move"])]),_:2},1032,["span"]))),256))]),_:1},8,["class"]),t.showFeedback()?(i.openBlock(),i.createBlock(f,{key:0,content:r.feedbackObject},null,8,["content"])):i.createCommentVNode("",!0),i.createVNode(m,{title:e.content.kbModalQuestion,modelValue:r.chooseVisibility,"onUpdate:modelValue":c[1]||(c[1]=H=>r.chooseVisibility=H),width:"50%"},{footer:i.withCtx(()=>[i.createElementVNode("span",Ml,[i.createVNode(h,{size:"small",id:"visibilityClose",type:"primary",onClick:c[0]||(c[0]=H=>t.kbCheckMove())},{default:i.withCtx(()=>[i.createTextVNode("Close")]),_:1})])]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.listOne,(H,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(H,(p,z)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[u===0?(i.openBlock(),i.createBlock(h,{key:0,id:"firstBin",size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.content.bins[u].header),1)]),_:2},1032,["onClick"])):(i.openBlock(),i.createBlock(h,{key:1,size:"small",type:"primary",onClick:C=>t.kbCheckMove(u,z)},{default:i.withCtx(()=>[i.createTextVNode(i.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 i.openBlock(),i.createElementBlock("div",null,[i.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
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .image-uploader{display:flex;flex-direction:column;align-items:center;border:1px solid gray;width:53%;background-color:#cecece;margin:0 auto;height:300px;box-shadow:#0000001a 0 4px 12px}.your-file{display:flex;justify-content:center;align-items:center;margin-top:20px}img{width:80%}header{display:flex;justify-content:center;align-items:center;height:40px;margin-top:10px;margin-bottom:10px}#app .image-container[data-v-45f6f0d2]{position:relative;display:block;margin-bottom:10px;height:100%}#app .image-container .image[data-v-45f6f0d2]{height:100%}#app .image-container .image img[data-v-45f6f0d2]{max-height:100%;max-width:100%}#app .image-container.copyright[data-v-45f6f0d2],#app .image-container.captions[data-v-45f6f0d2]{margin-bottom:20px}#app .image-container.copyright[data-v-45f6f0d2],#app .image-container.captions[data-v-45f6f0d2]{margin-bottom:40px}#app .image-container .captionHeader[data-v-45f6f0d2]{font-size:20px;text-align:center;display:block;margin-bottom:10px}#app .image-container .caption[data-v-45f6f0d2]{font-size:13px;font-style:italic;text-align:center;display:block;margin-bottom:10px}#app .image-container .copyright[data-v-45f6f0d2]{font-size:10px;line-height:10px;margin-top:10px;text-align:center;display:block;margin-bottom:10px}.kContainer{position:relative;height:90%}.kContainer iframe{margin:0}.kContainer .mainVersion{margin:auto;position:relative;display:block}.kContainer .mainVersion .kAudiobtn{width:30px;height:30px;position:relative;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kAudiobtn .kButton.audiobtn{position:absolute;height:30px;width:30px;background:url(//cdn.flvs.net/course_view/1_0/dist/images/kaltura_audio_button.png) 0 0 no-repeat;z-index:900;cursor:pointer}.kContainer .mainVersion .kAudio{width:260px;height:38px;position:relative;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kAudio .kButton.audio{position:absolute;height:40px;width:260px;background:url(//cdn.flvs.net/course_view/1_0/dist/images/kaltura_audio_standard.png) 0 0 no-repeat;z-index:900;cursor:pointer}.kContainer .mainVersion .audioIframe,.kContainer .mainVersion .audiobtnIframe{position:relative;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kPoster{position:absolute;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kPoster .active{display:none;visibility:hidden}.kContainer .mainVersion .kPoster .kButton{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:url(//cdn.flvs.net/course_view/1_0/dist/images/player_big_play_button.png) 0 0 no-repeat;z-index:900;width:70px;height:53px;cursor:pointer}.kContainer .mainVersion .kPoster img{position:absolute;top:0;left:0;z-index:899;height:100%;width:100%;border:1px solid #000;max-height:100%;max-width:100%}.kContainer .mainVersion .kPoster .videoIframe{z-index:897}.kContainer .mainVersion .videoIframe{position:absolute;transition:opacity .4s ease;left:50%;transform:translate(-50%);z-index:897}.kContainer button.toggleSwitch,.kContainer button.toggleSwitchFT{margin-top:0;min-width:180px;position:relative;left:50%;transform:translate(-50%)}.kContainer .kCopyright{font-size:10px;text-align:right;width:200px;position:absolute;bottom:-30px;right:0;padding:8px}.kContainer .kCopyright.kCopyrightAudio{bottom:4px}.kContainer .largePlayBtn{display:none}.kContainer .textVersion{overflow-y:auto;height:calc(100% - 10px);margin-bottom:6px}.fade-enter-active,.fade-leave-active{transition:opacity .8s}.fade-enter,.fade-leave-to{opacity:0}#app div.imageMarker[data-v-73fb4688]{position:relative;height:100%;border-radius:6px}#app div.imageMarker img[data-v-73fb4688]{width:100%;max-width:100%;max-height:100%;border-radius:6px}#app div.imageMarker .hotspotArea[data-v-73fb4688]{width:100%;height:100%;position:absolute;top:0;left:0}#app div.imageMarker .hotspotArea .el-button.hotspot[data-v-73fb4688]{position:absolute;min-height:unset;padding:4px 4px 4px 7px;margin:unset}#app div.imageMarker .hotspotArea .el-button.hotspot.noBG[data-v-73fb4688]{background-color:transparent}#app div.imageMarker .hotspotArea .el-button.hotspot img.im-ButtonImage[data-v-73fb4688]{position:absolute;top:0;left:0}#app div.imageReplacer[data-v-d6c87f03]{position:relative;height:calc(100% - 40px)}#app div.imageReplacer .el-col[data-v-d6c87f03]{position:relative;height:100%}#app div.imageReplacer img[data-v-d6c87f03]{width:100%;max-width:100%}#app div.imageReplacer .hotspotArea[data-v-d6c87f03]{width:100%;height:100%;position:absolute;top:0;left:0}#app div.imageReplacer .hotspotArea .el-button.hotspot[data-v-d6c87f03]{position:absolute;min-height:unset;padding:4px 4px 4px 7px;margin:unset;background:transparent;border:none}#app div.imageReplacer .hotspotArea .el-button.hotspot img.im-ButtonImage[data-v-d6c87f03]{position:absolute;top:0;left:0}#app div.imageReplacer .hotspotArea .el-button.hotspot span.im-buttonText[data-v-d6c87f03]{position:absolute;left:17px;top:12px}.el-dialog{border-radius:6px}.el-dialog .el-dialog__header .el-dialog__title{color:#000;font-size:1.5rem}.el-dialog .el-dialog__header .el-dialog__headerbtn{top:8px;right:8px;border:1px solid #404040;border-radius:4px;background:#feec86;color:#000;font-weight:400;box-shadow:2px 2px 6px #0000004d;transition:background .5s,color .5s}.el-dialog .el-dialog__header .el-dialog__headerbtn:hover,.el-dialog .el-dialog__header .el-dialog__headerbtn:focus,.el-dialog .el-dialog__header .el-dialog__headerbtn:active{color:#404040;background:#fff;border-color:#2a2a2a}.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:#000;font-size:18px}.el-dialog .el-dialog__body{color:#212529;font-size:1rem;word-break:normal}#app div.drop-down{background:white;margin:0 0 40px;padding:10px}#app div.drop-down p span{display:inline-block}#app div.drop-down p span .el-input{display:inline-block;margin-right:-10px}#app div.fill-blank{background:white;margin:0 0 40px;padding:10px}#app div.fill-blank .el-input{display:inline-block;margin-right:-10px}#app div.selectable .selectArea[data-v-73d69257]{text-align:center}#app div.selectable .selectArea .selectableButton[data-v-73d69257]{text-align:left}#app div.selectable .selectArea .selectableButton .buttonSpan[data-v-73d69257]{display:flex;height:100%}#app div.selectable .selectArea .selectableButton .buttonSpan img.im-ButtonImage[data-v-73d69257]{max-height:98%;margin-right:8px}#app div.textbox{position:absolute;background:white;margin:0 0 40px;width:100%;padding:20px 10px}#app div.textbox .el-input{display:inline-block;margin-right:-10px}#app div.menu-chooser{background:white;margin:0 0 40px;padding:20px 10px}#app div.menu-chooser p span{display:inline-block}#app div.menu-chooser .jl-menu{width:100%;display:flex;flex-wrap:nowrap;border-right:none;list-style:none;position:relative;margin:0;padding-left:0;background-color:#555c66;box-sizing:border-box;height:60px;z-index:1002}#app div.menu-chooser .jl-menu button.jl-menu-sub,#app div.menu-chooser .jl-menu button.jl-menu-item{height:100%;background-color:#555c66;color:#fff;padding:0 12px;position:relative;white-space:nowrap;border:none}#app div.menu-chooser .jl-menu button.jl-menu-sub:focus,#app div.menu-chooser .jl-menu button.jl-menu-sub:hover,#app div.menu-chooser .jl-menu button.jl-menu-sub:active,#app div.menu-chooser .jl-menu button.jl-menu-item:focus,#app div.menu-chooser .jl-menu button.jl-menu-item:hover,#app div.menu-chooser .jl-menu button.jl-menu-item:active{background-color:#6b7077;color:#fff;outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:-4px}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu{display:none;width:100px;margin:0;padding:0;background-color:#555c66;border:1px solid white;color:#fff;box-sizing:border-box;position:absolute;top:64px}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu.jl-menu-sub_show{display:block}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item{background-color:#555c66;color:#fff;padding:6px;display:block;border:0;width:100%;text-align:left}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub:active,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item:active{background-color:#6b7077;color:#fff;outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:-4px}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu{display:none;width:180px;background:#555c66;color:#fff;border:1px solid white;position:absolute;top:0;left:106px;margin:0;padding:0}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu.jl-menu-sub-sub_show{display:block}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item{background-color:#555c66;color:#fff;padding:6px;display:block;border:0;width:100%;text-align:left}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub:active,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item:active{background-color:#6b7077;color:#fff;outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:-4px}#app div.menu-chooser .nav-mask{top:0;left:0;z-index:1001;overflow:hidden;position:fixed;width:100%;height:100%;background-color:#0003;transition:opacity .3s ease}.vdr{position:absolute;box-sizing:border-box}.vdr.active:before{content:"";width:100%;height:100%;position:absolute;top:0;left:0;box-sizing:border-box;outline:1px dashed #d6d6d6}.vdr-stick{box-sizing:border-box;position:absolute;font-size:1px;background:#ffffff;border:1px solid #6c6c6c;box-shadow:0 0 2px #bbb}.inactive .vdr-stick{display:none}.vdr-stick-tl,.vdr-stick-br{cursor:nwse-resize}.vdr-stick-tm,.vdr-stick-bm{left:50%;cursor:ns-resize}.vdr-stick-tr,.vdr-stick-bl{cursor:nesw-resize}.vdr-stick-ml,.vdr-stick-mr{top:50%;cursor:ew-resize}.vdr-stick.not-resizable{display:none}.content-container{display:block;position:relative}#app div.fridgemagnet{position:relative;margin-bottom:12px;height:100%;width:100%}#app div.fridgemagnet .fridge{width:100%;height:100%;position:absolute;top:0;left:0}#app div.fridgemagnet .fridge.no_outline .vdr.active:before{content:none}#app div.fridgemagnet .fridge .vdr:focus{outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:2px}#app div.fridgemagnet .fridge .vdr .content-container{width:100%;max-width:100%;max-height:100%;border-radius:6px}#app div.fridgemagnet .fridge .vdr .content-container img{max-width:100%;max-height:100%}#app div.fridgemagnet .fridge .vdr .content-container p{margin:0}#app div.dragDrop .draggable{border:1px solid black;margin-right:5px}#app div.dragDrop .draggable .list-group-item{height:100%;width:100%}#app div.dragDrop .draggable button.dragItems-button{width:100%;height:100%;background:transparent;border:none}#app div.dragDrop .draggable button.dragItems-button:focus,#app div.dragDrop .draggable button.dragItems-button:hover,#app div.dragDrop .draggable button.dragItems-button:active{outline:3px #3733a6 dashed!important}#app div.dragDrop{position:relative;margin-bottom:12px}#app div.dragDrop .dragItems{margin-right:5px;height:80px}#app div.dragDrop .dragItems .dragItem{background:transparent;border:none;float:left;height:100%;margin-right:20px}#app div.dragDrop .dragItems .dragItem button{height:100%}#app div.dragDrop .dragItems .dragItem button:focus,#app div.dragDrop .dragItems .dragItem button:hover,#app div.dragDrop .dragItems .dragItem button:active{outline:2px #3733a6 dashed!important}#app div.dragDrop .dragItems .dragItem button img{max-height:100%}#app div.dragDrop .dropBins{height:80px;width:80px;float:left}#app div.dragDrop .dropBins .sortable_ghost{position:absolute}#app div.dragDrop .dropBins .sortable-chosen,#app div.dragDrop .dropBins .sortable-chosen button{height:100%}#app div.dragDrop .dropBins .sortable-chosen button img{max-height:100%}#app div.dragDrop .dropBins .dropBin,#app div.dragDrop .dropBins .dropBin button{height:100%}#app div.dragDrop .dropBins .dropBin button img{max-height:100%}#app div.dragDrop #target{border:1px solid black;width:95vw;height:100px;padding:5px}#app div.dragDrop .hiddenDiv{position:fixed;margin-top:-99999px}#app div.dragDrop .draggingItems{display:none}iframe[data-v-f5bc6f4c]{border:none}
1
+ .image-uploader{display:flex;flex-direction:column;align-items:center;border:1px solid gray;width:53%;background-color:#cecece;margin:0 auto;height:300px;box-shadow:#0000001a 0 4px 12px}.your-file{display:flex;justify-content:center;align-items:center;margin-top:20px}img{width:80%}header{display:flex;justify-content:center;align-items:center;height:40px;margin-top:10px;margin-bottom:10px}#app .image-container[data-v-45f6f0d2]{position:relative;display:block;margin-bottom:10px;height:100%}#app .image-container .image[data-v-45f6f0d2]{height:100%}#app .image-container .image img[data-v-45f6f0d2]{max-height:100%;max-width:100%}#app .image-container.copyright[data-v-45f6f0d2],#app .image-container.captions[data-v-45f6f0d2]{margin-bottom:20px}#app .image-container.copyright[data-v-45f6f0d2],#app .image-container.captions[data-v-45f6f0d2]{margin-bottom:40px}#app .image-container .captionHeader[data-v-45f6f0d2]{font-size:20px;text-align:center;display:block;margin-bottom:10px}#app .image-container .caption[data-v-45f6f0d2]{font-size:13px;font-style:italic;text-align:center;display:block;margin-bottom:10px}#app .image-container .copyright[data-v-45f6f0d2]{font-size:10px;line-height:10px;margin-top:10px;text-align:center;display:block;margin-bottom:10px}.kContainer{position:relative;height:90%}.kContainer iframe{margin:0}.kContainer .mainVersion{margin:auto;position:relative;display:block}.kContainer .mainVersion .kAudiobtn{width:30px;height:30px;position:relative;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kAudiobtn .kButton.audiobtn{position:absolute;height:30px;width:30px;background:url(//cdn.flvs.net/course_view/1_0/dist/images/kaltura_audio_button.png) 0 0 no-repeat;z-index:900;cursor:pointer}.kContainer .mainVersion .kAudio{width:260px;height:38px;position:relative;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kAudio .kButton.audio{position:absolute;height:40px;width:260px;background:url(//cdn.flvs.net/course_view/1_0/dist/images/kaltura_audio_standard.png) 0 0 no-repeat;z-index:900;cursor:pointer}.kContainer .mainVersion .audioIframe,.kContainer .mainVersion .audiobtnIframe{position:relative;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kPoster{position:absolute;transition:opacity .4s ease;left:50%;transform:translate(-50%)}.kContainer .mainVersion .kPoster .active{display:none;visibility:hidden}.kContainer .mainVersion .kPoster .kButton{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:url(//cdn.flvs.net/course_view/1_0/dist/images/player_big_play_button.png) 0 0 no-repeat;z-index:900;width:70px;height:53px;cursor:pointer}.kContainer .mainVersion .kPoster img{position:absolute;top:0;left:0;z-index:899;height:100%;width:100%;border:1px solid #000;max-height:100%;max-width:100%}.kContainer .mainVersion .kPoster .videoIframe{z-index:897}.kContainer .mainVersion .videoIframe{position:absolute;transition:opacity .4s ease;left:50%;transform:translate(-50%);z-index:897}.kContainer button.toggleSwitch,.kContainer button.toggleSwitchFT{margin-top:0;min-width:180px;position:relative;left:50%;transform:translate(-50%)}.kContainer .kCopyright{font-size:10px;text-align:right;width:200px;position:absolute;bottom:-30px;right:0;padding:8px}.kContainer .kCopyright.kCopyrightAudio{bottom:4px}.kContainer .largePlayBtn{display:none}.kContainer .textVersion{overflow-y:auto;height:calc(100% - 10px);margin-bottom:6px}.fade-enter-active,.fade-leave-active{transition:opacity .8s}.fade-enter,.fade-leave-to{opacity:0}#app div.imageMarker[data-v-edf5c305]{position:relative;height:100%;border-radius:6px}#app div.imageMarker img[data-v-edf5c305]{width:100%;max-width:100%;max-height:100%;border-radius:6px}#app div.imageMarker .hotspotArea[data-v-edf5c305]{width:100%;height:100%;position:absolute;top:0;left:0}#app div.imageMarker .hotspotArea .el-button.hotspot[data-v-edf5c305]{position:absolute;min-height:unset;padding:4px 4px 4px 7px;margin:unset}#app div.imageMarker .hotspotArea .el-button.hotspot.noBG[data-v-edf5c305]{background-color:transparent}#app div.imageMarker .hotspotArea .el-button.hotspot img.im-ButtonImage[data-v-edf5c305]{position:absolute;top:0;left:0}#app div.imageReplacer[data-v-d6c87f03]{position:relative;height:calc(100% - 40px)}#app div.imageReplacer .el-col[data-v-d6c87f03]{position:relative;height:100%}#app div.imageReplacer img[data-v-d6c87f03]{width:100%;max-width:100%}#app div.imageReplacer .hotspotArea[data-v-d6c87f03]{width:100%;height:100%;position:absolute;top:0;left:0}#app div.imageReplacer .hotspotArea .el-button.hotspot[data-v-d6c87f03]{position:absolute;min-height:unset;padding:4px 4px 4px 7px;margin:unset;background:transparent;border:none}#app div.imageReplacer .hotspotArea .el-button.hotspot img.im-ButtonImage[data-v-d6c87f03]{position:absolute;top:0;left:0}#app div.imageReplacer .hotspotArea .el-button.hotspot span.im-buttonText[data-v-d6c87f03]{position:absolute;left:17px;top:12px}.el-dialog{border-radius:6px}.el-dialog .el-dialog__header .el-dialog__title{color:#000;font-size:1.5rem}.el-dialog .el-dialog__header .el-dialog__headerbtn{top:8px;right:8px;border:1px solid #404040;border-radius:4px;background:#feec86;color:#000;font-weight:400;box-shadow:2px 2px 6px #0000004d;transition:background .5s,color .5s}.el-dialog .el-dialog__header .el-dialog__headerbtn:hover,.el-dialog .el-dialog__header .el-dialog__headerbtn:focus,.el-dialog .el-dialog__header .el-dialog__headerbtn:active{color:#404040;background:#fff;border-color:#2a2a2a}.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:#000;font-size:18px}.el-dialog .el-dialog__body{color:#212529;font-size:1rem;word-break:normal}#app div.drop-down{background:white;margin:0 0 40px;padding:10px}#app div.drop-down p span{display:inline-block}#app div.drop-down p span .el-input{display:inline-block;margin-right:-10px}#app div.fill-blank{background:white;margin:0 0 40px;padding:10px}#app div.fill-blank .el-input{display:inline-block;margin-right:-10px}#app div.selectable .selectArea[data-v-73d69257]{text-align:center}#app div.selectable .selectArea .selectableButton[data-v-73d69257]{text-align:left}#app div.selectable .selectArea .selectableButton .buttonSpan[data-v-73d69257]{display:flex;height:100%}#app div.selectable .selectArea .selectableButton .buttonSpan img.im-ButtonImage[data-v-73d69257]{max-height:98%;margin-right:8px}#app div.textbox{position:absolute;background:white;margin:0 0 40px;width:100%;padding:20px 10px}#app div.textbox .el-input{display:inline-block;margin-right:-10px}#app div.menu-chooser{background:white;margin:0 0 40px;padding:20px 10px}#app div.menu-chooser p span{display:inline-block}#app div.menu-chooser .jl-menu{width:100%;display:flex;flex-wrap:nowrap;border-right:none;list-style:none;position:relative;margin:0;padding-left:0;background-color:#555c66;box-sizing:border-box;height:60px;z-index:1002}#app div.menu-chooser .jl-menu button.jl-menu-sub,#app div.menu-chooser .jl-menu button.jl-menu-item{height:100%;background-color:#555c66;color:#fff;padding:0 12px;position:relative;white-space:nowrap;border:none}#app div.menu-chooser .jl-menu button.jl-menu-sub:focus,#app div.menu-chooser .jl-menu button.jl-menu-sub:hover,#app div.menu-chooser .jl-menu button.jl-menu-sub:active,#app div.menu-chooser .jl-menu button.jl-menu-item:focus,#app div.menu-chooser .jl-menu button.jl-menu-item:hover,#app div.menu-chooser .jl-menu button.jl-menu-item:active{background-color:#6b7077;color:#fff;outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:-4px}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu{display:none;width:100px;margin:0;padding:0;background-color:#555c66;border:1px solid white;color:#fff;box-sizing:border-box;position:absolute;top:64px}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu.jl-menu-sub_show{display:block}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item{background-color:#555c66;color:#fff;padding:6px;display:block;border:0;width:100%;text-align:left}#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-sub:active,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-menu button.jl-menu-sub-item:active{background-color:#6b7077;color:#fff;outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:-4px}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu{display:none;width:180px;background:#555c66;color:#fff;border:1px solid white;position:absolute;top:0;left:106px;margin:0;padding:0}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu.jl-menu-sub-sub_show{display:block}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item{background-color:#555c66;color:#fff;padding:6px;display:block;border:0;width:100%;text-align:left}#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-sub:active,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item:focus,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item:hover,#app div.menu-chooser .jl-menu div.jl-menu-sub-sub-menu button.jl-menu-sub-sub-item:active{background-color:#6b7077;color:#fff;outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:-4px}#app div.menu-chooser .nav-mask{top:0;left:0;z-index:1001;overflow:hidden;position:fixed;width:100%;height:100%;background-color:#0003;transition:opacity .3s ease}.vdr{position:absolute;box-sizing:border-box}.vdr.active:before{content:"";width:100%;height:100%;position:absolute;top:0;left:0;box-sizing:border-box;outline:1px dashed #d6d6d6}.vdr-stick{box-sizing:border-box;position:absolute;font-size:1px;background:#ffffff;border:1px solid #6c6c6c;box-shadow:0 0 2px #bbb}.inactive .vdr-stick{display:none}.vdr-stick-tl,.vdr-stick-br{cursor:nwse-resize}.vdr-stick-tm,.vdr-stick-bm{left:50%;cursor:ns-resize}.vdr-stick-tr,.vdr-stick-bl{cursor:nesw-resize}.vdr-stick-ml,.vdr-stick-mr{top:50%;cursor:ew-resize}.vdr-stick.not-resizable{display:none}.content-container{display:block;position:relative}#app div.fridgemagnet{position:relative;margin-bottom:12px;height:100%;width:100%}#app div.fridgemagnet .fridge{width:100%;height:100%;position:absolute;top:0;left:0}#app div.fridgemagnet .fridge.no_outline .vdr.active:before{content:none}#app div.fridgemagnet .fridge .vdr:focus{outline:2px #000 dashed!important;border:2px dashed white!important;outline-offset:2px}#app div.fridgemagnet .fridge .vdr .content-container{width:100%;max-width:100%;max-height:100%;border-radius:6px}#app div.fridgemagnet .fridge .vdr .content-container img{max-width:100%;max-height:100%}#app div.fridgemagnet .fridge .vdr .content-container p{margin:0}#app div.dragDrop .draggable{border:1px solid black;margin-right:5px}#app div.dragDrop .draggable .list-group-item{height:100%;width:100%}#app div.dragDrop .draggable button.dragItems-button{width:100%;height:100%;background:transparent;border:none}#app div.dragDrop .draggable button.dragItems-button:focus,#app div.dragDrop .draggable button.dragItems-button:hover,#app div.dragDrop .draggable button.dragItems-button:active{outline:3px #3733a6 dashed!important}#app div.dragDrop{position:relative;margin-bottom:12px}#app div.dragDrop .dragItems{margin-right:5px;height:80px}#app div.dragDrop .dragItems .dragItem{background:transparent;border:none;float:left;height:100%;margin-right:20px}#app div.dragDrop .dragItems .dragItem button{height:100%}#app div.dragDrop .dragItems .dragItem button:focus,#app div.dragDrop .dragItems .dragItem button:hover,#app div.dragDrop .dragItems .dragItem button:active{outline:2px #3733a6 dashed!important}#app div.dragDrop .dragItems .dragItem button img{max-height:100%}#app div.dragDrop .dropBins{height:80px;width:80px;float:left}#app div.dragDrop .dropBins .sortable_ghost{position:absolute}#app div.dragDrop .dropBins .sortable-chosen,#app div.dragDrop .dropBins .sortable-chosen button{height:100%}#app div.dragDrop .dropBins .sortable-chosen button img{max-height:100%}#app div.dragDrop .dropBins .dropBin,#app div.dragDrop .dropBins .dropBin button{height:100%}#app div.dragDrop .dropBins .dropBin button img{max-height:100%}#app div.dragDrop #target{border:1px solid black;width:95vw;height:100px;padding:5px}#app div.dragDrop .hiddenDiv{position:fixed;margin-top:-99999px}#app div.dragDrop .draggingItems{display:none}iframe[data-v-f5bc6f4c]{border:none}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labmaker-plugin",
3
- "version": "0.0.277",
3
+ "version": "0.0.279",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"