@useinsider/guido 1.0.2-beta.91efff4 → 1.0.2-beta.94d67e3

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 (201) hide show
  1. package/README.md +2 -32
  2. package/dist/@types/events.d.ts +0 -6
  3. package/dist/@types/generic.d.ts +0 -4
  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 +1 -3
  49. package/dist/components/Guido.vue.js +5 -5
  50. package/dist/components/Guido.vue2.js +60 -72
  51. package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
  52. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
  53. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +15 -14
  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/RightSlot.vue.d.ts +1 -3
  58. package/dist/components/organisms/header/RightSlot.vue.js +3 -5
  59. package/dist/components/organisms/header/RightSlot.vue2.js +27 -25
  60. package/dist/components/organisms/header/ViewOptions.vue.js +4 -4
  61. package/dist/components/organisms/header/ViewOptions.vue2.js +14 -14
  62. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
  63. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
  64. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +13 -13
  65. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +23 -21
  66. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +14 -14
  67. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +27 -25
  68. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +1 -1
  69. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -36
  70. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -13
  71. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +29 -39
  72. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +14 -14
  73. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
  74. package/dist/composables/useCustomInterfaceAppearance.js +18 -22
  75. package/dist/composables/useHtmlCompiler.js +9 -17
  76. package/dist/composables/usePreviewMode.js +15 -14
  77. package/dist/composables/useStripo.js +36 -40
  78. package/dist/composables/useStripoEventHandler.js +8 -8
  79. package/dist/composables/useToaster.js +17 -17
  80. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
  81. package/dist/enums/defaults.d.ts +1 -5
  82. package/dist/enums/defaults.js +10 -14
  83. package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
  84. package/dist/extensions/DynamicContent/extension.js +6 -18
  85. package/dist/guido.css +1 -1
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
  100. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
  101. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
  102. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
  103. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
  104. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -22
  105. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  106. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  107. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  108. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  109. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  110. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  111. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  112. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  113. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  114. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
  115. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  116. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  117. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
  118. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
  119. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  121. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  122. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  123. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  124. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  125. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  126. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
  127. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
  128. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
  129. package/dist/services/onboardingApi.d.ts +2 -2
  130. package/dist/services/onboardingApi.js +9 -9
  131. package/dist/static/styles/components/alert-message.css.js +2 -32
  132. package/dist/static/styles/components/button.css.js +2 -32
  133. package/dist/static/styles/components/wide-panel.css.js +1 -5
  134. package/dist/static/styles/customEditorStyle.css.js +0 -6
  135. package/dist/static/styles/variables.css.js +0 -10
  136. package/dist/stores/dynamic-content.d.ts +0 -12
  137. package/dist/stores/dynamic-content.js +6 -7
  138. package/dist/stores/onboarding.d.ts +592 -133
  139. package/dist/stores/onboarding.js +55 -38
  140. package/dist/stores/preview.js +14 -6
  141. package/dist/utils/genericUtil.d.ts +0 -5
  142. package/dist/utils/genericUtil.js +6 -9
  143. package/dist/utils/templatePreparation.js +14 -21
  144. package/package.json +3 -5
  145. package/dist/composables/useHtmlValidator.d.ts +0 -4
  146. package/dist/composables/useHtmlValidator.js +0 -139
  147. package/dist/composables/useRecommendation.d.ts +0 -19
  148. package/dist/composables/useRecommendation.js +0 -27
  149. package/dist/composables/useSave.d.ts +0 -4
  150. package/dist/composables/useSave.js +0 -15
  151. package/dist/config/compiler/outlookCompilerRules.js +0 -36
  152. package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
  153. package/dist/config/compiler/recommendationCompilerRules.js +0 -83
  154. package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
  155. package/dist/config/compiler/socialCompilerRules.js +0 -21
  156. package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
  157. package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
  158. package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
  159. package/dist/config/migrator/checkboxMigrator.js +0 -83
  160. package/dist/config/migrator/index.d.ts +0 -1
  161. package/dist/config/migrator/index.js +0 -5
  162. package/dist/enums/html-validator.d.ts +0 -6
  163. package/dist/enums/html-validator.js +0 -7
  164. package/dist/enums/recommendation.d.ts +0 -54
  165. package/dist/enums/recommendation.js +0 -56
  166. package/dist/enums/unsubscribe.d.ts +0 -15
  167. package/dist/enums/unsubscribe.js +0 -17
  168. package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
  169. package/dist/extensions/Blocks/Checkbox/block.js +0 -39
  170. package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
  171. package/dist/extensions/Blocks/Checkbox/control.js +0 -104
  172. package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
  173. package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
  174. package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
  175. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
  176. package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
  177. package/dist/extensions/Blocks/Checkbox/template.js +0 -75
  178. package/dist/extensions/Blocks/CouponBlock/block.d.ts +0 -11
  179. package/dist/extensions/Blocks/CouponBlock/block.js +0 -42
  180. package/dist/extensions/Blocks/CouponBlock/extension.d.ts +0 -2
  181. package/dist/extensions/Blocks/CouponBlock/extension.js +0 -19
  182. package/dist/extensions/Blocks/CouponBlock/settingsPanel.d.ts +0 -4
  183. package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +0 -37
  184. package/dist/extensions/Blocks/CouponBlock/template.d.ts +0 -3
  185. package/dist/extensions/Blocks/CouponBlock/template.js +0 -13
  186. package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
  187. package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  188. package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  189. package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  190. package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  191. package/dist/icons/coupon.svg +0 -3
  192. package/dist/mock/api/unsubscribe.d.ts +0 -2
  193. package/dist/mock/api/validator.d.ts +0 -2
  194. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
  195. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
  196. package/dist/static/styles/components/notification.css.js +0 -55
  197. package/dist/static/styles/components/popup.css.js +0 -68
  198. package/dist/stores/recommendation.d.ts +0 -10
  199. package/dist/stores/recommendation.js +0 -9
  200. package/dist/stores/unsubscribe.d.ts +0 -8
  201. package/dist/stores/unsubscribe.js +0 -9
@@ -1,29 +1,30 @@
1
- import { defineComponent as m, computed as n } from "vue";
2
- import { useTranslations as r } from "../../../../composables/useTranslations.js";
3
- import { usePreviewStore as i } from "../../../../stores/preview.js";
4
- import { InButtonV2 as s, InSegments as l } from "@useinsider/design-system-vue";
5
- const _ = /* @__PURE__ */ m({
1
+ import { defineComponent as r, computed as i } from "vue";
2
+ import { useTranslations as m } from "../../../../composables/useTranslations.js";
3
+ import { useOnboardingStore as s } from "../../../../stores/onboarding.js";
4
+ import { usePreviewStore as p } from "../../../../stores/preview.js";
5
+ import { InButtonV2 as l, InSegments as d } from "@useinsider/design-system-vue";
6
+ const v = /* @__PURE__ */ r({
6
7
  __name: "AmpToggle",
7
- setup(p) {
8
- const t = i(), e = r(), o = n(() => [
8
+ setup(u) {
9
+ const t = p(), e = s(), o = m(), a = i(() => [
9
10
  {
10
- text: e("dynamic-creatives.html"),
11
+ text: o("dynamic-creatives.html"),
11
12
  value: "html"
12
13
  },
13
14
  {
14
- text: e("email-editor.amp-html"),
15
+ text: o("email-editor.amp-html"),
15
16
  value: "AMP",
16
- tooltipText: t.hasAMP ? "" : e("email-editor.preview-amp-unavailable-tooltip"),
17
+ tooltipText: t.hasAMP ? "" : o("email-editor.preview-amp-unavailable-tooltip"),
17
18
  position: "bottom",
18
19
  align: "center",
19
20
  disable: !t.hasAMP
20
21
  }
21
22
  ]);
22
- return { __sfc: !0, previewStore: t, trans: e, segmentList: o, handleFormatChange: (a) => {
23
- t.setEmailFormat(a);
24
- }, InSegments: l, InButtonV2: s };
23
+ return { __sfc: !0, previewStore: t, onboardingStore: e, trans: o, segmentList: a, handleFormatChange: (n) => {
24
+ t.setEmailFormat(n), n === "AMP" && e.shouldShowOnboarding("ampOnboarding") && e.start("ampOnboarding");
25
+ }, InSegments: d, InButtonV2: l };
25
26
  }
26
27
  });
27
28
  export {
28
- _ as default
29
+ v as default
29
30
  };
@@ -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,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,9 +3,7 @@ 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);
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, "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.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: t.handleSave } })], 1);
9
7
  }, r = [], d = /* @__PURE__ */ a(
10
8
  n,
11
9
  l,
@@ -14,7 +12,7 @@ var l = function() {
14
12
  null,
15
13
  null
16
14
  );
17
- const g = d.exports;
15
+ const c = d.exports;
18
16
  export {
19
- g as default
17
+ c as default
20
18
  };
@@ -1,35 +1,37 @@
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";
1
+ import { defineComponent as v, ref as S, computed as g } from "vue";
2
+ import { useConfig as y } from "../../../composables/useConfig.js";
3
+ import { useExport as H } from "../../../composables/useExport.js";
4
+ import { useSaveStart as h, useSaveComplete as O } from "../../../composables/useGuidoActions.js";
5
+ import { useTranslations as _ } from "../../../composables/useTranslations.js";
6
+ import { useVersionHistoryApi as b } from "../../../composables/useVersionHistoryApi.js";
7
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({
8
+ import { useOnboardingStore as V } from "../../../stores/onboarding.js";
9
+ import { useTemplatePreparation as w } from "../../../utils/templatePreparation.js";
10
+ import { getTooltipOptions as x } from "../../../utils/tooltipUtils.js";
11
+ import { InButtonV2 as A } from "@useinsider/design-system-vue";
12
+ const J = /* @__PURE__ */ v({
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
+ setup(C) {
15
+ const { config: m } = y(), { exportHtml: l } = H(), n = h(), i = O(), { openVersionHistory: a, closeVersionHistory: p } = b(), o = T(), t = V(), e = _(), r = S(!1), c = () => {
14
16
  if (o.isVersionHistoryOpen) {
15
- a();
17
+ p(), t.isActive("versionHistoryOnboarding") && t.close("versionHistoryOnboarding");
16
18
  return;
17
19
  }
18
- i();
19
- }, f = async () => {
20
- e.value = !0, await r(), e.value = !1;
21
- }, v = () => {
20
+ a(), t.shouldShowOnboarding("versionHistoryOnboarding") && t.start("versionHistoryOnboarding");
21
+ }, f = () => {
22
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 };
23
+ }, u = g(() => o.isVersionHistoryOpen ? e("newsletter.close-version-history") : e("newsletter.version-history"));
24
+ return { __sfc: !0, config: m, exportHtml: l, saveStart: n, saveComplete: i, openVersionHistory: a, closeVersionHistory: p, editorStore: o, onboardingStore: t, trans: e, isSaving: r, handleVersionHistory: c, handleSaveAs: f, versionHistoryTooltipText: u, handleSave: async () => {
25
+ r.value = !0, o.loadingStatus = !0, n();
26
+ try {
27
+ const { prepareTemplateDetails: s } = w(), d = await s();
28
+ i(d), r.value = !1, o.loadingStatus = !1;
29
+ } catch (s) {
30
+ console.error("Failed to get template data for save:", s);
31
+ }
32
+ }, getTooltipOptions: x, InButtonV2: A };
31
33
  }
32
34
  });
33
35
  export {
34
- z as default
36
+ J as default
35
37
  };
@@ -3,16 +3,16 @@ import i from "./ViewOptions.vue2.js";
3
3
  import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
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);
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.showNewTag ? s("div", { staticClass: "new-tag" }, [t._v(" " + t._s(e.trans("settings.new")) + " ")]) : t._e()], 1);
7
7
  }, r = [], a = /* @__PURE__ */ o(
8
8
  i,
9
9
  n,
10
10
  r,
11
11
  !1,
12
12
  null,
13
- "195ab6d4"
13
+ "35d10bcf"
14
14
  );
15
- const c = a.exports;
15
+ const p = a.exports;
16
16
  export {
17
- c as default
17
+ p as default
18
18
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as n } from "vue";
2
- import { useTranslations as p } from "../../../composables/useTranslations.js";
3
- import { useEditorStore as s } from "../../../stores/editor.js";
4
- import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
5
- import { InChips as r, InSegments as m } from "@useinsider/design-system-vue";
6
- const f = /* @__PURE__ */ n({
1
+ import { defineComponent as s, computed as p } from "vue";
2
+ import { useTranslations as r } from "../../../composables/useTranslations.js";
3
+ import { useEditorStore as m } from "../../../stores/editor.js";
4
+ import { getTooltipOptions as e } from "../../../utils/tooltipUtils.js";
5
+ import { InSegments as l } from "@useinsider/design-system-vue";
6
+ const g = /* @__PURE__ */ s({
7
7
  __name: "ViewOptions",
8
- setup(l) {
9
- const e = s(), t = p(), i = [
8
+ setup(a) {
9
+ const t = m(), o = r(), i = p(() => !t.isViewOptionsDisabled), n = [
10
10
  {
11
11
  text: "",
12
12
  icon: "line-desktop",
13
13
  value: "desktop",
14
14
  position: "bottom",
15
15
  align: "center",
16
- tooltipText: t("newsletter.desktop"),
17
- tooltipOptions: o("guido__view-option-desktop")
16
+ tooltipText: o("newsletter.desktop"),
17
+ tooltipOptions: e("guido__view-option-desktop")
18
18
  },
19
19
  {
20
20
  text: "",
@@ -22,13 +22,13 @@ const f = /* @__PURE__ */ n({
22
22
  value: "mobile",
23
23
  position: "bottom",
24
24
  align: "center",
25
- tooltipText: t("newsletter.mobile"),
26
- tooltipOptions: o("guido__view-option-mobile")
25
+ tooltipText: o("newsletter.mobile"),
26
+ tooltipOptions: e("guido__view-option-mobile")
27
27
  }
28
28
  ];
29
- return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: m, InChips: r };
29
+ return { __sfc: !0, editorStore: t, trans: o, showNewTag: i, segmentList: n, InSegments: l };
30
30
  }
31
31
  });
32
32
  export {
33
- f as default
33
+ g as default
34
34
  };
@@ -1,18 +1,18 @@
1
- import i from "./ViewOptions.vue2.js";
1
+ import s from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var s = this, t = s._self._c, e = s._self._setupProxy;
6
- return t("div", { staticClass: "view-options-wrapper" }, [t(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } }), t(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 r = function() {
5
+ var t = this, o = t._self._c, e = t._self._setupProxy;
6
+ return o(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } });
7
+ }, n = [], _ = /* @__PURE__ */ i(
8
+ s,
10
9
  r,
10
+ n,
11
11
  !1,
12
12
  null,
13
- "d405ca59"
13
+ "421ffc13"
14
14
  );
15
- const d = a.exports;
15
+ const f = _.exports;
16
16
  export {
17
- d as default
17
+ f as default
18
18
  };
@@ -3,10 +3,10 @@ import { useTranslations as m } from "../../../../composables/useTranslations.js
3
3
  import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
4
4
  import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
5
5
  import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
6
- import { InChips as c, InSegments as u } from "@useinsider/design-system-vue";
7
- const T = /* @__PURE__ */ p({
6
+ import { InSegments as c } from "@useinsider/design-system-vue";
7
+ const h = /* @__PURE__ */ p({
8
8
  __name: "ViewOptions",
9
- setup(_) {
9
+ setup(u) {
10
10
  const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
11
11
  {
12
12
  text: "",
@@ -33,9 +33,9 @@ const T = /* @__PURE__ */ p({
33
33
  return;
34
34
  }
35
35
  e();
36
- }, InSegments: u, InChips: c };
36
+ }, InSegments: c };
37
37
  }
38
38
  });
39
39
  export {
40
- T as default
40
+ h as default
41
41
  };
@@ -1,20 +1,20 @@
1
- import d from "./AMPOnboarding.vue2.js";
2
- import g from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var l = function() {
4
- var t, r, e, i, a, s;
5
- var n = this, p = n._self._c, o = n._self._setupProxy;
6
- return o.isVisible ? p(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (r = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : r.bottom, "left-position": (e = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : e.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": (i = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : i.position, "right-position": (a = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : a.right, "top-position": (s = o.onboardingStore.getAmpCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: function(u) {
7
- return o.onboardingStore.close("ampOnboarding");
8
- }, nextButtonClick: o.handleNext } }) : n._e();
9
- }, m = [], c = /* @__PURE__ */ g(
10
- d,
1
+ import l from "./AMPOnboarding.vue2.js";
2
+ import p from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var u = function() {
4
+ var r, n, e, i, s, a;
5
+ var o = this, c = o._self._c, t = o._self._setupProxy;
6
+ return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-amp-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.currentCard) == null ? void 0 : n.bottom, "left-position": (e = t.currentCard) == null ? void 0 : e.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(f) {
7
+ return t.store.close("ampOnboarding");
8
+ }, nextButtonClick: t.handleNext } }) : o._e();
9
+ }, d = [], _ = /* @__PURE__ */ p(
11
10
  l,
12
- m,
11
+ u,
12
+ d,
13
13
  !1,
14
14
  null,
15
15
  null
16
16
  );
17
- const f = c.exports;
17
+ const C = _.exports;
18
18
  export {
19
- f as default
19
+ C as default
20
20
  };
@@ -1,37 +1,39 @@
1
- import { defineComponent as p, computed as e, watch as m } from "vue";
2
- import { useTranslations as g } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as u } from "../../../stores/onboarding.js";
4
- import { InOnboard as b } from "@useinsider/design-system-vue";
5
- const O = /* @__PURE__ */ p({
1
+ import { defineComponent as l, computed as o, watch as g } from "vue";
2
+ import { useTranslations as f } from "../../../composables/useTranslations.js";
3
+ import { useOnboardingStore as b } from "../../../stores/onboarding.js";
4
+ import { InOnboard as C } from "@useinsider/design-system-vue";
5
+ const h = /* @__PURE__ */ l({
6
6
  __name: "AMPOnboarding",
7
- setup(l) {
8
- const i = g(), o = u(), r = e(() => `${window.innerWidth / 2 - 110}px`), a = e(() => [
7
+ setup(x) {
8
+ const e = f(), n = b(), r = o(() => `${window.innerWidth / 2 - 110}px`), s = o(() => [
9
9
  {
10
10
  classes: "guido-amp-onboarding",
11
11
  left: r.value,
12
12
  top: "70px",
13
13
  position: "Top Center",
14
- title: i("email-editor.onboarding-amp-title"),
15
- description: i("email-editor.onboarding-amp-description"),
14
+ title: e("email-editor.onboarding-amp-title"),
15
+ description: e("email-editor.onboarding-amp-description"),
16
16
  imageSource: "",
17
17
  backButtonClick: () => {
18
18
  },
19
19
  nextButtonType: "text",
20
- nextButtonText: i("action-builder.ok"),
21
- nextButtonClick: () => void o.close("ampOnboarding")
20
+ nextButtonText: e("roi-statistics.onboard-modal-finish"),
21
+ nextButtonClick: () => void n.close("ampOnboarding")
22
22
  }
23
- ]), d = e(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), s = () => {
24
- var n, t;
25
- (t = (n = o.getAmpCurrentCard) == null ? void 0 : n.nextButtonClick) == null || t.call(n);
26
- }, c = () => {
27
- var n, t;
28
- (t = (n = o.getAmpCurrentCard) == null ? void 0 : n.backButtonClick) == null || t.call(n);
23
+ ]), d = o(() => n.ampOnboarding.config.length > 0), c = o(() => n.ampOnboarding.isActive), m = o(() => n.ampOnboarding.config), a = o(() => n.ampCurrentCard), p = () => {
24
+ var t, i;
25
+ (i = (t = a.value) == null ? void 0 : t.nextButtonClick) == null || i.call(t);
26
+ }, u = () => {
27
+ var t, i;
28
+ (i = (t = a.value) == null ? void 0 : t.backButtonClick) == null || i.call(t);
29
29
  };
30
- return m(() => o.onboardings.ampOnboarding.isActive, (n) => {
31
- n && o.setConfig("ampOnboarding", a.value);
32
- }, { immediate: !0 }), { __sfc: !0, trans: i, onboardingStore: o, centerLeft: r, onboardingCardsConfig: a, isVisible: d, handleNext: s, handleBack: c, InOnboard: b };
30
+ return g(c, (t) => {
31
+ t && setTimeout(() => {
32
+ n.setConfig("ampOnboarding", s.value);
33
+ }, 500);
34
+ }, { immediate: !0 }), { __sfc: !0, trans: e, store: n, centerLeft: r, onboardingCardsConfig: s, isVisible: d, status: c, config: m, currentCard: a, handleNext: p, handleBack: u, InOnboard: C };
33
35
  }
34
36
  });
35
37
  export {
36
- O as default
38
+ h as default
37
39
  };
@@ -1,21 +1,21 @@
1
- import c from "./GenericOnboarding.vue2.js";
1
+ import d from "./GenericOnboarding.vue2.js";
2
2
  /* empty css */
3
- import g from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var l = function() {
5
- var r, n, t, i, a, s;
6
- var o = this, d = o._self._c, e = o._self._setupProxy;
7
- return e.isVisible ? d(e.InOnboard, { key: "guido__editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : r.classes, attrs: { id: "guido__editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : n.bottom, "left-position": (t = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : t.left, "pages-config": e.onboardingStore.onboardings.genericOnboarding.config, "pointer-position": (i = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : i.position, "right-position": (a = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : a.right, "top-position": (s = e.onboardingStore.getGenericCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: e.handleBack, close: function(u) {
8
- return e.onboardingStore.close("genericOnboarding");
9
- }, nextButtonClick: e.handleNext } }) : o._e();
10
- }, p = [], _ = /* @__PURE__ */ g(
11
- c,
12
- l,
3
+ import l from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var p = function() {
5
+ var r, e, n, i, s, a;
6
+ var o = this, c = o._self._c, t = o._self._setupProxy;
7
+ return t.isVisible && t.status ? c(t.InOnboard, { key: "guido-editor-onboard", staticClass: "w-21-s p-a z-11", class: (r = t.currentCard) == null ? void 0 : r.classes, attrs: { id: "guido-editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (e = t.currentCard) == null ? void 0 : e.bottom, "left-position": (n = t.currentCard) == null ? void 0 : n.left, "pages-config": t.config, "pointer-position": (i = t.currentCard) == null ? void 0 : i.position, "right-position": (s = t.currentCard) == null ? void 0 : s.right, "top-position": (a = t.currentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(m) {
8
+ return t.onboardingStore.close("genericOnboarding");
9
+ }, nextButtonClick: t.handleNext } }) : o._e();
10
+ }, u = [], _ = /* @__PURE__ */ l(
11
+ d,
13
12
  p,
13
+ u,
14
14
  !1,
15
15
  null,
16
- "d3c52b44"
16
+ "037dda0b"
17
17
  );
18
- const S = _.exports;
18
+ const v = _.exports;
19
19
  export {
20
- S as default
20
+ v as default
21
21
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as l, computed as i, watch as b } from "vue";
2
- import { useTranslations as x } from "../../../composables/useTranslations.js";
3
- import { SERVICE_HOVER_SELECTORS as m } from "../../../enums/onboarding.js";
4
- import { useOnboardingStore as k } from "../../../stores/onboarding.js";
5
- import { InOnboard as f } from "@useinsider/design-system-vue";
6
- const S = /* @__PURE__ */ l({
1
+ import { defineComponent as m, computed as i, watch as f } from "vue";
2
+ import { useTranslations as k } from "../../../composables/useTranslations.js";
3
+ import { SERVICE_HOVER_SELECTORS as B } from "../../../enums/onboarding.js";
4
+ import { useOnboardingStore as C } from "../../../stores/onboarding.js";
5
+ import { InOnboard as T } from "@useinsider/design-system-vue";
6
+ const y = /* @__PURE__ */ m({
7
7
  __name: "GenericOnboarding",
8
- setup(B) {
9
- const e = x(), o = k(), r = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
8
+ setup(O) {
9
+ const e = k(), o = C(), s = i(() => `${window.innerWidth / 2 - 160}px`), c = () => {
10
10
  const t = document.querySelector("ui-editor");
11
- t != null && t.shadowRoot && m.forEach((n) => {
12
- var d;
13
- const a = (d = t.shadowRoot) == null ? void 0 : d.querySelector(n);
14
- a && a.classList.add("hover");
11
+ t != null && t.shadowRoot && B.forEach((n) => {
12
+ var u;
13
+ const p = (u = t.shadowRoot) == null ? void 0 : u.querySelector(n);
14
+ p && p.classList.add("hover");
15
15
  });
16
- }, s = i(() => [
16
+ }, a = i(() => [
17
17
  {
18
18
  classes: "guido-onboarding-blocks",
19
19
  left: "90px",
@@ -33,8 +33,8 @@ const S = /* @__PURE__ */ l({
33
33
  {
34
34
  classes: "guido-onboarding-stripes",
35
35
  right: "450px",
36
- bottom: "38px",
37
- position: "Right Bottom",
36
+ bottom: "50px",
37
+ position: "Right Top",
38
38
  title: e("email-editor.onboarding-stripes-title"),
39
39
  description: e("email-editor.onboarding-stripes-description"),
40
40
  imageSource: "",
@@ -51,7 +51,7 @@ const S = /* @__PURE__ */ l({
51
51
  },
52
52
  {
53
53
  classes: "guido-onboarding-preview",
54
- left: r.value,
54
+ left: s.value,
55
55
  top: "90px",
56
56
  position: "Top Center",
57
57
  title: e("email-editor.onboarding-preview-title"),
@@ -61,23 +61,25 @@ const S = /* @__PURE__ */ l({
61
61
  backButtonText: e("ds-steps.back"),
62
62
  backButtonClick: () => o.previous("genericOnboarding"),
63
63
  nextButtonType: "text",
64
- nextButtonText: e("action-builder.ok"),
64
+ nextButtonText: e("roi-statistics.onboard-modal-finish"),
65
65
  nextButtonClick: () => {
66
66
  o.close("genericOnboarding");
67
67
  }
68
68
  }
69
- ]), g = i(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), p = () => {
69
+ ]), g = i(() => o.genericOnboarding.config.length > 0), d = i(() => o.genericOnboarding.isActive), l = i(() => o.genericOnboarding.config), r = i(() => o.genericCurrentCard), b = () => {
70
70
  var t, n;
71
- (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
72
- }, u = () => {
71
+ (n = (t = r.value) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
72
+ }, x = () => {
73
73
  var t, n;
74
- (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
74
+ (n = (t = r.value) == null ? void 0 : t.backButtonClick) == null || n.call(t);
75
75
  };
76
- return b(() => o.onboardings.genericOnboarding.isActive, (t) => {
77
- t && o.setConfig("genericOnboarding", s.value);
78
- }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: r, addHoverToServiceElements: c, onboardingCardsConfig: s, isVisible: g, handleNext: p, handleBack: u, InOnboard: f };
76
+ return f(d, (t) => {
77
+ t && setTimeout(() => {
78
+ o.setConfig("genericOnboarding", a.value);
79
+ }, 500);
80
+ }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: g, status: d, config: l, currentCard: r, handleNext: b, handleBack: x, InOnboard: T };
79
81
  }
80
82
  });
81
83
  export {
82
- S as default
84
+ y as default
83
85
  };
@@ -2,7 +2,7 @@ import s from "./NewVersionPopup.vue2.js";
2
2
  import n from "../../../_virtual/_plugin-vue2_normalizer.js";
3
3
  var r = function() {
4
4
  var e = this, t = e._self._c, o = e._self._setupProxy;
5
- return o.isVisible ? t(o.WpModal, { attrs: { id: "guido__new-version-popup", "close-on-outside-click": !1, "footer-button-options": o.footerButtonOptions, title: o.trans("email-editor.onboarding-title") }, on: { close: o.handleClose, "primary-action": o.handleDiscoverNow, "secondary-action": o.handleRemindLater } }, [t("div", { staticClass: "d-f f-d-c" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n mb-5", attrs: { src: o.onboardingImageSvg } }), t("p", { staticClass: "f-s-2 f-w-400", domProps: { innerHTML: e._s(o.trans("email-editor.onboarding-description")) } })])]) : e._e();
5
+ return o.isVisible ? t(o.WpModal, { attrs: { id: "new-version-popup", "close-on-outside-click": !1, "footer-button-options": o.footerButtonOptions, title: o.trans("email-editor.onboarding-title") }, on: { close: o.handleClose, "primary-action": o.handleDiscoverNow, "secondary-action": o.handleRemindLater } }, [t("div", { staticClass: "d-f f-d-c" }, [t("img", { staticClass: "w-1 h-1 d-b p-e-n mb-5", attrs: { src: o.onboardingImageSvg } }), t("p", { staticClass: "f-s-2 f-w-400", domProps: { innerHTML: e._s(o.trans("email-editor.onboarding-description")) } })])]) : e._e();
6
6
  }, i = [], a = /* @__PURE__ */ n(
7
7
  s,
8
8
  r,