@useinsider/guido 1.0.3-beta.23c36c8 → 1.0.3-beta.25c5eb7

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 (254) hide show
  1. package/README.md +4 -0
  2. package/dist/components/Guido.vue.js +11 -9
  3. package/dist/components/Guido.vue2.js +75 -69
  4. package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +28 -0
  5. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +38 -0
  6. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +17 -0
  7. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +37 -0
  8. package/dist/components/organisms/extensions/recommendation/Filters.vue.js +20 -0
  9. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +44 -0
  10. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +17 -0
  11. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +27 -0
  12. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
  13. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +30 -17
  14. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -10
  15. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +19 -18
  16. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +18 -0
  17. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +16 -0
  18. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +24 -0
  19. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +64 -0
  20. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +18 -0
  21. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +107 -0
  22. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +18 -0
  23. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +12 -0
  24. package/dist/components/wrappers/WpDrawer.vue.js +6 -4
  25. package/dist/composables/useStripo.js +42 -33
  26. package/dist/config/compiler/unsubscribeCompilerRules.js +42 -29
  27. package/dist/config/migrator/index.js +9 -7
  28. package/dist/config/migrator/recommendationMigrator.js +293 -0
  29. package/dist/config/migrator/unsubscribeMigrator.js +124 -0
  30. package/dist/enums/date.js +6 -0
  31. package/dist/enums/defaults.js +4 -0
  32. package/dist/enums/extensions/recommendationBlock.js +80 -0
  33. package/dist/enums/onboarding.js +2 -1
  34. package/dist/enums/unsubscribe.js +43 -6
  35. package/dist/extensions/Blocks/Checkbox/control.js +55 -53
  36. package/dist/extensions/Blocks/RadioButton/control.js +44 -42
  37. package/dist/extensions/Blocks/RadioButton/template.js +6 -6
  38. package/dist/extensions/Blocks/Recommendation/block.js +30 -0
  39. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +103 -0
  40. package/dist/extensions/Blocks/Recommendation/constants.js +5 -0
  41. package/dist/extensions/Blocks/Recommendation/control.js +306 -0
  42. package/dist/extensions/Blocks/Recommendation/controls/index.js +175 -0
  43. package/dist/extensions/Blocks/Recommendation/extension.js +12 -0
  44. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +51 -0
  45. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +19 -0
  46. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +117 -0
  47. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +266 -0
  48. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +160 -0
  49. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +152 -0
  50. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +180 -0
  51. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +28 -0
  52. package/dist/extensions/Blocks/Unsubscribe/block.js +131 -0
  53. package/dist/extensions/Blocks/Unsubscribe/control.js +167 -0
  54. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +42 -0
  55. package/dist/extensions/Blocks/Unsubscribe/extension.js +21 -0
  56. package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +21 -0
  57. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +35 -0
  58. package/dist/extensions/Blocks/Unsubscribe/styles.css.js +42 -0
  59. package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +10 -0
  60. package/dist/extensions/Blocks/Unsubscribe/template.js +22 -0
  61. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +11 -0
  62. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +6 -0
  63. package/dist/extensions/Blocks/common-control.js +184 -0
  64. package/dist/extensions/Blocks/controlFactories.js +223 -0
  65. package/dist/guido.css +1 -1
  66. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +312 -93
  67. package/dist/package.json.js +7 -0
  68. package/dist/services/recommendationApi.js +43 -0
  69. package/dist/services/unsubscribeApi.js +16 -0
  70. package/dist/{@types → src/@types}/generic.d.ts +19 -0
  71. package/dist/{components → src/components}/Guido.vue.d.ts +3 -2
  72. package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +19 -0
  73. package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +16 -0
  74. package/dist/src/components/organisms/onboarding/NewVersionPopup.vue.d.ts +4 -0
  75. package/dist/src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +4 -0
  76. package/dist/src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +2 -0
  77. package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +2 -0
  78. package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +2 -0
  79. package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +2 -0
  80. package/dist/{components → src/components}/wrappers/WpDrawer.vue.d.ts +6 -4
  81. package/dist/src/config/migrator/index.d.ts +1 -0
  82. package/dist/src/config/migrator/recommendationMigrator.d.ts +1 -0
  83. package/dist/src/config/migrator/unsubscribeMigrator.d.ts +1 -0
  84. package/dist/src/enums/date.d.ts +4 -0
  85. package/dist/src/enums/extensions/recommendationBlock.d.ts +16 -0
  86. package/dist/src/enums/onboarding.d.ts +2 -0
  87. package/dist/src/enums/unsubscribe.d.ts +38 -0
  88. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +11 -0
  89. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +28 -0
  90. package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +51 -0
  91. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +35 -0
  92. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +43 -0
  93. package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +4 -0
  94. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +555 -0
  95. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +16 -0
  96. package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +16 -0
  97. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +44 -0
  98. package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +7 -0
  99. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +32 -0
  100. package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +29 -0
  101. package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +11 -0
  102. package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +4 -0
  103. package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +4 -0
  104. package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +4 -0
  105. package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +12 -0
  106. package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +9 -0
  107. package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.d.ts +7 -0
  108. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +2 -0
  109. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +4 -0
  110. package/dist/src/extensions/Blocks/common-control.d.ts +87 -0
  111. package/dist/src/extensions/Blocks/controlFactories.d.ts +91 -0
  112. package/dist/src/extensions/DynamicContent/extension.d.ts +2 -0
  113. package/dist/src/mock/api/validator.d.ts +2 -0
  114. package/dist/src/services/recommendationApi.d.ts +6 -0
  115. package/dist/src/services/unsubscribeApi.d.ts +4 -0
  116. package/dist/src/stores/config.d.ts +97 -0
  117. package/dist/{stores → src/stores}/editor.d.ts +21 -0
  118. package/dist/src/stores/unsubscribe.d.ts +256 -0
  119. package/dist/src/utils/dateUtil.d.ts +22 -0
  120. package/dist/{utils → src/utils}/genericUtil.d.ts +1 -0
  121. package/dist/static/styles/customEditorStyle.css.js +5 -0
  122. package/dist/stores/config.js +17 -0
  123. package/dist/stores/editor.js +2 -1
  124. package/dist/stores/unsubscribe.js +126 -6
  125. package/dist/utils/dateUtil.js +24 -3
  126. package/dist/utils/genericUtil.js +8 -7
  127. package/dist/utils/templatePreparation.js +17 -16
  128. package/package.json +8 -3
  129. package/dist/config/migrator/index.d.ts +0 -1
  130. package/dist/enums/onboarding.d.ts +0 -1
  131. package/dist/enums/unsubscribe.d.ts +0 -15
  132. package/dist/stores/unsubscribe.d.ts +0 -8
  133. package/dist/utils/dateUtil.d.ts +0 -1
  134. /package/dist/{@types → src/@types}/events.d.ts +0 -0
  135. /package/dist/{@types → src/@types}/save-as-template.d.ts +0 -0
  136. /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
  137. /package/dist/{components → src/components}/organisms/LoadingWrapper.vue.d.ts +0 -0
  138. /package/dist/{components → src/components}/organisms/base/Toaster.vue.d.ts +0 -0
  139. /package/dist/{components → src/components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
  140. /package/dist/{components → src/components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
  141. /package/dist/{components → src/components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
  142. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
  143. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
  144. /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
  145. /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
  146. /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
  147. /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
  148. /package/dist/{components/organisms/header/LeftSlot.vue.d.ts → src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts} +0 -0
  149. /package/dist/{components/organisms/header/MiddleSlot.vue.d.ts → src/components/organisms/extensions/recommendation/Filters.vue.d.ts} +0 -0
  150. /package/dist/{components → src/components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
  151. /package/dist/{components/organisms/header/ViewOptions.vue.d.ts → src/components/organisms/header/LeftSlot.vue.d.ts} +0 -0
  152. /package/dist/{components/organisms/header/version-history/RestoreButton.vue.d.ts → src/components/organisms/header/MiddleSlot.vue.d.ts} +0 -0
  153. /package/dist/{components → src/components}/organisms/header/RightSlot.vue.d.ts +0 -0
  154. /package/dist/{components/organisms/header/version-history → src/components/organisms/header}/ViewOptions.vue.d.ts +0 -0
  155. /package/dist/{components/organisms/onboarding/AMPOnboarding.vue.d.ts → src/components/organisms/header/version-history/RestoreButton.vue.d.ts} +0 -0
  156. /package/dist/{components → src/components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
  157. /package/dist/{components → src/components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
  158. /package/dist/{components/organisms/onboarding/GenericOnboarding.vue.d.ts → src/components/organisms/header/version-history/ViewOptions.vue.d.ts} +0 -0
  159. /package/dist/{components/organisms/onboarding/NewVersionPopup.vue.d.ts → src/components/organisms/onboarding/AMPOnboarding.vue.d.ts} +0 -0
  160. /package/dist/{components/organisms/onboarding/OnboardingWrapper.vue.d.ts → src/components/organisms/onboarding/GenericOnboarding.vue.d.ts} +0 -0
  161. /package/dist/{components → src/components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
  162. /package/dist/{components → src/components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
  163. /package/dist/{components → src/components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
  164. /package/dist/{components → src/components}/wrappers/WpModal.vue.d.ts +0 -0
  165. /package/dist/{composables → src/composables}/useActionsApi.d.ts +0 -0
  166. /package/dist/{composables → src/composables}/useApiExample.d.ts +0 -0
  167. /package/dist/{composables → src/composables}/useCodeEditorApi.d.ts +0 -0
  168. /package/dist/{composables → src/composables}/useConfig.d.ts +0 -0
  169. /package/dist/{composables → src/composables}/useCustomInterfaceAppearance.d.ts +0 -0
  170. /package/dist/{composables → src/composables}/useDebounce.d.ts +0 -0
  171. /package/dist/{composables → src/composables}/useExport.d.ts +0 -0
  172. /package/dist/{composables → src/composables}/useGuidoActions.d.ts +0 -0
  173. /package/dist/{composables → src/composables}/useHtmlCompiler.d.ts +0 -0
  174. /package/dist/{composables → src/composables}/useHtmlValidator.d.ts +0 -0
  175. /package/dist/{composables → src/composables}/useHttp.d.ts +0 -0
  176. /package/dist/{composables → src/composables}/usePartner.d.ts +0 -0
  177. /package/dist/{composables → src/composables}/usePreviewMode.d.ts +0 -0
  178. /package/dist/{composables → src/composables}/useProvideInject.d.ts +0 -0
  179. /package/dist/{composables → src/composables}/useRecommendation.d.ts +0 -0
  180. /package/dist/{composables → src/composables}/useResponsivePreview.d.ts +0 -0
  181. /package/dist/{composables → src/composables}/useSave.d.ts +0 -0
  182. /package/dist/{composables → src/composables}/useStripo.d.ts +0 -0
  183. /package/dist/{composables → src/composables}/useStripoEventHandler.d.ts +0 -0
  184. /package/dist/{composables → src/composables}/useToaster.d.ts +0 -0
  185. /package/dist/{composables → src/composables}/useTranslations.d.ts +0 -0
  186. /package/dist/{composables → src/composables}/useValidation.d.ts +0 -0
  187. /package/dist/{composables → src/composables}/useVersionHistoryApi.d.ts +0 -0
  188. /package/dist/{composables → src/composables}/validators/saveAsTemplate.d.ts +0 -0
  189. /package/dist/{config → src/config}/compiler/htmlCompilerRules.d.ts +0 -0
  190. /package/dist/{config → src/config}/compiler/outlookCompilerRules.d.ts +0 -0
  191. /package/dist/{config → src/config}/compiler/recommendationCompilerRules.d.ts +0 -0
  192. /package/dist/{config → src/config}/compiler/socialCompilerRules.d.ts +0 -0
  193. /package/dist/{config → src/config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
  194. /package/dist/{config → src/config}/migrator/checkboxMigrator.d.ts +0 -0
  195. /package/dist/{config → src/config}/migrator/couponBlockMigrator.d.ts +0 -0
  196. /package/dist/{config → src/config}/migrator/radioButtonMigrator.d.ts +0 -0
  197. /package/dist/{enums → src/enums}/defaults.d.ts +0 -0
  198. /package/dist/{enums → src/enums}/displayConditions.d.ts +0 -0
  199. /package/dist/{enums → src/enums}/html-validator.d.ts +0 -0
  200. /package/dist/{enums → src/enums}/preview.d.ts +0 -0
  201. /package/dist/{enums → src/enums}/recommendation.d.ts +0 -0
  202. /package/dist/{enums → src/enums}/toaster.d.ts +0 -0
  203. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/block.d.ts +0 -0
  204. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/control.d.ts +0 -0
  205. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/extension.d.ts +0 -0
  206. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
  207. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
  208. /package/dist/{extensions → src/extensions}/Blocks/Checkbox/template.d.ts +0 -0
  209. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/block.d.ts +0 -0
  210. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
  211. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
  212. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
  213. /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/template.d.ts +0 -0
  214. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/block.d.ts +0 -0
  215. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/control.d.ts +0 -0
  216. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/extension.d.ts +0 -0
  217. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
  218. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
  219. /package/dist/{extensions → src/extensions}/Blocks/RadioButton/template.d.ts +0 -0
  220. /package/dist/{extensions/Blocks/_Boilerplate → src/extensions/Blocks/Recommendation}/extension.d.ts +0 -0
  221. /package/dist/{extensions/Blocks/_Boilerplate → src/extensions/Blocks/Recommendation}/settingsPanel.d.ts +0 -0
  222. /package/dist/{extensions/DynamicContent → src/extensions/Blocks/Unsubscribe}/extension.d.ts +0 -0
  223. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
  224. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
  225. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
  226. /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
  227. /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
  228. /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content.d.ts +0 -0
  229. /package/dist/{library.d.ts → src/library.d.ts} +0 -0
  230. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  231. /package/dist/{mock → src/mock}/api/auth.d.ts +0 -0
  232. /package/dist/{mock → src/mock}/api/custom-fonts.d.ts +0 -0
  233. /package/dist/{mock → src/mock}/api/default-template.d.ts +0 -0
  234. /package/dist/{mock/api/template-library.d.ts → src/mock/api/recommendation.d.ts} +0 -0
  235. /package/dist/{mock/api/unsubscribe.d.ts → src/mock/api/template-library.d.ts} +0 -0
  236. /package/dist/{mock/api/user-modal-state.d.ts → src/mock/api/unsubscribe.d.ts} +0 -0
  237. /package/dist/{mock/api/validator.d.ts → src/mock/api/user-modal-state.d.ts} +0 -0
  238. /package/dist/{mock → src/mock}/browser.d.ts +0 -0
  239. /package/dist/{mock → src/mock}/handlers.d.ts +0 -0
  240. /package/dist/{services → src/services}/onboardingApi.d.ts +0 -0
  241. /package/dist/{services → src/services}/stripoApi.d.ts +0 -0
  242. /package/dist/{services → src/services}/templateLibraryApi.d.ts +0 -0
  243. /package/dist/{stores → src/stores}/dynamic-content.d.ts +0 -0
  244. /package/dist/{stores → src/stores}/onboarding.d.ts +0 -0
  245. /package/dist/{stores → src/stores}/preview.d.ts +0 -0
  246. /package/dist/{stores → src/stores}/recommendation.d.ts +0 -0
  247. /package/dist/{stores → src/stores}/save-as-template.d.ts +0 -0
  248. /package/dist/{stores → src/stores}/toaster.d.ts +0 -0
  249. /package/dist/{stores → src/stores}/version-history.d.ts +0 -0
  250. /package/dist/{utils → src/utils}/arrayUtil.d.ts +0 -0
  251. /package/dist/{utils → src/utils}/base64.d.ts +0 -0
  252. /package/dist/{utils → src/utils}/htmlCompiler.d.ts +0 -0
  253. /package/dist/{utils → src/utils}/templatePreparation.d.ts +0 -0
  254. /package/dist/{utils → src/utils}/tooltipUtils.d.ts +0 -0
@@ -1,17 +1,17 @@
1
- var F = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(F || {}), A = class o {
1
+ var J = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(J || {}), B = class d {
2
2
  /**
3
3
  * Validates that all required methods are properly implemented in the subclass.
4
4
  * @param requiredMethods - Array of method names that must be implemented
5
5
  * @param classRef - Reference to the class constructor for validation caching
6
6
  */
7
7
  constructor(e, r) {
8
- if (r !== o) {
9
- o.validatedClasses.has(r) || this.validateImplementation(e, r);
10
- const s = o.validationErrors.get(r);
8
+ if (r !== d) {
9
+ d.validatedClasses.has(r) || this.validateImplementation(e, r);
10
+ const s = d.validationErrors.get(r);
11
11
  if (s && s.length > 0)
12
12
  throw new Error(
13
13
  `${r.name} has validation errors:
14
- ${s.map((i) => ` - ${i}`).join(`
14
+ ${s.map((E) => ` - ${E}`).join(`
15
15
  `)}`
16
16
  );
17
17
  }
@@ -21,22 +21,22 @@ ${s.map((i) => ` - ${i}`).join(`
21
21
  * This validation runs only once per class type and results are cached.
22
22
  */
23
23
  validateImplementation(e, r) {
24
- var E;
25
- const s = [], i = r.name, l = Object.getPrototypeOf(this);
26
- e.forEach((a) => {
27
- if (typeof this[a] != "function") {
28
- s.push(`Method ${a}() is not defined`);
24
+ var O;
25
+ const s = [], E = r.name, T = Object.getPrototypeOf(this);
26
+ e.forEach((l) => {
27
+ if (typeof this[l] != "function") {
28
+ s.push(`Method ${l}() is not defined`);
29
29
  return;
30
30
  }
31
- l[a] === r.prototype[a] && s.push(`Method ${a}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), o.validatedClasses.add(r), s.length > 0 ? (o.validationErrors.set(r, s), console.error(`[${i} Validation] ${i} validation failed:`, s)) : typeof process < "u" && ((E = process.env) == null ? void 0 : E.NODE_ENV) === "development" && console.log(`[${i} Validation] ✅ ${i} validated successfully`);
31
+ T[l] === r.prototype[l] && s.push(`Method ${l}() must be implemented (currently using base class error-throwing implementation)`);
32
+ }), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
33
33
  }
34
34
  };
35
- A.validatedClasses = /* @__PURE__ */ new Set();
36
- A.validationErrors = /* @__PURE__ */ new Map();
37
- var n = A, M = class d extends n {
35
+ B.validatedClasses = /* @__PURE__ */ new Set();
36
+ B.validationErrors = /* @__PURE__ */ new Map();
37
+ var i = B, x = class c extends i {
38
38
  constructor() {
39
- super(d.REQUIRED_METHODS, d);
39
+ super(c.REQUIRED_METHODS, c);
40
40
  }
41
41
  /**
42
42
  * Determines if the block should be available for use in the editor.
@@ -185,10 +185,10 @@ var n = A, M = class d extends n {
185
185
  throw new Error("Method getDescription() must be implemented by the subclass");
186
186
  }
187
187
  };
188
- M.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
189
- var Ct = M, k = class h extends n {
188
+ x.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
189
+ var wt = x, tt = class _ extends i {
190
190
  constructor() {
191
- super(h.REQUIRED_METHODS, h);
191
+ super(_.REQUIRED_METHODS, _);
192
192
  }
193
193
  /**
194
194
  * @deprecated - use {@link getPreviewInnerHtml} instead
@@ -203,10 +203,10 @@ var Ct = M, k = class h extends n {
203
203
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
204
204
  }
205
205
  };
206
- k.REQUIRED_METHODS = ["getPreviewInnerHtml"];
207
- var Q = class u extends n {
206
+ tt.REQUIRED_METHODS = ["getPreviewInnerHtml"];
207
+ var et = class R extends i {
208
208
  constructor() {
209
- super(u.REQUIRED_METHODS, u);
209
+ super(R.REQUIRED_METHODS, R);
210
210
  }
211
211
  getId() {
212
212
  throw new Error("Method getId() must be implemented by the subclass");
@@ -221,30 +221,174 @@ var Q = class u extends n {
221
221
  throw new Error("Method onClick() must be implemented by the subclass");
222
222
  }
223
223
  };
224
- Q.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
225
- var V = "esd-block-button", $ = "esd-block-text", X = "esd-block-image", G = "esd-structure", f = "esd-block-video", Y = "esd-block-social", W = "esd-block-banner", j = "esd-block-timer", z = "esd-block-menu", q = "esd-block-html", Z = "esd-block-spacer", J = "esd-container-frame", tt = "esd-stripe", et = "esd-amp-form", rt = ((t) => (t.BUTTON = `.${V}`, t.TEXT = `.${$}`, t.IMAGE = `.${X}`, t.STRUCTURE = `.${G}`, t.VIDEO = `.${f}`, t.SOCIAL = `.${Y}`, t.BANNER = `.${W}`, t.TIMER = `.${j}`, t.MENU = `.${z}`, t.HTML = `.${q}`, t.SPACER = `.${Z}`, t.CONTAINER = `.${J}`, t.STRIPE = `.${tt}`, t.FORM = `.${et}`, t))(rt || {}), st = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(st || {}), nt = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT_CONTAINER = "textFixedHeightContainerForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(nt || {}), it = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(it || {}), at = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(at || {}), D = {
224
+ et.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
225
+ var rt = {
226
+ src: "src",
227
+ alt: "alt",
228
+ href: "href"
229
+ }, nt = {
230
+ href: "href"
231
+ }, Pt = {
232
+ BLOCK_IMAGE: rt,
233
+ BLOCK_BUTTON: nt
234
+ }, U = "esd-block-button", y = "esd-block-text", K = "esd-block-image", st = "esd-structure", it = "esd-block-video", at = "esd-block-social", ot = "esd-block-banner", Et = "esd-block-timer", lt = "esd-block-menu", dt = "esd-block-html", ut = "esd-block-spacer", Ot = "esd-container-frame", It = "esd-stripe", Tt = "esd-amp-form", I = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${y}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${st}`, t.VIDEO = `.${it}`, t.SOCIAL = `.${at}`, t.BANNER = `.${ot}`, t.TIMER = `.${Et}`, t.MENU = `.${lt}`, t.HTML = `.${dt}`, t.SPACER = `.${ut}`, t.CONTAINER = `.${Ot}`, t.STRIPE = `.${It}`, t.FORM = `.${Tt}`, t))(I || {}), ct = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ct || {}), p = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(p || {}), F = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(P || {}), _t = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(_t || {}), n = {
235
+ BLOCK_BUTTON: F,
236
+ BLOCK_TEXT: w,
237
+ BLOCK_IMAGE: P,
238
+ GENERAL: p
239
+ }, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}), o = {
226
240
  name: "name",
227
241
  disabled: "disabled"
228
- }, ot = {
229
- ...D
230
- }, Et = {
231
- ...D,
242
+ }, ht = {
243
+ ...o,
244
+ caption: "caption",
245
+ icon: "icon"
246
+ }, Ct = {
247
+ ...o,
248
+ caption: "caption"
249
+ }, Lt = {
250
+ ...o,
251
+ minValue: "min-value",
252
+ maxValue: "max-value",
253
+ step: "step"
254
+ }, gt = {
255
+ ...o,
232
256
  text: "text"
233
- }, lt = {
234
- ...D,
257
+ }, mt = {
258
+ ...o
259
+ }, H = {
260
+ ...o,
261
+ searchable: "searchable",
262
+ multiSelect: "multi-select",
235
263
  placeholder: "placeholder",
236
264
  items: "items"
237
- }, dt = {
265
+ }, At = {
266
+ ...H
267
+ }, Nt = {
238
268
  text: "text",
239
269
  value: "value"
240
- }, gt = {
241
- BUTTON: ot,
242
- LABEL: Et,
243
- SELECTPICKER: lt,
244
- SELECT_ITEM: dt
245
- }, ht = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t))(ht || {}), S = class c extends n {
270
+ }, bt = {
271
+ text: "text",
272
+ value: "value"
273
+ }, Dt = {
274
+ ...o
275
+ }, St = {
276
+ controlId: "control-id"
277
+ }, Bt = {
278
+ ...o,
279
+ icon: "icon",
280
+ position: "position"
281
+ }, Mt = {
282
+ ...o
283
+ }, Ht = {
284
+ BUTTON: ht,
285
+ CHECKBOX: Ct,
286
+ COLOR: o,
287
+ COUNTER: Lt,
288
+ LABEL: gt,
289
+ RADIO_BUTTONS: mt,
290
+ SELECTPICKER: H,
291
+ FONT_FAMILY_SELECT: At,
292
+ SWITCHER: o,
293
+ TEXT: Dt,
294
+ SELECT_ITEM: Nt,
295
+ RADIO_ITEM: bt,
296
+ NESTED_CONTROL: St,
297
+ ORDERABLE: Bt,
298
+ ORDERABLE_ITEM: Mt
299
+ }, vt = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t.ORDERABLE = "UE-ORDERABLE", t.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", t.ORDERABLE_ICON = "UE-ORDERABLE-ICON", t))(vt || {}), M = class {
300
+ /**
301
+ * @description returns map of nodes parent control operates on
302
+ */
303
+ getTargetNodes(t) {
304
+ return [t];
305
+ }
306
+ /**
307
+ * @description returns map of labels used by parent control UI
308
+ */
309
+ getLabels() {
310
+ }
311
+ /**
312
+ * @description returns custom description for parent modifications
313
+ */
314
+ getModificationDescription() {
315
+ }
316
+ /**
317
+ * @description returns custom modifications to be included in the parent control patch
318
+ */
319
+ getAdditionalModifications(t) {
320
+ }
321
+ /**
322
+ * Determines whether the specified HTML node is visible.
323
+ *
324
+ * @param _node - The HTML node to evaluate for visibility, provided as an immutable object.
325
+ * @return A boolean value indicating whether the node is visible. Returns `true` if the node is visible, otherwise `false`.
326
+ */
327
+ isVisible(t) {
328
+ return !0;
329
+ }
330
+ }, a = class extends M {
331
+ getTargetNodes(t) {
332
+ const e = t.querySelectorAll(I.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
333
+ return e.length ? e : r;
334
+ }
335
+ }, Xt = class extends a {
336
+ getParentControlId() {
337
+ return n.BLOCK_BUTTON.BORDER_RADIUS;
338
+ }
339
+ getLabels() {
340
+ }
341
+ }, kt = class extends a {
342
+ getParentControlId() {
343
+ return n.BLOCK_BUTTON.ALIGNMENT;
344
+ }
345
+ }, Vt = class extends a {
346
+ getParentControlId() {
347
+ return n.GENERAL.BACKGROUND_COLOR;
348
+ }
349
+ }, Gt = class extends a {
350
+ getParentControlId() {
351
+ return n.BLOCK_BUTTON.BORDER;
352
+ }
353
+ getLabels() {
354
+ }
355
+ }, ft = class extends a {
356
+ getParentControlId() {
357
+ return n.BLOCK_BUTTON.COLOR;
358
+ }
359
+ }, Qt = class extends a {
360
+ getParentControlId() {
361
+ return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
362
+ }
363
+ }, Yt = class extends a {
364
+ getParentControlId() {
365
+ return n.BLOCK_BUTTON.FONT_FAMILY;
366
+ }
367
+ }, $t = class extends a {
368
+ getParentControlId() {
369
+ return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
370
+ }
371
+ }, Wt = class extends a {
372
+ getParentControlId() {
373
+ return n.BLOCK_BUTTON.INTERNAL_INDENTS;
374
+ }
375
+ }, zt = class extends a {
376
+ getParentControlId() {
377
+ return n.BLOCK_BUTTON.TEXT;
378
+ }
379
+ }, Zt = class extends a {
380
+ getParentControlId() {
381
+ return n.BLOCK_BUTTON.FONT_SIZE;
382
+ }
383
+ }, jt = class extends a {
384
+ getParentControlId() {
385
+ return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
386
+ }
387
+ getLabels() {
388
+ }
389
+ }, X = class h extends i {
246
390
  constructor() {
247
- super(c.REQUIRED_METHODS, c);
391
+ super(h.REQUIRED_METHODS, h);
248
392
  }
249
393
  /**
250
394
  * @description Allows to determine if control should be visible or hidden in control panel.
@@ -289,18 +433,38 @@ var V = "esd-block-button", $ = "esd-block-text", X = "esd-block-image", G = "es
289
433
  */
290
434
  onTemplateNodeUpdated(e) {
291
435
  }
436
+ /**
437
+ * Lifecycle hook called when any part of the document template has changed.
438
+ * This can be frequent; use cautiously for performance-sensitive operations.
439
+ * @param _node - The immutable HTML node representing current node instance
440
+ */
441
+ onDocumentChanged(e) {
442
+ }
292
443
  };
293
- S.REQUIRED_METHODS = ["getId", "getTemplate"];
294
- var It = S, N = class m extends n {
444
+ X.REQUIRED_METHODS = ["getId", "getTemplate"];
445
+ var qt = X, k = class extends M {
446
+ getTargetNodes(t) {
447
+ const e = t.querySelectorAll(I.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
448
+ return e.length ? e : r;
449
+ }
450
+ }, Jt = class extends k {
451
+ getParentControlId() {
452
+ return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
453
+ }
454
+ }, te = class extends k {
455
+ getParentControlId() {
456
+ return n.BLOCK_IMAGE.SIZE;
457
+ }
458
+ }, V = class C extends i {
295
459
  constructor() {
296
- super(m.REQUIRED_METHODS, m);
460
+ super(C.REQUIRED_METHODS, C);
297
461
  }
298
462
  registerBlockControls(e) {
299
463
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
300
464
  }
301
465
  };
302
- N.REQUIRED_METHODS = ["registerBlockControls"];
303
- var _t = N, Lt = class {
466
+ V.REQUIRED_METHODS = ["registerBlockControls"];
467
+ var ee = V, re = class {
304
468
  constructor(t, e) {
305
469
  this.tabId = t, this.controlsIds = e;
306
470
  }
@@ -323,9 +487,38 @@ var _t = N, Lt = class {
323
487
  const e = this.controlsIds.indexOf(t);
324
488
  e !== -1 && this.controlsIds.splice(e, 1);
325
489
  }
326
- }, ut = class {
327
- constructor(t, e, r = [], s, i = [], l, E = [], a = [], T, v, p, w, B, K, P, H) {
328
- this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = p, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = i, this.settingsPanelRegistry = l, this.contextActions = E, this.blocks = a, this.externalSmartElementsLibrary = T, this.externalImageLibrary = v, this.externalAiAssistant = w, this.externalDisplayConditionsLibrary = B, this.externalVideoLibrary = K, this.blocksPanel = P, this.iconsRegistry = H, this.id = Math.random().toString(36).substring(2);
490
+ }, u = class extends M {
491
+ getTargetNodes(t) {
492
+ const e = t.querySelectorAll(I.TEXT), r = t.asElement().hasClass(y) ? [t] : [];
493
+ return e.length ? e : r;
494
+ }
495
+ }, ne = class extends u {
496
+ getParentControlId() {
497
+ return n.GENERAL.TEXT_ALIGN;
498
+ }
499
+ }, se = class extends u {
500
+ getParentControlId() {
501
+ return n.GENERAL.TEXT_COLOR;
502
+ }
503
+ }, ie = class extends u {
504
+ getParentControlId() {
505
+ return n.BLOCK_TEXT.FONT_FAMILY;
506
+ }
507
+ }, ae = class extends u {
508
+ getParentControlId() {
509
+ return n.BLOCK_TEXT.INTERNAL_INDENTS;
510
+ }
511
+ }, oe = class extends u {
512
+ getParentControlId() {
513
+ return n.GENERAL.TEXT_SIZE;
514
+ }
515
+ }, Ee = class extends u {
516
+ getParentControlId() {
517
+ return n.GENERAL.TEXT_STYLE;
518
+ }
519
+ }, xt = class {
520
+ constructor(t, e, r = [], s, E = [], T, O = [], l = [], v, Y, $, W, z, Z, j, q) {
521
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = $, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = O, this.blocks = l, this.externalSmartElementsLibrary = v, this.externalImageLibrary = Y, this.externalAiAssistant = W, this.externalDisplayConditionsLibrary = z, this.externalVideoLibrary = Z, this.blocksPanel = j, this.iconsRegistry = q, this.id = Math.random().toString(36).substring(2);
329
522
  }
330
523
  getI18n() {
331
524
  return this.i18n;
@@ -378,7 +571,7 @@ var _t = N, Lt = class {
378
571
  getIconsRegistry() {
379
572
  return this.iconsRegistry;
380
573
  }
381
- }, At = class {
574
+ }, le = class {
382
575
  constructor() {
383
576
  this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
384
577
  }
@@ -440,7 +633,7 @@ var _t = N, Lt = class {
440
633
  return this.iconsRegistry = t, this;
441
634
  }
442
635
  build() {
443
- return new ut(
636
+ return new xt(
444
637
  this.i18n,
445
638
  (this.styles || []).map((t) => t.trim()).join(`
446
639
  `),
@@ -460,18 +653,18 @@ var _t = N, Lt = class {
460
653
  this.iconsRegistry
461
654
  );
462
655
  }
463
- }, ct = class O extends n {
656
+ }, Ut = class L extends i {
464
657
  constructor() {
465
- super(O.REQUIRED_METHODS, O);
658
+ super(L.REQUIRED_METHODS, L);
466
659
  }
467
- openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: i }) {
660
+ openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: E }) {
468
661
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
469
662
  }
470
663
  };
471
- ct.REQUIRED_METHODS = ["openAiAssistant"];
472
- var mt = class b extends n {
664
+ Ut.REQUIRED_METHODS = ["openAiAssistant"];
665
+ var yt = class g extends i {
473
666
  constructor() {
474
- super(b.REQUIRED_METHODS, b);
667
+ super(g.REQUIRED_METHODS, g);
475
668
  }
476
669
  /**
477
670
  * Retrieves the name of the category.
@@ -509,44 +702,44 @@ var mt = class b extends n {
509
702
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
510
703
  }
511
704
  };
512
- mt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
513
- var Ot = class R extends n {
705
+ yt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
706
+ var Kt = class m extends i {
514
707
  constructor() {
515
- super(R.REQUIRED_METHODS, R);
708
+ super(m.REQUIRED_METHODS, m);
516
709
  }
517
710
  openImageLibrary(e, r, s) {
518
711
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
519
712
  }
520
713
  };
521
- Ot.REQUIRED_METHODS = ["openImageLibrary"];
522
- var bt = class C extends n {
714
+ Kt.REQUIRED_METHODS = ["openImageLibrary"];
715
+ var pt = class A extends i {
523
716
  constructor() {
524
- super(C.REQUIRED_METHODS, C);
717
+ super(A.REQUIRED_METHODS, A);
525
718
  }
526
719
  openSmartElementsLibrary(e, r) {
527
720
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
528
721
  }
529
722
  };
530
- bt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
531
- var Rt = class g extends n {
723
+ pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
724
+ var Ft = class N extends i {
532
725
  constructor() {
533
- super(g.REQUIRED_METHODS, g);
726
+ super(N.REQUIRED_METHODS, N);
534
727
  }
535
728
  openExternalVideosLibraryDialog(e, r, s) {
536
729
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
537
730
  }
538
731
  };
539
- Rt.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
540
- var y = class I extends n {
732
+ Ft.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
733
+ var G = class b extends i {
541
734
  constructor() {
542
- super(I.REQUIRED_METHODS, I);
735
+ super(b.REQUIRED_METHODS, b);
543
736
  }
544
737
  registerIconsSvg(e) {
545
738
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
546
739
  }
547
740
  };
548
- y.REQUIRED_METHODS = ["registerIconsSvg"];
549
- var Dt = y, Tt = class {
741
+ G.REQUIRED_METHODS = ["registerIconsSvg"];
742
+ var de = G, ue = class {
550
743
  constructor(t) {
551
744
  this.key = t;
552
745
  }
@@ -559,9 +752,9 @@ var Dt = y, Tt = class {
559
752
  params: this.params
560
753
  };
561
754
  }
562
- }, x = class _ extends n {
755
+ }, f = class D extends i {
563
756
  constructor() {
564
- super(_.REQUIRED_METHODS, _);
757
+ super(D.REQUIRED_METHODS, D);
565
758
  }
566
759
  /**
567
760
  * Called when the UI element should render its content into the provided container.
@@ -614,34 +807,60 @@ var Dt = y, Tt = class {
614
807
  throw new Error("Method getTemplate() must be implemented by the subclass");
615
808
  }
616
809
  };
617
- x.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
618
- var Mt = x, U = class L extends n {
810
+ f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
811
+ var Oe = f, Q = class S extends i {
619
812
  constructor() {
620
- super(L.REQUIRED_METHODS, L);
813
+ super(S.REQUIRED_METHODS, S);
621
814
  }
622
815
  registerUiElements(e) {
623
816
  throw new Error("Method registerUiElements() must be implemented by the subclass");
624
817
  }
625
818
  };
626
- U.REQUIRED_METHODS = ["registerUiElements"];
627
- var St = U;
819
+ Q.REQUIRED_METHODS = ["registerUiElements"];
820
+ var Ie = Q;
628
821
  export {
629
- Ct as Block,
630
- F as BlockCompositionType,
631
- rt as BlockSelector,
632
- st as BlockType,
633
- it as ContainerControls,
634
- It as Control,
635
- ut as Extension,
636
- At as ExtensionBuilder,
637
- Dt as IconsRegistry,
638
- Tt as ModificationDescription,
639
- _t as SettingsPanelRegistry,
640
- Lt as SettingsPanelTab,
641
- at as SettingsTab,
642
- nt as TextControls,
643
- gt as UEAttr,
644
- Mt as UIElement,
645
- St as UIElementTagRegistry,
646
- ht as UIElementType
822
+ wt as Block,
823
+ Pt as BlockAttr,
824
+ J as BlockCompositionType,
825
+ I as BlockSelector,
826
+ ct as BlockType,
827
+ M as BuiltInControl,
828
+ n as BuiltInControlTypes,
829
+ kt as ButtonAlignBuiltInControl,
830
+ Vt as ButtonBackgroundColorBuiltInControl,
831
+ Gt as ButtonBorderBuiltInControl,
832
+ Xt as ButtonBorderRadiusBuiltInControl,
833
+ ft as ButtonColorBuiltInControl,
834
+ F as ButtonControls,
835
+ Qt as ButtonFitToContainerBuiltInControl,
836
+ Yt as ButtonFontFamilyBuiltInControl,
837
+ $t as ButtonMarginsBuiltInControl,
838
+ Wt as ButtonPaddingsBuiltInControl,
839
+ zt as ButtonTextBuiltInControl,
840
+ Zt as ButtonTextSizeBuiltInControl,
841
+ jt as ButtonTextStyleAndFontColorBuiltInControl,
842
+ _t as ContainerControls,
843
+ qt as Control,
844
+ xt as Extension,
845
+ le as ExtensionBuilder,
846
+ p as GeneralControls,
847
+ de as IconsRegistry,
848
+ P as ImageControls,
849
+ Jt as ImageMarginsBuiltInControl,
850
+ te as ImageSizeBuiltInControl,
851
+ ue as ModificationDescription,
852
+ ee as SettingsPanelRegistry,
853
+ re as SettingsPanelTab,
854
+ Rt as SettingsTab,
855
+ ne as TextAlignBuiltInControl,
856
+ se as TextColorBuiltInControl,
857
+ w as TextControls,
858
+ ie as TextFontFamilyBuiltInControl,
859
+ ae as TextPaddingsBuiltInControl,
860
+ oe as TextSizeBuiltInControl,
861
+ Ee as TextStyleBuiltInControl,
862
+ Ht as UEAttr,
863
+ Oe as UIElement,
864
+ Ie as UIElementTagRegistry,
865
+ vt as UIElementType
647
866
  };
@@ -0,0 +1,7 @@
1
+ const o = { stripo: { version: "2.42.0" } }, s = {
2
+ guido: o
3
+ };
4
+ export {
5
+ s as default,
6
+ o as guido
7
+ };
@@ -0,0 +1,43 @@
1
+ import { useHttp as c } from "../composables/useHttp.js";
2
+ import { URLS as a } from "../enums/extensions/recommendationBlock.js";
3
+ import { useEditorStore as m } from "../stores/editor.js";
4
+ import { replaceString as s } from "../utils/genericUtil.js";
5
+ const l = () => {
6
+ const { get: o } = c();
7
+ return {
8
+ fetchRecommendationCreateData: async () => {
9
+ const e = m();
10
+ try {
11
+ return (await o(s(
12
+ "/newsletter/{id}/recommendations/get-campaign-create-data",
13
+ { id: e.templateId }
14
+ ))).data;
15
+ } catch (t) {
16
+ throw console.error("fetchUserModalState error:", t), t;
17
+ }
18
+ },
19
+ fetchRecommendationFilters: async () => {
20
+ try {
21
+ const { data: e } = await o("/stripo/email-recommendation-attributes");
22
+ return e;
23
+ } catch (e) {
24
+ throw console.error("fetchRecommendationFilters error:", e), e;
25
+ }
26
+ },
27
+ fetchRecommendationProducts: async (e, t) => {
28
+ try {
29
+ const r = decodeURIComponent(new URLSearchParams(Object.entries(t)).toString());
30
+ console.debug("🏁 Recommendation API Query:", r);
31
+ const n = await o(
32
+ `${a.RECOMMENDATION_API_URL}/v2/${e}?${r}`
33
+ );
34
+ return (n == null ? void 0 : n.data) ?? [];
35
+ } catch (r) {
36
+ throw console.error("fetchRecommendationProducts error:", r), r;
37
+ }
38
+ }
39
+ };
40
+ };
41
+ export {
42
+ l as useRecommendationApi
43
+ };
@@ -0,0 +1,16 @@
1
+ import { useHttp as t } from "../composables/useHttp.js";
2
+ import { useToaster as n } from "../composables/useToaster.js";
3
+ const u = () => {
4
+ const { get: r } = t(), { handleError: s } = n();
5
+ return { getUnsubscribePages: async () => {
6
+ try {
7
+ const { data: e = [] } = await r("/unsubscribe-pages/get-all");
8
+ return e;
9
+ } catch (e) {
10
+ return s(e, "Failed to fetch unsubscribe pages"), [];
11
+ }
12
+ } };
13
+ };
14
+ export {
15
+ u as useUnsubscribeApi
16
+ };