@faststore/core 2.1.13 → 2.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/lighthouserc.js +1 -0
  2. package/package.json +4 -4
  3. package/src/components/navigation/Navbar/Navbar.tsx +9 -7
  4. package/src/components/product/ProductCard/ProductCard.tsx +5 -2
  5. package/src/components/ui/Newsletter/Newsletter.tsx +61 -28
  6. package/.next/BUILD_ID +0 -1
  7. package/.next/build-manifest.json +0 -125
  8. package/.next/cache/.tsbuildinfo +0 -1
  9. package/.next/cache/config.json +0 -7
  10. package/.next/cache/eslint/.cache_1gneedd +0 -1
  11. package/.next/cache/next-server.js.nft.json +0 -1
  12. package/.next/cache/webpack/client-production/0.pack +0 -0
  13. package/.next/cache/webpack/client-production/index.pack +0 -0
  14. package/.next/cache/webpack/server-production/0.pack +0 -0
  15. package/.next/cache/webpack/server-production/index.pack +0 -0
  16. package/.next/export-marker.json +0 -1
  17. package/.next/images-manifest.json +0 -1
  18. package/.next/next-server.js.nft.json +0 -1
  19. package/.next/package.json +0 -1
  20. package/.next/prerender-manifest.json +0 -1
  21. package/.next/react-loadable-manifest.json +0 -44
  22. package/.next/required-server-files.json +0 -1
  23. package/.next/routes-manifest.json +0 -1
  24. package/.next/server/chunks/123.js +0 -58
  25. package/.next/server/chunks/143.js +0 -106
  26. package/.next/server/chunks/183.js +0 -90
  27. package/.next/server/chunks/184.js +0 -61
  28. package/.next/server/chunks/205.js +0 -722
  29. package/.next/server/chunks/247.js +0 -61
  30. package/.next/server/chunks/253.js +0 -535
  31. package/.next/server/chunks/269.js +0 -516
  32. package/.next/server/chunks/287.js +0 -58
  33. package/.next/server/chunks/289.js +0 -242
  34. package/.next/server/chunks/312.js +0 -697
  35. package/.next/server/chunks/350.js +0 -143
  36. package/.next/server/chunks/487.js +0 -9142
  37. package/.next/server/chunks/502.js +0 -626
  38. package/.next/server/chunks/513.js +0 -257
  39. package/.next/server/chunks/576.js +0 -90
  40. package/.next/server/chunks/597.js +0 -211
  41. package/.next/server/chunks/650.js +0 -9142
  42. package/.next/server/chunks/676.js +0 -32
  43. package/.next/server/chunks/701.js +0 -87
  44. package/.next/server/chunks/74.js +0 -3949
  45. package/.next/server/chunks/825.js +0 -4039
  46. package/.next/server/chunks/854.js +0 -72
  47. package/.next/server/chunks/859.js +0 -959
  48. package/.next/server/chunks/886.js +0 -120
  49. package/.next/server/chunks/90.js +0 -539
  50. package/.next/server/chunks/907.js +0 -1957
  51. package/.next/server/chunks/98.js +0 -124
  52. package/.next/server/chunks/font-manifest.json +0 -1
  53. package/.next/server/font-manifest.json +0 -1
  54. package/.next/server/middleware-build-manifest.js +0 -1
  55. package/.next/server/middleware-manifest.json +0 -6
  56. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  57. package/.next/server/pages/404.js +0 -386
  58. package/.next/server/pages/404.js.nft.json +0 -1
  59. package/.next/server/pages/500.js +0 -388
  60. package/.next/server/pages/500.js.nft.json +0 -1
  61. package/.next/server/pages/[...slug].js +0 -778
  62. package/.next/server/pages/[...slug].js.nft.json +0 -1
  63. package/.next/server/pages/[slug]/p.js +0 -2388
  64. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  65. package/.next/server/pages/_app.js +0 -281
  66. package/.next/server/pages/_app.js.nft.json +0 -1
  67. package/.next/server/pages/_document.js +0 -340
  68. package/.next/server/pages/_document.js.nft.json +0 -1
  69. package/.next/server/pages/_error.js +0 -164
  70. package/.next/server/pages/_error.js.nft.json +0 -1
  71. package/.next/server/pages/account.js +0 -363
  72. package/.next/server/pages/account.js.nft.json +0 -1
  73. package/.next/server/pages/api/graphql.js +0 -365
  74. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  75. package/.next/server/pages/api/preview.js +0 -119
  76. package/.next/server/pages/api/preview.js.nft.json +0 -1
  77. package/.next/server/pages/checkout.js +0 -363
  78. package/.next/server/pages/checkout.js.nft.json +0 -1
  79. package/.next/server/pages/en-US/404.html +0 -81
  80. package/.next/server/pages/en-US/404.json +0 -1
  81. package/.next/server/pages/en-US/500.html +0 -81
  82. package/.next/server/pages/en-US/500.json +0 -1
  83. package/.next/server/pages/en-US/account.html +0 -81
  84. package/.next/server/pages/en-US/account.json +0 -1
  85. package/.next/server/pages/en-US/checkout.html +0 -81
  86. package/.next/server/pages/en-US/checkout.json +0 -1
  87. package/.next/server/pages/en-US/login.html +0 -81
  88. package/.next/server/pages/en-US/login.json +0 -1
  89. package/.next/server/pages/en-US/s.html +0 -81
  90. package/.next/server/pages/en-US/s.json +0 -1
  91. package/.next/server/pages/en-US.html +0 -81
  92. package/.next/server/pages/en-US.json +0 -1
  93. package/.next/server/pages/index.js +0 -911
  94. package/.next/server/pages/index.js.nft.json +0 -1
  95. package/.next/server/pages/login.js +0 -368
  96. package/.next/server/pages/login.js.nft.json +0 -1
  97. package/.next/server/pages/s.js +0 -466
  98. package/.next/server/pages/s.js.nft.json +0 -1
  99. package/.next/server/pages-manifest.json +0 -16
  100. package/.next/server/webpack-api-runtime.js +0 -229
  101. package/.next/server/webpack-runtime.js +0 -229
  102. package/.next/static/PEpFPmg-cyK2da0_9NEz1/_buildManifest.js +0 -1
  103. package/.next/static/PEpFPmg-cyK2da0_9NEz1/_ssgManifest.js +0 -1
  104. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  105. package/.next/static/chunks/483-2b102ffab527cf95.js +0 -1
  106. package/.next/static/chunks/495.0ecd099878b2a36d.js +0 -1
  107. package/.next/static/chunks/502.2270ffae48e3dccd.js +0 -1
  108. package/.next/static/chunks/548-6b23e7ad82cd22b9.js +0 -1
  109. package/.next/static/chunks/597.f8d0595b113c70af.js +0 -1
  110. package/.next/static/chunks/64.7ea3677ac3a10e00.js +0 -1
  111. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  112. package/.next/static/chunks/682-5cfea9ed52851ed1.js +0 -1
  113. package/.next/static/chunks/738-a5ff304828f20cbf.js +0 -1
  114. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  115. package/.next/static/chunks/791-727eda8f766aa791.js +0 -1
  116. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  117. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  118. package/.next/static/chunks/main-fd466221927468fd.js +0 -1
  119. package/.next/static/chunks/pages/404-c3b320b915df45bb.js +0 -1
  120. package/.next/static/chunks/pages/500-d37a3a2e931f6995.js +0 -1
  121. package/.next/static/chunks/pages/[...slug]-7370214f166e8584.js +0 -1
  122. package/.next/static/chunks/pages/[slug]/p-7b946d76b9f0d9db.js +0 -1
  123. package/.next/static/chunks/pages/_app-79d333aa6001a806.js +0 -1
  124. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  125. package/.next/static/chunks/pages/account-86a1b6e7db03bab6.js +0 -1
  126. package/.next/static/chunks/pages/checkout-c77dbc66c0b35ec3.js +0 -1
  127. package/.next/static/chunks/pages/index-4f3314ad44c30b8f.js +0 -1
  128. package/.next/static/chunks/pages/login-bbf85bc59afce37c.js +0 -1
  129. package/.next/static/chunks/pages/s-dd486933e8ba7fbf.js +0 -1
  130. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  131. package/.next/static/chunks/webpack-3eefca84f4c29194.js +0 -1
  132. package/.next/static/css/0cb9134bc2d237e2.css +0 -1
  133. package/.next/static/css/0d62ff2d64099b84.css +0 -1
  134. package/.next/static/css/0f8ce5203de8ae6f.css +0 -1
  135. package/.next/static/css/104f0f3ce3be32c6.css +0 -1
  136. package/.next/static/css/23a9d5dfc051ec6e.css +0 -1
  137. package/.next/static/css/2e00f7ba49c754b3.css +0 -1
  138. package/.next/static/css/6e41f1b6078c14c1.css +0 -1
  139. package/.next/static/css/7d822a137c54a781.css +0 -1
  140. package/.next/static/css/d4a0d9df8c6df555.css +0 -1
  141. package/.next/static/css/e02cdad8fc000339.css +0 -1
  142. package/.next/trace +0 -76
  143. package/public/~partytown/debug/partytown-atomics.js +0 -556
  144. package/public/~partytown/debug/partytown-media.js +0 -374
  145. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  146. package/public/~partytown/debug/partytown-sw.js +0 -59
  147. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  148. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  149. package/public/~partytown/debug/partytown.js +0 -72
  150. package/public/~partytown/partytown-atomics.js +0 -2
  151. package/public/~partytown/partytown-media.js +0 -2
  152. package/public/~partytown/partytown-sw.js +0 -2
  153. package/public/~partytown/partytown.js +0 -2
@@ -1,2388 +0,0 @@
1
- (() => {
2
- var exports = {};
3
- exports.id = 103;
4
- exports.ids = [103];
5
- exports.modules = {
6
-
7
- /***/ 40492:
8
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
-
10
- "use strict";
11
-
12
- // EXPORTS
13
- __webpack_require__.d(__webpack_exports__, {
14
- "Z": () => (/* reexport */ product_OutOfStock_OutOfStock)
15
- });
16
-
17
- // EXTERNAL MODULE: ../components/dist/hooks/UIProvider.js
18
- var UIProvider = __webpack_require__(90395);
19
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
20
- var Icon = __webpack_require__(25045);
21
- // EXTERNAL MODULE: external "react"
22
- var external_react_ = __webpack_require__(16689);
23
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
24
- // EXTERNAL MODULE: ../components/dist/molecules/InputField/InputField.js
25
- var InputField = __webpack_require__(28287);
26
- // EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
27
- var Button = __webpack_require__(57578);
28
- ;// CONCATENATED MODULE: ../components/dist/organisms/OutOfStock/OutOfStock.js
29
-
30
-
31
- const OutOfStock = (0,external_react_.forwardRef)(function OutOfStock({ testId = 'fs-out-of-stock', title, buttonLabel = 'Notify Me', loadingLabel = 'Loading', inputLabel, subtitle, disabled, errorMessage, onSubmit, }, ref) {
32
- return (external_react_default().createElement("form", { "data-fs-out-of-stock": true, ref: ref, "data-testid": testId, onSubmit: onSubmit },
33
- external_react_default().createElement("h2", { "data-fs-out-of-stock-title": true }, title),
34
- subtitle && (external_react_default().createElement("p", { "data-fs-out-of-stock-message": true },
35
- external_react_default().createElement(Icon/* default */.Z, { name: "BellRinging", width: 16, height: 16 }),
36
- subtitle)),
37
- external_react_default().createElement(InputField/* default */.Z, { id: "out-of-stock-email", name: "out-of-stock-email", label: inputLabel, "aria-label": inputLabel, error: errorMessage, required: true }),
38
- external_react_default().createElement(Button/* default */.Z, { "data-fs-out-of-stock-button": true, type: "submit", loading: disabled, loadingLabel: loadingLabel, disabled: disabled, variant: "primary", icon: external_react_default().createElement(Icon/* default */.Z, { name: "BellRinging" }), iconPosition: "left" }, buttonLabel)));
39
- });
40
- /* harmony default export */ const OutOfStock_OutOfStock = (OutOfStock);
41
- //# sourceMappingURL=OutOfStock.js.map
42
- // EXTERNAL MODULE: ./src/sdk/session/index.ts + 1 modules
43
- var session = __webpack_require__(97295);
44
- // EXTERNAL MODULE: external "react/jsx-runtime"
45
- var jsx_runtime_ = __webpack_require__(20997);
46
- ;// CONCATENATED MODULE: ./src/components/product/OutOfStock/OutOfStock.tsx
47
-
48
-
49
-
50
-
51
-
52
- function OutOfStock_OutOfStock_OutOfStock() {
53
- const {
54
- postalCode
55
- } = (0,session/* useSession */.kP)();
56
- const {
57
- 0: isLoading,
58
- 1: setIsLoading
59
- } = (0,external_react_.useState)(false);
60
- const {
61
- 0: error,
62
- 1: setError
63
- } = (0,external_react_.useState)('');
64
- const {
65
- pushToast
66
- } = (0,UIProvider/* useUI */.l)();
67
-
68
- const handleSubmit = event => {
69
- event.preventDefault();
70
- setIsLoading(true); // TODO: Missing integration
71
-
72
- try {
73
- // Return to original state after 2s mockup
74
- setTimeout(() => setIsLoading(false), 2000);
75
- const formElement = event.currentTarget;
76
- formElement.reset();
77
- pushToast({
78
- title: 'Subscribed successfully!',
79
- message: "You'll be notified when this product is back to stock.",
80
- status: 'INFO',
81
- icon: /*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
82
- name: "CircleWavyCheck",
83
- width: 30,
84
- height: 30
85
- })
86
- });
87
- } catch (err) {
88
- setError(err.message);
89
- } finally {}
90
- };
91
-
92
- return /*#__PURE__*/jsx_runtime_.jsx(OutOfStock_OutOfStock, {
93
- title: postalCode ? 'Unavailable in Your Location' : 'Out of Stock',
94
- inputLabel: "Email",
95
- subtitle: "Notify me when available",
96
- onSubmit: handleSubmit,
97
- disabled: isLoading,
98
- errorMessage: error
99
- });
100
- }
101
-
102
- /* harmony default export */ const product_OutOfStock_OutOfStock = (OutOfStock_OutOfStock_OutOfStock);
103
- ;// CONCATENATED MODULE: ./src/components/product/OutOfStock/index.ts
104
-
105
-
106
- /***/ }),
107
-
108
- /***/ 72951:
109
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
110
-
111
- "use strict";
112
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
113
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
114
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
115
- /* harmony export */ });
116
- /* harmony import */ var src_components_sections_BannerText__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80023);
117
- /* harmony import */ var src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87191);
118
- /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57067);
119
- /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5411);
120
- /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_section_module_scss__WEBPACK_IMPORTED_MODULE_4__);
121
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20997);
122
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
123
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_1__]);
124
- src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- function BannerNewsletter({
133
- banner,
134
- newsletter
135
- }) {
136
- return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_Section__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
137
- className: `${(_section_module_scss__WEBPACK_IMPORTED_MODULE_4___default().section)} section-banner-newsletter layout__content`,
138
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
139
- "data-fs-banner-newsletter": true,
140
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_components_sections_BannerText__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z, {
141
- title: banner.title,
142
- caption: banner.caption,
143
- link: banner?.link,
144
- variant: banner.variant,
145
- colorVariant: banner.colorVariant
146
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_components_sections_Newsletter__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
147
- title: newsletter.title,
148
- description: newsletter.description,
149
- icon: newsletter.icon,
150
- privacyPolicy: newsletter.privacyPolicy,
151
- emailInputLabel: newsletter.emailInputLabel,
152
- displayNameInput: newsletter.displayNameInput,
153
- nameInputLabel: newsletter.nameInputLabel,
154
- subscribeButtonLabel: newsletter.subscribeButtonLabel,
155
- toastSubscribe: newsletter.toastSubscribe,
156
- toastSubscribeError: newsletter.toastSubscribeError,
157
- card: newsletter.card
158
- })]
159
- })
160
- });
161
- }
162
-
163
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BannerNewsletter);
164
- __webpack_async_result__();
165
- } catch(e) { __webpack_async_result__(e); } });
166
-
167
- /***/ }),
168
-
169
- /***/ 30994:
170
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
171
-
172
- "use strict";
173
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
174
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
175
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
176
- /* harmony export */ });
177
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
178
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
179
- /* harmony import */ var src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34805);
180
- /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19785);
181
- /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_intersection_observer__WEBPACK_IMPORTED_MODULE_2__);
182
- /* harmony import */ var _ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(56627);
183
- /* harmony import */ var _ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5__);
184
- /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(57067);
185
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20997);
186
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
187
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_1__]);
188
- src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
- const CrossSellingShelf = ({
197
- items,
198
- title,
199
- context,
200
- kind
201
- }) => {
202
- const {
203
- ref,
204
- inView
205
- } = (0,react_intersection_observer__WEBPACK_IMPORTED_MODULE_2__.useInView)();
206
- const selectedFacets = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => [{
207
- key: kind,
208
- value: context.isVariantOf.productGroupID
209
- }], [kind, context.isVariantOf.productGroupID]);
210
- return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx(_Section__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
211
- className: `${(_ProductShelf_section_module_scss__WEBPACK_IMPORTED_MODULE_5___default().section)} section-product-shelf layout__section`,
212
- ref: ref,
213
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx(src_components_ui_ProductShelf__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
214
- inView: inView,
215
- first: items,
216
- title: title,
217
- selectedFacets: selectedFacets
218
- })
219
- });
220
- };
221
-
222
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CrossSellingShelf);
223
- __webpack_async_result__();
224
- } catch(e) { __webpack_async_result__(e); } });
225
-
226
- /***/ }),
227
-
228
- /***/ 97990:
229
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
230
-
231
- "use strict";
232
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
233
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
234
- /* harmony export */ "Z": () => (/* reexport safe */ _CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__.Z)
235
- /* harmony export */ });
236
- /* harmony import */ var _CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30994);
237
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__]);
238
- _CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
239
-
240
- __webpack_async_result__();
241
- } catch(e) { __webpack_async_result__(e); } });
242
-
243
- /***/ }),
244
-
245
- /***/ 27534:
246
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
247
-
248
- "use strict";
249
-
250
- // EXPORTS
251
- __webpack_require__.d(__webpack_exports__, {
252
- "z": () => (/* binding */ Components),
253
- "x": () => (/* binding */ productDetailsPropsCustomization)
254
- });
255
-
256
- // EXTERNAL MODULE: external "react"
257
- var external_react_ = __webpack_require__(16689);
258
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
259
- // EXTERNAL MODULE: ../components/dist/molecules/Rating/Rating.js
260
- var Rating = __webpack_require__(40783);
261
- ;// CONCATENATED MODULE: ../components/dist/molecules/ProductTitle/ProductTitle.js
262
-
263
-
264
- const ProductTitle = (0,external_react_.forwardRef)(function ProductTitle({ title, label, refTag = 'Ref.: ', refNumber, testId = 'fs-product-title', ratingValue, ...otherProps }, ref) {
265
- return (external_react_default().createElement("header", { ref: ref, "data-fs-product-title": true, "data-testid": testId, ...otherProps },
266
- external_react_default().createElement("div", { "data-fs-product-title-header": true },
267
- title,
268
- !!label && label),
269
- (refNumber || ratingValue) && (external_react_default().createElement("p", { "data-fs-product-title-addendum": true },
270
- ratingValue && external_react_default().createElement(Rating/* default */.Z, { value: ratingValue }),
271
- refNumber && (external_react_default().createElement((external_react_default()).Fragment, null,
272
- refTag,
273
- " ",
274
- refNumber))))));
275
- });
276
- /* harmony default export */ const ProductTitle_ProductTitle = (ProductTitle);
277
- //# sourceMappingURL=ProductTitle.js.map
278
- // EXTERNAL MODULE: ../components/dist/molecules/DiscountBadge/DiscountBadge.js + 1 modules
279
- var DiscountBadge = __webpack_require__(89875);
280
- // EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
281
- var Button = __webpack_require__(57578);
282
- ;// CONCATENATED MODULE: ../components/dist/molecules/BuyButton/BuyButton.js
283
-
284
-
285
- function BuyButton({ testId = 'fs-buy-button', icon, children, ...otherProps }) {
286
- return (external_react_default().createElement(Button/* default */.Z, { "data-fs-buy-button": true, icon: icon, iconPosition: "left", "data-testid": testId, ...otherProps }, children));
287
- }
288
- /* harmony default export */ const BuyButton_BuyButton = (BuyButton);
289
- //# sourceMappingURL=BuyButton.js.map
290
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
291
- var Icon = __webpack_require__(25045);
292
- // EXTERNAL MODULE: ../components/dist/atoms/Price/Price.js
293
- var Price = __webpack_require__(57549);
294
- // EXTERNAL MODULE: ../components/dist/molecules/QuantitySelector/QuantitySelector.js
295
- var QuantitySelector = __webpack_require__(60123);
296
- // EXTERNAL MODULE: ../components/dist/atoms/Label/Label.js
297
- var Label = __webpack_require__(57216);
298
- // EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
299
- var Link = __webpack_require__(87865);
300
- // EXTERNAL MODULE: ../components/dist/atoms/SROnly/SROnly.js
301
- var SROnly = __webpack_require__(82691);
302
- ;// CONCATENATED MODULE: ../components/dist/molecules/SkuSelector/useDefineVariant.js
303
-
304
- const getImageName = (src) => {
305
- const sourcePath = new URL(src).pathname;
306
- const imageName = sourcePath.split('/').slice(-1)[0];
307
- return imageName;
308
- };
309
- const useDefineVariant = (options, variant) => (0,external_react_.useMemo)(() => {
310
- if (variant)
311
- return variant;
312
- const allOptionsHaveHexColor = options.every((option) => option.hexColor);
313
- if (allOptionsHaveHexColor) {
314
- return 'color';
315
- }
316
- const firstImageName = options[0]?.src && getImageName(options[0].src);
317
- const areSourcesEqualsOrNull = options.every((option) => {
318
- if (!option.src) {
319
- return true;
320
- }
321
- const optionImageName = getImageName(option.src);
322
- return optionImageName === firstImageName;
323
- });
324
- if (!areSourcesEqualsOrNull) {
325
- return 'image';
326
- }
327
- return 'label';
328
- }, [options, variant]);
329
- //# sourceMappingURL=useDefineVariant.js.map
330
- ;// CONCATENATED MODULE: ../components/dist/molecules/SkuSelector/useSkuSlug.js
331
-
332
- function getSkuSlug(slugsMap, selectedVariations, dominantVariation) {
333
- const slugsMapKey = Object.entries(selectedVariations).flat().join('-');
334
- if (slugsMapKey in slugsMap) {
335
- return slugsMap[slugsMapKey];
336
- }
337
- const possibleVariants = Object.keys(slugsMap);
338
- const firstVariationForDominantValue = possibleVariants.find((slug) => slug.includes(`${dominantVariation}-${selectedVariations[dominantVariation]}`));
339
- return slugsMap[firstVariationForDominantValue ?? possibleVariants[0]];
340
- }
341
- const useSkuSlug = (activeVariations, slugsMap, skuPropertyName, getItemHrefProp) => {
342
- const getItemHref = (0,external_react_.useCallback)((option) => {
343
- if (getItemHrefProp)
344
- return { getItemHrefProp };
345
- const currentItemHref = `/${getSkuSlug(slugsMap, {
346
- ...activeVariations,
347
- [skuPropertyName]: option.value,
348
- }, skuPropertyName)}/p`;
349
- return currentItemHref;
350
- }, [activeVariations, getItemHrefProp, slugsMap, skuPropertyName]);
351
- return { getItemHref };
352
- };
353
- //# sourceMappingURL=useSkuSlug.js.map
354
- ;// CONCATENATED MODULE: ../components/dist/molecules/SkuSelector/SkuSelector.js
355
-
356
-
357
-
358
-
359
- // TODO: Change by ImageComponent when it be right
360
- const ImageComponentFallback = ({ src, alt, ...otherProps }) => external_react_default().createElement("img", { src: src, alt: alt, ...otherProps });
361
- const SkuSelector = (0,external_react_.forwardRef)(function SkuSelector({ availableVariations, skuPropertyName, testId, activeVariations, linkProps, slugsMap, getItemHref: getItemHrefProp, ImageComponent = ImageComponentFallback, variant: variantProp, ...otherProps }, ref) {
362
- const activeSelectorValue = activeVariations[skuPropertyName];
363
- const options = availableVariations[skuPropertyName];
364
- const variant = useDefineVariant(options, variantProp);
365
- const { getItemHref } = useSkuSlug(activeVariations, slugsMap, skuPropertyName, getItemHrefProp);
366
- return (external_react_default().createElement("div", { ref: ref, "data-fs-sku-selector": true, "data-testid": testId, "data-fs-sku-selector-variant": variant, ...otherProps },
367
- skuPropertyName && (external_react_default().createElement(Label/* default */.Z, { "data-fs-sku-selector-title": true },
368
- skuPropertyName,
369
- ": ",
370
- external_react_default().createElement("strong", null, activeSelectorValue))),
371
- external_react_default().createElement("ul", { "data-fs-sku-selector-list": true }, options.map((option, index) => {
372
- 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] },
373
- external_react_default().createElement(Link/* default */.Z, { "data-fs-sku-selector-option-link": true, href: getItemHref(option), ...linkProps },
374
- external_react_default().createElement(SROnly/* default */.Z, { text: option.label })),
375
- variant === 'label' && external_react_default().createElement("span", null, option.value),
376
- variant === 'image' && ImageComponent && (external_react_default().createElement("span", null,
377
- external_react_default().createElement(ImageComponent, { src: option.src ?? '', alt: option.alt ?? '', "data-fs-sku-selector-option-image": true }))),
378
- variant === 'color' && (external_react_default().createElement("span", null,
379
- external_react_default().createElement("div", { "data-fs-sku-selector-option-color": true, title: option.value, style: {
380
- '--data-fs-sku-selector-option-color-bkg-color': option.hexColor,
381
- } })))));
382
- }))));
383
- });
384
- /* harmony default export */ const SkuSelector_SkuSelector = (SkuSelector);
385
- //# sourceMappingURL=SkuSelector.js.map
386
- // EXTERNAL MODULE: ../components/dist/molecules/InputField/InputField.js
387
- var InputField = __webpack_require__(28287);
388
- ;// CONCATENATED MODULE: ../components/dist/molecules/Table/Table.js
389
-
390
- const Table = (0,external_react_.forwardRef)(function Table({ children, variant = 'colored', testId = 'fs-table', ...otherProps }, ref) {
391
- return (external_react_default().createElement("div", { "data-fs-table": true },
392
- external_react_default().createElement("table", { ref: ref, "data-fs-table-content": true, "data-fs-table-variant": variant, "data-testid": testId, ...otherProps }, children)));
393
- });
394
- /* harmony default export */ const Table_Table = (Table);
395
- //# sourceMappingURL=Table.js.map
396
- ;// CONCATENATED MODULE: ../components/dist/molecules/Table/TableBody.js
397
-
398
- const TableBody = (0,external_react_.forwardRef)(function TableBody({ children, testId = 'fs-table-body', ...otherProps }, ref) {
399
- return (external_react_default().createElement("tbody", { ref: ref, "data-testid": testId, "data-fs-table-body": true, ...otherProps }, children));
400
- });
401
- /* harmony default export */ const Table_TableBody = (TableBody);
402
- //# sourceMappingURL=TableBody.js.map
403
- ;// CONCATENATED MODULE: ../components/dist/molecules/Table/TableRow.js
404
-
405
- const TableRow = (0,external_react_.forwardRef)(function TableRow({ children, testId = 'fs-table-row', ...otherProps }, ref) {
406
- return (external_react_default().createElement("tr", { ref: ref, "data-fs-table-row": true, "data-testid": testId, ...otherProps }, children));
407
- });
408
- /* harmony default export */ const Table_TableRow = (TableRow);
409
- //# sourceMappingURL=TableRow.js.map
410
- ;// CONCATENATED MODULE: ../components/dist/molecules/Table/TableCell.js
411
-
412
- const TableCell = (0,external_react_.forwardRef)(function TableCell({ scope, align, children, variant = 'data', testId = 'fs-table-cell', ...otherProps }, ref) {
413
- const Cell = variant === 'header' ? 'th' : 'td';
414
- 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));
415
- });
416
- /* harmony default export */ const Table_TableCell = (TableCell);
417
- //# sourceMappingURL=TableCell.js.map
418
- ;// CONCATENATED MODULE: ../components/dist/organisms/ShippingSimulation/ShippingSimulation.js
419
-
420
-
421
- 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 }) {
422
- const hasShippingOptions = !!options && options.length > 0;
423
- return (external_react_default().createElement("section", { "data-fs-shipping-simulation": true, "data-fs-shipping-simulation-empty": !hasShippingOptions ? 'true' : 'false', "data-testid": testId, ...otherProps },
424
- external_react_default().createElement("h2", { "data-fs-shipping-simulation-title": true }, title),
425
- 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 }),
426
- 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,
427
- "I don't know my Postal Code",
428
- external_react_default().createElement(Icon/* default */.Z, { name: "ArrowSquareOut", width: 20, height: 20 })))),
429
- hasShippingOptions && (external_react_default().createElement((external_react_default()).Fragment, null,
430
- external_react_default().createElement("header", { "data-fs-shipping-simulation-header": true },
431
- external_react_default().createElement("h3", { "data-fs-shipping-simulation-subtitle": true }, optionsLabel),
432
- external_react_default().createElement("p", { "data-fs-shipping-simulation-location": true }, location)),
433
- external_react_default().createElement(Table_Table, null,
434
- external_react_default().createElement(Table_TableBody, null, options.map((option) => (external_react_default().createElement(Table_TableRow, { key: option.carrier },
435
- external_react_default().createElement(Table_TableCell, { align: "left" }, option.carrier),
436
- external_react_default().createElement(Table_TableCell, null, option.localizedEstimates),
437
- external_react_default().createElement(Table_TableCell, { align: "right" }, option.price && (external_react_default().createElement(Price/* default */.Z, { formatter: formatter, value: option.price, SRText: "price" }))))))))))));
438
- }
439
- /* harmony default export */ const ShippingSimulation_ShippingSimulation = (ShippingSimulation);
440
- //# sourceMappingURL=ShippingSimulation.js.map
441
- // EXTERNAL MODULE: external "react-intersection-observer"
442
- var external_react_intersection_observer_ = __webpack_require__(19785);
443
- // EXTERNAL MODULE: ../components/dist/molecules/IconButton/IconButton.js
444
- var IconButton = __webpack_require__(82765);
445
- ;// CONCATENATED MODULE: ../components/dist/organisms/ImageGallery/ImageGallerySelector.js
446
-
447
-
448
-
449
- const SCROLL_MARGIN_VALUE = 400;
450
- const moveScroll = (container, value) => {
451
- if (container) {
452
- if (container.scrollHeight > container.clientHeight) {
453
- // TODO: Temporary workaround for scroll-behavior with scrollTop – Safari 15.4) https://developer.apple.com/forums/thread/703294
454
- container.style.overflow = 'auto';
455
- window.requestAnimationFrame(() => container.scrollTo({ top: value, behavior: 'smooth' }));
456
- setTimeout(() => (container.style.overflow = 'hidden'), 2000);
457
- }
458
- else {
459
- container.scrollLeft += value;
460
- }
461
- }
462
- };
463
- const hasScroll = (container) => {
464
- if (container) {
465
- return (container.scrollHeight > container.clientHeight ||
466
- container.scrollWidth > container.clientWidth);
467
- }
468
- return false;
469
- };
470
- 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', }) {
471
- const elementsRef = (0,external_react_.useRef)(null);
472
- const elementHasScroll = hasScroll(elementsRef.current);
473
- const [firstImageInView, setFirstImageInView] = (0,external_react_.useState)(true);
474
- const [lastImageInView, setLastImageInView] = (0,external_react_.useState)(true);
475
- const inViewChange = (0,external_react_.useCallback)((idx, inView) => {
476
- idx === 0 && setFirstImageInView(inView);
477
- idx === images.length - 1 && setLastImageInView(inView);
478
- }, [images.length]);
479
- return (external_react_default().createElement("section", { "data-fs-image-gallery-selector": true, "data-testid": testId, "aria-label": ariaLabel },
480
- elementHasScroll && !firstImageInView && (external_react_default().createElement("div", { "data-fs-image-gallery-selector-control": true },
481
- 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) }))),
482
- external_react_default().createElement("div", { "data-fs-image-gallery-selector-elements": true, ref: elementsRef }, images.map((image, idx) => {
483
- return (external_react_default().createElement(external_react_intersection_observer_.InView, { key: idx, onChange: (inView) => inViewChange(idx, inView) },
484
- 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' },
485
- external_react_default().createElement(ImageComponent, { url: image.url ?? '', loading: idx === 0 ? 'eager' : 'lazy', alternateName: image.alternateName ?? '' }))));
486
- })),
487
- elementHasScroll && !lastImageInView && (external_react_default().createElement("div", { "data-fs-image-gallery-selector-control": true },
488
- 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) })))));
489
- }
490
- /* harmony default export */ const ImageGallery_ImageGallerySelector = (ImageGallerySelector);
491
- //# sourceMappingURL=ImageGallerySelector.js.map
492
- ;// CONCATENATED MODULE: ../components/dist/organisms/ImageGallery/ImageGallery.js
493
-
494
-
495
- const ImageGallery = (0,external_react_.forwardRef)(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
496
- const hasSelector = images.length > 1;
497
- return (external_react_default().createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-testid": testId, ...otherProps },
498
- children,
499
- hasSelector && (external_react_default().createElement(ImageGallery_ImageGallerySelector, { images: images, onSelect: setSelectedImageIdx, currentImageIdx: selectedImageIdx, ImageComponent: ImageComponent }))));
500
- });
501
- /* harmony default export */ const ImageGallery_ImageGallery = (ImageGallery);
502
- //# sourceMappingURL=ImageGallery.js.map
503
- ;// CONCATENATED MODULE: ../components/dist/organisms/ImageGallery/ImageZoom.js
504
-
505
- const ImageZoom = ({ children }) => {
506
- return external_react_default().createElement((external_react_default()).Fragment, null, children);
507
- };
508
- /* harmony default export */ const ImageGallery_ImageZoom = (ImageZoom);
509
- //# sourceMappingURL=ImageZoom.js.map
510
- // EXTERNAL MODULE: external "next/router"
511
- var router_ = __webpack_require__(71853);
512
- // EXTERNAL MODULE: external "react/jsx-runtime"
513
- var jsx_runtime_ = __webpack_require__(20997);
514
- ;// CONCATENATED MODULE: ./src/components/ui/ImageGallery/ImageGallery.tsx
515
- const _excluded = ["images"];
516
-
517
- 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; }
518
-
519
- 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; }
520
-
521
- 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; }
522
-
523
- 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; }
524
-
525
- 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; }
526
-
527
-
528
-
529
-
530
-
531
-
532
- const ImageComponent = ({
533
- url,
534
- alternateName
535
- }) => {
536
- const {
537
- __experimentalImageGalleryImage: Image
538
- } = Components;
539
- return /*#__PURE__*/jsx_runtime_.jsx(Image, {
540
- src: url,
541
- alt: alternateName,
542
- width: 68,
543
- height: 68
544
- });
545
- };
546
-
547
- const ImageGallery_ImageGallery_ImageGallery = _ref => {
548
- let {
549
- images
550
- } = _ref,
551
- otherProps = _objectWithoutProperties(_ref, _excluded);
552
-
553
- const {
554
- 0: selectedImageIdx,
555
- 1: setSelectedImageIdx
556
- } = (0,external_react_.useState)(0);
557
- const currentImage = images[selectedImageIdx] ?? images[0];
558
- const dynamicRoute = (0,router_.useRouter)().asPath;
559
- (0,external_react_.useEffect)(() => setSelectedImageIdx(0), [dynamicRoute]); // Deconstructing the object to avoid circular dependency errors
560
-
561
- const {
562
- ImageGallery: ImageGalleryWrapper,
563
- ImageZoom,
564
- __experimentalImageGalleryImage: Image
565
- } = Components;
566
- return /*#__PURE__*/jsx_runtime_.jsx(ImageGalleryWrapper, _objectSpread(_objectSpread(_objectSpread({}, productDetailsPropsCustomization.ImageGallery), {}, {
567
- images: images,
568
- ImageComponent: ImageComponent,
569
- selectedImageIdx: selectedImageIdx,
570
- setSelectedImageIdx: setSelectedImageIdx
571
- }, otherProps), {}, {
572
- children: /*#__PURE__*/jsx_runtime_.jsx(ImageZoom, _objectSpread(_objectSpread({}, productDetailsPropsCustomization.ImageZoom), {}, {
573
- children: /*#__PURE__*/jsx_runtime_.jsx(Image, _objectSpread(_objectSpread({
574
- sizes: "(max-width: 360px) 50vw, (max-width: 768px) 90vw, 50vw",
575
- width: 691,
576
- height: 691 * (3 / 4),
577
- loading: "eager"
578
- }, productDetailsPropsCustomization.__experimentalImageGalleryImage), {}, {
579
- src: currentImage.url,
580
- alt: currentImage.alternateName
581
- }))
582
- }))
583
- }));
584
- };
585
-
586
- /* harmony default export */ const ui_ImageGallery_ImageGallery = (ImageGallery_ImageGallery_ImageGallery);
587
- ;// CONCATENATED MODULE: ./src/components/ui/ImageGallery/index.ts
588
-
589
- // EXTERNAL MODULE: ./src/sdk/graphql/request.ts
590
- var request = __webpack_require__(180);
591
- ;// CONCATENATED MODULE: ./src/sdk/shipping/index.ts
592
-
593
- const query = "ShippingSimulationQuery";
594
- const getShippingSimulation = async ({
595
- items,
596
- postalCode,
597
- country
598
- }) => {
599
- const data = await (0,request/* request */.W)(query, {
600
- items,
601
- postalCode,
602
- country
603
- });
604
- return data.shipping;
605
- };
606
- /* harmony default export */ const shipping = ((/* unused pure expression or super */ null && (getShippingSimulation)));
607
- // EXTERNAL MODULE: ./src/sdk/session/index.ts + 1 modules
608
- var session = __webpack_require__(97295);
609
- ;// CONCATENATED MODULE: ./src/components/ui/ShippingSimulation/useShippingSimulation.ts
610
- 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; }
611
-
612
- 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; }
613
-
614
- 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; }
615
-
616
-
617
-
618
- const createEmptySimulation = () => ({
619
- input: {
620
- postalCode: '',
621
- displayClearButton: false,
622
- errorMessage: ''
623
- },
624
- shippingSimulation: {
625
- location: '',
626
- options: []
627
- }
628
- });
629
-
630
- const reducer = (state, action) => {
631
- const {
632
- type
633
- } = action;
634
-
635
- switch (type) {
636
- case 'clear':
637
- {
638
- return createEmptySimulation();
639
- }
640
-
641
- case 'update':
642
- {
643
- const {
644
- payload
645
- } = action;
646
- return {
647
- input: useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state.input), payload.input),
648
- shippingSimulation: useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state.shippingSimulation), payload.shippingSimulation)
649
- };
650
- }
651
-
652
- case 'onInput':
653
- {
654
- const {
655
- payload
656
- } = action;
657
- return useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state), {}, {
658
- input: useShippingSimulation_objectSpread({}, payload)
659
- });
660
- }
661
-
662
- case 'onError':
663
- {
664
- const {
665
- payload
666
- } = action;
667
- return useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state), {}, {
668
- input: useShippingSimulation_objectSpread(useShippingSimulation_objectSpread({}, state.input), payload)
669
- });
670
- }
671
-
672
- default:
673
- throw new Error(`Action ${type} not implemented`);
674
- }
675
- };
676
-
677
- const useShippingSimulation = (shippingItem, fetchShippingSimulationFn, sessionPostalCode, country) => {
678
- const {
679
- 0: {
680
- input,
681
- shippingSimulation
682
- },
683
- 1: dispatch
684
- } = (0,external_react_.useReducer)(reducer, null, createEmptySimulation);
685
- const {
686
- postalCode: shippingPostalCode
687
- } = input;
688
- (0,external_react_.useEffect)(() => {
689
- if (!sessionPostalCode || shippingPostalCode) {
690
- return;
691
- } // Use sessionPostalCode if there is no shippingPostalCode
692
-
693
-
694
- async function fetchShipping() {
695
- const [location, options] = await fetchShippingSimulationFn(shippingItem, country, sessionPostalCode ?? '');
696
- dispatch({
697
- type: 'update',
698
- payload: {
699
- input: {
700
- postalCode: sessionPostalCode ?? '',
701
- displayClearButton: true,
702
- errorMessage: ''
703
- },
704
- shippingSimulation: {
705
- location,
706
- options
707
- }
708
- }
709
- });
710
- }
711
-
712
- fetchShipping();
713
- }, [country, fetchShippingSimulationFn, sessionPostalCode, shippingItem, shippingPostalCode]);
714
- const handleSubmit = (0,external_react_.useCallback)(async () => {
715
- try {
716
- const [location, options] = await fetchShippingSimulationFn(shippingItem, country, shippingPostalCode ?? '');
717
- dispatch({
718
- type: 'update',
719
- payload: {
720
- input: {
721
- displayClearButton: true,
722
- errorMessage: ''
723
- },
724
- shippingSimulation: {
725
- location,
726
- options
727
- }
728
- }
729
- });
730
- } catch (error) {
731
- dispatch({
732
- type: 'onError',
733
- payload: {
734
- displayClearButton: true,
735
- errorMessage: 'You entered an invalid Postal Code'
736
- }
737
- });
738
- }
739
- }, [country, fetchShippingSimulationFn, shippingItem, shippingPostalCode]);
740
- const handleOnInput = (0,external_react_.useCallback)(e => {
741
- const currentValue = e.currentTarget.value;
742
-
743
- if (currentValue) {
744
- dispatch({
745
- type: 'onInput',
746
- payload: {
747
- postalCode: currentValue,
748
- displayClearButton: false,
749
- errorMessage: ''
750
- }
751
- });
752
- } else {
753
- dispatch({
754
- type: 'clear'
755
- });
756
- }
757
- }, []);
758
- return {
759
- input,
760
- shippingSimulation,
761
- handleOnClear: () => {
762
- dispatch({
763
- type: 'clear'
764
- });
765
- },
766
- handleSubmit,
767
- handleOnInput
768
- };
769
- };
770
- ;// CONCATENATED MODULE: ./src/components/ui/ShippingSimulation/ShippingSimulation.tsx
771
- const ShippingSimulation_excluded = ["productShippingInfo", "formatter", "inputLabel", "title", "idkPostalCodeLinkProps"];
772
-
773
- 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; }
774
-
775
- 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; }
776
-
777
- 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; }
778
-
779
- 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; }
780
-
781
- 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; }
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
- const fetchShippingSimulation = async (shippingItem, country, postalCode) => {
790
- const shipping = await getShippingSimulation({
791
- country,
792
- postalCode: postalCode,
793
- items: [shippingItem]
794
- });
795
- const location = [shipping?.address?.neighborhood, shipping?.address?.city].filter(Boolean).join(' / ') ?? '';
796
- const options = shipping?.logisticsInfo?.[0]?.slas ?? [];
797
- return [location, options];
798
- };
799
-
800
- function ShippingSimulation_ShippingSimulation_ShippingSimulation(_ref) {
801
- let {
802
- productShippingInfo,
803
- formatter,
804
- inputLabel,
805
- title,
806
- idkPostalCodeLinkProps
807
- } = _ref,
808
- otherProps = ShippingSimulation_objectWithoutProperties(_ref, ShippingSimulation_excluded);
809
-
810
- const {
811
- country,
812
- postalCode: sessionPostalCode
813
- } = (0,session/* useSession */.kP)();
814
- const {
815
- ShippingSimulation: ShippingSimulationWrapper
816
- } = Components;
817
- const {
818
- input,
819
- shippingSimulation,
820
- handleSubmit,
821
- handleOnInput,
822
- handleOnClear
823
- } = useShippingSimulation(productShippingInfo, fetchShippingSimulation, sessionPostalCode, country);
824
- const {
825
- postalCode,
826
- displayClearButton,
827
- errorMessage
828
- } = input;
829
- const {
830
- location,
831
- options
832
- } = shippingSimulation;
833
- return /*#__PURE__*/jsx_runtime_.jsx(ShippingSimulationWrapper, ShippingSimulation_objectSpread({
834
- formatter: formatter,
835
- onInput: handleOnInput,
836
- onSubmit: handleSubmit,
837
- onClear: handleOnClear,
838
- location: location,
839
- options: options,
840
- displayClearButton: displayClearButton,
841
- errorMessage: errorMessage,
842
- postalCode: postalCode,
843
- inputLabel: inputLabel,
844
- title: title,
845
- idkPostalCodeLinkProps: idkPostalCodeLinkProps
846
- }, otherProps));
847
- }
848
- // EXTERNAL MODULE: ./src/components/ui/Image/index.ts + 2 modules
849
- var Image = __webpack_require__(79266);
850
- ;// CONCATENATED MODULE: ./src/customizations/components/overrides/ProductDetails.tsx
851
- // This is an example of how it can be used on the starter.
852
- const SECTION = 'ProductDetails';
853
- const overrides = {
854
- name: SECTION,
855
- components: {
856
- ProductTitle: {
857
- props: {}
858
- },
859
- DiscountBadge: {
860
- props: {}
861
- },
862
- BuyButton: {
863
- props: {}
864
- },
865
- Icon: {
866
- props: {}
867
- },
868
- Price: {
869
- props: {}
870
- },
871
- QuantitySelector: {
872
- props: {}
873
- },
874
- SkuSelector: {
875
- props: {}
876
- },
877
- ShippingSimulation: {
878
- props: {}
879
- },
880
- ImageGallery: {
881
- props: {}
882
- },
883
- ImageZoom: {
884
- props: {}
885
- },
886
- __experimentalImageGalleryImage: {
887
- props: {}
888
- },
889
- __experimentalImageGallery: {
890
- props: {}
891
- },
892
- __experimentalShippingSimulation: {
893
- props: {}
894
- }
895
- }
896
- };
897
- /* harmony default export */ const ProductDetails = (overrides);
898
- ;// CONCATENATED MODULE: ./src/components/sections/ProductDetails/Overrides.tsx
899
- function Overrides_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; }
900
-
901
- function Overrides_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? Overrides_ownKeys(Object(source), !0).forEach(function (key) { Overrides_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : Overrides_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
902
-
903
- function Overrides_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; }
904
-
905
-
906
-
907
-
908
-
909
-
910
- const productDetailsComponentsCustomization = {};
911
- const productDetailsPropsCustomization = {};
912
- Object.entries(ProductDetails.components).forEach(([key, value]) => {
913
- if (value.Component) {
914
- productDetailsComponentsCustomization[key] = value.Component;
915
- }
916
- });
917
- Object.entries(ProductDetails.components).forEach(([key, value]) => {
918
- if (value.props) {
919
- productDetailsPropsCustomization[key] = value.props;
920
- }
921
- });
922
-
923
- const Components = Overrides_objectSpread({
924
- ProductTitle: ProductTitle_ProductTitle,
925
- DiscountBadge: DiscountBadge/* default */.Z,
926
- BuyButton: BuyButton_BuyButton,
927
- Icon: Icon/* default */.Z,
928
- Price: Price/* default */.Z,
929
- QuantitySelector: QuantitySelector/* default */.Z,
930
- SkuSelector: SkuSelector_SkuSelector,
931
- ShippingSimulation: ShippingSimulation_ShippingSimulation,
932
- ImageGallery: ImageGallery_ImageGallery,
933
- ImageZoom: ImageGallery_ImageZoom,
934
- __experimentalImageGalleryImage: Image/* Image */.E,
935
- __experimentalImageGallery: ui_ImageGallery_ImageGallery,
936
- __experimentalShippingSimulation: ShippingSimulation_ShippingSimulation_ShippingSimulation
937
- }, productDetailsComponentsCustomization);
938
-
939
-
940
-
941
- /***/ }),
942
-
943
- /***/ 81644:
944
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
945
-
946
- "use strict";
947
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
948
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
949
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
950
- /* harmony export */ });
951
- /* unused harmony export fragment */
952
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
953
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
954
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(71072);
955
- /* harmony import */ var src_sdk_session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97295);
956
- /* harmony import */ var src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63874);
957
- /* harmony import */ var src_sdk_product_useFormattedPrice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95346);
958
- /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57067);
959
- /* harmony import */ var src_components_product_OutOfStock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40492);
960
- /* harmony import */ var src_components_ui_ProductDescription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(90509);
961
- /* harmony import */ var src_components_ui_ProductDetails__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33183);
962
- /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79034);
963
- /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_section_module_scss__WEBPACK_IMPORTED_MODULE_11__);
964
- /* harmony import */ var src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27534);
965
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20997);
966
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__);
967
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_2__]);
968
- src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
969
- 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; }
970
-
971
- 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; }
972
-
973
- 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; }
974
-
975
-
976
-
977
-
978
-
979
-
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
- const {
989
- ProductTitle,
990
- DiscountBadge,
991
- __experimentalImageGallery: ImageGallery,
992
- __experimentalShippingSimulation: ShippingSimulation
993
- } = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Components */ .z;
994
-
995
- function ProductDetails({
996
- context: staleProduct,
997
- productTitle: {
998
- refNumber: showRefNumber,
999
- discountBadge: {
1000
- showDiscountBadge,
1001
- size: discountBadgeSize = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.DiscountBadge.size */ .x.DiscountBadge.size
1002
- }
1003
- },
1004
- buyButton: {
1005
- icon: buyButtonIcon,
1006
- title: buyButtonTitle
1007
- },
1008
- shippingSimulator: {
1009
- title: shippingSimulatorTitle = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalShippingSimulation.title */ .x.__experimentalShippingSimulation.title,
1010
- inputLabel: shippingSimulatorInputLabel = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalShippingSimulation.inputLabel */ .x.__experimentalShippingSimulation.inputLabel,
1011
- shippingOptionsTableTitle: shippingSimulatorOptionsTableTitle = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalShippingSimulation.optionsLabel */ .x.__experimentalShippingSimulation.optionsLabel,
1012
- link: {
1013
- to: shippingSimulatorLinkUrl = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalShippingSimulation.idkPostalCodeLinkProps */ .x.__experimentalShippingSimulation.idkPostalCodeLinkProps?.href,
1014
- text: shippingSimulatorLinkText = src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalShippingSimulation.idkPostalCodeLinkProps */ .x.__experimentalShippingSimulation.idkPostalCodeLinkProps?.children
1015
- }
1016
- },
1017
- productDescription: {
1018
- title: productDescriptionDetailsTitle,
1019
- initiallyExpanded: productDescriptionInitiallyExpanded,
1020
- displayDescription: shouldDisplayProductDescription
1021
- }
1022
- }) {
1023
- const {
1024
- currency
1025
- } = (0,src_sdk_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
1026
- const {
1027
- 0: quantity,
1028
- 1: setQuantity
1029
- } = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1); // Stale while revalidate the product for fetching the new price etc
1030
-
1031
- const {
1032
- data,
1033
- isValidating
1034
- } = (0,src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_2__/* .useProduct */ .i)(staleProduct.id, {
1035
- product: staleProduct
1036
- });
1037
-
1038
- if (!data) {
1039
- throw new Error('NotFound');
1040
- }
1041
-
1042
- const {
1043
- product: {
1044
- id,
1045
- sku,
1046
- gtin,
1047
- name: variantName,
1048
- brand,
1049
- isVariantOf,
1050
- description,
1051
- isVariantOf: {
1052
- name,
1053
- productGroupID: productId
1054
- },
1055
- image: productImages,
1056
- offers: {
1057
- offers: [{
1058
- availability,
1059
- price,
1060
- listPrice,
1061
- seller
1062
- }],
1063
- lowPrice
1064
- }
1065
- }
1066
- } = data;
1067
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
1068
- (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_10__/* .sendAnalyticsEvent */ ._)({
1069
- name: 'view_item',
1070
- params: {
1071
- currency: currency.code,
1072
- value: price,
1073
- items: [{
1074
- item_id: isVariantOf.productGroupID,
1075
- item_name: isVariantOf.name,
1076
- item_brand: brand.name,
1077
- item_variant: sku,
1078
- price,
1079
- discount: listPrice - price,
1080
- currency: currency.code,
1081
- item_variant_name: variantName,
1082
- product_reference_id: gtin
1083
- }]
1084
- }
1085
- });
1086
- }, [isVariantOf.productGroupID, isVariantOf.name, brand.name, sku, price, listPrice, currency.code, variantName, gtin]);
1087
- return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(_Section__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
1088
- className: `${(_section_module_scss__WEBPACK_IMPORTED_MODULE_11___default().section)} section-product-details layout__content layout__section`,
1089
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx("section", {
1090
- "data-fs-product-details": true,
1091
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("section", {
1092
- "data-fs-product-details-body": true,
1093
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx("header", {
1094
- "data-fs-product-details-title": true,
1095
- "data-fs-product-details-section": true,
1096
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(ProductTitle // TODO: We should review this prop. There's now way to override the title and use the dynamic name value.
1097
- // Maybe passing a ProductTitleHeader component as a prop would be better, as it would be overridable.
1098
- // 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.
1099
- , _objectSpread(_objectSpread({
1100
- title: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx("h1", {
1101
- children: name
1102
- })
1103
- }, src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.ProductTitle */ .x.ProductTitle), {}, {
1104
- label: showDiscountBadge && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(DiscountBadge, _objectSpread(_objectSpread({}, src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.DiscountBadge */ .x.DiscountBadge), {}, {
1105
- size: discountBadgeSize // Dynamic props shouldn't be overridable
1106
- // This decision can be reviewed later if needed
1107
- ,
1108
- listPrice: listPrice,
1109
- spotPrice: lowPrice
1110
- })),
1111
- refNumber: showRefNumber && productId
1112
- }))
1113
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(ImageGallery, _objectSpread(_objectSpread({
1114
- "data-fs-product-details-gallery": true
1115
- }, src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalImageGallery */ .x.__experimentalImageGallery), {}, {
1116
- images: productImages
1117
- })), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("section", {
1118
- "data-fs-product-details-info": true,
1119
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx("section", {
1120
- "data-fs-product-details-settings": true,
1121
- "data-fs-product-details-section": true,
1122
- children: availability ? /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_ui_ProductDetails__WEBPACK_IMPORTED_MODULE_7__/* .ProductDetailsSettings */ .m, {
1123
- product: data.product,
1124
- isValidating: isValidating,
1125
- buyButtonTitle: buyButtonTitle,
1126
- quantity: quantity,
1127
- setQuantity: setQuantity,
1128
- buyButtonIcon: buyButtonIcon
1129
- }) : /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_product_OutOfStock__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {})
1130
- }), availability && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(ShippingSimulation, _objectSpread(_objectSpread({
1131
- "data-fs-product-details-section": true,
1132
- "data-fs-product-details-shipping": true,
1133
- formatter: src_sdk_product_useFormattedPrice__WEBPACK_IMPORTED_MODULE_3__/* .useFormattedPrice */ .P
1134
- }, src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.__experimentalShippingSimulation */ .x.__experimentalShippingSimulation), {}, {
1135
- idkPostalCodeLinkProps: _objectSpread(_objectSpread({}, src_components_sections_ProductDetails_Overrides__WEBPACK_IMPORTED_MODULE_8__/* .Props.idkPostalCodeLinkProps */ .x.idkPostalCodeLinkProps), {}, {
1136
- href: shippingSimulatorLinkUrl,
1137
- children: shippingSimulatorLinkText
1138
- }),
1139
- productShippingInfo: {
1140
- id,
1141
- quantity,
1142
- seller: seller.identifier
1143
- },
1144
- title: shippingSimulatorTitle,
1145
- inputLabel: shippingSimulatorInputLabel,
1146
- optionsLabel: shippingSimulatorOptionsTableTitle
1147
- }))]
1148
- }), shouldDisplayProductDescription && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx(src_components_ui_ProductDescription__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
1149
- initiallyExpanded: productDescriptionInitiallyExpanded,
1150
- descriptionData: [{
1151
- title: productDescriptionDetailsTitle,
1152
- content: description
1153
- }]
1154
- })]
1155
- })
1156
- })
1157
- });
1158
- }
1159
-
1160
- const fragment = "unknown";
1161
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductDetails);
1162
- __webpack_async_result__();
1163
- } catch(e) { __webpack_async_result__(e); } });
1164
-
1165
- /***/ }),
1166
-
1167
- /***/ 93220:
1168
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
1169
-
1170
- "use strict";
1171
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
1172
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1173
- /* harmony export */ "Z": () => (/* reexport safe */ _ProductDetails__WEBPACK_IMPORTED_MODULE_0__.Z)
1174
- /* harmony export */ });
1175
- /* harmony import */ var _ProductDetails__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81644);
1176
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductDetails__WEBPACK_IMPORTED_MODULE_0__]);
1177
- _ProductDetails__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
1178
-
1179
- __webpack_async_result__();
1180
- } catch(e) { __webpack_async_result__(e); } });
1181
-
1182
- /***/ }),
1183
-
1184
- /***/ 90509:
1185
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1186
-
1187
- "use strict";
1188
-
1189
- // EXPORTS
1190
- __webpack_require__.d(__webpack_exports__, {
1191
- "Z": () => (/* reexport */ ProductDescription_ProductDescription)
1192
- });
1193
-
1194
- // EXTERNAL MODULE: external "react"
1195
- var external_react_ = __webpack_require__(16689);
1196
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/Accordion.js
1197
- var Accordion = __webpack_require__(39739);
1198
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/AccordionItem.js
1199
- var AccordionItem = __webpack_require__(60997);
1200
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/AccordionButton.js
1201
- var AccordionButton = __webpack_require__(47743);
1202
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/AccordionPanel.js
1203
- var AccordionPanel = __webpack_require__(20331);
1204
- // EXTERNAL MODULE: external "react/jsx-runtime"
1205
- var jsx_runtime_ = __webpack_require__(20997);
1206
- ;// CONCATENATED MODULE: ./src/components/ui/ProductDescription/ProductDescription.tsx
1207
-
1208
-
1209
-
1210
-
1211
-
1212
- function ProductDescription({
1213
- descriptionData,
1214
- initiallyExpanded = 'first'
1215
- }) {
1216
- /**
1217
- * Maps 'initiallyExpanded' prop values to indices
1218
- */
1219
- const INITIALLY_EXPANDED_MAP = (0,external_react_.useMemo)(() => ({
1220
- none: [],
1221
- first: [0],
1222
- all: [0, 1, 2, 3]
1223
- }), []);
1224
- const {
1225
- 0: indices,
1226
- 1: setIndices
1227
- } = (0,external_react_.useState)(new Set(INITIALLY_EXPANDED_MAP[initiallyExpanded]));
1228
-
1229
- const onChange = index => {
1230
- setIndices(currentIndices => {
1231
- const newIndices = new Set(currentIndices);
1232
-
1233
- if (currentIndices.has(index)) {
1234
- newIndices.delete(index);
1235
- } else {
1236
- newIndices.add(index);
1237
- }
1238
-
1239
- return newIndices;
1240
- });
1241
- };
1242
-
1243
- return /*#__PURE__*/jsx_runtime_.jsx("section", {
1244
- "data-fs-product-description": true,
1245
- children: /*#__PURE__*/jsx_runtime_.jsx(Accordion/* default */.Z, {
1246
- indices: indices,
1247
- onChange: onChange,
1248
- "aria-label": "Product Details Content",
1249
- children: descriptionData.map(({
1250
- title,
1251
- content
1252
- }, index) => /*#__PURE__*/(0,jsx_runtime_.jsxs)(AccordionItem/* default */.Z, {
1253
- as: "article",
1254
- index: index,
1255
- prefixId: "product-description",
1256
- "data-fs-product-details-description": true,
1257
- children: [/*#__PURE__*/jsx_runtime_.jsx(AccordionButton/* default */.Z, {
1258
- children: title
1259
- }), /*#__PURE__*/jsx_runtime_.jsx(AccordionPanel/* default */.Z, {
1260
- children: /*#__PURE__*/jsx_runtime_.jsx("p", {
1261
- className: "text__body",
1262
- children: content
1263
- })
1264
- })]
1265
- }, String(index)))
1266
- })
1267
- });
1268
- }
1269
-
1270
- /* harmony default export */ const ProductDescription_ProductDescription = (ProductDescription);
1271
- ;// CONCATENATED MODULE: ./src/components/ui/ProductDescription/index.ts
1272
-
1273
-
1274
- /***/ }),
1275
-
1276
- /***/ 33183:
1277
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1278
-
1279
- "use strict";
1280
-
1281
- // EXPORTS
1282
- __webpack_require__.d(__webpack_exports__, {
1283
- "m": () => (/* reexport */ ProductDetails_ProductDetailsSettings)
1284
- });
1285
-
1286
- // UNUSED EXPORTS: AddToCartLoadingSkeleton
1287
-
1288
- // EXTERNAL MODULE: ../sdk/dist/analytics/sendAnalyticsEvent.js
1289
- var sendAnalyticsEvent = __webpack_require__(71072);
1290
- // EXTERNAL MODULE: external "react"
1291
- var external_react_ = __webpack_require__(16689);
1292
- // EXTERNAL MODULE: ./src/sdk/session/index.ts + 1 modules
1293
- var session = __webpack_require__(97295);
1294
- // EXTERNAL MODULE: ../components/dist/hooks/UIProvider.js
1295
- var UIProvider = __webpack_require__(90395);
1296
- // EXTERNAL MODULE: ./src/sdk/cart/index.ts + 1 modules
1297
- var cart = __webpack_require__(46073);
1298
- ;// CONCATENATED MODULE: ./src/sdk/cart/useBuyButton.ts
1299
-
1300
-
1301
-
1302
-
1303
-
1304
- const useBuyButton = item => {
1305
- const {
1306
- openCart
1307
- } = (0,UIProvider/* useUI */.l)();
1308
- const {
1309
- currency: {
1310
- code
1311
- }
1312
- } = (0,session/* useSession */.kP)();
1313
- const onClick = (0,external_react_.useCallback)(e => {
1314
- e.preventDefault();
1315
-
1316
- if (!item) {
1317
- return;
1318
- }
1319
-
1320
- (0,sendAnalyticsEvent/* sendAnalyticsEvent */._)({
1321
- name: 'add_to_cart',
1322
- params: {
1323
- currency: code,
1324
- // TODO: In the future, we can explore more robust ways of
1325
- // calculating the value (gift items, discounts, etc.).
1326
- value: item.price * item.quantity,
1327
- items: [{
1328
- item_id: item.itemOffered.isVariantOf.productGroupID,
1329
- item_name: item.itemOffered.isVariantOf.name,
1330
- item_brand: item.itemOffered.brand.name,
1331
- item_variant: item.itemOffered.sku,
1332
- quantity: item.quantity,
1333
- price: item.price,
1334
- discount: item.listPrice - item.price,
1335
- currency: code,
1336
- item_variant_name: item.itemOffered.name,
1337
- product_reference_id: item.itemOffered.gtin
1338
- }]
1339
- }
1340
- });
1341
- cart/* cartStore.addItem */.i8.addItem(item);
1342
- openCart();
1343
- }, [code, item, openCart]);
1344
- return {
1345
- onClick,
1346
- 'data-testid': 'buy-button',
1347
- 'data-sku': item?.itemOffered.sku,
1348
- 'data-seller': item?.seller.identifier
1349
- };
1350
- };
1351
- // EXTERNAL MODULE: ./src/sdk/product/useFormattedPrice.ts
1352
- var useFormattedPrice = __webpack_require__(95346);
1353
- // EXTERNAL MODULE: ./node_modules/next/link.js
1354
- var next_link = __webpack_require__(41664);
1355
- var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
1356
- // EXTERNAL MODULE: ./src/components/ui/Image/index.ts + 2 modules
1357
- var Image = __webpack_require__(79266);
1358
- // EXTERNAL MODULE: ./src/components/sections/ProductDetails/Overrides.tsx + 19 modules
1359
- var Overrides = __webpack_require__(27534);
1360
- // EXTERNAL MODULE: external "react/jsx-runtime"
1361
- var jsx_runtime_ = __webpack_require__(20997);
1362
- ;// CONCATENATED MODULE: ./src/components/ui/SkuSelector/Selectors.tsx
1363
- const _excluded = ["src", "alt"],
1364
- _excluded2 = ["slugsMap", "activeVariations", "availableVariations"];
1365
-
1366
- 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; }
1367
-
1368
- 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; }
1369
-
1370
- 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; }
1371
-
1372
- 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; }
1373
-
1374
- 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; }
1375
-
1376
-
1377
-
1378
-
1379
-
1380
- const {
1381
- SkuSelector
1382
- } = Overrides/* Components */.z;
1383
-
1384
- const ImageComponent = _ref => {
1385
- let {
1386
- src,
1387
- alt
1388
- } = _ref,
1389
- otherProps = _objectWithoutProperties(_ref, _excluded);
1390
-
1391
- return /*#__PURE__*/jsx_runtime_.jsx(Image/* Image */.E, _objectSpread({
1392
- src: src,
1393
- alt: alt,
1394
- width: 34,
1395
- height: 34
1396
- }, otherProps));
1397
- };
1398
-
1399
- function Selectors(_ref2) {
1400
- let {
1401
- slugsMap,
1402
- activeVariations,
1403
- availableVariations
1404
- } = _ref2,
1405
- otherProps = _objectWithoutProperties(_ref2, _excluded2);
1406
-
1407
- return /*#__PURE__*/jsx_runtime_.jsx("section", _objectSpread(_objectSpread({}, otherProps), {}, {
1408
- children: availableVariations && Object.keys(availableVariations).map(skuVariant => /*#__PURE__*/jsx_runtime_.jsx(SkuSelector, {
1409
- skuPropertyName: skuVariant,
1410
- availableVariations: availableVariations,
1411
- ImageComponent: ImageComponent,
1412
- activeVariations: activeVariations,
1413
- slugsMap: slugsMap,
1414
- linkProps: {
1415
- as: (link_default()),
1416
- legacyBehavior: false
1417
- }
1418
- }, skuVariant))
1419
- }));
1420
- }
1421
-
1422
- /* harmony default export */ const SkuSelector_Selectors = (Selectors);
1423
- ;// CONCATENATED MODULE: ./src/components/ui/SkuSelector/index.ts
1424
-
1425
- ;// CONCATENATED MODULE: ./src/components/ui/ProductDetails/AddToCartLoadingSkeleton.tsx
1426
-
1427
-
1428
- function AddToCartLoadingSkeleton() {
1429
- return (
1430
- /*#__PURE__*/
1431
- // Generated via https://skeletonreact.com/.
1432
- (0,jsx_runtime_.jsxs)("svg", {
1433
- role: "img",
1434
- width: "100%",
1435
- height: "48",
1436
- "aria-labelledby": "loading-aria",
1437
- viewBox: "0 0 112 48",
1438
- preserveAspectRatio: "none",
1439
- children: [/*#__PURE__*/jsx_runtime_.jsx("title", {
1440
- id: "loading-aria",
1441
- children: "Loading..."
1442
- }), /*#__PURE__*/jsx_runtime_.jsx("rect", {
1443
- x: "0",
1444
- y: "0",
1445
- width: "100%",
1446
- height: "100%",
1447
- clipPath: "url(#clip-path)",
1448
- style: {
1449
- fill: 'url("#fill")'
1450
- }
1451
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("defs", {
1452
- children: [/*#__PURE__*/jsx_runtime_.jsx("clipPath", {
1453
- id: "clip-path",
1454
- children: /*#__PURE__*/jsx_runtime_.jsx("rect", {
1455
- x: "0",
1456
- y: "0",
1457
- rx: "2",
1458
- ry: "2",
1459
- width: "112",
1460
- height: "48"
1461
- })
1462
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("linearGradient", {
1463
- id: "fill",
1464
- children: [/*#__PURE__*/jsx_runtime_.jsx("stop", {
1465
- offset: "0.599964",
1466
- stopColor: "#f3f3f3",
1467
- stopOpacity: "1",
1468
- children: /*#__PURE__*/jsx_runtime_.jsx("animate", {
1469
- attributeName: "offset",
1470
- values: "-2; -2; 1",
1471
- keyTimes: "0; 0.25; 1",
1472
- dur: "2s",
1473
- repeatCount: "indefinite"
1474
- })
1475
- }), /*#__PURE__*/jsx_runtime_.jsx("stop", {
1476
- offset: "1.59996",
1477
- stopColor: "#ecebeb",
1478
- stopOpacity: "1",
1479
- children: /*#__PURE__*/jsx_runtime_.jsx("animate", {
1480
- attributeName: "offset",
1481
- values: "-1; -1; 2",
1482
- keyTimes: "0; 0.25; 1",
1483
- dur: "2s",
1484
- repeatCount: "indefinite"
1485
- })
1486
- }), /*#__PURE__*/jsx_runtime_.jsx("stop", {
1487
- offset: "2.59996",
1488
- stopColor: "#f3f3f3",
1489
- stopOpacity: "1",
1490
- children: /*#__PURE__*/jsx_runtime_.jsx("animate", {
1491
- attributeName: "offset",
1492
- values: "0; 0; 3",
1493
- keyTimes: "0; 0.25; 1",
1494
- dur: "2s",
1495
- repeatCount: "indefinite"
1496
- })
1497
- })]
1498
- })]
1499
- })]
1500
- })
1501
- );
1502
- }
1503
- ;// CONCATENATED MODULE: ./src/components/ui/ProductDetails/ProductDetailsSettings.tsx
1504
- 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; }
1505
-
1506
- 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; }
1507
-
1508
- 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; }
1509
-
1510
-
1511
-
1512
-
1513
-
1514
-
1515
-
1516
-
1517
-
1518
- const {
1519
- BuyButton,
1520
- Icon,
1521
- Price,
1522
- QuantitySelector
1523
- } = Overrides/* Components */.z;
1524
-
1525
- function ProductDetailsSettings({
1526
- product,
1527
- buyButtonTitle,
1528
- isValidating,
1529
- quantity,
1530
- setQuantity,
1531
- buyButtonIcon: {
1532
- icon: buyButtonIconName = Overrides/* Props.Icon.name */.x.Icon.name,
1533
- alt: buyButtonIconAlt = Overrides/* Props.Icon.aria-label */.x.Icon["aria-label"]
1534
- }
1535
- }) {
1536
- const {
1537
- id,
1538
- sku,
1539
- gtin,
1540
- name: variantName,
1541
- brand,
1542
- isVariantOf,
1543
- isVariantOf: {
1544
- skuVariants
1545
- },
1546
- image: productImages,
1547
- additionalProperty,
1548
- offers: {
1549
- lowPrice,
1550
- offers: [{
1551
- availability,
1552
- price,
1553
- listPrice,
1554
- seller
1555
- }]
1556
- }
1557
- } = product;
1558
- const buyDisabled = availability !== 'https://schema.org/InStock';
1559
- const buyProps = useBuyButton({
1560
- id,
1561
- price,
1562
- listPrice,
1563
- seller,
1564
- quantity,
1565
- itemOffered: {
1566
- sku,
1567
- name: variantName,
1568
- gtin,
1569
- image: productImages,
1570
- brand,
1571
- isVariantOf,
1572
- additionalProperty
1573
- }
1574
- });
1575
- return /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
1576
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("section", {
1577
- "data-fs-product-details-values": true,
1578
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
1579
- "data-fs-product-details-prices": true,
1580
- children: [/*#__PURE__*/jsx_runtime_.jsx(Price, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
1581
- formatter: useFormattedPrice/* useFormattedPrice */.P,
1582
- testId: "list-price",
1583
- variant: "listing",
1584
- SRText: "Original price:"
1585
- }, Overrides/* Props.Price */.x.Price), {}, {
1586
- value: listPrice,
1587
- "data-value": listPrice
1588
- })), /*#__PURE__*/jsx_runtime_.jsx(Price, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
1589
- formatter: useFormattedPrice/* useFormattedPrice */.P,
1590
- testId: "price",
1591
- variant: "spot",
1592
- className: "text__lead",
1593
- SRText: "Sale Price:"
1594
- }, Overrides/* Props.Price */.x.Price), {}, {
1595
- value: lowPrice,
1596
- "data-value": lowPrice
1597
- }))]
1598
- }), /*#__PURE__*/jsx_runtime_.jsx(QuantitySelector, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({
1599
- min: 1,
1600
- max: 10
1601
- }, Overrides/* Props.QuantitySelector */.x.QuantitySelector), {}, {
1602
- // Dynamic props shouldn't be overridable
1603
- // This decision can be reviewed later if needed
1604
- onChange: setQuantity
1605
- }))]
1606
- }), skuVariants && /*#__PURE__*/jsx_runtime_.jsx(SkuSelector_Selectors, {
1607
- slugsMap: skuVariants.slugsMap,
1608
- availableVariations: skuVariants.availableVariations,
1609
- activeVariations: skuVariants.activeVariations,
1610
- "data-fs-product-details-selectors": true
1611
- }),
1612
- /* NOTE: A loading skeleton had to be used to avoid a Lighthouse's
1613
- non-composited animation violation due to the button transitioning its
1614
- background color when changing from its initial disabled to active state.
1615
- See full explanation on commit https://git.io/JyXV5. */
1616
- isValidating ? /*#__PURE__*/jsx_runtime_.jsx(AddToCartLoadingSkeleton, {}) : /*#__PURE__*/jsx_runtime_.jsx(BuyButton, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({}, Overrides/* Props.BuyButton */.x.BuyButton), {}, {
1617
- icon: /*#__PURE__*/jsx_runtime_.jsx(Icon, ProductDetailsSettings_objectSpread(ProductDetailsSettings_objectSpread({}, Overrides/* Props.Icon */.x.Icon), {}, {
1618
- "aria-label": buyButtonIconAlt,
1619
- name: buyButtonIconName
1620
- })),
1621
- disabled: buyDisabled
1622
- }, buyProps), {}, {
1623
- children: buyButtonTitle || 'Add to Cart'
1624
- }))]
1625
- });
1626
- }
1627
-
1628
- /* harmony default export */ const ProductDetails_ProductDetailsSettings = (ProductDetailsSettings);
1629
- ;// CONCATENATED MODULE: ./src/components/ui/ProductDetails/index.ts
1630
-
1631
-
1632
-
1633
- /***/ }),
1634
-
1635
- /***/ 75779:
1636
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
1637
-
1638
- "use strict";
1639
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
1640
- __webpack_require__.r(__webpack_exports__);
1641
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1642
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
1643
- /* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
1644
- /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
1645
- /* harmony export */ });
1646
- /* harmony import */ var _faststore_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74826);
1647
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16641);
1648
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_seo__WEBPACK_IMPORTED_MODULE_1__);
1649
- /* harmony import */ var src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82224);
1650
- /* harmony import */ var src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72951);
1651
- /* harmony import */ var src_components_sections_Breadcrumb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49253);
1652
- /* harmony import */ var src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97990);
1653
- /* harmony import */ var src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93220);
1654
- /* harmony import */ var src_customizations_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20859);
1655
- /* harmony import */ var src_sdk_session__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97295);
1656
- /* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82541);
1657
- /* harmony import */ var src_server__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10350);
1658
- /* harmony import */ var src_server_cms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(15764);
1659
- /* harmony import */ var src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4074);
1660
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(97183);
1661
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_13__);
1662
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(20997);
1663
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__);
1664
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_2__, src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__, src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_5__, src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_6__, src_server__WEBPACK_IMPORTED_MODULE_10__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__]);
1665
- ([src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_2__, src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__, src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_5__, src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_6__, src_server__WEBPACK_IMPORTED_MODULE_10__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
1666
- 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; }
1667
-
1668
- 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; }
1669
-
1670
- 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; }
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
-
1678
-
1679
-
1680
-
1681
-
1682
-
1683
-
1684
-
1685
-
1686
- /**
1687
- * Sections: Components imported from each store's custom components and '../components/sections' only.
1688
- * Do not import or render components from any other folder in here.
1689
- */
1690
-
1691
-
1692
-
1693
-
1694
- const COMPONENTS = _objectSpread({
1695
- Breadcrumb: src_components_sections_Breadcrumb__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z,
1696
- ProductDetails: src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z,
1697
- CrossSellingShelf: src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z,
1698
- BannerNewsletter: src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z
1699
- }, src_customizations_components__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z);
1700
-
1701
- function Page({
1702
- product,
1703
- sections,
1704
- globalSections
1705
- }) {
1706
- const {
1707
- currency
1708
- } = (0,src_sdk_session__WEBPACK_IMPORTED_MODULE_8__/* .useSession */ .kP)();
1709
- const {
1710
- seo
1711
- } = product;
1712
- const title = seo.title || (_faststore_config__WEBPACK_IMPORTED_MODULE_13___default().seo.title);
1713
- const description = seo.description || (_faststore_config__WEBPACK_IMPORTED_MODULE_13___default().seo.description);
1714
- const canonical = `${(_faststore_config__WEBPACK_IMPORTED_MODULE_13___default().storeUrl)}${seo.canonical}`;
1715
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP, _objectSpread(_objectSpread({}, globalSections), {}, {
1716
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.NextSeo, {
1717
- title: title,
1718
- description: description,
1719
- canonical: canonical,
1720
- openGraph: {
1721
- type: 'og:product',
1722
- url: canonical,
1723
- title,
1724
- description,
1725
- images: product.image.map(img => ({
1726
- url: img.url,
1727
- alt: img.alternateName
1728
- }))
1729
- },
1730
- additionalMetaTags: [{
1731
- property: 'product:price:amount',
1732
- content: product.offers.lowPrice?.toString() ?? undefined
1733
- }, {
1734
- property: 'product:price:currency',
1735
- content: currency.code
1736
- }]
1737
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.BreadcrumbJsonLd, {
1738
- itemListElements: product.breadcrumbList.itemListElement
1739
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.ProductJsonLd, {
1740
- productName: product.name,
1741
- description: product.description,
1742
- brand: product.brand.name,
1743
- sku: product.sku,
1744
- gtin: product.gtin,
1745
- releaseDate: product.releaseDate,
1746
- images: product.image.map(img => img.url) // Somehow, Google does not understand this valid Schema.org schema, so we need to do conversions
1747
- ,
1748
- offersType: "AggregateOffer",
1749
- offers: _objectSpread(_objectSpread(_objectSpread({}, product.offers), product.offers.offers[0]), {}, {
1750
- url: canonical
1751
- })
1752
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_cms_RenderSections__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
1753
- context: product,
1754
- sections: sections,
1755
- components: COMPONENTS
1756
- })]
1757
- }));
1758
- }
1759
-
1760
- const query = "ServerProductPageQuery";
1761
- const getStaticProps = async ({
1762
- params,
1763
- previewData
1764
- }) => {
1765
- const slug = params?.slug ?? '';
1766
- const [searchResult, cmsPage, globalSections] = await Promise.all([(0,src_server__WEBPACK_IMPORTED_MODULE_10__/* .execute */ .h)({
1767
- variables: {
1768
- slug
1769
- },
1770
- operationName: query
1771
- }), (0,src_server_cms__WEBPACK_IMPORTED_MODULE_11__/* .getPage */ .f)(_objectSpread(_objectSpread({}, previewData?.contentType === 'pdp' ? previewData : null), {}, {
1772
- contentType: 'pdp'
1773
- })), (0,src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_12__/* .getGlobalSectionsData */ .Tc)(previewData)]);
1774
- const {
1775
- data,
1776
- errors = []
1777
- } = searchResult;
1778
- const notFound = errors.find(_faststore_api__WEBPACK_IMPORTED_MODULE_0__.isNotFoundError);
1779
-
1780
- if (notFound) {
1781
- return {
1782
- notFound: true
1783
- };
1784
- }
1785
-
1786
- if (errors.length > 0) {
1787
- throw errors[0];
1788
- }
1789
-
1790
- return {
1791
- props: _objectSpread(_objectSpread(_objectSpread({}, data), cmsPage), {}, {
1792
- globalSections
1793
- })
1794
- };
1795
- };
1796
- const getStaticPaths = async () => {
1797
- return {
1798
- paths: [],
1799
- fallback: 'blocking'
1800
- };
1801
- };
1802
- Page.displayName = 'Page';
1803
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_9__/* .mark */ .B)(Page));
1804
- __webpack_async_result__();
1805
- } catch(e) { __webpack_async_result__(e); } });
1806
-
1807
- /***/ }),
1808
-
1809
- /***/ 63874:
1810
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
1811
-
1812
- "use strict";
1813
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
1814
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1815
- /* harmony export */ "i": () => (/* binding */ useProduct)
1816
- /* harmony export */ });
1817
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
1818
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1819
- /* harmony import */ var _graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77732);
1820
- /* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97295);
1821
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__]);
1822
- _graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
1823
-
1824
-
1825
-
1826
- const query = "BrowserProductQuery";
1827
- const useProduct = (productID, fallbackData) => {
1828
- const {
1829
- channel,
1830
- locale
1831
- } = (0,_session__WEBPACK_IMPORTED_MODULE_2__/* .useSession */ .kP)();
1832
- const variables = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
1833
- if (!channel) {
1834
- throw new Error(`useProduct: 'channel' from session is an empty string.`);
1835
- }
1836
-
1837
- return {
1838
- locator: [{
1839
- key: 'id',
1840
- value: productID
1841
- }, {
1842
- key: 'channel',
1843
- value: channel
1844
- }, {
1845
- key: 'locale',
1846
- value: locale
1847
- }]
1848
- };
1849
- }, [channel, locale, productID]);
1850
- return (0,_graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__/* .useQuery */ .aM)(query, variables, {
1851
- fallbackData,
1852
- revalidateOnMount: true
1853
- });
1854
- };
1855
- __webpack_async_result__();
1856
- } catch(e) { __webpack_async_result__(e); } });
1857
-
1858
- /***/ }),
1859
-
1860
- /***/ 5411:
1861
- /***/ ((module) => {
1862
-
1863
- // Exports
1864
- module.exports = {
1865
- "section": "section_section__pVnFl"
1866
- };
1867
-
1868
-
1869
- /***/ }),
1870
-
1871
- /***/ 79034:
1872
- /***/ ((module) => {
1873
-
1874
- // Exports
1875
- module.exports = {
1876
- "section": "section_section__XsOoR"
1877
- };
1878
-
1879
-
1880
- /***/ }),
1881
-
1882
- /***/ 74691:
1883
- /***/ ((module) => {
1884
-
1885
- "use strict";
1886
- module.exports = require("@opentelemetry/api");
1887
-
1888
- /***/ }),
1889
-
1890
- /***/ 38973:
1891
- /***/ ((module) => {
1892
-
1893
- "use strict";
1894
- module.exports = require("@opentelemetry/api-logs");
1895
-
1896
- /***/ }),
1897
-
1898
- /***/ 16969:
1899
- /***/ ((module) => {
1900
-
1901
- "use strict";
1902
- module.exports = require("@opentelemetry/exporter-logs-otlp-grpc");
1903
-
1904
- /***/ }),
1905
-
1906
- /***/ 15196:
1907
- /***/ ((module) => {
1908
-
1909
- "use strict";
1910
- module.exports = require("@opentelemetry/exporter-trace-otlp-grpc");
1911
-
1912
- /***/ }),
1913
-
1914
- /***/ 44161:
1915
- /***/ ((module) => {
1916
-
1917
- "use strict";
1918
- module.exports = require("@opentelemetry/resources");
1919
-
1920
- /***/ }),
1921
-
1922
- /***/ 42793:
1923
- /***/ ((module) => {
1924
-
1925
- "use strict";
1926
- module.exports = require("@opentelemetry/sdk-logs");
1927
-
1928
- /***/ }),
1929
-
1930
- /***/ 1283:
1931
- /***/ ((module) => {
1932
-
1933
- "use strict";
1934
- module.exports = require("@opentelemetry/sdk-trace-base");
1935
-
1936
- /***/ }),
1937
-
1938
- /***/ 16676:
1939
- /***/ ((module) => {
1940
-
1941
- "use strict";
1942
- module.exports = require("@vtex/client-cms");
1943
-
1944
- /***/ }),
1945
-
1946
- /***/ 26911:
1947
- /***/ ((module) => {
1948
-
1949
- "use strict";
1950
- module.exports = require("draft-js");
1951
-
1952
- /***/ }),
1953
-
1954
- /***/ 4539:
1955
- /***/ ((module) => {
1956
-
1957
- "use strict";
1958
- module.exports = require("draft-js-export-html");
1959
-
1960
- /***/ }),
1961
-
1962
- /***/ 12404:
1963
- /***/ ((module) => {
1964
-
1965
- "use strict";
1966
- module.exports = require("fast-deep-equal");
1967
-
1968
- /***/ }),
1969
-
1970
- /***/ 57343:
1971
- /***/ ((module) => {
1972
-
1973
- "use strict";
1974
- module.exports = require("graphql");
1975
-
1976
- /***/ }),
1977
-
1978
- /***/ 36548:
1979
- /***/ ((module) => {
1980
-
1981
- "use strict";
1982
- module.exports = require("graphql/language");
1983
-
1984
- /***/ }),
1985
-
1986
- /***/ 83430:
1987
- /***/ ((module) => {
1988
-
1989
- "use strict";
1990
- module.exports = require("idb-keyval");
1991
-
1992
- /***/ }),
1993
-
1994
- /***/ 47881:
1995
- /***/ ((module) => {
1996
-
1997
- "use strict";
1998
- module.exports = require("isomorphic-unfetch");
1999
-
2000
- /***/ }),
2001
-
2002
- /***/ 16641:
2003
- /***/ ((module) => {
2004
-
2005
- "use strict";
2006
- module.exports = require("next-seo");
2007
-
2008
- /***/ }),
2009
-
2010
- /***/ 3280:
2011
- /***/ ((module) => {
2012
-
2013
- "use strict";
2014
- module.exports = require("next/dist/shared/lib/app-router-context.js");
2015
-
2016
- /***/ }),
2017
-
2018
- /***/ 92796:
2019
- /***/ ((module) => {
2020
-
2021
- "use strict";
2022
- module.exports = require("next/dist/shared/lib/head-manager-context.js");
2023
-
2024
- /***/ }),
2025
-
2026
- /***/ 94957:
2027
- /***/ ((module) => {
2028
-
2029
- "use strict";
2030
- module.exports = require("next/dist/shared/lib/head.js");
2031
-
2032
- /***/ }),
2033
-
2034
- /***/ 3539:
2035
- /***/ ((module) => {
2036
-
2037
- "use strict";
2038
- module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
2039
-
2040
- /***/ }),
2041
-
2042
- /***/ 34014:
2043
- /***/ ((module) => {
2044
-
2045
- "use strict";
2046
- module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
2047
-
2048
- /***/ }),
2049
-
2050
- /***/ 64486:
2051
- /***/ ((module) => {
2052
-
2053
- "use strict";
2054
- module.exports = require("next/dist/shared/lib/image-blur-svg.js");
2055
-
2056
- /***/ }),
2057
-
2058
- /***/ 50744:
2059
- /***/ ((module) => {
2060
-
2061
- "use strict";
2062
- module.exports = require("next/dist/shared/lib/image-config-context.js");
2063
-
2064
- /***/ }),
2065
-
2066
- /***/ 35843:
2067
- /***/ ((module) => {
2068
-
2069
- "use strict";
2070
- module.exports = require("next/dist/shared/lib/image-config.js");
2071
-
2072
- /***/ }),
2073
-
2074
- /***/ 78524:
2075
- /***/ ((module) => {
2076
-
2077
- "use strict";
2078
- module.exports = require("next/dist/shared/lib/is-plain-object.js");
2079
-
2080
- /***/ }),
2081
-
2082
- /***/ 78020:
2083
- /***/ ((module) => {
2084
-
2085
- "use strict";
2086
- module.exports = require("next/dist/shared/lib/mitt.js");
2087
-
2088
- /***/ }),
2089
-
2090
- /***/ 64406:
2091
- /***/ ((module) => {
2092
-
2093
- "use strict";
2094
- module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
2095
-
2096
- /***/ }),
2097
-
2098
- /***/ 24964:
2099
- /***/ ((module) => {
2100
-
2101
- "use strict";
2102
- module.exports = require("next/dist/shared/lib/router-context.js");
2103
-
2104
- /***/ }),
2105
-
2106
- /***/ 93431:
2107
- /***/ ((module) => {
2108
-
2109
- "use strict";
2110
- module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
2111
-
2112
- /***/ }),
2113
-
2114
- /***/ 11751:
2115
- /***/ ((module) => {
2116
-
2117
- "use strict";
2118
- module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
2119
-
2120
- /***/ }),
2121
-
2122
- /***/ 46220:
2123
- /***/ ((module) => {
2124
-
2125
- "use strict";
2126
- module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
2127
-
2128
- /***/ }),
2129
-
2130
- /***/ 10299:
2131
- /***/ ((module) => {
2132
-
2133
- "use strict";
2134
- module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
2135
-
2136
- /***/ }),
2137
-
2138
- /***/ 23938:
2139
- /***/ ((module) => {
2140
-
2141
- "use strict";
2142
- module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
2143
-
2144
- /***/ }),
2145
-
2146
- /***/ 29565:
2147
- /***/ ((module) => {
2148
-
2149
- "use strict";
2150
- module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
2151
-
2152
- /***/ }),
2153
-
2154
- /***/ 35789:
2155
- /***/ ((module) => {
2156
-
2157
- "use strict";
2158
- module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
2159
-
2160
- /***/ }),
2161
-
2162
- /***/ 1897:
2163
- /***/ ((module) => {
2164
-
2165
- "use strict";
2166
- module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
2167
-
2168
- /***/ }),
2169
-
2170
- /***/ 1428:
2171
- /***/ ((module) => {
2172
-
2173
- "use strict";
2174
- module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
2175
-
2176
- /***/ }),
2177
-
2178
- /***/ 28854:
2179
- /***/ ((module) => {
2180
-
2181
- "use strict";
2182
- module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
2183
-
2184
- /***/ }),
2185
-
2186
- /***/ 91292:
2187
- /***/ ((module) => {
2188
-
2189
- "use strict";
2190
- module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
2191
-
2192
- /***/ }),
2193
-
2194
- /***/ 34567:
2195
- /***/ ((module) => {
2196
-
2197
- "use strict";
2198
- module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
2199
-
2200
- /***/ }),
2201
-
2202
- /***/ 80979:
2203
- /***/ ((module) => {
2204
-
2205
- "use strict";
2206
- module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
2207
-
2208
- /***/ }),
2209
-
2210
- /***/ 93297:
2211
- /***/ ((module) => {
2212
-
2213
- "use strict";
2214
- module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
2215
-
2216
- /***/ }),
2217
-
2218
- /***/ 36052:
2219
- /***/ ((module) => {
2220
-
2221
- "use strict";
2222
- module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
2223
-
2224
- /***/ }),
2225
-
2226
- /***/ 84226:
2227
- /***/ ((module) => {
2228
-
2229
- "use strict";
2230
- module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
2231
-
2232
- /***/ }),
2233
-
2234
- /***/ 95052:
2235
- /***/ ((module) => {
2236
-
2237
- "use strict";
2238
- module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
2239
-
2240
- /***/ }),
2241
-
2242
- /***/ 59232:
2243
- /***/ ((module) => {
2244
-
2245
- "use strict";
2246
- module.exports = require("next/dist/shared/lib/utils.js");
2247
-
2248
- /***/ }),
2249
-
2250
- /***/ 71853:
2251
- /***/ ((module) => {
2252
-
2253
- "use strict";
2254
- module.exports = require("next/router");
2255
-
2256
- /***/ }),
2257
-
2258
- /***/ 75471:
2259
- /***/ ((module) => {
2260
-
2261
- "use strict";
2262
- module.exports = require("p-limit");
2263
-
2264
- /***/ }),
2265
-
2266
- /***/ 16689:
2267
- /***/ ((module) => {
2268
-
2269
- "use strict";
2270
- module.exports = require("react");
2271
-
2272
- /***/ }),
2273
-
2274
- /***/ 66405:
2275
- /***/ ((module) => {
2276
-
2277
- "use strict";
2278
- module.exports = require("react-dom");
2279
-
2280
- /***/ }),
2281
-
2282
- /***/ 19785:
2283
- /***/ ((module) => {
2284
-
2285
- "use strict";
2286
- module.exports = require("react-intersection-observer");
2287
-
2288
- /***/ }),
2289
-
2290
- /***/ 3789:
2291
- /***/ ((module) => {
2292
-
2293
- "use strict";
2294
- module.exports = require("react-swipeable");
2295
-
2296
- /***/ }),
2297
-
2298
- /***/ 20997:
2299
- /***/ ((module) => {
2300
-
2301
- "use strict";
2302
- module.exports = require("react/jsx-runtime");
2303
-
2304
- /***/ }),
2305
-
2306
- /***/ 73823:
2307
- /***/ ((module) => {
2308
-
2309
- "use strict";
2310
- module.exports = require("tabbable");
2311
-
2312
- /***/ }),
2313
-
2314
- /***/ 40752:
2315
- /***/ ((module) => {
2316
-
2317
- "use strict";
2318
- module.exports = require("tslib");
2319
-
2320
- /***/ }),
2321
-
2322
- /***/ 99664:
2323
- /***/ ((module) => {
2324
-
2325
- "use strict";
2326
- module.exports = import("@envelop/core");;
2327
-
2328
- /***/ }),
2329
-
2330
- /***/ 37886:
2331
- /***/ ((module) => {
2332
-
2333
- "use strict";
2334
- module.exports = import("@envelop/graphql-jit");;
2335
-
2336
- /***/ }),
2337
-
2338
- /***/ 84656:
2339
- /***/ ((module) => {
2340
-
2341
- "use strict";
2342
- module.exports = import("@envelop/parser-cache");;
2343
-
2344
- /***/ }),
2345
-
2346
- /***/ 36093:
2347
- /***/ ((module) => {
2348
-
2349
- "use strict";
2350
- module.exports = import("@envelop/validation-cache");;
2351
-
2352
- /***/ }),
2353
-
2354
- /***/ 97564:
2355
- /***/ ((module) => {
2356
-
2357
- "use strict";
2358
- module.exports = import("chalk");;
2359
-
2360
- /***/ }),
2361
-
2362
- /***/ 15941:
2363
- /***/ ((module) => {
2364
-
2365
- "use strict";
2366
- module.exports = import("swr");;
2367
-
2368
- /***/ }),
2369
-
2370
- /***/ 6113:
2371
- /***/ ((module) => {
2372
-
2373
- "use strict";
2374
- module.exports = require("crypto");
2375
-
2376
- /***/ })
2377
-
2378
- };
2379
- ;
2380
-
2381
- // load runtime
2382
- var __webpack_require__ = require("../../webpack-runtime.js");
2383
- __webpack_require__.C(exports);
2384
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
2385
- var __webpack_exports__ = __webpack_require__.X(0, [676,825,487,183,886,74,247,287,854,269,184,205,253,350,90,123], () => (__webpack_exec__(75779)));
2386
- module.exports = __webpack_exports__;
2387
-
2388
- })();