@faststore/core 3.0.21 → 3.0.22
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +89 -90
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_ybd91x +1 -0
- package/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/.next/cache/webpack/client-development/1.pack.gz +0 -0
- package/.next/cache/webpack/client-development/10.pack.gz +0 -0
- package/.next/cache/webpack/client-development/11.pack.gz +0 -0
- package/.next/cache/webpack/client-development/2.pack.gz +0 -0
- package/.next/cache/webpack/client-development/3.pack.gz +0 -0
- package/.next/cache/webpack/client-development/4.pack.gz +0 -0
- package/.next/cache/webpack/client-development/5.pack.gz +0 -0
- package/.next/cache/webpack/client-development/6.pack.gz +0 -0
- package/.next/cache/webpack/client-development/7.pack.gz +0 -0
- package/.next/cache/webpack/client-development/8.pack.gz +0 -0
- package/.next/cache/webpack/client-development/9.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/1.pack +0 -0
- package/.next/cache/webpack/client-production/10.pack +0 -0
- package/.next/cache/webpack/client-production/2.pack +0 -0
- package/.next/cache/webpack/client-production/3.pack +0 -0
- package/.next/cache/webpack/client-production/4.pack +0 -0
- package/.next/cache/webpack/client-production/5.pack +0 -0
- package/.next/cache/webpack/client-production/6.pack +0 -0
- package/.next/cache/webpack/client-production/7.pack +0 -0
- package/.next/cache/webpack/client-production/8.pack +0 -0
- package/.next/cache/webpack/client-production/9.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/server-development/0.pack.gz +0 -0
- package/.next/cache/webpack/server-development/1.pack.gz +0 -0
- package/.next/cache/webpack/server-development/10.pack.gz +0 -0
- package/.next/cache/webpack/server-development/11.pack.gz +0 -0
- package/.next/cache/webpack/server-development/12.pack.gz +0 -0
- package/.next/cache/webpack/server-development/2.pack.gz +0 -0
- package/.next/cache/webpack/server-development/3.pack.gz +0 -0
- package/.next/cache/webpack/server-development/4.pack.gz +0 -0
- package/.next/cache/webpack/server-development/5.pack.gz +0 -0
- package/.next/cache/webpack/server-development/6.pack.gz +0 -0
- package/.next/cache/webpack/server-development/7.pack.gz +0 -0
- package/.next/cache/webpack/server-development/8.pack.gz +0 -0
- package/.next/cache/webpack/server-development/9.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz +0 -0
- package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/1.pack +0 -0
- package/.next/cache/webpack/server-production/2.pack +0 -0
- package/.next/cache/webpack/server-production/3.pack +0 -0
- package/.next/cache/webpack/server-production/4.pack +0 -0
- package/.next/cache/webpack/server-production/5.pack +0 -0
- package/.next/cache/webpack/server-production/6.pack +0 -0
- package/.next/cache/webpack/server-production/7.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/images-manifest.json +1 -1
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -0
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +18 -18
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/119.js +1 -0
- package/.next/server/chunks/12.js +1 -0
- package/.next/server/chunks/187.js +1 -0
- package/.next/server/chunks/202.js +1 -0
- package/.next/server/chunks/24.js +1 -0
- package/.next/server/chunks/242.js +1 -0
- package/.next/server/chunks/247.js +1 -0
- package/.next/server/chunks/344.js +1 -0
- package/.next/server/chunks/404.js +1 -434
- package/.next/server/chunks/414.js +1 -0
- package/.next/server/chunks/484.js +1 -0
- package/.next/server/chunks/493.js +1 -0
- package/.next/server/chunks/498.js +1 -0
- package/.next/server/chunks/540.js +1 -0
- package/.next/server/chunks/57.js +1 -434
- package/.next/server/chunks/624.js +1 -0
- package/.next/server/chunks/640.js +6 -0
- package/.next/server/chunks/646.js +292 -0
- package/.next/server/chunks/659.js +9 -0
- package/.next/server/chunks/679.js +1 -0
- package/.next/server/chunks/693.js +1 -58
- package/.next/server/chunks/694.js +1 -0
- package/.next/server/chunks/779.js +1 -58
- package/.next/server/chunks/82.js +8 -0
- package/.next/server/chunks/857.js +1 -0
- package/.next/server/chunks/859.js +4 -957
- package/.next/server/chunks/881.js +1 -0
- package/.next/server/chunks/917.js +1 -0
- package/.next/server/chunks/936.js +1 -0
- package/.next/server/chunks/96.js +1 -0
- package/.next/server/chunks/997.js +1 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.js +1 -391
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +1 -395
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1076
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +1 -2265
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +1 -301
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +1 -363
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +1 -164
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/account.js +1 -370
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +1 -2999
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/health/live.js +1 -31
- package/.next/server/pages/api/health/live.js.nft.json +1 -1
- package/.next/server/pages/api/health/ready.js +1 -31
- package/.next/server/pages/api/health/ready.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js +1 -137
- package/.next/server/pages/api/preview.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -370
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/account.json +1 -1
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/checkout.json +1 -1
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US/s.json +1 -1
- package/.next/server/pages/en-US.html +5 -5
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages/index.js +1 -439
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +1 -382
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +1 -554
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -18
- package/.next/server/webpack-api-runtime.js +1 -229
- package/.next/server/webpack-runtime.js +1 -229
- package/.next/static/KHfUTI2LyBArHphiJspvQ/_buildManifest.js +1 -0
- package/.next/static/chunks/104-407fa6e31258582b.js +1 -0
- package/.next/static/chunks/161-b39fe2f79ff7bc85.js +1 -0
- package/.next/static/chunks/202.c7d8a71173edecfb.js +1 -0
- package/.next/static/chunks/217.01bc0ad07edd6f1b.js +1 -0
- package/.next/static/chunks/247.6f1391104a867395.js +1 -0
- package/.next/static/chunks/484.b82b73b1d8c37e02.js +1 -0
- package/.next/static/chunks/540.6c62d2536d42a1e0.js +1 -0
- package/.next/static/chunks/575-853fb8b1ba4ce8c4.js +14 -0
- package/.next/static/chunks/624.d3de62b4562a33f3.js +1 -0
- package/.next/static/chunks/629-c74f247bd29420a5.js +1 -0
- package/.next/static/chunks/65.da22595d53beae76.js +1 -0
- package/.next/static/chunks/758.b53ee01b506973e0.js +1 -0
- package/.next/static/chunks/857.d2299cfe995af21d.js +1 -0
- package/.next/static/chunks/framework-8e279965036b6169.js +33 -0
- package/.next/static/chunks/main-6f63f6746cc029db.js +1 -0
- package/.next/static/chunks/pages/404-1334d11ab8467b3d.js +1 -0
- package/.next/static/chunks/pages/500-449c5bd51f98423f.js +1 -0
- package/.next/static/chunks/pages/[...slug]-bcaf61b01157d8cb.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-5fb8fe2c80ec1608.js +1 -0
- package/.next/static/chunks/pages/_app-ad8623e78bc5b766.js +68 -0
- package/.next/static/chunks/pages/_error-fbf331a03642b495.js +1 -0
- package/.next/static/chunks/pages/account-dbc5c028225cd1ac.js +1 -0
- package/.next/static/chunks/pages/checkout-29ae2c37eaf172e1.js +1 -0
- package/.next/static/chunks/pages/index-cd109119d65df8e3.js +1 -0
- package/.next/static/chunks/pages/login-c4d2c856008df5ac.js +1 -0
- package/.next/static/chunks/pages/s-26e475975386c51a.js +1 -0
- package/.next/static/chunks/webpack-f3be21bc483182aa.js +1 -0
- package/.next/static/css/0d45c82d8887a269.css +1 -0
- package/.next/static/css/211c7542af66d8b4.css +1 -0
- package/.next/static/css/{df588bb98c0b0ca6.css → 2980acad3f8e1028.css} +1 -1
- package/.next/static/css/4c4d90eb8cb1d2b7.css +1 -0
- package/.next/static/css/821a5219786be653.css +1 -0
- package/.next/static/css/96e3fddf695d6aa9.css +1 -0
- package/.next/static/css/{6a7fdc5a21fbead5.css → b9d9ba1b04f3160d.css} +1 -1
- package/.next/static/css/cff9aafa16fccc9c.css +1 -0
- package/.next/static/css/{a2eefb25a4608343.css → d586715f4f707df4.css} +1 -1
- package/.next/static/css/{cb7d1fcea42fab9c.css → e32410b31c666cb2.css} +1 -1
- package/.next/trace +6 -80
- package/@generated/persisted-documents.json +13 -0
- package/@generated/schema.graphql +1067 -0
- package/package.json +3 -4
- package/.next/cache/eslint/.cache_abdhua +0 -1
- package/.next/cache/next-server.js.nft.json +0 -1
- package/.next/cache/webpack/client-development/0.pack +0 -0
- package/.next/cache/webpack/client-development/1.pack +0 -0
- package/.next/cache/webpack/client-development/2.pack +0 -0
- package/.next/cache/webpack/client-development/index.pack +0 -0
- package/.next/cache/webpack/client-development/index.pack.old +0 -0
- package/.next/cache/webpack/server-development/0.pack +0 -0
- package/.next/cache/webpack/server-development/1.pack +0 -0
- package/.next/cache/webpack/server-development/2.pack +0 -0
- package/.next/cache/webpack/server-development/3.pack +0 -0
- package/.next/cache/webpack/server-development/4.pack +0 -0
- package/.next/cache/webpack/server-development/index.pack +0 -0
- package/.next/cache/webpack/server-development/index.pack.old +0 -0
- package/.next/server/chunks/117.js +0 -430
- package/.next/server/chunks/177.js +0 -125
- package/.next/server/chunks/183.js +0 -122
- package/.next/server/chunks/184.js +0 -61
- package/.next/server/chunks/289.js +0 -240
- package/.next/server/chunks/312.js +0 -678
- package/.next/server/chunks/350.js +0 -2834
- package/.next/server/chunks/386.js +0 -200
- package/.next/server/chunks/390.js +0 -550
- package/.next/server/chunks/398.js +0 -611
- package/.next/server/chunks/53.js +0 -61
- package/.next/server/chunks/574.js +0 -145
- package/.next/server/chunks/576.js +0 -122
- package/.next/server/chunks/585.js +0 -640
- package/.next/server/chunks/676.js +0 -32
- package/.next/server/chunks/732.js +0 -1881
- package/.next/server/chunks/74.js +0 -4066
- package/.next/server/chunks/825.js +0 -4074
- package/.next/server/chunks/854.js +0 -72
- package/.next/server/chunks/863.js +0 -111
- package/.next/server/chunks/979.js +0 -1305
- package/.next/server/chunks/98.js +0 -163
- package/.next/server/chunks/988.js +0 -211
- package/.next/static/HI-kc1kjNIbFyFsZCeDEA/_buildManifest.js +0 -1
- package/.next/static/chunks/223-cb77217cce52d45c.js +0 -1
- package/.next/static/chunks/251.1c79f06f2a2814b1.js +0 -1
- package/.next/static/chunks/386.d01e0db26c523f0f.js +0 -1
- package/.next/static/chunks/400-d4daabcd57b2ea80.js +0 -1
- package/.next/static/chunks/469-7259b855711d4ad3.js +0 -1
- package/.next/static/chunks/574.70612be06fd1365f.js +0 -1
- package/.next/static/chunks/585.4c5d40fc6a72a611.js +0 -1
- package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
- package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
- package/.next/static/chunks/783-fbcb7a3216c40744.js +0 -1
- package/.next/static/chunks/800.ee4f8b9622001e8c.js +0 -1
- package/.next/static/chunks/98.40c7e17d9de4eb8f.js +0 -1
- package/.next/static/chunks/988.afda042dd9ba11d1.js +0 -1
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
- package/.next/static/chunks/main-e4e873ee741162eb.js +0 -1
- package/.next/static/chunks/pages/404-2240f0b22db2d370.js +0 -1
- package/.next/static/chunks/pages/500-c0580e3299329874.js +0 -1
- package/.next/static/chunks/pages/[...slug]-3eed3497c887fae5.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-e1df08570f34a0d8.js +0 -1
- package/.next/static/chunks/pages/_app-30b9666307e4b3b1.js +0 -1
- package/.next/static/chunks/pages/_error-319451dea77827a6.js +0 -1
- package/.next/static/chunks/pages/account-b35bcbef719765f3.js +0 -1
- package/.next/static/chunks/pages/checkout-55bd56ade4408cbe.js +0 -1
- package/.next/static/chunks/pages/index-2506749e45c335bf.js +0 -1
- package/.next/static/chunks/pages/login-3f94bff1503b4fdc.js +0 -1
- package/.next/static/chunks/pages/s-2374cff2e39ed624.js +0 -1
- package/.next/static/chunks/webpack-af94306e71c4459d.js +0 -1
- package/.next/static/css/29868543c76bc6fd.css +0 -1
- package/.next/static/css/527e334fa69cf40a.css +0 -1
- package/.next/static/css/723835bce380750d.css +0 -1
- package/.next/static/css/d7bbfbd552f407e9.css +0 -1
- package/.next/static/css/dfbdb0f27fd64782.css +0 -1
- package/.next/static/css/e84fc497732ea596.css +0 -1
- package/.turbo/turbo-build.log +0 -65
- package/.turbo/turbo-dev.log +0 -45
- /package/.next/static/{HI-kc1kjNIbFyFsZCeDEA → KHfUTI2LyBArHphiJspvQ}/_ssgManifest.js +0 -0
|
@@ -1,2265 +1 @@
|
|
|
1
|
-
(() => {
|
|
2
|
-
var exports = {};
|
|
3
|
-
exports.id = 103;
|
|
4
|
-
exports.ids = [103];
|
|
5
|
-
exports.modules = {
|
|
6
|
-
|
|
7
|
-
/***/ 2951:
|
|
8
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
9
|
-
|
|
10
|
-
"use strict";
|
|
11
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
12
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14
|
-
/* harmony export */ });
|
|
15
|
-
/* harmony import */ var src_components_sections_BannerText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7599);
|
|
16
|
-
/* harmony import */ var src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8170);
|
|
17
|
-
/* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3271);
|
|
18
|
-
/* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5411);
|
|
19
|
-
/* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_section_module_scss__WEBPACK_IMPORTED_MODULE_2__);
|
|
20
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997);
|
|
21
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
22
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_4__]);
|
|
23
|
-
src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_4__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function BannerNewsletter({
|
|
32
|
-
banner,
|
|
33
|
-
newsletter
|
|
34
|
-
}) {
|
|
35
|
-
return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Section__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
|
|
36
|
-
className: `${(_section_module_scss__WEBPACK_IMPORTED_MODULE_2___default().section)} section-banner-newsletter`,
|
|
37
|
-
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
38
|
-
"data-fs-banner-text-newsletter": true,
|
|
39
|
-
"data-fs-content": "banner-newsletter",
|
|
40
|
-
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(src_components_sections_BannerText__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
|
41
|
-
title: banner.title,
|
|
42
|
-
caption: banner.caption,
|
|
43
|
-
link: banner?.link,
|
|
44
|
-
variant: banner.variant,
|
|
45
|
-
colorVariant: banner.colorVariant
|
|
46
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
|
|
47
|
-
title: newsletter.title,
|
|
48
|
-
description: newsletter.description,
|
|
49
|
-
icon: newsletter.icon,
|
|
50
|
-
privacyPolicy: newsletter.privacyPolicy,
|
|
51
|
-
emailInputLabel: newsletter.emailInputLabel,
|
|
52
|
-
displayNameInput: newsletter.displayNameInput,
|
|
53
|
-
nameInputLabel: newsletter.nameInputLabel,
|
|
54
|
-
subscribeButtonLabel: newsletter.subscribeButtonLabel,
|
|
55
|
-
toastSubscribe: newsletter.toastSubscribe,
|
|
56
|
-
toastSubscribeError: newsletter.toastSubscribeError,
|
|
57
|
-
card: newsletter.card
|
|
58
|
-
})]
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BannerNewsletter);
|
|
64
|
-
__webpack_async_result__();
|
|
65
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
66
|
-
|
|
67
|
-
/***/ }),
|
|
68
|
-
|
|
69
|
-
/***/ 994:
|
|
70
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
71
|
-
|
|
72
|
-
"use strict";
|
|
73
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
74
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
75
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
76
|
-
/* harmony export */ });
|
|
77
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
78
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
79
|
-
/* harmony import */ var src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7691);
|
|
80
|
-
/* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9785);
|
|
81
|
-
/* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__);
|
|
82
|
-
/* harmony import */ var src_sdk_overrides_PageProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5953);
|
|
83
|
-
/* harmony import */ var _ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6627);
|
|
84
|
-
/* harmony import */ var _ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
85
|
-
/* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3271);
|
|
86
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(997);
|
|
87
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
|
|
88
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_6__]);
|
|
89
|
-
src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_6__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
const CrossSellingShelf = ({
|
|
99
|
-
numberOfItems,
|
|
100
|
-
itemsPerPage,
|
|
101
|
-
title,
|
|
102
|
-
kind
|
|
103
|
-
}) => {
|
|
104
|
-
const {
|
|
105
|
-
ref,
|
|
106
|
-
inView
|
|
107
|
-
} = (0,react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__.useInView)();
|
|
108
|
-
const context = (0,src_sdk_overrides_PageProvider__WEBPACK_IMPORTED_MODULE_3__/* .usePDP */ .al)();
|
|
109
|
-
const productGroupID = context?.data?.product?.isVariantOf?.productGroupID;
|
|
110
|
-
const selectedFacets = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => [{
|
|
111
|
-
key: kind,
|
|
112
|
-
value: productGroupID
|
|
113
|
-
}], [kind, productGroupID]);
|
|
114
|
-
return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx(_Section__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
|
|
115
|
-
className: `${(_ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5___default().section)} section-product-shelf layout__section`,
|
|
116
|
-
ref: ref,
|
|
117
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx(src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
|
|
118
|
-
inView: inView,
|
|
119
|
-
numberOfItems: numberOfItems,
|
|
120
|
-
itemsPerPage: itemsPerPage,
|
|
121
|
-
title: title,
|
|
122
|
-
selectedFacets: selectedFacets
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CrossSellingShelf);
|
|
128
|
-
__webpack_async_result__();
|
|
129
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
130
|
-
|
|
131
|
-
/***/ }),
|
|
132
|
-
|
|
133
|
-
/***/ 2694:
|
|
134
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
135
|
-
|
|
136
|
-
"use strict";
|
|
137
|
-
|
|
138
|
-
// EXPORTS
|
|
139
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
140
|
-
"Z": () => (/* binding */ ProductDetails_ProductDetails)
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
// UNUSED EXPORTS: fragment
|
|
144
|
-
|
|
145
|
-
// EXTERNAL MODULE: external "react"
|
|
146
|
-
var external_react_ = __webpack_require__(6689);
|
|
147
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
148
|
-
// EXTERNAL MODULE: ../sdk/dist/analytics/sendAnalyticsEvent.js
|
|
149
|
-
var sendAnalyticsEvent = __webpack_require__(1072);
|
|
150
|
-
// EXTERNAL MODULE: ./src/sdk/product/useFormattedPrice.ts
|
|
151
|
-
var useFormattedPrice = __webpack_require__(5346);
|
|
152
|
-
// EXTERNAL MODULE: ./src/sdk/session/index.ts + 1 modules
|
|
153
|
-
var session = __webpack_require__(7295);
|
|
154
|
-
// EXTERNAL MODULE: ./src/components/sections/Section/Section.tsx
|
|
155
|
-
var Section = __webpack_require__(3271);
|
|
156
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/Accordion/Accordion.js
|
|
157
|
-
var Accordion = __webpack_require__(1516);
|
|
158
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/Accordion/AccordionItem.js
|
|
159
|
-
var AccordionItem = __webpack_require__(783);
|
|
160
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/Accordion/AccordionButton.js
|
|
161
|
-
var AccordionButton = __webpack_require__(7734);
|
|
162
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/Accordion/AccordionPanel.js
|
|
163
|
-
var AccordionPanel = __webpack_require__(7583);
|
|
164
|
-
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
165
|
-
var jsx_runtime_ = __webpack_require__(997);
|
|
166
|
-
;// CONCATENATED MODULE: ./src/components/ui/ProductDescription/ProductDescription.tsx
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
function ProductDescription({
|
|
173
|
-
descriptionData,
|
|
174
|
-
initiallyExpanded = 'first'
|
|
175
|
-
}) {
|
|
176
|
-
/**
|
|
177
|
-
* Maps 'initiallyExpanded' prop values to indices
|
|
178
|
-
*/
|
|
179
|
-
const INITIALLY_EXPANDED_MAP = (0,external_react_.useMemo)(() => ({
|
|
180
|
-
none: [],
|
|
181
|
-
first: [0],
|
|
182
|
-
all: [0, 1, 2, 3]
|
|
183
|
-
}), []);
|
|
184
|
-
const {
|
|
185
|
-
0: indices,
|
|
186
|
-
1: setIndices
|
|
187
|
-
} = (0,external_react_.useState)(new Set(INITIALLY_EXPANDED_MAP[initiallyExpanded]));
|
|
188
|
-
|
|
189
|
-
const onChange = index => {
|
|
190
|
-
setIndices(currentIndices => {
|
|
191
|
-
const newIndices = new Set(currentIndices);
|
|
192
|
-
|
|
193
|
-
if (currentIndices.has(index)) {
|
|
194
|
-
newIndices.delete(index);
|
|
195
|
-
} else {
|
|
196
|
-
newIndices.add(index);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return newIndices;
|
|
200
|
-
});
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
return /*#__PURE__*/jsx_runtime_.jsx("section", {
|
|
204
|
-
"data-fs-product-description": true,
|
|
205
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(Accordion/* default */.Z, {
|
|
206
|
-
indices: indices,
|
|
207
|
-
onChange: onChange,
|
|
208
|
-
"aria-label": "Product Details Content",
|
|
209
|
-
children: descriptionData.map(({
|
|
210
|
-
title,
|
|
211
|
-
content
|
|
212
|
-
}, index) => /*#__PURE__*/(0,jsx_runtime_.jsxs)(AccordionItem/* default */.Z, {
|
|
213
|
-
as: "article",
|
|
214
|
-
index: index,
|
|
215
|
-
prefixId: "product-description",
|
|
216
|
-
"data-fs-product-details-description": true,
|
|
217
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx(AccordionButton/* default */.Z, {
|
|
218
|
-
children: title
|
|
219
|
-
}), /*#__PURE__*/jsx_runtime_.jsx(AccordionPanel/* default */.Z, {
|
|
220
|
-
children: /*#__PURE__*/jsx_runtime_.jsx("div", {
|
|
221
|
-
// Applies display: contents through FastStore UI
|
|
222
|
-
"data-fs-product-details-description-content": true // The content is already sanitized by FastStore API
|
|
223
|
-
,
|
|
224
|
-
dangerouslySetInnerHTML: {
|
|
225
|
-
__html: content
|
|
226
|
-
}
|
|
227
|
-
})
|
|
228
|
-
})]
|
|
229
|
-
}, String(index)))
|
|
230
|
-
})
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* harmony default export */ const ProductDescription_ProductDescription = (ProductDescription);
|
|
235
|
-
// EXTERNAL MODULE: ../components/dist/esm/hooks/UIProvider.js
|
|
236
|
-
var UIProvider = __webpack_require__(6652);
|
|
237
|
-
// EXTERNAL MODULE: ./src/sdk/cart/index.ts + 1 modules
|
|
238
|
-
var cart = __webpack_require__(6073);
|
|
239
|
-
;// CONCATENATED MODULE: ./src/sdk/cart/useBuyButton.ts
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const useBuyButton = item => {
|
|
246
|
-
const {
|
|
247
|
-
openCart
|
|
248
|
-
} = (0,UIProvider/* useUI */.l)();
|
|
249
|
-
const {
|
|
250
|
-
currency: {
|
|
251
|
-
code
|
|
252
|
-
}
|
|
253
|
-
} = (0,session/* useSession */.kP)();
|
|
254
|
-
const onClick = (0,external_react_.useCallback)(e => {
|
|
255
|
-
e.preventDefault();
|
|
256
|
-
|
|
257
|
-
if (!item) {
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
(0,sendAnalyticsEvent/* sendAnalyticsEvent */._)({
|
|
262
|
-
name: 'add_to_cart',
|
|
263
|
-
params: {
|
|
264
|
-
currency: code,
|
|
265
|
-
// TODO: In the future, we can explore more robust ways of
|
|
266
|
-
// calculating the value (gift items, discounts, etc.).
|
|
267
|
-
value: item.price * item.quantity,
|
|
268
|
-
items: [{
|
|
269
|
-
item_id: item.itemOffered.isVariantOf.productGroupID,
|
|
270
|
-
item_name: item.itemOffered.isVariantOf.name,
|
|
271
|
-
item_brand: item.itemOffered.brand.name,
|
|
272
|
-
item_variant: item.itemOffered.sku,
|
|
273
|
-
quantity: item.quantity,
|
|
274
|
-
price: item.price,
|
|
275
|
-
discount: item.listPrice - item.price,
|
|
276
|
-
currency: code,
|
|
277
|
-
item_variant_name: item.itemOffered.name,
|
|
278
|
-
product_reference_id: item.itemOffered.gtin
|
|
279
|
-
}]
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
cart/* cartStore.addItem */.i8.addItem(item);
|
|
283
|
-
openCart();
|
|
284
|
-
}, [code, item, openCart]);
|
|
285
|
-
return {
|
|
286
|
-
onClick,
|
|
287
|
-
'data-testid': 'buy-button',
|
|
288
|
-
'data-sku': item?.itemOffered.sku,
|
|
289
|
-
'data-seller': item?.seller.identifier
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
// EXTERNAL MODULE: ./node_modules/next/link.js
|
|
293
|
-
var next_link = __webpack_require__(1664);
|
|
294
|
-
var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
|
|
295
|
-
// EXTERNAL MODULE: ./src/components/ui/Image/Image.tsx + 1 modules
|
|
296
|
-
var Image = __webpack_require__(5731);
|
|
297
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/Rating/Rating.js
|
|
298
|
-
var Rating = __webpack_require__(3024);
|
|
299
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/ProductTitle/ProductTitle.js
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
const ProductTitle = (0,external_react_.forwardRef)(function ProductTitle({ title, label, refTag = 'Ref.: ', refNumber, testId = 'fs-product-title', ratingValue, ...otherProps }, ref) {
|
|
303
|
-
return (external_react_default().createElement("header", { ref: ref, "data-fs-product-title": true, "data-testid": testId, ...otherProps },
|
|
304
|
-
external_react_default().createElement("div", { "data-fs-product-title-header": true },
|
|
305
|
-
title,
|
|
306
|
-
!!label && label),
|
|
307
|
-
(refNumber || ratingValue) && (external_react_default().createElement("div", { "data-fs-product-title-addendum": true },
|
|
308
|
-
ratingValue && external_react_default().createElement(Rating/* default */.Z, { value: ratingValue }),
|
|
309
|
-
refNumber && (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
310
|
-
refTag,
|
|
311
|
-
" ",
|
|
312
|
-
refNumber))))));
|
|
313
|
-
});
|
|
314
|
-
/* harmony default export */ const ProductTitle_ProductTitle = (ProductTitle);
|
|
315
|
-
//# sourceMappingURL=ProductTitle.js.map
|
|
316
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/DiscountBadge/DiscountBadge.js + 1 modules
|
|
317
|
-
var DiscountBadge = __webpack_require__(2946);
|
|
318
|
-
// EXTERNAL MODULE: ../components/dist/esm/atoms/Button/Button.js
|
|
319
|
-
var Button = __webpack_require__(3339);
|
|
320
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/BuyButton/BuyButton.js
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
function BuyButton({ testId = 'fs-buy-button', icon, children, ...otherProps }) {
|
|
324
|
-
return (external_react_default().createElement(Button/* default */.Z, { "data-fs-buy-button": true, icon: icon, iconPosition: "left", "data-testid": testId, ...otherProps }, children));
|
|
325
|
-
}
|
|
326
|
-
/* harmony default export */ const BuyButton_BuyButton = (BuyButton);
|
|
327
|
-
//# sourceMappingURL=BuyButton.js.map
|
|
328
|
-
// EXTERNAL MODULE: ../components/dist/esm/atoms/Icon/Icon.js
|
|
329
|
-
var Icon = __webpack_require__(2614);
|
|
330
|
-
// EXTERNAL MODULE: ../components/dist/esm/atoms/Price/Price.js
|
|
331
|
-
var Price = __webpack_require__(9767);
|
|
332
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/QuantitySelector/QuantitySelector.js
|
|
333
|
-
var QuantitySelector = __webpack_require__(6693);
|
|
334
|
-
// EXTERNAL MODULE: ../components/dist/esm/atoms/Label/Label.js
|
|
335
|
-
var Label = __webpack_require__(1953);
|
|
336
|
-
// EXTERNAL MODULE: ../components/dist/esm/atoms/Link/Link.js
|
|
337
|
-
var Link = __webpack_require__(727);
|
|
338
|
-
// EXTERNAL MODULE: ../components/dist/esm/atoms/SROnly/SROnly.js
|
|
339
|
-
var SROnly = __webpack_require__(5450);
|
|
340
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/SkuSelector/useDefineVariant.js
|
|
341
|
-
|
|
342
|
-
const getImageName = (src) => {
|
|
343
|
-
const sourcePath = new URL(src).pathname;
|
|
344
|
-
const imageName = sourcePath.split('/').slice(-1)[0];
|
|
345
|
-
return imageName;
|
|
346
|
-
};
|
|
347
|
-
const useDefineVariant = (options, variant) => (0,external_react_.useMemo)(() => {
|
|
348
|
-
if (variant)
|
|
349
|
-
return variant;
|
|
350
|
-
const allOptionsHaveHexColor = options.every((option) => option.hexColor);
|
|
351
|
-
if (allOptionsHaveHexColor) {
|
|
352
|
-
return 'color';
|
|
353
|
-
}
|
|
354
|
-
const firstImageName = options[0]?.src && getImageName(options[0].src);
|
|
355
|
-
const areSourcesEqualsOrNull = options.every((option) => {
|
|
356
|
-
if (!option.src) {
|
|
357
|
-
return true;
|
|
358
|
-
}
|
|
359
|
-
const optionImageName = getImageName(option.src);
|
|
360
|
-
return optionImageName === firstImageName;
|
|
361
|
-
});
|
|
362
|
-
if (!areSourcesEqualsOrNull) {
|
|
363
|
-
return 'image';
|
|
364
|
-
}
|
|
365
|
-
return 'label';
|
|
366
|
-
}, [options, variant]);
|
|
367
|
-
//# sourceMappingURL=useDefineVariant.js.map
|
|
368
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/SkuSelector/useSkuSlug.js
|
|
369
|
-
|
|
370
|
-
function getSkuSlug(slugsMap, selectedVariations, dominantVariation) {
|
|
371
|
-
const slugsMapKey = Object.entries(selectedVariations).flat().join('-');
|
|
372
|
-
if (slugsMapKey in slugsMap) {
|
|
373
|
-
return slugsMap[slugsMapKey];
|
|
374
|
-
}
|
|
375
|
-
const possibleVariants = Object.keys(slugsMap);
|
|
376
|
-
const firstVariationForDominantValue = possibleVariants.find((slug) => slug.includes(`${dominantVariation}-${selectedVariations[dominantVariation]}`));
|
|
377
|
-
return slugsMap[firstVariationForDominantValue ?? possibleVariants[0]];
|
|
378
|
-
}
|
|
379
|
-
const useSkuSlug = (activeVariations, slugsMap, skuPropertyName, getItemHrefProp) => {
|
|
380
|
-
const getItemHref = (0,external_react_.useCallback)((option) => {
|
|
381
|
-
if (getItemHrefProp)
|
|
382
|
-
return { getItemHrefProp };
|
|
383
|
-
const currentItemHref = `/${getSkuSlug(slugsMap, {
|
|
384
|
-
...activeVariations,
|
|
385
|
-
[skuPropertyName]: option.value,
|
|
386
|
-
}, skuPropertyName)}/p`;
|
|
387
|
-
return currentItemHref;
|
|
388
|
-
}, [activeVariations, getItemHrefProp, slugsMap, skuPropertyName]);
|
|
389
|
-
return { getItemHref };
|
|
390
|
-
};
|
|
391
|
-
//# sourceMappingURL=useSkuSlug.js.map
|
|
392
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/SkuSelector/SkuSelector.js
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
// TODO: Change by ImageComponent when it be right
|
|
398
|
-
const ImageComponentFallback = ({ src, alt, ...otherProps }) => external_react_default().createElement("img", { src: src, alt: alt, ...otherProps });
|
|
399
|
-
const SkuSelector = (0,external_react_.forwardRef)(function SkuSelector({ availableVariations, skuPropertyName, testId, activeVariations, linkProps, slugsMap, getItemHref: getItemHrefProp, ImageComponent = ImageComponentFallback, variant: variantProp, ...otherProps }, ref) {
|
|
400
|
-
const activeSelectorValue = activeVariations[skuPropertyName];
|
|
401
|
-
const options = availableVariations[skuPropertyName];
|
|
402
|
-
const variant = useDefineVariant(options, variantProp);
|
|
403
|
-
const { getItemHref } = useSkuSlug(activeVariations, slugsMap, skuPropertyName, getItemHrefProp);
|
|
404
|
-
return (external_react_default().createElement("div", { ref: ref, "data-fs-sku-selector": true, "data-testid": testId, "data-fs-sku-selector-variant": variant, ...otherProps },
|
|
405
|
-
skuPropertyName && (external_react_default().createElement(Label/* default */.Z, { "data-fs-sku-selector-title": true },
|
|
406
|
-
skuPropertyName,
|
|
407
|
-
": ",
|
|
408
|
-
external_react_default().createElement("strong", null, activeSelectorValue))),
|
|
409
|
-
external_react_default().createElement("ul", { "data-fs-sku-selector-list": true }, options.map((option, index) => {
|
|
410
|
-
return (external_react_default().createElement("li", { key: String(index), title: option.label, "data-fs-sku-selector-option": true, "data-fs-sku-selector-disabled": option.disabled, "data-fs-sku-selector-checked": option.value === activeVariations[skuPropertyName] },
|
|
411
|
-
external_react_default().createElement(Link/* default */.Z, { "data-fs-sku-selector-option-link": true, href: getItemHref(option), ...linkProps },
|
|
412
|
-
external_react_default().createElement(SROnly/* default */.Z, { text: option.label })),
|
|
413
|
-
variant === 'label' && external_react_default().createElement("span", null, option.value),
|
|
414
|
-
variant === 'image' && ImageComponent && (external_react_default().createElement("span", null,
|
|
415
|
-
external_react_default().createElement(ImageComponent, { src: option.src ?? '', alt: option.alt ?? '', "data-fs-sku-selector-option-image": true }))),
|
|
416
|
-
variant === 'color' && (external_react_default().createElement("span", null,
|
|
417
|
-
external_react_default().createElement("div", { "data-fs-sku-selector-option-color": true, title: option.value, style: {
|
|
418
|
-
'--data-fs-sku-selector-option-color-bkg-color': option.hexColor,
|
|
419
|
-
} })))));
|
|
420
|
-
}))));
|
|
421
|
-
});
|
|
422
|
-
/* harmony default export */ const SkuSelector_SkuSelector = (SkuSelector);
|
|
423
|
-
//# sourceMappingURL=SkuSelector.js.map
|
|
424
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/InputField/InputField.js
|
|
425
|
-
var InputField = __webpack_require__(3779);
|
|
426
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/Table/Table.js
|
|
427
|
-
|
|
428
|
-
const Table = (0,external_react_.forwardRef)(function Table({ children, variant = 'colored', testId = 'fs-table', ...otherProps }, ref) {
|
|
429
|
-
return (external_react_default().createElement("div", { "data-fs-table": true },
|
|
430
|
-
external_react_default().createElement("table", { ref: ref, "data-fs-table-content": true, "data-fs-table-variant": variant, "data-testid": testId, ...otherProps }, children)));
|
|
431
|
-
});
|
|
432
|
-
/* harmony default export */ const Table_Table = (Table);
|
|
433
|
-
//# sourceMappingURL=Table.js.map
|
|
434
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/Table/TableBody.js
|
|
435
|
-
|
|
436
|
-
const TableBody = (0,external_react_.forwardRef)(function TableBody({ children, testId = 'fs-table-body', ...otherProps }, ref) {
|
|
437
|
-
return (external_react_default().createElement("tbody", { ref: ref, "data-testid": testId, "data-fs-table-body": true, ...otherProps }, children));
|
|
438
|
-
});
|
|
439
|
-
/* harmony default export */ const Table_TableBody = (TableBody);
|
|
440
|
-
//# sourceMappingURL=TableBody.js.map
|
|
441
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/Table/TableRow.js
|
|
442
|
-
|
|
443
|
-
const TableRow = (0,external_react_.forwardRef)(function TableRow({ children, testId = 'fs-table-row', ...otherProps }, ref) {
|
|
444
|
-
return (external_react_default().createElement("tr", { ref: ref, "data-fs-table-row": true, "data-testid": testId, ...otherProps }, children));
|
|
445
|
-
});
|
|
446
|
-
/* harmony default export */ const Table_TableRow = (TableRow);
|
|
447
|
-
//# sourceMappingURL=TableRow.js.map
|
|
448
|
-
;// CONCATENATED MODULE: ../components/dist/esm/molecules/Table/TableCell.js
|
|
449
|
-
|
|
450
|
-
const TableCell = (0,external_react_.forwardRef)(function TableCell({ scope, align, children, variant = 'data', testId = 'fs-table-cell', ...otherProps }, ref) {
|
|
451
|
-
const Cell = variant === 'header' ? 'th' : 'td';
|
|
452
|
-
return (external_react_default().createElement(Cell, { ref: ref, "data-fs-table-cell": variant, "data-fs-table-cell-align": align, "data-testid": testId, scope: scope, ...otherProps }, children));
|
|
453
|
-
});
|
|
454
|
-
/* harmony default export */ const Table_TableCell = (TableCell);
|
|
455
|
-
//# sourceMappingURL=TableCell.js.map
|
|
456
|
-
;// CONCATENATED MODULE: ../components/dist/esm/organisms/ShippingSimulation/ShippingSimulation.js
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
function ShippingSimulation({ testId = 'fs-shipping-simulation', formatter, title = 'Shipping', inputLabel = 'Postal Code', optionsLabel = 'Shipping options', idkPostalCodeLinkProps, onInput, onSubmit, onClear, location, options = [], displayClearButton = false, errorMessage, postalCode, ...otherProps }) {
|
|
460
|
-
const hasShippingOptions = !!options && options.length > 0;
|
|
461
|
-
return (external_react_default().createElement("section", { "data-fs-shipping-simulation": true, "data-fs-shipping-simulation-empty": !hasShippingOptions ? 'true' : 'false', "data-testid": testId, ...otherProps },
|
|
462
|
-
external_react_default().createElement("h2", { "data-fs-shipping-simulation-title": true }, title),
|
|
463
|
-
external_react_default().createElement(InputField/* default */.Z, { actionable: true, error: errorMessage, id: `${testId}-input-field`, label: inputLabel, value: postalCode, onInput: (event) => onInput?.(event), onSubmit: () => onSubmit?.(), onClear: () => onClear?.(), displayClearButton: displayClearButton }),
|
|
464
|
-
external_react_default().createElement(Link/* default */.Z, { href: "/", "data-fs-shipping-simulation-link": true, size: "small", ...idkPostalCodeLinkProps }, idkPostalCodeLinkProps?.children ?? (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
465
|
-
"I don't know my Postal Code",
|
|
466
|
-
external_react_default().createElement(Icon/* default */.Z, { name: "ArrowSquareOut", width: 20, height: 20 })))),
|
|
467
|
-
hasShippingOptions && (external_react_default().createElement((external_react_default()).Fragment, null,
|
|
468
|
-
external_react_default().createElement("header", { "data-fs-shipping-simulation-header": true },
|
|
469
|
-
external_react_default().createElement("h3", { "data-fs-shipping-simulation-subtitle": true }, optionsLabel),
|
|
470
|
-
external_react_default().createElement("p", { "data-fs-shipping-simulation-location": true }, location)),
|
|
471
|
-
external_react_default().createElement(Table_Table, null,
|
|
472
|
-
external_react_default().createElement(Table_TableBody, null, options.map((option) => (external_react_default().createElement(Table_TableRow, { key: option.carrier },
|
|
473
|
-
external_react_default().createElement(Table_TableCell, { align: "left" }, option.carrier),
|
|
474
|
-
external_react_default().createElement(Table_TableCell, null, option.localizedEstimates),
|
|
475
|
-
external_react_default().createElement(Table_TableCell, { align: "right" }, option.price && (external_react_default().createElement(Price/* default */.Z, { formatter: formatter, value: option.price, SRText: "price" }))))))))))));
|
|
476
|
-
}
|
|
477
|
-
/* harmony default export */ const ShippingSimulation_ShippingSimulation = (ShippingSimulation);
|
|
478
|
-
//# sourceMappingURL=ShippingSimulation.js.map
|
|
479
|
-
// EXTERNAL MODULE: external "react-intersection-observer"
|
|
480
|
-
var external_react_intersection_observer_ = __webpack_require__(9785);
|
|
481
|
-
// EXTERNAL MODULE: ../components/dist/esm/molecules/IconButton/IconButton.js
|
|
482
|
-
var IconButton = __webpack_require__(7041);
|
|
483
|
-
;// CONCATENATED MODULE: ../components/dist/esm/organisms/ImageGallery/ImageGallerySelector.js
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
const SCROLL_MARGIN_VALUE = 400;
|
|
488
|
-
const moveScroll = (container, value) => {
|
|
489
|
-
if (container) {
|
|
490
|
-
if (container.scrollHeight > container.clientHeight) {
|
|
491
|
-
// TODO: Temporary workaround for scroll-behavior with scrollTop – Safari 15.4) https://developer.apple.com/forums/thread/703294
|
|
492
|
-
container.style.overflow = 'auto';
|
|
493
|
-
window.requestAnimationFrame(() => container.scrollTo({ top: value, behavior: 'smooth' }));
|
|
494
|
-
setTimeout(() => (container.style.overflow = 'hidden'), 2000);
|
|
495
|
-
}
|
|
496
|
-
else {
|
|
497
|
-
container.scrollLeft += value;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
const hasScroll = (container) => {
|
|
502
|
-
if (container) {
|
|
503
|
-
return (container.scrollHeight > container.clientHeight ||
|
|
504
|
-
container.scrollWidth > container.clientWidth);
|
|
505
|
-
}
|
|
506
|
-
return false;
|
|
507
|
-
};
|
|
508
|
-
function ImageGallerySelector({ images, onSelect, ImageComponent, currentImageIdx, testId = 'fs-image-gallery-selector', 'aria-label': ariaLabel = 'Product Images', navigationButtonLeftAriaLabel = 'Backward slide image selector', navigationButtonRightAriaLabel = 'Forward slide image selector', }) {
|
|
509
|
-
const elementsRef = (0,external_react_.useRef)(null);
|
|
510
|
-
const elementHasScroll = hasScroll(elementsRef.current);
|
|
511
|
-
const [firstImageInView, setFirstImageInView] = (0,external_react_.useState)(true);
|
|
512
|
-
const [lastImageInView, setLastImageInView] = (0,external_react_.useState)(true);
|
|
513
|
-
const inViewChange = (0,external_react_.useCallback)((idx, inView) => {
|
|
514
|
-
idx === 0 && setFirstImageInView(inView);
|
|
515
|
-
idx === images.length - 1 && setLastImageInView(inView);
|
|
516
|
-
}, [images.length]);
|
|
517
|
-
return (external_react_default().createElement("section", { "data-fs-image-gallery-selector": true, "data-testid": testId, "aria-label": ariaLabel },
|
|
518
|
-
elementHasScroll && !firstImageInView && (external_react_default().createElement("div", { "data-fs-image-gallery-selector-control": true },
|
|
519
|
-
external_react_default().createElement(IconButton/* default */.Z, { "data-fs-image-gallery-selector-control-button": true, "aria-label": navigationButtonLeftAriaLabel, icon: external_react_default().createElement(Icon/* default */.Z, { name: "ArrowLeft" }), onClick: () => moveScroll(elementsRef.current, -SCROLL_MARGIN_VALUE) }))),
|
|
520
|
-
external_react_default().createElement("div", { "data-fs-image-gallery-selector-elements": true, ref: elementsRef }, images.map((image, idx) => {
|
|
521
|
-
return (external_react_default().createElement(external_react_intersection_observer_.InView, { key: idx, onChange: (inView) => inViewChange(idx, inView) },
|
|
522
|
-
external_react_default().createElement(Button/* default */.Z, { key: idx, "aria-label": `${image.alternateName} - Image ${idx + 1} of ${images.length}`, onClick: () => onSelect(idx), "data-fs-image-gallery-selector-thumbnail": idx === currentImageIdx ? 'selected' : 'true' },
|
|
523
|
-
external_react_default().createElement(ImageComponent, { url: image.url ?? '', loading: idx === 0 ? 'eager' : 'lazy', alternateName: image.alternateName ?? '' }))));
|
|
524
|
-
})),
|
|
525
|
-
elementHasScroll && !lastImageInView && (external_react_default().createElement("div", { "data-fs-image-gallery-selector-control": true },
|
|
526
|
-
external_react_default().createElement(IconButton/* default */.Z, { "data-fs-image-gallery-selector-control-button": true, "aria-label": navigationButtonRightAriaLabel, icon: external_react_default().createElement(Icon/* default */.Z, { name: "ArrowLeft" }), onClick: () => moveScroll(elementsRef.current, +SCROLL_MARGIN_VALUE) })))));
|
|
527
|
-
}
|
|
528
|
-
/* harmony default export */ const ImageGallery_ImageGallerySelector = (ImageGallerySelector);
|
|
529
|
-
//# sourceMappingURL=ImageGallerySelector.js.map
|
|
530
|
-
;// CONCATENATED MODULE: ../components/dist/esm/organisms/ImageGallery/ImageGallery.js
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
const ImageGallery = (0,external_react_.forwardRef)(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
|
|
534
|
-
const hasSelector = images.length > 1;
|
|
535
|
-
return (external_react_default().createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-testid": testId, ...otherProps },
|
|
536
|
-
children,
|
|
537
|
-
hasSelector && (external_react_default().createElement(ImageGallery_ImageGallerySelector, { images: images, onSelect: setSelectedImageIdx, currentImageIdx: selectedImageIdx, ImageComponent: ImageComponent }))));
|
|
538
|
-
});
|
|
539
|
-
/* harmony default export */ const ImageGallery_ImageGallery = (ImageGallery);
|
|
540
|
-
//# sourceMappingURL=ImageGallery.js.map
|
|
541
|
-
;// CONCATENATED MODULE: ../components/dist/esm/organisms/ImageGallery/ImageGalleryViewer.js
|
|
542
|
-
|
|
543
|
-
const ImageGalleryViewer = ({ children, }) => {
|
|
544
|
-
return external_react_default().createElement((external_react_default()).Fragment, null, children);
|
|
545
|
-
};
|
|
546
|
-
/* harmony default export */ const ImageGallery_ImageGalleryViewer = (ImageGalleryViewer);
|
|
547
|
-
//# sourceMappingURL=ImageGalleryViewer.js.map
|
|
548
|
-
// EXTERNAL MODULE: external "next/router"
|
|
549
|
-
var router_ = __webpack_require__(1853);
|
|
550
|
-
;// CONCATENATED MODULE: ./src/components/ui/ImageGallery/ImageGallery.tsx
|
|
551
|
-
const _excluded = ["images"];
|
|
552
|
-
|
|
553
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
554
|
-
|
|
555
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
556
|
-
|
|
557
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
558
|
-
|
|
559
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
560
|
-
|
|
561
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
const ImageComponent = ({
|
|
569
|
-
url,
|
|
570
|
-
alternateName
|
|
571
|
-
}) => {
|
|
572
|
-
return /*#__PURE__*/jsx_runtime_.jsx(__experimentalImageGalleryImage.Component, {
|
|
573
|
-
src: url,
|
|
574
|
-
alt: alternateName,
|
|
575
|
-
width: 68,
|
|
576
|
-
height: 68
|
|
577
|
-
});
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
const ImageGallery_ImageGallery_ImageGallery = _ref => {
|
|
581
|
-
let {
|
|
582
|
-
images
|
|
583
|
-
} = _ref,
|
|
584
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
585
|
-
|
|
586
|
-
const {
|
|
587
|
-
0: selectedImageIdx,
|
|
588
|
-
1: setSelectedImageIdx
|
|
589
|
-
} = (0,external_react_.useState)(0);
|
|
590
|
-
const currentImage = images[selectedImageIdx] ?? images[0];
|
|
591
|
-
const dynamicRoute = (0,router_.useRouter)().asPath;
|
|
592
|
-
(0,external_react_.useEffect)(() => setSelectedImageIdx(0), [dynamicRoute]);
|
|
593
|
-
return /*#__PURE__*/jsx_runtime_.jsx(Overrides_ImageGallery.Component, _objectSpread(_objectSpread(_objectSpread({}, Overrides_ImageGallery.props), {}, {
|
|
594
|
-
images: images,
|
|
595
|
-
ImageComponent: ImageComponent,
|
|
596
|
-
selectedImageIdx: selectedImageIdx,
|
|
597
|
-
setSelectedImageIdx: setSelectedImageIdx
|
|
598
|
-
}, otherProps), {}, {
|
|
599
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(Overrides_ImageGalleryViewer.Component, _objectSpread(_objectSpread({}, Overrides_ImageGalleryViewer.props), {}, {
|
|
600
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(__experimentalImageGalleryImage.Component, _objectSpread(_objectSpread({
|
|
601
|
-
sizes: "(max-width: 360px) 50vw, (max-width: 768px) 90vw, 50vw",
|
|
602
|
-
width: 691,
|
|
603
|
-
height: 691 * (3 / 4),
|
|
604
|
-
loading: "eager"
|
|
605
|
-
}, __experimentalImageGalleryImage.props), {}, {
|
|
606
|
-
src: currentImage.url,
|
|
607
|
-
alt: currentImage.alternateName
|
|
608
|
-
}))
|
|
609
|
-
}))
|
|
610
|
-
}));
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
/* harmony default export */ const ui_ImageGallery_ImageGallery = (ImageGallery_ImageGallery_ImageGallery);
|
|
614
|
-
// EXTERNAL MODULE: ./src/sdk/graphql/request.ts
|
|
615
|
-
var request = __webpack_require__(180);
|
|
616
|
-
;// CONCATENATED MODULE: ./src/sdk/shipping/index.ts
|
|
617
|
-
|
|
618
|
-
const query = "ClientShippingSimulationQuery";
|
|
619
|
-
const getShippingSimulation = async ({
|
|
620
|
-
items,
|
|
621
|
-
postalCode,
|
|
622
|
-
country
|
|
623
|
-
}) => {
|
|
624
|
-
const data = await (0,request/* request */.W)(query, {
|
|
625
|
-
items,
|
|
626
|
-
postalCode,
|
|
627
|
-
country
|
|
628
|
-
});
|
|
629
|
-
return data;
|
|
630
|
-
};
|
|
631
|
-
/* harmony default export */ const shipping = (getShippingSimulation);
|
|
632
|
-
;// CONCATENATED MODULE: ./src/sdk/shipping/useShippingSimulation.ts
|
|
633
|
-
function useShippingSimulation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
634
|
-
|
|
635
|
-
function useShippingSimulation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? useShippingSimulation_ownKeys(Object(source), !0).forEach(function (key) { useShippingSimulation_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : useShippingSimulation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
636
|
-
|
|
637
|
-
function useShippingSimulation_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
const createEmptySimulation = () => ({
|
|
644
|
-
input: {
|
|
645
|
-
postalCode: '',
|
|
646
|
-
displayClearButton: false,
|
|
647
|
-
errorMessage: ''
|
|
648
|
-
},
|
|
649
|
-
shippingSimulation: undefined
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
const reducer = (state, action) => {
|
|
653
|
-
const {
|
|
654
|
-
type
|
|
655
|
-
} = action;
|
|
656
|
-
|
|
657
|
-
switch (type) {
|
|
658
|
-
case 'clear':
|
|
659
|
-
{
|
|
660
|
-
return createEmptySimulation();
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
case 'update':
|
|
664
|
-
{
|
|
665
|
-
const {
|
|
666
|
-
payload
|
|
667
|
-
} = action;
|
|
668
|
-
return {
|
|
669
|
-
input: useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state.input), payload.input),
|
|
670
|
-
shippingSimulation: useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state.shippingSimulation), payload.shippingSimulation)
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
case 'onInput':
|
|
675
|
-
{
|
|
676
|
-
const {
|
|
677
|
-
payload
|
|
678
|
-
} = action;
|
|
679
|
-
return useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state), {}, {
|
|
680
|
-
input: useShippingSimulation_objectSpread({}, payload)
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
case 'onError':
|
|
685
|
-
{
|
|
686
|
-
const {
|
|
687
|
-
payload
|
|
688
|
-
} = action;
|
|
689
|
-
return useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state), {}, {
|
|
690
|
-
input: useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state.input), payload)
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
default:
|
|
695
|
-
throw new Error(`Action ${type} not implemented`);
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
|
|
699
|
-
const useShippingSimulation = shippingItem => {
|
|
700
|
-
const {
|
|
701
|
-
0: {
|
|
702
|
-
input,
|
|
703
|
-
shippingSimulation
|
|
704
|
-
},
|
|
705
|
-
1: dispatch
|
|
706
|
-
} = (0,external_react_.useReducer)(reducer, null, createEmptySimulation);
|
|
707
|
-
const {
|
|
708
|
-
country,
|
|
709
|
-
postalCode: sessionPostalCode
|
|
710
|
-
} = (0,session/* useSession */.kP)();
|
|
711
|
-
const {
|
|
712
|
-
postalCode: shippingPostalCode
|
|
713
|
-
} = input;
|
|
714
|
-
const shippingPostalCodeRef = (0,external_react_.useRef)(shippingPostalCode);
|
|
715
|
-
(0,external_react_.useEffect)(() => {
|
|
716
|
-
const shouldFetch = sessionPostalCode && !shippingPostalCodeRef.current;
|
|
717
|
-
|
|
718
|
-
if (!shouldFetch) {
|
|
719
|
-
return;
|
|
720
|
-
} // Use sessionPostalCode if there is no shippingPostalCode
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
async function fetchShipping() {
|
|
724
|
-
const data = await shipping({
|
|
725
|
-
country,
|
|
726
|
-
postalCode: sessionPostalCode ?? '',
|
|
727
|
-
items: [shippingItem]
|
|
728
|
-
});
|
|
729
|
-
const shippingSimulation = data.shipping;
|
|
730
|
-
dispatch({
|
|
731
|
-
type: 'update',
|
|
732
|
-
payload: {
|
|
733
|
-
input: {
|
|
734
|
-
postalCode: sessionPostalCode ?? '',
|
|
735
|
-
displayClearButton: true,
|
|
736
|
-
errorMessage: ''
|
|
737
|
-
},
|
|
738
|
-
shippingSimulation
|
|
739
|
-
}
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
fetchShipping();
|
|
744
|
-
}, [country, sessionPostalCode, shippingItem]);
|
|
745
|
-
const handleSubmit = (0,external_react_.useCallback)(async () => {
|
|
746
|
-
try {
|
|
747
|
-
const data = await shipping({
|
|
748
|
-
country,
|
|
749
|
-
postalCode: shippingPostalCode ?? '',
|
|
750
|
-
items: [shippingItem]
|
|
751
|
-
});
|
|
752
|
-
const shippingSimulation = data.shipping;
|
|
753
|
-
dispatch({
|
|
754
|
-
type: 'update',
|
|
755
|
-
payload: {
|
|
756
|
-
input: {
|
|
757
|
-
displayClearButton: true,
|
|
758
|
-
errorMessage: ''
|
|
759
|
-
},
|
|
760
|
-
shippingSimulation
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
} catch (error) {
|
|
764
|
-
dispatch({
|
|
765
|
-
type: 'onError',
|
|
766
|
-
payload: {
|
|
767
|
-
displayClearButton: true,
|
|
768
|
-
errorMessage: 'You entered an invalid Postal Code'
|
|
769
|
-
}
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
}, [country, shippingItem, shippingPostalCode]);
|
|
773
|
-
const handleOnInput = (0,external_react_.useCallback)(e => {
|
|
774
|
-
const currentValue = e.currentTarget.value;
|
|
775
|
-
|
|
776
|
-
if (currentValue) {
|
|
777
|
-
dispatch({
|
|
778
|
-
type: 'onInput',
|
|
779
|
-
payload: {
|
|
780
|
-
postalCode: currentValue,
|
|
781
|
-
displayClearButton: false,
|
|
782
|
-
errorMessage: ''
|
|
783
|
-
}
|
|
784
|
-
});
|
|
785
|
-
} else {
|
|
786
|
-
dispatch({
|
|
787
|
-
type: 'clear'
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
}, []);
|
|
791
|
-
return {
|
|
792
|
-
input,
|
|
793
|
-
shippingSimulation,
|
|
794
|
-
handleOnClear: () => {
|
|
795
|
-
dispatch({
|
|
796
|
-
type: 'clear'
|
|
797
|
-
});
|
|
798
|
-
},
|
|
799
|
-
handleSubmit,
|
|
800
|
-
handleOnInput
|
|
801
|
-
};
|
|
802
|
-
};
|
|
803
|
-
;// CONCATENATED MODULE: ./src/components/ui/ShippingSimulation/ShippingSimulation.tsx
|
|
804
|
-
const ShippingSimulation_excluded = ["productShippingInfo", "formatter", "inputLabel", "title", "idkPostalCodeLinkProps"];
|
|
805
|
-
|
|
806
|
-
function ShippingSimulation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
807
|
-
|
|
808
|
-
function ShippingSimulation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ShippingSimulation_ownKeys(Object(source), !0).forEach(function (key) { ShippingSimulation_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ShippingSimulation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
809
|
-
|
|
810
|
-
function ShippingSimulation_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
811
|
-
|
|
812
|
-
function ShippingSimulation_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = ShippingSimulation_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
813
|
-
|
|
814
|
-
function ShippingSimulation_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
function ShippingSimulation_ShippingSimulation_ShippingSimulation(_ref) {
|
|
820
|
-
let {
|
|
821
|
-
productShippingInfo,
|
|
822
|
-
formatter,
|
|
823
|
-
inputLabel,
|
|
824
|
-
title,
|
|
825
|
-
idkPostalCodeLinkProps
|
|
826
|
-
} = _ref,
|
|
827
|
-
otherProps = ShippingSimulation_objectWithoutProperties(_ref, ShippingSimulation_excluded);
|
|
828
|
-
|
|
829
|
-
const {
|
|
830
|
-
input,
|
|
831
|
-
shippingSimulation,
|
|
832
|
-
handleSubmit,
|
|
833
|
-
handleOnInput,
|
|
834
|
-
handleOnClear
|
|
835
|
-
} = useShippingSimulation(productShippingInfo);
|
|
836
|
-
const {
|
|
837
|
-
postalCode,
|
|
838
|
-
displayClearButton,
|
|
839
|
-
errorMessage
|
|
840
|
-
} = input;
|
|
841
|
-
const location = [shippingSimulation?.address?.neighborhood, shippingSimulation?.address?.city].filter(Boolean).join(' / ') ?? '';
|
|
842
|
-
const options = shippingSimulation?.logisticsInfo?.[0]?.slas ?? [];
|
|
843
|
-
return /*#__PURE__*/jsx_runtime_.jsx(Overrides_ShippingSimulation.Component, ShippingSimulation_objectSpread({
|
|
844
|
-
formatter: formatter,
|
|
845
|
-
onInput: handleOnInput,
|
|
846
|
-
onSubmit: handleSubmit,
|
|
847
|
-
onClear: handleOnClear,
|
|
848
|
-
location: location,
|
|
849
|
-
options: options,
|
|
850
|
-
address: shippingSimulation?.address,
|
|
851
|
-
displayClearButton: displayClearButton,
|
|
852
|
-
errorMessage: errorMessage,
|
|
853
|
-
postalCode: postalCode,
|
|
854
|
-
inputLabel: inputLabel,
|
|
855
|
-
title: title,
|
|
856
|
-
idkPostalCodeLinkProps: idkPostalCodeLinkProps
|
|
857
|
-
}, otherProps));
|
|
858
|
-
}
|
|
859
|
-
;// CONCATENATED MODULE: ./src/components/product/NotAvailableButton/NotAvailableButton.tsx
|
|
860
|
-
// TODO: Remove this component when <OutOfStock /> is ready to use
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
function NotAvailableButton({
|
|
865
|
-
children
|
|
866
|
-
}) {
|
|
867
|
-
return /*#__PURE__*/jsx_runtime_.jsx(Button/* default */.Z, {
|
|
868
|
-
variant: "primary",
|
|
869
|
-
disabled: true,
|
|
870
|
-
"data-fs-buy-button": true,
|
|
871
|
-
children: children
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
/* harmony default export */ const NotAvailableButton_NotAvailableButton = (NotAvailableButton);
|
|
876
|
-
// EXTERNAL MODULE: ./src/sdk/overrides/overrides.ts
|
|
877
|
-
var overrides = __webpack_require__(7506);
|
|
878
|
-
;// CONCATENATED MODULE: ./src/customizations/src/components/overrides/ProductDetails.tsx
|
|
879
|
-
// This is an example of how it can be used on the starter.
|
|
880
|
-
const SECTION = 'ProductDetails';
|
|
881
|
-
const override = {
|
|
882
|
-
section: SECTION
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
;// CONCATENATED MODULE: ./src/components/sections/ProductDetails/Overrides.tsx
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
const {
|
|
894
|
-
ProductTitle: Overrides_ProductTitle,
|
|
895
|
-
DiscountBadge: Overrides_DiscountBadge,
|
|
896
|
-
BuyButton: Overrides_BuyButton,
|
|
897
|
-
Icon: Overrides_Icon,
|
|
898
|
-
Price: Overrides_Price,
|
|
899
|
-
QuantitySelector: Overrides_QuantitySelector,
|
|
900
|
-
SkuSelector: Overrides_SkuSelector,
|
|
901
|
-
ShippingSimulation: Overrides_ShippingSimulation,
|
|
902
|
-
ImageGallery: Overrides_ImageGallery,
|
|
903
|
-
ImageGalleryViewer: Overrides_ImageGalleryViewer,
|
|
904
|
-
__experimentalImageGalleryImage,
|
|
905
|
-
__experimentalImageGallery,
|
|
906
|
-
__experimentalShippingSimulation,
|
|
907
|
-
__experimentalNotAvailableButton
|
|
908
|
-
} = (0,overrides/* getSectionOverrides */.f)({
|
|
909
|
-
ProductTitle: ProductTitle_ProductTitle,
|
|
910
|
-
DiscountBadge: DiscountBadge/* default */.Z,
|
|
911
|
-
BuyButton: BuyButton_BuyButton,
|
|
912
|
-
Icon: Icon/* default */.Z,
|
|
913
|
-
Price: Price/* default */.Z,
|
|
914
|
-
QuantitySelector: QuantitySelector/* default */.Z,
|
|
915
|
-
SkuSelector: SkuSelector_SkuSelector,
|
|
916
|
-
ShippingSimulation: ShippingSimulation_ShippingSimulation,
|
|
917
|
-
ImageGallery: ImageGallery_ImageGallery,
|
|
918
|
-
ImageGalleryViewer: ImageGallery_ImageGalleryViewer,
|
|
919
|
-
__experimentalImageGalleryImage: Image/* default */.Z,
|
|
920
|
-
__experimentalImageGallery: ui_ImageGallery_ImageGallery,
|
|
921
|
-
__experimentalShippingSimulation: ShippingSimulation_ShippingSimulation_ShippingSimulation,
|
|
922
|
-
__experimentalNotAvailableButton: NotAvailableButton_NotAvailableButton
|
|
923
|
-
}, override);
|
|
924
|
-
|
|
925
|
-
;// CONCATENATED MODULE: ./src/components/ui/SkuSelector/Selectors.tsx
|
|
926
|
-
const Selectors_excluded = ["src", "alt"],
|
|
927
|
-
_excluded2 = ["slugsMap", "activeVariations", "availableVariations"];
|
|
928
|
-
|
|
929
|
-
function Selectors_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
930
|
-
|
|
931
|
-
function Selectors_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? Selectors_ownKeys(Object(source), !0).forEach(function (key) { Selectors_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : Selectors_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
932
|
-
|
|
933
|
-
function Selectors_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
934
|
-
|
|
935
|
-
function Selectors_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Selectors_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
936
|
-
|
|
937
|
-
function Selectors_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
const Selectors_ImageComponent = _ref => {
|
|
946
|
-
let {
|
|
947
|
-
src,
|
|
948
|
-
alt
|
|
949
|
-
} = _ref,
|
|
950
|
-
otherProps = Selectors_objectWithoutProperties(_ref, Selectors_excluded);
|
|
951
|
-
|
|
952
|
-
return /*#__PURE__*/jsx_runtime_.jsx(Image/* default */.Z, Selectors_objectSpread({
|
|
953
|
-
src: src,
|
|
954
|
-
alt: alt,
|
|
955
|
-
width: 34,
|
|
956
|
-
height: 34
|
|
957
|
-
}, otherProps));
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
function Selectors(_ref2) {
|
|
961
|
-
let {
|
|
962
|
-
slugsMap,
|
|
963
|
-
activeVariations,
|
|
964
|
-
availableVariations
|
|
965
|
-
} = _ref2,
|
|
966
|
-
otherProps = Selectors_objectWithoutProperties(_ref2, _excluded2);
|
|
967
|
-
|
|
968
|
-
return /*#__PURE__*/jsx_runtime_.jsx("section", Selectors_objectSpread(Selectors_objectSpread({}, otherProps), {}, {
|
|
969
|
-
children: availableVariations && Object.keys(availableVariations).map(skuVariant => /*#__PURE__*/(0,external_react_.createElement)(Overrides_SkuSelector.Component, Selectors_objectSpread(Selectors_objectSpread({
|
|
970
|
-
ImageComponent: Selectors_ImageComponent
|
|
971
|
-
}, Overrides_SkuSelector.props), {}, {
|
|
972
|
-
key: skuVariant,
|
|
973
|
-
skuPropertyName: skuVariant,
|
|
974
|
-
availableVariations: availableVariations,
|
|
975
|
-
activeVariations: activeVariations,
|
|
976
|
-
slugsMap: slugsMap,
|
|
977
|
-
linkProps: Selectors_objectSpread(Selectors_objectSpread({}, Overrides_SkuSelector.props.linkProps ?? {}), {}, {
|
|
978
|
-
as: Overrides_SkuSelector.props.linkProps?.as ?? (link_default()),
|
|
979
|
-
legacyBehavior: Overrides_SkuSelector.props.linkProps?.legacyBehavior ?? false
|
|
980
|
-
})
|
|
981
|
-
})))
|
|
982
|
-
}));
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
/* harmony default export */ const SkuSelector_Selectors = (Selectors);
|
|
986
|
-
;// CONCATENATED MODULE: ./src/components/ui/ProductDetails/AddToCartLoadingSkeleton.tsx
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
function AddToCartLoadingSkeleton() {
|
|
990
|
-
return (
|
|
991
|
-
/*#__PURE__*/
|
|
992
|
-
// Generated via https://skeletonreact.com/.
|
|
993
|
-
(0,jsx_runtime_.jsxs)("svg", {
|
|
994
|
-
role: "img",
|
|
995
|
-
width: "100%",
|
|
996
|
-
height: "48",
|
|
997
|
-
"aria-labelledby": "loading-aria",
|
|
998
|
-
viewBox: "0 0 112 48",
|
|
999
|
-
preserveAspectRatio: "none",
|
|
1000
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("title", {
|
|
1001
|
-
id: "loading-aria",
|
|
1002
|
-
children: "Loading..."
|
|
1003
|
-
}), /*#__PURE__*/jsx_runtime_.jsx("rect", {
|
|
1004
|
-
x: "0",
|
|
1005
|
-
y: "0",
|
|
1006
|
-
width: "100%",
|
|
1007
|
-
height: "100%",
|
|
1008
|
-
clipPath: "url(#clip-path)",
|
|
1009
|
-
style: {
|
|
1010
|
-
fill: 'url("#fill")'
|
|
1011
|
-
}
|
|
1012
|
-
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("defs", {
|
|
1013
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("clipPath", {
|
|
1014
|
-
id: "clip-path",
|
|
1015
|
-
children: /*#__PURE__*/jsx_runtime_.jsx("rect", {
|
|
1016
|
-
x: "0",
|
|
1017
|
-
y: "0",
|
|
1018
|
-
rx: "2",
|
|
1019
|
-
ry: "2",
|
|
1020
|
-
width: "112",
|
|
1021
|
-
height: "48"
|
|
1022
|
-
})
|
|
1023
|
-
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("linearGradient", {
|
|
1024
|
-
id: "fill",
|
|
1025
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("stop", {
|
|
1026
|
-
offset: "0.599964",
|
|
1027
|
-
stopColor: "#f3f3f3",
|
|
1028
|
-
stopOpacity: "1",
|
|
1029
|
-
children: /*#__PURE__*/jsx_runtime_.jsx("animate", {
|
|
1030
|
-
attributeName: "offset",
|
|
1031
|
-
values: "-2; -2; 1",
|
|
1032
|
-
keyTimes: "0; 0.25; 1",
|
|
1033
|
-
dur: "2s",
|
|
1034
|
-
repeatCount: "indefinite"
|
|
1035
|
-
})
|
|
1036
|
-
}), /*#__PURE__*/jsx_runtime_.jsx("stop", {
|
|
1037
|
-
offset: "1.59996",
|
|
1038
|
-
stopColor: "#ecebeb",
|
|
1039
|
-
stopOpacity: "1",
|
|
1040
|
-
children: /*#__PURE__*/jsx_runtime_.jsx("animate", {
|
|
1041
|
-
attributeName: "offset",
|
|
1042
|
-
values: "-1; -1; 2",
|
|
1043
|
-
keyTimes: "0; 0.25; 1",
|
|
1044
|
-
dur: "2s",
|
|
1045
|
-
repeatCount: "indefinite"
|
|
1046
|
-
})
|
|
1047
|
-
}), /*#__PURE__*/jsx_runtime_.jsx("stop", {
|
|
1048
|
-
offset: "2.59996",
|
|
1049
|
-
stopColor: "#f3f3f3",
|
|
1050
|
-
stopOpacity: "1",
|
|
1051
|
-
children: /*#__PURE__*/jsx_runtime_.jsx("animate", {
|
|
1052
|
-
attributeName: "offset",
|
|
1053
|
-
values: "0; 0; 3",
|
|
1054
|
-
keyTimes: "0; 0.25; 1",
|
|
1055
|
-
dur: "2s",
|
|
1056
|
-
repeatCount: "indefinite"
|
|
1057
|
-
})
|
|
1058
|
-
})]
|
|
1059
|
-
})]
|
|
1060
|
-
})]
|
|
1061
|
-
})
|
|
1062
|
-
);
|
|
1063
|
-
}
|
|
1064
|
-
;// CONCATENATED MODULE: ./src/components/ui/ProductDetails/ProductDetailsSettings.tsx
|
|
1065
|
-
function ProductDetailsSettings_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1066
|
-
|
|
1067
|
-
function ProductDetailsSettings_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ProductDetailsSettings_ownKeys(Object(source), !0).forEach(function (key) { ProductDetailsSettings_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ProductDetailsSettings_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1068
|
-
|
|
1069
|
-
function ProductDetailsSettings_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
function ProductDetailsSettings({
|
|
1082
|
-
product,
|
|
1083
|
-
buyButtonTitle,
|
|
1084
|
-
isValidating,
|
|
1085
|
-
quantity,
|
|
1086
|
-
setQuantity,
|
|
1087
|
-
buyButtonIcon: {
|
|
1088
|
-
icon: buyButtonIconName = Overrides_Icon.props.name,
|
|
1089
|
-
alt: buyButtonIconAlt = Overrides_Icon.props["aria-label"]
|
|
1090
|
-
},
|
|
1091
|
-
notAvailableButtonTitle
|
|
1092
|
-
}) {
|
|
1093
|
-
const {
|
|
1094
|
-
id,
|
|
1095
|
-
sku,
|
|
1096
|
-
gtin,
|
|
1097
|
-
name: variantName,
|
|
1098
|
-
brand,
|
|
1099
|
-
isVariantOf,
|
|
1100
|
-
isVariantOf: {
|
|
1101
|
-
skuVariants
|
|
1102
|
-
},
|
|
1103
|
-
image: productImages,
|
|
1104
|
-
additionalProperty,
|
|
1105
|
-
offers: {
|
|
1106
|
-
lowPrice,
|
|
1107
|
-
offers: [{
|
|
1108
|
-
availability,
|
|
1109
|
-
price,
|
|
1110
|
-
listPrice,
|
|
1111
|
-
seller
|
|
1112
|
-
}]
|
|
1113
|
-
}
|
|
1114
|
-
} = product;
|
|
1115
|
-
const buyProps = useBuyButton({
|
|
1116
|
-
id,
|
|
1117
|
-
price,
|
|
1118
|
-
listPrice,
|
|
1119
|
-
seller,
|
|
1120
|
-
quantity,
|
|
1121
|
-
itemOffered: {
|
|
1122
|
-
sku,
|
|
1123
|
-
name: variantName,
|
|
1124
|
-
gtin,
|
|
1125
|
-
image: productImages,
|
|
1126
|
-
brand,
|
|
1127
|
-
isVariantOf,
|
|
1128
|
-
additionalProperty
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
const outOfStock = (0,external_react_.useMemo)(() => availability === 'https://schema.org/OutOfStock', [availability]);
|
|
1132
|
-
const shouldShowDiscountedPrice = (0,external_react_.useMemo)(() => lowPrice !== listPrice, [lowPrice, listPrice]);
|
|
1133
|
-
|
|
1134
|
-
const AddToCartButton = () => {
|
|
1135
|
-
return outOfStock ?
|
|
1136
|
-
/*#__PURE__*/
|
|
1137
|
-
// TODO: Adds <OutOfStock /> when component is ready to use
|
|
1138
|
-
jsx_runtime_.jsx(__experimentalNotAvailableButton.Component, {
|
|
1139
|
-
children: notAvailableButtonTitle
|
|
1140
|
-
}) : /*#__PURE__*/jsx_runtime_.jsx(Overrides_BuyButton.Component, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({}, Overrides_BuyButton.props), {}, {
|
|
1141
|
-
icon: /*#__PURE__*/jsx_runtime_.jsx(Overrides_Icon.Component, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({}, Overrides_Icon.props), {}, {
|
|
1142
|
-
name: buyButtonIconName,
|
|
1143
|
-
"aria-label": buyButtonIconAlt
|
|
1144
|
-
}))
|
|
1145
|
-
}, buyProps), {}, {
|
|
1146
|
-
children: buyButtonTitle || 'Add to Cart'
|
|
1147
|
-
}));
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
|
-
return /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
|
|
1151
|
-
children: [!outOfStock && /*#__PURE__*/(0,jsx_runtime_.jsxs)("section", {
|
|
1152
|
-
"data-fs-product-details-values": true,
|
|
1153
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
|
|
1154
|
-
"data-fs-product-details-prices": true,
|
|
1155
|
-
children: shouldShowDiscountedPrice ? /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
|
|
1156
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx(Overrides_Price.Component, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
|
|
1157
|
-
formatter: useFormattedPrice/* useFormattedPrice */.P,
|
|
1158
|
-
testId: "list-price",
|
|
1159
|
-
variant: "listing",
|
|
1160
|
-
SRText: "Original price:"
|
|
1161
|
-
}, Overrides_Price.props), {}, {
|
|
1162
|
-
// Dynamic props shouldn't be overridable
|
|
1163
|
-
// This decision can be reviewed later if needed
|
|
1164
|
-
value: listPrice,
|
|
1165
|
-
"data-value": listPrice
|
|
1166
|
-
})), /*#__PURE__*/jsx_runtime_.jsx(Overrides_Price.Component, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
|
|
1167
|
-
formatter: useFormattedPrice/* useFormattedPrice */.P,
|
|
1168
|
-
testId: "price",
|
|
1169
|
-
variant: "spot",
|
|
1170
|
-
className: "text__lead",
|
|
1171
|
-
SRText: "Sale Price:"
|
|
1172
|
-
}, Overrides_Price.props), {}, {
|
|
1173
|
-
// Dynamic props shouldn't be overridable
|
|
1174
|
-
// This decision can be reviewed later if needed
|
|
1175
|
-
value: lowPrice,
|
|
1176
|
-
"data-value": lowPrice
|
|
1177
|
-
}))]
|
|
1178
|
-
}) : /*#__PURE__*/jsx_runtime_.jsx(Overrides_Price.Component, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
|
|
1179
|
-
formatter: useFormattedPrice/* useFormattedPrice */.P,
|
|
1180
|
-
testId: "list-price",
|
|
1181
|
-
variant: "spot",
|
|
1182
|
-
className: "text__lead",
|
|
1183
|
-
SRText: "Original price:"
|
|
1184
|
-
}, Overrides_Price.props), {}, {
|
|
1185
|
-
// Dynamic props shouldn't be overridable
|
|
1186
|
-
// This decision can be reviewed later if needed
|
|
1187
|
-
value: lowPrice,
|
|
1188
|
-
"data-value": lowPrice
|
|
1189
|
-
}))
|
|
1190
|
-
}), /*#__PURE__*/jsx_runtime_.jsx(Overrides_QuantitySelector.Component, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
|
|
1191
|
-
min: 1,
|
|
1192
|
-
max: 10
|
|
1193
|
-
}, Overrides_QuantitySelector.props), {}, {
|
|
1194
|
-
// Dynamic props shouldn't be overridable
|
|
1195
|
-
// This decision can be reviewed later if needed
|
|
1196
|
-
onChange: setQuantity
|
|
1197
|
-
}))]
|
|
1198
|
-
}), skuVariants && /*#__PURE__*/jsx_runtime_.jsx(SkuSelector_Selectors, {
|
|
1199
|
-
slugsMap: skuVariants.slugsMap,
|
|
1200
|
-
availableVariations: skuVariants.availableVariations,
|
|
1201
|
-
activeVariations: skuVariants.activeVariations,
|
|
1202
|
-
"data-fs-product-details-selectors": true
|
|
1203
|
-
}), isValidating ?
|
|
1204
|
-
/*#__PURE__*/
|
|
1205
|
-
|
|
1206
|
-
/* NOTE:
|
|
1207
|
-
A loading skeleton had to be used to avoid a Lighthouse's
|
|
1208
|
-
non-composited animation violation due to the button transitioning its
|
|
1209
|
-
background color when changing from its initial disabled to active state.
|
|
1210
|
-
See full explanation on commit https://git.io/JyXV5. */
|
|
1211
|
-
jsx_runtime_.jsx(AddToCartLoadingSkeleton, {}) : /*#__PURE__*/jsx_runtime_.jsx(AddToCartButton, {})]
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
/* harmony default export */ const ProductDetails_ProductDetailsSettings = (ProductDetailsSettings);
|
|
1216
|
-
// EXTERNAL MODULE: ./src/components/sections/ProductDetails/section.module.scss
|
|
1217
|
-
var section_module = __webpack_require__(9034);
|
|
1218
|
-
var section_module_default = /*#__PURE__*/__webpack_require__.n(section_module);
|
|
1219
|
-
// EXTERNAL MODULE: ./src/sdk/overrides/PageProvider.tsx
|
|
1220
|
-
var PageProvider = __webpack_require__(5953);
|
|
1221
|
-
;// CONCATENATED MODULE: ./src/components/sections/ProductDetails/ProductDetails.tsx
|
|
1222
|
-
function ProductDetails_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1223
|
-
|
|
1224
|
-
function ProductDetails_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ProductDetails_ownKeys(Object(source), !0).forEach(function (key) { ProductDetails_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ProductDetails_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1225
|
-
|
|
1226
|
-
function ProductDetails_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
function ProductDetails({
|
|
1242
|
-
productTitle: {
|
|
1243
|
-
refNumber: showRefNumber,
|
|
1244
|
-
discountBadge: {
|
|
1245
|
-
showDiscountBadge,
|
|
1246
|
-
size: discountBadgeSize = Overrides_DiscountBadge.props.size
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
buyButton: {
|
|
1250
|
-
icon: buyButtonIcon,
|
|
1251
|
-
title: buyButtonTitle
|
|
1252
|
-
},
|
|
1253
|
-
shippingSimulator: {
|
|
1254
|
-
title: shippingSimulatorTitle = __experimentalShippingSimulation.props.title,
|
|
1255
|
-
inputLabel: shippingSimulatorInputLabel = __experimentalShippingSimulation.props.inputLabel,
|
|
1256
|
-
shippingOptionsTableTitle: shippingSimulatorOptionsTableTitle = __experimentalShippingSimulation.props.optionsLabel,
|
|
1257
|
-
link: {
|
|
1258
|
-
to: shippingSimulatorLinkUrl = __experimentalShippingSimulation.props.idkPostalCodeLinkProps?.href,
|
|
1259
|
-
text: shippingSimulatorLinkText = __experimentalShippingSimulation.props.idkPostalCodeLinkProps?.children
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
productDescription: {
|
|
1263
|
-
title: productDescriptionDetailsTitle,
|
|
1264
|
-
initiallyExpanded: productDescriptionInitiallyExpanded,
|
|
1265
|
-
displayDescription: shouldDisplayProductDescription
|
|
1266
|
-
},
|
|
1267
|
-
notAvailableButton: {
|
|
1268
|
-
title: notAvailableButtonTitle = __experimentalNotAvailableButton.props.title
|
|
1269
|
-
}
|
|
1270
|
-
}) {
|
|
1271
|
-
const {
|
|
1272
|
-
currency
|
|
1273
|
-
} = (0,session/* useSession */.kP)();
|
|
1274
|
-
const {
|
|
1275
|
-
0: quantity,
|
|
1276
|
-
1: setQuantity
|
|
1277
|
-
} = (0,external_react_.useState)(1);
|
|
1278
|
-
const context = (0,PageProvider/* usePDP */.al)();
|
|
1279
|
-
const {
|
|
1280
|
-
product,
|
|
1281
|
-
isValidating
|
|
1282
|
-
} = context?.data;
|
|
1283
|
-
|
|
1284
|
-
if (!product) {
|
|
1285
|
-
throw new Error('NotFound');
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
const {
|
|
1289
|
-
id,
|
|
1290
|
-
sku,
|
|
1291
|
-
gtin,
|
|
1292
|
-
name: variantName,
|
|
1293
|
-
brand,
|
|
1294
|
-
isVariantOf,
|
|
1295
|
-
description,
|
|
1296
|
-
isVariantOf: {
|
|
1297
|
-
name,
|
|
1298
|
-
productGroupID: productId
|
|
1299
|
-
},
|
|
1300
|
-
image: productImages,
|
|
1301
|
-
offers: {
|
|
1302
|
-
offers: [{
|
|
1303
|
-
availability,
|
|
1304
|
-
price,
|
|
1305
|
-
listPrice,
|
|
1306
|
-
seller
|
|
1307
|
-
}],
|
|
1308
|
-
lowPrice
|
|
1309
|
-
}
|
|
1310
|
-
} = product;
|
|
1311
|
-
(0,external_react_.useEffect)(() => {
|
|
1312
|
-
(0,sendAnalyticsEvent/* sendAnalyticsEvent */._)({
|
|
1313
|
-
name: 'view_item',
|
|
1314
|
-
params: {
|
|
1315
|
-
currency: currency.code,
|
|
1316
|
-
value: price,
|
|
1317
|
-
items: [{
|
|
1318
|
-
item_id: isVariantOf.productGroupID,
|
|
1319
|
-
item_name: isVariantOf.name,
|
|
1320
|
-
item_brand: brand.name,
|
|
1321
|
-
item_variant: sku,
|
|
1322
|
-
price,
|
|
1323
|
-
discount: listPrice - price,
|
|
1324
|
-
currency: currency.code,
|
|
1325
|
-
item_variant_name: variantName,
|
|
1326
|
-
product_reference_id: gtin
|
|
1327
|
-
}]
|
|
1328
|
-
}
|
|
1329
|
-
});
|
|
1330
|
-
}, [isVariantOf.productGroupID, isVariantOf.name, brand.name, sku, price, listPrice, currency.code, variantName, gtin]);
|
|
1331
|
-
const outOfStock = (0,external_react_.useMemo)(() => availability === 'https://schema.org/OutOfStock', [availability]);
|
|
1332
|
-
return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
|
|
1333
|
-
className: `${(section_module_default()).section} section-product-details`,
|
|
1334
|
-
children: /*#__PURE__*/jsx_runtime_.jsx("section", {
|
|
1335
|
-
"data-fs-product-details": true,
|
|
1336
|
-
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("section", {
|
|
1337
|
-
"data-fs-product-details-body": true,
|
|
1338
|
-
"data-fs-content": "product-details",
|
|
1339
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("header", {
|
|
1340
|
-
"data-fs-product-details-title": true,
|
|
1341
|
-
"data-fs-product-details-section": true,
|
|
1342
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(Overrides_ProductTitle.Component, ProductDetails_objectSpread(ProductDetails_objectSpread({
|
|
1343
|
-
// TODO: We should review this prop. There's now way to override the title and use the dynamic name value.
|
|
1344
|
-
// Maybe passing a ProductTitleHeader component as a prop would be better, as it would be overridable.
|
|
1345
|
-
// Maybe now it's worth to make title always a h1 and receive only the name, as it would be easier for users to override.
|
|
1346
|
-
title: /*#__PURE__*/jsx_runtime_.jsx("h1", {
|
|
1347
|
-
children: name
|
|
1348
|
-
})
|
|
1349
|
-
}, Overrides_ProductTitle.props), {}, {
|
|
1350
|
-
label: showDiscountBadge && /*#__PURE__*/jsx_runtime_.jsx(Overrides_DiscountBadge.Component, ProductDetails_objectSpread(ProductDetails_objectSpread({}, Overrides_DiscountBadge.props), {}, {
|
|
1351
|
-
size: discountBadgeSize // Dynamic props shouldn't be overridable
|
|
1352
|
-
// This decision can be reviewed later if needed
|
|
1353
|
-
,
|
|
1354
|
-
listPrice: listPrice,
|
|
1355
|
-
spotPrice: lowPrice
|
|
1356
|
-
})),
|
|
1357
|
-
refNumber: showRefNumber && productId
|
|
1358
|
-
}))
|
|
1359
|
-
}), /*#__PURE__*/jsx_runtime_.jsx(__experimentalImageGallery.Component, ProductDetails_objectSpread(ProductDetails_objectSpread({
|
|
1360
|
-
"data-fs-product-details-gallery": true
|
|
1361
|
-
}, __experimentalImageGallery.props), {}, {
|
|
1362
|
-
images: productImages
|
|
1363
|
-
})), /*#__PURE__*/(0,jsx_runtime_.jsxs)("section", {
|
|
1364
|
-
"data-fs-product-details-info": true,
|
|
1365
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("section", {
|
|
1366
|
-
"data-fs-product-details-settings": true,
|
|
1367
|
-
"data-fs-product-details-section": true,
|
|
1368
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(ProductDetails_ProductDetailsSettings, {
|
|
1369
|
-
product: product,
|
|
1370
|
-
isValidating: isValidating,
|
|
1371
|
-
buyButtonTitle: buyButtonTitle,
|
|
1372
|
-
quantity: quantity,
|
|
1373
|
-
setQuantity: setQuantity,
|
|
1374
|
-
buyButtonIcon: buyButtonIcon,
|
|
1375
|
-
notAvailableButtonTitle: notAvailableButtonTitle
|
|
1376
|
-
})
|
|
1377
|
-
}), !outOfStock && /*#__PURE__*/jsx_runtime_.jsx(__experimentalShippingSimulation.Component, ProductDetails_objectSpread(ProductDetails_objectSpread({
|
|
1378
|
-
"data-fs-product-details-section": true,
|
|
1379
|
-
"data-fs-product-details-shipping": true,
|
|
1380
|
-
formatter: useFormattedPrice/* useFormattedPrice */.P
|
|
1381
|
-
}, __experimentalShippingSimulation.props), {}, {
|
|
1382
|
-
idkPostalCodeLinkProps: ProductDetails_objectSpread(ProductDetails_objectSpread({}, __experimentalShippingSimulation.props.idkPostalCodeLinkProps), {}, {
|
|
1383
|
-
href: shippingSimulatorLinkUrl,
|
|
1384
|
-
children: shippingSimulatorLinkText
|
|
1385
|
-
}),
|
|
1386
|
-
productShippingInfo: {
|
|
1387
|
-
id,
|
|
1388
|
-
quantity,
|
|
1389
|
-
seller: seller.identifier
|
|
1390
|
-
},
|
|
1391
|
-
title: shippingSimulatorTitle,
|
|
1392
|
-
inputLabel: shippingSimulatorInputLabel,
|
|
1393
|
-
optionsLabel: shippingSimulatorOptionsTableTitle
|
|
1394
|
-
}))]
|
|
1395
|
-
}), shouldDisplayProductDescription && /*#__PURE__*/jsx_runtime_.jsx(ProductDescription_ProductDescription, {
|
|
1396
|
-
initiallyExpanded: productDescriptionInitiallyExpanded,
|
|
1397
|
-
descriptionData: [{
|
|
1398
|
-
title: productDescriptionDetailsTitle,
|
|
1399
|
-
content: description
|
|
1400
|
-
}]
|
|
1401
|
-
})]
|
|
1402
|
-
})
|
|
1403
|
-
})
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
const fragment = "unknown";
|
|
1408
|
-
/* harmony default export */ const ProductDetails_ProductDetails = (ProductDetails);
|
|
1409
|
-
|
|
1410
|
-
/***/ }),
|
|
1411
|
-
|
|
1412
|
-
/***/ 5779:
|
|
1413
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1414
|
-
|
|
1415
|
-
"use strict";
|
|
1416
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
1417
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1418
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1419
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
1420
|
-
/* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
|
|
1421
|
-
/* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
|
|
1422
|
-
/* harmony export */ });
|
|
1423
|
-
/* harmony import */ var _faststore_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7397);
|
|
1424
|
-
/* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6641);
|
|
1425
|
-
/* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_seo__WEBPACK_IMPORTED_MODULE_1__);
|
|
1426
|
-
/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6330);
|
|
1427
|
-
/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(deepmerge__WEBPACK_IMPORTED_MODULE_2__);
|
|
1428
|
-
/* harmony import */ var src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2224);
|
|
1429
|
-
/* harmony import */ var src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2951);
|
|
1430
|
-
/* harmony import */ var src_components_sections_BannerText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7599);
|
|
1431
|
-
/* harmony import */ var src_components_sections_Breadcrumb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2390);
|
|
1432
|
-
/* harmony import */ var src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(994);
|
|
1433
|
-
/* harmony import */ var src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2694);
|
|
1434
|
-
/* harmony import */ var src_customizations_src_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3276);
|
|
1435
|
-
/* harmony import */ var src_sdk_session__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7295);
|
|
1436
|
-
/* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(2541);
|
|
1437
|
-
/* harmony import */ var src_server__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(9685);
|
|
1438
|
-
/* harmony import */ var src_server_cms__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(9497);
|
|
1439
|
-
/* harmony import */ var src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4074);
|
|
1440
|
-
/* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(7183);
|
|
1441
|
-
/* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_17__);
|
|
1442
|
-
/* harmony import */ var src_sdk_product_useProductQuery__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7853);
|
|
1443
|
-
/* harmony import */ var src_sdk_overrides_PageProvider__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5953);
|
|
1444
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(997);
|
|
1445
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
|
1446
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_faststore_api__WEBPACK_IMPORTED_MODULE_0__, src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_6__, src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_7__, src_sdk_product_useProductQuery__WEBPACK_IMPORTED_MODULE_11__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__, src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_14__, src_server__WEBPACK_IMPORTED_MODULE_15__]);
|
|
1447
|
-
([_faststore_api__WEBPACK_IMPORTED_MODULE_0__, src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_6__, src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_7__, src_sdk_product_useProductQuery__WEBPACK_IMPORTED_MODULE_11__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__, src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_14__, src_server__WEBPACK_IMPORTED_MODULE_15__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
1448
|
-
const _excluded = ["listPrice"];
|
|
1449
|
-
|
|
1450
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1451
|
-
|
|
1452
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1453
|
-
|
|
1454
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1455
|
-
|
|
1456
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1457
|
-
|
|
1458
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Sections: Components imported from each store's custom components and '../components/sections' only.
|
|
1480
|
-
* Do not import or render components from any other folder in here.
|
|
1481
|
-
*/
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
const COMPONENTS = _objectSpread({
|
|
1487
|
-
Breadcrumb: src_components_sections_Breadcrumb__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z,
|
|
1488
|
-
ProductDetails: src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z,
|
|
1489
|
-
CrossSellingShelf: src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z,
|
|
1490
|
-
BannerNewsletter: src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z,
|
|
1491
|
-
BannerText: src_components_sections_BannerText__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z
|
|
1492
|
-
}, src_customizations_src_components__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z);
|
|
1493
|
-
|
|
1494
|
-
// Array merging strategy from deepmerge that makes client arrays overwrite server array
|
|
1495
|
-
// https://www.npmjs.com/package/deepmerge
|
|
1496
|
-
const overwriteMerge = (_, sourceArray) => sourceArray;
|
|
1497
|
-
|
|
1498
|
-
function Page({
|
|
1499
|
-
data: server,
|
|
1500
|
-
sections,
|
|
1501
|
-
globalSections,
|
|
1502
|
-
offers,
|
|
1503
|
-
meta
|
|
1504
|
-
}) {
|
|
1505
|
-
const {
|
|
1506
|
-
product
|
|
1507
|
-
} = server;
|
|
1508
|
-
const {
|
|
1509
|
-
currency
|
|
1510
|
-
} = (0,src_sdk_session__WEBPACK_IMPORTED_MODULE_10__/* .useSession */ .kP)(); // Stale while revalidate the product for fetching the new price etc
|
|
1511
|
-
|
|
1512
|
-
const {
|
|
1513
|
-
data: client,
|
|
1514
|
-
isValidating
|
|
1515
|
-
} = (0,src_sdk_product_useProductQuery__WEBPACK_IMPORTED_MODULE_11__/* .useProductQuery */ .F)(product.id, {
|
|
1516
|
-
product: product
|
|
1517
|
-
});
|
|
1518
|
-
const context = {
|
|
1519
|
-
data: _objectSpread(_objectSpread({}, deepmerge__WEBPACK_IMPORTED_MODULE_2___default()(server, client, {
|
|
1520
|
-
arrayMerge: overwriteMerge
|
|
1521
|
-
})), {}, {
|
|
1522
|
-
isValidating
|
|
1523
|
-
})
|
|
1524
|
-
};
|
|
1525
|
-
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, _objectSpread(_objectSpread({}, globalSections), {}, {
|
|
1526
|
-
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.NextSeo, {
|
|
1527
|
-
title: meta.title,
|
|
1528
|
-
description: meta.description,
|
|
1529
|
-
canonical: meta.canonical,
|
|
1530
|
-
openGraph: {
|
|
1531
|
-
type: 'og:product',
|
|
1532
|
-
url: meta.canonical,
|
|
1533
|
-
title: meta.title,
|
|
1534
|
-
description: meta.description,
|
|
1535
|
-
images: product.image.map(img => ({
|
|
1536
|
-
url: img.url,
|
|
1537
|
-
alt: img.alternateName
|
|
1538
|
-
}))
|
|
1539
|
-
},
|
|
1540
|
-
additionalMetaTags: [{
|
|
1541
|
-
property: 'product:price:amount',
|
|
1542
|
-
content: product.offers.lowPrice?.toString() ?? undefined
|
|
1543
|
-
}, {
|
|
1544
|
-
property: 'product:price:currency',
|
|
1545
|
-
content: currency.code
|
|
1546
|
-
}]
|
|
1547
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.BreadcrumbJsonLd, {
|
|
1548
|
-
itemListElements: product.breadcrumbList.itemListElement
|
|
1549
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.ProductJsonLd, {
|
|
1550
|
-
productName: product.name,
|
|
1551
|
-
description: product.description,
|
|
1552
|
-
brand: product.brand.name,
|
|
1553
|
-
sku: product.sku,
|
|
1554
|
-
gtin: product.gtin,
|
|
1555
|
-
releaseDate: product.releaseDate,
|
|
1556
|
-
images: product.image.map(img => img.url) // Somehow, Google does not understand this valid Schema.org schema, so we need to do conversions
|
|
1557
|
-
,
|
|
1558
|
-
offers: offers
|
|
1559
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_sdk_overrides_PageProvider__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .ZP, {
|
|
1560
|
-
context: context,
|
|
1561
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
|
1562
|
-
sections: sections,
|
|
1563
|
-
components: COMPONENTS
|
|
1564
|
-
})
|
|
1565
|
-
})]
|
|
1566
|
-
}));
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
const query = "ServerProductQuery";
|
|
1570
|
-
const getStaticProps = async ({
|
|
1571
|
-
params,
|
|
1572
|
-
previewData
|
|
1573
|
-
}) => {
|
|
1574
|
-
const slug = params?.slug ?? '';
|
|
1575
|
-
const [searchResult, cmsPage, globalSections] = await Promise.all([(0,src_server__WEBPACK_IMPORTED_MODULE_15__/* .execute */ .h)({
|
|
1576
|
-
variables: {
|
|
1577
|
-
locator: [{
|
|
1578
|
-
key: 'slug',
|
|
1579
|
-
value: slug
|
|
1580
|
-
}]
|
|
1581
|
-
},
|
|
1582
|
-
operationName: query
|
|
1583
|
-
}), (0,src_server_cms__WEBPACK_IMPORTED_MODULE_16__/* .getPage */ .f)(_objectSpread(_objectSpread({}, previewData?.contentType === 'pdp' ? previewData : null), {}, {
|
|
1584
|
-
contentType: 'pdp'
|
|
1585
|
-
})), (0,src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__/* .getGlobalSectionsData */ .Tc)(previewData)]);
|
|
1586
|
-
const {
|
|
1587
|
-
data,
|
|
1588
|
-
errors = []
|
|
1589
|
-
} = searchResult;
|
|
1590
|
-
const notFound = errors.find(_faststore_api__WEBPACK_IMPORTED_MODULE_0__/* .isNotFoundError */ .XD);
|
|
1591
|
-
|
|
1592
|
-
if (notFound) {
|
|
1593
|
-
return {
|
|
1594
|
-
notFound: true
|
|
1595
|
-
};
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
if (errors.length > 0) {
|
|
1599
|
-
throw errors[0];
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
const {
|
|
1603
|
-
seo
|
|
1604
|
-
} = data.product;
|
|
1605
|
-
const title = seo.title || (_faststore_config__WEBPACK_IMPORTED_MODULE_17___default().seo.title);
|
|
1606
|
-
const description = seo.description || (_faststore_config__WEBPACK_IMPORTED_MODULE_17___default().seo.description);
|
|
1607
|
-
const canonical = `${(_faststore_config__WEBPACK_IMPORTED_MODULE_17___default().storeUrl)}${seo.canonical}`;
|
|
1608
|
-
const meta = {
|
|
1609
|
-
title,
|
|
1610
|
-
description,
|
|
1611
|
-
canonical
|
|
1612
|
-
};
|
|
1613
|
-
let offer = {};
|
|
1614
|
-
|
|
1615
|
-
if (data.product.offers.offers.length > 0) {
|
|
1616
|
-
const _data$product$offers$ = data.product.offers.offers[0],
|
|
1617
|
-
{
|
|
1618
|
-
listPrice
|
|
1619
|
-
} = _data$product$offers$,
|
|
1620
|
-
offerData = _objectWithoutProperties(_data$product$offers$, _excluded);
|
|
1621
|
-
|
|
1622
|
-
offer = offerData;
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
const offers = _objectSpread(_objectSpread({}, offer), {}, {
|
|
1626
|
-
priceCurrency: data.product.offers.priceCurrency,
|
|
1627
|
-
url: canonical
|
|
1628
|
-
});
|
|
1629
|
-
|
|
1630
|
-
return {
|
|
1631
|
-
props: _objectSpread(_objectSpread({
|
|
1632
|
-
data
|
|
1633
|
-
}, cmsPage), {}, {
|
|
1634
|
-
meta,
|
|
1635
|
-
offers,
|
|
1636
|
-
globalSections,
|
|
1637
|
-
key: seo.canonical
|
|
1638
|
-
})
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
const getStaticPaths = async () => {
|
|
1642
|
-
return {
|
|
1643
|
-
paths: [],
|
|
1644
|
-
fallback: 'blocking'
|
|
1645
|
-
};
|
|
1646
|
-
};
|
|
1647
|
-
Page.displayName = 'Page';
|
|
1648
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_18__/* .mark */ .B)(Page));
|
|
1649
|
-
__webpack_async_result__();
|
|
1650
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
1651
|
-
|
|
1652
|
-
/***/ }),
|
|
1653
|
-
|
|
1654
|
-
/***/ 7853:
|
|
1655
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1656
|
-
|
|
1657
|
-
"use strict";
|
|
1658
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
1659
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1660
|
-
/* harmony export */ "F": () => (/* binding */ useProductQuery)
|
|
1661
|
-
/* harmony export */ });
|
|
1662
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
1663
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1664
|
-
/* harmony import */ var _graphql_useQuery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7732);
|
|
1665
|
-
/* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7295);
|
|
1666
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_graphql_useQuery__WEBPACK_IMPORTED_MODULE_2__]);
|
|
1667
|
-
_graphql_useQuery__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
const query = "ClientProductQuery";
|
|
1672
|
-
const useProductQuery = (productID, fallbackData) => {
|
|
1673
|
-
const {
|
|
1674
|
-
channel,
|
|
1675
|
-
locale
|
|
1676
|
-
} = (0,_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
|
|
1677
|
-
const variables = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
|
|
1678
|
-
if (!channel) {
|
|
1679
|
-
throw new Error(`useProductQuery: 'channel' from session is an empty string.`);
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
return {
|
|
1683
|
-
locator: [{
|
|
1684
|
-
key: 'id',
|
|
1685
|
-
value: productID
|
|
1686
|
-
}, {
|
|
1687
|
-
key: 'channel',
|
|
1688
|
-
value: channel
|
|
1689
|
-
}, {
|
|
1690
|
-
key: 'locale',
|
|
1691
|
-
value: locale
|
|
1692
|
-
}]
|
|
1693
|
-
};
|
|
1694
|
-
}, [channel, locale, productID]);
|
|
1695
|
-
return (0,_graphql_useQuery__WEBPACK_IMPORTED_MODULE_2__/* .useQuery */ .aM)(query, variables, {
|
|
1696
|
-
fallbackData,
|
|
1697
|
-
revalidateOnMount: true
|
|
1698
|
-
});
|
|
1699
|
-
};
|
|
1700
|
-
__webpack_async_result__();
|
|
1701
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
1702
|
-
|
|
1703
|
-
/***/ }),
|
|
1704
|
-
|
|
1705
|
-
/***/ 5411:
|
|
1706
|
-
/***/ ((module) => {
|
|
1707
|
-
|
|
1708
|
-
// Exports
|
|
1709
|
-
module.exports = {
|
|
1710
|
-
"section": "section_section__pVnFl"
|
|
1711
|
-
};
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
/***/ }),
|
|
1715
|
-
|
|
1716
|
-
/***/ 9034:
|
|
1717
|
-
/***/ ((module) => {
|
|
1718
|
-
|
|
1719
|
-
// Exports
|
|
1720
|
-
module.exports = {
|
|
1721
|
-
"section": "section_section__XsOoR"
|
|
1722
|
-
};
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
/***/ }),
|
|
1726
|
-
|
|
1727
|
-
/***/ 4691:
|
|
1728
|
-
/***/ ((module) => {
|
|
1729
|
-
|
|
1730
|
-
"use strict";
|
|
1731
|
-
module.exports = require("@opentelemetry/api");
|
|
1732
|
-
|
|
1733
|
-
/***/ }),
|
|
1734
|
-
|
|
1735
|
-
/***/ 8973:
|
|
1736
|
-
/***/ ((module) => {
|
|
1737
|
-
|
|
1738
|
-
"use strict";
|
|
1739
|
-
module.exports = require("@opentelemetry/api-logs");
|
|
1740
|
-
|
|
1741
|
-
/***/ }),
|
|
1742
|
-
|
|
1743
|
-
/***/ 6969:
|
|
1744
|
-
/***/ ((module) => {
|
|
1745
|
-
|
|
1746
|
-
"use strict";
|
|
1747
|
-
module.exports = require("@opentelemetry/exporter-logs-otlp-grpc");
|
|
1748
|
-
|
|
1749
|
-
/***/ }),
|
|
1750
|
-
|
|
1751
|
-
/***/ 5196:
|
|
1752
|
-
/***/ ((module) => {
|
|
1753
|
-
|
|
1754
|
-
"use strict";
|
|
1755
|
-
module.exports = require("@opentelemetry/exporter-trace-otlp-grpc");
|
|
1756
|
-
|
|
1757
|
-
/***/ }),
|
|
1758
|
-
|
|
1759
|
-
/***/ 4161:
|
|
1760
|
-
/***/ ((module) => {
|
|
1761
|
-
|
|
1762
|
-
"use strict";
|
|
1763
|
-
module.exports = require("@opentelemetry/resources");
|
|
1764
|
-
|
|
1765
|
-
/***/ }),
|
|
1766
|
-
|
|
1767
|
-
/***/ 2793:
|
|
1768
|
-
/***/ ((module) => {
|
|
1769
|
-
|
|
1770
|
-
"use strict";
|
|
1771
|
-
module.exports = require("@opentelemetry/sdk-logs");
|
|
1772
|
-
|
|
1773
|
-
/***/ }),
|
|
1774
|
-
|
|
1775
|
-
/***/ 1283:
|
|
1776
|
-
/***/ ((module) => {
|
|
1777
|
-
|
|
1778
|
-
"use strict";
|
|
1779
|
-
module.exports = require("@opentelemetry/sdk-trace-base");
|
|
1780
|
-
|
|
1781
|
-
/***/ }),
|
|
1782
|
-
|
|
1783
|
-
/***/ 6676:
|
|
1784
|
-
/***/ ((module) => {
|
|
1785
|
-
|
|
1786
|
-
"use strict";
|
|
1787
|
-
module.exports = require("@vtex/client-cms");
|
|
1788
|
-
|
|
1789
|
-
/***/ }),
|
|
1790
|
-
|
|
1791
|
-
/***/ 6330:
|
|
1792
|
-
/***/ ((module) => {
|
|
1793
|
-
|
|
1794
|
-
"use strict";
|
|
1795
|
-
module.exports = require("deepmerge");
|
|
1796
|
-
|
|
1797
|
-
/***/ }),
|
|
1798
|
-
|
|
1799
|
-
/***/ 8641:
|
|
1800
|
-
/***/ ((module) => {
|
|
1801
|
-
|
|
1802
|
-
"use strict";
|
|
1803
|
-
module.exports = require("draftjs-to-html");
|
|
1804
|
-
|
|
1805
|
-
/***/ }),
|
|
1806
|
-
|
|
1807
|
-
/***/ 2404:
|
|
1808
|
-
/***/ ((module) => {
|
|
1809
|
-
|
|
1810
|
-
"use strict";
|
|
1811
|
-
module.exports = require("fast-deep-equal");
|
|
1812
|
-
|
|
1813
|
-
/***/ }),
|
|
1814
|
-
|
|
1815
|
-
/***/ 7343:
|
|
1816
|
-
/***/ ((module) => {
|
|
1817
|
-
|
|
1818
|
-
"use strict";
|
|
1819
|
-
module.exports = require("graphql");
|
|
1820
|
-
|
|
1821
|
-
/***/ }),
|
|
1822
|
-
|
|
1823
|
-
/***/ 6548:
|
|
1824
|
-
/***/ ((module) => {
|
|
1825
|
-
|
|
1826
|
-
"use strict";
|
|
1827
|
-
module.exports = require("graphql/language");
|
|
1828
|
-
|
|
1829
|
-
/***/ }),
|
|
1830
|
-
|
|
1831
|
-
/***/ 3430:
|
|
1832
|
-
/***/ ((module) => {
|
|
1833
|
-
|
|
1834
|
-
"use strict";
|
|
1835
|
-
module.exports = require("idb-keyval");
|
|
1836
|
-
|
|
1837
|
-
/***/ }),
|
|
1838
|
-
|
|
1839
|
-
/***/ 7881:
|
|
1840
|
-
/***/ ((module) => {
|
|
1841
|
-
|
|
1842
|
-
"use strict";
|
|
1843
|
-
module.exports = require("isomorphic-unfetch");
|
|
1844
|
-
|
|
1845
|
-
/***/ }),
|
|
1846
|
-
|
|
1847
|
-
/***/ 6641:
|
|
1848
|
-
/***/ ((module) => {
|
|
1849
|
-
|
|
1850
|
-
"use strict";
|
|
1851
|
-
module.exports = require("next-seo");
|
|
1852
|
-
|
|
1853
|
-
/***/ }),
|
|
1854
|
-
|
|
1855
|
-
/***/ 3280:
|
|
1856
|
-
/***/ ((module) => {
|
|
1857
|
-
|
|
1858
|
-
"use strict";
|
|
1859
|
-
module.exports = require("next/dist/shared/lib/app-router-context.js");
|
|
1860
|
-
|
|
1861
|
-
/***/ }),
|
|
1862
|
-
|
|
1863
|
-
/***/ 2796:
|
|
1864
|
-
/***/ ((module) => {
|
|
1865
|
-
|
|
1866
|
-
"use strict";
|
|
1867
|
-
module.exports = require("next/dist/shared/lib/head-manager-context.js");
|
|
1868
|
-
|
|
1869
|
-
/***/ }),
|
|
1870
|
-
|
|
1871
|
-
/***/ 4957:
|
|
1872
|
-
/***/ ((module) => {
|
|
1873
|
-
|
|
1874
|
-
"use strict";
|
|
1875
|
-
module.exports = require("next/dist/shared/lib/head.js");
|
|
1876
|
-
|
|
1877
|
-
/***/ }),
|
|
1878
|
-
|
|
1879
|
-
/***/ 3539:
|
|
1880
|
-
/***/ ((module) => {
|
|
1881
|
-
|
|
1882
|
-
"use strict";
|
|
1883
|
-
module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
|
|
1884
|
-
|
|
1885
|
-
/***/ }),
|
|
1886
|
-
|
|
1887
|
-
/***/ 4014:
|
|
1888
|
-
/***/ ((module) => {
|
|
1889
|
-
|
|
1890
|
-
"use strict";
|
|
1891
|
-
module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
|
|
1892
|
-
|
|
1893
|
-
/***/ }),
|
|
1894
|
-
|
|
1895
|
-
/***/ 4486:
|
|
1896
|
-
/***/ ((module) => {
|
|
1897
|
-
|
|
1898
|
-
"use strict";
|
|
1899
|
-
module.exports = require("next/dist/shared/lib/image-blur-svg.js");
|
|
1900
|
-
|
|
1901
|
-
/***/ }),
|
|
1902
|
-
|
|
1903
|
-
/***/ 744:
|
|
1904
|
-
/***/ ((module) => {
|
|
1905
|
-
|
|
1906
|
-
"use strict";
|
|
1907
|
-
module.exports = require("next/dist/shared/lib/image-config-context.js");
|
|
1908
|
-
|
|
1909
|
-
/***/ }),
|
|
1910
|
-
|
|
1911
|
-
/***/ 5843:
|
|
1912
|
-
/***/ ((module) => {
|
|
1913
|
-
|
|
1914
|
-
"use strict";
|
|
1915
|
-
module.exports = require("next/dist/shared/lib/image-config.js");
|
|
1916
|
-
|
|
1917
|
-
/***/ }),
|
|
1918
|
-
|
|
1919
|
-
/***/ 8524:
|
|
1920
|
-
/***/ ((module) => {
|
|
1921
|
-
|
|
1922
|
-
"use strict";
|
|
1923
|
-
module.exports = require("next/dist/shared/lib/is-plain-object.js");
|
|
1924
|
-
|
|
1925
|
-
/***/ }),
|
|
1926
|
-
|
|
1927
|
-
/***/ 8020:
|
|
1928
|
-
/***/ ((module) => {
|
|
1929
|
-
|
|
1930
|
-
"use strict";
|
|
1931
|
-
module.exports = require("next/dist/shared/lib/mitt.js");
|
|
1932
|
-
|
|
1933
|
-
/***/ }),
|
|
1934
|
-
|
|
1935
|
-
/***/ 4406:
|
|
1936
|
-
/***/ ((module) => {
|
|
1937
|
-
|
|
1938
|
-
"use strict";
|
|
1939
|
-
module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
|
|
1940
|
-
|
|
1941
|
-
/***/ }),
|
|
1942
|
-
|
|
1943
|
-
/***/ 4964:
|
|
1944
|
-
/***/ ((module) => {
|
|
1945
|
-
|
|
1946
|
-
"use strict";
|
|
1947
|
-
module.exports = require("next/dist/shared/lib/router-context.js");
|
|
1948
|
-
|
|
1949
|
-
/***/ }),
|
|
1950
|
-
|
|
1951
|
-
/***/ 3431:
|
|
1952
|
-
/***/ ((module) => {
|
|
1953
|
-
|
|
1954
|
-
"use strict";
|
|
1955
|
-
module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
|
|
1956
|
-
|
|
1957
|
-
/***/ }),
|
|
1958
|
-
|
|
1959
|
-
/***/ 1751:
|
|
1960
|
-
/***/ ((module) => {
|
|
1961
|
-
|
|
1962
|
-
"use strict";
|
|
1963
|
-
module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
|
|
1964
|
-
|
|
1965
|
-
/***/ }),
|
|
1966
|
-
|
|
1967
|
-
/***/ 6220:
|
|
1968
|
-
/***/ ((module) => {
|
|
1969
|
-
|
|
1970
|
-
"use strict";
|
|
1971
|
-
module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
|
|
1972
|
-
|
|
1973
|
-
/***/ }),
|
|
1974
|
-
|
|
1975
|
-
/***/ 299:
|
|
1976
|
-
/***/ ((module) => {
|
|
1977
|
-
|
|
1978
|
-
"use strict";
|
|
1979
|
-
module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
|
|
1980
|
-
|
|
1981
|
-
/***/ }),
|
|
1982
|
-
|
|
1983
|
-
/***/ 3938:
|
|
1984
|
-
/***/ ((module) => {
|
|
1985
|
-
|
|
1986
|
-
"use strict";
|
|
1987
|
-
module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
|
|
1988
|
-
|
|
1989
|
-
/***/ }),
|
|
1990
|
-
|
|
1991
|
-
/***/ 9565:
|
|
1992
|
-
/***/ ((module) => {
|
|
1993
|
-
|
|
1994
|
-
"use strict";
|
|
1995
|
-
module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
|
|
1996
|
-
|
|
1997
|
-
/***/ }),
|
|
1998
|
-
|
|
1999
|
-
/***/ 5789:
|
|
2000
|
-
/***/ ((module) => {
|
|
2001
|
-
|
|
2002
|
-
"use strict";
|
|
2003
|
-
module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
|
|
2004
|
-
|
|
2005
|
-
/***/ }),
|
|
2006
|
-
|
|
2007
|
-
/***/ 1897:
|
|
2008
|
-
/***/ ((module) => {
|
|
2009
|
-
|
|
2010
|
-
"use strict";
|
|
2011
|
-
module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
|
|
2012
|
-
|
|
2013
|
-
/***/ }),
|
|
2014
|
-
|
|
2015
|
-
/***/ 1428:
|
|
2016
|
-
/***/ ((module) => {
|
|
2017
|
-
|
|
2018
|
-
"use strict";
|
|
2019
|
-
module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
|
|
2020
|
-
|
|
2021
|
-
/***/ }),
|
|
2022
|
-
|
|
2023
|
-
/***/ 8854:
|
|
2024
|
-
/***/ ((module) => {
|
|
2025
|
-
|
|
2026
|
-
"use strict";
|
|
2027
|
-
module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
|
|
2028
|
-
|
|
2029
|
-
/***/ }),
|
|
2030
|
-
|
|
2031
|
-
/***/ 1292:
|
|
2032
|
-
/***/ ((module) => {
|
|
2033
|
-
|
|
2034
|
-
"use strict";
|
|
2035
|
-
module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
|
|
2036
|
-
|
|
2037
|
-
/***/ }),
|
|
2038
|
-
|
|
2039
|
-
/***/ 4567:
|
|
2040
|
-
/***/ ((module) => {
|
|
2041
|
-
|
|
2042
|
-
"use strict";
|
|
2043
|
-
module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
|
|
2044
|
-
|
|
2045
|
-
/***/ }),
|
|
2046
|
-
|
|
2047
|
-
/***/ 979:
|
|
2048
|
-
/***/ ((module) => {
|
|
2049
|
-
|
|
2050
|
-
"use strict";
|
|
2051
|
-
module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
|
|
2052
|
-
|
|
2053
|
-
/***/ }),
|
|
2054
|
-
|
|
2055
|
-
/***/ 3297:
|
|
2056
|
-
/***/ ((module) => {
|
|
2057
|
-
|
|
2058
|
-
"use strict";
|
|
2059
|
-
module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
|
|
2060
|
-
|
|
2061
|
-
/***/ }),
|
|
2062
|
-
|
|
2063
|
-
/***/ 6052:
|
|
2064
|
-
/***/ ((module) => {
|
|
2065
|
-
|
|
2066
|
-
"use strict";
|
|
2067
|
-
module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
|
|
2068
|
-
|
|
2069
|
-
/***/ }),
|
|
2070
|
-
|
|
2071
|
-
/***/ 4226:
|
|
2072
|
-
/***/ ((module) => {
|
|
2073
|
-
|
|
2074
|
-
"use strict";
|
|
2075
|
-
module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
|
|
2076
|
-
|
|
2077
|
-
/***/ }),
|
|
2078
|
-
|
|
2079
|
-
/***/ 5052:
|
|
2080
|
-
/***/ ((module) => {
|
|
2081
|
-
|
|
2082
|
-
"use strict";
|
|
2083
|
-
module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
|
|
2084
|
-
|
|
2085
|
-
/***/ }),
|
|
2086
|
-
|
|
2087
|
-
/***/ 9232:
|
|
2088
|
-
/***/ ((module) => {
|
|
2089
|
-
|
|
2090
|
-
"use strict";
|
|
2091
|
-
module.exports = require("next/dist/shared/lib/utils.js");
|
|
2092
|
-
|
|
2093
|
-
/***/ }),
|
|
2094
|
-
|
|
2095
|
-
/***/ 1853:
|
|
2096
|
-
/***/ ((module) => {
|
|
2097
|
-
|
|
2098
|
-
"use strict";
|
|
2099
|
-
module.exports = require("next/router");
|
|
2100
|
-
|
|
2101
|
-
/***/ }),
|
|
2102
|
-
|
|
2103
|
-
/***/ 5471:
|
|
2104
|
-
/***/ ((module) => {
|
|
2105
|
-
|
|
2106
|
-
"use strict";
|
|
2107
|
-
module.exports = require("p-limit");
|
|
2108
|
-
|
|
2109
|
-
/***/ }),
|
|
2110
|
-
|
|
2111
|
-
/***/ 1423:
|
|
2112
|
-
/***/ ((module) => {
|
|
2113
|
-
|
|
2114
|
-
"use strict";
|
|
2115
|
-
module.exports = require("path");
|
|
2116
|
-
|
|
2117
|
-
/***/ }),
|
|
2118
|
-
|
|
2119
|
-
/***/ 6689:
|
|
2120
|
-
/***/ ((module) => {
|
|
2121
|
-
|
|
2122
|
-
"use strict";
|
|
2123
|
-
module.exports = require("react");
|
|
2124
|
-
|
|
2125
|
-
/***/ }),
|
|
2126
|
-
|
|
2127
|
-
/***/ 6405:
|
|
2128
|
-
/***/ ((module) => {
|
|
2129
|
-
|
|
2130
|
-
"use strict";
|
|
2131
|
-
module.exports = require("react-dom");
|
|
2132
|
-
|
|
2133
|
-
/***/ }),
|
|
2134
|
-
|
|
2135
|
-
/***/ 9785:
|
|
2136
|
-
/***/ ((module) => {
|
|
2137
|
-
|
|
2138
|
-
"use strict";
|
|
2139
|
-
module.exports = require("react-intersection-observer");
|
|
2140
|
-
|
|
2141
|
-
/***/ }),
|
|
2142
|
-
|
|
2143
|
-
/***/ 3789:
|
|
2144
|
-
/***/ ((module) => {
|
|
2145
|
-
|
|
2146
|
-
"use strict";
|
|
2147
|
-
module.exports = require("react-swipeable");
|
|
2148
|
-
|
|
2149
|
-
/***/ }),
|
|
2150
|
-
|
|
2151
|
-
/***/ 997:
|
|
2152
|
-
/***/ ((module) => {
|
|
2153
|
-
|
|
2154
|
-
"use strict";
|
|
2155
|
-
module.exports = require("react/jsx-runtime");
|
|
2156
|
-
|
|
2157
|
-
/***/ }),
|
|
2158
|
-
|
|
2159
|
-
/***/ 6109:
|
|
2160
|
-
/***/ ((module) => {
|
|
2161
|
-
|
|
2162
|
-
"use strict";
|
|
2163
|
-
module.exports = require("sanitize-html");
|
|
2164
|
-
|
|
2165
|
-
/***/ }),
|
|
2166
|
-
|
|
2167
|
-
/***/ 3823:
|
|
2168
|
-
/***/ ((module) => {
|
|
2169
|
-
|
|
2170
|
-
"use strict";
|
|
2171
|
-
module.exports = require("tabbable");
|
|
2172
|
-
|
|
2173
|
-
/***/ }),
|
|
2174
|
-
|
|
2175
|
-
/***/ 9664:
|
|
2176
|
-
/***/ ((module) => {
|
|
2177
|
-
|
|
2178
|
-
"use strict";
|
|
2179
|
-
module.exports = import("@envelop/core");;
|
|
2180
|
-
|
|
2181
|
-
/***/ }),
|
|
2182
|
-
|
|
2183
|
-
/***/ 7886:
|
|
2184
|
-
/***/ ((module) => {
|
|
2185
|
-
|
|
2186
|
-
"use strict";
|
|
2187
|
-
module.exports = import("@envelop/graphql-jit");;
|
|
2188
|
-
|
|
2189
|
-
/***/ }),
|
|
2190
|
-
|
|
2191
|
-
/***/ 4656:
|
|
2192
|
-
/***/ ((module) => {
|
|
2193
|
-
|
|
2194
|
-
"use strict";
|
|
2195
|
-
module.exports = import("@envelop/parser-cache");;
|
|
2196
|
-
|
|
2197
|
-
/***/ }),
|
|
2198
|
-
|
|
2199
|
-
/***/ 6093:
|
|
2200
|
-
/***/ ((module) => {
|
|
2201
|
-
|
|
2202
|
-
"use strict";
|
|
2203
|
-
module.exports = import("@envelop/validation-cache");;
|
|
2204
|
-
|
|
2205
|
-
/***/ }),
|
|
2206
|
-
|
|
2207
|
-
/***/ 5774:
|
|
2208
|
-
/***/ ((module) => {
|
|
2209
|
-
|
|
2210
|
-
"use strict";
|
|
2211
|
-
module.exports = import("@graphql-tools/load-files");;
|
|
2212
|
-
|
|
2213
|
-
/***/ }),
|
|
2214
|
-
|
|
2215
|
-
/***/ 6550:
|
|
2216
|
-
/***/ ((module) => {
|
|
2217
|
-
|
|
2218
|
-
"use strict";
|
|
2219
|
-
module.exports = import("@graphql-tools/schema");;
|
|
2220
|
-
|
|
2221
|
-
/***/ }),
|
|
2222
|
-
|
|
2223
|
-
/***/ 8722:
|
|
2224
|
-
/***/ ((module) => {
|
|
2225
|
-
|
|
2226
|
-
"use strict";
|
|
2227
|
-
module.exports = import("@graphql-tools/utils");;
|
|
2228
|
-
|
|
2229
|
-
/***/ }),
|
|
2230
|
-
|
|
2231
|
-
/***/ 7564:
|
|
2232
|
-
/***/ ((module) => {
|
|
2233
|
-
|
|
2234
|
-
"use strict";
|
|
2235
|
-
module.exports = import("chalk");;
|
|
2236
|
-
|
|
2237
|
-
/***/ }),
|
|
2238
|
-
|
|
2239
|
-
/***/ 5941:
|
|
2240
|
-
/***/ ((module) => {
|
|
2241
|
-
|
|
2242
|
-
"use strict";
|
|
2243
|
-
module.exports = import("swr");;
|
|
2244
|
-
|
|
2245
|
-
/***/ }),
|
|
2246
|
-
|
|
2247
|
-
/***/ 6113:
|
|
2248
|
-
/***/ ((module) => {
|
|
2249
|
-
|
|
2250
|
-
"use strict";
|
|
2251
|
-
module.exports = require("crypto");
|
|
2252
|
-
|
|
2253
|
-
/***/ })
|
|
2254
|
-
|
|
2255
|
-
};
|
|
2256
|
-
;
|
|
2257
|
-
|
|
2258
|
-
// load runtime
|
|
2259
|
-
var __webpack_require__ = require("../../webpack-runtime.js");
|
|
2260
|
-
__webpack_require__.C(exports);
|
|
2261
|
-
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
2262
|
-
var __webpack_exports__ = __webpack_require__.X(0, [676,825,404,183,177,74,53,779,854,117,184,979,390,350,693], () => (__webpack_exec__(5779)));
|
|
2263
|
-
module.exports = __webpack_exports__;
|
|
2264
|
-
|
|
2265
|
-
})();
|
|
1
|
+
(()=>{var e={};e.id=103,e.ids=[103,888,660],e.modules={8545:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var i=r(7542),n=r(9856),o=r(9089),s=r(8907),l=r.n(s),c=r(997),p=e([n]);n=(p.then?(await p)():p)[0];let __WEBPACK_DEFAULT_EXPORT__=function({banner:e,newsletter:t}){return c.jsx(o.Z,{className:`${l().section} section-banner-newsletter`,children:(0,c.jsxs)("div",{"data-fs-banner-text-newsletter":!0,"data-fs-content":"banner-newsletter",children:[c.jsx(i.i,{title:e.title,caption:e.caption,link:e?.link,variant:e.variant,colorVariant:e.colorVariant}),c.jsx(n.O,{card:!0,colorVariant:t.colorVariant,title:t.title,description:t.description,icon:t.icon,privacyPolicy:t.privacyPolicy,emailInputLabel:t.emailInputLabel,displayNameInput:t.displayNameInput,nameInputLabel:t.nameInputLabel,subscribeButtonLabel:t.subscribeButtonLabel,subscribeButtonLoadingLabel:t.subscribeButtonLoadingLabel,toastSubscribe:t.toastSubscribe,toastSubscribeError:t.toastSubscribeError})]})})};a()}catch(e){a(e)}})},989:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>g});var i=r(6689),n=r(6369),o=r(9785),s=r(4960),l=r(1958),c=r.n(l),p=r(9089),u=r(2758),d=r(7296),m=r(997),f=e([n]);n=(f.then?(await f)():f)[0];let b=(0,d.B)("CrossSellingShelf",({numberOfItems:e,itemsPerPage:t,title:r,kind:a})=>{let{ref:l,inView:u}=(0,o.useInView)(),d=(0,s.al)(),f=d?.data?.product?.isVariantOf?.productGroupID,b=(0,i.useMemo)(()=>[{key:a,value:f}],[a,f]);return m.jsx(p.Z,{className:`${c().section} section-product-shelf layout__section`,ref:l,children:m.jsx(n.Z,{inView:u,numberOfItems:e,itemsPerPage:t,title:r,selectedFacets:b})})},u.q),g=b;a()}catch(e){a(e)}})},2758:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var a=r(6737),i=r(6068),n=r(8314);let o={ProductShelf:a.Z,__experimentalCarousel:n.Z,__experimentalProductCard:i.Z}},2563:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>s});var i=r(7296),n=r(989),o=e([n]);n=(o.then?(await o)():o)[0];let s=(0,i.v)({Section:n.Z});a()}catch(e){a(e)}})},2015:(e,t,r)=>{"use strict";r.d(t,{L:()=>ee});var a=r(7296),i=r(6689),n=r.n(i),o=r(1072),s=r(113),l=r(1868),c=r(9089),p=r(1516),u=r(783),d=r(7734),m=r(7583),f=r(997);let ProductDescription_ProductDescription=function({descriptionData:e,initiallyExpanded:t="first"}){let r=(0,i.useMemo)(()=>({none:[],first:[0],all:[0,1,2,3]}),[]),{0:a,1:n}=(0,i.useState)(new Set(r[t]));return f.jsx("section",{"data-fs-product-description":!0,children:f.jsx(p.Z,{indices:a,onChange:e=>{n(t=>{let r=new Set(t);return t.has(e)?r.delete(e):r.add(e),r})},"aria-label":"Product Details Content",children:e.map(({title:e,content:t},r)=>(0,f.jsxs)(u.Z,{as:"article",index:r,prefixId:"product-description","data-fs-product-details-description":!0,children:[f.jsx(d.Z,{children:e}),f.jsx(m.Z,{children:f.jsx("div",{"data-fs-product-details-description-content":!0,dangerouslySetInnerHTML:{__html:t}})})]},String(r)))})})};var b=r(6652),g=r(3218);let useBuyButton=e=>{let{openCart:t}=(0,b.l)(),{currency:{code:r}}=(0,l.kP)(),a=(0,i.useCallback)(a=>{a.preventDefault(),e&&((0,o._)({name:"add_to_cart",params:{currency:r,value:e.price*e.quantity,items:[{item_id:e.itemOffered.isVariantOf.productGroupID,item_name:e.itemOffered.isVariantOf.name,item_brand:e.itemOffered.brand.name,item_variant:e.itemOffered.sku,quantity:e.quantity,price:e.price,discount:e.listPrice-e.price,currency:r,item_variant_name:e.itemOffered.name,product_reference_id:e.itemOffered.gtin}]}}),g.i8.addItem(e),t())},[r,e,t]);return{onClick:a,"data-testid":"buy-button","data-sku":e?.itemOffered.sku,"data-seller":e?.seller.identifier}};var y=r(1664),j=r.n(y),h=r(8918),S=r(4329);let P=["src","alt"],O=["slugsMap","activeVariations","availableVariations"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let ImageComponent=e=>{let{src:t,alt:r}=e,a=_objectWithoutProperties(e,P);return f.jsx(h.Z,_objectSpread({src:t,alt:r,width:34,height:34},a))},SkuSelector_Selectors=function(e){let{slugsMap:t,activeVariations:r,availableVariations:a}=e,n=_objectWithoutProperties(e,O),{SkuSelector:o}=(0,S.r3)();return f.jsx("section",_objectSpread(_objectSpread({},n),{},{children:a&&Object.keys(a).map(e=>(0,i.createElement)(o.Component,_objectSpread(_objectSpread({ImageComponent:ImageComponent},o.props),{},{key:e,skuPropertyName:e,availableVariations:a,activeVariations:r,slugsMap:t,linkProps:_objectSpread(_objectSpread({},o.props.linkProps??{}),{},{as:o.props.linkProps?.as??j(),legacyBehavior:o.props.linkProps?.legacyBehavior??!1})})))}))};function AddToCartLoadingSkeleton(){return(0,f.jsxs)("svg",{role:"img",width:"100%",height:"48","aria-labelledby":"loading-aria",viewBox:"0 0 112 48",preserveAspectRatio:"none",children:[f.jsx("title",{id:"loading-aria",children:"Loading..."}),f.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(#clip-path)",style:{fill:'url("#fill")'}}),(0,f.jsxs)("defs",{children:[f.jsx("clipPath",{id:"clip-path",children:f.jsx("rect",{x:"0",y:"0",rx:"2",ry:"2",width:"112",height:"48"})}),(0,f.jsxs)("linearGradient",{id:"fill",children:[f.jsx("stop",{offset:"0.599964",stopColor:"#f3f3f3",stopOpacity:"1",children:f.jsx("animate",{attributeName:"offset",values:"-2; -2; 1",keyTimes:"0; 0.25; 1",dur:"2s",repeatCount:"indefinite"})}),f.jsx("stop",{offset:"1.59996",stopColor:"#ecebeb",stopOpacity:"1",children:f.jsx("animate",{attributeName:"offset",values:"-1; -1; 2",keyTimes:"0; 0.25; 1",dur:"2s",repeatCount:"indefinite"})}),f.jsx("stop",{offset:"2.59996",stopColor:"#f3f3f3",stopOpacity:"1",children:f.jsx("animate",{attributeName:"offset",values:"0; 0; 3",keyTimes:"0; 0.25; 1",dur:"2s",repeatCount:"indefinite"})})]})]})]})}function ProductDetailsSettings_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ProductDetailsSettings_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ProductDetailsSettings_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ProductDetailsSettings_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ProductDetails_ProductDetailsSettings=function({product:e,buyButtonTitle:t,isValidating:r,quantity:a,setQuantity:n,buyButtonIcon:{icon:o,alt:l},notAvailableButtonTitle:c}){let{BuyButton:p,Icon:u,ProductPrice:d,QuantitySelector:m,__experimentalNotAvailableButton:b}=(0,S.r3)(),{id:g,sku:y,gtin:j,name:h,brand:P,isVariantOf:O,isVariantOf:{skuVariants:v},image:_,additionalProperty:w,offers:{offers:[{availability:x,price:D,listPrice:k,seller:E}]}}=e,C=useBuyButton({id:g,price:D,listPrice:k,seller:E,quantity:a,itemOffered:{sku:y,name:h,gtin:j,image:_,brand:P,isVariantOf:O,additionalProperty:w}}),I=(0,i.useMemo)(()=>"https://schema.org/OutOfStock"===x,[x]);return(0,f.jsxs)(f.Fragment,{children:[!I&&(0,f.jsxs)("section",{"data-fs-product-details-values":!0,children:[f.jsx(d.Component,ProductDetailsSettings_objectSpread({"data-fs-product-details-prices":!0,value:D,listPrice:k,formatter:s.P},d.props)),f.jsx(m.Component,ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({min:1,max:10},m.props),{},{onChange:n}))]}),v&&f.jsx(SkuSelector_Selectors,{slugsMap:v.slugsMap,availableVariations:v.availableVariations,activeVariations:v.activeVariations,"data-fs-product-details-selectors":!0}),r?f.jsx(AddToCartLoadingSkeleton,{}):f.jsx(()=>I?f.jsx(b.Component,{children:c}):f.jsx(p.Component,ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({},p.props),{},{icon:f.jsx(u.Component,ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({},u.props),{},{name:o??u.props.name,"aria-label":l??u.props["aria-label"]}))},C),{},{children:t||"Add to Cart"})),{})]})};var v=r(5397),_=r.n(v),w=r(4960),x=r(3024);let D=(0,i.forwardRef)(function({title:e,label:t,refTag:r="Ref.: ",refNumber:a,testId:i="fs-product-title",ratingValue:o,...s},l){return n().createElement("header",{ref:l,"data-fs-product-title":!0,"data-testid":i,...s},n().createElement("div",{"data-fs-product-title-header":!0},e,!!t&&t),(a||o)&&n().createElement("div",{"data-fs-product-title-addendum":!0},o&&n().createElement(x.Z,{value:o}),a&&n().createElement(n().Fragment,null,r," ",a)))});var k=r(2946),E=r(3339),C=r(2614),I=r(9088),q=r(6693),Z=r(1953),B=r(727),L=r(5450);let getImageName=e=>{let t=new URL(e).pathname,r=t.split("/").slice(-1)[0];return r},useDefineVariant=(e,t)=>(0,i.useMemo)(()=>{if(t)return t;let r=e.every(e=>e.hexColor);if(r)return"color";let a=e[0]?.src&&getImageName(e[0].src),i=e.every(e=>{if(!e.src)return!0;let t=getImageName(e.src);return t===a});return i?"label":"image"},[e,t]),useSkuSlug=(e,t,r,a)=>{let n=(0,i.useCallback)(i=>{if(a)return{getItemHrefProp:a};let n=`/${function(e,t,r){let a=Object.entries(t).flat().join("-");if(a in e)return e[a];let i=Object.keys(e),n=i.find(e=>e.includes(`${r}-${t[r]}`));return e[n??i[0]]}(t,{...e,[r]:i.value},r)}/p`;return n},[e,a,t,r]);return{getItemHref:n}},ImageComponentFallback=({src:e,alt:t,...r})=>n().createElement("img",{src:e,alt:t,...r}),G=(0,i.forwardRef)(function({availableVariations:e,skuPropertyName:t,testId:r,activeVariations:a,linkProps:i,slugsMap:o,getItemHref:s,ImageComponent:l=ImageComponentFallback,variant:c,...p},u){let d=a[t],m=e[t],f=useDefineVariant(m,c),{getItemHref:b}=useSkuSlug(a,o,t,s);return n().createElement("div",{ref:u,"data-fs-sku-selector":!0,"data-testid":r,"data-fs-sku-selector-variant":f,...p},t&&n().createElement(Z.Z,{"data-fs-sku-selector-title":!0},t,": ",n().createElement("strong",null,d)),n().createElement("ul",{"data-fs-sku-selector-list":!0},m.map((e,r)=>n().createElement("li",{key:String(r),title:e.label,"data-fs-sku-selector-option":!0,"data-fs-sku-selector-disabled":e.disabled,"data-fs-sku-selector-checked":e.value===a[t]},n().createElement(B.Z,{"data-fs-sku-selector-option-link":!0,href:b(e),...i},n().createElement(L.Z,{text:e.label})),"label"===f&&n().createElement("span",null,e.value),"image"===f&&l&&n().createElement("span",null,n().createElement(l,{src:e.src??"",alt:e.alt??"","data-fs-sku-selector-option-image":!0})),"color"===f&&n().createElement("span",null,n().createElement("div",{"data-fs-sku-selector-option-color":!0,title:e.value,style:{"--data-fs-sku-selector-option-color-bkg-color":e.hexColor}}))))))});var T=r(3779);let K=(0,i.forwardRef)(function({children:e,variant:t="colored",testId:r="fs-table",...a},i){return n().createElement("div",{"data-fs-table":!0},n().createElement("table",{ref:i,"data-fs-table-content":!0,"data-fs-table-variant":t,"data-testid":r,...a},e))}),N=(0,i.forwardRef)(function({children:e,testId:t="fs-table-body",...r},a){return n().createElement("tbody",{ref:a,"data-testid":t,"data-fs-table-body":!0,...r},e)}),V=(0,i.forwardRef)(function({children:e,testId:t="fs-table-row",...r},a){return n().createElement("tr",{ref:a,"data-fs-table-row":!0,"data-testid":t,...r},e)}),M=(0,i.forwardRef)(function({scope:e,align:t,children:r,variant:a="data",testId:i="fs-table-cell",...o},s){return n().createElement("header"===a?"th":"td",{ref:s,"data-fs-table-cell":a,"data-fs-table-cell-align":t,"data-testid":i,scope:e,...o},r)});var A=r(9767),F=r(9785),R=r(7041);let moveScroll=(e,t)=>{e&&(e.scrollHeight>e.clientHeight?(e.style.overflow="auto",window.requestAnimationFrame(()=>e.scrollTo({top:t,behavior:"smooth"})),setTimeout(()=>e.style.overflow="hidden",2e3)):e.scrollLeft+=t)},hasScroll=e=>!!e&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth),ImageGallery_ImageGallerySelector=function({images:e,onSelect:t,ImageComponent:r,currentImageIdx:a,testId:o="fs-image-gallery-selector","aria-label":s="Product Images",navigationButtonLeftAriaLabel:l="Backward slide image selector",navigationButtonRightAriaLabel:c="Forward slide image selector"}){let p=(0,i.useRef)(null),u=hasScroll(p.current),[d,m]=(0,i.useState)(!0),[f,b]=(0,i.useState)(!0),g=(0,i.useCallback)((t,r)=>{0===t&&m(r),t===e.length-1&&b(r)},[e.length]);return n().createElement("section",{"data-fs-image-gallery-selector":!0,"data-testid":o,"aria-label":s},u&&!d&&n().createElement("div",{"data-fs-image-gallery-selector-control":!0},n().createElement(R.Z,{"data-fs-image-gallery-selector-control-button":!0,"aria-label":l,icon:n().createElement(C.Z,{name:"ArrowLeft"}),onClick:()=>moveScroll(p.current,-400)})),n().createElement("div",{"data-fs-image-gallery-selector-elements":!0,ref:p},e.map((i,o)=>n().createElement(F.InView,{key:o,onChange:e=>g(o,e)},n().createElement(E.Z,{key:o,"aria-label":`${i.alternateName} - Image ${o+1} of ${e.length}`,onClick:()=>t(o),"data-fs-image-gallery-selector-thumbnail":o===a?"selected":"true"},n().createElement(r,{url:i.url??"",loading:0===o?"eager":"lazy",alternateName:i.alternateName??""}))))),u&&!f&&n().createElement("div",{"data-fs-image-gallery-selector-control":!0},n().createElement(R.Z,{"data-fs-image-gallery-selector-control-button":!0,"aria-label":c,icon:n().createElement(C.Z,{name:"ArrowLeft"}),onClick:()=>moveScroll(p.current,400)})))},$=(0,i.forwardRef)(function({images:e,children:t,ImageComponent:r,selectedImageIdx:a,setSelectedImageIdx:i,testId:o="fs-image-gallery",...s},l){let c=e.length>1;return n().createElement("section",{ref:l,"data-fs-image-gallery":c?"with-selector":"without-selector","data-testid":o,...s},t,c&&n().createElement(ImageGallery_ImageGallerySelector,{images:e,onSelect:i,currentImageIdx:a,ImageComponent:r}))});var z=r(1163);let W=["images"];function ImageGallery_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ImageGallery_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ImageGallery_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ImageGallery_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ImageGallery_ImageComponent=({url:e,alternateName:t})=>{let{__experimentalImageGalleryImage:r}=(0,S.r3)();return f.jsx(r.Component,{src:e,alt:t,width:68,height:68})};var H=r(3523),Q=r(2495);let U=H.Pq,getShippingSimulation=async({items:e,postalCode:t,country:r})=>{let a=await (0,Q.W)(U,{items:e,postalCode:t,country:r});return a};function useShippingSimulation_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function useShippingSimulation_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?useShippingSimulation_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):useShippingSimulation_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let createEmptySimulation=()=>({input:{postalCode:"",displayClearButton:!1,errorMessage:""},shippingSimulation:void 0}),reducer=(e,t)=>{let{type:r}=t;switch(r){case"clear":return createEmptySimulation();case"update":{let{payload:r}=t;return{input:useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({},e.input),r.input),shippingSimulation:useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({},e.shippingSimulation),r.shippingSimulation)}}case"onInput":{let{payload:r}=t;return useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({},e),{},{input:useShippingSimulation_objectSpread({},r)})}case"onError":{let{payload:r}=t;return useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({},e),{},{input:useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({},e.input),r)})}default:throw Error(`Action ${r} not implemented`)}},useShippingSimulation=e=>{let{0:{input:t,shippingSimulation:r},1:a}=(0,i.useReducer)(reducer,null,createEmptySimulation),{country:n,postalCode:o}=(0,l.kP)(),{postalCode:s}=t,c=(0,i.useRef)(s);(0,i.useEffect)(()=>{let t=o&&!c.current;t&&async function(){let t=await getShippingSimulation({country:n,postalCode:o??"",items:[e]}),r=t.shipping;a({type:"update",payload:{input:{postalCode:o??"",displayClearButton:!0,errorMessage:""},shippingSimulation:r}})}()},[n,o,e]);let p=(0,i.useCallback)(async()=>{try{let t=await getShippingSimulation({country:n,postalCode:s??"",items:[e]}),r=t.shipping;a({type:"update",payload:{input:{displayClearButton:!0,errorMessage:""},shippingSimulation:r}})}catch(e){a({type:"onError",payload:{displayClearButton:!0,errorMessage:"You entered an invalid Postal Code"}})}},[n,e,s]),u=(0,i.useCallback)(e=>{let t=e.currentTarget.value;t?a({type:"onInput",payload:{postalCode:t,displayClearButton:!1,errorMessage:""}}):a({type:"clear"})},[]);return{input:t,shippingSimulation:r,handleOnClear:()=>{a({type:"clear"})},handleSubmit:p,handleOnInput:u}},X=["productShippingInfo","formatter","inputLabel","title","idkPostalCodeLinkProps"];function ShippingSimulation_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}let J={ProductTitle:D,DiscountBadge:k.Z,BuyButton:function({testId:e="fs-buy-button",icon:t,children:r,...a}){return n().createElement(E.Z,{"data-fs-buy-button":!0,icon:t,iconPosition:"left","data-testid":e,...a},r)},Icon:C.Z,ProductPrice:I.Z,QuantitySelector:q.Z,SkuSelector:G,ShippingSimulation:function({testId:e="fs-shipping-simulation",formatter:t,title:r="Shipping",inputLabel:a="Postal Code",optionsLabel:i="Shipping options",idkPostalCodeLinkProps:o,onInput:s,onSubmit:l,onClear:c,location:p,options:u=[],displayClearButton:d=!1,errorMessage:m,postalCode:f,...b}){let g=!!u&&u.length>0;return n().createElement("section",{"data-fs-shipping-simulation":!0,"data-fs-shipping-simulation-empty":g?"false":"true","data-testid":e,...b},n().createElement("h2",{"data-fs-shipping-simulation-title":!0},r),n().createElement(T.Z,{actionable:!0,error:m,id:`${e}-input-field`,label:a,value:f,onInput:e=>s?.(e),onSubmit:()=>l?.(),onClear:()=>c?.(),displayClearButton:d}),n().createElement(B.Z,{href:"/","data-fs-shipping-simulation-link":!0,size:"small",...o},o?.children??n().createElement(n().Fragment,null,"I don't know my Postal Code",n().createElement(C.Z,{name:"ArrowSquareOut",width:20,height:20}))),g&&n().createElement(n().Fragment,null,n().createElement("header",{"data-fs-shipping-simulation-header":!0},n().createElement("h3",{"data-fs-shipping-simulation-subtitle":!0},i),n().createElement("p",{"data-fs-shipping-simulation-location":!0},p)),n().createElement(K,null,n().createElement(N,null,u.map(e=>n().createElement(V,{key:e.carrier},n().createElement(M,{align:"left"},e.carrier),n().createElement(M,null,e.localizedEstimates),n().createElement(M,{align:"right"},e.price&&n().createElement(A.Z,{formatter:t,value:e.price,SRText:"price"}))))))))},ImageGallery:$,ImageGalleryViewer:({children:e})=>n().createElement(n().Fragment,null,e),__experimentalImageGalleryImage:h.Z,__experimentalImageGallery:e=>{let{images:t}=e,r=function(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,W),{ImageGallery:a,ImageGalleryViewer:n,__experimentalImageGalleryImage:o}=(0,S.r3)(),{0:s,1:l}=(0,i.useState)(0),c=t[s]??t[0],p=(0,z.useRouter)().asPath;return(0,i.useEffect)(()=>l(0),[p]),f.jsx(a.Component,ImageGallery_objectSpread(ImageGallery_objectSpread(ImageGallery_objectSpread({},a.props),{},{images:t,ImageComponent:ImageGallery_ImageComponent,selectedImageIdx:s,setSelectedImageIdx:l},r),{},{children:f.jsx(n.Component,ImageGallery_objectSpread(ImageGallery_objectSpread({},n.props),{},{children:f.jsx(o.Component,ImageGallery_objectSpread(ImageGallery_objectSpread({sizes:"(max-width: 360px) 50vw, (max-width: 768px) 90vw, 50vw",width:691,height:691*(3/4),loading:"eager"},o.props),{},{src:c.url,alt:c.alternateName}))}))}))},__experimentalShippingSimulation:function(e){let{productShippingInfo:t,formatter:r,inputLabel:a,title:i,idkPostalCodeLinkProps:n}=e,o=function(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,X),{ShippingSimulation:s}=(0,S.r3)(),{input:l,shippingSimulation:c,handleSubmit:p,handleOnInput:u,handleOnClear:d}=useShippingSimulation(t),{postalCode:m,displayClearButton:b,errorMessage:g}=l,y=[c?.address?.neighborhood,c?.address?.city].filter(Boolean).join(" / ")??"",j=c?.logisticsInfo?.[0]?.slas??[];return f.jsx(s.Component,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ShippingSimulation_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ShippingSimulation_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({formatter:r,onInput:u,onSubmit:p,onClear:d,location:y,options:j,address:c?.address,displayClearButton:b,errorMessage:g,postalCode:m,inputLabel:a,title:i,idkPostalCodeLinkProps:n},o))},__experimentalNotAvailableButton:function({children:e}){return f.jsx(E.Z,{variant:"primary",disabled:!0,"data-fs-buy-button":!0,children:e})}};function ProductDetails_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ProductDetails_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ProductDetails_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ProductDetails_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let Y=(0,a.B)("ProductDetails",function({productTitle:{refNumber:e,discountBadge:{showDiscountBadge:t,size:r}},buyButton:{icon:a,title:n},shippingSimulator:{title:p,inputLabel:u,shippingOptionsTableTitle:d,link:{to:m,text:b}},productDescription:{title:g,initiallyExpanded:y,displayDescription:j},notAvailableButton:{title:h}}){let{DiscountBadge:P,ProductTitle:O,__experimentalImageGallery:v,__experimentalShippingSimulation:x,__experimentalNotAvailableButton:D}=(0,S.r3)(),{currency:k}=(0,l.kP)(),{0:E,1:C}=(0,i.useState)(1),I=(0,w.al)(),{product:q,isValidating:Z}=I?.data;if(!q)throw Error("NotFound");let{id:B,sku:L,gtin:G,name:T,brand:K,isVariantOf:N,description:V,isVariantOf:{name:M,productGroupID:A},image:F,offers:{offers:[{availability:R,price:$,listPrice:z,seller:W}],lowPrice:H}}=q;(0,i.useEffect)(()=>{(0,o._)({name:"view_item",params:{currency:k.code,value:$,items:[{item_id:N.productGroupID,item_name:N.name,item_brand:K.name,item_variant:L,price:$,discount:z-$,currency:k.code,item_variant_name:T,product_reference_id:G}]}})},[N.productGroupID,N.name,K.name,L,$,z,k.code,T,G]);let Q=(0,i.useMemo)(()=>"https://schema.org/OutOfStock"===R,[R]);return f.jsx(c.Z,{className:`${_().section} section-product-details`,children:f.jsx("section",{"data-fs-product-details":!0,children:(0,f.jsxs)("section",{"data-fs-product-details-body":!0,"data-fs-content":"product-details",children:[f.jsx("header",{"data-fs-product-details-title":!0,"data-fs-product-details-section":!0,children:f.jsx(O.Component,ProductDetails_objectSpread(ProductDetails_objectSpread({title:f.jsx("h1",{children:M})},O.props),{},{label:t&&f.jsx(P.Component,ProductDetails_objectSpread(ProductDetails_objectSpread({},P.props),{},{size:r??P.props.size,listPrice:z,spotPrice:H})),refNumber:e&&A}))}),f.jsx(v.Component,ProductDetails_objectSpread(ProductDetails_objectSpread({"data-fs-product-details-gallery":!0},v.props),{},{images:F})),(0,f.jsxs)("section",{"data-fs-product-details-info":!0,children:[f.jsx("section",{"data-fs-product-details-settings":!0,"data-fs-product-details-section":!0,children:f.jsx(ProductDetails_ProductDetailsSettings,{product:q,isValidating:Z,buyButtonTitle:n,quantity:E,setQuantity:C,buyButtonIcon:a,notAvailableButtonTitle:h??D.props.title})}),!Q&&f.jsx(x.Component,ProductDetails_objectSpread(ProductDetails_objectSpread({"data-fs-product-details-section":!0,"data-fs-product-details-shipping":!0,formatter:s.P},x.props),{},{idkPostalCodeLinkProps:ProductDetails_objectSpread(ProductDetails_objectSpread({},x.props.idkPostalCodeLinkProps),{},{href:m??x.props.idkPostalCodeLinkProps?.href,children:b??x.props.idkPostalCodeLinkProps?.children}),productShippingInfo:{id:B,quantity:E,seller:W.identifier},title:p??x.props.title,inputLabel:u??x.props.inputLabel,optionsLabel:d??x.props.optionsLabel}))]}),j&&f.jsx(ProductDescription_ProductDescription,{initiallyExpanded:y,descriptionData:[{title:g,content:V}]})]})})})},J);function OverriddenDefaultProductDetails_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function OverriddenDefaultProductDetails_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OverriddenDefaultProductDetails_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OverriddenDefaultProductDetails_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ee=(0,a.v)(OverriddenDefaultProductDetails_objectSpread(OverriddenDefaultProductDetails_objectSpread({},{section:"ProductDetails"}),{},{Section:Y}))},5929:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>C,getStaticPaths:()=>getStaticPaths,getStaticProps:()=>getStaticProps});var i=r(3523),n=r(7397),o=r(6330),s=r.n(o),l=r(6641),c=r(4232),p=r(8545),u=r(7542),d=r(7936),m=r(2563),f=r(2015),b=r(4439),g=r(1868),y=r(2718),j=r(6242),h=r(7997),S=r.n(h),P=r(5426),O=r(4960),v=r(791),_=r(9441),w=r(997),x=e([n,m,p,v,P,c,j]);[n,m,p,v,P,c,j]=x.then?(await x)():x;let D=["listPrice"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let k=_objectSpread({Breadcrumb:d.j,ProductDetails:f.L,CrossSellingShelf:m.Z,BannerNewsletter:p.Z,BannerText:u.i},b.Z),overwriteMerge=(e,t)=>t;function Page({data:e,sections:t,globalSections:r,offers:a,meta:i}){let{product:n}=e,{currency:o}=(0,g.kP)(),{data:p,isValidating:u}=(0,v.F)(n.id,{product:n}),d={data:_objectSpread(_objectSpread({},s()(e,p,{arrayMerge:overwriteMerge})),{},{isValidating:u})};return(0,w.jsxs)(P.ZP,_objectSpread(_objectSpread({},r),{},{children:[w.jsx(l.NextSeo,{title:i.title,description:i.description,canonical:i.canonical,openGraph:{type:"og:product",url:i.canonical,title:i.title,description:i.description,images:n.image.map(e=>({url:e.url,alt:e.alternateName}))},additionalMetaTags:[{property:"product:price:amount",content:n.offers.lowPrice?.toString()??void 0},{property:"product:price:currency",content:o.code}]}),w.jsx(l.BreadcrumbJsonLd,{itemListElements:n.breadcrumbList.itemListElement}),w.jsx(l.ProductJsonLd,{productName:n.name,description:n.description,brand:n.brand.name,sku:n.sku,gtin:n.gtin,releaseDate:n.releaseDate,images:n.image.map(e=>e.url),offers:a}),w.jsx(O.ZP,{context:d,children:w.jsx(c.Z,{sections:t,components:k})})]}))}let E=i.hM,getStaticProps=async({params:e,previewData:t})=>{let r=e?.slug??"",[a,i]=await Promise.all([(0,j.h)({variables:{locator:[{key:"slug",value:r}]},operation:E}),(0,P.Tc)(t)]),{data:o,errors:s=[]}=a,l=s.find(n.XD);if(l)return{notFound:!0};if(s.length>0)throw s[0];let c=await (0,_.T)(r,o.product,t),{seo:p}=o.product,u=p.title||S().seo.title,d=p.description||S().seo.description,m=`${S().storeUrl}${p.canonical}`,f={};if(o.product.offers.offers.length>0){let e=o.product.offers.offers[0],{listPrice:t}=e,r=function(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,D);f=r}let b=_objectSpread(_objectSpread({},f),{},{priceCurrency:o.product.offers.priceCurrency,url:m});return{props:_objectSpread(_objectSpread({data:o},c),{},{meta:{title:u,description:d,canonical:m},offers:b,globalSections:i,key:p.canonical})}},getStaticPaths=async()=>({paths:[],fallback:"blocking"});Page.displayName="Page";let C=(0,y.B)(Page);a()}catch(e){a(e)}})},791:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.d(t,{F:()=>useProductQuery});var i=r(3523),n=r(6689),o=r(7553),s=r(1868),l=e([o]);o=(l.then?(await l)():l)[0];let c=i.wA,useProductQuery=(e,t)=>{let{channel:r,locale:a}=(0,s.kP)(),i=(0,n.useMemo)(()=>{if(!r)throw Error("useProductQuery: 'channel' from session is an empty string.");return{locator:[{key:"id",value:e},{key:"channel",value:r},{key:"locale",value:a}]}},[r,a,e]);return(0,o.aM)(c,i,{fallbackData:t,revalidateOnMount:!0})};a()}catch(e){a(e)}})},9441:(e,t,r)=>{"use strict";r.d(t,{T:()=>getPDP});var a=r(5477),i=r(4531),n=r(2365),o=r(7997),s=r.n(o);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let getPDP=async(e,t,r)=>{if(s().cms.data){let a=JSON.parse(s().cms.data),i=a.pdp;return await getPDPFromCmsEnvData(`/${e}/p`,t,i,_objectSpread(_objectSpread({},r?.contentType==="pdp"?r:null),{},{contentType:"pdp"}))}return await getPDPFromCms(`/${e}/p`,t,_objectSpread(_objectSpread({},r?.contentType==="pdp"?r:null),{},{contentType:"pdp"}))},getPDPFromCmsEnvData=async(e,t,r,o)=>{let s=r??[];if(!s[0])throw new a.Z(o);let l=(0,i.$j)(s,e,t);return(0,n.fx)({contentType:"pdp",documentId:l.documentId,versionId:l.versionId})},getPDPFromCms=async(e,t,r)=>{let o=(await (0,n.Cz)(r)).data;if(!o[0])throw new a.Z(r);return(0,i.$j)(o,e,t)}},8907:e=>{e.exports={section:"section_section__YBgvV"}},5397:e=>{e.exports={section:"section_section__VI73U"}},6351:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>b,default:()=>u,getServerSideProps:()=>f,getStaticPaths:()=>m,getStaticProps:()=>d,reportWebVitals:()=>g,routeModule:()=>O,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>P,unstable_getStaticParams:()=>h,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>y});var i=r(7093),n=r(5244),o=r(1323),s=r(2082),l=r(8187),c=r(5929),p=e([c,s]);[c,s]=p.then?(await p)():p;let u=(0,o.l)(c,"default"),d=(0,o.l)(c,"getStaticProps"),m=(0,o.l)(c,"getStaticPaths"),f=(0,o.l)(c,"getServerSideProps"),b=(0,o.l)(c,"config"),g=(0,o.l)(c,"reportWebVitals"),y=(0,o.l)(c,"unstable_getStaticProps"),j=(0,o.l)(c,"unstable_getStaticPaths"),h=(0,o.l)(c,"unstable_getStaticParams"),S=(0,o.l)(c,"unstable_getServerProps"),P=(0,o.l)(c,"unstable_getServerSideProps"),O=new i.PagesRouteModule({definition:{kind:n.x.PAGES,page:"/[slug]/p",pathname:"/[slug]/p",bundlePath:"",filename:""},components:{App:l.default,Document:s.default},userland:c});a()}catch(e){a(e)}})},4691:e=>{"use strict";e.exports=require("@opentelemetry/api")},8973:e=>{"use strict";e.exports=require("@opentelemetry/api-logs")},6969:e=>{"use strict";e.exports=require("@opentelemetry/exporter-logs-otlp-grpc")},5196:e=>{"use strict";e.exports=require("@opentelemetry/exporter-trace-otlp-grpc")},4161:e=>{"use strict";e.exports=require("@opentelemetry/resources")},2793:e=>{"use strict";e.exports=require("@opentelemetry/sdk-logs")},1283:e=>{"use strict";e.exports=require("@opentelemetry/sdk-trace-base")},6676:e=>{"use strict";e.exports=require("@vtex/client-cms")},6330:e=>{"use strict";e.exports=require("deepmerge")},8641:e=>{"use strict";e.exports=require("draftjs-to-html")},2404:e=>{"use strict";e.exports=require("fast-deep-equal")},7343:e=>{"use strict";e.exports=require("graphql")},6548:e=>{"use strict";e.exports=require("graphql/language")},3430:e=>{"use strict";e.exports=require("idb-keyval")},7881:e=>{"use strict";e.exports=require("isomorphic-unfetch")},6641:e=>{"use strict";e.exports=require("next-seo")},2785:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},8890:e=>{"use strict";e.exports=require("nextjs-progressbar")},5471:e=>{"use strict";e.exports=require("p-limit")},1423:e=>{"use strict";e.exports=require("path")},6689:e=>{"use strict";e.exports=require("react")},6405:e=>{"use strict";e.exports=require("react-dom")},9785:e=>{"use strict";e.exports=require("react-intersection-observer")},3789:e=>{"use strict";e.exports=require("react-swipeable")},997:e=>{"use strict";e.exports=require("react/jsx-runtime")},6109:e=>{"use strict";e.exports=require("sanitize-html")},3823:e=>{"use strict";e.exports=require("tabbable")},4037:e=>{"use strict";e.exports=import("@builder.io/partytown/react")},9664:e=>{"use strict";e.exports=import("@envelop/core")},7886:e=>{"use strict";e.exports=import("@envelop/graphql-jit")},4656:e=>{"use strict";e.exports=import("@envelop/parser-cache")},6093:e=>{"use strict";e.exports=import("@envelop/validation-cache")},5774:e=>{"use strict";e.exports=import("@graphql-tools/load-files")},6550:e=>{"use strict";e.exports=import("@graphql-tools/schema")},8722:e=>{"use strict";e.exports=import("@graphql-tools/utils")},7564:e=>{"use strict";e.exports=import("chalk")},5941:e=>{"use strict";e.exports=import("swr")},6113:e=>{"use strict";e.exports=require("crypto")},7147:e=>{"use strict";e.exports=require("fs")},2781:e=>{"use strict";e.exports=require("stream")},9796:e=>{"use strict";e.exports=require("zlib")}};var t=require("../../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[859,12,640,404,997,187,82,646,344,779,679,694,414,659,936,242,693],()=>__webpack_exec__(6351));module.exports=r})();
|