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