@nok-integration/storefront-react 0.21.1 → 0.22.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.d.ts +28 -3
- package/dist/index.mjs +743 -539
- package/dist/standalone/storefront.mjs +743 -539
- package/dist/standalone/styles.css +264 -44
- package/dist/styles.css +264 -44
- package/package.json +1 -1
|
@@ -63,8 +63,8 @@ function requireUtil() {
|
|
|
63
63
|
return void 0;
|
|
64
64
|
};
|
|
65
65
|
util3.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
66
|
-
function joinValues(array,
|
|
67
|
-
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(
|
|
66
|
+
function joinValues(array, separator2 = " | ") {
|
|
67
|
+
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator2);
|
|
68
68
|
}
|
|
69
69
|
util3.joinValues = joinValues;
|
|
70
70
|
util3.jsonStringifyReplacer = (_, value2) => {
|
|
@@ -4516,6 +4516,8 @@ function requireVip() {
|
|
|
4516
4516
|
});
|
|
4517
4517
|
exports.VipHero = zod_1.z.object({
|
|
4518
4518
|
image: common_1.Url.nullable(),
|
|
4519
|
+
desktop_image: common_1.Url.nullable().optional(),
|
|
4520
|
+
desktop_video: common_1.Url.nullable().optional(),
|
|
4519
4521
|
headline: zod_1.z.string(),
|
|
4520
4522
|
body: zod_1.z.string().nullable(),
|
|
4521
4523
|
cta_label: zod_1.z.string()
|
|
@@ -5798,7 +5800,7 @@ function ShopLink({ to, children, ...rest }) {
|
|
|
5798
5800
|
children
|
|
5799
5801
|
});
|
|
5800
5802
|
}
|
|
5801
|
-
function ShopImage({ src, alt, fill: fill2 = false, width, height, sizes, className, style, priority = false }) {
|
|
5803
|
+
function ShopImage({ src, alt, fill: fill2 = false, width, height, sizes: sizes2, className, style, priority = false }) {
|
|
5802
5804
|
const assetUrl = useAssetUrl();
|
|
5803
5805
|
const fillStyle = fill2 ? {
|
|
5804
5806
|
position: "absolute",
|
|
@@ -5811,7 +5813,7 @@ function ShopImage({ src, alt, fill: fill2 = false, width, height, sizes, classN
|
|
|
5811
5813
|
alt,
|
|
5812
5814
|
width: fill2 ? void 0 : width,
|
|
5813
5815
|
height: fill2 ? void 0 : height,
|
|
5814
|
-
sizes,
|
|
5816
|
+
sizes: sizes2,
|
|
5815
5817
|
className,
|
|
5816
5818
|
style: {
|
|
5817
5819
|
...fillStyle,
|
|
@@ -5897,7 +5899,7 @@ const neutral$2 = "_neutral_1bagf_12";
|
|
|
5897
5899
|
const success$1 = "_success_1bagf_17";
|
|
5898
5900
|
const critical$2 = "_critical_1bagf_22";
|
|
5899
5901
|
const promo = "_promo_1bagf_27";
|
|
5900
|
-
const styles$
|
|
5902
|
+
const styles$V = {
|
|
5901
5903
|
badge: badge$5,
|
|
5902
5904
|
neutral: neutral$2,
|
|
5903
5905
|
success: success$1,
|
|
@@ -5906,7 +5908,7 @@ const styles$T = {
|
|
|
5906
5908
|
};
|
|
5907
5909
|
function Badge({ tone = "neutral", children }) {
|
|
5908
5910
|
return jsx("span", {
|
|
5909
|
-
className: [styles$
|
|
5911
|
+
className: [styles$V.badge, styles$V[tone]].join(" "),
|
|
5910
5912
|
children
|
|
5911
5913
|
});
|
|
5912
5914
|
}
|
|
@@ -5915,7 +5917,7 @@ const fullWidth = "_fullWidth_ci424_25";
|
|
|
5915
5917
|
const primary = "_primary_ci424_29";
|
|
5916
5918
|
const secondary = "_secondary_ci424_34";
|
|
5917
5919
|
const ghost = "_ghost_ci424_40";
|
|
5918
|
-
const styles$
|
|
5920
|
+
const styles$U = {
|
|
5919
5921
|
button: button$1,
|
|
5920
5922
|
fullWidth,
|
|
5921
5923
|
primary,
|
|
@@ -5923,12 +5925,12 @@ const styles$S = {
|
|
|
5923
5925
|
ghost
|
|
5924
5926
|
};
|
|
5925
5927
|
const spinner = "_spinner_1rueh_5";
|
|
5926
|
-
const styles$
|
|
5928
|
+
const styles$T = {
|
|
5927
5929
|
spinner
|
|
5928
5930
|
};
|
|
5929
5931
|
function Spinner({ className }) {
|
|
5930
5932
|
return jsx("span", {
|
|
5931
|
-
className: [styles$
|
|
5933
|
+
className: [styles$T.spinner, className ?? ""].filter(Boolean).join(" "),
|
|
5932
5934
|
"aria-hidden": "true"
|
|
5933
5935
|
});
|
|
5934
5936
|
}
|
|
@@ -5937,7 +5939,7 @@ const Button = forwardRef(function Button2({ variant = "primary", loading = fals
|
|
|
5937
5939
|
return jsxs("button", {
|
|
5938
5940
|
ref,
|
|
5939
5941
|
type,
|
|
5940
|
-
className: [styles$
|
|
5942
|
+
className: [styles$U.button, styles$U[variant], fullWidth2 ? styles$U.fullWidth : "", className ?? ""].filter(Boolean).join(" "),
|
|
5941
5943
|
disabled: isDisabled,
|
|
5942
5944
|
"aria-busy": loading || void 0,
|
|
5943
5945
|
...rest,
|
|
@@ -5947,7 +5949,7 @@ const Button = forwardRef(function Button2({ variant = "primary", loading = fals
|
|
|
5947
5949
|
});
|
|
5948
5950
|
});
|
|
5949
5951
|
const skeleton = "_skeleton_1nxz7_1";
|
|
5950
|
-
const styles$
|
|
5952
|
+
const styles$S = {
|
|
5951
5953
|
skeleton
|
|
5952
5954
|
};
|
|
5953
5955
|
function Skeleton({ width, height, radius, className, circle }) {
|
|
@@ -5958,13 +5960,13 @@ function Skeleton({ width, height, radius, className, circle }) {
|
|
|
5958
5960
|
};
|
|
5959
5961
|
return jsx("span", {
|
|
5960
5962
|
"aria-hidden": "true",
|
|
5961
|
-
className: [styles$
|
|
5963
|
+
className: [styles$S.skeleton, className ?? ""].filter(Boolean).join(" "),
|
|
5962
5964
|
style
|
|
5963
5965
|
});
|
|
5964
5966
|
}
|
|
5965
5967
|
const surface$1 = "_surface_stwld_10";
|
|
5966
5968
|
const fill = "_fill_stwld_35";
|
|
5967
|
-
const styles$
|
|
5969
|
+
const styles$R = {
|
|
5968
5970
|
surface: surface$1,
|
|
5969
5971
|
fill
|
|
5970
5972
|
};
|
|
@@ -6111,7 +6113,7 @@ const ShopSurface = forwardRef(function ShopSurface2({ tone, fill: fill2 = false
|
|
|
6111
6113
|
...rest,
|
|
6112
6114
|
ref: attach,
|
|
6113
6115
|
"data-shop-theme": tone,
|
|
6114
|
-
className: [styles$
|
|
6116
|
+
className: [styles$R.surface, fill2 ? styles$R.fill : "", className ?? ""].filter(Boolean).join(" "),
|
|
6115
6117
|
children
|
|
6116
6118
|
});
|
|
6117
6119
|
});
|
|
@@ -6124,7 +6126,7 @@ const lineMid = "_lineMid_ney0g_45";
|
|
|
6124
6126
|
const lineNarrow = "_lineNarrow_ney0g_49";
|
|
6125
6127
|
const row$9 = "_row_ney0g_53";
|
|
6126
6128
|
const action$2 = "_action_ney0g_57";
|
|
6127
|
-
const styles$
|
|
6129
|
+
const styles$Q = {
|
|
6128
6130
|
root: root$6,
|
|
6129
6131
|
inner,
|
|
6130
6132
|
media: media$3,
|
|
@@ -6331,6 +6333,10 @@ const ES = {
|
|
|
6331
6333
|
"Item is damaged": "El artículo está dañado",
|
|
6332
6334
|
"Measurement unit": "Unidad de medida",
|
|
6333
6335
|
"Need help?": "¿Necesita ayuda?",
|
|
6336
|
+
"Need help with your order?": "¿Necesita ayuda con su pedido?",
|
|
6337
|
+
Homepage: "Inicio",
|
|
6338
|
+
Breadcrumb: "Ruta de navegación",
|
|
6339
|
+
"Show image {0} of {1}": "Ver imagen {0} de {1}",
|
|
6334
6340
|
"Nothing left to return": "No queda nada por devolver",
|
|
6335
6341
|
"Order #{0} · Placed {1}": "Pedido n.º {0} · Realizado el {1}",
|
|
6336
6342
|
"Order cancelled": "Pedido cancelado",
|
|
@@ -6423,36 +6429,36 @@ function ScreenSkeleton({ tone, shape = "media" }) {
|
|
|
6423
6429
|
return jsx(ShopSurface, {
|
|
6424
6430
|
tone,
|
|
6425
6431
|
fill: true,
|
|
6426
|
-
className: styles$
|
|
6432
|
+
className: styles$Q.root,
|
|
6427
6433
|
children: jsx("div", {
|
|
6428
|
-
className: styles$
|
|
6434
|
+
className: styles$Q.inner,
|
|
6429
6435
|
role: "status",
|
|
6430
6436
|
"aria-label": t("Loading"),
|
|
6431
6437
|
children: shape === "media" ? jsxs(Fragment, {
|
|
6432
6438
|
children: [jsx(Skeleton, {
|
|
6433
|
-
className: styles$
|
|
6439
|
+
className: styles$Q.media
|
|
6434
6440
|
}), jsxs("div", {
|
|
6435
|
-
className: styles$
|
|
6441
|
+
className: styles$Q.lines,
|
|
6436
6442
|
children: [jsx(Skeleton, {
|
|
6437
6443
|
height: 22,
|
|
6438
|
-
className: styles$
|
|
6444
|
+
className: styles$Q.lineWide
|
|
6439
6445
|
}), jsx(Skeleton, {
|
|
6440
6446
|
height: 16,
|
|
6441
|
-
className: styles$
|
|
6447
|
+
className: styles$Q.lineMid
|
|
6442
6448
|
}), jsx(Skeleton, {
|
|
6443
6449
|
height: 16,
|
|
6444
|
-
className: styles$
|
|
6450
|
+
className: styles$Q.lineNarrow
|
|
6445
6451
|
})]
|
|
6446
6452
|
}), jsx(Skeleton, {
|
|
6447
6453
|
height: 48,
|
|
6448
6454
|
radius: 8,
|
|
6449
|
-
className: styles$
|
|
6455
|
+
className: styles$Q.action
|
|
6450
6456
|
})]
|
|
6451
6457
|
}) : jsx("div", {
|
|
6452
|
-
className: styles$
|
|
6458
|
+
className: styles$Q.lines,
|
|
6453
6459
|
children: [0, 1, 2, 3].map((i) => jsx(Skeleton, {
|
|
6454
6460
|
height: 72,
|
|
6455
|
-
className: styles$
|
|
6461
|
+
className: styles$Q.row
|
|
6456
6462
|
}, i))
|
|
6457
6463
|
})
|
|
6458
6464
|
})
|
|
@@ -6464,7 +6470,7 @@ const text$6 = "_text_ryf3q_21";
|
|
|
6464
6470
|
const title$n = "_title_ryf3q_35";
|
|
6465
6471
|
const body$9 = "_body_ryf3q_40";
|
|
6466
6472
|
const action$1 = "_action_ryf3q_48";
|
|
6467
|
-
const styles$
|
|
6473
|
+
const styles$P = {
|
|
6468
6474
|
root: root$5,
|
|
6469
6475
|
icon: icon$4,
|
|
6470
6476
|
text: text$6,
|
|
@@ -6474,22 +6480,22 @@ const styles$N = {
|
|
|
6474
6480
|
};
|
|
6475
6481
|
function EmptyState({ title: title2, body: body3, action: action2, icon: icon2 }) {
|
|
6476
6482
|
return jsxs("div", {
|
|
6477
|
-
className: styles$
|
|
6483
|
+
className: styles$P.root,
|
|
6478
6484
|
role: "status",
|
|
6479
6485
|
children: [icon2 && jsx("div", {
|
|
6480
|
-
className: styles$
|
|
6486
|
+
className: styles$P.icon,
|
|
6481
6487
|
children: icon2
|
|
6482
6488
|
}), jsxs("div", {
|
|
6483
|
-
className: styles$
|
|
6489
|
+
className: styles$P.text,
|
|
6484
6490
|
children: [jsx("h2", {
|
|
6485
|
-
className: styles$
|
|
6491
|
+
className: styles$P.title,
|
|
6486
6492
|
children: title2
|
|
6487
6493
|
}), body3 && jsx("p", {
|
|
6488
|
-
className: styles$
|
|
6494
|
+
className: styles$P.body,
|
|
6489
6495
|
children: body3
|
|
6490
6496
|
})]
|
|
6491
6497
|
}), action2 && jsx("div", {
|
|
6492
|
-
className: styles$
|
|
6498
|
+
className: styles$P.action,
|
|
6493
6499
|
children: action2
|
|
6494
6500
|
})]
|
|
6495
6501
|
});
|
|
@@ -6626,7 +6632,7 @@ function isDuplicateOrder(err) {
|
|
|
6626
6632
|
const root$4 = "_root_1lbpx_1";
|
|
6627
6633
|
const title$m = "_title_1lbpx_10";
|
|
6628
6634
|
const body$8 = "_body_1lbpx_15";
|
|
6629
|
-
const styles$
|
|
6635
|
+
const styles$O = {
|
|
6630
6636
|
root: root$4,
|
|
6631
6637
|
title: title$m,
|
|
6632
6638
|
body: body$8
|
|
@@ -6636,13 +6642,13 @@ function ErrorState({ code, title: title2, body: body3, onRetry, retryLabel }) {
|
|
|
6636
6642
|
const treatment = treatmentFor(code);
|
|
6637
6643
|
const showRetry = Boolean(onRetry) && treatment.retriable;
|
|
6638
6644
|
return jsxs("div", {
|
|
6639
|
-
className: styles$
|
|
6645
|
+
className: styles$O.root,
|
|
6640
6646
|
role: "alert",
|
|
6641
6647
|
children: [jsx("h2", {
|
|
6642
|
-
className: styles$
|
|
6648
|
+
className: styles$O.title,
|
|
6643
6649
|
children: title2 ?? t(treatment.title)
|
|
6644
6650
|
}), jsx("p", {
|
|
6645
|
-
className: styles$
|
|
6651
|
+
className: styles$O.body,
|
|
6646
6652
|
children: body3 ?? t(treatment.body)
|
|
6647
6653
|
}), showRetry && jsx(Button, {
|
|
6648
6654
|
variant: "secondary",
|
|
@@ -6688,9 +6694,9 @@ const success = "_success_oz4st_163";
|
|
|
6688
6694
|
const critical$1 = "_critical_oz4st_168";
|
|
6689
6695
|
const rich = "_rich_oz4st_183";
|
|
6690
6696
|
const description = "_description_oz4st_198";
|
|
6691
|
-
const thumb$
|
|
6697
|
+
const thumb$4 = "_thumb_oz4st_216";
|
|
6692
6698
|
const thumbImage = "_thumbImage_oz4st_227";
|
|
6693
|
-
const styles$
|
|
6699
|
+
const styles$N = {
|
|
6694
6700
|
viewport,
|
|
6695
6701
|
anchor,
|
|
6696
6702
|
caret,
|
|
@@ -6703,7 +6709,7 @@ const styles$L = {
|
|
|
6703
6709
|
critical: critical$1,
|
|
6704
6710
|
rich,
|
|
6705
6711
|
description,
|
|
6706
|
-
thumb: thumb$
|
|
6712
|
+
thumb: thumb$4,
|
|
6707
6713
|
thumbImage
|
|
6708
6714
|
};
|
|
6709
6715
|
const ToastContext = createContext(null);
|
|
@@ -6813,41 +6819,41 @@ function ToastProvider({ children }) {
|
|
|
6813
6819
|
return jsxs(ToastContext.Provider, {
|
|
6814
6820
|
value: api,
|
|
6815
6821
|
children: [children, jsx("div", {
|
|
6816
|
-
className: styles$
|
|
6822
|
+
className: styles$N.viewport,
|
|
6817
6823
|
ref: viewportRef,
|
|
6818
6824
|
"aria-live": "polite",
|
|
6819
6825
|
"aria-atomic": "false",
|
|
6820
6826
|
children: toasts.map((t) => {
|
|
6821
6827
|
const rich2 = Boolean(t.description || t.image);
|
|
6822
6828
|
return jsxs("div", {
|
|
6823
|
-
className: styles$
|
|
6829
|
+
className: styles$N.anchor,
|
|
6824
6830
|
children: [t.anchor === "cart" && jsx("span", {
|
|
6825
|
-
className: styles$
|
|
6831
|
+
className: styles$N.caret,
|
|
6826
6832
|
children: jsx(Caret, {})
|
|
6827
6833
|
}), jsxs("div", {
|
|
6828
|
-
className: [styles$
|
|
6834
|
+
className: [styles$N.toast, rich2 ? styles$N.rich : styles$N[t.tone]].join(" "),
|
|
6829
6835
|
role: "status",
|
|
6830
6836
|
children: [t.image && jsx("span", {
|
|
6831
|
-
className: styles$
|
|
6837
|
+
className: styles$N.thumb,
|
|
6832
6838
|
children: jsx(ShopImage, {
|
|
6833
6839
|
src: t.image,
|
|
6834
6840
|
alt: "",
|
|
6835
6841
|
fill: true,
|
|
6836
6842
|
sizes: "40px",
|
|
6837
|
-
className: styles$
|
|
6843
|
+
className: styles$N.thumbImage
|
|
6838
6844
|
})
|
|
6839
6845
|
}), jsxs("span", {
|
|
6840
|
-
className: styles$
|
|
6846
|
+
className: styles$N.text,
|
|
6841
6847
|
children: [jsx("span", {
|
|
6842
|
-
className: styles$
|
|
6848
|
+
className: styles$N.message,
|
|
6843
6849
|
children: t.message
|
|
6844
6850
|
}), t.description && jsx("span", {
|
|
6845
|
-
className: styles$
|
|
6851
|
+
className: styles$N.description,
|
|
6846
6852
|
children: t.description
|
|
6847
6853
|
})]
|
|
6848
6854
|
}), t.action && jsx("button", {
|
|
6849
6855
|
type: "button",
|
|
6850
|
-
className: styles$
|
|
6856
|
+
className: styles$N.action,
|
|
6851
6857
|
onClick: () => {
|
|
6852
6858
|
t.action?.onAction();
|
|
6853
6859
|
dismiss(t.id);
|
|
@@ -6862,15 +6868,15 @@ function ToastProvider({ children }) {
|
|
|
6862
6868
|
}
|
|
6863
6869
|
const badge$4 = "_badge_156ya_2";
|
|
6864
6870
|
const icon$3 = "_icon_156ya_18";
|
|
6865
|
-
const styles$
|
|
6871
|
+
const styles$M = {
|
|
6866
6872
|
badge: badge$4,
|
|
6867
6873
|
icon: icon$3
|
|
6868
6874
|
};
|
|
6869
6875
|
function SaleBadge({ pct }) {
|
|
6870
6876
|
return jsxs("span", {
|
|
6871
|
-
className: styles$
|
|
6877
|
+
className: styles$M.badge,
|
|
6872
6878
|
children: [jsxs("svg", {
|
|
6873
|
-
className: styles$
|
|
6879
|
+
className: styles$M.icon,
|
|
6874
6880
|
width: "12",
|
|
6875
6881
|
height: "12",
|
|
6876
6882
|
viewBox: "0 0 24 24",
|
|
@@ -6900,7 +6906,7 @@ const badge$3 = "_badge_rvfx9_48";
|
|
|
6900
6906
|
const price$4 = "_price_rvfx9_52";
|
|
6901
6907
|
const compareAt = "_compareAt_rvfx9_57";
|
|
6902
6908
|
const strikethrough = "_strikethrough_rvfx9_65";
|
|
6903
|
-
const styles$
|
|
6909
|
+
const styles$L = {
|
|
6904
6910
|
root: root$3,
|
|
6905
6911
|
center: center$1,
|
|
6906
6912
|
end,
|
|
@@ -6918,12 +6924,12 @@ function PriceBlock({ price: price2, compareAt: compareAt2, discountPct: discoun
|
|
|
6918
6924
|
const pct = discountPct$1 ?? discountPct(price2, compareAt2);
|
|
6919
6925
|
const hasCompare = compareAt2 && compareAt2.amount > price2.amount;
|
|
6920
6926
|
return jsxs("div", {
|
|
6921
|
-
className: [styles$
|
|
6927
|
+
className: [styles$L.root, styles$L[size], styles$L[align], styles$L[variant]].join(" "),
|
|
6922
6928
|
children: [jsx("span", {
|
|
6923
|
-
className: styles$
|
|
6929
|
+
className: styles$L.price,
|
|
6924
6930
|
children: format(price2)
|
|
6925
6931
|
}), hasCompare && jsxs("span", {
|
|
6926
|
-
className: styles$
|
|
6932
|
+
className: styles$L.compareAt,
|
|
6927
6933
|
children: [jsx("span", {
|
|
6928
6934
|
className: "visually-hidden",
|
|
6929
6935
|
children: t("Was {0}", format(compareAt2))
|
|
@@ -6937,7 +6943,7 @@ function PriceBlock({ price: price2, compareAt: compareAt2, discountPct: discoun
|
|
|
6937
6943
|
});
|
|
6938
6944
|
}
|
|
6939
6945
|
const STATE_KEY = "__daznShop";
|
|
6940
|
-
function current$
|
|
6946
|
+
function current$2(name2) {
|
|
6941
6947
|
if (typeof window === "undefined") return null;
|
|
6942
6948
|
const state = window.history.state;
|
|
6943
6949
|
const ours = state?.[STATE_KEY];
|
|
@@ -6946,9 +6952,9 @@ function current$1(name2) {
|
|
|
6946
6952
|
return typeof value2 === "string" ? value2 : null;
|
|
6947
6953
|
}
|
|
6948
6954
|
function useInPlaceScreen(name2) {
|
|
6949
|
-
const [value2, setValue] = useState(() => current$
|
|
6955
|
+
const [value2, setValue] = useState(() => current$2(name2));
|
|
6950
6956
|
useEffect(() => {
|
|
6951
|
-
const onPop = () => setValue(current$
|
|
6957
|
+
const onPop = () => setValue(current$2(name2));
|
|
6952
6958
|
window.addEventListener("popstate", onPop);
|
|
6953
6959
|
return () => window.removeEventListener("popstate", onPop);
|
|
6954
6960
|
}, [name2]);
|
|
@@ -6968,7 +6974,7 @@ function useInPlaceScreen(name2) {
|
|
|
6968
6974
|
setValue(next);
|
|
6969
6975
|
}, [name2]);
|
|
6970
6976
|
const close2 = useCallback(() => {
|
|
6971
|
-
if (current$
|
|
6977
|
+
if (current$2(name2) !== null) {
|
|
6972
6978
|
window.history.back();
|
|
6973
6979
|
return;
|
|
6974
6980
|
}
|
|
@@ -6990,10 +6996,10 @@ const connector = "_connector_1cum7_68";
|
|
|
6990
6996
|
const text$4 = "_text_1cum7_84";
|
|
6991
6997
|
const label$2 = "_label_1cum7_101";
|
|
6992
6998
|
const past = "_past_1cum7_113";
|
|
6993
|
-
const current = "_current_1cum7_118";
|
|
6999
|
+
const current$1 = "_current_1cum7_118";
|
|
6994
7000
|
const future = "_future_1cum7_133";
|
|
6995
7001
|
const date$1 = "_date_1cum7_138";
|
|
6996
|
-
const styles$
|
|
7002
|
+
const styles$K = {
|
|
6997
7003
|
timeline,
|
|
6998
7004
|
row: row$8,
|
|
6999
7005
|
line: line$3,
|
|
@@ -7004,7 +7010,7 @@ const styles$I = {
|
|
|
7004
7010
|
text: text$4,
|
|
7005
7011
|
label: label$2,
|
|
7006
7012
|
past,
|
|
7007
|
-
current,
|
|
7013
|
+
current: current$1,
|
|
7008
7014
|
future,
|
|
7009
7015
|
date: date$1
|
|
7010
7016
|
};
|
|
@@ -7027,39 +7033,39 @@ function OrderTimeline({ progress: progress2, estimatedDelivery, locale: localeP
|
|
|
7027
7033
|
const t = useT();
|
|
7028
7034
|
const currentIndex = progress2.findIndex((e) => e.current);
|
|
7029
7035
|
return jsx("ol", {
|
|
7030
|
-
className: styles$
|
|
7036
|
+
className: styles$K.timeline,
|
|
7031
7037
|
children: progress2.map((entry, i) => {
|
|
7032
7038
|
const state = stateOf(entry, i, currentIndex);
|
|
7033
7039
|
const estimate = !entry.at && i === progress2.length - 1 && estimatedDelivery ? formatWindow(estimatedDelivery, locale) : void 0;
|
|
7034
7040
|
return jsxs("li", {
|
|
7035
|
-
className: styles$
|
|
7041
|
+
className: styles$K.row,
|
|
7036
7042
|
"aria-current": entry.current ? "step" : void 0,
|
|
7037
7043
|
children: [jsxs("div", {
|
|
7038
|
-
className: styles$
|
|
7044
|
+
className: styles$K.line,
|
|
7039
7045
|
children: [jsx("span", {
|
|
7040
|
-
className: styles$
|
|
7046
|
+
className: styles$K.marker,
|
|
7041
7047
|
children: state === "future" ? jsx("span", {
|
|
7042
|
-
className: styles$
|
|
7048
|
+
className: styles$K.pending,
|
|
7043
7049
|
"aria-hidden": "true"
|
|
7044
7050
|
}) : jsx(StepTick, {
|
|
7045
7051
|
tone: state
|
|
7046
7052
|
})
|
|
7047
7053
|
}), jsxs("span", {
|
|
7048
|
-
className: styles$
|
|
7054
|
+
className: styles$K.text,
|
|
7049
7055
|
children: [jsx("span", {
|
|
7050
|
-
className: [styles$
|
|
7056
|
+
className: [styles$K.label, styles$K[state]].join(" "),
|
|
7051
7057
|
children: t(labelFor(entry))
|
|
7052
7058
|
}), entry.at ? jsx("time", {
|
|
7053
|
-
className: styles$
|
|
7059
|
+
className: styles$K.date,
|
|
7054
7060
|
dateTime: entry.at,
|
|
7055
7061
|
children: formatStepDate(entry.at, locale)
|
|
7056
7062
|
}) : estimate && jsx("span", {
|
|
7057
|
-
className: styles$
|
|
7063
|
+
className: styles$K.date,
|
|
7058
7064
|
children: estimate
|
|
7059
7065
|
})]
|
|
7060
7066
|
})]
|
|
7061
7067
|
}), i < progress2.length - 1 && jsx("span", {
|
|
7062
|
-
className: styles$
|
|
7068
|
+
className: styles$K.connector,
|
|
7063
7069
|
"aria-hidden": "true"
|
|
7064
7070
|
})]
|
|
7065
7071
|
}, entry.step);
|
|
@@ -7073,7 +7079,7 @@ function stateOf(entry, index, currentIndex) {
|
|
|
7073
7079
|
}
|
|
7074
7080
|
function StepTick({ tone }) {
|
|
7075
7081
|
return jsxs("svg", {
|
|
7076
|
-
className: styles$
|
|
7082
|
+
className: styles$K.tick,
|
|
7077
7083
|
width: "28",
|
|
7078
7084
|
height: "28",
|
|
7079
7085
|
viewBox: "0 0 28 28",
|
|
@@ -7218,7 +7224,7 @@ const row$7 = "_row_1hsxt_16";
|
|
|
7218
7224
|
const free = "_free_1hsxt_53";
|
|
7219
7225
|
const pending$1 = "_pending_1hsxt_59";
|
|
7220
7226
|
const discount = "_discount_1hsxt_69";
|
|
7221
|
-
const styles$
|
|
7227
|
+
const styles$J = {
|
|
7222
7228
|
summary,
|
|
7223
7229
|
row: row$7,
|
|
7224
7230
|
free,
|
|
@@ -7247,11 +7253,11 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
|
|
|
7247
7253
|
const isDeferred = (key) => deferred.includes(key);
|
|
7248
7254
|
const visible = rows.filter((row2) => !hidden.includes(row2.key)).filter((row2) => row2.key !== "discount" || discount2 !== void 0);
|
|
7249
7255
|
return jsx("dl", {
|
|
7250
|
-
className: styles$
|
|
7256
|
+
className: styles$J.summary,
|
|
7251
7257
|
children: visible.map(({ label: label2, key }) => {
|
|
7252
7258
|
if (key === "discount" && discount2) {
|
|
7253
7259
|
return jsxs("div", {
|
|
7254
|
-
className: [styles$
|
|
7260
|
+
className: [styles$J.row, styles$J.discount].join(" "),
|
|
7255
7261
|
children: [jsx("dt", {
|
|
7256
7262
|
children: t(label2)
|
|
7257
7263
|
}), jsx("dd", {
|
|
@@ -7261,11 +7267,11 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
|
|
|
7261
7267
|
}
|
|
7262
7268
|
const pending2 = key !== "total" && isDeferred(key);
|
|
7263
7269
|
return jsxs("div", {
|
|
7264
|
-
className: styles$
|
|
7270
|
+
className: styles$J.row,
|
|
7265
7271
|
children: [jsx("dt", {
|
|
7266
7272
|
children: t(label2)
|
|
7267
7273
|
}), jsx("dd", {
|
|
7268
|
-
className: pending2 ? styles$
|
|
7274
|
+
className: pending2 ? styles$J.pending : void 0,
|
|
7269
7275
|
children: pending2 ? t("Calculated at checkout") : renderValue(key, pricing, format, t)
|
|
7270
7276
|
})]
|
|
7271
7277
|
}, key);
|
|
@@ -7275,7 +7281,7 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
|
|
|
7275
7281
|
function renderValue(key, pricing, format, t) {
|
|
7276
7282
|
if (key === "shipping" && pricing.shipping.amount === 0) {
|
|
7277
7283
|
return jsx("span", {
|
|
7278
|
-
className: styles$
|
|
7284
|
+
className: styles$J.free,
|
|
7279
7285
|
children: t("Free")
|
|
7280
7286
|
});
|
|
7281
7287
|
}
|
|
@@ -7283,8 +7289,8 @@ function renderValue(key, pricing, format, t) {
|
|
|
7283
7289
|
}
|
|
7284
7290
|
const lines$1 = "_lines_1lx0d_19";
|
|
7285
7291
|
const line$2 = "_line_1lx0d_19";
|
|
7286
|
-
const thumb$
|
|
7287
|
-
const image$
|
|
7292
|
+
const thumb$3 = "_thumb_1lx0d_34";
|
|
7293
|
+
const image$b = "_image_1lx0d_44";
|
|
7288
7294
|
const placeholder$8 = "_placeholder_1lx0d_51";
|
|
7289
7295
|
const lineBody = "_lineBody_1lx0d_56";
|
|
7290
7296
|
const lineText = "_lineText_1lx0d_65";
|
|
@@ -7302,11 +7308,11 @@ const itemsHeader = "_itemsHeader_1lx0d_14";
|
|
|
7302
7308
|
const itemsTitle = "_itemsTitle_1lx0d_238";
|
|
7303
7309
|
const itemsCount = "_itemsCount_1lx0d_249";
|
|
7304
7310
|
const cardLines = "_cardLines_1lx0d_268";
|
|
7305
|
-
const styles$
|
|
7311
|
+
const styles$I = {
|
|
7306
7312
|
lines: lines$1,
|
|
7307
7313
|
line: line$2,
|
|
7308
|
-
thumb: thumb$
|
|
7309
|
-
image: image$
|
|
7314
|
+
thumb: thumb$3,
|
|
7315
|
+
image: image$b,
|
|
7310
7316
|
placeholder: placeholder$8,
|
|
7311
7317
|
lineBody,
|
|
7312
7318
|
lineText,
|
|
@@ -7345,42 +7351,42 @@ function OrderLine({ item: item2 }) {
|
|
|
7345
7351
|
const pct = compareAt2 ? discountPct(item2.unit_price, compareAt2) : void 0;
|
|
7346
7352
|
const details2 = detailsOf(item2, t);
|
|
7347
7353
|
return jsxs("li", {
|
|
7348
|
-
className: styles$
|
|
7354
|
+
className: styles$I.line,
|
|
7349
7355
|
children: [jsx("div", {
|
|
7350
|
-
className: styles$
|
|
7356
|
+
className: styles$I.thumb,
|
|
7351
7357
|
children: item2.image ? jsx(ShopImage, {
|
|
7352
7358
|
src: item2.image,
|
|
7353
7359
|
alt: "",
|
|
7354
7360
|
fill: true,
|
|
7355
7361
|
sizes: "48px",
|
|
7356
|
-
className: styles$
|
|
7362
|
+
className: styles$I.image
|
|
7357
7363
|
}) : jsx("div", {
|
|
7358
|
-
className: styles$
|
|
7364
|
+
className: styles$I.placeholder,
|
|
7359
7365
|
"aria-hidden": "true"
|
|
7360
7366
|
})
|
|
7361
7367
|
}), jsxs("div", {
|
|
7362
|
-
className: styles$
|
|
7368
|
+
className: styles$I.lineBody,
|
|
7363
7369
|
children: [jsxs("div", {
|
|
7364
|
-
className: styles$
|
|
7370
|
+
className: styles$I.lineText,
|
|
7365
7371
|
children: [jsx("span", {
|
|
7366
|
-
className: styles$
|
|
7372
|
+
className: styles$I.lineTitle,
|
|
7367
7373
|
children: item2.title ?? item2.sku
|
|
7368
7374
|
}), jsxs("span", {
|
|
7369
|
-
className: styles$
|
|
7375
|
+
className: styles$I.lineMeta,
|
|
7370
7376
|
children: [details2.map((detail2) => jsx("span", {
|
|
7371
|
-
className: styles$
|
|
7377
|
+
className: styles$I.detail,
|
|
7372
7378
|
children: detail2
|
|
7373
7379
|
}, detail2)), pct !== void 0 && jsx(SaleBadge, {
|
|
7374
7380
|
pct
|
|
7375
7381
|
})]
|
|
7376
7382
|
})]
|
|
7377
7383
|
}), jsxs("span", {
|
|
7378
|
-
className: styles$
|
|
7384
|
+
className: styles$I.linePrice,
|
|
7379
7385
|
children: [jsx("span", {
|
|
7380
|
-
className: styles$
|
|
7386
|
+
className: styles$I.paid,
|
|
7381
7387
|
children: format(item2.line_total)
|
|
7382
7388
|
}), compareAt2 && jsxs("span", {
|
|
7383
|
-
className: styles$
|
|
7389
|
+
className: styles$I.was,
|
|
7384
7390
|
children: [jsx("span", {
|
|
7385
7391
|
className: "visually-hidden",
|
|
7386
7392
|
children: t("Was {0}", format(compareAt2))
|
|
@@ -7396,7 +7402,7 @@ function OrderLine({ item: item2 }) {
|
|
|
7396
7402
|
function OrderLines({ order }) {
|
|
7397
7403
|
const t = useT();
|
|
7398
7404
|
return jsx("ul", {
|
|
7399
|
-
className: styles$
|
|
7405
|
+
className: styles$I.lines,
|
|
7400
7406
|
"aria-label": t("Items"),
|
|
7401
7407
|
children: order.items.map((item2) => jsx(OrderLine, {
|
|
7402
7408
|
item: item2
|
|
@@ -7407,19 +7413,19 @@ function OrderItemsCard({ order }) {
|
|
|
7407
7413
|
const t = useT();
|
|
7408
7414
|
const itemCount = order.items.reduce((n, i) => n + i.qty, 0);
|
|
7409
7415
|
return jsxs("section", {
|
|
7410
|
-
className: styles$
|
|
7416
|
+
className: styles$I.card,
|
|
7411
7417
|
"aria-label": t("Items"),
|
|
7412
7418
|
children: [jsxs("div", {
|
|
7413
|
-
className: styles$
|
|
7419
|
+
className: styles$I.itemsHeader,
|
|
7414
7420
|
children: [jsx("h2", {
|
|
7415
|
-
className: styles$
|
|
7421
|
+
className: styles$I.itemsTitle,
|
|
7416
7422
|
children: t("Items")
|
|
7417
7423
|
}), jsx("span", {
|
|
7418
|
-
className: styles$
|
|
7424
|
+
className: styles$I.itemsCount,
|
|
7419
7425
|
children: itemCount
|
|
7420
7426
|
})]
|
|
7421
7427
|
}), jsx("ul", {
|
|
7422
|
-
className: [styles$
|
|
7428
|
+
className: [styles$I.lines, styles$I.cardLines].join(" "),
|
|
7423
7429
|
children: order.items.map((item2) => jsx(OrderLine, {
|
|
7424
7430
|
item: item2
|
|
7425
7431
|
}, item2.line_ref))
|
|
@@ -7429,13 +7435,13 @@ function OrderItemsCard({ order }) {
|
|
|
7429
7435
|
function ShippingAddressCard({ order }) {
|
|
7430
7436
|
const t = useT();
|
|
7431
7437
|
return jsxs("section", {
|
|
7432
|
-
className: styles$
|
|
7438
|
+
className: styles$I.card,
|
|
7433
7439
|
"aria-label": t("Shipping address"),
|
|
7434
7440
|
children: [jsx("h2", {
|
|
7435
|
-
className: styles$
|
|
7441
|
+
className: styles$I.cardTitle,
|
|
7436
7442
|
children: t("Shipping address")
|
|
7437
7443
|
}), jsx("p", {
|
|
7438
|
-
className: styles$
|
|
7444
|
+
className: styles$I.cardBody,
|
|
7439
7445
|
children: formatAddress(order.ship_to)
|
|
7440
7446
|
})]
|
|
7441
7447
|
});
|
|
@@ -7443,10 +7449,10 @@ function ShippingAddressCard({ order }) {
|
|
|
7443
7449
|
function OrderSummaryCard({ order }) {
|
|
7444
7450
|
const t = useT();
|
|
7445
7451
|
return jsxs("section", {
|
|
7446
|
-
className: [styles$
|
|
7452
|
+
className: [styles$I.card, styles$I.summaryCard].join(" "),
|
|
7447
7453
|
"aria-label": t("Order summary"),
|
|
7448
7454
|
children: [jsx("h2", {
|
|
7449
|
-
className: styles$
|
|
7455
|
+
className: styles$I.cardTitle,
|
|
7450
7456
|
children: t("Order summary")
|
|
7451
7457
|
}), jsx(OrderSummary, {
|
|
7452
7458
|
pricing: toPricing(order),
|
|
@@ -7483,7 +7489,7 @@ const handleSlot = "_handleSlot_1f3nh_23";
|
|
|
7483
7489
|
const handle = "_handle_1f3nh_23";
|
|
7484
7490
|
const closeSlot$1 = "_closeSlot_1f3nh_35";
|
|
7485
7491
|
const close$2 = "_close_1f3nh_35";
|
|
7486
|
-
const styles$
|
|
7492
|
+
const styles$H = {
|
|
7487
7493
|
header: header$6,
|
|
7488
7494
|
slot,
|
|
7489
7495
|
handleSlot,
|
|
@@ -7511,23 +7517,23 @@ function CloseIcon$1() {
|
|
|
7511
7517
|
}
|
|
7512
7518
|
function SheetHeader({ onClose, closeLabel }) {
|
|
7513
7519
|
return jsxs("div", {
|
|
7514
|
-
className: styles$
|
|
7520
|
+
className: styles$H.header,
|
|
7515
7521
|
children: [jsx("div", {
|
|
7516
|
-
className: styles$
|
|
7522
|
+
className: styles$H.slot,
|
|
7517
7523
|
"aria-hidden": "true"
|
|
7518
7524
|
}), jsx("div", {
|
|
7519
|
-
className: styles$
|
|
7525
|
+
className: styles$H.handleSlot,
|
|
7520
7526
|
"aria-hidden": "true",
|
|
7521
7527
|
children: jsx("div", {
|
|
7522
|
-
className: styles$
|
|
7528
|
+
className: styles$H.handle
|
|
7523
7529
|
})
|
|
7524
7530
|
}), jsx("button", {
|
|
7525
7531
|
type: "button",
|
|
7526
|
-
className: styles$
|
|
7532
|
+
className: styles$H.closeSlot,
|
|
7527
7533
|
onClick: onClose,
|
|
7528
7534
|
"aria-label": closeLabel,
|
|
7529
7535
|
children: jsx("span", {
|
|
7530
|
-
className: styles$
|
|
7536
|
+
className: styles$H.close,
|
|
7531
7537
|
children: jsx(CloseIcon$1, {})
|
|
7532
7538
|
})
|
|
7533
7539
|
})]
|
|
@@ -7583,7 +7589,7 @@ const radio = "_radio_1oaa3_95";
|
|
|
7583
7589
|
const label$1 = "_label_1oaa3_125";
|
|
7584
7590
|
const footer$1 = "_footer_1oaa3_134";
|
|
7585
7591
|
const error$1 = "_error_1oaa3_142";
|
|
7586
|
-
const styles$
|
|
7592
|
+
const styles$G = {
|
|
7587
7593
|
scrim: scrim$5,
|
|
7588
7594
|
sheet: sheet$3,
|
|
7589
7595
|
body: body$7,
|
|
@@ -7601,12 +7607,12 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7601
7607
|
const t = useT();
|
|
7602
7608
|
useModalDialog(true, onClose, sheetRef);
|
|
7603
7609
|
return jsx("div", {
|
|
7604
|
-
className: styles$
|
|
7610
|
+
className: styles$G.scrim,
|
|
7605
7611
|
onClick: onClose,
|
|
7606
7612
|
children: jsxs(ShopSurface, {
|
|
7607
7613
|
tone: "light",
|
|
7608
7614
|
ref: sheetRef,
|
|
7609
|
-
className: styles$
|
|
7615
|
+
className: styles$G.sheet,
|
|
7610
7616
|
role: "dialog",
|
|
7611
7617
|
"aria-modal": "true",
|
|
7612
7618
|
"aria-labelledby": "reason-sheet-title",
|
|
@@ -7615,23 +7621,23 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7615
7621
|
onClose,
|
|
7616
7622
|
closeLabel
|
|
7617
7623
|
}), jsxs("div", {
|
|
7618
|
-
className: styles$
|
|
7624
|
+
className: styles$G.body,
|
|
7619
7625
|
children: [jsx("h2", {
|
|
7620
7626
|
id: "reason-sheet-title",
|
|
7621
|
-
className: styles$
|
|
7627
|
+
className: styles$G.title,
|
|
7622
7628
|
children: t(title2)
|
|
7623
7629
|
}), jsx("div", {
|
|
7624
|
-
className: styles$
|
|
7630
|
+
className: styles$G.options,
|
|
7625
7631
|
role: "radiogroup",
|
|
7626
7632
|
"aria-labelledby": "reason-sheet-title",
|
|
7627
7633
|
children: options2.map((o) => jsxs("button", {
|
|
7628
7634
|
type: "button",
|
|
7629
7635
|
role: "radio",
|
|
7630
7636
|
"aria-checked": o.value === choice,
|
|
7631
|
-
className: styles$
|
|
7637
|
+
className: styles$G.option,
|
|
7632
7638
|
onClick: () => setChoice(o.value),
|
|
7633
7639
|
children: [jsx("span", {
|
|
7634
|
-
className: styles$
|
|
7640
|
+
className: styles$G.radio,
|
|
7635
7641
|
"aria-hidden": "true",
|
|
7636
7642
|
children: o.value === choice && jsxs("svg", {
|
|
7637
7643
|
width: "20",
|
|
@@ -7652,15 +7658,15 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7652
7658
|
})]
|
|
7653
7659
|
})
|
|
7654
7660
|
}), jsx("span", {
|
|
7655
|
-
className: styles$
|
|
7661
|
+
className: styles$G.label,
|
|
7656
7662
|
children: t(o.label)
|
|
7657
7663
|
})]
|
|
7658
7664
|
}, o.value))
|
|
7659
7665
|
})]
|
|
7660
7666
|
}), jsxs("div", {
|
|
7661
|
-
className: styles$
|
|
7667
|
+
className: styles$G.footer,
|
|
7662
7668
|
children: [error2 && jsx("p", {
|
|
7663
|
-
className: styles$
|
|
7669
|
+
className: styles$G.error,
|
|
7664
7670
|
role: "alert",
|
|
7665
7671
|
children: error2
|
|
7666
7672
|
}), jsx(Button, {
|
|
@@ -7676,7 +7682,7 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7676
7682
|
});
|
|
7677
7683
|
}
|
|
7678
7684
|
const line$1 = "_line_1pjby_6";
|
|
7679
|
-
const thumb$
|
|
7685
|
+
const thumb$2 = "_thumb_1pjby_12";
|
|
7680
7686
|
const img$1 = "_img_1pjby_22";
|
|
7681
7687
|
const placeholder$7 = "_placeholder_1pjby_29";
|
|
7682
7688
|
const meta$3 = "_meta_1pjby_34";
|
|
@@ -7685,9 +7691,9 @@ const attrs$1 = "_attrs_1pjby_55";
|
|
|
7685
7691
|
const price$3 = "_price_1pjby_63";
|
|
7686
7692
|
const paid$2 = "_paid_1pjby_72";
|
|
7687
7693
|
const was$3 = "_was_1pjby_80";
|
|
7688
|
-
const styles$
|
|
7694
|
+
const styles$F = {
|
|
7689
7695
|
line: line$1,
|
|
7690
|
-
thumb: thumb$
|
|
7696
|
+
thumb: thumb$2,
|
|
7691
7697
|
img: img$1,
|
|
7692
7698
|
placeholder: placeholder$7,
|
|
7693
7699
|
meta: meta$3,
|
|
@@ -7701,35 +7707,35 @@ function ReturnItemRow({ item: item2, className }) {
|
|
|
7701
7707
|
const { format } = useMoney();
|
|
7702
7708
|
const t = useT();
|
|
7703
7709
|
return jsxs("div", {
|
|
7704
|
-
className: [styles$
|
|
7710
|
+
className: [styles$F.line, className ?? ""].join(" ").trim(),
|
|
7705
7711
|
children: [jsx("div", {
|
|
7706
|
-
className: styles$
|
|
7712
|
+
className: styles$F.thumb,
|
|
7707
7713
|
children: item2.image ? jsx(ShopImage, {
|
|
7708
7714
|
src: item2.image,
|
|
7709
7715
|
alt: "",
|
|
7710
7716
|
fill: true,
|
|
7711
7717
|
sizes: "48px",
|
|
7712
|
-
className: styles$
|
|
7718
|
+
className: styles$F.img
|
|
7713
7719
|
}) : jsx("div", {
|
|
7714
|
-
className: styles$
|
|
7720
|
+
className: styles$F.placeholder,
|
|
7715
7721
|
"aria-hidden": "true"
|
|
7716
7722
|
})
|
|
7717
7723
|
}), jsxs("div", {
|
|
7718
|
-
className: styles$
|
|
7724
|
+
className: styles$F.meta,
|
|
7719
7725
|
children: [jsx("p", {
|
|
7720
|
-
className: styles$
|
|
7726
|
+
className: styles$F.name,
|
|
7721
7727
|
children: item2.title ?? item2.sku
|
|
7722
7728
|
}), item2.attributes?.size && jsx("p", {
|
|
7723
|
-
className: styles$
|
|
7729
|
+
className: styles$F.attrs,
|
|
7724
7730
|
children: t("Size: {0}", item2.attributes.size)
|
|
7725
7731
|
})]
|
|
7726
7732
|
}), jsxs("div", {
|
|
7727
|
-
className: styles$
|
|
7733
|
+
className: styles$F.price,
|
|
7728
7734
|
children: [jsx("span", {
|
|
7729
|
-
className: styles$
|
|
7735
|
+
className: styles$F.paid,
|
|
7730
7736
|
children: format(item2.unit_price)
|
|
7731
7737
|
}), item2.compare_at_unit_price && jsxs("span", {
|
|
7732
|
-
className: styles$
|
|
7738
|
+
className: styles$F.was,
|
|
7733
7739
|
children: [jsx("span", {
|
|
7734
7740
|
className: "visually-hidden",
|
|
7735
7741
|
children: t("Was {0}", format(item2.compare_at_unit_price))
|
|
@@ -7752,7 +7758,7 @@ const check = "_check_15fz5_66";
|
|
|
7752
7758
|
const row$6 = "_row_15fz5_110";
|
|
7753
7759
|
const reason = "_reason_15fz5_135";
|
|
7754
7760
|
const reasonSet = "_reasonSet_15fz5_155";
|
|
7755
|
-
const styles$
|
|
7761
|
+
const styles$E = {
|
|
7756
7762
|
page: page$6,
|
|
7757
7763
|
titles: titles$2,
|
|
7758
7764
|
title: title$k,
|
|
@@ -7859,55 +7865,55 @@ function ReturnItemsView({ order, onSubmit, busy = false }) {
|
|
|
7859
7865
|
}
|
|
7860
7866
|
if (returnable.length === 0) {
|
|
7861
7867
|
return jsx("div", {
|
|
7862
|
-
className: styles$
|
|
7868
|
+
className: styles$E.page,
|
|
7863
7869
|
children: jsxs("div", {
|
|
7864
|
-
className: styles$
|
|
7870
|
+
className: styles$E.titles,
|
|
7865
7871
|
children: [jsx("h1", {
|
|
7866
|
-
className: styles$
|
|
7872
|
+
className: styles$E.title,
|
|
7867
7873
|
children: t("Nothing left to return")
|
|
7868
7874
|
}), jsx("p", {
|
|
7869
|
-
className: styles$
|
|
7875
|
+
className: styles$E.subtitle,
|
|
7870
7876
|
children: t("Every item on this order has already been returned or cancelled.")
|
|
7871
7877
|
})]
|
|
7872
7878
|
})
|
|
7873
7879
|
});
|
|
7874
7880
|
}
|
|
7875
7881
|
return jsxs("div", {
|
|
7876
|
-
className: styles$
|
|
7882
|
+
className: styles$E.page,
|
|
7877
7883
|
children: [jsxs("div", {
|
|
7878
|
-
className: styles$
|
|
7884
|
+
className: styles$E.titles,
|
|
7879
7885
|
children: [jsx("h1", {
|
|
7880
|
-
className: styles$
|
|
7886
|
+
className: styles$E.title,
|
|
7881
7887
|
children: t("What do you want to return?")
|
|
7882
7888
|
}), jsx("p", {
|
|
7883
|
-
className: styles$
|
|
7889
|
+
className: styles$E.subtitle,
|
|
7884
7890
|
children: t("Select items you want to return")
|
|
7885
7891
|
})]
|
|
7886
7892
|
}), jsx("div", {
|
|
7887
|
-
className: styles$
|
|
7893
|
+
className: styles$E.list,
|
|
7888
7894
|
children: returnable.map((item2) => {
|
|
7889
7895
|
const picked = item2.line_ref in chosen;
|
|
7890
7896
|
const reason2 = chosen[item2.line_ref];
|
|
7891
7897
|
return jsxs("div", {
|
|
7892
|
-
className: styles$
|
|
7898
|
+
className: styles$E.card,
|
|
7893
7899
|
children: [jsx("button", {
|
|
7894
7900
|
type: "button",
|
|
7895
7901
|
role: "checkbox",
|
|
7896
7902
|
"aria-checked": picked,
|
|
7897
7903
|
"aria-label": item2.title ?? item2.sku,
|
|
7898
|
-
className: styles$
|
|
7904
|
+
className: styles$E.checkSlot,
|
|
7899
7905
|
onClick: () => toggle2(item2.line_ref),
|
|
7900
7906
|
children: jsx("span", {
|
|
7901
|
-
className: styles$
|
|
7907
|
+
className: styles$E.check,
|
|
7902
7908
|
children: picked ? jsx(Tick, {}) : null
|
|
7903
7909
|
})
|
|
7904
7910
|
}), jsxs("div", {
|
|
7905
|
-
className: styles$
|
|
7911
|
+
className: styles$E.row,
|
|
7906
7912
|
children: [jsx(ReturnItemRow, {
|
|
7907
7913
|
item: item2
|
|
7908
7914
|
}), jsxs("button", {
|
|
7909
7915
|
type: "button",
|
|
7910
|
-
className: `${styles$
|
|
7916
|
+
className: `${styles$E.reason} ${reason2 ? styles$E.reasonSet : ""}`,
|
|
7911
7917
|
onClick: () => setReasonFor(item2.line_ref),
|
|
7912
7918
|
"aria-haspopup": "dialog",
|
|
7913
7919
|
children: [jsx("span", {
|
|
@@ -7959,7 +7965,7 @@ const body$6 = "_body_51f4e_113";
|
|
|
7959
7965
|
const body2 = "_body2_51f4e_121";
|
|
7960
7966
|
const download = "_download_51f4e_139";
|
|
7961
7967
|
const note$1 = "_note_51f4e_161";
|
|
7962
|
-
const styles$
|
|
7968
|
+
const styles$D = {
|
|
7963
7969
|
page: page$5,
|
|
7964
7970
|
top,
|
|
7965
7971
|
items: items$2,
|
|
@@ -8033,42 +8039,42 @@ function ReturnLabelView({ ret, onDone }) {
|
|
|
8033
8039
|
const t = useT();
|
|
8034
8040
|
const { preparing, unavailable, onDownload } = useLabelDownload(ret.label_url);
|
|
8035
8041
|
return jsxs("div", {
|
|
8036
|
-
className: styles$
|
|
8042
|
+
className: styles$D.page,
|
|
8037
8043
|
children: [jsxs("div", {
|
|
8038
|
-
className: styles$
|
|
8044
|
+
className: styles$D.top,
|
|
8039
8045
|
children: [jsx("div", {
|
|
8040
|
-
className: styles$
|
|
8046
|
+
className: styles$D.items,
|
|
8041
8047
|
children: ret.items.map((item2) => jsx(ReturnItemRow, {
|
|
8042
8048
|
item: item2
|
|
8043
8049
|
}, item2.line_ref))
|
|
8044
8050
|
}), jsxs("div", {
|
|
8045
|
-
className: styles$
|
|
8051
|
+
className: styles$D.intro,
|
|
8046
8052
|
children: [jsx("h1", {
|
|
8047
|
-
className: styles$
|
|
8053
|
+
className: styles$D.title,
|
|
8048
8054
|
children: t("We’ve generated your return label")
|
|
8049
8055
|
}), jsx("p", {
|
|
8050
|
-
className: styles$
|
|
8056
|
+
className: styles$D.subtitle,
|
|
8051
8057
|
children: t("Follow the instructions below to complete your return")
|
|
8052
8058
|
})]
|
|
8053
8059
|
}), jsxs("div", {
|
|
8054
|
-
className: styles$
|
|
8060
|
+
className: styles$D.card,
|
|
8055
8061
|
children: [jsxs("section", {
|
|
8056
|
-
className: styles$
|
|
8062
|
+
className: styles$D.step,
|
|
8057
8063
|
children: [jsxs("div", {
|
|
8058
|
-
className: styles$
|
|
8064
|
+
className: styles$D.stepHead,
|
|
8059
8065
|
children: [jsx("span", {
|
|
8060
|
-
className: styles$
|
|
8066
|
+
className: styles$D.number,
|
|
8061
8067
|
"aria-hidden": "true",
|
|
8062
8068
|
children: "1"
|
|
8063
8069
|
}), jsx("h2", {
|
|
8064
|
-
className: styles$
|
|
8070
|
+
className: styles$D.stepTitle,
|
|
8065
8071
|
children: t("Download your return label")
|
|
8066
8072
|
})]
|
|
8067
8073
|
}), jsx("p", {
|
|
8068
|
-
className: styles$
|
|
8074
|
+
className: styles$D.body,
|
|
8069
8075
|
children: t("Tap the button below to download your pre-paid return label")
|
|
8070
8076
|
}), ret.label_url && jsxs("a", {
|
|
8071
|
-
className: styles$
|
|
8077
|
+
className: styles$D.download,
|
|
8072
8078
|
href: ret.label_url,
|
|
8073
8079
|
target: "_blank",
|
|
8074
8080
|
rel: "noopener noreferrer",
|
|
@@ -8080,27 +8086,27 @@ function ReturnLabelView({ ret, onDone }) {
|
|
|
8080
8086
|
children: ` ${t("(opens in a new tab)")}`
|
|
8081
8087
|
})]
|
|
8082
8088
|
}), unavailable && jsx("p", {
|
|
8083
|
-
className: styles$
|
|
8089
|
+
className: styles$D.note,
|
|
8084
8090
|
role: "status",
|
|
8085
8091
|
children: t("Your return label is not ready yet. Try again in a moment.")
|
|
8086
8092
|
}), ret.label_email && jsxs("p", {
|
|
8087
|
-
className: styles$
|
|
8093
|
+
className: styles$D.note,
|
|
8088
8094
|
children: [t("You’ll receive a shipping label PDF to your email as well."), jsx("br", {}), ret.label_email]
|
|
8089
8095
|
})]
|
|
8090
8096
|
}), jsxs("section", {
|
|
8091
|
-
className: styles$
|
|
8097
|
+
className: styles$D.step2,
|
|
8092
8098
|
children: [jsxs("div", {
|
|
8093
|
-
className: styles$
|
|
8099
|
+
className: styles$D.stepHead,
|
|
8094
8100
|
children: [jsx("span", {
|
|
8095
|
-
className: styles$
|
|
8101
|
+
className: styles$D.number,
|
|
8096
8102
|
"aria-hidden": "true",
|
|
8097
8103
|
children: "2"
|
|
8098
8104
|
}), jsx("h2", {
|
|
8099
|
-
className: styles$
|
|
8105
|
+
className: styles$D.stepTitle,
|
|
8100
8106
|
children: t("Pack and ship the item")
|
|
8101
8107
|
})]
|
|
8102
8108
|
}), jsxs("p", {
|
|
8103
|
-
className: styles$
|
|
8109
|
+
className: styles$D.body2,
|
|
8104
8110
|
children: [t("Repackage the item securely and attach the return label to the outside of the package."), jsx("br", {}), t("Drop it off at your local carrier or post office.")]
|
|
8105
8111
|
})]
|
|
8106
8112
|
})]
|
|
@@ -8119,7 +8125,7 @@ const title$i = "_title_g4vus_15";
|
|
|
8119
8125
|
const subtitle$5 = "_subtitle_g4vus_35";
|
|
8120
8126
|
const items$1 = "_items_g4vus_43";
|
|
8121
8127
|
const item$1 = "_item_g4vus_43";
|
|
8122
|
-
const thumb = "_thumb_g4vus_58";
|
|
8128
|
+
const thumb$1 = "_thumb_g4vus_58";
|
|
8123
8129
|
const img = "_img_g4vus_68";
|
|
8124
8130
|
const placeholder$6 = "_placeholder_g4vus_75";
|
|
8125
8131
|
const meta$2 = "_meta_g4vus_80";
|
|
@@ -8128,14 +8134,14 @@ const attrs = "_attrs_g4vus_108";
|
|
|
8128
8134
|
const price$2 = "_price_g4vus_123";
|
|
8129
8135
|
const paid$1 = "_paid_g4vus_132";
|
|
8130
8136
|
const was$2 = "_was_g4vus_140";
|
|
8131
|
-
const styles$
|
|
8137
|
+
const styles$C = {
|
|
8132
8138
|
page: page$4,
|
|
8133
8139
|
titles: titles$1,
|
|
8134
8140
|
title: title$i,
|
|
8135
8141
|
subtitle: subtitle$5,
|
|
8136
8142
|
items: items$1,
|
|
8137
8143
|
item: item$1,
|
|
8138
|
-
thumb,
|
|
8144
|
+
thumb: thumb$1,
|
|
8139
8145
|
img,
|
|
8140
8146
|
placeholder: placeholder$6,
|
|
8141
8147
|
meta: meta$2,
|
|
@@ -8162,42 +8168,42 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
|
|
|
8162
8168
|
tone: "light",
|
|
8163
8169
|
fill: true,
|
|
8164
8170
|
children: jsxs("div", {
|
|
8165
|
-
className: styles$
|
|
8171
|
+
className: styles$C.page,
|
|
8166
8172
|
children: [jsxs("div", {
|
|
8167
|
-
className: styles$
|
|
8173
|
+
className: styles$C.titles,
|
|
8168
8174
|
children: [jsx("h1", {
|
|
8169
|
-
className: styles$
|
|
8175
|
+
className: styles$C.title,
|
|
8170
8176
|
children: t("Return in progress")
|
|
8171
8177
|
}), jsx("p", {
|
|
8172
|
-
className: styles$
|
|
8178
|
+
className: styles$C.subtitle,
|
|
8173
8179
|
children: t("Return #{0} · Reported {1}", ret.return_ref, reported)
|
|
8174
8180
|
})]
|
|
8175
8181
|
}), jsx(OrderTimeline, {
|
|
8176
8182
|
progress: ret.progress,
|
|
8177
8183
|
locale
|
|
8178
8184
|
}), jsx("ul", {
|
|
8179
|
-
className: styles$
|
|
8185
|
+
className: styles$C.items,
|
|
8180
8186
|
children: ret.items.map((item2) => jsxs("li", {
|
|
8181
|
-
className: styles$
|
|
8187
|
+
className: styles$C.item,
|
|
8182
8188
|
children: [jsx("div", {
|
|
8183
|
-
className: styles$
|
|
8189
|
+
className: styles$C.thumb,
|
|
8184
8190
|
children: item2.image ? jsx(ShopImage, {
|
|
8185
8191
|
src: item2.image,
|
|
8186
8192
|
alt: "",
|
|
8187
8193
|
fill: true,
|
|
8188
8194
|
sizes: "48px",
|
|
8189
|
-
className: styles$
|
|
8195
|
+
className: styles$C.img
|
|
8190
8196
|
}) : jsx("div", {
|
|
8191
|
-
className: styles$
|
|
8197
|
+
className: styles$C.placeholder,
|
|
8192
8198
|
"aria-hidden": "true"
|
|
8193
8199
|
})
|
|
8194
8200
|
}), jsxs("div", {
|
|
8195
|
-
className: styles$
|
|
8201
|
+
className: styles$C.meta,
|
|
8196
8202
|
children: [jsx("p", {
|
|
8197
|
-
className: styles$
|
|
8203
|
+
className: styles$C.name,
|
|
8198
8204
|
children: item2.title ?? item2.sku
|
|
8199
8205
|
}), (item2.attributes?.size || pctOff(item2)) && jsxs("p", {
|
|
8200
|
-
className: styles$
|
|
8206
|
+
className: styles$C.attrs,
|
|
8201
8207
|
children: [item2.attributes?.size && jsx("span", {
|
|
8202
8208
|
children: t("Size: {0}", item2.attributes.size)
|
|
8203
8209
|
}), pctOff(item2) !== void 0 && jsx(SaleBadge, {
|
|
@@ -8205,12 +8211,12 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
|
|
|
8205
8211
|
})]
|
|
8206
8212
|
})]
|
|
8207
8213
|
}), jsxs("div", {
|
|
8208
|
-
className: styles$
|
|
8214
|
+
className: styles$C.price,
|
|
8209
8215
|
children: [jsx("span", {
|
|
8210
|
-
className: styles$
|
|
8216
|
+
className: styles$C.paid,
|
|
8211
8217
|
children: format(item2.unit_price)
|
|
8212
8218
|
}), item2.compare_at_unit_price && jsx("span", {
|
|
8213
|
-
className: styles$
|
|
8219
|
+
className: styles$C.was,
|
|
8214
8220
|
children: format(item2.compare_at_unit_price)
|
|
8215
8221
|
})]
|
|
8216
8222
|
})]
|
|
@@ -8332,7 +8338,7 @@ const titleRow = "_titleRow_1iwin_26";
|
|
|
8332
8338
|
const headline$2 = "_headline_1iwin_42";
|
|
8333
8339
|
const track$5 = "_track_1iwin_74";
|
|
8334
8340
|
const rule$1 = "_rule_1iwin_99";
|
|
8335
|
-
const help = "_help_1iwin_109";
|
|
8341
|
+
const help$2 = "_help_1iwin_109";
|
|
8336
8342
|
const helpTitle = "_helpTitle_1iwin_115";
|
|
8337
8343
|
const helpRows = "_helpRows_1iwin_122";
|
|
8338
8344
|
const helpRowEnd = "_helpRowEnd_1iwin_131";
|
|
@@ -8342,14 +8348,14 @@ const cancel = "_cancel_1iwin_197";
|
|
|
8342
8348
|
const cancelledHead = "_cancelledHead_1iwin_221";
|
|
8343
8349
|
const cancelledTitle = "_cancelledTitle_1iwin_227";
|
|
8344
8350
|
const cancelledMeta = "_cancelledMeta_1iwin_241";
|
|
8345
|
-
const styles$
|
|
8351
|
+
const styles$B = {
|
|
8346
8352
|
page: page$3,
|
|
8347
8353
|
widget,
|
|
8348
8354
|
titleRow,
|
|
8349
8355
|
headline: headline$2,
|
|
8350
8356
|
track: track$5,
|
|
8351
8357
|
rule: rule$1,
|
|
8352
|
-
help,
|
|
8358
|
+
help: help$2,
|
|
8353
8359
|
helpTitle,
|
|
8354
8360
|
helpRows,
|
|
8355
8361
|
helpRowEnd,
|
|
@@ -8449,7 +8455,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8449
8455
|
}, [cancelled]);
|
|
8450
8456
|
if (state === "loading") {
|
|
8451
8457
|
return jsxs("div", {
|
|
8452
|
-
className: styles$
|
|
8458
|
+
className: styles$B.page,
|
|
8453
8459
|
children: [jsx(Skeleton, {
|
|
8454
8460
|
height: 206,
|
|
8455
8461
|
radius: 8
|
|
@@ -8527,15 +8533,15 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8527
8533
|
}
|
|
8528
8534
|
if (order.status === "cancelled") {
|
|
8529
8535
|
return jsxs("div", {
|
|
8530
|
-
className: styles$
|
|
8536
|
+
className: styles$B.page,
|
|
8531
8537
|
ref: cancelledPage,
|
|
8532
8538
|
children: [jsxs("div", {
|
|
8533
|
-
className: styles$
|
|
8539
|
+
className: styles$B.cancelledHead,
|
|
8534
8540
|
children: [jsx("h1", {
|
|
8535
|
-
className: styles$
|
|
8541
|
+
className: styles$B.cancelledTitle,
|
|
8536
8542
|
children: t("Order cancelled")
|
|
8537
8543
|
}), jsx("p", {
|
|
8538
|
-
className: styles$
|
|
8544
|
+
className: styles$B.cancelledMeta,
|
|
8539
8545
|
children: t("Order #{0} · Placed {1}", shortRef$1(order.order_ref), placedOn(order.placed_at, locale))
|
|
8540
8546
|
})]
|
|
8541
8547
|
}), !order.vip && jsx(Button, {
|
|
@@ -8554,17 +8560,17 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8554
8560
|
});
|
|
8555
8561
|
}
|
|
8556
8562
|
return jsxs("div", {
|
|
8557
|
-
className: styles$
|
|
8563
|
+
className: styles$B.page,
|
|
8558
8564
|
children: [jsxs("section", {
|
|
8559
|
-
className: styles$
|
|
8565
|
+
className: styles$B.widget,
|
|
8560
8566
|
"aria-label": t("Delivery status"),
|
|
8561
8567
|
children: [jsxs("div", {
|
|
8562
|
-
className: styles$
|
|
8568
|
+
className: styles$B.titleRow,
|
|
8563
8569
|
children: [jsx("h1", {
|
|
8564
|
-
className: styles$
|
|
8570
|
+
className: styles$B.headline,
|
|
8565
8571
|
children: t("Order #{0}", shortRef$1(order.order_ref))
|
|
8566
8572
|
}), order.tracking?.url && inTransit && jsxs("a", {
|
|
8567
|
-
className: styles$
|
|
8573
|
+
className: styles$B.track,
|
|
8568
8574
|
href: order.tracking.url,
|
|
8569
8575
|
target: "_blank",
|
|
8570
8576
|
rel: "noopener noreferrer",
|
|
@@ -8581,7 +8587,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8581
8587
|
locale
|
|
8582
8588
|
})]
|
|
8583
8589
|
}), jsx("hr", {
|
|
8584
|
-
className: styles$
|
|
8590
|
+
className: styles$B.rule
|
|
8585
8591
|
}), jsx(OrderLines, {
|
|
8586
8592
|
order
|
|
8587
8593
|
}), jsx(ShippingAddressCard, {
|
|
@@ -8590,7 +8596,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8590
8596
|
order
|
|
8591
8597
|
}), order.can_cancel && jsx("button", {
|
|
8592
8598
|
type: "button",
|
|
8593
|
-
className: styles$
|
|
8599
|
+
className: styles$B.cancel,
|
|
8594
8600
|
onClick: () => setCancelOpen(true),
|
|
8595
8601
|
children: t("Cancel order")
|
|
8596
8602
|
}), jsx(NeedHelp, {
|
|
@@ -8643,14 +8649,14 @@ function NeedHelp({ order, onStartReturn, onOpenReturn, onContactSupport }) {
|
|
|
8643
8649
|
if (order.status !== "delivered") return null;
|
|
8644
8650
|
const returns = order.returns ?? [];
|
|
8645
8651
|
return jsxs("section", {
|
|
8646
|
-
className: styles$
|
|
8652
|
+
className: styles$B.help,
|
|
8647
8653
|
"aria-labelledby": "order-help",
|
|
8648
8654
|
children: [jsx("h2", {
|
|
8649
|
-
className: styles$
|
|
8655
|
+
className: styles$B.helpTitle,
|
|
8650
8656
|
id: "order-help",
|
|
8651
8657
|
children: t("Need help?")
|
|
8652
8658
|
}), jsxs("div", {
|
|
8653
|
-
className: styles$
|
|
8659
|
+
className: styles$B.helpRows,
|
|
8654
8660
|
children: [returns.map((ret) => jsx(HelpRow, {
|
|
8655
8661
|
label: returns.length > 1 ? t("Track return {0}", ret.return_ref) : "Track your return",
|
|
8656
8662
|
status: RETURN_STATUS[ret.status] ?? ret.status.replace(/_/g, " "),
|
|
@@ -8680,14 +8686,14 @@ function HelpRow({ label: label2, status, onClick }) {
|
|
|
8680
8686
|
const t = useT();
|
|
8681
8687
|
return jsxs("button", {
|
|
8682
8688
|
type: "button",
|
|
8683
|
-
className: styles$
|
|
8689
|
+
className: styles$B.helpRow,
|
|
8684
8690
|
onClick,
|
|
8685
8691
|
children: [jsx("span", {
|
|
8686
8692
|
children: t(label2)
|
|
8687
8693
|
}), jsxs("span", {
|
|
8688
|
-
className: styles$
|
|
8694
|
+
className: styles$B.helpRowEnd,
|
|
8689
8695
|
children: [status && jsx("span", {
|
|
8690
|
-
className: styles$
|
|
8696
|
+
className: styles$B.helpStatus,
|
|
8691
8697
|
children: t(status)
|
|
8692
8698
|
}), jsx(ChevronRight$1, {})]
|
|
8693
8699
|
})]
|
|
@@ -8703,7 +8709,7 @@ const headline$1 = "_headline_vqbqs_47";
|
|
|
8703
8709
|
const subtitle$4 = "_subtitle_vqbqs_65";
|
|
8704
8710
|
const rule = "_rule_vqbqs_77";
|
|
8705
8711
|
const done = "_done_vqbqs_94";
|
|
8706
|
-
const styles$
|
|
8712
|
+
const styles$A = {
|
|
8707
8713
|
page: page$2,
|
|
8708
8714
|
confirmed,
|
|
8709
8715
|
title: title$h,
|
|
@@ -8757,7 +8763,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8757
8763
|
}, [load]);
|
|
8758
8764
|
if (state === "loading") {
|
|
8759
8765
|
return jsxs("div", {
|
|
8760
|
-
className: styles$
|
|
8766
|
+
className: styles$A.page,
|
|
8761
8767
|
children: [jsx(Skeleton, {
|
|
8762
8768
|
height: 140,
|
|
8763
8769
|
radius: 8
|
|
@@ -8780,17 +8786,17 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8780
8786
|
});
|
|
8781
8787
|
}
|
|
8782
8788
|
return jsxs("div", {
|
|
8783
|
-
className: styles$
|
|
8789
|
+
className: styles$A.page,
|
|
8784
8790
|
children: [jsxs("section", {
|
|
8785
|
-
className: styles$
|
|
8791
|
+
className: styles$A.confirmed,
|
|
8786
8792
|
"aria-label": t("Order confirmation"),
|
|
8787
8793
|
children: [jsxs("div", {
|
|
8788
|
-
className: styles$
|
|
8794
|
+
className: styles$A.title,
|
|
8789
8795
|
children: [jsx("h1", {
|
|
8790
|
-
className: styles$
|
|
8796
|
+
className: styles$A.headline,
|
|
8791
8797
|
children: t("Your order is confirmed")
|
|
8792
8798
|
}), order.email && jsx("p", {
|
|
8793
|
-
className: styles$
|
|
8799
|
+
className: styles$A.subtitle,
|
|
8794
8800
|
children: t("We’ve sent a confirmation to {0}", order.email)
|
|
8795
8801
|
})]
|
|
8796
8802
|
}), jsx(OrderTimeline, {
|
|
@@ -8801,7 +8807,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8801
8807
|
locale
|
|
8802
8808
|
})]
|
|
8803
8809
|
}), jsx("hr", {
|
|
8804
|
-
className: styles$
|
|
8810
|
+
className: styles$A.rule
|
|
8805
8811
|
}), jsx(OrderLines, {
|
|
8806
8812
|
order
|
|
8807
8813
|
}), jsx(ShippingAddressCard, {
|
|
@@ -8811,7 +8817,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8811
8817
|
}), onDone && jsx(Button, {
|
|
8812
8818
|
variant: "secondary",
|
|
8813
8819
|
fullWidth: true,
|
|
8814
|
-
className: styles$
|
|
8820
|
+
className: styles$A.done,
|
|
8815
8821
|
onClick: onDone,
|
|
8816
8822
|
children: t("Done")
|
|
8817
8823
|
})]
|
|
@@ -8822,7 +8828,7 @@ const progress = "_progress_u46qd_22";
|
|
|
8822
8828
|
const delivered = "_delivered_u46qd_27";
|
|
8823
8829
|
const neutral = "_neutral_u46qd_34";
|
|
8824
8830
|
const critical = "_critical_u46qd_43";
|
|
8825
|
-
const styles$
|
|
8831
|
+
const styles$z = {
|
|
8826
8832
|
badge: badge$2,
|
|
8827
8833
|
progress,
|
|
8828
8834
|
delivered,
|
|
@@ -8848,7 +8854,7 @@ function OrderStatusBadge({ status }) {
|
|
|
8848
8854
|
const label2 = LABEL[status] ?? status.replace(/_/g, " ");
|
|
8849
8855
|
const tone = TONE[status] ?? "neutral";
|
|
8850
8856
|
return jsx("span", {
|
|
8851
|
-
className: [styles$
|
|
8857
|
+
className: [styles$z.badge, styles$z[tone]].join(" "),
|
|
8852
8858
|
children: t(label2)
|
|
8853
8859
|
});
|
|
8854
8860
|
}
|
|
@@ -8867,13 +8873,13 @@ function ReturnStatusBadge({ status }) {
|
|
|
8867
8873
|
const label2 = RETURN_LABEL[status] ?? status.replace(/_/g, " ");
|
|
8868
8874
|
const tone = RETURN_TONE[status] ?? "neutral";
|
|
8869
8875
|
return jsx("span", {
|
|
8870
|
-
className: [styles$
|
|
8876
|
+
className: [styles$z.badge, styles$z[tone]].join(" "),
|
|
8871
8877
|
children: t(label2)
|
|
8872
8878
|
});
|
|
8873
8879
|
}
|
|
8874
8880
|
const page$1 = "_page_qj11j_2";
|
|
8875
8881
|
const empty = "_empty_qj11j_22";
|
|
8876
|
-
const cta$
|
|
8882
|
+
const cta$3 = "_cta_qj11j_32";
|
|
8877
8883
|
const card$1 = "_card_qj11j_55";
|
|
8878
8884
|
const tappable = "_tappable_qj11j_70";
|
|
8879
8885
|
const head$1 = "_head_qj11j_79";
|
|
@@ -8884,14 +8890,14 @@ const bottom$1 = "_bottom_qj11j_120";
|
|
|
8884
8890
|
const strip = "_strip_qj11j_128";
|
|
8885
8891
|
const meta$1 = "_meta_qj11j_141";
|
|
8886
8892
|
const tile$2 = "_tile_qj11j_150";
|
|
8887
|
-
const image$
|
|
8893
|
+
const image$a = "_image_qj11j_160";
|
|
8888
8894
|
const placeholder$5 = "_placeholder_qj11j_167";
|
|
8889
8895
|
const more = "_more_qj11j_174";
|
|
8890
8896
|
const chevron$2 = "_chevron_qj11j_187";
|
|
8891
|
-
const styles$
|
|
8897
|
+
const styles$y = {
|
|
8892
8898
|
page: page$1,
|
|
8893
8899
|
empty,
|
|
8894
|
-
cta: cta$
|
|
8900
|
+
cta: cta$3,
|
|
8895
8901
|
card: card$1,
|
|
8896
8902
|
tappable,
|
|
8897
8903
|
head: head$1,
|
|
@@ -8902,7 +8908,7 @@ const styles$w = {
|
|
|
8902
8908
|
strip,
|
|
8903
8909
|
meta: meta$1,
|
|
8904
8910
|
tile: tile$2,
|
|
8905
|
-
image: image$
|
|
8911
|
+
image: image$a,
|
|
8906
8912
|
placeholder: placeholder$5,
|
|
8907
8913
|
more,
|
|
8908
8914
|
chevron: chevron$2
|
|
@@ -8966,7 +8972,7 @@ function OrderListContent({ onOpenOrder, onOpenReturn, onStartShopping, locale:
|
|
|
8966
8972
|
}, [load]);
|
|
8967
8973
|
if (state === "loading") {
|
|
8968
8974
|
return jsxs("div", {
|
|
8969
|
-
className: styles$
|
|
8975
|
+
className: styles$y.page,
|
|
8970
8976
|
children: [jsx(Skeleton, {
|
|
8971
8977
|
height: 148,
|
|
8972
8978
|
radius: 12
|
|
@@ -8987,14 +8993,14 @@ function OrderListContent({ onOpenOrder, onOpenReturn, onStartShopping, locale:
|
|
|
8987
8993
|
}
|
|
8988
8994
|
if (orders2.length === 0 && returns.length === 0) {
|
|
8989
8995
|
return jsx("div", {
|
|
8990
|
-
className: styles$
|
|
8996
|
+
className: styles$y.empty,
|
|
8991
8997
|
children: jsx(EmptyState, {
|
|
8992
8998
|
title: t("Nothing here yet"),
|
|
8993
8999
|
body: t("Your orders will show up here once you've shopped."),
|
|
8994
9000
|
...onStartShopping ? {
|
|
8995
9001
|
action: jsx("button", {
|
|
8996
9002
|
type: "button",
|
|
8997
|
-
className: styles$
|
|
9003
|
+
className: styles$y.cta,
|
|
8998
9004
|
onClick: onStartShopping,
|
|
8999
9005
|
children: t("Continue shopping")
|
|
9000
9006
|
})
|
|
@@ -9012,7 +9018,7 @@ function OrderListContent({ onOpenOrder, onOpenReturn, onStartShopping, locale:
|
|
|
9012
9018
|
ret
|
|
9013
9019
|
}))].sort((a, b) => Date.parse(b.at) - Date.parse(a.at));
|
|
9014
9020
|
return jsx("ul", {
|
|
9015
|
-
className: styles$
|
|
9021
|
+
className: styles$y.page,
|
|
9016
9022
|
children: rows.map((row2) => jsx("li", {
|
|
9017
9023
|
children: "order" in row2 ? jsx(OrderCard, {
|
|
9018
9024
|
order: row2.order,
|
|
@@ -9036,39 +9042,39 @@ function ReturnCard({ ret, locale, onOpen }) {
|
|
|
9036
9042
|
const items2 = `${ret.item_count} ${ret.item_count === 1 ? t("item") : t("items")}`;
|
|
9037
9043
|
const body3 = jsxs(Fragment, {
|
|
9038
9044
|
children: [jsxs("div", {
|
|
9039
|
-
className: styles$
|
|
9045
|
+
className: styles$y.head,
|
|
9040
9046
|
children: [jsxs("div", {
|
|
9041
|
-
className: styles$
|
|
9047
|
+
className: styles$y.heading,
|
|
9042
9048
|
children: [jsx("span", {
|
|
9043
|
-
className: styles$
|
|
9049
|
+
className: styles$y.title,
|
|
9044
9050
|
children: `${t("Return")} #${shortRef(ret.return_ref)}`
|
|
9045
9051
|
}), jsx("span", {
|
|
9046
|
-
className: styles$
|
|
9052
|
+
className: styles$y.date,
|
|
9047
9053
|
children: formatPlaced(ret.reported_at, locale)
|
|
9048
9054
|
})]
|
|
9049
9055
|
}), jsx(ReturnStatusBadge, {
|
|
9050
9056
|
status: ret.status
|
|
9051
9057
|
})]
|
|
9052
9058
|
}), jsxs("div", {
|
|
9053
|
-
className: styles$
|
|
9059
|
+
className: styles$y.bottom,
|
|
9054
9060
|
children: [jsx(ReturnThumbnails, {
|
|
9055
9061
|
ret
|
|
9056
9062
|
}), jsx("span", {
|
|
9057
|
-
className: styles$
|
|
9063
|
+
className: styles$y.meta,
|
|
9058
9064
|
children: `${items2} · ${money2(ret.value)}`
|
|
9059
9065
|
}), onOpen && jsx("span", {
|
|
9060
|
-
className: styles$
|
|
9066
|
+
className: styles$y.chevron,
|
|
9061
9067
|
children: jsx(Chevron, {})
|
|
9062
9068
|
})]
|
|
9063
9069
|
})]
|
|
9064
9070
|
});
|
|
9065
9071
|
if (!onOpen) return jsx("div", {
|
|
9066
|
-
className: styles$
|
|
9072
|
+
className: styles$y.card,
|
|
9067
9073
|
children: body3
|
|
9068
9074
|
});
|
|
9069
9075
|
return jsx("button", {
|
|
9070
9076
|
type: "button",
|
|
9071
|
-
className: [styles$
|
|
9077
|
+
className: [styles$y.card, styles$y.tappable].join(" "),
|
|
9072
9078
|
onClick: onOpen,
|
|
9073
9079
|
"aria-label": `${t("Return")} ${shortRef(ret.return_ref)}, ${ret.headline}`,
|
|
9074
9080
|
children: body3
|
|
@@ -9081,27 +9087,27 @@ function ReturnThumbnails({ ret }) {
|
|
|
9081
9087
|
const overflow = images.length >= TILES && hidden > 1 ? hidden : 0;
|
|
9082
9088
|
if (images.length === 0) {
|
|
9083
9089
|
return jsx("div", {
|
|
9084
|
-
className: styles$
|
|
9090
|
+
className: styles$y.strip,
|
|
9085
9091
|
children: jsx("div", {
|
|
9086
|
-
className: [styles$
|
|
9092
|
+
className: [styles$y.tile, styles$y.placeholder].join(" "),
|
|
9087
9093
|
"aria-hidden": "true"
|
|
9088
9094
|
})
|
|
9089
9095
|
});
|
|
9090
9096
|
}
|
|
9091
9097
|
return jsx("div", {
|
|
9092
|
-
className: styles$
|
|
9098
|
+
className: styles$y.strip,
|
|
9093
9099
|
children: images.map((src, i) => {
|
|
9094
9100
|
const last = i === images.length - 1;
|
|
9095
9101
|
return jsxs("div", {
|
|
9096
|
-
className: styles$
|
|
9102
|
+
className: styles$y.tile,
|
|
9097
9103
|
children: [jsx(ShopImage, {
|
|
9098
9104
|
src,
|
|
9099
9105
|
alt: "",
|
|
9100
9106
|
fill: true,
|
|
9101
9107
|
sizes: "56px",
|
|
9102
|
-
className: styles$
|
|
9108
|
+
className: styles$y.image
|
|
9103
9109
|
}), overflow > 0 && last && jsxs("span", {
|
|
9104
|
-
className: styles$
|
|
9110
|
+
className: styles$y.more,
|
|
9105
9111
|
children: [jsxs("span", {
|
|
9106
9112
|
"aria-hidden": "true",
|
|
9107
9113
|
children: ["+", overflow]
|
|
@@ -9118,36 +9124,36 @@ function OrderCard({ order, locale, onOpen }) {
|
|
|
9118
9124
|
const t = useT();
|
|
9119
9125
|
const body3 = jsxs(Fragment, {
|
|
9120
9126
|
children: [jsxs("div", {
|
|
9121
|
-
className: styles$
|
|
9127
|
+
className: styles$y.head,
|
|
9122
9128
|
children: [jsxs("div", {
|
|
9123
|
-
className: styles$
|
|
9129
|
+
className: styles$y.heading,
|
|
9124
9130
|
children: [jsx("span", {
|
|
9125
|
-
className: styles$
|
|
9131
|
+
className: styles$y.title,
|
|
9126
9132
|
children: t("Order #{0}", shortRef(order.order_ref))
|
|
9127
9133
|
}), jsx("span", {
|
|
9128
|
-
className: styles$
|
|
9134
|
+
className: styles$y.date,
|
|
9129
9135
|
children: formatPlaced(order.placed_at, locale)
|
|
9130
9136
|
})]
|
|
9131
9137
|
}), jsx(OrderStatusBadge, {
|
|
9132
9138
|
status: order.status
|
|
9133
9139
|
})]
|
|
9134
9140
|
}), jsxs("div", {
|
|
9135
|
-
className: styles$
|
|
9141
|
+
className: styles$y.bottom,
|
|
9136
9142
|
children: [jsx(Thumbnails, {
|
|
9137
9143
|
order
|
|
9138
9144
|
}), onOpen && jsx("span", {
|
|
9139
|
-
className: styles$
|
|
9145
|
+
className: styles$y.chevron,
|
|
9140
9146
|
children: jsx(Chevron, {})
|
|
9141
9147
|
})]
|
|
9142
9148
|
})]
|
|
9143
9149
|
});
|
|
9144
9150
|
if (!onOpen) return jsx("div", {
|
|
9145
|
-
className: styles$
|
|
9151
|
+
className: styles$y.card,
|
|
9146
9152
|
children: body3
|
|
9147
9153
|
});
|
|
9148
9154
|
return jsx("button", {
|
|
9149
9155
|
type: "button",
|
|
9150
|
-
className: [styles$
|
|
9156
|
+
className: [styles$y.card, styles$y.tappable].join(" "),
|
|
9151
9157
|
onClick: onOpen,
|
|
9152
9158
|
"aria-label": `Order ${shortRef(order.order_ref)}, ${order.headline}`,
|
|
9153
9159
|
children: body3
|
|
@@ -9160,27 +9166,27 @@ function Thumbnails({ order }) {
|
|
|
9160
9166
|
const overflow = images.length >= TILES && hidden > 1 ? hidden : 0;
|
|
9161
9167
|
if (images.length === 0) {
|
|
9162
9168
|
return jsx("div", {
|
|
9163
|
-
className: styles$
|
|
9169
|
+
className: styles$y.strip,
|
|
9164
9170
|
children: jsx("div", {
|
|
9165
|
-
className: [styles$
|
|
9171
|
+
className: [styles$y.tile, styles$y.placeholder].join(" "),
|
|
9166
9172
|
"aria-hidden": "true"
|
|
9167
9173
|
})
|
|
9168
9174
|
});
|
|
9169
9175
|
}
|
|
9170
9176
|
return jsx("div", {
|
|
9171
|
-
className: styles$
|
|
9177
|
+
className: styles$y.strip,
|
|
9172
9178
|
children: images.map((src, i) => {
|
|
9173
9179
|
const last = i === images.length - 1;
|
|
9174
9180
|
return jsxs("div", {
|
|
9175
|
-
className: styles$
|
|
9181
|
+
className: styles$y.tile,
|
|
9176
9182
|
children: [jsx(ShopImage, {
|
|
9177
9183
|
src,
|
|
9178
9184
|
alt: "",
|
|
9179
9185
|
fill: true,
|
|
9180
9186
|
sizes: "56px",
|
|
9181
|
-
className: styles$
|
|
9187
|
+
className: styles$y.image
|
|
9182
9188
|
}), overflow > 0 && last && jsxs("span", {
|
|
9183
|
-
className: styles$
|
|
9189
|
+
className: styles$y.more,
|
|
9184
9190
|
children: [jsxs("span", {
|
|
9185
9191
|
"aria-hidden": "true",
|
|
9186
9192
|
children: ["+", overflow]
|
|
@@ -9210,7 +9216,7 @@ const swatches = "_swatches_mdi63_1";
|
|
|
9210
9216
|
const swatch = "_swatch_mdi63_1";
|
|
9211
9217
|
const swatchActive = "_swatchActive_mdi63_18";
|
|
9212
9218
|
const swatchDot = "_swatchDot_mdi63_22";
|
|
9213
|
-
const styles$
|
|
9219
|
+
const styles$x = {
|
|
9214
9220
|
swatches,
|
|
9215
9221
|
swatch,
|
|
9216
9222
|
swatchActive,
|
|
@@ -9220,12 +9226,12 @@ function ColourSwatches({ variants, className }) {
|
|
|
9220
9226
|
const colours = colourOptions(variants);
|
|
9221
9227
|
if (colours.length === 0) return null;
|
|
9222
9228
|
return jsx("div", {
|
|
9223
|
-
className: [styles$
|
|
9229
|
+
className: [styles$x.swatches, className ?? ""].join(" ").trim(),
|
|
9224
9230
|
"aria-hidden": "true",
|
|
9225
9231
|
children: colours.map((c, i) => jsx("span", {
|
|
9226
|
-
className: [styles$
|
|
9232
|
+
className: [styles$x.swatch, i === 0 ? styles$x.swatchActive : ""].join(" "),
|
|
9227
9233
|
children: jsx("span", {
|
|
9228
|
-
className: styles$
|
|
9234
|
+
className: styles$x.swatchDot,
|
|
9229
9235
|
style: {
|
|
9230
9236
|
background: swatchColour(c.value)
|
|
9231
9237
|
}
|
|
@@ -9235,7 +9241,7 @@ function ColourSwatches({ variants, className }) {
|
|
|
9235
9241
|
}
|
|
9236
9242
|
const tile$1 = "_tile_yg69t_7";
|
|
9237
9243
|
const media$2 = "_media_yg69t_15";
|
|
9238
|
-
const image$
|
|
9244
|
+
const image$9 = "_image_yg69t_25";
|
|
9239
9245
|
const placeholder$4 = "_placeholder_yg69t_29";
|
|
9240
9246
|
const topBadge = "_topBadge_yg69t_37";
|
|
9241
9247
|
const saleBadge$2 = "_saleBadge_yg69t_78";
|
|
@@ -9245,10 +9251,10 @@ const titlePrice$1 = "_titlePrice_yg69t_100";
|
|
|
9245
9251
|
const title$f = "_title_yg69t_5";
|
|
9246
9252
|
const large = "_large_yg69t_185";
|
|
9247
9253
|
const swatchSlot = "_swatchSlot_yg69t_223";
|
|
9248
|
-
const styles$
|
|
9254
|
+
const styles$w = {
|
|
9249
9255
|
tile: tile$1,
|
|
9250
9256
|
media: media$2,
|
|
9251
|
-
image: image$
|
|
9257
|
+
image: image$9,
|
|
9252
9258
|
placeholder: placeholder$4,
|
|
9253
9259
|
topBadge,
|
|
9254
9260
|
saleBadge: saleBadge$2,
|
|
@@ -9267,37 +9273,37 @@ function ProductTile({ product, priority, size = "default" }) {
|
|
|
9267
9273
|
const t = useT();
|
|
9268
9274
|
return jsxs(ShopLink, {
|
|
9269
9275
|
to: `/product/${encodeURIComponent(product.sku)}`,
|
|
9270
|
-
className: [styles$
|
|
9276
|
+
className: [styles$w.tile, size === "large" ? styles$w.large : ""].join(" "),
|
|
9271
9277
|
children: [jsxs("div", {
|
|
9272
|
-
className: styles$
|
|
9278
|
+
className: styles$w.media,
|
|
9273
9279
|
children: [image2 ? jsx(ShopImage, {
|
|
9274
9280
|
src: image2,
|
|
9275
9281
|
alt: product.title,
|
|
9276
9282
|
fill: true,
|
|
9277
9283
|
sizes: size === "large" ? "(max-width: 480px) 100vw, 480px" : "(max-width: 480px) 45vw, 200px",
|
|
9278
|
-
className: styles$
|
|
9284
|
+
className: styles$w.image,
|
|
9279
9285
|
priority
|
|
9280
9286
|
}) : jsx("div", {
|
|
9281
|
-
className: styles$
|
|
9287
|
+
className: styles$w.placeholder,
|
|
9282
9288
|
"aria-hidden": "true"
|
|
9283
9289
|
}), anyInStock && topBadge2 && jsx("span", {
|
|
9284
|
-
className: styles$
|
|
9290
|
+
className: styles$w.topBadge,
|
|
9285
9291
|
children: topBadge2
|
|
9286
9292
|
}), anyInStock && pct !== void 0 && jsx("span", {
|
|
9287
|
-
className: styles$
|
|
9293
|
+
className: styles$w.saleBadge,
|
|
9288
9294
|
children: jsx(SaleBadge, {
|
|
9289
9295
|
pct
|
|
9290
9296
|
})
|
|
9291
9297
|
}), !anyInStock && jsx("span", {
|
|
9292
|
-
className: styles$
|
|
9298
|
+
className: styles$w.oos,
|
|
9293
9299
|
children: t("Out of stock")
|
|
9294
9300
|
})]
|
|
9295
9301
|
}), jsxs("div", {
|
|
9296
|
-
className: styles$
|
|
9302
|
+
className: styles$w.bottom,
|
|
9297
9303
|
children: [jsxs("div", {
|
|
9298
|
-
className: styles$
|
|
9304
|
+
className: styles$w.titlePrice,
|
|
9299
9305
|
children: [jsx("span", {
|
|
9300
|
-
className: styles$
|
|
9306
|
+
className: styles$w.title,
|
|
9301
9307
|
children: product.title
|
|
9302
9308
|
}), jsx(PriceBlock, {
|
|
9303
9309
|
price: product.price,
|
|
@@ -9308,7 +9314,7 @@ function ProductTile({ product, priority, size = "default" }) {
|
|
|
9308
9314
|
})]
|
|
9309
9315
|
}), jsx(ColourSwatches, {
|
|
9310
9316
|
variants: product.variants,
|
|
9311
|
-
className: styles$
|
|
9317
|
+
className: styles$w.swatchSlot
|
|
9312
9318
|
})]
|
|
9313
9319
|
})]
|
|
9314
9320
|
});
|
|
@@ -9318,7 +9324,7 @@ const title$e = "_title_v48ok_21";
|
|
|
9318
9324
|
const link = "_link_v48ok_30";
|
|
9319
9325
|
const track$4 = "_track_v48ok_42";
|
|
9320
9326
|
const frame = "_frame_v48ok_62";
|
|
9321
|
-
const image$
|
|
9327
|
+
const image$8 = "_image_v48ok_73";
|
|
9322
9328
|
const placeholder$3 = "_placeholder_v48ok_77";
|
|
9323
9329
|
const saleBadge$1 = "_saleBadge_v48ok_89";
|
|
9324
9330
|
const oos$2 = "_oos_v48ok_97";
|
|
@@ -9328,13 +9334,13 @@ const name = "_name_v48ok_142";
|
|
|
9328
9334
|
const price$1 = "_price_v48ok_155";
|
|
9329
9335
|
const paid = "_paid_v48ok_164";
|
|
9330
9336
|
const was$1 = "_was_v48ok_170";
|
|
9331
|
-
const styles$
|
|
9337
|
+
const styles$v = {
|
|
9332
9338
|
section: section$3,
|
|
9333
9339
|
title: title$e,
|
|
9334
9340
|
link,
|
|
9335
9341
|
track: track$4,
|
|
9336
9342
|
frame,
|
|
9337
|
-
image: image$
|
|
9343
|
+
image: image$8,
|
|
9338
9344
|
placeholder: placeholder$3,
|
|
9339
9345
|
saleBadge: saleBadge$1,
|
|
9340
9346
|
oos: oos$2,
|
|
@@ -9352,54 +9358,54 @@ function ProductGallery({ title: title2, product }) {
|
|
|
9352
9358
|
const inStock = product.variants.some((v) => v.in_stock);
|
|
9353
9359
|
const images = product.media.length > 0 ? product.media : [void 0];
|
|
9354
9360
|
return jsxs("section", {
|
|
9355
|
-
className: styles$
|
|
9361
|
+
className: styles$v.section,
|
|
9356
9362
|
"aria-labelledby": `gallery-${product.sku}`,
|
|
9357
9363
|
children: [jsx("h2", {
|
|
9358
|
-
className: styles$
|
|
9364
|
+
className: styles$v.title,
|
|
9359
9365
|
id: `gallery-${product.sku}`,
|
|
9360
9366
|
children: title2
|
|
9361
9367
|
}), jsxs(ShopLink, {
|
|
9362
9368
|
to: `/product/${encodeURIComponent(product.sku)}`,
|
|
9363
|
-
className: styles$
|
|
9369
|
+
className: styles$v.link,
|
|
9364
9370
|
children: [jsx("ul", {
|
|
9365
|
-
className: styles$
|
|
9371
|
+
className: styles$v.track,
|
|
9366
9372
|
"aria-label": t("{0} photographs", product.title),
|
|
9367
9373
|
children: images.map((src, i) => jsxs("li", {
|
|
9368
|
-
className: styles$
|
|
9374
|
+
className: styles$v.frame,
|
|
9369
9375
|
children: [src ? jsx(ShopImage, {
|
|
9370
9376
|
src,
|
|
9371
9377
|
alt: "",
|
|
9372
9378
|
fill: true,
|
|
9373
9379
|
sizes: "165px",
|
|
9374
|
-
className: styles$
|
|
9380
|
+
className: styles$v.image,
|
|
9375
9381
|
...i === 0 ? {
|
|
9376
9382
|
priority: true
|
|
9377
9383
|
} : {}
|
|
9378
9384
|
}) : jsx("div", {
|
|
9379
|
-
className: styles$
|
|
9385
|
+
className: styles$v.placeholder,
|
|
9380
9386
|
"aria-hidden": "true"
|
|
9381
9387
|
}), i === 0 && inStock && pct !== void 0 && jsx("span", {
|
|
9382
|
-
className: styles$
|
|
9388
|
+
className: styles$v.saleBadge,
|
|
9383
9389
|
children: jsx(SaleBadge, {
|
|
9384
9390
|
pct
|
|
9385
9391
|
})
|
|
9386
9392
|
}), i === 0 && !inStock && jsx("span", {
|
|
9387
|
-
className: styles$
|
|
9393
|
+
className: styles$v.oos,
|
|
9388
9394
|
children: t("Out of stock")
|
|
9389
9395
|
})]
|
|
9390
9396
|
}, src ?? i))
|
|
9391
9397
|
}), jsxs("div", {
|
|
9392
|
-
className: styles$
|
|
9398
|
+
className: styles$v.caption,
|
|
9393
9399
|
children: [jsx("span", {
|
|
9394
|
-
className: styles$
|
|
9400
|
+
className: styles$v.name,
|
|
9395
9401
|
children: product.title
|
|
9396
9402
|
}), jsxs("span", {
|
|
9397
|
-
className: styles$
|
|
9403
|
+
className: styles$v.price,
|
|
9398
9404
|
children: [jsx("span", {
|
|
9399
|
-
className: styles$
|
|
9405
|
+
className: styles$v.paid,
|
|
9400
9406
|
children: format(product.price)
|
|
9401
9407
|
}), product.compare_at && jsxs("span", {
|
|
9402
|
-
className: styles$
|
|
9408
|
+
className: styles$v.was,
|
|
9403
9409
|
children: [jsx("span", {
|
|
9404
9410
|
className: "visually-hidden",
|
|
9405
9411
|
children: t("Was {0}", format(product.compare_at))
|
|
@@ -9410,7 +9416,7 @@ function ProductGallery({ title: title2, product }) {
|
|
|
9410
9416
|
})]
|
|
9411
9417
|
}), jsx(ColourSwatches, {
|
|
9412
9418
|
variants: product.variants,
|
|
9413
|
-
className: styles$
|
|
9419
|
+
className: styles$v.swatchRow
|
|
9414
9420
|
})]
|
|
9415
9421
|
})]
|
|
9416
9422
|
})]
|
|
@@ -9421,7 +9427,7 @@ const chips$1 = "_chips_6p29u_8";
|
|
|
9421
9427
|
const chip$1 = "_chip_6p29u_8";
|
|
9422
9428
|
const on = "_on_6p29u_36";
|
|
9423
9429
|
const clear = "_clear_6p29u_42";
|
|
9424
|
-
const styles$
|
|
9430
|
+
const styles$u = {
|
|
9425
9431
|
bar: bar$1,
|
|
9426
9432
|
chips: chips$1,
|
|
9427
9433
|
chip: chip$1,
|
|
@@ -9432,24 +9438,24 @@ function FilterBar({ options: options2, active, onToggle, onClear }) {
|
|
|
9432
9438
|
const t = useT();
|
|
9433
9439
|
const hasActive = active.length > 0;
|
|
9434
9440
|
return jsxs("div", {
|
|
9435
|
-
className: styles$
|
|
9441
|
+
className: styles$u.bar,
|
|
9436
9442
|
role: "group",
|
|
9437
9443
|
"aria-label": t("Filters"),
|
|
9438
9444
|
children: [jsx("div", {
|
|
9439
|
-
className: styles$
|
|
9445
|
+
className: styles$u.chips,
|
|
9440
9446
|
children: options2.map((opt) => {
|
|
9441
9447
|
const on2 = active.includes(opt.value);
|
|
9442
9448
|
return jsx("button", {
|
|
9443
9449
|
type: "button",
|
|
9444
9450
|
"aria-pressed": on2,
|
|
9445
|
-
className: [styles$
|
|
9451
|
+
className: [styles$u.chip, on2 ? styles$u.on : ""].join(" "),
|
|
9446
9452
|
onClick: () => onToggle(opt.value),
|
|
9447
9453
|
children: opt.label
|
|
9448
9454
|
}, opt.value);
|
|
9449
9455
|
})
|
|
9450
9456
|
}), hasActive && onClear && jsx("button", {
|
|
9451
9457
|
type: "button",
|
|
9452
|
-
className: styles$
|
|
9458
|
+
className: styles$u.clear,
|
|
9453
9459
|
onClick: onClear,
|
|
9454
9460
|
children: t("Clear")
|
|
9455
9461
|
})]
|
|
@@ -9457,7 +9463,7 @@ function FilterBar({ options: options2, active, onToggle, onClear }) {
|
|
|
9457
9463
|
}
|
|
9458
9464
|
const wrap$2 = "_wrap_15ntf_1";
|
|
9459
9465
|
const grid$1 = "_grid_15ntf_7";
|
|
9460
|
-
const styles$
|
|
9466
|
+
const styles$t = {
|
|
9461
9467
|
wrap: wrap$2,
|
|
9462
9468
|
grid: grid$1
|
|
9463
9469
|
};
|
|
@@ -9503,7 +9509,7 @@ function ProductGrid({ category, initialProducts, initialCursor, filters = [] })
|
|
|
9503
9509
|
}, [loadMore]);
|
|
9504
9510
|
const visible = active.length === 0 ? products : products.filter((p) => active.includes(p.category));
|
|
9505
9511
|
return jsxs("div", {
|
|
9506
|
-
className: styles$
|
|
9512
|
+
className: styles$t.wrap,
|
|
9507
9513
|
children: [filters.length > 0 && jsx(FilterBar, {
|
|
9508
9514
|
options: filters,
|
|
9509
9515
|
active,
|
|
@@ -9518,7 +9524,7 @@ function ProductGrid({ category, initialProducts, initialCursor, filters = [] })
|
|
|
9518
9524
|
children: t("Clear filters")
|
|
9519
9525
|
}) : void 0
|
|
9520
9526
|
}) : jsx("ul", {
|
|
9521
|
-
className: styles$
|
|
9527
|
+
className: styles$t.grid,
|
|
9522
9528
|
children: visible.map((product, i) => jsx("li", {
|
|
9523
9529
|
children: jsx(ProductTile, {
|
|
9524
9530
|
product,
|
|
@@ -9526,7 +9532,7 @@ function ProductGrid({ category, initialProducts, initialCursor, filters = [] })
|
|
|
9526
9532
|
})
|
|
9527
9533
|
}, product.sku))
|
|
9528
9534
|
}), loading && jsx("div", {
|
|
9529
|
-
className: styles$
|
|
9535
|
+
className: styles$t.grid,
|
|
9530
9536
|
"aria-hidden": "true",
|
|
9531
9537
|
children: [0, 1].map((i) => jsx(Skeleton, {
|
|
9532
9538
|
height: 200,
|
|
@@ -9545,7 +9551,7 @@ const seeAll = "_seeAll_1rll1_27";
|
|
|
9545
9551
|
const track$3 = "_track_1rll1_33";
|
|
9546
9552
|
const item = "_item_1rll1_67";
|
|
9547
9553
|
const inset = "_inset_1rll1_79";
|
|
9548
|
-
const styles$
|
|
9554
|
+
const styles$s = {
|
|
9549
9555
|
rail,
|
|
9550
9556
|
header: header$5,
|
|
9551
9557
|
title: title$d,
|
|
@@ -9558,22 +9564,22 @@ function RailCarousel({ title: title2, products, seeAllTo, inset: inset2 }) {
|
|
|
9558
9564
|
const t = useT();
|
|
9559
9565
|
if (products.length === 0) return null;
|
|
9560
9566
|
return jsxs("section", {
|
|
9561
|
-
className: [styles$
|
|
9567
|
+
className: [styles$s.rail, inset2 ? styles$s.inset : ""].join(" "),
|
|
9562
9568
|
"aria-label": title2,
|
|
9563
9569
|
children: [jsxs("div", {
|
|
9564
|
-
className: styles$
|
|
9570
|
+
className: styles$s.header,
|
|
9565
9571
|
children: [jsx("h2", {
|
|
9566
|
-
className: styles$
|
|
9572
|
+
className: styles$s.title,
|
|
9567
9573
|
children: title2
|
|
9568
9574
|
}), seeAllTo && jsx(ShopLink, {
|
|
9569
|
-
className: styles$
|
|
9575
|
+
className: styles$s.seeAll,
|
|
9570
9576
|
to: seeAllTo,
|
|
9571
9577
|
children: t("See all")
|
|
9572
9578
|
})]
|
|
9573
9579
|
}), jsx("ul", {
|
|
9574
|
-
className: styles$
|
|
9580
|
+
className: styles$s.track,
|
|
9575
9581
|
children: products.map((product, i) => jsx("li", {
|
|
9576
|
-
className: styles$
|
|
9582
|
+
className: styles$s.item,
|
|
9577
9583
|
children: jsx(ProductTile, {
|
|
9578
9584
|
product,
|
|
9579
9585
|
priority: i < 2
|
|
@@ -9592,7 +9598,7 @@ const title$c = "_title_uxpgl_67";
|
|
|
9592
9598
|
const close$1 = "_close_uxpgl_71";
|
|
9593
9599
|
const body$5 = "_body_uxpgl_84";
|
|
9594
9600
|
const footer = "_footer_uxpgl_97";
|
|
9595
|
-
const styles$
|
|
9601
|
+
const styles$r = {
|
|
9596
9602
|
overlay: overlay$2,
|
|
9597
9603
|
scrim: scrim$4,
|
|
9598
9604
|
sheet: sheet$2,
|
|
@@ -9632,14 +9638,14 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9632
9638
|
useModalDialog(open, onClose, sheetRef);
|
|
9633
9639
|
if (!open) return null;
|
|
9634
9640
|
return jsxs("div", {
|
|
9635
|
-
className: styles$
|
|
9641
|
+
className: styles$r.overlay,
|
|
9636
9642
|
children: [jsx("div", {
|
|
9637
|
-
className: styles$
|
|
9643
|
+
className: styles$r.scrim,
|
|
9638
9644
|
onClick: onClose,
|
|
9639
9645
|
"aria-hidden": "true"
|
|
9640
9646
|
}), jsxs(ShopSurface, {
|
|
9641
9647
|
tone: "light",
|
|
9642
|
-
className: styles$
|
|
9648
|
+
className: styles$r.sheet,
|
|
9643
9649
|
role: "dialog",
|
|
9644
9650
|
"aria-modal": "true",
|
|
9645
9651
|
"aria-labelledby": titleId,
|
|
@@ -9649,7 +9655,7 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9649
9655
|
transition: "none"
|
|
9650
9656
|
} : void 0,
|
|
9651
9657
|
children: [jsx("div", {
|
|
9652
|
-
className: styles$
|
|
9658
|
+
className: styles$r.grabArea,
|
|
9653
9659
|
onPointerDown: (e) => {
|
|
9654
9660
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
9655
9661
|
onDragStart(e.clientY);
|
|
@@ -9658,18 +9664,18 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9658
9664
|
onPointerUp: onDragEnd,
|
|
9659
9665
|
onPointerCancel: onDragEnd,
|
|
9660
9666
|
children: jsx("div", {
|
|
9661
|
-
className: styles$
|
|
9667
|
+
className: styles$r.grabber,
|
|
9662
9668
|
"aria-hidden": "true"
|
|
9663
9669
|
})
|
|
9664
9670
|
}), jsxs("div", {
|
|
9665
|
-
className: styles$
|
|
9671
|
+
className: styles$r.header,
|
|
9666
9672
|
children: [jsx("h2", {
|
|
9667
9673
|
id: titleId,
|
|
9668
|
-
className: styles$
|
|
9674
|
+
className: styles$r.title,
|
|
9669
9675
|
children: title2
|
|
9670
9676
|
}), jsx("button", {
|
|
9671
9677
|
type: "button",
|
|
9672
|
-
className: styles$
|
|
9678
|
+
className: styles$r.close,
|
|
9673
9679
|
onClick: onClose,
|
|
9674
9680
|
"aria-label": t("Close"),
|
|
9675
9681
|
children: jsx("svg", {
|
|
@@ -9687,10 +9693,10 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9687
9693
|
})
|
|
9688
9694
|
})]
|
|
9689
9695
|
}), jsx("div", {
|
|
9690
|
-
className: styles$
|
|
9696
|
+
className: styles$r.body,
|
|
9691
9697
|
children
|
|
9692
9698
|
}), footer2 && jsx("div", {
|
|
9693
|
-
className: styles$
|
|
9699
|
+
className: styles$r.footer,
|
|
9694
9700
|
children: footer2
|
|
9695
9701
|
})]
|
|
9696
9702
|
})]
|
|
@@ -9710,7 +9716,7 @@ const stepper = "_stepper_1rmip_10";
|
|
|
9710
9716
|
const cap = "_cap_1rmip_23";
|
|
9711
9717
|
const button = "_button_1rmip_31";
|
|
9712
9718
|
const value$1 = "_value_1rmip_50";
|
|
9713
|
-
const styles$
|
|
9719
|
+
const styles$q = {
|
|
9714
9720
|
wrap: wrap$1,
|
|
9715
9721
|
stepper,
|
|
9716
9722
|
cap,
|
|
@@ -9788,24 +9794,24 @@ function QtyStepper({ qty, max, onChange, onRemove, disabled: disabled2, capDesc
|
|
|
9788
9794
|
if (!atMax) onChange(qty + 1);
|
|
9789
9795
|
}
|
|
9790
9796
|
return jsxs("div", {
|
|
9791
|
-
className: styles$
|
|
9797
|
+
className: styles$q.wrap,
|
|
9792
9798
|
children: [jsxs("div", {
|
|
9793
|
-
className: styles$
|
|
9799
|
+
className: styles$q.stepper,
|
|
9794
9800
|
children: [jsx("button", {
|
|
9795
9801
|
type: "button",
|
|
9796
|
-
className: styles$
|
|
9802
|
+
className: styles$q.button,
|
|
9797
9803
|
onClick: decrement,
|
|
9798
9804
|
disabled: disabled2,
|
|
9799
9805
|
"aria-label": willDelete ? t("Remove item") : t("Decrease quantity"),
|
|
9800
9806
|
children: willDelete ? jsx(TrashIcon, {}) : jsx(MinusIcon, {})
|
|
9801
9807
|
}), jsx("span", {
|
|
9802
|
-
className: styles$
|
|
9808
|
+
className: styles$q.value,
|
|
9803
9809
|
"aria-live": "polite",
|
|
9804
9810
|
"aria-label": `Quantity ${qty}`,
|
|
9805
9811
|
children: qty
|
|
9806
9812
|
}), jsx("button", {
|
|
9807
9813
|
type: "button",
|
|
9808
|
-
className: styles$
|
|
9814
|
+
className: styles$q.button,
|
|
9809
9815
|
onClick: increment,
|
|
9810
9816
|
disabled: disabled2 || atMax,
|
|
9811
9817
|
"aria-label": t("Increase quantity"),
|
|
@@ -9814,7 +9820,7 @@ function QtyStepper({ qty, max, onChange, onRemove, disabled: disabled2, capDesc
|
|
|
9814
9820
|
})]
|
|
9815
9821
|
}), atMax && capDescribedBy === void 0 && jsx("span", {
|
|
9816
9822
|
id: ownCapId,
|
|
9817
|
-
className: styles$
|
|
9823
|
+
className: styles$q.cap,
|
|
9818
9824
|
role: "status",
|
|
9819
9825
|
children: max === 0 ? t("Out of stock") : t("Only {0} left", max)
|
|
9820
9826
|
})]
|
|
@@ -9826,7 +9832,7 @@ const pending = "_pending_1dx14_18";
|
|
|
9826
9832
|
const labels = "_labels_1dx14_24";
|
|
9827
9833
|
const lowStock$1 = "_lowStock_1dx14_39";
|
|
9828
9834
|
const media$1 = "_media_1dx14_49";
|
|
9829
|
-
const image$
|
|
9835
|
+
const image$7 = "_image_1dx14_59";
|
|
9830
9836
|
const placeholder$2 = "_placeholder_1dx14_75";
|
|
9831
9837
|
const saleBadge = "_saleBadge_1dx14_88";
|
|
9832
9838
|
const oos$1 = "_oos_1dx14_103";
|
|
@@ -9839,14 +9845,14 @@ const detail = "_detail_1dx14_164";
|
|
|
9839
9845
|
const price = "_price_1dx14_183";
|
|
9840
9846
|
const amount = "_amount_1dx14_191";
|
|
9841
9847
|
const was = "_was_1dx14_200";
|
|
9842
|
-
const styles$
|
|
9848
|
+
const styles$p = {
|
|
9843
9849
|
line,
|
|
9844
9850
|
row: row$5,
|
|
9845
9851
|
pending,
|
|
9846
9852
|
labels,
|
|
9847
9853
|
lowStock: lowStock$1,
|
|
9848
9854
|
media: media$1,
|
|
9849
|
-
image: image$
|
|
9855
|
+
image: image$7,
|
|
9850
9856
|
placeholder: placeholder$2,
|
|
9851
9857
|
saleBadge,
|
|
9852
9858
|
oos: oos$1,
|
|
@@ -9873,53 +9879,53 @@ function CartLineItem({ item: item2, title: title2, image: image2, compareAt: co
|
|
|
9873
9879
|
const noticeId = useStableId("cart-line-stock");
|
|
9874
9880
|
const notice = lowStock2 || soldOut ? noticeId : void 0;
|
|
9875
9881
|
return jsxs("div", {
|
|
9876
|
-
className: [styles$
|
|
9882
|
+
className: [styles$p.line, pending2 ? styles$p.pending : ""].join(" "),
|
|
9877
9883
|
children: [jsxs("div", {
|
|
9878
|
-
className: styles$
|
|
9884
|
+
className: styles$p.row,
|
|
9879
9885
|
children: [jsxs("div", {
|
|
9880
|
-
className: styles$
|
|
9886
|
+
className: styles$p.media,
|
|
9881
9887
|
children: [displayImage ? jsx(ShopImage, {
|
|
9882
9888
|
src: displayImage,
|
|
9883
9889
|
alt: "",
|
|
9884
9890
|
fill: true,
|
|
9885
9891
|
sizes: "100px",
|
|
9886
|
-
className: styles$
|
|
9892
|
+
className: styles$p.image
|
|
9887
9893
|
}) : jsx("div", {
|
|
9888
|
-
className: styles$
|
|
9894
|
+
className: styles$p.placeholder,
|
|
9889
9895
|
"aria-hidden": "true"
|
|
9890
9896
|
}), soldOut ? jsx("span", {
|
|
9891
|
-
className: styles$
|
|
9897
|
+
className: styles$p.oos,
|
|
9892
9898
|
id: noticeId,
|
|
9893
9899
|
children: t("Out of stock")
|
|
9894
9900
|
}) : pct !== void 0 && jsx("span", {
|
|
9895
|
-
className: styles$
|
|
9901
|
+
className: styles$p.saleBadge,
|
|
9896
9902
|
children: jsx(SaleBadge, {
|
|
9897
9903
|
pct
|
|
9898
9904
|
})
|
|
9899
9905
|
})]
|
|
9900
9906
|
}), jsxs("div", {
|
|
9901
|
-
className: styles$
|
|
9907
|
+
className: styles$p.info,
|
|
9902
9908
|
children: [jsxs("div", {
|
|
9903
|
-
className: styles$
|
|
9909
|
+
className: styles$p.head,
|
|
9904
9910
|
children: [jsxs("div", {
|
|
9905
|
-
className: styles$
|
|
9911
|
+
className: styles$p.meta,
|
|
9906
9912
|
children: [jsx("span", {
|
|
9907
|
-
className: styles$
|
|
9913
|
+
className: styles$p.title,
|
|
9908
9914
|
children: displayTitle
|
|
9909
9915
|
}), pairs.length > 0 && jsx("div", {
|
|
9910
|
-
className: styles$
|
|
9916
|
+
className: styles$p.details,
|
|
9911
9917
|
children: pairs.map(({ key, label: label2, value: value2 }) => jsxs("span", {
|
|
9912
|
-
className: styles$
|
|
9918
|
+
className: styles$p.detail,
|
|
9913
9919
|
children: [t(label2), ": ", value2]
|
|
9914
9920
|
}, key))
|
|
9915
9921
|
})]
|
|
9916
9922
|
}), jsxs("div", {
|
|
9917
|
-
className: styles$
|
|
9923
|
+
className: styles$p.price,
|
|
9918
9924
|
children: [jsx("span", {
|
|
9919
|
-
className: styles$
|
|
9925
|
+
className: styles$p.amount,
|
|
9920
9926
|
children: format(item2.line_total)
|
|
9921
9927
|
}), compareAt2 && jsx("span", {
|
|
9922
|
-
className: styles$
|
|
9928
|
+
className: styles$p.was,
|
|
9923
9929
|
children: format(compareAt2)
|
|
9924
9930
|
})]
|
|
9925
9931
|
})]
|
|
@@ -9933,10 +9939,10 @@ function CartLineItem({ item: item2, title: title2, image: image2, compareAt: co
|
|
|
9933
9939
|
})]
|
|
9934
9940
|
})]
|
|
9935
9941
|
}), lowStock2 && jsx("div", {
|
|
9936
|
-
className: styles$
|
|
9942
|
+
className: styles$p.labels,
|
|
9937
9943
|
children: jsx("span", {
|
|
9938
9944
|
id: noticeId,
|
|
9939
|
-
className: styles$
|
|
9945
|
+
className: styles$p.lowStock,
|
|
9940
9946
|
role: "status",
|
|
9941
9947
|
children: t("Only {0} left", available)
|
|
9942
9948
|
})
|
|
@@ -9948,7 +9954,7 @@ const row$4 = "_row_1cf1a_10";
|
|
|
9948
9954
|
const icon$2 = "_icon_1cf1a_16";
|
|
9949
9955
|
const label = "_label_1cf1a_22";
|
|
9950
9956
|
const divider$1 = "_divider_1cf1a_29";
|
|
9951
|
-
const styles$
|
|
9957
|
+
const styles$o = {
|
|
9952
9958
|
box: box$1,
|
|
9953
9959
|
row: row$4,
|
|
9954
9960
|
icon: icon$2,
|
|
@@ -9958,12 +9964,12 @@ const styles$m = {
|
|
|
9958
9964
|
function ShippingInfo() {
|
|
9959
9965
|
const t = useT();
|
|
9960
9966
|
return jsxs("section", {
|
|
9961
|
-
className: styles$
|
|
9967
|
+
className: styles$o.box,
|
|
9962
9968
|
"aria-label": t("Shipping and returns"),
|
|
9963
9969
|
children: [jsxs("div", {
|
|
9964
|
-
className: styles$
|
|
9970
|
+
className: styles$o.row,
|
|
9965
9971
|
children: [jsxs("svg", {
|
|
9966
|
-
className: styles$
|
|
9972
|
+
className: styles$o.icon,
|
|
9967
9973
|
width: "24",
|
|
9968
9974
|
height: "24",
|
|
9969
9975
|
viewBox: "0 0 24 24",
|
|
@@ -9988,16 +9994,16 @@ function ShippingInfo() {
|
|
|
9988
9994
|
strokeWidth: "1.5"
|
|
9989
9995
|
})]
|
|
9990
9996
|
}), jsx("p", {
|
|
9991
|
-
className: styles$
|
|
9997
|
+
className: styles$o.label,
|
|
9992
9998
|
children: t("Standard or express delivery")
|
|
9993
9999
|
})]
|
|
9994
10000
|
}), jsx("div", {
|
|
9995
|
-
className: styles$
|
|
10001
|
+
className: styles$o.divider,
|
|
9996
10002
|
role: "presentation"
|
|
9997
10003
|
}), jsxs("div", {
|
|
9998
|
-
className: styles$
|
|
10004
|
+
className: styles$o.row,
|
|
9999
10005
|
children: [jsxs("svg", {
|
|
10000
|
-
className: styles$
|
|
10006
|
+
className: styles$o.icon,
|
|
10001
10007
|
width: "24",
|
|
10002
10008
|
height: "24",
|
|
10003
10009
|
viewBox: "0 0 24 24",
|
|
@@ -10017,7 +10023,7 @@ function ShippingInfo() {
|
|
|
10017
10023
|
strokeLinejoin: "round"
|
|
10018
10024
|
})]
|
|
10019
10025
|
}), jsx("p", {
|
|
10020
|
-
className: styles$
|
|
10026
|
+
className: styles$o.label,
|
|
10021
10027
|
children: t("14 days returns")
|
|
10022
10028
|
})]
|
|
10023
10029
|
})]
|
|
@@ -10028,21 +10034,21 @@ const floating$1 = "_floating_23dkv_52";
|
|
|
10028
10034
|
const divider = "_divider_23dkv_58";
|
|
10029
10035
|
const info$1 = "_info_23dkv_62";
|
|
10030
10036
|
const actions = "_actions_23dkv_70";
|
|
10031
|
-
const styles$
|
|
10037
|
+
const styles$n = {
|
|
10032
10038
|
bar,
|
|
10033
10039
|
floating: floating$1,
|
|
10034
10040
|
divider,
|
|
10035
10041
|
info: info$1,
|
|
10036
10042
|
actions
|
|
10037
10043
|
};
|
|
10038
|
-
function StickyCtaBar({ children, info: info2, variant = "floating" }) {
|
|
10044
|
+
function StickyCtaBar({ children, info: info2, variant = "floating", className }) {
|
|
10039
10045
|
return jsxs("div", {
|
|
10040
|
-
className: [styles$
|
|
10046
|
+
className: [styles$n.bar, styles$n[variant], className ?? ""].join(" "),
|
|
10041
10047
|
children: [info2 && jsx("div", {
|
|
10042
|
-
className: styles$
|
|
10048
|
+
className: styles$n.info,
|
|
10043
10049
|
children: info2
|
|
10044
10050
|
}), jsx("div", {
|
|
10045
|
-
className: styles$
|
|
10051
|
+
className: styles$n.actions,
|
|
10046
10052
|
children
|
|
10047
10053
|
})]
|
|
10048
10054
|
});
|
|
@@ -10055,7 +10061,7 @@ const sectionHeader = "_sectionHeader_1bdb0_40";
|
|
|
10055
10061
|
const sectionTitle = "_sectionTitle_1bdb0_46";
|
|
10056
10062
|
const count = "_count_1bdb0_67";
|
|
10057
10063
|
const lines = "_lines_1bdb0_91";
|
|
10058
|
-
const styles$
|
|
10064
|
+
const styles$m = {
|
|
10059
10065
|
surface,
|
|
10060
10066
|
screen,
|
|
10061
10067
|
body: body$4,
|
|
@@ -10071,7 +10077,7 @@ function CartView(props = {}) {
|
|
|
10071
10077
|
return jsx(ShopSurface, {
|
|
10072
10078
|
tone: "light",
|
|
10073
10079
|
fill: true,
|
|
10074
|
-
className: styles$
|
|
10080
|
+
className: styles$m.surface,
|
|
10075
10081
|
children: jsx(CartViewContent, {
|
|
10076
10082
|
...props
|
|
10077
10083
|
})
|
|
@@ -10233,22 +10239,22 @@ function CartViewContent({ onContinueShopping, checkoutLabel } = {}) {
|
|
|
10233
10239
|
}
|
|
10234
10240
|
const itemCount = cart2.items.reduce((n, i) => n + i.qty, 0);
|
|
10235
10241
|
return jsxs("div", {
|
|
10236
|
-
className: styles$
|
|
10242
|
+
className: styles$m.screen,
|
|
10237
10243
|
children: [jsxs("div", {
|
|
10238
|
-
className: styles$
|
|
10244
|
+
className: styles$m.body,
|
|
10239
10245
|
children: [jsxs("section", {
|
|
10240
|
-
className: styles$
|
|
10246
|
+
className: styles$m.items,
|
|
10241
10247
|
children: [jsxs("div", {
|
|
10242
|
-
className: styles$
|
|
10248
|
+
className: styles$m.sectionHeader,
|
|
10243
10249
|
children: [jsx("h2", {
|
|
10244
|
-
className: styles$
|
|
10250
|
+
className: styles$m.sectionTitle,
|
|
10245
10251
|
children: t("Items")
|
|
10246
10252
|
}), jsx("span", {
|
|
10247
|
-
className: styles$
|
|
10253
|
+
className: styles$m.count,
|
|
10248
10254
|
children: itemCount
|
|
10249
10255
|
})]
|
|
10250
10256
|
}), jsx("ul", {
|
|
10251
|
-
className: styles$
|
|
10257
|
+
className: styles$m.lines,
|
|
10252
10258
|
children: cart2.items.map((item2) => jsx("li", {
|
|
10253
10259
|
children: jsx(CartLineItem, {
|
|
10254
10260
|
item: item2,
|
|
@@ -10313,19 +10319,19 @@ function CartSheetProvider({ children }) {
|
|
|
10313
10319
|
})]
|
|
10314
10320
|
});
|
|
10315
10321
|
}
|
|
10316
|
-
const gallery = "_gallery_1vbj7_1";
|
|
10322
|
+
const gallery$1 = "_gallery_1vbj7_1";
|
|
10317
10323
|
const track$2 = "_track_1vbj7_5";
|
|
10318
10324
|
const slide$1 = "_slide_1vbj7_20";
|
|
10319
|
-
const image$
|
|
10325
|
+
const image$6 = "_image_1vbj7_27";
|
|
10320
10326
|
const placeholder$1 = "_placeholder_1vbj7_31";
|
|
10321
10327
|
const dots$2 = "_dots_1vbj7_49";
|
|
10322
10328
|
const dot$2 = "_dot_1vbj7_49";
|
|
10323
10329
|
const dotActive$2 = "_dotActive_1vbj7_100";
|
|
10324
|
-
const styles$
|
|
10325
|
-
gallery,
|
|
10330
|
+
const styles$l = {
|
|
10331
|
+
gallery: gallery$1,
|
|
10326
10332
|
track: track$2,
|
|
10327
10333
|
slide: slide$1,
|
|
10328
|
-
image: image$
|
|
10334
|
+
image: image$6,
|
|
10329
10335
|
placeholder: placeholder$1,
|
|
10330
10336
|
dots: dots$2,
|
|
10331
10337
|
dot: dot$2,
|
|
@@ -10372,30 +10378,30 @@ function MediaGallery({ media: media2, alt, focus }) {
|
|
|
10372
10378
|
}
|
|
10373
10379
|
if (media2.length === 0) {
|
|
10374
10380
|
return jsx("div", {
|
|
10375
|
-
className: styles$
|
|
10381
|
+
className: styles$l.placeholder,
|
|
10376
10382
|
"aria-hidden": "true"
|
|
10377
10383
|
});
|
|
10378
10384
|
}
|
|
10379
10385
|
return jsxs("div", {
|
|
10380
|
-
className: styles$
|
|
10386
|
+
className: styles$l.gallery,
|
|
10381
10387
|
children: [jsx("div", {
|
|
10382
|
-
className: styles$
|
|
10388
|
+
className: styles$l.track,
|
|
10383
10389
|
ref: trackRef,
|
|
10384
10390
|
role: "group",
|
|
10385
10391
|
"aria-label": `${alt} images`,
|
|
10386
10392
|
children: media2.map((src, i) => jsx("div", {
|
|
10387
|
-
className: styles$
|
|
10393
|
+
className: styles$l.slide,
|
|
10388
10394
|
children: jsx(ShopImage, {
|
|
10389
10395
|
src,
|
|
10390
10396
|
alt: `${alt} — image ${i + 1} of ${media2.length}`,
|
|
10391
10397
|
fill: true,
|
|
10392
10398
|
sizes: "(max-width: 480px) 100vw, 480px",
|
|
10393
|
-
className: styles$
|
|
10399
|
+
className: styles$l.image,
|
|
10394
10400
|
priority: i === 0
|
|
10395
10401
|
})
|
|
10396
10402
|
}, src))
|
|
10397
10403
|
}), media2.length > 1 && jsx("div", {
|
|
10398
|
-
className: styles$
|
|
10404
|
+
className: styles$l.dots,
|
|
10399
10405
|
role: "tablist",
|
|
10400
10406
|
"aria-label": t("Gallery pagination"),
|
|
10401
10407
|
children: media2.map((src, i) => jsx("button", {
|
|
@@ -10403,12 +10409,89 @@ function MediaGallery({ media: media2, alt, focus }) {
|
|
|
10403
10409
|
role: "tab",
|
|
10404
10410
|
"aria-selected": i === active,
|
|
10405
10411
|
"aria-label": `Go to image ${i + 1}`,
|
|
10406
|
-
className: [styles$
|
|
10412
|
+
className: [styles$l.dot, i === active ? styles$l.dotActive : ""].join(" "),
|
|
10407
10413
|
onClick: () => goTo(i)
|
|
10408
10414
|
}, src))
|
|
10409
10415
|
})]
|
|
10410
10416
|
});
|
|
10411
10417
|
}
|
|
10418
|
+
const row$3 = "_row_l4edh_1";
|
|
10419
|
+
const badge$1 = "_badge_l4edh_11";
|
|
10420
|
+
const styles$k = {
|
|
10421
|
+
row: row$3,
|
|
10422
|
+
badge: badge$1
|
|
10423
|
+
};
|
|
10424
|
+
function PdpBadges({ badges: badges2 }) {
|
|
10425
|
+
const flags = badges2.filter((b) => b.trim().length > 0);
|
|
10426
|
+
if (flags.length === 0) return null;
|
|
10427
|
+
return jsx("ul", {
|
|
10428
|
+
className: styles$k.row,
|
|
10429
|
+
children: flags.map((flag) => jsx("li", {
|
|
10430
|
+
className: styles$k.badge,
|
|
10431
|
+
children: flag
|
|
10432
|
+
}, flag))
|
|
10433
|
+
});
|
|
10434
|
+
}
|
|
10435
|
+
const gallery = "_gallery_1m6o7_1";
|
|
10436
|
+
const thumbs = "_thumbs_1m6o7_7";
|
|
10437
|
+
const thumb = "_thumb_1m6o7_7";
|
|
10438
|
+
const main = "_main_1m6o7_34";
|
|
10439
|
+
const image$5 = "_image_1m6o7_44";
|
|
10440
|
+
const badges = "_badges_1m6o7_49";
|
|
10441
|
+
const styles$j = {
|
|
10442
|
+
gallery,
|
|
10443
|
+
thumbs,
|
|
10444
|
+
thumb,
|
|
10445
|
+
main,
|
|
10446
|
+
image: image$5,
|
|
10447
|
+
badges
|
|
10448
|
+
};
|
|
10449
|
+
function DesktopGallery({ media: media2, alt, badges: badges2, focus }) {
|
|
10450
|
+
const t = useT();
|
|
10451
|
+
const [active, setActive] = useState(0);
|
|
10452
|
+
const mediaKey = media2.join("|");
|
|
10453
|
+
useEffect(() => {
|
|
10454
|
+
setActive(focus !== void 0 && focus >= 0 && focus < media2.length ? focus : 0);
|
|
10455
|
+
}, [mediaKey, focus, media2.length]);
|
|
10456
|
+
const shown = media2[active] ?? media2[0];
|
|
10457
|
+
return jsxs("div", {
|
|
10458
|
+
className: styles$j.gallery,
|
|
10459
|
+
children: [media2.length > 0 && jsx("div", {
|
|
10460
|
+
className: styles$j.thumbs,
|
|
10461
|
+
role: "group",
|
|
10462
|
+
"aria-label": t("{0} images", alt),
|
|
10463
|
+
children: media2.map((src, i) => jsx("button", {
|
|
10464
|
+
type: "button",
|
|
10465
|
+
className: styles$j.thumb,
|
|
10466
|
+
"aria-pressed": i === active,
|
|
10467
|
+
"aria-label": t("Show image {0} of {1}", String(i + 1), String(media2.length)),
|
|
10468
|
+
onClick: () => setActive(i),
|
|
10469
|
+
children: jsx(ShopImage, {
|
|
10470
|
+
src,
|
|
10471
|
+
alt: "",
|
|
10472
|
+
fill: true,
|
|
10473
|
+
sizes: "72px",
|
|
10474
|
+
className: styles$j.image
|
|
10475
|
+
})
|
|
10476
|
+
}, src))
|
|
10477
|
+
}), jsxs("div", {
|
|
10478
|
+
className: styles$j.main,
|
|
10479
|
+
children: [shown ? jsx(ShopImage, {
|
|
10480
|
+
src: shown,
|
|
10481
|
+
alt: t("{0} — image {1} of {2}", alt, String(active + 1), String(media2.length)),
|
|
10482
|
+
fill: true,
|
|
10483
|
+
sizes: "440px",
|
|
10484
|
+
className: styles$j.image,
|
|
10485
|
+
priority: true
|
|
10486
|
+
}) : null, jsx("div", {
|
|
10487
|
+
className: styles$j.badges,
|
|
10488
|
+
children: jsx(PdpBadges, {
|
|
10489
|
+
badges: badges2
|
|
10490
|
+
})
|
|
10491
|
+
})]
|
|
10492
|
+
})]
|
|
10493
|
+
});
|
|
10494
|
+
}
|
|
10412
10495
|
const scrim$3 = "_scrim_r4azu_8";
|
|
10413
10496
|
const sheet$1 = "_sheet_r4azu_2";
|
|
10414
10497
|
const body$3 = "_body_r4azu_40";
|
|
@@ -10617,7 +10700,7 @@ const styles$h = {
|
|
|
10617
10700
|
sizeGuide,
|
|
10618
10701
|
info
|
|
10619
10702
|
};
|
|
10620
|
-
function SizeSelector({ sizes, selected: selected2, onSelect, error: error2 = false, lowStock: lowStock2, guide }) {
|
|
10703
|
+
function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: error2 = false, lowStock: lowStock2, guide }) {
|
|
10621
10704
|
const t = useT();
|
|
10622
10705
|
const [guideOpen, setGuideOpen] = useState(false);
|
|
10623
10706
|
const showGuide = useShopFeatures().sizeCharts && guide !== void 0;
|
|
@@ -10667,7 +10750,7 @@ function SizeSelector({ sizes, selected: selected2, onSelect, error: error2 = fa
|
|
|
10667
10750
|
role: "radiogroup",
|
|
10668
10751
|
"aria-label": t("Size"),
|
|
10669
10752
|
"aria-required": "true",
|
|
10670
|
-
children:
|
|
10753
|
+
children: sizes2.map((size) => {
|
|
10671
10754
|
const isSelected = size.value === selected2;
|
|
10672
10755
|
const disabled2 = !size.available;
|
|
10673
10756
|
return jsxs("button", {
|
|
@@ -10903,28 +10986,11 @@ function ProductDetails({ description: description2 }) {
|
|
|
10903
10986
|
}) : null]
|
|
10904
10987
|
});
|
|
10905
10988
|
}
|
|
10906
|
-
const row$3 = "_row_l4edh_1";
|
|
10907
|
-
const badge$1 = "_badge_l4edh_11";
|
|
10908
|
-
const styles$d = {
|
|
10909
|
-
row: row$3,
|
|
10910
|
-
badge: badge$1
|
|
10911
|
-
};
|
|
10912
|
-
function PdpBadges({ badges }) {
|
|
10913
|
-
const flags = badges.filter((b) => b.trim().length > 0);
|
|
10914
|
-
if (flags.length === 0) return null;
|
|
10915
|
-
return jsx("ul", {
|
|
10916
|
-
className: styles$d.row,
|
|
10917
|
-
children: flags.map((flag) => jsx("li", {
|
|
10918
|
-
className: styles$d.badge,
|
|
10919
|
-
children: flag
|
|
10920
|
-
}, flag))
|
|
10921
|
-
});
|
|
10922
|
-
}
|
|
10923
10989
|
const banner = "_banner_1xvw4_2";
|
|
10924
10990
|
const message = "_message_1xvw4_14";
|
|
10925
10991
|
const icon$1 = "_icon_1xvw4_22";
|
|
10926
10992
|
const timer = "_timer_1xvw4_27";
|
|
10927
|
-
const styles$
|
|
10993
|
+
const styles$d = {
|
|
10928
10994
|
banner,
|
|
10929
10995
|
message,
|
|
10930
10996
|
icon: icon$1,
|
|
@@ -10948,11 +11014,11 @@ function PromoBanner({ promo: promo2 }) {
|
|
|
10948
11014
|
const remaining = promo2.ends_at && now !== null ? new Date(promo2.ends_at).getTime() - now : null;
|
|
10949
11015
|
const showTimer = remaining !== null && remaining > 0;
|
|
10950
11016
|
return jsxs("div", {
|
|
10951
|
-
className: styles$
|
|
11017
|
+
className: styles$d.banner,
|
|
10952
11018
|
children: [jsxs("span", {
|
|
10953
|
-
className: styles$
|
|
11019
|
+
className: styles$d.message,
|
|
10954
11020
|
children: [jsxs("svg", {
|
|
10955
|
-
className: styles$
|
|
11021
|
+
className: styles$d.icon,
|
|
10956
11022
|
width: "24",
|
|
10957
11023
|
height: "24",
|
|
10958
11024
|
viewBox: "0 0 24 24",
|
|
@@ -10974,7 +11040,7 @@ function PromoBanner({ promo: promo2 }) {
|
|
|
10974
11040
|
})]
|
|
10975
11041
|
}), promo2.message]
|
|
10976
11042
|
}), showTimer && jsxs("span", {
|
|
10977
|
-
className: styles$
|
|
11043
|
+
className: styles$d.timer,
|
|
10978
11044
|
children: [jsxs("svg", {
|
|
10979
11045
|
width: "16",
|
|
10980
11046
|
height: "16",
|
|
@@ -10998,16 +11064,24 @@ function PromoBanner({ promo: promo2 }) {
|
|
|
10998
11064
|
})]
|
|
10999
11065
|
});
|
|
11000
11066
|
}
|
|
11001
|
-
const page = "
|
|
11002
|
-
const content = "
|
|
11003
|
-
const intro = "
|
|
11004
|
-
const productInfo = "
|
|
11005
|
-
const titlePrice = "
|
|
11006
|
-
const title$6 = "
|
|
11007
|
-
const availability = "
|
|
11008
|
-
const low = "
|
|
11009
|
-
const oos = "
|
|
11010
|
-
const
|
|
11067
|
+
const page = "_page_1479k_1";
|
|
11068
|
+
const content = "_content_1479k_14";
|
|
11069
|
+
const intro = "_intro_1479k_21";
|
|
11070
|
+
const productInfo = "_productInfo_1479k_28";
|
|
11071
|
+
const titlePrice = "_titlePrice_1479k_34";
|
|
11072
|
+
const title$6 = "_title_1479k_34";
|
|
11073
|
+
const availability = "_availability_1479k_55";
|
|
11074
|
+
const low = "_low_1479k_62";
|
|
11075
|
+
const oos = "_oos_1479k_66";
|
|
11076
|
+
const breadcrumb = "_breadcrumb_1479k_70";
|
|
11077
|
+
const help$1 = "_help_1479k_71";
|
|
11078
|
+
const desktopGallery = "_desktopGallery_1479k_72";
|
|
11079
|
+
const wide = "_wide_1479k_77";
|
|
11080
|
+
const phoneGallery = "_phoneGallery_1479k_101";
|
|
11081
|
+
const introBadges = "_introBadges_1479k_115";
|
|
11082
|
+
const sizes = "_sizes_1479k_119";
|
|
11083
|
+
const cta$2 = "_cta_1479k_123";
|
|
11084
|
+
const styles$c = {
|
|
11011
11085
|
page,
|
|
11012
11086
|
content,
|
|
11013
11087
|
intro,
|
|
@@ -11016,9 +11090,17 @@ const styles$b = {
|
|
|
11016
11090
|
title: title$6,
|
|
11017
11091
|
availability,
|
|
11018
11092
|
low,
|
|
11019
|
-
oos
|
|
11093
|
+
oos,
|
|
11094
|
+
breadcrumb,
|
|
11095
|
+
help: help$1,
|
|
11096
|
+
desktopGallery,
|
|
11097
|
+
wide,
|
|
11098
|
+
phoneGallery,
|
|
11099
|
+
introBadges,
|
|
11100
|
+
sizes,
|
|
11101
|
+
cta: cta$2
|
|
11020
11102
|
};
|
|
11021
|
-
function ProductDetail({ product, inventory: inventory2, recommendations = [], claim }) {
|
|
11103
|
+
function ProductDetail({ product, inventory: inventory2, recommendations = [], claim, breadcrumb: breadcrumb2, help: help2 }) {
|
|
11022
11104
|
const t = useT();
|
|
11023
11105
|
const toast2 = useToast();
|
|
11024
11106
|
const { api, emit } = useShop();
|
|
@@ -11045,7 +11127,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11045
11127
|
const structured = hasSizes || hasColours;
|
|
11046
11128
|
const [selectedSize, setSelectedSize] = useState(null);
|
|
11047
11129
|
const [selectedColour, setSelectedColour] = useState(hasColours ? baseColours.find((c) => c.available)?.value ?? baseColours[0].value : null);
|
|
11048
|
-
const
|
|
11130
|
+
const sizes2 = useMemo(() => sizeOptions(variants, selectedColour), [variants, selectedColour]);
|
|
11049
11131
|
const colours = useMemo(() => colourOptions(variants, selectedSize), [variants, selectedSize]);
|
|
11050
11132
|
const [genericSku, setGenericSku] = useState(null);
|
|
11051
11133
|
const [busy, setBusy] = useState(null);
|
|
@@ -11246,25 +11328,47 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11246
11328
|
return jsxs(ShopSurface, {
|
|
11247
11329
|
tone: "light",
|
|
11248
11330
|
fill: true,
|
|
11249
|
-
className: styles$
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11331
|
+
className: [styles$c.page, claim ? styles$c.wide : ""].join(" "),
|
|
11332
|
+
...claim ? {
|
|
11333
|
+
"data-shop-layout": "wide"
|
|
11334
|
+
} : {},
|
|
11335
|
+
children: [breadcrumb2 && jsx("div", {
|
|
11336
|
+
className: styles$c.breadcrumb,
|
|
11337
|
+
children: breadcrumb2
|
|
11338
|
+
}), jsx("div", {
|
|
11339
|
+
className: styles$c.phoneGallery,
|
|
11340
|
+
children: jsx(MediaGallery, {
|
|
11341
|
+
media: media2,
|
|
11342
|
+
alt: product.title,
|
|
11343
|
+
...focus !== void 0 ? {
|
|
11344
|
+
focus
|
|
11345
|
+
} : {}
|
|
11346
|
+
})
|
|
11347
|
+
}), claim && jsx("div", {
|
|
11348
|
+
className: styles$c.desktopGallery,
|
|
11349
|
+
children: jsx(DesktopGallery, {
|
|
11350
|
+
media: media2,
|
|
11351
|
+
alt: product.title,
|
|
11352
|
+
badges: product.badges ?? [],
|
|
11353
|
+
...focus !== void 0 ? {
|
|
11354
|
+
focus
|
|
11355
|
+
} : {}
|
|
11356
|
+
})
|
|
11256
11357
|
}), jsxs("div", {
|
|
11257
|
-
className: styles$
|
|
11358
|
+
className: styles$c.content,
|
|
11258
11359
|
children: [jsxs("div", {
|
|
11259
|
-
className: styles$
|
|
11260
|
-
children: [jsx(
|
|
11261
|
-
|
|
11360
|
+
className: styles$c.intro,
|
|
11361
|
+
children: [jsx("div", {
|
|
11362
|
+
className: styles$c.introBadges,
|
|
11363
|
+
children: jsx(PdpBadges, {
|
|
11364
|
+
badges: product.badges ?? []
|
|
11365
|
+
})
|
|
11262
11366
|
}), jsxs("div", {
|
|
11263
|
-
className: styles$
|
|
11367
|
+
className: styles$c.productInfo,
|
|
11264
11368
|
children: [jsxs("div", {
|
|
11265
|
-
className: styles$
|
|
11369
|
+
className: styles$c.titlePrice,
|
|
11266
11370
|
children: [jsx("h1", {
|
|
11267
|
-
className: styles$
|
|
11371
|
+
className: styles$c.title,
|
|
11268
11372
|
children: product.title
|
|
11269
11373
|
}), jsx(PriceBlock, {
|
|
11270
11374
|
price: claim ? {
|
|
@@ -11281,7 +11385,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11281
11385
|
})]
|
|
11282
11386
|
})]
|
|
11283
11387
|
}), stockNotice && jsx("p", {
|
|
11284
|
-
className: [styles$
|
|
11388
|
+
className: [styles$c.availability, anyInStock ? styles$c.low : styles$c.oos].join(" "),
|
|
11285
11389
|
role: "status",
|
|
11286
11390
|
children: availabilityLabel
|
|
11287
11391
|
}), hasColours && jsx("div", {
|
|
@@ -11293,8 +11397,9 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11293
11397
|
})
|
|
11294
11398
|
}), hasSizes && jsx("div", {
|
|
11295
11399
|
ref: sizeRef,
|
|
11400
|
+
className: styles$c.sizes,
|
|
11296
11401
|
children: jsx(SizeSelector, {
|
|
11297
|
-
sizes,
|
|
11402
|
+
sizes: sizes2,
|
|
11298
11403
|
selected: selectedSize,
|
|
11299
11404
|
onSelect: selectSize,
|
|
11300
11405
|
error: sizeError,
|
|
@@ -11315,7 +11420,11 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11315
11420
|
inset: true
|
|
11316
11421
|
})]
|
|
11317
11422
|
}), jsx(StickyCtaBar, {
|
|
11423
|
+
className: styles$c.cta,
|
|
11318
11424
|
children: cta2
|
|
11425
|
+
}), help2 && jsx("div", {
|
|
11426
|
+
className: styles$c.help,
|
|
11427
|
+
children: help2
|
|
11319
11428
|
})]
|
|
11320
11429
|
});
|
|
11321
11430
|
}
|
|
@@ -11327,7 +11436,7 @@ const text$3 = "_text_1tiqx_108";
|
|
|
11327
11436
|
const title$5 = "_title_1tiqx_157";
|
|
11328
11437
|
const subtitle$2 = "_subtitle_1tiqx_168";
|
|
11329
11438
|
const noImage = "_noImage_1tiqx_183";
|
|
11330
|
-
const styles$
|
|
11439
|
+
const styles$b = {
|
|
11331
11440
|
hero: hero$2,
|
|
11332
11441
|
image: image$3,
|
|
11333
11442
|
scrim: scrim$1,
|
|
@@ -11343,10 +11452,10 @@ function PcpHero({ hero: hero2 }) {
|
|
|
11343
11452
|
const t = useT();
|
|
11344
11453
|
return jsxs("section", {
|
|
11345
11454
|
ref: heroRef,
|
|
11346
|
-
className: [styles$
|
|
11455
|
+
className: [styles$b.hero, hero2.image ? "" : styles$b.noImage].join(" "),
|
|
11347
11456
|
children: [hero2.image && jsxs(Fragment, {
|
|
11348
11457
|
children: [jsx("div", {
|
|
11349
|
-
className: styles$
|
|
11458
|
+
className: styles$b.image,
|
|
11350
11459
|
children: jsx(ShopImage, {
|
|
11351
11460
|
src: hero2.image,
|
|
11352
11461
|
alt: "",
|
|
@@ -11355,19 +11464,19 @@ function PcpHero({ hero: hero2 }) {
|
|
|
11355
11464
|
priority: true
|
|
11356
11465
|
})
|
|
11357
11466
|
}), jsx("div", {
|
|
11358
|
-
className: styles$
|
|
11467
|
+
className: styles$b.scrim,
|
|
11359
11468
|
"aria-hidden": "true"
|
|
11360
11469
|
}), jsx("div", {
|
|
11361
|
-
className: styles$
|
|
11470
|
+
className: styles$b.fade,
|
|
11362
11471
|
"aria-hidden": "true"
|
|
11363
11472
|
})]
|
|
11364
11473
|
}), jsxs("div", {
|
|
11365
|
-
className: styles$
|
|
11474
|
+
className: styles$b.text,
|
|
11366
11475
|
children: [jsx("h1", {
|
|
11367
|
-
className: styles$
|
|
11476
|
+
className: styles$b.title,
|
|
11368
11477
|
children: t(hero2.title)
|
|
11369
11478
|
}), hero2.subtitle && jsx("p", {
|
|
11370
|
-
className: styles$
|
|
11479
|
+
className: styles$b.subtitle,
|
|
11371
11480
|
children: t(hero2.subtitle)
|
|
11372
11481
|
})]
|
|
11373
11482
|
})]
|
|
@@ -11376,14 +11485,14 @@ function PcpHero({ hero: hero2 }) {
|
|
|
11376
11485
|
const text$2 = "_text_1saw4_6";
|
|
11377
11486
|
const center = "_center_1saw4_18";
|
|
11378
11487
|
const left = "_left_1saw4_23";
|
|
11379
|
-
const styles$
|
|
11488
|
+
const styles$a = {
|
|
11380
11489
|
text: text$2,
|
|
11381
11490
|
center,
|
|
11382
11491
|
left
|
|
11383
11492
|
};
|
|
11384
11493
|
function LifestyleText({ text: text2, align = "center" }) {
|
|
11385
11494
|
return jsx("p", {
|
|
11386
|
-
className: [styles$
|
|
11495
|
+
className: [styles$a.text, align === "left" ? styles$a.left : styles$a.center].join(" "),
|
|
11387
11496
|
children: text2
|
|
11388
11497
|
});
|
|
11389
11498
|
}
|
|
@@ -11395,7 +11504,7 @@ const image$2 = "_image_79nr3_46";
|
|
|
11395
11504
|
const dots$1 = "_dots_79nr3_51";
|
|
11396
11505
|
const dot$1 = "_dot_79nr3_51";
|
|
11397
11506
|
const dotActive$1 = "_dotActive_79nr3_76";
|
|
11398
|
-
const styles$
|
|
11507
|
+
const styles$9 = {
|
|
11399
11508
|
wrap,
|
|
11400
11509
|
box,
|
|
11401
11510
|
track: track$1,
|
|
@@ -11419,36 +11528,36 @@ function LifestyleImage({ images, videos }) {
|
|
|
11419
11528
|
}, []);
|
|
11420
11529
|
if (images.length === 0) return null;
|
|
11421
11530
|
return jsx("div", {
|
|
11422
|
-
className: styles$
|
|
11531
|
+
className: styles$9.wrap,
|
|
11423
11532
|
children: jsxs("div", {
|
|
11424
|
-
className: styles$
|
|
11533
|
+
className: styles$9.box,
|
|
11425
11534
|
children: [jsx("ul", {
|
|
11426
|
-
className: styles$
|
|
11535
|
+
className: styles$9.track,
|
|
11427
11536
|
ref: trackRef,
|
|
11428
11537
|
children: images.map((src, i) => {
|
|
11429
11538
|
const clip = videos?.[i];
|
|
11430
11539
|
return jsx("li", {
|
|
11431
|
-
className: styles$
|
|
11540
|
+
className: styles$9.slide,
|
|
11432
11541
|
children: clip ? jsx(ShopVideo, {
|
|
11433
11542
|
src: clip,
|
|
11434
11543
|
poster: src,
|
|
11435
11544
|
fill: true,
|
|
11436
|
-
className: styles$
|
|
11545
|
+
className: styles$9.image
|
|
11437
11546
|
}) : jsx(ShopImage, {
|
|
11438
11547
|
src,
|
|
11439
11548
|
alt: "",
|
|
11440
11549
|
fill: true,
|
|
11441
11550
|
sizes: "(max-width: 480px) 100vw, 480px",
|
|
11442
|
-
className: styles$
|
|
11551
|
+
className: styles$9.image,
|
|
11443
11552
|
priority: i === 0
|
|
11444
11553
|
})
|
|
11445
11554
|
}, src);
|
|
11446
11555
|
})
|
|
11447
11556
|
}), images.length > 1 && jsx("div", {
|
|
11448
|
-
className: styles$
|
|
11557
|
+
className: styles$9.dots,
|
|
11449
11558
|
"aria-hidden": "true",
|
|
11450
11559
|
children: images.map((src, i) => jsx("span", {
|
|
11451
|
-
className: [styles$
|
|
11560
|
+
className: [styles$9.dot, i === active ? styles$9.dotActive : ""].join(" ")
|
|
11452
11561
|
}, src))
|
|
11453
11562
|
})]
|
|
11454
11563
|
})
|
|
@@ -11462,7 +11571,7 @@ const author = "_author_qsxtq_58";
|
|
|
11462
11571
|
const dots = "_dots_qsxtq_69";
|
|
11463
11572
|
const dot = "_dot_qsxtq_69";
|
|
11464
11573
|
const dotActive = "_dotActive_qsxtq_85";
|
|
11465
|
-
const styles$
|
|
11574
|
+
const styles$8 = {
|
|
11466
11575
|
section: section$2,
|
|
11467
11576
|
track,
|
|
11468
11577
|
card,
|
|
@@ -11486,26 +11595,26 @@ function ReviewCarousel({ quotes }) {
|
|
|
11486
11595
|
return () => track2.removeEventListener("scroll", onScroll);
|
|
11487
11596
|
}, []);
|
|
11488
11597
|
return jsxs("section", {
|
|
11489
|
-
className: styles$
|
|
11598
|
+
className: styles$8.section,
|
|
11490
11599
|
"aria-label": t("Reviews"),
|
|
11491
11600
|
children: [jsx("ul", {
|
|
11492
|
-
className: styles$
|
|
11601
|
+
className: styles$8.track,
|
|
11493
11602
|
ref: trackRef,
|
|
11494
11603
|
children: quotes.map((q, i) => jsxs("li", {
|
|
11495
|
-
className: styles$
|
|
11604
|
+
className: styles$8.card,
|
|
11496
11605
|
children: [jsxs("blockquote", {
|
|
11497
|
-
className: styles$
|
|
11606
|
+
className: styles$8.quote,
|
|
11498
11607
|
children: ["“", q.quote, "”"]
|
|
11499
11608
|
}), jsx("p", {
|
|
11500
|
-
className: styles$
|
|
11609
|
+
className: styles$8.author,
|
|
11501
11610
|
children: q.author
|
|
11502
11611
|
})]
|
|
11503
11612
|
}, i))
|
|
11504
11613
|
}), quotes.length > 1 && jsx("div", {
|
|
11505
|
-
className: styles$
|
|
11614
|
+
className: styles$8.dots,
|
|
11506
11615
|
"aria-hidden": "true",
|
|
11507
11616
|
children: quotes.map((_, i) => jsx("span", {
|
|
11508
|
-
className: [styles$
|
|
11617
|
+
className: [styles$8.dot, i === active ? styles$8.dotActive : ""].join(" ")
|
|
11509
11618
|
}, i))
|
|
11510
11619
|
})]
|
|
11511
11620
|
});
|
|
@@ -11514,7 +11623,7 @@ const section$1 = "_section_1nrsi_1";
|
|
|
11514
11623
|
const row$2 = "_row_1nrsi_9";
|
|
11515
11624
|
const title$4 = "_title_1nrsi_20";
|
|
11516
11625
|
const body$1 = "_body_1nrsi_43";
|
|
11517
|
-
const styles$
|
|
11626
|
+
const styles$7 = {
|
|
11518
11627
|
section: section$1,
|
|
11519
11628
|
row: row$2,
|
|
11520
11629
|
title: title$4,
|
|
@@ -11523,15 +11632,15 @@ const styles$6 = {
|
|
|
11523
11632
|
function WhyUs({ items: items2 }) {
|
|
11524
11633
|
const t = useT();
|
|
11525
11634
|
return jsx("section", {
|
|
11526
|
-
className: styles$
|
|
11635
|
+
className: styles$7.section,
|
|
11527
11636
|
"aria-label": t("Why shop with us"),
|
|
11528
11637
|
children: items2.map((it, i) => jsxs("div", {
|
|
11529
|
-
className: styles$
|
|
11638
|
+
className: styles$7.row,
|
|
11530
11639
|
children: [jsx("p", {
|
|
11531
|
-
className: styles$
|
|
11640
|
+
className: styles$7.title,
|
|
11532
11641
|
children: it.title
|
|
11533
11642
|
}), jsx("p", {
|
|
11534
|
-
className: styles$
|
|
11643
|
+
className: styles$7.body,
|
|
11535
11644
|
children: it.body
|
|
11536
11645
|
})]
|
|
11537
11646
|
}, i))
|
|
@@ -11541,7 +11650,7 @@ const section = "_section_snuuj_1";
|
|
|
11541
11650
|
const title$3 = "_title_snuuj_10";
|
|
11542
11651
|
const list$1 = "_list_snuuj_17";
|
|
11543
11652
|
const row$1 = "_row_snuuj_32";
|
|
11544
|
-
const styles$
|
|
11653
|
+
const styles$6 = {
|
|
11545
11654
|
section,
|
|
11546
11655
|
title: title$3,
|
|
11547
11656
|
list: list$1,
|
|
@@ -11550,17 +11659,17 @@ const styles$5 = {
|
|
|
11550
11659
|
function ExploreList({ title: title2, links }) {
|
|
11551
11660
|
const t = useT();
|
|
11552
11661
|
return jsxs("section", {
|
|
11553
|
-
className: styles$
|
|
11662
|
+
className: styles$6.section,
|
|
11554
11663
|
"aria-label": title2,
|
|
11555
11664
|
children: [jsx("h2", {
|
|
11556
|
-
className: styles$
|
|
11665
|
+
className: styles$6.title,
|
|
11557
11666
|
children: title2
|
|
11558
11667
|
}), jsx("ul", {
|
|
11559
|
-
className: styles$
|
|
11668
|
+
className: styles$6.list,
|
|
11560
11669
|
children: links.map((l) => jsx("li", {
|
|
11561
11670
|
children: jsxs(ShopLink, {
|
|
11562
11671
|
to: `/category/${encodeURIComponent(l.code)}`,
|
|
11563
|
-
className: styles$
|
|
11672
|
+
className: styles$6.row,
|
|
11564
11673
|
children: [jsx("span", {
|
|
11565
11674
|
children: t(l.label)
|
|
11566
11675
|
}), jsx("svg", {
|
|
@@ -11588,7 +11697,7 @@ const featured = "_featured_1kft8_36";
|
|
|
11588
11697
|
const gridBlock = "_gridBlock_1kft8_37";
|
|
11589
11698
|
const blockTitle = "_blockTitle_1kft8_44";
|
|
11590
11699
|
const grid = "_grid_1kft8_37";
|
|
11591
|
-
const styles$
|
|
11700
|
+
const styles$5 = {
|
|
11592
11701
|
pcp,
|
|
11593
11702
|
blocks,
|
|
11594
11703
|
featured,
|
|
@@ -11611,9 +11720,9 @@ function Block({ block }) {
|
|
|
11611
11720
|
});
|
|
11612
11721
|
case "featured":
|
|
11613
11722
|
return jsxs("div", {
|
|
11614
|
-
className: styles$
|
|
11723
|
+
className: styles$5.featured,
|
|
11615
11724
|
children: [block.title && jsx("h2", {
|
|
11616
|
-
className: styles$
|
|
11725
|
+
className: styles$5.blockTitle,
|
|
11617
11726
|
children: t(block.title)
|
|
11618
11727
|
}), jsx(ProductTile, {
|
|
11619
11728
|
product: block.product,
|
|
@@ -11633,12 +11742,12 @@ function Block({ block }) {
|
|
|
11633
11742
|
});
|
|
11634
11743
|
case "grid":
|
|
11635
11744
|
return jsxs("div", {
|
|
11636
|
-
className: styles$
|
|
11745
|
+
className: styles$5.gridBlock,
|
|
11637
11746
|
children: [block.title && jsx("h2", {
|
|
11638
|
-
className: styles$
|
|
11747
|
+
className: styles$5.blockTitle,
|
|
11639
11748
|
children: t(block.title)
|
|
11640
11749
|
}), jsx("ul", {
|
|
11641
|
-
className: styles$
|
|
11750
|
+
className: styles$5.grid,
|
|
11642
11751
|
children: block.products.map((p) => jsx("li", {
|
|
11643
11752
|
children: jsx(ProductTile, {
|
|
11644
11753
|
product: p
|
|
@@ -11667,11 +11776,11 @@ function CategoryContent({ page: page2 }) {
|
|
|
11667
11776
|
return jsxs(ShopSurface, {
|
|
11668
11777
|
tone: "dark",
|
|
11669
11778
|
fill: true,
|
|
11670
|
-
className: styles$
|
|
11779
|
+
className: styles$5.pcp,
|
|
11671
11780
|
children: [jsx(PcpHero, {
|
|
11672
11781
|
hero: page2.hero
|
|
11673
11782
|
}), jsx("div", {
|
|
11674
|
-
className: styles$
|
|
11783
|
+
className: styles$5.blocks,
|
|
11675
11784
|
children: page2.blocks.map((block, i) => jsx(Block, {
|
|
11676
11785
|
block
|
|
11677
11786
|
}, i))
|
|
@@ -11845,16 +11954,19 @@ function ProductView({ sku, initialData, showRecommendations = true, onNotFound
|
|
|
11845
11954
|
})
|
|
11846
11955
|
});
|
|
11847
11956
|
}
|
|
11848
|
-
const hero$1 = "
|
|
11849
|
-
const image$1 = "
|
|
11850
|
-
const foot = "
|
|
11851
|
-
const text$1 = "
|
|
11852
|
-
const logo$1 = "
|
|
11853
|
-
const copy$1 = "
|
|
11854
|
-
const headline = "
|
|
11855
|
-
const body = "
|
|
11856
|
-
const cta$1 = "
|
|
11857
|
-
const
|
|
11957
|
+
const hero$1 = "_hero_dctyt_1";
|
|
11958
|
+
const image$1 = "_image_dctyt_11";
|
|
11959
|
+
const foot = "_foot_dctyt_34";
|
|
11960
|
+
const text$1 = "_text_dctyt_40";
|
|
11961
|
+
const logo$1 = "_logo_dctyt_48";
|
|
11962
|
+
const copy$1 = "_copy_dctyt_53";
|
|
11963
|
+
const headline = "_headline_dctyt_62";
|
|
11964
|
+
const body = "_body_dctyt_70";
|
|
11965
|
+
const cta$1 = "_cta_dctyt_79";
|
|
11966
|
+
const video = "_video_dctyt_83";
|
|
11967
|
+
const desktopOnly = "_desktopOnly_dctyt_87";
|
|
11968
|
+
const phoneOnly = "_phoneOnly_dctyt_97";
|
|
11969
|
+
const styles$4 = {
|
|
11858
11970
|
hero: hero$1,
|
|
11859
11971
|
image: image$1,
|
|
11860
11972
|
foot,
|
|
@@ -11863,21 +11975,28 @@ const styles$3 = {
|
|
|
11863
11975
|
copy: copy$1,
|
|
11864
11976
|
headline,
|
|
11865
11977
|
body,
|
|
11866
|
-
cta: cta$1
|
|
11978
|
+
cta: cta$1,
|
|
11979
|
+
video,
|
|
11980
|
+
desktopOnly,
|
|
11981
|
+
phoneOnly
|
|
11867
11982
|
};
|
|
11868
11983
|
function VipHero({ hero: hero2, onContinue }) {
|
|
11869
11984
|
const t = useT();
|
|
11870
11985
|
const assetUrl = useAssetUrl();
|
|
11871
11986
|
const ref = useRef(null);
|
|
11872
11987
|
useTopOffset(ref, "--vip-hero-top");
|
|
11988
|
+
const desktopImage = hero2.desktop_image ?? null;
|
|
11989
|
+
const desktopVideo = hero2.desktop_video ?? null;
|
|
11990
|
+
const wide2 = desktopImage !== null || desktopVideo !== null;
|
|
11873
11991
|
return jsx(ShopSurface, {
|
|
11874
11992
|
tone: "dark",
|
|
11875
11993
|
fill: true,
|
|
11994
|
+
"data-shop-layout": "wide",
|
|
11876
11995
|
children: jsxs("section", {
|
|
11877
11996
|
ref,
|
|
11878
|
-
className: styles$
|
|
11997
|
+
className: styles$4.hero,
|
|
11879
11998
|
children: [hero2.image && jsx("div", {
|
|
11880
|
-
className: styles$
|
|
11999
|
+
className: [styles$4.image, wide2 ? styles$4.phoneOnly : ""].join(" "),
|
|
11881
12000
|
children: jsx(ShopImage, {
|
|
11882
12001
|
src: hero2.image,
|
|
11883
12002
|
alt: "",
|
|
@@ -11885,26 +12004,41 @@ function VipHero({ hero: hero2, onContinue }) {
|
|
|
11885
12004
|
sizes: "(max-width: 480px) 100vw, 480px",
|
|
11886
12005
|
priority: true
|
|
11887
12006
|
})
|
|
12007
|
+
}), wide2 && jsxs("div", {
|
|
12008
|
+
className: [styles$4.image, styles$4.desktopOnly].join(" "),
|
|
12009
|
+
children: [desktopImage && jsx(ShopImage, {
|
|
12010
|
+
src: desktopImage,
|
|
12011
|
+
alt: "",
|
|
12012
|
+
fill: true,
|
|
12013
|
+
sizes: "100vw"
|
|
12014
|
+
}), desktopVideo && jsx(ShopVideo, {
|
|
12015
|
+
src: desktopVideo,
|
|
12016
|
+
...desktopImage ? {
|
|
12017
|
+
poster: desktopImage
|
|
12018
|
+
} : {},
|
|
12019
|
+
fill: true,
|
|
12020
|
+
className: styles$4.video
|
|
12021
|
+
})]
|
|
11888
12022
|
}), jsxs("div", {
|
|
11889
|
-
className: styles$
|
|
12023
|
+
className: styles$4.foot,
|
|
11890
12024
|
children: [jsxs("div", {
|
|
11891
|
-
className: styles$
|
|
12025
|
+
className: styles$4.text,
|
|
11892
12026
|
children: [jsx("img", {
|
|
11893
12027
|
src: assetUrl("/figma/home/dazn-logo.svg"),
|
|
11894
12028
|
alt: t("DAZN"),
|
|
11895
|
-
className: styles$
|
|
12029
|
+
className: styles$4.logo
|
|
11896
12030
|
}), jsxs("div", {
|
|
11897
|
-
className: styles$
|
|
12031
|
+
className: styles$4.copy,
|
|
11898
12032
|
children: [jsx("h1", {
|
|
11899
|
-
className: styles$
|
|
12033
|
+
className: styles$4.headline,
|
|
11900
12034
|
children: hero2.headline
|
|
11901
12035
|
}), hero2.body && jsx("p", {
|
|
11902
|
-
className: styles$
|
|
12036
|
+
className: styles$4.body,
|
|
11903
12037
|
children: hero2.body
|
|
11904
12038
|
})]
|
|
11905
12039
|
})]
|
|
11906
12040
|
}), jsx("div", {
|
|
11907
|
-
className: styles$
|
|
12041
|
+
className: styles$4.cta,
|
|
11908
12042
|
children: jsx(Button, {
|
|
11909
12043
|
variant: "primary",
|
|
11910
12044
|
fullWidth: true,
|
|
@@ -11916,7 +12050,82 @@ function VipHero({ hero: hero2, onContinue }) {
|
|
|
11916
12050
|
})
|
|
11917
12051
|
});
|
|
11918
12052
|
}
|
|
11919
|
-
function
|
|
12053
|
+
function HelpIcon() {
|
|
12054
|
+
return jsx("svg", {
|
|
12055
|
+
width: "24",
|
|
12056
|
+
height: "24",
|
|
12057
|
+
viewBox: "0 0 24 24",
|
|
12058
|
+
fill: "none",
|
|
12059
|
+
"aria-hidden": "true",
|
|
12060
|
+
children: jsxs("g", {
|
|
12061
|
+
transform: "translate(1.93 1.93)",
|
|
12062
|
+
children: [jsx("path", {
|
|
12063
|
+
d: "M10.0781 14.1543C10.52 14.1543 10.8779 14.5123 10.8779 14.9541C10.8778 15.3958 10.5199 15.7539 10.0781 15.7539H10.0693C9.62757 15.7539 9.26963 15.3958 9.26953 14.9541C9.26953 14.5123 9.62751 14.1543 10.0693 14.1543H10.0781Z",
|
|
12064
|
+
fill: "currentColor"
|
|
12065
|
+
}), jsx("path", {
|
|
12066
|
+
d: "M8.21777 4.7168C8.93457 4.29562 9.77726 4.14167 10.5967 4.28223C11.4161 4.42286 12.1599 4.84835 12.6953 5.48438C13.2303 6.12005 13.5233 6.92505 13.5225 7.75586L13.5107 8.00098C13.3992 9.19732 12.4886 10.0076 11.8057 10.4629C11.4401 10.7066 11.0785 10.8882 10.8018 11.0137V11.8223C10.8014 12.2637 10.4425 12.622 10.001 12.6221C9.55954 12.6219 9.20156 12.2637 9.20117 11.8223V10.4775C9.20117 10.1332 9.42146 9.82671 9.74805 9.71777C9.75073 9.71685 9.75671 9.71536 9.76367 9.71289C9.77824 9.70771 9.80199 9.69931 9.83301 9.6875C9.89571 9.66361 9.98896 9.62621 10.1016 9.57617C10.3291 9.47505 10.6264 9.32523 10.918 9.13086C11.5496 8.70973 11.9217 8.23795 11.9219 7.75586C11.9225 7.30239 11.7627 6.86161 11.4707 6.51465C11.1787 6.16788 10.773 5.93611 10.3262 5.85938C9.87921 5.78271 9.41933 5.86603 9.02832 6.0957C8.63742 6.32547 8.34003 6.68657 8.18945 7.11426C8.04274 7.53077 7.58557 7.74995 7.16895 7.60352C6.75252 7.45687 6.53351 7.00053 6.67969 6.58398C6.9556 5.79964 7.50096 5.1381 8.21777 4.7168Z",
|
|
12067
|
+
fill: "currentColor"
|
|
12068
|
+
}), jsx("path", {
|
|
12069
|
+
fillRule: "evenodd",
|
|
12070
|
+
clipRule: "evenodd",
|
|
12071
|
+
d: "M10.0693 0C15.6304 0.000197913 20.1395 4.50828 20.1396 10.0693C20.1395 15.6304 15.6304 20.1395 10.0693 20.1396C4.50828 20.1395 0.000197917 15.6304 0 10.0693C0.00019791 4.50828 4.50828 0.000197906 10.0693 0ZM10.0693 2C5.61285 2.0002 2.0002 5.61285 2 10.0693C2.0002 14.5258 5.61285 18.1395 10.0693 18.1396C14.5258 18.1395 18.1395 14.5258 18.1396 10.0693C18.1395 5.61285 14.5258 2.0002 10.0693 2Z",
|
|
12072
|
+
fill: "currentColor"
|
|
12073
|
+
})]
|
|
12074
|
+
})
|
|
12075
|
+
});
|
|
12076
|
+
}
|
|
12077
|
+
const crumbs = "_crumbs_wl5mz_1";
|
|
12078
|
+
const home = "_home_wl5mz_13";
|
|
12079
|
+
const separator = "_separator_wl5mz_25";
|
|
12080
|
+
const current = "_current_wl5mz_31";
|
|
12081
|
+
const help = "_help_wl5mz_36";
|
|
12082
|
+
const helpLabel = "_helpLabel_wl5mz_50";
|
|
12083
|
+
const styles$3 = {
|
|
12084
|
+
crumbs,
|
|
12085
|
+
home,
|
|
12086
|
+
separator,
|
|
12087
|
+
current,
|
|
12088
|
+
help,
|
|
12089
|
+
helpLabel
|
|
12090
|
+
};
|
|
12091
|
+
function VipBreadcrumb({ title: title2, onHome }) {
|
|
12092
|
+
const t = useT();
|
|
12093
|
+
return jsx("nav", {
|
|
12094
|
+
"aria-label": t("Breadcrumb"),
|
|
12095
|
+
children: jsxs("ol", {
|
|
12096
|
+
className: styles$3.crumbs,
|
|
12097
|
+
children: [jsx("li", {
|
|
12098
|
+
children: jsx("button", {
|
|
12099
|
+
type: "button",
|
|
12100
|
+
className: styles$3.home,
|
|
12101
|
+
onClick: onHome,
|
|
12102
|
+
children: t("Homepage")
|
|
12103
|
+
})
|
|
12104
|
+
}), jsx("li", {
|
|
12105
|
+
className: styles$3.separator,
|
|
12106
|
+
"aria-hidden": "true",
|
|
12107
|
+
children: "›"
|
|
12108
|
+
}), jsx("li", {
|
|
12109
|
+
"aria-current": "page",
|
|
12110
|
+
className: styles$3.current,
|
|
12111
|
+
children: title2
|
|
12112
|
+
})]
|
|
12113
|
+
})
|
|
12114
|
+
});
|
|
12115
|
+
}
|
|
12116
|
+
function VipHelpLink({ onHelp }) {
|
|
12117
|
+
const t = useT();
|
|
12118
|
+
return jsxs("button", {
|
|
12119
|
+
type: "button",
|
|
12120
|
+
className: styles$3.help,
|
|
12121
|
+
onClick: onHelp,
|
|
12122
|
+
children: [jsx(HelpIcon, {}), jsx("span", {
|
|
12123
|
+
className: styles$3.helpLabel,
|
|
12124
|
+
children: t("Need help with your order?")
|
|
12125
|
+
})]
|
|
12126
|
+
});
|
|
12127
|
+
}
|
|
12128
|
+
function VipLandingView({ token, onUnavailable, onHelp }) {
|
|
11920
12129
|
const t = useT();
|
|
11921
12130
|
const { api, emit } = useShop();
|
|
11922
12131
|
const [load, setLoad] = useState({
|
|
@@ -11979,10 +12188,13 @@ function VipLandingView({ token, onUnavailable }) {
|
|
|
11979
12188
|
}
|
|
11980
12189
|
return jsx(ActiveLanding, {
|
|
11981
12190
|
token,
|
|
11982
|
-
invite
|
|
12191
|
+
invite,
|
|
12192
|
+
...onHelp ? {
|
|
12193
|
+
onHelp
|
|
12194
|
+
} : {}
|
|
11983
12195
|
});
|
|
11984
12196
|
}
|
|
11985
|
-
function ActiveLanding({ token, invite }) {
|
|
12197
|
+
function ActiveLanding({ token, invite, onHelp }) {
|
|
11986
12198
|
const t = useT();
|
|
11987
12199
|
const toast2 = useToast();
|
|
11988
12200
|
const { api, emit } = useShop();
|
|
@@ -12041,7 +12253,22 @@ function ActiveLanding({ token, invite }) {
|
|
|
12041
12253
|
return jsx(ProductDetail, {
|
|
12042
12254
|
product: loaded.product,
|
|
12043
12255
|
inventory: loaded.inventory,
|
|
12044
|
-
claim
|
|
12256
|
+
claim,
|
|
12257
|
+
...invite.hero ? {
|
|
12258
|
+
breadcrumb: jsx(VipBreadcrumb, {
|
|
12259
|
+
title: loaded.product.title,
|
|
12260
|
+
onHome: product.close
|
|
12261
|
+
})
|
|
12262
|
+
} : {},
|
|
12263
|
+
help: jsx(VipHelpLink, {
|
|
12264
|
+
onHelp: () => {
|
|
12265
|
+
emit({
|
|
12266
|
+
type: "help_requested",
|
|
12267
|
+
inviteRef: invite.invite_ref
|
|
12268
|
+
});
|
|
12269
|
+
onHelp?.();
|
|
12270
|
+
}
|
|
12271
|
+
})
|
|
12045
12272
|
}, loaded.product.sku);
|
|
12046
12273
|
}
|
|
12047
12274
|
if (loaded.loading) return jsx(ScreenSkeleton, {
|
|
@@ -12298,9 +12525,9 @@ function useSlides() {
|
|
|
12298
12525
|
const api = shop?.api;
|
|
12299
12526
|
if (!api) return;
|
|
12300
12527
|
let live = true;
|
|
12301
|
-
void api.content.home().then((
|
|
12302
|
-
if (!live ||
|
|
12303
|
-
setFetched(
|
|
12528
|
+
void api.content.home().then((home2) => {
|
|
12529
|
+
if (!live || home2.slides.length === 0) return;
|
|
12530
|
+
setFetched(home2.slides.map((s) => ({
|
|
12304
12531
|
key: s.key,
|
|
12305
12532
|
title: s.title,
|
|
12306
12533
|
subtitle: s.subtitle,
|
|
@@ -12724,30 +12951,6 @@ function OrderIcon() {
|
|
|
12724
12951
|
})]
|
|
12725
12952
|
});
|
|
12726
12953
|
}
|
|
12727
|
-
function HelpIcon() {
|
|
12728
|
-
return jsx("svg", {
|
|
12729
|
-
width: "24",
|
|
12730
|
-
height: "24",
|
|
12731
|
-
viewBox: "0 0 24 24",
|
|
12732
|
-
fill: "none",
|
|
12733
|
-
"aria-hidden": "true",
|
|
12734
|
-
children: jsxs("g", {
|
|
12735
|
-
transform: "translate(1.93 1.93)",
|
|
12736
|
-
children: [jsx("path", {
|
|
12737
|
-
d: "M10.0781 14.1543C10.52 14.1543 10.8779 14.5123 10.8779 14.9541C10.8778 15.3958 10.5199 15.7539 10.0781 15.7539H10.0693C9.62757 15.7539 9.26963 15.3958 9.26953 14.9541C9.26953 14.5123 9.62751 14.1543 10.0693 14.1543H10.0781Z",
|
|
12738
|
-
fill: "currentColor"
|
|
12739
|
-
}), jsx("path", {
|
|
12740
|
-
d: "M8.21777 4.7168C8.93457 4.29562 9.77726 4.14167 10.5967 4.28223C11.4161 4.42286 12.1599 4.84835 12.6953 5.48438C13.2303 6.12005 13.5233 6.92505 13.5225 7.75586L13.5107 8.00098C13.3992 9.19732 12.4886 10.0076 11.8057 10.4629C11.4401 10.7066 11.0785 10.8882 10.8018 11.0137V11.8223C10.8014 12.2637 10.4425 12.622 10.001 12.6221C9.55954 12.6219 9.20156 12.2637 9.20117 11.8223V10.4775C9.20117 10.1332 9.42146 9.82671 9.74805 9.71777C9.75073 9.71685 9.75671 9.71536 9.76367 9.71289C9.77824 9.70771 9.80199 9.69931 9.83301 9.6875C9.89571 9.66361 9.98896 9.62621 10.1016 9.57617C10.3291 9.47505 10.6264 9.32523 10.918 9.13086C11.5496 8.70973 11.9217 8.23795 11.9219 7.75586C11.9225 7.30239 11.7627 6.86161 11.4707 6.51465C11.1787 6.16788 10.773 5.93611 10.3262 5.85938C9.87921 5.78271 9.41933 5.86603 9.02832 6.0957C8.63742 6.32547 8.34003 6.68657 8.18945 7.11426C8.04274 7.53077 7.58557 7.74995 7.16895 7.60352C6.75252 7.45687 6.53351 7.00053 6.67969 6.58398C6.9556 5.79964 7.50096 5.1381 8.21777 4.7168Z",
|
|
12741
|
-
fill: "currentColor"
|
|
12742
|
-
}), jsx("path", {
|
|
12743
|
-
fillRule: "evenodd",
|
|
12744
|
-
clipRule: "evenodd",
|
|
12745
|
-
d: "M10.0693 0C15.6304 0.000197913 20.1395 4.50828 20.1396 10.0693C20.1395 15.6304 15.6304 20.1395 10.0693 20.1396C4.50828 20.1395 0.000197917 15.6304 0 10.0693C0.00019791 4.50828 4.50828 0.000197906 10.0693 0ZM10.0693 2C5.61285 2.0002 2.0002 5.61285 2 10.0693C2.0002 14.5258 5.61285 18.1395 10.0693 18.1396C14.5258 18.1395 18.1395 14.5258 18.1396 10.0693C18.1395 5.61285 14.5258 2.0002 10.0693 2Z",
|
|
12746
|
-
fill: "currentColor"
|
|
12747
|
-
})]
|
|
12748
|
-
})
|
|
12749
|
-
});
|
|
12750
|
-
}
|
|
12751
12954
|
function ChevronRight() {
|
|
12752
12955
|
return jsx("svg", {
|
|
12753
12956
|
width: "16",
|
|
@@ -12938,6 +13141,7 @@ function toGa4Event(event) {
|
|
|
12938
13141
|
case "ready":
|
|
12939
13142
|
case "navigate":
|
|
12940
13143
|
case "support_requested":
|
|
13144
|
+
case "help_requested":
|
|
12941
13145
|
case "order_cancellation_requested":
|
|
12942
13146
|
case "reorder_requested":
|
|
12943
13147
|
case "session_required":
|