@useinsider/guido 2.0.0-beta.759c7d4 → 2.0.0-beta.76bc929

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 (189) hide show
  1. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +3 -3
  2. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +8 -8
  3. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +13 -17
  4. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +8 -7
  5. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +12 -14
  6. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +14 -10
  7. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +22 -18
  8. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +17 -0
  9. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +20 -0
  10. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
  11. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +10 -11
  12. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +10 -12
  13. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +10 -11
  14. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +14 -15
  15. package/dist/components/organisms/header/HeaderWrapper.vue.js +5 -5
  16. package/dist/components/organisms/header/LeftSlot.vue.js +11 -11
  17. package/dist/components/organisms/header/LeftSlot.vue2.js +12 -11
  18. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -5
  19. package/dist/components/organisms/header/MiddleSlot.vue2.js +13 -14
  20. package/dist/components/organisms/header/RightSlot.vue.js +12 -12
  21. package/dist/components/organisms/header/RightSlot.vue2.js +20 -26
  22. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +15 -15
  23. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
  24. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +19 -20
  25. package/dist/config/migrator/recommendationMigrator.js +2 -2
  26. package/dist/enums/onboarding.js +2 -1
  27. package/dist/enums/unsubscribe.js +21 -20
  28. package/dist/extensions/Blocks/Items/controls/cardComposition.js +13 -4
  29. package/dist/extensions/Blocks/Recommendation/block.js +1 -1
  30. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
  31. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
  32. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +11 -0
  33. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
  34. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +100 -0
  35. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +243 -0
  36. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
  37. package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +154 -0
  38. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +372 -0
  39. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
  40. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +76 -0
  41. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
  42. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
  43. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +73 -0
  44. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +73 -0
  45. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
  46. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +73 -0
  47. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +73 -0
  48. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
  49. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +224 -0
  50. package/dist/extensions/Blocks/Recommendation/extension.js +39 -43
  51. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +5 -0
  52. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +127 -72
  53. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +20 -20
  54. package/dist/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.js +157 -0
  55. package/dist/extensions/Blocks/Recommendation/templates/horizontal/template.js +72 -0
  56. package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
  57. package/dist/extensions/Blocks/Recommendation/templates/utils.js +173 -0
  58. package/dist/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.js +186 -0
  59. package/dist/extensions/Blocks/Recommendation/templates/vertical/migration.js +251 -0
  60. package/dist/extensions/Blocks/Recommendation/templates/vertical/template.js +61 -0
  61. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +25 -0
  62. package/dist/extensions/Blocks/controlFactories.js +155 -121
  63. package/dist/guido.css +1 -1
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +361 -291
  65. package/dist/package.json.js +1 -1
  66. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
  67. package/dist/src/enums/onboarding.d.ts +1 -0
  68. package/dist/src/enums/unsubscribe.d.ts +1 -0
  69. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
  70. package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +19 -11
  71. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +11 -0
  72. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +19 -0
  73. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
  74. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +41 -0
  75. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +95 -0
  76. package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
  77. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +23 -0
  78. package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +50 -0
  79. package/dist/src/extensions/Blocks/Recommendation/{control.d.ts → controls/main/index.d.ts} +19 -3
  80. package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
  81. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +16 -0
  82. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
  83. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
  84. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +15 -0
  85. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +15 -0
  86. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
  87. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +15 -0
  88. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +15 -0
  89. package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
  90. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +77 -0
  91. package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
  92. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.d.ts +8 -0
  93. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/migration.d.ts +25 -0
  94. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/template.d.ts +18 -0
  95. package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +39 -0
  96. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +45 -0
  97. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.d.ts +7 -0
  98. package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → vertical/migration.d.ts} +11 -4
  99. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/template.d.ts +33 -0
  100. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
  101. package/dist/static/assets/inbox-mockup.svg.js +4 -0
  102. package/dist/static/assets/phone-mockup.svg.js +4 -0
  103. package/dist/static/styles/components/wide-panel.css.js +0 -4
  104. package/dist/static/styles/customEditorStyle.css.js +38 -2
  105. package/package.json +3 -3
  106. package/dist/enums/academy.js +0 -8
  107. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
  108. package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
  109. package/dist/extensions/Blocks/Recommendation/control.js +0 -306
  110. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
  111. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
  112. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
  113. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
  114. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
  115. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
  116. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
  117. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
  118. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
  119. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
  120. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
  121. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
  122. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
  123. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
  124. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
  125. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
  126. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
  127. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
  128. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
  129. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
  130. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
  131. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
  132. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
  133. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
  134. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
  135. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
  136. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
  137. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
  138. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
  139. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
  140. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
  141. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
  142. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
  143. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
  144. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
  145. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
  146. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
  147. package/dist/src/enums/academy.d.ts +0 -12
  148. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
  149. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
  150. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
  151. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
  152. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
  153. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
  154. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
  155. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
  156. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
  157. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
  158. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
  159. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
  160. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
  161. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
  162. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
  163. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
  164. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
  165. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
  166. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
  167. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
  168. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
  169. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
  170. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
  171. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
  172. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
  173. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
  174. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
  175. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
  176. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
  177. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
  178. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
  179. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
  180. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
  181. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
  182. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
  183. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
  184. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
  185. package/dist/static/assets/desktop/desktop-mockup-center.svg.js +0 -4
  186. package/dist/static/assets/desktop/desktop-mockup-left.svg.js +0 -4
  187. package/dist/static/assets/desktop/desktop-mockup-right.svg.js +0 -4
  188. package/dist/static/assets/mobile/email-mockup.svg.js +0 -4
  189. package/dist/static/assets/mobile/inbox-mockup.svg.js +0 -4
@@ -2,7 +2,7 @@ import s from "./PreviewContainer.vue2.js";
2
2
  import t from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var i = function() {
4
4
  var o = this, r = o._self._c, e = o._self._setupProxy;
5
- return e.previewStore.isLoaded ? r("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2" }, [r("div", { staticClass: "f-g-1 d-f p-5 o-a g-4 min-h-600" }, [r(e.DesktopPreview, { staticClass: "f-g-1 min-w-0" }), r(e.MobilePreview, { staticClass: "f-0 min-w-a" })], 1), e.previewStore.isAMPErrorModalVisible ? r(e.AmpErrorModal, { on: { close: function(_) {
5
+ return e.previewStore.isLoaded ? r("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2 pb-5" }, [r("div", { staticClass: "f-g-1 d-f p-5 o-a g-4 min-h-600" }, [r(e.DesktopPreview, { staticClass: "f-g-1 min-w-0" }), r(e.MobilePreview, { staticClass: "f-0 min-w-a" })], 1), e.previewStore.isAMPErrorModalVisible ? r(e.AmpErrorModal, { on: { close: function(_) {
6
6
  return e.previewStore.closeErrorModal();
7
7
  } } }) : o._e()], 1) : o._e();
8
8
  }, n = [], a = /* @__PURE__ */ t(
@@ -13,7 +13,7 @@ var i = function() {
13
13
  null,
14
14
  null
15
15
  );
16
- const d = a.exports;
16
+ const p = a.exports;
17
17
  export {
18
- d as default
18
+ p as default
19
19
  };
@@ -1,22 +1,22 @@
1
- import i from "./AmpErrorModal.vue2.js";
1
+ import s from "./AmpErrorModal.vue2.js";
2
2
  /* empty css */
3
3
  import a 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: "small", description: t.ampValidationDescription, "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: "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) {
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 error-list" }, e._l(t.previewStore.ampErrors, function(o, s) {
9
- return r(t.InOnPageMessage, { key: s, attrs: { icon: "filled-error-box", size: "small", 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, i) {
9
+ return r(t.InOnPageMessage, { key: i, attrs: { icon: "filled-error-box", size: "medium", type: "alert", text: o } });
10
10
  }), 1)])]);
11
- }, l = [], c = /* @__PURE__ */ a(
12
- i,
11
+ }, l = [], d = /* @__PURE__ */ a(
12
+ s,
13
13
  n,
14
14
  l,
15
15
  !1,
16
16
  null,
17
- "a00b5f5f"
17
+ "7a09985c"
18
18
  );
19
- const _ = c.exports;
19
+ const _ = d.exports;
20
20
  export {
21
21
  _ as default
22
22
  };
@@ -1,16 +1,15 @@
1
- import { defineComponent as m, ref as c, computed as d } from "vue";
2
- import l from "../../../wrappers/WpModal.vue.js";
3
- import { useCodeEditorApi as f } from "../../../../composables/useCodeEditorApi.js";
1
+ import { defineComponent as p, ref as m, computed as c } from "vue";
2
+ import d from "../../../wrappers/WpModal.vue.js";
3
+ import { useCodeEditorApi as l } from "../../../../composables/useCodeEditorApi.js";
4
4
  import { usePreviewMode as u } from "../../../../composables/usePreviewMode.js";
5
- import { useTranslations as _ } from "../../../../composables/useTranslations.js";
6
- import { ACADEMY_LINKS as M } from "../../../../enums/academy.js";
7
- import { usePreviewStore as y } from "../../../../stores/preview.js";
8
- import { InOnPageMessage as E } from "@useinsider/design-system-vue";
9
- const O = /* @__PURE__ */ m({
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({
10
9
  __name: "AmpErrorModal",
11
10
  emits: ["close"],
12
- setup(g, { emit: e }) {
13
- const o = _(), { closePreviewMode: r } = u(), { openCodeEditor: t } = f(), i = y(), n = c({
11
+ setup(x, { emit: e }) {
12
+ const o = f(), { closePreviewMode: r } = u(), { openCodeEditor: t } = l(), n = _(), s = m({
14
13
  cancelOrBackButton: {
15
14
  type: "secondary",
16
15
  labelText: o("campaign-builder.cancel"),
@@ -20,15 +19,12 @@ const O = /* @__PURE__ */ m({
20
19
  type: "primary",
21
20
  labelText: o("email-editor.amp-validation-fix")
22
21
  }
23
- }), a = () => {
22
+ }), i = () => {
24
23
  e("close"), r(), t();
25
- }, s = o(
26
- "email-editor.amp-validation-description",
27
- { academyLink: M.AMP_FOR_EMAILS }
28
- ), p = d(() => `${o("products.errors")}(${i.ampErrors.length})`);
29
- return { __sfc: !0, emit: e, trans: o, closePreviewMode: r, openCodeEditor: t, previewStore: i, footerButtonOptions: n, handleFixInCodeEditor: a, ampValidationDescription: s, errorCountText: p, WpModal: l, InOnPageMessage: E };
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 };
30
26
  }
31
27
  });
32
28
  export {
33
- O as default
29
+ P as default
34
30
  };
@@ -1,19 +1,20 @@
1
1
  import o from "./AmpToggle.vue2.js";
2
+ /* empty css */
2
3
  import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
- var a = function() {
4
+ var s = function() {
4
5
  var r = this, t = r._self._c, e = r._self._setupProxy;
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-3", 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) {
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-3 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) {
6
7
  return e.previewStore.openErrorModal();
7
8
  } } }) : r._e()], 1)]);
8
- }, i = [], s = /* @__PURE__ */ n(
9
+ }, a = [], i = /* @__PURE__ */ n(
9
10
  o,
11
+ s,
10
12
  a,
11
- i,
12
13
  !1,
13
14
  null,
14
- null
15
+ "5196584c"
15
16
  );
16
- const p = s.exports;
17
+ const d = i.exports;
17
18
  export {
18
- p as default
19
+ d as default
19
20
  };
@@ -1,28 +1,26 @@
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";
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";
4
4
  import { InButtonV2 as s, InSegments as l } from "@useinsider/design-system-vue";
5
- const _ = /* @__PURE__ */ n({
5
+ const _ = /* @__PURE__ */ m({
6
6
  __name: "AmpToggle",
7
7
  setup(p) {
8
- const e = r(), t = m(), o = i(() => [
8
+ const t = i(), e = r(), o = n(() => [
9
9
  {
10
- text: t("dynamic-creatives.html"),
11
- value: "html",
12
- icon: "line-code"
10
+ text: e("dynamic-creatives.html"),
11
+ value: "html"
13
12
  },
14
13
  {
15
- text: t("email-editor.amp-html"),
14
+ text: e("email-editor.amp-html"),
16
15
  value: "AMP",
17
- icon: "filled-amp",
18
- tooltipText: e.hasAMP ? "" : t("email-editor.preview-amp-unavailable-tooltip"),
16
+ tooltipText: t.hasAMP ? "" : e("email-editor.preview-amp-unavailable-tooltip"),
19
17
  position: "bottom",
20
18
  align: "center",
21
- disable: !e.hasAMP
19
+ disable: !t.hasAMP
22
20
  }
23
21
  ]);
24
- return { __sfc: !0, previewStore: e, trans: t, segmentList: o, handleFormatChange: (a) => {
25
- e.setEmailFormat(a);
22
+ return { __sfc: !0, previewStore: t, trans: e, segmentList: o, handleFormatChange: (a) => {
23
+ t.setEmailFormat(a);
26
24
  }, InSegments: l, InButtonV2: s };
27
25
  }
28
26
  });
@@ -1,18 +1,22 @@
1
- import r from "./DesktopPreview.vue2.js";
1
+ import o from "./DesktopPreview.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../../../_virtual/_plugin-vue2_normalizer.js";
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,
9
- i,
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(
10
12
  o,
13
+ s,
14
+ i,
11
15
  !1,
12
16
  null,
13
- "c696a488"
17
+ "2dd60b0c"
14
18
  );
15
- const n = p.exports;
19
+ const d = n.exports;
16
20
  export {
17
- n as default
21
+ d as default
18
22
  };
@@ -1,27 +1,31 @@
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({
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({
8
7
  __name: "DesktopPreview",
9
- setup(w) {
10
- const c = d(), o = s(), t = s(!1), i = g();
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
+ };
11
18
  let e = null;
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;
19
+ const c = () => {
20
+ n(), t.value && (e = new ResizeObserver(n), e.observe(t.value), g(() => {
21
+ a.value = !0;
18
22
  }));
19
- }, r = () => {
23
+ }, l = () => {
20
24
  e == null || e.disconnect();
21
25
  };
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 };
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 };
23
27
  }
24
28
  });
25
29
  export {
26
- x as default
30
+ B as default
27
31
  };
@@ -0,0 +1,17 @@
1
+ import e from "./EmailHeaderInfo.vue2.js";
2
+ import c from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var r = function() {
4
+ var t = this, s = t._self._c, a = t._self._setupProxy;
5
+ return s("div", { staticClass: "d-f a-i-c j-c-s-b w-1" }, [s("div", { staticClass: "d-f a-i-c" }, [s("div", { staticClass: "b-c-49 bor-r-100 w-5-s h-5-s d-f a-i-c j-c-c" }, [s(a.InIcons, { attrs: { name: "line-menu-profile" } })], 1), s("div", { staticClass: "d-f f-d-c ml-2" }, [s("p", { staticClass: "t-c-53 f-w-600 f-s-1 l-h-1" }, [t._v(" " + t._s(a.senderName) + " ")]), s("p", { staticClass: "t-c-55 f-w-400 f-s-12 l-h-1" }, [t._v(" " + t._s(a.subject) + " ")])])])]);
6
+ }, i = [], n = /* @__PURE__ */ c(
7
+ e,
8
+ r,
9
+ i,
10
+ !1,
11
+ null,
12
+ null
13
+ );
14
+ const o = n.exports;
15
+ export {
16
+ o as default
17
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as i, computed as s } from "vue";
2
+ import { useConfig as c } from "../../../../composables/useConfig.js";
3
+ import { useTranslations as d } from "../../../../composables/useTranslations.js";
4
+ import { InIcons as u } from "@useinsider/design-system-vue";
5
+ const g = /* @__PURE__ */ i({
6
+ __name: "EmailHeaderInfo",
7
+ setup(f) {
8
+ const { config: n } = c(), r = d(), a = s(() => {
9
+ var e, t, o;
10
+ return ((o = (t = (e = n.value) == null ? void 0 : e.editor) == null ? void 0 : t.emailHeader) == null ? void 0 : o.senderName) || r("settings.sender-name");
11
+ }), m = s(() => {
12
+ var e, t, o;
13
+ return ((o = (t = (e = n.value) == null ? void 0 : e.editor) == null ? void 0 : t.emailHeader) == null ? void 0 : o.subject) || r("email-editor.default-subject");
14
+ });
15
+ return { __sfc: !0, config: n, trans: r, senderName: a, subject: m, InIcons: u };
16
+ }
17
+ });
18
+ export {
19
+ g as default
20
+ };
@@ -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 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();
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);
7
7
  }, a = [], n = /* @__PURE__ */ r(
8
8
  i,
9
9
  o,
10
10
  a,
11
11
  !1,
12
12
  null,
13
- "913a3417"
13
+ "c2adc57d"
14
14
  );
15
15
  const m = n.exports;
16
16
  export {
@@ -1,20 +1,19 @@
1
- import e from "./ContentView.vue2.js";
2
- /* empty css */
3
- import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var i = function() {
1
+ import n from "./ContentView.vue2.js";
2
+ import e from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var c = function() {
5
4
  var a = this, s = a._self._c, t = a._self._setupProxy;
6
5
  return s("div", { staticClass: "w-1 h-1 b-c-4 d-f f-d-c" }, [s("div", { staticClass: "d-f j-c-s-b a-i-c p-2 h-6-s" }, [s("div", { staticClass: "d-f a-i-c cur-p", on: { click: function(l) {
7
6
  return a.$emit("back-to-inbox");
8
- } } }, [s(t.InIcons, { staticClass: "f-s-3 i-c-7", attrs: { name: "line-chevron-left" } }), s("span", { staticClass: "ml-2 f-s-1 f-w-400 l-h-1 t-c-7" }, [a._v(a._s(t.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(t.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(t.InIcons, { staticClass: "ml-1 i-c-52", attrs: { name: "line-chevron-up" } })], 1)]), s("div", { staticClass: "iframe-wrapper f-g-1 o-h" }, [s("iframe", { ref: "iframeRef", staticClass: "iframe-scaled d-b b-c-4 bor-s-n", attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts", srcdoc: t.previewStore.previewHtml }, on: { load: t.onLoad } })])]);
9
- }, r = [], c = /* @__PURE__ */ n(
10
- e,
7
+ } } }, [s(t.InIcons, { staticClass: "f-s-3 i-c-7", attrs: { name: "line-chevron-left" } }), s("span", { staticClass: "ml-2 f-s-1 f-w-400 l-h-1 t-c-7" }, [a._v(a._s(t.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(t.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(t.InIcons, { staticClass: "ml-1 i-c-52", attrs: { name: "line-chevron-up" } })], 1)]), s("iframe", { ref: "iframeRef", staticClass: "f-g-1 w-1 d-b b-c-4 bor-s-n", attrs: { sandbox: "allow-same-origin allow-popups allow-forms allow-scripts", srcdoc: t.previewStore.previewHtml }, on: { load: t.onLoad } })]);
8
+ }, i = [], o = /* @__PURE__ */ e(
9
+ n,
10
+ c,
11
11
  i,
12
- r,
13
12
  !1,
14
13
  null,
15
- "f413124b"
14
+ null
16
15
  );
17
- const p = c.exports;
16
+ const d = o.exports;
18
17
  export {
19
- p as default
18
+ d as default
20
19
  };
@@ -1,22 +1,20 @@
1
- import r from "./InboxView.vue2.js";
1
+ import e from "./InboxView.vue2.js";
2
2
  /* empty css */
3
- import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
+ import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var a = function() {
5
5
  var s = this, t = s._self._c, c = s._self._setupProxy;
6
- return t("div", { staticClass: "inbox-view" }, [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(e) {
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
- } } }, [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 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)]), s._l(5, function(e) {
9
- return t("div", { key: e, staticClass: "empty-row bor-b-w-1 bor-b-s-s bor-b-c-50" });
10
- })], 2);
11
- }, o = [], n = /* @__PURE__ */ i(
12
- r,
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__ */ r(
10
+ e,
13
11
  a,
14
- o,
12
+ i,
15
13
  !1,
16
14
  null,
17
- "d0c87cb5"
15
+ "4b876c1b"
18
16
  );
19
- const b = n.exports;
17
+ const m = n.exports;
20
18
  export {
21
- b as default
19
+ m as default
22
20
  };
@@ -1,18 +1,17 @@
1
- import s from "./MobilePreview.vue2.js";
2
- /* empty css */
3
- import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var r = function() {
5
- var o = this, t = o._self._c, e = o._self._setupProxy;
6
- return t("div", { staticClass: "mobile-preview-wrapper" }, [t("p", { staticClass: "f-s-1 f-w-600 l-h-1 t-t-u t-c-53 ml-5 mb-6 l-s-5" }, [o._v(" " + o._s(e.trans("email-editor.mobile-preview")) + " ")]), t("div", { staticClass: "d-f j-c-c pl-5" }, [t("div", { staticClass: "mobile-preview-wrapper__phone p-r" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n s-2", attrs: { alt: e.mockup.alt, src: e.mockup.image } }), t("div", { staticClass: "mobile-preview-wrapper__content p-a o-h", style: { top: e.phoneScreenTopMargin } }, [e.showInbox ? t(e.InboxView, { on: { "open-email": e.openEmail } }) : t(e.ContentView, { on: { "back-to-inbox": e.backToInbox } })], 1)])])]);
7
- }, a = [], n = /* @__PURE__ */ i(
8
- s,
9
- r,
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,
10
8
  a,
9
+ r,
11
10
  !1,
12
11
  null,
13
- "f9d20813"
12
+ null
14
13
  );
15
- const _ = n.exports;
14
+ const _ = i.exports;
16
15
  export {
17
16
  _ as default
18
17
  };
@@ -1,23 +1,22 @@
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({
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({
8
7
  __name: "MobilePreview",
9
- setup(v) {
10
- const n = s(), o = i(!1), r = e(() => ({
11
- image: o.value ? u : c,
8
+ setup(f) {
9
+ const o = i(!1), n = e(() => ({
10
+ image: o.value ? a : c,
12
11
  alt: o.value ? "Inbox mockup" : "Phone mockup"
13
- })), t = () => {
12
+ })), r = () => {
14
13
  o.value = !1;
15
- }, m = () => {
14
+ }, t = () => {
16
15
  o.value = !0;
17
- }, p = e(() => o.value ? "83px" : "64px");
18
- return { __sfc: !0, trans: n, showInbox: o, mockup: r, openEmail: t, backToInbox: m, phoneScreenTopMargin: p, ContentView: f, InboxView: l };
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 };
19
18
  }
20
19
  });
21
20
  export {
22
- k as default
21
+ w as default
23
22
  };
@@ -1,9 +1,9 @@
1
1
  import o from "./HeaderWrapper.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var n = function() {
4
- var e = this, r = e._self._c, t = e._self._setupProxy;
5
- return r(t.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3", staticStyle: { "min-width": "1000px" } }, [r(t.LeftSlot), r(t.MiddleSlot), r(t.RightSlot, { ref: "rightSlotRef" })], 1)]);
6
- }, a = [], i = /* @__PURE__ */ s(
4
+ var t = this, r = t._self._c, e = t._self._setupProxy;
5
+ return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef" })], 1)]);
6
+ }, a = [], _ = /* @__PURE__ */ s(
7
7
  o,
8
8
  n,
9
9
  a,
@@ -11,7 +11,7 @@ var n = function() {
11
11
  null,
12
12
  null
13
13
  );
14
- const f = i.exports;
14
+ const c = _.exports;
15
15
  export {
16
- f as default
16
+ c as default
17
17
  };
@@ -1,18 +1,18 @@
1
- import n from "./LeftSlot.vue2.js";
1
+ import s from "./LeftSlot.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var r = function() {
5
- var e = this, a = e._self._c, t = e._self._setupProxy;
6
- return a("div", { staticClass: "d-f a-i-c" }, [a(t.InButtonV2, { attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "label-text": t.backButtonLabel }, on: { click: t.handleBackClick } })], 1);
7
- }, s = [], c = /* @__PURE__ */ o(
8
- n,
9
- r,
3
+ import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var n = function() {
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);
7
+ }, a = [], i = /* @__PURE__ */ r(
10
8
  s,
9
+ n,
10
+ a,
11
11
  !1,
12
12
  null,
13
- "aa6fa221"
13
+ "06e6f7a7"
14
14
  );
15
- const d = c.exports;
15
+ const p = i.exports;
16
16
  export {
17
- d as default
17
+ p as default
18
18
  };
@@ -4,28 +4,29 @@ import { useBack as p } from "../../../composables/useGuidoActions.js";
4
4
  import { usePreviewMode as l } from "../../../composables/usePreviewMode.js";
5
5
  import { useTranslations as d } from "../../../composables/useTranslations.js";
6
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
- const P = /* @__PURE__ */ u({
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({
10
11
  __name: "LeftSlot",
11
- setup(_) {
12
- const e = b(), r = p(), { closeVersionHistory: i } = k(), { closePreviewMode: n } = l(), o = d(), { config: t } = f(), c = m(() => {
12
+ setup(v) {
13
+ const o = B(), r = p(), { closeVersionHistory: i } = k(), { closePreviewMode: n } = l(), e = d(), { config: t } = f(), c = m(() => {
13
14
  var s, a;
14
- return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (a = (s = t.value) == null ? void 0 : s.ui) != null && a.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
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");
15
16
  });
16
- return { __sfc: !0, editorStore: e, handleBack: r, closeVersionHistory: i, closePreviewMode: n, trans: o, config: t, backButtonLabel: c, handleBackClick: () => {
17
- if (e.isVersionHistoryOpen) {
17
+ return { __sfc: !0, editorStore: o, handleBack: r, closeVersionHistory: i, closePreviewMode: n, trans: e, config: t, backButtonLabel: c, handleBackClick: () => {
18
+ if (o.isVersionHistoryOpen) {
18
19
  i();
19
20
  return;
20
21
  }
21
- if (e.isPreviewModeOpen) {
22
+ if (o.isPreviewModeOpen) {
22
23
  n();
23
24
  return;
24
25
  }
25
26
  r();
26
- }, InButtonV2: B };
27
+ }, InButtonV2: b, RestoreButton: _ };
27
28
  }
28
29
  });
29
30
  export {
30
- P as default
31
+ h as default
31
32
  };
@@ -1,18 +1,17 @@
1
1
  import i from "./MiddleSlot.vue2.js";
2
- /* empty css */
3
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
4
3
  var n = function() {
5
4
  var e = this, o = e._self._c, t = e._self._setupProxy;
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);
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);
7
6
  }, d = [], l = /* @__PURE__ */ s(
8
7
  i,
9
8
  n,
10
9
  d,
11
10
  !1,
12
11
  null,
13
- "1245a10c"
12
+ null
14
13
  );
15
- const _ = l.exports;
14
+ const p = l.exports;
16
15
  export {
17
- _ as default
16
+ p as default
18
17
  };