@useinsider/guido 2.2.0-beta.8abc7b6 → 2.2.0-beta.953ff70

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 (133) hide show
  1. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +14 -15
  2. package/dist/composables/useHtmlValidator.js +104 -114
  3. package/dist/composables/useRecommendation.js +21 -54
  4. package/dist/config/compiler/recommendationCompilerRules.js +39 -45
  5. package/dist/config/migrator/itemsBlockMigrator.js +97 -101
  6. package/dist/config/migrator/recommendationMigrator.js +2 -2
  7. package/dist/enums/extensions/recommendationBlock.js +1 -1
  8. package/dist/enums/recommendation.js +15 -16
  9. package/dist/extensions/Blocks/Recommendation/block.js +9 -133
  10. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +187 -0
  11. package/dist/extensions/Blocks/Recommendation/constants.js +13 -0
  12. package/dist/extensions/Blocks/Recommendation/control.js +336 -0
  13. package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +68 -0
  14. package/dist/extensions/Blocks/Recommendation/controls/index.js +245 -0
  15. package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +74 -0
  16. package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscount/textAfter.js → omnibusDiscountTextAfterControl.js} +14 -16
  17. package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscount/textBefore.js → omnibusDiscountTextBeforeControl.js} +14 -16
  18. package/dist/extensions/Blocks/Recommendation/controls/{omnibusPrice/textAfter.js → omnibusPriceTextAfterControl.js} +14 -16
  19. package/dist/extensions/Blocks/Recommendation/controls/{omnibusPrice/textBefore.js → omnibusPriceTextBeforeControl.js} +12 -14
  20. package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +188 -0
  21. package/dist/extensions/Blocks/Recommendation/extension.js +17 -40
  22. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +3 -19
  23. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +4 -13
  24. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +10 -21
  25. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +207 -254
  26. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +181 -0
  27. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +189 -0
  28. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +209 -0
  29. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
  30. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +15 -26
  31. package/dist/extensions/Blocks/controlFactories.js +93 -125
  32. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +186 -242
  33. package/dist/services/recommendationApi.js +8 -11
  34. package/dist/services/templateLibraryApi.js +13 -16
  35. package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
  36. package/dist/src/composables/useRecommendation.d.ts +0 -1
  37. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -67
  38. package/dist/src/extensions/Blocks/Recommendation/{controls/cardComposition/index.d.ts → cardCompositionControl.d.ts} +3 -23
  39. package/dist/src/extensions/Blocks/Recommendation/{constants/controlIds.d.ts → constants.d.ts} +24 -0
  40. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +38 -0
  41. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +589 -21
  42. package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +16 -0
  43. package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +0 -9
  44. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +468 -138
  45. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +16 -0
  46. package/dist/src/extensions/Blocks/Recommendation/templates/{grid/migration.d.ts → migrationTemplate.d.ts} +4 -11
  47. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +52 -0
  48. package/dist/static/styles/customEditorStyle.css.js +11 -35
  49. package/dist/utils/pairProductVariables.js +56 -57
  50. package/dist/utils/templatePreparation.js +14 -15
  51. package/package.json +1 -1
  52. package/dist/config/compiler/utils/recommendationCompilerUtils.js +0 -121
  53. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +0 -4
  54. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +0 -4
  55. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +0 -66
  56. package/dist/extensions/Blocks/Recommendation/constants/layout.js +0 -22
  57. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +0 -21
  58. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +0 -64
  59. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +0 -80
  60. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +0 -232
  61. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +0 -19
  62. package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +0 -92
  63. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +0 -102
  64. package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +0 -209
  65. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +0 -52
  66. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +0 -250
  67. package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +0 -70
  68. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +0 -160
  69. package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +0 -67
  70. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +0 -307
  71. package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +0 -21
  72. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +0 -46
  73. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +0 -108
  74. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +0 -44
  75. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +0 -48
  76. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +0 -48
  77. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +0 -44
  78. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +0 -222
  79. package/dist/extensions/Blocks/Recommendation/services/configService.js +0 -240
  80. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +0 -228
  81. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +0 -251
  82. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +0 -66
  83. package/dist/extensions/Blocks/Recommendation/templates/index.js +0 -12
  84. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +0 -169
  85. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +0 -73
  86. package/dist/extensions/Blocks/Recommendation/templates/utils.js +0 -134
  87. package/dist/extensions/Blocks/Recommendation/types/nodeConfig.js +0 -6
  88. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +0 -29
  89. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +0 -46
  90. package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +0 -17
  91. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +0 -13
  92. package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +0 -49
  93. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +0 -13
  94. package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +0 -41
  95. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +0 -35
  96. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +0 -143
  97. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +0 -31
  98. package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +0 -35
  99. package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +0 -37
  100. package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +0 -29
  101. package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +0 -52
  102. package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +0 -22
  103. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +0 -79
  104. package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +0 -24
  105. package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +0 -60
  106. package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +0 -23
  107. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +0 -221
  108. package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +0 -29
  109. package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +0 -97
  110. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +0 -34
  111. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +0 -95
  112. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +0 -100
  113. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +0 -15
  114. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +0 -15
  115. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +0 -100
  116. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +0 -15
  117. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +0 -15
  118. package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +0 -95
  119. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +0 -83
  120. package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +0 -151
  121. package/dist/src/extensions/Blocks/Recommendation/services/index.d.ts +0 -6
  122. package/dist/src/extensions/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +0 -20
  123. package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +0 -33
  124. package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +0 -41
  125. package/dist/src/extensions/Blocks/Recommendation/templates/list/elementRenderer.d.ts +0 -8
  126. package/dist/src/extensions/Blocks/Recommendation/templates/list/migration.d.ts +0 -25
  127. package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +0 -18
  128. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +0 -66
  129. package/dist/src/extensions/Blocks/Recommendation/types/index.d.ts +0 -7
  130. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +0 -166
  131. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +0 -33
  132. package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +0 -113
  133. package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +0 -77
@@ -4,14 +4,14 @@ var B = class d {
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 s = d.validationErrors.get(r);
11
+ if (s && s.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
+ ${s.map((o) => ` - ${o}`).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, n) {
23
+ validateImplementation(t, r) {
24
24
  var x;
25
- const i = [], o = n.name, Y = Object.getPrototypeOf(this);
25
+ const s = [], o = r.name, Y = Object.getPrototypeOf(this);
26
26
  t.forEach((u) => {
27
27
  if (typeof this[u] != "function") {
28
- i.push(`Method ${u}() is not defined`);
28
+ s.push(`Method ${u}() is not defined`);
29
29
  return;
30
30
  }
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`);
31
+ Y[u] === r.prototype[u] && s.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
32
+ }), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : typeof process < "u" && ((x = process.env) == null ? void 0 : x.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
33
33
  }
34
34
  };
35
35
  B.validatedClasses = /* @__PURE__ */ new Set();
36
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 {
37
+ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class T extends a {
38
38
  constructor() {
39
- super(c.REQUIRED_METHODS, c);
39
+ super(T.REQUIRED_METHODS, T);
40
40
  }
41
41
  /**
42
42
  * Determines if the block should be available for use in the editor.
@@ -196,9 +196,9 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
196
196
  }
197
197
  };
198
198
  v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
- var Qe = v, W = class T extends s {
199
+ var Pe = v, W = class c extends a {
200
200
  constructor() {
201
- super(T.REQUIRED_METHODS, T);
201
+ super(c.REQUIRED_METHODS, c);
202
202
  }
203
203
  /**
204
204
  * @deprecated - use {@link getPreviewInnerHtml} instead
@@ -214,7 +214,7 @@ var Qe = v, W = class T extends s {
214
214
  }
215
215
  };
216
216
  W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
- var fe = class {
217
+ var we = class {
218
218
  /**
219
219
  * Generates HTML representation for a block item
220
220
  * @param block - The block item to generate HTML for
@@ -281,9 +281,9 @@ var fe = class {
281
281
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
282
282
  getModulesTabIconName(e) {
283
283
  }
284
- }, z = class b extends s {
284
+ }, z = class O extends a {
285
285
  constructor() {
286
- super(b.REQUIRED_METHODS, b);
286
+ super(O.REQUIRED_METHODS, O);
287
287
  }
288
288
  getId() {
289
289
  throw new Error("Method getId() must be implemented by the subclass");
@@ -305,132 +305,78 @@ var Z = {
305
305
  href: "href",
306
306
  width: "width",
307
307
  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 = {
308
+ }, j = {
309
+ href: "href"
310
+ }, Ke = {
311
+ BLOCK_IMAGE: Z,
312
+ BLOCK_BUTTON: j
313
+ }, y = "esd-block-button", U = "esd-block-text", P = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", ae = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", le = "esd-stripe", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${y}`, e.TEXT = `.${U}`, e.IMAGE = `.${P}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${ae}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${le}`, e.FORM = `.${Ee}`, e))(I || {}), oe = /* @__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))(oe || {}), 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 || {}), 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 || {}), n = {
311
314
  BLOCK_BUTTON: K,
312
315
  BLOCK_TEXT: F,
313
316
  BLOCK_IMAGE: H,
314
317
  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 = {
318
+ }, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}), l = {
316
319
  name: "name",
317
320
  disabled: "disabled"
318
- }, ce = {
319
- ...r,
321
+ }, Ie = {
322
+ ...l,
320
323
  caption: "caption",
321
324
  icon: "icon"
322
325
  }, Te = {
323
- ...r,
326
+ ...l,
324
327
  caption: "caption"
325
- }, be = {
326
- ...r,
328
+ }, ce = {
329
+ ...l,
327
330
  minValue: "min-value",
328
331
  maxValue: "max-value",
329
332
  step: "step"
330
333
  }, Oe = {
331
- ...r,
332
- placeholder: "placeholder",
333
- minDate: "min-date"
334
- }, he = {
335
- ...r,
336
- text: "text",
337
- hint: "hint"
334
+ ...l,
335
+ text: "text"
338
336
  }, ge = {
339
- ...r,
340
- type: "type"
341
- }, me = {
342
- ...r,
343
- buttons: "buttons"
337
+ ...l
344
338
  }, k = {
345
- ...r,
339
+ ...l,
346
340
  searchable: "searchable",
347
341
  multiSelect: "multi-select",
348
342
  placeholder: "placeholder",
349
343
  items: "items"
350
- }, Re = {
351
- ...k,
352
- addCustomFontOption: "add-custom-font-option"
353
- }, Le = {
354
- ...r,
355
- text: "text",
356
- value: "value"
357
- }, _e = {
358
- ...r,
344
+ }, he = {
345
+ ...k
346
+ }, be = {
359
347
  text: "text",
360
- hint: "hint",
361
- icon: "icon",
362
348
  value: "value"
363
- }, Ce = {
364
- ...r,
365
- buttons: "buttons"
366
- }, Ae = {
367
- ...r,
349
+ }, me = {
368
350
  text: "text",
369
- hint: "hint",
370
351
  icon: "icon",
371
352
  value: "value"
372
- }, Ne = {
373
- ...r,
374
- placeholder: "placeholder"
375
- }, De = {
376
- ...r,
377
- resizable: "resizable",
378
- placeholder: "placeholder"
379
- }, Se = {
380
- ...r,
381
- img: "img",
382
- src: "src",
383
- title: "title",
384
- imageClass: "image-class",
385
- hint: "hint",
386
- disabled: "disabled",
387
- isActive: "is-active",
388
- visibility: "visibility",
389
- transform: "transform"
390
- }, Be = {
391
- ...r,
353
+ }, Re = {
354
+ ...l
355
+ }, _e = {
392
356
  controlId: "control-id"
393
- }, Me = {
394
- ...r,
395
- expanded: "expanded"
396
- }, xe = {
397
- ...r,
357
+ }, Le = {
358
+ ...l,
398
359
  icon: "icon",
399
360
  position: "position"
400
- }, ve = {
401
- ...r
402
- }, ye = {
403
- ...r,
404
- icon: "icon"
405
- }, Ue = {
406
- ...r
407
- }, $e = {
408
- DEFAULT: r,
409
- BUTTON: ce,
361
+ }, Ce = {
362
+ ...l
363
+ }, Fe = {
364
+ BUTTON: Ie,
410
365
  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,
366
+ COLOR: l,
367
+ COUNTER: ce,
368
+ LABEL: Oe,
369
+ RADIO_BUTTONS: ge,
418
370
  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,
427
- 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 {
371
+ FONT_FAMILY_SELECT: he,
372
+ SWITCHER: l,
373
+ TEXT: Re,
374
+ SELECT_ITEM: be,
375
+ RADIO_ITEM: me,
376
+ NESTED_CONTROL: _e,
377
+ ORDERABLE: Le,
378
+ ORDERABLE_ITEM: Ce
379
+ }, Ae = /* @__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))(Ae || {}), M = class {
434
380
  /**
435
381
  * @description returns map of nodes parent control operates on
436
382
  */
@@ -461,68 +407,68 @@ var Z = {
461
407
  isVisible(e) {
462
408
  return !0;
463
409
  }
464
- }, l = class extends M {
410
+ }, i = class extends M {
465
411
  getTargetNodes(e) {
466
- const t = e.querySelectorAll(I.BUTTON), n = e.asElement().hasClass(y) ? [e] : [];
467
- return t.length ? t : n;
412
+ const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(y) ? [e] : [];
413
+ return t.length ? t : r;
468
414
  }
469
- }, We = class extends l {
415
+ }, He = class extends i {
470
416
  getParentControlId() {
471
- return a.BLOCK_BUTTON.BORDER_RADIUS;
417
+ return n.BLOCK_BUTTON.BORDER_RADIUS;
472
418
  }
473
419
  getLabels() {
474
420
  }
475
- }, ze = class extends l {
421
+ }, ke = class extends i {
476
422
  getParentControlId() {
477
- return a.BLOCK_BUTTON.ALIGNMENT;
423
+ return n.BLOCK_BUTTON.ALIGNMENT;
478
424
  }
479
- }, Ze = class extends l {
425
+ }, Xe = class extends i {
480
426
  getParentControlId() {
481
- return a.GENERAL.BACKGROUND_COLOR;
427
+ return n.GENERAL.BACKGROUND_COLOR;
482
428
  }
483
- }, je = class extends l {
429
+ }, Ve = class extends i {
484
430
  getParentControlId() {
485
- return a.BLOCK_BUTTON.BORDER;
431
+ return n.BLOCK_BUTTON.BORDER;
486
432
  }
487
433
  getLabels() {
488
434
  }
489
- }, qe = class extends l {
435
+ }, Ge = class extends i {
490
436
  getParentControlId() {
491
- return a.BLOCK_BUTTON.COLOR;
437
+ return n.BLOCK_BUTTON.COLOR;
492
438
  }
493
- }, Je = class extends l {
439
+ }, pe = class extends i {
494
440
  getParentControlId() {
495
- return a.BLOCK_BUTTON.ADJUST_TO_WIDTH;
441
+ return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
496
442
  }
497
- }, et = class extends l {
443
+ }, Qe = class extends i {
498
444
  getParentControlId() {
499
- return a.BLOCK_BUTTON.FONT_FAMILY;
445
+ return n.BLOCK_BUTTON.FONT_FAMILY;
500
446
  }
501
- }, tt = class extends l {
447
+ }, fe = class extends i {
502
448
  getParentControlId() {
503
- return a.BLOCK_BUTTON.EXTERNAL_INDENTS;
449
+ return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
504
450
  }
505
- }, rt = class extends l {
451
+ }, Ye = class extends i {
506
452
  getParentControlId() {
507
- return a.BLOCK_BUTTON.INTERNAL_INDENTS;
453
+ return n.BLOCK_BUTTON.INTERNAL_INDENTS;
508
454
  }
509
- }, nt = class extends l {
455
+ }, $e = class extends i {
510
456
  getParentControlId() {
511
- return a.BLOCK_BUTTON.TEXT;
457
+ return n.BLOCK_BUTTON.TEXT;
512
458
  }
513
- }, at = class extends l {
459
+ }, We = class extends i {
514
460
  getParentControlId() {
515
- return a.BLOCK_BUTTON.FONT_SIZE;
461
+ return n.BLOCK_BUTTON.FONT_SIZE;
516
462
  }
517
- }, st = class extends l {
463
+ }, ze = class extends i {
518
464
  getParentControlId() {
519
- return a.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
465
+ return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
520
466
  }
521
467
  getLabels() {
522
468
  }
523
- }, X = class O extends s {
469
+ }, X = class g extends a {
524
470
  constructor() {
525
- super(O.REQUIRED_METHODS, O);
471
+ super(g.REQUIRED_METHODS, g);
526
472
  }
527
473
  /**
528
474
  * @description Allows to determine if control should be visible or hidden in control panel.
@@ -576,7 +522,7 @@ var Z = {
576
522
  }
577
523
  };
578
524
  X.REQUIRED_METHODS = ["getId", "getTemplate"];
579
- var it = X, we = class h extends s {
525
+ var Ze = X, Ne = class h extends a {
580
526
  constructor() {
581
527
  super(h.REQUIRED_METHODS, h);
582
528
  }
@@ -645,30 +591,30 @@ var it = X, we = class h extends s {
645
591
  onDestroy() {
646
592
  }
647
593
  };
648
- we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
649
- var p = class extends M {
594
+ Ne.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
595
+ var V = class extends M {
650
596
  getTargetNodes(e) {
651
- const t = e.querySelectorAll(I.IMAGE), n = e.asElement().hasClass(P) ? [e] : [];
652
- return t.length ? t : n;
597
+ const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(P) ? [e] : [];
598
+ return t.length ? t : r;
653
599
  }
654
- }, lt = class extends p {
600
+ }, je = class extends V {
655
601
  getParentControlId() {
656
- return a.BLOCK_IMAGE.EXTERNAL_INDENTS;
602
+ return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
657
603
  }
658
- }, Et = class extends p {
604
+ }, qe = class extends V {
659
605
  getParentControlId() {
660
- return a.BLOCK_IMAGE.SIZE;
606
+ return n.BLOCK_IMAGE.SIZE;
661
607
  }
662
- }, G = class g extends s {
608
+ }, G = class b extends a {
663
609
  constructor() {
664
- super(g.REQUIRED_METHODS, g);
610
+ super(b.REQUIRED_METHODS, b);
665
611
  }
666
612
  registerBlockControls(t) {
667
613
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
668
614
  }
669
615
  };
670
616
  G.REQUIRED_METHODS = ["registerBlockControls"];
671
- var ot = G, dt = class {
617
+ var Je = G, et = class {
672
618
  constructor(e, t) {
673
619
  this.tabId = e, this.controlsIds = t;
674
620
  }
@@ -693,38 +639,38 @@ var ot = G, dt = class {
693
639
  }
694
640
  }, E = class extends M {
695
641
  getTargetNodes(e) {
696
- const t = e.querySelectorAll(I.TEXT), n = e.asElement().hasClass(U) ? [e] : [];
697
- return t.length ? t : n;
642
+ const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
643
+ return t.length ? t : r;
698
644
  }
699
- }, ut = class extends E {
645
+ }, tt = class extends E {
700
646
  getParentControlId() {
701
- return a.GENERAL.TEXT_ALIGN;
647
+ return n.GENERAL.TEXT_ALIGN;
702
648
  }
703
- }, It = class extends E {
649
+ }, rt = class extends E {
704
650
  getParentControlId() {
705
- return a.GENERAL.TEXT_COLOR;
651
+ return n.GENERAL.TEXT_COLOR;
706
652
  }
707
- }, ct = class extends E {
653
+ }, nt = class extends E {
708
654
  getParentControlId() {
709
- return a.BLOCK_TEXT.FONT_FAMILY;
655
+ return n.BLOCK_TEXT.FONT_FAMILY;
710
656
  }
711
- }, Tt = class extends E {
657
+ }, at = class extends E {
712
658
  getParentControlId() {
713
- return a.GENERAL.TEXT_LINE_SPACING;
659
+ return n.GENERAL.TEXT_LINE_SPACING;
714
660
  }
715
- }, bt = class extends E {
661
+ }, st = class extends E {
716
662
  getParentControlId() {
717
- return a.BLOCK_TEXT.INTERNAL_INDENTS;
663
+ return n.BLOCK_TEXT.INTERNAL_INDENTS;
718
664
  }
719
- }, Ot = class extends E {
665
+ }, it = class extends E {
720
666
  getParentControlId() {
721
- return a.GENERAL.TEXT_SIZE;
667
+ return n.GENERAL.TEXT_SIZE;
722
668
  }
723
- }, ht = class extends E {
669
+ }, lt = class extends E {
724
670
  getParentControlId() {
725
- return a.GENERAL.TEXT_STYLE;
671
+ return n.GENERAL.TEXT_STYLE;
726
672
  }
727
- }, Ke = class {
673
+ }, De = class {
728
674
  constructor(e) {
729
675
  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);
730
676
  }
@@ -785,7 +731,7 @@ var ot = G, dt = class {
785
731
  getGeneralPanelTabs() {
786
732
  return this.generalPanelTabs;
787
733
  }
788
- }, gt = class {
734
+ }, Et = class {
789
735
  constructor() {
790
736
  this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
791
737
  }
@@ -853,7 +799,7 @@ var ot = G, dt = class {
853
799
  return this.generalPanelTabs.push(e), this;
854
800
  }
855
801
  build() {
856
- return new Ke({
802
+ return new De({
857
803
  i18n: this.i18n,
858
804
  styles: this.styles.map((e) => e.trim()).join(`
859
805
  `),
@@ -875,7 +821,7 @@ var ot = G, dt = class {
875
821
  generalPanelTabs: this.generalPanelTabs
876
822
  });
877
823
  }
878
- }, Fe = class m extends s {
824
+ }, Se = class m extends a {
879
825
  constructor() {
880
826
  super(m.REQUIRED_METHODS, m);
881
827
  }
@@ -883,8 +829,8 @@ var ot = G, dt = class {
883
829
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
884
830
  }
885
831
  };
886
- Fe.REQUIRED_METHODS = ["openAiAssistant"];
887
- var He = class R extends s {
832
+ Se.REQUIRED_METHODS = ["openAiAssistant"];
833
+ var Be = class R extends a {
888
834
  constructor() {
889
835
  super(R.REQUIRED_METHODS, R);
890
836
  }
@@ -903,7 +849,7 @@ var He = class R extends s {
903
849
  * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
904
850
  * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
905
851
  */
906
- openExternalDisplayConditionsDialog(t, n, i) {
852
+ openExternalDisplayConditionsDialog(t, r, s) {
907
853
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
908
854
  }
909
855
  /**
@@ -924,19 +870,19 @@ var He = class R extends s {
924
870
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
925
871
  }
926
872
  };
927
- He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
928
- var ke = class L extends s {
873
+ Be.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
874
+ var Me = class _ extends a {
929
875
  constructor() {
930
- super(L.REQUIRED_METHODS, L);
876
+ super(_.REQUIRED_METHODS, _);
931
877
  }
932
- openImageLibrary(t, n, i) {
878
+ openImageLibrary(t, r, s) {
933
879
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
934
880
  }
935
881
  };
936
- ke.REQUIRED_METHODS = ["openImageLibrary"];
937
- var Xe = class _ extends s {
882
+ Me.REQUIRED_METHODS = ["openImageLibrary"];
883
+ var xe = class L extends a {
938
884
  constructor() {
939
- super(_.REQUIRED_METHODS, _);
885
+ super(L.REQUIRED_METHODS, L);
940
886
  }
941
887
  /**
942
888
  * @description Returns the translated name/label for the tab
@@ -951,30 +897,30 @@ var Xe = class _ extends s {
951
897
  * @param _onImageSelectCallback - Callback to invoke when an image is selected
952
898
  * @param _selectedNode - (Optional) Selected node for which the gallery is being opened
953
899
  */
954
- openImageLibraryTab(t, n, i) {
900
+ openImageLibraryTab(t, r, s) {
955
901
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
956
902
  }
957
903
  };
958
- Xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
959
- var pe = class C extends s {
904
+ xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
905
+ var ve = class C extends a {
960
906
  constructor() {
961
907
  super(C.REQUIRED_METHODS, C);
962
908
  }
963
- openSmartElementsLibrary(t, n) {
909
+ openSmartElementsLibrary(t, r) {
964
910
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
965
911
  }
966
912
  };
967
- pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
968
- var Ge = class A extends s {
913
+ ve.REQUIRED_METHODS = ["openSmartElementsLibrary"];
914
+ var ye = class A extends a {
969
915
  constructor() {
970
916
  super(A.REQUIRED_METHODS, A);
971
917
  }
972
- openExternalVideosLibraryDialog(t, n, i) {
918
+ openExternalVideosLibraryDialog(t, r, s) {
973
919
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
974
920
  }
975
921
  };
976
- Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
977
- var V = class N extends s {
922
+ ye.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
923
+ var p = class N extends a {
978
924
  constructor() {
979
925
  super(N.REQUIRED_METHODS, N);
980
926
  }
@@ -982,8 +928,8 @@ var V = class N extends s {
982
928
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
983
929
  }
984
930
  };
985
- V.REQUIRED_METHODS = ["registerIconsSvg"];
986
- var mt = V, Rt = class {
931
+ p.REQUIRED_METHODS = ["registerIconsSvg"];
932
+ var ot = p, dt = class {
987
933
  constructor(e) {
988
934
  this.key = e;
989
935
  }
@@ -996,7 +942,7 @@ var mt = V, Rt = class {
996
942
  params: this.params
997
943
  };
998
944
  }
999
- }, Q = class D extends s {
945
+ }, Q = class D extends a {
1000
946
  constructor() {
1001
947
  super(D.REQUIRED_METHODS, D);
1002
948
  }
@@ -1033,7 +979,7 @@ var mt = V, Rt = class {
1033
979
  * @param name - The name of the attribute that was updated.
1034
980
  * @param value - The new value of the attribute.
1035
981
  */
1036
- onAttributeUpdated(t, n) {
982
+ onAttributeUpdated(t, r) {
1037
983
  }
1038
984
  /**
1039
985
  * Gets the unique identifier for this UI element type.
@@ -1052,7 +998,7 @@ var mt = V, Rt = class {
1052
998
  }
1053
999
  };
1054
1000
  Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
1055
- var Lt = Q, f = class S extends s {
1001
+ var ut = Q, f = class S extends a {
1056
1002
  constructor() {
1057
1003
  super(S.REQUIRED_METHODS, S);
1058
1004
  }
@@ -1061,54 +1007,52 @@ var Lt = Q, f = class S extends s {
1061
1007
  }
1062
1008
  };
1063
1009
  f.REQUIRED_METHODS = ["registerUiElements"];
1064
- var _t = f;
1010
+ var It = f;
1065
1011
  export {
1066
- Qe as Block,
1067
- Ye as BlockAttr,
1012
+ Pe as Block,
1013
+ Ke as BlockAttr,
1068
1014
  $ as BlockCompositionType,
1069
1015
  I as BlockSelector,
1070
- Ee as BlockType,
1071
- fe as BlocksPanel,
1016
+ oe as BlockType,
1017
+ we as BlocksPanel,
1072
1018
  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,
1019
+ n as BuiltInControlTypes,
1020
+ ke as ButtonAlignBuiltInControl,
1021
+ Xe as ButtonBackgroundColorBuiltInControl,
1022
+ Ve as ButtonBorderBuiltInControl,
1023
+ He as ButtonBorderRadiusBuiltInControl,
1024
+ Ge as ButtonColorBuiltInControl,
1079
1025
  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,
1026
+ pe as ButtonFitToContainerBuiltInControl,
1027
+ Qe as ButtonFontFamilyBuiltInControl,
1028
+ fe as ButtonMarginsBuiltInControl,
1029
+ Ye as ButtonPaddingsBuiltInControl,
1030
+ $e as ButtonTextBuiltInControl,
1031
+ We as ButtonTextSizeBuiltInControl,
1032
+ ze as ButtonTextStyleAndFontColorBuiltInControl,
1033
+ de as ContainerControls,
1034
+ Ze as Control,
1035
+ De as Extension,
1036
+ Et as ExtensionBuilder,
1092
1037
  w as GeneralControls,
1093
- mt as IconsRegistry,
1038
+ ot as IconsRegistry,
1094
1039
  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,
1040
+ je as ImageMarginsBuiltInControl,
1041
+ qe as ImageSizeBuiltInControl,
1042
+ dt as ModificationDescription,
1043
+ Je as SettingsPanelRegistry,
1044
+ et as SettingsPanelTab,
1045
+ ue as SettingsTab,
1046
+ tt as TextAlignBuiltInControl,
1047
+ rt as TextColorBuiltInControl,
1104
1048
  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
1049
+ nt as TextFontFamilyBuiltInControl,
1050
+ at as TextLineSpacingBuiltInControl,
1051
+ st as TextPaddingsBuiltInControl,
1052
+ it as TextSizeBuiltInControl,
1053
+ lt as TextStyleBuiltInControl,
1054
+ Fe as UEAttr,
1055
+ ut as UIElement,
1056
+ It as UIElementTagRegistry,
1057
+ Ae as UIElementType
1114
1058
  };