@faststore/core 3.97.0-dev.3 → 3.97.0-dev.5
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 +74 -79
- 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 +126 -118
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/1280.js +1 -0
- package/.next/server/chunks/1454.js +1 -0
- package/.next/server/chunks/1780.js +1 -1
- package/.next/server/chunks/{3734.js → 1972.js} +1 -1
- package/.next/server/chunks/2230.js +1 -0
- package/.next/server/chunks/2430.js +1 -1
- package/.next/server/chunks/2445.js +12 -1
- package/.next/server/chunks/294.js +1 -1
- package/.next/server/chunks/3006.js +1 -0
- package/.next/server/chunks/3060.js +1 -0
- package/.next/server/chunks/3408.js +1 -0
- package/.next/server/chunks/3836.js +1 -1
- package/.next/server/chunks/3890.js +492 -0
- package/.next/server/chunks/{2115.js → 3922.js} +1 -1
- package/.next/server/chunks/3945.js +1 -0
- package/.next/server/chunks/3951.js +7 -0
- package/.next/server/chunks/416.js +1 -0
- package/.next/server/chunks/4365.js +1 -1
- package/.next/server/chunks/{8413.js → 4451.js} +1 -1
- package/.next/server/chunks/4803.js +1 -1
- package/.next/server/chunks/5402.js +1 -0
- package/.next/server/chunks/5683.js +1 -0
- package/.next/server/chunks/5796.js +1 -1
- package/.next/server/chunks/6698.js +1 -0
- package/.next/server/chunks/6789.js +1 -1
- package/.next/server/chunks/6886.js +1 -1
- package/.next/server/chunks/7098.js +2 -2
- package/.next/server/chunks/{8483.js → 7169.js} +1 -1
- package/.next/server/chunks/7228.js +1 -0
- package/.next/server/chunks/7371.js +1 -0
- package/.next/server/chunks/772.js +6 -0
- package/.next/server/chunks/83.js +1 -1
- package/.next/server/chunks/8307.js +1 -0
- package/.next/server/chunks/831.js +1 -0
- package/.next/server/chunks/8482.js +1 -0
- package/.next/server/chunks/8569.js +1 -0
- package/.next/server/chunks/8598.js +1 -0
- package/.next/server/chunks/8687.js +1 -1
- package/.next/server/chunks/870.js +1 -1
- package/.next/server/chunks/8737.js +1 -0
- package/.next/server/chunks/{6130.js → 9088.js} +1 -1
- package/.next/server/chunks/9117.js +1 -1
- package/.next/server/chunks/9237.js +1 -0
- package/.next/server/chunks/948.js +2 -2
- package/.next/server/chunks/9563.js +1 -1
- package/.next/server/chunks/9570.js +1 -0
- package/.next/server/chunks/9740.js +1 -1
- package/.next/server/chunks/9853.js +1 -1
- package/.next/server/chunks/ButtonSignIn.js +1 -1
- package/.next/server/chunks/Dropdown.js +1 -1
- package/.next/server/chunks/DropdownButton.js +1 -1
- package/.next/server/chunks/DropdownItem.js +1 -1
- package/.next/server/chunks/DropdownMenu.js +1 -1
- package/.next/server/chunks/FilterSkeleton.js +1 -1
- package/.next/server/chunks/ScrollToTopButton.js +1 -1
- package/.next/server/chunks/UIBannerText.js +1 -1
- package/.next/server/chunks/UINavbarSlider.js +1 -1
- package/.next/server/chunks/UISKUMatrixSidebar.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/404.js +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +1 -1
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +1 -1
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +1 -1
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/api/fs/logout.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/health/live.js.nft.json +1 -1
- package/.next/server/pages/api/health/ready.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js.nft.json +1 -1
- package/.next/server/pages/checkout.js +1 -1
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +28 -13
- package/.next/server/pages/en-US/500.html +28 -13
- package/.next/server/pages/en-US/checkout.html +28 -13
- package/.next/server/pages/en-US/login.html +28 -13
- package/.next/server/pages/en-US/s.html +28 -13
- package/.next/server/pages/en-US.html +28 -13
- package/.next/server/pages/index.js +1 -1
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +1 -1
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/pvt/account/403.js +1 -1
- package/.next/server/pages/pvt/account/403.js.nft.json +1 -1
- package/.next/server/pages/pvt/account/404.js +1 -1
- package/.next/server/pages/pvt/account/404.js.nft.json +1 -1
- package/.next/server/pages/pvt/account/[...unknown].js +1 -1
- package/.next/server/pages/pvt/account/[...unknown].js.nft.json +1 -1
- package/.next/server/pages/pvt/account/orders/[id].js +1 -1
- package/.next/server/pages/pvt/account/orders/[id].js.nft.json +1 -1
- package/.next/server/pages/pvt/account/orders.js +1 -1
- package/.next/server/pages/pvt/account/orders.js.nft.json +1 -1
- package/.next/server/pages/pvt/account/profile.js +1 -1
- package/.next/server/pages/pvt/account/profile.js.nft.json +1 -1
- package/.next/server/pages/pvt/account/security.js +1 -1
- package/.next/server/pages/pvt/account/security.js.nft.json +1 -1
- package/.next/server/pages/pvt/account/user-details.js +1 -1
- package/.next/server/pages/pvt/account/user-details.js.nft.json +1 -1
- package/.next/server/pages/pvt/account.js +1 -1
- package/.next/server/pages/pvt/account.js.nft.json +1 -1
- package/.next/server/pages/s.js +1 -1
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{8781-4af93d17573b3e9a.js → 1208-9118a8f14ecf05c8.js} +2 -2
- package/.next/static/chunks/1841.a1b15f2c88e02d32.js +1 -0
- package/.next/static/chunks/2284.dffe7b0e5a5bfb4a.js +1 -0
- package/.next/static/chunks/2500.d6beb5af6ee00a9e.js +1 -0
- package/.next/static/chunks/2851.e68ed3c8d27a032a.js +1 -0
- package/.next/static/chunks/2927.5a79877943a6bf7c.js +1 -0
- package/.next/static/chunks/3155.7bc4c730a79d9ecb.js +1 -0
- package/.next/static/chunks/3399.3e1f685c992c345b.js +1 -0
- package/.next/static/chunks/349.235b18ceb82aa256.js +1 -0
- package/.next/static/chunks/3836.612763339fc4c64c.js +1 -0
- package/.next/static/chunks/4803.9822f0b7e469b933.js +1 -0
- package/.next/static/chunks/5796.4351370494d8b8b6.js +1 -0
- package/.next/static/chunks/{5859.e8dab61ef115a1da.js → 5859.3bc094416cffd966.js} +1 -1
- package/.next/static/chunks/6031-b0b111f48a7d504d.js +28 -0
- package/.next/static/chunks/6700.a72869377e81146c.js +1 -0
- package/.next/static/chunks/6789.960162355435a81d.js +1 -0
- package/.next/static/chunks/7191-5ede6e7ef625ea77.js +1 -0
- package/.next/static/chunks/7522-9010743f5d7e8aca.js +1 -0
- package/.next/static/chunks/7692.8d5bf4560341a2f6.js +1 -0
- package/.next/static/chunks/83.98ce246c274ee7e4.js +1 -0
- package/.next/static/chunks/8325.dabe9aa22eaadeed.js +1 -0
- package/.next/static/chunks/8587.53c8ce185ed1a2cb.js +1 -0
- package/.next/static/chunks/9173-ab3c4d9d8f978c4b.js +1 -0
- package/.next/static/chunks/9237.7555603703f81bf7.js +1 -0
- package/.next/static/chunks/941.3e2782ab9c490eb0.js +1 -0
- package/.next/static/chunks/9465.e09b81f7e6195587.js +1 -0
- package/.next/static/chunks/9701.b0e8741551995fbb.js +1 -0
- package/.next/static/chunks/9979.aedbc094bdc2c599.js +1 -0
- package/.next/static/chunks/BannerNewsletter.90d4a98c15a35cea.js +1 -0
- package/.next/static/chunks/BannerText.4061ccfc191e6b96.js +1 -0
- package/.next/static/chunks/ButtonSignIn.f6e210eaca873e48.js +1 -0
- package/.next/static/chunks/CartItem.092df07db9e8b271.js +1 -0
- package/.next/static/chunks/CartSidebar.f0c16e2bc6f96e9e.js +1 -0
- package/.next/static/chunks/{Dropdown.0f0a34d48adc2e77.js → Dropdown.38b48c749bad6b60.js} +1 -1
- package/.next/static/chunks/DropdownButton.66fa6b25dddb3a07.js +1 -0
- package/.next/static/chunks/{DropdownItem.a31b8afe9ee16164.js → DropdownItem.38b8f5a07c7f422a.js} +1 -1
- package/.next/static/chunks/{DropdownMenu.c1aa48ff3605ed70.js → DropdownMenu.48b11521a24c6efd.js} +1 -1
- package/.next/static/chunks/EmptyCart.320e2f94a0d5e6b1.js +1 -0
- package/.next/static/chunks/{FilterSkeleton.4a1ebda6c14c643e.js → FilterSkeleton.7ab99e28f92341c9.js} +1 -1
- package/.next/static/chunks/Footer.63a7682a81a96f8e.js +1 -0
- package/.next/static/chunks/Gift.08db4da8c89cacf1.js +1 -0
- package/.next/static/chunks/Newsletter.dbf35a8ea6d2067e.js +1 -0
- package/.next/static/chunks/OrderSummary.f9adad5622605046.js +1 -0
- package/.next/static/chunks/PreviewTag.f4f0c8710a7bcad9.js +1 -0
- package/.next/static/chunks/ProductShelf.7ebce1c763b4508e.js +1 -0
- package/.next/static/chunks/ProductTiles.18f55314e61957f4.js +1 -0
- package/.next/static/chunks/RegionModal.a7be32d2d7832ba4.js +1 -0
- package/.next/static/chunks/RegionSlider.b4dd4e7c0483966d.js +1 -0
- package/.next/static/chunks/ScrollToTopButton.c15431f2e8bb93ef.js +1 -0
- package/.next/static/chunks/Toast.2e9b26159af29889.js +1 -0
- package/.next/static/chunks/UIBannerText.7315b16af4457059.js +1 -0
- package/.next/static/chunks/UISKUMatrixSidebar.87ba393b7d738e99.js +1 -0
- package/.next/static/chunks/UIToast.19a8664c01a00d3a.js +1 -0
- package/.next/static/chunks/pages/404-4b3f1e22c77f849a.js +1 -0
- package/.next/static/chunks/pages/500-bb2de0c11524b2b8.js +1 -0
- package/.next/static/chunks/pages/{[...slug]-fa1b54edd221c4f1.js → [...slug]-3579b3b8b8309552.js} +1 -1
- package/.next/static/chunks/pages/[slug]/p-7ac98274c47b0ff4.js +1 -0
- package/.next/static/chunks/pages/_app-1595678557980d65.js +1 -0
- package/.next/static/chunks/pages/{checkout-06816d32d87d8edb.js → checkout-dc07d72b3514c83d.js} +1 -1
- package/.next/static/chunks/pages/index-1f8bf0fb351b90f4.js +1 -0
- package/.next/static/chunks/pages/login-e97ef92769456bf6.js +1 -0
- package/.next/static/chunks/pages/pvt/account/403-91597100f8956385.js +1 -0
- package/.next/static/chunks/pages/pvt/account/404-c68124bed7cb7c48.js +1 -0
- package/.next/static/chunks/pages/pvt/account/orders/[id]-e03ebb0393ac92a2.js +1 -0
- package/.next/static/chunks/pages/pvt/account/orders-12a215899ae6f3eb.js +1 -0
- package/.next/static/chunks/pages/pvt/account/{profile-eb040e581a53e019.js → profile-b6cdbf02d4682544.js} +1 -1
- package/.next/static/chunks/pages/pvt/account/security-e6289a40e745d3c4.js +1 -0
- package/.next/static/chunks/pages/pvt/account/{user-details-5ab9233272d5b563.js → user-details-fba1822e52e7de26.js} +1 -1
- package/.next/static/chunks/pages/s-41cffb20de1d2617.js +1 -0
- package/.next/static/chunks/webpack-f3fde0e8298ce999.js +1 -0
- package/.next/static/css/31380ebc6e671486.css +1 -0
- package/.next/static/css/a6a4ebbe01adbbad.css +1 -0
- package/.next/static/f0oFy9xRdaiBbUoob3p_m/_buildManifest.js +1 -0
- package/.next/trace +140 -140
- package/.turbo/turbo-build.log +29 -29
- package/.turbo/turbo-test.log +5 -6
- package/CHANGELOG.md +10 -0
- package/discovery.config.default.js +1 -0
- package/package.json +3 -3
- package/src/Layout.tsx +2 -2
- package/src/components/ThirdPartyScripts/GoogleTagManager.tsx +19 -10
- package/src/components/ThirdPartyScripts/ThirdPartyScripts.tsx +1 -22
- package/src/components/ThirdPartyScripts/vtex.tsx +6 -1
- package/src/constants.ts +2 -0
- package/src/pages/_document.tsx +40 -0
- package/src/sdk/analytics/hooks/usePageViewEvent.ts +7 -2
- package/src/sdk/analytics/platform/vtex/search.ts +22 -8
- package/.next/server/chunks/1174.js +0 -1
- package/.next/server/chunks/1405.js +0 -1
- package/.next/server/chunks/1734.js +0 -1
- package/.next/server/chunks/1962.js +0 -1
- package/.next/server/chunks/2081.js +0 -1
- package/.next/server/chunks/222.js +0 -6
- package/.next/server/chunks/315.js +0 -1
- package/.next/server/chunks/3475.js +0 -1
- package/.next/server/chunks/3741.js +0 -1
- package/.next/server/chunks/3998.js +0 -1
- package/.next/server/chunks/4005.js +0 -1
- package/.next/server/chunks/4168.js +0 -1
- package/.next/server/chunks/4184.js +0 -1
- package/.next/server/chunks/4278.js +0 -1
- package/.next/server/chunks/4471.js +0 -1
- package/.next/server/chunks/4521.js +0 -1
- package/.next/server/chunks/4617.js +0 -1
- package/.next/server/chunks/5209.js +0 -1
- package/.next/server/chunks/5341.js +0 -1
- package/.next/server/chunks/5815.js +0 -1
- package/.next/server/chunks/582.js +0 -1
- package/.next/server/chunks/6084.js +0 -1
- package/.next/server/chunks/6321.js +0 -1
- package/.next/server/chunks/6859.js +0 -1
- package/.next/server/chunks/6950.js +0 -1
- package/.next/server/chunks/7167.js +0 -1
- package/.next/server/chunks/8530.js +0 -1
- package/.next/server/chunks/9179.js +0 -1
- package/.next/server/chunks/9630.js +0 -495
- package/.next/static/6skPsTs9THh3repcOD2W9/_buildManifest.js +0 -1
- package/.next/static/chunks/2219.b5af5db1fbe57c6a.js +0 -1
- package/.next/static/chunks/2284.80457d3024d18d6e.js +0 -1
- package/.next/static/chunks/294.7b0a27e1283125e4.js +0 -1
- package/.next/static/chunks/3155.6d33ba8740143bd9.js +0 -1
- package/.next/static/chunks/3399.ba6f11302d9dbef2.js +0 -1
- package/.next/static/chunks/357.3b4914b86fae2989.js +0 -1
- package/.next/static/chunks/3802.67828bf6e944fa03.js +0 -1
- package/.next/static/chunks/3836.dedaf7ea23e1f09c.js +0 -1
- package/.next/static/chunks/4013.f06ff429d42490e5.js +0 -1
- package/.next/static/chunks/4132.47d4651d0980d5c1.js +0 -1
- package/.next/static/chunks/4330.f109e9f5a57b55f1.js +0 -1
- package/.next/static/chunks/4803.19e2fd0edbf6e494.js +0 -1
- package/.next/static/chunks/5625-a3bbdaa990c3e541.js +0 -28
- package/.next/static/chunks/5796.244380273a508a74.js +0 -1
- package/.next/static/chunks/6700.667327fa7d7f7348.js +0 -1
- package/.next/static/chunks/6789.e79c87ba27c51cc9.js +0 -1
- package/.next/static/chunks/7191-6c41898b7a10949d.js +0 -1
- package/.next/static/chunks/7692.a352cce6d744fa8b.js +0 -1
- package/.next/static/chunks/8129-582e407134af3f1a.js +0 -1
- package/.next/static/chunks/83.9fdb5b94d5c3bef6.js +0 -1
- package/.next/static/chunks/8325.9671795d268dfdb2.js +0 -1
- package/.next/static/chunks/8356.4635439dbf902925.js +0 -1
- package/.next/static/chunks/8447-6efec389fde51b6e.js +0 -1
- package/.next/static/chunks/9111.69a1a8de40078f1a.js +0 -1
- package/.next/static/chunks/9173-cbad8ffbbf569a6c.js +0 -1
- package/.next/static/chunks/9179.ef14810b121dc48b.js +0 -1
- package/.next/static/chunks/941.417f354fd61bae91.js +0 -1
- package/.next/static/chunks/996.e96733e3bdade217.js +0 -1
- package/.next/static/chunks/BannerNewsletter.91ff30fc775602eb.js +0 -1
- package/.next/static/chunks/BannerText.65a54c10ba0f7f56.js +0 -1
- package/.next/static/chunks/ButtonSignIn.c070c7396def00a3.js +0 -1
- package/.next/static/chunks/CartItem.29cbcf78eb695107.js +0 -1
- package/.next/static/chunks/CartSidebar.6238f6136febd636.js +0 -1
- package/.next/static/chunks/DropdownButton.07bf10dec5988014.js +0 -1
- package/.next/static/chunks/EmptyCart.ae29f391ae20e238.js +0 -1
- package/.next/static/chunks/Footer.94763d2da6ad156c.js +0 -1
- package/.next/static/chunks/Gift.6af1dea212bfeaf4.js +0 -1
- package/.next/static/chunks/Newsletter.fa7a7fcd860b5953.js +0 -1
- package/.next/static/chunks/OrderSummary.b3aca286bc4a6a32.js +0 -1
- package/.next/static/chunks/PreviewTag.ca63f423d71dab1e.js +0 -1
- package/.next/static/chunks/ProductShelf.da431705dda86dd9.js +0 -1
- package/.next/static/chunks/ProductTiles.e292be350f9732c3.js +0 -1
- package/.next/static/chunks/RegionModal.57d35e7cf2021937.js +0 -1
- package/.next/static/chunks/RegionSlider.878ad647cc085802.js +0 -1
- package/.next/static/chunks/ScrollToTopButton.aafc72a9514cee59.js +0 -1
- package/.next/static/chunks/Toast.58362a2d887a6ced.js +0 -1
- package/.next/static/chunks/UIBannerText.d2b439bcc5437ad5.js +0 -1
- package/.next/static/chunks/UISKUMatrixSidebar.d737170a59178c6e.js +0 -1
- package/.next/static/chunks/UIToast.c4250a6c006ff759.js +0 -1
- package/.next/static/chunks/pages/404-a2c3556b918d8548.js +0 -1
- package/.next/static/chunks/pages/500-de18520f64d225ec.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-4d21953f31212833.js +0 -1
- package/.next/static/chunks/pages/_app-c8d9fffc5023f6bc.js +0 -1
- package/.next/static/chunks/pages/index-27f4a375d63843ad.js +0 -1
- package/.next/static/chunks/pages/login-0f546641ef1b07f3.js +0 -1
- package/.next/static/chunks/pages/pvt/account/403-40ec6b109593186f.js +0 -1
- package/.next/static/chunks/pages/pvt/account/404-d413687fd89136d0.js +0 -1
- package/.next/static/chunks/pages/pvt/account/orders/[id]-79f5d6e25ada41b5.js +0 -1
- package/.next/static/chunks/pages/pvt/account/orders-7024ac3fcdf846ff.js +0 -1
- package/.next/static/chunks/pages/pvt/account/security-896ae26d01848b2d.js +0 -1
- package/.next/static/chunks/pages/s-06a0aeb10aa0ee53.js +0 -1
- package/.next/static/chunks/webpack-79aa85173d156fd1.js +0 -1
- package/.next/static/css/05b6df3951ba7e9e.css +0 -1
- package/.next/static/css/146571b0d2ad7ca7.css +0 -1
- package/.next/static/css/718d49681a48458e.css +0 -1
- /package/.next/static/{6skPsTs9THh3repcOD2W9 → f0oFy9xRdaiBbUoob3p_m}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.97.0-dev.
|
|
2
|
+
> @faststore/core@3.97.0-dev.4 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.97.0-dev.
|
|
6
|
+
> @faststore/core@3.97.0-dev.4 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.97.0-dev.
|
|
11
|
+
> @faststore/core@3.97.0-dev.4 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.97.0-dev.
|
|
15
|
+
> @faststore/core@3.97.0-dev.4 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.97.0-dev.
|
|
20
|
+
> @faststore/core@3.97.0-dev.4 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.97.0-dev.
|
|
40
|
+
> @faststore/core@3.97.0-dev.4 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.97.0-dev.
|
|
44
|
+
> @faststore/core@3.97.0-dev.4 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
|
|
@@ -79,52 +79,52 @@ Import trace for requested module:
|
|
|
79
79
|
|
|
80
80
|
Collecting page data ...
|
|
81
81
|
Generating static pages (0/6) ...
|
|
82
|
-
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.
|
|
83
82
|
|
|
84
83
|
Generating static pages (1/6)
|
|
85
84
|
|
|
86
85
|
Generating static pages (2/6)
|
|
86
|
+
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.
|
|
87
87
|
|
|
88
88
|
Generating static pages (4/6)
|
|
89
89
|
|
|
90
90
|
✓ Generating static pages (6/6)
|
|
91
91
|
Finalizing page optimization ...
|
|
92
92
|
Collecting build traces ...
|
|
93
93
|
|
|
94
94
|
Route (pages) Size First Load JS
|
|
95
|
-
┌ ● / 7.
|
|
95
|
+
┌ ● / 7.39 kB 147 kB
|
|
96
96
|
├ └ css/02259c549b2179f2.css 3.1 kB
|
|
97
97
|
├ /_app 0 B 108 kB
|
|
98
|
-
├ ● /[...slug] 2.
|
|
99
|
-
├ ● /[slug]/p
|
|
100
|
-
├ └ css/
|
|
101
|
-
├ ○ /404 1.57 kB
|
|
102
|
-
├ ● /500 1.57 kB
|
|
98
|
+
├ ● /[...slug] 2.55 kB 157 kB
|
|
99
|
+
├ ● /[slug]/p 98.2 kB 237 kB
|
|
100
|
+
├ └ css/a6a4ebbe01adbbad.css 22.2 kB
|
|
101
|
+
├ ○ /404 1.57 kB 141 kB
|
|
102
|
+
├ ● /500 1.57 kB 141 kB
|
|
103
103
|
├ λ /api/fs/logout 0 B 108 kB
|
|
104
104
|
├ λ /api/graphql 0 B 108 kB
|
|
105
105
|
├ λ /api/health/live 0 B 108 kB
|
|
106
106
|
├ λ /api/health/ready 0 B 108 kB
|
|
107
107
|
├ λ /api/preview 0 B 108 kB
|
|
108
|
-
├ ● /checkout 749 B
|
|
109
|
-
├ ● /login 1.
|
|
110
|
-
├ λ /pvt/account 247 B
|
|
111
|
-
├ ● /pvt/account/[...unknown] 287 B
|
|
112
|
-
├ λ /pvt/account/403 2.98 kB
|
|
108
|
+
├ ● /checkout 749 B 140 kB
|
|
109
|
+
├ ● /login 1.7 kB 141 kB
|
|
110
|
+
├ λ /pvt/account 247 B 108 kB
|
|
111
|
+
├ ● /pvt/account/[...unknown] 287 B 108 kB
|
|
112
|
+
├ λ /pvt/account/403 2.98 kB 142 kB
|
|
113
113
|
├ └ css/0fae3d432331aae9.css 4.68 kB
|
|
114
|
-
├ λ /pvt/account/404 2.18 kB
|
|
114
|
+
├ λ /pvt/account/404 2.18 kB 141 kB
|
|
115
115
|
├ └ css/0fc6b2ff69142c6a.css 4.74 kB
|
|
116
|
-
├ λ /pvt/account/orders 9.
|
|
116
|
+
├ λ /pvt/account/orders 9.78 kB 149 kB
|
|
117
117
|
├ └ css/40a294d0a24ad01d.css 14.1 kB
|
|
118
|
-
├ λ /pvt/account/orders/[id] 13.
|
|
118
|
+
├ λ /pvt/account/orders/[id] 13.7 kB 153 kB
|
|
119
119
|
├ └ css/08d03445f1797608.css 13.8 kB
|
|
120
|
-
├ λ /pvt/account/profile 1.98 kB
|
|
120
|
+
├ λ /pvt/account/profile 1.98 kB 141 kB
|
|
121
121
|
├ └ css/47f1b4e8de15d314.css 4.42 kB
|
|
122
|
-
├ λ /pvt/account/security 3.96 kB
|
|
122
|
+
├ λ /pvt/account/security 3.96 kB 143 kB
|
|
123
123
|
├ └ css/973dd40d4773e8cd.css 5.74 kB
|
|
124
|
-
├ λ /pvt/account/user-details 1.91 kB
|
|
124
|
+
├ λ /pvt/account/user-details 1.91 kB 141 kB
|
|
125
125
|
├ └ css/05c399956ff24b77.css 4.54 kB
|
|
126
|
-
└ ● /s 3.
|
|
127
|
-
+ First Load JS shared by all
|
|
126
|
+
└ ● /s 3.36 kB 158 kB
|
|
127
|
+
+ First Load JS shared by all 111 kB
|
|
128
128
|
├ chunks/framework-d514426edf885c68.js 45.4 kB
|
|
129
129
|
├ chunks/main-ec03882c4375091d.js 33.2 kB
|
|
130
|
-
├ chunks/pages/_app-
|
|
131
|
-
├ chunks/webpack-
|
|
130
|
+
├ chunks/pages/_app-1595678557980d65.js 25.1 kB
|
|
131
|
+
├ chunks/webpack-f3fde0e8298ce999.js 3.85 kB
|
|
132
132
|
└ css/0f070d03aacd9cc5.css 3.57 kB
|
|
133
133
|
|
|
134
134
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.97.0-dev.
|
|
2
|
+
> @faststore/core@3.97.0-dev.4 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/utils/multipleTemplates.test.ts (28.
|
|
6
|
-
PASS test/utils/clearCookies.test.ts (
|
|
5
|
+
PASS test/utils/multipleTemplates.test.ts (28.67 s)
|
|
6
|
+
PASS test/utils/clearCookies.test.ts (27.93 s)
|
|
7
7
|
PASS test/server/cms/global.test.ts
|
|
8
8
|
PASS test/utils/cookieCacheBusting.test.ts
|
|
9
9
|
PASS test/server/cms/index.test.ts
|
|
10
|
-
PASS test/server/index.test.ts (32.
|
|
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.
|
|
10
|
+
PASS test/server/index.test.ts (32.521 s)
|
|
12
11
|
|
|
13
12
|
Test Suites: 6 passed, 6 total
|
|
14
13
|
Tests: 47 passed, 47 total
|
|
15
14
|
Snapshots: 0 total
|
|
16
|
-
Time:
|
|
15
|
+
Time: 33.786 s
|
|
17
16
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.97.0-dev.5](https://github.com/vtex/faststore/compare/v3.97.0-dev.4...v3.97.0-dev.5) (2026-02-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @faststore/core
|
|
9
|
+
|
|
10
|
+
# [3.97.0-dev.4](https://github.com/vtex/faststore/compare/v3.97.0-dev.3...v3.97.0-dev.4) (2026-02-10)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- scripts improvements - update RC url + Partytown loading + logs + fix bugs. ([#3198](https://github.com/vtex/faststore/issues/3198)) ([9a35b63](https://github.com/vtex/faststore/commit/9a35b63a91bc5cd53de553c053ceeed8bb983184))
|
|
15
|
+
|
|
6
16
|
# [3.97.0-dev.3](https://github.com/vtex/faststore/compare/v3.97.0-dev.2...v3.97.0-dev.3) (2026-02-06)
|
|
7
17
|
|
|
8
18
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.97.0-dev.
|
|
3
|
+
"version": "3.97.0-dev.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@faststore/graphql-utils": "^3.97.0-dev.2",
|
|
56
56
|
"@faststore/lighthouse": "3.97.0-dev.2",
|
|
57
57
|
"@faststore/sdk": "3.97.0-dev.2",
|
|
58
|
-
"@faststore/ui": "3.97.0-dev.
|
|
58
|
+
"@faststore/ui": "3.97.0-dev.5",
|
|
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",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"ts-jest": "29.1.1",
|
|
124
124
|
"typescript": "5.3.2"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "2b17f62f25cfc88604782ac09c2cbee9028c4a6e"
|
|
127
127
|
}
|
package/src/Layout.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isValidElement, type PropsWithChildren } from 'react'
|
|
2
2
|
|
|
3
3
|
import { usePageViewEvent } from './sdk/analytics/hooks/usePageViewEvent'
|
|
4
4
|
|
|
5
5
|
function Layout({ children }: PropsWithChildren) {
|
|
6
|
-
const props =
|
|
6
|
+
const props = isValidElement(children) ? children.props : undefined
|
|
7
7
|
usePageViewEvent(props)
|
|
8
8
|
|
|
9
9
|
return <>{children}</>
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { LOG_LABEL_STYLE } from 'src/constants'
|
|
2
|
+
import storeConfig from '../../../discovery.config'
|
|
3
|
+
|
|
4
|
+
const enableScriptsLogs = storeConfig.experimental?.enableScriptsLogs === true
|
|
5
|
+
|
|
1
6
|
interface Props {
|
|
2
7
|
containerId: string
|
|
3
8
|
dataLayerName?: string
|
|
@@ -5,16 +10,20 @@ interface Props {
|
|
|
5
10
|
|
|
6
11
|
export const GTM_DEBUG_QUERY_STRING = 'gtm_debug'
|
|
7
12
|
|
|
8
|
-
const useSnippet = (opts: Props & { partytownScript: boolean }) =>
|
|
9
|
-
opts.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const useSnippet = (opts: Props & { partytownScript: boolean }) => {
|
|
14
|
+
const dataLayer = opts.dataLayerName ?? 'dataLayer'
|
|
15
|
+
return `${
|
|
16
|
+
opts.partytownScript ? '!' : ''
|
|
17
|
+
}window.location.search.includes('${GTM_DEBUG_QUERY_STRING}=')&&
|
|
18
|
+
(function(w,d,s,l,i){w[l]=w[l]||[];
|
|
19
|
+
${enableScriptsLogs ? `w[l].push=(function(orig){return function(){console.debug("%cvtex%c GTM dataLayer.push","${LOG_LABEL_STYLE}","color:inherit",arguments);return orig.apply(this, arguments);}})(w[l].push);` : ''}
|
|
20
|
+
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
|
|
21
|
+
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
22
|
+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
23
|
+
})(window,document,'script',${JSON.stringify(
|
|
24
|
+
dataLayer
|
|
25
|
+
)},${JSON.stringify(opts.containerId)});`
|
|
26
|
+
}
|
|
18
27
|
|
|
19
28
|
/**
|
|
20
29
|
* Google Tag Manager script adapted to be executed only when necessary.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Partytown } from '@builder.io/partytown/react'
|
|
2
1
|
import storeConfig from 'discovery.config'
|
|
3
2
|
import OverrideComponents from 'src/customizations/src/GlobalOverrides'
|
|
4
|
-
import GoogleTagManager
|
|
3
|
+
import GoogleTagManager from './GoogleTagManager'
|
|
5
4
|
import VTEX from './vtex'
|
|
6
5
|
|
|
7
6
|
const gtmContainerId = storeConfig.analytics?.gtmContainerId
|
|
@@ -16,31 +15,11 @@ if (process.env.NODE_ENV === 'development' && !includeGTM) {
|
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
function ThirdPartyScripts() {
|
|
19
|
-
const forwards = []
|
|
20
|
-
if (includeVTEX) forwards.push('sendrc')
|
|
21
|
-
|
|
22
18
|
return (
|
|
23
19
|
<>
|
|
24
|
-
{/* We're setting the partytown config (forward property) dynamically based on the gtm_debug query string
|
|
25
|
-
* This helps users see the GTM events properly when using GTM preview. All it does is NOT forward dataLayer.push
|
|
26
|
-
* calls to partytown when the gtm_debug query string is present.
|
|
27
|
-
*
|
|
28
|
-
* This is not done in the component because the window var is not available yet.
|
|
29
|
-
*/}
|
|
30
|
-
<script
|
|
31
|
-
dangerouslySetInnerHTML={{
|
|
32
|
-
__html: `var partytown={forward:[...${JSON.stringify(
|
|
33
|
-
forwards
|
|
34
|
-
)},!window.location.search.includes('${GTM_DEBUG_QUERY_STRING}=')&&${includeGTM}?'dataLayer.push':null].filter(Boolean)}`,
|
|
35
|
-
}}
|
|
36
|
-
/>
|
|
37
20
|
{includeGTM && <GoogleTagManager containerId={gtmContainerId} />}
|
|
38
21
|
{includeVTEX && <VTEX />}
|
|
39
22
|
<OverrideComponents.ThirdPartyScripts />
|
|
40
|
-
{/* Only render Partytown when not in an iframe to prevent cross-origin errors. */}
|
|
41
|
-
{typeof window !== 'undefined' && window.self === window.top && (
|
|
42
|
-
<Partytown key="partytown" />
|
|
43
|
-
)}
|
|
44
23
|
</>
|
|
45
24
|
)
|
|
46
25
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { LOG_LABEL_STYLE } from 'src/constants'
|
|
1
2
|
import storeConfig from '../../../discovery.config'
|
|
2
3
|
|
|
4
|
+
const enableScriptsLogs = storeConfig.experimental?.enableScriptsLogs === true
|
|
5
|
+
|
|
3
6
|
function VTEX() {
|
|
4
7
|
return (
|
|
5
8
|
<>
|
|
@@ -10,6 +13,7 @@ function VTEX() {
|
|
|
10
13
|
__html: `
|
|
11
14
|
window.VTEX_METADATA = {account:'${storeConfig.api.storeId}', renderer: 'faststore'};
|
|
12
15
|
window.sendrc=function(en,ed){window.NavigationCapture&&window.NavigationCapture.sendEvent(en,ed)};
|
|
16
|
+
${enableScriptsLogs ? 'window.sendrc=(function(orig){return function(en,ed){console.debug("%cvtex%c RC sendrc","' + LOG_LABEL_STYLE + '","color:inherit",en,ed);return orig(en,ed)}})(window.sendrc);' : ''}
|
|
13
17
|
`,
|
|
14
18
|
}}
|
|
15
19
|
/>
|
|
@@ -17,7 +21,7 @@ function VTEX() {
|
|
|
17
21
|
key="vtexrc.js-script"
|
|
18
22
|
type="text/partytown"
|
|
19
23
|
async
|
|
20
|
-
src="https://
|
|
24
|
+
src="https://io2.vtex.com/rc/rc.js"
|
|
21
25
|
/>
|
|
22
26
|
<script
|
|
23
27
|
type="text/javascript"
|
|
@@ -26,6 +30,7 @@ function VTEX() {
|
|
|
26
30
|
__html: `
|
|
27
31
|
(function(v,t,e,x,a,f,s){
|
|
28
32
|
f=v.vtexaf=v.vtexaf||function(){(f.q=f.q||[]).push(arguments)}
|
|
33
|
+
${enableScriptsLogs ? 'f=(function(orig){return function(){console.debug("%cvtex%c AF","' + LOG_LABEL_STYLE + '","color:inherit",arguments);return orig.apply(this, arguments)}})(f);v.vtexaf=f;' : ''}
|
|
29
34
|
;f.l=+new Date;s=t.createElement(e);s.async=!0;
|
|
30
35
|
s.src=x;a=t.getElementsByTagName(e)[0];
|
|
31
36
|
a.parentNode.insertBefore(s,a)
|
package/src/constants.ts
CHANGED
package/src/pages/_document.tsx
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { Head, Html, Main, NextScript } from 'next/document'
|
|
2
2
|
import storeConfig from '../../discovery.config'
|
|
3
3
|
|
|
4
|
+
import { GTM_DEBUG_QUERY_STRING } from 'src/components/ThirdPartyScripts/GoogleTagManager'
|
|
4
5
|
import { WebFonts } from 'src/customizations/src/GlobalOverrides'
|
|
5
6
|
|
|
6
7
|
function Document() {
|
|
7
8
|
const direction = storeConfig.direction || 'ltr'
|
|
9
|
+
const gtmContainerId = storeConfig.analytics?.gtmContainerId
|
|
10
|
+
const includeGTM = typeof gtmContainerId === 'string'
|
|
11
|
+
const includeVTEX = storeConfig.platform === 'vtex'
|
|
12
|
+
const enableScriptsLogs = storeConfig.experimental?.enableScriptsLogs === true
|
|
13
|
+
const forwards = []
|
|
14
|
+
if (includeVTEX) forwards.push('sendrc')
|
|
8
15
|
|
|
9
16
|
return (
|
|
10
17
|
<Html dir={direction}>
|
|
@@ -19,6 +26,39 @@ function Document() {
|
|
|
19
26
|
/>
|
|
20
27
|
<meta name="storefront" content="fast_store" />
|
|
21
28
|
<WebFonts />
|
|
29
|
+
{/* Partytown config must be set before loading the library.
|
|
30
|
+
* We're setting the partytown config (forward property) dynamically based on the gtm_debug query string
|
|
31
|
+
* This helps users see the GTM events properly when using GTM preview. All it does is NOT forward dataLayer.push
|
|
32
|
+
* calls to partytown when the gtm_debug query string is present.
|
|
33
|
+
*
|
|
34
|
+
* This is not done in the component because the window var is not available yet.
|
|
35
|
+
*/}
|
|
36
|
+
<script
|
|
37
|
+
dangerouslySetInnerHTML={{
|
|
38
|
+
__html: `var partytown={
|
|
39
|
+
debug:${enableScriptsLogs},
|
|
40
|
+
logCalls:${enableScriptsLogs},
|
|
41
|
+
forward:[...${JSON.stringify(
|
|
42
|
+
forwards
|
|
43
|
+
)},!window.location.search.includes('${GTM_DEBUG_QUERY_STRING}=')&&${includeGTM}?'dataLayer.push':null].filter(Boolean)
|
|
44
|
+
}`,
|
|
45
|
+
}}
|
|
46
|
+
/>
|
|
47
|
+
{/* Only load Partytown when not in an iframe to prevent cross-origin errors.
|
|
48
|
+
* https://github.com/vtex/faststore/pull/3155
|
|
49
|
+
*/}
|
|
50
|
+
<script
|
|
51
|
+
dangerouslySetInnerHTML={{
|
|
52
|
+
__html: `
|
|
53
|
+
if (window.self === window.top) {
|
|
54
|
+
var partytownScript = document.createElement('script');
|
|
55
|
+
partytownScript.async = true;
|
|
56
|
+
partytownScript.src = '/~partytown/partytown.js';
|
|
57
|
+
document.head.appendChild(partytownScript);
|
|
58
|
+
}
|
|
59
|
+
`,
|
|
60
|
+
}}
|
|
61
|
+
/>
|
|
22
62
|
</Head>
|
|
23
63
|
<body className="theme">
|
|
24
64
|
<Main />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PageViewEvent } from '@faststore/sdk'
|
|
2
2
|
import { useRouter } from 'next/router'
|
|
3
|
-
import { useCallback, useEffect } from 'react'
|
|
3
|
+
import { useCallback, useEffect, useRef } from 'react'
|
|
4
4
|
|
|
5
5
|
export const usePageViewEvent = (props?: any) => {
|
|
6
6
|
const sendPageViewEvent = useCallback(() => {
|
|
@@ -18,10 +18,15 @@ export const usePageViewEvent = (props?: any) => {
|
|
|
18
18
|
}, [props])
|
|
19
19
|
|
|
20
20
|
const router = useRouter()
|
|
21
|
+
const lastPathRef = useRef<string | null>(null)
|
|
21
22
|
|
|
22
23
|
useEffect(() => {
|
|
24
|
+
if (lastPathRef.current === router.asPath) {
|
|
25
|
+
return
|
|
26
|
+
}
|
|
27
|
+
lastPathRef.current = router.asPath
|
|
23
28
|
sendPageViewEvent()
|
|
24
|
-
}, [router.
|
|
29
|
+
}, [router.asPath, sendPageViewEvent])
|
|
25
30
|
|
|
26
31
|
return { sendPageViewEvent }
|
|
27
32
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import type { AnalyticsEvent } from '@faststore/sdk'
|
|
5
5
|
import type { SearchEvents } from '../../types'
|
|
6
6
|
|
|
7
|
+
import { LOG_LABEL_STYLE } from 'src/constants'
|
|
7
8
|
import { getBaseDomain } from 'src/utils/getBaseDomain'
|
|
8
9
|
import { getCookie } from 'src/utils/getCookie'
|
|
9
10
|
import config from '../../../../../discovery.config'
|
|
@@ -11,6 +12,7 @@ import config from '../../../../../discovery.config'
|
|
|
11
12
|
const THIRTY_MINUTES_S = 30 * 60
|
|
12
13
|
const ONE_YEAR_S = 365 * 24 * 3600
|
|
13
14
|
|
|
15
|
+
const enableScriptsLogs = config.experimental?.enableScriptsLogs === true
|
|
14
16
|
const randomUUID = () =>
|
|
15
17
|
typeof crypto.randomUUID === 'function'
|
|
16
18
|
? crypto.randomUUID().replaceAll('-', '')
|
|
@@ -83,19 +85,31 @@ type SearchEvent =
|
|
|
83
85
|
type: 'search.autocomplete.click'
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
const sendEvent = (options: SearchEvent & { url?: string }) =>
|
|
87
|
-
|
|
88
|
+
const sendEvent = (options: SearchEvent & { url?: string }) => {
|
|
89
|
+
const payload = {
|
|
90
|
+
...options,
|
|
91
|
+
userAgent: navigator.userAgent,
|
|
92
|
+
anonymous: user.anonymous(),
|
|
93
|
+
session: user.session(),
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (enableScriptsLogs) {
|
|
97
|
+
console.debug(
|
|
98
|
+
'%cvtex%c Search Event',
|
|
99
|
+
LOG_LABEL_STYLE,
|
|
100
|
+
'color:inherit',
|
|
101
|
+
payload
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return fetch(`https://sp.vtex.com/event-api/v1/${config.api.storeId}/event`, {
|
|
88
106
|
method: 'POST',
|
|
89
|
-
body: JSON.stringify(
|
|
90
|
-
...options,
|
|
91
|
-
userAgent: navigator.userAgent,
|
|
92
|
-
anonymous: user.anonymous(),
|
|
93
|
-
session: user.session(),
|
|
94
|
-
}),
|
|
107
|
+
body: JSON.stringify(payload),
|
|
95
108
|
headers: {
|
|
96
109
|
'content-type': 'application/json',
|
|
97
110
|
},
|
|
98
111
|
})
|
|
112
|
+
}
|
|
99
113
|
|
|
100
114
|
const isFullTextSearch = (url: URL) =>
|
|
101
115
|
typeof url.searchParams.get('q') === 'string' &&
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=1174,exports.ids=[1174],exports.modules={52329:(e,t,a)=>{a.d(t,{Z:()=>c});var r=a(16689),l=a.n(r),n=a(55795);let o=(0,r.forwardRef)(function({options:e,id:t,testId:a="fs-select",...r},o){return l().createElement("div",{"data-fs-select":!0},l().createElement("select",{ref:o,id:t,"data-testid":a,...r},Object.keys(e).map(t=>l().createElement("option",{key:t,value:t},e[t]))),l().createElement(n.Z,{"data-fs-select-icon":!0,name:"CaretDown"}))}),c=o},74788:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(16689),l=a.n(r),n=a(81798),o=a(52329);let c=(0,r.forwardRef)(function({id:e,label:t,options:a,testId:r="fs-select-field",...c},i){return l().createElement("div",{ref:i,"data-fs-select-field":!0},l().createElement(n.Z,{"data-fs-select-field-label":!0,htmlFor:e},t),l().createElement(o.Z,{id:e,options:a,"data-testid":r,...c}))}),i=c},38598:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(16689),l=a.n(r),n=a(83604),o=a(55795);let c=(0,r.forwardRef)(function({testId:e="fs-toggle",id:t,disabled:a,variant:r="horizontal",...c},i){return l().createElement("div",{"data-fs-toggle":!0,"data-fs-toggle-variant":r,"data-testid":e},l().createElement(n.Z,{ref:i,id:t,role:"switch",type:"checkbox",disabled:a,...c}),l().createElement("span",{"data-fs-toggle-knob":!0},l().createElement(o.Z,{name:"Checked"})))}),i=c},36029:(e,t,a)=>{a.d(t,{Z:()=>d});var r=a(16689),l=a.n(r),n=a(38598),o=a(81798),c=a(77633);let i=(0,r.forwardRef)(function({testId:e="fs-toggle-field",id:t,label:a,disabled:r,displayLabel:i=!0,variant:d="horizontal",...s},m){return l().createElement("div",{ref:m,"data-fs-toggle-field":!0,"data-testid":e},l().createElement(n.Z,{id:t,variant:d,disabled:r,...s}),i?l().createElement(o.Z,{"data-fs-toggle-field-label":!0,htmlFor:t},a):l().createElement(c.Z,{text:a}))}),d=i},99819:(e,t,a)=>{a.d(t,{Z:()=>c});var r=a(16689),l=a.n(r),n=a(48540);let o=(0,r.forwardRef)(function({testId:e="fs-product-comparison",children:t,...a},r){return l().createElement("div",{ref:r,"data-testid":e,...a},l().createElement(n.Z,null,t))}),c=o},54330:(e,t,a)=>{a.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r=a(16689),l=a.n(r),n=a(66319),o=a(4173),c=a(17853),i=a(85972),d=a(97477),s=a(51969),m=a(82211),f=a(89570),p=a(10950),u=a(36029),E=a(62800),g=a(40302),h=a(52329),v=a(33919),Z=a(43341),C=a(79632),w=a(42203),b=a(78483),y=a(4471),k=a(39897),_=a(18413),P=a(55795);let ImageComponent=({src:e,alt:t,...a})=>l().createElement("img",{src:e,alt:t,...a}),getAllSpecifications=e=>e?.skuSpecifications?.map(e=>e.field)||[],getDifferences=(e,t)=>{let a=getAllSpecifications(e),r=t.map(e=>e.additionalProperty.map(e=>[e.name,e.value||""]));return a.filter(e=>{let t=r.map(t=>t.find(t=>t[0]===e)?.[1]);return!t.every((e,t,a)=>e===a[0])})||[]},__WEBPACK_DEFAULT_EXPORT__=function({title:e,sortLabel:t,filterLabel:a,preferencesLabel:S,productNameFilterLabel:A,toggleFieldLabel:O,priceLabel:B,cartButtonLabel:T,priceWithTaxLabel:R,technicalInformation:x,size:D="partial",direction:F="rightSide",priceFormatter:I,overlayProps:N,sortOptions:z,handleProductToBuy:L,setPendingEvent:U,...W}){let{fade:K}=(0,n.b)(),{isOpen:X,setIsOpen:M,products:$}=(0,o.S)(),[j,q]=(0,r.useState)(!0),[G,H]=(0,r.useState)("productByName"),[J,Q]=(0,r.useState)(!1),handleClickAddCart=(e,t)=>{e.preventDefault(),L(t.id),U(e)},V=(0,r.useMemo)(()=>z?.find(e=>e.value===G)?.onChange($)??$,[G,$]),{specsToShow:Y}=(0,r.useMemo)(()=>{let e=$[0],t=getAllSpecifications(e),a=getDifferences(e,V);return{specsToShow:J?a:t,allSpecs:t,diffSpecs:a}},[$,V,J]);(0,r.useEffect)(()=>{if(X){document.body.style.overflow="hidden";return}document.body.style.overflow=""},[X]);let ee=(0,r.useMemo)(()=>z?.reduce((e,t)=>(e[t.value]=t.label,e),{})||{},[z]);return l().createElement(c.Z,{"data-fs-product-comparison-sidebar":!0,fade:K,size:D,direction:F,isOpen:X,overlayProps:N,...W},l().createElement(i.Z,{onClose:()=>M(!1)},l().createElement("div",null,l().createElement("h2",{"data-fs-product-comparison-sidebar-header-title":!0},e),l().createElement(E.Z,{size:"big",variant:"neutral"},$.length))),l().createElement("div",{"data-fs-product-comparison-filters":!0},l().createElement("div",{"data-fs-product-comparison-container":!0},l().createElement("p",{"data-fs-product-comparison-filters-sort-label":!0},t),l().createElement(h.Z,{id:"product-comparison-sort-by",options:ee,value:G,onChange:e=>H(e.target.value)})),l().createElement(u.Z,{id:"product-comparison-show-differences",label:O,checked:J,onChange:()=>Q(!J)})),l().createElement(r.Suspense,null,l().createElement(b.default,null,l().createElement(y.default,{"data-fs-product-comparison-dropdown-button":!0},a),l().createElement(k.default,{className:N?.className},l().createElement("div",{"data-fs-product-comparison-dropdown-menu-content":!0},l().createElement(_.default,{asChild:!0,dismissOnClick:!1},l().createElement("div",{"data-fs-product-comparison-dropdown-item-filter-type":!0},l().createElement("span",{"data-fs-product-comparison-dropdown-item-filter-type-text":!0},S))),l().createElement(_.default,{dismissOnClick:!1,asChild:!0,"data-fs-product-comparison-toggle-field-mobile":!0},l().createElement(u.Z,{id:"product-comparison-show-differences",label:O,checked:J,onChange:()=>Q(!J)})),l().createElement(_.default,{asChild:!0,dismissOnClick:!1},l().createElement("div",{"data-fs-product-comparison-dropdown-item-filter-type":!0},l().createElement("span",{"data-fs-product-comparison-dropdown-item-filter-type-text":!0},t))),l().createElement(_.default,{dismissOnClick:!1,onClick:()=>H("productByName"),"data-fs-dropdown-filter-selected":"productByName"===G||void 0},"productByName"===G&&l().createElement(P.Z,{name:"Checked",width:16,height:16}),l().createElement("p",null,A)),l().createElement(_.default,{dismissOnClick:!1,onClick:()=>H("productByPrice"),"data-fs-dropdown-filter-selected":"productByPrice"===G||void 0},"productByPrice"===G&&l().createElement(P.Z,{name:"Checked",width:16,height:16}),l().createElement("p",null,B)))))),l().createElement(d.Z,null,l().createElement(s.Z,null,l().createElement(m.Z,null,$.map(e=>l().createElement(f.Z,{key:e.id},l().createElement(Z.Z,null,l().createElement(C.Z,{aspectRatio:1},l().createElement(ImageComponent,{src:e.image[0]?.url,alt:e.image[0]?.alternateName})),l().createElement(w.Z,{title:e.name,outOfStock:"https://schema.org/InStock"!==e.offers.offers[0].availability,price:{value:e.offers.offers[0].price,listPrice:e.offers.offers[0].listPrice,formatter:I},buttonLabel:T,showDiscountBadge:!0})),l().createElement(g.Z,{variant:"tertiary",size:"small",onClick:t=>handleClickAddCart(t,e)},T))))),l().createElement(p.Z,null,l().createElement(m.Z,{"data-fs-product-comparison-row-header":!0},l().createElement(f.Z,null,l().createElement(g.Z,{"data-fs-product-comparison-row-header-button":!0,"aria-label":"Toggle technical information",size:"small",iconPosition:"right",icon:l().createElement(P.Z,{name:j?"CaretUp":"CaretDown"}),onClick:function(){q(!j)}},l().createElement("h2",{"data-fs-product-comparison-row-header-button-title":!0},x?.title),l().createElement("h3",{"data-fs-product-comparison-row-header-button-description":!0},x?.description)))),j&&l().createElement(l().Fragment,null,l().createElement(m.Z,null,V.map(e=>l().createElement(f.Z,{key:e.id},l().createElement("span",{"data-fs-product-comparison-row-label":!0},R),l().createElement(v.Z,{"data-fs-product-comparison-row-text":!0,formatter:I,value:e.offers.lowPriceWithTaxes,variant:"selling"})))),Y?.map(e=>l().createElement(m.Z,{key:e},V.map(t=>l().createElement(f.Z,{key:t.id},l().createElement("span",{"data-fs-product-comparison-row-label":!0},e),l().createElement("p",{"data-fs-product-comparison-row-text":!0},t.additionalProperty.find(t=>t.name===e&&"SPECIFICATION"===t.valueReference)?.value||"-")))))))))}},85524:(e,t,a)=>{a.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var r=a(16689),l=a.n(r),n=a(81798),o=a(40302),c=a(4173);let ImageComponent=({src:e,alt:t,...a})=>l().createElement("img",{src:e,alt:t,...a}),__WEBPACK_DEFAULT_EXPORT__=function({clearSelectionButtonLabel:e,compareButtonLabel:t,selectionWarningLabel:a}){let{isOpen:r,setIsOpen:i,products:d,clearProducts:s}=(0,c.S)(),m=d.slice(0,3);return!d.length&&r?null:l().createElement("footer",{"data-fs-product-comparison-toolbar":!0},l().createElement("div",{"data-fs-product-comparison-toolbar-image":!0},m.map(e=>l().createElement(ImageComponent,{key:e.id,src:e.image[0].url,alt:e.name,width:60,height:60})),d.length>3&&l().createElement("div",{"data-fs-product-comparison-toolbar-image-more":!0},l().createElement("p",null,`+${d.length-3}`)),1===d.length&&l().createElement(n.Z,{"data-fs-product-comparison-selection-warning-label":!0},a)),l().createElement(o.Z,{variant:"tertiary",onClick:()=>s()},e),l().createElement(o.Z,{variant:"primary",disabled:d.length<2,onClick:()=>i(!0)},d.length>1?`${t} ${d.length}`:t))}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=1405,exports.ids=[1405],exports.modules={67901:(t,e,r)=>{r.d(e,{Z:()=>d});var s=r(16689),a=r.n(s);let i=(0,s.forwardRef)(function({testId:t="store-tile",children:e,...r},s){return a().createElement("li",{ref:s,role:"listitem","data-fs-tile":!0,"data-testid":t,...r},e)}),d=i},23877:(t,e,r)=>{r.d(e,{Z:()=>d});var s=r(16689),a=r.n(s);let i=(0,s.forwardRef)(function({testId:t="store-tiles",children:e,...r},i){let d=s.Children.count(e);return a().createElement("ul",{ref:i,role:"list","data-fs-tiles":!0,"data-fs-tiles-variant":3===d?"expanded-first":2===d?"expanded-first-two":"","data-fs-content":"tiles","data-testid":t,...r},e)}),d=i}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=1734,exports.ids=[1734],exports.modules={87416:(e,t,r)=>{r.d(t,{Z:()=>i});var a=r(16689),n=r.n(a),s=r(72245);let d=(0,a.forwardRef)(function({testId:e="fs-sku-matrix",children:t,...r},a){return n().createElement("div",{ref:a,"data-fs-sku-matrix":!0,"data-testid":e,...r},n().createElement(s.Z,null,t))}),i=d},36551:(e,t,r)=>{r.d(t,{Z:()=>f});var a=r(16689),n=r.n(a),s=r(40302),d=r(22297);let i=(0,a.forwardRef)(function({children:e,variant:t="secondary",onClick:r,...a},i){let{setIsOpen:f}=(0,d._)();return n().createElement(s.Z,{ref:i,variant:t,onClick:e=>{f(!0),r?.(e)},...a},e)}),f=i}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=1962,exports.ids=[1962],exports.modules={4173:(e,t,a)=>{a.d(t,{S:()=>useProductComparison});var r=a(16689),d=a(48540);function useProductComparison(){let e=(0,r.useContext)(d.A);if(void 0===e)throw Error("useProductComparison must be used within a ProductComparisonProvider");return e}},34990:(e,t,a)=>{a.d(t,{Z:()=>DiscountBadge_DiscountBadge});var r=a(16689),d=a.n(r),n=a(62800);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:c="fs-discount-badge"})=>{let o=useDiscountPercent(e,t);if(0===o)return d().createElement(d().Fragment,null);let l=o<=a?"low":o<=r?"medium":"high";return d().createElement(n.Z,{"data-fs-discount-badge":!0,"data-fs-discount-badge-variant":l,size:i,"data-testid":c},o,"% off")}},43341:(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},c){return d().createElement("article",{ref:c,"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},42203:(e,t,a)=>{a.d(t,{Z:()=>p});var r=a(16689),d=a.n(r),n=a(42390),i=a(56130),c=a(81798),o=a(13415),l=a(55795),s=a(34990),u=a(62800),f=a(40302);let m=(0,r.forwardRef)(function({testId:e="fs-product-card-content",title:t,linkProps:a,price:r,outOfStock:m,outOfStockLabel:p="Out of stock",ratingValue:E,showDiscountBadge:v,buttonLabel:g="Add",onButtonClick:b,children:P,includeTaxes:Z=!1,includeTaxesLabel:_="Tax included",sponsored:C=!1,sponsoredLabel:y="Sponsored",deliveryPromiseBadges:S,...h},w){let A=r?.listPrice?r.listPrice:0,D=r?.value?r.value:0;return d().createElement("section",{ref:w,"data-fs-product-card-content":!0,"data-fs-product-card-badge":v,"data-testid":e,...h},C&&d().createElement("span",{"data-fs-product-card-sponsored-label":!0},y),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))),!m&&d().createElement(i.Z,{"data-fs-product-card-prices":!0,value:D,listPrice:A,formatter:r?.formatter}),Z&&d().createElement(c.Z,{"data-fs-product-card-taxes-label":!0},_),E&&d().createElement(o.Z,{value:E,icon:d().createElement(l.Z,{name:"Star"})})),v&&!m&&d().createElement(s.Z,{listPrice:A,spotPrice:D}),m&&d().createElement(u.Z,null,p),S&&d().createElement("div",{"data-fs-product-card-delivery-promise-badges":!0},S.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))),b&&!m&&d().createElement("div",{"data-fs-product-card-actions":!0},d().createElement(f.Z,{variant:"primary",icon:d().createElement(l.Z,{name:"ShoppingCart"}),iconPosition:"left",size:"small",onClick:b},g)))}),p=m},79632:(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},13415:(e,t,a)=>{a.d(t,{Z:()=>l});var r=a(16689),d=a.n(r),n=a(55795),i=a(24097),c=a(94716);let o=(0,r.forwardRef)(function({children:e,testId:t="fs-rating",length:a=5,value:o=0,icon:l,onChange:s,disabled:u,...f},m){let[p,E]=(0,r.useState)(0),v={"data-fs-rating-icon-outline":!0},g=d().isValidElement(l)?l:d().createElement(n.Z,{name:"Star"});return d().createElement(c.Z,{ref:m,"data-fs-rating":!0,"data-fs-rating-actionable":"function"==typeof s,"data-testid":t,...f},Array.from({length:a}).map((e,a)=>{let r=a+1;return d().createElement("li",{key:`rating-${a}`,"data-fs-rating-item":r<=(p||o)?"full":r-o>0&&r-o<1?"partial":"empty","data-testid":`${t}-item`},s?d().createElement(i.Z,{"data-fs-rating-button":!0,icon:g,size:"small","aria-label":"rate",onClick:()=>{s(r)},onMouseEnter:()=>E(r),onMouseLeave:()=>E(o),disabled:u}):d().createElement(d().Fragment,null,d().createElement("div",{"data-fs-rating-icon-wrapper":!0},g),d().isValidElement(l)?d().cloneElement(l,v):d().createElement(n.Z,{name:"Star","data-fs-rating-icon-outline":!0})))}))}),l=o},48540:(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,c]=(0,r.useState)([]),[o,l]=(0,r.useState)(!1),s=(0,r.useCallback)(e=>{a(t=>t.includes(e?.id)?t.filter(t=>t!==e.id):[...t,e.id]),c(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},[]);return d().createElement(n.Provider,{value:{isOpen:o,setIsOpen:l,productIds:t,products:i,handleProductsIds:s,handleProductsComparison:function(e){let t=e.map(t=>{let a=e.find(e=>e.id===t.id);return{...t,...a}});c(t)},clearProducts:function(){a([]),c([])}}},e)}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=2081,exports.ids=[2081],exports.modules={22297:(t,e,a)=>{a.d(e,{_:()=>useSKUMatrix});var n=a(16689),i=a(72245);function useSKUMatrix(){let t=(0,n.useContext)(i.m);if(!t)throw Error("Do not use SKUMatrix components outside the SKUMatrix context.");return t}},79570:(t,e,a)=>{a.d(e,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var n=a(16689),i=a.n(n),u=a(24097),l=a(55795),r=a(83604);let __WEBPACK_DEFAULT_EXPORT__=({max:t,min:e=1,unitMultiplier:a=1,useUnitMultiplier:o,initial:s,disabled:d=!1,onChange:c,onValidateBlur:_,testId:m="fs-quantity-selector",...E})=>{let[h,y]=(0,n.useState)(s??e),[b,f]=(0,n.useState)(h*a),roundUpQuantityIfNeeded=t=>o?Math.ceil(t/a)*a:t,g=h===e,p=h===t,changeQuantity=t=>{let e=validateQuantityBounds(h+t);c?.(e),y(e),f(e*a)};function validateQuantityBounds(n){let i=e?Math.max(n,e):n;return t?Math.min(i,o?t*a:t):i}return(0,n.useEffect)(()=>{s&&y(s)},[s]),i().createElement("div",{"data-fs-quantity-selector":d?"disabled":"true","data-testid":m,...E},i().createElement(u.Z,{"data-quantity-selector-button":"left",icon:i().createElement(l.Z,{name:"Minus",width:16,height:16,weight:"bold"}),"aria-label":"Decrement Quantity","aria-controls":"quantity-selector-input",disabled:g||d,onClick:()=>changeQuantity(-1),testId:`${m}-left-button`,size:"small"}),i().createElement(r.Z,{"data-quantity-selector-input":!0,id:"quantity-selector-input","aria-label":"Quantity",value:o?b:h,onChange:t=>{let e=t.target.value.replace(/\D/g,"");y(Number(e))},onBlur:function(){let n=validateQuantityBounds(h),i=roundUpQuantityIfNeeded(n),u=t??(e?Math.max(h,e):h),l=h>u||h<e;l&&_?.(e,u,i),y(()=>(f(i),c?.(i/a),i/a))},onInput:t=>{let e=t.currentTarget;e.value=e.value.replace(/\D/g,"")},disabled:d}),i().createElement(u.Z,{"data-quantity-selector-button":"right","aria-controls":"quantity-selector-input","aria-label":"Increment Quantity",disabled:p||d,icon:i().createElement(l.Z,{name:"Plus",width:16,height:16,weight:"bold"}),onClick:()=>changeQuantity(1),testId:`${m}-right-button`,size:"small"}))}},72245:(t,e,a)=>{a.d(e,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,m:()=>u});var n=a(16689),i=a.n(n);let u=(0,n.createContext)(null),__WEBPACK_DEFAULT_EXPORT__=function({children:t}){let[e,a]=(0,n.useState)(!1),[l,r]=(0,n.useState)([]),o=(0,n.useCallback)((t,e)=>{let a=[...l],n=a.find(e=>e.id===t);return n&&(n.selectedCount=e),r(a),a},[l]);return i().createElement(u.Provider,{value:{isOpen:e,allVariantProducts:l,setAllVariantProducts:r,onChangeQuantityItem:o,setIsOpen:a}},t)}}};
|