@designcrowd/library.brand-page 5.18.7-ast-padding-1 → 5.18.7
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/lib/src/{CreatedOnBrandCrowd-de-de-Cn8zNuGM.js → CreatedOnBrandCrowd-de-de-CZmqvsOT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CP8xAFc-.js → CreatedOnBrandCrowd-en-us-5nTR1eLT.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-Ds8NijwP.js → CreatedOnBrandCrowd-es-es-xLvoayrw.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BiVV_7lj.js → CreatedOnBrandCrowd-fr-ca-CN5n8X8v.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BiVV_7lj.js → CreatedOnBrandCrowd-fr-fr-CN5n8X8v.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CjjrYojo.js → CreatedOnBrandCrowd-pt-br-CdkYC12E.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CjjrYojo.js → CreatedOnBrandCrowd-pt-pt-CdkYC12E.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-ChR5jvlP.js → CreatedOnDcom-de-de-B8rV2rD7.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-C4rO1BMA.js → CreatedOnDcom-en-us-C4WaRIpF.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DxGMS6JK.js → CreatedOnDcom-es-es-BPHPey0b.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-n31u4t7u.js → CreatedOnDcom-fr-ca-xrMr4xlv.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-gwdsX7YV.js → CreatedOnDcom-fr-fr-BEozL-o2.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-iZjFp--s.js → CreatedOnDcom-pt-br-CoN-ZhjG.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-B3Z3-RLC.js → CreatedOnDcom-pt-pt-9vfUJ3ks.js} +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +4 -8
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +0 -4
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +1 -4
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +0 -4
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +1 -4
- package/lib/src/brand-page/components/video/Video.mixin.d.ts +0 -4
- package/lib/src/brand-page/components/video/Video.mixin.js +0 -4
- package/lib/src/brand-page/constants/misc.constants.d.ts +0 -26
- package/lib/src/brand-page/constants/misc.constants.js +0 -42
- package/lib/src/brand-page/models/content.model.d.ts +0 -2
- package/lib/src/brand-page/utils/index.d.ts +0 -1
- package/lib/src/brand-page/utils/index.js +0 -1
- package/lib/src/brand-page/utils/migration.util.js +0 -10
- package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +0 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -12
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -14
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +0 -38
- package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +1 -9
- package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -7
- package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -6
- package/lib/src/brand-page-maker/models/content-settings.js +2 -36
- package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -12
- package/lib/src/{bundled-translations-BUyt4scr.js → bundled-translations-D1q3rSEz.js} +9 -9
- package/lib/src/{bundled-translations.de-DE-DEw_OVai.js → bundled-translations.de-DE-BxqLLwbh.js} +1 -1
- package/lib/src/{bundled-translations.es-ES-CFKWmkgY.js → bundled-translations.es-ES-uh249NlJ.js} +17 -17
- package/lib/src/{bundled-translations.fr-CA-DCl5LJS4.js → bundled-translations.fr-CA-BEQmv2fX.js} +1 -1
- package/lib/src/{bundled-translations.fr-FR-B5BjgllA.js → bundled-translations.fr-FR-BnNuCojH.js} +1 -1
- package/lib/src/{bundled-translations.pt-BR-5PWpMPuM.js → bundled-translations.pt-BR-CJUOxVlq.js} +1 -1
- package/lib/src/{bundled-translations.pt-PT-B9_wN0HR.js → bundled-translations.pt-PT-Ds9cMEqK.js} +9 -9
- package/lib/src/bundles/bundled-translations.de-DE.json +0 -2
- package/lib/src/bundles/bundled-translations.es-ES.json +0 -2
- package/lib/src/bundles/bundled-translations.fr-CA.json +0 -2
- package/lib/src/bundles/bundled-translations.fr-FR.json +0 -2
- package/lib/src/bundles/bundled-translations.json +0 -2
- package/lib/src/bundles/bundled-translations.pt-BR.json +0 -2
- package/lib/src/bundles/bundled-translations.pt-PT.json +0 -2
- package/lib/src/css/library.brand-page-brandCrowd.min.css +116 -108
- package/lib/src/css/library.brand-page-brandPage.min.css +116 -108
- package/lib/src/css/library.brand-page-designCom.min.css +116 -108
- package/lib/src/css/library.brand-page-preview.min.css +116 -108
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CIj_C38s.js → lib-xHNclG2R.js} +19655 -19841
- package/lib/src/metadata-builder/builders/reorder-pages-builder.d.ts +13 -0
- package/lib/src/metadata-builder/builders/reorder-pages-builder.js +49 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -14
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -14
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +0 -12
- package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +0 -9
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +0 -12
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -16
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -14
- package/lib/src/utils/minify-brand-page-metadata.js +1 -11
- package/package.json +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +4 -10
- package/src/brand-page/components/banner-section/BannerSection.vue +4 -11
- package/src/brand-page/components/booking-section/BookingSection.vue +3 -11
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -12
- package/src/brand-page/components/contact-form/ContactForm.vue +104 -105
- package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +0 -5
- package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
- package/src/brand-page/components/mailing-list/MailingList.mixin.ts +1 -8
- package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
- package/src/brand-page/components/map/Map.vue +1 -5
- package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +0 -5
- package/src/brand-page/components/payment/request-payment/RequestPayment.vue +0 -1
- package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -8
- package/src/brand-page/components/payment/support-me/SupportMe.vue +0 -1
- package/src/brand-page/components/shop/Shop.vue +2 -7
- package/src/brand-page/components/social-links/SocialLinks.vue +3 -7
- package/src/brand-page/components/text/Text.vue +5 -12
- package/src/brand-page/components/text-media-section/TextMediaSection.vue +3 -11
- package/src/brand-page/components/video/Video.mixin.ts +0 -5
- package/src/brand-page/components/video/Video.vue +1 -1
- package/src/brand-page/constants/misc.constants.ts +0 -48
- package/src/brand-page/models/content.model.ts +0 -2
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
- package/src/brand-page/utils/index.ts +0 -1
- package/src/brand-page/utils/migration.util.test.ts +0 -195
- package/src/brand-page/utils/migration.util.ts +0 -11
- package/src/brand-page-maker/constants/config-settings-constant.ts +0 -44
- package/src/brand-page-maker/convertors/about-display-style.convertor.ts +0 -10
- package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +0 -8
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +0 -8
- package/src/brand-page-maker/models/content-settings.ts +2 -38
- package/src/bundles/bundled-translations.de-DE.json +0 -2
- package/src/bundles/bundled-translations.es-ES.json +0 -2
- package/src/bundles/bundled-translations.fr-CA.json +0 -2
- package/src/bundles/bundled-translations.fr-FR.json +0 -2
- package/src/bundles/bundled-translations.json +0 -2
- package/src/bundles/bundled-translations.pt-BR.json +0 -2
- package/src/bundles/bundled-translations.pt-PT.json +0 -2
- package/src/metadata-builder/builders/reorder-pages-builder.ts +80 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
- package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +0 -9
- package/src/utils/minify-brand-page-metadata.ts +1 -11
- package/lib/src/brand-page/utils/content-padding.util.d.ts +0 -13
- package/lib/src/brand-page/utils/content-padding.util.js +0 -10
- package/lib/src/brand-page/utils/migration/migration-17.d.ts +0 -2
- package/lib/src/brand-page/utils/migration/migration-17.js +0 -48
- package/src/brand-page/utils/content-padding.util.test.ts +0 -29
- package/src/brand-page/utils/content-padding.util.ts +0 -13
- package/src/brand-page/utils/migration/migration-17.ts +0 -65
- package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +0 -50
|
@@ -3445,8 +3445,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3445
3445
|
id: string;
|
|
3446
3446
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
3447
3447
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3448
|
-
topPadding?: number | undefined;
|
|
3449
|
-
bottomPadding?: number | undefined;
|
|
3450
3448
|
imageUrlOverride?: string | undefined;
|
|
3451
3449
|
imageUrlsOverride?: string | undefined;
|
|
3452
3450
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3496,8 +3494,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3496
3494
|
id: string;
|
|
3497
3495
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
3498
3496
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3499
|
-
topPadding?: number | undefined;
|
|
3500
|
-
bottomPadding?: number | undefined;
|
|
3501
3497
|
imageUrlOverride?: string | undefined;
|
|
3502
3498
|
imageUrlsOverride?: string | undefined;
|
|
3503
3499
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3547,8 +3543,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3547
3543
|
id: string;
|
|
3548
3544
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
3549
3545
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3550
|
-
topPadding?: number | undefined;
|
|
3551
|
-
bottomPadding?: number | undefined;
|
|
3552
3546
|
imageUrlOverride?: string | undefined;
|
|
3553
3547
|
imageUrlsOverride?: string | undefined;
|
|
3554
3548
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3598,8 +3592,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3598
3592
|
id: string;
|
|
3599
3593
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
3600
3594
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3601
|
-
topPadding?: number | undefined;
|
|
3602
|
-
bottomPadding?: number | undefined;
|
|
3603
3595
|
imageUrlOverride?: string | undefined;
|
|
3604
3596
|
imageUrlsOverride?: string | undefined;
|
|
3605
3597
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3649,8 +3641,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3649
3641
|
id: string;
|
|
3650
3642
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
3651
3643
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3652
|
-
topPadding?: number | undefined;
|
|
3653
|
-
bottomPadding?: number | undefined;
|
|
3654
3644
|
imageUrlOverride?: string | undefined;
|
|
3655
3645
|
imageUrlsOverride?: string | undefined;
|
|
3656
3646
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -3700,8 +3690,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3700
3690
|
id: string;
|
|
3701
3691
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
3702
3692
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
3703
|
-
topPadding?: number | undefined;
|
|
3704
|
-
bottomPadding?: number | undefined;
|
|
3705
3693
|
imageUrlOverride?: string | undefined;
|
|
3706
3694
|
imageUrlsOverride?: string | undefined;
|
|
3707
3695
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -4470,8 +4458,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4470
4458
|
id: string;
|
|
4471
4459
|
type: "website" | "image" | "email" | "phone" | "logo" | "general-link" | "profile" | "video" | "text" | "facebook" | "x" | "instagram" | "youtube" | "linkedin" | "pinterest" | "twitch" | "tiktok" | "map" | "image-gallery" | "mailing-list" | "request-payment" | "support-me" | "contact-form" | "banner-section" | "about-section" | "divider-section" | "images-section" | "testimonial-section" | "social-links" | "shapes-section" | "shop-section" | "booking-section";
|
|
4472
4460
|
personalisationRole?: "website" | "email" | "phone" | "profile" | "about" | "information" | "media" | undefined;
|
|
4473
|
-
topPadding?: number | undefined;
|
|
4474
|
-
bottomPadding?: number | undefined;
|
|
4475
4461
|
imageUrlOverride?: string | undefined;
|
|
4476
4462
|
imageUrlsOverride?: string | undefined;
|
|
4477
4463
|
avatarImageUrlOverride?: string | undefined;
|
|
@@ -87,17 +87,7 @@ const findAssetKey = (assets, data) => {
|
|
|
87
87
|
return assets.find((a) => a.data === data)?.key;
|
|
88
88
|
};
|
|
89
89
|
const minifyContent = (content, editor, assets) => {
|
|
90
|
-
const base = {
|
|
91
|
-
id: content.id,
|
|
92
|
-
type: content.type,
|
|
93
|
-
// Padding Control (BP-5687) — shared across every block, persist when set.
|
|
94
|
-
...(typeof content.topPadding === 'number' && {
|
|
95
|
-
topPadding: content.topPadding,
|
|
96
|
-
}),
|
|
97
|
-
...(typeof content.bottomPadding === 'number' && {
|
|
98
|
-
bottomPadding: content.bottomPadding,
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
90
|
+
const base = { id: content.id, type: content.type };
|
|
101
91
|
const c = content;
|
|
102
92
|
// Helper: include imageUrl and its asset key if available
|
|
103
93
|
const includeImageWithKey = (url, urlField = 'imageUrl', keyField = 'imageAssetKey') => {
|
package/package.json
CHANGED
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
<div
|
|
8
8
|
:class="{
|
|
9
9
|
'about-container': context.isBrandSite,
|
|
10
|
-
'about-container--padding': !isFullImage,
|
|
10
|
+
'about-container--padding tw-py-10': !isFullImage,
|
|
11
11
|
'mobile-about-container--padding': isFullImage,
|
|
12
12
|
}"
|
|
13
|
-
:style="contentPaddingStyle"
|
|
14
13
|
>
|
|
15
14
|
<Media
|
|
16
15
|
v-if="
|
|
@@ -104,10 +103,7 @@
|
|
|
104
103
|
import { computed } from 'vue';
|
|
105
104
|
import type { AboutSectionViewModel } from '@brand-page/view-models';
|
|
106
105
|
import type { BrandPageContext } from '@brand-page/models';
|
|
107
|
-
import {
|
|
108
|
-
getRenderText,
|
|
109
|
-
contentPaddingStyle as toContentPaddingStyle,
|
|
110
|
-
} from '@brand-page/utils';
|
|
106
|
+
import { getRenderText } from '@brand-page/utils';
|
|
111
107
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
112
108
|
import Media from '../media/Media.vue';
|
|
113
109
|
import TextWrapper from '../text-wrapper/TextWrapper.vue';
|
|
@@ -127,10 +123,6 @@ const props = withDefaults(
|
|
|
127
123
|
},
|
|
128
124
|
);
|
|
129
125
|
|
|
130
|
-
const contentPaddingStyle = computed(() =>
|
|
131
|
-
toContentPaddingStyle(props.viewModel),
|
|
132
|
-
);
|
|
133
|
-
|
|
134
126
|
const isFullImage = computed(
|
|
135
127
|
() =>
|
|
136
128
|
props.viewModel.displayStyle === 'right-aligned-full-image' ||
|
|
@@ -209,6 +201,7 @@ const renderText = computed((): string => {
|
|
|
209
201
|
.device-wrapper--mobile .mobile-about-container--padding {
|
|
210
202
|
padding-left: var(--page-padding);
|
|
211
203
|
padding-right: var(--page-padding);
|
|
204
|
+
@apply tw-py-10;
|
|
212
205
|
}
|
|
213
206
|
.device-wrapper--mobile .text-grid-column {
|
|
214
207
|
@apply container-grid-columns;
|
|
@@ -282,6 +275,7 @@ const renderText = computed((): string => {
|
|
|
282
275
|
.mobile-about-container--padding {
|
|
283
276
|
padding-left: var(--page-padding);
|
|
284
277
|
padding-right: var(--page-padding);
|
|
278
|
+
@apply tw-py-10;
|
|
285
279
|
}
|
|
286
280
|
.about-container :deep(.container-image) {
|
|
287
281
|
aspect-ratio: 1/1;
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
viewModel.isBigImageType,
|
|
8
8
|
'c_banner--with-image-overlay tw-flex tw-flex-col': isDividedContent,
|
|
9
9
|
'tw-px-6': !isDividedContent,
|
|
10
|
+
'tw-py-8': !isDividedContent && !isStackedFullWidth,
|
|
10
11
|
}"
|
|
11
|
-
:style="
|
|
12
|
+
:style="viewModel.backgroundStyle"
|
|
12
13
|
style="container-type: inline-size"
|
|
13
14
|
>
|
|
14
15
|
<Media
|
|
@@ -200,7 +201,7 @@
|
|
|
200
201
|
<div
|
|
201
202
|
class="!tw-text-center tw-flex tw-flex-col tw-gap-5"
|
|
202
203
|
:class="{
|
|
203
|
-
'tw-px-6': isDividedContent,
|
|
204
|
+
'tw-px-6 tw-py-8': isDividedContent,
|
|
204
205
|
}"
|
|
205
206
|
>
|
|
206
207
|
<TextWrapper
|
|
@@ -331,11 +332,7 @@ import type {
|
|
|
331
332
|
} from '@brand-page/view-models';
|
|
332
333
|
import type { BrandPageContext } from '@brand-page/models';
|
|
333
334
|
import { hasValidButton } from '../../../utils/validator.util';
|
|
334
|
-
import {
|
|
335
|
-
getRenderText,
|
|
336
|
-
escapeContentText,
|
|
337
|
-
contentPaddingStyle as toContentPaddingStyle,
|
|
338
|
-
} from '@brand-page/utils';
|
|
335
|
+
import { getRenderText, escapeContentText } from '@brand-page/utils';
|
|
339
336
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
340
337
|
import {
|
|
341
338
|
ALIGN_CENTERED,
|
|
@@ -493,10 +490,6 @@ const layout = computed<BannerLayoutConfig>(
|
|
|
493
490
|
() => BANNER_LAYOUTS[props.viewModel.displayStyle] ?? DEFAULT_LAYOUT,
|
|
494
491
|
);
|
|
495
492
|
|
|
496
|
-
const contentPaddingStyle = computed(() =>
|
|
497
|
-
toContentPaddingStyle(props.viewModel),
|
|
498
|
-
);
|
|
499
|
-
|
|
500
493
|
const displayAlignClass = computed(() => layout.value.alignClass);
|
|
501
494
|
const isHorizontalAligned = computed(() => !!layout.value.hasSideImage);
|
|
502
495
|
const isDividedContent = computed(() => layout.value.layout === 'divided');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section data-component="booking-section">
|
|
3
3
|
<div
|
|
4
|
-
class="tw-relative tw-px-6"
|
|
5
|
-
:style="
|
|
4
|
+
class="tw-relative tw-px-6 tw-py-8"
|
|
5
|
+
:style="viewModel.backgroundStyle"
|
|
6
6
|
style="container-type: inline-size"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
@@ -45,11 +45,7 @@ import type {
|
|
|
45
45
|
ButtonViewModel,
|
|
46
46
|
} from '@brand-page/view-models';
|
|
47
47
|
import type { BrandPageContext } from '@brand-page/models';
|
|
48
|
-
import {
|
|
49
|
-
getRenderText,
|
|
50
|
-
escapeContentText,
|
|
51
|
-
contentPaddingStyle as toContentPaddingStyle,
|
|
52
|
-
} from '@brand-page/utils';
|
|
48
|
+
import { getRenderText, escapeContentText } from '@brand-page/utils';
|
|
53
49
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
54
50
|
import { hasValidButton as shouldShowButtonUtil } from '../../../utils/validator.util';
|
|
55
51
|
import Button from '../button/Button.vue';
|
|
@@ -75,10 +71,6 @@ const props = defineProps({
|
|
|
75
71
|
},
|
|
76
72
|
});
|
|
77
73
|
|
|
78
|
-
const contentPaddingStyle = computed(() =>
|
|
79
|
-
toContentPaddingStyle(props.viewModel),
|
|
80
|
-
);
|
|
81
|
-
|
|
82
74
|
const renderText = computed((): string => {
|
|
83
75
|
if (!props.viewModel.description) {
|
|
84
76
|
return '';
|
|
@@ -25,10 +25,7 @@ import {
|
|
|
25
25
|
RECAPTCHA_ACTION_CONTACT_FORM,
|
|
26
26
|
TEXT_ONLY,
|
|
27
27
|
} from '../../constants';
|
|
28
|
-
import {
|
|
29
|
-
getRenderText,
|
|
30
|
-
contentPaddingStyle as toContentPaddingStyle,
|
|
31
|
-
} from '@brand-page/utils';
|
|
28
|
+
import { getRenderText } from '@brand-page/utils';
|
|
32
29
|
import { hasRTEContent } from '@brand-page-maker/utils';
|
|
33
30
|
import { useReCaptcha } from '../../composables/recaptcha.composable';
|
|
34
31
|
|
|
@@ -100,10 +97,6 @@ export default defineComponent({
|
|
|
100
97
|
return buttonTextStyle;
|
|
101
98
|
},
|
|
102
99
|
|
|
103
|
-
contentPaddingStyle(): { paddingTop: string; paddingBottom: string } {
|
|
104
|
-
return toContentPaddingStyle(this.viewModel);
|
|
105
|
-
},
|
|
106
|
-
|
|
107
100
|
hasCard(): boolean {
|
|
108
101
|
return (
|
|
109
102
|
this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
|
|
@@ -116,10 +109,11 @@ export default defineComponent({
|
|
|
116
109
|
},
|
|
117
110
|
|
|
118
111
|
hasBgColor(): boolean {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
112
|
+
return (
|
|
113
|
+
this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
|
|
114
|
+
this.viewModel.layoutStyle === TEXT_ONLY ||
|
|
115
|
+
this.viewModel.layoutStyle === ALIGN_CENTERED
|
|
116
|
+
);
|
|
123
117
|
},
|
|
124
118
|
|
|
125
119
|
isCenteredLayout(): boolean {
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
<section data-component="contact-form">
|
|
3
3
|
<div
|
|
4
4
|
:class="{
|
|
5
|
+
'tw-flex': isCenteredLayout && !hasBgImage,
|
|
5
6
|
'tw-block': !viewModel.layoutStyle,
|
|
6
|
-
'tw-relative
|
|
7
|
+
'tw-relative': hasBgImage,
|
|
7
8
|
}"
|
|
8
|
-
:style="
|
|
9
|
-
hasBgColor ? viewModel.backgroundStyle : {},
|
|
10
|
-
contentPaddingStyle,
|
|
11
|
-
]"
|
|
9
|
+
:style="hasBgColor ? viewModel.backgroundStyle : {}"
|
|
12
10
|
>
|
|
13
11
|
<Media
|
|
14
12
|
v-if="hasBgImage && isCenteredLayout"
|
|
@@ -110,115 +108,110 @@
|
|
|
110
108
|
</Collapsible>
|
|
111
109
|
<div
|
|
112
110
|
v-else-if="isCenteredLayout"
|
|
113
|
-
|
|
111
|
+
class="contact-container tw-py-4"
|
|
112
|
+
:class="{
|
|
113
|
+
'tw-px-6 tw-py-8': hasCard,
|
|
114
|
+
'tw-py-6': !hasCard,
|
|
115
|
+
'tw-w-full': !hasBgImage,
|
|
116
|
+
}"
|
|
114
117
|
>
|
|
115
118
|
<div
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
'tw-px-6': hasCard,
|
|
119
|
-
'tw-py-8': hasBgImage,
|
|
120
|
-
'tw-w-full': !hasBgImage,
|
|
121
|
-
}"
|
|
119
|
+
:style="hasCard ? viewModel.cardStyle : {}"
|
|
120
|
+
class="tw-relative tw-block tw-px-6 tw-py-8 tw-rounded-2xl"
|
|
122
121
|
>
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
122
|
+
<form v-if="!hasSubmitted" @submit.prevent="submitContactForm">
|
|
123
|
+
<TextWrapper
|
|
124
|
+
v-if="viewModel.title"
|
|
125
|
+
:text-style="viewModel.titleStyle"
|
|
126
|
+
:text="viewModel.title"
|
|
127
|
+
element="h1"
|
|
128
|
+
class="tw-mb-4 tw-text-base"
|
|
129
|
+
/>
|
|
130
|
+
<TextWrapper
|
|
131
|
+
v-if="renderText"
|
|
132
|
+
:text-style="viewModel.descriptionStyle"
|
|
133
|
+
:text="renderText"
|
|
134
|
+
element="div"
|
|
135
|
+
class="tw-mb-4 tw-text-base"
|
|
136
|
+
/>
|
|
137
|
+
<div v-if="!isSubmitting" class="tw-grid tw-grid-cols-2 tw-gap-4">
|
|
138
|
+
<div
|
|
139
|
+
v-for="(value, index) in values"
|
|
140
|
+
:key="index"
|
|
141
|
+
class="tw-text-secondary-500 c-col-span-2"
|
|
142
|
+
:class="{
|
|
143
|
+
'tw-col-span-2':
|
|
144
|
+
value.field.type === 'text-area' || isMobileDevice,
|
|
145
|
+
}"
|
|
146
|
+
>
|
|
147
|
+
<TextInput
|
|
148
|
+
v-if="value.field.type !== 'text-area'"
|
|
149
|
+
v-model="value.value"
|
|
150
|
+
:placeholder="`${value.field.name}${
|
|
151
|
+
value.field.required ? '*' : ''
|
|
152
|
+
}`"
|
|
153
|
+
:label="`${value.field.name}${value.field.required ? '*' : ''}`"
|
|
154
|
+
:show-label-screen-reader-only="true"
|
|
155
|
+
size="sm"
|
|
156
|
+
:error="!!value.error"
|
|
157
|
+
:type="getTextInputTypeByFieldType(value.field.type)"
|
|
158
|
+
class="tw-w-full"
|
|
159
|
+
@input="onValueChange(index)"
|
|
160
|
+
/>
|
|
161
|
+
<Textarea
|
|
162
|
+
v-if="value.field.type === 'text-area'"
|
|
163
|
+
v-model="value.value"
|
|
164
|
+
:placeholder="`${value.field.name}${
|
|
165
|
+
value.field.required ? '*' : ''
|
|
166
|
+
}`"
|
|
167
|
+
:label="`${value.field.name}${value.field.required ? '*' : ''}`"
|
|
168
|
+
:show-label-screen-reader-only="true"
|
|
169
|
+
size="sm"
|
|
170
|
+
:error="!!value.error"
|
|
171
|
+
:resize="false"
|
|
172
|
+
class="tw-w-full"
|
|
173
|
+
@input="onValueChange(index)"
|
|
174
|
+
/>
|
|
175
|
+
<p v-if="!!value.error" class="form-error">
|
|
176
|
+
{{ value.error }}
|
|
177
|
+
</p>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="tw-flex tw-w-full tw-justify-center tw-col-span-2">
|
|
180
|
+
<button
|
|
181
|
+
v-if="isSubmitButtonVisible"
|
|
182
|
+
class="tw-block tw-border-0 tw-py-2 tw-select-none tw-text-base tw-text-center tw-w-fit hover:tw-cursor-pointer tw-px-8 tw-py-3 c-button-full"
|
|
183
|
+
:style="submitButtonStyle"
|
|
184
|
+
:class="{ 'tw-w-full': isMobileDevice }"
|
|
152
185
|
>
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
value.field.required ? '*' : ''
|
|
158
|
-
}`"
|
|
159
|
-
:label="`${value.field.name}${value.field.required ? '*' : ''}`"
|
|
160
|
-
:show-label-screen-reader-only="true"
|
|
161
|
-
size="sm"
|
|
162
|
-
:error="!!value.error"
|
|
163
|
-
:type="getTextInputTypeByFieldType(value.field.type)"
|
|
164
|
-
class="tw-w-full"
|
|
165
|
-
@input="onValueChange(index)"
|
|
166
|
-
/>
|
|
167
|
-
<Textarea
|
|
168
|
-
v-if="value.field.type === 'text-area'"
|
|
169
|
-
v-model="value.value"
|
|
170
|
-
:placeholder="`${value.field.name}${
|
|
171
|
-
value.field.required ? '*' : ''
|
|
172
|
-
}`"
|
|
173
|
-
:label="`${value.field.name}${value.field.required ? '*' : ''}`"
|
|
174
|
-
:show-label-screen-reader-only="true"
|
|
175
|
-
size="sm"
|
|
176
|
-
:error="!!value.error"
|
|
177
|
-
:resize="false"
|
|
178
|
-
class="tw-w-full"
|
|
179
|
-
@input="onValueChange(index)"
|
|
186
|
+
<TextWrapper
|
|
187
|
+
:text-style="submitButtonTextStyle"
|
|
188
|
+
:text="viewModel.buttonText"
|
|
189
|
+
class="tw-text-center tw-text-base"
|
|
180
190
|
/>
|
|
181
|
-
|
|
182
|
-
{{ value.error }}
|
|
183
|
-
</p>
|
|
184
|
-
</div>
|
|
185
|
-
<div class="tw-flex tw-w-full tw-justify-center tw-col-span-2">
|
|
186
|
-
<button
|
|
187
|
-
v-if="isSubmitButtonVisible"
|
|
188
|
-
class="tw-block tw-border-0 tw-py-2 tw-select-none tw-text-base tw-text-center tw-w-fit hover:tw-cursor-pointer tw-px-8 tw-py-3 c-button-full"
|
|
189
|
-
:style="submitButtonStyle"
|
|
190
|
-
:class="{ 'tw-w-full': isMobileDevice }"
|
|
191
|
-
>
|
|
192
|
-
<TextWrapper
|
|
193
|
-
:text-style="submitButtonTextStyle"
|
|
194
|
-
:text="viewModel.buttonText"
|
|
195
|
-
class="tw-text-center tw-text-base"
|
|
196
|
-
/>
|
|
197
|
-
</button>
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
<div v-else class="tw-w-full tw-flex tw-justify-center">
|
|
201
|
-
<Loader />
|
|
191
|
+
</button>
|
|
202
192
|
</div>
|
|
203
|
-
<p
|
|
204
|
-
v-if="hasSubmitError"
|
|
205
|
-
class="tw-text-center tw-mt-2 form-error"
|
|
206
|
-
>
|
|
207
|
-
{{ submitError }}
|
|
208
|
-
</p>
|
|
209
|
-
</form>
|
|
210
|
-
<div v-else :style="successMessageColorStyle">
|
|
211
|
-
<TextWrapper
|
|
212
|
-
v-if="viewModel.successMessage"
|
|
213
|
-
:text="renderSuccessText"
|
|
214
|
-
element="p"
|
|
215
|
-
:class="'tw-my-0.5'"
|
|
216
|
-
/>
|
|
217
193
|
</div>
|
|
194
|
+
<div v-else class="tw-w-full tw-flex tw-justify-center">
|
|
195
|
+
<Loader />
|
|
196
|
+
</div>
|
|
197
|
+
<p v-if="hasSubmitError" class="tw-text-center tw-mt-2 form-error">
|
|
198
|
+
{{ submitError }}
|
|
199
|
+
</p>
|
|
200
|
+
</form>
|
|
201
|
+
<div v-else :style="successMessageColorStyle">
|
|
202
|
+
<TextWrapper
|
|
203
|
+
v-if="viewModel.successMessage"
|
|
204
|
+
:text="renderSuccessText"
|
|
205
|
+
element="p"
|
|
206
|
+
:class="'tw-my-0.5'"
|
|
207
|
+
/>
|
|
218
208
|
</div>
|
|
219
209
|
</div>
|
|
220
210
|
</div>
|
|
221
|
-
<div
|
|
211
|
+
<div
|
|
212
|
+
v-else-if="isTextOnly"
|
|
213
|
+
class="tw-px-6 tw-py-8 tw-gap-2 contact-container"
|
|
214
|
+
>
|
|
222
215
|
<span v-if="!hasSubmitted" class="tw-grid tw-grid-cols-2">
|
|
223
216
|
<div
|
|
224
217
|
v-if="!isSubmitting"
|
|
@@ -357,7 +350,10 @@
|
|
|
357
350
|
}"
|
|
358
351
|
>
|
|
359
352
|
<div
|
|
360
|
-
class="tw-flex tw-flex-col tw-gap-2 tw-px-8 tw-
|
|
353
|
+
class="tw-flex tw-flex-col tw-gap-2 tw-px-8 tw-w-full tw-justify-center c-py-6"
|
|
354
|
+
:class="{
|
|
355
|
+
'tw-py-6': isMobileDevice,
|
|
356
|
+
}"
|
|
361
357
|
>
|
|
362
358
|
<span v-if="!hasSubmitted">
|
|
363
359
|
<TextWrapper
|
|
@@ -520,6 +516,9 @@ export default {
|
|
|
520
516
|
.c-text-padding {
|
|
521
517
|
@apply tw-px-0 tw-col-span-2;
|
|
522
518
|
}
|
|
519
|
+
.c-py-6 {
|
|
520
|
+
@apply tw-py-6;
|
|
521
|
+
}
|
|
523
522
|
.c-divided-container {
|
|
524
523
|
@apply tw-flex-col;
|
|
525
524
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
3
|
import type { ImageGalleryViewModel } from '@brand-page/view-models';
|
|
4
|
-
import { contentPaddingStyle as toContentPaddingStyle } from '@brand-page/utils';
|
|
5
4
|
import ComponentCommonMixin from '../mixins/component-common.mixin';
|
|
6
5
|
import ImageModalMixin from '../mixins/image-modal.mixin';
|
|
7
6
|
import type { ImageGalleryImageClickPayload } from './models';
|
|
@@ -35,10 +34,6 @@ export default defineComponent({
|
|
|
35
34
|
};
|
|
36
35
|
},
|
|
37
36
|
computed: {
|
|
38
|
-
contentPaddingStyle(): { paddingTop: string; paddingBottom: string } {
|
|
39
|
-
return toContentPaddingStyle(this.viewModel);
|
|
40
|
-
},
|
|
41
|
-
|
|
42
37
|
getContainerStyle(): BrandPageCssStyle {
|
|
43
38
|
if (this.galleryType === 'carousel') {
|
|
44
39
|
const maxWidth = this.containerClientWidth
|
|
@@ -2,10 +2,7 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
3
|
import type { MailingListViewModel } from '@brand-page/view-models';
|
|
4
4
|
import brandPageClient from '../../clients/brand-page.client';
|
|
5
|
-
import {
|
|
6
|
-
getEmailValidationError,
|
|
7
|
-
contentPaddingStyle as toContentPaddingStyle,
|
|
8
|
-
} from '@brand-page/utils';
|
|
5
|
+
import { getEmailValidationError } from '@brand-page/utils';
|
|
9
6
|
import type { BrandPageContext } from '@brand-page/models';
|
|
10
7
|
import {
|
|
11
8
|
contentSettingsTr,
|
|
@@ -64,10 +61,6 @@ export default defineComponent({
|
|
|
64
61
|
}
|
|
65
62
|
},
|
|
66
63
|
computed: {
|
|
67
|
-
contentPaddingStyle(): { paddingTop: string; paddingBottom: string } {
|
|
68
|
-
return toContentPaddingStyle(this.viewModel);
|
|
69
|
-
},
|
|
70
|
-
|
|
71
64
|
hasNameError(): boolean {
|
|
72
65
|
return !!this.nameError;
|
|
73
66
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div data-component="map"
|
|
2
|
+
<div data-component="map">
|
|
3
3
|
<div
|
|
4
4
|
class="c-map"
|
|
5
5
|
:class="{
|
|
@@ -22,7 +22,6 @@ import Placeholder from '../placeholder/Placeholder.vue';
|
|
|
22
22
|
import type { MapViewModel } from '@brand-page/view-models';
|
|
23
23
|
import type { BrandPageContext } from '@brand-page/models';
|
|
24
24
|
import { mapTr } from '@src/composables/useTranslate';
|
|
25
|
-
import { contentPaddingStyle as toContentPaddingStyle } from '@brand-page/utils';
|
|
26
25
|
import { computed } from 'vue';
|
|
27
26
|
|
|
28
27
|
interface Props {
|
|
@@ -38,9 +37,6 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
38
37
|
});
|
|
39
38
|
|
|
40
39
|
const placeId = computed(() => props.viewModel?.address?.placeId);
|
|
41
|
-
const contentPaddingStyle = computed(() =>
|
|
42
|
-
toContentPaddingStyle(props.viewModel),
|
|
43
|
-
);
|
|
44
40
|
</script>
|
|
45
41
|
<style scoped>
|
|
46
42
|
.c-map {
|
|
@@ -14,7 +14,6 @@ import type { RequestPaymentViewModel } from '../../../view-models';
|
|
|
14
14
|
import type { PaymentRequestDetails } from '../Payment.mixin';
|
|
15
15
|
import { DEFAULT_CURRENCY_SYMBOL } from '../../../constants';
|
|
16
16
|
import { addOpacityToHex } from '../../../utils/color.util';
|
|
17
|
-
import { contentPaddingStyle as toContentPaddingStyle } from '../../../utils';
|
|
18
17
|
import { RGBAtoHex } from '@utils/helpers';
|
|
19
18
|
|
|
20
19
|
const MAX_CUSTOM_REQUEST_CHARS = 500;
|
|
@@ -43,10 +42,6 @@ export default defineComponent({
|
|
|
43
42
|
};
|
|
44
43
|
},
|
|
45
44
|
computed: {
|
|
46
|
-
contentPaddingStyle(): { paddingTop: string; paddingBottom: string } {
|
|
47
|
-
return toContentPaddingStyle(this.viewModel);
|
|
48
|
-
},
|
|
49
|
-
|
|
50
45
|
isCustomerRequestDetailsValid(): boolean {
|
|
51
46
|
return (
|
|
52
47
|
!this.viewModel.requestPaymentConfig.isCustomerRequestDetailsEnabled ||
|
|
@@ -4,10 +4,7 @@ import { SUPPORT_ME_CUSTOM_PRODUCT_NAME } from '../../../constants';
|
|
|
4
4
|
import type { BrandPageContext, PaymentOption } from '../../../models';
|
|
5
5
|
import type { SupportMeViewModel } from '../../../view-models';
|
|
6
6
|
import type { PaymentRequestDetails } from '../Payment.mixin';
|
|
7
|
-
import {
|
|
8
|
-
isPaymentAmountValid,
|
|
9
|
-
contentPaddingStyle as toContentPaddingStyle,
|
|
10
|
-
} from '../../../utils';
|
|
7
|
+
import { isPaymentAmountValid } from '../../../utils';
|
|
11
8
|
import {
|
|
12
9
|
DEFAULT_CURRENCY_SYMBOL,
|
|
13
10
|
DEFAULT_CURRENCY_CODE,
|
|
@@ -36,10 +33,6 @@ export default defineComponent({
|
|
|
36
33
|
};
|
|
37
34
|
},
|
|
38
35
|
computed: {
|
|
39
|
-
contentPaddingStyle(): { paddingTop: string; paddingBottom: string } {
|
|
40
|
-
return toContentPaddingStyle(this.viewModel);
|
|
41
|
-
},
|
|
42
|
-
|
|
43
36
|
isCustomAmountFieldVisible(): boolean {
|
|
44
37
|
return this.viewModel.supportMeConfig.paymentOptions.some(
|
|
45
38
|
(o) => o.name === SUPPORT_ME_CUSTOM_PRODUCT_NAME,
|