@faststore/core 2.1.77 → 2.1.78
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.
- package/.next/BUILD_ID +1 -0
- package/.next/build-manifest.json +129 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/config.json +7 -0
- package/.next/cache/eslint/.cache_1gneedd +1 -0
- package/.next/cache/next-server.js.nft.json +1 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +44 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/chunks/143.js +106 -0
- package/.next/server/chunks/177.js +120 -0
- package/.next/server/chunks/183.js +94 -0
- package/.next/server/chunks/184.js +61 -0
- package/.next/server/chunks/186.js +113 -0
- package/.next/server/chunks/289.js +239 -0
- package/.next/server/chunks/312.js +697 -0
- package/.next/server/chunks/350.js +143 -0
- package/.next/server/chunks/483.js +650 -0
- package/.next/server/chunks/487.js +9142 -0
- package/.next/server/chunks/53.js +61 -0
- package/.next/server/chunks/530.js +626 -0
- package/.next/server/chunks/576.js +94 -0
- package/.next/server/chunks/650.js +9142 -0
- package/.next/server/chunks/676.js +32 -0
- package/.next/server/chunks/693.js +58 -0
- package/.next/server/chunks/71.js +1254 -0
- package/.next/server/chunks/74.js +4054 -0
- package/.next/server/chunks/753.js +509 -0
- package/.next/server/chunks/779.js +58 -0
- package/.next/server/chunks/825.js +4039 -0
- package/.next/server/chunks/854.js +72 -0
- package/.next/server/chunks/859.js +959 -0
- package/.next/server/chunks/907.js +1911 -0
- package/.next/server/chunks/933.js +517 -0
- package/.next/server/chunks/98.js +124 -0
- package/.next/server/chunks/988.js +211 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/pages/404.js +386 -0
- package/.next/server/pages/404.js.nft.json +1 -0
- package/.next/server/pages/500.js +388 -0
- package/.next/server/pages/500.js.nft.json +1 -0
- package/.next/server/pages/[...slug].js +1005 -0
- package/.next/server/pages/[...slug].js.nft.json +1 -0
- package/.next/server/pages/[slug]/p.js +2269 -0
- package/.next/server/pages/[slug]/p.js.nft.json +1 -0
- package/.next/server/pages/_app.js +280 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +352 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +164 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages/account.js +363 -0
- package/.next/server/pages/account.js.nft.json +1 -0
- package/.next/server/pages/api/graphql.js +365 -0
- package/.next/server/pages/api/graphql.js.nft.json +1 -0
- package/.next/server/pages/api/health/live.js +31 -0
- package/.next/server/pages/api/health/live.js.nft.json +1 -0
- package/.next/server/pages/api/health/ready.js +31 -0
- package/.next/server/pages/api/health/ready.js.nft.json +1 -0
- package/.next/server/pages/api/preview.js +148 -0
- package/.next/server/pages/api/preview.js.nft.json +1 -0
- package/.next/server/pages/checkout.js +363 -0
- package/.next/server/pages/checkout.js.nft.json +1 -0
- package/.next/server/pages/en-US/404.html +81 -0
- package/.next/server/pages/en-US/404.json +1 -0
- package/.next/server/pages/en-US/500.html +81 -0
- package/.next/server/pages/en-US/500.json +1 -0
- package/.next/server/pages/en-US/account.html +81 -0
- package/.next/server/pages/en-US/account.json +1 -0
- package/.next/server/pages/en-US/checkout.html +81 -0
- package/.next/server/pages/en-US/checkout.json +1 -0
- package/.next/server/pages/en-US/login.html +81 -0
- package/.next/server/pages/en-US/login.json +1 -0
- package/.next/server/pages/en-US/s.html +81 -0
- package/.next/server/pages/en-US/s.json +1 -0
- package/.next/server/pages/en-US.html +81 -0
- package/.next/server/pages/en-US.json +1 -0
- package/.next/server/pages/index.js +439 -0
- package/.next/server/pages/index.js.nft.json +1 -0
- package/.next/server/pages/login.js +368 -0
- package/.next/server/pages/login.js.nft.json +1 -0
- package/.next/server/pages/s.js +466 -0
- package/.next/server/pages/s.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +18 -0
- package/.next/server/webpack-api-runtime.js +229 -0
- package/.next/server/webpack-runtime.js +229 -0
- package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
- package/.next/static/chunks/148.3bb7e05cc5d1c1c4.js +1 -0
- package/.next/static/chunks/238-e5e4b2094f0e1df8.js +1 -0
- package/.next/static/chunks/243-8f5650ed908aa75c.js +1 -0
- package/.next/static/chunks/530.848b014622932b93.js +1 -0
- package/.next/static/chunks/548-ab84e9e8b49413ab.js +1 -0
- package/.next/static/chunks/603-ec6146708bdecb7a.js +1 -0
- package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
- package/.next/static/chunks/709.7bc5a25ce30abda6.js +1 -0
- package/.next/static/chunks/738-67a288ca3569cdbb.js +1 -0
- package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
- package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
- package/.next/static/chunks/988.d10040040cdfebbb.js +1 -0
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
- package/.next/static/chunks/main-fd466221927468fd.js +1 -0
- package/.next/static/chunks/pages/404-af78f7cd1d3c1f60.js +1 -0
- package/.next/static/chunks/pages/500-f6346ca5f9dc4fef.js +1 -0
- package/.next/static/chunks/pages/[...slug]-ca533c74c22cb787.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-2883c7ebb47a40ce.js +1 -0
- package/.next/static/chunks/pages/_app-895781b1c7b5bf56.js +1 -0
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
- package/.next/static/chunks/pages/account-05bd79fb78365e88.js +1 -0
- package/.next/static/chunks/pages/checkout-c973786e68f25a39.js +1 -0
- package/.next/static/chunks/pages/index-d521ce4f4e2b89a6.js +1 -0
- package/.next/static/chunks/pages/login-8deb9243376b6aa1.js +1 -0
- package/.next/static/chunks/pages/s-0e516ab36bb49c99.js +1 -0
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
- package/.next/static/chunks/webpack-b24d56844ddffec0.js +1 -0
- package/.next/static/css/0d056c673d2869bb.css +1 -0
- package/.next/static/css/527e334fa69cf40a.css +1 -0
- package/.next/static/css/6e1a7434f061d0ef.css +1 -0
- package/.next/static/css/9e76fef1c9ca89af.css +1 -0
- package/.next/static/css/a2eefb25a4608343.css +1 -0
- package/.next/static/css/c110411bf3c3f5d1.css +1 -0
- package/.next/static/css/cb7d1fcea42fab9c.css +1 -0
- package/.next/static/css/dcc281598933766a.css +1 -0
- package/.next/static/css/df588bb98c0b0ca6.css +1 -0
- package/.next/static/css/e3b039e8f5daf95f.css +1 -0
- package/.next/static/zojr9_x1jOHoJrsY2XQHe/_buildManifest.js +1 -0
- package/.next/static/zojr9_x1jOHoJrsY2XQHe/_ssgManifest.js +1 -0
- package/.next/trace +80 -0
- package/.turbo/turbo-build.log +3 -1
- package/package.json +8 -8
- package/public/~partytown/debug/partytown-atomics.js +556 -0
- package/public/~partytown/debug/partytown-media.js +374 -0
- package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
- package/public/~partytown/debug/partytown-sw.js +59 -0
- package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
- package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
- package/public/~partytown/debug/partytown.js +72 -0
- package/public/~partytown/partytown-atomics.js +2 -0
- package/public/~partytown/partytown-media.js +2 -0
- package/public/~partytown/partytown-sw.js +2 -0
- package/public/~partytown/partytown.js +2 -0
- package/src/pages/api/health/live.ts +5 -0
- package/src/pages/api/health/ready.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../webpack-runtime.js","../../chunks/676.js","../../chunks/825.js","../../chunks/487.js","../../chunks/183.js","../../chunks/177.js","../../chunks/74.js","../../chunks/53.js","../../chunks/779.js","../../chunks/854.js","../../chunks/933.js","../../chunks/184.js","../../chunks/71.js","../../chunks/753.js","../../chunks/350.js","../../chunks/693.js","../../chunks/988.js","../../chunks/530.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/has-base-path.js","../../../../node_modules/next/dist/client/router.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","../../../../@generated/graphql/persisted.json","../../../../src/components/region/RegionModal/index.ts","../../../../src/components/cart/CartSidebar/index.ts","../../../../src/components/search/SearchDropdown/index.ts","../../../../package.json"]}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var exports = {};
|
|
3
|
+
exports.id = 888;
|
|
4
|
+
exports.ids = [888];
|
|
5
|
+
exports.modules = {
|
|
6
|
+
|
|
7
|
+
/***/ 76917:
|
|
8
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
// ESM COMPAT FLAG
|
|
12
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13
|
+
|
|
14
|
+
// EXPORTS
|
|
15
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16
|
+
"default": () => (/* binding */ _app)
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
;// CONCATENATED MODULE: external "nextjs-progressbar"
|
|
20
|
+
const external_nextjs_progressbar_namespaceObject = require("nextjs-progressbar");
|
|
21
|
+
var external_nextjs_progressbar_default = /*#__PURE__*/__webpack_require__.n(external_nextjs_progressbar_namespaceObject);
|
|
22
|
+
// EXTERNAL MODULE: ../components/dist/esm/hooks/UIProvider.js
|
|
23
|
+
var UIProvider = __webpack_require__(16652);
|
|
24
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
25
|
+
var jsx_runtime_ = __webpack_require__(20997);
|
|
26
|
+
;// CONCATENATED MODULE: ./src/Layout.tsx
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
function Layout({
|
|
31
|
+
children
|
|
32
|
+
}) {
|
|
33
|
+
return /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
|
|
34
|
+
children: children
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* harmony default export */ const src_Layout = (Layout);
|
|
39
|
+
// EXTERNAL MODULE: external "react"
|
|
40
|
+
var external_react_ = __webpack_require__(16689);
|
|
41
|
+
// EXTERNAL MODULE: ../sdk/dist/analytics/wrap.js
|
|
42
|
+
var wrap = __webpack_require__(14950);
|
|
43
|
+
;// CONCATENATED MODULE: ../sdk/dist/analytics/useAnalyticsEvent.js
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
const useAnalyticsEvent = (handler) => {
|
|
47
|
+
const callback = (0,external_react_.useCallback)((message) => {
|
|
48
|
+
try {
|
|
49
|
+
if (message.data.name !== wrap/* ANALYTICS_EVENT_TYPE */.vi) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
handler((0,wrap/* unwrap */.Wg)(message.data));
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
console.error('Something went wrong while running Analytics handler');
|
|
56
|
+
}
|
|
57
|
+
}, [handler]);
|
|
58
|
+
(0,external_react_.useEffect)(() => {
|
|
59
|
+
window.addEventListener('message', callback);
|
|
60
|
+
return () => window.removeEventListener('message', callback);
|
|
61
|
+
}, [callback]);
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=useAnalyticsEvent.js.map
|
|
64
|
+
// EXTERNAL MODULE: ./faststore.config.js
|
|
65
|
+
var faststore_config = __webpack_require__(97183);
|
|
66
|
+
var faststore_config_default = /*#__PURE__*/__webpack_require__.n(faststore_config);
|
|
67
|
+
;// CONCATENATED MODULE: ./src/sdk/analytics/index.tsx
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
if (false) {}
|
|
72
|
+
|
|
73
|
+
const AnalyticsHandler = () => {
|
|
74
|
+
useAnalyticsEvent(event => {
|
|
75
|
+
// Cleans the ecommerce object before pushing a new one
|
|
76
|
+
// This prevents the new data from getting merged with the previous one
|
|
77
|
+
// which could lead do inaccurate and old data being sent with events
|
|
78
|
+
//
|
|
79
|
+
// source: https://developers.google.com/tag-manager/ecommerce-ga4?hl=pt-br#clearing_the_ecommerce_object
|
|
80
|
+
window.dataLayer.push({
|
|
81
|
+
ecommerce: null
|
|
82
|
+
});
|
|
83
|
+
window.dataLayer.push({
|
|
84
|
+
event: event.name,
|
|
85
|
+
ecommerce: event.params
|
|
86
|
+
});
|
|
87
|
+
__webpack_require__(73982)(`./${(faststore_config_default()).platform}`).then(({
|
|
88
|
+
default: sendEvent
|
|
89
|
+
}) => {
|
|
90
|
+
sendEvent(event);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
return null;
|
|
94
|
+
};
|
|
95
|
+
/* harmony default export */ const analytics = (AnalyticsHandler);
|
|
96
|
+
;// CONCATENATED MODULE: ./src/sdk/error/ErrorBoundary/ErrorBoundary.tsx
|
|
97
|
+
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; }
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
const getReloads = () => Number(window.sessionStorage.getItem('store:reloads') ?? '0');
|
|
102
|
+
|
|
103
|
+
const setReloads = reloads => window.sessionStorage.setItem('store:reloads', `${reloads}`);
|
|
104
|
+
|
|
105
|
+
const canRecover = () => getReloads() < 2;
|
|
106
|
+
|
|
107
|
+
const isFrameworkLevelError = error => error?.name === 'ChunkLoadError';
|
|
108
|
+
|
|
109
|
+
if (false) {}
|
|
110
|
+
|
|
111
|
+
class ErrorBoundary extends external_react_.Component {
|
|
112
|
+
constructor(...args) {
|
|
113
|
+
super(...args);
|
|
114
|
+
|
|
115
|
+
_defineProperty(this, "state", {
|
|
116
|
+
hasError: false,
|
|
117
|
+
error: null
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static getDerivedStateFromError(error) {
|
|
122
|
+
return {
|
|
123
|
+
hasError: true,
|
|
124
|
+
error
|
|
125
|
+
};
|
|
126
|
+
} // We can't accurately type the error here, since it could vary depending on
|
|
127
|
+
// what caused it. This is not standardized.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
componentDidCatch(error, errorInfo) {
|
|
131
|
+
console.error(`React Error: ${error.message} ${errorInfo.componentStack}`);
|
|
132
|
+
const errorId = 'unknown'; // prevent infinite loop
|
|
133
|
+
|
|
134
|
+
if (window.location.pathname.startsWith('/404') || window.location.pathname.startsWith('/500')) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const from = encodeURIComponent(window.location.pathname);
|
|
139
|
+
const is404 = error?.extensions?.exception?.status === 404;
|
|
140
|
+
|
|
141
|
+
if (isFrameworkLevelError(error) && canRecover()) {
|
|
142
|
+
setReloads(getReloads() + 1);
|
|
143
|
+
window.location.reload();
|
|
144
|
+
} else if (is404) {
|
|
145
|
+
window.location.href = `/404?from=${from}`;
|
|
146
|
+
} else {
|
|
147
|
+
window.location.href = `/500?from=${from}&errorId=${errorId}`;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
render() {
|
|
152
|
+
if (this.state.hasError && true) {
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return this.props.children;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* harmony default export */ const ErrorBoundary_ErrorBoundary = (ErrorBoundary);
|
|
162
|
+
;// CONCATENATED MODULE: ./src/sdk/error/ErrorBoundary/index.ts
|
|
163
|
+
|
|
164
|
+
;// CONCATENATED MODULE: ./src/pages/_app.tsx
|
|
165
|
+
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; }
|
|
166
|
+
|
|
167
|
+
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) { _app_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; }
|
|
168
|
+
|
|
169
|
+
function _app_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; }
|
|
170
|
+
|
|
171
|
+
// FastStore UI's base styles
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
function App({
|
|
183
|
+
Component,
|
|
184
|
+
pageProps
|
|
185
|
+
}) {
|
|
186
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)(ErrorBoundary_ErrorBoundary, {
|
|
187
|
+
children: [/*#__PURE__*/jsx_runtime_.jsx((external_nextjs_progressbar_default()), {
|
|
188
|
+
color: "var(--fs-color-primary-bkg);",
|
|
189
|
+
showOnShallow: false,
|
|
190
|
+
options: {
|
|
191
|
+
showSpinner: false
|
|
192
|
+
}
|
|
193
|
+
}), /*#__PURE__*/jsx_runtime_.jsx(analytics, {}), /*#__PURE__*/jsx_runtime_.jsx(UIProvider/* default */.Z, {
|
|
194
|
+
children: /*#__PURE__*/jsx_runtime_.jsx(src_Layout, {
|
|
195
|
+
children: /*#__PURE__*/jsx_runtime_.jsx(Component, _objectSpread({}, pageProps))
|
|
196
|
+
})
|
|
197
|
+
})]
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* harmony default export */ const _app = (App);
|
|
202
|
+
|
|
203
|
+
/***/ }),
|
|
204
|
+
|
|
205
|
+
/***/ 73982:
|
|
206
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
207
|
+
|
|
208
|
+
var map = {
|
|
209
|
+
"./vtex": [
|
|
210
|
+
65098,
|
|
211
|
+
98
|
|
212
|
+
],
|
|
213
|
+
"./vtex/": [
|
|
214
|
+
65098,
|
|
215
|
+
98
|
|
216
|
+
],
|
|
217
|
+
"./vtex/index": [
|
|
218
|
+
65098,
|
|
219
|
+
98
|
|
220
|
+
],
|
|
221
|
+
"./vtex/index.ts": [
|
|
222
|
+
65098,
|
|
223
|
+
98
|
|
224
|
+
],
|
|
225
|
+
"./vtex/search": [
|
|
226
|
+
29143,
|
|
227
|
+
143
|
|
228
|
+
],
|
|
229
|
+
"./vtex/search.ts": [
|
|
230
|
+
29143,
|
|
231
|
+
143
|
|
232
|
+
]
|
|
233
|
+
};
|
|
234
|
+
function webpackAsyncContext(req) {
|
|
235
|
+
if(!__webpack_require__.o(map, req)) {
|
|
236
|
+
return Promise.resolve().then(() => {
|
|
237
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
238
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
239
|
+
throw e;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
var ids = map[req], id = ids[0];
|
|
244
|
+
return __webpack_require__.e(ids[1]).then(() => {
|
|
245
|
+
return __webpack_require__(id);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
webpackAsyncContext.keys = () => (Object.keys(map));
|
|
249
|
+
webpackAsyncContext.id = 73982;
|
|
250
|
+
module.exports = webpackAsyncContext;
|
|
251
|
+
|
|
252
|
+
/***/ }),
|
|
253
|
+
|
|
254
|
+
/***/ 16689:
|
|
255
|
+
/***/ ((module) => {
|
|
256
|
+
|
|
257
|
+
"use strict";
|
|
258
|
+
module.exports = require("react");
|
|
259
|
+
|
|
260
|
+
/***/ }),
|
|
261
|
+
|
|
262
|
+
/***/ 20997:
|
|
263
|
+
/***/ ((module) => {
|
|
264
|
+
|
|
265
|
+
"use strict";
|
|
266
|
+
module.exports = require("react/jsx-runtime");
|
|
267
|
+
|
|
268
|
+
/***/ })
|
|
269
|
+
|
|
270
|
+
};
|
|
271
|
+
;
|
|
272
|
+
|
|
273
|
+
// load runtime
|
|
274
|
+
var __webpack_require__ = require("../webpack-runtime.js");
|
|
275
|
+
__webpack_require__.C(exports);
|
|
276
|
+
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
277
|
+
var __webpack_exports__ = __webpack_require__.X(0, [183,177], () => (__webpack_exec__(76917)));
|
|
278
|
+
module.exports = __webpack_exports__;
|
|
279
|
+
|
|
280
|
+
})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../webpack-runtime.js","../chunks/183.js","../chunks/177.js","../chunks/98.js","../chunks/143.js","../../package.json","../../../node_modules/nextjs-progressbar/package.json","../../../node_modules/next/dist/shared/lib/head-manager-context.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/nextjs-progressbar/dist/index.js","../../../node_modules/next/router.js","../../../node_modules/next/package.json","../../../node_modules/next/dist/client/remove-base-path.js","../../../node_modules/next/dist/client/has-base-path.js","../../../node_modules/next/dist/client/router.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","../../../package.json","../../../src/sdk/analytics/platform/vtex/index.ts","../../../src/sdk/analytics/platform/vtex/search.ts"]}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
var exports = {};
|
|
4
|
+
exports.id = 660;
|
|
5
|
+
exports.ids = [660];
|
|
6
|
+
exports.modules = {
|
|
7
|
+
|
|
8
|
+
/***/ 73714:
|
|
9
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10
|
+
|
|
11
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13
|
+
/* harmony export */ });
|
|
14
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
|
|
15
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
const GTM_DEBUG_QUERY_STRING = 'gtm_debug';
|
|
27
|
+
|
|
28
|
+
const useSnippet = opts => `${opts.partytownScript ? '!' : ''}window.location.search.includes('${GTM_DEBUG_QUERY_STRING}=')&&
|
|
29
|
+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
30
|
+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
31
|
+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
32
|
+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
33
|
+
})(window,document,'script',${JSON.stringify(opts.dataLayerName ?? 'dataLayer')},${JSON.stringify(opts.containerId)});`;
|
|
34
|
+
/**
|
|
35
|
+
* Google Tag Manager script adapted to be executed only when necessary.
|
|
36
|
+
*
|
|
37
|
+
* The first script adds the GTM script to partytown. It is meant for when regular users
|
|
38
|
+
* are browsing the website, so that loading and executing it doesn't affect performance
|
|
39
|
+
*
|
|
40
|
+
* The second script is meant for GTM debugging. Since debugging GTM inside partytown still doesn't work,
|
|
41
|
+
* it is only executed when the url includes the gtm_debug query string.
|
|
42
|
+
*
|
|
43
|
+
* Since the query string isn't accessible during SSR, the decision of which script should be executed
|
|
44
|
+
* is bundled with the script, and that's why we need to include both. The script isn't GTM itself, but
|
|
45
|
+
* the code who will, after being executed, add the GTM script to the page.
|
|
46
|
+
*
|
|
47
|
+
* https://developers.google.com/tag-manager/quickstart
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
function GoogleTagManager(props) {
|
|
52
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
53
|
+
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
|
|
54
|
+
type: "text/partytown",
|
|
55
|
+
dangerouslySetInnerHTML: {
|
|
56
|
+
__html: useSnippet(_objectSpread(_objectSpread({}, props), {}, {
|
|
57
|
+
partytownScript: true
|
|
58
|
+
}))
|
|
59
|
+
}
|
|
60
|
+
}, "gtm.partytown"), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
|
|
61
|
+
type: "text/javascript",
|
|
62
|
+
dangerouslySetInnerHTML: {
|
|
63
|
+
__html: useSnippet(_objectSpread(_objectSpread({}, props), {}, {
|
|
64
|
+
partytownScript: false
|
|
65
|
+
}))
|
|
66
|
+
}
|
|
67
|
+
}, "gtm")]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GoogleTagManager);
|
|
72
|
+
|
|
73
|
+
/***/ }),
|
|
74
|
+
|
|
75
|
+
/***/ 11696:
|
|
76
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
77
|
+
|
|
78
|
+
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
79
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
80
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
81
|
+
/* harmony export */ });
|
|
82
|
+
/* harmony import */ var _builder_io_partytown_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14037);
|
|
83
|
+
/* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97183);
|
|
84
|
+
/* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_1__);
|
|
85
|
+
/* harmony import */ var _GoogleTagManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73714);
|
|
86
|
+
/* harmony import */ var _vtex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24393);
|
|
87
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20997);
|
|
88
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
|
|
89
|
+
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_builder_io_partytown_react__WEBPACK_IMPORTED_MODULE_0__]);
|
|
90
|
+
_builder_io_partytown_react__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
const isString = obj => typeof obj === 'string';
|
|
100
|
+
|
|
101
|
+
const gtmContainerId = (_faststore_config__WEBPACK_IMPORTED_MODULE_1___default().analytics)?.gtmContainerId;
|
|
102
|
+
const includeGTM = typeof gtmContainerId === 'string';
|
|
103
|
+
const includeVTEX = (_faststore_config__WEBPACK_IMPORTED_MODULE_1___default().platform) === 'vtex';
|
|
104
|
+
|
|
105
|
+
if (false) {}
|
|
106
|
+
|
|
107
|
+
function ThirdPartyScripts() {
|
|
108
|
+
const forwards = [];
|
|
109
|
+
if (includeVTEX) forwards.push('sendrc', 'vtexaf');
|
|
110
|
+
if (includeGTM) forwards.push('dataLayer.push');
|
|
111
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
|
112
|
+
children: [includeGTM && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx(_GoogleTagManager__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
|
113
|
+
containerId: gtmContainerId
|
|
114
|
+
}), includeVTEX && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx(_vtex__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx(_builder_io_partytown_react__WEBPACK_IMPORTED_MODULE_0__.Partytown, {
|
|
115
|
+
// Variables to forward to from main to worker
|
|
116
|
+
forward: forwards
|
|
117
|
+
}, "partytown")]
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThirdPartyScripts);
|
|
122
|
+
__webpack_async_result__();
|
|
123
|
+
} catch(e) { __webpack_async_result__(e); } });
|
|
124
|
+
|
|
125
|
+
/***/ }),
|
|
126
|
+
|
|
127
|
+
/***/ 26975:
|
|
128
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
129
|
+
|
|
130
|
+
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
131
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
132
|
+
/* harmony export */ "Z": () => (/* reexport safe */ _ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_0__.Z)
|
|
133
|
+
/* harmony export */ });
|
|
134
|
+
/* harmony import */ var _ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11696);
|
|
135
|
+
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_0__]);
|
|
136
|
+
_ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
137
|
+
|
|
138
|
+
__webpack_async_result__();
|
|
139
|
+
} catch(e) { __webpack_async_result__(e); } });
|
|
140
|
+
|
|
141
|
+
/***/ }),
|
|
142
|
+
|
|
143
|
+
/***/ 24393:
|
|
144
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
145
|
+
|
|
146
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
147
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
148
|
+
/* harmony export */ });
|
|
149
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20997);
|
|
150
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
function VTEX() {
|
|
156
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
157
|
+
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
|
|
158
|
+
type: "text/partytown",
|
|
159
|
+
dangerouslySetInnerHTML: {
|
|
160
|
+
__html: `
|
|
161
|
+
window.sendrc=function(en,ed){window.NavigationCapture&&window.NavigationCapture.sendEvent(en,ed)};
|
|
162
|
+
`
|
|
163
|
+
}
|
|
164
|
+
}, "vtexrc.js-init"), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
|
|
165
|
+
type: "text/partytown",
|
|
166
|
+
async: true,
|
|
167
|
+
src: "https://io.vtex.com.br/rc/rc.js"
|
|
168
|
+
}, "vtexrc.js-script"), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
|
|
169
|
+
type: "text/partytown",
|
|
170
|
+
dangerouslySetInnerHTML: {
|
|
171
|
+
__html: `f=window.vtexaf=window.vtexaf||function(){(f.q=f.q||[]).push(arguments)};f.l=+new Date`
|
|
172
|
+
}
|
|
173
|
+
}, "vtex-af.js-init"), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
|
|
174
|
+
type: "text/partytown",
|
|
175
|
+
async: true,
|
|
176
|
+
src: "https://activity-flow.vtex.com/af/af.js"
|
|
177
|
+
}, "vtex-af.js-script")]
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VTEX);
|
|
182
|
+
|
|
183
|
+
/***/ }),
|
|
184
|
+
|
|
185
|
+
/***/ 33615:
|
|
186
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
// EXPORTS
|
|
190
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
191
|
+
"Q": () => (/* binding */ GlobalOverrides_WebFonts)
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
// UNUSED EXPORTS: default
|
|
195
|
+
|
|
196
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
197
|
+
var jsx_runtime_ = __webpack_require__(20997);
|
|
198
|
+
;// CONCATENATED MODULE: ./src/fonts/WebFonts.tsx
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/* eslint-disable @next/next/no-page-custom-font */
|
|
203
|
+
function WebFonts() {
|
|
204
|
+
return /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* harmony default export */ const fonts_WebFonts = (WebFonts);
|
|
208
|
+
;// CONCATENATED MODULE: ./src/customizations/fonts/WebFonts.tsx
|
|
209
|
+
/* WebFonts from core are default,
|
|
210
|
+
* can be override by src/fonts/WebFonts from starter.store along with --fs-text-face-body token
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/* harmony default export */ const customizations_fonts_WebFonts = (fonts_WebFonts);
|
|
214
|
+
;// CONCATENATED MODULE: ./src/customizations/components/overrides/WebFonts.tsx
|
|
215
|
+
|
|
216
|
+
const overrides = {
|
|
217
|
+
components: {
|
|
218
|
+
WebFonts: customizations_fonts_WebFonts
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
/* harmony default export */ const overrides_WebFonts = (overrides);
|
|
222
|
+
;// CONCATENATED MODULE: ./src/customizations/GlobalOverrides.tsx
|
|
223
|
+
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; }
|
|
224
|
+
|
|
225
|
+
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; }
|
|
226
|
+
|
|
227
|
+
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; }
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
const Components = _objectSpread({
|
|
233
|
+
WebFonts: fonts_WebFonts
|
|
234
|
+
}, overrides_WebFonts.components);
|
|
235
|
+
|
|
236
|
+
const GlobalOverrides_WebFonts = Components.WebFonts;
|
|
237
|
+
/* harmony default export */ const GlobalOverrides = ((/* unused pure expression or super */ null && (Components)));
|
|
238
|
+
|
|
239
|
+
/***/ }),
|
|
240
|
+
|
|
241
|
+
/***/ 59820:
|
|
242
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
243
|
+
|
|
244
|
+
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
245
|
+
__webpack_require__.r(__webpack_exports__);
|
|
246
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
247
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
248
|
+
/* harmony export */ });
|
|
249
|
+
/* harmony import */ var next_document__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56859);
|
|
250
|
+
/* harmony import */ var src_components_ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26975);
|
|
251
|
+
/* harmony import */ var src_customizations_GlobalOverrides__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33615);
|
|
252
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20997);
|
|
253
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
|
|
254
|
+
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_1__]);
|
|
255
|
+
src_components_ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
function Document() {
|
|
263
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(next_document__WEBPACK_IMPORTED_MODULE_0__.Html, {
|
|
264
|
+
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(next_document__WEBPACK_IMPORTED_MODULE_0__.Head, {
|
|
265
|
+
children: [!process.env.DISABLE_3P_SCRIPTS && /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_components_ThirdPartyScripts__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, {}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(src_customizations_GlobalOverrides__WEBPACK_IMPORTED_MODULE_2__/* .WebFonts */ .Q, {})]
|
|
266
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("body", {
|
|
267
|
+
className: "theme",
|
|
268
|
+
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(next_document__WEBPACK_IMPORTED_MODULE_0__.Main, {}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx(next_document__WEBPACK_IMPORTED_MODULE_0__.NextScript, {})]
|
|
269
|
+
})]
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Document);
|
|
274
|
+
__webpack_async_result__();
|
|
275
|
+
} catch(e) { __webpack_async_result__(e); } });
|
|
276
|
+
|
|
277
|
+
/***/ }),
|
|
278
|
+
|
|
279
|
+
/***/ 94140:
|
|
280
|
+
/***/ ((module) => {
|
|
281
|
+
|
|
282
|
+
module.exports = require("next/dist/server/get-page-files.js");
|
|
283
|
+
|
|
284
|
+
/***/ }),
|
|
285
|
+
|
|
286
|
+
/***/ 89716:
|
|
287
|
+
/***/ ((module) => {
|
|
288
|
+
|
|
289
|
+
module.exports = require("next/dist/server/htmlescape.js");
|
|
290
|
+
|
|
291
|
+
/***/ }),
|
|
292
|
+
|
|
293
|
+
/***/ 76368:
|
|
294
|
+
/***/ ((module) => {
|
|
295
|
+
|
|
296
|
+
module.exports = require("next/dist/server/utils.js");
|
|
297
|
+
|
|
298
|
+
/***/ }),
|
|
299
|
+
|
|
300
|
+
/***/ 56724:
|
|
301
|
+
/***/ ((module) => {
|
|
302
|
+
|
|
303
|
+
module.exports = require("next/dist/shared/lib/constants.js");
|
|
304
|
+
|
|
305
|
+
/***/ }),
|
|
306
|
+
|
|
307
|
+
/***/ 18743:
|
|
308
|
+
/***/ ((module) => {
|
|
309
|
+
|
|
310
|
+
module.exports = require("next/dist/shared/lib/html-context.js");
|
|
311
|
+
|
|
312
|
+
/***/ }),
|
|
313
|
+
|
|
314
|
+
/***/ 78524:
|
|
315
|
+
/***/ ((module) => {
|
|
316
|
+
|
|
317
|
+
module.exports = require("next/dist/shared/lib/is-plain-object.js");
|
|
318
|
+
|
|
319
|
+
/***/ }),
|
|
320
|
+
|
|
321
|
+
/***/ 16689:
|
|
322
|
+
/***/ ((module) => {
|
|
323
|
+
|
|
324
|
+
module.exports = require("react");
|
|
325
|
+
|
|
326
|
+
/***/ }),
|
|
327
|
+
|
|
328
|
+
/***/ 20997:
|
|
329
|
+
/***/ ((module) => {
|
|
330
|
+
|
|
331
|
+
module.exports = require("react/jsx-runtime");
|
|
332
|
+
|
|
333
|
+
/***/ }),
|
|
334
|
+
|
|
335
|
+
/***/ 14037:
|
|
336
|
+
/***/ ((module) => {
|
|
337
|
+
|
|
338
|
+
module.exports = import("@builder.io/partytown/react");;
|
|
339
|
+
|
|
340
|
+
/***/ })
|
|
341
|
+
|
|
342
|
+
};
|
|
343
|
+
;
|
|
344
|
+
|
|
345
|
+
// load runtime
|
|
346
|
+
var __webpack_require__ = require("../webpack-runtime.js");
|
|
347
|
+
__webpack_require__.C(exports);
|
|
348
|
+
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
349
|
+
var __webpack_exports__ = __webpack_require__.X(0, [676,859,183], () => (__webpack_exec__(59820)));
|
|
350
|
+
module.exports = __webpack_exports__;
|
|
351
|
+
|
|
352
|
+
})();
|