@faststore/core 3.83.0 → 3.84.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 +32 -32
- 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 +36 -36
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/1911.js +1 -1
- package/.next/server/chunks/2792.js +1 -1
- package/.next/server/chunks/6789.js +1 -1
- package/.next/server/chunks/8474.js +2 -2
- package/.next/server/chunks/948.js +1 -1
- package/.next/server/chunks/9563.js +2 -2
- package/.next/server/chunks/9630.js +10 -7
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[slug]/p.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/500.html +1 -1
- package/.next/server/pages/en-US/checkout.html +1 -1
- package/.next/server/pages/en-US/login.html +1 -1
- package/.next/server/pages/en-US/s.html +1 -1
- package/.next/server/pages/en-US.html +1 -1
- package/.next/server/pages/s.js +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{irlP2Y8IJEbMTGvY6bTt_ → DhcFFBEwJrYjN9OdXaeMO}/_buildManifest.js +1 -1
- package/.next/static/chunks/3166-b1ac316afe18625b.js +1 -0
- package/.next/static/chunks/3836.c7f8d69a151682bc.js +1 -0
- package/.next/static/chunks/{6393.f13568b0fd5f52f6.js → 6393.4ad395e06f7dbbc6.js} +1 -1
- package/.next/static/chunks/6789.c37c2ec891333684.js +1 -0
- package/.next/static/chunks/7191-d39597fc204602cb.js +1 -0
- package/.next/static/chunks/9781.60f28efd7e165f54.js +1 -0
- package/.next/static/chunks/ProductShelf.ee5cec2ae121df87.js +1 -0
- package/.next/static/chunks/ProductTiles.2bd64de5bcd5f6d8.js +1 -0
- package/.next/static/chunks/pages/[slug]/{p-0287b5a8ac0b92e5.js → p-60dd0938ba92424b.js} +1 -1
- package/.next/static/chunks/pages/_app-423f11b0d7fff185.js +1 -0
- package/.next/static/chunks/pages/s-c624c961a98a1be0.js +1 -0
- package/.next/static/chunks/{webpack-e7151d8bd72a8f2f.js → webpack-92cd0db592faf63b.js} +1 -1
- package/.next/static/css/{4656927d3ebbf5b8.css → 04fb2d4b8924b0c6.css} +1 -1
- package/.next/static/css/24a5e8f6808266fe.css +1 -0
- package/.next/static/css/{62a5153ac7061286.css → 3d7be7043aee15df.css} +1 -1
- package/.next/static/css/{a3ca6a9b63f657be.css → 6cd282d958f613bc.css} +1 -1
- package/.next/static/css/{8f6350925b347380.css → fe0bcc13a2b68605.css} +1 -1
- package/.next/trace +136 -136
- package/.turbo/turbo-build.log +19 -19
- package/.turbo/turbo-test.log +5 -5
- package/@generated/gql.ts +2 -2
- package/@generated/graphql.ts +22 -3
- package/@generated/persisted-documents.json +3 -3
- package/@generated/schema.graphql +8 -0
- package/CHANGELOG.md +12 -0
- package/cms/faststore/content-types.json +32 -0
- package/package.json +5 -5
- package/src/components/product/ProductCard/ProductCard.tsx +14 -0
- package/src/components/sections/ProductTiles/ProductTiles.tsx +15 -1
- package/src/components/templates/SearchPage/SearchPage.tsx +1 -3
- package/src/components/templates/SearchPage/SearchWrapper.tsx +1 -1
- package/src/components/ui/ProductShelf/ProductShelf.tsx +4 -7
- package/src/pages/s.tsx +5 -8
- package/src/sdk/deliveryPromise/useDeliveryPromise.ts +87 -1
- package/src/sdk/product/useLocalizedVariables.ts +2 -6
- package/src/sdk/product/usePageProductsQuery.ts +64 -80
- package/src/utils/globalSettings.ts +7 -0
- package/src/utils/utilities.ts +18 -0
- package/.next/static/chunks/3166-785c61fd0e214905.js +0 -1
- package/.next/static/chunks/3836.63a23109a71dbbdb.js +0 -1
- package/.next/static/chunks/6789.38bef760c1190c23.js +0 -1
- package/.next/static/chunks/7191-102277856f196551.js +0 -1
- package/.next/static/chunks/9781.dd4028663db7414b.js +0 -1
- package/.next/static/chunks/ProductShelf.9f3194be577c7cce.js +0 -1
- package/.next/static/chunks/ProductTiles.e0528e72234381e6.js +0 -1
- package/.next/static/chunks/pages/_app-f8a8608651b3f06b.js +0 -1
- package/.next/static/chunks/pages/s-e7745eef6c834c3e.js +0 -1
- package/.next/static/css/4b8252ed2f23ac67.css +0 -1
- /package/.next/static/{irlP2Y8IJEbMTGvY6bTt_ → DhcFFBEwJrYjN9OdXaeMO}/_ssgManifest.js +0 -0
package/.next/cache/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"telemetry": {
|
|
3
|
-
"notifiedAt": "
|
|
4
|
-
"anonymousId": "
|
|
5
|
-
"salt": "
|
|
3
|
+
"notifiedAt": "1757427922619",
|
|
4
|
+
"anonymousId": "ea6dbf649c17667bc2f13c67912f15c3278fb12ebd751d9261d3a361f2daaf7b",
|
|
5
|
+
"salt": "6024d02ddd5366cbd066e0a9bdab01c9"
|
|
6
6
|
}
|
|
7
7
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__PRERENDER_MANIFEST="{\"version\":4,\"routes\":{\"/en-US/500\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/
|
|
1
|
+
self.__PRERENDER_MANIFEST="{\"version\":4,\"routes\":{\"/en-US/500\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/500.json\"},\"/en-US/404\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/404.json\"},\"/en-US/checkout\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/checkout.json\"},\"/en-US/login\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/login.json\"},\"/en-US\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/index.json\"},\"/en-US/s\":{\"initialRevalidateSeconds\":false,\"srcRoute\":null,\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/s.json\"}},\"dynamicRoutes\":{\"/account/[...unknown]\":{\"routeRegex\":\"^/account/(.+?)(?:/)?$\",\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/[...unknown].json\",\"fallback\":null,\"dataRouteRegex\":\"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/(.+?)\\\\.json$\"},\"/[slug]/p\":{\"routeRegex\":\"^/([^/]+?)/p(?:/)?$\",\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/[slug]/p.json\",\"fallback\":null,\"dataRouteRegex\":\"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/([^/]+?)/p\\\\.json$\"},\"/[...slug]\":{\"routeRegex\":\"^/(.+?)(?:/)?$\",\"dataRoute\":\"/_next/data/DhcFFBEwJrYjN9OdXaeMO/[...slug].json\",\"fallback\":null,\"dataRouteRegex\":\"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/(.+?)\\\\.json$\"}},\"notFoundRoutes\":[],\"preview\":{\"previewModeId\":\"6b4b280148524d6d6d576199c75c311d\",\"previewModeSigningKey\":\"a66f4504e676f85ad626fffd124c8c2288a002645980699de07b331c6b538cde\",\"previewModeEncryptionKey\":\"aed418c1a64c3e4dca8dc7d6d29516b61422f036152ded3fc727b9c685908e25\"}}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":4,"routes":{"/en-US/500":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/
|
|
1
|
+
{"version":4,"routes":{"/en-US/500":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/500.json"},"/en-US/404":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/404.json"},"/en-US/checkout":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/checkout.json"},"/en-US/login":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/login.json"},"/en-US":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/index.json"},"/en-US/s":{"initialRevalidateSeconds":false,"srcRoute":null,"dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/s.json"}},"dynamicRoutes":{"/account/[...unknown]":{"routeRegex":"^/account/(.+?)(?:/)?$","dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/[...unknown].json","fallback":null,"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/(.+?)\\.json$"},"/[slug]/p":{"routeRegex":"^/([^/]+?)/p(?:/)?$","dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/[slug]/p.json","fallback":null,"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/([^/]+?)/p\\.json$"},"/[...slug]":{"routeRegex":"^/(.+?)(?:/)?$","dataRoute":"/_next/data/DhcFFBEwJrYjN9OdXaeMO/[...slug].json","fallback":null,"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/(.+?)\\.json$"}},"notFoundRoutes":[],"preview":{"previewModeId":"6b4b280148524d6d6d576199c75c311d","previewModeSigningKey":"a66f4504e676f85ad626fffd124c8c2288a002645980699de07b331c6b538cde","previewModeEncryptionKey":"aed418c1a64c3e4dca8dc7d6d29516b61422f036152ded3fc727b9c685908e25"}}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"../components/cart/CartItem/CartItem.tsx -> @faststore/sdk": {
|
|
39
39
|
"id": 6393,
|
|
40
40
|
"files": [
|
|
41
|
-
"static/chunks/6393.
|
|
41
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"../components/cart/CartSidebar/CartSidebar.tsx -> ../../ui/Gift": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"../components/cart/CartSidebar/CartSidebar.tsx -> @faststore/sdk": {
|
|
69
69
|
"id": 6393,
|
|
70
70
|
"files": [
|
|
71
|
-
"static/chunks/6393.
|
|
71
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
"../components/cart/CartSidebar/CartSidebar.tsx -> @faststore/ui": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"files": [
|
|
77
77
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
78
78
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
79
|
-
"static/chunks/9781.
|
|
79
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
80
80
|
"static/chunks/UIToast.55af19d2eba3d8a1.js"
|
|
81
81
|
]
|
|
82
82
|
},
|
|
@@ -140,15 +140,15 @@
|
|
|
140
140
|
"../components/cms/home/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf": {
|
|
141
141
|
"id": 552,
|
|
142
142
|
"files": [
|
|
143
|
-
"static/css/
|
|
144
|
-
"static/chunks/ProductShelf.
|
|
143
|
+
"static/css/6cd282d958f613bc.css",
|
|
144
|
+
"static/chunks/ProductShelf.ee5cec2ae121df87.js"
|
|
145
145
|
]
|
|
146
146
|
},
|
|
147
147
|
"../components/cms/home/Components.ts -> src/components/sections/ProductTiles": {
|
|
148
148
|
"id": 7226,
|
|
149
149
|
"files": [
|
|
150
|
-
"static/css/
|
|
151
|
-
"static/chunks/ProductTiles.
|
|
150
|
+
"static/css/04fb2d4b8924b0c6.css",
|
|
151
|
+
"static/chunks/ProductTiles.2bd64de5bcd5f6d8.js"
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
154
|
"../components/cms/plp/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText": {
|
|
@@ -169,15 +169,15 @@
|
|
|
169
169
|
"../components/cms/plp/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf": {
|
|
170
170
|
"id": 552,
|
|
171
171
|
"files": [
|
|
172
|
-
"static/css/
|
|
173
|
-
"static/chunks/ProductShelf.
|
|
172
|
+
"static/css/6cd282d958f613bc.css",
|
|
173
|
+
"static/chunks/ProductShelf.ee5cec2ae121df87.js"
|
|
174
174
|
]
|
|
175
175
|
},
|
|
176
176
|
"../components/cms/plp/Components.ts -> src/components/sections/ProductTiles": {
|
|
177
177
|
"id": 7226,
|
|
178
178
|
"files": [
|
|
179
|
-
"static/css/
|
|
180
|
-
"static/chunks/ProductTiles.
|
|
179
|
+
"static/css/04fb2d4b8924b0c6.css",
|
|
180
|
+
"static/chunks/ProductTiles.2bd64de5bcd5f6d8.js"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
183
|
"../components/cms/search/Components.ts -> src/components/sections/BannerNewsletter/BannerNewsletter": {
|
|
@@ -208,15 +208,15 @@
|
|
|
208
208
|
"../components/cms/search/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf": {
|
|
209
209
|
"id": 552,
|
|
210
210
|
"files": [
|
|
211
|
-
"static/css/
|
|
212
|
-
"static/chunks/ProductShelf.
|
|
211
|
+
"static/css/6cd282d958f613bc.css",
|
|
212
|
+
"static/chunks/ProductShelf.ee5cec2ae121df87.js"
|
|
213
213
|
]
|
|
214
214
|
},
|
|
215
215
|
"../components/cms/search/Components.ts -> src/components/sections/ProductTiles": {
|
|
216
216
|
"id": 7226,
|
|
217
217
|
"files": [
|
|
218
|
-
"static/css/
|
|
219
|
-
"static/chunks/ProductTiles.
|
|
218
|
+
"static/css/04fb2d4b8924b0c6.css",
|
|
219
|
+
"static/chunks/ProductTiles.2bd64de5bcd5f6d8.js"
|
|
220
220
|
]
|
|
221
221
|
},
|
|
222
222
|
"../components/common/Toast/Toast.tsx -> @faststore/ui": {
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"files": [
|
|
225
225
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
226
226
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
227
|
-
"static/chunks/9781.
|
|
227
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
228
228
|
"static/chunks/UIToast.55af19d2eba3d8a1.js"
|
|
229
229
|
]
|
|
230
230
|
},
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
"files": [
|
|
247
247
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
248
248
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
249
|
-
"static/chunks/9781.
|
|
249
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
250
250
|
"static/chunks/UIToast.55af19d2eba3d8a1.js"
|
|
251
251
|
]
|
|
252
252
|
},
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"files": [
|
|
256
256
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
257
257
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
258
|
-
"static/chunks/9781.
|
|
258
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
259
259
|
"static/chunks/9714.68af2d4bf27f560b.js"
|
|
260
260
|
]
|
|
261
261
|
},
|
|
@@ -270,13 +270,13 @@
|
|
|
270
270
|
"../components/search/SearchDropdown/SearchDropdown.tsx -> @faststore/sdk": {
|
|
271
271
|
"id": 6393,
|
|
272
272
|
"files": [
|
|
273
|
-
"static/chunks/6393.
|
|
273
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
276
|
"../components/search/SearchInput/SearchInput.tsx -> @faststore/sdk": {
|
|
277
277
|
"id": 6393,
|
|
278
278
|
"files": [
|
|
279
|
-
"static/chunks/6393.
|
|
279
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
280
280
|
]
|
|
281
281
|
},
|
|
282
282
|
"../components/search/SearchInput/SearchInput.tsx -> @faststore/ui": {
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"files": [
|
|
285
285
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
286
286
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
287
|
-
"static/chunks/9781.
|
|
287
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
288
288
|
"static/chunks/UIToast.55af19d2eba3d8a1.js"
|
|
289
289
|
]
|
|
290
290
|
},
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"files": [
|
|
300
300
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
301
301
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
302
|
-
"static/chunks/9781.
|
|
302
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
303
303
|
"static/chunks/UIBannerText.08c65db460bd1695.js"
|
|
304
304
|
]
|
|
305
305
|
},
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"files": [
|
|
309
309
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
310
310
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
311
|
-
"static/chunks/9781.
|
|
311
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
312
312
|
"static/chunks/UIToast.55af19d2eba3d8a1.js"
|
|
313
313
|
]
|
|
314
314
|
},
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"../components/sections/ProductDetails/ProductDetails.tsx -> @faststore/sdk": {
|
|
328
328
|
"id": 6393,
|
|
329
329
|
"files": [
|
|
330
|
-
"static/chunks/6393.
|
|
330
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
331
331
|
]
|
|
332
332
|
},
|
|
333
333
|
"../components/sections/ProductGallery/DefaultComponents.ts -> ./EmptyGallery": {
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/product/ProductCard": {
|
|
340
340
|
"id": 3836,
|
|
341
341
|
"files": [
|
|
342
|
-
"static/chunks/6789.
|
|
342
|
+
"static/chunks/6789.c37c2ec891333684.js"
|
|
343
343
|
]
|
|
344
344
|
},
|
|
345
345
|
"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/search/Filter/FilterDesktop": {
|
|
@@ -366,14 +366,14 @@
|
|
|
366
366
|
"files": [
|
|
367
367
|
"static/chunks/9666-9be3f1e484eeb148.js",
|
|
368
368
|
"static/chunks/4836.ef87204971e182f4.js",
|
|
369
|
-
"static/chunks/9781.
|
|
369
|
+
"static/chunks/9781.60f28efd7e165f54.js",
|
|
370
370
|
"static/chunks/8587.1d6d458c9b697351.js"
|
|
371
371
|
]
|
|
372
372
|
},
|
|
373
373
|
"../components/sections/ProductShelf/DefaultComponents.ts -> src/components/product/ProductCard": {
|
|
374
374
|
"id": 3836,
|
|
375
375
|
"files": [
|
|
376
|
-
"static/chunks/3836.
|
|
376
|
+
"static/chunks/3836.c7f8d69a151682bc.js"
|
|
377
377
|
]
|
|
378
378
|
},
|
|
379
379
|
"../components/sections/ProductShelf/DefaultComponents.ts -> src/components/ui/Carousel": {
|
|
@@ -410,25 +410,25 @@
|
|
|
410
410
|
"../sdk/analytics/hooks/usePageViewEvent.ts -> @faststore/sdk": {
|
|
411
411
|
"id": 6393,
|
|
412
412
|
"files": [
|
|
413
|
-
"static/chunks/6393.
|
|
413
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
414
414
|
]
|
|
415
415
|
},
|
|
416
416
|
"../sdk/analytics/hooks/useViewItemListEvent.ts -> @faststore/sdk": {
|
|
417
417
|
"id": 6393,
|
|
418
418
|
"files": [
|
|
419
|
-
"static/chunks/6393.
|
|
419
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
420
420
|
]
|
|
421
421
|
},
|
|
422
422
|
"../sdk/cart/useBuyButton.ts -> @faststore/sdk": {
|
|
423
423
|
"id": 6393,
|
|
424
424
|
"files": [
|
|
425
|
-
"static/chunks/6393.
|
|
425
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
426
426
|
]
|
|
427
427
|
},
|
|
428
428
|
"../sdk/cart/useRemoveButton.ts -> @faststore/sdk": {
|
|
429
429
|
"id": 6393,
|
|
430
430
|
"files": [
|
|
431
|
-
"static/chunks/6393.
|
|
431
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
432
432
|
]
|
|
433
433
|
},
|
|
434
434
|
"../sdk/product/useProductGalleryQuery.ts -> @faststore/sdk": {
|
|
@@ -440,13 +440,13 @@
|
|
|
440
440
|
"../sdk/product/useProductLink.ts -> @faststore/sdk": {
|
|
441
441
|
"id": 6393,
|
|
442
442
|
"files": [
|
|
443
|
-
"static/chunks/6393.
|
|
443
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
444
444
|
]
|
|
445
445
|
},
|
|
446
446
|
"../sdk/search/useSuggestions.ts -> @faststore/sdk": {
|
|
447
447
|
"id": 6393,
|
|
448
448
|
"files": [
|
|
449
|
-
"static/chunks/6393.
|
|
449
|
+
"static/chunks/6393.4ad395e06f7dbbc6.js"
|
|
450
450
|
]
|
|
451
451
|
},
|
|
452
452
|
"[...slug].tsx -> src/components/templates/LandingPage": {
|
|
@@ -455,11 +455,11 @@
|
|
|
455
455
|
"static/chunks/7861.3fe27a385fea2fb7.js",
|
|
456
456
|
"static/chunks/1417.feb3146f627742b7.js",
|
|
457
457
|
"static/chunks/353.3e74b28c8ca649a2.js",
|
|
458
|
-
"static/css/
|
|
458
|
+
"static/css/6cd282d958f613bc.css",
|
|
459
459
|
"static/css/18e4be87b97035da.css",
|
|
460
460
|
"static/css/5273202f7c5e5ec1.css",
|
|
461
|
-
"static/css/
|
|
462
|
-
"static/chunks/3166-
|
|
461
|
+
"static/css/3d7be7043aee15df.css",
|
|
462
|
+
"static/chunks/3166-b1ac316afe18625b.js",
|
|
463
463
|
"static/css/197e314c5a03eabd.css",
|
|
464
464
|
"static/chunks/7026.9ab6a9b610831b85.js"
|
|
465
465
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/account/orders/[id]","regex":"^/account/orders/([^/]+?)(?:/)?$","routeKeys":{"nxtPid":"nxtPid"},"namedRegex":"^/account/orders/(?<nxtPid>[^/]+?)(?:/)?$"},{"page":"/account/[...unknown]","regex":"^/account/(.+?)(?:/)?$","routeKeys":{"nxtPunknown":"nxtPunknown"},"namedRegex":"^/account/(?<nxtPunknown>.+?)(?:/)?$"},{"page":"/[slug]/p","regex":"^/([^/]+?)/p(?:/)?$","routeKeys":{"nxtPslug":"nxtPslug"},"namedRegex":"^/(?<nxtPslug>[^/]+?)/p(?:/)?$"},{"page":"/[...slug]","regex":"^/(.+?)(?:/)?$","routeKeys":{"nxtPslug":"nxtPslug"},"namedRegex":"^/(?<nxtPslug>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"},{"page":"/account/403","regex":"^/account/403(?:/)?$","routeKeys":{},"namedRegex":"^/account/403(?:/)?$"},{"page":"/account/404","regex":"^/account/404(?:/)?$","routeKeys":{},"namedRegex":"^/account/404(?:/)?$"},{"page":"/account/orders","regex":"^/account/orders(?:/)?$","routeKeys":{},"namedRegex":"^/account/orders(?:/)?$"},{"page":"/account/profile","regex":"^/account/profile(?:/)?$","routeKeys":{},"namedRegex":"^/account/profile(?:/)?$"},{"page":"/account/security","regex":"^/account/security(?:/)?$","routeKeys":{},"namedRegex":"^/account/security(?:/)?$"},{"page":"/account/user-details","regex":"^/account/user\\-details(?:/)?$","routeKeys":{},"namedRegex":"^/account/user\\-details(?:/)?$"},{"page":"/checkout","regex":"^/checkout(?:/)?$","routeKeys":{},"namedRegex":"^/checkout(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/s","regex":"^/s(?:/)?$","routeKeys":{},"namedRegex":"^/s(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/
|
|
1
|
+
{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/account/orders/[id]","regex":"^/account/orders/([^/]+?)(?:/)?$","routeKeys":{"nxtPid":"nxtPid"},"namedRegex":"^/account/orders/(?<nxtPid>[^/]+?)(?:/)?$"},{"page":"/account/[...unknown]","regex":"^/account/(.+?)(?:/)?$","routeKeys":{"nxtPunknown":"nxtPunknown"},"namedRegex":"^/account/(?<nxtPunknown>.+?)(?:/)?$"},{"page":"/[slug]/p","regex":"^/([^/]+?)/p(?:/)?$","routeKeys":{"nxtPslug":"nxtPslug"},"namedRegex":"^/(?<nxtPslug>[^/]+?)/p(?:/)?$"},{"page":"/[...slug]","regex":"^/(.+?)(?:/)?$","routeKeys":{"nxtPslug":"nxtPslug"},"namedRegex":"^/(?<nxtPslug>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"},{"page":"/account/403","regex":"^/account/403(?:/)?$","routeKeys":{},"namedRegex":"^/account/403(?:/)?$"},{"page":"/account/404","regex":"^/account/404(?:/)?$","routeKeys":{},"namedRegex":"^/account/404(?:/)?$"},{"page":"/account/orders","regex":"^/account/orders(?:/)?$","routeKeys":{},"namedRegex":"^/account/orders(?:/)?$"},{"page":"/account/profile","regex":"^/account/profile(?:/)?$","routeKeys":{},"namedRegex":"^/account/profile(?:/)?$"},{"page":"/account/security","regex":"^/account/security(?:/)?$","routeKeys":{},"namedRegex":"^/account/security(?:/)?$"},{"page":"/account/user-details","regex":"^/account/user\\-details(?:/)?$","routeKeys":{},"namedRegex":"^/account/user\\-details(?:/)?$"},{"page":"/checkout","regex":"^/checkout(?:/)?$","routeKeys":{},"namedRegex":"^/checkout(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/s","regex":"^/s(?:/)?$","routeKeys":{},"namedRegex":"^/s(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/index.json$"},{"page":"/404","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/404.json$"},{"page":"/500","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/500.json$"},{"page":"/account","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account.json$"},{"page":"/account/403","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/403.json$"},{"page":"/account/404","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/404.json$"},{"page":"/account/orders","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/orders.json$"},{"page":"/account/orders/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/orders/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/orders/(?<nxtPid>[^/]+?)\\.json$"},{"page":"/account/profile","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/profile.json$"},{"page":"/account/security","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/security.json$"},{"page":"/account/user-details","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/user-details.json$"},{"page":"/account/[...unknown]","routeKeys":{"nxtPunknown":"nxtPunknown"},"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/account/(?<nxtPunknown>.+?)\\.json$"},{"page":"/checkout","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/checkout.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/login.json$"},{"page":"/s","dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/s.json$"},{"page":"/[slug]/p","routeKeys":{"nxtPslug":"nxtPslug"},"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/([^/]+?)/p\\.json$","namedDataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/(?<nxtPslug>[^/]+?)/p\\.json$"},{"page":"/[...slug]","routeKeys":{"nxtPslug":"nxtPslug"},"dataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/DhcFFBEwJrYjN9OdXaeMO/(?<nxtPslug>.+?)\\.json$"}],"i18n":{"locales":["en-US"],"defaultLocale":"en-US"},"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url","prefetchHeader":"Next-Router-Prefetch","contentTypeHeader":"text/x-component"},"rewrites":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=1911,exports.ids=[1911],exports.modules={52182:(e,t,a)=>{a.d(t,{S:()=>useProductComparison});var r=a(16689),
|
|
1
|
+
"use strict";exports.id=1911,exports.ids=[1911],exports.modules={52182:(e,t,a)=>{a.d(t,{S:()=>useProductComparison});var r=a(16689),d=a(82770);function useProductComparison(){let e=(0,r.useContext)(d.A);if(void 0===e)throw Error("useProductComparison must be used within a ProductComparisonProvider");return e}},91972:(e,t,a)=>{a.d(t,{Z:()=>Breadcrumb_Breadcrumb});var r=a(16689),d=a.n(r),n=a(2614),i=a(40727),l=a(36588);let c=(0,r.lazy)(()=>Promise.all([a.e(7169),a.e(4983)]).then(a.bind(a,47169))),s=(0,r.lazy)(()=>Promise.all([a.e(9570),a.e(1697)]).then(a.bind(a,99570))),o=(0,r.lazy)(()=>a.e(4219).then(a.bind(a,15741))),m=(0,r.lazy)(()=>Promise.all([a.e(4451),a.e(6621)]).then(a.bind(a,94451))),u=(0,r.forwardRef)(function({children:e,divider:t="",testId:a="fs-breadcrumb",breadcrumbList:u,isDesktop:f=!1,renderLink:p,homeLink:b,dropdownButtonIcon:E=d().createElement(n.Z,{name:"DotsThree"}),collapsedItemsIcon:v=d().createElement(n.Z,{"data-fs-dropdown-item-icon":!0,name:"ArrowElbowDownRight"}),...g},P){let Z=f?u[0]:null,y=f?u.slice(1,-2):u.slice(0,-2),h=u.slice(-2),_=u.length>4,w=(0,r.useCallback)(e=>{let t=p?.(e),a=e.collapsed?{"data-fs-breadcrumb-dropdown-link":!0}:{"data-fs-breadcrumb-link":!0};return t?(0,r.cloneElement)(t,{...a,key:e.itemProps.position}):d().createElement(i.Z,{...a,href:e.itemProps.item,key:e.itemProps.position},e.itemProps.name)},[p]);return d().createElement(l.Z,{ref:P,"data-fs-breadcrumb-is-desktop":f,...g},b,!_&&u.map((e,t)=>u.length===t+1?d().createElement("span",{key:String(e.position)},e.name):w({itemProps:e,collapsed:!1})),_&&Z&&w({itemProps:Z,collapsed:!1}),_&&d().createElement(r.Suspense,null,d().createElement(c,null,d().createElement(s,{"aria-label":"View More","data-fs-breadcrumb-dropdown-button":!0,size:"small"},E),d().createElement(o,{"data-fs-breadcrumb-dropdown-menu":!0},y.map(e=>d().createElement(m,{"data-fs-breadcrumb-dropdown-item":!0,key:String(e.position),icon:v},w({itemProps:e,collapsed:!0})))))),_&&h.map((e,t)=>h.length===t+1?d().createElement("span",{key:String(e.position)},e.name):w({itemProps:e,collapsed:!1})))}),Breadcrumb_Breadcrumb=({breadcrumbList:e,...t})=>d().createElement(d().Fragment,null,d().createElement(u,{breadcrumbList:e,...t}),d().createElement(u,{breadcrumbList:e,isDesktop:!0,...t}))},36588:(e,t,a)=>{a.d(t,{Z:()=>l});var r=a(16689),d=a.n(r),n=a(94564);let Breadcrumb_Divider=({divider:e,testId:t})=>{let a={"data-fs-breadcrumb-divider":!0,"aria-hidden":!0,"data-testid":`${t}-divider`};return d().isValidElement(e)?d().cloneElement(e,a):d().createElement("span",{...a},e??"/")},Breadcrumb_ListItem=({children:e,isLastItem:t,divider:a,testId:r})=>{let n={"data-testid":`${r}-item`,"data-fs-breadcrumb-item":!t||"current","aria-current":t?"page":void 0};return d().isValidElement(e)?d().createElement("li",{"data-fs-breadcrumb-list-item":!0},d().cloneElement(e,n),t?null:d().createElement(Breadcrumb_Divider,{divider:a,testId:r})):d().createElement("li",{"data-fs-breadcrumb-list-item":!0},d().createElement("span",{...n},e,t?null:d().createElement(Breadcrumb_Divider,{divider:a,testId:r})))},i=(0,r.forwardRef)(function({children:e,divider:t="",testId:a="fs-breadcrumb",...r},i){return d().createElement("nav",{"aria-label":"Breadcrumb",role:"navigation",ref:i,"data-fs-breadcrumb":!0,"data-testid":a,...r},d().createElement(n.Z,{as:"ol","data-fs-breadcrumb-list":!0,"data-fs-content":"breadcrumb"},d().Children.toArray(e).map((e,r,n)=>{let i=r===n.length-1;return d().createElement(Breadcrumb_ListItem,{isLastItem:i,divider:t,key:`breadcrumb-${r}`,testId:a},e)})))}),l=i},2946:(e,t,a)=>{a.d(t,{Z:()=>DiscountBadge_DiscountBadge});var r=a(16689),d=a.n(r),n=a(40276);let useDiscountPercent=(e,t)=>(0,r.useMemo)(()=>{let a=e-t,r=100*a/e;return Math.round(r)},[t,e]),DiscountBadge_DiscountBadge=({listPrice:e,spotPrice:t,thresholdLow:a=15,thresholdHigh:r=40,size:i,testId:l="fs-discount-badge"})=>{let c=useDiscountPercent(e,t);if(0===c)return d().createElement(d().Fragment,null);let s=c<=a?"low":c<=r?"medium":"high";return d().createElement(n.Z,{"data-fs-discount-badge":!0,"data-fs-discount-badge-variant":s,size:i,"data-testid":l},c,"% off")}},38394:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(16689),d=a.n(r);let n=(0,r.forwardRef)(function({testId:e="fs-product-card",variant:t="default",bordered:a=!1,outOfStock:r,children:n,...i},l){return d().createElement("article",{ref:l,"data-fs-product-card":r?"out-of-stock":"","data-fs-product-card-variant":t,"data-fs-product-card-bordered":a,"data-testid":e,...i},n)}),i=n},50547:(e,t,a)=>{a.d(t,{Z:()=>p});var r=a(16689),d=a.n(r),n=a(40727),i=a(69088),l=a(31953),c=a(13024),s=a(2614),o=a(2946),m=a(40276),u=a(83339);let f=(0,r.forwardRef)(function({testId:e="fs-product-card-content",title:t,linkProps:a,price:r,outOfStock:f,outOfStockLabel:p="Out of stock",ratingValue:b,showDiscountBadge:E,buttonLabel:v="Add",onButtonClick:g,children:P,includeTaxes:Z=!1,includeTaxesLabel:y="Tax included",sponsored:h=!1,sponsoredLabel:_="Sponsored",deliveryPromiseBadges:w,...k},B){let C=r?.listPrice?r.listPrice:0,D=r?.value?r.value:0;return d().createElement("section",{ref:B,"data-fs-product-card-content":!0,"data-fs-product-card-badge":E,"data-testid":e,...k},h&&d().createElement("span",{"data-fs-product-card-sponsored-label":!0},_),d().createElement("div",{"data-fs-product-card-heading":!0},d().createElement("h3",{"data-fs-product-card-title":!0},d().createElement(n.Z,{...a,title:t},d().createElement("span",null,t))),!f&&d().createElement(i.Z,{"data-fs-product-card-prices":!0,value:D,listPrice:C,formatter:r?.formatter}),Z&&d().createElement(l.Z,{"data-fs-product-card-taxes-label":!0},y),b&&d().createElement(c.Z,{value:b,icon:d().createElement(s.Z,{name:"Star"})})),E&&!f&&d().createElement(o.Z,{listPrice:C,spotPrice:D}),f&&d().createElement(m.Z,null,p),w&&d().createElement("div",{"data-fs-product-card-delivery-promise-badges":!0},w.map(e=>d().createElement("span",{"data-fs-product-card-delivery-promise-badge":!0,"data-fs-product-card-delivery-promise-badge-availability":e.availability,key:e.label},e.label))),g&&!f&&d().createElement("div",{"data-fs-product-card-actions":!0},d().createElement(u.Z,{variant:"primary",icon:d().createElement(s.Z,{name:"ShoppingCart"}),iconPosition:"left",size:"small",onClick:g},v)))}),p=f},65167:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(16689),d=a.n(r);let n=(0,r.forwardRef)(function({testId:e="fs-product-card-image",aspectRatio:t=1,children:a,...r},n){return d().createElement("div",{ref:n,"data-fs-product-card-image":!0,"data-testid":e,style:{"--fs-product-card-image-aspect-ratio":t},...r},a)}),i=n},13024:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(16689),d=a.n(r),n=a(2614),i=a(37041),l=a(94564);let c=(0,r.forwardRef)(function({children:e,testId:t="fs-rating",length:a=5,value:c=0,icon:s,onChange:o,disabled:m,...u},f){let[p,b]=(0,r.useState)(0),E={"data-fs-rating-icon-outline":!0},v=d().isValidElement(s)?s:d().createElement(n.Z,{name:"Star"});return d().createElement(l.Z,{ref:f,"data-fs-rating":!0,"data-fs-rating-actionable":"function"==typeof o,"data-testid":t,...u},Array.from({length:a}).map((e,a)=>{let r=a+1;return d().createElement("li",{key:`rating-${a}`,"data-fs-rating-item":r<=(p||c)?"full":r-c>0&&r-c<1?"partial":"empty","data-testid":`${t}-item`},o?d().createElement(i.Z,{"data-fs-rating-button":!0,icon:v,size:"small","aria-label":"rate",onClick:()=>{o(r)},onMouseEnter:()=>b(r),onMouseLeave:()=>b(c),disabled:m}):d().createElement(d().Fragment,null,d().createElement("div",{"data-fs-rating-icon-wrapper":!0},v),d().isValidElement(s)?d().cloneElement(s,E):d().createElement(n.Z,{name:"Star","data-fs-rating-icon-outline":!0})))}))}),s=c},82770:(e,t,a)=>{a.d(t,{A:()=>n,Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r=a(16689),d=a.n(r);let n=(0,r.createContext)(void 0),__WEBPACK_DEFAULT_EXPORT__=function({children:e}){let[t,a]=(0,r.useState)([]),[i,l]=(0,r.useState)([]),[c,s]=(0,r.useState)(!1),o=(0,r.useCallback)(e=>{a(t=>t.includes(e?.id)?t.filter(t=>t!==e.id):[...t,e.id]),l(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},[]);return d().createElement(n.Provider,{value:{isOpen:c,setIsOpen:s,productIds:t,products:i,handleProductsIds:o,handleProductsComparison:function(e){let t=e.map(t=>{let a=e.find(e=>e.id===t.id);return{...t,...a}});l(t)},clearProducts:function(){a([]),l([])}}},e)}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2792,exports.ids=[2792],exports.modules={86763:(e,t,r)=>{r.d(t,{z:()=>Provider});var s=r(16689),i=r.n(s),
|
|
1
|
+
"use strict";exports.id=2792,exports.ids=[2792],exports.modules={86763:(e,t,r)=>{r.d(t,{z:()=>Provider});var s=r(16689),i=r.n(s),a=r(86878);(0,s.createContext)(void 0);let Provider=({children:e,itemsPerPage:t,onChange:r,...n})=>{let l=(0,a.X)();return(0,s.useEffect)(()=>a.X.subscribe(()=>{r?.(l.serializedState())}),[r]),(0,s.useEffect)(()=>{let{itemsPerPage:e}=a.X.getState();t&&t!==e&&l.setItemsPerPage(t)},[t]),(0,s.useEffect)(()=>{l.setState(n),l.resetInfiniteScroll(n.page??0)},[n.term,n.sort,n.selectedFacets,n.page]),i().createElement(i().Fragment,null,e)}},91341:(e,t,r)=>{r.d(t,{h:()=>usePagination});var s=r(16689),i=r(72339),a=r(69029);let getLink=e=>{let{pathname:t,search:r}=(0,i.Z)(e);return`${t}${r}`},usePagination=e=>{let{pages:t,itemsPerPage:r,state:i}=(0,a.R)(),n=Math.ceil(e/r),l=Number(t[t.length-1])+1,u=t[0]-1;return(0,s.useMemo)(()=>({next:l<n&&{cursor:l,link:getLink({...i,page:l})},prev:u>-1&&{cursor:u,link:getLink({...i,page:u})}}),[l,u,i,n])}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=6789,exports.ids=[6789,3836],exports.modules={80839:(e,t,r)=>{r.d(t,{Z:()=>
|
|
1
|
+
"use strict";exports.id=6789,exports.ids=[6789,3836],exports.modules={80839:(e,t,r)=>{r.d(t,{Z:()=>g});var o=r(55402),a=r(38394),n=r(65167),i=r(50547),s=r(16689),c=r(82331),d=r.n(c),l=r(2056),u=r(52011),p=r(70643),b=r(78563),f=r(3303),O=r(20997);let j=["product","index","bordered","variant","aspectRatio","imgProps","ratingValue","buttonLabel","onButtonClick","showDiscountBadge","taxesConfiguration","sponsoredLabel","enableCompareCheckbox","compareLabel"];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}let g=(0,s.memo)(function(e){let{product:t,index:r,bordered:c=!0,variant:g="default",aspectRatio:h=1,imgProps:y,ratingValue:m,buttonLabel:v="Add",onButtonClick:x,showDiscountBadge:P=!0,taxesConfiguration:w,sponsoredLabel:S,enableCompareCheckbox:k=!1,compareLabel:Z}=e,B=function(e,t){if(null==e)return{};var r,o,a=function(e,t){if(null==e)return{};var r,o,a={},n=Object.keys(e);for(o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,j),{sku:D,isVariantOf:{name:L},image:[T],advertisement:_,offers:{lowPrice:C,lowPriceWithTaxes:I,offers:[{listPrice:z,availability:E,listPriceWithTaxes:K}]},deliveryPromiseBadges:R}=t,{deliveryPromise:V}=(0,f.T)()??{},{badges:W,shouldDisplayDeliveryPromiseBadges:M}=(0,u.z0)({deliveryPromiseBadges:R,deliveryPromiseSettings:V}),N=_objectSpread(_objectSpread({},(0,b.w)({product:t,selectedOffer:0,index:r})),{},{as:d(),passHref:!0,legacyBehavior:!1,prefetch:!1}),A=(0,s.useMemo)(()=>"https://schema.org/InStock"!==E,[E]),F=w?.usePriceWithTaxes?I:C,H=w?.usePriceWithTaxes?K:z,$=_?{"data-van-res-id":_.adResponseId,"data-van-aid":_.adId,"data-van-prod-name":L}:{};return(0,O.jsxs)(O.Fragment,{children:[k&&O.jsx(o.Z,{label:Z,product:t,id:t.id}),(0,O.jsxs)(a.Z,_objectSpread(_objectSpread(_objectSpread({outOfStock:A,bordered:c,variant:g,"data-fs-product-card-sku":D},$),B),{},{children:[O.jsx(n.Z,{aspectRatio:h,children:O.jsx(l.Z,{src:T.url,alt:T.alternateName,sizes:`${y?.sizes??"(max-width: 768px) 40vw, 30vw"}`,width:y?.width??360,height:Math.round((Number(y?.height)||360)/h),loading:y?.loading})}),O.jsx(i.Z,{title:L,price:{value:F,listPrice:H,formatter:p.P},ratingValue:m,outOfStock:A,onButtonClick:x,linkProps:N,showDiscountBadge:F<=H&&P,includeTaxes:w?.usePriceWithTaxes,includeTaxesLabel:w?.taxesLabel,sponsored:!!_,sponsoredLabel:S,deliveryPromiseBadges:M&&W})]}))]})})},33836:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o.Z});var o=r(80839)}};
|