@nok-integration/storefront-react 0.19.15 → 0.19.17

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.
@@ -4343,7 +4343,8 @@ function requireContent() {
4343
4343
  });
4344
4344
  exports.LifestyleImageBlock = zod_1.z.object({
4345
4345
  kind: zod_1.z.literal("lifestyle_image"),
4346
- images: zod_1.z.array(common_1.Url).min(1)
4346
+ images: zod_1.z.array(common_1.Url).min(1),
4347
+ videos: zod_1.z.array(common_1.Url.nullable()).optional()
4347
4348
  });
4348
4349
  exports.GridBlock = zod_1.z.object({
4349
4350
  kind: zod_1.z.literal("grid"),
@@ -5403,7 +5404,7 @@ const neutral$1 = "_neutral_1bagf_12";
5403
5404
  const success$1 = "_success_1bagf_17";
5404
5405
  const critical$1 = "_critical_1bagf_22";
5405
5406
  const promo = "_promo_1bagf_27";
5406
- const styles$P = {
5407
+ const styles$Q = {
5407
5408
  badge: badge$5,
5408
5409
  neutral: neutral$1,
5409
5410
  success: success$1,
@@ -5412,7 +5413,7 @@ const styles$P = {
5412
5413
  };
5413
5414
  function Badge({ tone = "neutral", children }) {
5414
5415
  return jsx("span", {
5415
- className: [styles$P.badge, styles$P[tone]].join(" "),
5416
+ className: [styles$Q.badge, styles$Q[tone]].join(" "),
5416
5417
  children
5417
5418
  });
5418
5419
  }
@@ -5423,7 +5424,7 @@ const secondary = "_secondary_1u2uh_34";
5423
5424
  const ghost = "_ghost_1u2uh_40";
5424
5425
  const spinner = "_spinner_1u2uh_83";
5425
5426
  const spin = "_spin_1u2uh_83";
5426
- const styles$O = {
5427
+ const styles$P = {
5427
5428
  button: button$1,
5428
5429
  fullWidth,
5429
5430
  primary,
@@ -5437,12 +5438,12 @@ const Button = forwardRef(function Button2({ variant = "primary", loading = fals
5437
5438
  return jsxs("button", {
5438
5439
  ref,
5439
5440
  type,
5440
- className: [styles$O.button, styles$O[variant], fullWidth2 ? styles$O.fullWidth : "", className ?? ""].filter(Boolean).join(" "),
5441
+ className: [styles$P.button, styles$P[variant], fullWidth2 ? styles$P.fullWidth : "", className ?? ""].filter(Boolean).join(" "),
5441
5442
  disabled: isDisabled,
5442
5443
  "aria-busy": loading || void 0,
5443
5444
  ...rest,
5444
5445
  children: [loading && jsx("span", {
5445
- className: styles$O.spinner,
5446
+ className: styles$P.spinner,
5446
5447
  "aria-hidden": "true"
5447
5448
  }), jsx("span", {
5448
5449
  children
@@ -5450,7 +5451,7 @@ const Button = forwardRef(function Button2({ variant = "primary", loading = fals
5450
5451
  });
5451
5452
  });
5452
5453
  const skeleton = "_skeleton_1nxz7_1";
5453
- const styles$N = {
5454
+ const styles$O = {
5454
5455
  skeleton
5455
5456
  };
5456
5457
  function Skeleton({ width, height, radius, className, circle }) {
@@ -5461,13 +5462,13 @@ function Skeleton({ width, height, radius, className, circle }) {
5461
5462
  };
5462
5463
  return jsx("span", {
5463
5464
  "aria-hidden": "true",
5464
- className: [styles$N.skeleton, className ?? ""].filter(Boolean).join(" "),
5465
+ className: [styles$O.skeleton, className ?? ""].filter(Boolean).join(" "),
5465
5466
  style
5466
5467
  });
5467
5468
  }
5468
5469
  const surface$1 = "_surface_cfqo9_10";
5469
5470
  const fill = "_fill_cfqo9_35";
5470
- const styles$M = {
5471
+ const styles$N = {
5471
5472
  surface: surface$1,
5472
5473
  fill
5473
5474
  };
@@ -5525,7 +5526,7 @@ const ShopSurface = forwardRef(function ShopSurface2({ tone, fill: fill2 = false
5525
5526
  ...rest,
5526
5527
  ref: attach,
5527
5528
  "data-shop-theme": tone,
5528
- className: [styles$M.surface, fill2 ? styles$M.fill : "", className ?? ""].filter(Boolean).join(" "),
5529
+ className: [styles$N.surface, fill2 ? styles$N.fill : "", className ?? ""].filter(Boolean).join(" "),
5529
5530
  children
5530
5531
  });
5531
5532
  });
@@ -5538,7 +5539,7 @@ const lineMid = "_lineMid_ney0g_45";
5538
5539
  const lineNarrow = "_lineNarrow_ney0g_49";
5539
5540
  const row$9 = "_row_ney0g_53";
5540
5541
  const action$2 = "_action_ney0g_57";
5541
- const styles$L = {
5542
+ const styles$M = {
5542
5543
  root: root$6,
5543
5544
  inner,
5544
5545
  media: media$3,
@@ -5750,36 +5751,36 @@ function ScreenSkeleton({ tone, shape = "media" }) {
5750
5751
  return jsx(ShopSurface, {
5751
5752
  tone,
5752
5753
  fill: true,
5753
- className: styles$L.root,
5754
+ className: styles$M.root,
5754
5755
  children: jsx("div", {
5755
- className: styles$L.inner,
5756
+ className: styles$M.inner,
5756
5757
  role: "status",
5757
5758
  "aria-label": t("Loading"),
5758
5759
  children: shape === "media" ? jsxs(Fragment, {
5759
5760
  children: [jsx(Skeleton, {
5760
- className: styles$L.media
5761
+ className: styles$M.media
5761
5762
  }), jsxs("div", {
5762
- className: styles$L.lines,
5763
+ className: styles$M.lines,
5763
5764
  children: [jsx(Skeleton, {
5764
5765
  height: 22,
5765
- className: styles$L.lineWide
5766
+ className: styles$M.lineWide
5766
5767
  }), jsx(Skeleton, {
5767
5768
  height: 16,
5768
- className: styles$L.lineMid
5769
+ className: styles$M.lineMid
5769
5770
  }), jsx(Skeleton, {
5770
5771
  height: 16,
5771
- className: styles$L.lineNarrow
5772
+ className: styles$M.lineNarrow
5772
5773
  })]
5773
5774
  }), jsx(Skeleton, {
5774
5775
  height: 48,
5775
5776
  radius: 8,
5776
- className: styles$L.action
5777
+ className: styles$M.action
5777
5778
  })]
5778
5779
  }) : jsx("div", {
5779
- className: styles$L.lines,
5780
+ className: styles$M.lines,
5780
5781
  children: [0, 1, 2, 3].map((i) => jsx(Skeleton, {
5781
5782
  height: 72,
5782
- className: styles$L.row
5783
+ className: styles$M.row
5783
5784
  }, i))
5784
5785
  })
5785
5786
  })
@@ -5791,7 +5792,7 @@ const text$5 = "_text_ryf3q_21";
5791
5792
  const title$n = "_title_ryf3q_35";
5792
5793
  const body$8 = "_body_ryf3q_40";
5793
5794
  const action$1 = "_action_ryf3q_48";
5794
- const styles$K = {
5795
+ const styles$L = {
5795
5796
  root: root$5,
5796
5797
  icon: icon$4,
5797
5798
  text: text$5,
@@ -5801,22 +5802,22 @@ const styles$K = {
5801
5802
  };
5802
5803
  function EmptyState({ title: title2, body: body3, action: action2, icon: icon2 }) {
5803
5804
  return jsxs("div", {
5804
- className: styles$K.root,
5805
+ className: styles$L.root,
5805
5806
  role: "status",
5806
5807
  children: [icon2 && jsx("div", {
5807
- className: styles$K.icon,
5808
+ className: styles$L.icon,
5808
5809
  children: icon2
5809
5810
  }), jsxs("div", {
5810
- className: styles$K.text,
5811
+ className: styles$L.text,
5811
5812
  children: [jsx("h2", {
5812
- className: styles$K.title,
5813
+ className: styles$L.title,
5813
5814
  children: title2
5814
5815
  }), body3 && jsx("p", {
5815
- className: styles$K.body,
5816
+ className: styles$L.body,
5816
5817
  children: body3
5817
5818
  })]
5818
5819
  }), action2 && jsx("div", {
5819
- className: styles$K.action,
5820
+ className: styles$L.action,
5820
5821
  children: action2
5821
5822
  })]
5822
5823
  });
@@ -5938,7 +5939,7 @@ function isDuplicateOrder(err) {
5938
5939
  const root$4 = "_root_1lbpx_1";
5939
5940
  const title$m = "_title_1lbpx_10";
5940
5941
  const body$7 = "_body_1lbpx_15";
5941
- const styles$J = {
5942
+ const styles$K = {
5942
5943
  root: root$4,
5943
5944
  title: title$m,
5944
5945
  body: body$7
@@ -5948,13 +5949,13 @@ function ErrorState({ code, title: title2, body: body3, onRetry, retryLabel }) {
5948
5949
  const treatment = treatmentFor(code);
5949
5950
  const showRetry = Boolean(onRetry) && treatment.retriable;
5950
5951
  return jsxs("div", {
5951
- className: styles$J.root,
5952
+ className: styles$K.root,
5952
5953
  role: "alert",
5953
5954
  children: [jsx("h2", {
5954
- className: styles$J.title,
5955
+ className: styles$K.title,
5955
5956
  children: title2 ?? t(treatment.title)
5956
5957
  }), jsx("p", {
5957
- className: styles$J.body,
5958
+ className: styles$K.body,
5958
5959
  children: body3 ?? t(treatment.body)
5959
5960
  }), showRetry && jsx(Button, {
5960
5961
  variant: "secondary",
@@ -6002,7 +6003,7 @@ const rich = "_rich_5aafz_183";
6002
6003
  const description = "_description_5aafz_198";
6003
6004
  const thumb$3 = "_thumb_5aafz_216";
6004
6005
  const thumbImage = "_thumbImage_5aafz_227";
6005
- const styles$I = {
6006
+ const styles$J = {
6006
6007
  viewport,
6007
6008
  anchor,
6008
6009
  caret,
@@ -6125,41 +6126,41 @@ function ToastProvider({ children }) {
6125
6126
  return jsxs(ToastContext.Provider, {
6126
6127
  value: api,
6127
6128
  children: [children, jsx("div", {
6128
- className: styles$I.viewport,
6129
+ className: styles$J.viewport,
6129
6130
  ref: viewportRef,
6130
6131
  "aria-live": "polite",
6131
6132
  "aria-atomic": "false",
6132
6133
  children: toasts.map((t) => {
6133
6134
  const rich2 = Boolean(t.description || t.image);
6134
6135
  return jsxs("div", {
6135
- className: styles$I.anchor,
6136
+ className: styles$J.anchor,
6136
6137
  children: [t.anchor === "cart" && jsx("span", {
6137
- className: styles$I.caret,
6138
+ className: styles$J.caret,
6138
6139
  children: jsx(Caret, {})
6139
6140
  }), jsxs("div", {
6140
- className: [styles$I.toast, rich2 ? styles$I.rich : styles$I[t.tone]].join(" "),
6141
+ className: [styles$J.toast, rich2 ? styles$J.rich : styles$J[t.tone]].join(" "),
6141
6142
  role: "status",
6142
6143
  children: [t.image && jsx("span", {
6143
- className: styles$I.thumb,
6144
+ className: styles$J.thumb,
6144
6145
  children: jsx(ShopImage, {
6145
6146
  src: t.image,
6146
6147
  alt: "",
6147
6148
  fill: true,
6148
6149
  sizes: "40px",
6149
- className: styles$I.thumbImage
6150
+ className: styles$J.thumbImage
6150
6151
  })
6151
6152
  }), jsxs("span", {
6152
- className: styles$I.text,
6153
+ className: styles$J.text,
6153
6154
  children: [jsx("span", {
6154
- className: styles$I.message,
6155
+ className: styles$J.message,
6155
6156
  children: t.message
6156
6157
  }), t.description && jsx("span", {
6157
- className: styles$I.description,
6158
+ className: styles$J.description,
6158
6159
  children: t.description
6159
6160
  })]
6160
6161
  }), t.action && jsx("button", {
6161
6162
  type: "button",
6162
- className: styles$I.action,
6163
+ className: styles$J.action,
6163
6164
  onClick: () => {
6164
6165
  t.action?.onAction();
6165
6166
  dismiss(t.id);
@@ -6174,15 +6175,15 @@ function ToastProvider({ children }) {
6174
6175
  }
6175
6176
  const badge$4 = "_badge_156ya_2";
6176
6177
  const icon$3 = "_icon_156ya_18";
6177
- const styles$H = {
6178
+ const styles$I = {
6178
6179
  badge: badge$4,
6179
6180
  icon: icon$3
6180
6181
  };
6181
6182
  function SaleBadge({ pct }) {
6182
6183
  return jsxs("span", {
6183
- className: styles$H.badge,
6184
+ className: styles$I.badge,
6184
6185
  children: [jsxs("svg", {
6185
- className: styles$H.icon,
6186
+ className: styles$I.icon,
6186
6187
  width: "12",
6187
6188
  height: "12",
6188
6189
  viewBox: "0 0 24 24",
@@ -6212,7 +6213,7 @@ const badge$3 = "_badge_rvfx9_48";
6212
6213
  const price$4 = "_price_rvfx9_52";
6213
6214
  const compareAt = "_compareAt_rvfx9_57";
6214
6215
  const strikethrough = "_strikethrough_rvfx9_65";
6215
- const styles$G = {
6216
+ const styles$H = {
6216
6217
  root: root$3,
6217
6218
  center: center$1,
6218
6219
  end,
@@ -6229,12 +6230,12 @@ function PriceBlock({ price: price2, compareAt: compareAt2, discountPct: discoun
6229
6230
  const pct = discountPct$1 ?? discountPct(price2, compareAt2);
6230
6231
  const hasCompare = compareAt2 && compareAt2.amount > price2.amount;
6231
6232
  return jsxs("div", {
6232
- className: [styles$G.root, styles$G[size], styles$G[align], styles$G[variant]].join(" "),
6233
+ className: [styles$H.root, styles$H[size], styles$H[align], styles$H[variant]].join(" "),
6233
6234
  children: [jsx("span", {
6234
- className: styles$G.price,
6235
+ className: styles$H.price,
6235
6236
  children: format(price2)
6236
6237
  }), hasCompare && jsxs("span", {
6237
- className: styles$G.compareAt,
6238
+ className: styles$H.compareAt,
6238
6239
  children: [jsx("span", {
6239
6240
  className: "visually-hidden",
6240
6241
  children: `Was ${format(compareAt2)}`
@@ -6260,7 +6261,7 @@ const past = "_past_1cum7_113";
6260
6261
  const current = "_current_1cum7_118";
6261
6262
  const future = "_future_1cum7_133";
6262
6263
  const date$1 = "_date_1cum7_138";
6263
- const styles$F = {
6264
+ const styles$G = {
6264
6265
  timeline,
6265
6266
  row: row$8,
6266
6267
  line: line$3,
@@ -6279,39 +6280,39 @@ function OrderTimeline({ progress: progress2, estimatedDelivery, locale: localeP
6279
6280
  const locale = useLocale(localeProp);
6280
6281
  const currentIndex = progress2.findIndex((e) => e.current);
6281
6282
  return jsx("ol", {
6282
- className: styles$F.timeline,
6283
+ className: styles$G.timeline,
6283
6284
  children: progress2.map((entry, i) => {
6284
6285
  const state = stateOf(entry, i, currentIndex);
6285
6286
  const estimate = !entry.at && i === progress2.length - 1 && estimatedDelivery ? formatWindow(estimatedDelivery, locale) : void 0;
6286
6287
  return jsxs("li", {
6287
- className: styles$F.row,
6288
+ className: styles$G.row,
6288
6289
  "aria-current": entry.current ? "step" : void 0,
6289
6290
  children: [jsxs("div", {
6290
- className: styles$F.line,
6291
+ className: styles$G.line,
6291
6292
  children: [jsx("span", {
6292
- className: styles$F.marker,
6293
+ className: styles$G.marker,
6293
6294
  children: state === "future" ? jsx("span", {
6294
- className: styles$F.pending,
6295
+ className: styles$G.pending,
6295
6296
  "aria-hidden": "true"
6296
6297
  }) : jsx(StepTick, {
6297
6298
  tone: state
6298
6299
  })
6299
6300
  }), jsxs("span", {
6300
- className: styles$F.text,
6301
+ className: styles$G.text,
6301
6302
  children: [jsx("span", {
6302
- className: [styles$F.label, styles$F[state]].join(" "),
6303
+ className: [styles$G.label, styles$G[state]].join(" "),
6303
6304
  children: entry.label
6304
6305
  }), entry.at ? jsx("time", {
6305
- className: styles$F.date,
6306
+ className: styles$G.date,
6306
6307
  dateTime: entry.at,
6307
6308
  children: formatStepDate(entry.at, locale)
6308
6309
  }) : estimate && jsx("span", {
6309
- className: styles$F.date,
6310
+ className: styles$G.date,
6310
6311
  children: estimate
6311
6312
  })]
6312
6313
  })]
6313
6314
  }), i < progress2.length - 1 && jsx("span", {
6314
- className: styles$F.connector,
6315
+ className: styles$G.connector,
6315
6316
  "aria-hidden": "true"
6316
6317
  })]
6317
6318
  }, entry.step);
@@ -6325,7 +6326,7 @@ function stateOf(entry, index, currentIndex) {
6325
6326
  }
6326
6327
  function StepTick({ tone }) {
6327
6328
  return jsxs("svg", {
6328
- className: styles$F.tick,
6329
+ className: styles$G.tick,
6329
6330
  width: "28",
6330
6331
  height: "28",
6331
6332
  viewBox: "0 0 28 28",
@@ -6470,7 +6471,7 @@ const row$7 = "_row_1hsxt_16";
6470
6471
  const free = "_free_1hsxt_53";
6471
6472
  const pending$1 = "_pending_1hsxt_59";
6472
6473
  const discount = "_discount_1hsxt_69";
6473
- const styles$E = {
6474
+ const styles$F = {
6474
6475
  summary,
6475
6476
  row: row$7,
6476
6477
  free,
@@ -6499,11 +6500,11 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
6499
6500
  const isDeferred = (key) => deferred.includes(key);
6500
6501
  const visible = rows.filter((row2) => !hidden.includes(row2.key)).filter((row2) => row2.key !== "discount" || discount2 !== void 0);
6501
6502
  return jsx("dl", {
6502
- className: styles$E.summary,
6503
+ className: styles$F.summary,
6503
6504
  children: visible.map(({ label: label2, key }) => {
6504
6505
  if (key === "discount" && discount2) {
6505
6506
  return jsxs("div", {
6506
- className: [styles$E.row, styles$E.discount].join(" "),
6507
+ className: [styles$F.row, styles$F.discount].join(" "),
6507
6508
  children: [jsx("dt", {
6508
6509
  children: t(label2)
6509
6510
  }), jsx("dd", {
@@ -6513,11 +6514,11 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
6513
6514
  }
6514
6515
  const pending2 = key !== "total" && isDeferred(key);
6515
6516
  return jsxs("div", {
6516
- className: styles$E.row,
6517
+ className: styles$F.row,
6517
6518
  children: [jsx("dt", {
6518
6519
  children: t(label2)
6519
6520
  }), jsx("dd", {
6520
- className: pending2 ? styles$E.pending : void 0,
6521
+ className: pending2 ? styles$F.pending : void 0,
6521
6522
  children: pending2 ? t("Calculated at checkout") : renderValue(key, pricing, format, t)
6522
6523
  })]
6523
6524
  }, key);
@@ -6527,7 +6528,7 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
6527
6528
  function renderValue(key, pricing, format, t) {
6528
6529
  if (key === "shipping" && pricing.shipping.amount === 0) {
6529
6530
  return jsx("span", {
6530
- className: styles$E.free,
6531
+ className: styles$F.free,
6531
6532
  children: t("Free")
6532
6533
  });
6533
6534
  }
@@ -6550,7 +6551,7 @@ const card$4 = "_card_1vmnm_173";
6550
6551
  const cardTitle = "_cardTitle_1vmnm_181";
6551
6552
  const cardBody = "_cardBody_1vmnm_193";
6552
6553
  const summaryCard = "_summaryCard_1vmnm_165";
6553
- const styles$D = {
6554
+ const styles$E = {
6554
6555
  lines: lines$1,
6555
6556
  line: line$2,
6556
6557
  thumb: thumb$2,
@@ -6589,42 +6590,42 @@ function OrderLine({ item: item2 }) {
6589
6590
  const pct = compareAt2 ? discountPct(item2.unit_price, compareAt2) : void 0;
6590
6591
  const details2 = detailsOf(item2, t);
6591
6592
  return jsxs("li", {
6592
- className: styles$D.line,
6593
+ className: styles$E.line,
6593
6594
  children: [jsx("div", {
6594
- className: styles$D.thumb,
6595
+ className: styles$E.thumb,
6595
6596
  children: item2.image ? jsx(ShopImage, {
6596
6597
  src: item2.image,
6597
6598
  alt: "",
6598
6599
  fill: true,
6599
6600
  sizes: "48px",
6600
- className: styles$D.image
6601
+ className: styles$E.image
6601
6602
  }) : jsx("div", {
6602
- className: styles$D.placeholder,
6603
+ className: styles$E.placeholder,
6603
6604
  "aria-hidden": "true"
6604
6605
  })
6605
6606
  }), jsxs("div", {
6606
- className: styles$D.lineBody,
6607
+ className: styles$E.lineBody,
6607
6608
  children: [jsxs("div", {
6608
- className: styles$D.lineText,
6609
+ className: styles$E.lineText,
6609
6610
  children: [jsx("span", {
6610
- className: styles$D.lineTitle,
6611
+ className: styles$E.lineTitle,
6611
6612
  children: item2.title ?? item2.sku
6612
6613
  }), jsxs("span", {
6613
- className: styles$D.lineMeta,
6614
+ className: styles$E.lineMeta,
6614
6615
  children: [details2.map((detail2) => jsx("span", {
6615
- className: styles$D.detail,
6616
+ className: styles$E.detail,
6616
6617
  children: detail2
6617
6618
  }, detail2)), pct !== void 0 && jsx(SaleBadge, {
6618
6619
  pct
6619
6620
  })]
6620
6621
  })]
6621
6622
  }), jsxs("span", {
6622
- className: styles$D.linePrice,
6623
+ className: styles$E.linePrice,
6623
6624
  children: [jsx("span", {
6624
- className: styles$D.paid,
6625
+ className: styles$E.paid,
6625
6626
  children: format(item2.line_total)
6626
6627
  }), compareAt2 && jsxs("span", {
6627
- className: styles$D.was,
6628
+ className: styles$E.was,
6628
6629
  children: [jsx("span", {
6629
6630
  className: "visually-hidden",
6630
6631
  children: `Was ${format(compareAt2)}`
@@ -6640,7 +6641,7 @@ function OrderLine({ item: item2 }) {
6640
6641
  function OrderLines({ order }) {
6641
6642
  const t = useT();
6642
6643
  return jsx("ul", {
6643
- className: styles$D.lines,
6644
+ className: styles$E.lines,
6644
6645
  "aria-label": t("Items"),
6645
6646
  children: order.items.map((item2) => jsx(OrderLine, {
6646
6647
  item: item2
@@ -6650,13 +6651,13 @@ function OrderLines({ order }) {
6650
6651
  function ShippingAddressCard({ order }) {
6651
6652
  const t = useT();
6652
6653
  return jsxs("section", {
6653
- className: styles$D.card,
6654
+ className: styles$E.card,
6654
6655
  "aria-label": t("Shipping address"),
6655
6656
  children: [jsx("h2", {
6656
- className: styles$D.cardTitle,
6657
+ className: styles$E.cardTitle,
6657
6658
  children: "Shipping address"
6658
6659
  }), jsx("p", {
6659
- className: styles$D.cardBody,
6660
+ className: styles$E.cardBody,
6660
6661
  children: formatAddress(order.ship_to)
6661
6662
  })]
6662
6663
  });
@@ -6664,10 +6665,10 @@ function ShippingAddressCard({ order }) {
6664
6665
  function OrderSummaryCard({ order }) {
6665
6666
  const t = useT();
6666
6667
  return jsxs("section", {
6667
- className: [styles$D.card, styles$D.summaryCard].join(" "),
6668
+ className: [styles$E.card, styles$E.summaryCard].join(" "),
6668
6669
  "aria-label": t("Order summary"),
6669
6670
  children: [jsx("h2", {
6670
- className: styles$D.cardTitle,
6671
+ className: styles$E.cardTitle,
6671
6672
  children: "Order summary"
6672
6673
  }), jsx(OrderSummary, {
6673
6674
  pricing: toPricing(order),
@@ -6704,7 +6705,7 @@ const handleSlot = "_handleSlot_1f3nh_23";
6704
6705
  const handle = "_handle_1f3nh_23";
6705
6706
  const closeSlot$1 = "_closeSlot_1f3nh_35";
6706
6707
  const close$2 = "_close_1f3nh_35";
6707
- const styles$C = {
6708
+ const styles$D = {
6708
6709
  header: header$6,
6709
6710
  slot,
6710
6711
  handleSlot,
@@ -6732,23 +6733,23 @@ function CloseIcon$1() {
6732
6733
  }
6733
6734
  function SheetHeader({ onClose, closeLabel }) {
6734
6735
  return jsxs("div", {
6735
- className: styles$C.header,
6736
+ className: styles$D.header,
6736
6737
  children: [jsx("div", {
6737
- className: styles$C.slot,
6738
+ className: styles$D.slot,
6738
6739
  "aria-hidden": "true"
6739
6740
  }), jsx("div", {
6740
- className: styles$C.handleSlot,
6741
+ className: styles$D.handleSlot,
6741
6742
  "aria-hidden": "true",
6742
6743
  children: jsx("div", {
6743
- className: styles$C.handle
6744
+ className: styles$D.handle
6744
6745
  })
6745
6746
  }), jsx("button", {
6746
6747
  type: "button",
6747
- className: styles$C.closeSlot,
6748
+ className: styles$D.closeSlot,
6748
6749
  onClick: onClose,
6749
6750
  "aria-label": closeLabel,
6750
6751
  children: jsx("span", {
6751
- className: styles$C.close,
6752
+ className: styles$D.close,
6752
6753
  children: jsx(CloseIcon$1, {})
6753
6754
  })
6754
6755
  })]
@@ -6804,7 +6805,7 @@ const radio = "_radio_7on4q_88";
6804
6805
  const label$1 = "_label_7on4q_118";
6805
6806
  const footer$1 = "_footer_7on4q_127";
6806
6807
  const error$1 = "_error_7on4q_135";
6807
- const styles$B = {
6808
+ const styles$C = {
6808
6809
  scrim: scrim$5,
6809
6810
  sheet: sheet$3,
6810
6811
  body: body$6,
@@ -6821,12 +6822,12 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
6821
6822
  const [choice, setChoice] = useState(selected2);
6822
6823
  useModalDialog(true, onClose, sheetRef);
6823
6824
  return jsx("div", {
6824
- className: styles$B.scrim,
6825
+ className: styles$C.scrim,
6825
6826
  onClick: onClose,
6826
6827
  children: jsxs(ShopSurface, {
6827
6828
  tone: "light",
6828
6829
  ref: sheetRef,
6829
- className: styles$B.sheet,
6830
+ className: styles$C.sheet,
6830
6831
  role: "dialog",
6831
6832
  "aria-modal": "true",
6832
6833
  "aria-labelledby": "reason-sheet-title",
@@ -6835,23 +6836,23 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
6835
6836
  onClose,
6836
6837
  closeLabel
6837
6838
  }), jsxs("div", {
6838
- className: styles$B.body,
6839
+ className: styles$C.body,
6839
6840
  children: [jsx("h2", {
6840
6841
  id: "reason-sheet-title",
6841
- className: styles$B.title,
6842
+ className: styles$C.title,
6842
6843
  children: title2
6843
6844
  }), jsx("div", {
6844
- className: styles$B.options,
6845
+ className: styles$C.options,
6845
6846
  role: "radiogroup",
6846
6847
  "aria-labelledby": "reason-sheet-title",
6847
6848
  children: options2.map((o) => jsxs("button", {
6848
6849
  type: "button",
6849
6850
  role: "radio",
6850
6851
  "aria-checked": o.value === choice,
6851
- className: styles$B.option,
6852
+ className: styles$C.option,
6852
6853
  onClick: () => setChoice(o.value),
6853
6854
  children: [jsx("span", {
6854
- className: styles$B.radio,
6855
+ className: styles$C.radio,
6855
6856
  "aria-hidden": "true",
6856
6857
  children: o.value === choice && jsxs("svg", {
6857
6858
  width: "20",
@@ -6872,15 +6873,15 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
6872
6873
  })]
6873
6874
  })
6874
6875
  }), jsx("span", {
6875
- className: styles$B.label,
6876
+ className: styles$C.label,
6876
6877
  children: o.label
6877
6878
  })]
6878
6879
  }, o.value))
6879
6880
  })]
6880
6881
  }), jsxs("div", {
6881
- className: styles$B.footer,
6882
+ className: styles$C.footer,
6882
6883
  children: [error2 && jsx("p", {
6883
- className: styles$B.error,
6884
+ className: styles$C.error,
6884
6885
  role: "alert",
6885
6886
  children: error2
6886
6887
  }), jsx(Button, {
@@ -6916,7 +6917,7 @@ const paid$2 = "_paid_1c7ro_176";
6916
6917
  const was$3 = "_was_1c7ro_184";
6917
6918
  const reason = "_reason_1c7ro_199";
6918
6919
  const reasonSet = "_reasonSet_1c7ro_217";
6919
- const styles$A = {
6920
+ const styles$B = {
6920
6921
  page: page$6,
6921
6922
  titles: titles$2,
6922
6923
  title: title$k,
@@ -7035,72 +7036,72 @@ function ReturnItemsView({ order, onSubmit, busy = false }) {
7035
7036
  if (items2.length > 0) onSubmit(items2);
7036
7037
  }
7037
7038
  return jsxs("div", {
7038
- className: styles$A.page,
7039
+ className: styles$B.page,
7039
7040
  children: [jsxs("div", {
7040
- className: styles$A.titles,
7041
+ className: styles$B.titles,
7041
7042
  children: [jsx("h1", {
7042
- className: styles$A.title,
7043
+ className: styles$B.title,
7043
7044
  children: "What do you want to return?"
7044
7045
  }), jsx("p", {
7045
- className: styles$A.subtitle,
7046
+ className: styles$B.subtitle,
7046
7047
  children: "Select items you want to return"
7047
7048
  })]
7048
7049
  }), jsx("div", {
7049
- className: styles$A.list,
7050
+ className: styles$B.list,
7050
7051
  children: returnable.map((item2) => {
7051
7052
  const picked = item2.line_ref in chosen;
7052
7053
  const reason2 = chosen[item2.line_ref];
7053
7054
  return jsxs("div", {
7054
- className: styles$A.card,
7055
+ className: styles$B.card,
7055
7056
  children: [jsx("button", {
7056
7057
  type: "button",
7057
7058
  role: "checkbox",
7058
7059
  "aria-checked": picked,
7059
7060
  "aria-label": item2.title ?? item2.sku,
7060
- className: styles$A.checkSlot,
7061
+ className: styles$B.checkSlot,
7061
7062
  onClick: () => toggle2(item2.line_ref),
7062
7063
  children: jsx("span", {
7063
- className: styles$A.check,
7064
+ className: styles$B.check,
7064
7065
  children: picked ? jsx(Tick, {}) : null
7065
7066
  })
7066
7067
  }), jsxs("div", {
7067
- className: styles$A.row,
7068
+ className: styles$B.row,
7068
7069
  children: [jsxs("div", {
7069
- className: styles$A.line,
7070
+ className: styles$B.line,
7070
7071
  children: [jsx("div", {
7071
- className: styles$A.thumb,
7072
+ className: styles$B.thumb,
7072
7073
  children: item2.image ? jsx(ShopImage, {
7073
7074
  src: item2.image,
7074
7075
  alt: "",
7075
7076
  fill: true,
7076
7077
  sizes: "48px",
7077
- className: styles$A.img
7078
+ className: styles$B.img
7078
7079
  }) : jsx("div", {
7079
- className: styles$A.placeholder,
7080
+ className: styles$B.placeholder,
7080
7081
  "aria-hidden": "true"
7081
7082
  })
7082
7083
  }), jsxs("div", {
7083
- className: styles$A.meta,
7084
+ className: styles$B.meta,
7084
7085
  children: [jsx("p", {
7085
- className: styles$A.name,
7086
+ className: styles$B.name,
7086
7087
  children: item2.title ?? item2.sku
7087
7088
  }), item2.attributes?.size && jsx("p", {
7088
- className: styles$A.attrs,
7089
+ className: styles$B.attrs,
7089
7090
  children: `Size: ${item2.attributes.size}`
7090
7091
  })]
7091
7092
  }), jsxs("div", {
7092
- className: styles$A.price,
7093
+ className: styles$B.price,
7093
7094
  children: [jsx("span", {
7094
- className: styles$A.paid,
7095
+ className: styles$B.paid,
7095
7096
  children: format(item2.unit_price)
7096
7097
  }), item2.compare_at_unit_price && jsx("span", {
7097
- className: styles$A.was,
7098
+ className: styles$B.was,
7098
7099
  children: format(item2.compare_at_unit_price)
7099
7100
  })]
7100
7101
  })]
7101
7102
  }), jsxs("button", {
7102
7103
  type: "button",
7103
- className: `${styles$A.reason} ${reason2 ? styles$A.reasonSet : ""}`,
7104
+ className: `${styles$B.reason} ${reason2 ? styles$B.reasonSet : ""}`,
7104
7105
  onClick: () => setReasonFor(item2.line_ref),
7105
7106
  "aria-haspopup": "dialog",
7106
7107
  children: [jsx("span", {
@@ -7150,7 +7151,7 @@ const body$5 = "_body_1r0ea_95";
7150
7151
  const body2 = "_body2_1r0ea_103";
7151
7152
  const download = "_download_1r0ea_121";
7152
7153
  const note$1 = "_note_1r0ea_143";
7153
- const styles$z = {
7154
+ const styles$A = {
7154
7155
  page: page$5,
7155
7156
  intro: intro$1,
7156
7157
  title: title$j,
@@ -7168,35 +7169,35 @@ const styles$z = {
7168
7169
  };
7169
7170
  function ReturnLabelView({ ret, onDone }) {
7170
7171
  return jsxs("div", {
7171
- className: styles$z.page,
7172
+ className: styles$A.page,
7172
7173
  children: [jsxs("div", {
7173
- className: styles$z.intro,
7174
+ className: styles$A.intro,
7174
7175
  children: [jsx("h1", {
7175
- className: styles$z.title,
7176
+ className: styles$A.title,
7176
7177
  children: "We’ve generated your return label"
7177
7178
  }), jsx("p", {
7178
- className: styles$z.subtitle,
7179
+ className: styles$A.subtitle,
7179
7180
  children: "Follow the instructions below to complete your return"
7180
7181
  })]
7181
7182
  }), jsxs("div", {
7182
- className: styles$z.card,
7183
+ className: styles$A.card,
7183
7184
  children: [jsxs("section", {
7184
- className: styles$z.step,
7185
+ className: styles$A.step,
7185
7186
  children: [jsxs("div", {
7186
- className: styles$z.stepHead,
7187
+ className: styles$A.stepHead,
7187
7188
  children: [jsx("span", {
7188
- className: styles$z.number,
7189
+ className: styles$A.number,
7189
7190
  "aria-hidden": "true",
7190
7191
  children: "1"
7191
7192
  }), jsx("h2", {
7192
- className: styles$z.stepTitle,
7193
+ className: styles$A.stepTitle,
7193
7194
  children: "Download your return label"
7194
7195
  })]
7195
7196
  }), jsx("p", {
7196
- className: styles$z.body,
7197
+ className: styles$A.body,
7197
7198
  children: "Tap the button below to download your pre-paid return label"
7198
7199
  }), ret.label_url && jsxs("a", {
7199
- className: styles$z.download,
7200
+ className: styles$A.download,
7200
7201
  href: ret.label_url,
7201
7202
  target: "_blank",
7202
7203
  rel: "noopener noreferrer",
@@ -7205,23 +7206,23 @@ function ReturnLabelView({ ret, onDone }) {
7205
7206
  children: " (opens in a new tab)"
7206
7207
  })]
7207
7208
  }), ret.label_email && jsxs("p", {
7208
- className: styles$z.note,
7209
+ className: styles$A.note,
7209
7210
  children: ["You’ll receive a shipping label PDF to your email as well.", jsx("br", {}), ret.label_email]
7210
7211
  })]
7211
7212
  }), jsxs("section", {
7212
- className: styles$z.step2,
7213
+ className: styles$A.step2,
7213
7214
  children: [jsxs("div", {
7214
- className: styles$z.stepHead,
7215
+ className: styles$A.stepHead,
7215
7216
  children: [jsx("span", {
7216
- className: styles$z.number,
7217
+ className: styles$A.number,
7217
7218
  "aria-hidden": "true",
7218
7219
  children: "2"
7219
7220
  }), jsx("h2", {
7220
- className: styles$z.stepTitle,
7221
+ className: styles$A.stepTitle,
7221
7222
  children: "Pack and ship the item"
7222
7223
  })]
7223
7224
  }), jsxs("p", {
7224
- className: styles$z.body2,
7225
+ className: styles$A.body2,
7225
7226
  children: ["Repackage the item securely and attach the return label to the outside of the package.", jsx("br", {}), "Drop it off at your local carrier or post office."]
7226
7227
  })]
7227
7228
  })]
@@ -7248,7 +7249,7 @@ const attrs = "_attrs_o44fl_100";
7248
7249
  const price$2 = "_price_o44fl_115";
7249
7250
  const paid$1 = "_paid_o44fl_124";
7250
7251
  const was$2 = "_was_o44fl_132";
7251
- const styles$y = {
7252
+ const styles$z = {
7252
7253
  page: page$4,
7253
7254
  titles: titles$1,
7254
7255
  title: title$i,
@@ -7281,42 +7282,42 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
7281
7282
  tone: "light",
7282
7283
  fill: true,
7283
7284
  children: jsxs("div", {
7284
- className: styles$y.page,
7285
+ className: styles$z.page,
7285
7286
  children: [jsxs("div", {
7286
- className: styles$y.titles,
7287
+ className: styles$z.titles,
7287
7288
  children: [jsx("h1", {
7288
- className: styles$y.title,
7289
+ className: styles$z.title,
7289
7290
  children: "Return in progress"
7290
7291
  }), jsx("p", {
7291
- className: styles$y.subtitle,
7292
+ className: styles$z.subtitle,
7292
7293
  children: `Return #${ret.return_ref} · Reported ${reported}`
7293
7294
  })]
7294
7295
  }), jsx(OrderTimeline, {
7295
7296
  progress: ret.progress,
7296
7297
  locale
7297
7298
  }), jsx("ul", {
7298
- className: styles$y.items,
7299
+ className: styles$z.items,
7299
7300
  children: ret.items.map((item2) => jsxs("li", {
7300
- className: styles$y.item,
7301
+ className: styles$z.item,
7301
7302
  children: [jsx("div", {
7302
- className: styles$y.thumb,
7303
+ className: styles$z.thumb,
7303
7304
  children: item2.image ? jsx(ShopImage, {
7304
7305
  src: item2.image,
7305
7306
  alt: "",
7306
7307
  fill: true,
7307
7308
  sizes: "48px",
7308
- className: styles$y.img
7309
+ className: styles$z.img
7309
7310
  }) : jsx("div", {
7310
- className: styles$y.placeholder,
7311
+ className: styles$z.placeholder,
7311
7312
  "aria-hidden": "true"
7312
7313
  })
7313
7314
  }), jsxs("div", {
7314
- className: styles$y.meta,
7315
+ className: styles$z.meta,
7315
7316
  children: [jsx("p", {
7316
- className: styles$y.name,
7317
+ className: styles$z.name,
7317
7318
  children: item2.title ?? item2.sku
7318
7319
  }), (item2.attributes?.size || pctOff(item2)) && jsxs("p", {
7319
- className: styles$y.attrs,
7320
+ className: styles$z.attrs,
7320
7321
  children: [item2.attributes?.size && jsx("span", {
7321
7322
  children: `Size: ${item2.attributes.size}`
7322
7323
  }), pctOff(item2) !== void 0 && jsx(SaleBadge, {
@@ -7324,12 +7325,12 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
7324
7325
  })]
7325
7326
  })]
7326
7327
  }), jsxs("div", {
7327
- className: styles$y.price,
7328
+ className: styles$z.price,
7328
7329
  children: [jsx("span", {
7329
- className: styles$y.paid,
7330
+ className: styles$z.paid,
7330
7331
  children: format(item2.unit_price)
7331
7332
  }), item2.compare_at_unit_price && jsx("span", {
7332
- className: styles$y.was,
7333
+ className: styles$z.was,
7333
7334
  children: format(item2.compare_at_unit_price)
7334
7335
  })]
7335
7336
  })]
@@ -7456,7 +7457,7 @@ const cancel = "_cancel_1v9my_180";
7456
7457
  const cancelledHead = "_cancelledHead_1v9my_204";
7457
7458
  const cancelledTitle = "_cancelledTitle_1v9my_210";
7458
7459
  const cancelledMeta = "_cancelledMeta_1v9my_219";
7459
- const styles$x = {
7460
+ const styles$y = {
7460
7461
  page: page$3,
7461
7462
  widget,
7462
7463
  titleRow,
@@ -7547,7 +7548,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onC
7547
7548
  }, [load]);
7548
7549
  if (state === "loading") {
7549
7550
  return jsxs("div", {
7550
- className: styles$x.page,
7551
+ className: styles$y.page,
7551
7552
  children: [jsx(Skeleton, {
7552
7553
  height: 206,
7553
7554
  radius: 8
@@ -7594,14 +7595,14 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onC
7594
7595
  }
7595
7596
  if (order.status === "cancelled") {
7596
7597
  return jsxs("div", {
7597
- className: styles$x.page,
7598
+ className: styles$y.page,
7598
7599
  children: [jsxs("div", {
7599
- className: styles$x.cancelledHead,
7600
+ className: styles$y.cancelledHead,
7600
7601
  children: [jsx("h1", {
7601
- className: styles$x.cancelledTitle,
7602
+ className: styles$y.cancelledTitle,
7602
7603
  children: "Order cancelled"
7603
7604
  }), jsx("p", {
7604
- className: styles$x.cancelledMeta,
7605
+ className: styles$y.cancelledMeta,
7605
7606
  children: `Order #${shortRef$1(order.order_ref)} · Placed ${placedOn(order.placed_at, locale)}`
7606
7607
  })]
7607
7608
  }), onReorder && jsx(Button, {
@@ -7625,17 +7626,17 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onC
7625
7626
  });
7626
7627
  }
7627
7628
  return jsxs("div", {
7628
- className: styles$x.page,
7629
+ className: styles$y.page,
7629
7630
  children: [jsxs("section", {
7630
- className: styles$x.widget,
7631
+ className: styles$y.widget,
7631
7632
  "aria-label": t("Delivery status"),
7632
7633
  children: [jsxs("div", {
7633
- className: styles$x.titleRow,
7634
+ className: styles$y.titleRow,
7634
7635
  children: [jsx("h1", {
7635
- className: styles$x.headline,
7636
+ className: styles$y.headline,
7636
7637
  children: `Order #${shortRef$1(order.order_ref)}`
7637
7638
  }), order.tracking?.url && inTransit && jsxs("a", {
7638
- className: styles$x.track,
7639
+ className: styles$y.track,
7639
7640
  href: order.tracking.url,
7640
7641
  target: "_blank",
7641
7642
  rel: "noopener noreferrer",
@@ -7652,7 +7653,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onC
7652
7653
  locale
7653
7654
  })]
7654
7655
  }), jsx("hr", {
7655
- className: styles$x.rule
7656
+ className: styles$y.rule
7656
7657
  }), jsx(OrderLines, {
7657
7658
  order
7658
7659
  }), jsx(ShippingAddressCard, {
@@ -7661,7 +7662,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onC
7661
7662
  order
7662
7663
  }), order.can_cancel && jsx("button", {
7663
7664
  type: "button",
7664
- className: styles$x.cancel,
7665
+ className: styles$y.cancel,
7665
7666
  onClick: () => setCancelOpen(true),
7666
7667
  children: "Cancel order"
7667
7668
  }), jsx(NeedHelp, {
@@ -7709,14 +7710,14 @@ function NeedHelp({ order, onStartReturn, onContactSupport }) {
7709
7710
  const emit = useShopEvent();
7710
7711
  if (order.status !== "delivered") return null;
7711
7712
  return jsxs("section", {
7712
- className: styles$x.help,
7713
+ className: styles$y.help,
7713
7714
  "aria-labelledby": "order-help",
7714
7715
  children: [jsx("h2", {
7715
- className: styles$x.helpTitle,
7716
+ className: styles$y.helpTitle,
7716
7717
  id: "order-help",
7717
7718
  children: "Need help?"
7718
7719
  }), jsxs("div", {
7719
- className: styles$x.helpRows,
7720
+ className: styles$y.helpRows,
7720
7721
  children: [order.can_return && onStartReturn && jsx(HelpRow, {
7721
7722
  label: "Start a return",
7722
7723
  onClick: onStartReturn
@@ -7736,7 +7737,7 @@ function NeedHelp({ order, onStartReturn, onContactSupport }) {
7736
7737
  function HelpRow({ label: label2, onClick }) {
7737
7738
  return jsxs("button", {
7738
7739
  type: "button",
7739
- className: styles$x.helpRow,
7740
+ className: styles$y.helpRow,
7740
7741
  onClick,
7741
7742
  children: [jsx("span", {
7742
7743
  children: label2
@@ -7753,7 +7754,7 @@ const headline = "_headline_2uqhz_47";
7753
7754
  const subtitle$4 = "_subtitle_2uqhz_65";
7754
7755
  const rule = "_rule_2uqhz_90";
7755
7756
  const done = "_done_2uqhz_107";
7756
- const styles$w = {
7757
+ const styles$x = {
7757
7758
  page: page$2,
7758
7759
  confirmed,
7759
7760
  title: title$h,
@@ -7806,7 +7807,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
7806
7807
  }, [load]);
7807
7808
  if (state === "loading") {
7808
7809
  return jsxs("div", {
7809
- className: styles$w.page,
7810
+ className: styles$x.page,
7810
7811
  children: [jsx(Skeleton, {
7811
7812
  height: 140,
7812
7813
  radius: 8
@@ -7829,17 +7830,17 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
7829
7830
  });
7830
7831
  }
7831
7832
  return jsxs("div", {
7832
- className: styles$w.page,
7833
+ className: styles$x.page,
7833
7834
  children: [jsxs("section", {
7834
- className: styles$w.confirmed,
7835
+ className: styles$x.confirmed,
7835
7836
  "aria-label": "Order confirmation",
7836
7837
  children: [jsxs("div", {
7837
- className: styles$w.title,
7838
+ className: styles$x.title,
7838
7839
  children: [jsx("h1", {
7839
- className: styles$w.headline,
7840
+ className: styles$x.headline,
7840
7841
  children: "Your order is confirmed"
7841
7842
  }), order.email && jsx("p", {
7842
- className: styles$w.subtitle,
7843
+ className: styles$x.subtitle,
7843
7844
  children: `We’ve sent a confirmation to ${order.email}`
7844
7845
  })]
7845
7846
  }), jsx(OrderTimeline, {
@@ -7850,7 +7851,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
7850
7851
  locale
7851
7852
  })]
7852
7853
  }), jsx("hr", {
7853
- className: styles$w.rule
7854
+ className: styles$x.rule
7854
7855
  }), jsx(OrderLines, {
7855
7856
  order
7856
7857
  }), jsx(ShippingAddressCard, {
@@ -7860,7 +7861,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
7860
7861
  }), onDone && jsx(Button, {
7861
7862
  variant: "secondary",
7862
7863
  fullWidth: true,
7863
- className: styles$w.done,
7864
+ className: styles$x.done,
7864
7865
  onClick: onDone,
7865
7866
  children: "Done"
7866
7867
  })]
@@ -7870,7 +7871,7 @@ const badge$2 = "_badge_ghd02_6";
7870
7871
  const progress = "_progress_ghd02_22";
7871
7872
  const delivered = "_delivered_ghd02_27";
7872
7873
  const cancelled = "_cancelled_ghd02_32";
7873
- const styles$v = {
7874
+ const styles$w = {
7874
7875
  badge: badge$2,
7875
7876
  progress,
7876
7877
  delivered,
@@ -7895,7 +7896,7 @@ function OrderStatusBadge({ status }) {
7895
7896
  const label2 = LABEL[status] ?? status.replace(/_/g, " ");
7896
7897
  const tone = TONE[status] ?? "progress";
7897
7898
  return jsx("span", {
7898
- className: [styles$v.badge, styles$v[tone]].join(" "),
7899
+ className: [styles$w.badge, styles$w[tone]].join(" "),
7899
7900
  children: t(label2)
7900
7901
  });
7901
7902
  }
@@ -7915,7 +7916,7 @@ const image$8 = "_image_6xodo_143";
7915
7916
  const placeholder$5 = "_placeholder_6xodo_147";
7916
7917
  const more = "_more_6xodo_154";
7917
7918
  const chevron$2 = "_chevron_6xodo_167";
7918
- const styles$u = {
7919
+ const styles$v = {
7919
7920
  page: page$1,
7920
7921
  empty,
7921
7922
  cta: cta$1,
@@ -7982,7 +7983,7 @@ function OrderListContent({ onOpenOrder, onStartShopping, locale: localeProp })
7982
7983
  }, [load]);
7983
7984
  if (state === "loading") {
7984
7985
  return jsxs("div", {
7985
- className: styles$u.page,
7986
+ className: styles$v.page,
7986
7987
  children: [jsx(Skeleton, {
7987
7988
  height: 148,
7988
7989
  radius: 12
@@ -8003,14 +8004,14 @@ function OrderListContent({ onOpenOrder, onStartShopping, locale: localeProp })
8003
8004
  }
8004
8005
  if (orders2.length === 0) {
8005
8006
  return jsx("div", {
8006
- className: styles$u.empty,
8007
+ className: styles$v.empty,
8007
8008
  children: jsx(EmptyState, {
8008
8009
  title: t("Nothing here yet"),
8009
8010
  body: "Your orders will show up here once you've shopped.",
8010
8011
  ...onStartShopping ? {
8011
8012
  action: jsx("button", {
8012
8013
  type: "button",
8013
- className: styles$u.cta,
8014
+ className: styles$v.cta,
8014
8015
  onClick: onStartShopping,
8015
8016
  children: "Continue shopping"
8016
8017
  })
@@ -8019,7 +8020,7 @@ function OrderListContent({ onOpenOrder, onStartShopping, locale: localeProp })
8019
8020
  });
8020
8021
  }
8021
8022
  return jsx("ul", {
8022
- className: styles$u.page,
8023
+ className: styles$v.page,
8023
8024
  children: orders2.map((order) => jsx("li", {
8024
8025
  children: jsx(OrderCard, {
8025
8026
  order,
@@ -8034,36 +8035,36 @@ function OrderListContent({ onOpenOrder, onStartShopping, locale: localeProp })
8034
8035
  function OrderCard({ order, locale, onOpen }) {
8035
8036
  const body3 = jsxs(Fragment, {
8036
8037
  children: [jsxs("div", {
8037
- className: styles$u.head,
8038
+ className: styles$v.head,
8038
8039
  children: [jsxs("div", {
8039
- className: styles$u.heading,
8040
+ className: styles$v.heading,
8040
8041
  children: [jsx("span", {
8041
- className: styles$u.title,
8042
+ className: styles$v.title,
8042
8043
  children: `Order #${shortRef(order.order_ref)}`
8043
8044
  }), jsx("span", {
8044
- className: styles$u.date,
8045
+ className: styles$v.date,
8045
8046
  children: formatPlaced(order.placed_at, locale)
8046
8047
  })]
8047
8048
  }), jsx(OrderStatusBadge, {
8048
8049
  status: order.status
8049
8050
  })]
8050
8051
  }), jsxs("div", {
8051
- className: styles$u.bottom,
8052
+ className: styles$v.bottom,
8052
8053
  children: [jsx(Thumbnails, {
8053
8054
  order
8054
8055
  }), onOpen && jsx("span", {
8055
- className: styles$u.chevron,
8056
+ className: styles$v.chevron,
8056
8057
  children: jsx(Chevron, {})
8057
8058
  })]
8058
8059
  })]
8059
8060
  });
8060
8061
  if (!onOpen) return jsx("div", {
8061
- className: styles$u.card,
8062
+ className: styles$v.card,
8062
8063
  children: body3
8063
8064
  });
8064
8065
  return jsx("button", {
8065
8066
  type: "button",
8066
- className: [styles$u.card, styles$u.tappable].join(" "),
8067
+ className: [styles$v.card, styles$v.tappable].join(" "),
8067
8068
  onClick: onOpen,
8068
8069
  "aria-label": `Order ${shortRef(order.order_ref)}, ${order.headline}`,
8069
8070
  children: body3
@@ -8075,27 +8076,27 @@ function Thumbnails({ order }) {
8075
8076
  const overflow = images.length >= TILES && hidden > 1 ? hidden : 0;
8076
8077
  if (images.length === 0) {
8077
8078
  return jsx("div", {
8078
- className: styles$u.strip,
8079
+ className: styles$v.strip,
8079
8080
  children: jsx("div", {
8080
- className: [styles$u.tile, styles$u.placeholder].join(" "),
8081
+ className: [styles$v.tile, styles$v.placeholder].join(" "),
8081
8082
  "aria-hidden": "true"
8082
8083
  })
8083
8084
  });
8084
8085
  }
8085
8086
  return jsx("div", {
8086
- className: styles$u.strip,
8087
+ className: styles$v.strip,
8087
8088
  children: images.map((src, i) => {
8088
8089
  const last = i === images.length - 1;
8089
8090
  return jsxs("div", {
8090
- className: styles$u.tile,
8091
+ className: styles$v.tile,
8091
8092
  children: [jsx(ShopImage, {
8092
8093
  src,
8093
8094
  alt: "",
8094
8095
  fill: true,
8095
8096
  sizes: "56px",
8096
- className: styles$u.image
8097
+ className: styles$v.image
8097
8098
  }), overflow > 0 && last && jsxs("span", {
8098
- className: styles$u.more,
8099
+ className: styles$v.more,
8099
8100
  children: [jsxs("span", {
8100
8101
  "aria-hidden": "true",
8101
8102
  children: ["+", overflow]
@@ -8121,21 +8122,45 @@ function formatPlaced(iso, locale) {
8121
8122
  year: "numeric"
8122
8123
  })}`;
8123
8124
  }
8124
- const tile$1 = "_tile_1a177_7";
8125
- const media$2 = "_media_1a177_15";
8126
- const image$7 = "_image_1a177_25";
8127
- const placeholder$4 = "_placeholder_1a177_29";
8128
- const topBadge = "_topBadge_1a177_37";
8129
- const saleBadge$2 = "_saleBadge_1a177_78";
8130
- const oos$3 = "_oos_1a177_86";
8131
- const bottom = "_bottom_1a177_113";
8132
- const titlePrice$1 = "_titlePrice_1a177_100";
8133
- const title$f = "_title_1a177_5";
8134
- const swatches = "_swatches_1a177_181";
8135
- const swatch = "_swatch_1a177_181";
8136
- const swatchActive = "_swatchActive_1a177_198";
8137
- const swatchDot = "_swatchDot_1a177_202";
8138
- const large = "_large_1a177_213";
8125
+ const swatches = "_swatches_mdi63_1";
8126
+ const swatch = "_swatch_mdi63_1";
8127
+ const swatchActive = "_swatchActive_mdi63_18";
8128
+ const swatchDot = "_swatchDot_mdi63_22";
8129
+ const styles$u = {
8130
+ swatches,
8131
+ swatch,
8132
+ swatchActive,
8133
+ swatchDot
8134
+ };
8135
+ function ColourSwatches({ variants, className }) {
8136
+ const colours = colourOptions(variants);
8137
+ if (colours.length === 0) return null;
8138
+ return jsx("div", {
8139
+ className: [styles$u.swatches, className ?? ""].join(" ").trim(),
8140
+ "aria-hidden": "true",
8141
+ children: colours.map((c, i) => jsx("span", {
8142
+ className: [styles$u.swatch, i === 0 ? styles$u.swatchActive : ""].join(" "),
8143
+ children: jsx("span", {
8144
+ className: styles$u.swatchDot,
8145
+ style: {
8146
+ background: swatchColour(c.value)
8147
+ }
8148
+ })
8149
+ }, c.value))
8150
+ });
8151
+ }
8152
+ const tile$1 = "_tile_yg69t_7";
8153
+ const media$2 = "_media_yg69t_15";
8154
+ const image$7 = "_image_yg69t_25";
8155
+ const placeholder$4 = "_placeholder_yg69t_29";
8156
+ const topBadge = "_topBadge_yg69t_37";
8157
+ const saleBadge$2 = "_saleBadge_yg69t_78";
8158
+ const oos$3 = "_oos_yg69t_86";
8159
+ const bottom = "_bottom_yg69t_113";
8160
+ const titlePrice$1 = "_titlePrice_yg69t_100";
8161
+ const title$f = "_title_yg69t_5";
8162
+ const large = "_large_yg69t_185";
8163
+ const swatchSlot = "_swatchSlot_yg69t_223";
8139
8164
  const styles$t = {
8140
8165
  tile: tile$1,
8141
8166
  media: media$2,
@@ -8147,18 +8172,14 @@ const styles$t = {
8147
8172
  bottom,
8148
8173
  titlePrice: titlePrice$1,
8149
8174
  title: title$f,
8150
- swatches,
8151
- swatch,
8152
- swatchActive,
8153
- swatchDot,
8154
- large
8175
+ large,
8176
+ swatchSlot
8155
8177
  };
8156
8178
  function ProductTile({ product, priority, size = "default" }) {
8157
8179
  const image2 = product.media[0];
8158
8180
  const anyInStock = product.variants.length === 0 ? true : product.variants.some((v) => v.in_stock);
8159
8181
  const topBadge2 = product.badges?.[0];
8160
8182
  const pct = discountPct(product.price, product.compare_at);
8161
- const swatches2 = colourOptions(product.variants);
8162
8183
  return jsxs(ShopLink, {
8163
8184
  to: `/product/${encodeURIComponent(product.sku)}`,
8164
8185
  className: [styles$t.tile, size === "large" ? styles$t.large : ""].join(" "),
@@ -8200,36 +8221,28 @@ function ProductTile({ product, priority, size = "default" }) {
8200
8221
  variant: "strikethrough",
8201
8222
  align: "end"
8202
8223
  })]
8203
- }), swatches2.length > 0 && jsx("div", {
8204
- className: styles$t.swatches,
8205
- "aria-hidden": "true",
8206
- children: swatches2.map((c, i) => jsx("span", {
8207
- className: [styles$t.swatch, i === 0 ? styles$t.swatchActive : ""].join(" "),
8208
- children: jsx("span", {
8209
- className: styles$t.swatchDot,
8210
- style: {
8211
- background: swatchColour(c.value)
8212
- }
8213
- })
8214
- }, c.value))
8224
+ }), jsx(ColourSwatches, {
8225
+ variants: product.variants,
8226
+ className: styles$t.swatchSlot
8215
8227
  })]
8216
8228
  })]
8217
8229
  });
8218
8230
  }
8219
- const section$3 = "_section_1n5an_5";
8220
- const title$e = "_title_1n5an_17";
8221
- const link = "_link_1n5an_26";
8222
- const track$4 = "_track_1n5an_38";
8223
- const frame = "_frame_1n5an_58";
8224
- const image$6 = "_image_1n5an_69";
8225
- const placeholder$3 = "_placeholder_1n5an_73";
8226
- const saleBadge$1 = "_saleBadge_1n5an_85";
8227
- const oos$2 = "_oos_1n5an_93";
8228
- const caption = "_caption_1n5an_109";
8229
- const name = "_name_1n5an_122";
8230
- const price$1 = "_price_1n5an_135";
8231
- const paid = "_paid_1n5an_144";
8232
- const was$1 = "_was_1n5an_150";
8231
+ const section$3 = "_section_v48ok_9";
8232
+ const title$e = "_title_v48ok_21";
8233
+ const link = "_link_v48ok_30";
8234
+ const track$4 = "_track_v48ok_42";
8235
+ const frame = "_frame_v48ok_62";
8236
+ const image$6 = "_image_v48ok_73";
8237
+ const placeholder$3 = "_placeholder_v48ok_77";
8238
+ const saleBadge$1 = "_saleBadge_v48ok_89";
8239
+ const oos$2 = "_oos_v48ok_97";
8240
+ const caption = "_caption_v48ok_113";
8241
+ const swatchRow = "_swatchRow_v48ok_132";
8242
+ const name = "_name_v48ok_142";
8243
+ const price$1 = "_price_v48ok_155";
8244
+ const paid = "_paid_v48ok_164";
8245
+ const was$1 = "_was_v48ok_170";
8233
8246
  const styles$s = {
8234
8247
  section: section$3,
8235
8248
  title: title$e,
@@ -8241,6 +8254,7 @@ const styles$s = {
8241
8254
  saleBadge: saleBadge$1,
8242
8255
  oos: oos$2,
8243
8256
  caption,
8257
+ swatchRow,
8244
8258
  name,
8245
8259
  price: price$1,
8246
8260
  paid,
@@ -8308,6 +8322,9 @@ function ProductGallery({ title: title2, product }) {
8308
8322
  children: format(product.compare_at)
8309
8323
  })]
8310
8324
  })]
8325
+ }), jsx(ColourSwatches, {
8326
+ variants: product.variants,
8327
+ className: styles$s.swatchRow
8311
8328
  })]
8312
8329
  })]
8313
8330
  })]
@@ -10189,14 +10206,14 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [] })
10189
10206
  })]
10190
10207
  });
10191
10208
  }
10192
- const hero$1 = "_hero_1glho_10";
10193
- const image$2 = "_image_1glho_42";
10194
- const scrim$1 = "_scrim_1glho_70";
10195
- const fade = "_fade_1glho_94";
10196
- const text$2 = "_text_1glho_108";
10197
- const title$5 = "_title_1glho_146";
10198
- const subtitle$2 = "_subtitle_1glho_157";
10199
- const noImage = "_noImage_1glho_172";
10209
+ const hero$1 = "_hero_wguje_10";
10210
+ const image$2 = "_image_wguje_42";
10211
+ const scrim$1 = "_scrim_wguje_70";
10212
+ const fade = "_fade_wguje_94";
10213
+ const text$2 = "_text_wguje_108";
10214
+ const title$5 = "_title_wguje_155";
10215
+ const subtitle$2 = "_subtitle_wguje_166";
10216
+ const noImage = "_noImage_wguje_181";
10200
10217
  const styles$9 = {
10201
10218
  hero: hero$1,
10202
10219
  image: image$2,
@@ -10256,14 +10273,14 @@ function LifestyleText({ text: text2, align = "center" }) {
10256
10273
  children: text2
10257
10274
  });
10258
10275
  }
10259
- const wrap = "_wrap_9mquf_1";
10260
- const box = "_box_9mquf_5";
10261
- const track$1 = "_track_9mquf_15";
10262
- const slide = "_slide_9mquf_31";
10263
- const image$1 = "_image_9mquf_38";
10264
- const dots$1 = "_dots_9mquf_43";
10265
- const dot$1 = "_dot_9mquf_43";
10266
- const dotActive$1 = "_dotActive_9mquf_63";
10276
+ const wrap = "_wrap_79nr3_10";
10277
+ const box = "_box_79nr3_14";
10278
+ const track$1 = "_track_79nr3_23";
10279
+ const slide = "_slide_79nr3_39";
10280
+ const image$1 = "_image_79nr3_46";
10281
+ const dots$1 = "_dots_79nr3_51";
10282
+ const dot$1 = "_dot_79nr3_51";
10283
+ const dotActive$1 = "_dotActive_79nr3_76";
10267
10284
  const styles$7 = {
10268
10285
  wrap,
10269
10286
  box,
@@ -10274,7 +10291,7 @@ const styles$7 = {
10274
10291
  dot: dot$1,
10275
10292
  dotActive: dotActive$1
10276
10293
  };
10277
- function LifestyleImage({ images }) {
10294
+ function LifestyleImage({ images, videos }) {
10278
10295
  const trackRef = useRef(null);
10279
10296
  const [active, setActive] = useState(0);
10280
10297
  useEffect(() => {
@@ -10294,17 +10311,25 @@ function LifestyleImage({ images }) {
10294
10311
  children: [jsx("ul", {
10295
10312
  className: styles$7.track,
10296
10313
  ref: trackRef,
10297
- children: images.map((src, i) => jsx("li", {
10298
- className: styles$7.slide,
10299
- children: jsx(ShopImage, {
10300
- src,
10301
- alt: "",
10302
- fill: true,
10303
- sizes: "(max-width: 480px) 100vw, 480px",
10304
- className: styles$7.image,
10305
- priority: i === 0
10306
- })
10307
- }, src))
10314
+ children: images.map((src, i) => {
10315
+ const clip = videos?.[i];
10316
+ return jsx("li", {
10317
+ className: styles$7.slide,
10318
+ children: clip ? jsx(ShopVideo, {
10319
+ src: clip,
10320
+ poster: src,
10321
+ fill: true,
10322
+ className: styles$7.image
10323
+ }) : jsx(ShopImage, {
10324
+ src,
10325
+ alt: "",
10326
+ fill: true,
10327
+ sizes: "(max-width: 480px) 100vw, 480px",
10328
+ className: styles$7.image,
10329
+ priority: i === 0
10330
+ })
10331
+ }, src);
10332
+ })
10308
10333
  }), images.length > 1 && jsx("div", {
10309
10334
  className: styles$7.dots,
10310
10335
  "aria-hidden": "true",
@@ -10492,7 +10517,8 @@ function Block({ block }) {
10492
10517
  });
10493
10518
  case "lifestyle_image":
10494
10519
  return jsx(LifestyleImage, {
10495
- images: block.images
10520
+ images: block.images,
10521
+ videos: block.videos
10496
10522
  });
10497
10523
  case "grid":
10498
10524
  return jsxs("div", {