@useinsider/guido 1.0.2-beta.93e2012 → 1.0.2-beta.94d67e3
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 +1 -31
- package/dist/@types/events.d.ts +0 -6
- package/dist/@types/generic.d.ts +0 -4
- package/dist/components/Guido.vue.d.ts +1 -3
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +62 -73
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +15 -14
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
- package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/components/organisms/header/RightSlot.vue.js +3 -5
- package/dist/components/organisms/header/RightSlot.vue2.js +27 -25
- package/dist/components/organisms/header/ViewOptions.vue.js +4 -4
- package/dist/components/organisms/header/ViewOptions.vue2.js +14 -14
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +23 -21
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +27 -25
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +1 -1
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -36
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +29 -39
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
- package/dist/composables/useCustomInterfaceAppearance.js +18 -22
- package/dist/composables/useHtmlCompiler.js +9 -17
- package/dist/composables/usePreviewMode.js +15 -14
- package/dist/composables/useStripo.js +25 -27
- package/dist/composables/useStripoEventHandler.js +8 -8
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
- package/dist/enums/defaults.d.ts +1 -5
- package/dist/enums/defaults.js +10 -14
- package/dist/guido.css +1 -1
- package/dist/services/onboardingApi.d.ts +2 -2
- package/dist/services/onboardingApi.js +9 -9
- package/dist/static/styles/components/alert-message.css.js +2 -32
- package/dist/static/styles/components/button.css.js +2 -32
- package/dist/static/styles/components/wide-panel.css.js +1 -5
- package/dist/static/styles/customEditorStyle.css.js +0 -6
- package/dist/static/styles/variables.css.js +0 -10
- package/dist/stores/dynamic-content.d.ts +0 -12
- package/dist/stores/dynamic-content.js +6 -7
- package/dist/stores/onboarding.d.ts +592 -133
- package/dist/stores/onboarding.js +55 -38
- package/dist/stores/preview.js +14 -6
- package/dist/utils/genericUtil.js +6 -9
- package/dist/utils/templatePreparation.js +14 -21
- package/package.json +2 -4
- package/dist/composables/useHtmlValidator.d.ts +0 -3
- package/dist/composables/useHtmlValidator.js +0 -120
- package/dist/composables/useRecommendation.d.ts +0 -19
- package/dist/composables/useRecommendation.js +0 -27
- package/dist/composables/useSave.d.ts +0 -4
- package/dist/composables/useSave.js +0 -15
- package/dist/config/compiler/outlookCompilerRules.js +0 -36
- package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
- package/dist/config/compiler/recommendationCompilerRules.js +0 -83
- package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
- package/dist/config/compiler/socialCompilerRules.js +0 -21
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
- package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
- package/dist/enums/html-validator.d.ts +0 -6
- package/dist/enums/html-validator.js +0 -7
- package/dist/enums/recommendation.d.ts +0 -54
- package/dist/enums/recommendation.js +0 -56
- package/dist/enums/unsubscribe.d.ts +0 -15
- package/dist/enums/unsubscribe.js +0 -17
- package/dist/mock/api/validator.d.ts +0 -2
- package/dist/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- package/dist/stores/recommendation.d.ts +0 -10
- package/dist/stores/recommendation.js +0 -9
- package/dist/stores/unsubscribe.d.ts +0 -8
- package/dist/stores/unsubscribe.js +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "./ViewOptions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
n,
|
|
3
|
+
import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var r = function() {
|
|
5
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return o(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } });
|
|
7
|
+
}, n = [], _ = /* @__PURE__ */ i(
|
|
8
|
+
s,
|
|
10
9
|
r,
|
|
10
|
+
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"421ffc13"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const f = _.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
f as default
|
|
18
18
|
};
|
|
@@ -3,10 +3,10 @@ import { useTranslations as m } from "../../../../composables/useTranslations.js
|
|
|
3
3
|
import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
|
|
4
4
|
import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
|
|
5
5
|
import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
6
|
+
import { InSegments as c } from "@useinsider/design-system-vue";
|
|
7
|
+
const h = /* @__PURE__ */ p({
|
|
8
8
|
__name: "ViewOptions",
|
|
9
|
-
setup(
|
|
9
|
+
setup(u) {
|
|
10
10
|
const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
|
|
11
11
|
{
|
|
12
12
|
text: "",
|
|
@@ -33,9 +33,9 @@ const T = /* @__PURE__ */ p({
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
e();
|
|
36
|
-
}, InSegments:
|
|
36
|
+
}, InSegments: c };
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
h as default
|
|
41
41
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
return
|
|
8
|
-
}, nextButtonClick:
|
|
9
|
-
},
|
|
10
|
-
d,
|
|
1
|
+
import l from "./AMPOnboarding.vue2.js";
|
|
2
|
+
import p from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var u = function() {
|
|
4
|
+
var r, n, e, i, s, a;
|
|
5
|
+
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-amp-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.currentCard) == null ? void 0 : n.bottom, "left-position": (e = t.currentCard) == null ? void 0 : e.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(f) {
|
|
7
|
+
return t.store.close("ampOnboarding");
|
|
8
|
+
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
9
|
+
}, d = [], _ = /* @__PURE__ */ p(
|
|
11
10
|
l,
|
|
12
|
-
|
|
11
|
+
u,
|
|
12
|
+
d,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
15
|
null
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const C = _.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
C as default
|
|
20
20
|
};
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { useOnboardingStore as
|
|
4
|
-
import { InOnboard as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as o, watch as g } from "vue";
|
|
2
|
+
import { useTranslations as f } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useOnboardingStore as b } from "../../../stores/onboarding.js";
|
|
4
|
+
import { InOnboard as C } from "@useinsider/design-system-vue";
|
|
5
|
+
const h = /* @__PURE__ */ l({
|
|
6
6
|
__name: "AMPOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
7
|
+
setup(x) {
|
|
8
|
+
const e = f(), n = b(), r = o(() => `${window.innerWidth / 2 - 110}px`), s = o(() => [
|
|
9
9
|
{
|
|
10
10
|
classes: "guido-amp-onboarding",
|
|
11
11
|
left: r.value,
|
|
12
12
|
top: "70px",
|
|
13
13
|
position: "Top Center",
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
14
|
+
title: e("email-editor.onboarding-amp-title"),
|
|
15
|
+
description: e("email-editor.onboarding-amp-description"),
|
|
16
16
|
imageSource: "",
|
|
17
17
|
backButtonClick: () => {
|
|
18
18
|
},
|
|
19
19
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
21
|
-
nextButtonClick: () => void
|
|
20
|
+
nextButtonText: e("roi-statistics.onboard-modal-finish"),
|
|
21
|
+
nextButtonClick: () => void n.close("ampOnboarding")
|
|
22
22
|
}
|
|
23
|
-
]), d =
|
|
24
|
-
var
|
|
25
|
-
(
|
|
26
|
-
},
|
|
27
|
-
var
|
|
28
|
-
(
|
|
23
|
+
]), d = o(() => n.ampOnboarding.config.length > 0), c = o(() => n.ampOnboarding.isActive), m = o(() => n.ampOnboarding.config), a = o(() => n.ampCurrentCard), p = () => {
|
|
24
|
+
var t, i;
|
|
25
|
+
(i = (t = a.value) == null ? void 0 : t.nextButtonClick) == null || i.call(t);
|
|
26
|
+
}, u = () => {
|
|
27
|
+
var t, i;
|
|
28
|
+
(i = (t = a.value) == null ? void 0 : t.backButtonClick) == null || i.call(t);
|
|
29
29
|
};
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
return g(c, (t) => {
|
|
31
|
+
t && setTimeout(() => {
|
|
32
|
+
n.setConfig("ampOnboarding", s.value);
|
|
33
|
+
}, 500);
|
|
34
|
+
}, { immediate: !0 }), { __sfc: !0, trans: e, store: n, centerLeft: r, onboardingCardsConfig: s, isVisible: d, status: c, config: m, currentCard: a, handleNext: p, handleBack: u, InOnboard: C };
|
|
33
35
|
}
|
|
34
36
|
});
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
h as default
|
|
37
39
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d from "./GenericOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var r,
|
|
6
|
-
var o = this,
|
|
7
|
-
return
|
|
8
|
-
return
|
|
9
|
-
}, nextButtonClick:
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
l,
|
|
3
|
+
import l from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var p = function() {
|
|
5
|
+
var r, e, n, i, s, a;
|
|
6
|
+
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
7
|
+
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (e = t.currentCard) == null ? void 0 : e.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
|
|
8
|
+
return t.onboardingStore.close("genericOnboarding");
|
|
9
|
+
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
+
}, u = [], _ = /* @__PURE__ */ l(
|
|
11
|
+
d,
|
|
13
12
|
p,
|
|
13
|
+
u,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"037dda0b"
|
|
17
17
|
);
|
|
18
|
-
const
|
|
18
|
+
const v = _.exports;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
v as default
|
|
21
21
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { SERVICE_HOVER_SELECTORS as
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import { InOnboard as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as i, watch as f } from "vue";
|
|
2
|
+
import { useTranslations as k } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { SERVICE_HOVER_SELECTORS as B } from "../../../enums/onboarding.js";
|
|
4
|
+
import { useOnboardingStore as C } from "../../../stores/onboarding.js";
|
|
5
|
+
import { InOnboard as T } from "@useinsider/design-system-vue";
|
|
6
|
+
const y = /* @__PURE__ */ m({
|
|
7
7
|
__name: "GenericOnboarding",
|
|
8
|
-
setup(
|
|
9
|
-
const e =
|
|
8
|
+
setup(O) {
|
|
9
|
+
const e = k(), o = C(), s = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
|
|
10
10
|
const t = document.querySelector("ui-editor");
|
|
11
|
-
t != null && t.shadowRoot &&
|
|
12
|
-
var
|
|
13
|
-
const
|
|
14
|
-
|
|
11
|
+
t != null && t.shadowRoot && B.forEach((n) => {
|
|
12
|
+
var u;
|
|
13
|
+
const p = (u = t.shadowRoot) == null ? void 0 : u.querySelector(n);
|
|
14
|
+
p && p.classList.add("hover");
|
|
15
15
|
});
|
|
16
|
-
},
|
|
16
|
+
}, a = i(() => [
|
|
17
17
|
{
|
|
18
18
|
classes: "guido-onboarding-blocks",
|
|
19
19
|
left: "90px",
|
|
@@ -33,8 +33,8 @@ const S = /* @__PURE__ */ l({
|
|
|
33
33
|
{
|
|
34
34
|
classes: "guido-onboarding-stripes",
|
|
35
35
|
right: "450px",
|
|
36
|
-
bottom: "
|
|
37
|
-
position: "Right
|
|
36
|
+
bottom: "50px",
|
|
37
|
+
position: "Right Top",
|
|
38
38
|
title: e("email-editor.onboarding-stripes-title"),
|
|
39
39
|
description: e("email-editor.onboarding-stripes-description"),
|
|
40
40
|
imageSource: "",
|
|
@@ -51,7 +51,7 @@ const S = /* @__PURE__ */ l({
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
classes: "guido-onboarding-preview",
|
|
54
|
-
left:
|
|
54
|
+
left: s.value,
|
|
55
55
|
top: "90px",
|
|
56
56
|
position: "Top Center",
|
|
57
57
|
title: e("email-editor.onboarding-preview-title"),
|
|
@@ -61,23 +61,25 @@ const S = /* @__PURE__ */ l({
|
|
|
61
61
|
backButtonText: e("ds-steps.back"),
|
|
62
62
|
backButtonClick: () => o.previous("genericOnboarding"),
|
|
63
63
|
nextButtonType: "text",
|
|
64
|
-
nextButtonText: e("
|
|
64
|
+
nextButtonText: e("roi-statistics.onboard-modal-finish"),
|
|
65
65
|
nextButtonClick: () => {
|
|
66
66
|
o.close("genericOnboarding");
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
]), g = i(() => o.
|
|
69
|
+
]), g = i(() => o.genericOnboarding.config.length > 0), d = i(() => o.genericOnboarding.isActive), l = i(() => o.genericOnboarding.config), r = i(() => o.genericCurrentCard), b = () => {
|
|
70
70
|
var t, n;
|
|
71
|
-
(n = (t =
|
|
72
|
-
},
|
|
71
|
+
(n = (t = r.value) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
|
|
72
|
+
}, x = () => {
|
|
73
73
|
var t, n;
|
|
74
|
-
(n = (t =
|
|
74
|
+
(n = (t = r.value) == null ? void 0 : t.backButtonClick) == null || n.call(t);
|
|
75
75
|
};
|
|
76
|
-
return
|
|
77
|
-
t &&
|
|
78
|
-
|
|
76
|
+
return f(d, (t) => {
|
|
77
|
+
t && setTimeout(() => {
|
|
78
|
+
o.setConfig("genericOnboarding", a.value);
|
|
79
|
+
}, 500);
|
|
80
|
+
}, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: g, status: d, config: l, currentCard: r, handleNext: b, handleBack: x, InOnboard: T };
|
|
79
81
|
}
|
|
80
82
|
});
|
|
81
83
|
export {
|
|
82
|
-
|
|
84
|
+
y as default
|
|
83
85
|
};
|
|
@@ -2,7 +2,7 @@ import s from "./NewVersionPopup.vue2.js";
|
|
|
2
2
|
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, t = e._self._c, o = e._self._setupProxy;
|
|
5
|
-
return o.isVisible ? t(o.WpModal, { attrs: { id: "
|
|
5
|
+
return o.isVisible ? t(o.WpModal, { attrs: { id: "new-version-popup", "close-on-outside-click": !1, "footer-button-options": o.footerButtonOptions, title: o.trans("email-editor.onboarding-title") }, on: { close: o.handleClose, "primary-action": o.handleDiscoverNow, "secondary-action": o.handleRemindLater } }, [t("div", { staticClass: "d-f f-d-c" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n mb-5", attrs: { src: o.onboardingImageSvg } }), t("p", { staticClass: "f-s-2 f-w-400", domProps: { innerHTML: e._s(o.trans("email-editor.onboarding-description")) } })])]) : e._e();
|
|
6
6
|
}, i = [], a = /* @__PURE__ */ n(
|
|
7
7
|
s,
|
|
8
8
|
r,
|
|
@@ -1,43 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePartner as
|
|
1
|
+
import { defineComponent as c, computed as r, onMounted as d } from "vue";
|
|
2
|
+
import { usePartner as f } from "../../../composables/usePartner.js";
|
|
3
3
|
import { useEditorStore as u } from "../../../stores/editor.js";
|
|
4
|
-
import { useOnboardingStore as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
const E = /* @__PURE__ */ g({
|
|
4
|
+
import { useOnboardingStore as g } from "../../../stores/onboarding.js";
|
|
5
|
+
import b from "./AMPOnboarding.vue.js";
|
|
6
|
+
import l from "./GenericOnboarding.vue.js";
|
|
7
|
+
import O from "./NewVersionPopup.vue.js";
|
|
8
|
+
import S from "./TextBlockOnboarding.vue.js";
|
|
9
|
+
import y from "./VersionHistoryOnboarding.vue.js";
|
|
10
|
+
const k = /* @__PURE__ */ c({
|
|
12
11
|
__name: "OnboardingWrapper",
|
|
13
12
|
setup(_) {
|
|
14
|
-
const
|
|
15
|
-
{ type: "newVersionPopup", component:
|
|
16
|
-
{ type: "genericOnboarding", component:
|
|
17
|
-
{ type: "textBlockOnboarding", component:
|
|
18
|
-
{ type: "versionHistoryOnboarding", component:
|
|
19
|
-
{ type: "ampOnboarding", component:
|
|
20
|
-
],
|
|
21
|
-
return
|
|
22
|
-
await
|
|
23
|
-
}), t
|
|
24
|
-
() => r.isVersionHistoryOpen,
|
|
25
|
-
(n, i) => {
|
|
26
|
-
n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
|
|
27
|
-
}
|
|
28
|
-
), t(
|
|
29
|
-
() => s.emailFormat,
|
|
30
|
-
(n, i) => {
|
|
31
|
-
i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
|
|
32
|
-
}
|
|
33
|
-
), t(
|
|
34
|
-
() => r.isPreviewModeOpen,
|
|
35
|
-
(n) => {
|
|
36
|
-
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
37
|
-
}
|
|
38
|
-
), { __sfc: !0, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: f };
|
|
13
|
+
const n = g(), e = u(), { isTestPartner: t } = f(), i = r(() => e.isStripoInitialized), s = r(() => t()), p = [
|
|
14
|
+
{ type: "newVersionPopup", component: O },
|
|
15
|
+
{ type: "genericOnboarding", component: l },
|
|
16
|
+
{ type: "textBlockOnboarding", component: S },
|
|
17
|
+
{ type: "versionHistoryOnboarding", component: y },
|
|
18
|
+
{ type: "ampOnboarding", component: b }
|
|
19
|
+
], a = (o) => s.value || !i.value ? !1 : o === "newVersionPopup" ? n.shouldShowOnboarding(o) : n.isActive(o), m = r(() => p.filter((o) => a(o.type)));
|
|
20
|
+
return d(async () => {
|
|
21
|
+
await n.fetchUserModalState();
|
|
22
|
+
}), { __sfc: !0, onboardingStore: n, editorStore: e, isTestPartner: t, isStripoReady: i, isTestPartnerActive: s, onboardingConfigs: p, shouldShow: a, visibleOnboardings: m };
|
|
39
23
|
}
|
|
40
24
|
});
|
|
41
25
|
export {
|
|
42
|
-
|
|
26
|
+
k as default
|
|
43
27
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import l from "./TextBlockOnboarding.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var e,
|
|
6
|
-
var
|
|
7
|
-
return
|
|
8
|
-
return
|
|
9
|
-
}, nextButtonClick:
|
|
10
|
-
},
|
|
3
|
+
import p from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var d = function() {
|
|
5
|
+
var e, r, n, i, s, a;
|
|
6
|
+
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
7
|
+
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-text-block-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.currentCard) == null ? void 0 : e.classes, attrs: { id: "guido-text-block-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = t.currentCard) == null ? void 0 : r.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
|
|
8
|
+
return t.store.close("textBlockOnboarding");
|
|
9
|
+
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
10
|
+
}, u = [], _ = /* @__PURE__ */ p(
|
|
11
11
|
l,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
d,
|
|
13
|
+
u,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"ff363cd1"
|
|
17
17
|
);
|
|
18
|
-
const
|
|
18
|
+
const k = _.exports;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
k as default
|
|
21
21
|
};
|
|
@@ -1,35 +1,23 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { useOnboardingStore as
|
|
4
|
-
import { InOnboard as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as i, watch as g } from "vue";
|
|
2
|
+
import { useTranslations as b } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useOnboardingStore as p } from "../../../stores/onboarding.js";
|
|
4
|
+
import { InOnboard as k } from "@useinsider/design-system-vue";
|
|
5
|
+
const T = /* @__PURE__ */ u({
|
|
6
6
|
__name: "TextBlockOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
const n = window.innerHeight - 128, r = Math.max(90, n * 0.15), s = Math.max(490, n * 0.71), d = 200, g = 40;
|
|
10
|
-
return {
|
|
11
|
-
settings: {
|
|
12
|
-
top: `${r}px`,
|
|
13
|
-
position: r + d + g > n ? "Right Bottom" : "Right Top"
|
|
14
|
-
},
|
|
15
|
-
dynamic: {
|
|
16
|
-
top: `${s}px`,
|
|
17
|
-
position: s + d + g > n ? "Right Bottom" : "Right Top"
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}), c = a(() => [
|
|
7
|
+
setup(m) {
|
|
8
|
+
const n = b(), o = p(), r = i(() => [
|
|
21
9
|
{
|
|
22
10
|
classes: "guido-text-block-onboarding-settings",
|
|
23
11
|
right: "450px",
|
|
24
|
-
top:
|
|
25
|
-
position:
|
|
26
|
-
title:
|
|
27
|
-
description:
|
|
12
|
+
top: "90px",
|
|
13
|
+
position: "Right Top",
|
|
14
|
+
title: n("email-editor.onboarding-text-block-title"),
|
|
15
|
+
description: n("email-editor.onboarding-text-block-description"),
|
|
28
16
|
imageSource: "",
|
|
29
17
|
backButtonClick: () => {
|
|
30
18
|
},
|
|
31
19
|
nextButtonType: "text",
|
|
32
|
-
nextButtonText:
|
|
20
|
+
nextButtonText: n("products.next"),
|
|
33
21
|
nextButtonClick: () => {
|
|
34
22
|
o.next("textBlockOnboarding");
|
|
35
23
|
}
|
|
@@ -37,38 +25,40 @@ const y = /* @__PURE__ */ u({
|
|
|
37
25
|
{
|
|
38
26
|
classes: "guido-text-block-onboarding-dynamic",
|
|
39
27
|
right: "450px",
|
|
40
|
-
top:
|
|
41
|
-
position:
|
|
42
|
-
title:
|
|
43
|
-
description:
|
|
28
|
+
top: "594px",
|
|
29
|
+
position: "Right Top",
|
|
30
|
+
title: n("email-editor.onboarding-dynamic-content-title"),
|
|
31
|
+
description: n("email-editor.onboarding-dynamic-content-description"),
|
|
44
32
|
imageSource: "",
|
|
45
33
|
backButtonType: "text",
|
|
46
|
-
backButtonText:
|
|
34
|
+
backButtonText: n("ds-steps.back"),
|
|
47
35
|
backButtonClick: () => {
|
|
48
36
|
o.previous("textBlockOnboarding");
|
|
49
37
|
},
|
|
50
38
|
nextButtonType: "text",
|
|
51
|
-
nextButtonText:
|
|
39
|
+
nextButtonText: n("roi-statistics.onboard-modal-finish"),
|
|
52
40
|
nextButtonClick: () => {
|
|
53
41
|
o.close("textBlockOnboarding");
|
|
54
42
|
}
|
|
55
43
|
}
|
|
56
|
-
]),
|
|
57
|
-
var t,
|
|
58
|
-
(
|
|
44
|
+
]), a = i(() => o.textBlockOnboarding.config.length), s = i(() => o.textBlockOnboarding.isActive), d = i(() => o.textBlockOnboarding.config), c = i(() => o.textBlockCurrentCard), l = () => {
|
|
45
|
+
var t, e;
|
|
46
|
+
(e = (t = c.value) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
|
|
59
47
|
}, x = () => {
|
|
60
|
-
var t,
|
|
61
|
-
(
|
|
48
|
+
var t, e;
|
|
49
|
+
(e = (t = c.value) == null ? void 0 : t.backButtonClick) == null || e.call(t);
|
|
62
50
|
};
|
|
63
|
-
return
|
|
51
|
+
return g(
|
|
64
52
|
() => o.isActive("textBlockOnboarding"),
|
|
65
53
|
(t) => {
|
|
66
|
-
t &&
|
|
54
|
+
t && setTimeout(() => {
|
|
55
|
+
o.setConfig("textBlockOnboarding", r.value);
|
|
56
|
+
}, 500);
|
|
67
57
|
},
|
|
68
58
|
{ immediate: !0 }
|
|
69
|
-
), { __sfc: !0, trans:
|
|
59
|
+
), { __sfc: !0, trans: n, store: o, onboardingCardsConfig: r, isVisible: a, status: s, config: d, currentCard: c, handleNext: l, handleBack: x, InOnboard: k };
|
|
70
60
|
}
|
|
71
61
|
});
|
|
72
62
|
export {
|
|
73
|
-
|
|
63
|
+
T as default
|
|
74
64
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var n,
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
return
|
|
8
|
-
}, nextButtonClick:
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import l from "./VersionHistoryOnboarding.vue2.js";
|
|
2
|
+
import u from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var p = function() {
|
|
4
|
+
var r, n, e, i, s, a;
|
|
5
|
+
var o = this, c = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-version-history-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-version-history-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.currentCard) == null ? void 0 : n.bottom, "left-position": (e = t.currentCard) == null ? void 0 : e.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
|
|
7
|
+
return t.store.close("versionHistoryOnboarding");
|
|
8
|
+
}, nextButtonClick: t.handleNext } }) : o._e();
|
|
9
|
+
}, d = [], _ = /* @__PURE__ */ u(
|
|
10
|
+
l,
|
|
11
|
+
p,
|
|
12
|
+
d,
|
|
13
13
|
!1,
|
|
14
14
|
null,
|
|
15
15
|
null
|
|
16
16
|
);
|
|
17
|
-
const
|
|
17
|
+
const v = _.exports;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
v as default
|
|
20
20
|
};
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { useOnboardingStore as
|
|
4
|
-
import { InOnboard as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as i, watch as m } from "vue";
|
|
2
|
+
import { useTranslations as p } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useOnboardingStore as f } from "../../../stores/onboarding.js";
|
|
4
|
+
import { InOnboard as b } from "@useinsider/design-system-vue";
|
|
5
|
+
const O = /* @__PURE__ */ g({
|
|
6
6
|
__name: "VersionHistoryOnboarding",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
7
|
+
setup(v) {
|
|
8
|
+
const r = p(), t = f(), s = i(() => [
|
|
9
9
|
{
|
|
10
10
|
classes: "guido-version-history-onboarding",
|
|
11
11
|
left: "409px",
|
|
12
12
|
top: "192px",
|
|
13
13
|
position: "Left Top",
|
|
14
|
-
title:
|
|
15
|
-
description:
|
|
14
|
+
title: r("email-editor.onboarding-version-history-title"),
|
|
15
|
+
description: r("email-editor.onboarding-version-history-description"),
|
|
16
16
|
imageSource: "",
|
|
17
17
|
backButtonClick: () => {
|
|
18
18
|
},
|
|
19
19
|
nextButtonType: "text",
|
|
20
|
-
nextButtonText:
|
|
21
|
-
nextButtonClick: () => void
|
|
20
|
+
nextButtonText: r("roi-statistics.onboard-modal-finish"),
|
|
21
|
+
nextButtonClick: () => void t.close("versionHistoryOnboarding")
|
|
22
22
|
}
|
|
23
|
-
]),
|
|
24
|
-
var o,
|
|
25
|
-
(
|
|
26
|
-
},
|
|
27
|
-
var o,
|
|
28
|
-
(
|
|
23
|
+
]), c = i(() => t.versionHistoryOnboarding.config.length > 0), a = i(() => t.versionHistoryOnboarding.isActive), d = i(() => t.versionHistoryOnboarding.config), e = i(() => t.versionHistoryCurrentCard), u = () => {
|
|
24
|
+
var o, n;
|
|
25
|
+
(n = (o = e.value) == null ? void 0 : o.nextButtonClick) == null || n.call(o);
|
|
26
|
+
}, l = () => {
|
|
27
|
+
var o, n;
|
|
28
|
+
(n = (o = e.value) == null ? void 0 : o.backButtonClick) == null || n.call(o);
|
|
29
29
|
};
|
|
30
|
-
return
|
|
31
|
-
o &&
|
|
32
|
-
|
|
30
|
+
return m(a, (o) => {
|
|
31
|
+
o && setTimeout(() => {
|
|
32
|
+
t.setConfig("versionHistoryOnboarding", s.value);
|
|
33
|
+
}, 500);
|
|
34
|
+
}, { immediate: !0 }), { __sfc: !0, trans: r, store: t, onboardingCardsConfig: s, isVisible: c, status: a, config: d, currentCard: e, handleNext: u, handleBack: l, InOnboard: b };
|
|
33
35
|
}
|
|
34
36
|
});
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
O as default
|
|
37
39
|
};
|