@expedite-commerce/expedite-components 0.2.58 → 0.2.59
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/expedite-components.css +1 -1
- package/dist/expedite-components.es.js +767 -769
- package/dist/expedite-components.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-expedite-components.js +1495 -1497
- package/dist/vue-expedite-components.umd.cjs +31 -31
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as M, createElementBlock as q, normalizeClass as _e, normalizeStyle as Ce, createElementVNode as C, ref as z, onMounted as gt, onBeforeUnmount as hr, renderSlot as Ye, onUnmounted as Ks, createBlock as ve, withCtx as qe, createVNode as se, createCommentVNode as le, toDisplayString as he, resolveComponent as un, resolveDynamicComponent as io, mergeProps as aa, withModifiers as it, createTextVNode as Re, inject as Gs, computed as ce, watch as Ve, onBeforeUpdate as P0, unref as ke, Fragment as xe, renderList as Se, createStaticVNode as Mr, pushScopeId as Lt, popScopeId as Nt, withKeys as gn, onBeforeMount as Kt, resolveDirective as Qs, withDirectives as en, vModelDynamic as q0, nextTick as ln, vModelText as lo, defineComponent as $0, h as j0, vModelCheckbox as Ws, vModelRadio as
|
|
1
|
+
import { openBlock as M, createElementBlock as q, normalizeClass as _e, normalizeStyle as Ce, createElementVNode as C, ref as z, onMounted as gt, onBeforeUnmount as hr, renderSlot as Ye, onUnmounted as Ks, createBlock as ve, withCtx as qe, createVNode as se, createCommentVNode as le, toDisplayString as he, resolveComponent as un, resolveDynamicComponent as io, mergeProps as aa, withModifiers as it, createTextVNode as Re, inject as Gs, computed as ce, watch as Ve, onBeforeUpdate as P0, unref as ke, Fragment as xe, renderList as Se, createStaticVNode as Mr, pushScopeId as Lt, popScopeId as Nt, withKeys as gn, onBeforeMount as Kt, resolveDirective as Qs, withDirectives as en, vModelDynamic as q0, nextTick as ln, vModelText as lo, defineComponent as $0, h as j0, vModelCheckbox as Ws, vModelRadio as U0, vShow as Zs, reactive as H0, mergeModels as Ul, useModel as V0, Teleport as Js, watchEffect as Hl } from "vue";
|
|
2
2
|
import { defineStore as bt } from "pinia";
|
|
3
3
|
const we = (e, n) => {
|
|
4
4
|
const t = e.__vccOpts || e;
|
|
@@ -587,12 +587,12 @@ const nn = bt("error", {
|
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function Ht(e) {
|
|
591
591
|
if (typeof e == "string" && (e = JSON.parse(e)), e != null && e.errorMessage)
|
|
592
592
|
throw new Error(e == null ? void 0 : e.errorMessage);
|
|
593
593
|
return e;
|
|
594
594
|
}
|
|
595
|
-
const
|
|
595
|
+
const Ha = {
|
|
596
596
|
xx_ord1__item__c: "xx_ord1__item__c",
|
|
597
597
|
xx_ord1__sales_price__c: "xx_ord1__negotiated_price__c",
|
|
598
598
|
xx_ord1__nrc__c: "xx_ord1__nrc_for_new__c",
|
|
@@ -630,10 +630,10 @@ const Ua = {
|
|
|
630
630
|
if (r.includes(".")) {
|
|
631
631
|
let a = r.split(".")[0];
|
|
632
632
|
a = a.slice(0, -1) + "c";
|
|
633
|
-
const i = ((t =
|
|
633
|
+
const i = ((t = Ha[a == null ? void 0 : a.toLowerCase()]) == null ? void 0 : t.trim()) || "";
|
|
634
634
|
i && (n.includes(i) || n.push(i || ""), n.push(r));
|
|
635
635
|
} else
|
|
636
|
-
n.includes(
|
|
636
|
+
n.includes(Ha[r == null ? void 0 : r.toLowerCase()]) || n.push(Ha[r == null ? void 0 : r.toLowerCase()] || "");
|
|
637
637
|
return n.filter((r) => r !== "");
|
|
638
638
|
}, oc = bt("actions", () => {
|
|
639
639
|
const e = yr(), n = vr(), t = z(!1);
|
|
@@ -716,8 +716,8 @@ const Ua = {
|
|
|
716
716
|
const B = /[!@#$%^&*()+=[\]{};':"\\|.<>/?]+/;
|
|
717
717
|
if (D) {
|
|
718
718
|
const P = Array.isArray(I) ? I : I.split(",");
|
|
719
|
-
for (const
|
|
720
|
-
const $ =
|
|
719
|
+
for (const H of P) {
|
|
720
|
+
const $ = H.trim();
|
|
721
721
|
if (B.test($))
|
|
722
722
|
return d.handleError(`Invalid character found in value: ${$}`), !1;
|
|
723
723
|
}
|
|
@@ -740,8 +740,8 @@ const Ua = {
|
|
|
740
740
|
return w(B, D) ? B : null;
|
|
741
741
|
}
|
|
742
742
|
function F(I) {
|
|
743
|
-
var
|
|
744
|
-
const D = (
|
|
743
|
+
var H, $;
|
|
744
|
+
const D = (H = I.filtervaluefrom) == null ? void 0 : H.trim(), B = ($ = I.filtervalueTo) == null ? void 0 : $.trim();
|
|
745
745
|
if (!D || !B)
|
|
746
746
|
return null;
|
|
747
747
|
const P = `${D}, ${B}`;
|
|
@@ -760,28 +760,28 @@ const Ua = {
|
|
|
760
760
|
const D = [];
|
|
761
761
|
return I.forEach((B) => {
|
|
762
762
|
const P = B.dataType.trim();
|
|
763
|
-
let
|
|
763
|
+
let H = null;
|
|
764
764
|
switch (P) {
|
|
765
765
|
case "PICKLIST":
|
|
766
766
|
case "MULTIPICKLIST":
|
|
767
|
-
|
|
767
|
+
H = O(B);
|
|
768
768
|
break;
|
|
769
769
|
case "DOUBLE":
|
|
770
770
|
case "CURRENCY":
|
|
771
|
-
|
|
771
|
+
H = F(B);
|
|
772
772
|
break;
|
|
773
773
|
case "DATETIME":
|
|
774
774
|
case "DATE":
|
|
775
|
-
|
|
775
|
+
H = S(B);
|
|
776
776
|
break;
|
|
777
777
|
default:
|
|
778
|
-
|
|
778
|
+
H = _(B);
|
|
779
779
|
}
|
|
780
|
-
|
|
780
|
+
H && D.push(E(B, H));
|
|
781
781
|
}), m.value = D, D;
|
|
782
782
|
}
|
|
783
783
|
async function T(I = "", D = [], B = []) {
|
|
784
|
-
var
|
|
784
|
+
var H, $, V, Q, ee, Y, ie, fe, re, Z;
|
|
785
785
|
let P = [];
|
|
786
786
|
if (D.length && (P = A(D)), !P.length && I.trim() === "") {
|
|
787
787
|
u.value = [], c.value = !1;
|
|
@@ -799,7 +799,7 @@ const Ua = {
|
|
|
799
799
|
accountId: n.accountId,
|
|
800
800
|
...n.eCatalogId ? { catalogId: n.eCatalogId } : {},
|
|
801
801
|
...n.objectType === "opportunity" ? { opportunityId: n.id } : {},
|
|
802
|
-
...($ = (
|
|
802
|
+
...($ = (H = a.value) == null ? void 0 : H.configuration) != null && $.sort ? {
|
|
803
803
|
primarySortBy: a.value.configuration.sort.primary.field,
|
|
804
804
|
primarySortOrder: a.value.configuration.sort.primary.direction,
|
|
805
805
|
secondarySortBy: a.value.configuration.sort.secondary.field,
|
|
@@ -824,20 +824,20 @@ const Ua = {
|
|
|
824
824
|
try {
|
|
825
825
|
f.value = !0;
|
|
826
826
|
const D = JSON.stringify({
|
|
827
|
-
lstQLIRequest:
|
|
827
|
+
lstQLIRequest: U(I),
|
|
828
828
|
quoteId: e.quoteId
|
|
829
829
|
});
|
|
830
830
|
let B = await window.salesforceConnector.createQLI(D);
|
|
831
831
|
typeof B == "string" && (B = JSON.parse(B));
|
|
832
832
|
let P = !1;
|
|
833
|
-
if ((B == null ? void 0 : B.length) > 0 && B.forEach((
|
|
834
|
-
|
|
833
|
+
if ((B == null ? void 0 : B.length) > 0 && B.forEach((H) => {
|
|
834
|
+
H.errorMessage && (P = !0, d.handleError(H.errorMessage));
|
|
835
835
|
}), f.value = !1, P) {
|
|
836
836
|
b.value = B;
|
|
837
|
-
const
|
|
837
|
+
const H = b.value.reduce(($, V) => ($[V.eCatalogItemId] = V.errorMessage, $), {});
|
|
838
838
|
u.value = u.value.map(($) => ({
|
|
839
839
|
...$,
|
|
840
|
-
backendError:
|
|
840
|
+
backendError: H[$.Id] || ""
|
|
841
841
|
}));
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
@@ -846,7 +846,7 @@ const Ua = {
|
|
|
846
846
|
d.handleError("Failed to add item to Quote. Please try again."), console.info("[ERROR]: addToQuote() error = ", D);
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function U(I) {
|
|
850
850
|
const D = [];
|
|
851
851
|
for (const B of I)
|
|
852
852
|
if (!B.addedToQuote && B.id) {
|
|
@@ -864,9 +864,9 @@ const Ua = {
|
|
|
864
864
|
const D = [], B = J();
|
|
865
865
|
return Object.keys(I).forEach((P) => {
|
|
866
866
|
if (B.includes(P)) {
|
|
867
|
-
const
|
|
868
|
-
|
|
869
|
-
fieldname:
|
|
867
|
+
const H = rc[P.toLowerCase()];
|
|
868
|
+
H && D.push({
|
|
869
|
+
fieldname: H,
|
|
870
870
|
value: I[P]
|
|
871
871
|
});
|
|
872
872
|
}
|
|
@@ -882,11 +882,11 @@ const Ua = {
|
|
|
882
882
|
var D, B;
|
|
883
883
|
const I = [];
|
|
884
884
|
return a.value.configuration.columns.forEach((P) => {
|
|
885
|
-
const
|
|
886
|
-
I.includes(
|
|
885
|
+
const H = P.field.toLowerCase();
|
|
886
|
+
I.includes(H) || I.push(H);
|
|
887
887
|
}), (D = a.value.configuration) != null && D.dynamicFilters && a.value.configuration.dynamicFilters.filters.forEach((P) => {
|
|
888
|
-
const
|
|
889
|
-
I.includes(
|
|
888
|
+
const H = P.field.toLowerCase();
|
|
889
|
+
I.includes(H) || I.push(H);
|
|
890
890
|
}), (B = a.value.configuration) != null && B.cardHeader && I.push(a.value.configuration.cardHeader.imageField), I;
|
|
891
891
|
}
|
|
892
892
|
async function W() {
|
|
@@ -2243,8 +2243,8 @@ function mr() {
|
|
|
2243
2243
|
var p = h + x, v = b[p];
|
|
2244
2244
|
b[p] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
|
|
2245
2245
|
}
|
|
2246
|
-
var g = this._hash.words, k = b[h + 0], w = b[h + 1], E = b[h + 2], O = b[h + 3], F = b[h + 4], S = b[h + 5], _ = b[h + 6], A = b[h + 7], T = b[h + 8], N = b[h + 9],
|
|
2247
|
-
I = y(I, D, B, P, k, 7, s[0]), P = y(P, I, D, B, w, 12, s[1]), B = y(B, P, I, D, E, 17, s[2]), D = y(D, B, P, I, O, 22, s[3]), I = y(I, D, B, P, F, 7, s[4]), P = y(P, I, D, B, S, 12, s[5]), B = y(B, P, I, D, _, 17, s[6]), D = y(D, B, P, I, A, 22, s[7]), I = y(I, D, B, P, T, 7, s[8]), P = y(P, I, D, B, N, 12, s[9]), B = y(B, P, I, D,
|
|
2246
|
+
var g = this._hash.words, k = b[h + 0], w = b[h + 1], E = b[h + 2], O = b[h + 3], F = b[h + 4], S = b[h + 5], _ = b[h + 6], A = b[h + 7], T = b[h + 8], N = b[h + 9], U = b[h + 10], j = b[h + 11], J = b[h + 12], oe = b[h + 13], W = b[h + 14], L = b[h + 15], I = g[0], D = g[1], B = g[2], P = g[3];
|
|
2247
|
+
I = y(I, D, B, P, k, 7, s[0]), P = y(P, I, D, B, w, 12, s[1]), B = y(B, P, I, D, E, 17, s[2]), D = y(D, B, P, I, O, 22, s[3]), I = y(I, D, B, P, F, 7, s[4]), P = y(P, I, D, B, S, 12, s[5]), B = y(B, P, I, D, _, 17, s[6]), D = y(D, B, P, I, A, 22, s[7]), I = y(I, D, B, P, T, 7, s[8]), P = y(P, I, D, B, N, 12, s[9]), B = y(B, P, I, D, U, 17, s[10]), D = y(D, B, P, I, j, 22, s[11]), I = y(I, D, B, P, J, 7, s[12]), P = y(P, I, D, B, oe, 12, s[13]), B = y(B, P, I, D, W, 17, s[14]), D = y(D, B, P, I, L, 22, s[15]), I = f(I, D, B, P, w, 5, s[16]), P = f(P, I, D, B, _, 9, s[17]), B = f(B, P, I, D, j, 14, s[18]), D = f(D, B, P, I, k, 20, s[19]), I = f(I, D, B, P, S, 5, s[20]), P = f(P, I, D, B, U, 9, s[21]), B = f(B, P, I, D, L, 14, s[22]), D = f(D, B, P, I, F, 20, s[23]), I = f(I, D, B, P, N, 5, s[24]), P = f(P, I, D, B, W, 9, s[25]), B = f(B, P, I, D, O, 14, s[26]), D = f(D, B, P, I, T, 20, s[27]), I = f(I, D, B, P, oe, 5, s[28]), P = f(P, I, D, B, E, 9, s[29]), B = f(B, P, I, D, A, 14, s[30]), D = f(D, B, P, I, J, 20, s[31]), I = m(I, D, B, P, S, 4, s[32]), P = m(P, I, D, B, T, 11, s[33]), B = m(B, P, I, D, j, 16, s[34]), D = m(D, B, P, I, W, 23, s[35]), I = m(I, D, B, P, w, 4, s[36]), P = m(P, I, D, B, F, 11, s[37]), B = m(B, P, I, D, A, 16, s[38]), D = m(D, B, P, I, U, 23, s[39]), I = m(I, D, B, P, oe, 4, s[40]), P = m(P, I, D, B, k, 11, s[41]), B = m(B, P, I, D, O, 16, s[42]), D = m(D, B, P, I, _, 23, s[43]), I = m(I, D, B, P, N, 4, s[44]), P = m(P, I, D, B, J, 11, s[45]), B = m(B, P, I, D, L, 16, s[46]), D = m(D, B, P, I, E, 23, s[47]), I = d(I, D, B, P, k, 6, s[48]), P = d(P, I, D, B, A, 10, s[49]), B = d(B, P, I, D, W, 15, s[50]), D = d(D, B, P, I, S, 21, s[51]), I = d(I, D, B, P, J, 6, s[52]), P = d(P, I, D, B, O, 10, s[53]), B = d(B, P, I, D, U, 15, s[54]), D = d(D, B, P, I, w, 21, s[55]), I = d(I, D, B, P, T, 6, s[56]), P = d(P, I, D, B, L, 10, s[57]), B = d(B, P, I, D, _, 15, s[58]), D = d(D, B, P, I, oe, 21, s[59]), I = d(I, D, B, P, F, 6, s[60]), P = d(P, I, D, B, j, 10, s[61]), B = d(B, P, I, D, E, 15, s[62]), D = d(D, B, P, I, N, 21, s[63]), g[0] = g[0] + I | 0, g[1] = g[1] + D | 0, g[2] = g[2] + B | 0, g[3] = g[3] + P | 0;
|
|
2248
2248
|
},
|
|
2249
2249
|
_doFinalize: function() {
|
|
2250
2250
|
var b = this._data, h = b.words, x = this._nDataBytes * 8, p = b.sigBytes * 8;
|
|
@@ -2360,7 +2360,7 @@ function dl() {
|
|
|
2360
2360
|
var F = y[O - 15], S = (F << 25 | F >>> 7) ^ (F << 14 | F >>> 18) ^ F >>> 3, _ = y[O - 2], A = (_ << 15 | _ >>> 17) ^ (_ << 13 | _ >>> 19) ^ _ >>> 10;
|
|
2361
2361
|
y[O] = S + y[O - 7] + A + y[O - 16];
|
|
2362
2362
|
}
|
|
2363
|
-
var T = g & k ^ ~g & w, N = h & x ^ h & p ^ x & p,
|
|
2363
|
+
var T = g & k ^ ~g & w, N = h & x ^ h & p ^ x & p, U = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), j = (g << 26 | g >>> 6) ^ (g << 21 | g >>> 11) ^ (g << 7 | g >>> 25), J = E + j + T + c[O] + y[O], oe = U + N;
|
|
2364
2364
|
E = w, w = k, k = g, g = v + J | 0, v = p, p = x, x = h, h = J + oe | 0;
|
|
2365
2365
|
}
|
|
2366
2366
|
b[0] = b[0] + h | 0, b[1] = b[1] + x | 0, b[2] = b[2] + p | 0, b[3] = b[3] + v | 0, b[4] = b[4] + g | 0, b[5] = b[5] + k | 0, b[6] = b[6] + w | 0, b[7] = b[7] + E | 0;
|
|
@@ -2520,7 +2520,7 @@ function uc() {
|
|
|
2520
2520
|
]);
|
|
2521
2521
|
},
|
|
2522
2522
|
_doProcessBlock: function(d, b) {
|
|
2523
|
-
for (var h = this._hash.words, x = h[0], p = h[1], v = h[2], g = h[3], k = h[4], w = h[5], E = h[6], O = h[7], F = x.high, S = x.low, _ = p.high, A = p.low, T = v.high, N = v.low,
|
|
2523
|
+
for (var h = this._hash.words, x = h[0], p = h[1], v = h[2], g = h[3], k = h[4], w = h[5], E = h[6], O = h[7], F = x.high, S = x.low, _ = p.high, A = p.low, T = v.high, N = v.low, U = g.high, j = g.low, J = k.high, oe = k.low, W = w.high, L = w.low, I = E.high, D = E.low, B = O.high, P = O.low, H = F, $ = S, V = _, Q = A, ee = T, Y = N, ie = U, fe = j, re = J, Z = oe, G = W, X = L, ne = I, te = D, de = B, ge = P, be = 0; be < 80; be++) {
|
|
2524
2524
|
var ye, Oe, Ie = f[be];
|
|
2525
2525
|
if (be < 16)
|
|
2526
2526
|
Oe = Ie.high = d[b + be * 2] | 0, ye = Ie.low = d[b + be * 2 + 1] | 0;
|
|
@@ -2528,10 +2528,10 @@ function uc() {
|
|
|
2528
2528
|
var Be = f[be - 15], Ke = Be.high, Qe = Be.low, Ne = (Ke >>> 1 | Qe << 31) ^ (Ke >>> 8 | Qe << 24) ^ Ke >>> 7, Gt = (Qe >>> 1 | Ke << 31) ^ (Qe >>> 8 | Ke << 24) ^ (Qe >>> 7 | Ke << 25), $e = f[be - 2], tt = $e.high, Tt = $e.low, kn = (tt >>> 19 | Tt << 13) ^ (tt << 3 | Tt >>> 29) ^ tt >>> 6, ht = (Tt >>> 19 | tt << 13) ^ (Tt << 3 | tt >>> 29) ^ (Tt >>> 6 | tt << 26), kt = f[be - 7], En = kt.high, rn = kt.low, on = f[be - 16], pt = on.high, qt = on.low;
|
|
2529
2529
|
ye = Gt + rn, Oe = Ne + En + (ye >>> 0 < Gt >>> 0 ? 1 : 0), ye = ye + ht, Oe = Oe + kn + (ye >>> 0 < ht >>> 0 ? 1 : 0), ye = ye + qt, Oe = Oe + pt + (ye >>> 0 < qt >>> 0 ? 1 : 0), Ie.high = Oe, Ie.low = ye;
|
|
2530
2530
|
}
|
|
2531
|
-
var Pn = re & G ^ ~re & ne, Et = Z & X ^ ~Z & te, qn =
|
|
2532
|
-
de = ne, ge = te, ne = G, te = X, G = re, X = Z, Z = fe + ct | 0, re = ie + nt + (Z >>> 0 < fe >>> 0 ? 1 : 0) | 0, ie = ee, fe = Y, ee = V, Y = Q, V =
|
|
2531
|
+
var Pn = re & G ^ ~re & ne, Et = Z & X ^ ~Z & te, qn = H & V ^ H & ee ^ V & ee, fn = $ & Q ^ $ & Y ^ Q & Y, Je = (H >>> 28 | $ << 4) ^ (H << 30 | $ >>> 2) ^ (H << 25 | $ >>> 7), Dt = ($ >>> 28 | H << 4) ^ ($ << 30 | H >>> 2) ^ ($ << 25 | H >>> 7), $n = (re >>> 14 | Z << 18) ^ (re >>> 18 | Z << 14) ^ (re << 23 | Z >>> 9), Qt = (Z >>> 14 | re << 18) ^ (Z >>> 18 | re << 14) ^ (Z << 23 | re >>> 9), hn = y[be], $t = hn.high, jn = hn.low, ct = ge + Qt, nt = de + $n + (ct >>> 0 < ge >>> 0 ? 1 : 0), ct = ct + Et, nt = nt + Pn + (ct >>> 0 < Et >>> 0 ? 1 : 0), ct = ct + jn, nt = nt + $t + (ct >>> 0 < jn >>> 0 ? 1 : 0), ct = ct + ye, nt = nt + Oe + (ct >>> 0 < ye >>> 0 ? 1 : 0), jt = Dt + fn, An = Je + qn + (jt >>> 0 < Dt >>> 0 ? 1 : 0);
|
|
2532
|
+
de = ne, ge = te, ne = G, te = X, G = re, X = Z, Z = fe + ct | 0, re = ie + nt + (Z >>> 0 < fe >>> 0 ? 1 : 0) | 0, ie = ee, fe = Y, ee = V, Y = Q, V = H, Q = $, $ = ct + jt | 0, H = nt + An + ($ >>> 0 < ct >>> 0 ? 1 : 0) | 0;
|
|
2533
2533
|
}
|
|
2534
|
-
S = x.low = S + $, x.high = F +
|
|
2534
|
+
S = x.low = S + $, x.high = F + H + (S >>> 0 < $ >>> 0 ? 1 : 0), A = p.low = A + Q, p.high = _ + V + (A >>> 0 < Q >>> 0 ? 1 : 0), N = v.low = N + Y, v.high = T + ee + (N >>> 0 < Y >>> 0 ? 1 : 0), j = g.low = j + fe, g.high = U + ie + (j >>> 0 < fe >>> 0 ? 1 : 0), oe = k.low = oe + Z, k.high = J + re + (oe >>> 0 < Z >>> 0 ? 1 : 0), L = w.low = L + X, w.high = W + G + (L >>> 0 < X >>> 0 ? 1 : 0), D = E.low = D + te, E.high = I + ne + (D >>> 0 < te >>> 0 ? 1 : 0), P = O.low = P + ge, O.high = B + de + (P >>> 0 < ge >>> 0 ? 1 : 0);
|
|
2535
2535
|
},
|
|
2536
2536
|
_doFinalize: function() {
|
|
2537
2537
|
var d = this._data, b = d.words, h = this._nDataBytes * 8, x = d.sigBytes * 8;
|
|
@@ -2581,7 +2581,7 @@ function jd() {
|
|
|
2581
2581
|
}(ti)), ti.exports;
|
|
2582
2582
|
}
|
|
2583
2583
|
var ni = { exports: {} }, lu;
|
|
2584
|
-
function
|
|
2584
|
+
function Ud() {
|
|
2585
2585
|
return lu || (lu = 1, function(e, n) {
|
|
2586
2586
|
(function(t, r, o) {
|
|
2587
2587
|
e.exports = r(ze(), ia());
|
|
@@ -2647,7 +2647,7 @@ function Hd() {
|
|
|
2647
2647
|
T.high = S, T.low = _;
|
|
2648
2648
|
}
|
|
2649
2649
|
for (var F = 0; F < 5; F++)
|
|
2650
|
-
for (var N = d[(F + 4) % 5],
|
|
2650
|
+
for (var N = d[(F + 4) % 5], U = d[(F + 1) % 5], j = U.high, J = U.low, S = N.high ^ (j << 1 | J >>> 31), _ = N.low ^ (J << 1 | j >>> 31), A = 0; A < 5; A++) {
|
|
2651
2651
|
var E = p[F + 5 * A];
|
|
2652
2652
|
E.high ^= S, E.low ^= _;
|
|
2653
2653
|
}
|
|
@@ -2661,8 +2661,8 @@ function Hd() {
|
|
|
2661
2661
|
B.high = P.high, B.low = P.low;
|
|
2662
2662
|
for (var F = 0; F < 5; F++)
|
|
2663
2663
|
for (var A = 0; A < 5; A++) {
|
|
2664
|
-
var oe = F + 5 * A, E = p[oe],
|
|
2665
|
-
E.high =
|
|
2664
|
+
var oe = F + 5 * A, E = p[oe], H = d[oe], $ = d[(F + 1) % 5 + 5 * A], V = d[(F + 2) % 5 + 5 * A];
|
|
2665
|
+
E.high = H.high ^ ~$.high & V.high, E.low = H.low ^ ~$.low & V.low;
|
|
2666
2666
|
}
|
|
2667
2667
|
var E = p[0], Q = m[O];
|
|
2668
2668
|
E.high ^= Q.high, E.low ^= Q.low;
|
|
@@ -2691,7 +2691,7 @@ function Hd() {
|
|
|
2691
2691
|
}(ni)), ni.exports;
|
|
2692
2692
|
}
|
|
2693
2693
|
var ri = { exports: {} }, uu;
|
|
2694
|
-
function
|
|
2694
|
+
function Hd() {
|
|
2695
2695
|
return uu || (uu = 1, function(e, n) {
|
|
2696
2696
|
(function(t, r) {
|
|
2697
2697
|
e.exports = r(ze());
|
|
@@ -3040,11 +3040,11 @@ function Ud() {
|
|
|
3040
3040
|
var F = E + O, S = w[F];
|
|
3041
3041
|
w[F] = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360;
|
|
3042
3042
|
}
|
|
3043
|
-
var _ = this._hash.words, A = m.words, T = d.words, N = s.words,
|
|
3044
|
-
B = oe = _[0], P = W = _[1],
|
|
3043
|
+
var _ = this._hash.words, A = m.words, T = d.words, N = s.words, U = c.words, j = y.words, J = f.words, oe, W, L, I, D, B, P, H, $, V;
|
|
3044
|
+
B = oe = _[0], P = W = _[1], H = L = _[2], $ = I = _[3], V = D = _[4];
|
|
3045
3045
|
for (var Q, O = 0; O < 80; O += 1)
|
|
3046
|
-
Q = oe + w[E + N[O]] | 0, O < 16 ? Q += h(W, L, I) + A[0] : O < 32 ? Q += x(W, L, I) + A[1] : O < 48 ? Q += p(W, L, I) + A[2] : O < 64 ? Q += v(W, L, I) + A[3] : Q += g(W, L, I) + A[4], Q = Q | 0, Q = k(Q, j[O]), Q = Q + D | 0, oe = D, D = I, I = k(L, 10), L = W, W = Q, Q = B + w[E +
|
|
3047
|
-
Q = _[1] + L + $ | 0, _[1] = _[2] + I + V | 0, _[2] = _[3] + D + B | 0, _[3] = _[4] + oe + P | 0, _[4] = _[0] + W +
|
|
3046
|
+
Q = oe + w[E + N[O]] | 0, O < 16 ? Q += h(W, L, I) + A[0] : O < 32 ? Q += x(W, L, I) + A[1] : O < 48 ? Q += p(W, L, I) + A[2] : O < 64 ? Q += v(W, L, I) + A[3] : Q += g(W, L, I) + A[4], Q = Q | 0, Q = k(Q, j[O]), Q = Q + D | 0, oe = D, D = I, I = k(L, 10), L = W, W = Q, Q = B + w[E + U[O]] | 0, O < 16 ? Q += g(P, H, $) + T[0] : O < 32 ? Q += v(P, H, $) + T[1] : O < 48 ? Q += p(P, H, $) + T[2] : O < 64 ? Q += x(P, H, $) + T[3] : Q += h(P, H, $) + T[4], Q = Q | 0, Q = k(Q, J[O]), Q = Q + V | 0, B = V, V = $, $ = k(H, 10), H = P, P = Q;
|
|
3047
|
+
Q = _[1] + L + $ | 0, _[1] = _[2] + I + V | 0, _[2] = _[3] + D + B | 0, _[3] = _[4] + oe + P | 0, _[4] = _[0] + W + H | 0, _[0] = Q;
|
|
3048
3048
|
},
|
|
3049
3049
|
_doFinalize: function() {
|
|
3050
3050
|
var w = this._data, E = w.words, O = this._nDataBytes * 8, F = w.sigBytes * 8;
|
|
@@ -3497,8 +3497,8 @@ function xt() {
|
|
|
3497
3497
|
* mode.processBlock(data.words, offset);
|
|
3498
3498
|
*/
|
|
3499
3499
|
processBlock: function(A, T) {
|
|
3500
|
-
var N = this._cipher,
|
|
3501
|
-
_.call(this, A, T,
|
|
3500
|
+
var N = this._cipher, U = N.blockSize;
|
|
3501
|
+
_.call(this, A, T, U), N.encryptBlock(A, T), this._prevBlock = A.slice(T, T + U);
|
|
3502
3502
|
}
|
|
3503
3503
|
}), S.Decryptor = S.extend({
|
|
3504
3504
|
/**
|
|
@@ -3512,15 +3512,15 @@ function xt() {
|
|
|
3512
3512
|
* mode.processBlock(data.words, offset);
|
|
3513
3513
|
*/
|
|
3514
3514
|
processBlock: function(A, T) {
|
|
3515
|
-
var N = this._cipher,
|
|
3516
|
-
N.decryptBlock(A, T), _.call(this, A, T,
|
|
3515
|
+
var N = this._cipher, U = N.blockSize, j = A.slice(T, T + U);
|
|
3516
|
+
N.decryptBlock(A, T), _.call(this, A, T, U), this._prevBlock = j;
|
|
3517
3517
|
}
|
|
3518
3518
|
});
|
|
3519
3519
|
function _(A, T, N) {
|
|
3520
|
-
var
|
|
3521
|
-
j ? (
|
|
3520
|
+
var U, j = this._iv;
|
|
3521
|
+
j ? (U = j, this._iv = r) : U = this._prevBlock;
|
|
3522
3522
|
for (var J = 0; J < N; J++)
|
|
3523
|
-
A[T + J] ^=
|
|
3523
|
+
A[T + J] ^= U[J];
|
|
3524
3524
|
}
|
|
3525
3525
|
return S;
|
|
3526
3526
|
}(), x = o.pad = {}, p = x.Pkcs7 = {
|
|
@@ -3537,9 +3537,9 @@ function xt() {
|
|
|
3537
3537
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3538
3538
|
*/
|
|
3539
3539
|
pad: function(S, _) {
|
|
3540
|
-
for (var A = _ * 4, T = A - S.sigBytes % A, N = T << 24 | T << 16 | T << 8 | T,
|
|
3541
|
-
|
|
3542
|
-
var J = l.create(
|
|
3540
|
+
for (var A = _ * 4, T = A - S.sigBytes % A, N = T << 24 | T << 16 | T << 8 | T, U = [], j = 0; j < T; j += 4)
|
|
3541
|
+
U.push(N);
|
|
3542
|
+
var J = l.create(U, T);
|
|
3543
3543
|
S.concat(J);
|
|
3544
3544
|
},
|
|
3545
3545
|
/**
|
|
@@ -3689,9 +3689,9 @@ function xt() {
|
|
|
3689
3689
|
*/
|
|
3690
3690
|
encrypt: function(S, _, A, T) {
|
|
3691
3691
|
T = this.cfg.extend(T);
|
|
3692
|
-
var N = S.createEncryptor(A, T),
|
|
3692
|
+
var N = S.createEncryptor(A, T), U = N.finalize(_), j = N.cfg;
|
|
3693
3693
|
return v.create({
|
|
3694
|
-
ciphertext:
|
|
3694
|
+
ciphertext: U,
|
|
3695
3695
|
key: A,
|
|
3696
3696
|
iv: j.iv,
|
|
3697
3697
|
algorithm: S,
|
|
@@ -3761,11 +3761,11 @@ function xt() {
|
|
|
3761
3761
|
*/
|
|
3762
3762
|
execute: function(S, _, A, T, N) {
|
|
3763
3763
|
if (T || (T = l.random(64 / 8)), N)
|
|
3764
|
-
var
|
|
3764
|
+
var U = f.create({ keySize: _ + A, hasher: N }).compute(S, T);
|
|
3765
3765
|
else
|
|
3766
|
-
var
|
|
3767
|
-
var j = l.create(
|
|
3768
|
-
return
|
|
3766
|
+
var U = f.create({ keySize: _ + A }).compute(S, T);
|
|
3767
|
+
var j = l.create(U.words.slice(_), A * 4);
|
|
3768
|
+
return U.sigBytes = _ * 4, v.create({ key: U, iv: j, salt: T });
|
|
3769
3769
|
}
|
|
3770
3770
|
}, F = a.PasswordBasedCipher = w.extend({
|
|
3771
3771
|
/**
|
|
@@ -3797,8 +3797,8 @@ function xt() {
|
|
|
3797
3797
|
T = this.cfg.extend(T);
|
|
3798
3798
|
var N = T.kdf.execute(A, S.keySize, S.ivSize, T.salt, T.hasher);
|
|
3799
3799
|
T.iv = N.iv;
|
|
3800
|
-
var
|
|
3801
|
-
return
|
|
3800
|
+
var U = w.encrypt.call(this, S, _, N.key, T);
|
|
3801
|
+
return U.mixIn(N), U;
|
|
3802
3802
|
},
|
|
3803
3803
|
/**
|
|
3804
3804
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3821,8 +3821,8 @@ function xt() {
|
|
|
3821
3821
|
T = this.cfg.extend(T), _ = this._parse(_, T.format);
|
|
3822
3822
|
var N = T.kdf.execute(A, S.keySize, S.ivSize, _.salt, T.hasher);
|
|
3823
3823
|
T.iv = N.iv;
|
|
3824
|
-
var
|
|
3825
|
-
return
|
|
3824
|
+
var U = w.decrypt.call(this, S, _, N.key, T);
|
|
3825
|
+
return U;
|
|
3826
3826
|
}
|
|
3827
3827
|
});
|
|
3828
3828
|
}();
|
|
@@ -4146,11 +4146,11 @@ function n1() {
|
|
|
4146
4146
|
v[g + 1] = v[g + 3], v[g + 3] = k;
|
|
4147
4147
|
},
|
|
4148
4148
|
_doCryptBlock: function(v, g, k, w, E, O, F, S) {
|
|
4149
|
-
for (var _ = this._nRounds, A = v[g] ^ k[0], T = v[g + 1] ^ k[1], N = v[g + 2] ^ k[2],
|
|
4150
|
-
var oe = w[A >>> 24] ^ E[T >>> 16 & 255] ^ O[N >>> 8 & 255] ^ F[
|
|
4151
|
-
A = oe, T = W, N = L,
|
|
4149
|
+
for (var _ = this._nRounds, A = v[g] ^ k[0], T = v[g + 1] ^ k[1], N = v[g + 2] ^ k[2], U = v[g + 3] ^ k[3], j = 4, J = 1; J < _; J++) {
|
|
4150
|
+
var oe = w[A >>> 24] ^ E[T >>> 16 & 255] ^ O[N >>> 8 & 255] ^ F[U & 255] ^ k[j++], W = w[T >>> 24] ^ E[N >>> 16 & 255] ^ O[U >>> 8 & 255] ^ F[A & 255] ^ k[j++], L = w[N >>> 24] ^ E[U >>> 16 & 255] ^ O[A >>> 8 & 255] ^ F[T & 255] ^ k[j++], I = w[U >>> 24] ^ E[A >>> 16 & 255] ^ O[T >>> 8 & 255] ^ F[N & 255] ^ k[j++];
|
|
4151
|
+
A = oe, T = W, N = L, U = I;
|
|
4152
4152
|
}
|
|
4153
|
-
var oe = (S[A >>> 24] << 24 | S[T >>> 16 & 255] << 16 | S[N >>> 8 & 255] << 8 | S[
|
|
4153
|
+
var oe = (S[A >>> 24] << 24 | S[T >>> 16 & 255] << 16 | S[N >>> 8 & 255] << 8 | S[U & 255]) ^ k[j++], W = (S[T >>> 24] << 24 | S[N >>> 16 & 255] << 16 | S[U >>> 8 & 255] << 8 | S[A & 255]) ^ k[j++], L = (S[N >>> 24] << 24 | S[U >>> 16 & 255] << 16 | S[A >>> 8 & 255] << 8 | S[T & 255]) ^ k[j++], I = (S[U >>> 24] << 24 | S[A >>> 16 & 255] << 16 | S[T >>> 8 & 255] << 8 | S[N & 255]) ^ k[j++];
|
|
4154
4154
|
v[g] = oe, v[g + 1] = W, v[g + 2] = L, v[g + 3] = I;
|
|
4155
4155
|
},
|
|
4156
4156
|
keySize: 256 / 32
|
|
@@ -6188,7 +6188,7 @@ function l1() {
|
|
|
6188
6188
|
}
|
|
6189
6189
|
(function(e, n) {
|
|
6190
6190
|
(function(t, r, o) {
|
|
6191
|
-
e.exports = r(ze(), ia(), Nd(), Pd(), pr(), qd(), mr(), lc(), dl(), $d(), uc(), jd(),
|
|
6191
|
+
e.exports = r(ze(), ia(), Nd(), Pd(), pr(), qd(), mr(), lc(), dl(), $d(), uc(), jd(), Ud(), Hd(), fl(), Vd(), tr(), xt(), zd(), Xd(), Kd(), Gd(), Qd(), Wd(), Zd(), Jd(), Yd(), e1(), t1(), n1(), r1(), o1(), a1(), i1(), l1());
|
|
6192
6192
|
})(Me, function(t) {
|
|
6193
6193
|
return t;
|
|
6194
6194
|
});
|
|
@@ -6215,7 +6215,7 @@ function f1(e) {
|
|
|
6215
6215
|
let n;
|
|
6216
6216
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(e) : n = e && e.buffer && dc(e.buffer), n;
|
|
6217
6217
|
}
|
|
6218
|
-
const h1 = sa("string"), zt = sa("function"), fc = sa("number"), so = (e) => e !== null && typeof e == "object", p1 = (e) => e === !0 || e === !1,
|
|
6218
|
+
const h1 = sa("string"), zt = sa("function"), fc = sa("number"), so = (e) => e !== null && typeof e == "object", p1 = (e) => e === !0 || e === !1, Ho = (e) => {
|
|
6219
6219
|
if (ua(e) !== "object")
|
|
6220
6220
|
return !1;
|
|
6221
6221
|
const n = hl(e);
|
|
@@ -6264,7 +6264,7 @@ const ur = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
6264
6264
|
function Wi() {
|
|
6265
6265
|
const { caseless: e, skipUndefined: n } = pc(this) && this || {}, t = {}, r = (o, a) => {
|
|
6266
6266
|
const i = e && hc(t, a) || a;
|
|
6267
|
-
|
|
6267
|
+
Ho(t[i]) && Ho(o) ? t[i] = Wi(t[i], o) : Ho(o) ? t[i] = Wi({}, o) : Rr(o) ? t[i] = o.slice() : (!n || !Or(o)) && (t[i] = o);
|
|
6268
6268
|
};
|
|
6269
6269
|
for (let o = 0, a = arguments.length; o < a; o++)
|
|
6270
6270
|
arguments[o] && co(arguments[o], r);
|
|
@@ -6349,8 +6349,8 @@ const S1 = (e, n, t, { allOwnKeys: r } = {}) => (co(n, (o, a) => {
|
|
|
6349
6349
|
});
|
|
6350
6350
|
};
|
|
6351
6351
|
return Rr(e) ? r(e) : r(String(e).split(n)), t;
|
|
6352
|
-
},
|
|
6353
|
-
},
|
|
6352
|
+
}, U1 = () => {
|
|
6353
|
+
}, H1 = (e, n) => e != null && Number.isFinite(e = +e) ? e : n;
|
|
6354
6354
|
function V1(e) {
|
|
6355
6355
|
return !!(e && zt(e.append) && e[cc] === "FormData" && e[la]);
|
|
6356
6356
|
}
|
|
@@ -6390,7 +6390,7 @@ const z1 = (e) => {
|
|
|
6390
6390
|
isNumber: fc,
|
|
6391
6391
|
isBoolean: p1,
|
|
6392
6392
|
isObject: so,
|
|
6393
|
-
isPlainObject:
|
|
6393
|
+
isPlainObject: Ho,
|
|
6394
6394
|
isEmptyObject: m1,
|
|
6395
6395
|
isReadableStream: k1,
|
|
6396
6396
|
isRequest: E1,
|
|
@@ -6427,8 +6427,8 @@ const z1 = (e) => {
|
|
|
6427
6427
|
freezeMethods: $1,
|
|
6428
6428
|
toObjectSet: j1,
|
|
6429
6429
|
toCamelCase: P1,
|
|
6430
|
-
noop:
|
|
6431
|
-
toFiniteNumber:
|
|
6430
|
+
noop: U1,
|
|
6431
|
+
toFiniteNumber: H1,
|
|
6432
6432
|
findKey: hc,
|
|
6433
6433
|
global: ur,
|
|
6434
6434
|
isContextDefined: pc,
|
|
@@ -7376,7 +7376,7 @@ const Ic = (e) => {
|
|
|
7376
7376
|
}))(pe.global), {
|
|
7377
7377
|
ReadableStream: $u,
|
|
7378
7378
|
TextEncoder: ju
|
|
7379
|
-
} = pe.global,
|
|
7379
|
+
} = pe.global, Uu = (e, ...n) => {
|
|
7380
7380
|
try {
|
|
7381
7381
|
return !!e(...n);
|
|
7382
7382
|
} catch {
|
|
@@ -7389,7 +7389,7 @@ const Ic = (e) => {
|
|
|
7389
7389
|
const { fetch: n, Request: t, Response: r } = e, o = n ? So(n) : typeof fetch == "function", a = So(t), i = So(r);
|
|
7390
7390
|
if (!o)
|
|
7391
7391
|
return !1;
|
|
7392
|
-
const l = o && So($u), u = o && (typeof ju == "function" ? /* @__PURE__ */ ((d) => (b) => d.encode(b))(new ju()) : async (d) => new Uint8Array(await new t(d).arrayBuffer())), s = a && l &&
|
|
7392
|
+
const l = o && So($u), u = o && (typeof ju == "function" ? /* @__PURE__ */ ((d) => (b) => d.encode(b))(new ju()) : async (d) => new Uint8Array(await new t(d).arrayBuffer())), s = a && l && Uu(() => {
|
|
7393
7393
|
let d = !1;
|
|
7394
7394
|
const b = new t(St.origin, {
|
|
7395
7395
|
body: new $u(),
|
|
@@ -7399,7 +7399,7 @@ const Ic = (e) => {
|
|
|
7399
7399
|
}
|
|
7400
7400
|
}).headers.has("Content-Type");
|
|
7401
7401
|
return d && !b;
|
|
7402
|
-
}), c = i && l &&
|
|
7402
|
+
}), c = i && l && Uu(() => pe.isReadableStream(new r("").body)), y = {
|
|
7403
7403
|
stream: c && ((d) => d.body)
|
|
7404
7404
|
};
|
|
7405
7405
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
@@ -7448,9 +7448,9 @@ const Ic = (e) => {
|
|
|
7448
7448
|
const N = A && A.unsubscribe && (() => {
|
|
7449
7449
|
A.unsubscribe();
|
|
7450
7450
|
});
|
|
7451
|
-
let
|
|
7451
|
+
let U;
|
|
7452
7452
|
try {
|
|
7453
|
-
if (w && s && h !== "get" && h !== "head" && (
|
|
7453
|
+
if (w && s && h !== "get" && h !== "head" && (U = await m(O, x)) !== 0) {
|
|
7454
7454
|
let I = new t(b, {
|
|
7455
7455
|
method: "POST",
|
|
7456
7456
|
body: x,
|
|
@@ -7458,7 +7458,7 @@ const Ic = (e) => {
|
|
|
7458
7458
|
}), D;
|
|
7459
7459
|
if (pe.isFormData(x) && (D = I.headers.get("content-type")) && O.setContentType(D), I.body) {
|
|
7460
7460
|
const [B, P] = Ru(
|
|
7461
|
-
|
|
7461
|
+
U,
|
|
7462
7462
|
Wo(Lu(w))
|
|
7463
7463
|
);
|
|
7464
7464
|
x = Pu(I.body, qu, B, P);
|
|
@@ -7479,8 +7479,8 @@ const Ic = (e) => {
|
|
|
7479
7479
|
const W = c && (E === "stream" || E === "response");
|
|
7480
7480
|
if (c && (k || W && N)) {
|
|
7481
7481
|
const I = {};
|
|
7482
|
-
["status", "statusText", "headers"].forEach((
|
|
7483
|
-
I[
|
|
7482
|
+
["status", "statusText", "headers"].forEach((H) => {
|
|
7483
|
+
I[H] = oe[H];
|
|
7484
7484
|
});
|
|
7485
7485
|
const D = pe.toFiniteNumber(oe.headers.get("content-length")), [B, P] = k && Ru(
|
|
7486
7486
|
D,
|
|
@@ -7543,7 +7543,7 @@ pe.forEach(gl, (e, n) => {
|
|
|
7543
7543
|
Object.defineProperty(e, "adapterName", { value: n });
|
|
7544
7544
|
}
|
|
7545
7545
|
});
|
|
7546
|
-
const
|
|
7546
|
+
const Hu = (e) => `- ${e}`, Lf = (e) => pe.isFunction(e) || e === null || e === !1;
|
|
7547
7547
|
function Nf(e, n) {
|
|
7548
7548
|
e = pe.isArray(e) ? e : [e];
|
|
7549
7549
|
const { length: t } = e;
|
|
@@ -7563,8 +7563,8 @@ function Nf(e, n) {
|
|
|
7563
7563
|
([u, s]) => `adapter ${u} ` + (s === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
7564
7564
|
);
|
|
7565
7565
|
let l = t ? i.length > 1 ? `since :
|
|
7566
|
-
` + i.map(
|
|
7567
|
-
`) : " " +
|
|
7566
|
+
` + i.map(Hu).join(`
|
|
7567
|
+
`) : " " + Hu(i[0]) : "as no adapter specified";
|
|
7568
7568
|
throw new Pe(
|
|
7569
7569
|
"There is no suitable adapter to dispatch the request " + l,
|
|
7570
7570
|
"ERR_NOT_SUPPORT"
|
|
@@ -7937,7 +7937,7 @@ const Yi = {
|
|
|
7937
7937
|
Object.entries(Yi).forEach(([e, n]) => {
|
|
7938
7938
|
Yi[n] = e;
|
|
7939
7939
|
});
|
|
7940
|
-
const
|
|
7940
|
+
const Uf = Yi;
|
|
7941
7941
|
function Dc(e) {
|
|
7942
7942
|
const n = new Xo(e), t = sc(Xo.prototype.request, n);
|
|
7943
7943
|
return pe.extend(t, Xo.prototype, n, { allOwnKeys: !0 }), pe.extend(t, n, null, { allOwnKeys: !0 }), t.create = function(o) {
|
|
@@ -7962,9 +7962,9 @@ Ze.mergeConfig = dr;
|
|
|
7962
7962
|
Ze.AxiosHeaders = bn;
|
|
7963
7963
|
Ze.formToJSON = (e) => kc(pe.isHTMLForm(e) ? new FormData(e) : e);
|
|
7964
7964
|
Ze.getAdapter = Oc.getAdapter;
|
|
7965
|
-
Ze.HttpStatusCode =
|
|
7965
|
+
Ze.HttpStatusCode = Uf;
|
|
7966
7966
|
Ze.default = Ze;
|
|
7967
|
-
const
|
|
7967
|
+
const Hf = (
|
|
7968
7968
|
/* GraphQL */
|
|
7969
7969
|
`
|
|
7970
7970
|
query DataByDomain($domain: String!, $templateBlocksFilter: ModelTemplateBlockFilterInput) {
|
|
@@ -8378,8 +8378,8 @@ const Fn = bt("catalog", () => {
|
|
|
8378
8378
|
config: {
|
|
8379
8379
|
pathKey: "catalog.saveItemToQuoteBlink"
|
|
8380
8380
|
}
|
|
8381
|
-
}),
|
|
8382
|
-
|
|
8381
|
+
}), H = (P == null ? void 0 : P.quoteId) || ((W = P == null ? void 0 : P.data) == null ? void 0 : W.quoteId) || ((I = (L = P == null ? void 0 : P.data) == null ? void 0 : L.quote) == null ? void 0 : I.Id);
|
|
8382
|
+
H && H !== J && (r.value = H, e.updateConfig({ quoteId: H }));
|
|
8383
8383
|
const $ = ((D = P == null ? void 0 : P.data) == null ? void 0 : D.QliId) || (P == null ? void 0 : P.QliId) || null, V = j == null ? void 0 : j.itemID, Q = j == null ? void 0 : j.qty;
|
|
8384
8384
|
if ($ && V) {
|
|
8385
8385
|
const ee = l.value ? l.value[V] : null;
|
|
@@ -8397,7 +8397,7 @@ const Fn = bt("catalog", () => {
|
|
|
8397
8397
|
itemId: oe.itemId,
|
|
8398
8398
|
eCatalogItemId: oe.eCatalogItemId || null,
|
|
8399
8399
|
quantity: oe.quantity,
|
|
8400
|
-
quoteId: (e == null ? void 0 : e.quoteId.value) ||
|
|
8400
|
+
quoteId: (e == null ? void 0 : e.quoteId.value) || H || null,
|
|
8401
8401
|
qliId: ((B = P == null ? void 0 : P.data) == null ? void 0 : B.QliId) || (P == null ? void 0 : P.QliId) || null,
|
|
8402
8402
|
response: P
|
|
8403
8403
|
}), P;
|
|
@@ -8407,11 +8407,11 @@ const Fn = bt("catalog", () => {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
}
|
|
8409
8409
|
async function k({ itemId: j, qty: J, qliId: oe, eCatalogItemId: W } = {}) {
|
|
8410
|
-
var D, B, P,
|
|
8410
|
+
var D, B, P, H, $;
|
|
8411
8411
|
if (console.log("updateQuoteLineQtyTxn", { itemId: j, qty: J, qliId: oe, eCatalogItemId: W }), !J && J !== 0)
|
|
8412
8412
|
return;
|
|
8413
8413
|
let L = oe || ((B = (D = l.value) == null ? void 0 : D[j]) == null ? void 0 : B.Id);
|
|
8414
|
-
if (L || (await A(!0), L = oe || ((
|
|
8414
|
+
if (L || (await A(!0), L = oe || ((H = (P = l.value) == null ? void 0 : P[j]) == null ? void 0 : H.Id)), !L) {
|
|
8415
8415
|
if (J > 0 && j && W)
|
|
8416
8416
|
return console.warn("[CATALOG:updateQuoteLineQtyTxn] Missing QLI Id, saving item first", { itemId: j, eCatalogItemId: W }), await g({
|
|
8417
8417
|
itemID: j,
|
|
@@ -8484,12 +8484,12 @@ const Fn = bt("catalog", () => {
|
|
|
8484
8484
|
filters: (j == null ? void 0 : j.whereCondition) || []
|
|
8485
8485
|
};
|
|
8486
8486
|
try {
|
|
8487
|
-
const
|
|
8487
|
+
const H = await Yt({
|
|
8488
8488
|
data: B,
|
|
8489
8489
|
config: {
|
|
8490
8490
|
pathKey: "catalog.getProductItems"
|
|
8491
8491
|
}
|
|
8492
|
-
}), $ =
|
|
8492
|
+
}), $ = H.selected_products, V = Object.values($).map((ee) => {
|
|
8493
8493
|
var Y;
|
|
8494
8494
|
return (Y = ee == null ? void 0 : ee.catalogResponse) == null ? void 0 : Y.productInfo;
|
|
8495
8495
|
}).filter(Boolean);
|
|
@@ -8507,13 +8507,13 @@ const Fn = bt("catalog", () => {
|
|
|
8507
8507
|
Y.friendlyURL = Y.friendlyURL.replace(`{!${ne}}`, at(ee, ne));
|
|
8508
8508
|
}), Y.friendlyURL = "/" + Y.friendlyURL + "/" + ie) : Y.url && (Y.friendlyURL = Y.url + "/" + ee.Id), Y.friendlyURL && (Y.friendlyURL = Y.friendlyURL.replace(/\/{2,}/g, "/")), L.push(Y);
|
|
8509
8509
|
});
|
|
8510
|
-
const Q = Number(((P =
|
|
8510
|
+
const Q = Number(((P = H == null ? void 0 : H.data) == null ? void 0 : P.totalCount) || V.length) || 0;
|
|
8511
8511
|
return {
|
|
8512
8512
|
items: L,
|
|
8513
8513
|
count: Q > 2e3 ? 2e3 : Q
|
|
8514
8514
|
};
|
|
8515
|
-
} catch (
|
|
8516
|
-
console.log("[CATALOG:getProductItems] new API error",
|
|
8515
|
+
} catch (H) {
|
|
8516
|
+
console.log("[CATALOG:getProductItems] new API error", H);
|
|
8517
8517
|
return;
|
|
8518
8518
|
}
|
|
8519
8519
|
}
|
|
@@ -8560,7 +8560,7 @@ const Fn = bt("catalog", () => {
|
|
|
8560
8560
|
return J(JSON.parse(JSON.parse(W.response.salesforceActions).content)), JSON.parse(JSON.parse(W.response.salesforceActions).content);
|
|
8561
8561
|
}
|
|
8562
8562
|
async function S() {
|
|
8563
|
-
var L, I, D, B, P,
|
|
8563
|
+
var L, I, D, B, P, H;
|
|
8564
8564
|
console.log("[CATALOG:getObjectDetails] start", { currentQuoteId: r.value, payload: d.value });
|
|
8565
8565
|
const j = e.quoteId.value;
|
|
8566
8566
|
if (console.log("[CATALOG:getObjectDetails] qtId", j), j)
|
|
@@ -8588,7 +8588,7 @@ const Fn = bt("catalog", () => {
|
|
|
8588
8588
|
id: (I = i.value) == null ? void 0 : I.Id,
|
|
8589
8589
|
accountName: (D = i.value) == null ? void 0 : D.XX_ORD1__Account_Name__c,
|
|
8590
8590
|
checkedOut: (B = i.value) == null ? void 0 : B.XX_ORD1__Checked_Out__c
|
|
8591
|
-
}), e.quoteAccount = (P = i.value) == null ? void 0 : P.XX_ORD1__Account_Name__c, i.value.XX_ORD1__Checked_Out__c ? (console.warn("[CATALOG:getObjectDetails] Quote is already checked out, resetting quoteId"), n.value = !0, console.log("[CATALOG:getObjectDetails] end (checked out) -> false"), !1) : (console.log("[CATALOG:getObjectDetails] end (success)", { id: (
|
|
8591
|
+
}), e.quoteAccount = (P = i.value) == null ? void 0 : P.XX_ORD1__Account_Name__c, i.value.XX_ORD1__Checked_Out__c ? (console.warn("[CATALOG:getObjectDetails] Quote is already checked out, resetting quoteId"), n.value = !0, console.log("[CATALOG:getObjectDetails] end (checked out) -> false"), !1) : (console.log("[CATALOG:getObjectDetails] end (success)", { id: (H = i.value) == null ? void 0 : H.Id }), i.value)) : (console.warn("[CATALOG:getObjectDetails] no content returned, resetting quoteId", { qtId: j }), console.log("[CATALOG:getObjectDetails] end (no content) -> false"), !1);
|
|
8592
8592
|
}
|
|
8593
8593
|
const _ = sn(A, 500);
|
|
8594
8594
|
async function A(j = !1) {
|
|
@@ -8608,8 +8608,8 @@ const Fn = bt("catalog", () => {
|
|
|
8608
8608
|
}
|
|
8609
8609
|
}), I = ((W = L == null ? void 0 : L.data) == null ? void 0 : W.products) || (L == null ? void 0 : L.products) || [], D = [], B = {};
|
|
8610
8610
|
I.forEach((P) => {
|
|
8611
|
-
const
|
|
8612
|
-
|
|
8611
|
+
const H = P == null ? void 0 : P.productLineItem;
|
|
8612
|
+
H && (D.push(H), H.XX_ORD1__Item__c && (B[H.XX_ORD1__Item__c] = H)), (Array.isArray(P == null ? void 0 : P.options) ? P.options : []).forEach((V) => {
|
|
8613
8613
|
D.push(V), V.XX_ORD1__Item__c && (B[V.XX_ORD1__Item__c] = V);
|
|
8614
8614
|
});
|
|
8615
8615
|
}), a.value = D, l.value = B, t.value = D.length, f.value.qliRecords = !1, console.log("[CATALOG:getQuoteItems] end (success)", { count: D.length }), sr("catalog:items-fetched", {
|
|
@@ -8666,7 +8666,7 @@ const Fn = bt("catalog", () => {
|
|
|
8666
8666
|
} else
|
|
8667
8667
|
console.log("[CATALOG:calculateAvaTax] Shipping address not found so tax can not be calculated");
|
|
8668
8668
|
}
|
|
8669
|
-
function
|
|
8669
|
+
function U(j, J, oe = !0) {
|
|
8670
8670
|
const W = J.qtyTiers;
|
|
8671
8671
|
if (!W)
|
|
8672
8672
|
return null;
|
|
@@ -8699,7 +8699,7 @@ const Fn = bt("catalog", () => {
|
|
|
8699
8699
|
getProductItems: w,
|
|
8700
8700
|
calculateAvaTax: N,
|
|
8701
8701
|
getEcatalogDetails: E,
|
|
8702
|
-
getVolumePrice:
|
|
8702
|
+
getVolumePrice: U,
|
|
8703
8703
|
configurableItemsSorted: b,
|
|
8704
8704
|
getTopConfigurableItem: h,
|
|
8705
8705
|
getQuoteItems: A
|
|
@@ -8725,7 +8725,7 @@ const Fn = bt("catalog", () => {
|
|
|
8725
8725
|
}, F = Date.now().toString(), S = await Ze.post(
|
|
8726
8726
|
`${t.graphqlEndpoint.value}?t=${F}`,
|
|
8727
8727
|
{
|
|
8728
|
-
query:
|
|
8728
|
+
query: Hf,
|
|
8729
8729
|
variables: O
|
|
8730
8730
|
},
|
|
8731
8731
|
{
|
|
@@ -9233,8 +9233,8 @@ const n2 = {
|
|
|
9233
9233
|
});
|
|
9234
9234
|
if (!N.ok)
|
|
9235
9235
|
throw new Error(`Playbook fetch failed: ${N.status}`);
|
|
9236
|
-
const
|
|
9237
|
-
return i.value =
|
|
9236
|
+
const U = await N.json();
|
|
9237
|
+
return i.value = U.data ?? null, console.log("[playbook] currentPlaybook", i.value), U;
|
|
9238
9238
|
} catch (T) {
|
|
9239
9239
|
if (console.warn("[playbook] Falling back to bundled DXP playbook due to fetch error:", (T == null ? void 0 : T.message) || T), _ === "PB_DXP_001")
|
|
9240
9240
|
return i.value = n2, i.value;
|
|
@@ -9248,7 +9248,7 @@ const n2 = {
|
|
|
9248
9248
|
var T, N;
|
|
9249
9249
|
if (!((N = (T = i.value) == null ? void 0 : T.playBookSteps) != null && N.length))
|
|
9250
9250
|
return;
|
|
9251
|
-
i.value.playBookSteps.some((
|
|
9251
|
+
i.value.playBookSteps.some((U) => U.stepName === _ || U.name === _) && (l.value = _);
|
|
9252
9252
|
}
|
|
9253
9253
|
const p = ce(() => {
|
|
9254
9254
|
var A;
|
|
@@ -9275,16 +9275,16 @@ const n2 = {
|
|
|
9275
9275
|
console.info(`[Warn] [navigateToStep] No step found for stepName "${_}".`);
|
|
9276
9276
|
return;
|
|
9277
9277
|
}
|
|
9278
|
-
const
|
|
9278
|
+
const U = T[N];
|
|
9279
9279
|
if (console.log("[playbook:navigateToStep] target step resolved", {
|
|
9280
9280
|
targetIndex: N,
|
|
9281
|
-
targetStepName: (
|
|
9282
|
-
stepComponent:
|
|
9283
|
-
}),
|
|
9281
|
+
targetStepName: (U == null ? void 0 : U.stepName) || (U == null ? void 0 : U.name),
|
|
9282
|
+
stepComponent: U == null ? void 0 : U.stepComponent
|
|
9283
|
+
}), U != null && U.stepComponent && Di.includes(U.stepComponent)) {
|
|
9284
9284
|
console.info(
|
|
9285
|
-
`[navigateToStep] Target step "${
|
|
9285
|
+
`[navigateToStep] Target step "${U.stepName}" is a NON_COMPONENT (${U.stepComponent}), storing data in localStorage and searching for a valid component step above.`
|
|
9286
9286
|
);
|
|
9287
|
-
const P = getPreviousValidStep(
|
|
9287
|
+
const P = getPreviousValidStep(U.stepName);
|
|
9288
9288
|
P && (console.info(`[navigateToStep] Valid step to return to: "${P}".`), setDataToLocalStorage({
|
|
9289
9289
|
stepName: P,
|
|
9290
9290
|
pbUniqueId: (W = i.value) == null ? void 0 : W.pbUniqueId
|
|
@@ -9292,8 +9292,8 @@ const n2 = {
|
|
|
9292
9292
|
}
|
|
9293
9293
|
let j = !1;
|
|
9294
9294
|
for (let P = N; P >= 0; P--) {
|
|
9295
|
-
const
|
|
9296
|
-
if (console.info(`[navigateToStep] Checking step[${P}]:`,
|
|
9295
|
+
const H = T[P], $ = H == null ? void 0 : H.stepComponent;
|
|
9296
|
+
if (console.info(`[navigateToStep] Checking step[${P}]:`, H), !$) {
|
|
9297
9297
|
console.info(`[navigateToStep] Step[${P}] has no component, skipping.`);
|
|
9298
9298
|
continue;
|
|
9299
9299
|
}
|
|
@@ -9301,7 +9301,7 @@ const n2 = {
|
|
|
9301
9301
|
console.info(`[navigateToStep] Step[${P}] component "${$}" is in NON_COMPONENTS, skipping.`);
|
|
9302
9302
|
continue;
|
|
9303
9303
|
}
|
|
9304
|
-
l.value =
|
|
9304
|
+
l.value = H.stepName ?? _, console.info(`[navigateToStep] Navigating to step[${P}] "${l.value}" with component "${$}".`);
|
|
9305
9305
|
const V = P - 1;
|
|
9306
9306
|
if (V >= 0) {
|
|
9307
9307
|
const ie = T[V], fe = String(ie == null ? void 0 : ie.sequenceNumber);
|
|
@@ -9350,11 +9350,11 @@ const n2 = {
|
|
|
9350
9350
|
console.info(`[navigateToBean] Bean "${_}" not found in current step "${(oe = A[T]) == null ? void 0 : oe.stepName}".`);
|
|
9351
9351
|
return;
|
|
9352
9352
|
}
|
|
9353
|
-
const
|
|
9354
|
-
|
|
9353
|
+
const U = A[T + 1];
|
|
9354
|
+
U != null && U.stepName && v({ stepName: U.stepName });
|
|
9355
9355
|
}
|
|
9356
9356
|
function k(_, A = null) {
|
|
9357
|
-
var
|
|
9357
|
+
var U, j, J, oe, W, L, I, D, B, P, H, $, V, Q, ee, Y;
|
|
9358
9358
|
console.log("[playbook:loadComponent] called", {
|
|
9359
9359
|
stepComponent: _,
|
|
9360
9360
|
dataProvided: !!A,
|
|
@@ -9376,7 +9376,7 @@ const n2 = {
|
|
|
9376
9376
|
console.info("[playbook] Quote line items reloaded...");
|
|
9377
9377
|
})), T === "/configurator")
|
|
9378
9378
|
if (console.log("[playbook:loadComponent] navigating to configurator", {
|
|
9379
|
-
hasQuoteConfiguration: !!((
|
|
9379
|
+
hasQuoteConfiguration: !!((U = A == null ? void 0 : A.payload) != null && U.quoteConfiguration && Object.keys(((j = A == null ? void 0 : A.payload) == null ? void 0 : j.quoteConfiguration) ?? {}).length > 0),
|
|
9380
9380
|
hasSavedProducts: ((oe = (J = A == null ? void 0 : A.payload) == null ? void 0 : J.savedProducts) == null ? void 0 : oe.length) > 0,
|
|
9381
9381
|
isReload: (A == null ? void 0 : A.actionFunction) === "Reload"
|
|
9382
9382
|
}), (W = A == null ? void 0 : A.payload) != null && W.quoteConfiguration && Object.keys(((L = A == null ? void 0 : A.payload) == null ? void 0 : L.quoteConfiguration) ?? {}).length > 0) {
|
|
@@ -9384,7 +9384,7 @@ const n2 = {
|
|
|
9384
9384
|
r.setPreConfigData(A == null ? void 0 : A.payload, ie), router.push(`/configurator/${ie}`);
|
|
9385
9385
|
return;
|
|
9386
9386
|
} else if (((B = (D = A == null ? void 0 : A.payload) == null ? void 0 : D.savedProducts) == null ? void 0 : B.length) > 0) {
|
|
9387
|
-
const ie = (P = A == null ? void 0 : A.payload) == null ? void 0 : P.savedProducts[0].itemId, fe = (
|
|
9387
|
+
const ie = (P = A == null ? void 0 : A.payload) == null ? void 0 : P.savedProducts[0].itemId, fe = (H = A == null ? void 0 : A.payload) == null ? void 0 : H.savedProducts[0].qliId;
|
|
9388
9388
|
router.push(`/configurator/${ie}/${fe}`);
|
|
9389
9389
|
return;
|
|
9390
9390
|
} else if ((A == null ? void 0 : A.actionFunction) === "Reload") {
|
|
@@ -9428,9 +9428,9 @@ const n2 = {
|
|
|
9428
9428
|
// No Component for Quote Document, is a redirection
|
|
9429
9429
|
};
|
|
9430
9430
|
if (A === "quote_document") {
|
|
9431
|
-
const
|
|
9432
|
-
return
|
|
9433
|
-
stepName:
|
|
9431
|
+
const U = getPreviousValidStep(l.value);
|
|
9432
|
+
return U && setDataToLocalStorage({
|
|
9433
|
+
stepName: U,
|
|
9434
9434
|
pbUniqueId: (N = i.value) == null ? void 0 : N.pbUniqueId
|
|
9435
9435
|
}), goToQuoteDocument(), null;
|
|
9436
9436
|
}
|
|
@@ -9470,7 +9470,7 @@ const n2 = {
|
|
|
9470
9470
|
const T = ((A = n.quoteId) == null ? void 0 : A.value) || getUrlQueryParam("id") || "";
|
|
9471
9471
|
if (!T)
|
|
9472
9472
|
throw new Error("addPlaybookInfoToQuote: Missing Quote Id");
|
|
9473
|
-
const N = { Id: T, ..._ },
|
|
9473
|
+
const N = { Id: T, ..._ }, U = Object.entries(N).map(([L, I]) => ({
|
|
9474
9474
|
fieldName: L,
|
|
9475
9475
|
fieldValue: I
|
|
9476
9476
|
})), j = `${n.composablesApiUrl.value}/platform/upsertRecords`, J = {
|
|
@@ -9478,7 +9478,7 @@ const n2 = {
|
|
|
9478
9478
|
uniqueField: "Id",
|
|
9479
9479
|
records: [
|
|
9480
9480
|
{
|
|
9481
|
-
fields:
|
|
9481
|
+
fields: U
|
|
9482
9482
|
}
|
|
9483
9483
|
]
|
|
9484
9484
|
}, W = await (await fetch(j, {
|
|
@@ -9654,7 +9654,7 @@ const yr = bt("ai", () => {
|
|
|
9654
9654
|
};
|
|
9655
9655
|
async function _() {
|
|
9656
9656
|
const G = F.value + "?chatRoomId=" + E.value;
|
|
9657
|
-
y.value = new WebSocket(G), y.value.addEventListener("open", A), y.value.addEventListener("message",
|
|
9657
|
+
y.value = new WebSocket(G), y.value.addEventListener("open", A), y.value.addEventListener("message", U), y.value.addEventListener("close", T), y.value.addEventListener("error", N);
|
|
9658
9658
|
}
|
|
9659
9659
|
const A = () => {
|
|
9660
9660
|
oe(), I();
|
|
@@ -9662,7 +9662,7 @@ const yr = bt("ai", () => {
|
|
|
9662
9662
|
W();
|
|
9663
9663
|
}, N = () => {
|
|
9664
9664
|
ee(), W();
|
|
9665
|
-
},
|
|
9665
|
+
}, U = (G) => {
|
|
9666
9666
|
var ne, te;
|
|
9667
9667
|
oe();
|
|
9668
9668
|
const X = JSON.parse(G.data);
|
|
@@ -9729,11 +9729,11 @@ const yr = bt("ai", () => {
|
|
|
9729
9729
|
};
|
|
9730
9730
|
function L(G) {
|
|
9731
9731
|
const X = { ...f.value };
|
|
9732
|
-
X.requestType = "Action", X.actionType = "Undo", X.undoRequestId = G, X.requestId = cr(),
|
|
9732
|
+
X.requestType = "Action", X.actionType = "Undo", X.undoRequestId = G, X.requestId = cr(), H(X);
|
|
9733
9733
|
}
|
|
9734
9734
|
function I() {
|
|
9735
9735
|
const G = { ...f.value };
|
|
9736
|
-
G.requestType = "Action", G.actionType = "History", G.requestId = cr(),
|
|
9736
|
+
G.requestType = "Action", G.actionType = "History", G.requestId = cr(), H(G);
|
|
9737
9737
|
}
|
|
9738
9738
|
function D(G) {
|
|
9739
9739
|
return console.info("[ai] isUnsavedChanges check", {
|
|
@@ -9761,7 +9761,7 @@ const yr = bt("ai", () => {
|
|
|
9761
9761
|
requestId: te.requestId,
|
|
9762
9762
|
requestType: te.requestType,
|
|
9763
9763
|
componentName: te.componentName
|
|
9764
|
-
}),
|
|
9764
|
+
}), H(te), oe();
|
|
9765
9765
|
}
|
|
9766
9766
|
}
|
|
9767
9767
|
const P = ce(() => {
|
|
@@ -9769,7 +9769,7 @@ const yr = bt("ai", () => {
|
|
|
9769
9769
|
const G = ((ne = a.currentPlaybook) == null ? void 0 : ne.pbUniqueId) ?? ((te = a.currentPlaybook) == null ? void 0 : te.vUniqueId) ?? null, X = a.currentStepName ?? ((de = a.currentStep) == null ? void 0 : de.stepName) ?? null;
|
|
9770
9770
|
return { pbUniqueId: G, stepName: X };
|
|
9771
9771
|
});
|
|
9772
|
-
function
|
|
9772
|
+
function H(G) {
|
|
9773
9773
|
const X = { ...G }, { pbUniqueId: ne, stepName: te } = P.value || {};
|
|
9774
9774
|
console.log("[ai] activePlaybookContext", P.value), ne && (X.pbUniqueId = ne), te && (X.stepName = te);
|
|
9775
9775
|
const de = {
|
|
@@ -9890,7 +9890,7 @@ const yr = bt("ai", () => {
|
|
|
9890
9890
|
try {
|
|
9891
9891
|
console.info("getRecordInfo", r.value);
|
|
9892
9892
|
let A = await window.salesforceConnector.getRecordInfo(r.value);
|
|
9893
|
-
return A =
|
|
9893
|
+
return A = Ht(A), A !== void 0 && (f.value = A, m.value = A.name, d.value = A.objectType, b.value = A.accountId, h.value = A.eCatalogId, x.value = A.currencyCode, p.value = A.userLocale, v.value = A.opportunityId), (A == null ? void 0 : A.objectType) === "XX_ORD1__Quote__c" ? (t.quoteId = A == null ? void 0 : A.recordId, t.templateId = A == null ? void 0 : A.templateId, t.quoteName = A == null ? void 0 : A.name, t.lineItemsCount = (A == null ? void 0 : A.lineItemsCount) || 0) : (A == null ? void 0 : A.objectType) === "Opportunity" && await t.getPrimaryQuote(A.recordId), A;
|
|
9894
9894
|
} catch (A) {
|
|
9895
9895
|
n.handleError(A.message);
|
|
9896
9896
|
}
|
|
@@ -9939,7 +9939,7 @@ const yr = bt("ai", () => {
|
|
|
9939
9939
|
async function x() {
|
|
9940
9940
|
try {
|
|
9941
9941
|
let F = await window.salesforceConnector.getProductCount(e.quoteId);
|
|
9942
|
-
if (F =
|
|
9942
|
+
if (F = Ht(F), F != null && F.errorMessage) {
|
|
9943
9943
|
t.handleError(F.errorMessage);
|
|
9944
9944
|
return;
|
|
9945
9945
|
}
|
|
@@ -9951,7 +9951,7 @@ const yr = bt("ai", () => {
|
|
|
9951
9951
|
async function p() {
|
|
9952
9952
|
try {
|
|
9953
9953
|
let F = await window.salesforceConnector.getQuoteTotal(e.quoteId);
|
|
9954
|
-
if (F =
|
|
9954
|
+
if (F = Ht(F), F != null && F.errorMessage) {
|
|
9955
9955
|
t.handleError(F.errorMessage);
|
|
9956
9956
|
return;
|
|
9957
9957
|
}
|
|
@@ -9963,9 +9963,9 @@ const yr = bt("ai", () => {
|
|
|
9963
9963
|
async function v(F, S, _, A = "") {
|
|
9964
9964
|
if (!e.sectionDataMap.get(_).parentQLIs[S].removingItem) {
|
|
9965
9965
|
e.sectionDataMap.get(_).parentQLIs[S].removingItem = !0, d.value = F.id, await g(F.id) === "Success" && (e.fetchAllQuoteLineItems(), A && A(F, S, _));
|
|
9966
|
-
let N = e.sectionDataMap.get(_).parentQLIs.filter((
|
|
9967
|
-
d.value = "", n.lstItems.forEach((
|
|
9968
|
-
|
|
9966
|
+
let N = e.sectionDataMap.get(_).parentQLIs.filter((U) => U[Mo] === F[Mo]).length;
|
|
9967
|
+
d.value = "", n.lstItems.forEach((U) => {
|
|
9968
|
+
U[Mo] === F[Mo] && (U.addedToQuote === !0 && (U.addedToQuote = !1), N === 0 && (U.removedFromQuote = !0));
|
|
9969
9969
|
});
|
|
9970
9970
|
}
|
|
9971
9971
|
}
|
|
@@ -10012,11 +10012,11 @@ const yr = bt("ai", () => {
|
|
|
10012
10012
|
const A = F.match(/(\d[\d,]*)(\.\d+)?/);
|
|
10013
10013
|
if (!A)
|
|
10014
10014
|
return F;
|
|
10015
|
-
const T = A[2] || "", N = T.length ? T.length - 1 : 0,
|
|
10015
|
+
const T = A[2] || "", N = T.length ? T.length - 1 : 0, U = _.toLocaleString("en-US", {
|
|
10016
10016
|
minimumFractionDigits: N,
|
|
10017
10017
|
maximumFractionDigits: N
|
|
10018
10018
|
});
|
|
10019
|
-
return F.replace(A[1] + T,
|
|
10019
|
+
return F.replace(A[1] + T, U);
|
|
10020
10020
|
}
|
|
10021
10021
|
return {
|
|
10022
10022
|
initializeCart: h,
|
|
@@ -10183,10 +10183,10 @@ const yr = bt("ai", () => {
|
|
|
10183
10183
|
const D = JSON.parse(JSON.stringify(I));
|
|
10184
10184
|
return D.forEach((B) => {
|
|
10185
10185
|
delete B.selected;
|
|
10186
|
-
const P = /* @__PURE__ */ new Map(),
|
|
10186
|
+
const P = /* @__PURE__ */ new Map(), H = [];
|
|
10187
10187
|
B.lineItems.forEach(($) => {
|
|
10188
|
-
$.Selected = L.get(B.tableId).get($.id) || !1, $.xx_ord1__parent_qli__c ? (P.has($.xx_ord1__parent_qli__c) || P.set($.xx_ord1__parent_qli__c, []), P.get($.xx_ord1__parent_qli__c).push($)) :
|
|
10189
|
-
}), B.lineItems =
|
|
10188
|
+
$.Selected = L.get(B.tableId).get($.id) || !1, $.xx_ord1__parent_qli__c ? (P.has($.xx_ord1__parent_qli__c) || P.set($.xx_ord1__parent_qli__c, []), P.get($.xx_ord1__parent_qli__c).push($)) : H.push($);
|
|
10189
|
+
}), B.lineItems = H.map(($) => ({ ...$, options: P.get($.id) || [] })), delete B.loading, delete B.parentQLIs, delete B.totalValues;
|
|
10190
10190
|
}), {
|
|
10191
10191
|
showOptions: m.value,
|
|
10192
10192
|
sections: D,
|
|
@@ -10196,7 +10196,7 @@ const yr = bt("ai", () => {
|
|
|
10196
10196
|
async function p(L) {
|
|
10197
10197
|
try {
|
|
10198
10198
|
let I = await window.salesforceConnector.getPrimaryQuote(L);
|
|
10199
|
-
I =
|
|
10199
|
+
I = Ht(I), I !== void 0 && (console.info("getPrimaryQuote", JSON.stringify(I)), r.value = I.recordId, console.info("quoteId", r.value), o.value = I.name, i.value = I == null ? void 0 : I.templateId, a.value = (I == null ? void 0 : I.lineItemsCount) || 0);
|
|
10200
10200
|
} catch (I) {
|
|
10201
10201
|
e.handleError(I.message), console.info("[ERROR]: getPrimaryQuote() error = ", I);
|
|
10202
10202
|
}
|
|
@@ -10213,9 +10213,9 @@ const yr = bt("ai", () => {
|
|
|
10213
10213
|
fetchOnlyDefault: !1
|
|
10214
10214
|
})
|
|
10215
10215
|
);
|
|
10216
|
-
B =
|
|
10216
|
+
B = Ht(B);
|
|
10217
10217
|
const P = B == null ? void 0 : B.templates[L];
|
|
10218
|
-
return i.value || (i.value = (I = P.find((
|
|
10218
|
+
return i.value || (i.value = (I = P.find((H) => H.XX_ORD1__Default__c)) == null ? void 0 : I.Id), i.value || (i.value = (D = P[0]) == null ? void 0 : D.Id), l.value = P, u.value.template = !1, l.value;
|
|
10219
10219
|
} catch (B) {
|
|
10220
10220
|
e.handleError(B.message), console.info("[ERROR]: fetchTemplates() error = ", B);
|
|
10221
10221
|
}
|
|
@@ -10244,7 +10244,7 @@ const yr = bt("ai", () => {
|
|
|
10244
10244
|
try {
|
|
10245
10245
|
u.value.filteredList = !0;
|
|
10246
10246
|
let L = await window.salesforceConnector.getQuoteEPageLayout();
|
|
10247
|
-
c.value.clear(), n.cartItemColumnsMap = {}, L =
|
|
10247
|
+
c.value.clear(), n.cartItemColumnsMap = {}, L = Ht(L);
|
|
10248
10248
|
const I = L.map((B) => ({
|
|
10249
10249
|
label: B.fieldLabel,
|
|
10250
10250
|
field: B.fieldName.toLowerCase(),
|
|
@@ -10294,10 +10294,10 @@ const yr = bt("ai", () => {
|
|
|
10294
10294
|
templateId: i.value
|
|
10295
10295
|
})
|
|
10296
10296
|
);
|
|
10297
|
-
k(i.value), L =
|
|
10297
|
+
k(i.value), L = Ht(L), console.info("res.lstCB = ", L.lstCB);
|
|
10298
10298
|
const I = L == null ? void 0 : L.objectFieldsMap;
|
|
10299
10299
|
return c.value.clear(), n.cartItemColumnsMap = {}, L.lstCB = L.lstCB.map((D) => {
|
|
10300
|
-
const { fields: B, filters: P, primarysort:
|
|
10300
|
+
const { fields: B, filters: P, primarysort: H, primarysortdesc: $ } = JSON.parse(D.XX_ORD1__Block_Properties__c), V = B.map((ee) => {
|
|
10301
10301
|
var Y;
|
|
10302
10302
|
return {
|
|
10303
10303
|
label: (Y = I[ee.api]) == null ? void 0 : Y.label,
|
|
@@ -10317,7 +10317,7 @@ const yr = bt("ai", () => {
|
|
|
10317
10317
|
selected: /* @__PURE__ */ new Map(),
|
|
10318
10318
|
footer: g(D.XX_ORD1__Table_Footer_HTML__c),
|
|
10319
10319
|
filters: P,
|
|
10320
|
-
primarysort:
|
|
10320
|
+
primarysort: H,
|
|
10321
10321
|
primarysortdesc: $
|
|
10322
10322
|
}), n.cartItemColumnsMap[Q] = V, b.value.isActive = !1, m.value = !0, {
|
|
10323
10323
|
columns: V,
|
|
@@ -10326,7 +10326,7 @@ const yr = bt("ai", () => {
|
|
|
10326
10326
|
sectionName: D.Name,
|
|
10327
10327
|
tableId: Q,
|
|
10328
10328
|
filters: P,
|
|
10329
|
-
primarysort:
|
|
10329
|
+
primarysort: H,
|
|
10330
10330
|
primarysortdesc: $
|
|
10331
10331
|
};
|
|
10332
10332
|
}), s.value = L, O(), u.value.filteredList = !1, L;
|
|
@@ -10345,11 +10345,11 @@ const yr = bt("ai", () => {
|
|
|
10345
10345
|
}
|
|
10346
10346
|
function S(L, I) {
|
|
10347
10347
|
let D = Qo(L);
|
|
10348
|
-
const B = t.pricingSchema, P = F(I, "xx_ord1__nrc__c"),
|
|
10348
|
+
const B = t.pricingSchema, P = F(I, "xx_ord1__nrc__c"), H = F(I, "xx_ord1__sales_price__c"), $ = F(I, "xx_ord1__qty__c");
|
|
10349
10349
|
return D = D.map((V) => {
|
|
10350
10350
|
let Q = {};
|
|
10351
10351
|
B === "nrc/mrc" && (V != null && V.xx_ord1__billing_period__c) ? Q = {
|
|
10352
|
-
...
|
|
10352
|
+
...H ? {
|
|
10353
10353
|
billingPeriodValue: (V == null ? void 0 : V.xx_ord1__sales_price__c) === 0 ? "0" : (V == null ? void 0 : V.xx_ord1__sales_price__c) || null,
|
|
10354
10354
|
formattedBillingPeriodValue: V == null ? void 0 : V.xxord1salespricec
|
|
10355
10355
|
} : {},
|
|
@@ -10359,13 +10359,13 @@ const yr = bt("ai", () => {
|
|
|
10359
10359
|
formattedOneTimeValue: V == null ? void 0 : V.xxord1nrcc
|
|
10360
10360
|
} : {}
|
|
10361
10361
|
// If NRC Column is not present then do not add oneTimeValue
|
|
10362
|
-
} : B === "nrc/mrc" && !(V != null && V.xx_ord1__billing_period__c) ?
|
|
10362
|
+
} : B === "nrc/mrc" && !(V != null && V.xx_ord1__billing_period__c) ? H && (Q = {
|
|
10363
10363
|
oneTimeValue: (V == null ? void 0 : V.xx_ord1__sales_price__c) === 0 ? "0" : (V == null ? void 0 : V.xx_ord1__sales_price__c) || null,
|
|
10364
10364
|
formattedOneTimeValue: V == null ? void 0 : V.xxord1salespricec
|
|
10365
|
-
}) : B !== "nrc/mrc" && (V != null && V.xx_ord1__billing_period__c) ?
|
|
10365
|
+
}) : B !== "nrc/mrc" && (V != null && V.xx_ord1__billing_period__c) ? H && (Q = {
|
|
10366
10366
|
billingPeriodValue: (V == null ? void 0 : V.xx_ord1__sales_price__c) === 0 ? "0" : (V == null ? void 0 : V.xx_ord1__sales_price__c) || null,
|
|
10367
10367
|
formattedBillingPeriodValue: V == null ? void 0 : V.xxord1salespricec
|
|
10368
|
-
}) : B !== "nrc/mrc" && !(V != null && V.xx_ord1__billing_period__c) &&
|
|
10368
|
+
}) : B !== "nrc/mrc" && !(V != null && V.xx_ord1__billing_period__c) && H && (Q = {
|
|
10369
10369
|
oneTimeValue: (V == null ? void 0 : V.xx_ord1__sales_price__c) === 0 ? 0 : (V == null ? void 0 : V.xx_ord1__sales_price__c) || null,
|
|
10370
10370
|
formattedOneTimeValue: V == null ? void 0 : V.xxord1salespricec
|
|
10371
10371
|
});
|
|
@@ -10389,7 +10389,7 @@ const yr = bt("ai", () => {
|
|
|
10389
10389
|
if (console.info("sectionData = ", P.sectionName), !P)
|
|
10390
10390
|
return;
|
|
10391
10391
|
P.loading = I, I && (P.lineItems = []);
|
|
10392
|
-
const { columns:
|
|
10392
|
+
const { columns: H, filters: $, primarysort: V, primarysortdesc: Q, footer: ee } = P, Y = H.map((ne) => ne.field.toLowerCase());
|
|
10393
10393
|
Y.includes("xx_ord1__parent_qli__c") || Y.push("xx_ord1__parent_qli__c"), Y.includes("xx_ord1__item__c") || Y.push("xx_ord1__item__c"), Y.includes("xx_ord1__sys_configuration_status2__c") || Y.push("xx_ord1__sys_configuration_status2__c"), (D = n.cartItemColumnsMap[L]) == null || D.forEach((ne) => {
|
|
10394
10394
|
Y.includes(ne.field) || Y.push(ne.field);
|
|
10395
10395
|
});
|
|
@@ -10413,14 +10413,14 @@ const yr = bt("ai", () => {
|
|
|
10413
10413
|
}), Z = S(Z, L), P.lineItems = Qo(X), P.parentQLIs = Z, P.totalValues = G, P.loading = !1, c.value = new Map(c.value), X;
|
|
10414
10414
|
} catch (P) {
|
|
10415
10415
|
console.info("[ERROR]: fetchQuoteLineItems()123 error = ", P.message);
|
|
10416
|
-
const
|
|
10417
|
-
|
|
10416
|
+
const H = c.value.get(L);
|
|
10417
|
+
H && (H.loading = !1);
|
|
10418
10418
|
}
|
|
10419
10419
|
}
|
|
10420
10420
|
async function A(L) {
|
|
10421
10421
|
try {
|
|
10422
10422
|
let I = await window.salesforceConnector.getQuoteLineItemsWithFilteredTable(JSON.stringify(L));
|
|
10423
|
-
return I =
|
|
10423
|
+
return I = Ht(I), I;
|
|
10424
10424
|
} catch (I) {
|
|
10425
10425
|
e.handleError(I.message), console.info("[ERROR]: getQuoteLineItemsWithFilteredTable() error = ", I);
|
|
10426
10426
|
}
|
|
@@ -10429,7 +10429,7 @@ const yr = bt("ai", () => {
|
|
|
10429
10429
|
try {
|
|
10430
10430
|
console.info("updateQli() payload = ", L);
|
|
10431
10431
|
let I = await window.salesforceConnector.updateQli(JSON.stringify(L));
|
|
10432
|
-
return I =
|
|
10432
|
+
return I = Ht(I), O(!1), I;
|
|
10433
10433
|
} catch (I) {
|
|
10434
10434
|
e.handleError(I.message), console.info("[ERROR]: updateQli() error = ", I);
|
|
10435
10435
|
}
|
|
@@ -10437,12 +10437,12 @@ const yr = bt("ai", () => {
|
|
|
10437
10437
|
async function N(L) {
|
|
10438
10438
|
try {
|
|
10439
10439
|
let I = await window.salesforceConnector.deleteQLI(L);
|
|
10440
|
-
return I =
|
|
10440
|
+
return I = Ht(I), O(), I;
|
|
10441
10441
|
} catch (I) {
|
|
10442
10442
|
e.handleError(I.message), console.info("[ERROR]: deleteQLI() error = ", I);
|
|
10443
10443
|
}
|
|
10444
10444
|
}
|
|
10445
|
-
async function
|
|
10445
|
+
async function U(L, I) {
|
|
10446
10446
|
try {
|
|
10447
10447
|
f.value = !0;
|
|
10448
10448
|
const D = {
|
|
@@ -10468,7 +10468,7 @@ const yr = bt("ai", () => {
|
|
|
10468
10468
|
oe(h2);
|
|
10469
10469
|
}
|
|
10470
10470
|
async function oe(L) {
|
|
10471
|
-
var I, D, B, P,
|
|
10471
|
+
var I, D, B, P, H, $, V, Q, ee;
|
|
10472
10472
|
if (L.payload) {
|
|
10473
10473
|
if ((I = L.payload) != null && I.uiModification) {
|
|
10474
10474
|
const Y = L.payload.uiModification;
|
|
@@ -10502,7 +10502,7 @@ const yr = bt("ai", () => {
|
|
|
10502
10502
|
Y.filter.forEach((ie) => {
|
|
10503
10503
|
c.value.get(ie.tableId) && (c.value.get(ie.tableId).filters = [...c.value.get(ie.tableId).filters, ...ie.filters]);
|
|
10504
10504
|
});
|
|
10505
|
-
if (((
|
|
10505
|
+
if (((H = Y.groupBy) == null ? void 0 : H.length) > 0) {
|
|
10506
10506
|
const ie = (($ = [...c.value.values()][0]) == null ? void 0 : $.columns) || p2;
|
|
10507
10507
|
c.value.clear(), n.cartItemColumnsMap = {}, Y.groupBy.forEach((fe) => {
|
|
10508
10508
|
n.cartItemColumnsMap[fe.tableId] = fe.columns || ie, c.value.set(fe.tableId, {
|
|
@@ -10542,7 +10542,7 @@ const yr = bt("ai", () => {
|
|
|
10542
10542
|
if (L) {
|
|
10543
10543
|
const P = {
|
|
10544
10544
|
lineItemIds: [...B]
|
|
10545
|
-
},
|
|
10545
|
+
}, H = await window.productManagerController.getLineItemAttributes({ request: JSON.stringify(P) }), $ = JSON.parse(H.data);
|
|
10546
10546
|
for (const V of c.value.keys())
|
|
10547
10547
|
(D = c.value.get(V).lineItems) == null || D.forEach((ee) => {
|
|
10548
10548
|
ee.attributes = $[ee.id] || null;
|
|
@@ -10574,7 +10574,7 @@ const yr = bt("ai", () => {
|
|
|
10574
10574
|
getFilteredListWithFields: E,
|
|
10575
10575
|
getQuoteLineItemsWithFilteredTable: A,
|
|
10576
10576
|
updateQli: T,
|
|
10577
|
-
getFieldsData:
|
|
10577
|
+
getFieldsData: U,
|
|
10578
10578
|
deleteQLI: N,
|
|
10579
10579
|
performAIAction: oe,
|
|
10580
10580
|
isEditableField: j,
|
|
@@ -10844,7 +10844,7 @@ const _n = bt("comConfigurator", () => {
|
|
|
10844
10844
|
});
|
|
10845
10845
|
}), l.value = { ...l.value };
|
|
10846
10846
|
}
|
|
10847
|
-
function
|
|
10847
|
+
function U() {
|
|
10848
10848
|
return {
|
|
10849
10849
|
get getConfig() {
|
|
10850
10850
|
return A.value;
|
|
@@ -10988,7 +10988,7 @@ const _n = bt("comConfigurator", () => {
|
|
|
10988
10988
|
return console.info("error", re.message), p.value.lineItem = !1, !1;
|
|
10989
10989
|
}
|
|
10990
10990
|
}
|
|
10991
|
-
async function
|
|
10991
|
+
async function H(re) {
|
|
10992
10992
|
console.info("getRecords");
|
|
10993
10993
|
try {
|
|
10994
10994
|
const Z = await window.productManagerController.getRecords({ request: JSON.stringify(re) });
|
|
@@ -11189,12 +11189,12 @@ const _n = bt("comConfigurator", () => {
|
|
|
11189
11189
|
configurableLineItems: y,
|
|
11190
11190
|
suggestedConfigurations: f,
|
|
11191
11191
|
initializeController: oe,
|
|
11192
|
-
exposeProperties:
|
|
11192
|
+
exposeProperties: U,
|
|
11193
11193
|
updateCurrentConfiguration: N,
|
|
11194
11194
|
changePricingScheme: j,
|
|
11195
11195
|
addLines: fe,
|
|
11196
11196
|
resetConfigurator: J,
|
|
11197
|
-
getRecords:
|
|
11197
|
+
getRecords: H,
|
|
11198
11198
|
getProductCrossSells: Q,
|
|
11199
11199
|
initConfigurator: W,
|
|
11200
11200
|
maintainQuoteConfiguration: $,
|
|
@@ -13493,10 +13493,10 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13493
13493
|
}, R2 = {
|
|
13494
13494
|
class: "ect-sticky ect-top-0 ect-z-50 ect-bg-white",
|
|
13495
13495
|
"data-test-id": "configurator-skeleton-header-sticky"
|
|
13496
|
-
}, L2 = { class: "ect-flex ect-flex-col" }, N2 = /* @__PURE__ */ Mr('<div class="ect-px-6 ect-py-4 ect-border-b ect-border-gray-200" data-v-47a3dca5><div class="ect-flex ect-items-center ect-justify-between" data-v-47a3dca5><div class="ect-w-8 ect-h-8 ect-bg-gray-200 ect-rounded-md ect-animate-pulse" data-v-47a3dca5></div><div class="ect-flex-1 ect-mx-4" data-v-47a3dca5><div class="ect-h-6 ect-bg-gray-200 ect-rounded-md ect-w-64 ect-animate-pulse" data-v-47a3dca5></div></div><div class="ect-w-16 ect-h-8 ect-bg-gray-200 ect-rounded-md ect-animate-pulse" data-v-47a3dca5></div></div></div>', 1), P2 = { class: "ect-px-6 ect-pt-4 ect-pb-2 ect-bg-white ect-border-b ect-border-gray-200" }, q2 = { class: "ect-flex ect-items-start" }, $2 = /* @__PURE__ */ ya(() => /* @__PURE__ */ C("div", { class: "ect-bg-gray-200 ect-rounded-lg ect-float-left ect-mr-4 ect-mb-2 ect-w-[104px] ect-h-[104px] ect-animate-pulse" }, null, -1)), j2 = { class: "ect-flex-1" },
|
|
13496
|
+
}, L2 = { class: "ect-flex ect-flex-col" }, N2 = /* @__PURE__ */ Mr('<div class="ect-px-6 ect-py-4 ect-border-b ect-border-gray-200" data-v-47a3dca5><div class="ect-flex ect-items-center ect-justify-between" data-v-47a3dca5><div class="ect-w-8 ect-h-8 ect-bg-gray-200 ect-rounded-md ect-animate-pulse" data-v-47a3dca5></div><div class="ect-flex-1 ect-mx-4" data-v-47a3dca5><div class="ect-h-6 ect-bg-gray-200 ect-rounded-md ect-w-64 ect-animate-pulse" data-v-47a3dca5></div></div><div class="ect-w-16 ect-h-8 ect-bg-gray-200 ect-rounded-md ect-animate-pulse" data-v-47a3dca5></div></div></div>', 1), P2 = { class: "ect-px-6 ect-pt-4 ect-pb-2 ect-bg-white ect-border-b ect-border-gray-200" }, q2 = { class: "ect-flex ect-items-start" }, $2 = /* @__PURE__ */ ya(() => /* @__PURE__ */ C("div", { class: "ect-bg-gray-200 ect-rounded-lg ect-float-left ect-mr-4 ect-mb-2 ect-w-[104px] ect-h-[104px] ect-animate-pulse" }, null, -1)), j2 = { class: "ect-flex-1" }, U2 = /* @__PURE__ */ ya(() => /* @__PURE__ */ C("div", { class: "ect-mb-2" }, [
|
|
13497
13497
|
/* @__PURE__ */ C("div", { class: "ect-h-4 ect-bg-gray-200 ect-rounded-md ect-w-full ect-mb-2 ect-animate-pulse" }),
|
|
13498
13498
|
/* @__PURE__ */ C("div", { class: "ect-h-4 ect-bg-gray-200 ect-rounded-md ect-w-3/4 ect-animate-pulse" })
|
|
13499
|
-
], -1)),
|
|
13499
|
+
], -1)), H2 = { class: "ect-mt-2 ect-clear-both" }, V2 = { class: "ect-flex ect-gap-2 ect-flex-wrap" }, z2 = {
|
|
13500
13500
|
class: "ect-flex-1 ect-min-h-0 ect-overflow-y-auto ect-bg-light-bg-x",
|
|
13501
13501
|
"data-test-id": "configurator-skeleton-content-scrollable"
|
|
13502
13502
|
}, X2 = /* @__PURE__ */ Mr('<div class="ect-bg-white ect-shadow-sm ect-flex-shrink-0 ect-mb-4 ect-sticky ect-top-0 ect-z-50" data-test-id="configurator-skeleton-tabs-container" data-v-47a3dca5><div class="ect-px-6 ect-py-3" data-v-47a3dca5><div class="ect-flex ect-gap-6" data-v-47a3dca5><div class="ect-h-8 ect-bg-gray-200 ect-rounded-md ect-w-24 ect-animate-pulse" data-v-47a3dca5></div><div class="ect-h-8 ect-bg-gray-200 ect-rounded-md ect-w-28 ect-animate-pulse" data-v-47a3dca5></div><div class="ect-h-8 ect-bg-gray-200 ect-rounded-md ect-w-20 ect-animate-pulse" data-v-47a3dca5></div><div class="ect-h-8 ect-bg-gray-200 ect-rounded-md ect-w-16 ect-animate-pulse" data-v-47a3dca5></div></div></div></div>', 1), K2 = {
|
|
@@ -13534,8 +13534,8 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13534
13534
|
C("div", q2, [
|
|
13535
13535
|
$2,
|
|
13536
13536
|
C("div", j2, [
|
|
13537
|
-
|
|
13538
|
-
C("div",
|
|
13537
|
+
U2,
|
|
13538
|
+
C("div", H2, [
|
|
13539
13539
|
C("div", V2, [
|
|
13540
13540
|
(M(), q(xe, null, Se(20, (r) => C("div", {
|
|
13541
13541
|
key: r,
|
|
@@ -13581,7 +13581,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13581
13581
|
}, oh = {
|
|
13582
13582
|
key: 0,
|
|
13583
13583
|
class: "ect-bg-light-bg-x ect-border-t ect-border-gray-200 ect-flex-shrink-0 ect-sticky ect-bottom-0 ect-pb-4"
|
|
13584
|
-
}, ah = { class: "ect-flex ect-flex-col ect-gap-4" }, ih = { class: "ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0" }, lh = { class: "ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0
|
|
13584
|
+
}, ah = { class: "ect-flex ect-flex-col ect-gap-4" }, ih = { class: "ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0" }, lh = { class: "ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0" }, uh = {
|
|
13585
13585
|
class: "ect-bg-white ect-border ect-border-gray-300 ect-rounded-md ect-p-3 ect-flex ect-flex-col",
|
|
13586
13586
|
"data-test-id": "configurator-recommend-card-next-product"
|
|
13587
13587
|
}, sh = { class: "ect-flex-1 ect-flex ect-flex-col ect-gap-2" }, ch = { class: "ect-text-sm ect-font-semibold ect-text-gray-800 ect-leading-tight" }, dh = { class: "ect-text-sm ect-font-medium ect-text-gray-600 ect-leading-relaxed" }, fh = { class: "ect-flex ect-flex-row ect-justify-between ect-items-center" }, hh = { class: "ect-text-sm ect-font-semibold ect-text-gray-800" }, us = {
|
|
@@ -13777,9 +13777,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13777
13777
|
}), g = ce(() => {
|
|
13778
13778
|
if (!s.value)
|
|
13779
13779
|
return {};
|
|
13780
|
-
const S = s.value.getBoundingClientRect();
|
|
13781
|
-
window.innerHeight - S.bottom, S.top;
|
|
13782
|
-
const _ = !1;
|
|
13780
|
+
const S = s.value.getBoundingClientRect(), _ = v.value;
|
|
13783
13781
|
return {
|
|
13784
13782
|
position: "absolute",
|
|
13785
13783
|
top: _ ? "auto" : "100%",
|
|
@@ -13908,16 +13906,16 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13908
13906
|
], 14, Sh)) : le("", !0)
|
|
13909
13907
|
], 40, _h));
|
|
13910
13908
|
}
|
|
13911
|
-
}, Rc = /* @__PURE__ */ we(Fh, [["__scopeId", "data-v-
|
|
13909
|
+
}, Rc = /* @__PURE__ */ we(Fh, [["__scopeId", "data-v-33bb66eb"]]), Rh = { class: "ect-p-4 ect-flex ect-gap-2 ect-items-center ect-justify-between ect-border-b ect-border-gray-200" }, Lh = { class: "ect-flex ect-items-center ect-gap-3" }, Nh = { class: "ect-text-xl ect-font-semibold ect-text-gray-700 ect-leading-relaxed" }, Ph = {
|
|
13912
13910
|
key: 0,
|
|
13913
13911
|
class: "ect-flex ect-gap-1.5 ect-items-center"
|
|
13914
13912
|
}, qh = /* @__PURE__ */ C("span", { class: "ect-text-sm ect-text-gray-700 ect-leading-relaxed" }, "Saving configuration...", -1), $h = {
|
|
13915
13913
|
key: 1,
|
|
13916
13914
|
class: "ect-flex ect-gap-1.5 ect-items-center"
|
|
13917
|
-
}, jh = /* @__PURE__ */ C("span", { class: "ect-text-sm ect-text-gray-700 ect-leading-relaxed" }, "Configuration Saved Successfully", -1),
|
|
13915
|
+
}, jh = /* @__PURE__ */ C("span", { class: "ect-text-sm ect-text-gray-700 ect-leading-relaxed" }, "Configuration Saved Successfully", -1), Uh = {
|
|
13918
13916
|
key: 1,
|
|
13919
13917
|
class: "ect-flex ect-flex-col ect-gap-4 ect-flex-1 ect-overflow-y-auto ect-mb-16"
|
|
13920
|
-
},
|
|
13918
|
+
}, Hh = /* @__PURE__ */ C("h3", { class: "ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0" }, "You may consider these products", -1), Vh = { class: "ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0 ect-overflow-y-auto" }, zh = ["data-test-id"], Xh = { class: "ect-flex-1 ect-flex ect-flex-col ect-gap-2" }, Kh = { class: "ect-text-sm ect-font-semibold ect-text-gray-800 ect-leading-tight" }, Gh = { class: "ect-text-sm ect-font-medium ect-text-gray-600 ect-leading-relaxed ect-line-clamp-2" }, Qh = { class: "ect-flex ect-flex-row ect-justify-between ect-items-center" }, Wh = { class: "ect-text-sm ect-font-semibold ect-text-gray-800" }, Zh = {
|
|
13921
13919
|
key: 2,
|
|
13922
13920
|
class: "ect-flex ect-flex-col ect-gap-4 ect-m-4 ect-flex-1 ect-overflow-y-auto"
|
|
13923
13921
|
}, Jh = /* @__PURE__ */ C("h3", { class: "ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed" }, "What do you want to do next?", -1), Yh = { class: "ect-flex ect-flex-col ect-gap-4" }, e5 = ["data-test-id", "onClick"], t5 = { class: "ect-flex ect-items-center ect-justify-center" }, n5 = { class: "ect-flex ect-flex-col ect-items-center ect-gap-2 ect-w-full" }, r5 = ["data-test-id"], o5 = ["data-test-id"], a5 = { class: "ect-flex ect-items-center ect-gap-2 ect-w-56" }, i5 = {
|
|
@@ -14018,8 +14016,8 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
14018
14016
|
key: 0,
|
|
14019
14017
|
type: "recommendations",
|
|
14020
14018
|
rows: 4
|
|
14021
|
-
})) : l.value.length > 0 ? (M(), q("div",
|
|
14022
|
-
|
|
14019
|
+
})) : l.value.length > 0 ? (M(), q("div", Uh, [
|
|
14020
|
+
Hh,
|
|
14023
14021
|
C("div", Vh, [
|
|
14024
14022
|
(M(!0), q(xe, null, Se(l.value, (x, p) => (M(), q("div", {
|
|
14025
14023
|
key: x.Id || p,
|
|
@@ -14475,9 +14473,9 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
14475
14473
|
"stroke-linejoin": "round"
|
|
14476
14474
|
})
|
|
14477
14475
|
])
|
|
14478
|
-
], -1),
|
|
14476
|
+
], -1), U5 = [
|
|
14479
14477
|
j5
|
|
14480
|
-
],
|
|
14478
|
+
], H5 = ["data-test-id"], V5 = ["data-test-id"], z5 = ["data-test-id"], X5 = ["data-test-id"], K5 = ["data-test-id"], G5 = ["data-test-id", "innerHTML"], On = {
|
|
14481
14479
|
__name: "Tag",
|
|
14482
14480
|
props: {
|
|
14483
14481
|
label: {
|
|
@@ -14520,7 +14518,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
14520
14518
|
}, [
|
|
14521
14519
|
C("div", {
|
|
14522
14520
|
"data-test-id": `${e.dataTestId}-add-icon`
|
|
14523
|
-
},
|
|
14521
|
+
}, U5, 8, $5),
|
|
14524
14522
|
Re(" " + he(e.label), 1)
|
|
14525
14523
|
], 8, q5)
|
|
14526
14524
|
], 8, P5)) : e.editButton ? (M(), q("div", {
|
|
@@ -14532,7 +14530,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
14532
14530
|
class: "ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-success ect-flex ect-items-center ect-gap-1",
|
|
14533
14531
|
"data-test-id": `${e.dataTestId}-content`
|
|
14534
14532
|
}, he(e.label), 9, V5)
|
|
14535
|
-
], 8,
|
|
14533
|
+
], 8, H5)) : (M(), q("div", {
|
|
14536
14534
|
key: 2,
|
|
14537
14535
|
class: "ect-bg-white ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-rounded-md ect-border ect-border-solid ect-border-neutral-200",
|
|
14538
14536
|
"data-test-id": e.dataTestId
|
|
@@ -15370,8 +15368,8 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
15370
15368
|
e.key === "Control" && (this.ctrl = !1);
|
|
15371
15369
|
}
|
|
15372
15370
|
}
|
|
15373
|
-
}, Np = ["data-test-id"], Pp = ["for", "data-test-id"], qp = ["data-test-id"], $p = ["id", "type", "name", "disabled", "placeholder", "value", "maxlength", "readonly", "data-test-id"], jp = ["data-test-id"],
|
|
15374
|
-
function
|
|
15371
|
+
}, Np = ["data-test-id"], Pp = ["for", "data-test-id"], qp = ["data-test-id"], $p = ["id", "type", "name", "disabled", "placeholder", "value", "maxlength", "readonly", "data-test-id"], jp = ["data-test-id"], Up = ["data-test-id"];
|
|
15372
|
+
function Hp(e, n, t, r, o, a) {
|
|
15375
15373
|
const i = un("AppIcon");
|
|
15376
15374
|
return M(), q("div", {
|
|
15377
15375
|
class: "input",
|
|
@@ -15439,10 +15437,10 @@ function Up(e, n, t, r, o, a) {
|
|
|
15439
15437
|
key: 3,
|
|
15440
15438
|
class: "error_tooltip error_tooltip-bottom-right",
|
|
15441
15439
|
"data-test-id": `${t.dataTestId}-error`
|
|
15442
|
-
}, he(a.error_message), 9,
|
|
15440
|
+
}, he(a.error_message), 9, Up)) : le("", !0)
|
|
15443
15441
|
], 8, Np);
|
|
15444
15442
|
}
|
|
15445
|
-
const fr = /* @__PURE__ */ we(Lp, [["render",
|
|
15443
|
+
const fr = /* @__PURE__ */ we(Lp, [["render", Hp], ["__scopeId", "data-v-032ca141"]]), Vp = {
|
|
15446
15444
|
name: "AtomSpinner",
|
|
15447
15445
|
props: {
|
|
15448
15446
|
dataTestId: {
|
|
@@ -16258,8 +16256,8 @@ var Nc = { exports: {} };
|
|
|
16258
16256
|
var a = /* @__PURE__ */ function() {
|
|
16259
16257
|
function _(A, T) {
|
|
16260
16258
|
for (var N = 0; N < T.length; N++) {
|
|
16261
|
-
var
|
|
16262
|
-
|
|
16259
|
+
var U = T[N];
|
|
16260
|
+
U.enumerable = U.enumerable || !1, U.configurable = !0, "value" in U && (U.writable = !0), Object.defineProperty(A, U.key, U);
|
|
16263
16261
|
}
|
|
16264
16262
|
}
|
|
16265
16263
|
return function(A, T, N) {
|
|
@@ -16267,14 +16265,14 @@ var Nc = { exports: {} };
|
|
|
16267
16265
|
};
|
|
16268
16266
|
}(), i = function _(A, T, N) {
|
|
16269
16267
|
A === null && (A = Function.prototype);
|
|
16270
|
-
var
|
|
16271
|
-
if (
|
|
16268
|
+
var U = Object.getOwnPropertyDescriptor(A, T);
|
|
16269
|
+
if (U === void 0) {
|
|
16272
16270
|
var j = Object.getPrototypeOf(A);
|
|
16273
16271
|
return j === null ? void 0 : _(j, T, N);
|
|
16274
16272
|
} else {
|
|
16275
|
-
if ("value" in
|
|
16276
|
-
return
|
|
16277
|
-
var J =
|
|
16273
|
+
if ("value" in U)
|
|
16274
|
+
return U.value;
|
|
16275
|
+
var J = U.get;
|
|
16278
16276
|
return J === void 0 ? void 0 : J.call(N);
|
|
16279
16277
|
}
|
|
16280
16278
|
}, l = o(3), u = v(l), s = o(2), c = v(s), y = o(0), f = v(y), m = o(16), d = v(m), b = o(6), h = v(b), x = o(7), p = v(x);
|
|
@@ -16312,24 +16310,24 @@ var Nc = { exports: {} };
|
|
|
16312
16310
|
}
|
|
16313
16311
|
}, {
|
|
16314
16312
|
key: "format",
|
|
16315
|
-
value: function(N,
|
|
16313
|
+
value: function(N, U) {
|
|
16316
16314
|
var j = f.default.query(N, f.default.Scope.BLOCK_ATTRIBUTE);
|
|
16317
|
-
j != null && this.attributes.attribute(j,
|
|
16315
|
+
j != null && this.attributes.attribute(j, U);
|
|
16318
16316
|
}
|
|
16319
16317
|
}, {
|
|
16320
16318
|
key: "formatAt",
|
|
16321
|
-
value: function(N,
|
|
16319
|
+
value: function(N, U, j, J) {
|
|
16322
16320
|
this.format(j, J);
|
|
16323
16321
|
}
|
|
16324
16322
|
}, {
|
|
16325
16323
|
key: "insertAt",
|
|
16326
|
-
value: function(N,
|
|
16327
|
-
if (typeof
|
|
16324
|
+
value: function(N, U, j) {
|
|
16325
|
+
if (typeof U == "string" && U.endsWith(`
|
|
16328
16326
|
`)) {
|
|
16329
16327
|
var J = f.default.create(F.blotName);
|
|
16330
|
-
this.parent.insertBefore(J, N === 0 ? this : this.next), J.insertAt(0,
|
|
16328
|
+
this.parent.insertBefore(J, N === 0 ? this : this.next), J.insertAt(0, U.slice(0, -1));
|
|
16331
16329
|
} else
|
|
16332
|
-
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertAt", this).call(this, N,
|
|
16330
|
+
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertAt", this).call(this, N, U, j);
|
|
16333
16331
|
}
|
|
16334
16332
|
}]), A;
|
|
16335
16333
|
}(f.default.Embed);
|
|
@@ -16344,28 +16342,28 @@ var Nc = { exports: {} };
|
|
|
16344
16342
|
return a(A, [{
|
|
16345
16343
|
key: "delta",
|
|
16346
16344
|
value: function() {
|
|
16347
|
-
return this.cache.delta == null && (this.cache.delta = this.descendants(f.default.Leaf).reduce(function(N,
|
|
16348
|
-
return
|
|
16345
|
+
return this.cache.delta == null && (this.cache.delta = this.descendants(f.default.Leaf).reduce(function(N, U) {
|
|
16346
|
+
return U.length() === 0 ? N : N.insert(U.value(), S(U));
|
|
16349
16347
|
}, new c.default()).insert(`
|
|
16350
16348
|
`, S(this))), this.cache.delta;
|
|
16351
16349
|
}
|
|
16352
16350
|
}, {
|
|
16353
16351
|
key: "deleteAt",
|
|
16354
|
-
value: function(N,
|
|
16355
|
-
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "deleteAt", this).call(this, N,
|
|
16352
|
+
value: function(N, U) {
|
|
16353
|
+
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "deleteAt", this).call(this, N, U), this.cache = {};
|
|
16356
16354
|
}
|
|
16357
16355
|
}, {
|
|
16358
16356
|
key: "formatAt",
|
|
16359
|
-
value: function(N,
|
|
16360
|
-
|
|
16357
|
+
value: function(N, U, j, J) {
|
|
16358
|
+
U <= 0 || (f.default.query(j, f.default.Scope.BLOCK) ? N + U === this.length() && this.format(j, J) : i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "formatAt", this).call(this, N, Math.min(U, this.length() - N - 1), j, J), this.cache = {});
|
|
16361
16359
|
}
|
|
16362
16360
|
}, {
|
|
16363
16361
|
key: "insertAt",
|
|
16364
|
-
value: function(N,
|
|
16362
|
+
value: function(N, U, j) {
|
|
16365
16363
|
if (j != null)
|
|
16366
|
-
return i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertAt", this).call(this, N,
|
|
16367
|
-
if (
|
|
16368
|
-
var J =
|
|
16364
|
+
return i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertAt", this).call(this, N, U, j);
|
|
16365
|
+
if (U.length !== 0) {
|
|
16366
|
+
var J = U.split(`
|
|
16369
16367
|
`), oe = J.shift();
|
|
16370
16368
|
oe.length > 0 && (N < this.length() - 1 || this.children.tail == null ? i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertAt", this).call(this, Math.min(N, this.length() - 1), oe) : this.children.tail.insertAt(this.children.tail.length(), oe), this.cache = {});
|
|
16371
16369
|
var W = this;
|
|
@@ -16376,9 +16374,9 @@ var Nc = { exports: {} };
|
|
|
16376
16374
|
}
|
|
16377
16375
|
}, {
|
|
16378
16376
|
key: "insertBefore",
|
|
16379
|
-
value: function(N,
|
|
16377
|
+
value: function(N, U) {
|
|
16380
16378
|
var j = this.children.head;
|
|
16381
|
-
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertBefore", this).call(this, N,
|
|
16379
|
+
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "insertBefore", this).call(this, N, U), j instanceof d.default && j.remove(), this.cache = {};
|
|
16382
16380
|
}
|
|
16383
16381
|
}, {
|
|
16384
16382
|
key: "length",
|
|
@@ -16387,8 +16385,8 @@ var Nc = { exports: {} };
|
|
|
16387
16385
|
}
|
|
16388
16386
|
}, {
|
|
16389
16387
|
key: "moveChildren",
|
|
16390
|
-
value: function(N,
|
|
16391
|
-
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "moveChildren", this).call(this, N,
|
|
16388
|
+
value: function(N, U) {
|
|
16389
|
+
i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "moveChildren", this).call(this, N, U), this.cache = {};
|
|
16392
16390
|
}
|
|
16393
16391
|
}, {
|
|
16394
16392
|
key: "optimize",
|
|
@@ -16408,12 +16406,12 @@ var Nc = { exports: {} };
|
|
|
16408
16406
|
}, {
|
|
16409
16407
|
key: "split",
|
|
16410
16408
|
value: function(N) {
|
|
16411
|
-
var
|
|
16412
|
-
if (
|
|
16409
|
+
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
16410
|
+
if (U && (N === 0 || N >= this.length() - E)) {
|
|
16413
16411
|
var j = this.clone();
|
|
16414
16412
|
return N === 0 ? (this.parent.insertBefore(j, this), this) : (this.parent.insertBefore(j, this.next), j);
|
|
16415
16413
|
} else {
|
|
16416
|
-
var J = i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "split", this).call(this, N,
|
|
16414
|
+
var J = i(A.prototype.__proto__ || Object.getPrototypeOf(A.prototype), "split", this).call(this, N, U);
|
|
16417
16415
|
return this.cache = {}, J;
|
|
16418
16416
|
}
|
|
16419
16417
|
}
|
|
@@ -16438,18 +16436,18 @@ var Nc = { exports: {} };
|
|
|
16438
16436
|
return W && typeof Symbol == "function" && W.constructor === Symbol && W !== Symbol.prototype ? "symbol" : typeof W;
|
|
16439
16437
|
}, i = /* @__PURE__ */ function() {
|
|
16440
16438
|
function W(L, I) {
|
|
16441
|
-
var D = [], B = !0, P = !1,
|
|
16439
|
+
var D = [], B = !0, P = !1, H = void 0;
|
|
16442
16440
|
try {
|
|
16443
16441
|
for (var $ = L[Symbol.iterator](), V; !(B = (V = $.next()).done) && (D.push(V.value), !(I && D.length === I)); B = !0)
|
|
16444
16442
|
;
|
|
16445
16443
|
} catch (Q) {
|
|
16446
|
-
P = !0,
|
|
16444
|
+
P = !0, H = Q;
|
|
16447
16445
|
} finally {
|
|
16448
16446
|
try {
|
|
16449
16447
|
!B && $.return && $.return();
|
|
16450
16448
|
} finally {
|
|
16451
16449
|
if (P)
|
|
16452
|
-
throw
|
|
16450
|
+
throw H;
|
|
16453
16451
|
}
|
|
16454
16452
|
}
|
|
16455
16453
|
return D;
|
|
@@ -16505,8 +16503,8 @@ var Nc = { exports: {} };
|
|
|
16505
16503
|
value: function(I, D) {
|
|
16506
16504
|
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
16507
16505
|
if (typeof I != "string") {
|
|
16508
|
-
var
|
|
16509
|
-
typeof
|
|
16506
|
+
var H = I.attrName || I.blotName;
|
|
16507
|
+
typeof H == "string" ? this.register("formats/" + H, I, D) : Object.keys(I).forEach(function($) {
|
|
16510
16508
|
B.register($, I[$], D);
|
|
16511
16509
|
});
|
|
16512
16510
|
} else
|
|
@@ -16515,20 +16513,20 @@ var Nc = { exports: {} };
|
|
|
16515
16513
|
}]);
|
|
16516
16514
|
function W(L) {
|
|
16517
16515
|
var I = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16518
|
-
if (A(this, W), this.options =
|
|
16516
|
+
if (A(this, W), this.options = U(L, D), this.container = this.options.container, this.container == null)
|
|
16519
16517
|
return T.error("Invalid Quill container", L);
|
|
16520
16518
|
this.options.debug && W.debug(this.options.debug);
|
|
16521
16519
|
var B = this.container.innerHTML.trim();
|
|
16522
16520
|
this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new m.default(), this.scroll = x.default.create(this.root, {
|
|
16523
16521
|
emitter: this.emitter,
|
|
16524
16522
|
whitelist: this.options.formats
|
|
16525
|
-
}), this.editor = new y.default(this.scroll), this.selection = new v.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(m.default.events.EDITOR_CHANGE, function(
|
|
16526
|
-
|
|
16527
|
-
}), this.emitter.on(m.default.events.SCROLL_UPDATE, function(
|
|
16523
|
+
}), this.editor = new y.default(this.scroll), this.selection = new v.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(m.default.events.EDITOR_CHANGE, function(H) {
|
|
16524
|
+
H === m.default.events.TEXT_CHANGE && I.root.classList.toggle("ql-blank", I.editor.isBlank());
|
|
16525
|
+
}), this.emitter.on(m.default.events.SCROLL_UPDATE, function(H, $) {
|
|
16528
16526
|
var V = I.selection.lastRange, Q = V && V.length === 0 ? V.index : void 0;
|
|
16529
16527
|
j.call(I, function() {
|
|
16530
16528
|
return I.editor.update(null, $, Q);
|
|
16531
|
-
},
|
|
16529
|
+
}, H);
|
|
16532
16530
|
});
|
|
16533
16531
|
var P = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + B + "<p><br></p></div>");
|
|
16534
16532
|
this.setContents(P), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
@@ -16551,7 +16549,7 @@ var Nc = { exports: {} };
|
|
|
16551
16549
|
}, {
|
|
16552
16550
|
key: "deleteText",
|
|
16553
16551
|
value: function(I, D, B) {
|
|
16554
|
-
var P = this,
|
|
16552
|
+
var P = this, H = J(I, D, B), $ = i(H, 4);
|
|
16555
16553
|
return I = $[0], D = $[1], B = $[3], j.call(this, function() {
|
|
16556
16554
|
return P.editor.deleteText(I, D);
|
|
16557
16555
|
}, B, I, -1 * D);
|
|
@@ -16578,34 +16576,34 @@ var Nc = { exports: {} };
|
|
|
16578
16576
|
value: function(I, D) {
|
|
16579
16577
|
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : m.default.sources.API;
|
|
16580
16578
|
return j.call(this, function() {
|
|
16581
|
-
var
|
|
16582
|
-
if (
|
|
16579
|
+
var H = B.getSelection(!0), $ = new s.default();
|
|
16580
|
+
if (H == null)
|
|
16583
16581
|
return $;
|
|
16584
16582
|
if (x.default.query(I, x.default.Scope.BLOCK))
|
|
16585
|
-
$ = B.editor.formatLine(
|
|
16583
|
+
$ = B.editor.formatLine(H.index, H.length, _({}, I, D));
|
|
16586
16584
|
else {
|
|
16587
|
-
if (
|
|
16585
|
+
if (H.length === 0)
|
|
16588
16586
|
return B.selection.format(I, D), $;
|
|
16589
|
-
$ = B.editor.formatText(
|
|
16587
|
+
$ = B.editor.formatText(H.index, H.length, _({}, I, D));
|
|
16590
16588
|
}
|
|
16591
|
-
return B.setSelection(
|
|
16589
|
+
return B.setSelection(H, m.default.sources.SILENT), $;
|
|
16592
16590
|
}, P);
|
|
16593
16591
|
}
|
|
16594
16592
|
}, {
|
|
16595
16593
|
key: "formatLine",
|
|
16596
|
-
value: function(I, D, B, P,
|
|
16597
|
-
var $ = this, V = void 0, Q = J(I, D, B, P,
|
|
16598
|
-
return I = ee[0], D = ee[1], V = ee[2],
|
|
16594
|
+
value: function(I, D, B, P, H) {
|
|
16595
|
+
var $ = this, V = void 0, Q = J(I, D, B, P, H), ee = i(Q, 4);
|
|
16596
|
+
return I = ee[0], D = ee[1], V = ee[2], H = ee[3], j.call(this, function() {
|
|
16599
16597
|
return $.editor.formatLine(I, D, V);
|
|
16600
|
-
},
|
|
16598
|
+
}, H, I, 0);
|
|
16601
16599
|
}
|
|
16602
16600
|
}, {
|
|
16603
16601
|
key: "formatText",
|
|
16604
|
-
value: function(I, D, B, P,
|
|
16605
|
-
var $ = this, V = void 0, Q = J(I, D, B, P,
|
|
16606
|
-
return I = ee[0], D = ee[1], V = ee[2],
|
|
16602
|
+
value: function(I, D, B, P, H) {
|
|
16603
|
+
var $ = this, V = void 0, Q = J(I, D, B, P, H), ee = i(Q, 4);
|
|
16604
|
+
return I = ee[0], D = ee[1], V = ee[2], H = ee[3], j.call(this, function() {
|
|
16607
16605
|
return $.editor.formatText(I, D, V);
|
|
16608
|
-
},
|
|
16606
|
+
}, H, I, 0);
|
|
16609
16607
|
}
|
|
16610
16608
|
}, {
|
|
16611
16609
|
key: "getBounds",
|
|
@@ -16685,18 +16683,18 @@ var Nc = { exports: {} };
|
|
|
16685
16683
|
}, {
|
|
16686
16684
|
key: "insertEmbed",
|
|
16687
16685
|
value: function(I, D, B) {
|
|
16688
|
-
var P = this,
|
|
16686
|
+
var P = this, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : W.sources.API;
|
|
16689
16687
|
return j.call(this, function() {
|
|
16690
16688
|
return P.editor.insertEmbed(I, D, B);
|
|
16691
|
-
},
|
|
16689
|
+
}, H, I);
|
|
16692
16690
|
}
|
|
16693
16691
|
}, {
|
|
16694
16692
|
key: "insertText",
|
|
16695
|
-
value: function(I, D, B, P,
|
|
16696
|
-
var $ = this, V = void 0, Q = J(I, 0, B, P,
|
|
16697
|
-
return I = ee[0], V = ee[2],
|
|
16693
|
+
value: function(I, D, B, P, H) {
|
|
16694
|
+
var $ = this, V = void 0, Q = J(I, 0, B, P, H), ee = i(Q, 4);
|
|
16695
|
+
return I = ee[0], V = ee[2], H = ee[3], j.call(this, function() {
|
|
16698
16696
|
return $.editor.insertText(I, D, V);
|
|
16699
|
-
},
|
|
16697
|
+
}, H, I, D.length);
|
|
16700
16698
|
}
|
|
16701
16699
|
}, {
|
|
16702
16700
|
key: "isEnabled",
|
|
@@ -16726,7 +16724,7 @@ var Nc = { exports: {} };
|
|
|
16726
16724
|
}, {
|
|
16727
16725
|
key: "removeFormat",
|
|
16728
16726
|
value: function(I, D, B) {
|
|
16729
|
-
var P = this,
|
|
16727
|
+
var P = this, H = J(I, D, B), $ = i(H, 4);
|
|
16730
16728
|
return I = $[0], D = $[1], B = $[3], j.call(this, function() {
|
|
16731
16729
|
return P.editor.removeFormat(I, D);
|
|
16732
16730
|
}, B, I);
|
|
@@ -16742,10 +16740,10 @@ var Nc = { exports: {} };
|
|
|
16742
16740
|
var D = this, B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m.default.sources.API;
|
|
16743
16741
|
return j.call(this, function() {
|
|
16744
16742
|
I = new s.default(I);
|
|
16745
|
-
var P = D.getLength(),
|
|
16743
|
+
var P = D.getLength(), H = D.editor.deleteText(0, P), $ = D.editor.applyDelta(I), V = $.ops[$.ops.length - 1];
|
|
16746
16744
|
V != null && typeof V.insert == "string" && V.insert[V.insert.length - 1] === `
|
|
16747
16745
|
` && (D.editor.deleteText(D.getLength() - 1, 1), $.delete(1));
|
|
16748
|
-
var Q =
|
|
16746
|
+
var Q = H.compose($);
|
|
16749
16747
|
return Q;
|
|
16750
16748
|
}, B);
|
|
16751
16749
|
}
|
|
@@ -16755,8 +16753,8 @@ var Nc = { exports: {} };
|
|
|
16755
16753
|
if (I == null)
|
|
16756
16754
|
this.selection.setRange(null, D || W.sources.API);
|
|
16757
16755
|
else {
|
|
16758
|
-
var P = J(I, D, B),
|
|
16759
|
-
I =
|
|
16756
|
+
var P = J(I, D, B), H = i(P, 4);
|
|
16757
|
+
I = H[0], D = H[1], B = H[3], this.selection.setRange(new p.Range(I, D), B), B !== m.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
16760
16758
|
}
|
|
16761
16759
|
}
|
|
16762
16760
|
}, {
|
|
@@ -16796,7 +16794,7 @@ var Nc = { exports: {} };
|
|
|
16796
16794
|
"core/module": b.default,
|
|
16797
16795
|
"core/theme": F.default
|
|
16798
16796
|
};
|
|
16799
|
-
function
|
|
16797
|
+
function U(W, L) {
|
|
16800
16798
|
if (L = (0, k.default)(!0, {
|
|
16801
16799
|
container: W,
|
|
16802
16800
|
modules: {
|
|
@@ -16810,34 +16808,34 @@ var Nc = { exports: {} };
|
|
|
16810
16808
|
throw new Error("Invalid theme " + L.theme + ". Did you register it?");
|
|
16811
16809
|
var I = (0, k.default)(!0, {}, L.theme.DEFAULTS);
|
|
16812
16810
|
[I, L].forEach(function(P) {
|
|
16813
|
-
P.modules = P.modules || {}, Object.keys(P.modules).forEach(function(
|
|
16814
|
-
P.modules[
|
|
16811
|
+
P.modules = P.modules || {}, Object.keys(P.modules).forEach(function(H) {
|
|
16812
|
+
P.modules[H] === !0 && (P.modules[H] = {});
|
|
16815
16813
|
});
|
|
16816
16814
|
});
|
|
16817
|
-
var D = Object.keys(I.modules).concat(Object.keys(L.modules)), B = D.reduce(function(P,
|
|
16818
|
-
var $ = N.import("modules/" +
|
|
16819
|
-
return $ == null ? T.error("Cannot load " +
|
|
16815
|
+
var D = Object.keys(I.modules).concat(Object.keys(L.modules)), B = D.reduce(function(P, H) {
|
|
16816
|
+
var $ = N.import("modules/" + H);
|
|
16817
|
+
return $ == null ? T.error("Cannot load " + H + " module. Are you sure you registered it?") : P[H] = $.DEFAULTS || {}, P;
|
|
16820
16818
|
}, {});
|
|
16821
16819
|
return L.modules != null && L.modules.toolbar && L.modules.toolbar.constructor !== Object && (L.modules.toolbar = {
|
|
16822
16820
|
container: L.modules.toolbar
|
|
16823
16821
|
}), L = (0, k.default)(!0, {}, N.DEFAULTS, { modules: B }, I, L), ["bounds", "container", "scrollingContainer"].forEach(function(P) {
|
|
16824
16822
|
typeof L[P] == "string" && (L[P] = document.querySelector(L[P]));
|
|
16825
|
-
}), L.modules = Object.keys(L.modules).reduce(function(P,
|
|
16826
|
-
return L.modules[
|
|
16823
|
+
}), L.modules = Object.keys(L.modules).reduce(function(P, H) {
|
|
16824
|
+
return L.modules[H] && (P[H] = L.modules[H]), P;
|
|
16827
16825
|
}, {}), L;
|
|
16828
16826
|
}
|
|
16829
16827
|
function j(W, L, I, D) {
|
|
16830
16828
|
if (this.options.strict && !this.isEnabled() && L === m.default.sources.USER)
|
|
16831
16829
|
return new s.default();
|
|
16832
|
-
var B = I == null ? null : this.getSelection(), P = this.editor.delta,
|
|
16833
|
-
if (B != null && (I === !0 && (I = B.index), D == null ? B = oe(B,
|
|
16834
|
-
var $, V = [m.default.events.TEXT_CHANGE,
|
|
16830
|
+
var B = I == null ? null : this.getSelection(), P = this.editor.delta, H = W();
|
|
16831
|
+
if (B != null && (I === !0 && (I = B.index), D == null ? B = oe(B, H, L) : D !== 0 && (B = oe(B, I, D, L)), this.setSelection(B, m.default.sources.SILENT)), H.length() > 0) {
|
|
16832
|
+
var $, V = [m.default.events.TEXT_CHANGE, H, P, L];
|
|
16835
16833
|
if (($ = this.emitter).emit.apply($, [m.default.events.EDITOR_CHANGE].concat(V)), L !== m.default.sources.SILENT) {
|
|
16836
16834
|
var Q;
|
|
16837
16835
|
(Q = this.emitter).emit.apply(Q, V);
|
|
16838
16836
|
}
|
|
16839
16837
|
}
|
|
16840
|
-
return
|
|
16838
|
+
return H;
|
|
16841
16839
|
}
|
|
16842
16840
|
function J(W, L, I, D, B) {
|
|
16843
16841
|
var P = {};
|
|
@@ -16848,9 +16846,9 @@ var Nc = { exports: {} };
|
|
|
16848
16846
|
return null;
|
|
16849
16847
|
var B = void 0, P = void 0;
|
|
16850
16848
|
if (L instanceof s.default) {
|
|
16851
|
-
var
|
|
16849
|
+
var H = [W.index, W.index + W.length].map(function(ee) {
|
|
16852
16850
|
return L.transformPosition(ee, D !== m.default.sources.USER);
|
|
16853
|
-
}), $ = i(
|
|
16851
|
+
}), $ = i(H, 2);
|
|
16854
16852
|
B = $[0], P = $[1];
|
|
16855
16853
|
} else {
|
|
16856
16854
|
var V = [W.index, W.index + W.length].map(function(ee) {
|
|
@@ -16860,7 +16858,7 @@ var Nc = { exports: {} };
|
|
|
16860
16858
|
}
|
|
16861
16859
|
return new p.Range(B, P - B);
|
|
16862
16860
|
}
|
|
16863
|
-
r.expandConfig =
|
|
16861
|
+
r.expandConfig = U, r.overload = J, r.default = N;
|
|
16864
16862
|
},
|
|
16865
16863
|
/* 6 */
|
|
16866
16864
|
/***/
|
|
@@ -17208,13 +17206,13 @@ var Nc = { exports: {} };
|
|
|
17208
17206
|
function O(F, S) {
|
|
17209
17207
|
var _ = [], A = !0, T = !1, N = void 0;
|
|
17210
17208
|
try {
|
|
17211
|
-
for (var
|
|
17209
|
+
for (var U = F[Symbol.iterator](), j; !(A = (j = U.next()).done) && (_.push(j.value), !(S && _.length === S)); A = !0)
|
|
17212
17210
|
;
|
|
17213
17211
|
} catch (J) {
|
|
17214
17212
|
T = !0, N = J;
|
|
17215
17213
|
} finally {
|
|
17216
17214
|
try {
|
|
17217
|
-
!A &&
|
|
17215
|
+
!A && U.return && U.return();
|
|
17218
17216
|
} finally {
|
|
17219
17217
|
if (T)
|
|
17220
17218
|
throw N;
|
|
@@ -17297,17 +17295,17 @@ var Nc = { exports: {} };
|
|
|
17297
17295
|
key: "format",
|
|
17298
17296
|
value: function(_, A) {
|
|
17299
17297
|
if (!(_ === this.statics.blotName && A)) {
|
|
17300
|
-
var T = this.descendant(x.default, this.length() - 1), N = a(T, 1),
|
|
17301
|
-
|
|
17298
|
+
var T = this.descendant(x.default, this.length() - 1), N = a(T, 1), U = N[0];
|
|
17299
|
+
U != null && U.deleteAt(U.length() - 1, 1), l(F.prototype.__proto__ || Object.getPrototypeOf(F.prototype), "format", this).call(this, _, A);
|
|
17302
17300
|
}
|
|
17303
17301
|
}
|
|
17304
17302
|
}, {
|
|
17305
17303
|
key: "formatAt",
|
|
17306
17304
|
value: function(_, A, T, N) {
|
|
17307
17305
|
if (A !== 0 && !(y.default.query(T, y.default.Scope.BLOCK) == null || T === this.statics.blotName && N === this.statics.formats(this.domNode))) {
|
|
17308
|
-
var
|
|
17309
|
-
if (!(
|
|
17310
|
-
var j = this.newlineIndex(_, !0) + 1, J =
|
|
17306
|
+
var U = this.newlineIndex(_);
|
|
17307
|
+
if (!(U < 0 || U >= _ + A)) {
|
|
17308
|
+
var j = this.newlineIndex(_, !0) + 1, J = U - j + 1, oe = this.isolate(j, J), W = oe.next;
|
|
17311
17309
|
oe.format(T, N), W instanceof F && W.formatAt(0, _ - j + A - J, T, N);
|
|
17312
17310
|
}
|
|
17313
17311
|
}
|
|
@@ -17316,7 +17314,7 @@ var Nc = { exports: {} };
|
|
|
17316
17314
|
key: "insertAt",
|
|
17317
17315
|
value: function(_, A, T) {
|
|
17318
17316
|
if (T == null) {
|
|
17319
|
-
var N = this.descendant(x.default, _),
|
|
17317
|
+
var N = this.descendant(x.default, _), U = a(N, 2), j = U[0], J = U[1];
|
|
17320
17318
|
j.insertAt(J, A);
|
|
17321
17319
|
}
|
|
17322
17320
|
}
|
|
@@ -17382,18 +17380,18 @@ var Nc = { exports: {} };
|
|
|
17382
17380
|
return W && typeof Symbol == "function" && W.constructor === Symbol && W !== Symbol.prototype ? "symbol" : typeof W;
|
|
17383
17381
|
}, i = /* @__PURE__ */ function() {
|
|
17384
17382
|
function W(L, I) {
|
|
17385
|
-
var D = [], B = !0, P = !1,
|
|
17383
|
+
var D = [], B = !0, P = !1, H = void 0;
|
|
17386
17384
|
try {
|
|
17387
17385
|
for (var $ = L[Symbol.iterator](), V; !(B = (V = $.next()).done) && (D.push(V.value), !(I && D.length === I)); B = !0)
|
|
17388
17386
|
;
|
|
17389
17387
|
} catch (Q) {
|
|
17390
|
-
P = !0,
|
|
17388
|
+
P = !0, H = Q;
|
|
17391
17389
|
} finally {
|
|
17392
17390
|
try {
|
|
17393
17391
|
!B && $.return && $.return();
|
|
17394
17392
|
} finally {
|
|
17395
17393
|
if (P)
|
|
17396
|
-
throw
|
|
17394
|
+
throw H;
|
|
17397
17395
|
}
|
|
17398
17396
|
}
|
|
17399
17397
|
return D;
|
|
@@ -17426,7 +17424,7 @@ var Nc = { exports: {} };
|
|
|
17426
17424
|
if (!(W instanceof L))
|
|
17427
17425
|
throw new TypeError("Cannot call a class as a function");
|
|
17428
17426
|
}
|
|
17429
|
-
var
|
|
17427
|
+
var U = /^[ -~]*$/, j = function() {
|
|
17430
17428
|
function W(L) {
|
|
17431
17429
|
N(this, W), this.scroll = L, this.delta = this.getDelta();
|
|
17432
17430
|
}
|
|
@@ -17436,15 +17434,15 @@ var Nc = { exports: {} };
|
|
|
17436
17434
|
var D = this, B = !1;
|
|
17437
17435
|
this.scroll.update();
|
|
17438
17436
|
var P = this.scroll.length();
|
|
17439
|
-
return this.scroll.batchStart(), I = oe(I), I.reduce(function(
|
|
17437
|
+
return this.scroll.batchStart(), I = oe(I), I.reduce(function(H, $) {
|
|
17440
17438
|
var V = $.retain || $.delete || $.insert.length || 1, Q = $.attributes || {};
|
|
17441
17439
|
if ($.insert != null) {
|
|
17442
17440
|
if (typeof $.insert == "string") {
|
|
17443
17441
|
var ee = $.insert;
|
|
17444
17442
|
ee.endsWith(`
|
|
17445
|
-
`) && B && (B = !1, ee = ee.slice(0, -1)),
|
|
17446
|
-
`) && (B = !0), D.scroll.insertAt(
|
|
17447
|
-
var Y = D.scroll.line(
|
|
17443
|
+
`) && B && (B = !1, ee = ee.slice(0, -1)), H >= P && !ee.endsWith(`
|
|
17444
|
+
`) && (B = !0), D.scroll.insertAt(H, ee);
|
|
17445
|
+
var Y = D.scroll.line(H), ie = i(Y, 2), fe = ie[0], re = ie[1], Z = (0, _.default)({}, (0, p.bubbleFormats)(fe));
|
|
17448
17446
|
if (fe instanceof v.default) {
|
|
17449
17447
|
var G = fe.descendant(m.default.Leaf, re), X = i(G, 1), ne = X[0];
|
|
17450
17448
|
Z = (0, _.default)(Z, (0, p.bubbleFormats)(ne));
|
|
@@ -17453,16 +17451,16 @@ var Nc = { exports: {} };
|
|
|
17453
17451
|
} else if (a($.insert) === "object") {
|
|
17454
17452
|
var te = Object.keys($.insert)[0];
|
|
17455
17453
|
if (te == null)
|
|
17456
|
-
return
|
|
17457
|
-
D.scroll.insertAt(
|
|
17454
|
+
return H;
|
|
17455
|
+
D.scroll.insertAt(H, te, $.insert[te]);
|
|
17458
17456
|
}
|
|
17459
17457
|
P += V;
|
|
17460
17458
|
}
|
|
17461
17459
|
return Object.keys(Q).forEach(function(de) {
|
|
17462
|
-
D.scroll.formatAt(
|
|
17463
|
-
}),
|
|
17464
|
-
}, 0), I.reduce(function(
|
|
17465
|
-
return typeof $.delete == "number" ? (D.scroll.deleteAt(
|
|
17460
|
+
D.scroll.formatAt(H, V, de, Q[de]);
|
|
17461
|
+
}), H + V;
|
|
17462
|
+
}, 0), I.reduce(function(H, $) {
|
|
17463
|
+
return typeof $.delete == "number" ? (D.scroll.deleteAt(H, $.delete), H) : H + ($.retain || $.insert.length || 1);
|
|
17466
17464
|
}, 0), this.scroll.batchEnd(), this.update(I);
|
|
17467
17465
|
}
|
|
17468
17466
|
}, {
|
|
@@ -17474,16 +17472,16 @@ var Nc = { exports: {} };
|
|
|
17474
17472
|
key: "formatLine",
|
|
17475
17473
|
value: function(I, D) {
|
|
17476
17474
|
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17477
|
-
return this.scroll.update(), Object.keys(P).forEach(function(
|
|
17478
|
-
if (!(B.scroll.whitelist != null && !B.scroll.whitelist[
|
|
17475
|
+
return this.scroll.update(), Object.keys(P).forEach(function(H) {
|
|
17476
|
+
if (!(B.scroll.whitelist != null && !B.scroll.whitelist[H])) {
|
|
17479
17477
|
var $ = B.scroll.lines(I, Math.max(D, 1)), V = D;
|
|
17480
17478
|
$.forEach(function(Q) {
|
|
17481
17479
|
var ee = Q.length();
|
|
17482
17480
|
if (!(Q instanceof b.default))
|
|
17483
|
-
Q.format(
|
|
17481
|
+
Q.format(H, P[H]);
|
|
17484
17482
|
else {
|
|
17485
17483
|
var Y = I - Q.offset(B.scroll), ie = Q.newlineIndex(Y + V) - Y + 1;
|
|
17486
|
-
Q.formatAt(Y, ie,
|
|
17484
|
+
Q.formatAt(Y, ie, H, P[H]);
|
|
17487
17485
|
}
|
|
17488
17486
|
V -= ee;
|
|
17489
17487
|
});
|
|
@@ -17494,8 +17492,8 @@ var Nc = { exports: {} };
|
|
|
17494
17492
|
key: "formatText",
|
|
17495
17493
|
value: function(I, D) {
|
|
17496
17494
|
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17497
|
-
return Object.keys(P).forEach(function(
|
|
17498
|
-
B.scroll.formatAt(I, D,
|
|
17495
|
+
return Object.keys(P).forEach(function(H) {
|
|
17496
|
+
B.scroll.formatAt(I, D, H, P[H]);
|
|
17499
17497
|
}), this.update(new s.default().retain(I).retain(D, (0, E.default)(P)));
|
|
17500
17498
|
}
|
|
17501
17499
|
}, {
|
|
@@ -17518,7 +17516,7 @@ var Nc = { exports: {} };
|
|
|
17518
17516
|
var V = i($, 1), Q = V[0];
|
|
17519
17517
|
Q instanceof v.default ? B.push(Q) : Q instanceof m.default.Leaf && P.push(Q);
|
|
17520
17518
|
}) : (B = this.scroll.lines(I, D), P = this.scroll.descendants(m.default.Leaf, I, D));
|
|
17521
|
-
var
|
|
17519
|
+
var H = [B, P].map(function($) {
|
|
17522
17520
|
if ($.length === 0)
|
|
17523
17521
|
return {};
|
|
17524
17522
|
for (var V = (0, p.bubbleFormats)($.shift()); Object.keys(V).length > 0; ) {
|
|
@@ -17529,7 +17527,7 @@ var Nc = { exports: {} };
|
|
|
17529
17527
|
}
|
|
17530
17528
|
return V;
|
|
17531
17529
|
});
|
|
17532
|
-
return _.default.apply(_.default,
|
|
17530
|
+
return _.default.apply(_.default, H);
|
|
17533
17531
|
}
|
|
17534
17532
|
}, {
|
|
17535
17533
|
key: "getText",
|
|
@@ -17551,8 +17549,8 @@ var Nc = { exports: {} };
|
|
|
17551
17549
|
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17552
17550
|
return D = D.replace(/\r\n/g, `
|
|
17553
17551
|
`).replace(/\r/g, `
|
|
17554
|
-
`), this.scroll.insertAt(I, D), Object.keys(P).forEach(function(
|
|
17555
|
-
B.scroll.formatAt(I, D.length,
|
|
17552
|
+
`), this.scroll.insertAt(I, D), Object.keys(P).forEach(function(H) {
|
|
17553
|
+
B.scroll.formatAt(I, D.length, H, P[H]);
|
|
17556
17554
|
}), this.update(new s.default().retain(I).insert(D, (0, E.default)(P)));
|
|
17557
17555
|
}
|
|
17558
17556
|
}, {
|
|
@@ -17568,7 +17566,7 @@ var Nc = { exports: {} };
|
|
|
17568
17566
|
}, {
|
|
17569
17567
|
key: "removeFormat",
|
|
17570
17568
|
value: function(I, D) {
|
|
17571
|
-
var B = this.getText(I, D), P = this.scroll.line(I + D),
|
|
17569
|
+
var B = this.getText(I, D), P = this.scroll.line(I + D), H = i(P, 2), $ = H[0], V = H[1], Q = 0, ee = new s.default();
|
|
17572
17570
|
$ != null && ($ instanceof b.default ? Q = $.newlineIndex(V) - V + 1 : Q = $.length() - V, ee = $.delta().slice(V, V + Q - 1).insert(`
|
|
17573
17571
|
`));
|
|
17574
17572
|
var Y = this.getContents(I, D + Q), ie = Y.diff(new s.default().insert(B).concat(ee)), fe = new s.default().retain(I).concat(ie);
|
|
@@ -17578,8 +17576,8 @@ var Nc = { exports: {} };
|
|
|
17578
17576
|
key: "update",
|
|
17579
17577
|
value: function(I) {
|
|
17580
17578
|
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], B = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, P = this.delta;
|
|
17581
|
-
if (D.length === 1 && D[0].type === "characterData" && D[0].target.data.match(
|
|
17582
|
-
var
|
|
17579
|
+
if (D.length === 1 && D[0].type === "characterData" && D[0].target.data.match(U) && m.default.find(D[0].target)) {
|
|
17580
|
+
var H = m.default.find(D[0].target), $ = (0, p.bubbleFormats)(H), V = H.offset(this.scroll), Q = D[0].oldValue.replace(x.default.CONTENTS, ""), ee = new s.default().insert(Q), Y = new s.default().insert(H.value()), ie = new s.default().retain(V).concat(ee.diff(Y, B));
|
|
17583
17581
|
I = ie.reduce(function(fe, re) {
|
|
17584
17582
|
return re.insert ? fe.insert(re.insert, $) : fe.push(re);
|
|
17585
17583
|
}, new s.default()), this.delta = P.compose(I);
|
|
@@ -17621,13 +17619,13 @@ var Nc = { exports: {} };
|
|
|
17621
17619
|
function O(F, S) {
|
|
17622
17620
|
var _ = [], A = !0, T = !1, N = void 0;
|
|
17623
17621
|
try {
|
|
17624
|
-
for (var
|
|
17622
|
+
for (var U = F[Symbol.iterator](), j; !(A = (j = U.next()).done) && (_.push(j.value), !(S && _.length === S)); A = !0)
|
|
17625
17623
|
;
|
|
17626
17624
|
} catch (J) {
|
|
17627
17625
|
T = !0, N = J;
|
|
17628
17626
|
} finally {
|
|
17629
17627
|
try {
|
|
17630
|
-
!A &&
|
|
17628
|
+
!A && U.return && U.return();
|
|
17631
17629
|
} finally {
|
|
17632
17630
|
if (T)
|
|
17633
17631
|
throw N;
|
|
@@ -17690,8 +17688,8 @@ var Nc = { exports: {} };
|
|
|
17690
17688
|
}
|
|
17691
17689
|
}), this.emitter.on(d.default.events.SCROLL_OPTIMIZE, function(A, T) {
|
|
17692
17690
|
if (T.range) {
|
|
17693
|
-
var N = T.range,
|
|
17694
|
-
_.setNativeRange(
|
|
17691
|
+
var N = T.range, U = N.startNode, j = N.startOffset, J = N.endNode, oe = N.endOffset;
|
|
17692
|
+
_.setNativeRange(U, j, J, oe);
|
|
17695
17693
|
}
|
|
17696
17694
|
}), this.update(d.default.sources.SILENT);
|
|
17697
17695
|
}
|
|
@@ -17754,7 +17752,7 @@ var Nc = { exports: {} };
|
|
|
17754
17752
|
value: function(S) {
|
|
17755
17753
|
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, A = this.scroll.length();
|
|
17756
17754
|
S = Math.min(S, A - 1), _ = Math.min(S + _, A - 1) - S;
|
|
17757
|
-
var T = void 0, N = this.scroll.leaf(S),
|
|
17755
|
+
var T = void 0, N = this.scroll.leaf(S), U = a(N, 2), j = U[0], J = U[1];
|
|
17758
17756
|
if (j == null)
|
|
17759
17757
|
return null;
|
|
17760
17758
|
var oe = j.position(J, !0), W = a(oe, 2);
|
|
@@ -17768,12 +17766,12 @@ var Nc = { exports: {} };
|
|
|
17768
17766
|
var B = j.position(J, !0), P = a(B, 2);
|
|
17769
17767
|
return T = P[0], J = P[1], L.setEnd(T, J), L.getBoundingClientRect();
|
|
17770
17768
|
} else {
|
|
17771
|
-
var
|
|
17772
|
-
return T instanceof Text ? (J < T.data.length ? (L.setStart(T, J), L.setEnd(T, J + 1)) : (L.setStart(T, J - 1), L.setEnd(T, J),
|
|
17769
|
+
var H = "left", $ = void 0;
|
|
17770
|
+
return T instanceof Text ? (J < T.data.length ? (L.setStart(T, J), L.setEnd(T, J + 1)) : (L.setStart(T, J - 1), L.setEnd(T, J), H = "right"), $ = L.getBoundingClientRect()) : ($ = j.domNode.getBoundingClientRect(), J > 0 && (H = "right")), {
|
|
17773
17771
|
bottom: $.top + $.height,
|
|
17774
17772
|
height: $.height,
|
|
17775
|
-
left: $[
|
|
17776
|
-
right: $[
|
|
17773
|
+
left: $[H],
|
|
17774
|
+
right: $[H],
|
|
17777
17775
|
top: $.top,
|
|
17778
17776
|
width: 0
|
|
17779
17777
|
};
|
|
@@ -17813,8 +17811,8 @@ var Nc = { exports: {} };
|
|
|
17813
17811
|
var T = A.map(function(j) {
|
|
17814
17812
|
var J = a(j, 2), oe = J[0], W = J[1], L = u.default.find(oe, !0), I = L.offset(_.scroll);
|
|
17815
17813
|
return W === 0 ? I : L instanceof u.default.Container ? I + L.length() : I + L.index(oe, W);
|
|
17816
|
-
}), N = Math.min(Math.max.apply(Math, p(T)), this.scroll.length() - 1),
|
|
17817
|
-
return new k(
|
|
17814
|
+
}), N = Math.min(Math.max.apply(Math, p(T)), this.scroll.length() - 1), U = Math.min.apply(Math, [N].concat(p(T)));
|
|
17815
|
+
return new k(U, N - U);
|
|
17818
17816
|
}
|
|
17819
17817
|
}, {
|
|
17820
17818
|
key: "normalizeNative",
|
|
@@ -17841,9 +17839,9 @@ var Nc = { exports: {} };
|
|
|
17841
17839
|
key: "rangeToNative",
|
|
17842
17840
|
value: function(S) {
|
|
17843
17841
|
var _ = this, A = S.collapsed ? [S.index] : [S.index, S.index + S.length], T = [], N = this.scroll.length();
|
|
17844
|
-
return A.forEach(function(
|
|
17845
|
-
|
|
17846
|
-
var J = void 0, oe = _.scroll.leaf(
|
|
17842
|
+
return A.forEach(function(U, j) {
|
|
17843
|
+
U = Math.min(N - 1, U);
|
|
17844
|
+
var J = void 0, oe = _.scroll.leaf(U), W = a(oe, 2), L = W[0], I = W[1], D = L.position(I, j !== 0), B = a(D, 2);
|
|
17847
17845
|
J = B[0], I = B[1], T.push(J, I);
|
|
17848
17846
|
}), T.length < 2 && (T = T.concat(T)), T;
|
|
17849
17847
|
}
|
|
@@ -17854,7 +17852,7 @@ var Nc = { exports: {} };
|
|
|
17854
17852
|
if (_ != null) {
|
|
17855
17853
|
var A = this.getBounds(_.index, _.length);
|
|
17856
17854
|
if (A != null) {
|
|
17857
|
-
var T = this.scroll.length() - 1, N = this.scroll.line(Math.min(_.index, T)),
|
|
17855
|
+
var T = this.scroll.length() - 1, N = this.scroll.line(Math.min(_.index, T)), U = a(N, 1), j = U[0], J = j;
|
|
17858
17856
|
if (_.length > 0) {
|
|
17859
17857
|
var oe = this.scroll.line(Math.min(_.index + _.length, T)), W = a(oe, 1);
|
|
17860
17858
|
J = W[0];
|
|
@@ -17871,18 +17869,18 @@ var Nc = { exports: {} };
|
|
|
17871
17869
|
value: function(S, _) {
|
|
17872
17870
|
var A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : S, T = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : _, N = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
17873
17871
|
if (g.info("setNativeRange", S, _, A, T), !(S != null && (this.root.parentNode == null || S.parentNode == null || A.parentNode == null))) {
|
|
17874
|
-
var
|
|
17875
|
-
if (
|
|
17872
|
+
var U = document.getSelection();
|
|
17873
|
+
if (U != null)
|
|
17876
17874
|
if (S != null) {
|
|
17877
17875
|
this.hasFocus() || this.root.focus();
|
|
17878
17876
|
var j = (this.getNativeRange() || {}).native;
|
|
17879
17877
|
if (j == null || N || S !== j.startContainer || _ !== j.startOffset || A !== j.endContainer || T !== j.endOffset) {
|
|
17880
17878
|
S.tagName == "BR" && (_ = [].indexOf.call(S.parentNode.childNodes, S), S = S.parentNode), A.tagName == "BR" && (T = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode);
|
|
17881
17879
|
var J = document.createRange();
|
|
17882
|
-
J.setStart(S, _), J.setEnd(A, T),
|
|
17880
|
+
J.setStart(S, _), J.setEnd(A, T), U.removeAllRanges(), U.addRange(J);
|
|
17883
17881
|
}
|
|
17884
17882
|
} else
|
|
17885
|
-
|
|
17883
|
+
U.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
17886
17884
|
}
|
|
17887
17885
|
}
|
|
17888
17886
|
}, {
|
|
@@ -17899,10 +17897,10 @@ var Nc = { exports: {} };
|
|
|
17899
17897
|
}, {
|
|
17900
17898
|
key: "update",
|
|
17901
17899
|
value: function() {
|
|
17902
|
-
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : d.default.sources.USER, _ = this.lastRange, A = this.getRange(), T = a(A, 2), N = T[0],
|
|
17900
|
+
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : d.default.sources.USER, _ = this.lastRange, A = this.getRange(), T = a(A, 2), N = T[0], U = T[1];
|
|
17903
17901
|
if (this.lastRange = N, this.lastRange != null && (this.savedRange = this.lastRange), !(0, f.default)(_, this.lastRange)) {
|
|
17904
17902
|
var j;
|
|
17905
|
-
!this.composing &&
|
|
17903
|
+
!this.composing && U != null && U.native.collapsed && U.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
17906
17904
|
var J = [d.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(_), S];
|
|
17907
17905
|
if ((j = this.emitter).emit.apply(j, [d.default.events.EDITOR_CHANGE].concat(J)), S !== d.default.sources.SILENT) {
|
|
17908
17906
|
var oe;
|
|
@@ -18401,8 +18399,8 @@ var Nc = { exports: {} };
|
|
|
18401
18399
|
_ && (N = Object.getOwnPropertyDescriptor(_, T)), !(N && N.set == null) && (S[T] = E(O[T], F - 1));
|
|
18402
18400
|
}
|
|
18403
18401
|
if (Object.getOwnPropertySymbols)
|
|
18404
|
-
for (var
|
|
18405
|
-
var j =
|
|
18402
|
+
for (var U = Object.getOwnPropertySymbols(O), T = 0; T < U.length; T++) {
|
|
18403
|
+
var j = U[T], J = Object.getOwnPropertyDescriptor(O, j);
|
|
18406
18404
|
J && !J.enumerable && !v || (S[j] = E(O[j], F - 1), J.enumerable || Object.defineProperty(S, j, {
|
|
18407
18405
|
enumerable: !1
|
|
18408
18406
|
}));
|
|
@@ -18457,17 +18455,17 @@ var Nc = { exports: {} };
|
|
|
18457
18455
|
});
|
|
18458
18456
|
var a = /* @__PURE__ */ function() {
|
|
18459
18457
|
function S(_, A) {
|
|
18460
|
-
var T = [], N = !0,
|
|
18458
|
+
var T = [], N = !0, U = !1, j = void 0;
|
|
18461
18459
|
try {
|
|
18462
18460
|
for (var J = _[Symbol.iterator](), oe; !(N = (oe = J.next()).done) && (T.push(oe.value), !(A && T.length === A)); N = !0)
|
|
18463
18461
|
;
|
|
18464
18462
|
} catch (W) {
|
|
18465
|
-
|
|
18463
|
+
U = !0, j = W;
|
|
18466
18464
|
} finally {
|
|
18467
18465
|
try {
|
|
18468
18466
|
!N && J.return && J.return();
|
|
18469
18467
|
} finally {
|
|
18470
|
-
if (
|
|
18468
|
+
if (U)
|
|
18471
18469
|
throw j;
|
|
18472
18470
|
}
|
|
18473
18471
|
}
|
|
@@ -18494,8 +18492,8 @@ var Nc = { exports: {} };
|
|
|
18494
18492
|
_ === null && (_ = Function.prototype);
|
|
18495
18493
|
var N = Object.getOwnPropertyDescriptor(_, A);
|
|
18496
18494
|
if (N === void 0) {
|
|
18497
|
-
var
|
|
18498
|
-
return
|
|
18495
|
+
var U = Object.getPrototypeOf(_);
|
|
18496
|
+
return U === null ? void 0 : S(U, A, T);
|
|
18499
18497
|
} else {
|
|
18500
18498
|
if ("value" in N)
|
|
18501
18499
|
return N.value;
|
|
@@ -18528,8 +18526,8 @@ var Nc = { exports: {} };
|
|
|
18528
18526
|
function _(A, T) {
|
|
18529
18527
|
k(this, _);
|
|
18530
18528
|
var N = w(this, (_.__proto__ || Object.getPrototypeOf(_)).call(this, A));
|
|
18531
|
-
return N.emitter = T.emitter, Array.isArray(T.whitelist) && (N.whitelist = T.whitelist.reduce(function(
|
|
18532
|
-
return
|
|
18529
|
+
return N.emitter = T.emitter, Array.isArray(T.whitelist) && (N.whitelist = T.whitelist.reduce(function(U, j) {
|
|
18530
|
+
return U[j] = !0, U;
|
|
18533
18531
|
}, {})), N.domNode.addEventListener("DOMNodeInserted", function() {
|
|
18534
18532
|
}), N.optimize(), N.enable(), N;
|
|
18535
18533
|
}
|
|
@@ -18546,7 +18544,7 @@ var Nc = { exports: {} };
|
|
|
18546
18544
|
}, {
|
|
18547
18545
|
key: "deleteAt",
|
|
18548
18546
|
value: function(T, N) {
|
|
18549
|
-
var
|
|
18547
|
+
var U = this.line(T), j = a(U, 2), J = j[0], oe = j[1], W = this.line(T + N), L = a(W, 1), I = L[0];
|
|
18550
18548
|
if (l(_.prototype.__proto__ || Object.getPrototypeOf(_.prototype), "deleteAt", this).call(this, T, N), I != null && J !== I && oe > 0) {
|
|
18551
18549
|
if (J instanceof f.BlockEmbed || I instanceof f.BlockEmbed) {
|
|
18552
18550
|
this.optimize();
|
|
@@ -18575,24 +18573,24 @@ var Nc = { exports: {} };
|
|
|
18575
18573
|
}
|
|
18576
18574
|
}, {
|
|
18577
18575
|
key: "formatAt",
|
|
18578
|
-
value: function(T, N,
|
|
18579
|
-
this.whitelist != null && !this.whitelist[
|
|
18576
|
+
value: function(T, N, U, j) {
|
|
18577
|
+
this.whitelist != null && !this.whitelist[U] || (l(_.prototype.__proto__ || Object.getPrototypeOf(_.prototype), "formatAt", this).call(this, T, N, U, j), this.optimize());
|
|
18580
18578
|
}
|
|
18581
18579
|
}, {
|
|
18582
18580
|
key: "insertAt",
|
|
18583
|
-
value: function(T, N,
|
|
18584
|
-
if (!(
|
|
18581
|
+
value: function(T, N, U) {
|
|
18582
|
+
if (!(U != null && this.whitelist != null && !this.whitelist[N])) {
|
|
18585
18583
|
if (T >= this.length())
|
|
18586
|
-
if (
|
|
18584
|
+
if (U == null || s.default.query(N, s.default.Scope.BLOCK) == null) {
|
|
18587
18585
|
var j = s.default.create(this.statics.defaultChild);
|
|
18588
|
-
this.appendChild(j),
|
|
18589
|
-
`) && (N = N.slice(0, -1)), j.insertAt(0, N,
|
|
18586
|
+
this.appendChild(j), U == null && N.endsWith(`
|
|
18587
|
+
`) && (N = N.slice(0, -1)), j.insertAt(0, N, U);
|
|
18590
18588
|
} else {
|
|
18591
|
-
var J = s.default.create(N,
|
|
18589
|
+
var J = s.default.create(N, U);
|
|
18592
18590
|
this.appendChild(J);
|
|
18593
18591
|
}
|
|
18594
18592
|
else
|
|
18595
|
-
l(_.prototype.__proto__ || Object.getPrototypeOf(_.prototype), "insertAt", this).call(this, T, N,
|
|
18593
|
+
l(_.prototype.__proto__ || Object.getPrototypeOf(_.prototype), "insertAt", this).call(this, T, N, U);
|
|
18596
18594
|
this.optimize();
|
|
18597
18595
|
}
|
|
18598
18596
|
}
|
|
@@ -18600,8 +18598,8 @@ var Nc = { exports: {} };
|
|
|
18600
18598
|
key: "insertBefore",
|
|
18601
18599
|
value: function(T, N) {
|
|
18602
18600
|
if (T.statics.scope === s.default.Scope.INLINE_BLOT) {
|
|
18603
|
-
var
|
|
18604
|
-
|
|
18601
|
+
var U = s.default.create(this.statics.defaultChild);
|
|
18602
|
+
U.appendChild(T), T = U;
|
|
18605
18603
|
}
|
|
18606
18604
|
l(_.prototype.__proto__ || Object.getPrototypeOf(_.prototype), "insertBefore", this).call(this, T, N);
|
|
18607
18605
|
}
|
|
@@ -18618,13 +18616,13 @@ var Nc = { exports: {} };
|
|
|
18618
18616
|
}, {
|
|
18619
18617
|
key: "lines",
|
|
18620
18618
|
value: function() {
|
|
18621
|
-
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE,
|
|
18619
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, U = function j(J, oe, W) {
|
|
18622
18620
|
var L = [], I = W;
|
|
18623
18621
|
return J.children.forEachAt(oe, W, function(D, B, P) {
|
|
18624
18622
|
O(D) ? L.push(D) : D instanceof s.default.Container && (L = L.concat(j(D, B, I))), I -= P;
|
|
18625
18623
|
}), L;
|
|
18626
18624
|
};
|
|
18627
|
-
return
|
|
18625
|
+
return U(this, T, N);
|
|
18628
18626
|
}
|
|
18629
18627
|
}, {
|
|
18630
18628
|
key: "optimize",
|
|
@@ -18715,11 +18713,11 @@ var Nc = { exports: {} };
|
|
|
18715
18713
|
throw new TypeError("Super expression must either be null or a function, not " + typeof V);
|
|
18716
18714
|
$.prototype = Object.create(V && V.prototype, { constructor: { value: $, enumerable: !1, writable: !0, configurable: !0 } }), V && (Object.setPrototypeOf ? Object.setPrototypeOf($, V) : $.__proto__ = V);
|
|
18717
18715
|
}
|
|
18718
|
-
var
|
|
18716
|
+
var U = (0, E.default)("quill:keyboard"), j = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", J = function($) {
|
|
18719
18717
|
N(V, $), l(V, null, [{
|
|
18720
18718
|
key: "match",
|
|
18721
18719
|
value: function(ee, Y) {
|
|
18722
|
-
return Y =
|
|
18720
|
+
return Y = H(Y), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(ie) {
|
|
18723
18721
|
return !!Y[ie] !== ee[ie] && Y[ie] !== null;
|
|
18724
18722
|
}) ? !1 : Y.key === (ee.which || ee.keyCode);
|
|
18725
18723
|
}
|
|
@@ -18735,9 +18733,9 @@ var Nc = { exports: {} };
|
|
|
18735
18733
|
return l(V, [{
|
|
18736
18734
|
key: "addBinding",
|
|
18737
18735
|
value: function(ee) {
|
|
18738
|
-
var Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ie = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, fe =
|
|
18736
|
+
var Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ie = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, fe = H(ee);
|
|
18739
18737
|
if (fe == null || fe.key == null)
|
|
18740
|
-
return
|
|
18738
|
+
return U.warn("Attempted to add invalid keyboard binding", fe);
|
|
18741
18739
|
typeof Y == "function" && (Y = { handler: Y }), typeof ie == "function" && (ie = { handler: ie }), fe = (0, m.default)(fe, Y, ie), this.bindings[fe.key] = this.bindings[fe.key] || [], this.bindings[fe.key].push(fe);
|
|
18742
18740
|
}
|
|
18743
18741
|
}, {
|
|
@@ -19012,9 +19010,9 @@ var Nc = { exports: {} };
|
|
|
19012
19010
|
}
|
|
19013
19011
|
};
|
|
19014
19012
|
}
|
|
19015
|
-
function
|
|
19013
|
+
function H($) {
|
|
19016
19014
|
if (typeof $ == "string" || typeof $ == "number")
|
|
19017
|
-
return
|
|
19015
|
+
return H({ key: $ });
|
|
19018
19016
|
if ((typeof $ > "u" ? "undefined" : a($)) === "object" && ($ = (0, s.default)($, !1)), typeof $.key == "string")
|
|
19019
19017
|
if (J.keys[$.key.toUpperCase()] != null)
|
|
19020
19018
|
$.key = J.keys[$.key.toUpperCase()];
|
|
@@ -19517,8 +19515,8 @@ var Nc = { exports: {} };
|
|
|
19517
19515
|
Object.defineProperty(r, "__esModule", {
|
|
19518
19516
|
value: !0
|
|
19519
19517
|
});
|
|
19520
|
-
var a = o(0), i =
|
|
19521
|
-
function
|
|
19518
|
+
var a = o(0), i = U(a), l = o(5), u = U(l), s = o(4), c = U(s), y = o(16), f = U(y), m = o(25), d = U(m), b = o(24), h = U(b), x = o(35), p = U(x), v = o(6), g = U(v), k = o(22), w = U(k), E = o(7), O = U(E), F = o(55), S = U(F), _ = o(42), A = U(_), T = o(23), N = U(T);
|
|
19519
|
+
function U(j) {
|
|
19522
19520
|
return j && j.__esModule ? j : { default: j };
|
|
19523
19521
|
}
|
|
19524
19522
|
u.default.register({
|
|
@@ -20214,25 +20212,25 @@ var Nc = { exports: {} };
|
|
|
20214
20212
|
}), r.default = r.BaseTooltip = void 0;
|
|
20215
20213
|
var a = /* @__PURE__ */ function() {
|
|
20216
20214
|
function D(B, P) {
|
|
20217
|
-
for (var
|
|
20218
|
-
var $ = P[
|
|
20215
|
+
for (var H = 0; H < P.length; H++) {
|
|
20216
|
+
var $ = P[H];
|
|
20219
20217
|
$.enumerable = $.enumerable || !1, $.configurable = !0, "value" in $ && ($.writable = !0), Object.defineProperty(B, $.key, $);
|
|
20220
20218
|
}
|
|
20221
20219
|
}
|
|
20222
|
-
return function(B, P,
|
|
20223
|
-
return P && D(B.prototype, P),
|
|
20220
|
+
return function(B, P, H) {
|
|
20221
|
+
return P && D(B.prototype, P), H && D(B, H), B;
|
|
20224
20222
|
};
|
|
20225
|
-
}(), i = function D(B, P,
|
|
20223
|
+
}(), i = function D(B, P, H) {
|
|
20226
20224
|
B === null && (B = Function.prototype);
|
|
20227
20225
|
var $ = Object.getOwnPropertyDescriptor(B, P);
|
|
20228
20226
|
if ($ === void 0) {
|
|
20229
20227
|
var V = Object.getPrototypeOf(B);
|
|
20230
|
-
return V === null ? void 0 : D(V, P,
|
|
20228
|
+
return V === null ? void 0 : D(V, P, H);
|
|
20231
20229
|
} else {
|
|
20232
20230
|
if ("value" in $)
|
|
20233
20231
|
return $.value;
|
|
20234
20232
|
var Q = $.get;
|
|
20235
|
-
return Q === void 0 ? void 0 : Q.call(
|
|
20233
|
+
return Q === void 0 ? void 0 : Q.call(H);
|
|
20236
20234
|
}
|
|
20237
20235
|
}, l = o(3), u = F(l), s = o(2), c = F(s), y = o(8), f = F(y), m = o(23), d = F(m), b = o(34), h = F(b), x = o(59), p = F(x), v = o(60), g = F(v), k = o(28), w = F(k), E = o(61), O = F(E);
|
|
20238
20236
|
function F(D) {
|
|
@@ -20252,11 +20250,11 @@ var Nc = { exports: {} };
|
|
|
20252
20250
|
throw new TypeError("Super expression must either be null or a function, not " + typeof B);
|
|
20253
20251
|
D.prototype = Object.create(B && B.prototype, { constructor: { value: D, enumerable: !1, writable: !0, configurable: !0 } }), B && (Object.setPrototypeOf ? Object.setPrototypeOf(D, B) : D.__proto__ = B);
|
|
20254
20252
|
}
|
|
20255
|
-
var T = [!1, "center", "right", "justify"], N = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"],
|
|
20253
|
+
var T = [!1, "center", "right", "justify"], N = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], U = [!1, "serif", "monospace"], j = ["1", "2", "3", !1], J = ["small", !1, "large", "huge"], oe = function(D) {
|
|
20256
20254
|
A(B, D);
|
|
20257
|
-
function B(P,
|
|
20255
|
+
function B(P, H) {
|
|
20258
20256
|
S(this, B);
|
|
20259
|
-
var $ = _(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, P,
|
|
20257
|
+
var $ = _(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, P, H)), V = function Q(ee) {
|
|
20260
20258
|
if (!document.body.contains(P.root))
|
|
20261
20259
|
return document.body.removeEventListener("click", Q);
|
|
20262
20260
|
$.tooltip != null && !$.tooltip.root.contains(ee.target) && document.activeElement !== $.tooltip.textbox && !$.quill.hasFocus() && $.tooltip.hide(), $.pickers != null && $.pickers.forEach(function(Y) {
|
|
@@ -20267,14 +20265,14 @@ var Nc = { exports: {} };
|
|
|
20267
20265
|
}
|
|
20268
20266
|
return a(B, [{
|
|
20269
20267
|
key: "addModule",
|
|
20270
|
-
value: function(
|
|
20271
|
-
var $ = i(B.prototype.__proto__ || Object.getPrototypeOf(B.prototype), "addModule", this).call(this,
|
|
20272
|
-
return
|
|
20268
|
+
value: function(H) {
|
|
20269
|
+
var $ = i(B.prototype.__proto__ || Object.getPrototypeOf(B.prototype), "addModule", this).call(this, H);
|
|
20270
|
+
return H === "toolbar" && this.extendToolbar($), $;
|
|
20273
20271
|
}
|
|
20274
20272
|
}, {
|
|
20275
20273
|
key: "buildButtons",
|
|
20276
|
-
value: function(
|
|
20277
|
-
|
|
20274
|
+
value: function(H, $) {
|
|
20275
|
+
H.forEach(function(V) {
|
|
20278
20276
|
var Q = V.getAttribute("class") || "";
|
|
20279
20277
|
Q.split(/\s+/).forEach(function(ee) {
|
|
20280
20278
|
if (ee.startsWith("ql-") && (ee = ee.slice(3), $[ee] != null))
|
|
@@ -20291,16 +20289,16 @@ var Nc = { exports: {} };
|
|
|
20291
20289
|
}
|
|
20292
20290
|
}, {
|
|
20293
20291
|
key: "buildPickers",
|
|
20294
|
-
value: function(
|
|
20292
|
+
value: function(H, $) {
|
|
20295
20293
|
var V = this;
|
|
20296
|
-
this.pickers =
|
|
20294
|
+
this.pickers = H.map(function(ee) {
|
|
20297
20295
|
if (ee.classList.contains("ql-align"))
|
|
20298
20296
|
return ee.querySelector("option") == null && I(ee, T), new g.default(ee, $.align);
|
|
20299
20297
|
if (ee.classList.contains("ql-background") || ee.classList.contains("ql-color")) {
|
|
20300
20298
|
var Y = ee.classList.contains("ql-background") ? "background" : "color";
|
|
20301
20299
|
return ee.querySelector("option") == null && I(ee, N, Y === "background" ? "#ffffff" : "#000000"), new p.default(ee, $[Y]);
|
|
20302
20300
|
} else
|
|
20303
|
-
return ee.querySelector("option") == null && (ee.classList.contains("ql-font") ? I(ee,
|
|
20301
|
+
return ee.querySelector("option") == null && (ee.classList.contains("ql-font") ? I(ee, U) : ee.classList.contains("ql-header") ? I(ee, j) : ee.classList.contains("ql-size") && I(ee, J)), new w.default(ee);
|
|
20304
20302
|
});
|
|
20305
20303
|
var Q = function() {
|
|
20306
20304
|
V.pickers.forEach(function(Y) {
|
|
@@ -20322,11 +20320,11 @@ var Nc = { exports: {} };
|
|
|
20322
20320
|
var B = this, P = this.container.querySelector("input.ql-image[type=file]");
|
|
20323
20321
|
P == null && (P = document.createElement("input"), P.setAttribute("type", "file"), P.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), P.classList.add("ql-image"), P.addEventListener("change", function() {
|
|
20324
20322
|
if (P.files != null && P.files[0] != null) {
|
|
20325
|
-
var
|
|
20326
|
-
|
|
20323
|
+
var H = new FileReader();
|
|
20324
|
+
H.onload = function($) {
|
|
20327
20325
|
var V = B.quill.getSelection(!0);
|
|
20328
20326
|
B.quill.updateContents(new c.default().retain(V.index).delete(V.length).insert({ image: $.target.result }), f.default.sources.USER), B.quill.setSelection(V.index + 1, f.default.sources.SILENT), P.value = "";
|
|
20329
|
-
},
|
|
20327
|
+
}, H.readAsDataURL(P.files[0]);
|
|
20330
20328
|
}
|
|
20331
20329
|
}), this.container.appendChild(P)), P.click();
|
|
20332
20330
|
},
|
|
@@ -20339,17 +20337,17 @@ var Nc = { exports: {} };
|
|
|
20339
20337
|
});
|
|
20340
20338
|
var W = function(D) {
|
|
20341
20339
|
A(B, D);
|
|
20342
|
-
function B(P,
|
|
20340
|
+
function B(P, H) {
|
|
20343
20341
|
S(this, B);
|
|
20344
|
-
var $ = _(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, P,
|
|
20342
|
+
var $ = _(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, P, H));
|
|
20345
20343
|
return $.textbox = $.root.querySelector('input[type="text"]'), $.listen(), $;
|
|
20346
20344
|
}
|
|
20347
20345
|
return a(B, [{
|
|
20348
20346
|
key: "listen",
|
|
20349
20347
|
value: function() {
|
|
20350
|
-
var
|
|
20348
|
+
var H = this;
|
|
20351
20349
|
this.textbox.addEventListener("keydown", function($) {
|
|
20352
|
-
d.default.match($, "enter") ? (
|
|
20350
|
+
d.default.match($, "enter") ? (H.save(), $.preventDefault()) : d.default.match($, "escape") && (H.cancel(), $.preventDefault());
|
|
20353
20351
|
});
|
|
20354
20352
|
}
|
|
20355
20353
|
}, {
|
|
@@ -20360,34 +20358,34 @@ var Nc = { exports: {} };
|
|
|
20360
20358
|
}, {
|
|
20361
20359
|
key: "edit",
|
|
20362
20360
|
value: function() {
|
|
20363
|
-
var
|
|
20364
|
-
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), $ != null ? this.textbox.value = $ :
|
|
20361
|
+
var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
20362
|
+
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), $ != null ? this.textbox.value = $ : H !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + H) || ""), this.root.setAttribute("data-mode", H);
|
|
20365
20363
|
}
|
|
20366
20364
|
}, {
|
|
20367
20365
|
key: "restoreFocus",
|
|
20368
20366
|
value: function() {
|
|
20369
|
-
var
|
|
20370
|
-
this.quill.focus(), this.quill.scrollingContainer.scrollTop =
|
|
20367
|
+
var H = this.quill.scrollingContainer.scrollTop;
|
|
20368
|
+
this.quill.focus(), this.quill.scrollingContainer.scrollTop = H;
|
|
20371
20369
|
}
|
|
20372
20370
|
}, {
|
|
20373
20371
|
key: "save",
|
|
20374
20372
|
value: function() {
|
|
20375
|
-
var
|
|
20373
|
+
var H = this.textbox.value;
|
|
20376
20374
|
switch (this.root.getAttribute("data-mode")) {
|
|
20377
20375
|
case "link": {
|
|
20378
20376
|
var $ = this.quill.root.scrollTop;
|
|
20379
|
-
this.linkRange ? (this.quill.formatText(this.linkRange, "link",
|
|
20377
|
+
this.linkRange ? (this.quill.formatText(this.linkRange, "link", H, f.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", H, f.default.sources.USER)), this.quill.root.scrollTop = $;
|
|
20380
20378
|
break;
|
|
20381
20379
|
}
|
|
20382
20380
|
case "video":
|
|
20383
|
-
|
|
20381
|
+
H = L(H);
|
|
20384
20382
|
case "formula": {
|
|
20385
|
-
if (!
|
|
20383
|
+
if (!H)
|
|
20386
20384
|
break;
|
|
20387
20385
|
var V = this.quill.getSelection(!0);
|
|
20388
20386
|
if (V != null) {
|
|
20389
20387
|
var Q = V.index + V.length;
|
|
20390
|
-
this.quill.insertEmbed(Q, this.root.getAttribute("data-mode"),
|
|
20388
|
+
this.quill.insertEmbed(Q, this.root.getAttribute("data-mode"), H, f.default.sources.USER), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(Q + 1, " ", f.default.sources.USER), this.quill.setSelection(Q + 2, f.default.sources.USER);
|
|
20391
20389
|
}
|
|
20392
20390
|
break;
|
|
20393
20391
|
}
|
|
@@ -20402,9 +20400,9 @@ var Nc = { exports: {} };
|
|
|
20402
20400
|
}
|
|
20403
20401
|
function I(D, B) {
|
|
20404
20402
|
var P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
20405
|
-
B.forEach(function(
|
|
20403
|
+
B.forEach(function(H) {
|
|
20406
20404
|
var $ = document.createElement("option");
|
|
20407
|
-
|
|
20405
|
+
H === P ? $.setAttribute("selected", "selected") : $.setAttribute("value", H), D.appendChild($);
|
|
20408
20406
|
});
|
|
20409
20407
|
}
|
|
20410
20408
|
r.BaseTooltip = W, r.default = oe;
|
|
@@ -20834,8 +20832,8 @@ var Nc = { exports: {} };
|
|
|
20834
20832
|
return [[o, g], [a, k]];
|
|
20835
20833
|
var S = m(g, k);
|
|
20836
20834
|
if (S) {
|
|
20837
|
-
var _ = S[0], A = S[1], T = S[2], N = S[3],
|
|
20838
|
-
return j.concat([[i,
|
|
20835
|
+
var _ = S[0], A = S[1], T = S[2], N = S[3], U = S[4], j = l(_, T), J = l(A, N);
|
|
20836
|
+
return j.concat([[i, U]], J);
|
|
20839
20837
|
}
|
|
20840
20838
|
return s(g, k);
|
|
20841
20839
|
}
|
|
@@ -20843,7 +20841,7 @@ var Nc = { exports: {} };
|
|
|
20843
20841
|
for (var w = g.length, E = k.length, O = Math.ceil((w + E) / 2), F = O, S = 2 * O, _ = new Array(S), A = new Array(S), T = 0; T < S; T++)
|
|
20844
20842
|
_[T] = -1, A[T] = -1;
|
|
20845
20843
|
_[F + 1] = 0, A[F + 1] = 0;
|
|
20846
|
-
for (var N = w - E,
|
|
20844
|
+
for (var N = w - E, U = N % 2 != 0, j = 0, J = 0, oe = 0, W = 0, L = 0; L < O; L++) {
|
|
20847
20845
|
for (var I = -L + j; I <= L - J; I += 2) {
|
|
20848
20846
|
var D = F + I, B;
|
|
20849
20847
|
I == -L || I != L && _[D - 1] < _[D + 1] ? B = _[D + 1] : B = _[D - 1] + 1;
|
|
@@ -20853,25 +20851,25 @@ var Nc = { exports: {} };
|
|
|
20853
20851
|
J += 2;
|
|
20854
20852
|
else if (P > E)
|
|
20855
20853
|
j += 2;
|
|
20856
|
-
else if (
|
|
20857
|
-
var
|
|
20858
|
-
if (
|
|
20859
|
-
var $ = w - A[
|
|
20854
|
+
else if (U) {
|
|
20855
|
+
var H = F + N - I;
|
|
20856
|
+
if (H >= 0 && H < S && A[H] != -1) {
|
|
20857
|
+
var $ = w - A[H];
|
|
20860
20858
|
if (B >= $)
|
|
20861
20859
|
return c(g, k, B, P);
|
|
20862
20860
|
}
|
|
20863
20861
|
}
|
|
20864
20862
|
}
|
|
20865
20863
|
for (var V = -L + oe; V <= L - W; V += 2) {
|
|
20866
|
-
var
|
|
20867
|
-
V == -L || V != L && A[
|
|
20864
|
+
var H = F + V, $;
|
|
20865
|
+
V == -L || V != L && A[H - 1] < A[H + 1] ? $ = A[H + 1] : $ = A[H - 1] + 1;
|
|
20868
20866
|
for (var Q = $ - V; $ < w && Q < E && g.charAt(w - $ - 1) == k.charAt(E - Q - 1); )
|
|
20869
20867
|
$++, Q++;
|
|
20870
|
-
if (A[
|
|
20868
|
+
if (A[H] = $, $ > w)
|
|
20871
20869
|
W += 2;
|
|
20872
20870
|
else if (Q > E)
|
|
20873
20871
|
oe += 2;
|
|
20874
|
-
else if (!
|
|
20872
|
+
else if (!U) {
|
|
20875
20873
|
var D = F + N - V;
|
|
20876
20874
|
if (D >= 0 && D < S && _[D] != -1) {
|
|
20877
20875
|
var B = _[D], P = F + B - D;
|
|
@@ -20906,7 +20904,7 @@ var Nc = { exports: {} };
|
|
|
20906
20904
|
if (w.length < 4 || E.length * 2 < w.length)
|
|
20907
20905
|
return null;
|
|
20908
20906
|
function O(J, oe, W) {
|
|
20909
|
-
for (var L = J.substring(W, W + Math.floor(J.length / 4)), I = -1, D = "", B, P,
|
|
20907
|
+
for (var L = J.substring(W, W + Math.floor(J.length / 4)), I = -1, D = "", B, P, H, $; (I = oe.indexOf(L, I + 1)) != -1; ) {
|
|
20910
20908
|
var V = y(
|
|
20911
20909
|
J.substring(W),
|
|
20912
20910
|
oe.substring(I)
|
|
@@ -20914,12 +20912,12 @@ var Nc = { exports: {} };
|
|
|
20914
20912
|
J.substring(0, W),
|
|
20915
20913
|
oe.substring(0, I)
|
|
20916
20914
|
);
|
|
20917
|
-
D.length < Q + V && (D = oe.substring(I - Q, I) + oe.substring(I, I + V), B = J.substring(0, W - Q), P = J.substring(W + V),
|
|
20915
|
+
D.length < Q + V && (D = oe.substring(I - Q, I) + oe.substring(I, I + V), B = J.substring(0, W - Q), P = J.substring(W + V), H = oe.substring(0, I - Q), $ = oe.substring(I + V));
|
|
20918
20916
|
}
|
|
20919
20917
|
return D.length * 2 >= J.length ? [
|
|
20920
20918
|
B,
|
|
20921
20919
|
P,
|
|
20922
|
-
|
|
20920
|
+
H,
|
|
20923
20921
|
$,
|
|
20924
20922
|
D
|
|
20925
20923
|
] : null;
|
|
@@ -20936,10 +20934,10 @@ var Nc = { exports: {} };
|
|
|
20936
20934
|
if (!F && !S)
|
|
20937
20935
|
return null;
|
|
20938
20936
|
S ? F ? _ = F[4].length > S[4].length ? F : S : _ = S : _ = F;
|
|
20939
|
-
var A, T, N,
|
|
20940
|
-
g.length > k.length ? (A = _[0], T = _[1], N = _[2],
|
|
20937
|
+
var A, T, N, U;
|
|
20938
|
+
g.length > k.length ? (A = _[0], T = _[1], N = _[2], U = _[3]) : (N = _[0], U = _[1], A = _[2], T = _[3]);
|
|
20941
20939
|
var j = _[4];
|
|
20942
|
-
return [A, T, N,
|
|
20940
|
+
return [A, T, N, U, j];
|
|
20943
20941
|
}
|
|
20944
20942
|
function d(g) {
|
|
20945
20943
|
g.push([i, ""]);
|
|
@@ -21223,7 +21221,7 @@ var Nc = { exports: {} };
|
|
|
21223
21221
|
if (!(te instanceof de))
|
|
21224
21222
|
throw new TypeError("Cannot call a class as a function");
|
|
21225
21223
|
}
|
|
21226
|
-
function
|
|
21224
|
+
function U(te, de) {
|
|
21227
21225
|
if (!te)
|
|
21228
21226
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21229
21227
|
return de && (typeof de == "object" || typeof de == "function") ? de : te;
|
|
@@ -21241,7 +21239,7 @@ var Nc = { exports: {} };
|
|
|
21241
21239
|
j(de, te);
|
|
21242
21240
|
function de(ge, be) {
|
|
21243
21241
|
N(this, de);
|
|
21244
|
-
var ye =
|
|
21242
|
+
var ye = U(this, (de.__proto__ || Object.getPrototypeOf(de)).call(this, ge, be));
|
|
21245
21243
|
return ye.quill.root.addEventListener("paste", ye.onPaste.bind(ye)), ye.container = ye.quill.addContainer("ql-clipboard"), ye.container.setAttribute("contenteditable", !0), ye.container.setAttribute("tabindex", -1), ye.matchers = [], W.concat(ye.options.matchers).forEach(function(Oe) {
|
|
21246
21244
|
var Ie = i(Oe, 2), Be = Ie[0], Ke = Ie[1];
|
|
21247
21245
|
!be.matchVisual && Ke === G || ye.addMatcher(Be, Ke);
|
|
@@ -21263,7 +21261,7 @@ var Nc = { exports: {} };
|
|
|
21263
21261
|
return this.container.innerHTML = "", new y.default().insert(Oe, T({}, E.default.blotName, ye[E.default.blotName]));
|
|
21264
21262
|
}
|
|
21265
21263
|
var Ie = this.prepareMatching(), Be = i(Ie, 2), Ke = Be[0], Qe = Be[1], Ne = V(this.container, Ke, Qe);
|
|
21266
|
-
return
|
|
21264
|
+
return H(Ne, `
|
|
21267
21265
|
`) && Ne.ops[Ne.ops.length - 1].attributes == null && (Ne = Ne.compose(new y.default().retain(Ne.length() - 1).delete(1))), J.log("convert", this.container.innerHTML, Ne), this.container.innerHTML = "", Ne;
|
|
21268
21266
|
}
|
|
21269
21267
|
}, {
|
|
@@ -21328,7 +21326,7 @@ var Nc = { exports: {} };
|
|
|
21328
21326
|
var de = "__ql-computed-style";
|
|
21329
21327
|
return te[de] || (te[de] = window.getComputedStyle(te));
|
|
21330
21328
|
}
|
|
21331
|
-
function
|
|
21329
|
+
function H(te, de) {
|
|
21332
21330
|
for (var ge = "", be = te.ops.length - 1; be >= 0 && ge.length < de.length; --be) {
|
|
21333
21331
|
var ye = te.ops[be];
|
|
21334
21332
|
if (typeof ye.insert != "string")
|
|
@@ -21377,7 +21375,7 @@ var Nc = { exports: {} };
|
|
|
21377
21375
|
return de;
|
|
21378
21376
|
}
|
|
21379
21377
|
function ie(te, de) {
|
|
21380
|
-
return
|
|
21378
|
+
return H(de, `
|
|
21381
21379
|
`) || de.insert(`
|
|
21382
21380
|
`), de;
|
|
21383
21381
|
}
|
|
@@ -21386,7 +21384,7 @@ var Nc = { exports: {} };
|
|
|
21386
21384
|
}
|
|
21387
21385
|
function re(te, de) {
|
|
21388
21386
|
var ge = m.default.query(te);
|
|
21389
|
-
if (ge == null || ge.blotName !== "list-item" || !
|
|
21387
|
+
if (ge == null || ge.blotName !== "list-item" || !H(de, `
|
|
21390
21388
|
`))
|
|
21391
21389
|
return de;
|
|
21392
21390
|
for (var be = -1, ye = te.parentNode; !ye.classList.contains("ql-clipboard"); )
|
|
@@ -21394,12 +21392,12 @@ var Nc = { exports: {} };
|
|
|
21394
21392
|
return be <= 0 ? de : de.compose(new y.default().retain(de.length() - 1).retain(1, { indent: be }));
|
|
21395
21393
|
}
|
|
21396
21394
|
function Z(te, de) {
|
|
21397
|
-
return
|
|
21395
|
+
return H(de, `
|
|
21398
21396
|
`) || ($(te) || de.length() > 0 && te.nextSibling && $(te.nextSibling)) && de.insert(`
|
|
21399
21397
|
`), de;
|
|
21400
21398
|
}
|
|
21401
21399
|
function G(te, de) {
|
|
21402
|
-
if ($(te) && te.nextElementSibling != null && !
|
|
21400
|
+
if ($(te) && te.nextElementSibling != null && !H(de, `
|
|
21403
21401
|
|
|
21404
21402
|
`)) {
|
|
21405
21403
|
var ge = te.offsetHeight + parseFloat(P(te).marginTop) + parseFloat(P(te).marginBottom);
|
|
@@ -21506,15 +21504,15 @@ var Nc = { exports: {} };
|
|
|
21506
21504
|
}), r.addControls = r.default = void 0;
|
|
21507
21505
|
var a = /* @__PURE__ */ function() {
|
|
21508
21506
|
function _(A, T) {
|
|
21509
|
-
var N = [],
|
|
21507
|
+
var N = [], U = !0, j = !1, J = void 0;
|
|
21510
21508
|
try {
|
|
21511
|
-
for (var oe = A[Symbol.iterator](), W; !(
|
|
21509
|
+
for (var oe = A[Symbol.iterator](), W; !(U = (W = oe.next()).done) && (N.push(W.value), !(T && N.length === T)); U = !0)
|
|
21512
21510
|
;
|
|
21513
21511
|
} catch (L) {
|
|
21514
21512
|
j = !0, J = L;
|
|
21515
21513
|
} finally {
|
|
21516
21514
|
try {
|
|
21517
|
-
!
|
|
21515
|
+
!U && oe.return && oe.return();
|
|
21518
21516
|
} finally {
|
|
21519
21517
|
if (j)
|
|
21520
21518
|
throw J;
|
|
@@ -21532,8 +21530,8 @@ var Nc = { exports: {} };
|
|
|
21532
21530
|
}(), i = /* @__PURE__ */ function() {
|
|
21533
21531
|
function _(A, T) {
|
|
21534
21532
|
for (var N = 0; N < T.length; N++) {
|
|
21535
|
-
var
|
|
21536
|
-
|
|
21533
|
+
var U = T[N];
|
|
21534
|
+
U.enumerable = U.enumerable || !1, U.configurable = !0, "value" in U && (U.writable = !0), Object.defineProperty(A, U.key, U);
|
|
21537
21535
|
}
|
|
21538
21536
|
}
|
|
21539
21537
|
return function(A, T, N) {
|
|
@@ -21564,36 +21562,36 @@ var Nc = { exports: {} };
|
|
|
21564
21562
|
k(A, _);
|
|
21565
21563
|
function A(T, N) {
|
|
21566
21564
|
v(this, A);
|
|
21567
|
-
var
|
|
21568
|
-
if (Array.isArray(
|
|
21565
|
+
var U = g(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this, T, N));
|
|
21566
|
+
if (Array.isArray(U.options.container)) {
|
|
21569
21567
|
var j = document.createElement("div");
|
|
21570
|
-
F(j,
|
|
21568
|
+
F(j, U.options.container), T.container.parentNode.insertBefore(j, T.container), U.container = j;
|
|
21571
21569
|
} else
|
|
21572
|
-
typeof
|
|
21573
|
-
if (!(
|
|
21570
|
+
typeof U.options.container == "string" ? U.container = document.querySelector(U.options.container) : U.container = U.options.container;
|
|
21571
|
+
if (!(U.container instanceof HTMLElement)) {
|
|
21574
21572
|
var J;
|
|
21575
|
-
return J = w.error("Container required for toolbar",
|
|
21576
|
-
}
|
|
21577
|
-
return
|
|
21578
|
-
|
|
21579
|
-
}), [].forEach.call(
|
|
21580
|
-
|
|
21581
|
-
}),
|
|
21582
|
-
oe === f.default.events.SELECTION_CHANGE &&
|
|
21583
|
-
}),
|
|
21584
|
-
var oe =
|
|
21585
|
-
|
|
21586
|
-
}),
|
|
21573
|
+
return J = w.error("Container required for toolbar", U.options), g(U, J);
|
|
21574
|
+
}
|
|
21575
|
+
return U.container.classList.add("ql-toolbar"), U.controls = [], U.handlers = {}, Object.keys(U.options.handlers).forEach(function(oe) {
|
|
21576
|
+
U.addHandler(oe, U.options.handlers[oe]);
|
|
21577
|
+
}), [].forEach.call(U.container.querySelectorAll("button, select"), function(oe) {
|
|
21578
|
+
U.attach(oe);
|
|
21579
|
+
}), U.quill.on(f.default.events.EDITOR_CHANGE, function(oe, W) {
|
|
21580
|
+
oe === f.default.events.SELECTION_CHANGE && U.update(W);
|
|
21581
|
+
}), U.quill.on(f.default.events.SCROLL_OPTIMIZE, function() {
|
|
21582
|
+
var oe = U.quill.selection.getRange(), W = a(oe, 1), L = W[0];
|
|
21583
|
+
U.update(L);
|
|
21584
|
+
}), U;
|
|
21587
21585
|
}
|
|
21588
21586
|
return i(A, [{
|
|
21589
21587
|
key: "addHandler",
|
|
21590
|
-
value: function(N,
|
|
21591
|
-
this.handlers[N] =
|
|
21588
|
+
value: function(N, U) {
|
|
21589
|
+
this.handlers[N] = U;
|
|
21592
21590
|
}
|
|
21593
21591
|
}, {
|
|
21594
21592
|
key: "attach",
|
|
21595
21593
|
value: function(N) {
|
|
21596
|
-
var
|
|
21594
|
+
var U = this, j = [].find.call(N.classList, function(oe) {
|
|
21597
21595
|
return oe.indexOf("ql-") === 0;
|
|
21598
21596
|
});
|
|
21599
21597
|
if (j) {
|
|
@@ -21617,44 +21615,44 @@ var Nc = { exports: {} };
|
|
|
21617
21615
|
L.hasAttribute("selected") ? W = !1 : W = L.value || !1;
|
|
21618
21616
|
} else
|
|
21619
21617
|
N.classList.contains("ql-active") ? W = !1 : W = N.value || !N.hasAttribute("value"), oe.preventDefault();
|
|
21620
|
-
|
|
21621
|
-
var I =
|
|
21622
|
-
if (
|
|
21623
|
-
|
|
21618
|
+
U.quill.focus();
|
|
21619
|
+
var I = U.quill.selection.getRange(), D = a(I, 1), B = D[0];
|
|
21620
|
+
if (U.handlers[j] != null)
|
|
21621
|
+
U.handlers[j].call(U, W);
|
|
21624
21622
|
else if (c.default.query(j).prototype instanceof c.default.Embed) {
|
|
21625
21623
|
if (W = prompt("Enter " + j), !W)
|
|
21626
21624
|
return;
|
|
21627
|
-
|
|
21625
|
+
U.quill.updateContents(new u.default().retain(B.index).delete(B.length).insert(p({}, j, W)), f.default.sources.USER);
|
|
21628
21626
|
} else
|
|
21629
|
-
|
|
21630
|
-
|
|
21627
|
+
U.quill.format(j, W, f.default.sources.USER);
|
|
21628
|
+
U.update(B);
|
|
21631
21629
|
}), this.controls.push([j, N]);
|
|
21632
21630
|
}
|
|
21633
21631
|
}
|
|
21634
21632
|
}, {
|
|
21635
21633
|
key: "update",
|
|
21636
21634
|
value: function(N) {
|
|
21637
|
-
var
|
|
21635
|
+
var U = N == null ? {} : this.quill.getFormat(N);
|
|
21638
21636
|
this.controls.forEach(function(j) {
|
|
21639
21637
|
var J = a(j, 2), oe = J[0], W = J[1];
|
|
21640
21638
|
if (W.tagName === "SELECT") {
|
|
21641
21639
|
var L = void 0;
|
|
21642
21640
|
if (N == null)
|
|
21643
21641
|
L = null;
|
|
21644
|
-
else if (
|
|
21642
|
+
else if (U[oe] == null)
|
|
21645
21643
|
L = W.querySelector("option[selected]");
|
|
21646
|
-
else if (!Array.isArray(
|
|
21647
|
-
var I =
|
|
21644
|
+
else if (!Array.isArray(U[oe])) {
|
|
21645
|
+
var I = U[oe];
|
|
21648
21646
|
typeof I == "string" && (I = I.replace(/\"/g, '\\"')), L = W.querySelector('option[value="' + I + '"]');
|
|
21649
21647
|
}
|
|
21650
21648
|
L == null ? (W.value = "", W.selectedIndex = -1) : L.selected = !0;
|
|
21651
21649
|
} else if (N == null)
|
|
21652
21650
|
W.classList.remove("ql-active");
|
|
21653
21651
|
else if (W.hasAttribute("value")) {
|
|
21654
|
-
var D =
|
|
21652
|
+
var D = U[oe] === W.getAttribute("value") || U[oe] != null && U[oe].toString() === W.getAttribute("value") || U[oe] == null && !W.getAttribute("value");
|
|
21655
21653
|
W.classList.toggle("ql-active", D);
|
|
21656
21654
|
} else
|
|
21657
|
-
W.classList.toggle("ql-active",
|
|
21655
|
+
W.classList.toggle("ql-active", U[oe] != null);
|
|
21658
21656
|
});
|
|
21659
21657
|
}
|
|
21660
21658
|
}]), A;
|
|
@@ -21667,11 +21665,11 @@ var Nc = { exports: {} };
|
|
|
21667
21665
|
function F(_, A) {
|
|
21668
21666
|
Array.isArray(A[0]) || (A = [A]), A.forEach(function(T) {
|
|
21669
21667
|
var N = document.createElement("span");
|
|
21670
|
-
N.classList.add("ql-formats"), T.forEach(function(
|
|
21671
|
-
if (typeof
|
|
21672
|
-
O(N,
|
|
21668
|
+
N.classList.add("ql-formats"), T.forEach(function(U) {
|
|
21669
|
+
if (typeof U == "string")
|
|
21670
|
+
O(N, U);
|
|
21673
21671
|
else {
|
|
21674
|
-
var j = Object.keys(
|
|
21672
|
+
var j = Object.keys(U)[0], J = U[j];
|
|
21675
21673
|
Array.isArray(J) ? S(N, j, J) : O(N, j, J);
|
|
21676
21674
|
}
|
|
21677
21675
|
}), _.appendChild(N);
|
|
@@ -21679,9 +21677,9 @@ var Nc = { exports: {} };
|
|
|
21679
21677
|
}
|
|
21680
21678
|
function S(_, A, T) {
|
|
21681
21679
|
var N = document.createElement("select");
|
|
21682
|
-
N.classList.add("ql-" + A), T.forEach(function(
|
|
21680
|
+
N.classList.add("ql-" + A), T.forEach(function(U) {
|
|
21683
21681
|
var j = document.createElement("option");
|
|
21684
|
-
|
|
21682
|
+
U !== !1 ? j.setAttribute("value", U) : j.setAttribute("selected", "selected"), N.appendChild(j);
|
|
21685
21683
|
}), _.appendChild(N);
|
|
21686
21684
|
}
|
|
21687
21685
|
E.DEFAULTS = {
|
|
@@ -21692,8 +21690,8 @@ var Nc = { exports: {} };
|
|
|
21692
21690
|
if (T != null)
|
|
21693
21691
|
if (T.length == 0) {
|
|
21694
21692
|
var N = this.quill.getFormat();
|
|
21695
|
-
Object.keys(N).forEach(function(
|
|
21696
|
-
c.default.query(
|
|
21693
|
+
Object.keys(N).forEach(function(U) {
|
|
21694
|
+
c.default.query(U, c.default.Scope.INLINE) != null && A.quill.format(U, !1);
|
|
21697
21695
|
});
|
|
21698
21696
|
} else
|
|
21699
21697
|
this.quill.removeFormat(T, f.default.sources.USER);
|
|
@@ -21703,10 +21701,10 @@ var Nc = { exports: {} };
|
|
|
21703
21701
|
A === "rtl" && T == null ? this.quill.format("align", "right", f.default.sources.USER) : !A && T === "right" && this.quill.format("align", !1, f.default.sources.USER), this.quill.format("direction", A, f.default.sources.USER);
|
|
21704
21702
|
},
|
|
21705
21703
|
indent: function(A) {
|
|
21706
|
-
var T = this.quill.getSelection(), N = this.quill.getFormat(T),
|
|
21704
|
+
var T = this.quill.getSelection(), N = this.quill.getFormat(T), U = parseInt(N.indent || 0);
|
|
21707
21705
|
if (A === "+1" || A === "-1") {
|
|
21708
21706
|
var j = A === "+1" ? 1 : -1;
|
|
21709
|
-
N.direction === "rtl" && (j *= -1), this.quill.format("indent",
|
|
21707
|
+
N.direction === "rtl" && (j *= -1), this.quill.format("indent", U + j, f.default.sources.USER);
|
|
21710
21708
|
}
|
|
21711
21709
|
},
|
|
21712
21710
|
link: function(A) {
|
|
@@ -21922,17 +21920,17 @@ var Nc = { exports: {} };
|
|
|
21922
21920
|
});
|
|
21923
21921
|
var a = /* @__PURE__ */ function() {
|
|
21924
21922
|
function S(_, A) {
|
|
21925
|
-
var T = [], N = !0,
|
|
21923
|
+
var T = [], N = !0, U = !1, j = void 0;
|
|
21926
21924
|
try {
|
|
21927
21925
|
for (var J = _[Symbol.iterator](), oe; !(N = (oe = J.next()).done) && (T.push(oe.value), !(A && T.length === A)); N = !0)
|
|
21928
21926
|
;
|
|
21929
21927
|
} catch (W) {
|
|
21930
|
-
|
|
21928
|
+
U = !0, j = W;
|
|
21931
21929
|
} finally {
|
|
21932
21930
|
try {
|
|
21933
21931
|
!N && J.return && J.return();
|
|
21934
21932
|
} finally {
|
|
21935
|
-
if (
|
|
21933
|
+
if (U)
|
|
21936
21934
|
throw j;
|
|
21937
21935
|
}
|
|
21938
21936
|
}
|
|
@@ -21949,8 +21947,8 @@ var Nc = { exports: {} };
|
|
|
21949
21947
|
_ === null && (_ = Function.prototype);
|
|
21950
21948
|
var N = Object.getOwnPropertyDescriptor(_, A);
|
|
21951
21949
|
if (N === void 0) {
|
|
21952
|
-
var
|
|
21953
|
-
return
|
|
21950
|
+
var U = Object.getPrototypeOf(_);
|
|
21951
|
+
return U === null ? void 0 : S(U, A, T);
|
|
21954
21952
|
} else {
|
|
21955
21953
|
if ("value" in N)
|
|
21956
21954
|
return N.value;
|
|
@@ -21995,8 +21993,8 @@ var Nc = { exports: {} };
|
|
|
21995
21993
|
return l(_, [{
|
|
21996
21994
|
key: "extendToolbar",
|
|
21997
21995
|
value: function(T) {
|
|
21998
|
-
T.container.classList.add("ql-snow"), this.buildButtons([].slice.call(T.container.querySelectorAll("button")), p.default), this.buildPickers([].slice.call(T.container.querySelectorAll("select")), p.default), this.tooltip = new F(this.quill, this.options.bounds), T.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(N,
|
|
21999
|
-
T.handlers.link.call(T, !
|
|
21996
|
+
T.container.classList.add("ql-snow"), this.buildButtons([].slice.call(T.container.querySelectorAll("button")), p.default), this.buildPickers([].slice.call(T.container.querySelectorAll("select")), p.default), this.tooltip = new F(this.quill, this.options.bounds), T.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(N, U) {
|
|
21997
|
+
T.handlers.link.call(T, !U.format.link);
|
|
22000
21998
|
});
|
|
22001
21999
|
}
|
|
22002
22000
|
}]), _;
|
|
@@ -22036,11 +22034,11 @@ var Nc = { exports: {} };
|
|
|
22036
22034
|
T.root.classList.contains("ql-editing") ? T.save() : T.edit("link", T.preview.textContent), N.preventDefault();
|
|
22037
22035
|
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(N) {
|
|
22038
22036
|
if (T.linkRange != null) {
|
|
22039
|
-
var
|
|
22040
|
-
T.restoreFocus(), T.quill.formatText(
|
|
22037
|
+
var U = T.linkRange;
|
|
22038
|
+
T.restoreFocus(), T.quill.formatText(U, "link", !1, y.default.sources.USER), delete T.linkRange;
|
|
22041
22039
|
}
|
|
22042
22040
|
N.preventDefault(), T.hide();
|
|
22043
|
-
}), this.quill.on(y.default.events.SELECTION_CHANGE, function(N,
|
|
22041
|
+
}), this.quill.on(y.default.events.SELECTION_CHANGE, function(N, U, j) {
|
|
22044
22042
|
if (N != null) {
|
|
22045
22043
|
if (N.length === 0 && j === y.default.sources.USER) {
|
|
22046
22044
|
var J = T.quill.scroll.descendant(b.default, N.index), oe = a(J, 2), W = oe[0], L = oe[1];
|
|
@@ -22071,7 +22069,7 @@ var Nc = { exports: {} };
|
|
|
22071
22069
|
Object.defineProperty(r, "__esModule", {
|
|
22072
22070
|
value: !0
|
|
22073
22071
|
});
|
|
22074
|
-
var a = o(29), i = ye(a), l = o(36), u = o(38), s = o(64), c = o(65), y = ye(c), f = o(66), m = ye(f), d = o(67), b = ye(d), h = o(37), x = o(26), p = o(39), v = o(40), g = o(56), k = ye(g), w = o(68), E = ye(w), O = o(27), F = ye(O), S = o(69), _ = ye(S), A = o(70), T = ye(A), N = o(71),
|
|
22072
|
+
var a = o(29), i = ye(a), l = o(36), u = o(38), s = o(64), c = o(65), y = ye(c), f = o(66), m = ye(f), d = o(67), b = ye(d), h = o(37), x = o(26), p = o(39), v = o(40), g = o(56), k = ye(g), w = o(68), E = ye(w), O = o(27), F = ye(O), S = o(69), _ = ye(S), A = o(70), T = ye(A), N = o(71), U = ye(N), j = o(72), J = ye(j), oe = o(73), W = ye(oe), L = o(13), I = ye(L), D = o(74), B = ye(D), P = o(75), H = ye(P), $ = o(57), V = ye($), Q = o(41), ee = ye(Q), Y = o(28), ie = ye(Y), fe = o(59), re = ye(fe), Z = o(60), G = ye(Z), X = o(61), ne = ye(X), te = o(108), de = ye(te), ge = o(62), be = ye(ge);
|
|
22075
22073
|
function ye(Oe) {
|
|
22076
22074
|
return Oe && Oe.__esModule ? Oe : { default: Oe };
|
|
22077
22075
|
}
|
|
@@ -22107,12 +22105,12 @@ var Nc = { exports: {} };
|
|
|
22107
22105
|
"formats/link": F.default,
|
|
22108
22106
|
"formats/script": _.default,
|
|
22109
22107
|
"formats/strike": T.default,
|
|
22110
|
-
"formats/underline":
|
|
22108
|
+
"formats/underline": U.default,
|
|
22111
22109
|
"formats/image": J.default,
|
|
22112
22110
|
"formats/video": W.default,
|
|
22113
22111
|
"formats/list/item": d.ListItem,
|
|
22114
22112
|
"modules/formula": B.default,
|
|
22115
|
-
"modules/syntax":
|
|
22113
|
+
"modules/syntax": H.default,
|
|
22116
22114
|
"modules/toolbar": V.default,
|
|
22117
22115
|
"themes/bubble": de.default,
|
|
22118
22116
|
"themes/snow": be.default,
|
|
@@ -23194,9 +23192,9 @@ var Nc = { exports: {} };
|
|
|
23194
23192
|
function O(F, S) {
|
|
23195
23193
|
x(this, O);
|
|
23196
23194
|
var _ = p(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, F, S));
|
|
23197
|
-
return _.quill.on(c.default.events.EDITOR_CHANGE, function(A, T, N,
|
|
23195
|
+
return _.quill.on(c.default.events.EDITOR_CHANGE, function(A, T, N, U) {
|
|
23198
23196
|
if (A === c.default.events.SELECTION_CHANGE)
|
|
23199
|
-
if (T != null && T.length > 0 &&
|
|
23197
|
+
if (T != null && T.length > 0 && U === c.default.sources.USER) {
|
|
23200
23198
|
_.show(), _.root.style.left = "0px", _.root.style.width = "", _.root.style.width = _.root.offsetWidth + "px";
|
|
23201
23199
|
var j = _.quill.getLines(T.index, T.length);
|
|
23202
23200
|
if (j.length === 1)
|
|
@@ -23405,7 +23403,7 @@ function Pc(e, n) {
|
|
|
23405
23403
|
case Vt:
|
|
23406
23404
|
var u = t - o - r - 1;
|
|
23407
23405
|
if (n) {
|
|
23408
|
-
if (u >= 0 &&
|
|
23406
|
+
if (u >= 0 && Uc(e[u][1])) {
|
|
23409
23407
|
var s = e[u][1].slice(-1);
|
|
23410
23408
|
if (e[u][1] = e[u][1].slice(0, -1), a = s + a, i = s + i, !e[u][1]) {
|
|
23411
23409
|
e.splice(u, 1), t--;
|
|
@@ -23446,7 +23444,7 @@ function $c(e) {
|
|
|
23446
23444
|
function jc(e) {
|
|
23447
23445
|
return $c(e.charCodeAt(0));
|
|
23448
23446
|
}
|
|
23449
|
-
function
|
|
23447
|
+
function Uc(e) {
|
|
23450
23448
|
return qc(e.charCodeAt(e.length - 1));
|
|
23451
23449
|
}
|
|
23452
23450
|
function g6(e) {
|
|
@@ -23455,7 +23453,7 @@ function g6(e) {
|
|
|
23455
23453
|
return n;
|
|
23456
23454
|
}
|
|
23457
23455
|
function Fi(e, n, t, r) {
|
|
23458
|
-
return
|
|
23456
|
+
return Uc(e) || jc(r) ? null : g6([
|
|
23459
23457
|
[Vt, e],
|
|
23460
23458
|
[Dn, n],
|
|
23461
23459
|
[yn, t],
|
|
@@ -23514,9 +23512,9 @@ ga.EQUAL = Vt;
|
|
|
23514
23512
|
var x6 = ga, Yo = { exports: {} };
|
|
23515
23513
|
Yo.exports;
|
|
23516
23514
|
(function(e, n) {
|
|
23517
|
-
var t = 200, r = "__lodash_hash_undefined__", o = 9007199254740991, a = "[object Arguments]", i = "[object Array]", l = "[object Boolean]", u = "[object Date]", s = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", d = "[object Object]", b = "[object Promise]", h = "[object RegExp]", x = "[object Set]", p = "[object String]", v = "[object Symbol]", g = "[object WeakMap]", k = "[object ArrayBuffer]", w = "[object DataView]", E = "[object Float32Array]", O = "[object Float64Array]", F = "[object Int8Array]", S = "[object Int16Array]", _ = "[object Int32Array]", A = "[object Uint8Array]", T = "[object Uint8ClampedArray]", N = "[object Uint16Array]",
|
|
23518
|
-
L[a] = L[i] = L[k] = L[w] = L[l] = L[u] = L[E] = L[O] = L[F] = L[S] = L[_] = L[f] = L[m] = L[d] = L[h] = L[x] = L[p] = L[v] = L[A] = L[T] = L[N] = L[
|
|
23519
|
-
var I = typeof Me == "object" && Me && Me.Object === Object && Me, D = typeof self == "object" && self && self.Object === Object && self, B = I || D || Function("return this")(), P = n && !n.nodeType && n,
|
|
23515
|
+
var t = 200, r = "__lodash_hash_undefined__", o = 9007199254740991, a = "[object Arguments]", i = "[object Array]", l = "[object Boolean]", u = "[object Date]", s = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", d = "[object Object]", b = "[object Promise]", h = "[object RegExp]", x = "[object Set]", p = "[object String]", v = "[object Symbol]", g = "[object WeakMap]", k = "[object ArrayBuffer]", w = "[object DataView]", E = "[object Float32Array]", O = "[object Float64Array]", F = "[object Int8Array]", S = "[object Int16Array]", _ = "[object Int32Array]", A = "[object Uint8Array]", T = "[object Uint8ClampedArray]", N = "[object Uint16Array]", U = "[object Uint32Array]", j = /[\\^$.*+?()[\]{}|]/g, J = /\w*$/, oe = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, L = {};
|
|
23516
|
+
L[a] = L[i] = L[k] = L[w] = L[l] = L[u] = L[E] = L[O] = L[F] = L[S] = L[_] = L[f] = L[m] = L[d] = L[h] = L[x] = L[p] = L[v] = L[A] = L[T] = L[N] = L[U] = !0, L[s] = L[c] = L[g] = !1;
|
|
23517
|
+
var I = typeof Me == "object" && Me && Me.Object === Object && Me, D = typeof self == "object" && self && self.Object === Object && self, B = I || D || Function("return this")(), P = n && !n.nodeType && n, H = P && !0 && e && !e.nodeType && e, $ = H && H.exports === P;
|
|
23520
23518
|
function V(R, K) {
|
|
23521
23519
|
return R.set(K[0], K[1]), R;
|
|
23522
23520
|
}
|
|
@@ -23692,7 +23690,7 @@ Yo.exports;
|
|
|
23692
23690
|
}
|
|
23693
23691
|
Ae.prototype.clear = We, Ae.prototype.delete = ut, Ae.prototype.get = rt, Ae.prototype.has = mt, Ae.prototype.set = Zt;
|
|
23694
23692
|
function an(R, K) {
|
|
23695
|
-
var ae =
|
|
23693
|
+
var ae = Ur(R) || kr(R) ? fe(R.length, String) : [], me = ae.length, Fe = !!me;
|
|
23696
23694
|
for (var De in R)
|
|
23697
23695
|
(K || Ie.call(R, De)) && !(Fe && (De == "length" || Na(De, me))) && ae.push(De);
|
|
23698
23696
|
return ae;
|
|
@@ -23710,18 +23708,18 @@ Yo.exports;
|
|
|
23710
23708
|
function Jt(R, K) {
|
|
23711
23709
|
return R && jr(K, Vr(K), R);
|
|
23712
23710
|
}
|
|
23713
|
-
function Gn(R, K, ae, me, Fe, De,
|
|
23711
|
+
function Gn(R, K, ae, me, Fe, De, Ue) {
|
|
23714
23712
|
var Xe;
|
|
23715
|
-
if (me && (Xe = De ? me(R, Fe, De,
|
|
23713
|
+
if (me && (Xe = De ? me(R, Fe, De, Ue) : me(R)), Xe !== void 0)
|
|
23716
23714
|
return Xe;
|
|
23717
23715
|
if (!In(R))
|
|
23718
23716
|
return R;
|
|
23719
|
-
var st =
|
|
23717
|
+
var st = Ur(R);
|
|
23720
23718
|
if (st) {
|
|
23721
23719
|
if (Xe = Ra(R), !K)
|
|
23722
23720
|
return Ba(R, Xe);
|
|
23723
23721
|
} else {
|
|
23724
|
-
var Ge =
|
|
23722
|
+
var Ge = Hn(R), At = Ge == c || Ge == y;
|
|
23725
23723
|
if (ko(R))
|
|
23726
23724
|
return Cr(R, K);
|
|
23727
23725
|
if (Ge == d || Ge == a || At && !De) {
|
|
@@ -23735,14 +23733,14 @@ Yo.exports;
|
|
|
23735
23733
|
Xe = La(R, Ge, Gn, K);
|
|
23736
23734
|
}
|
|
23737
23735
|
}
|
|
23738
|
-
|
|
23739
|
-
var
|
|
23740
|
-
if (
|
|
23741
|
-
return
|
|
23742
|
-
if (
|
|
23736
|
+
Ue || (Ue = new Ae());
|
|
23737
|
+
var Ut = Ue.get(R);
|
|
23738
|
+
if (Ut)
|
|
23739
|
+
return Ut;
|
|
23740
|
+
if (Ue.set(R, Xe), !st)
|
|
23743
23741
|
var ft = ae ? Fa(R) : Vr(R);
|
|
23744
23742
|
return ee(ft || R, function(wt, _t) {
|
|
23745
|
-
ft && (_t = wt, wt = R[_t]), Kn(Xe, _t, Gn(wt, K, ae, me, _t, R,
|
|
23743
|
+
ft && (_t = wt, wt = R[_t]), Kn(Xe, _t, Gn(wt, K, ae, me, _t, R, Ue));
|
|
23746
23744
|
}), Xe;
|
|
23747
23745
|
}
|
|
23748
23746
|
function Ea(R) {
|
|
@@ -23750,7 +23748,7 @@ Yo.exports;
|
|
|
23750
23748
|
}
|
|
23751
23749
|
function Aa(R, K, ae) {
|
|
23752
23750
|
var me = K(R);
|
|
23753
|
-
return
|
|
23751
|
+
return Ur(R) ? me : Y(me, ae(R));
|
|
23754
23752
|
}
|
|
23755
23753
|
function wa(R) {
|
|
23756
23754
|
return Be.call(R);
|
|
@@ -23758,7 +23756,7 @@ Yo.exports;
|
|
|
23758
23756
|
function Ia(R) {
|
|
23759
23757
|
if (!In(R) || qa(R))
|
|
23760
23758
|
return !1;
|
|
23761
|
-
var K =
|
|
23759
|
+
var K = Hr(R) || Z(R) ? Ke : oe;
|
|
23762
23760
|
return K.test(Bt(R));
|
|
23763
23761
|
}
|
|
23764
23762
|
function Sa(R) {
|
|
@@ -23811,16 +23809,16 @@ Yo.exports;
|
|
|
23811
23809
|
function jr(R, K, ae, me) {
|
|
23812
23810
|
ae || (ae = {});
|
|
23813
23811
|
for (var Fe = -1, De = K.length; ++Fe < De; ) {
|
|
23814
|
-
var
|
|
23815
|
-
Kn(ae,
|
|
23812
|
+
var Ue = K[Fe], Xe = me ? me(ae[Ue], R[Ue], Ue, ae, R) : void 0;
|
|
23813
|
+
Kn(ae, Ue, Xe === void 0 ? R[Ue] : Xe);
|
|
23816
23814
|
}
|
|
23817
23815
|
return ae;
|
|
23818
23816
|
}
|
|
23819
23817
|
function Ma(R, K) {
|
|
23820
|
-
return jr(R,
|
|
23818
|
+
return jr(R, Un(R), K);
|
|
23821
23819
|
}
|
|
23822
23820
|
function Fa(R) {
|
|
23823
|
-
return Aa(R, Vr,
|
|
23821
|
+
return Aa(R, Vr, Un);
|
|
23824
23822
|
}
|
|
23825
23823
|
function ar(R, K) {
|
|
23826
23824
|
var ae = R.__data__;
|
|
@@ -23830,8 +23828,8 @@ Yo.exports;
|
|
|
23830
23828
|
var ae = re(R, K);
|
|
23831
23829
|
return Ia(ae) ? ae : void 0;
|
|
23832
23830
|
}
|
|
23833
|
-
var
|
|
23834
|
-
(rn &&
|
|
23831
|
+
var Un = ht ? X(ht, Object) : ja, Hn = wa;
|
|
23832
|
+
(rn && Hn(new rn(new ArrayBuffer(1))) != w || on && Hn(new on()) != f || pt && Hn(pt.resolve()) != b || qt && Hn(new qt()) != x || Pn && Hn(new Pn()) != g) && (Hn = function(R) {
|
|
23835
23833
|
var K = Be.call(R), ae = K == d ? R.constructor : void 0, me = ae ? Bt(ae) : void 0;
|
|
23836
23834
|
if (me)
|
|
23837
23835
|
switch (me) {
|
|
@@ -23873,7 +23871,7 @@ Yo.exports;
|
|
|
23873
23871
|
case A:
|
|
23874
23872
|
case T:
|
|
23875
23873
|
case N:
|
|
23876
|
-
case
|
|
23874
|
+
case U:
|
|
23877
23875
|
return Da(R, me);
|
|
23878
23876
|
case f:
|
|
23879
23877
|
return go(R, me, ae);
|
|
@@ -23924,15 +23922,15 @@ Yo.exports;
|
|
|
23924
23922
|
function kr(R) {
|
|
23925
23923
|
return $a(R) && Ie.call(R, "callee") && (!Tt.call(R, "callee") || Be.call(R) == a);
|
|
23926
23924
|
}
|
|
23927
|
-
var
|
|
23925
|
+
var Ur = Array.isArray;
|
|
23928
23926
|
function Er(R) {
|
|
23929
|
-
return R != null && Eo(R.length) && !
|
|
23927
|
+
return R != null && Eo(R.length) && !Hr(R);
|
|
23930
23928
|
}
|
|
23931
23929
|
function $a(R) {
|
|
23932
23930
|
return Ao(R) && Er(R);
|
|
23933
23931
|
}
|
|
23934
|
-
var ko = kt ||
|
|
23935
|
-
function
|
|
23932
|
+
var ko = kt || Ua;
|
|
23933
|
+
function Hr(R) {
|
|
23936
23934
|
var K = In(R) ? Be.call(R) : "";
|
|
23937
23935
|
return K == c || K == y;
|
|
23938
23936
|
}
|
|
@@ -23952,16 +23950,16 @@ Yo.exports;
|
|
|
23952
23950
|
function ja() {
|
|
23953
23951
|
return [];
|
|
23954
23952
|
}
|
|
23955
|
-
function
|
|
23953
|
+
function Ua() {
|
|
23956
23954
|
return !1;
|
|
23957
23955
|
}
|
|
23958
23956
|
e.exports = _o;
|
|
23959
23957
|
})(Yo, Yo.exports);
|
|
23960
|
-
var
|
|
23958
|
+
var Hc = Yo.exports, ea = { exports: {} };
|
|
23961
23959
|
ea.exports;
|
|
23962
23960
|
(function(e, n) {
|
|
23963
|
-
var t = 200, r = "__lodash_hash_undefined__", o = 1, a = 2, i = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", y = "[object Date]", f = "[object Error]", m = "[object Function]", d = "[object GeneratorFunction]", b = "[object Map]", h = "[object Number]", x = "[object Null]", p = "[object Object]", v = "[object Promise]", g = "[object Proxy]", k = "[object RegExp]", w = "[object Set]", E = "[object String]", O = "[object Symbol]", F = "[object Undefined]", S = "[object WeakMap]", _ = "[object ArrayBuffer]", A = "[object DataView]", T = "[object Float32Array]", N = "[object Float64Array]",
|
|
23964
|
-
|
|
23961
|
+
var t = 200, r = "__lodash_hash_undefined__", o = 1, a = 2, i = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", y = "[object Date]", f = "[object Error]", m = "[object Function]", d = "[object GeneratorFunction]", b = "[object Map]", h = "[object Number]", x = "[object Null]", p = "[object Object]", v = "[object Promise]", g = "[object Proxy]", k = "[object RegExp]", w = "[object Set]", E = "[object String]", O = "[object Symbol]", F = "[object Undefined]", S = "[object WeakMap]", _ = "[object ArrayBuffer]", A = "[object DataView]", T = "[object Float32Array]", N = "[object Float64Array]", U = "[object Int8Array]", j = "[object Int16Array]", J = "[object Int32Array]", oe = "[object Uint8Array]", W = "[object Uint8ClampedArray]", L = "[object Uint16Array]", I = "[object Uint32Array]", D = /[\\^$.*+?()[\]{}|]/g, B = /^\[object .+?Constructor\]$/, P = /^(?:0|[1-9]\d*)$/, H = {};
|
|
23962
|
+
H[T] = H[N] = H[U] = H[j] = H[J] = H[oe] = H[W] = H[L] = H[I] = !0, H[l] = H[u] = H[_] = H[c] = H[A] = H[y] = H[f] = H[m] = H[b] = H[h] = H[p] = H[k] = H[w] = H[E] = H[S] = !1;
|
|
23965
23963
|
var $ = typeof Me == "object" && Me && Me.Object === Object && Me, V = typeof self == "object" && self && self.Object === Object && self, Q = $ || V || Function("return this")(), ee = n && !n.nodeType && n, Y = ee && !0 && e && !e.nodeType && e, ie = Y && Y.exports === ee, fe = ie && $.process, re = function() {
|
|
23966
23964
|
try {
|
|
23967
23965
|
return fe && fe.binding && fe.binding("util");
|
|
@@ -23970,8 +23968,8 @@ ea.exports;
|
|
|
23970
23968
|
}(), Z = re && re.isTypedArray;
|
|
23971
23969
|
function G(R, K) {
|
|
23972
23970
|
for (var ae = -1, me = R == null ? 0 : R.length, Fe = 0, De = []; ++ae < me; ) {
|
|
23973
|
-
var
|
|
23974
|
-
K(
|
|
23971
|
+
var Ue = R[ae];
|
|
23972
|
+
K(Ue, ae, R) && (De[Fe++] = Ue);
|
|
23975
23973
|
}
|
|
23976
23974
|
return De;
|
|
23977
23975
|
}
|
|
@@ -24024,7 +24022,7 @@ ea.exports;
|
|
|
24024
24022
|
return R ? "Symbol(src)_1." + R : "";
|
|
24025
24023
|
}(), Tt = Qe.toString, kn = RegExp(
|
|
24026
24024
|
"^" + Gt.call($e).replace(D, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
24027
|
-
), ht = ie ? Q.Buffer : void 0, kt = Q.Symbol, En = Q.Uint8Array, rn = Qe.propertyIsEnumerable, on = Be.splice, pt = kt ? kt.toStringTag : void 0, qt = Object.getOwnPropertySymbols, Pn = ht ? ht.isBuffer : void 0, Et = Oe(Object.keys, Object), qn =
|
|
24025
|
+
), ht = ie ? Q.Buffer : void 0, kt = Q.Symbol, En = Q.Uint8Array, rn = Qe.propertyIsEnumerable, on = Be.splice, pt = kt ? kt.toStringTag : void 0, qt = Object.getOwnPropertySymbols, Pn = ht ? ht.isBuffer : void 0, Et = Oe(Object.keys, Object), qn = Un(Q, "DataView"), fn = Un(Q, "Map"), Je = Un(Q, "Promise"), Dt = Un(Q, "Set"), $n = Un(Q, "WeakMap"), Qt = Un(Object, "create"), hn = Bt(qn), $t = Bt(fn), jn = Bt(Je), ct = Bt(Dt), nt = Bt($n), jt = kt ? kt.prototype : void 0, An = jt ? jt.valueOf : void 0;
|
|
24028
24026
|
function lt(R) {
|
|
24029
24027
|
var K = -1, ae = R == null ? 0 : R.length;
|
|
24030
24028
|
for (this.clear(); ++K < ae; ) {
|
|
@@ -24155,9 +24153,9 @@ ea.exports;
|
|
|
24155
24153
|
}
|
|
24156
24154
|
Jt.prototype.clear = Gn, Jt.prototype.delete = Ea, Jt.prototype.get = Aa, Jt.prototype.has = wa, Jt.prototype.set = Ia;
|
|
24157
24155
|
function Sa(R, K) {
|
|
24158
|
-
var ae = kr(R), me = !ae && Co(R), Fe = !ae && !me && Er(R), De = !ae && !me && !Fe && Ao(R),
|
|
24156
|
+
var ae = kr(R), me = !ae && Co(R), Fe = !ae && !me && Er(R), De = !ae && !me && !Fe && Ao(R), Ue = ae || me || Fe || De, Xe = Ue ? te(R.length, String) : [], st = Xe.length;
|
|
24159
24157
|
for (var Ge in R)
|
|
24160
|
-
(K || $e.call(R, Ge)) && !(
|
|
24158
|
+
(K || $e.call(R, Ge)) && !(Ue && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
24161
24159
|
(Ge == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
24162
24160
|
Fe && (Ge == "offset" || Ge == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
24163
24161
|
De && (Ge == "buffer" || Ge == "byteLength" || Ge == "byteOffset") || // Skip index properties.
|
|
@@ -24175,7 +24173,7 @@ ea.exports;
|
|
|
24175
24173
|
return kr(R) ? me : X(me, ae(R));
|
|
24176
24174
|
}
|
|
24177
24175
|
function or(R) {
|
|
24178
|
-
return R == null ? R === void 0 ? F : x : pt && pt in Object(R) ?
|
|
24176
|
+
return R == null ? R === void 0 ? F : x : pt && pt in Object(R) ? Hn(R) : xo(R);
|
|
24179
24177
|
}
|
|
24180
24178
|
function go(R) {
|
|
24181
24179
|
return In(R) && or(R) == l;
|
|
@@ -24184,18 +24182,18 @@ ea.exports;
|
|
|
24184
24182
|
return R === K ? !0 : R == null || K == null || !In(R) && !In(K) ? R !== R && K !== K : Oa(R, K, ae, me, bo, Fe);
|
|
24185
24183
|
}
|
|
24186
24184
|
function Oa(R, K, ae, me, Fe, De) {
|
|
24187
|
-
var
|
|
24185
|
+
var Ue = kr(R), Xe = kr(K), st = Ue ? u : wn(R), Ge = Xe ? u : wn(K);
|
|
24188
24186
|
st = st == l ? p : st, Ge = Ge == l ? p : Ge;
|
|
24189
|
-
var At = st == p,
|
|
24187
|
+
var At = st == p, Ut = Ge == p, ft = st == Ge;
|
|
24190
24188
|
if (ft && Er(R)) {
|
|
24191
24189
|
if (!Er(K))
|
|
24192
24190
|
return !1;
|
|
24193
|
-
|
|
24191
|
+
Ue = !0, At = !1;
|
|
24194
24192
|
}
|
|
24195
24193
|
if (ft && !At)
|
|
24196
|
-
return De || (De = new Jt()),
|
|
24194
|
+
return De || (De = new Jt()), Ue || Ao(R) ? jr(R, K, ae, me, Fe, De) : Ma(R, K, st, ae, me, Fe, De);
|
|
24197
24195
|
if (!(ae & o)) {
|
|
24198
|
-
var wt = At && $e.call(R, "__wrapped__"), _t =
|
|
24196
|
+
var wt = At && $e.call(R, "__wrapped__"), _t = Ut && $e.call(K, "__wrapped__");
|
|
24199
24197
|
if (wt || _t) {
|
|
24200
24198
|
var Qn = wt ? R.value() : R, Vn = _t ? K.value() : K;
|
|
24201
24199
|
return De || (De = new Jt()), Fe(Qn, Vn, ae, me, De);
|
|
@@ -24210,7 +24208,7 @@ ea.exports;
|
|
|
24210
24208
|
return K.test(Bt(R));
|
|
24211
24209
|
}
|
|
24212
24210
|
function Da(R) {
|
|
24213
|
-
return In(R) &&
|
|
24211
|
+
return In(R) && Hr(R.length) && !!H[or(R)];
|
|
24214
24212
|
}
|
|
24215
24213
|
function Ba(R) {
|
|
24216
24214
|
if (!qa(R))
|
|
@@ -24221,21 +24219,21 @@ ea.exports;
|
|
|
24221
24219
|
return K;
|
|
24222
24220
|
}
|
|
24223
24221
|
function jr(R, K, ae, me, Fe, De) {
|
|
24224
|
-
var
|
|
24225
|
-
if (Xe != st && !(
|
|
24222
|
+
var Ue = ae & o, Xe = R.length, st = K.length;
|
|
24223
|
+
if (Xe != st && !(Ue && st > Xe))
|
|
24226
24224
|
return !1;
|
|
24227
24225
|
var Ge = De.get(R);
|
|
24228
24226
|
if (Ge && De.get(K))
|
|
24229
24227
|
return Ge == K;
|
|
24230
|
-
var At = -1,
|
|
24228
|
+
var At = -1, Ut = !0, ft = ae & a ? new an() : void 0;
|
|
24231
24229
|
for (De.set(R, K), De.set(K, R); ++At < Xe; ) {
|
|
24232
24230
|
var wt = R[At], _t = K[At];
|
|
24233
24231
|
if (me)
|
|
24234
|
-
var Qn =
|
|
24232
|
+
var Qn = Ue ? me(_t, wt, At, K, R, De) : me(wt, _t, At, R, K, De);
|
|
24235
24233
|
if (Qn !== void 0) {
|
|
24236
24234
|
if (Qn)
|
|
24237
24235
|
continue;
|
|
24238
|
-
|
|
24236
|
+
Ut = !1;
|
|
24239
24237
|
break;
|
|
24240
24238
|
}
|
|
24241
24239
|
if (ft) {
|
|
@@ -24243,17 +24241,17 @@ ea.exports;
|
|
|
24243
24241
|
if (!ge(ft, ir) && (wt === Vn || Fe(wt, Vn, ae, me, De)))
|
|
24244
24242
|
return ft.push(ir);
|
|
24245
24243
|
})) {
|
|
24246
|
-
|
|
24244
|
+
Ut = !1;
|
|
24247
24245
|
break;
|
|
24248
24246
|
}
|
|
24249
24247
|
} else if (!(wt === _t || Fe(wt, _t, ae, me, De))) {
|
|
24250
|
-
|
|
24248
|
+
Ut = !1;
|
|
24251
24249
|
break;
|
|
24252
24250
|
}
|
|
24253
24251
|
}
|
|
24254
|
-
return De.delete(R), De.delete(K),
|
|
24252
|
+
return De.delete(R), De.delete(K), Ut;
|
|
24255
24253
|
}
|
|
24256
|
-
function Ma(R, K, ae, me, Fe, De,
|
|
24254
|
+
function Ma(R, K, ae, me, Fe, De, Ue) {
|
|
24257
24255
|
switch (ae) {
|
|
24258
24256
|
case A:
|
|
24259
24257
|
if (R.byteLength != K.byteLength || R.byteOffset != K.byteOffset)
|
|
@@ -24276,12 +24274,12 @@ ea.exports;
|
|
|
24276
24274
|
var st = me & o;
|
|
24277
24275
|
if (Xe || (Xe = Ie), R.size != K.size && !st)
|
|
24278
24276
|
return !1;
|
|
24279
|
-
var Ge =
|
|
24277
|
+
var Ge = Ue.get(R);
|
|
24280
24278
|
if (Ge)
|
|
24281
24279
|
return Ge == K;
|
|
24282
|
-
me |= a,
|
|
24283
|
-
var At = jr(Xe(R), Xe(K), me, Fe, De,
|
|
24284
|
-
return
|
|
24280
|
+
me |= a, Ue.set(R, K);
|
|
24281
|
+
var At = jr(Xe(R), Xe(K), me, Fe, De, Ue);
|
|
24282
|
+
return Ue.delete(R), At;
|
|
24285
24283
|
case O:
|
|
24286
24284
|
if (An)
|
|
24287
24285
|
return An.call(R) == An.call(K);
|
|
@@ -24289,12 +24287,12 @@ ea.exports;
|
|
|
24289
24287
|
return !1;
|
|
24290
24288
|
}
|
|
24291
24289
|
function Fa(R, K, ae, me, Fe, De) {
|
|
24292
|
-
var
|
|
24293
|
-
if (st != At && !
|
|
24290
|
+
var Ue = ae & o, Xe = ar(R), st = Xe.length, Ge = ar(K), At = Ge.length;
|
|
24291
|
+
if (st != At && !Ue)
|
|
24294
24292
|
return !1;
|
|
24295
|
-
for (var
|
|
24296
|
-
var ft = Xe[
|
|
24297
|
-
if (!(
|
|
24293
|
+
for (var Ut = st; Ut--; ) {
|
|
24294
|
+
var ft = Xe[Ut];
|
|
24295
|
+
if (!(Ue ? ft in K : $e.call(K, ft)))
|
|
24298
24296
|
return !1;
|
|
24299
24297
|
}
|
|
24300
24298
|
var wt = De.get(R);
|
|
@@ -24302,11 +24300,11 @@ ea.exports;
|
|
|
24302
24300
|
return wt == K;
|
|
24303
24301
|
var _t = !0;
|
|
24304
24302
|
De.set(R, K), De.set(K, R);
|
|
24305
|
-
for (var Qn =
|
|
24306
|
-
ft = Xe[
|
|
24303
|
+
for (var Qn = Ue; ++Ut < st; ) {
|
|
24304
|
+
ft = Xe[Ut];
|
|
24307
24305
|
var Vn = R[ft], ir = K[ft];
|
|
24308
24306
|
if (me)
|
|
24309
|
-
var jl =
|
|
24307
|
+
var jl = Ue ? me(ir, Vn, ft, K, R, De) : me(Vn, ir, ft, R, K, De);
|
|
24310
24308
|
if (!(jl === void 0 ? Vn === ir || Fe(Vn, ir, ae, me, De) : jl)) {
|
|
24311
24309
|
_t = !1;
|
|
24312
24310
|
break;
|
|
@@ -24326,11 +24324,11 @@ ea.exports;
|
|
|
24326
24324
|
var ae = R.__data__;
|
|
24327
24325
|
return Na(K) ? ae[typeof K == "string" ? "string" : "hash"] : ae.map;
|
|
24328
24326
|
}
|
|
24329
|
-
function
|
|
24327
|
+
function Un(R, K) {
|
|
24330
24328
|
var ae = be(R, K);
|
|
24331
24329
|
return Ta(ae) ? ae : void 0;
|
|
24332
24330
|
}
|
|
24333
|
-
function
|
|
24331
|
+
function Hn(R) {
|
|
24334
24332
|
var K = $e.call(R, pt), ae = R[pt];
|
|
24335
24333
|
try {
|
|
24336
24334
|
R[pt] = void 0;
|
|
@@ -24400,10 +24398,10 @@ ea.exports;
|
|
|
24400
24398
|
}()) ? go : function(R) {
|
|
24401
24399
|
return In(R) && $e.call(R, "callee") && !rn.call(R, "callee");
|
|
24402
24400
|
}, kr = Array.isArray;
|
|
24403
|
-
function
|
|
24404
|
-
return R != null &&
|
|
24401
|
+
function Ur(R) {
|
|
24402
|
+
return R != null && Hr(R.length) && !ko(R);
|
|
24405
24403
|
}
|
|
24406
|
-
var Er = Pn ||
|
|
24404
|
+
var Er = Pn || Ua;
|
|
24407
24405
|
function $a(R, K) {
|
|
24408
24406
|
return bo(R, K);
|
|
24409
24407
|
}
|
|
@@ -24413,7 +24411,7 @@ ea.exports;
|
|
|
24413
24411
|
var K = or(R);
|
|
24414
24412
|
return K == m || K == d || K == s || K == g;
|
|
24415
24413
|
}
|
|
24416
|
-
function
|
|
24414
|
+
function Hr(R) {
|
|
24417
24415
|
return typeof R == "number" && R > -1 && R % 1 == 0 && R <= i;
|
|
24418
24416
|
}
|
|
24419
24417
|
function Eo(R) {
|
|
@@ -24425,12 +24423,12 @@ ea.exports;
|
|
|
24425
24423
|
}
|
|
24426
24424
|
var Ao = Z ? de(Z) : Da;
|
|
24427
24425
|
function Vr(R) {
|
|
24428
|
-
return
|
|
24426
|
+
return Ur(R) ? Sa(R) : Ba(R);
|
|
24429
24427
|
}
|
|
24430
24428
|
function ja() {
|
|
24431
24429
|
return [];
|
|
24432
24430
|
}
|
|
24433
|
-
function
|
|
24431
|
+
function Ua() {
|
|
24434
24432
|
return !1;
|
|
24435
24433
|
}
|
|
24436
24434
|
e.exports = $a;
|
|
@@ -24439,7 +24437,7 @@ var Vc = ea.exports, wl = {}, zc = Me && Me.__importDefault || function(e) {
|
|
|
24439
24437
|
return e && e.__esModule ? e : { default: e };
|
|
24440
24438
|
};
|
|
24441
24439
|
Object.defineProperty(wl, "__esModule", { value: !0 });
|
|
24442
|
-
var _6 = zc(
|
|
24440
|
+
var _6 = zc(Hc), C6 = zc(Vc), tl;
|
|
24443
24441
|
(function(e) {
|
|
24444
24442
|
function n(a, i, l) {
|
|
24445
24443
|
a === void 0 && (a = {}), i === void 0 && (i = {}), typeof a != "object" && (a = {}), typeof i != "object" && (i = {});
|
|
@@ -24555,7 +24553,7 @@ function Xc() {
|
|
|
24555
24553
|
}
|
|
24556
24554
|
var fo = Me && Me.__importDefault || function(e) {
|
|
24557
24555
|
return e && e.__esModule ? e : { default: e };
|
|
24558
|
-
}, No = fo(x6), E6 = fo(
|
|
24556
|
+
}, No = fo(x6), E6 = fo(Hc), Ri = fo(Vc), Gr = fo(wl), Ct = fo(Xc()), A6 = "\0", w6 = (
|
|
24559
24557
|
/** @class */
|
|
24560
24558
|
function() {
|
|
24561
24559
|
function e(n) {
|
|
@@ -24872,13 +24870,13 @@ const fs = {
|
|
|
24872
24870
|
}), e.modules) {
|
|
24873
24871
|
const A = (() => {
|
|
24874
24872
|
var T, N;
|
|
24875
|
-
const
|
|
24873
|
+
const U = {};
|
|
24876
24874
|
if (Array.isArray(e.modules))
|
|
24877
24875
|
for (const j of e.modules)
|
|
24878
|
-
|
|
24876
|
+
U[j.name] = (T = j.options) !== null && T !== void 0 ? T : {};
|
|
24879
24877
|
else
|
|
24880
|
-
|
|
24881
|
-
return
|
|
24878
|
+
U[e.modules.name] = (N = e.modules.options) !== null && N !== void 0 ? N : {};
|
|
24879
|
+
return U;
|
|
24882
24880
|
})();
|
|
24883
24881
|
_.modules = Object.assign({}, _.modules, A);
|
|
24884
24882
|
}
|
|
@@ -25052,10 +25050,10 @@ const fs = {
|
|
|
25052
25050
|
}, N6 = { class: "ect-grid ect-grid-cols-1 sm:ect-grid-cols-2 ect-gap-4" }, P6 = {
|
|
25053
25051
|
key: 0,
|
|
25054
25052
|
class: "ect-col-span-2"
|
|
25055
|
-
}, q6 = ["data-test-id"], $6 = ["id", "onUpdate:modelValue", "disabled", "data-test-id"], j6 = ["for", "data-test-id"],
|
|
25053
|
+
}, q6 = ["data-test-id"], $6 = ["id", "onUpdate:modelValue", "disabled", "data-test-id"], j6 = ["for", "data-test-id"], U6 = {
|
|
25056
25054
|
key: 2,
|
|
25057
25055
|
class: "quill-editor-styles"
|
|
25058
|
-
},
|
|
25056
|
+
}, H6 = /* @__PURE__ */ C("div", { class: "dropdowntp" }, null, -1), V6 = /* @__PURE__ */ C("div", { id: "modals" }, null, -1), hs = {
|
|
25059
25057
|
__name: "InputsContainer",
|
|
25060
25058
|
props: {
|
|
25061
25059
|
title: { type: String, default: "" },
|
|
@@ -25150,7 +25148,7 @@ const fs = {
|
|
|
25150
25148
|
class: "ect-text-sm ect-font-medium ect-text-gray-900 ect-cursor-pointer",
|
|
25151
25149
|
"data-test-id": `configurator-inputs-checkbox-label-${c.attRecordId ?? u.index}`
|
|
25152
25150
|
}, he(c.label), 9, j6)
|
|
25153
|
-
], 8, q6)) : c.dataType === "TEXTAREA" ? (M(), q("div",
|
|
25151
|
+
], 8, q6)) : c.dataType === "TEXTAREA" ? (M(), q("div", U6, [
|
|
25154
25152
|
se(F6, {
|
|
25155
25153
|
modelValue: c.value,
|
|
25156
25154
|
"onUpdate:modelValue": (f) => c.value = f,
|
|
@@ -25171,7 +25169,7 @@ const fs = {
|
|
|
25171
25169
|
]))), 128))
|
|
25172
25170
|
])
|
|
25173
25171
|
]),
|
|
25174
|
-
|
|
25172
|
+
H6,
|
|
25175
25173
|
V6
|
|
25176
25174
|
], 64));
|
|
25177
25175
|
}
|
|
@@ -25422,10 +25420,10 @@ const fs = {
|
|
|
25422
25420
|
class: "ect-text-sm ect-font-semibold ect-leading-5 ect-text-neutral-700",
|
|
25423
25421
|
"data-test-id": "conflict-modal-add-header"
|
|
25424
25422
|
}, " This change will add: ")
|
|
25425
|
-
], -1)),
|
|
25423
|
+
], -1)), U3 = {
|
|
25426
25424
|
class: "ect-flex-grow font-regular",
|
|
25427
25425
|
"data-test-id": "conflict-modal-add-product"
|
|
25428
|
-
},
|
|
25426
|
+
}, H3 = {
|
|
25429
25427
|
class: "ect-w-20 ect-text-center font-regular",
|
|
25430
25428
|
"data-test-id": "conflict-modal-add-qty"
|
|
25431
25429
|
}, V3 = {
|
|
@@ -25602,8 +25600,8 @@ const fs = {
|
|
|
25602
25600
|
key: p.itemId,
|
|
25603
25601
|
class: "ect-flex ect-items-center ect-py-2 ect-px-4 ect-border-t ect-border-neutral-200"
|
|
25604
25602
|
}, [
|
|
25605
|
-
C("p",
|
|
25606
|
-
C("p",
|
|
25603
|
+
C("p", U3, he(p.itemName), 1),
|
|
25604
|
+
C("p", H3, he(p.qty), 1),
|
|
25607
25605
|
C("p", V3, " + " + he(ke(It)(p.price)), 1)
|
|
25608
25606
|
]))), 128))
|
|
25609
25607
|
])) : le("", !0),
|
|
@@ -25800,7 +25798,7 @@ const fs = {
|
|
|
25800
25798
|
}, ["stop"])),
|
|
25801
25799
|
onChange: (k) => b(k, g, v.selected, v)
|
|
25802
25800
|
}, null, 40, x4)), [
|
|
25803
|
-
[
|
|
25801
|
+
[U0, v.selected[0]]
|
|
25804
25802
|
]) : en((M(), q("input", {
|
|
25805
25803
|
key: 1,
|
|
25806
25804
|
"onUpdate:modelValue": (k) => v.selected = k,
|
|
@@ -25856,7 +25854,7 @@ const fs = {
|
|
|
25856
25854
|
}, $4 = {
|
|
25857
25855
|
key: 0,
|
|
25858
25856
|
class: "ect-flex ect-items-center ect-bg-light-bg-x ect-px-10 ect-py-3"
|
|
25859
|
-
}, j4 = { class: "ect-flex ect-flex-wrap ect-items-center ect-bg-light-bg-x ect-gap-2" },
|
|
25857
|
+
}, j4 = { class: "ect-flex ect-flex-wrap ect-items-center ect-bg-light-bg-x ect-gap-2" }, U4 = { class: "ect-bg-white ect-px-8 ect-py-4 ect-pr-4 ect-flex ect-justify-end" }, H4 = {
|
|
25860
25858
|
class: "ect-text-sm ect-font-semibold ect-text-ect-gray-800",
|
|
25861
25859
|
"data-test-id": "configurator-summary-total"
|
|
25862
25860
|
}, V4 = {
|
|
@@ -25918,8 +25916,8 @@ const fs = {
|
|
|
25918
25916
|
])) : le("", !0)
|
|
25919
25917
|
], 64))), 128))
|
|
25920
25918
|
]))), 128)),
|
|
25921
|
-
C("div",
|
|
25922
|
-
C("span",
|
|
25919
|
+
C("div", U4, [
|
|
25920
|
+
C("span", H4, " Total : " + he(ke(It)(r.totalPrice())), 1)
|
|
25923
25921
|
])
|
|
25924
25922
|
])
|
|
25925
25923
|
]))), 128))
|
|
@@ -26486,7 +26484,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26486
26484
|
};
|
|
26487
26485
|
}
|
|
26488
26486
|
let fe = await window.AdminConfiguratorManager.getItemConfiguration({ request: JSON.stringify(ie) });
|
|
26489
|
-
return fe != null && fe.errorMessage ? (e.handleError(fe.errorMessage), null) : (fe =
|
|
26487
|
+
return fe != null && fe.errorMessage ? (e.handleError(fe.errorMessage), null) : (fe = Ht(fe.data), typeof fe.data == "string" && (fe = JSON.parse(fe.data)), (Y = fe == null ? void 0 : fe.productItem) != null && Y.categoryOptions && O(fe.productItem.categoryOptions), u.value = fe, y.value = !1, p.value.length === 0 && !r.value && await oe(), fe.data);
|
|
26490
26488
|
} catch (ie) {
|
|
26491
26489
|
return y.value = !1, e.handleError("Failed to fetch item configuration. Please try again.", ie), null;
|
|
26492
26490
|
}
|
|
@@ -26498,7 +26496,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26498
26496
|
filterType: Y
|
|
26499
26497
|
};
|
|
26500
26498
|
let fe = await window.AdminConfiguratorManager.getItemsList({ request: JSON.stringify(ie) });
|
|
26501
|
-
return fe =
|
|
26499
|
+
return fe = Ht(fe), fe != null && fe.errorMessage ? (e.handleError(fe.errorMessage), null) : fe;
|
|
26502
26500
|
} catch {
|
|
26503
26501
|
return e.handleError("Failed to fetch option list. Please try again."), null;
|
|
26504
26502
|
}
|
|
@@ -26510,7 +26508,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26510
26508
|
existingItemType: ee
|
|
26511
26509
|
};
|
|
26512
26510
|
let ie = await window.AdminConfiguratorManager.getItemDetails({ request: JSON.stringify(Y) });
|
|
26513
|
-
return ie =
|
|
26511
|
+
return ie = Ht(ie), ie != null && ie.errorMessage ? (e.handleError(ie.errorMessage), null) : ie;
|
|
26514
26512
|
} catch {
|
|
26515
26513
|
return e.handleError("Failed to fetch option details. Please try again."), null;
|
|
26516
26514
|
}
|
|
@@ -26535,7 +26533,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26535
26533
|
} catch (ee) {
|
|
26536
26534
|
throw e.handleError("Failed to fetch child fields. Please try again.", ee), ee;
|
|
26537
26535
|
}
|
|
26538
|
-
},
|
|
26536
|
+
}, U = async () => {
|
|
26539
26537
|
const Q = { objectApiName: "XX_Base__Item_Type__c", fieldApiName: "XX_Base__Item_Type_Category__c" };
|
|
26540
26538
|
try {
|
|
26541
26539
|
return (await window.AdminConfiguratorManager.getPicklistValues({ request: JSON.stringify(Q) })).data;
|
|
@@ -26550,7 +26548,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26550
26548
|
itemId: h.value
|
|
26551
26549
|
};
|
|
26552
26550
|
let Z = await window.AdminConfiguratorManager.activateItemConfig({ request: JSON.stringify(re) });
|
|
26553
|
-
return Z != null && Z.error ? (D(Z == null ? void 0 : Z.error), null) : (Z =
|
|
26551
|
+
return Z != null && Z.error ? (D(Z == null ? void 0 : Z.error), null) : (Z = Ht(Z.data), x.value = Z, Z);
|
|
26554
26552
|
} catch {
|
|
26555
26553
|
return D(), null;
|
|
26556
26554
|
}
|
|
@@ -26642,7 +26640,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26642
26640
|
getAvailableAttributes: A,
|
|
26643
26641
|
addAttribute: T,
|
|
26644
26642
|
getChildFields: N,
|
|
26645
|
-
getPicklistValues:
|
|
26643
|
+
getPicklistValues: U,
|
|
26646
26644
|
activateItemConfig: j,
|
|
26647
26645
|
getECatalogsForProduct: J,
|
|
26648
26646
|
getversionInfo: oe,
|
|
@@ -26697,7 +26695,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26697
26695
|
canRetry: () => w.value < E,
|
|
26698
26696
|
assignStableIds: O
|
|
26699
26697
|
};
|
|
26700
|
-
}), L9 = { class: "app-filters-main-wrapper" }, N9 = { class: "app-filters-wrapper" }, P9 = { class: "app-filters" }, q9 = { class: "left-section" }, $9 = { class: "ect-flex ect-gap-2 ect-items-center" }, j9 = { class: "ect-absolute ect-top-0 ect-right-0 ect-w-full ect-h-full ect-z-10" },
|
|
26698
|
+
}), L9 = { class: "app-filters-main-wrapper" }, N9 = { class: "app-filters-wrapper" }, P9 = { class: "app-filters" }, q9 = { class: "left-section" }, $9 = { class: "ect-flex ect-gap-2 ect-items-center" }, j9 = { class: "ect-absolute ect-top-0 ect-right-0 ect-w-full ect-h-full ect-z-10" }, U9 = { class: "right-section" }, H9 = { class: "after-search-wrapper" }, V9 = { class: "buttons-wrapper" }, z9 = { class: "before-button-wrapper" }, X9 = {
|
|
26701
26699
|
key: 0,
|
|
26702
26700
|
class: "action-wrapper"
|
|
26703
26701
|
}, K9 = {
|
|
@@ -26752,7 +26750,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26752
26750
|
},
|
|
26753
26751
|
emits: ["search", "back"],
|
|
26754
26752
|
setup(e, { emit: n }) {
|
|
26755
|
-
const t = R9(), r = e, o =
|
|
26753
|
+
const t = R9(), r = e, o = H0([]);
|
|
26756
26754
|
gt(() => {
|
|
26757
26755
|
a();
|
|
26758
26756
|
});
|
|
@@ -26856,7 +26854,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26856
26854
|
Ye(f.$slots, "after-status", {}, void 0, !0)
|
|
26857
26855
|
])
|
|
26858
26856
|
]),
|
|
26859
|
-
C("div",
|
|
26857
|
+
C("div", U9, [
|
|
26860
26858
|
e.showSearch ? (M(), q("div", {
|
|
26861
26859
|
key: 0,
|
|
26862
26860
|
class: "search-wrapper",
|
|
@@ -26873,7 +26871,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26873
26871
|
"data-test-id": "filter-header-search-input"
|
|
26874
26872
|
}, null, 8, ["modelValue", "placeholder"])
|
|
26875
26873
|
], 4)) : le("", !0),
|
|
26876
|
-
C("div",
|
|
26874
|
+
C("div", H9, [
|
|
26877
26875
|
Ye(f.$slots, "afterSearch", {}, void 0, !0)
|
|
26878
26876
|
]),
|
|
26879
26877
|
C("div", V9, [
|
|
@@ -26919,7 +26917,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26919
26917
|
}
|
|
26920
26918
|
}, W9 = /* @__PURE__ */ we(Q9, [["__scopeId", "data-v-2ea70801"]]), Z9 = ["data-test-id"], J9 = ["data-test-id"], Y9 = ["data-test-id"], e8 = ["data-test-id"], t8 = ["data-test-id"], n8 = ["data-test-id"], r8 = ["data-test-id"], o8 = {
|
|
26921
26919
|
__name: "ecSwitch",
|
|
26922
|
-
props: /* @__PURE__ */
|
|
26920
|
+
props: /* @__PURE__ */ Ul({
|
|
26923
26921
|
text: {
|
|
26924
26922
|
type: [String, Object],
|
|
26925
26923
|
required: !1,
|
|
@@ -26953,7 +26951,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26953
26951
|
},
|
|
26954
26952
|
modelModifiers: {}
|
|
26955
26953
|
}),
|
|
26956
|
-
emits: /* @__PURE__ */
|
|
26954
|
+
emits: /* @__PURE__ */ Ul(["update:modelValue"], ["update:modelValue"]),
|
|
26957
26955
|
setup(e, { emit: n }) {
|
|
26958
26956
|
const t = e, r = V0(e, "modelValue"), o = n, a = ce(() => typeof t.text == "string" ? t.text : typeof t.text == "object" && t.text !== null ? r.value ? t.text.on : t.text.off : ""), i = () => {
|
|
26959
26957
|
t.disabled || o("update:modelValue", !r.value);
|
|
@@ -27287,10 +27285,10 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27287
27285
|
class: "empty-state"
|
|
27288
27286
|
}, F8 = /* @__PURE__ */ ho(() => /* @__PURE__ */ C("p", null, "Enter a message below to start a conversation with GPT 5.0", -1)), R8 = [
|
|
27289
27287
|
F8
|
|
27290
|
-
], L8 = { class: "gpt-input-area" }, N8 = { class: "input-wrapper" }, P8 = ["placeholder", "disabled"], q8 = ["disabled"], $8 = { key: 0 }, j8 = { key: 1 },
|
|
27288
|
+
], L8 = { class: "gpt-input-area" }, N8 = { class: "input-wrapper" }, P8 = ["placeholder", "disabled"], q8 = ["disabled"], $8 = { key: 0 }, j8 = { key: 1 }, U8 = {
|
|
27291
27289
|
key: 0,
|
|
27292
27290
|
class: "warning-message"
|
|
27293
|
-
},
|
|
27291
|
+
}, H8 = {
|
|
27294
27292
|
__name: "ExpediteGPT",
|
|
27295
27293
|
props: {
|
|
27296
27294
|
secretKey: {
|
|
@@ -27384,11 +27382,11 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27384
27382
|
i.value ? (M(), q("span", $8, "...")) : (M(), q("span", j8, "Send"))
|
|
27385
27383
|
], 8, q8)
|
|
27386
27384
|
]),
|
|
27387
|
-
r.value ? le("", !0) : (M(), q("div",
|
|
27385
|
+
r.value ? le("", !0) : (M(), q("div", U8, " ⚠️ Secret key is required to use this component. Set it via prop or in the store. "))
|
|
27388
27386
|
])
|
|
27389
27387
|
]));
|
|
27390
27388
|
}
|
|
27391
|
-
}, Gc = /* @__PURE__ */ we(
|
|
27389
|
+
}, Gc = /* @__PURE__ */ we(H8, [["__scopeId", "data-v-46273585"]]), V8 = ["href"], z8 = /* @__PURE__ */ C("link", {
|
|
27392
27390
|
rel: "stylesheet",
|
|
27393
27391
|
href: "https://fonts.googleapis.com/icon?family=Material+Icons",
|
|
27394
27392
|
"data-name": "ec-material-icons"
|
|
@@ -27574,7 +27572,7 @@ const vn = /* @__PURE__ */ we(W8, [["render", J8], ["__scopeId", "data-v-826b27e
|
|
|
27574
27572
|
innerHTML: o.value
|
|
27575
27573
|
}), null, 16, ["type", "disabled", "style", "class", "innerHTML"]));
|
|
27576
27574
|
}
|
|
27577
|
-
},
|
|
27575
|
+
}, He = /* @__PURE__ */ we(Y8, [["__scopeId", "data-v-14a516b4"]]), e7 = {
|
|
27578
27576
|
key: 1,
|
|
27579
27577
|
class: "field-label"
|
|
27580
27578
|
}, t7 = { class: "ect-flex ect-flex-col ect-justify-start" }, n7 = {
|
|
@@ -27655,7 +27653,7 @@ const vn = /* @__PURE__ */ we(W8, [["render", J8], ["__scopeId", "data-v-826b27e
|
|
|
27655
27653
|
return M(), q("div", {
|
|
27656
27654
|
class: _e([e.field, "field ect-gap-1 ect-flex ect-flex-col"])
|
|
27657
27655
|
}, [
|
|
27658
|
-
e.label ? (M(), ve(
|
|
27656
|
+
e.label ? (M(), ve(He, {
|
|
27659
27657
|
key: 0,
|
|
27660
27658
|
tag: (m = e.label.style) == null ? void 0 : m.tag,
|
|
27661
27659
|
text: e.label.value,
|
|
@@ -27666,7 +27664,7 @@ const vn = /* @__PURE__ */ we(W8, [["render", J8], ["__scopeId", "data-v-826b27e
|
|
|
27666
27664
|
])),
|
|
27667
27665
|
C("div", t7, [
|
|
27668
27666
|
r.value && t.offer.offerValue && o.value ? (M(), q("div", n7, [
|
|
27669
|
-
se(
|
|
27667
|
+
se(He, {
|
|
27670
27668
|
tag: a.value,
|
|
27671
27669
|
text: l.value,
|
|
27672
27670
|
style: Ce(e.offer.offerDetails.styles.offerValue.textStyles),
|
|
@@ -27678,7 +27676,7 @@ const vn = /* @__PURE__ */ we(W8, [["render", J8], ["__scopeId", "data-v-826b27e
|
|
|
27678
27676
|
C("div", {
|
|
27679
27677
|
class: _e(u.value)
|
|
27680
27678
|
}, [
|
|
27681
|
-
s.value ? (M(), ve(
|
|
27679
|
+
s.value ? (M(), ve(He, {
|
|
27682
27680
|
key: 0,
|
|
27683
27681
|
tag: (d = e.value.style) == null ? void 0 : d.tag,
|
|
27684
27682
|
text: e.value.value,
|
|
@@ -27694,7 +27692,7 @@ const vn = /* @__PURE__ */ we(W8, [["render", J8], ["__scopeId", "data-v-826b27e
|
|
|
27694
27692
|
class: "field-description ect-left-0 ect-w-max ect-pt-2",
|
|
27695
27693
|
style: Ce({ maxWidth: e.parentWidth ? e.parentWidth + "px" : void 0 })
|
|
27696
27694
|
}, [
|
|
27697
|
-
se(
|
|
27695
|
+
se(He, {
|
|
27698
27696
|
tag: i.value.tag,
|
|
27699
27697
|
text: t.offer.offerValue.offerDescShort,
|
|
27700
27698
|
style: Ce(i.value),
|
|
@@ -27755,14 +27753,14 @@ const vn = /* @__PURE__ */ we(W8, [["render", J8], ["__scopeId", "data-v-826b27e
|
|
|
27755
27753
|
se(vn)
|
|
27756
27754
|
])) : le("", !0)
|
|
27757
27755
|
])) : (M(), q(xe, { key: 0 }, [
|
|
27758
|
-
e.title ? (M(), ve(
|
|
27756
|
+
e.title ? (M(), ve(He, {
|
|
27759
27757
|
key: 0,
|
|
27760
27758
|
class: _e({ "ect-cursor-pointer": e.url }),
|
|
27761
27759
|
text: e.title.value,
|
|
27762
27760
|
style: Ce(e.title.style),
|
|
27763
27761
|
onClick: r
|
|
27764
27762
|
}, null, 8, ["class", "text", "style"])) : le("", !0),
|
|
27765
|
-
e.description ? (M(), ve(
|
|
27763
|
+
e.description ? (M(), ve(He, {
|
|
27766
27764
|
key: 1,
|
|
27767
27765
|
text: e.description.value,
|
|
27768
27766
|
style: Ce(e.description.style)
|
|
@@ -27827,7 +27825,7 @@ const po = /* @__PURE__ */ we(f7, [["render", p7], ["__scopeId", "data-v-83f8c91
|
|
|
27827
27825
|
}, N7 = { class: "skeleton-shipping-full" }, P7 = { class: "skeleton-shipping-half" }, q7 = {
|
|
27828
27826
|
key: 11,
|
|
27829
27827
|
class: "skeleton-terms"
|
|
27830
|
-
}, $7 = { class: "skeleton-terms-half" }, j7 = { class: "skeleton-terms-full" },
|
|
27828
|
+
}, $7 = { class: "skeleton-terms-half" }, j7 = { class: "skeleton-terms-full" }, U7 = { class: "skeleton-terms-full" }, H7 = {
|
|
27831
27829
|
key: 12,
|
|
27832
27830
|
class: ""
|
|
27833
27831
|
}, V7 = { class: "skeleton-terms-half" }, z7 = {
|
|
@@ -27919,10 +27917,10 @@ function em(e, n, t, r, o, a) {
|
|
|
27919
27917
|
C("div", j7, [
|
|
27920
27918
|
se(i)
|
|
27921
27919
|
]),
|
|
27922
|
-
C("div",
|
|
27920
|
+
C("div", U7, [
|
|
27923
27921
|
se(i)
|
|
27924
27922
|
])
|
|
27925
|
-
])) : t.type === "accordian-title" ? (M(), q("div",
|
|
27923
|
+
])) : t.type === "accordian-title" ? (M(), q("div", H7, [
|
|
27926
27924
|
C("div", V7, [
|
|
27927
27925
|
se(i)
|
|
27928
27926
|
])
|
|
@@ -28417,7 +28415,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28417
28415
|
key: 0,
|
|
28418
28416
|
class: _e(`${e.mode}-offer-banner`)
|
|
28419
28417
|
}, [
|
|
28420
|
-
se(
|
|
28418
|
+
se(He, {
|
|
28421
28419
|
tag: e.offerSetting.offerDetails.styles.offerDescription.textStyles.tag,
|
|
28422
28420
|
text: (w = r.offer) == null ? void 0 : w.offerDescShort,
|
|
28423
28421
|
style: Ce(e.offerSetting.offerDetails.styles.offerDescription.textStyles),
|
|
@@ -28632,7 +28630,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28632
28630
|
}, Dm = /* @__PURE__ */ we(Tm, [["__scopeId", "data-v-b679176d"]]), Bm = ["placeholder"], Mm = {
|
|
28633
28631
|
key: 0,
|
|
28634
28632
|
class: "srch-error"
|
|
28635
|
-
}, Fm = { class: "srch-option_lst-main" }, Rm = { class: "italic" }, Lm = { class: "srch-option_lst-sugg" }, Nm = { class: "italic" }, Pm = { class: "srch-option_lst-main" }, qm = { class: "italic" }, $m = { class: "srch-option_lst-sugg" }, jm = { class: "italic" },
|
|
28633
|
+
}, Fm = { class: "srch-option_lst-main" }, Rm = { class: "italic" }, Lm = { class: "srch-option_lst-sugg" }, Nm = { class: "italic" }, Pm = { class: "srch-option_lst-main" }, qm = { class: "italic" }, $m = { class: "srch-option_lst-sugg" }, jm = { class: "italic" }, Um = { class: "srch-option_lst-main" }, Hm = { class: "italic" }, Vm = { class: "srch-option_lst-sugg" }, zm = { class: "italic" }, Xm = {
|
|
28636
28634
|
key: 1,
|
|
28637
28635
|
class: "search1"
|
|
28638
28636
|
}, Km = { class: "search-container_header" }, Gm = { class: "search-container_header_input ectheme-input-box" }, Qm = ["placeholder", "value"], Wm = {
|
|
@@ -28753,9 +28751,9 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28753
28751
|
class: "srch-option_lst",
|
|
28754
28752
|
onClick: h[3] || (h[3] = (x) => y("*" + o.value + "*"))
|
|
28755
28753
|
}, [
|
|
28756
|
-
C("div",
|
|
28754
|
+
C("div", Um, [
|
|
28757
28755
|
Re(" Search for "),
|
|
28758
|
-
C("span",
|
|
28756
|
+
C("span", Hm, "*" + he(o.value) + "*", 1)
|
|
28759
28757
|
]),
|
|
28760
28758
|
C("div", Vm, [
|
|
28761
28759
|
Re(" word that includes "),
|
|
@@ -28861,7 +28859,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28861
28859
|
let b = 200;
|
|
28862
28860
|
const h = z(o.searchText || ""), x = ce(() => o.initialItems || []), p = ce(() => !!(h.value || o.searchText));
|
|
28863
28861
|
function v(I, D, B) {
|
|
28864
|
-
const P = B === "Item",
|
|
28862
|
+
const P = B === "Item", H = [];
|
|
28865
28863
|
return I.forEach(($) => {
|
|
28866
28864
|
var Q, ee;
|
|
28867
28865
|
const V = JSON.parse(JSON.stringify(D));
|
|
@@ -28880,8 +28878,8 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28880
28878
|
}), V.friendlyURL = "/" + (V.friendlyURL || "") + "/" + G) : V.url && (V.friendlyURL = V.url + "/" + (($ == null ? void 0 : $.Id) || "")), V.friendlyURL && (V.friendlyURL = V.friendlyURL.replace(/\/{2,}/g, "/"));
|
|
28881
28879
|
} catch {
|
|
28882
28880
|
}
|
|
28883
|
-
|
|
28884
|
-
}),
|
|
28881
|
+
H.push(V);
|
|
28882
|
+
}), H;
|
|
28885
28883
|
}
|
|
28886
28884
|
const g = z(null), k = z(null), w = ce(() => {
|
|
28887
28885
|
}), E = ce(() => {
|
|
@@ -28901,7 +28899,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28901
28899
|
}), F = ce(() => Number(o.configuration.displaySettings.itemsPerPage || oy)), S = ce(() => Number(o.configuration.displaySettings.lazyLoadBatch)), _ = ce(() => {
|
|
28902
28900
|
var I;
|
|
28903
28901
|
return ((I = o.configuration.productItemOrientation) == null ? void 0 : I.toLowerCase()) || "vertical";
|
|
28904
|
-
}), A = z(r.includes(_.value) ? g.value || _.value : "vertical"), T = ce(() => f.value.length < 1 && !c.value), N = ce(() => `product-${A.value} width-${k.value ? k.value : o.configuration.displaySettings.columns || 1}`),
|
|
28902
|
+
}), A = z(r.includes(_.value) ? g.value || _.value : "vertical"), T = ce(() => f.value.length < 1 && !c.value), N = ce(() => `product-${A.value} width-${k.value ? k.value : o.configuration.displaySettings.columns || 1}`), U = ce(() => o.configuration.displaySettings.enableSearch), j = z(null), J = z(!1), oe = z({});
|
|
28905
28903
|
Ve(u, (I, D) => {
|
|
28906
28904
|
I !== D && (console.log("[fetchProducts] 1"), W(!0));
|
|
28907
28905
|
}), Ve(j, (I) => {
|
|
@@ -28943,8 +28941,8 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28943
28941
|
}).finally(() => {
|
|
28944
28942
|
y.value = !1;
|
|
28945
28943
|
});
|
|
28946
|
-
const
|
|
28947
|
-
|
|
28944
|
+
const H = await l.getProductItems(P, o.fields.productCard, o.catalogType);
|
|
28945
|
+
H && (s.value = H.items.length === B, j.value = H.count, f.value = H.items, m.value = Math.ceil(H.count / F.value)), console.log("[MOLECULEPRODUCTBLOCK:fetchProducts] prodData", H), c.value = !1;
|
|
28948
28946
|
}, b);
|
|
28949
28947
|
async function L() {
|
|
28950
28948
|
const { mainHeading: I, subHeading: D } = o.fields.header;
|
|
@@ -28955,8 +28953,8 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28955
28953
|
...d.value,
|
|
28956
28954
|
accountID: o.accountId,
|
|
28957
28955
|
fields: B
|
|
28958
|
-
},
|
|
28959
|
-
I.isStatic || (I.value =
|
|
28956
|
+
}, H = await l.getEcatalogDetails(P);
|
|
28957
|
+
I.isStatic || (I.value = H[I.field], I.isStatic = !0), D.isStatic || (D.value = H[D.field], D.isStatic = !0);
|
|
28960
28958
|
} else
|
|
28961
28959
|
I.value = I.title, D.value = D.title;
|
|
28962
28960
|
}
|
|
@@ -28968,7 +28966,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28968
28966
|
ref: i,
|
|
28969
28967
|
class: "product"
|
|
28970
28968
|
}, [
|
|
28971
|
-
|
|
28969
|
+
U.value && w.value === void 0 && !e.hideHeader ? (M(), q("div", Ym, [
|
|
28972
28970
|
se(Zm, {
|
|
28973
28971
|
modelValue: h.value,
|
|
28974
28972
|
"onUpdate:modelValue": D[0] || (D[0] = (B) => h.value = B),
|
|
@@ -29078,7 +29076,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
29078
29076
|
let O = c.value.searchText;
|
|
29079
29077
|
return O && !O.endsWith("*") && (O += "*"), O || "";
|
|
29080
29078
|
}), s = ce(() => {
|
|
29081
|
-
var
|
|
29079
|
+
var U;
|
|
29082
29080
|
const O = [], { description: F, thumbnail: S, title: _, attributes: A, actions: T } = t.fields.productCard, N = [F, S, _];
|
|
29083
29081
|
return A.forEach((j) => {
|
|
29084
29082
|
N.push(j.value), N.push(j.label);
|
|
@@ -29086,7 +29084,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
29086
29084
|
j.action === "CUSTOM" && (N.push(j.url), N.push(j.label));
|
|
29087
29085
|
}), N.forEach((j) => {
|
|
29088
29086
|
!j.isStatic && j.field ? O.push(j.field) : j.value = j.title || "-";
|
|
29089
|
-
}), l.value === "eCatalog" ? (O.push("XX_ORD1__Item__r.XX_ORD1__Friendly_URL__c"), O.push("XX_ORD1__Item__r.XX_ORD1__SYS_Requires_Configuration__c")) : (O.push("XX_ORD1__Friendly_URL__c"), O.push("XX_ORD1__SYS_Requires_Configuration__c")), ((
|
|
29087
|
+
}), l.value === "eCatalog" ? (O.push("XX_ORD1__Item__r.XX_ORD1__Friendly_URL__c"), O.push("XX_ORD1__Item__r.XX_ORD1__SYS_Requires_Configuration__c")) : (O.push("XX_ORD1__Friendly_URL__c"), O.push("XX_ORD1__SYS_Requires_Configuration__c")), ((U = t.fields.productCard.friendlyURLFields) == null ? void 0 : U.length) > 0 && O.push(...t.fields.productCard.friendlyURLFields), O;
|
|
29090
29088
|
}), c = z({
|
|
29091
29089
|
blockId: t.id,
|
|
29092
29090
|
catalogType: Gf.get(t.configuration.catalogType) || "Full",
|
|
@@ -29744,7 +29742,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
29744
29742
|
_: 1
|
|
29745
29743
|
}));
|
|
29746
29744
|
}
|
|
29747
|
-
}, jy = /* @__PURE__ */ we($y, [["__scopeId", "data-v-55410518"]]),
|
|
29745
|
+
}, jy = /* @__PURE__ */ we($y, [["__scopeId", "data-v-55410518"]]), Uy = { class: "datatable" }, Hy = { class: "m-show" }, Vy = { key: 0 }, zy = ["onClick"], Xy = { key: 1 }, Ky = ["data-test-id", "onClick"], Gy = { class: "desktop d-show" }, Qy = { class: "datatable-skeletion" }, Wy = { class: "datatable-skeletion" }, Zy = { class: "datatable-skeletion" }, Jy = ["colspan"], Yy = { style: { display: "flex", gap: "1rem", height: "40px" } }, ev = ["onClick"], tv = ["data-test-id", "onClick"], nv = { key: 0 }, rv = ["colspan"], ov = { style: { display: "flex", gap: "1rem", height: "40px" } }, av = { key: 1 }, iv = ["colspan"], lv = { style: { display: "flex", "flex-wrap": "wrap", padding: "1rem" } }, uv = {
|
|
29748
29746
|
key: 0,
|
|
29749
29747
|
class: "attribute",
|
|
29750
29748
|
style: { width: "50%" }
|
|
@@ -29886,8 +29884,8 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
29886
29884
|
onClose: k[0] || (k[0] = (w) => (r.value = null, o.value = null)),
|
|
29887
29885
|
onReload: k[1] || (k[1] = (w) => g.$emit("reload", w))
|
|
29888
29886
|
}, null, 8, ["data", "quote-id"])) : le("", !0),
|
|
29889
|
-
C("div",
|
|
29890
|
-
C("div",
|
|
29887
|
+
C("div", Uy, [
|
|
29888
|
+
C("div", Hy, [
|
|
29891
29889
|
(M(!0), q(xe, null, Se(e.rows, (w) => (M(), q("table", {
|
|
29892
29890
|
key: w.Id,
|
|
29893
29891
|
class: "mobile md:ect-hidden"
|
|
@@ -29898,7 +29896,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
29898
29896
|
C("th", {
|
|
29899
29897
|
style: Ce({ ...d(E.header.style), ...y.value.header })
|
|
29900
29898
|
}, [
|
|
29901
|
-
E.header ? (M(), ve(
|
|
29899
|
+
E.header ? (M(), ve(He, {
|
|
29902
29900
|
key: 0,
|
|
29903
29901
|
text: E.header.title,
|
|
29904
29902
|
style: Ce(E.header.style),
|
|
@@ -29936,13 +29934,13 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
29936
29934
|
E.dataType === "URL" ? (M(), ve(nl, {
|
|
29937
29935
|
key: 0,
|
|
29938
29936
|
src: b(w, E)
|
|
29939
|
-
}, null, 8, ["src"])) : E.content.isStatic ? (M(), ve(
|
|
29937
|
+
}, null, 8, ["src"])) : E.content.isStatic ? (M(), ve(He, {
|
|
29940
29938
|
key: 1,
|
|
29941
29939
|
tag: (F = E.content) == null ? void 0 : F.style.tag,
|
|
29942
29940
|
text: E.content.content,
|
|
29943
29941
|
style: Ce((S = E.content) == null ? void 0 : S.style),
|
|
29944
29942
|
"sec-style": w.XX_ORD1__Parent_QLI__c ? f.value.option : f.value.product
|
|
29945
|
-
}, null, 8, ["tag", "text", "style", "sec-style"])) : (M(), ve(
|
|
29943
|
+
}, null, 8, ["tag", "text", "style", "sec-style"])) : (M(), ve(He, {
|
|
29946
29944
|
key: 2,
|
|
29947
29945
|
loading: e.loading.includes(E.dataType) && (!e.loadingRowId || e.loadingRowId === w.Id),
|
|
29948
29946
|
tag: (_ = E.content) == null ? void 0 : _.style.tag,
|
|
@@ -29994,7 +29992,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
29994
29992
|
key: w.key,
|
|
29995
29993
|
style: Ce(d((E = w.header) == null ? void 0 : E.style, w.style))
|
|
29996
29994
|
}, [
|
|
29997
|
-
w.header ? (M(), ve(
|
|
29995
|
+
w.header ? (M(), ve(He, {
|
|
29998
29996
|
key: 0,
|
|
29999
29997
|
text: w.header.title,
|
|
30000
29998
|
style: Ce(w.header.style),
|
|
@@ -30089,13 +30087,13 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30089
30087
|
E.dataType === "URL" ? (M(), ve(nl, {
|
|
30090
30088
|
key: 0,
|
|
30091
30089
|
src: b(w, E)
|
|
30092
|
-
}, null, 8, ["src"])) : E.content.isStatic ? (M(), ve(
|
|
30090
|
+
}, null, 8, ["src"])) : E.content.isStatic ? (M(), ve(He, {
|
|
30093
30091
|
key: 1,
|
|
30094
30092
|
tag: (F = E.content) == null ? void 0 : F.style.tag,
|
|
30095
30093
|
text: E.content.content,
|
|
30096
30094
|
style: Ce((S = E.content) == null ? void 0 : S.style),
|
|
30097
30095
|
"sec-style": w.XX_ORD1__Parent_QLI__c ? f.value.option : f.value.product
|
|
30098
|
-
}, null, 8, ["tag", "text", "style", "sec-style"])) : (M(), ve(
|
|
30096
|
+
}, null, 8, ["tag", "text", "style", "sec-style"])) : (M(), ve(He, {
|
|
30099
30097
|
key: 2,
|
|
30100
30098
|
loading: e.loading.includes(E.dataType) && (!e.loadingRowId || e.loadingRowId === w.Id),
|
|
30101
30099
|
tag: (_ = E.content) == null ? void 0 : _.style.tag,
|
|
@@ -30150,16 +30148,16 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30150
30148
|
E.value && (E.existingValue || E.existingValueReferenceName) ? (M(), q("div", uv, [
|
|
30151
30149
|
C("b", null, he(E.label) + ":", 1),
|
|
30152
30150
|
E.value !== E.existingValue && E.value !== E.existingValueReferenceName ? (M(), q("div", sv, [
|
|
30153
|
-
se(
|
|
30151
|
+
se(He, {
|
|
30154
30152
|
text: E.value,
|
|
30155
30153
|
style: Ce(e.attribute.new.style)
|
|
30156
30154
|
}, null, 8, ["text", "style"]),
|
|
30157
|
-
se(
|
|
30155
|
+
se(He, {
|
|
30158
30156
|
text: E.existingValueReferenceName || E.existingValue,
|
|
30159
30157
|
style: Ce(e.attribute.old.style)
|
|
30160
30158
|
}, null, 8, ["text", "style"])
|
|
30161
30159
|
])) : (M(), q("div", cv, [
|
|
30162
|
-
se(
|
|
30160
|
+
se(He, {
|
|
30163
30161
|
text: E.value,
|
|
30164
30162
|
style: Ce(e.attribute.regular.style)
|
|
30165
30163
|
}, null, 8, ["text", "style"])
|
|
@@ -30175,7 +30173,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30175
30173
|
])) : E.value ? (M(), q("div", dv, [
|
|
30176
30174
|
C("b", null, he(E.label) + ":", 1),
|
|
30177
30175
|
E.value ? (M(), q("div", fv, [
|
|
30178
|
-
se(
|
|
30176
|
+
se(He, {
|
|
30179
30177
|
text: E.value,
|
|
30180
30178
|
style: Ce(e.attribute.new.style)
|
|
30181
30179
|
}, null, 8, ["text", "style"])
|
|
@@ -30191,12 +30189,12 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30191
30189
|
])) : e.attribute.displayonlychanged ? le("", !0) : (M(), q("div", hv, [
|
|
30192
30190
|
C("b", null, he(E.label) + ":", 1),
|
|
30193
30191
|
E.value ? (M(), q("div", pv, [
|
|
30194
|
-
se(
|
|
30192
|
+
se(He, {
|
|
30195
30193
|
text: E.value,
|
|
30196
30194
|
style: Ce(e.attribute.new.style)
|
|
30197
30195
|
}, null, 8, ["text", "style"])
|
|
30198
30196
|
])) : E.existingValue ? (M(), q("div", mv, [
|
|
30199
|
-
se(
|
|
30197
|
+
se(He, {
|
|
30200
30198
|
text: E.existingValueReferenceName || E.existingValue,
|
|
30201
30199
|
style: Ce(e.attribute.regular.style)
|
|
30202
30200
|
}, null, 8, ["text", "style"])
|
|
@@ -30288,10 +30286,10 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30288
30286
|
const D = f.value.groupfooter.style;
|
|
30289
30287
|
return D ? T(D) : {};
|
|
30290
30288
|
}), b = ce(() => {
|
|
30291
|
-
const D = {}, { border: B, color: P, width:
|
|
30292
|
-
return B === "default" && (D.borderStyle = "solid", D.borderColor = P, D.borderWidth =
|
|
30289
|
+
const D = {}, { border: B, color: P, width: H } = l.value.table;
|
|
30290
|
+
return B === "default" && (D.borderStyle = "solid", D.borderColor = P, D.borderWidth = H, D.borderTopWidth = 0), D;
|
|
30293
30291
|
}), h = ce(() => O.value ? !1 : !_.value || _.value.length === 0 ? !0 : _.value.every((D) => {
|
|
30294
|
-
const B = D.rows && D.rows.length > 0, P = D.options && D.options.some((
|
|
30292
|
+
const B = D.rows && D.rows.length > 0, P = D.options && D.options.some((H) => H.rows && H.rows.length > 0);
|
|
30295
30293
|
return !B && !P;
|
|
30296
30294
|
}));
|
|
30297
30295
|
Fr();
|
|
@@ -30314,9 +30312,9 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30314
30312
|
], v = z(null), g = z([]), k = z([]), w = z([]), E = z(!1), O = z(!1), F = z(/* @__PURE__ */ new Set()), S = z([]), _ = z([]), A = /* @__PURE__ */ new Map();
|
|
30315
30313
|
function T(D) {
|
|
30316
30314
|
let B = { padding: "1.25rem 2rem" };
|
|
30317
|
-
const { overrite: P, backgroundColor:
|
|
30315
|
+
const { overrite: P, backgroundColor: H, verticalAlignment: $, padding: V } = D;
|
|
30318
30316
|
return P && (B = {
|
|
30319
|
-
backgroundColor:
|
|
30317
|
+
backgroundColor: H,
|
|
30320
30318
|
verticalAlign: $,
|
|
30321
30319
|
padding: V || "1.25rem 2rem"
|
|
30322
30320
|
}), B;
|
|
@@ -30328,13 +30326,13 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30328
30326
|
fieldName: $,
|
|
30329
30327
|
fieldValue: D[$]
|
|
30330
30328
|
});
|
|
30331
|
-
const
|
|
30329
|
+
const H = {
|
|
30332
30330
|
fields: P,
|
|
30333
30331
|
objectType: o.configuration.objectType
|
|
30334
30332
|
};
|
|
30335
|
-
await t.updateRecord(
|
|
30333
|
+
await t.updateRecord(H), B(), D.XX_ORD1__QTY__c !== void 0 && (v.value = D.Id, await oe("FIELD_RELOAD"), v.value = null);
|
|
30336
30334
|
};
|
|
30337
|
-
async function
|
|
30335
|
+
async function U(D) {
|
|
30338
30336
|
v.value = D, await oe("RELOAD_ALL_FIELDS"), v.value = null;
|
|
30339
30337
|
}
|
|
30340
30338
|
const j = (D) => {
|
|
@@ -30351,13 +30349,13 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30351
30349
|
};
|
|
30352
30350
|
async function oe(D) {
|
|
30353
30351
|
D === "RELOAD" ? O.value = !0 : D === "FIELD_RELOAD" ? w.value = x : D === "RELOAD_ALL_FIELDS" && (w.value = p);
|
|
30354
|
-
const { groupby: B, grouplevel: P } = o.configuration.group,
|
|
30352
|
+
const { groupby: B, grouplevel: P } = o.configuration.group, H = t.quoteId, $ = o.footer.map((Y) => ({ field: Y.field, snippet: Y.function || "SUM" })), V = {
|
|
30355
30353
|
filterObject: o.configuration.objectType,
|
|
30356
30354
|
fieldsToDisplay: [...k.value, "XX_ORD1__Item__r.XX_ORD1__SYS_Requires_Configuration__c", "XX_ORD1__Parent_QLI__c"],
|
|
30357
30355
|
aggregateFields: $,
|
|
30358
30356
|
filters: o.configuration.filters,
|
|
30359
30357
|
parentObjectField: o.configuration.parentObjectField,
|
|
30360
|
-
objectId:
|
|
30358
|
+
objectId: H,
|
|
30361
30359
|
groupby: B.field,
|
|
30362
30360
|
grouplevel: P,
|
|
30363
30361
|
// other option value is option,
|
|
@@ -30371,14 +30369,14 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30371
30369
|
}
|
|
30372
30370
|
async function W() {
|
|
30373
30371
|
const D = v.value, B = [];
|
|
30374
|
-
_.value.forEach((
|
|
30375
|
-
|
|
30372
|
+
_.value.forEach((H) => {
|
|
30373
|
+
H.rows.forEach(($) => {
|
|
30376
30374
|
$.attributes = A.get($.Id), console.log("row.attributes", $.attributes), D ? $.Attributes = A.get($.Id) : $.attributesLoading = !0, B.push($.Id);
|
|
30377
30375
|
});
|
|
30378
30376
|
});
|
|
30379
30377
|
const P = await t.getLineItemAttributesNG(B);
|
|
30380
|
-
_.value.forEach((
|
|
30381
|
-
|
|
30378
|
+
_.value.forEach((H) => {
|
|
30379
|
+
H.rows.forEach(($) => {
|
|
30382
30380
|
const V = P[$.Id];
|
|
30383
30381
|
if (V == null ? void 0 : V.some(
|
|
30384
30382
|
(ee) => ee.value && !c.value.displayonlychanged || ee.value && ee.existingValue && c.value.displayonlychanged
|
|
@@ -30394,8 +30392,8 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30394
30392
|
}
|
|
30395
30393
|
function L(D) {
|
|
30396
30394
|
var $;
|
|
30397
|
-
const B = D.lstRecords, P = [],
|
|
30398
|
-
if (a("counts",
|
|
30395
|
+
const B = D.lstRecords, P = [], H = D.lstRecords && (($ = D.lstRecords) == null ? void 0 : $.length) > 0;
|
|
30396
|
+
if (a("counts", H), D.lstAggregateField && D.lstAggregateField.length > 0) {
|
|
30399
30397
|
const V = /* @__PURE__ */ new Map();
|
|
30400
30398
|
D.lstAggregateField.forEach((Q) => {
|
|
30401
30399
|
V.set(Q.fieldName, Q.totalValue);
|
|
@@ -30407,7 +30405,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30407
30405
|
}
|
|
30408
30406
|
function I(D, B) {
|
|
30409
30407
|
const P = [];
|
|
30410
|
-
let
|
|
30408
|
+
let H;
|
|
30411
30409
|
D.forEach(($) => {
|
|
30412
30410
|
var V;
|
|
30413
30411
|
if (B === "option") {
|
|
@@ -30424,20 +30422,20 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30424
30422
|
}), P.push(Q);
|
|
30425
30423
|
}
|
|
30426
30424
|
} else {
|
|
30427
|
-
if (
|
|
30428
|
-
|
|
30425
|
+
if (H = { name: $.groupName, rows: [] }, $.productRows.forEach((Q) => {
|
|
30426
|
+
H.rows.push(Q[B].thisobject), Q.options.forEach((ee) => {
|
|
30429
30427
|
const Y = { ...ee.thisobject };
|
|
30430
|
-
Y.isOption = !0,
|
|
30428
|
+
Y.isOption = !0, H.rows.push(Y);
|
|
30431
30429
|
});
|
|
30432
30430
|
}), f.value.displaygroupfooter) {
|
|
30433
30431
|
const Q = [];
|
|
30434
30432
|
$.groupTotals && $.groupTotals.length > 0 && $.groupTotals.forEach((ee) => {
|
|
30435
30433
|
var Y, ie;
|
|
30436
|
-
Q.push({ label:
|
|
30437
|
-
}),
|
|
30434
|
+
Q.push({ label: H.name, value: ee.amount, style: ((ie = (Y = f.value) == null ? void 0 : Y.groupfooter) == null ? void 0 : ie.style) || {} });
|
|
30435
|
+
}), H.summary = Q;
|
|
30438
30436
|
} else
|
|
30439
|
-
|
|
30440
|
-
P.push(
|
|
30437
|
+
H.summary = [];
|
|
30438
|
+
P.push(H);
|
|
30441
30439
|
}
|
|
30442
30440
|
}), _.value = P;
|
|
30443
30441
|
}
|
|
@@ -30449,7 +30447,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30449
30447
|
var P;
|
|
30450
30448
|
return h.value ? le("", !0) : (M(), q("div", vv, [
|
|
30451
30449
|
C("div", gv, [
|
|
30452
|
-
e.header.title ? (M(), ve(
|
|
30450
|
+
e.header.title ? (M(), ve(He, {
|
|
30453
30451
|
key: 0,
|
|
30454
30452
|
tag: (P = e.header.style) == null ? void 0 : P.tag,
|
|
30455
30453
|
text: e.header.title,
|
|
@@ -30472,7 +30470,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30472
30470
|
onDelete: J,
|
|
30473
30471
|
onConfigure: j,
|
|
30474
30472
|
onUpdate: N,
|
|
30475
|
-
onReload: B[0] || (B[0] = (
|
|
30473
|
+
onReload: B[0] || (B[0] = (H) => U(H))
|
|
30476
30474
|
}, null, 8, ["cols", "style", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"])
|
|
30477
30475
|
])) : le("", !0),
|
|
30478
30476
|
O.value ? (M(), q("div", {
|
|
@@ -30496,31 +30494,31 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30496
30494
|
onDelete: J,
|
|
30497
30495
|
onConfigure: j,
|
|
30498
30496
|
onUpdate: N,
|
|
30499
|
-
onReload: B[1] || (B[1] = (
|
|
30497
|
+
onReload: B[1] || (B[1] = (H) => U(H))
|
|
30500
30498
|
}, null, 8, ["cols", "style", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"])
|
|
30501
30499
|
], 4)) : le("", !0),
|
|
30502
30500
|
O.value ? le("", !0) : (M(), q("div", {
|
|
30503
30501
|
key: 2,
|
|
30504
30502
|
style: Ce(b.value)
|
|
30505
30503
|
}, [
|
|
30506
|
-
(M(!0), q(xe, null, Se(_.value, (
|
|
30507
|
-
key:
|
|
30508
|
-
class: _e(["productlist",
|
|
30504
|
+
(M(!0), q(xe, null, Se(_.value, (H) => (M(), q("div", {
|
|
30505
|
+
key: H.name,
|
|
30506
|
+
class: _e(["productlist", H.isProduct ? "prodlist-product" : "prodlist-option"])
|
|
30509
30507
|
}, [
|
|
30510
|
-
f.value.displaygroupheader &&
|
|
30508
|
+
f.value.displaygroupheader && H.name ? (M(), q("div", {
|
|
30511
30509
|
key: 0,
|
|
30512
30510
|
class: "groupHeader",
|
|
30513
30511
|
style: Ce(m.value)
|
|
30514
30512
|
}, [
|
|
30515
|
-
se(
|
|
30516
|
-
text: "Group: " +
|
|
30513
|
+
se(He, {
|
|
30514
|
+
text: "Group: " + H.name,
|
|
30517
30515
|
style: Ce(f.value.groupheader.style)
|
|
30518
30516
|
}, null, 8, ["text", "style"])
|
|
30519
30517
|
], 4)) : le("", !0),
|
|
30520
30518
|
se(Po, {
|
|
30521
30519
|
hidecolumn: !f.value.repeatcolumheadings,
|
|
30522
30520
|
cols: S.value,
|
|
30523
|
-
rows:
|
|
30521
|
+
rows: H.rows,
|
|
30524
30522
|
style: Ce(l.value),
|
|
30525
30523
|
"row-loading": O.value,
|
|
30526
30524
|
loading: w.value,
|
|
@@ -30533,23 +30531,23 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30533
30531
|
onDelete: J,
|
|
30534
30532
|
onConfigure: j,
|
|
30535
30533
|
onUpdate: N,
|
|
30536
|
-
onReload: B[2] || (B[2] = ($) =>
|
|
30534
|
+
onReload: B[2] || (B[2] = ($) => U($))
|
|
30537
30535
|
}, null, 8, ["hidecolumn", "cols", "rows", "style", "row-loading", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"]),
|
|
30538
|
-
|
|
30539
|
-
(M(!0), q(xe, null, Se(
|
|
30536
|
+
H.summary.length > 0 ? (M(), q("div", xv, [
|
|
30537
|
+
(M(!0), q(xe, null, Se(H.summary, ($, V) => {
|
|
30540
30538
|
var Q, ee, Y;
|
|
30541
30539
|
return M(), q("div", {
|
|
30542
30540
|
key: V,
|
|
30543
30541
|
class: "summary_row",
|
|
30544
30542
|
style: Ce(d.value)
|
|
30545
30543
|
}, [
|
|
30546
|
-
se(
|
|
30544
|
+
se(He, {
|
|
30547
30545
|
tag: (Q = $ == null ? void 0 : $.style) == null ? void 0 : Q.tag,
|
|
30548
30546
|
text: $.label + " : ",
|
|
30549
30547
|
style: Ce($ == null ? void 0 : $.style)
|
|
30550
30548
|
}, null, 8, ["tag", "text", "style"]),
|
|
30551
30549
|
Re(" "),
|
|
30552
|
-
se(
|
|
30550
|
+
se(He, {
|
|
30553
30551
|
loading: ((ee = w.value) == null ? void 0 : ee.length) > 0 || O.value,
|
|
30554
30552
|
tag: (Y = $ == null ? void 0 : $.style) == null ? void 0 : Y.tag,
|
|
30555
30553
|
text: $.value,
|
|
@@ -30558,7 +30556,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30558
30556
|
], 4);
|
|
30559
30557
|
}), 128))
|
|
30560
30558
|
])) : le("", !0),
|
|
30561
|
-
|
|
30559
|
+
H.options ? (M(!0), q(xe, { key: 2 }, Se(H.options, ($) => (M(), q("div", {
|
|
30562
30560
|
key: $.name
|
|
30563
30561
|
}, [
|
|
30564
30562
|
f.value.displaygroupheader && $.name ? (M(), q("div", {
|
|
@@ -30566,7 +30564,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30566
30564
|
class: "groupHeader",
|
|
30567
30565
|
style: Ce(m.value)
|
|
30568
30566
|
}, [
|
|
30569
|
-
se(
|
|
30567
|
+
se(He, {
|
|
30570
30568
|
text: "Group: " + $.name,
|
|
30571
30569
|
style: Ce(f.value.groupheader.style)
|
|
30572
30570
|
}, null, 8, ["text", "style"])
|
|
@@ -30588,7 +30586,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30588
30586
|
onDelete: J,
|
|
30589
30587
|
onConfigure: j,
|
|
30590
30588
|
onUpdate: N,
|
|
30591
|
-
onReload: B[3] || (B[3] = (V) =>
|
|
30589
|
+
onReload: B[3] || (B[3] = (V) => U(V))
|
|
30592
30590
|
}, null, 8, ["hidecolumn", "cols", "rows", "style", "row-loading", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"]),
|
|
30593
30591
|
$.summary.length > 0 ? (M(), q("div", _v, [
|
|
30594
30592
|
(M(!0), q(xe, null, Se($.summary, (V, Q) => {
|
|
@@ -30598,13 +30596,13 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30598
30596
|
class: "summary_row",
|
|
30599
30597
|
style: Ce(d.value)
|
|
30600
30598
|
}, [
|
|
30601
|
-
se(
|
|
30599
|
+
se(He, {
|
|
30602
30600
|
tag: (ee = V == null ? void 0 : V.style) == null ? void 0 : ee.tag,
|
|
30603
30601
|
text: V.label + " : ",
|
|
30604
30602
|
style: Ce(V == null ? void 0 : V.style)
|
|
30605
30603
|
}, null, 8, ["tag", "text", "style"]),
|
|
30606
30604
|
Re(" "),
|
|
30607
|
-
se(
|
|
30605
|
+
se(He, {
|
|
30608
30606
|
loading: ((Y = w.value) == null ? void 0 : Y.length) > 0 || O.value,
|
|
30609
30607
|
tag: (ie = V == null ? void 0 : V.style) == null ? void 0 : ie.tag,
|
|
30610
30608
|
text: V.value,
|
|
@@ -30671,7 +30669,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30671
30669
|
class: _e(["detail-section_header ect-border-solid ect-border-border-db", { "ect-border-b-1": t.expand, "ect-border-b-0": !t.expand }]),
|
|
30672
30670
|
onClick: o[0] || (o[0] = (l) => !t.disabled && r.$emit("expand", !t.expand))
|
|
30673
30671
|
}, [
|
|
30674
|
-
t.title ? (M(), ve(
|
|
30672
|
+
t.title ? (M(), ve(He, {
|
|
30675
30673
|
key: 0,
|
|
30676
30674
|
tag: (a = t.style) == null ? void 0 : a.tag,
|
|
30677
30675
|
text: t.title,
|
|
@@ -30686,7 +30684,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30686
30684
|
C("span", wv, he(t.expand ? "expand_more" : "expand_less"), 1)
|
|
30687
30685
|
])
|
|
30688
30686
|
], 2)) : (M(), q("div", Iv, [
|
|
30689
|
-
e.title ? (M(), ve(
|
|
30687
|
+
e.title ? (M(), ve(He, {
|
|
30690
30688
|
key: 0,
|
|
30691
30689
|
tag: (i = e.style) == null ? void 0 : i.tag,
|
|
30692
30690
|
text: e.title,
|
|
@@ -30809,13 +30807,13 @@ const Fv = { class: "quote-summary" }, Rv = {
|
|
|
30809
30807
|
key: p.field,
|
|
30810
30808
|
class: "summary-item"
|
|
30811
30809
|
}, [
|
|
30812
|
-
p.label ? (M(), ve(
|
|
30810
|
+
p.label ? (M(), ve(He, {
|
|
30813
30811
|
key: 0,
|
|
30814
30812
|
tag: (v = p.style) == null ? void 0 : v.tag,
|
|
30815
30813
|
text: p.label,
|
|
30816
30814
|
style: Ce(p.style)
|
|
30817
30815
|
}, null, 8, ["tag", "text", "style"])) : le("", !0),
|
|
30818
|
-
(g = f.value[p.field]) != null && g.value ? (M(), ve(
|
|
30816
|
+
(g = f.value[p.field]) != null && g.value ? (M(), ve(He, {
|
|
30819
30817
|
key: 1,
|
|
30820
30818
|
loading: s.value,
|
|
30821
30819
|
tag: (k = p.style) == null ? void 0 : k.tag,
|
|
@@ -30830,13 +30828,13 @@ const Fv = { class: "quote-summary" }, Rv = {
|
|
|
30830
30828
|
key: p.field,
|
|
30831
30829
|
class: "summary-total"
|
|
30832
30830
|
}, [
|
|
30833
|
-
p.label ? (M(), ve(
|
|
30831
|
+
p.label ? (M(), ve(He, {
|
|
30834
30832
|
key: 0,
|
|
30835
30833
|
tag: (v = p.style) == null ? void 0 : v.tag,
|
|
30836
30834
|
text: p.label,
|
|
30837
30835
|
style: Ce(p.style)
|
|
30838
30836
|
}, null, 8, ["tag", "text", "style"])) : le("", !0),
|
|
30839
|
-
(g = f.value[p.field]) != null && g.value ? (M(), ve(
|
|
30837
|
+
(g = f.value[p.field]) != null && g.value ? (M(), ve(He, {
|
|
30840
30838
|
key: 1,
|
|
30841
30839
|
loading: s.value,
|
|
30842
30840
|
tag: (k = p.style) == null ? void 0 : k.tag,
|
|
@@ -30920,8 +30918,8 @@ const Fv = { class: "quote-summary" }, Rv = {
|
|
|
30920
30918
|
}, jv = {
|
|
30921
30919
|
key: 0,
|
|
30922
30920
|
class: "ect-flex ect-justify-center"
|
|
30923
|
-
},
|
|
30924
|
-
function
|
|
30921
|
+
}, Uv = { key: 1 };
|
|
30922
|
+
function Hv(e, n, t, r, o, a) {
|
|
30925
30923
|
const i = un("AtomSpinner");
|
|
30926
30924
|
return M(), ve(io(t.tag), aa(e.$attrs, {
|
|
30927
30925
|
type: t.method,
|
|
@@ -30933,13 +30931,13 @@ function Uv(e, n, t, r, o, a) {
|
|
|
30933
30931
|
Ye(e.$slots, "default", {}, () => [
|
|
30934
30932
|
t.showspinner ? (M(), q("div", jv, [
|
|
30935
30933
|
se(i, { class: "item-button_spinner" })
|
|
30936
|
-
])) : (M(), q("div",
|
|
30934
|
+
])) : (M(), q("div", Uv, he(t.text), 1))
|
|
30937
30935
|
], !0)
|
|
30938
30936
|
]),
|
|
30939
30937
|
_: 3
|
|
30940
30938
|
}, 16, ["type", "class", "style"]);
|
|
30941
30939
|
}
|
|
30942
|
-
const rl = /* @__PURE__ */ we($v, [["render",
|
|
30940
|
+
const rl = /* @__PURE__ */ we($v, [["render", Hv], ["__scopeId", "data-v-7428ebd4"]]), Vv = { class: "promocode-input" }, zv = { class: "m-1" }, Xv = {
|
|
30943
30941
|
__name: "OrganismsPromoCodeBlock",
|
|
30944
30942
|
props: {
|
|
30945
30943
|
fields: {
|
|
@@ -30996,7 +30994,7 @@ const rl = /* @__PURE__ */ we($v, [["render", Uv], ["__scopeId", "data-v-7428ebd
|
|
|
30996
30994
|
ref: s,
|
|
30997
30995
|
class: "promocode"
|
|
30998
30996
|
}, [
|
|
30999
|
-
(h = r.value) != null && h.title ? (M(), ve(
|
|
30997
|
+
(h = r.value) != null && h.title ? (M(), ve(He, {
|
|
31000
30998
|
key: 0,
|
|
31001
30999
|
text: (x = r.value) == null ? void 0 : x.title,
|
|
31002
31000
|
style: Ce((p = r.value) == null ? void 0 : p.style)
|
|
@@ -31392,16 +31390,16 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31392
31390
|
else
|
|
31393
31391
|
d.value = !0, x.value = null, r("update:modelValue", "");
|
|
31394
31392
|
});
|
|
31395
|
-
const T = z(null), N = z(null),
|
|
31393
|
+
const T = z(null), N = z(null), U = z(null);
|
|
31396
31394
|
gt(() => {
|
|
31397
31395
|
re(), m.value = t.max ? new Date(t.max) : m.value, f.value = t.min ? new Date(t.min) : f.value, t.modelValue && (h.value = a(t.modelValue), d.value = !!h.value), v.value = t.modelValue, window.addEventListener("resize", j), window.addEventListener("scroll", j, !0);
|
|
31398
31396
|
}), hr(() => {
|
|
31399
31397
|
window.removeEventListener("resize", j), window.removeEventListener("scroll", j, !0);
|
|
31400
31398
|
});
|
|
31401
31399
|
const j = () => {
|
|
31402
|
-
if (!
|
|
31400
|
+
if (!U.value)
|
|
31403
31401
|
return;
|
|
31404
|
-
const Z =
|
|
31402
|
+
const Z = U.value.getBoundingClientRect(), G = 420, X = 334, ne = window.innerHeight - Z.bottom, te = Z.top, de = ne < G && te > G;
|
|
31405
31403
|
u.value = {
|
|
31406
31404
|
position: "absolute",
|
|
31407
31405
|
top: `${de ? Z.top - G : Z.bottom}px`,
|
|
@@ -31443,7 +31441,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31443
31441
|
month: G
|
|
31444
31442
|
}), te.push(ge), be++;
|
|
31445
31443
|
return te;
|
|
31446
|
-
}, B = (Z) => Z.timestamp === o, P = (Z) => Z.timestamp === l.value.selectedDay,
|
|
31444
|
+
}, B = (Z) => Z.timestamp === o, P = (Z) => Z.timestamp === l.value.selectedDay, H = (Z) => {
|
|
31447
31445
|
if (!Z)
|
|
31448
31446
|
return null;
|
|
31449
31447
|
if (Z instanceof Date)
|
|
@@ -31466,7 +31464,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31466
31464
|
l.value = { selectedDay: G };
|
|
31467
31465
|
}, Q = () => {
|
|
31468
31466
|
re();
|
|
31469
|
-
const Z =
|
|
31467
|
+
const Z = H(x.value);
|
|
31470
31468
|
Z !== null && (V(Z), l.value = {
|
|
31471
31469
|
year: Z.year,
|
|
31472
31470
|
month: Z.month - 1,
|
|
@@ -31531,7 +31529,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31531
31529
|
], 10, Zv)) : le("", !0),
|
|
31532
31530
|
C("div", {
|
|
31533
31531
|
ref_key: "triggerElement",
|
|
31534
|
-
ref:
|
|
31532
|
+
ref: U,
|
|
31535
31533
|
tabindex: "0",
|
|
31536
31534
|
class: _e(["mdp-input ectheme-input-box ect-mb-0", {
|
|
31537
31535
|
"mdp-input_focus": p.value,
|
|
@@ -31736,8 +31734,8 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31736
31734
|
objectApiName: r.configuration.objectType,
|
|
31737
31735
|
lookupFieldApiName: A,
|
|
31738
31736
|
searchTerm: _ || ""
|
|
31739
|
-
},
|
|
31740
|
-
console.log("Records:::",
|
|
31737
|
+
}, U = await t.getLookupRecords(N);
|
|
31738
|
+
console.log("Records:::", U), v.value[T].options = U, v.value[T].loading = !1;
|
|
31741
31739
|
}), E = sn(() => {
|
|
31742
31740
|
!b.value && !r.fields.isGuidance && O(!0);
|
|
31743
31741
|
}, 500), O = async (_) => {
|
|
@@ -31763,9 +31761,9 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31763
31761
|
return console.log("Error in saving", j), l.value = !1, j ? j.ERROR : !1;
|
|
31764
31762
|
} else if (!await t.updateRecord(N))
|
|
31765
31763
|
return l.value = !1, !1;
|
|
31766
|
-
const
|
|
31764
|
+
const U = t.quoteRecord;
|
|
31767
31765
|
for (const j in a.value)
|
|
31768
|
-
|
|
31766
|
+
U[j] = a.value[j];
|
|
31769
31767
|
return l.value = !1, _ || (u.value = !0), !0;
|
|
31770
31768
|
}
|
|
31771
31769
|
};
|
|
@@ -31776,14 +31774,14 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31776
31774
|
if (_.dataType === "BOOLEAN")
|
|
31777
31775
|
a.value[_.field] = ((A = t.quoteRecord) == null ? void 0 : A[_.field]) || !1;
|
|
31778
31776
|
else if (_.dataType === "REFERENCE") {
|
|
31779
|
-
const
|
|
31777
|
+
const U = _.field.replace("__c", "__r"), j = (T = t.quoteRecord) == null ? void 0 : T[U];
|
|
31780
31778
|
j && (a.value[_.field] = j.Id, _.options = [{ Name: j.Name, Id: j.Id }]);
|
|
31781
31779
|
} else if (_.dataType === "DATE") {
|
|
31782
|
-
const
|
|
31783
|
-
a.value[_.field] = (N = t.quoteRecord) == null ? void 0 : N[
|
|
31780
|
+
const U = _.field.replaceAll("_", "").toLowerCase();
|
|
31781
|
+
a.value[_.field] = (N = t.quoteRecord) == null ? void 0 : N[U];
|
|
31784
31782
|
} else
|
|
31785
31783
|
a.value[_.field] = at(t.quoteRecord, _.field, _.dataType, !0, !0);
|
|
31786
|
-
_.editable && _.dataType === "PICKLIST" && (_.options = _.picklist.map((
|
|
31784
|
+
_.editable && _.dataType === "PICKLIST" && (_.options = _.picklist.map((U) => ({ label: U, value: U })));
|
|
31787
31785
|
}), i.value = !1;
|
|
31788
31786
|
}
|
|
31789
31787
|
return Ve(t.quoteRecord, (_) => {
|
|
@@ -31798,7 +31796,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31798
31796
|
r.quoteId && y.value > 5 && (F(), clearInterval(c.value)), y.value++;
|
|
31799
31797
|
}, 100);
|
|
31800
31798
|
}), n({ handlerActionClick: O }), (_, A) => {
|
|
31801
|
-
var T, N,
|
|
31799
|
+
var T, N, U, j, J, oe, W;
|
|
31802
31800
|
return u.value ? (M(), q("div", Fg, [
|
|
31803
31801
|
C("div", Rg, [
|
|
31804
31802
|
Lg,
|
|
@@ -31810,10 +31808,10 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31810
31808
|
}, "click to close")) : le("", !0)
|
|
31811
31809
|
])) : (M(), q("div", Sg, [
|
|
31812
31810
|
C("div", Og, [
|
|
31813
|
-
(T = m.value) != null && T.title ? (M(), ve(
|
|
31811
|
+
(T = m.value) != null && T.title ? (M(), ve(He, {
|
|
31814
31812
|
key: 0,
|
|
31815
31813
|
text: (N = m.value) == null ? void 0 : N.title,
|
|
31816
|
-
style: Ce((
|
|
31814
|
+
style: Ce((U = m.value) == null ? void 0 : U.style)
|
|
31817
31815
|
}, null, 8, ["text", "style"])) : le("", !0)
|
|
31818
31816
|
]),
|
|
31819
31817
|
i.value ? (M(), q("div", Tg, [
|
|
@@ -31884,7 +31882,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31884
31882
|
], 64))), 128))
|
|
31885
31883
|
])),
|
|
31886
31884
|
d.value ? (M(), q("div", Bg, [
|
|
31887
|
-
(j = d.value) != null && j.title ? (M(), ve(
|
|
31885
|
+
(j = d.value) != null && j.title ? (M(), ve(He, {
|
|
31888
31886
|
key: 0,
|
|
31889
31887
|
text: (J = d.value) == null ? void 0 : J.title,
|
|
31890
31888
|
style: Ce((oe = d.value) == null ? void 0 : oe.style)
|
|
@@ -31955,13 +31953,13 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31955
31953
|
], 64))), 128))
|
|
31956
31954
|
]));
|
|
31957
31955
|
}
|
|
31958
|
-
},
|
|
31956
|
+
}, Ug = /* @__PURE__ */ we(jg, [["__scopeId", "data-v-ee0781ca"]]), Ni = function(e, n) {
|
|
31959
31957
|
const t = {};
|
|
31960
31958
|
t.sectionStyle = {}, t.blockStyle = {};
|
|
31961
31959
|
const { visiblity: r } = e;
|
|
31962
31960
|
t.visibility = r;
|
|
31963
31961
|
const { layout: o } = e;
|
|
31964
|
-
if (t.blockStyle =
|
|
31962
|
+
if (t.blockStyle = Hg(o, n), o && (o != null && o.padding)) {
|
|
31965
31963
|
const { top: l, bottom: u, left: s, right: c } = o.padding;
|
|
31966
31964
|
l && (t.sectionStyle.paddingTop = `${l}px`), u && (t.sectionStyle.paddingBottom = `${u}px`), s && (t.sectionStyle.paddingLeft = `${s}px`), c && (t.sectionStyle.paddingRight = `${c}px`);
|
|
31967
31965
|
}
|
|
@@ -31971,7 +31969,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31971
31969
|
const { Background: i } = e;
|
|
31972
31970
|
return i && i.style === "Solid" && (t.sectionStyle.backgroundColor = i.color), i && i.opacity === "100%" && (t.sectionStyle.opacity = 1), i && i.image && i.image !== "sampleImage.png" && (t.sectionStyle.backgroundImage = `url(${i.image})`, i.imageSize && (t.sectionStyle.backgroundSize = i.imageSize)), i && i.repeat === "no-repeat" && (t.sectionStyle.backgroundRepeat = i.repeat), i && (i.horizontalAlignment || i.verticalAlignment) && (t.sectionStyle.backgroundPosition = i.horizontalAlignment + " " + i.verticalAlignment), t;
|
|
31973
31971
|
};
|
|
31974
|
-
function
|
|
31972
|
+
function Hg(e, n) {
|
|
31975
31973
|
if (!e)
|
|
31976
31974
|
return [{}];
|
|
31977
31975
|
const { columnSize: t, columns: r } = e;
|
|
@@ -32112,7 +32110,7 @@ const Vg = ["data-sid", "data-sname"], zg = ["data-bid", "data-bname"], Xg = ["p
|
|
|
32112
32110
|
"page-block-id": d.Id,
|
|
32113
32111
|
class: ""
|
|
32114
32112
|
}, [
|
|
32115
|
-
se(
|
|
32113
|
+
se(Ug, {
|
|
32116
32114
|
id: d.Id,
|
|
32117
32115
|
configuration: d.configuration,
|
|
32118
32116
|
fields: d.fields,
|
|
@@ -33077,7 +33075,7 @@ function ra(e) {
|
|
|
33077
33075
|
}
|
|
33078
33076
|
return String.fromCharCode(e);
|
|
33079
33077
|
}
|
|
33080
|
-
const p0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,
|
|
33078
|
+
const p0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ub = /&([a-z#][a-z0-9]{1,31});/gi, Hb = new RegExp(p0.source + "|" + Ub.source, "gi"), Vb = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
33081
33079
|
function zb(e, n) {
|
|
33082
33080
|
if (n.charCodeAt(0) === 35 && Vb.test(n)) {
|
|
33083
33081
|
const r = n[1].toLowerCase() === "x" ? parseInt(n.slice(2), 16) : parseInt(n.slice(1), 10);
|
|
@@ -33090,7 +33088,7 @@ function Xb(e) {
|
|
|
33090
33088
|
return e.indexOf("\\") < 0 ? e : e.replace(p0, "$1");
|
|
33091
33089
|
}
|
|
33092
33090
|
function Br(e) {
|
|
33093
|
-
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(
|
|
33091
|
+
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Hb, function(n, t, r) {
|
|
33094
33092
|
return t || zb(n, r);
|
|
33095
33093
|
});
|
|
33096
33094
|
}
|
|
@@ -34122,10 +34120,10 @@ function Dx(e, n, t, r) {
|
|
|
34122
34120
|
const g = e.sCount[u] + m - (e.bMarks[u] + e.tShift[u]);
|
|
34123
34121
|
let k = g;
|
|
34124
34122
|
for (; a < o; ) {
|
|
34125
|
-
const
|
|
34126
|
-
if (
|
|
34123
|
+
const U = e.src.charCodeAt(a);
|
|
34124
|
+
if (U === 9)
|
|
34127
34125
|
k += 4 - (k + e.bsCount[u]) % 4;
|
|
34128
|
-
else if (
|
|
34126
|
+
else if (U === 32)
|
|
34129
34127
|
k++;
|
|
34130
34128
|
else
|
|
34131
34129
|
break;
|
|
@@ -34142,8 +34140,8 @@ function Dx(e, n, t, r) {
|
|
|
34142
34140
|
if (e.listIndent = e.blkIndent, e.blkIndent = O, e.tight = !0, e.tShift[u] = w - e.bMarks[u], e.sCount[u] = k, w >= o && e.isEmpty(u + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, u, t, !0), (!e.tight || x) && (s = !1), x = e.line - u > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = T, e.tShift[u] = _, e.sCount[u] = A, e.tight = S, l = e.push("list_item_close", "li", -1), l.markup = String.fromCharCode(d), u = e.line, F[1] = u, u >= t || e.sCount[u] < e.blkIndent || e.sCount[u] - e.blkIndent >= 4)
|
|
34143
34141
|
break;
|
|
34144
34142
|
let N = !1;
|
|
34145
|
-
for (let
|
|
34146
|
-
if (p[
|
|
34143
|
+
for (let U = 0, j = p.length; U < j; U++)
|
|
34144
|
+
if (p[U](e, u, t, !0)) {
|
|
34147
34145
|
N = !0;
|
|
34148
34146
|
break;
|
|
34149
34147
|
}
|
|
@@ -34317,7 +34315,7 @@ const Mx = [
|
|
|
34317
34315
|
"tr",
|
|
34318
34316
|
"track",
|
|
34319
34317
|
"ul"
|
|
34320
|
-
], Fx = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Rx = "[^\"'=<>`\\x00-\\x20]+", Lx = "'[^']*'", Nx = '"[^"]*"', Px = "(?:" + Rx + "|" + Lx + "|" + Nx + ")", qx = "(?:\\s+" + Fx + "(?:\\s*=\\s*" + Px + ")?)", v0 = "<[A-Za-z][A-Za-z0-9\\-]*" + qx + "*\\s*\\/?>", g0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", $x = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", jx = "<[?][\\s\\S]*?[?]>",
|
|
34318
|
+
], Fx = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Rx = "[^\"'=<>`\\x00-\\x20]+", Lx = "'[^']*'", Nx = '"[^"]*"', Px = "(?:" + Rx + "|" + Lx + "|" + Nx + ")", qx = "(?:\\s+" + Fx + "(?:\\s*=\\s*" + Px + ")?)", v0 = "<[A-Za-z][A-Za-z0-9\\-]*" + qx + "*\\s*\\/?>", g0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", $x = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", jx = "<[?][\\s\\S]*?[?]>", Ux = "<![A-Za-z][^>]*>", Hx = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Vx = new RegExp("^(?:" + v0 + "|" + g0 + "|" + $x + "|" + jx + "|" + Ux + "|" + Hx + ")"), zx = new RegExp("^(?:" + v0 + "|" + g0 + ")"), Ar = [
|
|
34321
34319
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
34322
34320
|
[/^<!--/, /-->/, !0],
|
|
34323
34321
|
[/^<\?/, /\?>/, !0],
|
|
@@ -34990,7 +34988,7 @@ const ji = [
|
|
|
34990
34988
|
["autolink", d_],
|
|
34991
34989
|
["html_inline", m_],
|
|
34992
34990
|
["entity", g_]
|
|
34993
|
-
],
|
|
34991
|
+
], Ui = [
|
|
34994
34992
|
["balance_pairs", b_],
|
|
34995
34993
|
["strikethrough", b0.postProcess],
|
|
34996
34994
|
["emphasis", x0.postProcess],
|
|
@@ -35003,8 +35001,8 @@ function vo() {
|
|
|
35003
35001
|
for (let e = 0; e < ji.length; e++)
|
|
35004
35002
|
this.ruler.push(ji[e][0], ji[e][1]);
|
|
35005
35003
|
this.ruler2 = new Xt();
|
|
35006
|
-
for (let e = 0; e <
|
|
35007
|
-
this.ruler2.push(
|
|
35004
|
+
for (let e = 0; e < Ui.length; e++)
|
|
35005
|
+
this.ruler2.push(Ui[e][0], Ui[e][1]);
|
|
35008
35006
|
}
|
|
35009
35007
|
vo.prototype.skipToken = function(e) {
|
|
35010
35008
|
const n = e.pos, t = this.ruler.getRules(""), r = t.length, o = e.md.options.maxNesting, a = e.cache;
|
|
@@ -35255,7 +35253,7 @@ const Sr = 2147483647, Bn = 36, $l = 1, ao = 26, M_ = 38, F_ = 700, C0 = 72, k0
|
|
|
35255
35253
|
overflow: "Overflow: input needs wider integers to process",
|
|
35256
35254
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
35257
35255
|
"invalid-input": "Invalid input"
|
|
35258
|
-
},
|
|
35256
|
+
}, Hi = Bn - $l, Mn = Math.floor, Vi = String.fromCharCode;
|
|
35259
35257
|
function Zn(e) {
|
|
35260
35258
|
throw new RangeError(P_[e]);
|
|
35261
35259
|
}
|
|
@@ -35293,9 +35291,9 @@ const $_ = (e) => String.fromCodePoint(...e), j_ = function(e) {
|
|
|
35293
35291
|
return e + 22 + 75 * (e < 26) - ((n != 0) << 5);
|
|
35294
35292
|
}, I0 = function(e, n, t) {
|
|
35295
35293
|
let r = 0;
|
|
35296
|
-
for (e = t ? Mn(e / F_) : e >> 1, e += Mn(e / n); e >
|
|
35297
|
-
e = Mn(e /
|
|
35298
|
-
return Mn(r + (
|
|
35294
|
+
for (e = t ? Mn(e / F_) : e >> 1, e += Mn(e / n); e > Hi * ao >> 1; r += Bn)
|
|
35295
|
+
e = Mn(e / Hi);
|
|
35296
|
+
return Mn(r + (Hi + 1) * e / (e + M_));
|
|
35299
35297
|
}, S0 = function(e) {
|
|
35300
35298
|
const n = [], t = e.length;
|
|
35301
35299
|
let r = 0, o = k0, a = C0, i = e.lastIndexOf(E0);
|
|
@@ -35350,11 +35348,11 @@ const $_ = (e) => String.fromCodePoint(...e), j_ = function(e) {
|
|
|
35350
35348
|
++o, ++r;
|
|
35351
35349
|
}
|
|
35352
35350
|
return n.join("");
|
|
35353
|
-
},
|
|
35351
|
+
}, U_ = function(e) {
|
|
35354
35352
|
return A0(e, function(n) {
|
|
35355
35353
|
return R_.test(n) ? S0(n.slice(4).toLowerCase()) : n;
|
|
35356
35354
|
});
|
|
35357
|
-
},
|
|
35355
|
+
}, H_ = function(e) {
|
|
35358
35356
|
return A0(e, function(n) {
|
|
35359
35357
|
return L_.test(n) ? "xn--" + O0(n) : n;
|
|
35360
35358
|
});
|
|
@@ -35378,8 +35376,8 @@ const $_ = (e) => String.fromCodePoint(...e), j_ = function(e) {
|
|
|
35378
35376
|
},
|
|
35379
35377
|
decode: S0,
|
|
35380
35378
|
encode: O0,
|
|
35381
|
-
toASCII:
|
|
35382
|
-
toUnicode:
|
|
35379
|
+
toASCII: H_,
|
|
35380
|
+
toUnicode: U_
|
|
35383
35381
|
}, V_ = {
|
|
35384
35382
|
options: {
|
|
35385
35383
|
// Enable HTML tags in source
|
|
@@ -35723,7 +35721,7 @@ function Jr(e, n) {
|
|
|
35723
35721
|
}
|
|
35724
35722
|
return t;
|
|
35725
35723
|
}
|
|
35726
|
-
const $s = Ft(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Xi = Ft(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ki = Ft(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), uC = Ft(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Gi = Ft(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), sC = Ft(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), js = Ft(["#text"]),
|
|
35724
|
+
const $s = Ft(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Xi = Ft(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ki = Ft(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), uC = Ft(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Gi = Ft(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), sC = Ft(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), js = Ft(["#text"]), Us = Ft(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Qi = Ft(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Hs = Ft(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Uo = Ft(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), cC = dn(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dC = dn(/<%[\w\W]*|[\w\W]*%>/gm), fC = dn(/\$\{[\w\W]*/gm), hC = dn(/^data-[\-\w.\u00B7-\uFFFF]+$/), pC = dn(/^aria-[\-\w]+$/), F0 = dn(
|
|
35727
35725
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
35728
35726
|
// eslint-disable-line no-useless-escape
|
|
35729
35727
|
), mC = dn(/^(?:\w+script|data):/i), yC = dn(
|
|
@@ -35831,7 +35829,7 @@ function L0() {
|
|
|
35831
35829
|
MUSTACHE_EXPR: A,
|
|
35832
35830
|
ERB_EXPR: T,
|
|
35833
35831
|
TMPLIT_EXPR: N,
|
|
35834
|
-
DATA_ATTR:
|
|
35832
|
+
DATA_ATTR: U,
|
|
35835
35833
|
ARIA_ATTR: j,
|
|
35836
35834
|
IS_SCRIPT_OR_DATA: J,
|
|
35837
35835
|
ATTR_WHITESPACE: oe,
|
|
@@ -35842,8 +35840,8 @@ function L0() {
|
|
|
35842
35840
|
} = Vs, I = null;
|
|
35843
35841
|
const D = je({}, [...$s, ...Xi, ...Ki, ...Gi, ...js]);
|
|
35844
35842
|
let B = null;
|
|
35845
|
-
const P = je({}, [...
|
|
35846
|
-
let
|
|
35843
|
+
const P = je({}, [...Us, ...Qi, ...Hs, ...Uo]);
|
|
35844
|
+
let H = Object.seal(M0(null, {
|
|
35847
35845
|
tagNameCheck: {
|
|
35848
35846
|
writable: !0,
|
|
35849
35847
|
configurable: !1,
|
|
@@ -35883,7 +35881,7 @@ function L0() {
|
|
|
35883
35881
|
let ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
35884
35882
|
if (!(Dt && Dt === ue)) {
|
|
35885
35883
|
if ((!ue || typeof ue != "object") && (ue = {}), ue = zn(ue), Et = // eslint-disable-next-line unicorn/prefer-includes
|
|
35886
|
-
qn.indexOf(ue.PARSER_MEDIA_TYPE) === -1 ? fn : ue.PARSER_MEDIA_TYPE, Je = Et === "application/xhtml+xml" ? zi : Go, I = mn(ue, "ALLOWED_TAGS") ? je({}, ue.ALLOWED_TAGS, Je) : D, B = mn(ue, "ALLOWED_ATTR") ? je({}, ue.ALLOWED_ATTR, Je) : P, rn = mn(ue, "ALLOWED_NAMESPACES") ? je({}, ue.ALLOWED_NAMESPACES, zi) : on, $e = mn(ue, "ADD_URI_SAFE_ATTR") ? je(zn(tt), ue.ADD_URI_SAFE_ATTR, Je) : tt, Ne = mn(ue, "ADD_DATA_URI_TAGS") ? je(zn(Gt), ue.ADD_DATA_URI_TAGS, Je) : Gt, Ke = mn(ue, "FORBID_CONTENTS") ? je({}, ue.FORBID_CONTENTS, Je) : Qe, $ = mn(ue, "FORBID_TAGS") ? je({}, ue.FORBID_TAGS, Je) : zn({}), V = mn(ue, "FORBID_ATTR") ? je({}, ue.FORBID_ATTR, Je) : zn({}), Be = mn(ue, "USE_PROFILES") ? ue.USE_PROFILES : !1, Q = ue.ALLOW_ARIA_ATTR !== !1, ee = ue.ALLOW_DATA_ATTR !== !1, Y = ue.ALLOW_UNKNOWN_PROTOCOLS || !1, ie = ue.ALLOW_SELF_CLOSE_IN_ATTR !== !1, fe = ue.SAFE_FOR_TEMPLATES || !1, re = ue.SAFE_FOR_XML !== !1, Z = ue.WHOLE_DOCUMENT || !1, ne = ue.RETURN_DOM || !1, te = ue.RETURN_DOM_FRAGMENT || !1, de = ue.RETURN_TRUSTED_TYPE || !1, X = ue.FORCE_BODY || !1, ge = ue.SANITIZE_DOM !== !1, be = ue.SANITIZE_NAMED_PROPS || !1, Oe = ue.KEEP_CONTENT !== !1, Ie = ue.IN_PLACE || !1, L = ue.ALLOWED_URI_REGEXP || F0, kt = ue.NAMESPACE || ht, pt = ue.MATHML_TEXT_INTEGRATION_POINTS || pt, qt = ue.HTML_INTEGRATION_POINTS || qt,
|
|
35884
|
+
qn.indexOf(ue.PARSER_MEDIA_TYPE) === -1 ? fn : ue.PARSER_MEDIA_TYPE, Je = Et === "application/xhtml+xml" ? zi : Go, I = mn(ue, "ALLOWED_TAGS") ? je({}, ue.ALLOWED_TAGS, Je) : D, B = mn(ue, "ALLOWED_ATTR") ? je({}, ue.ALLOWED_ATTR, Je) : P, rn = mn(ue, "ALLOWED_NAMESPACES") ? je({}, ue.ALLOWED_NAMESPACES, zi) : on, $e = mn(ue, "ADD_URI_SAFE_ATTR") ? je(zn(tt), ue.ADD_URI_SAFE_ATTR, Je) : tt, Ne = mn(ue, "ADD_DATA_URI_TAGS") ? je(zn(Gt), ue.ADD_DATA_URI_TAGS, Je) : Gt, Ke = mn(ue, "FORBID_CONTENTS") ? je({}, ue.FORBID_CONTENTS, Je) : Qe, $ = mn(ue, "FORBID_TAGS") ? je({}, ue.FORBID_TAGS, Je) : zn({}), V = mn(ue, "FORBID_ATTR") ? je({}, ue.FORBID_ATTR, Je) : zn({}), Be = mn(ue, "USE_PROFILES") ? ue.USE_PROFILES : !1, Q = ue.ALLOW_ARIA_ATTR !== !1, ee = ue.ALLOW_DATA_ATTR !== !1, Y = ue.ALLOW_UNKNOWN_PROTOCOLS || !1, ie = ue.ALLOW_SELF_CLOSE_IN_ATTR !== !1, fe = ue.SAFE_FOR_TEMPLATES || !1, re = ue.SAFE_FOR_XML !== !1, Z = ue.WHOLE_DOCUMENT || !1, ne = ue.RETURN_DOM || !1, te = ue.RETURN_DOM_FRAGMENT || !1, de = ue.RETURN_TRUSTED_TYPE || !1, X = ue.FORCE_BODY || !1, ge = ue.SANITIZE_DOM !== !1, be = ue.SANITIZE_NAMED_PROPS || !1, Oe = ue.KEEP_CONTENT !== !1, Ie = ue.IN_PLACE || !1, L = ue.ALLOWED_URI_REGEXP || F0, kt = ue.NAMESPACE || ht, pt = ue.MATHML_TEXT_INTEGRATION_POINTS || pt, qt = ue.HTML_INTEGRATION_POINTS || qt, H = ue.CUSTOM_ELEMENT_HANDLING || {}, ue.CUSTOM_ELEMENT_HANDLING && Qt(ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ue.CUSTOM_ELEMENT_HANDLING && Qt(ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ue.CUSTOM_ELEMENT_HANDLING && typeof ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), fe && (ee = !1), te && (ne = !0), Be && (I = je({}, js), B = [], Be.html === !0 && (je(I, $s), je(B, Us)), Be.svg === !0 && (je(I, Xi), je(B, Qi), je(B, Uo)), Be.svgFilters === !0 && (je(I, Ki), je(B, Qi), je(B, Uo)), Be.mathMl === !0 && (je(I, Gi), je(B, Hs), je(B, Uo))), ue.ADD_TAGS && (I === D && (I = zn(I)), je(I, ue.ADD_TAGS, Je)), ue.ADD_ATTR && (B === P && (B = zn(B)), je(B, ue.ADD_ATTR, Je)), ue.ADD_URI_SAFE_ATTR && je($e, ue.ADD_URI_SAFE_ATTR, Je), ue.FORBID_CONTENTS && (Ke === Qe && (Ke = zn(Ke)), je(Ke, ue.FORBID_CONTENTS, Je)), Oe && (I["#text"] = !0), Z && je(I, ["html", "head", "body"]), I.table && (je(I, ["tbody"]), delete $.tbody), ue.TRUSTED_TYPES_POLICY) {
|
|
35887
35885
|
if (typeof ue.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
35888
35886
|
throw Zr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
35889
35887
|
if (typeof ue.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -35986,7 +35984,7 @@ function L0() {
|
|
|
35986
35984
|
}), re && ue.hasChildNodes() && !gr(ue.firstElementChild) && Mt(/<[/\w!]/g, ue.innerHTML) && Mt(/<[/\w!]/g, ue.textContent) || ue.nodeType === Yr.progressingInstruction || re && ue.nodeType === Yr.comment && Mt(/<[/\w]/g, ue.data))
|
|
35987
35985
|
return nt(ue), !0;
|
|
35988
35986
|
if (!I[Ae] || $[Ae]) {
|
|
35989
|
-
if (!$[Ae] && dt(Ae) && (
|
|
35987
|
+
if (!$[Ae] && dt(Ae) && (H.tagNameCheck instanceof RegExp && Mt(H.tagNameCheck, Ae) || H.tagNameCheck instanceof Function && H.tagNameCheck(Ae)))
|
|
35990
35988
|
return !1;
|
|
35991
35989
|
if (Oe && !Ke[Ae]) {
|
|
35992
35990
|
const We = v(ue) || ue.parentNode, ut = p(ue) || ue.childNodes;
|
|
@@ -36008,16 +36006,16 @@ function L0() {
|
|
|
36008
36006
|
}, xr = function(ue, Ee, Ae) {
|
|
36009
36007
|
if (ge && (Ee === "id" || Ee === "name") && (Ae in t || Ae in $n))
|
|
36010
36008
|
return !1;
|
|
36011
|
-
if (!(ee && !V[Ee] && Mt(
|
|
36009
|
+
if (!(ee && !V[Ee] && Mt(U, Ee))) {
|
|
36012
36010
|
if (!(Q && Mt(j, Ee))) {
|
|
36013
36011
|
if (!B[Ee] || V[Ee]) {
|
|
36014
36012
|
if (
|
|
36015
36013
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
36016
36014
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
36017
36015
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
36018
|
-
!(dt(ue) && (
|
|
36016
|
+
!(dt(ue) && (H.tagNameCheck instanceof RegExp && Mt(H.tagNameCheck, ue) || H.tagNameCheck instanceof Function && H.tagNameCheck(ue)) && (H.attributeNameCheck instanceof RegExp && Mt(H.attributeNameCheck, Ee) || H.attributeNameCheck instanceof Function && H.attributeNameCheck(Ee)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
36019
36017
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
36020
|
-
Ee === "is" &&
|
|
36018
|
+
Ee === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && Mt(H.tagNameCheck, Ae) || H.tagNameCheck instanceof Function && H.tagNameCheck(Ae)))
|
|
36021
36019
|
)
|
|
36022
36020
|
return !1;
|
|
36023
36021
|
} else if (!$e[Ee]) {
|
|
@@ -36253,11 +36251,11 @@ const _C = ["innerHTML"], CC = {
|
|
|
36253
36251
|
behavior: "smooth"
|
|
36254
36252
|
});
|
|
36255
36253
|
};
|
|
36256
|
-
|
|
36254
|
+
Hl(() => {
|
|
36257
36255
|
i.messages.length > 0 && ln(() => {
|
|
36258
36256
|
u();
|
|
36259
36257
|
});
|
|
36260
|
-
}),
|
|
36258
|
+
}), Hl(() => {
|
|
36261
36259
|
i.loadingMessage && ln(() => {
|
|
36262
36260
|
u(), r.value && (r.value.scrollTop = r.value.scrollHeight);
|
|
36263
36261
|
});
|
|
@@ -36506,7 +36504,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
36506
36504
|
}, jC = {
|
|
36507
36505
|
key: 1,
|
|
36508
36506
|
class: "sub-help-text"
|
|
36509
|
-
},
|
|
36507
|
+
}, UC = ["onClick"], HC = {
|
|
36510
36508
|
key: 2,
|
|
36511
36509
|
class: "suggestions-list"
|
|
36512
36510
|
}, VC = ["onClick"], zC = {
|
|
@@ -36569,7 +36567,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
36569
36567
|
e.helpText && !i.value ? (M(), q("div", $C, he(e.helpText), 1)) : le("", !0),
|
|
36570
36568
|
e.subHelpText ? (M(), q("div", jC, he(e.subHelpText), 1)) : le("", !0)
|
|
36571
36569
|
]),
|
|
36572
|
-
i.value ? (M(), q("div",
|
|
36570
|
+
i.value ? (M(), q("div", HC, [
|
|
36573
36571
|
(M(!0), q(xe, null, Se(i.value.subOptions, (d, b) => (M(), q("div", {
|
|
36574
36572
|
key: b,
|
|
36575
36573
|
class: _e(["sub-option", { "sub-active": a.value === b }]),
|
|
@@ -36585,7 +36583,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
36585
36583
|
key: b,
|
|
36586
36584
|
class: _e(["suggestion-item", { active: o.value === b }]),
|
|
36587
36585
|
onClick: (h) => u(d)
|
|
36588
|
-
}, he(d.title), 11,
|
|
36586
|
+
}, he(d.title), 11, UC))), 128))
|
|
36589
36587
|
], 512))
|
|
36590
36588
|
])) : le("", !0);
|
|
36591
36589
|
}
|
|
@@ -36755,13 +36753,13 @@ const _C = ["innerHTML"], CC = {
|
|
|
36755
36753
|
icon: "suggestions",
|
|
36756
36754
|
size: "13",
|
|
36757
36755
|
height: 15,
|
|
36758
|
-
onClick: O[0] || (O[0] = (
|
|
36756
|
+
onClick: O[0] || (O[0] = (U) => u.value = !u.value)
|
|
36759
36757
|
}, null, 8, ["disabled", "color"])
|
|
36760
36758
|
], 2),
|
|
36761
36759
|
en(C("textarea", {
|
|
36762
36760
|
ref_key: "textareaRef",
|
|
36763
36761
|
ref: c,
|
|
36764
|
-
"onUpdate:modelValue": O[1] || (O[1] = (
|
|
36762
|
+
"onUpdate:modelValue": O[1] || (O[1] = (U) => s.value = U),
|
|
36765
36763
|
disabled: e.loading,
|
|
36766
36764
|
placeholder: e.placeholder,
|
|
36767
36765
|
rows: "1",
|
|
@@ -36787,7 +36785,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
36787
36785
|
icon: "mic",
|
|
36788
36786
|
size: "13",
|
|
36789
36787
|
height: 15,
|
|
36790
|
-
onClick: O[2] || (O[2] = (
|
|
36788
|
+
onClick: O[2] || (O[2] = (U) => E.$emit("speak"))
|
|
36791
36789
|
}, null, 8, ["disabled"])
|
|
36792
36790
|
])) : le("", !0),
|
|
36793
36791
|
C("div", ak, [
|
|
@@ -36990,8 +36988,8 @@ const _C = ["innerHTML"], CC = {
|
|
|
36990
36988
|
const _ = t == null ? void 0 : t.activeComponentKey, A = n.stepComponent;
|
|
36991
36989
|
return (_ || A || "").toString().trim().toLowerCase().replace(/[^a-z0-9]+/g, "_");
|
|
36992
36990
|
}), i = ce(() => {
|
|
36993
|
-
var
|
|
36994
|
-
const _ = !!n.templateId, A = !!((
|
|
36991
|
+
var U, j;
|
|
36992
|
+
const _ = !!n.templateId, A = !!((U = n.identity) != null && U.organizationId), T = !!((j = n.identity) != null && j.accountId), N = typeof n.cartSections == "string" && n.cartSections.length > 0;
|
|
36995
36993
|
return _ && A && T && N;
|
|
36996
36994
|
}), l = ce(() => {
|
|
36997
36995
|
var A;
|
|
@@ -37000,9 +36998,9 @@ const _C = ["innerHTML"], CC = {
|
|
|
37000
36998
|
const _ = ((A = t == null ? void 0 : t.activeComponentData) == null ? void 0 : A.payload) || {};
|
|
37001
36999
|
if (_.catalog && typeof _.catalog == "object")
|
|
37002
37000
|
try {
|
|
37003
|
-
const N = Object.values(_.catalog).map((
|
|
37001
|
+
const N = Object.values(_.catalog).map((U) => {
|
|
37004
37002
|
var j;
|
|
37005
|
-
return (j =
|
|
37003
|
+
return (j = U == null ? void 0 : U.catalogResponse) == null ? void 0 : j.productInfo;
|
|
37006
37004
|
}).filter(Boolean);
|
|
37007
37005
|
if (N.length > 0)
|
|
37008
37006
|
return N;
|
|
@@ -37014,12 +37012,12 @@ const _C = ["innerHTML"], CC = {
|
|
|
37014
37012
|
const _ = ((A = t == null ? void 0 : t.activeComponentData) == null ? void 0 : A.payload) || {};
|
|
37015
37013
|
return n.catalogSearchTerm || _.searchTerm || "";
|
|
37016
37014
|
}), s = ce(() => {
|
|
37017
|
-
var A, T, N,
|
|
37018
|
-
const _ = ((
|
|
37015
|
+
var A, T, N, U, j, J;
|
|
37016
|
+
const _ = ((U = (N = (T = (A = t == null ? void 0 : t.activeComponentData) == null ? void 0 : A.payload) == null ? void 0 : T.savedProducts) == null ? void 0 : N[0]) == null ? void 0 : U.itemId) || ((j = t == null ? void 0 : t.activeComponentData) == null ? void 0 : j.payload) && Object.keys(((J = t.activeComponentData.payload) == null ? void 0 : J.quoteConfiguration) || {})[0] || "";
|
|
37019
37017
|
return n.configItemId || _ || "";
|
|
37020
37018
|
}), c = ce(() => {
|
|
37021
|
-
var A, T, N,
|
|
37022
|
-
return ((
|
|
37019
|
+
var A, T, N, U;
|
|
37020
|
+
return ((U = (N = (T = (A = t == null ? void 0 : t.activeComponentData) == null ? void 0 : A.payload) == null ? void 0 : T.savedProducts) == null ? void 0 : N[0]) == null ? void 0 : U.qliId) || "";
|
|
37023
37021
|
}), y = ce(() => !!s.value), f = ce(() => a.value === "configurator" && !y.value ? "Configurator requires an itemId (and optional qliId). Provide via playbook payload or props." : a.value === "catalog" ? "Catalog step is active. Provide templateId/sections/theme when available." : a.value === "cart" ? "Cart step is active." : "Awaiting playbook step selection."), m = ce(() => {
|
|
37024
37022
|
try {
|
|
37025
37023
|
return JSON.stringify((t == null ? void 0 : t.activeComponentData) || {});
|
|
@@ -37039,18 +37037,18 @@ const _C = ["innerHTML"], CC = {
|
|
|
37039
37037
|
}, w = (_) => {
|
|
37040
37038
|
console.log("onQuoteItemsFetched", _);
|
|
37041
37039
|
}, E = () => {
|
|
37042
|
-
var N,
|
|
37040
|
+
var N, U;
|
|
37043
37041
|
const _ = ((N = t == null ? void 0 : t.currentPlaybook) == null ? void 0 : N.playBookSteps) || [], A = (j) => String(j || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_"), T = _.findIndex((j) => A(j == null ? void 0 : j.stepComponent) === "catalog" || A(j == null ? void 0 : j.stepName).includes("catalog"));
|
|
37044
37042
|
if (T >= 0) {
|
|
37045
|
-
const j = (
|
|
37043
|
+
const j = (U = _[T]) == null ? void 0 : U.stepName;
|
|
37046
37044
|
t.navigateToStep({ stepName: j });
|
|
37047
37045
|
} else
|
|
37048
37046
|
t.showEmbeddedComponent("catalog");
|
|
37049
37047
|
}, O = () => {
|
|
37050
|
-
var N,
|
|
37048
|
+
var N, U;
|
|
37051
37049
|
const _ = ((N = t == null ? void 0 : t.currentPlaybook) == null ? void 0 : N.playBookSteps) || [], A = (j) => String(j || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_"), T = _.findIndex((j) => A(j == null ? void 0 : j.stepComponent) === "cart" || A(j == null ? void 0 : j.stepName).includes("cart"));
|
|
37052
37050
|
if (T >= 0) {
|
|
37053
|
-
const j = (
|
|
37051
|
+
const j = (U = _[T]) == null ? void 0 : U.stepName;
|
|
37054
37052
|
t.navigateToStep({ stepName: j });
|
|
37055
37053
|
} else
|
|
37056
37054
|
t.showEmbeddedComponent("cart");
|
|
@@ -37058,10 +37056,10 @@ const _C = ["innerHTML"], CC = {
|
|
|
37058
37056
|
var A, T;
|
|
37059
37057
|
console.log("onItemConfigureClicked", _);
|
|
37060
37058
|
try {
|
|
37061
|
-
const N = (_ == null ? void 0 : _.itemId) || "",
|
|
37059
|
+
const N = (_ == null ? void 0 : _.itemId) || "", U = (_ == null ? void 0 : _.qliId) || (_ == null ? void 0 : _.QliId) || "", j = [];
|
|
37062
37060
|
if (N) {
|
|
37063
37061
|
const I = { itemId: N };
|
|
37064
|
-
|
|
37062
|
+
U && (I.qliId = U), j.push(I);
|
|
37065
37063
|
}
|
|
37066
37064
|
const J = {
|
|
37067
37065
|
payload: {
|
|
@@ -37082,10 +37080,10 @@ const _C = ["innerHTML"], CC = {
|
|
|
37082
37080
|
}, S = (_) => {
|
|
37083
37081
|
var A, T;
|
|
37084
37082
|
try {
|
|
37085
|
-
const N = (_ == null ? void 0 : _.itemId) || "",
|
|
37083
|
+
const N = (_ == null ? void 0 : _.itemId) || "", U = (_ == null ? void 0 : _.lineItemId) || (_ == null ? void 0 : _.qliId) || "", j = [];
|
|
37086
37084
|
if (N) {
|
|
37087
37085
|
const I = { itemId: N };
|
|
37088
|
-
|
|
37086
|
+
U && (I.qliId = U), j.push(I);
|
|
37089
37087
|
}
|
|
37090
37088
|
const J = {
|
|
37091
37089
|
payload: {
|
|
@@ -37315,7 +37313,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
37315
37313
|
const S = ce(() => {
|
|
37316
37314
|
var N;
|
|
37317
37315
|
const A = ((N = n.currentPlaybook) == null ? void 0 : N.playBookSteps) || [], T = n.currentStepName;
|
|
37318
|
-
return A.find((
|
|
37316
|
+
return A.find((U) => U.stepName === T) || A[0] || null;
|
|
37319
37317
|
}), _ = ce(() => {
|
|
37320
37318
|
var A;
|
|
37321
37319
|
return ((A = S.value) == null ? void 0 : A.stepComponent) || null;
|