@faststore/core 2.1.106 → 2.1.109

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