@useinsider/guido 2.0.0 → 2.1.0-beta.67fc452

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 (233) hide show
  1. package/README.md +2 -0
  2. package/dist/@types/config/schemas.js +57 -39
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +15 -17
  5. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +3 -3
  6. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +6 -6
  7. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +17 -13
  8. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +6 -6
  9. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -12
  10. package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.js +18 -0
  11. package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue2.js +15 -0
  12. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +16 -15
  13. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +14 -22
  14. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
  15. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +12 -11
  16. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +12 -10
  17. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +11 -10
  18. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +15 -14
  19. package/dist/components/organisms/header/EditorActions.vue.js +21 -0
  20. package/dist/components/organisms/header/EditorActions.vue2.js +41 -0
  21. package/dist/components/organisms/header/EditorToolbar.vue.js +18 -0
  22. package/dist/components/organisms/header/EditorToolbar.vue2.js +17 -0
  23. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -5
  24. package/dist/components/organisms/header/LeftSlot.vue.js +11 -11
  25. package/dist/components/organisms/header/LeftSlot.vue2.js +27 -23
  26. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  27. package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -15
  28. package/dist/components/organisms/header/RightSlot.vue.js +11 -14
  29. package/dist/components/organisms/header/RightSlot.vue2.js +13 -30
  30. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +5 -5
  31. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +15 -15
  32. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
  33. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +20 -19
  34. package/dist/composables/useActionsApi.js +33 -30
  35. package/dist/composables/useConfig.js +29 -27
  36. package/dist/composables/useSave.js +13 -11
  37. package/dist/composables/useStripo.js +57 -56
  38. package/dist/config/migrator/index.js +9 -8
  39. package/dist/config/migrator/itemsBlockMigrator.js +334 -0
  40. package/dist/enums/academy.js +8 -0
  41. package/dist/enums/onboarding.js +1 -2
  42. package/dist/enums/unsubscribe.js +20 -21
  43. package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
  44. package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
  45. package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
  46. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
  47. package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
  48. package/dist/extensions/Blocks/Items/block.js +36 -40
  49. package/dist/extensions/Blocks/Items/controls/button/link.js +22 -29
  50. package/dist/extensions/Blocks/Items/controls/cardComposition.js +79 -50
  51. package/dist/extensions/Blocks/Items/controls/image/link.js +23 -30
  52. package/dist/extensions/Blocks/Items/controls/name/trimming.js +25 -25
  53. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +19 -17
  54. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +31 -29
  55. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +44 -38
  56. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +21 -19
  57. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +29 -27
  58. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +93 -0
  59. package/dist/extensions/Blocks/Items/controls/settingsControl.js +158 -137
  60. package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
  61. package/dist/extensions/Blocks/Items/enums/productEnums.js +43 -45
  62. package/dist/extensions/Blocks/Items/enums/settingsEnums.js +4 -5
  63. package/dist/extensions/Blocks/Items/extension.js +11 -9
  64. package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +58 -49
  65. package/dist/extensions/Blocks/Items/layouts/vertical.html.js +48 -59
  66. package/dist/extensions/Blocks/Items/settingsPanel.js +27 -26
  67. package/dist/extensions/Blocks/Items/store/items-block.js +11 -7
  68. package/dist/extensions/Blocks/Items/template.js +389 -141
  69. package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +176 -0
  70. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +153 -69
  71. package/dist/extensions/Blocks/Recommendation/constants.js +9 -1
  72. package/dist/extensions/Blocks/Recommendation/control.js +91 -61
  73. package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +68 -0
  74. package/dist/extensions/Blocks/Recommendation/controls/index.js +245 -0
  75. package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +74 -0
  76. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.js +71 -0
  77. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.js +71 -0
  78. package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.js +71 -0
  79. package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.js +71 -0
  80. package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +188 -0
  81. package/dist/extensions/Blocks/Recommendation/extension.js +16 -42
  82. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +117 -72
  83. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +85 -64
  84. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +54 -17
  85. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +74 -45
  86. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +25 -0
  87. package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
  88. package/dist/extensions/Blocks/common-control.js +30 -32
  89. package/dist/extensions/Blocks/controlFactories.js +139 -118
  90. package/dist/guido.css +1 -1
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +370 -291
  92. package/dist/package.json.js +1 -1
  93. package/dist/services/stripoApi.js +6 -10
  94. package/dist/src/@types/config/index.d.ts +2 -2
  95. package/dist/src/@types/config/schemas.d.ts +34 -0
  96. package/dist/src/@types/config/types.d.ts +7 -1
  97. package/dist/src/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.d.ts +2 -0
  98. package/dist/src/components/organisms/header/EditorActions.vue.d.ts +4 -0
  99. package/dist/src/components/organisms/header/EditorToolbar.vue.d.ts +2 -0
  100. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
  101. package/dist/src/composables/useActionsApi.d.ts +1 -0
  102. package/dist/src/composables/useConfig.d.ts +10 -0
  103. package/dist/src/config/migrator/itemsBlockMigrator.d.ts +6 -0
  104. package/dist/src/enums/academy.d.ts +12 -0
  105. package/dist/src/enums/onboarding.d.ts +0 -1
  106. package/dist/src/enums/unsubscribe.d.ts +0 -1
  107. package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
  108. package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
  109. package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
  110. package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +0 -2
  111. package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +9 -0
  112. package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +0 -2
  113. package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -1
  114. package/dist/src/extensions/Blocks/Items/controls/price/singlePrice.d.ts +18 -0
  115. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -4
  116. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
  117. package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +24 -26
  118. package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +1 -2
  119. package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +2 -0
  120. package/dist/src/extensions/Blocks/Items/template.d.ts +22 -1
  121. package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +76 -0
  122. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +50 -3
  123. package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +32 -0
  124. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +5 -2
  125. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +25 -0
  126. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +592 -0
  127. package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +16 -0
  128. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +15 -0
  129. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +15 -0
  130. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +15 -0
  131. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +15 -0
  132. package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +60 -0
  133. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +3 -3
  134. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +15 -7
  135. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
  136. package/dist/src/extensions/Blocks/common-control.d.ts +10 -11
  137. package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
  138. package/dist/src/stores/config.d.ts +181 -1
  139. package/dist/src/stores/editor.d.ts +21 -0
  140. package/dist/static/assets/desktop/desktop-mockup-center.svg.js +4 -0
  141. package/dist/static/assets/desktop/desktop-mockup-left.svg.js +4 -0
  142. package/dist/static/assets/desktop/desktop-mockup-right.svg.js +4 -0
  143. package/dist/static/assets/mobile/email-mockup.svg.js +4 -0
  144. package/dist/static/assets/mobile/inbox-mockup.svg.js +4 -0
  145. package/dist/static/styles/components/button.css.js +1 -1
  146. package/dist/static/styles/components/narrow-panel.css.js +0 -10
  147. package/dist/static/styles/components/wide-panel.css.js +1 -5
  148. package/dist/static/styles/customEditorStyle.css.js +13 -0
  149. package/dist/stores/config.js +7 -0
  150. package/dist/stores/editor.js +1 -0
  151. package/dist/utils/pairProductVariables.js +61 -58
  152. package/dist/utils/templatePreparation.js +17 -17
  153. package/package.json +3 -3
  154. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  155. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  156. package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +0 -17
  157. package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +0 -28
  158. package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +0 -76
  159. package/dist/extensions/Blocks/Items/utils/updateAttributes.js +0 -46
  160. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
  161. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
  162. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
  163. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
  164. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
  165. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
  166. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
  167. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
  168. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
  169. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
  170. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
  171. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
  172. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
  173. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
  174. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
  175. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
  176. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
  177. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
  178. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
  179. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
  180. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
  181. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
  182. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
  183. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
  184. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
  185. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
  186. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
  187. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
  188. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
  189. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
  190. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
  191. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
  192. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
  193. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
  194. package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +0 -23
  195. package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +0 -32
  196. package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +0 -50
  197. package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +0 -8
  198. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
  199. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
  200. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
  201. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
  202. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
  203. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
  204. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
  205. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
  206. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
  207. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
  208. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
  209. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
  210. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
  211. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
  212. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
  213. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
  214. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
  215. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
  216. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
  217. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
  218. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
  219. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
  220. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
  221. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
  222. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
  223. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
  224. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
  225. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
  226. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
  227. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
  228. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
  229. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
  230. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
  231. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
  232. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  233. package/dist/static/assets/phone-mockup.svg.js +0 -4
@@ -1,19 +1,20 @@
1
- import n from "./ContentView.vue2.js";
2
- import e from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
- var c = function() {
4
- var a = this, s = a._self._c, t = a._self._setupProxy;
1
+ import e from "./ContentView.vue2.js";
2
+ /* empty css */
3
+ import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var o = function() {
5
+ var t = this, s = t._self._c, a = t._self._setupProxy;
5
6
  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) {
6
- return a.$emit("back-to-inbox");
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,
7
+ return t.$emit("back-to-inbox");
8
+ } } }, [s(a.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" }, [t._v(t._s(a.trans("newsletter.inbox")))])], 1), s("div", { staticClass: "d-f a-i-c" }, [s(a.InIcons, { staticClass: "i-c-52", attrs: { name: "line-chevron-down" } }), s(a.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 allow-popups-to-escape-sandbox", srcdoc: a.previewStore.previewHtml }, on: { load: a.onLoad } })])]);
9
+ }, i = [], r = /* @__PURE__ */ n(
10
+ e,
11
+ o,
11
12
  i,
12
13
  !1,
13
14
  null,
14
- null
15
+ "e0424e99"
15
16
  );
16
- const d = o.exports;
17
+ const d = r.exports;
17
18
  export {
18
19
  d as default
19
20
  };
@@ -1,20 +1,22 @@
1
- import e from "./InboxView.vue2.js";
1
+ import r from "./InboxView.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
3
+ import i 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: "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(_) {
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) {
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 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,
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: "h-9-s bor-b-w-1 bor-b-s-s bor-b-c-50" });
10
+ })], 2);
11
+ }, n = [], o = /* @__PURE__ */ i(
12
+ r,
11
13
  a,
12
- i,
14
+ n,
13
15
  !1,
14
16
  null,
15
- "4b876c1b"
17
+ "eb3d05d7"
16
18
  );
17
- const m = n.exports;
19
+ const b = o.exports;
18
20
  export {
19
- m as default
21
+ b as default
20
22
  };
@@ -1,17 +1,18 @@
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 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
9
  r,
10
+ a,
10
11
  !1,
11
12
  null,
12
- null
13
+ "3f472f96"
13
14
  );
14
- const _ = i.exports;
15
+ const _ = n.exports;
15
16
  export {
16
17
  _ as default
17
18
  };
@@ -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 ? "83px" : "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
  };
@@ -0,0 +1,21 @@
1
+ import l from "./EditorActions.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var d = function() {
5
+ var s, i, n, a;
6
+ var e = this, o = e._self._c, t = e._self._setupProxy;
7
+ return o("div", { staticClass: "d-f editor-actions" }, [t.isVersionHistoryButtonVisible ? 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 } }), (i = (s = t.config) == null ? void 0 : s.features) != null && i.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(), (a = (n = t.config) == null ? void 0 : n.features) != null && a.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", { staticPosition: "bottom right" }), "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(_) {
8
+ return t.handleSave(!1);
9
+ } } })], 1);
10
+ }, u = [], p = /* @__PURE__ */ r(
11
+ l,
12
+ d,
13
+ u,
14
+ !1,
15
+ null,
16
+ "17dd4d8b"
17
+ );
18
+ const v = p.exports;
19
+ export {
20
+ v as default
21
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as g, ref as u, computed as f } from "vue";
2
+ import { useConfig as E } from "../../../composables/useConfig.js";
3
+ import { useExport as h } from "../../../composables/useExport.js";
4
+ import { useTestEmailClick as w } from "../../../composables/useGuidoActions.js";
5
+ import { useSave as x } from "../../../composables/useSave.js";
6
+ import { useTranslations as T } from "../../../composables/useTranslations.js";
7
+ import { useVersionHistoryApi as O } from "../../../composables/useVersionHistoryApi.js";
8
+ import { useEditorStore as A } from "../../../stores/editor.js";
9
+ import { getTooltipOptions as C } from "../../../utils/tooltipUtils.js";
10
+ import { InButtonV2 as k } from "@useinsider/design-system-vue";
11
+ const J = /* @__PURE__ */ g({
12
+ __name: "EditorActions",
13
+ setup(B, { expose: v }) {
14
+ const { config: n } = E(), { exportHtml: a } = h(), { save: l } = x(), { openVersionHistory: p, closeVersionHistory: c } = O(), o = A(), s = T(), r = u(!1), i = u(!1), d = w(), y = () => {
15
+ if (o.isVersionHistoryOpen) {
16
+ c();
17
+ return;
18
+ }
19
+ p();
20
+ }, H = async () => {
21
+ r.value = !0, await a(), r.value = !1;
22
+ }, V = () => {
23
+ o.isSaveAsTemplateDrawerOpen = !0;
24
+ }, S = f(() => o.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), _ = f(
25
+ () => {
26
+ var t, e;
27
+ return ((e = (t = n.value) == null ? void 0 : t.features) == null ? void 0 : e.versionHistory) && !o.isPreviewModeOpen;
28
+ }
29
+ ), m = async (t) => {
30
+ i.value = !0, o.loadingStatus = !0;
31
+ const e = await l(t);
32
+ return i.value = !1, (t || !e) && (o.loadingStatus = !1), e;
33
+ };
34
+ return v({
35
+ handleSave: m
36
+ }), { __sfc: !0, config: n, exportHtml: a, save: l, openVersionHistory: p, closeVersionHistory: c, editorStore: o, trans: s, isExporting: r, isSaving: i, testEmailClick: d, handleVersionHistory: y, handleExport: H, handleSaveAs: V, versionHistoryTooltipText: S, isVersionHistoryButtonVisible: _, handleSave: m, getTooltipOptions: C, InButtonV2: k };
37
+ }
38
+ });
39
+ export {
40
+ J as default
41
+ };
@@ -0,0 +1,18 @@
1
+ import i from "./EditorToolbar.vue2.js";
2
+ /* empty css */
3
+ import s 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 editor-toolbar" }, [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);
7
+ }, d = [], l = /* @__PURE__ */ s(
8
+ i,
9
+ n,
10
+ d,
11
+ !1,
12
+ null,
13
+ "173c3a40"
14
+ );
15
+ const _ = l.exports;
16
+ export {
17
+ _ as default
18
+ };
@@ -0,0 +1,17 @@
1
+ import { defineComponent as p, computed as i } from "vue";
2
+ import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
3
+ import { useTranslations as l } from "../../../composables/useTranslations.js";
4
+ import { useEditorStore as d } from "../../../stores/editor.js";
5
+ import { getTooltipOptions as w } from "../../../utils/tooltipUtils.js";
6
+ import { InButtonV2 as c } from "@useinsider/design-system-vue";
7
+ import a from "./ViewOptions.vue.js";
8
+ const h = /* @__PURE__ */ p({
9
+ __name: "EditorToolbar",
10
+ setup(f) {
11
+ const o = d(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), n = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), s = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
12
+ return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: n, codeEditorTooltipText: s, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), getTooltipOptions: w, InButtonV2: c, ViewOptions: a };
13
+ }
14
+ });
15
+ export {
16
+ h as default
17
+ };
@@ -1,15 +1,16 @@
1
1
  import o from "./HeaderWrapper.vue2.js";
2
+ /* empty css */
2
3
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var n = function() {
4
+ var a = function() {
4
5
  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(
6
+ 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: "header-wrapper 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)]);
7
+ }, n = [], _ = /* @__PURE__ */ s(
7
8
  o,
8
- n,
9
9
  a,
10
+ n,
10
11
  !1,
11
12
  null,
12
- null
13
+ "5df46e7a"
13
14
  );
14
15
  const c = _.exports;
15
16
  export {
@@ -1,18 +1,18 @@
1
- import s from "./LeftSlot.vue2.js";
1
+ import o from "./LeftSlot.vue2.js";
2
2
  /* empty css */
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(
8
- s,
9
- n,
3
+ import n from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var a = function() {
5
+ var e = this, s = e._self._c, t = e._self._setupProxy;
6
+ return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "disabled-status": t.isBackButtonDisabled, "label-text": t.backButtonLabel, "skeleton-sizing": { width: 150, height: 26 }, "skeleton-status": t.editorStore.loadingStatus }, on: { click: t.handleBackClick } })], 1);
7
+ }, i = [], r = /* @__PURE__ */ n(
8
+ o,
10
9
  a,
10
+ i,
11
11
  !1,
12
12
  null,
13
- "06e6f7a7"
13
+ "cd76c125"
14
14
  );
15
- const p = i.exports;
15
+ const f = r.exports;
16
16
  export {
17
- p as default
17
+ f as default
18
18
  };
@@ -1,32 +1,36 @@
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({
1
+ import { defineComponent as l, computed as d, ref as p } from "vue";
2
+ import { useConfig as k } from "../../../composables/useConfig.js";
3
+ import { useBack as B } from "../../../composables/useGuidoActions.js";
4
+ import { usePreviewMode as b } from "../../../composables/usePreviewMode.js";
5
+ import { useTranslations as v } from "../../../composables/useTranslations.js";
6
+ import { useVersionHistoryApi as _ } from "../../../composables/useVersionHistoryApi.js";
7
+ import { useEditorStore as V } from "../../../stores/editor.js";
8
+ import { InButtonV2 as g } from "@useinsider/design-system-vue";
9
+ import { useDebounceFn as w } from "../../../node_modules/@vueuse/shared/index.js";
10
+ const D = /* @__PURE__ */ l({
11
11
  __name: "LeftSlot",
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: () => {
18
- if (o.isVersionHistoryOpen) {
19
- i();
12
+ setup(y) {
13
+ const e = V(), i = B(), { closeVersionHistory: n } = _(), { closePreviewMode: s } = b(), o = v(), { config: t } = k(), f = d(() => {
14
+ var u, m;
15
+ return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (m = (u = t.value) == null ? void 0 : u.ui) != null && m.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
16
+ }), r = p(!1), c = () => {
17
+ if (e.isVersionHistoryOpen) {
18
+ n();
20
19
  return;
21
20
  }
22
- if (o.isPreviewModeOpen) {
23
- n();
21
+ if (e.isPreviewModeOpen) {
22
+ s();
24
23
  return;
25
24
  }
26
- r();
27
- }, InButtonV2: b, RestoreButton: _ };
25
+ e.loadingStatus = !0, i();
26
+ }, a = w(() => {
27
+ c(), r.value = !1;
28
+ }, 500);
29
+ return { __sfc: !0, editorStore: e, handleBack: i, closeVersionHistory: n, closePreviewMode: s, trans: o, config: t, backButtonLabel: f, isBackButtonDisabled: r, executeBackAction: c, debouncedBackAction: a, handleBackClick: () => {
30
+ r.value = !0, a();
31
+ }, InButtonV2: g };
28
32
  }
29
33
  });
30
34
  export {
31
- h as default
35
+ D as default
32
36
  };
@@ -1,17 +1,17 @@
1
1
  import i from "./MiddleSlot.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var n = function() {
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);
6
- }, d = [], l = /* @__PURE__ */ s(
3
+ var t = function() {
4
+ var r = this, e = r._self._c, o = r._self._setupProxy;
5
+ return e("div", [o.editorStore.isVersionHistoryOpen ? e("div", { staticClass: "d-f" }, [e(o.VersionHistory), e(o.VersionHistoryViewOptions)], 1) : o.editorStore.isPreviewModeOpen ? e("div", { staticClass: "d-f" }, [e(o.EmailSizeIndicator), e(o.AmpToggle)], 1) : r._e(), e(o.EditorToolbar, { directives: [{ name: "show", rawName: "v-show", value: o.editorStore.isEditorToolbarVisible, expression: "editorStore.isEditorToolbarVisible" }] })], 1);
6
+ }, n = [], a = /* @__PURE__ */ s(
7
7
  i,
8
+ t,
8
9
  n,
9
- d,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const p = l.exports;
14
+ const c = a.exports;
15
15
  export {
16
- p as default
16
+ c as default
17
17
  };
@@ -1,20 +1,16 @@
1
- import { defineComponent as p, computed as i } from "vue";
2
- import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
3
- import { useTranslations as l } from "../../../composables/useTranslations.js";
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({
1
+ import { defineComponent as o } from "vue";
2
+ import r from "../email-preview/amp/AmpToggle.vue.js";
3
+ import t from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
4
+ import { useEditorStore as i } from "../../../stores/editor.js";
5
+ import e from "./EditorToolbar.vue.js";
6
+ import m from "./version-history/VersionHistory.vue.js";
7
+ import p from "./version-history/ViewOptions.vue.js";
8
+ const S = /* @__PURE__ */ o({
12
9
  __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 };
10
+ setup(s) {
11
+ return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t, EditorToolbar: e, VersionHistory: m, VersionHistoryViewOptions: p };
16
12
  }
17
13
  });
18
14
  export {
19
- C as default
15
+ S as default
20
16
  };
@@ -1,20 +1,17 @@
1
- import u from "./RightSlot.vue2.js";
2
- import d from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var p = function() {
4
- var o, i, n, a, l, r;
5
- var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "d-f" }, [(i = (o = t.config) == null ? void 0 : o.features) != null && i.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : s._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (a = (n = t.config) == null ? void 0 : n.features) != null && a.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : s._e(), (r = (l = t.config) == null ? void 0 : l.features) != null && r.testMessage ? e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: t.testEmailClick } }) : s._e(), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(f) {
7
- return t.handleSave(!1);
8
- } } })], 1);
9
- }, c = [], _ = /* @__PURE__ */ d(
10
- u,
11
- p,
12
- c,
1
+ import o from "./RightSlot.vue2.js";
2
+ import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var n = function() {
4
+ var r = this, t = r._self._c, e = r._self._setupProxy;
5
+ return t("div", { staticClass: "d-f" }, [e.editorStore.isVersionHistoryOpen ? t(e.RestoreButton) : t(e.EditorActions, { ref: "editorActionsRef" })], 1);
6
+ }, i = [], _ = /* @__PURE__ */ s(
7
+ o,
8
+ n,
9
+ i,
13
10
  !1,
14
11
  null,
15
12
  null
16
13
  );
17
- const y = _.exports;
14
+ const l = _.exports;
18
15
  export {
19
- y as default
16
+ l as default
20
17
  };
@@ -1,36 +1,19 @@
1
- import { defineComponent as H, ref as m, computed as _ } from "vue";
2
- import { useConfig as h } from "../../../composables/useConfig.js";
3
- import { useExport as V } from "../../../composables/useExport.js";
4
- import { useTestEmailClick as x } from "../../../composables/useGuidoActions.js";
5
- import { useSave as E } from "../../../composables/useSave.js";
6
- import { useTranslations as T } from "../../../composables/useTranslations.js";
7
- import { useVersionHistoryApi as w } from "../../../composables/useVersionHistoryApi.js";
8
- import { useEditorStore as C } from "../../../stores/editor.js";
9
- import { getTooltipOptions as O } from "../../../utils/tooltipUtils.js";
10
- import { InButtonV2 as A } from "@useinsider/design-system-vue";
11
- const J = /* @__PURE__ */ H({
1
+ import { defineComponent as i, ref as s } from "vue";
2
+ import { useEditorStore as m } from "../../../stores/editor.js";
3
+ import f from "./EditorActions.vue.js";
4
+ import a from "./version-history/RestoreButton.vue.js";
5
+ const l = /* @__PURE__ */ i({
12
6
  __name: "RightSlot",
13
- setup(k, { expose: c }) {
14
- const { config: u } = h(), { exportHtml: r } = V(), { save: n } = E(), { openVersionHistory: i, closeVersionHistory: a } = w(), o = C(), t = T(), e = m(!1), s = m(!1), f = x(), v = () => {
15
- if (o.isVersionHistoryOpen) {
16
- a();
17
- return;
7
+ setup(p, { expose: e }) {
8
+ const r = m(), o = s(null);
9
+ return e({
10
+ handleSave: (n) => {
11
+ var t;
12
+ return (t = o.value) == null ? void 0 : t.handleSave(n);
18
13
  }
19
- i();
20
- }, d = async () => {
21
- e.value = !0, await r(), e.value = !1;
22
- }, y = () => {
23
- o.isSaveAsTemplateDrawerOpen = !0;
24
- }, S = _(() => o.isVersionHistoryOpen ? t("newsletter.close-version-history") : t("newsletter.version-history")), l = async (p) => {
25
- s.value = !0, o.loadingStatus = !0;
26
- const g = await n(p);
27
- return s.value = !1, p && (o.loadingStatus = !1), g;
28
- };
29
- return c({
30
- handleSave: l
31
- }), { __sfc: !0, config: u, exportHtml: r, save: n, openVersionHistory: i, closeVersionHistory: a, editorStore: o, trans: t, isExporting: e, isSaving: s, testEmailClick: f, handleVersionHistory: v, handleExport: d, handleSaveAs: y, versionHistoryTooltipText: S, handleSave: l, getTooltipOptions: O, InButtonV2: A };
14
+ }), { __sfc: !0, editorStore: r, editorActionsRef: o, EditorActions: f, RestoreButton: a };
32
15
  }
33
16
  });
34
17
  export {
35
- J as default
18
+ l as default
36
19
  };
@@ -1,20 +1,20 @@
1
- import o from "./VersionHistory.vue2.js";
1
+ import r from "./VersionHistory.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
5
  var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "version-history-wrapper d-f a-i-c f-g-1 mx-3" }, [t.itemStatus ? e(t.VersionHistoryItem, { attrs: { "text-align": "right", date: t.versionHistoryStore.previousPatch.date, description: t.versionHistoryStore.previousPatch.description } }) : s._e(), e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasPreviousPatch, "label-text-status": !1 }, on: { click: function(r) {
6
+ return e("div", { staticClass: "version-history d-f a-i-c f-g-1 mx-3" }, [t.itemStatus ? e(t.VersionHistoryItem, { attrs: { "text-align": "right", date: t.versionHistoryStore.previousPatch.date, description: t.versionHistoryStore.previousPatch.description } }) : s._e(), e("div", { staticClass: "d-f version-history__toolbar" }, [e(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasPreviousPatch, "label-text-status": !1 }, on: { click: function(o) {
7
7
  return t.previewVersion(t.versionHistoryStore.previousPatch.id);
8
- } } }), e(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasNextPatch, "label-text-status": !1 }, on: { click: function(r) {
8
+ } } }), e(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasNextPatch, "label-text-status": !1 }, on: { click: function(o) {
9
9
  return t.previewVersion(t.versionHistoryStore.nextPatch.id);
10
10
  } } })], 1), t.itemStatus ? e(t.VersionHistoryItem, { attrs: { "text-align": "left", date: t.versionHistoryStore.nextPatch.date, description: t.versionHistoryStore.nextPatch.description } }) : s._e()], 1);
11
11
  }, a = [], c = /* @__PURE__ */ i(
12
- o,
12
+ r,
13
13
  n,
14
14
  a,
15
15
  !1,
16
16
  null,
17
- "52a77eec"
17
+ "64c52560"
18
18
  );
19
19
  const _ = c.exports;
20
20
  export {
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as v, ref as D, computed as o } from "vue";
2
- import h from "../../wrappers/WpModal.vue.js";
3
- import { useConfig as y } from "../../../composables/useConfig.js";
4
- import { useTranslations as _ } from "../../../composables/useTranslations.js";
5
- import { ACADEMY_LINK as c } from "../../../enums/onboarding.js";
6
- import C from "../../../static/assets/onboarding-img.svg.js";
7
- import { useOnboardingStore as L } from "../../../stores/onboarding.js";
8
- import { isAfterDate as w, formatShortDate as N } from "../../../utils/dateUtil.js";
9
- const E = /* @__PURE__ */ v({
2
+ import _ from "../../wrappers/WpModal.vue.js";
3
+ import { useConfig as h } from "../../../composables/useConfig.js";
4
+ import { useTranslations as y } from "../../../composables/useTranslations.js";
5
+ import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
6
+ import L from "../../../static/assets/onboarding-img.svg.js";
7
+ import { useOnboardingStore as C } from "../../../stores/onboarding.js";
8
+ import { isAfterDate as w, formatShortDate as A } from "../../../utils/dateUtil.js";
9
+ const V = /* @__PURE__ */ v({
10
10
  __name: "NewVersionPopup",
11
11
  emits: ["onboarding-finished"],
12
- setup(S, { emit: a }) {
13
- const e = _(), t = L(), s = D(!0), { config: p } = y(), i = o(() => {
12
+ setup(I, { emit: a }) {
13
+ const e = y(), t = C(), s = D(!0), { config: p } = h(), i = o(() => {
14
14
  var l, m;
15
15
  return (m = (l = p.value) == null ? void 0 : l.editor) == null ? void 0 : m.migrationDate;
16
- }), n = o(() => w(i.value || 0)), d = o(() => N(
16
+ }), n = o(() => w(i.value || 0)), d = o(() => A(
17
17
  i.value || 0
18
18
  )), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), g = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
19
19
  sunsetDate: d.value,
20
- academyLink: c
20
+ academyLink: c.EMAIL_EDITOR
21
21
  }) : e("email-editor.onboarding-description", {
22
- academyLink: c
22
+ academyLink: c.EMAIL_EDITOR
23
23
  })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), b = o(() => ({
24
24
  primaryButton: {
25
25
  type: "primary",
@@ -38,9 +38,9 @@ const E = /* @__PURE__ */ v({
38
38
  t.onRemindMeLater(), r();
39
39
  }, handleClose: () => {
40
40
  t.onNewVersionPopupClose(), r();
41
- }, WpModal: h, onboardingImageSvg: C };
41
+ }, WpModal: _, onboardingImageSvg: L };
42
42
  }
43
43
  });
44
44
  export {
45
- E as default
45
+ V as default
46
46
  };
@@ -10,7 +10,7 @@ var i = function() {
10
10
  r,
11
11
  !1,
12
12
  null,
13
- "bb3bb07c"
13
+ "43c617a7"
14
14
  );
15
15
  const _ = c.exports;
16
16
  export {