@faststore/core 2.1.77 → 2.1.78

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