@useinsider/guido 3.11.0-beta.aa6c24f → 3.11.0-beta.b9b7d29

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.
@@ -3,16 +3,16 @@ import i from "./Guido.vue2.js";
3
3
  import a from "../_virtual/_plugin-vue2_normalizer.js";
4
4
  var t = function() {
5
5
  var o = this, r = o._self._c, e = o._self._setupProxy;
6
- return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), r(e.AutoSaveController), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(p) {
6
+ return r("div", { ref: "wrapperRef", staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), r(e.AutoSaveController), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.FORCE_ONBOARDING_FOR_TESTING || !e.isTestPartner() ? r(e.OnboardingWrapper, { on: { "onboarding-finished": function(_) {
7
7
  return e.emit("onboarding:finished");
8
- } } }), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
8
+ } } }) : o._e(), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
9
9
  }, n = [], s = /* @__PURE__ */ a(
10
10
  i,
11
11
  t,
12
12
  n,
13
13
  !1,
14
14
  null,
15
- "50dac6de"
15
+ "57d338df"
16
16
  );
17
17
  const l = s.exports;
18
18
  export {
@@ -1,42 +1,42 @@
1
- import { defineComponent as X, defineAsyncComponent as I, ref as W, computed as x, watch as Y, onMounted as Z, onUnmounted as ee } from "vue";
1
+ import { defineComponent as X, defineAsyncComponent as P, ref as G, computed as W, watch as Y, onMounted as Z, onUnmounted as ee } from "vue";
2
2
  import { useCortexBlueprintBridge as oe } from "../composables/useCortexBlueprintBridge.js";
3
3
  import { provideGuidoActions as te } from "../composables/useGuidoActions.js";
4
4
  import { useGuidoStateBridge as ne } from "../composables/useGuidoStateBridge.js";
5
5
  import { usePartner as re } from "../composables/usePartner.js";
6
6
  import { useStripo as se } from "../composables/useStripo.js";
7
7
  import { useTimerClone as ae } from "../composables/useTimerClone.js";
8
- import { migrate as G } from "../config/migrator/index.js";
8
+ import { migrate as x } from "../config/migrator/index.js";
9
9
  import { ModuleFolderDefaults as H } from "../enums/defaults.js";
10
- import { RIBBON_SELECTOR as ce } from "../enums/onboarding.js";
11
- import { useRecommendationExtensionStore as ie } from "../extensions/Blocks/Recommendation/store/recommendation.js";
12
- import me from "./organisms/AutoSaveController.vue.js";
13
- import de from "./organisms/base/Toaster.vue.js";
14
- import le from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
15
- import ue from "./organisms/header/HeaderWrapper.vue.js";
16
- import pe from "./organisms/LoadingWrapper.vue.js";
17
- import fe from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
18
- import ve from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
19
- import { useStripoApi as Se } from "../services/stripoApi.js";
20
- import { useConfigStore as ye } from "../stores/config.js";
21
- import { useDynamicContentStore as he } from "../stores/dynamic-content.js";
10
+ import { FORCE_ONBOARDING_FOR_TESTING as ce, RIBBON_SELECTOR as ie } from "../enums/onboarding.js";
11
+ import { useRecommendationExtensionStore as me } from "../extensions/Blocks/Recommendation/store/recommendation.js";
12
+ import de from "./organisms/AutoSaveController.vue.js";
13
+ import le from "./organisms/base/Toaster.vue.js";
14
+ import ue from "./organisms/extensions/recommendation/FilterSelectionDrawer.vue.js";
15
+ import pe from "./organisms/header/HeaderWrapper.vue.js";
16
+ import fe from "./organisms/LoadingWrapper.vue.js";
17
+ import ve from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
18
+ import Se from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
19
+ import { useStripoApi as ye } from "../services/stripoApi.js";
20
+ import { useConfigStore as he } from "../stores/config.js";
21
+ import { useDynamicContentStore as ge } from "../stores/dynamic-content.js";
22
22
  import { useEditorStore as $ } from "../stores/editor.js";
23
- import { usePreviewStore as ge } from "../stores/preview.js";
24
- import { useTemplateStore as be } from "../stores/template.js";
25
- import { useUnsubscribeStore as Ee } from "../stores/unsubscribe.js";
26
- const Ve = /* @__PURE__ */ X({
23
+ import { usePreviewStore as be } from "../stores/preview.js";
24
+ import { useTemplateStore as Ee } from "../stores/template.js";
25
+ import { useUnsubscribeStore as we } from "../stores/unsubscribe.js";
26
+ const je = /* @__PURE__ */ X({
27
27
  __name: "Guido",
28
28
  props: {
29
29
  config: null
30
30
  },
31
31
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished", "test-email:click"],
32
32
  setup(z, { expose: q, emit: n }) {
33
- const b = z, K = I(
33
+ const b = z, K = P(
34
34
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
35
- ), V = I(
35
+ ), V = P(
36
36
  () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
37
- ), E = W(), p = W(), f = he(), w = Ee(), i = ye();
37
+ ), E = G(), p = G(), f = ge(), w = we(), i = he();
38
38
  i.init(b.config);
39
- const m = $(), j = ge(), d = x(() => m.hasChanges), { isTestPartner: J } = re(), D = () => {
39
+ const m = $(), j = be(), d = W(() => m.hasChanges), { isTestPartner: J } = re(), D = () => {
40
40
  var e;
41
41
  return (e = E.value) == null ? void 0 : e.handleSave(!0);
42
42
  }, C = (e) => {
@@ -44,25 +44,25 @@ const Ve = /* @__PURE__ */ X({
44
44
  }, {
45
45
  templateId: v,
46
46
  userId: T,
47
- partnerName: L,
48
- username: k,
47
+ partnerName: O,
48
+ username: _,
49
49
  template: o,
50
50
  editor: s
51
- } = i, l = (o == null ? void 0 : o.html) || "", F = (o == null ? void 0 : o.css) || "", S = (o == null ? void 0 : o.preselectedDynamicContent) || [], U = (s == null ? void 0 : s.savedModulesFolderName) || H.SAVED_MODULES, _ = (s == null ? void 0 : s.defaultModulesFolderName) || H.DEFAULT_MODULES;
51
+ } = i, l = (o == null ? void 0 : o.html) || "", F = (o == null ? void 0 : o.css) || "", S = (o == null ? void 0 : o.preselectedDynamicContent) || [], R = (s == null ? void 0 : s.savedModulesFolderName) || H.SAVED_MODULES, L = (s == null ? void 0 : s.defaultModulesFolderName) || H.DEFAULT_MODULES;
52
52
  oe(), ne();
53
53
  const y = {
54
54
  emailId: v,
55
55
  userId: T,
56
- username: k,
57
- partnerName: L,
58
- savedModulesFolderName: U,
59
- defaultModulesFolderName: _
60
- }, M = {
56
+ username: _,
57
+ partnerName: O,
58
+ savedModulesFolderName: R,
59
+ defaultModulesFolderName: L
60
+ }, N = {
61
61
  preselectedDynamicContentList: S,
62
62
  onReady: () => {
63
63
  console.debug("guido:ready"), n("ready");
64
64
  }
65
- }, { initPlugin: O } = se(y, M), { getDefaultTemplate: P } = Se(), { cloneTimersOnSave: R, hasTimerBlocks: A } = ae(), Q = x(() => {
65
+ }, { initPlugin: k } = se(y, N), { getDefaultTemplate: U } = ye(), { cloneTimersOnSave: A, hasTimerBlocks: B } = ae(), Q = W(() => {
66
66
  var e;
67
67
  return !((e = i.ui) != null && e.showHeader);
68
68
  });
@@ -81,9 +81,9 @@ const Ve = /* @__PURE__ */ X({
81
81
  console.debug("guido:test-email:click"), n("test-email:click");
82
82
  }
83
83
  });
84
- const B = (e) => {
84
+ const I = (e) => {
85
85
  console.debug("dynamic-content:close", e), f.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
86
- }, N = () => {
86
+ }, M = () => {
87
87
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
88
88
  };
89
89
  Y(() => d.value, () => {
@@ -96,22 +96,22 @@ const Ve = /* @__PURE__ */ X({
96
96
  let a = null;
97
97
  const g = () => {
98
98
  var t;
99
- const e = document.querySelector(ce);
99
+ const e = document.querySelector(ie);
100
100
  (t = p.value) == null || t.style.setProperty("--ribbon-offset", `${(e == null ? void 0 : e.offsetHeight) ?? 0}px`);
101
101
  };
102
102
  return Z(async () => {
103
103
  var t, u;
104
- console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), ie().$reset(), $().$reset(), m.templateId = v, be().$reset(), g();
104
+ console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow"), me().$reset(), $().$reset(), m.templateId = v, Ee().$reset(), g();
105
105
  const e = (t = p.value) == null ? void 0 : t.parentElement;
106
106
  e && (a = new ResizeObserver(g), a.observe(e));
107
107
  try {
108
108
  w.selectedUnsubscribePages = (o == null ? void 0 : o.selectedUnsubscribePages) || [];
109
109
  const c = ((u = o == null ? void 0 : o.migration) == null ? void 0 : u.recommendationConfigs) ?? {};
110
110
  let r = {
111
- html: l && await G(l, c),
111
+ html: l && await x(l, c),
112
112
  css: F
113
113
  };
114
- r.html || (r = await P(), r.html = await G(r.html, c)), A(r.html) && (r.html = await R(r.html)), await O(r), f.selectedDynamicContentList = S;
114
+ r.html || (r = await U(), r.html = await x(r.html, c)), B(r.html) && (r.html = await A(r.html)), await k(r), f.selectedDynamicContentList = S;
115
115
  } catch (c) {
116
116
  console.error("Failed to initialize Stripo editor:", c);
117
117
  }
@@ -126,15 +126,15 @@ const Ve = /* @__PURE__ */ X({
126
126
  i.reset();
127
127
  }), q({
128
128
  dynamicContent: {
129
- insert: B,
130
- close: N
129
+ insert: I,
130
+ close: M
131
131
  },
132
132
  hasChanges: d,
133
133
  saveSilent: D,
134
134
  setLoading: C
135
- }), { __sfc: !0, PreviewContainer: K, OnboardingWrapper: V, headerWrapperRef: E, wrapperRef: p, dynamicContentStore: f, unsubscribeStore: w, props: b, configStore: i, editorStore: m, previewStore: j, hasChanges: d, isTestPartner: J, saveSilent: D, setLoading: C, templateId: v, userId: T, partnerName: L, username: k, templateConfig: o, editorConfig: s, html: l, css: F, preselectedDynamicContentList: S, savedModulesFolderName: U, defaultModulesFolderName: _, emit: n, metadata: y, options: M, initPlugin: O, getDefaultTemplate: P, cloneTimersOnSave: R, hasTimerBlocks: A, noHeader: Q, insertDynamicContent: B, closeDynamicContent: N, handleDynamicContentOpen: h, ribbonObserver: a, updateRibbonOffset: g, AutoSaveController: me, Toaster: de, FilterSelectionDrawer: le, HeaderWrapper: ue, LoadingWrapper: pe, SaveAsTemplateDrawer: fe, UnsubscribeWrapper: ve };
135
+ }), { __sfc: !0, PreviewContainer: K, OnboardingWrapper: V, headerWrapperRef: E, wrapperRef: p, dynamicContentStore: f, unsubscribeStore: w, props: b, configStore: i, editorStore: m, previewStore: j, hasChanges: d, isTestPartner: J, saveSilent: D, setLoading: C, templateId: v, userId: T, partnerName: O, username: _, templateConfig: o, editorConfig: s, html: l, css: F, preselectedDynamicContentList: S, savedModulesFolderName: R, defaultModulesFolderName: L, emit: n, metadata: y, options: N, initPlugin: k, getDefaultTemplate: U, cloneTimersOnSave: A, hasTimerBlocks: B, noHeader: Q, insertDynamicContent: I, closeDynamicContent: M, handleDynamicContentOpen: h, ribbonObserver: a, updateRibbonOffset: g, FORCE_ONBOARDING_FOR_TESTING: ce, AutoSaveController: de, Toaster: le, FilterSelectionDrawer: ue, HeaderWrapper: pe, LoadingWrapper: fe, SaveAsTemplateDrawer: ve, UnsubscribeWrapper: Se };
136
136
  }
137
137
  });
138
138
  export {
139
- Ve as default
139
+ je as default
140
140
  };
@@ -1,46 +1,43 @@
1
- import { defineComponent as v, ref as D, computed as o } from "vue";
2
- import _ from "../../wrappers/WpModal.vue.js";
3
- import { useConfig as h } from "../../../composables/useConfig.js";
1
+ import { defineComponent as b, ref as v, computed as o } from "vue";
2
+ import D from "../../wrappers/WpModal.vue.js";
3
+ import { useConfig as _ } from "../../../composables/useConfig.js";
4
4
  import { useTranslations as y } from "../../../composables/useTranslations.js";
5
- import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
5
+ import { ACADEMY_LINKS as m } from "../../../enums/academy.js";
6
6
  import L from "../../../static/assets/onboarding-img.svg.js";
7
- import { useOnboardingStore as C } from "../../../stores/onboarding.js";
8
- import { isAfterDate as w, formatShortDate as A } from "../../../utils/dateUtil.js";
9
- const V = /* @__PURE__ */ v({
7
+ import { useOnboardingStore as h } from "../../../stores/onboarding.js";
8
+ import { isAfterDate as C } from "../../../utils/dateUtil.js";
9
+ const x = /* @__PURE__ */ b({
10
10
  __name: "NewVersionPopup",
11
11
  emits: ["onboarding-finished"],
12
- setup(I, { emit: a }) {
13
- const e = y(), t = C(), s = D(!0), { config: p } = h(), i = o(() => {
14
- var l, m;
15
- return (m = (l = p.value) == null ? void 0 : l.editor) == null ? void 0 : m.migrationDate;
16
- }), n = o(() => w(i.value || 0)), d = o(() => A(
17
- i.value || 0
18
- )), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), g = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
19
- sunsetDate: d.value,
20
- academyLink: c.EMAIL_EDITOR
12
+ setup(w, { emit: i }) {
13
+ const e = y(), t = h(), a = v(!0), { config: s } = _(), p = o(() => {
14
+ var l, u;
15
+ return (u = (l = s.value) == null ? void 0 : l.editor) == null ? void 0 : u.migrationDate;
16
+ }), n = o(() => C(p.value || 0)), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
17
+ academyLink: m.EMAIL_EDITOR
21
18
  }) : e("email-editor.onboarding-description", {
22
- academyLink: c.EMAIL_EDITOR
23
- })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), b = o(() => ({
19
+ academyLink: m.EMAIL_EDITOR
20
+ })), d = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), g = o(() => ({
24
21
  primaryButton: {
25
22
  type: "primary",
26
23
  labelText: e("left-menu.discover-now")
27
24
  },
28
25
  secondaryButton: {
29
26
  type: "subtle-primary",
30
- labelText: u.value
27
+ labelText: d.value
31
28
  }
32
29
  })), r = () => {
33
- s.value = !1, a("onboarding-finished");
30
+ a.value = !1, i("onboarding-finished");
34
31
  };
35
- return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: f, popupDescription: g, secondaryButtonLabel: u, footerButtonOptions: b, closePopup: r, handleDiscoverNow: () => {
32
+ return { __sfc: !0, emit: i, trans: e, onboardingStore: t, isVisible: a, config: s, migrationDate: p, isAfterMigrationDate: n, popupTitle: c, popupDescription: f, secondaryButtonLabel: d, footerButtonOptions: g, closePopup: r, handleDiscoverNow: () => {
36
33
  t.onDiscoverNowClicked(), r();
37
34
  }, handleRemindLater: () => {
38
35
  t.onRemindMeLater(), r();
39
36
  }, handleClose: () => {
40
37
  t.onNewVersionPopupClose(), r();
41
- }, WpModal: _, onboardingImageSvg: L };
38
+ }, WpModal: D, onboardingImageSvg: L };
42
39
  }
43
40
  });
44
41
  export {
45
- V as default
42
+ x as default
46
43
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, computed as e, onMounted as O, watch as t } from "vue";
1
+ import { defineComponent as g, computed as e, onMounted as b, watch as t } from "vue";
2
2
  import u from "./AMPOnboarding.vue.js";
3
3
  import v from "./GenericOnboarding.vue.js";
4
4
  import l from "./ItemsOnboarding.vue.js";
@@ -6,22 +6,23 @@ import y from "./NewVersionPopup.vue.js";
6
6
  import S from "./TextBlockOnboarding.vue.js";
7
7
  import h from "./VersionHistoryOnboarding.vue.js";
8
8
  import { usePartner as w } from "../../../composables/usePartner.js";
9
- import { useEditorStore as P } from "../../../stores/editor.js";
10
- import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
11
- import { usePreviewStore as A } from "../../../stores/preview.js";
12
- const G = /* @__PURE__ */ b({
9
+ import { FORCE_ONBOARDING_FOR_TESTING as P } from "../../../enums/onboarding.js";
10
+ import { useEditorStore as _ } from "../../../stores/editor.js";
11
+ import { useOnboardingStore as A } from "../../../stores/onboarding.js";
12
+ import { usePreviewStore as H } from "../../../stores/preview.js";
13
+ const z = /* @__PURE__ */ g({
13
14
  __name: "OnboardingWrapper",
14
15
  emits: ["onboarding-finished"],
15
- setup(H, { emit: f }) {
16
- const o = _(), r = P(), s = A(), { isTestPartner: a } = w(), p = e(() => r.isStripoInitialized), d = e(() => a()), m = [
16
+ setup(M, { emit: f }) {
17
+ const o = A(), r = _(), s = H(), { isTestPartner: a } = w(), p = e(() => r.isStripoInitialized), m = e(() => !P && a()), d = [
17
18
  { type: "newVersionPopup", component: y },
18
19
  { type: "genericOnboarding", component: v },
19
20
  { type: "textBlockOnboarding", component: S },
20
21
  { type: "versionHistoryOnboarding", component: h },
21
22
  { type: "ampOnboarding", component: u },
22
23
  { type: "itemsOnboarding", component: l }
23
- ], c = (n) => d.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), g = e(() => m.filter((n) => c(n.type)));
24
- return O(async () => {
24
+ ], c = (n) => m.value || !p.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), O = e(() => d.filter((n) => c(n.type)));
25
+ return b(async () => {
25
26
  await o.fetchUserModalState();
26
27
  }), t(
27
28
  () => r.isVersionHistoryOpen,
@@ -38,9 +39,9 @@ const G = /* @__PURE__ */ b({
38
39
  (n) => {
39
40
  !n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
40
41
  }
41
- ), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: d, onboardingConfigs: m, shouldShow: c, visibleOnboardings: g };
42
+ ), { __sfc: !0, emit: f, onboardingStore: o, editorStore: r, previewStore: s, isTestPartner: a, isStripoReady: p, isTestPartnerActive: m, onboardingConfigs: d, shouldShow: c, visibleOnboardings: O };
42
43
  }
43
44
  });
44
45
  export {
45
- G as default
46
+ z as default
46
47
  };
@@ -14,10 +14,10 @@ import J from "../static/styles/customEditorStyle.css.js";
14
14
  import { useEditorStore as E } from "../stores/editor.js";
15
15
  import { dynamicContentToMergeTags as X } from "../utils/genericUtil.js";
16
16
  import j from "../package.json.js";
17
- const pe = (C, l) => {
18
- const { features: c, template: w, isFeatureEnabled: u } = x(), { handleError: m, showToaster: b } = z(), { getToken: k, getCustomFonts: T, getSyncModulesStatus: B } = G(), { handleEvent: F } = H(), { getStripoBlocksConfig: v } = R(), { getStripoNotifications: V } = N(), _ = async (s, i = [], r = !1) => {
17
+ const fo = (C, l) => {
18
+ const { features: c, template: w, isFeatureEnabled: u } = x(), { handleError: m, showToaster: b } = z(), { getToken: T, getCustomFonts: k, getSyncModulesStatus: B } = G(), { handleEvent: F } = H(), { getStripoBlocksConfig: v } = R(), { getStripoNotifications: V } = N(), _ = async (s, i = [], r = !1) => {
19
19
  var g, S, y;
20
- const e = E(), { html: p, css: a } = s, { baseBlocks: t, extensions: d } = await v(), f = ((g = c.value) == null ? void 0 : g.displayConditions) ?? !0, A = ((S = c.value) == null ? void 0 : S.modulesDisabled) ?? !1, P = ((y = w.value) == null ? void 0 : y.forceRecreate) ?? !1;
20
+ const o = E(), { html: p, css: a } = s, { baseBlocks: t, extensions: d } = await v(), f = ((g = c.value) == null ? void 0 : g.displayConditions) ?? !0, M = ((S = c.value) == null ? void 0 : S.modulesDisabled) ?? !1, P = ((y = w.value) == null ? void 0 : y.forceRecreate) ?? !1;
21
21
  await window.UIEditor.initEditor(
22
22
  document.querySelector("#guido-editor"),
23
23
  {
@@ -38,12 +38,11 @@ const pe = (C, l) => {
38
38
  conditionsEnabled: f,
39
39
  customConditionsEnabled: f,
40
40
  enableXSSSecurity: !0,
41
- modulesDisabled: A,
41
+ modulesDisabled: M,
42
42
  syncModulesEnabled: r,
43
43
  messageSettingsEnabled: !0,
44
44
  displayGmailAnnotations: !0,
45
45
  displayHiddenPreheader: !1,
46
- keepModuleStylesEnabled: !0,
47
46
  displayTitle: !1,
48
47
  displayUTM: !1,
49
48
  selectElementAfterDrop: !0,
@@ -63,35 +62,35 @@ const pe = (C, l) => {
63
62
  )
64
63
  }
65
64
  ],
66
- async onTokenRefreshRequest(o) {
65
+ async onTokenRefreshRequest(e) {
67
66
  try {
68
- const n = await k();
69
- o(n);
67
+ const n = await T();
68
+ e(n);
70
69
  } catch (n) {
71
70
  m(n, "Failed to refresh token");
72
71
  }
73
72
  },
74
73
  onTemplateLoaded() {
75
74
  try {
76
- const { importCss: o } = O(), { activateCustomViewStyles: n, updateTimerInClonedTemplate: D } = U(), { injectFullStory: I } = q();
77
- o(), n(), I(), D(), l.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
78
- e.hasChanges = !1;
75
+ const { importCss: e } = O(), { activateCustomViewStyles: n, updateTimerInClonedTemplate: D } = U(), { injectFullStory: I } = q();
76
+ e(), n(), I(), D(), l.onReady(), o.isStripoInitialized = !0, o.loadingStatus = !1, setTimeout(() => {
77
+ o.hasChanges = !1;
79
78
  }, 1e3);
80
- } catch (o) {
81
- m(o, "Failed to load custom interface appearance");
79
+ } catch (e) {
80
+ m(e, "Failed to load custom interface appearance");
82
81
  }
83
82
  },
84
- onCodeEditorVisibilityChanged(o) {
85
- e.isCodeEditorOpen = o;
83
+ onCodeEditorVisibilityChanged(e) {
84
+ o.isCodeEditorOpen = e;
86
85
  },
87
- onEditorVisualModeChanged(o) {
88
- e.editorVisualMode = o.toLowerCase();
86
+ onEditorVisualModeChanged(e) {
87
+ o.editorVisualMode = e.toLowerCase();
89
88
  },
90
- onVersionHistoryVisibilityChanged(o) {
91
- e.isVersionHistoryOpen = o;
89
+ onVersionHistoryVisibilityChanged(e) {
90
+ o.isVersionHistoryOpen = e;
92
91
  },
93
92
  onDataChanged() {
94
- e.hasChanges = !0;
93
+ o.hasChanges = !0;
95
94
  },
96
95
  onEvent: F,
97
96
  notifications: V(),
@@ -104,13 +103,13 @@ const pe = (C, l) => {
104
103
  localePatch: L
105
104
  }
106
105
  );
107
- }, M = (s) => new Promise((i, r) => {
106
+ }, A = (s) => new Promise((i, r) => {
108
107
  var d;
109
108
  if (document.getElementById("UiEditorScript")) {
110
109
  Promise.resolve(s()).then(i, r);
111
110
  return;
112
111
  }
113
- const e = j.guido, a = `https://email-static.useinsider.com/guido/${(d = e == null ? void 0 : e.stripo) == null ? void 0 : d.version}/UIEditor.js`, t = document.createElement("script");
112
+ const o = j.guido, a = `https://email-static.useinsider.com/guido/${(d = o == null ? void 0 : o.stripo) == null ? void 0 : d.version}/UIEditor.js`, t = document.createElement("script");
114
113
  t.id = "UiEditorScript", t.type = "module", t.src = a, t.onload = () => {
115
114
  Promise.resolve(s()).then(i, r);
116
115
  }, t.onerror = () => {
@@ -120,12 +119,12 @@ const pe = (C, l) => {
120
119
  return { initPlugin: async (s) => {
121
120
  const i = E();
122
121
  try {
123
- await M(async () => {
124
- const [r, e] = await Promise.all([
125
- T(),
122
+ await A(async () => {
123
+ const [r, o] = await Promise.all([
124
+ k(),
126
125
  B()
127
126
  ]);
128
- i.syncModulesEnabled = e, await _(s, r, e);
127
+ i.syncModulesEnabled = o, await _(s, r, o);
129
128
  });
130
129
  } catch {
131
130
  i.loadingStatus = !1, b({
@@ -140,5 +139,5 @@ const pe = (C, l) => {
140
139
  } };
141
140
  };
142
141
  export {
143
- pe as useStripo
142
+ fo as useStripo
144
143
  };
@@ -1,4 +1,4 @@
1
- const e = "https://academy.insiderone.com/", o = {
1
+ const e = "https://academy.insiderone.com", o = {
2
2
  EMAIL_EDITOR: `${e}/docs/email-drag-and-drop-editor`,
3
3
  GLOBAL_UNSUBSCRIBE: `${e}/docs/global-unsubscribe-preference-center`,
4
4
  AMP_FOR_EMAILS: `${e}/docs/amp-for-emails`
@@ -1,6 +1,5 @@
1
- const t = "tr-TR", T = "default", L = "UTC";
1
+ const t = "tr-TR", L = "default";
2
2
  export {
3
- T as DEFAULT,
4
- t as DEFAULT_LOCALE,
5
- L as DEFAULT_TZ
3
+ L as DEFAULT,
4
+ t as DEFAULT_LOCALE
6
5
  };
@@ -1,17 +1,26 @@
1
- const e = [
1
+ const e = "insidethekube.com", t = typeof window < "u" && window.location.hostname.endsWith(e), n = [
2
+ "newVersionPopup",
3
+ "genericOnboarding",
4
+ "textBlockOnboarding",
5
+ "versionHistoryOnboarding",
6
+ "ampOnboarding",
7
+ "itemsOnboarding"
8
+ ], o = [
2
9
  ".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-0.ng-star-inserted",
3
10
  ".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-1.ng-star-inserted",
4
11
  ".service-element.stacked-panel-item.ng-tns-c1014751574-3.level-bottom-2.ng-star-inserted"
5
- ], t = "ui-editor", n = 'button[role="tab"][aria-label="Card Composition"]', s = 'button[role="tab"][aria-label="Settings"]', E = ".in-ribbons-wrapper", o = ".guido__amp-toggle-html", a = ".in-segments-wrapper", O = '[data-testid="guido-header"]', _ = 158, i = 10;
12
+ ], s = "ui-editor", i = 'button[role="tab"][aria-label="Card Composition"]', E = 'button[role="tab"][aria-label="Settings"]', O = ".in-ribbons-wrapper", a = ".guido__amp-toggle-html", r = ".in-segments-wrapper", _ = '[data-testid="guido-header"]', c = 158, T = 10;
6
13
  export {
7
- o as AMP_TOGGLE_BUTTON_SELECTOR,
8
- a as AMP_TOGGLE_WRAPPER_SELECTOR,
9
- n as CARD_COMPOSITION_TAB_SELECTOR,
10
- O as HEADER_SELECTOR,
11
- _ as POPOVER_LEFT_OFFSET,
12
- i as POPOVER_TOP_GAP,
13
- E as RIBBON_SELECTOR,
14
- e as SERVICE_HOVER_SELECTORS,
15
- s as SETTINGS_TAB_SELECTOR,
16
- t as UI_EDITOR_SELECTOR
14
+ a as AMP_TOGGLE_BUTTON_SELECTOR,
15
+ r as AMP_TOGGLE_WRAPPER_SELECTOR,
16
+ i as CARD_COMPOSITION_TAB_SELECTOR,
17
+ n as FORCED_ONBOARDING_TYPES,
18
+ t as FORCE_ONBOARDING_FOR_TESTING,
19
+ _ as HEADER_SELECTOR,
20
+ c as POPOVER_LEFT_OFFSET,
21
+ T as POPOVER_TOP_GAP,
22
+ O as RIBBON_SELECTOR,
23
+ o as SERVICE_HOVER_SELECTORS,
24
+ E as SETTINGS_TAB_SELECTOR,
25
+ s as UI_EDITOR_SELECTOR
17
26
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-82128f7d]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-50dac6de]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-50dac6de]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-50dac6de]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-669fe7cf]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-669fe7cf]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-669fe7cf]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-669fe7cf]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-669fe7cf]{object-fit:cover;transform:scale(1)}[data-v-7a305bb2] .guido__verion-history-view-option-selection-desktop svg,[data-v-7a305bb2] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-7a305bb2] .in-segments-wrapper__button_selected,[data-v-7a305bb2] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-06afaecb]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-06afaecb]{min-height:504px}.iframe-wrapper[data-v-cbafc185]{width:258px}.iframe-scaled[data-v-cbafc185]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-7419ae06] .vueperslides__bullets,[data-v-796d193b] .vueperslides__bullets{pointer-events:none!important}[data-v-796d193b] .vueperslides__parallax-wrapper{height:110px!important}[data-v-cadfc82d] .vueperslides__bullets{pointer-events:none!important}[data-v-cadfc82d] .vueperslides__parallax-wrapper{height:110px!important}
1
+ .gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-82128f7d]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-57d338df]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-57d338df]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-57d338df]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-669fe7cf]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-669fe7cf]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-669fe7cf]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-669fe7cf]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-669fe7cf]{object-fit:cover;transform:scale(1)}[data-v-7a305bb2] .guido__verion-history-view-option-selection-desktop svg,[data-v-7a305bb2] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-7a305bb2] .in-segments-wrapper__button_selected,[data-v-7a305bb2] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-06afaecb]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-06afaecb]{min-height:504px}.iframe-wrapper[data-v-cbafc185]{width:258px}.iframe-scaled[data-v-cbafc185]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-7419ae06] .vueperslides__bullets,[data-v-796d193b] .vueperslides__bullets{pointer-events:none!important}[data-v-796d193b] .vueperslides__parallax-wrapper{height:110px!important}[data-v-cadfc82d] .vueperslides__bullets{pointer-events:none!important}[data-v-cadfc82d] .vueperslides__parallax-wrapper{height:110px!important}
@@ -5,8 +5,8 @@
5
5
  * for easy maintenance and domain migration.
6
6
  */
7
7
  export declare const ACADEMY_LINKS: {
8
- readonly EMAIL_EDITOR: "https://academy.insiderone.com//docs/email-drag-and-drop-editor";
9
- readonly GLOBAL_UNSUBSCRIBE: "https://academy.insiderone.com//docs/global-unsubscribe-preference-center";
10
- readonly AMP_FOR_EMAILS: "https://academy.insiderone.com//docs/amp-for-emails";
8
+ readonly EMAIL_EDITOR: "https://academy.insiderone.com/docs/email-drag-and-drop-editor";
9
+ readonly GLOBAL_UNSUBSCRIBE: "https://academy.insiderone.com/docs/global-unsubscribe-preference-center";
10
+ readonly AMP_FOR_EMAILS: "https://academy.insiderone.com/docs/amp-for-emails";
11
11
  };
12
12
  export type AcademyLinkKey = keyof typeof ACADEMY_LINKS;
@@ -1,3 +1,6 @@
1
+ import type { OnboardingType } from '@@/Types/onboarding';
2
+ export declare const FORCE_ONBOARDING_FOR_TESTING: boolean;
3
+ export declare const FORCED_ONBOARDING_TYPES: OnboardingType[];
1
4
  export declare const SERVICE_HOVER_SELECTORS: string[];
2
5
  export declare const UI_EDITOR_SELECTOR = "ui-editor";
3
6
  export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
@@ -1,10 +1,11 @@
1
- import { useOnboardingApi as r } from "../services/onboardingApi.js";
2
- import { defineStore as e } from "pinia";
1
+ import { FORCE_ONBOARDING_FOR_TESTING as e, FORCED_ONBOARDING_TYPES as a } from "../enums/onboarding.js";
2
+ import { useOnboardingApi as s } from "../services/onboardingApi.js";
3
+ import { defineStore as d } from "pinia";
3
4
  const t = () => ({
4
5
  cardIndex: 0,
5
6
  isActive: !1,
6
7
  config: []
7
- }), a = () => ({
8
+ }), g = () => ({
8
9
  onboardings: {
9
10
  newVersionPopup: t(),
10
11
  genericOnboarding: t(),
@@ -15,8 +16,8 @@ const t = () => ({
15
16
  },
16
17
  userModalState: {},
17
18
  isFetched: !1
18
- }), c = e("guidoOnboarding", {
19
- state: () => a(),
19
+ }), u = d("guidoOnboarding", {
20
+ state: () => g(),
20
21
  getters: {
21
22
  getOnboarding: (n) => (i) => n.onboardings[i],
22
23
  isActive: (n) => (i) => n.onboardings[i].isActive,
@@ -45,6 +46,8 @@ const t = () => ({
45
46
  return i.config[i.cardIndex];
46
47
  },
47
48
  shouldShowOnboarding: (n) => (i) => {
49
+ if (e && a.includes(i))
50
+ return !0;
48
51
  const o = n.userModalState.Guido;
49
52
  return i === "newVersionPopup" && (o != null && o.genericOnboarding) ? !1 : o ? !o[i] : !0;
50
53
  }
@@ -72,8 +75,8 @@ const t = () => ({
72
75
  this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
73
76
  },
74
77
  updateCardPosition(n, i, o) {
75
- const s = this.onboardings[n].config[i];
76
- s && (s.top = o.top, s.position = o.position);
78
+ const r = this.onboardings[n].config[i];
79
+ r && (r.top = o.top, r.position = o.position);
77
80
  },
78
81
  setConfig(n, i) {
79
82
  this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
@@ -93,15 +96,15 @@ const t = () => ({
93
96
  async fetchUserModalState() {
94
97
  if (this.isFetched)
95
98
  return;
96
- const { fetchUserModalState: n } = r(), i = await n();
99
+ const { fetchUserModalState: n } = s(), i = await n();
97
100
  this.userModalState = i, this.isFetched = !0;
98
101
  },
99
102
  async setUserModalState(n, i, o) {
100
- const { setUserModalState: s } = r();
101
- await s(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
103
+ const { setUserModalState: r } = s();
104
+ await r(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
102
105
  }
103
106
  }
104
107
  });
105
108
  export {
106
- c as useOnboardingStore
109
+ u as useOnboardingStore
107
110
  };
@@ -1,19 +1,10 @@
1
- import { DEFAULT_LOCALE as r, DEFAULT as a, DEFAULT_TZ as c } from "../enums/date.js";
2
- const m = (t) => t ? t instanceof Date ? t : typeof t == "string" ? t.length === 10 ? new Date(Number(t) * 1e3) : new Date(t) : typeof t == "number" ? t.toString().length === 10 ? new Date(t * 1e3) : new Date(t) : /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(), s = () => {
1
+ import { DEFAULT_LOCALE as r, DEFAULT as o } from "../enums/date.js";
2
+ const c = () => {
3
3
  const t = window.l10n;
4
- return (t == null ? void 0 : t.locale) === a ? r : (t == null ? void 0 : t.locale) || r;
5
- }, u = new Intl.DateTimeFormat().resolvedOptions().timeZone, f = () => {
6
- const t = window.l10n;
7
- return (t == null ? void 0 : t.timezone) || u || c;
8
- }, D = (t, e = s(), n = f()) => {
9
- const o = {
10
- year: "numeric",
11
- month: "2-digit",
12
- day: "2-digit",
13
- timeZone: n
14
- }, i = m(t);
15
- return new Intl.DateTimeFormat(e, o).format(i);
16
- }, T = (t) => {
4
+ return (t == null ? void 0 : t.locale) === o ? r : (t == null ? void 0 : t.locale) || r;
5
+ };
6
+ new Intl.DateTimeFormat().resolvedOptions().timeZone;
7
+ const i = (t) => {
17
8
  if (!t)
18
9
  return "";
19
10
  const e = new Date(t);
@@ -25,13 +16,9 @@ const m = (t) => t ? t instanceof Date ? t : typeof t == "string" ? t.length ===
25
16
  second: "2-digit",
26
17
  hour12: !1
27
18
  }).format(e);
28
- }, h = (t) => t ? Math.floor(Date.now() / 1e3) >= t : !1;
19
+ }, m = (t) => t ? Math.floor(Date.now() / 1e3) >= t : !1;
29
20
  export {
30
- m as convertToDateObject,
31
- T as formatPatchDate,
32
- D as formatShortDate,
33
- h as isAfterDate,
34
- u as localTz,
35
- s as locale,
36
- f as timezone
21
+ i as formatPatchDate,
22
+ m as isAfterDate,
23
+ c as locale
37
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.11.0-beta.aa6c24f",
3
+ "version": "3.11.0-beta.b9b7d29",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",