@useinsider/guido 3.16.0-beta.ff4f1bd → 3.16.1-beta.626490d
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 +0 -1
- package/dist/@types/config/schemas.js +6 -12
- package/dist/components/Guido.vue.js +6 -6
- package/dist/components/Guido.vue2.js +30 -31
- package/dist/composables/useRecommendation.js +36 -43
- package/dist/config/migrator/recommendationMigrator.js +4 -6
- package/dist/enums/extensions/recommendationBlock.js +23 -25
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +11 -13
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -112
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +53 -188
- package/dist/guido.css +1 -1
- package/dist/services/recommendationApi.js +28 -77
- package/dist/src/@types/config/schemas.d.ts +0 -12
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/composables/useRecommendation.d.ts +0 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -2
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +3 -6
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +10 -199
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +0 -6
- package/dist/src/services/recommendationApi.d.ts +1 -4
- package/dist/src/stores/config.d.ts +0 -18
- package/dist/utils/templatePreparation.js +34 -37
- package/package.json +1 -2
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +0 -18
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +0 -61
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +0 -106
- package/dist/node_modules/@useinsider/design-system-organisms/dist/index-5JHlb8rM.js +0 -524
- package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +0 -8450
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +0 -174
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +0 -381
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +0 -236
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +0 -70
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +0 -350
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +0 -371
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +0 -152
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +0 -141
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +0 -1047
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +0 -96050
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +0 -2042
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +0 -166
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +0 -1098
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +0 -55
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +0 -265
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +0 -184
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +0 -50
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +0 -453
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +0 -145
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +0 -176
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +0 -266
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +0 -114
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +0 -200
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +0 -451
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +0 -49
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +0 -119
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +0 -4309
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +0 -129
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +0 -503
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +0 -253
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +0 -107
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +0 -134
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +0 -464
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +0 -28
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +0 -23
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +0 -29
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +0 -109
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +0 -2339
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +0 -16
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +0 -17
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +0 -188
- package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +0 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -26
- package/dist/src/mock/api/recommendation-strategies.d.ts +0 -41
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var p = (d,
|
|
3
|
-
var s = (d,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_NODE_CONFIG as l } from "../../constants/defaultConfig.js";
|
|
2
|
+
var p = (d, l, t) => l in d ? f(d, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[l] = t;
|
|
3
|
+
var s = (d, l, t) => p(d, typeof l != "symbol" ? l + "" : l, t);
|
|
4
|
+
import { CommonControl as g } from "../../../common-control.js";
|
|
5
|
+
import { DEFAULT_NODE_CONFIG as c } from "../../constants/defaultConfig.js";
|
|
7
6
|
import { RecommendationConfigService as m } from "../../services/configService.js";
|
|
8
|
-
import { useRecommendationExtensionStore as
|
|
9
|
-
import { AlgorithmControl as
|
|
10
|
-
import { ALGORITHM_CONTROL_ID as
|
|
11
|
-
import { CurrencyControl as
|
|
12
|
-
import { CURRENCY_CONTROL_ID as
|
|
13
|
-
import { FiltersControl as
|
|
14
|
-
import { FILTERS_CONTROL_ID as
|
|
15
|
-
import { LayoutOrientationControl as
|
|
16
|
-
import { LAYOUT_ORIENTATION_CONTROL_ID as
|
|
17
|
-
import { LocaleControl as
|
|
18
|
-
import { LOCALE_CONTROL_ID as
|
|
19
|
-
import { PricePlacementControl as
|
|
20
|
-
import { PRICE_PLACEMENT_CONTROL_ID as
|
|
7
|
+
import { useRecommendationExtensionStore as y } from "../../store/recommendation.js";
|
|
8
|
+
import { AlgorithmControl as N } from "./algorithm.js";
|
|
9
|
+
import { ALGORITHM_CONTROL_ID as tt } from "./algorithm.js";
|
|
10
|
+
import { CurrencyControl as R } from "./currency.js";
|
|
11
|
+
import { CURRENCY_CONTROL_ID as ot } from "./currency.js";
|
|
12
|
+
import { FiltersControl as I } from "./filters.js";
|
|
13
|
+
import { FILTERS_CONTROL_ID as nt } from "./filters.js";
|
|
14
|
+
import { LayoutOrientationControl as _ } from "./layoutOrientation.js";
|
|
15
|
+
import { LAYOUT_ORIENTATION_CONTROL_ID as st } from "./layoutOrientation.js";
|
|
16
|
+
import { LocaleControl as b } from "./locale.js";
|
|
17
|
+
import { LOCALE_CONTROL_ID as lt } from "./locale.js";
|
|
18
|
+
import { PricePlacementControl as T } from "./pricePlacement.js";
|
|
19
|
+
import { PRICE_PLACEMENT_CONTROL_ID as ut } from "./pricePlacement.js";
|
|
21
20
|
import { ProductCountControl as P } from "./productCount.js";
|
|
22
|
-
import { PRODUCT_COUNT_CONTROL_ID as
|
|
23
|
-
import { ProductLayoutControl as
|
|
24
|
-
import { PRODUCT_LAYOUT_CONTROL_ID as
|
|
25
|
-
import { ShuffleControl as
|
|
26
|
-
import { SHUFFLE_CONTROL_ID as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { setCurrencyAttributes as D, getBlockElement as E, isPartnerManagedBlock as v, updateProductContentInPlace as A, regenerateProductRowsWithStyles as w } from "./utils.js";
|
|
30
|
-
import { adjustProductsToSize as _t, formatProductPrice as Ot, getCardComposition as Pt, getCurrentLayout as Lt, regenerateMobileProductRows as St, updatePricesInPlace as kt, updateSingleProductContent as Dt } from "./utils.js";
|
|
21
|
+
import { PRODUCT_COUNT_CONTROL_ID as mt } from "./productCount.js";
|
|
22
|
+
import { ProductLayoutControl as O } from "./productLayout.js";
|
|
23
|
+
import { PRODUCT_LAYOUT_CONTROL_ID as Ct } from "./productLayout.js";
|
|
24
|
+
import { ShuffleControl as L } from "./shuffle.js";
|
|
25
|
+
import { SHUFFLE_CONTROL_ID as pt } from "./shuffle.js";
|
|
26
|
+
import { setCurrencyAttributes as S, getBlockElement as k, isPartnerManagedBlock as D, updateProductContentInPlace as E, regenerateProductRowsWithStyles as A } from "./utils.js";
|
|
27
|
+
import { adjustProductsToSize as yt, formatProductPrice as Nt, getCardComposition as Rt, getCurrentLayout as It, regenerateMobileProductRows as _t, updatePricesInPlace as bt, updateSingleProductContent as Tt } from "./utils.js";
|
|
31
28
|
import { useDebounceFn as h } from "../../../../../node_modules/@vueuse/shared/index.js";
|
|
32
|
-
const
|
|
33
|
-
class
|
|
29
|
+
const v = "recommendation-id", w = "ui-elements-recommendation-block";
|
|
30
|
+
class Q extends g {
|
|
34
31
|
constructor() {
|
|
35
32
|
super(...arguments);
|
|
36
|
-
s(this, "store",
|
|
33
|
+
s(this, "store", y());
|
|
37
34
|
s(this, "storeUnsubscription", () => {
|
|
38
35
|
});
|
|
39
36
|
s(this, "syncedBlockIds", /* @__PURE__ */ new Set());
|
|
@@ -47,7 +44,6 @@ class et extends y {
|
|
|
47
44
|
s(this, "shuffleControl", null);
|
|
48
45
|
s(this, "pricePlacementControl", null);
|
|
49
46
|
s(this, "layoutOrientationControl", null);
|
|
50
|
-
s(this, "strategyControl", null);
|
|
51
47
|
/**
|
|
52
48
|
* Debounced product fetch to prevent rapid API calls during config changes
|
|
53
49
|
*/
|
|
@@ -67,14 +63,14 @@ class et extends y {
|
|
|
67
63
|
*/
|
|
68
64
|
s(this, "_debouncedRegenerateWithProducts", h(() => {
|
|
69
65
|
const t = this.store.recommendationProducts;
|
|
70
|
-
if (!this.currentNode || !this.api ||
|
|
66
|
+
if (!this.currentNode || !this.api || D(this.currentNode))
|
|
71
67
|
return;
|
|
72
68
|
const e = this.api.getDocumentModifier();
|
|
73
|
-
|
|
69
|
+
E({
|
|
74
70
|
currentNode: this.currentNode,
|
|
75
71
|
documentModifier: e,
|
|
76
72
|
products: t
|
|
77
|
-
}) ||
|
|
73
|
+
}) || A({
|
|
78
74
|
currentNode: this.currentNode,
|
|
79
75
|
documentModifier: e,
|
|
80
76
|
products: t
|
|
@@ -82,11 +78,10 @@ class et extends y {
|
|
|
82
78
|
}, 100));
|
|
83
79
|
}
|
|
84
80
|
getId() {
|
|
85
|
-
return
|
|
81
|
+
return w;
|
|
86
82
|
}
|
|
87
83
|
getTemplate() {
|
|
88
|
-
|
|
89
|
-
return this.algorithmControl = t ? null : new R(), this.localeControl = new _(), this.currencyControl = new N(), this.productCountControl = t ? null : new P(), this.productLayoutControl = new L(), this.filtersControl = t ? null : new T(), this.shuffleControl = t ? null : new S(), this.pricePlacementControl = new O(), this.layoutOrientationControl = new b(), this.strategyControl = t ? new k() : null, [
|
|
84
|
+
return this.algorithmControl = new N(), this.localeControl = new b(), this.currencyControl = new R(), this.productCountControl = new P(), this.productLayoutControl = new O(), this.filtersControl = new I(), this.shuffleControl = new L(), this.pricePlacementControl = new T(), this.layoutOrientationControl = new _(), [
|
|
90
85
|
this.algorithmControl,
|
|
91
86
|
this.localeControl,
|
|
92
87
|
this.currencyControl,
|
|
@@ -95,20 +90,10 @@ class et extends y {
|
|
|
95
90
|
this.filtersControl,
|
|
96
91
|
this.shuffleControl,
|
|
97
92
|
this.pricePlacementControl,
|
|
98
|
-
this.layoutOrientationControl
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}), t ? `
|
|
103
|
-
<div class="recommendation-controls-container">
|
|
104
|
-
${this.layoutOrientationControl.getTemplate()}
|
|
105
|
-
${this.strategyControl.getTemplate()}
|
|
106
|
-
${this.productLayoutControl.getTemplate()}
|
|
107
|
-
${this.localeControl.getTemplate()}
|
|
108
|
-
${this.pricePlacementControl.getTemplate()}
|
|
109
|
-
${this.currencyControl.getTemplate()}
|
|
110
|
-
</div>
|
|
111
|
-
` : `
|
|
93
|
+
this.layoutOrientationControl
|
|
94
|
+
].forEach((e) => {
|
|
95
|
+
e.api = this.api;
|
|
96
|
+
}), `
|
|
112
97
|
<div class="recommendation-controls-container">
|
|
113
98
|
${this.layoutOrientationControl.getTemplate()}
|
|
114
99
|
${this.productCountControl.getTemplate()}
|
|
@@ -146,8 +131,7 @@ class et extends y {
|
|
|
146
131
|
this.productLayoutControl,
|
|
147
132
|
this.filtersControl,
|
|
148
133
|
this.shuffleControl,
|
|
149
|
-
this.pricePlacementControl
|
|
150
|
-
this.strategyControl
|
|
134
|
+
this.pricePlacementControl
|
|
151
135
|
].forEach((n) => {
|
|
152
136
|
var i;
|
|
153
137
|
n != null && n.api && (n.currentNode = t, (i = n.onTemplateNodeUpdated) == null || i.call(n, t));
|
|
@@ -163,8 +147,7 @@ class et extends y {
|
|
|
163
147
|
this.productLayoutControl,
|
|
164
148
|
this.filtersControl,
|
|
165
149
|
this.shuffleControl,
|
|
166
|
-
this.pricePlacementControl
|
|
167
|
-
this.strategyControl
|
|
150
|
+
this.pricePlacementControl
|
|
168
151
|
].forEach((e) => {
|
|
169
152
|
var o;
|
|
170
153
|
return (o = e == null ? void 0 : e.onDestroy) == null ? void 0 : o.call(e);
|
|
@@ -184,8 +167,7 @@ class et extends y {
|
|
|
184
167
|
this.productLayoutControl,
|
|
185
168
|
this.filtersControl,
|
|
186
169
|
this.shuffleControl,
|
|
187
|
-
this.pricePlacementControl
|
|
188
|
-
this.strategyControl
|
|
170
|
+
this.pricePlacementControl
|
|
189
171
|
].forEach((e) => {
|
|
190
172
|
var o;
|
|
191
173
|
e && (e.api = this.api, e.currentNode = this.currentNode, (o = e.onRender) == null || o.call(e));
|
|
@@ -207,7 +189,6 @@ class et extends y {
|
|
|
207
189
|
const t = m.getConfig(this.currentNode), e = this.store.currentRecommendationId, o = e !== null && ((r = this.store.blockStates[e]) == null ? void 0 : r.isInitialized);
|
|
208
190
|
this.store.patchCurrentBlockConfig({
|
|
209
191
|
strategy: t.strategy,
|
|
210
|
-
strategyId: t.strategyId,
|
|
211
192
|
language: t.language,
|
|
212
193
|
size: t.size,
|
|
213
194
|
productIds: t.productIds,
|
|
@@ -270,26 +251,26 @@ class et extends y {
|
|
|
270
251
|
return;
|
|
271
252
|
const t = m.getConfig(this.currentNode), e = {};
|
|
272
253
|
let o = null, r = null, n = null;
|
|
273
|
-
if (t.currency.code ===
|
|
254
|
+
if (t.currency.code === c.currency.code) {
|
|
274
255
|
const { currencyList: i } = this.store;
|
|
275
256
|
i.length > 0 && (i.some(
|
|
276
|
-
(u) => u.value === `price.${
|
|
257
|
+
(u) => u.value === `price.${c.currency.code}`
|
|
277
258
|
) || (o = i[0].value.replace("price.", ""), e.currency = {
|
|
278
|
-
...
|
|
259
|
+
...c.currency,
|
|
279
260
|
code: o,
|
|
280
261
|
symbol: o
|
|
281
262
|
}));
|
|
282
263
|
}
|
|
283
|
-
if (t.strategy ===
|
|
264
|
+
if (t.strategy === c.strategy) {
|
|
284
265
|
const i = this.store.getActivePredictiveAlgorithms;
|
|
285
266
|
i.length > 0 && (i.some(
|
|
286
|
-
(u) => u.value ===
|
|
267
|
+
(u) => u.value === c.strategy
|
|
287
268
|
) || (r = i[0].value, e.strategy = r));
|
|
288
269
|
}
|
|
289
|
-
if (t.language ===
|
|
270
|
+
if (t.language === c.language) {
|
|
290
271
|
const i = this.store.getLanguages;
|
|
291
272
|
i.length > 0 && (i.some(
|
|
292
|
-
(u) => u.value ===
|
|
273
|
+
(u) => u.value === c.language
|
|
293
274
|
) || (n = i[0].value, e.language = n));
|
|
294
275
|
}
|
|
295
276
|
!o && !r && !n || (m.updateConfig(
|
|
@@ -297,7 +278,7 @@ class et extends y {
|
|
|
297
278
|
this.currentNode,
|
|
298
279
|
e,
|
|
299
280
|
"Applied smart defaults"
|
|
300
|
-
), o && e.currency &&
|
|
281
|
+
), o && e.currency && S({
|
|
301
282
|
currentNode: this.currentNode,
|
|
302
283
|
documentModifier: this.api.getDocumentModifier(),
|
|
303
284
|
currency: e.currency
|
|
@@ -307,10 +288,10 @@ class et extends y {
|
|
|
307
288
|
name: o,
|
|
308
289
|
value: o,
|
|
309
290
|
symbol: o,
|
|
310
|
-
alignment:
|
|
311
|
-
decimalCount:
|
|
312
|
-
decimalSeparator:
|
|
313
|
-
thousandSeparator:
|
|
291
|
+
alignment: c.currency.alignment === "before" ? "0" : "1",
|
|
292
|
+
decimalCount: c.currency.decimalCount.toString(),
|
|
293
|
+
decimalSeparator: c.currency.decimalSeparator,
|
|
294
|
+
thousandSeparator: c.currency.thousandSeparator
|
|
314
295
|
}
|
|
315
296
|
} : {},
|
|
316
297
|
...r ? { strategy: r } : {},
|
|
@@ -321,10 +302,10 @@ class et extends y {
|
|
|
321
302
|
* Reads the recommendation-id attribute from the block element within the node
|
|
322
303
|
*/
|
|
323
304
|
_getRecommendationIdFromNode(t) {
|
|
324
|
-
const e =
|
|
305
|
+
const e = k(t);
|
|
325
306
|
if (!e || !("getAttribute" in e))
|
|
326
307
|
return null;
|
|
327
|
-
const o = e.getAttribute(
|
|
308
|
+
const o = e.getAttribute(v);
|
|
328
309
|
if (!o)
|
|
329
310
|
return null;
|
|
330
311
|
const r = parseInt(o);
|
|
@@ -354,60 +335,57 @@ class et extends y {
|
|
|
354
335
|
}
|
|
355
336
|
const i = t.$state.configVersion;
|
|
356
337
|
i !== o && (o = i, this._persistFiltersToNodeConfig(), this._debouncedFetchProducts());
|
|
357
|
-
const
|
|
358
|
-
u && C && (e =
|
|
338
|
+
const a = t.recommendationProducts, u = a !== e, C = Array.isArray(a) && a.length > 0;
|
|
339
|
+
u && C && (e = a, this._debouncedRegenerateWithProducts());
|
|
359
340
|
});
|
|
360
341
|
}
|
|
361
342
|
/**
|
|
362
|
-
* Persists the current filter
|
|
363
|
-
*
|
|
364
|
-
* (strategyId must be in esd-ext-config before any save — SD-149105).
|
|
343
|
+
* Persists the current filter state from Pinia store to the Stripo node config.
|
|
344
|
+
* This ensures filters survive template save/reload cycles.
|
|
365
345
|
*/
|
|
366
346
|
_persistFiltersToNodeConfig() {
|
|
367
347
|
if (!this.currentNode || !this.api)
|
|
368
348
|
return;
|
|
369
|
-
const { filters: t
|
|
349
|
+
const { filters: t } = this.store.recommendationConfigs;
|
|
370
350
|
m.updateConfig(
|
|
371
351
|
this.api,
|
|
372
352
|
this.currentNode,
|
|
373
|
-
{ filters: t
|
|
353
|
+
{ filters: t },
|
|
374
354
|
"Update recommendation filters"
|
|
375
355
|
);
|
|
376
356
|
}
|
|
377
357
|
}
|
|
378
358
|
export {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
359
|
+
tt as ALGORITHM_CONTROL_ID,
|
|
360
|
+
N as AlgorithmControl,
|
|
361
|
+
w as CONTROL_BLOCK_ID,
|
|
362
|
+
ot as CURRENCY_CONTROL_ID,
|
|
363
|
+
R as CurrencyControl,
|
|
364
|
+
nt as FILTERS_CONTROL_ID,
|
|
365
|
+
I as FiltersControl,
|
|
366
|
+
st as LAYOUT_ORIENTATION_CONTROL_ID,
|
|
367
|
+
lt as LOCALE_CONTROL_ID,
|
|
368
|
+
_ as LayoutOrientationControl,
|
|
369
|
+
b as LocaleControl,
|
|
370
|
+
ut as PRICE_PLACEMENT_CONTROL_ID,
|
|
371
|
+
mt as PRODUCT_COUNT_CONTROL_ID,
|
|
372
|
+
Ct as PRODUCT_LAYOUT_CONTROL_ID,
|
|
373
|
+
T as PricePlacementControl,
|
|
394
374
|
P as ProductCountControl,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
A as updateProductContentInPlace,
|
|
412
|
-
Dt as updateSingleProductContent
|
|
375
|
+
O as ProductLayoutControl,
|
|
376
|
+
Q as RecommendationBlockControl,
|
|
377
|
+
pt as SHUFFLE_CONTROL_ID,
|
|
378
|
+
L as ShuffleControl,
|
|
379
|
+
yt as adjustProductsToSize,
|
|
380
|
+
Nt as formatProductPrice,
|
|
381
|
+
k as getBlockElement,
|
|
382
|
+
Rt as getCardComposition,
|
|
383
|
+
It as getCurrentLayout,
|
|
384
|
+
D as isPartnerManagedBlock,
|
|
385
|
+
_t as regenerateMobileProductRows,
|
|
386
|
+
A as regenerateProductRowsWithStyles,
|
|
387
|
+
S as setCurrencyAttributes,
|
|
388
|
+
bt as updatePricesInPlace,
|
|
389
|
+
E as updateProductContentInPlace,
|
|
390
|
+
Tt as updateSingleProductContent
|
|
413
391
|
};
|