@useinsider/guido 1.4.4 → 2.0.0-beta.015a9b6

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 (115) hide show
  1. package/README.md +295 -664
  2. package/dist/@types/config/defaults.js +44 -0
  3. package/dist/@types/config/schemas.js +231 -0
  4. package/dist/@types/config/validator.js +56 -0
  5. package/dist/components/Guido.vue.js +1 -1
  6. package/dist/components/Guido.vue2.js +64 -86
  7. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +7 -7
  8. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +7 -8
  9. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +4 -3
  10. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +10 -14
  11. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +18 -22
  12. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
  13. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +5 -5
  14. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +13 -13
  15. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +10 -10
  16. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +15 -14
  17. package/dist/components/organisms/header/LeftSlot.vue.js +2 -2
  18. package/dist/components/organisms/header/LeftSlot.vue2.js +18 -15
  19. package/dist/components/organisms/header/MiddleSlot.vue.js +1 -1
  20. package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -13
  21. package/dist/components/organisms/header/RightSlot.vue.js +12 -12
  22. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +22 -19
  23. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +4 -4
  24. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +8 -8
  25. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
  26. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +17 -17
  27. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -10
  28. package/dist/composables/useActionsApi.js +42 -25
  29. package/dist/composables/useBlocksConfig.js +23 -20
  30. package/dist/composables/useConfig.js +51 -5
  31. package/dist/composables/useHtmlCompiler.js +20 -19
  32. package/dist/composables/useHtmlValidator.js +41 -41
  33. package/dist/composables/usePartner.js +19 -9
  34. package/dist/composables/useStripo.js +51 -50
  35. package/dist/composables/useTimerClone.js +53 -0
  36. package/dist/composables/useTranslations.js +3 -2
  37. package/dist/config/compiler/unsubscribeCompilerRules.js +1 -1
  38. package/dist/enums/defaults.js +4 -67
  39. package/dist/enums/unsubscribe.js +23 -20
  40. package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
  41. package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
  42. package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
  43. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
  44. package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
  45. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +12 -11
  46. package/dist/extensions/Blocks/controlFactories.js +122 -111
  47. package/dist/guido.css +1 -1
  48. package/dist/library.js +12 -2
  49. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +57 -52
  50. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +10 -10
  51. package/dist/node_modules/valibot/dist/index.js +476 -103
  52. package/dist/services/stripoApi.js +13 -14
  53. package/dist/services/templateLibraryApi.js +18 -18
  54. package/dist/src/@types/config/defaults.d.ts +68 -0
  55. package/dist/src/@types/config/index.d.ts +14 -0
  56. package/dist/src/@types/config/schemas.d.ts +509 -0
  57. package/dist/src/@types/config/types.d.ts +142 -0
  58. package/dist/src/@types/config/validator.d.ts +119 -0
  59. package/dist/src/@types/generic.d.ts +4 -45
  60. package/dist/src/components/Guido.vue.d.ts +13 -12
  61. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  62. package/dist/src/composables/useActionsApi.d.ts +2 -0
  63. package/dist/src/composables/useConfig.d.ts +186 -2
  64. package/dist/src/composables/usePartner.d.ts +8 -0
  65. package/dist/src/composables/useTimerClone.d.ts +6 -0
  66. package/dist/src/enums/defaults.d.ts +5 -6
  67. package/dist/src/enums/unsubscribe.d.ts +5 -1
  68. package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
  69. package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
  70. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
  71. package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
  72. package/dist/src/library.d.ts +3 -1
  73. package/dist/src/stores/config.d.ts +1564 -102
  74. package/dist/static/assets/desktop/desktop-mockup-center.svg.js +4 -0
  75. package/dist/static/assets/desktop/desktop-mockup-left.svg.js +4 -0
  76. package/dist/static/assets/desktop/desktop-mockup-right.svg.js +4 -0
  77. package/dist/static/assets/mobile/email-mockup.svg.js +4 -0
  78. package/dist/static/assets/mobile/inbox-mockup.svg.js +4 -0
  79. package/dist/static/styles/components/narrow-panel.css.js +0 -10
  80. package/dist/stores/config.js +141 -9
  81. package/package.json +1 -1
  82. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  83. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  84. package/dist/node_modules/lodash-es/_apply.js +0 -16
  85. package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
  86. package/dist/node_modules/lodash-es/_assignValue.js +0 -10
  87. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
  88. package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
  89. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
  90. package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
  91. package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  92. package/dist/node_modules/lodash-es/_baseRest.js +0 -9
  93. package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
  94. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  95. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
  96. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  97. package/dist/node_modules/lodash-es/_copyArray.js +0 -9
  98. package/dist/node_modules/lodash-es/_copyObject.js +0 -14
  99. package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
  100. package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
  101. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  102. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  103. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
  104. package/dist/node_modules/lodash-es/_overRest.js +0 -15
  105. package/dist/node_modules/lodash-es/_safeGet.js +0 -7
  106. package/dist/node_modules/lodash-es/_setToString.js +0 -6
  107. package/dist/node_modules/lodash-es/_shortOut.js +0 -16
  108. package/dist/node_modules/lodash-es/constant.js +0 -8
  109. package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  110. package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
  111. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  112. package/dist/node_modules/lodash-es/merge.js +0 -8
  113. package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
  114. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  115. package/dist/static/assets/phone-mockup.svg.js +0 -4
@@ -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,18 +1,18 @@
1
1
  import e from "./InboxView.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var r = function() {
3
+ import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var a = function() {
5
5
  var s = this, t = s._self._c, c = s._self._setupProxy;
6
6
  return t("div", { staticClass: "p-y-13 p-x-3 bor-b-w-1 bor-b-s-s bor-b-c-50 cur-p b-c-4 b-c-h-5 p-3", on: { click: function(_) {
7
7
  return c.emit("open-email");
8
8
  } } }, [t("div", { staticClass: "d-f j-c-s-b a-i-c w-1" }, [t("div", { staticClass: "f-g-1 min-w-0-s" }, [t("div", { staticClass: "f-s-1 f-w-600 t-c-53 l-h-1 mb-12 cropped-text" }, [s._v(" " + s._s(c.senderName) + " ")]), t("div", { staticClass: "f-s-12 f-w-400 t-c-55 l-h-1 cropped-text" }, [s._v(" " + s._s(c.subject) + " ")])]), t("div", { staticClass: "f-sh-0 ml-2 f-s-12 f-w-400 t-c-55 l-h-1" }, [s._v(" " + s._s(c.trans("product-catalog.today")) + " ")]), t(c.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-right" } })], 1)]);
9
- }, i = [], n = /* @__PURE__ */ a(
9
+ }, i = [], n = /* @__PURE__ */ r(
10
10
  e,
11
- r,
11
+ a,
12
12
  i,
13
13
  !1,
14
14
  null,
15
- "f20b3a9b"
15
+ "4b876c1b"
16
16
  );
17
17
  const m = n.exports;
18
18
  export {
@@ -1,21 +1,21 @@
1
- import { defineComponent as a, computed as o } from "vue";
2
- import { useConfig as i } from "../../../../composables/useConfig.js";
3
- import { useTranslations as c } from "../../../../composables/useTranslations.js";
1
+ import { defineComponent as c, computed as r } from "vue";
2
+ import { useConfig as u } from "../../../../composables/useConfig.js";
3
+ import { useTranslations as d } from "../../../../composables/useTranslations.js";
4
4
  import { InIcons as f } from "@useinsider/design-system-vue";
5
- const b = /* @__PURE__ */ a({
5
+ const j = /* @__PURE__ */ c({
6
6
  __name: "InboxView",
7
7
  emits: ["open-email"],
8
- setup(p, { emit: s }) {
9
- const t = c(), { config: n } = i(), r = o(() => {
10
- var e;
11
- return ((e = n.emailHeader) == null ? void 0 : e.senderName) || t("settings.sender-name");
12
- }), m = o(() => {
13
- var e;
14
- return ((e = n.emailHeader) == null ? void 0 : e.subject) || t("email-editor.default-subject");
8
+ setup(p, { emit: m }) {
9
+ const n = d(), { config: s } = u(), a = r(() => {
10
+ var e, t, o;
11
+ return ((o = (t = (e = s.value) == null ? void 0 : e.editor) == null ? void 0 : t.emailHeader) == null ? void 0 : o.senderName) || n("settings.sender-name");
12
+ }), i = r(() => {
13
+ var e, t, o;
14
+ return ((o = (t = (e = s.value) == null ? void 0 : e.editor) == null ? void 0 : t.emailHeader) == null ? void 0 : o.subject) || n("email-editor.default-subject");
15
15
  });
16
- return { __sfc: !0, emit: s, trans: t, config: n, senderName: r, subject: m, InIcons: f };
16
+ return { __sfc: !0, emit: m, trans: n, config: s, senderName: a, subject: i, InIcons: f };
17
17
  }
18
18
  });
19
19
  export {
20
- b as default
20
+ j as default
21
21
  };
@@ -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
- "0502bceb"
13
+ "f0b166f5"
14
14
  );
15
15
  const p = i.exports;
16
16
  export {
@@ -1,17 +1,20 @@
1
- import { defineComponent as c, computed as a } from "vue";
2
- import { useConfig as m } from "../../../composables/useConfig.js";
3
- import { useBack as u } from "../../../composables/useGuidoActions.js";
4
- import { usePreviewMode as f } from "../../../composables/usePreviewMode.js";
5
- import { useTranslations as p } from "../../../composables/useTranslations.js";
6
- import { useVersionHistoryApi as d } from "../../../composables/useVersionHistoryApi.js";
7
- import { useEditorStore as l } from "../../../stores/editor.js";
8
- import { InButtonV2 as k } from "@useinsider/design-system-vue";
9
- import B from "./version-history/RestoreButton.vue.js";
10
- const P = /* @__PURE__ */ c({
1
+ import { defineComponent as u, computed as m } from "vue";
2
+ import { useConfig as f } from "../../../composables/useConfig.js";
3
+ import { useBack as p } from "../../../composables/useGuidoActions.js";
4
+ import { usePreviewMode as l } from "../../../composables/usePreviewMode.js";
5
+ import { useTranslations as d } from "../../../composables/useTranslations.js";
6
+ import { useVersionHistoryApi as k } from "../../../composables/useVersionHistoryApi.js";
7
+ import { useEditorStore as B } from "../../../stores/editor.js";
8
+ import { InButtonV2 as b } from "@useinsider/design-system-vue";
9
+ import _ from "./version-history/RestoreButton.vue.js";
10
+ const h = /* @__PURE__ */ u({
11
11
  __name: "LeftSlot",
12
- setup(b) {
13
- const o = l(), r = u(), { closeVersionHistory: i } = d(), { closePreviewMode: n } = f(), e = p(), { config: t } = m(), s = a(() => o.isVersionHistoryOpen || o.isPreviewModeOpen ? e("email-editor.back-to-editor") : t.backButtonLabel ? t.backButtonLabel : e("email-editor.back-to-design"));
14
- return { __sfc: !0, editorStore: o, handleBack: r, closeVersionHistory: i, closePreviewMode: n, trans: e, config: t, backButtonLabel: s, handleBackClick: () => {
12
+ setup(v) {
13
+ const o = B(), r = p(), { closeVersionHistory: i } = k(), { closePreviewMode: n } = l(), e = d(), { config: t } = f(), c = m(() => {
14
+ var s, a;
15
+ return o.isVersionHistoryOpen || o.isPreviewModeOpen ? e("email-editor.back-to-editor") : (a = (s = t.value) == null ? void 0 : s.ui) != null && a.backButtonLabel ? t.value.ui.backButtonLabel : e("email-editor.back-to-design");
16
+ });
17
+ return { __sfc: !0, editorStore: o, handleBack: r, closeVersionHistory: i, closePreviewMode: n, trans: e, config: t, backButtonLabel: c, handleBackClick: () => {
15
18
  if (o.isVersionHistoryOpen) {
16
19
  i();
17
20
  return;
@@ -21,9 +24,9 @@ const P = /* @__PURE__ */ c({
21
24
  return;
22
25
  }
23
26
  r();
24
- }, InButtonV2: k, RestoreButton: B };
27
+ }, InButtonV2: b, RestoreButton: _ };
25
28
  }
26
29
  });
27
30
  export {
28
- P as default
31
+ h as default
29
32
  };
@@ -2,7 +2,7 @@ import i from "./MiddleSlot.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var n = function() {
4
4
  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);
5
+ 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" }, [o(t.InButtonV2, { staticClass: "mr-1", 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, { staticClass: "mr-1", 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, { staticClass: "mr-1", 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" })], 1);
6
6
  }, d = [], l = /* @__PURE__ */ s(
7
7
  i,
8
8
  n,
@@ -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,20 +1,20 @@
1
- import a from "./RightSlot.vue2.js";
2
- import l from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var r = function() {
4
- var o, i, n;
5
- var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "d-f" }, [(o = t.config.features) != null && o.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 } }), (i = t.config.features) != null && i.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(), (n = t.config.features) != null && n.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(c) {
1
+ import d from "./RightSlot.vue2.js";
2
+ import u from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var p = function() {
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
- }, u = [], d = /* @__PURE__ */ l(
10
- a,
11
- r,
12
- u,
9
+ }, c = [], _ = /* @__PURE__ */ u(
10
+ d,
11
+ p,
12
+ c,
13
13
  !1,
14
14
  null,
15
15
  null
16
16
  );
17
- const f = d.exports;
17
+ const y = _.exports;
18
18
  export {
19
- f as default
19
+ y as default
20
20
  };
@@ -1,23 +1,26 @@
1
- import { defineComponent as g, ref as b, computed as o } from "vue";
2
- import v from "../../wrappers/WpModal.vue.js";
3
- import { useConfig as D } from "../../../composables/useConfig.js";
4
- import { useTranslations as h } from "../../../composables/useTranslations.js";
5
- import { ACADEMY_LINK as l } from "../../../enums/onboarding.js";
6
- import y from "../../../static/assets/onboarding-img.svg.js";
7
- import { useOnboardingStore as _ } from "../../../stores/onboarding.js";
8
- import { isAfterDate as C, formatShortDate as L } from "../../../utils/dateUtil.js";
9
- const I = /* @__PURE__ */ g({
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({
10
10
  __name: "NewVersionPopup",
11
11
  emits: ["onboarding-finished"],
12
- setup(w, { emit: a }) {
13
- const e = h(), t = _(), s = b(!0), { config: p } = D(), i = o(() => p.migrationDate), n = o(() => C(i.value || 0)), d = o(() => L(
14
- i.value
15
- )), m = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
12
+ setup(S, { emit: a }) {
13
+ const e = _(), t = L(), s = D(!0), { config: p } = y(), 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(() => N(
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", {
16
19
  sunsetDate: d.value,
17
- academyLink: l
20
+ academyLink: c
18
21
  }) : e("email-editor.onboarding-description", {
19
- academyLink: l
20
- })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), f = o(() => ({
22
+ academyLink: c
23
+ })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), b = o(() => ({
21
24
  primaryButton: {
22
25
  type: "primary",
23
26
  labelText: e("left-menu.discover-now")
@@ -29,15 +32,15 @@ const I = /* @__PURE__ */ g({
29
32
  })), r = () => {
30
33
  s.value = !1, a("onboarding-finished");
31
34
  };
32
- return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: m, popupDescription: c, secondaryButtonLabel: u, footerButtonOptions: f, closePopup: r, handleDiscoverNow: () => {
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: () => {
33
36
  t.onDiscoverNowClicked(), r();
34
37
  }, handleRemindLater: () => {
35
38
  t.onRemindMeLater(), r();
36
39
  }, handleClose: () => {
37
40
  t.onNewVersionPopupClose(), r();
38
- }, WpModal: v, onboardingImageSvg: y };
41
+ }, WpModal: h, onboardingImageSvg: C };
39
42
  }
40
43
  });
41
44
  export {
42
- I as default
45
+ E as default
43
46
  };
@@ -1,16 +1,16 @@
1
1
  import s from "./UnsubscribeBreadcrumb.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var o = function() {
4
+ var c = function() {
5
5
  var e = this, t = e._self._c, r = e._self._setupProxy;
6
6
  return t(r.InBreadcrumb, { staticClass: "c-p", attrs: { "without-router": "", "active-tab": r.unsubscribeStore.activeType, "home-icon": !1, list: r.breadcrumbs, routes: [] }, on: { click: r.navigate } });
7
- }, c = [], n = /* @__PURE__ */ a(
7
+ }, o = [], n = /* @__PURE__ */ a(
8
8
  s,
9
- o,
10
9
  c,
10
+ o,
11
11
  !1,
12
12
  null,
13
- "70835920"
13
+ "293f1c47"
14
14
  );
15
15
  const f = n.exports;
16
16
  export {
@@ -1,16 +1,16 @@
1
- import { defineComponent as o, computed as n } from "vue";
2
- import { TYPE_TRANSLATIONS as s } from "../../../enums/unsubscribe.js";
1
+ import { defineComponent as n, computed as s } from "vue";
2
+ import { getTypeTranslations as a } from "../../../enums/unsubscribe.js";
3
3
  import { useUnsubscribeStore as c } from "../../../stores/unsubscribe.js";
4
4
  import { InBreadcrumb as m } from "@useinsider/design-system-vue";
5
- const f = /* @__PURE__ */ o({
5
+ const _ = /* @__PURE__ */ n({
6
6
  __name: "UnsubscribeBreadcrumb",
7
- setup(a) {
8
- const r = c(), t = n(() => r.getSelectedCollection.map((e) => ({ value: e, text: s[e] })));
9
- return { __sfc: !0, unsubscribeStore: r, breadcrumbs: t, navigate: (e) => {
10
- r.activeType = e.value;
7
+ setup(i) {
8
+ const t = c(), r = a(), o = s(() => t.getSelectedCollection.map((e) => ({ value: e, text: r[e] })));
9
+ return { __sfc: !0, unsubscribeStore: t, typeTranslations: r, breadcrumbs: o, navigate: (e) => {
10
+ t.activeType = e.value;
11
11
  }, InBreadcrumb: m };
12
12
  }
13
13
  });
14
14
  export {
15
- f as default
15
+ _ as default
16
16
  };
@@ -10,9 +10,9 @@ var i = function() {
10
10
  r,
11
11
  !1,
12
12
  null,
13
- "dd57102d"
13
+ "bb3bb07c"
14
14
  );
15
- const d = c.exports;
15
+ const _ = c.exports;
16
16
  export {
17
- d as default
17
+ _ as default
18
18
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as h, ref as b, computed as m, watch as _ } from "vue";
2
- import v from "../../wrappers/WpDrawer.vue.js";
3
- import { useToaster as B } from "../../../composables/useToaster.js";
4
- import { useTranslations as N } from "../../../composables/useTranslations.js";
5
- import { ToasterTypeOptions as U } from "../../../enums/toaster.js";
6
- import { PAGE_TYPES as l, ACADEMY_LINK as w, UNSUBSCRIBE_PAGES_LINK as P, TYPE_TRANSLATIONS as R } from "../../../enums/unsubscribe.js";
7
- import { useUnsubscribeStore as D } from "../../../stores/unsubscribe.js";
8
- import { InSegments as I } from "@useinsider/design-system-vue";
9
- const z = /* @__PURE__ */ h({
1
+ import { defineComponent as v, ref as b, computed as m, watch as _ } from "vue";
2
+ import B from "../../wrappers/WpDrawer.vue.js";
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";
8
+ import { InSegments as G } from "@useinsider/design-system-vue";
9
+ const K = /* @__PURE__ */ v({
10
10
  __name: "UnsubscribeTypeSelection",
11
- setup(G) {
12
- const e = N(), { showToaster: f } = B(), t = D(), n = b(!1), i = b(!0), o = b(l.GLOBAL_UNSUBSCRIBE), S = e(
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(
13
13
  "unsubscription-preference.select-unsubscribe-page-description",
14
- { action: `<a href="${w}" target="_blank">${e("ds-rules.visit-academy")}</a>` }
14
+ { action: `<a href="${D}" target="_blank">${e("ds-rules.visit-academy")}</a>` }
15
15
  ), T = m(() => [
16
16
  {
17
17
  description: e("unsubscription-preference.type-global-unsubscribe-description"),
@@ -62,7 +62,7 @@ const z = /* @__PURE__ */ h({
62
62
  p || r.push(Number(c));
63
63
  }), r.length === 0)
64
64
  return !0;
65
- const a = r.map((c) => R[c]);
65
+ const h = P(), a = r.map((c) => h[c]);
66
66
  let u = "";
67
67
  if (r.length === 1)
68
68
  u = e("unsubscription-preference.create-page-to-continue", {
@@ -81,12 +81,12 @@ const z = /* @__PURE__ */ h({
81
81
  });
82
82
  }
83
83
  return f({
84
- type: U.Warning,
84
+ type: N.Warning,
85
85
  message: u,
86
86
  actionButton: {
87
87
  text: "Go to Unsubscribe Pages",
88
88
  onClick: () => {
89
- window.location.href = P;
89
+ window.location.href = R;
90
90
  }
91
91
  }
92
92
  }), !1;
@@ -99,9 +99,9 @@ const z = /* @__PURE__ */ h({
99
99
  };
100
100
  return _(() => t.typeSelectionDrawerStatus, (s) => {
101
101
  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: v, InSegments: I };
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
103
  }
104
104
  });
105
105
  export {
106
- z as default
106
+ K as default
107
107
  };
@@ -1,18 +1,18 @@
1
- import o from "./UnsubscribeWrapper.vue2.js";
2
- import t from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var _ = function() {
4
- var s;
5
- var e = this, n = e._self._c, r = e._self._setupProxy;
6
- return (s = r.config.extensions) != null && s.unsubscribe ? n("div", [n(r.UnsubscribeTypeSelection), n(r.UnsubscribePageSelection)], 1) : e._e();
7
- }, c = [], i = /* @__PURE__ */ t(
8
- o,
1
+ import _ from "./UnsubscribeWrapper.vue2.js";
2
+ import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var c = function() {
4
+ var s, t;
5
+ var e = this, r = e._self._c, n = e._self._setupProxy;
6
+ return (t = (s = n.config) == null ? void 0 : s.features) != null && t.unsubscribe ? r("div", [r(n.UnsubscribeTypeSelection), r(n.UnsubscribePageSelection)], 1) : e._e();
7
+ }, i = [], a = /* @__PURE__ */ o(
9
8
  _,
10
9
  c,
10
+ i,
11
11
  !1,
12
12
  null,
13
13
  null
14
14
  );
15
- const l = i.exports;
15
+ const p = a.exports;
16
16
  export {
17
- l as default
17
+ p as default
18
18
  };