@expedite-commerce/expedite-components 0.2.56 → 0.2.58
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 +688 -694
- package/dist/expedite-components.umd.js +21 -21
- package/dist/style.css +1 -1
- package/dist/vue-expedite-components.js +7784 -7790
- package/dist/vue-expedite-components.umd.cjs +40 -40
- package/package.json +1 -1
|
@@ -680,17 +680,17 @@ const Ua = {
|
|
|
680
680
|
layoutType: "Search Selection",
|
|
681
681
|
layoutObject: "xx_ord1__ecatalog_item__c"
|
|
682
682
|
});
|
|
683
|
-
let
|
|
684
|
-
return
|
|
685
|
-
!
|
|
686
|
-
}), i.value = !1, g(),
|
|
683
|
+
let D = {};
|
|
684
|
+
return D = await window.salesforceConnector.getDynamicPageLayout(I), a.value = tc(D, "Unable to find the Search Selection Layout for your user profile"), p.value.rowLimt = a.value.configuration.rowLimit || 10, a.value.configuration.columns.forEach((B) => {
|
|
685
|
+
!B.field && B.label === "QTY" && (B.field = "xx_ord1__qty__c");
|
|
686
|
+
}), i.value = !1, g(), D;
|
|
687
687
|
} catch (I) {
|
|
688
688
|
i.value = !1, d.handleError("Failed to get Adaptive Search Layout. Please try again."), console.info("[ERROR]: getAdaptiveSearchLayout() error = ", I);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
function g() {
|
|
692
|
-
var I,
|
|
693
|
-
y.value = (
|
|
692
|
+
var I, D, B;
|
|
693
|
+
y.value = (B = (D = (I = a.value) == null ? void 0 : I.configuration) == null ? void 0 : D.dynamicFilters) == null ? void 0 : B.filters.map((P) => ({
|
|
694
694
|
...P,
|
|
695
695
|
field: P.field.toLowerCase(),
|
|
696
696
|
filtervalue: P.filtervalue || [],
|
|
@@ -699,101 +699,101 @@ const Ua = {
|
|
|
699
699
|
}));
|
|
700
700
|
}
|
|
701
701
|
function k() {
|
|
702
|
-
var
|
|
702
|
+
var D;
|
|
703
703
|
let I = [];
|
|
704
|
-
for (const
|
|
705
|
-
let P =
|
|
704
|
+
for (const B of a.value.configuration.columns) {
|
|
705
|
+
let P = B.field;
|
|
706
706
|
if (I.includes(P) || I.push(P), P != null && P.includes(".")) {
|
|
707
707
|
let $ = P.split(".")[0];
|
|
708
708
|
$ = $.slice(0, -1) + "c", I.includes($) || I.push($);
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
return (
|
|
711
|
+
return (D = a.value.configuration) != null && D.cardHeader && I.push(a.value.configuration.cardHeader.imageField), a.value.configuration.objectName.toLowerCase() === "xx_ord1__ecatalog_item__c" && I.push("xx_ord1__item__r.xx_ord1__decimal_precision__c"), I = I.filter((B) => !!B), I.filter((B) => B.toLowerCase() !== "xx_ord1__qty__c" && B.toLowerCase() !== "xx_ord1__competitor_sku__c");
|
|
712
712
|
}
|
|
713
|
-
function w(I,
|
|
713
|
+
function w(I, D = !1) {
|
|
714
714
|
if (!I || I.includes("undefined"))
|
|
715
715
|
return !1;
|
|
716
|
-
const
|
|
717
|
-
if (
|
|
716
|
+
const B = /[!@#$%^&*()+=[\]{};':"\\|.<>/?]+/;
|
|
717
|
+
if (D) {
|
|
718
718
|
const P = Array.isArray(I) ? I : I.split(",");
|
|
719
719
|
for (const U of P) {
|
|
720
720
|
const $ = U.trim();
|
|
721
|
-
if (
|
|
721
|
+
if (B.test($))
|
|
722
722
|
return d.handleError(`Invalid character found in value: ${$}`), !1;
|
|
723
723
|
}
|
|
724
|
-
} else if (
|
|
724
|
+
} else if (B.test(I))
|
|
725
725
|
return d.handleError("Special characters are not allowed in filter values"), !1;
|
|
726
726
|
return !0;
|
|
727
727
|
}
|
|
728
|
-
function E(I,
|
|
728
|
+
function E(I, D) {
|
|
729
729
|
return {
|
|
730
730
|
field: I.field,
|
|
731
731
|
operator: I.operator || "contains",
|
|
732
|
-
value:
|
|
732
|
+
value: D,
|
|
733
733
|
dataType: I.dataType.trim()
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
function O(I) {
|
|
737
737
|
if (!I.filtervalue)
|
|
738
738
|
return null;
|
|
739
|
-
const
|
|
740
|
-
return w(
|
|
739
|
+
const D = Array.isArray(I.filtervalue), B = D ? I.filtervalue.join(",") : I.filtervalue.trim();
|
|
740
|
+
return w(B, D) ? B : null;
|
|
741
741
|
}
|
|
742
742
|
function F(I) {
|
|
743
743
|
var U, $;
|
|
744
|
-
const
|
|
745
|
-
if (!
|
|
744
|
+
const D = (U = I.filtervaluefrom) == null ? void 0 : U.trim(), B = ($ = I.filtervalueTo) == null ? void 0 : $.trim();
|
|
745
|
+
if (!D || !B)
|
|
746
746
|
return null;
|
|
747
|
-
const P = `${
|
|
747
|
+
const P = `${D}, ${B}`;
|
|
748
748
|
return P !== ", " && w(P) ? P : null;
|
|
749
749
|
}
|
|
750
750
|
function S(I) {
|
|
751
|
-
const
|
|
752
|
-
return
|
|
751
|
+
const D = `${Gl(I.filtervaluefrom)}, ${Gl(I.filtervalueTo)}`;
|
|
752
|
+
return D !== ", " && w(D) ? D : null;
|
|
753
753
|
}
|
|
754
754
|
function _(I) {
|
|
755
|
-
var
|
|
756
|
-
const
|
|
757
|
-
return w(
|
|
755
|
+
var B;
|
|
756
|
+
const D = (B = I.filtervaluefrom) == null ? void 0 : B.trim();
|
|
757
|
+
return w(D) ? D : null;
|
|
758
758
|
}
|
|
759
759
|
function A(I) {
|
|
760
|
-
const
|
|
761
|
-
return I.forEach((
|
|
762
|
-
const P =
|
|
760
|
+
const D = [];
|
|
761
|
+
return I.forEach((B) => {
|
|
762
|
+
const P = B.dataType.trim();
|
|
763
763
|
let U = null;
|
|
764
764
|
switch (P) {
|
|
765
765
|
case "PICKLIST":
|
|
766
766
|
case "MULTIPICKLIST":
|
|
767
|
-
U = O(
|
|
767
|
+
U = O(B);
|
|
768
768
|
break;
|
|
769
769
|
case "DOUBLE":
|
|
770
770
|
case "CURRENCY":
|
|
771
|
-
U = F(
|
|
771
|
+
U = F(B);
|
|
772
772
|
break;
|
|
773
773
|
case "DATETIME":
|
|
774
774
|
case "DATE":
|
|
775
|
-
U = S(
|
|
775
|
+
U = S(B);
|
|
776
776
|
break;
|
|
777
777
|
default:
|
|
778
|
-
U = _(
|
|
778
|
+
U = _(B);
|
|
779
779
|
}
|
|
780
|
-
U &&
|
|
781
|
-
}), m.value =
|
|
780
|
+
U && D.push(E(B, U));
|
|
781
|
+
}), m.value = D, D;
|
|
782
782
|
}
|
|
783
|
-
async function T(I = "",
|
|
783
|
+
async function T(I = "", D = [], B = []) {
|
|
784
784
|
var U, $, V, Q, ee, Y, ie, fe, re, Z;
|
|
785
785
|
let P = [];
|
|
786
|
-
if (
|
|
786
|
+
if (D.length && (P = A(D)), !P.length && I.trim() === "") {
|
|
787
787
|
u.value = [], c.value = !1;
|
|
788
788
|
return;
|
|
789
789
|
}
|
|
790
790
|
try {
|
|
791
791
|
c.value = !1, l.value = !0;
|
|
792
792
|
const G = I.trim();
|
|
793
|
-
|
|
793
|
+
B.length || (B = k());
|
|
794
794
|
const X = {
|
|
795
|
-
fields:
|
|
796
|
-
...
|
|
795
|
+
fields: B,
|
|
796
|
+
...D.length ? { dynamicFilters: P } : {},
|
|
797
797
|
// dynamicFilterLogic: '',
|
|
798
798
|
searchText: G || s.value.trim(),
|
|
799
799
|
accountId: n.accountId,
|
|
@@ -823,17 +823,17 @@ const Ua = {
|
|
|
823
823
|
async function N(I) {
|
|
824
824
|
try {
|
|
825
825
|
f.value = !0;
|
|
826
|
-
const
|
|
826
|
+
const D = JSON.stringify({
|
|
827
827
|
lstQLIRequest: H(I),
|
|
828
828
|
quoteId: e.quoteId
|
|
829
829
|
});
|
|
830
|
-
let
|
|
831
|
-
typeof
|
|
830
|
+
let B = await window.salesforceConnector.createQLI(D);
|
|
831
|
+
typeof B == "string" && (B = JSON.parse(B));
|
|
832
832
|
let P = !1;
|
|
833
|
-
if ((
|
|
833
|
+
if ((B == null ? void 0 : B.length) > 0 && B.forEach((U) => {
|
|
834
834
|
U.errorMessage && (P = !0, d.handleError(U.errorMessage));
|
|
835
835
|
}), f.value = !1, P) {
|
|
836
|
-
b.value =
|
|
836
|
+
b.value = B;
|
|
837
837
|
const U = b.value.reduce(($, V) => ($[V.eCatalogItemId] = V.errorMessage, $), {});
|
|
838
838
|
u.value = u.value.map(($) => ({
|
|
839
839
|
...$,
|
|
@@ -841,65 +841,65 @@ const Ua = {
|
|
|
841
841
|
}));
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
|
-
return
|
|
845
|
-
} catch (
|
|
846
|
-
d.handleError("Failed to add item to Quote. Please try again."), console.info("[ERROR]: addToQuote() error = ",
|
|
844
|
+
return B;
|
|
845
|
+
} catch (D) {
|
|
846
|
+
d.handleError("Failed to add item to Quote. Please try again."), console.info("[ERROR]: addToQuote() error = ", D);
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
function H(I) {
|
|
850
|
-
const
|
|
851
|
-
for (const
|
|
852
|
-
if (!
|
|
853
|
-
const P = j(
|
|
854
|
-
h.value++,
|
|
850
|
+
const D = [];
|
|
851
|
+
for (const B of I)
|
|
852
|
+
if (!B.addedToQuote && B.id) {
|
|
853
|
+
const P = j(B);
|
|
854
|
+
h.value++, D.push({
|
|
855
855
|
fields: P,
|
|
856
|
-
recordId:
|
|
856
|
+
recordId: B.id,
|
|
857
857
|
// Only send sequence number when clicked on plus icon(add to quote)
|
|
858
858
|
...I.length === 1 ? { maxSequenceNumber: h.value } : {}
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
return
|
|
861
|
+
return D;
|
|
862
862
|
}
|
|
863
863
|
function j(I) {
|
|
864
|
-
const
|
|
864
|
+
const D = [], B = J();
|
|
865
865
|
return Object.keys(I).forEach((P) => {
|
|
866
|
-
if (
|
|
866
|
+
if (B.includes(P)) {
|
|
867
867
|
const U = rc[P.toLowerCase()];
|
|
868
|
-
U &&
|
|
868
|
+
U && D.push({
|
|
869
869
|
fieldname: U,
|
|
870
870
|
value: I[P]
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
}),
|
|
873
|
+
}), D;
|
|
874
874
|
}
|
|
875
875
|
function J() {
|
|
876
876
|
const I = [];
|
|
877
|
-
return a.value.configuration.columns.forEach((
|
|
878
|
-
|
|
877
|
+
return a.value.configuration.columns.forEach((D) => {
|
|
878
|
+
D.field && !D.field.includes(".") && D.isEditable && D.visible && I.push(D.field);
|
|
879
879
|
}), I;
|
|
880
880
|
}
|
|
881
881
|
function oe() {
|
|
882
|
-
var
|
|
882
|
+
var D, B;
|
|
883
883
|
const I = [];
|
|
884
884
|
return a.value.configuration.columns.forEach((P) => {
|
|
885
885
|
const U = P.field.toLowerCase();
|
|
886
886
|
I.includes(U) || I.push(U);
|
|
887
|
-
}), (
|
|
887
|
+
}), (D = a.value.configuration) != null && D.dynamicFilters && a.value.configuration.dynamicFilters.filters.forEach((P) => {
|
|
888
888
|
const U = P.field.toLowerCase();
|
|
889
889
|
I.includes(U) || I.push(U);
|
|
890
|
-
}), (
|
|
890
|
+
}), (B = a.value.configuration) != null && B.cardHeader && I.push(a.value.configuration.cardHeader.imageField), I;
|
|
891
891
|
}
|
|
892
892
|
async function W() {
|
|
893
|
-
var
|
|
894
|
-
const I = oe(),
|
|
895
|
-
if (
|
|
893
|
+
var B;
|
|
894
|
+
const I = oe(), D = ((B = a.value.configuration) == null ? void 0 : B.saveObjectName) || a.value.configuration.objectName;
|
|
895
|
+
if (D === "xx_ord1__ecatalog_item__c") {
|
|
896
896
|
const P = I.indexOf("xx_ord1__qty__c");
|
|
897
897
|
P > -1 && I.splice(P, 1);
|
|
898
898
|
}
|
|
899
|
-
await e.getFieldsData(I,
|
|
899
|
+
await e.getFieldsData(I, D), e.fieldsData.xx_ord1__qty__c || e.getFieldsData(["xx_ord1__qty__c"], "xx_ord1__quote_line_item__c");
|
|
900
900
|
}
|
|
901
|
-
async function L({ searchTerm: I = "", filters:
|
|
902
|
-
if (x.value = !0, I && (s.value = I),
|
|
901
|
+
async function L({ searchTerm: I = "", filters: D = [] } = {}) {
|
|
902
|
+
if (x.value = !0, I && (s.value = I), D.length && (m.value = D), await v()) {
|
|
903
903
|
await W(), x.value = !1;
|
|
904
904
|
const P = s.value;
|
|
905
905
|
P && (s.value = P, await T(P, e.dynamicFilters)), console.info("actionStore.isStaticActionCall = ", r.isStaticActionCall), r.isStaticActionCall && (r.isStaticActionCall = !1, t.chatHistory[t.chatHistory.length - 1] = {
|
|
@@ -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], H = 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],
|
|
2247
|
-
I = y(I,
|
|
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], H = 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, H, 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, H, 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, H, 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, H, 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;
|
|
@@ -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, H = g.high, j = g.low, J = k.high, oe = k.low, W = w.high, L = w.low, I = E.high,
|
|
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, H = 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, U = F, $ = S, V = _, Q = A, ee = T, Y = N, ie = H, 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;
|
|
@@ -2531,7 +2531,7 @@ function uc() {
|
|
|
2531
2531
|
var Pn = re & G ^ ~re & ne, Et = Z & X ^ ~Z & te, qn = U & V ^ U & ee ^ V & ee, fn = $ & Q ^ $ & Y ^ Q & Y, Je = (U >>> 28 | $ << 4) ^ (U << 30 | $ >>> 2) ^ (U << 25 | $ >>> 7), Dt = ($ >>> 28 | U << 4) ^ ($ << 30 | U >>> 2) ^ ($ << 25 | U >>> 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
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 = U, Q = $, $ = ct + jt | 0, U = nt + An + ($ >>> 0 < ct >>> 0 ? 1 : 0) | 0;
|
|
2533
2533
|
}
|
|
2534
|
-
S = x.low = S + $, x.high = F + U + (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 = H + 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),
|
|
2534
|
+
S = x.low = S + $, x.high = F + U + (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 = H + 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;
|
|
@@ -2654,11 +2654,11 @@ function Hd() {
|
|
|
2654
2654
|
for (var oe = 1; oe < 25; oe++) {
|
|
2655
2655
|
var S, _, E = p[oe], W = E.high, L = E.low, I = y[oe];
|
|
2656
2656
|
I < 32 ? (S = W << I | L >>> 32 - I, _ = L << I | W >>> 32 - I) : (S = L << I - 32 | W >>> 64 - I, _ = W << I - 32 | L >>> 64 - I);
|
|
2657
|
-
var
|
|
2658
|
-
|
|
2657
|
+
var D = d[f[oe]];
|
|
2658
|
+
D.high = S, D.low = _;
|
|
2659
2659
|
}
|
|
2660
|
-
var
|
|
2661
|
-
|
|
2660
|
+
var B = d[0], P = p[0];
|
|
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
2664
|
var oe = F + 5 * A, E = p[oe], U = d[oe], $ = d[(F + 1) % 5 + 5 * A], V = d[(F + 2) % 5 + 5 * A];
|
|
@@ -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, H = c.words, j = y.words, J = f.words, oe, W, L, I,
|
|
3044
|
-
|
|
3043
|
+
var _ = this._hash.words, A = m.words, T = d.words, N = s.words, H = c.words, j = y.words, J = f.words, oe, W, L, I, D, B, P, U, $, V;
|
|
3044
|
+
B = oe = _[0], P = W = _[1], U = 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 +
|
|
3047
|
-
Q = _[1] + L + $ | 0, _[1] = _[2] + I + V | 0, _[2] = _[3] +
|
|
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 + H[O]] | 0, O < 16 ? Q += g(P, U, $) + T[0] : O < 32 ? Q += v(P, U, $) + T[1] : O < 48 ? Q += p(P, U, $) + T[2] : O < 64 ? Q += x(P, U, $) + T[3] : Q += h(P, U, $) + T[4], Q = Q | 0, Q = k(Q, J[O]), Q = Q + V | 0, B = V, V = $, $ = k(U, 10), U = 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 + U | 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;
|
|
@@ -7455,13 +7455,13 @@ const Ic = (e) => {
|
|
|
7455
7455
|
method: "POST",
|
|
7456
7456
|
body: x,
|
|
7457
7457
|
duplex: "half"
|
|
7458
|
-
}),
|
|
7459
|
-
if (pe.isFormData(x) && (
|
|
7460
|
-
const [
|
|
7458
|
+
}), D;
|
|
7459
|
+
if (pe.isFormData(x) && (D = I.headers.get("content-type")) && O.setContentType(D), I.body) {
|
|
7460
|
+
const [B, P] = Ru(
|
|
7461
7461
|
H,
|
|
7462
7462
|
Wo(Lu(w))
|
|
7463
7463
|
);
|
|
7464
|
-
x = Pu(I.body, qu,
|
|
7464
|
+
x = Pu(I.body, qu, B, P);
|
|
7465
7465
|
}
|
|
7466
7466
|
}
|
|
7467
7467
|
pe.isString(F) || (F = F ? "include" : "omit");
|
|
@@ -7482,12 +7482,12 @@ const Ic = (e) => {
|
|
|
7482
7482
|
["status", "statusText", "headers"].forEach((U) => {
|
|
7483
7483
|
I[U] = oe[U];
|
|
7484
7484
|
});
|
|
7485
|
-
const
|
|
7486
|
-
|
|
7485
|
+
const D = pe.toFiniteNumber(oe.headers.get("content-length")), [B, P] = k && Ru(
|
|
7486
|
+
D,
|
|
7487
7487
|
Wo(Lu(k), !0)
|
|
7488
7488
|
) || [];
|
|
7489
7489
|
oe = new r(
|
|
7490
|
-
Pu(oe.body, qu,
|
|
7490
|
+
Pu(oe.body, qu, B, () => {
|
|
7491
7491
|
P && P(), N && N();
|
|
7492
7492
|
}),
|
|
7493
7493
|
I
|
|
@@ -7495,8 +7495,8 @@ const Ic = (e) => {
|
|
|
7495
7495
|
}
|
|
7496
7496
|
E = E || "text";
|
|
7497
7497
|
let L = await y[pe.findKey(y, E) || "text"](oe, d);
|
|
7498
|
-
return !W && N && N(), await new Promise((I,
|
|
7499
|
-
Ac(I,
|
|
7498
|
+
return !W && N && N(), await new Promise((I, D) => {
|
|
7499
|
+
Ac(I, D, {
|
|
7500
7500
|
data: L,
|
|
7501
7501
|
headers: bn.from(oe.headers),
|
|
7502
7502
|
status: oe.status,
|
|
@@ -8303,9 +8303,9 @@ const Fn = bt("catalog", () => {
|
|
|
8303
8303
|
"Suggests Configuration": 2,
|
|
8304
8304
|
"Fully Configured": 3
|
|
8305
8305
|
}, oe = (I) => (I == null ? void 0 : I.XX_ORD1__SYS_Configuration_Status2__c) || (I == null ? void 0 : I.xx_ord1__sys_configuration_status2__c) || "", W = (I) => I in J, L = j.filter((I) => W(oe(I)));
|
|
8306
|
-
return L.sort((I,
|
|
8307
|
-
const
|
|
8308
|
-
return (J[
|
|
8306
|
+
return L.sort((I, D) => {
|
|
8307
|
+
const B = oe(I), P = oe(D);
|
|
8308
|
+
return (J[B] || 99) - (J[P] || 99);
|
|
8309
8309
|
}), L;
|
|
8310
8310
|
});
|
|
8311
8311
|
function h() {
|
|
@@ -8337,7 +8337,7 @@ const Fn = bt("catalog", () => {
|
|
|
8337
8337
|
}
|
|
8338
8338
|
}
|
|
8339
8339
|
async function v(j) {
|
|
8340
|
-
var
|
|
8340
|
+
var B, P;
|
|
8341
8341
|
if (!j.qty)
|
|
8342
8342
|
return;
|
|
8343
8343
|
const J = e.quoteId.value;
|
|
@@ -8355,13 +8355,13 @@ const Fn = bt("catalog", () => {
|
|
|
8355
8355
|
endpoint: "/services/apexrest/XX_ORD1/ecommerce?type=updateQLI&ut=" + e.userId.value,
|
|
8356
8356
|
payload: JSON.stringify(oe)
|
|
8357
8357
|
}
|
|
8358
|
-
}, L = await lr(Wn, W, void 0, !0), I = (P = (
|
|
8358
|
+
}, L = await lr(Wn, W, void 0, !0), I = (P = (B = L.response) == null ? void 0 : B.salesforceActions) == null ? void 0 : P.toLowerCase();
|
|
8359
8359
|
(I.includes("record currently unavailable") || I.includes("unable_to_lock_row")) && j.retry < 3 && setTimeout(() => {
|
|
8360
8360
|
j.retry += 1, v(j);
|
|
8361
8361
|
}, 500), Xr(L) && _(!0), x();
|
|
8362
8362
|
}
|
|
8363
8363
|
async function g(j) {
|
|
8364
|
-
var W, L, I,
|
|
8364
|
+
var W, L, I, D, B;
|
|
8365
8365
|
const J = e == null ? void 0 : e.quoteId.value;
|
|
8366
8366
|
Array.isArray(j) && (j = j[0]);
|
|
8367
8367
|
const oe = {
|
|
@@ -8380,7 +8380,7 @@ const Fn = bt("catalog", () => {
|
|
|
8380
8380
|
}
|
|
8381
8381
|
}), U = (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
8382
|
U && U !== J && (r.value = U, e.updateConfig({ quoteId: U }));
|
|
8383
|
-
const $ = ((
|
|
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;
|
|
8386
8386
|
l.value = {
|
|
@@ -8398,7 +8398,7 @@ const Fn = bt("catalog", () => {
|
|
|
8398
8398
|
eCatalogItemId: oe.eCatalogItemId || null,
|
|
8399
8399
|
quantity: oe.quantity,
|
|
8400
8400
|
quoteId: (e == null ? void 0 : e.quoteId.value) || U || null,
|
|
8401
|
-
qliId: ((
|
|
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;
|
|
8404
8404
|
} catch (P) {
|
|
@@ -8407,10 +8407,10 @@ const Fn = bt("catalog", () => {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
}
|
|
8409
8409
|
async function k({ itemId: j, qty: J, qliId: oe, eCatalogItemId: W } = {}) {
|
|
8410
|
-
var
|
|
8410
|
+
var D, B, P, U, $;
|
|
8411
8411
|
if (console.log("updateQuoteLineQtyTxn", { itemId: j, qty: J, qliId: oe, eCatalogItemId: W }), !J && J !== 0)
|
|
8412
8412
|
return;
|
|
8413
|
-
let L = oe || ((
|
|
8413
|
+
let L = oe || ((B = (D = l.value) == null ? void 0 : D[j]) == null ? void 0 : B.Id);
|
|
8414
8414
|
if (L || (await A(!0), L = oe || ((U = (P = l.value) == null ? void 0 : P[j]) == null ? void 0 : U.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({
|
|
@@ -8468,9 +8468,9 @@ const Fn = bt("catalog", () => {
|
|
|
8468
8468
|
}
|
|
8469
8469
|
async function w(j, J, oe) {
|
|
8470
8470
|
var P;
|
|
8471
|
-
const W = oe === "Item", L = [], I = ((j == null ? void 0 : j.searchText) || "").toString().trim(),
|
|
8471
|
+
const W = oe === "Item", L = [], I = ((j == null ? void 0 : j.searchText) || "").toString().trim(), D = Array.isArray(j == null ? void 0 : j.fields) ? j.fields : [];
|
|
8472
8472
|
Array.isArray(j == null ? void 0 : j.filters) && j.filters, j == null || j.filterLogic;
|
|
8473
|
-
const
|
|
8473
|
+
const B = {
|
|
8474
8474
|
searchPL: I,
|
|
8475
8475
|
origin: "genesis_ai",
|
|
8476
8476
|
userId: (e == null ? void 0 : e.userId.value) || "",
|
|
@@ -8480,12 +8480,12 @@ const Fn = bt("catalog", () => {
|
|
|
8480
8480
|
quoteId: (e == null ? void 0 : e.quoteId.value) || "",
|
|
8481
8481
|
accountId: (e == null ? void 0 : e.accountId.value) || "",
|
|
8482
8482
|
numberOfRecords: (j == null ? void 0 : j.numberOfRecords) || (j == null ? void 0 : j.rowLimit) || 10,
|
|
8483
|
-
fields:
|
|
8483
|
+
fields: D,
|
|
8484
8484
|
filters: (j == null ? void 0 : j.whereCondition) || []
|
|
8485
8485
|
};
|
|
8486
8486
|
try {
|
|
8487
8487
|
const U = await Yt({
|
|
8488
|
-
data:
|
|
8488
|
+
data: B,
|
|
8489
8489
|
config: {
|
|
8490
8490
|
pathKey: "catalog.getProductItems"
|
|
8491
8491
|
}
|
|
@@ -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,
|
|
8563
|
+
var L, I, D, B, P, U;
|
|
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)
|
|
@@ -8586,8 +8586,8 @@ const Fn = bt("catalog", () => {
|
|
|
8586
8586
|
const W = Xr(oe, !0);
|
|
8587
8587
|
return console.log("[CATALOG:getObjectDetails] extracted content", { hasContent: !!W }), f.quoteDetails = !1, console.log("[CATALOG:getObjectDetails] loading.quoteDetails -> false"), W ? (i.value = JSON.parse(W), console.log("[CATALOG:getObjectDetails] quoteRecord set", {
|
|
8588
8588
|
id: (I = i.value) == null ? void 0 : I.Id,
|
|
8589
|
-
accountName: (
|
|
8590
|
-
checkedOut: (
|
|
8589
|
+
accountName: (D = i.value) == null ? void 0 : D.XX_ORD1__Account_Name__c,
|
|
8590
|
+
checkedOut: (B = i.value) == null ? void 0 : B.XX_ORD1__Checked_Out__c
|
|
8591
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: (U = i.value) == null ? void 0 : U.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);
|
|
@@ -8606,13 +8606,13 @@ const Fn = bt("catalog", () => {
|
|
|
8606
8606
|
config: {
|
|
8607
8607
|
pathKey: "catalog.getLineItems"
|
|
8608
8608
|
}
|
|
8609
|
-
}), I = ((W = L == null ? void 0 : L.data) == null ? void 0 : W.products) || (L == null ? void 0 : L.products) || [],
|
|
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
8611
|
const U = P == null ? void 0 : P.productLineItem;
|
|
8612
|
-
U && (
|
|
8613
|
-
|
|
8612
|
+
U && (D.push(U), U.XX_ORD1__Item__c && (B[U.XX_ORD1__Item__c] = U)), (Array.isArray(P == null ? void 0 : P.options) ? P.options : []).forEach((V) => {
|
|
8613
|
+
D.push(V), V.XX_ORD1__Item__c && (B[V.XX_ORD1__Item__c] = V);
|
|
8614
8614
|
});
|
|
8615
|
-
}), a.value =
|
|
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", {
|
|
8616
8616
|
quoteId: J,
|
|
8617
8617
|
items: a.value,
|
|
8618
8618
|
count: t.value
|
|
@@ -8655,11 +8655,11 @@ const Fn = bt("catalog", () => {
|
|
|
8655
8655
|
}
|
|
8656
8656
|
};
|
|
8657
8657
|
c.value = !0;
|
|
8658
|
-
const
|
|
8659
|
-
if (
|
|
8660
|
-
console.log("[CATALOG:calculateAvaTax] content",
|
|
8658
|
+
const D = await lr(Wn, I, void 0, !0), B = Xr(D);
|
|
8659
|
+
if (B)
|
|
8660
|
+
console.log("[CATALOG:calculateAvaTax] content", B);
|
|
8661
8661
|
else {
|
|
8662
|
-
const P = JSON.parse(
|
|
8662
|
+
const P = JSON.parse(D.response.salesforceActions).content;
|
|
8663
8663
|
s.value = P;
|
|
8664
8664
|
}
|
|
8665
8665
|
c.value = !1;
|
|
@@ -9255,7 +9255,7 @@ const n2 = {
|
|
|
9255
9255
|
return (((A = i.value) == null ? void 0 : A.playBookSteps) || []).find((T) => T.stepName === l.value) || null;
|
|
9256
9256
|
});
|
|
9257
9257
|
function v({ stepName: _, data: A = null }) {
|
|
9258
|
-
var J, oe, W, L, I,
|
|
9258
|
+
var J, oe, W, L, I, D, B;
|
|
9259
9259
|
if (console.log("[playbook:navigateToStep] called", {
|
|
9260
9260
|
stepName: _,
|
|
9261
9261
|
dataProvided: !!A,
|
|
@@ -9310,7 +9310,7 @@ const n2 = {
|
|
|
9310
9310
|
});
|
|
9311
9311
|
}
|
|
9312
9312
|
let Q = A;
|
|
9313
|
-
const ee = String($ || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_"), Y = !!((I = (L = Q == null ? void 0 : Q.payload) == null ? void 0 : L.savedProducts) != null && I.length) || !!((
|
|
9313
|
+
const ee = String($ || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_"), Y = !!((I = (L = Q == null ? void 0 : Q.payload) == null ? void 0 : L.savedProducts) != null && I.length) || !!((D = Q == null ? void 0 : Q.payload) != null && D.quoteConfiguration && Object.keys(((B = Q == null ? void 0 : Q.payload) == null ? void 0 : B.quoteConfiguration) || {}).length > 0);
|
|
9314
9314
|
if (ee === "configurator" && !Y)
|
|
9315
9315
|
try {
|
|
9316
9316
|
const ie = typeof t.getTopConfigurableItem == "function" ? t.getTopConfigurableItem() : null;
|
|
@@ -9354,7 +9354,7 @@ const n2 = {
|
|
|
9354
9354
|
H != null && H.stepName && v({ stepName: H.stepName });
|
|
9355
9355
|
}
|
|
9356
9356
|
function k(_, A = null) {
|
|
9357
|
-
var H, j, J, oe, W, L, I,
|
|
9357
|
+
var H, j, J, oe, W, L, I, D, B, P, U, $, V, Q, ee, Y;
|
|
9358
9358
|
console.log("[playbook:loadComponent] called", {
|
|
9359
9359
|
stepComponent: _,
|
|
9360
9360
|
dataProvided: !!A,
|
|
@@ -9383,7 +9383,7 @@ const n2 = {
|
|
|
9383
9383
|
const ie = Object.keys(((I = A == null ? void 0 : A.payload) == null ? void 0 : I.quoteConfiguration) ?? {})[0];
|
|
9384
9384
|
r.setPreConfigData(A == null ? void 0 : A.payload, ie), router.push(`/configurator/${ie}`);
|
|
9385
9385
|
return;
|
|
9386
|
-
} else if (((
|
|
9386
|
+
} else if (((B = (D = A == null ? void 0 : A.payload) == null ? void 0 : D.savedProducts) == null ? void 0 : B.length) > 0) {
|
|
9387
9387
|
const ie = (P = A == null ? void 0 : A.payload) == null ? void 0 : P.savedProducts[0].itemId, fe = (U = A == null ? void 0 : A.payload) == null ? void 0 : U.savedProducts[0].qliId;
|
|
9388
9388
|
router.push(`/configurator/${ie}/${fe}`);
|
|
9389
9389
|
return;
|
|
@@ -9648,7 +9648,6 @@ const yr = bt("ai", () => {
|
|
|
9648
9648
|
actionType: "",
|
|
9649
9649
|
packageVersion: o.packageVersion.value,
|
|
9650
9650
|
relatedIds: {
|
|
9651
|
-
eCatalogId: o.eCatalogId.value,
|
|
9652
9651
|
accountId: o.accountId.value
|
|
9653
9652
|
}
|
|
9654
9653
|
};
|
|
@@ -9736,18 +9735,18 @@ const yr = bt("ai", () => {
|
|
|
9736
9735
|
const G = { ...f.value };
|
|
9737
9736
|
G.requestType = "Action", G.actionType = "History", G.requestId = cr(), U(G);
|
|
9738
9737
|
}
|
|
9739
|
-
function
|
|
9738
|
+
function D(G) {
|
|
9740
9739
|
return console.info("[ai] isUnsavedChanges check", {
|
|
9741
9740
|
activeKey: ((a == null ? void 0 : a.activeComponentKey) || "").toLowerCase(),
|
|
9742
9741
|
isChangedConfiguration: t.isChangedConfiguration
|
|
9743
9742
|
}), ((a == null ? void 0 : a.activeComponentKey) || "").toLowerCase() === "configurator" && t.isChangedConfiguration && console.warn("[ai] Unsaved configurator changes detected; not blocking send"), !1;
|
|
9744
9743
|
}
|
|
9745
|
-
function
|
|
9744
|
+
function B(G, X = !0, ne = null) {
|
|
9746
9745
|
if (console.info("[ai] sendMessage", {
|
|
9747
9746
|
messageLength: (G || "").length,
|
|
9748
9747
|
hasCustomPayload: !!ne,
|
|
9749
9748
|
addMessageToHistory: X
|
|
9750
|
-
}),
|
|
9749
|
+
}), D()) {
|
|
9751
9750
|
console.warn("[ai] sendMessage aborted: unsaved changes detected");
|
|
9752
9751
|
return;
|
|
9753
9752
|
}
|
|
@@ -9878,7 +9877,7 @@ const yr = bt("ai", () => {
|
|
|
9878
9877
|
chatStyles: w,
|
|
9879
9878
|
undoAction: L,
|
|
9880
9879
|
connectSocket: _,
|
|
9881
|
-
sendMessage:
|
|
9880
|
+
sendMessage: B,
|
|
9882
9881
|
setInitialPayload: S,
|
|
9883
9882
|
cancelRequest: re
|
|
9884
9883
|
};
|
|
@@ -10179,18 +10178,18 @@ const yr = bt("ai", () => {
|
|
|
10179
10178
|
});
|
|
10180
10179
|
function x() {
|
|
10181
10180
|
const L = /* @__PURE__ */ new Map(), I = [];
|
|
10182
|
-
for (const [
|
|
10183
|
-
L.set(
|
|
10184
|
-
const
|
|
10185
|
-
return
|
|
10186
|
-
delete
|
|
10181
|
+
for (const [B, P] of c.value.entries())
|
|
10182
|
+
L.set(B, P.selected), I.push(P);
|
|
10183
|
+
const D = JSON.parse(JSON.stringify(I));
|
|
10184
|
+
return D.forEach((B) => {
|
|
10185
|
+
delete B.selected;
|
|
10187
10186
|
const P = /* @__PURE__ */ new Map(), U = [];
|
|
10188
|
-
|
|
10189
|
-
$.Selected = L.get(
|
|
10190
|
-
}),
|
|
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($)) : U.push($);
|
|
10189
|
+
}), B.lineItems = U.map(($) => ({ ...$, options: P.get($.id) || [] })), delete B.loading, delete B.parentQLIs, delete B.totalValues;
|
|
10191
10190
|
}), {
|
|
10192
10191
|
showOptions: m.value,
|
|
10193
|
-
sections:
|
|
10192
|
+
sections: D,
|
|
10194
10193
|
templateId: i.value
|
|
10195
10194
|
};
|
|
10196
10195
|
}
|
|
@@ -10203,10 +10202,10 @@ const yr = bt("ai", () => {
|
|
|
10203
10202
|
}
|
|
10204
10203
|
}
|
|
10205
10204
|
async function v(L) {
|
|
10206
|
-
var I,
|
|
10205
|
+
var I, D;
|
|
10207
10206
|
try {
|
|
10208
10207
|
u.value.template = !0;
|
|
10209
|
-
let
|
|
10208
|
+
let B = await window.salesforceConnector.fetchContentTemplates(
|
|
10210
10209
|
JSON.stringify({
|
|
10211
10210
|
lstObjectName: [L],
|
|
10212
10211
|
templateType: "Document",
|
|
@@ -10214,20 +10213,20 @@ const yr = bt("ai", () => {
|
|
|
10214
10213
|
fetchOnlyDefault: !1
|
|
10215
10214
|
})
|
|
10216
10215
|
);
|
|
10217
|
-
|
|
10218
|
-
const P =
|
|
10219
|
-
return i.value || (i.value = (I = P.find((U) => U.XX_ORD1__Default__c)) == null ? void 0 : I.Id), i.value || (i.value = (
|
|
10220
|
-
} catch (
|
|
10221
|
-
e.handleError(
|
|
10216
|
+
B = Ut(B);
|
|
10217
|
+
const P = B == null ? void 0 : B.templates[L];
|
|
10218
|
+
return i.value || (i.value = (I = P.find((U) => U.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
|
+
} catch (B) {
|
|
10220
|
+
e.handleError(B.message), console.info("[ERROR]: fetchTemplates() error = ", B);
|
|
10222
10221
|
}
|
|
10223
10222
|
}
|
|
10224
10223
|
function g(L) {
|
|
10225
10224
|
if (!L)
|
|
10226
10225
|
return null;
|
|
10227
|
-
const I = /\{!\$(\w+):([\w.]+)\}/,
|
|
10228
|
-
return
|
|
10229
|
-
function:
|
|
10230
|
-
apiname:
|
|
10226
|
+
const I = /\{!\$(\w+):([\w.]+)\}/, D = L.match(I);
|
|
10227
|
+
return D ? {
|
|
10228
|
+
function: D[1],
|
|
10229
|
+
apiname: D[2].split(".")[1]
|
|
10231
10230
|
} : null;
|
|
10232
10231
|
}
|
|
10233
10232
|
async function k(L) {
|
|
@@ -10246,33 +10245,33 @@ const yr = bt("ai", () => {
|
|
|
10246
10245
|
u.value.filteredList = !0;
|
|
10247
10246
|
let L = await window.salesforceConnector.getQuoteEPageLayout();
|
|
10248
10247
|
c.value.clear(), n.cartItemColumnsMap = {}, L = Ut(L);
|
|
10249
|
-
const I = L.map((
|
|
10250
|
-
label:
|
|
10251
|
-
field:
|
|
10252
|
-
isEditable:
|
|
10253
|
-
dataType:
|
|
10254
|
-
...
|
|
10255
|
-
})),
|
|
10256
|
-
return c.value.set(
|
|
10248
|
+
const I = L.map((B) => ({
|
|
10249
|
+
label: B.fieldLabel,
|
|
10250
|
+
field: B.fieldName.toLowerCase(),
|
|
10251
|
+
isEditable: B.isEditable,
|
|
10252
|
+
dataType: B.dataType,
|
|
10253
|
+
...B.picklistValues ? { picklistValues: B.picklistValues } : {}
|
|
10254
|
+
})), D = cr();
|
|
10255
|
+
return c.value.set(D, {
|
|
10257
10256
|
loading: !0,
|
|
10258
10257
|
lineItems: [],
|
|
10259
10258
|
parentQLIs: [],
|
|
10260
10259
|
columns: I,
|
|
10261
|
-
tableId:
|
|
10260
|
+
tableId: D,
|
|
10262
10261
|
sectionName: "All Rows",
|
|
10263
10262
|
selected: /* @__PURE__ */ new Map(),
|
|
10264
10263
|
// footer: footerParser(item.XX_ORD1__Table_Footer_HTML__c),
|
|
10265
10264
|
filters: [],
|
|
10266
10265
|
primarysort: "XX_ORD1__Sequence__c",
|
|
10267
10266
|
primarysortdesc: ""
|
|
10268
|
-
}), n.cartItemColumnsMap[
|
|
10267
|
+
}), n.cartItemColumnsMap[D] = I, b.value.isActive = !1, m.value = !0, s.value = {
|
|
10269
10268
|
lstCB: [
|
|
10270
10269
|
{
|
|
10271
10270
|
columns: I,
|
|
10272
10271
|
footer: null,
|
|
10273
10272
|
title: "All Rows",
|
|
10274
10273
|
sectionName: "All Rows",
|
|
10275
|
-
tableId:
|
|
10274
|
+
tableId: D,
|
|
10276
10275
|
filters: [],
|
|
10277
10276
|
primarysort: "XX_ORD1__Sequence__c",
|
|
10278
10277
|
primarysortdesc: ""
|
|
@@ -10297,8 +10296,8 @@ const yr = bt("ai", () => {
|
|
|
10297
10296
|
);
|
|
10298
10297
|
k(i.value), L = Ut(L), console.info("res.lstCB = ", L.lstCB);
|
|
10299
10298
|
const I = L == null ? void 0 : L.objectFieldsMap;
|
|
10300
|
-
return c.value.clear(), n.cartItemColumnsMap = {}, L.lstCB = L.lstCB.map((
|
|
10301
|
-
const { fields:
|
|
10299
|
+
return c.value.clear(), n.cartItemColumnsMap = {}, L.lstCB = L.lstCB.map((D) => {
|
|
10300
|
+
const { fields: B, filters: P, primarysort: U, primarysortdesc: $ } = JSON.parse(D.XX_ORD1__Block_Properties__c), V = B.map((ee) => {
|
|
10302
10301
|
var Y;
|
|
10303
10302
|
return {
|
|
10304
10303
|
label: (Y = I[ee.api]) == null ? void 0 : Y.label,
|
|
@@ -10307,24 +10306,24 @@ const yr = bt("ai", () => {
|
|
|
10307
10306
|
dataType: I[ee.api].dataType,
|
|
10308
10307
|
...I[ee.api].picklistValues ? { picklistValues: I[ee.api].picklistValues } : {}
|
|
10309
10308
|
};
|
|
10310
|
-
}), Q =
|
|
10309
|
+
}), Q = D.Id || cr();
|
|
10311
10310
|
return c.value.set(Q, {
|
|
10312
10311
|
loading: !0,
|
|
10313
10312
|
lineItems: [],
|
|
10314
10313
|
parentQLIs: [],
|
|
10315
10314
|
columns: V,
|
|
10316
10315
|
tableId: Q,
|
|
10317
|
-
sectionName:
|
|
10316
|
+
sectionName: D.Name,
|
|
10318
10317
|
selected: /* @__PURE__ */ new Map(),
|
|
10319
|
-
footer: g(
|
|
10318
|
+
footer: g(D.XX_ORD1__Table_Footer_HTML__c),
|
|
10320
10319
|
filters: P,
|
|
10321
10320
|
primarysort: U,
|
|
10322
10321
|
primarysortdesc: $
|
|
10323
10322
|
}), n.cartItemColumnsMap[Q] = V, b.value.isActive = !1, m.value = !0, {
|
|
10324
10323
|
columns: V,
|
|
10325
|
-
footer: g(
|
|
10326
|
-
title:
|
|
10327
|
-
sectionName:
|
|
10324
|
+
footer: g(D.XX_ORD1__Table_Footer_HTML__c),
|
|
10325
|
+
title: D.Name,
|
|
10326
|
+
sectionName: D.Name,
|
|
10328
10327
|
tableId: Q,
|
|
10329
10328
|
filters: P,
|
|
10330
10329
|
primarysort: U,
|
|
@@ -10337,19 +10336,19 @@ const yr = bt("ai", () => {
|
|
|
10337
10336
|
}
|
|
10338
10337
|
async function O(L = !0) {
|
|
10339
10338
|
const I = [];
|
|
10340
|
-
for (const [
|
|
10341
|
-
I.push(_(
|
|
10339
|
+
for (const [D] of c.value)
|
|
10340
|
+
I.push(_(D, L));
|
|
10342
10341
|
return await Promise.all(I), n.getProductCount(), !0;
|
|
10343
10342
|
}
|
|
10344
10343
|
function F(L, I) {
|
|
10345
|
-
return c.value.get(L).columns.some((
|
|
10344
|
+
return c.value.get(L).columns.some((D) => D.field.toLowerCase() === I) || n.cartItemColumnsMap[L].some((D) => D.field.toLowerCase() === I);
|
|
10346
10345
|
}
|
|
10347
10346
|
function S(L, I) {
|
|
10348
|
-
let
|
|
10349
|
-
const
|
|
10350
|
-
return
|
|
10347
|
+
let D = Qo(L);
|
|
10348
|
+
const B = t.pricingSchema, P = F(I, "xx_ord1__nrc__c"), U = F(I, "xx_ord1__sales_price__c"), $ = F(I, "xx_ord1__qty__c");
|
|
10349
|
+
return D = D.map((V) => {
|
|
10351
10350
|
let Q = {};
|
|
10352
|
-
|
|
10351
|
+
B === "nrc/mrc" && (V != null && V.xx_ord1__billing_period__c) ? Q = {
|
|
10353
10352
|
...U ? {
|
|
10354
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,
|
|
10355
10354
|
formattedBillingPeriodValue: V == null ? void 0 : V.xxord1salespricec
|
|
@@ -10360,13 +10359,13 @@ const yr = bt("ai", () => {
|
|
|
10360
10359
|
formattedOneTimeValue: V == null ? void 0 : V.xxord1nrcc
|
|
10361
10360
|
} : {}
|
|
10362
10361
|
// If NRC Column is not present then do not add oneTimeValue
|
|
10363
|
-
} :
|
|
10362
|
+
} : B === "nrc/mrc" && !(V != null && V.xx_ord1__billing_period__c) ? U && (Q = {
|
|
10364
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,
|
|
10365
10364
|
formattedOneTimeValue: V == null ? void 0 : V.xxord1salespricec
|
|
10366
|
-
}) :
|
|
10365
|
+
}) : B !== "nrc/mrc" && (V != null && V.xx_ord1__billing_period__c) ? U && (Q = {
|
|
10367
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,
|
|
10368
10367
|
formattedBillingPeriodValue: V == null ? void 0 : V.xxord1salespricec
|
|
10369
|
-
}) :
|
|
10368
|
+
}) : B !== "nrc/mrc" && !(V != null && V.xx_ord1__billing_period__c) && U && (Q = {
|
|
10370
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,
|
|
10371
10370
|
formattedOneTimeValue: V == null ? void 0 : V.xxord1salespricec
|
|
10372
10371
|
});
|
|
@@ -10381,17 +10380,17 @@ const yr = bt("ai", () => {
|
|
|
10381
10380
|
...Q
|
|
10382
10381
|
};
|
|
10383
10382
|
return re != null && re.billingPeriodValue && (n.hasBillingPeriodInList[I] = !0, n.billingPeriodValue = re == null ? void 0 : re.xx_ord1__billing_period__c), "oneTimeValue" in re && (n.oneTimeFieldAvailable[I] = !0), "billingPeriodValue" in re && (n.billingPeriodFieldAvailable[I] = !0), (re == null ? void 0 : re.oneTimeValue) !== "" && (re == null ? void 0 : re.oneTimeValue) !== null && (n.hasOneTimeValue = !0), re;
|
|
10384
|
-
}),
|
|
10383
|
+
}), D;
|
|
10385
10384
|
}
|
|
10386
10385
|
async function _(L, I = !0) {
|
|
10387
|
-
var
|
|
10386
|
+
var D, B;
|
|
10388
10387
|
try {
|
|
10389
10388
|
const P = c.value.get(L);
|
|
10390
10389
|
if (console.info("sectionData = ", P.sectionName), !P)
|
|
10391
10390
|
return;
|
|
10392
10391
|
P.loading = I, I && (P.lineItems = []);
|
|
10393
10392
|
const { columns: U, filters: $, primarysort: V, primarysortdesc: Q, footer: ee } = P, Y = U.map((ne) => ne.field.toLowerCase());
|
|
10394
|
-
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"), (
|
|
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) => {
|
|
10395
10394
|
Y.includes(ne.field) || Y.push(ne.field);
|
|
10396
10395
|
});
|
|
10397
10396
|
const ie = await A({
|
|
@@ -10404,7 +10403,7 @@ const yr = bt("ai", () => {
|
|
|
10404
10403
|
totalFields: ee ? [ee.apiname] : []
|
|
10405
10404
|
}), fe = ie.lineItems, re = /* @__PURE__ */ new Map();
|
|
10406
10405
|
let Z = [];
|
|
10407
|
-
const G = (
|
|
10406
|
+
const G = (B = ie.fieldTotals) == null ? void 0 : B.map((ne) => ne.totalValue);
|
|
10408
10407
|
fe.forEach((ne) => {
|
|
10409
10408
|
ne.XX_ORD1__Parent_QLI__c ? re.has(ne.XX_ORD1__Parent_QLI__c) ? re.get(ne.XX_ORD1__Parent_QLI__c).push(ne) : re.set(ne.XX_ORD1__Parent_QLI__c, [ne]) : Z.push(ne);
|
|
10410
10409
|
});
|
|
@@ -10446,17 +10445,17 @@ const yr = bt("ai", () => {
|
|
|
10446
10445
|
async function H(L, I) {
|
|
10447
10446
|
try {
|
|
10448
10447
|
f.value = !0;
|
|
10449
|
-
const
|
|
10448
|
+
const D = {
|
|
10450
10449
|
fields: L
|
|
10451
10450
|
};
|
|
10452
|
-
I && (
|
|
10453
|
-
let
|
|
10454
|
-
return typeof
|
|
10451
|
+
I && (D.objectName = I), L.includes("xx_ord1__qty__c") && I === "xx_ord1__ecatalog_item__c" && (D.fields = D.fields.filter((P) => P !== "xx_ord1__qty__c")), L.includes("xx_ord1__sales_price__c") && I !== "xx_ord1__quote_line_item__c" && (D.fields = D.fields.filter((P) => P !== "xx_ord1__sales_price__c"));
|
|
10452
|
+
let B = await window.salesforceConnector.getFieldsData(JSON.stringify(D));
|
|
10453
|
+
return typeof B == "string" && (B = JSON.parse(B)), B != null && B.errorMessage ? (e.handleError(B.errorMessage), null) : (y.value = {
|
|
10455
10454
|
...y.value,
|
|
10456
|
-
...
|
|
10457
|
-
}, console.info("fieldsData.value = ", JSON.stringify(y.value)),
|
|
10458
|
-
} catch (
|
|
10459
|
-
return e.handleError("Failed to get Fields Data. Please try again."), console.info("[ERROR]: getFieldsData() error = ",
|
|
10455
|
+
...B
|
|
10456
|
+
}, console.info("fieldsData.value = ", JSON.stringify(y.value)), B);
|
|
10457
|
+
} catch (D) {
|
|
10458
|
+
return e.handleError("Failed to get Fields Data. Please try again."), console.info("[ERROR]: getFieldsData() error = ", D), null;
|
|
10460
10459
|
} finally {
|
|
10461
10460
|
f.value = !1;
|
|
10462
10461
|
}
|
|
@@ -10469,11 +10468,11 @@ const yr = bt("ai", () => {
|
|
|
10469
10468
|
oe(h2);
|
|
10470
10469
|
}
|
|
10471
10470
|
async function oe(L) {
|
|
10472
|
-
var I,
|
|
10471
|
+
var I, D, B, P, U, $, V, Q, ee;
|
|
10473
10472
|
if (L.payload) {
|
|
10474
10473
|
if ((I = L.payload) != null && I.uiModification) {
|
|
10475
10474
|
const Y = L.payload.uiModification;
|
|
10476
|
-
if (((
|
|
10475
|
+
if (((D = Y.addColumn) == null ? void 0 : D.length) > 0)
|
|
10477
10476
|
if (Y.addColumn.forEach((ie) => {
|
|
10478
10477
|
ie.columns.forEach((fe) => {
|
|
10479
10478
|
fe.field = fe.field.toLowerCase();
|
|
@@ -10485,7 +10484,7 @@ const yr = bt("ai", () => {
|
|
|
10485
10484
|
Y.addColumn.forEach((ie) => {
|
|
10486
10485
|
c.value.get(ie.tableId) && (c.value.get(ie.tableId).columns = [...c.value.get(ie.tableId).columns, ...ie.columns]);
|
|
10487
10486
|
});
|
|
10488
|
-
if (((
|
|
10487
|
+
if (((B = Y.removeColumn) == null ? void 0 : B.length) > 0)
|
|
10489
10488
|
if (Y.removeColumn.forEach((ie) => {
|
|
10490
10489
|
ie.columns = ie.columns.map((fe) => fe.toLowerCase());
|
|
10491
10490
|
}), Y.removeColumn[0].sectionName === "all_section")
|
|
@@ -10533,24 +10532,24 @@ const yr = bt("ai", () => {
|
|
|
10533
10532
|
L.actionFunction === "Reload" && (O(), console.info("Reloading quote line items"));
|
|
10534
10533
|
}
|
|
10535
10534
|
async function W(L) {
|
|
10536
|
-
var I,
|
|
10535
|
+
var I, D;
|
|
10537
10536
|
try {
|
|
10538
|
-
const
|
|
10537
|
+
const B = /* @__PURE__ */ new Set();
|
|
10539
10538
|
for (const P of c.value.keys())
|
|
10540
10539
|
(I = c.value.get(P).lineItems) == null || I.forEach(($) => {
|
|
10541
|
-
$.attributes = null,
|
|
10540
|
+
$.attributes = null, B.add($.id);
|
|
10542
10541
|
});
|
|
10543
10542
|
if (L) {
|
|
10544
10543
|
const P = {
|
|
10545
|
-
lineItemIds: [...
|
|
10544
|
+
lineItemIds: [...B]
|
|
10546
10545
|
}, U = await window.productManagerController.getLineItemAttributes({ request: JSON.stringify(P) }), $ = JSON.parse(U.data);
|
|
10547
10546
|
for (const V of c.value.keys())
|
|
10548
|
-
(
|
|
10547
|
+
(D = c.value.get(V).lineItems) == null || D.forEach((ee) => {
|
|
10549
10548
|
ee.attributes = $[ee.id] || null;
|
|
10550
10549
|
});
|
|
10551
10550
|
}
|
|
10552
|
-
} catch (
|
|
10553
|
-
console.info("[ERROR]: fetchAttributesData() error = ",
|
|
10551
|
+
} catch (B) {
|
|
10552
|
+
console.info("[ERROR]: fetchAttributesData() error = ", B);
|
|
10554
10553
|
}
|
|
10555
10554
|
}
|
|
10556
10555
|
return {
|
|
@@ -10876,15 +10875,15 @@ const _n = bt("comConfigurator", () => {
|
|
|
10876
10875
|
e.value = new g2(t.securityContext, re, Z, G);
|
|
10877
10876
|
}
|
|
10878
10877
|
async function W(re, Z, G) {
|
|
10879
|
-
p.value.init = !0, console.time("CONFIGURATOR INIT CONFIGURATOR"), J(), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "1"), a.value = re, i.value = Z, o.value = G || t.quoteId;
|
|
10878
|
+
p.value.init = !0, console.time("CONFIGURATOR INIT CONFIGURATOR"), J(), console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "1"), a.value = re, i.value = Z || null, o.value = G || t.quoteId;
|
|
10880
10879
|
const X = await I();
|
|
10881
|
-
console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "2"), l.value =
|
|
10880
|
+
console.timeLog("CONFIGURATOR INIT CONFIGURATOR", "2"), l.value = D(X), i.value ? await L() : (P(), u.value = Fo(l.value)), p.value.init = !1;
|
|
10882
10881
|
}
|
|
10883
10882
|
async function L() {
|
|
10884
|
-
await P(),
|
|
10883
|
+
await P(), B(l.value), l.value.categoryOptions.forEach((re) => {
|
|
10885
10884
|
re.itemTypes.forEach((Z) => {
|
|
10886
10885
|
Z.options.forEach((G) => {
|
|
10887
|
-
|
|
10886
|
+
B(G), (S.value.has(G.itemId) || G.relationshipInfo.relationship === "Kit") && Z.selected.push(G.itemId);
|
|
10888
10887
|
});
|
|
10889
10888
|
});
|
|
10890
10889
|
}), l.value = { ...l.value }, u.value = Fo(l.value);
|
|
@@ -10906,7 +10905,7 @@ const _n = bt("comConfigurator", () => {
|
|
|
10906
10905
|
return console.info("error", re.message), !1;
|
|
10907
10906
|
}
|
|
10908
10907
|
}
|
|
10909
|
-
function
|
|
10908
|
+
function D(re) {
|
|
10910
10909
|
d.value.set(i.value, re.attributes), s.value = re.configRules || [];
|
|
10911
10910
|
const Z = /* @__PURE__ */ new Set();
|
|
10912
10911
|
return s.value.forEach((G) => {
|
|
@@ -10916,7 +10915,7 @@ const _n = bt("comConfigurator", () => {
|
|
|
10916
10915
|
}), X.affectedOptions.forEach((ne) => {
|
|
10917
10916
|
Z.add(ne);
|
|
10918
10917
|
});
|
|
10919
|
-
}), console.info("rulesByPublishKey", Z), re.categoryOptions || (re.categoryOptions = []),
|
|
10918
|
+
}), console.info("rulesByPublishKey", Z), re.categoryOptions || (re.categoryOptions = []), B(re), re.categoryOptions.forEach((G) => {
|
|
10920
10919
|
G.key = G.category.toLowerCase().replace(/\s+/g, "-").replace(/[&]/g, ""), G.itemTypes.forEach((X) => {
|
|
10921
10920
|
X.selected = [], X.numberOfColumns || (X.numberOfColumns = 1), X.numberOfColumns > 1 && (X.lightboxAttributes = !0), X.maxNumber || (X.maxNumber = 100), X.minNumber || (X.minNumber = 0), X.maxQuantity || (X.maxQuantity = 1e4), X.minQuantity || (X.minQuantity = 1), X.maxNumber === 1 ? (X.isRadio = !0, X.minMessage = "Please select 1 option", X.maxMessage = "", X.isKit = X.options.some((ne) => ne.relationshipInfo.relationship === "Kit")) : (X.minMessage = `Minimum of ${X.minNumber} selection${X.minNumber !== 1 ? "s" : ""} required`, X.maxMessage = `Maximum of ${X.maxNumber} selection${X.maxNumber !== 1 ? "s" : ""} allowed`), X.options.forEach((ne) => {
|
|
10922
10921
|
G.showImage = G.showImage || !!ne.defaultImageURL, ne.showAttributesModal = !1, ne.calculateRules = Z.has("option." + ne.publishKey) || !!ne.relationshipInfo.pricingRuleFormula, ne.calculatePricing = !!ne.relationshipInfo.pricingRuleFormula, console.info("option.calculatePricing, option.calculateRules, ", ne.itemName, ne.calculatePricing, ne.calculateRules), ne.qty = X.minQuantity || 1, ne.getTags = () => (ne.attributes = ne.attributes || [], ne.attributes.filter((te) => te.value !== null && te.value !== "").map((te) => ({
|
|
@@ -10926,12 +10925,12 @@ const _n = bt("comConfigurator", () => {
|
|
|
10926
10925
|
get: function() {
|
|
10927
10926
|
return ne.relationshipInfo.relationship === "Kit" || (X.isRadio ? X.isKit : !X.selected.includes(ne.itemId) && X.maxNumber === X.selected.length);
|
|
10928
10927
|
}
|
|
10929
|
-
}),
|
|
10928
|
+
}), B(ne);
|
|
10930
10929
|
});
|
|
10931
10930
|
});
|
|
10932
10931
|
}), re;
|
|
10933
10932
|
}
|
|
10934
|
-
function
|
|
10933
|
+
function B(re) {
|
|
10935
10934
|
var G, X;
|
|
10936
10935
|
re.isAttributes = re.attributes && re.attributes.length > 0;
|
|
10937
10936
|
const Z = re.catalogItem;
|
|
@@ -10981,7 +10980,7 @@ const _n = bt("comConfigurator", () => {
|
|
|
10981
10980
|
color: te[ne.XX_ORD1__SYS_Configuration_Status2__c] || "#57c046",
|
|
10982
10981
|
itemId: ne.XX_ORD1__Item__c
|
|
10983
10982
|
});
|
|
10984
|
-
}), i.value
|
|
10983
|
+
}), i.value || h.value.push({ label: l.value.itemName, value: null }), h.value = h.value.sort((X, ne) => {
|
|
10985
10984
|
const te = (be) => be === "#ff6a6a" ? 1 : be === "#e89c30" ? 2 : be === "#57c046" ? 3 : 4, de = te(X.color), ge = te(ne.color);
|
|
10986
10985
|
return de - ge;
|
|
10987
10986
|
}), p.value.lineItem = !1, Z;
|
|
@@ -13711,7 +13710,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13711
13710
|
__name: "InputList",
|
|
13712
13711
|
props: {
|
|
13713
13712
|
modelValue: {
|
|
13714
|
-
type: [String, Number],
|
|
13713
|
+
type: [String, Number, null],
|
|
13715
13714
|
default: ""
|
|
13716
13715
|
},
|
|
13717
13716
|
options: {
|
|
@@ -13761,7 +13760,13 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13761
13760
|
},
|
|
13762
13761
|
emits: ["update:modelValue", "focus-in", "focus-out", "error"],
|
|
13763
13762
|
setup(e, { emit: n }) {
|
|
13764
|
-
const t = e, r = n, o = z(!1), a = z(!1), i = z(-1), l = z(""), u = z(null), s = z(null), c = z(null), y = (S) => !S || typeof S == "string" ? null : S[t.iconKey] || S.icon || null, f = (S) => !S || typeof S == "string" ? "#828282" : S[t.colorKey] || S.color || "#828282", m = (S) => S ? typeof S == "string" ? S : S[t.labelKey] || S.label || "" : "", d = (S) => S ? typeof S == "string" ? S : S[t.valueKey]
|
|
13763
|
+
const t = e, r = n, o = z(!1), a = z(!1), i = z(-1), l = z(""), u = z(null), s = z(null), c = z(null), y = (S) => !S || typeof S == "string" ? null : S[t.iconKey] || S.icon || null, f = (S) => !S || typeof S == "string" ? "#828282" : S[t.colorKey] || S.color || "#828282", m = (S) => S ? typeof S == "string" ? S : S[t.labelKey] || S.label || "" : "", d = (S) => S ? typeof S == "string" ? S : S[t.valueKey] !== void 0 ? S[t.valueKey] : S.value !== void 0 ? S.value : "" : "", b = ce(() => t.modelValue === "" || t.modelValue === void 0 ? null : t.options.find((S) => {
|
|
13764
|
+
const _ = d(S);
|
|
13765
|
+
return _ === t.modelValue || _ === null && t.modelValue === null;
|
|
13766
|
+
}) || null), h = ce(() => t.modelValue === "" || t.modelValue === void 0 ? t.options : t.options.filter((S) => {
|
|
13767
|
+
const _ = d(S);
|
|
13768
|
+
return _ !== t.modelValue && !(_ === null && t.modelValue === null);
|
|
13769
|
+
})), x = ce(() => (l.value == "" || l.value == null) && (t.modelValue == "" || t.modelValue == null) ? !1 : l.value != t.modelValue), p = ce(() => {
|
|
13765
13770
|
const S = t.error === "" ? !1 : t.error === !0 ? `${t.label || "Field"} is required` : t.error;
|
|
13766
13771
|
return r("error", S), S;
|
|
13767
13772
|
}), v = ce(() => {
|
|
@@ -13870,7 +13875,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13870
13875
|
"data-test-id": `${e.dataTestId}-dropdown`
|
|
13871
13876
|
}, [
|
|
13872
13877
|
(M(!0), q(xe, null, Se(h.value, (A, T) => (M(), q("div", {
|
|
13873
|
-
key: d(A)
|
|
13878
|
+
key: `${d(A)}-${T}`,
|
|
13874
13879
|
class: _e(["dropdown-item", { highlighted: T === i.value }]),
|
|
13875
13880
|
"data-test-id": `${e.dataTestId}-option-${T}`,
|
|
13876
13881
|
onClick: (N) => E(A)
|
|
@@ -13903,7 +13908,7 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13903
13908
|
], 14, Sh)) : le("", !0)
|
|
13904
13909
|
], 40, _h));
|
|
13905
13910
|
}
|
|
13906
|
-
}, Rc = /* @__PURE__ */ we(Fh, [["__scopeId", "data-v-
|
|
13911
|
+
}, Rc = /* @__PURE__ */ we(Fh, [["__scopeId", "data-v-d55a7121"]]), 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 = {
|
|
13907
13912
|
key: 0,
|
|
13908
13913
|
class: "ect-flex ect-gap-1.5 ect-items-center"
|
|
13909
13914
|
}, qh = /* @__PURE__ */ C("span", { class: "ect-text-sm ect-text-gray-700 ect-leading-relaxed" }, "Saving configuration...", -1), $h = {
|
|
@@ -13975,7 +13980,6 @@ const Cl = /* @__PURE__ */ we(O2, [["render", M2]]), ya = (e) => (Lt("data-v-47a
|
|
|
13975
13980
|
async function d() {
|
|
13976
13981
|
n.resetConfigurator();
|
|
13977
13982
|
const b = n.products.find((h) => h.value === s.value.Id);
|
|
13978
|
-
debugger;
|
|
13979
13983
|
b && n.initConfigurator(b.itemId, b.value);
|
|
13980
13984
|
}
|
|
13981
13985
|
return Kt(async () => {
|
|
@@ -16434,21 +16438,21 @@ var Nc = { exports: {} };
|
|
|
16434
16438
|
return W && typeof Symbol == "function" && W.constructor === Symbol && W !== Symbol.prototype ? "symbol" : typeof W;
|
|
16435
16439
|
}, i = /* @__PURE__ */ function() {
|
|
16436
16440
|
function W(L, I) {
|
|
16437
|
-
var
|
|
16441
|
+
var D = [], B = !0, P = !1, U = void 0;
|
|
16438
16442
|
try {
|
|
16439
|
-
for (var $ = L[Symbol.iterator](), V; !(
|
|
16443
|
+
for (var $ = L[Symbol.iterator](), V; !(B = (V = $.next()).done) && (D.push(V.value), !(I && D.length === I)); B = !0)
|
|
16440
16444
|
;
|
|
16441
16445
|
} catch (Q) {
|
|
16442
16446
|
P = !0, U = Q;
|
|
16443
16447
|
} finally {
|
|
16444
16448
|
try {
|
|
16445
|
-
!
|
|
16449
|
+
!B && $.return && $.return();
|
|
16446
16450
|
} finally {
|
|
16447
16451
|
if (P)
|
|
16448
16452
|
throw U;
|
|
16449
16453
|
}
|
|
16450
16454
|
}
|
|
16451
|
-
return
|
|
16455
|
+
return D;
|
|
16452
16456
|
}
|
|
16453
16457
|
return function(L, I) {
|
|
16454
16458
|
if (Array.isArray(L))
|
|
@@ -16459,13 +16463,13 @@ var Nc = { exports: {} };
|
|
|
16459
16463
|
};
|
|
16460
16464
|
}(), l = /* @__PURE__ */ function() {
|
|
16461
16465
|
function W(L, I) {
|
|
16462
|
-
for (var
|
|
16463
|
-
var
|
|
16464
|
-
|
|
16466
|
+
for (var D = 0; D < I.length; D++) {
|
|
16467
|
+
var B = I[D];
|
|
16468
|
+
B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(L, B.key, B);
|
|
16465
16469
|
}
|
|
16466
16470
|
}
|
|
16467
|
-
return function(L, I,
|
|
16468
|
-
return I && W(L.prototype, I),
|
|
16471
|
+
return function(L, I, D) {
|
|
16472
|
+
return I && W(L.prototype, I), D && W(L, D), L;
|
|
16469
16473
|
};
|
|
16470
16474
|
}();
|
|
16471
16475
|
o(50);
|
|
@@ -16498,23 +16502,23 @@ var Nc = { exports: {} };
|
|
|
16498
16502
|
}
|
|
16499
16503
|
}, {
|
|
16500
16504
|
key: "register",
|
|
16501
|
-
value: function(I,
|
|
16502
|
-
var
|
|
16505
|
+
value: function(I, D) {
|
|
16506
|
+
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
16503
16507
|
if (typeof I != "string") {
|
|
16504
16508
|
var U = I.attrName || I.blotName;
|
|
16505
|
-
typeof U == "string" ? this.register("formats/" + U, I,
|
|
16506
|
-
|
|
16509
|
+
typeof U == "string" ? this.register("formats/" + U, I, D) : Object.keys(I).forEach(function($) {
|
|
16510
|
+
B.register($, I[$], D);
|
|
16507
16511
|
});
|
|
16508
16512
|
} else
|
|
16509
|
-
this.imports[I] != null && !P && T.warn("Overwriting " + I + " with",
|
|
16513
|
+
this.imports[I] != null && !P && T.warn("Overwriting " + I + " with", D), this.imports[I] = D, (I.startsWith("blots/") || I.startsWith("formats/")) && D.blotName !== "abstract" ? x.default.register(D) : I.startsWith("modules") && typeof D.register == "function" && D.register();
|
|
16510
16514
|
}
|
|
16511
16515
|
}]);
|
|
16512
16516
|
function W(L) {
|
|
16513
|
-
var I = this,
|
|
16514
|
-
if (A(this, W), this.options = H(L,
|
|
16517
|
+
var I = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16518
|
+
if (A(this, W), this.options = H(L, D), this.container = this.options.container, this.container == null)
|
|
16515
16519
|
return T.error("Invalid Quill container", L);
|
|
16516
16520
|
this.options.debug && W.debug(this.options.debug);
|
|
16517
|
-
var
|
|
16521
|
+
var B = this.container.innerHTML.trim();
|
|
16518
16522
|
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, {
|
|
16519
16523
|
emitter: this.emitter,
|
|
16520
16524
|
whitelist: this.options.formats
|
|
@@ -16526,18 +16530,18 @@ var Nc = { exports: {} };
|
|
|
16526
16530
|
return I.editor.update(null, $, Q);
|
|
16527
16531
|
}, U);
|
|
16528
16532
|
});
|
|
16529
|
-
var P = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` +
|
|
16533
|
+
var P = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + B + "<p><br></p></div>");
|
|
16530
16534
|
this.setContents(P), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
16531
16535
|
}
|
|
16532
16536
|
return l(W, [{
|
|
16533
16537
|
key: "addContainer",
|
|
16534
16538
|
value: function(I) {
|
|
16535
|
-
var
|
|
16539
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
16536
16540
|
if (typeof I == "string") {
|
|
16537
|
-
var
|
|
16538
|
-
I = document.createElement("div"), I.classList.add(
|
|
16541
|
+
var B = I;
|
|
16542
|
+
I = document.createElement("div"), I.classList.add(B);
|
|
16539
16543
|
}
|
|
16540
|
-
return this.container.insertBefore(I,
|
|
16544
|
+
return this.container.insertBefore(I, D), I;
|
|
16541
16545
|
}
|
|
16542
16546
|
}, {
|
|
16543
16547
|
key: "blur",
|
|
@@ -16546,11 +16550,11 @@ var Nc = { exports: {} };
|
|
|
16546
16550
|
}
|
|
16547
16551
|
}, {
|
|
16548
16552
|
key: "deleteText",
|
|
16549
|
-
value: function(I,
|
|
16550
|
-
var P = this, U = J(I,
|
|
16551
|
-
return I = $[0],
|
|
16552
|
-
return P.editor.deleteText(I,
|
|
16553
|
-
},
|
|
16553
|
+
value: function(I, D, B) {
|
|
16554
|
+
var P = this, U = J(I, D, B), $ = i(U, 4);
|
|
16555
|
+
return I = $[0], D = $[1], B = $[3], j.call(this, function() {
|
|
16556
|
+
return P.editor.deleteText(I, D);
|
|
16557
|
+
}, B, I, -1 * D);
|
|
16554
16558
|
}
|
|
16555
16559
|
}, {
|
|
16556
16560
|
key: "disable",
|
|
@@ -16571,64 +16575,64 @@ var Nc = { exports: {} };
|
|
|
16571
16575
|
}
|
|
16572
16576
|
}, {
|
|
16573
16577
|
key: "format",
|
|
16574
|
-
value: function(I,
|
|
16575
|
-
var
|
|
16578
|
+
value: function(I, D) {
|
|
16579
|
+
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : m.default.sources.API;
|
|
16576
16580
|
return j.call(this, function() {
|
|
16577
|
-
var U =
|
|
16581
|
+
var U = B.getSelection(!0), $ = new s.default();
|
|
16578
16582
|
if (U == null)
|
|
16579
16583
|
return $;
|
|
16580
16584
|
if (x.default.query(I, x.default.Scope.BLOCK))
|
|
16581
|
-
$ =
|
|
16585
|
+
$ = B.editor.formatLine(U.index, U.length, _({}, I, D));
|
|
16582
16586
|
else {
|
|
16583
16587
|
if (U.length === 0)
|
|
16584
|
-
return
|
|
16585
|
-
$ =
|
|
16588
|
+
return B.selection.format(I, D), $;
|
|
16589
|
+
$ = B.editor.formatText(U.index, U.length, _({}, I, D));
|
|
16586
16590
|
}
|
|
16587
|
-
return
|
|
16591
|
+
return B.setSelection(U, m.default.sources.SILENT), $;
|
|
16588
16592
|
}, P);
|
|
16589
16593
|
}
|
|
16590
16594
|
}, {
|
|
16591
16595
|
key: "formatLine",
|
|
16592
|
-
value: function(I,
|
|
16593
|
-
var $ = this, V = void 0, Q = J(I,
|
|
16594
|
-
return I = ee[0],
|
|
16595
|
-
return $.editor.formatLine(I,
|
|
16596
|
+
value: function(I, D, B, P, U) {
|
|
16597
|
+
var $ = this, V = void 0, Q = J(I, D, B, P, U), ee = i(Q, 4);
|
|
16598
|
+
return I = ee[0], D = ee[1], V = ee[2], U = ee[3], j.call(this, function() {
|
|
16599
|
+
return $.editor.formatLine(I, D, V);
|
|
16596
16600
|
}, U, I, 0);
|
|
16597
16601
|
}
|
|
16598
16602
|
}, {
|
|
16599
16603
|
key: "formatText",
|
|
16600
|
-
value: function(I,
|
|
16601
|
-
var $ = this, V = void 0, Q = J(I,
|
|
16602
|
-
return I = ee[0],
|
|
16603
|
-
return $.editor.formatText(I,
|
|
16604
|
+
value: function(I, D, B, P, U) {
|
|
16605
|
+
var $ = this, V = void 0, Q = J(I, D, B, P, U), ee = i(Q, 4);
|
|
16606
|
+
return I = ee[0], D = ee[1], V = ee[2], U = ee[3], j.call(this, function() {
|
|
16607
|
+
return $.editor.formatText(I, D, V);
|
|
16604
16608
|
}, U, I, 0);
|
|
16605
16609
|
}
|
|
16606
16610
|
}, {
|
|
16607
16611
|
key: "getBounds",
|
|
16608
16612
|
value: function(I) {
|
|
16609
|
-
var
|
|
16610
|
-
typeof I == "number" ?
|
|
16613
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, B = void 0;
|
|
16614
|
+
typeof I == "number" ? B = this.selection.getBounds(I, D) : B = this.selection.getBounds(I.index, I.length);
|
|
16611
16615
|
var P = this.container.getBoundingClientRect();
|
|
16612
16616
|
return {
|
|
16613
|
-
bottom:
|
|
16614
|
-
height:
|
|
16615
|
-
left:
|
|
16616
|
-
right:
|
|
16617
|
-
top:
|
|
16618
|
-
width:
|
|
16617
|
+
bottom: B.bottom - P.top,
|
|
16618
|
+
height: B.height,
|
|
16619
|
+
left: B.left - P.left,
|
|
16620
|
+
right: B.right - P.left,
|
|
16621
|
+
top: B.top - P.top,
|
|
16622
|
+
width: B.width
|
|
16619
16623
|
};
|
|
16620
16624
|
}
|
|
16621
16625
|
}, {
|
|
16622
16626
|
key: "getContents",
|
|
16623
16627
|
value: function() {
|
|
16624
|
-
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
16625
|
-
return I = P[0],
|
|
16628
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - I, B = J(I, D), P = i(B, 2);
|
|
16629
|
+
return I = P[0], D = P[1], this.editor.getContents(I, D);
|
|
16626
16630
|
}
|
|
16627
16631
|
}, {
|
|
16628
16632
|
key: "getFormat",
|
|
16629
16633
|
value: function() {
|
|
16630
|
-
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0),
|
|
16631
|
-
return typeof I == "number" ? this.editor.getFormat(I,
|
|
16634
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
16635
|
+
return typeof I == "number" ? this.editor.getFormat(I, D) : this.editor.getFormat(I.index, I.length);
|
|
16632
16636
|
}
|
|
16633
16637
|
}, {
|
|
16634
16638
|
key: "getIndex",
|
|
@@ -16653,8 +16657,8 @@ var Nc = { exports: {} };
|
|
|
16653
16657
|
}, {
|
|
16654
16658
|
key: "getLines",
|
|
16655
16659
|
value: function() {
|
|
16656
|
-
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
16657
|
-
return typeof I != "number" ? this.scroll.lines(I.index, I.length) : this.scroll.lines(I,
|
|
16660
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
|
|
16661
|
+
return typeof I != "number" ? this.scroll.lines(I.index, I.length) : this.scroll.lines(I, D);
|
|
16658
16662
|
}
|
|
16659
16663
|
}, {
|
|
16660
16664
|
key: "getModule",
|
|
@@ -16670,8 +16674,8 @@ var Nc = { exports: {} };
|
|
|
16670
16674
|
}, {
|
|
16671
16675
|
key: "getText",
|
|
16672
16676
|
value: function() {
|
|
16673
|
-
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
16674
|
-
return I = P[0],
|
|
16677
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - I, B = J(I, D), P = i(B, 2);
|
|
16678
|
+
return I = P[0], D = P[1], this.editor.getText(I, D);
|
|
16675
16679
|
}
|
|
16676
16680
|
}, {
|
|
16677
16681
|
key: "hasFocus",
|
|
@@ -16680,19 +16684,19 @@ var Nc = { exports: {} };
|
|
|
16680
16684
|
}
|
|
16681
16685
|
}, {
|
|
16682
16686
|
key: "insertEmbed",
|
|
16683
|
-
value: function(I,
|
|
16687
|
+
value: function(I, D, B) {
|
|
16684
16688
|
var P = this, U = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : W.sources.API;
|
|
16685
16689
|
return j.call(this, function() {
|
|
16686
|
-
return P.editor.insertEmbed(I,
|
|
16690
|
+
return P.editor.insertEmbed(I, D, B);
|
|
16687
16691
|
}, U, I);
|
|
16688
16692
|
}
|
|
16689
16693
|
}, {
|
|
16690
16694
|
key: "insertText",
|
|
16691
|
-
value: function(I,
|
|
16692
|
-
var $ = this, V = void 0, Q = J(I, 0,
|
|
16695
|
+
value: function(I, D, B, P, U) {
|
|
16696
|
+
var $ = this, V = void 0, Q = J(I, 0, B, P, U), ee = i(Q, 4);
|
|
16693
16697
|
return I = ee[0], V = ee[2], U = ee[3], j.call(this, function() {
|
|
16694
|
-
return $.editor.insertText(I,
|
|
16695
|
-
}, U, I,
|
|
16698
|
+
return $.editor.insertText(I, D, V);
|
|
16699
|
+
}, U, I, D.length);
|
|
16696
16700
|
}
|
|
16697
16701
|
}, {
|
|
16698
16702
|
key: "isEnabled",
|
|
@@ -16716,16 +16720,16 @@ var Nc = { exports: {} };
|
|
|
16716
16720
|
}
|
|
16717
16721
|
}, {
|
|
16718
16722
|
key: "pasteHTML",
|
|
16719
|
-
value: function(I,
|
|
16720
|
-
this.clipboard.dangerouslyPasteHTML(I,
|
|
16723
|
+
value: function(I, D, B) {
|
|
16724
|
+
this.clipboard.dangerouslyPasteHTML(I, D, B);
|
|
16721
16725
|
}
|
|
16722
16726
|
}, {
|
|
16723
16727
|
key: "removeFormat",
|
|
16724
|
-
value: function(I,
|
|
16725
|
-
var P = this, U = J(I,
|
|
16726
|
-
return I = $[0],
|
|
16727
|
-
return P.editor.removeFormat(I,
|
|
16728
|
-
},
|
|
16728
|
+
value: function(I, D, B) {
|
|
16729
|
+
var P = this, U = J(I, D, B), $ = i(U, 4);
|
|
16730
|
+
return I = $[0], D = $[1], B = $[3], j.call(this, function() {
|
|
16731
|
+
return P.editor.removeFormat(I, D);
|
|
16732
|
+
}, B, I);
|
|
16729
16733
|
}
|
|
16730
16734
|
}, {
|
|
16731
16735
|
key: "scrollIntoView",
|
|
@@ -16735,45 +16739,45 @@ var Nc = { exports: {} };
|
|
|
16735
16739
|
}, {
|
|
16736
16740
|
key: "setContents",
|
|
16737
16741
|
value: function(I) {
|
|
16738
|
-
var
|
|
16742
|
+
var D = this, B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m.default.sources.API;
|
|
16739
16743
|
return j.call(this, function() {
|
|
16740
16744
|
I = new s.default(I);
|
|
16741
|
-
var P =
|
|
16745
|
+
var P = D.getLength(), U = D.editor.deleteText(0, P), $ = D.editor.applyDelta(I), V = $.ops[$.ops.length - 1];
|
|
16742
16746
|
V != null && typeof V.insert == "string" && V.insert[V.insert.length - 1] === `
|
|
16743
|
-
` && (
|
|
16747
|
+
` && (D.editor.deleteText(D.getLength() - 1, 1), $.delete(1));
|
|
16744
16748
|
var Q = U.compose($);
|
|
16745
16749
|
return Q;
|
|
16746
|
-
},
|
|
16750
|
+
}, B);
|
|
16747
16751
|
}
|
|
16748
16752
|
}, {
|
|
16749
16753
|
key: "setSelection",
|
|
16750
|
-
value: function(I,
|
|
16754
|
+
value: function(I, D, B) {
|
|
16751
16755
|
if (I == null)
|
|
16752
|
-
this.selection.setRange(null,
|
|
16756
|
+
this.selection.setRange(null, D || W.sources.API);
|
|
16753
16757
|
else {
|
|
16754
|
-
var P = J(I,
|
|
16755
|
-
I = U[0],
|
|
16758
|
+
var P = J(I, D, B), U = i(P, 4);
|
|
16759
|
+
I = U[0], D = U[1], B = U[3], this.selection.setRange(new p.Range(I, D), B), B !== m.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
16756
16760
|
}
|
|
16757
16761
|
}
|
|
16758
16762
|
}, {
|
|
16759
16763
|
key: "setText",
|
|
16760
16764
|
value: function(I) {
|
|
16761
|
-
var
|
|
16762
|
-
return this.setContents(
|
|
16765
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m.default.sources.API, B = new s.default().insert(I);
|
|
16766
|
+
return this.setContents(B, D);
|
|
16763
16767
|
}
|
|
16764
16768
|
}, {
|
|
16765
16769
|
key: "update",
|
|
16766
16770
|
value: function() {
|
|
16767
|
-
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m.default.sources.USER,
|
|
16768
|
-
return this.selection.update(I),
|
|
16771
|
+
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m.default.sources.USER, D = this.scroll.update(I);
|
|
16772
|
+
return this.selection.update(I), D;
|
|
16769
16773
|
}
|
|
16770
16774
|
}, {
|
|
16771
16775
|
key: "updateContents",
|
|
16772
16776
|
value: function(I) {
|
|
16773
|
-
var
|
|
16777
|
+
var D = this, B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m.default.sources.API;
|
|
16774
16778
|
return j.call(this, function() {
|
|
16775
|
-
return I = new s.default(I),
|
|
16776
|
-
},
|
|
16779
|
+
return I = new s.default(I), D.editor.applyDelta(I, B);
|
|
16780
|
+
}, B, !0);
|
|
16777
16781
|
}
|
|
16778
16782
|
}]), W;
|
|
16779
16783
|
}();
|
|
@@ -16810,23 +16814,23 @@ var Nc = { exports: {} };
|
|
|
16810
16814
|
P.modules[U] === !0 && (P.modules[U] = {});
|
|
16811
16815
|
});
|
|
16812
16816
|
});
|
|
16813
|
-
var
|
|
16817
|
+
var D = Object.keys(I.modules).concat(Object.keys(L.modules)), B = D.reduce(function(P, U) {
|
|
16814
16818
|
var $ = N.import("modules/" + U);
|
|
16815
16819
|
return $ == null ? T.error("Cannot load " + U + " module. Are you sure you registered it?") : P[U] = $.DEFAULTS || {}, P;
|
|
16816
16820
|
}, {});
|
|
16817
16821
|
return L.modules != null && L.modules.toolbar && L.modules.toolbar.constructor !== Object && (L.modules.toolbar = {
|
|
16818
16822
|
container: L.modules.toolbar
|
|
16819
|
-
}), L = (0, k.default)(!0, {}, N.DEFAULTS, { modules:
|
|
16823
|
+
}), L = (0, k.default)(!0, {}, N.DEFAULTS, { modules: B }, I, L), ["bounds", "container", "scrollingContainer"].forEach(function(P) {
|
|
16820
16824
|
typeof L[P] == "string" && (L[P] = document.querySelector(L[P]));
|
|
16821
16825
|
}), L.modules = Object.keys(L.modules).reduce(function(P, U) {
|
|
16822
16826
|
return L.modules[U] && (P[U] = L.modules[U]), P;
|
|
16823
16827
|
}, {}), L;
|
|
16824
16828
|
}
|
|
16825
|
-
function j(W, L, I,
|
|
16829
|
+
function j(W, L, I, D) {
|
|
16826
16830
|
if (this.options.strict && !this.isEnabled() && L === m.default.sources.USER)
|
|
16827
16831
|
return new s.default();
|
|
16828
|
-
var
|
|
16829
|
-
if (
|
|
16832
|
+
var B = I == null ? null : this.getSelection(), P = this.editor.delta, U = W();
|
|
16833
|
+
if (B != null && (I === !0 && (I = B.index), D == null ? B = oe(B, U, L) : D !== 0 && (B = oe(B, I, D, L)), this.setSelection(B, m.default.sources.SILENT)), U.length() > 0) {
|
|
16830
16834
|
var $, V = [m.default.events.TEXT_CHANGE, U, P, L];
|
|
16831
16835
|
if (($ = this.emitter).emit.apply($, [m.default.events.EDITOR_CHANGE].concat(V)), L !== m.default.sources.SILENT) {
|
|
16832
16836
|
var Q;
|
|
@@ -16835,26 +16839,26 @@ var Nc = { exports: {} };
|
|
|
16835
16839
|
}
|
|
16836
16840
|
return U;
|
|
16837
16841
|
}
|
|
16838
|
-
function J(W, L, I,
|
|
16842
|
+
function J(W, L, I, D, B) {
|
|
16839
16843
|
var P = {};
|
|
16840
|
-
return typeof W.index == "number" && typeof W.length == "number" ? typeof L != "number" ? (
|
|
16844
|
+
return typeof W.index == "number" && typeof W.length == "number" ? typeof L != "number" ? (B = D, D = I, I = L, L = W.length, W = W.index) : (L = W.length, W = W.index) : typeof L != "number" && (B = D, D = I, I = L, L = 0), (typeof I > "u" ? "undefined" : a(I)) === "object" ? (P = I, B = D) : typeof I == "string" && (D != null ? P[I] = D : B = I), B = B || m.default.sources.API, [W, L, P, B];
|
|
16841
16845
|
}
|
|
16842
|
-
function oe(W, L, I,
|
|
16846
|
+
function oe(W, L, I, D) {
|
|
16843
16847
|
if (W == null)
|
|
16844
16848
|
return null;
|
|
16845
|
-
var
|
|
16849
|
+
var B = void 0, P = void 0;
|
|
16846
16850
|
if (L instanceof s.default) {
|
|
16847
16851
|
var U = [W.index, W.index + W.length].map(function(ee) {
|
|
16848
|
-
return L.transformPosition(ee,
|
|
16852
|
+
return L.transformPosition(ee, D !== m.default.sources.USER);
|
|
16849
16853
|
}), $ = i(U, 2);
|
|
16850
|
-
|
|
16854
|
+
B = $[0], P = $[1];
|
|
16851
16855
|
} else {
|
|
16852
16856
|
var V = [W.index, W.index + W.length].map(function(ee) {
|
|
16853
|
-
return ee < L || ee === L &&
|
|
16857
|
+
return ee < L || ee === L && D === m.default.sources.USER ? ee : I >= 0 ? ee + I : Math.max(L, ee + I);
|
|
16854
16858
|
}), Q = i(V, 2);
|
|
16855
|
-
|
|
16859
|
+
B = Q[0], P = Q[1];
|
|
16856
16860
|
}
|
|
16857
|
-
return new p.Range(
|
|
16861
|
+
return new p.Range(B, P - B);
|
|
16858
16862
|
}
|
|
16859
16863
|
r.expandConfig = H, r.overload = J, r.default = N;
|
|
16860
16864
|
},
|
|
@@ -17378,21 +17382,21 @@ var Nc = { exports: {} };
|
|
|
17378
17382
|
return W && typeof Symbol == "function" && W.constructor === Symbol && W !== Symbol.prototype ? "symbol" : typeof W;
|
|
17379
17383
|
}, i = /* @__PURE__ */ function() {
|
|
17380
17384
|
function W(L, I) {
|
|
17381
|
-
var
|
|
17385
|
+
var D = [], B = !0, P = !1, U = void 0;
|
|
17382
17386
|
try {
|
|
17383
|
-
for (var $ = L[Symbol.iterator](), V; !(
|
|
17387
|
+
for (var $ = L[Symbol.iterator](), V; !(B = (V = $.next()).done) && (D.push(V.value), !(I && D.length === I)); B = !0)
|
|
17384
17388
|
;
|
|
17385
17389
|
} catch (Q) {
|
|
17386
17390
|
P = !0, U = Q;
|
|
17387
17391
|
} finally {
|
|
17388
17392
|
try {
|
|
17389
|
-
!
|
|
17393
|
+
!B && $.return && $.return();
|
|
17390
17394
|
} finally {
|
|
17391
17395
|
if (P)
|
|
17392
17396
|
throw U;
|
|
17393
17397
|
}
|
|
17394
17398
|
}
|
|
17395
|
-
return
|
|
17399
|
+
return D;
|
|
17396
17400
|
}
|
|
17397
17401
|
return function(L, I) {
|
|
17398
17402
|
if (Array.isArray(L))
|
|
@@ -17403,13 +17407,13 @@ var Nc = { exports: {} };
|
|
|
17403
17407
|
};
|
|
17404
17408
|
}(), l = /* @__PURE__ */ function() {
|
|
17405
17409
|
function W(L, I) {
|
|
17406
|
-
for (var
|
|
17407
|
-
var
|
|
17408
|
-
|
|
17410
|
+
for (var D = 0; D < I.length; D++) {
|
|
17411
|
+
var B = I[D];
|
|
17412
|
+
B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(L, B.key, B);
|
|
17409
17413
|
}
|
|
17410
17414
|
}
|
|
17411
|
-
return function(L, I,
|
|
17412
|
-
return I && W(L.prototype, I),
|
|
17415
|
+
return function(L, I, D) {
|
|
17416
|
+
return I && W(L.prototype, I), D && W(L, D), L;
|
|
17413
17417
|
};
|
|
17414
17418
|
}(), u = o(2), s = A(u), c = o(20), y = A(c), f = o(0), m = A(f), d = o(13), b = A(d), h = o(24), x = A(h), p = o(4), v = A(p), g = o(16), k = A(g), w = o(21), E = A(w), O = o(11), F = A(O), S = o(3), _ = A(S);
|
|
17415
17419
|
function A(W) {
|
|
@@ -17429,7 +17433,7 @@ var Nc = { exports: {} };
|
|
|
17429
17433
|
return l(W, [{
|
|
17430
17434
|
key: "applyDelta",
|
|
17431
17435
|
value: function(I) {
|
|
17432
|
-
var
|
|
17436
|
+
var D = this, B = !1;
|
|
17433
17437
|
this.scroll.update();
|
|
17434
17438
|
var P = this.scroll.length();
|
|
17435
17439
|
return this.scroll.batchStart(), I = oe(I), I.reduce(function(U, $) {
|
|
@@ -17438,9 +17442,9 @@ var Nc = { exports: {} };
|
|
|
17438
17442
|
if (typeof $.insert == "string") {
|
|
17439
17443
|
var ee = $.insert;
|
|
17440
17444
|
ee.endsWith(`
|
|
17441
|
-
`) &&
|
|
17442
|
-
`) && (
|
|
17443
|
-
var Y =
|
|
17445
|
+
`) && B && (B = !1, ee = ee.slice(0, -1)), U >= P && !ee.endsWith(`
|
|
17446
|
+
`) && (B = !0), D.scroll.insertAt(U, ee);
|
|
17447
|
+
var Y = D.scroll.line(U), ie = i(Y, 2), fe = ie[0], re = ie[1], Z = (0, _.default)({}, (0, p.bubbleFormats)(fe));
|
|
17444
17448
|
if (fe instanceof v.default) {
|
|
17445
17449
|
var G = fe.descendant(m.default.Leaf, re), X = i(G, 1), ne = X[0];
|
|
17446
17450
|
Z = (0, _.default)(Z, (0, p.bubbleFormats)(ne));
|
|
@@ -17450,71 +17454,71 @@ var Nc = { exports: {} };
|
|
|
17450
17454
|
var te = Object.keys($.insert)[0];
|
|
17451
17455
|
if (te == null)
|
|
17452
17456
|
return U;
|
|
17453
|
-
|
|
17457
|
+
D.scroll.insertAt(U, te, $.insert[te]);
|
|
17454
17458
|
}
|
|
17455
17459
|
P += V;
|
|
17456
17460
|
}
|
|
17457
17461
|
return Object.keys(Q).forEach(function(de) {
|
|
17458
|
-
|
|
17462
|
+
D.scroll.formatAt(U, V, de, Q[de]);
|
|
17459
17463
|
}), U + V;
|
|
17460
17464
|
}, 0), I.reduce(function(U, $) {
|
|
17461
|
-
return typeof $.delete == "number" ? (
|
|
17465
|
+
return typeof $.delete == "number" ? (D.scroll.deleteAt(U, $.delete), U) : U + ($.retain || $.insert.length || 1);
|
|
17462
17466
|
}, 0), this.scroll.batchEnd(), this.update(I);
|
|
17463
17467
|
}
|
|
17464
17468
|
}, {
|
|
17465
17469
|
key: "deleteText",
|
|
17466
|
-
value: function(I,
|
|
17467
|
-
return this.scroll.deleteAt(I,
|
|
17470
|
+
value: function(I, D) {
|
|
17471
|
+
return this.scroll.deleteAt(I, D), this.update(new s.default().retain(I).delete(D));
|
|
17468
17472
|
}
|
|
17469
17473
|
}, {
|
|
17470
17474
|
key: "formatLine",
|
|
17471
|
-
value: function(I,
|
|
17472
|
-
var
|
|
17475
|
+
value: function(I, D) {
|
|
17476
|
+
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17473
17477
|
return this.scroll.update(), Object.keys(P).forEach(function(U) {
|
|
17474
|
-
if (!(
|
|
17475
|
-
var $ =
|
|
17478
|
+
if (!(B.scroll.whitelist != null && !B.scroll.whitelist[U])) {
|
|
17479
|
+
var $ = B.scroll.lines(I, Math.max(D, 1)), V = D;
|
|
17476
17480
|
$.forEach(function(Q) {
|
|
17477
17481
|
var ee = Q.length();
|
|
17478
17482
|
if (!(Q instanceof b.default))
|
|
17479
17483
|
Q.format(U, P[U]);
|
|
17480
17484
|
else {
|
|
17481
|
-
var Y = I - Q.offset(
|
|
17485
|
+
var Y = I - Q.offset(B.scroll), ie = Q.newlineIndex(Y + V) - Y + 1;
|
|
17482
17486
|
Q.formatAt(Y, ie, U, P[U]);
|
|
17483
17487
|
}
|
|
17484
17488
|
V -= ee;
|
|
17485
17489
|
});
|
|
17486
17490
|
}
|
|
17487
|
-
}), this.scroll.optimize(), this.update(new s.default().retain(I).retain(
|
|
17491
|
+
}), this.scroll.optimize(), this.update(new s.default().retain(I).retain(D, (0, E.default)(P)));
|
|
17488
17492
|
}
|
|
17489
17493
|
}, {
|
|
17490
17494
|
key: "formatText",
|
|
17491
|
-
value: function(I,
|
|
17492
|
-
var
|
|
17495
|
+
value: function(I, D) {
|
|
17496
|
+
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17493
17497
|
return Object.keys(P).forEach(function(U) {
|
|
17494
|
-
|
|
17495
|
-
}), this.update(new s.default().retain(I).retain(
|
|
17498
|
+
B.scroll.formatAt(I, D, U, P[U]);
|
|
17499
|
+
}), this.update(new s.default().retain(I).retain(D, (0, E.default)(P)));
|
|
17496
17500
|
}
|
|
17497
17501
|
}, {
|
|
17498
17502
|
key: "getContents",
|
|
17499
|
-
value: function(I,
|
|
17500
|
-
return this.delta.slice(I, I +
|
|
17503
|
+
value: function(I, D) {
|
|
17504
|
+
return this.delta.slice(I, I + D);
|
|
17501
17505
|
}
|
|
17502
17506
|
}, {
|
|
17503
17507
|
key: "getDelta",
|
|
17504
17508
|
value: function() {
|
|
17505
|
-
return this.scroll.lines().reduce(function(I,
|
|
17506
|
-
return I.concat(
|
|
17509
|
+
return this.scroll.lines().reduce(function(I, D) {
|
|
17510
|
+
return I.concat(D.delta());
|
|
17507
17511
|
}, new s.default());
|
|
17508
17512
|
}
|
|
17509
17513
|
}, {
|
|
17510
17514
|
key: "getFormat",
|
|
17511
17515
|
value: function(I) {
|
|
17512
|
-
var
|
|
17513
|
-
|
|
17516
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, B = [], P = [];
|
|
17517
|
+
D === 0 ? this.scroll.path(I).forEach(function($) {
|
|
17514
17518
|
var V = i($, 1), Q = V[0];
|
|
17515
|
-
Q instanceof v.default ?
|
|
17516
|
-
}) : (
|
|
17517
|
-
var U = [
|
|
17519
|
+
Q instanceof v.default ? B.push(Q) : Q instanceof m.default.Leaf && P.push(Q);
|
|
17520
|
+
}) : (B = this.scroll.lines(I, D), P = this.scroll.descendants(m.default.Leaf, I, D));
|
|
17521
|
+
var U = [B, P].map(function($) {
|
|
17518
17522
|
if ($.length === 0)
|
|
17519
17523
|
return {};
|
|
17520
17524
|
for (var V = (0, p.bubbleFormats)($.shift()); Object.keys(V).length > 0; ) {
|
|
@@ -17529,27 +17533,27 @@ var Nc = { exports: {} };
|
|
|
17529
17533
|
}
|
|
17530
17534
|
}, {
|
|
17531
17535
|
key: "getText",
|
|
17532
|
-
value: function(I,
|
|
17533
|
-
return this.getContents(I,
|
|
17534
|
-
return typeof
|
|
17535
|
-
}).map(function(
|
|
17536
|
-
return
|
|
17536
|
+
value: function(I, D) {
|
|
17537
|
+
return this.getContents(I, D).filter(function(B) {
|
|
17538
|
+
return typeof B.insert == "string";
|
|
17539
|
+
}).map(function(B) {
|
|
17540
|
+
return B.insert;
|
|
17537
17541
|
}).join("");
|
|
17538
17542
|
}
|
|
17539
17543
|
}, {
|
|
17540
17544
|
key: "insertEmbed",
|
|
17541
|
-
value: function(I,
|
|
17542
|
-
return this.scroll.insertAt(I,
|
|
17545
|
+
value: function(I, D, B) {
|
|
17546
|
+
return this.scroll.insertAt(I, D, B), this.update(new s.default().retain(I).insert(T({}, D, B)));
|
|
17543
17547
|
}
|
|
17544
17548
|
}, {
|
|
17545
17549
|
key: "insertText",
|
|
17546
|
-
value: function(I,
|
|
17547
|
-
var
|
|
17548
|
-
return
|
|
17550
|
+
value: function(I, D) {
|
|
17551
|
+
var B = this, P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17552
|
+
return D = D.replace(/\r\n/g, `
|
|
17549
17553
|
`).replace(/\r/g, `
|
|
17550
|
-
`), this.scroll.insertAt(I,
|
|
17551
|
-
|
|
17552
|
-
}), this.update(new s.default().retain(I).insert(
|
|
17554
|
+
`), this.scroll.insertAt(I, D), Object.keys(P).forEach(function(U) {
|
|
17555
|
+
B.scroll.formatAt(I, D.length, U, P[U]);
|
|
17556
|
+
}), this.update(new s.default().retain(I).insert(D, (0, E.default)(P)));
|
|
17553
17557
|
}
|
|
17554
17558
|
}, {
|
|
17555
17559
|
key: "isBlank",
|
|
@@ -17563,44 +17567,44 @@ var Nc = { exports: {} };
|
|
|
17563
17567
|
}
|
|
17564
17568
|
}, {
|
|
17565
17569
|
key: "removeFormat",
|
|
17566
|
-
value: function(I,
|
|
17567
|
-
var
|
|
17570
|
+
value: function(I, D) {
|
|
17571
|
+
var B = this.getText(I, D), P = this.scroll.line(I + D), U = i(P, 2), $ = U[0], V = U[1], Q = 0, ee = new s.default();
|
|
17568
17572
|
$ != null && ($ instanceof b.default ? Q = $.newlineIndex(V) - V + 1 : Q = $.length() - V, ee = $.delta().slice(V, V + Q - 1).insert(`
|
|
17569
17573
|
`));
|
|
17570
|
-
var Y = this.getContents(I,
|
|
17574
|
+
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);
|
|
17571
17575
|
return this.applyDelta(fe);
|
|
17572
17576
|
}
|
|
17573
17577
|
}, {
|
|
17574
17578
|
key: "update",
|
|
17575
17579
|
value: function(I) {
|
|
17576
|
-
var
|
|
17577
|
-
if (
|
|
17578
|
-
var U = m.default.find(
|
|
17580
|
+
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(H) && m.default.find(D[0].target)) {
|
|
17582
|
+
var U = m.default.find(D[0].target), $ = (0, p.bubbleFormats)(U), V = U.offset(this.scroll), Q = D[0].oldValue.replace(x.default.CONTENTS, ""), ee = new s.default().insert(Q), Y = new s.default().insert(U.value()), ie = new s.default().retain(V).concat(ee.diff(Y, B));
|
|
17579
17583
|
I = ie.reduce(function(fe, re) {
|
|
17580
17584
|
return re.insert ? fe.insert(re.insert, $) : fe.push(re);
|
|
17581
17585
|
}, new s.default()), this.delta = P.compose(I);
|
|
17582
17586
|
} else
|
|
17583
|
-
this.delta = this.getDelta(), (!I || !(0, F.default)(P.compose(I), this.delta)) && (I = P.diff(this.delta,
|
|
17587
|
+
this.delta = this.getDelta(), (!I || !(0, F.default)(P.compose(I), this.delta)) && (I = P.diff(this.delta, B));
|
|
17584
17588
|
return I;
|
|
17585
17589
|
}
|
|
17586
17590
|
}]), W;
|
|
17587
17591
|
}();
|
|
17588
17592
|
function J(W, L) {
|
|
17589
|
-
return Object.keys(L).reduce(function(I,
|
|
17590
|
-
return W[
|
|
17593
|
+
return Object.keys(L).reduce(function(I, D) {
|
|
17594
|
+
return W[D] == null || (L[D] === W[D] ? I[D] = L[D] : Array.isArray(L[D]) ? L[D].indexOf(W[D]) < 0 && (I[D] = L[D].concat([W[D]])) : I[D] = [L[D], W[D]]), I;
|
|
17591
17595
|
}, {});
|
|
17592
17596
|
}
|
|
17593
17597
|
function oe(W) {
|
|
17594
17598
|
return W.reduce(function(L, I) {
|
|
17595
17599
|
if (I.insert === 1) {
|
|
17596
|
-
var
|
|
17597
|
-
return delete
|
|
17600
|
+
var D = (0, E.default)(I.attributes);
|
|
17601
|
+
return delete D.image, L.insert({ image: I.attributes.image }, D);
|
|
17598
17602
|
}
|
|
17599
17603
|
if (I.attributes != null && (I.attributes.list === !0 || I.attributes.bullet === !0) && (I = (0, E.default)(I), I.attributes.list ? I.attributes.list = "ordered" : (I.attributes.list = "bullet", delete I.attributes.bullet)), typeof I.insert == "string") {
|
|
17600
|
-
var
|
|
17604
|
+
var B = I.insert.replace(/\r\n/g, `
|
|
17601
17605
|
`).replace(/\r/g, `
|
|
17602
17606
|
`);
|
|
17603
|
-
return L.insert(
|
|
17607
|
+
return L.insert(B, I.attributes);
|
|
17604
17608
|
}
|
|
17605
17609
|
return L.push(I);
|
|
17606
17610
|
}, new s.default());
|
|
@@ -17758,10 +17762,10 @@ var Nc = { exports: {} };
|
|
|
17758
17762
|
var L = document.createRange();
|
|
17759
17763
|
if (_ > 0) {
|
|
17760
17764
|
L.setStart(T, J);
|
|
17761
|
-
var I = this.scroll.leaf(S + _),
|
|
17762
|
-
if (j =
|
|
17765
|
+
var I = this.scroll.leaf(S + _), D = a(I, 2);
|
|
17766
|
+
if (j = D[0], J = D[1], j == null)
|
|
17763
17767
|
return null;
|
|
17764
|
-
var
|
|
17768
|
+
var B = j.position(J, !0), P = a(B, 2);
|
|
17765
17769
|
return T = P[0], J = P[1], L.setEnd(T, J), L.getBoundingClientRect();
|
|
17766
17770
|
} else {
|
|
17767
17771
|
var U = "left", $ = void 0;
|
|
@@ -17839,8 +17843,8 @@ var Nc = { exports: {} };
|
|
|
17839
17843
|
var _ = this, A = S.collapsed ? [S.index] : [S.index, S.index + S.length], T = [], N = this.scroll.length();
|
|
17840
17844
|
return A.forEach(function(H, j) {
|
|
17841
17845
|
H = Math.min(N - 1, H);
|
|
17842
|
-
var J = void 0, oe = _.scroll.leaf(H), W = a(oe, 2), L = W[0], I = W[1],
|
|
17843
|
-
J =
|
|
17846
|
+
var J = void 0, oe = _.scroll.leaf(H), W = a(oe, 2), L = W[0], I = W[1], D = L.position(I, j !== 0), B = a(D, 2);
|
|
17847
|
+
J = B[0], I = B[1], T.push(J, I);
|
|
17844
17848
|
}), T.length < 2 && (T = T.concat(T)), T;
|
|
17845
17849
|
}
|
|
17846
17850
|
}, {
|
|
@@ -18362,10 +18366,10 @@ var Nc = { exports: {} };
|
|
|
18362
18366
|
S = new l();
|
|
18363
18367
|
else if (a(O, u))
|
|
18364
18368
|
S = new u(function(L, I) {
|
|
18365
|
-
O.then(function(
|
|
18366
|
-
L(E(
|
|
18367
|
-
}, function(
|
|
18368
|
-
I(E(
|
|
18369
|
+
O.then(function(D) {
|
|
18370
|
+
L(E(D, F - 1));
|
|
18371
|
+
}, function(D) {
|
|
18372
|
+
I(E(D, F - 1));
|
|
18369
18373
|
});
|
|
18370
18374
|
});
|
|
18371
18375
|
else if (s.__isArray(O))
|
|
@@ -18386,8 +18390,8 @@ var Nc = { exports: {} };
|
|
|
18386
18390
|
g.push(O), k.push(S);
|
|
18387
18391
|
}
|
|
18388
18392
|
a(O, i) && O.forEach(function(L, I) {
|
|
18389
|
-
var
|
|
18390
|
-
S.set(
|
|
18393
|
+
var D = E(I, F - 1), B = E(L, F - 1);
|
|
18394
|
+
S.set(D, B);
|
|
18391
18395
|
}), a(O, l) && O.forEach(function(L) {
|
|
18392
18396
|
var I = E(L, F - 1);
|
|
18393
18397
|
S.add(I);
|
|
@@ -18549,14 +18553,14 @@ var Nc = { exports: {} };
|
|
|
18549
18553
|
return;
|
|
18550
18554
|
}
|
|
18551
18555
|
if (J instanceof x.default) {
|
|
18552
|
-
var
|
|
18553
|
-
if (
|
|
18556
|
+
var D = J.newlineIndex(J.length(), !0);
|
|
18557
|
+
if (D > -1 && (J = J.split(D + 1), J === I)) {
|
|
18554
18558
|
this.optimize();
|
|
18555
18559
|
return;
|
|
18556
18560
|
}
|
|
18557
18561
|
} else if (I instanceof x.default) {
|
|
18558
|
-
var
|
|
18559
|
-
|
|
18562
|
+
var B = I.newlineIndex(0);
|
|
18563
|
+
B > -1 && I.split(B + 1);
|
|
18560
18564
|
}
|
|
18561
18565
|
var P = I.children.head instanceof b.default ? null : I.children.head;
|
|
18562
18566
|
J.moveChildren(I, P), J.remove();
|
|
@@ -18616,8 +18620,8 @@ var Nc = { exports: {} };
|
|
|
18616
18620
|
value: function() {
|
|
18617
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, H = function j(J, oe, W) {
|
|
18618
18622
|
var L = [], I = W;
|
|
18619
|
-
return J.children.forEachAt(oe, W, function(
|
|
18620
|
-
O(
|
|
18623
|
+
return J.children.forEachAt(oe, W, function(D, B, P) {
|
|
18624
|
+
O(D) ? L.push(D) : D instanceof s.default.Container && (L = L.concat(j(D, B, I))), I -= P;
|
|
18621
18625
|
}), L;
|
|
18622
18626
|
};
|
|
18623
18627
|
return H(this, T, N);
|
|
@@ -18725,7 +18729,7 @@ var Nc = { exports: {} };
|
|
|
18725
18729
|
var Y = T(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, Q, ee));
|
|
18726
18730
|
return Y.bindings = {}, Object.keys(Y.options.bindings).forEach(function(ie) {
|
|
18727
18731
|
ie === "list autofill" && Q.scroll.whitelist != null && !Q.scroll.whitelist.list || Y.options.bindings[ie] && Y.addBinding(Y.options.bindings[ie]);
|
|
18728
|
-
}), Y.addBinding({ key: V.keys.ENTER, shiftKey: null },
|
|
18732
|
+
}), Y.addBinding({ key: V.keys.ENTER, shiftKey: null }, D), Y.addBinding({ key: V.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
18729
18733
|
}), /Firefox/i.test(navigator.userAgent) ? (Y.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !0 }, W), Y.addBinding({ key: V.keys.DELETE }, { collapsed: !0 }, L)) : (Y.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, W), Y.addBinding({ key: V.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, L)), Y.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !1 }, I), Y.addBinding({ key: V.keys.DELETE }, { collapsed: !1 }, I), Y.addBinding({ key: V.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, W), Y.listen(), Y;
|
|
18730
18734
|
}
|
|
18731
18735
|
return l(V, [{
|
|
@@ -18826,8 +18830,8 @@ var Nc = { exports: {} };
|
|
|
18826
18830
|
Q.format.indent != null ? this.quill.format("indent", "-1", k.default.sources.USER) : Q.format.list != null && this.quill.format("list", !1, k.default.sources.USER);
|
|
18827
18831
|
}
|
|
18828
18832
|
},
|
|
18829
|
-
"indent code-block":
|
|
18830
|
-
"outdent code-block":
|
|
18833
|
+
"indent code-block": B(!0),
|
|
18834
|
+
"outdent code-block": B(!1),
|
|
18831
18835
|
"remove tab": {
|
|
18832
18836
|
key: J.keys.TAB,
|
|
18833
18837
|
shiftKey: !0,
|
|
@@ -18971,7 +18975,7 @@ var Nc = { exports: {} };
|
|
|
18971
18975
|
}
|
|
18972
18976
|
this.quill.deleteText($, k.default.sources.USER), Object.keys(Q).length > 0 && this.quill.formatLine($.index, 1, Q, k.default.sources.USER), this.quill.setSelection($.index, k.default.sources.SILENT), this.quill.focus();
|
|
18973
18977
|
}
|
|
18974
|
-
function
|
|
18978
|
+
function D($, V) {
|
|
18975
18979
|
var Q = this;
|
|
18976
18980
|
$.length > 0 && this.quill.scroll.deleteAt($.index, $.length);
|
|
18977
18981
|
var ee = Object.keys(V.format).reduce(function(Y, ie) {
|
|
@@ -18982,7 +18986,7 @@ var Nc = { exports: {} };
|
|
|
18982
18986
|
ee[Y] == null && (Array.isArray(V.format[Y]) || Y !== "link" && Q.quill.format(Y, V.format[Y], k.default.sources.USER));
|
|
18983
18987
|
});
|
|
18984
18988
|
}
|
|
18985
|
-
function
|
|
18989
|
+
function B($) {
|
|
18986
18990
|
return {
|
|
18987
18991
|
key: J.keys.TAB,
|
|
18988
18992
|
shiftKey: !$,
|
|
@@ -20209,21 +20213,21 @@ var Nc = { exports: {} };
|
|
|
20209
20213
|
value: !0
|
|
20210
20214
|
}), r.default = r.BaseTooltip = void 0;
|
|
20211
20215
|
var a = /* @__PURE__ */ function() {
|
|
20212
|
-
function B
|
|
20216
|
+
function D(B, P) {
|
|
20213
20217
|
for (var U = 0; U < P.length; U++) {
|
|
20214
20218
|
var $ = P[U];
|
|
20215
|
-
$.enumerable = $.enumerable || !1, $.configurable = !0, "value" in $ && ($.writable = !0), Object.defineProperty(
|
|
20219
|
+
$.enumerable = $.enumerable || !1, $.configurable = !0, "value" in $ && ($.writable = !0), Object.defineProperty(B, $.key, $);
|
|
20216
20220
|
}
|
|
20217
20221
|
}
|
|
20218
|
-
return function(
|
|
20219
|
-
return P && B
|
|
20222
|
+
return function(B, P, U) {
|
|
20223
|
+
return P && D(B.prototype, P), U && D(B, U), B;
|
|
20220
20224
|
};
|
|
20221
|
-
}(), i = function B
|
|
20222
|
-
|
|
20223
|
-
var $ = Object.getOwnPropertyDescriptor(
|
|
20225
|
+
}(), i = function D(B, P, U) {
|
|
20226
|
+
B === null && (B = Function.prototype);
|
|
20227
|
+
var $ = Object.getOwnPropertyDescriptor(B, P);
|
|
20224
20228
|
if ($ === void 0) {
|
|
20225
|
-
var V = Object.getPrototypeOf(
|
|
20226
|
-
return V === null ? void 0 :
|
|
20229
|
+
var V = Object.getPrototypeOf(B);
|
|
20230
|
+
return V === null ? void 0 : D(V, P, U);
|
|
20227
20231
|
} else {
|
|
20228
20232
|
if ("value" in $)
|
|
20229
20233
|
return $.value;
|
|
@@ -20231,28 +20235,28 @@ var Nc = { exports: {} };
|
|
|
20231
20235
|
return Q === void 0 ? void 0 : Q.call(U);
|
|
20232
20236
|
}
|
|
20233
20237
|
}, 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);
|
|
20234
|
-
function F(
|
|
20235
|
-
return
|
|
20238
|
+
function F(D) {
|
|
20239
|
+
return D && D.__esModule ? D : { default: D };
|
|
20236
20240
|
}
|
|
20237
|
-
function S(
|
|
20238
|
-
if (!(
|
|
20241
|
+
function S(D, B) {
|
|
20242
|
+
if (!(D instanceof B))
|
|
20239
20243
|
throw new TypeError("Cannot call a class as a function");
|
|
20240
20244
|
}
|
|
20241
|
-
function _(
|
|
20242
|
-
if (!
|
|
20245
|
+
function _(D, B) {
|
|
20246
|
+
if (!D)
|
|
20243
20247
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
20244
|
-
return
|
|
20245
|
-
}
|
|
20246
|
-
function A(
|
|
20247
|
-
if (typeof
|
|
20248
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
20249
|
-
|
|
20250
|
-
}
|
|
20251
|
-
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"], H = [!1, "serif", "monospace"], j = ["1", "2", "3", !1], J = ["small", !1, "large", "huge"], oe = function(
|
|
20252
|
-
A(
|
|
20253
|
-
function
|
|
20254
|
-
S(this,
|
|
20255
|
-
var $ = _(this, (
|
|
20248
|
+
return B && (typeof B == "object" || typeof B == "function") ? B : D;
|
|
20249
|
+
}
|
|
20250
|
+
function A(D, B) {
|
|
20251
|
+
if (typeof B != "function" && B !== null)
|
|
20252
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof B);
|
|
20253
|
+
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
|
+
}
|
|
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"], H = [!1, "serif", "monospace"], j = ["1", "2", "3", !1], J = ["small", !1, "large", "huge"], oe = function(D) {
|
|
20256
|
+
A(B, D);
|
|
20257
|
+
function B(P, U) {
|
|
20258
|
+
S(this, B);
|
|
20259
|
+
var $ = _(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, P, U)), V = function Q(ee) {
|
|
20256
20260
|
if (!document.body.contains(P.root))
|
|
20257
20261
|
return document.body.removeEventListener("click", Q);
|
|
20258
20262
|
$.tooltip != null && !$.tooltip.root.contains(ee.target) && document.activeElement !== $.tooltip.textbox && !$.quill.hasFocus() && $.tooltip.hide(), $.pickers != null && $.pickers.forEach(function(Y) {
|
|
@@ -20261,10 +20265,10 @@ var Nc = { exports: {} };
|
|
|
20261
20265
|
};
|
|
20262
20266
|
return P.emitter.listenDOM("click", document.body, V), $;
|
|
20263
20267
|
}
|
|
20264
|
-
return a(
|
|
20268
|
+
return a(B, [{
|
|
20265
20269
|
key: "addModule",
|
|
20266
20270
|
value: function(U) {
|
|
20267
|
-
var $ = i(
|
|
20271
|
+
var $ = i(B.prototype.__proto__ || Object.getPrototypeOf(B.prototype), "addModule", this).call(this, U);
|
|
20268
20272
|
return U === "toolbar" && this.extendToolbar($), $;
|
|
20269
20273
|
}
|
|
20270
20274
|
}, {
|
|
@@ -20305,7 +20309,7 @@ var Nc = { exports: {} };
|
|
|
20305
20309
|
};
|
|
20306
20310
|
this.quill.on(f.default.events.EDITOR_CHANGE, Q);
|
|
20307
20311
|
}
|
|
20308
|
-
}]),
|
|
20312
|
+
}]), B;
|
|
20309
20313
|
}(h.default);
|
|
20310
20314
|
oe.DEFAULTS = (0, u.default)(!0, {}, h.default.DEFAULTS, {
|
|
20311
20315
|
modules: {
|
|
@@ -20315,13 +20319,13 @@ var Nc = { exports: {} };
|
|
|
20315
20319
|
this.quill.theme.tooltip.edit("formula");
|
|
20316
20320
|
},
|
|
20317
20321
|
image: function() {
|
|
20318
|
-
var
|
|
20322
|
+
var B = this, P = this.container.querySelector("input.ql-image[type=file]");
|
|
20319
20323
|
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() {
|
|
20320
20324
|
if (P.files != null && P.files[0] != null) {
|
|
20321
20325
|
var U = new FileReader();
|
|
20322
20326
|
U.onload = function($) {
|
|
20323
|
-
var V =
|
|
20324
|
-
|
|
20327
|
+
var V = B.quill.getSelection(!0);
|
|
20328
|
+
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 = "";
|
|
20325
20329
|
}, U.readAsDataURL(P.files[0]);
|
|
20326
20330
|
}
|
|
20327
20331
|
}), this.container.appendChild(P)), P.click();
|
|
@@ -20333,14 +20337,14 @@ var Nc = { exports: {} };
|
|
|
20333
20337
|
}
|
|
20334
20338
|
}
|
|
20335
20339
|
});
|
|
20336
|
-
var W = function(
|
|
20337
|
-
A(
|
|
20338
|
-
function
|
|
20339
|
-
S(this,
|
|
20340
|
-
var $ = _(this, (
|
|
20340
|
+
var W = function(D) {
|
|
20341
|
+
A(B, D);
|
|
20342
|
+
function B(P, U) {
|
|
20343
|
+
S(this, B);
|
|
20344
|
+
var $ = _(this, (B.__proto__ || Object.getPrototypeOf(B)).call(this, P, U));
|
|
20341
20345
|
return $.textbox = $.root.querySelector('input[type="text"]'), $.listen(), $;
|
|
20342
20346
|
}
|
|
20343
|
-
return a(
|
|
20347
|
+
return a(B, [{
|
|
20344
20348
|
key: "listen",
|
|
20345
20349
|
value: function() {
|
|
20346
20350
|
var U = this;
|
|
@@ -20390,17 +20394,17 @@ var Nc = { exports: {} };
|
|
|
20390
20394
|
}
|
|
20391
20395
|
this.textbox.value = "", this.hide();
|
|
20392
20396
|
}
|
|
20393
|
-
}]),
|
|
20397
|
+
}]), B;
|
|
20394
20398
|
}(O.default);
|
|
20395
|
-
function L(
|
|
20396
|
-
var
|
|
20397
|
-
return
|
|
20399
|
+
function L(D) {
|
|
20400
|
+
var B = D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
20401
|
+
return B ? (B[1] || "https") + "://www.youtube.com/embed/" + B[2] + "?showinfo=0" : (B = D.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (B[1] || "https") + "://player.vimeo.com/video/" + B[2] + "/" : D;
|
|
20398
20402
|
}
|
|
20399
|
-
function I(
|
|
20403
|
+
function I(D, B) {
|
|
20400
20404
|
var P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
20401
|
-
|
|
20405
|
+
B.forEach(function(U) {
|
|
20402
20406
|
var $ = document.createElement("option");
|
|
20403
|
-
U === P ? $.setAttribute("selected", "selected") : $.setAttribute("value", U),
|
|
20407
|
+
U === P ? $.setAttribute("selected", "selected") : $.setAttribute("value", U), D.appendChild($);
|
|
20404
20408
|
});
|
|
20405
20409
|
}
|
|
20406
20410
|
r.BaseTooltip = W, r.default = oe;
|
|
@@ -20841,11 +20845,11 @@ var Nc = { exports: {} };
|
|
|
20841
20845
|
_[F + 1] = 0, A[F + 1] = 0;
|
|
20842
20846
|
for (var N = w - E, H = N % 2 != 0, j = 0, J = 0, oe = 0, W = 0, L = 0; L < O; L++) {
|
|
20843
20847
|
for (var I = -L + j; I <= L - J; I += 2) {
|
|
20844
|
-
var
|
|
20845
|
-
I == -L || I != L && _[
|
|
20846
|
-
for (var P =
|
|
20847
|
-
|
|
20848
|
-
if (_[
|
|
20848
|
+
var D = F + I, B;
|
|
20849
|
+
I == -L || I != L && _[D - 1] < _[D + 1] ? B = _[D + 1] : B = _[D - 1] + 1;
|
|
20850
|
+
for (var P = B - I; B < w && P < E && g.charAt(B) == k.charAt(P); )
|
|
20851
|
+
B++, P++;
|
|
20852
|
+
if (_[D] = B, B > w)
|
|
20849
20853
|
J += 2;
|
|
20850
20854
|
else if (P > E)
|
|
20851
20855
|
j += 2;
|
|
@@ -20853,8 +20857,8 @@ var Nc = { exports: {} };
|
|
|
20853
20857
|
var U = F + N - I;
|
|
20854
20858
|
if (U >= 0 && U < S && A[U] != -1) {
|
|
20855
20859
|
var $ = w - A[U];
|
|
20856
|
-
if (
|
|
20857
|
-
return c(g, k,
|
|
20860
|
+
if (B >= $)
|
|
20861
|
+
return c(g, k, B, P);
|
|
20858
20862
|
}
|
|
20859
20863
|
}
|
|
20860
20864
|
}
|
|
@@ -20868,11 +20872,11 @@ var Nc = { exports: {} };
|
|
|
20868
20872
|
else if (Q > E)
|
|
20869
20873
|
oe += 2;
|
|
20870
20874
|
else if (!H) {
|
|
20871
|
-
var
|
|
20872
|
-
if (
|
|
20873
|
-
var
|
|
20874
|
-
if ($ = w - $,
|
|
20875
|
-
return c(g, k,
|
|
20875
|
+
var D = F + N - V;
|
|
20876
|
+
if (D >= 0 && D < S && _[D] != -1) {
|
|
20877
|
+
var B = _[D], P = F + B - D;
|
|
20878
|
+
if ($ = w - $, B >= $)
|
|
20879
|
+
return c(g, k, B, P);
|
|
20876
20880
|
}
|
|
20877
20881
|
}
|
|
20878
20882
|
}
|
|
@@ -20902,7 +20906,7 @@ var Nc = { exports: {} };
|
|
|
20902
20906
|
if (w.length < 4 || E.length * 2 < w.length)
|
|
20903
20907
|
return null;
|
|
20904
20908
|
function O(J, oe, W) {
|
|
20905
|
-
for (var L = J.substring(W, W + Math.floor(J.length / 4)), I = -1,
|
|
20909
|
+
for (var L = J.substring(W, W + Math.floor(J.length / 4)), I = -1, D = "", B, P, U, $; (I = oe.indexOf(L, I + 1)) != -1; ) {
|
|
20906
20910
|
var V = y(
|
|
20907
20911
|
J.substring(W),
|
|
20908
20912
|
oe.substring(I)
|
|
@@ -20910,14 +20914,14 @@ var Nc = { exports: {} };
|
|
|
20910
20914
|
J.substring(0, W),
|
|
20911
20915
|
oe.substring(0, I)
|
|
20912
20916
|
);
|
|
20913
|
-
|
|
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), U = oe.substring(0, I - Q), $ = oe.substring(I + V));
|
|
20914
20918
|
}
|
|
20915
|
-
return
|
|
20916
|
-
|
|
20919
|
+
return D.length * 2 >= J.length ? [
|
|
20920
|
+
B,
|
|
20917
20921
|
P,
|
|
20918
20922
|
U,
|
|
20919
20923
|
$,
|
|
20920
|
-
|
|
20924
|
+
D
|
|
20921
20925
|
] : null;
|
|
20922
20926
|
}
|
|
20923
20927
|
var F = O(
|
|
@@ -21233,7 +21237,7 @@ var Nc = { exports: {} };
|
|
|
21233
21237
|
return te[de.keyName] = de, te;
|
|
21234
21238
|
}, {}), I = [g.AlignStyle, k.BackgroundStyle, O.ColorStyle, F.DirectionStyle, S.FontStyle, _.SizeStyle].reduce(function(te, de) {
|
|
21235
21239
|
return te[de.keyName] = de, te;
|
|
21236
|
-
}, {}),
|
|
21240
|
+
}, {}), D = function(te) {
|
|
21237
21241
|
j(de, te);
|
|
21238
21242
|
function de(ge, be) {
|
|
21239
21243
|
N(this, de);
|
|
@@ -21307,13 +21311,13 @@ var Nc = { exports: {} };
|
|
|
21307
21311
|
}
|
|
21308
21312
|
}]), de;
|
|
21309
21313
|
}(v.default);
|
|
21310
|
-
|
|
21314
|
+
D.DEFAULTS = {
|
|
21311
21315
|
matchers: [],
|
|
21312
21316
|
matchVisual: !0
|
|
21313
21317
|
};
|
|
21314
|
-
function
|
|
21318
|
+
function B(te, de, ge) {
|
|
21315
21319
|
return (typeof de > "u" ? "undefined" : a(de)) === "object" ? Object.keys(de).reduce(function(be, ye) {
|
|
21316
|
-
return
|
|
21320
|
+
return B(be, ye, de[ye]);
|
|
21317
21321
|
}, te) : te.reduce(function(be, ye) {
|
|
21318
21322
|
return ye.attributes && ye.attributes[de] ? be.push(ye) : be.insert(ye.insert, (0, s.default)({}, T({}, de, ge), ye.attributes));
|
|
21319
21323
|
}, new y.default());
|
|
@@ -21352,14 +21356,14 @@ var Nc = { exports: {} };
|
|
|
21352
21356
|
}, new y.default()) : new y.default();
|
|
21353
21357
|
}
|
|
21354
21358
|
function Q(te, de, ge) {
|
|
21355
|
-
return
|
|
21359
|
+
return B(ge, te, !0);
|
|
21356
21360
|
}
|
|
21357
21361
|
function ee(te, de) {
|
|
21358
21362
|
var ge = m.default.Attributor.Attribute.keys(te), be = m.default.Attributor.Class.keys(te), ye = m.default.Attributor.Style.keys(te), Oe = {};
|
|
21359
21363
|
return ge.concat(be).concat(ye).forEach(function(Ie) {
|
|
21360
21364
|
var Be = m.default.query(Ie, m.default.Scope.ATTRIBUTE);
|
|
21361
21365
|
Be != null && (Oe[Be.attrName] = Be.value(te), Oe[Be.attrName]) || (Be = L[Ie], Be != null && (Be.attrName === Ie || Be.keyName === Ie) && (Oe[Be.attrName] = Be.value(te) || void 0), Be = I[Ie], Be != null && (Be.attrName === Ie || Be.keyName === Ie) && (Be = I[Ie], Oe[Be.attrName] = Be.value(te) || void 0));
|
|
21362
|
-
}), Object.keys(Oe).length > 0 && (de =
|
|
21366
|
+
}), Object.keys(Oe).length > 0 && (de = B(de, Oe)), de;
|
|
21363
21367
|
}
|
|
21364
21368
|
function Y(te, de) {
|
|
21365
21369
|
var ge = m.default.query(te);
|
|
@@ -21369,7 +21373,7 @@ var Nc = { exports: {} };
|
|
|
21369
21373
|
var be = {}, ye = ge.value(te);
|
|
21370
21374
|
ye != null && (be[ge.blotName] = ye, de = new y.default().insert(be, ge.formats(te)));
|
|
21371
21375
|
} else
|
|
21372
|
-
typeof ge.formats == "function" && (de =
|
|
21376
|
+
typeof ge.formats == "function" && (de = B(de, ge.blotName, ge.formats(te)));
|
|
21373
21377
|
return de;
|
|
21374
21378
|
}
|
|
21375
21379
|
function ie(te, de) {
|
|
@@ -21406,7 +21410,7 @@ var Nc = { exports: {} };
|
|
|
21406
21410
|
}
|
|
21407
21411
|
function X(te, de) {
|
|
21408
21412
|
var ge = {}, be = te.style || {};
|
|
21409
|
-
return be.fontStyle && P(te).fontStyle === "italic" && (ge.italic = !0), be.fontWeight && (P(te).fontWeight.startsWith("bold") || parseInt(P(te).fontWeight) >= 700) && (ge.bold = !0), Object.keys(ge).length > 0 && (de =
|
|
21413
|
+
return be.fontStyle && P(te).fontStyle === "italic" && (ge.italic = !0), be.fontWeight && (P(te).fontWeight.startsWith("bold") || parseInt(P(te).fontWeight) >= 700) && (ge.bold = !0), Object.keys(ge).length > 0 && (de = B(de, ge)), parseFloat(be.textIndent || 0) > 0 && (de = new y.default().insert(" ").concat(de)), de;
|
|
21410
21414
|
}
|
|
21411
21415
|
function ne(te, de) {
|
|
21412
21416
|
var ge = te.data;
|
|
@@ -21422,7 +21426,7 @@ var Nc = { exports: {} };
|
|
|
21422
21426
|
}
|
|
21423
21427
|
return de.insert(ge);
|
|
21424
21428
|
}
|
|
21425
|
-
r.default =
|
|
21429
|
+
r.default = D, r.matchAttributor = ee, r.matchBlot = Y, r.matchNewline = Z, r.matchSpacing = G, r.matchText = ne;
|
|
21426
21430
|
},
|
|
21427
21431
|
/* 56 */
|
|
21428
21432
|
/***/
|
|
@@ -21614,16 +21618,16 @@ var Nc = { exports: {} };
|
|
|
21614
21618
|
} else
|
|
21615
21619
|
N.classList.contains("ql-active") ? W = !1 : W = N.value || !N.hasAttribute("value"), oe.preventDefault();
|
|
21616
21620
|
H.quill.focus();
|
|
21617
|
-
var I = H.quill.selection.getRange(),
|
|
21621
|
+
var I = H.quill.selection.getRange(), D = a(I, 1), B = D[0];
|
|
21618
21622
|
if (H.handlers[j] != null)
|
|
21619
21623
|
H.handlers[j].call(H, W);
|
|
21620
21624
|
else if (c.default.query(j).prototype instanceof c.default.Embed) {
|
|
21621
21625
|
if (W = prompt("Enter " + j), !W)
|
|
21622
21626
|
return;
|
|
21623
|
-
H.quill.updateContents(new u.default().retain(
|
|
21627
|
+
H.quill.updateContents(new u.default().retain(B.index).delete(B.length).insert(p({}, j, W)), f.default.sources.USER);
|
|
21624
21628
|
} else
|
|
21625
21629
|
H.quill.format(j, W, f.default.sources.USER);
|
|
21626
|
-
H.update(
|
|
21630
|
+
H.update(B);
|
|
21627
21631
|
}), this.controls.push([j, N]);
|
|
21628
21632
|
}
|
|
21629
21633
|
}
|
|
@@ -21647,8 +21651,8 @@ var Nc = { exports: {} };
|
|
|
21647
21651
|
} else if (N == null)
|
|
21648
21652
|
W.classList.remove("ql-active");
|
|
21649
21653
|
else if (W.hasAttribute("value")) {
|
|
21650
|
-
var
|
|
21651
|
-
W.classList.toggle("ql-active",
|
|
21654
|
+
var D = H[oe] === W.getAttribute("value") || H[oe] != null && H[oe].toString() === W.getAttribute("value") || H[oe] == null && !W.getAttribute("value");
|
|
21655
|
+
W.classList.toggle("ql-active", D);
|
|
21652
21656
|
} else
|
|
21653
21657
|
W.classList.toggle("ql-active", H[oe] != null);
|
|
21654
21658
|
});
|
|
@@ -22067,7 +22071,7 @@ var Nc = { exports: {} };
|
|
|
22067
22071
|
Object.defineProperty(r, "__esModule", {
|
|
22068
22072
|
value: !0
|
|
22069
22073
|
});
|
|
22070
|
-
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), H = ye(N), j = o(72), J = ye(j), oe = o(73), W = ye(oe), L = o(13), I = ye(L),
|
|
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), H = 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), U = 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);
|
|
22071
22075
|
function ye(Oe) {
|
|
22072
22076
|
return Oe && Oe.__esModule ? Oe : { default: Oe };
|
|
22073
22077
|
}
|
|
@@ -22107,7 +22111,7 @@ var Nc = { exports: {} };
|
|
|
22107
22111
|
"formats/image": J.default,
|
|
22108
22112
|
"formats/video": W.default,
|
|
22109
22113
|
"formats/list/item": d.ListItem,
|
|
22110
|
-
"modules/formula":
|
|
22114
|
+
"modules/formula": B.default,
|
|
22111
22115
|
"modules/syntax": U.default,
|
|
22112
22116
|
"modules/toolbar": V.default,
|
|
22113
22117
|
"themes/bubble": de.default,
|
|
@@ -23512,7 +23516,7 @@ Yo.exports;
|
|
|
23512
23516
|
(function(e, n) {
|
|
23513
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]", H = "[object Uint32Array]", j = /[\\^$.*+?()[\]{}|]/g, J = /\w*$/, oe = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, L = {};
|
|
23514
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[H] = !0, L[s] = L[c] = L[g] = !1;
|
|
23515
|
-
var I = typeof Me == "object" && Me && Me.Object === Object && Me,
|
|
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, U = P && !0 && e && !e.nodeType && e, $ = U && U.exports === P;
|
|
23516
23520
|
function V(R, K) {
|
|
23517
23521
|
return R.set(K[0], K[1]), R;
|
|
23518
23522
|
}
|
|
@@ -23569,12 +23573,12 @@ Yo.exports;
|
|
|
23569
23573
|
ae[++K] = me;
|
|
23570
23574
|
}), ae;
|
|
23571
23575
|
}
|
|
23572
|
-
var te = Array.prototype, de = Function.prototype, ge = Object.prototype, be =
|
|
23576
|
+
var te = Array.prototype, de = Function.prototype, ge = Object.prototype, be = B["__core-js_shared__"], ye = function() {
|
|
23573
23577
|
var R = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || "");
|
|
23574
23578
|
return R ? "Symbol(src)_1." + R : "";
|
|
23575
23579
|
}(), Oe = de.toString, Ie = ge.hasOwnProperty, Be = ge.toString, Ke = RegExp(
|
|
23576
23580
|
"^" + Oe.call(Ie).replace(j, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
23577
|
-
), Qe = $ ?
|
|
23581
|
+
), Qe = $ ? B.Buffer : void 0, Ne = B.Symbol, Gt = B.Uint8Array, $e = X(Object.getPrototypeOf, Object), tt = Object.create, Tt = ge.propertyIsEnumerable, kn = te.splice, ht = Object.getOwnPropertySymbols, kt = Qe ? Qe.isBuffer : void 0, En = X(Object.keys, Object), rn = pn(B, "DataView"), on = pn(B, "Map"), pt = pn(B, "Promise"), qt = pn(B, "Set"), Pn = pn(B, "WeakMap"), Et = pn(Object, "create"), qn = Bt(rn), fn = Bt(on), Je = Bt(pt), Dt = Bt(qt), $n = Bt(Pn), Qt = Ne ? Ne.prototype : void 0, hn = Qt ? Qt.valueOf : void 0;
|
|
23578
23582
|
function $t(R) {
|
|
23579
23583
|
var K = -1, ae = R ? R.length : 0;
|
|
23580
23584
|
for (this.clear(); ++K < ae; ) {
|
|
@@ -23956,7 +23960,7 @@ Yo.exports;
|
|
|
23956
23960
|
var Uc = Yo.exports, ea = { exports: {} };
|
|
23957
23961
|
ea.exports;
|
|
23958
23962
|
(function(e, n) {
|
|
23959
|
-
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]", H = "[object Int8Array]", j = "[object Int16Array]", J = "[object Int32Array]", oe = "[object Uint8Array]", W = "[object Uint8ClampedArray]", L = "[object Uint16Array]", I = "[object Uint32Array]",
|
|
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]", H = "[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*)$/, U = {};
|
|
23960
23964
|
U[T] = U[N] = U[H] = U[j] = U[J] = U[oe] = U[W] = U[L] = U[I] = !0, U[l] = U[u] = U[_] = U[c] = U[A] = U[y] = U[f] = U[m] = U[b] = U[h] = U[p] = U[k] = U[w] = U[E] = U[S] = !1;
|
|
23961
23965
|
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() {
|
|
23962
23966
|
try {
|
|
@@ -24019,7 +24023,7 @@ ea.exports;
|
|
|
24019
24023
|
var R = /[^.]+$/.exec(Ne && Ne.keys && Ne.keys.IE_PROTO || "");
|
|
24020
24024
|
return R ? "Symbol(src)_1." + R : "";
|
|
24021
24025
|
}(), Tt = Qe.toString, kn = RegExp(
|
|
24022
|
-
"^" + Gt.call($e).replace(
|
|
24026
|
+
"^" + Gt.call($e).replace(D, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
24023
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 = Hn(Q, "DataView"), fn = Hn(Q, "Map"), Je = Hn(Q, "Promise"), Dt = Hn(Q, "Set"), $n = Hn(Q, "WeakMap"), Qt = Hn(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;
|
|
24024
24028
|
function lt(R) {
|
|
24025
24029
|
var K = -1, ae = R == null ? 0 : R.length;
|
|
@@ -24202,7 +24206,7 @@ ea.exports;
|
|
|
24202
24206
|
function Ta(R) {
|
|
24203
24207
|
if (!Eo(R) || Pa(R))
|
|
24204
24208
|
return !1;
|
|
24205
|
-
var K = ko(R) ? kn :
|
|
24209
|
+
var K = ko(R) ? kn : B;
|
|
24206
24210
|
return K.test(Bt(R));
|
|
24207
24211
|
}
|
|
24208
24212
|
function Da(R) {
|
|
@@ -26546,9 +26550,9 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26546
26550
|
itemId: h.value
|
|
26547
26551
|
};
|
|
26548
26552
|
let Z = await window.AdminConfiguratorManager.activateItemConfig({ request: JSON.stringify(re) });
|
|
26549
|
-
return Z != null && Z.error ? (
|
|
26553
|
+
return Z != null && Z.error ? (D(Z == null ? void 0 : Z.error), null) : (Z = Ut(Z.data), x.value = Z, Z);
|
|
26550
26554
|
} catch {
|
|
26551
|
-
return
|
|
26555
|
+
return D(), null;
|
|
26552
26556
|
}
|
|
26553
26557
|
}, J = async () => {
|
|
26554
26558
|
try {
|
|
@@ -26604,7 +26608,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26604
26608
|
} catch (re) {
|
|
26605
26609
|
e.handleError("Failed to rollback item configuration. Please try again.", re);
|
|
26606
26610
|
}
|
|
26607
|
-
},
|
|
26611
|
+
}, D = (Q) => {
|
|
26608
26612
|
Q ? k.value = Q : k.value = null, g.value = !0;
|
|
26609
26613
|
};
|
|
26610
26614
|
return {
|
|
@@ -26683,7 +26687,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
26683
26687
|
s.value = !1;
|
|
26684
26688
|
}
|
|
26685
26689
|
},
|
|
26686
|
-
showActivationError:
|
|
26690
|
+
showActivationError: D,
|
|
26687
26691
|
hideActivationError: () => {
|
|
26688
26692
|
g.value = !1, w.value = 0;
|
|
26689
26693
|
},
|
|
@@ -27018,7 +27022,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27018
27022
|
},
|
|
27019
27023
|
emits: ["action"],
|
|
27020
27024
|
setup(e, { emit: n }) {
|
|
27021
|
-
const t = _n(), r = z(!1), o = z(0), a = z(t.qliId), i = ce(() => t.configuration), l = e, u = n, s = ce(() => r.value ? [
|
|
27025
|
+
const t = _n(), r = z(!1), o = z(0), a = z(t.qliId || null), i = ce(() => t.configuration), l = e, u = n, s = ce(() => r.value ? [
|
|
27022
27026
|
{
|
|
27023
27027
|
text: "Done",
|
|
27024
27028
|
altText: "Done",
|
|
@@ -27028,7 +27032,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27028
27032
|
}
|
|
27029
27033
|
] : [
|
|
27030
27034
|
{
|
|
27031
|
-
text:
|
|
27035
|
+
text: t.qliId ? "Save" : l.cart ? "Add To Cart" : "Add To Quote",
|
|
27032
27036
|
altText: "Save",
|
|
27033
27037
|
type: t.isChangedConfiguration ? "primary" : "secondary",
|
|
27034
27038
|
style: "primary",
|
|
@@ -27047,7 +27051,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27047
27051
|
});
|
|
27048
27052
|
}, f = async (m) => {
|
|
27049
27053
|
const d = t.products.find((b) => b.value === m);
|
|
27050
|
-
d && await t.initConfigurator(d.itemId, d.value);
|
|
27054
|
+
d && await t.initConfigurator(d.itemId, d.value, t.quoteId);
|
|
27051
27055
|
};
|
|
27052
27056
|
return (m, d) => ke(t).configuration ? (M(), q("div", i8, [
|
|
27053
27057
|
ke(t).savedScreen ? (M(), ve(i5, { key: 1 })) : (M(), q(xe, { key: 0 }, [
|
|
@@ -27103,7 +27107,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27103
27107
|
], 64))
|
|
27104
27108
|
])) : le("", !0);
|
|
27105
27109
|
}
|
|
27106
|
-
}, f8 = /* @__PURE__ */ we(d8, [["__scopeId", "data-v-
|
|
27110
|
+
}, f8 = /* @__PURE__ */ we(d8, [["__scopeId", "data-v-2fdc7187"]]), h8 = ["data-item-id", "data-qli-id"], p8 = {
|
|
27107
27111
|
key: 0,
|
|
27108
27112
|
class: "ect-flex-1 ect-min-h-0"
|
|
27109
27113
|
}, m8 = {
|
|
@@ -27152,7 +27156,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27152
27156
|
]))
|
|
27153
27157
|
], 8, h8));
|
|
27154
27158
|
}
|
|
27155
|
-
}, v8 = (e) => (Lt("data-v-
|
|
27159
|
+
}, v8 = (e) => (Lt("data-v-ded0fad9"), e = e(), Nt(), e), g8 = { class: "ect-hidden" }, b8 = /* @__PURE__ */ v8(() => /* @__PURE__ */ C("div", { class: "dropdowntp" }, null, -1)), x8 = {
|
|
27156
27160
|
__name: "ExpediteConfigurator",
|
|
27157
27161
|
props: {
|
|
27158
27162
|
setupData: {
|
|
@@ -27173,8 +27177,8 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27173
27177
|
},
|
|
27174
27178
|
security: {
|
|
27175
27179
|
type: {
|
|
27176
|
-
|
|
27177
|
-
|
|
27180
|
+
baseUrl: String,
|
|
27181
|
+
accessToken: String
|
|
27178
27182
|
},
|
|
27179
27183
|
default: () => ({}),
|
|
27180
27184
|
required: !0
|
|
@@ -27195,7 +27199,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27195
27199
|
}
|
|
27196
27200
|
return Kt(() => {
|
|
27197
27201
|
const { orgType: s, orgId: c, userId: y } = a.setupData;
|
|
27198
|
-
t.quoteId = a.quoteId, t.setSetupData(a.setupData, a.security), o.initializeController(s, c, y), window.addEventListener("beforeunload", u);
|
|
27202
|
+
t.quoteId = a.quoteId, console.log("Configurator props.setupData", a.setupData), console.log("Configurator props.security", a.security), console.log("Configurator props.quoteId", a.quoteId), console.log("Configurator orgType", s), console.log("Configurator orgId", c), console.log("Configurator userId", y), t.setSetupData(a.setupData, a.security), o.initializeController(s, c, y), window.addEventListener("beforeunload", u);
|
|
27199
27203
|
}), Ve(
|
|
27200
27204
|
() => [a.setupData, a.security, a.quoteId],
|
|
27201
27205
|
([s, c, y]) => {
|
|
@@ -27229,7 +27233,7 @@ const Kc = /* @__PURE__ */ we(D9, [["render", F9], ["__scopeId", "data-v-b36acc6
|
|
|
27229
27233
|
}, null, 8, ["item-id", "qli-id", "cart"])
|
|
27230
27234
|
], 64));
|
|
27231
27235
|
}
|
|
27232
|
-
}, Sl = /* @__PURE__ */ we(x8, [["__scopeId", "data-v-
|
|
27236
|
+
}, Sl = /* @__PURE__ */ we(x8, [["__scopeId", "data-v-ded0fad9"]]), _8 = bt("mygpt", () => {
|
|
27233
27237
|
const e = z("");
|
|
27234
27238
|
async function n(r, o = "gpt-3.5-turbo", a = 300) {
|
|
27235
27239
|
var i, l, u;
|
|
@@ -28790,7 +28794,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28790
28794
|
])
|
|
28791
28795
|
]));
|
|
28792
28796
|
}
|
|
28793
|
-
}, Zm = /* @__PURE__ */ we(Wm, [["__scopeId", "data-v-31366d17"]]), e0 = (e) => (Lt("data-v-
|
|
28797
|
+
}, Zm = /* @__PURE__ */ we(Wm, [["__scopeId", "data-v-31366d17"]]), e0 = (e) => (Lt("data-v-c140c44a"), e = e(), Nt(), e), Jm = ["id"], Ym = {
|
|
28794
28798
|
key: 0,
|
|
28795
28799
|
class: "product-search"
|
|
28796
28800
|
}, ey = {
|
|
@@ -28856,11 +28860,11 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28856
28860
|
const f = z([]), m = z(0), d = z(o.request);
|
|
28857
28861
|
let b = 200;
|
|
28858
28862
|
const h = z(o.searchText || ""), x = ce(() => o.initialItems || []), p = ce(() => !!(h.value || o.searchText));
|
|
28859
|
-
function v(I,
|
|
28860
|
-
const P =
|
|
28863
|
+
function v(I, D, B) {
|
|
28864
|
+
const P = B === "Item", U = [];
|
|
28861
28865
|
return I.forEach(($) => {
|
|
28862
28866
|
var Q, ee;
|
|
28863
|
-
const V = JSON.parse(JSON.stringify(
|
|
28867
|
+
const V = JSON.parse(JSON.stringify(D));
|
|
28864
28868
|
try {
|
|
28865
28869
|
P ? V.itemId = $.Id : (V.itemId = $.XX_ORD1__Item__c, V.catalogItemId = $.Id);
|
|
28866
28870
|
const { description: Y, thumbnail: ie, title: fe, attributes: re, actions: Z } = V;
|
|
@@ -28898,16 +28902,16 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28898
28902
|
var I;
|
|
28899
28903
|
return ((I = o.configuration.productItemOrientation) == null ? void 0 : I.toLowerCase()) || "vertical";
|
|
28900
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}`), H = ce(() => o.configuration.displaySettings.enableSearch), j = z(null), J = z(!1), oe = z({});
|
|
28901
|
-
Ve(u, (I,
|
|
28902
|
-
I !==
|
|
28905
|
+
Ve(u, (I, D) => {
|
|
28906
|
+
I !== D && (console.log("[fetchProducts] 1"), W(!0));
|
|
28903
28907
|
}), Ve(j, (I) => {
|
|
28904
28908
|
I !== null && o.onCountUpdate && o.onCountUpdate(I);
|
|
28905
28909
|
}), Ve(h, () => {
|
|
28906
28910
|
u.value = 1, console.log("[fetchProducts] 2"), W(!0);
|
|
28907
28911
|
}), Ve(
|
|
28908
28912
|
() => o.searchText,
|
|
28909
|
-
(I,
|
|
28910
|
-
I !==
|
|
28913
|
+
(I, D) => {
|
|
28914
|
+
I !== D && (h.value = I || "");
|
|
28911
28915
|
}
|
|
28912
28916
|
);
|
|
28913
28917
|
const W = sn(async function(I) {
|
|
@@ -28918,12 +28922,12 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28918
28922
|
return;
|
|
28919
28923
|
}
|
|
28920
28924
|
c.value = !0;
|
|
28921
|
-
let
|
|
28922
|
-
S.value <
|
|
28925
|
+
let B = F.value;
|
|
28926
|
+
S.value < B && S.value > 0 && (B = S.value);
|
|
28923
28927
|
const P = {
|
|
28924
28928
|
...d.value,
|
|
28925
28929
|
accountID: o.accountId,
|
|
28926
|
-
rowLimit:
|
|
28930
|
+
rowLimit: B,
|
|
28927
28931
|
// Use local search text to avoid being reset by upstream props
|
|
28928
28932
|
searchText: h.value || o.searchText,
|
|
28929
28933
|
rowOffSet: F.value * (u.value - 1)
|
|
@@ -28940,25 +28944,25 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28940
28944
|
y.value = !1;
|
|
28941
28945
|
});
|
|
28942
28946
|
const U = await l.getProductItems(P, o.fields.productCard, o.catalogType);
|
|
28943
|
-
U && (s.value = U.items.length ===
|
|
28947
|
+
U && (s.value = U.items.length === B, j.value = U.count, f.value = U.items, m.value = Math.ceil(U.count / F.value)), console.log("[MOLECULEPRODUCTBLOCK:fetchProducts] prodData", U), c.value = !1;
|
|
28944
28948
|
}, b);
|
|
28945
28949
|
async function L() {
|
|
28946
|
-
const { mainHeading: I, subHeading:
|
|
28947
|
-
if (!I.isStatic && I.field || !
|
|
28948
|
-
const
|
|
28949
|
-
I.isStatic ? I.value = I.title :
|
|
28950
|
+
const { mainHeading: I, subHeading: D } = o.fields.header;
|
|
28951
|
+
if (!I.isStatic && I.field || !D.isStatic && D.field) {
|
|
28952
|
+
const B = [];
|
|
28953
|
+
I.isStatic ? I.value = I.title : B.push(I.field), D.isStatic ? D.value = D.title : B.push(D.field);
|
|
28950
28954
|
const P = {
|
|
28951
28955
|
...d.value,
|
|
28952
28956
|
accountID: o.accountId,
|
|
28953
|
-
fields:
|
|
28957
|
+
fields: B
|
|
28954
28958
|
}, U = await l.getEcatalogDetails(P);
|
|
28955
|
-
I.isStatic || (I.value = U[I.field], I.isStatic = !0),
|
|
28959
|
+
I.isStatic || (I.value = U[I.field], I.isStatic = !0), D.isStatic || (D.value = U[D.field], D.isStatic = !0);
|
|
28956
28960
|
} else
|
|
28957
|
-
I.value = I.title,
|
|
28961
|
+
I.value = I.title, D.value = D.title;
|
|
28958
28962
|
}
|
|
28959
28963
|
return n({ currentPage: u, fetchProducts: W }), gt(() => {
|
|
28960
28964
|
W(), L();
|
|
28961
|
-
}), (I,
|
|
28965
|
+
}), (I, D) => (M(), q("div", {
|
|
28962
28966
|
id: a.value,
|
|
28963
28967
|
ref_key: "productBlock",
|
|
28964
28968
|
ref: i,
|
|
@@ -28967,7 +28971,7 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28967
28971
|
H.value && w.value === void 0 && !e.hideHeader ? (M(), q("div", Ym, [
|
|
28968
28972
|
se(Zm, {
|
|
28969
28973
|
modelValue: h.value,
|
|
28970
|
-
"onUpdate:modelValue":
|
|
28974
|
+
"onUpdate:modelValue": D[0] || (D[0] = (B) => h.value = B),
|
|
28971
28975
|
placeholder: "Search products..."
|
|
28972
28976
|
}, null, 8, ["modelValue"])
|
|
28973
28977
|
])) : le("", !0),
|
|
@@ -28977,60 +28981,58 @@ const Xn = /* @__PURE__ */ we(m7, [["render", em], ["__scopeId", "data-v-956cc08
|
|
|
28977
28981
|
Re(),
|
|
28978
28982
|
ny
|
|
28979
28983
|
])) : (M(), q("div", ry, [
|
|
28980
|
-
A.value === "table" ? (M(!0), q(xe, { key: 0 }, Se(O.value, (
|
|
28981
|
-
key: (
|
|
28984
|
+
A.value === "table" ? (M(!0), q(xe, { key: 0 }, Se(O.value, (B) => (M(), q("div", {
|
|
28985
|
+
key: (B == null ? void 0 : B.catalogItemId) || (B == null ? void 0 : B.itemId),
|
|
28982
28986
|
class: "product-item_table"
|
|
28983
28987
|
}, [
|
|
28984
28988
|
se(Dm, {
|
|
28985
28989
|
class: "ecb-theme-card",
|
|
28986
|
-
"item-id":
|
|
28987
|
-
"catalog-item-id":
|
|
28990
|
+
"item-id": B == null ? void 0 : B.itemId,
|
|
28991
|
+
"catalog-item-id": B == null ? void 0 : B.catalogItemId,
|
|
28988
28992
|
loading: c.value || y.value,
|
|
28989
28993
|
mode: A.value,
|
|
28990
|
-
title:
|
|
28991
|
-
attributes:
|
|
28992
|
-
actions:
|
|
28994
|
+
title: B == null ? void 0 : B.title,
|
|
28995
|
+
attributes: B == null ? void 0 : B.attributes,
|
|
28996
|
+
actions: B == null ? void 0 : B.actions,
|
|
28993
28997
|
thumbnail: {
|
|
28994
|
-
value:
|
|
28998
|
+
value: B == null ? void 0 : B.thumbnail.value
|
|
28995
28999
|
},
|
|
28996
|
-
description:
|
|
28997
|
-
url:
|
|
29000
|
+
description: B == null ? void 0 : B.description,
|
|
29001
|
+
url: B == null ? void 0 : B.friendlyURL,
|
|
28998
29002
|
"template-id": e.configuration.productTemplateId,
|
|
28999
|
-
"ecatalog-id": D == null ? void 0 : D.eCatalogId,
|
|
29000
29003
|
"apply-offer": J.value,
|
|
29001
29004
|
"offer-setting": oe.value,
|
|
29002
|
-
offer:
|
|
29005
|
+
offer: B == null ? void 0 : B.offer,
|
|
29003
29006
|
"is-preview": e.isPreview
|
|
29004
|
-
}, null, 8, ["item-id", "catalog-item-id", "loading", "mode", "title", "attributes", "actions", "thumbnail", "description", "url", "template-id", "
|
|
29005
|
-
]))), 128)) : (M(!0), q(xe, { key: 1 }, Se(O.value, (
|
|
29006
|
-
key: (
|
|
29007
|
+
}, null, 8, ["item-id", "catalog-item-id", "loading", "mode", "title", "attributes", "actions", "thumbnail", "description", "url", "template-id", "apply-offer", "offer-setting", "offer", "is-preview"])
|
|
29008
|
+
]))), 128)) : (M(!0), q(xe, { key: 1 }, Se(O.value, (B) => (M(), q("div", {
|
|
29009
|
+
key: (B == null ? void 0 : B.catalogItemId) || (B == null ? void 0 : B.itemId),
|
|
29007
29010
|
class: _e(["product-item_record", N.value])
|
|
29008
29011
|
}, [
|
|
29009
29012
|
se(Em, {
|
|
29010
|
-
"item-id":
|
|
29011
|
-
"catalog-item-id":
|
|
29013
|
+
"item-id": B == null ? void 0 : B.itemId,
|
|
29014
|
+
"catalog-item-id": B == null ? void 0 : B.catalogItemId,
|
|
29012
29015
|
loading: c.value || y.value,
|
|
29013
29016
|
mode: A.value,
|
|
29014
|
-
title:
|
|
29015
|
-
attributes:
|
|
29016
|
-
actions:
|
|
29017
|
+
title: B == null ? void 0 : B.title,
|
|
29018
|
+
attributes: B == null ? void 0 : B.attributes,
|
|
29019
|
+
actions: B == null ? void 0 : B.actions,
|
|
29017
29020
|
thumbnail: {
|
|
29018
|
-
value:
|
|
29021
|
+
value: B == null ? void 0 : B.thumbnail.value
|
|
29019
29022
|
},
|
|
29020
|
-
description:
|
|
29021
|
-
url:
|
|
29023
|
+
description: B == null ? void 0 : B.description,
|
|
29024
|
+
url: B == null ? void 0 : B.friendlyURL,
|
|
29022
29025
|
"template-id": e.configuration.productTemplateId,
|
|
29023
|
-
"ecatalog-id": D == null ? void 0 : D.eCatalogId,
|
|
29024
29026
|
"apply-offer": J.value,
|
|
29025
29027
|
"offer-setting": oe.value,
|
|
29026
|
-
offer:
|
|
29028
|
+
offer: B == null ? void 0 : B.offer,
|
|
29027
29029
|
"is-preview": e.isPreview
|
|
29028
|
-
}, null, 8, ["item-id", "catalog-item-id", "loading", "mode", "title", "attributes", "actions", "thumbnail", "description", "url", "template-id", "
|
|
29030
|
+
}, null, 8, ["item-id", "catalog-item-id", "loading", "mode", "title", "attributes", "actions", "thumbnail", "description", "url", "template-id", "apply-offer", "offer-setting", "offer", "is-preview"])
|
|
29029
29031
|
], 2))), 128))
|
|
29030
29032
|
]))
|
|
29031
29033
|
], 8, Jm));
|
|
29032
29034
|
}
|
|
29033
|
-
}, iy = /* @__PURE__ */ we(ay, [["__scopeId", "data-v-
|
|
29035
|
+
}, iy = /* @__PURE__ */ we(ay, [["__scopeId", "data-v-c140c44a"]]), t0 = (e) => (Lt("data-v-0eae07cd"), e = e(), Nt(), e), ly = { class: "catalog ect-flex ect-flex-col ect-gap-0 md:ect-flex-row" }, uy = { class: "catalog-product md:ect-grow" }, sy = {
|
|
29034
29036
|
class: "ect-px-2 ect-text-[#0A0A0A] ect-[font-family:var(--font-family-Font-3,_Montserrat)] ect-text-[18px] md:ect-text-[22px] lg:ect-text-[22px] ect-font-bold ect-leading-normal ect-mb-6",
|
|
29035
29037
|
"data-test-id": "catalog-block-heading-title"
|
|
29036
29038
|
}, cy = { class: "catalog-filter-mobile ect-flex ect-justify-between m-show" }, dy = /* @__PURE__ */ t0(() => /* @__PURE__ */ C("h3", null, "Filter Products", -1)), fy = /* @__PURE__ */ t0(() => /* @__PURE__ */ C("span", null, " OPEN FILTERS", -1)), hy = {
|
|
@@ -30261,36 +30263,36 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30261
30263
|
},
|
|
30262
30264
|
emits: ["counts"],
|
|
30263
30265
|
setup(e, { emit: n }) {
|
|
30264
|
-
const t = nr(), r = Fn(), o = e, a = n, i = (
|
|
30265
|
-
var
|
|
30266
|
-
return ((
|
|
30266
|
+
const t = nr(), r = Fn(), o = e, a = n, i = (D) => D.toUpperCase() || "", l = ce(() => {
|
|
30267
|
+
var D;
|
|
30268
|
+
return ((D = o.fields) == null ? void 0 : D.styling) || {};
|
|
30267
30269
|
}), u = ce(() => {
|
|
30268
|
-
var
|
|
30269
|
-
return (
|
|
30270
|
+
var D, B;
|
|
30271
|
+
return (B = (D = o.configuration) == null ? void 0 : D.allowedActions) == null ? void 0 : B.delete;
|
|
30270
30272
|
}), s = ce(() => {
|
|
30271
|
-
var
|
|
30272
|
-
return (
|
|
30273
|
+
var D, B;
|
|
30274
|
+
return (B = (D = o.configuration) == null ? void 0 : D.allowedActions) == null ? void 0 : B.configure;
|
|
30273
30275
|
}), c = ce(() => {
|
|
30274
|
-
var
|
|
30275
|
-
return o.configuration.displayAttributes ? (
|
|
30276
|
+
var D;
|
|
30277
|
+
return o.configuration.displayAttributes ? (D = o.configuration) == null ? void 0 : D.attribute : !1;
|
|
30276
30278
|
}), y = ce(() => {
|
|
30277
|
-
var
|
|
30278
|
-
return (
|
|
30279
|
+
var D;
|
|
30280
|
+
return (D = o.configuration) == null ? void 0 : D.sort;
|
|
30279
30281
|
}), f = ce(() => {
|
|
30280
|
-
var
|
|
30281
|
-
return (
|
|
30282
|
+
var D;
|
|
30283
|
+
return (D = o.configuration) == null ? void 0 : D.group;
|
|
30282
30284
|
}), m = ce(() => {
|
|
30283
|
-
const
|
|
30284
|
-
return
|
|
30285
|
+
const D = f.value.groupheader.style;
|
|
30286
|
+
return D ? T(D) : {};
|
|
30285
30287
|
}), d = ce(() => {
|
|
30286
|
-
const
|
|
30287
|
-
return
|
|
30288
|
+
const D = f.value.groupfooter.style;
|
|
30289
|
+
return D ? T(D) : {};
|
|
30288
30290
|
}), b = ce(() => {
|
|
30289
|
-
const
|
|
30290
|
-
return
|
|
30291
|
-
}), h = ce(() => O.value ? !1 : !_.value || _.value.length === 0 ? !0 : _.value.every((
|
|
30292
|
-
const
|
|
30293
|
-
return !
|
|
30291
|
+
const D = {}, { border: B, color: P, width: U } = l.value.table;
|
|
30292
|
+
return B === "default" && (D.borderStyle = "solid", D.borderColor = P, D.borderWidth = U, D.borderTopWidth = 0), D;
|
|
30293
|
+
}), 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((U) => U.rows && U.rows.length > 0);
|
|
30295
|
+
return !B && !P;
|
|
30294
30296
|
}));
|
|
30295
30297
|
Fr();
|
|
30296
30298
|
const x = ["CURRENCY", "DOUBLE", "PERCENT"], p = [
|
|
@@ -30310,53 +30312,53 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30310
30312
|
"TEXTAREA",
|
|
30311
30313
|
"TEXTAREA"
|
|
30312
30314
|
], 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();
|
|
30313
|
-
function T(
|
|
30314
|
-
let
|
|
30315
|
-
const { overrite: P, backgroundColor: U, verticalAlignment: $, padding: V } =
|
|
30316
|
-
return P && (
|
|
30315
|
+
function T(D) {
|
|
30316
|
+
let B = { padding: "1.25rem 2rem" };
|
|
30317
|
+
const { overrite: P, backgroundColor: U, verticalAlignment: $, padding: V } = D;
|
|
30318
|
+
return P && (B = {
|
|
30317
30319
|
backgroundColor: U,
|
|
30318
30320
|
verticalAlign: $,
|
|
30319
30321
|
padding: V || "1.25rem 2rem"
|
|
30320
|
-
}),
|
|
30322
|
+
}), B;
|
|
30321
30323
|
}
|
|
30322
|
-
const N = async function({ record:
|
|
30324
|
+
const N = async function({ record: D, callback: B }) {
|
|
30323
30325
|
const P = [];
|
|
30324
|
-
for (const $ in
|
|
30326
|
+
for (const $ in D)
|
|
30325
30327
|
P.push({
|
|
30326
30328
|
fieldName: $,
|
|
30327
|
-
fieldValue:
|
|
30329
|
+
fieldValue: D[$]
|
|
30328
30330
|
});
|
|
30329
30331
|
const U = {
|
|
30330
30332
|
fields: P,
|
|
30331
30333
|
objectType: o.configuration.objectType
|
|
30332
30334
|
};
|
|
30333
|
-
await t.updateRecord(U),
|
|
30335
|
+
await t.updateRecord(U), B(), D.XX_ORD1__QTY__c !== void 0 && (v.value = D.Id, await oe("FIELD_RELOAD"), v.value = null);
|
|
30334
30336
|
};
|
|
30335
|
-
async function H(
|
|
30336
|
-
v.value =
|
|
30337
|
+
async function H(D) {
|
|
30338
|
+
v.value = D, await oe("RELOAD_ALL_FIELDS"), v.value = null;
|
|
30337
30339
|
}
|
|
30338
|
-
const j = (
|
|
30340
|
+
const j = (D) => {
|
|
30339
30341
|
sr("expeditecart:configure-clicked", {
|
|
30340
|
-
itemId:
|
|
30341
|
-
lineItemId:
|
|
30342
|
+
itemId: D.XX_ORD1__Item__c,
|
|
30343
|
+
lineItemId: D.Id,
|
|
30342
30344
|
quoteId: t.quoteId,
|
|
30343
30345
|
isPreview: o.isPreview
|
|
30344
30346
|
});
|
|
30345
|
-
}, J = async function(
|
|
30346
|
-
F.value.add(
|
|
30347
|
-
const
|
|
30348
|
-
await r.deleteLineItems(
|
|
30347
|
+
}, J = async function(D) {
|
|
30348
|
+
F.value.add(D.Id), E.value = !0;
|
|
30349
|
+
const B = [D.Id];
|
|
30350
|
+
await r.deleteLineItems(B), await oe("RELOAD"), E.value = !1, F.value.delete(D.Id);
|
|
30349
30351
|
};
|
|
30350
|
-
async function oe(
|
|
30351
|
-
|
|
30352
|
-
const { groupby:
|
|
30352
|
+
async function oe(D) {
|
|
30353
|
+
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, U = t.quoteId, $ = o.footer.map((Y) => ({ field: Y.field, snippet: Y.function || "SUM" })), V = {
|
|
30353
30355
|
filterObject: o.configuration.objectType,
|
|
30354
30356
|
fieldsToDisplay: [...k.value, "XX_ORD1__Item__r.XX_ORD1__SYS_Requires_Configuration__c", "XX_ORD1__Parent_QLI__c"],
|
|
30355
30357
|
aggregateFields: $,
|
|
30356
30358
|
filters: o.configuration.filters,
|
|
30357
30359
|
parentObjectField: o.configuration.parentObjectField,
|
|
30358
30360
|
objectId: U,
|
|
30359
|
-
groupby:
|
|
30361
|
+
groupby: B.field,
|
|
30360
30362
|
grouplevel: P,
|
|
30361
30363
|
// other option value is option,
|
|
30362
30364
|
primarysort: y.value.primary.field,
|
|
@@ -30364,17 +30366,17 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30364
30366
|
primarysortdesc: y.value.primary.direction !== "asc",
|
|
30365
30367
|
secondarysortdesc: y.value.secondary.direction !== "asc",
|
|
30366
30368
|
filterlogic: o.configuration.filterlogic
|
|
30367
|
-
}, Q =
|
|
30369
|
+
}, Q = B.field && P, ee = await t.getRowItems(V, Q);
|
|
30368
30370
|
Q ? I(ee, P) : L(ee), o.configuration.displayAttributes && W(), O.value = !1, w.value = [];
|
|
30369
30371
|
}
|
|
30370
30372
|
async function W() {
|
|
30371
|
-
const
|
|
30373
|
+
const D = v.value, B = [];
|
|
30372
30374
|
_.value.forEach((U) => {
|
|
30373
30375
|
U.rows.forEach(($) => {
|
|
30374
|
-
$.attributes = A.get($.Id), console.log("row.attributes", $.attributes),
|
|
30376
|
+
$.attributes = A.get($.Id), console.log("row.attributes", $.attributes), D ? $.Attributes = A.get($.Id) : $.attributesLoading = !0, B.push($.Id);
|
|
30375
30377
|
});
|
|
30376
30378
|
});
|
|
30377
|
-
const P = await t.getLineItemAttributesNG(
|
|
30379
|
+
const P = await t.getLineItemAttributesNG(B);
|
|
30378
30380
|
_.value.forEach((U) => {
|
|
30379
30381
|
U.rows.forEach(($) => {
|
|
30380
30382
|
const V = P[$.Id];
|
|
@@ -30390,25 +30392,25 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30390
30392
|
});
|
|
30391
30393
|
}), console.log("attributesByIdMap", A);
|
|
30392
30394
|
}
|
|
30393
|
-
function L(
|
|
30395
|
+
function L(D) {
|
|
30394
30396
|
var $;
|
|
30395
|
-
const
|
|
30396
|
-
if (a("counts", U),
|
|
30397
|
+
const B = D.lstRecords, P = [], U = D.lstRecords && (($ = D.lstRecords) == null ? void 0 : $.length) > 0;
|
|
30398
|
+
if (a("counts", U), D.lstAggregateField && D.lstAggregateField.length > 0) {
|
|
30397
30399
|
const V = /* @__PURE__ */ new Map();
|
|
30398
|
-
|
|
30400
|
+
D.lstAggregateField.forEach((Q) => {
|
|
30399
30401
|
V.set(Q.fieldName, Q.totalValue);
|
|
30400
30402
|
}), o.footer.forEach((Q) => {
|
|
30401
30403
|
Q.value = V.get(Q.field), P.push(Q);
|
|
30402
30404
|
});
|
|
30403
30405
|
}
|
|
30404
|
-
_.value = [{ rows:
|
|
30406
|
+
_.value = [{ rows: B, summary: P }];
|
|
30405
30407
|
}
|
|
30406
|
-
function I(
|
|
30408
|
+
function I(D, B) {
|
|
30407
30409
|
const P = [];
|
|
30408
30410
|
let U;
|
|
30409
|
-
|
|
30411
|
+
D.forEach(($) => {
|
|
30410
30412
|
var V;
|
|
30411
|
-
if (
|
|
30413
|
+
if (B === "option") {
|
|
30412
30414
|
if ((V = $.product) != null && V.thisobject) {
|
|
30413
30415
|
const Q = { name: "", rows: [$.product.thisobject], summary: [], isProduct: !0, options: [] };
|
|
30414
30416
|
$.options.length > 0 && $.options.forEach((ee) => {
|
|
@@ -30423,7 +30425,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30423
30425
|
}
|
|
30424
30426
|
} else {
|
|
30425
30427
|
if (U = { name: $.groupName, rows: [] }, $.productRows.forEach((Q) => {
|
|
30426
|
-
U.rows.push(Q[
|
|
30428
|
+
U.rows.push(Q[B].thisobject), Q.options.forEach((ee) => {
|
|
30427
30429
|
const Y = { ...ee.thisobject };
|
|
30428
30430
|
Y.isOption = !0, U.rows.push(Y);
|
|
30429
30431
|
});
|
|
@@ -30440,10 +30442,10 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30440
30442
|
}), _.value = P;
|
|
30441
30443
|
}
|
|
30442
30444
|
return Kt(() => {
|
|
30443
|
-
console.log("Product List - Block Before Mount"), S.value = JSON.parse(JSON.stringify(o.columns)), g.value = o.summary, S.value.forEach((
|
|
30444
|
-
|
|
30445
|
+
console.log("Product List - Block Before Mount"), S.value = JSON.parse(JSON.stringify(o.columns)), g.value = o.summary, S.value.forEach((D) => {
|
|
30446
|
+
D.content.dataType = i(D.content.dataType), D.editby = D.editable, D.editable = D.editable !== "not", D.dataType = D.content.dataType, D.api = D.content.field, k.value.push(D.content.field);
|
|
30445
30447
|
}), k.value.includes("XX_ORD1__QLI_Type__c") || k.value.push("XX_ORD1__QLI_Type__c"), oe("RELOAD");
|
|
30446
|
-
}), (
|
|
30448
|
+
}), (D, B) => {
|
|
30447
30449
|
var P;
|
|
30448
30450
|
return h.value ? le("", !0) : (M(), q("div", vv, [
|
|
30449
30451
|
C("div", gv, [
|
|
@@ -30470,7 +30472,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30470
30472
|
onDelete: J,
|
|
30471
30473
|
onConfigure: j,
|
|
30472
30474
|
onUpdate: N,
|
|
30473
|
-
onReload:
|
|
30475
|
+
onReload: B[0] || (B[0] = (U) => H(U))
|
|
30474
30476
|
}, null, 8, ["cols", "style", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"])
|
|
30475
30477
|
])) : le("", !0),
|
|
30476
30478
|
O.value ? (M(), q("div", {
|
|
@@ -30494,7 +30496,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30494
30496
|
onDelete: J,
|
|
30495
30497
|
onConfigure: j,
|
|
30496
30498
|
onUpdate: N,
|
|
30497
|
-
onReload:
|
|
30499
|
+
onReload: B[1] || (B[1] = (U) => H(U))
|
|
30498
30500
|
}, null, 8, ["cols", "style", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"])
|
|
30499
30501
|
], 4)) : le("", !0),
|
|
30500
30502
|
O.value ? le("", !0) : (M(), q("div", {
|
|
@@ -30531,7 +30533,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30531
30533
|
onDelete: J,
|
|
30532
30534
|
onConfigure: j,
|
|
30533
30535
|
onUpdate: N,
|
|
30534
|
-
onReload:
|
|
30536
|
+
onReload: B[2] || (B[2] = ($) => H($))
|
|
30535
30537
|
}, null, 8, ["hidecolumn", "cols", "rows", "style", "row-loading", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"]),
|
|
30536
30538
|
U.summary.length > 0 ? (M(), q("div", xv, [
|
|
30537
30539
|
(M(!0), q(xe, null, Se(U.summary, ($, V) => {
|
|
@@ -30586,7 +30588,7 @@ const Ko = /* @__PURE__ */ we(_y, [["render", Dy], ["__scopeId", "data-v-888eb5f
|
|
|
30586
30588
|
onDelete: J,
|
|
30587
30589
|
onConfigure: j,
|
|
30588
30590
|
onUpdate: N,
|
|
30589
|
-
onReload:
|
|
30591
|
+
onReload: B[3] || (B[3] = (V) => H(V))
|
|
30590
30592
|
}, null, 8, ["hidecolumn", "cols", "rows", "style", "row-loading", "loading", "del", "configure", "disabled", "loading-row-id", "del-records", "attribute"]),
|
|
30591
30593
|
$.summary.length > 0 ? (M(), q("div", _v, [
|
|
30592
30594
|
(M(!0), q(xe, null, Se($.summary, (V, Q) => {
|
|
@@ -31427,7 +31429,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31427
31429
|
timestamp: be,
|
|
31428
31430
|
dayString: c[X]
|
|
31429
31431
|
};
|
|
31430
|
-
}, I = (Z, G) => 40 - new Date(Z, G, 40).getDate(),
|
|
31432
|
+
}, I = (Z, G) => 40 - new Date(Z, G, 40).getDate(), D = (Z, G) => {
|
|
31431
31433
|
const X = new Date(Z, G).getDay(), ne = I(Z, G), te = [], de = 6;
|
|
31432
31434
|
let ge = null, be = 0;
|
|
31433
31435
|
const ye = 7;
|
|
@@ -31441,7 +31443,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31441
31443
|
month: G
|
|
31442
31444
|
}), te.push(ge), be++;
|
|
31443
31445
|
return te;
|
|
31444
|
-
},
|
|
31446
|
+
}, B = (Z) => Z.timestamp === o, P = (Z) => Z.timestamp === l.value.selectedDay, U = (Z) => {
|
|
31445
31447
|
if (!Z)
|
|
31446
31448
|
return null;
|
|
31447
31449
|
if (Z instanceof Date)
|
|
@@ -31468,7 +31470,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31468
31470
|
Z !== null && (V(Z), l.value = {
|
|
31469
31471
|
year: Z.year,
|
|
31470
31472
|
month: Z.month - 1,
|
|
31471
|
-
monthDetails:
|
|
31473
|
+
monthDetails: D(Z.year, Z.month - 1)
|
|
31472
31474
|
});
|
|
31473
31475
|
}, ee = (Z) => {
|
|
31474
31476
|
const G = new Date(Z), X = (G.getMonth() + 1).toString().padStart(2, "0"), ne = G.getDate().toString().padStart(2, "0"), te = G.getFullYear();
|
|
@@ -31485,7 +31487,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31485
31487
|
f.value.getFullYear() === G && f.value.getMonth() > X && (X = f.value.getMonth()), m.value.getFullYear() === G && m.value.getMonth() < X && (X = m.value.getMonth()), l.value = {
|
|
31486
31488
|
year: G,
|
|
31487
31489
|
month: X,
|
|
31488
|
-
monthDetails:
|
|
31490
|
+
monthDetails: D(G, X)
|
|
31489
31491
|
};
|
|
31490
31492
|
}, fe = (Z) => {
|
|
31491
31493
|
if (t.disableMonth)
|
|
@@ -31494,7 +31496,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31494
31496
|
X === -1 ? (X = 11, G--) : X === 12 && (X = 0, G++), l.value = {
|
|
31495
31497
|
year: G,
|
|
31496
31498
|
month: X,
|
|
31497
|
-
monthDetails:
|
|
31499
|
+
monthDetails: D(G, X)
|
|
31498
31500
|
};
|
|
31499
31501
|
}, re = () => {
|
|
31500
31502
|
const Z = /* @__PURE__ */ new Date(), G = Z.getFullYear(), X = Z.getMonth();
|
|
@@ -31503,7 +31505,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31503
31505
|
year: G,
|
|
31504
31506
|
month: X,
|
|
31505
31507
|
selectedDay: o,
|
|
31506
|
-
monthDetails:
|
|
31508
|
+
monthDetails: D(G, X)
|
|
31507
31509
|
};
|
|
31508
31510
|
};
|
|
31509
31511
|
return (Z, G) => (M(), q(xe, null, [
|
|
@@ -31647,7 +31649,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31647
31649
|
key: ne,
|
|
31648
31650
|
class: _e(["c-day-container", {
|
|
31649
31651
|
disabled: X.month !== 0,
|
|
31650
|
-
highlight:
|
|
31652
|
+
highlight: B(X),
|
|
31651
31653
|
"highlight-green": P(X)
|
|
31652
31654
|
}])
|
|
31653
31655
|
}, [
|
|
@@ -31830,7 +31832,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31830
31832
|
L.dataType === "PICKLIST" ? (M(), ve(Tn, {
|
|
31831
31833
|
key: 0,
|
|
31832
31834
|
modelValue: a.value[L.field],
|
|
31833
|
-
"onUpdate:modelValue": [(
|
|
31835
|
+
"onUpdate:modelValue": [(D) => a.value[L.field] = D, ke(E)],
|
|
31834
31836
|
options: L.options,
|
|
31835
31837
|
disabled: !L.editable,
|
|
31836
31838
|
select: "",
|
|
@@ -31841,12 +31843,12 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31841
31843
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "disabled", "error", "required", "label"])) : L.dataType === "BOOLEAN" ? (M(), ve(Ko, {
|
|
31842
31844
|
key: 1,
|
|
31843
31845
|
modelValue: a.value[L.field],
|
|
31844
|
-
"onUpdate:modelValue": [(
|
|
31846
|
+
"onUpdate:modelValue": [(D) => a.value[L.field] = D, ke(E)],
|
|
31845
31847
|
label: L.label
|
|
31846
31848
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"])) : L.dataType === "REFERENCE" ? (M(), ve(Tn, {
|
|
31847
31849
|
key: 2,
|
|
31848
31850
|
modelValue: a.value[L.field],
|
|
31849
|
-
"onUpdate:modelValue": [(
|
|
31851
|
+
"onUpdate:modelValue": [(D) => a.value[L.field] = D, ke(E)],
|
|
31850
31852
|
options: L.options,
|
|
31851
31853
|
disabled: !L.editable,
|
|
31852
31854
|
lookup: "",
|
|
@@ -31857,7 +31859,7 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31857
31859
|
loading: L.loading,
|
|
31858
31860
|
highlight: "",
|
|
31859
31861
|
property: { key: "Id", value: "Name" },
|
|
31860
|
-
onSearch: (
|
|
31862
|
+
onSearch: (D) => ke(w)(D, L.field, I)
|
|
31861
31863
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "disabled", "error", "required", "label", "loading", "onSearch"])) : L.dataType === "DATE" ? (M(), ve(wg, {
|
|
31862
31864
|
key: 3,
|
|
31863
31865
|
label: L.label,
|
|
@@ -31865,13 +31867,13 @@ const ba = (e) => (Lt("data-v-975857d5"), e = e(), Nt(), e), Wv = ["data-test-id
|
|
|
31865
31867
|
disabled: !L.editable,
|
|
31866
31868
|
error: L.error,
|
|
31867
31869
|
modelValue: a.value[L.field],
|
|
31868
|
-
"onUpdate:modelValue": (
|
|
31870
|
+
"onUpdate:modelValue": (D) => a.value[L.field] = D,
|
|
31869
31871
|
locale: h.value,
|
|
31870
31872
|
highlight: ""
|
|
31871
31873
|
}, null, 8, ["label", "required", "disabled", "error", "modelValue", "onUpdate:modelValue", "locale"])) : L.visiblity ? (M(), ve(fr, {
|
|
31872
31874
|
key: 4,
|
|
31873
31875
|
modelValue: a.value[L.field],
|
|
31874
|
-
"onUpdate:modelValue": [(
|
|
31876
|
+
"onUpdate:modelValue": [(D) => a.value[L.field] = D, ke(E)],
|
|
31875
31877
|
error: L.error,
|
|
31876
31878
|
required: L.required,
|
|
31877
31879
|
disabled: !L.editable,
|
|
@@ -35838,8 +35840,8 @@ function L0() {
|
|
|
35838
35840
|
let {
|
|
35839
35841
|
IS_ALLOWED_URI: L
|
|
35840
35842
|
} = Vs, I = null;
|
|
35841
|
-
const
|
|
35842
|
-
let
|
|
35843
|
+
const D = je({}, [...$s, ...Xi, ...Ki, ...Gi, ...js]);
|
|
35844
|
+
let B = null;
|
|
35843
35845
|
const P = je({}, [...Hs, ...Qi, ...Us, ...Ho]);
|
|
35844
35846
|
let U = Object.seal(M0(null, {
|
|
35845
35847
|
tagNameCheck: {
|
|
@@ -35881,7 +35883,7 @@ function L0() {
|
|
|
35881
35883
|
let ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
35882
35884
|
if (!(Dt && Dt === ue)) {
|
|
35883
35885
|
if ((!ue || typeof ue != "object") && (ue = {}), ue = zn(ue), Et = // eslint-disable-next-line unicorn/prefer-includes
|
|
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) :
|
|
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, U = ue.CUSTOM_ELEMENT_HANDLING || {}, ue.CUSTOM_ELEMENT_HANDLING && Qt(ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = ue.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ue.CUSTOM_ELEMENT_HANDLING && Qt(ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = ue.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ue.CUSTOM_ELEMENT_HANDLING && typeof ue.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.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, Hs)), Be.svg === !0 && (je(I, Xi), je(B, Qi), je(B, Ho)), Be.svgFilters === !0 && (je(I, Ki), je(B, Qi), je(B, Ho)), Be.mathMl === !0 && (je(I, Gi), je(B, Us), je(B, Ho))), 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) {
|
|
35885
35887
|
if (typeof ue.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
35886
35888
|
throw Zr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
35887
35889
|
if (typeof ue.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -36008,7 +36010,7 @@ function L0() {
|
|
|
36008
36010
|
return !1;
|
|
36009
36011
|
if (!(ee && !V[Ee] && Mt(H, Ee))) {
|
|
36010
36012
|
if (!(Q && Mt(j, Ee))) {
|
|
36011
|
-
if (!
|
|
36013
|
+
if (!B[Ee] || V[Ee]) {
|
|
36012
36014
|
if (
|
|
36013
36015
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
36014
36016
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -36044,7 +36046,7 @@ function L0() {
|
|
|
36044
36046
|
attrName: "",
|
|
36045
36047
|
attrValue: "",
|
|
36046
36048
|
keepAttr: !0,
|
|
36047
|
-
allowedAttributes:
|
|
36049
|
+
allowedAttributes: B,
|
|
36048
36050
|
forceKeepAttr: void 0
|
|
36049
36051
|
};
|
|
36050
36052
|
let We = Ee.length;
|
|
@@ -36140,7 +36142,7 @@ function L0() {
|
|
|
36140
36142
|
ut.appendChild(Ee.firstChild);
|
|
36141
36143
|
else
|
|
36142
36144
|
ut = Ee;
|
|
36143
|
-
return (
|
|
36145
|
+
return (B.shadowroot || B.shadowrootmode) && (ut = S.call(r, ut, !0)), ut;
|
|
36144
36146
|
}
|
|
36145
36147
|
let mt = Z ? Ee.outerHTML : Ee.innerHTML;
|
|
36146
36148
|
return Z && I["!doctype"] && Ee.ownerDocument && Ee.ownerDocument.doctype && Ee.ownerDocument.doctype.name && Mt(R0, Ee.ownerDocument.doctype.name) && (mt = "<!DOCTYPE " + Ee.ownerDocument.doctype.name + `>
|
|
@@ -36925,7 +36927,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
36925
36927
|
])
|
|
36926
36928
|
]));
|
|
36927
36929
|
}
|
|
36928
|
-
}, xk = (e) => (Lt("data-v-
|
|
36930
|
+
}, xk = (e) => (Lt("data-v-84d2155c"), e = e(), Nt(), e), _k = {
|
|
36929
36931
|
class: "ect-h-full ect-w-full ect-bg-white",
|
|
36930
36932
|
"data-test-id": "aiComponentLoader-wrapper"
|
|
36931
36933
|
}, Ck = {
|
|
@@ -36949,7 +36951,6 @@ const _C = ["innerHTML"], CC = {
|
|
|
36949
36951
|
identity: { type: Object, default: () => ({}) },
|
|
36950
36952
|
session: { type: Object, default: () => ({}) },
|
|
36951
36953
|
security: { type: Object, default: () => ({}) },
|
|
36952
|
-
eCatalogId: { type: String, default: "" },
|
|
36953
36954
|
packageVersion: { type: String, default: "" },
|
|
36954
36955
|
composablesOrgType: { type: String, default: "" },
|
|
36955
36956
|
composablesApiKey: { type: String, default: "" },
|
|
@@ -37067,8 +37068,8 @@ const _C = ["innerHTML"], CC = {
|
|
|
37067
37068
|
savedProducts: j
|
|
37068
37069
|
}
|
|
37069
37070
|
}, oe = ((A = t == null ? void 0 : t.currentPlaybook) == null ? void 0 : A.playBookSteps) || [], W = (I) => String(I || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_"), L = oe.findIndex((I) => {
|
|
37070
|
-
const
|
|
37071
|
-
return
|
|
37071
|
+
const D = W(I == null ? void 0 : I.stepComponent), B = W(I == null ? void 0 : I.stepName);
|
|
37072
|
+
return D === "configurator" || B.includes("configure");
|
|
37072
37073
|
});
|
|
37073
37074
|
if (L >= 0) {
|
|
37074
37075
|
const I = (T = oe[L]) == null ? void 0 : T.stepName;
|
|
@@ -37091,8 +37092,8 @@ const _C = ["innerHTML"], CC = {
|
|
|
37091
37092
|
savedProducts: j
|
|
37092
37093
|
}
|
|
37093
37094
|
}, oe = ((A = t == null ? void 0 : t.currentPlaybook) == null ? void 0 : A.playBookSteps) || [], W = (I) => String(I || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_"), L = oe.findIndex((I) => {
|
|
37094
|
-
const
|
|
37095
|
-
return
|
|
37095
|
+
const D = W(I == null ? void 0 : I.stepComponent), B = W(I == null ? void 0 : I.stepName);
|
|
37096
|
+
return D === "configurator" || B.includes("configure");
|
|
37096
37097
|
});
|
|
37097
37098
|
if (L >= 0) {
|
|
37098
37099
|
const I = (T = oe[L]) == null ? void 0 : T.stepName;
|
|
@@ -37146,10 +37147,10 @@ const _C = ["innerHTML"], CC = {
|
|
|
37146
37147
|
"item-id": s.value,
|
|
37147
37148
|
"qli-id": c.value || e.configQliId || void 0,
|
|
37148
37149
|
"quote-id": (T = e.session) == null ? void 0 : T.quoteId,
|
|
37149
|
-
|
|
37150
|
+
security: e.security,
|
|
37150
37151
|
"setup-data": o.value,
|
|
37151
37152
|
onReady: ke(r).setExpediteConfigComp
|
|
37152
|
-
}, null, 8, ["item-id", "qli-id", "quote-id", "security
|
|
37153
|
+
}, null, 8, ["item-id", "qli-id", "quote-id", "security", "setup-data", "onReady"])) : a.value === "configurator" && !y.value ? (M(), ve(bk, {
|
|
37153
37154
|
key: 3,
|
|
37154
37155
|
onReturn: E,
|
|
37155
37156
|
onGoCart: O
|
|
@@ -37162,7 +37163,7 @@ const _C = ["innerHTML"], CC = {
|
|
|
37162
37163
|
]);
|
|
37163
37164
|
};
|
|
37164
37165
|
}
|
|
37165
|
-
}, Ik = /* @__PURE__ */ we(wk, [["__scopeId", "data-v-
|
|
37166
|
+
}, Ik = /* @__PURE__ */ we(wk, [["__scopeId", "data-v-84d2155c"]]), Sk = {
|
|
37166
37167
|
class: "ai-guidance-loader",
|
|
37167
37168
|
"data-test-id": "aiGuidance-loader-container"
|
|
37168
37169
|
}, Ok = {
|
|
@@ -37244,10 +37245,6 @@ const _C = ["innerHTML"], CC = {
|
|
|
37244
37245
|
type: String,
|
|
37245
37246
|
required: !0
|
|
37246
37247
|
},
|
|
37247
|
-
eCatalogId: {
|
|
37248
|
-
type: String,
|
|
37249
|
-
required: !0
|
|
37250
|
-
},
|
|
37251
37248
|
// Optional props to support expose components (Catalog/Cart/Configurator) when available
|
|
37252
37249
|
hostName: { type: String, required: !1 },
|
|
37253
37250
|
graphqlEndpoint: { type: String, required: !1 },
|
|
@@ -37272,66 +37269,64 @@ const _C = ["innerHTML"], CC = {
|
|
|
37272
37269
|
composablesOrgType: f,
|
|
37273
37270
|
websocketUrl: m,
|
|
37274
37271
|
packageVersion: d,
|
|
37275
|
-
|
|
37276
|
-
|
|
37277
|
-
|
|
37278
|
-
security: p,
|
|
37272
|
+
identity: b,
|
|
37273
|
+
session: h,
|
|
37274
|
+
security: x,
|
|
37279
37275
|
// optional pass-throughs
|
|
37280
|
-
templateId:
|
|
37281
|
-
hostName:
|
|
37282
|
-
graphqlEndpoint:
|
|
37283
|
-
apiKey:
|
|
37284
|
-
isPreview:
|
|
37285
|
-
catalogSections:
|
|
37286
|
-
cartSections:
|
|
37287
|
-
theme:
|
|
37276
|
+
templateId: p,
|
|
37277
|
+
hostName: v,
|
|
37278
|
+
graphqlEndpoint: g,
|
|
37279
|
+
apiKey: k,
|
|
37280
|
+
isPreview: w,
|
|
37281
|
+
catalogSections: E,
|
|
37282
|
+
cartSections: O,
|
|
37283
|
+
theme: F
|
|
37288
37284
|
} = y;
|
|
37289
37285
|
Kt(async () => {
|
|
37290
|
-
console.log("security",
|
|
37291
|
-
userId:
|
|
37292
|
-
organizationId:
|
|
37293
|
-
accessToken:
|
|
37294
|
-
composablesApiUrl:
|
|
37286
|
+
console.log("security", x), console.log("apiKey", k), t.updateConfig({
|
|
37287
|
+
userId: b == null ? void 0 : b.userId,
|
|
37288
|
+
organizationId: b == null ? void 0 : b.organizationId,
|
|
37289
|
+
accessToken: x == null ? void 0 : x.accessToken,
|
|
37290
|
+
composablesApiUrl: x == null ? void 0 : x.baseUrl,
|
|
37295
37291
|
composablesOrgType: f,
|
|
37296
37292
|
websocketUrl: m,
|
|
37297
|
-
quoteId:
|
|
37293
|
+
quoteId: h == null ? void 0 : h.quoteId,
|
|
37298
37294
|
packageVersion: d,
|
|
37299
|
-
|
|
37300
|
-
accountId: h == null ? void 0 : h.accountId,
|
|
37295
|
+
accountId: b == null ? void 0 : b.accountId,
|
|
37301
37296
|
// Optional platform config if provided
|
|
37302
|
-
templateId:
|
|
37303
|
-
hostName:
|
|
37304
|
-
graphqlEndpoint:
|
|
37305
|
-
apiKey: (
|
|
37306
|
-
cid:
|
|
37307
|
-
isPreview:
|
|
37297
|
+
templateId: p,
|
|
37298
|
+
hostName: v,
|
|
37299
|
+
graphqlEndpoint: g,
|
|
37300
|
+
apiKey: (x == null ? void 0 : x.apiKey) || k,
|
|
37301
|
+
cid: b == null ? void 0 : b.contactId,
|
|
37302
|
+
isPreview: w
|
|
37308
37303
|
});
|
|
37309
37304
|
}), gt(async () => {
|
|
37310
|
-
var
|
|
37311
|
-
if (n.setSecretKey(
|
|
37305
|
+
var A, T;
|
|
37306
|
+
if (n.setSecretKey(x == null ? void 0 : x.accessToken), y.templateId) {
|
|
37312
37307
|
a.value = !0, await o.fetchBlockInformationREST({
|
|
37313
37308
|
templateId: y.templateId
|
|
37314
37309
|
});
|
|
37315
|
-
const
|
|
37316
|
-
console.log("playbookID",
|
|
37310
|
+
const N = o.pageBlocks[0].blocks[0].playbookId;
|
|
37311
|
+
console.log("playbookID", N), N ? i.value = !0 : c.value.push("No playbook ID found in template"), n.setEmbeddedMode(!0), N && (n.currentPlaybook = N, await n.getPlaybookByKey(N), n.showPlaybookSteps = !0), n.playbookStepsMode = "full", r.setInitialPayload(), await r.connectSocket(), (T = (A = n.currentPlaybook) == null ? void 0 : A.playBookSteps) != null && T.length && n.setCurrentStepName(n.currentPlaybook.playBookSteps[0].stepName), a.value = !1;
|
|
37317
37312
|
} else
|
|
37318
37313
|
c.value.push("templateId is required");
|
|
37319
37314
|
});
|
|
37320
|
-
const
|
|
37321
|
-
var
|
|
37322
|
-
const
|
|
37323
|
-
return
|
|
37324
|
-
}),
|
|
37325
|
-
var
|
|
37326
|
-
return ((
|
|
37315
|
+
const S = ce(() => {
|
|
37316
|
+
var N;
|
|
37317
|
+
const A = ((N = n.currentPlaybook) == null ? void 0 : N.playBookSteps) || [], T = n.currentStepName;
|
|
37318
|
+
return A.find((H) => H.stepName === T) || A[0] || null;
|
|
37319
|
+
}), _ = ce(() => {
|
|
37320
|
+
var A;
|
|
37321
|
+
return ((A = S.value) == null ? void 0 : A.stepComponent) || null;
|
|
37327
37322
|
});
|
|
37328
37323
|
return Ve(
|
|
37329
37324
|
() => n.activeComponentKey,
|
|
37330
|
-
(
|
|
37331
|
-
|
|
37325
|
+
(A) => {
|
|
37326
|
+
A && (l.value = !1);
|
|
37332
37327
|
}
|
|
37333
|
-
), (
|
|
37334
|
-
var
|
|
37328
|
+
), (A, T) => {
|
|
37329
|
+
var N;
|
|
37335
37330
|
return M(), q("div", Fk, [
|
|
37336
37331
|
se(Cl, {
|
|
37337
37332
|
icon: "logo",
|
|
@@ -37365,29 +37360,28 @@ const _C = ["innerHTML"], CC = {
|
|
|
37365
37360
|
}, [
|
|
37366
37361
|
ke(n).currentPlaybook ? (M(), ve(Ik, {
|
|
37367
37362
|
key: 0,
|
|
37368
|
-
"template-id": ((
|
|
37369
|
-
"step-component":
|
|
37370
|
-
identity: ke(
|
|
37371
|
-
session: ke(
|
|
37372
|
-
security: ke(
|
|
37363
|
+
"template-id": ((N = S.value) == null ? void 0 : N.templateId) || ke(p),
|
|
37364
|
+
"step-component": _.value,
|
|
37365
|
+
identity: ke(b),
|
|
37366
|
+
session: ke(h),
|
|
37367
|
+
security: ke(x),
|
|
37373
37368
|
"composables-org-type": ke(f),
|
|
37374
|
-
"e-catalog-id": ke(b),
|
|
37375
37369
|
"package-version": ke(d),
|
|
37376
|
-
"host-name": ke(
|
|
37377
|
-
"graphql-endpoint": ke(
|
|
37378
|
-
"api-key": ke(
|
|
37379
|
-
"is-preview": ke(
|
|
37380
|
-
sections: ke(
|
|
37381
|
-
"cart-sections": ke(
|
|
37382
|
-
theme: ke(
|
|
37370
|
+
"host-name": ke(v),
|
|
37371
|
+
"graphql-endpoint": ke(g),
|
|
37372
|
+
"api-key": ke(k),
|
|
37373
|
+
"is-preview": ke(w),
|
|
37374
|
+
sections: ke(E),
|
|
37375
|
+
"cart-sections": ke(O),
|
|
37376
|
+
theme: ke(F),
|
|
37383
37377
|
"data-test-id": "aiComponentLoader-mounted"
|
|
37384
|
-
}, null, 8, ["template-id", "step-component", "identity", "session", "security", "composables-org-type", "
|
|
37378
|
+
}, null, 8, ["template-id", "step-component", "identity", "session", "security", "composables-org-type", "package-version", "host-name", "graphql-endpoint", "api-key", "is-preview", "sections", "cart-sections", "theme"])) : le("", !0)
|
|
37385
37379
|
], 4)) : le("", !0)
|
|
37386
37380
|
], 6))
|
|
37387
37381
|
]);
|
|
37388
37382
|
};
|
|
37389
37383
|
}
|
|
37390
|
-
}, N0 = /* @__PURE__ */ we(Rk, [["__scopeId", "data-v-
|
|
37384
|
+
}, N0 = /* @__PURE__ */ we(Rk, [["__scopeId", "data-v-6b59cf87"]]), Lk = {
|
|
37391
37385
|
ExpediteConfigurator: Sl,
|
|
37392
37386
|
ExpediteGPT: Gc,
|
|
37393
37387
|
ExpediteCatalog: Dl,
|