@useinsider/guido 2.0.0-beta.d170da6 → 2.0.0-beta.da696d5
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 +2 -0
- package/dist/@types/config/schemas.js +3 -1
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +15 -17
- package/dist/composables/useStripo.js +40 -40
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +69 -153
- package/dist/extensions/Blocks/Recommendation/constants.js +1 -9
- package/dist/extensions/Blocks/Recommendation/control.js +59 -74
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +42 -16
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +72 -117
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +64 -85
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +17 -54
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +45 -74
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +52 -47
- package/dist/services/stripoApi.js +6 -10
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +3 -50
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -32
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +2 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +3 -3
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +7 -15
- package/dist/src/stores/config.d.ts +17 -0
- package/dist/static/styles/components/wide-panel.css.js +4 -0
- package/dist/static/styles/customEditorStyle.css.js +0 -13
- package/package.json +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +0 -68
- package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -245
- package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +0 -74
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +0 -188
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +0 -25
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +0 -25
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +0 -592
- package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +0 -60
- package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +0 -19
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { currencyDecimalCounts as
|
|
5
|
-
import { UEAttr as
|
|
6
|
-
import { CommonControl as
|
|
7
|
-
import { useRecommendationExtensionStore as
|
|
8
|
-
import { prepareProductRows as
|
|
9
|
-
import { DEFAULT_CARD_COMPOSITION as
|
|
10
|
-
import { useDebounceFn as
|
|
11
|
-
const
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var R = (s, n, e) => n in s ? _(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e;
|
|
3
|
+
var r = (s, n, e) => R(s, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import { currencyDecimalCounts as l, currencyOperators as c, currencyLocationMaps as h } from "../../../enums/extensions/recommendationBlock.js";
|
|
5
|
+
import { UEAttr as m, ModificationDescription as S } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
6
|
+
import { CommonControl as g } from "../common-control.js";
|
|
7
|
+
import { useRecommendationExtensionStore as O } from "./store/recommendation.js";
|
|
8
|
+
import { prepareProductRows as p } from "./templates/blockTemplate.js";
|
|
9
|
+
import { DEFAULT_CARD_COMPOSITION as C, getDefaultProducts as E } from "./templates/templateUtils.js";
|
|
10
|
+
import { useDebounceFn as U } from "../../../node_modules/@vueuse/shared/index.js";
|
|
11
|
+
const L = "ui-elements-recommendation-block", t = {
|
|
12
12
|
ALGORITHM: "strategy",
|
|
13
13
|
PRODUCT_IDS: "productIds",
|
|
14
14
|
LOCALE: "language",
|
|
@@ -21,23 +21,24 @@ const f = "ui-elements-recommendation-block", t = {
|
|
|
21
21
|
FILTERS: "filterStatus",
|
|
22
22
|
PRODUCT_COUNT: "size",
|
|
23
23
|
PRODUCT_IN_ROW: "cardsInRow",
|
|
24
|
-
SHUFFLE_PRODUCTS: "shuffleProducts"
|
|
24
|
+
SHUFFLE_PRODUCTS: "shuffleProducts",
|
|
25
|
+
RESPONSIVE: "unresponsive"
|
|
25
26
|
};
|
|
26
|
-
class
|
|
27
|
+
class b extends g {
|
|
27
28
|
constructor() {
|
|
28
29
|
super(...arguments);
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
r(this, "store", O());
|
|
31
|
+
r(this, "storeUnsubscription", () => {
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
+
r(this, "addFilterListener", () => {
|
|
33
34
|
});
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
r(this, "addFilterButton", null);
|
|
36
|
+
r(this, "_debouncedRegenerateProductRows", U(() => {
|
|
36
37
|
this._regenerateProductRows();
|
|
37
38
|
}, 500));
|
|
38
39
|
}
|
|
39
40
|
getId() {
|
|
40
|
-
return
|
|
41
|
+
return L;
|
|
41
42
|
}
|
|
42
43
|
getTemplate() {
|
|
43
44
|
return `
|
|
@@ -48,6 +49,7 @@ class Y extends U {
|
|
|
48
49
|
${this._getFilterStatus()}
|
|
49
50
|
${this._getProductLayout()}
|
|
50
51
|
${this._getShuffleProducts()}
|
|
52
|
+
${this._getResponsive()}
|
|
51
53
|
</div>
|
|
52
54
|
`;
|
|
53
55
|
}
|
|
@@ -77,25 +79,27 @@ class Y extends U {
|
|
|
77
79
|
[t.CURRENCY_DECIMAL_COUNT]: e.currencySettings.decimalCount,
|
|
78
80
|
[t.PRODUCT_COUNT]: e.size,
|
|
79
81
|
[t.PRODUCT_IN_ROW]: e.cardsInRow,
|
|
80
|
-
[t.SHUFFLE_PRODUCTS]: e.shuffleProducts
|
|
82
|
+
[t.SHUFFLE_PRODUCTS]: e.shuffleProducts,
|
|
83
|
+
[t.RESPONSIVE]: !e.unresponsive
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
86
|
_initializeSelectItems() {
|
|
84
|
-
const { store: e } = this, o = e.getActivePredictiveAlgorithms, i = e.getLanguages,
|
|
87
|
+
const { store: e } = this, o = e.getActivePredictiveAlgorithms, i = e.getLanguages, a = {
|
|
85
88
|
[t.ALGORITHM]: o,
|
|
86
89
|
[t.LOCALE]: i,
|
|
87
90
|
[t.CURRENCY]: e.currencyList,
|
|
88
|
-
[t.CURRENCY_LOCATION]:
|
|
91
|
+
[t.CURRENCY_LOCATION]: h,
|
|
89
92
|
[t.CURRENCY_SYMBOL]: e.getCurrencySymbolList,
|
|
90
|
-
[t.CURRENCY_THOUSAND_SEPARATOR]:
|
|
91
|
-
[t.CURRENCY_DECIMAL_SEPARATOR]:
|
|
92
|
-
[t.CURRENCY_DECIMAL_COUNT]:
|
|
93
|
+
[t.CURRENCY_THOUSAND_SEPARATOR]: c,
|
|
94
|
+
[t.CURRENCY_DECIMAL_SEPARATOR]: c,
|
|
95
|
+
[t.CURRENCY_DECIMAL_COUNT]: l,
|
|
93
96
|
[t.PRODUCT_COUNT]: Number(e.recommendationConfigs.size),
|
|
94
97
|
[t.PRODUCT_IN_ROW]: e.recommendationConfigs.cardsInRow,
|
|
95
|
-
[t.SHUFFLE_PRODUCTS]: e.recommendationConfigs.shuffleProducts
|
|
98
|
+
[t.SHUFFLE_PRODUCTS]: e.recommendationConfigs.shuffleProducts,
|
|
99
|
+
[t.RESPONSIVE]: !e.recommendationConfigs.unresponsive
|
|
96
100
|
};
|
|
97
|
-
Object.entries(
|
|
98
|
-
this.api.setUIEAttribute(
|
|
101
|
+
Object.entries(a).forEach(([u, d]) => {
|
|
102
|
+
this.api.setUIEAttribute(u, m.SELECTPICKER.items, d);
|
|
99
103
|
});
|
|
100
104
|
}
|
|
101
105
|
_getAlgorithms() {
|
|
@@ -141,7 +145,7 @@ class Y extends U {
|
|
|
141
145
|
this._GuSelect({
|
|
142
146
|
name: t.CURRENCY_LOCATION,
|
|
143
147
|
placeholder: "Select Currency Location",
|
|
144
|
-
options:
|
|
148
|
+
options: h
|
|
145
149
|
}),
|
|
146
150
|
this._GuLabel({ text: "Currency Symbol" }),
|
|
147
151
|
this._GuSelect({
|
|
@@ -153,19 +157,19 @@ class Y extends U {
|
|
|
153
157
|
this._GuSelect({
|
|
154
158
|
name: t.CURRENCY_THOUSAND_SEPARATOR,
|
|
155
159
|
placeholder: "Select Thousand Separator",
|
|
156
|
-
options:
|
|
160
|
+
options: c
|
|
157
161
|
}),
|
|
158
162
|
this._GuLabel({ text: "Decimal Separator" }),
|
|
159
163
|
this._GuSelect({
|
|
160
164
|
name: t.CURRENCY_DECIMAL_SEPARATOR,
|
|
161
165
|
placeholder: "Select Decimal Separator",
|
|
162
|
-
options:
|
|
166
|
+
options: c
|
|
163
167
|
}),
|
|
164
168
|
this._GuLabel({ text: "Decimal Count" }),
|
|
165
169
|
this._GuSelect({
|
|
166
170
|
name: t.CURRENCY_DECIMAL_COUNT,
|
|
167
171
|
placeholder: "Select Decimal Count",
|
|
168
|
-
options:
|
|
172
|
+
options: l
|
|
169
173
|
})
|
|
170
174
|
])}
|
|
171
175
|
`;
|
|
@@ -200,6 +204,20 @@ class Y extends U {
|
|
|
200
204
|
])}
|
|
201
205
|
`;
|
|
202
206
|
}
|
|
207
|
+
_getResponsive() {
|
|
208
|
+
return `
|
|
209
|
+
${this._GuTwoColumns([
|
|
210
|
+
this._GuLabel({ text: "Responsive Block" }),
|
|
211
|
+
this._GuToggle(t.RESPONSIVE)
|
|
212
|
+
])}
|
|
213
|
+
`;
|
|
214
|
+
}
|
|
215
|
+
_onFilterChange(e) {
|
|
216
|
+
this.currentNode && this.store.$patch({
|
|
217
|
+
filterStatus: e,
|
|
218
|
+
filterSelectionDrawerStatus: e
|
|
219
|
+
});
|
|
220
|
+
}
|
|
203
221
|
_onFilterSelectClick() {
|
|
204
222
|
this.store.$patch({
|
|
205
223
|
filterSelectionDrawerStatus: !0
|
|
@@ -217,12 +235,12 @@ class Y extends U {
|
|
|
217
235
|
*/
|
|
218
236
|
_getCardComposition() {
|
|
219
237
|
if (!this.currentNode)
|
|
220
|
-
return
|
|
238
|
+
return C;
|
|
221
239
|
const e = this.currentNode.querySelector(".ins-recommendation-v3-block-v2");
|
|
222
240
|
if (!e || !("getAttribute" in e))
|
|
223
|
-
return
|
|
241
|
+
return C;
|
|
224
242
|
const o = e.getAttribute("data-card-composition");
|
|
225
|
-
return o ? o.split(",").filter(Boolean) :
|
|
243
|
+
return o ? o.split(",").filter(Boolean) : C;
|
|
226
244
|
}
|
|
227
245
|
_regenerateProductRows() {
|
|
228
246
|
if (!this.currentNode || !("querySelector" in this.currentNode))
|
|
@@ -232,41 +250,8 @@ class Y extends U {
|
|
|
232
250
|
console.error("Could not find container table for product rows");
|
|
233
251
|
return;
|
|
234
252
|
}
|
|
235
|
-
const o = this.store.recommendationProducts.length > 0 ? this.store.recommendationProducts :
|
|
236
|
-
this.api.getDocumentModifier().modifyHtml(e).setInnerHtml(
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Reapply spacing values after product regeneration
|
|
240
|
-
* This ensures spacing persists when products are regenerated
|
|
241
|
-
*/
|
|
242
|
-
_reapplySpacing() {
|
|
243
|
-
if (!this.currentNode)
|
|
244
|
-
return;
|
|
245
|
-
const e = this.currentNode.querySelector(".ins-recommendation-v3-block-v2");
|
|
246
|
-
if (!e || !("getAttribute" in e))
|
|
247
|
-
return;
|
|
248
|
-
const o = e.getAttribute("data-column-spacing"), i = e.getAttribute("data-row-spacing"), n = this.api.getDocumentModifier();
|
|
249
|
-
if (o) {
|
|
250
|
-
const r = parseInt(o);
|
|
251
|
-
if (!Number.isNaN(r)) {
|
|
252
|
-
const h = `0 ${Math.floor(r / 2)}px`;
|
|
253
|
-
Array.from(
|
|
254
|
-
this.currentNode.querySelectorAll(".product-card-wrapper")
|
|
255
|
-
).forEach((c) => {
|
|
256
|
-
"parentNode" in c && c.parentNode && typeof c.parentNode == "object" && "tagName" in c.parentNode && c.parentNode.tagName === "TD" && n.modifyHtml(c.parentNode).setStyle("padding", h);
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
if (i) {
|
|
261
|
-
const r = parseInt(i);
|
|
262
|
-
if (!Number.isNaN(r)) {
|
|
263
|
-
const l = `${r}px`;
|
|
264
|
-
Array.from(this.currentNode.querySelectorAll(".spacer")).forEach((m) => {
|
|
265
|
-
n.modifyHtml(m).setStyle("height", l);
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
(o || i) && n.apply(new g("Reapply spacing after regeneration"));
|
|
253
|
+
const o = this.store.recommendationProducts.length > 0 ? this.store.recommendationProducts : E(), { cardsInRow: i } = this.store.recommendationConfigs, a = this._getCardComposition(), u = p(o, i, a);
|
|
254
|
+
this.api.getDocumentModifier().modifyHtml(e).setInnerHtml(u).apply(new S("Updated product"));
|
|
270
255
|
}
|
|
271
256
|
_onCurrencyConfigChange(e, o) {
|
|
272
257
|
this.currentNode && this.store.$patch({
|
|
@@ -303,8 +288,8 @@ class Y extends U {
|
|
|
303
288
|
t.CURRENCY_DECIMAL_SEPARATOR,
|
|
304
289
|
t.CURRENCY_DECIMAL_COUNT
|
|
305
290
|
].forEach((i) => {
|
|
306
|
-
this.api.onValueChanged(i, (
|
|
307
|
-
}), this.api.onValueChanged(t.PRODUCT_COUNT, (i) => this._onDataChange(t.PRODUCT_COUNT, i.toString())), this.api.onValueChanged(t.PRODUCT_IN_ROW, (i) => this._onDataChange(t.PRODUCT_IN_ROW, i)), this.api.onValueChanged(t.SHUFFLE_PRODUCTS, (i) => this._onDataChange(t.SHUFFLE_PRODUCTS, i)), this.addFilterListener = this._onFilterSelectClick.bind(this), this.addFilterButton = this.getContainer().querySelector("#guido__btn-add-filter"), (o = this.addFilterButton) == null || o.addEventListener("click", this.addFilterListener);
|
|
291
|
+
this.api.onValueChanged(i, (a) => this._onCurrencyConfigChange(i, a));
|
|
292
|
+
}), this.api.onValueChanged(t.PRODUCT_COUNT, (i) => this._onDataChange(t.PRODUCT_COUNT, i.toString())), this.api.onValueChanged(t.PRODUCT_IN_ROW, (i) => this._onDataChange(t.PRODUCT_IN_ROW, i)), this.api.onValueChanged(t.SHUFFLE_PRODUCTS, (i) => this._onDataChange(t.SHUFFLE_PRODUCTS, i)), this.api.onValueChanged(t.RESPONSIVE, (i) => this._onDataChange(t.RESPONSIVE, i)), this.addFilterListener = this._onFilterSelectClick.bind(this), this.addFilterButton = this.getContainer().querySelector("#guido__btn-add-filter"), (o = this.addFilterButton) == null || o.addEventListener("click", this.addFilterListener);
|
|
308
293
|
}
|
|
309
294
|
_listenStateUpdates() {
|
|
310
295
|
this.storeUnsubscription = this.store.$subscribe((e) => {
|
|
@@ -316,6 +301,6 @@ class Y extends U {
|
|
|
316
301
|
}
|
|
317
302
|
}
|
|
318
303
|
export {
|
|
319
|
-
|
|
320
|
-
|
|
304
|
+
L as CONTROL_BLOCK_ID,
|
|
305
|
+
b as RecommendationBlockControl
|
|
321
306
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonAlignBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class c extends t {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_ALIGN;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as ButtonAlignControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonBorderBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class s extends t {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_BORDER;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ButtonBorderControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonBorderRadiusBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class i extends t {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_BORDER_RADIUS;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as ButtonBorderRadiusControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonColorBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class c extends t {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_COLOR;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as ButtonColorControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonFitToContainerBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class s extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_FIT_TO_CONTENT;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ButtonFitToContentControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonFontFamilyBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class s extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_FONT_FAMILY;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ButtonFontFamilyControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonMarginsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class m extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_MARGINS;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as ButtonMarginsControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class i extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_PADDINGS;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as ButtonPaddingsControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonTextBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class c extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_TEXT;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as ButtonTextControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonTextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as o, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class s extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return o.BUTTON_TEXT_SIZE;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ButtonTextSizeControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonTextStyleAndFontColorBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class s extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return e.BUTTON_TEXT_STYLE_AND_FONT_COLOR;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(t) {
|
|
8
|
+
return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ButtonTextStyleAndFontColorControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ImageMarginsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class l extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.IMAGE_MARGINS;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.IMAGE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
l as ImageMarginsControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ImageSizeBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class s extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.IMAGE_SIZE;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.IMAGE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
s as ImageSizeControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class m extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_ALIGN;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as NameAlignControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextBlockBackgroundBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class m extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_BACKGROUND;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as NameBackgroundControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextColorBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class m extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_COLOR;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as NameColorControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextFontFamilyBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class d extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_FONT_FAMILY;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
d as NameFontFamilyControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
|
|
3
|
+
class c extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_PADDINGS;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as NamePaddingsControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class m extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_SIZE;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as NameSizeControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextStyleBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class m extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.NAME_STYLE;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as NameStyleControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class i extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.OLD_PRICE_ALIGN;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPriceAlignControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextBlockBackgroundBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as r, RecommendationBlockId as t } from "../../constants.js";
|
|
3
|
+
class i extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return r.OLD_PRICE_BACKGROUND;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${t.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPriceBackgroundControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextColorBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as r, RecommendationBlockId as t } from "../../constants.js";
|
|
3
|
+
class i extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return r.OLD_PRICE_COLOR;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${t.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPriceColorControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextFontFamilyBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class i extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.OLD_PRICE_FONT_FAMILY;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPriceFontFamilyControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class i extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.OLD_PRICE_PADDINGS;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPricePaddingsControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class i extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.OLD_PRICE_SIZE;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPriceSizeControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextStyleBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class i extends e {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.OLD_PRICE_STYLE;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(o) {
|
|
8
|
+
return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.OLD_PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
i as OldPriceStyleControl
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
|
|
3
|
+
class d extends o {
|
|
4
|
+
getId() {
|
|
5
|
+
return t.PRICE_ALIGN;
|
|
6
|
+
}
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.PRICE}"]`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
d as PriceAlignControl
|
|
13
|
+
};
|