@useinsider/guido 2.0.0-beta.d170da6 → 2.0.0-beta.d2098bd

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.
Files changed (136) hide show
  1. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +8 -8
  2. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +12 -11
  3. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +7 -8
  4. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -12
  5. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +10 -14
  6. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +18 -22
  7. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
  8. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +10 -10
  9. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +15 -14
  10. package/dist/components/organisms/header/LeftSlot.vue.js +2 -2
  11. package/dist/components/organisms/header/MiddleSlot.vue.js +5 -4
  12. package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -13
  13. package/dist/components/organisms/header/RightSlot.vue.js +7 -7
  14. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +15 -15
  15. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
  16. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +20 -19
  17. package/dist/components/wrappers/WpModal.vue.js +4 -3
  18. package/dist/enums/academy.js +8 -0
  19. package/dist/enums/onboarding.js +1 -2
  20. package/dist/enums/unsubscribe.js +20 -21
  21. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +69 -153
  22. package/dist/extensions/Blocks/Recommendation/constants.js +1 -9
  23. package/dist/extensions/Blocks/Recommendation/control.js +59 -74
  24. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +13 -0
  25. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +13 -0
  26. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +13 -0
  27. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +13 -0
  28. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +13 -0
  29. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +13 -0
  30. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +13 -0
  31. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +13 -0
  32. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +13 -0
  33. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +13 -0
  34. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +13 -0
  35. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +13 -0
  36. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +13 -0
  37. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +13 -0
  38. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +13 -0
  39. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +13 -0
  40. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +13 -0
  41. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +13 -0
  42. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +13 -0
  43. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +13 -0
  44. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +13 -0
  45. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +13 -0
  46. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +13 -0
  47. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +13 -0
  48. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +13 -0
  49. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +13 -0
  50. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +13 -0
  51. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +13 -0
  52. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +13 -0
  53. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +13 -0
  54. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +13 -0
  55. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +13 -0
  56. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +13 -0
  57. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +13 -0
  58. package/dist/extensions/Blocks/Recommendation/extension.js +42 -16
  59. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +72 -117
  60. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +64 -85
  61. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +17 -54
  62. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +45 -74
  63. package/dist/guido.css +1 -1
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +52 -47
  65. package/dist/src/enums/academy.d.ts +12 -0
  66. package/dist/src/enums/onboarding.d.ts +0 -1
  67. package/dist/src/enums/unsubscribe.d.ts +0 -1
  68. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +3 -50
  69. package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -32
  70. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +2 -5
  71. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +5 -0
  72. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +5 -0
  73. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +5 -0
  74. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +5 -0
  75. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +5 -0
  76. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +5 -0
  77. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +5 -0
  78. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +5 -0
  79. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +5 -0
  80. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +5 -0
  81. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +5 -0
  82. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +5 -0
  83. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +5 -0
  84. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +5 -0
  85. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +5 -0
  86. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +5 -0
  87. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +5 -0
  88. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +5 -0
  89. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +5 -0
  90. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +5 -0
  91. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +5 -0
  92. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +5 -0
  93. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +5 -0
  94. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +5 -0
  95. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +5 -0
  96. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +5 -0
  97. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +5 -0
  98. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +5 -0
  99. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +5 -0
  100. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +5 -0
  101. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +5 -0
  102. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +5 -0
  103. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +5 -0
  104. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +5 -0
  105. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +3 -3
  106. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +7 -15
  107. package/dist/static/assets/desktop/desktop-mockup-center.svg.js +4 -0
  108. package/dist/static/assets/desktop/desktop-mockup-left.svg.js +4 -0
  109. package/dist/static/assets/desktop/desktop-mockup-right.svg.js +4 -0
  110. package/dist/static/assets/mobile/email-mockup.svg.js +4 -0
  111. package/dist/static/assets/mobile/inbox-mockup.svg.js +4 -0
  112. package/dist/static/styles/components/wide-panel.css.js +4 -0
  113. package/dist/static/styles/customEditorStyle.css.js +0 -13
  114. package/package.json +1 -1
  115. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  116. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  117. package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +0 -68
  118. package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -245
  119. package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +0 -74
  120. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.js +0 -71
  121. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.js +0 -71
  122. package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.js +0 -71
  123. package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.js +0 -71
  124. package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +0 -188
  125. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +0 -25
  126. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +0 -25
  127. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +0 -592
  128. package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +0 -16
  129. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +0 -15
  130. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +0 -15
  131. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +0 -15
  132. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +0 -15
  133. package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +0 -60
  134. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +0 -19
  135. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  136. package/dist/static/assets/phone-mockup.svg.js +0 -4
@@ -1,22 +1,22 @@
1
1
  import s from "./AmpErrorModal.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
+ import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
5
  var e = this, r = e._self._c, t = e._self._setupProxy;
6
- return r(t.WpModal, { attrs: { id: "amp-error-modal", size: "medium", description: t.trans("email-editor.amp-validation-description"), "footer-button-options": t.footerButtonOptions, title: t.trans("email-editor.amp-validation-title") }, on: { close: function(o) {
6
+ return r(t.WpModal, { attrs: { id: "amp-error-modal", size: "small", description: t.trans("email-editor.amp-validation-description", { academyLink: t.ACADEMY_LINKS.AMP_FOR_EMAILS }), "footer-button-options": t.footerButtonOptions, title: t.trans("email-editor.amp-validation-title") }, on: { close: function(o) {
7
7
  return t.emit("close");
8
- }, "primary-action": t.handleFixInCodeEditor } }, [r("div", { staticClass: "d-f f-d-c" }, [r("div", { staticClass: "mb-3" }, [r("div", { staticClass: "l-s-5 f-s-1 f-w-600 t-c-55 t-t-u" }, [e._v(" " + e._s(t.errorCountText) + " ")])]), r("div", { staticClass: "d-f f-d-c g-13 max-h-21-s o-y-a error-list" }, e._l(t.previewStore.ampErrors, function(o, i) {
9
- return r(t.InOnPageMessage, { key: i, attrs: { icon: "filled-error-box", size: "medium", type: "alert", text: o } });
8
+ }, "primary-action": t.handleFixInCodeEditor } }, [r("div", { staticClass: "d-f f-d-c" }, [r("div", { staticClass: "mb-3" }, [r("div", { staticClass: "l-s-5 f-s-1 f-w-600 t-c-55 t-t-u" }, [e._v(" " + e._s(t.errorCountText) + " ")])]), r("div", { staticClass: "d-f f-d-c g-13 max-h-21-s o-y-a error-list" }, e._l(t.previewStore.ampErrors, function(o, a) {
9
+ return r(t.InOnPageMessage, { key: a, attrs: { icon: "filled-error-box", size: "small", type: "alert", text: o } });
10
10
  }), 1)])]);
11
- }, l = [], d = /* @__PURE__ */ a(
11
+ }, l = [], d = /* @__PURE__ */ i(
12
12
  s,
13
13
  n,
14
14
  l,
15
15
  !1,
16
16
  null,
17
- "7a09985c"
17
+ "5a366d74"
18
18
  );
19
- const _ = d.exports;
19
+ const f = d.exports;
20
20
  export {
21
- _ as default
21
+ f as default
22
22
  };
@@ -1,15 +1,16 @@
1
- import { defineComponent as p, ref as m, computed as c } from "vue";
1
+ import { defineComponent as a, ref as m, computed as c } from "vue";
2
2
  import d from "../../../wrappers/WpModal.vue.js";
3
3
  import { useCodeEditorApi as l } from "../../../../composables/useCodeEditorApi.js";
4
- import { usePreviewMode as u } from "../../../../composables/usePreviewMode.js";
5
- import { useTranslations as f } from "../../../../composables/useTranslations.js";
6
- import { usePreviewStore as _ } from "../../../../stores/preview.js";
7
- import { InOnPageMessage as g } from "@useinsider/design-system-vue";
8
- const P = /* @__PURE__ */ p({
4
+ import { usePreviewMode as f } from "../../../../composables/usePreviewMode.js";
5
+ import { useTranslations as u } from "../../../../composables/useTranslations.js";
6
+ import { ACADEMY_LINKS as _ } from "../../../../enums/academy.js";
7
+ import { usePreviewStore as g } from "../../../../stores/preview.js";
8
+ import { InOnPageMessage as x } from "@useinsider/design-system-vue";
9
+ const T = /* @__PURE__ */ a({
9
10
  __name: "AmpErrorModal",
10
11
  emits: ["close"],
11
- setup(x, { emit: e }) {
12
- const o = f(), { closePreviewMode: r } = u(), { openCodeEditor: t } = l(), n = _(), s = m({
12
+ setup(y, { emit: e }) {
13
+ const o = u(), { closePreviewMode: r } = f(), { openCodeEditor: t } = l(), n = g(), s = m({
13
14
  cancelOrBackButton: {
14
15
  type: "secondary",
15
16
  labelText: o("campaign-builder.cancel"),
@@ -21,10 +22,10 @@ const P = /* @__PURE__ */ p({
21
22
  }
22
23
  }), i = () => {
23
24
  e("close"), r(), t();
24
- }, a = c(() => `${o("products.errors")}(${n.ampErrors.length})`);
25
- return { __sfc: !0, emit: e, trans: o, closePreviewMode: r, openCodeEditor: t, previewStore: n, footerButtonOptions: s, handleFixInCodeEditor: i, errorCountText: a, WpModal: d, InOnPageMessage: g };
25
+ }, p = c(() => `${o("products.errors")}(${n.ampErrors.length})`);
26
+ return { __sfc: !0, emit: e, trans: o, closePreviewMode: r, openCodeEditor: t, previewStore: n, footerButtonOptions: s, handleFixInCodeEditor: i, errorCountText: p, WpModal: d, ACADEMY_LINKS: _, InOnPageMessage: x };
26
27
  }
27
28
  });
28
29
  export {
29
- P as default
30
+ T as default
30
31
  };
@@ -1,20 +1,19 @@
1
1
  import o from "./AmpToggle.vue2.js";
2
- /* empty css */
3
2
  import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var s = function() {
3
+ var a = function() {
5
4
  var r = this, t = r._self._c, e = r._self._setupProxy;
6
- return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(l) {
5
+ return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "with-icon": "", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2", attrs: { id: "guido__amp-error-button", "left-icon": "filled-amp", type: "danger", "label-text": e.trans("email-editor.check-amp-errors", { count: e.previewStore.ampErrors.length }) }, on: { click: function(m) {
7
6
  return e.previewStore.openErrorModal();
8
7
  } } }) : r._e()], 1)]);
9
- }, a = [], i = /* @__PURE__ */ n(
8
+ }, i = [], s = /* @__PURE__ */ n(
10
9
  o,
11
- s,
12
10
  a,
11
+ i,
13
12
  !1,
14
13
  null,
15
- "b5997368"
14
+ null
16
15
  );
17
- const d = i.exports;
16
+ const p = s.exports;
18
17
  export {
19
- d as default
18
+ p as default
20
19
  };
@@ -1,26 +1,28 @@
1
- import { defineComponent as m, computed as n } from "vue";
2
- import { useTranslations as r } from "../../../../composables/useTranslations.js";
3
- import { usePreviewStore as i } from "../../../../stores/preview.js";
1
+ import { defineComponent as n, computed as i } from "vue";
2
+ import { useTranslations as m } from "../../../../composables/useTranslations.js";
3
+ import { usePreviewStore as r } from "../../../../stores/preview.js";
4
4
  import { InButtonV2 as s, InSegments as l } from "@useinsider/design-system-vue";
5
- const _ = /* @__PURE__ */ m({
5
+ const _ = /* @__PURE__ */ n({
6
6
  __name: "AmpToggle",
7
7
  setup(p) {
8
- const t = i(), e = r(), o = n(() => [
8
+ const e = r(), t = m(), o = i(() => [
9
9
  {
10
- text: e("dynamic-creatives.html"),
11
- value: "html"
10
+ text: t("dynamic-creatives.html"),
11
+ value: "html",
12
+ icon: "line-code"
12
13
  },
13
14
  {
14
- text: e("email-editor.amp-html"),
15
+ text: t("email-editor.amp-html"),
15
16
  value: "AMP",
16
- tooltipText: t.hasAMP ? "" : e("email-editor.preview-amp-unavailable-tooltip"),
17
+ icon: "filled-amp",
18
+ tooltipText: e.hasAMP ? "" : t("email-editor.preview-amp-unavailable-tooltip"),
17
19
  position: "bottom",
18
20
  align: "center",
19
- disable: !t.hasAMP
21
+ disable: !e.hasAMP
20
22
  }
21
23
  ]);
22
- return { __sfc: !0, previewStore: t, trans: e, segmentList: o, handleFormatChange: (a) => {
23
- t.setEmailFormat(a);
24
+ return { __sfc: !0, previewStore: e, trans: t, segmentList: o, handleFormatChange: (a) => {
25
+ e.setEmailFormat(a);
24
26
  }, InSegments: l, InButtonV2: s };
25
27
  }
26
28
  });
@@ -1,22 +1,18 @@
1
- import o from "./DesktopPreview.vue2.js";
1
+ import r from "./DesktopPreview.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var s = function() {
5
- var r = this, t = r._self._c, e = r._self._setupProxy;
6
- return t("div", { ref: "containerRef", staticStyle: { "min-height": "720px", height: "80vh" } }, [t(e.InContainer, { staticClass: "s-2 m-b-5 desktop-preview-container", attrs: { "full-width-content-status": "", "header-status": "", "border-radius": "bor-r-1", "container-type": "default", "footer-status": !1 }, scopedSlots: r._u([{ key: "headerLeftSlot", fn: function() {
7
- return [t(e.EmailHeaderInfo)];
8
- }, proxy: !0 }, { key: "headerRightSlot", fn: function() {
9
- return [t(e.EmailSizeIndicator)];
10
- }, proxy: !0 }]) }, [e.isContainerReady ? t("iframe", { staticClass: "email-iframe w-1 bor-w-0", style: { height: e.iframeHeight }, attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts", srcdoc: e.previewStore.previewHtml } }) : r._e()])], 1);
11
- }, i = [], n = /* @__PURE__ */ a(
12
- o,
13
- s,
4
+ var i = function() {
5
+ var t = this, e = t._self._c, s = t._self._setupProxy;
6
+ return e("div", { staticClass: "desktop-preview-wrapper" }, [e("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 mb-6 l-s-5" }, [t._v(" " + t._s(s.trans("email-editor.desktop-preview")) + " ")]), e("div", { ref: "containerRef", staticClass: "desktop-preview d-f f-d-c o-h s-1" }, [e("div", { staticClass: "desktop-preview__browser-header d-f w-1 f-sh-0" }, [e("img", { staticClass: "desktop-preview__browser-header-left f-sh-0", attrs: { alt: "", src: s.desktopMockupLeft } }), e("div", { staticClass: "desktop-preview__browser-header-center f-g-1", style: s.centerBackgroundStyle }), e("img", { staticClass: "desktop-preview__browser-header-right f-sh-0", attrs: { alt: "", src: s.desktopMockupRight } })]), e("div", { staticClass: "desktop-preview__content d-f f-g-1 o-h b-c-5 min-h-0" }, [e("div", { staticClass: "f-g-1 h-1 o-h b-c-4 min-w-0" }, [s.isContainerReady ? e("iframe", { staticClass: "desktop-preview__iframe d-b w-1 h-1 b-c-4 bor-s-n", attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts", srcdoc: s.previewStore.previewHtml } }) : t._e()])])])]);
7
+ }, o = [], p = /* @__PURE__ */ a(
8
+ r,
14
9
  i,
10
+ o,
15
11
  !1,
16
12
  null,
17
- "2dd60b0c"
13
+ "8ab430ce"
18
14
  );
19
- const d = n.exports;
15
+ const n = p.exports;
20
16
  export {
21
- d as default
17
+ n as default
22
18
  };
@@ -1,31 +1,27 @@
1
- import { defineComponent as d, ref as r, onMounted as h, onBeforeUnmount as v, nextTick as g } from "vue";
2
- import { usePreviewStore as _ } from "../../../../stores/preview.js";
3
- import { InContainer as I } from "@useinsider/design-system-vue";
4
- import R from "./EmailHeaderInfo.vue.js";
5
- import C from "./EmailSizeIndicator.vue.js";
6
- const B = /* @__PURE__ */ d({
1
+ import { defineComponent as m, ref as s, computed as p, onMounted as u, onBeforeUnmount as f, nextTick as l } from "vue";
2
+ import { useTranslations as d } from "../../../../composables/useTranslations.js";
3
+ import k from "../../../../static/assets/desktop/desktop-mockup-center.svg.js";
4
+ import _ from "../../../../static/assets/desktop/desktop-mockup-left.svg.js";
5
+ import v from "../../../../static/assets/desktop/desktop-mockup-right.svg.js";
6
+ import { usePreviewStore as g } from "../../../../stores/preview.js";
7
+ const x = /* @__PURE__ */ m({
7
8
  __name: "DesktopPreview",
8
- setup(H) {
9
- const t = r(), i = r("400px"), a = r(!1), m = _(), n = () => {
10
- if (!t.value)
11
- return;
12
- const o = t.value.querySelector(".in-container");
13
- if (!o)
14
- return;
15
- const u = o.getBoundingClientRect(), s = o.querySelector(".in-container__header"), f = s ? s.getBoundingClientRect().height : 0, p = u.height - f;
16
- i.value = `${p}px`;
17
- };
9
+ setup(w) {
10
+ const c = d(), o = s(), t = s(!1), i = g();
18
11
  let e = null;
19
- const c = () => {
20
- n(), t.value && (e = new ResizeObserver(n), e.observe(t.value), g(() => {
21
- a.value = !0;
12
+ const a = p(() => ({
13
+ backgroundImage: `url("${k}")`
14
+ })), n = () => {
15
+ o.value && (e = new ResizeObserver(() => {
16
+ }), e.observe(o.value), l(() => {
17
+ t.value = !0;
22
18
  }));
23
- }, l = () => {
19
+ }, r = () => {
24
20
  e == null || e.disconnect();
25
21
  };
26
- return h(c), v(l), { __sfc: !0, containerRef: t, iframeHeight: i, isContainerReady: a, previewStore: m, calculateIframeHeight: n, resizeObserver: e, initIframe: c, cleanIframe: l, InContainer: I, EmailHeaderInfo: R, EmailSizeIndicator: C };
22
+ return u(n), f(r), { __sfc: !0, trans: c, containerRef: o, isContainerReady: t, previewStore: i, resizeObserver: e, centerBackgroundStyle: a, initIframe: n, cleanIframe: r, desktopMockupLeft: _, desktopMockupRight: v };
27
23
  }
28
24
  });
29
25
  export {
30
- B as default
26
+ x as default
31
27
  };
@@ -2,15 +2,15 @@ import i from "./EmailSizeIndicator.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var o = function() {
5
- var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "d-f a-i-c j-c-c" }, [e(t.InProgress, { staticClass: "min-w-15-s", attrs: { id: "email-size-progress", "description-status": "", "description-position": "left", description: t.htmlSize, "max-value": t.MAX_EMAIL_SIZE_IN_KB, type: t.progress.type, value: t.progress.value } }), e(t.InTooltip, { staticClass: "d-f ml-1", attrs: { id: "email-size-tooltip", align: "center", position: "bottom", text: t.trans("email-editor.preview-design-size-tooltip") } })], 1);
5
+ var t = this, s = t._self._c, e = t._self._setupProxy;
6
+ return e.previewStore.previewHtml ? s("div", { staticClass: "d-f a-i-c j-c-c" }, [s(e.InProgress, { staticClass: "min-w-15-s", attrs: { id: "email-size-progress", "description-status": "", "description-position": "left", description: e.htmlSize, "max-value": e.MAX_EMAIL_SIZE_IN_KB, type: e.progress.type, value: e.progress.value } }), s(e.InTooltip, { staticClass: "d-f ml-1", attrs: { id: "email-size-tooltip", align: "center", position: "bottom", text: e.trans("email-editor.preview-design-size-tooltip") } })], 1) : t._e();
7
7
  }, a = [], n = /* @__PURE__ */ r(
8
8
  i,
9
9
  o,
10
10
  a,
11
11
  !1,
12
12
  null,
13
- "c2adc57d"
13
+ "913a3417"
14
14
  );
15
15
  const m = n.exports;
16
16
  export {
@@ -1,17 +1,17 @@
1
- import t from "./MobilePreview.vue2.js";
2
- import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
- var a = function() {
4
- var o = this, s = o._self._c, e = o._self._setupProxy;
5
- return s("div", { staticClass: "d-f j-c-c pl-5" }, [s("div", { staticClass: "p-r w-35-s h-26-s" }, [s("img", { staticClass: "w-1 h-1 d-b p-e-n", attrs: { alt: e.mockup.alt, src: e.mockup.image } }), s("div", { staticClass: "p-a w-21-s h-24-s o-h", style: { top: e.phoneScreenTopMargin, left: "20px" } }, [e.showInbox ? s(e.InboxView, { on: { "open-email": e.openEmail } }) : s(e.ContentView, { on: { "back-to-inbox": e.backToInbox } })], 1)])]);
6
- }, r = [], i = /* @__PURE__ */ n(
7
- t,
8
- a,
1
+ import o from "./MobilePreview.vue2.js";
2
+ import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var i = function() {
4
+ var t = this, s = t._self._c, e = t._self._setupProxy;
5
+ return s("div", { staticClass: "mobile-preview-wrapper" }, [s("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 ml-5 mb-6 l-s-5" }, [t._v(" " + t._s(e.trans("email-editor.mobile-preview")) + " ")]), s("div", { staticClass: "d-f j-c-c pl-5" }, [s("div", { staticClass: "mobile-preview-wrapper__phone p-r w-35-s h-26-s" }, [s("img", { staticClass: "w-1 h-1 d-b p-e-n", attrs: { alt: e.mockup.alt, src: e.mockup.image } }), s("div", { staticClass: "p-a w-21-s h-24-s o-h", style: { top: e.phoneScreenTopMargin, left: "20px" } }, [e.showInbox ? s(e.InboxView, { on: { "open-email": e.openEmail } }) : s(e.ContentView, { on: { "back-to-inbox": e.backToInbox } })], 1)])])]);
6
+ }, r = [], n = /* @__PURE__ */ a(
7
+ o,
8
+ i,
9
9
  r,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const _ = i.exports;
14
+ const m = n.exports;
15
15
  export {
16
- _ as default
16
+ m as default
17
17
  };
@@ -1,22 +1,23 @@
1
- import { defineComponent as m, ref as i, computed as e } from "vue";
2
- import a from "../../../../static/assets/inbox-mockup.svg.js";
3
- import c from "../../../../static/assets/phone-mockup.svg.js";
4
- import s from "./ContentView.vue.js";
5
- import u from "./InboxView.vue.js";
6
- const w = /* @__PURE__ */ m({
1
+ import { defineComponent as a, ref as i, computed as e } from "vue";
2
+ import { useTranslations as s } from "../../../../composables/useTranslations.js";
3
+ import c from "../../../../static/assets/mobile/email-mockup.svg.js";
4
+ import u from "../../../../static/assets/mobile/inbox-mockup.svg.js";
5
+ import f from "./ContentView.vue.js";
6
+ import l from "./InboxView.vue.js";
7
+ const k = /* @__PURE__ */ a({
7
8
  __name: "MobilePreview",
8
- setup(f) {
9
- const o = i(!1), n = e(() => ({
10
- image: o.value ? a : c,
9
+ setup(v) {
10
+ const n = s(), o = i(!1), r = e(() => ({
11
+ image: o.value ? u : c,
11
12
  alt: o.value ? "Inbox mockup" : "Phone mockup"
12
- })), r = () => {
13
+ })), t = () => {
13
14
  o.value = !1;
14
- }, t = () => {
15
+ }, m = () => {
15
16
  o.value = !0;
16
- }, p = e(() => o.value ? "88px" : "44px");
17
- return { __sfc: !0, showInbox: o, mockup: n, openEmail: r, backToInbox: t, phoneScreenTopMargin: p, ContentView: s, InboxView: u };
17
+ }, p = e(() => o.value ? "88px" : "64px");
18
+ return { __sfc: !0, trans: n, showInbox: o, mockup: r, openEmail: t, backToInbox: m, phoneScreenTopMargin: p, ContentView: f, InboxView: l };
18
19
  }
19
20
  });
20
21
  export {
21
- w as default
22
+ k as default
22
23
  };
@@ -3,14 +3,14 @@ import s from "./LeftSlot.vue2.js";
3
3
  import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
5
  var e = this, o = e._self._c, t = e._self._setupProxy;
6
- return o("div", { staticClass: "d-f a-i-c" }, [o(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "text", type: "secondary", "label-text": t.backButtonLabel }, on: { click: t.handleBackClick } }), t.editorStore.isVersionHistoryOpen ? o(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
6
+ return o("div", { staticClass: "d-f a-i-c" }, [o(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "label-text": t.backButtonLabel }, on: { click: t.handleBackClick } }), t.editorStore.isVersionHistoryOpen ? o(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
7
7
  }, a = [], i = /* @__PURE__ */ r(
8
8
  s,
9
9
  n,
10
10
  a,
11
11
  !1,
12
12
  null,
13
- "06e6f7a7"
13
+ "f0b166f5"
14
14
  );
15
15
  const p = i.exports;
16
16
  export {
@@ -1,17 +1,18 @@
1
1
  import i from "./MiddleSlot.vue2.js";
2
+ /* empty css */
2
3
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
4
  var n = function() {
4
5
  var e = this, o = e._self._c, t = e._self._setupProxy;
5
- return t.editorStore.isVersionHistoryOpen ? o("div", { staticClass: "d-f" }, [o(t.VersionHistory), o(t.VersionHistoryViewOptions)], 1) : o("div", { staticClass: "d-f" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-3" }), t.editorStore.isPreviewModeOpen ? o(t.AmpToggle) : e._e()], 1);
6
+ return t.editorStore.isVersionHistoryOpen ? o("div", { staticClass: "d-f" }, [o(t.VersionHistory), o(t.VersionHistoryViewOptions)], 1) : t.editorStore.isPreviewModeOpen ? o("div", { staticClass: "d-f" }, [o(t.EmailSizeIndicator), o(t.AmpToggle)], 1) : o("div", { staticClass: "d-f middle-slot__buttons" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-2" })], 1);
6
7
  }, d = [], l = /* @__PURE__ */ s(
7
8
  i,
8
9
  n,
9
10
  d,
10
11
  !1,
11
12
  null,
12
- null
13
+ "421621fe"
13
14
  );
14
- const p = l.exports;
15
+ const _ = l.exports;
15
16
  export {
16
- p as default
17
+ _ as default
17
18
  };
@@ -1,20 +1,21 @@
1
- import { defineComponent as p, computed as i } from "vue";
2
- import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
1
+ import { defineComponent as m, computed as i } from "vue";
2
+ import { usePreviewMode as p } from "../../../composables/usePreviewMode.js";
3
3
  import { useTranslations as l } from "../../../composables/useTranslations.js";
4
4
  import d from "../email-preview/amp/AmpToggle.vue.js";
5
- import { useEditorStore as w } from "../../../stores/editor.js";
6
- import { getTooltipOptions as c } from "../../../utils/tooltipUtils.js";
7
- import { InButtonV2 as f } from "@useinsider/design-system-vue";
8
- import a from "./version-history/VersionHistory.vue.js";
9
- import v from "./version-history/ViewOptions.vue.js";
10
- import u from "./ViewOptions.vue.js";
11
- const C = /* @__PURE__ */ p({
5
+ import w from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
6
+ import { useEditorStore as c } from "../../../stores/editor.js";
7
+ import { getTooltipOptions as f } from "../../../utils/tooltipUtils.js";
8
+ import { InButtonV2 as a } from "@useinsider/design-system-vue";
9
+ import v from "./version-history/VersionHistory.vue.js";
10
+ import u from "./version-history/ViewOptions.vue.js";
11
+ import T from "./ViewOptions.vue.js";
12
+ const I = /* @__PURE__ */ m({
12
13
  __name: "MiddleSlot",
13
- setup(T) {
14
- const o = w(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), s = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), n = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
15
- return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: s, codeEditorTooltipText: n, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), AmpToggle: d, getTooltipOptions: c, InButtonV2: f, VersionHistory: a, VersionHistoryViewOptions: v, ViewOptions: u };
14
+ setup(_) {
15
+ const o = c(), e = l(), { openPreviewMode: t, closePreviewMode: r } = p(), s = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), n = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
16
+ return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: s, codeEditorTooltipText: n, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), AmpToggle: d, EmailSizeIndicator: w, getTooltipOptions: f, InButtonV2: a, VersionHistory: v, VersionHistoryViewOptions: u, ViewOptions: T };
16
17
  }
17
18
  });
18
19
  export {
19
- C as default
20
+ I as default
20
21
  };
@@ -1,13 +1,13 @@
1
- import u from "./RightSlot.vue2.js";
2
- import d from "../../../_virtual/_plugin-vue2_normalizer.js";
1
+ import d from "./RightSlot.vue2.js";
2
+ import u from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var p = function() {
4
- var o, i, n, a, l, r;
5
- var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "d-f" }, [(i = (o = t.config) == null ? void 0 : o.features) != null && i.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : s._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (a = (n = t.config) == null ? void 0 : n.features) != null && a.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : s._e(), (r = (l = t.config) == null ? void 0 : l.features) != null && r.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.testEmailClick } }) : s._e(), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(f) {
4
+ var s, i, n, a, l, r;
5
+ var e = this, o = e._self._c, t = e._self._setupProxy;
6
+ return o("div", { staticClass: "d-f" }, [(i = (s = t.config) == null ? void 0 : s.features) != null && i.versionHistory && !t.editorStore.isPreviewModeOpen ? o(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : e._e(), o(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (a = (n = t.config) == null ? void 0 : n.features) != null && a.saveAsTemplate ? o(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : e._e(), (r = (l = t.config) == null ? void 0 : l.features) != null && r.testMessage ? o(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.testEmailClick } }) : e._e(), t.editorStore.isPreviewModeOpen ? e._e() : o(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(f) {
7
7
  return t.handleSave(!1);
8
8
  } } })], 1);
9
- }, c = [], _ = /* @__PURE__ */ d(
10
- u,
9
+ }, c = [], _ = /* @__PURE__ */ u(
10
+ d,
11
11
  p,
12
12
  c,
13
13
  !1,
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as v, ref as D, computed as o } from "vue";
2
- import h from "../../wrappers/WpModal.vue.js";
3
- import { useConfig as y } from "../../../composables/useConfig.js";
4
- import { useTranslations as _ } from "../../../composables/useTranslations.js";
5
- import { ACADEMY_LINK as c } from "../../../enums/onboarding.js";
6
- import C from "../../../static/assets/onboarding-img.svg.js";
7
- import { useOnboardingStore as L } from "../../../stores/onboarding.js";
8
- import { isAfterDate as w, formatShortDate as N } from "../../../utils/dateUtil.js";
9
- const E = /* @__PURE__ */ v({
2
+ import _ from "../../wrappers/WpModal.vue.js";
3
+ import { useConfig as h } from "../../../composables/useConfig.js";
4
+ import { useTranslations as y } from "../../../composables/useTranslations.js";
5
+ import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
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({
10
10
  __name: "NewVersionPopup",
11
11
  emits: ["onboarding-finished"],
12
- setup(S, { emit: a }) {
13
- const e = _(), t = L(), s = D(!0), { config: p } = y(), i = o(() => {
12
+ setup(I, { emit: a }) {
13
+ const e = y(), t = C(), s = D(!0), { config: p } = h(), i = o(() => {
14
14
  var l, m;
15
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(() => N(
16
+ }), n = o(() => w(i.value || 0)), d = o(() => A(
17
17
  i.value || 0
18
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
19
  sunsetDate: d.value,
20
- academyLink: c
20
+ academyLink: c.EMAIL_EDITOR
21
21
  }) : e("email-editor.onboarding-description", {
22
- academyLink: c
22
+ academyLink: c.EMAIL_EDITOR
23
23
  })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), b = o(() => ({
24
24
  primaryButton: {
25
25
  type: "primary",
@@ -38,9 +38,9 @@ const E = /* @__PURE__ */ v({
38
38
  t.onRemindMeLater(), r();
39
39
  }, handleClose: () => {
40
40
  t.onNewVersionPopupClose(), r();
41
- }, WpModal: h, onboardingImageSvg: C };
41
+ }, WpModal: _, onboardingImageSvg: L };
42
42
  }
43
43
  });
44
44
  export {
45
- E as default
45
+ V as default
46
46
  };
@@ -10,7 +10,7 @@ var i = function() {
10
10
  r,
11
11
  !1,
12
12
  null,
13
- "bb3bb07c"
13
+ "43c617a7"
14
14
  );
15
15
  const _ = c.exports;
16
16
  export {
@@ -1,18 +1,19 @@
1
- import { defineComponent as v, ref as b, computed as m, watch as _ } from "vue";
2
- import B from "../../wrappers/WpDrawer.vue.js";
1
+ import { defineComponent as h, ref as b, computed as g, watch as _ } from "vue";
2
+ import v from "../../wrappers/WpDrawer.vue.js";
3
3
  import { useToaster as U } from "../../../composables/useToaster.js";
4
- import { useTranslations as w } from "../../../composables/useTranslations.js";
5
- import { ToasterTypeOptions as N } from "../../../enums/toaster.js";
6
- import { PAGE_TYPES as l, ACADEMY_LINK as D, getTypeTranslations as P, UNSUBSCRIBE_PAGES_LINK as R } from "../../../enums/unsubscribe.js";
7
- import { useUnsubscribeStore as I } from "../../../stores/unsubscribe.js";
4
+ import { useTranslations as N } from "../../../composables/useTranslations.js";
5
+ import { ACADEMY_LINKS as w } from "../../../enums/academy.js";
6
+ import { ToasterTypeOptions as R } from "../../../enums/toaster.js";
7
+ import { PAGE_TYPES as l, getTypeTranslations as D, UNSUBSCRIBE_PAGES_LINK as I } from "../../../enums/unsubscribe.js";
8
+ import { useUnsubscribeStore as P } from "../../../stores/unsubscribe.js";
8
9
  import { InSegments as G } from "@useinsider/design-system-vue";
9
- const K = /* @__PURE__ */ v({
10
+ const V = /* @__PURE__ */ h({
10
11
  __name: "UnsubscribeTypeSelection",
11
- setup(x) {
12
- const e = w(), { showToaster: f } = U(), t = I(), n = b(!1), i = b(!0), o = b(l.GLOBAL_UNSUBSCRIBE), S = e(
12
+ setup(L) {
13
+ const e = N(), { showToaster: f } = U(), t = P(), n = b(!1), i = b(!0), o = b(l.GLOBAL_UNSUBSCRIBE), S = e(
13
14
  "unsubscription-preference.select-unsubscribe-page-description",
14
- { action: `<a href="${D}" target="_blank">${e("ds-rules.visit-academy")}</a>` }
15
- ), T = m(() => [
15
+ { action: `<a href="${w.GLOBAL_UNSUBSCRIBE}" target="_blank">${e("ds-rules.visit-academy")}</a>` }
16
+ ), T = g(() => [
16
17
  {
17
18
  description: e("unsubscription-preference.type-global-unsubscribe-description"),
18
19
  icon: "line-contact-global-unsub-page",
@@ -30,7 +31,7 @@ const K = /* @__PURE__ */ v({
30
31
  disable: t.isSubscriptionPreferencesCenterDisabled,
31
32
  tooltipText: t.isSubscriptionPreferencesCenterDisabled ? e("unsubscription-preference.pref-center-added") : ""
32
33
  }
33
- ]), y = m(() => ({
34
+ ]), y = g(() => ({
34
35
  primaryButton: {
35
36
  styling: "solid",
36
37
  type: "primary",
@@ -56,13 +57,13 @@ const K = /* @__PURE__ */ v({
56
57
  }, 500);
57
58
  }, E = (s) => {
58
59
  o.value = s;
59
- }, g = () => {
60
+ }, m = () => {
60
61
  const s = t.hasTemplatesByCollectionType, r = [];
61
62
  if (Object.entries(s).forEach(([c, p]) => {
62
63
  p || r.push(Number(c));
63
64
  }), r.length === 0)
64
65
  return !0;
65
- const h = P(), a = r.map((c) => h[c]);
66
+ const B = D(), a = r.map((c) => B[c]);
66
67
  let u = "";
67
68
  if (r.length === 1)
68
69
  u = e("unsubscription-preference.create-page-to-continue", {
@@ -81,17 +82,17 @@ const K = /* @__PURE__ */ v({
81
82
  });
82
83
  }
83
84
  return f({
84
- type: N.Warning,
85
+ type: R.Warning,
85
86
  message: u,
86
87
  actionButton: {
87
88
  text: "Go to Unsubscribe Pages",
88
89
  onClick: () => {
89
- window.location.href = R;
90
+ window.location.href = I;
90
91
  }
91
92
  }
92
93
  }), !1;
93
94
  }, C = async () => {
94
- if (n.value = !0, await t.fetchTemplates(), t.setCollection(o.value), !g()) {
95
+ if (n.value = !0, await t.fetchTemplates(), t.setCollection(o.value), !m()) {
95
96
  n.value = !1, d();
96
97
  return;
97
98
  }
@@ -99,9 +100,9 @@ const K = /* @__PURE__ */ v({
99
100
  };
100
101
  return _(() => t.typeSelectionDrawerStatus, (s) => {
101
102
  s && (i.value = !0, o.value = l.GLOBAL_UNSUBSCRIBE, t.isGlobalUnsubscribeDisabled && (o.value = t.isSubscriptionPreferencesCenterDisabled ? 0 : l.SUBSCRIPTION_PREFERENCE_CENTER), i.value = !1);
102
- }), { __sfc: !0, trans: e, showToaster: f, unsubscribeStore: t, isSelecting: n, skeletonStatus: i, selectedCollection: o, descriptionText: S, segmentList: T, footerButtonGroupOptions: y, closeModal: d, changeCollection: E, validateTemplates: g, selectCollection: C, WpDrawer: B, InSegments: G };
103
+ }), { __sfc: !0, trans: e, showToaster: f, unsubscribeStore: t, isSelecting: n, skeletonStatus: i, selectedCollection: o, descriptionText: S, segmentList: T, footerButtonGroupOptions: y, closeModal: d, changeCollection: E, validateTemplates: m, selectCollection: C, WpDrawer: v, InSegments: G };
103
104
  }
104
105
  });
105
106
  export {
106
- K as default
107
+ V as default
107
108
  };
@@ -1,4 +1,5 @@
1
1
  import r from "./WpModal.vue2.js";
2
+ /* empty css */
2
3
  import s from "../../_virtual/_plugin-vue2_normalizer.js";
3
4
  var i = function() {
4
5
  var t = this, o = t._self._c, e = t._self._setupProxy;
@@ -19,9 +20,9 @@ var i = function() {
19
20
  u,
20
21
  !1,
21
22
  null,
22
- null
23
+ "5269640b"
23
24
  );
24
- const p = c.exports;
25
+ const _ = c.exports;
25
26
  export {
26
- p as default
27
+ _ as default
27
28
  };