@useinsider/guido 3.2.0-beta.e69fb3b → 3.2.0-beta.ecc7c6c
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.
- package/dist/@types/config/schemas.js +1 -1
- package/dist/@types/config/validator.js +34 -27
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +81 -76
- package/dist/components/organisms/base/Toaster.vue2.js +11 -10
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +15 -9
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +40 -31
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +20 -19
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +14 -11
- package/dist/components/organisms/header/EditorActions.vue.js +12 -11
- package/dist/components/organisms/header/EditorActions.vue2.js +22 -18
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -12
- package/dist/components/organisms/header/LeftSlot.vue2.js +19 -16
- package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -14
- package/dist/components/organisms/header/RightSlot.vue2.js +17 -14
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +26 -24
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +44 -41
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +38 -36
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +21 -18
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +31 -27
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +32 -30
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +12 -11
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +9 -8
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -9
- package/dist/composables/useActionsApi.js +38 -37
- package/dist/composables/useBlocksConfig.js +26 -26
- package/dist/composables/useFullStoryBridge.js +9 -8
- package/dist/composables/useHtmlCompiler.js +26 -34
- package/dist/composables/useHtmlValidator.js +114 -101
- package/dist/composables/useHttp.js +30 -30
- package/dist/composables/usePartner.js +1 -1
- package/dist/composables/useRecommendation.js +15 -14
- package/dist/composables/useRibbonOffset.js +15 -15
- package/dist/composables/useSave.js +23 -19
- package/dist/composables/useStripo.js +48 -53
- package/dist/composables/useSyncModuleExtractor.js +29 -31
- package/dist/composables/useTimerClone.js +25 -24
- package/dist/composables/useTranslations.js +3 -2
- package/dist/composables/useValidation.js +8 -7
- package/dist/composables/validators/useCouponBlockValidator.js +24 -0
- package/dist/composables/validators/useLiquidValidator.js +13 -13
- package/dist/config/compiler/recommendationCompilerRules.js +27 -27
- package/dist/config/compiler/unsubscribeCompilerRules.js +19 -17
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +11 -10
- package/dist/config/migrator/checkboxMigrator.js +21 -20
- package/dist/config/migrator/couponBlockMigrator.js +19 -18
- package/dist/config/migrator/itemsBlockMigrator.js +89 -87
- package/dist/config/migrator/radioButtonMigrator.js +63 -42
- package/dist/config/migrator/recommendationMigrator.js +109 -106
- package/dist/config/migrator/unsubscribeMigrator.js +11 -10
- package/dist/enums/unsubscribe.js +19 -18
- package/dist/extensions/Blocks/Items/block.js +9 -9
- package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +97 -89
- package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +24 -23
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +14 -13
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +47 -44
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +40 -38
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +162 -155
- package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
- package/dist/extensions/Blocks/Items/template.js +210 -210
- package/dist/extensions/Blocks/RadioButton/template.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +133 -128
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +10 -10
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +18 -17
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +6 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -82
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
- package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +36 -35
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +135 -134
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +10 -10
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
- package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +20 -18
- package/dist/extensions/Blocks/Recommendation/extension.js +32 -31
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +16 -8
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +64 -54
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +23 -22
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
- package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +25 -24
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +47 -45
- package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +16 -13
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +33 -0
- package/dist/extensions/Blocks/Unsubscribe/control.js +13 -11
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +18 -16
- package/dist/extensions/Blocks/common-control.js +26 -25
- package/dist/extensions/DynamicContent/dynamic-content.js +58 -53
- package/dist/guido.css +1 -1
- package/dist/library.js +12 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +234 -233
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_SetCache.js +13 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
- package/dist/node_modules/lodash-es/_arraySome.js +9 -0
- package/dist/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/lodash-es/_baseRange.js +9 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_createRange.js +11 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/lodash-es/_getTag.js +28 -0
- package/dist/node_modules/lodash-es/_getValue.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +19 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/lodash-es/flatMap.js +8 -0
- package/dist/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/map.js +11 -0
- package/dist/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/lodash-es/range.js +5 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toFinite.js +14 -0
- package/dist/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/valibot/dist/index.js +126 -122
- package/dist/services/recommendationApi.js +17 -14
- package/dist/services/templateLibraryApi.js +40 -38
- package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/src/composables/useHtmlCompiler.d.ts +2 -1
- package/dist/src/composables/validators/useCouponBlockValidator.d.ts +3 -0
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +7 -1
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +21 -0
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/stores/config.js +81 -25
- package/dist/stores/dynamic-content.js +11 -6
- package/dist/stores/onboarding.js +1 -1
- package/dist/stores/preview.js +9 -6
- package/dist/stores/unsubscribe.js +4 -1
- package/dist/utils/dateUtil.js +10 -7
- package/dist/utils/genericUtil.js +13 -10
- package/dist/utils/pairProductVariables.js +89 -87
- package/package.json +1 -6
- package/dist/enums/displayConditions.js +0 -80
- package/dist/src/enums/displayConditions.d.ts +0 -2
|
@@ -7,11 +7,11 @@ var x = class d {
|
|
|
7
7
|
constructor(t, r) {
|
|
8
8
|
if (r !== d) {
|
|
9
9
|
d.validatedClasses.has(r) || this.validateImplementation(t, r);
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
10
|
+
const s = d.validationErrors.get(r);
|
|
11
|
+
if (s && s.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
13
|
`${r.name} has validation errors:
|
|
14
|
-
${
|
|
14
|
+
${s.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -21,14 +21,15 @@ ${a.map((E) => ` - ${E}`).join(`
|
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
23
|
validateImplementation(t, r) {
|
|
24
|
-
|
|
24
|
+
var y;
|
|
25
|
+
const s = [], o = r.name, W = Object.getPrototypeOf(this);
|
|
25
26
|
t.forEach((u) => {
|
|
26
27
|
if (typeof this[u] != "function") {
|
|
27
|
-
|
|
28
|
+
s.push(`Method ${u}() is not defined`);
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
}), d.validatedClasses.add(r),
|
|
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`);
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
|
|
@@ -40,7 +41,7 @@ ${a.map((E) => ` - ${E}`).join(`
|
|
|
40
41
|
};
|
|
41
42
|
x.validatedClasses = /* @__PURE__ */ new Set();
|
|
42
43
|
x.validationErrors = /* @__PURE__ */ new Map();
|
|
43
|
-
var i = x,
|
|
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 {
|
|
44
45
|
constructor() {
|
|
45
46
|
super(T.REQUIRED_METHODS, T);
|
|
46
47
|
}
|
|
@@ -220,8 +221,8 @@ var i = x, W = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
|
|
|
220
221
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
221
222
|
}
|
|
222
223
|
};
|
|
223
|
-
|
|
224
|
-
var
|
|
224
|
+
P.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
225
|
+
var Ze = P, Z = class I extends i {
|
|
225
226
|
constructor() {
|
|
226
227
|
super(I.REQUIRED_METHODS, I);
|
|
227
228
|
}
|
|
@@ -237,8 +238,8 @@ var ze = y, z = class I extends i {
|
|
|
237
238
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
238
239
|
}
|
|
239
240
|
};
|
|
240
|
-
|
|
241
|
-
var
|
|
241
|
+
Z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
242
|
+
var qe = class {
|
|
242
243
|
/**
|
|
243
244
|
* Generates HTML representation for a block item
|
|
244
245
|
* @param block - The block item to generate HTML for
|
|
@@ -312,7 +313,7 @@ var Ze = class {
|
|
|
312
313
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
313
314
|
getModulesTabIconName(e) {
|
|
314
315
|
}
|
|
315
|
-
},
|
|
316
|
+
}, q = class b extends i {
|
|
316
317
|
constructor() {
|
|
317
318
|
super(b.REQUIRED_METHODS, b);
|
|
318
319
|
}
|
|
@@ -329,86 +330,86 @@ var Ze = class {
|
|
|
329
330
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
330
331
|
}
|
|
331
332
|
};
|
|
332
|
-
|
|
333
|
-
var
|
|
333
|
+
q.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
334
|
+
var j = {
|
|
334
335
|
src: "src",
|
|
335
336
|
alt: "alt",
|
|
336
337
|
href: "href",
|
|
337
338
|
width: "width",
|
|
338
339
|
height: "height"
|
|
339
|
-
},
|
|
340
|
-
BLOCK_IMAGE:
|
|
341
|
-
},
|
|
342
|
-
BLOCK_BUTTON:
|
|
343
|
-
BLOCK_TEXT:
|
|
344
|
-
BLOCK_IMAGE:
|
|
345
|
-
GENERAL:
|
|
346
|
-
},
|
|
340
|
+
}, je = {
|
|
341
|
+
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 = {
|
|
347
348
|
name: "name",
|
|
348
349
|
disabled: "disabled"
|
|
349
|
-
},
|
|
350
|
-
...
|
|
350
|
+
}, be = {
|
|
351
|
+
...a,
|
|
351
352
|
caption: "caption",
|
|
352
353
|
icon: "icon"
|
|
353
|
-
}, be = {
|
|
354
|
-
...n,
|
|
355
|
-
caption: "caption"
|
|
356
354
|
}, he = {
|
|
357
|
-
...
|
|
355
|
+
...a,
|
|
356
|
+
caption: "caption"
|
|
357
|
+
}, me = {
|
|
358
|
+
...a,
|
|
358
359
|
minValue: "min-value",
|
|
359
360
|
maxValue: "max-value",
|
|
360
361
|
step: "step"
|
|
361
|
-
},
|
|
362
|
-
...
|
|
362
|
+
}, ge = {
|
|
363
|
+
...a,
|
|
363
364
|
placeholder: "placeholder",
|
|
364
365
|
minDate: "min-date"
|
|
365
|
-
},
|
|
366
|
-
...
|
|
366
|
+
}, Oe = {
|
|
367
|
+
...a,
|
|
367
368
|
text: "text",
|
|
368
369
|
hint: "hint"
|
|
369
|
-
}, Oe = {
|
|
370
|
-
...n,
|
|
371
|
-
type: "type"
|
|
372
370
|
}, Re = {
|
|
373
|
-
...
|
|
371
|
+
...a,
|
|
372
|
+
type: "type"
|
|
373
|
+
}, Le = {
|
|
374
|
+
...a,
|
|
374
375
|
buttons: "buttons"
|
|
375
|
-
},
|
|
376
|
-
...
|
|
376
|
+
}, X = {
|
|
377
|
+
...a,
|
|
377
378
|
searchable: "searchable",
|
|
378
379
|
multiSelect: "multi-select",
|
|
379
380
|
placeholder: "placeholder",
|
|
380
381
|
items: "items"
|
|
381
|
-
}, Le = {
|
|
382
|
-
...k,
|
|
383
|
-
addCustomFontOption: "add-custom-font-option"
|
|
384
382
|
}, _e = {
|
|
385
|
-
...
|
|
383
|
+
...X,
|
|
384
|
+
addCustomFontOption: "add-custom-font-option"
|
|
385
|
+
}, Ce = {
|
|
386
|
+
...a,
|
|
386
387
|
text: "text",
|
|
387
388
|
value: "value"
|
|
388
|
-
},
|
|
389
|
-
...
|
|
389
|
+
}, Ae = {
|
|
390
|
+
...a,
|
|
390
391
|
text: "text",
|
|
391
392
|
hint: "hint",
|
|
392
393
|
icon: "icon",
|
|
393
394
|
value: "value"
|
|
394
|
-
}, Ae = {
|
|
395
|
-
...n,
|
|
396
|
-
buttons: "buttons"
|
|
397
395
|
}, Ne = {
|
|
398
|
-
...
|
|
396
|
+
...a,
|
|
397
|
+
buttons: "buttons"
|
|
398
|
+
}, De = {
|
|
399
|
+
...a,
|
|
399
400
|
text: "text",
|
|
400
401
|
hint: "hint",
|
|
401
402
|
icon: "icon",
|
|
402
403
|
value: "value"
|
|
403
|
-
}, De = {
|
|
404
|
-
...n,
|
|
405
|
-
placeholder: "placeholder"
|
|
406
404
|
}, Se = {
|
|
407
|
-
...
|
|
408
|
-
resizable: "resizable",
|
|
405
|
+
...a,
|
|
409
406
|
placeholder: "placeholder"
|
|
410
407
|
}, Me = {
|
|
411
|
-
...
|
|
408
|
+
...a,
|
|
409
|
+
resizable: "resizable",
|
|
410
|
+
placeholder: "placeholder"
|
|
411
|
+
}, Be = {
|
|
412
|
+
...a,
|
|
412
413
|
img: "img",
|
|
413
414
|
src: "src",
|
|
414
415
|
title: "title",
|
|
@@ -418,61 +419,61 @@ var q = {
|
|
|
418
419
|
isActive: "is-active",
|
|
419
420
|
visibility: "visibility",
|
|
420
421
|
transform: "transform"
|
|
421
|
-
}, Be = {
|
|
422
|
-
...n,
|
|
423
|
-
controlId: "control-id"
|
|
424
422
|
}, xe = {
|
|
425
|
-
...
|
|
426
|
-
|
|
423
|
+
...a,
|
|
424
|
+
controlId: "control-id"
|
|
427
425
|
}, ve = {
|
|
428
|
-
...
|
|
426
|
+
...a,
|
|
427
|
+
expanded: "expanded"
|
|
428
|
+
}, ye = {
|
|
429
|
+
...a,
|
|
429
430
|
icon: "icon",
|
|
430
431
|
position: "position"
|
|
431
|
-
}, ye = {
|
|
432
|
-
...n
|
|
433
432
|
}, Pe = {
|
|
434
|
-
...
|
|
435
|
-
icon: "icon"
|
|
436
|
-
}, pe = {
|
|
437
|
-
...n
|
|
433
|
+
...a
|
|
438
434
|
}, Ue = {
|
|
439
|
-
...
|
|
440
|
-
|
|
435
|
+
...a,
|
|
436
|
+
icon: "icon"
|
|
441
437
|
}, we = {
|
|
442
|
-
...
|
|
438
|
+
...a
|
|
443
439
|
}, Ke = {
|
|
444
|
-
...
|
|
440
|
+
...a,
|
|
441
|
+
blockId: "block-id"
|
|
442
|
+
}, Fe = {
|
|
443
|
+
...a
|
|
444
|
+
}, He = {
|
|
445
|
+
...a,
|
|
445
446
|
placeholder: "placeholder"
|
|
446
|
-
},
|
|
447
|
-
DEFAULT:
|
|
448
|
-
BUTTON:
|
|
449
|
-
CHECKBOX:
|
|
450
|
-
CHECK_BUTTONS:
|
|
451
|
-
COLOR:
|
|
452
|
-
COUNTER:
|
|
453
|
-
DATEPICKER:
|
|
454
|
-
LABEL:
|
|
455
|
-
MESSAGE:
|
|
456
|
-
RADIO_BUTTONS:
|
|
457
|
-
SELECTPICKER:
|
|
458
|
-
FONT_FAMILY_SELECT:
|
|
459
|
-
SWITCHER:
|
|
460
|
-
TEXT:
|
|
461
|
-
TEXTAREA:
|
|
462
|
-
ICON:
|
|
463
|
-
CHECK_ITEM:
|
|
464
|
-
SELECT_ITEM:
|
|
465
|
-
RADIO_ITEM:
|
|
466
|
-
NESTED_CONTROL:
|
|
467
|
-
EXPANDABLE:
|
|
468
|
-
ORDERABLE:
|
|
469
|
-
ORDERABLE_ITEM:
|
|
470
|
-
ORDERABLE_ICON:
|
|
471
|
-
REPEATABLE:
|
|
472
|
-
DRAGGABLE_BLOCK:
|
|
473
|
-
AMP_FORM_SERVICE_PICKER:
|
|
474
|
-
MULTIPLE_SELECT:
|
|
475
|
-
},
|
|
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 {
|
|
476
477
|
/**
|
|
477
478
|
* @description returns map of nodes parent control operates on
|
|
478
479
|
*/
|
|
@@ -503,66 +504,66 @@ var q = {
|
|
|
503
504
|
isVisible(e) {
|
|
504
505
|
return !0;
|
|
505
506
|
}
|
|
506
|
-
},
|
|
507
|
+
}, l = class extends v {
|
|
507
508
|
getTargetNodes(e) {
|
|
508
|
-
const t = e.querySelectorAll(c.BUTTON), r = e.asElement().hasClass(
|
|
509
|
+
const t = e.querySelectorAll(c.BUTTON), r = e.asElement().hasClass(U) ? [e] : [];
|
|
509
510
|
return t.length ? t : r;
|
|
510
511
|
}
|
|
511
|
-
},
|
|
512
|
+
}, et = class extends l {
|
|
512
513
|
getParentControlId() {
|
|
513
|
-
return
|
|
514
|
+
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
514
515
|
}
|
|
515
516
|
getLabels() {
|
|
516
517
|
}
|
|
517
|
-
},
|
|
518
|
+
}, tt = class extends l {
|
|
518
519
|
getParentControlId() {
|
|
519
|
-
return
|
|
520
|
+
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
520
521
|
}
|
|
521
|
-
},
|
|
522
|
+
}, rt = class extends l {
|
|
522
523
|
getParentControlId() {
|
|
523
|
-
return
|
|
524
|
+
return n.GENERAL.BACKGROUND_COLOR;
|
|
524
525
|
}
|
|
525
|
-
},
|
|
526
|
+
}, at = class extends l {
|
|
526
527
|
getParentControlId() {
|
|
527
|
-
return
|
|
528
|
+
return n.BLOCK_BUTTON.BORDER;
|
|
528
529
|
}
|
|
529
530
|
getLabels() {
|
|
530
531
|
}
|
|
531
|
-
}, nt = class extends
|
|
532
|
+
}, nt = class extends l {
|
|
532
533
|
getParentControlId() {
|
|
533
|
-
return
|
|
534
|
+
return n.BLOCK_BUTTON.COLOR;
|
|
534
535
|
}
|
|
535
|
-
}, st = class extends
|
|
536
|
+
}, st = class extends l {
|
|
536
537
|
getParentControlId() {
|
|
537
|
-
return
|
|
538
|
+
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
538
539
|
}
|
|
539
|
-
},
|
|
540
|
+
}, it = class extends l {
|
|
540
541
|
getParentControlId() {
|
|
541
|
-
return
|
|
542
|
+
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
542
543
|
}
|
|
543
|
-
},
|
|
544
|
+
}, lt = class extends l {
|
|
544
545
|
getParentControlId() {
|
|
545
|
-
return
|
|
546
|
+
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
546
547
|
}
|
|
547
|
-
},
|
|
548
|
+
}, Et = class extends l {
|
|
548
549
|
getParentControlId() {
|
|
549
|
-
return
|
|
550
|
+
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
550
551
|
}
|
|
551
|
-
},
|
|
552
|
+
}, ot = class extends l {
|
|
552
553
|
getParentControlId() {
|
|
553
|
-
return
|
|
554
|
+
return n.BLOCK_BUTTON.TEXT;
|
|
554
555
|
}
|
|
555
|
-
},
|
|
556
|
+
}, dt = class extends l {
|
|
556
557
|
getParentControlId() {
|
|
557
|
-
return
|
|
558
|
+
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
558
559
|
}
|
|
559
|
-
},
|
|
560
|
+
}, ut = class extends l {
|
|
560
561
|
getParentControlId() {
|
|
561
|
-
return
|
|
562
|
+
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
562
563
|
}
|
|
563
564
|
getLabels() {
|
|
564
565
|
}
|
|
565
|
-
},
|
|
566
|
+
}, G = class h extends i {
|
|
566
567
|
constructor() {
|
|
567
568
|
super(h.REQUIRED_METHODS, h);
|
|
568
569
|
}
|
|
@@ -617,8 +618,8 @@ var q = {
|
|
|
617
618
|
onDocumentChanged(t) {
|
|
618
619
|
}
|
|
619
620
|
};
|
|
620
|
-
|
|
621
|
-
var
|
|
621
|
+
G.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
622
|
+
var ct = G, pe = class m extends i {
|
|
622
623
|
constructor() {
|
|
623
624
|
super(m.REQUIRED_METHODS, m);
|
|
624
625
|
}
|
|
@@ -687,21 +688,21 @@ var ut = X, He = class m extends i {
|
|
|
687
688
|
onDestroy() {
|
|
688
689
|
}
|
|
689
690
|
};
|
|
690
|
-
|
|
691
|
-
var
|
|
691
|
+
pe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
692
|
+
var V = class extends v {
|
|
692
693
|
getTargetNodes(e) {
|
|
693
|
-
const t = e.querySelectorAll(c.IMAGE), r = e.asElement().hasClass(
|
|
694
|
+
const t = e.querySelectorAll(c.IMAGE), r = e.asElement().hasClass(K) ? [e] : [];
|
|
694
695
|
return t.length ? t : r;
|
|
695
696
|
}
|
|
696
|
-
},
|
|
697
|
+
}, Tt = class extends V {
|
|
697
698
|
getParentControlId() {
|
|
698
|
-
return
|
|
699
|
+
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
699
700
|
}
|
|
700
|
-
},
|
|
701
|
+
}, It = class extends V {
|
|
701
702
|
getParentControlId() {
|
|
702
|
-
return
|
|
703
|
+
return n.BLOCK_IMAGE.SIZE;
|
|
703
704
|
}
|
|
704
|
-
},
|
|
705
|
+
}, Xe = class g extends i {
|
|
705
706
|
constructor() {
|
|
706
707
|
super(g.REQUIRED_METHODS, g);
|
|
707
708
|
}
|
|
@@ -765,8 +766,8 @@ var G = class extends v {
|
|
|
765
766
|
onDocumentChanged() {
|
|
766
767
|
}
|
|
767
768
|
};
|
|
768
|
-
|
|
769
|
-
var
|
|
769
|
+
Xe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
770
|
+
var f = class O extends i {
|
|
770
771
|
constructor() {
|
|
771
772
|
super(O.REQUIRED_METHODS, O);
|
|
772
773
|
}
|
|
@@ -774,8 +775,8 @@ var V = class O extends i {
|
|
|
774
775
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
775
776
|
}
|
|
776
777
|
};
|
|
777
|
-
|
|
778
|
-
var
|
|
778
|
+
f.REQUIRED_METHODS = ["registerBlockControls"];
|
|
779
|
+
var bt = f, ht = class R {
|
|
779
780
|
constructor(t, r) {
|
|
780
781
|
this.tabId = t, this.controls = r.map(R.normalizeControl);
|
|
781
782
|
}
|
|
@@ -795,11 +796,11 @@ var It = V, bt = class R {
|
|
|
795
796
|
return this.label = t, this;
|
|
796
797
|
}
|
|
797
798
|
addControl(t, r) {
|
|
798
|
-
const
|
|
799
|
-
return r < 0 ? this.controls.unshift(
|
|
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;
|
|
800
801
|
}
|
|
801
802
|
deleteControl(t) {
|
|
802
|
-
const r = this.controls.findIndex((
|
|
803
|
+
const r = this.controls.findIndex((s) => s.id === t);
|
|
803
804
|
r !== -1 && this.controls.splice(r, 1);
|
|
804
805
|
}
|
|
805
806
|
static normalizeControl(t) {
|
|
@@ -812,42 +813,42 @@ var It = V, bt = class R {
|
|
|
812
813
|
id: t.id
|
|
813
814
|
};
|
|
814
815
|
}
|
|
815
|
-
},
|
|
816
|
+
}, E = class extends v {
|
|
816
817
|
getTargetNodes(e) {
|
|
817
|
-
const t = e.querySelectorAll(c.TEXT), r = e.asElement().hasClass(
|
|
818
|
+
const t = e.querySelectorAll(c.TEXT), r = e.asElement().hasClass(w) ? [e] : [];
|
|
818
819
|
return t.length ? t : r;
|
|
819
820
|
}
|
|
820
|
-
},
|
|
821
|
+
}, mt = class extends E {
|
|
821
822
|
getParentControlId() {
|
|
822
|
-
return
|
|
823
|
+
return n.GENERAL.TEXT_ALIGN;
|
|
823
824
|
}
|
|
824
|
-
},
|
|
825
|
+
}, gt = class extends E {
|
|
825
826
|
getParentControlId() {
|
|
826
|
-
return
|
|
827
|
+
return n.GENERAL.TEXT_COLOR;
|
|
827
828
|
}
|
|
828
|
-
},
|
|
829
|
+
}, Ot = class extends E {
|
|
829
830
|
getParentControlId() {
|
|
830
|
-
return
|
|
831
|
+
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
831
832
|
}
|
|
832
|
-
},
|
|
833
|
+
}, Rt = class extends E {
|
|
833
834
|
getParentControlId() {
|
|
834
|
-
return
|
|
835
|
+
return n.GENERAL.TEXT_LINE_SPACING;
|
|
835
836
|
}
|
|
836
|
-
},
|
|
837
|
+
}, Lt = class extends E {
|
|
837
838
|
getParentControlId() {
|
|
838
|
-
return
|
|
839
|
+
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
839
840
|
}
|
|
840
|
-
},
|
|
841
|
+
}, _t = class extends E {
|
|
841
842
|
getParentControlId() {
|
|
842
|
-
return
|
|
843
|
+
return n.GENERAL.TEXT_SIZE;
|
|
843
844
|
}
|
|
844
|
-
},
|
|
845
|
+
}, Ct = class extends E {
|
|
845
846
|
getParentControlId() {
|
|
846
|
-
return
|
|
847
|
+
return n.GENERAL.TEXT_STYLE;
|
|
847
848
|
}
|
|
848
|
-
},
|
|
849
|
+
}, Ge = class {
|
|
849
850
|
constructor(e) {
|
|
850
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], this.i18n = e
|
|
851
|
+
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);
|
|
851
852
|
}
|
|
852
853
|
getI18n() {
|
|
853
854
|
return this.i18n;
|
|
@@ -909,7 +910,7 @@ var It = V, bt = class R {
|
|
|
909
910
|
getModulesPanelTabs() {
|
|
910
911
|
return this.modulesPanelTabs;
|
|
911
912
|
}
|
|
912
|
-
},
|
|
913
|
+
}, At = class {
|
|
913
914
|
constructor() {
|
|
914
915
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
|
|
915
916
|
}
|
|
@@ -980,7 +981,7 @@ var It = V, bt = class R {
|
|
|
980
981
|
return this.modulesPanelTabs.push(e), this;
|
|
981
982
|
}
|
|
982
983
|
build() {
|
|
983
|
-
return new
|
|
984
|
+
return new Ge({
|
|
984
985
|
i18n: this.i18n,
|
|
985
986
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
986
987
|
`),
|
|
@@ -1003,7 +1004,7 @@ var It = V, bt = class R {
|
|
|
1003
1004
|
modulesPanelTabs: this.modulesPanelTabs
|
|
1004
1005
|
});
|
|
1005
1006
|
}
|
|
1006
|
-
},
|
|
1007
|
+
}, Ve = class L extends i {
|
|
1007
1008
|
constructor() {
|
|
1008
1009
|
super(L.REQUIRED_METHODS, L);
|
|
1009
1010
|
}
|
|
@@ -1011,8 +1012,8 @@ var It = V, bt = class R {
|
|
|
1011
1012
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
1012
1013
|
}
|
|
1013
1014
|
};
|
|
1014
|
-
|
|
1015
|
-
var
|
|
1015
|
+
Ve.REQUIRED_METHODS = ["openAiAssistant"];
|
|
1016
|
+
var fe = class _ extends i {
|
|
1016
1017
|
constructor() {
|
|
1017
1018
|
super(_.REQUIRED_METHODS, _);
|
|
1018
1019
|
}
|
|
@@ -1031,7 +1032,7 @@ var Ve = class _ extends i {
|
|
|
1031
1032
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
1032
1033
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
1033
1034
|
*/
|
|
1034
|
-
openExternalDisplayConditionsDialog(t, r,
|
|
1035
|
+
openExternalDisplayConditionsDialog(t, r, s) {
|
|
1035
1036
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
1036
1037
|
}
|
|
1037
1038
|
/**
|
|
@@ -1052,17 +1053,17 @@ var Ve = class _ extends i {
|
|
|
1052
1053
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
1053
1054
|
}
|
|
1054
1055
|
};
|
|
1055
|
-
|
|
1056
|
-
var
|
|
1056
|
+
fe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
1057
|
+
var Qe = class C extends i {
|
|
1057
1058
|
constructor() {
|
|
1058
1059
|
super(C.REQUIRED_METHODS, C);
|
|
1059
1060
|
}
|
|
1060
|
-
openImageLibrary(t, r,
|
|
1061
|
+
openImageLibrary(t, r, s) {
|
|
1061
1062
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
1062
1063
|
}
|
|
1063
1064
|
};
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1065
|
+
Qe.REQUIRED_METHODS = ["openImageLibrary"];
|
|
1066
|
+
var Ye = class A extends i {
|
|
1066
1067
|
constructor() {
|
|
1067
1068
|
super(A.REQUIRED_METHODS, A);
|
|
1068
1069
|
}
|
|
@@ -1079,12 +1080,12 @@ var Qe = class A extends i {
|
|
|
1079
1080
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
1080
1081
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
1081
1082
|
*/
|
|
1082
|
-
openImageLibraryTab(t, r,
|
|
1083
|
+
openImageLibraryTab(t, r, s) {
|
|
1083
1084
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
1084
1085
|
}
|
|
1085
1086
|
};
|
|
1086
|
-
|
|
1087
|
-
var
|
|
1087
|
+
Ye.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
1088
|
+
var $e = class N extends i {
|
|
1088
1089
|
constructor() {
|
|
1089
1090
|
super(N.REQUIRED_METHODS, N);
|
|
1090
1091
|
}
|
|
@@ -1092,17 +1093,17 @@ var Ye = class N extends i {
|
|
|
1092
1093
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
1093
1094
|
}
|
|
1094
1095
|
};
|
|
1095
|
-
|
|
1096
|
-
var
|
|
1096
|
+
$e.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
1097
|
+
var We = class D extends i {
|
|
1097
1098
|
constructor() {
|
|
1098
1099
|
super(D.REQUIRED_METHODS, D);
|
|
1099
1100
|
}
|
|
1100
|
-
openExternalVideosLibraryDialog(t, r,
|
|
1101
|
+
openExternalVideosLibraryDialog(t, r, s) {
|
|
1101
1102
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
1102
1103
|
}
|
|
1103
1104
|
};
|
|
1104
|
-
|
|
1105
|
-
var
|
|
1105
|
+
We.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
1106
|
+
var Q = class S extends i {
|
|
1106
1107
|
constructor() {
|
|
1107
1108
|
super(S.REQUIRED_METHODS, S);
|
|
1108
1109
|
}
|
|
@@ -1110,8 +1111,8 @@ var f = class S extends i {
|
|
|
1110
1111
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
1111
1112
|
}
|
|
1112
1113
|
};
|
|
1113
|
-
|
|
1114
|
-
var
|
|
1114
|
+
Q.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
1115
|
+
var Nt = Q, Dt = class {
|
|
1115
1116
|
constructor(e) {
|
|
1116
1117
|
this.key = e;
|
|
1117
1118
|
}
|
|
@@ -1124,7 +1125,7 @@ var At = f, Nt = class {
|
|
|
1124
1125
|
params: this.params
|
|
1125
1126
|
};
|
|
1126
1127
|
}
|
|
1127
|
-
},
|
|
1128
|
+
}, Y = class M extends i {
|
|
1128
1129
|
constructor() {
|
|
1129
1130
|
super(M.REQUIRED_METHODS, M);
|
|
1130
1131
|
}
|
|
@@ -1179,8 +1180,8 @@ var At = f, Nt = class {
|
|
|
1179
1180
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
1180
1181
|
}
|
|
1181
1182
|
};
|
|
1182
|
-
|
|
1183
|
-
var
|
|
1183
|
+
Y.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1184
|
+
var St = Y, $ = class B extends i {
|
|
1184
1185
|
constructor() {
|
|
1185
1186
|
super(B.REQUIRED_METHODS, B);
|
|
1186
1187
|
}
|
|
@@ -1188,55 +1189,55 @@ var Dt = Q, Y = class B extends i {
|
|
|
1188
1189
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
1189
1190
|
}
|
|
1190
1191
|
};
|
|
1191
|
-
|
|
1192
|
-
var
|
|
1192
|
+
$.REQUIRED_METHODS = ["registerUiElements"];
|
|
1193
|
+
var Mt = $;
|
|
1193
1194
|
export {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1195
|
+
Ze as Block,
|
|
1196
|
+
je as BlockAttr,
|
|
1197
|
+
z as BlockCompositionType,
|
|
1197
1198
|
c as BlockSelector,
|
|
1198
|
-
|
|
1199
|
-
|
|
1199
|
+
de as BlockType,
|
|
1200
|
+
qe as BlocksPanel,
|
|
1200
1201
|
v as BuiltInControl,
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1202
|
+
n as BuiltInControlTypes,
|
|
1203
|
+
tt as ButtonAlignBuiltInControl,
|
|
1204
|
+
rt as ButtonBackgroundColorBuiltInControl,
|
|
1205
|
+
at as ButtonBorderBuiltInControl,
|
|
1206
|
+
et as ButtonBorderRadiusBuiltInControl,
|
|
1206
1207
|
nt as ButtonColorBuiltInControl,
|
|
1207
|
-
|
|
1208
|
+
H as ButtonControls,
|
|
1208
1209
|
st as ButtonFitToContainerBuiltInControl,
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
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
|
|
1242
1243
|
};
|