ep-lib-ts 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BgAudio-kLycvFEF.js +4 -0
- package/dist/Details-Op3Zkhcg.js +4 -0
- package/dist/DisplayBox-DGsKoxmr.js +4 -0
- package/dist/{Ep360Image-CQJBPImD.js → Ep360Image-DHK_IWTi.js} +1 -1
- package/dist/{Ep360Video-CL_7mOiQ.js → Ep360Video-C4PekHTc.js} +1 -1
- package/dist/EpAlert-aWrJokXa.js +4 -0
- package/dist/EpAudio-DGFoC0Go.js +4 -0
- package/dist/EpAvatar-1yU-OXsu.js +4 -0
- package/dist/EpBadge-BlIhFCIg.js +4 -0
- package/dist/EpBarChart-KgYdXvMq.js +4 -0
- package/dist/EpBtn-S1mCeeV7.js +4 -0
- package/dist/EpCard-COy2GODb.js +4 -0
- package/dist/EpCardLink-SBppyTrI.js +4 -0
- package/dist/EpChip-CNRaxrjP.js +4 -0
- package/dist/EpCodeblock-NyXHH5gD.js +4 -0
- package/dist/EpConclusion-CUWiK_nt.js +4 -0
- package/dist/EpContentSlider-mpqkd2T2.js +4 -0
- package/dist/{EpDarkmode-DyUrMSO5.js → EpDarkmode-C5NMN4h2.js} +1 -1
- package/dist/EpDescription-Dewh9Bmr.js +4 -0
- package/dist/EpDivider-C_cgaXNK.js +4 -0
- package/dist/EpDocument-CmN-KUVt.js +4 -0
- package/dist/{EpDraggable-CTWqRQzE.js → EpDraggable-BwpIpRyf.js} +74 -74
- package/dist/EpEdu-BRXEfH5H.js +4 -0
- package/dist/EpFlex-UUXOmWtZ.js +4 -0
- package/dist/EpFunnelChart-DgkcR1ON.js +4 -0
- package/dist/EpHeader-DeiRUZRl.js +4 -0
- package/dist/EpHover-BKK7j48J.js +4 -0
- package/dist/EpHoverCard-6ZKNpNBq.js +4 -0
- package/dist/EpIcon-C3jjducH.js +4 -0
- package/dist/EpIframe-CoaO5gb_.js +4 -0
- package/dist/EpImg-iypQu6WK.js +4 -0
- package/dist/EpImgCarousel-vagns6kd.js +4 -0
- package/dist/{EpInput-CGnN-piP.js → EpInput-uDeg10dD.js} +30 -30
- package/dist/EpInstructions-C2JYulUa.js +4 -0
- package/dist/EpIntroduction-BJXDxfYV.js +4 -0
- package/dist/EpLineChart-BVlswUIa.js +4 -0
- package/dist/EpLink-DPR3gH7f.js +4 -0
- package/dist/EpLinkVersion-DqQvfQQT.js +4 -0
- package/dist/{EpList-C8uaLum6.js → EpList-BI7oPTHl.js} +1 -1
- package/dist/EpModal-DN-QQzrQ.js +4 -0
- package/dist/{EpNothing-DxfGfasN.js → EpNothing-z596jG9D.js} +1 -1
- package/dist/EpObjective-sNcUzMGj.js +4 -0
- package/dist/EpPieChart-CCgGmemH.js +4 -0
- package/dist/EpQuestion-DJ-1vSS6.js +4 -0
- package/dist/EpQuote-BWRF6A-L.js +4 -0
- package/dist/EpRadio-BLbK_ijo.js +4 -0
- package/dist/EpRadioSummative-BtiAeyHR.js +4 -0
- package/dist/EpReading-C78Icl4m.js +4 -0
- package/dist/EpResource-C_JQvg2g.js +4 -0
- package/dist/EpScope-D1e7l9RQ.js +4 -0
- package/dist/EpSection-C9VobPvp.js +4 -0
- package/dist/EpSectionCols-D9DqSfNG.js +4 -0
- package/dist/EpSkeleton-Cc3nfQlv.js +4 -0
- package/dist/EpSoftware-Bga9b4WM.js +4 -0
- package/dist/EpSpecificObjective-C9MHA7ez.js +4 -0
- package/dist/EpSpinner-BOpURQEs.js +4 -0
- package/dist/EpStackedList-BdIF2Obj.js +4 -0
- package/dist/EpSummativeTable-BTLrKIHA.js +4 -0
- package/dist/EpSvg-CJfC1DMY.js +4 -0
- package/dist/EpSvgShow-SnjMv4b2.js +4 -0
- package/dist/EpTable--hx3As1M.js +4 -0
- package/dist/EpTerm-l4uolPHU.js +4 -0
- package/dist/EpText-Dvi-oAJe.js +4 -0
- package/dist/EpTimeLine-BeRMD8rW.js +4 -0
- package/dist/EpVideo-D4DR93ep.js +4 -0
- package/dist/EpVideoPanopto-CVjjy9Nn.js +4 -0
- package/dist/EpWordDef-DRBqhyxR.js +4 -0
- package/dist/TextMedia-LKMaVja3.js +4 -0
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +43 -5
- package/dist/components/educationals/EpDocument.vue.d.ts +44 -0
- package/dist/components/interactions/EpSvgShow.vue.d.ts +0 -1
- package/dist/components/medias/EpHierarchy.vue.d.ts +51 -0
- package/dist/components/medias/EpSoftware.vue.d.ts +0 -1
- package/dist/components/tools/Details.vue.d.ts +36 -0
- package/dist/components/tools/TextMedia.vue.d.ts +25 -0
- package/dist/ep-lib-ts.js +44 -40
- package/dist/ep-lib-ts.umd.cjs +212 -212
- package/dist/{index-IdtPmXeP.js → index-CO05CQPt.js} +461 -514
- package/dist/{index-D5QYJLNE.js → index-DH1gIdAA.js} +1 -1
- package/dist/{index-FmXc2ivj.js → index-DeiLPw0s.js} +10876 -7941
- package/dist/index.d.ts +5 -1
- package/dist/{prism-D-x8E1YK.js → prism-BvbRGWPO.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{three.module-CWLs6nMo.js → three.module-B-oqC8Xk.js} +1 -1
- package/dist/types/Component.d.ts +7 -0
- package/dist/types/Hierarchy.d.ts +14 -0
- package/package.json +11 -1
- package/src/components/basics/EpBtn.vue +1 -1
- package/src/components/educationals/EpBranchingScenario.vue +202 -124
- package/src/components/educationals/EpDocument.vue +92 -0
- package/src/components/interactions/EpContentSlider.vue +1 -1
- package/src/components/interactions/EpDraggable.vue +4 -4
- package/src/components/interactions/EpSvgShow.vue +66 -66
- package/src/components/medias/EpHierarchy.vue +345 -0
- package/src/components/medias/EpSoftware.vue +1 -2
- package/src/components/tools/Details.vue +46 -0
- package/src/components/tools/TextMedia.vue +34 -0
- package/dist/BgAudio-ryf2FIxF.js +0 -4
- package/dist/DisplayBox-ky90shjr.js +0 -4
- package/dist/EpAlert-BUiXiWRL.js +0 -4
- package/dist/EpAudio-CkZrkt3Z.js +0 -4
- package/dist/EpAvatar-2ZL5g8-2.js +0 -4
- package/dist/EpBadge-vOdZrc0e.js +0 -4
- package/dist/EpBarChart-CUUaOMsS.js +0 -4
- package/dist/EpBranchingScenario-DT2VQz7o.js +0 -160
- package/dist/EpBtn-DD0ykcYq.js +0 -4
- package/dist/EpCard-Qgkskboo.js +0 -4
- package/dist/EpCardLink-BfTUOLcA.js +0 -4
- package/dist/EpChip-P7j6l0PH.js +0 -4
- package/dist/EpCodeblock-DpzMd_h0.js +0 -4
- package/dist/EpConclusion-BRBOGFVk.js +0 -4
- package/dist/EpContentSlider-KFhPqR1h.js +0 -4
- package/dist/EpDescription-CcdsFWCf.js +0 -4
- package/dist/EpDivider-C30UAjvv.js +0 -4
- package/dist/EpEdu-CApC3SiS.js +0 -4
- package/dist/EpFlex-Dgc5dinh.js +0 -4
- package/dist/EpFunnelChart-Xm34GDMu.js +0 -4
- package/dist/EpHeader-DSKKm621.js +0 -4
- package/dist/EpHover-KHdqQJ6y.js +0 -4
- package/dist/EpHoverCard-Ccl2Un2s.js +0 -4
- package/dist/EpIcon-Eezd-EUx.js +0 -4
- package/dist/EpIframe-CmEsIYyW.js +0 -4
- package/dist/EpImg-BV_rS7v3.js +0 -4
- package/dist/EpImgCarousel-BHade9dP.js +0 -4
- package/dist/EpInstructions-A6ajkYEJ.js +0 -4
- package/dist/EpIntroduction-BY39wrQW.js +0 -4
- package/dist/EpLineChart-DQNIlO9r.js +0 -4
- package/dist/EpLink-BdxmUlWG.js +0 -4
- package/dist/EpLinkVersion-BAsA6tzp.js +0 -4
- package/dist/EpModal-DIEKXVnQ.js +0 -4
- package/dist/EpObjective-DwnP_7Zm.js +0 -4
- package/dist/EpPieChart-DmcML2d-.js +0 -4
- package/dist/EpQuestion-D7-nzMHE.js +0 -4
- package/dist/EpQuote-Cb5Ty6Ec.js +0 -4
- package/dist/EpRadio-9V6iAh4n.js +0 -4
- package/dist/EpRadioSummative-BL2YhCK3.js +0 -4
- package/dist/EpReading-DTWjzj6l.js +0 -4
- package/dist/EpResource-ZMfXpSqf.js +0 -4
- package/dist/EpScope-1aCF0beo.js +0 -4
- package/dist/EpSection-C-GaZN4R.js +0 -4
- package/dist/EpSectionCols-ap4Z5x7P.js +0 -4
- package/dist/EpSkeleton-DQUHmKio.js +0 -4
- package/dist/EpSoftware-DdF8BdqQ.js +0 -4
- package/dist/EpSpecificObjective-44uQGH3u.js +0 -4
- package/dist/EpSpinner-DHU8EZRf.js +0 -4
- package/dist/EpStackedList-BBGlTBx6.js +0 -4
- package/dist/EpSummativeTable-Cz4gcxHT.js +0 -4
- package/dist/EpSvg-Dk_q0cGB.js +0 -4
- package/dist/EpSvgShow-Cb_Y5UGq.js +0 -54
- package/dist/EpTable-Cg3-lRZY.js +0 -4
- package/dist/EpTerm-CRkB0QyE.js +0 -4
- package/dist/EpText-Dj93fveo.js +0 -4
- package/dist/EpTimeLine-Cit4tc3F.js +0 -4
- package/dist/EpVideo-1obD7bUC.js +0 -4
- package/dist/EpVideoPanopto-DzkzWyOF.js +0 -4
- package/dist/EpWordDef-DIjwoqzN.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Rt, resolveComponent as Jt, h as bt, ref as ae, onMounted as en, onUnmounted as tn, computed as wt, createElementBlock as
|
|
2
|
-
import { l as St,
|
|
1
|
+
import { defineComponent as Rt, resolveComponent as Jt, h as bt, ref as ae, onMounted as en, onUnmounted as tn, computed as wt, createElementBlock as z, openBlock as H, createElementVNode as le, createVNode as qe, unref as Me, withCtx as yt, Fragment as _t, renderList as Et, toDisplayString as Dt, createBlock as nn, normalizeStyle as on, createCommentVNode as Ke } from "vue";
|
|
2
|
+
import { l as St, O as rn, P as an } from "./index-DeiLPw0s.js";
|
|
3
3
|
/*!
|
|
4
4
|
* vue-draggable-next v2.2.0
|
|
5
5
|
* (c) 2023 Anish George
|
|
@@ -48,15 +48,15 @@ function ln(t, e, n) {
|
|
|
48
48
|
writable: !0
|
|
49
49
|
}) : t[e] = n, t;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function Z() {
|
|
52
|
+
return Z = Object.assign || function(t) {
|
|
53
53
|
for (var e = 1; e < arguments.length; e++) {
|
|
54
54
|
var n = arguments[e];
|
|
55
55
|
for (var o in n)
|
|
56
56
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
57
57
|
}
|
|
58
58
|
return t;
|
|
59
|
-
},
|
|
59
|
+
}, Z.apply(this, arguments);
|
|
60
60
|
}
|
|
61
61
|
function sn(t, e) {
|
|
62
62
|
if (t == null) return {};
|
|
@@ -80,15 +80,15 @@ function K(t) {
|
|
|
80
80
|
if (typeof window < "u" && window.navigator)
|
|
81
81
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
82
82
|
}
|
|
83
|
-
var
|
|
83
|
+
var Q = K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pe = K(/Edge/i), Tt = K(/firefox/i), xe = K(/safari/i) && !K(/chrome/i) && !K(/android/i), Xt = K(/iP(ad|od|hone)/i), dn = K(/chrome/i) && K(/android/i), Yt = {
|
|
84
84
|
capture: !1,
|
|
85
85
|
passive: !1
|
|
86
86
|
};
|
|
87
87
|
function y(t, e, n) {
|
|
88
|
-
t.addEventListener(e, n, !
|
|
88
|
+
t.addEventListener(e, n, !Q && Yt);
|
|
89
89
|
}
|
|
90
90
|
function b(t, e, n) {
|
|
91
|
-
t.removeEventListener(e, n, !
|
|
91
|
+
t.removeEventListener(e, n, !Q && Yt);
|
|
92
92
|
}
|
|
93
93
|
function He(t, e) {
|
|
94
94
|
if (e) {
|
|
@@ -109,7 +109,7 @@ function He(t, e) {
|
|
|
109
109
|
function fn(t) {
|
|
110
110
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function W(t, e, n, o) {
|
|
113
113
|
if (t) {
|
|
114
114
|
n = n || document;
|
|
115
115
|
do {
|
|
@@ -167,7 +167,7 @@ function G() {
|
|
|
167
167
|
function P(t, e, n, o, i) {
|
|
168
168
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
169
169
|
var r, a, l, s, u, f, d;
|
|
170
|
-
if (t !== window && t.parentNode && t !== G() ? (r = t.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, d = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, d = window.innerWidth), (e || n) && t !== window && (i = i || t.parentNode, !
|
|
170
|
+
if (t !== window && t.parentNode && t !== G() ? (r = t.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, d = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, d = window.innerWidth), (e || n) && t !== window && (i = i || t.parentNode, !Q))
|
|
171
171
|
do
|
|
172
172
|
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || n && h(i, "position") !== "static")) {
|
|
173
173
|
var v = i.getBoundingClientRect();
|
|
@@ -200,7 +200,7 @@ function It(t, e, n) {
|
|
|
200
200
|
}
|
|
201
201
|
function me(t, e, n, o) {
|
|
202
202
|
for (var i = 0, r = 0, a = t.children; r < a.length; ) {
|
|
203
|
-
if (a[r].style.display !== "none" && a[r] !== p.ghost && (o || a[r] !== p.dragged) &&
|
|
203
|
+
if (a[r].style.display !== "none" && a[r] !== p.ghost && (o || a[r] !== p.dragged) && W(a[r], n.draggable, t, !1)) {
|
|
204
204
|
if (i === e)
|
|
205
205
|
return a[r];
|
|
206
206
|
i++;
|
|
@@ -260,7 +260,7 @@ function pn(t, e) {
|
|
|
260
260
|
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
261
261
|
return t;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Ze(t, e) {
|
|
264
264
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
265
265
|
}
|
|
266
266
|
var Te;
|
|
@@ -324,8 +324,8 @@ function mn() {
|
|
|
324
324
|
var r = !1, a = 0;
|
|
325
325
|
t.forEach(function(l) {
|
|
326
326
|
var s = 0, u = l.target, f = u.fromRect, d = P(u), v = u.prevFromRect, _ = u.prevToRect, m = l.rect, w = ge(u, !0);
|
|
327
|
-
w && (d.top -= w.f, d.left -= w.e), u.toRect = d, u.thisAnimationDuration &&
|
|
328
|
-
(m.top - d.top) / (m.left - d.left) === (f.top - d.top) / (f.left - d.left) && (s = bn(m, v, _, i.options)),
|
|
327
|
+
w && (d.top -= w.f, d.left -= w.e), u.toRect = d, u.thisAnimationDuration && Ze(v, d) && !Ze(f, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
328
|
+
(m.top - d.top) / (m.left - d.left) === (f.top - d.top) / (f.left - d.left) && (s = bn(m, v, _, i.options)), Ze(d, f) || (u.prevFromRect = f, u.prevToRect = d, s || (s = i.options.animation), i.animate(u, m, d, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
329
329
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
330
330
|
}, s), u.thisAnimationDuration = s);
|
|
331
331
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
@@ -349,12 +349,12 @@ function vn(t) {
|
|
|
349
349
|
function bn(t, e, n, o) {
|
|
350
350
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
|
|
351
351
|
}
|
|
352
|
-
var de = [],
|
|
352
|
+
var de = [], Qe = {
|
|
353
353
|
initializeByDefault: !0
|
|
354
354
|
}, Ae = {
|
|
355
355
|
mount: function(e) {
|
|
356
|
-
for (var n in
|
|
357
|
-
|
|
356
|
+
for (var n in Qe)
|
|
357
|
+
Qe.hasOwnProperty(n) && !(n in e) && (e[n] = Qe[n]);
|
|
358
358
|
de.forEach(function(o) {
|
|
359
359
|
if (o.pluginName === e.pluginName)
|
|
360
360
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
@@ -379,7 +379,7 @@ var de = [], Ze = {
|
|
|
379
379
|
var s = l.pluginName;
|
|
380
380
|
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
381
381
|
var u = new l(e, n, e.options);
|
|
382
|
-
u.sortable = e, u.options = e.options, e[s] = u,
|
|
382
|
+
u.sortable = e, u.options = e.options, e[s] = u, Z(o, u.defaults);
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
for (var r in e.options)
|
|
@@ -391,7 +391,7 @@ var de = [], Ze = {
|
|
|
391
391
|
getEventProperties: function(e, n) {
|
|
392
392
|
var o = {};
|
|
393
393
|
return de.forEach(function(i) {
|
|
394
|
-
typeof i.eventProperties == "function" &&
|
|
394
|
+
typeof i.eventProperties == "function" && Z(o, i.eventProperties.call(n[i.pluginName], e));
|
|
395
395
|
}), o;
|
|
396
396
|
},
|
|
397
397
|
modifyOption: function(e, n, o) {
|
|
@@ -405,7 +405,7 @@ function wn(t) {
|
|
|
405
405
|
var e = t.sortable, n = t.rootEl, o = t.name, i = t.targetEl, r = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, d = t.newDraggableIndex, v = t.originalEvent, _ = t.putSortable, m = t.extraEventProperties;
|
|
406
406
|
if (e = e || n && n[V], !!e) {
|
|
407
407
|
var w, L = e.options, E = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
408
|
-
window.CustomEvent && !
|
|
408
|
+
window.CustomEvent && !Q && !Pe ? w = new CustomEvent(o, {
|
|
409
409
|
bubbles: !0,
|
|
410
410
|
cancelable: !0
|
|
411
411
|
}) : (w = document.createEvent("Event"), w.initEvent(o, !0, !0)), w.to = a || n, w.from = l || n, w.item = i || n, w.clone = r, w.oldIndex = s, w.newIndex = u, w.oldDraggableIndex = f, w.newDraggableIndex = d, w.originalEvent = v, w.pullMode = _ ? _.lastPutMode : void 0;
|
|
@@ -463,14 +463,14 @@ function F(t) {
|
|
|
463
463
|
newDraggableIndex: te
|
|
464
464
|
}, t));
|
|
465
465
|
}
|
|
466
|
-
var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, A, he = !1, $e = !1,
|
|
466
|
+
var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, A, he = !1, $e = !1, ze = [], se, $, Je, et, Pt, At, Ee, fe, Ie, Oe = !1, ke = !1, Be, M, tt = [], st = !1, We = [], Ue = typeof document < "u", Le = Xt, Nt = Pe || Q ? "cssFloat" : "float", _n = Ue && !dn && !Xt && "draggable" in document.createElement("div"), $t = function() {
|
|
467
467
|
if (Ue) {
|
|
468
|
-
if (
|
|
468
|
+
if (Q)
|
|
469
469
|
return !1;
|
|
470
470
|
var t = document.createElement("x");
|
|
471
471
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
472
472
|
}
|
|
473
|
-
}(),
|
|
473
|
+
}(), zt = function(e, n) {
|
|
474
474
|
var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = me(e, 0, n), a = me(e, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + P(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + P(a).width;
|
|
475
475
|
if (o.display === "flex")
|
|
476
476
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -486,7 +486,7 @@ var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, A, he = !1, $e = !1, We = [],
|
|
|
486
486
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
487
487
|
}, Dn = function(e, n) {
|
|
488
488
|
var o;
|
|
489
|
-
return
|
|
489
|
+
return ze.some(function(i) {
|
|
490
490
|
var r = i[V].options.emptyInsertThreshold;
|
|
491
491
|
if (!(!r || pt(i))) {
|
|
492
492
|
var a = P(i), l = e >= a.left - r && e <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
|
|
@@ -494,7 +494,7 @@ var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, A, he = !1, $e = !1, We = [],
|
|
|
494
494
|
return o = i;
|
|
495
495
|
}
|
|
496
496
|
}), o;
|
|
497
|
-
},
|
|
497
|
+
}, Wt = function(e) {
|
|
498
498
|
function n(r, a) {
|
|
499
499
|
return function(l, s, u, f) {
|
|
500
500
|
var d = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
@@ -540,7 +540,7 @@ var ue = function(e) {
|
|
|
540
540
|
function p(t, e) {
|
|
541
541
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
542
542
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
543
|
-
this.el = t, this.options = e =
|
|
543
|
+
this.el = t, this.options = e = Z({}, e), t[V] = this;
|
|
544
544
|
var n = {
|
|
545
545
|
group: null,
|
|
546
546
|
sort: !0,
|
|
@@ -556,7 +556,7 @@ function p(t, e) {
|
|
|
556
556
|
// will be set to same as swapThreshold if default
|
|
557
557
|
removeCloneOnHide: !0,
|
|
558
558
|
direction: function() {
|
|
559
|
-
return
|
|
559
|
+
return zt(t, this.options);
|
|
560
560
|
},
|
|
561
561
|
ghostClass: "sortable-ghost",
|
|
562
562
|
chosenClass: "sortable-chosen",
|
|
@@ -589,10 +589,10 @@ function p(t, e) {
|
|
|
589
589
|
Ae.initializePlugins(this, t, n);
|
|
590
590
|
for (var o in n)
|
|
591
591
|
!(o in e) && (e[o] = n[o]);
|
|
592
|
-
|
|
592
|
+
Wt(e);
|
|
593
593
|
for (var i in this)
|
|
594
594
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
595
|
-
this.nativeDraggable = e.forceFallback ? !1 : _n, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(t, "pointerdown", this._onTapStart) : (y(t, "mousedown", this._onTapStart), y(t, "touchstart", this._onTapStart)), this.nativeDraggable && (y(t, "dragover", this), y(t, "dragenter", this)),
|
|
595
|
+
this.nativeDraggable = e.forceFallback ? !1 : _n, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(t, "pointerdown", this._onTapStart) : (y(t, "mousedown", this._onTapStart), y(t, "touchstart", this._onTapStart)), this.nativeDraggable && (y(t, "dragover", this), y(t, "dragenter", this)), ze.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Z(this, mn());
|
|
596
596
|
}
|
|
597
597
|
p.prototype = /** @lends Sortable.prototype */
|
|
598
598
|
{
|
|
@@ -606,7 +606,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
606
606
|
_onTapStart: function(e) {
|
|
607
607
|
if (e.cancelable) {
|
|
608
608
|
var n = this, o = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, f = i.filter;
|
|
609
|
-
if (Nn(o), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && xe && s && s.tagName.toUpperCase() === "SELECT") && (s =
|
|
609
|
+
if (Nn(o), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && xe && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, i.draggable, o, !1), !(s && s.animated) && Ye !== s)) {
|
|
610
610
|
if (pe = j(s), Ce = j(s, i.draggable), typeof f == "function") {
|
|
611
611
|
if (f.call(this, e, s, this)) {
|
|
612
612
|
F({
|
|
@@ -622,7 +622,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
624
|
} else if (f && (f = f.split(",").some(function(d) {
|
|
625
|
-
if (d =
|
|
625
|
+
if (d = W(u, d.trim(), o, !1), d)
|
|
626
626
|
return F({
|
|
627
627
|
sortable: n,
|
|
628
628
|
rootEl: d,
|
|
@@ -637,7 +637,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
637
637
|
r && e.cancelable && e.preventDefault();
|
|
638
638
|
return;
|
|
639
639
|
}
|
|
640
|
-
i.handle && !
|
|
640
|
+
i.handle && !W(u, i.handle, o, !1) || this._prepareDragStart(e, l, s);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
},
|
|
@@ -665,7 +665,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
665
665
|
Bt(c, f.trim(), nt);
|
|
666
666
|
}), y(l, "dragover", ue), y(l, "mousemove", ue), y(l, "touchmove", ue), y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop), Tt && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), k("delayStart", this, {
|
|
667
667
|
evt: e
|
|
668
|
-
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Pe ||
|
|
668
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Pe || Q))) {
|
|
669
669
|
if (p.eventCanceled) {
|
|
670
670
|
this._onDrop();
|
|
671
671
|
return;
|
|
@@ -784,7 +784,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
784
784
|
_onDragOver: function(e) {
|
|
785
785
|
var n = this.el, o = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = Fe === s, d = l.sort, v = A || u, _, m = this, w = !1;
|
|
786
786
|
if (st) return;
|
|
787
|
-
function L(_e,
|
|
787
|
+
function L(_e, Zt) {
|
|
788
788
|
k(_e, m, U({
|
|
789
789
|
evt: e,
|
|
790
790
|
isOwner: f,
|
|
@@ -796,11 +796,11 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
796
796
|
fromSortable: v,
|
|
797
797
|
target: o,
|
|
798
798
|
completed: x,
|
|
799
|
-
onMove: function(vt,
|
|
800
|
-
return Re(S, n, c, i, vt, P(vt), e,
|
|
799
|
+
onMove: function(vt, Qt) {
|
|
800
|
+
return Re(S, n, c, i, vt, P(vt), e, Qt);
|
|
801
801
|
},
|
|
802
802
|
changed: T
|
|
803
|
-
},
|
|
803
|
+
}, Zt));
|
|
804
804
|
}
|
|
805
805
|
function E() {
|
|
806
806
|
L("dragOverAnimationCapture"), m.captureAnimationState(), m !== v && v.captureAnimationState();
|
|
@@ -822,7 +822,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
822
822
|
originalEvent: e
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o =
|
|
825
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), L("dragOver"), p.eventCanceled) return w;
|
|
826
826
|
if (c.contains(e.target) || o.animated && o.animatingX && o.animatingY || m._ignoreWhileAnimating === o)
|
|
827
827
|
return x(!1);
|
|
828
828
|
if ($e = !1, u && !l.disabled && (f ? d || (a = C !== S) : A === this || (this.lastPutMode = Fe.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
|
|
@@ -929,9 +929,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
929
929
|
}), this.save()))), this._nulling();
|
|
930
930
|
},
|
|
931
931
|
_nulling: function() {
|
|
932
|
-
k("nulling", this), S = c = C = g = ce = I = Ye = ne = se = $ = Ee = B = te = pe = Ce = fe = Ie = A = Fe = p.dragged = p.ghost = p.clone = p.active = null,
|
|
932
|
+
k("nulling", this), S = c = C = g = ce = I = Ye = ne = se = $ = Ee = B = te = pe = Ce = fe = Ie = A = Fe = p.dragged = p.ghost = p.clone = p.active = null, We.forEach(function(e) {
|
|
933
933
|
e.checked = !0;
|
|
934
|
-
}),
|
|
934
|
+
}), We.length = Je = et = 0;
|
|
935
935
|
},
|
|
936
936
|
handleEvent: function(e) {
|
|
937
937
|
switch (e.type) {
|
|
@@ -954,7 +954,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
954
954
|
*/
|
|
955
955
|
toArray: function() {
|
|
956
956
|
for (var e = [], n, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
|
|
957
|
-
n = o[i],
|
|
957
|
+
n = o[i], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || An(n));
|
|
958
958
|
return e;
|
|
959
959
|
},
|
|
960
960
|
/**
|
|
@@ -965,7 +965,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
965
965
|
var o = {}, i = this.el;
|
|
966
966
|
this.toArray().forEach(function(r, a) {
|
|
967
967
|
var l = i.children[a];
|
|
968
|
-
|
|
968
|
+
W(l, this.options.draggable, i, !1) && (o[r] = l);
|
|
969
969
|
}, this), n && this.captureAnimationState(), e.forEach(function(r) {
|
|
970
970
|
o[r] && (i.removeChild(o[r]), i.appendChild(o[r]));
|
|
971
971
|
}), n && this.animateAll();
|
|
@@ -984,7 +984,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
984
984
|
* @returns {HTMLElement|null}
|
|
985
985
|
*/
|
|
986
986
|
closest: function(e, n) {
|
|
987
|
-
return
|
|
987
|
+
return W(e, n || this.options.draggable, this.el, !1);
|
|
988
988
|
},
|
|
989
989
|
/**
|
|
990
990
|
* Set/get option
|
|
@@ -997,7 +997,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
997
997
|
if (n === void 0)
|
|
998
998
|
return o[e];
|
|
999
999
|
var i = Ae.modifyOption(this, e, n);
|
|
1000
|
-
typeof i < "u" ? o[e] = i : o[e] = n, e === "group" &&
|
|
1000
|
+
typeof i < "u" ? o[e] = i : o[e] = n, e === "group" && Wt(o);
|
|
1001
1001
|
},
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Destroy
|
|
@@ -1007,7 +1007,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1007
1007
|
var e = this.el;
|
|
1008
1008
|
e[V] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
|
1009
1009
|
n.removeAttribute("draggable");
|
|
1010
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1010
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ze.splice(ze.indexOf(this.el), 1), this.el = e = null;
|
|
1011
1011
|
},
|
|
1012
1012
|
_hideClone: function() {
|
|
1013
1013
|
if (!ne) {
|
|
@@ -1031,7 +1031,7 @@ function xn(t) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
function Re(t, e, n, o, i, r, a, l) {
|
|
1033
1033
|
var s, u = t[V], f = u.options.onMove, d;
|
|
1034
|
-
return window.CustomEvent && !
|
|
1034
|
+
return window.CustomEvent && !Q && !Pe ? s = new CustomEvent("move", {
|
|
1035
1035
|
bubbles: !0,
|
|
1036
1036
|
cancelable: !0
|
|
1037
1037
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = i || e, s.relatedRect = r || P(e), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), f && (d = f.call(u, s, a)), d;
|
|
@@ -1072,10 +1072,10 @@ function An(t) {
|
|
|
1072
1072
|
return o.toString(36);
|
|
1073
1073
|
}
|
|
1074
1074
|
function Nn(t) {
|
|
1075
|
-
|
|
1075
|
+
We.length = 0;
|
|
1076
1076
|
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1077
1077
|
var o = e[n];
|
|
1078
|
-
o.checked &&
|
|
1078
|
+
o.checked && We.push(o);
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
function Ve(t) {
|
|
@@ -1093,17 +1093,17 @@ p.utils = {
|
|
|
1093
1093
|
css: h,
|
|
1094
1094
|
find: Bt,
|
|
1095
1095
|
is: function(e, n) {
|
|
1096
|
-
return !!
|
|
1096
|
+
return !!W(e, n, e, !1);
|
|
1097
1097
|
},
|
|
1098
1098
|
extend: pn,
|
|
1099
1099
|
throttle: Vt,
|
|
1100
|
-
closest:
|
|
1100
|
+
closest: W,
|
|
1101
1101
|
toggleClass: Y,
|
|
1102
1102
|
clone: Ht,
|
|
1103
1103
|
index: j,
|
|
1104
1104
|
nextTick: Ve,
|
|
1105
1105
|
cancelNextTick: ut,
|
|
1106
|
-
detectDirection:
|
|
1106
|
+
detectDirection: zt,
|
|
1107
1107
|
getChild: me
|
|
1108
1108
|
};
|
|
1109
1109
|
p.get = function(t) {
|
|
@@ -1155,7 +1155,7 @@ function Mn() {
|
|
|
1155
1155
|
},
|
|
1156
1156
|
_handleAutoScroll: function(n, o) {
|
|
1157
1157
|
var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
|
|
1158
|
-
if (Ge = n, o || this.options.forceAutoScrollFallback || Pe ||
|
|
1158
|
+
if (Ge = n, o || this.options.forceAutoScrollFallback || Pe || Q || xe) {
|
|
1159
1159
|
rt(n, this.options, l, o);
|
|
1160
1160
|
var s = oe(l, !0);
|
|
1161
1161
|
dt && (!Se || r !== ot || a !== it) && (Se && Mt(), Se = setInterval(function() {
|
|
@@ -1170,7 +1170,7 @@ function Mn() {
|
|
|
1170
1170
|
rt(n, this.options, oe(l, !1), !1);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, Z(t, {
|
|
1174
1174
|
pluginName: "scroll",
|
|
1175
1175
|
initializeByDefault: !0
|
|
1176
1176
|
});
|
|
@@ -1233,7 +1233,7 @@ gt.prototype = {
|
|
|
1233
1233
|
},
|
|
1234
1234
|
drop: qt
|
|
1235
1235
|
};
|
|
1236
|
-
|
|
1236
|
+
Z(gt, {
|
|
1237
1237
|
pluginName: "revertOnSpill"
|
|
1238
1238
|
});
|
|
1239
1239
|
function mt() {
|
|
@@ -1245,7 +1245,7 @@ mt.prototype = {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
drop: qt
|
|
1247
1247
|
};
|
|
1248
|
-
|
|
1248
|
+
Z(mt, {
|
|
1249
1249
|
pluginName: "removeOnSpill"
|
|
1250
1250
|
});
|
|
1251
1251
|
p.mount(new Mn());
|
|
@@ -1299,7 +1299,7 @@ function Hn(t, e) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
const ft = ["Start", "Add", "Remove", "Update", "End"], ht = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], $n = ["Move", ...ft, ...ht].map((t) => "on" + t);
|
|
1301
1301
|
let lt = null;
|
|
1302
|
-
const
|
|
1302
|
+
const zn = {
|
|
1303
1303
|
options: Object,
|
|
1304
1304
|
list: {
|
|
1305
1305
|
type: Array,
|
|
@@ -1346,7 +1346,7 @@ const Wn = {
|
|
|
1346
1346
|
...ft.map((t) => t.toLowerCase()),
|
|
1347
1347
|
...ht.map((t) => t.toLowerCase())
|
|
1348
1348
|
],
|
|
1349
|
-
props:
|
|
1349
|
+
props: zn,
|
|
1350
1350
|
data() {
|
|
1351
1351
|
return {
|
|
1352
1352
|
transitionMode: !1,
|
|
@@ -1538,10 +1538,10 @@ const Wn = {
|
|
|
1538
1538
|
return n.indexOf(lt) !== -1 || !e.willInsertAfter ? i : i + 1;
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
|
-
}),
|
|
1541
|
+
}), Wn = { class: "flex flex-col" }, Gn = { class: "grid grid-cols-3 gap-3 w-full my-8" }, Un = { class: "col-span-1 m-6" }, qn = ["src"], Kn = {
|
|
1542
1542
|
key: 1,
|
|
1543
1543
|
class: "cursor-grab active:cursor-grabbing"
|
|
1544
|
-
},
|
|
1544
|
+
}, Zn = { class: "col-span-2 relative" }, Qn = ["src"], Jn = ["src"], eo = {
|
|
1545
1545
|
key: 1,
|
|
1546
1546
|
class: "cursor-grab active:cursor-grabbing"
|
|
1547
1547
|
}, to = {
|
|
@@ -1561,7 +1561,7 @@ const Wn = {
|
|
|
1561
1561
|
const e = t, n = ae(0), o = ae(0), i = ae({ width: 0, height: 0 }), r = ae(null), a = () => {
|
|
1562
1562
|
if (!r.value) return;
|
|
1563
1563
|
const E = r.value.getBoundingClientRect();
|
|
1564
|
-
i.value = { width: E.width, height: E.height }
|
|
1564
|
+
i.value = { width: E.width, height: E.height };
|
|
1565
1565
|
};
|
|
1566
1566
|
en(() => {
|
|
1567
1567
|
window.addEventListener("resize", a);
|
|
@@ -1569,15 +1569,15 @@ const Wn = {
|
|
|
1569
1569
|
window.removeEventListener("resize", a);
|
|
1570
1570
|
});
|
|
1571
1571
|
const l = (E) => {
|
|
1572
|
-
n.value = E.target.naturalWidth, o.value = E.target.naturalHeight,
|
|
1572
|
+
n.value = E.target.naturalWidth, o.value = E.target.naturalHeight, a();
|
|
1573
1573
|
}, s = wt(() => i.value.width == 0 ? 1 : i.value.width / n.value), u = wt(() => i.value.height == 0 ? 1 : i.value.height / o.value), f = ae([...e.answers]), d = ae(e.sockets.map((E) => ({
|
|
1574
1574
|
choice: [],
|
|
1575
1575
|
expected: E.correctAnswer,
|
|
1576
1576
|
allowPut: !0
|
|
1577
1577
|
}))), v = (E, x) => {
|
|
1578
|
-
|
|
1578
|
+
f.value = f.value.filter((T) => T.name !== E.clone.name), d.value[x].allowPut = !1;
|
|
1579
1579
|
}, _ = (E, x) => {
|
|
1580
|
-
|
|
1580
|
+
d.value[x].choice = [], d.value[x].allowPut = !0;
|
|
1581
1581
|
}, m = ae(!1), w = () => {
|
|
1582
1582
|
m.value = !0, d.value.forEach((E) => {
|
|
1583
1583
|
E.allowPut = !1;
|
|
@@ -1587,7 +1587,7 @@ const Wn = {
|
|
|
1587
1587
|
E.choice = [], E.allowPut = !0;
|
|
1588
1588
|
});
|
|
1589
1589
|
};
|
|
1590
|
-
return (E, x) => (H(),
|
|
1590
|
+
return (E, x) => (H(), z("div", Wn, [
|
|
1591
1591
|
le("div", Gn, [
|
|
1592
1592
|
le("div", Un, [
|
|
1593
1593
|
qe(Me(Lt), {
|
|
@@ -1597,22 +1597,22 @@ const Wn = {
|
|
|
1597
1597
|
group: { name: "answers", pull: !m.value, put: !m.value }
|
|
1598
1598
|
}, {
|
|
1599
1599
|
default: yt(() => [
|
|
1600
|
-
(H(!0),
|
|
1600
|
+
(H(!0), z(_t, null, Et(f.value, (T) => (H(), z("div", {
|
|
1601
1601
|
class: "list-group-item bg-gray-300 dark:bg-gray-800 m-1 p-3 rounded-md text-center flex justify-center items-center",
|
|
1602
1602
|
key: T.name
|
|
1603
1603
|
}, [
|
|
1604
|
-
T.isImg ? (H(),
|
|
1604
|
+
T.isImg ? (H(), z("img", {
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
class: "cursor-grab active:cursor-grabbing max-w-32 rounded",
|
|
1607
1607
|
src: T.src,
|
|
1608
1608
|
alt: "img"
|
|
1609
|
-
}, null, 8, qn)) : (H(),
|
|
1609
|
+
}, null, 8, qn)) : (H(), z("p", Kn, Dt(T.name), 1))
|
|
1610
1610
|
]))), 128))
|
|
1611
1611
|
]),
|
|
1612
1612
|
_: 1
|
|
1613
1613
|
}, 8, ["modelValue", "group"])
|
|
1614
1614
|
]),
|
|
1615
|
-
le("div",
|
|
1615
|
+
le("div", Zn, [
|
|
1616
1616
|
le("img", {
|
|
1617
1617
|
onLoad: l,
|
|
1618
1618
|
ref_key: "myImage",
|
|
@@ -1620,8 +1620,8 @@ const Wn = {
|
|
|
1620
1620
|
src: e.src,
|
|
1621
1621
|
alt: "img",
|
|
1622
1622
|
class: "w-full h-full select-none"
|
|
1623
|
-
}, null, 40,
|
|
1624
|
-
(H(!0),
|
|
1623
|
+
}, null, 40, Qn),
|
|
1624
|
+
(H(!0), z(_t, null, Et(e.sockets, (T, D) => (H(), nn(Me(Lt), {
|
|
1625
1625
|
class: "dropArea absolute bg-gray-300 dark:bg-gray-800 p-4 rounded-md min-w-14 max-w-32",
|
|
1626
1626
|
key: D,
|
|
1627
1627
|
modelValue: d.value[D].choice,
|
|
@@ -1634,19 +1634,19 @@ const Wn = {
|
|
|
1634
1634
|
default: yt(() => {
|
|
1635
1635
|
var N, R;
|
|
1636
1636
|
return [
|
|
1637
|
-
d.value[D].choice[0] && d.value[D].choice[0].isImg ? (H(),
|
|
1637
|
+
d.value[D].choice[0] && d.value[D].choice[0].isImg ? (H(), z("img", {
|
|
1638
1638
|
key: 0,
|
|
1639
1639
|
class: "cursor-grab active:cursor-grabbing rounded",
|
|
1640
1640
|
src: d.value[D].choice[0].src,
|
|
1641
1641
|
alt: "img"
|
|
1642
|
-
}, null, 8, Jn)) : d.value[D].choice[0] ? (H(),
|
|
1643
|
-
m.value && ((N = d.value[D].choice[0]) == null ? void 0 : N.name) !== d.value[D].expected ? (H(),
|
|
1642
|
+
}, null, 8, Jn)) : d.value[D].choice[0] ? (H(), z("p", eo, Dt(d.value[D].choice[0].name), 1)) : Ke("", !0),
|
|
1643
|
+
m.value && ((N = d.value[D].choice[0]) == null ? void 0 : N.name) !== d.value[D].expected ? (H(), z("span", to, [
|
|
1644
1644
|
qe(St, {
|
|
1645
1645
|
iconPath: Me(rn),
|
|
1646
1646
|
size: "18"
|
|
1647
1647
|
}, null, 8, ["iconPath"])
|
|
1648
1648
|
])) : Ke("", !0),
|
|
1649
|
-
m.value && ((R = d.value[D].choice[0]) == null ? void 0 : R.name) === d.value[D].expected ? (H(),
|
|
1649
|
+
m.value && ((R = d.value[D].choice[0]) == null ? void 0 : R.name) === d.value[D].expected ? (H(), z("span", no, [
|
|
1650
1650
|
qe(St, {
|
|
1651
1651
|
iconPath: Me(an),
|
|
1652
1652
|
size: "18"
|