@useinsider/guido 3.2.0-beta.565bfaf → 3.2.0-beta.f0d4ffd

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.
@@ -4,13 +4,13 @@ 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);
7
+ constructor(t, a) {
8
+ if (a !== d) {
9
+ d.validatedClasses.has(a) || this.validateImplementation(t, a);
10
+ const i = d.validationErrors.get(a);
11
11
  if (i && i.length > 0)
12
12
  throw new Error(
13
- `${n.name} has validation errors:
13
+ `${a.name} has validation errors:
14
14
  ${i.map((o) => ` - ${o}`).join(`
15
15
  `)}`
16
16
  );
@@ -20,23 +20,30 @@ ${i.map((o) => ` - ${o}`).join(`
20
20
  * Validates that all required methods are properly implemented in the subclass.
21
21
  * This validation runs only once per class type and results are cached.
22
22
  */
23
- validateImplementation(t, n) {
24
- var x;
25
- const i = [], o = n.name, Y = Object.getPrototypeOf(this);
23
+ validateImplementation(t, a) {
24
+ var v;
25
+ const i = [], o = a.name, $ = Object.getPrototypeOf(this);
26
26
  t.forEach((u) => {
27
27
  if (typeof this[u] != "function") {
28
28
  i.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
+ $[u] === a.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
32
+ }), d.validatedClasses.add(a), i.length > 0 ? (d.validationErrors.set(a, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((v = process.env) == null ? void 0 : v.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
33
+ }
34
+ /**
35
+ * Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
36
+ * Override this method in subclasses to implement custom cleanup logic.
37
+ * Called when the editor is reinitialized or the extension is uninstalled.
38
+ */
39
+ destroy() {
33
40
  }
34
41
  };
35
42
  B.validatedClasses = /* @__PURE__ */ new Set();
36
43
  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 {
44
+ var s = B, W = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(W || {}), y = class T extends s {
38
45
  constructor() {
39
- super(c.REQUIRED_METHODS, c);
46
+ super(T.REQUIRED_METHODS, T);
40
47
  }
41
48
  /**
42
49
  * Determines if the block should be available for use in the editor.
@@ -133,6 +140,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
133
140
  shouldDisplayQuickAddIcon() {
134
141
  return !1;
135
142
  }
143
+ /**
144
+ * Determines if the block should be shown in the blocks panel.
145
+ * Override to hide the block from the blocks panel while keeping it available elsewhere.
146
+ * @returns True if the block should appear in the blocks panel. Defaults to true.
147
+ */
148
+ shouldDisplayInBlocksPanel() {
149
+ return !0;
150
+ }
136
151
  /**
137
152
  * @description Determines if nested blocks selection allowed in extension of type {@link BlockCompositionType.STRUCTURE}
138
153
  */
@@ -161,6 +176,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
161
176
  getTemplate() {
162
177
  throw new Error("Method getTemplate() must be implemented by the subclass");
163
178
  }
179
+ /**
180
+ * Gets a CSS template string that contains the custom styles that apply to the block.
181
+ * This CSS will be used when a block is dragged into the editor and removed when the last block is deleted.
182
+ * @returns An CSS string.
183
+ */
184
+ getTemplateStyles() {
185
+ return "";
186
+ }
164
187
  /**
165
188
  * Gets the URL or path to the icon representing this block in the editor's block panel.
166
189
  * @returns A string representing the icon source (e.g., URL, data URI).
@@ -195,10 +218,10 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
195
218
  throw new Error("Method getDescription() must be implemented by the subclass");
196
219
  }
197
220
  };
198
- v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
- var Qe = v, W = class T extends s {
221
+ y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
222
+ var $e = y, z = class I extends s {
200
223
  constructor() {
201
- super(T.REQUIRED_METHODS, T);
224
+ super(I.REQUIRED_METHODS, I);
202
225
  }
203
226
  /**
204
227
  * @deprecated - use {@link getPreviewInnerHtml} instead
@@ -213,8 +236,8 @@ var Qe = v, W = class T extends s {
213
236
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
214
237
  }
215
238
  };
216
- W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
- var fe = class {
239
+ z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
240
+ var We = class {
218
241
  /**
219
242
  * Generates HTML representation for a block item
220
243
  * @param block - The block item to generate HTML for
@@ -232,6 +255,13 @@ var fe = class {
232
255
  isBlockHintVisible(e) {
233
256
  return !0;
234
257
  }
258
+ /**
259
+ * Determines whether a draggable handle should be displayed in modules panel
260
+ * @returns True if the block panel should be reorderable
261
+ */
262
+ isPanelPlacementChangeEnabled() {
263
+ return !0;
264
+ }
235
265
  /**
236
266
  * Gets the hint text for a block
237
267
  * @param block - The block item to get hint for
@@ -281,7 +311,7 @@ var fe = class {
281
311
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
282
312
  getModulesTabIconName(e) {
283
313
  }
284
- }, z = class b extends s {
314
+ }, Z = class b extends s {
285
315
  constructor() {
286
316
  super(b.REQUIRED_METHODS, b);
287
317
  }
@@ -298,85 +328,85 @@ var fe = class {
298
328
  throw new Error("Method onClick() must be implemented by the subclass");
299
329
  }
300
330
  };
301
- z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
302
- var Z = {
331
+ Z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
332
+ var j = {
303
333
  src: "src",
304
334
  alt: "alt",
305
335
  href: "href",
306
336
  width: "width",
307
337
  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 = {
311
- BLOCK_BUTTON: K,
312
- BLOCK_TEXT: F,
313
- BLOCK_IMAGE: H,
314
- 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 = {
338
+ }, ze = {
339
+ BLOCK_IMAGE: j
340
+ }, P = "esd-block-button", U = "esd-block-text", w = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ae = "esd-block-menu", ne = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", le = "esd-stripe", Ee = "esd-amp-form", c = ((e) => (e.BUTTON = `.${P}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ae}`, e.HTML = `.${ne}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${le}`, e.FORM = `.${Ee}`, e))(c || {}), 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 || {}), K = /* @__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))(K || {}), F = /* @__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))(F || {}), H = /* @__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.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(H || {}), k = /* @__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))(k || {}), 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 = {
341
+ BLOCK_BUTTON: F,
342
+ BLOCK_TEXT: H,
343
+ BLOCK_IMAGE: k,
344
+ GENERAL: K
345
+ }, ue = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e))(ue || {}), ce = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Te || {}), r = {
316
346
  name: "name",
317
347
  disabled: "disabled"
318
- }, ce = {
348
+ }, Ie = {
319
349
  ...r,
320
350
  caption: "caption",
321
351
  icon: "icon"
322
- }, Te = {
352
+ }, be = {
323
353
  ...r,
324
354
  caption: "caption"
325
- }, be = {
355
+ }, he = {
326
356
  ...r,
327
357
  minValue: "min-value",
328
358
  maxValue: "max-value",
329
359
  step: "step"
330
- }, Oe = {
360
+ }, me = {
331
361
  ...r,
332
362
  placeholder: "placeholder",
333
363
  minDate: "min-date"
334
- }, he = {
364
+ }, ge = {
335
365
  ...r,
336
366
  text: "text",
337
367
  hint: "hint"
338
- }, ge = {
368
+ }, Oe = {
339
369
  ...r,
340
370
  type: "type"
341
- }, me = {
371
+ }, Re = {
342
372
  ...r,
343
373
  buttons: "buttons"
344
- }, k = {
374
+ }, p = {
345
375
  ...r,
346
376
  searchable: "searchable",
347
377
  multiSelect: "multi-select",
348
378
  placeholder: "placeholder",
349
379
  items: "items"
350
- }, Re = {
351
- ...k,
352
- addCustomFontOption: "add-custom-font-option"
353
380
  }, Le = {
381
+ ...p,
382
+ addCustomFontOption: "add-custom-font-option"
383
+ }, _e = {
354
384
  ...r,
355
385
  text: "text",
356
386
  value: "value"
357
- }, _e = {
387
+ }, Ce = {
358
388
  ...r,
359
389
  text: "text",
360
390
  hint: "hint",
361
391
  icon: "icon",
362
392
  value: "value"
363
- }, Ce = {
393
+ }, Ae = {
364
394
  ...r,
365
395
  buttons: "buttons"
366
- }, Ae = {
396
+ }, Ne = {
367
397
  ...r,
368
398
  text: "text",
369
399
  hint: "hint",
370
400
  icon: "icon",
371
401
  value: "value"
372
- }, Ne = {
402
+ }, De = {
373
403
  ...r,
374
404
  placeholder: "placeholder"
375
- }, De = {
405
+ }, Se = {
376
406
  ...r,
377
407
  resizable: "resizable",
378
408
  placeholder: "placeholder"
379
- }, Se = {
409
+ }, Me = {
380
410
  ...r,
381
411
  img: "img",
382
412
  src: "src",
@@ -390,47 +420,51 @@ var Z = {
390
420
  }, Be = {
391
421
  ...r,
392
422
  controlId: "control-id"
393
- }, Me = {
423
+ }, xe = {
394
424
  ...r,
395
425
  expanded: "expanded"
396
- }, xe = {
426
+ }, ve = {
397
427
  ...r,
398
428
  icon: "icon",
399
429
  position: "position"
400
- }, ve = {
401
- ...r
402
430
  }, ye = {
431
+ ...r
432
+ }, Pe = {
403
433
  ...r,
404
434
  icon: "icon"
405
435
  }, Ue = {
406
436
  ...r
407
- }, $e = {
437
+ }, we = {
438
+ ...r,
439
+ blockId: "block-id"
440
+ }, Ze = {
408
441
  DEFAULT: r,
409
- BUTTON: ce,
410
- CHECKBOX: Te,
411
- CHECK_BUTTONS: Ce,
442
+ BUTTON: Ie,
443
+ CHECKBOX: be,
444
+ CHECK_BUTTONS: Ae,
412
445
  COLOR: r,
413
- COUNTER: be,
414
- DATEPICKER: Oe,
415
- LABEL: he,
416
- MESSAGE: ge,
417
- RADIO_BUTTONS: me,
418
- SELECTPICKER: k,
419
- FONT_FAMILY_SELECT: Re,
446
+ COUNTER: he,
447
+ DATEPICKER: me,
448
+ LABEL: ge,
449
+ MESSAGE: Oe,
450
+ RADIO_BUTTONS: Re,
451
+ SELECTPICKER: p,
452
+ FONT_FAMILY_SELECT: Le,
420
453
  SWITCHER: r,
421
- TEXT: Ne,
422
- TEXTAREA: De,
423
- ICON: Se,
424
- CHECK_ITEM: _e,
425
- SELECT_ITEM: Le,
426
- RADIO_ITEM: Ae,
454
+ TEXT: De,
455
+ TEXTAREA: Se,
456
+ ICON: Me,
457
+ CHECK_ITEM: Ce,
458
+ SELECT_ITEM: _e,
459
+ RADIO_ITEM: Ne,
427
460
  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 {
461
+ EXPANDABLE: xe,
462
+ ORDERABLE: ve,
463
+ ORDERABLE_ITEM: ye,
464
+ ORDERABLE_ICON: Pe,
465
+ REPEATABLE: Ue,
466
+ DRAGGABLE_BLOCK: we
467
+ }, Ke = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e))(Ke || {}), x = class {
434
468
  /**
435
469
  * @description returns map of nodes parent control operates on
436
470
  */
@@ -461,68 +495,68 @@ var Z = {
461
495
  isVisible(e) {
462
496
  return !0;
463
497
  }
464
- }, l = class extends M {
498
+ }, l = class extends x {
465
499
  getTargetNodes(e) {
466
- const t = e.querySelectorAll(I.BUTTON), n = e.asElement().hasClass(y) ? [e] : [];
467
- return t.length ? t : n;
500
+ const t = e.querySelectorAll(c.BUTTON), a = e.asElement().hasClass(P) ? [e] : [];
501
+ return t.length ? t : a;
468
502
  }
469
- }, We = class extends l {
503
+ }, je = class extends l {
470
504
  getParentControlId() {
471
- return a.BLOCK_BUTTON.BORDER_RADIUS;
505
+ return n.BLOCK_BUTTON.BORDER_RADIUS;
472
506
  }
473
507
  getLabels() {
474
508
  }
475
- }, ze = class extends l {
509
+ }, qe = class extends l {
476
510
  getParentControlId() {
477
- return a.BLOCK_BUTTON.ALIGNMENT;
511
+ return n.BLOCK_BUTTON.ALIGNMENT;
478
512
  }
479
- }, Ze = class extends l {
513
+ }, Je = class extends l {
480
514
  getParentControlId() {
481
- return a.GENERAL.BACKGROUND_COLOR;
515
+ return n.GENERAL.BACKGROUND_COLOR;
482
516
  }
483
- }, je = class extends l {
517
+ }, et = class extends l {
484
518
  getParentControlId() {
485
- return a.BLOCK_BUTTON.BORDER;
519
+ return n.BLOCK_BUTTON.BORDER;
486
520
  }
487
521
  getLabels() {
488
522
  }
489
- }, qe = class extends l {
523
+ }, tt = class extends l {
490
524
  getParentControlId() {
491
- return a.BLOCK_BUTTON.COLOR;
525
+ return n.BLOCK_BUTTON.COLOR;
492
526
  }
493
- }, Je = class extends l {
527
+ }, rt = class extends l {
494
528
  getParentControlId() {
495
- return a.BLOCK_BUTTON.ADJUST_TO_WIDTH;
529
+ return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
496
530
  }
497
- }, et = class extends l {
531
+ }, at = class extends l {
498
532
  getParentControlId() {
499
- return a.BLOCK_BUTTON.FONT_FAMILY;
533
+ return n.BLOCK_BUTTON.FONT_FAMILY;
500
534
  }
501
- }, tt = class extends l {
535
+ }, nt = class extends l {
502
536
  getParentControlId() {
503
- return a.BLOCK_BUTTON.EXTERNAL_INDENTS;
537
+ return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
504
538
  }
505
- }, rt = class extends l {
539
+ }, st = class extends l {
506
540
  getParentControlId() {
507
- return a.BLOCK_BUTTON.INTERNAL_INDENTS;
541
+ return n.BLOCK_BUTTON.INTERNAL_INDENTS;
508
542
  }
509
- }, nt = class extends l {
543
+ }, it = class extends l {
510
544
  getParentControlId() {
511
- return a.BLOCK_BUTTON.TEXT;
545
+ return n.BLOCK_BUTTON.TEXT;
512
546
  }
513
- }, at = class extends l {
547
+ }, lt = class extends l {
514
548
  getParentControlId() {
515
- return a.BLOCK_BUTTON.FONT_SIZE;
549
+ return n.BLOCK_BUTTON.FONT_SIZE;
516
550
  }
517
- }, st = class extends l {
551
+ }, Et = class extends l {
518
552
  getParentControlId() {
519
- return a.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
553
+ return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
520
554
  }
521
555
  getLabels() {
522
556
  }
523
- }, X = class O extends s {
557
+ }, X = class h extends s {
524
558
  constructor() {
525
- super(O.REQUIRED_METHODS, O);
559
+ super(h.REQUIRED_METHODS, h);
526
560
  }
527
561
  /**
528
562
  * @description Allows to determine if control should be visible or hidden in control panel.
@@ -576,9 +610,9 @@ var Z = {
576
610
  }
577
611
  };
578
612
  X.REQUIRED_METHODS = ["getId", "getTemplate"];
579
- var it = X, we = class h extends s {
613
+ var ot = X, Fe = class m extends s {
580
614
  constructor() {
581
- super(h.REQUIRED_METHODS, h);
615
+ super(m.REQUIRED_METHODS, m);
582
616
  }
583
617
  /**
584
618
  * Gets the unique identifier for this tab.
@@ -645,30 +679,95 @@ var it = X, we = class h extends s {
645
679
  onDestroy() {
646
680
  }
647
681
  };
648
- we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
649
- var p = class extends M {
682
+ Fe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
683
+ var G = class extends x {
650
684
  getTargetNodes(e) {
651
- const t = e.querySelectorAll(I.IMAGE), n = e.asElement().hasClass(P) ? [e] : [];
652
- return t.length ? t : n;
685
+ const t = e.querySelectorAll(c.IMAGE), a = e.asElement().hasClass(w) ? [e] : [];
686
+ return t.length ? t : a;
653
687
  }
654
- }, lt = class extends p {
688
+ }, dt = class extends G {
655
689
  getParentControlId() {
656
- return a.BLOCK_IMAGE.EXTERNAL_INDENTS;
690
+ return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
657
691
  }
658
- }, Et = class extends p {
692
+ }, ut = class extends G {
659
693
  getParentControlId() {
660
- return a.BLOCK_IMAGE.SIZE;
694
+ return n.BLOCK_IMAGE.SIZE;
661
695
  }
662
- }, G = class g extends s {
696
+ }, He = class g extends s {
663
697
  constructor() {
664
698
  super(g.REQUIRED_METHODS, g);
665
699
  }
700
+ /**
701
+ * Gets the unique identifier for this tab.
702
+ * This ID is used for registration.
703
+ * @returns A unique string ID.
704
+ */
705
+ getId() {
706
+ throw new Error("Method getId() must be implemented by the subclass");
707
+ }
708
+ /**
709
+ * Gets the icon key representing this tab in the header.
710
+ * @returns A string representing the icon key from the IconsRegistry
711
+ */
712
+ getIcon() {
713
+ throw new Error("Method getIcon() must be implemented by the subclass");
714
+ }
715
+ /**
716
+ * Retrieves the index of the tab associated with the panel.
717
+ * The index represents the position/order of the tab in the UI.
718
+ *
719
+ * @returns {number} The index of the tab.
720
+ */
721
+ getTabIndex() {
722
+ throw new Error("Method getTabIndex() must be implemented by the subclass");
723
+ }
724
+ /**
725
+ * Gets the display name of the tab shown to the user in the header hint.
726
+ * Use `this.api.translate()` for localization.
727
+ * @returns The localized tab name string.
728
+ */
729
+ getName() {
730
+ throw new Error("Method getName() must be implemented by the subclass");
731
+ }
732
+ /**
733
+ * Determines if the tab should be available for use in the editor.
734
+ * Override to provide custom logic based on the editor state or configuration.
735
+ * @returns True if the tab is enabled, false otherwise. Defaults to true.
736
+ */
737
+ isEnabled() {
738
+ return !0;
739
+ }
740
+ /**
741
+ * Gets the HTML template string that defines the initial structure of this tab.
742
+ * @returns An HTML string.
743
+ */
744
+ getTemplate() {
745
+ throw new Error("Method getTemplate() must be implemented by the subclass");
746
+ }
747
+ /**
748
+ * Optional hook called when the modules panel tab is initially rendered.
749
+ * Use this for setup tasks like attaching event listeners to the panel's template elements.
750
+ */
751
+ onRender() {
752
+ }
753
+ /**
754
+ * Lifecycle hook called when any part of the document template has changed.
755
+ * This can be frequent; use cautiously for performance-sensitive operations.
756
+ */
757
+ onDocumentChanged() {
758
+ }
759
+ };
760
+ He.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
761
+ var V = class O extends s {
762
+ constructor() {
763
+ super(O.REQUIRED_METHODS, O);
764
+ }
666
765
  registerBlockControls(t) {
667
766
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
668
767
  }
669
768
  };
670
- G.REQUIRED_METHODS = ["registerBlockControls"];
671
- var ot = G, dt = class {
769
+ V.REQUIRED_METHODS = ["registerBlockControls"];
770
+ var ct = V, Tt = class {
672
771
  constructor(e, t) {
673
772
  this.tabId = e, this.controlsIds = t;
674
773
  }
@@ -691,42 +790,42 @@ var ot = G, dt = class {
691
790
  const t = this.controlsIds.indexOf(e);
692
791
  t !== -1 && this.controlsIds.splice(t, 1);
693
792
  }
694
- }, E = class extends M {
793
+ }, E = class extends x {
695
794
  getTargetNodes(e) {
696
- const t = e.querySelectorAll(I.TEXT), n = e.asElement().hasClass(U) ? [e] : [];
697
- return t.length ? t : n;
795
+ const t = e.querySelectorAll(c.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
796
+ return t.length ? t : a;
698
797
  }
699
- }, ut = class extends E {
798
+ }, It = class extends E {
700
799
  getParentControlId() {
701
- return a.GENERAL.TEXT_ALIGN;
800
+ return n.GENERAL.TEXT_ALIGN;
702
801
  }
703
- }, It = class extends E {
802
+ }, bt = class extends E {
704
803
  getParentControlId() {
705
- return a.GENERAL.TEXT_COLOR;
804
+ return n.GENERAL.TEXT_COLOR;
706
805
  }
707
- }, ct = class extends E {
806
+ }, ht = class extends E {
708
807
  getParentControlId() {
709
- return a.BLOCK_TEXT.FONT_FAMILY;
808
+ return n.BLOCK_TEXT.FONT_FAMILY;
710
809
  }
711
- }, Tt = class extends E {
810
+ }, mt = class extends E {
712
811
  getParentControlId() {
713
- return a.GENERAL.TEXT_LINE_SPACING;
812
+ return n.GENERAL.TEXT_LINE_SPACING;
714
813
  }
715
- }, bt = class extends E {
814
+ }, gt = class extends E {
716
815
  getParentControlId() {
717
- return a.BLOCK_TEXT.INTERNAL_INDENTS;
816
+ return n.BLOCK_TEXT.INTERNAL_INDENTS;
718
817
  }
719
818
  }, Ot = class extends E {
720
819
  getParentControlId() {
721
- return a.GENERAL.TEXT_SIZE;
820
+ return n.GENERAL.TEXT_SIZE;
722
821
  }
723
- }, ht = class extends E {
822
+ }, Rt = class extends E {
724
823
  getParentControlId() {
725
- return a.GENERAL.TEXT_STYLE;
824
+ return n.GENERAL.TEXT_STYLE;
726
825
  }
727
- }, Ke = class {
826
+ }, ke = class {
728
827
  constructor(e) {
729
- this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
828
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], 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.modulesPanelTabs = (e == null ? void 0 : e.modulesPanelTabs) ?? [], 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
829
  }
731
830
  getI18n() {
732
831
  return this.i18n;
@@ -785,9 +884,12 @@ var ot = G, dt = class {
785
884
  getGeneralPanelTabs() {
786
885
  return this.generalPanelTabs;
787
886
  }
788
- }, gt = class {
887
+ getModulesPanelTabs() {
888
+ return this.modulesPanelTabs;
889
+ }
890
+ }, Lt = class {
789
891
  constructor() {
790
- this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
892
+ this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
791
893
  }
792
894
  withLocalization(e) {
793
895
  return this.i18n = e, this;
@@ -852,8 +954,11 @@ var ot = G, dt = class {
852
954
  addGeneralPanelTab(e) {
853
955
  return this.generalPanelTabs.push(e), this;
854
956
  }
957
+ addModulesPanelTab(e) {
958
+ return this.modulesPanelTabs.push(e), this;
959
+ }
855
960
  build() {
856
- return new Ke({
961
+ return new ke({
857
962
  i18n: this.i18n,
858
963
  styles: this.styles.map((e) => e.trim()).join(`
859
964
  `),
@@ -872,21 +977,22 @@ var ot = G, dt = class {
872
977
  blocksPanel: this.blocksPanel,
873
978
  iconsRegistry: this.iconsRegistry,
874
979
  externalImageLibraryTab: this.externalImageLibraryTab,
875
- generalPanelTabs: this.generalPanelTabs
980
+ generalPanelTabs: this.generalPanelTabs,
981
+ modulesPanelTabs: this.modulesPanelTabs
876
982
  });
877
983
  }
878
- }, Fe = class m extends s {
984
+ }, pe = class R extends s {
879
985
  constructor() {
880
- super(m.REQUIRED_METHODS, m);
986
+ super(R.REQUIRED_METHODS, R);
881
987
  }
882
988
  openAiAssistant(t) {
883
989
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
884
990
  }
885
991
  };
886
- Fe.REQUIRED_METHODS = ["openAiAssistant"];
887
- var He = class R extends s {
992
+ pe.REQUIRED_METHODS = ["openAiAssistant"];
993
+ var Xe = class L extends s {
888
994
  constructor() {
889
- super(R.REQUIRED_METHODS, R);
995
+ super(L.REQUIRED_METHODS, L);
890
996
  }
891
997
  /**
892
998
  * Retrieves the name of the category.
@@ -903,7 +1009,7 @@ var He = class R extends s {
903
1009
  * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
904
1010
  * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
905
1011
  */
906
- openExternalDisplayConditionsDialog(t, n, i) {
1012
+ openExternalDisplayConditionsDialog(t, a, i) {
907
1013
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
908
1014
  }
909
1015
  /**
@@ -924,19 +1030,19 @@ var He = class R extends s {
924
1030
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
925
1031
  }
926
1032
  };
927
- He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
928
- var ke = class L extends s {
1033
+ Xe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
1034
+ var Ge = class _ extends s {
929
1035
  constructor() {
930
- super(L.REQUIRED_METHODS, L);
1036
+ super(_.REQUIRED_METHODS, _);
931
1037
  }
932
- openImageLibrary(t, n, i) {
1038
+ openImageLibrary(t, a, i) {
933
1039
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
934
1040
  }
935
1041
  };
936
- ke.REQUIRED_METHODS = ["openImageLibrary"];
937
- var Xe = class _ extends s {
1042
+ Ge.REQUIRED_METHODS = ["openImageLibrary"];
1043
+ var Ve = class C extends s {
938
1044
  constructor() {
939
- super(_.REQUIRED_METHODS, _);
1045
+ super(C.REQUIRED_METHODS, C);
940
1046
  }
941
1047
  /**
942
1048
  * @description Returns the translated name/label for the tab
@@ -951,39 +1057,39 @@ var Xe = class _ extends s {
951
1057
  * @param _onImageSelectCallback - Callback to invoke when an image is selected
952
1058
  * @param _selectedNode - (Optional) Selected node for which the gallery is being opened
953
1059
  */
954
- openImageLibraryTab(t, n, i) {
1060
+ openImageLibraryTab(t, a, i) {
955
1061
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
956
1062
  }
957
1063
  };
958
- Xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
959
- var pe = class C extends s {
1064
+ Ve.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
1065
+ var Qe = class A extends s {
960
1066
  constructor() {
961
- super(C.REQUIRED_METHODS, C);
1067
+ super(A.REQUIRED_METHODS, A);
962
1068
  }
963
- openSmartElementsLibrary(t, n) {
1069
+ openSmartElementsLibrary(t, a) {
964
1070
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
965
1071
  }
966
1072
  };
967
- pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
968
- var Ge = class A extends s {
1073
+ Qe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
1074
+ var fe = class N extends s {
969
1075
  constructor() {
970
- super(A.REQUIRED_METHODS, A);
1076
+ super(N.REQUIRED_METHODS, N);
971
1077
  }
972
- openExternalVideosLibraryDialog(t, n, i) {
1078
+ openExternalVideosLibraryDialog(t, a, i) {
973
1079
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
974
1080
  }
975
1081
  };
976
- Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
977
- var V = class N extends s {
1082
+ fe.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
1083
+ var Q = class D extends s {
978
1084
  constructor() {
979
- super(N.REQUIRED_METHODS, N);
1085
+ super(D.REQUIRED_METHODS, D);
980
1086
  }
981
1087
  registerIconsSvg(t) {
982
1088
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
983
1089
  }
984
1090
  };
985
- V.REQUIRED_METHODS = ["registerIconsSvg"];
986
- var mt = V, Rt = class {
1091
+ Q.REQUIRED_METHODS = ["registerIconsSvg"];
1092
+ var _t = Q, Ct = class {
987
1093
  constructor(e) {
988
1094
  this.key = e;
989
1095
  }
@@ -996,9 +1102,9 @@ var mt = V, Rt = class {
996
1102
  params: this.params
997
1103
  };
998
1104
  }
999
- }, Q = class D extends s {
1105
+ }, f = class S extends s {
1000
1106
  constructor() {
1001
- super(D.REQUIRED_METHODS, D);
1107
+ super(S.REQUIRED_METHODS, S);
1002
1108
  }
1003
1109
  /**
1004
1110
  * Called when the UI element should render its content into the provided container.
@@ -1033,7 +1139,7 @@ var mt = V, Rt = class {
1033
1139
  * @param name - The name of the attribute that was updated.
1034
1140
  * @param value - The new value of the attribute.
1035
1141
  */
1036
- onAttributeUpdated(t, n) {
1142
+ onAttributeUpdated(t, a) {
1037
1143
  }
1038
1144
  /**
1039
1145
  * Gets the unique identifier for this UI element type.
@@ -1051,64 +1157,64 @@ var mt = V, Rt = class {
1051
1157
  throw new Error("Method getTemplate() must be implemented by the subclass");
1052
1158
  }
1053
1159
  };
1054
- Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
1055
- var Lt = Q, f = class S extends s {
1160
+ f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
1161
+ var At = f, Y = class M extends s {
1056
1162
  constructor() {
1057
- super(S.REQUIRED_METHODS, S);
1163
+ super(M.REQUIRED_METHODS, M);
1058
1164
  }
1059
1165
  registerUiElements(t) {
1060
1166
  throw new Error("Method registerUiElements() must be implemented by the subclass");
1061
1167
  }
1062
1168
  };
1063
- f.REQUIRED_METHODS = ["registerUiElements"];
1064
- var _t = f;
1169
+ Y.REQUIRED_METHODS = ["registerUiElements"];
1170
+ var Nt = Y;
1065
1171
  export {
1066
- Qe as Block,
1067
- Ye as BlockAttr,
1068
- $ as BlockCompositionType,
1069
- I as BlockSelector,
1070
- Ee as BlockType,
1071
- fe as BlocksPanel,
1072
- M as BuiltInControl,
1073
- a as BuiltInControlTypes,
1074
- ze as ButtonAlignBuiltInControl,
1075
- Ze as ButtonBackgroundColorBuiltInControl,
1076
- je as ButtonBorderBuiltInControl,
1077
- We as ButtonBorderRadiusBuiltInControl,
1078
- qe as ButtonColorBuiltInControl,
1079
- 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,
1092
- w as GeneralControls,
1093
- mt as IconsRegistry,
1094
- 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,
1104
- F as TextControls,
1105
- ct as TextFontFamilyBuiltInControl,
1106
- Tt as TextLineSpacingBuiltInControl,
1107
- bt as TextPaddingsBuiltInControl,
1172
+ $e as Block,
1173
+ ze as BlockAttr,
1174
+ W as BlockCompositionType,
1175
+ c as BlockSelector,
1176
+ oe as BlockType,
1177
+ We as BlocksPanel,
1178
+ x as BuiltInControl,
1179
+ n as BuiltInControlTypes,
1180
+ qe as ButtonAlignBuiltInControl,
1181
+ Je as ButtonBackgroundColorBuiltInControl,
1182
+ et as ButtonBorderBuiltInControl,
1183
+ je as ButtonBorderRadiusBuiltInControl,
1184
+ tt as ButtonColorBuiltInControl,
1185
+ F as ButtonControls,
1186
+ rt as ButtonFitToContainerBuiltInControl,
1187
+ at as ButtonFontFamilyBuiltInControl,
1188
+ nt as ButtonMarginsBuiltInControl,
1189
+ st as ButtonPaddingsBuiltInControl,
1190
+ it as ButtonTextBuiltInControl,
1191
+ lt as ButtonTextSizeBuiltInControl,
1192
+ Et as ButtonTextStyleAndFontColorBuiltInControl,
1193
+ de as ContainerControls,
1194
+ ot as Control,
1195
+ ue as EditorStatePropertyType,
1196
+ ke as Extension,
1197
+ Lt as ExtensionBuilder,
1198
+ K as GeneralControls,
1199
+ _t as IconsRegistry,
1200
+ k as ImageControls,
1201
+ dt as ImageMarginsBuiltInControl,
1202
+ ut as ImageSizeBuiltInControl,
1203
+ Ct as ModificationDescription,
1204
+ ce as PreviewDeviceMode,
1205
+ ct as SettingsPanelRegistry,
1206
+ Tt as SettingsPanelTab,
1207
+ Te as SettingsTab,
1208
+ It as TextAlignBuiltInControl,
1209
+ bt as TextColorBuiltInControl,
1210
+ H as TextControls,
1211
+ ht as TextFontFamilyBuiltInControl,
1212
+ mt as TextLineSpacingBuiltInControl,
1213
+ gt as TextPaddingsBuiltInControl,
1108
1214
  Ot as TextSizeBuiltInControl,
1109
- ht as TextStyleBuiltInControl,
1110
- $e as UEAttr,
1111
- Lt as UIElement,
1112
- _t as UIElementTagRegistry,
1113
- Pe as UIElementType
1215
+ Rt as TextStyleBuiltInControl,
1216
+ Ze as UEAttr,
1217
+ At as UIElement,
1218
+ Nt as UIElementTagRegistry,
1219
+ Ke as UIElementType
1114
1220
  };