@designcrowd/library.brand-page 5.15.24-autoplay-6 → 5.15.24

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 (45) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-DqoHzxXx.js → CreatedOnBrandCrowd-de-de-D7rRFKgr.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BmtA8uCU.js → CreatedOnBrandCrowd-en-us-CaTNBPEK.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-D1cIlk-E.js → CreatedOnBrandCrowd-es-es-zdp6A-zF.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-C_v_2nKA.js → CreatedOnBrandCrowd-fr-ca-TS3XLzo6.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-C_v_2nKA.js → CreatedOnBrandCrowd-fr-fr-TS3XLzo6.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-Bg05a8ef.js → CreatedOnBrandCrowd-pt-br-DkyF49-j.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-Bg05a8ef.js → CreatedOnBrandCrowd-pt-pt-DkyF49-j.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BuZW8uEb.js → CreatedOnDcom-de-de-BckUcm9C.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DKNTU2Em.js → CreatedOnDcom-en-us-CqgIo3AG.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BrEOCA3u.js → CreatedOnDcom-es-es-DOEOu0Gx.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-BlqNBDRR.js → CreatedOnDcom-fr-ca-DjbwfTN3.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CPXKbL_j.js → CreatedOnDcom-fr-fr-By17z-yX.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CwiIOKS2.js → CreatedOnDcom-pt-br-D9AAR_em.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-BIGL3yHI.js → CreatedOnDcom-pt-pt-Bz8SLuU2.js} +1 -1
  15. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +0 -1
  16. package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +0 -1
  17. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -1
  18. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -36
  19. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -10
  20. package/lib/src/brand-page-maker/components/device/Device.mixin.d.ts +1 -3
  21. package/lib/src/brand-page-maker/components/device/Device.mixin.js +1 -5
  22. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +0 -1
  23. package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +2 -5
  24. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +1 -1
  25. package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +3 -3
  26. package/lib/src/brand-page-maker/stores/video/video-store.d.ts +1 -13
  27. package/lib/src/brand-page-maker/stores/video/video-store.js +1 -11
  28. package/lib/src/css/library.brand-page-brandCrowd.min.css +6 -12
  29. package/lib/src/css/library.brand-page-brandPage.min.css +6 -12
  30. package/lib/src/css/library.brand-page-designCom.min.css +6 -12
  31. package/lib/src/css/library.brand-page-preview.min.css +6 -12
  32. package/lib/src/index.mjs +1 -1
  33. package/lib/src/{lib-BmBek0uR.js → lib-CgMLUv91.js} +11171 -11256
  34. package/package.json +1 -1
  35. package/src/brand-page/components/media/Video.vue +4 -27
  36. package/src/brand-page/models/brand-page-context.model.ts +0 -1
  37. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +0 -13
  38. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +0 -16
  39. package/src/brand-page-maker/components/device/Device.mixin.ts +2 -5
  40. package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +1 -15
  41. package/src/brand-page-maker/components/preview/Preview.mixin.ts +1 -5
  42. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +1 -1
  43. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +3 -3
  44. package/src/brand-page-maker/stores/video/video-store.ts +1 -12
  45. package/src/brand-page-maker/components/video-play/VideoPlayButton.vue +0 -31
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BmBek0uR.js";
2
+ import { _ as t } from "./lib-CgMLUv91.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BmBek0uR.js";
2
+ import { _ as e } from "./lib-CgMLUv91.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BmBek0uR.js";
2
+ import { _ as e } from "./lib-CgMLUv91.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BmBek0uR.js";
2
+ import { _ as e } from "./lib-CgMLUv91.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BmBek0uR.js";
2
+ import { _ as e } from "./lib-CgMLUv91.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BmBek0uR.js";
2
+ import { _ as e } from "./lib-CgMLUv91.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BmBek0uR.js";
2
+ import { _ as M } from "./lib-CgMLUv91.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BmBek0uR.js";
2
+ import { _ as M } from "./lib-CgMLUv91.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -23,7 +23,6 @@ export declare const context: {
23
23
  disableNavigationSideMenu?: boolean | undefined;
24
24
  mediaSizes?: "size1x" | "size2x" | "sizeThumb" | undefined;
25
25
  renderVideoAsImage?: boolean | undefined;
26
- shouldPlayVideos?: boolean | undefined;
27
26
  } | undefined;
28
27
  abTests?: import("../../../models").AbTest | undefined;
29
28
  isCapturingPreview: boolean;
@@ -23,7 +23,6 @@ export declare const context: {
23
23
  disableNavigationSideMenu?: boolean | undefined;
24
24
  mediaSizes?: "size1x" | "size2x" | "sizeThumb" | undefined;
25
25
  renderVideoAsImage?: boolean | undefined;
26
- shouldPlayVideos?: boolean | undefined;
27
26
  } | undefined;
28
27
  abTests?: import("../../../models").AbTest | undefined;
29
28
  isCapturingPreview: boolean;
@@ -70,7 +70,6 @@ export interface BrandPageContext {
70
70
  disableNavigationSideMenu?: boolean;
71
71
  mediaSizes?: MediaSizes;
72
72
  renderVideoAsImage?: boolean;
73
- shouldPlayVideos?: boolean;
74
73
  };
75
74
  abTests?: AbTest;
76
75
  /** Is brand page rendered for preview */
@@ -37,8 +37,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
37
  }>;
38
38
  isChangeTemplateConfirmModalVisible: import("vue").ComputedRef<boolean>;
39
39
  viewport: import("vue").ComputedRef<ViewportsType>;
40
- shouldPlayVideos: import("vue").ComputedRef<boolean>;
41
- hasGettyVideos: import("vue").ComputedRef<boolean>;
42
40
  deviceMode: import("vue").ComputedRef<"desktop" | "mobile">;
43
41
  isMobileDevice: import("vue").ComputedRef<boolean>;
44
42
  isMobileScreenSize: import("vue").ComputedRef<boolean>;
@@ -1142,39 +1140,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1142
1140
  getProductModel(): import("../../../brand-page/models/shop.model").ProductModel;
1143
1141
  }>;
1144
1142
  router: import("vue-router").Router;
1145
- videoStore: import("pinia").Store<"video", import("../../stores").videoStoreState, {
1146
- getVideoUrlsForToken: (state: {
1147
- videoUrls: {
1148
- [x: string]: import("../../stores").VideoUrlData;
1149
- };
1150
- gettyImagesKeyPrefix: string;
1151
- shouldPlayVideos: boolean;
1152
- } & import("pinia").PiniaCustomStateProperties<import("../../stores").videoStoreState>) => (token: string) => import("../../stores").VideoUrlData;
1153
- getPreviewS3VideoUrlsForToken: (state: {
1154
- videoUrls: {
1155
- [x: string]: import("../../stores").VideoUrlData;
1156
- };
1157
- gettyImagesKeyPrefix: string;
1158
- shouldPlayVideos: boolean;
1159
- } & import("pinia").PiniaCustomStateProperties<import("../../stores").videoStoreState>) => (token: string) => {
1160
- videoUrl: string;
1161
- previewImageUrl: string;
1162
- };
1163
- getOptimisedS3VideoUrlsForToken: (state: {
1164
- videoUrls: {
1165
- [x: string]: import("../../stores").VideoUrlData;
1166
- };
1167
- gettyImagesKeyPrefix: string;
1168
- shouldPlayVideos: boolean;
1169
- } & import("pinia").PiniaCustomStateProperties<import("../../stores").videoStoreState>) => (token: string) => {
1170
- videoUrl: string;
1171
- previewImageUrl: string;
1172
- };
1173
- }, {
1174
- setVideoUrlsWithToken(token: string, videoUrl: string, previewImageUrl: string, assetId: string): void;
1175
- setGettyImageKeyPrefix(prefix: string): void;
1176
- toggleShouldPlayVideo(): void;
1177
- }>;
1178
1143
  }, {
1179
1144
  mounted: boolean;
1180
1145
  isBrandPageLoaded: boolean;
@@ -1194,7 +1159,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1194
1159
  onBackBrandPage(): void;
1195
1160
  onChangeTemplateConfirmModalCancel(): void;
1196
1161
  onChangeTemplateConfirmModalConfirm(): void;
1197
- onVideoPlayToggle(): void;
1198
1162
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1199
1163
  viewModel: {
1200
1164
  type: PropType<BrandPageMakerViewModel>;
@@ -10,7 +10,7 @@ import { createInitialBrandPage } from '../../models';
10
10
  import { navigateToPageBySlug } from '../../routing';
11
11
  import { useBrandPageContainerStore } from '../../stores';
12
12
  import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES, } from '../../../shared/models';
13
- import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, useVideoStore, } from '../../stores';
13
+ import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, } from '../../stores';
14
14
  import { useUiContentSettingsStore } from '../../../shared/content-settings/store';
15
15
  import { useUiTemplateSettingsStore } from '../../../shared/template-settings/store';
16
16
  import { useUiPageSettingsStore } from '../../../shared/page-settings/store';
@@ -42,17 +42,12 @@ export default defineComponent({
42
42
  const productSettingStore = useProductConfigStore();
43
43
  const router = useRouter();
44
44
  const localisedRouteStore = useLocalisedRouteStore();
45
- const videoStore = useVideoStore();
46
45
  return {
47
46
  commonTr,
48
47
  currentNotificationMessage: computed(() => brandPageMakerStore.currentNotificationMessage),
49
48
  isChangeTemplateConfirmModalVisible: computed(() => brandPageMakerStore.isChangeTemplateConfirmModalVisible),
50
49
  // the state of Mobile/Desktop tab
51
50
  viewport: computed(() => brandPageMakerStore.viewport),
52
- // the play setting for videos in maker
53
- shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
54
- hasGettyVideos: computed(() => brandPageMakerStore.gettyVideoIds &&
55
- brandPageMakerStore.gettyVideoIds.length > 0),
56
51
  // the state of active Preview Device type
57
52
  deviceMode: computed(() => uiStore.deviceMode),
58
53
  isMobileDevice: computed(() => uiStore.deviceMode === UI_DEVICE_MODES.mobile),
@@ -84,7 +79,6 @@ export default defineComponent({
84
79
  shopSettingStore,
85
80
  productSettingStore,
86
81
  router,
87
- videoStore,
88
82
  };
89
83
  },
90
84
  data() {
@@ -277,8 +271,5 @@ export default defineComponent({
277
271
  onChangeTemplateConfirmModalConfirm() {
278
272
  this.brandPageMakerStore.onChangeTemplateConfirmModalConfirm();
279
273
  },
280
- onVideoPlayToggle() {
281
- this.videoStore.toggleShouldPlayVideo();
282
- },
283
274
  },
284
275
  });
@@ -16,9 +16,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
16
  }>, {}, {
17
17
  visible: boolean;
18
18
  loadedOnce: boolean;
19
- }, {}, {
20
- toggleShouldPlay(): void;
21
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
20
  isMobileDevice: {
23
21
  type: BooleanConstructor;
24
22
  required: true;
@@ -1,4 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
+ import { debounce } from '../../../shared/functions';
2
3
  import { DEVICE_CSS_TRANSITION_DELAY } from '../../constants';
3
4
  export default defineComponent({
4
5
  props: {
@@ -39,9 +40,4 @@ export default defineComponent({
39
40
  clearTimeout(t);
40
41
  }, 100);
41
42
  },
42
- methods: {
43
- toggleShouldPlay() {
44
- this.$emit('toggle-should-play');
45
- },
46
- },
47
43
  });
@@ -31,7 +31,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  }>;
32
32
  isDesignCom: import("vue").ComputedRef<boolean>;
33
33
  isInitialising: import("vue").ComputedRef<boolean>;
34
- shouldPlayVideos: import("vue").ComputedRef<boolean>;
35
34
  viewport: import("../../../brand-page").ViewportsType;
36
35
  abTests: Record<string, string>;
37
36
  }, {
@@ -2,7 +2,7 @@ import { defineComponent, computed } from 'vue';
2
2
  import debounce from 'lodash.debounce';
3
3
  import { HelloBar, Loader } from '@designcrowd/fe-shared-lib';
4
4
  import { BRAND_PAGE_TYPES, MEDIA_SIZES } from '../../../brand-page';
5
- import { useBrandPageContainerStore, useBrandPageMakerStore, useRouteStore, useVideoStore, } from '../../../brand-page-maker/stores';
5
+ import { useBrandPageContainerStore, useBrandPageMakerStore, useRouteStore, } from '../../../brand-page-maker/stores';
6
6
  import BrandPageMakerPage from '../brandpage-maker-page/BrandPageMakerPage.vue';
7
7
  const RESIZE_DEBOUNCE_WAIT_MS = 250;
8
8
  export default defineComponent({
@@ -39,12 +39,10 @@ export default defineComponent({
39
39
  const containerStore = useBrandPageContainerStore();
40
40
  const routeStore = useRouteStore();
41
41
  const brandPageMakerStore = useBrandPageMakerStore();
42
- const videoStore = useVideoStore();
43
42
  return {
44
43
  currentRoute: computed(() => routeStore.currentRoute),
45
44
  isDesignCom: computed(() => containerStore.isDesignCom),
46
45
  isInitialising: computed(() => brandPageMakerStore.isInitialising),
47
- shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
48
46
  viewport: brandPageMakerStore.viewport,
49
47
  abTests: containerStore.abTests,
50
48
  };
@@ -79,8 +77,7 @@ export default defineComponent({
79
77
  isServerRender: false,
80
78
  options: {
81
79
  mediaSizes: MEDIA_SIZES.size1x,
82
- renderVideoAsImage: false,
83
- shouldPlayVideos: this.shouldPlayVideos,
80
+ renderVideoAsImage: true,
84
81
  },
85
82
  stripePublishableKey: undefined,
86
83
  runtimeEnvironment: this.runtimeEnvironment,
@@ -216,7 +216,7 @@ export default defineComponent({
216
216
  model = applyLogoThemeToBrandPageModel(this.logoTheme, model).model;
217
217
  this.viewModel = await getBrandPageViewModelFromBrandPageModel(model, undefined, false, {
218
218
  useOldLogoRenderSize: false,
219
- getVideoUrls: videoStore.getPreviewS3VideoUrlsForToken,
219
+ getVideoUrls: videoStore.getS3VideoUrlsForToken,
220
220
  });
221
221
  if (forceUpdate) {
222
222
  this.$forceUpdate();
@@ -891,7 +891,7 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
891
891
  return getBrandPageViewModelFromBrandPageModel(themedBrandPage, this.brandPageToken, undefined, {
892
892
  useOldLogoRenderSize: false,
893
893
  getVideoUrls: videoStore.getVideoUrlsForToken,
894
- getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
894
+ getS3VideoUrls: videoStore.getS3VideoUrlsForToken,
895
895
  setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
896
896
  });
897
897
  }
@@ -904,14 +904,14 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
904
904
  return getBrandPageViewModelFromBrandPageModel(model, this.brandPageToken, showBrandCrowdLogo, {
905
905
  useOldLogoRenderSize: false,
906
906
  getVideoUrls: videoStore.getVideoUrlsForToken,
907
- getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
907
+ getS3VideoUrls: videoStore.getS3VideoUrlsForToken,
908
908
  setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
909
909
  });
910
910
  }
911
911
  return getBrandPageViewModelFromBrandPageModel(this.brandPageData, this.brandPageToken, showBrandCrowdLogo, {
912
912
  useOldLogoRenderSize: false,
913
913
  getVideoUrls: videoStore.getVideoUrlsForToken,
914
- getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
914
+ getS3VideoUrls: videoStore.getS3VideoUrlsForToken,
915
915
  setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
916
916
  });
917
917
  },
@@ -7,26 +7,15 @@ type VideoUrls = Record<string, VideoUrlData>;
7
7
  export interface videoStoreState {
8
8
  videoUrls: VideoUrls;
9
9
  gettyImagesKeyPrefix: string;
10
- shouldPlayVideos: boolean;
11
10
  }
12
11
  export declare const useVideoStore: import("pinia").StoreDefinition<"video", videoStoreState, {
13
12
  getVideoUrlsForToken: (state: {
14
13
  videoUrls: VideoUrls;
15
14
  gettyImagesKeyPrefix: string;
16
- shouldPlayVideos: boolean;
17
15
  } & import("pinia").PiniaCustomStateProperties<videoStoreState>) => (token: string) => VideoUrlData;
18
- getPreviewS3VideoUrlsForToken: (state: {
16
+ getS3VideoUrlsForToken: (state: {
19
17
  videoUrls: VideoUrls;
20
18
  gettyImagesKeyPrefix: string;
21
- shouldPlayVideos: boolean;
22
- } & import("pinia").PiniaCustomStateProperties<videoStoreState>) => (token: string) => {
23
- videoUrl: string;
24
- previewImageUrl: string;
25
- };
26
- getOptimisedS3VideoUrlsForToken: (state: {
27
- videoUrls: VideoUrls;
28
- gettyImagesKeyPrefix: string;
29
- shouldPlayVideos: boolean;
30
19
  } & import("pinia").PiniaCustomStateProperties<videoStoreState>) => (token: string) => {
31
20
  videoUrl: string;
32
21
  previewImageUrl: string;
@@ -34,6 +23,5 @@ export declare const useVideoStore: import("pinia").StoreDefinition<"video", vid
34
23
  }, {
35
24
  setVideoUrlsWithToken(token: string, videoUrl: string, previewImageUrl: string, assetId: string): void;
36
25
  setGettyImageKeyPrefix(prefix: string): void;
37
- toggleShouldPlayVideo(): void;
38
26
  }>;
39
27
  export {};
@@ -4,7 +4,6 @@ export const useVideoStore = defineStore('video', {
4
4
  state: () => ({
5
5
  videoUrls: {},
6
6
  gettyImagesKeyPrefix: '',
7
- shouldPlayVideos: true,
8
7
  }),
9
8
  actions: {
10
9
  setVideoUrlsWithToken(token, videoUrl, previewImageUrl, assetId) {
@@ -13,25 +12,16 @@ export const useVideoStore = defineStore('video', {
13
12
  setGettyImageKeyPrefix(prefix) {
14
13
  this.gettyImagesKeyPrefix = prefix;
15
14
  },
16
- toggleShouldPlayVideo() {
17
- this.shouldPlayVideos = !this.shouldPlayVideos;
18
- },
19
15
  },
20
16
  getters: {
21
17
  getVideoUrlsForToken: (state) => (token) => {
22
18
  return state.videoUrls[token];
23
19
  },
24
- getPreviewS3VideoUrlsForToken: (state) => (token) => {
20
+ getS3VideoUrlsForToken: (state) => (token) => {
25
21
  return {
26
22
  videoUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_preview`,
27
23
  previewImageUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_preview_thumb`,
28
24
  };
29
25
  },
30
- getOptimisedS3VideoUrlsForToken: (state) => (token) => {
31
- return {
32
- videoUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_optimised`,
33
- previewImageUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_optimised_thumb`,
34
- };
35
- },
36
26
  },
37
27
  });
@@ -793,9 +793,6 @@ a.maker-anchor {
793
793
  .tw-max-h-screen-90 {
794
794
  max-height: 90vh
795
795
  }
796
- .tw-min-h-10 {
797
- min-height: 2.5rem
798
- }
799
796
  .tw-min-h-14 {
800
797
  min-height: 3.5rem
801
798
  }
@@ -1018,9 +1015,6 @@ a.maker-anchor {
1018
1015
  .tw-w-svw {
1019
1016
  width: 100svw
1020
1017
  }
1021
- .tw-min-w-10 {
1022
- min-width: 2.5rem
1023
- }
1024
1018
  .tw-min-w-8 {
1025
1019
  min-width: 2rem
1026
1020
  }
@@ -8659,7 +8653,7 @@ input[type='number'][data-v-28a532b4] {
8659
8653
  margin-bottom: 1.5rem
8660
8654
  }
8661
8655
 
8662
- .c-brand-page-maker[data-v-b762f3c1] {
8656
+ .c-brand-page-maker[data-v-7ffa5653] {
8663
8657
  --navigation-height-desktop: 64px;
8664
8658
  --navigation-height-mobile: 96px;
8665
8659
  --maker-height: 100vh;
@@ -8669,10 +8663,10 @@ input[type='number'][data-v-28a532b4] {
8669
8663
  height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
8670
8664
  padding-top: var(--navigation-height-mobile);
8671
8665
  }
8672
- .c-brand-page-maker__inner[data-v-b762f3c1] {
8666
+ .c-brand-page-maker__inner[data-v-7ffa5653] {
8673
8667
  height: 100%;
8674
8668
  }
8675
- .c-save-bar[data-v-b762f3c1] {
8669
+ .c-save-bar[data-v-7ffa5653] {
8676
8670
  position: absolute;
8677
8671
  top: 0px;
8678
8672
  left: 0px;
@@ -8694,7 +8688,7 @@ input[type='number'][data-v-28a532b4] {
8694
8688
  -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8695
8689
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8696
8690
  }
8697
- .c-save-bar--visible[data-v-b762f3c1] {
8691
+ .c-save-bar--visible[data-v-7ffa5653] {
8698
8692
  visibility: visible !important;
8699
8693
  --tw-translate-y: 0px !important;
8700
8694
  -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
@@ -8704,11 +8698,11 @@ input[type='number'][data-v-28a532b4] {
8704
8698
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
8705
8699
  }
8706
8700
  @media (min-width: 1024px) {
8707
- .c-brand-page-maker[data-v-b762f3c1] {
8701
+ .c-brand-page-maker[data-v-7ffa5653] {
8708
8702
  height: calc(var(--maker-height) - var(--navigation-height-desktop));
8709
8703
  padding-top: 0px;
8710
8704
  }
8711
- .c-brand-page-maker__inner[data-v-b762f3c1] {
8705
+ .c-brand-page-maker__inner[data-v-7ffa5653] {
8712
8706
  height: 100%;
8713
8707
  }
8714
8708
  }
@@ -1215,9 +1215,6 @@ a.maker-anchor {
1215
1215
  .tw-max-h-screen-90 {
1216
1216
  max-height: 90vh;
1217
1217
  }
1218
- .tw-min-h-10 {
1219
- min-height: 2.5rem;
1220
- }
1221
1218
  .tw-min-h-14 {
1222
1219
  min-height: 3.5rem;
1223
1220
  }
@@ -1440,9 +1437,6 @@ a.maker-anchor {
1440
1437
  .tw-w-svw {
1441
1438
  width: 100svw;
1442
1439
  }
1443
- .tw-min-w-10 {
1444
- min-width: 2.5rem;
1445
- }
1446
1440
  .tw-min-w-8 {
1447
1441
  min-width: 2rem;
1448
1442
  }
@@ -8987,7 +8981,7 @@ input[type='number'][data-v-28a532b4] {
8987
8981
  margin-bottom: 1.5rem
8988
8982
  }
8989
8983
 
8990
- .c-brand-page-maker[data-v-b762f3c1] {
8984
+ .c-brand-page-maker[data-v-7ffa5653] {
8991
8985
  --navigation-height-desktop: 64px;
8992
8986
  --navigation-height-mobile: 96px;
8993
8987
  --maker-height: 100vh;
@@ -8997,10 +8991,10 @@ input[type='number'][data-v-28a532b4] {
8997
8991
  height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
8998
8992
  padding-top: var(--navigation-height-mobile);
8999
8993
  }
9000
- .c-brand-page-maker__inner[data-v-b762f3c1] {
8994
+ .c-brand-page-maker__inner[data-v-7ffa5653] {
9001
8995
  height: 100%;
9002
8996
  }
9003
- .c-save-bar[data-v-b762f3c1] {
8997
+ .c-save-bar[data-v-7ffa5653] {
9004
8998
  position: absolute;
9005
8999
  top: 0px;
9006
9000
  left: 0px;
@@ -9022,7 +9016,7 @@ input[type='number'][data-v-28a532b4] {
9022
9016
  -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
9023
9017
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
9024
9018
  }
9025
- .c-save-bar--visible[data-v-b762f3c1] {
9019
+ .c-save-bar--visible[data-v-7ffa5653] {
9026
9020
  visibility: visible !important;
9027
9021
  --tw-translate-y: 0px !important;
9028
9022
  -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
@@ -9032,11 +9026,11 @@ input[type='number'][data-v-28a532b4] {
9032
9026
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
9033
9027
  }
9034
9028
  @media (min-width: 1024px) {
9035
- .c-brand-page-maker[data-v-b762f3c1] {
9029
+ .c-brand-page-maker[data-v-7ffa5653] {
9036
9030
  height: calc(var(--maker-height) - var(--navigation-height-desktop));
9037
9031
  padding-top: 0px;
9038
9032
  }
9039
- .c-brand-page-maker__inner[data-v-b762f3c1] {
9033
+ .c-brand-page-maker__inner[data-v-7ffa5653] {
9040
9034
  height: 100%;
9041
9035
  }
9042
9036
  }
@@ -811,9 +811,6 @@ a:not(.tw-lowercase) {
811
811
  .tw-max-h-screen-90 {
812
812
  max-height: 90vh
813
813
  }
814
- .tw-min-h-10 {
815
- min-height: 2.5rem
816
- }
817
814
  .tw-min-h-14 {
818
815
  min-height: 3.5rem
819
816
  }
@@ -1036,9 +1033,6 @@ a:not(.tw-lowercase) {
1036
1033
  .tw-w-svw {
1037
1034
  width: 100svw
1038
1035
  }
1039
- .tw-min-w-10 {
1040
- min-width: 2.5rem
1041
- }
1042
1036
  .tw-min-w-8 {
1043
1037
  min-width: 2rem
1044
1038
  }
@@ -8677,7 +8671,7 @@ input[type='number'][data-v-28a532b4] {
8677
8671
  margin-bottom: 1.5rem
8678
8672
  }
8679
8673
 
8680
- .c-brand-page-maker[data-v-b762f3c1] {
8674
+ .c-brand-page-maker[data-v-7ffa5653] {
8681
8675
  --navigation-height-desktop: 64px;
8682
8676
  --navigation-height-mobile: 96px;
8683
8677
  --maker-height: 100vh;
@@ -8687,10 +8681,10 @@ input[type='number'][data-v-28a532b4] {
8687
8681
  height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
8688
8682
  padding-top: var(--navigation-height-mobile);
8689
8683
  }
8690
- .c-brand-page-maker__inner[data-v-b762f3c1] {
8684
+ .c-brand-page-maker__inner[data-v-7ffa5653] {
8691
8685
  height: 100%;
8692
8686
  }
8693
- .c-save-bar[data-v-b762f3c1] {
8687
+ .c-save-bar[data-v-7ffa5653] {
8694
8688
  position: absolute;
8695
8689
  top: 0px;
8696
8690
  left: 0px;
@@ -8712,7 +8706,7 @@ input[type='number'][data-v-28a532b4] {
8712
8706
  -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8713
8707
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8714
8708
  }
8715
- .c-save-bar--visible[data-v-b762f3c1] {
8709
+ .c-save-bar--visible[data-v-7ffa5653] {
8716
8710
  visibility: visible !important;
8717
8711
  --tw-translate-y: 0px !important;
8718
8712
  -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
@@ -8722,11 +8716,11 @@ input[type='number'][data-v-28a532b4] {
8722
8716
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
8723
8717
  }
8724
8718
  @media (min-width: 1024px) {
8725
- .c-brand-page-maker[data-v-b762f3c1] {
8719
+ .c-brand-page-maker[data-v-7ffa5653] {
8726
8720
  height: calc(var(--maker-height) - var(--navigation-height-desktop));
8727
8721
  padding-top: 0px;
8728
8722
  }
8729
- .c-brand-page-maker__inner[data-v-b762f3c1] {
8723
+ .c-brand-page-maker__inner[data-v-7ffa5653] {
8730
8724
  height: 100%;
8731
8725
  }
8732
8726
  }