@faststore/core 2.1.84 → 2.2.0-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 (211) hide show
  1. package/.turbo/turbo-build.log +9 -7
  2. package/.turbo/turbo-test.log +25 -0
  3. package/@generated/graphql/index.ts +183 -79
  4. package/@generated/graphql/persisted.json +5 -5
  5. package/@generated/graphql/schema.graphql +1053 -0
  6. package/api/index.ts +15 -0
  7. package/cms/faststore/sections.json +2 -32
  8. package/codegen.yml +2 -1
  9. package/generate.sh +71 -0
  10. package/index.ts +15 -0
  11. package/jest.config.js +6 -0
  12. package/package.json +33 -18
  13. package/src/components/ThirdPartyScripts/ThirdPartyScripts.tsx +1 -2
  14. package/src/components/cms/RenderSections.tsx +4 -5
  15. package/src/components/navigation/Navbar/Navbar.tsx +4 -3
  16. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +5 -4
  17. package/src/components/product/ProductGrid/ProductGrid.tsx +4 -3
  18. package/src/components/sections/Breadcrumb/Breadcrumb.tsx +17 -22
  19. package/src/components/sections/CrossSellingShelf/CrossSellingShelf.tsx +8 -6
  20. package/src/components/sections/Footer/Footer.tsx +2 -14
  21. package/src/components/sections/Navbar/Navbar.tsx +0 -4
  22. package/src/components/sections/ProductDetails/ProductDetails.tsx +23 -33
  23. package/src/components/sections/ProductGallery/ProductGallery.tsx +15 -26
  24. package/src/components/sections/ProductShelf/ProductShelf.tsx +1 -1
  25. package/src/components/sections/ProductTiles/ProductTiles.tsx +4 -3
  26. package/src/components/templates/ProductListingPage/ProductListing.tsx +95 -0
  27. package/src/components/templates/ProductListingPage/ProductListingPage.tsx +34 -68
  28. package/src/components/templates/SearchPage/SearchPage.tsx +81 -0
  29. package/src/components/templates/SearchPage/index.ts +2 -0
  30. package/src/components/ui/ProductGallery/ProductGallery.tsx +24 -16
  31. package/src/components/ui/ProductGallery/ProductGalleryPage.tsx +8 -7
  32. package/src/components/ui/ProductGallery/useDelayedFacets.ts +3 -3
  33. package/src/components/ui/ProductShelf/ProductShelf.tsx +3 -2
  34. package/src/customizations/GlobalOverrides.tsx +0 -2
  35. package/src/customizations/fragments/ClientProduct.ts +9 -0
  36. package/src/customizations/fragments/ClientProductGallery.ts +19 -0
  37. package/src/customizations/fragments/ClientProducts.ts +19 -0
  38. package/src/customizations/fragments/ServerCollectionPage.ts +9 -0
  39. package/src/customizations/fragments/ServerProductPage.ts +9 -0
  40. package/src/customizations/graphql/thirdParty/resolvers/index.ts +3 -0
  41. package/src/customizations/graphql/vtex/resolvers/index.ts +3 -0
  42. package/src/pages/[...slug].tsx +5 -3
  43. package/src/pages/[slug]/p.tsx +38 -18
  44. package/src/pages/s.tsx +22 -34
  45. package/src/sdk/graphql/useQuery.ts +17 -13
  46. package/src/sdk/overrides/PageProvider.tsx +78 -0
  47. package/src/sdk/product/useLocalizedVariables.ts +33 -0
  48. package/src/sdk/product/usePageProductsQuery.ts +139 -0
  49. package/src/{components/sections/ProductGallery/useGalleryQuery.ts → sdk/product/useProductGalleryQuery.ts} +12 -13
  50. package/src/sdk/product/{useProduct.ts → useProductQuery.ts} +10 -7
  51. package/src/sdk/product/useProductsPrefetch.ts +72 -0
  52. package/src/sdk/product/useProductsQuery.ts +17 -63
  53. package/src/server/generator/generateGraphQLSchemaFile.ts +3 -0
  54. package/src/server/generator/schema.ts +82 -0
  55. package/src/server/index.ts +34 -21
  56. package/src/server/options.ts +16 -0
  57. package/test/server/index.test.ts +146 -0
  58. package/.next/BUILD_ID +0 -1
  59. package/.next/build-manifest.json +0 -129
  60. package/.next/cache/.tsbuildinfo +0 -1
  61. package/.next/cache/config.json +0 -7
  62. package/.next/cache/eslint/.cache_1gneedd +0 -1
  63. package/.next/cache/next-server.js.nft.json +0 -1
  64. package/.next/cache/webpack/client-production/0.pack +0 -0
  65. package/.next/cache/webpack/client-production/index.pack +0 -0
  66. package/.next/cache/webpack/server-production/0.pack +0 -0
  67. package/.next/cache/webpack/server-production/index.pack +0 -0
  68. package/.next/export-marker.json +0 -1
  69. package/.next/images-manifest.json +0 -1
  70. package/.next/next-server.js.nft.json +0 -1
  71. package/.next/package.json +0 -1
  72. package/.next/prerender-manifest.json +0 -1
  73. package/.next/react-loadable-manifest.json +0 -44
  74. package/.next/required-server-files.json +0 -1
  75. package/.next/routes-manifest.json +0 -1
  76. package/.next/server/chunks/143.js +0 -106
  77. package/.next/server/chunks/177.js +0 -120
  78. package/.next/server/chunks/183.js +0 -94
  79. package/.next/server/chunks/184.js +0 -61
  80. package/.next/server/chunks/186.js +0 -113
  81. package/.next/server/chunks/289.js +0 -239
  82. package/.next/server/chunks/312.js +0 -697
  83. package/.next/server/chunks/350.js +0 -143
  84. package/.next/server/chunks/483.js +0 -650
  85. package/.next/server/chunks/487.js +0 -9142
  86. package/.next/server/chunks/53.js +0 -61
  87. package/.next/server/chunks/530.js +0 -626
  88. package/.next/server/chunks/576.js +0 -94
  89. package/.next/server/chunks/650.js +0 -9142
  90. package/.next/server/chunks/676.js +0 -32
  91. package/.next/server/chunks/693.js +0 -58
  92. package/.next/server/chunks/71.js +0 -1254
  93. package/.next/server/chunks/74.js +0 -4065
  94. package/.next/server/chunks/753.js +0 -509
  95. package/.next/server/chunks/779.js +0 -58
  96. package/.next/server/chunks/825.js +0 -4039
  97. package/.next/server/chunks/854.js +0 -72
  98. package/.next/server/chunks/859.js +0 -959
  99. package/.next/server/chunks/907.js +0 -1911
  100. package/.next/server/chunks/933.js +0 -517
  101. package/.next/server/chunks/98.js +0 -124
  102. package/.next/server/chunks/988.js +0 -211
  103. package/.next/server/chunks/font-manifest.json +0 -1
  104. package/.next/server/font-manifest.json +0 -1
  105. package/.next/server/middleware-build-manifest.js +0 -1
  106. package/.next/server/middleware-manifest.json +0 -6
  107. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  108. package/.next/server/pages/404.js +0 -386
  109. package/.next/server/pages/404.js.nft.json +0 -1
  110. package/.next/server/pages/500.js +0 -388
  111. package/.next/server/pages/500.js.nft.json +0 -1
  112. package/.next/server/pages/[...slug].js +0 -1005
  113. package/.next/server/pages/[...slug].js.nft.json +0 -1
  114. package/.next/server/pages/[slug]/p.js +0 -2269
  115. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  116. package/.next/server/pages/_app.js +0 -280
  117. package/.next/server/pages/_app.js.nft.json +0 -1
  118. package/.next/server/pages/_document.js +0 -374
  119. package/.next/server/pages/_document.js.nft.json +0 -1
  120. package/.next/server/pages/_error.js +0 -164
  121. package/.next/server/pages/_error.js.nft.json +0 -1
  122. package/.next/server/pages/account.js +0 -363
  123. package/.next/server/pages/account.js.nft.json +0 -1
  124. package/.next/server/pages/api/graphql.js +0 -365
  125. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  126. package/.next/server/pages/api/health/live.js +0 -31
  127. package/.next/server/pages/api/health/live.js.nft.json +0 -1
  128. package/.next/server/pages/api/health/ready.js +0 -31
  129. package/.next/server/pages/api/health/ready.js.nft.json +0 -1
  130. package/.next/server/pages/api/preview.js +0 -148
  131. package/.next/server/pages/api/preview.js.nft.json +0 -1
  132. package/.next/server/pages/checkout.js +0 -363
  133. package/.next/server/pages/checkout.js.nft.json +0 -1
  134. package/.next/server/pages/en-US/404.html +0 -81
  135. package/.next/server/pages/en-US/404.json +0 -1
  136. package/.next/server/pages/en-US/500.html +0 -81
  137. package/.next/server/pages/en-US/500.json +0 -1
  138. package/.next/server/pages/en-US/account.html +0 -81
  139. package/.next/server/pages/en-US/account.json +0 -1
  140. package/.next/server/pages/en-US/checkout.html +0 -81
  141. package/.next/server/pages/en-US/checkout.json +0 -1
  142. package/.next/server/pages/en-US/login.html +0 -81
  143. package/.next/server/pages/en-US/login.json +0 -1
  144. package/.next/server/pages/en-US/s.html +0 -81
  145. package/.next/server/pages/en-US/s.json +0 -1
  146. package/.next/server/pages/en-US.html +0 -81
  147. package/.next/server/pages/en-US.json +0 -1
  148. package/.next/server/pages/index.js +0 -439
  149. package/.next/server/pages/index.js.nft.json +0 -1
  150. package/.next/server/pages/login.js +0 -368
  151. package/.next/server/pages/login.js.nft.json +0 -1
  152. package/.next/server/pages/s.js +0 -466
  153. package/.next/server/pages/s.js.nft.json +0 -1
  154. package/.next/server/pages-manifest.json +0 -18
  155. package/.next/server/webpack-api-runtime.js +0 -229
  156. package/.next/server/webpack-runtime.js +0 -229
  157. package/.next/static/UFCNzAvjHLcTNmP8sQK5l/_buildManifest.js +0 -1
  158. package/.next/static/UFCNzAvjHLcTNmP8sQK5l/_ssgManifest.js +0 -1
  159. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  160. package/.next/static/chunks/148.582eaa81293ee470.js +0 -1
  161. package/.next/static/chunks/238-39630714f5d70169.js +0 -1
  162. package/.next/static/chunks/243-b4f8e506d156ee41.js +0 -1
  163. package/.next/static/chunks/530.ec68de379130c11e.js +0 -1
  164. package/.next/static/chunks/548-4ee971bf7bdb3e81.js +0 -1
  165. package/.next/static/chunks/603-072c8fb73ac35775.js +0 -1
  166. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  167. package/.next/static/chunks/709.7bc5a25ce30abda6.js +0 -1
  168. package/.next/static/chunks/738-a5ff304828f20cbf.js +0 -1
  169. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  170. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  171. package/.next/static/chunks/988.afda042dd9ba11d1.js +0 -1
  172. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  173. package/.next/static/chunks/main-fd466221927468fd.js +0 -1
  174. package/.next/static/chunks/pages/404-af78f7cd1d3c1f60.js +0 -1
  175. package/.next/static/chunks/pages/500-f6346ca5f9dc4fef.js +0 -1
  176. package/.next/static/chunks/pages/[...slug]-3f4e5f74ff9436ec.js +0 -1
  177. package/.next/static/chunks/pages/[slug]/p-8e20c206fb84d184.js +0 -1
  178. package/.next/static/chunks/pages/_app-895781b1c7b5bf56.js +0 -1
  179. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  180. package/.next/static/chunks/pages/account-05bd79fb78365e88.js +0 -1
  181. package/.next/static/chunks/pages/checkout-c973786e68f25a39.js +0 -1
  182. package/.next/static/chunks/pages/index-73110361a184aa10.js +0 -1
  183. package/.next/static/chunks/pages/login-8deb9243376b6aa1.js +0 -1
  184. package/.next/static/chunks/pages/s-94691e1fdc9521a4.js +0 -1
  185. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  186. package/.next/static/chunks/webpack-504557a0a7373460.js +0 -1
  187. package/.next/static/css/20e4a3a45cdd65f4.css +0 -1
  188. package/.next/static/css/4b7138899cd07c63.css +0 -1
  189. package/.next/static/css/527e334fa69cf40a.css +0 -1
  190. package/.next/static/css/6e1a7434f061d0ef.css +0 -1
  191. package/.next/static/css/9e76fef1c9ca89af.css +0 -1
  192. package/.next/static/css/a2eefb25a4608343.css +0 -1
  193. package/.next/static/css/cb7d1fcea42fab9c.css +0 -1
  194. package/.next/static/css/df588bb98c0b0ca6.css +0 -1
  195. package/.next/static/css/e3b039e8f5daf95f.css +0 -1
  196. package/.next/static/css/f0e2d1b8832e935d.css +0 -1
  197. package/.next/trace +0 -80
  198. package/public/~partytown/debug/partytown-atomics.js +0 -556
  199. package/public/~partytown/debug/partytown-media.js +0 -374
  200. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  201. package/public/~partytown/debug/partytown-sw.js +0 -59
  202. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  203. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  204. package/public/~partytown/debug/partytown.js +0 -72
  205. package/public/~partytown/partytown-atomics.js +0 -2
  206. package/public/~partytown/partytown-media.js +0 -2
  207. package/public/~partytown/partytown-sw.js +0 -2
  208. package/public/~partytown/partytown.js +0 -2
  209. package/src/components/ui/ProductGallery/usePageProducts.ts +0 -48
  210. package/src/customizations/components/overrides/ThirdPartyScripts.tsx +0 -9
  211. package/src/customizations/scripts/ThirdPartyScripts.tsx +0 -8
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../webpack-api-runtime.js","../../chunks/650.js","../../chunks/576.js","../../../package.json","../../../../@generated/graphql/persisted.json","../../../../package.json"]}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- (() => {
3
- var exports = {};
4
- exports.id = 909;
5
- exports.ids = [909];
6
- exports.modules = {
7
-
8
- /***/ 33998:
9
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
-
11
- __webpack_require__.r(__webpack_exports__);
12
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
- /* harmony export */ "default": () => (/* binding */ handler)
14
- /* harmony export */ });
15
- function handler(_req, res) {
16
- res.status(200).send('Ok');
17
- }
18
-
19
- /***/ })
20
-
21
- };
22
- ;
23
-
24
- // load runtime
25
- var __webpack_require__ = require("../../../webpack-api-runtime.js");
26
- __webpack_require__.C(exports);
27
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
28
- var __webpack_exports__ = (__webpack_exec__(33998));
29
- module.exports = __webpack_exports__;
30
-
31
- })();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../webpack-api-runtime.js","../../../../package.json"]}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- (() => {
3
- var exports = {};
4
- exports.id = 662;
5
- exports.ids = [662];
6
- exports.modules = {
7
-
8
- /***/ 67297:
9
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
-
11
- __webpack_require__.r(__webpack_exports__);
12
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
- /* harmony export */ "default": () => (/* binding */ handler)
14
- /* harmony export */ });
15
- function handler(_req, res) {
16
- res.status(200).send('Ok');
17
- }
18
-
19
- /***/ })
20
-
21
- };
22
- ;
23
-
24
- // load runtime
25
- var __webpack_require__ = require("../../../webpack-api-runtime.js");
26
- __webpack_require__.C(exports);
27
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
28
- var __webpack_exports__ = (__webpack_exec__(67297));
29
- module.exports = __webpack_exports__;
30
-
31
- })();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../webpack-api-runtime.js","../../../../package.json"]}
@@ -1,148 +0,0 @@
1
- "use strict";
2
- (() => {
3
- var exports = {};
4
- exports.id = 157;
5
- exports.ids = [157];
6
- exports.modules = {
7
-
8
- /***/ 62239:
9
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
-
11
- // ESM COMPAT FLAG
12
- __webpack_require__.r(__webpack_exports__);
13
-
14
- // EXPORTS
15
- __webpack_require__.d(__webpack_exports__, {
16
- "default": () => (/* binding */ preview)
17
- });
18
-
19
- ;// CONCATENATED MODULE: external "@vtex/client-cms"
20
- const client_cms_namespaceObject = require("@vtex/client-cms");
21
- var client_cms_default = /*#__PURE__*/__webpack_require__.n(client_cms_namespaceObject);
22
- // EXTERNAL MODULE: ./faststore.config.js
23
- var faststore_config = __webpack_require__(45576);
24
- var faststore_config_default = /*#__PURE__*/__webpack_require__.n(faststore_config);
25
- ;// CONCATENATED MODULE: ./src/sdk/error/MultipleContentError/MultipleContentError.ts
26
- class MultipleContentError_MultipleContentError extends Error {
27
- constructor(options) {
28
- super(`Multiple content defined on the CMS for content type ${options.contentType}. Remove duplicated content before proceeding. Context: ${JSON.stringify(options, null, 2)}`);
29
- }
30
-
31
- }
32
- ;// CONCATENATED MODULE: ./src/sdk/error/MultipleContentError/index.ts
33
-
34
- ;// CONCATENATED MODULE: ./src/sdk/error/MissingContentError/MissingContentError.ts
35
- class MissingContentError_MissingContentError extends Error {
36
- constructor(options) {
37
- super(`Missing content on the CMS for content type ${options.contentType}. Add content before proceeding. Context: ${JSON.stringify(options, null, 2)}`);
38
- }
39
-
40
- }
41
- ;// CONCATENATED MODULE: ./src/sdk/error/MissingContentError/index.ts
42
-
43
- ;// CONCATENATED MODULE: ./src/server/cms.ts
44
-
45
-
46
-
47
-
48
- const clientCMS = new (client_cms_default())({
49
- workspace: (faststore_config_default()).api.workspace,
50
- tenant: (faststore_config_default()).api.storeId
51
- });
52
-
53
- const isLocator = x => typeof x.contentType === 'string' && (typeof x.releaseId === 'string' || typeof x.documentId === 'string');
54
-
55
- const getPage = async options => {
56
- const result = await (isLocator(options) ? clientCMS.getCMSPage(options).then(page => ({
57
- data: [page]
58
- })) : clientCMS.getCMSPagesByContentType(options.contentType, options.filters));
59
- const pages = result.data;
60
-
61
- if (!pages[0]) {
62
- throw new MissingContentError(options);
63
- }
64
-
65
- if (pages.length !== 1) {
66
- throw new MultipleContentError(options);
67
- }
68
-
69
- return pages[0];
70
- };
71
- ;// CONCATENATED MODULE: ./src/pages/api/preview.ts
72
-
73
-
74
-
75
- class StatusError extends Error {
76
- constructor(message, status) {
77
- super(message);
78
- this.status = status;
79
- }
80
-
81
- }
82
-
83
- const pickParam = (req, parameter) => {
84
- const maybeParam = req.query[parameter];
85
-
86
- if (typeof maybeParam !== 'string') {
87
- throw new StatusError(`Parameter ${parameter} missing from querystring`, 400);
88
- }
89
-
90
- return maybeParam;
91
- }; // TODO: Improve security by disabling CMS preview in production
92
-
93
-
94
- const handler = async (req, res) => {
95
- try {
96
- const locator = {
97
- contentType: pickParam(req, 'contentType'),
98
- documentId: pickParam(req, 'documentId'),
99
- versionId: pickParam(req, 'versionId')
100
- }; // Fetch CMS to check if the provided `locator` exists
101
-
102
- const page = await clientCMS.getCMSPage(locator); // If the content doesn't exist prevent preview mode from being enabled
103
-
104
- if (!page) {
105
- throw new StatusError(`Content NotFound for ${JSON.stringify(locator, null, 2)}`, 404);
106
- } // Enable Preview Mode by setting the cookies
107
-
108
-
109
- res.setPreviewData(locator, {
110
- maxAge: 3600
111
- }); // Redirect to the path from the fetched locator
112
-
113
- if (faststore_config.previewRedirects[locator.contentType]) {
114
- res.redirect(faststore_config.previewRedirects[locator.contentType]);
115
- return;
116
- }
117
-
118
- if (locator.contentType === 'landingPage') {
119
- res.redirect(`${page.settings?.seo.slug}`);
120
- return;
121
- }
122
-
123
- res.redirect('/');
124
- } catch (error) {
125
- if (error instanceof StatusError) {
126
- res.status(error.status).end(error.message);
127
- return;
128
- }
129
-
130
- throw error;
131
- }
132
- };
133
-
134
- /* harmony default export */ const preview = (handler);
135
-
136
- /***/ })
137
-
138
- };
139
- ;
140
-
141
- // load runtime
142
- var __webpack_require__ = require("../../webpack-api-runtime.js");
143
- __webpack_require__.C(exports);
144
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
145
- var __webpack_exports__ = __webpack_require__.X(0, [576], () => (__webpack_exec__(62239)));
146
- module.exports = __webpack_exports__;
147
-
148
- })();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../webpack-api-runtime.js","../../chunks/576.js","../../../package.json","../../../../package.json"]}
@@ -1,363 +0,0 @@
1
- "use strict";
2
- (() => {
3
- var exports = {};
4
- exports.id = 222;
5
- exports.ids = [222];
6
- exports.modules = {
7
-
8
- /***/ 7200:
9
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
10
-
11
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
12
- __webpack_require__.r(__webpack_exports__);
13
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
15
- /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
16
- /* harmony export */ });
17
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
18
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
19
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16641);
20
- /* harmony import */ var next_seo__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_seo__WEBPACK_IMPORTED_MODULE_1__);
21
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97183);
22
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_2__);
23
- /* harmony import */ var src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4074);
24
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20997);
25
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
26
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_3__]);
27
- src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
28
- 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; }
29
-
30
- 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; }
31
-
32
- 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; }
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
- function Page({
42
- globalSections
43
- }) {
44
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
45
- window.location.href = (_faststore_config__WEBPACK_IMPORTED_MODULE_2___default().checkoutUrl);
46
- }, []);
47
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, _objectSpread(_objectSpread({}, globalSections), {}, {
48
- children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx(next_seo__WEBPACK_IMPORTED_MODULE_1__.NextSeo, {
49
- noindex: true,
50
- nofollow: true
51
- }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx("div", {
52
- children: "loading..."
53
- })]
54
- }));
55
- }
56
-
57
- const getStaticProps = async ({
58
- previewData
59
- }) => {
60
- const globalSections = await (0,src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_3__/* .getGlobalSectionsData */ .Tc)(previewData);
61
- return {
62
- props: {
63
- globalSections
64
- }
65
- };
66
- };
67
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Page);
68
- __webpack_async_result__();
69
- } catch(e) { __webpack_async_result__(e); } });
70
-
71
- /***/ }),
72
-
73
- /***/ 16676:
74
- /***/ ((module) => {
75
-
76
- module.exports = require("@vtex/client-cms");
77
-
78
- /***/ }),
79
-
80
- /***/ 83430:
81
- /***/ ((module) => {
82
-
83
- module.exports = require("idb-keyval");
84
-
85
- /***/ }),
86
-
87
- /***/ 16641:
88
- /***/ ((module) => {
89
-
90
- module.exports = require("next-seo");
91
-
92
- /***/ }),
93
-
94
- /***/ 3280:
95
- /***/ ((module) => {
96
-
97
- module.exports = require("next/dist/shared/lib/app-router-context.js");
98
-
99
- /***/ }),
100
-
101
- /***/ 92796:
102
- /***/ ((module) => {
103
-
104
- module.exports = require("next/dist/shared/lib/head-manager-context.js");
105
-
106
- /***/ }),
107
-
108
- /***/ 94957:
109
- /***/ ((module) => {
110
-
111
- module.exports = require("next/dist/shared/lib/head.js");
112
-
113
- /***/ }),
114
-
115
- /***/ 3539:
116
- /***/ ((module) => {
117
-
118
- module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
119
-
120
- /***/ }),
121
-
122
- /***/ 34014:
123
- /***/ ((module) => {
124
-
125
- module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
126
-
127
- /***/ }),
128
-
129
- /***/ 64486:
130
- /***/ ((module) => {
131
-
132
- module.exports = require("next/dist/shared/lib/image-blur-svg.js");
133
-
134
- /***/ }),
135
-
136
- /***/ 50744:
137
- /***/ ((module) => {
138
-
139
- module.exports = require("next/dist/shared/lib/image-config-context.js");
140
-
141
- /***/ }),
142
-
143
- /***/ 35843:
144
- /***/ ((module) => {
145
-
146
- module.exports = require("next/dist/shared/lib/image-config.js");
147
-
148
- /***/ }),
149
-
150
- /***/ 78524:
151
- /***/ ((module) => {
152
-
153
- module.exports = require("next/dist/shared/lib/is-plain-object.js");
154
-
155
- /***/ }),
156
-
157
- /***/ 78020:
158
- /***/ ((module) => {
159
-
160
- module.exports = require("next/dist/shared/lib/mitt.js");
161
-
162
- /***/ }),
163
-
164
- /***/ 64406:
165
- /***/ ((module) => {
166
-
167
- module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
168
-
169
- /***/ }),
170
-
171
- /***/ 24964:
172
- /***/ ((module) => {
173
-
174
- module.exports = require("next/dist/shared/lib/router-context.js");
175
-
176
- /***/ }),
177
-
178
- /***/ 93431:
179
- /***/ ((module) => {
180
-
181
- module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
182
-
183
- /***/ }),
184
-
185
- /***/ 11751:
186
- /***/ ((module) => {
187
-
188
- module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
189
-
190
- /***/ }),
191
-
192
- /***/ 46220:
193
- /***/ ((module) => {
194
-
195
- module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
196
-
197
- /***/ }),
198
-
199
- /***/ 10299:
200
- /***/ ((module) => {
201
-
202
- module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
203
-
204
- /***/ }),
205
-
206
- /***/ 23938:
207
- /***/ ((module) => {
208
-
209
- module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
210
-
211
- /***/ }),
212
-
213
- /***/ 29565:
214
- /***/ ((module) => {
215
-
216
- module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
217
-
218
- /***/ }),
219
-
220
- /***/ 35789:
221
- /***/ ((module) => {
222
-
223
- module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
224
-
225
- /***/ }),
226
-
227
- /***/ 1897:
228
- /***/ ((module) => {
229
-
230
- module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
231
-
232
- /***/ }),
233
-
234
- /***/ 1428:
235
- /***/ ((module) => {
236
-
237
- module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
238
-
239
- /***/ }),
240
-
241
- /***/ 28854:
242
- /***/ ((module) => {
243
-
244
- module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
245
-
246
- /***/ }),
247
-
248
- /***/ 91292:
249
- /***/ ((module) => {
250
-
251
- module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
252
-
253
- /***/ }),
254
-
255
- /***/ 34567:
256
- /***/ ((module) => {
257
-
258
- module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
259
-
260
- /***/ }),
261
-
262
- /***/ 80979:
263
- /***/ ((module) => {
264
-
265
- module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
266
-
267
- /***/ }),
268
-
269
- /***/ 93297:
270
- /***/ ((module) => {
271
-
272
- module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
273
-
274
- /***/ }),
275
-
276
- /***/ 36052:
277
- /***/ ((module) => {
278
-
279
- module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
280
-
281
- /***/ }),
282
-
283
- /***/ 84226:
284
- /***/ ((module) => {
285
-
286
- module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
287
-
288
- /***/ }),
289
-
290
- /***/ 95052:
291
- /***/ ((module) => {
292
-
293
- module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
294
-
295
- /***/ }),
296
-
297
- /***/ 59232:
298
- /***/ ((module) => {
299
-
300
- module.exports = require("next/dist/shared/lib/utils.js");
301
-
302
- /***/ }),
303
-
304
- /***/ 71853:
305
- /***/ ((module) => {
306
-
307
- module.exports = require("next/router");
308
-
309
- /***/ }),
310
-
311
- /***/ 16689:
312
- /***/ ((module) => {
313
-
314
- module.exports = require("react");
315
-
316
- /***/ }),
317
-
318
- /***/ 66405:
319
- /***/ ((module) => {
320
-
321
- module.exports = require("react-dom");
322
-
323
- /***/ }),
324
-
325
- /***/ 20997:
326
- /***/ ((module) => {
327
-
328
- module.exports = require("react/jsx-runtime");
329
-
330
- /***/ }),
331
-
332
- /***/ 73823:
333
- /***/ ((module) => {
334
-
335
- module.exports = require("tabbable");
336
-
337
- /***/ }),
338
-
339
- /***/ 97564:
340
- /***/ ((module) => {
341
-
342
- module.exports = import("chalk");;
343
-
344
- /***/ }),
345
-
346
- /***/ 15941:
347
- /***/ ((module) => {
348
-
349
- module.exports = import("swr");;
350
-
351
- /***/ })
352
-
353
- };
354
- ;
355
-
356
- // load runtime
357
- var __webpack_require__ = require("../webpack-runtime.js");
358
- __webpack_require__.C(exports);
359
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
360
- var __webpack_exports__ = __webpack_require__.X(0, [676,825,183,177,74], () => (__webpack_exec__(7200)));
361
- module.exports = __webpack_exports__;
362
-
363
- })();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../webpack-runtime.js","../chunks/676.js","../chunks/825.js","../chunks/183.js","../chunks/177.js","../chunks/74.js","../chunks/779.js","../chunks/988.js","../chunks/53.js","../chunks/693.js","../chunks/530.js","../chunks/854.js","../chunks/312.js","../../package.json","../../../node_modules/chalk/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/app-router-context.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/next/dist/shared/lib/image-blur-svg.js","../../../node_modules/next/dist/shared/lib/image-config-context.js","../../../node_modules/next/dist/shared/lib/image-config.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/mitt.js","../../../node_modules/next/dist/shared/lib/router-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../../../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../../../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/compare-states.js","../../../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../../../node_modules/next/dist/shared/lib/router/utils/format-url.js","../../../node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","../../../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/querystring.js","../../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../../../node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js","../../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../../../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../../../node_modules/chalk/source/index.js","../../../node_modules/next/router.js","../../../node_modules/next/package.json","../../../node_modules/chalk/source/utilities.js","../../../node_modules/next/dist/client/remove-base-path.js","../../../node_modules/chalk/source/vendor/ansi-styles/index.js","../../../node_modules/chalk/source/vendor/supports-color/index.js","../../../node_modules/next/dist/client/router.js","../../../node_modules/next/dist/client/has-base-path.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../../../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../../../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/path-match.js","../../../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../../../node_modules/next/dist/shared/lib/escape-regexp.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/router.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/client/normalize-trailing-slash.js","../../../node_modules/next/dist/client/route-loader.js","../../../node_modules/next/dist/client/script.js","../../../node_modules/next/dist/client/detect-domain-locale.js","../../../node_modules/next/dist/client/add-locale.js","../../../node_modules/next/dist/client/remove-locale.js","../../../node_modules/next/dist/client/add-base-path.js","../../../node_modules/next/dist/client/trusted-types.js","../../../node_modules/next/dist/client/request-idle-callback.js","../../../node_modules/next/dist/client/head-manager.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/next/dist/client/with-router.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../../../node_modules/@swc/helpers/lib/_object_without_properties_loose.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/compiled/path-to-regexp/index.js","../../../node_modules/next/dist/compiled/react-is/package.json","../../../node_modules/next/dist/compiled/react-is/index.js","../../../node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js","../../../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../../../src/components/region/RegionModal/index.ts","../../../src/components/cart/CartSidebar/index.ts","../../../src/components/search/SearchDropdown/index.ts","../../../package.json"]}