@faststore/core 2.1.36 → 2.1.39

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