@faststore/core 2.0.121-alpha.0 → 2.0.122-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 (247) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/build-manifest.json +120 -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 +52 -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 +255 -0
  20. package/.next/server/chunks/120.js +435 -0
  21. package/.next/server/chunks/123.js +58 -0
  22. package/.next/server/chunks/143.js +106 -0
  23. package/.next/server/chunks/154.js +206 -0
  24. package/.next/server/chunks/183.js +80 -0
  25. package/.next/server/chunks/247.js +61 -0
  26. package/.next/server/chunks/254.js +159 -0
  27. package/.next/server/chunks/256.js +1787 -0
  28. package/.next/server/chunks/280.js +322 -0
  29. package/.next/server/chunks/287.js +58 -0
  30. package/.next/server/chunks/312.js +674 -0
  31. package/.next/server/chunks/336.js +820 -0
  32. package/.next/server/chunks/350.js +142 -0
  33. package/.next/server/chunks/398.js +132 -0
  34. package/.next/server/chunks/401.js +7241 -0
  35. package/.next/server/chunks/431.js +7241 -0
  36. package/.next/server/chunks/502.js +603 -0
  37. package/.next/server/chunks/554.js +264 -0
  38. package/.next/server/chunks/557.js +135 -0
  39. package/.next/server/chunks/576.js +80 -0
  40. package/.next/server/chunks/597.js +169 -0
  41. package/.next/server/chunks/608.js +515 -0
  42. package/.next/server/chunks/664.js +3401 -0
  43. package/.next/server/chunks/676.js +32 -0
  44. package/.next/server/chunks/74.js +2606 -0
  45. package/.next/server/chunks/746.js +249 -0
  46. package/.next/server/chunks/82.js +371 -0
  47. package/.next/server/chunks/854.js +72 -0
  48. package/.next/server/chunks/859.js +959 -0
  49. package/.next/server/chunks/872.js +358 -0
  50. package/.next/server/chunks/886.js +120 -0
  51. package/.next/server/chunks/98.js +124 -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 +414 -0
  58. package/.next/server/pages/404.js.nft.json +1 -0
  59. package/.next/server/pages/500.js +384 -0
  60. package/.next/server/pages/500.js.nft.json +1 -0
  61. package/.next/server/pages/[...slug].js +700 -0
  62. package/.next/server/pages/[...slug].js.nft.json +1 -0
  63. package/.next/server/pages/[slug]/p.js +2338 -0
  64. package/.next/server/pages/[slug]/p.js.nft.json +1 -0
  65. package/.next/server/pages/_app.js +368 -0
  66. package/.next/server/pages/_app.js.nft.json +1 -0
  67. package/.next/server/pages/_document.js +304 -0
  68. package/.next/server/pages/_document.js.nft.json +1 -0
  69. package/.next/server/pages/_error.js +164 -0
  70. package/.next/server/pages/_error.js.nft.json +1 -0
  71. package/.next/server/pages/account.js +370 -0
  72. package/.next/server/pages/account.js.nft.json +1 -0
  73. package/.next/server/pages/api/graphql.js +315 -0
  74. package/.next/server/pages/api/graphql.js.nft.json +1 -0
  75. package/.next/server/pages/api/preview.js +118 -0
  76. package/.next/server/pages/api/preview.js.nft.json +1 -0
  77. package/.next/server/pages/checkout.js +370 -0
  78. package/.next/server/pages/checkout.js.nft.json +1 -0
  79. package/.next/server/pages/en-US/404.html +81 -0
  80. package/.next/server/pages/en-US/404.json +1 -0
  81. package/.next/server/pages/en-US/500.html +81 -0
  82. package/.next/server/pages/en-US/500.json +1 -0
  83. package/.next/server/pages/en-US/account.html +81 -0
  84. package/.next/server/pages/en-US/account.json +1 -0
  85. package/.next/server/pages/en-US/checkout.html +81 -0
  86. package/.next/server/pages/en-US/checkout.json +1 -0
  87. package/.next/server/pages/en-US/login.html +81 -0
  88. package/.next/server/pages/en-US/login.json +1 -0
  89. package/.next/server/pages/en-US/s.html +81 -0
  90. package/.next/server/pages/en-US/s.json +1 -0
  91. package/.next/server/pages/en-US.html +81 -0
  92. package/.next/server/pages/en-US.json +1 -0
  93. package/.next/server/pages/index.js +580 -0
  94. package/.next/server/pages/index.js.nft.json +1 -0
  95. package/.next/server/pages/login.js +396 -0
  96. package/.next/server/pages/login.js.nft.json +1 -0
  97. package/.next/server/pages/s.js +438 -0
  98. package/.next/server/pages/s.js.nft.json +1 -0
  99. package/.next/server/pages-manifest.json +16 -0
  100. package/.next/server/webpack-api-runtime.js +229 -0
  101. package/.next/server/webpack-runtime.js +229 -0
  102. package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
  103. package/.next/static/chunks/170.b45293edb4f089c8.js +1 -0
  104. package/.next/static/chunks/226.b57e10ad9932f88c.js +1 -0
  105. package/.next/static/chunks/336.84e96cd7aa2412bc.js +1 -0
  106. package/.next/static/chunks/419-274b5b8beee8c7b2.js +1 -0
  107. package/.next/static/chunks/495.e6b60941cc3e82e4.js +1 -0
  108. package/.next/static/chunks/54.1d3e6cb43b5b1626.js +1 -0
  109. package/.next/static/chunks/597.d0da2018cc312352.js +1 -0
  110. package/.next/static/chunks/608.59e69b83f35d9c44.js +1 -0
  111. package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
  112. package/.next/static/chunks/706-abfba2e18f084aed.js +1 -0
  113. package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
  114. package/.next/static/chunks/832-99f4667bdaf092f8.js +1 -0
  115. package/.next/static/chunks/861-d1a326525092ab9c.js +1 -0
  116. package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
  117. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
  118. package/.next/static/chunks/main-9746772201fe3ac1.js +1 -0
  119. package/.next/static/chunks/pages/404-ac22e12eb22b9c50.js +1 -0
  120. package/.next/static/chunks/pages/500-7b708e8b89389d0e.js +1 -0
  121. package/.next/static/chunks/pages/[...slug]-3aaeeabdb9564d0f.js +1 -0
  122. package/.next/static/chunks/pages/[slug]/p-b269ba68926617dd.js +1 -0
  123. package/.next/static/chunks/pages/_app-b601536188b9a919.js +1 -0
  124. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
  125. package/.next/static/chunks/pages/account-04a0a6c07709c50e.js +1 -0
  126. package/.next/static/chunks/pages/checkout-2ed6b828bb6ed7e6.js +1 -0
  127. package/.next/static/chunks/pages/index-c2b6dfd205dc6cc2.js +1 -0
  128. package/.next/static/chunks/pages/login-3bb40d77e6ee120a.js +1 -0
  129. package/.next/static/chunks/pages/s-8fec20c40a2bd7da.js +1 -0
  130. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
  131. package/.next/static/chunks/webpack-426a37879992164d.js +1 -0
  132. package/.next/static/css/025f924b9633ecd3.css +1 -0
  133. package/.next/static/css/2253644409b99b98.css +1 -0
  134. package/.next/static/css/364c439adafef5c8.css +1 -0
  135. package/.next/static/css/4b7b7b64ae6afe67.css +1 -0
  136. package/.next/static/css/4e0fc649e912b30f.css +1 -0
  137. package/.next/static/css/501cb58eaa378545.css +1 -0
  138. package/.next/static/css/587c27bbda64e700.css +1 -0
  139. package/.next/static/css/5f1b35b69b2ba1f7.css +1 -0
  140. package/.next/static/css/7a8417de90d11c60.css +1 -0
  141. package/.next/static/css/7df2581c69fe96b4.css +1 -0
  142. package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
  143. package/.next/static/z81uKE37lBbYBn8W-39Mb/_buildManifest.js +1 -0
  144. package/.next/static/z81uKE37lBbYBn8W-39Mb/_ssgManifest.js +1 -0
  145. package/.next/trace +65 -0
  146. package/.turbo/turbo-build.log +15 -16
  147. package/CHANGELOG.md +6 -0
  148. package/package.json +4 -4
  149. package/public/~partytown/debug/partytown-atomics.js +556 -0
  150. package/public/~partytown/debug/partytown-media.js +374 -0
  151. package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
  152. package/public/~partytown/debug/partytown-sw.js +59 -0
  153. package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
  154. package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
  155. package/public/~partytown/debug/partytown.js +72 -0
  156. package/public/~partytown/partytown-atomics.js +2 -0
  157. package/public/~partytown/partytown-media.js +2 -0
  158. package/public/~partytown/partytown-sw.js +2 -0
  159. package/public/~partytown/partytown.js +2 -0
  160. package/src/components/cart/CartSidebar/CartSidebar.tsx +6 -2
  161. package/src/components/cart/CartSidebar/section.module.scss +21 -0
  162. package/src/components/cms/GlobalSections.tsx +6 -6
  163. package/src/components/common/Alert/Alert.tsx +8 -3
  164. package/src/components/common/Alert/section.module.scss +9 -0
  165. package/src/components/common/Footer/Footer.tsx +87 -89
  166. package/src/components/common/Footer/FooterLinks.tsx +4 -6
  167. package/src/components/common/Footer/section.module.scss +12 -0
  168. package/src/components/common/RegionBar/RegionBar.tsx +17 -0
  169. package/src/components/common/RegionBar/index.ts +1 -0
  170. package/src/components/common/RegionBar/section.module.scss +8 -0
  171. package/src/components/navigation/Navbar/Navbar.tsx +62 -61
  172. package/src/components/navigation/Navbar/section.module.scss +26 -0
  173. package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +0 -1
  174. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +11 -7
  175. package/src/components/navigation/NavbarSlider/section.module.scss +26 -0
  176. package/src/components/product/ProductGrid/ProductGrid.tsx +2 -4
  177. package/src/components/region/RegionModal/RegionModal.tsx +6 -1
  178. package/src/components/region/RegionModal/section.module.scss +13 -0
  179. package/src/components/search/Filter/Filter.tsx +6 -3
  180. package/src/components/search/Filter/FilterSlider.tsx +5 -0
  181. package/src/components/search/Filter/section.module.scss +22 -0
  182. package/src/components/sections/BannerNewsletter/BannerNewsletter.tsx +5 -3
  183. package/src/components/sections/BannerNewsletter/section.module.scss +8 -0
  184. package/src/components/sections/BannerText/BannerText.tsx +4 -2
  185. package/src/components/sections/BannerText/section.module.scss +8 -0
  186. package/src/components/sections/Breadcrumb/Breadcrumb.tsx +4 -2
  187. package/src/components/sections/Breadcrumb/section.module.scss +9 -0
  188. package/src/components/sections/Hero/Hero.tsx +5 -9
  189. package/src/components/sections/Hero/section.module.scss +9 -0
  190. package/src/components/sections/{Incentives → IncentivesHeader}/IncentivesHeader.tsx +3 -2
  191. package/src/components/sections/IncentivesHeader/index.ts +1 -0
  192. package/src/components/sections/IncentivesHeader/section.module.scss +8 -0
  193. package/src/components/sections/Newsletter/Newsletter.tsx +68 -69
  194. package/src/components/sections/Newsletter/section.module.scss +11 -0
  195. package/src/components/sections/ProducDetailsContent/ProductDetailsContent.tsx +2 -4
  196. package/src/components/sections/ProductDetails/ProductDetails.tsx +44 -43
  197. package/src/components/sections/ProductDetails/section.module.scss +27 -0
  198. package/src/components/sections/ProductGallery/ProductGallery.tsx +121 -119
  199. package/src/components/sections/ProductGallery/section.module.scss +28 -0
  200. package/src/components/sections/ProductShelf/ProductShelf.tsx +8 -4
  201. package/src/components/sections/ProductShelf/section.module.scss +17 -0
  202. package/src/components/sections/ProductTiles/ProductTiles.tsx +9 -4
  203. package/src/components/sections/ProductTiles/section.module.scss +17 -0
  204. package/src/components/sections/ScrollToTopButton/ScrollToTopButton.tsx +3 -3
  205. package/src/components/sections/ScrollToTopButton/section.module.scss +11 -0
  206. package/src/components/skeletons/FilterSkeleton/FilterSkeleton.tsx +1 -2
  207. package/src/components/skeletons/ProductCardSkeleton/ProductCardSkeleton.tsx +0 -3
  208. package/src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx +2 -2
  209. package/src/components/skeletons/ProductTilesSkeleton/ProductTileSkeleton/ProductTileSkeleton.tsx +0 -3
  210. package/src/components/ui/BannerText/BannerText.tsx +0 -3
  211. package/src/components/ui/Button/ButtonSignIn/ButtonSignIn.tsx +1 -2
  212. package/src/components/{sections → ui}/Incentives/Incentives.tsx +0 -3
  213. package/src/components/ui/Incentives/incentivesMock.ts +27 -0
  214. package/src/components/ui/Logo/Logo.tsx +1 -10
  215. package/src/components/ui/Tiles/Tiles.tsx +1 -6
  216. package/src/pages/[slug]/p.tsx +1 -1
  217. package/src/pages/_app.tsx +2 -2
  218. package/src/pages/index.tsx +2 -2
  219. package/src/styles/global/components.scss +8 -0
  220. package/src/styles/themes/midnight.scss +1 -1
  221. package/src/components/common/Footer/Footer.stories.mdx +0 -158
  222. package/src/components/common/Footer/footer.module.scss +0 -220
  223. package/src/components/sections/BannerNewsletter/banner-newsletter.module.scss +0 -23
  224. package/src/components/sections/Incentives/Incentives.stories.mdx +0 -159
  225. package/src/components/sections/Incentives/IncentivesFooter.tsx +0 -8
  226. package/src/components/sections/Incentives/incentives.module.scss +0 -122
  227. package/src/components/sections/Incentives/incentivesMock.ts +0 -55
  228. package/src/components/sections/Newsletter/Newsletter.stories.mdx +0 -139
  229. package/src/components/sections/Newsletter/newsletter.module.scss +0 -135
  230. package/src/components/sections/ProductDetails/product-details.module.scss +0 -185
  231. package/src/components/sections/ProductGallery/product-gallery.module.scss +0 -184
  232. package/src/components/sections/ScrollToTopButton/scroll-to-top-button.module.scss +0 -12
  233. package/src/components/skeletons/FilterSkeleton/FilterSkeleton.stories.mdx +0 -97
  234. package/src/components/skeletons/FilterSkeleton/filter-skeleton.module.scss +0 -51
  235. package/src/components/skeletons/ProductCardSkeleton/ProductCardSkeleton.stories.mdx +0 -113
  236. package/src/components/skeletons/ProductCardSkeleton/product-card-skeleton.module.scss +0 -58
  237. package/src/components/skeletons/ProductTilesSkeleton/ProductTileSkeleton/product-tile-skeleton.module.scss +0 -81
  238. package/src/components/ui/BannerText/BannerText.stories.mdx +0 -270
  239. package/src/components/ui/BannerText/banner-text.module.scss +0 -127
  240. package/src/components/ui/Button/Button.stories.mdx +0 -643
  241. package/src/components/ui/Button/button.module.scss +0 -11
  242. package/src/components/ui/Carousel/Carousel.stories.mdx +0 -201
  243. package/src/components/ui/Carousel/carousel.module.scss +0 -147
  244. package/src/components/ui/Logo/logo.module.scss +0 -12
  245. package/src/components/ui/Tiles/Tiles.stories.mdx +0 -151
  246. package/src/components/ui/Tiles/tiles.module.scss +0 -58
  247. /package/src/components/{sections → ui}/Incentives/index.ts +0 -0
@@ -0,0 +1,358 @@
1
+ exports.id = 872;
2
+ exports.ids = [872];
3
+ exports.modules = {
4
+
5
+ /***/ 2834:
6
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
7
+
8
+ "use strict";
9
+ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
12
+ /* harmony export */ });
13
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
14
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15
+ /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9785);
16
+ /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__);
17
+ /* harmony import */ var src_components_product_ProductCard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6475);
18
+ /* harmony import */ var src_components_skeletons_ProductTilesSkeleton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(638);
19
+ /* harmony import */ var src_components_ui_Tiles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5534);
20
+ /* harmony import */ var src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5184);
21
+ /* harmony import */ var src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4867);
22
+ /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7067);
23
+ /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2366);
24
+ /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_section_module_scss__WEBPACK_IMPORTED_MODULE_9__);
25
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(997);
26
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__);
27
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_6__]);
28
+ src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_6__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
29
+ const _excluded = ["title"];
30
+
31
+ 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; }
32
+
33
+ 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; }
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ const NUMBER_ITEMS_TO_EXPAND_FIRST = 3;
47
+ const NUMBER_ITEMS_TO_EXPAND_FIRST_TWO = 2;
48
+
49
+ const getRatio = (products, idx) => {
50
+ const expandsFirstTile = products === NUMBER_ITEMS_TO_EXPAND_FIRST && idx === 0;
51
+ const expandsFirstTwoTile = products === NUMBER_ITEMS_TO_EXPAND_FIRST_TWO && (idx === 0 || idx === 1);
52
+
53
+ if (expandsFirstTile || expandsFirstTwoTile) {
54
+ return 5 / 3;
55
+ }
56
+
57
+ return 3 / 4;
58
+ };
59
+
60
+ const ProductTiles = _ref => {
61
+ let {
62
+ title
63
+ } = _ref,
64
+ variables = _objectWithoutProperties(_ref, _excluded);
65
+
66
+ const viewedOnce = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
67
+ const {
68
+ ref,
69
+ inView
70
+ } = (0,react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__.useInView)();
71
+ const products = (0,src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_6__/* .useProductsQuery */ .kN)(variables);
72
+ const productEdges = products?.edges ?? [];
73
+ const {
74
+ sendViewItemListEvent
75
+ } = (0,src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_5__/* .useViewItemListEvent */ .m)({
76
+ products: productEdges,
77
+ title,
78
+ page: 0,
79
+ pageSize: 0
80
+ });
81
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
82
+ if (inView && !viewedOnce.current && productEdges.length) {
83
+ sendViewItemListEvent();
84
+ viewedOnce.current = true;
85
+ }
86
+ }, [inView, productEdges.length, sendViewItemListEvent]);
87
+
88
+ if (products?.edges.length === 0) {
89
+ return null;
90
+ }
91
+
92
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_Section__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
93
+ className: `${(_section_module_scss__WEBPACK_IMPORTED_MODULE_9___default().section)} section-product-tiles layout__section layout__content`,
94
+ ref: ref,
95
+ children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx("h2", {
96
+ className: "text__title-section",
97
+ children: title
98
+ }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx("div", {
99
+ children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(src_components_skeletons_ProductTilesSkeleton__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
100
+ loading: !products,
101
+ children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(src_components_ui_Tiles__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
102
+ children: productEdges.map((product, idx) => /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(src_components_ui_Tiles__WEBPACK_IMPORTED_MODULE_4__/* .Tile */ .n, {
103
+ children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(src_components_product_ProductCard__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
104
+ "data-testid": "tile-card",
105
+ product: product.node,
106
+ index: idx + 1,
107
+ variant: "wide",
108
+ aspectRatio: getRatio(productEdges.length, idx)
109
+ })
110
+ }, product.node.id))
111
+ })
112
+ })
113
+ })]
114
+ });
115
+ };
116
+
117
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductTiles);
118
+ __webpack_async_result__();
119
+ } catch(e) { __webpack_async_result__(e); } });
120
+
121
+ /***/ }),
122
+
123
+ /***/ 8872:
124
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
125
+
126
+ "use strict";
127
+ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
128
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
129
+ /* harmony export */ "Z": () => (/* reexport safe */ _ProductTiles__WEBPACK_IMPORTED_MODULE_0__.Z)
130
+ /* harmony export */ });
131
+ /* harmony import */ var _ProductTiles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2834);
132
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductTiles__WEBPACK_IMPORTED_MODULE_0__]);
133
+ _ProductTiles__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
134
+
135
+ __webpack_async_result__();
136
+ } catch(e) { __webpack_async_result__(e); } });
137
+
138
+ /***/ }),
139
+
140
+ /***/ 638:
141
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
142
+
143
+ "use strict";
144
+
145
+ // EXPORTS
146
+ __webpack_require__.d(__webpack_exports__, {
147
+ "s": () => (/* reexport */ ProductTileSkeleton_ProductTileSkeleton),
148
+ "Z": () => (/* reexport */ ProductTilesSkeleton_ProductTilesSkeleton)
149
+ });
150
+
151
+ // EXTERNAL MODULE: ./src/components/ui/Tiles/index.ts + 3 modules
152
+ var Tiles = __webpack_require__(5534);
153
+ // EXTERNAL MODULE: external "react/jsx-runtime"
154
+ var jsx_runtime_ = __webpack_require__(997);
155
+ ;// CONCATENATED MODULE: ./src/components/skeletons/ProductTilesSkeleton/ProductTilesSkeleton.tsx
156
+
157
+ // TODO: // Replace it when items number become dynamically defined
158
+
159
+
160
+
161
+ const DEFAULT_ITEMS_NUMBER = 3;
162
+ const DEFAULT_ITEMS_NUMBER_TWO = 2;
163
+
164
+ const getRatio = (products, idx) => {
165
+ const expandsFirstTile = products === DEFAULT_ITEMS_NUMBER && idx === 0;
166
+ const expandsFirstTwoTile = products === DEFAULT_ITEMS_NUMBER_TWO && (idx === 0 || idx === 1);
167
+
168
+ if (expandsFirstTile || expandsFirstTwoTile) {
169
+ return 5 / 3;
170
+ }
171
+
172
+ return 3 / 4;
173
+ };
174
+
175
+ function ProductTilesSkeleton({
176
+ children,
177
+ loading = true
178
+ }) {
179
+ return loading ? /*#__PURE__*/jsx_runtime_.jsx(Tiles/* default */.Z, {
180
+ children: Array.from({
181
+ length: DEFAULT_ITEMS_NUMBER
182
+ }, (_, index) => /*#__PURE__*/jsx_runtime_.jsx(Tiles/* Tile */.n, {
183
+ children: /*#__PURE__*/jsx_runtime_.jsx(ProductTileSkeleton_ProductTileSkeleton, {
184
+ index: index + 1,
185
+ aspectRatio: getRatio(DEFAULT_ITEMS_NUMBER, index)
186
+ })
187
+ }, String(index)))
188
+ }) : /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
189
+ children: children
190
+ });
191
+ }
192
+
193
+ /* harmony default export */ const ProductTilesSkeleton_ProductTilesSkeleton = (ProductTilesSkeleton);
194
+ // EXTERNAL MODULE: ../components/dist/atoms/Skeleton/Skeleton.js
195
+ var Skeleton = __webpack_require__(2928);
196
+ ;// CONCATENATED MODULE: ./src/components/skeletons/ProductTilesSkeleton/ProductTileSkeleton/ProductTileSkeleton.tsx
197
+
198
+
199
+
200
+
201
+ function ProductTileSkeleton({
202
+ index,
203
+ aspectRatio = 1
204
+ }) {
205
+ return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
206
+ "data-fs-product-tile-skeleton": true,
207
+ "data-fs-product-tile-skeleton-index": index,
208
+ children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
209
+ "data-fs-product-tile-skeleton-image": true,
210
+ "data-fs-product-tile-skeleton-index": index,
211
+ style: {
212
+ '--fs-product-tile-skeleton-image-aspect-ratio': aspectRatio
213
+ },
214
+ children: /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
215
+ size: {
216
+ width: 'auto',
217
+ height: '100%'
218
+ },
219
+ loading: true
220
+ })
221
+ }), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
222
+ "data-fs-product-tile-skeleton-content": true,
223
+ "data-fs-product-tile-skeleton-index": index,
224
+ children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
225
+ "data-fs-product-tile-skeleton-heading": true,
226
+ children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
227
+ "data-fs-product-tile-skeleton-text": true,
228
+ "data-fs-product-tile-skeleton-index": index,
229
+ children: /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
230
+ size: {
231
+ width: '70%',
232
+ height: '1.5rem'
233
+ }
234
+ })
235
+ }), /*#__PURE__*/jsx_runtime_.jsx("div", {
236
+ "data-fs-product-tile-skeleton-price": true,
237
+ children: /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
238
+ size: {
239
+ width: '60%',
240
+ height: '1.5rem'
241
+ }
242
+ })
243
+ })]
244
+ }), /*#__PURE__*/jsx_runtime_.jsx("div", {
245
+ "data-fs-product-tile-skeleton-badge": true,
246
+ "data-fs-product-tile-skeleton-index": index,
247
+ children: /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
248
+ size: {
249
+ width: '6rem',
250
+ height: '2rem'
251
+ },
252
+ border: "pill"
253
+ })
254
+ })]
255
+ })]
256
+ });
257
+ }
258
+
259
+ /* harmony default export */ const ProductTileSkeleton_ProductTileSkeleton = (ProductTileSkeleton);
260
+ ;// CONCATENATED MODULE: ./src/components/skeletons/ProductTilesSkeleton/ProductTileSkeleton/index.ts
261
+
262
+ ;// CONCATENATED MODULE: ./src/components/skeletons/ProductTilesSkeleton/index.ts
263
+
264
+
265
+
266
+ /***/ }),
267
+
268
+ /***/ 5534:
269
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
270
+
271
+ "use strict";
272
+
273
+ // EXPORTS
274
+ __webpack_require__.d(__webpack_exports__, {
275
+ "n": () => (/* reexport */ Tiles_Tile),
276
+ "Z": () => (/* reexport */ ui_Tiles_Tiles)
277
+ });
278
+
279
+ // EXTERNAL MODULE: external "react"
280
+ var external_react_ = __webpack_require__(6689);
281
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
282
+ ;// CONCATENATED MODULE: ../ui/dist/components/organisms/Tiles/Tiles.js
283
+
284
+
285
+ const MIN_CHILDREN = 2;
286
+ const MAX_CHILDREN = 4;
287
+ const NUMBER_ITEMS_TO_EXPAND_FIRST_TWO = 2;
288
+ const NUMBER_ITEMS_TO_EXPAND_FIRST = 3;
289
+ const Tiles = (0,external_react_.forwardRef)(function Tiles({ testId = 'store-tiles', children, ...otherProps }, ref) {
290
+ const childrenCount = external_react_.Children.count(children);
291
+ if (false) {}
292
+ if (false) {}
293
+ const expandedClass = childrenCount === NUMBER_ITEMS_TO_EXPAND_FIRST
294
+ ? 'expanded-first'
295
+ : childrenCount === NUMBER_ITEMS_TO_EXPAND_FIRST_TWO
296
+ ? 'expanded-first-two'
297
+ : '';
298
+ return (external_react_default().createElement("ul", { ref: ref, "data-fs-tiles": true, "data-fs-tiles-variant": expandedClass, "data-testid": testId, ...otherProps }, children));
299
+ });
300
+ /* harmony default export */ const Tiles_Tiles = (Tiles);
301
+ //# sourceMappingURL=Tiles.js.map
302
+ // EXTERNAL MODULE: external "react/jsx-runtime"
303
+ var jsx_runtime_ = __webpack_require__(997);
304
+ ;// CONCATENATED MODULE: ./src/components/ui/Tiles/Tiles.tsx
305
+ const _excluded = ["children"];
306
+
307
+ 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; }
308
+
309
+ 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; }
310
+
311
+ 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; }
312
+
313
+ 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; }
314
+
315
+ 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; }
316
+
317
+
318
+
319
+
320
+ const Tiles_Tiles_Tiles = _ref => {
321
+ let {
322
+ children
323
+ } = _ref,
324
+ otherProps = _objectWithoutProperties(_ref, _excluded);
325
+
326
+ return /*#__PURE__*/jsx_runtime_.jsx(Tiles_Tiles, _objectSpread(_objectSpread({}, otherProps), {}, {
327
+ children: children
328
+ }));
329
+ };
330
+
331
+ /* harmony default export */ const ui_Tiles_Tiles = (Tiles_Tiles_Tiles);
332
+ ;// CONCATENATED MODULE: ../ui/dist/components/organisms/Tiles/Tile.js
333
+
334
+ const Tile = (0,external_react_.forwardRef)(function Tile({ testId = 'store-tile', children, ...otherProps }, ref) {
335
+ return (external_react_default().createElement("li", { ref: ref, "data-fs-tile": true, "data-testid": testId, ...otherProps }, children));
336
+ });
337
+ /* harmony default export */ const Tiles_Tile = (Tile);
338
+ //# sourceMappingURL=Tile.js.map
339
+ ;// CONCATENATED MODULE: ./src/components/ui/Tiles/index.ts
340
+
341
+
342
+
343
+ /***/ }),
344
+
345
+ /***/ 2366:
346
+ /***/ ((module) => {
347
+
348
+ // Exports
349
+ module.exports = {
350
+ "section": "section_section__hGuvG",
351
+ "loading": "section_loading__GpWrl"
352
+ };
353
+
354
+
355
+ /***/ })
356
+
357
+ };
358
+ ;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ exports.id = 886;
3
+ exports.ids = [886];
4
+ exports.modules = {
5
+
6
+ /***/ 395:
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
+ /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__),
11
+ /* harmony export */ "l": () => (/* binding */ useUI)
12
+ /* harmony export */ });
13
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
14
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15
+
16
+ const reducer = (state, action) => {
17
+ const { type } = action;
18
+ switch (type) {
19
+ case 'open': {
20
+ const { payload } = action;
21
+ document.body.classList.add('no-scroll');
22
+ return {
23
+ ...state,
24
+ [payload]: true,
25
+ };
26
+ }
27
+ case 'close': {
28
+ const { payload } = action;
29
+ document.body.classList.remove('no-scroll');
30
+ return {
31
+ ...state,
32
+ [payload]: false,
33
+ };
34
+ }
35
+ case 'pushToast': {
36
+ return {
37
+ ...state,
38
+ toasts: [...state.toasts, action.payload],
39
+ };
40
+ }
41
+ case 'popToast': {
42
+ return {
43
+ ...state,
44
+ toasts: state.toasts.slice(1),
45
+ };
46
+ }
47
+ default:
48
+ throw new Error(`Action ${type} not implemented`);
49
+ }
50
+ };
51
+ const initializer = () => ({
52
+ cart: false,
53
+ modal: false,
54
+ navbar: false,
55
+ filter: false,
56
+ toasts: [],
57
+ });
58
+ const UIContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(undefined);
59
+ function UIProvider({ children }) {
60
+ const [ui, dispatch] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(reducer, undefined, initializer);
61
+ const callbacks = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => ({
62
+ openFilter: () => dispatch({ type: 'open', payload: 'filter' }),
63
+ closeFilter: () => dispatch({ type: 'close', payload: 'filter' }),
64
+ openNavbar: () => dispatch({ type: 'open', payload: 'navbar' }),
65
+ closeNavbar: () => dispatch({ type: 'close', payload: 'navbar' }),
66
+ openCart: () => dispatch({ type: 'open', payload: 'cart' }),
67
+ closeCart: () => dispatch({ type: 'close', payload: 'cart' }),
68
+ openModal: () => dispatch({ type: 'open', payload: 'modal' }),
69
+ closeModal: () => dispatch({ type: 'close', payload: 'modal' }),
70
+ pushToast: (toast) => dispatch({ type: 'pushToast', payload: toast }),
71
+ popToast: () => dispatch({ type: 'popToast' }),
72
+ }), []);
73
+ const value = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => ({
74
+ ...ui,
75
+ ...callbacks,
76
+ }), [callbacks, ui]);
77
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(UIContext.Provider, { value: value }, children);
78
+ }
79
+ function useUI() {
80
+ const context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(UIContext);
81
+ if (context === undefined) {
82
+ throw new Error('Missing UI context on React tree');
83
+ }
84
+ return context;
85
+ }
86
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UIProvider);
87
+ //# sourceMappingURL=UIProvider.js.map
88
+
89
+ /***/ }),
90
+
91
+ /***/ 4950:
92
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
93
+
94
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
95
+ /* harmony export */ "Wg": () => (/* binding */ unwrap),
96
+ /* harmony export */ "re": () => (/* binding */ wrap),
97
+ /* harmony export */ "vi": () => (/* binding */ ANALYTICS_EVENT_TYPE)
98
+ /* harmony export */ });
99
+ /* unused harmony export STORE_EVENT_PREFIX */
100
+ const STORE_EVENT_PREFIX = 'store:';
101
+ const ANALYTICS_EVENT_TYPE = 'AnalyticsEvent';
102
+ const wrap = (event) => ({
103
+ name: ANALYTICS_EVENT_TYPE,
104
+ params: {
105
+ ...event,
106
+ name: `${STORE_EVENT_PREFIX}${event.name}`,
107
+ },
108
+ });
109
+ const unwrap = (event) => {
110
+ return {
111
+ ...event.params,
112
+ name: event.params.name.slice(STORE_EVENT_PREFIX.length, event.params.name.length),
113
+ };
114
+ };
115
+ //# sourceMappingURL=wrap.js.map
116
+
117
+ /***/ })
118
+
119
+ };
120
+ ;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ exports.id = 98;
3
+ exports.ids = [98,143];
4
+ exports.modules = {
5
+
6
+ /***/ 3664:
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "default": () => (/* binding */ sendEvent)
12
+ /* harmony export */ });
13
+ /* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9143);
14
+
15
+ function sendEvent(event) {
16
+ // VTEX RC
17
+ window?.sendrc?.(event.name, event.params); // VTEX Intelligent Search
18
+
19
+ (0,_search__WEBPACK_IMPORTED_MODULE_0__["default"])(event);
20
+ }
21
+
22
+ /***/ }),
23
+
24
+ /***/ 9143:
25
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26
+
27
+ __webpack_require__.r(__webpack_exports__);
28
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
30
+ /* harmony export */ });
31
+ /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7183);
32
+ /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_0__);
33
+ 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; }
34
+
35
+ 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; }
36
+
37
+ 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; }
38
+
39
+ /**
40
+ * More info at: https://www.notion.so/vtexhandbook/Event-API-Documentation-48eee26730cf4d7f80f8fd7262231f84
41
+ */
42
+
43
+ const THIRTY_MINUTES_S = 30 * 60;
44
+ const ONE_YEAR_S = 365 * 24 * 3600;
45
+
46
+ const randomUUID = () => typeof crypto.randomUUID === 'function' ? crypto.randomUUID() : (Math.random() * 1e6).toFixed(0);
47
+
48
+ const createStorage = (key, expiresSecond) => {
49
+ const timelapsed = past => (Date.now() - past) / 1e3;
50
+
51
+ return () => {
52
+ const item = JSON.parse(localStorage.getItem(key) ?? 'null');
53
+ const isExpired = !item || timelapsed(item.createdAt) > expiresSecond;
54
+ const payload = isExpired ? randomUUID() : item.payload;
55
+
56
+ if (isExpired) {
57
+ const data = {
58
+ payload,
59
+ createdAt: Date.now()
60
+ };
61
+ localStorage.setItem(key, JSON.stringify(data));
62
+ }
63
+
64
+ return payload;
65
+ };
66
+ };
67
+
68
+ const user = {
69
+ anonymous: createStorage('vtex.search.anonymous', ONE_YEAR_S),
70
+ session: createStorage('vtex.search.session', THIRTY_MINUTES_S)
71
+ };
72
+
73
+ const sendEvent = options => fetch(`https://sp.vtex.com/event-api/v1/${(_faststore_config__WEBPACK_IMPORTED_MODULE_0___default().api.storeId)}/event`, {
74
+ method: 'POST',
75
+ body: JSON.stringify(_objectSpread(_objectSpread({}, options), {}, {
76
+ userAgent: navigator.userAgent,
77
+ anonymous: user.anonymous(),
78
+ session: user.session()
79
+ })),
80
+ headers: {
81
+ 'content-type': 'application/json'
82
+ }
83
+ });
84
+
85
+ const isFullTextSearch = url => typeof url.searchParams.get('q') === 'string' && /^\/s(\/)?$/g.test(url.pathname);
86
+
87
+ const handleEvent = event => {
88
+ if (event.name !== 'search_select_item') {
89
+ return;
90
+ }
91
+
92
+ const url = new URL(event.params.url);
93
+
94
+ if (!isFullTextSearch(url)) {
95
+ return;
96
+ }
97
+
98
+ for (const item of event.params.items ?? []) {
99
+ const productId = item.item_id ?? item.item_variant;
100
+ const position = item.index;
101
+
102
+ if (productId && position) {
103
+ sendEvent({
104
+ type: 'search.click',
105
+ productId,
106
+ position,
107
+ url: url.href,
108
+ text: url.searchParams.get('q') ?? '<empty>'
109
+ });
110
+ }
111
+ }
112
+ };
113
+
114
+ setInterval(() => sendEvent({
115
+ type: 'session.ping'
116
+ }), 60 * 1e3
117
+ /* One minute */
118
+ );
119
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (handleEvent);
120
+
121
+ /***/ })
122
+
123
+ };
124
+ ;
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/z81uKE37lBbYBn8W-39Mb/_buildManifest.js","static/z81uKE37lBbYBn8W-39Mb/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/css/7df2581c69fe96b4.css","static/chunks/419-274b5b8beee8c7b2.js","static/css/7a8417de90d11c60.css","static/chunks/pages/index-c2b6dfd205dc6cc2.js"],"/404":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/chunks/pages/404-ac22e12eb22b9c50.js"],"/500":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/chunks/pages/500-7b708e8b89389d0e.js"],"/[...slug]":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/css/2253644409b99b98.css","static/chunks/706-abfba2e18f084aed.js","static/css/4e0fc649e912b30f.css","static/chunks/pages/[...slug]-3aaeeabdb9564d0f.js"],"/[slug]/p":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/css/7df2581c69fe96b4.css","static/chunks/419-274b5b8beee8c7b2.js","static/css/4b7b7b64ae6afe67.css","static/chunks/pages/[slug]/p-b269ba68926617dd.js"],"/_app":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/css/587c27bbda64e700.css","static/chunks/pages/_app-b601536188b9a919.js"],"/_error":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/pages/_error-a7a0c1d9bfbb4f38.js"],"/account":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/chunks/pages/account-04a0a6c07709c50e.js"],"/checkout":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/chunks/pages/checkout-2ed6b828bb6ed7e6.js"],"/login":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/chunks/pages/login-3bb40d77e6ee120a.js"],"/s":["static/chunks/webpack-426a37879992164d.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/861-d1a326525092ab9c.js","static/css/364c439adafef5c8.css","static/chunks/832-99f4667bdaf092f8.js","static/css/2253644409b99b98.css","static/chunks/706-abfba2e18f084aed.js","static/chunks/pages/s-8fec20c40a2bd7da.js"]},ampFirstPages:[]};
@@ -0,0 +1,6 @@
1
+ {
2
+ "sortedMiddleware": [],
3
+ "middleware": {},
4
+ "functions": {},
5
+ "version": 2
6
+ }
@@ -0,0 +1 @@
1
+ self.__REACT_LOADABLE_MANIFEST={"../../node_modules/next/dist/client/index.js -> ../pages/_app":{id:2741,files:["static/chunks/741.52f7fb873418346f.js"]},"../../node_modules/next/dist/client/index.js -> ../pages/_error":{id:9651,files:["static/chunks/651.7142f31ce1e052b3.js"]},"../Layout.tsx -> src/components/cart/CartSidebar":{id:2502,files:["static/chunks/608.59e69b83f35d9c44.js","static/chunks/226.b57e10ad9932f88c.js","static/chunks/336.84e96cd7aa2412bc.js","static/css/025f924b9633ecd3.css","static/chunks/54.1d3e6cb43b5b1626.js"]},"../Layout.tsx -> src/components/region/RegionModal":{id:1597,files:["static/chunks/226.b57e10ad9932f88c.js","static/chunks/336.84e96cd7aa2412bc.js","static/css/5f1b35b69b2ba1f7.css","static/chunks/597.d0da2018cc312352.js"]},"../components/search/Filter/Filter.tsx -> ./FilterSlider":{id:4256,files:[]},"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown":{id:495,files:["static/chunks/608.59e69b83f35d9c44.js","static/chunks/495.e6b60941cc3e82e4.js"]},"../components/sections/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage":{id:9170,files:["static/chunks/608.59e69b83f35d9c44.js","static/css/501cb58eaa378545.css","static/chunks/170.b45293edb4f089c8.js"]}};