@useinsider/guido 3.15.0 → 3.16.0-beta.089654a

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.
Files changed (90) hide show
  1. package/dist/@types/config/schemas.js +108 -92
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/Guido.vue2.js +78 -75
  4. package/dist/composables/useActionsApi.js +30 -22
  5. package/dist/composables/useEmailTemplateApplier.js +25 -23
  6. package/dist/composables/useHtmlValidator.js +108 -106
  7. package/dist/composables/useRecommendation.js +20 -19
  8. package/dist/composables/useTimerClone.js +21 -19
  9. package/dist/config/i18n/en/labels.json.js +7 -3
  10. package/dist/config/migrator/checkboxMigrator.js +20 -19
  11. package/dist/config/migrator/itemsBlockMigrator.js +1 -1
  12. package/dist/config/migrator/radioButtonMigrator.js +26 -25
  13. package/dist/config/migrator/recommendation/compositionMapper.js +26 -23
  14. package/dist/config/migrator/recommendation/htmlBuilder.js +156 -155
  15. package/dist/enums/recommendation.js +17 -17
  16. package/dist/extensions/Blocks/Checkbox/constants/controlIds.js +4 -0
  17. package/dist/extensions/Blocks/Checkbox/constants/selectors.js +6 -0
  18. package/dist/extensions/Blocks/Checkbox/controls/blockBackground/index.js +10 -0
  19. package/dist/extensions/Blocks/Checkbox/extension.js +6 -5
  20. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +15 -14
  21. package/dist/extensions/Blocks/Checkbox/template.js +10 -9
  22. package/dist/extensions/Blocks/Items/block.js +44 -42
  23. package/dist/extensions/Blocks/Items/enums/productEnums.js +45 -45
  24. package/dist/extensions/Blocks/Items/template.js +86 -86
  25. package/dist/extensions/Blocks/RadioButton/constants/controlIds.js +4 -0
  26. package/dist/extensions/Blocks/RadioButton/constants/selectors.js +6 -0
  27. package/dist/extensions/Blocks/RadioButton/controls/blockBackground/index.js +10 -0
  28. package/dist/extensions/Blocks/RadioButton/extension.js +5 -4
  29. package/dist/extensions/Blocks/RadioButton/settingsPanel.js +12 -11
  30. package/dist/extensions/Blocks/RadioButton/template.js +16 -9
  31. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +18 -15
  32. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +5 -9
  33. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +363 -322
  34. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +37 -26
  35. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +21 -21
  36. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +8 -8
  37. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +271 -231
  38. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +98 -113
  39. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +21 -0
  40. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +13 -12
  41. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +16 -16
  42. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +16 -16
  43. package/dist/extensions/Blocks/Recommendation/templates/utils.js +120 -120
  44. package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +55 -54
  45. package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +89 -0
  46. package/dist/extensions/Blocks/Recommendation/utils/productIds.js +6 -0
  47. package/dist/extensions/Blocks/common-control.js +42 -35
  48. package/dist/extensions/Blocks/controlFactories.js +117 -115
  49. package/dist/guido.css +1 -1
  50. package/dist/library.js +11 -7
  51. package/dist/node_modules/valibot/dist/index.js +230 -216
  52. package/dist/package.json.js +1 -1
  53. package/dist/public/trackingIds.js +8 -0
  54. package/dist/src/@types/config/schemas.d.ts +20 -0
  55. package/dist/src/composables/useActionsApi.d.ts +1 -1
  56. package/dist/src/composables/useConfig.d.ts +4 -0
  57. package/dist/src/composables/useHtmlValidator.d.ts +3 -2
  58. package/dist/src/config/migrator/recommendation/types.d.ts +1 -0
  59. package/dist/src/extensions/Blocks/Checkbox/constants/controlIds.d.ts +7 -0
  60. package/dist/src/extensions/Blocks/Checkbox/constants/index.d.ts +10 -0
  61. package/dist/src/extensions/Blocks/Checkbox/constants/selectors.d.ts +16 -0
  62. package/dist/src/extensions/Blocks/Checkbox/controls/blockBackground/index.d.ts +14 -0
  63. package/dist/src/extensions/Blocks/RadioButton/constants/controlIds.d.ts +7 -0
  64. package/dist/src/extensions/Blocks/RadioButton/constants/index.d.ts +10 -0
  65. package/dist/src/extensions/Blocks/RadioButton/constants/selectors.d.ts +16 -0
  66. package/dist/src/extensions/Blocks/RadioButton/controls/blockBackground/index.d.ts +14 -0
  67. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
  68. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +6 -0
  69. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +27 -5
  70. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +4 -2
  71. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +5 -0
  72. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +12 -11
  73. package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +47 -0
  74. package/dist/src/extensions/Blocks/Recommendation/utils/productIds.d.ts +6 -0
  75. package/dist/src/extensions/Blocks/_Boilerplate/constants/controlIds.d.ts +7 -0
  76. package/dist/src/extensions/Blocks/_Boilerplate/constants/index.d.ts +10 -0
  77. package/dist/src/extensions/Blocks/_Boilerplate/constants/selectors.d.ts +16 -0
  78. package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +14 -0
  79. package/dist/src/extensions/Blocks/common-control.d.ts +3 -1
  80. package/dist/src/library.d.ts +1 -0
  81. package/dist/src/public/trackingIds.d.ts +9 -0
  82. package/dist/src/stores/config.d.ts +36 -0
  83. package/dist/src/stores/editor.d.ts +25 -0
  84. package/dist/src/utils/linkTrackingIds.d.ts +30 -0
  85. package/dist/stores/editor.js +4 -1
  86. package/dist/stores/onboarding.js +11 -7
  87. package/dist/utils/linkTrackingIds.js +56 -0
  88. package/dist/utils/pairProductVariables.js +105 -99
  89. package/dist/utils/templatePreparation.js +72 -61
  90. package/package.json +6 -2
@@ -1,23 +1,23 @@
1
- var c = Object.defineProperty;
2
- var l = (s, o, t) => o in s ? c(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t;
3
- var a = (s, o, t) => l(s, typeof o != "symbol" ? o + "" : o, t);
4
- import { UEAttr as h } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
- import { CommonControl as d } from "../../../common-control.js";
1
+ var d = Object.defineProperty;
2
+ var h = (r, s, t) => s in r ? d(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
3
+ var c = (r, s, t) => h(r, typeof s != "symbol" ? s + "" : s, t);
4
+ import { UEAttr as l } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
+ import { CommonControl as g } from "../../../common-control.js";
6
6
  import { RecommendationConfigService as n } from "../../services/configService.js";
7
7
  import { useRecommendationExtensionStore as m } from "../../store/recommendation.js";
8
- import { mapLegacyStrategy as g } from "../../utils/legacyStrategyMap.js";
9
- const u = "recommendation-algorithm-control", i = {
8
+ import { mapLegacyStrategy as u } from "../../utils/legacyStrategyMap.js";
9
+ const p = "recommendation-algorithm-control", i = {
10
10
  ALGORITHM: "strategy",
11
11
  PRODUCT_IDS: "productIds"
12
12
  };
13
- class R extends d {
13
+ class R extends g {
14
14
  constructor() {
15
15
  super(...arguments);
16
16
  // Store is used ONLY for API-fetched data (algorithms list), not for config
17
- a(this, "store", m());
17
+ c(this, "store", m());
18
18
  }
19
19
  getId() {
20
- return u;
20
+ return p;
21
21
  }
22
22
  getTemplate() {
23
23
  return `
@@ -46,11 +46,10 @@ class R extends d {
46
46
  super.onTemplateNodeUpdated(t), this._initializeSelectItems(), this._setFormValues();
47
47
  }
48
48
  _setFormValues() {
49
- const t = n.getConfig(this.currentNode), e = g(t.strategy) ?? t.strategy;
50
- this._setProductIdsVisibility(e), this.api.updateValues({
51
- [i.ALGORITHM]: e,
52
- [i.PRODUCT_IDS]: t.productIds.join(",")
53
- });
49
+ const t = n.getConfig(this.currentNode), e = u(t.strategy) ?? t.strategy;
50
+ this._setProductIdsVisibility(e);
51
+ const o = { [i.ALGORITHM]: e }, a = t.productIds.join(",");
52
+ this.api.getValues()[i.PRODUCT_IDS] !== a && (o[i.PRODUCT_IDS] = a), this.api.updateValues(o);
54
53
  }
55
54
  _initializeSelectItems() {
56
55
  var e;
@@ -59,35 +58,47 @@ class R extends d {
59
58
  try {
60
59
  this.api.setUIEAttribute(
61
60
  i.ALGORITHM,
62
- h.SELECTPICKER.items,
61
+ l.SELECTPICKER.items,
63
62
  t
64
63
  );
65
- } catch (r) {
66
- console.warn("[AlgorithmControl] Failed to set algorithm options:", r);
64
+ } catch (o) {
65
+ console.warn("[AlgorithmControl] Failed to set algorithm options:", o);
67
66
  }
68
67
  }
69
68
  _setProductIdsVisibility(t) {
70
- const r = (t ?? n.getConfig(this.currentNode).strategy) === "manualMerchandising";
71
- this.api.setVisibility(i.PRODUCT_IDS, r), this.api.setVisibility(`${i.PRODUCT_IDS}_label`, r);
69
+ const o = (t ?? n.getConfig(this.currentNode).strategy) === "manualMerchandising";
70
+ this.api.setVisibility(i.PRODUCT_IDS, o), this.api.setVisibility(`${i.PRODUCT_IDS}_label`, o);
72
71
  }
73
72
  _onAlgorithmChange(t) {
74
- !this.currentNode || n.getConfig(this.currentNode).strategy === t || (n.updateConfig(
73
+ if (!this.currentNode)
74
+ return;
75
+ const e = n.getConfig(this.currentNode);
76
+ if (e.strategy === t) {
77
+ this.store.recommendationConfigs.strategy !== t && this.store.patchCurrentBlockConfig({ strategy: e.strategy, filters: e.filters });
78
+ return;
79
+ }
80
+ n.updateConfig(
75
81
  this.api,
76
82
  this.currentNode,
77
83
  { strategy: t },
78
84
  `Changed algorithm to ${t}`
79
- ), this.store.patchCurrentBlockConfig({ strategy: t }), this._setProductIdsVisibility(t));
85
+ ), this.store.patchCurrentBlockConfig({ strategy: t }), this._setProductIdsVisibility(t);
80
86
  }
81
87
  _onProductIdsChange(t) {
82
88
  if (!this.currentNode)
83
89
  return;
84
- const e = t.split(",").map((r) => r.trim()).filter(Boolean);
90
+ const e = n.getConfig(this.currentNode);
91
+ if (e.productIds.join(",") === t) {
92
+ this.store.recommendationConfigs.productIds.join(",") !== t && this.store.patchCurrentBlockConfig({ productIds: e.productIds, filters: e.filters });
93
+ return;
94
+ }
95
+ const o = t === "" ? [] : t.split(",");
85
96
  n.updateConfig(
86
97
  this.api,
87
98
  this.currentNode,
88
- { productIds: e },
99
+ { productIds: o },
89
100
  "Updated product IDs"
90
- ), this.store.patchCurrentBlockConfig({ productIds: e });
101
+ ), this.store.patchCurrentBlockConfig({ productIds: o });
91
102
  }
92
103
  _listenToFormUpdates() {
93
104
  this.api.onValueChanged(i.ALGORITHM, (t) => {
@@ -98,6 +109,6 @@ class R extends d {
98
109
  }
99
110
  }
100
111
  export {
101
- u as ALGORITHM_CONTROL_ID,
112
+ p as ALGORITHM_CONTROL_ID,
102
113
  R as AlgorithmControl
103
114
  };
@@ -3,7 +3,7 @@ var p = (d, l, t) => l in d ? f(d, l, { enumerable: !0, configurable: !0, writab
3
3
  var s = (d, l, t) => p(d, typeof l != "symbol" ? l + "" : l, t);
4
4
  import { CommonControl as g } from "../../../common-control.js";
5
5
  import { DEFAULT_NODE_CONFIG as c } from "../../constants/defaultConfig.js";
6
- import { RecommendationConfigService as m } from "../../services/configService.js";
6
+ import { RecommendationConfigService as h } from "../../services/configService.js";
7
7
  import { useRecommendationExtensionStore as y } from "../../store/recommendation.js";
8
8
  import { AlgorithmControl as N } from "./algorithm.js";
9
9
  import { ALGORITHM_CONTROL_ID as tt } from "./algorithm.js";
@@ -17,15 +17,15 @@ import { LocaleControl as b } from "./locale.js";
17
17
  import { LOCALE_CONTROL_ID as lt } from "./locale.js";
18
18
  import { PricePlacementControl as T } from "./pricePlacement.js";
19
19
  import { PRICE_PLACEMENT_CONTROL_ID as ut } from "./pricePlacement.js";
20
- import { ProductCountControl as P } from "./productCount.js";
21
- import { PRODUCT_COUNT_CONTROL_ID as mt } from "./productCount.js";
22
- import { ProductLayoutControl as O } from "./productLayout.js";
20
+ import { ProductCountControl as O } from "./productCount.js";
21
+ import { PRODUCT_COUNT_CONTROL_ID as ht } from "./productCount.js";
22
+ import { ProductLayoutControl as P } from "./productLayout.js";
23
23
  import { PRODUCT_LAYOUT_CONTROL_ID as Ct } from "./productLayout.js";
24
- import { ShuffleControl as L } from "./shuffle.js";
24
+ import { ShuffleControl as S } from "./shuffle.js";
25
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";
26
+ import { setCurrencyAttributes as L, getBlockElement as k, isPartnerManagedBlock as D, updateProductContentInPlace as E, regenerateProductRowsWithStyles as A } from "./utils.js";
27
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";
28
- import { useDebounceFn as h } from "../../../../../node_modules/@vueuse/shared/index.js";
28
+ import { useDebounceFn as m } from "../../../../../node_modules/@vueuse/shared/index.js";
29
29
  const v = "recommendation-id", w = "ui-elements-recommendation-block";
30
30
  class Q extends g {
31
31
  constructor() {
@@ -47,7 +47,7 @@ class Q extends g {
47
47
  /**
48
48
  * Debounced product fetch to prevent rapid API calls during config changes
49
49
  */
50
- s(this, "_debouncedFetchProducts", h(() => {
50
+ s(this, "_debouncedFetchProducts", m(() => {
51
51
  this.store.fetchRecommendationProducts();
52
52
  }, 500));
53
53
  /**
@@ -61,7 +61,7 @@ class Q extends g {
61
61
  * count. The store pads products to the configured size, so in-place only
62
62
  * fails when the size actually changed.
63
63
  */
64
- s(this, "_debouncedRegenerateWithProducts", h(() => {
64
+ s(this, "_debouncedRegenerateWithProducts", m(() => {
65
65
  const t = this.store.recommendationProducts;
66
66
  if (!this.currentNode || !this.api || D(this.currentNode))
67
67
  return;
@@ -81,7 +81,7 @@ class Q extends g {
81
81
  return w;
82
82
  }
83
83
  getTemplate() {
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 _(), [
84
+ return this.algorithmControl = new N(), this.localeControl = new b(), this.currencyControl = new R(), this.productCountControl = new O(), this.productLayoutControl = new P(), this.filtersControl = new I(), this.shuffleControl = new S(), this.pricePlacementControl = new T(), this.layoutOrientationControl = new _(), [
85
85
  this.algorithmControl,
86
86
  this.localeControl,
87
87
  this.currencyControl,
@@ -186,7 +186,7 @@ class Q extends g {
186
186
  */
187
187
  _syncNodeConfigToStore() {
188
188
  var r;
189
- const t = m.getConfig(this.currentNode), e = this.store.currentRecommendationId, o = e !== null && ((r = this.store.blockStates[e]) == null ? void 0 : r.isInitialized);
189
+ const t = h.getConfig(this.currentNode), e = this.store.currentRecommendationId, o = e !== null && ((r = this.store.blockStates[e]) == null ? void 0 : r.isInitialized);
190
190
  this.store.patchCurrentBlockConfig({
191
191
  strategy: t.strategy,
192
192
  language: t.language,
@@ -249,7 +249,7 @@ class Q extends g {
249
249
  _applySmartDefaults() {
250
250
  if (!this.currentNode || !this.api)
251
251
  return;
252
- const t = m.getConfig(this.currentNode), e = {};
252
+ const t = h.getConfig(this.currentNode), e = {};
253
253
  let o = null, r = null, n = null;
254
254
  if (t.currency.code === c.currency.code) {
255
255
  const { currencyList: i } = this.store;
@@ -273,12 +273,12 @@ class Q extends g {
273
273
  (u) => u.value === c.language
274
274
  ) || (n = i[0].value, e.language = n));
275
275
  }
276
- !o && !r && !n || (m.updateConfig(
276
+ !o && !r && !n || (h.updateConfig(
277
277
  this.api,
278
278
  this.currentNode,
279
279
  e,
280
280
  "Applied smart defaults"
281
- ), o && e.currency && S({
281
+ ), o && e.currency && L({
282
282
  currentNode: this.currentNode,
283
283
  documentModifier: this.api.getDocumentModifier(),
284
284
  currency: e.currency
@@ -346,8 +346,8 @@ class Q extends g {
346
346
  _persistFiltersToNodeConfig() {
347
347
  if (!this.currentNode || !this.api)
348
348
  return;
349
- const { filters: t } = this.store.recommendationConfigs;
350
- m.updateConfig(
349
+ const { filters: t } = this.store.recommendationConfigs, e = h.getConfig(this.currentNode).filters;
350
+ JSON.stringify(e) !== JSON.stringify(t) && h.updateConfig(
351
351
  this.api,
352
352
  this.currentNode,
353
353
  { filters: t },
@@ -368,14 +368,14 @@ export {
368
368
  _ as LayoutOrientationControl,
369
369
  b as LocaleControl,
370
370
  ut as PRICE_PLACEMENT_CONTROL_ID,
371
- mt as PRODUCT_COUNT_CONTROL_ID,
371
+ ht as PRODUCT_COUNT_CONTROL_ID,
372
372
  Ct as PRODUCT_LAYOUT_CONTROL_ID,
373
373
  T as PricePlacementControl,
374
- P as ProductCountControl,
375
- O as ProductLayoutControl,
374
+ O as ProductCountControl,
375
+ P as ProductLayoutControl,
376
376
  Q as RecommendationBlockControl,
377
377
  pt as SHUFFLE_CONTROL_ID,
378
- L as ShuffleControl,
378
+ S as ShuffleControl,
379
379
  yt as adjustProductsToSize,
380
380
  Nt as formatProductPrice,
381
381
  k as getBlockElement,
@@ -384,7 +384,7 @@ export {
384
384
  D as isPartnerManagedBlock,
385
385
  _t as regenerateMobileProductRows,
386
386
  A as regenerateProductRowsWithStyles,
387
- S as setCurrencyAttributes,
387
+ L as setCurrencyAttributes,
388
388
  bt as updatePricesInPlace,
389
389
  E as updateProductContentInPlace,
390
390
  Tt as updateSingleProductContent
@@ -1,13 +1,13 @@
1
- var h = Object.defineProperty;
2
- var p = (o, e, t) => e in o ? h(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
1
+ var _ = Object.defineProperty;
2
+ var p = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var a = (o, e, t) => p(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { UEAttr as L, ModificationDescription as N } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
5
  import { CommonControl as A } from "../../../common-control.js";
6
6
  import "../../constants/selectors.js";
7
7
  import { LAYOUT_OPTIONS as O, DEFAULT_MOBILE_ROW_SPACING as d, DEFAULT_MOBILE_COLUMN_SPACING as m, DEFAULT_ROW_SPACING as l, DEFAULT_COLUMN_SPACING as g } from "../../constants/layout.js";
8
8
  import { RecommendationConfigService as u } from "../../services/configService.js";
9
- import { useRecommendationExtensionStore as S } from "../../store/recommendation.js";
10
- import { isPartnerManagedBlock as f, getCurrentLayout as C, getBlockElement as T, getCardComposition as U, regenerateProductRowsWithStyles as I } from "./utils.js";
9
+ import { useRecommendationExtensionStore as f } from "../../store/recommendation.js";
10
+ import { isPartnerManagedBlock as S, getCurrentLayout as C, getBlockElement as T, getCardComposition as U, regenerateProductRowsWithStyles as I } from "./utils.js";
11
11
  const y = "recommendation-layout-orientation-control", s = {
12
12
  LAYOUT: "layout"
13
13
  }, n = {
@@ -20,7 +20,7 @@ const y = "recommendation-layout-orientation-control", s = {
20
20
  class F extends A {
21
21
  constructor() {
22
22
  super(...arguments);
23
- a(this, "store", S());
23
+ a(this, "store", f());
24
24
  a(this, "isChangingLayout", !1);
25
25
  }
26
26
  getId() {
@@ -53,7 +53,7 @@ class F extends A {
53
53
  this.api.setUIEAttribute(
54
54
  s.LAYOUT,
55
55
  L.RADIO_BUTTONS.disabled,
56
- f(this.currentNode)
56
+ S(this.currentNode)
57
57
  );
58
58
  }
59
59
  _setFormValues() {
@@ -73,7 +73,7 @@ class F extends A {
73
73
  if (c) {
74
74
  this.isChangingLayout = !0;
75
75
  try {
76
- const _ = U(this.currentNode);
76
+ const h = U(this.currentNode, this.store.filterList);
77
77
  u.updateConfig(
78
78
  this.api,
79
79
  this.currentNode,
@@ -87,7 +87,7 @@ class F extends A {
87
87
  `Changed layout to ${t}`
88
88
  ), this.store.patchCurrentBlockConfig({ orientation: t });
89
89
  const i = this.api.getDocumentModifier().modifyHtml(c).setAttribute(n.LAYOUT, t).setAttribute(n.COLUMN_SPACING, g.toString()).setAttribute(n.ROW_SPACING, l.toString()).setAttribute(n.MOBILE_COLUMN_SPACING, m.toString()).setAttribute(n.MOBILE_ROW_SPACING, d.toString());
90
- t === "list" ? (i.setClass("es-m-p0"), i.setClass("ins-recommendation-list-layout")) : (i.removeClass("es-m-p0"), i.removeClass("ins-recommendation-list-layout")), i.apply(new N(`Update layout to ${t}`)), this._regenerateProductRows(t, _);
90
+ t === "list" ? (i.setClass("es-m-p0"), i.setClass("ins-recommendation-list-layout")) : (i.removeClass("es-m-p0"), i.removeClass("ins-recommendation-list-layout")), i.apply(new N(`Update layout to ${t}`)), this._regenerateProductRows(t, h);
91
91
  } finally {
92
92
  this.isChangingLayout = !1;
93
93
  }