@faststore/core 2.0.125-alpha.0 → 2.0.129-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 (165) hide show
  1. package/.turbo/turbo-build.log +9 -21
  2. package/CHANGELOG.md +12 -0
  3. package/package.json +4 -4
  4. package/src/components/cms/GlobalSections.tsx +1 -2
  5. package/src/components/cms/RenderSections.tsx +1 -1
  6. package/src/components/sections/ProductShelf/ProductShelf.tsx +11 -14
  7. package/src/components/sections/ProductShelf/section.module.scss +20 -0
  8. package/src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx +2 -2
  9. package/src/components/ui/Carousel/Carousel.tsx +2 -9
  10. package/.next/BUILD_ID +0 -1
  11. package/.next/build-manifest.json +0 -120
  12. package/.next/cache/.tsbuildinfo +0 -1
  13. package/.next/cache/config.json +0 -7
  14. package/.next/cache/eslint/.cache_1gneedd +0 -1
  15. package/.next/cache/next-server.js.nft.json +0 -1
  16. package/.next/cache/webpack/client-production/0.pack +0 -0
  17. package/.next/cache/webpack/client-production/index.pack +0 -0
  18. package/.next/cache/webpack/server-production/0.pack +0 -0
  19. package/.next/cache/webpack/server-production/index.pack +0 -0
  20. package/.next/export-marker.json +0 -1
  21. package/.next/images-manifest.json +0 -1
  22. package/.next/next-server.js.nft.json +0 -1
  23. package/.next/package.json +0 -1
  24. package/.next/prerender-manifest.json +0 -1
  25. package/.next/react-loadable-manifest.json +0 -52
  26. package/.next/required-server-files.json +0 -1
  27. package/.next/routes-manifest.json +0 -1
  28. package/.next/server/chunks/104.js +0 -295
  29. package/.next/server/chunks/120.js +0 -435
  30. package/.next/server/chunks/123.js +0 -58
  31. package/.next/server/chunks/143.js +0 -106
  32. package/.next/server/chunks/154.js +0 -206
  33. package/.next/server/chunks/183.js +0 -80
  34. package/.next/server/chunks/247.js +0 -61
  35. package/.next/server/chunks/254.js +0 -159
  36. package/.next/server/chunks/256.js +0 -1787
  37. package/.next/server/chunks/280.js +0 -322
  38. package/.next/server/chunks/287.js +0 -58
  39. package/.next/server/chunks/312.js +0 -674
  40. package/.next/server/chunks/336.js +0 -820
  41. package/.next/server/chunks/350.js +0 -142
  42. package/.next/server/chunks/398.js +0 -132
  43. package/.next/server/chunks/401.js +0 -7241
  44. package/.next/server/chunks/431.js +0 -7241
  45. package/.next/server/chunks/502.js +0 -603
  46. package/.next/server/chunks/554.js +0 -264
  47. package/.next/server/chunks/557.js +0 -135
  48. package/.next/server/chunks/576.js +0 -80
  49. package/.next/server/chunks/597.js +0 -169
  50. package/.next/server/chunks/608.js +0 -515
  51. package/.next/server/chunks/664.js +0 -3401
  52. package/.next/server/chunks/676.js +0 -32
  53. package/.next/server/chunks/74.js +0 -2598
  54. package/.next/server/chunks/746.js +0 -249
  55. package/.next/server/chunks/82.js +0 -371
  56. package/.next/server/chunks/854.js +0 -72
  57. package/.next/server/chunks/859.js +0 -959
  58. package/.next/server/chunks/872.js +0 -358
  59. package/.next/server/chunks/886.js +0 -120
  60. package/.next/server/chunks/98.js +0 -124
  61. package/.next/server/chunks/font-manifest.json +0 -1
  62. package/.next/server/font-manifest.json +0 -1
  63. package/.next/server/middleware-build-manifest.js +0 -1
  64. package/.next/server/middleware-manifest.json +0 -6
  65. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  66. package/.next/server/pages/404.js +0 -414
  67. package/.next/server/pages/404.js.nft.json +0 -1
  68. package/.next/server/pages/500.js +0 -384
  69. package/.next/server/pages/500.js.nft.json +0 -1
  70. package/.next/server/pages/[...slug].js +0 -700
  71. package/.next/server/pages/[...slug].js.nft.json +0 -1
  72. package/.next/server/pages/[slug]/p.js +0 -2382
  73. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  74. package/.next/server/pages/_app.js +0 -368
  75. package/.next/server/pages/_app.js.nft.json +0 -1
  76. package/.next/server/pages/_document.js +0 -304
  77. package/.next/server/pages/_document.js.nft.json +0 -1
  78. package/.next/server/pages/_error.js +0 -164
  79. package/.next/server/pages/_error.js.nft.json +0 -1
  80. package/.next/server/pages/account.js +0 -370
  81. package/.next/server/pages/account.js.nft.json +0 -1
  82. package/.next/server/pages/api/graphql.js +0 -315
  83. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  84. package/.next/server/pages/api/preview.js +0 -118
  85. package/.next/server/pages/api/preview.js.nft.json +0 -1
  86. package/.next/server/pages/checkout.js +0 -370
  87. package/.next/server/pages/checkout.js.nft.json +0 -1
  88. package/.next/server/pages/en-US/404.html +0 -81
  89. package/.next/server/pages/en-US/404.json +0 -1
  90. package/.next/server/pages/en-US/500.html +0 -81
  91. package/.next/server/pages/en-US/500.json +0 -1
  92. package/.next/server/pages/en-US/account.html +0 -81
  93. package/.next/server/pages/en-US/account.json +0 -1
  94. package/.next/server/pages/en-US/checkout.html +0 -81
  95. package/.next/server/pages/en-US/checkout.json +0 -1
  96. package/.next/server/pages/en-US/login.html +0 -81
  97. package/.next/server/pages/en-US/login.json +0 -1
  98. package/.next/server/pages/en-US/s.html +0 -81
  99. package/.next/server/pages/en-US/s.json +0 -1
  100. package/.next/server/pages/en-US.html +0 -81
  101. package/.next/server/pages/en-US.json +0 -1
  102. package/.next/server/pages/index.js +0 -580
  103. package/.next/server/pages/index.js.nft.json +0 -1
  104. package/.next/server/pages/login.js +0 -396
  105. package/.next/server/pages/login.js.nft.json +0 -1
  106. package/.next/server/pages/s.js +0 -438
  107. package/.next/server/pages/s.js.nft.json +0 -1
  108. package/.next/server/pages-manifest.json +0 -16
  109. package/.next/server/webpack-api-runtime.js +0 -229
  110. package/.next/server/webpack-runtime.js +0 -229
  111. package/.next/static/E3svUtP3jVTE--NFE5Ka5/_buildManifest.js +0 -1
  112. package/.next/static/E3svUtP3jVTE--NFE5Ka5/_ssgManifest.js +0 -1
  113. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  114. package/.next/static/chunks/170.b45293edb4f089c8.js +0 -1
  115. package/.next/static/chunks/226.b57e10ad9932f88c.js +0 -1
  116. package/.next/static/chunks/336.84e96cd7aa2412bc.js +0 -1
  117. package/.next/static/chunks/495.e6b60941cc3e82e4.js +0 -1
  118. package/.next/static/chunks/533-7ddbc43c0305df0c.js +0 -1
  119. package/.next/static/chunks/54.1d3e6cb43b5b1626.js +0 -1
  120. package/.next/static/chunks/597.d0da2018cc312352.js +0 -1
  121. package/.next/static/chunks/608.59e69b83f35d9c44.js +0 -1
  122. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  123. package/.next/static/chunks/706-abfba2e18f084aed.js +0 -1
  124. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  125. package/.next/static/chunks/832-5460e7c4690723c9.js +0 -1
  126. package/.next/static/chunks/861-d1a326525092ab9c.js +0 -1
  127. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  128. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  129. package/.next/static/chunks/main-9746772201fe3ac1.js +0 -1
  130. package/.next/static/chunks/pages/404-ac22e12eb22b9c50.js +0 -1
  131. package/.next/static/chunks/pages/500-7b708e8b89389d0e.js +0 -1
  132. package/.next/static/chunks/pages/[...slug]-53c0858024f06998.js +0 -1
  133. package/.next/static/chunks/pages/[slug]/p-fdc9d52c82f44e5d.js +0 -1
  134. package/.next/static/chunks/pages/_app-b601536188b9a919.js +0 -1
  135. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  136. package/.next/static/chunks/pages/account-04a0a6c07709c50e.js +0 -1
  137. package/.next/static/chunks/pages/checkout-2ed6b828bb6ed7e6.js +0 -1
  138. package/.next/static/chunks/pages/index-dc845df360bc3a28.js +0 -1
  139. package/.next/static/chunks/pages/login-3bb40d77e6ee120a.js +0 -1
  140. package/.next/static/chunks/pages/s-8fec20c40a2bd7da.js +0 -1
  141. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  142. package/.next/static/chunks/webpack-aff0e2e4ba699b8a.js +0 -1
  143. package/.next/static/css/025f924b9633ecd3.css +0 -1
  144. package/.next/static/css/2253644409b99b98.css +0 -1
  145. package/.next/static/css/364c439adafef5c8.css +0 -1
  146. package/.next/static/css/4b7b7b64ae6afe67.css +0 -1
  147. package/.next/static/css/4e0fc649e912b30f.css +0 -1
  148. package/.next/static/css/501cb58eaa378545.css +0 -1
  149. package/.next/static/css/587c27bbda64e700.css +0 -1
  150. package/.next/static/css/5f1b35b69b2ba1f7.css +0 -1
  151. package/.next/static/css/7a8417de90d11c60.css +0 -1
  152. package/.next/static/css/7df2581c69fe96b4.css +0 -1
  153. package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
  154. package/.next/trace +0 -66
  155. package/public/~partytown/debug/partytown-atomics.js +0 -556
  156. package/public/~partytown/debug/partytown-media.js +0 -374
  157. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  158. package/public/~partytown/debug/partytown-sw.js +0 -59
  159. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  160. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  161. package/public/~partytown/debug/partytown.js +0 -72
  162. package/public/~partytown/partytown-atomics.js +0 -2
  163. package/public/~partytown/partytown-media.js +0 -2
  164. package/public/~partytown/partytown-sw.js +0 -2
  165. package/public/~partytown/partytown.js +0 -2
@@ -1,295 +0,0 @@
1
- exports.id = 104;
2
- exports.ids = [104];
3
- exports.modules = {
4
-
5
- /***/ 4285:
6
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7
-
8
- "use strict";
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
11
- /* harmony export */ });
12
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
13
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14
-
15
- const ProductShelf = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProductShelf({ testId = 'fs-product-shelf', children, ...otherProps }, ref) {
16
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, "data-fs-product-shelf": true, "data-testid": testId, ...otherProps }, children));
17
- });
18
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelf);
19
- //# sourceMappingURL=ProductShelf.js.map
20
-
21
- /***/ }),
22
-
23
- /***/ 1328:
24
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
25
-
26
- "use strict";
27
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
29
- /* harmony export */ });
30
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
31
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
32
-
33
- const ProductShelfItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProductShelfItem({ testId = 'fs-product-shelf-item', children, ...otherProps }, ref) {
34
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", { ref: ref, "data-fs-product-shelf-item": true, "data-testid": testId, ...otherProps }, children));
35
- });
36
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelfItem);
37
- //# sourceMappingURL=ProductShelfItem.js.map
38
-
39
- /***/ }),
40
-
41
- /***/ 5288:
42
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
43
-
44
- "use strict";
45
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
47
- /* harmony export */ });
48
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
49
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
50
-
51
- const ProductShelfItems = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProductShelfItems({ testId = 'fs-product-shelf-items', children, ...otherProps }, ref) {
52
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", { ref: ref, "data-fs-product-shelf-items": true, "data-testid": testId, ...otherProps }, children));
53
- });
54
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelfItems);
55
- //# sourceMappingURL=ProductShelfItems.js.map
56
-
57
- /***/ }),
58
-
59
- /***/ 2321:
60
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
61
-
62
- "use strict";
63
-
64
- // EXPORTS
65
- __webpack_require__.d(__webpack_exports__, {
66
- "z": () => (/* binding */ Components)
67
- });
68
-
69
- // EXTERNAL MODULE: ./src/components/product/ProductCard/index.ts + 4 modules
70
- var ProductCard = __webpack_require__(6475);
71
- ;// CONCATENATED MODULE: ./src/customizations/components/overrides/ProductShelf.tsx
72
- const SECTION = "ProductShelf";
73
- const overrides = {
74
- name: SECTION,
75
- components: {}
76
- };
77
- /* harmony default export */ const ProductShelf = (overrides);
78
- ;// CONCATENATED MODULE: ./src/components/sections/ProductShelf/Overrides.tsx
79
- 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; }
80
-
81
- 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; }
82
-
83
- 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; }
84
-
85
-
86
-
87
-
88
- const Components = _objectSpread({
89
- ProductCard: ProductCard/* default */.Z
90
- }, ProductShelf.components);
91
-
92
-
93
-
94
- /***/ }),
95
-
96
- /***/ 8569:
97
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
98
-
99
- "use strict";
100
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
101
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
102
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
103
- /* harmony export */ });
104
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
105
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
106
- /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9785);
107
- /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__);
108
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4285);
109
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5288);
110
- /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(1328);
111
- /* harmony import */ var src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9201);
112
- /* harmony import */ var src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5184);
113
- /* harmony import */ var src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4867);
114
- /* harmony import */ var _Overrides__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2321);
115
- /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7067);
116
- /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6627);
117
- /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_section_module_scss__WEBPACK_IMPORTED_MODULE_8__);
118
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(997);
119
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__);
120
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__]);
121
- src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
122
- const _excluded = ["title", "withDivisor"];
123
-
124
- 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; }
125
-
126
- 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; }
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
- const {
136
- ProductCard
137
- } = _Overrides__WEBPACK_IMPORTED_MODULE_5__/* .Components */ .z;
138
-
139
-
140
-
141
-
142
-
143
- function ProductShelf(_ref) {
144
- let {
145
- title,
146
- withDivisor = false
147
- } = _ref,
148
- variables = _objectWithoutProperties(_ref, _excluded);
149
-
150
- const viewedOnce = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
151
- const {
152
- ref,
153
- inView
154
- } = (0,react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__.useInView)();
155
- const products = (0,src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__/* .useProductsQuery */ .kN)(variables);
156
- const productEdges = products?.edges ?? [];
157
- const aspectRatio = 1;
158
- const {
159
- sendViewItemListEvent
160
- } = (0,src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_3__/* .useViewItemListEvent */ .m)({
161
- products: productEdges,
162
- title,
163
- page: 0,
164
- pageSize: 0
165
- });
166
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
167
- if (inView && !viewedOnce.current && productEdges.length) {
168
- sendViewItemListEvent();
169
- viewedOnce.current = true;
170
- }
171
- }, [inView, productEdges.length, sendViewItemListEvent]);
172
-
173
- if (products?.edges.length === 0) {
174
- return null;
175
- }
176
-
177
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_Section__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
178
- className: `${(_section_module_scss__WEBPACK_IMPORTED_MODULE_8___default().section)} section-product-shelf layout__section ${withDivisor ? 'section__divisor' : ''}`,
179
- ref: ref,
180
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx("h2", {
181
- className: "text__title-section layout__content",
182
- children: title
183
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
184
- aspectRatio: aspectRatio,
185
- loading: products === undefined,
186
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
187
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
188
- className: "layout__content",
189
- children: productEdges.map((product, idx) => /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
190
- children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(ProductCard, {
191
- product: product.node,
192
- index: idx + 1,
193
- aspectRatio: aspectRatio
194
- })
195
- }, `${product.node.id}`))
196
- })
197
- })
198
- })]
199
- });
200
- }
201
-
202
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelf);
203
- __webpack_async_result__();
204
- } catch(e) { __webpack_async_result__(e); } });
205
-
206
- /***/ }),
207
-
208
- /***/ 7104:
209
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
210
-
211
- "use strict";
212
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
213
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
214
- /* harmony export */ "Z": () => (/* reexport safe */ _ProductShelf__WEBPACK_IMPORTED_MODULE_0__.Z)
215
- /* harmony export */ });
216
- /* harmony import */ var _ProductShelf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8569);
217
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductShelf__WEBPACK_IMPORTED_MODULE_0__]);
218
- _ProductShelf__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
219
-
220
- __webpack_async_result__();
221
- } catch(e) { __webpack_async_result__(e); } });
222
-
223
- /***/ }),
224
-
225
- /***/ 9201:
226
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
227
-
228
- "use strict";
229
-
230
- // EXPORTS
231
- __webpack_require__.d(__webpack_exports__, {
232
- "Z": () => (/* reexport */ ProductShelfSkeleton_ProductShelfSkeleton)
233
- });
234
-
235
- // EXTERNAL MODULE: ../components/dist/organisms/ProductShelf/ProductShelf.js
236
- var ProductShelf = __webpack_require__(4285);
237
- // EXTERNAL MODULE: ../components/dist/organisms/ProductShelf/ProductShelfItems.js
238
- var ProductShelfItems = __webpack_require__(5288);
239
- // EXTERNAL MODULE: ../components/dist/organisms/ProductShelf/ProductShelfItem.js
240
- var ProductShelfItem = __webpack_require__(1328);
241
- // EXTERNAL MODULE: ./src/constants.ts
242
- var constants = __webpack_require__(8459);
243
- // EXTERNAL MODULE: ./src/components/skeletons/ProductCardSkeleton/index.ts + 1 modules
244
- var ProductCardSkeleton = __webpack_require__(3288);
245
- // EXTERNAL MODULE: external "react/jsx-runtime"
246
- var jsx_runtime_ = __webpack_require__(997);
247
- ;// CONCATENATED MODULE: ./src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx
248
-
249
-
250
-
251
-
252
-
253
-
254
- function ProductShelfSkeleton({
255
- children,
256
- aspectRatio,
257
- loading = true
258
- }) {
259
- return loading ? /*#__PURE__*/jsx_runtime_.jsx(ProductShelf/* default */.Z, {
260
- children: /*#__PURE__*/jsx_runtime_.jsx(ProductShelfItems/* default */.Z, {
261
- className: "layout__content",
262
- children: Array.from({
263
- length: constants/* ITEMS_PER_SECTION */.K
264
- }, (_, index) => /*#__PURE__*/jsx_runtime_.jsx(ProductShelfItem/* default */.Z, {
265
- children: /*#__PURE__*/jsx_runtime_.jsx(ProductCardSkeleton/* default */.Z, {
266
- aspectRatio: aspectRatio,
267
- sectioned: true
268
- })
269
- }, String(index)))
270
- })
271
- }) : /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
272
- children: children
273
- });
274
- }
275
-
276
- /* harmony default export */ const ProductShelfSkeleton_ProductShelfSkeleton = (ProductShelfSkeleton);
277
- ;// CONCATENATED MODULE: ./src/components/skeletons/ProductShelfSkeleton/index.ts
278
-
279
-
280
- /***/ }),
281
-
282
- /***/ 6627:
283
- /***/ ((module) => {
284
-
285
- // Exports
286
- module.exports = {
287
- "section": "section_section__C1DoH",
288
- "loading": "section_loading__k5bCF"
289
- };
290
-
291
-
292
- /***/ })
293
-
294
- };
295
- ;