@designcrowd/library.brand-page 5.15.27-ast-bug → 5.16.0-ast-bug

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-CkGQ4G_0.js → CreatedOnBrandCrowd-de-de-CQaFsHRq.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CI0R4imY.js → CreatedOnBrandCrowd-en-us-BqYPoS2-.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DfVOwAgX.js → CreatedOnBrandCrowd-es-es-BiXPRMaO.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CDzs65j6.js → CreatedOnBrandCrowd-fr-ca-CSSwi6HC.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-CDzs65j6.js → CreatedOnBrandCrowd-fr-fr-CSSwi6HC.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DT5-KEqF.js → CreatedOnBrandCrowd-pt-br-fgBCi1Yx.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-DT5-KEqF.js → CreatedOnBrandCrowd-pt-pt-fgBCi1Yx.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CrXmnwk7.js → CreatedOnDcom-de-de-JvCcqsZ3.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-BxDKAimo.js → CreatedOnDcom-en-us-BzL4R7K1.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BV-bf9GA.js → CreatedOnDcom-es-es-BmxDrOv4.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-BM0lK2ZN.js → CreatedOnDcom-fr-ca-CQXQARJP.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-DAmKbip-.js → CreatedOnDcom-fr-fr-C_Q5VmJU.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-_tHW_OU7.js → CreatedOnDcom-pt-br-B_6hh63J.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CYkWyII5.js → CreatedOnDcom-pt-pt-D4Pyw8eD.js} +1 -1
  15. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +1 -0
  16. package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +1 -0
  17. package/lib/src/brand-page/models/brand-page-context.model.d.ts +1 -0
  18. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +36 -0
  19. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +10 -1
  20. package/lib/src/brand-page-maker/components/device/Device.mixin.d.ts +3 -1
  21. package/lib/src/brand-page-maker/components/device/Device.mixin.js +5 -1
  22. package/lib/src/brand-page-maker/components/preview/Preview.mixin.d.ts +1 -0
  23. package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +5 -2
  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 +13 -1
  27. package/lib/src/brand-page-maker/stores/video/video-store.js +11 -1
  28. package/lib/src/css/library.brand-page-brandCrowd.min.css +12 -6
  29. package/lib/src/css/library.brand-page-brandPage.min.css +12 -6
  30. package/lib/src/css/library.brand-page-designCom.min.css +12 -6
  31. package/lib/src/css/library.brand-page-preview.min.css +12 -6
  32. package/lib/src/index.mjs +1 -1
  33. package/lib/src/{lib-CO4o8RlD.js → lib-BCRpz2_m.js} +11256 -11171
  34. package/package.json +1 -1
  35. package/src/brand-page/components/media/Video.vue +27 -4
  36. package/src/brand-page/models/brand-page-context.model.ts +1 -0
  37. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +13 -0
  38. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +16 -0
  39. package/src/brand-page-maker/components/device/Device.mixin.ts +5 -2
  40. package/src/brand-page-maker/components/layout-switcher/LayoutSwitcher.vue +15 -1
  41. package/src/brand-page-maker/components/preview/Preview.mixin.ts +5 -1
  42. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +1 -1
  43. package/src/brand-page-maker/components/video-play/VideoPlayButton.vue +31 -0
  44. package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +3 -3
  45. package/src/brand-page-maker/stores/video/video-store.ts +12 -1
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as t } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as e } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as M } from "./lib-BCRpz2_m.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-CO4o8RlD.js";
2
+ import { _ as M } from "./lib-BCRpz2_m.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -23,6 +23,7 @@ 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;
26
27
  } | undefined;
27
28
  abTests?: import("../../../models").AbTest | undefined;
28
29
  isCapturingPreview: boolean;
@@ -23,6 +23,7 @@ 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;
26
27
  } | undefined;
27
28
  abTests?: import("../../../models").AbTest | undefined;
28
29
  isCapturingPreview: boolean;
@@ -70,6 +70,7 @@ export interface BrandPageContext {
70
70
  disableNavigationSideMenu?: boolean;
71
71
  mediaSizes?: MediaSizes;
72
72
  renderVideoAsImage?: boolean;
73
+ shouldPlayVideos?: boolean;
73
74
  };
74
75
  abTests?: AbTest;
75
76
  /** Is brand page rendered for preview */
@@ -37,6 +37,8 @@ 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>;
40
42
  deviceMode: import("vue").ComputedRef<"desktop" | "mobile">;
41
43
  isMobileDevice: import("vue").ComputedRef<boolean>;
42
44
  isMobileScreenSize: import("vue").ComputedRef<boolean>;
@@ -1140,6 +1142,39 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1140
1142
  getProductModel(): import("../../../brand-page/models/shop.model").ProductModel;
1141
1143
  }>;
1142
1144
  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
+ }>;
1143
1178
  }, {
1144
1179
  mounted: boolean;
1145
1180
  isBrandPageLoaded: boolean;
@@ -1159,6 +1194,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1159
1194
  onBackBrandPage(): void;
1160
1195
  onChangeTemplateConfirmModalCancel(): void;
1161
1196
  onChangeTemplateConfirmModalConfirm(): void;
1197
+ onVideoPlayToggle(): void;
1162
1198
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1163
1199
  viewModel: {
1164
1200
  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, } from '../../stores';
13
+ import { useBrandPageMakerStore, useBrandPageMakerUserStore, useLocalisedRouteStore, useUiStore, useVideoStore, } 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,12 +42,17 @@ export default defineComponent({
42
42
  const productSettingStore = useProductConfigStore();
43
43
  const router = useRouter();
44
44
  const localisedRouteStore = useLocalisedRouteStore();
45
+ const videoStore = useVideoStore();
45
46
  return {
46
47
  commonTr,
47
48
  currentNotificationMessage: computed(() => brandPageMakerStore.currentNotificationMessage),
48
49
  isChangeTemplateConfirmModalVisible: computed(() => brandPageMakerStore.isChangeTemplateConfirmModalVisible),
49
50
  // the state of Mobile/Desktop tab
50
51
  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),
51
56
  // the state of active Preview Device type
52
57
  deviceMode: computed(() => uiStore.deviceMode),
53
58
  isMobileDevice: computed(() => uiStore.deviceMode === UI_DEVICE_MODES.mobile),
@@ -79,6 +84,7 @@ export default defineComponent({
79
84
  shopSettingStore,
80
85
  productSettingStore,
81
86
  router,
87
+ videoStore,
82
88
  };
83
89
  },
84
90
  data() {
@@ -271,5 +277,8 @@ export default defineComponent({
271
277
  onChangeTemplateConfirmModalConfirm() {
272
278
  this.brandPageMakerStore.onChangeTemplateConfirmModalConfirm();
273
279
  },
280
+ onVideoPlayToggle() {
281
+ this.videoStore.toggleShouldPlayVideo();
282
+ },
274
283
  },
275
284
  });
@@ -16,7 +16,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
16
  }>, {}, {
17
17
  visible: boolean;
18
18
  loadedOnce: boolean;
19
- }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, {}, {
20
+ toggleShouldPlay(): void;
21
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
22
  isMobileDevice: {
21
23
  type: BooleanConstructor;
22
24
  required: true;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent } from 'vue';
2
- import { debounce } from '../../../shared/functions';
3
2
  import { DEVICE_CSS_TRANSITION_DELAY } from '../../constants';
4
3
  export default defineComponent({
5
4
  props: {
@@ -40,4 +39,9 @@ export default defineComponent({
40
39
  clearTimeout(t);
41
40
  }, 100);
42
41
  },
42
+ methods: {
43
+ toggleShouldPlay() {
44
+ this.$emit('toggle-should-play');
45
+ },
46
+ },
43
47
  });
@@ -31,6 +31,7 @@ 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>;
34
35
  viewport: import("../../../brand-page").ViewportsType;
35
36
  abTests: Record<string, string>;
36
37
  }, {
@@ -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, } from '../../../brand-page-maker/stores';
5
+ import { useBrandPageContainerStore, useBrandPageMakerStore, useRouteStore, useVideoStore, } 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,10 +39,12 @@ export default defineComponent({
39
39
  const containerStore = useBrandPageContainerStore();
40
40
  const routeStore = useRouteStore();
41
41
  const brandPageMakerStore = useBrandPageMakerStore();
42
+ const videoStore = useVideoStore();
42
43
  return {
43
44
  currentRoute: computed(() => routeStore.currentRoute),
44
45
  isDesignCom: computed(() => containerStore.isDesignCom),
45
46
  isInitialising: computed(() => brandPageMakerStore.isInitialising),
47
+ shouldPlayVideos: computed(() => videoStore.shouldPlayVideos),
46
48
  viewport: brandPageMakerStore.viewport,
47
49
  abTests: containerStore.abTests,
48
50
  };
@@ -77,7 +79,8 @@ export default defineComponent({
77
79
  isServerRender: false,
78
80
  options: {
79
81
  mediaSizes: MEDIA_SIZES.size1x,
80
- renderVideoAsImage: true,
82
+ renderVideoAsImage: false,
83
+ shouldPlayVideos: this.shouldPlayVideos,
81
84
  },
82
85
  stripePublishableKey: undefined,
83
86
  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.getS3VideoUrlsForToken,
219
+ getVideoUrls: videoStore.getPreviewS3VideoUrlsForToken,
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.getS3VideoUrlsForToken,
894
+ getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
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.getS3VideoUrlsForToken,
907
+ getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
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.getS3VideoUrlsForToken,
914
+ getS3VideoUrls: videoStore.getOptimisedS3VideoUrlsForToken,
915
915
  setVideoUrlsWithToken: videoStore.setVideoUrlsWithToken,
916
916
  });
917
917
  },
@@ -7,15 +7,26 @@ type VideoUrls = Record<string, VideoUrlData>;
7
7
  export interface videoStoreState {
8
8
  videoUrls: VideoUrls;
9
9
  gettyImagesKeyPrefix: string;
10
+ shouldPlayVideos: boolean;
10
11
  }
11
12
  export declare const useVideoStore: import("pinia").StoreDefinition<"video", videoStoreState, {
12
13
  getVideoUrlsForToken: (state: {
13
14
  videoUrls: VideoUrls;
14
15
  gettyImagesKeyPrefix: string;
16
+ shouldPlayVideos: boolean;
15
17
  } & import("pinia").PiniaCustomStateProperties<videoStoreState>) => (token: string) => VideoUrlData;
16
- getS3VideoUrlsForToken: (state: {
18
+ getPreviewS3VideoUrlsForToken: (state: {
17
19
  videoUrls: VideoUrls;
18
20
  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;
19
30
  } & import("pinia").PiniaCustomStateProperties<videoStoreState>) => (token: string) => {
20
31
  videoUrl: string;
21
32
  previewImageUrl: string;
@@ -23,5 +34,6 @@ export declare const useVideoStore: import("pinia").StoreDefinition<"video", vid
23
34
  }, {
24
35
  setVideoUrlsWithToken(token: string, videoUrl: string, previewImageUrl: string, assetId: string): void;
25
36
  setGettyImageKeyPrefix(prefix: string): void;
37
+ toggleShouldPlayVideo(): void;
26
38
  }>;
27
39
  export {};
@@ -4,6 +4,7 @@ export const useVideoStore = defineStore('video', {
4
4
  state: () => ({
5
5
  videoUrls: {},
6
6
  gettyImagesKeyPrefix: '',
7
+ shouldPlayVideos: true,
7
8
  }),
8
9
  actions: {
9
10
  setVideoUrlsWithToken(token, videoUrl, previewImageUrl, assetId) {
@@ -12,16 +13,25 @@ export const useVideoStore = defineStore('video', {
12
13
  setGettyImageKeyPrefix(prefix) {
13
14
  this.gettyImagesKeyPrefix = prefix;
14
15
  },
16
+ toggleShouldPlayVideo() {
17
+ this.shouldPlayVideos = !this.shouldPlayVideos;
18
+ },
15
19
  },
16
20
  getters: {
17
21
  getVideoUrlsForToken: (state) => (token) => {
18
22
  return state.videoUrls[token];
19
23
  },
20
- getS3VideoUrlsForToken: (state) => (token) => {
24
+ getPreviewS3VideoUrlsForToken: (state) => (token) => {
21
25
  return {
22
26
  videoUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_preview`,
23
27
  previewImageUrl: `${CDN_GETTY_S3_URL_PREFIX}/public/${state.gettyImagesKeyPrefix}/${token}/${token}_preview_thumb`,
24
28
  };
25
29
  },
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
+ },
26
36
  },
27
37
  });
@@ -793,6 +793,9 @@ 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
+ }
796
799
  .tw-min-h-14 {
797
800
  min-height: 3.5rem
798
801
  }
@@ -1015,6 +1018,9 @@ a.maker-anchor {
1015
1018
  .tw-w-svw {
1016
1019
  width: 100svw
1017
1020
  }
1021
+ .tw-min-w-10 {
1022
+ min-width: 2.5rem
1023
+ }
1018
1024
  .tw-min-w-8 {
1019
1025
  min-width: 2rem
1020
1026
  }
@@ -8653,7 +8659,7 @@ input[type='number'][data-v-28a532b4] {
8653
8659
  margin-bottom: 1.5rem
8654
8660
  }
8655
8661
 
8656
- .c-brand-page-maker[data-v-7ffa5653] {
8662
+ .c-brand-page-maker[data-v-b762f3c1] {
8657
8663
  --navigation-height-desktop: 64px;
8658
8664
  --navigation-height-mobile: 96px;
8659
8665
  --maker-height: 100vh;
@@ -8663,10 +8669,10 @@ input[type='number'][data-v-28a532b4] {
8663
8669
  height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
8664
8670
  padding-top: var(--navigation-height-mobile);
8665
8671
  }
8666
- .c-brand-page-maker__inner[data-v-7ffa5653] {
8672
+ .c-brand-page-maker__inner[data-v-b762f3c1] {
8667
8673
  height: 100%;
8668
8674
  }
8669
- .c-save-bar[data-v-7ffa5653] {
8675
+ .c-save-bar[data-v-b762f3c1] {
8670
8676
  position: absolute;
8671
8677
  top: 0px;
8672
8678
  left: 0px;
@@ -8688,7 +8694,7 @@ input[type='number'][data-v-28a532b4] {
8688
8694
  -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8689
8695
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8690
8696
  }
8691
- .c-save-bar--visible[data-v-7ffa5653] {
8697
+ .c-save-bar--visible[data-v-b762f3c1] {
8692
8698
  visibility: visible !important;
8693
8699
  --tw-translate-y: 0px !important;
8694
8700
  -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;
@@ -8698,11 +8704,11 @@ input[type='number'][data-v-28a532b4] {
8698
8704
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
8699
8705
  }
8700
8706
  @media (min-width: 1024px) {
8701
- .c-brand-page-maker[data-v-7ffa5653] {
8707
+ .c-brand-page-maker[data-v-b762f3c1] {
8702
8708
  height: calc(var(--maker-height) - var(--navigation-height-desktop));
8703
8709
  padding-top: 0px;
8704
8710
  }
8705
- .c-brand-page-maker__inner[data-v-7ffa5653] {
8711
+ .c-brand-page-maker__inner[data-v-b762f3c1] {
8706
8712
  height: 100%;
8707
8713
  }
8708
8714
  }
@@ -1215,6 +1215,9 @@ 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
+ }
1218
1221
  .tw-min-h-14 {
1219
1222
  min-height: 3.5rem;
1220
1223
  }
@@ -1437,6 +1440,9 @@ a.maker-anchor {
1437
1440
  .tw-w-svw {
1438
1441
  width: 100svw;
1439
1442
  }
1443
+ .tw-min-w-10 {
1444
+ min-width: 2.5rem;
1445
+ }
1440
1446
  .tw-min-w-8 {
1441
1447
  min-width: 2rem;
1442
1448
  }
@@ -8981,7 +8987,7 @@ input[type='number'][data-v-28a532b4] {
8981
8987
  margin-bottom: 1.5rem
8982
8988
  }
8983
8989
 
8984
- .c-brand-page-maker[data-v-7ffa5653] {
8990
+ .c-brand-page-maker[data-v-b762f3c1] {
8985
8991
  --navigation-height-desktop: 64px;
8986
8992
  --navigation-height-mobile: 96px;
8987
8993
  --maker-height: 100vh;
@@ -8991,10 +8997,10 @@ input[type='number'][data-v-28a532b4] {
8991
8997
  height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
8992
8998
  padding-top: var(--navigation-height-mobile);
8993
8999
  }
8994
- .c-brand-page-maker__inner[data-v-7ffa5653] {
9000
+ .c-brand-page-maker__inner[data-v-b762f3c1] {
8995
9001
  height: 100%;
8996
9002
  }
8997
- .c-save-bar[data-v-7ffa5653] {
9003
+ .c-save-bar[data-v-b762f3c1] {
8998
9004
  position: absolute;
8999
9005
  top: 0px;
9000
9006
  left: 0px;
@@ -9016,7 +9022,7 @@ input[type='number'][data-v-28a532b4] {
9016
9022
  -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
9017
9023
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
9018
9024
  }
9019
- .c-save-bar--visible[data-v-7ffa5653] {
9025
+ .c-save-bar--visible[data-v-b762f3c1] {
9020
9026
  visibility: visible !important;
9021
9027
  --tw-translate-y: 0px !important;
9022
9028
  -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;
@@ -9026,11 +9032,11 @@ input[type='number'][data-v-28a532b4] {
9026
9032
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
9027
9033
  }
9028
9034
  @media (min-width: 1024px) {
9029
- .c-brand-page-maker[data-v-7ffa5653] {
9035
+ .c-brand-page-maker[data-v-b762f3c1] {
9030
9036
  height: calc(var(--maker-height) - var(--navigation-height-desktop));
9031
9037
  padding-top: 0px;
9032
9038
  }
9033
- .c-brand-page-maker__inner[data-v-7ffa5653] {
9039
+ .c-brand-page-maker__inner[data-v-b762f3c1] {
9034
9040
  height: 100%;
9035
9041
  }
9036
9042
  }
@@ -811,6 +811,9 @@ 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
+ }
814
817
  .tw-min-h-14 {
815
818
  min-height: 3.5rem
816
819
  }
@@ -1033,6 +1036,9 @@ a:not(.tw-lowercase) {
1033
1036
  .tw-w-svw {
1034
1037
  width: 100svw
1035
1038
  }
1039
+ .tw-min-w-10 {
1040
+ min-width: 2.5rem
1041
+ }
1036
1042
  .tw-min-w-8 {
1037
1043
  min-width: 2rem
1038
1044
  }
@@ -8671,7 +8677,7 @@ input[type='number'][data-v-28a532b4] {
8671
8677
  margin-bottom: 1.5rem
8672
8678
  }
8673
8679
 
8674
- .c-brand-page-maker[data-v-7ffa5653] {
8680
+ .c-brand-page-maker[data-v-b762f3c1] {
8675
8681
  --navigation-height-desktop: 64px;
8676
8682
  --navigation-height-mobile: 96px;
8677
8683
  --maker-height: 100vh;
@@ -8681,10 +8687,10 @@ input[type='number'][data-v-28a532b4] {
8681
8687
  height: calc(var(--maker-height) - var(--mobile-sidebar-bottom-height));
8682
8688
  padding-top: var(--navigation-height-mobile);
8683
8689
  }
8684
- .c-brand-page-maker__inner[data-v-7ffa5653] {
8690
+ .c-brand-page-maker__inner[data-v-b762f3c1] {
8685
8691
  height: 100%;
8686
8692
  }
8687
- .c-save-bar[data-v-7ffa5653] {
8693
+ .c-save-bar[data-v-b762f3c1] {
8688
8694
  position: absolute;
8689
8695
  top: 0px;
8690
8696
  left: 0px;
@@ -8706,7 +8712,7 @@ input[type='number'][data-v-28a532b4] {
8706
8712
  -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8707
8713
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
8708
8714
  }
8709
- .c-save-bar--visible[data-v-7ffa5653] {
8715
+ .c-save-bar--visible[data-v-b762f3c1] {
8710
8716
  visibility: visible !important;
8711
8717
  --tw-translate-y: 0px !important;
8712
8718
  -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;
@@ -8716,11 +8722,11 @@ input[type='number'][data-v-28a532b4] {
8716
8722
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
8717
8723
  }
8718
8724
  @media (min-width: 1024px) {
8719
- .c-brand-page-maker[data-v-7ffa5653] {
8725
+ .c-brand-page-maker[data-v-b762f3c1] {
8720
8726
  height: calc(var(--maker-height) - var(--navigation-height-desktop));
8721
8727
  padding-top: 0px;
8722
8728
  }
8723
- .c-brand-page-maker__inner[data-v-7ffa5653] {
8729
+ .c-brand-page-maker__inner[data-v-b762f3c1] {
8724
8730
  height: 100%;
8725
8731
  }
8726
8732
  }