@useinsider/guido 3.2.0-beta.b277bd3 → 3.2.0-beta.bdc0c2a

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.
@@ -1,34 +1,54 @@
1
1
  var x = Object.defineProperty;
2
- var f = (r, t, e) => t in r ? x(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var b = (r, t, e) => f(r, typeof t != "symbol" ? t + "" : t, e);
4
- import h from "../../extensions/Blocks/RadioButton/template.js";
5
- class T {
2
+ var T = (l, e, t) => e in l ? x(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
+ var b = (l, e, t) => T(l, typeof e != "symbol" ? e + "" : e, t);
4
+ import S from "../../extensions/Blocks/RadioButton/template.js";
5
+ class B {
6
6
  constructor() {
7
7
  b(this, "parser");
8
8
  this.parser = new DOMParser();
9
9
  }
10
- migrate(t) {
10
+ migrate(e) {
11
11
  try {
12
- const e = this.parser.parseFromString(t, "text/html"), i = e.querySelectorAll("td.radio-button-block");
13
- return i.length === 0 ? t : (i.forEach((s) => {
14
- if (s.classList.contains("radio-button-v2"))
12
+ const t = this.parser.parseFromString(e, "text/html"), i = t.querySelectorAll("td.radio-button-block"), s = t.querySelectorAll("td.radio-button-v2");
13
+ if (i.length === 0 && s.length === 0)
14
+ return e;
15
+ let o = !1;
16
+ return i.forEach((r) => {
17
+ if (r.classList.contains("radio-button-v2"))
15
18
  return;
16
- const n = s.getAttribute("id"), l = this.extractTextFromElement(s, "ins-title"), a = this.extractTextFromElement(s, "ins-description"), p = this.extractTextFromElement(s, "ins-subscribe"), u = this.extractTextFromElement(s, "ins-unsubscribe"), d = this.buildTextBlock(l), g = this.buildTextBlock(a), m = this.buildTextBlock({ ...p, classList: "" }), o = this.buildTextBlock({ ...u, classList: "" }), c = h.replace("{-{-TITLE-}-}", d).replace("{-{-DESCRIPTION-}-}", g).replace("{-{-YES-}-}", m).replace("{-{-NO-}-}", o), y = this.parser.parseFromString(
17
- `<table id="tempDoc"><tbody><tr>${c}</tr></tbody></table>`,
19
+ const n = r.getAttribute("id"), a = this.extractTextFromElement(r, "ins-title"), g = this.extractTextFromElement(r, "ins-description"), c = this.extractTextFromElement(r, "ins-subscribe"), u = this.extractTextFromElement(r, "ins-unsubscribe"), d = this.buildTextBlock(a), p = this.buildTextBlock(g), y = this.buildTextBlock({ ...c, classList: "" }), f = this.buildTextBlock({ ...u, classList: "" }), h = S.replace("{-{-TITLE-}-}", d).replace("{-{-DESCRIPTION-}-}", p).replace("{-{-YES-}-}", y).replace("{-{-NO-}-}", f), m = this.parser.parseFromString(
20
+ `<table id="tempDoc"><tbody><tr>${h}</tr></tbody></table>`,
18
21
  "text/html"
19
22
  ).querySelector(".radio-button-v2");
20
- y && s.parentNode && (y.setAttribute("id", n || ""), s.parentNode.replaceChild(y, s));
21
- }), e.documentElement.outerHTML);
22
- } catch (e) {
23
- return console.error("RadioButtonMigrator failed:", e), t;
23
+ m && r.parentNode && (m.setAttribute("id", n || ""), r.parentNode.replaceChild(m, r), o = !0);
24
+ }), o = this.healRadioButtonV2(t) || o, o ? t.documentElement.outerHTML : e;
25
+ } catch (t) {
26
+ return console.error("RadioButtonMigrator failed:", t), e;
24
27
  }
25
28
  }
26
- extractTextFromElement(t, e) {
27
- var o, c;
28
- const i = t.querySelector(`.${e}`);
29
+ healRadioButtonV2(e) {
30
+ let t = !1;
31
+ return e.querySelectorAll("td.radio-button-v2").forEach((i) => {
32
+ var p;
33
+ const s = i.querySelector("input#radioYes"), o = i.querySelector("input#radioNo");
34
+ if (!s || !o)
35
+ return;
36
+ const r = ((p = s.parentElement) == null ? void 0 : p.querySelector(":scope > p")) || null;
37
+ if (!r && !s.hasAttribute("align"))
38
+ return;
39
+ const n = s.closest("tr"), a = o.closest("tr");
40
+ if (!n || !a || n === a || !n.parentNode)
41
+ return;
42
+ const g = (r == null ? void 0 : r.innerHTML.trim()) || "Yes", c = a.cloneNode(!0), u = c.querySelector("input#radioNo"), d = c.querySelector("p");
43
+ u && (u.setAttribute("id", "radioYes"), u.removeAttribute("align")), d && (d.innerHTML = g), n.parentNode.replaceChild(c, n), t = !0;
44
+ }), t;
45
+ }
46
+ extractTextFromElement(e, t) {
47
+ var p, y;
48
+ const i = e.querySelector(`.${t}`);
29
49
  if (!i)
30
50
  return {
31
- text: e === "ins-title" ? "Title" : "Description",
51
+ text: t === "ins-title" ? "Title" : "Description",
32
52
  isBold: !1,
33
53
  isItalic: !1,
34
54
  align: "left",
@@ -38,51 +58,51 @@ class T {
38
58
  const s = i.querySelector("p");
39
59
  if (!s)
40
60
  return {
41
- text: ((o = i.textContent) == null ? void 0 : o.trim()) || (e === "ins-title" ? "Title" : "Description"),
61
+ text: ((p = i.textContent) == null ? void 0 : p.trim()) || (t === "ins-title" ? "Title" : "Description"),
42
62
  isBold: !1,
43
63
  isItalic: !1,
44
64
  align: i.getAttribute("align") || "left",
45
65
  styles: "",
46
66
  classList: ""
47
67
  };
48
- const n = ((c = s.textContent) == null ? void 0 : c.trim()) || (e === "ins-title" ? "Title" : "Description"), l = s.getAttribute("style") || "", a = i.getAttribute("align") || s.getAttribute("align") || "left", p = /font-weight\s*:\s*bold/i.test(l) || !!s.querySelector("b, strong"), u = /font-style\s*:\s*italic/i.test(l) || !!s.querySelector("i, em"), d = this.removeStyleProperties(l, ["font-weight", "font-style"]), g = this.convertInlineToBlock(d), m = i.getAttribute("class") || "";
68
+ const o = ((y = s.textContent) == null ? void 0 : y.trim()) || (t === "ins-title" ? "Title" : "Description"), r = s.getAttribute("style") || "", n = i.getAttribute("align") || s.getAttribute("align") || "left", a = /font-weight\s*:\s*bold/i.test(r) || !!s.querySelector("b, strong"), g = /font-style\s*:\s*italic/i.test(r) || !!s.querySelector("i, em"), c = this.removeStyleProperties(r, ["font-weight", "font-style"]), u = this.convertInlineToBlock(c), d = i.getAttribute("class") || "";
49
69
  return {
50
- text: n,
51
- isBold: p,
52
- isItalic: u,
53
- align: a,
54
- styles: g,
55
- classList: m
70
+ text: o,
71
+ isBold: a,
72
+ isItalic: g,
73
+ align: n,
74
+ styles: u,
75
+ classList: d
56
76
  };
57
77
  }
58
- buildTextBlock(t) {
59
- let e = t.text;
60
- t.isBold && t.isItalic ? e = `<strong path="1,0"><em path="1,0,0">${e}</em></strong>` : t.isBold ? e = `<strong path="1,0">${e}</strong>` : t.isItalic && (e = `<em path="1,0">${e}</em>`);
61
- const i = t.align ? ` align="${t.align}"` : "", s = t.styles ? ` style="${t.styles.replaceAll('"', "'")}"` : "";
78
+ buildTextBlock(e) {
79
+ let t = e.text;
80
+ e.isBold && e.isItalic ? t = `<strong path="1,0"><em path="1,0,0">${t}</em></strong>` : e.isBold ? t = `<strong path="1,0">${t}</strong>` : e.isItalic && (t = `<em path="1,0">${t}</em>`);
81
+ const i = e.align ? ` align="${e.align}"` : "", s = e.styles ? ` style="${e.styles.replaceAll('"', "'")}"` : "";
62
82
  return `
63
- <td class="esd-block-text ${t.classList}" ${i}>
83
+ <td class="esd-block-text ${e.classList}" ${i}>
64
84
  <p path="1" ${s}>
65
- ${e}
85
+ ${t}
66
86
  </p>
67
87
  </td>
68
88
  `;
69
89
  }
70
- removeStyleProperties(t, e) {
71
- return t ? e.reduce((s, n) => {
72
- const l = new RegExp(`${n}\\s*:\\s*[^;]*;?`, "gi");
73
- return s.replace(l, "");
74
- }, t).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
90
+ removeStyleProperties(e, t) {
91
+ return e ? t.reduce((s, o) => {
92
+ const r = new RegExp(`${o}\\s*:\\s*[^;]*;?`, "gi");
93
+ return s.replace(r, "");
94
+ }, e).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
75
95
  }
76
- convertInlineToBlock(t) {
77
- if (!t)
96
+ convertInlineToBlock(e) {
97
+ if (!e)
78
98
  return "";
79
- let e = t.replace(/display\s*:\s*inline/gi, "display: block");
80
- return /display\s*:/i.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
99
+ let t = e.replace(/display\s*:\s*inline/gi, "display: block");
100
+ return /display\s*:/i.test(t) || (t = t ? `${t}; display: block` : "display: block"), t.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
81
101
  }
82
102
  }
83
- function A(r) {
84
- return new T().migrate(r);
103
+ function q(l) {
104
+ return new B().migrate(l);
85
105
  }
86
106
  export {
87
- A as migrateRadioButton
107
+ q as migrateRadioButton
88
108
  };
@@ -119,7 +119,7 @@ const e = {
119
119
  id="radioYes"
120
120
  name="unsubscribe"
121
121
  data-cke-editable="1"
122
- style="margin: 0px; vertical-align: middle;>
122
+ style="margin: 0px; vertical-align: middle;">
123
123
  </td>
124
124
  {-{-YES-}-}
125
125
  </tr>
@@ -1,17 +1,17 @@
1
- var x = class d {
1
+ var B = class d {
2
2
  /**
3
3
  * Validates that all required methods are properly implemented in the subclass.
4
4
  * @param requiredMethods - Array of method names that must be implemented
5
5
  * @param classRef - Reference to the class constructor for validation caching
6
6
  */
7
- constructor(t, r) {
8
- if (r !== d) {
9
- d.validatedClasses.has(r) || this.validateImplementation(t, r);
10
- const s = d.validationErrors.get(r);
11
- if (s && s.length > 0)
7
+ constructor(t, a) {
8
+ if (a !== d) {
9
+ d.validatedClasses.has(a) || this.validateImplementation(t, a);
10
+ const i = d.validationErrors.get(a);
11
+ if (i && i.length > 0)
12
12
  throw new Error(
13
- `${r.name} has validation errors:
14
- ${s.map((o) => ` - ${o}`).join(`
13
+ `${a.name} has validation errors:
14
+ ${i.map((o) => ` - ${o}`).join(`
15
15
  `)}`
16
16
  );
17
17
  }
@@ -20,16 +20,16 @@ ${s.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, r) {
24
- var y;
25
- const s = [], o = r.name, W = 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
- s.push(`Method ${u}() is not defined`);
28
+ i.push(`Method ${u}() is not defined`);
29
29
  return;
30
30
  }
31
- W[u] === r.prototype[u] && s.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : typeof process < "u" && ((y = process.env) == null ? void 0 : y.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
33
  }
34
34
  /**
35
35
  * Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
@@ -39,9 +39,9 @@ ${s.map((o) => ` - ${o}`).join(`
39
39
  destroy() {
40
40
  }
41
41
  };
42
- x.validatedClasses = /* @__PURE__ */ new Set();
43
- x.validationErrors = /* @__PURE__ */ new Map();
44
- var i = x, z = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(z || {}), P = class T extends i {
42
+ B.validatedClasses = /* @__PURE__ */ new Set();
43
+ B.validationErrors = /* @__PURE__ */ new Map();
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 {
45
45
  constructor() {
46
46
  super(T.REQUIRED_METHODS, T);
47
47
  }
@@ -160,9 +160,6 @@ var i = x, z = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
160
160
  allowInnerBlocksDND() {
161
161
  return !0;
162
162
  }
163
- allowInteractWithAMPWhenSelected() {
164
- return !0;
165
- }
166
163
  /**
167
164
  * Gets the unique identifier for this block type.
168
165
  * This ID is used for registration and referencing the block.
@@ -221,14 +218,15 @@ var i = x, z = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
221
218
  throw new Error("Method getDescription() must be implemented by the subclass");
222
219
  }
223
220
  };
224
- P.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
225
- var Ze = P, Z = class I extends i {
221
+ y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
222
+ var $e = y, z = class I extends s {
226
223
  constructor() {
227
224
  super(I.REQUIRED_METHODS, I);
228
225
  }
229
226
  /**
230
227
  * @deprecated - use {@link getPreviewInnerHtml} instead
231
228
  */
229
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
232
230
  getPreviewHtml(t) {
233
231
  }
234
232
  /**
@@ -238,8 +236,8 @@ var Ze = P, Z = class I extends i {
238
236
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
239
237
  }
240
238
  };
241
- Z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
242
- var qe = class {
239
+ z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
240
+ var We = class {
243
241
  /**
244
242
  * Generates HTML representation for a block item
245
243
  * @param block - The block item to generate HTML for
@@ -313,7 +311,7 @@ var qe = class {
313
311
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
314
312
  getModulesTabIconName(e) {
315
313
  }
316
- }, q = class b extends i {
314
+ }, Z = class b extends s {
317
315
  constructor() {
318
316
  super(b.REQUIRED_METHODS, b);
319
317
  }
@@ -330,86 +328,86 @@ var qe = class {
330
328
  throw new Error("Method onClick() must be implemented by the subclass");
331
329
  }
332
330
  };
333
- q.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
331
+ Z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
334
332
  var j = {
335
333
  src: "src",
336
334
  alt: "alt",
337
335
  href: "href",
338
336
  width: "width",
339
337
  height: "height"
340
- }, je = {
338
+ }, ze = {
341
339
  BLOCK_IMAGE: j
342
- }, U = "esd-block-button", w = "esd-block-text", K = "esd-block-image", J = "esd-structure", ee = "esd-block-video", te = "esd-block-social", re = "esd-block-banner", ae = "esd-block-timer", ne = "esd-block-menu", se = "esd-block-html", ie = "esd-block-spacer", le = "esd-container-frame", Ee = "esd-stripe", oe = "esd-amp-form", c = ((e) => (e.BUTTON = `.${U}`, e.TEXT = `.${w}`, e.IMAGE = `.${K}`, e.STRUCTURE = `.${J}`, e.VIDEO = `.${ee}`, e.SOCIAL = `.${te}`, e.BANNER = `.${re}`, e.TIMER = `.${ae}`, e.MENU = `.${ne}`, e.HTML = `.${se}`, e.SPACER = `.${ie}`, e.CONTAINER = `.${le}`, e.STRIPE = `.${Ee}`, e.FORM = `.${oe}`, e))(c || {}), de = /* @__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))(de || {}), F = /* @__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))(F || {}), H = /* @__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))(H || {}), k = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.FONT_WEIGHT = "textBlockFontWeight", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(k || {}), p = /* @__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))(p || {}), ue = /* @__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))(ue || {}), n = {
343
- BLOCK_BUTTON: H,
344
- BLOCK_TEXT: k,
345
- BLOCK_IMAGE: p,
346
- GENERAL: F
347
- }, ce = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e.themeMode = "themeMode", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(Te || {}), Ie = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Ie || {}), a = {
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 = {
348
346
  name: "name",
349
347
  disabled: "disabled"
350
- }, be = {
351
- ...a,
348
+ }, Ie = {
349
+ ...r,
352
350
  caption: "caption",
353
351
  icon: "icon"
354
- }, he = {
355
- ...a,
352
+ }, be = {
353
+ ...r,
356
354
  caption: "caption"
357
- }, me = {
358
- ...a,
355
+ }, he = {
356
+ ...r,
359
357
  minValue: "min-value",
360
358
  maxValue: "max-value",
361
359
  step: "step"
362
- }, ge = {
363
- ...a,
360
+ }, me = {
361
+ ...r,
364
362
  placeholder: "placeholder",
365
363
  minDate: "min-date"
366
- }, Oe = {
367
- ...a,
364
+ }, ge = {
365
+ ...r,
368
366
  text: "text",
369
367
  hint: "hint"
370
- }, Re = {
371
- ...a,
368
+ }, Oe = {
369
+ ...r,
372
370
  type: "type"
373
- }, Le = {
374
- ...a,
371
+ }, Re = {
372
+ ...r,
375
373
  buttons: "buttons"
376
- }, X = {
377
- ...a,
374
+ }, p = {
375
+ ...r,
378
376
  searchable: "searchable",
379
377
  multiSelect: "multi-select",
380
378
  placeholder: "placeholder",
381
379
  items: "items"
382
- }, _e = {
383
- ...X,
380
+ }, Le = {
381
+ ...p,
384
382
  addCustomFontOption: "add-custom-font-option"
385
- }, Ce = {
386
- ...a,
383
+ }, _e = {
384
+ ...r,
387
385
  text: "text",
388
386
  value: "value"
389
- }, Ae = {
390
- ...a,
387
+ }, Ce = {
388
+ ...r,
391
389
  text: "text",
392
390
  hint: "hint",
393
391
  icon: "icon",
394
392
  value: "value"
395
- }, Ne = {
396
- ...a,
393
+ }, Ae = {
394
+ ...r,
397
395
  buttons: "buttons"
398
- }, De = {
399
- ...a,
396
+ }, Ne = {
397
+ ...r,
400
398
  text: "text",
401
399
  hint: "hint",
402
400
  icon: "icon",
403
401
  value: "value"
404
- }, Se = {
405
- ...a,
402
+ }, De = {
403
+ ...r,
406
404
  placeholder: "placeholder"
407
- }, Me = {
408
- ...a,
405
+ }, Se = {
406
+ ...r,
409
407
  resizable: "resizable",
410
408
  placeholder: "placeholder"
411
- }, Be = {
412
- ...a,
409
+ }, Me = {
410
+ ...r,
413
411
  img: "img",
414
412
  src: "src",
415
413
  title: "title",
@@ -419,61 +417,54 @@ var j = {
419
417
  isActive: "is-active",
420
418
  visibility: "visibility",
421
419
  transform: "transform"
422
- }, xe = {
423
- ...a,
420
+ }, Be = {
421
+ ...r,
424
422
  controlId: "control-id"
425
- }, ve = {
426
- ...a,
423
+ }, xe = {
424
+ ...r,
427
425
  expanded: "expanded"
428
- }, ye = {
429
- ...a,
426
+ }, ve = {
427
+ ...r,
430
428
  icon: "icon",
431
429
  position: "position"
430
+ }, ye = {
431
+ ...r
432
432
  }, Pe = {
433
- ...a
434
- }, Ue = {
435
- ...a,
433
+ ...r,
436
434
  icon: "icon"
435
+ }, Ue = {
436
+ ...r
437
437
  }, we = {
438
- ...a
439
- }, Ke = {
440
- ...a,
438
+ ...r,
441
439
  blockId: "block-id"
442
- }, Fe = {
443
- ...a
444
- }, He = {
445
- ...a,
446
- placeholder: "placeholder"
447
- }, Je = {
448
- DEFAULT: a,
449
- BUTTON: be,
450
- CHECKBOX: he,
451
- CHECK_BUTTONS: Ne,
452
- COLOR: a,
453
- COUNTER: me,
454
- DATEPICKER: ge,
455
- LABEL: Oe,
456
- MESSAGE: Re,
457
- RADIO_BUTTONS: Le,
458
- SELECTPICKER: X,
459
- FONT_FAMILY_SELECT: _e,
460
- SWITCHER: a,
461
- TEXT: Se,
462
- TEXTAREA: Me,
463
- ICON: Be,
464
- CHECK_ITEM: Ae,
465
- SELECT_ITEM: Ce,
466
- RADIO_ITEM: De,
467
- NESTED_CONTROL: xe,
468
- EXPANDABLE: ve,
469
- ORDERABLE: ye,
470
- ORDERABLE_ITEM: Pe,
471
- ORDERABLE_ICON: Ue,
472
- REPEATABLE: we,
473
- DRAGGABLE_BLOCK: Ke,
474
- AMP_FORM_SERVICE_PICKER: Fe,
475
- MULTIPLE_SELECT: He
476
- }, 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.AMP_FORM_SERVICE_PICKER = "UE-AMP-FORM-SERVICE-PICKER", e.MULTIPLE_SELECT = "UE-MULTIPLE_SELECT", e.SCROLLABLE = "UE-SCROLLABLE-CONTAINER", e))(ke || {}), v = class {
440
+ }, Ze = {
441
+ DEFAULT: r,
442
+ BUTTON: Ie,
443
+ CHECKBOX: be,
444
+ CHECK_BUTTONS: Ae,
445
+ COLOR: r,
446
+ COUNTER: he,
447
+ DATEPICKER: me,
448
+ LABEL: ge,
449
+ MESSAGE: Oe,
450
+ RADIO_BUTTONS: Re,
451
+ SELECTPICKER: p,
452
+ FONT_FAMILY_SELECT: Le,
453
+ SWITCHER: r,
454
+ TEXT: De,
455
+ TEXTAREA: Se,
456
+ ICON: Me,
457
+ CHECK_ITEM: Ce,
458
+ SELECT_ITEM: _e,
459
+ RADIO_ITEM: Ne,
460
+ NESTED_CONTROL: Be,
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 {
477
468
  /**
478
469
  * @description returns map of nodes parent control operates on
479
470
  */
@@ -504,66 +495,66 @@ var j = {
504
495
  isVisible(e) {
505
496
  return !0;
506
497
  }
507
- }, l = class extends v {
498
+ }, l = class extends x {
508
499
  getTargetNodes(e) {
509
- const t = e.querySelectorAll(c.BUTTON), r = e.asElement().hasClass(U) ? [e] : [];
510
- return t.length ? t : r;
500
+ const t = e.querySelectorAll(c.BUTTON), a = e.asElement().hasClass(P) ? [e] : [];
501
+ return t.length ? t : a;
511
502
  }
512
- }, et = class extends l {
503
+ }, je = class extends l {
513
504
  getParentControlId() {
514
505
  return n.BLOCK_BUTTON.BORDER_RADIUS;
515
506
  }
516
507
  getLabels() {
517
508
  }
518
- }, tt = class extends l {
509
+ }, qe = class extends l {
519
510
  getParentControlId() {
520
511
  return n.BLOCK_BUTTON.ALIGNMENT;
521
512
  }
522
- }, rt = class extends l {
513
+ }, Je = class extends l {
523
514
  getParentControlId() {
524
515
  return n.GENERAL.BACKGROUND_COLOR;
525
516
  }
526
- }, at = class extends l {
517
+ }, et = class extends l {
527
518
  getParentControlId() {
528
519
  return n.BLOCK_BUTTON.BORDER;
529
520
  }
530
521
  getLabels() {
531
522
  }
532
- }, nt = class extends l {
523
+ }, tt = class extends l {
533
524
  getParentControlId() {
534
525
  return n.BLOCK_BUTTON.COLOR;
535
526
  }
536
- }, st = class extends l {
527
+ }, rt = class extends l {
537
528
  getParentControlId() {
538
529
  return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
539
530
  }
540
- }, it = class extends l {
531
+ }, at = class extends l {
541
532
  getParentControlId() {
542
533
  return n.BLOCK_BUTTON.FONT_FAMILY;
543
534
  }
544
- }, lt = class extends l {
535
+ }, nt = class extends l {
545
536
  getParentControlId() {
546
537
  return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
547
538
  }
548
- }, Et = class extends l {
539
+ }, st = class extends l {
549
540
  getParentControlId() {
550
541
  return n.BLOCK_BUTTON.INTERNAL_INDENTS;
551
542
  }
552
- }, ot = class extends l {
543
+ }, it = class extends l {
553
544
  getParentControlId() {
554
545
  return n.BLOCK_BUTTON.TEXT;
555
546
  }
556
- }, dt = class extends l {
547
+ }, lt = class extends l {
557
548
  getParentControlId() {
558
549
  return n.BLOCK_BUTTON.FONT_SIZE;
559
550
  }
560
- }, ut = class extends l {
551
+ }, Et = class extends l {
561
552
  getParentControlId() {
562
553
  return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
563
554
  }
564
555
  getLabels() {
565
556
  }
566
- }, G = class h extends i {
557
+ }, X = class h extends s {
567
558
  constructor() {
568
559
  super(h.REQUIRED_METHODS, h);
569
560
  }
@@ -618,8 +609,8 @@ var j = {
618
609
  onDocumentChanged(t) {
619
610
  }
620
611
  };
621
- G.REQUIRED_METHODS = ["getId", "getTemplate"];
622
- var ct = G, pe = class m extends i {
612
+ X.REQUIRED_METHODS = ["getId", "getTemplate"];
613
+ var ot = X, Fe = class m extends s {
623
614
  constructor() {
624
615
  super(m.REQUIRED_METHODS, m);
625
616
  }
@@ -688,21 +679,21 @@ var ct = G, pe = class m extends i {
688
679
  onDestroy() {
689
680
  }
690
681
  };
691
- pe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
692
- var V = class extends v {
682
+ Fe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
683
+ var G = class extends x {
693
684
  getTargetNodes(e) {
694
- const t = e.querySelectorAll(c.IMAGE), r = e.asElement().hasClass(K) ? [e] : [];
695
- return t.length ? t : r;
685
+ const t = e.querySelectorAll(c.IMAGE), a = e.asElement().hasClass(w) ? [e] : [];
686
+ return t.length ? t : a;
696
687
  }
697
- }, Tt = class extends V {
688
+ }, dt = class extends G {
698
689
  getParentControlId() {
699
690
  return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
700
691
  }
701
- }, It = class extends V {
692
+ }, ut = class extends G {
702
693
  getParentControlId() {
703
694
  return n.BLOCK_IMAGE.SIZE;
704
695
  }
705
- }, Xe = class g extends i {
696
+ }, He = class g extends s {
706
697
  constructor() {
707
698
  super(g.REQUIRED_METHODS, g);
708
699
  }
@@ -766,8 +757,8 @@ var V = class extends v {
766
757
  onDocumentChanged() {
767
758
  }
768
759
  };
769
- Xe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
770
- var f = class O extends i {
760
+ He.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
761
+ var V = class O extends s {
771
762
  constructor() {
772
763
  super(O.REQUIRED_METHODS, O);
773
764
  }
@@ -775,10 +766,10 @@ var f = class O extends i {
775
766
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
776
767
  }
777
768
  };
778
- f.REQUIRED_METHODS = ["registerBlockControls"];
779
- var bt = f, ht = class R {
780
- constructor(t, r) {
781
- this.tabId = t, this.controls = r.map(R.normalizeControl);
769
+ V.REQUIRED_METHODS = ["registerBlockControls"];
770
+ var ct = V, Tt = class {
771
+ constructor(e, t) {
772
+ this.tabId = e, this.controlsIds = t;
782
773
  }
783
774
  getTabId() {
784
775
  return this.tabId;
@@ -787,66 +778,52 @@ var bt = f, ht = class R {
787
778
  return this.label;
788
779
  }
789
780
  getControlsIds() {
790
- return this.controls.map((t) => t.id);
791
- }
792
- getControls() {
793
- return this.controls;
781
+ return this.controlsIds;
794
782
  }
795
- withLabel(t) {
796
- return this.label = t, this;
783
+ withLabel(e) {
784
+ return this.label = e, this;
797
785
  }
798
- addControl(t, r) {
799
- const s = R.normalizeControl(t);
800
- return r < 0 ? this.controls.unshift(s) : r > this.controls.length ? this.controls.push(s) : this.controls.splice(r, 0, s), this;
786
+ addControl(e, t) {
787
+ return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
801
788
  }
802
- deleteControl(t) {
803
- const r = this.controls.findIndex((s) => s.id === t);
804
- r !== -1 && this.controls.splice(r, 1);
789
+ deleteControl(e) {
790
+ const t = this.controlsIds.indexOf(e);
791
+ t !== -1 && this.controlsIds.splice(t, 1);
805
792
  }
806
- static normalizeControl(t) {
807
- if (typeof t == "string")
808
- return { id: t };
809
- if (!t.id)
810
- throw new Error("SettingsPanelTabControlConfig.id is required");
811
- return {
812
- ...t,
813
- id: t.id
814
- };
815
- }
816
- }, E = class extends v {
793
+ }, E = class extends x {
817
794
  getTargetNodes(e) {
818
- const t = e.querySelectorAll(c.TEXT), r = e.asElement().hasClass(w) ? [e] : [];
819
- return t.length ? t : r;
795
+ const t = e.querySelectorAll(c.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
796
+ return t.length ? t : a;
820
797
  }
821
- }, mt = class extends E {
798
+ }, It = class extends E {
822
799
  getParentControlId() {
823
800
  return n.GENERAL.TEXT_ALIGN;
824
801
  }
825
- }, gt = class extends E {
802
+ }, bt = class extends E {
826
803
  getParentControlId() {
827
804
  return n.GENERAL.TEXT_COLOR;
828
805
  }
829
- }, Ot = class extends E {
806
+ }, ht = class extends E {
830
807
  getParentControlId() {
831
808
  return n.BLOCK_TEXT.FONT_FAMILY;
832
809
  }
833
- }, Rt = class extends E {
810
+ }, mt = class extends E {
834
811
  getParentControlId() {
835
812
  return n.GENERAL.TEXT_LINE_SPACING;
836
813
  }
837
- }, Lt = class extends E {
814
+ }, gt = class extends E {
838
815
  getParentControlId() {
839
816
  return n.BLOCK_TEXT.INTERNAL_INDENTS;
840
817
  }
841
- }, _t = class extends E {
818
+ }, Ot = class extends E {
842
819
  getParentControlId() {
843
820
  return n.GENERAL.TEXT_SIZE;
844
821
  }
845
- }, Ct = class extends E {
822
+ }, Rt = class extends E {
846
823
  getParentControlId() {
847
824
  return n.GENERAL.TEXT_STYLE;
848
825
  }
849
- }, Ge = class {
826
+ }, ke = class {
850
827
  constructor(e) {
851
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);
852
829
  }
@@ -910,7 +887,7 @@ var bt = f, ht = class R {
910
887
  getModulesPanelTabs() {
911
888
  return this.modulesPanelTabs;
912
889
  }
913
- }, At = class {
890
+ }, Lt = class {
914
891
  constructor() {
915
892
  this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
916
893
  }
@@ -981,7 +958,7 @@ var bt = f, ht = class R {
981
958
  return this.modulesPanelTabs.push(e), this;
982
959
  }
983
960
  build() {
984
- return new Ge({
961
+ return new ke({
985
962
  i18n: this.i18n,
986
963
  styles: this.styles.map((e) => e.trim()).join(`
987
964
  `),
@@ -1004,18 +981,18 @@ var bt = f, ht = class R {
1004
981
  modulesPanelTabs: this.modulesPanelTabs
1005
982
  });
1006
983
  }
1007
- }, Ve = class L extends i {
984
+ }, pe = class R extends s {
1008
985
  constructor() {
1009
- super(L.REQUIRED_METHODS, L);
986
+ super(R.REQUIRED_METHODS, R);
1010
987
  }
1011
988
  openAiAssistant(t) {
1012
989
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
1013
990
  }
1014
991
  };
1015
- Ve.REQUIRED_METHODS = ["openAiAssistant"];
1016
- var fe = class _ extends i {
992
+ pe.REQUIRED_METHODS = ["openAiAssistant"];
993
+ var Xe = class L extends s {
1017
994
  constructor() {
1018
- super(_.REQUIRED_METHODS, _);
995
+ super(L.REQUIRED_METHODS, L);
1019
996
  }
1020
997
  /**
1021
998
  * Retrieves the name of the category.
@@ -1032,7 +1009,7 @@ var fe = class _ extends i {
1032
1009
  * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
1033
1010
  * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
1034
1011
  */
1035
- openExternalDisplayConditionsDialog(t, r, s) {
1012
+ openExternalDisplayConditionsDialog(t, a, i) {
1036
1013
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
1037
1014
  }
1038
1015
  /**
@@ -1053,19 +1030,19 @@ var fe = class _ extends i {
1053
1030
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
1054
1031
  }
1055
1032
  };
1056
- fe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
1057
- var Qe = class C extends i {
1033
+ Xe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
1034
+ var Ge = class _ extends s {
1058
1035
  constructor() {
1059
- super(C.REQUIRED_METHODS, C);
1036
+ super(_.REQUIRED_METHODS, _);
1060
1037
  }
1061
- openImageLibrary(t, r, s) {
1038
+ openImageLibrary(t, a, i) {
1062
1039
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
1063
1040
  }
1064
1041
  };
1065
- Qe.REQUIRED_METHODS = ["openImageLibrary"];
1066
- var Ye = class A extends i {
1042
+ Ge.REQUIRED_METHODS = ["openImageLibrary"];
1043
+ var Ve = class C extends s {
1067
1044
  constructor() {
1068
- super(A.REQUIRED_METHODS, A);
1045
+ super(C.REQUIRED_METHODS, C);
1069
1046
  }
1070
1047
  /**
1071
1048
  * @description Returns the translated name/label for the tab
@@ -1080,39 +1057,39 @@ var Ye = class A extends i {
1080
1057
  * @param _onImageSelectCallback - Callback to invoke when an image is selected
1081
1058
  * @param _selectedNode - (Optional) Selected node for which the gallery is being opened
1082
1059
  */
1083
- openImageLibraryTab(t, r, s) {
1060
+ openImageLibraryTab(t, a, i) {
1084
1061
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
1085
1062
  }
1086
1063
  };
1087
- Ye.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
1088
- var $e = class N extends i {
1064
+ Ve.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
1065
+ var Qe = class A extends s {
1089
1066
  constructor() {
1090
- super(N.REQUIRED_METHODS, N);
1067
+ super(A.REQUIRED_METHODS, A);
1091
1068
  }
1092
- openSmartElementsLibrary(t, r) {
1069
+ openSmartElementsLibrary(t, a) {
1093
1070
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
1094
1071
  }
1095
1072
  };
1096
- $e.REQUIRED_METHODS = ["openSmartElementsLibrary"];
1097
- var We = class D extends i {
1073
+ Qe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
1074
+ var fe = class N extends s {
1098
1075
  constructor() {
1099
- super(D.REQUIRED_METHODS, D);
1076
+ super(N.REQUIRED_METHODS, N);
1100
1077
  }
1101
- openExternalVideosLibraryDialog(t, r, s) {
1078
+ openExternalVideosLibraryDialog(t, a, i) {
1102
1079
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
1103
1080
  }
1104
1081
  };
1105
- We.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
1106
- var Q = class S extends i {
1082
+ fe.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
1083
+ var Q = class D extends s {
1107
1084
  constructor() {
1108
- super(S.REQUIRED_METHODS, S);
1085
+ super(D.REQUIRED_METHODS, D);
1109
1086
  }
1110
1087
  registerIconsSvg(t) {
1111
1088
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
1112
1089
  }
1113
1090
  };
1114
1091
  Q.REQUIRED_METHODS = ["registerIconsSvg"];
1115
- var Nt = Q, Dt = class {
1092
+ var _t = Q, Ct = class {
1116
1093
  constructor(e) {
1117
1094
  this.key = e;
1118
1095
  }
@@ -1125,9 +1102,9 @@ var Nt = Q, Dt = class {
1125
1102
  params: this.params
1126
1103
  };
1127
1104
  }
1128
- }, Y = class M extends i {
1105
+ }, f = class S extends s {
1129
1106
  constructor() {
1130
- super(M.REQUIRED_METHODS, M);
1107
+ super(S.REQUIRED_METHODS, S);
1131
1108
  }
1132
1109
  /**
1133
1110
  * Called when the UI element should render its content into the provided container.
@@ -1162,7 +1139,7 @@ var Nt = Q, Dt = class {
1162
1139
  * @param name - The name of the attribute that was updated.
1163
1140
  * @param value - The new value of the attribute.
1164
1141
  */
1165
- onAttributeUpdated(t, r) {
1142
+ onAttributeUpdated(t, a) {
1166
1143
  }
1167
1144
  /**
1168
1145
  * Gets the unique identifier for this UI element type.
@@ -1180,64 +1157,64 @@ var Nt = Q, Dt = class {
1180
1157
  throw new Error("Method getTemplate() must be implemented by the subclass");
1181
1158
  }
1182
1159
  };
1183
- Y.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
1184
- var St = Y, $ = class B extends i {
1160
+ f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
1161
+ var At = f, Y = class M extends s {
1185
1162
  constructor() {
1186
- super(B.REQUIRED_METHODS, B);
1163
+ super(M.REQUIRED_METHODS, M);
1187
1164
  }
1188
1165
  registerUiElements(t) {
1189
1166
  throw new Error("Method registerUiElements() must be implemented by the subclass");
1190
1167
  }
1191
1168
  };
1192
- $.REQUIRED_METHODS = ["registerUiElements"];
1193
- var Mt = $;
1169
+ Y.REQUIRED_METHODS = ["registerUiElements"];
1170
+ var Nt = Y;
1194
1171
  export {
1195
- Ze as Block,
1196
- je as BlockAttr,
1197
- z as BlockCompositionType,
1172
+ $e as Block,
1173
+ ze as BlockAttr,
1174
+ W as BlockCompositionType,
1198
1175
  c as BlockSelector,
1199
- de as BlockType,
1200
- qe as BlocksPanel,
1201
- v as BuiltInControl,
1176
+ oe as BlockType,
1177
+ We as BlocksPanel,
1178
+ x as BuiltInControl,
1202
1179
  n as BuiltInControlTypes,
1203
- tt as ButtonAlignBuiltInControl,
1204
- rt as ButtonBackgroundColorBuiltInControl,
1205
- at as ButtonBorderBuiltInControl,
1206
- et as ButtonBorderRadiusBuiltInControl,
1207
- nt as ButtonColorBuiltInControl,
1208
- H as ButtonControls,
1209
- st as ButtonFitToContainerBuiltInControl,
1210
- it as ButtonFontFamilyBuiltInControl,
1211
- lt as ButtonMarginsBuiltInControl,
1212
- Et as ButtonPaddingsBuiltInControl,
1213
- ot as ButtonTextBuiltInControl,
1214
- dt as ButtonTextSizeBuiltInControl,
1215
- ut as ButtonTextStyleAndFontColorBuiltInControl,
1216
- ue as ContainerControls,
1217
- ct as Control,
1218
- ce as EditorStatePropertyType,
1219
- Ge as Extension,
1220
- At as ExtensionBuilder,
1221
- F as GeneralControls,
1222
- Nt as IconsRegistry,
1223
- p as ImageControls,
1224
- Tt as ImageMarginsBuiltInControl,
1225
- It as ImageSizeBuiltInControl,
1226
- Dt as ModificationDescription,
1227
- Te as PreviewDeviceMode,
1228
- bt as SettingsPanelRegistry,
1229
- ht as SettingsPanelTab,
1230
- Ie as SettingsTab,
1231
- mt as TextAlignBuiltInControl,
1232
- gt as TextColorBuiltInControl,
1233
- k as TextControls,
1234
- Ot as TextFontFamilyBuiltInControl,
1235
- Rt as TextLineSpacingBuiltInControl,
1236
- Lt as TextPaddingsBuiltInControl,
1237
- _t as TextSizeBuiltInControl,
1238
- Ct as TextStyleBuiltInControl,
1239
- Je as UEAttr,
1240
- St as UIElement,
1241
- Mt as UIElementTagRegistry,
1242
- ke as UIElementType
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,
1214
+ Ot as TextSizeBuiltInControl,
1215
+ Rt as TextStyleBuiltInControl,
1216
+ Ze as UEAttr,
1217
+ At as UIElement,
1218
+ Nt as UIElementTagRegistry,
1219
+ Ke as UIElementType
1243
1220
  };
@@ -1,4 +1,4 @@
1
- const o = { stripo: { version: "2.62.0" } }, s = {
1
+ const o = { stripo: { version: "2.60.0" } }, s = {
2
2
  guido: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"radio-button-block\"\n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"\n radio-button\n radio-button-v2\n esd-block-ra\n esd-radio-button-block\n esd-extension-block\n es-p10t\n es-p10b\n es-p30r\n es-p30l\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"70%\" style=\"vertical-align: top;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n <td align=\"right\" width=\"30%\" style=\"vertical-align: middle;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioYes\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;>\n </td>\n {-{-YES-}-}\n </tr>\n </table>\n </td>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioNo\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-NO-}-}\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
1
+ declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"radio-button-block\"\n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"\n radio-button\n radio-button-v2\n esd-block-ra\n esd-radio-button-block\n esd-extension-block\n es-p10t\n es-p10b\n es-p30r\n es-p30l\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"70%\" style=\"vertical-align: top;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n <td align=\"right\" width=\"30%\" style=\"vertical-align: middle;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioYes\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-YES-}-}\n </tr>\n </table>\n </td>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioNo\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-NO-}-}\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
2
2
  /**
3
3
  * @returns The template for the default checkbox block
4
4
  */
@@ -594,6 +594,7 @@ button.es-button {
594
594
 
595
595
  a.es-button,
596
596
  button.es-button {
597
+ font-size: 16px !important;
597
598
  display: block !important;
598
599
  padding: 10px 0px 10px 0px !important;
599
600
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.2.0-beta.b277bd3",
3
+ "version": "3.2.0-beta.bdc0c2a",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -32,7 +32,7 @@
32
32
  "author": "",
33
33
  "license": "ISC",
34
34
  "dependencies": {
35
- "@stripoinc/ui-editor-extensions": "3.8.0",
35
+ "@stripoinc/ui-editor-extensions": "3.7.0",
36
36
  "@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
37
37
  "@vueuse/core": "11.3.0",
38
38
  "lodash-es": "4.17.21",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "guido": {
88
88
  "stripo": {
89
- "version": "2.62.0"
89
+ "version": "2.60.0"
90
90
  }
91
91
  }
92
92
  }