@faststore/core 3.35.0 → 3.36.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 +25 -15
- 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 +2 -2
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/1506.js +1 -1
- package/.next/server/chunks/3117.js +1 -1
- package/.next/server/chunks/8646.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/account/profile.js +1 -0
- package/.next/server/pages/account/profile.js.nft.json +1 -0
- package/.next/server/pages/account.js +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/checkout.json +1 -1
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US/s.json +1 -1
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{1552.b5a073e7ac834965.js → 1552.e7cece605fc2e1cd.js} +1 -1
- package/.next/static/chunks/CartSidebar.26d3e39bf93a368f.js +1 -0
- package/.next/static/chunks/pages/{_app-836e2ad874a5b36e.js → _app-012e51403727ae6a.js} +1 -1
- package/.next/static/chunks/pages/account/profile-1fdb500de8f12b3a.js +1 -0
- package/.next/static/chunks/pages/account-32bc9db3fea9b0c4.js +1 -0
- package/.next/static/chunks/webpack-1cd1c4aa7f418483.js +1 -0
- package/.next/static/css/249b9deaabc0d32d.css +1 -0
- package/.next/static/go585duKn6vmUmdZiKusb/_buildManifest.js +1 -0
- package/.next/static/go585duKn6vmUmdZiKusb/_ssgManifest.js +1 -0
- package/.next/trace +124 -122
- package/.turbo/turbo-build.log +18 -16
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +12 -0
- package/discovery.config.default.js +1 -0
- package/index.ts +1 -0
- package/package.json +2 -2
- package/src/components/account/MyAccountLayout/MyAccountLayout.tsx +25 -0
- package/src/components/account/MyAccountLayout/index.ts +1 -0
- package/src/components/account/MyAccountLayout/styles.scss +17 -0
- package/src/components/account/MyAccountMenu/MyAccountMenu.tsx +74 -0
- package/src/components/account/MyAccountMenu/index.ts +1 -0
- package/src/components/account/MyAccountMenu/styles.scss +124 -0
- package/src/components/account/index.ts +2 -0
- package/src/components/account/section.module.scss +3 -0
- package/src/components/cart/CartSidebar/CartSidebar.tsx +7 -2
- package/src/customizations/src/myAccount/navigation.ts +3 -0
- package/src/experimental/myAccountSeverSideProps.ts +42 -0
- package/src/pages/account/index.tsx +44 -0
- package/src/pages/account/profile.tsx +48 -0
- package/src/sdk/account/getMyAccountRoutes.ts +34 -0
- package/.next/server/pages/en-US/account.html +0 -28
- package/.next/server/pages/en-US/account.json +0 -1
- package/.next/static/Mhu8_zB9OvbEDLsJZoDbf/_buildManifest.js +0 -1
- package/.next/static/Mhu8_zB9OvbEDLsJZoDbf/_ssgManifest.js +0 -1
- package/.next/static/chunks/CartSidebar.11e73132b1647eec.js +0 -1
- package/.next/static/chunks/pages/account-2123c229c3e93039.js +0 -1
- package/.next/static/chunks/webpack-c5394865bff5422b.js +0 -1
- package/src/pages/account.tsx +0 -72
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en-US"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="generated-at" content="2025-04-08T13:30:47.406Z"/><meta name="robots" content="noindex,nofollow"/><meta name="next-head-count" content="4"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><script>var partytown={forward:[...["sendrc"],!window.location.search.includes('gtm_debug=')&&true?'dataLayer.push':null].filter(Boolean)}</script><script type="text/partytown">!window.location.search.includes('gtm_debug=')&&
|
|
2
|
-
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
3
|
-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
4
|
-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
5
|
-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
6
|
-
})(window,document,'script',"dataLayer","GTM-PGHZ95N");</script><script type="text/javascript">window.location.search.includes('gtm_debug=')&&
|
|
7
|
-
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
8
|
-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
9
|
-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
10
|
-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
11
|
-
})(window,document,'script',"dataLayer","GTM-PGHZ95N");</script><script type="text/partytown">
|
|
12
|
-
window.VTEX_METADATA = {account:'storeframework', renderer: 'faststore'};
|
|
13
|
-
window.sendrc=function(en,ed){window.NavigationCapture&&window.NavigationCapture.sendEvent(en,ed)};
|
|
14
|
-
</script><script type="text/partytown" async="" src="https://io.vtex.com.br/rc/rc.js"></script><script type="text/javascript">
|
|
15
|
-
(function(v,t,e,x,a,f,s){
|
|
16
|
-
f=v.vtexaf=v.vtexaf||function(){(f.q=f.q||[]).push(arguments)}
|
|
17
|
-
;f.l=+new Date;s=t.createElement(e);s.async=!0;
|
|
18
|
-
s.src=x;a=t.getElementsByTagName(e)[0];
|
|
19
|
-
a.parentNode.insertBefore(s,a)
|
|
20
|
-
})(window,document,'script','https://activity-flow.vtex.com/af/af.js');
|
|
21
|
-
</script><script type="text/javascript">
|
|
22
|
-
window.vtexaf('init', {
|
|
23
|
-
account: 'storeframework',
|
|
24
|
-
env: 'vtexcommercestable',
|
|
25
|
-
workspace: 'master'
|
|
26
|
-
});
|
|
27
|
-
</script><script>!(function(w,p,f,c){c=w[p]=w[p]||{};c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.6.4 - MIT builder.io */
|
|
28
|
-
!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener("pt0",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.6.4":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement("script")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);document.currentScript.dataset.partytown="";</script><link rel="preload" href="/_next/static/css/0a57ee6c7a57788c.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/0a57ee6c7a57788c.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/b0c0e0632c5d7f52.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/b0c0e0632c5d7f52.css" crossorigin="" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" crossorigin="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-c5394865bff5422b.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-807b0f81cbc129f0.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-5569625b3fdd6741.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-836e2ad874a5b36e.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6167-ecb49640dcb9d566.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6335-2bf379c0870c440e.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/account-2123c229c3e93039.js" defer="" crossorigin=""></script><script src="/_next/static/Mhu8_zB9OvbEDLsJZoDbf/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/Mhu8_zB9OvbEDLsJZoDbf/_ssgManifest.js" defer="" crossorigin=""></script></head><body class="theme"><div id="__next"><div data-store-section-name="Alert" style="height:823px;width:100%"></div><div data-store-section-name="Navbar" style="height:823px;width:100%"></div><div data-store-section-name="RegionBar" style="height:823px;width:100%"></div><div>loading...</div><div data-store-section-name="Toast" style="height:823px;width:100%"></div><div data-store-section-name="Footer" style="height:823px;width:100%"></div></div><script id="__NEXT_DATA__" type="application/json" crossorigin="">{"props":{"pageProps":{"globalSections":{"id":"715f02f9-df43-11ef-b37f-e38fd0971ceb","name":"Global Sections","type":"globalSections","status":"published","versionId":"b0aeba90-ef08-4c0c-9697-75e0c7a97faf","versionStatus":"published","sections":[{"id":"7095268a-8ba6-4883-9c2c-c306bd8b5d46","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"8b469cea-0c14-4efa-902d-d8bd2e526192","name":"Navbar","data":{"logo":{"link":{"url":"/","title":"Go To Home"},"src":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/ab9997f4-8fd6-46f5-99d2-9d5af3ef5e34___6d75a203771d7408d8f0d1c660a076dd.png","alt":"Store logo"},"searchInput":{"placeholder":"Search everything at the store","sort":"score_desc","quickOrderSettings":{"quickOrder":true,"skuMatrix":{"triggerButtonLabel":"Select multiple","columns":{"name":"Name","availability":{"label":"Availability","stockDisplaySettings":"showAvailability"},"price":"Price","quantitySelector":"Quantity"}}}},"signInButton":{"icon":{"icon":"User","alt":"User"},"label":"Sign In","myAccountLabel":"My Account"},"cartIcon":{"icon":"ShoppingCart","alt":"Shopping Cart"},"navigation":{"regionalization":{"enabled":true,"icon":{"icon":"MapPin","alt":"MapPin"},"label":"Set Your Location"},"pageLinks":[{"text":"Office","url":"/office"},{"text":"Technology","url":"/technology"}],"menu":{"icon":{"icon":"List","alt":"List"}},"home":{"label":"Go to Home"}}}},{"id":"dfec8f3e-b2d6-41c9-b756-ed4a780cda7f","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"2874267a-c892-41fd-83bf-85b708a4bca8","name":"CartSidebar","data":{"title":"Your Cart","alert":{"icon":{"icon":"Truck","alt":"Arrow Right icon"},"text":"Free shipping starts at $300"},"checkoutButton":{"label":"Checkout","loadingLabel":"Loading...","icon":{"icon":"ArrowRight","alt":"Arrow Right icon"}},"quantitySelector":{"useUnitMultiplier":false},"taxesConfiguration":{"usePriceWithTaxes":false,"taxesLabel":"Tax included"}}},{"id":"a8d87e90-5b51-418e-b755-b5466549c9d7","name":"RegionModal","data":{"title":"Set your location","description":"Offers and availability vary by location.","closeButtonAriaLabel":"Close Region Modal","inputField":{"label":"Postal Code","errorMessage":"You entered an invalid Postal Code"},"idkPostalCodeLink":{"text":"I don't know my Postal Code","icon":{"icon":"ArrowSquareOut","alt":"Arrow Square Out icon"}}}},{"id":"e2cc106c-06f1-4b00-8449-9e8eaa7449b4","name":"Children","data":{}},{"id":"34de56a6-f248-47ad-a172-8e22aca13c6d","name":"Footer","data":{"incentives":[{"title":" ","firstLineText":"Trusted","icon":"ShieldCheck","secondLineText":"by Safecon"},{"title":" ","firstLineText":"Free","icon":"Calendar","secondLineText":"Return"},{"title":" ","firstLineText":"Pickup","icon":"Storefront","secondLineText":"Options"},{"firstLineText":"Free","secondLineText":"Shipping","title":" ","icon":"Truck"}],"footerLinks":[{"items":[{"text":"About Us","url":"https://starter.vtex.app"},{"text":"Our Blog","url":"https://starter.vtex.app"},{"text":"Stores","url":"https://starter.vtex.app"},{"text":"Work With Us","url":"https://starter.vtex.app"}],"sectionTitle":"Our company"},{"items":[{"text":"Returns and Exchanges","url":"/"},{"text":"Product Recall","url":"/"},{"text":"Gift Cards","url":"/"}],"sectionTitle":"Orders and Purchases"},{"items":[{"text":"Support Center","url":"/"},{"text":"Support \u0026 Services","url":"/"},{"text":"Contact Us","url":"/"}],"sectionTitle":"Support \u0026 Services"},{"items":[{"text":"Affiliate Program","url":"/"},{"text":"Marketplace","url":"/"}],"sectionTitle":"Partnerships"}],"footerSocial":{"title":"Follow Us","socialLinks":[{"icon":{"icon":"Facebook"},"alt":"Facebook","url":"https://www.facebook.com"},{"icon":{"icon":"Instagram"},"alt":"Instagram","url":"https://www.instagram.com"},{"icon":{"icon":"Pinterest"},"alt":"Pinterest","url":"https://www.pinterest.com"},{"icon":{"icon":"Twitter"},"alt":"Twitter","url":"https://www.twitter.com"}]},"logo":{"link":{"title":"FastStore Starter","url":"https://starter.vtex.app/"},"src":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/ec191c4a-32d8-41a9-9255-f319819bc98c___c24a66e2bef2c3f2bea07571a3636804.png","alt":"Store Logo"},"acceptedPaymentMethods":{"showPaymentMethods":true,"title":"Payment Methods","paymentMethods":[{"icon":{"icon":"Diners"},"alt":"Diners Club"},{"icon":{"icon":"Visa"},"alt":"Visa"},{"icon":{"icon":"Mastercard"},"alt":"Mastercard"},{"icon":{"icon":"EloCard"},"alt":"Elo Card"},{"icon":{"icon":"PayPal"},"alt":"PayPal"},{"icon":{"icon":"GooglePay"},"alt":"GooglePay"},{"icon":{"icon":"ApplePay"},"alt":"Apple Pay"}]},"copyrightInfo":"This website uses VTEX technology. In-store price may vary. Prices and offers are subject to change. 2023 Brandless Store. All rights reserved. Store is a trademark of Store and its affiliated companies. Mount St, 000, New York / NY - 00000."}}]}},"__N_SSG":true},"page":"/account","query":{},"buildId":"Mhu8_zB9OvbEDLsJZoDbf","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"pageProps":{"globalSections":{"id":"715f02f9-df43-11ef-b37f-e38fd0971ceb","name":"Global Sections","type":"globalSections","status":"published","versionId":"b0aeba90-ef08-4c0c-9697-75e0c7a97faf","versionStatus":"published","sections":[{"id":"7095268a-8ba6-4883-9c2c-c306bd8b5d46","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"8b469cea-0c14-4efa-902d-d8bd2e526192","name":"Navbar","data":{"logo":{"link":{"url":"/","title":"Go To Home"},"src":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/ab9997f4-8fd6-46f5-99d2-9d5af3ef5e34___6d75a203771d7408d8f0d1c660a076dd.png","alt":"Store logo"},"searchInput":{"placeholder":"Search everything at the store","sort":"score_desc","quickOrderSettings":{"quickOrder":true,"skuMatrix":{"triggerButtonLabel":"Select multiple","columns":{"name":"Name","availability":{"label":"Availability","stockDisplaySettings":"showAvailability"},"price":"Price","quantitySelector":"Quantity"}}}},"signInButton":{"icon":{"icon":"User","alt":"User"},"label":"Sign In","myAccountLabel":"My Account"},"cartIcon":{"icon":"ShoppingCart","alt":"Shopping Cart"},"navigation":{"regionalization":{"enabled":true,"icon":{"icon":"MapPin","alt":"MapPin"},"label":"Set Your Location"},"pageLinks":[{"text":"Office","url":"/office"},{"text":"Technology","url":"/technology"}],"menu":{"icon":{"icon":"List","alt":"List"}},"home":{"label":"Go to Home"}}}},{"id":"dfec8f3e-b2d6-41c9-b756-ed4a780cda7f","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"2874267a-c892-41fd-83bf-85b708a4bca8","name":"CartSidebar","data":{"title":"Your Cart","alert":{"icon":{"icon":"Truck","alt":"Arrow Right icon"},"text":"Free shipping starts at $300"},"checkoutButton":{"label":"Checkout","loadingLabel":"Loading...","icon":{"icon":"ArrowRight","alt":"Arrow Right icon"}},"quantitySelector":{"useUnitMultiplier":false},"taxesConfiguration":{"usePriceWithTaxes":false,"taxesLabel":"Tax included"}}},{"id":"a8d87e90-5b51-418e-b755-b5466549c9d7","name":"RegionModal","data":{"title":"Set your location","description":"Offers and availability vary by location.","closeButtonAriaLabel":"Close Region Modal","inputField":{"label":"Postal Code","errorMessage":"You entered an invalid Postal Code"},"idkPostalCodeLink":{"text":"I don't know my Postal Code","icon":{"icon":"ArrowSquareOut","alt":"Arrow Square Out icon"}}}},{"id":"e2cc106c-06f1-4b00-8449-9e8eaa7449b4","name":"Children","data":{}},{"id":"34de56a6-f248-47ad-a172-8e22aca13c6d","name":"Footer","data":{"incentives":[{"title":" ","firstLineText":"Trusted","icon":"ShieldCheck","secondLineText":"by Safecon"},{"title":" ","firstLineText":"Free","icon":"Calendar","secondLineText":"Return"},{"title":" ","firstLineText":"Pickup","icon":"Storefront","secondLineText":"Options"},{"firstLineText":"Free","secondLineText":"Shipping","title":" ","icon":"Truck"}],"footerLinks":[{"items":[{"text":"About Us","url":"https://starter.vtex.app"},{"text":"Our Blog","url":"https://starter.vtex.app"},{"text":"Stores","url":"https://starter.vtex.app"},{"text":"Work With Us","url":"https://starter.vtex.app"}],"sectionTitle":"Our company"},{"items":[{"text":"Returns and Exchanges","url":"/"},{"text":"Product Recall","url":"/"},{"text":"Gift Cards","url":"/"}],"sectionTitle":"Orders and Purchases"},{"items":[{"text":"Support Center","url":"/"},{"text":"Support & Services","url":"/"},{"text":"Contact Us","url":"/"}],"sectionTitle":"Support & Services"},{"items":[{"text":"Affiliate Program","url":"/"},{"text":"Marketplace","url":"/"}],"sectionTitle":"Partnerships"}],"footerSocial":{"title":"Follow Us","socialLinks":[{"icon":{"icon":"Facebook"},"alt":"Facebook","url":"https://www.facebook.com"},{"icon":{"icon":"Instagram"},"alt":"Instagram","url":"https://www.instagram.com"},{"icon":{"icon":"Pinterest"},"alt":"Pinterest","url":"https://www.pinterest.com"},{"icon":{"icon":"Twitter"},"alt":"Twitter","url":"https://www.twitter.com"}]},"logo":{"link":{"title":"FastStore Starter","url":"https://starter.vtex.app/"},"src":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/ec191c4a-32d8-41a9-9255-f319819bc98c___c24a66e2bef2c3f2bea07571a3636804.png","alt":"Store Logo"},"acceptedPaymentMethods":{"showPaymentMethods":true,"title":"Payment Methods","paymentMethods":[{"icon":{"icon":"Diners"},"alt":"Diners Club"},{"icon":{"icon":"Visa"},"alt":"Visa"},{"icon":{"icon":"Mastercard"},"alt":"Mastercard"},{"icon":{"icon":"EloCard"},"alt":"Elo Card"},{"icon":{"icon":"PayPal"},"alt":"PayPal"},{"icon":{"icon":"GooglePay"},"alt":"GooglePay"},{"icon":{"icon":"ApplePay"},"alt":"Apple Pay"}]},"copyrightInfo":"This website uses VTEX technology. In-store price may vary. Prices and offers are subject to change. 2023 Brandless Store. All rights reserved. Store is a trademark of Store and its affiliated companies. Mount St, 000, New York / NY - 00000."}}]}},"__N_SSG":true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,c,a,e,t,i){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,c,a,"static/css/b1806cbafd0c1f81.css","static/chunks/pages/index-d36123e232b889d8.js"],"/404":[s,c,a,e,"static/chunks/pages/404-8e61ea158e7b314c.js"],"/500":[s,c,a,e,"static/chunks/pages/500-68f51177e64de6e7.js"],"/_error":["static/chunks/pages/_error-f432276d5ac8f150.js"],"/account":[s,c,a,"static/chunks/pages/account-2123c229c3e93039.js"],"/checkout":[s,c,a,"static/chunks/pages/checkout-0dfe0dc9cee443ba.js"],"/login":[s,c,a,e,"static/chunks/pages/login-b59ea5561defc0d4.js"],"/s":[s,c,a,t,i,e,"static/chunks/pages/s-ffb46af7067b79b1.js"],"/[slug]/p":[s,"static/chunks/5259-90f7ef92cf24e49a.js",c,a,"static/chunks/7498-49bf89838314b503.js","static/css/a3ca6a9b63f657be.css","static/css/62a5153ac7061286.css","static/chunks/4349-24e224a3b1307f65.js","static/css/b5bf49598c8f8b66.css","static/chunks/pages/[slug]/p-2e02254149cef33d.js"],"/[...slug]":[s,c,a,t,i,"static/chunks/pages/[...slug]-f4fd6c8d7dc53f8f.js"],sortedPages:["/","/404","/500","/_app","/_error","/account","/checkout","/login","/s","/[slug]/p","/[...slug]"]}}("static/chunks/6167-ecb49640dcb9d566.js","static/css/b0c0e0632c5d7f52.css","static/chunks/6335-2bf379c0870c440e.js","static/css/2980acad3f8e1028.css","static/css/2841bab51b99dd53.css","static/chunks/4625-4befc256b42bee75.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
self.__SSG_MANIFEST=new Set(["\u002F","\u002F404","\u002F500","\u002F[...slug]","\u002F[slug]\u002Fp","\u002Faccount","\u002Fcheckout","\u002Flogin","\u002Fs"]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1781],{1255:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return CartSidebar_CartSidebar}});var r=n(4424),a=n(7281),i=n.n(a),c=n(6652),l=n(3666),o=n(2614),s=n(4194),u=n(3088),d=n(1506),b=n.n(d),useCheckoutButton=()=>{var{isValidating:e,id:t}=(0,u.jD)();return{onClick:n=>{n.preventDefault();var r=window.location.host.includes(".vtex.app")||window.location.host.includes("localhost");!e&&(r?t&&(window.location.href="".concat(b().checkoutUrl,"?orderFormId=").concat(t)):window.location.href="".concat(b().checkoutUrl))},disabled:e,"data-testid":"checkout-button"}},h=n(4355),f=n(2262),p=n.n(f),m=n(1549);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=i()(()=>Promise.all([n.e(2206),n.e(7498),n.e(4865),n.e(4600)]).then(n.bind(n,4865)).then(e=>e.Button),{ssr:!1,loadableGenerated:{webpack:()=>[null]}}),w=i()(()=>Promise.all([n.e(2206),n.e(7498),n.e(4865),n.e(4600)]).then(n.bind(n,4865)).then(e=>e.CartSidebarFooter),{ssr:!1,loadableGenerated:{webpack:()=>[null]}}),k=i()(()=>Promise.all([n.e(2206),n.e(7498),n.e(4865),n.e(4600)]).then(n.bind(n,4865)).then(e=>e.CartSidebarList),{ssr:!1,loadableGenerated:{webpack:()=>[null]}}),v=i()(()=>Promise.all([n.e(2206),n.e(7498),n.e(4865),n.e(4600)]).then(n.bind(n,4865)).then(e=>e.CartSidebar),{ssr:!1,loadableGenerated:{webpack:()=>[null]}}),x=i()(()=>n.e(1724).then(n.bind(n,1397)),{ssr:!1,loadableGenerated:{webpack:()=>[1397]}}),O=i()(()=>n.e(2985).then(n.bind(n,3255)),{ssr:!1,loadableGenerated:{webpack:()=>[3255]}}),y=i()(()=>n.e(549).then(n.bind(n,8467)),{ssr:!1,loadableGenerated:{webpack:()=>[8467]}}),_=i()(()=>n.e(2553).then(n.bind(n,9250)),{ssr:!1,loadableGenerated:{webpack:()=>[9250]}}),CartSidebar_CartSidebar=function(e){var{title:t,alert:{icon:{icon:r,alt:a},text:i},checkoutButton:{label:d,loadingLabel:b,icon:{icon:f,alt:P}},quantitySelector:g,taxesConfiguration:C}=e,S=useCheckoutButton(),{items:D,gifts:G,totalItems:E,isValidating:F,subTotal:T,total:M,subTotalWithTaxes:U,totalWithTaxes:B}=(0,u.jD)({useUnitMultiplier:null==g?void 0:g.useUnitMultiplier}),{cart:I,closeCart:L}=(0,c.l)(),{fadeOut:K}=(0,l.b)(),{sendViewCartEvent:N}=function(){var{currency:{code:e}}=(0,h.kP)(),{items:t,gifts:r,total:a}=(0,u.jD)(),i=(0,s.useCallback)(()=>{n.e(7195).then(n.bind(n,1153)).then(n=>{var{sendAnalyticsEvent:i}=n;return i({name:"view_cart",params:{currency:e,value:a,items:t.concat(r).map(t=>({item_id:t.itemOffered.isVariantOf.productGroupID,item_name:t.itemOffered.isVariantOf.name,item_brand:t.itemOffered.brand.name,item_variant:t.itemOffered.sku,quantity:t.quantity,price:t.price,discount:t.listPrice-t.price,currency:e,item_variant_name:t.itemOffered.name,product_reference_id:t.itemOffered.gtin}))}})})},[e,r,t,a]);return(0,s.useMemo)(()=>({sendViewCartEvent:i}),[i])}(),W=(0,s.useMemo)(()=>0===D.length,[D]);return(0,s.useEffect)(()=>{I&&N()},[I,N]),(0,m.jsx)(m.Fragment,{children:I&&(0,m.jsx)(v,{overlayProps:{className:"section ".concat(p().section," section-cart-sidebar")},title:t,totalItems:E,alertIcon:(0,m.jsx)(o.Z,{name:r,"aria-label":a}),alertText:i,onClose:K,children:W?(0,m.jsx)(x,{onDismiss:L}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(k,{children:[D.map(e=>{var t;return(0,m.jsx)("li",{children:(0,m.jsx)(y,{item:e,taxesConfiguration:C,useUnitMultiplier:null!==(t=null==g?void 0:g.useUnitMultiplier)&&void 0!==t&&t})},e.id)}),G.length>0&&(0,m.jsx)(m.Fragment,{children:G.map(e=>(0,m.jsx)("li",{children:(0,m.jsx)(O,{item:e})},e.id))})]}),(0,m.jsx)(w,{children:(0,m.jsx)(_,{subTotal:null!=C&&C.usePriceWithTaxes?U:T,total:null!=C&&C.usePriceWithTaxes?B:M,includeTaxes:null==C?void 0:C.usePriceWithTaxes,includeTaxesLabel:null==C?void 0:C.taxesLabel,numberOfItems:E,checkoutButton:(0,m.jsx)(j,_objectSpread(_objectSpread({variant:"primary",icon:!F&&(0,m.jsx)(o.Z,{name:f,"aria-label":P,width:18,height:18}),iconPosition:"right"},S),{},{children:F?b:d}))})})]})})})}},2262:function(e){e.exports={section:"section_section__yzDFp"}},3666:function(e,t,n){"use strict";n.d(t,{b:function(){return useFadeEffect}});var r=n(4194);let useFadeEffect=()=>{let[e,t]=(0,r.useState)("out"),n=(0,r.useCallback)(()=>t("out"),[]),a=(0,r.useCallback)(()=>t("in"),[]);return(0,r.useEffect)(()=>(a(),()=>{n()}),[a,n]),{fade:e,fadeIn:a,fadeOut:n}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{8783:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return b}});var r=t(4424),o=t(7292),c=t(4194),i=t(6335),s=t(9617),u=t(6283),a=t(1506),f=t.n(a),p=t(1549);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(n){(0,r.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var l=_objectSpread(_objectSpread({},s.Z),u.Z),b=!0;n.default=function(e){var{globalSections:n}=e;return(0,c.useEffect)(()=>{window.location.href="".concat(f().accountUrl).concat(window.location.search)},[]),(0,p.jsxs)(i.Z,{globalSections:n.sections,components:l,children:[(0,p.jsx)(o.PB,{noindex:!0,nofollow:!0}),(0,p.jsx)("div",{children:"loading..."})]})}},4100:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return t(8783)}])}},function(e){e.O(0,[6167,6335,9774,2888,179],function(){return e(e.s=4100)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e,r,t,c,_,a,n,u,o,i,f,b,d={},p={};function __webpack_require__(e){var r=p[e];if(void 0!==r)return r.exports;var t=p[e]={exports:{}},c=!0;try{d[e].call(t.exports,t,t.exports,__webpack_require__),c=!1}finally{c&&delete p[e]}return t.exports}__webpack_require__.m=d,e=[],__webpack_require__.O=function(r,t,c,_){if(t){_=_||0;for(var a=e.length;a>0&&e[a-1][2]>_;a--)e[a]=e[a-1];e[a]=[t,c,_];return}for(var n=1/0,a=0;a<e.length;a++){for(var t=e[a][0],c=e[a][1],_=e[a][2],u=!0,o=0;o<t.length;o++)n>=_&&Object.keys(__webpack_require__.O).every(function(e){return __webpack_require__.O[e](t[o])})?t.splice(o--,1):(u=!1,_<n&&(n=_));if(u){e.splice(a--,1);var i=c()}}return i},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(e,c){if(1&c&&(e=this(e)),8&c||"object"==typeof e&&e&&(4&c&&e.__esModule||16&c&&"function"==typeof e.then))return e;var _=Object.create(null);__webpack_require__.r(_);var a={};r=r||[null,t({}),t([]),t(t)];for(var n=2&c&&e;"object"==typeof n&&!~r.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach(function(r){a[r]=function(){return e[r]}});return a.default=function(){return e},__webpack_require__.d(_,a),_},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(r,t){return __webpack_require__.f[t](e,r),r},[]))},__webpack_require__.u=function(e){return 7498===e?"static/chunks/7498-49bf89838314b503.js":7972===e?"static/chunks/7972-c266ef7cf3e0650b.js":4349===e?"static/chunks/4349-24e224a3b1307f65.js":"static/chunks/"+(({84:"BannerText",549:"CartItem",866:"FilterSkeleton",1697:"DropdownButton",1724:"EmptyCart",1736:"RegionModal",1781:"CartSidebar",2553:"OrderSummary",2858:"BannerNewsletter",2985:"Gift",3506:"ProductShelf",4219:"DropdownMenu",4600:"UIButton",4983:"Dropdown",5647:"ButtonSignIn",5890:"UIBannerText",5906:"UIToast",6621:"DropdownItem",6636:"ScrollToTopButton",7181:"ProductTiles",9097:"Footer",9513:"Toast",9704:"Newsletter"})[e]||e)+"."+({9:"e42e9b7463b94493",84:"5b250db1cf67e44f",417:"08663bd4b5809548",485:"a35fab0c7c75a11b",549:"44cc90c698a69889",866:"bb18543737014b28",1036:"27f5244aaf7d0915",1153:"ed17e19083f51bdb",1173:"5e86a9295010b785",1417:"feb3146f627742b7",1552:"b5a073e7ac834965",1697:"3991a37657e1d194",1724:"75ccbe1ad429217f",1736:"68b05bfd591d27fc",1781:"11e73132b1647eec",2004:"a778e11dd3802b72",2206:"44239ce81a09bc17",2553:"8f34504b20564fec",2858:"06b2b9724aa3c3ea",2985:"affb75f8f7bcb6db",3143:"1aaec7f4a9e83b8d",3264:"80d16d39a7e368a3",3506:"e80131dfc337fae6",3508:"26521807675d3328",3675:"b6f0a3644a7802fe",3684:"ba7a2a994988063b",3979:"485ff5351a2504d8",4216:"e3f7a9edc64eff1f",4219:"943b2d11ffa50ff6",4600:"c7a3273ac6ee5da5",4746:"19eddeaeb33ea820",4865:"5510588c651e4dc7",4983:"7fe839c5ffce4687",5146:"51ce8a752857f695",5647:"df0e3ce490436fe2",5890:"5ee380812ac3772c",5906:"85ae30e3e8cc5ec7",6076:"d80e37e35892bafc",6536:"cd75ac69c241a35c",6608:"bd0a9416a690fadc",6621:"0b3c39f881ca0832",6636:"1e2de71b3497db8c",6866:"dc7b69f33ce6154f",7181:"413c061cf10578b4",7195:"e88924bd232c58b7",7668:"a4563dd2b008dbc6",7959:"9d31abae51a7e419",9097:"1f83637df0884013",9130:"6fc1c6290c009ca1",9513:"01d4ac8bf14c1be5",9704:"d775e641d99322e6"})[e]+".js"},__webpack_require__.miniCssF=function(e){return"static/css/"+({485:"197e314c5a03eabd",1736:"f03f8973f7c72071",1781:"b52f8f6500d3439e",2103:"b5bf49598c8f8b66",2197:"2980acad3f8e1028",2858:"865e30903caadb79",2888:"0a57ee6c7a57788c",3459:"2980acad3f8e1028",3508:"5273202f7c5e5ec1",4349:"62a5153ac7061286",4625:"2841bab51b99dd53",4746:"e4b714970415f2eb",5405:"b1806cbafd0c1f81",6335:"b0c0e0632c5d7f52",6552:"2980acad3f8e1028",6608:"18e4be87b97035da",6636:"936c65069d608087",7181:"4656927d3ebbf5b8",7959:"fd0a7a134ddc3d90",7972:"a3ca6a9b63f657be",8573:"2980acad3f8e1028",9097:"083dc2a5b0de2439",9513:"6e9b83ba680dd4a6"})[e]+".css"},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c={},_="_N_E:",__webpack_require__.l=function(e,r,t,a){if(c[e]){c[e].push(r);return}if(void 0!==t)for(var n,u,o=document.getElementsByTagName("script"),i=0;i<o.length;i++){var f=o[i];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==_+t){n=f;break}}n||(u=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",_+t),n.src=__webpack_require__.tu(e)),c[e]=[r];var onScriptComplete=function(r,t){n.onerror=n.onload=null,clearTimeout(b);var _=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),_&&_.forEach(function(e){return e(t)}),r)return r(t)},b=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=onScriptComplete.bind(null,n.onerror),n.onload=onScriptComplete.bind(null,n.onload),u&&document.head.appendChild(n)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.tt=function(){return void 0===a&&(a={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(a=trustedTypes.createPolicy("nextjs#bundler",a))),a},__webpack_require__.tu=function(e){return __webpack_require__.tt().createScriptURL(e)},__webpack_require__.p="/_next/",n=function(e,r,t,c){var _=document.createElement("link");return _.rel="stylesheet",_.type="text/css",_.onerror=_.onload=function(a){if(_.onerror=_.onload=null,"load"===a.type)t();else{var n=a&&("load"===a.type?"missing":a.type),u=a&&a.target&&a.target.href||r,o=Error("Loading CSS chunk "+e+" failed.\n("+u+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=n,o.request=u,_.parentNode.removeChild(_),c(o)}},_.href=r,document.head.appendChild(_),_},u=function(e,r){for(var t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var _=t[c],a=_.getAttribute("data-href")||_.getAttribute("href");if("stylesheet"===_.rel&&(a===e||a===r))return _}for(var n=document.getElementsByTagName("style"),c=0;c<n.length;c++){var _=n[c],a=_.getAttribute("data-href");if(a===e||a===r)return _}},o={2272:0},__webpack_require__.f.miniCss=function(e,r){o[e]?r.push(o[e]):0!==o[e]&&({485:1,1736:1,1781:1,2858:1,3508:1,4349:1,4746:1,6608:1,6636:1,7181:1,7959:1,7972:1,9097:1,9513:1})[e]&&r.push(o[e]=new Promise(function(r,t){var c=__webpack_require__.miniCssF(e),_=__webpack_require__.p+c;if(u(c,_))return r();n(e,_,r,t)}).then(function(){o[e]=0},function(r){throw delete o[e],r}))},i={2272:0,7972:0},__webpack_require__.f.j=function(e,r){var t=__webpack_require__.o(i,e)?i[e]:void 0;if(0!==t){if(t)r.push(t[2]);else if(/^((22|79)72|(35|66)08)$/.test(e))i[e]=0;else{var c=new Promise(function(r,c){t=i[e]=[r,c]});r.push(t[2]=c);var _=__webpack_require__.p+__webpack_require__.u(e),a=Error();__webpack_require__.l(_,function(r){if(__webpack_require__.o(i,e)&&(0!==(t=i[e])&&(i[e]=void 0),t)){var c=r&&("load"===r.type?"missing":r.type),_=r&&r.target&&r.target.src;a.message="Loading chunk "+e+" failed.\n("+c+": "+_+")",a.name="ChunkLoadError",a.type=c,a.request=_,t[1](a)}},"chunk-"+e,e)}}},__webpack_require__.O.j=function(e){return 0===i[e]},f=function(e,r){var t,c,_=r[0],a=r[1],n=r[2],u=0;if(_.some(function(e){return 0!==i[e]})){for(t in a)__webpack_require__.o(a,t)&&(__webpack_require__.m[t]=a[t]);if(n)var o=n(__webpack_require__)}for(e&&e(r);u<_.length;u++)c=_[u],__webpack_require__.o(i,c)&&i[c]&&i[c][0](),i[c]=0;return __webpack_require__.O(o)},(b=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(f.bind(null,0)),b.push=f.bind(null,b.push.bind(b))}();
|
package/src/pages/account.tsx
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { Locator } from '@vtex/client-cms'
|
|
2
|
-
import type { GetStaticProps } from 'next'
|
|
3
|
-
import { NextSeo } from 'next-seo'
|
|
4
|
-
import type { ComponentType } from 'react'
|
|
5
|
-
import { useEffect } from 'react'
|
|
6
|
-
import {
|
|
7
|
-
type GlobalSectionsData,
|
|
8
|
-
getGlobalSectionsData,
|
|
9
|
-
} from 'src/components/cms/GlobalSections'
|
|
10
|
-
import RenderSections from 'src/components/cms/RenderSections'
|
|
11
|
-
import { default as GLOBAL_COMPONENTS } from 'src/components/cms/global/Components'
|
|
12
|
-
import CUSTOM_COMPONENTS from 'src/customizations/src/components'
|
|
13
|
-
import { injectGlobalSections } from 'src/server/cms/global'
|
|
14
|
-
import storeConfig from '../../discovery.config'
|
|
15
|
-
|
|
16
|
-
type Props = {
|
|
17
|
-
globalSections: GlobalSectionsData
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* A list of components that can be used in the CMS. */
|
|
21
|
-
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
22
|
-
...GLOBAL_COMPONENTS,
|
|
23
|
-
...CUSTOM_COMPONENTS,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function Page({ globalSections }: Props) {
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
window.location.href = `${storeConfig.accountUrl}${window.location.search}`
|
|
29
|
-
}, [])
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<RenderSections
|
|
33
|
-
globalSections={globalSections.sections}
|
|
34
|
-
components={COMPONENTS}
|
|
35
|
-
>
|
|
36
|
-
<NextSeo noindex nofollow />
|
|
37
|
-
|
|
38
|
-
<div>loading...</div>
|
|
39
|
-
</RenderSections>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const getStaticProps: GetStaticProps<
|
|
44
|
-
Props,
|
|
45
|
-
Record<string, string>,
|
|
46
|
-
Locator
|
|
47
|
-
> = async ({ previewData }) => {
|
|
48
|
-
const [
|
|
49
|
-
globalSectionsPromise,
|
|
50
|
-
globalSectionsHeaderPromise,
|
|
51
|
-
globalSectionsFooterPromise,
|
|
52
|
-
] = getGlobalSectionsData(previewData)
|
|
53
|
-
|
|
54
|
-
const [globalSections, globalSectionsHeader, globalSectionsFooter] =
|
|
55
|
-
await Promise.all([
|
|
56
|
-
globalSectionsPromise,
|
|
57
|
-
globalSectionsHeaderPromise,
|
|
58
|
-
globalSectionsFooterPromise,
|
|
59
|
-
])
|
|
60
|
-
|
|
61
|
-
const globalSectionsResult = injectGlobalSections({
|
|
62
|
-
globalSections,
|
|
63
|
-
globalSectionsHeader,
|
|
64
|
-
globalSectionsFooter,
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
props: { globalSections: globalSectionsResult },
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export default Page
|