@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.
@@ -15,7 +15,7 @@ var a = function() {
15
15
  n,
16
16
  !1,
17
17
  null,
18
- "3bcefe18"
18
+ "b447f626"
19
19
  );
20
20
  const y = i.exports;
21
21
  export {
@@ -1,10 +1,10 @@
1
- import { defineComponent as E, defineAsyncComponent as u, ref as f, computed as c, watch as O } from "vue";
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 d } from "../../../../enums/toaster.js";
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"), m = (t, e) => ({
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 = u({
19
+ }), T = y({
20
20
  loader: async () => (await g()).OrgStrategyDetailModal,
21
- loadingComponent: m(480, 240),
21
+ loadingComponent: d(480, 240),
22
22
  delay: 0
23
- }), _ = u({
24
- loader: async () => (await g()).OrgStrategyDropdown,
25
- loadingComponent: m(240, 42),
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
- i.value = e || null, l.value = !1, r.fetchStrategies().catch(() => {
33
- n({
34
- type: d.Error,
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
- }, w = c(() => r.strategies.map((t) => ({
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: `${o}${t.strategy_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
- }))), v = (t) => {
67
+ }))), w = (t) => {
70
68
  var a;
71
- const e = (a = t == null ? void 0 : t.id) != null && a.startsWith(o) ? t.id.slice(o.length) : "";
72
- e && r.openStrategyEdit(e);
73
- }, y = c(() => {
74
- const t = r.strategies.find((e) => String(e.strategy_id) === String(i.value ?? ""));
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: m, OrgStrategyDetailModal: T, OrgStrategyDropdown: _, EDIT_BUTTON_ID_PREFIX: o, trans: s, store: r, showToaster: n, selectedStrategyId: i, showSelectionError: l, drawerDescription: D, lastUpdatedText: p, strategyOptions: w, onInfoBoxButtonClick: v, selectedStrategy: y, footerButtonGroupOptions: x, closeDrawer: () => {
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 = y.value;
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
- n({
104
- type: d.Error,
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), n({
110
- type: d.Success,
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
- i.value = t.value, l.value = !1;
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, a, i;
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": (a = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : a.right, "top-position": (i = o.onboardingStore.getRecommendationStrategyCurrentCard) == null ? void 0 : i.top }, on: { close: function(p) {
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
- "1f4a4044"
16
+ "ec2027ff"
17
17
  );
18
18
  const S = _.exports;
19
19
  export {
@@ -1,46 +1,47 @@
1
- import { defineComponent as c, computed as g, watch as b } from "vue";
2
- import { useRibbonOffset as p } from "../../../composables/useRibbonOffset.js";
3
- import { useTranslations as u } from "../../../composables/useTranslations.js";
4
- import { ACADEMY_LINKS as l } from "../../../enums/academy.js";
5
- import { useOnboardingStore as f } from "../../../stores/onboarding.js";
6
- import { InOnboard as O } from "@useinsider/design-system-vue";
7
- const B = /* @__PURE__ */ c({
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 e = "recommendationStrategyOnboarding", n = u(), t = f(), { getTopPosition: i } = p(), r = `<a href="${l.EMAIL_RECOMMENDATION_BLOCK}" target="_blank" rel="noopener noreferrer">${n("action-builder.visit-academy")}</a>`, a = () => [
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: i(208),
17
+ top: r(208),
17
18
  position: "Right Top",
18
- title: n("email-editor.onboarding-recommendation-strategy-title"),
19
- description: n("email-editor.onboarding-recommendation-strategy-description", {
20
- academyLink: r
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: n("action-builder.ok"),
27
+ nextButtonText: e("action-builder.ok"),
27
28
  nextButtonClick: () => {
28
- t.close(e);
29
+ t.close(n);
29
30
  }
30
31
  }
31
- ], m = g(() => t.onboardings.recommendationStrategyOnboarding.config.length > 0 && t.onboardings.recommendationStrategyOnboarding.isActive), d = () => {
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(e),
37
+ () => t.isActive(n),
37
38
  (o) => {
38
- o && t.setConfig(e, a());
39
+ o && t.setConfig(n, m());
39
40
  },
40
41
  { immediate: !0 }
41
- ), { __sfc: !0, ONBOARDING_TYPE: e, trans: n, onboardingStore: t, getTopPosition: i, academyLink: r, buildOnboardingCards: a, isVisible: m, handleNext: d, InOnboard: O };
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
- B as default
46
+ h as default
46
47
  };
@@ -1,67 +1,75 @@
1
- import S from "../static/assets/icons/line-change.svg.js";
2
- import i from "../static/assets/icons/line-delete.svg.js";
3
- import n from "../static/assets/icons/line-plus.svg.js";
4
- import p from "../static/styles/base.css.js";
5
- import s from "../static/styles/components/alert-message.css.js";
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 a from "../static/styles/components/base-input.css.js";
8
- import f from "../static/styles/components/button-group.css.js";
9
- import c from "../static/styles/components/button.css.js";
10
- import u from "../static/styles/components/combobox.css.js";
11
- import l from "../static/styles/components/counter.css.js";
12
- import d from "../static/styles/components/dropdown-menu.css.js";
13
- import h from "../static/styles/components/loader.css.js";
14
- import g from "../static/styles/components/narrow-panel.css.js";
15
- import I from "../static/styles/components/popup.css.js";
16
- import w from "../static/styles/components/recommendation-strategy.css.js";
17
- import y from "../static/styles/components/switcher.css.js";
18
- import b from "../static/styles/components/tabs.css.js";
19
- import B from "../static/styles/components/tools.css.js";
20
- import $ from "../static/styles/components/version-history.css.js";
21
- import P from "../static/styles/components/wide-panel.css.js";
22
- import x from "../static/styles/variables.css.js";
23
- function r(t, o) {
24
- return `--guido-icon-${t}: url("data:image/svg+xml,${encodeURIComponent(o.trim())}");`;
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 A = `:host {
27
- ${r("line-change", S)}
28
- ${r("line-delete", i)}
29
- ${r("line-plus", n)}
30
- }`, R = [
31
- x,
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
- A,
34
- p,
33
+ x,
34
+ c,
35
35
  // Must be on top
36
- s,
37
- C,
38
- a,
39
36
  f,
40
- c,
41
- u,
37
+ C,
42
38
  l,
43
39
  d,
40
+ u,
44
41
  h,
45
42
  g,
46
- I,
43
+ w,
47
44
  y,
48
- b,
45
+ I,
46
+ A,
49
47
  B,
48
+ D,
50
49
  $,
51
50
  P,
52
- w
51
+ R,
52
+ b
53
53
  // Last: overrides button.css / wide-panel.css defaults
54
54
  ].join(`
55
55
 
56
- `), Y = () => ({ importCss: () => {
57
- const o = new CSSStyleSheet();
58
- o.replaceSync(R);
59
- const e = document.querySelector("ui-editor");
60
- if (!e)
61
- return;
62
- const m = e.shadowRoot;
63
- m && (m.adoptedStyleSheets = [o]);
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
- Y as useCustomInterfaceAppearance
74
+ eo as useCustomInterfaceAppearance
67
75
  };
@@ -1,23 +1,23 @@
1
- import { useActionsApi as L } from "./useActionsApi.js";
2
- import { useBlocksConfig as O } from "./useBlocksConfig.js";
3
- import { useConfig as q } from "./useConfig.js";
4
- import { useCustomInterfaceAppearance as H } from "./useCustomInterfaceAppearance.js";
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 w } from "../config/i18n/en/index.js";
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 b } from "../stores/editor.js";
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 Ce = () => {
20
- const { features: c, template: u, isFeatureEnabled: m } = q(), { handleError: p, showToaster: k } = G(), { getToken: B, getCustomFonts: M, getSyncModulesStatus: T } = K(), { handleEvent: v } = z(), { handleModuleAdd: F } = j(), { getStripoBlocksConfig: A } = O(), { getStripoNotifications: V } = $(), f = () => n || (n = new Promise((i, s) => {
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), _ = async (i, s, o, a = [], r = !1) => {
32
+ }), n), D = async (i, s, o, a = [], r = !1) => {
33
33
  var y, E, h, C;
34
- const e = b(), { html: d, css: D } = i, { baseBlocks: g, extensions: R } = await A(), S = ((y = c.value) == null ? void 0 : y.displayConditions) ?? !0, P = ((E = c.value) == null ? void 0 : E.modulesDisabled) ?? !1, U = !!d || (((h = u.value) == null ? void 0 : h.forceRecreate) ?? !1);
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: D,
41
- forceRecreate: U,
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: P,
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: "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com",
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 B();
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 { importCss: t } = H(), { activateCustomViewStyles: l, updateTimerInClonedTemplate: I } = L(), { injectFullStory: x } = N();
92
- t(), l(), x(), I(), o.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
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: v,
112
- onModuleAdd: F,
113
- notifications: V(),
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: R,
119
+ extensions: P,
120
120
  localePatch: J
121
121
  }
122
122
  );
123
123
  };
124
124
  return { initPlugin: async (i, s, o) => {
125
- const a = b();
125
+ const a = k();
126
126
  try {
127
127
  await f();
128
128
  const [r, e] = await Promise.all([
129
- M(),
130
- T()
129
+ T(),
130
+ v()
131
131
  ]);
132
- a.syncModulesEnabled = e, await _(i, s, o, r, e);
132
+ a.syncModulesEnabled = e, await D(i, s, o, r, e);
133
133
  } catch {
134
- a.loadingStatus = !1, k({
134
+ a.loadingStatus = !1, B({
135
135
  type: X.Error,
136
- message: w["An error has occurred. Please report the error code to support."],
136
+ message: b["An error has occurred. Please report the error code to support."],
137
137
  actionButton: {
138
- text: w["Reload page"],
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
- Ce as useStripo
149
+ he as useStripo
150
150
  };