labmaker-plugin 0.0.278 → 0.0.280

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,
@@ -1909,15 +1919,16 @@ const Ll = {
1909
1919
  return this.stepperStore.pixelFormat(A);
1910
1920
  },
1911
1921
  checkMove(A) {
1922
+ var c;
1912
1923
  if (this.content.sound) {
1913
- let c = document.getElementById("myAudio");
1924
+ let e = document.getElementById("myAudio");
1914
1925
  setTimeout(() => {
1915
- c.play();
1926
+ e.play();
1916
1927
  }, 1e3);
1917
1928
  }
1918
- if (A.draggedContext.element.relSwap && setTimeout(() => {
1919
- let c = A.draggedContext.element.id, e = document.getElementById(c);
1920
- e.src = A.draggedContext.element.relSwap;
1929
+ if (A !== "clicked" && ((c = A.draggedContext.element) != null && c.relSwap) && setTimeout(() => {
1930
+ let e = A.draggedContext.element.id, a = document.getElementById(e);
1931
+ a.src = A.draggedContext.element.relSwap;
1921
1932
  }, 1500), this.stepperStore.stepHold = !1, this.stepperStore.finishSteps(), this.stepperStore.lastPageFocus(), A !== "clicked")
1922
1933
  return !A.from.classList.contains("preventMove");
1923
1934
  },
@@ -1925,9 +1936,11 @@ const Ll = {
1925
1936
  this.listOne = [], this.createItems();
1926
1937
  },
1927
1938
  keyboardDrag(A, c) {
1928
- if (A.class.indexOf("preventMove") < 0)
1939
+ if (A.class.indexOf("preventMove") > -1)
1929
1940
  return !1;
1930
- A.class += " preventMove", this.listOne[c].splice(A), this.listOne[c + 1].push(A), this.checkMove("clicked");
1941
+ A.class += " preventMove", this.listOne[c].splice(A), this.listOne[c + 1].push(A), A.relSwap && setTimeout(() => {
1942
+ console.log(this.listOne[c + 1][0]), this.listOne[c + 1][0].image = this.listOne[c + 1][0].relSwap;
1943
+ }, 1500), this.checkMove("clicked");
1931
1944
  }
1932
1945
  },
1933
1946
  mounted() {
@@ -1945,7 +1958,7 @@ const Ll = {
1945
1958
  }, Ul = ["src"], bl = { class: "list-group-item" }, xl = ["onClick"], yl = ["id", "src", "alt", "data-swap"];
1946
1959
  function Sl(A, c, e, a, r, t) {
1947
1960
  const s = y("lab-image"), i = y("el-col"), n = y("draggable"), o = y("el-row");
1948
- return B(), K(o, {
1961
+ return B(), T(o, {
1949
1962
  class: O(["dragDrop", e.content.handle])
1950
1963
  }, {
1951
1964
  default: k(() => [
@@ -1954,7 +1967,7 @@ function Sl(A, c, e, a, r, t) {
1954
1967
  U("div", {
1955
1968
  innerHTML: e.content.directions
1956
1969
  }, null, 8, Ql),
1957
- e.content.image ? (B(), K(s, {
1970
+ e.content.image ? (B(), T(s, {
1958
1971
  key: 0,
1959
1972
  content: e.content.image
1960
1973
  }, null, 8, ["content"])) : S("", !0),
@@ -1968,7 +1981,7 @@ function Sl(A, c, e, a, r, t) {
1968
1981
  ]),
1969
1982
  _: 1
1970
1983
  }),
1971
- (B(!0), V(D, null, f2(r.listOne, (l, f) => (B(), K(i, { span: t.binColumns }, {
1984
+ (B(!0), V(K, null, f2(r.listOne, (l, f) => (B(), T(i, { span: t.binColumns }, {
1972
1985
  default: k(() => [
1973
1986
  X(n, {
1974
1987
  class: O(["draggable list-group", e.content.bins[f].class]),
@@ -2153,7 +2166,7 @@ const El = {
2153
2166
  }, Kl = { class: "dragItems-button" }, Rl = ["id", "src", "alt"], _l = { class: "dialog-footer" };
2154
2167
  function Ol(A, c, e, a, r, t) {
2155
2168
  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, [
2169
+ return B(), V(K, null, [
2157
2170
  X(o, {
2158
2171
  class: O(["dragDrop", e.content.handle]),
2159
2172
  id: "dragItemDiv"
@@ -2164,7 +2177,7 @@ function Ol(A, c, e, a, r, t) {
2164
2177
  U("div", {
2165
2178
  innerHTML: e.content.directions
2166
2179
  }, null, 8, kl),
2167
- e.content.image ? (B(), K(s, {
2180
+ e.content.image ? (B(), T(s, {
2168
2181
  key: 0,
2169
2182
  content: e.content.image
2170
2183
  }, null, 8, ["content"])) : S("", !0)
@@ -2205,7 +2218,7 @@ function Ol(A, c, e, a, r, t) {
2205
2218
  ]),
2206
2219
  _: 1
2207
2220
  }),
2208
- (B(!0), V(D, null, f2(r.listOne, (u, m) => (B(), K(i, { span: t.binColumns }, {
2221
+ (B(!0), V(K, null, f2(r.listOne, (u, m) => (B(), T(i, { span: t.binColumns }, {
2209
2222
  default: k(() => [
2210
2223
  U("h4", null, Z(e.content.bins[m].header), 1),
2211
2224
  X(n, {
@@ -2239,7 +2252,7 @@ function Ol(A, c, e, a, r, t) {
2239
2252
  ]),
2240
2253
  _: 1
2241
2254
  }, 8, ["class"]),
2242
- t.showFeedback() ? (B(), K(l, {
2255
+ t.showFeedback() ? (B(), T(l, {
2243
2256
  key: 0,
2244
2257
  content: r.feedbackObject
2245
2258
  }, null, 8, ["content"])) : S("", !0),
@@ -2265,9 +2278,9 @@ function Ol(A, c, e, a, r, t) {
2265
2278
  ])
2266
2279
  ]),
2267
2280
  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, {
2281
+ (B(!0), V(K, null, f2(r.listOne, (u, m) => (B(), V(K, null, [
2282
+ (B(!0), V(K, null, f2(u, (C, d) => (B(), V(K, null, [
2283
+ m === 0 ? (B(), T(f, {
2271
2284
  key: 0,
2272
2285
  id: "firstBin",
2273
2286
  size: "small",
@@ -2278,7 +2291,7 @@ function Ol(A, c, e, a, r, t) {
2278
2291
  o2(Z(e.content.bins[m].header), 1)
2279
2292
  ]),
2280
2293
  _: 2
2281
- }, 1032, ["onClick"])) : (B(), K(f, {
2294
+ }, 1032, ["onClick"])) : (B(), T(f, {
2282
2295
  key: 1,
2283
2296
  size: "small",
2284
2297
  type: "primary",
@@ -6213,8 +6226,8 @@ var wH = function(A, c) {
6213
6226
  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
6227
  var H = Math.max.apply(Math, d);
6215
6228
  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));
6229
+ 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);
6230
+ 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
6231
  }
6219
6232
  return A;
6220
6233
  }()
@@ -6913,7 +6926,7 @@ var W = function(A, c, e, a, r) {
6913
6926
  switch (o.label) {
6914
6927
  case 0:
6915
6928
  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;
6929
+ 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
6930
  return i2(this, function(g1) {
6918
6931
  switch (g1.label) {
6919
6932
  case 0:
@@ -6931,17 +6944,17 @@ var W = function(A, c, e, a, r) {
6931
6944
  f.width,
6932
6945
  f.height,
6933
6946
  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];
6947
+ ]), 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
6948
  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) {
6949
+ 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
6950
  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, [
6951
+ }), 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
6952
  null,
6940
6953
  null,
6941
6954
  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) {
6955
+ ]), 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
6956
  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;
6957
+ }), 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
6958
  case 6:
6946
6959
  return a--, [
6947
6960
  2
@@ -7179,7 +7192,7 @@ var W = function(A, c, e, a, r) {
7179
7192
  typeof window < "u" && j5.setContext(window);
7180
7193
  var pv = function(A, c) {
7181
7194
  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;
7195
+ 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
7196
  return i2(this, function(k2) {
7184
7197
  switch (k2.label) {
7185
7198
  case 0:
@@ -7196,7 +7209,7 @@ var pv = function(A, c) {
7196
7209
  useCORS: (q = c.useCORS) !== null && q !== void 0 ? q : !1
7197
7210
  }, t = L6({ logging: (h2 = c.logging) !== null && h2 !== void 0 ? h2 : !0, cache: c.cache }, r), s = {
7198
7211
  windowWidth: (C2 = c.windowWidth) !== null && C2 !== void 0 ? C2 : a.innerWidth,
7199
- windowHeight: (T = c.windowHeight) !== null && T !== void 0 ? T : a.innerHeight,
7212
+ windowHeight: (D = c.windowHeight) !== null && D !== void 0 ? D : a.innerHeight,
7200
7213
  scrollX: (a2 = c.scrollX) !== null && a2 !== void 0 ? a2 : a.pageXOffset,
7201
7214
  scrollY: (W2 = c.scrollY) !== null && W2 !== void 0 ? W2 : a.pageYOffset
7202
7215
  }, 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 = {