@faststore/core 2.0.128-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 (161) hide show
  1. package/.turbo/turbo-build.log +0 -12
  2. package/CHANGELOG.md +6 -0
  3. package/package.json +2 -2
  4. package/src/components/cms/GlobalSections.tsx +1 -2
  5. package/.next/BUILD_ID +0 -1
  6. package/.next/build-manifest.json +0 -123
  7. package/.next/cache/.tsbuildinfo +0 -1
  8. package/.next/cache/config.json +0 -7
  9. package/.next/cache/eslint/.cache_1gneedd +0 -1
  10. package/.next/cache/next-server.js.nft.json +0 -1
  11. package/.next/cache/webpack/client-production/0.pack +0 -0
  12. package/.next/cache/webpack/client-production/index.pack +0 -0
  13. package/.next/cache/webpack/server-production/0.pack +0 -0
  14. package/.next/cache/webpack/server-production/index.pack +0 -0
  15. package/.next/export-marker.json +0 -1
  16. package/.next/images-manifest.json +0 -1
  17. package/.next/next-server.js.nft.json +0 -1
  18. package/.next/package.json +0 -1
  19. package/.next/prerender-manifest.json +0 -1
  20. package/.next/react-loadable-manifest.json +0 -52
  21. package/.next/required-server-files.json +0 -1
  22. package/.next/routes-manifest.json +0 -1
  23. package/.next/server/chunks/104.js +0 -673
  24. package/.next/server/chunks/120.js +0 -435
  25. package/.next/server/chunks/123.js +0 -58
  26. package/.next/server/chunks/143.js +0 -106
  27. package/.next/server/chunks/154.js +0 -206
  28. package/.next/server/chunks/183.js +0 -80
  29. package/.next/server/chunks/247.js +0 -61
  30. package/.next/server/chunks/254.js +0 -159
  31. package/.next/server/chunks/256.js +0 -1787
  32. package/.next/server/chunks/280.js +0 -322
  33. package/.next/server/chunks/287.js +0 -58
  34. package/.next/server/chunks/312.js +0 -674
  35. package/.next/server/chunks/336.js +0 -820
  36. package/.next/server/chunks/350.js +0 -142
  37. package/.next/server/chunks/398.js +0 -132
  38. package/.next/server/chunks/401.js +0 -7241
  39. package/.next/server/chunks/431.js +0 -7241
  40. package/.next/server/chunks/502.js +0 -603
  41. package/.next/server/chunks/554.js +0 -264
  42. package/.next/server/chunks/557.js +0 -135
  43. package/.next/server/chunks/576.js +0 -80
  44. package/.next/server/chunks/597.js +0 -169
  45. package/.next/server/chunks/608.js +0 -515
  46. package/.next/server/chunks/664.js +0 -3401
  47. package/.next/server/chunks/676.js +0 -32
  48. package/.next/server/chunks/74.js +0 -2598
  49. package/.next/server/chunks/746.js +0 -249
  50. package/.next/server/chunks/82.js +0 -371
  51. package/.next/server/chunks/854.js +0 -72
  52. package/.next/server/chunks/859.js +0 -959
  53. package/.next/server/chunks/872.js +0 -358
  54. package/.next/server/chunks/886.js +0 -120
  55. package/.next/server/chunks/98.js +0 -124
  56. package/.next/server/chunks/font-manifest.json +0 -1
  57. package/.next/server/font-manifest.json +0 -1
  58. package/.next/server/middleware-build-manifest.js +0 -1
  59. package/.next/server/middleware-manifest.json +0 -6
  60. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  61. package/.next/server/pages/404.js +0 -414
  62. package/.next/server/pages/404.js.nft.json +0 -1
  63. package/.next/server/pages/500.js +0 -384
  64. package/.next/server/pages/500.js.nft.json +0 -1
  65. package/.next/server/pages/[...slug].js +0 -708
  66. package/.next/server/pages/[...slug].js.nft.json +0 -1
  67. package/.next/server/pages/[slug]/p.js +0 -2390
  68. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  69. package/.next/server/pages/_app.js +0 -368
  70. package/.next/server/pages/_app.js.nft.json +0 -1
  71. package/.next/server/pages/_document.js +0 -304
  72. package/.next/server/pages/_document.js.nft.json +0 -1
  73. package/.next/server/pages/_error.js +0 -164
  74. package/.next/server/pages/_error.js.nft.json +0 -1
  75. package/.next/server/pages/account.js +0 -370
  76. package/.next/server/pages/account.js.nft.json +0 -1
  77. package/.next/server/pages/api/graphql.js +0 -315
  78. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  79. package/.next/server/pages/api/preview.js +0 -118
  80. package/.next/server/pages/api/preview.js.nft.json +0 -1
  81. package/.next/server/pages/checkout.js +0 -370
  82. package/.next/server/pages/checkout.js.nft.json +0 -1
  83. package/.next/server/pages/en-US/404.html +0 -81
  84. package/.next/server/pages/en-US/404.json +0 -1
  85. package/.next/server/pages/en-US/500.html +0 -81
  86. package/.next/server/pages/en-US/500.json +0 -1
  87. package/.next/server/pages/en-US/account.html +0 -81
  88. package/.next/server/pages/en-US/account.json +0 -1
  89. package/.next/server/pages/en-US/checkout.html +0 -81
  90. package/.next/server/pages/en-US/checkout.json +0 -1
  91. package/.next/server/pages/en-US/login.html +0 -81
  92. package/.next/server/pages/en-US/login.json +0 -1
  93. package/.next/server/pages/en-US/s.html +0 -81
  94. package/.next/server/pages/en-US/s.json +0 -1
  95. package/.next/server/pages/en-US.html +0 -81
  96. package/.next/server/pages/en-US.json +0 -1
  97. package/.next/server/pages/index.js +0 -588
  98. package/.next/server/pages/index.js.nft.json +0 -1
  99. package/.next/server/pages/login.js +0 -396
  100. package/.next/server/pages/login.js.nft.json +0 -1
  101. package/.next/server/pages/s.js +0 -438
  102. package/.next/server/pages/s.js.nft.json +0 -1
  103. package/.next/server/pages-manifest.json +0 -16
  104. package/.next/server/webpack-api-runtime.js +0 -229
  105. package/.next/server/webpack-runtime.js +0 -229
  106. package/.next/static/XHicU5B1ht45aQcZPouaE/_buildManifest.js +0 -1
  107. package/.next/static/XHicU5B1ht45aQcZPouaE/_ssgManifest.js +0 -1
  108. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  109. package/.next/static/chunks/170.b45293edb4f089c8.js +0 -1
  110. package/.next/static/chunks/226.b57e10ad9932f88c.js +0 -1
  111. package/.next/static/chunks/235-885f7bacf46728bb.js +0 -1
  112. package/.next/static/chunks/336.84e96cd7aa2412bc.js +0 -1
  113. package/.next/static/chunks/495.e6b60941cc3e82e4.js +0 -1
  114. package/.next/static/chunks/54.1d3e6cb43b5b1626.js +0 -1
  115. package/.next/static/chunks/597.d0da2018cc312352.js +0 -1
  116. package/.next/static/chunks/608.59e69b83f35d9c44.js +0 -1
  117. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  118. package/.next/static/chunks/706-abfba2e18f084aed.js +0 -1
  119. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  120. package/.next/static/chunks/832-5460e7c4690723c9.js +0 -1
  121. package/.next/static/chunks/861-d1a326525092ab9c.js +0 -1
  122. package/.next/static/chunks/883-59f1a429b6fe3cfe.js +0 -1
  123. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  124. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  125. package/.next/static/chunks/main-9746772201fe3ac1.js +0 -1
  126. package/.next/static/chunks/pages/404-ac22e12eb22b9c50.js +0 -1
  127. package/.next/static/chunks/pages/500-7b708e8b89389d0e.js +0 -1
  128. package/.next/static/chunks/pages/[...slug]-13b69368a6fa7b85.js +0 -1
  129. package/.next/static/chunks/pages/[slug]/p-0490a581f9a2e4ef.js +0 -1
  130. package/.next/static/chunks/pages/_app-b601536188b9a919.js +0 -1
  131. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  132. package/.next/static/chunks/pages/account-04a0a6c07709c50e.js +0 -1
  133. package/.next/static/chunks/pages/checkout-2ed6b828bb6ed7e6.js +0 -1
  134. package/.next/static/chunks/pages/index-0c1368601c183320.js +0 -1
  135. package/.next/static/chunks/pages/login-3bb40d77e6ee120a.js +0 -1
  136. package/.next/static/chunks/pages/s-8fec20c40a2bd7da.js +0 -1
  137. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  138. package/.next/static/chunks/webpack-02fe78a6d63f52e6.js +0 -1
  139. package/.next/static/css/025f924b9633ecd3.css +0 -1
  140. package/.next/static/css/2253644409b99b98.css +0 -1
  141. package/.next/static/css/326e215d7b09f642.css +0 -1
  142. package/.next/static/css/419a3084f8be98e8.css +0 -1
  143. package/.next/static/css/4b7b7b64ae6afe67.css +0 -1
  144. package/.next/static/css/501cb58eaa378545.css +0 -1
  145. package/.next/static/css/587c27bbda64e700.css +0 -1
  146. package/.next/static/css/5f1b35b69b2ba1f7.css +0 -1
  147. package/.next/static/css/7a8417de90d11c60.css +0 -1
  148. package/.next/static/css/b47298023a9f803f.css +0 -1
  149. package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
  150. package/.next/trace +0 -67
  151. package/public/~partytown/debug/partytown-atomics.js +0 -556
  152. package/public/~partytown/debug/partytown-media.js +0 -374
  153. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  154. package/public/~partytown/debug/partytown-sw.js +0 -59
  155. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  156. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  157. package/public/~partytown/debug/partytown.js +0 -72
  158. package/public/~partytown/partytown-atomics.js +0 -2
  159. package/public/~partytown/partytown-media.js +0 -2
  160. package/public/~partytown/partytown-sw.js +0 -2
  161. package/public/~partytown/partytown.js +0 -2
@@ -1,708 +0,0 @@
1
- (() => {
2
- var exports = {};
3
- exports.id = 330;
4
- exports.ids = [330];
5
- exports.modules = {
6
-
7
- /***/ 8570:
8
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
-
10
- "use strict";
11
-
12
- // EXPORTS
13
- __webpack_require__.d(__webpack_exports__, {
14
- "Z": () => (/* reexport */ ScrollToTopButton_ScrollToTopButton)
15
- });
16
-
17
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
18
- var Icon = __webpack_require__(5045);
19
- // EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
20
- var Button = __webpack_require__(7578);
21
- // EXTERNAL MODULE: ./src/components/sections/Section/index.ts
22
- var Section = __webpack_require__(7067);
23
- // EXTERNAL MODULE: ./src/components/sections/ScrollToTopButton/section.module.scss
24
- var section_module = __webpack_require__(7636);
25
- var section_module_default = /*#__PURE__*/__webpack_require__.n(section_module);
26
- // EXTERNAL MODULE: external "react/jsx-runtime"
27
- var jsx_runtime_ = __webpack_require__(997);
28
- ;// CONCATENATED MODULE: ./src/components/sections/ScrollToTopButton/ScrollToTopButton.tsx
29
-
30
-
31
-
32
-
33
-
34
- function ScrollToTopButton({
35
- text = 'Scroll to top',
36
- icon = /*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
37
- name: "CaretUp",
38
- width: 16,
39
- height: 16,
40
- weight: "bold"
41
- }),
42
- iconPosition = 'left'
43
- }) {
44
- return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
45
- className: `${(section_module_default()).section} section-scroll-to-top-button`,
46
- children: /*#__PURE__*/jsx_runtime_.jsx(Button/* default */.Z, {
47
- variant: "secondary",
48
- icon: icon,
49
- iconPosition: iconPosition,
50
- onClick: () => window.scrollTo(0, 0),
51
- children: text
52
- })
53
- });
54
- }
55
-
56
- /* harmony default export */ const ScrollToTopButton_ScrollToTopButton = (ScrollToTopButton);
57
- ;// CONCATENATED MODULE: ./src/components/sections/ScrollToTopButton/index.ts
58
-
59
-
60
- /***/ }),
61
-
62
- /***/ 1875:
63
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
64
-
65
- "use strict";
66
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
67
- __webpack_require__.r(__webpack_exports__);
68
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
69
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
70
- /* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
71
- /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
72
- /* harmony export */ });
73
- /* harmony import */ var _faststore_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4826);
74
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(6142);
75
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2339);
76
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(1197);
77
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6641);
78
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_seo__WEBPACK_IMPORTED_MODULE_1__);
79
- /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1853);
80
- /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_2__);
81
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6689);
82
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
83
- /* harmony import */ var src_components_sections_Breadcrumb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3769);
84
- /* harmony import */ var src_components_sections_Hero__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9557);
85
- /* harmony import */ var src_components_sections_ProductGallery__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2618);
86
- /* harmony import */ var src_components_sections_ProductShelf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7104);
87
- /* harmony import */ var src_components_sections_ScrollToTopButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8570);
88
- /* harmony import */ var src_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8459);
89
- /* harmony import */ var src_sdk_search_state__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1523);
90
- /* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2541);
91
- /* harmony import */ var src_server__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(9685);
92
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7183);
93
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_12__);
94
- /* harmony import */ var src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(4074);
95
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(997);
96
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__);
97
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_sections_ProductGallery__WEBPACK_IMPORTED_MODULE_6__, src_components_sections_ProductShelf__WEBPACK_IMPORTED_MODULE_7__, src_server__WEBPACK_IMPORTED_MODULE_11__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_13__]);
98
- ([src_components_sections_ProductGallery__WEBPACK_IMPORTED_MODULE_6__, src_components_sections_ProductShelf__WEBPACK_IMPORTED_MODULE_7__, src_server__WEBPACK_IMPORTED_MODULE_11__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
99
- const _excluded = ["globalSections"];
100
-
101
- 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; }
102
-
103
- 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; }
104
-
105
- 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; }
106
-
107
- 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; }
108
-
109
- 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; }
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
- const useSearchParams = ({
131
- collection
132
- }) => {
133
- const selectedFacets = collection?.meta.selectedFacets;
134
- const {
135
- asPath
136
- } = (0,next_router__WEBPACK_IMPORTED_MODULE_2__.useRouter)();
137
- const hrefState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
138
- const newState = (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_15__/* .parse */ .Q)(new URL(asPath, 'http://localhost')); // In case we are in an incomplete url
139
-
140
- if (newState.selectedFacets.length === 0) {
141
- newState.selectedFacets = selectedFacets;
142
- }
143
-
144
- return (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(newState).href;
145
- }, [asPath, selectedFacets]);
146
- return (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_15__/* .parse */ .Q)(new URL(hrefState)), [hrefState]);
147
- };
148
-
149
- function Page(_ref) {
150
- let {
151
- globalSections
152
- } = _ref,
153
- props = _objectWithoutProperties(_ref, _excluded);
154
-
155
- const {
156
- collection
157
- } = props;
158
- const router = (0,next_router__WEBPACK_IMPORTED_MODULE_2__.useRouter)();
159
- const applySearchState = (0,src_sdk_search_state__WEBPACK_IMPORTED_MODULE_9__/* .useApplySearchState */ .j)();
160
- const searchParams = useSearchParams(props);
161
- const {
162
- page
163
- } = searchParams;
164
- const title = collection?.seo.title ?? (_faststore_config__WEBPACK_IMPORTED_MODULE_12___default().seo.title);
165
- const description = collection?.seo.description ?? (_faststore_config__WEBPACK_IMPORTED_MODULE_12___default().seo.title);
166
- const pageQuery = page !== 0 ? `?page=${page}` : '';
167
- const [pathname] = router.asPath.split('?');
168
- const canonical = `${(_faststore_config__WEBPACK_IMPORTED_MODULE_12___default().storeUrl)}${pathname}${pageQuery}`;
169
- return /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .ZP, _objectSpread(_objectSpread({}, globalSections), {}, {
170
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(_faststore_sdk__WEBPACK_IMPORTED_MODULE_17__/* .Provider */ .z, _objectSpread(_objectSpread({
171
- onChange: applySearchState,
172
- itemsPerPage: src_constants__WEBPACK_IMPORTED_MODULE_18__/* .ITEMS_PER_PAGE */ .g
173
- }, searchParams), {}, {
174
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.NextSeo, {
175
- title: title,
176
- description: description,
177
- titleTemplate: (_faststore_config__WEBPACK_IMPORTED_MODULE_12___default().seo.titleTemplate),
178
- canonical: canonical,
179
- openGraph: {
180
- type: 'website',
181
- title,
182
- description
183
- }
184
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.BreadcrumbJsonLd, {
185
- itemListElements: collection?.breadcrumbList.itemListElement ?? []
186
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_sections_Breadcrumb__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
187
- breadcrumbList: collection?.breadcrumbList.itemListElement,
188
- name: title
189
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_sections_Hero__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
190
- variant: "secondary",
191
- title: title,
192
- subtitle: `All the amazing ${title} from the brands we partner with.`,
193
- image: {
194
- src: 'https://storeframework.vtexassets.com/arquivos/ids/190897/Photo.jpg',
195
- alt: 'Quest 2 Controller on a table'
196
- }
197
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_sections_ProductGallery__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
198
- title: title
199
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_sections_ProductShelf__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
200
- first: src_constants__WEBPACK_IMPORTED_MODULE_18__/* .ITEMS_PER_SECTION */ .K,
201
- sort: "score_desc",
202
- title: "You might also like",
203
- withDivisor: true
204
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx(src_components_sections_ScrollToTopButton__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {})]
205
- }))
206
- }));
207
- }
208
-
209
- const query = "ServerCollectionPageQuery";
210
- const getStaticProps = async context => {
211
- const {
212
- params
213
- } = context;
214
- const {
215
- data,
216
- errors = []
217
- } = await (0,src_server__WEBPACK_IMPORTED_MODULE_11__/* .execute */ .h)({
218
- variables: {
219
- slug: params?.slug.join('/') ?? ''
220
- },
221
- operationName: query
222
- });
223
- const notFound = errors.find(_faststore_api__WEBPACK_IMPORTED_MODULE_0__.isNotFoundError);
224
-
225
- if (notFound) {
226
- return {
227
- notFound: true
228
- };
229
- }
230
-
231
- if (errors.length > 0) {
232
- throw errors[0];
233
- }
234
-
235
- const globalSections = await (0,src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_13__/* .getGlobalSectionsData */ .Tc)(context.previewData);
236
- return {
237
- props: _objectSpread(_objectSpread({}, data), {}, {
238
- globalSections
239
- })
240
- };
241
- };
242
- const getStaticPaths = async () => {
243
- return {
244
- paths: [],
245
- fallback: 'blocking'
246
- };
247
- };
248
- Page.displayName = 'Page';
249
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_10__/* .mark */ .B)(Page));
250
- __webpack_async_result__();
251
- } catch(e) { __webpack_async_result__(e); } });
252
-
253
- /***/ }),
254
-
255
- /***/ 7636:
256
- /***/ ((module) => {
257
-
258
- // Exports
259
- module.exports = {
260
- "section": "section_section__xo_yt"
261
- };
262
-
263
-
264
- /***/ }),
265
-
266
- /***/ 5490:
267
- /***/ ((module) => {
268
-
269
- "use strict";
270
- module.exports = require("@faststore/graphql-utils");
271
-
272
- /***/ }),
273
-
274
- /***/ 6676:
275
- /***/ ((module) => {
276
-
277
- "use strict";
278
- module.exports = require("@vtex/client-cms");
279
-
280
- /***/ }),
281
-
282
- /***/ 2404:
283
- /***/ ((module) => {
284
-
285
- "use strict";
286
- module.exports = require("fast-deep-equal");
287
-
288
- /***/ }),
289
-
290
- /***/ 7343:
291
- /***/ ((module) => {
292
-
293
- "use strict";
294
- module.exports = require("graphql");
295
-
296
- /***/ }),
297
-
298
- /***/ 6548:
299
- /***/ ((module) => {
300
-
301
- "use strict";
302
- module.exports = require("graphql/language");
303
-
304
- /***/ }),
305
-
306
- /***/ 3430:
307
- /***/ ((module) => {
308
-
309
- "use strict";
310
- module.exports = require("idb-keyval");
311
-
312
- /***/ }),
313
-
314
- /***/ 7881:
315
- /***/ ((module) => {
316
-
317
- "use strict";
318
- module.exports = require("isomorphic-unfetch");
319
-
320
- /***/ }),
321
-
322
- /***/ 6641:
323
- /***/ ((module) => {
324
-
325
- "use strict";
326
- module.exports = require("next-seo");
327
-
328
- /***/ }),
329
-
330
- /***/ 3280:
331
- /***/ ((module) => {
332
-
333
- "use strict";
334
- module.exports = require("next/dist/shared/lib/app-router-context.js");
335
-
336
- /***/ }),
337
-
338
- /***/ 2796:
339
- /***/ ((module) => {
340
-
341
- "use strict";
342
- module.exports = require("next/dist/shared/lib/head-manager-context.js");
343
-
344
- /***/ }),
345
-
346
- /***/ 4957:
347
- /***/ ((module) => {
348
-
349
- "use strict";
350
- module.exports = require("next/dist/shared/lib/head.js");
351
-
352
- /***/ }),
353
-
354
- /***/ 3539:
355
- /***/ ((module) => {
356
-
357
- "use strict";
358
- module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
359
-
360
- /***/ }),
361
-
362
- /***/ 4014:
363
- /***/ ((module) => {
364
-
365
- "use strict";
366
- module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
367
-
368
- /***/ }),
369
-
370
- /***/ 4486:
371
- /***/ ((module) => {
372
-
373
- "use strict";
374
- module.exports = require("next/dist/shared/lib/image-blur-svg.js");
375
-
376
- /***/ }),
377
-
378
- /***/ 744:
379
- /***/ ((module) => {
380
-
381
- "use strict";
382
- module.exports = require("next/dist/shared/lib/image-config-context.js");
383
-
384
- /***/ }),
385
-
386
- /***/ 5843:
387
- /***/ ((module) => {
388
-
389
- "use strict";
390
- module.exports = require("next/dist/shared/lib/image-config.js");
391
-
392
- /***/ }),
393
-
394
- /***/ 8524:
395
- /***/ ((module) => {
396
-
397
- "use strict";
398
- module.exports = require("next/dist/shared/lib/is-plain-object.js");
399
-
400
- /***/ }),
401
-
402
- /***/ 8020:
403
- /***/ ((module) => {
404
-
405
- "use strict";
406
- module.exports = require("next/dist/shared/lib/mitt.js");
407
-
408
- /***/ }),
409
-
410
- /***/ 4406:
411
- /***/ ((module) => {
412
-
413
- "use strict";
414
- module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
415
-
416
- /***/ }),
417
-
418
- /***/ 4964:
419
- /***/ ((module) => {
420
-
421
- "use strict";
422
- module.exports = require("next/dist/shared/lib/router-context.js");
423
-
424
- /***/ }),
425
-
426
- /***/ 3431:
427
- /***/ ((module) => {
428
-
429
- "use strict";
430
- module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
431
-
432
- /***/ }),
433
-
434
- /***/ 1751:
435
- /***/ ((module) => {
436
-
437
- "use strict";
438
- module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
439
-
440
- /***/ }),
441
-
442
- /***/ 6220:
443
- /***/ ((module) => {
444
-
445
- "use strict";
446
- module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
447
-
448
- /***/ }),
449
-
450
- /***/ 299:
451
- /***/ ((module) => {
452
-
453
- "use strict";
454
- module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
455
-
456
- /***/ }),
457
-
458
- /***/ 3938:
459
- /***/ ((module) => {
460
-
461
- "use strict";
462
- module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
463
-
464
- /***/ }),
465
-
466
- /***/ 9565:
467
- /***/ ((module) => {
468
-
469
- "use strict";
470
- module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
471
-
472
- /***/ }),
473
-
474
- /***/ 5789:
475
- /***/ ((module) => {
476
-
477
- "use strict";
478
- module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
479
-
480
- /***/ }),
481
-
482
- /***/ 1897:
483
- /***/ ((module) => {
484
-
485
- "use strict";
486
- module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
487
-
488
- /***/ }),
489
-
490
- /***/ 1428:
491
- /***/ ((module) => {
492
-
493
- "use strict";
494
- module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
495
-
496
- /***/ }),
497
-
498
- /***/ 8854:
499
- /***/ ((module) => {
500
-
501
- "use strict";
502
- module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
503
-
504
- /***/ }),
505
-
506
- /***/ 1292:
507
- /***/ ((module) => {
508
-
509
- "use strict";
510
- module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
511
-
512
- /***/ }),
513
-
514
- /***/ 4567:
515
- /***/ ((module) => {
516
-
517
- "use strict";
518
- module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
519
-
520
- /***/ }),
521
-
522
- /***/ 979:
523
- /***/ ((module) => {
524
-
525
- "use strict";
526
- module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
527
-
528
- /***/ }),
529
-
530
- /***/ 3297:
531
- /***/ ((module) => {
532
-
533
- "use strict";
534
- module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
535
-
536
- /***/ }),
537
-
538
- /***/ 6052:
539
- /***/ ((module) => {
540
-
541
- "use strict";
542
- module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
543
-
544
- /***/ }),
545
-
546
- /***/ 4226:
547
- /***/ ((module) => {
548
-
549
- "use strict";
550
- module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
551
-
552
- /***/ }),
553
-
554
- /***/ 5052:
555
- /***/ ((module) => {
556
-
557
- "use strict";
558
- module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
559
-
560
- /***/ }),
561
-
562
- /***/ 9232:
563
- /***/ ((module) => {
564
-
565
- "use strict";
566
- module.exports = require("next/dist/shared/lib/utils.js");
567
-
568
- /***/ }),
569
-
570
- /***/ 1853:
571
- /***/ ((module) => {
572
-
573
- "use strict";
574
- module.exports = require("next/router");
575
-
576
- /***/ }),
577
-
578
- /***/ 5471:
579
- /***/ ((module) => {
580
-
581
- "use strict";
582
- module.exports = require("p-limit");
583
-
584
- /***/ }),
585
-
586
- /***/ 6689:
587
- /***/ ((module) => {
588
-
589
- "use strict";
590
- module.exports = require("react");
591
-
592
- /***/ }),
593
-
594
- /***/ 6405:
595
- /***/ ((module) => {
596
-
597
- "use strict";
598
- module.exports = require("react-dom");
599
-
600
- /***/ }),
601
-
602
- /***/ 9785:
603
- /***/ ((module) => {
604
-
605
- "use strict";
606
- module.exports = require("react-intersection-observer");
607
-
608
- /***/ }),
609
-
610
- /***/ 3789:
611
- /***/ ((module) => {
612
-
613
- "use strict";
614
- module.exports = require("react-swipeable");
615
-
616
- /***/ }),
617
-
618
- /***/ 997:
619
- /***/ ((module) => {
620
-
621
- "use strict";
622
- module.exports = require("react/jsx-runtime");
623
-
624
- /***/ }),
625
-
626
- /***/ 3823:
627
- /***/ ((module) => {
628
-
629
- "use strict";
630
- module.exports = require("tabbable");
631
-
632
- /***/ }),
633
-
634
- /***/ 752:
635
- /***/ ((module) => {
636
-
637
- "use strict";
638
- module.exports = require("tslib");
639
-
640
- /***/ }),
641
-
642
- /***/ 9664:
643
- /***/ ((module) => {
644
-
645
- "use strict";
646
- module.exports = import("@envelop/core");;
647
-
648
- /***/ }),
649
-
650
- /***/ 7886:
651
- /***/ ((module) => {
652
-
653
- "use strict";
654
- module.exports = import("@envelop/graphql-jit");;
655
-
656
- /***/ }),
657
-
658
- /***/ 4656:
659
- /***/ ((module) => {
660
-
661
- "use strict";
662
- module.exports = import("@envelop/parser-cache");;
663
-
664
- /***/ }),
665
-
666
- /***/ 6093:
667
- /***/ ((module) => {
668
-
669
- "use strict";
670
- module.exports = import("@envelop/validation-cache");;
671
-
672
- /***/ }),
673
-
674
- /***/ 7564:
675
- /***/ ((module) => {
676
-
677
- "use strict";
678
- module.exports = import("chalk");;
679
-
680
- /***/ }),
681
-
682
- /***/ 5941:
683
- /***/ ((module) => {
684
-
685
- "use strict";
686
- module.exports = import("swr");;
687
-
688
- /***/ }),
689
-
690
- /***/ 6113:
691
- /***/ ((module) => {
692
-
693
- "use strict";
694
- module.exports = require("crypto");
695
-
696
- /***/ })
697
-
698
- };
699
- ;
700
-
701
- // load runtime
702
- var __webpack_require__ = require("../webpack-runtime.js");
703
- __webpack_require__.C(exports);
704
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
705
- var __webpack_exports__ = __webpack_require__.X(0, [398,676,664,608,401,336,183,254,886,74,154,247,287,854,280,554,104,120,350,256,557], () => (__webpack_exec__(1875)));
706
- module.exports = __webpack_exports__;
707
-
708
- })();