@faststore/core 3.85.0 → 3.86.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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +69 -69
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- 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/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/948.js +2 -2
- package/.next/server/chunks/9563.js +1 -1
- package/.next/server/chunks/ButtonSignIn.js +1 -1
- package/.next/server/functions-config-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/en-US/404.html +1 -1
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +1 -1
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/checkout.html +1 -1
- package/.next/server/pages/en-US/checkout.json +1 -1
- package/.next/server/pages/en-US/login.html +1 -1
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +1 -1
- package/.next/server/pages/en-US/s.json +1 -1
- package/.next/server/pages/en-US.html +1 -1
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages/pvt/account/403.js +1 -0
- package/.next/server/pages/pvt/account/404.js +1 -0
- package/.next/server/pages/pvt/account/404.js.nft.json +1 -0
- package/.next/server/pages/pvt/account/[...unknown].js +1 -0
- package/.next/server/pages/pvt/account/[...unknown].js.nft.json +1 -0
- package/.next/server/pages/pvt/account/orders/[id].js +1 -0
- package/.next/server/pages/pvt/account/orders/[id].js.nft.json +1 -0
- package/.next/server/pages/pvt/account/orders.js +1 -0
- package/.next/server/pages/pvt/account/orders.js.nft.json +1 -0
- package/.next/server/pages/{account → pvt/account}/profile.js +1 -1
- package/.next/server/pages/pvt/account/profile.js.nft.json +1 -0
- package/.next/server/pages/{account → pvt/account}/security.js +1 -1
- package/.next/server/pages/pvt/account/security.js.nft.json +1 -0
- package/.next/server/pages/pvt/account/user-details.js +1 -0
- package/.next/server/pages/pvt/account/user-details.js.nft.json +1 -0
- package/.next/server/pages/pvt/account.js +1 -0
- package/.next/server/pages/pvt/account.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/Cb9FGRxZ_RSDdvvnwgkkd/_buildManifest.js +1 -0
- package/.next/static/Cb9FGRxZ_RSDdvvnwgkkd/_ssgManifest.js +1 -0
- package/.next/static/chunks/9173-90b3de4508d9dc5a.js +1 -0
- package/.next/static/chunks/ButtonSignIn.c9bc322071e80856.js +1 -0
- package/.next/static/chunks/pages/{account/403-b65f508af4df4904.js → pvt/account/403-a1c5772740914141.js} +1 -1
- package/.next/static/chunks/pages/pvt/account/404-eaed7a7c92d499ff.js +1 -0
- package/.next/static/chunks/pages/pvt/account/[...unknown]-a8bcdec2e6ed7b0e.js +1 -0
- package/.next/static/chunks/pages/{account/orders/[id]-c2d355a49d409bb0.js → pvt/account/orders/[id]-3bdaf71be192669b.js} +1 -1
- package/.next/static/chunks/pages/pvt/account/orders-10475517a29223cb.js +1 -0
- package/.next/static/chunks/pages/pvt/account/profile-449314f16e1c132c.js +1 -0
- package/.next/static/chunks/pages/{account/security-7d12dd7a4ca973e6.js → pvt/account/security-8b024c8877f125d0.js} +1 -1
- package/.next/static/chunks/pages/pvt/account/user-details-0caf3ce4cb6df66e.js +1 -0
- package/.next/static/chunks/pages/pvt/account-412a3bb2b0f22dea.js +1 -0
- package/.next/static/chunks/webpack-7e1828f4509e6ef7.js +1 -0
- package/.next/trace +136 -136
- package/.turbo/turbo-build.log +23 -23
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx +1 -1
- package/src/components/account/MyAccountDrawer/ProfileSummary/ProfileSummary.tsx +1 -1
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterSlider.tsx +1 -1
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrders.tsx +4 -4
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +3 -5
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderDetails.tsx +1 -1
- package/src/components/ui/Button/ButtonSignIn/ButtonSignIn.tsx +1 -1
- package/src/pages/{account → pvt/account}/403.tsx +1 -1
- package/src/pages/{account → pvt/account}/[...unknown].tsx +1 -1
- package/src/pages/{account → pvt/account}/index.tsx +2 -2
- package/src/pages/{account → pvt/account}/orders/[id].tsx +2 -2
- package/src/pages/{account → pvt/account}/orders/index.tsx +2 -2
- package/src/pages/{account → pvt/account}/profile.tsx +2 -2
- package/src/pages/{account → pvt/account}/security.tsx +2 -2
- package/src/pages/{account → pvt/account}/user-details.tsx +3 -3
- package/src/sdk/account/getMyAccountRoutes.ts +11 -5
- package/.next/server/pages/account/403.js +0 -1
- package/.next/server/pages/account/403.js.nft.json +0 -1
- package/.next/server/pages/account/404.js +0 -1
- package/.next/server/pages/account/404.js.nft.json +0 -1
- package/.next/server/pages/account/[...unknown].js +0 -1
- package/.next/server/pages/account/[...unknown].js.nft.json +0 -1
- package/.next/server/pages/account/orders/[id].js +0 -1
- package/.next/server/pages/account/orders.js +0 -1
- package/.next/server/pages/account/orders.js.nft.json +0 -1
- package/.next/server/pages/account/profile.js.nft.json +0 -1
- package/.next/server/pages/account/security.js.nft.json +0 -1
- package/.next/server/pages/account/user-details.js +0 -1
- package/.next/server/pages/account/user-details.js.nft.json +0 -1
- package/.next/server/pages/account.js +0 -1
- package/.next/server/pages/account.js.nft.json +0 -1
- package/.next/static/2_pXL-ObRK0Pi5fwqWEUX/_buildManifest.js +0 -1
- package/.next/static/2_pXL-ObRK0Pi5fwqWEUX/_ssgManifest.js +0 -1
- package/.next/static/chunks/9173-8f06a93da67de94e.js +0 -1
- package/.next/static/chunks/ButtonSignIn.e767fc25322cf230.js +0 -1
- package/.next/static/chunks/pages/account/404-9a7f4c3464751182.js +0 -1
- package/.next/static/chunks/pages/account/[...unknown]-aad8638fc7323b61.js +0 -1
- package/.next/static/chunks/pages/account/orders-5dcb988493ad1770.js +0 -1
- package/.next/static/chunks/pages/account/profile-29f93f4c5a55bd87.js +0 -1
- package/.next/static/chunks/pages/account/user-details-143cb45d5080d1d9.js +0 -1
- package/.next/static/chunks/pages/account-377dfe7a5276ceca.js +0 -1
- package/.next/static/chunks/webpack-9c6d4ec20632d72a.js +0 -1
- /package/.next/server/pages/{account/orders/[id].js.nft.json → pvt/account/403.js.nft.json} +0 -0
- /package/src/pages/{account → pvt/account}/404.tsx +0 -0
- /package/src/pages/{account → pvt/account}/orders/styles.module.scss +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.85.0 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.
|
|
6
|
+
> @faststore/core@3.85.0 partytown /home/runner/work/faststore/faststore/packages/core
|
|
7
7
|
> partytown copylib ./public/~partytown
|
|
8
8
|
|
|
9
9
|
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
10
10
|
|
|
11
|
-
> @faststore/core@3.
|
|
11
|
+
> @faststore/core@3.85.0 generate /home/runner/work/faststore/faststore/packages/core
|
|
12
12
|
> na run generate:schema && na run generate:codegen && na run format:generated
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
> @faststore/core@3.
|
|
15
|
+
> @faststore/core@3.85.0 generate:schema /home/runner/work/faststore/faststore/packages/core
|
|
16
16
|
> tsx src/server/generator/generateGraphQLSchemaFile.ts
|
|
17
17
|
|
|
18
18
|
Schema GraphQL file generated successfully
|
|
19
19
|
|
|
20
|
-
> @faststore/core@3.
|
|
20
|
+
> @faststore/core@3.85.0 generate:codegen /home/runner/work/faststore/faststore/packages/core
|
|
21
21
|
> graphql-codegen
|
|
22
22
|
|
|
23
23
|
[STARTED] Parse Configuration
|
|
@@ -37,11 +37,11 @@ Running lifecycle hook "afterStart" scripts...
|
|
|
37
37
|
[CLI] Loading Documents
|
|
38
38
|
[CLI] Generating output
|
|
39
39
|
|
|
40
|
-
> @faststore/core@3.
|
|
40
|
+
> @faststore/core@3.85.0 format:generated /home/runner/work/faststore/faststore/packages/core
|
|
41
41
|
> prettier --write "@generated/**/*.{ts,js,tsx,jsx,json}" --loglevel error
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
> @faststore/core@3.
|
|
44
|
+
> @faststore/core@3.85.0 build /home/runner/work/faststore/faststore/packages/core
|
|
45
45
|
> next build
|
|
46
46
|
|
|
47
47
|
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
@@ -83,34 +83,34 @@ Route (pages) Size First Load JS
|
|
|
83
83
|
├ └ css/6d92375b6ee8276a.css 16.1 kB
|
|
84
84
|
├ ○ /404 1.55 kB 139 kB
|
|
85
85
|
├ ● /500 1.55 kB 139 kB
|
|
86
|
-
├ λ /
|
|
87
|
-
├
|
|
88
|
-
├ λ /
|
|
86
|
+
├ λ /api/graphql 0 B 107 kB
|
|
87
|
+
├ λ /api/health/live 0 B 107 kB
|
|
88
|
+
├ λ /api/health/ready 0 B 107 kB
|
|
89
|
+
├ λ /api/preview 0 B 107 kB
|
|
90
|
+
├ ● /checkout 737 B 138 kB
|
|
91
|
+
├ ● /login 1.68 kB 139 kB
|
|
92
|
+
├ λ /pvt/account 245 B 107 kB
|
|
93
|
+
├ ● /pvt/account/[...unknown] 283 B 107 kB
|
|
94
|
+
├ λ /pvt/account/403 2.45 kB 140 kB
|
|
89
95
|
├ └ css/b7bba8fce075688b.css 4.2 kB
|
|
90
|
-
├ λ /account/404
|
|
96
|
+
├ λ /pvt/account/404 2.14 kB 140 kB
|
|
91
97
|
├ └ css/5347dbc8b71de47d.css 4.25 kB
|
|
92
|
-
├ λ /account/orders
|
|
98
|
+
├ λ /pvt/account/orders 10.5 kB 148 kB
|
|
93
99
|
├ └ css/b7fc24e8f1eb011f.css 12.8 kB
|
|
94
|
-
├ λ /account/orders/[id]
|
|
100
|
+
├ λ /pvt/account/orders/[id] 12.2 kB 150 kB
|
|
95
101
|
├ └ css/297be4be3be36ff0.css 12.6 kB
|
|
96
|
-
├ λ /account/profile
|
|
102
|
+
├ λ /pvt/account/profile 1.79 kB 139 kB
|
|
97
103
|
├ └ css/831a1f72fe4b2d80.css 3.97 kB
|
|
98
|
-
├ λ /account/security
|
|
104
|
+
├ λ /pvt/account/security 3.77 kB 141 kB
|
|
99
105
|
├ └ css/ec7fdad03808422d.css 5.22 kB
|
|
100
|
-
├ λ /account/user-details
|
|
106
|
+
├ λ /pvt/account/user-details 1.74 kB 139 kB
|
|
101
107
|
├ └ css/e46393a76c5d93a9.css 4.17 kB
|
|
102
|
-
├ λ /api/graphql 0 B 107 kB
|
|
103
|
-
├ λ /api/health/live 0 B 107 kB
|
|
104
|
-
├ λ /api/health/ready 0 B 107 kB
|
|
105
|
-
├ λ /api/preview 0 B 107 kB
|
|
106
|
-
├ ● /checkout 737 B 138 kB
|
|
107
|
-
├ ● /login 1.68 kB 139 kB
|
|
108
108
|
└ ● /s 3.24 kB 156 kB
|
|
109
109
|
+ First Load JS shared by all 110 kB
|
|
110
110
|
├ chunks/framework-807b0f81cbc129f0.js 45.4 kB
|
|
111
111
|
├ chunks/main-f658704b53a96ab1.js 33.1 kB
|
|
112
112
|
├ chunks/pages/_app-02ac96e27a9cbbb4.js 24.7 kB
|
|
113
|
-
├ chunks/webpack-
|
|
113
|
+
├ chunks/webpack-7e1828f4509e6ef7.js 3.85 kB
|
|
114
114
|
└ css/24a5e8f6808266fe.css 3.53 kB
|
|
115
115
|
|
|
116
116
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.
|
|
2
|
+
> @faststore/core@3.85.0 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/
|
|
6
|
-
PASS test/
|
|
5
|
+
PASS test/server/cms/global.test.ts (26.637 s)
|
|
6
|
+
PASS test/utils/multipleTemplates.test.ts (27.384 s)
|
|
7
7
|
PASS test/server/cms/index.test.ts
|
|
8
|
-
PASS test/server/index.test.ts (30.
|
|
8
|
+
PASS test/server/index.test.ts (30.522 s)
|
|
9
9
|
|
|
10
10
|
Test Suites: 4 passed, 4 total
|
|
11
11
|
Tests: 22 passed, 22 total
|
|
12
12
|
Snapshots: 0 total
|
|
13
|
-
Time:
|
|
13
|
+
Time: 31.74 s
|
|
14
14
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.86.0](https://github.com/vtex/faststore/compare/v3.85.0...v3.86.0) (2025-09-15)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- ensure pvt route in my account pages SFS-2852 ([#3026](https://github.com/vtex/faststore/issues/3026)) ([93b089a](https://github.com/vtex/faststore/commit/93b089abd3bca04ef8fbdbecc7f81dd00a852987))
|
|
11
|
+
|
|
6
12
|
# [3.85.0](https://github.com/vtex/faststore/compare/v3.84.5...v3.85.0) (2025-09-15)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.86.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"ts-jest": "29.1.1",
|
|
109
109
|
"typescript": "5.3.2"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "3161c22026aedd19edb41f61c7717b4cc2a019b2"
|
|
112
112
|
}
|
|
@@ -39,7 +39,7 @@ export const ProfileSummary = ({
|
|
|
39
39
|
{showBuyerPortalManageLink && (
|
|
40
40
|
<Link
|
|
41
41
|
data-fs-profile-summary-org-link
|
|
42
|
-
href={`/buyer-portal/org-unit/${b2b?.unitId}`}
|
|
42
|
+
href={`/pvt/buyer-portal/org-unit/${b2b?.unitId}`}
|
|
43
43
|
>
|
|
44
44
|
Manage <Icon name="OpenInNew" width={23} height={23} />
|
|
45
45
|
</Link>
|
|
@@ -6,9 +6,9 @@ import { useRouter } from 'next/router'
|
|
|
6
6
|
import {
|
|
7
7
|
Button,
|
|
8
8
|
EmptyState,
|
|
9
|
-
Icon as UIIcon,
|
|
10
9
|
LinkButton,
|
|
11
10
|
SearchInputField,
|
|
11
|
+
Icon as UIIcon,
|
|
12
12
|
useUI,
|
|
13
13
|
type SearchInputFieldRef,
|
|
14
14
|
} from '@faststore/ui'
|
|
@@ -169,7 +169,7 @@ export default function MyAccountListOrders({
|
|
|
169
169
|
params.set('text', value)
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
window.location.href = `/account/orders?${params.toString()}`
|
|
172
|
+
window.location.href = `/pvt/account/orders?${params.toString()}`
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
300,
|
|
@@ -247,7 +247,7 @@ export default function MyAccountListOrders({
|
|
|
247
247
|
purchaseAgentId: filters.purchaseAgentId,
|
|
248
248
|
}}
|
|
249
249
|
onClearAll={() => {
|
|
250
|
-
window.location.href = '/account/orders'
|
|
250
|
+
window.location.href = '/pvt/account/orders'
|
|
251
251
|
}}
|
|
252
252
|
onRemoveFilter={(key, value) => {
|
|
253
253
|
const { page, clientEmail, ...updatedFilters } = { ...filters }
|
|
@@ -288,7 +288,7 @@ export default function MyAccountListOrders({
|
|
|
288
288
|
const params = new URLSearchParams(
|
|
289
289
|
filteredQuery as Record<string, string>
|
|
290
290
|
)
|
|
291
|
-
window.location.href = `/account/orders?${params.toString()}`
|
|
291
|
+
window.location.href = `/pvt/account/orders?${params.toString()}`
|
|
292
292
|
}}
|
|
293
293
|
/>
|
|
294
294
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Button, Icon } from '@faststore/ui'
|
|
2
2
|
import type { ServerListOrdersQueryQuery } from '@generated/graphql'
|
|
3
|
-
import { useRouter } from 'next/router'
|
|
4
3
|
import { useState } from 'react'
|
|
5
4
|
|
|
6
5
|
import MyAccountStatusBadge from 'src/components/account/components/MyAccountStatusBadge'
|
|
@@ -43,7 +42,6 @@ export function Pagination({
|
|
|
43
42
|
total: number
|
|
44
43
|
perPage: number
|
|
45
44
|
}) {
|
|
46
|
-
const router = useRouter()
|
|
47
45
|
const totalPages = Math.ceil(total / perPage)
|
|
48
46
|
const firstIndexLabel = page === 1 ? 1 : (page - 1) * perPage + 1
|
|
49
47
|
const lastIndexLabel =
|
|
@@ -53,12 +51,12 @@ export function Pagination({
|
|
|
53
51
|
|
|
54
52
|
const handlePageChange = (newPage: number) => {
|
|
55
53
|
const params = new URLSearchParams(window.location.search)
|
|
56
|
-
if (newPage === 1) {
|
|
54
|
+
if (newPage === 1 || newPage === 0) {
|
|
57
55
|
params.delete('page')
|
|
58
56
|
} else {
|
|
59
57
|
params.set('page', String(newPage))
|
|
60
58
|
}
|
|
61
|
-
window.location.href = `/account/orders${params.toString() ? `?${params}` : ''}`
|
|
59
|
+
window.location.href = `/pvt/account/orders${params.toString() ? `?${params}` : ''}`
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
return (
|
|
@@ -161,7 +159,7 @@ export default function MyAccountListOrdersTable({
|
|
|
161
159
|
max: MAX_ORDER_FIELDS,
|
|
162
160
|
})
|
|
163
161
|
|
|
164
|
-
const orderUrl = `/account/orders/${item.orderId}`
|
|
162
|
+
const orderUrl = `/pvt/account/orders/${item.orderId}`
|
|
165
163
|
const shippingEstimatedDate = item.ShippingEstimatedDate
|
|
166
164
|
? formatOrderDate(item.ShippingEstimatedDate, locale)
|
|
167
165
|
: '-'
|
|
@@ -31,7 +31,7 @@ export default function MyAccountOrderDetails({
|
|
|
31
31
|
<div className={styles.page} data-fs-order-details>
|
|
32
32
|
<header data-fs-order-details-header>
|
|
33
33
|
<div data-fs-order-details-header-title>
|
|
34
|
-
<a href="/account/orders">
|
|
34
|
+
<a href="/pvt/account/orders">
|
|
35
35
|
<UIIconButton
|
|
36
36
|
data-fs-order-details-header-back-button
|
|
37
37
|
size="small"
|
|
@@ -54,7 +54,7 @@ function Page({ globalSections: globalSectionsProp, accountName }: Props) {
|
|
|
54
54
|
subtitle="You don't have permission to access this page."
|
|
55
55
|
showLoader={false}
|
|
56
56
|
>
|
|
57
|
-
<LinkButton variant="secondary" href="/account">
|
|
57
|
+
<LinkButton variant="secondary" href="/pvt/account">
|
|
58
58
|
Back to Account
|
|
59
59
|
</LinkButton>
|
|
60
60
|
</EmptyState>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { validateUser } from 'src/sdk/account/validateUser'
|
|
2
1
|
import type { GetServerSideProps, NextPage } from 'next'
|
|
2
|
+
import { validateUser } from 'src/sdk/account/validateUser'
|
|
3
3
|
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
4
4
|
|
|
5
5
|
const MyAccountRedirectPage: NextPage = () => {
|
|
@@ -31,7 +31,7 @@ export const getServerSideProps: GetServerSideProps = async ({
|
|
|
31
31
|
|
|
32
32
|
return {
|
|
33
33
|
redirect: {
|
|
34
|
-
destination: '/account/profile',
|
|
34
|
+
destination: '/pvt/account/profile',
|
|
35
35
|
permanent: false,
|
|
36
36
|
},
|
|
37
37
|
}
|
|
@@ -24,7 +24,7 @@ import { execute } from 'src/server'
|
|
|
24
24
|
import { injectGlobalSections } from 'src/server/cms/global'
|
|
25
25
|
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
26
26
|
import { extractStatusFromError } from 'src/utils/utilities'
|
|
27
|
-
import storeConfig from '
|
|
27
|
+
import storeConfig from 'discovery.config'
|
|
28
28
|
|
|
29
29
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
30
30
|
...GLOBAL_COMPONENTS,
|
|
@@ -329,7 +329,7 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
329
329
|
|
|
330
330
|
return {
|
|
331
331
|
redirect: {
|
|
332
|
-
destination: isForbidden ? '/account/403' : '/account/404',
|
|
332
|
+
destination: isForbidden ? '/pvt/account/403' : '/pvt/account/404',
|
|
333
333
|
permanent: false,
|
|
334
334
|
},
|
|
335
335
|
}
|
|
@@ -27,7 +27,7 @@ import { getIsRepresentative } from 'src/sdk/account/getIsRepresentative'
|
|
|
27
27
|
import { validateUser } from 'src/sdk/account/validateUser'
|
|
28
28
|
import PageProvider from 'src/sdk/overrides/PageProvider'
|
|
29
29
|
import { extractStatusFromError } from 'src/utils/utilities'
|
|
30
|
-
import storeConfig from '
|
|
30
|
+
import storeConfig from 'discovery.config'
|
|
31
31
|
|
|
32
32
|
/* A list of components that can be used in the CMS. */
|
|
33
33
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
@@ -225,7 +225,7 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
225
225
|
|
|
226
226
|
return {
|
|
227
227
|
redirect: {
|
|
228
|
-
destination: isForbidden ? '/account/403' : '/account/404',
|
|
228
|
+
destination: isForbidden ? '/pvt/account/403' : '/pvt/account/404',
|
|
229
229
|
permanent: false,
|
|
230
230
|
},
|
|
231
231
|
}
|
|
@@ -28,7 +28,7 @@ import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
|
28
28
|
|
|
29
29
|
import PageProvider from 'src/sdk/overrides/PageProvider'
|
|
30
30
|
import { execute } from 'src/server'
|
|
31
|
-
import storeConfig from '
|
|
31
|
+
import storeConfig from 'discovery.config'
|
|
32
32
|
|
|
33
33
|
/* A list of components that can be used in the CMS. */
|
|
34
34
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
@@ -134,7 +134,7 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
134
134
|
if (profile.errors) {
|
|
135
135
|
const statusCode: number = (profile.errors[0] as any)?.extensions?.status
|
|
136
136
|
const destination: string =
|
|
137
|
-
statusCode === 403 ? '/account/403' : '/account/404'
|
|
137
|
+
statusCode === 403 ? '/pvt/account/403' : '/pvt/account/404'
|
|
138
138
|
|
|
139
139
|
return {
|
|
140
140
|
redirect: {
|
|
@@ -30,7 +30,7 @@ import { validateUser } from 'src/sdk/account/validateUser'
|
|
|
30
30
|
import PageProvider from 'src/sdk/overrides/PageProvider'
|
|
31
31
|
|
|
32
32
|
import { SecuritySection } from 'src/components/account/security'
|
|
33
|
-
import storeConfig from '
|
|
33
|
+
import storeConfig from 'discovery.config'
|
|
34
34
|
|
|
35
35
|
/* A list of components that can be used in the CMS. */
|
|
36
36
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
@@ -131,7 +131,7 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
131
131
|
if (security.errors) {
|
|
132
132
|
const statusCode: number = (security.errors[0] as any)?.extensions?.status
|
|
133
133
|
const destination: string =
|
|
134
|
-
statusCode === 403 ? '/account/403' : '/account/404'
|
|
134
|
+
statusCode === 403 ? '/pvt/account/403' : '/pvt/account/404'
|
|
135
135
|
|
|
136
136
|
return {
|
|
137
137
|
redirect: {
|
|
@@ -25,7 +25,7 @@ import PageProvider from 'src/sdk/overrides/PageProvider'
|
|
|
25
25
|
import { execute } from 'src/server'
|
|
26
26
|
import { injectGlobalSections } from 'src/server/cms/global'
|
|
27
27
|
import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
|
|
28
|
-
import storeConfig from '
|
|
28
|
+
import storeConfig from 'discovery.config'
|
|
29
29
|
|
|
30
30
|
/* A list of components that can be used in the CMS. */
|
|
31
31
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
@@ -140,7 +140,7 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
140
140
|
if (!isRepresentative) {
|
|
141
141
|
return {
|
|
142
142
|
redirect: {
|
|
143
|
-
destination: '/account',
|
|
143
|
+
destination: '/pvt/account',
|
|
144
144
|
permanent: false,
|
|
145
145
|
},
|
|
146
146
|
}
|
|
@@ -150,7 +150,7 @@ export const getServerSideProps: GetServerSideProps<
|
|
|
150
150
|
const statusCode: number = (userDetails.errors[0] as any)?.extensions
|
|
151
151
|
?.status
|
|
152
152
|
const destination: string =
|
|
153
|
-
statusCode === 403 ? '/account/403' : '/account/404'
|
|
153
|
+
statusCode === 403 ? '/pvt/account/403' : '/pvt/account/404'
|
|
154
154
|
|
|
155
155
|
return {
|
|
156
156
|
redirect: {
|
|
@@ -10,15 +10,15 @@ interface GetMyAccountRouteParams {
|
|
|
10
10
|
routes: Route[]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export const USER_DETAILS_ROUTE = '/account/user-details'
|
|
14
|
-
export const ORDERS_ROUTE = '/account/orders'
|
|
15
|
-
export const SECURITY_ROUTE = '/account/security'
|
|
13
|
+
export const USER_DETAILS_ROUTE = '/pvt/account/user-details'
|
|
14
|
+
export const ORDERS_ROUTE = '/pvt/account/orders'
|
|
15
|
+
export const SECURITY_ROUTE = '/pvt/account/security'
|
|
16
16
|
|
|
17
17
|
// This is the default route list for My Account, we should add then as the feature is implemented
|
|
18
18
|
const DEFAULT_ROUTES: Route[] = [
|
|
19
19
|
{
|
|
20
20
|
title: 'Profile',
|
|
21
|
-
route: '/account/profile',
|
|
21
|
+
route: '/pvt/account/profile',
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
title: 'Orders',
|
|
@@ -35,5 +35,11 @@ const DEFAULT_ROUTES: Route[] = [
|
|
|
35
35
|
]
|
|
36
36
|
|
|
37
37
|
export function getMyAccountRoutes({ routes }: GetMyAccountRouteParams) {
|
|
38
|
-
|
|
38
|
+
// Ensure all routes have the /pvt prefix
|
|
39
|
+
const normalizedRoutes = routes.map(({ route, ...rest }) => ({
|
|
40
|
+
...rest,
|
|
41
|
+
route: route.startsWith('/pvt') ? route : `/pvt${route}`,
|
|
42
|
+
}))
|
|
43
|
+
|
|
44
|
+
return [...DEFAULT_ROUTES, ...normalizedRoutes]
|
|
39
45
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=2761,e.ids=[2761,2888,660],e.modules={22586:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getServerSideProps:()=>getServerSideProps});var a=r(25487),s=r(16641),i=r(55551),n=r(13922),p=r(16886),c=r(7027),l=r(93839),u=r(14194),d=r(76924),x=r(23091),b=r(7947),g=r(56272),h=r(99563),S=r(70152),_=r(10278),m=r(67275),P=r(20997),v=e([c,l,b,h]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var o;o=r[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[c,l,b,h]=v.then?(await v)():v;let f=_objectSpread(_objectSpread(_objectSpread({},c.Z),x.Z),d.Z),q=a.pi,getServerSideProps=async e=>{let t=await (0,b.h)(e);if(!t)return{redirect:{destination:"/login",permanent:!1}};let{isFaststoreMyAccountEnabled:r,redirect:o}=(0,m.j)({query:e.query});if(!r)return{redirect:o};let[a,s,n]=(0,i.Tc)(e.previewData),[p,c,l,u,d]=await Promise.all([(0,S.fx)(_objectSpread(_objectSpread({},e.previewData?.contentType==="403"&&e.previewData),{},{contentType:"403"})),(0,h.h)({variables:{},operation:q},{headers:_objectSpread({},e.req.headers)}),a,s,n]),x=(0,_.z)({globalSections:l,globalSectionsHeader:u,globalSectionsFooter:d});return{props:{globalSections:x,accountName:c.data.accountName}}},__WEBPACK_DEFAULT_EXPORT__=function({globalSections:e,accountName:t}){let{sections:r,settings:o}=e??{};return P.jsx(g.ZP,{context:{globalSettings:o},children:(0,P.jsxs)(l.ZP,{globalSections:r,components:f,children:[P.jsx(s.NextSeo,{noindex:!0,nofollow:!0}),P.jsx(p.Z,{accountName:t,children:P.jsx(u.C,{title:"Unauthorized Access",titleIcon:{icon:"ShoppingCart",alt:"Shopping Cart"},subtitle:"You don't have permission to access this page.",showLoader:!1,children:P.jsx(n.Z,{variant:"secondary",href:"/account",children:"Back to Account"})})})]})})};o()}catch(e){o(e)}})},3477:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>x,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>f,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>m,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>S});var a=r(21314),s=r(36267),i=r(18400),n=r(42445),p=r(19630),c=r(22586),l=e([c,p]);[c,p]=l.then?(await l)():l;let u=(0,i.l)(c,"default"),d=(0,i.l)(c,"getStaticProps"),x=(0,i.l)(c,"getStaticPaths"),b=(0,i.l)(c,"getServerSideProps"),g=(0,i.l)(c,"config"),h=(0,i.l)(c,"reportWebVitals"),S=(0,i.l)(c,"unstable_getStaticProps"),_=(0,i.l)(c,"unstable_getStaticPaths"),m=(0,i.l)(c,"unstable_getStaticParams"),P=(0,i.l)(c,"unstable_getServerProps"),v=(0,i.l)(c,"unstable_getServerSideProps"),f=new a.PagesRouteModule({definition:{kind:s.x.PAGES,page:"/account/403",pathname:"/account/403",bundlePath:"",filename:""},components:{App:p.default,Document:n.default},userland:c});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},84802:e=>{e.exports=require("cookie")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},57343:e=>{e.exports=require("graphql")},36548:e=>{e.exports=require("graphql/language")},47881:e=>{e.exports=require("isomorphic-unfetch")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},89261:e=>{e.exports=require("postcss")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},14037:e=>{e.exports=import("@builder.io/partytown/react")},99664:e=>{e.exports=import("@envelop/core")},37886:e=>{e.exports=import("@envelop/graphql-jit")},84656:e=>{e.exports=import("@envelop/parser-cache")},36093:e=>{e.exports=import("@envelop/validation-cache")},45774:e=>{e.exports=import("@graphql-tools/load-files")},36550:e=>{e.exports=import("@graphql-tools/schema")},38722:e=>{e.exports=import("@graphql-tools/utils")},15941:e=>{e.exports=import("swr")},6113:e=>{e.exports=require("crypto")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var t=require("../../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,772,6804,9985,1554,5683,4913,4168,9630,2445,948,9563,7275,7947,3922,6886,1780,4194],()=>__webpack_exec__(3477));module.exports=r})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../api/dist/esm/package.json","../../../../../api/dist/esm/src/__generated__/schema.js","../../../../../api/dist/esm/src/directives/cacheControl.js","../../../../../api/dist/esm/src/index.js","../../../../../api/dist/esm/src/platforms/errors.js","../../../../../api/dist/esm/src/platforms/vtex/clients/commerce/index.js","../../../../../api/dist/esm/src/platforms/vtex/clients/fetch.js","../../../../../api/dist/esm/src/platforms/vtex/clients/index.js","../../../../../api/dist/esm/src/platforms/vtex/clients/search/index.js","../../../../../api/dist/esm/src/platforms/vtex/index.js","../../../../../api/dist/esm/src/platforms/vtex/loaders/collection.js","../../../../../api/dist/esm/src/platforms/vtex/loaders/index.js","../../../../../api/dist/esm/src/platforms/vtex/loaders/salesChannel.js","../../../../../api/dist/esm/src/platforms/vtex/loaders/simulation.js","../../../../../api/dist/esm/src/platforms/vtex/loaders/sku.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/aggregateOffer.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/aggregateRating.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/cancelOrder.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/collection.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/faceValue.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/facet.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/mutation.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/objectOrString.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/offer.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/processOrderAuthorization.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/product.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/productGroup.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/propertyValue.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/query.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/review.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/root.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/searchResult.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/seo.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/shippingSLA.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/skuVariations.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/subscribeToNewsletter.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/userOrder.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/validateCart.js","../../../../../api/dist/esm/src/platforms/vtex/resolvers/validateSession.js","../../../../../api/dist/esm/src/platforms/vtex/utils/canonical.js","../../../../../api/dist/esm/src/platforms/vtex/utils/channel.js","../../../../../api/dist/esm/src/platforms/vtex/utils/commercialAuth.js","../../../../../api/dist/esm/src/platforms/vtex/utils/contex.js","../../../../../api/dist/esm/src/platforms/vtex/utils/cookies.js","../../../../../api/dist/esm/src/platforms/vtex/utils/createNewAddress.js","../../../../../api/dist/esm/src/platforms/vtex/utils/enhanceCommercialOffer.js","../../../../../api/dist/esm/src/platforms/vtex/utils/enhanceSku.js","../../../../../api/dist/esm/src/platforms/vtex/utils/facets.js","../../../../../api/dist/esm/src/platforms/vtex/utils/getAddressOrderForm.js","../../../../../api/dist/esm/src/platforms/vtex/utils/md5.js","../../../../../api/dist/esm/src/platforms/vtex/utils/orderStatistics.js","../../../../../api/dist/esm/src/platforms/vtex/utils/productStock.js","../../../../../api/dist/esm/src/platforms/vtex/utils/propertyValue.js","../../../../../api/dist/esm/src/platforms/vtex/utils/sanitizeHtml.js","../../../../../api/dist/esm/src/platforms/vtex/utils/shouldUpdateShippingData.js","../../../../../api/dist/esm/src/platforms/vtex/utils/sku.js","../../../../../api/dist/esm/src/platforms/vtex/utils/skuVariants.js","../../../../../api/dist/esm/src/platforms/vtex/utils/slugify.js","../../../../../api/dist/esm/src/platforms/vtex/utils/sort.js","../../../../../api/dist/esm/src/platforms/vtex/utils/taxes.js","../../../../../api/dist/esm/src/typeDefs/index.js","../../../../../api/package.json","../../../../../components/dist/esm/atoms/Badge/Badge.js","../../../../../components/dist/esm/atoms/Badge/index.js","../../../../../components/dist/esm/atoms/Button/Button.js","../../../../../components/dist/esm/atoms/Button/index.js","../../../../../components/dist/esm/atoms/Checkbox/Checkbox.js","../../../../../components/dist/esm/atoms/Checkbox/index.js","../../../../../components/dist/esm/atoms/Icon/Icon.js","../../../../../components/dist/esm/atoms/Icon/index.js","../../../../../components/dist/esm/atoms/Input/Input.js","../../../../../components/dist/esm/atoms/Input/index.js","../../../../../components/dist/esm/atoms/Label/Label.js","../../../../../components/dist/esm/atoms/Label/index.js","../../../../../components/dist/esm/atoms/Link/Link.js","../../../../../components/dist/esm/atoms/Link/index.js","../../../../../components/dist/esm/atoms/List/List.js","../../../../../components/dist/esm/atoms/List/index.js","../../../../../components/dist/esm/atoms/Loader/Loader.js","../../../../../components/dist/esm/atoms/Loader/index.js","../../../../../components/dist/esm/atoms/Overlay/Overlay.js","../../../../../components/dist/esm/atoms/Overlay/index.js","../../../../../components/dist/esm/atoms/Price/Price.js","../../../../../components/dist/esm/atoms/Price/index.js","../../../../../components/dist/esm/atoms/Radio/Radio.js","../../../../../components/dist/esm/atoms/Radio/index.js","../../../../../components/dist/esm/atoms/SROnly/SROnly.js","../../../../../components/dist/esm/atoms/SROnly/index.js","../../../../../components/dist/esm/atoms/Select/Select.js","../../../../../components/dist/esm/atoms/Select/index.js","../../../../../components/dist/esm/atoms/Skeleton/Skeleton.js","../../../../../components/dist/esm/atoms/Skeleton/index.js","../../../../../components/dist/esm/atoms/Slider/Slider.js","../../../../../components/dist/esm/atoms/Slider/index.js","../../../../../components/dist/esm/atoms/Textarea/Textarea.js","../../../../../components/dist/esm/atoms/Textarea/index.js","../../../../../components/dist/esm/hooks/UIProvider.js","../../../../../components/dist/esm/hooks/index.js","../../../../../components/dist/esm/hooks/useFadeEffect.js","../../../../../components/dist/esm/hooks/useOnClickOutside.js","../../../../../components/dist/esm/hooks/useProductComparison.js","../../../../../components/dist/esm/hooks/useSKUMatrix.js","../../../../../components/dist/esm/hooks/useScrollDirection.js","../../../../../components/dist/esm/hooks/useSearch.js","../../../../../components/dist/esm/hooks/useSlideVisibility.js","../../../../../components/dist/esm/hooks/useSlider.js","../../../../../components/dist/esm/hooks/useTrapFocus.js","../../../../../components/dist/esm/index.js","../../../../../components/dist/esm/molecules/Accordion/Accordion.js","../../../../../components/dist/esm/molecules/Accordion/AccordionButton.js","../../../../../components/dist/esm/molecules/Accordion/AccordionItem.js","../../../../../components/dist/esm/molecules/Accordion/AccordionPanel.js","../../../../../components/dist/esm/molecules/Accordion/index.js","../../../../../components/dist/esm/molecules/Alert/Alert.js","../../../../../components/dist/esm/molecules/Alert/index.js","../../../../../components/dist/esm/molecules/Breadcrumb/Breadcrumb.js","../../../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js","../../../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbPure.js","../../../../../components/dist/esm/molecules/Breadcrumb/Divider.js","../../../../../components/dist/esm/molecules/Breadcrumb/ListItem.js","../../../../../components/dist/esm/molecules/Breadcrumb/index.js","../../../../../components/dist/esm/molecules/BuyButton/BuyButton.js","../../../../../components/dist/esm/molecules/BuyButton/index.js","../../../../../components/dist/esm/molecules/Card/Card.js","../../../../../components/dist/esm/molecules/Card/index.js","../../../../../components/dist/esm/molecules/Carousel/Carousel.js","../../../../../components/dist/esm/molecules/Carousel/CarouselBullets.js","../../../../../components/dist/esm/molecules/Carousel/CarouselItem.js","../../../../../components/dist/esm/molecules/Carousel/index.js","../../../../../components/dist/esm/molecules/CartItem/CartItem.js","../../../../../components/dist/esm/molecules/CartItem/CartItemImage.js","../../../../../components/dist/esm/molecules/CartItem/CartItemSummary.js","../../../../../components/dist/esm/molecules/CartItem/index.js","../../../../../components/dist/esm/molecules/CheckboxField/CheckboxField.js","../../../../../components/dist/esm/molecules/CheckboxField/index.js","../../../../../components/dist/esm/molecules/DiscountBadge/DiscountBadge.js","../../../../../components/dist/esm/molecules/DiscountBadge/index.js","../../../../../components/dist/esm/molecules/DiscountBadge/useDiscountPercent.js","../../../../../components/dist/esm/molecules/Dropdown/Dropdown.js","../../../../../components/dist/esm/molecules/Dropdown/DropdownButton.js","../../../../../components/dist/esm/molecules/Dropdown/DropdownItem.js","../../../../../components/dist/esm/molecules/Dropdown/DropdownMenu.js","../../../../../components/dist/esm/molecules/Dropdown/contexts/DropdownContext.js","../../../../../components/dist/esm/molecules/Dropdown/hooks/useDropdown.js","../../../../../components/dist/esm/molecules/Dropdown/hooks/useDropdownItem.js","../../../../../components/dist/esm/molecules/Dropdown/hooks/useDropdownPosition.js","../../../../../components/dist/esm/molecules/Dropdown/hooks/useDropdownTrigger.js","../../../../../components/dist/esm/molecules/Dropdown/index.js","../../../../../components/dist/esm/molecules/Gift/Gift.js","../../../../../components/dist/esm/molecules/Gift/GiftContent.js","../../../../../components/dist/esm/molecules/Gift/GiftImage.js","../../../../../components/dist/esm/molecules/Gift/index.js","../../../../../components/dist/esm/molecules/IconButton/IconButton.js","../../../../../components/dist/esm/molecules/IconButton/index.js","../../../../../components/dist/esm/molecules/InputField/InputField.js","../../../../../components/dist/esm/molecules/InputField/index.js","../../../../../components/dist/esm/molecules/LinkButton/LinkButton.js","../../../../../components/dist/esm/molecules/LinkButton/index.js","../../../../../components/dist/esm/molecules/Modal/Modal.js","../../../../../components/dist/esm/molecules/Modal/ModalBody.js","../../../../../components/dist/esm/molecules/Modal/ModalContent.js","../../../../../components/dist/esm/molecules/Modal/ModalFooter.js","../../../../../components/dist/esm/molecules/Modal/ModalHeader.js","../../../../../components/dist/esm/molecules/Modal/index.js","../../../../../components/dist/esm/molecules/NavbarLinks/NavbarLinks.js","../../../../../components/dist/esm/molecules/NavbarLinks/NavbarLinksList.js","../../../../../components/dist/esm/molecules/NavbarLinks/NavbarLinksListItem.js","../../../../../components/dist/esm/molecules/NavbarLinks/index.js","../../../../../components/dist/esm/molecules/OrderSummary/OrderSummary.js","../../../../../components/dist/esm/molecules/OrderSummary/index.js","../../../../../components/dist/esm/molecules/Popover/Popover.js","../../../../../components/dist/esm/molecules/Popover/index.js","../../../../../components/dist/esm/molecules/ProductCard/ProductCard.js","../../../../../components/dist/esm/molecules/ProductCard/ProductCardContent.js","../../../../../components/dist/esm/molecules/ProductCard/ProductCardImage.js","../../../../../components/dist/esm/molecules/ProductCard/index.js","../../../../../components/dist/esm/molecules/ProductPrice/ProductPrice.js","../../../../../components/dist/esm/molecules/ProductPrice/index.js","../../../../../components/dist/esm/molecules/ProductTitle/ProductTitle.js","../../../../../components/dist/esm/molecules/ProductTitle/index.js","../../../../../components/dist/esm/molecules/QuantitySelector/QuantitySelector.js","../../../../../components/dist/esm/molecules/QuantitySelector/index.js","../../../../../components/dist/esm/molecules/RadioField/RadioField.js","../../../../../components/dist/esm/molecules/RadioField/index.js","../../../../../components/dist/esm/molecules/RadioGroup/RadioGroup.js","../../../../../components/dist/esm/molecules/RadioGroup/RadioOption.js","../../../../../components/dist/esm/molecules/RadioGroup/index.js","../../../../../components/dist/esm/molecules/RadioGroup/useRadioGroup.js","../../../../../components/dist/esm/molecules/Rating/Rating.js","../../../../../components/dist/esm/molecules/Rating/index.js","../../../../../components/dist/esm/molecules/RatingField/RatingField.js","../../../../../components/dist/esm/molecules/RatingField/index.js","../../../../../components/dist/esm/molecules/RegionBar/RegionBar.js","../../../../../components/dist/esm/molecules/RegionBar/index.js","../../../../../components/dist/esm/molecules/SearchAutoComplete/SearchAutoComplete.js","../../../../../components/dist/esm/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js","../../../../../components/dist/esm/molecules/SearchAutoComplete/index.js","../../../../../components/dist/esm/molecules/SearchDropdown/SearchDropdown.js","../../../../../components/dist/esm/molecules/SearchDropdown/index.js","../../../../../components/dist/esm/molecules/SearchHistory/SearchHistory.js","../../../../../components/dist/esm/molecules/SearchHistory/SearchHistoryTerm.js","../../../../../components/dist/esm/molecules/SearchHistory/index.js","../../../../../components/dist/esm/molecules/SearchInputField/SearchInputField.js","../../../../../components/dist/esm/molecules/SearchInputField/index.js","../../../../../components/dist/esm/molecules/SearchProducts/SearchProductItem.js","../../../../../components/dist/esm/molecules/SearchProducts/SearchProductItemContent.js","../../../../../components/dist/esm/molecules/SearchProducts/SearchProductItemControl.js","../../../../../components/dist/esm/molecules/SearchProducts/SearchProductItemImage.js","../../../../../components/dist/esm/molecules/SearchProducts/SearchProducts.js","../../../../../components/dist/esm/molecules/SearchProducts/index.js","../../../../../components/dist/esm/molecules/SearchProvider/SearchProvider.js","../../../../../components/dist/esm/molecules/SearchProvider/index.js","../../../../../components/dist/esm/molecules/SearchTop/SearchTop.js","../../../../../components/dist/esm/molecules/SearchTop/SearchTopTerm.js","../../../../../components/dist/esm/molecules/SearchTop/index.js","../../../../../components/dist/esm/molecules/SelectField/SelectField.js","../../../../../components/dist/esm/molecules/SelectField/index.js","../../../../../components/dist/esm/molecules/SkuSelector/SkuSelector.js","../../../../../components/dist/esm/molecules/SkuSelector/index.js","../../../../../components/dist/esm/molecules/SkuSelector/useDefineVariant.js","../../../../../components/dist/esm/molecules/SkuSelector/useSkuSlug.js","../../../../../components/dist/esm/molecules/Table/Table.js","../../../../../components/dist/esm/molecules/Table/TableBody.js","../../../../../components/dist/esm/molecules/Table/TableCell.js","../../../../../components/dist/esm/molecules/Table/TableFooter.js","../../../../../components/dist/esm/molecules/Table/TableHead.js","../../../../../components/dist/esm/molecules/Table/TableRow.js","../../../../../components/dist/esm/molecules/Table/index.js","../../../../../components/dist/esm/molecules/Tag/Tag.js","../../../../../components/dist/esm/molecules/Tag/index.js","../../../../../components/dist/esm/molecules/TextareaField/TextareaField.js","../../../../../components/dist/esm/molecules/TextareaField/index.js","../../../../../components/dist/esm/molecules/Toast/Toast.js","../../../../../components/dist/esm/molecules/Toast/index.js","../../../../../components/dist/esm/molecules/Toggle/Toggle.js","../../../../../components/dist/esm/molecules/Toggle/index.js","../../../../../components/dist/esm/molecules/ToggleField/ToggleField.js","../../../../../components/dist/esm/molecules/ToggleField/index.js","../../../../../components/dist/esm/molecules/Tooltip/Tooltip.js","../../../../../components/dist/esm/molecules/Tooltip/index.js","../../../../../components/dist/esm/organisms/BannerText/BannerText.js","../../../../../components/dist/esm/organisms/BannerText/BannerTextContent.js","../../../../../components/dist/esm/organisms/BannerText/index.js","../../../../../components/dist/esm/organisms/CartSidebar/CartSidebar.js","../../../../../components/dist/esm/organisms/CartSidebar/CartSidebarFooter.js","../../../../../components/dist/esm/organisms/CartSidebar/CartSidebarList.js","../../../../../components/dist/esm/organisms/CartSidebar/index.js","../../../../../components/dist/esm/organisms/EmptyState/EmptyState.js","../../../../../components/dist/esm/organisms/EmptyState/index.js","../../../../../components/dist/esm/organisms/Filter/Filter.js","../../../../../components/dist/esm/organisms/Filter/FilterFacetBoolean.js","../../../../../components/dist/esm/organisms/Filter/FilterFacetBooleanItem.js","../../../../../components/dist/esm/organisms/Filter/FilterFacetRange.js","../../../../../components/dist/esm/organisms/Filter/FilterFacets.js","../../../../../components/dist/esm/organisms/Filter/FilterSlider.js","../../../../../components/dist/esm/organisms/Filter/index.js","../../../../../components/dist/esm/organisms/Hero/Hero.js","../../../../../components/dist/esm/organisms/Hero/HeroHeader.js","../../../../../components/dist/esm/organisms/Hero/HeroImage.js","../../../../../components/dist/esm/organisms/Hero/index.js","../../../../../components/dist/esm/organisms/ImageGallery/ImageGallery.js","../../../../../components/dist/esm/organisms/ImageGallery/ImageGallerySelector.js","../../../../../components/dist/esm/organisms/ImageGallery/ImageGalleryViewer.js","../../../../../components/dist/esm/organisms/ImageGallery/index.js","../../../../../components/dist/esm/organisms/Navbar/Navbar.js","../../../../../components/dist/esm/organisms/Navbar/NavbarButtons.js","../../../../../components/dist/esm/organisms/Navbar/NavbarHeader.js","../../../../../components/dist/esm/organisms/Navbar/NavbarRow.js","../../../../../components/dist/esm/organisms/Navbar/index.js","../../../../../components/dist/esm/organisms/NavbarSlider/NavbarSlider.js","../../../../../components/dist/esm/organisms/NavbarSlider/NavbarSliderContent.js","../../../../../components/dist/esm/organisms/NavbarSlider/NavbarSliderFooter.js","../../../../../components/dist/esm/organisms/NavbarSlider/NavbarSliderHeader.js","../../../../../components/dist/esm/organisms/NavbarSlider/index.js","../../../../../components/dist/esm/organisms/Newsletter/Newsletter.js","../../../../../components/dist/esm/organisms/Newsletter/NewsletterAddendum.js","../../../../../components/dist/esm/organisms/Newsletter/NewsletterContent.js","../../../../../components/dist/esm/organisms/Newsletter/NewsletterForm.js","../../../../../components/dist/esm/organisms/Newsletter/NewsletterHeader.js","../../../../../components/dist/esm/organisms/Newsletter/index.js","../../../../../components/dist/esm/organisms/OutOfStock/OutOfStock.js","../../../../../components/dist/esm/organisms/OutOfStock/index.js","../../../../../components/dist/esm/organisms/PaymentMethods/PaymentMethods.js","../../../../../components/dist/esm/organisms/PaymentMethods/index.js","../../../../../components/dist/esm/organisms/PriceRange/PriceRange.js","../../../../../components/dist/esm/organisms/PriceRange/index.js","../../../../../components/dist/esm/organisms/ProductComparison/ProductComparison.js","../../../../../components/dist/esm/organisms/ProductComparison/ProductComparisonSidebar.js","../../../../../components/dist/esm/organisms/ProductComparison/ProductComparisonToolbar.js","../../../../../components/dist/esm/organisms/ProductComparison/ProductComparisonTrigger.js","../../../../../components/dist/esm/organisms/ProductComparison/index.js","../../../../../components/dist/esm/organisms/ProductComparison/provider/ProductComparisonProvider.js","../../../../../components/dist/esm/organisms/ProductGrid/ProductGrid.js","../../../../../components/dist/esm/organisms/ProductGrid/ProductGridItem.js","../../../../../components/dist/esm/organisms/ProductGrid/index.js","../../../../../components/dist/esm/organisms/ProductShelf/ProductShelf.js","../../../../../components/dist/esm/organisms/ProductShelf/ProductShelfItem.js","../../../../../components/dist/esm/organisms/ProductShelf/ProductShelfItems.js","../../../../../components/dist/esm/organisms/ProductShelf/index.js","../../../../../components/dist/esm/organisms/RegionModal/RegionModal.js","../../../../../components/dist/esm/organisms/RegionModal/index.js","../../../../../components/dist/esm/organisms/SKUMatrix/SKUMatrix.js","../../../../../components/dist/esm/organisms/SKUMatrix/SKUMatrixSidebar.js","../../../../../components/dist/esm/organisms/SKUMatrix/SKUMatrixTrigger.js","../../../../../components/dist/esm/organisms/SKUMatrix/index.js","../../../../../components/dist/esm/organisms/SKUMatrix/provider/SKUMatrixProvider.js","../../../../../components/dist/esm/organisms/SearchInput/SearchInput.js","../../../../../components/dist/esm/organisms/SearchInput/index.js","../../../../../components/dist/esm/organisms/ShippingSimulation/ShippingSimulation.js","../../../../../components/dist/esm/organisms/ShippingSimulation/index.js","../../../../../components/dist/esm/organisms/SlideOver/SlideOver.js","../../../../../components/dist/esm/organisms/SlideOver/SlideOverHeader.js","../../../../../components/dist/esm/organisms/SlideOver/index.js","../../../../../components/package.json","../../../../../ui/dist/esm/components/atoms/Incentive/Incentive.js","../../../../../ui/dist/esm/components/atoms/Incentive/index.js","../../../../../ui/dist/esm/components/organisms/Tiles/Tile.js","../../../../../ui/dist/esm/components/organisms/Tiles/Tiles.js","../../../../../ui/dist/esm/components/organisms/Tiles/index.js","../../../../../ui/dist/esm/index.js","../../../../../ui/package.json","../../../../@generated/persisted-documents.json","../../../../@generated/schema.graphql","../../../../node_modules/@builder.io/partytown","../../../../node_modules/@envelop/core","../../../../node_modules/@envelop/graphql-jit","../../../../node_modules/@envelop/parser-cache","../../../../node_modules/@envelop/validation-cache","../../../../node_modules/@graphql-tools/load-files","../../../../node_modules/@graphql-tools/schema","../../../../node_modules/@graphql-tools/utils","../../../../node_modules/@vtex/client-cms","../../../../node_modules/@vtex/client-cp","../../../../node_modules/cookie","../../../../node_modules/deepmerge","../../../../node_modules/fast-deep-equal","../../../../node_modules/graphql","../../../../node_modules/isomorphic-unfetch","../../../../node_modules/next","../../../../node_modules/next-seo","../../../../node_modules/postcss","../../../../node_modules/react","../../../../node_modules/react-dom","../../../../node_modules/react-intersection-observer","../../../../node_modules/swr","../../../../package.json","../../../../src/components/search/SearchDropdown/index.ts","../../../../src/components/ui/Button/index.ts","../../../package.json","../../chunks/1270.js","../../chunks/1280.js","../../chunks/1454.js","../../chunks/1554.js","../../chunks/1780.js","../../chunks/1911.js","../../chunks/2230.js","../../chunks/2249.js","../../chunks/2430.js","../../chunks/2445.js","../../chunks/2570.js","../../chunks/2792.js","../../chunks/294.js","../../chunks/3006.js","../../chunks/3029.js","../../chunks/3483.js","../../chunks/3836.js","../../chunks/3882.js","../../chunks/3922.js","../../chunks/3945.js","../../chunks/416.js","../../chunks/4168.js","../../chunks/4194.js","../../chunks/4365.js","../../chunks/4451.js","../../chunks/4799.js","../../chunks/4913.js","../../chunks/5402.js","../../chunks/5683.js","../../chunks/5723.js","../../chunks/5796.js","../../chunks/6393.js","../../chunks/6698.js","../../chunks/6789.js","../../chunks/6804.js","../../chunks/6886.js","../../chunks/7169.js","../../chunks/7228.js","../../chunks/7275.js","../../chunks/7371.js","../../chunks/7692.js","../../chunks/772.js","../../chunks/7799.js","../../chunks/7947.js","../../chunks/8068.js","../../chunks/8071.js","../../chunks/83.js","../../chunks/8307.js","../../chunks/831.js","../../chunks/8335.js","../../chunks/8474.js","../../chunks/8482.js","../../chunks/8563.js","../../chunks/8569.js","../../chunks/8640.js","../../chunks/8687.js","../../chunks/870.js","../../chunks/8737.js","../../chunks/9088.js","../../chunks/9117.js","../../chunks/948.js","../../chunks/9563.js","../../chunks/9570.js","../../chunks/9630.js","../../chunks/9853.js","../../chunks/9985.js","../../chunks/9990.js","../../chunks/ButtonSignIn.js","../../chunks/Dropdown.js","../../chunks/DropdownButton.js","../../chunks/DropdownItem.js","../../chunks/DropdownMenu.js","../../chunks/FilterSkeleton.js","../../chunks/ScrollToTopButton.js","../../chunks/UIBannerText.js","../../chunks/UISKUMatrixSidebar.js","../../chunks/font-manifest.json","../../webpack-runtime.js"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=3,e.ids=[3,2888,660],e.modules={2991:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getServerSideProps:()=>getServerSideProps});var a=r(25487),s=r(16641),i=r(55551),p=r(16886),n=r(7027),c=r(93839),l=r(14194),u=r(76924),d=r(23091),x=r(7947),b=r(56272),g=r(99563),S=r(70152),m=r(10278),_=r(67275),P=r(20997),h=e([n,c,x,g]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var o;o=r[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[n,c,x,g]=h.then?(await h)():h;let v=_objectSpread(_objectSpread(_objectSpread({},n.Z),{},{EmptyState:l.C},d.Z),u.Z),f=a.pi,getServerSideProps=async e=>{let t=await (0,x.h)(e);if(!t)return{redirect:{destination:"/login",permanent:!1}};let{isFaststoreMyAccountEnabled:r,redirect:o}=(0,_.j)({query:e.query});if(!r)return{redirect:o};let[a,s,p]=(0,i.Tc)(e.previewData),[n,c,l,u,d]=await Promise.all([(0,S.fx)(_objectSpread(_objectSpread({},e.previewData?.contentType==="404"&&e.previewData),{},{contentType:"404"})),(0,g.h)({variables:{},operation:f},{headers:_objectSpread({},e.req.headers)}),a,s,p]),b=(0,m.z)({globalSections:l,globalSectionsHeader:u,globalSectionsFooter:d});return{props:{page:n,globalSections:b,accountName:c.data.accountName}}},__WEBPACK_DEFAULT_EXPORT__=function({page:{sections:e},globalSections:t,accountName:r}){let{sections:o,settings:a}=t??{};return P.jsx(b.ZP,{context:{globalSettings:a},children:(0,P.jsxs)(c.ZP,{globalSections:o,components:v,children:[P.jsx(s.NextSeo,{noindex:!0,nofollow:!0}),P.jsx(p.Z,{accountName:r,children:e&&e.length>0&&P.jsx(c.AI,{sections:e,components:v})})]})})};o()}catch(e){o(e)}})},18722:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>x,getStaticProps:()=>d,reportWebVitals:()=>S,routeModule:()=>f,unstable_getServerProps:()=>h,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>m});var a=r(21314),s=r(36267),i=r(18400),p=r(42445),n=r(19630),c=r(2991),l=e([c,n]);[c,n]=l.then?(await l)():l;let u=(0,i.l)(c,"default"),d=(0,i.l)(c,"getStaticProps"),x=(0,i.l)(c,"getStaticPaths"),b=(0,i.l)(c,"getServerSideProps"),g=(0,i.l)(c,"config"),S=(0,i.l)(c,"reportWebVitals"),m=(0,i.l)(c,"unstable_getStaticProps"),_=(0,i.l)(c,"unstable_getStaticPaths"),P=(0,i.l)(c,"unstable_getStaticParams"),h=(0,i.l)(c,"unstable_getServerProps"),v=(0,i.l)(c,"unstable_getServerSideProps"),f=new a.PagesRouteModule({definition:{kind:s.x.PAGES,page:"/account/404",pathname:"/account/404",bundlePath:"",filename:""},components:{App:n.default,Document:p.default},userland:c});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},84802:e=>{e.exports=require("cookie")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},57343:e=>{e.exports=require("graphql")},36548:e=>{e.exports=require("graphql/language")},47881:e=>{e.exports=require("isomorphic-unfetch")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},89261:e=>{e.exports=require("postcss")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},14037:e=>{e.exports=import("@builder.io/partytown/react")},99664:e=>{e.exports=import("@envelop/core")},37886:e=>{e.exports=import("@envelop/graphql-jit")},84656:e=>{e.exports=import("@envelop/parser-cache")},36093:e=>{e.exports=import("@envelop/validation-cache")},45774:e=>{e.exports=import("@graphql-tools/load-files")},36550:e=>{e.exports=import("@graphql-tools/schema")},38722:e=>{e.exports=import("@graphql-tools/utils")},15941:e=>{e.exports=import("swr")},6113:e=>{e.exports=require("crypto")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var t=require("../../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,772,6804,9985,1554,5683,4913,4168,9630,2445,948,9563,7275,7947,6886,1780,4194],()=>__webpack_exec__(18722));module.exports=r})();
|