@useinsider/guido 2.0.0-beta.1f72712 → 2.0.0-beta.200f113

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 (248) hide show
  1. package/dist/@types/config/schemas.js +53 -39
  2. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +3 -3
  3. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +6 -6
  4. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +17 -13
  5. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +6 -6
  6. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -12
  7. package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.js +18 -0
  8. package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue2.js +15 -0
  9. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +10 -14
  10. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +14 -22
  11. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
  12. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +11 -10
  13. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +12 -10
  14. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +11 -10
  15. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +15 -14
  16. package/dist/components/organisms/header/EditorActions.vue.js +20 -0
  17. package/dist/components/organisms/header/EditorActions.vue2.js +41 -0
  18. package/dist/components/organisms/header/EditorToolbar.vue.js +18 -0
  19. package/dist/components/organisms/header/EditorToolbar.vue2.js +17 -0
  20. package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -5
  21. package/dist/components/organisms/header/LeftSlot.vue.js +11 -11
  22. package/dist/components/organisms/header/LeftSlot.vue2.js +11 -12
  23. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  24. package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -15
  25. package/dist/components/organisms/header/RightSlot.vue.js +11 -14
  26. package/dist/components/organisms/header/RightSlot.vue2.js +13 -30
  27. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +5 -5
  28. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +15 -15
  29. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
  30. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +20 -19
  31. package/dist/composables/useConfig.js +29 -27
  32. package/dist/composables/useSave.js +13 -11
  33. package/dist/config/migrator/recommendationMigrator.js +2 -2
  34. package/dist/enums/academy.js +8 -0
  35. package/dist/enums/onboarding.js +1 -2
  36. package/dist/enums/unsubscribe.js +20 -21
  37. package/dist/extensions/Blocks/Items/controls/cardComposition.js +4 -13
  38. package/dist/extensions/Blocks/Recommendation/block.js +6 -40
  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/button/align.js +13 -0
  43. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +13 -0
  44. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +13 -0
  45. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +13 -0
  46. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +13 -0
  47. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +13 -0
  48. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +13 -0
  49. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +13 -0
  50. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +13 -0
  51. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +13 -0
  52. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +13 -0
  53. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +13 -0
  54. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +13 -0
  55. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +13 -0
  56. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +13 -0
  57. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +13 -0
  58. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +13 -0
  59. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +13 -0
  60. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +13 -0
  61. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +13 -0
  62. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +13 -0
  63. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +13 -0
  64. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +13 -0
  65. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +13 -0
  66. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +13 -0
  67. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +13 -0
  68. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +13 -0
  69. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +13 -0
  70. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +13 -0
  71. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +13 -0
  72. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +13 -0
  73. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +13 -0
  74. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +13 -0
  75. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +13 -0
  76. package/dist/extensions/Blocks/Recommendation/extension.js +43 -40
  77. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +4 -13
  78. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +72 -128
  79. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +34 -39
  80. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +160 -0
  81. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +152 -0
  82. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +180 -0
  83. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
  84. package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
  85. package/dist/extensions/Blocks/common-control.js +6 -7
  86. package/dist/extensions/Blocks/controlFactories.js +121 -155
  87. package/dist/guido.css +1 -1
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +297 -424
  89. package/dist/package.json.js +1 -1
  90. package/dist/src/@types/config/index.d.ts +2 -2
  91. package/dist/src/@types/config/schemas.d.ts +26 -0
  92. package/dist/src/@types/config/types.d.ts +7 -1
  93. package/dist/src/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.d.ts +2 -0
  94. package/dist/src/components/organisms/header/EditorActions.vue.d.ts +4 -0
  95. package/dist/src/components/organisms/header/EditorToolbar.vue.d.ts +2 -0
  96. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
  97. package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
  98. package/dist/src/composables/useConfig.d.ts +6 -0
  99. package/dist/src/enums/academy.d.ts +12 -0
  100. package/dist/src/enums/onboarding.d.ts +0 -1
  101. package/dist/src/enums/unsubscribe.d.ts +0 -1
  102. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -34
  103. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +28 -0
  104. package/dist/src/extensions/Blocks/Recommendation/{constants/controlIds.d.ts → constants.d.ts} +11 -19
  105. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +35 -0
  106. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +5 -0
  107. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +5 -0
  108. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +5 -0
  109. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +5 -0
  110. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +5 -0
  111. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +5 -0
  112. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +5 -0
  113. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +5 -0
  114. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +5 -0
  115. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +5 -0
  116. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +5 -0
  117. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +5 -0
  118. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +5 -0
  119. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +5 -0
  120. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +5 -0
  121. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +5 -0
  122. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +5 -0
  123. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +5 -0
  124. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +5 -0
  125. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +5 -0
  126. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +5 -0
  127. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +5 -0
  128. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +5 -0
  129. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +5 -0
  130. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +5 -0
  131. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +5 -0
  132. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +5 -0
  133. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +5 -0
  134. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +5 -0
  135. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +5 -0
  136. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +5 -0
  137. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +5 -0
  138. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +5 -0
  139. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +5 -0
  140. package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +0 -9
  141. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +16 -17
  142. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +16 -0
  143. package/dist/src/extensions/Blocks/Recommendation/templates/{vertical/migration.d.ts → migrationTemplate.d.ts} +4 -11
  144. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +44 -0
  145. package/dist/src/extensions/Blocks/common-control.d.ts +1 -1
  146. package/dist/src/stores/config.d.ts +147 -1
  147. package/dist/src/stores/editor.d.ts +21 -0
  148. package/dist/static/assets/desktop/desktop-mockup-center.svg.js +4 -0
  149. package/dist/static/assets/desktop/desktop-mockup-left.svg.js +4 -0
  150. package/dist/static/assets/desktop/desktop-mockup-right.svg.js +4 -0
  151. package/dist/static/assets/mobile/email-mockup.svg.js +4 -0
  152. package/dist/static/assets/mobile/inbox-mockup.svg.js +4 -0
  153. package/dist/static/styles/components/button.css.js +1 -1
  154. package/dist/static/styles/components/wide-panel.css.js +5 -1
  155. package/dist/static/styles/customEditorStyle.css.js +2 -38
  156. package/dist/stores/config.js +7 -0
  157. package/dist/stores/editor.js +1 -0
  158. package/package.json +3 -3
  159. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  160. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  161. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +0 -4
  162. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +0 -4
  163. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +0 -64
  164. package/dist/extensions/Blocks/Recommendation/constants/layout.js +0 -12
  165. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +0 -19
  166. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +0 -64
  167. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +0 -80
  168. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +0 -232
  169. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +0 -19
  170. package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +0 -110
  171. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +0 -110
  172. package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +0 -207
  173. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +0 -54
  174. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +0 -148
  175. package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +0 -74
  176. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +0 -124
  177. package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +0 -71
  178. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +0 -124
  179. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +0 -46
  180. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +0 -76
  181. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +0 -44
  182. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +0 -48
  183. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +0 -73
  184. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +0 -73
  185. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +0 -48
  186. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +0 -73
  187. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +0 -73
  188. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +0 -44
  189. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +0 -222
  190. package/dist/extensions/Blocks/Recommendation/services/configService.js +0 -239
  191. package/dist/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.js +0 -181
  192. package/dist/extensions/Blocks/Recommendation/templates/horizontal/template.js +0 -71
  193. package/dist/extensions/Blocks/Recommendation/templates/index.js +0 -12
  194. package/dist/extensions/Blocks/Recommendation/templates/utils.js +0 -116
  195. package/dist/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.js +0 -211
  196. package/dist/extensions/Blocks/Recommendation/templates/vertical/migration.js +0 -251
  197. package/dist/extensions/Blocks/Recommendation/templates/vertical/template.js +0 -62
  198. package/dist/extensions/Blocks/Recommendation/types/nodeConfig.js +0 -6
  199. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +0 -36
  200. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +0 -29
  201. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +0 -46
  202. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +0 -13
  203. package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +0 -49
  204. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +0 -13
  205. package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +0 -27
  206. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +0 -31
  207. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +0 -143
  208. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +0 -31
  209. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +0 -95
  210. package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +0 -35
  211. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +0 -24
  212. package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +0 -36
  213. package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +0 -29
  214. package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +0 -45
  215. package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +0 -22
  216. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +0 -62
  217. package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +0 -24
  218. package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +0 -42
  219. package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +0 -23
  220. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +0 -100
  221. package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +0 -97
  222. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +0 -16
  223. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +0 -95
  224. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +0 -100
  225. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +0 -15
  226. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +0 -15
  227. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +0 -100
  228. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +0 -15
  229. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +0 -15
  230. package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +0 -95
  231. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +0 -83
  232. package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +0 -151
  233. package/dist/src/extensions/Blocks/Recommendation/services/index.d.ts +0 -6
  234. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.d.ts +0 -8
  235. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/migration.d.ts +0 -25
  236. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/template.d.ts +0 -18
  237. package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +0 -39
  238. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +0 -45
  239. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.d.ts +0 -7
  240. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/template.d.ts +0 -33
  241. package/dist/src/extensions/Blocks/Recommendation/types/index.d.ts +0 -7
  242. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +0 -154
  243. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +0 -19
  244. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +0 -33
  245. package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +0 -113
  246. package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +0 -77
  247. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  248. package/dist/static/assets/phone-mockup.svg.js +0 -4
@@ -1,17 +1,17 @@
1
- var x = class d {
1
+ var M = class u {
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
- constructor(t, a) {
8
- if (a !== d) {
9
- d.validatedClasses.has(a) || this.validateImplementation(t, a);
10
- const i = d.validationErrors.get(a);
11
- if (i && i.length > 0)
7
+ constructor(e, r) {
8
+ if (r !== u) {
9
+ u.validatedClasses.has(r) || this.validateImplementation(e, r);
10
+ const s = u.validationErrors.get(r);
11
+ if (s && s.length > 0)
12
12
  throw new Error(
13
- `${a.name} has validation errors:
14
- ${i.map((o) => ` - ${o}`).join(`
13
+ `${r.name} has validation errors:
14
+ ${s.map((E) => ` - ${E}`).join(`
15
15
  `)}`
16
16
  );
17
17
  }
@@ -20,23 +20,23 @@ ${i.map((o) => ` - ${o}`).join(`
20
20
  * Validates that all required methods are properly implemented in the subclass.
21
21
  * This validation runs only once per class type and results are cached.
22
22
  */
23
- validateImplementation(t, a) {
24
- var M;
25
- const i = [], o = a.name, Y = Object.getPrototypeOf(this);
26
- t.forEach((u) => {
27
- if (typeof this[u] != "function") {
28
- i.push(`Method ${u}() is not defined`);
23
+ validateImplementation(e, r) {
24
+ var I;
25
+ const s = [], E = r.name, T = Object.getPrototypeOf(this);
26
+ e.forEach((d) => {
27
+ if (typeof this[d] != "function") {
28
+ s.push(`Method ${d}() is not defined`);
29
29
  return;
30
30
  }
31
- Y[u] === a.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), d.validatedClasses.add(a), i.length > 0 ? (d.validationErrors.set(a, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((M = process.env) == null ? void 0 : M.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
31
+ T[d] === r.prototype[d] && s.push(`Method ${d}() must be implemented (currently using base class error-throwing implementation)`);
32
+ }), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((I = process.env) == null ? void 0 : I.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
33
33
  }
34
34
  };
35
- x.validatedClasses = /* @__PURE__ */ new Set();
36
- x.validationErrors = /* @__PURE__ */ new Map();
37
- var s = x, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class T extends s {
35
+ M.validatedClasses = /* @__PURE__ */ new Set();
36
+ M.validationErrors = /* @__PURE__ */ new Map();
37
+ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(et || {}), y = class c extends a {
38
38
  constructor() {
39
- super(T.REQUIRED_METHODS, T);
39
+ super(c.REQUIRED_METHODS, c);
40
40
  }
41
41
  /**
42
42
  * Determines if the block should be available for use in the editor.
@@ -86,28 +86,28 @@ var s = x, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
86
86
  * @param node - The immutable HTML node representing the selected block instance.
87
87
  */
88
88
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
89
- onSelect(t) {
89
+ onSelect(e) {
90
90
  }
91
91
  /**
92
92
  * Lifecycle hook called when an instance of this block is copied.
93
93
  * @param modifier - The HTML node modifier to apply changes to the copied block instance.
94
94
  */
95
95
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
96
- onCopy(t) {
96
+ onCopy(e) {
97
97
  }
98
98
  /**
99
99
  * Lifecycle hook called when an instance of this block is deleted.
100
100
  * @param node - The immutable HTML node representing the block instance being deleted.
101
101
  */
102
102
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
103
- onDelete(t) {
103
+ onDelete(e) {
104
104
  }
105
105
  /**
106
106
  * Lifecycle hook called after a new instance of this block is created and added to the document (e.g., via drag-and-drop).
107
107
  * @param node - The immutable HTML node representing the newly created block instance.
108
108
  */
109
109
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
110
- onCreated(t) {
110
+ onCreated(e) {
111
111
  }
112
112
  /**
113
113
  * Lifecycle hook called when any part of the document template has changed.
@@ -115,7 +115,7 @@ var s = x, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
115
115
  * @param node - The immutable HTML node representing current node instance
116
116
  */
117
117
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
118
- onDocumentChanged(t) {
118
+ onDocumentChanged(e) {
119
119
  }
120
120
  /**
121
121
  * @description Determines if block is atomic or composite.
@@ -183,7 +183,7 @@ var s = x, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
183
183
  *
184
184
  * @return {string} The name of the block panel.
185
185
  */
186
- getSettingsPanelTitleHtml() {
186
+ getSettingsPanelName() {
187
187
  return "";
188
188
  }
189
189
  /**
@@ -195,28 +195,28 @@ var s = x, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
195
195
  throw new Error("Method getDescription() must be implemented by the subclass");
196
196
  }
197
197
  };
198
- v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
- var Ge = v, W = class c extends s {
198
+ y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
+ var Xt = y, rt = class _ extends a {
200
200
  constructor() {
201
- super(c.REQUIRED_METHODS, c);
201
+ super(_.REQUIRED_METHODS, _);
202
202
  }
203
203
  /**
204
204
  * @deprecated - use {@link getPreviewInnerHtml} instead
205
205
  */
206
206
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
207
- getPreviewHtml(t) {
207
+ getPreviewHtml(e) {
208
208
  }
209
209
  /**
210
210
  * @description returns custom content to be displayed inside the {@link Block} root TD element
211
211
  */
212
- getPreviewInnerHtml(t) {
212
+ getPreviewInnerHtml(e) {
213
213
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
214
214
  }
215
215
  };
216
- W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
- var z = class b extends s {
216
+ rt.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
+ var nt = class h extends a {
218
218
  constructor() {
219
- super(b.REQUIRED_METHODS, b);
219
+ super(h.REQUIRED_METHODS, h);
220
220
  }
221
221
  getId() {
222
222
  throw new Error("Method getId() must be implemented by the subclass");
@@ -227,147 +227,93 @@ var z = class b extends s {
227
227
  getLabel() {
228
228
  throw new Error("Method getLabel() must be implemented by the subclass");
229
229
  }
230
- onClick(t) {
230
+ onClick(e) {
231
231
  throw new Error("Method onClick() must be implemented by the subclass");
232
232
  }
233
233
  };
234
- z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
235
- var Z = {
234
+ nt.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
235
+ var st = {
236
236
  src: "src",
237
237
  alt: "alt",
238
238
  href: "href",
239
239
  width: "width"
240
- }, Ve = {
241
- BLOCK_IMAGE: Z
242
- }, y = "esd-block-button", U = "esd-block-text", P = "esd-block-image", j = "esd-structure", q = "esd-block-video", J = "esd-block-social", ee = "esd-block-banner", te = "esd-block-timer", re = "esd-block-menu", ae = "esd-block-html", ne = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${y}`, e.TEXT = `.${U}`, e.IMAGE = `.${P}`, e.STRUCTURE = `.${j}`, e.VIDEO = `.${q}`, e.SOCIAL = `.${J}`, e.BANNER = `.${ee}`, e.TIMER = `.${te}`, e.MENU = `.${re}`, e.HTML = `.${ae}`, e.SPACER = `.${ne}`, e.CONTAINER = `.${se}`, e.STRIPE = `.${ie}`, e.FORM = `.${Ee}`, e))(I || {}), le = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(le || {}), w = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(w || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), oe = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(oe || {}), n = {
243
- BLOCK_BUTTON: K,
244
- BLOCK_TEXT: F,
240
+ }, at = {
241
+ href: "href"
242
+ }, kt = {
243
+ BLOCK_IMAGE: st,
244
+ BLOCK_BUTTON: at
245
+ }, U = "esd-block-button", p = "esd-block-text", K = "esd-block-image", it = "esd-structure", ot = "esd-block-video", Et = "esd-block-social", lt = "esd-block-banner", dt = "esd-block-timer", ut = "esd-block-menu", It = "esd-block-html", Ot = "esd-block-spacer", Tt = "esd-container-frame", ct = "esd-stripe", _t = "esd-amp-form", O = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${p}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${it}`, t.VIDEO = `.${ot}`, t.SOCIAL = `.${Et}`, t.BANNER = `.${lt}`, t.TIMER = `.${dt}`, t.MENU = `.${ut}`, t.HTML = `.${It}`, t.SPACER = `.${Ot}`, t.CONTAINER = `.${Tt}`, t.STRIPE = `.${ct}`, t.FORM = `.${_t}`, t))(O || {}), ht = /* @__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))(ht || {}), F = /* @__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))(F || {}), w = /* @__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))(w || {}), P = /* @__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))(P || {}), H = /* @__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))(H || {}), Rt = /* @__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))(Rt || {}), n = {
246
+ BLOCK_BUTTON: w,
247
+ BLOCK_TEXT: P,
245
248
  BLOCK_IMAGE: H,
246
- GENERAL: w
247
- }, de = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(de || {}), r = {
249
+ GENERAL: F
250
+ }, Lt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Lt || {}), o = {
248
251
  name: "name",
249
252
  disabled: "disabled"
250
- }, ue = {
251
- ...r,
253
+ }, Ct = {
254
+ ...o,
252
255
  caption: "caption",
253
256
  icon: "icon"
254
- }, Ie = {
255
- ...r,
257
+ }, gt = {
258
+ ...o,
256
259
  caption: "caption"
257
- }, Te = {
258
- ...r,
260
+ }, mt = {
261
+ ...o,
259
262
  minValue: "min-value",
260
263
  maxValue: "max-value",
261
264
  step: "step"
262
- }, ce = {
263
- ...r,
264
- placeholder: "placeholder",
265
- minDate: "min-date"
266
- }, be = {
267
- ...r,
268
- text: "text",
269
- hint: "hint"
270
- }, Oe = {
271
- ...r,
272
- type: "type"
273
- }, he = {
274
- ...r,
275
- buttons: "buttons"
265
+ }, bt = {
266
+ ...o,
267
+ text: "text"
268
+ }, Nt = {
269
+ ...o
276
270
  }, X = {
277
- ...r,
271
+ ...o,
278
272
  searchable: "searchable",
279
273
  multiSelect: "multi-select",
280
274
  placeholder: "placeholder",
281
275
  items: "items"
282
- }, me = {
283
- ...X,
284
- addCustomFontOption: "add-custom-font-option"
285
- }, ge = {
286
- ...r,
276
+ }, At = {
277
+ ...X
278
+ }, Dt = {
287
279
  text: "text",
288
280
  value: "value"
289
- }, Re = {
290
- ...r,
281
+ }, St = {
291
282
  text: "text",
292
- hint: "hint",
293
283
  icon: "icon",
294
284
  value: "value"
295
- }, _e = {
296
- ...r,
297
- buttons: "buttons"
298
- }, Le = {
299
- ...r,
300
- text: "text",
301
- hint: "hint",
302
- icon: "icon",
303
- value: "value"
304
- }, Ce = {
305
- ...r,
306
- placeholder: "placeholder"
307
- }, Ae = {
308
- ...r,
309
- resizable: "resizable",
310
- placeholder: "placeholder"
311
- }, Ne = {
312
- ...r,
313
- img: "img",
314
- src: "src",
315
- title: "title",
316
- imageClass: "image-class",
317
- hint: "hint",
318
- disabled: "disabled",
319
- isActive: "is-active",
320
- visibility: "visibility",
321
- transform: "transform"
322
- }, De = {
323
- ...r,
285
+ }, Bt = {
286
+ ...o
287
+ }, Mt = {
324
288
  controlId: "control-id"
325
- }, Se = {
326
- ...r,
327
- expanded: "expanded"
328
- }, xe = {
329
- ...r,
289
+ }, xt = {
290
+ ...o,
330
291
  icon: "icon",
331
292
  position: "position"
332
- }, Be = {
333
- ...r
334
- }, Me = {
335
- ...r,
336
- icon: "icon"
337
- }, ve = {
338
- ...r
339
- }, Qe = {
340
- DEFAULT: r,
341
- BUTTON: ue,
342
- CHECKBOX: Ie,
343
- CHECK_BUTTONS: _e,
344
- COLOR: r,
345
- COUNTER: Te,
346
- DATEPICKER: ce,
347
- LABEL: be,
348
- MESSAGE: Oe,
349
- RADIO_BUTTONS: he,
293
+ }, vt = {
294
+ ...o
295
+ }, Gt = {
296
+ BUTTON: Ct,
297
+ CHECKBOX: gt,
298
+ COLOR: o,
299
+ COUNTER: mt,
300
+ LABEL: bt,
301
+ RADIO_BUTTONS: Nt,
350
302
  SELECTPICKER: X,
351
- FONT_FAMILY_SELECT: me,
352
- SWITCHER: r,
353
- TEXT: Ce,
354
- TEXTAREA: Ae,
355
- ICON: Ne,
356
- CHECK_ITEM: Re,
357
- SELECT_ITEM: ge,
358
- RADIO_ITEM: Le,
359
- NESTED_CONTROL: De,
360
- EXPANDABLE: Se,
361
- ORDERABLE: xe,
362
- ORDERABLE_ITEM: Be,
363
- ORDERABLE_ICON: Me,
364
- REPEATABLE: ve
365
- }, ye = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e))(ye || {}), B = class {
303
+ FONT_FAMILY_SELECT: At,
304
+ SWITCHER: o,
305
+ TEXT: Bt,
306
+ SELECT_ITEM: Dt,
307
+ RADIO_ITEM: St,
308
+ NESTED_CONTROL: Mt,
309
+ ORDERABLE: xt,
310
+ ORDERABLE_ITEM: vt
311
+ }, yt = /* @__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))(yt || {}), x = class {
366
312
  /**
367
313
  * @description returns map of nodes parent control operates on
368
314
  */
369
- getTargetNodes(e) {
370
- return [e];
315
+ getTargetNodes(t) {
316
+ return [t];
371
317
  }
372
318
  /**
373
319
  * @description returns map of labels used by parent control UI
@@ -382,7 +328,7 @@ var Z = {
382
328
  /**
383
329
  * @description returns custom modifications to be included in the parent control patch
384
330
  */
385
- getAdditionalModifications(e) {
331
+ getAdditionalModifications(t) {
386
332
  }
387
333
  /**
388
334
  * Determines whether the specified HTML node is visible.
@@ -390,77 +336,77 @@ var Z = {
390
336
  * @param _node - The HTML node to evaluate for visibility, provided as an immutable object.
391
337
  * @return A boolean value indicating whether the node is visible. Returns `true` if the node is visible, otherwise `false`.
392
338
  */
393
- isVisible(e) {
339
+ isVisible(t) {
394
340
  return !0;
395
341
  }
396
- }, E = class extends B {
397
- getTargetNodes(e) {
398
- const t = e.querySelectorAll(I.BUTTON), a = e.asElement().hasClass(y) ? [e] : [];
399
- return t.length ? t : a;
342
+ }, i = class extends x {
343
+ getTargetNodes(t) {
344
+ const e = t.querySelectorAll(O.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
345
+ return e.length ? e : r;
400
346
  }
401
- }, fe = class extends E {
347
+ }, Vt = class extends i {
402
348
  getParentControlId() {
403
349
  return n.BLOCK_BUTTON.BORDER_RADIUS;
404
350
  }
405
351
  getLabels() {
406
352
  }
407
- }, Ye = class extends E {
353
+ }, Qt = class extends i {
408
354
  getParentControlId() {
409
355
  return n.BLOCK_BUTTON.ALIGNMENT;
410
356
  }
411
- }, $e = class extends E {
357
+ }, ft = class extends i {
412
358
  getParentControlId() {
413
359
  return n.GENERAL.BACKGROUND_COLOR;
414
360
  }
415
- }, We = class extends E {
361
+ }, Yt = class extends i {
416
362
  getParentControlId() {
417
363
  return n.BLOCK_BUTTON.BORDER;
418
364
  }
419
365
  getLabels() {
420
366
  }
421
- }, ze = class extends E {
367
+ }, $t = class extends i {
422
368
  getParentControlId() {
423
369
  return n.BLOCK_BUTTON.COLOR;
424
370
  }
425
- }, Ze = class extends E {
371
+ }, Wt = class extends i {
426
372
  getParentControlId() {
427
373
  return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
428
374
  }
429
- }, je = class extends E {
375
+ }, zt = class extends i {
430
376
  getParentControlId() {
431
377
  return n.BLOCK_BUTTON.FONT_FAMILY;
432
378
  }
433
- }, qe = class extends E {
379
+ }, Zt = class extends i {
434
380
  getParentControlId() {
435
381
  return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
436
382
  }
437
- }, Je = class extends E {
383
+ }, jt = class extends i {
438
384
  getParentControlId() {
439
385
  return n.BLOCK_BUTTON.INTERNAL_INDENTS;
440
386
  }
441
- }, et = class extends E {
387
+ }, qt = class extends i {
442
388
  getParentControlId() {
443
389
  return n.BLOCK_BUTTON.TEXT;
444
390
  }
445
- }, tt = class extends E {
391
+ }, Jt = class extends i {
446
392
  getParentControlId() {
447
393
  return n.BLOCK_BUTTON.FONT_SIZE;
448
394
  }
449
- }, rt = class extends E {
395
+ }, te = class extends i {
450
396
  getParentControlId() {
451
397
  return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
452
398
  }
453
399
  getLabels() {
454
400
  }
455
- }, k = class O extends s {
401
+ }, k = class R extends a {
456
402
  constructor() {
457
- super(O.REQUIRED_METHODS, O);
403
+ super(R.REQUIRED_METHODS, R);
458
404
  }
459
405
  /**
460
406
  * @description Allows to determine if control should be visible or hidden in control panel.
461
407
  * Called on every node modification.
462
408
  */
463
- isVisible(t) {
409
+ isVisible(e) {
464
410
  return !0;
465
411
  }
466
412
  /**
@@ -497,112 +443,42 @@ var Z = {
497
443
  * Implement this to react to changes in the block/structure and update the control's UI elements accordingly.
498
444
  * @param node - The updated immutable HTML node representing the control's context.
499
445
  */
500
- onTemplateNodeUpdated(t) {
446
+ onTemplateNodeUpdated(e) {
501
447
  }
502
448
  /**
503
449
  * Lifecycle hook called when any part of the document template has changed.
504
450
  * This can be frequent; use cautiously for performance-sensitive operations.
505
451
  * @param _node - The immutable HTML node representing current node instance
506
452
  */
507
- onDocumentChanged(t) {
453
+ onDocumentChanged(e) {
508
454
  }
509
455
  };
510
456
  k.REQUIRED_METHODS = ["getId", "getTemplate"];
511
- var at = k, Ue = class h extends s {
512
- constructor() {
513
- super(h.REQUIRED_METHODS, h);
514
- }
515
- /**
516
- * Gets the unique identifier for this tab.
517
- * This ID is used for registration.
518
- * @returns A unique string ID.
519
- */
520
- getId() {
521
- throw new Error("Method getId() must be implemented by the subclass");
522
- }
523
- /**
524
- * Gets the icon key representing this tab in the header.
525
- * @returns A string representing the icon key from the IconsRegistry
526
- */
527
- getIcon() {
528
- throw new Error("Method getIcon() must be implemented by the subclass");
529
- }
530
- /**
531
- * Retrieves the index of the tab associated with the panel.
532
- * The index represents the position/order of the tab in the UI.
533
- *
534
- * @returns {number} The index of the tab.
535
- */
536
- getTabIndex() {
537
- throw new Error("Method getTabIndex() must be implemented by the subclass");
457
+ var ee = k, G = class extends x {
458
+ getTargetNodes(t) {
459
+ const e = t.querySelectorAll(O.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
460
+ return e.length ? e : r;
538
461
  }
539
- /**
540
- * Gets the display name of the tab shown to the user in the header hint.
541
- * Use `this.api.translate()` for localization.
542
- * @returns The localized tab name string.
543
- */
544
- getName() {
545
- throw new Error("Method getName() must be implemented by the subclass");
546
- }
547
- /**
548
- * Determines if the tab should be available for use in the editor.
549
- * Override to provide custom logic based on the editor state or configuration.
550
- * @returns True if the tab is enabled, false otherwise. Defaults to true.
551
- */
552
- isEnabled() {
553
- return !0;
554
- }
555
- /**
556
- * Gets the HTML template string that defines the initial template of general tab.
557
- * @returns An HTML string.
558
- */
559
- getTemplate() {
560
- throw new Error("Method getTemplate() must be implemented by the subclass");
561
- }
562
- /**
563
- * Lifecycle hook called when any part of the document template has changed.
564
- * This can be frequent; use cautiously for performance-sensitive operations.
565
- */
566
- onDocumentChanged() {
567
- }
568
- /**
569
- * Optional hook called when the general panel tab is initially rendered.
570
- * Use this for setup tasks like attaching event listeners to the panel's template elements.
571
- */
572
- onRender() {
573
- }
574
- /**
575
- * Optional cleanup hook called when the general panel tab is being destroyed.
576
- */
577
- onDestroy() {
578
- }
579
- };
580
- Ue.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
581
- var p = class extends B {
582
- getTargetNodes(e) {
583
- const t = e.querySelectorAll(I.IMAGE), a = e.asElement().hasClass(P) ? [e] : [];
584
- return t.length ? t : a;
585
- }
586
- }, nt = class extends p {
462
+ }, re = class extends G {
587
463
  getParentControlId() {
588
464
  return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
589
465
  }
590
- }, st = class extends p {
466
+ }, ne = class extends G {
591
467
  getParentControlId() {
592
468
  return n.BLOCK_IMAGE.SIZE;
593
469
  }
594
- }, G = class m extends s {
470
+ }, V = class L extends a {
595
471
  constructor() {
596
- super(m.REQUIRED_METHODS, m);
472
+ super(L.REQUIRED_METHODS, L);
597
473
  }
598
- registerBlockControls(t) {
474
+ registerBlockControls(e) {
599
475
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
600
476
  }
601
477
  };
602
- G.REQUIRED_METHODS = ["registerBlockControls"];
603
- var it = G, Et = class {
604
- constructor(e, t) {
605
- this.tabId = e, this.controlsIds = t;
478
+ V.REQUIRED_METHODS = ["registerBlockControls"];
479
+ var se = V, ae = class {
480
+ constructor(t, e) {
481
+ this.tabId = t, this.controlsIds = e;
606
482
  }
607
483
  getTabId() {
608
484
  return this.tabId;
@@ -613,52 +489,56 @@ var it = G, Et = class {
613
489
  getControlsIds() {
614
490
  return this.controlsIds;
615
491
  }
616
- withLabel(e) {
617
- return this.label = e, this;
492
+ withLabel(t) {
493
+ return this.label = t, this;
618
494
  }
619
- addControl(e, t) {
620
- return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
495
+ addControl(t, e) {
496
+ return e < 0 ? this.controlsIds.unshift(t) : e > this.controlsIds.length ? this.controlsIds.push(t) : this.controlsIds.splice(e, 0, t), this;
621
497
  }
622
- deleteControl(e) {
623
- const t = this.controlsIds.indexOf(e);
624
- t !== -1 && this.controlsIds.splice(t, 1);
498
+ deleteControl(t) {
499
+ const e = this.controlsIds.indexOf(t);
500
+ e !== -1 && this.controlsIds.splice(e, 1);
625
501
  }
626
- }, l = class extends B {
627
- getTargetNodes(e) {
628
- const t = e.querySelectorAll(I.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
629
- return t.length ? t : a;
502
+ }, l = class extends x {
503
+ getTargetNodes(t) {
504
+ const e = t.querySelectorAll(O.TEXT), r = t.asElement().hasClass(p) ? [t] : [];
505
+ return e.length ? e : r;
630
506
  }
631
- }, lt = class extends l {
507
+ }, ie = class extends l {
632
508
  getParentControlId() {
633
509
  return n.GENERAL.TEXT_ALIGN;
634
510
  }
635
- }, ot = class extends l {
511
+ }, oe = class extends l {
512
+ getParentControlId() {
513
+ return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
514
+ }
515
+ }, Ee = class extends l {
636
516
  getParentControlId() {
637
517
  return n.GENERAL.TEXT_COLOR;
638
518
  }
639
- }, dt = class extends l {
519
+ }, le = class extends l {
640
520
  getParentControlId() {
641
521
  return n.BLOCK_TEXT.FONT_FAMILY;
642
522
  }
643
- }, ut = class extends l {
523
+ }, de = class extends l {
644
524
  getParentControlId() {
645
525
  return n.GENERAL.TEXT_LINE_SPACING;
646
526
  }
647
- }, It = class extends l {
527
+ }, ue = class extends l {
648
528
  getParentControlId() {
649
529
  return n.BLOCK_TEXT.INTERNAL_INDENTS;
650
530
  }
651
- }, Tt = class extends l {
531
+ }, Ie = class extends l {
652
532
  getParentControlId() {
653
533
  return n.GENERAL.TEXT_SIZE;
654
534
  }
655
- }, ct = class extends l {
535
+ }, Oe = class extends l {
656
536
  getParentControlId() {
657
537
  return n.GENERAL.TEXT_STYLE;
658
538
  }
659
- }, Pe = class {
660
- constructor(e) {
661
- this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
539
+ }, Ut = class {
540
+ constructor(t, e, r = [], s, E = [], T, I = [], d = [], v, $, W, z, Z, j, q, J, tt) {
541
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = W, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = I, this.blocks = d, this.externalSmartElementsLibrary = v, this.externalImageLibrary = $, this.externalImageLibraryTab = tt, this.externalAiAssistant = z, this.externalDisplayConditionsLibrary = Z, this.externalVideoLibrary = j, this.blocksPanel = q, this.iconsRegistry = J, this.id = Math.random().toString(36).substring(2);
662
542
  }
663
543
  getI18n() {
664
544
  return this.i18n;
@@ -714,111 +594,104 @@ var it = G, Et = class {
714
594
  getIconsRegistry() {
715
595
  return this.iconsRegistry;
716
596
  }
717
- getGeneralPanelTabs() {
718
- return this.generalPanelTabs;
719
- }
720
- }, bt = class {
597
+ }, Te = class {
721
598
  constructor() {
722
- this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
599
+ this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
723
600
  }
724
- withLocalization(e) {
725
- return this.i18n = e, this;
601
+ withLocalization(t) {
602
+ return this.i18n = t, this;
726
603
  }
727
604
  /**
728
605
  * @deprecated Use addStyles() instead. This method will be removed in a future version.
729
606
  */
730
- withStyles(e) {
731
- return this.styles = [e], this;
607
+ withStyles(t) {
608
+ return this.styles = [t], this;
732
609
  }
733
- addStyles(e) {
734
- return this.styles.push(e), this;
610
+ addStyles(t) {
611
+ return this.styles.push(t), this;
735
612
  }
736
613
  /**
737
614
  * @description defines custom developer styles to use inside the editor document preview
738
615
  */
739
- withPreviewStyles(e) {
740
- return this.previewStyles = e, this;
741
- }
742
- addContextAction(e) {
743
- return this.contextActions.push(e), this;
616
+ withPreviewStyles(t) {
617
+ return this.previewStyles = t, this;
744
618
  }
745
- addUiElement(e) {
746
- return this.uiElements.push(e), this;
619
+ addContextAction(t) {
620
+ return this.contextActions.push(t), this;
747
621
  }
748
- withUiElementTagRegistry(e) {
749
- return this.uiElementTagRegistry = e, this;
622
+ addUiElement(t) {
623
+ return this.uiElements.push(t), this;
750
624
  }
751
- addControl(e) {
752
- return this.controls.push(e), this;
625
+ withUiElementTagRegistry(t) {
626
+ return this.uiElementTagRegistry = t, this;
753
627
  }
754
- withSettingsPanelRegistry(e) {
755
- return this.settingsPanelRegistry = e, this;
628
+ addControl(t) {
629
+ return this.controls.push(t), this;
756
630
  }
757
- withExternalSmartElementsLibrary(e) {
758
- return this.externalSmartElementsLibrary = e, this;
631
+ withSettingsPanelRegistry(t) {
632
+ return this.settingsPanelRegistry = t, this;
759
633
  }
760
- withExternalImageLibrary(e) {
761
- return this.externalImageLibrary = e, this;
634
+ withExternalSmartElementsLibrary(t) {
635
+ return this.externalSmartElementsLibrary = t, this;
762
636
  }
763
- withExternalImageLibraryTab(e) {
764
- return this.externalImageLibraryTab = e, this;
637
+ withExternalImageLibrary(t) {
638
+ return this.externalImageLibrary = t, this;
765
639
  }
766
- withExternalAiAssistant(e) {
767
- return this.externalAiAssistant = e, this;
640
+ withExternalImageLibraryTab(t) {
641
+ return this.externalImageLibraryTab = t, this;
768
642
  }
769
- withExternalDisplayCondition(e) {
770
- return this.externalDisplayConditionsLibrary = e, this;
643
+ withExternalAiAssistant(t) {
644
+ return this.externalAiAssistant = t, this;
771
645
  }
772
- withExternalVideosLibrary(e) {
773
- return this.externalVideoLibrary = e, this;
646
+ withExternalDisplayCondition(t) {
647
+ return this.externalDisplayConditionsLibrary = t, this;
774
648
  }
775
- withBlocksPanel(e) {
776
- return this.blocksPanel = e, this;
649
+ withExternalVideosLibrary(t) {
650
+ return this.externalVideoLibrary = t, this;
777
651
  }
778
- addBlock(e) {
779
- return this.blocks.push(e), this;
652
+ withBlocksPanel(t) {
653
+ return this.blocksPanel = t, this;
780
654
  }
781
- withIconsRegistry(e) {
782
- return this.iconsRegistry = e, this;
655
+ addBlock(t) {
656
+ return this.blocks.push(t), this;
783
657
  }
784
- addGeneralPanelTab(e) {
785
- return this.generalPanelTabs.push(e), this;
658
+ withIconsRegistry(t) {
659
+ return this.iconsRegistry = t, this;
786
660
  }
787
661
  build() {
788
- return new Pe({
789
- i18n: this.i18n,
790
- styles: this.styles.map((e) => e.trim()).join(`
662
+ return new Ut(
663
+ this.i18n,
664
+ (this.styles || []).map((t) => t.trim()).join(`
791
665
  `),
792
- uiElements: this.uiElements,
793
- uiElementTagRegistry: this.uiElementTagRegistry,
794
- controls: this.controls,
795
- settingsPanelRegistry: this.settingsPanelRegistry,
796
- contextActions: this.contextActions,
797
- blocks: this.blocks,
798
- externalSmartElementsLibrary: this.externalSmartElementsLibrary,
799
- externalImageLibrary: this.externalImageLibrary,
800
- previewStyles: this.previewStyles,
801
- externalAiAssistant: this.externalAiAssistant,
802
- externalDisplayConditionsLibrary: this.externalDisplayConditionsLibrary,
803
- externalVideoLibrary: this.externalVideoLibrary,
804
- blocksPanel: this.blocksPanel,
805
- iconsRegistry: this.iconsRegistry,
806
- externalImageLibraryTab: this.externalImageLibraryTab,
807
- generalPanelTabs: this.generalPanelTabs
808
- });
809
- }
810
- }, we = class g extends s {
666
+ this.uiElements,
667
+ this.uiElementTagRegistry,
668
+ this.controls,
669
+ this.settingsPanelRegistry,
670
+ this.contextActions,
671
+ this.blocks,
672
+ this.externalSmartElementsLibrary,
673
+ this.externalImageLibrary,
674
+ this.previewStyles,
675
+ this.externalAiAssistant,
676
+ this.externalDisplayConditionsLibrary,
677
+ this.externalVideoLibrary,
678
+ this.blocksPanel,
679
+ this.iconsRegistry,
680
+ this.externalImageLibraryTab
681
+ );
682
+ }
683
+ }, pt = class C extends a {
811
684
  constructor() {
812
- super(g.REQUIRED_METHODS, g);
685
+ super(C.REQUIRED_METHODS, C);
813
686
  }
814
- openAiAssistant(t) {
687
+ openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: E }) {
815
688
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
816
689
  }
817
690
  };
818
- we.REQUIRED_METHODS = ["openAiAssistant"];
819
- var Ke = class R extends s {
691
+ pt.REQUIRED_METHODS = ["openAiAssistant"];
692
+ var Kt = class g extends a {
820
693
  constructor() {
821
- super(R.REQUIRED_METHODS, R);
694
+ super(g.REQUIRED_METHODS, g);
822
695
  }
823
696
  /**
824
697
  * Retrieves the name of the category.
@@ -831,11 +704,11 @@ var Ke = class R extends s {
831
704
  /**
832
705
  * Opens a popup dialog for creating or updating a display condition.
833
706
  *
834
- * @param {DisplayCondition} _currentCondition - The currently selected display condition to edit.
835
- * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
836
- * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
707
+ * @param {DisplayCondition} currentCondition - The currently selected display condition to edit.
708
+ * @param {ExternalDisplayConditionSelectedCB} successCallback - Callback executed with the updated or newly created condition upon success.
709
+ * @param {() => void} cancelCallback - Callback executed when the dialog is closed without making changes.
837
710
  */
838
- openExternalDisplayConditionsDialog(t, a, i) {
711
+ openExternalDisplayConditionsDialog(e, r, s) {
839
712
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
840
713
  }
841
714
  /**
@@ -856,19 +729,19 @@ var Ke = class R extends s {
856
729
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
857
730
  }
858
731
  };
859
- Ke.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
860
- var Fe = class _ extends s {
732
+ Kt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
733
+ var Ft = class m extends a {
861
734
  constructor() {
862
- super(_.REQUIRED_METHODS, _);
735
+ super(m.REQUIRED_METHODS, m);
863
736
  }
864
- openImageLibrary(t, a, i) {
737
+ openImageLibrary(e, r, s) {
865
738
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
866
739
  }
867
740
  };
868
- Fe.REQUIRED_METHODS = ["openImageLibrary"];
869
- var He = class L extends s {
741
+ Ft.REQUIRED_METHODS = ["openImageLibrary"];
742
+ var wt = class b extends a {
870
743
  constructor() {
871
- super(L.REQUIRED_METHODS, L);
744
+ super(b.REQUIRED_METHODS, b);
872
745
  }
873
746
  /**
874
747
  * @description Returns the translated name/label for the tab
@@ -881,46 +754,45 @@ var He = class L extends s {
881
754
  * @description Opens the external image library tab and provides a container for rendering
882
755
  * @param _container - DOM element container where the external library UI should be rendered
883
756
  * @param _onImageSelectCallback - Callback to invoke when an image is selected
884
- * @param _selectedNode - (Optional) Selected node for which the gallery is being opened
885
757
  */
886
- openImageLibraryTab(t, a, i) {
758
+ openImageLibraryTab(e, r) {
887
759
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
888
760
  }
889
761
  };
890
- He.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
891
- var Xe = class C extends s {
762
+ wt.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
763
+ var Pt = class N extends a {
892
764
  constructor() {
893
- super(C.REQUIRED_METHODS, C);
765
+ super(N.REQUIRED_METHODS, N);
894
766
  }
895
- openSmartElementsLibrary(t, a) {
767
+ openSmartElementsLibrary(e, r) {
896
768
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
897
769
  }
898
770
  };
899
- Xe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
900
- var ke = class A extends s {
771
+ Pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
772
+ var Ht = class A extends a {
901
773
  constructor() {
902
774
  super(A.REQUIRED_METHODS, A);
903
775
  }
904
- openExternalVideosLibraryDialog(t, a, i) {
776
+ openExternalVideosLibraryDialog(e, r, s) {
905
777
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
906
778
  }
907
779
  };
908
- ke.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
909
- var V = class N extends s {
780
+ Ht.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
781
+ var Q = class D extends a {
910
782
  constructor() {
911
- super(N.REQUIRED_METHODS, N);
783
+ super(D.REQUIRED_METHODS, D);
912
784
  }
913
- registerIconsSvg(t) {
785
+ registerIconsSvg(e) {
914
786
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
915
787
  }
916
788
  };
917
- V.REQUIRED_METHODS = ["registerIconsSvg"];
918
- var Ot = V, ht = class {
919
- constructor(e) {
920
- this.key = e;
789
+ Q.REQUIRED_METHODS = ["registerIconsSvg"];
790
+ var ce = Q, _e = class {
791
+ constructor(t) {
792
+ this.key = t;
921
793
  }
922
- withParams(e) {
923
- return this.params = e, this;
794
+ withParams(t) {
795
+ return this.params = t, this;
924
796
  }
925
797
  getValue() {
926
798
  return {
@@ -928,15 +800,15 @@ var Ot = V, ht = class {
928
800
  params: this.params
929
801
  };
930
802
  }
931
- }, Q = class D extends s {
803
+ }, f = class S extends a {
932
804
  constructor() {
933
- super(D.REQUIRED_METHODS, D);
805
+ super(S.REQUIRED_METHODS, S);
934
806
  }
935
807
  /**
936
808
  * Called when the UI element should render its content into the provided container.
937
809
  * @param container - The HTMLElement where the UI element should be rendered.
938
810
  */
939
- onRender(t) {
811
+ onRender(e) {
940
812
  throw new Error("Method onRender() must be implemented by the subclass");
941
813
  }
942
814
  /**
@@ -957,7 +829,7 @@ var Ot = V, ht = class {
957
829
  * Implement this if the element manages a state or value and needs to be updated externally.
958
830
  * @param value - The new value to set.
959
831
  */
960
- setValue(t) {
832
+ setValue(e) {
961
833
  }
962
834
  /**
963
835
  * @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
@@ -965,7 +837,7 @@ var Ot = V, ht = class {
965
837
  * @param name - The name of the attribute that was updated.
966
838
  * @param value - The new value of the attribute.
967
839
  */
968
- onAttributeUpdated(t, a) {
840
+ onAttributeUpdated(e, r) {
969
841
  }
970
842
  /**
971
843
  * Gets the unique identifier for this UI element type.
@@ -983,61 +855,62 @@ var Ot = V, ht = class {
983
855
  throw new Error("Method getTemplate() must be implemented by the subclass");
984
856
  }
985
857
  };
986
- Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
987
- var mt = Q, f = class S extends s {
858
+ f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
859
+ var he = f, Y = class B extends a {
988
860
  constructor() {
989
- super(S.REQUIRED_METHODS, S);
861
+ super(B.REQUIRED_METHODS, B);
990
862
  }
991
- registerUiElements(t) {
863
+ registerUiElements(e) {
992
864
  throw new Error("Method registerUiElements() must be implemented by the subclass");
993
865
  }
994
866
  };
995
- f.REQUIRED_METHODS = ["registerUiElements"];
996
- var gt = f;
867
+ Y.REQUIRED_METHODS = ["registerUiElements"];
868
+ var Re = Y;
997
869
  export {
998
- Ge as Block,
999
- Ve as BlockAttr,
1000
- $ as BlockCompositionType,
1001
- I as BlockSelector,
1002
- le as BlockType,
1003
- B as BuiltInControl,
870
+ Xt as Block,
871
+ kt as BlockAttr,
872
+ et as BlockCompositionType,
873
+ O as BlockSelector,
874
+ ht as BlockType,
875
+ x as BuiltInControl,
1004
876
  n as BuiltInControlTypes,
1005
- Ye as ButtonAlignBuiltInControl,
1006
- $e as ButtonBackgroundColorBuiltInControl,
1007
- We as ButtonBorderBuiltInControl,
1008
- fe as ButtonBorderRadiusBuiltInControl,
1009
- ze as ButtonColorBuiltInControl,
1010
- K as ButtonControls,
1011
- Ze as ButtonFitToContainerBuiltInControl,
1012
- je as ButtonFontFamilyBuiltInControl,
1013
- qe as ButtonMarginsBuiltInControl,
1014
- Je as ButtonPaddingsBuiltInControl,
1015
- et as ButtonTextBuiltInControl,
1016
- tt as ButtonTextSizeBuiltInControl,
1017
- rt as ButtonTextStyleAndFontColorBuiltInControl,
1018
- oe as ContainerControls,
1019
- at as Control,
1020
- Pe as Extension,
1021
- bt as ExtensionBuilder,
1022
- w as GeneralControls,
1023
- Ot as IconsRegistry,
877
+ Qt as ButtonAlignBuiltInControl,
878
+ ft as ButtonBackgroundColorBuiltInControl,
879
+ Yt as ButtonBorderBuiltInControl,
880
+ Vt as ButtonBorderRadiusBuiltInControl,
881
+ $t as ButtonColorBuiltInControl,
882
+ w as ButtonControls,
883
+ Wt as ButtonFitToContainerBuiltInControl,
884
+ zt as ButtonFontFamilyBuiltInControl,
885
+ Zt as ButtonMarginsBuiltInControl,
886
+ jt as ButtonPaddingsBuiltInControl,
887
+ qt as ButtonTextBuiltInControl,
888
+ Jt as ButtonTextSizeBuiltInControl,
889
+ te as ButtonTextStyleAndFontColorBuiltInControl,
890
+ Rt as ContainerControls,
891
+ ee as Control,
892
+ Ut as Extension,
893
+ Te as ExtensionBuilder,
894
+ F as GeneralControls,
895
+ ce as IconsRegistry,
1024
896
  H as ImageControls,
1025
- nt as ImageMarginsBuiltInControl,
1026
- st as ImageSizeBuiltInControl,
1027
- ht as ModificationDescription,
1028
- it as SettingsPanelRegistry,
1029
- Et as SettingsPanelTab,
1030
- de as SettingsTab,
1031
- lt as TextAlignBuiltInControl,
1032
- ot as TextColorBuiltInControl,
1033
- F as TextControls,
1034
- dt as TextFontFamilyBuiltInControl,
1035
- ut as TextLineSpacingBuiltInControl,
1036
- It as TextPaddingsBuiltInControl,
1037
- Tt as TextSizeBuiltInControl,
1038
- ct as TextStyleBuiltInControl,
1039
- Qe as UEAttr,
1040
- mt as UIElement,
1041
- gt as UIElementTagRegistry,
1042
- ye as UIElementType
897
+ re as ImageMarginsBuiltInControl,
898
+ ne as ImageSizeBuiltInControl,
899
+ _e as ModificationDescription,
900
+ se as SettingsPanelRegistry,
901
+ ae as SettingsPanelTab,
902
+ Lt as SettingsTab,
903
+ ie as TextAlignBuiltInControl,
904
+ oe as TextBlockBackgroundBuiltInControl,
905
+ Ee as TextColorBuiltInControl,
906
+ P as TextControls,
907
+ le as TextFontFamilyBuiltInControl,
908
+ de as TextLineSpacingBuiltInControl,
909
+ ue as TextPaddingsBuiltInControl,
910
+ Ie as TextSizeBuiltInControl,
911
+ Oe as TextStyleBuiltInControl,
912
+ Gt as UEAttr,
913
+ he as UIElement,
914
+ Re as UIElementTagRegistry,
915
+ yt as UIElementType
1043
916
  };