@useinsider/guido 3.18.1-beta.d82285c → 3.18.1-beta.db1e41e
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/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +1 -1
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +25 -27
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +3 -3
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +21 -20
- package/dist/composables/useCustomInterfaceAppearance.js +56 -48
- package/dist/composables/useStripo.js +30 -30
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +57 -52
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +81 -62
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +46 -31
- package/dist/guido.css +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +8 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +27 -2
- package/dist/static/styles/components/recommendation-strategy.css.js +23 -8
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as E, defineAsyncComponent as
|
|
1
|
+
import { defineComponent as E, defineAsyncComponent as y, ref as f, computed as c, watch as O } from "vue";
|
|
2
2
|
import "@useinsider/design-system-organisms/style";
|
|
3
3
|
import { useToaster as h } from "../../../../composables/useToaster.js";
|
|
4
4
|
import { useTranslations as A } from "../../../../composables/useTranslations.js";
|
|
5
5
|
import { DOTTED_DATE_LOCALE as I } from "../../../../enums/date.js";
|
|
6
6
|
import { URLS as C } from "../../../../enums/extensions/recommendationBlock.js";
|
|
7
|
-
import { ToasterTypeOptions as
|
|
7
|
+
import { ToasterTypeOptions as m } from "../../../../enums/toaster.js";
|
|
8
8
|
import { useRecommendationExtensionStore as B } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
9
9
|
import b from "./StrategyInfoBoxContent.vue.js";
|
|
10
10
|
import { formatShortDate as N } from "../../../../utils/dateUtil.js";
|
|
@@ -14,24 +14,22 @@ import { InSkeleton as P } from "@useinsider/design-system-vue";
|
|
|
14
14
|
const Y = /* @__PURE__ */ E({
|
|
15
15
|
__name: "AssignStrategyDrawer",
|
|
16
16
|
setup(R) {
|
|
17
|
-
const g = () => import("@useinsider/design-system-organisms"),
|
|
17
|
+
const g = () => import("@useinsider/design-system-organisms"), d = (t, e) => ({
|
|
18
18
|
render: (a) => a(P, { props: { sizing: { width: t, height: e } } })
|
|
19
|
-
}), T =
|
|
19
|
+
}), T = y({
|
|
20
20
|
loader: async () => (await g()).OrgStrategyDetailModal,
|
|
21
|
-
loadingComponent:
|
|
21
|
+
loadingComponent: d(480, 240),
|
|
22
22
|
delay: 0
|
|
23
|
-
}), _ =
|
|
24
|
-
loader: async () => (await g()).OrgStrategyDropdown
|
|
25
|
-
|
|
26
|
-
delay: 0
|
|
27
|
-
}), o = "guido-edit-strategy-", s = A(), r = B(), { showToaster: n } = h(), i = f(null), l = f(!1), D = c(() => r.assignStrategyDrawerStatus ? s("email-editor.assign-strategy-description", { url: C.RECOMMENDATION_STRATEGIES_PANEL_PATH }) : "");
|
|
23
|
+
}), _ = y({
|
|
24
|
+
loader: async () => (await g()).OrgStrategyDropdown
|
|
25
|
+
}), n = "guido-edit-strategy-", s = A(), r = B(), { showToaster: i } = h(), o = f(null), l = f(!1), D = c(() => r.assignStrategyDrawerStatus ? s("email-editor.assign-strategy-description", { url: C.RECOMMENDATION_STRATEGIES_PANEL_PATH }) : "");
|
|
28
26
|
O(() => r.assignStrategyDrawerStatus, (t) => {
|
|
29
27
|
if (!t)
|
|
30
28
|
return;
|
|
31
29
|
const { strategyId: e } = r.recommendationConfigs;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
type:
|
|
30
|
+
o.value = e || null, l.value = !1, r.fetchStrategies().catch(() => {
|
|
31
|
+
i({
|
|
32
|
+
type: m.Error,
|
|
35
33
|
message: s("discovery-strategy.error-description")
|
|
36
34
|
});
|
|
37
35
|
});
|
|
@@ -42,7 +40,7 @@ const Y = /* @__PURE__ */ E({
|
|
|
42
40
|
return "";
|
|
43
41
|
const a = N(e, I);
|
|
44
42
|
return s("recommendation-strategy.last-updated-on", { value: a });
|
|
45
|
-
},
|
|
43
|
+
}, v = c(() => r.strategies.map((t) => ({
|
|
46
44
|
text: t.name,
|
|
47
45
|
value: t.strategy_id,
|
|
48
46
|
infoBoxProps: {
|
|
@@ -58,7 +56,7 @@ const Y = /* @__PURE__ */ E({
|
|
|
58
56
|
// The info box drops the option's value/text, so the id is the only channel
|
|
59
57
|
// that can carry the strategy back to the click handler.
|
|
60
58
|
buttonOptions: [{
|
|
61
|
-
id: `${
|
|
59
|
+
id: `${n}${t.strategy_id}`,
|
|
62
60
|
text: s("eureka.edit-strategy"),
|
|
63
61
|
type: "text",
|
|
64
62
|
// Resolved from Guido's own public/sprite.svg by InIcons; an unknown name would
|
|
@@ -66,12 +64,12 @@ const Y = /* @__PURE__ */ E({
|
|
|
66
64
|
icon: "line-open-website"
|
|
67
65
|
}]
|
|
68
66
|
}
|
|
69
|
-
}))),
|
|
67
|
+
}))), w = (t) => {
|
|
70
68
|
var a;
|
|
71
|
-
const e = (a = t == null ? void 0 : t.id) != null && a.startsWith(
|
|
72
|
-
e && r.openStrategyEdit(e);
|
|
73
|
-
},
|
|
74
|
-
const t = r.strategies.find((e) => String(e.strategy_id) === String(
|
|
69
|
+
const e = (a = t == null ? void 0 : t.id) != null && a.startsWith(n) ? t.id.slice(n.length) : "";
|
|
70
|
+
e && (String(o.value ?? "") === e && (o.value = null), r.recommendationConfigs.strategyId === e && r.removeStrategy(), r.openStrategyEdit(e));
|
|
71
|
+
}, u = c(() => {
|
|
72
|
+
const t = r.strategies.find((e) => String(e.strategy_id) === String(o.value ?? ""));
|
|
75
73
|
return t ? { ...t, fallback_config: null } : null;
|
|
76
74
|
}), x = c(() => ({
|
|
77
75
|
primaryButton: {
|
|
@@ -85,10 +83,10 @@ const Y = /* @__PURE__ */ E({
|
|
|
85
83
|
labelText: s("products.cancel")
|
|
86
84
|
}
|
|
87
85
|
}));
|
|
88
|
-
return { __sfc: !0, loadOrganisms: g, skeleton:
|
|
86
|
+
return { __sfc: !0, loadOrganisms: g, skeleton: d, OrgStrategyDetailModal: T, OrgStrategyDropdown: _, EDIT_BUTTON_ID_PREFIX: n, trans: s, store: r, showToaster: i, selectedStrategyId: o, showSelectionError: l, drawerDescription: D, lastUpdatedText: p, strategyOptions: v, onInfoBoxButtonClick: w, selectedStrategy: u, footerButtonGroupOptions: x, closeDrawer: () => {
|
|
89
87
|
r.closeAssignStrategyDrawer();
|
|
90
88
|
}, assignStrategy: async () => {
|
|
91
|
-
const t =
|
|
89
|
+
const t = u.value;
|
|
92
90
|
if (!t) {
|
|
93
91
|
l.value = !0;
|
|
94
92
|
return;
|
|
@@ -100,18 +98,18 @@ const Y = /* @__PURE__ */ E({
|
|
|
100
98
|
console.error("[AssignStrategyDrawer] resolveStrategyUrlTemplate failed", a);
|
|
101
99
|
}
|
|
102
100
|
if (!e) {
|
|
103
|
-
|
|
104
|
-
type:
|
|
101
|
+
i({
|
|
102
|
+
type: m.Error,
|
|
105
103
|
message: s("email-editor.strategy-assign-failed", { strategyName: t.name })
|
|
106
104
|
});
|
|
107
105
|
return;
|
|
108
106
|
}
|
|
109
|
-
r.assignStrategy(t),
|
|
110
|
-
type:
|
|
107
|
+
r.assignStrategy(t), i({
|
|
108
|
+
type: m.Success,
|
|
111
109
|
message: s("email-editor.strategy-assigned-success", { strategyName: t.name })
|
|
112
110
|
}), r.closeAssignStrategyDrawer();
|
|
113
111
|
}, onSelect: (t) => {
|
|
114
|
-
|
|
112
|
+
o.value = t.value, l.value = !1;
|
|
115
113
|
} };
|
|
116
114
|
}
|
|
117
115
|
});
|
|
@@ -2,9 +2,9 @@ import d from "./RecommendationStrategyOnboarding.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import g from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var m = function() {
|
|
5
|
-
var e, n, r,
|
|
5
|
+
var e, n, r, i, a;
|
|
6
6
|
var t = this, s = t._self._c, o = t._self._setupProxy;
|
|
7
|
-
return o.isVisible ? s(o.InOnboard, { key: "guido__recommendation-strategy-onboard", staticClass: "w-21-s p-a z-11", class: (e = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__recommendation-strategy-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "left-position": (n = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : n.left, "pages-config": o.onboardingStore.onboardings.recommendationStrategyOnboarding.config, "pointer-position": (r = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : r.position, "right-position": (
|
|
7
|
+
return o.isVisible ? s(o.InOnboard, { key: "guido__recommendation-strategy-onboard", staticClass: "w-21-s p-a z-11", class: (e = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__recommendation-strategy-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "left-position": (n = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : n.left, "pages-config": o.onboardingStore.onboardings.recommendationStrategyOnboarding.config, "pointer-position": (r = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : r.position, "right-position": (i = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : i.right, "top-position": (a = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : a.top }, on: { close: function(p) {
|
|
8
8
|
return o.onboardingStore.close(o.ONBOARDING_TYPE);
|
|
9
9
|
}, nextButtonClick: o.handleNext } }) : t._e();
|
|
10
10
|
}, c = [], _ = /* @__PURE__ */ g(
|
|
@@ -13,7 +13,7 @@ var m = function() {
|
|
|
13
13
|
c,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
|
-
"
|
|
16
|
+
"ec2027ff"
|
|
17
17
|
);
|
|
18
18
|
const S = _.exports;
|
|
19
19
|
export {
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRibbonOffset as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { ACADEMY_LINKS as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { defineComponent as g, computed as p, watch as b } from "vue";
|
|
2
|
+
import { useRibbonOffset as u } from "../../../composables/useRibbonOffset.js";
|
|
3
|
+
import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { ACADEMY_LINKS as f } from "../../../enums/academy.js";
|
|
5
|
+
import { useRecommendationExtensionStore as O } from "../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
6
|
+
import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
|
|
7
|
+
import { InOnboard as y } from "@useinsider/design-system-vue";
|
|
8
|
+
const h = /* @__PURE__ */ g({
|
|
8
9
|
__name: "RecommendationStrategyOnboarding",
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
10
|
+
setup(C) {
|
|
11
|
+
const n = "recommendationStrategyOnboarding", e = l(), t = _(), i = O(), { getTopPosition: r } = u(), a = `<a href="${f.EMAIL_RECOMMENDATION_BLOCK}" target="_blank" rel="noopener noreferrer">${e("action-builder.visit-academy")}</a>`, m = () => [
|
|
11
12
|
{
|
|
12
13
|
classes: "guido-recommendation-strategy-onboarding",
|
|
13
14
|
// Sits in the gap left of the settings panel and points at the strategy section, which
|
|
14
15
|
// starts 208px down: the panel header and its tab row are fixed chrome above it.
|
|
15
16
|
right: "426px",
|
|
16
|
-
top:
|
|
17
|
+
top: r(208),
|
|
17
18
|
position: "Right Top",
|
|
18
|
-
title:
|
|
19
|
-
description:
|
|
20
|
-
academyLink:
|
|
19
|
+
title: e("email-editor.onboarding-recommendation-strategy-title"),
|
|
20
|
+
description: e("email-editor.onboarding-recommendation-strategy-description", {
|
|
21
|
+
academyLink: a
|
|
21
22
|
}),
|
|
22
23
|
imageSource: "",
|
|
23
24
|
backButtonClick: () => {
|
|
24
25
|
},
|
|
25
26
|
nextButtonType: "text",
|
|
26
|
-
nextButtonText:
|
|
27
|
+
nextButtonText: e("action-builder.ok"),
|
|
27
28
|
nextButtonClick: () => {
|
|
28
|
-
t.close(
|
|
29
|
+
t.close(n);
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
],
|
|
32
|
+
], c = p(() => i.strategyPanelOpen && t.onboardings.recommendationStrategyOnboarding.config.length > 0 && t.onboardings.recommendationStrategyOnboarding.isActive), d = () => {
|
|
32
33
|
var o, s;
|
|
33
34
|
(s = (o = t.getRecommendationStrategyCurrentCard) == null ? void 0 : o.nextButtonClick) == null || s.call(o);
|
|
34
35
|
};
|
|
35
36
|
return b(
|
|
36
|
-
() => t.isActive(
|
|
37
|
+
() => t.isActive(n),
|
|
37
38
|
(o) => {
|
|
38
|
-
o && t.setConfig(
|
|
39
|
+
o && t.setConfig(n, m());
|
|
39
40
|
},
|
|
40
41
|
{ immediate: !0 }
|
|
41
|
-
), { __sfc: !0, ONBOARDING_TYPE:
|
|
42
|
+
), { __sfc: !0, ONBOARDING_TYPE: n, trans: e, onboardingStore: t, recommendationStore: i, getTopPosition: r, academyLink: a, buildOnboardingCards: m, isVisible: c, handleNext: d, InOnboard: y };
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
h as default
|
|
46
47
|
};
|
|
@@ -1,67 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import p from "../static/assets/icons/line-change.svg.js";
|
|
2
|
+
import s from "../static/assets/icons/line-delete.svg.js";
|
|
3
|
+
import a from "../static/assets/icons/line-plus.svg.js";
|
|
4
|
+
import c from "../static/styles/base.css.js";
|
|
5
|
+
import f from "../static/styles/components/alert-message.css.js";
|
|
6
6
|
import C from "../static/styles/components/amp-block.css.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
function r(
|
|
24
|
-
return `--guido-icon-${
|
|
7
|
+
import l from "../static/styles/components/base-input.css.js";
|
|
8
|
+
import d from "../static/styles/components/button-group.css.js";
|
|
9
|
+
import u from "../static/styles/components/button.css.js";
|
|
10
|
+
import h from "../static/styles/components/combobox.css.js";
|
|
11
|
+
import g from "../static/styles/components/counter.css.js";
|
|
12
|
+
import w from "../static/styles/components/dropdown-menu.css.js";
|
|
13
|
+
import y from "../static/styles/components/loader.css.js";
|
|
14
|
+
import I from "../static/styles/components/narrow-panel.css.js";
|
|
15
|
+
import A from "../static/styles/components/popup.css.js";
|
|
16
|
+
import b from "../static/styles/components/recommendation-strategy.css.js";
|
|
17
|
+
import B from "../static/styles/components/switcher.css.js";
|
|
18
|
+
import D from "../static/styles/components/tabs.css.js";
|
|
19
|
+
import $ from "../static/styles/components/tools.css.js";
|
|
20
|
+
import P from "../static/styles/components/version-history.css.js";
|
|
21
|
+
import R from "../static/styles/components/wide-panel.css.js";
|
|
22
|
+
import T from "../static/styles/variables.css.js";
|
|
23
|
+
function r(S, o) {
|
|
24
|
+
return `--guido-icon-${S}: url("data:image/svg+xml,${encodeURIComponent(o.trim())}");`;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
${r("line-change",
|
|
28
|
-
${r("line-delete",
|
|
29
|
-
${r("line-plus",
|
|
30
|
-
}`,
|
|
31
|
-
|
|
26
|
+
const x = `:host {
|
|
27
|
+
${r("line-change", p)}
|
|
28
|
+
${r("line-delete", s)}
|
|
29
|
+
${r("line-plus", a)}
|
|
30
|
+
}`, M = [
|
|
31
|
+
T,
|
|
32
32
|
// Must be on top
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
x,
|
|
34
|
+
c,
|
|
35
35
|
// Must be on top
|
|
36
|
-
s,
|
|
37
|
-
C,
|
|
38
|
-
a,
|
|
39
36
|
f,
|
|
40
|
-
|
|
41
|
-
u,
|
|
37
|
+
C,
|
|
42
38
|
l,
|
|
43
39
|
d,
|
|
40
|
+
u,
|
|
44
41
|
h,
|
|
45
42
|
g,
|
|
46
|
-
|
|
43
|
+
w,
|
|
47
44
|
y,
|
|
48
|
-
|
|
45
|
+
I,
|
|
46
|
+
A,
|
|
49
47
|
B,
|
|
48
|
+
D,
|
|
50
49
|
$,
|
|
51
50
|
P,
|
|
52
|
-
|
|
51
|
+
R,
|
|
52
|
+
b
|
|
53
53
|
// Last: overrides button.css / wide-panel.css defaults
|
|
54
54
|
].join(`
|
|
55
55
|
|
|
56
|
-
`),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const m =
|
|
63
|
-
|
|
56
|
+
`), O = 3e4;
|
|
57
|
+
let e = null;
|
|
58
|
+
function V() {
|
|
59
|
+
return e || (e = new CSSStyleSheet(), e.replaceSync(M)), e;
|
|
60
|
+
}
|
|
61
|
+
const eo = () => ({ importCss: () => {
|
|
62
|
+
const o = V(), i = Date.now() + O, m = () => {
|
|
63
|
+
var n;
|
|
64
|
+
const t = (n = document.querySelector("ui-editor")) == null ? void 0 : n.shadowRoot;
|
|
65
|
+
if (t) {
|
|
66
|
+
t.adoptedStyleSheets.includes(o) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, o]);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
Date.now() < i && requestAnimationFrame(m);
|
|
70
|
+
};
|
|
71
|
+
m();
|
|
64
72
|
} });
|
|
65
73
|
export {
|
|
66
|
-
|
|
74
|
+
eo as useCustomInterfaceAppearance
|
|
67
75
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useBlocksConfig as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { useCustomInterfaceAppearance as
|
|
1
|
+
import { useActionsApi as O } from "./useActionsApi.js";
|
|
2
|
+
import { useBlocksConfig as q } from "./useBlocksConfig.js";
|
|
3
|
+
import { useConfig as H } from "./useConfig.js";
|
|
4
|
+
import { useCustomInterfaceAppearance as w } from "./useCustomInterfaceAppearance.js";
|
|
5
5
|
import { useFullStoryBridge as N } from "./useFullStoryBridge.js";
|
|
6
6
|
import { useModuleRepair as j } from "./useModuleRepair.js";
|
|
7
7
|
import { useStripoEventHandler as z } from "./useStripoEventHandler.js";
|
|
8
8
|
import { useStripoNotifications as $ } from "./useStripoNotifications.js";
|
|
9
9
|
import { useToaster as G } from "./useToaster.js";
|
|
10
10
|
import { localePatch as J } from "../config/i18n/index.js";
|
|
11
|
-
import { en as
|
|
11
|
+
import { en as b } from "../config/i18n/en/index.js";
|
|
12
12
|
import { ToasterTypeOptions as X } from "../enums/toaster.js";
|
|
13
13
|
import { useStripoApi as K } from "../services/stripoApi.js";
|
|
14
14
|
import Q from "../static/styles/customEditorStyle.css.js";
|
|
15
|
-
import { useEditorStore as
|
|
15
|
+
import { useEditorStore as k } from "../stores/editor.js";
|
|
16
16
|
import { buildMergeTagEntries as W, flattenDynamicContentList as Y } from "../utils/genericUtil.js";
|
|
17
17
|
import Z from "../package.json.js";
|
|
18
18
|
let n = null;
|
|
19
|
-
const
|
|
20
|
-
const { features: c, template: u, isFeatureEnabled: m } =
|
|
19
|
+
const he = () => {
|
|
20
|
+
const { features: c, template: u, isFeatureEnabled: m } = H(), { handleError: p, showToaster: B } = G(), { getToken: M, getCustomFonts: T, getSyncModulesStatus: v } = K(), { handleEvent: F } = z(), { handleModuleAdd: A } = j(), { getStripoBlocksConfig: V } = q(), { getStripoNotifications: _ } = $(), f = () => n || (n = new Promise((i, s) => {
|
|
21
21
|
var d;
|
|
22
22
|
if (document.getElementById("UiEditorScript")) {
|
|
23
23
|
i();
|
|
@@ -29,16 +29,16 @@ const Ce = () => {
|
|
|
29
29
|
}, document.body.appendChild(e);
|
|
30
30
|
}), n.catch(() => {
|
|
31
31
|
n = null;
|
|
32
|
-
}), n),
|
|
32
|
+
}), n), D = async (i, s, o, a = [], r = !1) => {
|
|
33
33
|
var y, E, h, C;
|
|
34
|
-
const e =
|
|
35
|
-
await window.UIEditor.initEditor(
|
|
34
|
+
const e = k(), { html: d, css: R } = i, { baseBlocks: g, extensions: P } = await V(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, U = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, I = !!d || (((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1), x = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
|
|
35
|
+
w().importCss(), await window.UIEditor.initEditor(
|
|
36
36
|
document.querySelector("#guido-editor"),
|
|
37
37
|
{
|
|
38
38
|
metadata: s,
|
|
39
39
|
html: d,
|
|
40
|
-
css:
|
|
41
|
-
forceRecreate:
|
|
40
|
+
css: R,
|
|
41
|
+
forceRecreate: I,
|
|
42
42
|
locale: "en",
|
|
43
43
|
undoButtonSelector: "#guido__undo-button",
|
|
44
44
|
redoButtonSelector: "#guido__redo-button",
|
|
@@ -52,7 +52,7 @@ const Ce = () => {
|
|
|
52
52
|
conditionsEnabled: S,
|
|
53
53
|
customConditionsEnabled: S,
|
|
54
54
|
enableXSSSecurity: !0,
|
|
55
|
-
modulesDisabled:
|
|
55
|
+
modulesDisabled: U,
|
|
56
56
|
syncModulesEnabled: r,
|
|
57
57
|
messageSettingsEnabled: !0,
|
|
58
58
|
displayGmailAnnotations: !0,
|
|
@@ -62,7 +62,7 @@ const Ce = () => {
|
|
|
62
62
|
displayUTM: !1,
|
|
63
63
|
selectElementAfterDrop: !0,
|
|
64
64
|
sameFontSizeForOutlook: !0,
|
|
65
|
-
allowedScriptSourceDomains:
|
|
65
|
+
allowedScriptSourceDomains: x,
|
|
66
66
|
...g ? { baseBlocks: g } : {},
|
|
67
67
|
editorFonts: {
|
|
68
68
|
showDefaultStandardFonts: !0,
|
|
@@ -80,7 +80,7 @@ const Ce = () => {
|
|
|
80
80
|
],
|
|
81
81
|
async onTokenRefreshRequest(t) {
|
|
82
82
|
try {
|
|
83
|
-
const l = await
|
|
83
|
+
const l = await M();
|
|
84
84
|
t(l);
|
|
85
85
|
} catch (l) {
|
|
86
86
|
p(l, "Failed to refresh token");
|
|
@@ -88,8 +88,8 @@ const Ce = () => {
|
|
|
88
88
|
},
|
|
89
89
|
onTemplateLoaded() {
|
|
90
90
|
try {
|
|
91
|
-
const {
|
|
92
|
-
|
|
91
|
+
const { activateCustomViewStyles: t, updateTimerInClonedTemplate: l } = O(), { injectFullStory: L } = N();
|
|
92
|
+
w().importCss(), t(), L(), l(), o.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
|
|
93
93
|
e.hasChanges = !1;
|
|
94
94
|
}, 1e3);
|
|
95
95
|
} catch (t) {
|
|
@@ -108,34 +108,34 @@ const Ce = () => {
|
|
|
108
108
|
onDataChanged() {
|
|
109
109
|
e.hasChanges = !0;
|
|
110
110
|
},
|
|
111
|
-
onEvent:
|
|
112
|
-
onModuleAdd:
|
|
113
|
-
notifications:
|
|
111
|
+
onEvent: F,
|
|
112
|
+
onModuleAdd: A,
|
|
113
|
+
notifications: _(),
|
|
114
114
|
ignoreClickOutsideSelectors: [
|
|
115
115
|
"#guido-dynamic-content-modal",
|
|
116
116
|
".in-on-board-wrapper",
|
|
117
117
|
".in-drawer__container"
|
|
118
118
|
],
|
|
119
|
-
extensions:
|
|
119
|
+
extensions: P,
|
|
120
120
|
localePatch: J
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
};
|
|
124
124
|
return { initPlugin: async (i, s, o) => {
|
|
125
|
-
const a =
|
|
125
|
+
const a = k();
|
|
126
126
|
try {
|
|
127
127
|
await f();
|
|
128
128
|
const [r, e] = await Promise.all([
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
T(),
|
|
130
|
+
v()
|
|
131
131
|
]);
|
|
132
|
-
a.syncModulesEnabled = e, await
|
|
132
|
+
a.syncModulesEnabled = e, await D(i, s, o, r, e);
|
|
133
133
|
} catch {
|
|
134
|
-
a.loadingStatus = !1,
|
|
134
|
+
a.loadingStatus = !1, B({
|
|
135
135
|
type: X.Error,
|
|
136
|
-
message:
|
|
136
|
+
message: b["An error has occurred. Please report the error code to support."],
|
|
137
137
|
actionButton: {
|
|
138
|
-
text:
|
|
138
|
+
text: b["Reload page"],
|
|
139
139
|
onClick: () => window.location.reload()
|
|
140
140
|
}
|
|
141
141
|
});
|
|
@@ -146,5 +146,5 @@ const Ce = () => {
|
|
|
146
146
|
} };
|
|
147
147
|
};
|
|
148
148
|
export {
|
|
149
|
-
|
|
149
|
+
he as useStripo
|
|
150
150
|
};
|