@useinsider/guido 3.2.0-beta.739a669 → 3.2.0-beta.7e0c6bd

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 (274) hide show
  1. package/dist/@types/config/schemas.js +1 -1
  2. package/dist/@types/config/validator.js +27 -34
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +76 -81
  5. package/dist/components/organisms/base/Toaster.vue2.js +10 -11
  6. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
  7. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
  8. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +9 -15
  9. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +31 -40
  10. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +19 -20
  11. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +11 -14
  12. package/dist/components/organisms/header/EditorActions.vue.js +11 -12
  13. package/dist/components/organisms/header/EditorActions.vue2.js +18 -22
  14. package/dist/components/organisms/header/HeaderWrapper.vue2.js +12 -15
  15. package/dist/components/organisms/header/LeftSlot.vue2.js +16 -19
  16. package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -11
  17. package/dist/components/organisms/header/RightSlot.vue2.js +14 -17
  18. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -12
  19. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +24 -26
  20. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +11 -12
  21. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +41 -44
  22. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +11 -12
  23. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +36 -38
  24. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +18 -21
  25. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +27 -31
  26. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +11 -12
  27. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +30 -32
  28. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
  29. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +21 -23
  30. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +8 -9
  31. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +9 -10
  32. package/dist/composables/useActionsApi.js +37 -38
  33. package/dist/composables/useBlocksConfig.js +26 -26
  34. package/dist/composables/useFullStoryBridge.js +13 -0
  35. package/dist/composables/useHtmlCompiler.js +34 -26
  36. package/dist/composables/useHtmlValidator.js +101 -109
  37. package/dist/composables/useHttp.js +30 -30
  38. package/dist/composables/usePartner.js +1 -1
  39. package/dist/composables/useRecommendation.js +14 -15
  40. package/dist/composables/useRibbonOffset.js +15 -15
  41. package/dist/composables/useSave.js +21 -22
  42. package/dist/composables/useStripo.js +45 -40
  43. package/dist/composables/useSyncModuleExtractor.js +31 -29
  44. package/dist/composables/useTimerClone.js +24 -25
  45. package/dist/composables/useTranslations.js +23 -16
  46. package/dist/composables/useValidation.js +7 -8
  47. package/dist/composables/validators/useLiquidValidator.js +13 -13
  48. package/dist/config/compiler/unsubscribeCompilerRules.js +38 -37
  49. package/dist/config/compiler/utils/recommendationCompilerUtils.js +36 -34
  50. package/dist/config/migrator/checkboxMigrator.js +20 -21
  51. package/dist/config/migrator/couponBlockMigrator.js +18 -19
  52. package/dist/config/migrator/itemsBlockMigrator.js +87 -89
  53. package/dist/config/migrator/radioButtonMigrator.js +12 -13
  54. package/dist/config/migrator/recommendationMigrator.js +107 -110
  55. package/dist/config/migrator/unsubscribeMigrator.js +10 -11
  56. package/dist/enums/unsubscribe.js +33 -27
  57. package/dist/extensions/Blocks/Items/block.js +9 -9
  58. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
  59. package/dist/extensions/Blocks/Items/controls/cardComposition.js +89 -97
  60. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
  61. package/dist/extensions/Blocks/Items/controls/name/trimming.js +23 -24
  62. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +13 -14
  63. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +44 -47
  64. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
  65. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
  66. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +38 -40
  67. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
  68. package/dist/extensions/Blocks/Items/controls/settingsControl.js +155 -162
  69. package/dist/extensions/Blocks/Items/enums/productEnums.js +9 -14
  70. package/dist/extensions/Blocks/Items/template.js +210 -210
  71. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  72. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
  73. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +128 -133
  74. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +23 -20
  75. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
  76. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
  77. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +19 -20
  78. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
  79. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +84 -90
  80. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
  81. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
  82. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +35 -36
  83. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +134 -135
  84. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
  85. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
  86. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
  87. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
  88. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
  89. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
  90. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
  91. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
  92. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
  93. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
  94. package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
  95. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
  96. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +18 -20
  97. package/dist/extensions/Blocks/Recommendation/extension.js +31 -32
  98. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +25 -32
  99. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +72 -69
  100. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +22 -23
  101. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
  102. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
  103. package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
  104. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +24 -25
  105. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +11 -11
  106. package/dist/extensions/Blocks/Recommendation/templates/utils.js +45 -47
  107. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +17 -14
  108. package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
  109. package/dist/extensions/Blocks/Unsubscribe/control.js +11 -13
  110. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +16 -18
  111. package/dist/extensions/Blocks/common-control.js +25 -26
  112. package/dist/extensions/DynamicContent/dynamic-content.js +53 -58
  113. package/dist/guido.css +1 -1
  114. package/dist/library.js +11 -12
  115. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +375 -247
  116. package/dist/node_modules/valibot/dist/index.js +122 -126
  117. package/dist/package.json.js +1 -1
  118. package/dist/services/recommendationApi.js +14 -17
  119. package/dist/services/templateLibraryApi.js +37 -38
  120. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  121. package/dist/src/composables/useFullStoryBridge.d.ts +11 -0
  122. package/dist/src/composables/useHtmlCompiler.d.ts +1 -2
  123. package/dist/src/composables/useTranslations.d.ts +1 -1
  124. package/dist/src/enums/unsubscribe.d.ts +5 -0
  125. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
  126. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
  127. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
  128. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
  129. package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
  130. package/dist/src/stores/dynamic-content.d.ts +3 -3
  131. package/dist/static/styles/components/button.css.js +16 -9
  132. package/dist/static/styles/components/loader.css.js +4 -0
  133. package/dist/static/styles/components/narrow-panel.css.js +52 -0
  134. package/dist/stores/config.js +25 -81
  135. package/dist/stores/dynamic-content.js +6 -11
  136. package/dist/stores/onboarding.js +1 -1
  137. package/dist/stores/preview.js +6 -9
  138. package/dist/stores/unsubscribe.js +1 -4
  139. package/dist/utils/dateUtil.js +7 -10
  140. package/dist/utils/genericUtil.js +10 -13
  141. package/dist/utils/pairProductVariables.js +13 -14
  142. package/package.json +8 -5
  143. package/dist/node_modules/lodash-es/_DataView.js +0 -6
  144. package/dist/node_modules/lodash-es/_Hash.js +0 -20
  145. package/dist/node_modules/lodash-es/_ListCache.js +0 -20
  146. package/dist/node_modules/lodash-es/_Map.js +0 -6
  147. package/dist/node_modules/lodash-es/_MapCache.js +0 -20
  148. package/dist/node_modules/lodash-es/_Promise.js +0 -6
  149. package/dist/node_modules/lodash-es/_Set.js +0 -6
  150. package/dist/node_modules/lodash-es/_SetCache.js +0 -13
  151. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  152. package/dist/node_modules/lodash-es/_Symbol.js +0 -5
  153. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  154. package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
  155. package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
  156. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
  157. package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
  158. package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
  159. package/dist/node_modules/lodash-es/_arraySome.js +0 -9
  160. package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
  161. package/dist/node_modules/lodash-es/_baseEach.js +0 -6
  162. package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
  163. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  164. package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
  165. package/dist/node_modules/lodash-es/_baseGet.js +0 -11
  166. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  167. package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
  168. package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
  169. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  170. package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
  171. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
  172. package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
  173. package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
  174. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  175. package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
  176. package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
  177. package/dist/node_modules/lodash-es/_baseMap.js +0 -11
  178. package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
  179. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  180. package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
  181. package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  182. package/dist/node_modules/lodash-es/_baseRange.js +0 -9
  183. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  184. package/dist/node_modules/lodash-es/_baseToString.js +0 -18
  185. package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
  186. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  187. package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
  188. package/dist/node_modules/lodash-es/_castPath.js +0 -10
  189. package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
  190. package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
  191. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  192. package/dist/node_modules/lodash-es/_createRange.js +0 -11
  193. package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
  194. package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
  195. package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
  196. package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
  197. package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
  198. package/dist/node_modules/lodash-es/_getMapData.js +0 -8
  199. package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
  200. package/dist/node_modules/lodash-es/_getNative.js +0 -9
  201. package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
  202. package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
  203. package/dist/node_modules/lodash-es/_getTag.js +0 -28
  204. package/dist/node_modules/lodash-es/_getValue.js +0 -6
  205. package/dist/node_modules/lodash-es/_hasPath.js +0 -19
  206. package/dist/node_modules/lodash-es/_hashClear.js +0 -7
  207. package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
  208. package/dist/node_modules/lodash-es/_hashGet.js +0 -13
  209. package/dist/node_modules/lodash-es/_hashHas.js +0 -9
  210. package/dist/node_modules/lodash-es/_hashSet.js +0 -9
  211. package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
  212. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  213. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  214. package/dist/node_modules/lodash-es/_isKey.js +0 -12
  215. package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
  216. package/dist/node_modules/lodash-es/_isMasked.js +0 -11
  217. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  218. package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
  219. package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
  220. package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
  221. package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
  222. package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
  223. package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
  224. package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
  225. package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  226. package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
  227. package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
  228. package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
  229. package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
  230. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  231. package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
  232. package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
  233. package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
  234. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  235. package/dist/node_modules/lodash-es/_objectToString.js +0 -7
  236. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  237. package/dist/node_modules/lodash-es/_root.js +0 -5
  238. package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
  239. package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
  240. package/dist/node_modules/lodash-es/_setToArray.js +0 -9
  241. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  242. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  243. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  244. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  245. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  246. package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
  247. package/dist/node_modules/lodash-es/_toKey.js +0 -10
  248. package/dist/node_modules/lodash-es/_toSource.js +0 -17
  249. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  250. package/dist/node_modules/lodash-es/eq.js +0 -6
  251. package/dist/node_modules/lodash-es/flatMap.js +0 -8
  252. package/dist/node_modules/lodash-es/get.js +0 -8
  253. package/dist/node_modules/lodash-es/hasIn.js +0 -8
  254. package/dist/node_modules/lodash-es/identity.js +0 -6
  255. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  256. package/dist/node_modules/lodash-es/isArray.js +0 -4
  257. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  258. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  259. package/dist/node_modules/lodash-es/isFunction.js +0 -12
  260. package/dist/node_modules/lodash-es/isLength.js +0 -7
  261. package/dist/node_modules/lodash-es/isObject.js +0 -7
  262. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  263. package/dist/node_modules/lodash-es/isSymbol.js +0 -9
  264. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  265. package/dist/node_modules/lodash-es/keys.js +0 -9
  266. package/dist/node_modules/lodash-es/map.js +0 -11
  267. package/dist/node_modules/lodash-es/memoize.js +0 -18
  268. package/dist/node_modules/lodash-es/property.js +0 -10
  269. package/dist/node_modules/lodash-es/range.js +0 -5
  270. package/dist/node_modules/lodash-es/stubArray.js +0 -6
  271. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  272. package/dist/node_modules/lodash-es/toFinite.js +0 -14
  273. package/dist/node_modules/lodash-es/toNumber.js +0 -22
  274. package/dist/node_modules/lodash-es/toString.js +0 -7
@@ -1,17 +1,17 @@
1
- var B = class d {
1
+ var x = 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
- constructor(t, n) {
8
- if (n !== d) {
9
- d.validatedClasses.has(n) || this.validateImplementation(t, n);
10
- const i = d.validationErrors.get(n);
11
- if (i && i.length > 0)
7
+ constructor(t, r) {
8
+ if (r !== d) {
9
+ d.validatedClasses.has(r) || this.validateImplementation(t, r);
10
+ const a = d.validationErrors.get(r);
11
+ if (a && a.length > 0)
12
12
  throw new Error(
13
- `${n.name} has validation errors:
14
- ${i.map((o) => ` - ${o}`).join(`
13
+ `${r.name} has validation errors:
14
+ ${a.map((E) => ` - ${E}`).join(`
15
15
  `)}`
16
16
  );
17
17
  }
@@ -20,23 +20,29 @@ ${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, n) {
24
- var x;
25
- const i = [], o = n.name, Y = Object.getPrototypeOf(this);
23
+ validateImplementation(t, r) {
24
+ const a = [], E = r.name, $ = Object.getPrototypeOf(this);
26
25
  t.forEach((u) => {
27
26
  if (typeof this[u] != "function") {
28
- i.push(`Method ${u}() is not defined`);
27
+ a.push(`Method ${u}() is not defined`);
29
28
  return;
30
29
  }
31
- Y[u] === n.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), d.validatedClasses.add(n), i.length > 0 ? (d.validationErrors.set(n, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((x = process.env) == null ? void 0 : x.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
30
+ $[u] === r.prototype[u] && a.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
31
+ }), d.validatedClasses.add(r), a.length > 0 ? (d.validationErrors.set(r, a), console.error(`[${E} Validation] ${E} validation failed:`, a)) : typeof process < "u" && process.env?.NODE_ENV === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
32
+ }
33
+ /**
34
+ * Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
35
+ * Override this method in subclasses to implement custom cleanup logic.
36
+ * Called when the editor is reinitialized or the extension is uninstalled.
37
+ */
38
+ destroy() {
33
39
  }
34
40
  };
35
- B.validatedClasses = /* @__PURE__ */ new Set();
36
- B.validationErrors = /* @__PURE__ */ new Map();
37
- var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class c extends s {
41
+ x.validatedClasses = /* @__PURE__ */ new Set();
42
+ x.validationErrors = /* @__PURE__ */ new Map();
43
+ var i = x, W = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(W || {}), y = class T extends i {
38
44
  constructor() {
39
- super(c.REQUIRED_METHODS, c);
45
+ super(T.REQUIRED_METHODS, T);
40
46
  }
41
47
  /**
42
48
  * Determines if the block should be available for use in the editor.
@@ -133,6 +139,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
133
139
  shouldDisplayQuickAddIcon() {
134
140
  return !1;
135
141
  }
142
+ /**
143
+ * Determines if the block should be shown in the blocks panel.
144
+ * Override to hide the block from the blocks panel while keeping it available elsewhere.
145
+ * @returns True if the block should appear in the blocks panel. Defaults to true.
146
+ */
147
+ shouldDisplayInBlocksPanel() {
148
+ return !0;
149
+ }
136
150
  /**
137
151
  * @description Determines if nested blocks selection allowed in extension of type {@link BlockCompositionType.STRUCTURE}
138
152
  */
@@ -145,6 +159,9 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
145
159
  allowInnerBlocksDND() {
146
160
  return !0;
147
161
  }
162
+ allowInteractWithAMPWhenSelected() {
163
+ return !0;
164
+ }
148
165
  /**
149
166
  * Gets the unique identifier for this block type.
150
167
  * This ID is used for registration and referencing the block.
@@ -161,6 +178,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
161
178
  getTemplate() {
162
179
  throw new Error("Method getTemplate() must be implemented by the subclass");
163
180
  }
181
+ /**
182
+ * Gets a CSS template string that contains the custom styles that apply to the block.
183
+ * This CSS will be used when a block is dragged into the editor and removed when the last block is deleted.
184
+ * @returns An CSS string.
185
+ */
186
+ getTemplateStyles() {
187
+ return "";
188
+ }
164
189
  /**
165
190
  * Gets the URL or path to the icon representing this block in the editor's block panel.
166
191
  * @returns A string representing the icon source (e.g., URL, data URI).
@@ -195,15 +220,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
195
220
  throw new Error("Method getDescription() must be implemented by the subclass");
196
221
  }
197
222
  };
198
- v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
- var Qe = v, W = class T extends s {
223
+ y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
224
+ var ze = y, z = class I extends i {
200
225
  constructor() {
201
- super(T.REQUIRED_METHODS, T);
226
+ super(I.REQUIRED_METHODS, I);
202
227
  }
203
228
  /**
204
229
  * @deprecated - use {@link getPreviewInnerHtml} instead
205
230
  */
206
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
207
231
  getPreviewHtml(t) {
208
232
  }
209
233
  /**
@@ -213,8 +237,8 @@ var Qe = v, W = class T extends s {
213
237
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
214
238
  }
215
239
  };
216
- W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
- var fe = class {
240
+ z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
241
+ var Ze = class {
218
242
  /**
219
243
  * Generates HTML representation for a block item
220
244
  * @param block - The block item to generate HTML for
@@ -232,6 +256,13 @@ var fe = class {
232
256
  isBlockHintVisible(e) {
233
257
  return !0;
234
258
  }
259
+ /**
260
+ * Determines whether a draggable handle should be displayed in modules panel
261
+ * @returns True if the block panel should be reorderable
262
+ */
263
+ isPanelPlacementChangeEnabled() {
264
+ return !0;
265
+ }
235
266
  /**
236
267
  * Gets the hint text for a block
237
268
  * @param block - The block item to get hint for
@@ -281,7 +312,7 @@ var fe = class {
281
312
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
282
313
  getModulesTabIconName(e) {
283
314
  }
284
- }, z = class b extends s {
315
+ }, Z = class b extends i {
285
316
  constructor() {
286
317
  super(b.REQUIRED_METHODS, b);
287
318
  }
@@ -298,86 +329,86 @@ var fe = class {
298
329
  throw new Error("Method onClick() must be implemented by the subclass");
299
330
  }
300
331
  };
301
- z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
302
- var Z = {
332
+ Z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
333
+ var q = {
303
334
  src: "src",
304
335
  alt: "alt",
305
336
  href: "href",
306
337
  width: "width",
307
338
  height: "height"
308
- }, Ye = {
309
- BLOCK_IMAGE: Z
310
- }, 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", ne = "esd-block-html", ae = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", le = "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 = `.${ne}`, e.SPACER = `.${ae}`, e.CONTAINER = `.${se}`, e.STRIPE = `.${ie}`, e.FORM = `.${le}`, e))(I || {}), Ee = /* @__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))(Ee || {}), 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 || {}), a = {
339
+ }, qe = {
340
+ BLOCK_IMAGE: q
341
+ }, P = "esd-block-button", p = "esd-block-text", U = "esd-block-image", j = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", se = "esd-block-html", ae = "esd-block-spacer", ie = "esd-container-frame", oe = "esd-stripe", le = "esd-amp-form", c = ((e) => (e.BUTTON = `.${P}`, e.TEXT = `.${p}`, e.IMAGE = `.${U}`, e.STRUCTURE = `.${j}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${se}`, e.SPACER = `.${ae}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${oe}`, e.FORM = `.${le}`, e))(c || {}), Ee = /* @__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))(Ee || {}), 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.FONT_WEIGHT = "textBlockFontWeight", 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.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 || {}), de = /* @__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))(de || {}), s = {
311
342
  BLOCK_BUTTON: K,
312
343
  BLOCK_TEXT: F,
313
344
  BLOCK_IMAGE: H,
314
345
  GENERAL: w
315
- }, de = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e))(de || {}), ue = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ue || {}), Ie = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Ie || {}), r = {
346
+ }, ue = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e.themeMode = "themeMode", e))(ue || {}), ce = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Te || {}), n = {
316
347
  name: "name",
317
348
  disabled: "disabled"
318
- }, ce = {
319
- ...r,
349
+ }, Ie = {
350
+ ...n,
320
351
  caption: "caption",
321
352
  icon: "icon"
322
- }, Te = {
323
- ...r,
324
- caption: "caption"
325
353
  }, be = {
326
- ...r,
354
+ ...n,
355
+ caption: "caption"
356
+ }, he = {
357
+ ...n,
327
358
  minValue: "min-value",
328
359
  maxValue: "max-value",
329
360
  step: "step"
330
- }, Oe = {
331
- ...r,
361
+ }, me = {
362
+ ...n,
332
363
  placeholder: "placeholder",
333
364
  minDate: "min-date"
334
- }, he = {
335
- ...r,
365
+ }, ge = {
366
+ ...n,
336
367
  text: "text",
337
368
  hint: "hint"
338
- }, ge = {
339
- ...r,
369
+ }, Oe = {
370
+ ...n,
340
371
  type: "type"
341
- }, me = {
342
- ...r,
372
+ }, Re = {
373
+ ...n,
343
374
  buttons: "buttons"
344
375
  }, k = {
345
- ...r,
376
+ ...n,
346
377
  searchable: "searchable",
347
378
  multiSelect: "multi-select",
348
379
  placeholder: "placeholder",
349
380
  items: "items"
350
- }, Re = {
381
+ }, Le = {
351
382
  ...k,
352
383
  addCustomFontOption: "add-custom-font-option"
353
- }, Le = {
354
- ...r,
384
+ }, _e = {
385
+ ...n,
355
386
  text: "text",
356
387
  value: "value"
357
- }, _e = {
358
- ...r,
388
+ }, Ce = {
389
+ ...n,
359
390
  text: "text",
360
391
  hint: "hint",
361
392
  icon: "icon",
362
393
  value: "value"
363
- }, Ce = {
364
- ...r,
365
- buttons: "buttons"
366
394
  }, Ae = {
367
- ...r,
395
+ ...n,
396
+ buttons: "buttons"
397
+ }, Ne = {
398
+ ...n,
368
399
  text: "text",
369
400
  hint: "hint",
370
401
  icon: "icon",
371
402
  value: "value"
372
- }, Ne = {
373
- ...r,
374
- placeholder: "placeholder"
375
403
  }, De = {
376
- ...r,
377
- resizable: "resizable",
404
+ ...n,
378
405
  placeholder: "placeholder"
379
406
  }, Se = {
380
- ...r,
407
+ ...n,
408
+ resizable: "resizable",
409
+ placeholder: "placeholder"
410
+ }, Me = {
411
+ ...n,
381
412
  img: "img",
382
413
  src: "src",
383
414
  title: "title",
@@ -388,49 +419,60 @@ var Z = {
388
419
  visibility: "visibility",
389
420
  transform: "transform"
390
421
  }, Be = {
391
- ...r,
422
+ ...n,
392
423
  controlId: "control-id"
393
- }, Me = {
394
- ...r,
395
- expanded: "expanded"
396
424
  }, xe = {
397
- ...r,
425
+ ...n,
426
+ expanded: "expanded"
427
+ }, ve = {
428
+ ...n,
398
429
  icon: "icon",
399
430
  position: "position"
400
- }, ve = {
401
- ...r
402
431
  }, ye = {
403
- ...r,
432
+ ...n
433
+ }, Pe = {
434
+ ...n,
404
435
  icon: "icon"
436
+ }, pe = {
437
+ ...n
405
438
  }, Ue = {
406
- ...r
407
- }, $e = {
408
- DEFAULT: r,
409
- BUTTON: ce,
410
- CHECKBOX: Te,
411
- CHECK_BUTTONS: Ce,
412
- COLOR: r,
413
- COUNTER: be,
414
- DATEPICKER: Oe,
415
- LABEL: he,
416
- MESSAGE: ge,
417
- RADIO_BUTTONS: me,
439
+ ...n,
440
+ blockId: "block-id"
441
+ }, we = {
442
+ ...n
443
+ }, Ke = {
444
+ ...n,
445
+ placeholder: "placeholder"
446
+ }, je = {
447
+ DEFAULT: n,
448
+ BUTTON: Ie,
449
+ CHECKBOX: be,
450
+ CHECK_BUTTONS: Ae,
451
+ COLOR: n,
452
+ COUNTER: he,
453
+ DATEPICKER: me,
454
+ LABEL: ge,
455
+ MESSAGE: Oe,
456
+ RADIO_BUTTONS: Re,
418
457
  SELECTPICKER: k,
419
- FONT_FAMILY_SELECT: Re,
420
- SWITCHER: r,
421
- TEXT: Ne,
422
- TEXTAREA: De,
423
- ICON: Se,
424
- CHECK_ITEM: _e,
425
- SELECT_ITEM: Le,
426
- RADIO_ITEM: Ae,
458
+ FONT_FAMILY_SELECT: Le,
459
+ SWITCHER: n,
460
+ TEXT: De,
461
+ TEXTAREA: Se,
462
+ ICON: Me,
463
+ CHECK_ITEM: Ce,
464
+ SELECT_ITEM: _e,
465
+ RADIO_ITEM: Ne,
427
466
  NESTED_CONTROL: Be,
428
- EXPANDABLE: Me,
429
- ORDERABLE: xe,
430
- ORDERABLE_ITEM: ve,
431
- ORDERABLE_ICON: ye,
432
- REPEATABLE: Ue
433
- }, Pe = /* @__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))(Pe || {}), M = class {
467
+ EXPANDABLE: xe,
468
+ ORDERABLE: ve,
469
+ ORDERABLE_ITEM: ye,
470
+ ORDERABLE_ICON: Pe,
471
+ REPEATABLE: pe,
472
+ DRAGGABLE_BLOCK: Ue,
473
+ AMP_FORM_SERVICE_PICKER: we,
474
+ MULTIPLE_SELECT: Ke
475
+ }, Fe = /* @__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.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e.AMP_FORM_SERVICE_PICKER = "UE-AMP-FORM-SERVICE-PICKER", e.MULTIPLE_SELECT = "UE-MULTIPLE_SELECT", e.SCROLLABLE = "UE-SCROLLABLE-CONTAINER", e))(Fe || {}), v = class {
434
476
  /**
435
477
  * @description returns map of nodes parent control operates on
436
478
  */
@@ -461,68 +503,68 @@ var Z = {
461
503
  isVisible(e) {
462
504
  return !0;
463
505
  }
464
- }, l = class extends M {
506
+ }, o = class extends v {
465
507
  getTargetNodes(e) {
466
- const t = e.querySelectorAll(I.BUTTON), n = e.asElement().hasClass(y) ? [e] : [];
467
- return t.length ? t : n;
508
+ const t = e.querySelectorAll(c.BUTTON), r = e.asElement().hasClass(P) ? [e] : [];
509
+ return t.length ? t : r;
468
510
  }
469
- }, We = class extends l {
511
+ }, Je = class extends o {
470
512
  getParentControlId() {
471
- return a.BLOCK_BUTTON.BORDER_RADIUS;
513
+ return s.BLOCK_BUTTON.BORDER_RADIUS;
472
514
  }
473
515
  getLabels() {
474
516
  }
475
- }, ze = class extends l {
517
+ }, et = class extends o {
476
518
  getParentControlId() {
477
- return a.BLOCK_BUTTON.ALIGNMENT;
519
+ return s.BLOCK_BUTTON.ALIGNMENT;
478
520
  }
479
- }, Ze = class extends l {
521
+ }, tt = class extends o {
480
522
  getParentControlId() {
481
- return a.GENERAL.BACKGROUND_COLOR;
523
+ return s.GENERAL.BACKGROUND_COLOR;
482
524
  }
483
- }, je = class extends l {
525
+ }, rt = class extends o {
484
526
  getParentControlId() {
485
- return a.BLOCK_BUTTON.BORDER;
527
+ return s.BLOCK_BUTTON.BORDER;
486
528
  }
487
529
  getLabels() {
488
530
  }
489
- }, qe = class extends l {
531
+ }, nt = class extends o {
490
532
  getParentControlId() {
491
- return a.BLOCK_BUTTON.COLOR;
533
+ return s.BLOCK_BUTTON.COLOR;
492
534
  }
493
- }, Je = class extends l {
535
+ }, st = class extends o {
494
536
  getParentControlId() {
495
- return a.BLOCK_BUTTON.ADJUST_TO_WIDTH;
537
+ return s.BLOCK_BUTTON.ADJUST_TO_WIDTH;
496
538
  }
497
- }, et = class extends l {
539
+ }, at = class extends o {
498
540
  getParentControlId() {
499
- return a.BLOCK_BUTTON.FONT_FAMILY;
541
+ return s.BLOCK_BUTTON.FONT_FAMILY;
500
542
  }
501
- }, tt = class extends l {
543
+ }, it = class extends o {
502
544
  getParentControlId() {
503
- return a.BLOCK_BUTTON.EXTERNAL_INDENTS;
545
+ return s.BLOCK_BUTTON.EXTERNAL_INDENTS;
504
546
  }
505
- }, rt = class extends l {
547
+ }, ot = class extends o {
506
548
  getParentControlId() {
507
- return a.BLOCK_BUTTON.INTERNAL_INDENTS;
549
+ return s.BLOCK_BUTTON.INTERNAL_INDENTS;
508
550
  }
509
- }, nt = class extends l {
551
+ }, lt = class extends o {
510
552
  getParentControlId() {
511
- return a.BLOCK_BUTTON.TEXT;
553
+ return s.BLOCK_BUTTON.TEXT;
512
554
  }
513
- }, at = class extends l {
555
+ }, Et = class extends o {
514
556
  getParentControlId() {
515
- return a.BLOCK_BUTTON.FONT_SIZE;
557
+ return s.BLOCK_BUTTON.FONT_SIZE;
516
558
  }
517
- }, st = class extends l {
559
+ }, dt = class extends o {
518
560
  getParentControlId() {
519
- return a.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
561
+ return s.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
520
562
  }
521
563
  getLabels() {
522
564
  }
523
- }, X = class O extends s {
565
+ }, X = class h extends i {
524
566
  constructor() {
525
- super(O.REQUIRED_METHODS, O);
567
+ super(h.REQUIRED_METHODS, h);
526
568
  }
527
569
  /**
528
570
  * @description Allows to determine if control should be visible or hidden in control panel.
@@ -576,9 +618,9 @@ var Z = {
576
618
  }
577
619
  };
578
620
  X.REQUIRED_METHODS = ["getId", "getTemplate"];
579
- var it = X, we = class h extends s {
621
+ var ut = X, He = class m extends i {
580
622
  constructor() {
581
- super(h.REQUIRED_METHODS, h);
623
+ super(m.REQUIRED_METHODS, m);
582
624
  }
583
625
  /**
584
626
  * Gets the unique identifier for this tab.
@@ -645,32 +687,97 @@ var it = X, we = class h extends s {
645
687
  onDestroy() {
646
688
  }
647
689
  };
648
- we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
649
- var p = class extends M {
690
+ He.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
691
+ var G = class extends v {
650
692
  getTargetNodes(e) {
651
- const t = e.querySelectorAll(I.IMAGE), n = e.asElement().hasClass(P) ? [e] : [];
652
- return t.length ? t : n;
693
+ const t = e.querySelectorAll(c.IMAGE), r = e.asElement().hasClass(U) ? [e] : [];
694
+ return t.length ? t : r;
653
695
  }
654
- }, lt = class extends p {
696
+ }, ct = class extends G {
655
697
  getParentControlId() {
656
- return a.BLOCK_IMAGE.EXTERNAL_INDENTS;
698
+ return s.BLOCK_IMAGE.EXTERNAL_INDENTS;
657
699
  }
658
- }, Et = class extends p {
700
+ }, Tt = class extends G {
659
701
  getParentControlId() {
660
- return a.BLOCK_IMAGE.SIZE;
702
+ return s.BLOCK_IMAGE.SIZE;
661
703
  }
662
- }, G = class g extends s {
704
+ }, ke = class g extends i {
663
705
  constructor() {
664
706
  super(g.REQUIRED_METHODS, g);
665
707
  }
708
+ /**
709
+ * Gets the unique identifier for this tab.
710
+ * This ID is used for registration.
711
+ * @returns A unique string ID.
712
+ */
713
+ getId() {
714
+ throw new Error("Method getId() must be implemented by the subclass");
715
+ }
716
+ /**
717
+ * Gets the icon key representing this tab in the header.
718
+ * @returns A string representing the icon key from the IconsRegistry
719
+ */
720
+ getIcon() {
721
+ throw new Error("Method getIcon() must be implemented by the subclass");
722
+ }
723
+ /**
724
+ * Retrieves the index of the tab associated with the panel.
725
+ * The index represents the position/order of the tab in the UI.
726
+ *
727
+ * @returns {number} The index of the tab.
728
+ */
729
+ getTabIndex() {
730
+ throw new Error("Method getTabIndex() must be implemented by the subclass");
731
+ }
732
+ /**
733
+ * Gets the display name of the tab shown to the user in the header hint.
734
+ * Use `this.api.translate()` for localization.
735
+ * @returns The localized tab name string.
736
+ */
737
+ getName() {
738
+ throw new Error("Method getName() must be implemented by the subclass");
739
+ }
740
+ /**
741
+ * Determines if the tab should be available for use in the editor.
742
+ * Override to provide custom logic based on the editor state or configuration.
743
+ * @returns True if the tab is enabled, false otherwise. Defaults to true.
744
+ */
745
+ isEnabled() {
746
+ return !0;
747
+ }
748
+ /**
749
+ * Gets the HTML template string that defines the initial structure of this tab.
750
+ * @returns An HTML string.
751
+ */
752
+ getTemplate() {
753
+ throw new Error("Method getTemplate() must be implemented by the subclass");
754
+ }
755
+ /**
756
+ * Optional hook called when the modules panel tab is initially rendered.
757
+ * Use this for setup tasks like attaching event listeners to the panel's template elements.
758
+ */
759
+ onRender() {
760
+ }
761
+ /**
762
+ * Lifecycle hook called when any part of the document template has changed.
763
+ * This can be frequent; use cautiously for performance-sensitive operations.
764
+ */
765
+ onDocumentChanged() {
766
+ }
767
+ };
768
+ ke.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
769
+ var V = class O extends i {
770
+ constructor() {
771
+ super(O.REQUIRED_METHODS, O);
772
+ }
666
773
  registerBlockControls(t) {
667
774
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
668
775
  }
669
776
  };
670
- G.REQUIRED_METHODS = ["registerBlockControls"];
671
- var ot = G, dt = class {
672
- constructor(e, t) {
673
- this.tabId = e, this.controlsIds = t;
777
+ V.REQUIRED_METHODS = ["registerBlockControls"];
778
+ var It = V, bt = class R {
779
+ constructor(t, r) {
780
+ this.tabId = t, this.controls = r.map(R.normalizeControl);
674
781
  }
675
782
  getTabId() {
676
783
  return this.tabId;
@@ -679,54 +786,68 @@ var ot = G, dt = class {
679
786
  return this.label;
680
787
  }
681
788
  getControlsIds() {
682
- return this.controlsIds;
789
+ return this.controls.map((t) => t.id);
683
790
  }
684
- withLabel(e) {
685
- return this.label = e, this;
791
+ getControls() {
792
+ return this.controls;
686
793
  }
687
- addControl(e, t) {
688
- return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
794
+ withLabel(t) {
795
+ return this.label = t, this;
689
796
  }
690
- deleteControl(e) {
691
- const t = this.controlsIds.indexOf(e);
692
- t !== -1 && this.controlsIds.splice(t, 1);
797
+ addControl(t, r) {
798
+ const a = R.normalizeControl(t);
799
+ return r < 0 ? this.controls.unshift(a) : r > this.controls.length ? this.controls.push(a) : this.controls.splice(r, 0, a), this;
800
+ }
801
+ deleteControl(t) {
802
+ const r = this.controls.findIndex((a) => a.id === t);
803
+ r !== -1 && this.controls.splice(r, 1);
804
+ }
805
+ static normalizeControl(t) {
806
+ if (typeof t == "string")
807
+ return { id: t };
808
+ if (!t.id)
809
+ throw new Error("SettingsPanelTabControlConfig.id is required");
810
+ return {
811
+ ...t,
812
+ id: t.id
813
+ };
693
814
  }
694
- }, E = class extends M {
815
+ }, l = class extends v {
695
816
  getTargetNodes(e) {
696
- const t = e.querySelectorAll(I.TEXT), n = e.asElement().hasClass(U) ? [e] : [];
697
- return t.length ? t : n;
817
+ const t = e.querySelectorAll(c.TEXT), r = e.asElement().hasClass(p) ? [e] : [];
818
+ return t.length ? t : r;
698
819
  }
699
- }, ut = class extends E {
820
+ }, ht = class extends l {
700
821
  getParentControlId() {
701
- return a.GENERAL.TEXT_ALIGN;
822
+ return s.GENERAL.TEXT_ALIGN;
702
823
  }
703
- }, It = class extends E {
824
+ }, mt = class extends l {
704
825
  getParentControlId() {
705
- return a.GENERAL.TEXT_COLOR;
826
+ return s.GENERAL.TEXT_COLOR;
706
827
  }
707
- }, ct = class extends E {
828
+ }, gt = class extends l {
708
829
  getParentControlId() {
709
- return a.BLOCK_TEXT.FONT_FAMILY;
830
+ return s.BLOCK_TEXT.FONT_FAMILY;
710
831
  }
711
- }, Tt = class extends E {
832
+ }, Ot = class extends l {
712
833
  getParentControlId() {
713
- return a.GENERAL.TEXT_LINE_SPACING;
834
+ return s.GENERAL.TEXT_LINE_SPACING;
714
835
  }
715
- }, bt = class extends E {
836
+ }, Rt = class extends l {
716
837
  getParentControlId() {
717
- return a.BLOCK_TEXT.INTERNAL_INDENTS;
838
+ return s.BLOCK_TEXT.INTERNAL_INDENTS;
718
839
  }
719
- }, Ot = class extends E {
840
+ }, Lt = class extends l {
720
841
  getParentControlId() {
721
- return a.GENERAL.TEXT_SIZE;
842
+ return s.GENERAL.TEXT_SIZE;
722
843
  }
723
- }, ht = class extends E {
844
+ }, _t = class extends l {
724
845
  getParentControlId() {
725
- return a.GENERAL.TEXT_STYLE;
846
+ return s.GENERAL.TEXT_STYLE;
726
847
  }
727
- }, Ke = class {
848
+ }, Xe = class {
728
849
  constructor(e) {
729
- 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);
850
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], this.i18n = e?.i18n, this.styles = e?.styles, this.previewStyles = e?.previewStyles, this.uiElements = e?.uiElements ?? [], this.uiElementTagRegistry = e?.uiElementTagRegistry, this.controls = e?.controls ?? [], this.settingsPanelRegistry = e?.settingsPanelRegistry, this.contextActions = e?.contextActions ?? [], this.blocks = e?.blocks ?? [], this.generalPanelTabs = e?.generalPanelTabs ?? [], this.modulesPanelTabs = e?.modulesPanelTabs ?? [], this.externalSmartElementsLibrary = e?.externalSmartElementsLibrary, this.externalImageLibrary = e?.externalImageLibrary, this.externalImageLibraryTab = e?.externalImageLibraryTab, this.externalAiAssistant = e?.externalAiAssistant, this.externalDisplayConditionsLibrary = e?.externalDisplayConditionsLibrary, this.externalVideoLibrary = e?.externalVideoLibrary, this.blocksPanel = e?.blocksPanel, this.iconsRegistry = e?.iconsRegistry, this.id = Math.random().toString(36).substring(2);
730
851
  }
731
852
  getI18n() {
732
853
  return this.i18n;
@@ -785,9 +906,12 @@ var ot = G, dt = class {
785
906
  getGeneralPanelTabs() {
786
907
  return this.generalPanelTabs;
787
908
  }
788
- }, gt = class {
909
+ getModulesPanelTabs() {
910
+ return this.modulesPanelTabs;
911
+ }
912
+ }, Ct = class {
789
913
  constructor() {
790
- this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
914
+ this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
791
915
  }
792
916
  withLocalization(e) {
793
917
  return this.i18n = e, this;
@@ -852,8 +976,11 @@ var ot = G, dt = class {
852
976
  addGeneralPanelTab(e) {
853
977
  return this.generalPanelTabs.push(e), this;
854
978
  }
979
+ addModulesPanelTab(e) {
980
+ return this.modulesPanelTabs.push(e), this;
981
+ }
855
982
  build() {
856
- return new Ke({
983
+ return new Xe({
857
984
  i18n: this.i18n,
858
985
  styles: this.styles.map((e) => e.trim()).join(`
859
986
  `),
@@ -872,21 +999,22 @@ var ot = G, dt = class {
872
999
  blocksPanel: this.blocksPanel,
873
1000
  iconsRegistry: this.iconsRegistry,
874
1001
  externalImageLibraryTab: this.externalImageLibraryTab,
875
- generalPanelTabs: this.generalPanelTabs
1002
+ generalPanelTabs: this.generalPanelTabs,
1003
+ modulesPanelTabs: this.modulesPanelTabs
876
1004
  });
877
1005
  }
878
- }, Fe = class m extends s {
1006
+ }, Ge = class L extends i {
879
1007
  constructor() {
880
- super(m.REQUIRED_METHODS, m);
1008
+ super(L.REQUIRED_METHODS, L);
881
1009
  }
882
1010
  openAiAssistant(t) {
883
1011
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
884
1012
  }
885
1013
  };
886
- Fe.REQUIRED_METHODS = ["openAiAssistant"];
887
- var He = class R extends s {
1014
+ Ge.REQUIRED_METHODS = ["openAiAssistant"];
1015
+ var Ve = class _ extends i {
888
1016
  constructor() {
889
- super(R.REQUIRED_METHODS, R);
1017
+ super(_.REQUIRED_METHODS, _);
890
1018
  }
891
1019
  /**
892
1020
  * Retrieves the name of the category.
@@ -903,7 +1031,7 @@ var He = class R extends s {
903
1031
  * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
904
1032
  * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
905
1033
  */
906
- openExternalDisplayConditionsDialog(t, n, i) {
1034
+ openExternalDisplayConditionsDialog(t, r, a) {
907
1035
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
908
1036
  }
909
1037
  /**
@@ -924,19 +1052,19 @@ var He = class R extends s {
924
1052
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
925
1053
  }
926
1054
  };
927
- He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
928
- var ke = class L extends s {
1055
+ Ve.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
1056
+ var fe = class C extends i {
929
1057
  constructor() {
930
- super(L.REQUIRED_METHODS, L);
1058
+ super(C.REQUIRED_METHODS, C);
931
1059
  }
932
- openImageLibrary(t, n, i) {
1060
+ openImageLibrary(t, r, a) {
933
1061
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
934
1062
  }
935
1063
  };
936
- ke.REQUIRED_METHODS = ["openImageLibrary"];
937
- var Xe = class _ extends s {
1064
+ fe.REQUIRED_METHODS = ["openImageLibrary"];
1065
+ var Qe = class A extends i {
938
1066
  constructor() {
939
- super(_.REQUIRED_METHODS, _);
1067
+ super(A.REQUIRED_METHODS, A);
940
1068
  }
941
1069
  /**
942
1070
  * @description Returns the translated name/label for the tab
@@ -951,39 +1079,39 @@ var Xe = class _ extends s {
951
1079
  * @param _onImageSelectCallback - Callback to invoke when an image is selected
952
1080
  * @param _selectedNode - (Optional) Selected node for which the gallery is being opened
953
1081
  */
954
- openImageLibraryTab(t, n, i) {
1082
+ openImageLibraryTab(t, r, a) {
955
1083
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
956
1084
  }
957
1085
  };
958
- Xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
959
- var pe = class C extends s {
1086
+ Qe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
1087
+ var Ye = class N extends i {
960
1088
  constructor() {
961
- super(C.REQUIRED_METHODS, C);
1089
+ super(N.REQUIRED_METHODS, N);
962
1090
  }
963
- openSmartElementsLibrary(t, n) {
1091
+ openSmartElementsLibrary(t, r) {
964
1092
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
965
1093
  }
966
1094
  };
967
- pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
968
- var Ge = class A extends s {
1095
+ Ye.REQUIRED_METHODS = ["openSmartElementsLibrary"];
1096
+ var $e = class D extends i {
969
1097
  constructor() {
970
- super(A.REQUIRED_METHODS, A);
1098
+ super(D.REQUIRED_METHODS, D);
971
1099
  }
972
- openExternalVideosLibraryDialog(t, n, i) {
1100
+ openExternalVideosLibraryDialog(t, r, a) {
973
1101
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
974
1102
  }
975
1103
  };
976
- Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
977
- var V = class N extends s {
1104
+ $e.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
1105
+ var f = class S extends i {
978
1106
  constructor() {
979
- super(N.REQUIRED_METHODS, N);
1107
+ super(S.REQUIRED_METHODS, S);
980
1108
  }
981
1109
  registerIconsSvg(t) {
982
1110
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
983
1111
  }
984
1112
  };
985
- V.REQUIRED_METHODS = ["registerIconsSvg"];
986
- var mt = V, Rt = class {
1113
+ f.REQUIRED_METHODS = ["registerIconsSvg"];
1114
+ var At = f, Nt = class {
987
1115
  constructor(e) {
988
1116
  this.key = e;
989
1117
  }
@@ -996,9 +1124,9 @@ var mt = V, Rt = class {
996
1124
  params: this.params
997
1125
  };
998
1126
  }
999
- }, Q = class D extends s {
1127
+ }, Q = class M extends i {
1000
1128
  constructor() {
1001
- super(D.REQUIRED_METHODS, D);
1129
+ super(M.REQUIRED_METHODS, M);
1002
1130
  }
1003
1131
  /**
1004
1132
  * Called when the UI element should render its content into the provided container.
@@ -1033,7 +1161,7 @@ var mt = V, Rt = class {
1033
1161
  * @param name - The name of the attribute that was updated.
1034
1162
  * @param value - The new value of the attribute.
1035
1163
  */
1036
- onAttributeUpdated(t, n) {
1164
+ onAttributeUpdated(t, r) {
1037
1165
  }
1038
1166
  /**
1039
1167
  * Gets the unique identifier for this UI element type.
@@ -1052,63 +1180,63 @@ var mt = V, Rt = class {
1052
1180
  }
1053
1181
  };
1054
1182
  Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
1055
- var Lt = Q, f = class S extends s {
1183
+ var Dt = Q, Y = class B extends i {
1056
1184
  constructor() {
1057
- super(S.REQUIRED_METHODS, S);
1185
+ super(B.REQUIRED_METHODS, B);
1058
1186
  }
1059
1187
  registerUiElements(t) {
1060
1188
  throw new Error("Method registerUiElements() must be implemented by the subclass");
1061
1189
  }
1062
1190
  };
1063
- f.REQUIRED_METHODS = ["registerUiElements"];
1064
- var _t = f;
1191
+ Y.REQUIRED_METHODS = ["registerUiElements"];
1192
+ var St = Y;
1065
1193
  export {
1066
- Qe as Block,
1067
- Ye as BlockAttr,
1068
- $ as BlockCompositionType,
1069
- I as BlockSelector,
1194
+ ze as Block,
1195
+ qe as BlockAttr,
1196
+ W as BlockCompositionType,
1197
+ c as BlockSelector,
1070
1198
  Ee as BlockType,
1071
- fe as BlocksPanel,
1072
- M as BuiltInControl,
1073
- a as BuiltInControlTypes,
1074
- ze as ButtonAlignBuiltInControl,
1075
- Ze as ButtonBackgroundColorBuiltInControl,
1076
- je as ButtonBorderBuiltInControl,
1077
- We as ButtonBorderRadiusBuiltInControl,
1078
- qe as ButtonColorBuiltInControl,
1199
+ Ze as BlocksPanel,
1200
+ v as BuiltInControl,
1201
+ s as BuiltInControlTypes,
1202
+ et as ButtonAlignBuiltInControl,
1203
+ tt as ButtonBackgroundColorBuiltInControl,
1204
+ rt as ButtonBorderBuiltInControl,
1205
+ Je as ButtonBorderRadiusBuiltInControl,
1206
+ nt as ButtonColorBuiltInControl,
1079
1207
  K as ButtonControls,
1080
- Je as ButtonFitToContainerBuiltInControl,
1081
- et as ButtonFontFamilyBuiltInControl,
1082
- tt as ButtonMarginsBuiltInControl,
1083
- rt as ButtonPaddingsBuiltInControl,
1084
- nt as ButtonTextBuiltInControl,
1085
- at as ButtonTextSizeBuiltInControl,
1086
- st as ButtonTextStyleAndFontColorBuiltInControl,
1087
- oe as ContainerControls,
1088
- it as Control,
1089
- de as EditorStatePropertyType,
1090
- Ke as Extension,
1091
- gt as ExtensionBuilder,
1208
+ st as ButtonFitToContainerBuiltInControl,
1209
+ at as ButtonFontFamilyBuiltInControl,
1210
+ it as ButtonMarginsBuiltInControl,
1211
+ ot as ButtonPaddingsBuiltInControl,
1212
+ lt as ButtonTextBuiltInControl,
1213
+ Et as ButtonTextSizeBuiltInControl,
1214
+ dt as ButtonTextStyleAndFontColorBuiltInControl,
1215
+ de as ContainerControls,
1216
+ ut as Control,
1217
+ ue as EditorStatePropertyType,
1218
+ Xe as Extension,
1219
+ Ct as ExtensionBuilder,
1092
1220
  w as GeneralControls,
1093
- mt as IconsRegistry,
1221
+ At as IconsRegistry,
1094
1222
  H as ImageControls,
1095
- lt as ImageMarginsBuiltInControl,
1096
- Et as ImageSizeBuiltInControl,
1097
- Rt as ModificationDescription,
1098
- ue as PreviewDeviceMode,
1099
- ot as SettingsPanelRegistry,
1100
- dt as SettingsPanelTab,
1101
- Ie as SettingsTab,
1102
- ut as TextAlignBuiltInControl,
1103
- It as TextColorBuiltInControl,
1223
+ ct as ImageMarginsBuiltInControl,
1224
+ Tt as ImageSizeBuiltInControl,
1225
+ Nt as ModificationDescription,
1226
+ ce as PreviewDeviceMode,
1227
+ It as SettingsPanelRegistry,
1228
+ bt as SettingsPanelTab,
1229
+ Te as SettingsTab,
1230
+ ht as TextAlignBuiltInControl,
1231
+ mt as TextColorBuiltInControl,
1104
1232
  F as TextControls,
1105
- ct as TextFontFamilyBuiltInControl,
1106
- Tt as TextLineSpacingBuiltInControl,
1107
- bt as TextPaddingsBuiltInControl,
1108
- Ot as TextSizeBuiltInControl,
1109
- ht as TextStyleBuiltInControl,
1110
- $e as UEAttr,
1111
- Lt as UIElement,
1112
- _t as UIElementTagRegistry,
1113
- Pe as UIElementType
1233
+ gt as TextFontFamilyBuiltInControl,
1234
+ Ot as TextLineSpacingBuiltInControl,
1235
+ Rt as TextPaddingsBuiltInControl,
1236
+ Lt as TextSizeBuiltInControl,
1237
+ _t as TextStyleBuiltInControl,
1238
+ je as UEAttr,
1239
+ Dt as UIElement,
1240
+ St as UIElementTagRegistry,
1241
+ Fe as UIElementType
1114
1242
  };