@faststore/core 3.98.1-dev.0 → 3.98.2
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 +36 -36
- 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 +3 -3
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/5133.js +1 -1
- package/.next/server/chunks/6952.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/en-US/404.html +2 -2
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/checkout.json +1 -1
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US/s.json +1 -1
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{_3pfyJetS8JQS5XIBSKy5 → RhuP_UJjSrpDj_sqLfUA9}/_buildManifest.js +1 -1
- package/.next/static/chunks/1756.52d871f95a5c4eb6.js +1 -0
- package/.next/static/chunks/{2221-f8edfdaa4839bdf0.js → 2221-b085ff74b21a2c2c.js} +1 -1
- package/.next/static/chunks/2564.5b54cc48177a2e73.js +1 -0
- package/.next/static/chunks/6943.28874182e20467d5.js +1 -0
- package/.next/static/chunks/{webpack-29438d2942bc7723.js → webpack-e3703857dd8c6937.js} +1 -1
- package/.next/trace +142 -142
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +7 -6
- package/CHANGELOG.md +10 -6
- package/package.json +7 -7
- package/src/components/region/RegionButton/RegionButton.tsx +5 -1
- package/src/components/ui/ProductGallery/ProductGalleryPage.tsx +3 -1
- package/.next/static/chunks/1756.89b7f413bb26ba74.js +0 -1
- package/.next/static/chunks/2564.273fd8b0db75b1c4.js +0 -1
- package/.next/static/chunks/6943.6bc97e925b54493d.js +0 -1
- /package/.next/static/{_3pfyJetS8JQS5XIBSKy5 → RhuP_UJjSrpDj_sqLfUA9}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.98.
|
|
2
|
+
> @faststore/core@3.98.1 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.98.
|
|
6
|
+
> @faststore/core@3.98.1 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.98.
|
|
11
|
+
> @faststore/core@3.98.1 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.98.
|
|
15
|
+
> @faststore/core@3.98.1 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.98.
|
|
20
|
+
> @faststore/core@3.98.1 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.98.
|
|
40
|
+
> @faststore/core@3.98.1 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.98.
|
|
44
|
+
> @faststore/core@3.98.1 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
|
|
@@ -59,8 +59,8 @@ https://nextjs.org/telemetry
|
|
|
59
59
|
Collecting page data ...
|
|
60
60
|
Generating static pages (0/6) ...
|
|
61
61
|
|
|
62
62
|
Generating static pages (1/6)
|
|
63
|
-
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
64
63
|
|
|
65
64
|
Generating static pages (2/6)
|
|
65
|
+
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
66
66
|
|
|
67
67
|
Generating static pages (4/6)
|
|
68
68
|
|
|
69
69
|
✓ Generating static pages (6/6)
|
|
70
70
|
Finalizing page optimization ...
|
|
@@ -104,7 +104,7 @@ Route (pages) Size First Load JS
|
|
|
104
104
|
├ chunks/framework-d514426edf885c68.js 45.4 kB
|
|
105
105
|
├ chunks/main-edeb2c6a5c48bb3f.js 33.2 kB
|
|
106
106
|
├ chunks/pages/_app-735c745509e1e8d6.js 26.1 kB
|
|
107
|
-
├ chunks/webpack-
|
|
107
|
+
├ chunks/webpack-e3703857dd8c6937.js 3.89 kB
|
|
108
108
|
└ css/8a513f4b536b0ab0.css 9.18 kB
|
|
109
109
|
|
|
110
110
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.98.
|
|
2
|
+
> @faststore/core@3.98.1 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/utils/multipleTemplates.test.ts (12.
|
|
6
|
-
PASS test/utils/clearCookies.test.ts (
|
|
5
|
+
PASS test/utils/multipleTemplates.test.ts (12.773 s)
|
|
6
|
+
PASS test/utils/clearCookies.test.ts (12.588 s)
|
|
7
7
|
PASS test/server/cms/global.test.ts
|
|
8
8
|
PASS test/utils/cookieCacheBusting.test.ts
|
|
9
|
-
PASS test/server/cms/index.test.ts
|
|
10
|
-
PASS test/server/index.test.ts (
|
|
9
|
+
PASS test/server/cms/index.test.ts (5.667 s)
|
|
10
|
+
PASS test/server/index.test.ts (23.994 s)
|
|
11
|
+
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
|
|
11
12
|
|
|
12
13
|
Test Suites: 6 passed, 6 total
|
|
13
14
|
Tests: 47 passed, 47 total
|
|
14
15
|
Snapshots: 0 total
|
|
15
|
-
Time:
|
|
16
|
+
Time: 25.315 s
|
|
16
17
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,17 @@
|
|
|
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.98.
|
|
6
|
+
## [3.98.2](https://github.com/vtex/faststore/compare/v3.98.1...v3.98.2) (2026-04-09)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- unsafe props ternary ([#3254](https://github.com/vtex/faststore/issues/3254)) ([00f35b5](https://github.com/vtex/faststore/commit/00f35b5b49a756b6de84d1739ae157e3f074f01e))
|
|
11
|
+
|
|
12
|
+
## [3.98.1](https://github.com/vtex/faststore/compare/v3.98.0...v3.98.1) (2026-04-07)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- simplify city and postal code display logic in `RegionBar` and `RegionButton` ([#3259](https://github.com/vtex/faststore/issues/3259)) ([8944bee](https://github.com/vtex/faststore/commit/8944bee9cb92ccea2b6ca24309cfa5478b6f4d0d))
|
|
9
17
|
|
|
10
18
|
# 3.98.0 (2026-03-27)
|
|
11
19
|
|
|
@@ -17,10 +25,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
17
25
|
|
|
18
26
|
- version 2026 03 27 ([#3251](https://github.com/vtex/faststore/issues/3251)) ([f330a43](https://github.com/vtex/faststore/commit/f330a43661567ad8edb468acd3416bb7ffacd8b6))
|
|
19
27
|
|
|
20
|
-
# [3.98.0-dev.10](https://github.com/vtex/faststore/compare/v3.98.0-dev.9...v3.98.0-dev.10) (2026-03-27)
|
|
21
|
-
|
|
22
|
-
**Note:** Version bump only for package @faststore/core
|
|
23
|
-
|
|
24
28
|
# [3.98.0-dev.9](https://github.com/vtex/faststore/compare/v3.98.0-dev.8...v3.98.0-dev.9) (2026-03-27)
|
|
25
29
|
|
|
26
30
|
**Note:** Version bump only for package @faststore/core
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.98.
|
|
3
|
+
"version": "3.98.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"@envelop/graphql-jit": "^8.0.3",
|
|
52
52
|
"@envelop/parser-cache": "^6.0.2",
|
|
53
53
|
"@envelop/validation-cache": "^6.0.2",
|
|
54
|
-
"@faststore/api": "3.98.
|
|
55
|
-
"@faststore/graphql-utils": "^3.98.
|
|
56
|
-
"@faststore/lighthouse": "3.98.
|
|
57
|
-
"@faststore/sdk": "3.98.
|
|
58
|
-
"@faststore/ui": "3.98.1
|
|
54
|
+
"@faststore/api": "3.98.0",
|
|
55
|
+
"@faststore/graphql-utils": "^3.98.0",
|
|
56
|
+
"@faststore/lighthouse": "3.98.0",
|
|
57
|
+
"@faststore/sdk": "3.98.0",
|
|
58
|
+
"@faststore/ui": "3.98.1",
|
|
59
59
|
"@graphql-codegen/cli": "5.0.2",
|
|
60
60
|
"@graphql-codegen/client-preset": "4.2.6",
|
|
61
61
|
"@graphql-codegen/typescript": "4.0.7",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"ts-jest": "29.1.1",
|
|
125
125
|
"typescript": "5.3.2"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "74fa74288786a31a82615d9e5db1ec85dd85d918"
|
|
128
128
|
}
|
|
@@ -19,7 +19,11 @@ function RegionButton({ icon, label }: { icon: string; label: string }) {
|
|
|
19
19
|
onClick={openModal}
|
|
20
20
|
ref={regionButtonRef}
|
|
21
21
|
>
|
|
22
|
-
{
|
|
22
|
+
{postalCode
|
|
23
|
+
? city
|
|
24
|
+
? `${textToTitleCase(city)}, ${postalCode}`
|
|
25
|
+
: postalCode
|
|
26
|
+
: label}
|
|
23
27
|
</UIButton>
|
|
24
28
|
)
|
|
25
29
|
}
|
|
@@ -63,7 +63,9 @@ function ProductGalleryPage({
|
|
|
63
63
|
firstPage={firstPage}
|
|
64
64
|
title={title}
|
|
65
65
|
searchId={searchId}
|
|
66
|
-
buildExtraProductProps={
|
|
66
|
+
buildExtraProductProps={
|
|
67
|
+
(searchId && buildExtraProductProps) || undefined
|
|
68
|
+
}
|
|
67
69
|
/>
|
|
68
70
|
</Sentinel>
|
|
69
71
|
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1756],{22344:function(e,t,n){"use strict";n.d(t,{Z:function(){return NavbarLinks_NavbarLinks}});var r=n(47723),i=n(2693),o=n(94122),a=n(46355),s=n(44194),c=n(83339),l=n(2614),u=n(12306),b=n(44997),p=n(4912),d=n(31549),RegionButton_RegionButton=function(e){var{icon:t,label:n}=e,{city:r,postalCode:i}=(0,u.kP)(),o=(0,s.useRef)(null),{openModal:a}=(0,p.MS)(o);return(0,d.jsx)(c.Z,{variant:"tertiary",size:"small",icon:(0,d.jsx)(l.Z,{name:t,width:18,height:18,weight:"bold"}),iconPosition:"left",onClick:a,ref:o,children:r&&i?"".concat((0,b._W)(r),", ").concat(i):n})},f=n(16652),j=n(57966),RegionFilterButton_RegionFilterButton=function(e){var t,{filterByPickupPoint:{label:n,icon:{icon:r,alt:i}={}}={}}=e,{openRegionSlider:o}=(0,f.l8)(),{globalPickupPoint:a}=(0,j.z0)(),u=(0,s.useRef)(null);return(0,d.jsx)(c.Z,{variant:"tertiary",size:"small",icon:(0,d.jsx)(l.Z,{name:r,width:18,height:18,weight:"bold","aria-label":i}),iconPosition:"left",onClick:()=>o(f.gK.globalChangePickupPoint),ref:u,children:null!==(t=null==a?void 0:a.name)&&void 0!==t?t:n})},v=n(978),h=n(96991),g=n(99471),k=["links","onClickLink","region"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var NavbarLinks_NavbarLinks=function(e){var{links:t,onClickLink:n,region:{icon:r,label:s,shouldDisplayRegion:c}}=e,l=(0,i.Z)(e,k),{NavbarLinks:b,NavbarLinksList:p}=(0,h.r3)(),f=(0,o.useRouter)(),{postalCode:m}=(0,u.kP)(),{deliveryPromise:{filterByPickupPoint:y}={}}=(0,g.T)(),{isEnabled:_}=(0,j.z0)(),O=_&&!!m&&(null==y?void 0:y.enabled);return(0,d.jsx)(b.Component,_objectSpread(_objectSpread(_objectSpread({},l),b.props),{},{children:(0,d.jsxs)("div",{"data-fs-navbar-links-wrapper":!0,"data-fs-content":"navbar",children:[c&&(0,d.jsx)(RegionButton_RegionButton,{icon:r,label:s}),O&&(0,d.jsx)(RegionFilterButton_RegionFilterButton,{filterByPickupPoint:y}),(0,d.jsx)(p.Component,_objectSpread(_objectSpread({},p.props),{},{children:t.map(e=>{var{url:t,text:r}=e;return(0,d.jsx)(a.Z,{children:(0,d.jsx)(v.Z,{variant:"display",href:f.asPath.includes(t)?"#":t,prefetch:!1,onClick:n,children:r})},r)})}))]})}))}},11756:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return NavbarSlider_NavbarSlider}});var r=n(47723),i=n(16652),o=n(13666),a=n(10792),s=n(44194),c=n(10271),l=n.n(c),u=n(22344),b=n(27656),p=n(978),d=n(37322),f=n(34828),j=n(96991),v=n(12306),h=n(61062),g=n.n(h),k=n(31549);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var NavbarSlider_NavbarSlider=function(e){var t,{logo:n,links:r,region:c,home:{label:h},signIn:{button:m}}=e,{NavbarSlider:y,NavbarSliderHeader:_,NavbarSliderContent:O,NavbarSliderFooter:x,_experimentalButtonSignIn:P}=(0,j.r3)(),{closeNavbar:w}=(0,i.l8)(),{fade:S,fadeOut:Z}=(0,o.b)(),{b2b:C,isSessionReady:R}=(0,v.kP)(),E=null===(t=l().experimental)||void 0===t?void 0:t.enableFaststoreMyAccount,N=null==C?void 0:C.isRepresentative;return(0,k.jsxs)(y.Component,_objectSpread(_objectSpread({fade:S,onDismiss:Z,overlayProps:{className:"section ".concat(g().section," section-navbar-slider")},onTransitionEnd:()=>"out"===S&&w()},y.props),{},{children:[(0,k.jsx)(_.Component,_objectSpread(_objectSpread({onClose:Z},_.props),{},{children:(0,k.jsx)(p.Z,{"data-fs-navbar-slider-logo":!0,href:n.link?n.link.url:"/",title:n.link?n.link.title:h,onClick:Z,children:(0,k.jsx)(d.Z,{alt:n.alt,src:n.src})})})),(0,k.jsx)(O.Component,_objectSpread(_objectSpread({},O.props),{},{children:(0,k.jsx)(u.Z,{onClickLink:Z,links:r,region:c})})),(0,k.jsx)(x.Component,_objectSpread(_objectSpread({},x.props),{},{children:(0,k.jsx)(s.Suspense,{fallback:(0,k.jsx)(b.Z,{}),children:R?E&&N?(0,k.jsx)(f.o,{icon:m.icon,isRepresentative:N}):(0,k.jsx)(P.Component,_objectSpread({},m)):(0,k.jsx)(a.Z,{"data-fs-navbar-slider-signin-skeleton":!0,size:{width:"140px",height:"2.5rem"}})})}))]}))}},27656:function(e,t,n){"use strict";var r=n(13922),i=n(2614),o=n(31549);t.Z=function(){return(0,o.jsx)(r.Z,{"data-fs-button-signin-link":!0,href:"/login",className:"text__title-mini",variant:"tertiary",icon:(0,o.jsx)(i.Z,{name:"User",width:18,height:18,weight:"bold"}),iconPosition:"left",children:(0,o.jsx)("span",{children:"Sign In"})})}},61062:function(e){e.exports={section:"section_section__ZKxbf"}},13922:function(e,t,n){"use strict";var r=n(44194);t.Z=function({icon:e,inverse:t,children:n,disabled:i,iconPosition:o,size:a="regular",variant:s="primary",testId:c="fs-link-button",...l}){let u=(0,r.useRef)(null);return r.createElement("a",{ref:u,"data-fs-button":!0,"data-fs-link-button":!0,"data-fs-button-size":a,"data-fs-button-variant":s,"data-fs-button-inverse":t,"data-fs-button-disabled":i,onFocus:function(e){e.preventDefault(),i&&u.current?.blur()},"data-testid":c,...l},r.createElement("div",{"data-fs-button-wrapper":!0},!!e&&"left"===o&&r.createElement("span",{"data-fs-button-icon":!0},e),n&&r.createElement("span",null,n),!!e&&"right"===o&&r.createElement("span",{"data-fs-button-icon":!0},e)))}},46355:function(e,t,n){"use strict";var r=n(44194);let i=(0,r.forwardRef)(function({children:e,testId:t="fs-navbar-links-list-item",...n},i){return r.createElement("li",{"data-fs-navbar-links-list-item":!0,ref:i,"data-testid":t,...n},e)});t.Z=i}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2564],{22344:function(e,n,t){t.d(n,{Z:function(){return NavbarLinks_NavbarLinks}});var r=t(47723),i=t(2693),o=t(94122),a=t(46355),l=t(44194),c=t(83339),s=t(2614),u=t(12306),f=t(44997),b=t(4912),p=t(31549),RegionButton_RegionButton=function(e){var{icon:n,label:t}=e,{city:r,postalCode:i}=(0,u.kP)(),o=(0,l.useRef)(null),{openModal:a}=(0,b.MS)(o);return(0,p.jsx)(c.Z,{variant:"tertiary",size:"small",icon:(0,p.jsx)(s.Z,{name:n,width:18,height:18,weight:"bold"}),iconPosition:"left",onClick:a,ref:o,children:r&&i?"".concat((0,f._W)(r),", ").concat(i):t})},d=t(16652),v=t(57966),RegionFilterButton_RegionFilterButton=function(e){var n,{filterByPickupPoint:{label:t,icon:{icon:r,alt:i}={}}={}}=e,{openRegionSlider:o}=(0,d.l8)(),{globalPickupPoint:a}=(0,v.z0)(),u=(0,l.useRef)(null);return(0,p.jsx)(c.Z,{variant:"tertiary",size:"small",icon:(0,p.jsx)(s.Z,{name:r,width:18,height:18,weight:"bold","aria-label":i}),iconPosition:"left",onClick:()=>o(d.gK.globalChangePickupPoint),ref:u,children:null!==(n=null==a?void 0:a.name)&&void 0!==n?n:t})},j=t(978),h=t(96991),g=t(99471),k=["links","onClickLink","region"];function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(n){(0,r.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var NavbarLinks_NavbarLinks=function(e){var{links:n,onClickLink:t,region:{icon:r,label:l,shouldDisplayRegion:c}}=e,s=(0,i.Z)(e,k),{NavbarLinks:f,NavbarLinksList:b}=(0,h.r3)(),d=(0,o.useRouter)(),{postalCode:y}=(0,u.kP)(),{deliveryPromise:{filterByPickupPoint:P}={}}=(0,g.T)(),{isEnabled:w}=(0,v.z0)(),O=w&&!!y&&(null==P?void 0:P.enabled);return(0,p.jsx)(f.Component,_objectSpread(_objectSpread(_objectSpread({},s),f.props),{},{children:(0,p.jsxs)("div",{"data-fs-navbar-links-wrapper":!0,"data-fs-content":"navbar",children:[c&&(0,p.jsx)(RegionButton_RegionButton,{icon:r,label:l}),O&&(0,p.jsx)(RegionFilterButton_RegionFilterButton,{filterByPickupPoint:P}),(0,p.jsx)(b.Component,_objectSpread(_objectSpread({},b.props),{},{children:n.map(e=>{var{url:n,text:r}=e;return(0,p.jsx)(a.Z,{children:(0,p.jsx)(j.Z,{variant:"display",href:d.asPath.includes(n)?"#":n,prefetch:!1,onClick:t,children:r})},r)})}))]})}))}},42564:function(e,n,t){t.r(n),t.d(n,{default:function(){return r.Z}});var r=t(22344)},46355:function(e,n,t){var r=t(44194);let i=(0,r.forwardRef)(function({children:e,testId:n="fs-navbar-links-list-item",...t},i){return r.createElement("li",{"data-fs-navbar-links-list-item":!0,ref:i,"data-testid":n,...t},e)});n.Z=i}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6943],{56943:function(e,t,r){r.r(t),r.d(t,{default:function(){return _}});var n=r(47723),i=r(49115),o=r(11347),s=r(22839),a=r(44194),c=r(96972),d=r(96991),u=r(6099),l=r(26410),p=r(93513),h=new Set,f=[],g=null,v=r(31549),product_ProductSentinel=function(e){var{product:t,title:r,page:n,pageSize:i,children:o}=e,{ref:s,inView:c}=(0,l.YD)(),{sendViewItemListEvent:d}=(0,p.m)({title:r,page:n,pageSize:i});return(0,a.useEffect)(()=>{c&&function(e){var{product:t,sendViewItemListEvent:r}=e;h.has(t.id)||(h.add(t.id),f.push({node:t}),g&&clearTimeout(g),g=setTimeout(()=>{f.length>0&&(r({products:f}),f=[])},300))}({product:t,sendViewItemListEvent:d})},[c,t]),(0,v.jsx)("div",{ref:s,style:{minHeight:"15.225rem"},children:o})};function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}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){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var b=(0,a.memo)(function(e){var{products:t,page:r,pageSize:n,productCard:{showDiscountBadge:a,bordered:l,taxesConfiguration:p,sponsoredLabel:h}={},firstPage:f,shouldShowComparison:g,compareLabel:b,title:m,searchId:w,buildExtraProductProps:y=()=>({})}=e,{isMobile:_}=(0,u.Z)(),{__experimentalProductCard:V}=(0,d.r3)();return(0,v.jsx)(s.Z,{aspectRatio:1,loading:0===t.length,children:(0,v.jsx)(i.Z,{"data-af-element":w&&"search-result","data-af-onimpression":!!w,"data-af-search-id":w,children:_&&f===r?(0,v.jsxs)(v.Fragment,{children:[t.slice(0,2).map((e,t)=>{var{node:i}=e;return(0,v.jsx)(o.Z,{children:(0,v.jsx)(product_ProductSentinel,{product:i,title:m,page:r,pageSize:n,children:(0,v.jsx)(V.Component,_objectSpread(_objectSpread({enableCompareCheckbox:g,compareLabel:b,aspectRatio:1,imgProps:{width:150,height:150,sizes:"30vw",loading:"eager"}},V.props),{},{bordered:null!=l?l:V.props.bordered,showDiscountBadge:null!=a?a:V.props.showDiscountBadge,product:i,index:n*r+t+1,taxesConfiguration:p,sponsoredLabel:h},y(i,t,w)))})},"".concat(i.id))}),(0,v.jsx)(c.Z,{sectionName:"UIProductGrid-out-viewport",children:t.slice(2).map((e,t)=>{var{node:i}=e;return(0,v.jsx)(o.Z,{children:(0,v.jsx)(product_ProductSentinel,{product:i,title:m,page:r,pageSize:n,children:(0,v.jsx)(V.Component,_objectSpread(_objectSpread({enableCompareCheckbox:g,compareLabel:b,aspectRatio:1,imgProps:{width:150,height:150,sizes:"30vw",loading:"lazy"}},V.props),{},{bordered:null!=l?l:V.props.bordered,showDiscountBadge:null!=a?a:V.props.showDiscountBadge,product:i,index:n*r+t+1,taxesConfiguration:p,sponsoredLabel:h},y(i,t,w)))})},"".concat(i.id))})})]}):(0,v.jsx)(v.Fragment,{children:t.map((e,t)=>{var{node:i}=e;return(0,v.jsx)(o.Z,{children:(0,v.jsx)(product_ProductSentinel,{product:i,title:m,page:r,pageSize:n,children:(0,v.jsx)(V.Component,_objectSpread(_objectSpread({enableCompareCheckbox:g,compareLabel:b,aspectRatio:1,imgProps:{width:150,height:150,sizes:"30vw",loading:0===t?"eager":"lazy"}},V.props),{},{bordered:null!=l?l:V.props.bordered,showDiscountBadge:null!=a?a:V.props.showDiscountBadge,product:i,index:n*r+t+1,taxesConfiguration:p,sponsoredLabel:h},y(i,t,w)))})},"".concat(i.id))})})})})}),m=r(69029),w=r(94122),replacePagination=(e,t)=>{var r=new URL(window.location.href);r.searchParams.get("page")!==e&&(r.searchParams.set("page",e),t.replace(r,void 0,{shallow:!0,scroll:!1}))},search_Sentinel=function(e){var{page:t,children:r}=e,n=(0,w.useRouter)(),{pages:i}=(0,m.R)(),{ref:o,inView:s}=(0,l.YD)({threshold:[.3,.7],triggerOnce:!1});return(0,a.useEffect)(()=>{s&&i.length>1&&replacePagination(t.toString(),n)},[i.length,s,t]),(0,v.jsx)("div",{ref:o,children:r})},y=r(15688);function buildExtraProductProps(e,t,r){return{"data-af-element":"search-result","data-af-onclick":e&&!!e.productId,"data-af-search-id":r,"data-af-product-position":Number(null!=t?t:0)+1,"data-af-product-id":e&&e.productId}}var _=(0,a.memo)(function(e){var t,r,n,i,{page:o,title:s,productCard:a,itemsPerPage:c,firstPage:d,shouldShowComparison:u,compareLabel:l}=e,{data:p}=(0,y.__)(o),h=null!==(t=null==p?void 0:null===(r=p.search)||void 0===r?void 0:null===(n=r.products)||void 0===n?void 0:n.edges)&&void 0!==t?t:[],f=null==p?void 0:null===(i=p.search)||void 0===i?void 0:i.searchId;return(0,v.jsx)(search_Sentinel,{products:h,page:o,pageSize:c,title:s,children:(0,v.jsx)(b,{shouldShowComparison:u,compareLabel:l,products:h,page:o,pageSize:c,productCard:a,firstPage:d,title:s,searchId:f,buildExtraProductProps:f&&buildExtraProductProps})})})},93513:function(e,t,r){r.d(t,{m:function(){return useViewItemListEvent}});var n=r(44194),i=r(12306),useViewItemListEvent=e=>{var{products:t,title:o,page:s,pageSize:a}=e,{currency:{code:c}}=(0,i.kP)();return{sendViewItemListEvent:(0,n.useCallback)(e=>{var n=null!=t&&t.length?t:null==e?void 0:e.products;n&&0!==n.length&&r.e(9399).then(r.bind(r,66393)).then(e=>{var{sendAnalyticsEvent:t}=e;t({name:"view_item_list",params:{item_list_name:o,item_list_id:o,items:n.map((e,t)=>{var{node:r}=e;return{item_id:r.isVariantOf.productGroupID,item_name:r.isVariantOf.name,item_brand:r.brand.name,item_variant:r.sku,price:r.offers.offers[0].price,index:s*a+t+1,discount:r.offers.offers[0].listPrice-r.offers.offers[0].price,currency:c,item_variant_name:r.name,product_reference_id:r.gtin}})}})})},[c,t,o,s,a])}}},26410:function(e,t,r){r.d(t,{YD:function(){return useInView},df:function(){return d}});var n=r(44194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,o=new WeakMap,s=0,a=void 0;function observe(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=a),void 0===window.IntersectionObserver&&void 0!==n){var c=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),function(){}}var d=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var r;return t+"_"+("root"===t?(r=e.root)?(o.has(r)||(s+=1,o.set(r,s.toString())),o.get(r)):"0":e[t])}).toString(),r=i.get(t);if(!r){var n,a=new Map,c=new IntersectionObserver(function(t){t.forEach(function(t){var r,i=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=a.get(t.target))||r.forEach(function(e){e(i,t)})})},e);n=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:c,elements:a},i.set(t,r)}return r}(r),u=d.id,l=d.observer,p=d.elements,h=p.get(e)||[];return p.has(e)||p.set(e,h),h.push(t),l.observe(e),function(){h.splice(h.indexOf(t),1),0===h.length&&(p.delete(e),l.unobserve(e)),0===p.size&&(l.disconnect(),i.delete(u))}}var c=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var d=function(e){function InView(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){!r.node||(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),isPlainChildren(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,i=e.trackVisibility,o=e.delay,s=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:i,delay:o},s)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,r=e.entry;return this.props.children({inView:t,entry:r,ref:this.handleNode})}var i=this.props,o=i.children,s=i.as,a=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(i,c);return n.createElement(s||"div",_extends({ref:this.handleNode},a),o)},InView}(n.Component);function useInView(e){var t=void 0===e?{}:e,r=t.threshold,i=t.delay,o=t.trackVisibility,s=t.rootMargin,a=t.root,c=t.triggerOnce,d=t.skip,u=t.initialInView,l=t.fallbackInView,p=n.useRef(),h=n.useState({inView:!!u}),f=h[0],g=h[1],v=n.useCallback(function(e){void 0!==p.current&&(p.current(),p.current=void 0),!d&&e&&(p.current=observe(e,function(e,t){g({inView:e,entry:t}),t.isIntersecting&&c&&p.current&&(p.current(),p.current=void 0)},{root:a,rootMargin:s,threshold:r,trackVisibility:o,delay:i},l))},[Array.isArray(r)?r.toString():r,a,s,c,d,o,l,i]);(0,n.useEffect)(function(){p.current||!f.entry||c||d||g({inView:!!u})});var b=[v,f.inView,f.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}d.displayName="InView",d.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},49115:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-grid",children:t,...r},i){return n.createElement("ul",{ref:i,"data-fs-product-grid":!0,...r},t)});t.Z=i},11347:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-grid-item",children:t,...r},i){return n.createElement("li",{ref:i,"data-fs-product-grid-item":!0,...r},t)});t.Z=i}}]);
|
|
File without changes
|