@useinsider/guido 3.23.0-beta.86bed27 → 3.23.0-beta.9f6bfbf

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 (88) hide show
  1. package/README.md +1 -0
  2. package/dist/@types/config/schemas.js +17 -15
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +58 -56
  5. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +11 -11
  6. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +9 -9
  7. package/dist/composables/useModuleRepair.js +14 -12
  8. package/dist/config/compiler/utils/recommendationCompilerUtils.js +22 -22
  9. package/dist/config/migrator/index.js +16 -15
  10. package/dist/config/migrator/itemsPriceFormatMigrator.js +20 -0
  11. package/dist/config/migrator/recommendation/compositionMapper.js +56 -49
  12. package/dist/config/migrator/recommendation/extractors.js +100 -40
  13. package/dist/config/migrator/recommendation/htmlBuilder.js +285 -207
  14. package/dist/config/migrator/recommendation/settingsMapper.js +37 -36
  15. package/dist/config/migrator/recommendation/themeMapper.js +53 -41
  16. package/dist/config/migrator/recommendationMigrator.js +68 -61
  17. package/dist/extensions/Blocks/Items/block.js +115 -77
  18. package/dist/extensions/Blocks/Items/constants/currency.js +59 -14
  19. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -17
  20. package/dist/extensions/Blocks/Items/controls/cardComposition.js +14 -17
  21. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -17
  22. package/dist/extensions/Blocks/Items/controls/name/trimming.js +9 -10
  23. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +40 -30
  24. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +63 -53
  25. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +31 -31
  26. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +15 -16
  27. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +25 -26
  28. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +42 -32
  29. package/dist/extensions/Blocks/Items/controls/priceFormat.js +145 -0
  30. package/dist/extensions/Blocks/Items/controls/settingsControl.js +160 -144
  31. package/dist/extensions/Blocks/Items/enums/controlEnums.js +1 -1
  32. package/dist/extensions/Blocks/Items/extension.js +9 -8
  33. package/dist/extensions/Blocks/Items/items.css.js +19 -0
  34. package/dist/extensions/Blocks/Items/settingsPanel.js +34 -25
  35. package/dist/extensions/Blocks/Items/template.js +250 -212
  36. package/dist/extensions/Blocks/Items/utils/priceFormatOps.js +185 -0
  37. package/dist/extensions/Blocks/Recommendation/block.js +33 -24
  38. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +3 -3
  39. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +27 -26
  40. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +13 -13
  41. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +165 -175
  42. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +5 -5
  43. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +8 -8
  44. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +15 -15
  45. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +12 -12
  46. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +10 -10
  47. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +1 -1
  48. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +23 -22
  49. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +19 -18
  50. package/dist/extensions/Blocks/Recommendation/templates/utils.js +82 -91
  51. package/dist/extensions/Blocks/Recommendation/utils/inlinePriceOrder.js +12 -0
  52. package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMap.js +3 -2
  53. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +1 -0
  54. package/dist/extensions/Blocks/common-control.js +62 -55
  55. package/dist/guido.css +1 -1
  56. package/dist/package.json.js +2 -2
  57. package/dist/src/@types/config/schemas.d.ts +4 -0
  58. package/dist/src/composables/useConfig.d.ts +2 -0
  59. package/dist/src/config/migrator/index.d.ts +4 -1
  60. package/dist/src/config/migrator/itemsPriceFormatMigrator.d.ts +1 -0
  61. package/dist/src/config/migrator/recommendation/compositionMapper.d.ts +3 -1
  62. package/dist/src/config/migrator/recommendation/extractors.d.ts +35 -6
  63. package/dist/src/config/migrator/recommendation/htmlBuilder.d.ts +3 -1
  64. package/dist/src/config/migrator/recommendation/themeMapper.d.ts +3 -1
  65. package/dist/src/config/migrator/recommendation/types.d.ts +11 -1
  66. package/dist/src/extensions/Blocks/Items/block.d.ts +6 -9
  67. package/dist/src/extensions/Blocks/Items/constants/currency.d.ts +32 -0
  68. package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +0 -1
  69. package/dist/src/extensions/Blocks/Items/controls/priceFormat.d.ts +23 -0
  70. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +1 -0
  71. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
  72. package/dist/src/extensions/Blocks/Items/template.d.ts +4 -1
  73. package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +3 -0
  74. package/dist/src/extensions/Blocks/Items/utils/priceFormatOps.d.ts +61 -0
  75. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +1 -0
  76. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +5 -10
  77. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +1 -13
  78. package/dist/src/extensions/Blocks/Recommendation/utils/inlinePriceOrder.d.ts +9 -0
  79. package/dist/src/extensions/Blocks/Recommendation/utils/legacyStrategyMap.d.ts +2 -19
  80. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +12 -0
  81. package/dist/src/extensions/Blocks/common-control.d.ts +2 -0
  82. package/dist/src/stores/config.d.ts +20 -0
  83. package/dist/src/stores/unsubscribe.d.ts +10 -0
  84. package/dist/src/utils/itemsCurrencyRepair.d.ts +5 -1
  85. package/dist/stores/unsubscribe.js +33 -29
  86. package/dist/utils/itemsCurrencyRepair.js +29 -24
  87. package/dist/utils/pairProductVariables.js +119 -99
  88. package/package.json +2 -2
package/README.md CHANGED
@@ -166,6 +166,7 @@ const config: GuidoConfigInput = {
166
166
  allowlistEnabled?: boolean, // Default: false - Pre-save domain-allowlist check (opt-in). Guido self-serves the block toaster (role lookup, deep-link, copy from window.trans).
167
167
  allowSaveWithErrors?: boolean, // Default: true - Allow the validation drawer's "Save and Continue" soft-save. Set false to hard-block invalid saves (transactional + unsubscribe pages).
168
168
  reusableRecommendationStrategy?: boolean, // Default: false - Assign an RRS strategy to recommendation blocks instead of per-block algorithm/filters/shuffle/product-count settings.
169
+ itemsPriceFormatting?: boolean, // Default: false - Items block price formatting: thousand/decimal separator + decimal count on the block root, raw price tags in the export (formatted at send time).
169
170
  },
170
171
 
171
172
  // Optional: Callbacks
@@ -1,4 +1,4 @@
1
- import { ModuleFolderDefaults as f } from "../../enums/defaults.js";
1
+ import { ModuleFolderDefaults as S } from "../../enums/defaults.js";
2
2
  import { object as a, number as s, optional as e, string as t, picklist as m, pipe as i, minLength as b, custom as k, boolean as o, array as c, transform as y, unknown as r, record as g, fallback as R, literal as u, looseObject as C, variant as I, union as h, lazy as T } from "../../node_modules/valibot/dist/index.js";
3
3
  const p = {
4
4
  /** Promotional/marketing emails */
@@ -76,18 +76,18 @@ const p = {
76
76
  value: t()
77
77
  })
78
78
  )
79
- }), S = T(() => C({
79
+ }), f = T(() => C({
80
80
  text: e(t()),
81
81
  // eslint-disable-next-line camelcase -- backend field name
82
82
  tag_text: e(t()),
83
83
  value: e(t()),
84
- children: e(c(S)),
84
+ children: e(c(f)),
85
85
  // eslint-disable-next-line camelcase -- backend field name
86
- select_items: e(c(S))
87
- })), N = g(
86
+ select_items: e(c(f))
87
+ })), P = g(
88
88
  t(),
89
- R(c(S), [])
90
- ), P = C({
89
+ R(c(f), [])
90
+ ), N = C({
91
91
  /** Block ID (matches the dictionary key and the legacy HTML element id) */
92
92
  id: e(s()),
93
93
  /** Decimal places for price display (legacy data may use string or number) */
@@ -140,7 +140,7 @@ const p = {
140
140
  * strategy, currency, locale, and layout data.
141
141
  */
142
142
  recommendationConfigs: e(
143
- g(t(), P),
143
+ g(t(), N),
144
144
  {}
145
145
  )
146
146
  }), x = a({
@@ -159,7 +159,7 @@ const p = {
159
159
  * (first) partner's leaf attributes into the label→token map that repairs
160
160
  * label-form placeholders (`{{ Phone Number }}`) in dropped saved modules.
161
161
  */
162
- dynamicContentList: e(N, {}),
162
+ dynamicContentList: e(P, {}),
163
163
  /** Valid custom field attribute names from the partner's categorized fields */
164
164
  customFieldAttributes: e(c(t()), []),
165
165
  /** Selected unsubscribe page IDs */
@@ -210,9 +210,9 @@ const p = {
210
210
  /** Email header settings */
211
211
  emailHeader: e(D, { senderName: "", subject: "" }),
212
212
  /** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
213
- savedModulesFolderName: e(t(), f.SAVED_MODULES),
213
+ savedModulesFolderName: e(t(), S.SAVED_MODULES),
214
214
  /** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
215
- defaultModulesFolderName: e(t(), f.DEFAULT_MODULES)
215
+ defaultModulesFolderName: e(t(), S.DEFAULT_MODULES)
216
216
  }), F = a({
217
217
  /** Whether to show the header bar */
218
218
  showHeader: e(o(), !0),
@@ -243,7 +243,9 @@ const p = {
243
243
  linkTrackingIds: e(o(), !1),
244
244
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
245
245
  allowSaveWithErrors: e(o(), !0),
246
- reusableRecommendationStrategy: e(o(), !1)
246
+ reusableRecommendationStrategy: e(o(), !1),
247
+ /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
248
+ itemsPriceFormatting: e(o(), !1)
247
249
  }), w = m([
248
250
  "amp-accordion",
249
251
  "amp-carousel",
@@ -366,8 +368,8 @@ export {
366
368
  B as CustomBlockTypeSchema,
367
369
  G as CustomRuleSchema,
368
370
  w as DefaultBlockTypeSchema,
369
- N as DynamicContentListSchema,
370
- S as DynamicContentNodeSchema,
371
+ P as DynamicContentListSchema,
372
+ f as DynamicContentNodeSchema,
371
373
  M as DynamicContentSchema,
372
374
  O as EditorSchema,
373
375
  D as EmailHeaderSchema,
@@ -375,7 +377,7 @@ export {
375
377
  U as FeaturesSchema,
376
378
  K as GuidoConfigSchema,
377
379
  A as IdentitySchema,
378
- P as LegacyRecommendationConfigSchema,
380
+ N as LegacyRecommendationConfigSchema,
379
381
  p as MessageType,
380
382
  E as PartnerSchema,
381
383
  l as ProductType,
@@ -12,7 +12,7 @@ var t = function() {
12
12
  s,
13
13
  !1,
14
14
  null,
15
- "f2154cb6"
15
+ "49dc1b30"
16
16
  );
17
17
  const v = n.exports;
18
18
  export {
@@ -1,37 +1,37 @@
1
- import { defineComponent as de, defineAsyncComponent as l, ref as W, computed as f, watch as G, onMounted as me, onUnmounted as le } from "vue";
2
- import { useCortexBlueprintBridge as ue } from "../composables/useCortexBlueprintBridge.js";
3
- import { useEditorLock as pe } from "../composables/useEditorLock.js";
4
- import { startEditorOpenMetrics as fe } from "../composables/useEditorOpenMetrics.js";
1
+ import { defineComponent as me, defineAsyncComponent as l, ref as W, computed as f, watch as G, onMounted as le, onUnmounted as ue } from "vue";
2
+ import { useCortexBlueprintBridge as pe } from "../composables/useCortexBlueprintBridge.js";
3
+ import { useEditorLock as fe } from "../composables/useEditorLock.js";
4
+ import { startEditorOpenMetrics as ge } from "../composables/useEditorOpenMetrics.js";
5
5
  import { provideGuidoActions as ye } from "../composables/useGuidoActions.js";
6
- import { useGuidoStateBridge as ge } from "../composables/useGuidoStateBridge.js";
7
- import { usePartner as ve } from "../composables/usePartner.js";
8
- import { useSaveValidationRollout as Se } from "../composables/useSaveValidationRollout.js";
9
- import { useStripo as be } from "../composables/useStripo.js";
10
- import { useTimerClone as he } from "../composables/useTimerClone.js";
11
- import { migrate as Ee } from "../config/migrator/index.js";
6
+ import { useGuidoStateBridge as ve } from "../composables/useGuidoStateBridge.js";
7
+ import { usePartner as Se } from "../composables/usePartner.js";
8
+ import { useSaveValidationRollout as be } from "../composables/useSaveValidationRollout.js";
9
+ import { useStripo as he } from "../composables/useStripo.js";
10
+ import { useTimerClone as Ee } from "../composables/useTimerClone.js";
11
+ import { migrate as we } from "../config/migrator/index.js";
12
12
  import { ModuleFolderDefaults as H } from "../enums/defaults.js";
13
- import { RIBBON_SELECTOR as we } from "../enums/onboarding.js";
13
+ import { RIBBON_SELECTOR as Fe } from "../enums/onboarding.js";
14
14
  import { useRecommendationExtensionStore as V, disposeStrategyPageReturnListeners as ke } from "../extensions/Blocks/Recommendation/store/recommendation.js";
15
15
  import { disposeUnsubscribeListeners as Ce } from "../extensions/Blocks/Unsubscribe/block.js";
16
16
  import De from "./organisms/AutoSaveController.vue.js";
17
17
  import Ie from "./organisms/base/AuthErrorModal.vue.js";
18
- import Fe from "./organisms/base/Toaster.vue.js";
19
- import Me from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
20
- import Re from "./organisms/header/HeaderWrapper.vue.js";
21
- import Te from "./organisms/LoadingWrapper.vue.js";
22
- import Le from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
23
- import Ue from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
24
- import Ne from "./organisms/validation/ValidationErrorDrawer.vue.js";
25
- import { useStripoApi as _e } from "../services/stripoApi.js";
18
+ import Me from "./organisms/base/Toaster.vue.js";
19
+ import Re from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
20
+ import Te from "./organisms/header/HeaderWrapper.vue.js";
21
+ import Le from "./organisms/LoadingWrapper.vue.js";
22
+ import Ue from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
23
+ import Ne from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
24
+ import _e from "./organisms/validation/ValidationErrorDrawer.vue.js";
25
+ import { useStripoApi as Pe } from "../services/stripoApi.js";
26
26
  import { useConfigStore as Ae } from "../stores/config.js";
27
27
  import { useDynamicContentStore as Be } from "../stores/dynamic-content.js";
28
28
  import { useEditorStore as w } from "../stores/editor.js";
29
29
  import { usePreviewStore as Oe } from "../stores/preview.js";
30
- import { useSaveValidationStore as Pe } from "../stores/save-validation.js";
31
- import { useTemplateStore as xe } from "../stores/template.js";
32
- import { useUnsubscribeStore as We } from "../stores/unsubscribe.js";
30
+ import { useSaveValidationStore as xe } from "../stores/save-validation.js";
31
+ import { useTemplateStore as We } from "../stores/template.js";
32
+ import { useUnsubscribeStore as Ge } from "../stores/unsubscribe.js";
33
33
  import { readTrackFloor as $ } from "../utils/linkTrackingIds.js";
34
- const ht = /* @__PURE__ */ de({
34
+ const Et = /* @__PURE__ */ me({
35
35
  __name: "Guido",
36
36
  props: {
37
37
  config: null,
@@ -39,7 +39,7 @@ const ht = /* @__PURE__ */ de({
39
39
  },
40
40
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
41
41
  setup(z, { expose: q, emit: a }) {
42
- const s = z, n = fe(), K = l(
42
+ const s = z, n = ge(), K = l(
43
43
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
44
44
  ), j = l(
45
45
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
@@ -49,15 +49,15 @@ const ht = /* @__PURE__ */ de({
49
49
  () => import("./organisms/extensions/recommendation/RemoveStrategyModal.vue.js")
50
50
  ), X = l(
51
51
  () => import("./organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js")
52
- ), k = W(), y = W(), g = Be(), C = We(), o = Ae();
52
+ ), F = W(), g = W(), y = Be(), k = Ge(), o = Ae();
53
53
  s.ready && o.init(s.config);
54
- const d = w(), Y = Oe(), u = f(() => d.hasChanges), { isTestPartner: Z } = ve(), { isEnabled: ee, loadRollout: D } = Se(), I = () => {
54
+ const d = w(), Y = Oe(), u = f(() => d.hasChanges), { isTestPartner: Z } = Se(), { isEnabled: ee, loadRollout: C } = be(), D = () => {
55
55
  var t;
56
- return (t = k.value) == null ? void 0 : t.handleSave(!0);
57
- }, F = (t) => {
56
+ return (t = F.value) == null ? void 0 : t.handleSave(!0);
57
+ }, I = (t) => {
58
58
  d.loadingStatus = t;
59
59
  };
60
- ue(), ge();
60
+ pe(), ve();
61
61
  const v = () => {
62
62
  var t, e;
63
63
  return {
@@ -68,9 +68,9 @@ const ht = /* @__PURE__ */ de({
68
68
  savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || H.SAVED_MODULES,
69
69
  defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || H.DEFAULT_MODULES
70
70
  };
71
- }, { initPlugin: M, preloadRuntime: R } = be(n), { runExclusive: T, beginMount: L, isCurrentMount: S } = pe();
71
+ }, { initPlugin: M, preloadRuntime: R } = he(n), { runExclusive: T, beginMount: L, isCurrentMount: S } = fe();
72
72
  let p = 0;
73
- const { getDefaultTemplate: U } = _e(), { cloneTimersOnSave: N, hasTimerBlocks: _ } = he(), te = f(() => {
73
+ const { getDefaultTemplate: U } = Pe(), { cloneTimersOnSave: N, hasTimerBlocks: _ } = Ee(), te = f(() => {
74
74
  var t;
75
75
  return !((t = o.ui) != null && t.showHeader);
76
76
  }), oe = f(() => o.isFeatureEnabled("reusableRecommendationStrategy")), re = f(
@@ -91,9 +91,9 @@ const ht = /* @__PURE__ */ de({
91
91
  console.debug("guido:test-email:click"), a("test-email:click");
92
92
  }
93
93
  });
94
- const A = (t) => {
95
- console.debug("dynamic-content:close", t), g.setSelectedDynamicContent(t), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: t }));
96
- }, B = () => {
94
+ const P = (t) => {
95
+ console.debug("dynamic-content:close", t), y.setSelectedDynamicContent(t), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: t }));
96
+ }, A = () => {
97
97
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
98
98
  };
99
99
  G(() => u.value, () => {
@@ -106,8 +106,8 @@ const ht = /* @__PURE__ */ de({
106
106
  let c = null;
107
107
  const h = () => {
108
108
  var e;
109
- const t = document.querySelector(we);
110
- (e = y.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
109
+ const t = document.querySelector(Fe);
110
+ (e = g.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
111
111
  }, E = async () => {
112
112
  var t;
113
113
  n.mark("host_ready");
@@ -118,38 +118,40 @@ const ht = /* @__PURE__ */ de({
118
118
  templateId: o.templateId,
119
119
  variationId: o.variationId
120
120
  });
121
- const e = o.template, i = (e == null ? void 0 : e.html) || "", m = (e == null ? void 0 : e.css) || "", O = (e == null ? void 0 : e.preselectedDynamicContent) || [];
122
- C.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
123
- const ne = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {}, P = o.isFeatureEnabled("linkTrackingIds"), ae = {
121
+ const e = o.template, i = (e == null ? void 0 : e.html) || "", m = (e == null ? void 0 : e.css) || "", B = (e == null ? void 0 : e.preselectedDynamicContent) || [];
122
+ k.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
123
+ const ne = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {}, O = o.isFeatureEnabled("linkTrackingIds"), ae = {
124
124
  partnerName: o.partnerName,
125
125
  campaignUrls: e == null ? void 0 : e.recommendationCampaignUrls,
126
126
  rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
127
- }, x = (ce) => n.timed(
127
+ }, ie = {
128
+ itemsPriceFormatting: o.isFeatureEnabled("itemsPriceFormatting")
129
+ }, x = (de) => n.timed(
128
130
  "migration",
129
- () => Ee(ce, ne, ae)
131
+ () => we(de, ne, ae, ie)
130
132
  );
131
133
  let r = {
132
134
  html: i && await x(i),
133
135
  css: m
134
136
  };
135
137
  r.html || (r = await n.timed("default_template", () => U()), r.html = await x(r.html));
136
- const ie = P ? $(r.html, (e == null ? void 0 : e.trackIdCounter) || 0) : 0;
137
- _(r.html) && (r.html = await n.timed("timer_clone", () => N(r.html))), P && (d.trackIdSessionFloor = Math.max(ie, $(r.html)));
138
- const se = {
139
- preselectedDynamicContentList: O,
138
+ const se = O ? $(r.html, (e == null ? void 0 : e.trackIdCounter) || 0) : 0;
139
+ _(r.html) && (r.html = await n.timed("timer_clone", () => N(r.html))), O && (d.trackIdSessionFloor = Math.max(se, $(r.html)));
140
+ const ce = {
141
+ preselectedDynamicContentList: B,
140
142
  onReady: () => {
141
143
  console.debug("guido:ready"), a("ready");
142
144
  }
143
145
  };
144
- p = L(), await M(r, v(), se), g.selectedDynamicContentList = O;
146
+ p = L(), await M(r, v(), ce), y.selectedDynamicContentList = B;
145
147
  } catch (e) {
146
148
  console.error("Failed to initialize Stripo editor:", e), n.markFailed();
147
149
  }
148
150
  };
149
- return me(async () => {
151
+ return le(async () => {
150
152
  var e;
151
- console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), V().$reset(), w().$reset(), xe().$reset(), Pe().$reset(), D(), h();
152
- const t = (e = y.value) == null ? void 0 : e.parentElement;
153
+ console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), V().$reset(), w().$reset(), We().$reset(), xe().$reset(), C(), h();
154
+ const t = (e = g.value) == null ? void 0 : e.parentElement;
153
155
  if (t && (c = new ResizeObserver(h), c.observe(t)), R(), s.ready)
154
156
  await E();
155
157
  else {
@@ -158,7 +160,7 @@ const ht = /* @__PURE__ */ de({
158
160
  });
159
161
  }
160
162
  document.addEventListener("dynamic-content:open", b);
161
- }), le(() => {
163
+ }), ue(() => {
162
164
  if (Ce(), ke(), n.dispose(), c == null || c.disconnect(), document.removeEventListener("dynamic-content:open", b), S(p))
163
165
  try {
164
166
  w().isStripoInitialized = !1;
@@ -175,15 +177,15 @@ const ht = /* @__PURE__ */ de({
175
177
  }), o.reset();
176
178
  }), q({
177
179
  dynamicContent: {
178
- insert: A,
179
- close: B
180
+ insert: P,
181
+ close: A
180
182
  },
181
183
  hasChanges: u,
182
- saveSilent: I,
183
- setLoading: F
184
- }), { __sfc: !0, openMetrics: n, PreviewContainer: K, OnboardingWrapper: j, AssignStrategyDrawer: J, RemoveStrategyModal: Q, LegacyStrategyUpdatedModal: X, headerWrapperRef: k, wrapperRef: y, dynamicContentStore: g, unsubscribeStore: C, props: s, configStore: o, editorStore: d, previewStore: Y, hasChanges: u, isTestPartner: Z, isSaveValidationEnabled: ee, loadRollout: D, saveSilent: I, setLoading: F, emit: a, buildMetadata: v, initPlugin: M, preloadRuntime: R, runExclusive: T, beginMount: L, isCurrentMount: S, mountGeneration: p, getDefaultTemplate: U, cloneTimersOnSave: N, hasTimerBlocks: _, noHeader: te, isRrsEnabled: oe, hasAssignedStrategy: re, insertDynamicContent: A, closeDynamicContent: B, handleDynamicContentOpen: b, ribbonObserver: c, updateRibbonOffset: h, startEditor: E, AutoSaveController: De, AuthErrorModal: Ie, Toaster: Fe, FilterSelectionDrawer: Me, HeaderWrapper: Re, LoadingWrapper: Te, SaveAsTemplateDrawer: Le, UnsubscribeWrapper: Ue, ValidationErrorDrawer: Ne };
184
+ saveSilent: D,
185
+ setLoading: I
186
+ }), { __sfc: !0, openMetrics: n, PreviewContainer: K, OnboardingWrapper: j, AssignStrategyDrawer: J, RemoveStrategyModal: Q, LegacyStrategyUpdatedModal: X, headerWrapperRef: F, wrapperRef: g, dynamicContentStore: y, unsubscribeStore: k, props: s, configStore: o, editorStore: d, previewStore: Y, hasChanges: u, isTestPartner: Z, isSaveValidationEnabled: ee, loadRollout: C, saveSilent: D, setLoading: I, emit: a, buildMetadata: v, initPlugin: M, preloadRuntime: R, runExclusive: T, beginMount: L, isCurrentMount: S, mountGeneration: p, getDefaultTemplate: U, cloneTimersOnSave: N, hasTimerBlocks: _, noHeader: te, isRrsEnabled: oe, hasAssignedStrategy: re, insertDynamicContent: P, closeDynamicContent: A, handleDynamicContentOpen: b, ribbonObserver: c, updateRibbonOffset: h, startEditor: E, AutoSaveController: De, AuthErrorModal: Ie, Toaster: Me, FilterSelectionDrawer: Re, HeaderWrapper: Te, LoadingWrapper: Le, SaveAsTemplateDrawer: Ue, UnsubscribeWrapper: Ne, ValidationErrorDrawer: _e };
185
187
  }
186
188
  });
187
189
  export {
188
- ht as default
190
+ Et as default
189
191
  };
@@ -1,22 +1,22 @@
1
1
  import a from "./UnsubscribePageSelection.vue2.js";
2
2
  /* empty css */
3
3
  import n from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var o = function() {
5
- var r = this, e = r._self._c, t = r._self._setupProxy;
6
- return e(t.WpDrawer, { attrs: { id: "unsubscribe-modal", "description-status": "", size: "large", "footer-button-group-options": t.footerButtonGroupOptions, status: t.unsubscribeStore.pageSelectionDrawerStatus, "title-text": t.trans("newsletter.select-a-template") }, on: { cancelOrBackButtonEvent: t.handleBack, onCloseEvent: t.handleClose, primaryButtonEvent: t.handleSave }, scopedSlots: r._u([{ key: "headerBottomSlot", fn: function() {
7
- return [e(t.UnsubscribeBreadcrumb, { staticClass: "px-5 py-3" })];
8
- }, proxy: !0 }]) }, [e("div", { staticClass: "d-g templates-wrapper" }, r._l(t.unsubscribeStore.getTemplatesByActiveType, function(s) {
9
- return e("div", { key: s.id, staticClass: "template-wrapper", on: { click: function(u) {
10
- return t.selectTemplate(s.id);
11
- } } }, [e(t.InContainer, { staticClass: "template-container o-h", class: { selected: t.unsubscribeStore.getSelectedTemplateByActiveType === s.id }, attrs: { border: t.getBorderClass(s.id) } }, [e("div", { staticClass: "w-1 h-1 d-f j-c-c a-i-c" }, [e("img", { staticClass: "w-1 h-1 thumbnail o-h", attrs: { alt: s.name, src: s.thumbnail } })])]), e("div", { staticClass: "mt-1 f-s-1" }, [r._v(" " + r._s(s.name) + " ")])], 1);
4
+ var i = function() {
5
+ var r = this, t = r._self._c, e = r._self._setupProxy;
6
+ return t(e.WpDrawer, { attrs: { id: "unsubscribe-modal", "description-status": "", size: "large", "footer-button-group-options": e.footerButtonGroupOptions, status: e.unsubscribeStore.pageSelectionDrawerStatus, "title-text": e.trans("newsletter.select-a-template") }, on: { cancelOrBackButtonEvent: e.handleBack, onCloseEvent: e.handleClose, primaryButtonEvent: e.handleSave }, scopedSlots: r._u([{ key: "headerBottomSlot", fn: function() {
7
+ return [t(e.UnsubscribeBreadcrumb, { staticClass: "px-5 py-3" })];
8
+ }, proxy: !0 }]) }, [t("div", { staticClass: "d-g templates-wrapper" }, r._l(e.unsubscribeStore.getTemplatesByActiveType, function(s) {
9
+ return t("div", { key: s.id, staticClass: "template-wrapper", on: { click: function(u) {
10
+ return e.selectTemplate(s.id);
11
+ } } }, [t(e.InContainer, { staticClass: "template-container o-h p-r", class: { selected: e.unsubscribeStore.getSelectedTemplateByActiveType === s.id }, attrs: { border: e.getBorderClass(s.id) } }, [t("div", { staticClass: "w-1 h-1 d-f j-c-c a-i-c" }, [t("img", { staticClass: "w-1 h-1 thumbnail o-h", attrs: { alt: s.name, src: s.thumbnail } })]), s.isDefault ? t(e.InChips, { staticClass: "p-a t-3 r-3", attrs: { id: "guido__unsubscribe-default-chip", type: "neutral", value: "default", "close-button": !1, interactive: !1, text: e.trans("unsubscription-preference.default") } }) : r._e()], 1), t("div", { staticClass: "mt-1 f-s-1" }, [r._v(" " + r._s(s.name) + " ")])], 1);
12
12
  }), 0)]);
13
- }, i = [], c = /* @__PURE__ */ n(
13
+ }, o = [], c = /* @__PURE__ */ n(
14
14
  a,
15
- o,
16
15
  i,
16
+ o,
17
17
  !1,
18
18
  null,
19
- "91a26acd"
19
+ "eaf8e461"
20
20
  );
21
21
  const _ = c.exports;
22
22
  export {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as y, ref as T, computed as a, watch as v } from "vue";
2
2
  import w from "../../wrappers/WpDrawer.vue.js";
3
- import { useToaster as B } from "../../../composables/useToaster.js";
4
- import { useTranslations as C } from "../../../composables/useTranslations.js";
3
+ import { useToaster as C } from "../../../composables/useToaster.js";
4
+ import { useTranslations as B } from "../../../composables/useTranslations.js";
5
5
  import { ToasterTypeOptions as h } from "../../../enums/toaster.js";
6
6
  import { useEditorStore as P } from "../../../stores/editor.js";
7
7
  import { useUnsubscribeStore as U } from "../../../stores/unsubscribe.js";
8
- import { InContainer as _ } from "@useinsider/design-system-vue";
9
- import I from "./UnsubscribeBreadcrumb.vue.js";
10
- const N = /* @__PURE__ */ y({
8
+ import { InContainer as I, InChips as _ } from "@useinsider/design-system-vue";
9
+ import x from "./UnsubscribeBreadcrumb.vue.js";
10
+ const W = /* @__PURE__ */ y({
11
11
  __name: "UnsubscribePageSelection",
12
- setup(x) {
13
- const s = C(), e = U(), r = P(), { showToaster: c } = B(), o = T(!1), i = a(() => e.isActiveTypeLastInCollection ? o.value ? s("unsubscription-preference.applying-changes") : s("statistics.apply") : s("products.select-and-continue")), l = a(() => e.pageSelectionUpdateStatus && e.isActiveTypeFirstInCollection ? s("products.cancel") : s("newsletter.back")), p = a(() => ({
12
+ setup(A) {
13
+ const s = B(), e = U(), r = P(), { showToaster: c } = C(), o = T(!1), i = a(() => e.isActiveTypeLastInCollection ? o.value ? s("unsubscription-preference.applying-changes") : s("statistics.apply") : s("products.select-and-continue")), l = a(() => e.pageSelectionUpdateStatus && e.isActiveTypeFirstInCollection ? s("products.cancel") : s("newsletter.back")), p = a(() => ({
14
14
  primaryButton: {
15
15
  styling: "solid",
16
16
  type: "primary",
@@ -63,9 +63,9 @@ const N = /* @__PURE__ */ y({
63
63
  };
64
64
  return v(() => e.pageSelectionDrawerStatus, (t) => {
65
65
  t && e.pageSelectionUpdateStatus && e.fetchTemplates();
66
- }), { __sfc: !0, trans: s, unsubscribeStore: e, editorStore: r, showToaster: c, isApplying: o, getPrimaryButtonText: i, getCancelOrBackButtonText: l, footerButtonGroupOptions: p, getBorderClass: d, closeModal: n, handleClose: m, handleBack: b, handleSave: f, selectTemplate: g, WpDrawer: w, InContainer: _, UnsubscribeBreadcrumb: I };
66
+ }), { __sfc: !0, trans: s, unsubscribeStore: e, editorStore: r, showToaster: c, isApplying: o, getPrimaryButtonText: i, getCancelOrBackButtonText: l, footerButtonGroupOptions: p, getBorderClass: d, closeModal: n, handleClose: m, handleBack: b, handleSave: f, selectTemplate: g, WpDrawer: w, InChips: _, InContainer: I, UnsubscribeBreadcrumb: x };
67
67
  }
68
68
  });
69
69
  export {
70
- N as default
70
+ W as default
71
71
  };
@@ -1,24 +1,26 @@
1
- import { useConfig as C } from "./useConfig.js";
2
- import { useToaster as T } from "./useToaster.js";
3
- import { useTranslations as g } from "./useTranslations.js";
1
+ import { useConfig as T } from "./useConfig.js";
2
+ import { useToaster as g } from "./useToaster.js";
3
+ import { useTranslations as C } from "./useTranslations.js";
4
4
  import { ToasterTypeOptions as D } from "../enums/toaster.js";
5
5
  import { buildDynamicContentLookup as f, convertModuleDynamicContent as h } from "../utils/dynamicContentConverter.js";
6
6
  import { flattenDynamicContentList as O } from "../utils/genericUtil.js";
7
7
  import { repairItemsCurrencyAttributes as M } from "../utils/itemsCurrencyRepair.js";
8
- const N = "dynamic-content.unresolved-attributes-on-drop", R = () => {
9
- const { template: p, isFeatureEnabled: m } = C(), { showToaster: a } = T(), y = g();
8
+ const N = "dynamic-content.unresolved-attributes-on-drop", d = () => {
9
+ const { template: p, isFeatureEnabled: s } = T(), { showToaster: a } = g(), y = C();
10
10
  return { handleModuleAdd: (e, o) => {
11
- var s, l, u;
11
+ var c, l, i;
12
12
  try {
13
13
  if ((e == null ? void 0 : e.action) !== "ADD" && (e == null ? void 0 : e.action) !== "COPY")
14
14
  return;
15
- const t = (s = o == null ? void 0 : o.getTargetNode) == null ? void 0 : s.call(o), r = (l = t == null ? void 0 : t.getOuterHTML) == null ? void 0 : l.call(t);
15
+ const t = (c = o == null ? void 0 : o.getTargetNode) == null ? void 0 : c.call(o), r = (l = t == null ? void 0 : t.getOuterHTML) == null ? void 0 : l.call(t);
16
16
  if (!t || typeof r != "string")
17
17
  return;
18
- let n = M(r);
19
- const c = f(O((u = p.value) == null ? void 0 : u.dynamicContentList));
20
- let i = [];
21
- c.size > 0 && ({ html: n, unresolved: i } = h(n, c, m("liquidSyntax"))), n !== r && o.modifyHtml(t).replaceWith(n), i.length > 0 && a({
18
+ let n = M(r, {
19
+ convertToPriceFormat: s("itemsPriceFormatting")
20
+ });
21
+ const u = f(O((i = p.value) == null ? void 0 : i.dynamicContentList));
22
+ let m = [];
23
+ u.size > 0 && ({ html: n, unresolved: m } = h(n, u, s("liquidSyntax"))), n !== r && o.modifyHtml(t).replaceWith(n), m.length > 0 && a({
22
24
  type: D.Warning,
23
25
  message: y(N)
24
26
  });
@@ -29,5 +31,5 @@ const N = "dynamic-content.unresolved-attributes-on-drop", R = () => {
29
31
  };
30
32
  export {
31
33
  N as UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY,
32
- R as useModuleRepair
34
+ d as useModuleRepair
33
35
  };
@@ -1,4 +1,4 @@
1
- import { useConfig as g } from "../../../composables/useConfig.js";
1
+ import { useConfig as C } from "../../../composables/useConfig.js";
2
2
  import { useRecommendation as O } from "../../../composables/useRecommendation.js";
3
3
  import { MOBILE_ROW_SELECTOR as q, MOBILE_CONTAINER_SELECTOR as M, CSS_CLASS_RECO_BUTTON as B } from "../../../extensions/Blocks/Recommendation/constants/selectors.js";
4
4
  import { useRecommendationExtensionStore as N } from "../../../extensions/Blocks/Recommendation/store/recommendation.js";
@@ -13,7 +13,7 @@ function A(t) {
13
13
  [r] = r.children;
14
14
  return r;
15
15
  }
16
- function y(t, r, e, o, c, i) {
16
+ function _(t, r, e, o, c, i) {
17
17
  switch (r) {
18
18
  case "productImage": {
19
19
  const n = t.querySelector("img");
@@ -78,7 +78,7 @@ function y(t, r, e, o, c, i) {
78
78
  }
79
79
  }
80
80
  const P = "name";
81
- function b(t, r, e, o) {
81
+ function y(t, r, e, o) {
82
82
  const c = `${o}${r}_${e}_${P}`;
83
83
  return {
84
84
  open: t.createComment(`{% if ${c} and ${c} != "" %}`),
@@ -86,19 +86,19 @@ function b(t, r, e, o) {
86
86
  };
87
87
  }
88
88
  function R(t, r, e) {
89
- return b(t, r, 0, e);
89
+ return y(t, r, 0, e);
90
90
  }
91
91
  function w(t, r, e, o) {
92
92
  if (!t.innerHTML.includes("{{"))
93
93
  return;
94
- const { open: c, close: i } = b(t.ownerDocument, r, e, o);
94
+ const { open: c, close: i } = y(t.ownerDocument, r, e, o);
95
95
  t.insertBefore(c, t.firstChild), t.appendChild(i);
96
96
  }
97
97
  function D(t, r, e, o) {
98
98
  var n, s;
99
99
  if (!t.innerHTML.includes("{{"))
100
100
  return;
101
- const { open: c, close: i } = b(t.ownerDocument, r, e, o);
101
+ const { open: c, close: i } = y(t.ownerDocument, r, e, o);
102
102
  (n = t.parentNode) == null || n.insertBefore(c, t), (s = t.parentNode) == null || s.insertBefore(i, t.nextSibling);
103
103
  }
104
104
  function v(t, r, e, o) {
@@ -106,8 +106,8 @@ function v(t, r, e, o) {
106
106
  i.querySelectorAll("[data-attribute-type]").forEach((d) => {
107
107
  const u = d.getAttribute("data-attribute-type") || "", a = d.querySelectorAll(".attribute-cell");
108
108
  a.length > 0 ? a.forEach((l) => {
109
- y(l, u, r, n, e, o);
110
- }) : y(d, u, r, n, e, o);
109
+ _(l, u, r, n, e, o);
110
+ }) : _(d, u, r, n, e, o);
111
111
  }), D(i, r, n, o);
112
112
  });
113
113
  }
@@ -119,9 +119,9 @@ function H(t, r, e, o) {
119
119
  c.forEach((d, u) => {
120
120
  d.querySelectorAll("[data-attribute-type]").forEach((l) => {
121
121
  const p = l.getAttribute("data-attribute-type") || "";
122
- l.querySelectorAll(".attribute-cell").forEach((f, h) => {
122
+ l.querySelectorAll(".attribute-cell").forEach((m, h) => {
123
123
  const S = u * s + h;
124
- y(f, p, r, S, e, o), w(f, r, S, o);
124
+ _(m, p, r, S, e, o), w(m, r, S, o);
125
125
  });
126
126
  });
127
127
  });
@@ -132,10 +132,10 @@ function W(t, r, e, o) {
132
132
  });
133
133
  }
134
134
  function F(t, r, e) {
135
- const o = t.getAttribute("data-layout") || "grid", c = t.getAttribute("currency-alignment") || "after";
136
- o === "list" ? v(t, r, c, e) : W(t, r, c, e);
135
+ const o = t.getAttribute("data-layout") || "grid", c = t.getAttribute("currency-alignment"), i = c === "0" || c === "before" ? "before" : "after";
136
+ o === "list" ? v(t, r, i, e) : W(t, r, i, e);
137
137
  }
138
- function _(t, r, e) {
138
+ function b(t, r, e) {
139
139
  const o = new RegExp(`${r}\\s*:\\s*(\\d+)\\s*px`, "i"), c = t.match(o);
140
140
  return c ? parseInt(c[1]) : e;
141
141
  }
@@ -143,7 +143,7 @@ function $(t) {
143
143
  const r = t.trim();
144
144
  return r.endsWith("%") ? parseFloat(r) < 100 : /^\d+(?:\.\d+)?(?:px)?$/.test(r) && parseInt(r) > 0;
145
145
  }
146
- function C(t) {
146
+ function g(t) {
147
147
  const r = t.getAttribute("width");
148
148
  if (r && $(r))
149
149
  return r.trim();
@@ -153,28 +153,28 @@ function C(t) {
153
153
  function x(t, r) {
154
154
  let e = t.parentElement;
155
155
  for (; e && e !== r; ) {
156
- if (e.tagName === "TD" && C(e))
156
+ if (e.tagName === "TD" && g(e))
157
157
  return e;
158
158
  e = e.parentElement;
159
159
  }
160
160
  return null;
161
161
  }
162
162
  function G(t) {
163
- const r = t.getAttribute("style") || "", e = _(r, "width", 600), o = _(r, "padding", 0) * 2, c = Math.max(0, e - o);
163
+ const r = t.getAttribute("style") || "", e = b(r, "width", 600), o = b(r, "padding", 0) * 2, c = Math.max(0, e - o);
164
164
  c !== 0 && t.querySelectorAll("img.adapt-img").forEach((i) => {
165
165
  if (i.hasAttribute("width"))
166
166
  return;
167
167
  const n = x(i, t);
168
168
  if (!n)
169
169
  return;
170
- const s = C(n), d = _(n.getAttribute("style") || "", "padding", 0) * 2, u = s.endsWith("%") ? Math.floor(c * parseFloat(s) / 100) : parseInt(s), a = Math.max(1, u - d), l = i.getAttribute("style") || "", p = /(?:^|[;\s])max-height\s*:\s*(\d+(?:\.\d+)?)px/i.exec(l);
170
+ const s = g(n), d = b(n.getAttribute("style") || "", "padding", 0) * 2, u = s.endsWith("%") ? Math.floor(c * parseFloat(s) / 100) : parseInt(s), a = Math.max(1, u - d), l = i.getAttribute("style") || "", p = /(?:^|[;\s])max-height\s*:\s*(\d+(?:\.\d+)?)px/i.exec(l);
171
171
  if (p) {
172
172
  i.setAttribute("width", String(Math.max(1, Math.min(a, Math.floor(parseFloat(p[1])))))), i.removeAttribute("height");
173
173
  return;
174
174
  }
175
175
  if (i.setAttribute("width", String(a)), !/\bwidth\s*:\s*\d/i.test(l)) {
176
- const m = l && !l.trim().endsWith(";") ? "; " : "";
177
- i.setAttribute("style", `${l}${m}width: ${a}px`);
176
+ const f = l && !l.trim().endsWith(";") ? "; " : "";
177
+ i.setAttribute("style", `${l}${f}width: ${a}px`);
178
178
  }
179
179
  });
180
180
  }
@@ -200,15 +200,15 @@ function Q(t) {
200
200
  return t;
201
201
  const { buildCampaignUrl: c } = O(), i = N();
202
202
  i.recommendationCampaignUrls = {};
203
- const { isFeatureEnabled: n } = g(), s = n("liquidSyntax") ? "reco_" : "";
203
+ const { isFeatureEnabled: n } = C(), s = n("liquidSyntax") ? "reco_" : "";
204
204
  return o.forEach((u) => {
205
- var l, p, m, f;
205
+ var l, p, f, m;
206
206
  const a = u.getAttribute("recommendation-id");
207
207
  if (a) {
208
208
  if ((l = u.parentNode) == null || l.insertBefore(e.createComment("REC_START"), u), (p = u.parentNode) == null || p.insertBefore(e.createComment("REC_END"), u.nextSibling), u.querySelectorAll('[data-visibility="0"]').forEach((h) => h.remove()), c(a), U(u, e), !T(u)) {
209
209
  F(u, a, s);
210
210
  const { open: h, close: S } = R(e, a, s);
211
- (m = u.parentNode) == null || m.insertBefore(h, u), (f = u.parentNode) == null || f.insertBefore(S, u.nextSibling);
211
+ (f = u.parentNode) == null || f.insertBefore(h, u), (m = u.parentNode) == null || m.insertBefore(S, u.nextSibling);
212
212
  }
213
213
  G(u);
214
214
  }
@@ -1,18 +1,19 @@
1
- import { migrateCheckbox as i } from "./checkboxMigrator.js";
2
- import { migrateCouponBlock as e } from "./couponBlockMigrator.js";
3
- import { migrateFullStoryScripts as a } from "./fullStoryScriptMigrator.js";
4
- import { migrateItemsBlock as n } from "./itemsBlockMigrator.js";
5
- import { migrateProductNameLink as c } from "./productNameLinkMigrator.js";
6
- import { migrateRadioButton as g } from "./radioButtonMigrator.js";
7
- import { migrateRecommendation as p } from "./recommendationMigrator.js";
8
- import { migrateRecommendationPartnerScope as f } from "./recommendationPartnerMigrator.js";
9
- import { migrateRecommendationTitle as l } from "./recommendationTitleMigrator.js";
10
- import { migrateSocialIcons as s } from "./socialIconMigrator.js";
11
- import { migrateUnsubscribe as d } from "./unsubscribeMigrator.js";
12
- const h = async (o, t = {}, r) => {
13
- let m = o;
14
- return m = i(m), m = g(m), m = await d(m), m = e(m), m = p(m, t), r && (m = f(m, r)), m = l(m), m = n(m), m = c(m), m = s(m), m = a(m), m;
1
+ import { migrateCheckbox as e } from "./checkboxMigrator.js";
2
+ import { migrateCouponBlock as a } from "./couponBlockMigrator.js";
3
+ import { migrateFullStoryScripts as c } from "./fullStoryScriptMigrator.js";
4
+ import { migrateItemsBlock as g } from "./itemsBlockMigrator.js";
5
+ import { migrateItemsPriceFormat as n } from "./itemsPriceFormatMigrator.js";
6
+ import { migrateProductNameLink as p } from "./productNameLinkMigrator.js";
7
+ import { migrateRadioButton as f } from "./radioButtonMigrator.js";
8
+ import { migrateRecommendation as l } from "./recommendationMigrator.js";
9
+ import { migrateRecommendationPartnerScope as d } from "./recommendationPartnerMigrator.js";
10
+ import { migrateRecommendationTitle as s } from "./recommendationTitleMigrator.js";
11
+ import { migrateSocialIcons as k } from "./socialIconMigrator.js";
12
+ import { migrateUnsubscribe as P } from "./unsubscribeMigrator.js";
13
+ const H = async (t, i = {}, r, o) => {
14
+ let m = t;
15
+ return m = e(m), m = f(m), m = await P(m), m = a(m), m = l(m, i), r && (m = d(m, r)), m = s(m), m = g(m), o != null && o.itemsPriceFormatting && (m = n(m)), m = p(m), m = k(m), m = c(m), m;
15
16
  };
16
17
  export {
17
- h as migrate
18
+ H as migrate
18
19
  };