@designcrowd/library.brand-page 5.18.9-ast-padding-2 → 5.18.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BmLOUBDj.js → CreatedOnBrandCrowd-de-de-CDdi84ti.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DGCwedd5.js → CreatedOnBrandCrowd-en-us-BvRiqC8_.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-qfWIO62h.js → CreatedOnBrandCrowd-es-es-BGjpqIbV.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-Bh6tQfv-.js → CreatedOnBrandCrowd-fr-ca-BSLrflaD.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-Bh6tQfv-.js → CreatedOnBrandCrowd-fr-fr-BSLrflaD.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DBF_gR3z.js → CreatedOnBrandCrowd-pt-br-CYdUgcJs.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-DBF_gR3z.js → CreatedOnBrandCrowd-pt-pt-CYdUgcJs.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-B1ZibTqN.js → CreatedOnDcom-de-de-D3gzpYgh.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-4qS61Om_.js → CreatedOnDcom-en-us-V6QwvLNX.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-yX1FaMrI.js → CreatedOnDcom-es-es-BmgxqURo.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-h5RbgiUo.js → CreatedOnDcom-fr-ca-DEAawXEa.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-4cJbiAWr.js → CreatedOnDcom-fr-fr-Da7MhYpI.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-C0FUKVjn.js → CreatedOnDcom-pt-br-D6WUdxFK.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CFstpuvQ.js → CreatedOnDcom-pt-pt-CS5m0sQX.js} +1 -1
  15. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +0 -4
  16. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +4 -8
  17. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +0 -4
  18. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +0 -4
  19. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +0 -4
  20. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +1 -4
  21. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +0 -4
  22. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +0 -4
  23. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +0 -4
  24. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +1 -4
  25. package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.d.ts +97 -0
  26. package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.js +112 -0
  27. package/lib/src/brand-page/components/video/Video.mixin.d.ts +0 -4
  28. package/lib/src/brand-page/components/video/Video.mixin.js +0 -4
  29. package/lib/src/brand-page/constants/font.constants.d.ts +4 -4
  30. package/lib/src/brand-page/constants/font.constants.js +4 -4
  31. package/lib/src/brand-page/constants/misc.constants.d.ts +0 -35
  32. package/lib/src/brand-page/constants/misc.constants.js +0 -51
  33. package/lib/src/brand-page/models/content.model.d.ts +0 -2
  34. package/lib/src/brand-page/utils/index.d.ts +0 -1
  35. package/lib/src/brand-page/utils/index.js +0 -1
  36. package/lib/src/brand-page/utils/migration.util.js +0 -10
  37. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +0 -2
  38. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -12
  39. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -14
  40. package/lib/src/brand-page-maker/constants/config-settings-constant.js +0 -39
  41. package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +1 -9
  42. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +1 -7
  43. package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +1 -6
  44. package/lib/src/brand-page-maker/models/content-settings.js +2 -39
  45. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +0 -12
  46. package/lib/src/{bundled-translations-BUyt4scr.js → bundled-translations-D1q3rSEz.js} +9 -9
  47. package/lib/src/{bundled-translations.de-DE-DEw_OVai.js → bundled-translations.de-DE-BxqLLwbh.js} +1 -1
  48. package/lib/src/{bundled-translations.es-ES-CFKWmkgY.js → bundled-translations.es-ES-uh249NlJ.js} +17 -17
  49. package/lib/src/{bundled-translations.fr-CA-DCl5LJS4.js → bundled-translations.fr-CA-BEQmv2fX.js} +1 -1
  50. package/lib/src/{bundled-translations.fr-FR-B5BjgllA.js → bundled-translations.fr-FR-BnNuCojH.js} +1 -1
  51. package/lib/src/{bundled-translations.pt-BR-5PWpMPuM.js → bundled-translations.pt-BR-CJUOxVlq.js} +1 -1
  52. package/lib/src/{bundled-translations.pt-PT-B9_wN0HR.js → bundled-translations.pt-PT-Ds9cMEqK.js} +9 -9
  53. package/lib/src/bundles/bundled-translations.de-DE.json +0 -2
  54. package/lib/src/bundles/bundled-translations.es-ES.json +0 -2
  55. package/lib/src/bundles/bundled-translations.fr-CA.json +0 -2
  56. package/lib/src/bundles/bundled-translations.fr-FR.json +0 -2
  57. package/lib/src/bundles/bundled-translations.json +0 -2
  58. package/lib/src/bundles/bundled-translations.pt-BR.json +0 -2
  59. package/lib/src/bundles/bundled-translations.pt-PT.json +0 -2
  60. package/lib/src/css/library.brand-page-brandCrowd.min.css +155 -141
  61. package/lib/src/css/library.brand-page-brandPage.min.css +155 -141
  62. package/lib/src/css/library.brand-page-designCom.min.css +155 -141
  63. package/lib/src/css/library.brand-page-preview.min.css +155 -141
  64. package/lib/src/index.mjs +1 -1
  65. package/lib/src/{lib-B3NH7cmE.js → lib--1xJXw4j.js} +21010 -21158
  66. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +0 -14
  67. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +0 -14
  68. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +0 -12
  69. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +0 -12
  70. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +0 -12
  71. package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +0 -9
  72. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +0 -12
  73. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -16
  74. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -14
  75. package/lib/src/utils/minify-brand-page-metadata.js +1 -11
  76. package/package.json +1 -1
  77. package/src/brand-page/components/about-section/AboutSection.vue +4 -10
  78. package/src/brand-page/components/banner-section/BannerSection.vue +4 -11
  79. package/src/brand-page/components/booking-section/BookingSection.vue +3 -11
  80. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +6 -12
  81. package/src/brand-page/components/contact-form/ContactForm.vue +104 -105
  82. package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +0 -5
  83. package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
  84. package/src/brand-page/components/mailing-list/MailingList.mixin.ts +1 -8
  85. package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
  86. package/src/brand-page/components/map/Map.vue +1 -5
  87. package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +0 -5
  88. package/src/brand-page/components/payment/request-payment/RequestPayment.vue +0 -1
  89. package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +1 -8
  90. package/src/brand-page/components/payment/support-me/SupportMe.vue +0 -1
  91. package/src/brand-page/components/shop/Shop.vue +2 -7
  92. package/src/brand-page/components/social-links/SocialLinks.vue +3 -7
  93. package/src/brand-page/components/testimonial-section/TestimonialSection.mixin.ts +132 -0
  94. package/src/brand-page/components/testimonial-section/TestimonialSection.vue +11 -120
  95. package/src/brand-page/components/text/Text.vue +5 -12
  96. package/src/brand-page/components/text-media-section/TextMediaSection.vue +3 -11
  97. package/src/brand-page/components/video/Video.mixin.ts +0 -5
  98. package/src/brand-page/components/video/Video.vue +1 -1
  99. package/src/brand-page/constants/font.constants.ts +4 -4
  100. package/src/brand-page/constants/misc.constants.ts +0 -58
  101. package/src/brand-page/models/content.model.ts +0 -2
  102. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -9
  103. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +6 -6
  104. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +12 -12
  105. package/src/brand-page/utils/index.ts +0 -1
  106. package/src/brand-page/utils/migration.util.test.ts +0 -290
  107. package/src/brand-page/utils/migration.util.ts +0 -11
  108. package/src/brand-page-maker/constants/config-settings-constant.ts +0 -45
  109. package/src/brand-page-maker/convertors/about-display-style.convertor.ts +0 -10
  110. package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +0 -8
  111. package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +0 -8
  112. package/src/brand-page-maker/models/content-settings.ts +2 -43
  113. package/src/bundles/bundled-translations.de-DE.json +0 -2
  114. package/src/bundles/bundled-translations.es-ES.json +0 -2
  115. package/src/bundles/bundled-translations.fr-CA.json +0 -2
  116. package/src/bundles/bundled-translations.fr-FR.json +0 -2
  117. package/src/bundles/bundled-translations.json +0 -2
  118. package/src/bundles/bundled-translations.pt-BR.json +0 -2
  119. package/src/bundles/bundled-translations.pt-PT.json +0 -2
  120. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
  121. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
  122. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
  123. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
  124. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
  125. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
  126. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
  127. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
  128. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
  129. package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +0 -9
  130. package/src/utils/minify-brand-page-metadata.ts +1 -11
  131. package/lib/src/brand-page/utils/content-padding.util.d.ts +0 -13
  132. package/lib/src/brand-page/utils/content-padding.util.js +0 -10
  133. package/lib/src/brand-page/utils/migration/migration-17.d.ts +0 -2
  134. package/lib/src/brand-page/utils/migration/migration-17.js +0 -60
  135. package/src/brand-page/utils/content-padding.util.test.ts +0 -29
  136. package/src/brand-page/utils/content-padding.util.ts +0 -13
  137. package/src/brand-page/utils/migration/migration-17.ts +0 -77
  138. package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +0 -50
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-B3NH7cmE.js";
2
+ import { _ as t } from "./lib--1xJXw4j.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-B3NH7cmE.js";
2
+ import { _ as e } from "./lib--1xJXw4j.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-B3NH7cmE.js";
2
+ import { _ as e } from "./lib--1xJXw4j.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-B3NH7cmE.js";
2
+ import { _ as e } from "./lib--1xJXw4j.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-B3NH7cmE.js";
2
+ import { _ as e } from "./lib--1xJXw4j.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-B3NH7cmE.js";
2
+ import { _ as e } from "./lib--1xJXw4j.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-B3NH7cmE.js";
2
+ import { _ as M } from "./lib--1xJXw4j.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as H, createElementBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-B3NH7cmE.js";
2
+ import { _ as M } from "./lib--1xJXw4j.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -45,10 +45,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
45
45
  }, {
46
46
  submitButtonStyle(): BrandPageCssStyle;
47
47
  submitButtonTextStyle(): BrandPageCssStyle;
48
- contentPaddingStyle(): {
49
- paddingTop: string;
50
- paddingBottom: string;
51
- };
52
48
  hasCard(): boolean;
53
49
  hasBgImage(): boolean;
54
50
  hasBgColor(): boolean;
@@ -4,7 +4,7 @@ import { getEmailValidationError, getMessageValidationError, getNameValidationEr
4
4
  import brandPageClient from '../../clients/brand-page.client';
5
5
  import { isEmail } from '../../../utils/validator.util';
6
6
  import { ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, DISPLAY_STYLE_COLLAPSED, RECAPTCHA_ACTION_CONTACT_FORM, TEXT_ONLY, } from '../../constants';
7
- import { getRenderText, contentPaddingStyle as toContentPaddingStyle, } from '@brand-page/utils';
7
+ import { getRenderText } from '@brand-page/utils';
8
8
  import { hasRTEContent } from '@brand-page-maker/utils';
9
9
  import { useReCaptcha } from '../../composables/recaptcha.composable';
10
10
  export default defineComponent({
@@ -64,9 +64,6 @@ export default defineComponent({
64
64
  };
65
65
  return buttonTextStyle;
66
66
  },
67
- contentPaddingStyle() {
68
- return toContentPaddingStyle(this.viewModel);
69
- },
70
67
  hasCard() {
71
68
  return (this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
72
69
  this.viewModel.layoutStyle === ALIGN_CARD_CENTER_IMAGE);
@@ -75,10 +72,9 @@ export default defineComponent({
75
72
  return this.viewModel.layoutStyle === ALIGN_CARD_CENTER_IMAGE;
76
73
  },
77
74
  hasBgColor() {
78
- // Every brandSite layout applies the background colour on the section
79
- // root (banner-style) so the padding control reveals it; for the image
80
- // layouts it only shows in the padding bands around the image block.
81
- return Boolean(this.viewModel.layoutStyle);
75
+ return (this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
76
+ this.viewModel.layoutStyle === TEXT_ONLY ||
77
+ this.viewModel.layoutStyle === ALIGN_CENTERED);
82
78
  },
83
79
  isCenteredLayout() {
84
80
  return (this.viewModel.layoutStyle === ALIGN_CARD_CENTER ||
@@ -23,10 +23,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
23
23
  }>, {}, {
24
24
  imageModalSelectedImageIndex: number | undefined;
25
25
  }, {
26
- contentPaddingStyle(): {
27
- paddingTop: string;
28
- paddingBottom: string;
29
- };
30
26
  getContainerStyle(): BrandPageCssStyle;
31
27
  images(): any[] | undefined;
32
28
  galleryType(): GalleryType;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent } from 'vue';
2
- import { contentPaddingStyle as toContentPaddingStyle } from '@brand-page/utils';
3
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
4
3
  import ImageModalMixin from '../mixins/image-modal.mixin';
5
4
  import { GALLERY_TYPES } from '@brand-page/models';
@@ -30,9 +29,6 @@ export default defineComponent({
30
29
  };
31
30
  },
32
31
  computed: {
33
- contentPaddingStyle() {
34
- return toContentPaddingStyle(this.viewModel);
35
- },
36
32
  getContainerStyle() {
37
33
  if (this.galleryType === 'carousel') {
38
34
  const maxWidth = this.containerClientWidth
@@ -39,10 +39,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
39
  isSubmitting: boolean;
40
40
  show: boolean;
41
41
  }, {
42
- contentPaddingStyle(): {
43
- paddingTop: string;
44
- paddingBottom: string;
45
- };
46
42
  hasNameError(): boolean;
47
43
  hasEmailError(): boolean;
48
44
  hasFormError(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import brandPageClient from '../../clients/brand-page.client';
3
- import { getEmailValidationError, contentPaddingStyle as toContentPaddingStyle, } from '@brand-page/utils';
3
+ import { getEmailValidationError } from '@brand-page/utils';
4
4
  import { contentSettingsTr, mailingListTr, } from '@src/composables/useTranslate';
5
5
  import { useReCaptcha } from '../../composables/recaptcha.composable';
6
6
  import { RECAPTCHA_ACTION_MAILING_LIST } from '../../constants';
@@ -51,9 +51,6 @@ export default defineComponent({
51
51
  }
52
52
  },
53
53
  computed: {
54
- contentPaddingStyle() {
55
- return toContentPaddingStyle(this.viewModel);
56
- },
57
54
  hasNameError() {
58
55
  return !!this.nameError;
59
56
  },
@@ -21,10 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  selectedPaymentOptionIds: string[];
22
22
  imageType: string;
23
23
  }, {
24
- contentPaddingStyle(): {
25
- paddingTop: string;
26
- paddingBottom: string;
27
- };
28
24
  isCustomerRequestDetailsValid(): boolean;
29
25
  paymentRequestDetails(): PaymentRequestDetails;
30
26
  paymentOptions(): PaymentOption[];
@@ -2,7 +2,6 @@ import { defineComponent } from 'vue';
2
2
  import { PAYMENT_OPTION_DISPLAY_TYPES, PAYMENT_OPTION_IMAGE_TYPES, } from '../../../models';
3
3
  import { DEFAULT_CURRENCY_SYMBOL } from '../../../constants';
4
4
  import { addOpacityToHex } from '../../../utils/color.util';
5
- import { contentPaddingStyle as toContentPaddingStyle } from '../../../utils';
6
5
  import { RGBAtoHex } from '@utils/helpers';
7
6
  const MAX_CUSTOM_REQUEST_CHARS = 500;
8
7
  export default defineComponent({
@@ -29,9 +28,6 @@ export default defineComponent({
29
28
  };
30
29
  },
31
30
  computed: {
32
- contentPaddingStyle() {
33
- return toContentPaddingStyle(this.viewModel);
34
- },
35
31
  isCustomerRequestDetailsValid() {
36
32
  return (!this.viewModel.requestPaymentConfig.isCustomerRequestDetailsEnabled ||
37
33
  this.customerRequestDetails === undefined ||
@@ -17,10 +17,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  prevCustomAmount: string;
18
18
  customAmount: string;
19
19
  }, {
20
- contentPaddingStyle(): {
21
- paddingTop: string;
22
- paddingBottom: string;
23
- };
24
20
  isCustomAmountFieldVisible(): boolean;
25
21
  isCustomerMessageFieldVisible(): boolean;
26
22
  isCustomerMessageValid(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { SUPPORT_ME_CUSTOM_PRODUCT_NAME } from '../../../constants';
3
- import { isPaymentAmountValid, contentPaddingStyle as toContentPaddingStyle, } from '../../../utils';
3
+ import { isPaymentAmountValid } from '../../../utils';
4
4
  import { DEFAULT_CURRENCY_SYMBOL, DEFAULT_CURRENCY_CODE, } from '../../../constants';
5
5
  import { paymentTr } from '@src/composables/useTranslate';
6
6
  const MAX_CUSTOM_MESSAGE_CHARS = 500;
@@ -24,9 +24,6 @@ export default defineComponent({
24
24
  };
25
25
  },
26
26
  computed: {
27
- contentPaddingStyle() {
28
- return toContentPaddingStyle(this.viewModel);
29
- },
30
27
  isCustomAmountFieldVisible() {
31
28
  return this.viewModel.supportMeConfig.paymentOptions.some((o) => o.name === SUPPORT_ME_CUSTOM_PRODUCT_NAME);
32
29
  },
@@ -0,0 +1,97 @@
1
+ /// <reference types="types/lodash-shims" />
2
+ import type { PropType } from 'vue';
3
+ import type { TestimonialSectionViewModel } from '@brand-page/view-models';
4
+ import type { BrandPageContext } from '@brand-page/models';
5
+ import type { DebounceHandle } from 'lodash.debounce';
6
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ viewModel: {
8
+ type: PropType<TestimonialSectionViewModel>;
9
+ required: true;
10
+ };
11
+ isPreview: {
12
+ type: BooleanConstructor;
13
+ required: false;
14
+ default: boolean;
15
+ };
16
+ context: {
17
+ type: PropType<BrandPageContext>;
18
+ required: true;
19
+ };
20
+ contentIndex: {
21
+ type: NumberConstructor;
22
+ required: false;
23
+ default: undefined;
24
+ };
25
+ }>, {}, {
26
+ debouncedForceCarouselUpdate: DebounceHandle | undefined;
27
+ carouselRef: string;
28
+ }, {
29
+ textAlignClass(): {
30
+ 'c_testimonial-big-image-text-item': boolean;
31
+ 'tw-mb-2': boolean;
32
+ };
33
+ navigationUniqueIndexer(): string;
34
+ swiperOptions(): {
35
+ autoHeight: boolean;
36
+ navigation: {
37
+ prevEl: string;
38
+ nextEl: string;
39
+ };
40
+ pagination: {
41
+ el: string;
42
+ clickable: boolean;
43
+ };
44
+ };
45
+ }, {
46
+ renderText(val: string): string;
47
+ forceCarouselUpdate(): boolean;
48
+ forceCarouselUpdateSlideWidth(): void;
49
+ }, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
50
+ isPreview: {
51
+ type: BooleanConstructor;
52
+ required: false;
53
+ default: boolean;
54
+ };
55
+ isMobileDevice: {
56
+ type: BooleanConstructor;
57
+ required: false;
58
+ default: undefined;
59
+ };
60
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
+ isPreview: {
62
+ type: BooleanConstructor;
63
+ required: false;
64
+ default: boolean;
65
+ };
66
+ isMobileDevice: {
67
+ type: BooleanConstructor;
68
+ required: false;
69
+ default: undefined;
70
+ };
71
+ }>> & Readonly<{}>, {
72
+ isPreview: boolean;
73
+ isMobileDevice: boolean;
74
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
75
+ viewModel: {
76
+ type: PropType<TestimonialSectionViewModel>;
77
+ required: true;
78
+ };
79
+ isPreview: {
80
+ type: BooleanConstructor;
81
+ required: false;
82
+ default: boolean;
83
+ };
84
+ context: {
85
+ type: PropType<BrandPageContext>;
86
+ required: true;
87
+ };
88
+ contentIndex: {
89
+ type: NumberConstructor;
90
+ required: false;
91
+ default: undefined;
92
+ };
93
+ }>> & Readonly<{}>, {
94
+ isPreview: boolean;
95
+ contentIndex: number;
96
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
97
+ export default _default;
@@ -0,0 +1,112 @@
1
+ import { defineComponent } from 'vue';
2
+ import ComponentCommonMixin from '../mixins/component-common.mixin';
3
+ import { getRenderText } from '@brand-page/utils';
4
+ import debounce from 'lodash.debounce';
5
+ import { DEVICE_CSS_TRANSITION_DELAY } from '@brand-page-maker/constants';
6
+ const DEBOUNCE_WAIT_MS = 100;
7
+ export default defineComponent({
8
+ mixins: [ComponentCommonMixin],
9
+ props: {
10
+ viewModel: {
11
+ type: Object,
12
+ required: true,
13
+ },
14
+ isPreview: {
15
+ type: Boolean,
16
+ required: false,
17
+ default: false,
18
+ },
19
+ context: {
20
+ type: Object,
21
+ required: true,
22
+ },
23
+ contentIndex: {
24
+ type: Number,
25
+ required: false,
26
+ default: undefined,
27
+ },
28
+ },
29
+ data() {
30
+ return {
31
+ debouncedForceCarouselUpdate: undefined,
32
+ carouselRef: 'testimonial-carousel',
33
+ };
34
+ },
35
+ created() {
36
+ this.debouncedForceCarouselUpdate = debounce(() => {
37
+ this.forceCarouselUpdate();
38
+ }, DEBOUNCE_WAIT_MS);
39
+ },
40
+ computed: {
41
+ textAlignClass() {
42
+ return {
43
+ 'c_testimonial-big-image-text-item': this.viewModel.displayStyle === 'big-image',
44
+ 'tw-mb-2': this.viewModel.displayStyle !== 'big-image',
45
+ };
46
+ },
47
+ navigationUniqueIndexer() {
48
+ return `testimonial-${this.viewModel.id}`;
49
+ },
50
+ swiperOptions() {
51
+ return {
52
+ autoHeight: true,
53
+ navigation: {
54
+ prevEl: `.carousel__button-prev--${this.navigationUniqueIndexer}`,
55
+ nextEl: `.carousel__button-next--${this.navigationUniqueIndexer}`,
56
+ },
57
+ pagination: {
58
+ el: `.pagination--${this.navigationUniqueIndexer}`,
59
+ clickable: true,
60
+ },
61
+ };
62
+ },
63
+ },
64
+ methods: {
65
+ renderText(val) {
66
+ if (val) {
67
+ return getRenderText(val);
68
+ }
69
+ return '';
70
+ },
71
+ forceCarouselUpdate() {
72
+ const shouldUpdateCarousel = Boolean(this.isPreview &&
73
+ (this.viewModel.items.length > 1 ||
74
+ this.viewModel.displayStyle === 'big-image') &&
75
+ this.$refs[this.carouselRef]);
76
+ if (shouldUpdateCarousel) {
77
+ this.$refs[this.carouselRef].update();
78
+ return true;
79
+ }
80
+ return false;
81
+ },
82
+ forceCarouselUpdateSlideWidth() {
83
+ if (this.forceCarouselUpdate()) {
84
+ try {
85
+ const width = this.$refs[this.carouselRef].swiper.slidesEl.scrollWidth;
86
+ this.$refs[this.carouselRef].swiper.slidesEl.children.forEach((slide) => {
87
+ const slideWidth = parseFloat(slide.style.width);
88
+ if (slideWidth !== width) {
89
+ slide.style.width = width + 'px';
90
+ }
91
+ });
92
+ }
93
+ catch (error) {
94
+ console.warn('Testimonial: Unable to auto update slide width');
95
+ }
96
+ }
97
+ },
98
+ },
99
+ watch: {
100
+ viewModel: {
101
+ handler() {
102
+ this.debouncedForceCarouselUpdate();
103
+ },
104
+ deep: true,
105
+ },
106
+ isMobileDevice(next, old) {
107
+ if (next !== old) {
108
+ setTimeout(this.forceCarouselUpdateSlideWidth, DEVICE_CSS_TRANSITION_DELAY + 1);
109
+ }
110
+ },
111
+ },
112
+ });
@@ -11,10 +11,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
11
  isCollapsed: boolean;
12
12
  title: string;
13
13
  }, {
14
- contentPaddingStyle(): {
15
- paddingTop: string;
16
- paddingBottom: string;
17
- };
18
14
  arrowStyle(): BrandPageCssStyle;
19
15
  containerStyle(): BrandPageCssStyle;
20
16
  videoUrl(): string;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent } from 'vue';
2
- import { contentPaddingStyle as toContentPaddingStyle } from '@brand-page/utils';
3
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
4
3
  import { DISPLAY_STYLE_PREVIEW, DISPLAY_STYLE_COLLAPSED, } from '../../constants';
5
4
  export default defineComponent({
@@ -17,9 +16,6 @@ export default defineComponent({
17
16
  title: 'Video',
18
17
  }),
19
18
  computed: {
20
- contentPaddingStyle() {
21
- return toContentPaddingStyle(this.viewModel);
22
- },
23
19
  arrowStyle() {
24
20
  return {
25
21
  color: this.viewModel.buttonStyles.style?.color,
@@ -4,10 +4,10 @@ export declare const DISPLAY_TEXT_BODY = "Paragraphs";
4
4
  export declare const DISPlAY_TEXT_BUTTONS = "Button Texts";
5
5
  export declare const DEFAULT_TEXT_DECORATION: undefined;
6
6
  export declare const DEFAULT_FONT_STYLE: undefined;
7
- export declare const FONT_SIZE_TITLE = "2.25em";
8
- export declare const FONT_SIZE_HEADINGS = "1.5em";
9
- export declare const FONT_SIZE_BODY = "1em";
10
- export declare const FONT_SIZE_PROFILE_NAME = "1.5em";
7
+ export declare const FONT_SIZE_TITLE = "2.25rem";
8
+ export declare const FONT_SIZE_HEADINGS = "1.5rem";
9
+ export declare const FONT_SIZE_BODY = "1rem";
10
+ export declare const FONT_SIZE_PROFILE_NAME = "1.5rem";
11
11
  export declare const FONT_WEIGHT_PROFILE_NAME = "800";
12
12
  export declare const FONT_WEIGHT_NORMAL = "normal";
13
13
  export declare const LINE_HEIGHT_TITLE = "1.3";
@@ -5,10 +5,10 @@ export const DISPLAY_TEXT_BODY = 'Paragraphs';
5
5
  export const DISPlAY_TEXT_BUTTONS = 'Button Texts';
6
6
  export const DEFAULT_TEXT_DECORATION = undefined;
7
7
  export const DEFAULT_FONT_STYLE = undefined;
8
- export const FONT_SIZE_TITLE = '2.25em';
9
- export const FONT_SIZE_HEADINGS = '1.5em';
10
- export const FONT_SIZE_BODY = '1em';
11
- export const FONT_SIZE_PROFILE_NAME = '1.5em';
8
+ export const FONT_SIZE_TITLE = '2.25rem';
9
+ export const FONT_SIZE_HEADINGS = '1.5rem';
10
+ export const FONT_SIZE_BODY = '1rem';
11
+ export const FONT_SIZE_PROFILE_NAME = '1.5rem';
12
12
  export const FONT_WEIGHT_PROFILE_NAME = '800';
13
13
  export const FONT_WEIGHT_NORMAL = 'normal';
14
14
  export const LINE_HEIGHT_TITLE = '1.3';
@@ -29,41 +29,6 @@ export declare const TEXT_ONLY = "text-only";
29
29
  export declare const ALIGN_LEFT_FULL_IMAGE = "left-aligned-full-image";
30
30
  export declare const ALIGN_RIGHT_FULL_IMAGE = "right-aligned-full-image";
31
31
  export declare const ALTERNATE_IMAGE = "alternate-image";
32
- /**
33
- * Padding Control (BP-5699): the top/bottom padding each Contact Form layout
34
- * had hard-coded before the sliders existed. Single source for new-block
35
- * defaults (content-settings) and the migration backfill for existing pages.
36
- * The image layouts (full-image divided and card-over-image) are 0: the bg
37
- * image expands with the section padding (banner-style), so the default starts
38
- * flush at the edges; the spacing inside/over the image stays fixed.
39
- */
40
- export declare const CONTACT_FORM_LAYOUT_DEFAULT_PADDING: Record<string, number>;
41
- /**
42
- * Banner: full-bleed display styles (divided + full-width stacked) render the
43
- * image flush to the section edges, so their top/bottom padding defaults to 0 to
44
- * match prod — the standard 32 would push the image off the edges. Every other
45
- * banner style keeps 32. Used by the banner display-style convertor and the
46
- * migration backfill, mirroring contact-form's per-layout map above.
47
- */
48
- export declare const BANNER_DEFAULT_PADDING = 32;
49
- export declare const BANNER_FULL_BLEED_DISPLAY_STYLES: string[];
50
- export declare const bannerDisplayStyleDefaultPadding: (displayStyle?: string) => number;
51
- /**
52
- * About: a flat 32 for every display style, including the two full-image styles.
53
- * The full-image About renders the image inside the padded container, so the
54
- * standard 32 band is the intended look. Used by the About display-style
55
- * convertor and the migration backfill.
56
- */
57
- export declare const ABOUT_DEFAULT_PADDING = 32;
58
- /**
59
- * Testimonials: a single top/bottom value across both breakpoints, replacing the
60
- * old 32px mobile / 80px desktop split. The same value applies to every display
61
- * style (centered / big-image / columns) — they share one root, so padding does
62
- * not vary by style. Used by the new-block default and the migration backfill.
63
- * Default (BP-5703): 48px — the single value chosen for both breakpoints (replaces
64
- * the old 32px mobile / 80px desktop split).
65
- */
66
- export declare const TESTIMONIAL_DEFAULT_PADDING = 48;
67
32
  export declare const BIG_IMAGE = "big-image";
68
33
  export declare const MEDIA_ONLY = "media-only";
69
34
  export declare const COLUMNS = "columns";
@@ -30,57 +30,6 @@ export const TEXT_ONLY = 'text-only';
30
30
  export const ALIGN_LEFT_FULL_IMAGE = 'left-aligned-full-image';
31
31
  export const ALIGN_RIGHT_FULL_IMAGE = 'right-aligned-full-image';
32
32
  export const ALTERNATE_IMAGE = 'alternate-image';
33
- /**
34
- * Padding Control (BP-5699): the top/bottom padding each Contact Form layout
35
- * had hard-coded before the sliders existed. Single source for new-block
36
- * defaults (content-settings) and the migration backfill for existing pages.
37
- * The image layouts (full-image divided and card-over-image) are 0: the bg
38
- * image expands with the section padding (banner-style), so the default starts
39
- * flush at the edges; the spacing inside/over the image stays fixed.
40
- */
41
- export const CONTACT_FORM_LAYOUT_DEFAULT_PADDING = {
42
- '': 0, // collapsible (default on Brand Page / Brand Contact)
43
- [ALIGN_CENTERED]: 32,
44
- [ALIGN_CARD_CENTER]: 32,
45
- [ALIGN_CARD_CENTER_IMAGE]: 0,
46
- [TEXT_ONLY]: 32,
47
- [ALIGN_LEFT_FULL_IMAGE]: 0,
48
- [ALIGN_RIGHT_FULL_IMAGE]: 0,
49
- };
50
- /**
51
- * Banner: full-bleed display styles (divided + full-width stacked) render the
52
- * image flush to the section edges, so their top/bottom padding defaults to 0 to
53
- * match prod — the standard 32 would push the image off the edges. Every other
54
- * banner style keeps 32. Used by the banner display-style convertor and the
55
- * migration backfill, mirroring contact-form's per-layout map above.
56
- */
57
- export const BANNER_DEFAULT_PADDING = 32;
58
- export const BANNER_FULL_BLEED_DISPLAY_STYLES = [
59
- ALIGN_LEFT_FULL_IMAGE,
60
- ALIGN_RIGHT_FULL_IMAGE,
61
- ALIGN_TOP_FULL_IMAGE,
62
- ALIGN_BOTTOM_FULL_IMAGE,
63
- ALIGN_MIDDLE_FULL_IMAGE,
64
- ];
65
- export const bannerDisplayStyleDefaultPadding = (displayStyle) => displayStyle && BANNER_FULL_BLEED_DISPLAY_STYLES.includes(displayStyle)
66
- ? 0
67
- : BANNER_DEFAULT_PADDING;
68
- /**
69
- * About: a flat 32 for every display style, including the two full-image styles.
70
- * The full-image About renders the image inside the padded container, so the
71
- * standard 32 band is the intended look. Used by the About display-style
72
- * convertor and the migration backfill.
73
- */
74
- export const ABOUT_DEFAULT_PADDING = 32;
75
- /**
76
- * Testimonials: a single top/bottom value across both breakpoints, replacing the
77
- * old 32px mobile / 80px desktop split. The same value applies to every display
78
- * style (centered / big-image / columns) — they share one root, so padding does
79
- * not vary by style. Used by the new-block default and the migration backfill.
80
- * Default (BP-5703): 48px — the single value chosen for both breakpoints (replaces
81
- * the old 32px mobile / 80px desktop split).
82
- */
83
- export const TESTIMONIAL_DEFAULT_PADDING = 48;
84
33
  export const BIG_IMAGE = 'big-image';
85
34
  export const MEDIA_ONLY = 'media-only';
86
35
  export const COLUMNS = 'columns';