@useinsider/guido 3.2.0-beta.8b0bc0c → 3.2.0-beta.8e8f902

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 (290) hide show
  1. package/README.md +25 -1
  2. package/dist/@types/config/schemas.js +38 -36
  3. package/dist/@types/config/validator.js +34 -27
  4. package/dist/components/Guido.vue.js +4 -4
  5. package/dist/components/Guido.vue2.js +88 -82
  6. package/dist/components/organisms/AutoSaveController.vue.js +17 -0
  7. package/dist/components/organisms/AutoSaveController.vue2.js +13 -0
  8. package/dist/components/organisms/base/Toaster.vue2.js +11 -10
  9. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
  10. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
  11. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +15 -9
  12. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +40 -31
  13. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +20 -19
  14. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +14 -11
  15. package/dist/components/organisms/header/AutoSaveToggle.vue.js +22 -0
  16. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +19 -0
  17. package/dist/components/organisms/header/EditorActions.vue.js +12 -11
  18. package/dist/components/organisms/header/EditorActions.vue2.js +22 -18
  19. package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -12
  20. package/dist/components/organisms/header/LeftSlot.vue2.js +19 -16
  21. package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -14
  22. package/dist/components/organisms/header/RightSlot.vue.js +8 -8
  23. package/dist/components/organisms/header/RightSlot.vue2.js +17 -13
  24. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +12 -11
  25. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +51 -29
  26. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +13 -12
  27. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +44 -40
  28. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +13 -12
  29. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +50 -47
  30. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +21 -18
  31. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +31 -27
  32. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -12
  33. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +35 -44
  34. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +12 -11
  35. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -20
  36. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +9 -8
  37. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -9
  38. package/dist/composables/useActionsApi.js +38 -37
  39. package/dist/composables/useAutoSave.js +71 -0
  40. package/dist/composables/useBlocksConfig.js +26 -26
  41. package/dist/composables/useFullStoryBridge.js +9 -8
  42. package/dist/composables/useHtmlCompiler.js +26 -34
  43. package/dist/composables/useHtmlValidator.js +109 -101
  44. package/dist/composables/useHttp.js +30 -30
  45. package/dist/composables/usePartner.js +1 -1
  46. package/dist/composables/useRecommendation.js +15 -14
  47. package/dist/composables/useRibbonOffset.js +21 -0
  48. package/dist/composables/useSave.js +22 -21
  49. package/dist/composables/useStripo.js +50 -53
  50. package/dist/composables/useSyncModuleExtractor.js +29 -31
  51. package/dist/composables/useTimerClone.js +25 -24
  52. package/dist/composables/useTranslations.js +16 -23
  53. package/dist/composables/useValidation.js +8 -7
  54. package/dist/composables/validators/useLiquidValidator.js +13 -13
  55. package/dist/config/compiler/unsubscribeCompilerRules.js +41 -37
  56. package/dist/config/compiler/utils/recommendationCompilerUtils.js +11 -10
  57. package/dist/config/migrator/checkboxMigrator.js +21 -20
  58. package/dist/config/migrator/couponBlockMigrator.js +19 -18
  59. package/dist/config/migrator/itemsBlockMigrator.js +89 -87
  60. package/dist/config/migrator/radioButtonMigrator.js +13 -12
  61. package/dist/config/migrator/recommendationMigrator.js +109 -106
  62. package/dist/config/migrator/unsubscribeMigrator.js +11 -10
  63. package/dist/enums/onboarding.js +7 -2
  64. package/dist/enums/unsubscribe.js +34 -27
  65. package/dist/extensions/Blocks/Items/block.js +9 -9
  66. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
  67. package/dist/extensions/Blocks/Items/controls/cardComposition.js +97 -89
  68. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
  69. package/dist/extensions/Blocks/Items/controls/name/trimming.js +24 -23
  70. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +14 -13
  71. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +47 -44
  72. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
  73. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
  74. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +40 -38
  75. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
  76. package/dist/extensions/Blocks/Items/controls/settingsControl.js +162 -155
  77. package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
  78. package/dist/extensions/Blocks/Items/template.js +210 -210
  79. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
  80. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +133 -128
  81. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +9 -9
  82. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +10 -10
  83. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
  84. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +18 -17
  85. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +6 -4
  86. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -82
  87. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
  88. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
  89. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +36 -35
  90. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +135 -134
  91. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
  92. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +10 -10
  93. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
  94. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
  95. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
  96. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
  97. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
  98. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
  99. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
  100. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
  101. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
  102. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +20 -18
  103. package/dist/extensions/Blocks/Recommendation/extension.js +32 -31
  104. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +16 -8
  105. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +56 -55
  106. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +23 -22
  107. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
  108. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
  109. package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
  110. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +25 -24
  111. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +1 -1
  112. package/dist/extensions/Blocks/Recommendation/templates/utils.js +47 -45
  113. package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +16 -13
  114. package/dist/extensions/Blocks/Unsubscribe/control.js +13 -11
  115. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +18 -16
  116. package/dist/extensions/Blocks/common-control.js +26 -25
  117. package/dist/extensions/DynamicContent/dynamic-content.js +58 -53
  118. package/dist/guido.css +1 -1
  119. package/dist/library.js +12 -11
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +286 -262
  121. package/dist/node_modules/lodash-es/_DataView.js +6 -0
  122. package/dist/node_modules/lodash-es/_Hash.js +20 -0
  123. package/dist/node_modules/lodash-es/_ListCache.js +20 -0
  124. package/dist/node_modules/lodash-es/_Map.js +6 -0
  125. package/dist/node_modules/lodash-es/_MapCache.js +20 -0
  126. package/dist/node_modules/lodash-es/_Promise.js +6 -0
  127. package/dist/node_modules/lodash-es/_Set.js +6 -0
  128. package/dist/node_modules/lodash-es/_SetCache.js +13 -0
  129. package/dist/node_modules/lodash-es/_Stack.js +18 -0
  130. package/dist/node_modules/lodash-es/_Symbol.js +5 -0
  131. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
  132. package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
  133. package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
  134. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
  135. package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
  136. package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
  137. package/dist/node_modules/lodash-es/_arraySome.js +9 -0
  138. package/dist/node_modules/lodash-es/_assocIndexOf.js +10 -0
  139. package/dist/node_modules/lodash-es/_baseEach.js +6 -0
  140. package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
  141. package/dist/node_modules/lodash-es/_baseFor.js +5 -0
  142. package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
  143. package/dist/node_modules/lodash-es/_baseGet.js +11 -0
  144. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  145. package/dist/node_modules/lodash-es/_baseGetTag.js +10 -0
  146. package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
  147. package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
  148. package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
  149. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
  150. package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
  151. package/dist/node_modules/lodash-es/_baseIsNative.js +16 -0
  152. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
  153. package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
  154. package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
  155. package/dist/node_modules/lodash-es/_baseMap.js +11 -0
  156. package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
  157. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  158. package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
  159. package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  160. package/dist/node_modules/lodash-es/_baseRange.js +9 -0
  161. package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
  162. package/dist/node_modules/lodash-es/_baseToString.js +18 -0
  163. package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
  164. package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
  165. package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
  166. package/dist/node_modules/lodash-es/_castPath.js +10 -0
  167. package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
  168. package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
  169. package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
  170. package/dist/node_modules/lodash-es/_createRange.js +11 -0
  171. package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
  172. package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
  173. package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
  174. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
  175. package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
  176. package/dist/node_modules/lodash-es/_getMapData.js +8 -0
  177. package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
  178. package/dist/node_modules/lodash-es/_getNative.js +9 -0
  179. package/dist/node_modules/lodash-es/_getRawTag.js +15 -0
  180. package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
  181. package/dist/node_modules/lodash-es/_getTag.js +28 -0
  182. package/dist/node_modules/lodash-es/_getValue.js +6 -0
  183. package/dist/node_modules/lodash-es/_hasPath.js +19 -0
  184. package/dist/node_modules/lodash-es/_hashClear.js +7 -0
  185. package/dist/node_modules/lodash-es/_hashDelete.js +7 -0
  186. package/dist/node_modules/lodash-es/_hashGet.js +13 -0
  187. package/dist/node_modules/lodash-es/_hashHas.js +9 -0
  188. package/dist/node_modules/lodash-es/_hashSet.js +9 -0
  189. package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
  190. package/dist/node_modules/lodash-es/_isIndex.js +8 -0
  191. package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
  192. package/dist/node_modules/lodash-es/_isKey.js +12 -0
  193. package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
  194. package/dist/node_modules/lodash-es/_isMasked.js +11 -0
  195. package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
  196. package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
  197. package/dist/node_modules/lodash-es/_listCacheClear.js +6 -0
  198. package/dist/node_modules/lodash-es/_listCacheDelete.js +12 -0
  199. package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
  200. package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
  201. package/dist/node_modules/lodash-es/_listCacheSet.js +8 -0
  202. package/dist/node_modules/lodash-es/_mapCacheClear.js +13 -0
  203. package/dist/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  204. package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
  205. package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
  206. package/dist/node_modules/lodash-es/_mapCacheSet.js +8 -0
  207. package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
  208. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  209. package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
  210. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
  211. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
  212. package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
  213. package/dist/node_modules/lodash-es/_objectToString.js +7 -0
  214. package/dist/node_modules/lodash-es/_overArg.js +8 -0
  215. package/dist/node_modules/lodash-es/_root.js +5 -0
  216. package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
  217. package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
  218. package/dist/node_modules/lodash-es/_setToArray.js +9 -0
  219. package/dist/node_modules/lodash-es/_stackClear.js +7 -0
  220. package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
  221. package/dist/node_modules/lodash-es/_stackGet.js +6 -0
  222. package/dist/node_modules/lodash-es/_stackHas.js +6 -0
  223. package/dist/node_modules/lodash-es/_stackSet.js +17 -0
  224. package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
  225. package/dist/node_modules/lodash-es/_toKey.js +10 -0
  226. package/dist/node_modules/lodash-es/_toSource.js +17 -0
  227. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  228. package/dist/node_modules/lodash-es/eq.js +6 -0
  229. package/dist/node_modules/lodash-es/flatMap.js +8 -0
  230. package/dist/node_modules/lodash-es/get.js +8 -0
  231. package/dist/node_modules/lodash-es/hasIn.js +8 -0
  232. package/dist/node_modules/lodash-es/identity.js +6 -0
  233. package/dist/node_modules/lodash-es/isArguments.js +10 -0
  234. package/dist/node_modules/lodash-es/isArray.js +4 -0
  235. package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
  236. package/dist/node_modules/lodash-es/isBuffer.js +6 -0
  237. package/dist/node_modules/lodash-es/isFunction.js +12 -0
  238. package/dist/node_modules/lodash-es/isLength.js +7 -0
  239. package/dist/node_modules/lodash-es/isObject.js +7 -0
  240. package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
  241. package/dist/node_modules/lodash-es/isSymbol.js +9 -0
  242. package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
  243. package/dist/node_modules/lodash-es/keys.js +9 -0
  244. package/dist/node_modules/lodash-es/map.js +11 -0
  245. package/dist/node_modules/lodash-es/memoize.js +18 -0
  246. package/dist/node_modules/lodash-es/property.js +10 -0
  247. package/dist/node_modules/lodash-es/range.js +5 -0
  248. package/dist/node_modules/lodash-es/stubArray.js +6 -0
  249. package/dist/node_modules/lodash-es/stubFalse.js +6 -0
  250. package/dist/node_modules/lodash-es/toFinite.js +14 -0
  251. package/dist/node_modules/lodash-es/toNumber.js +22 -0
  252. package/dist/node_modules/lodash-es/toString.js +7 -0
  253. package/dist/node_modules/valibot/dist/index.js +126 -122
  254. package/dist/package.json.js +1 -1
  255. package/dist/services/recommendationApi.js +17 -14
  256. package/dist/services/templateLibraryApi.js +40 -38
  257. package/dist/src/@types/config/schemas.d.ts +4 -0
  258. package/dist/src/components/Guido.vue.d.ts +1 -1
  259. package/dist/src/components/organisms/AutoSaveController.vue.d.ts +2 -0
  260. package/dist/src/components/organisms/header/AutoSaveToggle.vue.d.ts +2 -0
  261. package/dist/src/components/organisms/header/EditorActions.vue.d.ts +1 -1
  262. package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -1
  263. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
  264. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  265. package/dist/src/composables/useAutoSave.d.ts +3 -0
  266. package/dist/src/composables/useConfig.d.ts +2 -0
  267. package/dist/src/composables/useHtmlCompiler.d.ts +2 -1
  268. package/dist/src/composables/useRibbonOffset.d.ts +4 -0
  269. package/dist/src/composables/useSave.d.ts +1 -1
  270. package/dist/src/composables/useTranslations.d.ts +1 -1
  271. package/dist/src/enums/onboarding.d.ts +6 -0
  272. package/dist/src/enums/unsubscribe.d.ts +5 -0
  273. package/dist/src/stores/autosave.d.ts +12 -0
  274. package/dist/src/stores/config.d.ts +18 -0
  275. package/dist/src/stores/dynamic-content.d.ts +3 -3
  276. package/dist/src/stores/editor.d.ts +23 -0
  277. package/dist/src/stores/onboarding.d.ts +4 -0
  278. package/dist/src/utils/timeUtil.d.ts +8 -0
  279. package/dist/stores/autosave.js +17 -0
  280. package/dist/stores/config.js +81 -25
  281. package/dist/stores/dynamic-content.js +11 -6
  282. package/dist/stores/editor.js +3 -1
  283. package/dist/stores/onboarding.js +9 -5
  284. package/dist/stores/preview.js +9 -6
  285. package/dist/stores/unsubscribe.js +4 -1
  286. package/dist/utils/dateUtil.js +10 -7
  287. package/dist/utils/genericUtil.js +13 -10
  288. package/dist/utils/pairProductVariables.js +89 -87
  289. package/dist/utils/timeUtil.js +19 -0
  290. package/package.json +5 -8
@@ -1,19 +1,23 @@
1
- import { defineComponent as m, ref as a, computed as f } from "vue";
2
- import { useConfig as p } from "../../../composables/useConfig.js";
3
- import { useTranslations as u } from "../../../composables/useTranslations.js";
4
- import { useEditorStore as d } from "../../../stores/editor.js";
1
+ import { defineComponent as a, ref as f, computed as p } from "vue";
2
+ import { useConfig as u } from "../../../composables/useConfig.js";
3
+ import { useTranslations as d } from "../../../composables/useTranslations.js";
4
+ import { useEditorStore as l } from "../../../stores/editor.js";
5
5
  import { InChips as c } from "@useinsider/design-system-vue";
6
- import l from "./EditorActions.vue.js";
7
- import _ from "./version-history/RestoreButton.vue.js";
8
- const q = /* @__PURE__ */ m({
6
+ import _ from "./AutoSaveToggle.vue.js";
7
+ import S from "./EditorActions.vue.js";
8
+ import g from "./version-history/RestoreButton.vue.js";
9
+ const T = /* @__PURE__ */ a({
9
10
  __name: "RightSlot",
10
- setup(S, { expose: e }) {
11
- const { isFeatureEnabled: o } = p(), r = u(), n = d(), t = a(null), i = f(() => o("liquidSyntax"));
12
- return e({
13
- handleSave: (s) => t.value?.handleSave(s)
14
- }), { __sfc: !0, isFeatureEnabled: o, trans: r, editorStore: n, editorActionsRef: t, isLiquidEnabled: i, InChips: c, EditorActions: l, RestoreButton: _ };
11
+ setup(h, { expose: r }) {
12
+ const { isFeatureEnabled: o } = u(), i = d(), n = l(), t = f(null), s = p(() => o("liquidSyntax"));
13
+ return r({
14
+ handleSave: (m) => {
15
+ var e;
16
+ return (e = t.value) == null ? void 0 : e.handleSave(m);
17
+ }
18
+ }), { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: n, editorActionsRef: t, isLiquidEnabled: s, InChips: c, AutoSaveToggle: _, EditorActions: S, RestoreButton: g };
15
19
  }
16
20
  });
17
21
  export {
18
- q as default
22
+ T as default
19
23
  };
@@ -1,19 +1,20 @@
1
- import r from "./AMPOnboarding.vue2.js";
2
- import e from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var i = function() {
4
- var n = this, t = n._self._c, o = n._self._setupProxy;
5
- return o.isVisible ? t(o.InOnboard, { key: "guido__amp-onboard", staticClass: "w-21-s p-a z-11", class: o.onboardingStore.getAmpCurrentCard?.classes, attrs: { id: "guido__amp-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": o.onboardingStore.getAmpCurrentCard?.bottom, "left-position": o.onboardingStore.getAmpCurrentCard?.left, "pages-config": o.onboardingStore.onboardings.ampOnboarding.config, "pointer-position": o.onboardingStore.getAmpCurrentCard?.position, "right-position": o.onboardingStore.getAmpCurrentCard?.right, "top-position": o.onboardingStore.getAmpCurrentCard?.top }, on: { backButtonClick: o.handleBack, close: function(d) {
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) {
6
7
  return o.onboardingStore.close("ampOnboarding");
7
8
  }, nextButtonClick: o.handleNext } }) : n._e();
8
- }, a = [], s = /* @__PURE__ */ e(
9
- r,
10
- i,
11
- a,
9
+ }, m = [], c = /* @__PURE__ */ g(
10
+ d,
11
+ l,
12
+ m,
12
13
  !1,
13
14
  null,
14
15
  null
15
16
  );
16
- const m = s.exports;
17
+ const f = c.exports;
17
18
  export {
18
- m as default
19
+ f as default
19
20
  };
@@ -1,35 +1,57 @@
1
- import { defineComponent as c, computed as t, watch as p } from "vue";
2
- import { useTranslations as m } from "../../../composables/useTranslations.js";
3
- import { useOnboardingStore as g } from "../../../stores/onboarding.js";
4
- import { InOnboard as u } from "@useinsider/design-system-vue";
5
- const k = /* @__PURE__ */ c({
1
+ import { defineComponent as u, computed as d, watch as b, nextTick as f } from "vue";
2
+ import { useTranslations as C } from "../../../composables/useTranslations.js";
3
+ import { HEADER_SELECTOR as O, AMP_TOGGLE_BUTTON_SELECTOR as _, AMP_TOGGLE_WRAPPER_SELECTOR as T, POPOVER_LEFT_OFFSET as g, POPOVER_TOP_GAP as E } from "../../../enums/onboarding.js";
4
+ import { useOnboardingStore as x } from "../../../stores/onboarding.js";
5
+ import { InOnboard as P } from "@useinsider/design-system-vue";
6
+ const G = /* @__PURE__ */ u({
6
7
  __name: "AMPOnboarding",
7
- setup(b) {
8
- const o = m(), n = g(), i = t(() => `${window.innerWidth / 2 - 110}px`), e = t(() => [
9
- {
10
- classes: "guido-amp-onboarding",
11
- left: i.value,
12
- top: "70px",
13
- position: "Top Center",
14
- title: o("email-editor.onboarding-amp-title"),
15
- description: o("email-editor.onboarding-amp-description"),
16
- imageSource: "",
17
- backButtonClick: () => {
18
- },
19
- nextButtonType: "text",
20
- nextButtonText: o("action-builder.ok"),
21
- nextButtonClick: () => void n.close("ampOnboarding")
22
- }
23
- ]), r = t(() => n.onboardings.ampOnboarding.config.length > 0 && n.onboardings.ampOnboarding.isActive), a = () => {
24
- n.getAmpCurrentCard?.nextButtonClick?.();
25
- }, d = () => {
26
- n.getAmpCurrentCard?.backButtonClick?.();
8
+ setup(R) {
9
+ const e = C(), o = x(), r = () => {
10
+ const t = document.querySelector(O), n = document.querySelector(_), c = n == null ? void 0 : n.closest(T);
11
+ if (!c || !t)
12
+ return {
13
+ left: `${((t == null ? void 0 : t.offsetWidth) ?? window.innerWidth) / 2 - g}px`,
14
+ top: "68px"
15
+ };
16
+ const s = t.getBoundingClientRect(), i = c.getBoundingClientRect();
17
+ return {
18
+ left: `${i.left - s.left + i.width / 2 - g}px`,
19
+ top: `${i.bottom - s.top + E}px`
20
+ };
21
+ }, a = d(() => {
22
+ const { left: t, top: n } = r();
23
+ return [
24
+ {
25
+ classes: "guido-amp-onboarding",
26
+ left: t,
27
+ top: n,
28
+ position: "Top Center",
29
+ title: e("email-editor.onboarding-amp-title"),
30
+ description: e("email-editor.onboarding-amp-description"),
31
+ imageSource: "",
32
+ backButtonClick: () => {
33
+ },
34
+ nextButtonType: "text",
35
+ nextButtonText: e("action-builder.ok"),
36
+ nextButtonClick: () => void o.close("ampOnboarding")
37
+ }
38
+ ];
39
+ }), l = d(() => o.onboardings.ampOnboarding.config.length > 0 && o.onboardings.ampOnboarding.isActive), p = () => {
40
+ var t, n;
41
+ (n = (t = o.getAmpCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
42
+ }, m = () => {
43
+ var t, n;
44
+ (n = (t = o.getAmpCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
27
45
  };
28
- return p(() => n.onboardings.ampOnboarding.isActive, (s) => {
29
- s && n.setConfig("ampOnboarding", e.value);
30
- }, { immediate: !0 }), { __sfc: !0, trans: o, onboardingStore: n, centerLeft: i, onboardingCardsConfig: e, isVisible: r, handleNext: a, handleBack: d, InOnboard: u };
46
+ return b(
47
+ () => o.onboardings.ampOnboarding.isActive,
48
+ async (t) => {
49
+ t && (await f(), o.setConfig("ampOnboarding", a.value));
50
+ },
51
+ { immediate: !0 }
52
+ ), { __sfc: !0, trans: e, onboardingStore: o, getTogglePosition: r, onboardingCardsConfig: a, isVisible: l, handleNext: p, handleBack: m, InOnboard: P };
31
53
  }
32
54
  });
33
55
  export {
34
- k as default
56
+ G as default
35
57
  };
@@ -1,20 +1,21 @@
1
- import n from "./GenericOnboarding.vue2.js";
1
+ import c from "./GenericOnboarding.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var i = function() {
5
- var o = this, r = o._self._c, e = o._self._setupProxy;
6
- return e.isVisible ? r(e.InOnboard, { key: "guido__editor-onboard", staticClass: "w-21-s p-a z-11", class: e.onboardingStore.getGenericCurrentCard?.classes, attrs: { id: "guido__editor-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": e.onboardingStore.getGenericCurrentCard?.bottom, "left-position": e.onboardingStore.getGenericCurrentCard?.left, "pages-config": e.onboardingStore.onboardings.genericOnboarding.config, "pointer-position": e.onboardingStore.getGenericCurrentCard?.position, "right-position": e.onboardingStore.getGenericCurrentCard?.right, "top-position": e.onboardingStore.getGenericCurrentCard?.top }, on: { backButtonClick: e.handleBack, close: function(c) {
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) {
7
8
  return e.onboardingStore.close("genericOnboarding");
8
9
  }, nextButtonClick: e.handleNext } }) : o._e();
9
- }, a = [], s = /* @__PURE__ */ t(
10
- n,
11
- i,
12
- a,
10
+ }, p = [], _ = /* @__PURE__ */ g(
11
+ c,
12
+ l,
13
+ p,
13
14
  !1,
14
15
  null,
15
- "29b9af29"
16
+ "7419ae06"
16
17
  );
17
- const _ = s.exports;
18
+ const S = _.exports;
18
19
  export {
19
- _ as default
20
+ S as default
20
21
  };
@@ -1,32 +1,34 @@
1
- import { defineComponent as u, computed as n, watch as l } from "vue";
2
- import { useTranslations as b } from "../../../composables/useTranslations.js";
3
- import { SERVICE_HOVER_SELECTORS as x } from "../../../enums/onboarding.js";
4
- import { useOnboardingStore as m } from "../../../stores/onboarding.js";
5
- import { InOnboard as k } from "@useinsider/design-system-vue";
6
- const h = /* @__PURE__ */ u({
1
+ import { defineComponent as l, computed as r, watch as m } from "vue";
2
+ import { useRibbonOffset as x } from "../../../composables/useRibbonOffset.js";
3
+ import { useTranslations as f } from "../../../composables/useTranslations.js";
4
+ import { SERVICE_HOVER_SELECTORS as k } from "../../../enums/onboarding.js";
5
+ import { useOnboardingStore as B } from "../../../stores/onboarding.js";
6
+ import { InOnboard as C } from "@useinsider/design-system-vue";
7
+ const y = /* @__PURE__ */ l({
7
8
  __name: "GenericOnboarding",
8
- setup(f) {
9
- const t = b(), e = m(), i = n(() => `${window.innerWidth / 2 - 160}px`), r = () => {
10
- const o = document.querySelector("ui-editor");
11
- o?.shadowRoot && x.forEach((p) => {
12
- const s = o.shadowRoot?.querySelector(p);
13
- s && s.classList.add("hover");
9
+ setup(T) {
10
+ const e = f(), o = B(), { getTopPosition: i } = x(), s = r(() => `${window.innerWidth / 2 - 146}px`), c = () => {
11
+ const t = document.querySelector("ui-editor");
12
+ t != null && t.shadowRoot && k.forEach((n) => {
13
+ var g;
14
+ const d = (g = t.shadowRoot) == null ? void 0 : g.querySelector(n);
15
+ d && d.classList.add("hover");
14
16
  });
15
- }, c = n(() => [
17
+ }, a = r(() => [
16
18
  {
17
19
  classes: "guido-onboarding-blocks",
18
20
  left: "90px",
19
- top: "90px",
21
+ top: i(90),
20
22
  position: "Left Top",
21
- title: t("email-editor.onboarding-blocks-title"),
22
- description: t("email-editor.onboarding-blocks-description"),
23
+ title: e("email-editor.onboarding-blocks-title"),
24
+ description: e("email-editor.onboarding-blocks-description"),
23
25
  imageSource: "",
24
26
  backButtonClick: () => {
25
27
  },
26
28
  nextButtonType: "text",
27
- nextButtonText: t("products.next"),
29
+ nextButtonText: e("products.next"),
28
30
  nextButtonClick: () => {
29
- r(), e.next("genericOnboarding");
31
+ c(), o.next("genericOnboarding");
30
32
  }
31
33
  },
32
34
  {
@@ -34,47 +36,49 @@ const h = /* @__PURE__ */ u({
34
36
  right: "426px",
35
37
  bottom: "38px",
36
38
  position: "Right Bottom",
37
- title: t("email-editor.onboarding-stripes-title"),
38
- description: t("email-editor.onboarding-stripes-description"),
39
+ title: e("email-editor.onboarding-stripes-title"),
40
+ description: e("email-editor.onboarding-stripes-description"),
39
41
  imageSource: "",
40
42
  backButtonType: "text",
41
- backButtonText: t("ds-steps.back"),
43
+ backButtonText: e("ds-steps.back"),
42
44
  backButtonClick: () => {
43
- e.previous("genericOnboarding");
45
+ o.previous("genericOnboarding");
44
46
  },
45
47
  nextButtonType: "text",
46
- nextButtonText: t("products.next"),
48
+ nextButtonText: e("products.next"),
47
49
  nextButtonClick: () => {
48
- e.next("genericOnboarding");
50
+ o.next("genericOnboarding");
49
51
  }
50
52
  },
51
53
  {
52
54
  classes: "guido-onboarding-preview",
53
- left: i.value,
54
- top: "90px",
55
+ left: s.value,
56
+ top: i(68),
55
57
  position: "Top Center",
56
- title: t("email-editor.onboarding-preview-title"),
57
- description: t("email-editor.onboarding-preview-description"),
58
+ title: e("email-editor.onboarding-preview-title"),
59
+ description: e("email-editor.onboarding-preview-description"),
58
60
  imageSource: "",
59
61
  backButtonType: "text",
60
- backButtonText: t("ds-steps.back"),
61
- backButtonClick: () => e.previous("genericOnboarding"),
62
+ backButtonText: e("ds-steps.back"),
63
+ backButtonClick: () => o.previous("genericOnboarding"),
62
64
  nextButtonType: "text",
63
- nextButtonText: t("action-builder.ok"),
65
+ nextButtonText: e("action-builder.ok"),
64
66
  nextButtonClick: () => {
65
- e.close("genericOnboarding");
67
+ o.close("genericOnboarding");
66
68
  }
67
69
  }
68
- ]), a = n(() => e.onboardings.genericOnboarding.config.length > 0 && e.onboardings.genericOnboarding.isActive), d = () => {
69
- e.getGenericCurrentCard?.nextButtonClick?.();
70
- }, g = () => {
71
- e.getGenericCurrentCard?.backButtonClick?.();
70
+ ]), p = r(() => o.onboardings.genericOnboarding.config.length > 0 && o.onboardings.genericOnboarding.isActive), u = () => {
71
+ var t, n;
72
+ (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.nextButtonClick) == null || n.call(t);
73
+ }, b = () => {
74
+ var t, n;
75
+ (n = (t = o.getGenericCurrentCard) == null ? void 0 : t.backButtonClick) == null || n.call(t);
72
76
  };
73
- return l(() => e.onboardings.genericOnboarding.isActive, (o) => {
74
- o && e.setConfig("genericOnboarding", c.value);
75
- }, { immediate: !0 }), { __sfc: !0, trans: t, onboardingStore: e, centerLeft: i, addHoverToServiceElements: r, onboardingCardsConfig: c, isVisible: a, handleNext: d, handleBack: g, InOnboard: k };
77
+ return m(() => o.onboardings.genericOnboarding.isActive, (t) => {
78
+ t && o.setConfig("genericOnboarding", a.value);
79
+ }, { immediate: !0 }), { __sfc: !0, trans: e, onboardingStore: o, getTopPosition: i, centerLeft: s, addHoverToServiceElements: c, onboardingCardsConfig: a, isVisible: p, handleNext: u, handleBack: b, InOnboard: C };
76
80
  }
77
81
  });
78
82
  export {
79
- h as default
83
+ y as default
80
84
  };
@@ -1,20 +1,21 @@
1
- import n from "./ItemsOnboarding.vue2.js";
1
+ import g from "./ItemsOnboarding.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var i = function() {
5
- var o = this, e = o._self._c, t = o._self._setupProxy;
6
- return t.isVisible ? e(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: t.onboardingStore.getItemsCurrentCard?.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": t.onboardingStore.getItemsCurrentCard?.bottom, "left-position": t.onboardingStore.getItemsCurrentCard?.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": t.onboardingStore.getItemsCurrentCard?.position, "right-position": t.onboardingStore.getItemsCurrentCard?.right, "top-position": t.onboardingStore.getItemsCurrentCard?.top }, on: { backButtonClick: t.handleBack, close: function(g) {
3
+ import m from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var l = function() {
5
+ var e, n, r, i, s, a;
6
+ var o = this, d = o._self._c, t = o._self._setupProxy;
7
+ return t.isVisible ? d(t.InOnboard, { key: "guido__items-onboard", staticClass: "w-21-s p-a z-11", class: (e = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : e.classes, attrs: { id: "guido__items-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (n = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : n.bottom, "left-position": (r = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : r.left, "pages-config": t.onboardingStore.onboardings.itemsOnboarding.config, "pointer-position": (i = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : i.position, "right-position": (s = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : s.right, "top-position": (a = t.onboardingStore.getItemsCurrentCard) == null ? void 0 : a.top }, on: { backButtonClick: t.handleBack, close: function(b) {
7
8
  return t.onboardingStore.close("itemsOnboarding");
8
9
  }, nextButtonClick: t.handleNext } }) : o._e();
9
- }, s = [], a = /* @__PURE__ */ r(
10
- n,
11
- i,
12
- s,
10
+ }, c = [], p = /* @__PURE__ */ m(
11
+ g,
12
+ l,
13
+ c,
13
14
  !1,
14
15
  null,
15
- "dd1a237a"
16
+ "796d193b"
16
17
  );
17
- const p = a.exports;
18
+ const I = p.exports;
18
19
  export {
19
- p as default
20
+ I as default
20
21
  };
@@ -1,94 +1,97 @@
1
- import { defineComponent as l, computed as a, watch as u } from "vue";
1
+ import { defineComponent as b, computed as d, watch as m } from "vue";
2
+ import { useRibbonOffset as l } from "../../../composables/useRibbonOffset.js";
2
3
  import { useTranslations as x } from "../../../composables/useTranslations.js";
3
- import { RIBBON_SELECTOR as T, UI_EDITOR_SELECTOR as O, CARD_COMPOSITION_TAB_SELECTOR as B, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
4
- import { useOnboardingStore as C } from "../../../stores/onboarding.js";
5
- import { InOnboard as k } from "@useinsider/design-system-vue";
6
- const y = /* @__PURE__ */ l({
4
+ import { UI_EDITOR_SELECTOR as T, CARD_COMPOSITION_TAB_SELECTOR as O, SETTINGS_TAB_SELECTOR as f } from "../../../enums/onboarding.js";
5
+ import { useOnboardingStore as k } from "../../../stores/onboarding.js";
6
+ import { InOnboard as B } from "@useinsider/design-system-vue";
7
+ const E = /* @__PURE__ */ b({
7
8
  __name: "ItemsOnboarding",
8
- setup(_) {
9
- const o = x(), t = C(), c = a(() => document.querySelector(T)?.offsetHeight ?? 0), e = (i) => `${i + c.value}px`, s = (i) => {
10
- const n = document.querySelector(O);
11
- if (!n?.shadowRoot)
9
+ setup(C) {
10
+ const i = x(), o = k(), { getTopPosition: n } = l(), r = (t) => {
11
+ const e = document.querySelector(T);
12
+ if (!(e != null && e.shadowRoot))
12
13
  return;
13
- const { shadowRoot: r } = n, m = r.querySelector(i);
14
- m && m.click();
15
- }, d = a(() => [
14
+ const { shadowRoot: s } = e, c = s.querySelector(t);
15
+ c && c.click();
16
+ }, a = d(() => [
16
17
  {
17
18
  classes: "guido-items-onboarding-card-1",
18
19
  right: "426px",
19
- top: e(90),
20
+ top: n(90),
20
21
  position: "Right Top",
21
- title: o("email-editor.onboarding-items-title"),
22
- description: o("email-editor.onboarding-items-description"),
22
+ title: i("email-editor.onboarding-items-title"),
23
+ description: i("email-editor.onboarding-items-description"),
23
24
  imageSource: "",
24
25
  backButtonClick: () => {
25
26
  },
26
27
  nextButtonType: "text",
27
- nextButtonText: o("products.next"),
28
+ nextButtonText: i("products.next"),
28
29
  nextButtonClick: () => {
29
- t.next("itemsOnboarding");
30
+ o.next("itemsOnboarding");
30
31
  }
31
32
  },
32
33
  {
33
34
  classes: "guido-items-onboarding-card-2",
34
35
  right: "426px",
35
- top: e(218),
36
+ top: n(218),
36
37
  position: "Right Top",
37
- title: o("email-editor.onboarding-items-item-type-title"),
38
- description: o("email-editor.onboarding-items-item-type-description"),
38
+ title: i("email-editor.onboarding-items-item-type-title"),
39
+ description: i("email-editor.onboarding-items-item-type-description"),
39
40
  imageSource: "",
40
41
  backButtonType: "text",
41
- backButtonText: o("ds-steps.back"),
42
+ backButtonText: i("ds-steps.back"),
42
43
  backButtonClick: () => {
43
- t.previous("itemsOnboarding");
44
+ o.previous("itemsOnboarding");
44
45
  },
45
46
  nextButtonType: "text",
46
- nextButtonText: o("products.next"),
47
+ nextButtonText: i("products.next"),
47
48
  nextButtonClick: () => {
48
- t.next("itemsOnboarding");
49
+ o.next("itemsOnboarding");
49
50
  }
50
51
  },
51
52
  {
52
53
  classes: "guido-items-onboarding-card-3",
53
54
  right: "426px",
54
- top: e(140),
55
+ top: n(140),
55
56
  position: "Right Top",
56
- title: o("email-editor.onboarding-items-composition-title"),
57
- description: o("email-editor.onboarding-items-composition-description"),
57
+ title: i("email-editor.onboarding-items-composition-title"),
58
+ description: i("email-editor.onboarding-items-composition-description"),
58
59
  imageSource: "",
59
60
  backButtonType: "text",
60
- backButtonText: o("ds-steps.back"),
61
+ backButtonText: i("ds-steps.back"),
61
62
  backButtonClick: () => {
62
- t.previous("itemsOnboarding");
63
+ o.previous("itemsOnboarding");
63
64
  },
64
65
  nextButtonType: "text",
65
- nextButtonText: o("action-builder.ok"),
66
+ nextButtonText: i("action-builder.ok"),
66
67
  nextButtonClick: () => {
67
- t.close("itemsOnboarding");
68
+ o.close("itemsOnboarding");
68
69
  }
69
70
  }
70
- ]), b = a(() => t.onboardings.itemsOnboarding.config.length > 0 && t.onboardings.itemsOnboarding.isActive), g = () => {
71
- t.getItemsCurrentCard?.nextButtonClick?.();
72
- }, p = () => {
73
- t.getItemsCurrentCard?.backButtonClick?.();
71
+ ]), g = d(() => o.onboardings.itemsOnboarding.config.length > 0 && o.onboardings.itemsOnboarding.isActive), p = () => {
72
+ var t, e;
73
+ (e = (t = o.getItemsCurrentCard) == null ? void 0 : t.nextButtonClick) == null || e.call(t);
74
+ }, u = () => {
75
+ var t, e;
76
+ (e = (t = o.getItemsCurrentCard) == null ? void 0 : t.backButtonClick) == null || e.call(t);
74
77
  };
75
- return u(
76
- () => t.isActive("itemsOnboarding"),
77
- (i) => {
78
- i && t.setConfig("itemsOnboarding", d.value);
78
+ return m(
79
+ () => o.isActive("itemsOnboarding"),
80
+ (t) => {
81
+ t && o.setConfig("itemsOnboarding", a.value);
79
82
  },
80
83
  { immediate: !0 }
81
- ), u(
82
- () => t.onboardings.itemsOnboarding.cardIndex,
83
- (i, n) => {
84
- if (!t.isActive("itemsOnboarding"))
84
+ ), m(
85
+ () => o.onboardings.itemsOnboarding.cardIndex,
86
+ (t, e) => {
87
+ if (!o.isActive("itemsOnboarding"))
85
88
  return;
86
- const r = `${n}-${i}`;
87
- r === "1-2" && s(B), r === "2-1" && s(f);
89
+ const s = `${e}-${t}`;
90
+ s === "1-2" && r(O), s === "2-1" && r(f);
88
91
  }
89
- ), { __sfc: !0, trans: o, onboardingStore: t, ribbonOffset: c, getTopPosition: e, switchTab: s, onboardingCardsConfig: d, isVisible: b, handleNext: g, handleBack: p, InOnboard: k };
92
+ ), { __sfc: !0, trans: i, onboardingStore: o, getTopPosition: n, switchTab: r, onboardingCardsConfig: a, isVisible: g, handleNext: p, handleBack: u, InOnboard: B };
90
93
  }
91
94
  });
92
95
  export {
93
- y as default
96
+ E as default
94
97
  };
@@ -1,23 +1,26 @@
1
- import { defineComponent as g, ref as b, computed as o } from "vue";
2
- import v from "../../wrappers/WpModal.vue.js";
3
- import { useConfig as D } from "../../../composables/useConfig.js";
4
- import { useTranslations as _ } from "../../../composables/useTranslations.js";
5
- import { ACADEMY_LINKS as l } from "../../../enums/academy.js";
6
- import h from "../../../static/assets/onboarding-img.svg.js";
7
- import { useOnboardingStore as y } from "../../../stores/onboarding.js";
8
- import { isAfterDate as L, formatShortDate as C } from "../../../utils/dateUtil.js";
9
- const x = /* @__PURE__ */ g({
1
+ import { defineComponent as v, ref as D, computed as o } from "vue";
2
+ import _ from "../../wrappers/WpModal.vue.js";
3
+ import { useConfig as h } from "../../../composables/useConfig.js";
4
+ import { useTranslations as y } from "../../../composables/useTranslations.js";
5
+ import { ACADEMY_LINKS as c } from "../../../enums/academy.js";
6
+ import L from "../../../static/assets/onboarding-img.svg.js";
7
+ import { useOnboardingStore as C } from "../../../stores/onboarding.js";
8
+ import { isAfterDate as w, formatShortDate as A } from "../../../utils/dateUtil.js";
9
+ const V = /* @__PURE__ */ v({
10
10
  __name: "NewVersionPopup",
11
11
  emits: ["onboarding-finished"],
12
- setup(w, { emit: a }) {
13
- const e = _(), t = y(), s = b(!0), { config: p } = D(), i = o(() => p.value?.editor?.migrationDate), n = o(() => L(i.value || 0)), d = o(() => C(
12
+ setup(I, { emit: a }) {
13
+ const e = y(), t = C(), s = D(!0), { config: p } = h(), i = o(() => {
14
+ var l, m;
15
+ return (m = (l = p.value) == null ? void 0 : l.editor) == null ? void 0 : m.migrationDate;
16
+ }), n = o(() => w(i.value || 0)), d = o(() => A(
14
17
  i.value || 0
15
- )), m = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
18
+ )), f = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), g = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
16
19
  sunsetDate: d.value,
17
- academyLink: l.EMAIL_EDITOR
20
+ academyLink: c.EMAIL_EDITOR
18
21
  }) : e("email-editor.onboarding-description", {
19
- academyLink: l.EMAIL_EDITOR
20
- })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), f = o(() => ({
22
+ academyLink: c.EMAIL_EDITOR
23
+ })), u = o(() => n.value ? e("products.cancel") : e("products.remind-me-later")), b = o(() => ({
21
24
  primaryButton: {
22
25
  type: "primary",
23
26
  labelText: e("left-menu.discover-now")
@@ -29,15 +32,15 @@ const x = /* @__PURE__ */ g({
29
32
  })), r = () => {
30
33
  s.value = !1, a("onboarding-finished");
31
34
  };
32
- return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: m, popupDescription: c, secondaryButtonLabel: u, footerButtonOptions: f, closePopup: r, handleDiscoverNow: () => {
35
+ return { __sfc: !0, emit: a, trans: e, onboardingStore: t, isVisible: s, config: p, migrationDate: i, isAfterMigrationDate: n, formattedSunsetDate: d, popupTitle: f, popupDescription: g, secondaryButtonLabel: u, footerButtonOptions: b, closePopup: r, handleDiscoverNow: () => {
33
36
  t.onDiscoverNowClicked(), r();
34
37
  }, handleRemindLater: () => {
35
38
  t.onRemindMeLater(), r();
36
39
  }, handleClose: () => {
37
40
  t.onNewVersionPopupClose(), r();
38
- }, WpModal: v, onboardingImageSvg: h };
41
+ }, WpModal: _, onboardingImageSvg: L };
39
42
  }
40
43
  });
41
44
  export {
42
- x as default
45
+ V as default
43
46
  };