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