@nok-integration/storefront-react 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6530,13 +6530,18 @@ const ES = {
6530
6530
  Shop: "Tienda",
6531
6531
  "Scroll down for more": "Desplázate hacia abajo para ver más",
6532
6532
  "Limited edition": "Edición limitada",
6533
+ "Ringer Tee": "Camiseta ringer",
6534
+ "White ringer tee with DAZN chest logo": "Camiseta ringer blanca con el logo de DAZN en el pecho",
6535
+ "Boxing Hoodie": "Sudadera de boxeo",
6536
+ "The Home of Boxing back print": "Estampado The Home of Boxing en la espalda",
6533
6537
  Previous: "Anterior",
6534
6538
  Next: "Siguiente",
6535
6539
  "Claim yours": "Consigue el tuyo",
6536
6540
  "Sold out": "Agotado",
6537
- "This invitation can no longer be used.": "Esta invitación ya no se puede usar.",
6538
6541
  "This invite is no longer valid": "Esta invitación ya no es válida",
6539
6542
  "It may have expired or already been used. Keep an eye on your inbox for the next drop.": "Puede que haya caducado o que ya se haya usado. Estate atento a tu bandeja de entrada para el próximo lanzamiento.",
6543
+ "This invite isn't open yet": "Esta invitación aún no está abierta",
6544
+ "This invite opens on {0}. Come back then to claim your item.": "Esta invitación se abrirá el {0}. Vuelve entonces para conseguir tu artículo.",
6540
6545
  "Explore DAZN": "Explorar DAZN",
6541
6546
  "Your basket has other items": "Tu cesta tiene otros artículos",
6542
6547
  "Empty your basket to claim this item.": "Vacía tu cesta para conseguir este artículo.",
@@ -9571,7 +9576,7 @@ const date = "_date_cm0rd_115";
9571
9576
  const bottom$1 = "_bottom_cm0rd_120";
9572
9577
  const strip = "_strip_cm0rd_128";
9573
9578
  const meta$1 = "_meta_cm0rd_141";
9574
- const tile$3 = "_tile_cm0rd_150";
9579
+ const tile$4 = "_tile_cm0rd_150";
9575
9580
  const image$b = "_image_cm0rd_160";
9576
9581
  const placeholder$5 = "_placeholder_cm0rd_167";
9577
9582
  const more = "_more_cm0rd_174";
@@ -9611,7 +9616,7 @@ const styles$A = {
9611
9616
  bottom: bottom$1,
9612
9617
  strip,
9613
9618
  meta: meta$1,
9614
- tile: tile$3,
9619
+ tile: tile$4,
9615
9620
  image: image$b,
9616
9621
  placeholder: placeholder$5,
9617
9622
  more,
@@ -10196,7 +10201,7 @@ function ColourSwatches({ variants, className }) {
10196
10201
  }, c.value))
10197
10202
  });
10198
10203
  }
10199
- const tile$2 = "_tile_tdmoy_7";
10204
+ const tile$3 = "_tile_tdmoy_7";
10200
10205
  const media$4 = "_media_tdmoy_15";
10201
10206
  const image$a = "_image_tdmoy_25";
10202
10207
  const placeholder$4 = "_placeholder_tdmoy_29";
@@ -10209,7 +10214,7 @@ const title$g = "_title_tdmoy_5";
10209
10214
  const large = "_large_tdmoy_185";
10210
10215
  const swatchSlot = "_swatchSlot_tdmoy_223";
10211
10216
  const styles$y = {
10212
- tile: tile$2,
10217
+ tile: tile$3,
10213
10218
  media: media$4,
10214
10219
  image: image$a,
10215
10220
  placeholder: placeholder$4,
@@ -11787,7 +11792,7 @@ const header$2 = "_header_1h4ny_9";
11787
11792
  const title$9 = "_title_1h4ny_18";
11788
11793
  const value = "_value_1h4ny_23";
11789
11794
  const tiles$1 = "_tiles_1h4ny_28";
11790
- const tile$1 = "_tile_1h4ny_28";
11795
+ const tile$2 = "_tile_1h4ny_28";
11791
11796
  const selected$1 = "_selected_1h4ny_52";
11792
11797
  const media$2 = "_media_1h4ny_36";
11793
11798
  const image$5 = "_image_1h4ny_64";
@@ -11800,7 +11805,7 @@ const styles$i = {
11800
11805
  title: title$9,
11801
11806
  value,
11802
11807
  tiles: tiles$1,
11803
- tile: tile$1,
11808
+ tile: tile$2,
11804
11809
  selected: selected$1,
11805
11810
  media: media$2,
11806
11811
  image: image$5,
@@ -12782,7 +12787,7 @@ const section = "_section_16kkh_1";
12782
12787
  const title$3 = "_title_16kkh_8";
12783
12788
  const tiles = "_tiles_16kkh_19";
12784
12789
  const item$1 = "_item_16kkh_27";
12785
- const tile = "_tile_16kkh_19";
12790
+ const tile$1 = "_tile_16kkh_19";
12786
12791
  const media$1 = "_media_16kkh_49";
12787
12792
  const image$2 = "_image_16kkh_61";
12788
12793
  const label = "_label_16kkh_65";
@@ -12792,7 +12797,7 @@ const styles$7 = {
12792
12797
  title: title$3,
12793
12798
  tiles,
12794
12799
  item: item$1,
12795
- tile,
12800
+ tile: tile$1,
12796
12801
  media: media$1,
12797
12802
  image: image$2,
12798
12803
  label,
@@ -14725,7 +14730,7 @@ const styles$5 = {
14725
14730
  invalid,
14726
14731
  cta: cta$1
14727
14732
  };
14728
- function VipInviteInvalid() {
14733
+ function VipInviteNotice({ title: title2, body: body3 }) {
14729
14734
  const t = useT();
14730
14735
  const assetUrl = useAssetUrl();
14731
14736
  const navigate = useNavigate();
@@ -14774,10 +14779,10 @@ function VipInviteInvalid() {
14774
14779
  className: hero$2.copy,
14775
14780
  children: [jsx("h1", {
14776
14781
  className: hero$2.headline,
14777
- children: t("This invite is no longer valid")
14782
+ children: title2
14778
14783
  }), jsx("p", {
14779
14784
  className: hero$2.body,
14780
- children: t("It may have expired or already been used. Keep an eye on your inbox for the next drop.")
14785
+ children: body3
14781
14786
  })]
14782
14787
  })]
14783
14788
  }), jsx("div", {
@@ -14793,6 +14798,26 @@ function VipInviteInvalid() {
14793
14798
  })
14794
14799
  });
14795
14800
  }
14801
+ function VipInviteInvalid() {
14802
+ const t = useT();
14803
+ return jsx(VipInviteNotice, {
14804
+ title: t("This invite is no longer valid"),
14805
+ body: t("It may have expired or already been used. Keep an eye on your inbox for the next drop.")
14806
+ });
14807
+ }
14808
+ function VipInviteScheduled({ opensAt }) {
14809
+ const t = useT();
14810
+ const locale = useLocale();
14811
+ const when = new Date(opensAt);
14812
+ const label2 = Number.isNaN(when.getTime()) ? opensAt : new Intl.DateTimeFormat(locale, {
14813
+ dateStyle: "long",
14814
+ timeStyle: "short"
14815
+ }).format(when);
14816
+ return jsx(VipInviteNotice, {
14817
+ title: t("This invite isn't open yet"),
14818
+ body: t("This invite opens on {0}. Come back then to claim your item.", label2)
14819
+ });
14820
+ }
14796
14821
  const crumbs$1 = "_crumbs_thxlv_1";
14797
14822
  const home = "_home_thxlv_13";
14798
14823
  const trail$1 = "_trail_thxlv_25";
@@ -14925,15 +14950,10 @@ function VipLandingView({ token, onUnavailable }) {
14925
14950
  if (onUnavailable) return jsx(Fragment, {
14926
14951
  children: onUnavailable(invite.state)
14927
14952
  });
14928
- if (invite.state !== "scheduled") return jsx(VipInviteInvalid, {});
14929
- return jsx(ShopSurface, {
14930
- tone: "light",
14931
- fill: true,
14932
- children: jsx(EmptyState, {
14933
- title: t("Item unavailable"),
14934
- body: t("This invitation can no longer be used.")
14935
- })
14953
+ if (invite.state === "scheduled") return jsx(VipInviteScheduled, {
14954
+ opensAt: invite.opens_at
14936
14955
  });
14956
+ return jsx(VipInviteInvalid, {});
14937
14957
  }
14938
14958
  return jsx(ActiveLanding, {
14939
14959
  token,
@@ -15021,33 +15041,40 @@ function ActiveLanding({ token, invite }) {
15021
15041
  })
15022
15042
  });
15023
15043
  }
15024
- const showcase = "_showcase_nmp6h_14";
15025
- const panel = "_panel_nmp6h_40";
15026
- const image = "_image_nmp6h_93";
15027
- const desktopArt = "_desktopArt_nmp6h_98";
15028
- const hero = "_hero_nmp6h_137";
15029
- const heroContent = "_heroContent_nmp6h_228";
15030
- const heroText = "_heroText_nmp6h_252";
15031
- const logo = "_logo_nmp6h_261";
15032
- const heroTitle = "_heroTitle_nmp6h_281";
15033
- const heroSub = "_heroSub_nmp6h_305";
15034
- const swipe = "_swipe_nmp6h_324";
15035
- const swipeLabel = "_swipeLabel_nmp6h_331";
15036
- const chevron$1 = "_chevron_nmp6h_337";
15037
- const overlay$1 = "_overlay_nmp6h_11";
15038
- const copy = "_copy_nmp6h_374";
15039
- const title$2 = "_title_nmp6h_386";
15040
- const subtitle$1 = "_subtitle_nmp6h_395";
15041
- const cta = "_cta_nmp6h_403";
15042
- const mosaic = "_mosaic_nmp6h_447";
15043
- const info = "_info_nmp6h_459";
15044
- const band = "_band_nmp6h_463";
15045
- const bandTitle = "_bandTitle_nmp6h_472";
15046
- const products = "_products_nmp6h_484";
15047
- const wideOnly = "_wideOnly_nmp6h_504";
15048
- const phoneOnly = "_phoneOnly_nmp6h_530";
15049
- const phoneArt = "_phoneArt_nmp6h_531";
15050
- const desktopFocal = "_desktopFocal_nmp6h_540";
15044
+ const showcase = "_showcase_qp8eb_14";
15045
+ const panel = "_panel_qp8eb_40";
15046
+ const image = "_image_qp8eb_93";
15047
+ const desktopArt = "_desktopArt_qp8eb_98";
15048
+ const hero = "_hero_qp8eb_137";
15049
+ const heroContent = "_heroContent_qp8eb_228";
15050
+ const heroText = "_heroText_qp8eb_252";
15051
+ const logo = "_logo_qp8eb_261";
15052
+ const heroTitle = "_heroTitle_qp8eb_281";
15053
+ const heroSub = "_heroSub_qp8eb_305";
15054
+ const swipe = "_swipe_qp8eb_324";
15055
+ const swipeLabel = "_swipeLabel_qp8eb_331";
15056
+ const chevron$1 = "_chevron_qp8eb_337";
15057
+ const overlay$1 = "_overlay_qp8eb_11";
15058
+ const copy = "_copy_qp8eb_374";
15059
+ const title$2 = "_title_qp8eb_386";
15060
+ const subtitle$1 = "_subtitle_qp8eb_395";
15061
+ const cta = "_cta_qp8eb_403";
15062
+ const mosaic = "_mosaic_qp8eb_447";
15063
+ const info = "_info_qp8eb_459";
15064
+ const art = "_art_qp8eb_463";
15065
+ const band = "_band_qp8eb_468";
15066
+ const bandTitle = "_bandTitle_qp8eb_477";
15067
+ const products = "_products_qp8eb_489";
15068
+ const wideOnly = "_wideOnly_qp8eb_509";
15069
+ const phoneOnly = "_phoneOnly_qp8eb_535";
15070
+ const phoneArt = "_phoneArt_qp8eb_536";
15071
+ const desktopFocal = "_desktopFocal_qp8eb_545";
15072
+ const diptych = "_diptych_qp8eb_711";
15073
+ const tile = "_tile_qp8eb_716";
15074
+ const tileCopy = "_tileCopy_qp8eb_730";
15075
+ const tileText = "_tileText_qp8eb_743";
15076
+ const tileTitle = "_tileTitle_qp8eb_750";
15077
+ const tileSubtitle = "_tileSubtitle_qp8eb_757";
15051
15078
  const styles$3 = {
15052
15079
  showcase,
15053
15080
  panel,
@@ -15069,13 +15096,20 @@ const styles$3 = {
15069
15096
  cta,
15070
15097
  mosaic,
15071
15098
  info,
15099
+ art,
15072
15100
  band,
15073
15101
  bandTitle,
15074
15102
  products,
15075
15103
  wideOnly,
15076
15104
  phoneOnly,
15077
15105
  phoneArt,
15078
- desktopFocal
15106
+ desktopFocal,
15107
+ diptych,
15108
+ tile,
15109
+ tileCopy,
15110
+ tileText,
15111
+ tileTitle,
15112
+ tileSubtitle
15079
15113
  };
15080
15114
  const useMountEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
15081
15115
  function useDocumentSnap(ref, enabled = true) {
@@ -15226,9 +15260,7 @@ const FALLBACK_PANELS = [{
15226
15260
  to: "/category/hoodies",
15227
15261
  target: "hoodies",
15228
15262
  video: "/figma/home/hoodies.mp4",
15229
- image: "/figma/home/hoodies-poster.jpg",
15230
- desktopImage: DESKTOP_POSTER,
15231
- desktopVideo: DESKTOP_VIDEO
15263
+ image: "/figma/home/hoodies-poster.jpg"
15232
15264
  }, {
15233
15265
  key: "zip-ups",
15234
15266
  title: "Zip Ups",
@@ -15238,8 +15270,8 @@ const FALLBACK_PANELS = [{
15238
15270
  target: "zip-ups",
15239
15271
  video: "/figma/home/zip-ups.mp4",
15240
15272
  image: "/figma/home/zip-ups-poster.jpg",
15241
- desktopImage: DESKTOP_POSTER,
15242
- desktopVideo: DESKTOP_VIDEO
15273
+ desktopImage: "/figma/home/desktop-zip-ups-poster.jpg",
15274
+ desktopVideo: "/figma/home/desktop-zip-ups.mp4"
15243
15275
  }, {
15244
15276
  key: "t-shirts",
15245
15277
  title: "T-Shirts",
@@ -15249,8 +15281,8 @@ const FALLBACK_PANELS = [{
15249
15281
  target: "t-shirts",
15250
15282
  video: "/figma/home/tshirts.mp4",
15251
15283
  image: "/figma/home/tshirts-poster.jpg",
15252
- desktopImage: DESKTOP_POSTER,
15253
- desktopVideo: DESKTOP_VIDEO
15284
+ desktopImage: "/figma/home/desktop-tshirts-poster.jpg",
15285
+ desktopVideo: "/figma/home/desktop-tshirts.mp4"
15254
15286
  }];
15255
15287
  const BAND_LIMIT = 20;
15256
15288
  const WIDE_BAND = 3;
@@ -15286,40 +15318,44 @@ function CategoryPanel({ panel: panel2, wide: wide2 }) {
15286
15318
  return jsxs("section", {
15287
15319
  className: styles$3.panel,
15288
15320
  "aria-label": t(panel2.title),
15321
+ "data-desktop": panel2.desktopImage || panel2.desktopVideo ? "cover" : "products",
15289
15322
  ...panel2.focalY === void 0 ? {} : {
15290
15323
  style: {
15291
15324
  "--slide-focal-y": `${panel2.focalY}%`
15292
15325
  }
15293
15326
  },
15294
- children: [panel2.video ? jsxs(Fragment, {
15295
- children: [jsx(ShopVideo, {
15296
- src: panel2.video,
15297
- poster: panel2.image,
15298
- fill: true,
15299
- className: [styles$3.image, panel2.desktopImage ? styles$3.phoneArt : ""].join(" ")
15300
- }), panel2.desktopImage && jsx(ShopImage, {
15301
- src: panel2.desktopImage,
15327
+ children: [jsxs("div", {
15328
+ className: styles$3.art,
15329
+ children: [panel2.video ? jsxs(Fragment, {
15330
+ children: [jsx(ShopVideo, {
15331
+ src: panel2.video,
15332
+ poster: panel2.image,
15333
+ fill: true,
15334
+ className: [styles$3.image, panel2.desktopImage ? styles$3.phoneArt : ""].join(" ")
15335
+ }), panel2.desktopImage && jsx(ShopImage, {
15336
+ src: panel2.desktopImage,
15337
+ alt: "",
15338
+ fill: true,
15339
+ sizes: "100vw",
15340
+ className: [styles$3.image, styles$3.desktopArt].join(" ")
15341
+ })]
15342
+ }) : jsx(ShopImage, {
15343
+ src: panel2.image,
15344
+ ...panel2.desktopImage ? {
15345
+ desktopSrc: panel2.desktopImage
15346
+ } : {},
15302
15347
  alt: "",
15303
15348
  fill: true,
15304
- sizes: "100vw",
15349
+ sizes: "(max-width: 480px) 100vw, 480px",
15350
+ className: [styles$3.image, panel2.desktopImage ? styles$3.desktopFocal : ""].join(" ")
15351
+ }), wide2 && panel2.desktopVideo && jsx(ShopVideo, {
15352
+ src: panel2.desktopVideo,
15353
+ ...panel2.desktopImage ? {
15354
+ poster: panel2.desktopImage
15355
+ } : {},
15356
+ fill: true,
15305
15357
  className: [styles$3.image, styles$3.desktopArt].join(" ")
15306
15358
  })]
15307
- }) : jsx(ShopImage, {
15308
- src: panel2.image,
15309
- ...panel2.desktopImage ? {
15310
- desktopSrc: panel2.desktopImage
15311
- } : {},
15312
- alt: "",
15313
- fill: true,
15314
- sizes: "(max-width: 480px) 100vw, 480px",
15315
- className: [styles$3.image, panel2.desktopImage ? styles$3.desktopFocal : ""].join(" ")
15316
- }), wide2 && panel2.desktopVideo && jsx(ShopVideo, {
15317
- src: panel2.desktopVideo,
15318
- ...panel2.desktopImage ? {
15319
- poster: panel2.desktopImage
15320
- } : {},
15321
- fill: true,
15322
- className: [styles$3.image, styles$3.desktopArt].join(" ")
15323
15359
  }), jsxs("div", {
15324
15360
  className: styles$3.overlay,
15325
15361
  children: [jsxs("div", {
@@ -15356,6 +15392,51 @@ function CategoryPanel({ panel: panel2, wide: wide2 }) {
15356
15392
  })]
15357
15393
  });
15358
15394
  }
15395
+ const DIPTYCH = [{
15396
+ key: "ringer-tee",
15397
+ title: "Ringer Tee",
15398
+ subtitle: "White ringer tee with DAZN chest logo",
15399
+ to: "/category/t-shirts",
15400
+ video: "/figma/home/desktop-ringer-tee.mp4"
15401
+ }, {
15402
+ key: "boxing-hoodie",
15403
+ title: "Boxing Hoodie",
15404
+ subtitle: "The Home of Boxing back print",
15405
+ to: "/product/SKU3-0001",
15406
+ video: "/figma/home/desktop-boxing-hoodie.mp4"
15407
+ }];
15408
+ function DiptychPanel() {
15409
+ const t = useT();
15410
+ return jsx("section", {
15411
+ className: `${styles$3.panel} ${styles$3.diptych}`,
15412
+ children: DIPTYCH.map((tile2) => jsxs("div", {
15413
+ className: styles$3.tile,
15414
+ children: [jsx(ShopVideo, {
15415
+ src: tile2.video,
15416
+ poster: tile2.video.replace(/\.mp4$/, "-poster.jpg"),
15417
+ fill: true,
15418
+ className: styles$3.image
15419
+ }), jsxs("div", {
15420
+ className: styles$3.tileCopy,
15421
+ children: [jsxs("div", {
15422
+ className: styles$3.tileText,
15423
+ children: [jsx("h2", {
15424
+ className: styles$3.tileTitle,
15425
+ children: t(tile2.title)
15426
+ }), jsx("p", {
15427
+ className: styles$3.tileSubtitle,
15428
+ children: t(tile2.subtitle)
15429
+ })]
15430
+ }), jsx(ShopLink, {
15431
+ to: tile2.to,
15432
+ className: styles$3.cta,
15433
+ "aria-label": `${t(tile2.title)} — ${t("See more")}`,
15434
+ children: t("See more")
15435
+ })]
15436
+ })]
15437
+ }, tile2.key))
15438
+ });
15439
+ }
15359
15440
  function MosaicPanel() {
15360
15441
  const t = useT();
15361
15442
  return jsx("section", {
@@ -15510,8 +15591,8 @@ function HomeShowcase() {
15510
15591
  children: [jsx(CategoryPanel, {
15511
15592
  panel: p,
15512
15593
  wide: wide2
15513
- }), i === 0 && jsx(MosaicPanel, {})]
15514
- }, p.key)), panels.length === 0 && jsx(MosaicPanel, {})]
15594
+ }), i === 0 && jsx(MosaicPanel, {}), i === 0 && wide2 && jsx(DiptychPanel, {})]
15595
+ }, p.key)), panels.length === 0 && jsx(MosaicPanel, {}), panels.length === 0 && wide2 && jsx(DiptychPanel, {})]
15515
15596
  })
15516
15597
  });
15517
15598
  }