@useinsider/guido 1.0.3-beta.6d7cd41 → 1.0.3-beta.70cf127
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/README.md +32 -0
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +36 -35
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +28 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +38 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +37 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +44 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +27 -0
- package/dist/composables/useStripo.js +39 -34
- package/dist/enums/extensions/recommendationBlock.js +80 -0
- package/dist/extensions/Blocks/Checkbox/block.js +5 -2
- package/dist/extensions/Blocks/Items/block.js +70 -0
- package/dist/extensions/Blocks/Items/controls/button/link.js +60 -0
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +99 -0
- package/dist/extensions/Blocks/Items/controls/image/link.js +60 -0
- package/dist/extensions/Blocks/Items/controls/index.js +217 -0
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +63 -0
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +100 -0
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +113 -0
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +69 -0
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +38 -0
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +279 -0
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +5 -0
- package/dist/extensions/Blocks/Items/enums/productEnums.js +181 -0
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +63 -0
- package/dist/extensions/Blocks/Items/extension.js +19 -0
- package/dist/extensions/Blocks/Items/iconsRegistry.js +32 -0
- package/dist/extensions/Blocks/Items/items.css.js +23 -0
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +64 -0
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +66 -0
- package/dist/extensions/Blocks/Items/settingsPanel.js +106 -0
- package/dist/extensions/Blocks/Items/store/items-block.js +67 -0
- package/dist/extensions/Blocks/Items/template.js +108 -0
- package/dist/extensions/Blocks/RadioButton/block.js +5 -2
- package/dist/extensions/Blocks/RadioButton/template.js +6 -6
- package/dist/extensions/Blocks/Recommendation/block.js +27 -0
- package/dist/extensions/Blocks/Recommendation/control.js +277 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +10 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +51 -0
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +19 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +32 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +266 -0
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +28 -0
- package/dist/extensions/Blocks/common-control.js +127 -0
- package/dist/extensions/Blocks/controlFactories.js +223 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +319 -95
- package/dist/package.json.js +7 -0
- package/dist/services/recommendationApi.js +37 -0
- package/dist/{@types → src/@types}/generic.d.ts +4 -0
- package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +19 -0
- package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +16 -0
- package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +2 -0
- package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +2 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +16 -0
- package/dist/{extensions → src/extensions}/Blocks/Checkbox/block.d.ts +1 -0
- package/dist/src/extensions/Blocks/Items/block.d.ts +12 -0
- package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +14 -0
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +20 -0
- package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +14 -0
- package/dist/src/extensions/Blocks/Items/controls/index.d.ts +501 -0
- package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +14 -0
- package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +19 -0
- package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +20 -0
- package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +14 -0
- package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +9 -0
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +42 -0
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +61 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +143 -0
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +35 -0
- package/dist/src/extensions/Blocks/Items/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +39 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +16 -0
- package/dist/{extensions → src/extensions}/Blocks/RadioButton/block.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +555 -0
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +7 -0
- package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +2 -0
- package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +4 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +80 -0
- package/dist/src/extensions/Blocks/controlFactories.d.ts +312 -0
- package/dist/src/extensions/DynamicContent/extension.d.ts +2 -0
- package/dist/src/mock/api/validator.d.ts +2 -0
- package/dist/src/services/recommendationApi.d.ts +6 -0
- package/dist/{stores → src/stores}/editor.d.ts +21 -0
- package/dist/{utils → src/utils}/genericUtil.d.ts +1 -0
- package/dist/static/styles/customEditorStyle.css.js +4 -0
- package/dist/stores/editor.js +2 -1
- package/package.json +16 -4
- /package/dist/{@types → src/@types}/events.d.ts +0 -0
- /package/dist/{@types → src/@types}/save-as-template.d.ts +0 -0
- /package/dist/{App.vue.d.ts → src/App.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/Guido.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/LoadingWrapper.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/base/Toaster.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
- /package/dist/{components/organisms/header/LeftSlot.vue.d.ts → src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts} +0 -0
- /package/dist/{components/organisms/header/MiddleSlot.vue.d.ts → src/components/organisms/extensions/recommendation/Filters.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
- /package/dist/{components/organisms/header/ViewOptions.vue.d.ts → src/components/organisms/header/LeftSlot.vue.d.ts} +0 -0
- /package/dist/{components/organisms/header/version-history/RestoreButton.vue.d.ts → src/components/organisms/header/MiddleSlot.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/organisms/header/RightSlot.vue.d.ts +0 -0
- /package/dist/{components/organisms/header/version-history → src/components/organisms/header}/ViewOptions.vue.d.ts +0 -0
- /package/dist/{components/organisms/onboarding/AMPOnboarding.vue.d.ts → src/components/organisms/header/version-history/RestoreButton.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
- /package/dist/{components → src/components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
- /package/dist/{components/organisms/onboarding/GenericOnboarding.vue.d.ts → src/components/organisms/header/version-history/ViewOptions.vue.d.ts} +0 -0
- /package/dist/{components/organisms/onboarding/NewVersionPopup.vue.d.ts → src/components/organisms/onboarding/AMPOnboarding.vue.d.ts} +0 -0
- /package/dist/{components/organisms/onboarding/OnboardingWrapper.vue.d.ts → src/components/organisms/onboarding/GenericOnboarding.vue.d.ts} +0 -0
- /package/dist/{components/organisms/onboarding/TextBlockOnboarding.vue.d.ts → src/components/organisms/onboarding/NewVersionPopup.vue.d.ts} +0 -0
- /package/dist/{components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts → src/components/organisms/onboarding/OnboardingWrapper.vue.d.ts} +0 -0
- /package/dist/{components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts → src/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts} +0 -0
- /package/dist/{components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts → src/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts} +0 -0
- /package/dist/{components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts → src/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts} +0 -0
- /package/dist/{components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts → src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts} +0 -0
- /package/dist/{components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts → src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts} +0 -0
- /package/dist/{components → src/components}/wrappers/WpDrawer.vue.d.ts +0 -0
- /package/dist/{components → src/components}/wrappers/WpModal.vue.d.ts +0 -0
- /package/dist/{composables → src/composables}/useActionsApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/useApiExample.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCodeEditorApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/useConfig.d.ts +0 -0
- /package/dist/{composables → src/composables}/useCustomInterfaceAppearance.d.ts +0 -0
- /package/dist/{composables → src/composables}/useDebounce.d.ts +0 -0
- /package/dist/{composables → src/composables}/useExport.d.ts +0 -0
- /package/dist/{composables → src/composables}/useGuidoActions.d.ts +0 -0
- /package/dist/{composables → src/composables}/useHtmlCompiler.d.ts +0 -0
- /package/dist/{composables → src/composables}/useHtmlValidator.d.ts +0 -0
- /package/dist/{composables → src/composables}/useHttp.d.ts +0 -0
- /package/dist/{composables → src/composables}/usePartner.d.ts +0 -0
- /package/dist/{composables → src/composables}/usePreviewMode.d.ts +0 -0
- /package/dist/{composables → src/composables}/useProvideInject.d.ts +0 -0
- /package/dist/{composables → src/composables}/useRecommendation.d.ts +0 -0
- /package/dist/{composables → src/composables}/useResponsivePreview.d.ts +0 -0
- /package/dist/{composables → src/composables}/useSave.d.ts +0 -0
- /package/dist/{composables → src/composables}/useStripo.d.ts +0 -0
- /package/dist/{composables → src/composables}/useStripoEventHandler.d.ts +0 -0
- /package/dist/{composables → src/composables}/useToaster.d.ts +0 -0
- /package/dist/{composables → src/composables}/useTranslations.d.ts +0 -0
- /package/dist/{composables → src/composables}/useValidation.d.ts +0 -0
- /package/dist/{composables → src/composables}/useVersionHistoryApi.d.ts +0 -0
- /package/dist/{composables → src/composables}/validators/saveAsTemplate.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/htmlCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/outlookCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/recommendationCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/socialCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/checkboxMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/couponBlockMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/index.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/radioButtonMigrator.d.ts +0 -0
- /package/dist/{config → src/config}/migrator/unsubscribeMigrator.d.ts +0 -0
- /package/dist/{enums → src/enums}/defaults.d.ts +0 -0
- /package/dist/{enums → src/enums}/displayConditions.d.ts +0 -0
- /package/dist/{enums → src/enums}/html-validator.d.ts +0 -0
- /package/dist/{enums → src/enums}/onboarding.d.ts +0 -0
- /package/dist/{enums → src/enums}/preview.d.ts +0 -0
- /package/dist/{enums → src/enums}/recommendation.d.ts +0 -0
- /package/dist/{enums → src/enums}/toaster.d.ts +0 -0
- /package/dist/{enums → src/enums}/unsubscribe.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Checkbox/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/CouponBlock/template.d.ts +0 -0
- /package/dist/{extensions/Blocks/RadioButton → src/extensions/Blocks/Items}/extension.d.ts +0 -0
- /package/dist/{extensions/Blocks/Unsubscribe → src/extensions/Blocks/Items}/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/control.d.ts +0 -0
- /package/dist/{extensions/Blocks/Unsubscribe → src/extensions/Blocks/RadioButton}/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/RadioButton/template.d.ts +0 -0
- /package/dist/{extensions/Blocks/_Boilerplate → src/extensions/Blocks/Recommendation}/extension.d.ts +0 -0
- /package/dist/{extensions/Blocks/_Boilerplate → src/extensions/Blocks/Recommendation}/settingsPanel.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/elements/preview.d.ts +0 -0
- /package/dist/{extensions/DynamicContent → src/extensions/Blocks/Unsubscribe}/extension.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/tagRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/utils/constants.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/Unsubscribe/utils/utils.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/DynamicContent/dynamic-content.d.ts +0 -0
- /package/dist/{library.d.ts → src/library.d.ts} +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{mock → src/mock}/api/auth.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/custom-fonts.d.ts +0 -0
- /package/dist/{mock → src/mock}/api/default-template.d.ts +0 -0
- /package/dist/{mock/api/template-library.d.ts → src/mock/api/recommendation.d.ts} +0 -0
- /package/dist/{mock/api/unsubscribe.d.ts → src/mock/api/template-library.d.ts} +0 -0
- /package/dist/{mock/api/user-modal-state.d.ts → src/mock/api/unsubscribe.d.ts} +0 -0
- /package/dist/{mock/api/validator.d.ts → src/mock/api/user-modal-state.d.ts} +0 -0
- /package/dist/{mock → src/mock}/browser.d.ts +0 -0
- /package/dist/{mock → src/mock}/handlers.d.ts +0 -0
- /package/dist/{services → src/services}/onboardingApi.d.ts +0 -0
- /package/dist/{services → src/services}/stripoApi.d.ts +0 -0
- /package/dist/{services → src/services}/templateLibraryApi.d.ts +0 -0
- /package/dist/{services → src/services}/unsubscribeApi.d.ts +0 -0
- /package/dist/{stores → src/stores}/config.d.ts +0 -0
- /package/dist/{stores → src/stores}/dynamic-content.d.ts +0 -0
- /package/dist/{stores → src/stores}/onboarding.d.ts +0 -0
- /package/dist/{stores → src/stores}/preview.d.ts +0 -0
- /package/dist/{stores → src/stores}/recommendation.d.ts +0 -0
- /package/dist/{stores → src/stores}/save-as-template.d.ts +0 -0
- /package/dist/{stores → src/stores}/toaster.d.ts +0 -0
- /package/dist/{stores → src/stores}/unsubscribe.d.ts +0 -0
- /package/dist/{stores → src/stores}/version-history.d.ts +0 -0
- /package/dist/{utils → src/utils}/arrayUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/base64.d.ts +0 -0
- /package/dist/{utils → src/utils}/dateUtil.d.ts +0 -0
- /package/dist/{utils → src/utils}/htmlCompiler.d.ts +0 -0
- /package/dist/{utils → src/utils}/templatePreparation.d.ts +0 -0
- /package/dist/{utils → src/utils}/tooltipUtils.d.ts +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var tt = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(tt || {}), M = class d {
|
|
2
2
|
/**
|
|
3
3
|
* Validates that all required methods are properly implemented in the subclass.
|
|
4
4
|
* @param requiredMethods - Array of method names that must be implemented
|
|
5
5
|
* @param classRef - Reference to the class constructor for validation caching
|
|
6
6
|
*/
|
|
7
7
|
constructor(e, r) {
|
|
8
|
-
if (r !==
|
|
9
|
-
|
|
10
|
-
const s =
|
|
8
|
+
if (r !== d) {
|
|
9
|
+
d.validatedClasses.has(r) || this.validateImplementation(e, r);
|
|
10
|
+
const s = d.validationErrors.get(r);
|
|
11
11
|
if (s && s.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
13
|
`${r.name} has validation errors:
|
|
14
|
-
${s.map((
|
|
14
|
+
${s.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -21,22 +21,22 @@ ${s.map((i) => ` - ${i}`).join(`
|
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
23
|
validateImplementation(e, r) {
|
|
24
|
-
var
|
|
25
|
-
const s = [],
|
|
26
|
-
e.forEach((
|
|
27
|
-
if (typeof this[
|
|
28
|
-
s.push(`Method ${
|
|
24
|
+
var I;
|
|
25
|
+
const s = [], o = r.name, T = Object.getPrototypeOf(this);
|
|
26
|
+
e.forEach((E) => {
|
|
27
|
+
if (typeof this[E] != "function") {
|
|
28
|
+
s.push(`Method ${E}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}),
|
|
31
|
+
T[E] === r.prototype[E] && s.push(`Method ${E}() 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" && ((I = process.env) == null ? void 0 : I.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
35
|
+
M.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
|
+
M.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
+
var a = M, y = class c extends a {
|
|
38
38
|
constructor() {
|
|
39
|
-
super(
|
|
39
|
+
super(c.REQUIRED_METHODS, c);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Determines if the block should be available for use in the editor.
|
|
@@ -185,10 +185,10 @@ var n = A, M = class d extends n {
|
|
|
185
185
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
|
|
189
|
-
var
|
|
188
|
+
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
189
|
+
var pt = y, et = class _ extends a {
|
|
190
190
|
constructor() {
|
|
191
|
-
super(
|
|
191
|
+
super(_.REQUIRED_METHODS, _);
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
@@ -203,10 +203,10 @@ var Ct = M, k = class h extends n {
|
|
|
203
203
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
var
|
|
206
|
+
et.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
207
|
+
var rt = class h extends a {
|
|
208
208
|
constructor() {
|
|
209
|
-
super(
|
|
209
|
+
super(h.REQUIRED_METHODS, h);
|
|
210
210
|
}
|
|
211
211
|
getId() {
|
|
212
212
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -221,31 +221,152 @@ var Q = class u extends n {
|
|
|
221
221
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
|
|
225
|
-
var
|
|
224
|
+
rt.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
225
|
+
var nt = {
|
|
226
|
+
src: "src",
|
|
227
|
+
alt: "alt",
|
|
228
|
+
href: "href",
|
|
229
|
+
width: "width"
|
|
230
|
+
}, Kt = {
|
|
231
|
+
BLOCK_IMAGE: nt
|
|
232
|
+
}, U = "esd-block-button", p = "esd-block-text", K = "esd-block-image", st = "esd-structure", at = "esd-block-video", it = "esd-block-social", ot = "esd-block-banner", Et = "esd-block-timer", lt = "esd-block-menu", dt = "esd-block-html", ut = "esd-block-spacer", It = "esd-container-frame", Ot = "esd-stripe", Tt = "esd-amp-form", O = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${p}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${st}`, t.VIDEO = `.${at}`, t.SOCIAL = `.${it}`, t.BANNER = `.${ot}`, t.TIMER = `.${Et}`, t.MENU = `.${lt}`, t.HTML = `.${dt}`, t.SPACER = `.${ut}`, t.CONTAINER = `.${It}`, t.STRIPE = `.${Ot}`, t.FORM = `.${Tt}`, t))(O || {}), 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 || {}), w = /* @__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))(w || {}), 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 || {}), P = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(P || {}), H = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(H || {}), _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 = {
|
|
233
|
+
BLOCK_BUTTON: F,
|
|
234
|
+
BLOCK_TEXT: P,
|
|
235
|
+
BLOCK_IMAGE: H,
|
|
236
|
+
GENERAL: w
|
|
237
|
+
}, ht = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(ht || {}), l = {
|
|
226
238
|
name: "name",
|
|
227
239
|
disabled: "disabled"
|
|
228
|
-
},
|
|
229
|
-
...
|
|
230
|
-
caption: "caption"
|
|
231
|
-
|
|
232
|
-
|
|
240
|
+
}, Rt = {
|
|
241
|
+
...l,
|
|
242
|
+
caption: "caption",
|
|
243
|
+
icon: "icon"
|
|
244
|
+
}, Lt = {
|
|
245
|
+
...l,
|
|
246
|
+
minValue: "min-value",
|
|
247
|
+
maxValue: "max-value",
|
|
248
|
+
step: "step"
|
|
249
|
+
}, gt = {
|
|
250
|
+
...l,
|
|
233
251
|
text: "text"
|
|
234
|
-
},
|
|
235
|
-
...
|
|
252
|
+
}, mt = {
|
|
253
|
+
...l
|
|
254
|
+
}, Ct = {
|
|
255
|
+
...l,
|
|
236
256
|
placeholder: "placeholder",
|
|
237
257
|
items: "items"
|
|
238
|
-
},
|
|
258
|
+
}, bt = {
|
|
239
259
|
text: "text",
|
|
240
260
|
value: "value"
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
261
|
+
}, Nt = {
|
|
262
|
+
text: "text",
|
|
263
|
+
icon: "icon",
|
|
264
|
+
value: "value"
|
|
265
|
+
}, At = {
|
|
266
|
+
...l
|
|
267
|
+
}, wt = {
|
|
268
|
+
BUTTON: Rt,
|
|
269
|
+
COUNTER: Lt,
|
|
270
|
+
LABEL: gt,
|
|
271
|
+
RADIO_BUTTONS: mt,
|
|
272
|
+
SELECTPICKER: Ct,
|
|
273
|
+
SWITCHER: l,
|
|
274
|
+
TEXT: At,
|
|
275
|
+
SELECT_ITEM: bt,
|
|
276
|
+
RADIO_ITEM: Nt
|
|
277
|
+
}, Dt = /* @__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))(Dt || {}), x = class {
|
|
278
|
+
/**
|
|
279
|
+
* @description returns map of nodes parent control operates on
|
|
280
|
+
*/
|
|
281
|
+
getTargetNodes(t) {
|
|
282
|
+
return [t];
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* @description returns map of labels used by parent control UI
|
|
286
|
+
*/
|
|
287
|
+
getLabels() {
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* @description returns custom description for parent modifications
|
|
291
|
+
*/
|
|
292
|
+
getModificationDescription() {
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @description returns custom modifications to be included in the parent control patch
|
|
296
|
+
*/
|
|
297
|
+
getAdditionalModifications(t) {
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Determines whether the specified HTML node is visible.
|
|
301
|
+
*
|
|
302
|
+
* @param _node - The HTML node to evaluate for visibility, provided as an immutable object.
|
|
303
|
+
* @return A boolean value indicating whether the node is visible. Returns `true` if the node is visible, otherwise `false`.
|
|
304
|
+
*/
|
|
305
|
+
isVisible(t) {
|
|
306
|
+
return !0;
|
|
307
|
+
}
|
|
308
|
+
}, i = class extends x {
|
|
309
|
+
getTargetNodes(t) {
|
|
310
|
+
const e = t.querySelectorAll(O.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
|
|
311
|
+
return e.length ? e : r;
|
|
312
|
+
}
|
|
313
|
+
}, Ft = class extends i {
|
|
314
|
+
getParentControlId() {
|
|
315
|
+
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
316
|
+
}
|
|
317
|
+
getLabels() {
|
|
318
|
+
}
|
|
319
|
+
}, Pt = class extends i {
|
|
320
|
+
getParentControlId() {
|
|
321
|
+
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
322
|
+
}
|
|
323
|
+
}, Ht = class extends i {
|
|
324
|
+
getParentControlId() {
|
|
325
|
+
return n.GENERAL.BACKGROUND_COLOR;
|
|
326
|
+
}
|
|
327
|
+
}, Xt = class extends i {
|
|
328
|
+
getParentControlId() {
|
|
329
|
+
return n.BLOCK_BUTTON.BORDER;
|
|
330
|
+
}
|
|
331
|
+
getLabels() {
|
|
332
|
+
}
|
|
333
|
+
}, kt = class extends i {
|
|
334
|
+
getParentControlId() {
|
|
335
|
+
return n.BLOCK_BUTTON.COLOR;
|
|
336
|
+
}
|
|
337
|
+
}, Vt = class extends i {
|
|
338
|
+
getParentControlId() {
|
|
339
|
+
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
340
|
+
}
|
|
341
|
+
}, Gt = class extends i {
|
|
342
|
+
getParentControlId() {
|
|
343
|
+
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
344
|
+
}
|
|
345
|
+
}, Qt = class extends i {
|
|
346
|
+
getParentControlId() {
|
|
347
|
+
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
348
|
+
}
|
|
349
|
+
}, ft = class extends i {
|
|
350
|
+
getParentControlId() {
|
|
351
|
+
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
352
|
+
}
|
|
353
|
+
}, Yt = class extends i {
|
|
354
|
+
getParentControlId() {
|
|
355
|
+
return n.BLOCK_BUTTON.TEXT;
|
|
356
|
+
}
|
|
357
|
+
}, $t = class extends i {
|
|
358
|
+
getParentControlId() {
|
|
359
|
+
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
360
|
+
}
|
|
361
|
+
}, Wt = class extends i {
|
|
362
|
+
getParentControlId() {
|
|
363
|
+
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
364
|
+
}
|
|
365
|
+
getLabels() {
|
|
366
|
+
}
|
|
367
|
+
}, X = class R extends a {
|
|
247
368
|
constructor() {
|
|
248
|
-
super(
|
|
369
|
+
super(R.REQUIRED_METHODS, R);
|
|
249
370
|
}
|
|
250
371
|
/**
|
|
251
372
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -290,18 +411,38 @@ var V = "esd-block-button", $ = "esd-block-text", X = "esd-block-image", G = "es
|
|
|
290
411
|
*/
|
|
291
412
|
onTemplateNodeUpdated(e) {
|
|
292
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* Lifecycle hook called when any part of the document template has changed.
|
|
416
|
+
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
417
|
+
* @param _node - The immutable HTML node representing current node instance
|
|
418
|
+
*/
|
|
419
|
+
onDocumentChanged(e) {
|
|
420
|
+
}
|
|
293
421
|
};
|
|
294
|
-
|
|
295
|
-
var
|
|
422
|
+
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
423
|
+
var zt = X, k = class extends x {
|
|
424
|
+
getTargetNodes(t) {
|
|
425
|
+
const e = t.querySelectorAll(O.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
|
|
426
|
+
return e.length ? e : r;
|
|
427
|
+
}
|
|
428
|
+
}, Zt = class extends k {
|
|
429
|
+
getParentControlId() {
|
|
430
|
+
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
431
|
+
}
|
|
432
|
+
}, jt = class extends k {
|
|
433
|
+
getParentControlId() {
|
|
434
|
+
return n.BLOCK_IMAGE.SIZE;
|
|
435
|
+
}
|
|
436
|
+
}, V = class L extends a {
|
|
296
437
|
constructor() {
|
|
297
|
-
super(
|
|
438
|
+
super(L.REQUIRED_METHODS, L);
|
|
298
439
|
}
|
|
299
440
|
registerBlockControls(e) {
|
|
300
441
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
301
442
|
}
|
|
302
443
|
};
|
|
303
|
-
|
|
304
|
-
var
|
|
444
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
445
|
+
var qt = V, Jt = class {
|
|
305
446
|
constructor(t, e) {
|
|
306
447
|
this.tabId = t, this.controlsIds = e;
|
|
307
448
|
}
|
|
@@ -324,9 +465,38 @@ var _t = N, Lt = class {
|
|
|
324
465
|
const e = this.controlsIds.indexOf(t);
|
|
325
466
|
e !== -1 && this.controlsIds.splice(e, 1);
|
|
326
467
|
}
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
|
|
468
|
+
}, u = class extends x {
|
|
469
|
+
getTargetNodes(t) {
|
|
470
|
+
const e = t.querySelectorAll(O.TEXT), r = t.asElement().hasClass(p) ? [t] : [];
|
|
471
|
+
return e.length ? e : r;
|
|
472
|
+
}
|
|
473
|
+
}, te = class extends u {
|
|
474
|
+
getParentControlId() {
|
|
475
|
+
return n.GENERAL.TEXT_ALIGN;
|
|
476
|
+
}
|
|
477
|
+
}, ee = class extends u {
|
|
478
|
+
getParentControlId() {
|
|
479
|
+
return n.GENERAL.TEXT_COLOR;
|
|
480
|
+
}
|
|
481
|
+
}, re = class extends u {
|
|
482
|
+
getParentControlId() {
|
|
483
|
+
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
484
|
+
}
|
|
485
|
+
}, ne = class extends u {
|
|
486
|
+
getParentControlId() {
|
|
487
|
+
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
488
|
+
}
|
|
489
|
+
}, se = class extends u {
|
|
490
|
+
getParentControlId() {
|
|
491
|
+
return n.GENERAL.TEXT_SIZE;
|
|
492
|
+
}
|
|
493
|
+
}, ae = class extends u {
|
|
494
|
+
getParentControlId() {
|
|
495
|
+
return n.GENERAL.TEXT_STYLE;
|
|
496
|
+
}
|
|
497
|
+
}, St = class {
|
|
498
|
+
constructor(t, e, r = [], s, o = [], T, I = [], E = [], v, Y, $, W, z, Z, j, q, J) {
|
|
499
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = $, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = o, this.settingsPanelRegistry = T, this.contextActions = I, this.blocks = E, this.externalSmartElementsLibrary = v, this.externalImageLibrary = Y, this.externalImageLibraryTab = J, this.externalAiAssistant = W, this.externalDisplayConditionsLibrary = z, this.externalVideoLibrary = Z, this.blocksPanel = j, this.iconsRegistry = q, this.id = Math.random().toString(36).substring(2);
|
|
330
500
|
}
|
|
331
501
|
getI18n() {
|
|
332
502
|
return this.i18n;
|
|
@@ -364,6 +534,9 @@ var _t = N, Lt = class {
|
|
|
364
534
|
getExternalImageLibrary() {
|
|
365
535
|
return this.externalImageLibrary;
|
|
366
536
|
}
|
|
537
|
+
getExternalImageLibraryTab() {
|
|
538
|
+
return this.externalImageLibraryTab;
|
|
539
|
+
}
|
|
367
540
|
getExternalAiAssistant() {
|
|
368
541
|
return this.externalAiAssistant;
|
|
369
542
|
}
|
|
@@ -379,7 +552,7 @@ var _t = N, Lt = class {
|
|
|
379
552
|
getIconsRegistry() {
|
|
380
553
|
return this.iconsRegistry;
|
|
381
554
|
}
|
|
382
|
-
},
|
|
555
|
+
}, ie = class {
|
|
383
556
|
constructor() {
|
|
384
557
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
385
558
|
}
|
|
@@ -422,6 +595,9 @@ var _t = N, Lt = class {
|
|
|
422
595
|
withExternalImageLibrary(t) {
|
|
423
596
|
return this.externalImageLibrary = t, this;
|
|
424
597
|
}
|
|
598
|
+
withExternalImageLibraryTab(t) {
|
|
599
|
+
return this.externalImageLibraryTab = t, this;
|
|
600
|
+
}
|
|
425
601
|
withExternalAiAssistant(t) {
|
|
426
602
|
return this.externalAiAssistant = t, this;
|
|
427
603
|
}
|
|
@@ -441,7 +617,7 @@ var _t = N, Lt = class {
|
|
|
441
617
|
return this.iconsRegistry = t, this;
|
|
442
618
|
}
|
|
443
619
|
build() {
|
|
444
|
-
return new
|
|
620
|
+
return new St(
|
|
445
621
|
this.i18n,
|
|
446
622
|
(this.styles || []).map((t) => t.trim()).join(`
|
|
447
623
|
`),
|
|
@@ -458,21 +634,22 @@ var _t = N, Lt = class {
|
|
|
458
634
|
this.externalDisplayConditionsLibrary,
|
|
459
635
|
this.externalVideoLibrary,
|
|
460
636
|
this.blocksPanel,
|
|
461
|
-
this.iconsRegistry
|
|
637
|
+
this.iconsRegistry,
|
|
638
|
+
this.externalImageLibraryTab
|
|
462
639
|
);
|
|
463
640
|
}
|
|
464
|
-
},
|
|
641
|
+
}, Bt = class g extends a {
|
|
465
642
|
constructor() {
|
|
466
|
-
super(
|
|
643
|
+
super(g.REQUIRED_METHODS, g);
|
|
467
644
|
}
|
|
468
|
-
openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type:
|
|
645
|
+
openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: o }) {
|
|
469
646
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
470
647
|
}
|
|
471
648
|
};
|
|
472
|
-
|
|
473
|
-
var
|
|
649
|
+
Bt.REQUIRED_METHODS = ["openAiAssistant"];
|
|
650
|
+
var Mt = class m extends a {
|
|
474
651
|
constructor() {
|
|
475
|
-
super(
|
|
652
|
+
super(m.REQUIRED_METHODS, m);
|
|
476
653
|
}
|
|
477
654
|
/**
|
|
478
655
|
* Retrieves the name of the category.
|
|
@@ -510,44 +687,65 @@ var mt = class b extends n {
|
|
|
510
687
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
511
688
|
}
|
|
512
689
|
};
|
|
513
|
-
|
|
514
|
-
var
|
|
690
|
+
Mt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
691
|
+
var xt = class C extends a {
|
|
515
692
|
constructor() {
|
|
516
|
-
super(
|
|
693
|
+
super(C.REQUIRED_METHODS, C);
|
|
517
694
|
}
|
|
518
695
|
openImageLibrary(e, r, s) {
|
|
519
696
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
520
697
|
}
|
|
521
698
|
};
|
|
522
|
-
|
|
523
|
-
var
|
|
699
|
+
xt.REQUIRED_METHODS = ["openImageLibrary"];
|
|
700
|
+
var vt = class b extends a {
|
|
524
701
|
constructor() {
|
|
525
|
-
super(
|
|
702
|
+
super(b.REQUIRED_METHODS, b);
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* @description Returns the translated name/label for the tab
|
|
706
|
+
* @returns Translation key or text to display as tab label
|
|
707
|
+
*/
|
|
708
|
+
getName() {
|
|
709
|
+
throw new Error("Method getName() must be implemented by the subclass");
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* @description Opens the external image library tab and provides a container for rendering
|
|
713
|
+
* @param _container - DOM element container where the external library UI should be rendered
|
|
714
|
+
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
715
|
+
*/
|
|
716
|
+
openImageLibraryTab(e, r) {
|
|
717
|
+
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
vt.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
721
|
+
var yt = class N extends a {
|
|
722
|
+
constructor() {
|
|
723
|
+
super(N.REQUIRED_METHODS, N);
|
|
526
724
|
}
|
|
527
725
|
openSmartElementsLibrary(e, r) {
|
|
528
726
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
529
727
|
}
|
|
530
728
|
};
|
|
531
|
-
|
|
532
|
-
var
|
|
729
|
+
yt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
730
|
+
var Ut = class A extends a {
|
|
533
731
|
constructor() {
|
|
534
|
-
super(
|
|
732
|
+
super(A.REQUIRED_METHODS, A);
|
|
535
733
|
}
|
|
536
734
|
openExternalVideosLibraryDialog(e, r, s) {
|
|
537
735
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
538
736
|
}
|
|
539
737
|
};
|
|
540
|
-
|
|
541
|
-
var
|
|
738
|
+
Ut.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
739
|
+
var G = class D extends a {
|
|
542
740
|
constructor() {
|
|
543
|
-
super(
|
|
741
|
+
super(D.REQUIRED_METHODS, D);
|
|
544
742
|
}
|
|
545
743
|
registerIconsSvg(e) {
|
|
546
744
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
547
745
|
}
|
|
548
746
|
};
|
|
549
|
-
|
|
550
|
-
var
|
|
747
|
+
G.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
748
|
+
var oe = G, Ee = class {
|
|
551
749
|
constructor(t) {
|
|
552
750
|
this.key = t;
|
|
553
751
|
}
|
|
@@ -560,9 +758,9 @@ var Dt = y, Tt = class {
|
|
|
560
758
|
params: this.params
|
|
561
759
|
};
|
|
562
760
|
}
|
|
563
|
-
},
|
|
761
|
+
}, Q = class S extends a {
|
|
564
762
|
constructor() {
|
|
565
|
-
super(
|
|
763
|
+
super(S.REQUIRED_METHODS, S);
|
|
566
764
|
}
|
|
567
765
|
/**
|
|
568
766
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -615,34 +813,60 @@ var Dt = y, Tt = class {
|
|
|
615
813
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
616
814
|
}
|
|
617
815
|
};
|
|
618
|
-
|
|
619
|
-
var
|
|
816
|
+
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
817
|
+
var le = Q, f = class B extends a {
|
|
620
818
|
constructor() {
|
|
621
|
-
super(
|
|
819
|
+
super(B.REQUIRED_METHODS, B);
|
|
622
820
|
}
|
|
623
821
|
registerUiElements(e) {
|
|
624
822
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
625
823
|
}
|
|
626
824
|
};
|
|
627
|
-
|
|
628
|
-
var
|
|
825
|
+
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
826
|
+
var de = f;
|
|
629
827
|
export {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
828
|
+
pt as Block,
|
|
829
|
+
Kt as BlockAttr,
|
|
830
|
+
tt as BlockCompositionType,
|
|
831
|
+
O as BlockSelector,
|
|
832
|
+
ct as BlockType,
|
|
833
|
+
x as BuiltInControl,
|
|
834
|
+
n as BuiltInControlTypes,
|
|
835
|
+
Pt as ButtonAlignBuiltInControl,
|
|
836
|
+
Ht as ButtonBackgroundColorBuiltInControl,
|
|
837
|
+
Xt as ButtonBorderBuiltInControl,
|
|
838
|
+
Ft as ButtonBorderRadiusBuiltInControl,
|
|
839
|
+
kt as ButtonColorBuiltInControl,
|
|
840
|
+
F as ButtonControls,
|
|
841
|
+
Vt as ButtonFitToContainerBuiltInControl,
|
|
842
|
+
Gt as ButtonFontFamilyBuiltInControl,
|
|
843
|
+
Qt as ButtonMarginsBuiltInControl,
|
|
844
|
+
ft as ButtonPaddingsBuiltInControl,
|
|
845
|
+
Yt as ButtonTextBuiltInControl,
|
|
846
|
+
$t as ButtonTextSizeBuiltInControl,
|
|
847
|
+
Wt as ButtonTextStyleAndFontColorBuiltInControl,
|
|
848
|
+
_t as ContainerControls,
|
|
849
|
+
zt as Control,
|
|
850
|
+
St as Extension,
|
|
851
|
+
ie as ExtensionBuilder,
|
|
852
|
+
w as GeneralControls,
|
|
853
|
+
oe as IconsRegistry,
|
|
854
|
+
H as ImageControls,
|
|
855
|
+
Zt as ImageMarginsBuiltInControl,
|
|
856
|
+
jt as ImageSizeBuiltInControl,
|
|
857
|
+
Ee as ModificationDescription,
|
|
858
|
+
qt as SettingsPanelRegistry,
|
|
859
|
+
Jt as SettingsPanelTab,
|
|
860
|
+
ht as SettingsTab,
|
|
861
|
+
te as TextAlignBuiltInControl,
|
|
862
|
+
ee as TextColorBuiltInControl,
|
|
863
|
+
P as TextControls,
|
|
864
|
+
re as TextFontFamilyBuiltInControl,
|
|
865
|
+
ne as TextPaddingsBuiltInControl,
|
|
866
|
+
se as TextSizeBuiltInControl,
|
|
867
|
+
ae as TextStyleBuiltInControl,
|
|
868
|
+
wt as UEAttr,
|
|
869
|
+
le as UIElement,
|
|
870
|
+
de as UIElementTagRegistry,
|
|
871
|
+
Dt as UIElementType
|
|
648
872
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useHttp as c } from "../composables/useHttp.js";
|
|
2
|
+
import { URLS as a } from "../enums/extensions/recommendationBlock.js";
|
|
3
|
+
const R = () => {
|
|
4
|
+
const { get: o } = c();
|
|
5
|
+
return {
|
|
6
|
+
fetchRecommendationCreateData: async () => {
|
|
7
|
+
try {
|
|
8
|
+
return (await o("/newsletter/recommendations/create-data")).data;
|
|
9
|
+
} catch (e) {
|
|
10
|
+
throw console.error("fetchUserModalState error:", e), e;
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
fetchRecommendationFilters: async () => {
|
|
14
|
+
try {
|
|
15
|
+
const { data: e } = await o("/stripo/email-recommendation-attributes");
|
|
16
|
+
return e;
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw console.error("fetchRecommendationFilters error:", e), e;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
fetchRecommendationProducts: async (e, n) => {
|
|
22
|
+
try {
|
|
23
|
+
const t = decodeURIComponent(new URLSearchParams(Object.entries(n)).toString());
|
|
24
|
+
console.debug("🏁 Recommendation API Query:", t);
|
|
25
|
+
const r = await o(
|
|
26
|
+
`${a.RECOMMENDATION_API_URL}/v2/${e}?${t}`
|
|
27
|
+
);
|
|
28
|
+
return (r == null ? void 0 : r.data) ?? [];
|
|
29
|
+
} catch (t) {
|
|
30
|
+
throw console.error("fetchRecommendationProducts error:", t), t;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
R as useRecommendationApi
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Filter } from '@@/Types/recommendation';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
index: number;
|
|
5
|
+
hasLogicAdapter?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
8
|
+
"delete-filter": (filter: Filter) => void;
|
|
9
|
+
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToOption<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|