@faststore/core 2.1.26 → 2.1.27

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