@useinsider/guido 1.0.2-beta.ad1dcd9 → 1.0.2-beta.b3c5fc9

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 (250) hide show
  1. package/README.md +2 -44
  2. package/dist/@types/events.d.ts +0 -6
  3. package/dist/@types/generic.d.ts +0 -13
  4. package/dist/_virtual/AddCustomFont.js +4 -0
  5. package/dist/_virtual/AiAssistantValueType.js +4 -0
  6. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  7. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  8. package/dist/_virtual/Block.js +4 -0
  9. package/dist/_virtual/BlockAttributes.js +4 -0
  10. package/dist/_virtual/BlockCompositionType.js +4 -0
  11. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  12. package/dist/_virtual/BlockRenderer.js +4 -0
  13. package/dist/_virtual/BlockType.js +4 -0
  14. package/dist/_virtual/BlocksPanel.js +4 -0
  15. package/dist/_virtual/BuiltInControl.js +4 -0
  16. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  17. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  20. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  21. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  22. package/dist/_virtual/ContextAction.js +4 -0
  23. package/dist/_virtual/ContextActionType.js +4 -0
  24. package/dist/_virtual/Control.js +4 -0
  25. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  26. package/dist/_virtual/Extension.js +4 -0
  27. package/dist/_virtual/ExtensionBuilder.js +4 -0
  28. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  29. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  30. package/dist/_virtual/ModificationDescription.js +4 -0
  31. package/dist/_virtual/PanelPosition.js +4 -0
  32. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  33. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  34. package/dist/_virtual/SettingsPanelTab.js +4 -0
  35. package/dist/_virtual/SettingsTab.js +4 -0
  36. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  37. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  40. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  41. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  42. package/dist/_virtual/UIElement.js +4 -0
  43. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  44. package/dist/_virtual/UIElementType.js +4 -0
  45. package/dist/_virtual/UIElementsAttributes.js +4 -0
  46. package/dist/_virtual/index.js +5 -0
  47. package/dist/_virtual/index2.js +4 -0
  48. package/dist/components/Guido.vue.d.ts +2 -5
  49. package/dist/components/Guido.vue.js +10 -10
  50. package/dist/components/Guido.vue2.js +61 -85
  51. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
  52. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +8 -7
  53. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
  54. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
  55. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
  56. package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
  57. package/dist/components/organisms/header/LeftSlot.vue.js +9 -10
  58. package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
  59. package/dist/components/organisms/header/MiddleSlot.vue2.js +16 -15
  60. package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
  61. package/dist/components/organisms/header/RightSlot.vue.js +4 -6
  62. package/dist/components/organisms/header/RightSlot.vue2.js +28 -26
  63. package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
  64. package/dist/components/organisms/header/ViewOptions.vue2.js +15 -14
  65. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
  66. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
  67. package/dist/components/wrappers/WpDrawer.vue.d.ts +4 -6
  68. package/dist/components/wrappers/WpDrawer.vue.js +4 -6
  69. package/dist/composables/useCustomInterfaceAppearance.js +19 -25
  70. package/dist/composables/useHtmlCompiler.js +9 -17
  71. package/dist/composables/usePartner.d.ts +0 -1
  72. package/dist/composables/usePartner.js +9 -16
  73. package/dist/composables/usePreviewMode.js +13 -13
  74. package/dist/composables/useStripo.js +52 -61
  75. package/dist/composables/useToaster.js +17 -17
  76. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
  77. package/dist/enums/defaults.d.ts +1 -6
  78. package/dist/enums/defaults.js +10 -50
  79. package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
  80. package/dist/extensions/DynamicContent/extension.js +6 -18
  81. package/dist/guido.css +1 -1
  82. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
  83. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
  84. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
  85. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
  100. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -23
  101. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  102. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  103. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  104. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  105. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  106. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  107. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  108. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  109. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  110. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
  111. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  112. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  113. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
  114. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
  115. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  116. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  117. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  118. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  119. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  121. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  122. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
  123. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
  124. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
  125. package/dist/static/styles/components/alert-message.css.js +2 -32
  126. package/dist/static/styles/components/button.css.js +2 -32
  127. package/dist/static/styles/components/wide-panel.css.js +2 -15
  128. package/dist/static/styles/variables.css.js +0 -10
  129. package/dist/stores/dynamic-content.d.ts +0 -12
  130. package/dist/stores/dynamic-content.js +6 -7
  131. package/dist/stores/editor.d.ts +1 -194
  132. package/dist/stores/editor.js +2 -18
  133. package/dist/stores/preview.d.ts +8 -0
  134. package/dist/stores/preview.js +20 -12
  135. package/dist/utils/genericUtil.js +6 -9
  136. package/dist/utils/templatePreparation.js +14 -21
  137. package/package.json +3 -5
  138. package/dist/components/organisms/LoadingWrapper.vue.d.ts +0 -2
  139. package/dist/components/organisms/LoadingWrapper.vue.js +0 -18
  140. package/dist/components/organisms/LoadingWrapper.vue2.js +0 -12
  141. package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
  142. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
  143. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -37
  144. package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
  145. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
  146. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -83
  147. package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
  148. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
  149. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
  150. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
  151. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
  152. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -43
  153. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
  154. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
  155. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -74
  156. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
  157. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
  158. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -37
  159. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
  160. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
  161. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
  162. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
  163. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
  164. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
  165. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
  166. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
  167. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -108
  168. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
  169. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
  170. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
  171. package/dist/composables/useHtmlValidator.d.ts +0 -4
  172. package/dist/composables/useHtmlValidator.js +0 -139
  173. package/dist/composables/useRecommendation.d.ts +0 -19
  174. package/dist/composables/useRecommendation.js +0 -27
  175. package/dist/composables/useSave.d.ts +0 -4
  176. package/dist/composables/useSave.js +0 -15
  177. package/dist/composables/useStripoEventHandler.d.ts +0 -3
  178. package/dist/composables/useStripoEventHandler.js +0 -20
  179. package/dist/config/compiler/outlookCompilerRules.js +0 -36
  180. package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
  181. package/dist/config/compiler/recommendationCompilerRules.js +0 -83
  182. package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
  183. package/dist/config/compiler/socialCompilerRules.js +0 -21
  184. package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
  185. package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
  186. package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
  187. package/dist/config/migrator/checkboxMigrator.js +0 -83
  188. package/dist/config/migrator/index.d.ts +0 -1
  189. package/dist/config/migrator/index.js +0 -9
  190. package/dist/config/migrator/unsubscribeMigrator.d.ts +0 -1
  191. package/dist/config/migrator/unsubscribeMigrator.js +0 -112
  192. package/dist/enums/html-validator.d.ts +0 -6
  193. package/dist/enums/html-validator.js +0 -7
  194. package/dist/enums/onboarding.d.ts +0 -1
  195. package/dist/enums/onboarding.js +0 -8
  196. package/dist/enums/recommendation.d.ts +0 -54
  197. package/dist/enums/recommendation.js +0 -56
  198. package/dist/enums/unsubscribe.d.ts +0 -34
  199. package/dist/enums/unsubscribe.js +0 -50
  200. package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
  201. package/dist/extensions/Blocks/Checkbox/block.js +0 -39
  202. package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
  203. package/dist/extensions/Blocks/Checkbox/control.js +0 -104
  204. package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
  205. package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
  206. package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
  207. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
  208. package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
  209. package/dist/extensions/Blocks/Checkbox/template.js +0 -75
  210. package/dist/extensions/Blocks/Unsubscribe/block.d.ts +0 -30
  211. package/dist/extensions/Blocks/Unsubscribe/block.js +0 -141
  212. package/dist/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
  213. package/dist/extensions/Blocks/Unsubscribe/control.js +0 -180
  214. package/dist/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
  215. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -54
  216. package/dist/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
  217. package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
  218. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
  219. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -32
  220. package/dist/extensions/Blocks/Unsubscribe/template.d.ts +0 -3
  221. package/dist/extensions/Blocks/Unsubscribe/template.js +0 -28
  222. package/dist/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
  223. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
  224. package/dist/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
  225. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
  226. package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
  227. package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  228. package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  229. package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  230. package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  231. package/dist/mock/api/unsubscribe.d.ts +0 -2
  232. package/dist/mock/api/user-modal-state.d.ts +0 -2
  233. package/dist/mock/api/validator.d.ts +0 -2
  234. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
  235. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
  236. package/dist/services/onboardingApi.d.ts +0 -4
  237. package/dist/services/onboardingApi.js +0 -23
  238. package/dist/services/unsubscribeApi.d.ts +0 -4
  239. package/dist/services/unsubscribeApi.js +0 -16
  240. package/dist/static/assets/onboarding-img.svg.js +0 -4
  241. package/dist/static/styles/components/loader.css.js +0 -10
  242. package/dist/static/styles/components/notification.css.js +0 -55
  243. package/dist/static/styles/components/popup.css.js +0 -68
  244. package/dist/static/styles/customEditorStyle.css.js +0 -24
  245. package/dist/stores/onboarding.d.ts +0 -1068
  246. package/dist/stores/onboarding.js +0 -95
  247. package/dist/stores/recommendation.d.ts +0 -10
  248. package/dist/stores/recommendation.js +0 -9
  249. package/dist/stores/unsubscribe.d.ts +0 -186
  250. package/dist/stores/unsubscribe.js +0 -128
@@ -1,21 +1,17 @@
1
- import { defineComponent as R, defineAsyncComponent as G, ref as x, computed as U, watch as F, onMounted as M, onUnmounted as z } from "vue";
2
- import { provideGuidoActions as B } from "../composables/useGuidoActions.js";
3
- import { usePartner as K } from "../composables/usePartner.js";
4
- import { useStripo as O } from "../composables/useStripo.js";
5
- import { migrate as I } from "../config/migrator/index.js";
6
- import { DefaultUsername as j, DefaultMessageType as q, DefaultGuidoConfig as J } from "../enums/defaults.js";
7
- import Q from "./organisms/base/Toaster.vue.js";
8
- import V from "./organisms/header/HeaderWrapper.vue.js";
9
- import X from "./organisms/LoadingWrapper.vue.js";
10
- import Y from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
11
- import Z from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
12
- import { useStripoApi as $ } from "../services/stripoApi.js";
13
- import { useDynamicContentStore as ee } from "../stores/dynamic-content.js";
14
- import { useEditorStore as oe } from "../stores/editor.js";
15
- import { usePreviewStore as te } from "../stores/preview.js";
16
- import { useUnsubscribeStore as ne } from "../stores/unsubscribe.js";
17
- import re from "../node_modules/lodash-es/merge.js";
18
- const Se = /* @__PURE__ */ R({
1
+ import { defineComponent as I, defineAsyncComponent as P, computed as _, onMounted as L, onUnmounted as k } from "vue";
2
+ import { provideGuidoActions as A } from "../composables/useGuidoActions.js";
3
+ import { usePartner as N } from "../composables/usePartner.js";
4
+ import { useStripo as U } from "../composables/useStripo.js";
5
+ import { DefaultUsername as x, DefaultMessageType as M, DefaultGuidoConfig as W } from "../enums/defaults.js";
6
+ import z from "./organisms/base/Toaster.vue.js";
7
+ import B from "./organisms/header/HeaderWrapper.vue.js";
8
+ import F from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
9
+ import { useStripoApi as H } from "../services/stripoApi.js";
10
+ import { useDynamicContentStore as K } from "../stores/dynamic-content.js";
11
+ import { useEditorStore as R } from "../stores/editor.js";
12
+ import { usePreviewStore as j } from "../stores/preview.js";
13
+ import q from "../node_modules/lodash-es/merge.js";
14
+ const se = /* @__PURE__ */ I({
19
15
  __name: "Guido",
20
16
  props: {
21
17
  templateId: null,
@@ -26,101 +22,81 @@ const Se = /* @__PURE__ */ R({
26
22
  username: null,
27
23
  html: null,
28
24
  css: null,
29
- guidoConfig: null,
30
- templateConfig: null
25
+ preselectedDynamicContentList: null,
26
+ guidoConfig: null
31
27
  },
32
- emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready"],
33
- setup(W, { expose: _, emit: o }) {
34
- const d = W, L = G(
28
+ emits: ["dynamic-content:open", "back", "save:start", "save:complete"],
29
+ setup(b, { expose: E, emit: t }) {
30
+ const o = b, T = P(
35
31
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
36
- ), k = G(
37
- () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
38
- ), m = x(), s = ee(), u = ne(), l = oe(), A = te(), n = U(() => l.hasChanges), { getPartnerName: p, getProductType: g, isTestPartner: N } = K(), f = () => {
39
- var e;
40
- return (e = m.value) == null ? void 0 : e.handleSave(!0);
41
- }, {
42
- templateId: y,
43
- userId: v,
44
- guidoConfig: b,
45
- templateConfig: t,
46
- html: r = "",
47
- css: h = "",
48
- partnerName: a = p(),
49
- productType: i = g(),
50
- messageType: C = q,
51
- username: w = j
52
- } = d, c = (t == null ? void 0 : t.preselectedDynamicContentList) || [];
53
- window.GuidoConfig = re(J, b), window.GuidoConfig.partner = {
54
- partnerName: a,
32
+ ), n = K(), c = R(), a = _(() => c.hasChanges), r = o.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d } = N(), G = j(), {
33
+ templateId: l,
34
+ userId: u,
35
+ guidoConfig: p,
36
+ html: f = "",
37
+ css: g = "",
38
+ partnerName: s = m(),
39
+ productType: i = d(),
40
+ messageType: y = M,
41
+ username: C = x
42
+ } = o;
43
+ window.GuidoConfig = q(W, p), window.GuidoConfig.partner = {
44
+ partnerName: s,
55
45
  productType: i,
56
- messageType: C
46
+ messageType: y
57
47
  };
58
- const { initPlugin: S } = O({
59
- emailId: y,
60
- userId: v,
61
- username: w,
62
- partnerName: a,
48
+ const { initPlugin: v } = U({
49
+ emailId: l,
50
+ userId: u,
51
+ username: C,
52
+ partnerName: s,
63
53
  productType: i,
64
- preselectedDynamicContentList: c,
65
- onReady: () => {
66
- console.debug("guido:ready"), o("ready");
67
- }
68
- }), { getDefaultTemplate: D } = $(), H = U(() => {
69
- var e;
70
- return !((e = window.GuidoConfig) != null && e.useHeader);
71
- });
72
- B({
54
+ preselectedDynamicContentList: r
55
+ }), { getDefaultTemplate: w } = H();
56
+ A({
73
57
  onBack: () => {
74
- console.debug("guido:back"), o("back");
58
+ console.debug("guido:back"), t("back");
75
59
  },
76
60
  onSaveStart: () => {
77
- console.debug("guido:save:start"), o("save:start");
61
+ console.debug("guido:save:start"), t("save:start");
78
62
  },
79
63
  onSaveComplete: (e) => {
80
- console.debug("guido:save:complete", e), o("save:complete", e);
64
+ console.debug("guido:save:complete", e), t("save:complete", e);
81
65
  }
82
66
  });
83
- const T = (e) => {
84
- console.debug("dynamic-content:close", e), s.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
85
- }, E = () => {
67
+ const D = (e) => {
68
+ console.debug("dynamic-content:close", e), n.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
69
+ }, S = () => {
86
70
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
87
71
  };
88
- return F(() => n.value, () => {
89
- o("on-change", n.value);
90
- }), M(async () => {
72
+ return L(async () => {
91
73
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
92
74
  try {
93
- u.selectedUnsubscribePages = (t == null ? void 0 : t.selectedUnsubscribePages) || [];
94
75
  let e = {
95
- html: r && await I(r),
96
- css: h,
76
+ html: f,
77
+ css: g,
97
78
  forceRecreate: !0
98
79
  // TODO: It should be false for old templates. We will communicate with Stripo
99
80
  };
100
- e.html || (e = await D(), e.html = await I(e.html)), await S(e), s.selectedDynamicContentList = c;
81
+ e.html || (e = await w()), await v(e), n.selectedDynamicContentList = r;
101
82
  } catch (e) {
102
83
  console.error("Failed to initialize Stripo editor:", e);
103
84
  }
104
85
  document.addEventListener("dynamic-content:open", (e) => {
105
- const P = e;
106
- console.debug("dynamic-content:open", P.detail), o("dynamic-content:open", P.detail);
86
+ const h = e;
87
+ console.debug("dynamic-content:open", h.detail), t("dynamic-content:open", h.detail);
107
88
  });
108
- }), z(() => {
109
- try {
110
- window.UIEditor.removeEditor();
111
- } catch {
112
- console.debug("Failed to remove Stripo editor: No editor found");
113
- }
114
- }), _({
89
+ }), k(() => {
90
+ window.UIEditor.removeEditor();
91
+ }), E({
115
92
  dynamicContent: {
116
- insert: T,
117
- close: E
93
+ insert: D,
94
+ close: S
118
95
  },
119
- hasChanges: n,
120
- saveSilent: f
121
- }), { __sfc: !0, PreviewContainer: L, OnboardingWrapper: k, headerWrapperRef: m, dynamicContentStore: s, unsubscribeStore: u, props: d, editorStore: l, previewStore: A, hasChanges: n, getPartnerName: p, getProductType: g, isTestPartner: N, saveSilent: f, templateId: y, userId: v, guidoConfig: b, templateConfig: t, html: r, css: h, partnerName: a, productType: i, messageType: C, username: w, preselectedDynamicContentList: c, emit: o, initPlugin: S, getDefaultTemplate: D, noHeader: H, insertDynamicContent: T, closeDynamicContent: E, Toaster: Q, HeaderWrapper: V, LoadingWrapper: X, SaveAsTemplateDrawer: Y, UnsubscribeWrapper: Z };
96
+ hasChanges: a
97
+ }), { __sfc: !0, PreviewContainer: T, dynamicContentStore: n, props: o, editorStore: c, hasChanges: a, preselectedDynamicContentList: r, getPartnerName: m, getProductType: d, previewStore: G, templateId: l, userId: u, guidoConfig: p, html: f, css: g, partnerName: s, productType: i, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, insertDynamicContent: D, closeDynamicContent: S, Toaster: z, HeaderWrapper: B, SaveAsTemplateDrawer: F };
122
98
  }
123
99
  });
124
100
  export {
125
- Se as default
101
+ se as default
126
102
  };
@@ -1,19 +1,19 @@
1
- import s from "./PreviewContainer.vue2.js";
2
- import t from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var i = function() {
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 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
- return e.previewStore.closeErrorModal();
7
- } } }) : o._e()], 1) : o._e();
8
- }, n = [], a = /* @__PURE__ */ t(
9
- s,
1
+ import i from "./PreviewContainer.vue2.js";
2
+ import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var t = function() {
4
+ var s = this, e = s._self._c, r = s._self._setupProxy;
5
+ return e("div", { staticClass: "d-f f-d-c h-1 b-c-5 bor-r-2 pb-5" }, [e("div", { staticClass: "f-g-1 d-f p-5 o-a g-4 min-h-600" }, [r.previewStore.isLoading ? [e("div", { staticClass: "d-f a-i-c j-c-c w-1 h-1 f-g-1" }, [e(r.InLoading, { attrs: { "color-class": "i-c-1", size: "32" } })], 1)] : [e(r.DesktopPreview, { staticClass: "f-g-1 min-w-0" }), e(r.MobilePreview, { staticClass: "f-0 min-w-a" })]], 2), r.previewStore.isAMPErrorModalVisible ? e(r.AmpErrorModal, { on: { close: function(l) {
6
+ return r.previewStore.closeErrorModal();
7
+ } } }) : s._e()], 1);
8
+ }, a = [], n = /* @__PURE__ */ o(
10
9
  i,
11
- n,
10
+ t,
11
+ a,
12
12
  !1,
13
13
  null,
14
14
  null
15
15
  );
16
- const p = a.exports;
16
+ const d = n.exports;
17
17
  export {
18
- p as default
18
+ d as default
19
19
  };
@@ -1,18 +1,19 @@
1
1
  import { defineComponent as r, onMounted as t } from "vue";
2
2
  import { usePreviewMode as i } from "../../../composables/usePreviewMode.js";
3
3
  import { usePreviewStore as m } from "../../../stores/preview.js";
4
+ import { InLoading as n } from "@useinsider/design-system-vue";
4
5
  import p from "./amp/AmpErrorModal.vue.js";
5
- import n from "./desktop-preview/DesktopPreview.vue.js";
6
+ import f from "./desktop-preview/DesktopPreview.vue.js";
6
7
  import s from "./mobile-preview/MobilePreview.vue.js";
7
- const P = /* @__PURE__ */ r({
8
+ const l = /* @__PURE__ */ r({
8
9
  __name: "PreviewContainer",
9
- setup(f) {
10
- const { loadPreviewData: e } = i(), o = m();
10
+ setup(a) {
11
+ const { loadPreviewData: o } = i(), e = m();
11
12
  return t(() => {
12
- e();
13
- }), { __sfc: !0, loadPreviewData: e, previewStore: o, AmpErrorModal: p, DesktopPreview: n, MobilePreview: s };
13
+ o();
14
+ }), { __sfc: !0, loadPreviewData: o, previewStore: e, InLoading: n, AmpErrorModal: p, DesktopPreview: f, MobilePreview: s };
14
15
  }
15
16
  });
16
17
  export {
17
- P as default
18
+ l as default
18
19
  };
@@ -1,9 +1,8 @@
1
1
  import o from "./AmpToggle.vue2.js";
2
- /* empty css */
3
2
  import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
3
  var s = function() {
5
4
  var r = this, t = r._self._c, e = r._self._setupProxy;
6
- return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(l) {
5
+ return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(c) {
7
6
  return e.previewStore.openErrorModal();
8
7
  } } }) : r._e()], 1)]);
9
8
  }, a = [], i = /* @__PURE__ */ n(
@@ -12,7 +11,7 @@ var s = function() {
12
11
  a,
13
12
  !1,
14
13
  null,
15
- "b5997368"
14
+ null
16
15
  );
17
16
  const d = i.exports;
18
17
  export {
@@ -1,4 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- handleSave: (isSilent: boolean) => Promise<import("../../../@types/stripo.js").SavedTemplateDetails | undefined> | undefined;
3
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
4
2
  export default _default;
@@ -1,17 +1,17 @@
1
- import o from "./HeaderWrapper.vue2.js";
1
+ import t from "./HeaderWrapper.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var n = function() {
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)]);
4
+ var o = this, r = o._self._c, e = o._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)], 1)]);
6
6
  }, a = [], _ = /* @__PURE__ */ s(
7
- o,
7
+ t,
8
8
  n,
9
9
  a,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const c = _.exports;
14
+ const d = _.exports;
15
15
  export {
16
- c as default
16
+ d as default
17
17
  };
@@ -1,20 +1,14 @@
1
- import { defineComponent as n, ref as m } from "vue";
2
- import { InContainer as a } from "@useinsider/design-system-vue";
3
- import f from "./LeftSlot.vue.js";
4
- import p from "./MiddleSlot.vue.js";
5
- import i from "./RightSlot.vue.js";
6
- const c = /* @__PURE__ */ n({
1
+ import { defineComponent as o } from "vue";
2
+ import { InContainer as r } from "@useinsider/design-system-vue";
3
+ import t from "./LeftSlot.vue.js";
4
+ import e from "./MiddleSlot.vue.js";
5
+ import m from "./RightSlot.vue.js";
6
+ const s = /* @__PURE__ */ o({
7
7
  __name: "HeaderWrapper",
8
- setup(l, { expose: r }) {
9
- const e = m(null);
10
- return r({
11
- handleSave: (t) => {
12
- var o;
13
- return (o = e.value) == null ? void 0 : o.handleSave(t);
14
- }
15
- }), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
8
+ setup(p) {
9
+ return { __sfc: !0, InContainer: r, LeftSlot: t, MiddleSlot: e, RightSlot: m };
16
10
  }
17
11
  });
18
12
  export {
19
- c as default
13
+ s as default
20
14
  };
@@ -1,18 +1,17 @@
1
- import o from "./LeftSlot.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var a = function() {
1
+ import n from "./LeftSlot.vue2.js";
2
+ import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var r = function() {
5
4
  var e = this, s = e._self._c, t = e._self._setupProxy;
6
5
  return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" }, on: { click: t.handleBack } }), t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
7
- }, n = [], i = /* @__PURE__ */ r(
8
- o,
9
- a,
6
+ }, a = [], i = /* @__PURE__ */ o(
10
7
  n,
8
+ r,
9
+ a,
11
10
  !1,
12
11
  null,
13
- "a18ac2d3"
12
+ null
14
13
  );
15
- const d = i.exports;
14
+ const f = i.exports;
16
15
  export {
17
- d as default
16
+ f as default
18
17
  };
@@ -1,17 +1,17 @@
1
1
  import i from "./MiddleSlot.vue2.js";
2
2
  import s from "../../../_virtual/_plugin-vue2_normalizer.js";
3
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(
4
+ var o = this, e = o._self._c, t = o._self._setupProxy;
5
+ return t.editorStore.isVersionHistoryOpen ? e("div", { staticClass: "d-f" }, [e(t.VersionHistory), e(t.VersionHistoryViewOptions)], 1) : e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), e(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), e(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), e(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.previewStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), e(t.ViewOptions, { staticClass: "ml-3" }), t.previewStore.isPreviewModeOpen ? e(t.AmpToggle) : o._e()], 1);
6
+ }, r = [], l = /* @__PURE__ */ s(
7
7
  i,
8
8
  n,
9
- d,
9
+ r,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const p = l.exports;
14
+ const u = l.exports;
15
15
  export {
16
- p as default
16
+ u as default
17
17
  };
@@ -1,20 +1,21 @@
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 m, computed as s } from "vue";
2
+ import { usePreviewMode as l } from "../../../composables/usePreviewMode.js";
3
+ import { useTranslations as d } from "../../../composables/useTranslations.js";
4
+ import w from "../email-preview/amp/AmpToggle.vue.js";
5
+ import { useEditorStore as c } from "../../../stores/editor.js";
6
+ import { usePreviewStore as f } from "../../../stores/preview.js";
7
+ import { getTooltipOptions as v } from "../../../utils/tooltipUtils.js";
8
+ import { InButtonV2 as a } from "@useinsider/design-system-vue";
9
+ import u from "./version-history/VersionHistory.vue.js";
10
+ import T from "./version-history/ViewOptions.vue.js";
11
+ import P from "./ViewOptions.vue.js";
12
+ const B = /* @__PURE__ */ m({
12
13
  __name: "MiddleSlot",
13
- setup(T) {
14
- const o = w(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), s = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), n = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
15
- return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: s, codeEditorTooltipText: n, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), AmpToggle: d, getTooltipOptions: c, InButtonV2: f, VersionHistory: a, VersionHistoryViewOptions: v, ViewOptions: u };
14
+ setup(_) {
15
+ const t = c(), e = d(), o = f(), { openPreviewMode: r, closePreviewMode: i } = l(), n = s(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), p = s(() => t.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
16
+ return { __sfc: !0, editorStore: t, trans: e, previewStore: o, openPreviewMode: r, closePreviewMode: i, previewTooltipText: n, codeEditorTooltipText: p, handlePreviewToggle: () => o.isPreviewModeOpen ? i() : r(), AmpToggle: w, getTooltipOptions: v, InButtonV2: a, VersionHistory: u, VersionHistoryViewOptions: T, ViewOptions: P };
16
17
  }
17
18
  });
18
19
  export {
19
- C as default
20
+ B as default
20
21
  };
@@ -1,4 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- handleSave: (isSilent: boolean) => Promise<import("../../../@types/stripo").SavedTemplateDetails | undefined>;
3
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
4
2
  export default _default;
@@ -3,10 +3,8 @@ import a from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var l = function() {
4
4
  var s, i;
5
5
  var o = this, e = o._self._c, t = o._self._setupProxy;
6
- return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.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 } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (i = t.config.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), 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") } }), 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(p) {
7
- return t.handleSave(!1);
8
- } } })], 1);
9
- }, r = [], d = /* @__PURE__ */ a(
6
+ return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.previewStore.isPreviewModeOpen, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.exportHtml } }), (i = t.config.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": t.isSaveButtonDisabled }, on: { click: t.handleSave } })], 1);
7
+ }, r = [], p = /* @__PURE__ */ a(
10
8
  n,
11
9
  l,
12
10
  r,
@@ -14,7 +12,7 @@ var l = function() {
14
12
  null,
15
13
  null
16
14
  );
17
- const g = d.exports;
15
+ const c = p.exports;
18
16
  export {
19
- g as default
17
+ c as default
20
18
  };
@@ -1,33 +1,35 @@
1
- import { defineComponent as g, ref as l, computed as H } from "vue";
2
- import { useConfig as _ } from "../../../composables/useConfig.js";
3
- import { useExport as h } from "../../../composables/useExport.js";
4
- import { useSave as V } from "../../../composables/useSave.js";
5
- import { useTranslations as x } from "../../../composables/useTranslations.js";
6
- import { useVersionHistoryApi as w } from "../../../composables/useVersionHistoryApi.js";
7
- import { useEditorStore as T } from "../../../stores/editor.js";
8
- import { getTooltipOptions as E } from "../../../utils/tooltipUtils.js";
9
- import { InButtonV2 as O } from "@useinsider/design-system-vue";
10
- const z = /* @__PURE__ */ g({
1
+ import { defineComponent as y, computed as p } from "vue";
2
+ import { useConfig as H } from "../../../composables/useConfig.js";
3
+ import { useExport as V } from "../../../composables/useExport.js";
4
+ import { useSaveStart as _, useSaveComplete as h } from "../../../composables/useGuidoActions.js";
5
+ import { useTranslations as w } from "../../../composables/useTranslations.js";
6
+ import { useVersionHistoryApi as T } from "../../../composables/useVersionHistoryApi.js";
7
+ import { useEditorStore as O } from "../../../stores/editor.js";
8
+ import { usePreviewStore as g } from "../../../stores/preview.js";
9
+ import { useTemplatePreparation as x } from "../../../utils/templatePreparation.js";
10
+ import { getTooltipOptions as C } from "../../../utils/tooltipUtils.js";
11
+ import { InButtonV2 as D } from "@useinsider/design-system-vue";
12
+ const z = /* @__PURE__ */ y({
11
13
  __name: "RightSlot",
12
- setup(A, { expose: m }) {
13
- const { config: u } = _(), { exportHtml: r } = h(), { save: n } = V(), { openVersionHistory: i, closeVersionHistory: a } = w(), o = T(), t = x(), e = l(!1), s = l(!1), c = () => {
14
- if (o.isVersionHistoryOpen) {
15
- a();
14
+ setup(A) {
15
+ const { config: m } = H(), { exportHtml: c } = V(), r = _(), s = h(), { openVersionHistory: i, closeVersionHistory: n } = T(), e = O(), o = w(), a = g(), l = () => {
16
+ if (e.isVersionHistoryOpen) {
17
+ n();
16
18
  return;
17
19
  }
18
20
  i();
19
- }, f = async () => {
20
- e.value = !0, await r(), e.value = !1;
21
- }, v = () => {
22
- o.isSaveAsTemplateDrawerOpen = !0;
23
- }, d = H(() => o.isVersionHistoryOpen ? t("newsletter.close-version-history") : t("newsletter.version-history")), p = async (y) => {
24
- s.value = !0, o.loadingStatus = !0;
25
- const S = await n(y);
26
- return s.value = !1, o.loadingStatus = !1, S;
27
- };
28
- return m({
29
- handleSave: p
30
- }), { __sfc: !0, config: u, exportHtml: r, save: n, openVersionHistory: i, closeVersionHistory: a, editorStore: o, trans: t, isExporting: e, isSaving: s, handleVersionHistory: c, handleExport: f, handleSaveAs: v, versionHistoryTooltipText: d, handleSave: p, getTooltipOptions: E, InButtonV2: O };
21
+ }, f = () => {
22
+ e.isSaveAsTemplateDrawerOpen = !0;
23
+ }, u = p(() => e.isVersionHistoryOpen ? o("newsletter.close-version-history") : o("newsletter.version-history")), v = async () => {
24
+ r();
25
+ try {
26
+ const { prepareTemplateDetails: t } = x(), d = await t();
27
+ s(d);
28
+ } catch (t) {
29
+ console.error("Failed to get template data for save:", t);
30
+ }
31
+ }, S = p(() => e.isVersionHistoryOpen || a.isPreviewModeOpen);
32
+ return { __sfc: !0, config: m, exportHtml: c, saveStart: r, saveComplete: s, openVersionHistory: i, closeVersionHistory: n, editorStore: e, trans: o, previewStore: a, handleVersionHistory: l, handleSaveAs: f, versionHistoryTooltipText: u, handleSave: v, isSaveButtonDisabled: S, getTooltipOptions: C, InButtonV2: D };
31
33
  }
32
34
  });
33
35
  export {
@@ -1,18 +1,18 @@
1
- import i from "./ViewOptions.vue2.js";
1
+ import r from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var t = this, s = t._self._c, e = t._self._setupProxy;
6
- return s("div", { staticClass: "view-options-wrapper" }, [s(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } }), e.editorStore.isViewOptionsDisabled ? t._e() : s(e.InChips, { staticClass: "new-tag", attrs: { id: "guido__view-options-new-tag", styles: "stroke", value: "chips", "close-button": !1, interactive: !1, text: e.trans("settings.new") } })], 1);
7
- }, r = [], a = /* @__PURE__ */ o(
8
- i,
9
- n,
3
+ import i from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var s = function() {
5
+ var t = this, o = t._self._c, e = t._self._setupProxy;
6
+ return o(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.previewStore.isPreviewModeOpen, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
7
+ }, n = [], _ = /* @__PURE__ */ i(
10
8
  r,
9
+ s,
10
+ n,
11
11
  !1,
12
12
  null,
13
- "195ab6d4"
13
+ "aad05c54"
14
14
  );
15
- const c = a.exports;
15
+ const p = _.exports;
16
16
  export {
17
- c as default
17
+ p as default
18
18
  };