@nok-integration/storefront-react 0.22.0 → 0.22.2
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 +1 -0
- package/dist/index.mjs +1015 -747
- package/dist/standalone/storefront.mjs +1015 -747
- package/dist/standalone/styles.css +384 -135
- package/dist/styles.css +384 -135
- package/package.json +1 -1
|
@@ -5899,7 +5899,7 @@ const neutral$2 = "_neutral_1bagf_12";
|
|
|
5899
5899
|
const success$1 = "_success_1bagf_17";
|
|
5900
5900
|
const critical$2 = "_critical_1bagf_22";
|
|
5901
5901
|
const promo = "_promo_1bagf_27";
|
|
5902
|
-
const styles$
|
|
5902
|
+
const styles$W = {
|
|
5903
5903
|
badge: badge$5,
|
|
5904
5904
|
neutral: neutral$2,
|
|
5905
5905
|
success: success$1,
|
|
@@ -5908,7 +5908,7 @@ const styles$V = {
|
|
|
5908
5908
|
};
|
|
5909
5909
|
function Badge({ tone = "neutral", children }) {
|
|
5910
5910
|
return jsx("span", {
|
|
5911
|
-
className: [styles$
|
|
5911
|
+
className: [styles$W.badge, styles$W[tone]].join(" "),
|
|
5912
5912
|
children
|
|
5913
5913
|
});
|
|
5914
5914
|
}
|
|
@@ -5917,7 +5917,7 @@ const fullWidth = "_fullWidth_ci424_25";
|
|
|
5917
5917
|
const primary = "_primary_ci424_29";
|
|
5918
5918
|
const secondary = "_secondary_ci424_34";
|
|
5919
5919
|
const ghost = "_ghost_ci424_40";
|
|
5920
|
-
const styles$
|
|
5920
|
+
const styles$V = {
|
|
5921
5921
|
button: button$1,
|
|
5922
5922
|
fullWidth,
|
|
5923
5923
|
primary,
|
|
@@ -5925,12 +5925,12 @@ const styles$U = {
|
|
|
5925
5925
|
ghost
|
|
5926
5926
|
};
|
|
5927
5927
|
const spinner = "_spinner_1rueh_5";
|
|
5928
|
-
const styles$
|
|
5928
|
+
const styles$U = {
|
|
5929
5929
|
spinner
|
|
5930
5930
|
};
|
|
5931
5931
|
function Spinner({ className }) {
|
|
5932
5932
|
return jsx("span", {
|
|
5933
|
-
className: [styles$
|
|
5933
|
+
className: [styles$U.spinner, className ?? ""].filter(Boolean).join(" "),
|
|
5934
5934
|
"aria-hidden": "true"
|
|
5935
5935
|
});
|
|
5936
5936
|
}
|
|
@@ -5939,7 +5939,7 @@ const Button = forwardRef(function Button2({ variant = "primary", loading = fals
|
|
|
5939
5939
|
return jsxs("button", {
|
|
5940
5940
|
ref,
|
|
5941
5941
|
type,
|
|
5942
|
-
className: [styles$
|
|
5942
|
+
className: [styles$V.button, styles$V[variant], fullWidth2 ? styles$V.fullWidth : "", className ?? ""].filter(Boolean).join(" "),
|
|
5943
5943
|
disabled: isDisabled,
|
|
5944
5944
|
"aria-busy": loading || void 0,
|
|
5945
5945
|
...rest,
|
|
@@ -5948,9 +5948,9 @@ const Button = forwardRef(function Button2({ variant = "primary", loading = fals
|
|
|
5948
5948
|
})]
|
|
5949
5949
|
});
|
|
5950
5950
|
});
|
|
5951
|
-
const skeleton = "_skeleton_1nxz7_1";
|
|
5952
|
-
const styles$
|
|
5953
|
-
skeleton
|
|
5951
|
+
const skeleton$1 = "_skeleton_1nxz7_1";
|
|
5952
|
+
const styles$T = {
|
|
5953
|
+
skeleton: skeleton$1
|
|
5954
5954
|
};
|
|
5955
5955
|
function Skeleton({ width, height, radius, className, circle }) {
|
|
5956
5956
|
const style = {
|
|
@@ -5960,13 +5960,13 @@ function Skeleton({ width, height, radius, className, circle }) {
|
|
|
5960
5960
|
};
|
|
5961
5961
|
return jsx("span", {
|
|
5962
5962
|
"aria-hidden": "true",
|
|
5963
|
-
className: [styles$
|
|
5963
|
+
className: [styles$T.skeleton, className ?? ""].filter(Boolean).join(" "),
|
|
5964
5964
|
style
|
|
5965
5965
|
});
|
|
5966
5966
|
}
|
|
5967
5967
|
const surface$1 = "_surface_stwld_10";
|
|
5968
5968
|
const fill = "_fill_stwld_35";
|
|
5969
|
-
const styles$
|
|
5969
|
+
const styles$S = {
|
|
5970
5970
|
surface: surface$1,
|
|
5971
5971
|
fill
|
|
5972
5972
|
};
|
|
@@ -6113,7 +6113,7 @@ const ShopSurface = forwardRef(function ShopSurface2({ tone, fill: fill2 = false
|
|
|
6113
6113
|
...rest,
|
|
6114
6114
|
ref: attach,
|
|
6115
6115
|
"data-shop-theme": tone,
|
|
6116
|
-
className: [styles$
|
|
6116
|
+
className: [styles$S.surface, fill2 ? styles$S.fill : "", className ?? ""].filter(Boolean).join(" "),
|
|
6117
6117
|
children
|
|
6118
6118
|
});
|
|
6119
6119
|
});
|
|
@@ -6126,7 +6126,7 @@ const lineMid = "_lineMid_ney0g_45";
|
|
|
6126
6126
|
const lineNarrow = "_lineNarrow_ney0g_49";
|
|
6127
6127
|
const row$9 = "_row_ney0g_53";
|
|
6128
6128
|
const action$2 = "_action_ney0g_57";
|
|
6129
|
-
const styles$
|
|
6129
|
+
const styles$R = {
|
|
6130
6130
|
root: root$6,
|
|
6131
6131
|
inner,
|
|
6132
6132
|
media: media$3,
|
|
@@ -6180,7 +6180,7 @@ function useMoney(defaultLocale) {
|
|
|
6180
6180
|
}
|
|
6181
6181
|
function useLocale(override) {
|
|
6182
6182
|
const shop = useShopOptional();
|
|
6183
|
-
return override ?? shop?.locale ?? shop?.market?.lang ?? (typeof navigator !== "undefined" ? navigator.language : void 0);
|
|
6183
|
+
return override ?? shop?.locale ?? (shop?.market?.lang && shop.market.country && !shop.market.lang.includes("-") ? `${shop.market.lang}-${shop.market.country}` : shop?.market?.lang) ?? (typeof navigator !== "undefined" ? navigator.language : void 0);
|
|
6184
6184
|
}
|
|
6185
6185
|
const ES = {
|
|
6186
6186
|
"(opens {0} in a new tab)": "(abre {0} en una nueva pestaña)",
|
|
@@ -6365,6 +6365,7 @@ const ES = {
|
|
|
6365
6365
|
"We’ve sent a confirmation to {0}": "Hemos enviado una confirmación a {0}",
|
|
6366
6366
|
"What do you want to return?": "¿Qué desea devolver?",
|
|
6367
6367
|
"Your order is confirmed": "Su pedido está confirmado",
|
|
6368
|
+
"Order confirmed": "Pedido confirmado",
|
|
6368
6369
|
"You’ll receive a shipping label PDF to your email as well.": "Recibirá un PDF de la etiqueta de envío en su correo electrónico.",
|
|
6369
6370
|
"{0} photographs": "{0} fotografías",
|
|
6370
6371
|
"{0}, opens in a new tab": "{0}, se abre en una pestaña nueva",
|
|
@@ -6429,36 +6430,36 @@ function ScreenSkeleton({ tone, shape = "media" }) {
|
|
|
6429
6430
|
return jsx(ShopSurface, {
|
|
6430
6431
|
tone,
|
|
6431
6432
|
fill: true,
|
|
6432
|
-
className: styles$
|
|
6433
|
+
className: styles$R.root,
|
|
6433
6434
|
children: jsx("div", {
|
|
6434
|
-
className: styles$
|
|
6435
|
+
className: styles$R.inner,
|
|
6435
6436
|
role: "status",
|
|
6436
6437
|
"aria-label": t("Loading"),
|
|
6437
6438
|
children: shape === "media" ? jsxs(Fragment, {
|
|
6438
6439
|
children: [jsx(Skeleton, {
|
|
6439
|
-
className: styles$
|
|
6440
|
+
className: styles$R.media
|
|
6440
6441
|
}), jsxs("div", {
|
|
6441
|
-
className: styles$
|
|
6442
|
+
className: styles$R.lines,
|
|
6442
6443
|
children: [jsx(Skeleton, {
|
|
6443
6444
|
height: 22,
|
|
6444
|
-
className: styles$
|
|
6445
|
+
className: styles$R.lineWide
|
|
6445
6446
|
}), jsx(Skeleton, {
|
|
6446
6447
|
height: 16,
|
|
6447
|
-
className: styles$
|
|
6448
|
+
className: styles$R.lineMid
|
|
6448
6449
|
}), jsx(Skeleton, {
|
|
6449
6450
|
height: 16,
|
|
6450
|
-
className: styles$
|
|
6451
|
+
className: styles$R.lineNarrow
|
|
6451
6452
|
})]
|
|
6452
6453
|
}), jsx(Skeleton, {
|
|
6453
6454
|
height: 48,
|
|
6454
6455
|
radius: 8,
|
|
6455
|
-
className: styles$
|
|
6456
|
+
className: styles$R.action
|
|
6456
6457
|
})]
|
|
6457
6458
|
}) : jsx("div", {
|
|
6458
|
-
className: styles$
|
|
6459
|
+
className: styles$R.lines,
|
|
6459
6460
|
children: [0, 1, 2, 3].map((i) => jsx(Skeleton, {
|
|
6460
6461
|
height: 72,
|
|
6461
|
-
className: styles$
|
|
6462
|
+
className: styles$R.row
|
|
6462
6463
|
}, i))
|
|
6463
6464
|
})
|
|
6464
6465
|
})
|
|
@@ -6470,7 +6471,7 @@ const text$6 = "_text_ryf3q_21";
|
|
|
6470
6471
|
const title$n = "_title_ryf3q_35";
|
|
6471
6472
|
const body$9 = "_body_ryf3q_40";
|
|
6472
6473
|
const action$1 = "_action_ryf3q_48";
|
|
6473
|
-
const styles$
|
|
6474
|
+
const styles$Q = {
|
|
6474
6475
|
root: root$5,
|
|
6475
6476
|
icon: icon$4,
|
|
6476
6477
|
text: text$6,
|
|
@@ -6480,22 +6481,22 @@ const styles$P = {
|
|
|
6480
6481
|
};
|
|
6481
6482
|
function EmptyState({ title: title2, body: body3, action: action2, icon: icon2 }) {
|
|
6482
6483
|
return jsxs("div", {
|
|
6483
|
-
className: styles$
|
|
6484
|
+
className: styles$Q.root,
|
|
6484
6485
|
role: "status",
|
|
6485
6486
|
children: [icon2 && jsx("div", {
|
|
6486
|
-
className: styles$
|
|
6487
|
+
className: styles$Q.icon,
|
|
6487
6488
|
children: icon2
|
|
6488
6489
|
}), jsxs("div", {
|
|
6489
|
-
className: styles$
|
|
6490
|
+
className: styles$Q.text,
|
|
6490
6491
|
children: [jsx("h2", {
|
|
6491
|
-
className: styles$
|
|
6492
|
+
className: styles$Q.title,
|
|
6492
6493
|
children: title2
|
|
6493
6494
|
}), body3 && jsx("p", {
|
|
6494
|
-
className: styles$
|
|
6495
|
+
className: styles$Q.body,
|
|
6495
6496
|
children: body3
|
|
6496
6497
|
})]
|
|
6497
6498
|
}), action2 && jsx("div", {
|
|
6498
|
-
className: styles$
|
|
6499
|
+
className: styles$Q.action,
|
|
6499
6500
|
children: action2
|
|
6500
6501
|
})]
|
|
6501
6502
|
});
|
|
@@ -6632,7 +6633,7 @@ function isDuplicateOrder(err) {
|
|
|
6632
6633
|
const root$4 = "_root_1lbpx_1";
|
|
6633
6634
|
const title$m = "_title_1lbpx_10";
|
|
6634
6635
|
const body$8 = "_body_1lbpx_15";
|
|
6635
|
-
const styles$
|
|
6636
|
+
const styles$P = {
|
|
6636
6637
|
root: root$4,
|
|
6637
6638
|
title: title$m,
|
|
6638
6639
|
body: body$8
|
|
@@ -6642,13 +6643,13 @@ function ErrorState({ code, title: title2, body: body3, onRetry, retryLabel }) {
|
|
|
6642
6643
|
const treatment = treatmentFor(code);
|
|
6643
6644
|
const showRetry = Boolean(onRetry) && treatment.retriable;
|
|
6644
6645
|
return jsxs("div", {
|
|
6645
|
-
className: styles$
|
|
6646
|
+
className: styles$P.root,
|
|
6646
6647
|
role: "alert",
|
|
6647
6648
|
children: [jsx("h2", {
|
|
6648
|
-
className: styles$
|
|
6649
|
+
className: styles$P.title,
|
|
6649
6650
|
children: title2 ?? t(treatment.title)
|
|
6650
6651
|
}), jsx("p", {
|
|
6651
|
-
className: styles$
|
|
6652
|
+
className: styles$P.body,
|
|
6652
6653
|
children: body3 ?? t(treatment.body)
|
|
6653
6654
|
}), showRetry && jsx(Button, {
|
|
6654
6655
|
variant: "secondary",
|
|
@@ -6696,7 +6697,7 @@ const rich = "_rich_oz4st_183";
|
|
|
6696
6697
|
const description = "_description_oz4st_198";
|
|
6697
6698
|
const thumb$4 = "_thumb_oz4st_216";
|
|
6698
6699
|
const thumbImage = "_thumbImage_oz4st_227";
|
|
6699
|
-
const styles$
|
|
6700
|
+
const styles$O = {
|
|
6700
6701
|
viewport,
|
|
6701
6702
|
anchor,
|
|
6702
6703
|
caret,
|
|
@@ -6819,41 +6820,41 @@ function ToastProvider({ children }) {
|
|
|
6819
6820
|
return jsxs(ToastContext.Provider, {
|
|
6820
6821
|
value: api,
|
|
6821
6822
|
children: [children, jsx("div", {
|
|
6822
|
-
className: styles$
|
|
6823
|
+
className: styles$O.viewport,
|
|
6823
6824
|
ref: viewportRef,
|
|
6824
6825
|
"aria-live": "polite",
|
|
6825
6826
|
"aria-atomic": "false",
|
|
6826
6827
|
children: toasts.map((t) => {
|
|
6827
6828
|
const rich2 = Boolean(t.description || t.image);
|
|
6828
6829
|
return jsxs("div", {
|
|
6829
|
-
className: styles$
|
|
6830
|
+
className: styles$O.anchor,
|
|
6830
6831
|
children: [t.anchor === "cart" && jsx("span", {
|
|
6831
|
-
className: styles$
|
|
6832
|
+
className: styles$O.caret,
|
|
6832
6833
|
children: jsx(Caret, {})
|
|
6833
6834
|
}), jsxs("div", {
|
|
6834
|
-
className: [styles$
|
|
6835
|
+
className: [styles$O.toast, rich2 ? styles$O.rich : styles$O[t.tone]].join(" "),
|
|
6835
6836
|
role: "status",
|
|
6836
6837
|
children: [t.image && jsx("span", {
|
|
6837
|
-
className: styles$
|
|
6838
|
+
className: styles$O.thumb,
|
|
6838
6839
|
children: jsx(ShopImage, {
|
|
6839
6840
|
src: t.image,
|
|
6840
6841
|
alt: "",
|
|
6841
6842
|
fill: true,
|
|
6842
6843
|
sizes: "40px",
|
|
6843
|
-
className: styles$
|
|
6844
|
+
className: styles$O.thumbImage
|
|
6844
6845
|
})
|
|
6845
6846
|
}), jsxs("span", {
|
|
6846
|
-
className: styles$
|
|
6847
|
+
className: styles$O.text,
|
|
6847
6848
|
children: [jsx("span", {
|
|
6848
|
-
className: styles$
|
|
6849
|
+
className: styles$O.message,
|
|
6849
6850
|
children: t.message
|
|
6850
6851
|
}), t.description && jsx("span", {
|
|
6851
|
-
className: styles$
|
|
6852
|
+
className: styles$O.description,
|
|
6852
6853
|
children: t.description
|
|
6853
6854
|
})]
|
|
6854
6855
|
}), t.action && jsx("button", {
|
|
6855
6856
|
type: "button",
|
|
6856
|
-
className: styles$
|
|
6857
|
+
className: styles$O.action,
|
|
6857
6858
|
onClick: () => {
|
|
6858
6859
|
t.action?.onAction();
|
|
6859
6860
|
dismiss(t.id);
|
|
@@ -6868,15 +6869,15 @@ function ToastProvider({ children }) {
|
|
|
6868
6869
|
}
|
|
6869
6870
|
const badge$4 = "_badge_156ya_2";
|
|
6870
6871
|
const icon$3 = "_icon_156ya_18";
|
|
6871
|
-
const styles$
|
|
6872
|
+
const styles$N = {
|
|
6872
6873
|
badge: badge$4,
|
|
6873
6874
|
icon: icon$3
|
|
6874
6875
|
};
|
|
6875
6876
|
function SaleBadge({ pct }) {
|
|
6876
6877
|
return jsxs("span", {
|
|
6877
|
-
className: styles$
|
|
6878
|
+
className: styles$N.badge,
|
|
6878
6879
|
children: [jsxs("svg", {
|
|
6879
|
-
className: styles$
|
|
6880
|
+
className: styles$N.icon,
|
|
6880
6881
|
width: "12",
|
|
6881
6882
|
height: "12",
|
|
6882
6883
|
viewBox: "0 0 24 24",
|
|
@@ -6906,7 +6907,7 @@ const badge$3 = "_badge_rvfx9_48";
|
|
|
6906
6907
|
const price$4 = "_price_rvfx9_52";
|
|
6907
6908
|
const compareAt = "_compareAt_rvfx9_57";
|
|
6908
6909
|
const strikethrough = "_strikethrough_rvfx9_65";
|
|
6909
|
-
const styles$
|
|
6910
|
+
const styles$M = {
|
|
6910
6911
|
root: root$3,
|
|
6911
6912
|
center: center$1,
|
|
6912
6913
|
end,
|
|
@@ -6924,12 +6925,12 @@ function PriceBlock({ price: price2, compareAt: compareAt2, discountPct: discoun
|
|
|
6924
6925
|
const pct = discountPct$1 ?? discountPct(price2, compareAt2);
|
|
6925
6926
|
const hasCompare = compareAt2 && compareAt2.amount > price2.amount;
|
|
6926
6927
|
return jsxs("div", {
|
|
6927
|
-
className: [styles$
|
|
6928
|
+
className: [styles$M.root, styles$M[size], styles$M[align], styles$M[variant]].join(" "),
|
|
6928
6929
|
children: [jsx("span", {
|
|
6929
|
-
className: styles$
|
|
6930
|
+
className: styles$M.price,
|
|
6930
6931
|
children: format(price2)
|
|
6931
6932
|
}), hasCompare && jsxs("span", {
|
|
6932
|
-
className: styles$
|
|
6933
|
+
className: styles$M.compareAt,
|
|
6933
6934
|
children: [jsx("span", {
|
|
6934
6935
|
className: "visually-hidden",
|
|
6935
6936
|
children: t("Was {0}", format(compareAt2))
|
|
@@ -6999,7 +7000,7 @@ const past = "_past_1cum7_113";
|
|
|
6999
7000
|
const current$1 = "_current_1cum7_118";
|
|
7000
7001
|
const future = "_future_1cum7_133";
|
|
7001
7002
|
const date$1 = "_date_1cum7_138";
|
|
7002
|
-
const styles$
|
|
7003
|
+
const styles$L = {
|
|
7003
7004
|
timeline,
|
|
7004
7005
|
row: row$8,
|
|
7005
7006
|
line: line$3,
|
|
@@ -7033,39 +7034,40 @@ function OrderTimeline({ progress: progress2, estimatedDelivery, locale: localeP
|
|
|
7033
7034
|
const t = useT();
|
|
7034
7035
|
const currentIndex = progress2.findIndex((e) => e.current);
|
|
7035
7036
|
return jsx("ol", {
|
|
7036
|
-
className: styles$
|
|
7037
|
+
className: styles$L.timeline,
|
|
7037
7038
|
children: progress2.map((entry, i) => {
|
|
7038
7039
|
const state = stateOf(entry, i, currentIndex);
|
|
7039
7040
|
const estimate = !entry.at && i === progress2.length - 1 && estimatedDelivery ? formatWindow(estimatedDelivery, locale) : void 0;
|
|
7040
7041
|
return jsxs("li", {
|
|
7041
|
-
className: styles$
|
|
7042
|
+
className: styles$L.row,
|
|
7042
7043
|
"aria-current": entry.current ? "step" : void 0,
|
|
7043
7044
|
children: [jsxs("div", {
|
|
7044
|
-
className: styles$
|
|
7045
|
+
className: styles$L.line,
|
|
7045
7046
|
children: [jsx("span", {
|
|
7046
|
-
className: styles$
|
|
7047
|
+
className: styles$L.marker,
|
|
7047
7048
|
children: state === "future" ? jsx("span", {
|
|
7048
|
-
className: styles$
|
|
7049
|
+
className: styles$L.pending,
|
|
7049
7050
|
"aria-hidden": "true"
|
|
7050
7051
|
}) : jsx(StepTick, {
|
|
7051
7052
|
tone: state
|
|
7052
7053
|
})
|
|
7053
7054
|
}), jsxs("span", {
|
|
7054
|
-
className: styles$
|
|
7055
|
+
className: styles$L.text,
|
|
7055
7056
|
children: [jsx("span", {
|
|
7056
|
-
className: [styles$
|
|
7057
|
+
className: [styles$L.label, styles$L[state]].join(" "),
|
|
7058
|
+
"data-state": state,
|
|
7057
7059
|
children: t(labelFor(entry))
|
|
7058
7060
|
}), entry.at ? jsx("time", {
|
|
7059
|
-
className: styles$
|
|
7061
|
+
className: styles$L.date,
|
|
7060
7062
|
dateTime: entry.at,
|
|
7061
7063
|
children: formatStepDate(entry.at, locale)
|
|
7062
7064
|
}) : estimate && jsx("span", {
|
|
7063
|
-
className: styles$
|
|
7065
|
+
className: styles$L.date,
|
|
7064
7066
|
children: estimate
|
|
7065
7067
|
})]
|
|
7066
7068
|
})]
|
|
7067
7069
|
}), i < progress2.length - 1 && jsx("span", {
|
|
7068
|
-
className: styles$
|
|
7070
|
+
className: styles$L.connector,
|
|
7069
7071
|
"aria-hidden": "true"
|
|
7070
7072
|
})]
|
|
7071
7073
|
}, entry.step);
|
|
@@ -7079,7 +7081,7 @@ function stateOf(entry, index, currentIndex) {
|
|
|
7079
7081
|
}
|
|
7080
7082
|
function StepTick({ tone }) {
|
|
7081
7083
|
return jsxs("svg", {
|
|
7082
|
-
className: styles$
|
|
7084
|
+
className: styles$L.tick,
|
|
7083
7085
|
width: "28",
|
|
7084
7086
|
height: "28",
|
|
7085
7087
|
viewBox: "0 0 28 28",
|
|
@@ -7219,12 +7221,12 @@ const SWATCH_HEX = {
|
|
|
7219
7221
|
function swatchColour(name2) {
|
|
7220
7222
|
return SWATCH_HEX[name2.toLowerCase().trim()] ?? "#c9cdd0";
|
|
7221
7223
|
}
|
|
7222
|
-
const summary = "
|
|
7223
|
-
const row$7 = "
|
|
7224
|
-
const free = "
|
|
7225
|
-
const pending$1 = "
|
|
7226
|
-
const discount = "
|
|
7227
|
-
const styles$
|
|
7224
|
+
const summary = "_summary_1k2h8_2";
|
|
7225
|
+
const row$7 = "_row_1k2h8_16";
|
|
7226
|
+
const free = "_free_1k2h8_53";
|
|
7227
|
+
const pending$1 = "_pending_1k2h8_59";
|
|
7228
|
+
const discount = "_discount_1k2h8_69";
|
|
7229
|
+
const styles$K = {
|
|
7228
7230
|
summary,
|
|
7229
7231
|
row: row$7,
|
|
7230
7232
|
free,
|
|
@@ -7253,11 +7255,11 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
|
|
|
7253
7255
|
const isDeferred = (key) => deferred.includes(key);
|
|
7254
7256
|
const visible = rows.filter((row2) => !hidden.includes(row2.key)).filter((row2) => row2.key !== "discount" || discount2 !== void 0);
|
|
7255
7257
|
return jsx("dl", {
|
|
7256
|
-
className: styles$
|
|
7258
|
+
className: styles$K.summary,
|
|
7257
7259
|
children: visible.map(({ label: label2, key }) => {
|
|
7258
7260
|
if (key === "discount" && discount2) {
|
|
7259
7261
|
return jsxs("div", {
|
|
7260
|
-
className: [styles$
|
|
7262
|
+
className: [styles$K.row, styles$K.discount].join(" "),
|
|
7261
7263
|
children: [jsx("dt", {
|
|
7262
7264
|
children: t(label2)
|
|
7263
7265
|
}), jsx("dd", {
|
|
@@ -7267,11 +7269,11 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
|
|
|
7267
7269
|
}
|
|
7268
7270
|
const pending2 = key !== "total" && isDeferred(key);
|
|
7269
7271
|
return jsxs("div", {
|
|
7270
|
-
className: styles$
|
|
7272
|
+
className: styles$K.row,
|
|
7271
7273
|
children: [jsx("dt", {
|
|
7272
7274
|
children: t(label2)
|
|
7273
7275
|
}), jsx("dd", {
|
|
7274
|
-
className: pending2 ? styles$
|
|
7276
|
+
className: pending2 ? styles$K.pending : void 0,
|
|
7275
7277
|
children: pending2 ? t("Calculated at checkout") : renderValue(key, pricing, format, t)
|
|
7276
7278
|
})]
|
|
7277
7279
|
}, key);
|
|
@@ -7281,34 +7283,34 @@ function OrderSummary({ pricing, deferred = [], hidden = [], rows = CART_ROWS, d
|
|
|
7281
7283
|
function renderValue(key, pricing, format, t) {
|
|
7282
7284
|
if (key === "shipping" && pricing.shipping.amount === 0) {
|
|
7283
7285
|
return jsx("span", {
|
|
7284
|
-
className: styles$
|
|
7286
|
+
className: styles$K.free,
|
|
7285
7287
|
children: t("Free")
|
|
7286
7288
|
});
|
|
7287
7289
|
}
|
|
7288
7290
|
return key === "discount" ? null : format(pricing[key]);
|
|
7289
7291
|
}
|
|
7290
|
-
const lines$1 = "
|
|
7291
|
-
const line$2 = "
|
|
7292
|
-
const thumb$3 = "
|
|
7293
|
-
const image$b = "
|
|
7294
|
-
const placeholder$8 = "
|
|
7295
|
-
const lineBody = "
|
|
7296
|
-
const lineText = "
|
|
7297
|
-
const lineTitle = "
|
|
7298
|
-
const lineMeta = "
|
|
7299
|
-
const detail$1 = "
|
|
7300
|
-
const linePrice = "
|
|
7301
|
-
const paid$3 = "
|
|
7302
|
-
const was$4 = "
|
|
7303
|
-
const card$4 = "
|
|
7304
|
-
const cardTitle = "
|
|
7305
|
-
const cardBody = "
|
|
7306
|
-
const summaryCard = "
|
|
7307
|
-
const itemsHeader = "
|
|
7308
|
-
const itemsTitle = "
|
|
7309
|
-
const itemsCount = "
|
|
7310
|
-
const cardLines = "
|
|
7311
|
-
const styles$
|
|
7292
|
+
const lines$1 = "_lines_gr6vv_19";
|
|
7293
|
+
const line$2 = "_line_gr6vv_19";
|
|
7294
|
+
const thumb$3 = "_thumb_gr6vv_34";
|
|
7295
|
+
const image$b = "_image_gr6vv_44";
|
|
7296
|
+
const placeholder$8 = "_placeholder_gr6vv_51";
|
|
7297
|
+
const lineBody = "_lineBody_gr6vv_56";
|
|
7298
|
+
const lineText = "_lineText_gr6vv_65";
|
|
7299
|
+
const lineTitle = "_lineTitle_gr6vv_75";
|
|
7300
|
+
const lineMeta = "_lineMeta_gr6vv_106";
|
|
7301
|
+
const detail$1 = "_detail_gr6vv_103";
|
|
7302
|
+
const linePrice = "_linePrice_gr6vv_127";
|
|
7303
|
+
const paid$3 = "_paid_gr6vv_139";
|
|
7304
|
+
const was$4 = "_was_gr6vv_152";
|
|
7305
|
+
const card$4 = "_card_gr6vv_175";
|
|
7306
|
+
const cardTitle = "_cardTitle_gr6vv_183";
|
|
7307
|
+
const cardBody = "_cardBody_gr6vv_195";
|
|
7308
|
+
const summaryCard = "_summaryCard_gr6vv_167";
|
|
7309
|
+
const itemsHeader = "_itemsHeader_gr6vv_14";
|
|
7310
|
+
const itemsTitle = "_itemsTitle_gr6vv_238";
|
|
7311
|
+
const itemsCount = "_itemsCount_gr6vv_249";
|
|
7312
|
+
const cardLines = "_cardLines_gr6vv_268";
|
|
7313
|
+
const styles$J = {
|
|
7312
7314
|
lines: lines$1,
|
|
7313
7315
|
line: line$2,
|
|
7314
7316
|
thumb: thumb$3,
|
|
@@ -7351,42 +7353,42 @@ function OrderLine({ item: item2 }) {
|
|
|
7351
7353
|
const pct = compareAt2 ? discountPct(item2.unit_price, compareAt2) : void 0;
|
|
7352
7354
|
const details2 = detailsOf(item2, t);
|
|
7353
7355
|
return jsxs("li", {
|
|
7354
|
-
className: styles$
|
|
7356
|
+
className: styles$J.line,
|
|
7355
7357
|
children: [jsx("div", {
|
|
7356
|
-
className: styles$
|
|
7358
|
+
className: styles$J.thumb,
|
|
7357
7359
|
children: item2.image ? jsx(ShopImage, {
|
|
7358
7360
|
src: item2.image,
|
|
7359
7361
|
alt: "",
|
|
7360
7362
|
fill: true,
|
|
7361
7363
|
sizes: "48px",
|
|
7362
|
-
className: styles$
|
|
7364
|
+
className: styles$J.image
|
|
7363
7365
|
}) : jsx("div", {
|
|
7364
|
-
className: styles$
|
|
7366
|
+
className: styles$J.placeholder,
|
|
7365
7367
|
"aria-hidden": "true"
|
|
7366
7368
|
})
|
|
7367
7369
|
}), jsxs("div", {
|
|
7368
|
-
className: styles$
|
|
7370
|
+
className: styles$J.lineBody,
|
|
7369
7371
|
children: [jsxs("div", {
|
|
7370
|
-
className: styles$
|
|
7372
|
+
className: styles$J.lineText,
|
|
7371
7373
|
children: [jsx("span", {
|
|
7372
|
-
className: styles$
|
|
7374
|
+
className: styles$J.lineTitle,
|
|
7373
7375
|
children: item2.title ?? item2.sku
|
|
7374
7376
|
}), jsxs("span", {
|
|
7375
|
-
className: styles$
|
|
7377
|
+
className: styles$J.lineMeta,
|
|
7376
7378
|
children: [details2.map((detail2) => jsx("span", {
|
|
7377
|
-
className: styles$
|
|
7379
|
+
className: styles$J.detail,
|
|
7378
7380
|
children: detail2
|
|
7379
7381
|
}, detail2)), pct !== void 0 && jsx(SaleBadge, {
|
|
7380
7382
|
pct
|
|
7381
7383
|
})]
|
|
7382
7384
|
})]
|
|
7383
7385
|
}), jsxs("span", {
|
|
7384
|
-
className: styles$
|
|
7386
|
+
className: styles$J.linePrice,
|
|
7385
7387
|
children: [jsx("span", {
|
|
7386
|
-
className: styles$
|
|
7388
|
+
className: styles$J.paid,
|
|
7387
7389
|
children: format(item2.line_total)
|
|
7388
7390
|
}), compareAt2 && jsxs("span", {
|
|
7389
|
-
className: styles$
|
|
7391
|
+
className: styles$J.was,
|
|
7390
7392
|
children: [jsx("span", {
|
|
7391
7393
|
className: "visually-hidden",
|
|
7392
7394
|
children: t("Was {0}", format(compareAt2))
|
|
@@ -7402,7 +7404,7 @@ function OrderLine({ item: item2 }) {
|
|
|
7402
7404
|
function OrderLines({ order }) {
|
|
7403
7405
|
const t = useT();
|
|
7404
7406
|
return jsx("ul", {
|
|
7405
|
-
className: styles$
|
|
7407
|
+
className: styles$J.lines,
|
|
7406
7408
|
"aria-label": t("Items"),
|
|
7407
7409
|
children: order.items.map((item2) => jsx(OrderLine, {
|
|
7408
7410
|
item: item2
|
|
@@ -7413,19 +7415,19 @@ function OrderItemsCard({ order }) {
|
|
|
7413
7415
|
const t = useT();
|
|
7414
7416
|
const itemCount = order.items.reduce((n, i) => n + i.qty, 0);
|
|
7415
7417
|
return jsxs("section", {
|
|
7416
|
-
className: styles$
|
|
7418
|
+
className: styles$J.card,
|
|
7417
7419
|
"aria-label": t("Items"),
|
|
7418
7420
|
children: [jsxs("div", {
|
|
7419
|
-
className: styles$
|
|
7421
|
+
className: styles$J.itemsHeader,
|
|
7420
7422
|
children: [jsx("h2", {
|
|
7421
|
-
className: styles$
|
|
7423
|
+
className: styles$J.itemsTitle,
|
|
7422
7424
|
children: t("Items")
|
|
7423
7425
|
}), jsx("span", {
|
|
7424
|
-
className: styles$
|
|
7426
|
+
className: styles$J.itemsCount,
|
|
7425
7427
|
children: itemCount
|
|
7426
7428
|
})]
|
|
7427
7429
|
}), jsx("ul", {
|
|
7428
|
-
className: [styles$
|
|
7430
|
+
className: [styles$J.lines, styles$J.cardLines].join(" "),
|
|
7429
7431
|
children: order.items.map((item2) => jsx(OrderLine, {
|
|
7430
7432
|
item: item2
|
|
7431
7433
|
}, item2.line_ref))
|
|
@@ -7435,13 +7437,13 @@ function OrderItemsCard({ order }) {
|
|
|
7435
7437
|
function ShippingAddressCard({ order }) {
|
|
7436
7438
|
const t = useT();
|
|
7437
7439
|
return jsxs("section", {
|
|
7438
|
-
className: styles$
|
|
7440
|
+
className: styles$J.card,
|
|
7439
7441
|
"aria-label": t("Shipping address"),
|
|
7440
7442
|
children: [jsx("h2", {
|
|
7441
|
-
className: styles$
|
|
7443
|
+
className: styles$J.cardTitle,
|
|
7442
7444
|
children: t("Shipping address")
|
|
7443
7445
|
}), jsx("p", {
|
|
7444
|
-
className: styles$
|
|
7446
|
+
className: styles$J.cardBody,
|
|
7445
7447
|
children: formatAddress(order.ship_to)
|
|
7446
7448
|
})]
|
|
7447
7449
|
});
|
|
@@ -7449,10 +7451,10 @@ function ShippingAddressCard({ order }) {
|
|
|
7449
7451
|
function OrderSummaryCard({ order }) {
|
|
7450
7452
|
const t = useT();
|
|
7451
7453
|
return jsxs("section", {
|
|
7452
|
-
className: [styles$
|
|
7454
|
+
className: [styles$J.card, styles$J.summaryCard].join(" "),
|
|
7453
7455
|
"aria-label": t("Order summary"),
|
|
7454
7456
|
children: [jsx("h2", {
|
|
7455
|
-
className: styles$
|
|
7457
|
+
className: styles$J.cardTitle,
|
|
7456
7458
|
children: t("Order summary")
|
|
7457
7459
|
}), jsx(OrderSummary, {
|
|
7458
7460
|
pricing: toPricing(order),
|
|
@@ -7489,7 +7491,7 @@ const handleSlot = "_handleSlot_1f3nh_23";
|
|
|
7489
7491
|
const handle = "_handle_1f3nh_23";
|
|
7490
7492
|
const closeSlot$1 = "_closeSlot_1f3nh_35";
|
|
7491
7493
|
const close$2 = "_close_1f3nh_35";
|
|
7492
|
-
const styles$
|
|
7494
|
+
const styles$I = {
|
|
7493
7495
|
header: header$6,
|
|
7494
7496
|
slot,
|
|
7495
7497
|
handleSlot,
|
|
@@ -7517,23 +7519,23 @@ function CloseIcon$1() {
|
|
|
7517
7519
|
}
|
|
7518
7520
|
function SheetHeader({ onClose, closeLabel }) {
|
|
7519
7521
|
return jsxs("div", {
|
|
7520
|
-
className: styles$
|
|
7522
|
+
className: styles$I.header,
|
|
7521
7523
|
children: [jsx("div", {
|
|
7522
|
-
className: styles$
|
|
7524
|
+
className: styles$I.slot,
|
|
7523
7525
|
"aria-hidden": "true"
|
|
7524
7526
|
}), jsx("div", {
|
|
7525
|
-
className: styles$
|
|
7527
|
+
className: styles$I.handleSlot,
|
|
7526
7528
|
"aria-hidden": "true",
|
|
7527
7529
|
children: jsx("div", {
|
|
7528
|
-
className: styles$
|
|
7530
|
+
className: styles$I.handle
|
|
7529
7531
|
})
|
|
7530
7532
|
}), jsx("button", {
|
|
7531
7533
|
type: "button",
|
|
7532
|
-
className: styles$
|
|
7534
|
+
className: styles$I.closeSlot,
|
|
7533
7535
|
onClick: onClose,
|
|
7534
7536
|
"aria-label": closeLabel,
|
|
7535
7537
|
children: jsx("span", {
|
|
7536
|
-
className: styles$
|
|
7538
|
+
className: styles$I.close,
|
|
7537
7539
|
children: jsx(CloseIcon$1, {})
|
|
7538
7540
|
})
|
|
7539
7541
|
})]
|
|
@@ -7589,7 +7591,7 @@ const radio = "_radio_1oaa3_95";
|
|
|
7589
7591
|
const label$1 = "_label_1oaa3_125";
|
|
7590
7592
|
const footer$1 = "_footer_1oaa3_134";
|
|
7591
7593
|
const error$1 = "_error_1oaa3_142";
|
|
7592
|
-
const styles$
|
|
7594
|
+
const styles$H = {
|
|
7593
7595
|
scrim: scrim$5,
|
|
7594
7596
|
sheet: sheet$3,
|
|
7595
7597
|
body: body$7,
|
|
@@ -7607,12 +7609,12 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7607
7609
|
const t = useT();
|
|
7608
7610
|
useModalDialog(true, onClose, sheetRef);
|
|
7609
7611
|
return jsx("div", {
|
|
7610
|
-
className: styles$
|
|
7612
|
+
className: styles$H.scrim,
|
|
7611
7613
|
onClick: onClose,
|
|
7612
7614
|
children: jsxs(ShopSurface, {
|
|
7613
7615
|
tone: "light",
|
|
7614
7616
|
ref: sheetRef,
|
|
7615
|
-
className: styles$
|
|
7617
|
+
className: styles$H.sheet,
|
|
7616
7618
|
role: "dialog",
|
|
7617
7619
|
"aria-modal": "true",
|
|
7618
7620
|
"aria-labelledby": "reason-sheet-title",
|
|
@@ -7621,23 +7623,23 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7621
7623
|
onClose,
|
|
7622
7624
|
closeLabel
|
|
7623
7625
|
}), jsxs("div", {
|
|
7624
|
-
className: styles$
|
|
7626
|
+
className: styles$H.body,
|
|
7625
7627
|
children: [jsx("h2", {
|
|
7626
7628
|
id: "reason-sheet-title",
|
|
7627
|
-
className: styles$
|
|
7629
|
+
className: styles$H.title,
|
|
7628
7630
|
children: t(title2)
|
|
7629
7631
|
}), jsx("div", {
|
|
7630
|
-
className: styles$
|
|
7632
|
+
className: styles$H.options,
|
|
7631
7633
|
role: "radiogroup",
|
|
7632
7634
|
"aria-labelledby": "reason-sheet-title",
|
|
7633
7635
|
children: options2.map((o) => jsxs("button", {
|
|
7634
7636
|
type: "button",
|
|
7635
7637
|
role: "radio",
|
|
7636
7638
|
"aria-checked": o.value === choice,
|
|
7637
|
-
className: styles$
|
|
7639
|
+
className: styles$H.option,
|
|
7638
7640
|
onClick: () => setChoice(o.value),
|
|
7639
7641
|
children: [jsx("span", {
|
|
7640
|
-
className: styles$
|
|
7642
|
+
className: styles$H.radio,
|
|
7641
7643
|
"aria-hidden": "true",
|
|
7642
7644
|
children: o.value === choice && jsxs("svg", {
|
|
7643
7645
|
width: "20",
|
|
@@ -7658,15 +7660,15 @@ function ReasonSheet({ title: title2, options: options2, ctaLabel, selected: sel
|
|
|
7658
7660
|
})]
|
|
7659
7661
|
})
|
|
7660
7662
|
}), jsx("span", {
|
|
7661
|
-
className: styles$
|
|
7663
|
+
className: styles$H.label,
|
|
7662
7664
|
children: t(o.label)
|
|
7663
7665
|
})]
|
|
7664
7666
|
}, o.value))
|
|
7665
7667
|
})]
|
|
7666
7668
|
}), jsxs("div", {
|
|
7667
|
-
className: styles$
|
|
7669
|
+
className: styles$H.footer,
|
|
7668
7670
|
children: [error2 && jsx("p", {
|
|
7669
|
-
className: styles$
|
|
7671
|
+
className: styles$H.error,
|
|
7670
7672
|
role: "alert",
|
|
7671
7673
|
children: error2
|
|
7672
7674
|
}), jsx(Button, {
|
|
@@ -7691,7 +7693,7 @@ const attrs$1 = "_attrs_1pjby_55";
|
|
|
7691
7693
|
const price$3 = "_price_1pjby_63";
|
|
7692
7694
|
const paid$2 = "_paid_1pjby_72";
|
|
7693
7695
|
const was$3 = "_was_1pjby_80";
|
|
7694
|
-
const styles$
|
|
7696
|
+
const styles$G = {
|
|
7695
7697
|
line: line$1,
|
|
7696
7698
|
thumb: thumb$2,
|
|
7697
7699
|
img: img$1,
|
|
@@ -7707,35 +7709,35 @@ function ReturnItemRow({ item: item2, className }) {
|
|
|
7707
7709
|
const { format } = useMoney();
|
|
7708
7710
|
const t = useT();
|
|
7709
7711
|
return jsxs("div", {
|
|
7710
|
-
className: [styles$
|
|
7712
|
+
className: [styles$G.line, className ?? ""].join(" ").trim(),
|
|
7711
7713
|
children: [jsx("div", {
|
|
7712
|
-
className: styles$
|
|
7714
|
+
className: styles$G.thumb,
|
|
7713
7715
|
children: item2.image ? jsx(ShopImage, {
|
|
7714
7716
|
src: item2.image,
|
|
7715
7717
|
alt: "",
|
|
7716
7718
|
fill: true,
|
|
7717
7719
|
sizes: "48px",
|
|
7718
|
-
className: styles$
|
|
7720
|
+
className: styles$G.img
|
|
7719
7721
|
}) : jsx("div", {
|
|
7720
|
-
className: styles$
|
|
7722
|
+
className: styles$G.placeholder,
|
|
7721
7723
|
"aria-hidden": "true"
|
|
7722
7724
|
})
|
|
7723
7725
|
}), jsxs("div", {
|
|
7724
|
-
className: styles$
|
|
7726
|
+
className: styles$G.meta,
|
|
7725
7727
|
children: [jsx("p", {
|
|
7726
|
-
className: styles$
|
|
7728
|
+
className: styles$G.name,
|
|
7727
7729
|
children: item2.title ?? item2.sku
|
|
7728
7730
|
}), item2.attributes?.size && jsx("p", {
|
|
7729
|
-
className: styles$
|
|
7731
|
+
className: styles$G.attrs,
|
|
7730
7732
|
children: t("Size: {0}", item2.attributes.size)
|
|
7731
7733
|
})]
|
|
7732
7734
|
}), jsxs("div", {
|
|
7733
|
-
className: styles$
|
|
7735
|
+
className: styles$G.price,
|
|
7734
7736
|
children: [jsx("span", {
|
|
7735
|
-
className: styles$
|
|
7737
|
+
className: styles$G.paid,
|
|
7736
7738
|
children: format(item2.unit_price)
|
|
7737
7739
|
}), item2.compare_at_unit_price && jsxs("span", {
|
|
7738
|
-
className: styles$
|
|
7740
|
+
className: styles$G.was,
|
|
7739
7741
|
children: [jsx("span", {
|
|
7740
7742
|
className: "visually-hidden",
|
|
7741
7743
|
children: t("Was {0}", format(item2.compare_at_unit_price))
|
|
@@ -7758,7 +7760,7 @@ const check = "_check_15fz5_66";
|
|
|
7758
7760
|
const row$6 = "_row_15fz5_110";
|
|
7759
7761
|
const reason = "_reason_15fz5_135";
|
|
7760
7762
|
const reasonSet = "_reasonSet_15fz5_155";
|
|
7761
|
-
const styles$
|
|
7763
|
+
const styles$F = {
|
|
7762
7764
|
page: page$6,
|
|
7763
7765
|
titles: titles$2,
|
|
7764
7766
|
title: title$k,
|
|
@@ -7865,55 +7867,55 @@ function ReturnItemsView({ order, onSubmit, busy = false }) {
|
|
|
7865
7867
|
}
|
|
7866
7868
|
if (returnable.length === 0) {
|
|
7867
7869
|
return jsx("div", {
|
|
7868
|
-
className: styles$
|
|
7870
|
+
className: styles$F.page,
|
|
7869
7871
|
children: jsxs("div", {
|
|
7870
|
-
className: styles$
|
|
7872
|
+
className: styles$F.titles,
|
|
7871
7873
|
children: [jsx("h1", {
|
|
7872
|
-
className: styles$
|
|
7874
|
+
className: styles$F.title,
|
|
7873
7875
|
children: t("Nothing left to return")
|
|
7874
7876
|
}), jsx("p", {
|
|
7875
|
-
className: styles$
|
|
7877
|
+
className: styles$F.subtitle,
|
|
7876
7878
|
children: t("Every item on this order has already been returned or cancelled.")
|
|
7877
7879
|
})]
|
|
7878
7880
|
})
|
|
7879
7881
|
});
|
|
7880
7882
|
}
|
|
7881
7883
|
return jsxs("div", {
|
|
7882
|
-
className: styles$
|
|
7884
|
+
className: styles$F.page,
|
|
7883
7885
|
children: [jsxs("div", {
|
|
7884
|
-
className: styles$
|
|
7886
|
+
className: styles$F.titles,
|
|
7885
7887
|
children: [jsx("h1", {
|
|
7886
|
-
className: styles$
|
|
7888
|
+
className: styles$F.title,
|
|
7887
7889
|
children: t("What do you want to return?")
|
|
7888
7890
|
}), jsx("p", {
|
|
7889
|
-
className: styles$
|
|
7891
|
+
className: styles$F.subtitle,
|
|
7890
7892
|
children: t("Select items you want to return")
|
|
7891
7893
|
})]
|
|
7892
7894
|
}), jsx("div", {
|
|
7893
|
-
className: styles$
|
|
7895
|
+
className: styles$F.list,
|
|
7894
7896
|
children: returnable.map((item2) => {
|
|
7895
7897
|
const picked = item2.line_ref in chosen;
|
|
7896
7898
|
const reason2 = chosen[item2.line_ref];
|
|
7897
7899
|
return jsxs("div", {
|
|
7898
|
-
className: styles$
|
|
7900
|
+
className: styles$F.card,
|
|
7899
7901
|
children: [jsx("button", {
|
|
7900
7902
|
type: "button",
|
|
7901
7903
|
role: "checkbox",
|
|
7902
7904
|
"aria-checked": picked,
|
|
7903
7905
|
"aria-label": item2.title ?? item2.sku,
|
|
7904
|
-
className: styles$
|
|
7906
|
+
className: styles$F.checkSlot,
|
|
7905
7907
|
onClick: () => toggle2(item2.line_ref),
|
|
7906
7908
|
children: jsx("span", {
|
|
7907
|
-
className: styles$
|
|
7909
|
+
className: styles$F.check,
|
|
7908
7910
|
children: picked ? jsx(Tick, {}) : null
|
|
7909
7911
|
})
|
|
7910
7912
|
}), jsxs("div", {
|
|
7911
|
-
className: styles$
|
|
7913
|
+
className: styles$F.row,
|
|
7912
7914
|
children: [jsx(ReturnItemRow, {
|
|
7913
7915
|
item: item2
|
|
7914
7916
|
}), jsxs("button", {
|
|
7915
7917
|
type: "button",
|
|
7916
|
-
className: `${styles$
|
|
7918
|
+
className: `${styles$F.reason} ${reason2 ? styles$F.reasonSet : ""}`,
|
|
7917
7919
|
onClick: () => setReasonFor(item2.line_ref),
|
|
7918
7920
|
"aria-haspopup": "dialog",
|
|
7919
7921
|
children: [jsx("span", {
|
|
@@ -7965,7 +7967,7 @@ const body$6 = "_body_51f4e_113";
|
|
|
7965
7967
|
const body2 = "_body2_51f4e_121";
|
|
7966
7968
|
const download = "_download_51f4e_139";
|
|
7967
7969
|
const note$1 = "_note_51f4e_161";
|
|
7968
|
-
const styles$
|
|
7970
|
+
const styles$E = {
|
|
7969
7971
|
page: page$5,
|
|
7970
7972
|
top,
|
|
7971
7973
|
items: items$2,
|
|
@@ -8039,42 +8041,42 @@ function ReturnLabelView({ ret, onDone }) {
|
|
|
8039
8041
|
const t = useT();
|
|
8040
8042
|
const { preparing, unavailable, onDownload } = useLabelDownload(ret.label_url);
|
|
8041
8043
|
return jsxs("div", {
|
|
8042
|
-
className: styles$
|
|
8044
|
+
className: styles$E.page,
|
|
8043
8045
|
children: [jsxs("div", {
|
|
8044
|
-
className: styles$
|
|
8046
|
+
className: styles$E.top,
|
|
8045
8047
|
children: [jsx("div", {
|
|
8046
|
-
className: styles$
|
|
8048
|
+
className: styles$E.items,
|
|
8047
8049
|
children: ret.items.map((item2) => jsx(ReturnItemRow, {
|
|
8048
8050
|
item: item2
|
|
8049
8051
|
}, item2.line_ref))
|
|
8050
8052
|
}), jsxs("div", {
|
|
8051
|
-
className: styles$
|
|
8053
|
+
className: styles$E.intro,
|
|
8052
8054
|
children: [jsx("h1", {
|
|
8053
|
-
className: styles$
|
|
8055
|
+
className: styles$E.title,
|
|
8054
8056
|
children: t("We’ve generated your return label")
|
|
8055
8057
|
}), jsx("p", {
|
|
8056
|
-
className: styles$
|
|
8058
|
+
className: styles$E.subtitle,
|
|
8057
8059
|
children: t("Follow the instructions below to complete your return")
|
|
8058
8060
|
})]
|
|
8059
8061
|
}), jsxs("div", {
|
|
8060
|
-
className: styles$
|
|
8062
|
+
className: styles$E.card,
|
|
8061
8063
|
children: [jsxs("section", {
|
|
8062
|
-
className: styles$
|
|
8064
|
+
className: styles$E.step,
|
|
8063
8065
|
children: [jsxs("div", {
|
|
8064
|
-
className: styles$
|
|
8066
|
+
className: styles$E.stepHead,
|
|
8065
8067
|
children: [jsx("span", {
|
|
8066
|
-
className: styles$
|
|
8068
|
+
className: styles$E.number,
|
|
8067
8069
|
"aria-hidden": "true",
|
|
8068
8070
|
children: "1"
|
|
8069
8071
|
}), jsx("h2", {
|
|
8070
|
-
className: styles$
|
|
8072
|
+
className: styles$E.stepTitle,
|
|
8071
8073
|
children: t("Download your return label")
|
|
8072
8074
|
})]
|
|
8073
8075
|
}), jsx("p", {
|
|
8074
|
-
className: styles$
|
|
8076
|
+
className: styles$E.body,
|
|
8075
8077
|
children: t("Tap the button below to download your pre-paid return label")
|
|
8076
8078
|
}), ret.label_url && jsxs("a", {
|
|
8077
|
-
className: styles$
|
|
8079
|
+
className: styles$E.download,
|
|
8078
8080
|
href: ret.label_url,
|
|
8079
8081
|
target: "_blank",
|
|
8080
8082
|
rel: "noopener noreferrer",
|
|
@@ -8086,27 +8088,27 @@ function ReturnLabelView({ ret, onDone }) {
|
|
|
8086
8088
|
children: ` ${t("(opens in a new tab)")}`
|
|
8087
8089
|
})]
|
|
8088
8090
|
}), unavailable && jsx("p", {
|
|
8089
|
-
className: styles$
|
|
8091
|
+
className: styles$E.note,
|
|
8090
8092
|
role: "status",
|
|
8091
8093
|
children: t("Your return label is not ready yet. Try again in a moment.")
|
|
8092
8094
|
}), ret.label_email && jsxs("p", {
|
|
8093
|
-
className: styles$
|
|
8095
|
+
className: styles$E.note,
|
|
8094
8096
|
children: [t("You’ll receive a shipping label PDF to your email as well."), jsx("br", {}), ret.label_email]
|
|
8095
8097
|
})]
|
|
8096
8098
|
}), jsxs("section", {
|
|
8097
|
-
className: styles$
|
|
8099
|
+
className: styles$E.step2,
|
|
8098
8100
|
children: [jsxs("div", {
|
|
8099
|
-
className: styles$
|
|
8101
|
+
className: styles$E.stepHead,
|
|
8100
8102
|
children: [jsx("span", {
|
|
8101
|
-
className: styles$
|
|
8103
|
+
className: styles$E.number,
|
|
8102
8104
|
"aria-hidden": "true",
|
|
8103
8105
|
children: "2"
|
|
8104
8106
|
}), jsx("h2", {
|
|
8105
|
-
className: styles$
|
|
8107
|
+
className: styles$E.stepTitle,
|
|
8106
8108
|
children: t("Pack and ship the item")
|
|
8107
8109
|
})]
|
|
8108
8110
|
}), jsxs("p", {
|
|
8109
|
-
className: styles$
|
|
8111
|
+
className: styles$E.body2,
|
|
8110
8112
|
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.")]
|
|
8111
8113
|
})]
|
|
8112
8114
|
})]
|
|
@@ -8134,7 +8136,7 @@ const attrs = "_attrs_g4vus_108";
|
|
|
8134
8136
|
const price$2 = "_price_g4vus_123";
|
|
8135
8137
|
const paid$1 = "_paid_g4vus_132";
|
|
8136
8138
|
const was$2 = "_was_g4vus_140";
|
|
8137
|
-
const styles$
|
|
8139
|
+
const styles$D = {
|
|
8138
8140
|
page: page$4,
|
|
8139
8141
|
titles: titles$1,
|
|
8140
8142
|
title: title$i,
|
|
@@ -8168,42 +8170,42 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
|
|
|
8168
8170
|
tone: "light",
|
|
8169
8171
|
fill: true,
|
|
8170
8172
|
children: jsxs("div", {
|
|
8171
|
-
className: styles$
|
|
8173
|
+
className: styles$D.page,
|
|
8172
8174
|
children: [jsxs("div", {
|
|
8173
|
-
className: styles$
|
|
8175
|
+
className: styles$D.titles,
|
|
8174
8176
|
children: [jsx("h1", {
|
|
8175
|
-
className: styles$
|
|
8177
|
+
className: styles$D.title,
|
|
8176
8178
|
children: t("Return in progress")
|
|
8177
8179
|
}), jsx("p", {
|
|
8178
|
-
className: styles$
|
|
8180
|
+
className: styles$D.subtitle,
|
|
8179
8181
|
children: t("Return #{0} · Reported {1}", ret.return_ref, reported)
|
|
8180
8182
|
})]
|
|
8181
8183
|
}), jsx(OrderTimeline, {
|
|
8182
8184
|
progress: ret.progress,
|
|
8183
8185
|
locale
|
|
8184
8186
|
}), jsx("ul", {
|
|
8185
|
-
className: styles$
|
|
8187
|
+
className: styles$D.items,
|
|
8186
8188
|
children: ret.items.map((item2) => jsxs("li", {
|
|
8187
|
-
className: styles$
|
|
8189
|
+
className: styles$D.item,
|
|
8188
8190
|
children: [jsx("div", {
|
|
8189
|
-
className: styles$
|
|
8191
|
+
className: styles$D.thumb,
|
|
8190
8192
|
children: item2.image ? jsx(ShopImage, {
|
|
8191
8193
|
src: item2.image,
|
|
8192
8194
|
alt: "",
|
|
8193
8195
|
fill: true,
|
|
8194
8196
|
sizes: "48px",
|
|
8195
|
-
className: styles$
|
|
8197
|
+
className: styles$D.img
|
|
8196
8198
|
}) : jsx("div", {
|
|
8197
|
-
className: styles$
|
|
8199
|
+
className: styles$D.placeholder,
|
|
8198
8200
|
"aria-hidden": "true"
|
|
8199
8201
|
})
|
|
8200
8202
|
}), jsxs("div", {
|
|
8201
|
-
className: styles$
|
|
8203
|
+
className: styles$D.meta,
|
|
8202
8204
|
children: [jsx("p", {
|
|
8203
|
-
className: styles$
|
|
8205
|
+
className: styles$D.name,
|
|
8204
8206
|
children: item2.title ?? item2.sku
|
|
8205
8207
|
}), (item2.attributes?.size || pctOff(item2)) && jsxs("p", {
|
|
8206
|
-
className: styles$
|
|
8208
|
+
className: styles$D.attrs,
|
|
8207
8209
|
children: [item2.attributes?.size && jsx("span", {
|
|
8208
8210
|
children: t("Size: {0}", item2.attributes.size)
|
|
8209
8211
|
}), pctOff(item2) !== void 0 && jsx(SaleBadge, {
|
|
@@ -8211,12 +8213,12 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
|
|
|
8211
8213
|
})]
|
|
8212
8214
|
})]
|
|
8213
8215
|
}), jsxs("div", {
|
|
8214
|
-
className: styles$
|
|
8216
|
+
className: styles$D.price,
|
|
8215
8217
|
children: [jsx("span", {
|
|
8216
|
-
className: styles$
|
|
8218
|
+
className: styles$D.paid,
|
|
8217
8219
|
children: format(item2.unit_price)
|
|
8218
8220
|
}), item2.compare_at_unit_price && jsx("span", {
|
|
8219
|
-
className: styles$
|
|
8221
|
+
className: styles$D.was,
|
|
8220
8222
|
children: format(item2.compare_at_unit_price)
|
|
8221
8223
|
})]
|
|
8222
8224
|
})]
|
|
@@ -8332,30 +8334,343 @@ function ReturnFlowContent({ orderRef, returnRef, onDone, locale }) {
|
|
|
8332
8334
|
busy
|
|
8333
8335
|
});
|
|
8334
8336
|
}
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8337
|
+
function HelpIcon() {
|
|
8338
|
+
return jsx("svg", {
|
|
8339
|
+
width: "24",
|
|
8340
|
+
height: "24",
|
|
8341
|
+
viewBox: "0 0 24 24",
|
|
8342
|
+
fill: "none",
|
|
8343
|
+
"aria-hidden": "true",
|
|
8344
|
+
children: jsxs("g", {
|
|
8345
|
+
transform: "translate(1.93 1.93)",
|
|
8346
|
+
children: [jsx("path", {
|
|
8347
|
+
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",
|
|
8348
|
+
fill: "currentColor"
|
|
8349
|
+
}), jsx("path", {
|
|
8350
|
+
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",
|
|
8351
|
+
fill: "currentColor"
|
|
8352
|
+
}), jsx("path", {
|
|
8353
|
+
fillRule: "evenodd",
|
|
8354
|
+
clipRule: "evenodd",
|
|
8355
|
+
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",
|
|
8356
|
+
fill: "currentColor"
|
|
8357
|
+
})]
|
|
8358
|
+
})
|
|
8359
|
+
});
|
|
8360
|
+
}
|
|
8361
|
+
const crumbs$1 = "_crumbs_1qwg2_1";
|
|
8362
|
+
const home = "_home_1qwg2_13";
|
|
8363
|
+
const trail = "_trail_1qwg2_25";
|
|
8364
|
+
const separator = "_separator_1qwg2_31";
|
|
8365
|
+
const current = "_current_1qwg2_37";
|
|
8366
|
+
const help$3 = "_help_1qwg2_42";
|
|
8367
|
+
const helpLabel = "_helpLabel_1qwg2_56";
|
|
8368
|
+
const styles$C = {
|
|
8369
|
+
crumbs: crumbs$1,
|
|
8370
|
+
home,
|
|
8371
|
+
trail,
|
|
8372
|
+
separator,
|
|
8373
|
+
current,
|
|
8374
|
+
help: help$3,
|
|
8375
|
+
helpLabel
|
|
8376
|
+
};
|
|
8377
|
+
function VipBreadcrumb({ title: title2, trail: trail2 = [], onHome }) {
|
|
8378
|
+
const t = useT();
|
|
8379
|
+
return jsx("nav", {
|
|
8380
|
+
"aria-label": t("Breadcrumb"),
|
|
8381
|
+
children: jsxs("ol", {
|
|
8382
|
+
className: styles$C.crumbs,
|
|
8383
|
+
children: [jsx("li", {
|
|
8384
|
+
children: jsx("button", {
|
|
8385
|
+
type: "button",
|
|
8386
|
+
className: styles$C.home,
|
|
8387
|
+
onClick: onHome,
|
|
8388
|
+
children: t("Homepage")
|
|
8389
|
+
})
|
|
8390
|
+
}), trail2.map((crumb, i) => jsxs(Fragment$1, {
|
|
8391
|
+
children: [jsx("li", {
|
|
8392
|
+
className: styles$C.separator,
|
|
8393
|
+
"aria-hidden": "true",
|
|
8394
|
+
children: "›"
|
|
8395
|
+
}), jsx("li", {
|
|
8396
|
+
className: styles$C.trail,
|
|
8397
|
+
children: crumb
|
|
8398
|
+
})]
|
|
8399
|
+
}, i)), jsx("li", {
|
|
8400
|
+
className: styles$C.separator,
|
|
8401
|
+
"aria-hidden": "true",
|
|
8402
|
+
children: "›"
|
|
8403
|
+
}), jsx("li", {
|
|
8404
|
+
"aria-current": "page",
|
|
8405
|
+
className: styles$C.current,
|
|
8406
|
+
children: title2
|
|
8407
|
+
})]
|
|
8408
|
+
})
|
|
8409
|
+
});
|
|
8410
|
+
}
|
|
8411
|
+
function VipHelpLink({ onHelp }) {
|
|
8412
|
+
const t = useT();
|
|
8413
|
+
return jsxs("button", {
|
|
8414
|
+
type: "button",
|
|
8415
|
+
className: styles$C.help,
|
|
8416
|
+
onClick: onHelp,
|
|
8417
|
+
children: [jsx(HelpIcon, {}), jsx("span", {
|
|
8418
|
+
className: styles$C.helpLabel,
|
|
8419
|
+
children: t("Need help with your order?")
|
|
8420
|
+
})]
|
|
8421
|
+
});
|
|
8422
|
+
}
|
|
8423
|
+
const crumbs = "_crumbs_1c5rq_1";
|
|
8424
|
+
const help$2 = "_help_1c5rq_2";
|
|
8425
|
+
const skeleton = "_skeleton_1c5rq_3";
|
|
8426
|
+
const skConnector = "_skConnector_1c5rq_42";
|
|
8427
|
+
const skMain = "_skMain_1c5rq_46";
|
|
8428
|
+
const skSubtitle = "_skSubtitle_1c5rq_52";
|
|
8429
|
+
const skTimeline = "_skTimeline_1c5rq_56";
|
|
8430
|
+
const skStep = "_skStep_1c5rq_63";
|
|
8431
|
+
const skStepText = "_skStepText_1c5rq_70";
|
|
8432
|
+
const skAside = "_skAside_1c5rq_83";
|
|
8433
|
+
const skLine = "_skLine_1c5rq_90";
|
|
8434
|
+
const skLineText = "_skLineText_1c5rq_96";
|
|
8435
|
+
const skMeta = "_skMeta_1c5rq_104";
|
|
8436
|
+
const skBadge = "_skBadge_1c5rq_111";
|
|
8437
|
+
const skPrice = "_skPrice_1c5rq_115";
|
|
8438
|
+
const skCard = "_skCard_1c5rq_123";
|
|
8439
|
+
const skAddress = "_skAddress_1c5rq_131";
|
|
8440
|
+
const skSummary = "_skSummary_1c5rq_136";
|
|
8441
|
+
const skCell = "_skCell_1c5rq_144";
|
|
8442
|
+
const skHelp = "_skHelp_1c5rq_149";
|
|
8351
8443
|
const styles$B = {
|
|
8444
|
+
crumbs,
|
|
8445
|
+
help: help$2,
|
|
8446
|
+
skeleton,
|
|
8447
|
+
skConnector,
|
|
8448
|
+
skMain,
|
|
8449
|
+
skSubtitle,
|
|
8450
|
+
skTimeline,
|
|
8451
|
+
skStep,
|
|
8452
|
+
skStepText,
|
|
8453
|
+
skAside,
|
|
8454
|
+
skLine,
|
|
8455
|
+
skLineText,
|
|
8456
|
+
skMeta,
|
|
8457
|
+
skBadge,
|
|
8458
|
+
skPrice,
|
|
8459
|
+
skCard,
|
|
8460
|
+
skAddress,
|
|
8461
|
+
skSummary,
|
|
8462
|
+
skCell,
|
|
8463
|
+
skHelp
|
|
8464
|
+
};
|
|
8465
|
+
function isWideOrder(order) {
|
|
8466
|
+
return order.vip !== void 0;
|
|
8467
|
+
}
|
|
8468
|
+
function OrderCrumbs({ order, current: current2 }) {
|
|
8469
|
+
const navigate = useNavigate();
|
|
8470
|
+
const title2 = order?.items[0]?.title ?? order?.items[0]?.sku;
|
|
8471
|
+
return jsx("div", {
|
|
8472
|
+
className: styles$B.crumbs,
|
|
8473
|
+
children: jsx(VipBreadcrumb, {
|
|
8474
|
+
title: current2,
|
|
8475
|
+
trail: [title2 ?? jsx(Skeleton, {
|
|
8476
|
+
width: 150,
|
|
8477
|
+
height: 14,
|
|
8478
|
+
radius: 4
|
|
8479
|
+
})],
|
|
8480
|
+
onHome: () => navigate?.("/")
|
|
8481
|
+
})
|
|
8482
|
+
});
|
|
8483
|
+
}
|
|
8484
|
+
function OrderHelpLink({ orderRef, onContactSupport }) {
|
|
8485
|
+
const emit = useShopEvent();
|
|
8486
|
+
return jsx("div", {
|
|
8487
|
+
className: styles$B.help,
|
|
8488
|
+
children: jsx(VipHelpLink, {
|
|
8489
|
+
onHelp: () => {
|
|
8490
|
+
emit({
|
|
8491
|
+
type: "support_requested",
|
|
8492
|
+
orderRef
|
|
8493
|
+
});
|
|
8494
|
+
onContactSupport?.();
|
|
8495
|
+
}
|
|
8496
|
+
})
|
|
8497
|
+
});
|
|
8498
|
+
}
|
|
8499
|
+
function WideOrderSkeleton({ current: current2 }) {
|
|
8500
|
+
const t = useT();
|
|
8501
|
+
return jsxs("div", {
|
|
8502
|
+
className: styles$B.skeleton,
|
|
8503
|
+
"data-shop-layout": "wide",
|
|
8504
|
+
"aria-busy": "true",
|
|
8505
|
+
"aria-label": t("Loading"),
|
|
8506
|
+
children: [jsx(OrderCrumbs, {
|
|
8507
|
+
order: null,
|
|
8508
|
+
current: current2
|
|
8509
|
+
}), jsxs("div", {
|
|
8510
|
+
className: styles$B.skMain,
|
|
8511
|
+
children: [jsx(Skeleton, {
|
|
8512
|
+
width: 202,
|
|
8513
|
+
height: 15,
|
|
8514
|
+
radius: 4
|
|
8515
|
+
}), jsx(Skeleton, {
|
|
8516
|
+
width: 339,
|
|
8517
|
+
height: 14,
|
|
8518
|
+
radius: 4,
|
|
8519
|
+
className: styles$B.skSubtitle
|
|
8520
|
+
}), jsxs("div", {
|
|
8521
|
+
className: styles$B.skTimeline,
|
|
8522
|
+
children: [jsx(SkStep, {
|
|
8523
|
+
lines: [87, 97]
|
|
8524
|
+
}), jsx("span", {
|
|
8525
|
+
className: styles$B.skConnector,
|
|
8526
|
+
style: {
|
|
8527
|
+
height: 46
|
|
8528
|
+
}
|
|
8529
|
+
}), jsx(SkStep, {
|
|
8530
|
+
lines: [73]
|
|
8531
|
+
}), jsx("span", {
|
|
8532
|
+
className: styles$B.skConnector,
|
|
8533
|
+
style: {
|
|
8534
|
+
height: 26
|
|
8535
|
+
}
|
|
8536
|
+
}), jsx(SkStep, {
|
|
8537
|
+
lines: [123, 105]
|
|
8538
|
+
})]
|
|
8539
|
+
})]
|
|
8540
|
+
}), jsxs("div", {
|
|
8541
|
+
className: styles$B.skAside,
|
|
8542
|
+
children: [jsxs("div", {
|
|
8543
|
+
className: styles$B.skLine,
|
|
8544
|
+
children: [jsx(Skeleton, {
|
|
8545
|
+
width: 48,
|
|
8546
|
+
height: 48,
|
|
8547
|
+
radius: 8
|
|
8548
|
+
}), jsxs("div", {
|
|
8549
|
+
className: styles$B.skLineText,
|
|
8550
|
+
children: [jsx(Skeleton, {
|
|
8551
|
+
width: 162,
|
|
8552
|
+
height: 10,
|
|
8553
|
+
radius: 4
|
|
8554
|
+
}), jsxs("span", {
|
|
8555
|
+
className: styles$B.skMeta,
|
|
8556
|
+
children: [jsx(Skeleton, {
|
|
8557
|
+
width: 26,
|
|
8558
|
+
height: 10,
|
|
8559
|
+
radius: 4
|
|
8560
|
+
}), jsx(Skeleton, {
|
|
8561
|
+
width: 12,
|
|
8562
|
+
height: 10,
|
|
8563
|
+
radius: 4
|
|
8564
|
+
}), jsx(Skeleton, {
|
|
8565
|
+
width: 33,
|
|
8566
|
+
height: 8,
|
|
8567
|
+
radius: 4,
|
|
8568
|
+
className: styles$B.skBadge
|
|
8569
|
+
})]
|
|
8570
|
+
})]
|
|
8571
|
+
}), jsxs("div", {
|
|
8572
|
+
className: styles$B.skPrice,
|
|
8573
|
+
children: [jsx(Skeleton, {
|
|
8574
|
+
width: 17,
|
|
8575
|
+
height: 14,
|
|
8576
|
+
radius: 4
|
|
8577
|
+
}), jsx(Skeleton, {
|
|
8578
|
+
width: 42,
|
|
8579
|
+
height: 12,
|
|
8580
|
+
radius: 4
|
|
8581
|
+
})]
|
|
8582
|
+
})]
|
|
8583
|
+
}), jsxs("div", {
|
|
8584
|
+
className: [styles$B.skCard, styles$B.skAddress].join(" "),
|
|
8585
|
+
children: [jsx(Skeleton, {
|
|
8586
|
+
width: 149,
|
|
8587
|
+
height: 18,
|
|
8588
|
+
radius: 4
|
|
8589
|
+
}), jsx(Skeleton, {
|
|
8590
|
+
width: 205,
|
|
8591
|
+
height: 12,
|
|
8592
|
+
radius: 4
|
|
8593
|
+
})]
|
|
8594
|
+
}), jsxs("div", {
|
|
8595
|
+
className: [styles$B.skCard, styles$B.skSummary].join(" "),
|
|
8596
|
+
children: [jsx(Skeleton, {
|
|
8597
|
+
width: 134,
|
|
8598
|
+
height: 18,
|
|
8599
|
+
radius: 4
|
|
8600
|
+
}), [[16, 77, 50, 10], [374, 77, 42, 12], [17, 122, 53, 10], [366, 122, 49, 12], [16, 167, 52, 13], [389, 168, 26, 10], [16, 213, 29, 10], [381, 212, 34, 12]].map(([left2, top2, width, height], i) => jsx("span", {
|
|
8601
|
+
className: styles$B.skCell,
|
|
8602
|
+
style: {
|
|
8603
|
+
left: left2,
|
|
8604
|
+
top: top2
|
|
8605
|
+
},
|
|
8606
|
+
children: jsx(Skeleton, {
|
|
8607
|
+
width,
|
|
8608
|
+
height,
|
|
8609
|
+
radius: 4
|
|
8610
|
+
})
|
|
8611
|
+
}, i))]
|
|
8612
|
+
}), jsx(Skeleton, {
|
|
8613
|
+
height: 48,
|
|
8614
|
+
radius: 8
|
|
8615
|
+
}), jsxs("div", {
|
|
8616
|
+
className: styles$B.skHelp,
|
|
8617
|
+
children: [jsx(Skeleton, {
|
|
8618
|
+
width: 24,
|
|
8619
|
+
height: 24,
|
|
8620
|
+
circle: true
|
|
8621
|
+
}), jsx(Skeleton, {
|
|
8622
|
+
width: 158,
|
|
8623
|
+
height: 13,
|
|
8624
|
+
radius: 4
|
|
8625
|
+
})]
|
|
8626
|
+
})]
|
|
8627
|
+
})]
|
|
8628
|
+
});
|
|
8629
|
+
}
|
|
8630
|
+
function SkStep({ lines: lines2 }) {
|
|
8631
|
+
return jsxs("div", {
|
|
8632
|
+
className: styles$B.skStep,
|
|
8633
|
+
children: [jsx(Skeleton, {
|
|
8634
|
+
width: 24,
|
|
8635
|
+
height: 24,
|
|
8636
|
+
circle: true
|
|
8637
|
+
}), jsx("div", {
|
|
8638
|
+
className: styles$B.skStepText,
|
|
8639
|
+
children: lines2.map((w, i) => jsx(Skeleton, {
|
|
8640
|
+
width: w,
|
|
8641
|
+
height: i === 0 ? 14 : 13,
|
|
8642
|
+
radius: 4
|
|
8643
|
+
}, i))
|
|
8644
|
+
})]
|
|
8645
|
+
});
|
|
8646
|
+
}
|
|
8647
|
+
const page$3 = "_page_1baop_8";
|
|
8648
|
+
const widget = "_widget_1baop_18";
|
|
8649
|
+
const titleRow = "_titleRow_1baop_26";
|
|
8650
|
+
const headline$2 = "_headline_1baop_42";
|
|
8651
|
+
const track$5 = "_track_1baop_74";
|
|
8652
|
+
const rule$1 = "_rule_1baop_99";
|
|
8653
|
+
const help$1 = "_help_1baop_109";
|
|
8654
|
+
const helpTitle = "_helpTitle_1baop_115";
|
|
8655
|
+
const helpRows = "_helpRows_1baop_122";
|
|
8656
|
+
const helpRowEnd = "_helpRowEnd_1baop_131";
|
|
8657
|
+
const helpStatus = "_helpStatus_1baop_139";
|
|
8658
|
+
const helpRow = "_helpRow_1baop_122";
|
|
8659
|
+
const cancel = "_cancel_1baop_197";
|
|
8660
|
+
const cancelledHead = "_cancelledHead_1baop_221";
|
|
8661
|
+
const cancelledTitle = "_cancelledTitle_1baop_227";
|
|
8662
|
+
const cancelledMeta = "_cancelledMeta_1baop_241";
|
|
8663
|
+
const aside$1 = "_aside_1baop_249";
|
|
8664
|
+
const phoneSkeleton$1 = "_phoneSkeleton_1baop_254";
|
|
8665
|
+
const wide$2 = "_wide_1baop_258";
|
|
8666
|
+
const styles$A = {
|
|
8352
8667
|
page: page$3,
|
|
8353
8668
|
widget,
|
|
8354
8669
|
titleRow,
|
|
8355
8670
|
headline: headline$2,
|
|
8356
8671
|
track: track$5,
|
|
8357
8672
|
rule: rule$1,
|
|
8358
|
-
help: help$
|
|
8673
|
+
help: help$1,
|
|
8359
8674
|
helpTitle,
|
|
8360
8675
|
helpRows,
|
|
8361
8676
|
helpRowEnd,
|
|
@@ -8364,7 +8679,10 @@ const styles$B = {
|
|
|
8364
8679
|
cancel,
|
|
8365
8680
|
cancelledHead,
|
|
8366
8681
|
cancelledTitle,
|
|
8367
|
-
cancelledMeta
|
|
8682
|
+
cancelledMeta,
|
|
8683
|
+
aside: aside$1,
|
|
8684
|
+
phoneSkeleton: phoneSkeleton$1,
|
|
8685
|
+
wide: wide$2
|
|
8368
8686
|
};
|
|
8369
8687
|
function RedirectLink() {
|
|
8370
8688
|
return jsxs("svg", {
|
|
@@ -8454,20 +8772,24 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8454
8772
|
return anchorTop(void 0, void 0, scrollerOf(cancelledPage.current));
|
|
8455
8773
|
}, [cancelled]);
|
|
8456
8774
|
if (state === "loading") {
|
|
8457
|
-
return jsxs(
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8775
|
+
return jsxs(Fragment, {
|
|
8776
|
+
children: [jsxs("div", {
|
|
8777
|
+
className: [styles$A.page, styles$A.phoneSkeleton].join(" "),
|
|
8778
|
+
children: [jsx(Skeleton, {
|
|
8779
|
+
height: 206,
|
|
8780
|
+
radius: 8
|
|
8781
|
+
}), jsx(Skeleton, {
|
|
8782
|
+
height: 48,
|
|
8783
|
+
radius: 8
|
|
8784
|
+
}), jsx(Skeleton, {
|
|
8785
|
+
height: 113,
|
|
8786
|
+
radius: 18
|
|
8787
|
+
}), jsx(Skeleton, {
|
|
8788
|
+
height: 240,
|
|
8789
|
+
radius: 18
|
|
8790
|
+
})]
|
|
8791
|
+
}), jsx(WideOrderSkeleton, {
|
|
8792
|
+
current: t("Order #{0}", shortRef$1(orderRef))
|
|
8471
8793
|
})]
|
|
8472
8794
|
});
|
|
8473
8795
|
}
|
|
@@ -8533,15 +8855,15 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8533
8855
|
}
|
|
8534
8856
|
if (order.status === "cancelled") {
|
|
8535
8857
|
return jsxs("div", {
|
|
8536
|
-
className: styles$
|
|
8858
|
+
className: styles$A.page,
|
|
8537
8859
|
ref: cancelledPage,
|
|
8538
8860
|
children: [jsxs("div", {
|
|
8539
|
-
className: styles$
|
|
8861
|
+
className: styles$A.cancelledHead,
|
|
8540
8862
|
children: [jsx("h1", {
|
|
8541
|
-
className: styles$
|
|
8863
|
+
className: styles$A.cancelledTitle,
|
|
8542
8864
|
children: t("Order cancelled")
|
|
8543
8865
|
}), jsx("p", {
|
|
8544
|
-
className: styles$
|
|
8866
|
+
className: styles$A.cancelledMeta,
|
|
8545
8867
|
children: t("Order #{0} · Placed {1}", shortRef$1(order.order_ref), placedOn(order.placed_at, locale))
|
|
8546
8868
|
})]
|
|
8547
8869
|
}), !order.vip && jsx(Button, {
|
|
@@ -8559,18 +8881,25 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8559
8881
|
})]
|
|
8560
8882
|
});
|
|
8561
8883
|
}
|
|
8884
|
+
const wide2 = isWideOrder(order);
|
|
8562
8885
|
return jsxs("div", {
|
|
8563
|
-
className: styles$
|
|
8564
|
-
|
|
8565
|
-
|
|
8886
|
+
className: [styles$A.page, wide2 ? styles$A.wide : ""].join(" "),
|
|
8887
|
+
...wide2 ? {
|
|
8888
|
+
"data-shop-layout": "wide"
|
|
8889
|
+
} : {},
|
|
8890
|
+
children: [wide2 && jsx(OrderCrumbs, {
|
|
8891
|
+
order,
|
|
8892
|
+
current: t("Order #{0}", shortRef$1(order.order_ref))
|
|
8893
|
+
}), jsxs("section", {
|
|
8894
|
+
className: styles$A.widget,
|
|
8566
8895
|
"aria-label": t("Delivery status"),
|
|
8567
8896
|
children: [jsxs("div", {
|
|
8568
|
-
className: styles$
|
|
8897
|
+
className: styles$A.titleRow,
|
|
8569
8898
|
children: [jsx("h1", {
|
|
8570
|
-
className: styles$
|
|
8899
|
+
className: styles$A.headline,
|
|
8571
8900
|
children: t("Order #{0}", shortRef$1(order.order_ref))
|
|
8572
8901
|
}), order.tracking?.url && inTransit && jsxs("a", {
|
|
8573
|
-
className: styles$
|
|
8902
|
+
className: styles$A.track,
|
|
8574
8903
|
href: order.tracking.url,
|
|
8575
8904
|
target: "_blank",
|
|
8576
8905
|
rel: "noopener noreferrer",
|
|
@@ -8587,29 +8916,37 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
|
|
|
8587
8916
|
locale
|
|
8588
8917
|
})]
|
|
8589
8918
|
}), jsx("hr", {
|
|
8590
|
-
className: styles$
|
|
8591
|
-
}),
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8919
|
+
className: styles$A.rule
|
|
8920
|
+
}), jsxs("div", {
|
|
8921
|
+
className: styles$A.aside,
|
|
8922
|
+
children: [jsx(OrderLines, {
|
|
8923
|
+
order
|
|
8924
|
+
}), jsx(ShippingAddressCard, {
|
|
8925
|
+
order
|
|
8926
|
+
}), jsx(OrderSummaryCard, {
|
|
8927
|
+
order
|
|
8928
|
+
}), order.can_cancel && jsx("button", {
|
|
8929
|
+
type: "button",
|
|
8930
|
+
className: styles$A.cancel,
|
|
8931
|
+
onClick: () => setCancelOpen(true),
|
|
8932
|
+
children: t("Cancel order")
|
|
8933
|
+
}), jsx(NeedHelp, {
|
|
8934
|
+
order,
|
|
8935
|
+
...onStartReturn ? {
|
|
8936
|
+
onStartReturn
|
|
8937
|
+
} : {},
|
|
8938
|
+
...onOpenReturn ? {
|
|
8939
|
+
onOpenReturn
|
|
8940
|
+
} : {},
|
|
8941
|
+
...onContactSupport ? {
|
|
8942
|
+
onContactSupport
|
|
8943
|
+
} : {}
|
|
8944
|
+
}), wide2 && jsx(OrderHelpLink, {
|
|
8945
|
+
orderRef: order.order_ref,
|
|
8946
|
+
...onContactSupport ? {
|
|
8947
|
+
onContactSupport
|
|
8948
|
+
} : {}
|
|
8949
|
+
})]
|
|
8613
8950
|
}), cancelOpen && jsx(ReasonSheet, {
|
|
8614
8951
|
title: "Reason for cancelling",
|
|
8615
8952
|
options: CANCEL_REASONS,
|
|
@@ -8649,14 +8986,14 @@ function NeedHelp({ order, onStartReturn, onOpenReturn, onContactSupport }) {
|
|
|
8649
8986
|
if (order.status !== "delivered") return null;
|
|
8650
8987
|
const returns = order.returns ?? [];
|
|
8651
8988
|
return jsxs("section", {
|
|
8652
|
-
className: styles$
|
|
8989
|
+
className: styles$A.help,
|
|
8653
8990
|
"aria-labelledby": "order-help",
|
|
8654
8991
|
children: [jsx("h2", {
|
|
8655
|
-
className: styles$
|
|
8992
|
+
className: styles$A.helpTitle,
|
|
8656
8993
|
id: "order-help",
|
|
8657
8994
|
children: t("Need help?")
|
|
8658
8995
|
}), jsxs("div", {
|
|
8659
|
-
className: styles$
|
|
8996
|
+
className: styles$A.helpRows,
|
|
8660
8997
|
children: [returns.map((ret) => jsx(HelpRow, {
|
|
8661
8998
|
label: returns.length > 1 ? t("Track return {0}", ret.return_ref) : "Track your return",
|
|
8662
8999
|
status: RETURN_STATUS[ret.status] ?? ret.status.replace(/_/g, " "),
|
|
@@ -8686,14 +9023,14 @@ function HelpRow({ label: label2, status, onClick }) {
|
|
|
8686
9023
|
const t = useT();
|
|
8687
9024
|
return jsxs("button", {
|
|
8688
9025
|
type: "button",
|
|
8689
|
-
className: styles$
|
|
9026
|
+
className: styles$A.helpRow,
|
|
8690
9027
|
onClick,
|
|
8691
9028
|
children: [jsx("span", {
|
|
8692
9029
|
children: t(label2)
|
|
8693
9030
|
}), jsxs("span", {
|
|
8694
|
-
className: styles$
|
|
9031
|
+
className: styles$A.helpRowEnd,
|
|
8695
9032
|
children: [status && jsx("span", {
|
|
8696
|
-
className: styles$
|
|
9033
|
+
className: styles$A.helpStatus,
|
|
8697
9034
|
children: t(status)
|
|
8698
9035
|
}), jsx(ChevronRight$1, {})]
|
|
8699
9036
|
})]
|
|
@@ -8702,21 +9039,27 @@ function HelpRow({ label: label2, status, onClick }) {
|
|
|
8702
9039
|
function shortRef$1(orderRef) {
|
|
8703
9040
|
return orderRef.replace(/^ord_/, "");
|
|
8704
9041
|
}
|
|
8705
|
-
const page$2 = "
|
|
8706
|
-
const confirmed = "
|
|
8707
|
-
const title$h = "
|
|
8708
|
-
const headline$1 = "
|
|
8709
|
-
const subtitle$4 = "
|
|
8710
|
-
const rule = "
|
|
8711
|
-
const done = "
|
|
8712
|
-
const
|
|
9042
|
+
const page$2 = "_page_11i01_6";
|
|
9043
|
+
const confirmed = "_confirmed_11i01_16";
|
|
9044
|
+
const title$h = "_title_11i01_22";
|
|
9045
|
+
const headline$1 = "_headline_11i01_47";
|
|
9046
|
+
const subtitle$4 = "_subtitle_11i01_65";
|
|
9047
|
+
const rule = "_rule_11i01_77";
|
|
9048
|
+
const done = "_done_11i01_94";
|
|
9049
|
+
const aside = "_aside_11i01_98";
|
|
9050
|
+
const phoneSkeleton = "_phoneSkeleton_11i01_103";
|
|
9051
|
+
const wide$1 = "_wide_11i01_107";
|
|
9052
|
+
const styles$z = {
|
|
8713
9053
|
page: page$2,
|
|
8714
9054
|
confirmed,
|
|
8715
9055
|
title: title$h,
|
|
8716
9056
|
headline: headline$1,
|
|
8717
9057
|
subtitle: subtitle$4,
|
|
8718
9058
|
rule,
|
|
8719
|
-
done
|
|
9059
|
+
done,
|
|
9060
|
+
aside,
|
|
9061
|
+
phoneSkeleton,
|
|
9062
|
+
wide: wide$1
|
|
8720
9063
|
};
|
|
8721
9064
|
function OrderConfirmationView(props) {
|
|
8722
9065
|
return jsx(ShopSurface, {
|
|
@@ -8741,7 +9084,7 @@ function confirmationProgress(progress2) {
|
|
|
8741
9084
|
};
|
|
8742
9085
|
});
|
|
8743
9086
|
}
|
|
8744
|
-
function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
9087
|
+
function OrderConfirmationContent({ orderRef, locale: localeProp, onDone, onContactSupport }) {
|
|
8745
9088
|
const t = useT();
|
|
8746
9089
|
const { api } = useShop();
|
|
8747
9090
|
const locale = useLocale(localeProp);
|
|
@@ -8762,20 +9105,24 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8762
9105
|
void load();
|
|
8763
9106
|
}, [load]);
|
|
8764
9107
|
if (state === "loading") {
|
|
8765
|
-
return jsxs(
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
9108
|
+
return jsxs(Fragment, {
|
|
9109
|
+
children: [jsxs("div", {
|
|
9110
|
+
className: [styles$z.page, styles$z.phoneSkeleton].join(" "),
|
|
9111
|
+
children: [jsx(Skeleton, {
|
|
9112
|
+
height: 140,
|
|
9113
|
+
radius: 8
|
|
9114
|
+
}), jsx(Skeleton, {
|
|
9115
|
+
height: 72,
|
|
9116
|
+
radius: 8
|
|
9117
|
+
}), jsx(Skeleton, {
|
|
9118
|
+
height: 120,
|
|
9119
|
+
radius: 18
|
|
9120
|
+
}), jsx(Skeleton, {
|
|
9121
|
+
height: 240,
|
|
9122
|
+
radius: 18
|
|
9123
|
+
})]
|
|
9124
|
+
}), jsx(WideOrderSkeleton, {
|
|
9125
|
+
current: t("Order confirmed")
|
|
8779
9126
|
})]
|
|
8780
9127
|
});
|
|
8781
9128
|
}
|
|
@@ -8785,18 +9132,25 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8785
9132
|
onRetry: () => void load()
|
|
8786
9133
|
});
|
|
8787
9134
|
}
|
|
9135
|
+
const wide2 = isWideOrder(order);
|
|
8788
9136
|
return jsxs("div", {
|
|
8789
|
-
className: styles$
|
|
8790
|
-
|
|
8791
|
-
|
|
9137
|
+
className: [styles$z.page, wide2 ? styles$z.wide : ""].join(" "),
|
|
9138
|
+
...wide2 ? {
|
|
9139
|
+
"data-shop-layout": "wide"
|
|
9140
|
+
} : {},
|
|
9141
|
+
children: [wide2 && jsx(OrderCrumbs, {
|
|
9142
|
+
order,
|
|
9143
|
+
current: t("Order confirmed")
|
|
9144
|
+
}), jsxs("section", {
|
|
9145
|
+
className: styles$z.confirmed,
|
|
8792
9146
|
"aria-label": t("Order confirmation"),
|
|
8793
9147
|
children: [jsxs("div", {
|
|
8794
|
-
className: styles$
|
|
9148
|
+
className: styles$z.title,
|
|
8795
9149
|
children: [jsx("h1", {
|
|
8796
|
-
className: styles$
|
|
9150
|
+
className: styles$z.headline,
|
|
8797
9151
|
children: t("Your order is confirmed")
|
|
8798
9152
|
}), order.email && jsx("p", {
|
|
8799
|
-
className: styles$
|
|
9153
|
+
className: styles$z.subtitle,
|
|
8800
9154
|
children: t("We’ve sent a confirmation to {0}", order.email)
|
|
8801
9155
|
})]
|
|
8802
9156
|
}), jsx(OrderTimeline, {
|
|
@@ -8807,19 +9161,27 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
|
|
|
8807
9161
|
locale
|
|
8808
9162
|
})]
|
|
8809
9163
|
}), jsx("hr", {
|
|
8810
|
-
className: styles$
|
|
8811
|
-
}),
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
9164
|
+
className: styles$z.rule
|
|
9165
|
+
}), jsxs("div", {
|
|
9166
|
+
className: styles$z.aside,
|
|
9167
|
+
children: [jsx(OrderLines, {
|
|
9168
|
+
order
|
|
9169
|
+
}), jsx(ShippingAddressCard, {
|
|
9170
|
+
order
|
|
9171
|
+
}), jsx(OrderSummaryCard, {
|
|
9172
|
+
order
|
|
9173
|
+
}), onDone && jsx(Button, {
|
|
9174
|
+
variant: "secondary",
|
|
9175
|
+
fullWidth: true,
|
|
9176
|
+
className: styles$z.done,
|
|
9177
|
+
onClick: onDone,
|
|
9178
|
+
children: t("Done")
|
|
9179
|
+
}), wide2 && jsx(OrderHelpLink, {
|
|
9180
|
+
orderRef: order.order_ref,
|
|
9181
|
+
...onContactSupport ? {
|
|
9182
|
+
onContactSupport
|
|
9183
|
+
} : {}
|
|
9184
|
+
})]
|
|
8823
9185
|
})]
|
|
8824
9186
|
});
|
|
8825
9187
|
}
|
|
@@ -8828,7 +9190,7 @@ const progress = "_progress_u46qd_22";
|
|
|
8828
9190
|
const delivered = "_delivered_u46qd_27";
|
|
8829
9191
|
const neutral = "_neutral_u46qd_34";
|
|
8830
9192
|
const critical = "_critical_u46qd_43";
|
|
8831
|
-
const styles$
|
|
9193
|
+
const styles$y = {
|
|
8832
9194
|
badge: badge$2,
|
|
8833
9195
|
progress,
|
|
8834
9196
|
delivered,
|
|
@@ -8854,7 +9216,7 @@ function OrderStatusBadge({ status }) {
|
|
|
8854
9216
|
const label2 = LABEL[status] ?? status.replace(/_/g, " ");
|
|
8855
9217
|
const tone = TONE[status] ?? "neutral";
|
|
8856
9218
|
return jsx("span", {
|
|
8857
|
-
className: [styles$
|
|
9219
|
+
className: [styles$y.badge, styles$y[tone]].join(" "),
|
|
8858
9220
|
children: t(label2)
|
|
8859
9221
|
});
|
|
8860
9222
|
}
|
|
@@ -8873,7 +9235,7 @@ function ReturnStatusBadge({ status }) {
|
|
|
8873
9235
|
const label2 = RETURN_LABEL[status] ?? status.replace(/_/g, " ");
|
|
8874
9236
|
const tone = RETURN_TONE[status] ?? "neutral";
|
|
8875
9237
|
return jsx("span", {
|
|
8876
|
-
className: [styles$
|
|
9238
|
+
className: [styles$y.badge, styles$y[tone]].join(" "),
|
|
8877
9239
|
children: t(label2)
|
|
8878
9240
|
});
|
|
8879
9241
|
}
|
|
@@ -8894,7 +9256,7 @@ const image$a = "_image_qj11j_160";
|
|
|
8894
9256
|
const placeholder$5 = "_placeholder_qj11j_167";
|
|
8895
9257
|
const more = "_more_qj11j_174";
|
|
8896
9258
|
const chevron$2 = "_chevron_qj11j_187";
|
|
8897
|
-
const styles$
|
|
9259
|
+
const styles$x = {
|
|
8898
9260
|
page: page$1,
|
|
8899
9261
|
empty,
|
|
8900
9262
|
cta: cta$3,
|
|
@@ -8972,7 +9334,7 @@ function OrderListContent({ onOpenOrder, onOpenReturn, onStartShopping, locale:
|
|
|
8972
9334
|
}, [load]);
|
|
8973
9335
|
if (state === "loading") {
|
|
8974
9336
|
return jsxs("div", {
|
|
8975
|
-
className: styles$
|
|
9337
|
+
className: styles$x.page,
|
|
8976
9338
|
children: [jsx(Skeleton, {
|
|
8977
9339
|
height: 148,
|
|
8978
9340
|
radius: 12
|
|
@@ -8993,14 +9355,14 @@ function OrderListContent({ onOpenOrder, onOpenReturn, onStartShopping, locale:
|
|
|
8993
9355
|
}
|
|
8994
9356
|
if (orders2.length === 0 && returns.length === 0) {
|
|
8995
9357
|
return jsx("div", {
|
|
8996
|
-
className: styles$
|
|
9358
|
+
className: styles$x.empty,
|
|
8997
9359
|
children: jsx(EmptyState, {
|
|
8998
9360
|
title: t("Nothing here yet"),
|
|
8999
9361
|
body: t("Your orders will show up here once you've shopped."),
|
|
9000
9362
|
...onStartShopping ? {
|
|
9001
9363
|
action: jsx("button", {
|
|
9002
9364
|
type: "button",
|
|
9003
|
-
className: styles$
|
|
9365
|
+
className: styles$x.cta,
|
|
9004
9366
|
onClick: onStartShopping,
|
|
9005
9367
|
children: t("Continue shopping")
|
|
9006
9368
|
})
|
|
@@ -9018,7 +9380,7 @@ function OrderListContent({ onOpenOrder, onOpenReturn, onStartShopping, locale:
|
|
|
9018
9380
|
ret
|
|
9019
9381
|
}))].sort((a, b) => Date.parse(b.at) - Date.parse(a.at));
|
|
9020
9382
|
return jsx("ul", {
|
|
9021
|
-
className: styles$
|
|
9383
|
+
className: styles$x.page,
|
|
9022
9384
|
children: rows.map((row2) => jsx("li", {
|
|
9023
9385
|
children: "order" in row2 ? jsx(OrderCard, {
|
|
9024
9386
|
order: row2.order,
|
|
@@ -9042,39 +9404,39 @@ function ReturnCard({ ret, locale, onOpen }) {
|
|
|
9042
9404
|
const items2 = `${ret.item_count} ${ret.item_count === 1 ? t("item") : t("items")}`;
|
|
9043
9405
|
const body3 = jsxs(Fragment, {
|
|
9044
9406
|
children: [jsxs("div", {
|
|
9045
|
-
className: styles$
|
|
9407
|
+
className: styles$x.head,
|
|
9046
9408
|
children: [jsxs("div", {
|
|
9047
|
-
className: styles$
|
|
9409
|
+
className: styles$x.heading,
|
|
9048
9410
|
children: [jsx("span", {
|
|
9049
|
-
className: styles$
|
|
9411
|
+
className: styles$x.title,
|
|
9050
9412
|
children: `${t("Return")} #${shortRef(ret.return_ref)}`
|
|
9051
9413
|
}), jsx("span", {
|
|
9052
|
-
className: styles$
|
|
9414
|
+
className: styles$x.date,
|
|
9053
9415
|
children: formatPlaced(ret.reported_at, locale)
|
|
9054
9416
|
})]
|
|
9055
9417
|
}), jsx(ReturnStatusBadge, {
|
|
9056
9418
|
status: ret.status
|
|
9057
9419
|
})]
|
|
9058
9420
|
}), jsxs("div", {
|
|
9059
|
-
className: styles$
|
|
9421
|
+
className: styles$x.bottom,
|
|
9060
9422
|
children: [jsx(ReturnThumbnails, {
|
|
9061
9423
|
ret
|
|
9062
9424
|
}), jsx("span", {
|
|
9063
|
-
className: styles$
|
|
9425
|
+
className: styles$x.meta,
|
|
9064
9426
|
children: `${items2} · ${money2(ret.value)}`
|
|
9065
9427
|
}), onOpen && jsx("span", {
|
|
9066
|
-
className: styles$
|
|
9428
|
+
className: styles$x.chevron,
|
|
9067
9429
|
children: jsx(Chevron, {})
|
|
9068
9430
|
})]
|
|
9069
9431
|
})]
|
|
9070
9432
|
});
|
|
9071
9433
|
if (!onOpen) return jsx("div", {
|
|
9072
|
-
className: styles$
|
|
9434
|
+
className: styles$x.card,
|
|
9073
9435
|
children: body3
|
|
9074
9436
|
});
|
|
9075
9437
|
return jsx("button", {
|
|
9076
9438
|
type: "button",
|
|
9077
|
-
className: [styles$
|
|
9439
|
+
className: [styles$x.card, styles$x.tappable].join(" "),
|
|
9078
9440
|
onClick: onOpen,
|
|
9079
9441
|
"aria-label": `${t("Return")} ${shortRef(ret.return_ref)}, ${ret.headline}`,
|
|
9080
9442
|
children: body3
|
|
@@ -9087,27 +9449,27 @@ function ReturnThumbnails({ ret }) {
|
|
|
9087
9449
|
const overflow = images.length >= TILES && hidden > 1 ? hidden : 0;
|
|
9088
9450
|
if (images.length === 0) {
|
|
9089
9451
|
return jsx("div", {
|
|
9090
|
-
className: styles$
|
|
9452
|
+
className: styles$x.strip,
|
|
9091
9453
|
children: jsx("div", {
|
|
9092
|
-
className: [styles$
|
|
9454
|
+
className: [styles$x.tile, styles$x.placeholder].join(" "),
|
|
9093
9455
|
"aria-hidden": "true"
|
|
9094
9456
|
})
|
|
9095
9457
|
});
|
|
9096
9458
|
}
|
|
9097
9459
|
return jsx("div", {
|
|
9098
|
-
className: styles$
|
|
9460
|
+
className: styles$x.strip,
|
|
9099
9461
|
children: images.map((src, i) => {
|
|
9100
9462
|
const last = i === images.length - 1;
|
|
9101
9463
|
return jsxs("div", {
|
|
9102
|
-
className: styles$
|
|
9464
|
+
className: styles$x.tile,
|
|
9103
9465
|
children: [jsx(ShopImage, {
|
|
9104
9466
|
src,
|
|
9105
9467
|
alt: "",
|
|
9106
9468
|
fill: true,
|
|
9107
9469
|
sizes: "56px",
|
|
9108
|
-
className: styles$
|
|
9470
|
+
className: styles$x.image
|
|
9109
9471
|
}), overflow > 0 && last && jsxs("span", {
|
|
9110
|
-
className: styles$
|
|
9472
|
+
className: styles$x.more,
|
|
9111
9473
|
children: [jsxs("span", {
|
|
9112
9474
|
"aria-hidden": "true",
|
|
9113
9475
|
children: ["+", overflow]
|
|
@@ -9124,36 +9486,36 @@ function OrderCard({ order, locale, onOpen }) {
|
|
|
9124
9486
|
const t = useT();
|
|
9125
9487
|
const body3 = jsxs(Fragment, {
|
|
9126
9488
|
children: [jsxs("div", {
|
|
9127
|
-
className: styles$
|
|
9489
|
+
className: styles$x.head,
|
|
9128
9490
|
children: [jsxs("div", {
|
|
9129
|
-
className: styles$
|
|
9491
|
+
className: styles$x.heading,
|
|
9130
9492
|
children: [jsx("span", {
|
|
9131
|
-
className: styles$
|
|
9493
|
+
className: styles$x.title,
|
|
9132
9494
|
children: t("Order #{0}", shortRef(order.order_ref))
|
|
9133
9495
|
}), jsx("span", {
|
|
9134
|
-
className: styles$
|
|
9496
|
+
className: styles$x.date,
|
|
9135
9497
|
children: formatPlaced(order.placed_at, locale)
|
|
9136
9498
|
})]
|
|
9137
9499
|
}), jsx(OrderStatusBadge, {
|
|
9138
9500
|
status: order.status
|
|
9139
9501
|
})]
|
|
9140
9502
|
}), jsxs("div", {
|
|
9141
|
-
className: styles$
|
|
9503
|
+
className: styles$x.bottom,
|
|
9142
9504
|
children: [jsx(Thumbnails, {
|
|
9143
9505
|
order
|
|
9144
9506
|
}), onOpen && jsx("span", {
|
|
9145
|
-
className: styles$
|
|
9507
|
+
className: styles$x.chevron,
|
|
9146
9508
|
children: jsx(Chevron, {})
|
|
9147
9509
|
})]
|
|
9148
9510
|
})]
|
|
9149
9511
|
});
|
|
9150
9512
|
if (!onOpen) return jsx("div", {
|
|
9151
|
-
className: styles$
|
|
9513
|
+
className: styles$x.card,
|
|
9152
9514
|
children: body3
|
|
9153
9515
|
});
|
|
9154
9516
|
return jsx("button", {
|
|
9155
9517
|
type: "button",
|
|
9156
|
-
className: [styles$
|
|
9518
|
+
className: [styles$x.card, styles$x.tappable].join(" "),
|
|
9157
9519
|
onClick: onOpen,
|
|
9158
9520
|
"aria-label": `Order ${shortRef(order.order_ref)}, ${order.headline}`,
|
|
9159
9521
|
children: body3
|
|
@@ -9166,27 +9528,27 @@ function Thumbnails({ order }) {
|
|
|
9166
9528
|
const overflow = images.length >= TILES && hidden > 1 ? hidden : 0;
|
|
9167
9529
|
if (images.length === 0) {
|
|
9168
9530
|
return jsx("div", {
|
|
9169
|
-
className: styles$
|
|
9531
|
+
className: styles$x.strip,
|
|
9170
9532
|
children: jsx("div", {
|
|
9171
|
-
className: [styles$
|
|
9533
|
+
className: [styles$x.tile, styles$x.placeholder].join(" "),
|
|
9172
9534
|
"aria-hidden": "true"
|
|
9173
9535
|
})
|
|
9174
9536
|
});
|
|
9175
9537
|
}
|
|
9176
9538
|
return jsx("div", {
|
|
9177
|
-
className: styles$
|
|
9539
|
+
className: styles$x.strip,
|
|
9178
9540
|
children: images.map((src, i) => {
|
|
9179
9541
|
const last = i === images.length - 1;
|
|
9180
9542
|
return jsxs("div", {
|
|
9181
|
-
className: styles$
|
|
9543
|
+
className: styles$x.tile,
|
|
9182
9544
|
children: [jsx(ShopImage, {
|
|
9183
9545
|
src,
|
|
9184
9546
|
alt: "",
|
|
9185
9547
|
fill: true,
|
|
9186
9548
|
sizes: "56px",
|
|
9187
|
-
className: styles$
|
|
9549
|
+
className: styles$x.image
|
|
9188
9550
|
}), overflow > 0 && last && jsxs("span", {
|
|
9189
|
-
className: styles$
|
|
9551
|
+
className: styles$x.more,
|
|
9190
9552
|
children: [jsxs("span", {
|
|
9191
9553
|
"aria-hidden": "true",
|
|
9192
9554
|
children: ["+", overflow]
|
|
@@ -9216,7 +9578,7 @@ const swatches = "_swatches_mdi63_1";
|
|
|
9216
9578
|
const swatch = "_swatch_mdi63_1";
|
|
9217
9579
|
const swatchActive = "_swatchActive_mdi63_18";
|
|
9218
9580
|
const swatchDot = "_swatchDot_mdi63_22";
|
|
9219
|
-
const styles$
|
|
9581
|
+
const styles$w = {
|
|
9220
9582
|
swatches,
|
|
9221
9583
|
swatch,
|
|
9222
9584
|
swatchActive,
|
|
@@ -9226,12 +9588,12 @@ function ColourSwatches({ variants, className }) {
|
|
|
9226
9588
|
const colours = colourOptions(variants);
|
|
9227
9589
|
if (colours.length === 0) return null;
|
|
9228
9590
|
return jsx("div", {
|
|
9229
|
-
className: [styles$
|
|
9591
|
+
className: [styles$w.swatches, className ?? ""].join(" ").trim(),
|
|
9230
9592
|
"aria-hidden": "true",
|
|
9231
9593
|
children: colours.map((c, i) => jsx("span", {
|
|
9232
|
-
className: [styles$
|
|
9594
|
+
className: [styles$w.swatch, i === 0 ? styles$w.swatchActive : ""].join(" "),
|
|
9233
9595
|
children: jsx("span", {
|
|
9234
|
-
className: styles$
|
|
9596
|
+
className: styles$w.swatchDot,
|
|
9235
9597
|
style: {
|
|
9236
9598
|
background: swatchColour(c.value)
|
|
9237
9599
|
}
|
|
@@ -9251,7 +9613,7 @@ const titlePrice$1 = "_titlePrice_yg69t_100";
|
|
|
9251
9613
|
const title$f = "_title_yg69t_5";
|
|
9252
9614
|
const large = "_large_yg69t_185";
|
|
9253
9615
|
const swatchSlot = "_swatchSlot_yg69t_223";
|
|
9254
|
-
const styles$
|
|
9616
|
+
const styles$v = {
|
|
9255
9617
|
tile: tile$1,
|
|
9256
9618
|
media: media$2,
|
|
9257
9619
|
image: image$9,
|
|
@@ -9273,37 +9635,37 @@ function ProductTile({ product, priority, size = "default" }) {
|
|
|
9273
9635
|
const t = useT();
|
|
9274
9636
|
return jsxs(ShopLink, {
|
|
9275
9637
|
to: `/product/${encodeURIComponent(product.sku)}`,
|
|
9276
|
-
className: [styles$
|
|
9638
|
+
className: [styles$v.tile, size === "large" ? styles$v.large : ""].join(" "),
|
|
9277
9639
|
children: [jsxs("div", {
|
|
9278
|
-
className: styles$
|
|
9640
|
+
className: styles$v.media,
|
|
9279
9641
|
children: [image2 ? jsx(ShopImage, {
|
|
9280
9642
|
src: image2,
|
|
9281
9643
|
alt: product.title,
|
|
9282
9644
|
fill: true,
|
|
9283
9645
|
sizes: size === "large" ? "(max-width: 480px) 100vw, 480px" : "(max-width: 480px) 45vw, 200px",
|
|
9284
|
-
className: styles$
|
|
9646
|
+
className: styles$v.image,
|
|
9285
9647
|
priority
|
|
9286
9648
|
}) : jsx("div", {
|
|
9287
|
-
className: styles$
|
|
9649
|
+
className: styles$v.placeholder,
|
|
9288
9650
|
"aria-hidden": "true"
|
|
9289
9651
|
}), anyInStock && topBadge2 && jsx("span", {
|
|
9290
|
-
className: styles$
|
|
9652
|
+
className: styles$v.topBadge,
|
|
9291
9653
|
children: topBadge2
|
|
9292
9654
|
}), anyInStock && pct !== void 0 && jsx("span", {
|
|
9293
|
-
className: styles$
|
|
9655
|
+
className: styles$v.saleBadge,
|
|
9294
9656
|
children: jsx(SaleBadge, {
|
|
9295
9657
|
pct
|
|
9296
9658
|
})
|
|
9297
9659
|
}), !anyInStock && jsx("span", {
|
|
9298
|
-
className: styles$
|
|
9660
|
+
className: styles$v.oos,
|
|
9299
9661
|
children: t("Out of stock")
|
|
9300
9662
|
})]
|
|
9301
9663
|
}), jsxs("div", {
|
|
9302
|
-
className: styles$
|
|
9664
|
+
className: styles$v.bottom,
|
|
9303
9665
|
children: [jsxs("div", {
|
|
9304
|
-
className: styles$
|
|
9666
|
+
className: styles$v.titlePrice,
|
|
9305
9667
|
children: [jsx("span", {
|
|
9306
|
-
className: styles$
|
|
9668
|
+
className: styles$v.title,
|
|
9307
9669
|
children: product.title
|
|
9308
9670
|
}), jsx(PriceBlock, {
|
|
9309
9671
|
price: product.price,
|
|
@@ -9314,7 +9676,7 @@ function ProductTile({ product, priority, size = "default" }) {
|
|
|
9314
9676
|
})]
|
|
9315
9677
|
}), jsx(ColourSwatches, {
|
|
9316
9678
|
variants: product.variants,
|
|
9317
|
-
className: styles$
|
|
9679
|
+
className: styles$v.swatchSlot
|
|
9318
9680
|
})]
|
|
9319
9681
|
})]
|
|
9320
9682
|
});
|
|
@@ -9334,7 +9696,7 @@ const name = "_name_v48ok_142";
|
|
|
9334
9696
|
const price$1 = "_price_v48ok_155";
|
|
9335
9697
|
const paid = "_paid_v48ok_164";
|
|
9336
9698
|
const was$1 = "_was_v48ok_170";
|
|
9337
|
-
const styles$
|
|
9699
|
+
const styles$u = {
|
|
9338
9700
|
section: section$3,
|
|
9339
9701
|
title: title$e,
|
|
9340
9702
|
link,
|
|
@@ -9358,54 +9720,54 @@ function ProductGallery({ title: title2, product }) {
|
|
|
9358
9720
|
const inStock = product.variants.some((v) => v.in_stock);
|
|
9359
9721
|
const images = product.media.length > 0 ? product.media : [void 0];
|
|
9360
9722
|
return jsxs("section", {
|
|
9361
|
-
className: styles$
|
|
9723
|
+
className: styles$u.section,
|
|
9362
9724
|
"aria-labelledby": `gallery-${product.sku}`,
|
|
9363
9725
|
children: [jsx("h2", {
|
|
9364
|
-
className: styles$
|
|
9726
|
+
className: styles$u.title,
|
|
9365
9727
|
id: `gallery-${product.sku}`,
|
|
9366
9728
|
children: title2
|
|
9367
9729
|
}), jsxs(ShopLink, {
|
|
9368
9730
|
to: `/product/${encodeURIComponent(product.sku)}`,
|
|
9369
|
-
className: styles$
|
|
9731
|
+
className: styles$u.link,
|
|
9370
9732
|
children: [jsx("ul", {
|
|
9371
|
-
className: styles$
|
|
9733
|
+
className: styles$u.track,
|
|
9372
9734
|
"aria-label": t("{0} photographs", product.title),
|
|
9373
9735
|
children: images.map((src, i) => jsxs("li", {
|
|
9374
|
-
className: styles$
|
|
9736
|
+
className: styles$u.frame,
|
|
9375
9737
|
children: [src ? jsx(ShopImage, {
|
|
9376
9738
|
src,
|
|
9377
9739
|
alt: "",
|
|
9378
9740
|
fill: true,
|
|
9379
9741
|
sizes: "165px",
|
|
9380
|
-
className: styles$
|
|
9742
|
+
className: styles$u.image,
|
|
9381
9743
|
...i === 0 ? {
|
|
9382
9744
|
priority: true
|
|
9383
9745
|
} : {}
|
|
9384
9746
|
}) : jsx("div", {
|
|
9385
|
-
className: styles$
|
|
9747
|
+
className: styles$u.placeholder,
|
|
9386
9748
|
"aria-hidden": "true"
|
|
9387
9749
|
}), i === 0 && inStock && pct !== void 0 && jsx("span", {
|
|
9388
|
-
className: styles$
|
|
9750
|
+
className: styles$u.saleBadge,
|
|
9389
9751
|
children: jsx(SaleBadge, {
|
|
9390
9752
|
pct
|
|
9391
9753
|
})
|
|
9392
9754
|
}), i === 0 && !inStock && jsx("span", {
|
|
9393
|
-
className: styles$
|
|
9755
|
+
className: styles$u.oos,
|
|
9394
9756
|
children: t("Out of stock")
|
|
9395
9757
|
})]
|
|
9396
9758
|
}, src ?? i))
|
|
9397
9759
|
}), jsxs("div", {
|
|
9398
|
-
className: styles$
|
|
9760
|
+
className: styles$u.caption,
|
|
9399
9761
|
children: [jsx("span", {
|
|
9400
|
-
className: styles$
|
|
9762
|
+
className: styles$u.name,
|
|
9401
9763
|
children: product.title
|
|
9402
9764
|
}), jsxs("span", {
|
|
9403
|
-
className: styles$
|
|
9765
|
+
className: styles$u.price,
|
|
9404
9766
|
children: [jsx("span", {
|
|
9405
|
-
className: styles$
|
|
9767
|
+
className: styles$u.paid,
|
|
9406
9768
|
children: format(product.price)
|
|
9407
9769
|
}), product.compare_at && jsxs("span", {
|
|
9408
|
-
className: styles$
|
|
9770
|
+
className: styles$u.was,
|
|
9409
9771
|
children: [jsx("span", {
|
|
9410
9772
|
className: "visually-hidden",
|
|
9411
9773
|
children: t("Was {0}", format(product.compare_at))
|
|
@@ -9416,7 +9778,7 @@ function ProductGallery({ title: title2, product }) {
|
|
|
9416
9778
|
})]
|
|
9417
9779
|
}), jsx(ColourSwatches, {
|
|
9418
9780
|
variants: product.variants,
|
|
9419
|
-
className: styles$
|
|
9781
|
+
className: styles$u.swatchRow
|
|
9420
9782
|
})]
|
|
9421
9783
|
})]
|
|
9422
9784
|
})]
|
|
@@ -9427,7 +9789,7 @@ const chips$1 = "_chips_6p29u_8";
|
|
|
9427
9789
|
const chip$1 = "_chip_6p29u_8";
|
|
9428
9790
|
const on = "_on_6p29u_36";
|
|
9429
9791
|
const clear = "_clear_6p29u_42";
|
|
9430
|
-
const styles$
|
|
9792
|
+
const styles$t = {
|
|
9431
9793
|
bar: bar$1,
|
|
9432
9794
|
chips: chips$1,
|
|
9433
9795
|
chip: chip$1,
|
|
@@ -9438,24 +9800,24 @@ function FilterBar({ options: options2, active, onToggle, onClear }) {
|
|
|
9438
9800
|
const t = useT();
|
|
9439
9801
|
const hasActive = active.length > 0;
|
|
9440
9802
|
return jsxs("div", {
|
|
9441
|
-
className: styles$
|
|
9803
|
+
className: styles$t.bar,
|
|
9442
9804
|
role: "group",
|
|
9443
9805
|
"aria-label": t("Filters"),
|
|
9444
9806
|
children: [jsx("div", {
|
|
9445
|
-
className: styles$
|
|
9807
|
+
className: styles$t.chips,
|
|
9446
9808
|
children: options2.map((opt) => {
|
|
9447
9809
|
const on2 = active.includes(opt.value);
|
|
9448
9810
|
return jsx("button", {
|
|
9449
9811
|
type: "button",
|
|
9450
9812
|
"aria-pressed": on2,
|
|
9451
|
-
className: [styles$
|
|
9813
|
+
className: [styles$t.chip, on2 ? styles$t.on : ""].join(" "),
|
|
9452
9814
|
onClick: () => onToggle(opt.value),
|
|
9453
9815
|
children: opt.label
|
|
9454
9816
|
}, opt.value);
|
|
9455
9817
|
})
|
|
9456
9818
|
}), hasActive && onClear && jsx("button", {
|
|
9457
9819
|
type: "button",
|
|
9458
|
-
className: styles$
|
|
9820
|
+
className: styles$t.clear,
|
|
9459
9821
|
onClick: onClear,
|
|
9460
9822
|
children: t("Clear")
|
|
9461
9823
|
})]
|
|
@@ -9463,7 +9825,7 @@ function FilterBar({ options: options2, active, onToggle, onClear }) {
|
|
|
9463
9825
|
}
|
|
9464
9826
|
const wrap$2 = "_wrap_15ntf_1";
|
|
9465
9827
|
const grid$1 = "_grid_15ntf_7";
|
|
9466
|
-
const styles$
|
|
9828
|
+
const styles$s = {
|
|
9467
9829
|
wrap: wrap$2,
|
|
9468
9830
|
grid: grid$1
|
|
9469
9831
|
};
|
|
@@ -9509,7 +9871,7 @@ function ProductGrid({ category, initialProducts, initialCursor, filters = [] })
|
|
|
9509
9871
|
}, [loadMore]);
|
|
9510
9872
|
const visible = active.length === 0 ? products : products.filter((p) => active.includes(p.category));
|
|
9511
9873
|
return jsxs("div", {
|
|
9512
|
-
className: styles$
|
|
9874
|
+
className: styles$s.wrap,
|
|
9513
9875
|
children: [filters.length > 0 && jsx(FilterBar, {
|
|
9514
9876
|
options: filters,
|
|
9515
9877
|
active,
|
|
@@ -9524,7 +9886,7 @@ function ProductGrid({ category, initialProducts, initialCursor, filters = [] })
|
|
|
9524
9886
|
children: t("Clear filters")
|
|
9525
9887
|
}) : void 0
|
|
9526
9888
|
}) : jsx("ul", {
|
|
9527
|
-
className: styles$
|
|
9889
|
+
className: styles$s.grid,
|
|
9528
9890
|
children: visible.map((product, i) => jsx("li", {
|
|
9529
9891
|
children: jsx(ProductTile, {
|
|
9530
9892
|
product,
|
|
@@ -9532,7 +9894,7 @@ function ProductGrid({ category, initialProducts, initialCursor, filters = [] })
|
|
|
9532
9894
|
})
|
|
9533
9895
|
}, product.sku))
|
|
9534
9896
|
}), loading && jsx("div", {
|
|
9535
|
-
className: styles$
|
|
9897
|
+
className: styles$s.grid,
|
|
9536
9898
|
"aria-hidden": "true",
|
|
9537
9899
|
children: [0, 1].map((i) => jsx(Skeleton, {
|
|
9538
9900
|
height: 200,
|
|
@@ -9551,7 +9913,7 @@ const seeAll = "_seeAll_1rll1_27";
|
|
|
9551
9913
|
const track$3 = "_track_1rll1_33";
|
|
9552
9914
|
const item = "_item_1rll1_67";
|
|
9553
9915
|
const inset = "_inset_1rll1_79";
|
|
9554
|
-
const styles$
|
|
9916
|
+
const styles$r = {
|
|
9555
9917
|
rail,
|
|
9556
9918
|
header: header$5,
|
|
9557
9919
|
title: title$d,
|
|
@@ -9564,22 +9926,22 @@ function RailCarousel({ title: title2, products, seeAllTo, inset: inset2 }) {
|
|
|
9564
9926
|
const t = useT();
|
|
9565
9927
|
if (products.length === 0) return null;
|
|
9566
9928
|
return jsxs("section", {
|
|
9567
|
-
className: [styles$
|
|
9929
|
+
className: [styles$r.rail, inset2 ? styles$r.inset : ""].join(" "),
|
|
9568
9930
|
"aria-label": title2,
|
|
9569
9931
|
children: [jsxs("div", {
|
|
9570
|
-
className: styles$
|
|
9932
|
+
className: styles$r.header,
|
|
9571
9933
|
children: [jsx("h2", {
|
|
9572
|
-
className: styles$
|
|
9934
|
+
className: styles$r.title,
|
|
9573
9935
|
children: title2
|
|
9574
9936
|
}), seeAllTo && jsx(ShopLink, {
|
|
9575
|
-
className: styles$
|
|
9937
|
+
className: styles$r.seeAll,
|
|
9576
9938
|
to: seeAllTo,
|
|
9577
9939
|
children: t("See all")
|
|
9578
9940
|
})]
|
|
9579
9941
|
}), jsx("ul", {
|
|
9580
|
-
className: styles$
|
|
9942
|
+
className: styles$r.track,
|
|
9581
9943
|
children: products.map((product, i) => jsx("li", {
|
|
9582
|
-
className: styles$
|
|
9944
|
+
className: styles$r.item,
|
|
9583
9945
|
children: jsx(ProductTile, {
|
|
9584
9946
|
product,
|
|
9585
9947
|
priority: i < 2
|
|
@@ -9598,7 +9960,7 @@ const title$c = "_title_uxpgl_67";
|
|
|
9598
9960
|
const close$1 = "_close_uxpgl_71";
|
|
9599
9961
|
const body$5 = "_body_uxpgl_84";
|
|
9600
9962
|
const footer = "_footer_uxpgl_97";
|
|
9601
|
-
const styles$
|
|
9963
|
+
const styles$q = {
|
|
9602
9964
|
overlay: overlay$2,
|
|
9603
9965
|
scrim: scrim$4,
|
|
9604
9966
|
sheet: sheet$2,
|
|
@@ -9638,14 +10000,14 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9638
10000
|
useModalDialog(open, onClose, sheetRef);
|
|
9639
10001
|
if (!open) return null;
|
|
9640
10002
|
return jsxs("div", {
|
|
9641
|
-
className: styles$
|
|
10003
|
+
className: styles$q.overlay,
|
|
9642
10004
|
children: [jsx("div", {
|
|
9643
|
-
className: styles$
|
|
10005
|
+
className: styles$q.scrim,
|
|
9644
10006
|
onClick: onClose,
|
|
9645
10007
|
"aria-hidden": "true"
|
|
9646
10008
|
}), jsxs(ShopSurface, {
|
|
9647
10009
|
tone: "light",
|
|
9648
|
-
className: styles$
|
|
10010
|
+
className: styles$q.sheet,
|
|
9649
10011
|
role: "dialog",
|
|
9650
10012
|
"aria-modal": "true",
|
|
9651
10013
|
"aria-labelledby": titleId,
|
|
@@ -9655,7 +10017,7 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9655
10017
|
transition: "none"
|
|
9656
10018
|
} : void 0,
|
|
9657
10019
|
children: [jsx("div", {
|
|
9658
|
-
className: styles$
|
|
10020
|
+
className: styles$q.grabArea,
|
|
9659
10021
|
onPointerDown: (e) => {
|
|
9660
10022
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
9661
10023
|
onDragStart(e.clientY);
|
|
@@ -9664,18 +10026,18 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9664
10026
|
onPointerUp: onDragEnd,
|
|
9665
10027
|
onPointerCancel: onDragEnd,
|
|
9666
10028
|
children: jsx("div", {
|
|
9667
|
-
className: styles$
|
|
10029
|
+
className: styles$q.grabber,
|
|
9668
10030
|
"aria-hidden": "true"
|
|
9669
10031
|
})
|
|
9670
10032
|
}), jsxs("div", {
|
|
9671
|
-
className: styles$
|
|
10033
|
+
className: styles$q.header,
|
|
9672
10034
|
children: [jsx("h2", {
|
|
9673
10035
|
id: titleId,
|
|
9674
|
-
className: styles$
|
|
10036
|
+
className: styles$q.title,
|
|
9675
10037
|
children: title2
|
|
9676
10038
|
}), jsx("button", {
|
|
9677
10039
|
type: "button",
|
|
9678
|
-
className: styles$
|
|
10040
|
+
className: styles$q.close,
|
|
9679
10041
|
onClick: onClose,
|
|
9680
10042
|
"aria-label": t("Close"),
|
|
9681
10043
|
children: jsx("svg", {
|
|
@@ -9693,10 +10055,10 @@ function BottomSheet({ open, onClose, title: title2, children, footer: footer2 }
|
|
|
9693
10055
|
})
|
|
9694
10056
|
})]
|
|
9695
10057
|
}), jsx("div", {
|
|
9696
|
-
className: styles$
|
|
10058
|
+
className: styles$q.body,
|
|
9697
10059
|
children
|
|
9698
10060
|
}), footer2 && jsx("div", {
|
|
9699
|
-
className: styles$
|
|
10061
|
+
className: styles$q.footer,
|
|
9700
10062
|
children: footer2
|
|
9701
10063
|
})]
|
|
9702
10064
|
})]
|
|
@@ -9716,7 +10078,7 @@ const stepper = "_stepper_1rmip_10";
|
|
|
9716
10078
|
const cap = "_cap_1rmip_23";
|
|
9717
10079
|
const button = "_button_1rmip_31";
|
|
9718
10080
|
const value$1 = "_value_1rmip_50";
|
|
9719
|
-
const styles$
|
|
10081
|
+
const styles$p = {
|
|
9720
10082
|
wrap: wrap$1,
|
|
9721
10083
|
stepper,
|
|
9722
10084
|
cap,
|
|
@@ -9794,24 +10156,24 @@ function QtyStepper({ qty, max, onChange, onRemove, disabled: disabled2, capDesc
|
|
|
9794
10156
|
if (!atMax) onChange(qty + 1);
|
|
9795
10157
|
}
|
|
9796
10158
|
return jsxs("div", {
|
|
9797
|
-
className: styles$
|
|
10159
|
+
className: styles$p.wrap,
|
|
9798
10160
|
children: [jsxs("div", {
|
|
9799
|
-
className: styles$
|
|
10161
|
+
className: styles$p.stepper,
|
|
9800
10162
|
children: [jsx("button", {
|
|
9801
10163
|
type: "button",
|
|
9802
|
-
className: styles$
|
|
10164
|
+
className: styles$p.button,
|
|
9803
10165
|
onClick: decrement,
|
|
9804
10166
|
disabled: disabled2,
|
|
9805
10167
|
"aria-label": willDelete ? t("Remove item") : t("Decrease quantity"),
|
|
9806
10168
|
children: willDelete ? jsx(TrashIcon, {}) : jsx(MinusIcon, {})
|
|
9807
10169
|
}), jsx("span", {
|
|
9808
|
-
className: styles$
|
|
10170
|
+
className: styles$p.value,
|
|
9809
10171
|
"aria-live": "polite",
|
|
9810
10172
|
"aria-label": `Quantity ${qty}`,
|
|
9811
10173
|
children: qty
|
|
9812
10174
|
}), jsx("button", {
|
|
9813
10175
|
type: "button",
|
|
9814
|
-
className: styles$
|
|
10176
|
+
className: styles$p.button,
|
|
9815
10177
|
onClick: increment,
|
|
9816
10178
|
disabled: disabled2 || atMax,
|
|
9817
10179
|
"aria-label": t("Increase quantity"),
|
|
@@ -9820,7 +10182,7 @@ function QtyStepper({ qty, max, onChange, onRemove, disabled: disabled2, capDesc
|
|
|
9820
10182
|
})]
|
|
9821
10183
|
}), atMax && capDescribedBy === void 0 && jsx("span", {
|
|
9822
10184
|
id: ownCapId,
|
|
9823
|
-
className: styles$
|
|
10185
|
+
className: styles$p.cap,
|
|
9824
10186
|
role: "status",
|
|
9825
10187
|
children: max === 0 ? t("Out of stock") : t("Only {0} left", max)
|
|
9826
10188
|
})]
|
|
@@ -9845,7 +10207,7 @@ const detail = "_detail_1dx14_164";
|
|
|
9845
10207
|
const price = "_price_1dx14_183";
|
|
9846
10208
|
const amount = "_amount_1dx14_191";
|
|
9847
10209
|
const was = "_was_1dx14_200";
|
|
9848
|
-
const styles$
|
|
10210
|
+
const styles$o = {
|
|
9849
10211
|
line,
|
|
9850
10212
|
row: row$5,
|
|
9851
10213
|
pending,
|
|
@@ -9879,53 +10241,53 @@ function CartLineItem({ item: item2, title: title2, image: image2, compareAt: co
|
|
|
9879
10241
|
const noticeId = useStableId("cart-line-stock");
|
|
9880
10242
|
const notice = lowStock2 || soldOut ? noticeId : void 0;
|
|
9881
10243
|
return jsxs("div", {
|
|
9882
|
-
className: [styles$
|
|
10244
|
+
className: [styles$o.line, pending2 ? styles$o.pending : ""].join(" "),
|
|
9883
10245
|
children: [jsxs("div", {
|
|
9884
|
-
className: styles$
|
|
10246
|
+
className: styles$o.row,
|
|
9885
10247
|
children: [jsxs("div", {
|
|
9886
|
-
className: styles$
|
|
10248
|
+
className: styles$o.media,
|
|
9887
10249
|
children: [displayImage ? jsx(ShopImage, {
|
|
9888
10250
|
src: displayImage,
|
|
9889
10251
|
alt: "",
|
|
9890
10252
|
fill: true,
|
|
9891
10253
|
sizes: "100px",
|
|
9892
|
-
className: styles$
|
|
10254
|
+
className: styles$o.image
|
|
9893
10255
|
}) : jsx("div", {
|
|
9894
|
-
className: styles$
|
|
10256
|
+
className: styles$o.placeholder,
|
|
9895
10257
|
"aria-hidden": "true"
|
|
9896
10258
|
}), soldOut ? jsx("span", {
|
|
9897
|
-
className: styles$
|
|
10259
|
+
className: styles$o.oos,
|
|
9898
10260
|
id: noticeId,
|
|
9899
10261
|
children: t("Out of stock")
|
|
9900
10262
|
}) : pct !== void 0 && jsx("span", {
|
|
9901
|
-
className: styles$
|
|
10263
|
+
className: styles$o.saleBadge,
|
|
9902
10264
|
children: jsx(SaleBadge, {
|
|
9903
10265
|
pct
|
|
9904
10266
|
})
|
|
9905
10267
|
})]
|
|
9906
10268
|
}), jsxs("div", {
|
|
9907
|
-
className: styles$
|
|
10269
|
+
className: styles$o.info,
|
|
9908
10270
|
children: [jsxs("div", {
|
|
9909
|
-
className: styles$
|
|
10271
|
+
className: styles$o.head,
|
|
9910
10272
|
children: [jsxs("div", {
|
|
9911
|
-
className: styles$
|
|
10273
|
+
className: styles$o.meta,
|
|
9912
10274
|
children: [jsx("span", {
|
|
9913
|
-
className: styles$
|
|
10275
|
+
className: styles$o.title,
|
|
9914
10276
|
children: displayTitle
|
|
9915
10277
|
}), pairs.length > 0 && jsx("div", {
|
|
9916
|
-
className: styles$
|
|
10278
|
+
className: styles$o.details,
|
|
9917
10279
|
children: pairs.map(({ key, label: label2, value: value2 }) => jsxs("span", {
|
|
9918
|
-
className: styles$
|
|
10280
|
+
className: styles$o.detail,
|
|
9919
10281
|
children: [t(label2), ": ", value2]
|
|
9920
10282
|
}, key))
|
|
9921
10283
|
})]
|
|
9922
10284
|
}), jsxs("div", {
|
|
9923
|
-
className: styles$
|
|
10285
|
+
className: styles$o.price,
|
|
9924
10286
|
children: [jsx("span", {
|
|
9925
|
-
className: styles$
|
|
10287
|
+
className: styles$o.amount,
|
|
9926
10288
|
children: format(item2.line_total)
|
|
9927
10289
|
}), compareAt2 && jsx("span", {
|
|
9928
|
-
className: styles$
|
|
10290
|
+
className: styles$o.was,
|
|
9929
10291
|
children: format(compareAt2)
|
|
9930
10292
|
})]
|
|
9931
10293
|
})]
|
|
@@ -9939,22 +10301,22 @@ function CartLineItem({ item: item2, title: title2, image: image2, compareAt: co
|
|
|
9939
10301
|
})]
|
|
9940
10302
|
})]
|
|
9941
10303
|
}), lowStock2 && jsx("div", {
|
|
9942
|
-
className: styles$
|
|
10304
|
+
className: styles$o.labels,
|
|
9943
10305
|
children: jsx("span", {
|
|
9944
10306
|
id: noticeId,
|
|
9945
|
-
className: styles$
|
|
10307
|
+
className: styles$o.lowStock,
|
|
9946
10308
|
role: "status",
|
|
9947
10309
|
children: t("Only {0} left", available)
|
|
9948
10310
|
})
|
|
9949
10311
|
})]
|
|
9950
10312
|
});
|
|
9951
10313
|
}
|
|
9952
|
-
const box$1 = "
|
|
9953
|
-
const row$4 = "
|
|
9954
|
-
const icon$2 = "
|
|
9955
|
-
const label = "
|
|
9956
|
-
const divider$1 = "
|
|
9957
|
-
const styles$
|
|
10314
|
+
const box$1 = "_box_w9fja_1";
|
|
10315
|
+
const row$4 = "_row_w9fja_10";
|
|
10316
|
+
const icon$2 = "_icon_w9fja_16";
|
|
10317
|
+
const label = "_label_w9fja_22";
|
|
10318
|
+
const divider$1 = "_divider_w9fja_29";
|
|
10319
|
+
const styles$n = {
|
|
9958
10320
|
box: box$1,
|
|
9959
10321
|
row: row$4,
|
|
9960
10322
|
icon: icon$2,
|
|
@@ -9964,66 +10326,43 @@ const styles$o = {
|
|
|
9964
10326
|
function ShippingInfo() {
|
|
9965
10327
|
const t = useT();
|
|
9966
10328
|
return jsxs("section", {
|
|
9967
|
-
className: styles$
|
|
10329
|
+
className: styles$n.box,
|
|
9968
10330
|
"aria-label": t("Shipping and returns"),
|
|
9969
10331
|
children: [jsxs("div", {
|
|
9970
|
-
className: styles$
|
|
9971
|
-
children: [
|
|
9972
|
-
className: styles$
|
|
10332
|
+
className: styles$n.row,
|
|
10333
|
+
children: [jsx("svg", {
|
|
10334
|
+
className: styles$n.icon,
|
|
9973
10335
|
width: "24",
|
|
9974
10336
|
height: "24",
|
|
9975
10337
|
viewBox: "0 0 24 24",
|
|
9976
10338
|
fill: "none",
|
|
9977
10339
|
"aria-hidden": "true",
|
|
9978
|
-
children:
|
|
9979
|
-
d: "
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
strokeLinejoin: "round"
|
|
9983
|
-
}), jsx("circle", {
|
|
9984
|
-
cx: "7",
|
|
9985
|
-
cy: "17",
|
|
9986
|
-
r: "1.6",
|
|
9987
|
-
stroke: "currentColor",
|
|
9988
|
-
strokeWidth: "1.5"
|
|
9989
|
-
}), jsx("circle", {
|
|
9990
|
-
cx: "17.5",
|
|
9991
|
-
cy: "17",
|
|
9992
|
-
r: "1.6",
|
|
9993
|
-
stroke: "currentColor",
|
|
9994
|
-
strokeWidth: "1.5"
|
|
9995
|
-
})]
|
|
10340
|
+
children: jsx("path", {
|
|
10341
|
+
d: "M15.459 14.2744C14.6592 14.835 14.1396 15.7646 14.1396 16.8174C14.1396 16.9951 14.1602 17.1729 14.1875 17.3369H10.5098C10.5371 17.166 10.5576 16.9951 10.5576 16.8174C10.5576 15.0537 9.12207 13.6182 7.35156 13.6182C5.58105 13.6182 4.13867 15.0537 4.13867 16.8174C4.13867 16.9883 4.15234 17.1523 4.18652 17.3164H3.91992C2.6416 17.3164 1.9375 16.3799 1.9375 15.0264V6.31738C1.9375 4.84766 2.77832 4 4.25488 4H13.1484C14.6182 4 15.459 4.84766 15.459 6.31738V14.2744ZM16.4365 7.58203H18.1865C18.9795 7.58203 19.5127 7.78711 19.9844 8.32031L22.2949 10.9316C22.7393 11.4238 22.8691 11.7998 22.8691 12.5859V15.0264C22.8691 16.4277 22.1172 17.3438 20.7773 17.3438H20.5107C20.5381 17.1729 20.5586 16.9951 20.5586 16.8174C20.5586 15.0469 19.1094 13.6113 17.3457 13.6113C17.0244 13.6113 16.7168 13.6729 16.4365 13.7686V7.58203ZM18.6377 12.21H21.0303C21.0166 12.0664 20.9551 11.9707 20.8594 11.8613L19.0615 9.83105C18.8359 9.57812 18.665 9.50977 18.3506 9.50977H17.9268V11.499C17.9268 11.9365 18.207 12.21 18.6377 12.21ZM17.3525 19.1279C16.0811 19.1279 15.042 18.0957 15.042 16.8174C15.042 15.5459 16.0811 14.5137 17.3525 14.5137C18.624 14.5137 19.6562 15.5459 19.6562 16.8174C19.6562 18.1162 18.6309 19.1279 17.3525 19.1279ZM7.35156 19.1279C6.08008 19.1279 5.04102 18.0957 5.04102 16.8174C5.04102 15.5459 6.08008 14.5137 7.35156 14.5137C8.62305 14.5137 9.65527 15.5459 9.65527 16.8174C9.65527 18.0889 8.62305 19.1279 7.35156 19.1279Z",
|
|
10342
|
+
fill: "currentColor"
|
|
10343
|
+
})
|
|
9996
10344
|
}), jsx("p", {
|
|
9997
|
-
className: styles$
|
|
10345
|
+
className: styles$n.label,
|
|
9998
10346
|
children: t("Standard or express delivery")
|
|
9999
10347
|
})]
|
|
10000
10348
|
}), jsx("div", {
|
|
10001
|
-
className: styles$
|
|
10349
|
+
className: styles$n.divider,
|
|
10002
10350
|
role: "presentation"
|
|
10003
10351
|
}), jsxs("div", {
|
|
10004
|
-
className: styles$
|
|
10005
|
-
children: [
|
|
10006
|
-
className: styles$
|
|
10352
|
+
className: styles$n.row,
|
|
10353
|
+
children: [jsx("svg", {
|
|
10354
|
+
className: styles$n.icon,
|
|
10007
10355
|
width: "24",
|
|
10008
10356
|
height: "24",
|
|
10009
10357
|
viewBox: "0 0 24 24",
|
|
10010
10358
|
fill: "none",
|
|
10011
10359
|
"aria-hidden": "true",
|
|
10012
|
-
children:
|
|
10013
|
-
d: "
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
strokeLinecap: "round",
|
|
10017
|
-
strokeLinejoin: "round"
|
|
10018
|
-
}), jsx("path", {
|
|
10019
|
-
d: "M5.5 10.5H15a4 4 0 0 1 0 8h-3",
|
|
10020
|
-
stroke: "currentColor",
|
|
10021
|
-
strokeWidth: "1.5",
|
|
10022
|
-
strokeLinecap: "round",
|
|
10023
|
-
strokeLinejoin: "round"
|
|
10024
|
-
})]
|
|
10360
|
+
children: jsx("path", {
|
|
10361
|
+
d: "M12.2449 19.8028C12.2449 20.4839 11.7649 21 11.1087 21C10.6386 21 10.2566 20.7936 9.79628 20.3394L2.47992 13.0734C2.11753 12.7225 2 12.3303 2 12C2 11.6594 2.11753 11.2775 2.47992 10.9163L9.79628 3.71216C10.3056 3.21674 10.619 3 11.0891 3C11.7649 3 12.2449 3.56766 12.2449 4.24885V7.88188H12.4995C19.0813 7.88188 22 12.3303 22 19.5034C22 20.4633 21.5299 20.9794 20.9912 20.9794C20.57 20.9794 20.1391 20.8658 19.8061 20.2156C18.2292 17.1193 16.0255 16.1388 12.4995 16.1388H12.2449V19.8028Z",
|
|
10362
|
+
fill: "currentColor"
|
|
10363
|
+
})
|
|
10025
10364
|
}), jsx("p", {
|
|
10026
|
-
className: styles$
|
|
10365
|
+
className: styles$n.label,
|
|
10027
10366
|
children: t("14 days returns")
|
|
10028
10367
|
})]
|
|
10029
10368
|
})]
|
|
@@ -10034,7 +10373,7 @@ const floating$1 = "_floating_23dkv_52";
|
|
|
10034
10373
|
const divider = "_divider_23dkv_58";
|
|
10035
10374
|
const info$1 = "_info_23dkv_62";
|
|
10036
10375
|
const actions = "_actions_23dkv_70";
|
|
10037
|
-
const styles$
|
|
10376
|
+
const styles$m = {
|
|
10038
10377
|
bar,
|
|
10039
10378
|
floating: floating$1,
|
|
10040
10379
|
divider,
|
|
@@ -10043,12 +10382,12 @@ const styles$n = {
|
|
|
10043
10382
|
};
|
|
10044
10383
|
function StickyCtaBar({ children, info: info2, variant = "floating", className }) {
|
|
10045
10384
|
return jsxs("div", {
|
|
10046
|
-
className: [styles$
|
|
10385
|
+
className: [styles$m.bar, styles$m[variant], className ?? ""].join(" "),
|
|
10047
10386
|
children: [info2 && jsx("div", {
|
|
10048
|
-
className: styles$
|
|
10387
|
+
className: styles$m.info,
|
|
10049
10388
|
children: info2
|
|
10050
10389
|
}), jsx("div", {
|
|
10051
|
-
className: styles$
|
|
10390
|
+
className: styles$m.actions,
|
|
10052
10391
|
children
|
|
10053
10392
|
})]
|
|
10054
10393
|
});
|
|
@@ -10061,7 +10400,7 @@ const sectionHeader = "_sectionHeader_1bdb0_40";
|
|
|
10061
10400
|
const sectionTitle = "_sectionTitle_1bdb0_46";
|
|
10062
10401
|
const count = "_count_1bdb0_67";
|
|
10063
10402
|
const lines = "_lines_1bdb0_91";
|
|
10064
|
-
const styles$
|
|
10403
|
+
const styles$l = {
|
|
10065
10404
|
surface,
|
|
10066
10405
|
screen,
|
|
10067
10406
|
body: body$4,
|
|
@@ -10077,7 +10416,7 @@ function CartView(props = {}) {
|
|
|
10077
10416
|
return jsx(ShopSurface, {
|
|
10078
10417
|
tone: "light",
|
|
10079
10418
|
fill: true,
|
|
10080
|
-
className: styles$
|
|
10419
|
+
className: styles$l.surface,
|
|
10081
10420
|
children: jsx(CartViewContent, {
|
|
10082
10421
|
...props
|
|
10083
10422
|
})
|
|
@@ -10239,22 +10578,22 @@ function CartViewContent({ onContinueShopping, checkoutLabel } = {}) {
|
|
|
10239
10578
|
}
|
|
10240
10579
|
const itemCount = cart2.items.reduce((n, i) => n + i.qty, 0);
|
|
10241
10580
|
return jsxs("div", {
|
|
10242
|
-
className: styles$
|
|
10581
|
+
className: styles$l.screen,
|
|
10243
10582
|
children: [jsxs("div", {
|
|
10244
|
-
className: styles$
|
|
10583
|
+
className: styles$l.body,
|
|
10245
10584
|
children: [jsxs("section", {
|
|
10246
|
-
className: styles$
|
|
10585
|
+
className: styles$l.items,
|
|
10247
10586
|
children: [jsxs("div", {
|
|
10248
|
-
className: styles$
|
|
10587
|
+
className: styles$l.sectionHeader,
|
|
10249
10588
|
children: [jsx("h2", {
|
|
10250
|
-
className: styles$
|
|
10589
|
+
className: styles$l.sectionTitle,
|
|
10251
10590
|
children: t("Items")
|
|
10252
10591
|
}), jsx("span", {
|
|
10253
|
-
className: styles$
|
|
10592
|
+
className: styles$l.count,
|
|
10254
10593
|
children: itemCount
|
|
10255
10594
|
})]
|
|
10256
10595
|
}), jsx("ul", {
|
|
10257
|
-
className: styles$
|
|
10596
|
+
className: styles$l.lines,
|
|
10258
10597
|
children: cart2.items.map((item2) => jsx("li", {
|
|
10259
10598
|
children: jsx(CartLineItem, {
|
|
10260
10599
|
item: item2,
|
|
@@ -10327,7 +10666,7 @@ const placeholder$1 = "_placeholder_1vbj7_31";
|
|
|
10327
10666
|
const dots$2 = "_dots_1vbj7_49";
|
|
10328
10667
|
const dot$2 = "_dot_1vbj7_49";
|
|
10329
10668
|
const dotActive$2 = "_dotActive_1vbj7_100";
|
|
10330
|
-
const styles$
|
|
10669
|
+
const styles$k = {
|
|
10331
10670
|
gallery: gallery$1,
|
|
10332
10671
|
track: track$2,
|
|
10333
10672
|
slide: slide$1,
|
|
@@ -10378,30 +10717,30 @@ function MediaGallery({ media: media2, alt, focus }) {
|
|
|
10378
10717
|
}
|
|
10379
10718
|
if (media2.length === 0) {
|
|
10380
10719
|
return jsx("div", {
|
|
10381
|
-
className: styles$
|
|
10720
|
+
className: styles$k.placeholder,
|
|
10382
10721
|
"aria-hidden": "true"
|
|
10383
10722
|
});
|
|
10384
10723
|
}
|
|
10385
10724
|
return jsxs("div", {
|
|
10386
|
-
className: styles$
|
|
10725
|
+
className: styles$k.gallery,
|
|
10387
10726
|
children: [jsx("div", {
|
|
10388
|
-
className: styles$
|
|
10727
|
+
className: styles$k.track,
|
|
10389
10728
|
ref: trackRef,
|
|
10390
10729
|
role: "group",
|
|
10391
10730
|
"aria-label": `${alt} images`,
|
|
10392
10731
|
children: media2.map((src, i) => jsx("div", {
|
|
10393
|
-
className: styles$
|
|
10732
|
+
className: styles$k.slide,
|
|
10394
10733
|
children: jsx(ShopImage, {
|
|
10395
10734
|
src,
|
|
10396
10735
|
alt: `${alt} — image ${i + 1} of ${media2.length}`,
|
|
10397
10736
|
fill: true,
|
|
10398
10737
|
sizes: "(max-width: 480px) 100vw, 480px",
|
|
10399
|
-
className: styles$
|
|
10738
|
+
className: styles$k.image,
|
|
10400
10739
|
priority: i === 0
|
|
10401
10740
|
})
|
|
10402
10741
|
}, src))
|
|
10403
10742
|
}), media2.length > 1 && jsx("div", {
|
|
10404
|
-
className: styles$
|
|
10743
|
+
className: styles$k.dots,
|
|
10405
10744
|
role: "tablist",
|
|
10406
10745
|
"aria-label": t("Gallery pagination"),
|
|
10407
10746
|
children: media2.map((src, i) => jsx("button", {
|
|
@@ -10409,7 +10748,7 @@ function MediaGallery({ media: media2, alt, focus }) {
|
|
|
10409
10748
|
role: "tab",
|
|
10410
10749
|
"aria-selected": i === active,
|
|
10411
10750
|
"aria-label": `Go to image ${i + 1}`,
|
|
10412
|
-
className: [styles$
|
|
10751
|
+
className: [styles$k.dot, i === active ? styles$k.dotActive : ""].join(" "),
|
|
10413
10752
|
onClick: () => goTo(i)
|
|
10414
10753
|
}, src))
|
|
10415
10754
|
})]
|
|
@@ -10417,7 +10756,7 @@ function MediaGallery({ media: media2, alt, focus }) {
|
|
|
10417
10756
|
}
|
|
10418
10757
|
const row$3 = "_row_l4edh_1";
|
|
10419
10758
|
const badge$1 = "_badge_l4edh_11";
|
|
10420
|
-
const styles$
|
|
10759
|
+
const styles$j = {
|
|
10421
10760
|
row: row$3,
|
|
10422
10761
|
badge: badge$1
|
|
10423
10762
|
};
|
|
@@ -10425,9 +10764,9 @@ function PdpBadges({ badges: badges2 }) {
|
|
|
10425
10764
|
const flags = badges2.filter((b) => b.trim().length > 0);
|
|
10426
10765
|
if (flags.length === 0) return null;
|
|
10427
10766
|
return jsx("ul", {
|
|
10428
|
-
className: styles$
|
|
10767
|
+
className: styles$j.row,
|
|
10429
10768
|
children: flags.map((flag) => jsx("li", {
|
|
10430
|
-
className: styles$
|
|
10769
|
+
className: styles$j.badge,
|
|
10431
10770
|
children: flag
|
|
10432
10771
|
}, flag))
|
|
10433
10772
|
});
|
|
@@ -10438,7 +10777,7 @@ const thumb = "_thumb_1m6o7_7";
|
|
|
10438
10777
|
const main = "_main_1m6o7_34";
|
|
10439
10778
|
const image$5 = "_image_1m6o7_44";
|
|
10440
10779
|
const badges = "_badges_1m6o7_49";
|
|
10441
|
-
const styles$
|
|
10780
|
+
const styles$i = {
|
|
10442
10781
|
gallery,
|
|
10443
10782
|
thumbs,
|
|
10444
10783
|
thumb,
|
|
@@ -10455,14 +10794,14 @@ function DesktopGallery({ media: media2, alt, badges: badges2, focus }) {
|
|
|
10455
10794
|
}, [mediaKey, focus, media2.length]);
|
|
10456
10795
|
const shown = media2[active] ?? media2[0];
|
|
10457
10796
|
return jsxs("div", {
|
|
10458
|
-
className: styles$
|
|
10797
|
+
className: styles$i.gallery,
|
|
10459
10798
|
children: [media2.length > 0 && jsx("div", {
|
|
10460
|
-
className: styles$
|
|
10799
|
+
className: styles$i.thumbs,
|
|
10461
10800
|
role: "group",
|
|
10462
10801
|
"aria-label": t("{0} images", alt),
|
|
10463
10802
|
children: media2.map((src, i) => jsx("button", {
|
|
10464
10803
|
type: "button",
|
|
10465
|
-
className: styles$
|
|
10804
|
+
className: styles$i.thumb,
|
|
10466
10805
|
"aria-pressed": i === active,
|
|
10467
10806
|
"aria-label": t("Show image {0} of {1}", String(i + 1), String(media2.length)),
|
|
10468
10807
|
onClick: () => setActive(i),
|
|
@@ -10471,20 +10810,20 @@ function DesktopGallery({ media: media2, alt, badges: badges2, focus }) {
|
|
|
10471
10810
|
alt: "",
|
|
10472
10811
|
fill: true,
|
|
10473
10812
|
sizes: "72px",
|
|
10474
|
-
className: styles$
|
|
10813
|
+
className: styles$i.image
|
|
10475
10814
|
})
|
|
10476
10815
|
}, src))
|
|
10477
10816
|
}), jsxs("div", {
|
|
10478
|
-
className: styles$
|
|
10817
|
+
className: styles$i.main,
|
|
10479
10818
|
children: [shown ? jsx(ShopImage, {
|
|
10480
10819
|
src: shown,
|
|
10481
10820
|
alt: t("{0} — image {1} of {2}", alt, String(active + 1), String(media2.length)),
|
|
10482
10821
|
fill: true,
|
|
10483
10822
|
sizes: "440px",
|
|
10484
|
-
className: styles$
|
|
10823
|
+
className: styles$i.image,
|
|
10485
10824
|
priority: true
|
|
10486
10825
|
}) : null, jsx("div", {
|
|
10487
|
-
className: styles$
|
|
10826
|
+
className: styles$i.badges,
|
|
10488
10827
|
children: jsx(PdpBadges, {
|
|
10489
10828
|
badges: badges2
|
|
10490
10829
|
})
|
|
@@ -10517,7 +10856,7 @@ const fabric = "_fabric_r4azu_328";
|
|
|
10517
10856
|
const fabricLabel = "_fabricLabel_r4azu_336";
|
|
10518
10857
|
const fabricText = "_fabricText_r4azu_344";
|
|
10519
10858
|
const notes = "_notes_r4azu_355";
|
|
10520
|
-
const styles$
|
|
10859
|
+
const styles$h = {
|
|
10521
10860
|
scrim: scrim$3,
|
|
10522
10861
|
sheet: sheet$1,
|
|
10523
10862
|
body: body$3,
|
|
@@ -10571,12 +10910,12 @@ function SizeGuideSheet({ guide, onClose }) {
|
|
|
10571
10910
|
const shown = useMemo(() => authored && unit2 && unit2 !== authored ? rows.map((row2) => row2.map((cell) => convert(cell, authored, unit2))) : rows, [rows, authored, unit2]);
|
|
10572
10911
|
useModalDialog(true, onClose, sheetRef);
|
|
10573
10912
|
return jsx("div", {
|
|
10574
|
-
className: styles$
|
|
10913
|
+
className: styles$h.scrim,
|
|
10575
10914
|
onClick: onClose,
|
|
10576
10915
|
children: jsxs(ShopSurface, {
|
|
10577
10916
|
tone: "light",
|
|
10578
10917
|
ref: sheetRef,
|
|
10579
|
-
className: styles$
|
|
10918
|
+
className: styles$h.sheet,
|
|
10580
10919
|
role: "dialog",
|
|
10581
10920
|
"aria-modal": "true",
|
|
10582
10921
|
"aria-labelledby": "size-guide-title",
|
|
@@ -10585,36 +10924,36 @@ function SizeGuideSheet({ guide, onClose }) {
|
|
|
10585
10924
|
onClose,
|
|
10586
10925
|
closeLabel: t("Close size guide")
|
|
10587
10926
|
}), jsxs("div", {
|
|
10588
|
-
className: styles$
|
|
10927
|
+
className: styles$h.body,
|
|
10589
10928
|
children: [jsxs("div", {
|
|
10590
|
-
className: styles$
|
|
10929
|
+
className: styles$h.titles,
|
|
10591
10930
|
children: [jsx("h2", {
|
|
10592
10931
|
id: "size-guide-title",
|
|
10593
|
-
className: styles$
|
|
10932
|
+
className: styles$h.title,
|
|
10594
10933
|
children: guide.title
|
|
10595
10934
|
}), guide.subtitle && jsx("p", {
|
|
10596
|
-
className: styles$
|
|
10935
|
+
className: styles$h.subtitle,
|
|
10597
10936
|
children: guide.subtitle
|
|
10598
10937
|
})]
|
|
10599
10938
|
}), hasTable && authored && unit2 && jsx("div", {
|
|
10600
|
-
className: styles$
|
|
10939
|
+
className: styles$h.units,
|
|
10601
10940
|
role: "radiogroup",
|
|
10602
10941
|
"aria-label": t("Measurement unit"),
|
|
10603
10942
|
children: [authored, otherUnit(authored)].map((u) => jsx("button", {
|
|
10604
10943
|
type: "button",
|
|
10605
10944
|
role: "radio",
|
|
10606
10945
|
"aria-checked": u === unit2,
|
|
10607
|
-
className: `${styles$
|
|
10946
|
+
className: `${styles$h.unit} ${u === unit2 ? styles$h.unitOn : styles$h.unitOff}`,
|
|
10608
10947
|
onClick: () => setUnit(u),
|
|
10609
10948
|
children: UNIT_LABEL[u]
|
|
10610
10949
|
}, u))
|
|
10611
10950
|
}), hasTable && jsx("div", {
|
|
10612
|
-
className: styles$
|
|
10951
|
+
className: styles$h.tableWrap,
|
|
10613
10952
|
children: jsxs("table", {
|
|
10614
|
-
className: styles$
|
|
10953
|
+
className: styles$h.table,
|
|
10615
10954
|
children: [jsx("colgroup", {
|
|
10616
10955
|
children: columns.map((c, i) => jsx("col", {
|
|
10617
|
-
className: i === 0 || i === columns.length - 1 ? styles$
|
|
10956
|
+
className: i === 0 || i === columns.length - 1 ? styles$h.colEdge : styles$h.col
|
|
10618
10957
|
}, c))
|
|
10619
10958
|
}), jsx("thead", {
|
|
10620
10959
|
children: jsx("tr", {
|
|
@@ -10635,39 +10974,39 @@ function SizeGuideSheet({ guide, onClose }) {
|
|
|
10635
10974
|
})]
|
|
10636
10975
|
})
|
|
10637
10976
|
}), guide.note && jsx("p", {
|
|
10638
|
-
className: styles$
|
|
10977
|
+
className: styles$h.note,
|
|
10639
10978
|
children: guide.note
|
|
10640
10979
|
}), measurements.length > 0 && jsxs("section", {
|
|
10641
|
-
className: styles$
|
|
10980
|
+
className: styles$h.how,
|
|
10642
10981
|
"aria-labelledby": "size-guide-how",
|
|
10643
10982
|
children: [jsx("h3", {
|
|
10644
10983
|
id: "size-guide-how",
|
|
10645
|
-
className: styles$
|
|
10984
|
+
className: styles$h.howTitle,
|
|
10646
10985
|
children: t("How to measure")
|
|
10647
10986
|
}), jsx("dl", {
|
|
10648
|
-
className: styles$
|
|
10987
|
+
className: styles$h.howList,
|
|
10649
10988
|
children: measurements.map((m) => jsxs("div", {
|
|
10650
|
-
className: styles$
|
|
10989
|
+
className: styles$h.howItem,
|
|
10651
10990
|
children: [jsx("dt", {
|
|
10652
|
-
className: styles$
|
|
10991
|
+
className: styles$h.howLabel,
|
|
10653
10992
|
children: m.label
|
|
10654
10993
|
}), jsx("dd", {
|
|
10655
|
-
className: styles$
|
|
10994
|
+
className: styles$h.howText,
|
|
10656
10995
|
children: m.description
|
|
10657
10996
|
})]
|
|
10658
10997
|
}, m.label))
|
|
10659
10998
|
})]
|
|
10660
10999
|
}), guide.fabric && jsxs("div", {
|
|
10661
|
-
className: styles$
|
|
11000
|
+
className: styles$h.fabric,
|
|
10662
11001
|
children: [jsx("p", {
|
|
10663
|
-
className: styles$
|
|
11002
|
+
className: styles$h.fabricLabel,
|
|
10664
11003
|
children: t("Fabric")
|
|
10665
11004
|
}), jsx("p", {
|
|
10666
|
-
className: styles$
|
|
11005
|
+
className: styles$h.fabricText,
|
|
10667
11006
|
children: guide.fabric
|
|
10668
11007
|
})]
|
|
10669
11008
|
}), notes2.length > 0 && jsx("ul", {
|
|
10670
|
-
className: styles$
|
|
11009
|
+
className: styles$h.notes,
|
|
10671
11010
|
children: notes2.map((n) => jsx("li", {
|
|
10672
11011
|
children: n
|
|
10673
11012
|
}, n))
|
|
@@ -10676,18 +11015,18 @@ function SizeGuideSheet({ guide, onClose }) {
|
|
|
10676
11015
|
})
|
|
10677
11016
|
});
|
|
10678
11017
|
}
|
|
10679
|
-
const root$2 = "
|
|
10680
|
-
const header$3 = "
|
|
10681
|
-
const title$9 = "
|
|
10682
|
-
const chips = "
|
|
10683
|
-
const chip = "
|
|
10684
|
-
const selected$2 = "
|
|
10685
|
-
const disabled$1 = "
|
|
10686
|
-
const lowStock = "
|
|
10687
|
-
const error = "
|
|
10688
|
-
const sizeGuide = "
|
|
10689
|
-
const info = "
|
|
10690
|
-
const styles$
|
|
11018
|
+
const root$2 = "_root_u44hz_1";
|
|
11019
|
+
const header$3 = "_header_u44hz_11";
|
|
11020
|
+
const title$9 = "_title_u44hz_18";
|
|
11021
|
+
const chips = "_chips_u44hz_26";
|
|
11022
|
+
const chip = "_chip_u44hz_26";
|
|
11023
|
+
const selected$2 = "_selected_u44hz_50";
|
|
11024
|
+
const disabled$1 = "_disabled_u44hz_62";
|
|
11025
|
+
const lowStock = "_lowStock_u44hz_74";
|
|
11026
|
+
const error = "_error_u44hz_84";
|
|
11027
|
+
const sizeGuide = "_sizeGuide_u44hz_93";
|
|
11028
|
+
const info = "_info_u44hz_117";
|
|
11029
|
+
const styles$g = {
|
|
10691
11030
|
root: root$2,
|
|
10692
11031
|
header: header$3,
|
|
10693
11032
|
title: title$9,
|
|
@@ -10705,22 +11044,22 @@ function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: err
|
|
|
10705
11044
|
const [guideOpen, setGuideOpen] = useState(false);
|
|
10706
11045
|
const showGuide = useShopFeatures().sizeCharts && guide !== void 0;
|
|
10707
11046
|
return jsxs("section", {
|
|
10708
|
-
className: styles$
|
|
11047
|
+
className: styles$g.root,
|
|
10709
11048
|
"aria-labelledby": "size-heading",
|
|
10710
11049
|
children: [jsxs("div", {
|
|
10711
|
-
className: styles$
|
|
11050
|
+
className: styles$g.header,
|
|
10712
11051
|
children: [jsx("h2", {
|
|
10713
11052
|
id: "size-heading",
|
|
10714
|
-
className: styles$
|
|
11053
|
+
className: styles$g.title,
|
|
10715
11054
|
children: t("Size")
|
|
10716
11055
|
}), showGuide && jsxs("button", {
|
|
10717
11056
|
type: "button",
|
|
10718
|
-
className: styles$
|
|
11057
|
+
className: styles$g.sizeGuide,
|
|
10719
11058
|
onClick: () => setGuideOpen(true),
|
|
10720
11059
|
"aria-haspopup": "dialog",
|
|
10721
11060
|
"aria-expanded": guideOpen,
|
|
10722
11061
|
children: [t("Size guide"), jsxs("svg", {
|
|
10723
|
-
className: styles$
|
|
11062
|
+
className: styles$g.info,
|
|
10724
11063
|
width: "12",
|
|
10725
11064
|
height: "12",
|
|
10726
11065
|
viewBox: "0 0 12 12",
|
|
@@ -10746,7 +11085,7 @@ function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: err
|
|
|
10746
11085
|
})]
|
|
10747
11086
|
})]
|
|
10748
11087
|
}), jsx("div", {
|
|
10749
|
-
className: styles$
|
|
11088
|
+
className: styles$g.chips,
|
|
10750
11089
|
role: "radiogroup",
|
|
10751
11090
|
"aria-label": t("Size"),
|
|
10752
11091
|
"aria-required": "true",
|
|
@@ -10759,7 +11098,7 @@ function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: err
|
|
|
10759
11098
|
"aria-checked": isSelected,
|
|
10760
11099
|
"aria-disabled": disabled2 || void 0,
|
|
10761
11100
|
disabled: disabled2,
|
|
10762
|
-
className: [styles$
|
|
11101
|
+
className: [styles$g.chip, isSelected ? styles$g.selected : "", disabled2 ? styles$g.disabled : ""].filter(Boolean).join(" "),
|
|
10763
11102
|
onClick: () => !disabled2 && onSelect(size.value),
|
|
10764
11103
|
children: [size.value, disabled2 && jsx("span", {
|
|
10765
11104
|
className: "visually-hidden",
|
|
@@ -10768,11 +11107,11 @@ function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: err
|
|
|
10768
11107
|
}, size.value);
|
|
10769
11108
|
})
|
|
10770
11109
|
}), error2 && jsx("p", {
|
|
10771
|
-
className: styles$
|
|
11110
|
+
className: styles$g.error,
|
|
10772
11111
|
role: "alert",
|
|
10773
11112
|
children: t("Please select a size")
|
|
10774
11113
|
}), lowStock2 && !error2 && jsx("p", {
|
|
10775
|
-
className: styles$
|
|
11114
|
+
className: styles$g.lowStock,
|
|
10776
11115
|
role: "status",
|
|
10777
11116
|
children: lowStock2
|
|
10778
11117
|
}), showGuide && guideOpen && jsx(SizeGuideSheet, {
|
|
@@ -10793,7 +11132,7 @@ const image$4 = "_image_1h4ny_64";
|
|
|
10793
11132
|
const placeholder = "_placeholder_1h4ny_68";
|
|
10794
11133
|
const scrim$2 = "_scrim_1h4ny_76";
|
|
10795
11134
|
const stockBadge = "_stockBadge_1h4ny_95";
|
|
10796
|
-
const styles$
|
|
11135
|
+
const styles$f = {
|
|
10797
11136
|
root: root$1,
|
|
10798
11137
|
header: header$2,
|
|
10799
11138
|
title: title$8,
|
|
@@ -10810,20 +11149,20 @@ const styles$g = {
|
|
|
10810
11149
|
function ColorSelector({ colours, selected: selected2, onSelect }) {
|
|
10811
11150
|
const t = useT();
|
|
10812
11151
|
return jsxs("section", {
|
|
10813
|
-
className: styles$
|
|
11152
|
+
className: styles$f.root,
|
|
10814
11153
|
"aria-labelledby": "colour-heading",
|
|
10815
11154
|
children: [jsxs("p", {
|
|
10816
|
-
className: styles$
|
|
11155
|
+
className: styles$f.header,
|
|
10817
11156
|
children: [jsx("span", {
|
|
10818
11157
|
id: "colour-heading",
|
|
10819
|
-
className: styles$
|
|
11158
|
+
className: styles$f.title,
|
|
10820
11159
|
children: "Color:"
|
|
10821
11160
|
}), " ", jsx("span", {
|
|
10822
|
-
className: styles$
|
|
11161
|
+
className: styles$f.value,
|
|
10823
11162
|
children: selected2 ?? "Select"
|
|
10824
11163
|
})]
|
|
10825
11164
|
}), jsx("div", {
|
|
10826
|
-
className: styles$
|
|
11165
|
+
className: styles$f.tiles,
|
|
10827
11166
|
role: "radiogroup",
|
|
10828
11167
|
"aria-label": t("Color"),
|
|
10829
11168
|
"aria-required": "true",
|
|
@@ -10836,26 +11175,26 @@ function ColorSelector({ colours, selected: selected2, onSelect }) {
|
|
|
10836
11175
|
role: "radio",
|
|
10837
11176
|
"aria-checked": isSelected,
|
|
10838
11177
|
"aria-label": `${c.value}${soldOut ? " (out of stock)" : ""}`,
|
|
10839
|
-
className: [styles$
|
|
11178
|
+
className: [styles$f.tile, isSelected ? styles$f.selected : ""].filter(Boolean).join(" "),
|
|
10840
11179
|
onClick: () => onSelect(c.value),
|
|
10841
11180
|
children: [jsxs("span", {
|
|
10842
|
-
className: styles$
|
|
11181
|
+
className: styles$f.media,
|
|
10843
11182
|
children: [c.image ? jsx(ShopImage, {
|
|
10844
11183
|
src: c.image,
|
|
10845
11184
|
alt: "",
|
|
10846
11185
|
fill: true,
|
|
10847
11186
|
sizes: "79px",
|
|
10848
|
-
className: styles$
|
|
11187
|
+
className: styles$f.image
|
|
10849
11188
|
}) : jsx("span", {
|
|
10850
|
-
className: styles$
|
|
11189
|
+
className: styles$f.placeholder,
|
|
10851
11190
|
"aria-hidden": "true"
|
|
10852
11191
|
}), soldOut && jsx("span", {
|
|
10853
|
-
className: styles$
|
|
11192
|
+
className: styles$f.scrim,
|
|
10854
11193
|
"aria-hidden": "true",
|
|
10855
11194
|
children: t("Out of stock")
|
|
10856
11195
|
})]
|
|
10857
11196
|
}), lowStock2 && jsx("span", {
|
|
10858
|
-
className: styles$
|
|
11197
|
+
className: styles$f.stockBadge,
|
|
10859
11198
|
"aria-hidden": "true",
|
|
10860
11199
|
children: t("{0} left", c.remaining)
|
|
10861
11200
|
})]
|
|
@@ -10870,7 +11209,7 @@ const options = "_options_1mnz1_16";
|
|
|
10870
11209
|
const option = "_option_1mnz1_16";
|
|
10871
11210
|
const selected = "_selected_1mnz1_36";
|
|
10872
11211
|
const disabled = "_disabled_1mnz1_42";
|
|
10873
|
-
const styles$
|
|
11212
|
+
const styles$e = {
|
|
10874
11213
|
fieldset,
|
|
10875
11214
|
legend,
|
|
10876
11215
|
options,
|
|
@@ -10888,12 +11227,12 @@ function VariantSelector({ variants, selectedSku, onSelect, labelAttribute }) {
|
|
|
10888
11227
|
return values.length > 0 ? values.join(" · ") : variant.sku;
|
|
10889
11228
|
}
|
|
10890
11229
|
return jsxs("fieldset", {
|
|
10891
|
-
className: styles$
|
|
11230
|
+
className: styles$e.fieldset,
|
|
10892
11231
|
children: [jsx("legend", {
|
|
10893
|
-
className: styles$
|
|
11232
|
+
className: styles$e.legend,
|
|
10894
11233
|
children: t("Select an option")
|
|
10895
11234
|
}), jsx("div", {
|
|
10896
|
-
className: styles$
|
|
11235
|
+
className: styles$e.options,
|
|
10897
11236
|
role: "radiogroup",
|
|
10898
11237
|
"aria-label": t("Variant"),
|
|
10899
11238
|
children: variants.map((variant) => {
|
|
@@ -10905,7 +11244,7 @@ function VariantSelector({ variants, selectedSku, onSelect, labelAttribute }) {
|
|
|
10905
11244
|
"aria-checked": selected2,
|
|
10906
11245
|
"aria-disabled": disabled2 || void 0,
|
|
10907
11246
|
disabled: disabled2,
|
|
10908
|
-
className: [styles$
|
|
11247
|
+
className: [styles$e.option, selected2 ? styles$e.selected : "", disabled2 ? styles$e.disabled : ""].filter(Boolean).join(" "),
|
|
10909
11248
|
onClick: () => !disabled2 && onSelect(variant.sku),
|
|
10910
11249
|
children: [labelFor2(variant), disabled2 && jsx("span", {
|
|
10911
11250
|
className: "visually-hidden",
|
|
@@ -10916,14 +11255,14 @@ function VariantSelector({ variants, selectedSku, onSelect, labelAttribute }) {
|
|
|
10916
11255
|
})]
|
|
10917
11256
|
});
|
|
10918
11257
|
}
|
|
10919
|
-
const root = "
|
|
10920
|
-
const group = "
|
|
10921
|
-
const title$7 = "
|
|
10922
|
-
const body$2 = "
|
|
10923
|
-
const paragraph = "
|
|
10924
|
-
const clamped = "
|
|
10925
|
-
const toggle = "
|
|
10926
|
-
const styles$
|
|
11258
|
+
const root = "_root_1gy1f_2";
|
|
11259
|
+
const group = "_group_1gy1f_8";
|
|
11260
|
+
const title$7 = "_title_1gy1f_14";
|
|
11261
|
+
const body$2 = "_body_1gy1f_22";
|
|
11262
|
+
const paragraph = "_paragraph_1gy1f_26";
|
|
11263
|
+
const clamped = "_clamped_1gy1f_46";
|
|
11264
|
+
const toggle = "_toggle_1gy1f_58";
|
|
11265
|
+
const styles$d = {
|
|
10927
11266
|
root,
|
|
10928
11267
|
group,
|
|
10929
11268
|
title: title$7,
|
|
@@ -10944,7 +11283,11 @@ function ProductDetails({ description: description2 }) {
|
|
|
10944
11283
|
if (expanded) return;
|
|
10945
11284
|
const el = bodyRef.current;
|
|
10946
11285
|
if (!el) return;
|
|
10947
|
-
const measure = () =>
|
|
11286
|
+
const measure = () => {
|
|
11287
|
+
const first = el.firstElementChild;
|
|
11288
|
+
const firstClipped = first ? first.scrollHeight - first.clientHeight > 1 : false;
|
|
11289
|
+
setClipped(firstClipped || el.scrollHeight - el.clientHeight > 1);
|
|
11290
|
+
};
|
|
10948
11291
|
measure();
|
|
10949
11292
|
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(measure);
|
|
10950
11293
|
observer?.observe(el);
|
|
@@ -10961,25 +11304,25 @@ function ProductDetails({ description: description2 }) {
|
|
|
10961
11304
|
const t = useT();
|
|
10962
11305
|
if (paragraphs.length === 0) return null;
|
|
10963
11306
|
return jsxs("section", {
|
|
10964
|
-
className: styles$
|
|
11307
|
+
className: styles$d.root,
|
|
10965
11308
|
"aria-labelledby": "details-heading",
|
|
10966
11309
|
children: [jsxs("div", {
|
|
10967
|
-
className: styles$
|
|
11310
|
+
className: styles$d.group,
|
|
10968
11311
|
children: [jsx("h2", {
|
|
10969
11312
|
id: "details-heading",
|
|
10970
|
-
className: styles$
|
|
11313
|
+
className: styles$d.title,
|
|
10971
11314
|
children: t("Product details")
|
|
10972
11315
|
}), jsx("div", {
|
|
10973
11316
|
ref: bodyRef,
|
|
10974
|
-
className: [styles$
|
|
11317
|
+
className: [styles$d.body, expanded ? "" : styles$d.clamped].join(" "),
|
|
10975
11318
|
children: paragraphs.map((p) => jsx("p", {
|
|
10976
|
-
className: styles$
|
|
11319
|
+
className: styles$d.paragraph,
|
|
10977
11320
|
children: p
|
|
10978
11321
|
}, p))
|
|
10979
11322
|
})]
|
|
10980
11323
|
}), clipped ? jsx("button", {
|
|
10981
11324
|
type: "button",
|
|
10982
|
-
className: styles$
|
|
11325
|
+
className: styles$d.toggle,
|
|
10983
11326
|
"aria-expanded": expanded,
|
|
10984
11327
|
onClick: () => setExpanded((v) => !v),
|
|
10985
11328
|
children: expanded ? t("Less") : t("more")
|
|
@@ -10990,7 +11333,7 @@ const banner = "_banner_1xvw4_2";
|
|
|
10990
11333
|
const message = "_message_1xvw4_14";
|
|
10991
11334
|
const icon$1 = "_icon_1xvw4_22";
|
|
10992
11335
|
const timer = "_timer_1xvw4_27";
|
|
10993
|
-
const styles$
|
|
11336
|
+
const styles$c = {
|
|
10994
11337
|
banner,
|
|
10995
11338
|
message,
|
|
10996
11339
|
icon: icon$1,
|
|
@@ -11014,11 +11357,11 @@ function PromoBanner({ promo: promo2 }) {
|
|
|
11014
11357
|
const remaining = promo2.ends_at && now !== null ? new Date(promo2.ends_at).getTime() - now : null;
|
|
11015
11358
|
const showTimer = remaining !== null && remaining > 0;
|
|
11016
11359
|
return jsxs("div", {
|
|
11017
|
-
className: styles$
|
|
11360
|
+
className: styles$c.banner,
|
|
11018
11361
|
children: [jsxs("span", {
|
|
11019
|
-
className: styles$
|
|
11362
|
+
className: styles$c.message,
|
|
11020
11363
|
children: [jsxs("svg", {
|
|
11021
|
-
className: styles$
|
|
11364
|
+
className: styles$c.icon,
|
|
11022
11365
|
width: "24",
|
|
11023
11366
|
height: "24",
|
|
11024
11367
|
viewBox: "0 0 24 24",
|
|
@@ -11040,7 +11383,7 @@ function PromoBanner({ promo: promo2 }) {
|
|
|
11040
11383
|
})]
|
|
11041
11384
|
}), promo2.message]
|
|
11042
11385
|
}), showTimer && jsxs("span", {
|
|
11043
|
-
className: styles$
|
|
11386
|
+
className: styles$c.timer,
|
|
11044
11387
|
children: [jsxs("svg", {
|
|
11045
11388
|
width: "16",
|
|
11046
11389
|
height: "16",
|
|
@@ -11074,14 +11417,14 @@ const availability = "_availability_1479k_55";
|
|
|
11074
11417
|
const low = "_low_1479k_62";
|
|
11075
11418
|
const oos = "_oos_1479k_66";
|
|
11076
11419
|
const breadcrumb = "_breadcrumb_1479k_70";
|
|
11077
|
-
const help
|
|
11420
|
+
const help = "_help_1479k_71";
|
|
11078
11421
|
const desktopGallery = "_desktopGallery_1479k_72";
|
|
11079
11422
|
const wide = "_wide_1479k_77";
|
|
11080
11423
|
const phoneGallery = "_phoneGallery_1479k_101";
|
|
11081
11424
|
const introBadges = "_introBadges_1479k_115";
|
|
11082
11425
|
const sizes = "_sizes_1479k_119";
|
|
11083
11426
|
const cta$2 = "_cta_1479k_123";
|
|
11084
|
-
const styles$
|
|
11427
|
+
const styles$b = {
|
|
11085
11428
|
page,
|
|
11086
11429
|
content,
|
|
11087
11430
|
intro,
|
|
@@ -11092,7 +11435,7 @@ const styles$c = {
|
|
|
11092
11435
|
low,
|
|
11093
11436
|
oos,
|
|
11094
11437
|
breadcrumb,
|
|
11095
|
-
help
|
|
11438
|
+
help,
|
|
11096
11439
|
desktopGallery,
|
|
11097
11440
|
wide,
|
|
11098
11441
|
phoneGallery,
|
|
@@ -11328,15 +11671,15 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11328
11671
|
return jsxs(ShopSurface, {
|
|
11329
11672
|
tone: "light",
|
|
11330
11673
|
fill: true,
|
|
11331
|
-
className: [styles$
|
|
11674
|
+
className: [styles$b.page, claim ? styles$b.wide : ""].join(" "),
|
|
11332
11675
|
...claim ? {
|
|
11333
11676
|
"data-shop-layout": "wide"
|
|
11334
11677
|
} : {},
|
|
11335
11678
|
children: [breadcrumb2 && jsx("div", {
|
|
11336
|
-
className: styles$
|
|
11679
|
+
className: styles$b.breadcrumb,
|
|
11337
11680
|
children: breadcrumb2
|
|
11338
11681
|
}), jsx("div", {
|
|
11339
|
-
className: styles$
|
|
11682
|
+
className: styles$b.phoneGallery,
|
|
11340
11683
|
children: jsx(MediaGallery, {
|
|
11341
11684
|
media: media2,
|
|
11342
11685
|
alt: product.title,
|
|
@@ -11345,7 +11688,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11345
11688
|
} : {}
|
|
11346
11689
|
})
|
|
11347
11690
|
}), claim && jsx("div", {
|
|
11348
|
-
className: styles$
|
|
11691
|
+
className: styles$b.desktopGallery,
|
|
11349
11692
|
children: jsx(DesktopGallery, {
|
|
11350
11693
|
media: media2,
|
|
11351
11694
|
alt: product.title,
|
|
@@ -11355,20 +11698,20 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11355
11698
|
} : {}
|
|
11356
11699
|
})
|
|
11357
11700
|
}), jsxs("div", {
|
|
11358
|
-
className: styles$
|
|
11701
|
+
className: styles$b.content,
|
|
11359
11702
|
children: [jsxs("div", {
|
|
11360
|
-
className: styles$
|
|
11703
|
+
className: styles$b.intro,
|
|
11361
11704
|
children: [jsx("div", {
|
|
11362
|
-
className: styles$
|
|
11705
|
+
className: styles$b.introBadges,
|
|
11363
11706
|
children: jsx(PdpBadges, {
|
|
11364
11707
|
badges: product.badges ?? []
|
|
11365
11708
|
})
|
|
11366
11709
|
}), jsxs("div", {
|
|
11367
|
-
className: styles$
|
|
11710
|
+
className: styles$b.productInfo,
|
|
11368
11711
|
children: [jsxs("div", {
|
|
11369
|
-
className: styles$
|
|
11712
|
+
className: styles$b.titlePrice,
|
|
11370
11713
|
children: [jsx("h1", {
|
|
11371
|
-
className: styles$
|
|
11714
|
+
className: styles$b.title,
|
|
11372
11715
|
children: product.title
|
|
11373
11716
|
}), jsx(PriceBlock, {
|
|
11374
11717
|
price: claim ? {
|
|
@@ -11385,7 +11728,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11385
11728
|
})]
|
|
11386
11729
|
})]
|
|
11387
11730
|
}), stockNotice && jsx("p", {
|
|
11388
|
-
className: [styles$
|
|
11731
|
+
className: [styles$b.availability, anyInStock ? styles$b.low : styles$b.oos].join(" "),
|
|
11389
11732
|
role: "status",
|
|
11390
11733
|
children: availabilityLabel
|
|
11391
11734
|
}), hasColours && jsx("div", {
|
|
@@ -11397,7 +11740,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11397
11740
|
})
|
|
11398
11741
|
}), hasSizes && jsx("div", {
|
|
11399
11742
|
ref: sizeRef,
|
|
11400
|
-
className: styles$
|
|
11743
|
+
className: styles$b.sizes,
|
|
11401
11744
|
children: jsx(SizeSelector, {
|
|
11402
11745
|
sizes: sizes2,
|
|
11403
11746
|
selected: selectedSize,
|
|
@@ -11420,10 +11763,10 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
|
|
|
11420
11763
|
inset: true
|
|
11421
11764
|
})]
|
|
11422
11765
|
}), jsx(StickyCtaBar, {
|
|
11423
|
-
className: styles$
|
|
11766
|
+
className: styles$b.cta,
|
|
11424
11767
|
children: cta2
|
|
11425
11768
|
}), help2 && jsx("div", {
|
|
11426
|
-
className: styles$
|
|
11769
|
+
className: styles$b.help,
|
|
11427
11770
|
children: help2
|
|
11428
11771
|
})]
|
|
11429
11772
|
});
|
|
@@ -11436,7 +11779,7 @@ const text$3 = "_text_1tiqx_108";
|
|
|
11436
11779
|
const title$5 = "_title_1tiqx_157";
|
|
11437
11780
|
const subtitle$2 = "_subtitle_1tiqx_168";
|
|
11438
11781
|
const noImage = "_noImage_1tiqx_183";
|
|
11439
|
-
const styles$
|
|
11782
|
+
const styles$a = {
|
|
11440
11783
|
hero: hero$2,
|
|
11441
11784
|
image: image$3,
|
|
11442
11785
|
scrim: scrim$1,
|
|
@@ -11452,10 +11795,10 @@ function PcpHero({ hero: hero2 }) {
|
|
|
11452
11795
|
const t = useT();
|
|
11453
11796
|
return jsxs("section", {
|
|
11454
11797
|
ref: heroRef,
|
|
11455
|
-
className: [styles$
|
|
11798
|
+
className: [styles$a.hero, hero2.image ? "" : styles$a.noImage].join(" "),
|
|
11456
11799
|
children: [hero2.image && jsxs(Fragment, {
|
|
11457
11800
|
children: [jsx("div", {
|
|
11458
|
-
className: styles$
|
|
11801
|
+
className: styles$a.image,
|
|
11459
11802
|
children: jsx(ShopImage, {
|
|
11460
11803
|
src: hero2.image,
|
|
11461
11804
|
alt: "",
|
|
@@ -11464,19 +11807,19 @@ function PcpHero({ hero: hero2 }) {
|
|
|
11464
11807
|
priority: true
|
|
11465
11808
|
})
|
|
11466
11809
|
}), jsx("div", {
|
|
11467
|
-
className: styles$
|
|
11810
|
+
className: styles$a.scrim,
|
|
11468
11811
|
"aria-hidden": "true"
|
|
11469
11812
|
}), jsx("div", {
|
|
11470
|
-
className: styles$
|
|
11813
|
+
className: styles$a.fade,
|
|
11471
11814
|
"aria-hidden": "true"
|
|
11472
11815
|
})]
|
|
11473
11816
|
}), jsxs("div", {
|
|
11474
|
-
className: styles$
|
|
11817
|
+
className: styles$a.text,
|
|
11475
11818
|
children: [jsx("h1", {
|
|
11476
|
-
className: styles$
|
|
11819
|
+
className: styles$a.title,
|
|
11477
11820
|
children: t(hero2.title)
|
|
11478
11821
|
}), hero2.subtitle && jsx("p", {
|
|
11479
|
-
className: styles$
|
|
11822
|
+
className: styles$a.subtitle,
|
|
11480
11823
|
children: t(hero2.subtitle)
|
|
11481
11824
|
})]
|
|
11482
11825
|
})]
|
|
@@ -11485,14 +11828,14 @@ function PcpHero({ hero: hero2 }) {
|
|
|
11485
11828
|
const text$2 = "_text_1saw4_6";
|
|
11486
11829
|
const center = "_center_1saw4_18";
|
|
11487
11830
|
const left = "_left_1saw4_23";
|
|
11488
|
-
const styles$
|
|
11831
|
+
const styles$9 = {
|
|
11489
11832
|
text: text$2,
|
|
11490
11833
|
center,
|
|
11491
11834
|
left
|
|
11492
11835
|
};
|
|
11493
11836
|
function LifestyleText({ text: text2, align = "center" }) {
|
|
11494
11837
|
return jsx("p", {
|
|
11495
|
-
className: [styles$
|
|
11838
|
+
className: [styles$9.text, align === "left" ? styles$9.left : styles$9.center].join(" "),
|
|
11496
11839
|
children: text2
|
|
11497
11840
|
});
|
|
11498
11841
|
}
|
|
@@ -11504,7 +11847,7 @@ const image$2 = "_image_79nr3_46";
|
|
|
11504
11847
|
const dots$1 = "_dots_79nr3_51";
|
|
11505
11848
|
const dot$1 = "_dot_79nr3_51";
|
|
11506
11849
|
const dotActive$1 = "_dotActive_79nr3_76";
|
|
11507
|
-
const styles$
|
|
11850
|
+
const styles$8 = {
|
|
11508
11851
|
wrap,
|
|
11509
11852
|
box,
|
|
11510
11853
|
track: track$1,
|
|
@@ -11528,36 +11871,36 @@ function LifestyleImage({ images, videos }) {
|
|
|
11528
11871
|
}, []);
|
|
11529
11872
|
if (images.length === 0) return null;
|
|
11530
11873
|
return jsx("div", {
|
|
11531
|
-
className: styles$
|
|
11874
|
+
className: styles$8.wrap,
|
|
11532
11875
|
children: jsxs("div", {
|
|
11533
|
-
className: styles$
|
|
11876
|
+
className: styles$8.box,
|
|
11534
11877
|
children: [jsx("ul", {
|
|
11535
|
-
className: styles$
|
|
11878
|
+
className: styles$8.track,
|
|
11536
11879
|
ref: trackRef,
|
|
11537
11880
|
children: images.map((src, i) => {
|
|
11538
11881
|
const clip = videos?.[i];
|
|
11539
11882
|
return jsx("li", {
|
|
11540
|
-
className: styles$
|
|
11883
|
+
className: styles$8.slide,
|
|
11541
11884
|
children: clip ? jsx(ShopVideo, {
|
|
11542
11885
|
src: clip,
|
|
11543
11886
|
poster: src,
|
|
11544
11887
|
fill: true,
|
|
11545
|
-
className: styles$
|
|
11888
|
+
className: styles$8.image
|
|
11546
11889
|
}) : jsx(ShopImage, {
|
|
11547
11890
|
src,
|
|
11548
11891
|
alt: "",
|
|
11549
11892
|
fill: true,
|
|
11550
11893
|
sizes: "(max-width: 480px) 100vw, 480px",
|
|
11551
|
-
className: styles$
|
|
11894
|
+
className: styles$8.image,
|
|
11552
11895
|
priority: i === 0
|
|
11553
11896
|
})
|
|
11554
11897
|
}, src);
|
|
11555
11898
|
})
|
|
11556
11899
|
}), images.length > 1 && jsx("div", {
|
|
11557
|
-
className: styles$
|
|
11900
|
+
className: styles$8.dots,
|
|
11558
11901
|
"aria-hidden": "true",
|
|
11559
11902
|
children: images.map((src, i) => jsx("span", {
|
|
11560
|
-
className: [styles$
|
|
11903
|
+
className: [styles$8.dot, i === active ? styles$8.dotActive : ""].join(" ")
|
|
11561
11904
|
}, src))
|
|
11562
11905
|
})]
|
|
11563
11906
|
})
|
|
@@ -11571,7 +11914,7 @@ const author = "_author_qsxtq_58";
|
|
|
11571
11914
|
const dots = "_dots_qsxtq_69";
|
|
11572
11915
|
const dot = "_dot_qsxtq_69";
|
|
11573
11916
|
const dotActive = "_dotActive_qsxtq_85";
|
|
11574
|
-
const styles$
|
|
11917
|
+
const styles$7 = {
|
|
11575
11918
|
section: section$2,
|
|
11576
11919
|
track,
|
|
11577
11920
|
card,
|
|
@@ -11595,26 +11938,26 @@ function ReviewCarousel({ quotes }) {
|
|
|
11595
11938
|
return () => track2.removeEventListener("scroll", onScroll);
|
|
11596
11939
|
}, []);
|
|
11597
11940
|
return jsxs("section", {
|
|
11598
|
-
className: styles$
|
|
11941
|
+
className: styles$7.section,
|
|
11599
11942
|
"aria-label": t("Reviews"),
|
|
11600
11943
|
children: [jsx("ul", {
|
|
11601
|
-
className: styles$
|
|
11944
|
+
className: styles$7.track,
|
|
11602
11945
|
ref: trackRef,
|
|
11603
11946
|
children: quotes.map((q, i) => jsxs("li", {
|
|
11604
|
-
className: styles$
|
|
11947
|
+
className: styles$7.card,
|
|
11605
11948
|
children: [jsxs("blockquote", {
|
|
11606
|
-
className: styles$
|
|
11949
|
+
className: styles$7.quote,
|
|
11607
11950
|
children: ["“", q.quote, "”"]
|
|
11608
11951
|
}), jsx("p", {
|
|
11609
|
-
className: styles$
|
|
11952
|
+
className: styles$7.author,
|
|
11610
11953
|
children: q.author
|
|
11611
11954
|
})]
|
|
11612
11955
|
}, i))
|
|
11613
11956
|
}), quotes.length > 1 && jsx("div", {
|
|
11614
|
-
className: styles$
|
|
11957
|
+
className: styles$7.dots,
|
|
11615
11958
|
"aria-hidden": "true",
|
|
11616
11959
|
children: quotes.map((_, i) => jsx("span", {
|
|
11617
|
-
className: [styles$
|
|
11960
|
+
className: [styles$7.dot, i === active ? styles$7.dotActive : ""].join(" ")
|
|
11618
11961
|
}, i))
|
|
11619
11962
|
})]
|
|
11620
11963
|
});
|
|
@@ -11623,7 +11966,7 @@ const section$1 = "_section_1nrsi_1";
|
|
|
11623
11966
|
const row$2 = "_row_1nrsi_9";
|
|
11624
11967
|
const title$4 = "_title_1nrsi_20";
|
|
11625
11968
|
const body$1 = "_body_1nrsi_43";
|
|
11626
|
-
const styles$
|
|
11969
|
+
const styles$6 = {
|
|
11627
11970
|
section: section$1,
|
|
11628
11971
|
row: row$2,
|
|
11629
11972
|
title: title$4,
|
|
@@ -11632,15 +11975,15 @@ const styles$7 = {
|
|
|
11632
11975
|
function WhyUs({ items: items2 }) {
|
|
11633
11976
|
const t = useT();
|
|
11634
11977
|
return jsx("section", {
|
|
11635
|
-
className: styles$
|
|
11978
|
+
className: styles$6.section,
|
|
11636
11979
|
"aria-label": t("Why shop with us"),
|
|
11637
11980
|
children: items2.map((it, i) => jsxs("div", {
|
|
11638
|
-
className: styles$
|
|
11981
|
+
className: styles$6.row,
|
|
11639
11982
|
children: [jsx("p", {
|
|
11640
|
-
className: styles$
|
|
11983
|
+
className: styles$6.title,
|
|
11641
11984
|
children: it.title
|
|
11642
11985
|
}), jsx("p", {
|
|
11643
|
-
className: styles$
|
|
11986
|
+
className: styles$6.body,
|
|
11644
11987
|
children: it.body
|
|
11645
11988
|
})]
|
|
11646
11989
|
}, i))
|
|
@@ -11650,7 +11993,7 @@ const section = "_section_snuuj_1";
|
|
|
11650
11993
|
const title$3 = "_title_snuuj_10";
|
|
11651
11994
|
const list$1 = "_list_snuuj_17";
|
|
11652
11995
|
const row$1 = "_row_snuuj_32";
|
|
11653
|
-
const styles$
|
|
11996
|
+
const styles$5 = {
|
|
11654
11997
|
section,
|
|
11655
11998
|
title: title$3,
|
|
11656
11999
|
list: list$1,
|
|
@@ -11659,17 +12002,17 @@ const styles$6 = {
|
|
|
11659
12002
|
function ExploreList({ title: title2, links }) {
|
|
11660
12003
|
const t = useT();
|
|
11661
12004
|
return jsxs("section", {
|
|
11662
|
-
className: styles$
|
|
12005
|
+
className: styles$5.section,
|
|
11663
12006
|
"aria-label": title2,
|
|
11664
12007
|
children: [jsx("h2", {
|
|
11665
|
-
className: styles$
|
|
12008
|
+
className: styles$5.title,
|
|
11666
12009
|
children: title2
|
|
11667
12010
|
}), jsx("ul", {
|
|
11668
|
-
className: styles$
|
|
12011
|
+
className: styles$5.list,
|
|
11669
12012
|
children: links.map((l) => jsx("li", {
|
|
11670
12013
|
children: jsxs(ShopLink, {
|
|
11671
12014
|
to: `/category/${encodeURIComponent(l.code)}`,
|
|
11672
|
-
className: styles$
|
|
12015
|
+
className: styles$5.row,
|
|
11673
12016
|
children: [jsx("span", {
|
|
11674
12017
|
children: t(l.label)
|
|
11675
12018
|
}), jsx("svg", {
|
|
@@ -11697,7 +12040,7 @@ const featured = "_featured_1kft8_36";
|
|
|
11697
12040
|
const gridBlock = "_gridBlock_1kft8_37";
|
|
11698
12041
|
const blockTitle = "_blockTitle_1kft8_44";
|
|
11699
12042
|
const grid = "_grid_1kft8_37";
|
|
11700
|
-
const styles$
|
|
12043
|
+
const styles$4 = {
|
|
11701
12044
|
pcp,
|
|
11702
12045
|
blocks,
|
|
11703
12046
|
featured,
|
|
@@ -11720,9 +12063,9 @@ function Block({ block }) {
|
|
|
11720
12063
|
});
|
|
11721
12064
|
case "featured":
|
|
11722
12065
|
return jsxs("div", {
|
|
11723
|
-
className: styles$
|
|
12066
|
+
className: styles$4.featured,
|
|
11724
12067
|
children: [block.title && jsx("h2", {
|
|
11725
|
-
className: styles$
|
|
12068
|
+
className: styles$4.blockTitle,
|
|
11726
12069
|
children: t(block.title)
|
|
11727
12070
|
}), jsx(ProductTile, {
|
|
11728
12071
|
product: block.product,
|
|
@@ -11742,12 +12085,12 @@ function Block({ block }) {
|
|
|
11742
12085
|
});
|
|
11743
12086
|
case "grid":
|
|
11744
12087
|
return jsxs("div", {
|
|
11745
|
-
className: styles$
|
|
12088
|
+
className: styles$4.gridBlock,
|
|
11746
12089
|
children: [block.title && jsx("h2", {
|
|
11747
|
-
className: styles$
|
|
12090
|
+
className: styles$4.blockTitle,
|
|
11748
12091
|
children: t(block.title)
|
|
11749
12092
|
}), jsx("ul", {
|
|
11750
|
-
className: styles$
|
|
12093
|
+
className: styles$4.grid,
|
|
11751
12094
|
children: block.products.map((p) => jsx("li", {
|
|
11752
12095
|
children: jsx(ProductTile, {
|
|
11753
12096
|
product: p
|
|
@@ -11776,11 +12119,11 @@ function CategoryContent({ page: page2 }) {
|
|
|
11776
12119
|
return jsxs(ShopSurface, {
|
|
11777
12120
|
tone: "dark",
|
|
11778
12121
|
fill: true,
|
|
11779
|
-
className: styles$
|
|
12122
|
+
className: styles$4.pcp,
|
|
11780
12123
|
children: [jsx(PcpHero, {
|
|
11781
12124
|
hero: page2.hero
|
|
11782
12125
|
}), jsx("div", {
|
|
11783
|
-
className: styles$
|
|
12126
|
+
className: styles$4.blocks,
|
|
11784
12127
|
children: page2.blocks.map((block, i) => jsx(Block, {
|
|
11785
12128
|
block
|
|
11786
12129
|
}, i))
|
|
@@ -11966,7 +12309,7 @@ const cta$1 = "_cta_dctyt_79";
|
|
|
11966
12309
|
const video = "_video_dctyt_83";
|
|
11967
12310
|
const desktopOnly = "_desktopOnly_dctyt_87";
|
|
11968
12311
|
const phoneOnly = "_phoneOnly_dctyt_97";
|
|
11969
|
-
const styles$
|
|
12312
|
+
const styles$3 = {
|
|
11970
12313
|
hero: hero$1,
|
|
11971
12314
|
image: image$1,
|
|
11972
12315
|
foot,
|
|
@@ -11994,9 +12337,9 @@ function VipHero({ hero: hero2, onContinue }) {
|
|
|
11994
12337
|
"data-shop-layout": "wide",
|
|
11995
12338
|
children: jsxs("section", {
|
|
11996
12339
|
ref,
|
|
11997
|
-
className: styles$
|
|
12340
|
+
className: styles$3.hero,
|
|
11998
12341
|
children: [hero2.image && jsx("div", {
|
|
11999
|
-
className: [styles$
|
|
12342
|
+
className: [styles$3.image, wide2 ? styles$3.phoneOnly : ""].join(" "),
|
|
12000
12343
|
children: jsx(ShopImage, {
|
|
12001
12344
|
src: hero2.image,
|
|
12002
12345
|
alt: "",
|
|
@@ -12005,7 +12348,7 @@ function VipHero({ hero: hero2, onContinue }) {
|
|
|
12005
12348
|
priority: true
|
|
12006
12349
|
})
|
|
12007
12350
|
}), wide2 && jsxs("div", {
|
|
12008
|
-
className: [styles$
|
|
12351
|
+
className: [styles$3.image, styles$3.desktopOnly].join(" "),
|
|
12009
12352
|
children: [desktopImage && jsx(ShopImage, {
|
|
12010
12353
|
src: desktopImage,
|
|
12011
12354
|
alt: "",
|
|
@@ -12017,28 +12360,28 @@ function VipHero({ hero: hero2, onContinue }) {
|
|
|
12017
12360
|
poster: desktopImage
|
|
12018
12361
|
} : {},
|
|
12019
12362
|
fill: true,
|
|
12020
|
-
className: styles$
|
|
12363
|
+
className: styles$3.video
|
|
12021
12364
|
})]
|
|
12022
12365
|
}), jsxs("div", {
|
|
12023
|
-
className: styles$
|
|
12366
|
+
className: styles$3.foot,
|
|
12024
12367
|
children: [jsxs("div", {
|
|
12025
|
-
className: styles$
|
|
12368
|
+
className: styles$3.text,
|
|
12026
12369
|
children: [jsx("img", {
|
|
12027
12370
|
src: assetUrl("/figma/home/dazn-logo.svg"),
|
|
12028
12371
|
alt: t("DAZN"),
|
|
12029
|
-
className: styles$
|
|
12372
|
+
className: styles$3.logo
|
|
12030
12373
|
}), jsxs("div", {
|
|
12031
|
-
className: styles$
|
|
12374
|
+
className: styles$3.copy,
|
|
12032
12375
|
children: [jsx("h1", {
|
|
12033
|
-
className: styles$
|
|
12376
|
+
className: styles$3.headline,
|
|
12034
12377
|
children: hero2.headline
|
|
12035
12378
|
}), hero2.body && jsx("p", {
|
|
12036
|
-
className: styles$
|
|
12379
|
+
className: styles$3.body,
|
|
12037
12380
|
children: hero2.body
|
|
12038
12381
|
})]
|
|
12039
12382
|
})]
|
|
12040
12383
|
}), jsx("div", {
|
|
12041
|
-
className: styles$
|
|
12384
|
+
className: styles$3.cta,
|
|
12042
12385
|
children: jsx(Button, {
|
|
12043
12386
|
variant: "primary",
|
|
12044
12387
|
fullWidth: true,
|
|
@@ -12050,81 +12393,6 @@ function VipHero({ hero: hero2, onContinue }) {
|
|
|
12050
12393
|
})
|
|
12051
12394
|
});
|
|
12052
12395
|
}
|
|
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
12396
|
function VipLandingView({ token, onUnavailable, onHelp }) {
|
|
12129
12397
|
const t = useT();
|
|
12130
12398
|
const { api, emit } = useShop();
|