@useinsider/guido 1.0.3-beta.cc614d6 → 1.0.3-beta.cd0d7f3

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 (184) hide show
  1. package/README.md +35 -0
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/Guido.vue2.js +44 -41
  4. package/dist/components/organisms/header/RightSlot.vue.js +1 -1
  5. package/dist/components/organisms/header/RightSlot.vue2.js +23 -22
  6. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +21 -0
  7. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +99 -0
  8. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -18
  9. package/dist/composables/useActionsApi.js +1 -1
  10. package/dist/composables/useBlocksConfig.js +1 -2
  11. package/dist/composables/useGuidoActions.js +19 -9
  12. package/dist/composables/useHtmlCompiler.js +15 -13
  13. package/dist/composables/useHtmlValidator.js +36 -35
  14. package/dist/composables/useStripo.js +38 -36
  15. package/dist/config/compiler/itemsCompilerRules.js +14 -0
  16. package/dist/config/compiler/unsubscribeCompilerRules.js +33 -28
  17. package/dist/enums/defaults.js +2 -1
  18. package/dist/enums/extensions/recommendationBlock.js +2 -2
  19. package/dist/enums/onboarding.js +7 -3
  20. package/dist/enums/unsubscribe.js +27 -25
  21. package/dist/extensions/Blocks/Checkbox/block.js +5 -2
  22. package/dist/extensions/Blocks/Items/block.js +66 -0
  23. package/dist/extensions/Blocks/Items/controls/button/link.js +68 -0
  24. package/dist/extensions/Blocks/Items/controls/cardComposition.js +193 -0
  25. package/dist/extensions/Blocks/Items/controls/image/link.js +68 -0
  26. package/dist/extensions/Blocks/Items/controls/index.js +217 -0
  27. package/dist/extensions/Blocks/Items/controls/name/trimming.js +70 -0
  28. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +107 -0
  29. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +123 -0
  30. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +76 -0
  31. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +61 -0
  32. package/dist/extensions/Blocks/Items/controls/settingsControl.js +309 -0
  33. package/dist/extensions/Blocks/Items/enums/controlEnums.js +5 -0
  34. package/dist/extensions/Blocks/Items/enums/productEnums.js +272 -0
  35. package/dist/extensions/Blocks/Items/enums/settingsEnums.js +76 -0
  36. package/dist/extensions/Blocks/Items/extension.js +19 -0
  37. package/dist/extensions/Blocks/Items/iconsRegistry.js +32 -0
  38. package/dist/extensions/Blocks/Items/items.css.js +23 -0
  39. package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +62 -0
  40. package/dist/extensions/Blocks/Items/layouts/vertical.html.js +61 -0
  41. package/dist/extensions/Blocks/Items/settingsPanel.js +132 -0
  42. package/dist/extensions/Blocks/Items/store/items-block.js +71 -0
  43. package/dist/extensions/Blocks/Items/template.js +194 -0
  44. package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +17 -0
  45. package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +28 -0
  46. package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +67 -0
  47. package/dist/extensions/Blocks/Items/utils/updateAttributes.js +44 -0
  48. package/dist/extensions/Blocks/RadioButton/block.js +5 -2
  49. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +43 -43
  50. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -1
  51. package/dist/extensions/Blocks/common-control.js +174 -110
  52. package/dist/extensions/Blocks/controlFactories.js +223 -0
  53. package/dist/guido.css +1 -1
  54. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +213 -168
  55. package/dist/node_modules/lodash-es/_DataView.js +6 -0
  56. package/dist/node_modules/lodash-es/_Promise.js +6 -0
  57. package/dist/node_modules/lodash-es/_Set.js +6 -0
  58. package/dist/node_modules/lodash-es/_SetCache.js +13 -0
  59. package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
  60. package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
  61. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
  62. package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
  63. package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
  64. package/dist/node_modules/lodash-es/_arraySome.js +9 -0
  65. package/dist/node_modules/lodash-es/_baseEach.js +6 -0
  66. package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
  67. package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
  68. package/dist/node_modules/lodash-es/_baseGet.js +11 -0
  69. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  70. package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
  71. package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
  72. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
  73. package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
  74. package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
  75. package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
  76. package/dist/node_modules/lodash-es/_baseMap.js +11 -0
  77. package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
  78. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  79. package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
  80. package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  81. package/dist/node_modules/lodash-es/_baseRange.js +9 -0
  82. package/dist/node_modules/lodash-es/_baseToString.js +18 -0
  83. package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
  84. package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
  85. package/dist/node_modules/lodash-es/_castPath.js +10 -0
  86. package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
  87. package/dist/node_modules/lodash-es/_createRange.js +11 -0
  88. package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
  89. package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
  90. package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
  91. package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
  92. package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
  93. package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
  94. package/dist/node_modules/lodash-es/_getTag.js +28 -0
  95. package/dist/node_modules/lodash-es/_hasPath.js +19 -0
  96. package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
  97. package/dist/node_modules/lodash-es/_isKey.js +12 -0
  98. package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
  99. package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
  100. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  101. package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
  102. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
  103. package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
  104. package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
  105. package/dist/node_modules/lodash-es/_setToArray.js +9 -0
  106. package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
  107. package/dist/node_modules/lodash-es/_toKey.js +10 -0
  108. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  109. package/dist/node_modules/lodash-es/flatMap.js +8 -0
  110. package/dist/node_modules/lodash-es/get.js +8 -0
  111. package/dist/node_modules/lodash-es/hasIn.js +8 -0
  112. package/dist/node_modules/lodash-es/isSymbol.js +9 -0
  113. package/dist/node_modules/lodash-es/keys.js +9 -0
  114. package/dist/node_modules/lodash-es/keysIn.js +3 -3
  115. package/dist/node_modules/lodash-es/map.js +11 -0
  116. package/dist/node_modules/lodash-es/property.js +10 -0
  117. package/dist/node_modules/lodash-es/range.js +5 -0
  118. package/dist/node_modules/lodash-es/stubArray.js +6 -0
  119. package/dist/node_modules/lodash-es/toFinite.js +14 -0
  120. package/dist/node_modules/lodash-es/toNumber.js +22 -0
  121. package/dist/node_modules/lodash-es/toString.js +7 -0
  122. package/dist/package.json.js +1 -1
  123. package/dist/services/recommendationApi.js +13 -19
  124. package/dist/src/@types/generic.d.ts +1 -0
  125. package/dist/src/components/Guido.vue.d.ts +1 -0
  126. package/dist/src/components/organisms/onboarding/ItemsOnboarding.vue.d.ts +2 -0
  127. package/dist/src/composables/useGuidoActions.d.ts +9 -0
  128. package/dist/src/config/compiler/itemsCompilerRules.d.ts +2 -0
  129. package/dist/src/enums/onboarding.d.ts +4 -0
  130. package/dist/src/extensions/Blocks/Checkbox/block.d.ts +1 -0
  131. package/dist/src/extensions/Blocks/Items/block.d.ts +13 -0
  132. package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +14 -0
  133. package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +33 -0
  134. package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +14 -0
  135. package/dist/src/extensions/Blocks/Items/controls/index.d.ts +501 -0
  136. package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +14 -0
  137. package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +19 -0
  138. package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +21 -0
  139. package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +14 -0
  140. package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +13 -0
  141. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +45 -0
  142. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +61 -0
  143. package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +161 -0
  144. package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +49 -0
  145. package/dist/src/extensions/Blocks/Items/extension.d.ts +2 -0
  146. package/dist/src/extensions/Blocks/Items/iconsRegistry.d.ts +4 -0
  147. package/dist/src/extensions/Blocks/Items/settingsPanel.d.ts +4 -0
  148. package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +41 -0
  149. package/dist/src/extensions/Blocks/Items/template.d.ts +16 -0
  150. package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +23 -0
  151. package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +32 -0
  152. package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +44 -0
  153. package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +8 -0
  154. package/dist/src/extensions/Blocks/RadioButton/block.d.ts +1 -0
  155. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -1
  156. package/dist/src/extensions/Blocks/common-control.d.ts +44 -7
  157. package/dist/src/extensions/Blocks/controlFactories.d.ts +312 -0
  158. package/dist/src/stores/config.d.ts +2 -1
  159. package/dist/src/stores/dynamic-content.d.ts +1 -1
  160. package/dist/src/stores/editor.d.ts +1 -1
  161. package/dist/src/stores/onboarding.d.ts +335 -1
  162. package/dist/src/stores/preview.d.ts +1 -1
  163. package/dist/src/stores/recommendation.d.ts +1 -1
  164. package/dist/src/stores/save-as-template.d.ts +1 -1
  165. package/dist/src/stores/toaster.d.ts +1 -1
  166. package/dist/src/stores/unsubscribe.d.ts +1 -1
  167. package/dist/src/stores/version-history.d.ts +1 -1
  168. package/dist/src/utils/environmentUtil.d.ts +5 -0
  169. package/dist/src/utils/pairProductVariables.d.ts +7 -0
  170. package/dist/static/styles/customEditorStyle.css.js +1 -1
  171. package/dist/stores/config.js +5 -5
  172. package/dist/stores/dynamic-content.js +1 -1
  173. package/dist/stores/editor.js +1 -1
  174. package/dist/stores/onboarding.js +44 -36
  175. package/dist/stores/preview.js +1 -1
  176. package/dist/stores/recommendation.js +3 -3
  177. package/dist/stores/save-as-template.js +2 -2
  178. package/dist/stores/toaster.js +1 -1
  179. package/dist/stores/unsubscribe.js +1 -1
  180. package/dist/stores/version-history.js +4 -4
  181. package/dist/utils/environmentUtil.js +4 -0
  182. package/dist/utils/genericUtil.js +16 -17
  183. package/dist/utils/pairProductVariables.js +136 -0
  184. package/package.json +11 -4
@@ -1,4 +1,4 @@
1
- var J = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(J || {}), B = class u {
1
+ var M = class u {
2
2
  /**
3
3
  * Validates that all required methods are properly implemented in the subclass.
4
4
  * @param requiredMethods - Array of method names that must be implemented
@@ -21,7 +21,7 @@ ${s.map((E) => ` - ${E}`).join(`
21
21
  * This validation runs only once per class type and results are cached.
22
22
  */
23
23
  validateImplementation(e, r) {
24
- var O;
24
+ var I;
25
25
  const s = [], E = r.name, T = Object.getPrototypeOf(this);
26
26
  e.forEach((l) => {
27
27
  if (typeof this[l] != "function") {
@@ -29,12 +29,12 @@ ${s.map((E) => ` - ${E}`).join(`
29
29
  return;
30
30
  }
31
31
  T[l] === r.prototype[l] && s.push(`Method ${l}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
32
+ }), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((I = process.env) == null ? void 0 : I.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
33
33
  }
34
34
  };
35
- B.validatedClasses = /* @__PURE__ */ new Set();
36
- B.validationErrors = /* @__PURE__ */ new Map();
37
- var i = B, x = class c extends i {
35
+ M.validatedClasses = /* @__PURE__ */ new Set();
36
+ M.validationErrors = /* @__PURE__ */ new Map();
37
+ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(et || {}), y = class c extends a {
38
38
  constructor() {
39
39
  super(c.REQUIRED_METHODS, c);
40
40
  }
@@ -176,6 +176,16 @@ var i = B, x = class c extends i {
176
176
  getName() {
177
177
  throw new Error("Method getName() must be implemented by the subclass");
178
178
  }
179
+ /**
180
+ * Retrieves the name of block in the block panel.
181
+ * Can contain html markup
182
+ * If not implemented by the subclass, getName() function will be used to display name in the block panel
183
+ *
184
+ * @return {string} The name of the block panel.
185
+ */
186
+ getSettingsPanelName() {
187
+ return "";
188
+ }
179
189
  /**
180
190
  * Gets a short description of the block shown to the user, often as a tooltip in the block panel.
181
191
  * Use `this.api.translate()` for localization.
@@ -185,8 +195,8 @@ var i = B, x = class c extends i {
185
195
  throw new Error("Method getDescription() must be implemented by the subclass");
186
196
  }
187
197
  };
188
- x.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
189
- var wt = x, tt = class _ extends i {
198
+ y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
+ var Xt = y, rt = class _ extends a {
190
200
  constructor() {
191
201
  super(_.REQUIRED_METHODS, _);
192
202
  }
@@ -203,10 +213,10 @@ var wt = x, tt = class _ extends i {
203
213
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
204
214
  }
205
215
  };
206
- tt.REQUIRED_METHODS = ["getPreviewInnerHtml"];
207
- var et = class R extends i {
216
+ rt.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
+ var nt = class h extends a {
208
218
  constructor() {
209
- super(R.REQUIRED_METHODS, R);
219
+ super(h.REQUIRED_METHODS, h);
210
220
  }
211
221
  getId() {
212
222
  throw new Error("Method getId() must be implemented by the subclass");
@@ -221,82 +231,84 @@ var et = class R extends i {
221
231
  throw new Error("Method onClick() must be implemented by the subclass");
222
232
  }
223
233
  };
224
- et.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
225
- var rt = {
234
+ nt.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
235
+ var st = {
226
236
  src: "src",
227
237
  alt: "alt",
238
+ href: "href",
239
+ width: "width"
240
+ }, at = {
228
241
  href: "href"
229
- }, nt = {
230
- href: "href"
231
- }, Pt = {
232
- BLOCK_IMAGE: rt,
233
- BLOCK_BUTTON: nt
234
- }, U = "esd-block-button", y = "esd-block-text", K = "esd-block-image", st = "esd-structure", it = "esd-block-video", at = "esd-block-social", ot = "esd-block-banner", Et = "esd-block-timer", lt = "esd-block-menu", dt = "esd-block-html", ut = "esd-block-spacer", Ot = "esd-container-frame", It = "esd-stripe", Tt = "esd-amp-form", I = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${y}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${st}`, t.VIDEO = `.${it}`, t.SOCIAL = `.${at}`, t.BANNER = `.${ot}`, t.TIMER = `.${Et}`, t.MENU = `.${lt}`, t.HTML = `.${dt}`, t.SPACER = `.${ut}`, t.CONTAINER = `.${Ot}`, t.STRIPE = `.${It}`, t.FORM = `.${Tt}`, t))(I || {}), ct = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ct || {}), p = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(p || {}), F = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(P || {}), _t = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(_t || {}), n = {
235
- BLOCK_BUTTON: F,
236
- BLOCK_TEXT: w,
237
- BLOCK_IMAGE: P,
238
- GENERAL: p
239
- }, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}), a = {
242
+ }, kt = {
243
+ BLOCK_IMAGE: st,
244
+ BLOCK_BUTTON: at
245
+ }, U = "esd-block-button", p = "esd-block-text", K = "esd-block-image", it = "esd-structure", ot = "esd-block-video", Et = "esd-block-social", lt = "esd-block-banner", dt = "esd-block-timer", ut = "esd-block-menu", It = "esd-block-html", Ot = "esd-block-spacer", Tt = "esd-container-frame", ct = "esd-stripe", _t = "esd-amp-form", O = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${p}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${it}`, t.VIDEO = `.${ot}`, t.SOCIAL = `.${Et}`, t.BANNER = `.${lt}`, t.TIMER = `.${dt}`, t.MENU = `.${ut}`, t.HTML = `.${It}`, t.SPACER = `.${Ot}`, t.CONTAINER = `.${Tt}`, t.STRIPE = `.${ct}`, t.FORM = `.${_t}`, t))(O || {}), ht = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ht || {}), F = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(P || {}), H = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(H || {}), Rt = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(Rt || {}), n = {
246
+ BLOCK_BUTTON: w,
247
+ BLOCK_TEXT: P,
248
+ BLOCK_IMAGE: H,
249
+ GENERAL: F
250
+ }, Lt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Lt || {}), o = {
240
251
  name: "name",
241
252
  disabled: "disabled"
242
- }, ht = {
243
- ...a,
253
+ }, Ct = {
254
+ ...o,
244
255
  caption: "caption",
245
256
  icon: "icon"
246
- }, Ct = {
247
- ...a,
257
+ }, mt = {
258
+ ...o,
248
259
  caption: "caption"
249
- }, Lt = {
250
- ...a,
260
+ }, gt = {
261
+ ...o,
251
262
  minValue: "min-value",
252
263
  maxValue: "max-value",
253
264
  step: "step"
254
- }, gt = {
255
- ...a,
265
+ }, bt = {
266
+ ...o,
256
267
  text: "text"
257
- }, mt = {
258
- ...a
259
- }, H = {
260
- ...a,
268
+ }, At = {
269
+ ...o
270
+ }, X = {
271
+ ...o,
261
272
  searchable: "searchable",
262
273
  multiSelect: "multi-select",
263
274
  placeholder: "placeholder",
264
275
  items: "items"
265
- }, At = {
266
- ...H
267
276
  }, Nt = {
277
+ ...X
278
+ }, Dt = {
268
279
  text: "text",
269
280
  value: "value"
270
- }, bt = {
281
+ }, St = {
271
282
  text: "text",
283
+ icon: "icon",
272
284
  value: "value"
273
- }, Dt = {
274
- ...a
275
- }, St = {
276
- controlId: "control-id"
277
285
  }, Bt = {
278
- ...a,
286
+ ...o
287
+ }, Mt = {
288
+ controlId: "control-id"
289
+ }, xt = {
290
+ ...o,
279
291
  icon: "icon",
280
292
  position: "position"
281
- }, Mt = {
282
- ...a
283
- }, Ht = {
284
- BUTTON: ht,
285
- CHECKBOX: Ct,
286
- COLOR: a,
287
- COUNTER: Lt,
288
- LABEL: gt,
289
- RADIO_BUTTONS: mt,
290
- SELECTPICKER: H,
291
- FONT_FAMILY_SELECT: At,
292
- SWITCHER: a,
293
- TEXT: Dt,
294
- SELECT_ITEM: Nt,
295
- RADIO_ITEM: bt,
296
- NESTED_CONTROL: St,
297
- ORDERABLE: Bt,
298
- ORDERABLE_ITEM: Mt
299
- }, vt = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t.ORDERABLE = "UE-ORDERABLE", t.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", t.ORDERABLE_ICON = "UE-ORDERABLE-ICON", t))(vt || {}), M = class {
293
+ }, vt = {
294
+ ...o
295
+ }, Vt = {
296
+ BUTTON: Ct,
297
+ CHECKBOX: mt,
298
+ COLOR: o,
299
+ COUNTER: gt,
300
+ LABEL: bt,
301
+ RADIO_BUTTONS: At,
302
+ SELECTPICKER: X,
303
+ FONT_FAMILY_SELECT: Nt,
304
+ SWITCHER: o,
305
+ TEXT: Bt,
306
+ SELECT_ITEM: Dt,
307
+ RADIO_ITEM: St,
308
+ NESTED_CONTROL: Mt,
309
+ ORDERABLE: xt,
310
+ ORDERABLE_ITEM: vt
311
+ }, yt = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t.ORDERABLE = "UE-ORDERABLE", t.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", t.ORDERABLE_ICON = "UE-ORDERABLE-ICON", t))(yt || {}), x = class {
300
312
  /**
301
313
  * @description returns map of nodes parent control operates on
302
314
  */
@@ -327,64 +339,68 @@ var rt = {
327
339
  isVisible(t) {
328
340
  return !0;
329
341
  }
330
- }, o = class extends M {
342
+ }, i = class extends x {
331
343
  getTargetNodes(t) {
332
- const e = t.querySelectorAll(I.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
344
+ const e = t.querySelectorAll(O.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
333
345
  return e.length ? e : r;
334
346
  }
335
- }, Xt = class extends o {
347
+ }, Gt = class extends i {
336
348
  getParentControlId() {
337
349
  return n.BLOCK_BUTTON.BORDER_RADIUS;
338
350
  }
339
351
  getLabels() {
340
352
  }
341
- }, kt = class extends o {
353
+ }, Qt = class extends i {
342
354
  getParentControlId() {
343
355
  return n.BLOCK_BUTTON.ALIGNMENT;
344
356
  }
345
- }, Vt = class extends o {
357
+ }, ft = class extends i {
358
+ getParentControlId() {
359
+ return n.GENERAL.BACKGROUND_COLOR;
360
+ }
361
+ }, Yt = class extends i {
346
362
  getParentControlId() {
347
363
  return n.BLOCK_BUTTON.BORDER;
348
364
  }
349
365
  getLabels() {
350
366
  }
351
- }, Gt = class extends o {
367
+ }, $t = class extends i {
352
368
  getParentControlId() {
353
369
  return n.BLOCK_BUTTON.COLOR;
354
370
  }
355
- }, ft = class extends o {
371
+ }, Wt = class extends i {
356
372
  getParentControlId() {
357
373
  return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
358
374
  }
359
- }, Qt = class extends o {
375
+ }, zt = class extends i {
360
376
  getParentControlId() {
361
377
  return n.BLOCK_BUTTON.FONT_FAMILY;
362
378
  }
363
- }, Yt = class extends o {
379
+ }, Zt = class extends i {
364
380
  getParentControlId() {
365
381
  return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
366
382
  }
367
- }, $t = class extends o {
383
+ }, jt = class extends i {
368
384
  getParentControlId() {
369
385
  return n.BLOCK_BUTTON.INTERNAL_INDENTS;
370
386
  }
371
- }, Wt = class extends o {
387
+ }, qt = class extends i {
372
388
  getParentControlId() {
373
389
  return n.BLOCK_BUTTON.TEXT;
374
390
  }
375
- }, zt = class extends o {
391
+ }, Jt = class extends i {
376
392
  getParentControlId() {
377
393
  return n.BLOCK_BUTTON.FONT_SIZE;
378
394
  }
379
- }, Zt = class extends o {
395
+ }, te = class extends i {
380
396
  getParentControlId() {
381
397
  return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
382
398
  }
383
399
  getLabels() {
384
400
  }
385
- }, X = class h extends i {
401
+ }, k = class R extends a {
386
402
  constructor() {
387
- super(h.REQUIRED_METHODS, h);
403
+ super(R.REQUIRED_METHODS, R);
388
404
  }
389
405
  /**
390
406
  * @description Allows to determine if control should be visible or hidden in control panel.
@@ -437,30 +453,30 @@ var rt = {
437
453
  onDocumentChanged(e) {
438
454
  }
439
455
  };
440
- X.REQUIRED_METHODS = ["getId", "getTemplate"];
441
- var jt = X, k = class extends M {
456
+ k.REQUIRED_METHODS = ["getId", "getTemplate"];
457
+ var ee = k, V = class extends x {
442
458
  getTargetNodes(t) {
443
- const e = t.querySelectorAll(I.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
459
+ const e = t.querySelectorAll(O.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
444
460
  return e.length ? e : r;
445
461
  }
446
- }, qt = class extends k {
462
+ }, re = class extends V {
447
463
  getParentControlId() {
448
464
  return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
449
465
  }
450
- }, Jt = class extends k {
466
+ }, ne = class extends V {
451
467
  getParentControlId() {
452
468
  return n.BLOCK_IMAGE.SIZE;
453
469
  }
454
- }, V = class C extends i {
470
+ }, G = class L extends a {
455
471
  constructor() {
456
- super(C.REQUIRED_METHODS, C);
472
+ super(L.REQUIRED_METHODS, L);
457
473
  }
458
474
  registerBlockControls(e) {
459
475
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
460
476
  }
461
477
  };
462
- V.REQUIRED_METHODS = ["registerBlockControls"];
463
- var te = V, ee = class {
478
+ G.REQUIRED_METHODS = ["registerBlockControls"];
479
+ var se = G, ae = class {
464
480
  constructor(t, e) {
465
481
  this.tabId = t, this.controlsIds = e;
466
482
  }
@@ -483,42 +499,42 @@ var te = V, ee = class {
483
499
  const e = this.controlsIds.indexOf(t);
484
500
  e !== -1 && this.controlsIds.splice(e, 1);
485
501
  }
486
- }, d = class extends M {
502
+ }, d = class extends x {
487
503
  getTargetNodes(t) {
488
- const e = t.querySelectorAll(I.TEXT), r = t.asElement().hasClass(y) ? [t] : [];
504
+ const e = t.querySelectorAll(O.TEXT), r = t.asElement().hasClass(p) ? [t] : [];
489
505
  return e.length ? e : r;
490
506
  }
491
- }, re = class extends d {
507
+ }, ie = class extends d {
492
508
  getParentControlId() {
493
509
  return n.GENERAL.TEXT_ALIGN;
494
510
  }
495
- }, ne = class extends d {
511
+ }, oe = class extends d {
496
512
  getParentControlId() {
497
513
  return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
498
514
  }
499
- }, se = class extends d {
515
+ }, Ee = class extends d {
500
516
  getParentControlId() {
501
517
  return n.GENERAL.TEXT_COLOR;
502
518
  }
503
- }, ie = class extends d {
519
+ }, le = class extends d {
504
520
  getParentControlId() {
505
521
  return n.BLOCK_TEXT.FONT_FAMILY;
506
522
  }
507
- }, ae = class extends d {
523
+ }, de = class extends d {
508
524
  getParentControlId() {
509
525
  return n.BLOCK_TEXT.INTERNAL_INDENTS;
510
526
  }
511
- }, oe = class extends d {
527
+ }, ue = class extends d {
512
528
  getParentControlId() {
513
529
  return n.GENERAL.TEXT_SIZE;
514
530
  }
515
- }, Ee = class extends d {
531
+ }, Ie = class extends d {
516
532
  getParentControlId() {
517
533
  return n.GENERAL.TEXT_STYLE;
518
534
  }
519
- }, xt = class {
520
- constructor(t, e, r = [], s, E = [], T, O = [], l = [], v, Y, $, W, z, Z, j, q) {
521
- this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = $, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = O, this.blocks = l, this.externalSmartElementsLibrary = v, this.externalImageLibrary = Y, this.externalAiAssistant = W, this.externalDisplayConditionsLibrary = z, this.externalVideoLibrary = Z, this.blocksPanel = j, this.iconsRegistry = q, this.id = Math.random().toString(36).substring(2);
535
+ }, Ut = class {
536
+ constructor(t, e, r = [], s, E = [], T, I = [], l = [], v, $, W, z, Z, j, q, J, tt) {
537
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = W, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = I, this.blocks = l, this.externalSmartElementsLibrary = v, this.externalImageLibrary = $, this.externalImageLibraryTab = tt, this.externalAiAssistant = z, this.externalDisplayConditionsLibrary = Z, this.externalVideoLibrary = j, this.blocksPanel = q, this.iconsRegistry = J, this.id = Math.random().toString(36).substring(2);
522
538
  }
523
539
  getI18n() {
524
540
  return this.i18n;
@@ -556,6 +572,9 @@ var te = V, ee = class {
556
572
  getExternalImageLibrary() {
557
573
  return this.externalImageLibrary;
558
574
  }
575
+ getExternalImageLibraryTab() {
576
+ return this.externalImageLibraryTab;
577
+ }
559
578
  getExternalAiAssistant() {
560
579
  return this.externalAiAssistant;
561
580
  }
@@ -571,7 +590,7 @@ var te = V, ee = class {
571
590
  getIconsRegistry() {
572
591
  return this.iconsRegistry;
573
592
  }
574
- }, le = class {
593
+ }, Oe = class {
575
594
  constructor() {
576
595
  this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
577
596
  }
@@ -614,6 +633,9 @@ var te = V, ee = class {
614
633
  withExternalImageLibrary(t) {
615
634
  return this.externalImageLibrary = t, this;
616
635
  }
636
+ withExternalImageLibraryTab(t) {
637
+ return this.externalImageLibraryTab = t, this;
638
+ }
617
639
  withExternalAiAssistant(t) {
618
640
  return this.externalAiAssistant = t, this;
619
641
  }
@@ -633,7 +655,7 @@ var te = V, ee = class {
633
655
  return this.iconsRegistry = t, this;
634
656
  }
635
657
  build() {
636
- return new xt(
658
+ return new Ut(
637
659
  this.i18n,
638
660
  (this.styles || []).map((t) => t.trim()).join(`
639
661
  `),
@@ -650,21 +672,22 @@ var te = V, ee = class {
650
672
  this.externalDisplayConditionsLibrary,
651
673
  this.externalVideoLibrary,
652
674
  this.blocksPanel,
653
- this.iconsRegistry
675
+ this.iconsRegistry,
676
+ this.externalImageLibraryTab
654
677
  );
655
678
  }
656
- }, Ut = class L extends i {
679
+ }, pt = class C extends a {
657
680
  constructor() {
658
- super(L.REQUIRED_METHODS, L);
681
+ super(C.REQUIRED_METHODS, C);
659
682
  }
660
683
  openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: E }) {
661
684
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
662
685
  }
663
686
  };
664
- Ut.REQUIRED_METHODS = ["openAiAssistant"];
665
- var yt = class g extends i {
687
+ pt.REQUIRED_METHODS = ["openAiAssistant"];
688
+ var Kt = class m extends a {
666
689
  constructor() {
667
- super(g.REQUIRED_METHODS, g);
690
+ super(m.REQUIRED_METHODS, m);
668
691
  }
669
692
  /**
670
693
  * Retrieves the name of the category.
@@ -702,17 +725,38 @@ var yt = class g extends i {
702
725
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
703
726
  }
704
727
  };
705
- yt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
706
- var Kt = class m extends i {
728
+ Kt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
729
+ var Ft = class g extends a {
707
730
  constructor() {
708
- super(m.REQUIRED_METHODS, m);
731
+ super(g.REQUIRED_METHODS, g);
709
732
  }
710
733
  openImageLibrary(e, r, s) {
711
734
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
712
735
  }
713
736
  };
714
- Kt.REQUIRED_METHODS = ["openImageLibrary"];
715
- var pt = class A extends i {
737
+ Ft.REQUIRED_METHODS = ["openImageLibrary"];
738
+ var wt = class b extends a {
739
+ constructor() {
740
+ super(b.REQUIRED_METHODS, b);
741
+ }
742
+ /**
743
+ * @description Returns the translated name/label for the tab
744
+ * @returns Translation key or text to display as tab label
745
+ */
746
+ getName() {
747
+ throw new Error("Method getName() must be implemented by the subclass");
748
+ }
749
+ /**
750
+ * @description Opens the external image library tab and provides a container for rendering
751
+ * @param _container - DOM element container where the external library UI should be rendered
752
+ * @param _onImageSelectCallback - Callback to invoke when an image is selected
753
+ */
754
+ openImageLibraryTab(e, r) {
755
+ throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
756
+ }
757
+ };
758
+ wt.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
759
+ var Pt = class A extends a {
716
760
  constructor() {
717
761
  super(A.REQUIRED_METHODS, A);
718
762
  }
@@ -720,8 +764,8 @@ var pt = class A extends i {
720
764
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
721
765
  }
722
766
  };
723
- pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
724
- var Ft = class N extends i {
767
+ Pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
768
+ var Ht = class N extends a {
725
769
  constructor() {
726
770
  super(N.REQUIRED_METHODS, N);
727
771
  }
@@ -729,17 +773,17 @@ var Ft = class N extends i {
729
773
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
730
774
  }
731
775
  };
732
- Ft.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
733
- var G = class b extends i {
776
+ Ht.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
777
+ var Q = class D extends a {
734
778
  constructor() {
735
- super(b.REQUIRED_METHODS, b);
779
+ super(D.REQUIRED_METHODS, D);
736
780
  }
737
781
  registerIconsSvg(e) {
738
782
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
739
783
  }
740
784
  };
741
- G.REQUIRED_METHODS = ["registerIconsSvg"];
742
- var de = G, ue = class {
785
+ Q.REQUIRED_METHODS = ["registerIconsSvg"];
786
+ var Te = Q, ce = class {
743
787
  constructor(t) {
744
788
  this.key = t;
745
789
  }
@@ -752,9 +796,9 @@ var de = G, ue = class {
752
796
  params: this.params
753
797
  };
754
798
  }
755
- }, f = class D extends i {
799
+ }, f = class S extends a {
756
800
  constructor() {
757
- super(D.REQUIRED_METHODS, D);
801
+ super(S.REQUIRED_METHODS, S);
758
802
  }
759
803
  /**
760
804
  * Called when the UI element should render its content into the provided container.
@@ -808,59 +852,60 @@ var de = G, ue = class {
808
852
  }
809
853
  };
810
854
  f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
811
- var Oe = f, Q = class S extends i {
855
+ var _e = f, Y = class B extends a {
812
856
  constructor() {
813
- super(S.REQUIRED_METHODS, S);
857
+ super(B.REQUIRED_METHODS, B);
814
858
  }
815
859
  registerUiElements(e) {
816
860
  throw new Error("Method registerUiElements() must be implemented by the subclass");
817
861
  }
818
862
  };
819
- Q.REQUIRED_METHODS = ["registerUiElements"];
820
- var Ie = Q;
863
+ Y.REQUIRED_METHODS = ["registerUiElements"];
864
+ var he = Y;
821
865
  export {
822
- wt as Block,
823
- Pt as BlockAttr,
824
- J as BlockCompositionType,
825
- I as BlockSelector,
826
- ct as BlockType,
827
- M as BuiltInControl,
866
+ Xt as Block,
867
+ kt as BlockAttr,
868
+ et as BlockCompositionType,
869
+ O as BlockSelector,
870
+ ht as BlockType,
871
+ x as BuiltInControl,
828
872
  n as BuiltInControlTypes,
829
- kt as ButtonAlignBuiltInControl,
830
- Vt as ButtonBorderBuiltInControl,
831
- Xt as ButtonBorderRadiusBuiltInControl,
832
- Gt as ButtonColorBuiltInControl,
833
- F as ButtonControls,
834
- ft as ButtonFitToContainerBuiltInControl,
835
- Qt as ButtonFontFamilyBuiltInControl,
836
- Yt as ButtonMarginsBuiltInControl,
837
- $t as ButtonPaddingsBuiltInControl,
838
- Wt as ButtonTextBuiltInControl,
839
- zt as ButtonTextSizeBuiltInControl,
840
- Zt as ButtonTextStyleAndFontColorBuiltInControl,
841
- _t as ContainerControls,
842
- jt as Control,
843
- xt as Extension,
844
- le as ExtensionBuilder,
845
- p as GeneralControls,
846
- de as IconsRegistry,
847
- P as ImageControls,
848
- qt as ImageMarginsBuiltInControl,
849
- Jt as ImageSizeBuiltInControl,
850
- ue as ModificationDescription,
851
- te as SettingsPanelRegistry,
852
- ee as SettingsPanelTab,
853
- Rt as SettingsTab,
854
- re as TextAlignBuiltInControl,
855
- ne as TextBlockBackgroundBuiltInControl,
856
- se as TextColorBuiltInControl,
857
- w as TextControls,
858
- ie as TextFontFamilyBuiltInControl,
859
- ae as TextPaddingsBuiltInControl,
860
- oe as TextSizeBuiltInControl,
861
- Ee as TextStyleBuiltInControl,
862
- Ht as UEAttr,
863
- Oe as UIElement,
864
- Ie as UIElementTagRegistry,
865
- vt as UIElementType
873
+ Qt as ButtonAlignBuiltInControl,
874
+ ft as ButtonBackgroundColorBuiltInControl,
875
+ Yt as ButtonBorderBuiltInControl,
876
+ Gt as ButtonBorderRadiusBuiltInControl,
877
+ $t as ButtonColorBuiltInControl,
878
+ w as ButtonControls,
879
+ Wt as ButtonFitToContainerBuiltInControl,
880
+ zt as ButtonFontFamilyBuiltInControl,
881
+ Zt as ButtonMarginsBuiltInControl,
882
+ jt as ButtonPaddingsBuiltInControl,
883
+ qt as ButtonTextBuiltInControl,
884
+ Jt as ButtonTextSizeBuiltInControl,
885
+ te as ButtonTextStyleAndFontColorBuiltInControl,
886
+ Rt as ContainerControls,
887
+ ee as Control,
888
+ Ut as Extension,
889
+ Oe as ExtensionBuilder,
890
+ F as GeneralControls,
891
+ Te as IconsRegistry,
892
+ H as ImageControls,
893
+ re as ImageMarginsBuiltInControl,
894
+ ne as ImageSizeBuiltInControl,
895
+ ce as ModificationDescription,
896
+ se as SettingsPanelRegistry,
897
+ ae as SettingsPanelTab,
898
+ Lt as SettingsTab,
899
+ ie as TextAlignBuiltInControl,
900
+ oe as TextBlockBackgroundBuiltInControl,
901
+ Ee as TextColorBuiltInControl,
902
+ P as TextControls,
903
+ le as TextFontFamilyBuiltInControl,
904
+ de as TextPaddingsBuiltInControl,
905
+ ue as TextSizeBuiltInControl,
906
+ Ie as TextStyleBuiltInControl,
907
+ Vt as UEAttr,
908
+ _e as UIElement,
909
+ he as UIElementTagRegistry,
910
+ yt as UIElementType
866
911
  };