@faststore/core 2.0.117-alpha.0 → 2.0.120-alpha.0

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 (160) hide show
  1. package/.turbo/turbo-build.log +38 -26
  2. package/CHANGELOG.md +10 -0
  3. package/cms/faststore/content-types.json +6 -0
  4. package/cms/faststore/sections.json +8 -0
  5. package/package.json +3 -3
  6. package/src/Layout.tsx +2 -24
  7. package/src/components/cms/GlobalSections.tsx +81 -0
  8. package/src/components/cms/RenderSections.tsx +39 -0
  9. package/src/components/common/Alert/Alert.tsx +7 -5
  10. package/src/components/common/Alert/index.ts +1 -0
  11. package/src/components/sections/Alert/Alert.tsx +28 -0
  12. package/src/pages/404.tsx +25 -3
  13. package/src/pages/500.tsx +25 -3
  14. package/src/pages/[...slug].tsx +85 -66
  15. package/src/pages/[slug]/p.tsx +16 -6
  16. package/src/pages/account.tsx +25 -3
  17. package/src/pages/checkout.tsx +25 -3
  18. package/src/pages/index.tsx +20 -10
  19. package/src/pages/login.tsx +25 -3
  20. package/src/pages/s.tsx +63 -39
  21. package/.next/BUILD_ID +0 -1
  22. package/.next/build-manifest.json +0 -99
  23. package/.next/cache/.tsbuildinfo +0 -1
  24. package/.next/cache/config.json +0 -7
  25. package/.next/cache/eslint/.cache_1gneedd +0 -1
  26. package/.next/cache/next-server.js.nft.json +0 -1
  27. package/.next/cache/webpack/client-production/0.pack +0 -0
  28. package/.next/cache/webpack/client-production/index.pack +0 -0
  29. package/.next/cache/webpack/server-production/0.pack +0 -0
  30. package/.next/cache/webpack/server-production/index.pack +0 -0
  31. package/.next/export-marker.json +0 -1
  32. package/.next/images-manifest.json +0 -1
  33. package/.next/next-server.js.nft.json +0 -1
  34. package/.next/package.json +0 -1
  35. package/.next/prerender-manifest.json +0 -1
  36. package/.next/react-loadable-manifest.json +0 -42
  37. package/.next/required-server-files.json +0 -1
  38. package/.next/routes-manifest.json +0 -1
  39. package/.next/server/chunks/120.js +0 -435
  40. package/.next/server/chunks/123.js +0 -58
  41. package/.next/server/chunks/1394.js +0 -3801
  42. package/.next/server/chunks/1597.js +0 -151
  43. package/.next/server/chunks/1608.js +0 -515
  44. package/.next/server/chunks/2154.js +0 -206
  45. package/.next/server/chunks/247.js +0 -61
  46. package/.next/server/chunks/2502.js +0 -584
  47. package/.next/server/chunks/2914.js +0 -95
  48. package/.next/server/chunks/2922.js +0 -7293
  49. package/.next/server/chunks/3264.js +0 -67
  50. package/.next/server/chunks/3431.js +0 -7241
  51. package/.next/server/chunks/350.js +0 -142
  52. package/.next/server/chunks/3746.js +0 -250
  53. package/.next/server/chunks/3898.js +0 -240
  54. package/.next/server/chunks/4312.js +0 -674
  55. package/.next/server/chunks/4371.js +0 -1424
  56. package/.next/server/chunks/5098.js +0 -124
  57. package/.next/server/chunks/5335.js +0 -544
  58. package/.next/server/chunks/5576.js +0 -79
  59. package/.next/server/chunks/6280.js +0 -322
  60. package/.next/server/chunks/6465.js +0 -91
  61. package/.next/server/chunks/676.js +0 -32
  62. package/.next/server/chunks/6859.js +0 -959
  63. package/.next/server/chunks/6881.js +0 -320
  64. package/.next/server/chunks/6898.js +0 -149
  65. package/.next/server/chunks/7104.js +0 -235
  66. package/.next/server/chunks/7181.js +0 -664
  67. package/.next/server/chunks/7183.js +0 -79
  68. package/.next/server/chunks/8098.js +0 -246
  69. package/.next/server/chunks/810.js +0 -432
  70. package/.next/server/chunks/8287.js +0 -58
  71. package/.next/server/chunks/9143.js +0 -106
  72. package/.next/server/chunks/9557.js +0 -119
  73. package/.next/server/chunks/9854.js +0 -72
  74. package/.next/server/chunks/font-manifest.json +0 -1
  75. package/.next/server/font-manifest.json +0 -1
  76. package/.next/server/middleware-build-manifest.js +0 -1
  77. package/.next/server/middleware-manifest.json +0 -6
  78. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  79. package/.next/server/pages/404.js.nft.json +0 -1
  80. package/.next/server/pages/500.js.nft.json +0 -1
  81. package/.next/server/pages/[...slug].js +0 -666
  82. package/.next/server/pages/[...slug].js.nft.json +0 -1
  83. package/.next/server/pages/[slug]/p.js +0 -2327
  84. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  85. package/.next/server/pages/_app.js +0 -2454
  86. package/.next/server/pages/_app.js.nft.json +0 -1
  87. package/.next/server/pages/_document.js +0 -304
  88. package/.next/server/pages/_document.js.nft.json +0 -1
  89. package/.next/server/pages/_error.js +0 -164
  90. package/.next/server/pages/_error.js.nft.json +0 -1
  91. package/.next/server/pages/account.js.nft.json +0 -1
  92. package/.next/server/pages/api/graphql.js +0 -315
  93. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  94. package/.next/server/pages/api/preview.js +0 -118
  95. package/.next/server/pages/api/preview.js.nft.json +0 -1
  96. package/.next/server/pages/checkout.js.nft.json +0 -1
  97. package/.next/server/pages/en-US/404.html +0 -81
  98. package/.next/server/pages/en-US/500.html +0 -81
  99. package/.next/server/pages/en-US/account.html +0 -81
  100. package/.next/server/pages/en-US/checkout.html +0 -81
  101. package/.next/server/pages/en-US/login.html +0 -81
  102. package/.next/server/pages/en-US/s.html +0 -81
  103. package/.next/server/pages/en-US.html +0 -81
  104. package/.next/server/pages/en-US.json +0 -1
  105. package/.next/server/pages/index.js +0 -475
  106. package/.next/server/pages/index.js.nft.json +0 -1
  107. package/.next/server/pages/login.js.nft.json +0 -1
  108. package/.next/server/pages/s.js.nft.json +0 -1
  109. package/.next/server/pages-manifest.json +0 -16
  110. package/.next/server/webpack-api-runtime.js +0 -229
  111. package/.next/server/webpack-runtime.js +0 -229
  112. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  113. package/.next/static/chunks/170.79b2f8527e327bca.js +0 -1
  114. package/.next/static/chunks/264-5b07911df63b8601.js +0 -1
  115. package/.next/static/chunks/351-a4e28d64f48c5269.js +0 -1
  116. package/.next/static/chunks/54.e6562383f8a1dfe7.js +0 -1
  117. package/.next/static/chunks/597.fc79494903e8bb84.js +0 -1
  118. package/.next/static/chunks/608.59e69b83f35d9c44.js +0 -1
  119. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  120. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  121. package/.next/static/chunks/781-e1b538e051ff4c3e.js +0 -1
  122. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  123. package/.next/static/chunks/996.98e590872c51f815.js +0 -1
  124. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  125. package/.next/static/chunks/main-9746772201fe3ac1.js +0 -1
  126. package/.next/static/chunks/pages/404-3637ef83b3359df7.js +0 -1
  127. package/.next/static/chunks/pages/500-910883c20541d9ce.js +0 -1
  128. package/.next/static/chunks/pages/[...slug]-29d3b81ee0953846.js +0 -1
  129. package/.next/static/chunks/pages/[slug]/p-9b24055cb30ee7a8.js +0 -1
  130. package/.next/static/chunks/pages/_app-4aeb21d72aeea9b7.js +0 -1
  131. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  132. package/.next/static/chunks/pages/account-b8fc5222ffe89b60.js +0 -1
  133. package/.next/static/chunks/pages/checkout-f8cb7cb22225ef9d.js +0 -1
  134. package/.next/static/chunks/pages/index-d48285f48d2a66ea.js +0 -1
  135. package/.next/static/chunks/pages/login-45cc84352bac2408.js +0 -1
  136. package/.next/static/chunks/pages/s-ba2868e14fedb65b.js +0 -1
  137. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  138. package/.next/static/chunks/webpack-f725b61675603493.js +0 -1
  139. package/.next/static/css/1f987650dd4e39d0.css +0 -1
  140. package/.next/static/css/3a57acf6e411f24d.css +0 -1
  141. package/.next/static/css/4abccf9803c3c356.css +0 -1
  142. package/.next/static/css/502746c995f64cce.css +0 -1
  143. package/.next/static/css/6507cb48401e73a4.css +0 -1
  144. package/.next/static/css/6f4d3e91f1d161a8.css +0 -1
  145. package/.next/static/kFT8gMGQbscGgKaZLxG_K/_buildManifest.js +0 -1
  146. package/.next/static/kFT8gMGQbscGgKaZLxG_K/_ssgManifest.js +0 -1
  147. package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
  148. package/.next/trace +0 -64
  149. package/public/~partytown/debug/partytown-atomics.js +0 -556
  150. package/public/~partytown/debug/partytown-media.js +0 -374
  151. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  152. package/public/~partytown/debug/partytown-sw.js +0 -59
  153. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  154. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  155. package/public/~partytown/debug/partytown.js +0 -72
  156. package/public/~partytown/partytown-atomics.js +0 -2
  157. package/public/~partytown/partytown-media.js +0 -2
  158. package/public/~partytown/partytown-sw.js +0 -2
  159. package/public/~partytown/partytown.js +0 -2
  160. package/src/components/cms/RenderPageSections.tsx +0 -37
@@ -1,2327 +0,0 @@
1
- (() => {
2
- var exports = {};
3
- exports.id = 2103;
4
- exports.ids = [2103];
5
- exports.modules = {
6
-
7
- /***/ 7738:
8
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
-
10
- "use strict";
11
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
13
- /* harmony export */ });
14
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
15
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
16
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7578);
17
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5045);
18
-
19
-
20
- function BuyButton({ testId = 'fs-buy-button', icon, children, ...otherProps }) {
21
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { "data-fs-buy-button": true, icon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { name: "ShoppingCart" }), iconPosition: "left", "data-testid": testId, ...otherProps }, children));
22
- }
23
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BuyButton);
24
- //# sourceMappingURL=BuyButton.js.map
25
-
26
- /***/ }),
27
-
28
- /***/ 1672:
29
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
30
-
31
- "use strict";
32
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
33
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
34
- /* harmony export */ });
35
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
36
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
37
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(783);
38
-
39
-
40
- const ProductTitle = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProductTitle({ title, label, refTag = 'Ref.: ', refNumber, testId = 'fs-product-title', ratingValue, ...otherProps }, ref) {
41
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("header", { ref: ref, "data-fs-product-title": true, "data-testid": testId, ...otherProps },
42
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-product-title-header": true },
43
- title,
44
- !!label && label),
45
- (refNumber || ratingValue) && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { "data-fs-product-title-addendum": true },
46
- ratingValue && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { value: ratingValue }),
47
- refNumber && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null,
48
- refTag,
49
- " ",
50
- refNumber))))));
51
- });
52
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductTitle);
53
- //# sourceMappingURL=ProductTitle.js.map
54
-
55
- /***/ }),
56
-
57
- /***/ 4707:
58
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
59
-
60
- "use strict";
61
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
62
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
63
- /* harmony export */ });
64
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
65
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
66
-
67
- const Table = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Table({ children, variant = 'colored', testId = 'fs-table', ...otherProps }, ref) {
68
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-table": true },
69
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement("table", { ref: ref, "data-fs-table-content": true, "data-fs-table-variant": variant, "data-testid": testId, ...otherProps }, children)));
70
- });
71
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Table);
72
- //# sourceMappingURL=Table.js.map
73
-
74
- /***/ }),
75
-
76
- /***/ 1566:
77
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
78
-
79
- "use strict";
80
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
81
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
82
- /* harmony export */ });
83
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
84
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
85
-
86
- const TableBody = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function TableBody({ children, testId = 'fs-table-body', ...otherProps }, ref) {
87
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tbody", { ref: ref, "data-testid": testId, "data-fs-table-body": true, ...otherProps }, children));
88
- });
89
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableBody);
90
- //# sourceMappingURL=TableBody.js.map
91
-
92
- /***/ }),
93
-
94
- /***/ 3111:
95
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
96
-
97
- "use strict";
98
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
99
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
100
- /* harmony export */ });
101
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
102
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
103
-
104
- const TableCell = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function TableCell({ scope, align, children, variant = 'data', testId = 'fs-table-cell', ...otherProps }, ref) {
105
- const Cell = variant === 'header' ? 'th' : 'td';
106
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Cell, { ref: ref, "data-fs-table-cell": variant, "data-fs-table-cell-align": align, "data-testid": testId, scope: scope, ...otherProps }, children));
107
- });
108
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableCell);
109
- //# sourceMappingURL=TableCell.js.map
110
-
111
- /***/ }),
112
-
113
- /***/ 6037:
114
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
115
-
116
- "use strict";
117
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
118
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
119
- /* harmony export */ });
120
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
121
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
122
-
123
- const TableRow = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function TableRow({ children, testId = 'fs-table-row', ...otherProps }, ref) {
124
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", { ref: ref, "data-fs-table-row": true, "data-testid": testId, ...otherProps }, children));
125
- });
126
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableRow);
127
- //# sourceMappingURL=TableRow.js.map
128
-
129
- /***/ }),
130
-
131
- /***/ 492:
132
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
133
-
134
- "use strict";
135
-
136
- // EXPORTS
137
- __webpack_require__.d(__webpack_exports__, {
138
- "Z": () => (/* reexport */ product_OutOfStock_OutOfStock)
139
- });
140
-
141
- // EXTERNAL MODULE: ../components/dist/hooks/UIProvider.js
142
- var UIProvider = __webpack_require__(395);
143
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
144
- var Icon = __webpack_require__(5045);
145
- // EXTERNAL MODULE: external "react"
146
- var external_react_ = __webpack_require__(6689);
147
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
148
- // EXTERNAL MODULE: ../components/dist/molecules/InputField/InputField.js
149
- var InputField = __webpack_require__(8287);
150
- // EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
151
- var Button = __webpack_require__(7578);
152
- ;// CONCATENATED MODULE: ../components/dist/organisms/OutOfStock/OutOfStock.js
153
-
154
-
155
- const OutOfStock = (0,external_react_.forwardRef)(function OutOfStock({ testId = 'fs-out-of-stock', title, buttonLabel = 'Notify Me', loadingLabel = 'Loading', inputLabel, subtitle, disabled, errorMessage, onSubmit, ...otherProps }, ref) {
156
- return (external_react_default().createElement("form", { "data-fs-out-of-stock": true, ref: ref, "data-testid": testId, onSubmit: onSubmit, ...otherProps },
157
- external_react_default().createElement("h2", { "data-fs-out-of-stock-title": true }, title),
158
- subtitle && (external_react_default().createElement("p", { "data-fs-out-of-stock-message": true },
159
- external_react_default().createElement(Icon/* default */.Z, { name: "BellRinging", width: 16, height: 16 }),
160
- subtitle)),
161
- external_react_default().createElement(InputField/* default */.Z, { id: "out-of-stock-email", name: "out-of-stock-email", label: inputLabel, "aria-label": inputLabel, error: errorMessage, required: true }),
162
- external_react_default().createElement(Button/* default */.Z, { "data-fs-out-of-stock-button": true, type: "submit", loading: disabled, loadingLabel: loadingLabel, disabled: disabled, variant: "primary", icon: external_react_default().createElement(Icon/* default */.Z, { name: "BellRinging" }), iconPosition: "left" }, buttonLabel)));
163
- });
164
- /* harmony default export */ const OutOfStock_OutOfStock = (OutOfStock);
165
- //# sourceMappingURL=OutOfStock.js.map
166
- // EXTERNAL MODULE: ./src/sdk/session/index.ts
167
- var session = __webpack_require__(5971);
168
- // EXTERNAL MODULE: external "react/jsx-runtime"
169
- var jsx_runtime_ = __webpack_require__(997);
170
- ;// CONCATENATED MODULE: ./src/components/product/OutOfStock/OutOfStock.tsx
171
-
172
-
173
-
174
-
175
-
176
- function OutOfStock_OutOfStock_OutOfStock() {
177
- const {
178
- postalCode
179
- } = (0,session/* useSession */.kP)();
180
- const {
181
- 0: isLoading,
182
- 1: setIsLoading
183
- } = (0,external_react_.useState)(false);
184
- const {
185
- 0: error,
186
- 1: setError
187
- } = (0,external_react_.useState)('');
188
- const {
189
- pushToast
190
- } = (0,UIProvider/* useUI */.l)();
191
-
192
- const handleSubmit = event => {
193
- event.preventDefault();
194
- setIsLoading(true); // TODO: Missing integration
195
-
196
- try {
197
- // Return to original state after 2s mockup
198
- setTimeout(() => setIsLoading(false), 2000);
199
- const formElement = event.currentTarget;
200
- formElement.reset();
201
- pushToast({
202
- title: 'Subscribed successfully!',
203
- message: "You'll be notified when this product is back to stock.",
204
- status: 'INFO',
205
- icon: /*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
206
- name: "CircleWavyCheck",
207
- width: 30,
208
- height: 30
209
- })
210
- });
211
- } catch (err) {
212
- setError(err.message);
213
- } finally {}
214
- };
215
-
216
- return /*#__PURE__*/jsx_runtime_.jsx(OutOfStock_OutOfStock, {
217
- title: postalCode ? 'Unavailable in Your Location' : 'Out of Stock',
218
- inputLabel: "Email",
219
- subtitle: "Notify me when available",
220
- onSubmit: handleSubmit,
221
- disabled: isLoading,
222
- errorMessage: error
223
- });
224
- }
225
-
226
- /* harmony default export */ const product_OutOfStock_OutOfStock = (OutOfStock_OutOfStock_OutOfStock);
227
- ;// CONCATENATED MODULE: ./src/components/product/OutOfStock/index.ts
228
-
229
-
230
- /***/ }),
231
-
232
- /***/ 2951:
233
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
234
-
235
- "use strict";
236
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
237
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
238
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
239
- /* harmony export */ });
240
- /* harmony import */ var src_components_ui_BannerText__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6166);
241
- /* harmony import */ var _Newsletter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7191);
242
- /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8879);
243
- /* harmony import */ var _banner_newsletter_module_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6308);
244
- /* harmony import */ var _banner_newsletter_module_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_banner_newsletter_module_scss__WEBPACK_IMPORTED_MODULE_4__);
245
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(997);
246
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
247
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_Newsletter__WEBPACK_IMPORTED_MODULE_1__]);
248
- _Newsletter__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- function BannerNewsletter() {
257
- return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_Section__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
258
- className: "layout__content",
259
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
260
- className: (_banner_newsletter_module_scss__WEBPACK_IMPORTED_MODULE_4___default().fsBannerNewsletter),
261
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_components_ui_BannerText__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z, {
262
- title: "Get to Know Our Next Release",
263
- caption: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam elit nisi, vehicula in turpis sit amet, posuere aliquam nisl. ",
264
- actionLabel: "Shop Now",
265
- actionPath: "/",
266
- variant: "secondary",
267
- colorVariant: "light"
268
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(_Newsletter__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
269
- title: "Get News and Special Offers!",
270
- description: "Receive our news and promotions in advance. Enjoy and get 10% off your first purchase. For more information click here.",
271
- card: true
272
- })]
273
- })
274
- });
275
- }
276
-
277
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BannerNewsletter);
278
- __webpack_async_result__();
279
- } catch(e) { __webpack_async_result__(e); } });
280
-
281
- /***/ }),
282
-
283
- /***/ 994:
284
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
285
-
286
- "use strict";
287
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
288
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
289
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
290
- /* harmony export */ });
291
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
292
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
293
- /* harmony import */ var _ProductShelf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7104);
294
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(997);
295
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
296
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductShelf__WEBPACK_IMPORTED_MODULE_1__]);
297
- _ProductShelf__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
298
-
299
-
300
-
301
-
302
- const CrossSellingShelf = ({
303
- items,
304
- title,
305
- context,
306
- kind
307
- }) => {
308
- const selectedFacets = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => [{
309
- key: kind,
310
- value: context.isVariantOf.productGroupID
311
- }], [kind, context.isVariantOf.productGroupID]);
312
- return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx(_ProductShelf__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {
313
- first: items,
314
- title: title,
315
- selectedFacets: selectedFacets
316
- });
317
- };
318
-
319
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CrossSellingShelf);
320
- __webpack_async_result__();
321
- } catch(e) { __webpack_async_result__(e); } });
322
-
323
- /***/ }),
324
-
325
- /***/ 7990:
326
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
327
-
328
- "use strict";
329
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
330
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
331
- /* harmony export */ "Z": () => (/* reexport safe */ _CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__.Z)
332
- /* harmony export */ });
333
- /* harmony import */ var _CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(994);
334
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__]);
335
- _CrossSellingShelf__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
336
-
337
- __webpack_async_result__();
338
- } catch(e) { __webpack_async_result__(e); } });
339
-
340
- /***/ }),
341
-
342
- /***/ 4870:
343
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
344
-
345
- "use strict";
346
-
347
- // EXPORTS
348
- __webpack_require__.d(__webpack_exports__, {
349
- "Z": () => (/* reexport */ ProducDetailsContent_ProductDetailsContent)
350
- });
351
-
352
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/Accordion.js
353
- var Accordion = __webpack_require__(9739);
354
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/AccordionItem.js
355
- var AccordionItem = __webpack_require__(5705);
356
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/AccordionButton.js
357
- var AccordionButton = __webpack_require__(7743);
358
- // EXTERNAL MODULE: ../components/dist/molecules/Accordion/AccordionPanel.js
359
- var AccordionPanel = __webpack_require__(331);
360
- // EXTERNAL MODULE: ../components/dist/molecules/Table/Table.js
361
- var Table = __webpack_require__(4707);
362
- // EXTERNAL MODULE: ../components/dist/molecules/Table/TableBody.js
363
- var TableBody = __webpack_require__(1566);
364
- // EXTERNAL MODULE: ../components/dist/molecules/Table/TableRow.js
365
- var TableRow = __webpack_require__(6037);
366
- // EXTERNAL MODULE: ../components/dist/molecules/Table/TableCell.js
367
- var TableCell = __webpack_require__(3111);
368
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
369
- var Icon = __webpack_require__(5045);
370
- // EXTERNAL MODULE: ../components/dist/atoms/List/List.js
371
- var List = __webpack_require__(1329);
372
- // EXTERNAL MODULE: external "react"
373
- var external_react_ = __webpack_require__(6689);
374
- // EXTERNAL MODULE: ./src/components/sections/Section/index.ts + 1 modules
375
- var Section = __webpack_require__(8879);
376
- // EXTERNAL MODULE: external "react/jsx-runtime"
377
- var jsx_runtime_ = __webpack_require__(997);
378
- ;// CONCATENATED MODULE: ./src/components/sections/ProducDetailsContent/ProductDetailsContent.tsx
379
- 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; }
380
-
381
- 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; }
382
-
383
- 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; }
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
- /**
392
- * Maps 'initiallyExpanded' prop values to indices
393
- */
394
- const INITIALLY_EXPANDED_MAP = {
395
- first: [0],
396
- all: [0, 1, 2, 3],
397
- none: []
398
- };
399
- /**
400
- * Default article labels
401
- */
402
-
403
- const DEFAULT_LABELS = {
404
- description: 'Description',
405
- about: 'About this product',
406
- highlights: 'Product highlights',
407
- learnMore: 'Learn More'
408
- };
409
-
410
- function ProductDetailsContent({
411
- initiallyExpanded = 'first',
412
- labels: propLabels = {}
413
- }) {
414
- const {
415
- 0: indices,
416
- 1: setIndices
417
- } = (0,external_react_.useState)(new Set(INITIALLY_EXPANDED_MAP[initiallyExpanded]));
418
-
419
- const onChange = index => {
420
- setIndices(currentIndices => {
421
- const newIndices = new Set(currentIndices);
422
-
423
- if (currentIndices.has(index)) {
424
- newIndices.delete(index);
425
- } else {
426
- newIndices.add(index);
427
- }
428
-
429
- return newIndices;
430
- });
431
- };
432
-
433
- const labels = _objectSpread(_objectSpread({}, DEFAULT_LABELS), propLabels);
434
-
435
- return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
436
- "data-fs-product-details-content": true,
437
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(Accordion/* default */.Z, {
438
- indices: indices,
439
- onChange: onChange,
440
- "aria-label": "Product Details Content",
441
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(AccordionItem/* default */.Z, {
442
- as: "article",
443
- index: 0,
444
- "data-fs-product-details-description": true,
445
- prefixId: "product-details-content",
446
- children: [/*#__PURE__*/jsx_runtime_.jsx(AccordionButton/* default */.Z, {
447
- children: labels.description
448
- }), /*#__PURE__*/jsx_runtime_.jsx(AccordionPanel/* default */.Z, {
449
- children: /*#__PURE__*/jsx_runtime_.jsx("p", {
450
- className: "text__body",
451
- children: "Sony WH-1000XM4 Wireless Industry Leading Noise Canceling Overhead Headphones with Mic for Phone-Call and Alexa Voice Control, Black."
452
- })
453
- })]
454
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(AccordionItem/* default */.Z, {
455
- as: "article",
456
- index: 1,
457
- "data-fs-product-details-about": true,
458
- prefixId: "product-details-content",
459
- children: [/*#__PURE__*/jsx_runtime_.jsx(AccordionButton/* default */.Z, {
460
- children: labels.about
461
- }), /*#__PURE__*/jsx_runtime_.jsx(AccordionPanel/* default */.Z, {
462
- children: /*#__PURE__*/jsx_runtime_.jsx(Table/* default */.Z, {
463
- cellPadding: 0,
464
- cellSpacing: 0,
465
- className: "text__title-mini-alt",
466
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(TableBody/* default */.Z, {
467
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableRow/* default */.Z, {
468
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableCell/* default */.Z, {
469
- variant: "header",
470
- align: "left",
471
- children: [/*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
472
- "data-fs-accordion-item-button-icon": true,
473
- name: "Ruler",
474
- width: 18,
475
- height: 18
476
- }), /*#__PURE__*/jsx_runtime_.jsx("span", {
477
- children: "Width"
478
- })]
479
- }), /*#__PURE__*/jsx_runtime_.jsx(TableCell/* default */.Z, {
480
- align: "right",
481
- children: "1.50m"
482
- })]
483
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(TableRow/* default */.Z, {
484
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableCell/* default */.Z, {
485
- variant: "header",
486
- align: "left",
487
- children: [/*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
488
- "data-fs-accordion-item-button-icon": true,
489
- name: "Ruler",
490
- width: 18,
491
- height: 18
492
- }), "Height"]
493
- }), /*#__PURE__*/jsx_runtime_.jsx(TableCell/* default */.Z, {
494
- align: "right",
495
- children: "1.50m"
496
- })]
497
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(TableRow/* default */.Z, {
498
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableCell/* default */.Z, {
499
- variant: "header",
500
- align: "left",
501
- children: [/*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
502
- "data-fs-accordion-item-button-icon": true,
503
- name: "Ruler",
504
- width: 18,
505
- height: 18
506
- }), "Dimensions"]
507
- }), /*#__PURE__*/jsx_runtime_.jsx(TableCell/* default */.Z, {
508
- align: "right",
509
- children: "7.27 x 3.03 x 9.94 inches"
510
- })]
511
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(TableRow/* default */.Z, {
512
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableCell/* default */.Z, {
513
- variant: "header",
514
- align: "left",
515
- children: [/*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
516
- "data-fs-accordion-item-button-icon": true,
517
- name: "Bag",
518
- width: 18,
519
- height: 18
520
- }), "Weight"]
521
- }), /*#__PURE__*/jsx_runtime_.jsx(TableCell/* default */.Z, {
522
- align: "right",
523
- children: "12oz"
524
- })]
525
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(TableRow/* default */.Z, {
526
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableCell/* default */.Z, {
527
- variant: "header",
528
- align: "left",
529
- children: [/*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
530
- "data-fs-accordion-item-button-icon": true,
531
- name: "RocketLaunch",
532
- width: 18,
533
- height: 18
534
- }), "Days to ship"]
535
- }), /*#__PURE__*/jsx_runtime_.jsx(TableCell/* default */.Z, {
536
- align: "right",
537
- children: "11 Days"
538
- })]
539
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(TableRow/* default */.Z, {
540
- children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(TableCell/* default */.Z, {
541
- variant: "header",
542
- align: "left",
543
- children: [/*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
544
- "data-fs-accordion-item-button-icon": true,
545
- name: "CircleWavyCheck",
546
- width: 18,
547
- height: 18
548
- }), "Estimated"]
549
- }), /*#__PURE__*/jsx_runtime_.jsx(TableCell/* default */.Z, {
550
- align: "right",
551
- children: "Nov 10th"
552
- })]
553
- })]
554
- })
555
- })
556
- })]
557
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(AccordionItem/* default */.Z, {
558
- as: "article",
559
- className: "text__body",
560
- index: 2,
561
- "data-fs-product-details-highlights": true,
562
- prefixId: "product-details-content",
563
- children: [/*#__PURE__*/jsx_runtime_.jsx(AccordionButton/* default */.Z, {
564
- children: labels.highlights
565
- }), /*#__PURE__*/jsx_runtime_.jsx(AccordionPanel/* default */.Z, {
566
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(List/* default */.Z, {
567
- marker: true,
568
- children: [/*#__PURE__*/jsx_runtime_.jsx("li", {
569
- children: "Industry-leading noise canceling with Dual Noise Sensor technology"
570
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
571
- children: "Next-level music with Edge-AI, co-developed with Sony Music Studios Tokyo"
572
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
573
- children: "Up to 30-hour battery life with quick charging (10 min charge for 5 hours of playback)"
574
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
575
- children: "Touch Sensor controls to pause play skip tracks, control volume, activate your voice assistant, and answer phone calls"
576
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
577
- children: "Speak-to-chat technology automatically reduces volume during conversations"
578
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
579
- children: "Superior call quality with precise voice pickup"
580
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
581
- children: "Wearing detection pauses playback when headphones are removed"
582
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
583
- children: "Seamless multiple-device pairing"
584
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
585
- children: "Adaptive Sound Control provides a personalized listening experience"
586
- }), /*#__PURE__*/jsx_runtime_.jsx("li", {
587
- children: "Updated design relieves pressure for long-lasting comfort"
588
- })]
589
- })
590
- })]
591
- }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(AccordionItem/* default */.Z, {
592
- as: "article",
593
- index: 3,
594
- "data-fs-product-details-learn-more": true,
595
- prefixId: "product-details-content",
596
- children: [/*#__PURE__*/jsx_runtime_.jsx(AccordionButton/* default */.Z, {
597
- children: labels.learnMore
598
- }), /*#__PURE__*/jsx_runtime_.jsx(AccordionPanel/* default */.Z, {
599
- children: /*#__PURE__*/jsx_runtime_.jsx("p", {
600
- className: "text__body",
601
- children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laboru."
602
- })
603
- })]
604
- })]
605
- })
606
- });
607
- }
608
-
609
- /* harmony default export */ const ProducDetailsContent_ProductDetailsContent = (ProductDetailsContent);
610
- ;// CONCATENATED MODULE: ./src/components/sections/ProducDetailsContent/index.ts
611
-
612
-
613
- /***/ }),
614
-
615
- /***/ 1644:
616
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
617
-
618
- "use strict";
619
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
620
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
621
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
622
- /* harmony export */ });
623
- /* unused harmony export fragment */
624
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8460);
625
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
626
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
627
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(7549);
628
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(123);
629
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7738);
630
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(1672);
631
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(9875);
632
- /* harmony import */ var src_components_product_OutOfStock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(492);
633
- /* harmony import */ var src_components_ui_Breadcrumb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(120);
634
- /* harmony import */ var src_components_ui_ImageGallery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5693);
635
- /* harmony import */ var src_components_ui_ShippingSimulation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(104);
636
- /* harmony import */ var src_components_ui_SkuSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4475);
637
- /* harmony import */ var src_sdk_cart_useBuyButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8892);
638
- /* harmony import */ var src_sdk_product_useFormattedPrice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5346);
639
- /* harmony import */ var src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3874);
640
- /* harmony import */ var src_sdk_session__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5971);
641
- /* harmony import */ var _ProducDetailsContent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4870);
642
- /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8879);
643
- /* harmony import */ var _product_details_module_scss__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(841);
644
- /* harmony import */ var _product_details_module_scss__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_product_details_module_scss__WEBPACK_IMPORTED_MODULE_17__);
645
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(997);
646
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__);
647
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_8__]);
648
- src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_8__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
649
- 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; }
650
-
651
- 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; }
652
-
653
- 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; }
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
- function ProductDetails({
675
- context: staleProduct
676
- }) {
677
- const {
678
- currency
679
- } = (0,src_sdk_session__WEBPACK_IMPORTED_MODULE_9__/* .useSession */ .kP)();
680
- const {
681
- 0: addQuantity,
682
- 1: setAddQuantity
683
- } = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1); // Stale while revalidate the product for fetching the new price etc
684
-
685
- const {
686
- data,
687
- isValidating
688
- } = (0,src_sdk_product_useProduct__WEBPACK_IMPORTED_MODULE_8__/* .useProduct */ .i)(staleProduct.id, {
689
- product: staleProduct
690
- });
691
-
692
- if (!data) {
693
- throw new Error('NotFound');
694
- }
695
-
696
- const {
697
- product: {
698
- id,
699
- sku,
700
- gtin,
701
- name: variantName,
702
- brand,
703
- isVariantOf,
704
- isVariantOf: {
705
- name,
706
- productGroupID: productId,
707
- skuVariants
708
- },
709
- image: productImages,
710
- offers: {
711
- offers: [{
712
- availability,
713
- price,
714
- listPrice,
715
- seller
716
- }],
717
- lowPrice
718
- },
719
- breadcrumbList: breadcrumbs,
720
- additionalProperty
721
- }
722
- } = data;
723
- const buyDisabled = availability !== 'https://schema.org/InStock';
724
- const buyProps = (0,src_sdk_cart_useBuyButton__WEBPACK_IMPORTED_MODULE_6__/* .useBuyButton */ .Q)({
725
- id,
726
- price,
727
- listPrice,
728
- seller,
729
- quantity: addQuantity,
730
- itemOffered: {
731
- sku,
732
- name: variantName,
733
- gtin,
734
- image: productImages,
735
- brand,
736
- isVariantOf,
737
- additionalProperty
738
- }
739
- });
740
-
741
- const ProductDetailsSection = () => {
742
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.Fragment, {
743
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("section", {
744
- "data-fs-product-details-values": true,
745
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
746
- "data-fs-product-details-prices": true,
747
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
748
- value: listPrice,
749
- formatter: src_sdk_product_useFormattedPrice__WEBPACK_IMPORTED_MODULE_7__/* .useFormattedPrice */ .P,
750
- testId: "list-price",
751
- "data-value": listPrice,
752
- variant: "listing",
753
- SRText: "Original price:"
754
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
755
- value: lowPrice,
756
- formatter: src_sdk_product_useFormattedPrice__WEBPACK_IMPORTED_MODULE_7__/* .useFormattedPrice */ .P,
757
- testId: "price",
758
- "data-value": lowPrice,
759
- variant: "spot",
760
- className: "text__lead",
761
- SRText: "Sale Price:"
762
- })]
763
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
764
- min: 1,
765
- max: 10,
766
- onChange: setAddQuantity
767
- })]
768
- }), skuVariants && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(src_components_ui_SkuSelector__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
769
- slugsMap: skuVariants.slugsMap,
770
- availableVariations: skuVariants.availableVariations,
771
- activeVariations: skuVariants.activeVariations,
772
- "data-fs-product-details-selectors": true
773
- }),
774
- /* NOTE: A loading skeleton had to be used to avoid a Lighthouse's
775
- non-composited animation violation due to the button transitioning its
776
- background color when changing from its initial disabled to active state.
777
- See full explanation on commit https://git.io/JyXV5. */
778
- isValidating ? /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(AddToCartLoadingSkeleton, {}) : /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, _objectSpread(_objectSpread({
779
- disabled: buyDisabled
780
- }, buyProps), {}, {
781
- children: "Add to Cart"
782
- }))]
783
- });
784
- };
785
-
786
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
787
- (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_16__/* .sendAnalyticsEvent */ ._)({
788
- name: 'view_item',
789
- params: {
790
- currency: currency.code,
791
- value: price,
792
- items: [{
793
- item_id: isVariantOf.productGroupID,
794
- item_name: isVariantOf.name,
795
- item_brand: brand.name,
796
- item_variant: sku,
797
- price,
798
- discount: listPrice - price,
799
- currency: currency.code,
800
- item_variant_name: variantName,
801
- product_reference_id: gtin
802
- }]
803
- }
804
- });
805
- }, [isVariantOf.productGroupID, isVariantOf.name, brand.name, sku, price, listPrice, currency.code, variantName, gtin]);
806
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(_Section__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
807
- className: `${(_product_details_module_scss__WEBPACK_IMPORTED_MODULE_17___default().fsProductDetails)} layout__content layout__section`,
808
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(src_components_ui_Breadcrumb__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
809
- breadcrumbList: breadcrumbs.itemListElement
810
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("section", {
811
- "data-fs-product-details-body": true,
812
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("header", {
813
- "data-fs-product-details-title": true,
814
- "data-fs-product-details-section": true,
815
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
816
- title: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("h1", {
817
- children: name
818
- }),
819
- label: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
820
- listPrice: listPrice,
821
- spotPrice: lowPrice,
822
- size: "big"
823
- }),
824
- refNumber: productId
825
- })
826
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(src_components_ui_ImageGallery__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
827
- "data-fs-product-details-gallery": true,
828
- images: productImages
829
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("section", {
830
- "data-fs-product-details-info": true,
831
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("section", {
832
- "data-fs-product-details-settings": true,
833
- "data-fs-product-details-section": true,
834
- children: availability ? /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(ProductDetailsSection, {}) : /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(src_components_product_OutOfStock__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {})
835
- }), availability && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(src_components_ui_ShippingSimulation__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
836
- "data-fs-product-details-section": true,
837
- "data-fs-product-details-shipping": true,
838
- productShippingInfo: {
839
- id,
840
- quantity: addQuantity,
841
- seller: seller.identifier
842
- },
843
- formatter: src_sdk_product_useFormattedPrice__WEBPACK_IMPORTED_MODULE_7__/* .useFormattedPrice */ .P
844
- })]
845
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(_ProducDetailsContent__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {})]
846
- })]
847
- });
848
- }
849
-
850
- function AddToCartLoadingSkeleton() {
851
- // Generated via https://skeletonreact.com/.
852
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("svg", {
853
- role: "img",
854
- width: "100%",
855
- height: "48",
856
- "aria-labelledby": "loading-aria",
857
- viewBox: "0 0 112 48",
858
- preserveAspectRatio: "none",
859
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("title", {
860
- id: "loading-aria",
861
- children: "Loading..."
862
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("rect", {
863
- x: "0",
864
- y: "0",
865
- width: "100%",
866
- height: "100%",
867
- clipPath: "url(#clip-path)",
868
- style: {
869
- fill: 'url("#fill")'
870
- }
871
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("defs", {
872
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("clipPath", {
873
- id: "clip-path",
874
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("rect", {
875
- x: "0",
876
- y: "0",
877
- rx: "2",
878
- ry: "2",
879
- width: "112",
880
- height: "48"
881
- })
882
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("linearGradient", {
883
- id: "fill",
884
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("stop", {
885
- offset: "0.599964",
886
- stopColor: "#f3f3f3",
887
- stopOpacity: "1",
888
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("animate", {
889
- attributeName: "offset",
890
- values: "-2; -2; 1",
891
- keyTimes: "0; 0.25; 1",
892
- dur: "2s",
893
- repeatCount: "indefinite"
894
- })
895
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("stop", {
896
- offset: "1.59996",
897
- stopColor: "#ecebeb",
898
- stopOpacity: "1",
899
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("animate", {
900
- attributeName: "offset",
901
- values: "-1; -1; 2",
902
- keyTimes: "0; 0.25; 1",
903
- dur: "2s",
904
- repeatCount: "indefinite"
905
- })
906
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("stop", {
907
- offset: "2.59996",
908
- stopColor: "#f3f3f3",
909
- stopOpacity: "1",
910
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx("animate", {
911
- attributeName: "offset",
912
- values: "0; 0; 3",
913
- keyTimes: "0; 0.25; 1",
914
- dur: "2s",
915
- repeatCount: "indefinite"
916
- })
917
- })]
918
- })]
919
- })]
920
- });
921
- }
922
-
923
- const fragment = "unknown";
924
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductDetails);
925
- __webpack_async_result__();
926
- } catch(e) { __webpack_async_result__(e); } });
927
-
928
- /***/ }),
929
-
930
- /***/ 3220:
931
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
932
-
933
- "use strict";
934
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
935
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
936
- /* harmony export */ "Z": () => (/* reexport safe */ _ProductDetails__WEBPACK_IMPORTED_MODULE_0__.Z)
937
- /* harmony export */ });
938
- /* harmony import */ var _ProductDetails__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1644);
939
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductDetails__WEBPACK_IMPORTED_MODULE_0__]);
940
- _ProductDetails__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
941
-
942
- __webpack_async_result__();
943
- } catch(e) { __webpack_async_result__(e); } });
944
-
945
- /***/ }),
946
-
947
- /***/ 5693:
948
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
949
-
950
- "use strict";
951
-
952
- // EXPORTS
953
- __webpack_require__.d(__webpack_exports__, {
954
- "Z": () => (/* reexport */ ui_ImageGallery_ImageGallery)
955
- });
956
-
957
- // EXTERNAL MODULE: external "react"
958
- var external_react_ = __webpack_require__(6689);
959
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
960
- // EXTERNAL MODULE: external "react-intersection-observer"
961
- var external_react_intersection_observer_ = __webpack_require__(9785);
962
- // EXTERNAL MODULE: ../components/dist/molecules/IconButton/IconButton.js
963
- var IconButton = __webpack_require__(2765);
964
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
965
- var Icon = __webpack_require__(5045);
966
- // EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
967
- var Button = __webpack_require__(7578);
968
- ;// CONCATENATED MODULE: ../components/dist/organisms/ImageGallery/ImageGallerySelector.js
969
-
970
-
971
-
972
- const SCROLL_MARGIN_VALUE = 400;
973
- const moveScroll = (container, value) => {
974
- if (container) {
975
- if (container.scrollHeight > container.clientHeight) {
976
- // TODO: Temporary workaround for scroll-behavior with scrollTop – Safari 15.4) https://developer.apple.com/forums/thread/703294
977
- container.style.overflow = 'auto';
978
- window.requestAnimationFrame(() => container.scrollTo({ top: value, behavior: 'smooth' }));
979
- setTimeout(() => (container.style.overflow = 'hidden'), 2000);
980
- }
981
- else {
982
- container.scrollLeft += value;
983
- }
984
- }
985
- };
986
- const hasScroll = (container) => {
987
- if (container) {
988
- return (container.scrollHeight > container.clientHeight ||
989
- container.scrollWidth > container.clientWidth);
990
- }
991
- return false;
992
- };
993
- 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', }) {
994
- const elementsRef = (0,external_react_.useRef)(null);
995
- const elementHasScroll = hasScroll(elementsRef.current);
996
- const [firstImageInView, setFirstImageInView] = (0,external_react_.useState)(true);
997
- const [lastImageInView, setLastImageInView] = (0,external_react_.useState)(true);
998
- const inViewChange = (0,external_react_.useCallback)((idx, inView) => {
999
- idx === 0 && setFirstImageInView(inView);
1000
- idx === images.length - 1 && setLastImageInView(inView);
1001
- }, [images.length]);
1002
- return (external_react_default().createElement("section", { "data-fs-image-gallery-selector": true, "data-testid": testId, "aria-label": ariaLabel, "aria-roledescription": "carousel" },
1003
- elementHasScroll && !firstImageInView && (external_react_default().createElement("div", { "data-fs-image-gallery-selector-control": true },
1004
- 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" }), size: "small", onClick: () => moveScroll(elementsRef.current, -SCROLL_MARGIN_VALUE) }))),
1005
- external_react_default().createElement("div", { "data-fs-image-gallery-selector-elements": true, ref: elementsRef }, images.map((image, idx) => {
1006
- return (external_react_default().createElement(external_react_intersection_observer_.InView, { key: idx, onChange: (inView) => inViewChange(idx, inView) },
1007
- 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' },
1008
- external_react_default().createElement(ImageComponent, { url: image.url ?? '', loading: idx === 0 ? 'eager' : 'lazy', alternateName: image.alternateName ?? '' }))));
1009
- })),
1010
- elementHasScroll && !lastImageInView && (external_react_default().createElement("div", { "data-fs-image-gallery-selector-control": true },
1011
- 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" }), size: "small", onClick: () => moveScroll(elementsRef.current, +SCROLL_MARGIN_VALUE) })))));
1012
- }
1013
- /* harmony default export */ const ImageGallery_ImageGallerySelector = (ImageGallerySelector);
1014
- //# sourceMappingURL=ImageGallerySelector.js.map
1015
- ;// CONCATENATED MODULE: ../components/dist/organisms/ImageGallery/ImageGallery.js
1016
-
1017
-
1018
- const ImageGallery = (0,external_react_.forwardRef)(function ImageGallery({ images, children, ImageComponent, selectedImageIdx, setSelectedImageIdx, testId = 'fs-image-gallery', ...otherProps }, ref) {
1019
- const hasSelector = images.length > 1;
1020
- return (external_react_default().createElement("section", { ref: ref, "data-fs-image-gallery": hasSelector ? 'with-selector' : 'without-selector', "data-testid": testId, ...otherProps },
1021
- children,
1022
- hasSelector && (external_react_default().createElement(ImageGallery_ImageGallerySelector, { images: images, onSelect: setSelectedImageIdx, currentImageIdx: selectedImageIdx, ImageComponent: ImageComponent }))));
1023
- });
1024
- /* harmony default export */ const ImageGallery_ImageGallery = (ImageGallery);
1025
- //# sourceMappingURL=ImageGallery.js.map
1026
- ;// CONCATENATED MODULE: ../components/dist/organisms/ImageGallery/ImageZoom.js
1027
-
1028
- const ImageZoom = ({ children }) => {
1029
- return external_react_default().createElement((external_react_default()).Fragment, null, children);
1030
- };
1031
- /* harmony default export */ const ImageGallery_ImageZoom = (ImageZoom);
1032
- //# sourceMappingURL=ImageZoom.js.map
1033
- // EXTERNAL MODULE: ./src/components/ui/Image/index.ts + 3 modules
1034
- var Image = __webpack_require__(2154);
1035
- // EXTERNAL MODULE: external "next/router"
1036
- var router_ = __webpack_require__(1853);
1037
- // EXTERNAL MODULE: external "react/jsx-runtime"
1038
- var jsx_runtime_ = __webpack_require__(997);
1039
- ;// CONCATENATED MODULE: ./src/components/ui/ImageGallery/ImageGallery.tsx
1040
- const _excluded = ["images"];
1041
-
1042
- 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; }
1043
-
1044
- 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; }
1045
-
1046
- 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; }
1047
-
1048
- 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; }
1049
-
1050
- 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; }
1051
-
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
- const ImageComponent = ({
1059
- url,
1060
- alternateName
1061
- }) => /*#__PURE__*/jsx_runtime_.jsx(Image/* Image */.E, {
1062
- src: url,
1063
- alt: alternateName,
1064
- sizes: "(max-width: 72px) 25vw, 30vw",
1065
- width: 72,
1066
- height: 72
1067
- });
1068
-
1069
- const ImageGallery_ImageGallery_ImageGallery = _ref => {
1070
- let {
1071
- images
1072
- } = _ref,
1073
- otherProps = _objectWithoutProperties(_ref, _excluded);
1074
-
1075
- const {
1076
- 0: selectedImageIdx,
1077
- 1: setSelectedImageIdx
1078
- } = (0,external_react_.useState)(0);
1079
- const currentImage = images[selectedImageIdx] ?? images[0];
1080
- const dynamicRoute = (0,router_.useRouter)().asPath;
1081
- (0,external_react_.useEffect)(() => setSelectedImageIdx(0), [dynamicRoute]);
1082
- return /*#__PURE__*/jsx_runtime_.jsx(ImageGallery_ImageGallery, _objectSpread(_objectSpread({
1083
- images: images,
1084
- ImageComponent: ImageComponent,
1085
- selectedImageIdx: selectedImageIdx,
1086
- setSelectedImageIdx: setSelectedImageIdx
1087
- }, otherProps), {}, {
1088
- children: /*#__PURE__*/jsx_runtime_.jsx(ImageGallery_ImageZoom, {
1089
- children: /*#__PURE__*/jsx_runtime_.jsx(Image/* Image */.E, {
1090
- src: currentImage.url,
1091
- alt: currentImage.alternateName,
1092
- sizes: "(max-width: 804px) 25vw, 30vw",
1093
- width: 804,
1094
- height: 804 * (3 / 4),
1095
- loading: "eager",
1096
- priority: true
1097
- })
1098
- })
1099
- }));
1100
- };
1101
-
1102
- /* harmony default export */ const ui_ImageGallery_ImageGallery = (ImageGallery_ImageGallery_ImageGallery);
1103
- ;// CONCATENATED MODULE: ./src/components/ui/ImageGallery/index.ts
1104
-
1105
-
1106
- /***/ }),
1107
-
1108
- /***/ 104:
1109
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1110
-
1111
- "use strict";
1112
-
1113
- // EXPORTS
1114
- __webpack_require__.d(__webpack_exports__, {
1115
- "Z": () => (/* reexport */ ShippingSimulation_ShippingSimulation_ShippingSimulation)
1116
- });
1117
-
1118
- // EXTERNAL MODULE: external "react"
1119
- var external_react_ = __webpack_require__(6689);
1120
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1121
- // EXTERNAL MODULE: ../components/dist/molecules/InputField/InputField.js
1122
- var InputField = __webpack_require__(8287);
1123
- // EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
1124
- var Link = __webpack_require__(7865);
1125
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
1126
- var Icon = __webpack_require__(5045);
1127
- // EXTERNAL MODULE: ../components/dist/molecules/Table/Table.js
1128
- var Table = __webpack_require__(4707);
1129
- // EXTERNAL MODULE: ../components/dist/molecules/Table/TableBody.js
1130
- var TableBody = __webpack_require__(1566);
1131
- // EXTERNAL MODULE: ../components/dist/molecules/Table/TableRow.js
1132
- var TableRow = __webpack_require__(6037);
1133
- // EXTERNAL MODULE: ../components/dist/molecules/Table/TableCell.js
1134
- var TableCell = __webpack_require__(3111);
1135
- // EXTERNAL MODULE: ../components/dist/atoms/Price/Price.js
1136
- var Price = __webpack_require__(7549);
1137
- ;// CONCATENATED MODULE: ../components/dist/organisms/ShippingSimulation/ShippingSimulation.js
1138
-
1139
-
1140
- 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 }) {
1141
- const hasShippingOptions = !!options && options.length > 0;
1142
- return (external_react_default().createElement("section", { "data-fs-shipping-simulation": true, "data-fs-shipping-simulation-empty": !hasShippingOptions ? 'true' : 'false', "data-testid": testId, ...otherProps },
1143
- external_react_default().createElement("h2", { "data-fs-shipping-simulation-title": true }, title),
1144
- 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 }),
1145
- 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,
1146
- "I don't know my Postal Code",
1147
- external_react_default().createElement(Icon/* default */.Z, { name: "ArrowSquareOut", width: 20, height: 20 })))),
1148
- hasShippingOptions && (external_react_default().createElement((external_react_default()).Fragment, null,
1149
- external_react_default().createElement("header", { "data-fs-shipping-simulation-header": true },
1150
- external_react_default().createElement("h3", { "data-fs-shipping-simulation-subtitle": true }, optionsLabel),
1151
- external_react_default().createElement("p", { "data-fs-shipping-simulation-location": true }, location)),
1152
- external_react_default().createElement(Table/* default */.Z, null,
1153
- external_react_default().createElement(TableBody/* default */.Z, null, options.map((option) => (external_react_default().createElement(TableRow/* default */.Z, { key: option.carrier },
1154
- external_react_default().createElement(TableCell/* default */.Z, { align: "left" }, option.carrier),
1155
- external_react_default().createElement(TableCell/* default */.Z, null, option.localizedEstimates),
1156
- external_react_default().createElement(TableCell/* default */.Z, { align: "right" }, option.price && (external_react_default().createElement(Price/* default */.Z, { formatter: formatter, value: option.price, SRText: "price" }))))))))))));
1157
- }
1158
- /* harmony default export */ const ShippingSimulation_ShippingSimulation = (ShippingSimulation);
1159
- //# sourceMappingURL=ShippingSimulation.js.map
1160
- // EXTERNAL MODULE: ./src/sdk/graphql/request.ts
1161
- var request = __webpack_require__(180);
1162
- ;// CONCATENATED MODULE: ./src/sdk/shipping/index.ts
1163
-
1164
- const query = "ShippingSimulationQuery";
1165
- const getShippingSimulation = async ({
1166
- items,
1167
- postalCode,
1168
- country
1169
- }) => {
1170
- const data = await (0,request/* request */.W)(query, {
1171
- items,
1172
- postalCode,
1173
- country
1174
- });
1175
- return data.shipping;
1176
- };
1177
- /* harmony default export */ const shipping = ((/* unused pure expression or super */ null && (getShippingSimulation)));
1178
- // EXTERNAL MODULE: ./src/sdk/session/index.ts
1179
- var session = __webpack_require__(5971);
1180
- ;// CONCATENATED MODULE: ./src/components/ui/ShippingSimulation/useShippingSimulation.ts
1181
- 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; }
1182
-
1183
- 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; }
1184
-
1185
- 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; }
1186
-
1187
-
1188
-
1189
- const createEmptySimulation = () => ({
1190
- input: {
1191
- postalCode: '',
1192
- displayClearButton: false,
1193
- errorMessage: ''
1194
- },
1195
- shippingSimulation: {
1196
- location: '',
1197
- options: []
1198
- }
1199
- });
1200
-
1201
- const reducer = (state, action) => {
1202
- const {
1203
- type
1204
- } = action;
1205
-
1206
- switch (type) {
1207
- case 'clear':
1208
- {
1209
- return createEmptySimulation();
1210
- }
1211
-
1212
- case 'update':
1213
- {
1214
- const {
1215
- payload
1216
- } = action;
1217
- return {
1218
- input: _objectSpread(_objectSpread({}, state.input), payload.input),
1219
- shippingSimulation: _objectSpread(_objectSpread({}, state.shippingSimulation), payload.shippingSimulation)
1220
- };
1221
- }
1222
-
1223
- case 'onInput':
1224
- {
1225
- const {
1226
- payload
1227
- } = action;
1228
- return _objectSpread(_objectSpread({}, state), {}, {
1229
- input: _objectSpread({}, payload)
1230
- });
1231
- }
1232
-
1233
- case 'onError':
1234
- {
1235
- const {
1236
- payload
1237
- } = action;
1238
- return _objectSpread(_objectSpread({}, state), {}, {
1239
- input: _objectSpread(_objectSpread({}, state.input), payload)
1240
- });
1241
- }
1242
-
1243
- default:
1244
- throw new Error(`Action ${type} not implemented`);
1245
- }
1246
- };
1247
-
1248
- const useShippingSimulation = (shippingItem, fetchShippingSimulationFn, sessionPostalCode, country) => {
1249
- const {
1250
- 0: {
1251
- input,
1252
- shippingSimulation
1253
- },
1254
- 1: dispatch
1255
- } = (0,external_react_.useReducer)(reducer, null, createEmptySimulation);
1256
- const {
1257
- postalCode: shippingPostalCode
1258
- } = input;
1259
- (0,external_react_.useEffect)(() => {
1260
- if (!sessionPostalCode || shippingPostalCode) {
1261
- return;
1262
- } // Use sessionPostalCode if there is no shippingPostalCode
1263
-
1264
-
1265
- async function fetchShipping() {
1266
- const [location, options] = await fetchShippingSimulationFn(shippingItem, country, sessionPostalCode ?? '');
1267
- dispatch({
1268
- type: 'update',
1269
- payload: {
1270
- input: {
1271
- postalCode: sessionPostalCode ?? '',
1272
- displayClearButton: true,
1273
- errorMessage: ''
1274
- },
1275
- shippingSimulation: {
1276
- location,
1277
- options
1278
- }
1279
- }
1280
- });
1281
- }
1282
-
1283
- fetchShipping();
1284
- }, [country, fetchShippingSimulationFn, sessionPostalCode, shippingItem, shippingPostalCode]);
1285
- const handleSubmit = (0,external_react_.useCallback)(async () => {
1286
- try {
1287
- const [location, options] = await fetchShippingSimulationFn(shippingItem, country, shippingPostalCode ?? '');
1288
- dispatch({
1289
- type: 'update',
1290
- payload: {
1291
- input: {
1292
- displayClearButton: true,
1293
- errorMessage: ''
1294
- },
1295
- shippingSimulation: {
1296
- location,
1297
- options
1298
- }
1299
- }
1300
- });
1301
- } catch (error) {
1302
- dispatch({
1303
- type: 'onError',
1304
- payload: {
1305
- displayClearButton: true,
1306
- errorMessage: 'You entered an invalid Postal Code'
1307
- }
1308
- });
1309
- }
1310
- }, [country, fetchShippingSimulationFn, shippingItem, shippingPostalCode]);
1311
- const handleOnInput = (0,external_react_.useCallback)(e => {
1312
- const currentValue = e.currentTarget.value;
1313
-
1314
- if (currentValue) {
1315
- dispatch({
1316
- type: 'onInput',
1317
- payload: {
1318
- postalCode: currentValue,
1319
- displayClearButton: false,
1320
- errorMessage: ''
1321
- }
1322
- });
1323
- } else {
1324
- dispatch({
1325
- type: 'clear'
1326
- });
1327
- }
1328
- }, []);
1329
- return {
1330
- input,
1331
- shippingSimulation,
1332
- handleOnClear: () => {
1333
- dispatch({
1334
- type: 'clear'
1335
- });
1336
- },
1337
- handleSubmit,
1338
- handleOnInput
1339
- };
1340
- };
1341
- // EXTERNAL MODULE: external "react/jsx-runtime"
1342
- var jsx_runtime_ = __webpack_require__(997);
1343
- ;// CONCATENATED MODULE: ./src/components/ui/ShippingSimulation/ShippingSimulation.tsx
1344
- const _excluded = ["productShippingInfo", "formatter"];
1345
-
1346
- 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; }
1347
-
1348
- 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; }
1349
-
1350
- 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; }
1351
-
1352
- 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; }
1353
-
1354
- 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; }
1355
-
1356
-
1357
-
1358
-
1359
-
1360
-
1361
-
1362
- const fetchShippingSimulation = async (shippingItem, country, postalCode) => {
1363
- const shipping = await getShippingSimulation({
1364
- country,
1365
- postalCode: postalCode,
1366
- items: [shippingItem]
1367
- });
1368
- const location = [shipping?.address?.neighborhood, shipping?.address?.city].filter(Boolean).join(' / ') ?? '';
1369
- const options = shipping?.logisticsInfo?.[0]?.slas ?? [];
1370
- return [location, options];
1371
- };
1372
-
1373
- function ShippingSimulation_ShippingSimulation_ShippingSimulation(_ref) {
1374
- let {
1375
- productShippingInfo,
1376
- formatter
1377
- } = _ref,
1378
- otherProps = _objectWithoutProperties(_ref, _excluded);
1379
-
1380
- const {
1381
- country,
1382
- postalCode: sessionPostalCode
1383
- } = (0,session/* useSession */.kP)();
1384
- const {
1385
- input,
1386
- shippingSimulation,
1387
- handleSubmit,
1388
- handleOnInput,
1389
- handleOnClear
1390
- } = useShippingSimulation(productShippingInfo, fetchShippingSimulation, sessionPostalCode, country);
1391
- const {
1392
- postalCode,
1393
- displayClearButton,
1394
- errorMessage
1395
- } = input;
1396
- const {
1397
- location,
1398
- options
1399
- } = shippingSimulation;
1400
- return /*#__PURE__*/jsx_runtime_.jsx(ShippingSimulation_ShippingSimulation, ShippingSimulation_objectSpread({
1401
- formatter: formatter,
1402
- onInput: handleOnInput,
1403
- onSubmit: handleSubmit,
1404
- onClear: handleOnClear,
1405
- location: location,
1406
- options: options,
1407
- displayClearButton: displayClearButton,
1408
- errorMessage: errorMessage,
1409
- postalCode: postalCode
1410
- }, otherProps));
1411
- }
1412
- ;// CONCATENATED MODULE: ./src/components/ui/ShippingSimulation/index.ts
1413
-
1414
-
1415
- /***/ }),
1416
-
1417
- /***/ 4475:
1418
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1419
-
1420
- "use strict";
1421
-
1422
- // EXPORTS
1423
- __webpack_require__.d(__webpack_exports__, {
1424
- "Z": () => (/* reexport */ SkuSelector_Selectors)
1425
- });
1426
-
1427
- // EXTERNAL MODULE: ./src/components/ui/Image/index.ts + 3 modules
1428
- var Image = __webpack_require__(2154);
1429
- // EXTERNAL MODULE: external "react"
1430
- var external_react_ = __webpack_require__(6689);
1431
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1432
- // EXTERNAL MODULE: ../components/dist/atoms/Label/Label.js
1433
- var Label = __webpack_require__(7216);
1434
- // EXTERNAL MODULE: ../components/dist/atoms/Link/Link.js
1435
- var Link = __webpack_require__(7865);
1436
- // EXTERNAL MODULE: ../components/dist/atoms/SROnly/SROnly.js
1437
- var SROnly = __webpack_require__(2691);
1438
- ;// CONCATENATED MODULE: ../components/dist/molecules/SkuSelector/useDefineVariant.js
1439
-
1440
- const getImageName = (src) => {
1441
- const sourcePath = new URL(src).pathname;
1442
- const imageName = sourcePath.split('/').slice(-1)[0];
1443
- return imageName;
1444
- };
1445
- const useDefineVariant = (options, variant) => (0,external_react_.useMemo)(() => {
1446
- if (variant)
1447
- return variant;
1448
- const allOptionsHaveHexColor = options.every((option) => option.hexColor);
1449
- if (allOptionsHaveHexColor) {
1450
- return 'color';
1451
- }
1452
- const firstImageName = options[0]?.src && getImageName(options[0].src);
1453
- const areSourcesEqualsOrNull = options.every((option) => {
1454
- if (!option.src) {
1455
- return true;
1456
- }
1457
- const optionImageName = getImageName(option.src);
1458
- return optionImageName === firstImageName;
1459
- });
1460
- if (!areSourcesEqualsOrNull) {
1461
- return 'image';
1462
- }
1463
- return 'label';
1464
- }, [options, variant]);
1465
- //# sourceMappingURL=useDefineVariant.js.map
1466
- ;// CONCATENATED MODULE: ../components/dist/molecules/SkuSelector/useSkuSlug.js
1467
-
1468
- function getSkuSlug(slugsMap, selectedVariations, dominantVariation) {
1469
- const slugsMapKey = Object.entries(selectedVariations).flat().join('-');
1470
- if (slugsMapKey in slugsMap) {
1471
- return slugsMap[slugsMapKey];
1472
- }
1473
- const possibleVariants = Object.keys(slugsMap);
1474
- const firstVariationForDominantValue = possibleVariants.find((slug) => slug.includes(`${dominantVariation}-${selectedVariations[dominantVariation]}`));
1475
- return slugsMap[firstVariationForDominantValue ?? possibleVariants[0]];
1476
- }
1477
- const useSkuSlug = (activeVariations, slugsMap, skuPropertyName, getItemHrefProp) => {
1478
- const getItemHref = (0,external_react_.useCallback)((option) => {
1479
- if (getItemHrefProp)
1480
- return { getItemHrefProp };
1481
- const currentItemHref = `/${getSkuSlug(slugsMap, {
1482
- ...activeVariations,
1483
- [skuPropertyName]: option.value,
1484
- }, skuPropertyName)}/p`;
1485
- return currentItemHref;
1486
- }, [activeVariations, getItemHrefProp, slugsMap, skuPropertyName]);
1487
- return { getItemHref };
1488
- };
1489
- //# sourceMappingURL=useSkuSlug.js.map
1490
- ;// CONCATENATED MODULE: ../components/dist/molecules/SkuSelector/SkuSelector.js
1491
-
1492
-
1493
-
1494
-
1495
- // TODO: Change by ImageComponent when it be right
1496
- const ImageComponentFallback = ({ src, alt, ...otherProps }) => external_react_default().createElement("img", { src: src, alt: alt, ...otherProps });
1497
- const SkuSelector = (0,external_react_.forwardRef)(function SkuSelector({ availableVariations, skuPropertyName, testId, activeVariations, linkProps, slugsMap, getItemHref: getItemHrefProp, ImageComponent = ImageComponentFallback, variant: variantProp, ...otherProps }, ref) {
1498
- const activeSelectorValue = activeVariations[skuPropertyName];
1499
- const options = availableVariations[skuPropertyName];
1500
- const variant = useDefineVariant(options, variantProp);
1501
- const { getItemHref } = useSkuSlug(activeVariations, slugsMap, skuPropertyName, getItemHrefProp);
1502
- return (external_react_default().createElement("div", { ref: ref, "data-fs-sku-selector": true, "data-testid": testId, "data-fs-sku-selector-variant": variant, ...otherProps },
1503
- skuPropertyName && (external_react_default().createElement(Label/* default */.Z, { "data-fs-sku-selector-title": true },
1504
- skuPropertyName,
1505
- ": ",
1506
- external_react_default().createElement("strong", null, activeSelectorValue))),
1507
- external_react_default().createElement("ul", { "data-fs-sku-selector-list": true }, options.map((option, index) => {
1508
- 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] },
1509
- external_react_default().createElement(Link/* default */.Z, { "data-fs-sku-selector-option-link": true, href: getItemHref(option), ...linkProps },
1510
- external_react_default().createElement(SROnly/* default */.Z, { text: option.label })),
1511
- variant === 'label' && external_react_default().createElement("span", null, option.value),
1512
- variant === 'image' && ImageComponent && (external_react_default().createElement("span", null,
1513
- external_react_default().createElement(ImageComponent, { src: option.src ?? '', alt: option.alt ?? '', "data-fs-sku-selector-option-image": true }))),
1514
- variant === 'color' && (external_react_default().createElement("span", null,
1515
- external_react_default().createElement("div", { "data-fs-sku-selector-option-color": true, title: option.value, style: {
1516
- '--data-fs-sku-selector-option-color-bkg-color': option.hexColor,
1517
- } })))));
1518
- }))));
1519
- });
1520
- /* harmony default export */ const SkuSelector_SkuSelector = (SkuSelector);
1521
- //# sourceMappingURL=SkuSelector.js.map
1522
- // EXTERNAL MODULE: ./node_modules/next/link.js
1523
- var next_link = __webpack_require__(1664);
1524
- var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
1525
- // EXTERNAL MODULE: external "react/jsx-runtime"
1526
- var jsx_runtime_ = __webpack_require__(997);
1527
- ;// CONCATENATED MODULE: ./src/components/ui/SkuSelector/Selectors.tsx
1528
- const _excluded = ["src", "alt"],
1529
- _excluded2 = ["slugsMap", "activeVariations", "availableVariations"];
1530
-
1531
- 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; }
1532
-
1533
- 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; }
1534
-
1535
- 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; }
1536
-
1537
- 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; }
1538
-
1539
- 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; }
1540
-
1541
-
1542
-
1543
-
1544
-
1545
-
1546
- const ImageComponent = _ref => {
1547
- let {
1548
- src,
1549
- alt
1550
- } = _ref,
1551
- otherProps = _objectWithoutProperties(_ref, _excluded);
1552
-
1553
- return /*#__PURE__*/jsx_runtime_.jsx(Image/* Image */.E, _objectSpread({
1554
- src: src,
1555
- alt: alt,
1556
- width: 20,
1557
- height: 20,
1558
- loading: "lazy"
1559
- }, otherProps));
1560
- };
1561
-
1562
- function Selectors(_ref2) {
1563
- let {
1564
- slugsMap,
1565
- activeVariations,
1566
- availableVariations
1567
- } = _ref2,
1568
- otherProps = _objectWithoutProperties(_ref2, _excluded2);
1569
-
1570
- return /*#__PURE__*/jsx_runtime_.jsx("section", _objectSpread(_objectSpread({}, otherProps), {}, {
1571
- children: availableVariations && Object.keys(availableVariations).map(skuVariant => /*#__PURE__*/jsx_runtime_.jsx(SkuSelector_SkuSelector, {
1572
- skuPropertyName: skuVariant,
1573
- availableVariations: availableVariations,
1574
- ImageComponent: ImageComponent,
1575
- activeVariations: activeVariations,
1576
- slugsMap: slugsMap,
1577
- linkProps: {
1578
- as: (link_default()),
1579
- legacyBehavior: false
1580
- }
1581
- }, skuVariant))
1582
- }));
1583
- }
1584
-
1585
- /* harmony default export */ const SkuSelector_Selectors = (Selectors);
1586
- ;// CONCATENATED MODULE: ./src/components/ui/SkuSelector/index.ts
1587
-
1588
-
1589
- /***/ }),
1590
-
1591
- /***/ 4601:
1592
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
1593
-
1594
- "use strict";
1595
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
1596
- __webpack_require__.r(__webpack_exports__);
1597
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1598
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
1599
- /* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
1600
- /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
1601
- /* harmony export */ });
1602
- /* harmony import */ var _faststore_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4826);
1603
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6641);
1604
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_seo__WEBPACK_IMPORTED_MODULE_1__);
1605
- /* harmony import */ var src_components_cms_RenderPageSections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2659);
1606
- /* harmony import */ var src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2951);
1607
- /* harmony import */ var src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7990);
1608
- /* harmony import */ var src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3220);
1609
- /* harmony import */ var src_customizations_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7410);
1610
- /* harmony import */ var src_sdk_session__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5971);
1611
- /* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2541);
1612
- /* harmony import */ var src_server__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9685);
1613
- /* harmony import */ var src_server_cms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5764);
1614
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7183);
1615
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_11__);
1616
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(997);
1617
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__);
1618
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_cms_RenderPageSections__WEBPACK_IMPORTED_MODULE_2__, src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__, src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_4__, src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_5__, src_server__WEBPACK_IMPORTED_MODULE_9__]);
1619
- ([src_components_cms_RenderPageSections__WEBPACK_IMPORTED_MODULE_2__, src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__, src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_4__, src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_5__, src_server__WEBPACK_IMPORTED_MODULE_9__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
1620
- 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; }
1621
-
1622
- 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; }
1623
-
1624
- 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; }
1625
-
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
-
1638
- /**
1639
- * Sections: Components imported from each store's custom components and '../components/sections' only.
1640
- * Do not import or render components from any other folder in here.
1641
- */
1642
-
1643
-
1644
-
1645
-
1646
-
1647
- const COMPONENTS = _objectSpread({
1648
- ProductDetails: src_components_sections_ProductDetails__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z,
1649
- BannerNewsletter: src_components_sections_BannerNewsletter_BannerNewsletter__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z,
1650
- CrossSellingShelf: src_components_sections_CrossSellingShelf__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z
1651
- }, src_customizations_components__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z);
1652
-
1653
- function Page({
1654
- product,
1655
- sections
1656
- }) {
1657
- const {
1658
- currency
1659
- } = (0,src_sdk_session__WEBPACK_IMPORTED_MODULE_7__/* .useSession */ .kP)();
1660
- const {
1661
- seo
1662
- } = product;
1663
- const title = seo.title || (_faststore_config__WEBPACK_IMPORTED_MODULE_11___default().seo.title);
1664
- const description = seo.description || (_faststore_config__WEBPACK_IMPORTED_MODULE_11___default().seo.description);
1665
- const canonical = `${(_faststore_config__WEBPACK_IMPORTED_MODULE_11___default().storeUrl)}${seo.canonical}`;
1666
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.Fragment, {
1667
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.NextSeo, {
1668
- title: title,
1669
- description: description,
1670
- canonical: canonical,
1671
- openGraph: {
1672
- type: 'og:product',
1673
- url: canonical,
1674
- title,
1675
- description,
1676
- images: product.image.map(img => ({
1677
- url: img.url,
1678
- alt: img.alternateName
1679
- }))
1680
- },
1681
- additionalMetaTags: [{
1682
- property: 'product:price:amount',
1683
- content: product.offers.lowPrice?.toString() ?? undefined
1684
- }, {
1685
- property: 'product:price:currency',
1686
- content: currency.code
1687
- }]
1688
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.BreadcrumbJsonLd, {
1689
- itemListElements: product.breadcrumbList.itemListElement
1690
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.ProductJsonLd, {
1691
- productName: product.name,
1692
- description: product.description,
1693
- brand: product.brand.name,
1694
- sku: product.sku,
1695
- gtin: product.gtin,
1696
- releaseDate: product.releaseDate,
1697
- images: product.image.map(img => img.url) // Somehow, Google does not understand this valid Schema.org schema, so we need to do conversions
1698
- ,
1699
- offersType: "AggregateOffer",
1700
- offers: _objectSpread(_objectSpread(_objectSpread({}, product.offers), product.offers.offers[0]), {}, {
1701
- url: canonical
1702
- })
1703
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx(src_components_cms_RenderPageSections__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
1704
- context: product,
1705
- sections: sections,
1706
- components: COMPONENTS
1707
- })]
1708
- });
1709
- }
1710
-
1711
- const query = "ServerProductPageQuery";
1712
- const getStaticProps = async ({
1713
- params,
1714
- previewData
1715
- }) => {
1716
- const slug = params?.slug ?? '';
1717
- const [cmsPage, searchResult] = await Promise.all([(0,src_server_cms__WEBPACK_IMPORTED_MODULE_10__/* .getPage */ .f)(_objectSpread(_objectSpread({}, previewData?.contentType === 'pdp' ? previewData : null), {}, {
1718
- contentType: 'pdp'
1719
- })), (0,src_server__WEBPACK_IMPORTED_MODULE_9__/* .execute */ .h)({
1720
- variables: {
1721
- slug
1722
- },
1723
- operationName: query
1724
- })]);
1725
- const {
1726
- data,
1727
- errors = []
1728
- } = searchResult;
1729
- const notFound = errors.find(_faststore_api__WEBPACK_IMPORTED_MODULE_0__.isNotFoundError);
1730
-
1731
- if (notFound) {
1732
- return {
1733
- notFound: true
1734
- };
1735
- }
1736
-
1737
- if (errors.length > 0) {
1738
- throw errors[0];
1739
- }
1740
-
1741
- return {
1742
- props: _objectSpread(_objectSpread({}, data), cmsPage)
1743
- };
1744
- };
1745
- const getStaticPaths = async () => {
1746
- return {
1747
- paths: [],
1748
- fallback: 'blocking'
1749
- };
1750
- };
1751
- Page.displayName = 'Page';
1752
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_8__/* .mark */ .B)(Page));
1753
- __webpack_async_result__();
1754
- } catch(e) { __webpack_async_result__(e); } });
1755
-
1756
- /***/ }),
1757
-
1758
- /***/ 8892:
1759
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1760
-
1761
- "use strict";
1762
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1763
- /* harmony export */ "Q": () => (/* binding */ useBuyButton)
1764
- /* harmony export */ });
1765
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8460);
1766
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
1767
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1768
- /* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5971);
1769
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(395);
1770
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7566);
1771
-
1772
-
1773
-
1774
-
1775
-
1776
- const useBuyButton = item => {
1777
- const {
1778
- openCart
1779
- } = (0,_faststore_ui__WEBPACK_IMPORTED_MODULE_3__/* .useUI */ .l)();
1780
- const {
1781
- currency: {
1782
- code
1783
- }
1784
- } = (0,_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
1785
- const onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(e => {
1786
- e.preventDefault();
1787
-
1788
- if (!item) {
1789
- return;
1790
- }
1791
-
1792
- (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_4__/* .sendAnalyticsEvent */ ._)({
1793
- name: 'add_to_cart',
1794
- params: {
1795
- currency: code,
1796
- // TODO: In the future, we can explore more robust ways of
1797
- // calculating the value (gift items, discounts, etc.).
1798
- value: item.price * item.quantity,
1799
- items: [{
1800
- item_id: item.itemOffered.isVariantOf.productGroupID,
1801
- item_name: item.itemOffered.isVariantOf.name,
1802
- item_brand: item.itemOffered.brand.name,
1803
- item_variant: item.itemOffered.sku,
1804
- quantity: item.quantity,
1805
- price: item.price,
1806
- discount: item.listPrice - item.price,
1807
- currency: code,
1808
- item_variant_name: item.itemOffered.name,
1809
- product_reference_id: item.itemOffered.gtin
1810
- }]
1811
- }
1812
- });
1813
- _index__WEBPACK_IMPORTED_MODULE_2__/* .cartStore.addItem */ .i8.addItem(item);
1814
- openCart();
1815
- }, [code, item, openCart]);
1816
- return {
1817
- onClick,
1818
- 'data-testid': 'buy-button',
1819
- 'data-sku': item?.itemOffered.sku,
1820
- 'data-seller': item?.seller.identifier
1821
- };
1822
- };
1823
-
1824
- /***/ }),
1825
-
1826
- /***/ 3874:
1827
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
1828
-
1829
- "use strict";
1830
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
1831
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1832
- /* harmony export */ "i": () => (/* binding */ useProduct)
1833
- /* harmony export */ });
1834
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
1835
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1836
- /* harmony import */ var _graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7732);
1837
- /* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5971);
1838
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__]);
1839
- _graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
1840
-
1841
-
1842
-
1843
- const query = "BrowserProductQuery";
1844
- const useProduct = (productID, fallbackData) => {
1845
- const {
1846
- channel,
1847
- locale
1848
- } = (0,_session__WEBPACK_IMPORTED_MODULE_2__/* .useSession */ .kP)();
1849
- const variables = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
1850
- if (!channel) {
1851
- throw new Error(`useProduct: 'channel' from session is an empty string.`);
1852
- }
1853
-
1854
- return {
1855
- locator: [{
1856
- key: 'id',
1857
- value: productID
1858
- }, {
1859
- key: 'channel',
1860
- value: channel
1861
- }, {
1862
- key: 'locale',
1863
- value: locale
1864
- }]
1865
- };
1866
- }, [channel, locale, productID]);
1867
- return (0,_graphql_useQuery__WEBPACK_IMPORTED_MODULE_1__/* .useQuery */ .aM)(query, variables, {
1868
- fallbackData,
1869
- revalidateOnMount: true
1870
- });
1871
- };
1872
- __webpack_async_result__();
1873
- } catch(e) { __webpack_async_result__(e); } });
1874
-
1875
- /***/ }),
1876
-
1877
- /***/ 6308:
1878
- /***/ ((module) => {
1879
-
1880
- // Exports
1881
- module.exports = {
1882
- "fs-banner-newsletter": "banner-newsletter_fs-banner-newsletter__45gCy",
1883
- "fsBannerNewsletter": "banner-newsletter_fs-banner-newsletter__45gCy"
1884
- };
1885
-
1886
-
1887
- /***/ }),
1888
-
1889
- /***/ 841:
1890
- /***/ ((module) => {
1891
-
1892
- // Exports
1893
- module.exports = {
1894
- "fs-product-details": "product-details_fs-product-details__KhD0C",
1895
- "fsProductDetails": "product-details_fs-product-details__KhD0C"
1896
- };
1897
-
1898
-
1899
- /***/ }),
1900
-
1901
- /***/ 5490:
1902
- /***/ ((module) => {
1903
-
1904
- "use strict";
1905
- module.exports = require("@faststore/graphql-utils");
1906
-
1907
- /***/ }),
1908
-
1909
- /***/ 6676:
1910
- /***/ ((module) => {
1911
-
1912
- "use strict";
1913
- module.exports = require("@vtex/client-cms");
1914
-
1915
- /***/ }),
1916
-
1917
- /***/ 2404:
1918
- /***/ ((module) => {
1919
-
1920
- "use strict";
1921
- module.exports = require("fast-deep-equal");
1922
-
1923
- /***/ }),
1924
-
1925
- /***/ 7343:
1926
- /***/ ((module) => {
1927
-
1928
- "use strict";
1929
- module.exports = require("graphql");
1930
-
1931
- /***/ }),
1932
-
1933
- /***/ 6548:
1934
- /***/ ((module) => {
1935
-
1936
- "use strict";
1937
- module.exports = require("graphql/language");
1938
-
1939
- /***/ }),
1940
-
1941
- /***/ 3430:
1942
- /***/ ((module) => {
1943
-
1944
- "use strict";
1945
- module.exports = require("idb-keyval");
1946
-
1947
- /***/ }),
1948
-
1949
- /***/ 7881:
1950
- /***/ ((module) => {
1951
-
1952
- "use strict";
1953
- module.exports = require("isomorphic-unfetch");
1954
-
1955
- /***/ }),
1956
-
1957
- /***/ 6641:
1958
- /***/ ((module) => {
1959
-
1960
- "use strict";
1961
- module.exports = require("next-seo");
1962
-
1963
- /***/ }),
1964
-
1965
- /***/ 3280:
1966
- /***/ ((module) => {
1967
-
1968
- "use strict";
1969
- module.exports = require("next/dist/shared/lib/app-router-context.js");
1970
-
1971
- /***/ }),
1972
-
1973
- /***/ 2796:
1974
- /***/ ((module) => {
1975
-
1976
- "use strict";
1977
- module.exports = require("next/dist/shared/lib/head-manager-context.js");
1978
-
1979
- /***/ }),
1980
-
1981
- /***/ 5429:
1982
- /***/ ((module) => {
1983
-
1984
- "use strict";
1985
- module.exports = require("next/dist/shared/lib/head.js");
1986
-
1987
- /***/ }),
1988
-
1989
- /***/ 3539:
1990
- /***/ ((module) => {
1991
-
1992
- "use strict";
1993
- module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
1994
-
1995
- /***/ }),
1996
-
1997
- /***/ 4014:
1998
- /***/ ((module) => {
1999
-
2000
- "use strict";
2001
- module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
2002
-
2003
- /***/ }),
2004
-
2005
- /***/ 4486:
2006
- /***/ ((module) => {
2007
-
2008
- "use strict";
2009
- module.exports = require("next/dist/shared/lib/image-blur-svg.js");
2010
-
2011
- /***/ }),
2012
-
2013
- /***/ 744:
2014
- /***/ ((module) => {
2015
-
2016
- "use strict";
2017
- module.exports = require("next/dist/shared/lib/image-config-context.js");
2018
-
2019
- /***/ }),
2020
-
2021
- /***/ 5843:
2022
- /***/ ((module) => {
2023
-
2024
- "use strict";
2025
- module.exports = require("next/dist/shared/lib/image-config.js");
2026
-
2027
- /***/ }),
2028
-
2029
- /***/ 8524:
2030
- /***/ ((module) => {
2031
-
2032
- "use strict";
2033
- module.exports = require("next/dist/shared/lib/is-plain-object.js");
2034
-
2035
- /***/ }),
2036
-
2037
- /***/ 8020:
2038
- /***/ ((module) => {
2039
-
2040
- "use strict";
2041
- module.exports = require("next/dist/shared/lib/mitt.js");
2042
-
2043
- /***/ }),
2044
-
2045
- /***/ 4406:
2046
- /***/ ((module) => {
2047
-
2048
- "use strict";
2049
- module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
2050
-
2051
- /***/ }),
2052
-
2053
- /***/ 4964:
2054
- /***/ ((module) => {
2055
-
2056
- "use strict";
2057
- module.exports = require("next/dist/shared/lib/router-context.js");
2058
-
2059
- /***/ }),
2060
-
2061
- /***/ 3431:
2062
- /***/ ((module) => {
2063
-
2064
- "use strict";
2065
- module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
2066
-
2067
- /***/ }),
2068
-
2069
- /***/ 1751:
2070
- /***/ ((module) => {
2071
-
2072
- "use strict";
2073
- module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
2074
-
2075
- /***/ }),
2076
-
2077
- /***/ 6220:
2078
- /***/ ((module) => {
2079
-
2080
- "use strict";
2081
- module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
2082
-
2083
- /***/ }),
2084
-
2085
- /***/ 299:
2086
- /***/ ((module) => {
2087
-
2088
- "use strict";
2089
- module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
2090
-
2091
- /***/ }),
2092
-
2093
- /***/ 3938:
2094
- /***/ ((module) => {
2095
-
2096
- "use strict";
2097
- module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
2098
-
2099
- /***/ }),
2100
-
2101
- /***/ 9565:
2102
- /***/ ((module) => {
2103
-
2104
- "use strict";
2105
- module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
2106
-
2107
- /***/ }),
2108
-
2109
- /***/ 5789:
2110
- /***/ ((module) => {
2111
-
2112
- "use strict";
2113
- module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
2114
-
2115
- /***/ }),
2116
-
2117
- /***/ 1897:
2118
- /***/ ((module) => {
2119
-
2120
- "use strict";
2121
- module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
2122
-
2123
- /***/ }),
2124
-
2125
- /***/ 1428:
2126
- /***/ ((module) => {
2127
-
2128
- "use strict";
2129
- module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
2130
-
2131
- /***/ }),
2132
-
2133
- /***/ 8854:
2134
- /***/ ((module) => {
2135
-
2136
- "use strict";
2137
- module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
2138
-
2139
- /***/ }),
2140
-
2141
- /***/ 1292:
2142
- /***/ ((module) => {
2143
-
2144
- "use strict";
2145
- module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
2146
-
2147
- /***/ }),
2148
-
2149
- /***/ 4567:
2150
- /***/ ((module) => {
2151
-
2152
- "use strict";
2153
- module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
2154
-
2155
- /***/ }),
2156
-
2157
- /***/ 979:
2158
- /***/ ((module) => {
2159
-
2160
- "use strict";
2161
- module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
2162
-
2163
- /***/ }),
2164
-
2165
- /***/ 3297:
2166
- /***/ ((module) => {
2167
-
2168
- "use strict";
2169
- module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
2170
-
2171
- /***/ }),
2172
-
2173
- /***/ 6052:
2174
- /***/ ((module) => {
2175
-
2176
- "use strict";
2177
- module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
2178
-
2179
- /***/ }),
2180
-
2181
- /***/ 4226:
2182
- /***/ ((module) => {
2183
-
2184
- "use strict";
2185
- module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
2186
-
2187
- /***/ }),
2188
-
2189
- /***/ 5052:
2190
- /***/ ((module) => {
2191
-
2192
- "use strict";
2193
- module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
2194
-
2195
- /***/ }),
2196
-
2197
- /***/ 9232:
2198
- /***/ ((module) => {
2199
-
2200
- "use strict";
2201
- module.exports = require("next/dist/shared/lib/utils.js");
2202
-
2203
- /***/ }),
2204
-
2205
- /***/ 1853:
2206
- /***/ ((module) => {
2207
-
2208
- "use strict";
2209
- module.exports = require("next/router");
2210
-
2211
- /***/ }),
2212
-
2213
- /***/ 5471:
2214
- /***/ ((module) => {
2215
-
2216
- "use strict";
2217
- module.exports = require("p-limit");
2218
-
2219
- /***/ }),
2220
-
2221
- /***/ 6689:
2222
- /***/ ((module) => {
2223
-
2224
- "use strict";
2225
- module.exports = require("react");
2226
-
2227
- /***/ }),
2228
-
2229
- /***/ 6405:
2230
- /***/ ((module) => {
2231
-
2232
- "use strict";
2233
- module.exports = require("react-dom");
2234
-
2235
- /***/ }),
2236
-
2237
- /***/ 9785:
2238
- /***/ ((module) => {
2239
-
2240
- "use strict";
2241
- module.exports = require("react-intersection-observer");
2242
-
2243
- /***/ }),
2244
-
2245
- /***/ 997:
2246
- /***/ ((module) => {
2247
-
2248
- "use strict";
2249
- module.exports = require("react/jsx-runtime");
2250
-
2251
- /***/ }),
2252
-
2253
- /***/ 752:
2254
- /***/ ((module) => {
2255
-
2256
- "use strict";
2257
- module.exports = require("tslib");
2258
-
2259
- /***/ }),
2260
-
2261
- /***/ 9664:
2262
- /***/ ((module) => {
2263
-
2264
- "use strict";
2265
- module.exports = import("@envelop/core");;
2266
-
2267
- /***/ }),
2268
-
2269
- /***/ 7886:
2270
- /***/ ((module) => {
2271
-
2272
- "use strict";
2273
- module.exports = import("@envelop/graphql-jit");;
2274
-
2275
- /***/ }),
2276
-
2277
- /***/ 4656:
2278
- /***/ ((module) => {
2279
-
2280
- "use strict";
2281
- module.exports = import("@envelop/parser-cache");;
2282
-
2283
- /***/ }),
2284
-
2285
- /***/ 6093:
2286
- /***/ ((module) => {
2287
-
2288
- "use strict";
2289
- module.exports = import("@envelop/validation-cache");;
2290
-
2291
- /***/ }),
2292
-
2293
- /***/ 7564:
2294
- /***/ ((module) => {
2295
-
2296
- "use strict";
2297
- module.exports = import("chalk");;
2298
-
2299
- /***/ }),
2300
-
2301
- /***/ 5941:
2302
- /***/ ((module) => {
2303
-
2304
- "use strict";
2305
- module.exports = import("swr");;
2306
-
2307
- /***/ }),
2308
-
2309
- /***/ 6113:
2310
- /***/ ((module) => {
2311
-
2312
- "use strict";
2313
- module.exports = require("crypto");
2314
-
2315
- /***/ })
2316
-
2317
- };
2318
- ;
2319
-
2320
- // load runtime
2321
- var __webpack_require__ = require("../../webpack-runtime.js");
2322
- __webpack_require__.C(exports);
2323
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
2324
- var __webpack_exports__ = __webpack_require__.X(0, [1608,676,1394,2922,7183,2154,247,7181,8287,9854,6280,6881,6898,120,7104,350,5335,123], () => (__webpack_exec__(4601)));
2325
- module.exports = __webpack_exports__;
2326
-
2327
- })();