@useinsider/guido 1.0.3-beta.d1ff593 → 1.0.3-beta.d574817

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +144 -3
  2. package/dist/components/Guido.vue.js +11 -9
  3. package/dist/components/Guido.vue2.js +76 -70
  4. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  5. package/dist/components/organisms/header/LeftSlot.vue2.js +16 -15
  6. package/dist/components/organisms/header/RightSlot.vue.js +11 -11
  7. package/dist/components/organisms/header/RightSlot.vue2.js +23 -22
  8. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
  9. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +30 -17
  10. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -10
  11. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +19 -18
  12. package/dist/composables/useBlocksConfig.js +49 -0
  13. package/dist/composables/useGuidoActions.js +19 -9
  14. package/dist/composables/useStripo.js +49 -58
  15. package/dist/config/compiler/unsubscribeCompilerRules.js +33 -28
  16. package/dist/config/migrator/recommendationMigrator.js +188 -98
  17. package/dist/enums/date.js +6 -0
  18. package/dist/enums/defaults.js +16 -8
  19. package/dist/enums/onboarding.js +2 -1
  20. package/dist/enums/unsubscribe.js +27 -25
  21. package/dist/extensions/Blocks/Checkbox/extension.js +2 -2
  22. package/dist/extensions/Blocks/CouponBlock/extension.js +2 -2
  23. package/dist/extensions/Blocks/Recommendation/block.js +1 -1
  24. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +66 -298
  25. package/dist/extensions/Blocks/Recommendation/constants.js +5 -0
  26. package/dist/extensions/Blocks/Recommendation/control.js +5 -4
  27. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +7 -6
  28. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +7 -6
  29. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +7 -6
  30. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +5 -4
  31. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +5 -4
  32. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +5 -4
  33. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +5 -4
  34. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +5 -4
  35. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +5 -4
  36. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +5 -4
  37. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +5 -4
  38. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +13 -0
  39. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +13 -0
  40. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +5 -4
  41. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +7 -6
  42. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +5 -4
  43. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +5 -4
  44. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +5 -4
  45. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +7 -6
  46. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +7 -6
  47. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +13 -0
  48. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +13 -0
  49. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +13 -0
  50. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +13 -0
  51. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +13 -0
  52. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +13 -0
  53. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +13 -0
  54. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +13 -0
  55. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +13 -0
  56. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +13 -0
  57. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +13 -0
  58. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +13 -0
  59. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +13 -0
  60. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +13 -0
  61. package/dist/extensions/Blocks/Recommendation/extension.js +37 -21
  62. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +90 -45
  63. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -1
  64. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +160 -0
  65. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +152 -0
  66. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +180 -0
  67. package/dist/extensions/DynamicContent/dynamic-content-modal.js +25 -19
  68. package/dist/extensions/DynamicContent/dynamic-content.js +128 -33
  69. package/dist/guido.css +1 -1
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +198 -176
  71. package/dist/package.json.js +1 -1
  72. package/dist/services/stripoApi.js +1 -1
  73. package/dist/src/@types/generic.d.ts +42 -6
  74. package/dist/src/components/Guido.vue.d.ts +4 -2
  75. package/dist/src/components/organisms/onboarding/NewVersionPopup.vue.d.ts +3 -1
  76. package/dist/src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +3 -1
  77. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  78. package/dist/src/composables/useBlocksConfig.d.ts +11 -0
  79. package/dist/src/composables/useGuidoActions.d.ts +9 -0
  80. package/dist/src/enums/date.d.ts +4 -0
  81. package/dist/src/enums/onboarding.d.ts +1 -0
  82. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +5 -42
  83. package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +51 -0
  84. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +5 -0
  85. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +5 -0
  86. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +5 -0
  87. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +5 -0
  88. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +5 -0
  89. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +5 -0
  90. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +5 -0
  91. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +5 -0
  92. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +5 -0
  93. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +5 -0
  94. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +5 -0
  95. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +5 -0
  96. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +5 -0
  97. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +5 -0
  98. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +5 -0
  99. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +5 -0
  100. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -1
  101. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +16 -0
  102. package/dist/src/extensions/Blocks/Recommendation/{template.d.ts → templates/migrationTemplate.d.ts} +7 -34
  103. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +44 -0
  104. package/dist/src/extensions/DynamicContent/dynamic-content-modal.d.ts +9 -2
  105. package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +52 -2
  106. package/dist/src/stores/config.d.ts +10 -2
  107. package/dist/src/stores/dynamic-content.d.ts +3 -3
  108. package/dist/src/stores/editor.d.ts +1 -1
  109. package/dist/src/stores/onboarding.d.ts +1 -1
  110. package/dist/src/stores/preview.d.ts +1 -1
  111. package/dist/src/stores/recommendation.d.ts +1 -1
  112. package/dist/src/stores/save-as-template.d.ts +1 -1
  113. package/dist/src/stores/toaster.d.ts +1 -1
  114. package/dist/src/stores/unsubscribe.d.ts +1 -1
  115. package/dist/src/stores/version-history.d.ts +1 -1
  116. package/dist/src/utils/dateUtil.d.ts +21 -0
  117. package/dist/src/utils/environmentUtil.d.ts +5 -0
  118. package/dist/src/utils/genericUtil.d.ts +1 -0
  119. package/dist/static/styles/components/narrow-panel.css.js +10 -0
  120. package/dist/static/styles/customEditorStyle.css.js +5 -0
  121. package/dist/stores/config.js +5 -5
  122. package/dist/stores/dynamic-content.js +2 -2
  123. package/dist/stores/editor.js +1 -1
  124. package/dist/stores/onboarding.js +27 -27
  125. package/dist/stores/preview.js +1 -1
  126. package/dist/stores/recommendation.js +3 -3
  127. package/dist/stores/save-as-template.js +2 -2
  128. package/dist/stores/toaster.js +1 -1
  129. package/dist/stores/unsubscribe.js +1 -1
  130. package/dist/stores/version-history.js +4 -4
  131. package/dist/utils/dateUtil.js +24 -3
  132. package/dist/utils/environmentUtil.js +4 -0
  133. package/dist/utils/genericUtil.js +20 -9
  134. package/package.json +2 -2
  135. package/dist/extensions/Blocks/Recommendation/template.js +0 -314
@@ -1,4 +1,4 @@
1
- var Z = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(Z || {}), S = class u {
1
+ var J = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(J || {}), B = class u {
2
2
  /**
3
3
  * Validates that all required methods are properly implemented in the subclass.
4
4
  * @param requiredMethods - Array of method names that must be implemented
@@ -7,11 +7,11 @@ var Z = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t
7
7
  constructor(e, r) {
8
8
  if (r !== u) {
9
9
  u.validatedClasses.has(r) || this.validateImplementation(e, r);
10
- const n = u.validationErrors.get(r);
11
- if (n && n.length > 0)
10
+ const s = u.validationErrors.get(r);
11
+ if (s && s.length > 0)
12
12
  throw new Error(
13
13
  `${r.name} has validation errors:
14
- ${n.map((E) => ` - ${E}`).join(`
14
+ ${s.map((E) => ` - ${E}`).join(`
15
15
  `)}`
16
16
  );
17
17
  }
@@ -22,21 +22,21 @@ ${n.map((E) => ` - ${E}`).join(`
22
22
  */
23
23
  validateImplementation(e, r) {
24
24
  var O;
25
- const n = [], E = r.name, I = Object.getPrototypeOf(this);
25
+ const s = [], E = r.name, T = Object.getPrototypeOf(this);
26
26
  e.forEach((l) => {
27
27
  if (typeof this[l] != "function") {
28
- n.push(`Method ${l}() is not defined`);
28
+ s.push(`Method ${l}() is not defined`);
29
29
  return;
30
30
  }
31
- I[l] === r.prototype[l] && n.push(`Method ${l}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), u.validatedClasses.add(r), n.length > 0 ? (u.validationErrors.set(r, n), console.error(`[${E} Validation] ${E} validation failed:`, n)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
31
+ T[l] === r.prototype[l] && s.push(`Method ${l}() must be implemented (currently using base class error-throwing implementation)`);
32
+ }), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
33
33
  }
34
34
  };
35
- S.validatedClasses = /* @__PURE__ */ new Set();
36
- S.validationErrors = /* @__PURE__ */ new Map();
37
- var i = S, x = class T extends i {
35
+ B.validatedClasses = /* @__PURE__ */ new Set();
36
+ B.validationErrors = /* @__PURE__ */ new Map();
37
+ var i = B, x = class c extends i {
38
38
  constructor() {
39
- super(T.REQUIRED_METHODS, T);
39
+ super(c.REQUIRED_METHODS, c);
40
40
  }
41
41
  /**
42
42
  * Determines if the block should be available for use in the editor.
@@ -186,9 +186,9 @@ var i = S, x = class T extends i {
186
186
  }
187
187
  };
188
188
  x.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
189
- var pt = x, j = class c extends i {
189
+ var wt = x, tt = class _ extends i {
190
190
  constructor() {
191
- super(c.REQUIRED_METHODS, c);
191
+ super(_.REQUIRED_METHODS, _);
192
192
  }
193
193
  /**
194
194
  * @deprecated - use {@link getPreviewInnerHtml} instead
@@ -203,10 +203,10 @@ var pt = x, j = class c extends i {
203
203
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
204
204
  }
205
205
  };
206
- j.REQUIRED_METHODS = ["getPreviewInnerHtml"];
207
- var q = class _ extends i {
206
+ tt.REQUIRED_METHODS = ["getPreviewInnerHtml"];
207
+ var et = class R extends i {
208
208
  constructor() {
209
- super(_.REQUIRED_METHODS, _);
209
+ super(R.REQUIRED_METHODS, R);
210
210
  }
211
211
  getId() {
212
212
  throw new Error("Method getId() must be implemented by the subclass");
@@ -221,76 +221,82 @@ var q = class _ extends i {
221
221
  throw new Error("Method onClick() must be implemented by the subclass");
222
222
  }
223
223
  };
224
- q.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
225
- var J = {
224
+ et.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
225
+ var rt = {
226
+ src: "src",
227
+ alt: "alt",
226
228
  href: "href"
227
- }, Kt = {
228
- BLOCK_BUTTON: J
229
- }, v = "esd-block-button", U = "esd-block-text", tt = "esd-block-image", et = "esd-structure", rt = "esd-block-video", st = "esd-block-social", nt = "esd-block-banner", it = "esd-block-timer", at = "esd-block-menu", ot = "esd-block-html", Et = "esd-block-spacer", lt = "esd-container-frame", dt = "esd-stripe", ut = "esd-amp-form", B = ((t) => (t.BUTTON = `.${v}`, t.TEXT = `.${U}`, t.IMAGE = `.${tt}`, t.STRUCTURE = `.${et}`, t.VIDEO = `.${rt}`, t.SOCIAL = `.${st}`, t.BANNER = `.${nt}`, t.TIMER = `.${it}`, t.MENU = `.${at}`, t.HTML = `.${ot}`, t.SPACER = `.${Et}`, t.CONTAINER = `.${lt}`, t.STRIPE = `.${dt}`, t.FORM = `.${ut}`, t))(B || {}), Ot = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(Ot || {}), y = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(y || {}), p = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(p || {}), K = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(K || {}), It = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(It || {}), s = {
230
- BLOCK_BUTTON: p,
231
- BLOCK_TEXT: K,
232
- GENERAL: y
233
- }, Tt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Tt || {}), a = {
229
+ }, nt = {
230
+ href: "href"
231
+ }, Pt = {
232
+ BLOCK_IMAGE: rt,
233
+ BLOCK_BUTTON: nt
234
+ }, U = "esd-block-button", y = "esd-block-text", K = "esd-block-image", st = "esd-structure", it = "esd-block-video", at = "esd-block-social", ot = "esd-block-banner", Et = "esd-block-timer", lt = "esd-block-menu", dt = "esd-block-html", ut = "esd-block-spacer", Ot = "esd-container-frame", It = "esd-stripe", Tt = "esd-amp-form", I = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${y}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${st}`, t.VIDEO = `.${it}`, t.SOCIAL = `.${at}`, t.BANNER = `.${ot}`, t.TIMER = `.${Et}`, t.MENU = `.${lt}`, t.HTML = `.${dt}`, t.SPACER = `.${ut}`, t.CONTAINER = `.${Ot}`, t.STRIPE = `.${It}`, t.FORM = `.${Tt}`, t))(I || {}), ct = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ct || {}), p = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(p || {}), F = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(P || {}), _t = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(_t || {}), n = {
235
+ BLOCK_BUTTON: F,
236
+ BLOCK_TEXT: w,
237
+ BLOCK_IMAGE: P,
238
+ GENERAL: p
239
+ }, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}), a = {
234
240
  name: "name",
235
241
  disabled: "disabled"
236
- }, ct = {
242
+ }, ht = {
237
243
  ...a,
238
244
  caption: "caption",
239
245
  icon: "icon"
240
- }, _t = {
246
+ }, Ct = {
241
247
  ...a,
242
248
  caption: "caption"
243
- }, ht = {
249
+ }, Lt = {
244
250
  ...a,
245
251
  minValue: "min-value",
246
252
  maxValue: "max-value",
247
253
  step: "step"
248
- }, Ct = {
254
+ }, gt = {
249
255
  ...a,
250
256
  text: "text"
251
- }, Rt = {
257
+ }, mt = {
252
258
  ...a
253
- }, F = {
259
+ }, H = {
254
260
  ...a,
255
261
  searchable: "searchable",
256
262
  multiSelect: "multi-select",
257
263
  placeholder: "placeholder",
258
264
  items: "items"
259
- }, Lt = {
260
- ...F
261
- }, gt = {
265
+ }, At = {
266
+ ...H
267
+ }, Nt = {
262
268
  text: "text",
263
269
  value: "value"
264
- }, mt = {
270
+ }, bt = {
265
271
  text: "text",
266
272
  value: "value"
267
- }, bt = {
273
+ }, Dt = {
268
274
  ...a
269
- }, At = {
275
+ }, St = {
270
276
  controlId: "control-id"
271
- }, Nt = {
277
+ }, Bt = {
272
278
  ...a,
273
279
  icon: "icon",
274
280
  position: "position"
275
- }, Dt = {
281
+ }, Mt = {
276
282
  ...a
277
- }, Ft = {
278
- BUTTON: ct,
279
- CHECKBOX: _t,
283
+ }, Ht = {
284
+ BUTTON: ht,
285
+ CHECKBOX: Ct,
280
286
  COLOR: a,
281
- COUNTER: ht,
282
- LABEL: Ct,
283
- RADIO_BUTTONS: Rt,
284
- SELECTPICKER: F,
285
- FONT_FAMILY_SELECT: Lt,
287
+ COUNTER: Lt,
288
+ LABEL: gt,
289
+ RADIO_BUTTONS: mt,
290
+ SELECTPICKER: H,
291
+ FONT_FAMILY_SELECT: At,
286
292
  SWITCHER: a,
287
- TEXT: bt,
288
- SELECT_ITEM: gt,
289
- RADIO_ITEM: mt,
290
- NESTED_CONTROL: At,
291
- ORDERABLE: Nt,
292
- ORDERABLE_ITEM: Dt
293
- }, St = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t.ORDERABLE = "UE-ORDERABLE", t.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", t.ORDERABLE_ICON = "UE-ORDERABLE-ICON", t))(St || {}), w = class {
293
+ TEXT: Dt,
294
+ SELECT_ITEM: Nt,
295
+ RADIO_ITEM: bt,
296
+ NESTED_CONTROL: St,
297
+ ORDERABLE: Bt,
298
+ ORDERABLE_ITEM: Mt
299
+ }, vt = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t.ORDERABLE = "UE-ORDERABLE", t.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", t.ORDERABLE_ICON = "UE-ORDERABLE-ICON", t))(vt || {}), M = class {
294
300
  /**
295
301
  * @description returns map of nodes parent control operates on
296
302
  */
@@ -321,62 +327,62 @@ var J = {
321
327
  isVisible(t) {
322
328
  return !0;
323
329
  }
324
- }, o = class extends w {
330
+ }, o = class extends M {
325
331
  getTargetNodes(t) {
326
- const e = t.querySelectorAll(B.BUTTON), r = t.asElement().hasClass(v) ? [t] : [];
332
+ const e = t.querySelectorAll(I.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
327
333
  return e.length ? e : r;
328
334
  }
329
- }, wt = class extends o {
335
+ }, Xt = class extends o {
330
336
  getParentControlId() {
331
- return s.BLOCK_BUTTON.BORDER_RADIUS;
337
+ return n.BLOCK_BUTTON.BORDER_RADIUS;
332
338
  }
333
339
  getLabels() {
334
340
  }
335
- }, Pt = class extends o {
341
+ }, kt = class extends o {
336
342
  getParentControlId() {
337
- return s.BLOCK_BUTTON.ALIGNMENT;
343
+ return n.BLOCK_BUTTON.ALIGNMENT;
338
344
  }
339
- }, Ht = class extends o {
345
+ }, Vt = class extends o {
340
346
  getParentControlId() {
341
- return s.BLOCK_BUTTON.BORDER;
347
+ return n.BLOCK_BUTTON.BORDER;
342
348
  }
343
349
  getLabels() {
344
350
  }
345
- }, Xt = class extends o {
351
+ }, Gt = class extends o {
346
352
  getParentControlId() {
347
- return s.BLOCK_BUTTON.COLOR;
353
+ return n.BLOCK_BUTTON.COLOR;
348
354
  }
349
- }, kt = class extends o {
355
+ }, ft = class extends o {
350
356
  getParentControlId() {
351
- return s.BLOCK_BUTTON.ADJUST_TO_WIDTH;
357
+ return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
352
358
  }
353
- }, Vt = class extends o {
359
+ }, Qt = class extends o {
354
360
  getParentControlId() {
355
- return s.BLOCK_BUTTON.FONT_FAMILY;
361
+ return n.BLOCK_BUTTON.FONT_FAMILY;
356
362
  }
357
- }, Qt = class extends o {
363
+ }, Yt = class extends o {
358
364
  getParentControlId() {
359
- return s.BLOCK_BUTTON.EXTERNAL_INDENTS;
365
+ return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
360
366
  }
361
- }, ft = class extends o {
367
+ }, $t = class extends o {
362
368
  getParentControlId() {
363
- return s.BLOCK_BUTTON.INTERNAL_INDENTS;
369
+ return n.BLOCK_BUTTON.INTERNAL_INDENTS;
364
370
  }
365
- }, Yt = class extends o {
371
+ }, Wt = class extends o {
366
372
  getParentControlId() {
367
- return s.BLOCK_BUTTON.TEXT;
373
+ return n.BLOCK_BUTTON.TEXT;
368
374
  }
369
- }, Gt = class extends o {
375
+ }, zt = class extends o {
370
376
  getParentControlId() {
371
- return s.BLOCK_BUTTON.FONT_SIZE;
377
+ return n.BLOCK_BUTTON.FONT_SIZE;
372
378
  }
373
- }, $t = class extends o {
379
+ }, Zt = class extends o {
374
380
  getParentControlId() {
375
- return s.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
381
+ return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
376
382
  }
377
383
  getLabels() {
378
384
  }
379
- }, P = class h extends i {
385
+ }, X = class h extends i {
380
386
  constructor() {
381
387
  super(h.REQUIRED_METHODS, h);
382
388
  }
@@ -431,8 +437,21 @@ var J = {
431
437
  onDocumentChanged(e) {
432
438
  }
433
439
  };
434
- P.REQUIRED_METHODS = ["getId", "getTemplate"];
435
- var Wt = P, H = class C extends i {
440
+ X.REQUIRED_METHODS = ["getId", "getTemplate"];
441
+ var jt = X, k = class extends M {
442
+ getTargetNodes(t) {
443
+ const e = t.querySelectorAll(I.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
444
+ return e.length ? e : r;
445
+ }
446
+ }, qt = class extends k {
447
+ getParentControlId() {
448
+ return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
449
+ }
450
+ }, Jt = class extends k {
451
+ getParentControlId() {
452
+ return n.BLOCK_IMAGE.SIZE;
453
+ }
454
+ }, V = class C extends i {
436
455
  constructor() {
437
456
  super(C.REQUIRED_METHODS, C);
438
457
  }
@@ -440,8 +459,8 @@ var Wt = P, H = class C extends i {
440
459
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
441
460
  }
442
461
  };
443
- H.REQUIRED_METHODS = ["registerBlockControls"];
444
- var zt = H, Zt = class {
462
+ V.REQUIRED_METHODS = ["registerBlockControls"];
463
+ var te = V, ee = class {
445
464
  constructor(t, e) {
446
465
  this.tabId = t, this.controlsIds = e;
447
466
  }
@@ -464,42 +483,42 @@ var zt = H, Zt = class {
464
483
  const e = this.controlsIds.indexOf(t);
465
484
  e !== -1 && this.controlsIds.splice(e, 1);
466
485
  }
467
- }, d = class extends w {
486
+ }, d = class extends M {
468
487
  getTargetNodes(t) {
469
- const e = t.querySelectorAll(B.TEXT), r = t.asElement().hasClass(U) ? [t] : [];
488
+ const e = t.querySelectorAll(I.TEXT), r = t.asElement().hasClass(y) ? [t] : [];
470
489
  return e.length ? e : r;
471
490
  }
472
- }, jt = class extends d {
491
+ }, re = class extends d {
473
492
  getParentControlId() {
474
- return s.GENERAL.TEXT_ALIGN;
493
+ return n.GENERAL.TEXT_ALIGN;
475
494
  }
476
- }, qt = class extends d {
495
+ }, ne = class extends d {
477
496
  getParentControlId() {
478
- return s.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
497
+ return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
479
498
  }
480
- }, Jt = class extends d {
499
+ }, se = class extends d {
481
500
  getParentControlId() {
482
- return s.GENERAL.TEXT_COLOR;
501
+ return n.GENERAL.TEXT_COLOR;
483
502
  }
484
- }, te = class extends d {
503
+ }, ie = class extends d {
485
504
  getParentControlId() {
486
- return s.BLOCK_TEXT.FONT_FAMILY;
505
+ return n.BLOCK_TEXT.FONT_FAMILY;
487
506
  }
488
- }, ee = class extends d {
507
+ }, ae = class extends d {
489
508
  getParentControlId() {
490
- return s.BLOCK_TEXT.INTERNAL_INDENTS;
509
+ return n.BLOCK_TEXT.INTERNAL_INDENTS;
491
510
  }
492
- }, re = class extends d {
511
+ }, oe = class extends d {
493
512
  getParentControlId() {
494
- return s.GENERAL.TEXT_SIZE;
513
+ return n.GENERAL.TEXT_SIZE;
495
514
  }
496
- }, se = class extends d {
515
+ }, Ee = class extends d {
497
516
  getParentControlId() {
498
- return s.GENERAL.TEXT_STYLE;
517
+ return n.GENERAL.TEXT_STYLE;
499
518
  }
500
- }, Bt = class {
501
- constructor(t, e, r = [], n, E = [], I, O = [], l = [], M, Q, f, Y, G, $, W, z) {
502
- this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = f, this.uiElements = r, this.uiElementTagRegistry = n, this.controls = E, this.settingsPanelRegistry = I, this.contextActions = O, this.blocks = l, this.externalSmartElementsLibrary = M, this.externalImageLibrary = Q, this.externalAiAssistant = Y, this.externalDisplayConditionsLibrary = G, this.externalVideoLibrary = $, this.blocksPanel = W, this.iconsRegistry = z, this.id = Math.random().toString(36).substring(2);
519
+ }, xt = class {
520
+ constructor(t, e, r = [], s, E = [], T, O = [], l = [], v, Y, $, W, z, Z, j, q) {
521
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = $, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = O, this.blocks = l, this.externalSmartElementsLibrary = v, this.externalImageLibrary = Y, this.externalAiAssistant = W, this.externalDisplayConditionsLibrary = z, this.externalVideoLibrary = Z, this.blocksPanel = j, this.iconsRegistry = q, this.id = Math.random().toString(36).substring(2);
503
522
  }
504
523
  getI18n() {
505
524
  return this.i18n;
@@ -552,7 +571,7 @@ var zt = H, Zt = class {
552
571
  getIconsRegistry() {
553
572
  return this.iconsRegistry;
554
573
  }
555
- }, ne = class {
574
+ }, le = class {
556
575
  constructor() {
557
576
  this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
558
577
  }
@@ -614,7 +633,7 @@ var zt = H, Zt = class {
614
633
  return this.iconsRegistry = t, this;
615
634
  }
616
635
  build() {
617
- return new Bt(
636
+ return new xt(
618
637
  this.i18n,
619
638
  (this.styles || []).map((t) => t.trim()).join(`
620
639
  `),
@@ -634,18 +653,18 @@ var zt = H, Zt = class {
634
653
  this.iconsRegistry
635
654
  );
636
655
  }
637
- }, Mt = class R extends i {
656
+ }, Ut = class L extends i {
638
657
  constructor() {
639
- super(R.REQUIRED_METHODS, R);
658
+ super(L.REQUIRED_METHODS, L);
640
659
  }
641
- openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: n, type: E }) {
660
+ openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: E }) {
642
661
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
643
662
  }
644
663
  };
645
- Mt.REQUIRED_METHODS = ["openAiAssistant"];
646
- var xt = class L extends i {
664
+ Ut.REQUIRED_METHODS = ["openAiAssistant"];
665
+ var yt = class g extends i {
647
666
  constructor() {
648
- super(L.REQUIRED_METHODS, L);
667
+ super(g.REQUIRED_METHODS, g);
649
668
  }
650
669
  /**
651
670
  * Retrieves the name of the category.
@@ -662,7 +681,7 @@ var xt = class L extends i {
662
681
  * @param {ExternalDisplayConditionSelectedCB} successCallback - Callback executed with the updated or newly created condition upon success.
663
682
  * @param {() => void} cancelCallback - Callback executed when the dialog is closed without making changes.
664
683
  */
665
- openExternalDisplayConditionsDialog(e, r, n) {
684
+ openExternalDisplayConditionsDialog(e, r, s) {
666
685
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
667
686
  }
668
687
  /**
@@ -683,44 +702,44 @@ var xt = class L extends i {
683
702
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
684
703
  }
685
704
  };
686
- xt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
687
- var vt = class g extends i {
705
+ yt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
706
+ var Kt = class m extends i {
688
707
  constructor() {
689
- super(g.REQUIRED_METHODS, g);
708
+ super(m.REQUIRED_METHODS, m);
690
709
  }
691
- openImageLibrary(e, r, n) {
710
+ openImageLibrary(e, r, s) {
692
711
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
693
712
  }
694
713
  };
695
- vt.REQUIRED_METHODS = ["openImageLibrary"];
696
- var Ut = class m extends i {
714
+ Kt.REQUIRED_METHODS = ["openImageLibrary"];
715
+ var pt = class A extends i {
697
716
  constructor() {
698
- super(m.REQUIRED_METHODS, m);
717
+ super(A.REQUIRED_METHODS, A);
699
718
  }
700
719
  openSmartElementsLibrary(e, r) {
701
720
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
702
721
  }
703
722
  };
704
- Ut.REQUIRED_METHODS = ["openSmartElementsLibrary"];
705
- var yt = class b extends i {
723
+ pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
724
+ var Ft = class N extends i {
706
725
  constructor() {
707
- super(b.REQUIRED_METHODS, b);
726
+ super(N.REQUIRED_METHODS, N);
708
727
  }
709
- openExternalVideosLibraryDialog(e, r, n) {
728
+ openExternalVideosLibraryDialog(e, r, s) {
710
729
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
711
730
  }
712
731
  };
713
- yt.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
714
- var X = class A extends i {
732
+ Ft.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
733
+ var G = class b extends i {
715
734
  constructor() {
716
- super(A.REQUIRED_METHODS, A);
735
+ super(b.REQUIRED_METHODS, b);
717
736
  }
718
737
  registerIconsSvg(e) {
719
738
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
720
739
  }
721
740
  };
722
- X.REQUIRED_METHODS = ["registerIconsSvg"];
723
- var ie = X, ae = class {
741
+ G.REQUIRED_METHODS = ["registerIconsSvg"];
742
+ var de = G, ue = class {
724
743
  constructor(t) {
725
744
  this.key = t;
726
745
  }
@@ -733,9 +752,9 @@ var ie = X, ae = class {
733
752
  params: this.params
734
753
  };
735
754
  }
736
- }, k = class N extends i {
755
+ }, f = class D extends i {
737
756
  constructor() {
738
- super(N.REQUIRED_METHODS, N);
757
+ super(D.REQUIRED_METHODS, D);
739
758
  }
740
759
  /**
741
760
  * Called when the UI element should render its content into the provided container.
@@ -788,57 +807,60 @@ var ie = X, ae = class {
788
807
  throw new Error("Method getTemplate() must be implemented by the subclass");
789
808
  }
790
809
  };
791
- k.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
792
- var oe = k, V = class D extends i {
810
+ f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
811
+ var Oe = f, Q = class S extends i {
793
812
  constructor() {
794
- super(D.REQUIRED_METHODS, D);
813
+ super(S.REQUIRED_METHODS, S);
795
814
  }
796
815
  registerUiElements(e) {
797
816
  throw new Error("Method registerUiElements() must be implemented by the subclass");
798
817
  }
799
818
  };
800
- V.REQUIRED_METHODS = ["registerUiElements"];
801
- var Ee = V;
819
+ Q.REQUIRED_METHODS = ["registerUiElements"];
820
+ var Ie = Q;
802
821
  export {
803
- pt as Block,
804
- Kt as BlockAttr,
805
- Z as BlockCompositionType,
806
- B as BlockSelector,
807
- Ot as BlockType,
808
- w as BuiltInControl,
809
- s as BuiltInControlTypes,
810
- Pt as ButtonAlignBuiltInControl,
811
- Ht as ButtonBorderBuiltInControl,
812
- wt as ButtonBorderRadiusBuiltInControl,
813
- Xt as ButtonColorBuiltInControl,
814
- p as ButtonControls,
815
- kt as ButtonFitToContainerBuiltInControl,
816
- Vt as ButtonFontFamilyBuiltInControl,
817
- Qt as ButtonMarginsBuiltInControl,
818
- ft as ButtonPaddingsBuiltInControl,
819
- Yt as ButtonTextBuiltInControl,
820
- Gt as ButtonTextSizeBuiltInControl,
821
- $t as ButtonTextStyleAndFontColorBuiltInControl,
822
- It as ContainerControls,
823
- Wt as Control,
824
- Bt as Extension,
825
- ne as ExtensionBuilder,
826
- y as GeneralControls,
827
- ie as IconsRegistry,
828
- ae as ModificationDescription,
829
- zt as SettingsPanelRegistry,
830
- Zt as SettingsPanelTab,
831
- Tt as SettingsTab,
832
- jt as TextAlignBuiltInControl,
833
- qt as TextBlockBackgroundBuiltInControl,
834
- Jt as TextColorBuiltInControl,
835
- K as TextControls,
836
- te as TextFontFamilyBuiltInControl,
837
- ee as TextPaddingsBuiltInControl,
838
- re as TextSizeBuiltInControl,
839
- se as TextStyleBuiltInControl,
840
- Ft as UEAttr,
841
- oe as UIElement,
842
- Ee as UIElementTagRegistry,
843
- St as UIElementType
822
+ wt as Block,
823
+ Pt as BlockAttr,
824
+ J as BlockCompositionType,
825
+ I as BlockSelector,
826
+ ct as BlockType,
827
+ M as BuiltInControl,
828
+ n as BuiltInControlTypes,
829
+ kt as ButtonAlignBuiltInControl,
830
+ Vt as ButtonBorderBuiltInControl,
831
+ Xt as ButtonBorderRadiusBuiltInControl,
832
+ Gt as ButtonColorBuiltInControl,
833
+ F as ButtonControls,
834
+ ft as ButtonFitToContainerBuiltInControl,
835
+ Qt as ButtonFontFamilyBuiltInControl,
836
+ Yt as ButtonMarginsBuiltInControl,
837
+ $t as ButtonPaddingsBuiltInControl,
838
+ Wt as ButtonTextBuiltInControl,
839
+ zt as ButtonTextSizeBuiltInControl,
840
+ Zt as ButtonTextStyleAndFontColorBuiltInControl,
841
+ _t as ContainerControls,
842
+ jt as Control,
843
+ xt as Extension,
844
+ le as ExtensionBuilder,
845
+ p as GeneralControls,
846
+ de as IconsRegistry,
847
+ P as ImageControls,
848
+ qt as ImageMarginsBuiltInControl,
849
+ Jt as ImageSizeBuiltInControl,
850
+ ue as ModificationDescription,
851
+ te as SettingsPanelRegistry,
852
+ ee as SettingsPanelTab,
853
+ Rt as SettingsTab,
854
+ re as TextAlignBuiltInControl,
855
+ ne as TextBlockBackgroundBuiltInControl,
856
+ se as TextColorBuiltInControl,
857
+ w as TextControls,
858
+ ie as TextFontFamilyBuiltInControl,
859
+ ae as TextPaddingsBuiltInControl,
860
+ oe as TextSizeBuiltInControl,
861
+ Ee as TextStyleBuiltInControl,
862
+ Ht as UEAttr,
863
+ Oe as UIElement,
864
+ Ie as UIElementTagRegistry,
865
+ vt as UIElementType
844
866
  };
@@ -1,4 +1,4 @@
1
- const o = { stripo: { version: "2.42.0" } }, s = {
1
+ const o = { stripo: { version: "2.46.0" } }, s = {
2
2
  guido: o
3
3
  };
4
4
  export {
@@ -29,7 +29,7 @@ const m = () => {
29
29
  forceRecreate: !0
30
30
  };
31
31
  try {
32
- const { data: e } = await r("/stripo/default-template");
32
+ const { data: e } = await r("/stripo/default-template/0");
33
33
  try {
34
34
  return {
35
35
  ...JSON.parse(e),