@useinsider/guido 3.30.0-beta.1add9f5 → 3.30.0-beta.1b33b85

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 (66) hide show
  1. package/README.md +0 -52
  2. package/dist/@types/config/schemas.js +33 -40
  3. package/dist/components/Guido.vue.js +8 -8
  4. package/dist/components/Guido.vue2.js +141 -167
  5. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +11 -16
  6. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +11 -11
  7. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +51 -51
  8. package/dist/components/organisms/validation/ValidationErrorDrawer.vue.js +3 -3
  9. package/dist/composables/useExport.js +8 -7
  10. package/dist/composables/useHtmlCompiler.js +13 -15
  11. package/dist/composables/useHtmlValidator.js +102 -100
  12. package/dist/composables/useStripo.js +57 -59
  13. package/dist/composables/useToaster.js +11 -10
  14. package/dist/composables/useVersionHistoryApi.js +22 -21
  15. package/dist/composables/validators/useLiquidValidator.js +26 -24
  16. package/dist/config/compiler/liquidCompilerRules.js +5 -13
  17. package/dist/enums/dynamic-content.js +2 -180
  18. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +148 -141
  19. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +53 -53
  20. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +40 -39
  21. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +27 -26
  22. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +33 -32
  23. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +23 -22
  24. package/dist/extensions/Blocks/Recommendation/templates/utils.js +79 -78
  25. package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +50 -41
  26. package/dist/extensions/DynamicContent/dynamic-content.js +33 -56
  27. package/dist/guido.css +1 -1
  28. package/dist/package.json.js +1 -1
  29. package/dist/src/@types/config/schemas.d.ts +0 -16
  30. package/dist/src/@types/generic.d.ts +0 -11
  31. package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
  32. package/dist/src/composables/useConfig.d.ts +0 -6
  33. package/dist/src/enums/dynamic-content.d.ts +0 -21
  34. package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +2 -0
  35. package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +0 -11
  36. package/dist/src/stores/config.d.ts +0 -63
  37. package/dist/src/stores/preview.d.ts +3 -0
  38. package/dist/src/utils/ampPreviewSanitizer.d.ts +5 -0
  39. package/dist/src/utils/genericUtil.d.ts +2 -7
  40. package/dist/src/utils/htmlEscape.d.ts +5 -0
  41. package/dist/stores/preview.js +21 -15
  42. package/dist/utils/ampPreviewSanitizer.js +46 -0
  43. package/dist/utils/genericUtil.js +43 -53
  44. package/dist/utils/htmlEscape.js +5 -1
  45. package/package.json +1 -1
  46. package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.js +0 -34
  47. package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue2.js +0 -76
  48. package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.js +0 -21
  49. package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue2.js +0 -33
  50. package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue.js +0 -42
  51. package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue2.js +0 -216
  52. package/dist/composables/useDynamicContentFormat.js +0 -10
  53. package/dist/composables/useInfoBoxPosition.js +0 -16
  54. package/dist/src/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.d.ts +0 -48
  55. package/dist/src/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.d.ts +0 -44
  56. package/dist/src/components/organisms/dynamic-content/DynamicContentPicker.vue.d.ts +0 -67
  57. package/dist/src/composables/useDynamicContentFormat.d.ts +0 -5
  58. package/dist/src/composables/useInfoBoxPosition.d.ts +0 -24
  59. package/dist/src/utils/clipboardText.d.ts +0 -1
  60. package/dist/src/utils/dynamicContentPicker.d.ts +0 -43
  61. package/dist/src/utils/linkTokenPaste.d.ts +0 -3
  62. package/dist/src/utils/liquidLinkQuotes.d.ts +0 -4
  63. package/dist/utils/clipboardText.js +0 -31
  64. package/dist/utils/dynamicContentPicker.js +0 -88
  65. package/dist/utils/linkTokenPaste.js +0 -28
  66. package/dist/utils/liquidLinkQuotes.js +0 -10
@@ -1,241 +1,215 @@
1
- import { defineComponent as we, defineAsyncComponent as d, ref as L, computed as s, watch as j, onMounted as Fe, onUnmounted as Le } from "vue";
2
- import { useCortexBlueprintBridge as Me } from "../composables/useCortexBlueprintBridge.js";
3
- import { useEditorLock as Ie } from "../composables/useEditorLock.js";
4
- import { startEditorOpenMetrics as Oe } from "../composables/useEditorOpenMetrics.js";
5
- import { provideGuidoActions as Re } from "../composables/useGuidoActions.js";
6
- import { useGuidoStateBridge as Pe } from "../composables/useGuidoStateBridge.js";
7
- import { usePartner as Ue } from "../composables/usePartner.js";
8
- import { useSaveValidationRollout as Ae } from "../composables/useSaveValidationRollout.js";
9
- import { useStripo as He } from "../composables/useStripo.js";
10
- import { useTimerClone as Ne } from "../composables/useTimerClone.js";
11
- import { useToaster as _e } from "../composables/useToaster.js";
12
- import { useTranslations as xe } from "../composables/useTranslations.js";
13
- import { migrate as Be } from "../config/migrator/index.js";
14
- import { ModuleFolderDefaults as K } from "../enums/defaults.js";
15
- import { RIBBON_SELECTOR as Ve } from "../enums/onboarding.js";
16
- import { ToasterTypeOptions as We } from "../enums/toaster.js";
17
- import { useRecommendationExtensionStore as J, disposeStrategyPageReturnListeners as Ge } from "../extensions/Blocks/Recommendation/store/recommendation.js";
18
- import { disposeUnsubscribeListeners as $e } from "../extensions/Blocks/Unsubscribe/block.js";
19
- import { disposeDisplayConditionRequest as ze } from "../extensions/DisplayConditions/bridge.js";
20
- import qe from "./organisms/AutoSaveController.vue.js";
21
- import je from "./organisms/base/AuthErrorModal.vue.js";
22
- import Ke from "./organisms/base/Toaster.vue.js";
23
- import Je from "./organisms/dynamic-content/DynamicContentPicker.vue.js";
24
- import Qe from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
25
- import Xe from "./organisms/header/HeaderWrapper.vue.js";
26
- import Ye from "./organisms/LoadingWrapper.vue.js";
27
- import Ze from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
28
- import et from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
29
- import tt from "./organisms/validation/ValidationErrorDrawer.vue.js";
30
- import { useStripoApi as ot } from "../services/stripoApi.js";
31
- import { useConfigStore as nt } from "../stores/config.js";
32
- import { useDynamicContentStore as rt } from "../stores/dynamic-content.js";
33
- import { useEditorStore as M } from "../stores/editor.js";
34
- import { useGuidoEmailEditorStore as it } from "../stores/guido-email-editor.js";
35
- import { useModuleDynamicContentStore as Q } from "../stores/module-dynamic-content.js";
36
- import { useOnboardingStore as st } from "../stores/onboarding.js";
37
- import { usePreviewStore as at } from "../stores/preview.js";
38
- import { useSaveValidationStore as ct } from "../stores/save-validation.js";
39
- import { useTemplateStore as dt } from "../stores/template.js";
40
- import { useUnsubscribeStore as mt } from "../stores/unsubscribe.js";
41
- import { buildPickerOptions as lt, buildAooScanContent as ut } from "../utils/dynamicContentPicker.js";
42
- import { disposeLinkTokenPaste as pt } from "../utils/linkTokenPaste.js";
43
- import { readTrackFloor as X } from "../utils/linkTrackingIds.js";
44
- const no = /* @__PURE__ */ we({
1
+ import { defineComponent as Se, defineAsyncComponent as a, ref as W, computed as l, watch as $, onMounted as he, onUnmounted as Ee } from "vue";
2
+ import { useCortexBlueprintBridge as Ce } from "../composables/useCortexBlueprintBridge.js";
3
+ import { useEditorLock as De } from "../composables/useEditorLock.js";
4
+ import { startEditorOpenMetrics as we } from "../composables/useEditorOpenMetrics.js";
5
+ import { provideGuidoActions as Te } from "../composables/useGuidoActions.js";
6
+ import { useGuidoStateBridge as ke } from "../composables/useGuidoStateBridge.js";
7
+ import { usePartner as Fe } from "../composables/usePartner.js";
8
+ import { useSaveValidationRollout as Me } from "../composables/useSaveValidationRollout.js";
9
+ import { useStripo as Ie } from "../composables/useStripo.js";
10
+ import { useTimerClone as Le } from "../composables/useTimerClone.js";
11
+ import { useToaster as Re } from "../composables/useToaster.js";
12
+ import { useTranslations as Oe } from "../composables/useTranslations.js";
13
+ import { migrate as Ue } from "../config/migrator/index.js";
14
+ import { ModuleFolderDefaults as G } from "../enums/defaults.js";
15
+ import { RIBBON_SELECTOR as Ae } from "../enums/onboarding.js";
16
+ import { ToasterTypeOptions as Ne } from "../enums/toaster.js";
17
+ import { useRecommendationExtensionStore as z, disposeStrategyPageReturnListeners as _e } from "../extensions/Blocks/Recommendation/store/recommendation.js";
18
+ import { disposeUnsubscribeListeners as Pe } from "../extensions/Blocks/Unsubscribe/block.js";
19
+ import { disposeDisplayConditionRequest as xe } from "../extensions/DisplayConditions/bridge.js";
20
+ import Be from "./organisms/AutoSaveController.vue.js";
21
+ import He from "./organisms/base/AuthErrorModal.vue.js";
22
+ import Ve from "./organisms/base/Toaster.vue.js";
23
+ import We from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
24
+ import $e from "./organisms/header/HeaderWrapper.vue.js";
25
+ import Ge from "./organisms/LoadingWrapper.vue.js";
26
+ import ze from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
27
+ import qe from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
28
+ import Ke from "./organisms/validation/ValidationErrorDrawer.vue.js";
29
+ import { useStripoApi as je } from "../services/stripoApi.js";
30
+ import { useConfigStore as Je } from "../stores/config.js";
31
+ import { useDynamicContentStore as Qe } from "../stores/dynamic-content.js";
32
+ import { useEditorStore as C } from "../stores/editor.js";
33
+ import { useModuleDynamicContentStore as q } from "../stores/module-dynamic-content.js";
34
+ import { useOnboardingStore as Xe } from "../stores/onboarding.js";
35
+ import { usePreviewStore as Ye } from "../stores/preview.js";
36
+ import { useSaveValidationStore as Ze } from "../stores/save-validation.js";
37
+ import { useTemplateStore as et } from "../stores/template.js";
38
+ import { useUnsubscribeStore as tt } from "../stores/unsubscribe.js";
39
+ import { readTrackFloor as K } from "../utils/linkTrackingIds.js";
40
+ const Vt = /* @__PURE__ */ Se({
45
41
  __name: "Guido",
46
42
  props: {
47
43
  config: null,
48
44
  ready: { type: Boolean, default: !0 }
49
45
  },
50
46
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
51
- setup(Y, { expose: Z, emit: a }) {
52
- const m = Y, i = Oe(), ee = d(
47
+ setup(j, { expose: J, emit: i }) {
48
+ const c = j, r = we(), Q = a(
53
49
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
54
- ), te = d(
50
+ ), X = a(
55
51
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
56
- ), oe = d(
52
+ ), Y = a(
57
53
  () => import("./organisms/extensions/recommendation/AssignStrategyDrawer.vue.js")
58
- ), ne = d(
54
+ ), Z = a(
59
55
  () => import("./organisms/extensions/recommendation/RemoveStrategyModal.vue.js")
60
- ), re = d(
56
+ ), ee = a(
61
57
  () => import("./organisms/display-conditions/DisplayConditionsHost.vue.js")
62
- ), I = L(), ie = d(
58
+ ), D = W(), te = a(
63
59
  () => import("./organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js")
64
- ), se = d(
60
+ ), oe = a(
65
61
  () => import("./organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js")
66
- ), ae = d(
62
+ ), ne = a(
67
63
  () => import("./organisms/dynamic-content/AmbiguousDynamicContentModal.vue.js")
68
- ), v = L(), S = rt(), O = mt(), ce = Q(), o = nt();
69
- m.ready && o.init(m.config);
70
- const l = M(), de = at(), f = s(() => l.hasChanges), { isTestPartner: me } = Ue(), { isEnabled: le, loadRollout: R } = Ae(), { showToaster: P } = _e(), U = xe(), A = () => {
71
- var e;
72
- if (l.isVersionHistoryOpen) {
73
- console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }), P({
74
- type: We.Warning,
75
- message: U("email-editor.save-blocked-outside-editor")
64
+ ), y = W(), g = Qe(), w = tt(), re = q(), o = Je();
65
+ c.ready && o.init(c.config);
66
+ const d = C(), ie = Ye(), p = l(() => d.hasChanges), { isTestPartner: se } = Fe(), { isEnabled: ae, loadRollout: T } = Me(), { showToaster: k } = Re(), F = Oe(), M = () => {
67
+ var t;
68
+ if (d.isVersionHistoryOpen) {
69
+ console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }), k({
70
+ type: Ne.Warning,
71
+ message: F("email-editor.save-blocked-outside-editor")
76
72
  });
77
73
  return;
78
74
  }
79
- return (e = I.value) == null ? void 0 : e.saveSilent();
80
- }, H = (e) => {
81
- l.loadingStatus = e;
75
+ return (t = D.value) == null ? void 0 : t.saveSilent();
76
+ }, I = (t) => {
77
+ d.loadingStatus = t;
82
78
  };
83
- Me(), Pe();
84
- const h = () => {
85
- var e, t;
79
+ Ce(), ke();
80
+ const b = () => {
81
+ var t, e;
86
82
  return {
87
83
  emailId: o.templateId,
88
84
  userId: o.userId,
89
85
  username: o.username,
90
86
  partnerName: o.partnerName,
91
- savedModulesFolderName: ((e = o.editor) == null ? void 0 : e.savedModulesFolderName) || K.SAVED_MODULES,
92
- defaultModulesFolderName: ((t = o.editor) == null ? void 0 : t.defaultModulesFolderName) || K.DEFAULT_MODULES
87
+ savedModulesFolderName: ((t = o.editor) == null ? void 0 : t.savedModulesFolderName) || G.SAVED_MODULES,
88
+ defaultModulesFolderName: ((e = o.editor) == null ? void 0 : e.defaultModulesFolderName) || G.DEFAULT_MODULES
93
89
  };
94
- }, { initPlugin: N, preloadRuntime: _ } = He(i), { runExclusive: x, beginMount: B, isCurrentMount: E } = Ie();
95
- let y = 0;
96
- const { getDefaultTemplate: V } = ot(), { cloneTimersOnSave: W, hasTimerBlocks: G } = Ne(), ue = s(() => {
97
- var e;
98
- return !((e = o.ui) != null && e.showHeader);
99
- }), pe = s(() => o.isFeatureEnabled("reusableRecommendationStrategy")), fe = s(() => o.externalDisplayConditions), ye = s(
90
+ }, { initPlugin: L, preloadRuntime: R } = Ie(r), { runExclusive: O, beginMount: U, isCurrentMount: v } = De();
91
+ let f = 0;
92
+ const { getDefaultTemplate: A } = je(), { cloneTimersOnSave: N, hasTimerBlocks: _ } = Le(), ce = l(() => {
93
+ var t;
94
+ return !((t = o.ui) != null && t.showHeader);
95
+ }), de = l(() => o.isFeatureEnabled("reusableRecommendationStrategy")), me = l(() => o.externalDisplayConditions), le = l(
100
96
  () => o.isFeatureEnabled("legacyUnsubscribeConversion")
101
- ), be = s(
102
- () => !!J().recommendationConfigs.strategyId
97
+ ), ue = l(
98
+ () => !!z().recommendationConfigs.strategyId
103
99
  );
104
- Re({
100
+ Te({
105
101
  onBack: () => {
106
- console.debug("guido:back"), a("back");
102
+ console.debug("guido:back"), i("back");
107
103
  },
108
104
  onSaveStart: () => {
109
- console.debug("guido:save:start"), a("save:start");
105
+ console.debug("guido:save:start"), i("save:start");
110
106
  },
111
- onSaveComplete: (e) => {
112
- const t = { ...e, metadata: h() };
113
- console.debug("guido:save:complete", t), a("save:complete", t);
107
+ onSaveComplete: (t) => {
108
+ const e = { ...t, metadata: b() };
109
+ console.debug("guido:save:complete", e), i("save:complete", e);
114
110
  },
115
111
  onTestEmailClick: () => {
116
- console.debug("guido:test-email:click"), a("test-email:click");
112
+ console.debug("guido:test-email:click"), i("test-email:click");
117
113
  }
118
114
  });
119
- const C = (e) => {
120
- console.debug("dynamic-content:close", e), S.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
121
- }, k = () => {
115
+ const P = (t) => {
116
+ console.debug("dynamic-content:close", t), g.setSelectedDynamicContent(t), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: t }));
117
+ }, x = () => {
122
118
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
123
119
  };
124
- j(() => f.value, () => {
125
- a("on-change", f.value);
120
+ $(() => p.value, () => {
121
+ i("on-change", p.value);
126
122
  });
127
- const $ = s(() => o.isFeatureEnabled("dynamicContentPicker")), b = L({
128
- visible: !1,
129
- initialData: null
130
- }), ge = s(() => {
131
- var e;
132
- return lt((e = o.template) == null ? void 0 : e.dynamicContentList);
133
- }), ve = s(() => {
134
- var p, g;
135
- if (!b.value.visible)
136
- return "";
137
- const e = it(), t = e.hasSnapshot ? e.html : (p = o.template) == null ? void 0 : p.html, { subject: n = "", preheader: c = "" } = ((g = o.editor) == null ? void 0 : g.emailHeader) ?? {};
138
- return ut([n, c, t ?? ""]);
139
- }), D = () => {
140
- b.value = { visible: !1, initialData: null };
141
- }, Se = (e) => {
142
- D(), C(e);
143
- }, he = () => {
144
- D(), k();
145
- }, T = (e) => {
146
- const t = e, { attribute: n, position: c } = t.detail;
147
- if (console.debug("dynamic-content:open", t.detail), $.value) {
148
- b.value = { visible: !0, initialData: n ?? null, position: c };
149
- return;
150
- }
151
- a("dynamic-content:open", n, c);
123
+ const S = (t) => {
124
+ const e = t, { attribute: s, position: u } = e.detail;
125
+ console.debug("dynamic-content:open", e.detail), i("dynamic-content:open", s, u);
152
126
  };
153
- let u = null;
154
- const w = () => {
155
- var t;
156
- const e = document.querySelector(Ve);
157
- (t = v.value) == null || t.style.setProperty("--ribbon-offset", `${(e == null ? void 0 : e.offsetHeight) ?? 0}px`);
158
- }, F = async () => {
127
+ let m = null;
128
+ const h = () => {
159
129
  var e;
160
- i.mark("host_ready");
130
+ const t = document.querySelector(Ae);
131
+ (e = y.value) == null || e.style.setProperty("--ribbon-offset", `${(t == null ? void 0 : t.offsetHeight) ?? 0}px`);
132
+ }, E = async () => {
133
+ var t;
134
+ r.mark("host_ready");
161
135
  try {
162
- o.initialized || o.init(m.config), l.templateId = o.templateId, i.setContext({
136
+ o.initialized || o.init(c.config), d.templateId = o.templateId, r.setContext({
163
137
  partnerName: o.partnerName,
164
138
  productType: o.productType,
165
139
  templateId: o.templateId,
166
140
  variationId: o.variationId
167
141
  });
168
- const t = o.template, n = (t == null ? void 0 : t.html) || "", c = (t == null ? void 0 : t.css) || "", p = (t == null ? void 0 : t.preselectedDynamicContent) || [];
169
- O.selectedUnsubscribePages = (t == null ? void 0 : t.selectedUnsubscribePages) || [];
170
- const g = ((e = t == null ? void 0 : t.migration) == null ? void 0 : e.recommendationConfigs) ?? {}, z = o.isFeatureEnabled("linkTrackingIds"), Ee = {
142
+ const e = o.template, s = (e == null ? void 0 : e.html) || "", u = (e == null ? void 0 : e.css) || "", B = (e == null ? void 0 : e.preselectedDynamicContent) || [];
143
+ w.selectedUnsubscribePages = (e == null ? void 0 : e.selectedUnsubscribePages) || [];
144
+ const pe = ((t = e == null ? void 0 : e.migration) == null ? void 0 : t.recommendationConfigs) ?? {}, H = o.isFeatureEnabled("linkTrackingIds"), fe = {
171
145
  partnerName: o.partnerName,
172
- campaignUrls: t == null ? void 0 : t.recommendationCampaignUrls,
146
+ campaignUrls: e == null ? void 0 : e.recommendationCampaignUrls,
173
147
  rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
174
- }, Ce = {
148
+ }, ye = {
175
149
  itemsPriceFormatting: o.isFeatureEnabled("itemsPriceFormatting")
176
- }, q = (Te) => i.timed(
150
+ }, V = (ve) => r.timed(
177
151
  "migration",
178
- () => Be(Te, g, Ee, Ce)
152
+ () => Ue(ve, pe, fe, ye)
179
153
  );
180
- let r = {
181
- html: n && await q(n),
182
- css: c
154
+ let n = {
155
+ html: s && await V(s),
156
+ css: u
183
157
  };
184
- r.html || (r = await i.timed("default_template", () => V()), r.html = await q(r.html));
185
- const ke = z ? X(r.html, (t == null ? void 0 : t.trackIdCounter) || 0) : 0;
186
- G(r.html) && (r.html = await i.timed("timer_clone", () => W(r.html))), z && (l.trackIdSessionFloor = Math.max(ke, X(r.html)));
187
- const De = {
188
- preselectedDynamicContentList: p,
158
+ n.html || (n = await r.timed("default_template", () => A()), n.html = await V(n.html));
159
+ const ge = H ? K(n.html, (e == null ? void 0 : e.trackIdCounter) || 0) : 0;
160
+ _(n.html) && (n.html = await r.timed("timer_clone", () => N(n.html))), H && (d.trackIdSessionFloor = Math.max(ge, K(n.html)));
161
+ const be = {
162
+ preselectedDynamicContentList: B,
189
163
  onReady: () => {
190
- console.debug("guido:ready"), a("ready");
164
+ console.debug("guido:ready"), i("ready");
191
165
  }
192
166
  };
193
- y = B(), await N(r, h(), De, r.html !== n), S.selectedDynamicContentList = p;
194
- } catch (t) {
195
- console.error("Failed to initialize Stripo editor:", t), i.markFailed();
167
+ f = U(), await L(n, b(), be, n.html !== s), g.selectedDynamicContentList = B;
168
+ } catch (e) {
169
+ console.error("Failed to initialize Stripo editor:", e), r.markFailed();
196
170
  }
197
171
  };
198
- return Fe(async () => {
199
- var t;
200
- console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), J().$reset(), M().$reset(), dt().$reset(), ct().$reset(), Q().$reset(), st().resetOnboarding("recommendationLegacyStrategyOnboarding"), R(), w();
201
- const e = (t = v.value) == null ? void 0 : t.parentElement;
202
- if (e && (u = new ResizeObserver(w), u.observe(e)), _(), m.ready)
203
- await F();
172
+ return he(async () => {
173
+ var e;
174
+ console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), z().$reset(), C().$reset(), et().$reset(), Ze().$reset(), q().$reset(), Xe().resetOnboarding("recommendationLegacyStrategyOnboarding"), T(), h();
175
+ const t = (e = y.value) == null ? void 0 : e.parentElement;
176
+ if (t && (m = new ResizeObserver(h), m.observe(t)), R(), c.ready)
177
+ await E();
204
178
  else {
205
- const n = j(() => m.ready, (c) => {
206
- c && (n(), F());
179
+ const s = $(() => c.ready, (u) => {
180
+ u && (s(), E());
207
181
  });
208
182
  }
209
- document.addEventListener("dynamic-content:open", T);
210
- }), Le(() => {
211
- if ($e(), Ge(), i.dispose(), u == null || u.disconnect(), document.removeEventListener("dynamic-content:open", T), E(y)) {
212
- ze(), pt();
183
+ document.addEventListener("dynamic-content:open", S);
184
+ }), Ee(() => {
185
+ if (Pe(), _e(), r.dispose(), m == null || m.disconnect(), document.removeEventListener("dynamic-content:open", S), v(f)) {
186
+ xe();
213
187
  try {
214
- const e = M();
215
- e.isStripoInitialized = !1, e.isAccessibilityTestingOpen = !1, e.imagesHidden = !1, e.colorVisionDeficiency = "";
216
- } catch (e) {
217
- console.debug("Failed to close the editor readiness gate on unmount", e);
188
+ const t = C();
189
+ t.isStripoInitialized = !1, t.isAccessibilityTestingOpen = !1, t.imagesHidden = !1, t.colorVisionDeficiency = "";
190
+ } catch (t) {
191
+ console.debug("Failed to close the editor readiness gate on unmount", t);
218
192
  }
219
193
  }
220
- x(async () => {
221
- if (E(y))
194
+ O(async () => {
195
+ if (v(f))
222
196
  try {
223
197
  window.UIEditor.removeEditor();
224
198
  } catch {
225
199
  console.debug("Failed to remove Stripo editor: No editor found");
226
200
  }
227
201
  }), o.reset();
228
- }), Z({
202
+ }), J({
229
203
  dynamicContent: {
230
- insert: C,
231
- close: k
204
+ insert: P,
205
+ close: x
232
206
  },
233
- hasChanges: f,
234
- saveSilent: A,
235
- setLoading: H
236
- }), { __sfc: !0, openMetrics: i, PreviewContainer: ee, OnboardingWrapper: te, AssignStrategyDrawer: oe, RemoveStrategyModal: ne, DisplayConditionsHost: re, autoSaveControllerRef: I, LegacyStrategyUpdatedModal: ie, LegacyUnsubscribeConvertedModal: se, AmbiguousDynamicContentModal: ae, wrapperRef: v, dynamicContentStore: S, unsubscribeStore: O, moduleDynamicContentStore: ce, props: m, configStore: o, editorStore: l, previewStore: de, hasChanges: f, isTestPartner: me, isSaveValidationEnabled: le, loadRollout: R, showToaster: P, trans: U, saveSilent: A, setLoading: H, emit: a, buildMetadata: h, initPlugin: N, preloadRuntime: _, runExclusive: x, beginMount: B, isCurrentMount: E, mountGeneration: y, getDefaultTemplate: V, cloneTimersOnSave: W, hasTimerBlocks: G, noHeader: ue, isRrsEnabled: pe, isExternalDisplayConditionsEnabled: fe, isLegacyUnsubscribeConversionEnabled: ye, hasAssignedStrategy: be, insertDynamicContent: C, closeDynamicContent: k, isDynamicContentPickerEnabled: $, picker: b, pickerOptions: ge, pickerAooScanContent: ve, hidePicker: D, pickerSaveHandler: Se, pickerCloseHandler: he, handleDynamicContentOpen: T, ribbonObserver: u, updateRibbonOffset: w, startEditor: F, AutoSaveController: qe, AuthErrorModal: je, Toaster: Ke, DynamicContentPicker: Je, FilterSelectionDrawer: Qe, HeaderWrapper: Xe, LoadingWrapper: Ye, SaveAsTemplateDrawer: Ze, UnsubscribeWrapper: et, ValidationErrorDrawer: tt };
207
+ hasChanges: p,
208
+ saveSilent: M,
209
+ setLoading: I
210
+ }), { __sfc: !0, openMetrics: r, PreviewContainer: Q, OnboardingWrapper: X, AssignStrategyDrawer: Y, RemoveStrategyModal: Z, DisplayConditionsHost: ee, autoSaveControllerRef: D, LegacyStrategyUpdatedModal: te, LegacyUnsubscribeConvertedModal: oe, AmbiguousDynamicContentModal: ne, wrapperRef: y, dynamicContentStore: g, unsubscribeStore: w, moduleDynamicContentStore: re, props: c, configStore: o, editorStore: d, previewStore: ie, hasChanges: p, isTestPartner: se, isSaveValidationEnabled: ae, loadRollout: T, showToaster: k, trans: F, saveSilent: M, setLoading: I, emit: i, buildMetadata: b, initPlugin: L, preloadRuntime: R, runExclusive: O, beginMount: U, isCurrentMount: v, mountGeneration: f, getDefaultTemplate: A, cloneTimersOnSave: N, hasTimerBlocks: _, noHeader: ce, isRrsEnabled: de, isExternalDisplayConditionsEnabled: me, isLegacyUnsubscribeConversionEnabled: le, hasAssignedStrategy: ue, insertDynamicContent: P, closeDynamicContent: x, handleDynamicContentOpen: S, ribbonObserver: m, updateRibbonOffset: h, startEditor: E, AutoSaveController: Be, AuthErrorModal: He, Toaster: Ve, FilterSelectionDrawer: We, HeaderWrapper: $e, LoadingWrapper: Ge, SaveAsTemplateDrawer: ze, UnsubscribeWrapper: qe, ValidationErrorDrawer: Ke };
237
211
  }
238
212
  });
239
213
  export {
240
- no as default
214
+ Vt as default
241
215
  };
@@ -1,23 +1,18 @@
1
- import o from "./DesktopPreview.vue2.js";
1
+ import t from "./DesktopPreview.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var a = function() {
5
- var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "desktop-preview-wrapper" }, [e("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 mb-6 l-s-5" }, [s._v(" " + s._s(t.trans("email-editor.desktop-preview")) + " ")]), e("div", { ref: "containerRef", staticClass: "desktop-preview d-f f-d-c o-h s-1" }, [e(t.DesktopBrowserHeader), e("div", { staticClass: "desktop-preview__content d-f f-g-1 o-h b-c-5 min-h-0" }, [e("div", { staticClass: "f-g-1 h-1 o-h b-c-4 min-w-0" }, [t.isContainerReady ? e("iframe", { staticClass: "desktop-preview__iframe d-b w-1 h-1 b-c-4 bor-s-n", attrs: { sandbox: `
7
- allow-same-origin
8
- allow-popups
9
- allow-forms
10
- allow-scripts
11
- allow-popups-to-escape-sandbox`, srcdoc: t.previewStore.previewHtml }, on: { load: t.onIframeLoad } }) : s._e()])])], 1)]);
12
- }, i = [], n = /* @__PURE__ */ r(
13
- o,
14
- a,
3
+ import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var i = function() {
5
+ var s = this, e = s._self._c, r = s._self._setupProxy;
6
+ return e("div", { staticClass: "desktop-preview-wrapper" }, [e("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 mb-6 l-s-5" }, [s._v(" " + s._s(r.trans("email-editor.desktop-preview")) + " ")]), e("div", { ref: "containerRef", staticClass: "desktop-preview d-f f-d-c o-h s-1" }, [e(r.DesktopBrowserHeader), e("div", { staticClass: "desktop-preview__content d-f f-g-1 o-h b-c-5 min-h-0" }, [e("div", { staticClass: "f-g-1 h-1 o-h b-c-4 min-w-0" }, [r.isContainerReady ? e("iframe", { key: r.previewStore.previewSandbox, staticClass: "desktop-preview__iframe d-b w-1 h-1 b-c-4 bor-s-n", attrs: { sandbox: r.previewStore.previewSandbox, srcdoc: r.previewStore.previewHtml }, on: { load: r.onIframeLoad } }) : s._e()])])], 1)]);
7
+ }, a = [], n = /* @__PURE__ */ o(
8
+ t,
15
9
  i,
10
+ a,
16
11
  !1,
17
12
  null,
18
- "cf946232"
13
+ "f5ff6219"
19
14
  );
20
- const f = n.exports;
15
+ const _ = n.exports;
21
16
  export {
22
- f as default
17
+ _ as default
23
18
  };
@@ -1,20 +1,20 @@
1
- import e from "./ContentView.vue2.js";
1
+ import a from "./ContentView.vue2.js";
2
2
  /* empty css */
3
- import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var o = function() {
5
- var t = this, s = t._self._c, a = t._self._setupProxy;
3
+ import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var n = function() {
5
+ var t = this, s = t._self._c, e = t._self._setupProxy;
6
6
  return s("div", { staticClass: "w-1 h-1 b-c-4 d-f f-d-c" }, [s("div", { staticClass: "d-f j-c-s-b a-i-c p-2 h-6-s" }, [s("div", { staticClass: "d-f a-i-c cur-p", on: { click: function(l) {
7
7
  return t.$emit("back-to-inbox");
8
- } } }, [s(a.InIcons, { staticClass: "f-s-3 i-c-7", attrs: { name: "line-chevron-left" } }), s("span", { staticClass: "ml-2 f-s-1 f-w-400 l-h-1 t-c-7" }, [t._v(t._s(a.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(a.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(a.InIcons, { staticClass: "ml-1 i-c-52", attrs: { name: "line-chevron-up" } })], 1)]), s("div", { staticClass: "iframe-wrapper f-g-1 o-h" }, [s("iframe", { ref: "iframeRef", staticClass: "iframe-scaled d-b b-c-4 bor-s-n", attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts allow-popups-to-escape-sandbox", srcdoc: a.previewStore.previewHtml }, on: { load: a.onLoad } })])]);
9
- }, i = [], r = /* @__PURE__ */ n(
10
- e,
11
- o,
8
+ } } }, [s(e.InIcons, { staticClass: "f-s-3 i-c-7", attrs: { name: "line-chevron-left" } }), s("span", { staticClass: "ml-2 f-s-1 f-w-400 l-h-1 t-c-7" }, [t._v(t._s(e.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(e.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(e.InIcons, { staticClass: "ml-1 i-c-52", attrs: { name: "line-chevron-up" } })], 1)]), s("div", { staticClass: "iframe-wrapper f-g-1 o-h" }, [s("iframe", { key: e.previewStore.previewSandbox, ref: "iframeRef", staticClass: "iframe-scaled d-b b-c-4 bor-s-n", attrs: { sandbox: e.previewStore.previewSandbox, srcdoc: e.previewStore.previewHtml }, on: { load: e.onLoad } })])]);
9
+ }, i = [], c = /* @__PURE__ */ r(
10
+ a,
11
+ n,
12
12
  i,
13
13
  !1,
14
14
  null,
15
- "f255b2bb"
15
+ "a7102458"
16
16
  );
17
- const d = r.exports;
17
+ const p = c.exports;
18
18
  export {
19
- d as default
19
+ p as default
20
20
  };