@useinsider/guido 3.23.0-beta.9f6bfbf β†’ 3.23.0-beta.cddbd15

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 (43) hide show
  1. package/README.md +0 -1
  2. package/dist/@types/config/schemas.js +15 -17
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +56 -58
  5. package/dist/composables/useModuleRepair.js +12 -14
  6. package/dist/config/migrator/index.js +15 -16
  7. package/dist/extensions/Blocks/Items/block.js +77 -115
  8. package/dist/extensions/Blocks/Items/constants/currency.js +14 -59
  9. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +22 -33
  10. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +51 -62
  11. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +17 -18
  12. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +31 -42
  13. package/dist/extensions/Blocks/Items/controls/settingsControl.js +120 -141
  14. package/dist/extensions/Blocks/Items/enums/controlEnums.js +1 -1
  15. package/dist/extensions/Blocks/Items/extension.js +8 -9
  16. package/dist/extensions/Blocks/Items/items.css.js +0 -19
  17. package/dist/extensions/Blocks/Items/settingsPanel.js +25 -34
  18. package/dist/extensions/Blocks/Items/template.js +212 -250
  19. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +0 -1
  20. package/dist/guido.css +1 -1
  21. package/dist/package.json.js +1 -1
  22. package/dist/src/@types/config/schemas.d.ts +0 -4
  23. package/dist/src/composables/useConfig.d.ts +0 -2
  24. package/dist/src/config/migrator/index.d.ts +1 -4
  25. package/dist/src/extensions/Blocks/Items/block.d.ts +9 -6
  26. package/dist/src/extensions/Blocks/Items/constants/currency.d.ts +0 -32
  27. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -1
  28. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -1
  29. package/dist/src/extensions/Blocks/Items/template.d.ts +1 -4
  30. package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -3
  31. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +0 -12
  32. package/dist/src/stores/config.d.ts +0 -20
  33. package/dist/src/utils/itemsCurrencyRepair.d.ts +1 -5
  34. package/dist/static/stripo-runtime-manifest.json.js +1 -1
  35. package/dist/utils/itemsCurrencyRepair.js +24 -29
  36. package/dist/utils/pairProductVariables.js +99 -119
  37. package/package.json +2 -2
  38. package/dist/config/migrator/itemsPriceFormatMigrator.js +0 -20
  39. package/dist/extensions/Blocks/Items/controls/priceFormat.js +0 -145
  40. package/dist/extensions/Blocks/Items/utils/priceFormatOps.js +0 -185
  41. package/dist/src/config/migrator/itemsPriceFormatMigrator.d.ts +0 -1
  42. package/dist/src/extensions/Blocks/Items/controls/priceFormat.d.ts +0 -23
  43. package/dist/src/extensions/Blocks/Items/utils/priceFormatOps.d.ts +0 -61
package/README.md CHANGED
@@ -166,7 +166,6 @@ 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).
170
169
  },
171
170
 
172
171
  // Optional: Callbacks
@@ -1,4 +1,4 @@
1
- import { ModuleFolderDefaults as S } from "../../enums/defaults.js";
1
+ import { ModuleFolderDefaults as f } 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
- }), f = T(() => C({
79
+ }), S = 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(f)),
84
+ children: e(c(S)),
85
85
  // eslint-disable-next-line camelcase -- backend field name
86
- select_items: e(c(f))
87
- })), P = g(
86
+ select_items: e(c(S))
87
+ })), N = g(
88
88
  t(),
89
- R(c(f), [])
90
- ), N = C({
89
+ R(c(S), [])
90
+ ), P = 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(), N),
143
+ g(t(), P),
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(P, {}),
162
+ dynamicContentList: e(N, {}),
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(), S.SAVED_MODULES),
213
+ savedModulesFolderName: e(t(), f.SAVED_MODULES),
214
214
  /** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
215
- defaultModulesFolderName: e(t(), S.DEFAULT_MODULES)
215
+ defaultModulesFolderName: e(t(), f.DEFAULT_MODULES)
216
216
  }), F = a({
217
217
  /** Whether to show the header bar */
218
218
  showHeader: e(o(), !0),
@@ -243,9 +243,7 @@ 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),
247
- /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
248
- itemsPriceFormatting: e(o(), !1)
246
+ reusableRecommendationStrategy: e(o(), !1)
249
247
  }), w = m([
250
248
  "amp-accordion",
251
249
  "amp-carousel",
@@ -368,8 +366,8 @@ export {
368
366
  B as CustomBlockTypeSchema,
369
367
  G as CustomRuleSchema,
370
368
  w as DefaultBlockTypeSchema,
371
- P as DynamicContentListSchema,
372
- f as DynamicContentNodeSchema,
369
+ N as DynamicContentListSchema,
370
+ S as DynamicContentNodeSchema,
373
371
  M as DynamicContentSchema,
374
372
  O as EditorSchema,
375
373
  D as EmailHeaderSchema,
@@ -377,7 +375,7 @@ export {
377
375
  U as FeaturesSchema,
378
376
  K as GuidoConfigSchema,
379
377
  A as IdentitySchema,
380
- N as LegacyRecommendationConfigSchema,
378
+ P as LegacyRecommendationConfigSchema,
381
379
  p as MessageType,
382
380
  E as PartnerSchema,
383
381
  l as ProductType,
@@ -12,7 +12,7 @@ var t = function() {
12
12
  s,
13
13
  !1,
14
14
  null,
15
- "49dc1b30"
15
+ "f2154cb6"
16
16
  );
17
17
  const v = n.exports;
18
18
  export {
@@ -1,37 +1,37 @@
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";
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";
5
5
  import { provideGuidoActions as ye } from "../composables/useGuidoActions.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";
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";
12
12
  import { ModuleFolderDefaults as H } from "../enums/defaults.js";
13
- import { RIBBON_SELECTOR as Fe } from "../enums/onboarding.js";
13
+ import { RIBBON_SELECTOR as we } 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 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";
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";
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 xe } from "../stores/save-validation.js";
31
- import { useTemplateStore as We } from "../stores/template.js";
32
- import { useUnsubscribeStore as Ge } from "../stores/unsubscribe.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";
33
33
  import { readTrackFloor as $ } from "../utils/linkTrackingIds.js";
34
- const Et = /* @__PURE__ */ me({
34
+ const ht = /* @__PURE__ */ de({
35
35
  __name: "Guido",
36
36
  props: {
37
37
  config: null,
@@ -39,7 +39,7 @@ const Et = /* @__PURE__ */ me({
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 = ge(), K = l(
42
+ const s = z, n = fe(), 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 Et = /* @__PURE__ */ me({
49
49
  () => import("./organisms/extensions/recommendation/RemoveStrategyModal.vue.js")
50
50
  ), X = l(
51
51
  () => import("./organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js")
52
- ), F = W(), g = W(), y = Be(), k = Ge(), o = Ae();
52
+ ), k = W(), y = W(), g = Be(), C = We(), o = Ae();
53
53
  s.ready && o.init(s.config);
54
- const d = w(), Y = Oe(), u = f(() => d.hasChanges), { isTestPartner: Z } = Se(), { isEnabled: ee, loadRollout: C } = be(), D = () => {
54
+ const d = w(), Y = Oe(), u = f(() => d.hasChanges), { isTestPartner: Z } = ve(), { isEnabled: ee, loadRollout: D } = Se(), I = () => {
55
55
  var t;
56
- return (t = F.value) == null ? void 0 : t.handleSave(!0);
57
- }, I = (t) => {
56
+ return (t = k.value) == null ? void 0 : t.handleSave(!0);
57
+ }, F = (t) => {
58
58
  d.loadingStatus = t;
59
59
  };
60
- pe(), ve();
60
+ ue(), ge();
61
61
  const v = () => {
62
62
  var t, e;
63
63
  return {
@@ -68,9 +68,9 @@ const Et = /* @__PURE__ */ me({
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 } = he(n), { runExclusive: T, beginMount: L, isCurrentMount: S } = fe();
71
+ }, { initPlugin: M, preloadRuntime: R } = be(n), { runExclusive: T, beginMount: L, isCurrentMount: S } = pe();
72
72
  let p = 0;
73
- const { getDefaultTemplate: U } = Pe(), { cloneTimersOnSave: N, hasTimerBlocks: _ } = Ee(), te = f(() => {
73
+ const { getDefaultTemplate: U } = _e(), { cloneTimersOnSave: N, hasTimerBlocks: _ } = he(), 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 Et = /* @__PURE__ */ me({
91
91
  console.debug("guido:test-email:click"), a("test-email:click");
92
92
  }
93
93
  });
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 = () => {
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 = () => {
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 Et = /* @__PURE__ */ me({
106
106
  let c = null;
107
107
  const h = () => {
108
108
  var e;
109
- const t = document.querySelector(Fe);
110
- (e = g.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
109
+ const t = document.querySelector(we);
110
+ (e = y.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,40 +118,38 @@ const Et = /* @__PURE__ */ me({
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) || "", 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 = {
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 = {
124
124
  partnerName: o.partnerName,
125
125
  campaignUrls: e == null ? void 0 : e.recommendationCampaignUrls,
126
126
  rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
127
- }, ie = {
128
- itemsPriceFormatting: o.isFeatureEnabled("itemsPriceFormatting")
129
- }, x = (de) => n.timed(
127
+ }, x = (ce) => n.timed(
130
128
  "migration",
131
- () => we(de, ne, ae, ie)
129
+ () => Ee(ce, ne, ae)
132
130
  );
133
131
  let r = {
134
132
  html: i && await x(i),
135
133
  css: m
136
134
  };
137
135
  r.html || (r = await n.timed("default_template", () => U()), r.html = await x(r.html));
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,
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,
142
140
  onReady: () => {
143
141
  console.debug("guido:ready"), a("ready");
144
142
  }
145
143
  };
146
- p = L(), await M(r, v(), ce), y.selectedDynamicContentList = B;
144
+ p = L(), await M(r, v(), se), g.selectedDynamicContentList = O;
147
145
  } catch (e) {
148
146
  console.error("Failed to initialize Stripo editor:", e), n.markFailed();
149
147
  }
150
148
  };
151
- return le(async () => {
149
+ return me(async () => {
152
150
  var e;
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;
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;
155
153
  if (t && (c = new ResizeObserver(h), c.observe(t)), R(), s.ready)
156
154
  await E();
157
155
  else {
@@ -160,7 +158,7 @@ const Et = /* @__PURE__ */ me({
160
158
  });
161
159
  }
162
160
  document.addEventListener("dynamic-content:open", b);
163
- }), ue(() => {
161
+ }), le(() => {
164
162
  if (Ce(), ke(), n.dispose(), c == null || c.disconnect(), document.removeEventListener("dynamic-content:open", b), S(p))
165
163
  try {
166
164
  w().isStripoInitialized = !1;
@@ -177,15 +175,15 @@ const Et = /* @__PURE__ */ me({
177
175
  }), o.reset();
178
176
  }), q({
179
177
  dynamicContent: {
180
- insert: P,
181
- close: A
178
+ insert: A,
179
+ close: B
182
180
  },
183
181
  hasChanges: u,
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 };
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 };
187
185
  }
188
186
  });
189
187
  export {
190
- Et as default
188
+ ht as default
191
189
  };
@@ -1,26 +1,24 @@
1
- import { useConfig as T } from "./useConfig.js";
2
- import { useToaster as g } from "./useToaster.js";
3
- import { useTranslations as C } from "./useTranslations.js";
1
+ import { useConfig as C } from "./useConfig.js";
2
+ import { useToaster as T } from "./useToaster.js";
3
+ import { useTranslations as g } 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", d = () => {
9
- const { template: p, isFeatureEnabled: s } = T(), { showToaster: a } = g(), y = C();
8
+ const N = "dynamic-content.unresolved-attributes-on-drop", R = () => {
9
+ const { template: p, isFeatureEnabled: m } = C(), { showToaster: a } = T(), y = g();
10
10
  return { handleModuleAdd: (e, o) => {
11
- var c, l, i;
11
+ var s, l, u;
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 = (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);
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);
16
16
  if (!t || typeof r != "string")
17
17
  return;
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({
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({
24
22
  type: D.Warning,
25
23
  message: y(N)
26
24
  });
@@ -31,5 +29,5 @@ const N = "dynamic-content.unresolved-attributes-on-drop", d = () => {
31
29
  };
32
30
  export {
33
31
  N as UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY,
34
- d as useModuleRepair
32
+ R as useModuleRepair
35
33
  };
@@ -1,19 +1,18 @@
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;
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;
16
15
  };
17
16
  export {
18
- H as migrate
17
+ h as migrate
19
18
  };