@vue-skuilder/edit-ui 0.2.33 → 0.2.35
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/assets/index.css +1 -1
- package/dist/edit-ui.es.js +297 -283
- package/dist/edit-ui.es.js.map +1 -1
- package/dist/edit-ui.umd.js +8 -8
- package/dist/edit-ui.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/components/ComponentRegistration.vue +27 -3
package/dist/edit-ui.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, openBlock as d, ref as f, renderList as p, resolveComponent as m, toDisplayString as h, watch as g, withCtx as _, withKeys as v, withModifiers as y } from "vue";
|
|
2
2
|
import { BlanksCard as b, BlanksCardDataShapes as x, SkMidi as S, SyllableSeqVis as C, allCourseWare as w, eventsToSyllableSequence as T, transposeSyllableSeq as E } from "@vue-skuilder/courseware";
|
|
3
3
|
import { DocType as D, Navigators as O, getDataLayer as k, importParsedCards as A, validateProcessorConfig as ee } from "@vue-skuilder/db";
|
|
4
|
-
import { FieldType as j, NameSpacer as M, Status as N, fieldConverters as te, isValidBulkFormat as ne, parseBulkTextToCards as P,
|
|
5
|
-
import { CardBrowser as
|
|
6
|
-
import { defineStore as
|
|
4
|
+
import { FieldType as j, NameSpacer as M, Status as N, fieldConverters as te, isValidBulkFormat as ne, parseBulkTextToCards as P, toCourseElo as re, validationFunctionToVuetifyRule as ie } from "@vue-skuilder/common";
|
|
5
|
+
import { CardBrowser as ae, SkMouseTrap as oe, SkldrMouseTrap as se, TagsInput as ce, alertUser as F, getCurrentUser as le } from "@vue-skuilder/common-ui";
|
|
6
|
+
import { defineStore as ue } from "pinia";
|
|
7
7
|
//#region \0rolldown/runtime.js
|
|
8
|
-
var
|
|
8
|
+
var de = Object.create, fe = Object.defineProperty, __name = (e, t) => fe(e, "name", {
|
|
9
9
|
value: t,
|
|
10
10
|
configurable: !0
|
|
11
|
-
}),
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
11
|
+
}), pe = Object.getOwnPropertyDescriptor, I = Object.getOwnPropertyNames, me = Object.getPrototypeOf, he = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __copyProps = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = I(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !he.call(e, s) && s !== n && fe(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = pe(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
}, __toESM = (e, t, n) => (n = e == null ? {} :
|
|
17
|
+
}, __toESM = (e, t, n) => (n = e == null ? {} : de(me(e)), __copyProps(t || !e || !e.__esModule ? fe(n, "default", {
|
|
18
18
|
value: e,
|
|
19
19
|
enumerable: !0
|
|
20
|
-
}) : n, e)),
|
|
20
|
+
}) : n, e)), L = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
21
21
|
(function() {
|
|
22
22
|
var n, r = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", s = "Invalid `variable` option passed into `_.template`", c = "__lodash_hash_undefined__", l = 500, u = "__lodash_placeholder__", d = 1, f = 2, p = 4, m = 1, h = 2, g = 1, _ = 2, v = 4, y = 8, b = 16, x = 32, S = 64, C = 128, w = 256, T = 512, E = 30, D = "...", O = 800, k = 16, A = 1, ee = 2, j = 3, M = Infinity, N = 9007199254740991, te = 17976931348623157e292, ne = NaN, P = 4294967295, re = P - 1, ie = P >>> 1, ae = [
|
|
23
23
|
["ary", C],
|
|
@@ -29,7 +29,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
29
29
|
["partial", x],
|
|
30
30
|
["partialRight", S],
|
|
31
31
|
["rearg", w]
|
|
32
|
-
],
|
|
32
|
+
], oe = "[object Arguments]", se = "[object Array]", ce = "[object AsyncFunction]", F = "[object Boolean]", le = "[object Date]", ue = "[object DOMException]", de = "[object Error]", fe = "[object Function]", pe = "[object GeneratorFunction]", I = "[object Map]", me = "[object Number]", he = "[object Null]", L = "[object Object]", ge = "[object Promise]", R = "[object Proxy]", _e = "[object RegExp]", z = "[object Set]", ve = "[object String]", ye = "[object Symbol]", be = "[object Undefined]", xe = "[object WeakMap]", Se = "[object WeakSet]", Ce = "[object ArrayBuffer]", we = "[object DataView]", Te = "[object Float32Array]", Ee = "[object Float64Array]", De = "[object Int8Array]", Oe = "[object Int16Array]", ke = "[object Int32Array]", Ae = "[object Uint8Array]", je = "[object Uint8ClampedArray]", Me = "[object Uint16Array]", Ne = "[object Uint32Array]", Pe = /\b__p \+= '';/g, Fe = /\b(__p \+=) '' \+/g, Ie = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Le = /&(?:amp|lt|gt|quot|#39);/g, Re = /[&<>"']/g, ze = RegExp(Le.source), Be = RegExp(Re.source), Ve = /<%-([\s\S]+?)%>/g, He = /<%([\s\S]+?)%>/g, Ue = /<%=([\s\S]+?)%>/g, We = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ge = /^\w*$/, Ke = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, qe = /[\\^$.*+?()[\]{}|]/g, Je = RegExp(qe.source), Ye = /^\s+/, Xe = /\s/, Ze = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Qe = /\{\n\/\* \[wrapped with (.+)\] \*/, $e = /,? & /, et = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, tt = /[()=,{}\[\]\/\s]/, nt = /\\(\\)?/g, rt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, it = /\w*$/, B = /^[-+]0x[0-9a-f]+$/i, at = /^0b[01]+$/i, ot = /^\[object .+?Constructor\]$/, st = /^0o[0-7]+$/i, ct = /^(?:0|[1-9]\d*)$/, lt = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ut = /($^)/, dt = /['\n\r\u2028\u2029\\]/g, ft = "\\ud800-\\udfff", V = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", H = "\\u2700-\\u27bf", pt = "a-z\\xdf-\\xf6\\xf8-\\xff", mt = "\\xac\\xb1\\xd7\\xf7", U = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ht = "\\u2000-\\u206f", gt = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", _t = "A-Z\\xc0-\\xd6\\xd8-\\xde", vt = "\\ufe0e\\ufe0f", yt = mt + U + ht + gt, W = "['’]", bt = "[" + ft + "]", xt = "[" + yt + "]", St = "[" + V + "]", Ct = "\\d+", wt = "[" + H + "]", Tt = "[" + pt + "]", Et = "[^" + ft + yt + Ct + H + pt + _t + "]", G = "\\ud83c[\\udffb-\\udfff]", Dt = "(?:" + St + "|" + G + ")", Ot = "[^" + ft + "]", kt = "(?:\\ud83c[\\udde6-\\uddff]){2}", At = "[\\ud800-\\udbff][\\udc00-\\udfff]", jt = "[" + _t + "]", Mt = "\\u200d", Nt = "(?:" + Tt + "|" + Et + ")", Pt = "(?:" + jt + "|" + Et + ")", Ft = "(?:" + W + "(?:d|ll|m|re|s|t|ve))?", It = "(?:" + W + "(?:D|LL|M|RE|S|T|VE))?", Lt = Dt + "?", Rt = "[" + vt + "]?", zt = "(?:" + Mt + "(?:" + [
|
|
33
33
|
Ot,
|
|
34
34
|
kt,
|
|
35
35
|
At
|
|
@@ -60,10 +60,10 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
60
60
|
Bt,
|
|
61
61
|
Ct,
|
|
62
62
|
Ut
|
|
63
|
-
].join("|"), "g"), K = RegExp("[" + Mt +
|
|
64
|
-
J[
|
|
63
|
+
].join("|"), "g"), K = RegExp("[" + Mt + ft + V + vt + "]"), q = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Yt = /* @__PURE__ */ "Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout".split("."), Xt = -1, J = {};
|
|
64
|
+
J[Te] = J[Ee] = J[De] = J[Oe] = J[ke] = J[Ae] = J[je] = J[Me] = J[Ne] = !0, J[oe] = J[se] = J[Ce] = J[F] = J[we] = J[le] = J[de] = J[fe] = J[I] = J[me] = J[L] = J[_e] = J[z] = J[ve] = J[xe] = !1;
|
|
65
65
|
var Y = {};
|
|
66
|
-
Y[
|
|
66
|
+
Y[oe] = Y[se] = Y[Ce] = Y[we] = Y[F] = Y[le] = Y[Te] = Y[Ee] = Y[De] = Y[Oe] = Y[ke] = Y[I] = Y[me] = Y[L] = Y[_e] = Y[z] = Y[ve] = Y[ye] = Y[Ae] = Y[je] = Y[Me] = Y[Ne] = !0, Y[de] = Y[fe] = Y[xe] = !1;
|
|
67
67
|
var Zt = {
|
|
68
68
|
À: "A",
|
|
69
69
|
Á: "A",
|
|
@@ -348,7 +348,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
348
348
|
return e.split("");
|
|
349
349
|
}
|
|
350
350
|
function asciiWords(e) {
|
|
351
|
-
return e.match(
|
|
351
|
+
return e.match(et) || [];
|
|
352
352
|
}
|
|
353
353
|
function baseFindKey(e, t, n) {
|
|
354
354
|
var r;
|
|
@@ -411,7 +411,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
function baseTrim(e) {
|
|
414
|
-
return e && e.slice(0, trimmedEndIndex(e) + 1).replace(
|
|
414
|
+
return e && e.slice(0, trimmedEndIndex(e) + 1).replace(Ye, "");
|
|
415
415
|
}
|
|
416
416
|
function baseUnary(e) {
|
|
417
417
|
return function(t) {
|
|
@@ -500,7 +500,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
500
500
|
return hasUnicode(e) ? unicodeToArray(e) : asciiToArray(e);
|
|
501
501
|
}
|
|
502
502
|
function trimmedEndIndex(e) {
|
|
503
|
-
for (var t = e.length; t-- &&
|
|
503
|
+
for (var t = e.length; t-- && Xe.test(e.charAt(t)););
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
506
|
var vn = basePropertyOf($t);
|
|
@@ -516,15 +516,15 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
516
516
|
}
|
|
517
517
|
var yn = (function runInContext(e) {
|
|
518
518
|
e = e == null ? X : yn.defaults(X.Object(), e, yn.pick(X, Yt));
|
|
519
|
-
var t = e.Array,
|
|
519
|
+
var t = e.Array, Xe = e.Date, et = e.Error, ft = e.Function, V = e.Math, H = e.Object, pt = e.RegExp, mt = e.String, U = e.TypeError, ht = t.prototype, gt = ft.prototype, _t = H.prototype, vt = e["__core-js_shared__"], yt = gt.toString, W = _t.hasOwnProperty, bt = 0, xt = function() {
|
|
520
520
|
var e = /[^.]+$/.exec(vt && vt.keys && vt.keys.IE_PROTO || "");
|
|
521
521
|
return e ? "Symbol(src)_1." + e : "";
|
|
522
|
-
}(), St = _t.toString, Ct = yt.call(H), wt = X._, Tt = pt("^" + yt.call(W).replace(
|
|
522
|
+
}(), St = _t.toString, Ct = yt.call(H), wt = X._, Tt = pt("^" + yt.call(W).replace(qe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Et = sn ? e.Buffer : n, G = e.Symbol, Dt = e.Uint8Array, Ot = Et ? Et.allocUnsafe : n, kt = overArg(H.getPrototypeOf, H), At = H.create, jt = _t.propertyIsEnumerable, Mt = ht.splice, Nt = G ? G.isConcatSpreadable : n, Pt = G ? G.iterator : n, Ft = G ? G.toStringTag : n, It = function() {
|
|
523
523
|
try {
|
|
524
524
|
var e = getNative(H, "defineProperty");
|
|
525
525
|
return e({}, "", {}), e;
|
|
526
526
|
} catch {}
|
|
527
|
-
}(), Lt = e.clearTimeout !== X.clearTimeout && e.clearTimeout, Rt =
|
|
527
|
+
}(), Lt = e.clearTimeout !== X.clearTimeout && e.clearTimeout, Rt = Xe && Xe.now !== X.Date.now && Xe.now, zt = e.setTimeout !== X.setTimeout && e.setTimeout, Bt = V.ceil, Vt = V.floor, Ht = H.getOwnPropertySymbols, Ut = Et ? Et.isBuffer : n, Wt = e.isFinite, qt = ht.join, Jt = overArg(H.keys, H), K = V.max, q = V.min, Zt = Xe.now, Qt = e.parseInt, $t = V.random, en = ht.reverse, rn = getNative(e, "DataView"), an = getNative(e, "Map"), on = getNative(e, "Promise"), Z = getNative(e, "Set"), cn = getNative(e, "WeakMap"), Q = getNative(H, "create"), hn = cn && new cn(), bn = {}, xn = toSource(rn), Sn = toSource(an), Cn = toSource(on), wn = toSource(Z), Tn = toSource(cn), En = G ? G.prototype : n, Dn = En ? En.valueOf : n, On = En ? En.toString : n;
|
|
528
528
|
function lodash(e) {
|
|
529
529
|
if (isObjectLike(e) && !$(e) && !(e instanceof LazyWrapper)) {
|
|
530
530
|
if (e instanceof LodashWrapper) return e;
|
|
@@ -547,9 +547,9 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
547
547
|
this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!t, this.__index__ = 0, this.__values__ = n;
|
|
548
548
|
}
|
|
549
549
|
lodash.templateSettings = {
|
|
550
|
-
escape:
|
|
551
|
-
evaluate:
|
|
552
|
-
interpolate:
|
|
550
|
+
escape: Ve,
|
|
551
|
+
evaluate: He,
|
|
552
|
+
interpolate: Ue,
|
|
553
553
|
variable: "",
|
|
554
554
|
imports: { _: lodash }
|
|
555
555
|
}, lodash.prototype = baseLodash.prototype, lodash.prototype.constructor = lodash, LodashWrapper.prototype = kn(baseLodash.prototype), LodashWrapper.prototype.constructor = LodashWrapper;
|
|
@@ -769,9 +769,9 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
769
769
|
if (m) {
|
|
770
770
|
if (s = initCloneArray(e), !c) return copyArray(e, s);
|
|
771
771
|
} else {
|
|
772
|
-
var h = getTag(e), g = h ==
|
|
772
|
+
var h = getTag(e), g = h == fe || h == pe;
|
|
773
773
|
if (Mr(e)) return cloneBuffer(e, c);
|
|
774
|
-
if (h ==
|
|
774
|
+
if (h == L || h == oe || g && !a) {
|
|
775
775
|
if (s = l || g ? {} : initCloneObject(e), !c) return l ? copySymbolsIn(e, baseAssignIn(s, e)) : copySymbols(e, baseAssign(s, e));
|
|
776
776
|
} else {
|
|
777
777
|
if (!Y[h]) return a ? e : {};
|
|
@@ -880,7 +880,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
880
880
|
return $(e) ? r : arrayPush(r, n(e));
|
|
881
881
|
}
|
|
882
882
|
function baseGetTag(e) {
|
|
883
|
-
return e == null ? e === n ?
|
|
883
|
+
return e == null ? e === n ? be : he : Ft && Ft in H(e) ? getRawTag(e) : objectToString(e);
|
|
884
884
|
}
|
|
885
885
|
function baseGt(e, t) {
|
|
886
886
|
return e > t;
|
|
@@ -924,21 +924,21 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
924
924
|
return i == null ? n : apply(i, e, r);
|
|
925
925
|
}
|
|
926
926
|
function baseIsArguments(e) {
|
|
927
|
-
return isObjectLike(e) && baseGetTag(e) ==
|
|
927
|
+
return isObjectLike(e) && baseGetTag(e) == oe;
|
|
928
928
|
}
|
|
929
929
|
function baseIsArrayBuffer(e) {
|
|
930
|
-
return isObjectLike(e) && baseGetTag(e) ==
|
|
930
|
+
return isObjectLike(e) && baseGetTag(e) == Ce;
|
|
931
931
|
}
|
|
932
932
|
function baseIsDate(e) {
|
|
933
|
-
return isObjectLike(e) && baseGetTag(e) ==
|
|
933
|
+
return isObjectLike(e) && baseGetTag(e) == le;
|
|
934
934
|
}
|
|
935
935
|
function baseIsEqual(e, t, n, r, i) {
|
|
936
936
|
return e === t ? !0 : e == null || t == null || !isObjectLike(e) && !isObjectLike(t) ? e !== e && t !== t : baseIsEqualDeep(e, t, n, r, baseIsEqual, i);
|
|
937
937
|
}
|
|
938
938
|
function baseIsEqualDeep(e, t, n, r, i, a) {
|
|
939
|
-
var o = $(e), s = $(t), c = o ?
|
|
940
|
-
c = c ==
|
|
941
|
-
var u = c ==
|
|
939
|
+
var o = $(e), s = $(t), c = o ? se : getTag(e), l = s ? se : getTag(t);
|
|
940
|
+
c = c == oe ? L : c, l = l == oe ? L : l;
|
|
941
|
+
var u = c == L, d = l == L, f = c == l;
|
|
942
942
|
if (f && Mr(e)) {
|
|
943
943
|
if (!Mr(t)) return !1;
|
|
944
944
|
o = !0, u = !1;
|
|
@@ -954,7 +954,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
954
954
|
return f ? (a || (a = new Stack()), equalObjects(e, t, n, r, i, a)) : !1;
|
|
955
955
|
}
|
|
956
956
|
function baseIsMap(e) {
|
|
957
|
-
return isObjectLike(e) && getTag(e) ==
|
|
957
|
+
return isObjectLike(e) && getTag(e) == I;
|
|
958
958
|
}
|
|
959
959
|
function baseIsMatch(e, t, r, i) {
|
|
960
960
|
var a = r.length, o = a, s = !i;
|
|
@@ -977,13 +977,13 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
977
977
|
return !0;
|
|
978
978
|
}
|
|
979
979
|
function baseIsNative(e) {
|
|
980
|
-
return !isObject(e) || isMasked(e) ? !1 : (isFunction(e) ? Tt :
|
|
980
|
+
return !isObject(e) || isMasked(e) ? !1 : (isFunction(e) ? Tt : ot).test(toSource(e));
|
|
981
981
|
}
|
|
982
982
|
function baseIsRegExp(e) {
|
|
983
|
-
return isObjectLike(e) && baseGetTag(e) ==
|
|
983
|
+
return isObjectLike(e) && baseGetTag(e) == _e;
|
|
984
984
|
}
|
|
985
985
|
function baseIsSet(e) {
|
|
986
|
-
return isObjectLike(e) && getTag(e) ==
|
|
986
|
+
return isObjectLike(e) && getTag(e) == z;
|
|
987
987
|
}
|
|
988
988
|
function baseIsTypedArray(e) {
|
|
989
989
|
return isObjectLike(e) && isLength(e.length) && !!J[baseGetTag(e)];
|
|
@@ -1285,7 +1285,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1285
1285
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1286
1286
|
}
|
|
1287
1287
|
function cloneRegExp(e) {
|
|
1288
|
-
var t = new e.constructor(e.source,
|
|
1288
|
+
var t = new e.constructor(e.source, it.exec(e));
|
|
1289
1289
|
return t.lastIndex = e.lastIndex, t;
|
|
1290
1290
|
}
|
|
1291
1291
|
function cloneSymbol(e) {
|
|
@@ -1538,7 +1538,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1538
1538
|
return isLaziable(e) && Un(C, b), C.placeholder = i, setWrapToString(C, e, t);
|
|
1539
1539
|
}
|
|
1540
1540
|
function createRound(e) {
|
|
1541
|
-
var t =
|
|
1541
|
+
var t = V[e];
|
|
1542
1542
|
return function(e, n) {
|
|
1543
1543
|
if (e = toNumber(e), n = n == null ? 0 : q(toInteger(n), 292), n && Wt(e)) {
|
|
1544
1544
|
var r = (toString(e) + "e").split("e");
|
|
@@ -1553,7 +1553,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1553
1553
|
function createToPairs(e) {
|
|
1554
1554
|
return function(t) {
|
|
1555
1555
|
var n = getTag(t);
|
|
1556
|
-
return n ==
|
|
1556
|
+
return n == I ? mapToArray(t) : n == z ? setToPairs(t) : baseToPairs(t, e(t));
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
1559
|
function createWrap(e, t, r, i, a, s, c, l) {
|
|
@@ -1619,18 +1619,18 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1619
1619
|
}
|
|
1620
1620
|
function equalByTag(e, t, n, r, i, a, o) {
|
|
1621
1621
|
switch (n) {
|
|
1622
|
-
case
|
|
1622
|
+
case we:
|
|
1623
1623
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
1624
1624
|
e = e.buffer, t = t.buffer;
|
|
1625
|
-
case
|
|
1626
|
-
case
|
|
1627
|
-
case
|
|
1628
|
-
case
|
|
1629
|
-
case
|
|
1630
|
-
case
|
|
1631
|
-
case
|
|
1632
|
-
case
|
|
1633
|
-
case
|
|
1625
|
+
case Ce: return !(e.byteLength != t.byteLength || !a(new Dt(e), new Dt(t)));
|
|
1626
|
+
case F:
|
|
1627
|
+
case le:
|
|
1628
|
+
case me: return eq(+e, +t);
|
|
1629
|
+
case de: return e.name == t.name && e.message == t.message;
|
|
1630
|
+
case _e:
|
|
1631
|
+
case ve: return e == t + "";
|
|
1632
|
+
case I: var s = mapToArray;
|
|
1633
|
+
case z:
|
|
1634
1634
|
var c = r & m;
|
|
1635
1635
|
if (s || (s = setToArray), e.size != t.size && !c) return !1;
|
|
1636
1636
|
var l = o.get(e);
|
|
@@ -1638,7 +1638,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1638
1638
|
r |= h, o.set(e, t);
|
|
1639
1639
|
var u = equalArrays(s(e), s(t), r, i, a, o);
|
|
1640
1640
|
return o.delete(e), u;
|
|
1641
|
-
case
|
|
1641
|
+
case ye: if (Dn) return Dn.call(e) == Dn.call(t);
|
|
1642
1642
|
}
|
|
1643
1643
|
return !1;
|
|
1644
1644
|
}
|
|
@@ -1731,14 +1731,14 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1731
1731
|
for (var t = []; e;) arrayPush(t, Bn(e)), e = kt(e);
|
|
1732
1732
|
return t;
|
|
1733
1733
|
} : stubArray, getTag = baseGetTag;
|
|
1734
|
-
(rn && getTag(new rn(/* @__PURE__ */ new ArrayBuffer(1))) !=
|
|
1735
|
-
var t = baseGetTag(e), r = t ==
|
|
1734
|
+
(rn && getTag(new rn(/* @__PURE__ */ new ArrayBuffer(1))) != we || an && getTag(new an()) != I || on && getTag(on.resolve()) != ge || Z && getTag(new Z()) != z || cn && getTag(new cn()) != xe) && (getTag = function(e) {
|
|
1735
|
+
var t = baseGetTag(e), r = t == L ? e.constructor : n, i = r ? toSource(r) : "";
|
|
1736
1736
|
if (i) switch (i) {
|
|
1737
|
-
case xn: return
|
|
1738
|
-
case Sn: return
|
|
1739
|
-
case Cn: return
|
|
1740
|
-
case wn: return
|
|
1741
|
-
case Tn: return
|
|
1737
|
+
case xn: return we;
|
|
1738
|
+
case Sn: return I;
|
|
1739
|
+
case Cn: return ge;
|
|
1740
|
+
case wn: return z;
|
|
1741
|
+
case Tn: return xe;
|
|
1742
1742
|
}
|
|
1743
1743
|
return t;
|
|
1744
1744
|
});
|
|
@@ -1766,8 +1766,8 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1766
1766
|
};
|
|
1767
1767
|
}
|
|
1768
1768
|
function getWrapDetails(e) {
|
|
1769
|
-
var t = e.match(
|
|
1770
|
-
return t ? t[1].split(
|
|
1769
|
+
var t = e.match(Qe);
|
|
1770
|
+
return t ? t[1].split($e) : [];
|
|
1771
1771
|
}
|
|
1772
1772
|
function hasPath(e, t, n) {
|
|
1773
1773
|
t = castPath(t, e);
|
|
@@ -1788,11 +1788,10 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1788
1788
|
function initCloneByTag(e, t, n) {
|
|
1789
1789
|
var r = e.constructor;
|
|
1790
1790
|
switch (t) {
|
|
1791
|
-
case
|
|
1792
|
-
case
|
|
1793
|
-
case
|
|
1794
|
-
case
|
|
1795
|
-
case we:
|
|
1791
|
+
case Ce: return cloneArrayBuffer(e);
|
|
1792
|
+
case F:
|
|
1793
|
+
case le: return new r(+e);
|
|
1794
|
+
case we: return cloneDataView(e, n);
|
|
1796
1795
|
case Te:
|
|
1797
1796
|
case Ee:
|
|
1798
1797
|
case De:
|
|
@@ -1800,27 +1799,28 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1800
1799
|
case ke:
|
|
1801
1800
|
case Ae:
|
|
1802
1801
|
case je:
|
|
1803
|
-
case Me:
|
|
1804
|
-
case
|
|
1805
|
-
case
|
|
1806
|
-
case
|
|
1807
|
-
case
|
|
1808
|
-
case
|
|
1809
|
-
case
|
|
1802
|
+
case Me:
|
|
1803
|
+
case Ne: return cloneTypedArray(e, n);
|
|
1804
|
+
case I: return new r();
|
|
1805
|
+
case me:
|
|
1806
|
+
case ve: return new r(e);
|
|
1807
|
+
case _e: return cloneRegExp(e);
|
|
1808
|
+
case z: return new r();
|
|
1809
|
+
case ye: return cloneSymbol(e);
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
1812
1812
|
function insertWrapDetails(e, t) {
|
|
1813
1813
|
var n = t.length;
|
|
1814
1814
|
if (!n) return e;
|
|
1815
1815
|
var r = n - 1;
|
|
1816
|
-
return t[r] = (n > 1 ? "& " : "") + t[r], t = t.join(n > 2 ? ", " : " "), e.replace(
|
|
1816
|
+
return t[r] = (n > 1 ? "& " : "") + t[r], t = t.join(n > 2 ? ", " : " "), e.replace(Ze, "{\n/* [wrapped with " + t + "] */\n");
|
|
1817
1817
|
}
|
|
1818
1818
|
function isFlattenable(e) {
|
|
1819
1819
|
return $(e) || Ar(e) || !!(Nt && e && e[Nt]);
|
|
1820
1820
|
}
|
|
1821
1821
|
function isIndex(e, t) {
|
|
1822
1822
|
var n = typeof e;
|
|
1823
|
-
return t = t ?? N, !!t && (n == "number" || n != "symbol" &&
|
|
1823
|
+
return t = t ?? N, !!t && (n == "number" || n != "symbol" && ct.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1824
1824
|
}
|
|
1825
1825
|
function isIterateeCall(e, t, n) {
|
|
1826
1826
|
if (!isObject(n)) return !1;
|
|
@@ -1830,7 +1830,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1830
1830
|
function isKey(e, t) {
|
|
1831
1831
|
if ($(e)) return !1;
|
|
1832
1832
|
var n = typeof e;
|
|
1833
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null || isSymbol(e) ? !0 :
|
|
1833
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || isSymbol(e) ? !0 : Ge.test(e) || !We.test(e) || t != null && e in H(t);
|
|
1834
1834
|
}
|
|
1835
1835
|
function isKeyable(e) {
|
|
1836
1836
|
var t = typeof e;
|
|
@@ -1932,8 +1932,8 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
1932
1932
|
}
|
|
1933
1933
|
var Kn = memoizeCapped(function(e) {
|
|
1934
1934
|
var t = [];
|
|
1935
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
1936
|
-
t.push(r ? i.replace(
|
|
1935
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ke, function(e, n, r, i) {
|
|
1936
|
+
t.push(r ? i.replace(nt, "$1") : n || e);
|
|
1937
1937
|
}), t;
|
|
1938
1938
|
});
|
|
1939
1939
|
function toKey(e) {
|
|
@@ -2354,7 +2354,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2354
2354
|
if (e == null) return 0;
|
|
2355
2355
|
if (isArrayLike(e)) return isString(e) ? stringSize(e) : e.length;
|
|
2356
2356
|
var t = getTag(e);
|
|
2357
|
-
return t ==
|
|
2357
|
+
return t == I || t == z ? e.size : baseKeys(e).length;
|
|
2358
2358
|
}
|
|
2359
2359
|
function some(e, t, r) {
|
|
2360
2360
|
var i = $(e) ? arraySome : baseSome;
|
|
@@ -2563,7 +2563,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2563
2563
|
return isObjectLike(e) && isArrayLike(e);
|
|
2564
2564
|
}
|
|
2565
2565
|
function isBoolean(e) {
|
|
2566
|
-
return e === !0 || e === !1 || isObjectLike(e) && baseGetTag(e) ==
|
|
2566
|
+
return e === !0 || e === !1 || isObjectLike(e) && baseGetTag(e) == F;
|
|
2567
2567
|
}
|
|
2568
2568
|
var Mr = Ut || stubFalse, Nr = un ? baseUnary(un) : baseIsDate;
|
|
2569
2569
|
function isElement(e) {
|
|
@@ -2573,7 +2573,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2573
2573
|
if (e == null) return !0;
|
|
2574
2574
|
if (isArrayLike(e) && ($(e) || typeof e == "string" || typeof e.splice == "function" || Mr(e) || Lr(e) || Ar(e))) return !e.length;
|
|
2575
2575
|
var t = getTag(e);
|
|
2576
|
-
if (t ==
|
|
2576
|
+
if (t == I || t == z) return !e.size;
|
|
2577
2577
|
if (isPrototype(e)) return !baseKeys(e).length;
|
|
2578
2578
|
for (var n in e) if (W.call(e, n)) return !1;
|
|
2579
2579
|
return !0;
|
|
@@ -2589,7 +2589,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2589
2589
|
function isError(e) {
|
|
2590
2590
|
if (!isObjectLike(e)) return !1;
|
|
2591
2591
|
var t = baseGetTag(e);
|
|
2592
|
-
return t ==
|
|
2592
|
+
return t == de || t == ue || typeof e.message == "string" && typeof e.name == "string" && !isPlainObject(e);
|
|
2593
2593
|
}
|
|
2594
2594
|
function isFinite(e) {
|
|
2595
2595
|
return typeof e == "number" && Wt(e);
|
|
@@ -2597,7 +2597,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2597
2597
|
function isFunction(e) {
|
|
2598
2598
|
if (!isObject(e)) return !1;
|
|
2599
2599
|
var t = baseGetTag(e);
|
|
2600
|
-
return t ==
|
|
2600
|
+
return t == fe || t == pe || t == ce || t == R;
|
|
2601
2601
|
}
|
|
2602
2602
|
function isInteger(e) {
|
|
2603
2603
|
return typeof e == "number" && e == toInteger(e);
|
|
@@ -2623,7 +2623,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2623
2623
|
return isNumber(e) && e != +e;
|
|
2624
2624
|
}
|
|
2625
2625
|
function isNative(e) {
|
|
2626
|
-
if (Hn(e)) throw new
|
|
2626
|
+
if (Hn(e)) throw new et(a);
|
|
2627
2627
|
return baseIsNative(e);
|
|
2628
2628
|
}
|
|
2629
2629
|
function isNull(e) {
|
|
@@ -2633,10 +2633,10 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2633
2633
|
return e == null;
|
|
2634
2634
|
}
|
|
2635
2635
|
function isNumber(e) {
|
|
2636
|
-
return typeof e == "number" || isObjectLike(e) && baseGetTag(e) ==
|
|
2636
|
+
return typeof e == "number" || isObjectLike(e) && baseGetTag(e) == me;
|
|
2637
2637
|
}
|
|
2638
2638
|
function isPlainObject(e) {
|
|
2639
|
-
if (!isObjectLike(e) || baseGetTag(e) !=
|
|
2639
|
+
if (!isObjectLike(e) || baseGetTag(e) != L) return !1;
|
|
2640
2640
|
var t = kt(e);
|
|
2641
2641
|
if (t === null) return !0;
|
|
2642
2642
|
var n = W.call(t, "constructor") && t.constructor;
|
|
@@ -2648,20 +2648,20 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2648
2648
|
}
|
|
2649
2649
|
var Ir = pn ? baseUnary(pn) : baseIsSet;
|
|
2650
2650
|
function isString(e) {
|
|
2651
|
-
return typeof e == "string" || !$(e) && isObjectLike(e) && baseGetTag(e) ==
|
|
2651
|
+
return typeof e == "string" || !$(e) && isObjectLike(e) && baseGetTag(e) == ve;
|
|
2652
2652
|
}
|
|
2653
2653
|
function isSymbol(e) {
|
|
2654
|
-
return typeof e == "symbol" || isObjectLike(e) && baseGetTag(e) ==
|
|
2654
|
+
return typeof e == "symbol" || isObjectLike(e) && baseGetTag(e) == ye;
|
|
2655
2655
|
}
|
|
2656
2656
|
var Lr = mn ? baseUnary(mn) : baseIsTypedArray;
|
|
2657
2657
|
function isUndefined(e) {
|
|
2658
2658
|
return e === n;
|
|
2659
2659
|
}
|
|
2660
2660
|
function isWeakMap(e) {
|
|
2661
|
-
return isObjectLike(e) && getTag(e) ==
|
|
2661
|
+
return isObjectLike(e) && getTag(e) == xe;
|
|
2662
2662
|
}
|
|
2663
2663
|
function isWeakSet(e) {
|
|
2664
|
-
return isObjectLike(e) && baseGetTag(e) ==
|
|
2664
|
+
return isObjectLike(e) && baseGetTag(e) == Se;
|
|
2665
2665
|
}
|
|
2666
2666
|
var Rr = createRelationalOperation(baseLt), zr = createRelationalOperation(function(e, t) {
|
|
2667
2667
|
return e <= t;
|
|
@@ -2671,7 +2671,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2671
2671
|
if (isArrayLike(e)) return isString(e) ? stringToArray(e) : copyArray(e);
|
|
2672
2672
|
if (Pt && e[Pt]) return iteratorToArray(e[Pt]());
|
|
2673
2673
|
var t = getTag(e);
|
|
2674
|
-
return (t ==
|
|
2674
|
+
return (t == I ? mapToArray : t == z ? setToArray : values)(e);
|
|
2675
2675
|
}
|
|
2676
2676
|
function toFinite(e) {
|
|
2677
2677
|
return e ? (e = toNumber(e), e === M || e === -M ? (e < 0 ? -1 : 1) * te : e === e ? e : 0) : e === 0 ? e : 0;
|
|
@@ -2692,8 +2692,8 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2692
2692
|
}
|
|
2693
2693
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
2694
2694
|
e = baseTrim(e);
|
|
2695
|
-
var n =
|
|
2696
|
-
return n ||
|
|
2695
|
+
var n = at.test(e);
|
|
2696
|
+
return n || st.test(e) ? nn(e.slice(2), n ? 2 : 8) : B.test(e) ? ne : +e;
|
|
2697
2697
|
}
|
|
2698
2698
|
function toPlainObject(e) {
|
|
2699
2699
|
return copyObject(e, keysIn(e));
|
|
@@ -2883,7 +2883,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2883
2883
|
return li(toString(e).toLowerCase());
|
|
2884
2884
|
}
|
|
2885
2885
|
function deburr(e) {
|
|
2886
|
-
return e = toString(e), e && e.replace(
|
|
2886
|
+
return e = toString(e), e && e.replace(lt, gn).replace(Kt, "");
|
|
2887
2887
|
}
|
|
2888
2888
|
function endsWith(e, t, r) {
|
|
2889
2889
|
e = toString(e), t = baseToString(t);
|
|
@@ -2893,10 +2893,10 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2893
2893
|
return r -= t.length, r >= 0 && e.slice(r, a) == t;
|
|
2894
2894
|
}
|
|
2895
2895
|
function escape(e) {
|
|
2896
|
-
return e = toString(e), e &&
|
|
2896
|
+
return e = toString(e), e && Be.test(e) ? e.replace(Re, _n) : e;
|
|
2897
2897
|
}
|
|
2898
2898
|
function escapeRegExp(e) {
|
|
2899
|
-
return e = toString(e), e &&
|
|
2899
|
+
return e = toString(e), e && Je.test(e) ? e.replace(qe, "\\$&") : e;
|
|
2900
2900
|
}
|
|
2901
2901
|
var ri = createCompounder(function(e, t, n) {
|
|
2902
2902
|
return e + (n ? "-" : "") + t.toLowerCase();
|
|
@@ -2921,7 +2921,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2921
2921
|
return t && r < t ? createPadding(t - r, n) + e : e;
|
|
2922
2922
|
}
|
|
2923
2923
|
function parseInt(e, t, n) {
|
|
2924
|
-
return n || t == null ? t = 0 : t && (t = +t), Qt(toString(e).replace(
|
|
2924
|
+
return n || t == null ? t = 0 : t && (t = +t), Qt(toString(e).replace(Ye, ""), t || 0);
|
|
2925
2925
|
}
|
|
2926
2926
|
function repeat(e, t, r) {
|
|
2927
2927
|
return t = (r ? isIterateeCall(e, t, r) : t === n) ? 1 : toInteger(t), baseRepeat(toString(e), t);
|
|
@@ -2945,16 +2945,16 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2945
2945
|
function template(e, t, r) {
|
|
2946
2946
|
var i = lodash.templateSettings;
|
|
2947
2947
|
r && isIterateeCall(e, t, r) && (t = n), e = toString(e), t = Hr({}, t, i, customDefaultsAssignIn);
|
|
2948
|
-
var a = Hr({}, t.imports, i.imports, customDefaultsAssignIn), o = keys(a), c = baseValues(a, o), l, u, d = 0, f = t.interpolate ||
|
|
2948
|
+
var a = Hr({}, t.imports, i.imports, customDefaultsAssignIn), o = keys(a), c = baseValues(a, o), l, u, d = 0, f = t.interpolate || ut, p = "__p += '", m = pt((t.escape || ut).source + "|" + f.source + "|" + (f === Ue ? rt : ut).source + "|" + (t.evaluate || ut).source + "|$", "g"), h = "//# sourceURL=" + (W.call(t, "sourceURL") ? (t.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Xt + "]") + "\n";
|
|
2949
2949
|
e.replace(m, function(t, n, r, i, a, o) {
|
|
2950
|
-
return r || (r = i), p += e.slice(d, o).replace(
|
|
2950
|
+
return r || (r = i), p += e.slice(d, o).replace(dt, escapeStringChar), n && (l = !0, p += "' +\n__e(" + n + ") +\n'"), a && (u = !0, p += "';\n" + a + ";\n__p += '"), r && (p += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"), d = o + t.length, t;
|
|
2951
2951
|
}), p += "';\n";
|
|
2952
2952
|
var g = W.call(t, "variable") && t.variable;
|
|
2953
2953
|
if (!g) p = "with (obj) {\n" + p + "\n}\n";
|
|
2954
|
-
else if (
|
|
2955
|
-
p = (u ? p.replace(
|
|
2954
|
+
else if (tt.test(g)) throw new et(s);
|
|
2955
|
+
p = (u ? p.replace(Pe, "") : p).replace(Fe, "$1").replace(Ie, "$1;"), p = "function(" + (g || "obj") + ") {\n" + (g ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (l ? ", __e = _.escape" : "") + (u ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + p + "return __p\n}";
|
|
2956
2956
|
var _ = ui(function() {
|
|
2957
|
-
return
|
|
2957
|
+
return ft(o, h + "return " + p).apply(n, c);
|
|
2958
2958
|
});
|
|
2959
2959
|
if (_.source = p, isError(_)) throw _;
|
|
2960
2960
|
return _;
|
|
@@ -2978,7 +2978,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
2978
2978
|
return castSlice(i, 0, charsEndIndex(i, stringToArray(t)) + 1).join("");
|
|
2979
2979
|
}
|
|
2980
2980
|
function trimStart(e, t, r) {
|
|
2981
|
-
if (e = toString(e), e && (r || t === n)) return e.replace(
|
|
2981
|
+
if (e = toString(e), e && (r || t === n)) return e.replace(Ye, "");
|
|
2982
2982
|
if (!e || !(t = baseToString(t))) return e;
|
|
2983
2983
|
var i = stringToArray(e);
|
|
2984
2984
|
return castSlice(i, charsStartIndex(i, stringToArray(t))).join("");
|
|
@@ -3003,7 +3003,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
3003
3003
|
if (s && (c += l.length - c), Fr(a)) {
|
|
3004
3004
|
if (e.slice(c).search(a)) {
|
|
3005
3005
|
var u, d = l;
|
|
3006
|
-
for (a.global || (a = pt(a.source, toString(
|
|
3006
|
+
for (a.global || (a = pt(a.source, toString(it.exec(a)) + "g")), a.lastIndex = 0; u = a.exec(d);) var f = u.index;
|
|
3007
3007
|
l = l.slice(0, f === n ? c : f);
|
|
3008
3008
|
}
|
|
3009
3009
|
} else if (e.indexOf(baseToString(a), c) != c) {
|
|
@@ -3013,7 +3013,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
3013
3013
|
return l + i;
|
|
3014
3014
|
}
|
|
3015
3015
|
function unescape(e) {
|
|
3016
|
-
return e = toString(e), e &&
|
|
3016
|
+
return e = toString(e), e && ze.test(e) ? e.replace(Le, vn) : e;
|
|
3017
3017
|
}
|
|
3018
3018
|
var ci = createCompounder(function(e, t, n) {
|
|
3019
3019
|
return e + (n ? " " : "") + t.toUpperCase();
|
|
@@ -3025,7 +3025,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
3025
3025
|
try {
|
|
3026
3026
|
return apply(e, n, t);
|
|
3027
3027
|
} catch (e) {
|
|
3028
|
-
return isError(e) ? e : new
|
|
3028
|
+
return isError(e) ? e : new et(e);
|
|
3029
3029
|
}
|
|
3030
3030
|
}), di = flatRest(function(e, t) {
|
|
3031
3031
|
return arrayEach(t, function(t) {
|
|
@@ -3304,7 +3304,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
3304
3304
|
return yn;
|
|
3305
3305
|
})) : Z ? ((Z.exports = yn)._ = yn, on._ = yn) : X._ = yn;
|
|
3306
3306
|
}).call(e);
|
|
3307
|
-
})))()),
|
|
3307
|
+
})))()), ge = c({
|
|
3308
3308
|
name: "ComponentRegistration",
|
|
3309
3309
|
props: { course: {
|
|
3310
3310
|
type: String,
|
|
@@ -3334,7 +3334,7 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
3334
3334
|
registered: t !== void 0,
|
|
3335
3335
|
displayable: e.displayable
|
|
3336
3336
|
});
|
|
3337
|
-
}), this.dataShapes =
|
|
3337
|
+
}), this.dataShapes = L.sortBy(this.dataShapes, ["registered", "name"]);
|
|
3338
3338
|
let t = w.courses.map((e) => e.name), n = [];
|
|
3339
3339
|
t.forEach((e) => {
|
|
3340
3340
|
w.getCourseWare(e).questions.forEach((t) => {
|
|
@@ -3383,25 +3383,35 @@ var le = Object.create, ue = Object.defineProperty, __name = (e, t) => ue(e, "na
|
|
|
3383
3383
|
});
|
|
3384
3384
|
for (let e of this.courseConfig.dataShapes) e.name === r && e.questionTypes.push(n);
|
|
3385
3385
|
});
|
|
3386
|
-
let r = await this.courseDB.updateCourseConfig(this.courseConfig), i = await
|
|
3387
|
-
r.ok
|
|
3386
|
+
let r = await this.courseDB.updateCourseConfig(this.courseConfig), i = await le();
|
|
3387
|
+
if (r.ok) if (t.registered = !0, console.log(`[ComponentRegistration]
|
|
3388
3388
|
Question: ${JSON.stringify(t)}
|
|
3389
3389
|
CourseID: ${this.course}
|
|
3390
|
-
`), t.question.seedData
|
|
3391
|
-
|
|
3392
|
-
|
|
3390
|
+
`), t.question.seedData) {
|
|
3391
|
+
console.log("[ComponentRegistration] Question has seed data!");
|
|
3392
|
+
let e = t.question.seedData, n = 0;
|
|
3393
|
+
for (let r = 0; r < e.length; r++) {
|
|
3394
|
+
t.seedProgress = `seeding ${r + 1}/${e.length}`;
|
|
3395
|
+
let a = t.question.seedMeta?.(e[r]) ?? {}, o = await this.courseDB.addNote(t.course, t.question.dataShapes[0], e[r], i.getUsername(), a.tags ?? [], void 0, a.elo === void 0 ? void 0 : re(a.elo));
|
|
3396
|
+
o.status !== N.ok && (n++, console.error(`[ComponentRegistration] Seed ${r} failed: ${o.message}`));
|
|
3397
|
+
}
|
|
3398
|
+
t.seedProgress = `seeded ${e.length - n}/${e.length}` + (n ? ` (${n} failed)` : "");
|
|
3399
|
+
} else console.log("[ComponentRegistration] Question has NO seed data!");
|
|
3393
3400
|
}
|
|
3394
3401
|
}
|
|
3395
|
-
}),
|
|
3402
|
+
}), R = /* @__PURE__ */ __name((e, t) => {
|
|
3396
3403
|
let n = e.__vccOpts || e;
|
|
3397
3404
|
for (let [e, r] of t) n[e] = r;
|
|
3398
3405
|
return n;
|
|
3399
|
-
}, "default"),
|
|
3406
|
+
}, "default"), _e = {
|
|
3400
3407
|
key: 1,
|
|
3401
3408
|
class: "inset"
|
|
3402
|
-
},
|
|
3409
|
+
}, z = { key: 0 }, ve = {
|
|
3403
3410
|
key: 1,
|
|
3404
3411
|
class: "inset"
|
|
3412
|
+
}, ye = {
|
|
3413
|
+
key: 2,
|
|
3414
|
+
class: "inset"
|
|
3405
3415
|
};
|
|
3406
3416
|
function _sfc_render$16(t, s, c, l, u, f) {
|
|
3407
3417
|
let g = m("v-btn");
|
|
@@ -3411,7 +3421,7 @@ function _sfc_render$16(t, s, c, l, u, f) {
|
|
|
3411
3421
|
key: c.name,
|
|
3412
3422
|
class: "ma-2"
|
|
3413
3423
|
}, [
|
|
3414
|
-
c.registered ? (d(), i("span",
|
|
3424
|
+
c.registered ? (d(), i("span", _e, " (Registered) ")) : (d(), n(g, {
|
|
3415
3425
|
key: 0,
|
|
3416
3426
|
size: "small",
|
|
3417
3427
|
onClick: (e) => t.registerShape(c.name)
|
|
@@ -3420,24 +3430,28 @@ function _sfc_render$16(t, s, c, l, u, f) {
|
|
|
3420
3430
|
_: 2
|
|
3421
3431
|
}, 1032, ["onClick"])),
|
|
3422
3432
|
o(" " + h(c.name) + " ", 1),
|
|
3423
|
-
a("ul", null, [(d(!0), i(e, null, p(c.dataShape.views, (e) => (d(), i("div", { key: e.name }, [e ? (d(), i("li",
|
|
3433
|
+
a("ul", null, [(d(!0), i(e, null, p(c.dataShape.views, (e) => (d(), i("div", { key: e.name }, [e ? (d(), i("li", z, h(e.name), 1)) : r("", !0)]))), 128))])
|
|
3424
3434
|
]))), 128))]),
|
|
3425
3435
|
s[3] || (s[3] = a("h3", null, "Questions", -1)),
|
|
3426
3436
|
a("ul", null, [(d(!0), i(e, null, p(t.questions, (e) => (d(), i("li", {
|
|
3427
3437
|
key: e.name,
|
|
3428
3438
|
class: "ma-2"
|
|
3429
|
-
}, [
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3439
|
+
}, [
|
|
3440
|
+
e.registered ? (d(), i("span", ve, " (Registered) ")) : (d(), n(g, {
|
|
3441
|
+
key: 0,
|
|
3442
|
+
size: "small",
|
|
3443
|
+
onClick: (n) => t.registerQuestionView(e.name)
|
|
3444
|
+
}, {
|
|
3445
|
+
default: _(() => s[1] || (s[1] = [o(" Register ")])),
|
|
3446
|
+
_: 2
|
|
3447
|
+
}, 1032, ["onClick"])),
|
|
3448
|
+
o(" " + h(e.name) + " ", 1),
|
|
3449
|
+
e.seedProgress ? (d(), i("span", ye, h(e.seedProgress), 1)) : r("", !0)
|
|
3450
|
+
]))), 128))])
|
|
3437
3451
|
]);
|
|
3438
3452
|
}
|
|
3439
3453
|
__name(_sfc_render$16, "_sfc_render");
|
|
3440
|
-
var
|
|
3454
|
+
var be = /* @__PURE__ */ R(ge, [["render", _sfc_render$16], ["__scopeId", "data-v-cfee2b8c"]]), xe = c({
|
|
3441
3455
|
name: "NavigationStrategyList",
|
|
3442
3456
|
props: {
|
|
3443
3457
|
strategies: {
|
|
@@ -3463,10 +3477,10 @@ var _e = /* @__PURE__ */ z(R, [["render", _sfc_render$16], ["__scopeId", "data-v
|
|
|
3463
3477
|
return e.serializedData;
|
|
3464
3478
|
}
|
|
3465
3479
|
} }
|
|
3466
|
-
}),
|
|
3480
|
+
}), Se = { class: "navigation-strategy-list" }, Ce = { key: 0 }, we = { class: "d-flex" };
|
|
3467
3481
|
function _sfc_render$15(t, c, l, u, f, g) {
|
|
3468
3482
|
let v = m("v-radio"), y = m("v-list-item-title"), b = m("v-list-item-subtitle"), x = m("v-icon"), S = m("v-btn"), C = m("v-list-item"), w = m("v-list"), T = m("v-radio-group");
|
|
3469
|
-
return d(), i("div",
|
|
3483
|
+
return d(), i("div", Se, [s(T, {
|
|
3470
3484
|
"model-value": t.defaultStrategyId,
|
|
3471
3485
|
"onUpdate:modelValue": c[0] || (c[0] = (e) => t.$emit("update:defaultStrategy", e)),
|
|
3472
3486
|
density: "compact"
|
|
@@ -3477,7 +3491,7 @@ function _sfc_render$15(t, c, l, u, f, g) {
|
|
|
3477
3491
|
lines: "two"
|
|
3478
3492
|
}, {
|
|
3479
3493
|
prepend: _(() => [s(v, { value: e._id }, null, 8, ["value"])]),
|
|
3480
|
-
append: _(() => [a("div",
|
|
3494
|
+
append: _(() => [a("div", we, [s(S, {
|
|
3481
3495
|
icon: "",
|
|
3482
3496
|
size: "x-small",
|
|
3483
3497
|
variant: "text",
|
|
@@ -3506,7 +3520,7 @@ function _sfc_render$15(t, c, l, u, f, g) {
|
|
|
3506
3520
|
default: _(() => [o(h(e.name), 1)]),
|
|
3507
3521
|
_: 2
|
|
3508
3522
|
}, 1024), s(b, { class: "text-caption" }, {
|
|
3509
|
-
default: _(() => [o(h(e.implementingClass) + " ", 1), e.description ? (d(), i("span",
|
|
3523
|
+
default: _(() => [o(h(e.implementingClass) + " ", 1), e.description ? (d(), i("span", Ce, " • " + h(e.description), 1)) : r("", !0)]),
|
|
3510
3524
|
_: 2
|
|
3511
3525
|
}, 1024)]),
|
|
3512
3526
|
_: 2
|
|
@@ -3517,7 +3531,7 @@ function _sfc_render$15(t, c, l, u, f, g) {
|
|
|
3517
3531
|
}, 8, ["model-value"])]);
|
|
3518
3532
|
}
|
|
3519
3533
|
__name(_sfc_render$15, "_sfc_render");
|
|
3520
|
-
var
|
|
3534
|
+
var Te = /* @__PURE__ */ R(xe, [["render", _sfc_render$15], ["__scopeId", "data-v-1fcb2a5f"]]), Ee = c({
|
|
3521
3535
|
name: "HierarchyConfigForm",
|
|
3522
3536
|
props: {
|
|
3523
3537
|
modelValue: {
|
|
@@ -3685,10 +3699,10 @@ var Se = /* @__PURE__ */ z(ve, [["render", _sfc_render$15], ["__scopeId", "data-
|
|
|
3685
3699
|
updateFromJson
|
|
3686
3700
|
};
|
|
3687
3701
|
}
|
|
3688
|
-
}),
|
|
3702
|
+
}), De = { class: "hierarchy-config-form" }, Oe = { class: "prerequisites-section" }, ke = { class: "d-flex align-center mb-2" }, Ae = { class: "d-flex align-center mb-2" };
|
|
3689
3703
|
function _sfc_render$14(t, c, l, u, f, g) {
|
|
3690
3704
|
let v = m("v-tab"), y = m("v-tabs"), b = m("v-spacer"), x = m("v-icon"), S = m("v-btn"), C = m("v-alert"), w = m("v-select"), T = m("v-divider"), E = m("v-text-field"), D = m("v-card"), O = m("v-window-item"), k = m("v-textarea"), A = m("v-window");
|
|
3691
|
-
return d(), i("div",
|
|
3705
|
+
return d(), i("div", De, [
|
|
3692
3706
|
s(y, {
|
|
3693
3707
|
modelValue: t.inputMode,
|
|
3694
3708
|
"onUpdate:modelValue": c[0] || (c[0] = (e) => t.inputMode = e),
|
|
@@ -3709,8 +3723,8 @@ function _sfc_render$14(t, c, l, u, f, g) {
|
|
|
3709
3723
|
"onUpdate:modelValue": c[1] || (c[1] = (e) => t.inputMode = e)
|
|
3710
3724
|
}, {
|
|
3711
3725
|
default: _(() => [s(O, { value: "ui" }, {
|
|
3712
|
-
default: _(() => [a("div",
|
|
3713
|
-
a("div",
|
|
3726
|
+
default: _(() => [a("div", Oe, [
|
|
3727
|
+
a("div", ke, [
|
|
3714
3728
|
c[6] || (c[6] = a("h4", { class: "text-subtitle-1" }, "Prerequisites", -1)),
|
|
3715
3729
|
s(b),
|
|
3716
3730
|
s(S, {
|
|
@@ -3739,7 +3753,7 @@ function _sfc_render$14(t, c, l, u, f, g) {
|
|
|
3739
3753
|
class: "mb-3 pa-3"
|
|
3740
3754
|
}, {
|
|
3741
3755
|
default: _(() => [
|
|
3742
|
-
a("div",
|
|
3756
|
+
a("div", Ae, [
|
|
3743
3757
|
s(w, {
|
|
3744
3758
|
"model-value": l,
|
|
3745
3759
|
"onUpdate:modelValue": (e) => t.renamePrerequisiteTag(l, e),
|
|
@@ -3888,7 +3902,7 @@ function _sfc_render$14(t, c, l, u, f, g) {
|
|
|
3888
3902
|
]);
|
|
3889
3903
|
}
|
|
3890
3904
|
__name(_sfc_render$14, "_sfc_render");
|
|
3891
|
-
var
|
|
3905
|
+
var je = /* @__PURE__ */ R(Ee, [["render", _sfc_render$14], ["__scopeId", "data-v-470885e1"]]), Me = c({
|
|
3892
3906
|
name: "InterferenceConfigForm",
|
|
3893
3907
|
props: {
|
|
3894
3908
|
modelValue: {
|
|
@@ -4047,10 +4061,10 @@ var Oe = /* @__PURE__ */ z(Ce, [["render", _sfc_render$14], ["__scopeId", "data-
|
|
|
4047
4061
|
updateFromJson
|
|
4048
4062
|
};
|
|
4049
4063
|
}
|
|
4050
|
-
}),
|
|
4064
|
+
}), Ne = { class: "interference-config-form" }, Pe = { class: "maturity-section mb-4" }, Fe = { class: "mb-4" }, Ie = { class: "interference-groups-section" }, Le = { class: "d-flex align-center mb-2" }, Re = { class: "d-flex align-center mb-2" }, ze = { class: "text-subtitle-2" };
|
|
4051
4065
|
function _sfc_render$13(t, c, l, u, f, g) {
|
|
4052
4066
|
let v = m("v-tab"), y = m("v-tabs"), b = m("v-text-field"), x = m("v-slider"), S = m("v-spacer"), C = m("v-icon"), w = m("v-btn"), T = m("v-alert"), E = m("v-select"), D = m("v-card"), O = m("v-window-item"), k = m("v-textarea"), A = m("v-window");
|
|
4053
|
-
return d(), i("div",
|
|
4067
|
+
return d(), i("div", Ne, [
|
|
4054
4068
|
s(y, {
|
|
4055
4069
|
modelValue: t.inputMode,
|
|
4056
4070
|
"onUpdate:modelValue": c[0] || (c[0] = (e) => t.inputMode = e),
|
|
@@ -4072,7 +4086,7 @@ function _sfc_render$13(t, c, l, u, f, g) {
|
|
|
4072
4086
|
}, {
|
|
4073
4087
|
default: _(() => [s(O, { value: "ui" }, {
|
|
4074
4088
|
default: _(() => [
|
|
4075
|
-
a("div",
|
|
4089
|
+
a("div", Pe, [
|
|
4076
4090
|
c[4] || (c[4] = a("h4", { class: "text-subtitle-1 mb-2" }, "Maturity Threshold", -1)),
|
|
4077
4091
|
c[5] || (c[5] = a("p", { class: "text-caption mb-3" }, "Tags below this threshold are considered \"immature\" (still being learned)", -1)),
|
|
4078
4092
|
s(b, {
|
|
@@ -4105,7 +4119,7 @@ function _sfc_render$13(t, c, l, u, f, g) {
|
|
|
4105
4119
|
density: "compact"
|
|
4106
4120
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4107
4121
|
]),
|
|
4108
|
-
a("div",
|
|
4122
|
+
a("div", Fe, [s(x, {
|
|
4109
4123
|
"model-value": t.config.defaultDecay || .8,
|
|
4110
4124
|
"onUpdate:modelValue": t.updateDefaultDecay,
|
|
4111
4125
|
label: "Default Decay",
|
|
@@ -4129,8 +4143,8 @@ function _sfc_render$13(t, c, l, u, f, g) {
|
|
|
4129
4143
|
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
4130
4144
|
_: 1
|
|
4131
4145
|
}, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
4132
|
-
a("div",
|
|
4133
|
-
a("div",
|
|
4146
|
+
a("div", Ie, [
|
|
4147
|
+
a("div", Le, [
|
|
4134
4148
|
c[8] || (c[8] = a("h4", { class: "text-subtitle-1" }, "Interference Groups", -1)),
|
|
4135
4149
|
s(S),
|
|
4136
4150
|
s(w, {
|
|
@@ -4159,8 +4173,8 @@ function _sfc_render$13(t, c, l, u, f, g) {
|
|
|
4159
4173
|
class: "mb-3 pa-3"
|
|
4160
4174
|
}, {
|
|
4161
4175
|
default: _(() => [
|
|
4162
|
-
a("div",
|
|
4163
|
-
a("h5",
|
|
4176
|
+
a("div", Re, [
|
|
4177
|
+
a("h5", ze, "Group " + h(r + 1), 1),
|
|
4164
4178
|
s(S),
|
|
4165
4179
|
s(w, {
|
|
4166
4180
|
icon: "",
|
|
@@ -4269,7 +4283,7 @@ function _sfc_render$13(t, c, l, u, f, g) {
|
|
|
4269
4283
|
]);
|
|
4270
4284
|
}
|
|
4271
4285
|
__name(_sfc_render$13, "_sfc_render");
|
|
4272
|
-
var
|
|
4286
|
+
var Be = /* @__PURE__ */ R(Me, [["render", _sfc_render$13], ["__scopeId", "data-v-20d01937"]]), Ve = c({
|
|
4273
4287
|
name: "RelativePriorityConfigForm",
|
|
4274
4288
|
props: {
|
|
4275
4289
|
modelValue: {
|
|
@@ -4387,13 +4401,13 @@ var Le = /* @__PURE__ */ z(ke, [["render", _sfc_render$13], ["__scopeId", "data-
|
|
|
4387
4401
|
updateFromJson
|
|
4388
4402
|
};
|
|
4389
4403
|
}
|
|
4390
|
-
}),
|
|
4404
|
+
}), He = { class: "relative-priority-config-form" }, Ue = { class: "config-options mb-4" }, We = { class: "tag-priorities-section" }, Ge = {
|
|
4391
4405
|
key: 2,
|
|
4392
4406
|
class: "tag-priority-list"
|
|
4393
4407
|
};
|
|
4394
4408
|
function _sfc_render$12(t, c, l, u, f, g) {
|
|
4395
4409
|
let v = m("v-tab"), y = m("v-tabs"), b = m("v-text-field"), x = m("v-slider"), S = m("v-select"), C = m("v-alert"), w = m("v-window-item"), T = m("v-textarea"), E = m("v-window");
|
|
4396
|
-
return d(), i("div",
|
|
4410
|
+
return d(), i("div", He, [
|
|
4397
4411
|
s(y, {
|
|
4398
4412
|
modelValue: t.inputMode,
|
|
4399
4413
|
"onUpdate:modelValue": c[0] || (c[0] = (e) => t.inputMode = e),
|
|
@@ -4414,7 +4428,7 @@ function _sfc_render$12(t, c, l, u, f, g) {
|
|
|
4414
4428
|
"onUpdate:modelValue": c[1] || (c[1] = (e) => t.inputMode = e)
|
|
4415
4429
|
}, {
|
|
4416
4430
|
default: _(() => [s(w, { value: "ui" }, {
|
|
4417
|
-
default: _(() => [a("div",
|
|
4431
|
+
default: _(() => [a("div", Ue, [
|
|
4418
4432
|
c[4] || (c[4] = a("h4", { class: "text-subtitle-1 mb-2" }, "Priority Configuration", -1)),
|
|
4419
4433
|
s(x, {
|
|
4420
4434
|
"model-value": t.config.defaultPriority === void 0 ? .5 : t.config.defaultPriority,
|
|
@@ -4479,7 +4493,7 @@ function _sfc_render$12(t, c, l, u, f, g) {
|
|
|
4479
4493
|
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
4480
4494
|
_: 1
|
|
4481
4495
|
}, 8, ["model-value", "onUpdate:modelValue"])
|
|
4482
|
-
]), a("div",
|
|
4496
|
+
]), a("div", We, [
|
|
4483
4497
|
c[7] || (c[7] = a("h4", { class: "text-subtitle-1 mb-2" }, "Tag Priorities", -1)),
|
|
4484
4498
|
c[8] || (c[8] = a("p", { class: "text-caption mb-3" }, "Set priority for each tag (1.0 = highest priority, 0.0 = lowest)", -1)),
|
|
4485
4499
|
t.loadingTags ? (d(), n(C, {
|
|
@@ -4496,7 +4510,7 @@ function _sfc_render$12(t, c, l, u, f, g) {
|
|
|
4496
4510
|
}, {
|
|
4497
4511
|
default: _(() => c[6] || (c[6] = [o(" No tags available in course ")])),
|
|
4498
4512
|
_: 1
|
|
4499
|
-
})) : (d(), i("div",
|
|
4513
|
+
})) : (d(), i("div", Ge, [(d(!0), i(e, null, p(t.availableTags, (e) => (d(), i("div", {
|
|
4500
4514
|
key: e,
|
|
4501
4515
|
class: "tag-priority-item mb-3"
|
|
4502
4516
|
}, [s(x, {
|
|
@@ -4573,13 +4587,13 @@ function _sfc_render$12(t, c, l, u, f, g) {
|
|
|
4573
4587
|
__name(_sfc_render$12, "_sfc_render");
|
|
4574
4588
|
//#endregion
|
|
4575
4589
|
//#region src/components/NavigationStrategy/NavigationStrategyEditor.vue?vue&type=script&lang.ts
|
|
4576
|
-
var
|
|
4590
|
+
var Ke = c({
|
|
4577
4591
|
name: "NavigationStrategyEditor",
|
|
4578
4592
|
components: {
|
|
4579
|
-
NavigationStrategyList:
|
|
4580
|
-
HierarchyConfigForm:
|
|
4581
|
-
InterferenceConfigForm:
|
|
4582
|
-
RelativePriorityConfigForm: /* @__PURE__ */
|
|
4593
|
+
NavigationStrategyList: Te,
|
|
4594
|
+
HierarchyConfigForm: je,
|
|
4595
|
+
InterferenceConfigForm: Be,
|
|
4596
|
+
RelativePriorityConfigForm: /* @__PURE__ */ R(Ve, [["render", _sfc_render$12], ["__scopeId", "data-v-573b50bd"]])
|
|
4583
4597
|
},
|
|
4584
4598
|
props: { courseId: {
|
|
4585
4599
|
type: String,
|
|
@@ -4788,20 +4802,20 @@ var Ue = c({
|
|
|
4788
4802
|
}
|
|
4789
4803
|
}
|
|
4790
4804
|
}
|
|
4791
|
-
}),
|
|
4805
|
+
}), qe = { class: "navigation-strategy-editor" }, Je = {
|
|
4792
4806
|
key: 0,
|
|
4793
4807
|
class: "text-center pa-4"
|
|
4794
|
-
},
|
|
4808
|
+
}, Ye = {
|
|
4795
4809
|
key: 1,
|
|
4796
4810
|
class: "editor-layout"
|
|
4797
|
-
},
|
|
4811
|
+
}, Xe = { class: "strategy-list-column" }, Ze = { class: "d-flex align-center mb-2" }, Qe = { class: "strategy-form-column" }, $e = { class: "form-header d-flex align-center mb-3" }, et = { class: "text-h6" }, tt = { class: "form-actions mt-4" };
|
|
4798
4812
|
function _sfc_render$11(e, t, c, l, u, f) {
|
|
4799
4813
|
let p = m("v-progress-circular"), g = m("v-spacer"), v = m("v-icon"), y = m("v-btn"), b = m("v-alert"), x = m("navigation-strategy-list"), S = m("v-select"), C = m("v-text-field"), w = m("hierarchy-config-form"), T = m("interference-config-form"), E = m("relative-priority-config-form"), D = m("v-card-title"), O = m("v-card-text"), k = m("v-card-actions"), A = m("v-card"), ee = m("v-dialog");
|
|
4800
|
-
return d(), i("div",
|
|
4814
|
+
return d(), i("div", qe, [e.loading ? (d(), i("div", Je, [s(p, {
|
|
4801
4815
|
indeterminate: "",
|
|
4802
4816
|
color: "secondary"
|
|
4803
|
-
})])) : (d(), i("div",
|
|
4804
|
-
a("div",
|
|
4817
|
+
})])) : (d(), i("div", Ye, [
|
|
4818
|
+
a("div", Xe, [a("div", Ze, [
|
|
4805
4819
|
t[10] || (t[10] = a("h3", { class: "text-h6" }, "Strategies", -1)),
|
|
4806
4820
|
s(g),
|
|
4807
4821
|
s(y, {
|
|
@@ -4840,9 +4854,9 @@ function _sfc_render$11(e, t, c, l, u, f) {
|
|
|
4840
4854
|
"onEdit",
|
|
4841
4855
|
"onDelete"
|
|
4842
4856
|
]))]),
|
|
4843
|
-
a("div",
|
|
4844
|
-
a("div",
|
|
4845
|
-
a("h3",
|
|
4857
|
+
a("div", Qe, [
|
|
4858
|
+
a("div", $e, [
|
|
4859
|
+
a("h3", et, h(e.editingStrategy ? "Edit Strategy" : "New Strategy"), 1),
|
|
4846
4860
|
s(g),
|
|
4847
4861
|
e.editingStrategy ? (d(), n(y, {
|
|
4848
4862
|
key: 0,
|
|
@@ -4902,7 +4916,7 @@ function _sfc_render$11(e, t, c, l, u, f) {
|
|
|
4902
4916
|
default: _(() => [o(" Unknown strategy type: " + h(e.newStrategy.type), 1)]),
|
|
4903
4917
|
_: 1
|
|
4904
4918
|
})),
|
|
4905
|
-
a("div",
|
|
4919
|
+
a("div", tt, [s(y, {
|
|
4906
4920
|
color: "primary",
|
|
4907
4921
|
onClick: e.saveStrategy,
|
|
4908
4922
|
disabled: !e.newStrategy.name,
|
|
@@ -4964,7 +4978,7 @@ function _sfc_render$11(e, t, c, l, u, f) {
|
|
|
4964
4978
|
]))]);
|
|
4965
4979
|
}
|
|
4966
4980
|
__name(_sfc_render$11, "_sfc_render");
|
|
4967
|
-
var
|
|
4981
|
+
var nt = /* @__PURE__ */ R(Ke, [["render", _sfc_render$11], ["__scopeId", "data-v-1cb6c357"]]);
|
|
4968
4982
|
//#endregion
|
|
4969
4983
|
//#region src/components/ViewableDataInputForm/FieldInput.types.ts
|
|
4970
4984
|
function isFieldInput(e) {
|
|
@@ -4972,7 +4986,7 @@ function isFieldInput(e) {
|
|
|
4972
4986
|
}
|
|
4973
4987
|
//#endregion
|
|
4974
4988
|
//#region src/components/ViewableDataInputForm/FieldInputs/typeValidators.ts
|
|
4975
|
-
var
|
|
4989
|
+
var rt = {
|
|
4976
4990
|
status: N.ok,
|
|
4977
4991
|
msg: ""
|
|
4978
4992
|
};
|
|
@@ -4981,14 +4995,14 @@ function numberValidator(e) {
|
|
|
4981
4995
|
status: N.error,
|
|
4982
4996
|
msg: "This input must be a number"
|
|
4983
4997
|
};
|
|
4984
|
-
return isNumeric(e) ?
|
|
4998
|
+
return isNumeric(e) ? rt : t;
|
|
4985
4999
|
}
|
|
4986
5000
|
function integerValidator(e) {
|
|
4987
5001
|
let t = {
|
|
4988
5002
|
status: N.error,
|
|
4989
5003
|
msg: "This input must be an integer (..., -2, -1, 0, 1, 2, ...)."
|
|
4990
5004
|
};
|
|
4991
|
-
return numberValidator(e).status === N.error ? numberValidator(e) : isInteger(e) ?
|
|
5005
|
+
return numberValidator(e).status === N.error ? numberValidator(e) : isInteger(e) ? rt : t;
|
|
4992
5006
|
}
|
|
4993
5007
|
function isNumeric(e) {
|
|
4994
5008
|
return !isNaN(e - parseFloat(e));
|
|
@@ -4998,7 +5012,7 @@ function isInteger(e) {
|
|
|
4998
5012
|
}
|
|
4999
5013
|
//#endregion
|
|
5000
5014
|
//#region src/stores/useFieldInputStore.ts
|
|
5001
|
-
var
|
|
5015
|
+
var it = ue("fieldStore", {
|
|
5002
5016
|
state: () => ({
|
|
5003
5017
|
dataShape: null,
|
|
5004
5018
|
inputs: {},
|
|
@@ -5059,7 +5073,7 @@ var tt = ce("fieldStore", {
|
|
|
5059
5073
|
delete this.inputs[e], delete this.validation[e], delete this.convertedInput[e], delete this.previewInput[e];
|
|
5060
5074
|
}
|
|
5061
5075
|
}
|
|
5062
|
-
}),
|
|
5076
|
+
}), B = c({
|
|
5063
5077
|
name: "FieldInput",
|
|
5064
5078
|
props: {
|
|
5065
5079
|
autofocus: Boolean,
|
|
@@ -5069,7 +5083,7 @@ var tt = ce("fieldStore", {
|
|
|
5069
5083
|
}
|
|
5070
5084
|
},
|
|
5071
5085
|
setup(e) {
|
|
5072
|
-
let n =
|
|
5086
|
+
let n = it(), r = f(null), i = t({
|
|
5073
5087
|
get: () => n.inputs[e.field.name],
|
|
5074
5088
|
set: (t) => n.setFieldValue(e.field.name, t)
|
|
5075
5089
|
});
|
|
@@ -5096,7 +5110,7 @@ var tt = ce("fieldStore", {
|
|
|
5096
5110
|
if (r.value.value = "", !e.field?.name) return;
|
|
5097
5111
|
n.clearField(e.field.name);
|
|
5098
5112
|
}
|
|
5099
|
-
}, vuetifyRules = () => e.field?.validator ? a.value.map((e) =>
|
|
5113
|
+
}, vuetifyRules = () => e.field?.validator ? a.value.map((e) => ie(e)) : [], generateTags = () => (console.log("[FieldInput] Running generic generateTags() in FieldInput.ts"), e.field?.tagger ? e.field.tagger(userInput()) : []), generateELO = () => (console.log("[FieldInput] Running generic generateELO() in FieldInput.ts"), e.field?.generateELO ? e.field.generateELO(userInput()) : void 0);
|
|
5100
5114
|
return {
|
|
5101
5115
|
inputField: r,
|
|
5102
5116
|
fieldStore: n,
|
|
@@ -5117,12 +5131,12 @@ var tt = ce("fieldStore", {
|
|
|
5117
5131
|
msg: ""
|
|
5118
5132
|
} };
|
|
5119
5133
|
}
|
|
5120
|
-
}),
|
|
5134
|
+
}), at = c({
|
|
5121
5135
|
name: "IntegerInput",
|
|
5122
|
-
extends:
|
|
5136
|
+
extends: B,
|
|
5123
5137
|
setup(e, n) {
|
|
5124
|
-
let r =
|
|
5125
|
-
let t =
|
|
5138
|
+
let r = B.setup?.(e, n), i = t(() => {
|
|
5139
|
+
let t = B.validators.call(this);
|
|
5126
5140
|
return e.field.validator?.test && t.push(e.field.validator.test), t ? [integerValidator, ...t] : [integerValidator];
|
|
5127
5141
|
});
|
|
5128
5142
|
return {
|
|
@@ -5156,11 +5170,11 @@ function _sfc_render$10(e, t, r, i, a, o) {
|
|
|
5156
5170
|
]);
|
|
5157
5171
|
}
|
|
5158
5172
|
__name(_sfc_render$10, "_sfc_render");
|
|
5159
|
-
var
|
|
5173
|
+
var ot = /* @__PURE__ */ R(at, [["render", _sfc_render$10]]), st = c({
|
|
5160
5174
|
name: "MarkdownInput",
|
|
5161
|
-
extends:
|
|
5175
|
+
extends: B,
|
|
5162
5176
|
setup(e, t) {
|
|
5163
|
-
return { ...
|
|
5177
|
+
return { ...B.setup?.(e, t) };
|
|
5164
5178
|
}
|
|
5165
5179
|
});
|
|
5166
5180
|
//#endregion
|
|
@@ -5187,11 +5201,11 @@ function _sfc_render$9(e, t, r, i, a, o) {
|
|
|
5187
5201
|
]);
|
|
5188
5202
|
}
|
|
5189
5203
|
__name(_sfc_render$9, "_sfc_render");
|
|
5190
|
-
var
|
|
5204
|
+
var ct = /* @__PURE__ */ R(st, [["render", _sfc_render$9], ["__scopeId", "data-v-28ef24ff"]]), lt = c({
|
|
5191
5205
|
name: "MediaDragDropUploader",
|
|
5192
|
-
extends:
|
|
5206
|
+
extends: B,
|
|
5193
5207
|
setup(e, t) {
|
|
5194
|
-
let n =
|
|
5208
|
+
let n = B.setup?.(e, t), { fieldStore: r } = n;
|
|
5195
5209
|
return {
|
|
5196
5210
|
...n,
|
|
5197
5211
|
fieldStore: r
|
|
@@ -5284,10 +5298,10 @@ var at = /* @__PURE__ */ z(it, [["render", _sfc_render$9], ["__scopeId", "data-v
|
|
|
5284
5298
|
})];
|
|
5285
5299
|
}
|
|
5286
5300
|
}
|
|
5287
|
-
}),
|
|
5301
|
+
}), ut = { class: "mr-2 mb-2" }, dt = ["src"], ft = ["src"];
|
|
5288
5302
|
function _sfc_render$8(t, n, c, u, f, h) {
|
|
5289
5303
|
let g = m("v-label"), v = m("v-btn");
|
|
5290
|
-
return d(), i("div",
|
|
5304
|
+
return d(), i("div", ut, [s(g, { class: "text-h5" }, {
|
|
5291
5305
|
default: _(() => n[5] || (n[5] = [o("Add media:")])),
|
|
5292
5306
|
_: 1
|
|
5293
5307
|
}), a("div", {
|
|
@@ -5313,11 +5327,11 @@ function _sfc_render$8(t, n, c, u, f, h) {
|
|
|
5313
5327
|
src: e.thumbnailUrl,
|
|
5314
5328
|
alt: "Uploaded image thumbnail",
|
|
5315
5329
|
class: "thumbnail"
|
|
5316
|
-
}, null, 8,
|
|
5330
|
+
}, null, 8, dt)) : e.type === "audio" ? (d(), i("audio", {
|
|
5317
5331
|
key: 1,
|
|
5318
5332
|
controls: "",
|
|
5319
5333
|
src: e.url
|
|
5320
|
-
}, null, 8,
|
|
5334
|
+
}, null, 8, ft)) : r("", !0), s(v, {
|
|
5321
5335
|
size: "small",
|
|
5322
5336
|
onClick: (e) => t.removeMedia(a)
|
|
5323
5337
|
}, {
|
|
@@ -5332,10 +5346,10 @@ function _sfc_render$8(t, n, c, u, f, h) {
|
|
|
5332
5346
|
], 34)]);
|
|
5333
5347
|
}
|
|
5334
5348
|
__name(_sfc_render$8, "_sfc_render");
|
|
5335
|
-
var
|
|
5349
|
+
var V = /* @__PURE__ */ R(lt, [["render", _sfc_render$8], ["__scopeId", "data-v-e86645b6"]]), H = c({
|
|
5336
5350
|
name: "MidiInput",
|
|
5337
5351
|
components: { SyllableSeqVis: C },
|
|
5338
|
-
extends:
|
|
5352
|
+
extends: B,
|
|
5339
5353
|
data() {
|
|
5340
5354
|
return {
|
|
5341
5355
|
midi: null,
|
|
@@ -5387,11 +5401,11 @@ var ut = /* @__PURE__ */ z(ot, [["render", _sfc_render$8], ["__scopeId", "data-v
|
|
|
5387
5401
|
this.midi && (this.midi.play(), this.display = !0, this.validate());
|
|
5388
5402
|
}
|
|
5389
5403
|
}
|
|
5390
|
-
}),
|
|
5404
|
+
}), pt = { key: 0 }, mt = { class: "text-h5" }, U = { class: "font-weight-black" };
|
|
5391
5405
|
function _sfc_render$7(e, t, c, l, u, f) {
|
|
5392
5406
|
let p = m("syllable-seq-vis"), g = m("v-icon"), v = m("v-btn"), y = m("v-checkbox");
|
|
5393
5407
|
return d(), i("div", null, [
|
|
5394
|
-
e.recording ? (d(), i("div",
|
|
5408
|
+
e.recording ? (d(), i("div", pt, [a("span", mt, [t[1] || (t[1] = o(" Now Recording from device: ")), a("span", U, h(e.midi.configuredInput), 1)])])) : r("", !0),
|
|
5395
5409
|
(d(), n(p, {
|
|
5396
5410
|
key: 1,
|
|
5397
5411
|
ref: "inputVis",
|
|
@@ -5429,12 +5443,12 @@ function _sfc_render$7(e, t, c, l, u, f) {
|
|
|
5429
5443
|
]);
|
|
5430
5444
|
}
|
|
5431
5445
|
__name(_sfc_render$7, "_sfc_render");
|
|
5432
|
-
var
|
|
5446
|
+
var ht = /* @__PURE__ */ R(H, [["render", _sfc_render$7]]), gt = c({
|
|
5433
5447
|
name: "NumberInput",
|
|
5434
|
-
extends:
|
|
5448
|
+
extends: B,
|
|
5435
5449
|
setup(e, n) {
|
|
5436
|
-
let r =
|
|
5437
|
-
let t =
|
|
5450
|
+
let r = B.setup?.(e, n), i = t(() => {
|
|
5451
|
+
let t = B.validators.call(this);
|
|
5438
5452
|
return e.field.validator?.test && t.push(e.field.validator.test), t ? [numberValidator, ...t] : [numberValidator];
|
|
5439
5453
|
});
|
|
5440
5454
|
return {
|
|
@@ -5468,12 +5482,12 @@ function _sfc_render$6(e, t, r, i, a, o) {
|
|
|
5468
5482
|
]);
|
|
5469
5483
|
}
|
|
5470
5484
|
__name(_sfc_render$6, "_sfc_render");
|
|
5471
|
-
var
|
|
5485
|
+
var _t = /* @__PURE__ */ R(gt, [["render", _sfc_render$6]]), vt = c({
|
|
5472
5486
|
name: "StringInput",
|
|
5473
|
-
extends:
|
|
5487
|
+
extends: B,
|
|
5474
5488
|
setup(e, n) {
|
|
5475
|
-
let r =
|
|
5476
|
-
let t =
|
|
5489
|
+
let r = B.setup?.(e, n), i = t(() => {
|
|
5490
|
+
let t = B.validators.call(this);
|
|
5477
5491
|
return e.field.validator?.test && t.push(e.field.validator.test), t || [];
|
|
5478
5492
|
});
|
|
5479
5493
|
return {
|
|
@@ -5507,11 +5521,11 @@ function _sfc_render$5(e, t, r, i, a, o) {
|
|
|
5507
5521
|
]);
|
|
5508
5522
|
}
|
|
5509
5523
|
__name(_sfc_render$5, "_sfc_render");
|
|
5510
|
-
var
|
|
5524
|
+
var yt = /* @__PURE__ */ R(vt, [["render", _sfc_render$5]]), W = c({
|
|
5511
5525
|
name: "ChessPuzzleInput",
|
|
5512
|
-
extends:
|
|
5526
|
+
extends: B,
|
|
5513
5527
|
setup(e, t) {
|
|
5514
|
-
let n =
|
|
5528
|
+
let n = B.setup?.(e, t), generateELO = () => {
|
|
5515
5529
|
if (!n) return;
|
|
5516
5530
|
let e = n.modelValue.value.split(","), t = parseInt(e[3]), r = parseInt(e[6]), i = {
|
|
5517
5531
|
global: {
|
|
@@ -5562,13 +5576,13 @@ function _sfc_render$4(e, t, r, i, a, o) {
|
|
|
5562
5576
|
]);
|
|
5563
5577
|
}
|
|
5564
5578
|
__name(_sfc_render$4, "_sfc_render");
|
|
5565
|
-
var
|
|
5579
|
+
var bt = /* @__PURE__ */ R(W, [["render", _sfc_render$4]]), xt = ue("dataInputForm", {
|
|
5566
5580
|
state: () => ({ dataInputForm: {
|
|
5567
5581
|
dataShape: null,
|
|
5568
5582
|
course: null,
|
|
5569
5583
|
shapeViews: [],
|
|
5570
5584
|
fields: [],
|
|
5571
|
-
fieldStore:
|
|
5585
|
+
fieldStore: it(),
|
|
5572
5586
|
uploading: !1
|
|
5573
5587
|
} }),
|
|
5574
5588
|
actions: {
|
|
@@ -5579,18 +5593,18 @@ var yt = /* @__PURE__ */ z(vt, [["render", _sfc_render$4]]), W = ce("dataInputFo
|
|
|
5579
5593
|
this.dataInputForm.course = e;
|
|
5580
5594
|
}
|
|
5581
5595
|
}
|
|
5582
|
-
}),
|
|
5596
|
+
}), St = c({
|
|
5583
5597
|
name: "DataInputForm",
|
|
5584
5598
|
components: {
|
|
5585
|
-
NumberInput:
|
|
5586
|
-
StringInput:
|
|
5587
|
-
IntegerInput:
|
|
5588
|
-
MarkdownInput:
|
|
5589
|
-
MidiInput:
|
|
5590
|
-
CardBrowser:
|
|
5591
|
-
MediaDragDropUploader:
|
|
5592
|
-
TagsInput:
|
|
5593
|
-
ChessPuzzleInput:
|
|
5599
|
+
NumberInput: _t,
|
|
5600
|
+
StringInput: yt,
|
|
5601
|
+
IntegerInput: ot,
|
|
5602
|
+
MarkdownInput: ct,
|
|
5603
|
+
MidiInput: ht,
|
|
5604
|
+
CardBrowser: ae,
|
|
5605
|
+
MediaDragDropUploader: V,
|
|
5606
|
+
TagsInput: ce,
|
|
5607
|
+
ChessPuzzleInput: bt
|
|
5594
5608
|
},
|
|
5595
5609
|
props: {
|
|
5596
5610
|
courseCfg: {
|
|
@@ -5618,7 +5632,7 @@ var yt = /* @__PURE__ */ z(vt, [["render", _sfc_render$4]]), W = ce("dataInputFo
|
|
|
5618
5632
|
tags: [],
|
|
5619
5633
|
autoCompleteSuggestions: [],
|
|
5620
5634
|
timer: void 0,
|
|
5621
|
-
dataInputFormStore:
|
|
5635
|
+
dataInputFormStore: xt(),
|
|
5622
5636
|
fieldInputRefs: [],
|
|
5623
5637
|
courseDB: null
|
|
5624
5638
|
};
|
|
@@ -5786,15 +5800,15 @@ var yt = /* @__PURE__ */ z(vt, [["render", _sfc_render$4]]), W = ce("dataInputFo
|
|
|
5786
5800
|
console.log(`[DataInputForm] Store: ${JSON.stringify(this.fieldStore.inputs)}`), console.log(`[DataInputForm] ConvertedStore: ${JSON.stringify(this.convertedInput)}`), this.uploading = !0;
|
|
5787
5801
|
let e = [];
|
|
5788
5802
|
this.inputContainsTranspositionFcns() ? (console.log(`[DataInputForm] Expanded input: ${JSON.stringify(this.expandO(this.convertedInput))}`), e = this.expandO(this.convertedInput)) : (console.log("[DataInputForm] No Transposition fcn detected"), e = [this.convertedInput]);
|
|
5789
|
-
let t = await Promise.all(e.map(async (e) => await this.courseDB.addNote(this.datashapeDescriptor.course, this.dataShape, e, (await
|
|
5803
|
+
let t = await Promise.all(e.map(async (e) => await this.courseDB.addNote(this.datashapeDescriptor.course, this.dataShape, e, (await le()).getUsername(), this.getTags(), void 0, this.getElo())));
|
|
5790
5804
|
if (t[0].status === N.ok) {
|
|
5791
|
-
|
|
5805
|
+
F({
|
|
5792
5806
|
text: "Content added... Thank you!",
|
|
5793
5807
|
status: N.ok
|
|
5794
5808
|
});
|
|
5795
5809
|
let e = this.$refs.tagsInput;
|
|
5796
5810
|
e.tags.length && (e.updateAvailableCourseTags(), e.tags = []), this.reset();
|
|
5797
|
-
} else
|
|
5811
|
+
} else F({
|
|
5798
5812
|
text: "A problem occurred. Content has not been added.",
|
|
5799
5813
|
status: N.error
|
|
5800
5814
|
}), console.error(`Error in DataInputForm.submit(). Result from addNote: ${JSON.stringify(t)}`), this.uploading = !1;
|
|
@@ -5830,7 +5844,7 @@ var yt = /* @__PURE__ */ z(vt, [["render", _sfc_render$4]]), W = ce("dataInputFo
|
|
|
5830
5844
|
return isFieldInput(e);
|
|
5831
5845
|
}
|
|
5832
5846
|
}
|
|
5833
|
-
}),
|
|
5847
|
+
}), Ct = { key: 1 };
|
|
5834
5848
|
function _sfc_render$3(t, a, c, l, u, f) {
|
|
5835
5849
|
let g = m("string-input"), v = m("chess-puzzle-input"), b = m("number-input"), x = m("integer-input"), S = m("markdown-input"), C = m("midi-input"), w = m("media-drag-drop-uploader"), T = m("tags-input"), E = m("v-icon"), D = m("v-btn"), O = m("v-form"), k = m("v-col"), A = m("card-browser"), ee = m("v-row"), j = m("v-container");
|
|
5836
5850
|
return d(), n(j, { fluid: "" }, {
|
|
@@ -5894,7 +5908,7 @@ function _sfc_render$3(t, a, c, l, u, f) {
|
|
|
5894
5908
|
"course-i-d": t.courseCfg.courseID,
|
|
5895
5909
|
"card-i-d": ""
|
|
5896
5910
|
}, null, 8, ["course-i-d"]),
|
|
5897
|
-
t.previewComponent ? (d(), i("div",
|
|
5911
|
+
t.previewComponent ? (d(), i("div", Ct, "Input validated: " + h(t.inputIsValidated), 1)) : (d(), n(D, {
|
|
5898
5912
|
key: 0,
|
|
5899
5913
|
"data-cy": "add-card-btn",
|
|
5900
5914
|
class: "float-right",
|
|
@@ -5936,11 +5950,11 @@ function _sfc_render$3(t, a, c, l, u, f) {
|
|
|
5936
5950
|
});
|
|
5937
5951
|
}
|
|
5938
5952
|
__name(_sfc_render$3, "_sfc_render");
|
|
5939
|
-
var
|
|
5953
|
+
var wt = /* @__PURE__ */ R(St, [["render", _sfc_render$3]]), Tt = c({
|
|
5940
5954
|
name: "CardPreviewList",
|
|
5941
5955
|
components: {
|
|
5942
|
-
CardBrowser:
|
|
5943
|
-
SkMouseTrap:
|
|
5956
|
+
CardBrowser: ae,
|
|
5957
|
+
SkMouseTrap: oe
|
|
5944
5958
|
},
|
|
5945
5959
|
props: {
|
|
5946
5960
|
parsedCards: {
|
|
@@ -5987,7 +6001,7 @@ var St = /* @__PURE__ */ z(bt, [["render", _sfc_render$3]]), Ct = c({
|
|
|
5987
6001
|
},
|
|
5988
6002
|
beforeUnmount() {
|
|
5989
6003
|
this.shortcutsEnabled && this.keyBindings.forEach((e) => {
|
|
5990
|
-
|
|
6004
|
+
se.removeBinding(e.hotkey);
|
|
5991
6005
|
});
|
|
5992
6006
|
},
|
|
5993
6007
|
methods: {
|
|
@@ -6022,14 +6036,14 @@ var St = /* @__PURE__ */ z(bt, [["render", _sfc_render$3]]), Ct = c({
|
|
|
6022
6036
|
hotkey: "e",
|
|
6023
6037
|
callback: () => (this.editCurrentCard(), !1)
|
|
6024
6038
|
}
|
|
6025
|
-
], this.shortcutsEnabled &&
|
|
6039
|
+
], this.shortcutsEnabled && se.addBinding(this.keyBindings);
|
|
6026
6040
|
},
|
|
6027
6041
|
enableShortcuts() {
|
|
6028
|
-
this.shortcutsEnabled || (this.shortcutsEnabled = !0,
|
|
6042
|
+
this.shortcutsEnabled || (this.shortcutsEnabled = !0, se.addBinding(this.keyBindings), console.log("[CardPreviewList] Keyboard shortcuts enabled"));
|
|
6029
6043
|
},
|
|
6030
6044
|
disableShortcuts() {
|
|
6031
6045
|
this.shortcutsEnabled && (this.shortcutsEnabled = !1, this.keyBindings.forEach((e) => {
|
|
6032
|
-
|
|
6046
|
+
se.removeBinding(e.hotkey);
|
|
6033
6047
|
}), console.log("[CardPreviewList] Keyboard shortcuts disabled"));
|
|
6034
6048
|
},
|
|
6035
6049
|
toggleShortcuts(e) {
|
|
@@ -6053,19 +6067,19 @@ var St = /* @__PURE__ */ z(bt, [["render", _sfc_render$3]]), Ct = c({
|
|
|
6053
6067
|
this.currentCard && this.$emit("edit-card", this.currentCard, this.currentIndex);
|
|
6054
6068
|
}
|
|
6055
6069
|
}
|
|
6056
|
-
}),
|
|
6070
|
+
}), Et = { class: "card-preview-list" }, G = { class: "d-flex align-center" }, Dt = { class: "text-subtitle-1 mr-2" }, Ot = {
|
|
6057
6071
|
key: 0,
|
|
6058
6072
|
class: "d-flex justify-center align-center my-4"
|
|
6059
|
-
},
|
|
6073
|
+
}, kt = { key: 1 }, At = { key: 0 }, jt = { key: 0 }, Mt = { key: 1 }, Nt = { class: "markdown-content" }, Pt = { class: "card-metadata mt-2" }, Ft = { class: "d-flex flex-wrap gap-1" }, It = {
|
|
6060
6074
|
key: 0,
|
|
6061
6075
|
class: "mt-2 text-caption"
|
|
6062
|
-
},
|
|
6076
|
+
}, Lt = {
|
|
6063
6077
|
key: 1,
|
|
6064
6078
|
class: "text-center pa-4"
|
|
6065
6079
|
};
|
|
6066
6080
|
function _sfc_render$2(t, c, l, u, f, g) {
|
|
6067
6081
|
let v = m("v-card-title"), y = m("v-checkbox"), b = m("v-card-text"), x = m("v-spacer"), S = m("v-btn"), C = m("v-card-actions"), w = m("v-card"), T = m("v-dialog"), E = m("sk-mouse-trap"), D = m("v-progress-circular"), O = m("card-browser"), k = m("v-sheet"), A = m("v-chip"), ee = m("v-icon");
|
|
6068
|
-
return d(), i("div",
|
|
6082
|
+
return d(), i("div", Et, [s(T, {
|
|
6069
6083
|
modelValue: t.showDeleteConfirm,
|
|
6070
6084
|
"onUpdate:modelValue": c[1] || (c[1] = (e) => t.showDeleteConfirm = e),
|
|
6071
6085
|
"max-width": "400px"
|
|
@@ -6117,25 +6131,25 @@ function _sfc_render$2(t, c, l, u, f, g) {
|
|
|
6117
6131
|
}, {
|
|
6118
6132
|
default: _(() => [
|
|
6119
6133
|
s(v, { class: "d-flex align-center justify-space-between" }, {
|
|
6120
|
-
default: _(() => [c[6] || (c[6] = a("span", null, "Card Preview", -1)), a("div",
|
|
6134
|
+
default: _(() => [c[6] || (c[6] = a("span", null, "Card Preview", -1)), a("div", G, [a("div", Dt, h(t.currentIndex + 1) + " of " + h(t.parsedCards.length), 1), s(E)])]),
|
|
6121
6135
|
_: 1
|
|
6122
6136
|
}),
|
|
6123
6137
|
s(b, null, {
|
|
6124
|
-
default: _(() => [t.loading ? (d(), i("div",
|
|
6138
|
+
default: _(() => [t.loading ? (d(), i("div", Ot, [s(D, {
|
|
6125
6139
|
indeterminate: "",
|
|
6126
6140
|
color: "primary"
|
|
6127
|
-
})])) : (d(), i("div",
|
|
6141
|
+
})])) : (d(), i("div", kt, [t.currentCard ? (d(), i("div", At, [s(k, {
|
|
6128
6142
|
class: "card-content pa-4 mb-4",
|
|
6129
6143
|
rounded: "",
|
|
6130
6144
|
border: ""
|
|
6131
6145
|
}, {
|
|
6132
|
-
default: _(() => [t.viewComponents && t.viewComponents.length > 0 ? (d(), i("div",
|
|
6146
|
+
default: _(() => [t.viewComponents && t.viewComponents.length > 0 ? (d(), i("div", jt, [s(O, {
|
|
6133
6147
|
views: t.viewComponents,
|
|
6134
6148
|
data: [t.currentViewData],
|
|
6135
6149
|
"suppress-spinner": !0
|
|
6136
|
-
}, null, 8, ["views", "data"])])) : (d(), i("div",
|
|
6150
|
+
}, null, 8, ["views", "data"])])) : (d(), i("div", Mt, [c[7] || (c[7] = a("div", { class: "mb-2 font-weight-bold" }, "Card content:", -1)), a("div", Nt, h(t.currentCard.markdown), 1)]))]),
|
|
6137
6151
|
_: 1
|
|
6138
|
-
}), a("div",
|
|
6152
|
+
}), a("div", Pt, [a("div", Ft, [(d(!0), i(e, null, p(t.currentCard.tags, (e) => (d(), n(A, {
|
|
6139
6153
|
key: e,
|
|
6140
6154
|
size: "small",
|
|
6141
6155
|
color: "primary",
|
|
@@ -6144,7 +6158,7 @@ function _sfc_render$2(t, c, l, u, f, g) {
|
|
|
6144
6158
|
}, {
|
|
6145
6159
|
default: _(() => [o(h(e), 1)]),
|
|
6146
6160
|
_: 2
|
|
6147
|
-
}, 1024))), 128))]), t.currentCard.elo === void 0 ? r("", !0) : (d(), i("div",
|
|
6161
|
+
}, 1024))), 128))]), t.currentCard.elo === void 0 ? r("", !0) : (d(), i("div", It, "ELO: " + h(t.currentCard.elo), 1))])])) : (d(), i("div", Lt, "No card selected or available to preview."))]))]),
|
|
6148
6162
|
_: 1
|
|
6149
6163
|
}),
|
|
6150
6164
|
s(C, { class: "px-4 pb-4" }, {
|
|
@@ -6207,9 +6221,9 @@ function _sfc_render$2(t, c, l, u, f, g) {
|
|
|
6207
6221
|
__name(_sfc_render$2, "_sfc_render");
|
|
6208
6222
|
//#endregion
|
|
6209
6223
|
//#region src/components/BulkImportView.vue?vue&type=script&lang.ts
|
|
6210
|
-
var
|
|
6224
|
+
var Rt = c({
|
|
6211
6225
|
name: "BulkImportView",
|
|
6212
|
-
components: { CardPreviewList: /* @__PURE__ */
|
|
6226
|
+
components: { CardPreviewList: /* @__PURE__ */ R(Tt, [["render", _sfc_render$2], ["__scopeId", "data-v-41613480"]]) },
|
|
6213
6227
|
props: { courseCfg: {
|
|
6214
6228
|
type: Object,
|
|
6215
6229
|
required: !0
|
|
@@ -6240,17 +6254,17 @@ var It = c({
|
|
|
6240
6254
|
return [...new Set(e)].sort();
|
|
6241
6255
|
} },
|
|
6242
6256
|
created() {
|
|
6243
|
-
this.courseCfg?.courseID ? (this.courseDB = k().getCourseDB(this.courseCfg.courseID), !this.courseCfg.dataShapes || this.courseCfg.dataShapes.length === 0 ? (console.error("[BulkImportView] Course config does not contain any dataShapes."),
|
|
6257
|
+
this.courseCfg?.courseID ? (this.courseDB = k().getCourseDB(this.courseCfg.courseID), !this.courseCfg.dataShapes || this.courseCfg.dataShapes.length === 0 ? (console.error("[BulkImportView] Course config does not contain any dataShapes."), F({
|
|
6244
6258
|
text: "Course configuration has no dataShapes. Bulk import may not work correctly.",
|
|
6245
6259
|
status: N.warning
|
|
6246
|
-
})) : this.initializeCardPreviewComponents()) : (console.error("[BulkImportView] Course config or Course ID is missing."),
|
|
6260
|
+
})) : this.initializeCardPreviewComponents()) : (console.error("[BulkImportView] Course config or Course ID is missing."), F({
|
|
6247
6261
|
text: "Course configuration is missing. Cannot initialize bulk import.",
|
|
6248
6262
|
status: N.error
|
|
6249
6263
|
}));
|
|
6250
6264
|
},
|
|
6251
6265
|
methods: {
|
|
6252
6266
|
handleDeleteCard(e) {
|
|
6253
|
-
console.log(`[BulkImportView] Card at index ${e} was deleted`),
|
|
6267
|
+
console.log(`[BulkImportView] Card at index ${e} was deleted`), F({
|
|
6254
6268
|
text: "Card removed from import list",
|
|
6255
6269
|
status: N.ok
|
|
6256
6270
|
});
|
|
@@ -6267,7 +6281,7 @@ var It = c({
|
|
|
6267
6281
|
tags: this.editedTags,
|
|
6268
6282
|
elo: this.editedElo
|
|
6269
6283
|
}, t = [...this.parsedCards];
|
|
6270
|
-
t[this.editingCardIndex] = e, this.parsedCards = t, this.closeEditDialog(),
|
|
6284
|
+
t[this.editingCardIndex] = e, this.parsedCards = t, this.closeEditDialog(), F({
|
|
6271
6285
|
text: "Card updated successfully",
|
|
6272
6286
|
status: N.ok
|
|
6273
6287
|
});
|
|
@@ -6308,7 +6322,7 @@ var It = c({
|
|
|
6308
6322
|
},
|
|
6309
6323
|
handleInitialParse() {
|
|
6310
6324
|
if (!this.courseDB) {
|
|
6311
|
-
|
|
6325
|
+
F({
|
|
6312
6326
|
text: "Database connection not available. Cannot process cards.",
|
|
6313
6327
|
status: N.error
|
|
6314
6328
|
});
|
|
@@ -6318,7 +6332,7 @@ var It = c({
|
|
|
6318
6332
|
this.processing = !0, this.results = [], this.parsedCards = [], this.parsingComplete = !1;
|
|
6319
6333
|
try {
|
|
6320
6334
|
if (this.parsedCards = P(this.bulkText), this.parsedCards.length === 0) {
|
|
6321
|
-
|
|
6335
|
+
F({
|
|
6322
6336
|
text: "No cards could be parsed from the input. Please check the format and ensure cards are separated by two \"---\" lines and that cards have content.",
|
|
6323
6337
|
status: N.warning
|
|
6324
6338
|
}), this.processing = !1;
|
|
@@ -6326,7 +6340,7 @@ var It = c({
|
|
|
6326
6340
|
}
|
|
6327
6341
|
this.cardViewComponents.length === 0 && this.initializeCardPreviewComponents(), this.parsingComplete = !0, console.log(`[BulkImportView] Successfully parsed ${this.parsedCards.length} cards for preview`);
|
|
6328
6342
|
} catch (e) {
|
|
6329
|
-
console.error("[BulkImportView] Error parsing bulk text:", e),
|
|
6343
|
+
console.error("[BulkImportView] Error parsing bulk text:", e), F({
|
|
6330
6344
|
text: `Error parsing cards: ${e instanceof Error ? e.message : "Unknown error"}`,
|
|
6331
6345
|
status: N.error
|
|
6332
6346
|
});
|
|
@@ -6337,30 +6351,30 @@ var It = c({
|
|
|
6337
6351
|
},
|
|
6338
6352
|
async confirmAndImportCards() {
|
|
6339
6353
|
if (!this.courseDB) {
|
|
6340
|
-
|
|
6354
|
+
F({
|
|
6341
6355
|
text: "Database connection lost before import.",
|
|
6342
6356
|
status: N.error
|
|
6343
6357
|
}), this.processing = !1;
|
|
6344
6358
|
return;
|
|
6345
6359
|
}
|
|
6346
6360
|
if (this.parsedCards.length === 0) {
|
|
6347
|
-
|
|
6361
|
+
F({
|
|
6348
6362
|
text: "No parsed cards to import.",
|
|
6349
6363
|
status: N.warning
|
|
6350
6364
|
}), this.processing = !1;
|
|
6351
6365
|
return;
|
|
6352
6366
|
}
|
|
6353
6367
|
if (!this.courseCfg?.dataShapes || this.courseCfg.dataShapes.length === 0) {
|
|
6354
|
-
|
|
6368
|
+
F({
|
|
6355
6369
|
text: "This course has no data shapes configured. Cannot import cards.",
|
|
6356
6370
|
status: N.error
|
|
6357
6371
|
}), this.processing = !1;
|
|
6358
6372
|
return;
|
|
6359
6373
|
}
|
|
6360
6374
|
this.processing = !0, this.results = [];
|
|
6361
|
-
let e = (await
|
|
6375
|
+
let e = (await le()).getUsername(), t = x[0];
|
|
6362
6376
|
if (!t) {
|
|
6363
|
-
|
|
6377
|
+
F({
|
|
6364
6378
|
text: "Critical: Could not find BlanksCardDataShapes. Aborting import.",
|
|
6365
6379
|
status: N.error
|
|
6366
6380
|
}), this.processing = !1;
|
|
@@ -6368,7 +6382,7 @@ var It = c({
|
|
|
6368
6382
|
}
|
|
6369
6383
|
let n = this.courseCfg?.dataShapes?.[0];
|
|
6370
6384
|
if (!n) {
|
|
6371
|
-
|
|
6385
|
+
F({
|
|
6372
6386
|
text: "Critical: No data shapes found in course configuration. Aborting import.",
|
|
6373
6387
|
status: N.error
|
|
6374
6388
|
}), this.processing = !1;
|
|
@@ -6380,7 +6394,7 @@ var It = c({
|
|
|
6380
6394
|
userName: e
|
|
6381
6395
|
}, a = ee(i);
|
|
6382
6396
|
if (!a.isValid) {
|
|
6383
|
-
|
|
6397
|
+
F({
|
|
6384
6398
|
text: a.errorMessage || "Invalid processor configuration for import.",
|
|
6385
6399
|
status: N.error
|
|
6386
6400
|
}), this.processing = !1;
|
|
@@ -6403,35 +6417,35 @@ var It = c({
|
|
|
6403
6417
|
} finally {
|
|
6404
6418
|
this.processing = !1, this.importAttempted = !0;
|
|
6405
6419
|
}
|
|
6406
|
-
this.results.every((e) => e.status === "success") && this.results.length > 0 ?
|
|
6420
|
+
this.results.every((e) => e.status === "success") && this.results.length > 0 ? F({
|
|
6407
6421
|
text: `${this.results.length} card(s) imported successfully!`,
|
|
6408
6422
|
status: N.ok
|
|
6409
|
-
}) : this.results.some((e) => e.status === "error") &&
|
|
6423
|
+
}) : this.results.some((e) => e.status === "error") && F({
|
|
6410
6424
|
text: "Some cards failed to import. Please review the results below.",
|
|
6411
6425
|
status: N.warning
|
|
6412
6426
|
});
|
|
6413
6427
|
}
|
|
6414
6428
|
}
|
|
6415
|
-
}),
|
|
6429
|
+
}), zt = { key: 0 }, Bt = {
|
|
6416
6430
|
key: 1,
|
|
6417
6431
|
class: "text--secondary"
|
|
6418
|
-
},
|
|
6432
|
+
}, Vt = { class: "my-4" }, Ht = { class: "d-flex align-center mb-2" }, Ut = { class: "d-flex flex-wrap" }, Wt = {
|
|
6419
6433
|
key: 0,
|
|
6420
6434
|
class: "ml-6"
|
|
6421
|
-
},
|
|
6435
|
+
}, Gt = {
|
|
6422
6436
|
key: 1,
|
|
6423
6437
|
class: "ml-6"
|
|
6424
|
-
},
|
|
6438
|
+
}, Kt = {
|
|
6425
6439
|
key: 2,
|
|
6426
6440
|
class: "ml-6"
|
|
6427
|
-
},
|
|
6441
|
+
}, qt = { style: {
|
|
6428
6442
|
"white-space": "pre-wrap",
|
|
6429
6443
|
"background-color": "#f5f5f5",
|
|
6430
6444
|
padding: "5px"
|
|
6431
6445
|
} };
|
|
6432
6446
|
function _sfc_render$1(t, c, u, f, g, b) {
|
|
6433
|
-
let x = m("v-textarea"), S = m("v-col"), C = m("v-row"), w = m("v-card-title"), T = m("v-chip"), E = m("v-card-text"), D = m("v-card"), O = m("card-preview-list"), k = m("v-text-field"), A = m("v-btn"), ee = m("v-form"), j = m("v-spacer"), M = m("v-tooltip"), N = m("v-card-actions"), te = m("v-dialog"), ne = m("v-icon"), P = m("v-list-subheader"), re = m("v-list-item-title"), ie = m("v-list-item-subtitle"), ae = m("v-list-item"),
|
|
6434
|
-
return d(), n(
|
|
6447
|
+
let x = m("v-textarea"), S = m("v-col"), C = m("v-row"), w = m("v-card-title"), T = m("v-chip"), E = m("v-card-text"), D = m("v-card"), O = m("card-preview-list"), k = m("v-text-field"), A = m("v-btn"), ee = m("v-form"), j = m("v-spacer"), M = m("v-tooltip"), N = m("v-card-actions"), te = m("v-dialog"), ne = m("v-icon"), P = m("v-list-subheader"), re = m("v-list-item-title"), ie = m("v-list-item-subtitle"), ae = m("v-list-item"), oe = m("v-list"), se = m("v-container");
|
|
6448
|
+
return d(), n(se, { fluid: "" }, {
|
|
6435
6449
|
default: _(() => [
|
|
6436
6450
|
t.parsingComplete ? r("", !0) : (d(), n(C, { key: 0 }, {
|
|
6437
6451
|
default: _(() => [s(S, { cols: "12" }, {
|
|
@@ -6461,7 +6475,7 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6461
6475
|
default: _(() => c[6] || (c[6] = [o("Parsing Summary")])),
|
|
6462
6476
|
_: 1
|
|
6463
6477
|
}), s(E, null, {
|
|
6464
|
-
default: _(() => [a("p", null, [a("strong", null, h(t.parsedCards.length), 1), c[7] || (c[7] = o(" card(s) parsed and ready for import. "))]), t.parsedCards.length > 0 ? (d(), i("div",
|
|
6478
|
+
default: _(() => [a("p", null, [a("strong", null, h(t.parsedCards.length), 1), c[7] || (c[7] = o(" card(s) parsed and ready for import. "))]), t.parsedCards.length > 0 ? (d(), i("div", zt, [c[8] || (c[8] = a("strong", null, "Tags Found:", -1)), t.uniqueTags.length > 0 ? (d(!0), i(e, { key: 0 }, p(t.uniqueTags, (e) => (d(), n(T, {
|
|
6465
6479
|
key: e,
|
|
6466
6480
|
class: "mr-1 mb-1",
|
|
6467
6481
|
size: "small",
|
|
@@ -6469,7 +6483,7 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6469
6483
|
}, {
|
|
6470
6484
|
default: _(() => [o(h(e), 1)]),
|
|
6471
6485
|
_: 2
|
|
6472
|
-
}, 1024))), 128)) : (d(), i("span",
|
|
6486
|
+
}, 1024))), 128)) : (d(), i("span", Bt, "No unique tags identified across parsed cards."))])) : r("", !0)]),
|
|
6473
6487
|
_: 1
|
|
6474
6488
|
})]),
|
|
6475
6489
|
_: 1
|
|
@@ -6526,7 +6540,7 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6526
6540
|
variant: "outlined",
|
|
6527
6541
|
onKeydown: v(y(t.saveEditedCard, ["ctrl"]), ["enter"])
|
|
6528
6542
|
}, null, 8, ["modelValue", "onKeydown"]),
|
|
6529
|
-
a("div",
|
|
6543
|
+
a("div", Vt, [a("div", Ht, [
|
|
6530
6544
|
c[11] || (c[11] = a("h3", { class: "text-subtitle-1 mr-2" }, "Tags", -1)),
|
|
6531
6545
|
s(k, {
|
|
6532
6546
|
modelValue: t.newTagText,
|
|
@@ -6547,7 +6561,7 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6547
6561
|
default: _(() => c[10] || (c[10] = [o("Add")])),
|
|
6548
6562
|
_: 1
|
|
6549
6563
|
}, 8, ["onClick"])
|
|
6550
|
-
]), a("div",
|
|
6564
|
+
]), a("div", Ut, [(d(!0), i(e, null, p(t.editedTags, (e) => (d(), n(T, {
|
|
6551
6565
|
key: e,
|
|
6552
6566
|
closable: "",
|
|
6553
6567
|
class: "mr-1 mb-1",
|
|
@@ -6682,7 +6696,7 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6682
6696
|
}),
|
|
6683
6697
|
t.results.length > 0 ? (d(), n(C, { key: 2 }, {
|
|
6684
6698
|
default: _(() => [s(S, { cols: "12" }, {
|
|
6685
|
-
default: _(() => [s(
|
|
6699
|
+
default: _(() => [s(oe, { density: "compact" }, {
|
|
6686
6700
|
default: _(() => [s(P, null, {
|
|
6687
6701
|
default: _(() => c[23] || (c[23] = [o("Import Results")])),
|
|
6688
6702
|
_: 1
|
|
@@ -6702,9 +6716,9 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6702
6716
|
_: 2
|
|
6703
6717
|
}, 1024), s(ie, null, {
|
|
6704
6718
|
default: _(() => [
|
|
6705
|
-
e.message ? (d(), i("div",
|
|
6706
|
-
e.cardId ? (d(), i("div",
|
|
6707
|
-
e.status === "error" && e.originalText ? (d(), i("details",
|
|
6719
|
+
e.message ? (d(), i("div", Wt, h(e.message), 1)) : r("", !0),
|
|
6720
|
+
e.cardId ? (d(), i("div", Gt, "ID: " + h(e.cardId), 1)) : r("", !0),
|
|
6721
|
+
e.status === "error" && e.originalText ? (d(), i("details", Kt, [c[24] || (c[24] = a("summary", null, "Original Input", -1)), a("pre", qt, h(e.originalText), 1)])) : r("", !0)
|
|
6708
6722
|
]),
|
|
6709
6723
|
_: 2
|
|
6710
6724
|
}, 1024)]),
|
|
@@ -6721,13 +6735,13 @@ function _sfc_render$1(t, c, u, f, g, b) {
|
|
|
6721
6735
|
});
|
|
6722
6736
|
}
|
|
6723
6737
|
__name(_sfc_render$1, "_sfc_render");
|
|
6724
|
-
var
|
|
6738
|
+
var Jt = /* @__PURE__ */ R(Rt, [["render", _sfc_render$1], ["__scopeId", "data-v-901d842b"]]), K = c({
|
|
6725
6739
|
name: "CourseEditor",
|
|
6726
6740
|
components: {
|
|
6727
|
-
DataInputForm:
|
|
6728
|
-
ComponentRegistration:
|
|
6729
|
-
NavigationStrategyEditor:
|
|
6730
|
-
BulkImportView:
|
|
6741
|
+
DataInputForm: wt,
|
|
6742
|
+
ComponentRegistration: be,
|
|
6743
|
+
NavigationStrategyEditor: nt,
|
|
6744
|
+
BulkImportView: Jt
|
|
6731
6745
|
},
|
|
6732
6746
|
props: { course: {
|
|
6733
6747
|
type: String,
|
|
@@ -6742,7 +6756,7 @@ var Kt = /* @__PURE__ */ z(It, [["render", _sfc_render$1], ["__scopeId", "data-v
|
|
|
6742
6756
|
dataShape: x[0],
|
|
6743
6757
|
loading: !0,
|
|
6744
6758
|
currentTab: "single",
|
|
6745
|
-
dataInputFormStore:
|
|
6759
|
+
dataInputFormStore: xt()
|
|
6746
6760
|
};
|
|
6747
6761
|
},
|
|
6748
6762
|
watch: { selectedShape: { handler(e) {
|
|
@@ -6762,17 +6776,17 @@ var Kt = /* @__PURE__ */ z(It, [["render", _sfc_render$1], ["__scopeId", "data-v
|
|
|
6762
6776
|
methods: { getDataShape(e) {
|
|
6763
6777
|
return this.dataShapes.find((t) => t.name === e);
|
|
6764
6778
|
} }
|
|
6765
|
-
}),
|
|
6779
|
+
}), q = {
|
|
6766
6780
|
key: 0,
|
|
6767
6781
|
class: "courseEditor"
|
|
6768
|
-
},
|
|
6782
|
+
}, Yt = { key: 0 }, Xt = { key: 1 }, J = { class: "text-h4" };
|
|
6769
6783
|
function _sfc_render(e, t, c, l, u, f) {
|
|
6770
6784
|
let p = m("v-progress-circular"), g = m("router-link"), v = m("v-tab"), y = m("v-tabs"), b = m("v-select"), x = m("data-input-form"), S = m("v-container"), C = m("v-window-item"), w = m("bulk-import-view"), T = m("component-registration"), E = m("navigation-strategy-editor"), D = m("v-window");
|
|
6771
|
-
return e.course ? (d(), i("div",
|
|
6785
|
+
return e.course ? (d(), i("div", q, [e.loading ? (d(), i("div", Yt, [s(p, {
|
|
6772
6786
|
indeterminate: "",
|
|
6773
6787
|
color: "secondary"
|
|
6774
|
-
})])) : (d(), i("div",
|
|
6775
|
-
a("h1",
|
|
6788
|
+
})])) : (d(), i("div", Xt, [
|
|
6789
|
+
a("h1", J, [
|
|
6776
6790
|
s(g, { to: "/q" }, {
|
|
6777
6791
|
default: _(() => t[3] || (t[3] = [o("Quilts")])),
|
|
6778
6792
|
_: 1
|
|
@@ -6864,8 +6878,8 @@ function _sfc_render(e, t, c, l, u, f) {
|
|
|
6864
6878
|
}, 8, ["modelValue"])
|
|
6865
6879
|
]))])) : r("", !0);
|
|
6866
6880
|
}
|
|
6867
|
-
var
|
|
6881
|
+
var Y = /* @__PURE__ */ R(K, [["render", _sfc_render], ["__scopeId", "data-v-c987522c"]]);
|
|
6868
6882
|
//#endregion
|
|
6869
|
-
export {
|
|
6883
|
+
export { Jt as BulkImportView, bt as ChessPuzzleInput, Y as CourseEditor, wt as DataInputForm, ot as IntegerInput, ct as MarkdownInput, V as MediaDragDropUploader, ht as MidiInput, _t as NumberInput, B as OptionsFieldInput, yt as StringInput, integerValidator, isFieldInput, numberValidator, xt as useDataInputFormStore, it as useFieldInputStore };
|
|
6870
6884
|
|
|
6871
6885
|
//# sourceMappingURL=edit-ui.es.js.map
|