@faststore/core 3.89.4 → 3.89.6

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.
Files changed (37) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +23 -23
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/routes-manifest.json +1 -1
  12. package/.next/server/chunks/9563.js +1 -1
  13. package/.next/server/middleware-build-manifest.js +1 -1
  14. package/.next/server/pages/api/graphql.js +1 -1
  15. package/.next/server/pages/en-US/404.html +1 -1
  16. package/.next/server/pages/en-US/500.html +1 -1
  17. package/.next/server/pages/en-US/checkout.html +1 -1
  18. package/.next/server/pages/en-US/login.html +1 -1
  19. package/.next/server/pages/en-US/s.html +1 -1
  20. package/.next/server/pages/en-US.html +1 -1
  21. package/.next/server/pages/pvt/account/orders.js +1 -1
  22. package/.next/server/pages-manifest.json +1 -1
  23. package/.next/static/chunks/pages/pvt/account/orders-34821345bd7401d9.js +1 -0
  24. package/.next/static/chunks/{webpack-fe84f1d4914ddb17.js → webpack-27e109703d78aaaa.js} +1 -1
  25. package/.next/static/css/244373752cfc52c7.css +1 -0
  26. package/.next/static/{fRN90r79diMZlnp5GTFre → ghf2v1siEy3As1le4gu-I}/_buildManifest.js +1 -1
  27. package/.next/trace +138 -138
  28. package/.turbo/turbo-build.log +9 -9
  29. package/.turbo/turbo-test.log +5 -5
  30. package/CHANGELOG.md +12 -0
  31. package/package.json +2 -2
  32. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrders.tsx +4 -2
  33. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +24 -64
  34. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss +3 -2
  35. package/.next/static/chunks/pages/pvt/account/orders-fe752854bdc2ccca.js +0 -1
  36. package/.next/static/css/f81198b7fe9f5f6f.css +0 -1
  37. /package/.next/static/{fRN90r79diMZlnp5GTFre → ghf2v1siEy3As1le4gu-I}/_ssgManifest.js +0 -0
@@ -25,4 +25,4 @@
25
25
  workspace: 'master'
26
26
  });
27
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><meta name="generated-at" content="2025-10-06T18:44:53.632Z"/><meta name="robots" content="noindex,nofollow"/><meta name="next-head-count" content="5"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><link rel="preload" href="/_next/static/css/24a5e8f6808266fe.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/24a5e8f6808266fe.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/5177628438c28f74.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/5177628438c28f74.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/2980acad3f8e1028.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/2980acad3f8e1028.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-fe84f1d4914ddb17.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-d514426edf885c68.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-595f5e3b626b9fff.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-7867d2068460ae86.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6031-a7dfc540189ff57c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/9173-91e3436dca96010f.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/login-e97ef92769456bf6.js" defer="" crossorigin=""></script><script src="/_next/static/fRN90r79diMZlnp5GTFre/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/fRN90r79diMZlnp5GTFre/_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 data-store-section-name="EmptyState" style="height:823px;width:100%"></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":{"page":{"id":"ca75eb8f-ea96-4aa4-a808-3de299d9f67d","name":"Login Page","type":"login","status":"published","versionId":"26055411-3742-4fa1-8a78-4614f5260e1c","versionStatus":"published","sections":[{"id":"db43506e-b3d0-473a-8ec4-c11072a0947a","name":"EmptyState","data":{"titleIcon":{},"showLoader":true,"errorState":{"errorId":{},"fromUrl":{}},"title":"Loading"}}]},"globalSections":{"id":"0ba2da9e-8768-4f48-bd7d-e61efed79b51","name":"Global Sections","type":"globalSections","status":"published","versionId":"21cd3b7f-4324-4294-ae70-263449cb7d81","versionStatus":"published","sections":[{"id":"3beb977b-a943-48e0-823a-fea525ea0bac","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"f943495f-a83b-4ce8-975a-ef99be94fe1d","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":{"sort":"score_desc"},"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":"8d3670b5-0ebf-4baf-97d7-d459de216906","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"b3fba61d-d97a-47c4-bde5-971fae9435ea","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"}}}},{"id":"ba8cf630-5de3-4a0a-8736-e31f10367c56","name":"RegionModal","data":{"title":"Set your location","description":"Prices, offers and availability may vary according to your 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":"74f48ed6-794c-4608-9761-79b7c3173834","name":"Children","data":{}},{"id":"1730dd8e-7e47-44b6-91be-33e2ffcbd331","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":"/login","query":{},"buildId":"fRN90r79diMZlnp5GTFre","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
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><meta name="generated-at" content="2025-10-09T18:22:44.140Z"/><meta name="robots" content="noindex,nofollow"/><meta name="next-head-count" content="5"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><link rel="preload" href="/_next/static/css/24a5e8f6808266fe.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/24a5e8f6808266fe.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/5177628438c28f74.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/5177628438c28f74.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/2980acad3f8e1028.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/2980acad3f8e1028.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-27e109703d78aaaa.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-d514426edf885c68.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-595f5e3b626b9fff.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-7867d2068460ae86.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6031-a7dfc540189ff57c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/9173-91e3436dca96010f.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/login-e97ef92769456bf6.js" defer="" crossorigin=""></script><script src="/_next/static/ghf2v1siEy3As1le4gu-I/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/ghf2v1siEy3As1le4gu-I/_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 data-store-section-name="EmptyState" style="height:823px;width:100%"></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":{"page":{"id":"ca75eb8f-ea96-4aa4-a808-3de299d9f67d","name":"Login Page","type":"login","status":"published","versionId":"26055411-3742-4fa1-8a78-4614f5260e1c","versionStatus":"published","sections":[{"id":"db43506e-b3d0-473a-8ec4-c11072a0947a","name":"EmptyState","data":{"titleIcon":{},"showLoader":true,"errorState":{"errorId":{},"fromUrl":{}},"title":"Loading"}}]},"globalSections":{"id":"0ba2da9e-8768-4f48-bd7d-e61efed79b51","name":"Global Sections","type":"globalSections","status":"published","versionId":"21cd3b7f-4324-4294-ae70-263449cb7d81","versionStatus":"published","sections":[{"id":"3beb977b-a943-48e0-823a-fea525ea0bac","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"f943495f-a83b-4ce8-975a-ef99be94fe1d","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":{"sort":"score_desc"},"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":"8d3670b5-0ebf-4baf-97d7-d459de216906","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"b3fba61d-d97a-47c4-bde5-971fae9435ea","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"}}}},{"id":"ba8cf630-5de3-4a0a-8736-e31f10367c56","name":"RegionModal","data":{"title":"Set your location","description":"Prices, offers and availability may vary according to your 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":"74f48ed6-794c-4608-9761-79b7c3173834","name":"Children","data":{}},{"id":"1730dd8e-7e47-44b6-91be-33e2ffcbd331","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":"/login","query":{},"buildId":"ghf2v1siEy3As1le4gu-I","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
@@ -25,4 +25,4 @@
25
25
  workspace: 'master'
26
26
  });
27
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><meta name="generated-at" content="2025-10-06T18:44:53.553Z"/><title>FastStore Starter | FastStore</title><meta name="robots" content="noindex,nofollow"/><meta name="description" content="Fast Demo Store"/><meta property="og:title" content="FastStore Starter"/><meta property="og:description" content="Fast Demo Store"/><meta property="og:type" content="website"/><meta name="next-head-count" content="10"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><link rel="preload" href="/_next/static/css/24a5e8f6808266fe.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/24a5e8f6808266fe.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/5177628438c28f74.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/5177628438c28f74.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/32a4ddbf3999c2a5.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/32a4ddbf3999c2a5.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/2980acad3f8e1028.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/2980acad3f8e1028.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-fe84f1d4914ddb17.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-d514426edf885c68.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-595f5e3b626b9fff.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-7867d2068460ae86.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6031-a7dfc540189ff57c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/9173-91e3436dca96010f.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/7191-7fb36e620e08cb4c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/s-5319ae49907c3391.js" defer="" crossorigin=""></script><script src="/_next/static/fRN90r79diMZlnp5GTFre/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/fRN90r79diMZlnp5GTFre/_ssgManifest.js" defer="" crossorigin=""></script></head><body class="theme"><div id="__next"><span data-fs-sr-only="true">FastStore Starter</span><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><section class="section section_section__4Hqa8 section-product-gallery"><section data-testid="product-gallery" data-fs-product-listing="true" data-fs-search-loading="true"><section class="section section_section__KG_b8 section-empty-state"><section data-fs-empty-state="true" data-fs-empty-state-variant="default" data-fs-empty-state-bkg-color="light" data-fs-content="empty-state" data-testid="fs-empty-state"><span data-fs-loader="true" data-fs-loader-variant="dark" data-testid="fs-loader"><span data-fs-loader-item="true"></span><span data-fs-loader-item="true"></span><span data-fs-loader-item="true"></span></span></section></section></section></section><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":{"page":{"id":"aa338e89-bb76-4dee-8d64-95bcc1386b70","name":"Search Page","type":"search","status":"published","versionId":"8c21c68f-ef25-4ad0-a8ed-cd36c24acc21","versionStatus":"published","sections":[{"id":"5c059416-c214-49dc-8696-f745941234d4","name":"Breadcrumb","data":{"icon":"House","alt":"All Products result!!"}},{"id":"412166bd-6513-4e44-8b17-663ec56a4e2d","name":"ProductGallery","data":{"searchTermLabel":"Showing results for:","totalCountLabel":"Results","previousPageButton":{"icon":{"icon":"ArrowLeft","alt":"Arrow Left icon"},"label":"Previous Page"},"loadMorePageButton":{"label":"Load more products"},"filter":{"title":"Filters","mobileOnly":{"filterButton":{"label":"Filters","icon":{"icon":"FadersHorizontal","alt":"Open Filters"}},"clearButtonLabel":"Clear All","applyButtonLabel":"Apply"}},"productCard":{"showDiscountBadge":true,"bordered":true}}}]},"globalSections":{"id":"0ba2da9e-8768-4f48-bd7d-e61efed79b51","name":"Global Sections","type":"globalSections","status":"published","versionId":"21cd3b7f-4324-4294-ae70-263449cb7d81","versionStatus":"published","sections":[{"id":"3beb977b-a943-48e0-823a-fea525ea0bac","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"f943495f-a83b-4ce8-975a-ef99be94fe1d","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":{"sort":"score_desc"},"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":"8d3670b5-0ebf-4baf-97d7-d459de216906","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"b3fba61d-d97a-47c4-bde5-971fae9435ea","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"}}}},{"id":"ba8cf630-5de3-4a0a-8736-e31f10367c56","name":"RegionModal","data":{"title":"Set your location","description":"Prices, offers and availability may vary according to your 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":"74f48ed6-794c-4608-9761-79b7c3173834","name":"Children","data":{}},{"id":"1730dd8e-7e47-44b6-91be-33e2ffcbd331","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":"/s","query":{},"buildId":"fRN90r79diMZlnp5GTFre","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
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><meta name="generated-at" content="2025-10-09T18:22:44.126Z"/><title>FastStore Starter | FastStore</title><meta name="robots" content="noindex,nofollow"/><meta name="description" content="Fast Demo Store"/><meta property="og:title" content="FastStore Starter"/><meta property="og:description" content="Fast Demo Store"/><meta property="og:type" content="website"/><meta name="next-head-count" content="10"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><link rel="preload" href="/_next/static/css/24a5e8f6808266fe.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/24a5e8f6808266fe.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/5177628438c28f74.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/5177628438c28f74.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/32a4ddbf3999c2a5.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/32a4ddbf3999c2a5.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/2980acad3f8e1028.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/2980acad3f8e1028.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-27e109703d78aaaa.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-d514426edf885c68.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-595f5e3b626b9fff.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-7867d2068460ae86.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6031-a7dfc540189ff57c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/9173-91e3436dca96010f.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/7191-7fb36e620e08cb4c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/s-5319ae49907c3391.js" defer="" crossorigin=""></script><script src="/_next/static/ghf2v1siEy3As1le4gu-I/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/ghf2v1siEy3As1le4gu-I/_ssgManifest.js" defer="" crossorigin=""></script></head><body class="theme"><div id="__next"><span data-fs-sr-only="true">FastStore Starter</span><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><section class="section section_section__4Hqa8 section-product-gallery"><section data-testid="product-gallery" data-fs-product-listing="true" data-fs-search-loading="true"><section class="section section_section__KG_b8 section-empty-state"><section data-fs-empty-state="true" data-fs-empty-state-variant="default" data-fs-empty-state-bkg-color="light" data-fs-content="empty-state" data-testid="fs-empty-state"><span data-fs-loader="true" data-fs-loader-variant="dark" data-testid="fs-loader"><span data-fs-loader-item="true"></span><span data-fs-loader-item="true"></span><span data-fs-loader-item="true"></span></span></section></section></section></section><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":{"page":{"id":"aa338e89-bb76-4dee-8d64-95bcc1386b70","name":"Search Page","type":"search","status":"published","versionId":"8c21c68f-ef25-4ad0-a8ed-cd36c24acc21","versionStatus":"published","sections":[{"id":"5c059416-c214-49dc-8696-f745941234d4","name":"Breadcrumb","data":{"icon":"House","alt":"All Products result!!"}},{"id":"412166bd-6513-4e44-8b17-663ec56a4e2d","name":"ProductGallery","data":{"searchTermLabel":"Showing results for:","totalCountLabel":"Results","previousPageButton":{"icon":{"icon":"ArrowLeft","alt":"Arrow Left icon"},"label":"Previous Page"},"loadMorePageButton":{"label":"Load more products"},"filter":{"title":"Filters","mobileOnly":{"filterButton":{"label":"Filters","icon":{"icon":"FadersHorizontal","alt":"Open Filters"}},"clearButtonLabel":"Clear All","applyButtonLabel":"Apply"}},"productCard":{"showDiscountBadge":true,"bordered":true}}}]},"globalSections":{"id":"0ba2da9e-8768-4f48-bd7d-e61efed79b51","name":"Global Sections","type":"globalSections","status":"published","versionId":"21cd3b7f-4324-4294-ae70-263449cb7d81","versionStatus":"published","sections":[{"id":"3beb977b-a943-48e0-823a-fea525ea0bac","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"f943495f-a83b-4ce8-975a-ef99be94fe1d","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":{"sort":"score_desc"},"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":"8d3670b5-0ebf-4baf-97d7-d459de216906","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"b3fba61d-d97a-47c4-bde5-971fae9435ea","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"}}}},{"id":"ba8cf630-5de3-4a0a-8736-e31f10367c56","name":"RegionModal","data":{"title":"Set your location","description":"Prices, offers and availability may vary according to your 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":"74f48ed6-794c-4608-9761-79b7c3173834","name":"Children","data":{}},{"id":"1730dd8e-7e47-44b6-91be-33e2ffcbd331","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":"/s","query":{},"buildId":"ghf2v1siEy3As1le4gu-I","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
@@ -25,4 +25,4 @@
25
25
  workspace: 'master'
26
26
  });
27
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><meta name="generated-at" content="2025-10-06T18:44:53.553Z"/><title>FastStore Starter | FastStore</title><meta name="robots" content="index,follow"/><meta name="description" content="Fast Demo Store"/><meta property="og:title" content="FastStore Starter"/><meta property="og:description" content="Fast Demo Store"/><meta property="og:url" content="https://homebrewqa.fast.store"/><meta property="og:type" content="website"/><link rel="canonical" href="https://homebrewqa.fast.store"/><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","name":"FastStore","url":"https://homebrewqa.fast.store","potentialAction":[{"@type":"SearchAction","target":"https://homebrewqa.fast.store/s/?q={search_term_string}","query-input":"required name=search_term_string"}]}</script><meta name="next-head-count" content="13"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><link rel="preload" href="/_next/static/css/24a5e8f6808266fe.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/24a5e8f6808266fe.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/5177628438c28f74.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/5177628438c28f74.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/331f08e9d306e70b.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/331f08e9d306e70b.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/c29fee5b9f9d48d9.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/c29fee5b9f9d48d9.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-fe84f1d4914ddb17.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-d514426edf885c68.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-595f5e3b626b9fff.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-7867d2068460ae86.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6031-a7dfc540189ff57c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/9173-91e3436dca96010f.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/index-7a9bc631c89fd3f2.js" defer="" crossorigin=""></script><script src="/_next/static/fRN90r79diMZlnp5GTFre/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/fRN90r79diMZlnp5GTFre/_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 data-store-section-name="Hero" style="height:823px;width:100%"></div><div data-store-section-name="Incentives" style="height:823px;width:100%"></div><div data-store-section-name="ProductTiles" style="height:823px;width:100%"></div><div data-store-section-name="ProductShelf" style="height:823px;width:100%"></div><div data-store-section-name="BannerText" style="height:823px;width:100%"></div><div data-store-section-name="ProductShelf" style="height:823px;width:100%"></div><div data-store-section-name="Newsletter" style="height:823px;width:100%"></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":{"page":{"id":"7e6b5afb-1522-4806-a981-86a1b3be6d0c","name":"Home","type":"home","status":"published","versionId":"1acf9800-b0d5-4bb0-b60b-8f7d290c7ead","versionStatus":"published","sections":[{"id":"0b575711-ab94-4bc8-bb8f-abf22b9c2fbb","name":"Hero","data":{"link":{"linkTargetBlank":false,"text":"See Offers","url":"/technology"},"image":{"src":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/1e46eee3-5cd9-4911-8a81-501fe9c744fe___57d4662d50c07e760e6e74d8da282508.jpg","alt":"technology banner"},"title":"Black November Huge Sale! 80% OFF","subtitle":"At FastStore you can shop the best tech of 2024. Enjoy and get 10% off on your first purchase!","linkText":"See ","imageAlt":"office","imageSrc":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/17555ae3-3405-4be6-a19a-e76997a333ea___1fa52ed2b11886ffe215bab9588c345d.jpg","colorVariant":"main","variant":"primary"}},{"id":"0412b585-363a-4fd8-b8bf-11630e7619fd","name":"Incentives","data":{"incentives":[{"title":"Buy online","firstLineText":"Get Free Shipping","icon":"Truck","alt":"Truck"},{"title":"Free return","firstLineText":"30 days to return","icon":"Calendar","alt":"Calendar"},{"title":"Gift cards","firstLineText":"$20/$30/$40","icon":"Gift","alt":"Gift"},{"title":"Physical Stores","firstLineText":"+40 Stores in Brazil","icon":"Storefront","alt":"Store Front"},{"title":"Buy online","firstLineText":"Get Free Shipping","icon":"ShieldCheck","alt":"Shield Check"}]}},{"id":"62338a7a-57c0-4d66-ae5a-287830253b72","name":"ProductTiles","data":{"first":3,"after":"0","sort":"score_desc","selectedFacets":[{"key":"productClusterIds","value":"142"}],"title":"Just Arrived!"}},{"id":"961b1c9a-0b8d-4c16-888f-9f2bcd489ad0","name":"ProductShelf","data":{"numberOfItems":10,"itemsPerPage":5,"after":"0","sort":"score_desc","selectedFacets":[{"key":"productClusterIds","value":"140"}],"productCardConfiguration":{"showDiscountBadge":true,"bordered":true},"title":"Most Wanted"}},{"id":"84a10580-bb64-43e4-b8b1-80a86da34c79","name":"BannerText","data":{"link":{"linkTargetBlank":false,"text":"Check it out now!","url":"/office"},"actionLabel":"Check it out now!","actionPath":"/office","caption":"Enjoy and get 10% off on your first purchase!!","title":"The sun has set out Summer Sale! Save up to 50% off. Don't miss out!","colorVariant":"light","variant":"primary"}},{"id":"2a495fab-6ecc-4e87-87e5-e45db82259c8","name":"ProductShelf","data":{"numberOfItems":5,"itemsPerPage":5,"after":"0","sort":"score_desc","selectedFacets":[{"key":"productClusterIds","value":"142"}],"productCardConfiguration":{"showDiscountBadge":true,"bordered":true},"title":"Deals \u0026 Promotions"}},{"id":"55ad5e86-66ca-4c43-94ed-04a661105f2c","name":"Newsletter","data":{"icon":{"icon":"Envelop","alt":"Envelop"},"title":"Get News and Special Offers!","description":"Receive our news and promotions in advance. Enjoy and get 10% off your first purchase. For more information click here.","emailInputLabel":"Your Email","displayNameInput":true,"nameInputLabel":"Your Name","subscribeButtonLabel":"Subscribe","subscribeButtonLoadingLabel":"Loading...","card":false,"colorVariant":"main","toastSubscribe":{"title":"Hooray!","message":"Thank for your subscription.","icon":"CircleWavyCheck"},"toastSubscribeError":{"title":"Oops.","message":"Something went wrong. Please Try again.","icon":"CircleWavyWarning"},"privacyPolicy":"{\"blocks\":[{\"key\":\"clnfu\",\"text\":\"By subscribing to our newsletter you agree to to our Privacy Policy\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[{\"offset\":53,\"length\":14,\"key\":0}],\"data\":{}}],\"entityMap\":{\"0\":{\"type\":\"LINK\",\"mutability\":\"MUTABLE\",\"data\":{\"url\":\"/\"}}}}"}}]},"globalSections":{"id":"0ba2da9e-8768-4f48-bd7d-e61efed79b51","name":"Global Sections","type":"globalSections","status":"published","versionId":"21cd3b7f-4324-4294-ae70-263449cb7d81","versionStatus":"published","sections":[{"id":"3beb977b-a943-48e0-823a-fea525ea0bac","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"f943495f-a83b-4ce8-975a-ef99be94fe1d","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":{"sort":"score_desc"},"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":"8d3670b5-0ebf-4baf-97d7-d459de216906","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"b3fba61d-d97a-47c4-bde5-971fae9435ea","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"}}}},{"id":"ba8cf630-5de3-4a0a-8736-e31f10367c56","name":"RegionModal","data":{"title":"Set your location","description":"Prices, offers and availability may vary according to your 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":"74f48ed6-794c-4608-9761-79b7c3173834","name":"Children","data":{}},{"id":"1730dd8e-7e47-44b6-91be-33e2ffcbd331","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."}}]},"serverData":null},"__N_SSG":true},"page":"/","query":{},"buildId":"fRN90r79diMZlnp5GTFre","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
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><meta name="generated-at" content="2025-10-09T18:22:44.227Z"/><title>FastStore Starter | FastStore</title><meta name="robots" content="index,follow"/><meta name="description" content="Fast Demo Store"/><meta property="og:title" content="FastStore Starter"/><meta property="og:description" content="Fast Demo Store"/><meta property="og:url" content="https://homebrewqa.fast.store"/><meta property="og:type" content="website"/><link rel="canonical" href="https://homebrewqa.fast.store"/><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","name":"FastStore","url":"https://homebrewqa.fast.store","potentialAction":[{"@type":"SearchAction","target":"https://homebrewqa.fast.store/s/?q={search_term_string}","query-input":"required name=search_term_string"}]}</script><meta name="next-head-count" content="13"/><link rel="preconnect" href="https://storeframework.vtexassets.com"/><link rel="dns-prefetch" href="https://storeframework.vtexassets.com"/><meta name="storefront" content="fast_store"/><link rel="preload" href="/_next/static/css/24a5e8f6808266fe.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/24a5e8f6808266fe.css" crossorigin="" data-n-g=""/><link rel="preload" href="/_next/static/css/5177628438c28f74.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/5177628438c28f74.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/331f08e9d306e70b.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/331f08e9d306e70b.css" crossorigin="" data-n-p=""/><link rel="preload" href="/_next/static/css/c29fee5b9f9d48d9.css" as="style" crossorigin=""/><link rel="stylesheet" href="/_next/static/css/c29fee5b9f9d48d9.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-27e109703d78aaaa.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/framework-d514426edf885c68.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/main-595f5e3b626b9fff.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/_app-7867d2068460ae86.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/6031-a7dfc540189ff57c.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/9173-91e3436dca96010f.js" defer="" crossorigin=""></script><script src="/_next/static/chunks/pages/index-7a9bc631c89fd3f2.js" defer="" crossorigin=""></script><script src="/_next/static/ghf2v1siEy3As1le4gu-I/_buildManifest.js" defer="" crossorigin=""></script><script src="/_next/static/ghf2v1siEy3As1le4gu-I/_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 data-store-section-name="Hero" style="height:823px;width:100%"></div><div data-store-section-name="Incentives" style="height:823px;width:100%"></div><div data-store-section-name="ProductTiles" style="height:823px;width:100%"></div><div data-store-section-name="ProductShelf" style="height:823px;width:100%"></div><div data-store-section-name="BannerText" style="height:823px;width:100%"></div><div data-store-section-name="ProductShelf" style="height:823px;width:100%"></div><div data-store-section-name="Newsletter" style="height:823px;width:100%"></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":{"page":{"id":"7e6b5afb-1522-4806-a981-86a1b3be6d0c","name":"Home","type":"home","status":"published","versionId":"1acf9800-b0d5-4bb0-b60b-8f7d290c7ead","versionStatus":"published","sections":[{"id":"0b575711-ab94-4bc8-bb8f-abf22b9c2fbb","name":"Hero","data":{"link":{"linkTargetBlank":false,"text":"See Offers","url":"/technology"},"image":{"src":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/1e46eee3-5cd9-4911-8a81-501fe9c744fe___57d4662d50c07e760e6e74d8da282508.jpg","alt":"technology banner"},"title":"Black November Huge Sale! 80% OFF","subtitle":"At FastStore you can shop the best tech of 2024. Enjoy and get 10% off on your first purchase!","linkText":"See ","imageAlt":"office","imageSrc":"https://storeframework.vtexassets.com/assets/vtex.file-manager-graphql/images/17555ae3-3405-4be6-a19a-e76997a333ea___1fa52ed2b11886ffe215bab9588c345d.jpg","colorVariant":"main","variant":"primary"}},{"id":"0412b585-363a-4fd8-b8bf-11630e7619fd","name":"Incentives","data":{"incentives":[{"title":"Buy online","firstLineText":"Get Free Shipping","icon":"Truck","alt":"Truck"},{"title":"Free return","firstLineText":"30 days to return","icon":"Calendar","alt":"Calendar"},{"title":"Gift cards","firstLineText":"$20/$30/$40","icon":"Gift","alt":"Gift"},{"title":"Physical Stores","firstLineText":"+40 Stores in Brazil","icon":"Storefront","alt":"Store Front"},{"title":"Buy online","firstLineText":"Get Free Shipping","icon":"ShieldCheck","alt":"Shield Check"}]}},{"id":"62338a7a-57c0-4d66-ae5a-287830253b72","name":"ProductTiles","data":{"first":3,"after":"0","sort":"score_desc","selectedFacets":[{"key":"productClusterIds","value":"142"}],"title":"Just Arrived!"}},{"id":"961b1c9a-0b8d-4c16-888f-9f2bcd489ad0","name":"ProductShelf","data":{"numberOfItems":10,"itemsPerPage":5,"after":"0","sort":"score_desc","selectedFacets":[{"key":"productClusterIds","value":"140"}],"productCardConfiguration":{"showDiscountBadge":true,"bordered":true},"title":"Most Wanted"}},{"id":"84a10580-bb64-43e4-b8b1-80a86da34c79","name":"BannerText","data":{"link":{"linkTargetBlank":false,"text":"Check it out now!","url":"/office"},"actionLabel":"Check it out now!","actionPath":"/office","caption":"Enjoy and get 10% off on your first purchase!!","title":"The sun has set out Summer Sale! Save up to 50% off. Don't miss out!","colorVariant":"light","variant":"primary"}},{"id":"2a495fab-6ecc-4e87-87e5-e45db82259c8","name":"ProductShelf","data":{"numberOfItems":5,"itemsPerPage":5,"after":"0","sort":"score_desc","selectedFacets":[{"key":"productClusterIds","value":"142"}],"productCardConfiguration":{"showDiscountBadge":true,"bordered":true},"title":"Deals \u0026 Promotions"}},{"id":"55ad5e86-66ca-4c43-94ed-04a661105f2c","name":"Newsletter","data":{"icon":{"icon":"Envelop","alt":"Envelop"},"title":"Get News and Special Offers!","description":"Receive our news and promotions in advance. Enjoy and get 10% off your first purchase. For more information click here.","emailInputLabel":"Your Email","displayNameInput":true,"nameInputLabel":"Your Name","subscribeButtonLabel":"Subscribe","subscribeButtonLoadingLabel":"Loading...","card":false,"colorVariant":"main","toastSubscribe":{"title":"Hooray!","message":"Thank for your subscription.","icon":"CircleWavyCheck"},"toastSubscribeError":{"title":"Oops.","message":"Something went wrong. Please Try again.","icon":"CircleWavyWarning"},"privacyPolicy":"{\"blocks\":[{\"key\":\"clnfu\",\"text\":\"By subscribing to our newsletter you agree to to our Privacy Policy\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[{\"offset\":53,\"length\":14,\"key\":0}],\"data\":{}}],\"entityMap\":{\"0\":{\"type\":\"LINK\",\"mutability\":\"MUTABLE\",\"data\":{\"url\":\"/\"}}}}"}}]},"globalSections":{"id":"0ba2da9e-8768-4f48-bd7d-e61efed79b51","name":"Global Sections","type":"globalSections","status":"published","versionId":"21cd3b7f-4324-4294-ae70-263449cb7d81","versionStatus":"published","sections":[{"id":"3beb977b-a943-48e0-823a-fea525ea0bac","name":"Alert","data":{"link":{"text":"Buy now","to":"/office"},"dismissible":true,"icon":"BellRinging","content":"Get 15% off today: NEW15!"}},{"id":"f943495f-a83b-4ce8-975a-ef99be94fe1d","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":{"sort":"score_desc"},"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":"8d3670b5-0ebf-4baf-97d7-d459de216906","name":"RegionBar","data":{"icon":{"icon":"MapPin","alt":"Map Pin icon"},"label":"Set your location","editLabel":"Edit","buttonIcon":{"icon":"CaretRight","alt":"Caret Right icon"}}},{"id":"b3fba61d-d97a-47c4-bde5-971fae9435ea","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"}}}},{"id":"ba8cf630-5de3-4a0a-8736-e31f10367c56","name":"RegionModal","data":{"title":"Set your location","description":"Prices, offers and availability may vary according to your 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":"74f48ed6-794c-4608-9761-79b7c3173834","name":"Children","data":{}},{"id":"1730dd8e-7e47-44b6-91be-33e2ffcbd331","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."}}]},"serverData":null},"__N_SSG":true},"page":"/","query":{},"buildId":"ghf2v1siEy3As1le4gu-I","isFallback":false,"gsp":true,"locale":"en-US","locales":["en-US"],"defaultLocale":"en-US","scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- (()=>{var e={};e.id=1957,e.ids=[1957,2888,660],e.modules={73754:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function({pageTitle:e}){return a.jsx("header",{"data-fs-account-header":!0,children:a.jsx("h1",{"data-fs-account-header-title":!0,children:e})})}},87371:(e,t,r)=>{"use strict";r.d(t,{Z:()=>MyAccountListOrders});var a=r(16689),s=r(33339),n=r(16652),l=r(96396),i=r(83339),o=r(2614),c=r(6133),d=r(13922),u=r(38846),p=r(15699),f=r(64199),b=r(52815),g=r(26174),h=r(93779),y=r(20997);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let j=(0,a.forwardRef)(({to:e,from:t,setDisabled:r},s)=>{let n=(0,a.useRef)(null),l=(0,a.useRef)(null),{0:i,1:o}=(0,a.useState)(),{0:c,1:d}=(0,a.useState)(),{0:u,1:p}=(0,a.useState)({from:t,to:e});function onEnd(e){if(!e.from||!e.to){o(void 0),d(void 0),r(!1);return}new Date(e.from)>new Date(e.to)?(o("Invalid date range"),r(!0)):(o(void 0),d(void 0),r(!1))}return(0,a.useImperativeHandle)(s,()=>({clear:()=>{o(void 0),d(void 0),p({from:"",to:""}),n.current&&(n.current.value=""),l.current&&(l.current.value="")},getDataRangeFacet:()=>({key:"dateRange",value:u})})),y.jsx("div",{"data-fs-list-orders-filters-date-range":!0,children:(0,y.jsxs)("div",{"data-fs-list-orders-filters-date-range-inputs":!0,children:[y.jsx(h.Z,{id:"date-range-from",label:"From",type:"date",inputMode:"text",error:i,inputRef:n,value:u.from,onChange:e=>(function(e){p(_objectSpread(_objectSpread({},u),{},{from:String(e)})),onEnd?.(_objectSpread(_objectSpread({},u),{},{from:String(e)}))})(e.target.value),onBlur:()=>!i&&onEnd?.(u)}),y.jsx(h.Z,{id:"date-range-to",label:"To",type:"date",inputMode:"text",error:c,inputRef:l,value:u.to,onChange:e=>(function(e){p(_objectSpread(_objectSpread({},u),{},{to:String(e)})),onEnd?.(_objectSpread(_objectSpread({},u),{},{to:String(e)}))})(e.target.value),onBlur:()=>!c&&onEnd?.(u)})]})})});var m=r(42256),x=r(83982),v=r(37041);let O=[{purchase_agent_id:"1",name:"Robert Fox",email:"robert.fox@example.com"},{purchase_agent_id:"2",name:"Ronald Wilson",email:"ronald.wilson@example.com"},{purchase_agent_id:"3",name:"Cameron Williamson",email:"cameron.williamson@example.com"},{purchase_agent_id:"4",name:"Brooklyn Simmons",email:"brooklyn.simmons@example.com"}],account_useShopperSuggestions=function(e=""){let{0:t,1:r}=(0,a.useState)({shoppers:O}),{0:s,1:n}=(0,a.useState)(null),{0:l,1:i}=(0,a.useState)(!1),o=(0,a.useCallback)(async e=>{if(!e?.trim()){r({shoppers:O}),i(!1);return}i(!0),n(null);try{let t=await new Promise(t=>{setTimeout(()=>{let r=e.trim().toLowerCase(),a=O.filter(e=>e.name.toLowerCase().includes(r)||e.email.toLowerCase().includes(r));t(a)},300)});r({shoppers:t})}catch(e){n(e instanceof Error?e:Error("Failed to search for shoppers")),r({shoppers:[]})}finally{i(!1)}},[]);(0,a.useEffect)(()=>{if(!e&&null===t)return;let r=setTimeout(()=>{o(e)},300);return()=>{clearTimeout(r)}},[e]);let c=(0,a.useMemo)(()=>e=>t?.shoppers.find(t=>t.purchase_agent_id===e),[]);return{data:t,error:s,isLoading:l,findShopperById:c}},MyAccountFilterFacetPlacedBy_MyAccountFilterFacetPlacedBy=function({selected:e,dispatch:t}){let r=(0,a.useRef)(null),{0:s,1:n}=(0,a.useState)(""),{0:l,1:i}=(0,a.useState)(null),{0:c,1:d}=(0,a.useState)(!1),{data:u,isLoading:p,findShopperById:f}=account_useShopperSuggestions(s),b=u?.shoppers||[],g=(0,a.useMemo)(()=>e.find(e=>"purchaseAgentId"===e.key)?.value,[e]),clearAll=()=>{n(""),i(null),r.current&&(r.current.value="")};(0,a.useEffect)(()=>{if(g&&!l){let e=f(g);e&&i(e)}else g||clearAll()},[g,l]);let h=(0,a.useMemo)(()=>!p&&s&&0===b.length,[p,s,b]);return(0,y.jsxs)("div",{"data-fs-list-orders-filters-placed-by":!0,children:[(0,y.jsxs)("div",{"data-fs-list-orders-filters-placed-by-input":!0,children:[y.jsx(m.Z,{id:"placed-by-input",placeholder:"Enter the shopper's name...",ref:r,value:l?l.name:s,readOnly:!!l,onFocus:()=>{l||d(!0)},onChange:e=>{l||(n(e.target.value),d(!0))},onBlur:()=>{setTimeout(()=>{d(!1),!l&&(n(""),r.current&&(r.current.value=""))},100)},type:"text",inputMode:"text"}),p&&y.jsx("div",{"data-fs-list-orders-filters-placed-by-loader":!0,children:y.jsx(x.Z,{})}),l&&y.jsx(v.Z,{size:"small","aria-label":"Clear shopper","data-fs-list-orders-filters-placed-by-clear":!0,icon:y.jsx(o.Z,{name:"X"}),onClick:function(){l&&t({type:"toggleFacet",payload:{key:"purchaseAgentId",value:l.purchase_agent_id}}),clearAll()}})]}),c&&h&&y.jsx("div",{"data-fs-list-orders-filters-placed-by-dropdown":!0,"data-fs-list-orders-filters-placed-by-empty":!0,"aria-label":"No shoppers found with query",children:(0,y.jsxs)("p",{children:['No shoppers found with "',s,'"']})}),c&&b.length>0&&y.jsx("div",{"data-fs-list-orders-filters-placed-by-dropdown":!0,"aria-label":"Shopper selection dropdown",children:y.jsx("ul",{children:b.map(e=>y.jsx("li",{children:y.jsx("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{i(e),d(!1),t({type:"setFacet",payload:{facet:{key:"purchaseAgentId",value:e.purchase_agent_id},unique:!0}})},"data-fs-list-orders-filters-placed-by-option":!0,children:y.jsx("span",{"data-fs-list-orders-filters-placed-by-option-name":!0,children:e.name})})},e.purchase_agent_id))})})]})};var S=r(66536),w=r.n(S);let MyAccountFilterSlider_MyAccountFilterSlider=function({facets:e,testId:t,dispatch:r,expanded:s,selected:n,title:l,clearButtonLabel:i,applyButtonLabel:o,searchInputRef:c}){let d=(0,a.useRef)(null),{0:h,1:m}=(0,a.useState)(!1),handleFilterChange=({selectedFacets:e,text:t})=>{let r=e.reduce((e,t)=>{let{key:r,value:a}=t;return"dateInitial"===r&&(e.dateInitial=a),"dateFinal"===r&&(e.dateFinal=a),"status"===r&&(e.status=Array.isArray(e.status)?[...e.status,a]:[a]),"purchaseAgentId"===r&&(e.purchaseAgentId=a),e},{}),a=new URLSearchParams;t&&a.set("text",t),Object.entries(r).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>a.append(e,t)):a.set(e,t)}),window.location.href=`/pvt/account/orders?${a.toString()}`};return y.jsx(u.Z,{overlayProps:{className:`section ${w().section} section-filter-slider`},title:l,size:"partial",direction:"rightSide",clearBtnProps:{variant:"secondary",onClick:()=>{d.current?.clear(),r({type:"selectFacets",payload:[]})},children:i??"Clear All"},applyBtnProps:{variant:"primary",onClick:()=>{let e=d.current?.getDataRangeFacet?.(),t=e?.value?.from?.trim?.(),r=e?.value?.to?.trim?.(),a=[];t&&a.push({key:"dateInitial",value:t}),r&&a.push({key:"dateFinal",value:r});let s=[...n,...a];handleFilterChange({selectedFacets:s,text:c.current?.inputRef.value})},disabled:h,children:o??"Apply"},onClose:()=>{},children:y.jsx(p.Z,{testId:`mobile-${t}`,indicesExpanded:s,onAccordionChange:e=>r({type:"toggleExpanded",payload:e}),children:e.map((e,a)=>{let{__typename:l,label:i}=e,o=s.has(a);return(0,y.jsxs)(f.Z,{testId:`mobile-${t}`,index:a,type:l,label:i,children:["StoreFacetBoolean"===l&&o&&y.jsx(b.Z,{children:e.values.map(a=>{let s=t?.trim().toLowerCase()||"",n=e.label?.trim().toLowerCase()||"",l=a.label?.trim().toLowerCase()||"",i=`${s}-${n}-${l}`;return y.jsx(g.Z,{id:i,testId:`mobile-${s}`,onFacetChange:e=>r({type:"toggleFacet",payload:e}),selected:a.selected,value:a.value,quantity:a.quantity,facetKey:e.key,label:a.label},i)})}),"StoreFacetPlacedBy"===l&&o&&y.jsx(MyAccountFilterFacetPlacedBy_MyAccountFilterFacetPlacedBy,{selected:n,dispatch:r}),"StoreFacetRange"===l&&o&&y.jsx(j,{ref:d,from:e.from,to:e.to,setDisabled:m})]},`${t}-${i}-${a}`)})})})};var _=r(73754);let useDebounce=(e,t,r)=>{let{0:s,1:n}=(0,a.useState)(r);return(0,a.useEffect)(()=>{if(s===r)return;let a=setTimeout(()=>{e(s)},t);return()=>{clearTimeout(a)}},[s]),n};var P=r(9664);let A=["value"];function useMyAccountFilter_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function useMyAccountFilter_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?useMyAccountFilter_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):useMyAccountFilter_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let reducer=(e,t)=>{let{expanded:r,selected:a}=e,{type:s,payload:n}=t;switch(s){case"toggleExpanded":return r.has(n)?r.delete(n):r.add(n),useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{expanded:new Set(r)});case"selectFacets":if(n!==a)return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:n});break;case"toggleFacet":return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:(0,P.wB)(e.selected,n)});case"setFacet":return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:(0,P.uL)(e.selected,n.facet,n.unique)});default:throw Error(`Action ${s} not implemented`)}return e},useMyAccountFilter=({allFacets:e,selectedFacets:t})=>{let{0:{selected:r,expanded:s},1:n}=(0,a.useReducer)(reducer,null,()=>({expanded:new Set([0,1]),selected:t})),l=(0,a.useMemo)(()=>r.reduce((e,t)=>(e.has(t.key)||e.set(t.key,new Map),e.get(t.key)?.set(t.value,t),e),new Map),[r]),i=(0,a.useMemo)(()=>e.map(e=>"StoreFacetBoolean"===e.__typename?useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{values:e.values.map(t=>{let{value:r}=t;return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r,a,s={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(t,A)),{},{value:r.toLowerCase(),selected:!!l.get(e.key)?.has(r.toLowerCase())})})}):e),[e,l]);return{facets:i,selected:r,expanded:s,dispatch:n}};var F=r(60679),E=r(15759),C=r(2562),D=r(96896),M=r(97358);function ExpandButton({isExpanded:e,onToggle:t,label:r,ariaControls:a}){return y.jsx(i.Z,{"aria-expanded":e,"aria-controls":a,"data-fs-list-orders-table-expand-button":!0,size:"small",variant:"primary",inverse:!0,iconPosition:"right",icon:e?y.jsx(o.Z,{width:16,height:16,name:"CaretUp","aria-label":"Collapse"}):y.jsx(o.Z,{width:16,height:16,name:"CaretDown","aria-label":"Expand"}),onClick:e=>{e.preventDefault(),e.stopPropagation(),t(e)},children:e?"View less":r??"View all"})}function MyAccountListOrdersTable_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function MyAccountListOrdersTable_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MyAccountListOrdersTable_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MyAccountListOrdersTable_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function formatOrderDate(e,t){return new Date(e).toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"})}function Pagination({page:e,total:t,perPage:r}){let a=1===e?1:(e-1)*r+1,handlePageChange=e=>{let t=new URLSearchParams(window.location.search);1===e||0===e?t.delete("page"):t.set("page",String(e)),window.location.href=`/pvt/account/orders${t.toString()?`?${t}`:""}`};return(0,y.jsxs)("div",{"data-fs-list-orders-table-pagination":!0,children:[y.jsx("p",{children:`${a} — ${t>a+r-1?a+r-1:t} of ${t}`}),y.jsx(v.Z,{size:"small",variant:"tertiary",disabled:1===e,onClick:()=>handlePageChange(e-1),icon:y.jsx(o.Z,{name:"CaretLeft"}),"aria-label":"Previous Page"}),y.jsx(v.Z,{size:"small",variant:"tertiary",disabled:e===Math.ceil(t/r),onClick:()=>handlePageChange(e+1),icon:y.jsx(o.Z,{name:"CaretRight"}),"aria-label":"Next Page"})]})}function MyAccountListOrdersTable({listOrders:e,total:t,perPage:r,filters:s}){let{isDesktop:n}=(0,F.Z)(),{locale:l}=(0,M.kP)(),i=(0,D.p)(),{0:o,1:c}=(0,a.useState)({}),handleToggle=(e,t)=>{c(r=>MyAccountListOrdersTable_objectSpread(MyAccountListOrdersTable_objectSpread({},r),{},{[e]:MyAccountListOrdersTable_objectSpread(MyAccountListOrdersTable_objectSpread({},r[e]),{},{[t]:!r[e]?.[t]})}))};return(0,y.jsxs)(y.Fragment,{children:[y.jsx("table",{"data-fs-list-orders-table":!0,children:y.jsx("tbody",{"data-fs-list-orders-table-body":!0,children:e.list.map(e=>{let t=e?.customFields?.find(({type:e})=>"order"===e)?.value||[],r=e?.customFields?.find(({type:e})=>"item"===e)?.value||[],a=t&&t.length>0||r&&r.length>0,s=o[e.orderId]?.item||!1,c=o[e.orderId]?.order||!1,{displayed:d,shouldShowButton:u}=getLevel({level:r,isExpanded:s,max:5}),{displayed:p,shouldShowButton:f}=getLevel({level:t,isExpanded:c,max:5}),b=`/pvt/account/orders/${e.orderId}`,g=e.ShippingEstimatedDate?formatOrderDate(e.ShippingEstimatedDate,l):"-",h=e.creationDate?formatOrderDate(e.creationDate,l):"-",j=e.clientName?e.clientName:"-",m=i(e.totalValue,e.currencyCode),x=e.ShippingEstimatedDate?`Delivery by ${formatOrderDate(e.ShippingEstimatedDate,l)}`:"-",v=`additional-info-${e.orderId}-order`,O=`additional-info-${e.orderId}-item`;return(0,y.jsxs)("tr",{"data-fs-list-orders-table-row":!0,onClick:()=>{window.location.href=b},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),window.location.href=b)},tabIndex:0,"aria-label":`View order ${e.orderId} details`,children:[y.jsx("td",{"data-fs-list-orders-table-cell":!0,children:(0,y.jsxs)("div",{"data-fs-list-orders-table-product-info-main":!0,children:[y.jsx("p",{"data-fs-list-orders-table-product-info-order-id":!0,title:`ID: ${e.orderId||"-"}`,children:e.orderId||"-"}),(0,y.jsxs)("p",{"data-fs-list-orders-table-product-info-order-total":!0,title:`Total: ${m}`,children:["Total: ",m]})]})}),n&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[(0,y.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Placed on"}),y.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:h,children:h})]}),a&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Delivery by"}),y.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:g,children:g})]}),(0,y.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Placed by"}),y.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:j,children:j})]})]})]}),!a&&(0,y.jsxs)(y.Fragment,{children:[y.jsx("td",{"data-fs-list-orders-table-cell":!0,children:(0,y.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Delivery by"}),y.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:g,children:g})]})}),y.jsx("td",{"data-fs-list-orders-table-cell":!0,children:(0,y.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Placed by"}),y.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:j,children:j})]})})]}),a&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[p.length>0&&y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,id:v,children:"Order fields"}),p.map((e,t)=>y.jsx("p",{"data-fs-list-orders-table-product-info-order":!0,title:e,"aria-owns":v,children:e},e+t)),f&&y.jsx(ExpandButton,{ariaControls:v,isExpanded:c,count:t.length-5,onToggle:()=>handleToggle(e.orderId,"order")})]}),(0,y.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[d.length>0&&y.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,id:O,children:"Item fields"}),d.map((e,t)=>y.jsx("p",{"data-fs-list-orders-table-product-info-item":!0,title:e,"aria-owns":O,children:e},e+t)),u&&y.jsx(ExpandButton,{ariaControls:O,isExpanded:s,count:r.length-5,onToggle:()=>handleToggle(e.orderId,"item")})]})]})]}),(0,y.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[y.jsx(C.Z,{status:e.status,statusFallback:e.statusDescription}),!n&&y.jsx("p",{children:x})]})]},e.orderId)})})}),n&&y.jsx(Pagination,{page:s.page,total:t,perPage:r})]})}function getLevel({level:e,isExpanded:t,max:r}){let a=e.length>r,s=t?e:e.slice(0,r);return{displayed:s,shouldShowButton:a}}function formatFilterDate(e,t){let[r,a,s]=e.split("-").map(Number),n=new Date(r,a-1,s);return n.toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"})}function Tags({filters:e,onRemoveFilter:t}){let{locale:r}=(0,M.kP)(),{dateInitial:a,dateFinal:s,status:n,purchaseAgentId:l}=e,i=a?formatFilterDate(a,r):"",o=s?formatFilterDate(s,r):"",c=(a||s)&&(0,y.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[y.jsx("span",{"data-fs-list-orders-selected-tag-label":!0,children:(a&&s?`${i} to ${o}`:i?`from ${i}`:`to ${o}`)||""}),y.jsx("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>{t("dateInitial",a)},children:"\xd7"})]},"date-range"),d=(n||[]).map(e=>(0,y.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[y.jsx("span",{children:E.BX[e.toLowerCase()]||e}),y.jsx("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>t("status",e),children:"\xd7"})]},`status-${e}`)),u=l&&(0,y.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[(0,y.jsxs)("span",{children:["Placed by: ",l]}),y.jsx("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>t("purchaseAgentId",l),children:"\xd7"})]},`placed-by-${l}`);return(0,y.jsxs)(y.Fragment,{children:[u,c,d]})}let MyAccountSelectedTags_MyAccountSelectedTags=function({filters:e,onClearAll:t,onRemoveFilter:r}){let a=Object.entries(e).some(([e,t])=>("status"===e||"dateInitial"===e||"dateFinal"===e||"purchaseAgentId"===e)&&t&&(!Array.isArray(t)||t.length>0));return y.jsx(y.Fragment,{children:a&&(0,y.jsxs)("div",{"data-fs-list-orders-selected-tags":!0,children:[y.jsx(Tags,{filters:e,onRemoveFilter:r}),y.jsx(i.Z,{variant:"tertiary",size:"small","data-fs-list-orders-selected-tags-clear-all-button":!0,onClick:t,children:"Clear All"})]})})};var k=r(64774),I=r.n(k);let L=["page","clientEmail"];function MyAccountListOrders_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function MyAccountListOrders_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MyAccountListOrders_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MyAccountListOrders_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function getSelectedFacets({filters:e}){return Object.keys(e).reduce((t,r)=>{if("page"===r||"text"===r||"clientEmail"===r)return t;let a=e[r];if("status"===r&&a.length>0){let e=Array.isArray(a)?a:[a];t.push(...e.map(e=>({key:"status",value:e.toLowerCase()})))}else"dateInitial"===r&&a?t.push({key:"dateInitial",value:String(a)}):"dateFinal"===r&&a?t.push({key:"dateFinal",value:String(a)}):"purchaseAgentId"===r&&a&&t.push({key:"purchaseAgentId",value:String(a)});return t},[])}function MyAccountListOrders({listOrders:e,total:t,perPage:r,filters:u}){let p=(0,s.useRouter)(),{isDesktop:f}=(0,F.Z)(),b=(0,a.useRef)(null);(0,a.useEffect)(()=>{b.current?.inputRef&&(u?.text&&b.current?.inputRef?b.current.inputRef.value=u.text:b.current.inputRef.value="")},[u?.text]);let g=useDebounce(e=>{if(!e&&!p.query.text)return;let t=e.trim().toLowerCase()!==p.query.text?.toString().trim().toLowerCase();if(t){let t=new URLSearchParams(window.location.search);t.delete("text"),t.delete("page"),e&&t.set("text",e),window.location.href=`/pvt/account/orders?${t.toString()}`}},300,String(p.query.text)),h=getSelectedFacets({filters:u}),j=function({filters:e}){return[{__typename:"StoreFacetBoolean",key:"status",label:"Status",values:E.j4.map(e=>({label:e,quantity:0,selected:!1,value:e.toLowerCase()}))},{__typename:"StoreFacetPlacedBy",key:"purchaseAgentId",label:"Placed by"},{__typename:"StoreFacetRange",key:"dateRange",label:"Order Date",from:e.dateInitial,to:e.dateFinal}]}({filters:u}),m=useMyAccountFilter({allFacets:j,selectedFacets:h}),{openFilter:x,filter:v}=(0,n.l8)(),O=u.status.length>0||!!u.dateInitial||!!u.dateFinal||!!u.text,S=0===e.list.length;return(0,y.jsxs)("div",{className:I().page,children:[y.jsx(_.Z,{pageTitle:"Orders"}),(0,y.jsxs)("div",{"data-fs-list-orders-controls":!0,children:[(0,y.jsxs)("div",{"data-fs-list-orders-search-filters":!0,children:[y.jsx(l.Z,{ref:b,"data-fs-search-input-field-list-orders":!0,placeholder:"Search",onBlur:e=>{g(b.current.inputRef.value)},onKeyDown:e=>{"Enter"===e.key&&g(b.current.inputRef.value)},onSubmit:e=>{g(b.current.inputRef.value)}}),y.jsx(i.Z,{"data-fs-list-orders-search-filters-button":!0,size:"small",variant:"tertiary",icon:y.jsx(o.Z,{name:"FadersHorizontal",width:24,height:24,"aria-label":"Open Filters"}),iconPosition:"left",onClick:()=>{m.dispatch({type:"selectFacets",payload:getSelectedFacets({filters:u})}),x()},children:"Filters"})]}),f&&y.jsx(Pagination,{page:u.page,total:t,perPage:r})]}),y.jsx(MyAccountSelectedTags_MyAccountSelectedTags,{filters:{status:u.status,dateInitial:u.dateInitial,dateFinal:u.dateFinal,purchaseAgentId:u.purchaseAgentId},onClearAll:()=>{window.location.href="/pvt/account/orders"},onRemoveFilter:(e,t)=>{let r=MyAccountListOrders_objectSpread({},u),{page:a,clientEmail:s}=r,n=function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r,a,s={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(r,L);"status"===e&&Array.isArray(n[e])?n[e]=n[e].filter(e=>e!==t):"dateInitial"===e||"dateFinal"===e?(delete n.dateInitial,delete n.dateFinal):"purchaseAgentId"===e?delete n.purchaseAgentId:delete n[e],"status"===e&&Array.isArray(n[e])?n[e]=n[e].filter(e=>e.toLowerCase()!==t.toLowerCase()):"dateInitial"===e||"dateFinal"===e?(delete n.dateInitial,delete n.dateFinal):"purchaseAgentId"===e?delete n.purchaseAgentId:delete n[e];let l=Object.fromEntries(Object.entries(n).filter(([,e])=>Array.isArray(e)?e.length>0:!!e)),i=new URLSearchParams(l);window.location.href=`/pvt/account/orders?${i.toString()}`}}),v&&y.jsx(MyAccountFilterSlider_MyAccountFilterSlider,MyAccountListOrders_objectSpread(MyAccountListOrders_objectSpread({},m),{},{title:"Filters",clearButtonLabel:"Clear All",applyButtonLabel:"View Results",searchInputRef:b,testId:"my-account-filter-slider"})),S?y.jsx(c.Z,{titleIcon:y.jsx(o.Z,{name:O?"MagnifyingGlass":"Bag2",width:56,height:56,weight:"thin"}),title:O?"No results found":"You don't have any orders",bkgColor:"light",children:!O&&y.jsx(d.Z,{"data-fs-list-orders-empty-state-link":!0,href:"/",variant:"secondary",children:"Start shopping"})}):y.jsx(MyAccountListOrdersTable,{listOrders:e,total:t,perPage:r,filters:u}),!f&&y.jsx(Pagination,{page:u.page,total:t,perPage:r})]})}},98643:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function(){return a.jsx(a.Fragment,{})}},68651:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function(){return a.jsx(a.Fragment,{})}},7826:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>ListOrdersPage,getServerSideProps:()=>getServerSideProps});var s=r(25487),n=r(16641),l=r(16886),i=r(93839),o=r(7027),c=r(76924),d=r(55551),u=r(98643),p=r(68651),f=r(99563),b=r(10278),g=r(67275),h=r(15759),y=r(43412),j=r.n(y),m=r(87371),x=r(99990),v=r(7947),O=r(56272),S=r(4018),w=r(20997),_=e([o,i,v,f]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[o,i,v,f]=_.then?(await _)():_;let P=_objectSpread(_objectSpread({},o.Z),c.Z);function ListOrdersPage({globalSections:e,accountName:t,listOrders:r,total:a,perPage:s,filters:o,isRepresentative:c}){let{sections:d,settings:f}=e??{};return w.jsx(O.ZP,{context:{globalSettings:f},children:(0,w.jsxs)(i.ZP,{globalSections:d,components:P,children:[w.jsx(n.NextSeo,{noindex:!0,nofollow:!0}),(0,w.jsxs)(l.Z,{isRepresentative:c,accountName:t,children:[w.jsx(p.Z,{}),w.jsx(m.Z,{listOrders:r,filters:o,perPage:s,total:a}),w.jsx(u.Z,{})]})]})})}let A=s.vX,getServerSideProps=async e=>{let t=await (0,v.h)(e);if(!t)return{redirect:{destination:"/login",permanent:!1}};let r=(0,x.C)({headers:e.req.headers,account:j().api.storeId}),{previewData:a}=e,{isFaststoreMyAccountEnabled:s,redirect:n}=(0,g.j)({query:e.query});if(!s)return{redirect:n};let[l,i,o]=(0,d.Tc)(a),c=Number(e.query.page)||1,u=(Array.isArray(e.query.status)?e.query.status:[e.query.status]).filter(Boolean)||[],p=e.query.dateInitial||"",y=e.query.dateFinal||"",m=e.query.text||"",O=e.query.clientEmail||"",w=e.query.purchaseAgentId||"",_=(0,h.JU)(),P=u.reduce((e,t)=>{let r=Object.entries(_).find(([e])=>e.toLowerCase()===t.toLowerCase());if(r){let[,t]=r;return[...e,...t]}return e},[]).filter(Boolean)||[],[F,E,C,D]=await Promise.all([(0,f.h)({variables:{page:c,perPage:25,status:P,dateInitial:p,dateFinal:y,text:m,clientEmail:O},operation:A},{headers:_objectSpread({},e.req.headers)}),l,i,o]);if(F.errors){console.error(...F.errors);let e=(0,S.E2)(F.errors[0]);return{redirect:{destination:403===e||401===e?"/pvt/account/403":"/pvt/account/404",permanent:!1}}}let M=(0,b.z)({globalSections:E,globalSectionsHeader:C,globalSectionsFooter:D});return{props:{globalSections:M,accountName:F.data.accountProfile.name,listOrders:F.data.listUserOrders,total:F.data.listUserOrders.paging.total,perPage:F.data.listUserOrders.paging.perPage,filters:{page:F.data.listUserOrders.paging.currentPage??c,status:u,dateInitial:p,dateFinal:y,text:m,clientEmail:O,purchaseAgentId:w},isRepresentative:r}}};a()}catch(e){a(e)}})},66536:e=>{e.exports={section:"section_section__YPC0_",load:"section_load__1kqk7"}},64774:e=>{e.exports={page:"styles_page__flnO9"}},16907:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>f,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>O,unstable_getServerProps:()=>x,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>m,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>y});var s=r(21314),n=r(36267),l=r(18400),i=r(42445),o=r(19630),c=r(7826),d=e([c,o]);[c,o]=d.then?(await d)():d;let u=(0,l.l)(c,"default"),p=(0,l.l)(c,"getStaticProps"),f=(0,l.l)(c,"getStaticPaths"),b=(0,l.l)(c,"getServerSideProps"),g=(0,l.l)(c,"config"),h=(0,l.l)(c,"reportWebVitals"),y=(0,l.l)(c,"unstable_getStaticProps"),j=(0,l.l)(c,"unstable_getStaticPaths"),m=(0,l.l)(c,"unstable_getStaticParams"),x=(0,l.l)(c,"unstable_getServerProps"),v=(0,l.l)(c,"unstable_getServerSideProps"),O=new s.PagesRouteModule({definition:{kind:n.x.PAGES,page:"/pvt/account/orders",pathname:"/pvt/account/orders",bundlePath:"",filename:""},components:{App:o.default,Document:i.default},userland:c});a()}catch(e){a(e)}})},82740:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var a=r(16689),s=r.n(a);let n=(0,a.forwardRef)(function({testId:e="fs-checkbox",partial:t,...r},a){return s().createElement("input",{ref:a,"data-fs-checkbox":!0,"data-testid":e,"data-fs-checkbox-partial":t,type:"checkbox",...r})}),l=n},16676:e=>{"use strict";e.exports=require("@vtex/client-cms")},44339:e=>{"use strict";e.exports=require("@vtex/client-cp")},84802:e=>{"use strict";e.exports=require("cookie")},56330:e=>{"use strict";e.exports=require("deepmerge")},12404:e=>{"use strict";e.exports=require("fast-deep-equal")},57343:e=>{"use strict";e.exports=require("graphql")},36548:e=>{"use strict";e.exports=require("graphql/language")},47881:e=>{"use strict";e.exports=require("isomorphic-unfetch")},16641:e=>{"use strict";e.exports=require("next-seo")},62785:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{"use strict";e.exports=require("next/head")},89261:e=>{"use strict";e.exports=require("postcss")},16689:e=>{"use strict";e.exports=require("react")},66405:e=>{"use strict";e.exports=require("react-dom")},19785:e=>{"use strict";e.exports=require("react-intersection-observer")},20997:e=>{"use strict";e.exports=require("react/jsx-runtime")},14037:e=>{"use strict";e.exports=import("@builder.io/partytown/react")},99664:e=>{"use strict";e.exports=import("@envelop/core")},37886:e=>{"use strict";e.exports=import("@envelop/graphql-jit")},84656:e=>{"use strict";e.exports=import("@envelop/parser-cache")},36093:e=>{"use strict";e.exports=import("@envelop/validation-cache")},45774:e=>{"use strict";e.exports=import("@graphql-tools/load-files")},36550:e=>{"use strict";e.exports=import("@graphql-tools/schema")},38722:e=>{"use strict";e.exports=import("@graphql-tools/utils")},15941:e=>{"use strict";e.exports=import("swr")},6113:e=>{"use strict";e.exports=require("crypto")},57147:e=>{"use strict";e.exports=require("fs")},71017:e=>{"use strict";e.exports=require("path")},12781:e=>{"use strict";e.exports=require("stream")},59796:e=>{"use strict";e.exports=require("zlib")}};var t=require("../../../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,772,6804,9985,1554,5683,4913,4168,9630,2445,948,9563,7275,7228,7947,3922,6886,3006,8569,9990,2570],()=>__webpack_exec__(16907));module.exports=r})();
1
+ (()=>{var e={};e.id=1957,e.ids=[1957,2888,660],e.modules={73754:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function({pageTitle:e}){return a.jsx("header",{"data-fs-account-header":!0,children:a.jsx("h1",{"data-fs-account-header-title":!0,children:e})})}},87371:(e,t,r)=>{"use strict";r.d(t,{Z:()=>MyAccountListOrders});var a=r(16689),s=r(33339),n=r(16652),i=r(96396),l=r(83339),o=r(2614),c=r(6133),d=r(13922),u=r(38846),p=r(15699),f=r(64199),g=r(52815),y=r(26174),b=r(93779),h=r(20997);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let j=(0,a.forwardRef)(({to:e,from:t,setDisabled:r},s)=>{let n=(0,a.useRef)(null),i=(0,a.useRef)(null),{0:l,1:o}=(0,a.useState)(),{0:c,1:d}=(0,a.useState)(),{0:u,1:p}=(0,a.useState)({from:t,to:e});function onEnd(e){if(!e.from||!e.to){o(void 0),d(void 0),r(!1);return}new Date(e.from)>new Date(e.to)?(o("Invalid date range"),r(!0)):(o(void 0),d(void 0),r(!1))}return(0,a.useImperativeHandle)(s,()=>({clear:()=>{o(void 0),d(void 0),p({from:"",to:""}),n.current&&(n.current.value=""),i.current&&(i.current.value="")},getDataRangeFacet:()=>({key:"dateRange",value:u})})),h.jsx("div",{"data-fs-list-orders-filters-date-range":!0,children:(0,h.jsxs)("div",{"data-fs-list-orders-filters-date-range-inputs":!0,children:[h.jsx(b.Z,{id:"date-range-from",label:"From",type:"date",inputMode:"text",error:l,inputRef:n,value:u.from,onChange:e=>(function(e){p(_objectSpread(_objectSpread({},u),{},{from:String(e)})),onEnd?.(_objectSpread(_objectSpread({},u),{},{from:String(e)}))})(e.target.value),onBlur:()=>!l&&onEnd?.(u)}),h.jsx(b.Z,{id:"date-range-to",label:"To",type:"date",inputMode:"text",error:c,inputRef:i,value:u.to,onChange:e=>(function(e){p(_objectSpread(_objectSpread({},u),{},{to:String(e)})),onEnd?.(_objectSpread(_objectSpread({},u),{},{to:String(e)}))})(e.target.value),onBlur:()=>!c&&onEnd?.(u)})]})})});var m=r(42256),x=r(83982),v=r(37041);let O=[{purchase_agent_id:"1",name:"Robert Fox",email:"robert.fox@example.com"},{purchase_agent_id:"2",name:"Ronald Wilson",email:"ronald.wilson@example.com"},{purchase_agent_id:"3",name:"Cameron Williamson",email:"cameron.williamson@example.com"},{purchase_agent_id:"4",name:"Brooklyn Simmons",email:"brooklyn.simmons@example.com"}],account_useShopperSuggestions=function(e=""){let{0:t,1:r}=(0,a.useState)({shoppers:O}),{0:s,1:n}=(0,a.useState)(null),{0:i,1:l}=(0,a.useState)(!1),o=(0,a.useCallback)(async e=>{if(!e?.trim()){r({shoppers:O}),l(!1);return}l(!0),n(null);try{let t=await new Promise(t=>{setTimeout(()=>{let r=e.trim().toLowerCase(),a=O.filter(e=>e.name.toLowerCase().includes(r)||e.email.toLowerCase().includes(r));t(a)},300)});r({shoppers:t})}catch(e){n(e instanceof Error?e:Error("Failed to search for shoppers")),r({shoppers:[]})}finally{l(!1)}},[]);(0,a.useEffect)(()=>{if(!e&&null===t)return;let r=setTimeout(()=>{o(e)},300);return()=>{clearTimeout(r)}},[e]);let c=(0,a.useMemo)(()=>e=>t?.shoppers.find(t=>t.purchase_agent_id===e),[]);return{data:t,error:s,isLoading:i,findShopperById:c}},MyAccountFilterFacetPlacedBy_MyAccountFilterFacetPlacedBy=function({selected:e,dispatch:t}){let r=(0,a.useRef)(null),{0:s,1:n}=(0,a.useState)(""),{0:i,1:l}=(0,a.useState)(null),{0:c,1:d}=(0,a.useState)(!1),{data:u,isLoading:p,findShopperById:f}=account_useShopperSuggestions(s),g=u?.shoppers||[],y=(0,a.useMemo)(()=>e.find(e=>"purchaseAgentId"===e.key)?.value,[e]),clearAll=()=>{n(""),l(null),r.current&&(r.current.value="")};(0,a.useEffect)(()=>{if(y&&!i){let e=f(y);e&&l(e)}else y||clearAll()},[y,i]);let b=(0,a.useMemo)(()=>!p&&s&&0===g.length,[p,s,g]);return(0,h.jsxs)("div",{"data-fs-list-orders-filters-placed-by":!0,children:[(0,h.jsxs)("div",{"data-fs-list-orders-filters-placed-by-input":!0,children:[h.jsx(m.Z,{id:"placed-by-input",placeholder:"Enter the shopper's name...",ref:r,value:i?i.name:s,readOnly:!!i,onFocus:()=>{i||d(!0)},onChange:e=>{i||(n(e.target.value),d(!0))},onBlur:()=>{setTimeout(()=>{d(!1),!i&&(n(""),r.current&&(r.current.value=""))},100)},type:"text",inputMode:"text"}),p&&h.jsx("div",{"data-fs-list-orders-filters-placed-by-loader":!0,children:h.jsx(x.Z,{})}),i&&h.jsx(v.Z,{size:"small","aria-label":"Clear shopper","data-fs-list-orders-filters-placed-by-clear":!0,icon:h.jsx(o.Z,{name:"X"}),onClick:function(){i&&t({type:"toggleFacet",payload:{key:"purchaseAgentId",value:i.purchase_agent_id}}),clearAll()}})]}),c&&b&&h.jsx("div",{"data-fs-list-orders-filters-placed-by-dropdown":!0,"data-fs-list-orders-filters-placed-by-empty":!0,"aria-label":"No shoppers found with query",children:(0,h.jsxs)("p",{children:['No shoppers found with "',s,'"']})}),c&&g.length>0&&h.jsx("div",{"data-fs-list-orders-filters-placed-by-dropdown":!0,"aria-label":"Shopper selection dropdown",children:h.jsx("ul",{children:g.map(e=>h.jsx("li",{children:h.jsx("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{l(e),d(!1),t({type:"setFacet",payload:{facet:{key:"purchaseAgentId",value:e.purchase_agent_id},unique:!0}})},"data-fs-list-orders-filters-placed-by-option":!0,children:h.jsx("span",{"data-fs-list-orders-filters-placed-by-option-name":!0,children:e.name})})},e.purchase_agent_id))})})]})};var S=r(66536),w=r.n(S);let MyAccountFilterSlider_MyAccountFilterSlider=function({facets:e,testId:t,dispatch:r,expanded:s,selected:n,title:i,clearButtonLabel:l,applyButtonLabel:o,searchInputRef:c}){let d=(0,a.useRef)(null),{0:b,1:m}=(0,a.useState)(!1),handleFilterChange=({selectedFacets:e,text:t})=>{let r=e.reduce((e,t)=>{let{key:r,value:a}=t;return"dateInitial"===r&&(e.dateInitial=a),"dateFinal"===r&&(e.dateFinal=a),"status"===r&&(e.status=Array.isArray(e.status)?[...e.status,a]:[a]),"purchaseAgentId"===r&&(e.purchaseAgentId=a),e},{}),a=new URLSearchParams;t&&a.set("text",t),Object.entries(r).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>a.append(e,t)):a.set(e,t)}),window.location.href=`/pvt/account/orders?${a.toString()}`};return h.jsx(u.Z,{overlayProps:{className:`section ${w().section} section-filter-slider`},title:i,size:"partial",direction:"rightSide",clearBtnProps:{variant:"secondary",onClick:()=>{d.current?.clear(),r({type:"selectFacets",payload:[]})},children:l??"Clear All"},applyBtnProps:{variant:"primary",onClick:()=>{let e=d.current?.getDataRangeFacet?.(),t=e?.value?.from?.trim?.(),r=e?.value?.to?.trim?.(),a=[];t&&a.push({key:"dateInitial",value:t}),r&&a.push({key:"dateFinal",value:r});let s=[...n,...a];handleFilterChange({selectedFacets:s,text:c.current?.inputRef.value})},disabled:b,children:o??"Apply"},onClose:()=>{},children:h.jsx(p.Z,{testId:`mobile-${t}`,indicesExpanded:s,onAccordionChange:e=>r({type:"toggleExpanded",payload:e}),children:e.map((e,a)=>{let{__typename:i,label:l}=e,o=s.has(a);return(0,h.jsxs)(f.Z,{testId:`mobile-${t}`,index:a,type:i,label:l,children:["StoreFacetBoolean"===i&&o&&h.jsx(g.Z,{children:e.values.map(a=>{let s=t?.trim().toLowerCase()||"",n=e.label?.trim().toLowerCase()||"",i=a.label?.trim().toLowerCase()||"",l=`${s}-${n}-${i}`;return h.jsx(y.Z,{id:l,testId:`mobile-${s}`,onFacetChange:e=>r({type:"toggleFacet",payload:e}),selected:a.selected,value:a.value,quantity:a.quantity,facetKey:e.key,label:a.label},l)})}),"StoreFacetPlacedBy"===i&&o&&h.jsx(MyAccountFilterFacetPlacedBy_MyAccountFilterFacetPlacedBy,{selected:n,dispatch:r}),"StoreFacetRange"===i&&o&&h.jsx(j,{ref:d,from:e.from,to:e.to,setDisabled:m})]},`${t}-${l}-${a}`)})})})};var _=r(73754);let useDebounce=(e,t,r)=>{let{0:s,1:n}=(0,a.useState)(r);return(0,a.useEffect)(()=>{if(s===r)return;let a=setTimeout(()=>{e(s)},t);return()=>{clearTimeout(a)}},[s]),n};var P=r(9664);let A=["value"];function useMyAccountFilter_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function useMyAccountFilter_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?useMyAccountFilter_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):useMyAccountFilter_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let reducer=(e,t)=>{let{expanded:r,selected:a}=e,{type:s,payload:n}=t;switch(s){case"toggleExpanded":return r.has(n)?r.delete(n):r.add(n),useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{expanded:new Set(r)});case"selectFacets":if(n!==a)return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:n});break;case"toggleFacet":return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:(0,P.wB)(e.selected,n)});case"setFacet":return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:(0,P.uL)(e.selected,n.facet,n.unique)});default:throw Error(`Action ${s} not implemented`)}return e},useMyAccountFilter=({allFacets:e,selectedFacets:t})=>{let{0:{selected:r,expanded:s},1:n}=(0,a.useReducer)(reducer,null,()=>({expanded:new Set([0,1]),selected:t})),i=(0,a.useMemo)(()=>r.reduce((e,t)=>(e.has(t.key)||e.set(t.key,new Map),e.get(t.key)?.set(t.value,t),e),new Map),[r]),l=(0,a.useMemo)(()=>e.map(e=>"StoreFacetBoolean"===e.__typename?useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{values:e.values.map(t=>{let{value:r}=t;return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r,a,s={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(t,A)),{},{value:r.toLowerCase(),selected:!!i.get(e.key)?.has(r.toLowerCase())})})}):e),[e,i]);return{facets:l,selected:r,expanded:s,dispatch:n}};var F=r(60679),E=r(15759),C=r(2562),M=r(96896),D=r(97358);function ExpandButton({isExpanded:e,onToggle:t,label:r,ariaControls:a}){return h.jsx(l.Z,{"aria-expanded":e,"aria-controls":a,"data-fs-list-orders-table-expand-button":!0,size:"small",variant:"primary",inverse:!0,iconPosition:"right",icon:e?h.jsx(o.Z,{width:16,height:16,name:"CaretUp","aria-label":"Collapse"}):h.jsx(o.Z,{width:16,height:16,name:"CaretDown","aria-label":"Expand"}),onClick:e=>{e.preventDefault(),e.stopPropagation(),t(e)},children:e?"View less":r??"View all"})}function MyAccountListOrdersTable_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function MyAccountListOrdersTable_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MyAccountListOrdersTable_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MyAccountListOrdersTable_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function formatOrderDate(e,t){return new Date(e).toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"})}function Pagination({page:e,total:t,perPage:r}){let a=1===e?1:(e-1)*r+1,handlePageChange=e=>{let t=new URLSearchParams(window.location.search);1===e||0===e?t.delete("page"):t.set("page",String(e)),window.location.href=`/pvt/account/orders${t.toString()?`?${t}`:""}`};return(0,h.jsxs)("div",{"data-fs-list-orders-table-pagination":!0,children:[h.jsx("p",{children:`${a} — ${t>a+r-1?a+r-1:t} of ${t}`}),h.jsx(v.Z,{size:"small",variant:"tertiary",disabled:1===e,onClick:()=>handlePageChange(e-1),icon:h.jsx(o.Z,{name:"CaretLeft"}),"aria-label":"Previous Page"}),h.jsx(v.Z,{size:"small",variant:"tertiary",disabled:e===Math.ceil(t/r),onClick:()=>handlePageChange(e+1),icon:h.jsx(o.Z,{name:"CaretRight"}),"aria-label":"Next Page"})]})}function MyAccountListOrdersTable({listOrders:e,total:t,perPage:r,filters:s}){let{isDesktop:n}=(0,F.Z)(),{locale:i}=(0,D.kP)(),l=(0,M.p)(),{0:o,1:c}=(0,a.useState)({}),handleToggle=(e,t)=>{c(r=>MyAccountListOrdersTable_objectSpread(MyAccountListOrdersTable_objectSpread({},r),{},{[e]:MyAccountListOrdersTable_objectSpread(MyAccountListOrdersTable_objectSpread({},r[e]),{},{[t]:!r[e]?.[t]})}))};return(0,h.jsxs)(h.Fragment,{children:[h.jsx("table",{"data-fs-list-orders-table":!0,children:h.jsx("tbody",{"data-fs-list-orders-table-body":!0,children:e.list.map(e=>{let t=e?.customFields?.find(({type:e})=>"order"===e)?.value||[],r=e?.customFields?.find(({type:e})=>"item"===e)?.value||[],a=t&&t.length>0||r&&r.length>0,s=o[e.orderId]?.item||!1,c=o[e.orderId]?.order||!1,{displayed:d,shouldShowButton:u}=getLevel({level:r,isExpanded:s,max:5}),{displayed:p,shouldShowButton:f}=getLevel({level:t,isExpanded:c,max:5}),g=`/pvt/account/orders/${e.orderId}`,y=e.ShippingEstimatedDate?formatOrderDate(e.ShippingEstimatedDate,i):"-",b=e.creationDate?formatOrderDate(e.creationDate,i):"-",j=l(e.totalValue,e.currencyCode),m=e.ShippingEstimatedDate?`Delivery by ${formatOrderDate(e.ShippingEstimatedDate,i)}`:"-",x=`additional-info-${e.orderId}-order`,v=`additional-info-${e.orderId}-item`;return(0,h.jsxs)("tr",{"data-fs-list-orders-table-row":!0,onClick:()=>{window.location.href=g},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),window.location.href=g)},tabIndex:0,"aria-label":`View order ${e.orderId} details`,children:[h.jsx("td",{"data-fs-list-orders-table-cell":!0,children:(0,h.jsxs)("div",{"data-fs-list-orders-table-product-info-main":!0,children:[h.jsx("p",{"data-fs-list-orders-table-product-info-order-id":!0,title:`ID: ${e.orderId||"-"}`,children:e.orderId||"-"}),(0,h.jsxs)("p",{"data-fs-list-orders-table-product-info-order-total":!0,title:`Total: ${j}`,children:["Total: ",j]})]})}),n&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[(0,h.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[h.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Placed on"}),h.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:b,children:b})]}),a&&(0,h.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[h.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Delivery by"}),h.jsx("p",{"data-fs-list-orders-table-product-info-value":!0,title:y,children:y})]})]}),h.jsx("td",{"data-fs-list-orders-table-cell":!0,children:a&&(0,h.jsxs)(h.Fragment,{children:[p.length>0&&h.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,id:x,children:"Order fields"}),p.map((e,t)=>h.jsx("p",{"data-fs-list-orders-table-product-info-order":!0,title:e,"aria-owns":x,children:e},e+t)),f&&h.jsx(ExpandButton,{ariaControls:x,isExpanded:c,count:t.length-5,onToggle:()=>handleToggle(e.orderId,"order")})]})}),h.jsx("td",{"data-fs-list-orders-table-cell":!0,children:a&&(0,h.jsxs)(h.Fragment,{children:[d.length>0&&h.jsx("p",{"data-fs-list-orders-table-product-info-label":!0,id:v,children:"Item fields"}),d.map((e,t)=>h.jsx("p",{"data-fs-list-orders-table-product-info-item":!0,title:e,"aria-owns":v,children:e},e+t)),u&&h.jsx(ExpandButton,{ariaControls:v,isExpanded:s,count:r.length-5,onToggle:()=>handleToggle(e.orderId,"item")})]})})]}),(0,h.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[h.jsx(C.Z,{status:e.status,statusFallback:e.statusDescription}),!n&&h.jsx("p",{children:m})]})]},e.orderId)})})}),n&&h.jsx(Pagination,{page:s.page,total:t,perPage:r})]})}function getLevel({level:e,isExpanded:t,max:r}){let a=e.length>r,s=t?e:e.slice(0,r);return{displayed:s,shouldShowButton:a}}function formatFilterDate(e,t){let[r,a,s]=e.split("-").map(Number),n=new Date(r,a-1,s);return n.toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"})}function Tags({filters:e,onRemoveFilter:t}){let{locale:r}=(0,D.kP)(),{dateInitial:a,dateFinal:s,status:n,purchaseAgentId:i}=e,l=a?formatFilterDate(a,r):"",o=s?formatFilterDate(s,r):"",c=(a||s)&&(0,h.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[h.jsx("span",{"data-fs-list-orders-selected-tag-label":!0,children:(a&&s?`${l} to ${o}`:l?`from ${l}`:`to ${o}`)||""}),h.jsx("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>{t("dateInitial",a)},children:"\xd7"})]},"date-range"),d=(n||[]).map(e=>(0,h.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[h.jsx("span",{children:E.BX[e.toLowerCase()]||e}),h.jsx("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>t("status",e),children:"\xd7"})]},`status-${e}`)),u=i&&(0,h.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[(0,h.jsxs)("span",{children:["Placed by: ",i]}),h.jsx("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>t("purchaseAgentId",i),children:"\xd7"})]},`placed-by-${i}`);return(0,h.jsxs)(h.Fragment,{children:[u,c,d]})}let MyAccountSelectedTags_MyAccountSelectedTags=function({filters:e,onClearAll:t,onRemoveFilter:r}){let a=Object.entries(e).some(([e,t])=>("status"===e||"dateInitial"===e||"dateFinal"===e||"purchaseAgentId"===e)&&t&&(!Array.isArray(t)||t.length>0));return h.jsx(h.Fragment,{children:a&&(0,h.jsxs)("div",{"data-fs-list-orders-selected-tags":!0,children:[h.jsx(Tags,{filters:e,onRemoveFilter:r}),h.jsx(l.Z,{variant:"tertiary",size:"small","data-fs-list-orders-selected-tags-clear-all-button":!0,onClick:t,children:"Clear All"})]})})};var k=r(64774),L=r.n(k);let I=["page","clientEmail"];function MyAccountListOrders_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function MyAccountListOrders_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MyAccountListOrders_ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MyAccountListOrders_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function getSelectedFacets({filters:e}){return Object.keys(e).reduce((t,r)=>{if("page"===r||"text"===r||"clientEmail"===r)return t;let a=e[r];if("status"===r&&a.length>0){let e=Array.isArray(a)?a:[a];t.push(...e.map(e=>({key:"status",value:e.toLowerCase()})))}else"dateInitial"===r&&a?t.push({key:"dateInitial",value:String(a)}):"dateFinal"===r&&a?t.push({key:"dateFinal",value:String(a)}):"purchaseAgentId"===r&&a&&t.push({key:"purchaseAgentId",value:String(a)});return t},[])}function MyAccountListOrders({listOrders:e,total:t,perPage:r,filters:u}){let p=(0,s.useRouter)(),{isDesktop:f}=(0,F.Z)(),g=(0,a.useRef)(null);(0,a.useEffect)(()=>{g.current?.inputRef&&(u?.text&&g.current?.inputRef?g.current.inputRef.value=u.text:g.current.inputRef.value="")},[u?.text]);let y=useDebounce(e=>{if(!e&&!p.query.text)return;let t=e.trim().toLowerCase()!==p.query.text?.toString().trim().toLowerCase();if(t){let t=new URLSearchParams(window.location.search);t.delete("text"),t.delete("page"),e&&t.set("text",e),window.location.href=`/pvt/account/orders?${t.toString()}`}},300,String(p.query.text)),b=getSelectedFacets({filters:u}),j=function({filters:e}){return[{__typename:"StoreFacetBoolean",key:"status",label:"Status",values:E.j4.map(e=>({label:e,quantity:0,selected:!1,value:e.toLowerCase()}))},{__typename:"StoreFacetRange",key:"dateRange",label:"Order Date",from:e.dateInitial,to:e.dateFinal}]}({filters:u}),m=useMyAccountFilter({allFacets:j,selectedFacets:b}),{openFilter:x,filter:v}=(0,n.l8)(),O=u.status.length>0||!!u.dateInitial||!!u.dateFinal||!!u.text,S=0===e.list.length;return(0,h.jsxs)("div",{className:L().page,children:[h.jsx(_.Z,{pageTitle:"Orders"}),(0,h.jsxs)("div",{"data-fs-list-orders-controls":!0,children:[(0,h.jsxs)("div",{"data-fs-list-orders-search-filters":!0,children:[h.jsx(i.Z,{ref:g,"data-fs-search-input-field-list-orders":!0,placeholder:"Search",onBlur:e=>{y(g.current.inputRef.value)},onKeyDown:e=>{"Enter"===e.key&&y(g.current.inputRef.value)},onSubmit:e=>{y(g.current.inputRef.value)}}),h.jsx(l.Z,{"data-fs-list-orders-search-filters-button":!0,size:"small",variant:"tertiary",icon:h.jsx(o.Z,{name:"FadersHorizontal",width:24,height:24,"aria-label":"Open Filters"}),iconPosition:"left",onClick:()=>{m.dispatch({type:"selectFacets",payload:getSelectedFacets({filters:u})}),x()},children:"Filters"})]}),f&&h.jsx(Pagination,{page:u.page,total:t,perPage:r})]}),h.jsx(MyAccountSelectedTags_MyAccountSelectedTags,{filters:{status:u.status,dateInitial:u.dateInitial,dateFinal:u.dateFinal},onClearAll:()=>{window.location.href="/pvt/account/orders"},onRemoveFilter:(e,t)=>{let r=MyAccountListOrders_objectSpread({},u),{page:a,clientEmail:s}=r,n=function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r,a,s={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(r,I);"status"===e&&Array.isArray(n[e])?n[e]=n[e].filter(e=>e!==t):"dateInitial"===e||"dateFinal"===e?(delete n.dateInitial,delete n.dateFinal):"purchaseAgentId"===e?delete n.purchaseAgentId:delete n[e],"status"===e&&Array.isArray(n[e])?n[e]=n[e].filter(e=>e.toLowerCase()!==t.toLowerCase()):"dateInitial"===e||"dateFinal"===e?(delete n.dateInitial,delete n.dateFinal):"purchaseAgentId"===e?delete n.purchaseAgentId:delete n[e];let i=Object.fromEntries(Object.entries(n).filter(([,e])=>Array.isArray(e)?e.length>0:!!e)),l=new URLSearchParams(i);window.location.href=`/pvt/account/orders?${l.toString()}`}}),v&&h.jsx(MyAccountFilterSlider_MyAccountFilterSlider,MyAccountListOrders_objectSpread(MyAccountListOrders_objectSpread({},m),{},{title:"Filters",clearButtonLabel:"Clear All",applyButtonLabel:"View Results",searchInputRef:g,testId:"my-account-filter-slider"})),S?h.jsx(c.Z,{titleIcon:h.jsx(o.Z,{name:O?"MagnifyingGlass":"Bag2",width:56,height:56,weight:"thin"}),title:O?"No results found":"You don't have any orders",bkgColor:"light",children:!O&&h.jsx(d.Z,{"data-fs-list-orders-empty-state-link":!0,href:"/",variant:"secondary",children:"Start shopping"})}):h.jsx(MyAccountListOrdersTable,{listOrders:e,total:t,perPage:r,filters:u}),!f&&h.jsx(Pagination,{page:u.page,total:t,perPage:r})]})}},98643:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function(){return a.jsx(a.Fragment,{})}},68651:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function(){return a.jsx(a.Fragment,{})}},7826:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>ListOrdersPage,getServerSideProps:()=>getServerSideProps});var s=r(25487),n=r(16641),i=r(16886),l=r(93839),o=r(7027),c=r(76924),d=r(55551),u=r(98643),p=r(68651),f=r(99563),g=r(10278),y=r(67275),b=r(15759),h=r(43412),j=r.n(h),m=r(87371),x=r(99990),v=r(7947),O=r(56272),S=r(4018),w=r(20997),_=e([o,l,v,f]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[o,l,v,f]=_.then?(await _)():_;let P=_objectSpread(_objectSpread({},o.Z),c.Z);function ListOrdersPage({globalSections:e,accountName:t,listOrders:r,total:a,perPage:s,filters:o,isRepresentative:c}){let{sections:d,settings:f}=e??{};return w.jsx(O.ZP,{context:{globalSettings:f},children:(0,w.jsxs)(l.ZP,{globalSections:d,components:P,children:[w.jsx(n.NextSeo,{noindex:!0,nofollow:!0}),(0,w.jsxs)(i.Z,{isRepresentative:c,accountName:t,children:[w.jsx(p.Z,{}),w.jsx(m.Z,{listOrders:r,filters:o,perPage:s,total:a}),w.jsx(u.Z,{})]})]})})}let A=s.vX,getServerSideProps=async e=>{let t=await (0,v.h)(e);if(!t)return{redirect:{destination:"/login",permanent:!1}};let r=(0,x.C)({headers:e.req.headers,account:j().api.storeId}),{previewData:a}=e,{isFaststoreMyAccountEnabled:s,redirect:n}=(0,y.j)({query:e.query});if(!s)return{redirect:n};let[i,l,o]=(0,d.Tc)(a),c=Number(e.query.page)||1,u=(Array.isArray(e.query.status)?e.query.status:[e.query.status]).filter(Boolean)||[],p=e.query.dateInitial||"",h=e.query.dateFinal||"",m=e.query.text||"",O=e.query.clientEmail||"",w=e.query.purchaseAgentId||"",_=(0,b.JU)(),P=u.reduce((e,t)=>{let r=Object.entries(_).find(([e])=>e.toLowerCase()===t.toLowerCase());if(r){let[,t]=r;return[...e,...t]}return e},[]).filter(Boolean)||[],[F,E,C,M]=await Promise.all([(0,f.h)({variables:{page:c,perPage:25,status:P,dateInitial:p,dateFinal:h,text:m,clientEmail:O},operation:A},{headers:_objectSpread({},e.req.headers)}),i,l,o]);if(F.errors){console.error(...F.errors);let e=(0,S.E2)(F.errors[0]);return{redirect:{destination:403===e||401===e?"/pvt/account/403":"/pvt/account/404",permanent:!1}}}let D=(0,g.z)({globalSections:E,globalSectionsHeader:C,globalSectionsFooter:M});return{props:{globalSections:D,accountName:F.data.accountProfile.name,listOrders:F.data.listUserOrders,total:F.data.listUserOrders.paging.total,perPage:F.data.listUserOrders.paging.perPage,filters:{page:F.data.listUserOrders.paging.currentPage??c,status:u,dateInitial:p,dateFinal:h,text:m,clientEmail:O,purchaseAgentId:w},isRepresentative:r}}};a()}catch(e){a(e)}})},66536:e=>{e.exports={section:"section_section__YPC0_",load:"section_load__1kqk7"}},64774:e=>{e.exports={page:"styles_page__flnO9"}},16907:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>y,default:()=>u,getServerSideProps:()=>g,getStaticPaths:()=>f,getStaticProps:()=>p,reportWebVitals:()=>b,routeModule:()=>O,unstable_getServerProps:()=>x,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>m,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>h});var s=r(21314),n=r(36267),i=r(18400),l=r(42445),o=r(19630),c=r(7826),d=e([c,o]);[c,o]=d.then?(await d)():d;let u=(0,i.l)(c,"default"),p=(0,i.l)(c,"getStaticProps"),f=(0,i.l)(c,"getStaticPaths"),g=(0,i.l)(c,"getServerSideProps"),y=(0,i.l)(c,"config"),b=(0,i.l)(c,"reportWebVitals"),h=(0,i.l)(c,"unstable_getStaticProps"),j=(0,i.l)(c,"unstable_getStaticPaths"),m=(0,i.l)(c,"unstable_getStaticParams"),x=(0,i.l)(c,"unstable_getServerProps"),v=(0,i.l)(c,"unstable_getServerSideProps"),O=new s.PagesRouteModule({definition:{kind:n.x.PAGES,page:"/pvt/account/orders",pathname:"/pvt/account/orders",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:c});a()}catch(e){a(e)}})},82740:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var a=r(16689),s=r.n(a);let n=(0,a.forwardRef)(function({testId:e="fs-checkbox",partial:t,...r},a){return s().createElement("input",{ref:a,"data-fs-checkbox":!0,"data-testid":e,"data-fs-checkbox-partial":t,type:"checkbox",...r})}),i=n},16676:e=>{"use strict";e.exports=require("@vtex/client-cms")},44339:e=>{"use strict";e.exports=require("@vtex/client-cp")},84802:e=>{"use strict";e.exports=require("cookie")},56330:e=>{"use strict";e.exports=require("deepmerge")},12404:e=>{"use strict";e.exports=require("fast-deep-equal")},57343:e=>{"use strict";e.exports=require("graphql")},36548:e=>{"use strict";e.exports=require("graphql/language")},47881:e=>{"use strict";e.exports=require("isomorphic-unfetch")},16641:e=>{"use strict";e.exports=require("next-seo")},62785:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{"use strict";e.exports=require("next/head")},89261:e=>{"use strict";e.exports=require("postcss")},16689:e=>{"use strict";e.exports=require("react")},66405:e=>{"use strict";e.exports=require("react-dom")},19785:e=>{"use strict";e.exports=require("react-intersection-observer")},20997:e=>{"use strict";e.exports=require("react/jsx-runtime")},14037:e=>{"use strict";e.exports=import("@builder.io/partytown/react")},99664:e=>{"use strict";e.exports=import("@envelop/core")},37886:e=>{"use strict";e.exports=import("@envelop/graphql-jit")},84656:e=>{"use strict";e.exports=import("@envelop/parser-cache")},36093:e=>{"use strict";e.exports=import("@envelop/validation-cache")},45774:e=>{"use strict";e.exports=import("@graphql-tools/load-files")},36550:e=>{"use strict";e.exports=import("@graphql-tools/schema")},38722:e=>{"use strict";e.exports=import("@graphql-tools/utils")},15941:e=>{"use strict";e.exports=import("swr")},6113:e=>{"use strict";e.exports=require("crypto")},57147:e=>{"use strict";e.exports=require("fs")},71017:e=>{"use strict";e.exports=require("path")},12781:e=>{"use strict";e.exports=require("stream")},59796:e=>{"use strict";e.exports=require("zlib")}};var t=require("../../../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,772,6804,9985,1554,5683,4913,4168,9630,2445,948,9563,7275,7228,7947,3922,6886,3006,8569,9990,2570],()=>__webpack_exec__(16907));module.exports=r})();
@@ -1 +1 @@
1
- {"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/api/graphql":"pages/api/graphql.js","/api/health/live":"pages/api/health/live.js","/api/health/ready":"pages/api/health/ready.js","/api/preview":"pages/api/preview.js","/404":"pages/404.js","/500":"pages/500.js","/[...slug]":"pages/[...slug].js","/checkout":"pages/checkout.js","/":"pages/index.js","/login":"pages/login.js","/pvt/account/403":"pages/pvt/account/403.js","/pvt/account/[...unknown]":"pages/pvt/account/[...unknown].js","/pvt/account/404":"pages/pvt/account/404.js","/pvt/account":"pages/pvt/account.js","/pvt/account/profile":"pages/pvt/account/profile.js","/pvt/account/orders/[id]":"pages/pvt/account/orders/[id].js","/pvt/account/orders":"pages/pvt/account/orders.js","/pvt/account/security":"pages/pvt/account/security.js","/pvt/account/user-details":"pages/pvt/account/user-details.js","/[slug]/p":"pages/[slug]/p.js","/s":"pages/s.js"}
1
+ {"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/api/graphql":"pages/api/graphql.js","/api/health/live":"pages/api/health/live.js","/api/health/ready":"pages/api/health/ready.js","/api/preview":"pages/api/preview.js","/500":"pages/500.js","/[...slug]":"pages/[...slug].js","/checkout":"pages/checkout.js","/404":"pages/404.js","/login":"pages/login.js","/":"pages/index.js","/pvt/account/403":"pages/pvt/account/403.js","/pvt/account/[...unknown]":"pages/pvt/account/[...unknown].js","/pvt/account":"pages/pvt/account.js","/[slug]/p":"pages/[slug]/p.js","/pvt/account/orders":"pages/pvt/account/orders.js","/pvt/account/profile":"pages/pvt/account/profile.js","/pvt/account/security":"pages/pvt/account/security.js","/pvt/account/user-details":"pages/pvt/account/user-details.js","/pvt/account/orders/[id]":"pages/pvt/account/orders/[id].js","/s":"pages/s.js","/pvt/account/404":"pages/pvt/account/404.js"}
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1957],{16886:function(e,t,a){"use strict";a.d(t,{Z:function(){return MyAccountLayout_MyAccountLayout}});var r=a(56890),n=a(42210),i=a(40727),l=a(83339),o=a(33339),s=a(77085),c=a.n(s),d=a(60679),u=a(31549),Nav=e=>{var{items:t}=e,a=(0,o.useRouter)().pathname;return(0,u.jsx)("ul",{className:c().nav,children:t.map(e=>{var{route:t,title:r}=e;return(0,u.jsx)("li",{className:c().navItem,"data-is-selected":a.includes(t),children:(0,u.jsx)(i.Z,{href:t,tabIndex:0,children:r})},t)})})},MyAccountMenu_MyAccountMenu=e=>{var{avatarImageUrl:t,accountName:a,items:r}=e,{isDesktop:n}=(0,d.Z)();return(0,u.jsxs)("div",{className:c().menu,children:[n?(0,u.jsxs)("div",{className:c().account,children:[(0,u.jsxs)("div",{className:c().avatarContainer,children:[t?(0,u.jsx)("img",{className:c().avatar,src:t}):(0,u.jsx)("span",{className:c().avatar,children:null==a?void 0:a[0]}),(0,u.jsx)("h2",{children:a})]}),(0,u.jsx)(l.Z,{className:c().switchButton,variant:"secondary",size:"small",children:"Switch"})]}):null,(0,u.jsx)(Nav,{items:r})]})},f=[n.d3],MyAccountLayout_MyAccountLayout=e=>{var{children:t,accountName:a,isRepresentative:n=!0}=e,i=n?r.Z:r.Z.filter(e=>{var{route:t}=e;return!f.includes(t)});return(0,u.jsxs)("section",{className:c().layout,children:[(0,u.jsx)(MyAccountMenu_MyAccountMenu,{accountName:a,items:i}),(0,u.jsx)("div",{"data-fs-account-layout-content":!0,children:t})]})}},73754:function(e,t,a){"use strict";var r=a(31549);t.Z=function(e){var{pageTitle:t}=e;return(0,r.jsx)("header",{"data-fs-account-header":!0,children:(0,r.jsx)("h1",{"data-fs-account-header-title":!0,children:t})})}},2562:function(e,t,a){"use strict";var r=a(15759),n=a(31549);t.Z=function(e){var t,{status:a,statusFallback:i}=e;return(0,n.jsx)("span",{"data-fs-my-account-badge":!0,"data-fs-my-account-badge-variant":function(e){var t,{status:a}=e;return(null===(t=r._y[a])||void 0===t?void 0:t.variant)||"neutral"}({status:a}),children:(null===(t=r._y[a])||void 0===t?void 0:t.label)||i||"-"})}},96896:function(e,t,a){"use strict";a.d(t,{p:function(){return useFormatPrice}});var r=a(97358),n=a(44194),useFormatPrice=()=>{var{locale:e}=(0,r.kP)();return(0,n.useCallback)((t,a)=>new Intl.NumberFormat(e,{style:"currency",currency:a,minimumFractionDigits:2}).format(t/100),[e])}},59039:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return V},default:function(){return ListOrdersPage}});var r=a(33067),n=a(35935),i=a(16886),l=a(19173),o=a(81772),s=a(76924),c=a(31549),after=function(){return(0,c.jsx)(c.Fragment,{})},before=function(){return(0,c.jsx)(c.Fragment,{})},d=a(34235),u=a(44194),f=a(33339),p=a(16652),v=a(96396),y=a(83339),m=a(2614),b=a(6133),h=a(13922),g=a(91844),j=a(15699),x=a(64199),w=a(52815),O=a(26174),_=a(93779);function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0).forEach(function(t){(0,r.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var P=(0,u.forwardRef)((e,t)=>{var{to:a,from:r,setDisabled:n}=e,i=(0,u.useRef)(null),l=(0,u.useRef)(null),{0:o,1:s}=(0,u.useState)(),{0:d,1:f}=(0,u.useState)(),{0:p,1:v}=(0,u.useState)({from:r,to:a});function onEnd(e){if(!e.from||!e.to){s(void 0),f(void 0),n(!1);return}new Date(e.from)>new Date(e.to)?(s("Invalid date range"),n(!0)):(s(void 0),f(void 0),n(!1))}return(0,u.useImperativeHandle)(t,()=>({clear:()=>{s(void 0),f(void 0),v({from:"",to:""}),i.current&&(i.current.value=""),l.current&&(l.current.value="")},getDataRangeFacet:()=>({key:"dateRange",value:p})})),(0,c.jsx)("div",{"data-fs-list-orders-filters-date-range":!0,children:(0,c.jsxs)("div",{"data-fs-list-orders-filters-date-range-inputs":!0,children:[(0,c.jsx)(_.Z,{id:"date-range-from",label:"From",type:"date",inputMode:"text",error:o,inputRef:i,value:p.from,onChange:e=>{var t;return t=e.target.value,void(v(_objectSpread(_objectSpread({},p),{},{from:String(t)})),null==onEnd||onEnd(_objectSpread(_objectSpread({},p),{},{from:String(t)})))},onBlur:()=>!o&&(null==onEnd?void 0:onEnd(p))}),(0,c.jsx)(_.Z,{id:"date-range-to",label:"To",type:"date",inputMode:"text",error:d,inputRef:l,value:p.to,onChange:e=>{var t;return t=e.target.value,void(v(_objectSpread(_objectSpread({},p),{},{to:String(t)})),null==onEnd||onEnd(_objectSpread(_objectSpread({},p),{},{to:String(t)})))},onBlur:()=>!d&&(null==onEnd?void 0:onEnd(p))})]})})}),S=a(42256),A=a(83982),E=a(37041),F=a(74988),D=[{purchase_agent_id:"1",name:"Robert Fox",email:"robert.fox@example.com"},{purchase_agent_id:"2",name:"Ronald Wilson",email:"ronald.wilson@example.com"},{purchase_agent_id:"3",name:"Cameron Williamson",email:"cameron.williamson@example.com"},{purchase_agent_id:"4",name:"Brooklyn Simmons",email:"brooklyn.simmons@example.com"}],account_useShopperSuggestions=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{0:a,1:r}=(0,u.useState)({shoppers:D}),{0:n,1:i}=(0,u.useState)(null),{0:l,1:o}=(0,u.useState)(!1),s=(0,u.useCallback)((e=(0,F.Z)(function*(e){if(!(null!=e&&e.trim())){r({shoppers:D}),o(!1);return}o(!0),i(null);try{var t=yield new Promise(t=>{setTimeout(()=>{var a=e.trim().toLowerCase(),r=D.filter(e=>e.name.toLowerCase().includes(a)||e.email.toLowerCase().includes(a));t(r)},300)});r({shoppers:t})}catch(e){i(e instanceof Error?e:Error("Failed to search for shoppers")),r({shoppers:[]})}finally{o(!1)}}),function(t){return e.apply(this,arguments)}),[]);return(0,u.useEffect)(()=>{if(t||null!==a){var e=setTimeout(()=>{s(t)},300);return()=>{clearTimeout(e)}}},[t]),{data:a,error:n,isLoading:l,findShopperById:(0,u.useMemo)(()=>e=>null==a?void 0:a.shoppers.find(t=>t.purchase_agent_id===e),[])}},MyAccountFilterFacetPlacedBy_MyAccountFilterFacetPlacedBy=function(e){var{selected:t,dispatch:a}=e,r=(0,u.useRef)(null),{0:n,1:i}=(0,u.useState)(""),{0:l,1:o}=(0,u.useState)(null),{0:s,1:d}=(0,u.useState)(!1),{data:f,isLoading:p,findShopperById:v}=account_useShopperSuggestions(n),y=(null==f?void 0:f.shoppers)||[],b=(0,u.useMemo)(()=>{var e;return null===(e=t.find(e=>"purchaseAgentId"===e.key))||void 0===e?void 0:e.value},[t]),clearAll=()=>{i(""),o(null),r.current&&(r.current.value="")};(0,u.useEffect)(()=>{if(b&&!l){var e=v(b);e&&o(e)}else b||clearAll()},[b,l]);var h=(0,u.useMemo)(()=>!p&&n&&0===y.length,[p,n,y]);return(0,c.jsxs)("div",{"data-fs-list-orders-filters-placed-by":!0,children:[(0,c.jsxs)("div",{"data-fs-list-orders-filters-placed-by-input":!0,children:[(0,c.jsx)(S.Z,{id:"placed-by-input",placeholder:"Enter the shopper's name...",ref:r,value:l?l.name:n,readOnly:!!l,onFocus:()=>{l||d(!0)},onChange:e=>{l||(i(e.target.value),d(!0))},onBlur:()=>{setTimeout(()=>{d(!1),!l&&(i(""),r.current&&(r.current.value=""))},100)},type:"text",inputMode:"text"}),p&&(0,c.jsx)("div",{"data-fs-list-orders-filters-placed-by-loader":!0,children:(0,c.jsx)(A.Z,{})}),l&&(0,c.jsx)(E.Z,{size:"small","aria-label":"Clear shopper","data-fs-list-orders-filters-placed-by-clear":!0,icon:(0,c.jsx)(m.Z,{name:"X"}),onClick:function(){l&&a({type:"toggleFacet",payload:{key:"purchaseAgentId",value:l.purchase_agent_id}}),clearAll()}})]}),s&&h&&(0,c.jsx)("div",{"data-fs-list-orders-filters-placed-by-dropdown":!0,"data-fs-list-orders-filters-placed-by-empty":!0,"aria-label":"No shoppers found with query",children:(0,c.jsxs)("p",{children:['No shoppers found with "',n,'"']})}),s&&y.length>0&&(0,c.jsx)("div",{"data-fs-list-orders-filters-placed-by-dropdown":!0,"aria-label":"Shopper selection dropdown",children:(0,c.jsx)("ul",{children:y.map(e=>(0,c.jsx)("li",{children:(0,c.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{o(e),d(!1),a({type:"setFacet",payload:{facet:{key:"purchaseAgentId",value:e.purchase_agent_id},unique:!0}})},"data-fs-list-orders-filters-placed-by-option":!0,children:(0,c.jsx)("span",{"data-fs-list-orders-filters-placed-by-option-name":!0,children:e.name})})},e.purchase_agent_id))})})]})},C=a(49048),Z=a.n(C),MyAccountFilterSlider_MyAccountFilterSlider=function(e){var{facets:t,testId:a,dispatch:r,expanded:n,selected:i,title:l,clearButtonLabel:o,applyButtonLabel:s,searchInputRef:d}=e,f=(0,u.useRef)(null),{0:p,1:v}=(0,u.useState)(!1),handleFilterChange=e=>{var{selectedFacets:t,text:a}=e,r=t.reduce((e,t)=>{var{key:a,value:r}=t;return"dateInitial"===a&&(e.dateInitial=r),"dateFinal"===a&&(e.dateFinal=r),"status"===a&&(e.status=Array.isArray(e.status)?[...e.status,r]:[r]),"purchaseAgentId"===a&&(e.purchaseAgentId=r),e},{}),n=new URLSearchParams;a&&n.set("text",a),Object.entries(r).forEach(e=>{var[t,a]=e;Array.isArray(a)?a.forEach(e=>n.append(t,e)):n.set(t,a)}),window.location.href="/pvt/account/orders?".concat(n.toString())};return(0,c.jsx)(g.Z,{overlayProps:{className:"section ".concat(Z().section," section-filter-slider")},title:l,size:"partial",direction:"rightSide",clearBtnProps:{variant:"secondary",onClick:()=>{var e;null===(e=f.current)||void 0===e||e.clear(),r({type:"selectFacets",payload:[]})},children:null!=o?o:"Clear All"},applyBtnProps:{variant:"primary",onClick:()=>{var e,t,a,r,n,l,o,s,c,u=null===(e=f.current)||void 0===e?void 0:null===(t=e.getDataRangeFacet)||void 0===t?void 0:t.call(e),p=null==u?void 0:null===(a=u.value)||void 0===a?void 0:null===(r=a.from)||void 0===r?void 0:null===(n=r.trim)||void 0===n?void 0:n.call(r),v=null==u?void 0:null===(l=u.value)||void 0===l?void 0:null===(o=l.to)||void 0===o?void 0:null===(s=o.trim)||void 0===s?void 0:s.call(o),y=[];p&&y.push({key:"dateInitial",value:p}),v&&y.push({key:"dateFinal",value:v}),handleFilterChange({selectedFacets:[...i,...y],text:null===(c=d.current)||void 0===c?void 0:c.inputRef.value})},disabled:p,children:null!=s?s:"Apply"},onClose:()=>{},children:(0,c.jsx)(j.Z,{testId:"mobile-".concat(a),indicesExpanded:n,onAccordionChange:e=>r({type:"toggleExpanded",payload:e}),children:t.map((e,t)=>{var{__typename:l,label:o}=e,s=n.has(t);return(0,c.jsxs)(x.Z,{testId:"mobile-".concat(a),index:t,type:l,label:o,children:["StoreFacetBoolean"===l&&s&&(0,c.jsx)(w.Z,{children:e.values.map(t=>{var n,i,l=(null==a?void 0:a.trim().toLowerCase())||"",o=(null===(n=e.label)||void 0===n?void 0:n.trim().toLowerCase())||"",s=(null===(i=t.label)||void 0===i?void 0:i.trim().toLowerCase())||"",d="".concat(l,"-").concat(o,"-").concat(s);return(0,c.jsx)(O.Z,{id:d,testId:"mobile-".concat(l),onFacetChange:e=>r({type:"toggleFacet",payload:e}),selected:t.selected,value:t.value,quantity:t.quantity,facetKey:e.key,label:t.label},d)})}),"StoreFacetPlacedBy"===l&&s&&(0,c.jsx)(MyAccountFilterFacetPlacedBy_MyAccountFilterFacetPlacedBy,{selected:i,dispatch:r}),"StoreFacetRange"===l&&s&&(0,c.jsx)(P,{ref:f,from:e.from,to:e.to,setDisabled:v})]},"".concat(a,"-").concat(o,"-").concat(t))})})})},k=a(73754),useDebounce=(e,t,a)=>{var{0:r,1:n}=(0,u.useState)(a);return(0,u.useEffect)(()=>{if(r!==a){var n=setTimeout(()=>{e(r)},t);return()=>{clearTimeout(n)}}},[r]),n},R=a(9664),M=["value"];function useMyAccountFilter_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function useMyAccountFilter_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?useMyAccountFilter_ownKeys(Object(a),!0).forEach(function(t){(0,r.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):useMyAccountFilter_ownKeys(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var reducer=(e,t)=>{var{expanded:a,selected:r}=e,{type:n,payload:i}=t;switch(n){case"toggleExpanded":return a.has(i)?a.delete(i):a.add(i),useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{expanded:new Set(a)});case"selectFacets":if(i!==r)return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:i});break;case"toggleFacet":return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:(0,R.wB)(e.selected,i)});case"setFacet":return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{selected:(0,R.uL)(e.selected,i.facet,i.unique)});default:throw Error("Action ".concat(n," not implemented"))}return e},useMyAccountFilter=e=>{var{allFacets:t,selectedFacets:a}=e,{0:{selected:r,expanded:n},1:i}=(0,u.useReducer)(reducer,null,()=>({expanded:new Set([0,1]),selected:a})),l=(0,u.useMemo)(()=>r.reduce((e,t)=>{var a;return e.has(t.key)||e.set(t.key,new Map),null===(a=e.get(t.key))||void 0===a||a.set(t.value,t),e},new Map),[r]);return{facets:(0,u.useMemo)(()=>t.map(e=>"StoreFacetBoolean"===e.__typename?useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},e),{},{values:e.values.map(t=>{var a,{value:r}=t;return useMyAccountFilter_objectSpread(useMyAccountFilter_objectSpread({},(0,d.Z)(t,M)),{},{value:r.toLowerCase(),selected:!!(null===(a=l.get(e.key))||void 0===a?void 0:a.has(r.toLowerCase()))})})}):e),[t,l]),selected:r,expanded:n,dispatch:i}},I=a(60679),L=a(15759),B=a(2562),N=a(96896),T=a(97358);function ExpandButton(e){var{isExpanded:t,onToggle:a,label:r,ariaControls:n}=e;return(0,c.jsx)(y.Z,{"aria-expanded":t,"aria-controls":n,"data-fs-list-orders-table-expand-button":!0,size:"small",variant:"primary",inverse:!0,iconPosition:"right",icon:t?(0,c.jsx)(m.Z,{width:16,height:16,name:"CaretUp","aria-label":"Collapse"}):(0,c.jsx)(m.Z,{width:16,height:16,name:"CaretDown","aria-label":"Expand"}),onClick:e=>{e.preventDefault(),e.stopPropagation(),a(e)},children:t?"View less":null!=r?r:"View all"})}function MyAccountListOrdersTable_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function MyAccountListOrdersTable_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?MyAccountListOrdersTable_ownKeys(Object(a),!0).forEach(function(t){(0,r.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):MyAccountListOrdersTable_ownKeys(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function formatOrderDate(e,t){return new Date(e).toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"})}function Pagination(e){var{page:t,total:a,perPage:r}=e,n=Math.ceil(a/r),i=1===t?1:(t-1)*r+1,l=a>i+r-1?i+r-1:a,handlePageChange=e=>{var t=new URLSearchParams(window.location.search);1===e||0===e?t.delete("page"):t.set("page",String(e)),window.location.href="/pvt/account/orders".concat(t.toString()?"?".concat(t):"")};return(0,c.jsxs)("div",{"data-fs-list-orders-table-pagination":!0,children:[(0,c.jsx)("p",{children:"".concat(i," — ").concat(l," of ").concat(a)}),(0,c.jsx)(E.Z,{size:"small",variant:"tertiary",disabled:1===t,onClick:()=>handlePageChange(t-1),icon:(0,c.jsx)(m.Z,{name:"CaretLeft"}),"aria-label":"Previous Page"}),(0,c.jsx)(E.Z,{size:"small",variant:"tertiary",disabled:t===n,onClick:()=>handlePageChange(t+1),icon:(0,c.jsx)(m.Z,{name:"CaretRight"}),"aria-label":"Next Page"})]})}function MyAccountListOrdersTable(e){var{listOrders:t,total:a,perPage:r,filters:n}=e,{isDesktop:i}=(0,I.Z)(),{locale:l}=(0,T.kP)(),o=(0,N.p)(),{0:s,1:d}=(0,u.useState)({}),handleToggle=(e,t)=>{d(a=>{var r;return MyAccountListOrdersTable_objectSpread(MyAccountListOrdersTable_objectSpread({},a),{},{[e]:MyAccountListOrdersTable_objectSpread(MyAccountListOrdersTable_objectSpread({},a[e]),{},{[t]:!(null!==(r=a[e])&&void 0!==r&&r[t])})})})};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("table",{"data-fs-list-orders-table":!0,children:(0,c.jsx)("tbody",{"data-fs-list-orders-table-body":!0,children:t.list.map(e=>{var t,a,r,n,d,u,f=(null==e?void 0:null===(t=e.customFields)||void 0===t?void 0:null===(a=t.find(e=>{var{type:t}=e;return"order"===t}))||void 0===a?void 0:a.value)||[],p=(null==e?void 0:null===(r=e.customFields)||void 0===r?void 0:null===(n=r.find(e=>{var{type:t}=e;return"item"===t}))||void 0===n?void 0:n.value)||[],v=f&&f.length>0||p&&p.length>0,y=(null===(d=s[e.orderId])||void 0===d?void 0:d.item)||!1,m=(null===(u=s[e.orderId])||void 0===u?void 0:u.order)||!1,{displayed:b,shouldShowButton:h}=getLevel({level:p,isExpanded:y,max:5}),{displayed:g,shouldShowButton:j}=getLevel({level:f,isExpanded:m,max:5}),x="/pvt/account/orders/".concat(e.orderId),w=e.ShippingEstimatedDate?formatOrderDate(e.ShippingEstimatedDate,l):"-",O=e.creationDate?formatOrderDate(e.creationDate,l):"-",_=o(e.totalValue,e.currencyCode),P=e.ShippingEstimatedDate?"Delivery by ".concat(formatOrderDate(e.ShippingEstimatedDate,l)):"-",S="additional-info-".concat(e.orderId,"-order"),A="additional-info-".concat(e.orderId,"-item");return(0,c.jsxs)("tr",{"data-fs-list-orders-table-row":!0,onClick:()=>{window.location.href=x},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),window.location.href=x)},tabIndex:0,"aria-label":"View order ".concat(e.orderId," details"),children:[(0,c.jsx)("td",{"data-fs-list-orders-table-cell":!0,children:(0,c.jsxs)("div",{"data-fs-list-orders-table-product-info-main":!0,children:[(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-order-id":!0,title:"ID: ".concat(e.orderId||"-"),children:e.orderId||"-"}),(0,c.jsxs)("p",{"data-fs-list-orders-table-product-info-order-total":!0,title:"Total: ".concat(_),children:["Total: ",_]})]})}),i&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[(0,c.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Placed on"}),(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-value":!0,title:O,children:O})]}),v&&(0,c.jsxs)("div",{"data-fs-list-orders-table-product-info":!0,children:[(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-label":!0,children:"Delivery by"}),(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-value":!0,title:w,children:w})]})]}),(0,c.jsx)("td",{"data-fs-list-orders-table-cell":!0,children:v&&(0,c.jsxs)(c.Fragment,{children:[g.length>0&&(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-label":!0,id:S,children:"Order fields"}),g.map((e,t)=>(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-order":!0,title:e,"aria-owns":S,children:e},e+t)),j&&(0,c.jsx)(ExpandButton,{ariaControls:S,isExpanded:m,count:f.length-5,onToggle:()=>handleToggle(e.orderId,"order")})]})}),(0,c.jsx)("td",{"data-fs-list-orders-table-cell":!0,children:v&&(0,c.jsxs)(c.Fragment,{children:[b.length>0&&(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-label":!0,id:A,children:"Item fields"}),b.map((e,t)=>(0,c.jsx)("p",{"data-fs-list-orders-table-product-info-item":!0,title:e,"aria-owns":A,children:e},e+t)),h&&(0,c.jsx)(ExpandButton,{ariaControls:A,isExpanded:y,count:p.length-5,onToggle:()=>handleToggle(e.orderId,"item")})]})})]}),(0,c.jsxs)("td",{"data-fs-list-orders-table-cell":!0,children:[(0,c.jsx)(B.Z,{status:e.status,statusFallback:e.statusDescription}),!i&&(0,c.jsx)("p",{children:P})]})]},e.orderId)})})}),i&&(0,c.jsx)(Pagination,{page:n.page,total:a,perPage:r})]})}function getLevel(e){var{level:t,isExpanded:a,max:r}=e,n=t.length>r;return{displayed:a?t:t.slice(0,r),shouldShowButton:n}}function formatFilterDate(e,t){var[a,r,n]=e.split("-").map(Number);return new Date(a,r-1,n).toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"})}function Tags(e){var{filters:t,onRemoveFilter:a}=e,{locale:r}=(0,T.kP)(),{dateInitial:n,dateFinal:i,status:l,purchaseAgentId:o}=t,s=n?formatFilterDate(n,r):"",d=i?formatFilterDate(i,r):"",u=(n||i)&&(0,c.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[(0,c.jsx)("span",{"data-fs-list-orders-selected-tag-label":!0,children:(n&&i?"".concat(s," to ").concat(d):s?"from ".concat(s):"to ".concat(d))||""}),(0,c.jsx)("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>{a("dateInitial",n)},children:"\xd7"})]},"date-range"),f=(l||[]).map(e=>(0,c.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[(0,c.jsx)("span",{children:L.BX[e.toLowerCase()]||e}),(0,c.jsx)("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>a("status",e),children:"\xd7"})]},"status-".concat(e))),p=o&&(0,c.jsxs)("div",{"data-fs-list-orders-selected-tag":!0,children:[(0,c.jsxs)("span",{children:["Placed by: ",o]}),(0,c.jsx)("button",{"data-fs-list-orders-selected-tag-clear":!0,onClick:()=>a("purchaseAgentId",o),children:"\xd7"})]},"placed-by-".concat(o));return(0,c.jsxs)(c.Fragment,{children:[p,u,f]})}var MyAccountSelectedTags_MyAccountSelectedTags=function(e){var{filters:t,onClearAll:a,onRemoveFilter:r}=e,n=Object.entries(t).some(e=>{var[t,a]=e;return("status"===t||"dateInitial"===t||"dateFinal"===t||"purchaseAgentId"===t)&&a&&(!Array.isArray(a)||a.length>0)});return(0,c.jsx)(c.Fragment,{children:n&&(0,c.jsxs)("div",{"data-fs-list-orders-selected-tags":!0,children:[(0,c.jsx)(Tags,{filters:t,onRemoveFilter:r}),(0,c.jsx)(y.Z,{variant:"tertiary",size:"small","data-fs-list-orders-selected-tags-clear-all-button":!0,onClick:a,children:"Clear All"})]})})},q=a(65841),K=a.n(q),$=["page","clientEmail"];function MyAccountListOrders_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function MyAccountListOrders_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?MyAccountListOrders_ownKeys(Object(a),!0).forEach(function(t){(0,r.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):MyAccountListOrders_ownKeys(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function getSelectedFacets(e){var{filters:t}=e;return Object.keys(t).reduce((e,a)=>{if("page"===a||"text"===a||"clientEmail"===a)return e;var r=t[a];if("status"===a&&r.length>0){var n=Array.isArray(r)?r:[r];e.push(...n.map(e=>({key:"status",value:e.toLowerCase()})))}else"dateInitial"===a&&r?e.push({key:"dateInitial",value:String(r)}):"dateFinal"===a&&r?e.push({key:"dateFinal",value:String(r)}):"purchaseAgentId"===a&&r&&e.push({key:"purchaseAgentId",value:String(r)});return e},[])}function MyAccountListOrders(e){var{listOrders:t,total:a,perPage:r,filters:n}=e,i=(0,f.useRouter)(),{isDesktop:l}=(0,I.Z)(),o=(0,u.useRef)(null);(0,u.useEffect)(()=>{var e,t;null!==(e=o.current)&&void 0!==e&&e.inputRef&&(null!=n&&n.text&&null!==(t=o.current)&&void 0!==t&&t.inputRef?o.current.inputRef.value=n.text:o.current.inputRef.value="")},[null==n?void 0:n.text]);var s=useDebounce(e=>{if((e||i.query.text)&&e.trim().toLowerCase()!==(null===(t=i.query.text)||void 0===t?void 0:t.toString().trim().toLowerCase())){var t,a=new URLSearchParams(window.location.search);a.delete("text"),a.delete("page"),e&&a.set("text",e),window.location.href="/pvt/account/orders?".concat(a.toString())}},300,String(i.query.text)),g=getSelectedFacets({filters:n}),j=useMyAccountFilter({allFacets:function(e){var{filters:t}=e;return[{__typename:"StoreFacetBoolean",key:"status",label:"Status",values:L.j4.map(e=>({label:e,quantity:0,selected:!1,value:e.toLowerCase()}))},{__typename:"StoreFacetRange",key:"dateRange",label:"Order Date",from:t.dateInitial,to:t.dateFinal}]}({filters:n}),selectedFacets:g}),{openFilter:x,filter:w}=(0,p.l8)(),O=n.status.length>0||!!n.dateInitial||!!n.dateFinal||!!n.text,_=0===t.list.length;return(0,c.jsxs)("div",{className:K().page,children:[(0,c.jsx)(k.Z,{pageTitle:"Orders"}),(0,c.jsxs)("div",{"data-fs-list-orders-controls":!0,children:[(0,c.jsxs)("div",{"data-fs-list-orders-search-filters":!0,children:[(0,c.jsx)(v.Z,{ref:o,"data-fs-search-input-field-list-orders":!0,placeholder:"Search",onBlur:e=>{s(o.current.inputRef.value)},onKeyDown:e=>{"Enter"===e.key&&s(o.current.inputRef.value)},onSubmit:e=>{s(o.current.inputRef.value)}}),(0,c.jsx)(y.Z,{"data-fs-list-orders-search-filters-button":!0,size:"small",variant:"tertiary",icon:(0,c.jsx)(m.Z,{name:"FadersHorizontal",width:24,height:24,"aria-label":"Open Filters"}),iconPosition:"left",onClick:()=>{j.dispatch({type:"selectFacets",payload:getSelectedFacets({filters:n})}),x()},children:"Filters"})]}),l&&(0,c.jsx)(Pagination,{page:n.page,total:a,perPage:r})]}),(0,c.jsx)(MyAccountSelectedTags_MyAccountSelectedTags,{filters:{status:n.status,dateInitial:n.dateInitial,dateFinal:n.dateFinal},onClearAll:()=>{window.location.href="/pvt/account/orders"},onRemoveFilter:(e,t)=>{var a=MyAccountListOrders_objectSpread({},n),{page:r,clientEmail:i}=a,l=(0,d.Z)(a,$);"status"===e&&Array.isArray(l[e])?l[e]=l[e].filter(e=>e!==t):"dateInitial"===e||"dateFinal"===e?(delete l.dateInitial,delete l.dateFinal):"purchaseAgentId"===e?delete l.purchaseAgentId:delete l[e],"status"===e&&Array.isArray(l[e])?l[e]=l[e].filter(e=>e.toLowerCase()!==t.toLowerCase()):"dateInitial"===e||"dateFinal"===e?(delete l.dateInitial,delete l.dateFinal):"purchaseAgentId"===e?delete l.purchaseAgentId:delete l[e];var o=Object.fromEntries(Object.entries(l).filter(e=>{var[,t]=e;return Array.isArray(t)?t.length>0:!!t})),s=new URLSearchParams(o);window.location.href="/pvt/account/orders?".concat(s.toString())}}),w&&(0,c.jsx)(MyAccountFilterSlider_MyAccountFilterSlider,MyAccountListOrders_objectSpread(MyAccountListOrders_objectSpread({},j),{},{title:"Filters",clearButtonLabel:"Clear All",applyButtonLabel:"View Results",searchInputRef:o,testId:"my-account-filter-slider"})),_?(0,c.jsx)(b.Z,{titleIcon:(0,c.jsx)(m.Z,{name:O?"MagnifyingGlass":"Bag2",width:56,height:56,weight:"thin"}),title:O?"No results found":"You don't have any orders",bkgColor:"light",children:!O&&(0,c.jsx)(h.Z,{"data-fs-list-orders-empty-state-link":!0,href:"/",variant:"secondary",children:"Start shopping"})}):(0,c.jsx)(MyAccountListOrdersTable,{listOrders:t,total:a,perPage:r,filters:n}),!l&&(0,c.jsx)(Pagination,{page:n.page,total:a,perPage:r})]})}var z=a(56272);function orders_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function orders_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?orders_ownKeys(Object(a),!0).forEach(function(t){(0,r.Z)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):orders_ownKeys(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var U=orders_objectSpread(orders_objectSpread({},o.Z),s.Z),V=!0;function ListOrdersPage(e){var{globalSections:t,accountName:a,listOrders:r,total:o,perPage:s,filters:d,isRepresentative:u}=e,{sections:f,settings:p}=null!=t?t:{};return(0,c.jsx)(z.ZP,{context:{globalSettings:p},children:(0,c.jsxs)(l.ZP,{globalSections:f,components:U,children:[(0,c.jsx)(n.PB,{noindex:!0,nofollow:!0}),(0,c.jsxs)(i.Z,{isRepresentative:u,accountName:a,children:[(0,c.jsx)(before,{}),(0,c.jsx)(MyAccountListOrders,{listOrders:r,filters:d,perPage:s,total:o}),(0,c.jsx)(after,{})]})]})})}},15759:function(e,t,a){"use strict";a.d(t,{BX:function(){return i},_y:function(){return r},j4:function(){return n}});var r={created:{variant:"success",label:"Order Placed"},creating:{variant:"success",label:"Order Placed"},"on-order-completed":{variant:"success",label:"Order Placed"},"on-order-completed-ffm":{variant:"success",label:"Order Placed"},"order-accepted":{variant:"success",label:"Order Placed"},"order-created":{variant:"success",label:"Order Placed"},"waiting-for-seller-confirmation":{variant:"success",label:"Order Placed"},"waiting-for-authorization":{variant:"warning",label:"Pending approval"},"waiting-for-confirmation":{variant:"warning",label:"Pending approval"},"approving-transaction":{variant:"warning",label:"Payment Pending"},"notify-payment":{variant:"warning",label:"Payment Pending"},"payment-pending":{variant:"warning",label:"Payment Pending"},"payment-approved":{variant:"success",label:"Payment Approved"},"approve-payment":{variant:"success",label:"Payment Approved"},"payment-denied":{variant:"neutral",label:"Payment Denied"},"authorize-fulfillment":{variant:"success",label:"Ready for Delivery"},handling:{variant:"success",label:"Ready for Delivery"},invoice:{variant:"success",label:"Ready for Delivery"},"invoice-after-cancellation-deny":{variant:"success",label:"Ready for Delivery"},invoicing:{variant:"success",label:"Ready for Delivery"},packing:{variant:"success",label:"Ready for Delivery"},picking:{variant:"success",label:"Ready for Delivery"},"ready-for-handling":{variant:"success",label:"Ready for Delivery"},"ready-for-invoicing":{variant:"success",label:"Ready for Delivery"},"ready-for-packing":{variant:"success",label:"Ready for Delivery"},"ready-for-picking":{variant:"success",label:"Ready for Delivery"},"release-to-fulfillment":{variant:"success",label:"Ready for Delivery"},"start-handling":{variant:"success",label:"Ready for Delivery"},"waiting-ffmt-authorization":{variant:"success",label:"Ready for Delivery"},"waiting-for-fulfillment":{variant:"success",label:"Ready for Delivery"},"window-to-cancel":{variant:"success",label:"Ready for Delivery"},invoiced:{variant:"success",label:"Invoiced"},"accepting-cancel":{variant:"neutral",label:"Cancellation Requested"},cancel:{variant:"neutral",label:"Cancellation Requested"},canceling:{variant:"neutral",label:"Cancellation Requested"},"cancellation-requested":{variant:"neutral",label:"Cancellation Requested"},"cancellation-requested-with-ack":{variant:"neutral",label:"Cancellation Requested"},"request-cancel":{variant:"neutral",label:"Cancellation Requested"},"waiting-for-seller-decision":{variant:"neutral",label:"Cancellation Requested"},canceled:{variant:"neutral",label:"Canceled"}},n=["Order Placed","Pending approval","Payment Pending","Payment Approved","Payment Denied","Ready for Delivery","Invoiced","Cancellation Requested","Canceled"],i={"order placed":"Order Placed","Pending approval":"Pending approval","payment pending":"Payment Pending","payment approved":"Payment Approved","payment denied":"Payment Denied","ready for delivery":"Ready for Delivery",invoiced:"Invoiced","cancellation requested":"Cancellation Requested",canceled:"Canceled"}},97676:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pvt/account/orders",function(){return a(59039)}])},49048:function(e){e.exports={section:"section_section__YPC0_",load:"section_load__1kqk7"}},65841:function(e){e.exports={page:"styles_page__flnO9"}},77085:function(e){e.exports={layout:"section_layout__QJ4xs",menu:"section_menu__WKZdl",account:"section_account__YjCAC",avatarContainer:"section_avatarContainer__1RMsJ",switchButton:"section_switchButton__ul06M",nav:"section_nav__Jjee8",navItem:"section_navItem__yr27R",avatar:"section_avatar__IQLo8"}},82740:function(e,t,a){"use strict";var r=a(44194);let n=(0,r.forwardRef)(function({testId:e="fs-checkbox",partial:t,...a},n){return r.createElement("input",{ref:n,"data-fs-checkbox":!0,"data-testid":e,"data-fs-checkbox-partial":t,type:"checkbox",...a})});t.Z=n},36735:function(e,t,a){"use strict";var r=a(44194);let n=(0,r.forwardRef)(function({testId:e="fs-radio",...t},a){return r.createElement("input",{ref:a,"data-fs-radio":!0,type:"radio","data-testid":e,...t})});t.Z=n},71516:function(e,t,a){"use strict";a.d(t,{A:function(){return useAccordion}});var r=a(44194);let n=(0,r.createContext)(void 0),i=(0,r.forwardRef)(function({testId:e="fs-accordion",indices:t,onChange:a,children:i,...l},o){let s=r.Children.map(i,(e,t)=>{if(e)return(0,r.cloneElement)(e,{index:e.props.index??t})}),c={indices:new Set(t),onChange:a,numberOfItems:s.length};return r.createElement(n.Provider,{value:c},r.createElement("div",{ref:o,"data-fs-accordion":!0,role:"region","data-testid":e,...l},s))});function useAccordion(){let e=(0,r.useContext)(n);if(void 0===e)throw Error("Do not use Accordion components outside the Accordion context.");return e}t.Z=i},67734:function(e,t,a){"use strict";var r=a(44194),n=a(71516),i=a(40783),l=a(2614),o=a(83339);let s=(0,r.forwardRef)(function({testId:e="fs-accordion-button",expandedIcon:t=r.createElement(l.Z,{name:"MinusCircle","data-icon":"expanded"}),collapsedIcon:a=r.createElement(l.Z,{name:"PlusCircle","data-icon":"collapsed"}),children:s,...c},d){let{indices:u,onChange:f,numberOfItems:p}=(0,n.A)(),{index:v,panel:y,button:m,prefixId:b}=(0,i.D)();return r.createElement(o.Z,{ref:d,id:m,variant:"tertiary","data-fs-accordion-button":u.has(v)?"expanded":"collapsed","aria-expanded":u.has(v),icon:u.has(v)?t:a,iconPosition:"right","aria-controls":y,onKeyDown:e=>{if(["ArrowDown","ArrowUp"].includes(e.key))switch(e.key){case"ArrowDown":e.preventDefault(),(()=>{let e=Number(v)+1===p?0:Number(v)+1;return document.getElementById(`${b&&`${b}-`}button--${e}`)})()?.focus();break;case"ArrowUp":e.preventDefault(),(()=>{let e=Number(v)-1<0?p-1:Number(v)-1;return document.getElementById(`${b&&`${b}-`}button--${e}`)})()?.focus()}},onClick:()=>{f(v)},"data-testid":e,...c},s)});t.Z=s},40783:function(e,t,a){"use strict";a.d(t,{D:function(){return useAccordionItem}});var r=a(44194);let n=(0,r.createContext)(void 0),i=(0,r.forwardRef)(function({prefixId:e="",index:t=0,as:a,children:i,testId:l="fs-accordion-item",...o},s){let c=a??"div",d={index:t,prefixId:e,panel:`${e&&`${e}-`}panel--${t}`,button:`${e&&`${e}-`}button--${t}`};return r.createElement(n.Provider,{value:d},r.createElement(c,{ref:s,"data-fs-accordion-item":!0,"data-testid":l,...o},i))});function useAccordionItem(){let e=(0,r.useContext)(n);if(void 0===e)throw Error("Do not use AccordionItem components outside the AccordionItem context.");return e}t.Z=i},27583:function(e,t,a){"use strict";var r=a(44194),n=a(71516),i=a(40783);let l=(0,r.forwardRef)(function({testId:e="fs-accordion-panel",children:t,...a},l){let{indices:o}=(0,n.A)(),{index:s,button:c,panel:d}=(0,i.D)();return r.createElement("div",{ref:l,id:d,"data-fs-accordion-panel":!0,"aria-labelledby":c,role:"region",hidden:!o.has(s),"data-testid":e,...a},t)});t.Z=l},13922:function(e,t,a){"use strict";var r=a(44194);t.Z=function({icon:e,inverse:t,children:a,disabled:n,iconPosition:i,size:l="regular",variant:o="primary",testId:s="fs-link-button",...c}){let d=(0,r.useRef)(null);return r.createElement("a",{ref:d,"data-fs-button":!0,"data-fs-link-button":!0,"data-fs-button-size":l,"data-fs-button-variant":o,"data-fs-button-inverse":t,"data-fs-button-disabled":n,onFocus:function(e){e.preventDefault(),n&&d.current?.blur()},"data-testid":s,...c},r.createElement("div",{"data-fs-button-wrapper":!0},!!e&&"left"===i&&r.createElement("span",{"data-fs-button-icon":!0},e),a&&r.createElement("span",null,a),!!e&&"right"===i&&r.createElement("span",{"data-fs-button-icon":!0},e)))}},95737:function(e,t,a){"use strict";var r=a(44194),n=a(31953),i=a(36735);let l=(0,r.forwardRef)(function({testId:e="fs-radio-field",id:t,label:a,value:l,name:o,...s},c){return r.createElement("div",{ref:c,"data-fs-radio-field":!0,"data-testid":e},r.createElement(i.Z,{id:t,value:"string"==typeof a?a:l,name:o,...s}),r.createElement(n.Z,{htmlFor:t},a))});t.Z=l},96396:function(e,t,a){"use strict";var r=a(44194),n=a(42256),i=a(37041),l=a(2614);let o=(0,r.forwardRef)(function({onSubmit:e,buttonIcon:t,"aria-label":a="search",testId:o="fs-search-input",buttonProps:s,...c},d){let u=(0,r.useRef)(null),f=(0,r.useRef)(null);return(0,r.useImperativeHandle)(d,()=>({inputRef:u.current,formRef:f.current})),r.createElement("form",{ref:f,"data-fs-search-input-field":!0,"data-testid":o,onSubmit:t=>{t.preventDefault(),u.current?.value!==""&&e(u.current.value)},role:"search"},r.createElement(n.Z,{ref:u,"aria-label":a,"data-fs-search-input-field-input":!0,...c}),r.createElement(i.Z,{type:"submit","aria-label":"Submit Search",icon:t??r.createElement(l.Z,{name:"MagnifyingGlass"}),size:"small",...s}))});t.Z=o},6133:function(e,t,a){"use strict";var r=a(44194);t.Z=function({testId:e="fs-empty-state",title:t,titleIcon:a,variant:n="default",bkgColor:i="default",children:l,...o}){return r.createElement("section",{"data-fs-empty-state":!0,"data-fs-empty-state-variant":n,"data-fs-empty-state-bkg-color":i,"data-fs-content":"empty-state","data-testid":e,...o},t&&r.createElement("header",{"data-fs-empty-state-title":!0},a&&r.createElement(r.Fragment,null,a),r.createElement("p",null,t)),l)}},15699:function(e,t,a){"use strict";var r=a(44194),n=a(71516);t.Z=function({testId:e,title:t,indicesExpanded:a,onAccordionChange:i,children:l}){return r.createElement("div",{"data-fs-filter":!0,"data-testid":e},r.createElement("h2",{"data-fs-filter-title":!0},t),r.createElement(n.Z,{indices:a,onChange:i,"data-fs-filter-accordion":!0},l))}},52815:function(e,t,a){"use strict";var r=a(44194),n=a(94564);t.Z=function({children:e}){return r.createElement(n.Z,{"data-fs-filter-list":!0},e)}},26174:function(e,t,a){"use strict";var r=a(44194),n=a(82740),i=a(31953),l=a(40276),o=a(95737);t.Z=function({testId:e,id:t,selected:a,value:s,quantity:c,facetKey:d,label:u,type:f="checkbox",onFacetChange:p}){return r.createElement("li",{key:t,"data-fs-filter-list-item":!0},"checkbox"===f?r.createElement(r.Fragment,null,r.createElement(n.Z,{id:t,checked:a,onChange:()=>p({key:d,value:s},"BOOLEAN"),"data-fs-filter-list-item-checkbox":!0,"data-testid":`${e}-accordion-panel-checkbox`,"data-value":s,"data-quantity":c}),r.createElement(i.Z,{htmlFor:t,className:"text__title-mini-alt","data-fs-filter-list-item-label":!0},u,"number"==typeof c&&c>=0&&r.createElement(l.Z,{"data-fs-filter-list-item-badge":!0},c))):r.createElement(o.Z,{id:t,name:d,value:s,checked:a,onChange:()=>p({key:d,value:s},"BOOLEAN"),"data-fs-filter-list-item-radio":!0,"data-testid":`${e}-accordion-panel-radio`,"data-value":s,label:u}))}},64199:function(e,t,a){"use strict";var r=a(44194),n=a(40783),i=a(67734),l=a(27583);t.Z=function({testId:e,label:t,index:a,children:o,type:s,description:c}){return r.createElement(n.Z,{key:`${t}-${a}`,prefixId:e,testId:`${e}-accordion`,index:a,"data-type":s,"data-fs-filter-accordion-item":!0},r.createElement(i.Z,{testId:`${e}-accordion-button`},t),r.createElement(l.Z,null,c&&r.createElement("span",{"data-fs-filter-accordion-item-description":!0},c),o))}},91844:function(e,t,a){"use strict";var r=a(44194),n=a(13666),i=a(16652),l=a(77215),o=a(45049),s=a(83339);t.Z=function({testId:e="fs-filter-slider",title:t,size:a,direction:c,children:d,applyBtnProps:u,clearBtnProps:f,overlayProps:p,onClose:v,onDismiss:y,footer:m=!0,...b}){let{fade:h,fadeOut:g}=(0,n.b)(),{closeFilter:j,closeRegionSlider:x}=(0,i.l8)();return r.createElement(l.Z,{"data-fs-filter-slider":!0,isOpen:!0,fade:h,onDismiss:()=>{g(),y?.()},size:a,direction:c,onTransitionEnd:()=>{"out"===h&&(j(),x())},testId:e,overlayProps:p,...b},r.createElement("div",{"data-fs-filter-slider-content":!0},r.createElement(o.Z,{onClose:()=>{v(),g()}},r.createElement("h2",{"data-fs-filter-slider-title":!0},t)),d),m&&r.createElement("footer",{"data-fs-filter-slider-footer":!0},f&&r.createElement(s.Z,{"data-fs-filter-slider-footer-button-clear":!0,...f}),u&&r.createElement(s.Z,{"data-fs-filter-slider-footer-button-apply":!0,testId:`${e}-button-apply`,...u,onClick:e=>{u?.onClick?.(e),g()}})))}}},function(e){e.O(0,[6031,9173,9774,2888,179],function(){return e(e.s=97676)}),_N_E=e.O()}]);