@useinsider/guido 3.20.1-beta.2c8da49 → 3.20.1-beta.2d09f29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/useActionsApi.js +64 -80
- package/dist/composables/useFullStoryBridge.js +10 -9
- package/dist/composables/useGuidoStateBridge.js +3 -3
- package/dist/composables/useLegacyStrategyConversion.js +16 -16
- package/dist/composables/useStripo.js +10 -11
- package/dist/config/migrator/fullStoryScriptMigrator.js +5 -0
- package/dist/config/migrator/index.js +11 -10
- package/dist/extensions/Blocks/Items/block.js +42 -43
- package/dist/extensions/Blocks/Recommendation/block.js +29 -33
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +83 -78
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +2 -1
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +12 -2
- package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +86 -104
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +263 -348
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +50 -48
- package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +21 -16
- package/dist/extensions/Blocks/Recommendation/controls/main/pricePlacement.js +40 -44
- package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +19 -14
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +102 -104
- package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +23 -18
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +286 -312
- package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +20 -24
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +7 -6
- package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +8 -8
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +151 -113
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +205 -219
- package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +1 -1
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +40 -111
- package/dist/extensions/Blocks/Recommendation/utils/strategyCommit.js +35 -31
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +192 -271
- package/dist/package.json.js +1 -1
- package/dist/src/composables/useActionsApi.d.ts +1 -5
- package/dist/src/config/migrator/fullStoryScriptMigrator.d.ts +1 -0
- package/dist/src/extensions/Blocks/Checkbox/controls/blockBackground/index.d.ts +0 -1
- package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/index.d.ts +0 -40
- package/dist/src/extensions/Blocks/RadioButton/controls/blockBackground/index.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/blockBackground/index.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +0 -11
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +6 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +0 -2
- package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +5 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +12 -21
- package/dist/src/extensions/Blocks/Recommendation/controls/main/layoutOrientation.d.ts +3 -6
- package/dist/src/extensions/Blocks/Recommendation/controls/main/pricePlacement.d.ts +5 -6
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +3 -6
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +9 -21
- package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +13 -19
- package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +8 -10
- package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +5 -9
- package/dist/src/extensions/Blocks/Recommendation/controls/title/index.d.ts +0 -7
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -8
- package/dist/src/extensions/Blocks/Recommendation/utils/nodeConfigWriter.d.ts +11 -18
- package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +0 -1
- package/dist/src/extensions/Blocks/controlFactories.d.ts +0 -22
- package/dist/src/stores/editor.d.ts +1 -3
- package/dist/src/utils/fullStoryScripts.d.ts +6 -0
- package/dist/static/styles/components/button.css.js +0 -5
- package/dist/stores/editor.js +0 -5
- package/dist/utils/fullStoryScripts.js +8 -0
- package/package.json +3 -3
- package/dist/extensions/Blocks/Recommendation/utils/blockRefresh.js +0 -28
- package/dist/extensions/Blocks/Recommendation/utils/currencySettings.js +0 -25
- package/dist/src/extensions/Blocks/Recommendation/utils/blockRefresh.d.ts +0 -17
- package/dist/src/extensions/Blocks/Recommendation/utils/currencySettings.d.ts +0 -6
|
@@ -1,82 +1,68 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import { ModificationDescription as
|
|
6
|
-
import { CommonControl as
|
|
7
|
-
import { RRS_CONFIG_VERSION as
|
|
8
|
-
import { RECOMMENDATION_ID_ATTR as
|
|
9
|
-
import { RecommendationConfigService as
|
|
10
|
-
import { useRecommendationExtensionStore as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const q = "ui-elements-recommendation-block";
|
|
38
|
-
class _e extends R {
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var p = (g, u, t) => u in g ? C(g, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[u] = t;
|
|
3
|
+
var i = (g, u, t) => p(g, typeof u != "symbol" ? u + "" : u, t);
|
|
4
|
+
import { useConfig as h } from "../../../../../composables/useConfig.js";
|
|
5
|
+
import { ModificationDescription as y } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
6
|
+
import { CommonControl as N } from "../../../common-control.js";
|
|
7
|
+
import { RRS_CONFIG_VERSION as _, DEFAULT_NODE_CONFIG as a } from "../../constants/defaultConfig.js";
|
|
8
|
+
import { RECOMMENDATION_ID_ATTR as I } from "../../constants/selectors.js";
|
|
9
|
+
import { RecommendationConfigService as c } from "../../services/configService.js";
|
|
10
|
+
import { useRecommendationExtensionStore as R } from "../../store/recommendation.js";
|
|
11
|
+
import { registerNodeConfigWriter as b } from "../../utils/nodeConfigWriter.js";
|
|
12
|
+
import { AlgorithmControl as P } from "./algorithm.js";
|
|
13
|
+
import { ALGORITHM_CONTROL_ID as ut } from "./algorithm.js";
|
|
14
|
+
import { CurrencyControl as T } from "./currency.js";
|
|
15
|
+
import { CURRENCY_CONTROL_ID as gt } from "./currency.js";
|
|
16
|
+
import { FiltersControl as S } from "./filters.js";
|
|
17
|
+
import { FILTERS_CONTROL_ID as ft } from "./filters.js";
|
|
18
|
+
import { LayoutOrientationControl as O } from "./layoutOrientation.js";
|
|
19
|
+
import { LAYOUT_ORIENTATION_CONTROL_ID as Ct } from "./layoutOrientation.js";
|
|
20
|
+
import { LocaleControl as k } from "./locale.js";
|
|
21
|
+
import { LOCALE_CONTROL_ID as yt } from "./locale.js";
|
|
22
|
+
import { PricePlacementControl as L } from "./pricePlacement.js";
|
|
23
|
+
import { PRICE_PLACEMENT_CONTROL_ID as _t } from "./pricePlacement.js";
|
|
24
|
+
import { ProductCountControl as E } from "./productCount.js";
|
|
25
|
+
import { PRODUCT_COUNT_CONTROL_ID as Rt } from "./productCount.js";
|
|
26
|
+
import { ProductLayoutControl as F } from "./productLayout.js";
|
|
27
|
+
import { PRODUCT_LAYOUT_CONTROL_ID as Pt } from "./productLayout.js";
|
|
28
|
+
import { ShuffleControl as D } from "./shuffle.js";
|
|
29
|
+
import { SHUFFLE_CONTROL_ID as St } from "./shuffle.js";
|
|
30
|
+
import { StrategyControl as B } from "./strategy.js";
|
|
31
|
+
import { STRATEGY_CONTROL_ID as kt } from "./strategy.js";
|
|
32
|
+
import { setCurrencyAttributes as w, getBlockElement as v, isPartnerManagedBlock as A, updateProductContentInPlace as x, regenerateProductRowsWithStyles as U } from "./utils.js";
|
|
33
|
+
import { adjustProductsToSize as Et, formatProductPrice as Ft, getCardComposition as Dt, getCurrentLayout as Bt, getMainContainerTbody as wt, regenerateMobileProductRows as vt, updatePricesInPlace as At, updateSingleProductContent as xt } from "./utils.js";
|
|
34
|
+
import { useDebounceFn as f } from "../../../../../node_modules/@vueuse/shared/index.js";
|
|
35
|
+
const W = "ui-elements-recommendation-block";
|
|
36
|
+
class at extends N {
|
|
39
37
|
constructor() {
|
|
40
38
|
super(...arguments);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
});
|
|
44
|
-
s(this, "unregisterConfigFlush", () => {
|
|
39
|
+
i(this, "store", R());
|
|
40
|
+
i(this, "storeUnsubscription", () => {
|
|
45
41
|
});
|
|
46
42
|
// A config change waiting to reach the node config. Deferred so it can ride the
|
|
47
43
|
// re-render's single apply() — one user action must cost one undo press.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// What the panel still owes the block it watches — finished outside the panel on teardown
|
|
51
|
-
// and block switch. A new generation tells debounced work queued for the old one to stand down.
|
|
52
|
-
s(this, "trackedBlockId", null);
|
|
53
|
-
s(this, "fetchedConfigVersion", 0);
|
|
54
|
-
s(this, "hasUnrenderedProducts", !1);
|
|
55
|
-
s(this, "panelGeneration", 0);
|
|
56
|
-
s(this, "isPanelAlive", !0);
|
|
44
|
+
i(this, "pendingNodeConfigWrite", null);
|
|
45
|
+
i(this, "pendingConfigFlushTimer", null);
|
|
57
46
|
// Sub-control instances for lifecycle management
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
47
|
+
i(this, "algorithmControl", null);
|
|
48
|
+
i(this, "localeControl", null);
|
|
49
|
+
i(this, "currencyControl", null);
|
|
50
|
+
i(this, "productCountControl", null);
|
|
51
|
+
i(this, "productLayoutControl", null);
|
|
52
|
+
i(this, "filtersControl", null);
|
|
53
|
+
i(this, "shuffleControl", null);
|
|
54
|
+
i(this, "pricePlacementControl", null);
|
|
55
|
+
i(this, "layoutOrientationControl", null);
|
|
56
|
+
i(this, "strategyControl", null);
|
|
57
|
+
i(this, "rrsEnabled", !1);
|
|
69
58
|
/**
|
|
70
59
|
* Debounced product fetch to prevent rapid API calls during config changes
|
|
71
60
|
*/
|
|
72
|
-
|
|
73
|
-
if (t !== this.panelGeneration)
|
|
74
|
-
return;
|
|
75
|
-
const o = this._getBlockConfigVersion(e);
|
|
61
|
+
i(this, "_debouncedFetchProducts", f(async () => {
|
|
76
62
|
try {
|
|
77
|
-
await
|
|
63
|
+
await this.store.fetchRecommendationProducts();
|
|
78
64
|
} finally {
|
|
79
|
-
|
|
65
|
+
this._scheduleConfigFlush();
|
|
80
66
|
}
|
|
81
67
|
}, 500));
|
|
82
68
|
/**
|
|
@@ -90,12 +76,12 @@ class _e extends R {
|
|
|
90
76
|
* count. The store pads products to the configured size, so in-place only
|
|
91
77
|
* fails when the size actually changed.
|
|
92
78
|
*/
|
|
93
|
-
|
|
94
|
-
if (
|
|
79
|
+
i(this, "_debouncedRegenerateWithProducts", f(() => {
|
|
80
|
+
if (!this.currentNode || !this.api)
|
|
95
81
|
return;
|
|
96
|
-
const t = this._getRecommendationIdFromNode(this.currentNode),
|
|
97
|
-
if (t === null ||
|
|
98
|
-
this.
|
|
82
|
+
const t = this._getRecommendationIdFromNode(this.currentNode), e = this.store.currentRecommendationId;
|
|
83
|
+
if (t === null || e === null || t === e || !this.store.blockStates[t]) {
|
|
84
|
+
this._regenerateWithProducts();
|
|
99
85
|
return;
|
|
100
86
|
}
|
|
101
87
|
if (this.store.blockStates[t].recommendationProducts.length) {
|
|
@@ -103,13 +89,13 @@ class _e extends R {
|
|
|
103
89
|
try {
|
|
104
90
|
this._regenerateWithProducts();
|
|
105
91
|
} finally {
|
|
106
|
-
this.store.setCurrentBlock(
|
|
92
|
+
this.store.setCurrentBlock(e);
|
|
107
93
|
}
|
|
108
94
|
}
|
|
109
95
|
}, 100));
|
|
110
96
|
}
|
|
111
97
|
getId() {
|
|
112
|
-
return
|
|
98
|
+
return W;
|
|
113
99
|
}
|
|
114
100
|
get _subControls() {
|
|
115
101
|
return [
|
|
@@ -126,15 +112,15 @@ class _e extends R {
|
|
|
126
112
|
];
|
|
127
113
|
}
|
|
128
114
|
getTemplate() {
|
|
129
|
-
var
|
|
130
|
-
return this.rrsEnabled =
|
|
115
|
+
var t;
|
|
116
|
+
return this.rrsEnabled = h().isFeatureEnabled("reusableRecommendationStrategy"), this._subControls.forEach((e) => {
|
|
131
117
|
var o;
|
|
132
|
-
return (o =
|
|
133
|
-
}), this.algorithmControl = new
|
|
134
|
-
|
|
118
|
+
return (o = e == null ? void 0 : e.onDestroy) == null ? void 0 : o.call(e);
|
|
119
|
+
}), this.algorithmControl = new P(), this.localeControl = new k(), this.currencyControl = new T(), this.productCountControl = new E(), this.productLayoutControl = new F(), this.filtersControl = new S(), this.shuffleControl = new D(), this.pricePlacementControl = new L(), this.layoutOrientationControl = new O(), this.strategyControl = this.rrsEnabled ? new B() : null, this._subControls.forEach((e) => {
|
|
120
|
+
e && (e.api = this.api);
|
|
135
121
|
}), `
|
|
136
122
|
<div class="recommendation-controls-container">
|
|
137
|
-
${((
|
|
123
|
+
${((t = this.strategyControl) == null ? void 0 : t.getTemplate()) ?? ""}
|
|
138
124
|
${this.layoutOrientationControl.getTemplate()}
|
|
139
125
|
${this.productCountControl.getTemplate()}
|
|
140
126
|
${this.productLayoutControl.getTemplate()}
|
|
@@ -147,39 +133,39 @@ class _e extends R {
|
|
|
147
133
|
</div>
|
|
148
134
|
`;
|
|
149
135
|
}
|
|
150
|
-
_showControlsForBlock(
|
|
151
|
-
var
|
|
152
|
-
const
|
|
153
|
-
if (!
|
|
136
|
+
_showControlsForBlock(t) {
|
|
137
|
+
var n;
|
|
138
|
+
const e = (n = this.getContainer()) == null ? void 0 : n.querySelector(".recommendation-controls-container");
|
|
139
|
+
if (!e)
|
|
154
140
|
return;
|
|
155
|
-
const o = this._getRecommendationIdFromNode(
|
|
156
|
-
|
|
141
|
+
const o = this._getRecommendationIdFromNode(t) === null ? null : c.getConfig(t), r = this.rrsEnabled && !!o && (!!(o != null && o.strategyId) || ((o == null ? void 0 : o.configVersion) ?? 0) >= _), s = this.rrsEnabled && !!o && !r;
|
|
142
|
+
e.classList.toggle("strategy-block", r), e.classList.toggle("legacy-strategy-block", s);
|
|
157
143
|
}
|
|
158
144
|
async onRender() {
|
|
159
145
|
var o;
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
146
|
+
b(this.api);
|
|
147
|
+
const t = this._getRecommendationIdFromNode(this.currentNode), e = t ?? this.store.currentRecommendationId;
|
|
148
|
+
if (e !== null && this.store.setCurrentBlock(e), t !== null && this._syncNodeConfigIfChanged(t), this._listenStateUpdates(), this._showControlsForBlock(this.currentNode), t !== null && this.strategyControl && (this.strategyControl.api = this.api, this.strategyControl.currentNode = this.currentNode, this.strategyControl.onRender()), e !== null && ((o = this.store.blockStates[e]) != null && o.isInitialized)) {
|
|
163
149
|
this._initializeSubControls();
|
|
164
150
|
return;
|
|
165
151
|
}
|
|
166
|
-
await this._fetchBlockData(
|
|
152
|
+
await this._fetchBlockData(e), this._initializeSubControls();
|
|
167
153
|
}
|
|
168
|
-
onTemplateNodeUpdated(
|
|
154
|
+
onTemplateNodeUpdated(t) {
|
|
169
155
|
var o;
|
|
170
|
-
super.onTemplateNodeUpdated(
|
|
171
|
-
const
|
|
172
|
-
|
|
156
|
+
super.onTemplateNodeUpdated(t);
|
|
157
|
+
const e = this._getRecommendationIdFromNode(t);
|
|
158
|
+
e !== null && e !== this.store.currentRecommendationId && this.store.setCurrentBlock(e), e !== null && this._syncNodeConfigIfChanged(e), this._showControlsForBlock(t), e !== null && !((o = this.store.blockStates[e]) != null && o.isInitialized) && this._fetchBlockData(e).then(() => {
|
|
173
159
|
this._initializeSubControls();
|
|
174
|
-
}), this._subControls.forEach((
|
|
175
|
-
var
|
|
176
|
-
|
|
160
|
+
}), this._subControls.forEach((r) => {
|
|
161
|
+
var s;
|
|
162
|
+
r != null && r.api && (r.currentNode = t, (s = r.onTemplateNodeUpdated) == null || s.call(r, t));
|
|
177
163
|
});
|
|
178
164
|
}
|
|
179
165
|
onDestroy() {
|
|
180
|
-
this.
|
|
181
|
-
var
|
|
182
|
-
return (
|
|
166
|
+
this.storeUnsubscription(), this._flushPendingNodeConfig(), this._subControls.forEach((t) => {
|
|
167
|
+
var e;
|
|
168
|
+
return (e = t == null ? void 0 : t.onDestroy) == null ? void 0 : e.call(t);
|
|
183
169
|
});
|
|
184
170
|
}
|
|
185
171
|
/**
|
|
@@ -187,9 +173,9 @@ class _e extends R {
|
|
|
187
173
|
* Each sub-control manages its own form values and event listeners
|
|
188
174
|
*/
|
|
189
175
|
_initializeSubControls() {
|
|
190
|
-
this._subControls.forEach((
|
|
191
|
-
var
|
|
192
|
-
|
|
176
|
+
this._subControls.forEach((t) => {
|
|
177
|
+
var e;
|
|
178
|
+
t && (t.api = this.api, t.currentNode = this.currentNode, (e = t.onRender) == null || e.call(t));
|
|
193
179
|
});
|
|
194
180
|
}
|
|
195
181
|
/**
|
|
@@ -216,72 +202,50 @@ class _e extends R {
|
|
|
216
202
|
* that state and made a re-dropped saved module keep the defaults its wiped
|
|
217
203
|
* state was rebuilt with (SD-150347).
|
|
218
204
|
*/
|
|
219
|
-
_syncNodeConfigIfChanged(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (!t)
|
|
205
|
+
_syncNodeConfigIfChanged(t) {
|
|
206
|
+
this.pendingNodeConfigWrite && this.pendingNodeConfigWrite.blockId !== t && this._flushPendingNodeConfig();
|
|
207
|
+
const e = this.store.blockStates[t];
|
|
208
|
+
if (!e)
|
|
224
209
|
return;
|
|
225
|
-
const o = JSON.stringify(
|
|
226
|
-
|
|
210
|
+
const o = JSON.stringify(c.getConfig(this.currentNode)), r = e.syncedConfigFingerprint;
|
|
211
|
+
e.syncedConfigFingerprint = o, r !== o && (this.pendingNodeConfigWrite || this._syncNodeConfigToStore());
|
|
227
212
|
}
|
|
228
213
|
/** Whether the deferred write would move the node's strategyId — see the caller (SD-149916). */
|
|
229
214
|
_isPendingStrategyIdChange() {
|
|
230
|
-
const
|
|
231
|
-
return
|
|
215
|
+
const t = this.pendingNodeConfigWrite;
|
|
216
|
+
return t ? c.getConfig(this.currentNode).strategyId !== t.updates.strategyId : !1;
|
|
232
217
|
}
|
|
233
218
|
_capturePendingNodeConfigWrite() {
|
|
234
|
-
const
|
|
235
|
-
!this.currentNode || !this.api ||
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
const {
|
|
250
|
-
filters: t,
|
|
251
|
-
strategy: o,
|
|
252
|
-
strategyId: n,
|
|
253
|
-
size: r,
|
|
254
|
-
productIds: i,
|
|
255
|
-
language: a,
|
|
256
|
-
shuffleProducts: c,
|
|
257
|
-
currencySettings: g,
|
|
258
|
-
nodeConfigVersion: P
|
|
259
|
-
} = e, { partnerName: f } = m();
|
|
260
|
-
return {
|
|
261
|
-
filters: t,
|
|
262
|
-
strategy: o,
|
|
263
|
-
strategyId: n,
|
|
264
|
-
size: r,
|
|
265
|
-
productIds: i,
|
|
266
|
-
language: a,
|
|
267
|
-
shuffleProducts: c,
|
|
268
|
-
currency: B(g),
|
|
269
|
-
configVersion: P,
|
|
270
|
-
...f.value ? { partnerName: f.value } : {}
|
|
219
|
+
const t = this.store.currentRecommendationId;
|
|
220
|
+
if (!this.currentNode || !this.api || t === null)
|
|
221
|
+
return;
|
|
222
|
+
const { filters: e, strategy: o, strategyId: r, size: s, nodeConfigVersion: n } = this.store.recommendationConfigs, { partnerName: l } = h();
|
|
223
|
+
this.pendingNodeConfigWrite = {
|
|
224
|
+
blockId: t,
|
|
225
|
+
node: this.currentNode,
|
|
226
|
+
updates: {
|
|
227
|
+
filters: e,
|
|
228
|
+
strategy: o,
|
|
229
|
+
strategyId: r,
|
|
230
|
+
size: s,
|
|
231
|
+
configVersion: n,
|
|
232
|
+
...l.value ? { partnerName: l.value } : {}
|
|
233
|
+
}
|
|
271
234
|
};
|
|
272
235
|
}
|
|
273
236
|
/**
|
|
274
237
|
* Accumulates the pending write into `documentModifier` without applying, so the
|
|
275
238
|
* caller's apply() commits config and re-render as ONE undo entry.
|
|
276
|
-
*
|
|
239
|
+
*
|
|
240
|
+
* Deliberately does not consume the pending record: the product helpers call
|
|
241
|
+
* apply() only when they actually changed something, so this batch may never be
|
|
242
|
+
* committed and the flush has to stay able to write it standalone.
|
|
243
|
+
* @param documentModifier - The batch to accumulate into
|
|
244
|
+
* @returns Whether anything was staged
|
|
277
245
|
*/
|
|
278
|
-
_stagePendingNodeConfig(
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
return _(e, this.currentNode, t), N(d.getConfig(this.currentNode), t);
|
|
282
|
-
}
|
|
283
|
-
_consumePendingNodeConfig() {
|
|
284
|
-
this.pendingNodeConfigWrite = null, this._clearConfigFlush();
|
|
246
|
+
_stagePendingNodeConfig(t) {
|
|
247
|
+
const e = this.pendingNodeConfigWrite;
|
|
248
|
+
return !e || !this.currentNode ? !1 : (c.stageConfig(t, this.currentNode, e.updates), !0);
|
|
285
249
|
}
|
|
286
250
|
/**
|
|
287
251
|
* Arms the guaranteed fallback write, once the product fetch has settled. The
|
|
@@ -296,44 +260,48 @@ class _e extends R {
|
|
|
296
260
|
_clearConfigFlush() {
|
|
297
261
|
this.pendingConfigFlushTimer !== null && (clearTimeout(this.pendingConfigFlushTimer), this.pendingConfigFlushTimer = null);
|
|
298
262
|
}
|
|
299
|
-
|
|
300
|
-
|
|
263
|
+
/**
|
|
264
|
+
* Writes the deferred change standalone when the batch it was staged into never
|
|
265
|
+
* committed. Always targets the LIVE node — the captured one is an immutable
|
|
266
|
+
* snapshot the intervening re-render staled, and saveConfig swallows that failure.
|
|
267
|
+
*/
|
|
301
268
|
_flushPendingNodeConfig() {
|
|
302
|
-
const
|
|
303
|
-
if (this.
|
|
304
|
-
return
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return a === "missing" && this.store.blockStates[i] && console.error("[recommendation] pending config write did not reach a node", { blockId: i }), a === "applied";
|
|
308
|
-
}
|
|
309
|
-
const n = N(d.getConfig(this.currentNode), t);
|
|
310
|
-
if (n === null)
|
|
311
|
-
return !1;
|
|
312
|
-
const r = this.api.getDocumentModifier();
|
|
313
|
-
return _(r, this.currentNode, t), r.apply(new C(n)), !0;
|
|
269
|
+
const t = this.pendingNodeConfigWrite;
|
|
270
|
+
if (this.pendingNodeConfigWrite = null, this._clearConfigFlush(), !t || !this.api)
|
|
271
|
+
return;
|
|
272
|
+
const e = t.blockId === this.store.currentRecommendationId && this.currentNode ? this.currentNode : t.node, o = c.getConfig(e);
|
|
273
|
+
JSON.stringify(o.filters) === JSON.stringify(t.updates.filters) && o.strategy === t.updates.strategy && o.strategyId === t.updates.strategyId && o.size === t.updates.size || c.updateConfig(this.api, e, t.updates, "Update recommendation filters");
|
|
314
274
|
}
|
|
315
275
|
_syncNodeConfigToStore() {
|
|
316
|
-
var
|
|
317
|
-
const
|
|
276
|
+
var r;
|
|
277
|
+
const t = c.getConfig(this.currentNode), e = this.store.currentRecommendationId, o = e !== null && ((r = this.store.blockStates[e]) == null ? void 0 : r.isInitialized);
|
|
318
278
|
this.store.patchCurrentBlockConfig({
|
|
319
|
-
strategy:
|
|
320
|
-
strategyId:
|
|
321
|
-
nodeConfigVersion:
|
|
322
|
-
language:
|
|
323
|
-
size:
|
|
324
|
-
productIds:
|
|
325
|
-
cardsInRow:
|
|
326
|
-
mobileCardsInRow:
|
|
327
|
-
mobileLayoutEnabled:
|
|
328
|
-
orientation:
|
|
279
|
+
strategy: t.strategy,
|
|
280
|
+
strategyId: t.strategyId,
|
|
281
|
+
nodeConfigVersion: t.configVersion,
|
|
282
|
+
language: t.language,
|
|
283
|
+
size: t.size,
|
|
284
|
+
productIds: t.productIds,
|
|
285
|
+
cardsInRow: t.cardsInRow,
|
|
286
|
+
mobileCardsInRow: t.mobileCardsInRow,
|
|
287
|
+
mobileLayoutEnabled: t.mobileLayoutEnabled,
|
|
288
|
+
orientation: t.layout,
|
|
329
289
|
// Only sync filters from node config during initial load.
|
|
330
290
|
// After initialization, the Pinia store is the source of truth
|
|
331
291
|
// for filters (edited via the filter drawer).
|
|
332
|
-
...o ? {} : { filters:
|
|
333
|
-
shuffleProducts:
|
|
334
|
-
priceMovedToNextLine:
|
|
335
|
-
priceHideIfSameAsDiscounted:
|
|
336
|
-
currencySettings:
|
|
292
|
+
...o ? {} : { filters: t.filters },
|
|
293
|
+
shuffleProducts: t.shuffleProducts,
|
|
294
|
+
priceMovedToNextLine: t.priceMovedToNextLine,
|
|
295
|
+
priceHideIfSameAsDiscounted: t.priceHideIfSameAsDiscounted,
|
|
296
|
+
currencySettings: {
|
|
297
|
+
name: t.currency.code,
|
|
298
|
+
value: t.currency.code,
|
|
299
|
+
symbol: t.currency.symbol,
|
|
300
|
+
alignment: t.currency.alignment === "before" ? "0" : "1",
|
|
301
|
+
decimalCount: t.currency.decimalCount.toString(),
|
|
302
|
+
decimalSeparator: t.currency.decimalSeparator,
|
|
303
|
+
thousandSeparator: t.currency.thousandSeparator
|
|
304
|
+
}
|
|
337
305
|
}, { triggerRefetch: !1 });
|
|
338
306
|
}
|
|
339
307
|
/**
|
|
@@ -345,27 +313,18 @@ class _e extends R {
|
|
|
345
313
|
* Shared by onRender() and onTemplateNodeUpdated() to avoid duplication.
|
|
346
314
|
* Marks the block as initialized to prevent redundant fetches on re-selection.
|
|
347
315
|
*/
|
|
348
|
-
async _fetchBlockData(
|
|
349
|
-
|
|
316
|
+
async _fetchBlockData(t) {
|
|
317
|
+
t !== null && this.store.markBlockInitialized(t), (await Promise.allSettled([
|
|
350
318
|
this.store.fetchRecommendationCreateData(),
|
|
351
319
|
this.store.fetchRecommendationFilters()
|
|
352
|
-
])).forEach((
|
|
353
|
-
|
|
354
|
-
}),
|
|
355
|
-
this._refreshOutsidePanel(e, !0);
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
this._applySmartDefaults();
|
|
359
|
-
const o = this._getBlockConfigVersion(e);
|
|
320
|
+
])).forEach((o, r) => {
|
|
321
|
+
o.status === "rejected" && console.warn(`Recommendation block: ${["fetchRecommendationCreateData", "fetchRecommendationFilters"][r]} failed`, o.reason);
|
|
322
|
+
}), this._applySmartDefaults();
|
|
360
323
|
try {
|
|
361
324
|
await this.store.fetchRecommendationProducts();
|
|
362
|
-
} catch (
|
|
363
|
-
console.warn("Recommendation block: fetchRecommendationProducts failed",
|
|
325
|
+
} catch (o) {
|
|
326
|
+
console.warn("Recommendation block: fetchRecommendationProducts failed", o);
|
|
364
327
|
}
|
|
365
|
-
e !== null && !this._isPanelOn(e) && this._refreshOutsidePanel(e, this._getBlockConfigVersion(e) !== o);
|
|
366
|
-
}
|
|
367
|
-
_isPanelOn(e) {
|
|
368
|
-
return this.isPanelAlive && this.store.currentRecommendationId === e;
|
|
369
328
|
}
|
|
370
329
|
/**
|
|
371
330
|
* Applies smart defaults for newly dropped blocks.
|
|
@@ -380,133 +339,91 @@ class _e extends R {
|
|
|
380
339
|
_applySmartDefaults() {
|
|
381
340
|
if (!this.currentNode || !this.api)
|
|
382
341
|
return;
|
|
383
|
-
const
|
|
384
|
-
let o = null,
|
|
385
|
-
if (
|
|
386
|
-
const { currencyList:
|
|
387
|
-
|
|
388
|
-
(
|
|
389
|
-
) || (o =
|
|
390
|
-
...
|
|
342
|
+
const t = c.getConfig(this.currentNode), e = {};
|
|
343
|
+
let o = null, r = null, s = null;
|
|
344
|
+
if (t.currency.code === a.currency.code) {
|
|
345
|
+
const { currencyList: n } = this.store;
|
|
346
|
+
n.length > 0 && (n.some(
|
|
347
|
+
(d) => d.value === `price.${a.currency.code}`
|
|
348
|
+
) || (o = n[0].value.replace("price.", ""), e.currency = {
|
|
349
|
+
...a.currency,
|
|
391
350
|
code: o,
|
|
392
351
|
symbol: o
|
|
393
352
|
}));
|
|
394
353
|
}
|
|
395
|
-
if (
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
(
|
|
399
|
-
) || (
|
|
354
|
+
if (t.strategy === a.strategy) {
|
|
355
|
+
const n = this.store.getActivePredictiveAlgorithms;
|
|
356
|
+
n.length > 0 && (n.some(
|
|
357
|
+
(d) => d.value === a.strategy
|
|
358
|
+
) || (r = n[0].value, e.strategy = r));
|
|
400
359
|
}
|
|
401
|
-
if (
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
(
|
|
405
|
-
) || (
|
|
360
|
+
if (t.language === a.language) {
|
|
361
|
+
const n = this.store.getLanguages;
|
|
362
|
+
n.length > 0 && (n.some(
|
|
363
|
+
(d) => d.value === a.language
|
|
364
|
+
) || (s = n[0].value, e.language = s));
|
|
406
365
|
}
|
|
407
|
-
!o && !
|
|
366
|
+
!o && !r && !s || (c.updateConfig(
|
|
408
367
|
this.api,
|
|
409
368
|
this.currentNode,
|
|
410
|
-
|
|
369
|
+
e,
|
|
411
370
|
"Applied smart defaults"
|
|
412
|
-
), o &&
|
|
371
|
+
), o && e.currency && w({
|
|
413
372
|
currentNode: this.currentNode,
|
|
414
373
|
documentModifier: this.api.getDocumentModifier(),
|
|
415
|
-
currency:
|
|
374
|
+
currency: e.currency
|
|
416
375
|
}), this.store.patchCurrentBlockConfig({
|
|
417
|
-
...o
|
|
418
|
-
|
|
419
|
-
|
|
376
|
+
...o ? {
|
|
377
|
+
currencySettings: {
|
|
378
|
+
name: o,
|
|
379
|
+
value: o,
|
|
380
|
+
symbol: o,
|
|
381
|
+
alignment: a.currency.alignment === "before" ? "0" : "1",
|
|
382
|
+
decimalCount: a.currency.decimalCount.toString(),
|
|
383
|
+
decimalSeparator: a.currency.decimalSeparator,
|
|
384
|
+
thousandSeparator: a.currency.thousandSeparator
|
|
385
|
+
}
|
|
386
|
+
} : {},
|
|
387
|
+
...r ? { strategy: r } : {},
|
|
388
|
+
...s ? { language: s } : {}
|
|
420
389
|
}, { triggerRefetch: !1 }));
|
|
421
390
|
}
|
|
422
391
|
/**
|
|
423
392
|
* Reads the recommendation-id attribute from the block element within the node
|
|
424
393
|
*/
|
|
425
|
-
_getRecommendationIdFromNode(
|
|
426
|
-
const
|
|
427
|
-
if (!
|
|
394
|
+
_getRecommendationIdFromNode(t) {
|
|
395
|
+
const e = v(t);
|
|
396
|
+
if (!e || !("getAttribute" in e))
|
|
428
397
|
return null;
|
|
429
|
-
const o =
|
|
398
|
+
const o = e.getAttribute(I);
|
|
430
399
|
if (!o)
|
|
431
400
|
return null;
|
|
432
|
-
const
|
|
433
|
-
return Number.isNaN(
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Lands what the panel still owes its block before it stops watching it: the config now, the
|
|
437
|
-
* products through a block-scoped refresh. Never throws — it runs from Stripo's teardown.
|
|
438
|
-
*/
|
|
439
|
-
_finishBlockOutsidePanel(e = this._trackedBlockSnapshot()) {
|
|
440
|
-
var r;
|
|
441
|
-
const { blockId: t, fetchedConfigVersion: o, hasUnrenderedProducts: n } = e;
|
|
442
|
-
try {
|
|
443
|
-
const i = t === null ? void 0 : this.store.blockStates[t], a = i !== void 0 && o !== i.configVersion;
|
|
444
|
-
if (t !== null && i && (a || n)) {
|
|
445
|
-
((r = this.pendingNodeConfigWrite) == null ? void 0 : r.blockId) === t && this._consumePendingNodeConfig(), this._flushPendingNodeConfig(), this._refreshOutsidePanel(t, a);
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
this._flushPendingNodeConfig();
|
|
449
|
-
} catch (i) {
|
|
450
|
-
console.error("[recommendation] finishing the block outside the panel failed", i);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
_trackedBlockSnapshot() {
|
|
454
|
-
return {
|
|
455
|
-
blockId: this.trackedBlockId,
|
|
456
|
-
fetchedConfigVersion: this.fetchedConfigVersion,
|
|
457
|
-
hasUnrenderedProducts: this.hasUnrenderedProducts
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
_refreshOutsidePanel(e, t) {
|
|
461
|
-
T(e, {
|
|
462
|
-
pickUpdates: (o) => this._getNodeConfigUpdates(o),
|
|
463
|
-
description: "Update recommendation configuration",
|
|
464
|
-
fetch: t
|
|
465
|
-
}).then((o) => {
|
|
466
|
-
!o && this.store.blockStates[e] && console.error("[recommendation] refresh outside the panel did not reach a node", { blockId: e });
|
|
467
|
-
}).catch((o) => {
|
|
468
|
-
console.error("[recommendation] refresh outside the panel failed", o);
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
_getBlockConfigVersion(e) {
|
|
472
|
-
var t;
|
|
473
|
-
return e === null ? 0 : ((t = this.store.blockStates[e]) == null ? void 0 : t.configVersion) ?? 0;
|
|
401
|
+
const r = parseInt(o);
|
|
402
|
+
return Number.isNaN(r) ? null : r;
|
|
474
403
|
}
|
|
475
404
|
/** Draws the current block's products into this panel's node. */
|
|
476
405
|
_regenerateWithProducts() {
|
|
477
406
|
if (!this.currentNode || !this.api)
|
|
478
407
|
return;
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
), r !== void 0 && this._consumePendingNodeConfig();
|
|
483
|
-
};
|
|
484
|
-
if (H(e)) {
|
|
485
|
-
i(!1);
|
|
408
|
+
const t = this.store.recommendationProducts, e = this.api.getDocumentModifier(), o = this._stagePendingNodeConfig(e);
|
|
409
|
+
if (A(this.currentNode)) {
|
|
410
|
+
o && (e.apply(new y("Update recommendation configuration")), this.pendingNodeConfigWrite = null, this._clearConfigFlush());
|
|
486
411
|
return;
|
|
487
412
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
}) || (a = j({
|
|
499
|
-
currentNode: e,
|
|
500
|
-
documentModifier: o,
|
|
501
|
-
products: t,
|
|
502
|
-
stageOnly: !0,
|
|
503
|
-
configOverrides: n
|
|
504
|
-
})), i(a);
|
|
413
|
+
x({
|
|
414
|
+
currentNode: this.currentNode,
|
|
415
|
+
documentModifier: e,
|
|
416
|
+
products: t
|
|
417
|
+
}) || U({
|
|
418
|
+
currentNode: this.currentNode,
|
|
419
|
+
documentModifier: e,
|
|
420
|
+
products: t
|
|
421
|
+
});
|
|
505
422
|
}
|
|
506
423
|
/**
|
|
507
424
|
* Listen to store changes that require product refresh or regeneration.
|
|
508
425
|
*
|
|
509
|
-
* Uses
|
|
426
|
+
* Uses configVersion counter (incremented only by patchCurrentBlockConfig)
|
|
510
427
|
* to distinguish user-initiated config changes from internal mutations
|
|
511
428
|
* (e.g., fetchRecommendationCreateData setting preferred currency).
|
|
512
429
|
*
|
|
@@ -517,57 +434,55 @@ class _e extends R {
|
|
|
517
434
|
* We skip that tick and update tracking references instead.
|
|
518
435
|
*/
|
|
519
436
|
_listenStateUpdates() {
|
|
520
|
-
const { store:
|
|
521
|
-
let
|
|
522
|
-
this.
|
|
523
|
-
const
|
|
524
|
-
if (
|
|
525
|
-
|
|
526
|
-
this.panelGeneration++, this.trackedBlockId = n, t = e.recommendationProducts, o = this._getBlockConfigVersion(n), this.fetchedConfigVersion = o, this.hasUnrenderedProducts = !1, this._finishBlockOutsidePanel(g);
|
|
437
|
+
const { store: t } = this;
|
|
438
|
+
let e = t.recommendationProducts, o = t.$state.configVersion, r = t.currentRecommendationId;
|
|
439
|
+
this.storeUnsubscription = t.$subscribe(() => {
|
|
440
|
+
const s = t.currentRecommendationId;
|
|
441
|
+
if (s !== r) {
|
|
442
|
+
r = s, e = t.recommendationProducts, o = t.$state.configVersion;
|
|
527
443
|
return;
|
|
528
444
|
}
|
|
529
|
-
const
|
|
530
|
-
|
|
531
|
-
const
|
|
532
|
-
|
|
445
|
+
const n = t.$state.configVersion;
|
|
446
|
+
n !== o && (o = n, this._capturePendingNodeConfigWrite(), this._isPendingStrategyIdChange() && this._flushPendingNodeConfig(), this._debouncedFetchProducts());
|
|
447
|
+
const l = t.recommendationProducts, d = l !== e, m = Array.isArray(l) && l.length > 0;
|
|
448
|
+
d && m && (e = l, this._debouncedRegenerateWithProducts());
|
|
533
449
|
});
|
|
534
450
|
}
|
|
535
451
|
}
|
|
536
452
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
Je as updateSingleProductContent
|
|
453
|
+
ut as ALGORITHM_CONTROL_ID,
|
|
454
|
+
P as AlgorithmControl,
|
|
455
|
+
W as CONTROL_BLOCK_ID,
|
|
456
|
+
gt as CURRENCY_CONTROL_ID,
|
|
457
|
+
T as CurrencyControl,
|
|
458
|
+
ft as FILTERS_CONTROL_ID,
|
|
459
|
+
S as FiltersControl,
|
|
460
|
+
Ct as LAYOUT_ORIENTATION_CONTROL_ID,
|
|
461
|
+
yt as LOCALE_CONTROL_ID,
|
|
462
|
+
O as LayoutOrientationControl,
|
|
463
|
+
k as LocaleControl,
|
|
464
|
+
_t as PRICE_PLACEMENT_CONTROL_ID,
|
|
465
|
+
Rt as PRODUCT_COUNT_CONTROL_ID,
|
|
466
|
+
Pt as PRODUCT_LAYOUT_CONTROL_ID,
|
|
467
|
+
L as PricePlacementControl,
|
|
468
|
+
E as ProductCountControl,
|
|
469
|
+
F as ProductLayoutControl,
|
|
470
|
+
at as RecommendationBlockControl,
|
|
471
|
+
St as SHUFFLE_CONTROL_ID,
|
|
472
|
+
kt as STRATEGY_CONTROL_ID,
|
|
473
|
+
D as ShuffleControl,
|
|
474
|
+
B as StrategyControl,
|
|
475
|
+
Et as adjustProductsToSize,
|
|
476
|
+
Ft as formatProductPrice,
|
|
477
|
+
v as getBlockElement,
|
|
478
|
+
Dt as getCardComposition,
|
|
479
|
+
Bt as getCurrentLayout,
|
|
480
|
+
wt as getMainContainerTbody,
|
|
481
|
+
A as isPartnerManagedBlock,
|
|
482
|
+
vt as regenerateMobileProductRows,
|
|
483
|
+
U as regenerateProductRowsWithStyles,
|
|
484
|
+
w as setCurrencyAttributes,
|
|
485
|
+
At as updatePricesInPlace,
|
|
486
|
+
x as updateProductContentInPlace,
|
|
487
|
+
xt as updateSingleProductContent
|
|
573
488
|
};
|