@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.
- package/README.md +0 -52
- package/dist/@types/config/schemas.js +33 -40
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +141 -167
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +11 -16
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +11 -11
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +51 -51
- package/dist/components/organisms/validation/ValidationErrorDrawer.vue.js +3 -3
- package/dist/composables/useExport.js +8 -7
- package/dist/composables/useHtmlCompiler.js +13 -15
- package/dist/composables/useHtmlValidator.js +102 -100
- package/dist/composables/useStripo.js +57 -59
- package/dist/composables/useToaster.js +11 -10
- package/dist/composables/useVersionHistoryApi.js +22 -21
- package/dist/composables/validators/useLiquidValidator.js +26 -24
- package/dist/config/compiler/liquidCompilerRules.js +5 -13
- package/dist/enums/dynamic-content.js +2 -180
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +148 -141
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +53 -53
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +40 -39
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +27 -26
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +33 -32
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +23 -22
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +79 -78
- package/dist/extensions/Blocks/Recommendation/utils/compositionKeys.js +50 -41
- package/dist/extensions/DynamicContent/dynamic-content.js +33 -56
- package/dist/guido.css +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/@types/config/schemas.d.ts +0 -16
- package/dist/src/@types/generic.d.ts +0 -11
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +0 -6
- package/dist/src/enums/dynamic-content.d.ts +0 -21
- package/dist/src/extensions/Blocks/Recommendation/utils/compositionKeys.d.ts +2 -0
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +0 -11
- package/dist/src/stores/config.d.ts +0 -63
- package/dist/src/stores/preview.d.ts +3 -0
- package/dist/src/utils/ampPreviewSanitizer.d.ts +5 -0
- package/dist/src/utils/genericUtil.d.ts +2 -7
- package/dist/src/utils/htmlEscape.d.ts +5 -0
- package/dist/stores/preview.js +21 -15
- package/dist/utils/ampPreviewSanitizer.js +46 -0
- package/dist/utils/genericUtil.js +43 -53
- package/dist/utils/htmlEscape.js +5 -1
- package/package.json +1 -1
- package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.js +0 -34
- package/dist/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue2.js +0 -76
- package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.js +0 -21
- package/dist/components/organisms/dynamic-content/DynamicContentCustomFormat.vue2.js +0 -33
- package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue.js +0 -42
- package/dist/components/organisms/dynamic-content/DynamicContentPicker.vue2.js +0 -216
- package/dist/composables/useDynamicContentFormat.js +0 -10
- package/dist/composables/useInfoBoxPosition.js +0 -16
- package/dist/src/components/organisms/dynamic-content/DynamicContentAooRuleConfig.vue.d.ts +0 -48
- package/dist/src/components/organisms/dynamic-content/DynamicContentCustomFormat.vue.d.ts +0 -44
- package/dist/src/components/organisms/dynamic-content/DynamicContentPicker.vue.d.ts +0 -67
- package/dist/src/composables/useDynamicContentFormat.d.ts +0 -5
- package/dist/src/composables/useInfoBoxPosition.d.ts +0 -24
- package/dist/src/utils/clipboardText.d.ts +0 -1
- package/dist/src/utils/dynamicContentPicker.d.ts +0 -43
- package/dist/src/utils/linkTokenPaste.d.ts +0 -3
- package/dist/src/utils/liquidLinkQuotes.d.ts +0 -4
- package/dist/utils/clipboardText.js +0 -31
- package/dist/utils/dynamicContentPicker.js +0 -88
- package/dist/utils/linkTokenPaste.js +0 -28
- package/dist/utils/liquidLinkQuotes.js +0 -10
|
@@ -1,241 +1,215 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useCortexBlueprintBridge as
|
|
3
|
-
import { useEditorLock as
|
|
4
|
-
import { startEditorOpenMetrics as
|
|
5
|
-
import { provideGuidoActions as
|
|
6
|
-
import { useGuidoStateBridge as
|
|
7
|
-
import { usePartner as
|
|
8
|
-
import { useSaveValidationRollout as
|
|
9
|
-
import { useStripo as
|
|
10
|
-
import { useTimerClone as
|
|
11
|
-
import { useToaster as
|
|
12
|
-
import { useTranslations as
|
|
13
|
-
import { migrate as
|
|
14
|
-
import { ModuleFolderDefaults as
|
|
15
|
-
import { RIBBON_SELECTOR as
|
|
16
|
-
import { ToasterTypeOptions as
|
|
17
|
-
import { useRecommendationExtensionStore as
|
|
18
|
-
import { disposeUnsubscribeListeners as
|
|
19
|
-
import { disposeDisplayConditionRequest as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
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(
|
|
52
|
-
const
|
|
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
|
-
),
|
|
50
|
+
), X = a(
|
|
55
51
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
56
|
-
),
|
|
52
|
+
), Y = a(
|
|
57
53
|
() => import("./organisms/extensions/recommendation/AssignStrategyDrawer.vue.js")
|
|
58
|
-
),
|
|
54
|
+
), Z = a(
|
|
59
55
|
() => import("./organisms/extensions/recommendation/RemoveStrategyModal.vue.js")
|
|
60
|
-
),
|
|
56
|
+
), ee = a(
|
|
61
57
|
() => import("./organisms/display-conditions/DisplayConditionsHost.vue.js")
|
|
62
|
-
),
|
|
58
|
+
), D = W(), te = a(
|
|
63
59
|
() => import("./organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js")
|
|
64
|
-
),
|
|
60
|
+
), oe = a(
|
|
65
61
|
() => import("./organisms/unsubscribe/LegacyUnsubscribeConvertedModal.vue.js")
|
|
66
|
-
),
|
|
62
|
+
), ne = a(
|
|
67
63
|
() => import("./organisms/dynamic-content/AmbiguousDynamicContentModal.vue.js")
|
|
68
|
-
),
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
var
|
|
72
|
-
if (
|
|
73
|
-
console.debug("guido:save:silent:blocked", { isVersionHistoryOpen: !0 }),
|
|
74
|
-
type:
|
|
75
|
-
message:
|
|
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 (
|
|
80
|
-
},
|
|
81
|
-
|
|
75
|
+
return (t = D.value) == null ? void 0 : t.saveSilent();
|
|
76
|
+
}, I = (t) => {
|
|
77
|
+
d.loadingStatus = t;
|
|
82
78
|
};
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
var
|
|
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: ((
|
|
92
|
-
defaultModulesFolderName: ((
|
|
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:
|
|
95
|
-
let
|
|
96
|
-
const { getDefaultTemplate:
|
|
97
|
-
var
|
|
98
|
-
return !((
|
|
99
|
-
}),
|
|
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
|
-
),
|
|
102
|
-
() => !!
|
|
97
|
+
), ue = l(
|
|
98
|
+
() => !!z().recommendationConfigs.strategyId
|
|
103
99
|
);
|
|
104
|
-
|
|
100
|
+
Te({
|
|
105
101
|
onBack: () => {
|
|
106
|
-
console.debug("guido:back"),
|
|
102
|
+
console.debug("guido:back"), i("back");
|
|
107
103
|
},
|
|
108
104
|
onSaveStart: () => {
|
|
109
|
-
console.debug("guido:save:start"),
|
|
105
|
+
console.debug("guido:save:start"), i("save:start");
|
|
110
106
|
},
|
|
111
|
-
onSaveComplete: (
|
|
112
|
-
const
|
|
113
|
-
console.debug("guido:save:complete",
|
|
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"),
|
|
112
|
+
console.debug("guido:test-email:click"), i("test-email:click");
|
|
117
113
|
}
|
|
118
114
|
});
|
|
119
|
-
const
|
|
120
|
-
console.debug("dynamic-content:close",
|
|
121
|
-
},
|
|
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
|
-
|
|
125
|
-
|
|
120
|
+
$(() => p.value, () => {
|
|
121
|
+
i("on-change", p.value);
|
|
126
122
|
});
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
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
|
|
154
|
-
const
|
|
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
|
-
|
|
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(
|
|
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
|
|
169
|
-
|
|
170
|
-
const
|
|
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:
|
|
146
|
+
campaignUrls: e == null ? void 0 : e.recommendationCampaignUrls,
|
|
173
147
|
rrsEnabled: o.isFeatureEnabled("reusableRecommendationStrategy")
|
|
174
|
-
},
|
|
148
|
+
}, ye = {
|
|
175
149
|
itemsPriceFormatting: o.isFeatureEnabled("itemsPriceFormatting")
|
|
176
|
-
},
|
|
150
|
+
}, V = (ve) => r.timed(
|
|
177
151
|
"migration",
|
|
178
|
-
() =>
|
|
152
|
+
() => Ue(ve, pe, fe, ye)
|
|
179
153
|
);
|
|
180
|
-
let
|
|
181
|
-
html:
|
|
182
|
-
css:
|
|
154
|
+
let n = {
|
|
155
|
+
html: s && await V(s),
|
|
156
|
+
css: u
|
|
183
157
|
};
|
|
184
|
-
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
preselectedDynamicContentList:
|
|
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"),
|
|
164
|
+
console.debug("guido:ready"), i("ready");
|
|
191
165
|
}
|
|
192
166
|
};
|
|
193
|
-
|
|
194
|
-
} catch (
|
|
195
|
-
console.error("Failed to initialize Stripo editor:",
|
|
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
|
|
199
|
-
var
|
|
200
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"),
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
203
|
-
await
|
|
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
|
|
206
|
-
|
|
179
|
+
const s = $(() => c.ready, (u) => {
|
|
180
|
+
u && (s(), E());
|
|
207
181
|
});
|
|
208
182
|
}
|
|
209
|
-
document.addEventListener("dynamic-content:open",
|
|
210
|
-
}),
|
|
211
|
-
if (
|
|
212
|
-
|
|
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
|
|
215
|
-
|
|
216
|
-
} catch (
|
|
217
|
-
console.debug("Failed to close the editor readiness gate on unmount",
|
|
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
|
-
|
|
221
|
-
if (
|
|
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
|
-
}),
|
|
202
|
+
}), J({
|
|
229
203
|
dynamicContent: {
|
|
230
|
-
insert:
|
|
231
|
-
close:
|
|
204
|
+
insert: P,
|
|
205
|
+
close: x
|
|
232
206
|
},
|
|
233
|
-
hasChanges:
|
|
234
|
-
saveSilent:
|
|
235
|
-
setLoading:
|
|
236
|
-
}), { __sfc: !0, openMetrics:
|
|
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
|
-
|
|
214
|
+
Vt as default
|
|
241
215
|
};
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from "./DesktopPreview.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var s = this, e = s._self._c,
|
|
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(
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
"
|
|
13
|
+
"f5ff6219"
|
|
19
14
|
);
|
|
20
|
-
const
|
|
15
|
+
const _ = n.exports;
|
|
21
16
|
export {
|
|
22
|
-
|
|
17
|
+
_ as default
|
|
23
18
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./ContentView.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var t = this, s = t._self._c,
|
|
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(
|
|
9
|
-
}, i = [],
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
"
|
|
15
|
+
"a7102458"
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const p = c.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
p as default
|
|
20
20
|
};
|