@useinsider/guido 3.17.0 → 3.18.0-beta.a0b94e0
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/README.md +6 -5
- package/dist/@types/config/schemas.js +7 -6
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +82 -76
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +21 -0
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +106 -0
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +57 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue.js +19 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue2.js +63 -0
- package/dist/composables/useCustomInterfaceAppearance.js +52 -38
- package/dist/composables/useModuleRepair.js +33 -0
- package/dist/composables/useRecommendation.js +41 -34
- package/dist/composables/useSave.js +30 -29
- package/dist/composables/useStripo.js +15 -15
- package/dist/composables/useSyncModuleExtractor.js +15 -13
- package/dist/composables/validators/useSyncModuleBlockValidator.js +24 -0
- package/dist/config/i18n/en/labels.json.js +1 -1
- package/dist/config/migrator/index.js +9 -8
- package/dist/config/migrator/itemsBlockMigrator.js +197 -137
- package/dist/config/migrator/recommendation/compositionMapper.js +20 -20
- package/dist/config/migrator/recommendation/extractors.js +29 -24
- package/dist/config/migrator/recommendation/htmlBuilder.js +116 -130
- package/dist/config/migrator/recommendation/settingsMapper.js +17 -17
- package/dist/config/migrator/recommendationMigrator.js +31 -25
- package/dist/config/migrator/recommendationTitleMigrator.js +119 -0
- package/dist/enums/academy.js +2 -1
- package/dist/enums/date.js +5 -3
- package/dist/enums/extensions/recommendationBlock.js +3 -1
- package/dist/extensions/Blocks/Items/block.js +118 -49
- package/dist/extensions/Blocks/Items/constants/cardLayout.js +20 -0
- package/dist/extensions/Blocks/Items/constants/currency.js +25 -0
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +18 -17
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +25 -24
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +12 -11
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +114 -105
- package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +11 -9
- package/dist/extensions/Blocks/Items/template.js +189 -179
- package/dist/extensions/Blocks/Items/utils/constants.js +4 -0
- package/dist/extensions/Blocks/Recommendation/block.js +35 -29
- package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +29 -27
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +35 -28
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +309 -236
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +241 -180
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +124 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -0
- package/dist/extensions/Blocks/Recommendation/controls/title/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +31 -29
- package/dist/extensions/Blocks/Recommendation/services/configService.js +54 -36
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +23 -4
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +175 -79
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +3 -3
- package/dist/extensions/Blocks/Recommendation/templates/titleRows.js +33 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +85 -107
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +22 -0
- package/dist/extensions/Blocks/Recommendation/utils/recommendationBlockCount.js +10 -6
- package/dist/extensions/Blocks/common-control.js +22 -19
- package/dist/guido.css +1 -1
- package/dist/services/recommendationApi.js +69 -30
- package/dist/src/@types/config/schemas.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +3 -0
- package/dist/src/components/organisms/extensions/recommendation/RemoveStrategyModal.vue.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue.d.ts +15 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useModuleRepair.d.ts +18 -0
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/composables/useSyncModuleExtractor.d.ts +2 -0
- package/dist/src/composables/validators/useSyncModuleBlockValidator.d.ts +3 -0
- package/dist/src/config/migrator/recommendation/extractors.d.ts +8 -0
- package/dist/src/config/migrator/recommendationTitleMigrator.d.ts +5 -0
- package/dist/src/enums/academy.d.ts +1 -0
- package/dist/src/enums/date.d.ts +1 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/block.d.ts +35 -0
- package/dist/src/extensions/Blocks/Items/constants/cardLayout.d.ts +44 -0
- package/dist/src/extensions/Blocks/Items/constants/currency.d.ts +43 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +19 -0
- package/dist/src/extensions/Blocks/Items/utils/constants.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +2 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +3 -6
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +2 -2
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +12 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +11 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +44 -8
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/title/index.d.ts +86 -0
- package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +12 -1
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +176 -10
- package/dist/src/extensions/Blocks/Recommendation/templates/titleRows.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/nodeConfigWriter.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/recommendationBlockCount.d.ts +6 -2
- package/dist/src/extensions/Blocks/common-control.d.ts +4 -1
- package/dist/src/mock/api/recommendation-strategies.d.ts +2 -0
- package/dist/src/services/recommendationApi.d.ts +4 -1
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/src/stores/save-as-template.d.ts +4 -3
- package/dist/src/utils/genericUtil.d.ts +5 -0
- package/dist/src/utils/itemsCurrencyRepair.d.ts +17 -0
- package/dist/static/assets/icons/line-change.svg.js +5 -0
- package/dist/static/assets/icons/line-delete.svg.js +5 -0
- package/dist/static/assets/icons/line-plus.svg.js +5 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +155 -0
- package/dist/static/styles/customEditorStyle.css.js +3 -1
- package/dist/utils/dateUtil.js +23 -10
- package/dist/utils/genericUtil.js +28 -27
- package/dist/utils/itemsCurrencyRepair.js +39 -0
- package/dist/utils/pairProductVariables.js +77 -77
- package/dist/utils/templatePreparation.js +35 -34
- package/package.json +3 -2
- package/dist/composables/useModuleDynamicContentRepair.js +0 -37
- package/dist/src/composables/useModuleDynamicContentRepair.d.ts +0 -13
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { currencyLocationMaps as
|
|
2
|
-
import { UEAttr as
|
|
3
|
-
import { CommonControl as
|
|
1
|
+
import { currencyLocationMaps as p } from "../../../../../enums/extensions/recommendationBlock.js";
|
|
2
|
+
import { UEAttr as N, ModificationDescription as I } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
3
|
+
import { CommonControl as L } from "../../../common-control.js";
|
|
4
|
+
import { ITEMS_CURRENCY_ATTR as T, currencyPositionFromLocation as E } from "../../constants/currency.js";
|
|
4
5
|
import { ItemsBlockControlId as m } from "../../enums/controlEnums.js";
|
|
5
|
-
import { getItemsBlockConfig as
|
|
6
|
-
const
|
|
6
|
+
import { getItemsBlockConfig as l, setItemsBlockConfig as O, escapeReplacement as f } from "../../utils/nodeConfigUtils.js";
|
|
7
|
+
const b = m.PRICE_CURRENCY_LOCATION, c = {
|
|
7
8
|
CURRENCY_LOCATION: "currencyLocation"
|
|
8
9
|
};
|
|
9
|
-
class
|
|
10
|
+
class Y extends L {
|
|
10
11
|
getId() {
|
|
11
|
-
return
|
|
12
|
+
return b;
|
|
12
13
|
}
|
|
13
14
|
getTemplate() {
|
|
14
15
|
return `
|
|
@@ -18,32 +19,32 @@ class A extends N {
|
|
|
18
19
|
`;
|
|
19
20
|
}
|
|
20
21
|
onRender() {
|
|
21
|
-
const e =
|
|
22
|
-
this.api.setUIEAttribute(c.CURRENCY_LOCATION,
|
|
22
|
+
const e = l(this.currentNode);
|
|
23
|
+
this.api.setUIEAttribute(c.CURRENCY_LOCATION, N.SELECTPICKER.items, p), this.api.updateValues({ [c.CURRENCY_LOCATION]: (e == null ? void 0 : e.priceCurrencyLocation) ?? "0" }), this.api.onValueChanged(c.CURRENCY_LOCATION, (t) => {
|
|
23
24
|
this._onCurrencyLocationChange(t);
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
27
|
onTemplateNodeUpdated(e) {
|
|
27
28
|
super.onTemplateNodeUpdated(e), this.handleBlockInstanceChange(() => {
|
|
28
|
-
const t =
|
|
29
|
+
const t = l(this.currentNode);
|
|
29
30
|
this.api.updateValues({ [c.CURRENCY_LOCATION]: (t == null ? void 0 : t.priceCurrencyLocation) ?? "0" });
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
_onCurrencyLocationChange(e) {
|
|
33
|
-
if (console.debug("Currency location changed to: ", e),
|
|
34
|
+
if (console.debug("Currency location changed to: ", e), O(this.currentNode, this.api, { priceCurrencyLocation: e }), !this.currentNode)
|
|
34
35
|
return;
|
|
35
36
|
const t = this._getPriceBlocks();
|
|
36
37
|
if (!t || t.length === 0)
|
|
37
38
|
return;
|
|
38
|
-
const r =
|
|
39
|
-
t.forEach((
|
|
40
|
-
const
|
|
41
|
-
if (!
|
|
39
|
+
const r = l(this.currentNode), n = e || "0", o = (r == null ? void 0 : r.priceCurrencySymbol) ?? "", i = E(n), s = this.api.getDocumentModifier();
|
|
40
|
+
t.forEach((h) => {
|
|
41
|
+
const a = this._getParagraph(h);
|
|
42
|
+
if (!a)
|
|
42
43
|
return;
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
`Updated currency location to ${
|
|
44
|
+
const d = a.getInnerHTML().trim() || "", C = a.getInnerText().trim() || "", u = (o == null ? void 0 : o.trim()) || "", _ = this._removeCurrencySymbol(C, u), g = this._detectSymbolInText(C) || u, R = this._buildPriceContent(_, g, n), y = d.replace(C, f(R));
|
|
45
|
+
s.modifyHtml(a).setInnerHtml(y).setAttribute(T.POSITION, i);
|
|
46
|
+
}), s.apply(new I(
|
|
47
|
+
`Updated currency location to ${i}`
|
|
47
48
|
));
|
|
48
49
|
}
|
|
49
50
|
_getPriceBlocks() {
|
|
@@ -65,8 +66,8 @@ class A extends N {
|
|
|
65
66
|
} else {
|
|
66
67
|
const o = r.match(/([^0-9.,\s]+)/);
|
|
67
68
|
if (o && o[1]) {
|
|
68
|
-
const i = o[1].trim(),
|
|
69
|
-
n = r.replace(
|
|
69
|
+
const i = o[1].trim(), s = new RegExp(`\\s*${this._escapeRegex(i)}\\s*`);
|
|
70
|
+
n = r.replace(s, "").trim();
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
return n;
|
|
@@ -85,13 +86,13 @@ class A extends N {
|
|
|
85
86
|
this._GuSelect({
|
|
86
87
|
name: c.CURRENCY_LOCATION,
|
|
87
88
|
placeholder: "",
|
|
88
|
-
options:
|
|
89
|
+
options: p
|
|
89
90
|
})
|
|
90
91
|
])}
|
|
91
92
|
`;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
b as CONTROL_BLOCK_ID,
|
|
97
|
+
Y as PriceCurrencyLocationControl
|
|
97
98
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var N = (s, c, e) => c in s ? R(s, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[c] = e;
|
|
3
3
|
var h = (s, c, e) => N(s, typeof c != "symbol" ? c + "" : c, e);
|
|
4
|
-
import { ModificationDescription as
|
|
5
|
-
import { CommonControl as
|
|
4
|
+
import { ModificationDescription as E } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
+
import { CommonControl as B } from "../../../common-control.js";
|
|
6
|
+
import { ITEMS_CURRENCY_ATTR as T } from "../../constants/currency.js";
|
|
6
7
|
import { ItemsBlockControlId as y } from "../../enums/controlEnums.js";
|
|
7
|
-
import { getItemsBlockConfig as p, setItemsBlockConfig as
|
|
8
|
-
const
|
|
8
|
+
import { getItemsBlockConfig as p, setItemsBlockConfig as Y, escapeReplacement as f } from "../../utils/nodeConfigUtils.js";
|
|
9
|
+
const x = y.PRICE_CURRENCY_SYMBOL, u = {
|
|
9
10
|
CURRENCY_SYMBOL: "currencySymbol"
|
|
10
11
|
};
|
|
11
|
-
class
|
|
12
|
+
class $ extends B {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
14
15
|
h(this, "originalPriceContents", /* @__PURE__ */ new Map());
|
|
15
16
|
}
|
|
16
17
|
getId() {
|
|
17
|
-
return
|
|
18
|
+
return x;
|
|
18
19
|
}
|
|
19
20
|
getTemplate() {
|
|
20
21
|
return `
|
|
@@ -42,7 +43,7 @@ class P extends E {
|
|
|
42
43
|
var a;
|
|
43
44
|
console.debug("Currency symbol changed to: ", e);
|
|
44
45
|
const t = p(this.currentNode), o = ((a = t == null ? void 0 : t.priceCurrencySymbol) == null ? void 0 : a.trim()) || "";
|
|
45
|
-
if (
|
|
46
|
+
if (Y(this.currentNode, this.api, { priceCurrencySymbol: e }), !this.currentNode)
|
|
46
47
|
return;
|
|
47
48
|
const r = this._getPriceBlocks();
|
|
48
49
|
if (!r || r.length === 0)
|
|
@@ -53,8 +54,8 @@ class P extends E {
|
|
|
53
54
|
if (!m)
|
|
54
55
|
return;
|
|
55
56
|
const g = m.getInnerHTML().trim() || "", C = m.getInnerText().trim() || "", _ = this._removeCurrencySymbol(C, o), S = this._buildPriceContent(_, n, l), b = g.replace(C, f(S));
|
|
56
|
-
i.modifyHtml(m).setInnerHtml(b).setAttribute(
|
|
57
|
-
}), i.apply(new
|
|
57
|
+
i.modifyHtml(m).setInnerHtml(b).setAttribute(T.SYMBOL, n);
|
|
58
|
+
}), i.apply(new E(
|
|
58
59
|
`Updated currency symbol to ${n || "removed"}`
|
|
59
60
|
));
|
|
60
61
|
}
|
|
@@ -115,6 +116,6 @@ class P extends E {
|
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
x as CONTROL_BLOCK_ID,
|
|
120
|
+
$ as PriceCurrencySymbolControl
|
|
120
121
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { ModificationDescription as
|
|
2
|
-
import { CommonControl as
|
|
1
|
+
import { ModificationDescription as N, UEAttr as L } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { CommonControl as $ } from "../../common-control.js";
|
|
3
|
+
import { reorientBlockCellPadding as D, nameMaxWidthFor as f } from "../constants/cardLayout.js";
|
|
3
4
|
import { ItemsBlockId as I } from "../enums/controlEnums.js";
|
|
4
|
-
import { productPairs as y, templateFirstLine as
|
|
5
|
-
import { SETTINGS_ENUMS as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { getDefaultTemplate as
|
|
9
|
-
import { findNameTextNode as
|
|
10
|
-
import { getItemsBlockConfig as _, setItemsBlockConfig as M, escapeReplacement as
|
|
11
|
-
const
|
|
5
|
+
import { productPairs as y, templateFirstLine as x } from "../enums/productEnums.js";
|
|
6
|
+
import { SETTINGS_ENUMS as T, ItemTypeOptions as H, OrientationOptions as w, ItemInCartOptions as g, DefaultConfigValues as U } from "../enums/settingsEnums.js";
|
|
7
|
+
import q from "../layouts/horizontal.html.js";
|
|
8
|
+
import V from "../layouts/vertical.html.js";
|
|
9
|
+
import { getDefaultTemplate as B, wrapInTableRow as C, applyPriceOrientationStyles as G } from "../template.js";
|
|
10
|
+
import { findNameTextNode as Y } from "../utils/nameNode.js";
|
|
11
|
+
import { getItemsBlockConfig as _, setItemsBlockConfig as M, escapeReplacement as A, deriveItemNumber as v } from "../utils/nodeConfigUtils.js";
|
|
12
|
+
const Q = "ui-elements-items-block", p = {
|
|
12
13
|
ITEMS_TYPE: "itemsType",
|
|
13
14
|
ORIENTATION: "orientation",
|
|
14
15
|
ITEM_IDS: "itemIds"
|
|
15
16
|
};
|
|
16
|
-
class
|
|
17
|
+
class se extends $ {
|
|
17
18
|
getId() {
|
|
18
|
-
return
|
|
19
|
+
return Q;
|
|
19
20
|
}
|
|
20
21
|
getTemplate() {
|
|
21
22
|
return `
|
|
@@ -29,18 +30,18 @@ class te extends k {
|
|
|
29
30
|
onRender() {
|
|
30
31
|
const e = _(this.currentNode);
|
|
31
32
|
this.api.updateValues({
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
33
|
+
[p.ORIENTATION]: (e == null ? void 0 : e.orientation) ?? T.ORIENTATION.VERTICAL,
|
|
34
|
+
[p.ITEMS_TYPE]: (e == null ? void 0 : e.type) ?? T.ITEMS_TYPE.CART_ITEMS,
|
|
35
|
+
[p.ITEM_IDS]: (e == null ? void 0 : e.itemsSelectValue) ?? ""
|
|
35
36
|
}), this._listenToFormUpdates();
|
|
36
37
|
}
|
|
37
38
|
onTemplateNodeUpdated(e) {
|
|
38
39
|
super.onTemplateNodeUpdated(e), console.debug("Items Block Config", e.getNodeConfig()), this.handleBlockInstanceChange(() => {
|
|
39
40
|
const r = _(this.currentNode);
|
|
40
41
|
this.api.updateValues({
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
42
|
+
[p.ORIENTATION]: (r == null ? void 0 : r.orientation) ?? T.ORIENTATION.VERTICAL,
|
|
43
|
+
[p.ITEMS_TYPE]: (r == null ? void 0 : r.type) ?? T.ITEMS_TYPE.CART_ITEMS,
|
|
44
|
+
[p.ITEM_IDS]: (r == null ? void 0 : r.itemsSelectValue) ?? ""
|
|
44
45
|
}), this._initializeSelectItems();
|
|
45
46
|
});
|
|
46
47
|
}
|
|
@@ -49,10 +50,10 @@ class te extends k {
|
|
|
49
50
|
${this._GuOneColumn([
|
|
50
51
|
this._GuLabel({ text: "Item Type" }),
|
|
51
52
|
this._GuSelect({
|
|
52
|
-
name:
|
|
53
|
+
name: p.ITEMS_TYPE,
|
|
53
54
|
className: "es-100",
|
|
54
55
|
placeholder: "Select Item Type",
|
|
55
|
-
options:
|
|
56
|
+
options: H
|
|
56
57
|
})
|
|
57
58
|
])}
|
|
58
59
|
`;
|
|
@@ -62,8 +63,8 @@ class te extends k {
|
|
|
62
63
|
${this._GuTwoColumns([
|
|
63
64
|
this._GuLabel({ text: "Orientation" }),
|
|
64
65
|
this._GuRadioButton({
|
|
65
|
-
name:
|
|
66
|
-
buttons:
|
|
66
|
+
name: p.ORIENTATION,
|
|
67
|
+
buttons: w
|
|
67
68
|
})
|
|
68
69
|
])}
|
|
69
70
|
`;
|
|
@@ -73,7 +74,7 @@ class te extends k {
|
|
|
73
74
|
${this._GuTwoColumns([
|
|
74
75
|
this._GuLabel({ text: "Item in Cart" }),
|
|
75
76
|
this._GuSelect({
|
|
76
|
-
name:
|
|
77
|
+
name: p.ITEM_IDS,
|
|
77
78
|
className: "es-100",
|
|
78
79
|
placeholder: "Select Item In Cart",
|
|
79
80
|
options: []
|
|
@@ -82,32 +83,32 @@ class te extends k {
|
|
|
82
83
|
`;
|
|
83
84
|
}
|
|
84
85
|
_onOrientationChange(e) {
|
|
85
|
-
this.api.updateValues({ [
|
|
86
|
+
this.api.updateValues({ [p.ORIENTATION]: e });
|
|
86
87
|
const r = this.api.getDocumentModifier();
|
|
87
88
|
M(this.currentNode, this.api, {
|
|
88
89
|
orientation: e,
|
|
89
90
|
priceOrientation: "horizontal"
|
|
90
|
-
}, r), r.apply(new
|
|
91
|
+
}, r), r.apply(new N("Changed orientation")), this._reOrderTemplate(), setTimeout(() => {
|
|
91
92
|
this._recalculateTrimming();
|
|
92
93
|
}, 50);
|
|
93
94
|
}
|
|
94
95
|
_onItemsTypeChange(e) {
|
|
95
|
-
const r =
|
|
96
|
+
const r = T.ITEMS_TYPE[e], t = g[e], i = t == null ? void 0 : t[0];
|
|
96
97
|
if (!r || !i)
|
|
97
98
|
return;
|
|
98
|
-
const n = i.value, s = i.value.replace("Url}}", "Image}}"),
|
|
99
|
+
const n = i.value, s = i.value.replace("Url}}", "Image}}"), a = this.api.getDocumentModifier();
|
|
99
100
|
M(this.currentNode, this.api, {
|
|
100
101
|
source: r,
|
|
101
102
|
type: r,
|
|
102
103
|
itemsSelectValue: i.value,
|
|
103
104
|
imageLink: s,
|
|
104
105
|
buttonLink: n
|
|
105
|
-
},
|
|
106
|
-
const
|
|
107
|
-
this._updateImageSrc(
|
|
106
|
+
}, a), this._updateDataTypeAttributes(r, a), this._initializeSelectItems();
|
|
107
|
+
const l = this._getTemplateData(r, i.value);
|
|
108
|
+
this._updateImageSrc(l.imageSrc, a), this._updateName(l.name, a), this._updatePrice(l.price, a), this._updateOriginalPrice(l.originalPrice, a), this._updateQuantity(l.quantity, r, a), a.apply(new N("Updated items type"));
|
|
108
109
|
}
|
|
109
110
|
_onItemIdsChange(e) {
|
|
110
|
-
this.api.updateValues({ [
|
|
111
|
+
this.api.updateValues({ [p.ITEM_IDS]: e });
|
|
111
112
|
const r = e, t = e.replace("Url}}", "Image}}"), i = this.api.getDocumentModifier();
|
|
112
113
|
M(this.currentNode, this.api, {
|
|
113
114
|
itemsSelectValue: e,
|
|
@@ -115,58 +116,58 @@ class te extends k {
|
|
|
115
116
|
buttonLink: r
|
|
116
117
|
}, i), this._updateDataNumberAttributes(e, i);
|
|
117
118
|
const n = this._getTemplateData(void 0, e);
|
|
118
|
-
this._updateImageSrc(n.imageSrc, i), this._updateName(n.name, i), this._updatePrice(n.price, i), this._updateOriginalPrice(n.originalPrice, i), this._updateQuantity(n.quantity, void 0, i), i.apply(new
|
|
119
|
+
this._updateImageSrc(n.imageSrc, i), this._updateName(n.name, i), this._updatePrice(n.price, i), this._updateOriginalPrice(n.originalPrice, i), this._updateQuantity(n.quantity, void 0, i), i.apply(new N("Updated item selection"));
|
|
119
120
|
}
|
|
120
121
|
_initializeSelectItems() {
|
|
121
122
|
this.api.setUIEAttribute(
|
|
122
|
-
|
|
123
|
+
p.ITEMS_TYPE,
|
|
123
124
|
L.SELECTPICKER.items,
|
|
124
|
-
|
|
125
|
+
H
|
|
125
126
|
);
|
|
126
|
-
const e = _(this.currentNode), r = (e == null ? void 0 : e.type) ??
|
|
127
|
+
const e = _(this.currentNode), r = (e == null ? void 0 : e.type) ?? T.ITEMS_TYPE.CART_ITEMS, t = (e == null ? void 0 : e.itemsSelectValue) ?? "";
|
|
127
128
|
this.api.updateValues({
|
|
128
|
-
[
|
|
129
|
+
[p.ITEMS_TYPE]: r
|
|
129
130
|
});
|
|
130
|
-
const i =
|
|
131
|
+
const i = g[r];
|
|
131
132
|
this.api.setUIEAttribute(
|
|
132
|
-
|
|
133
|
+
p.ITEM_IDS,
|
|
133
134
|
L.SELECTPICKER.items,
|
|
134
135
|
i
|
|
135
136
|
), this.api.updateValues({
|
|
136
|
-
[
|
|
137
|
+
[p.ITEM_IDS]: t
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
140
|
_listenToFormUpdates() {
|
|
140
141
|
this.api.onValueChanged(
|
|
141
|
-
|
|
142
|
+
p.ITEMS_TYPE,
|
|
142
143
|
(e) => this._onItemsTypeChange(e)
|
|
143
144
|
), this.api.onValueChanged(
|
|
144
|
-
|
|
145
|
+
p.ORIENTATION,
|
|
145
146
|
(e) => this._onOrientationChange(e)
|
|
146
147
|
), this.api.onValueChanged(
|
|
147
|
-
|
|
148
|
+
p.ITEM_IDS,
|
|
148
149
|
(e) => this._onItemIdsChange(e)
|
|
149
150
|
);
|
|
150
151
|
}
|
|
151
152
|
_renderTemplate() {
|
|
152
|
-
const e = _(this.currentNode), r = (e == null ? void 0 : e.orientation) ??
|
|
153
|
-
this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(
|
|
153
|
+
const e = _(this.currentNode), r = (e == null ? void 0 : e.orientation) ?? T.ORIENTATION.VERTICAL, t = (e == null ? void 0 : e.type) ?? T.ITEMS_TYPE.CART_ITEMS, i = (e == null ? void 0 : e.itemsSelectValue) ?? "", n = (e == null ? void 0 : e.priceCurrencySymbol) ?? "", s = (e == null ? void 0 : e.priceCurrencyLocation) ?? "0", a = (e == null ? void 0 : e.priceFormatted) ?? !1;
|
|
154
|
+
this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(B({
|
|
154
155
|
orientation: r,
|
|
155
156
|
itemsType: t,
|
|
156
157
|
itemId: i,
|
|
157
158
|
currencySymbol: n,
|
|
158
159
|
currencyLocation: s,
|
|
159
|
-
formattedPrice:
|
|
160
|
-
})).apply(new
|
|
160
|
+
formattedPrice: a
|
|
161
|
+
})).apply(new N("Updated template"));
|
|
161
162
|
}
|
|
162
163
|
_getTemplateData(e, r) {
|
|
163
|
-
const t = _(this.currentNode), i = e ?? (t == null ? void 0 : t.type) ??
|
|
164
|
-
let
|
|
165
|
-
return
|
|
166
|
-
imageSrc: y.PAIRS_FOR_EXTENSION.imageSrc[i].DEFAULT[
|
|
167
|
-
name: y.PAIRS_FOR_EXTENSION.name[i].DEFAULT[
|
|
168
|
-
price:
|
|
169
|
-
originalPrice:
|
|
164
|
+
const t = _(this.currentNode), i = e ?? (t == null ? void 0 : t.type) ?? T.ITEMS_TYPE.CART_ITEMS, n = r ?? (t == null ? void 0 : t.itemsSelectValue) ?? "", s = (t == null ? void 0 : t.priceFormatted) ?? !1, a = (t == null ? void 0 : t.priceSinglePrice) ?? !1, l = g[i].findIndex((h) => h.value === n), c = l > -1 ? l : 0, o = y.PAIRS_FOR_EXTENSION.price[i], d = y.PAIRS_FOR_EXTENSION.originalPrice[i];
|
|
165
|
+
let m, u;
|
|
166
|
+
return a ? (m = s ? o.DEFAULT_SINGLE_PRICE_FORMATTED : o.DEFAULT_SINGLE_PRICE, u = s ? d.DEFAULT_SINGLE_PRICE_FORMATTED : d.DEFAULT_SINGLE_PRICE) : (m = s ? o.DEFAULT_PRICE_FORMATTED : o.DEFAULT_PRICE, u = s ? d.DEFAULT_PRICE_FORMATTED : d.DEFAULT_PRICE), {
|
|
167
|
+
imageSrc: y.PAIRS_FOR_EXTENSION.imageSrc[i].DEFAULT[c],
|
|
168
|
+
name: y.PAIRS_FOR_EXTENSION.name[i].DEFAULT[c],
|
|
169
|
+
price: m,
|
|
170
|
+
originalPrice: u,
|
|
170
171
|
quantity: y.PAIRS_FOR_EXTENSION.quantity[i].DEFAULT,
|
|
171
172
|
button: y.PAIRS_FOR_EXTENSION.button[i].DEFAULT_LABEL
|
|
172
173
|
};
|
|
@@ -183,71 +184,79 @@ class te extends k {
|
|
|
183
184
|
return;
|
|
184
185
|
const i = t.getInnerText().trim();
|
|
185
186
|
let n = t.getInnerHTML().trim();
|
|
186
|
-
n = n.replace(i,
|
|
187
|
+
n = n.replace(i, A(e)), r.modifyHtml(t).setInnerHtml(n);
|
|
187
188
|
}
|
|
188
189
|
_updatePrice(e, r) {
|
|
189
|
-
var
|
|
190
|
-
const t = ((
|
|
190
|
+
var a;
|
|
191
|
+
const t = ((a = this.currentNode) == null ? void 0 : a.querySelectorAll(
|
|
191
192
|
`[esd-extension-block-id="${I.PRICE}"]`
|
|
192
193
|
)) || [], i = _(this.currentNode), n = (i == null ? void 0 : i.priceCurrencySymbol) ?? "", s = (i == null ? void 0 : i.priceCurrencyLocation) ?? "0";
|
|
193
|
-
t.forEach((
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
194
|
+
t.forEach((l) => {
|
|
195
|
+
const c = this._getParagraphFromBlock(l);
|
|
196
|
+
if (!c)
|
|
196
197
|
return;
|
|
197
|
-
const
|
|
198
|
-
r.modifyHtml(
|
|
198
|
+
const o = c.getInnerHTML().trim() || "", d = c.getInnerText().trim() || "", m = (n == null ? void 0 : n.trim()) || "", u = this._removeCurrencySymbol(d, m), h = this._replacePriceNumber(u, e), E = this._buildPriceContent(h, m, s), S = o.replace(d, A(E));
|
|
199
|
+
r.modifyHtml(c).setInnerHtml(S);
|
|
199
200
|
});
|
|
200
201
|
}
|
|
201
202
|
_updateOriginalPrice(e, r) {
|
|
202
|
-
var
|
|
203
|
-
const t = ((
|
|
203
|
+
var a;
|
|
204
|
+
const t = ((a = this.currentNode) == null ? void 0 : a.querySelectorAll(
|
|
204
205
|
`[esd-extension-block-id="${I.ORIGINAL_PRICE}"]`
|
|
205
206
|
)) || [], i = _(this.currentNode), n = (i == null ? void 0 : i.priceCurrencySymbol) ?? "", s = (i == null ? void 0 : i.priceCurrencyLocation) ?? "0";
|
|
206
|
-
t.forEach((
|
|
207
|
-
const
|
|
208
|
-
if (!
|
|
207
|
+
t.forEach((l) => {
|
|
208
|
+
const c = this._getParagraphFromBlock(l);
|
|
209
|
+
if (!c)
|
|
209
210
|
return;
|
|
210
|
-
const
|
|
211
|
-
if (!
|
|
211
|
+
const o = c.querySelector("s");
|
|
212
|
+
if (!o)
|
|
212
213
|
return;
|
|
213
|
-
const
|
|
214
|
-
r.modifyHtml(
|
|
214
|
+
const d = o.getInnerHTML().trim() || "", m = o.getInnerText().trim() || "", u = (n == null ? void 0 : n.trim()) || "", h = this._removeCurrencySymbol(m, u), E = this._replacePriceNumber(h, e), S = this._buildPriceContent(E, u, s), R = `<s>${d.replace(m, A(S))}</s>`;
|
|
215
|
+
r.modifyHtml(c).setInnerHtml(R);
|
|
215
216
|
});
|
|
216
217
|
}
|
|
217
218
|
_updateQuantity(e, r, t) {
|
|
218
219
|
var h;
|
|
219
|
-
const i = _(this.currentNode), s = (r ?? (i == null ? void 0 : i.type) ??
|
|
220
|
-
if (!
|
|
220
|
+
const i = _(this.currentNode), s = (r ?? (i == null ? void 0 : i.type) ?? T.ITEMS_TYPE.CART_ITEMS) !== T.ITEMS_TYPE.BROWSED_ITEMS, a = (i == null ? void 0 : i.quantityControlEnabled) !== !1, l = s && a, c = (h = this.currentNode) == null ? void 0 : h.querySelector(`[esd-extension-block-id="${I.QUANTITY}"]`);
|
|
221
|
+
if (!c)
|
|
221
222
|
return;
|
|
222
|
-
const
|
|
223
|
-
if (!
|
|
223
|
+
const o = this._getParagraphFromBlock(c);
|
|
224
|
+
if (!o)
|
|
224
225
|
return;
|
|
225
|
-
const
|
|
226
|
-
let
|
|
227
|
-
function
|
|
226
|
+
const d = o.getInnerText().trim();
|
|
227
|
+
let m = o.getInnerHTML().trim();
|
|
228
|
+
function u(E, S, P) {
|
|
228
229
|
return E.replace(
|
|
229
|
-
new RegExp(`(>\\s*)?${
|
|
230
|
-
`$1${
|
|
230
|
+
new RegExp(`(>\\s*)?${S}(\\s*<)?`, "g"),
|
|
231
|
+
`$1${P}$2`
|
|
231
232
|
);
|
|
232
233
|
}
|
|
233
|
-
|
|
234
|
+
m = u(m, d, e), t.modifyHtml(o).setInnerHtml(m), t.modifyHtml(c).setStyle("display", l ? "table-cell" : "none");
|
|
234
235
|
}
|
|
235
236
|
_reOrderTemplate(e) {
|
|
236
|
-
var h, E,
|
|
237
|
-
const r = (h = this.currentNode) == null ? void 0 : h.querySelector(`[esd-extension-block-id="${I.IMAGE}"]`), t = (E = this.currentNode) == null ? void 0 : E.querySelector(`[esd-extension-block-id="${I.NAME}"]`), i = ((
|
|
237
|
+
var h, E, S, P, R, b;
|
|
238
|
+
const r = (h = this.currentNode) == null ? void 0 : h.querySelector(`[esd-extension-block-id="${I.IMAGE}"]`), t = (E = this.currentNode) == null ? void 0 : E.querySelector(`[esd-extension-block-id="${I.NAME}"]`), i = ((S = this.currentNode) == null ? void 0 : S.querySelectorAll(
|
|
238
239
|
`[esd-extension-block-id="${I.PRICE}"]`
|
|
239
|
-
)) || [], n = ((
|
|
240
|
+
)) || [], n = ((P = this.currentNode) == null ? void 0 : P.querySelectorAll(
|
|
240
241
|
`[esd-extension-block-id="${I.ORIGINAL_PRICE}"]`
|
|
241
|
-
)) || [], [s] = i, [
|
|
242
|
-
if (!r || !t || !s || !
|
|
242
|
+
)) || [], [s] = i, [a] = n, l = (R = this.currentNode) == null ? void 0 : R.querySelector(`[esd-extension-block-id="${I.QUANTITY}"]`), c = (b = this.currentNode) == null ? void 0 : b.querySelector(`[esd-extension-block-id="${I.BUTTON}"]`);
|
|
243
|
+
if (!r || !t || !s || !a || !l || !c)
|
|
243
244
|
return;
|
|
244
|
-
const
|
|
245
|
-
let
|
|
245
|
+
const o = _(this.currentNode), d = (o == null ? void 0 : o.orientation) ?? T.ORIENTATION.VERTICAL, m = d === T.ORIENTATION.VERTICAL;
|
|
246
|
+
let u = m ? V : q;
|
|
246
247
|
setTimeout(() => {
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
const k = A(D(s.getOuterHTML(), m)), F = A(
|
|
249
|
+
D(a.getOuterHTML(), m)
|
|
250
|
+
);
|
|
251
|
+
u = u.replace("{-{-TEMPLATE_FIRST_LINE-}-}", m ? x : "").replace("{-{-PRODUCT_IMAGE-}-}", C(r.getOuterHTML())).replace("{-{-PRODUCT_NAME-}-}", C(t.getOuterHTML())).replaceAll("{-{-PRODUCT_PRICE-}-}", C(k)).replaceAll("{-{-PRODUCT_ORIGINAL_PRICE-}-}", C(F)).replace("{-{-PRODUCT_QUANTITY-}-}", C(l.getOuterHTML())).replace("{-{-PRODUCT_BUTTON-}-}", C(c.getOuterHTML())), u = G(
|
|
252
|
+
u,
|
|
253
|
+
d,
|
|
254
|
+
(o == null ? void 0 : o.priceOrientation) ?? "horizontal",
|
|
255
|
+
(o == null ? void 0 : o.priceVisible) ?? !0,
|
|
256
|
+
(o == null ? void 0 : o.originalPriceVisible) ?? !0
|
|
257
|
+
), u = u.trim().replace(x, "").slice(0, -5);
|
|
258
|
+
const O = e ?? this.api.getDocumentModifier();
|
|
259
|
+
O.modifyHtml(r.querySelector("img")).setAttribute("width", U.productImageWidth).setAttribute("height", U.productImageWidth), O.modifyHtml(this.currentNode).setInnerHtml(u), e || O.apply(new N("Reordered template"));
|
|
251
260
|
}, 50);
|
|
252
261
|
}
|
|
253
262
|
_updateDataTypeAttributes(e, r) {
|
|
@@ -262,28 +271,28 @@ class te extends k {
|
|
|
262
271
|
_updateDataNumberAttributes(e, r) {
|
|
263
272
|
if (!this.currentNode)
|
|
264
273
|
return;
|
|
265
|
-
const t = _(this.currentNode), i = (t == null ? void 0 : t.type) ??
|
|
266
|
-
s && r.modifyHtml(s).setAttribute("data-number", n), this.currentNode.querySelectorAll("[data-number]").forEach((
|
|
267
|
-
const
|
|
268
|
-
r.modifyHtml(
|
|
274
|
+
const t = _(this.currentNode), i = (t == null ? void 0 : t.type) ?? T.ITEMS_TYPE.CART_ITEMS, n = v(e, i), s = this.currentNode.closest(".ins-product-td");
|
|
275
|
+
s && r.modifyHtml(s).setAttribute("data-number", n), this.currentNode.querySelectorAll("[data-number]").forEach((l) => {
|
|
276
|
+
const c = l;
|
|
277
|
+
r.modifyHtml(c).setAttribute("data-number", n);
|
|
269
278
|
});
|
|
270
279
|
}
|
|
271
280
|
_reFillTemplate(e) {
|
|
272
281
|
const r = this._getTemplateData(e), t = this.api.getDocumentModifier();
|
|
273
|
-
this._updateImageSrc(r.imageSrc, t), this._updateName(r.name, t), this._updatePrice(r.price, t), this._updateOriginalPrice(r.originalPrice, t), this._updateQuantity(r.quantity, e, t), t.apply(new
|
|
282
|
+
this._updateImageSrc(r.imageSrc, t), this._updateName(r.name, t), this._updatePrice(r.price, t), this._updateOriginalPrice(r.originalPrice, t), this._updateQuantity(r.quantity, e, t), t.apply(new N("Refilled template"));
|
|
274
283
|
}
|
|
275
284
|
_recalculateTrimming() {
|
|
276
|
-
var
|
|
285
|
+
var s;
|
|
277
286
|
if (!this.currentNode)
|
|
278
287
|
return;
|
|
279
|
-
const e = (
|
|
288
|
+
const e = (s = this.currentNode) == null ? void 0 : s.querySelector(`[esd-extension-block-id="${I.NAME}"]`);
|
|
280
289
|
if (!e)
|
|
281
290
|
return;
|
|
282
|
-
const r =
|
|
291
|
+
const r = Y(e);
|
|
283
292
|
if (!r)
|
|
284
293
|
return;
|
|
285
|
-
const t = _(this.currentNode), i = (t == null ? void 0 : t.nameTrimming) ?? !0;
|
|
286
|
-
this.api.getDocumentModifier().modifyHtml(r).setStyle("overflow", "hidden").setStyle("white-space", i ? "nowrap" : "normal").setStyle("text-overflow", i ? "ellipsis" : "unset").setStyle("max-width",
|
|
294
|
+
const t = _(this.currentNode), i = (t == null ? void 0 : t.nameTrimming) ?? !0, n = f(t == null ? void 0 : t.orientation);
|
|
295
|
+
this.api.getDocumentModifier().modifyHtml(r).setStyle("overflow", "hidden").setStyle("white-space", i ? "nowrap" : "normal").setStyle("text-overflow", i ? "ellipsis" : "unset").setStyle("max-width", n).removeStyle("width").apply(new N("Recalculated trimming after orientation change"));
|
|
287
296
|
}
|
|
288
297
|
_getParagraphFromBlock(e) {
|
|
289
298
|
return e.querySelector("p");
|
|
@@ -300,8 +309,8 @@ class te extends k {
|
|
|
300
309
|
} else {
|
|
301
310
|
const n = t.match(/([^0-9.,\s]+)/);
|
|
302
311
|
if (n && n[1]) {
|
|
303
|
-
const s = n[1].trim(),
|
|
304
|
-
i = t.replace(
|
|
312
|
+
const s = n[1].trim(), a = new RegExp(`\\s*${this._escapeRegex(s)}\\s*`);
|
|
313
|
+
i = t.replace(a, "").trim();
|
|
305
314
|
}
|
|
306
315
|
}
|
|
307
316
|
return i;
|
|
@@ -315,6 +324,6 @@ class te extends k {
|
|
|
315
324
|
}
|
|
316
325
|
}
|
|
317
326
|
export {
|
|
318
|
-
|
|
319
|
-
|
|
327
|
+
Q as CONTROL_BLOCK_ID,
|
|
328
|
+
se as ItemsBlockControl
|
|
320
329
|
};
|
|
@@ -92,15 +92,20 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
92
92
|
quantity: {
|
|
93
93
|
CART_ITEMS: {
|
|
94
94
|
ATTR: "ins_apr_quantity",
|
|
95
|
-
DEFAULT: "3"
|
|
95
|
+
DEFAULT: "3",
|
|
96
|
+
LEGACY_DEFAULTS: []
|
|
96
97
|
},
|
|
97
98
|
BROWSED_ITEMS: {
|
|
98
99
|
ATTR: "browsed_item_quantity",
|
|
99
|
-
DEFAULT: "
|
|
100
|
+
DEFAULT: "1",
|
|
101
|
+
// Was '7' before SD-149368 corrected it; still tokenize the legacy value so
|
|
102
|
+
// already-saved browsed-items templates keep exporting the merge tag, not literal '7'.
|
|
103
|
+
LEGACY_DEFAULTS: ["7"]
|
|
100
104
|
},
|
|
101
105
|
PURCHASED_ITEMS: {
|
|
102
106
|
ATTR: "purchased_item_quantity",
|
|
103
|
-
DEFAULT: "10"
|
|
107
|
+
DEFAULT: "10",
|
|
108
|
+
LEGACY_DEFAULTS: []
|
|
104
109
|
}
|
|
105
110
|
},
|
|
106
111
|
price: {
|
|
@@ -124,8 +129,8 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
124
129
|
CURRENCY: "browsed_item_productcurrency",
|
|
125
130
|
DEFAULT_PRICE: "1249.99",
|
|
126
131
|
DEFAULT_PRICE_FORMATTED: "1,249.99",
|
|
127
|
-
DEFAULT_SINGLE_PRICE: "
|
|
128
|
-
DEFAULT_SINGLE_PRICE_FORMATTED: "
|
|
132
|
+
DEFAULT_SINGLE_PRICE: "1249.99",
|
|
133
|
+
DEFAULT_SINGLE_PRICE_FORMATTED: "1,249.99",
|
|
129
134
|
DEFAULT_CURRENCY: "USD"
|
|
130
135
|
},
|
|
131
136
|
PURCHASED_ITEMS: {
|
|
@@ -162,8 +167,8 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
162
167
|
CURRENCY: "browsed_item_productcurrency",
|
|
163
168
|
DEFAULT_PRICE: "2049.99",
|
|
164
169
|
DEFAULT_PRICE_FORMATTED: "2,049.99",
|
|
165
|
-
DEFAULT_SINGLE_PRICE: "
|
|
166
|
-
DEFAULT_SINGLE_PRICE_FORMATTED: "
|
|
170
|
+
DEFAULT_SINGLE_PRICE: "2049.99",
|
|
171
|
+
DEFAULT_SINGLE_PRICE_FORMATTED: "2,049.99",
|
|
167
172
|
DEFAULT_CURRENCY: "USD"
|
|
168
173
|
},
|
|
169
174
|
PURCHASED_ITEMS: {
|
|
@@ -214,7 +219,7 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
214
219
|
function a(e, i = 8) {
|
|
215
220
|
return s(1, i + 1).map((_) => `${e}_${_}`);
|
|
216
221
|
}
|
|
217
|
-
function
|
|
222
|
+
function T() {
|
|
218
223
|
const { PAIRS_FOR_EXTENSION: e } = r, i = [];
|
|
219
224
|
return i.push(
|
|
220
225
|
e.imageSrc.CART_ITEMS.ATTR,
|
|
@@ -274,7 +279,7 @@ function R() {
|
|
|
274
279
|
), i;
|
|
275
280
|
}
|
|
276
281
|
const p = E(
|
|
277
|
-
|
|
282
|
+
T(),
|
|
278
283
|
(e) => a(e)
|
|
279
284
|
);
|
|
280
285
|
export {
|