@faststore/core 3.99.4 → 3.99.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 (47) 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/edge-server-production/0.pack +0 -0
  8. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/prerender-manifest.js +1 -1
  12. package/.next/prerender-manifest.json +1 -1
  13. package/.next/react-loadable-manifest.json +6 -6
  14. package/.next/routes-manifest.json +1 -1
  15. package/.next/server/chunks/3890.js +1 -1
  16. package/.next/server/chunks/9563.js +1 -1
  17. package/.next/server/middleware-build-manifest.js +1 -1
  18. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  19. package/.next/server/pages/api/graphql.js +1 -1
  20. package/.next/server/pages/en-US/404.html +2 -2
  21. package/.next/server/pages/en-US/500.html +2 -2
  22. package/.next/server/pages/en-US/checkout.html +2 -2
  23. package/.next/server/pages/en-US/login.html +2 -2
  24. package/.next/server/pages/en-US/s.html +2 -2
  25. package/.next/server/pages/en-US.html +2 -2
  26. package/.next/server/pages/pvt/account/403.js +1 -1
  27. package/.next/server/pages-manifest.json +1 -1
  28. package/.next/static/{Xk7WgpVOdfEoXARPhQHxf → UmIFhJcdMOfy3xrHNNZS2}/_buildManifest.js +1 -1
  29. package/.next/static/chunks/{2927.23bae2c79f0ac0f3.js → 2927.5a79877943a6bf7c.js} +1 -1
  30. package/.next/static/chunks/{UIToast.de15325248043ce5.js → UIToast.19a8664c01a00d3a.js} +1 -1
  31. package/.next/static/chunks/pages/{_app-84aaff8a9d4de60e.js → _app-35e8dda638ee2672.js} +1 -1
  32. package/.next/static/chunks/pages/pvt/account/403-ccddb4364ef27179.js +1 -0
  33. package/.next/static/chunks/{webpack-61b283a96fbb5ee2.js → webpack-65b1de5f075b8367.js} +1 -1
  34. package/.next/trace +143 -143
  35. package/.turbo/turbo-build.log +12 -12
  36. package/.turbo/turbo-test.log +12 -10
  37. package/CHANGELOG.md +6 -0
  38. package/package.json +2 -2
  39. package/src/pages/api/graphql.ts +2 -2
  40. package/src/pages/pvt/account/403.tsx +9 -0
  41. package/src/sdk/account/useRefreshToken.ts +12 -0
  42. package/src/sdk/session/index.ts +3 -7
  43. package/src/utils/isLocalHost.ts +33 -0
  44. package/test/utils/isLocalHost.browser.test.ts +40 -0
  45. package/test/utils/isLocalHost.test.ts +38 -0
  46. package/.next/static/chunks/pages/pvt/account/403-491e6b062487b30f.js +0 -1
  47. /package/.next/static/{Xk7WgpVOdfEoXARPhQHxf → UmIFhJcdMOfy3xrHNNZS2}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=1003,e.ids=[1003,2888,660],e.modules={18364:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getServerSideProps:()=>getServerSideProps});var s=t(25487),n=t(16641),a=t(55551),i=t(13922),c=t(16886),p=t(7027),l=t(93839),u=t(14194),d=t(76924),f=t(23091),b=t(18801),g=t(56272),h=t(99563),x=t(10278),S=t(67275),P=t(43412),m=t.n(P),v=t(20997),y=e([p,l,h]);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){var o;o=t[r],r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}[p,l,h]=y.then?(await y)():y;let j=_objectSpread(_objectSpread(_objectSpread({},p.Z),f.Z),d.Z),w=s.pi,getServerSideProps=async e=>{let[r,t,o]=(0,a.Tc)(e.previewData),[s,n,i,c]=await Promise.all([(0,h.h)({variables:{},operation:w},{headers:_objectSpread({},e.req.headers)}),r,t,o]),p=(0,x.z)({globalSections:n,globalSectionsHeader:i,globalSectionsFooter:c});if(s.errors){console.error(...s.errors);let r=s.errors[0]?.extensions?.status,t="string"==typeof e.query.from?e.query.from:"";return{props:{globalSections:p,needsRefreshToken:(401===r||403===r)&&m().experimental?.refreshToken,fromPage:t}}}let{isFaststoreMyAccountEnabled:l,redirect:u}=(0,S.j)({query:e.query});return l?{props:{globalSections:p,accountName:s?.data?.accountProfile?.name??""}}:{redirect:u}},__WEBPACK_DEFAULT_EXPORT__=function({globalSections:e,accountName:r,needsRefreshToken:t,fromPage:o}){let{sections:s,settings:a}=e??{sections:[],settings:{}},{shouldShow403:p}=(0,b.Z)(t,o);return t&&!p?(console.info("Refreshing authentication..."),v.jsx(v.Fragment,{})):v.jsx(g.ZP,{context:{globalSettings:a},children:(0,v.jsxs)(l.ZP,{globalSections:s,components:j,children:[v.jsx(n.NextSeo,{noindex:!0,nofollow:!0}),v.jsx(c.Z,{accountName:r,children:v.jsx(u.C,{title:"Unauthorized Access",titleIcon:{icon:"ShoppingCart",alt:"Shopping Cart"},subtitle:"You don't have permission to access this page.",showLoader:!1,children:v.jsx(i.Z,{variant:"secondary",href:"/pvt/account",children:"Back to Account"})})})]})})};o()}catch(e){o(e)}})},18801:(e,r,t)=>{t.d(r,{Z:()=>useRefreshToken});var o=t(16689),s=t(97358),n=t(38543);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){var o;o=t[r],r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}let useRefreshToken=(e,r)=>{let{0:t,1:a}=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let handleRefreshTokenAndUpdateSession=async()=>{if(!e)return;let t=s.Qf.read()??s.Qf.readInitial();try{let e=await (0,n.z)();if((0,n.N)(e)){let o=String(Math.floor(new Date(e?.refreshAfter).getTime()/1e3));s.Qf.set(_objectSpread(_objectSpread({},t),{},{refreshAfter:o}));let n=r||"/pvt/account",a=new URL(n,window.location.origin);a.searchParams.set("_refresh",Date.now().toString()),window.location.href=a.toString()}else await (0,s.TP)(t),a(!0)}catch(e){console.error("Error during refresh token process:",e),await (0,s.TP)(t),a(!0)}};handleRefreshTokenAndUpdateSession()},[e,r]),{shouldShow403:t}}},47788:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{config:()=>g,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>f,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>x});var s=t(21314),n=t(36267),a=t(18400),i=t(42445),c=t(13890),p=t(18364),l=e([p]);p=(l.then?(await l)():l)[0];let u=(0,a.l)(p,"default"),d=(0,a.l)(p,"getStaticProps"),f=(0,a.l)(p,"getStaticPaths"),b=(0,a.l)(p,"getServerSideProps"),g=(0,a.l)(p,"config"),h=(0,a.l)(p,"reportWebVitals"),x=(0,a.l)(p,"unstable_getStaticProps"),S=(0,a.l)(p,"unstable_getStaticPaths"),P=(0,a.l)(p,"unstable_getStaticParams"),m=(0,a.l)(p,"unstable_getServerProps"),v=(0,a.l)(p,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:n.x.PAGES,page:"/pvt/account/403",pathname:"/pvt/account/403",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:p});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},84802:e=>{e.exports=require("cookie")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},57343:e=>{e.exports=require("graphql")},36548:e=>{e.exports=require("graphql/language")},83430:e=>{e.exports=require("idb-keyval")},47881:e=>{e.exports=require("isomorphic-unfetch")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},89261:e=>{e.exports=require("postcss")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},99664:e=>{e.exports=import("@envelop/core")},37886:e=>{e.exports=import("@envelop/graphql-jit")},84656:e=>{e.exports=import("@envelop/parser-cache")},36093:e=>{e.exports=import("@envelop/validation-cache")},45774:e=>{e.exports=import("@graphql-tools/load-files")},36550:e=>{e.exports=import("@graphql-tools/schema")},38722:e=>{e.exports=import("@graphql-tools/utils")},15941:e=>{e.exports=import("swr")},6113:e=>{e.exports=require("crypto")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var r=require("../../../webpack-runtime.js");r.C(e);var __webpack_exec__=e=>r(r.s=e),t=r.X(0,[7799,6457,6804,9985,1554,2903,4913,3951,3890,2445,948,9563,7275,3922,6886,1780,4194],()=>__webpack_exec__(47788));module.exports=t})();
1
+ "use strict";(()=>{var e={};e.id=1003,e.ids=[1003,2888,660],e.modules={18364:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getServerSideProps:()=>getServerSideProps});var s=t(25487),n=t(16641),a=t(55551),i=t(13922),c=t(16886),p=t(7027),l=t(93839),u=t(14194),d=t(76924),f=t(23091),b=t(18801),g=t(56272),h=t(99563),x=t(10278),S=t(47769),P=t(67275),m=t(43412),v=t.n(m),y=t(20997),j=e([p,l,h]);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){var o;o=t[r],r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}[p,l,h]=j.then?(await j)():j;let w=_objectSpread(_objectSpread(_objectSpread({},p.Z),f.Z),d.Z),_=s.pi,getServerSideProps=async e=>{let[r,t,o]=(0,a.Tc)(e.previewData),[s,n,i,c]=await Promise.all([(0,h.h)({variables:{},operation:_},{headers:_objectSpread({},e.req.headers)}),r,t,o]),p=(0,x.z)({globalSections:n,globalSectionsHeader:i,globalSectionsFooter:c});if(s.errors){console.error(...s.errors);let r=s.errors[0]?.extensions?.status,t="string"==typeof e.query.from?e.query.from:"",o=(0,S.R)(e.req.headers.host?.split(":")[0]);return{props:{globalSections:p,needsRefreshToken:!o&&(401===r||403===r)&&v().experimental?.refreshToken,fromPage:t}}}let{isFaststoreMyAccountEnabled:l,redirect:u}=(0,P.j)({query:e.query});return l?{props:{globalSections:p,accountName:s?.data?.accountProfile?.name??""}}:{redirect:u}},__WEBPACK_DEFAULT_EXPORT__=function({globalSections:e,accountName:r,needsRefreshToken:t,fromPage:o}){let{sections:s,settings:a}=e??{sections:[],settings:{}},{shouldShow403:p}=(0,b.Z)(t,o);return t&&!p?(console.info("Refreshing authentication..."),y.jsx(y.Fragment,{})):y.jsx(g.ZP,{context:{globalSettings:a},children:(0,y.jsxs)(l.ZP,{globalSections:s,components:w,children:[y.jsx(n.NextSeo,{noindex:!0,nofollow:!0}),y.jsx(c.Z,{accountName:r,children:y.jsx(u.C,{title:"Unauthorized Access",titleIcon:{icon:"ShoppingCart",alt:"Shopping Cart"},subtitle:"You don't have permission to access this page.",showLoader:!1,children:y.jsx(i.Z,{variant:"secondary",href:"/pvt/account",children:"Back to Account"})})})]})})};o()}catch(e){o(e)}})},18801:(e,r,t)=>{t.d(r,{Z:()=>useRefreshToken});var o=t(16689),s=t(47769),n=t(97358),a=t(38543);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){var o;o=t[r],r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}let useRefreshToken=(e,r)=>{let{0:t,1:i}=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let handleRefreshTokenAndUpdateSession=async()=>{if(!e)return;if((0,s.Z)()){i(!0);return}let t=n.Qf.read()??n.Qf.readInitial();try{let e=await (0,a.z)();if((0,a.N)(e)){let o=String(Math.floor(new Date(e?.refreshAfter).getTime()/1e3));n.Qf.set(_objectSpread(_objectSpread({},t),{},{refreshAfter:o}));let s=r||"/pvt/account",a=new URL(s,window.location.origin);a.searchParams.set("_refresh",Date.now().toString()),window.location.href=a.toString()}else await (0,n.TP)(t),i(!0)}catch(e){console.error("Error during refresh token process:",e),await (0,n.TP)(t),i(!0)}};handleRefreshTokenAndUpdateSession()},[e,r]),{shouldShow403:t}}},47788:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{config:()=>g,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>f,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>x});var s=t(21314),n=t(36267),a=t(18400),i=t(42445),c=t(13890),p=t(18364),l=e([p]);p=(l.then?(await l)():l)[0];let u=(0,a.l)(p,"default"),d=(0,a.l)(p,"getStaticProps"),f=(0,a.l)(p,"getStaticPaths"),b=(0,a.l)(p,"getServerSideProps"),g=(0,a.l)(p,"config"),h=(0,a.l)(p,"reportWebVitals"),x=(0,a.l)(p,"unstable_getStaticProps"),S=(0,a.l)(p,"unstable_getStaticPaths"),P=(0,a.l)(p,"unstable_getStaticParams"),m=(0,a.l)(p,"unstable_getServerProps"),v=(0,a.l)(p,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:n.x.PAGES,page:"/pvt/account/403",pathname:"/pvt/account/403",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:p});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},84802:e=>{e.exports=require("cookie")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},57343:e=>{e.exports=require("graphql")},36548:e=>{e.exports=require("graphql/language")},83430:e=>{e.exports=require("idb-keyval")},47881:e=>{e.exports=require("isomorphic-unfetch")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},89261:e=>{e.exports=require("postcss")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},99664:e=>{e.exports=import("@envelop/core")},37886:e=>{e.exports=import("@envelop/graphql-jit")},84656:e=>{e.exports=import("@envelop/parser-cache")},36093:e=>{e.exports=import("@envelop/validation-cache")},45774:e=>{e.exports=import("@graphql-tools/load-files")},36550:e=>{e.exports=import("@graphql-tools/schema")},38722:e=>{e.exports=import("@graphql-tools/utils")},15941:e=>{e.exports=import("swr")},6113:e=>{e.exports=require("crypto")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var r=require("../../../webpack-runtime.js");r.C(e);var __webpack_exec__=e=>r(r.s=e),t=r.X(0,[7799,6457,6804,9985,1554,2903,4913,3951,3890,2445,948,9563,7275,3922,6886,1780,4194],()=>__webpack_exec__(47788));module.exports=t})();
@@ -1 +1 @@
1
- {"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/api/fs/logout":"pages/api/fs/logout.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","/[slug]/p":"pages/[slug]/p.js","/checkout":"pages/checkout.js","/login":"pages/login.js","/":"pages/index.js","/pvt/account/403":"pages/pvt/account/403.js","/pvt/account/404":"pages/pvt/account/404.js","/pvt/account/[...unknown]":"pages/pvt/account/[...unknown].js","/pvt/account":"pages/pvt/account.js","/pvt/account/orders/[id]":"pages/pvt/account/orders/[id].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","/s":"pages/s.js"}
1
+ {"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/api/fs/logout":"pages/api/fs/logout.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","/pvt/account/403":"pages/pvt/account/403.js","/pvt/account/404":"pages/pvt/account/404.js","/pvt/account/[...unknown]":"pages/pvt/account/[...unknown].js","/pvt/account":"pages/pvt/account.js","/login":"pages/login.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","/s":"pages/s.js","/[slug]/p":"pages/[slug]/p.js","/pvt/account/orders":"pages/pvt/account/orders.js","/pvt/account/orders/[id]":"pages/pvt/account/orders/[id].js"}
@@ -1 +1 @@
1
- self.__BUILD_MANIFEST=function(c,s,t,a,e,u,n){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[c,s,t,e,"static/css/02259c549b2179f2.css","static/chunks/pages/index-8774d5b4a8744eb2.js"],"/404":[c,s,t,a,"static/chunks/pages/404-e3dfbbac003b02a2.js"],"/500":[c,s,t,a,"static/chunks/pages/500-c7814e085081d7b8.js"],"/_error":["static/chunks/pages/_error-2b0148be56a716e9.js"],"/checkout":[c,s,t,"static/chunks/pages/checkout-2071467ad42dfb99.js"],"/login":[c,s,t,a,"static/chunks/pages/login-e74747c9f9cb5b49.js"],"/pvt/account":["static/chunks/pages/pvt/account-65fefcc699344bdb.js"],"/pvt/account/403":[c,s,t,"static/css/6819dddf2b1b5ea7.css","static/chunks/pages/pvt/account/403-491e6b062487b30f.js"],"/pvt/account/404":[c,s,t,"static/css/ea11d74a2848b093.css","static/chunks/pages/pvt/account/404-5ad472d9f2ee1980.js"],"/pvt/account/orders":[c,s,t,"static/css/14176a4704ff97b2.css","static/chunks/pages/pvt/account/orders-faab39f2aff05fae.js"],"/pvt/account/orders/[id]":[c,s,t,"static/css/82f3cd529b672812.css","static/chunks/pages/pvt/account/orders/[id]-64e42157c0974c48.js"],"/pvt/account/profile":[c,s,t,"static/css/a852afa9be31e946.css","static/chunks/pages/pvt/account/profile-9672177ee2665bc0.js"],"/pvt/account/security":[c,s,t,"static/css/24d91007fc96be10.css","static/chunks/pages/pvt/account/security-03eb1ccab9a30563.js"],"/pvt/account/user-details":[c,s,t,"static/css/16d65422bfa80f51.css","static/chunks/pages/pvt/account/user-details-7838e3f79781596c.js"],"/pvt/account/[...unknown]":["static/chunks/pages/pvt/account/[...unknown]-f80f645594d2740c.js"],"/s":[c,s,t,u,n,a,"static/chunks/pages/s-162ba789e6611175.js"],"/[slug]/p":[c,"static/chunks/227-f109b24190a008ab.js",s,t,e,"static/css/1c4983f11b861ea0.css","static/chunks/3166-0b30a3887c0c346d.js","static/css/54cedf4b65e5863f.css","static/chunks/pages/[slug]/p-644f1132f5a0f736.js"],"/[...slug]":[c,s,t,u,n,"static/chunks/pages/[...slug]-dc8a395a43b081f1.js"],sortedPages:["/","/404","/500","/_app","/_error","/checkout","/login","/pvt/account","/pvt/account/403","/pvt/account/404","/pvt/account/orders","/pvt/account/orders/[id]","/pvt/account/profile","/pvt/account/security","/pvt/account/user-details","/pvt/account/[...unknown]","/s","/[slug]/p","/[...slug]"]}}("static/chunks/9298-1d1ed0a54133cb59.js","static/css/2c19433e38fd7533.css","static/chunks/9173-515913f3f10caf5e.js","static/css/2980acad3f8e1028.css","static/css/837662922091162f.css","static/css/fdc1868dcfd42aa4.css","static/chunks/7191-d221f01388571ca9.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
1
+ self.__BUILD_MANIFEST=function(c,s,t,a,e,u,n){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[c,s,t,e,"static/css/02259c549b2179f2.css","static/chunks/pages/index-8774d5b4a8744eb2.js"],"/404":[c,s,t,a,"static/chunks/pages/404-e3dfbbac003b02a2.js"],"/500":[c,s,t,a,"static/chunks/pages/500-c7814e085081d7b8.js"],"/_error":["static/chunks/pages/_error-2b0148be56a716e9.js"],"/checkout":[c,s,t,"static/chunks/pages/checkout-2071467ad42dfb99.js"],"/login":[c,s,t,a,"static/chunks/pages/login-e74747c9f9cb5b49.js"],"/pvt/account":["static/chunks/pages/pvt/account-65fefcc699344bdb.js"],"/pvt/account/403":[c,s,t,"static/css/6819dddf2b1b5ea7.css","static/chunks/pages/pvt/account/403-ccddb4364ef27179.js"],"/pvt/account/404":[c,s,t,"static/css/ea11d74a2848b093.css","static/chunks/pages/pvt/account/404-5ad472d9f2ee1980.js"],"/pvt/account/orders":[c,s,t,"static/css/14176a4704ff97b2.css","static/chunks/pages/pvt/account/orders-faab39f2aff05fae.js"],"/pvt/account/orders/[id]":[c,s,t,"static/css/82f3cd529b672812.css","static/chunks/pages/pvt/account/orders/[id]-64e42157c0974c48.js"],"/pvt/account/profile":[c,s,t,"static/css/a852afa9be31e946.css","static/chunks/pages/pvt/account/profile-9672177ee2665bc0.js"],"/pvt/account/security":[c,s,t,"static/css/24d91007fc96be10.css","static/chunks/pages/pvt/account/security-03eb1ccab9a30563.js"],"/pvt/account/user-details":[c,s,t,"static/css/16d65422bfa80f51.css","static/chunks/pages/pvt/account/user-details-7838e3f79781596c.js"],"/pvt/account/[...unknown]":["static/chunks/pages/pvt/account/[...unknown]-f80f645594d2740c.js"],"/s":[c,s,t,u,n,a,"static/chunks/pages/s-162ba789e6611175.js"],"/[slug]/p":[c,"static/chunks/227-f109b24190a008ab.js",s,t,e,"static/css/1c4983f11b861ea0.css","static/chunks/3166-0b30a3887c0c346d.js","static/css/54cedf4b65e5863f.css","static/chunks/pages/[slug]/p-644f1132f5a0f736.js"],"/[...slug]":[c,s,t,u,n,"static/chunks/pages/[...slug]-dc8a395a43b081f1.js"],sortedPages:["/","/404","/500","/_app","/_error","/checkout","/login","/pvt/account","/pvt/account/403","/pvt/account/404","/pvt/account/orders","/pvt/account/orders/[id]","/pvt/account/profile","/pvt/account/security","/pvt/account/user-details","/pvt/account/[...unknown]","/s","/[slug]/p","/[...slug]"]}}("static/chunks/9298-1d1ed0a54133cb59.js","static/css/2c19433e38fd7533.css","static/chunks/9173-515913f3f10caf5e.js","static/css/2980acad3f8e1028.css","static/css/837662922091162f.css","static/css/fdc1868dcfd42aa4.css","static/chunks/7191-d221f01388571ca9.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2927,8587,5890],{26410:function(e,t,n){n.d(t,{YD:function(){return useInView},df:function(){return l}});var r=n(44194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,o=new WeakMap,s=0,a=void 0;function observe(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=a),void 0===window.IntersectionObserver&&void 0!==r){var u=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),function(){}}var l=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var n;return t+"_"+("root"===t?(n=e.root)?(o.has(n)||(s+=1,o.set(n,s.toString())),o.get(n)):"0":e[t])}).toString(),n=i.get(t);if(!n){var r,a=new Map,u=new IntersectionObserver(function(t){t.forEach(function(t){var n,i=t.isIntersecting&&r.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=a.get(t.target))||n.forEach(function(e){e(i,t)})})},e);r=u.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:u,elements:a},i.set(t,n)}return n}(n),c=l.id,d=l.observer,f=l.elements,p=f.get(e)||[];return f.has(e)||f.set(e,p),p.push(t),d.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(f.delete(e),d.unobserve(e)),0===f.size&&(d.disconnect(),i.delete(c))}}var u=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var l=function(e){function InView(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){!n.node||(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),isPlainChildren(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay,s=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:o},s)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,o=i.children,s=i.as,a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,u);return r.createElement(s||"div",_extends({ref:this.handleNode},a),o)},InView}(r.Component);function useInView(e){var t=void 0===e?{}:e,n=t.threshold,i=t.delay,o=t.trackVisibility,s=t.rootMargin,a=t.root,u=t.triggerOnce,l=t.skip,c=t.initialInView,d=t.fallbackInView,f=r.useRef(),p=r.useState({inView:!!c}),h=p[0],v=p[1],b=r.useCallback(function(e){void 0!==f.current&&(f.current(),f.current=void 0),!l&&e&&(f.current=observe(e,function(e,t){v({inView:e,entry:t}),t.isIntersecting&&u&&f.current&&(f.current(),f.current=void 0)},{root:a,rootMargin:s,threshold:n,trackVisibility:o,delay:i},d))},[Array.isArray(n)?n.toString():n,a,s,u,l,o,d,i]);(0,r.useEffect)(function(){f.current||!h.entry||u||l||v({inView:!!c})});var y=[b,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}l.displayName="InView",l.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},36735:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-radio",...t},n){return r.createElement("input",{ref:n,"data-fs-radio":!0,type:"radio","data-testid":e,...t})});t.Z=i},33855:function(e,t,n){var r=n(44194),i=n(22934);t.Z=({name:e,onChange:t,children:n,selectedValue:o})=>{let s=r.useMemo(()=>({name:e,selectedValue:o,onChange:t}),[e,o,t]);return r.createElement(i.L.Provider,{value:s},n)}},18899:function(e,t,n){var r=n(44194),i=n(36735),o=n(22934);let s=(0,r.forwardRef)(function({label:e,value:t,children:n,testId:s="fs-radio-group-option",...a},u){let{name:l,selectedValue:c,onChange:d}=(0,o.a)();return r.createElement("label",{"aria-label":e,"data-fs-radio-group-option":!0},r.createElement(i.Z,{"data-fs-radio-option-item":!0,ref:u,name:l,checked:t===c,onChange:d,value:t,testId:s,...a}),n)});t.Z=s},22934:function(e,t,n){n.d(t,{L:function(){return i},a:function(){return useRadioGroup}});var r=n(44194);let i=(0,r.createContext)(void 0);function useRadioGroup(){let e=(0,r.useContext)(i);if(!e)throw Error("useRadioOption hook cannot be used outside the RadioGroup context");return e}},6133:function(e,t,n){var r=n(44194);t.Z=function({testId:e="fs-empty-state",title:t,titleIcon:n,variant:i="default",bkgColor:o="default",children:s,...a}){return r.createElement("section",{"data-fs-empty-state":!0,"data-fs-empty-state-variant":i,"data-fs-empty-state-bkg-color":o,"data-fs-content":"empty-state","data-testid":e,...a},t&&r.createElement("header",{"data-fs-empty-state-title":!0},n&&r.createElement(r.Fragment,null,n),r.createElement("p",null,t)),s)}},16737:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-product-shelf",children:t,...n},i){return r.createElement("div",{ref:i,"data-fs-product-shelf":!0,"data-fs-content":"product-shelf","data-testid":e,...n},t)});t.Z=i},57828:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-product-shelf-item",children:t,...n},i){return r.createElement("li",{role:"listitem",ref:i,"data-fs-product-shelf-item":!0,"data-testid":e,...n},t)});t.Z=i},31584:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-product-shelf-items",children:t,...n},i){return r.createElement("ul",{role:"list",ref:i,"data-fs-product-shelf-items":!0,"data-fs-content":"product-shelf","data-testid":e,...n},t)});t.Z=i}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2927,5890,8587],{26410:function(e,t,n){n.d(t,{YD:function(){return useInView},df:function(){return l}});var r=n(44194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,o=new WeakMap,s=0,a=void 0;function observe(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=a),void 0===window.IntersectionObserver&&void 0!==r){var u=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),function(){}}var l=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var n;return t+"_"+("root"===t?(n=e.root)?(o.has(n)||(s+=1,o.set(n,s.toString())),o.get(n)):"0":e[t])}).toString(),n=i.get(t);if(!n){var r,a=new Map,u=new IntersectionObserver(function(t){t.forEach(function(t){var n,i=t.isIntersecting&&r.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=a.get(t.target))||n.forEach(function(e){e(i,t)})})},e);r=u.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:u,elements:a},i.set(t,n)}return n}(n),c=l.id,d=l.observer,f=l.elements,p=f.get(e)||[];return f.has(e)||f.set(e,p),p.push(t),d.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(f.delete(e),d.unobserve(e)),0===f.size&&(d.disconnect(),i.delete(c))}}var u=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var l=function(e){function InView(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){!n.node||(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),isPlainChildren(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay,s=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:o},s)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,o=i.children,s=i.as,a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,u);return r.createElement(s||"div",_extends({ref:this.handleNode},a),o)},InView}(r.Component);function useInView(e){var t=void 0===e?{}:e,n=t.threshold,i=t.delay,o=t.trackVisibility,s=t.rootMargin,a=t.root,u=t.triggerOnce,l=t.skip,c=t.initialInView,d=t.fallbackInView,f=r.useRef(),p=r.useState({inView:!!c}),h=p[0],v=p[1],b=r.useCallback(function(e){void 0!==f.current&&(f.current(),f.current=void 0),!l&&e&&(f.current=observe(e,function(e,t){v({inView:e,entry:t}),t.isIntersecting&&u&&f.current&&(f.current(),f.current=void 0)},{root:a,rootMargin:s,threshold:n,trackVisibility:o,delay:i},d))},[Array.isArray(n)?n.toString():n,a,s,u,l,o,d,i]);(0,r.useEffect)(function(){f.current||!h.entry||u||l||v({inView:!!c})});var y=[b,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}l.displayName="InView",l.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},36735:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-radio",...t},n){return r.createElement("input",{ref:n,"data-fs-radio":!0,type:"radio","data-testid":e,...t})});t.Z=i},33855:function(e,t,n){var r=n(44194),i=n(22934);t.Z=({name:e,onChange:t,children:n,selectedValue:o})=>{let s=r.useMemo(()=>({name:e,selectedValue:o,onChange:t}),[e,o,t]);return r.createElement(i.L.Provider,{value:s},n)}},18899:function(e,t,n){var r=n(44194),i=n(36735),o=n(22934);let s=(0,r.forwardRef)(function({label:e,value:t,children:n,testId:s="fs-radio-group-option",...a},u){let{name:l,selectedValue:c,onChange:d}=(0,o.a)();return r.createElement("label",{"aria-label":e,"data-fs-radio-group-option":!0},r.createElement(i.Z,{"data-fs-radio-option-item":!0,ref:u,name:l,checked:t===c,onChange:d,value:t,testId:s,...a}),n)});t.Z=s},22934:function(e,t,n){n.d(t,{L:function(){return i},a:function(){return useRadioGroup}});var r=n(44194);let i=(0,r.createContext)(void 0);function useRadioGroup(){let e=(0,r.useContext)(i);if(!e)throw Error("useRadioOption hook cannot be used outside the RadioGroup context");return e}},6133:function(e,t,n){var r=n(44194);t.Z=function({testId:e="fs-empty-state",title:t,titleIcon:n,variant:i="default",bkgColor:o="default",children:s,...a}){return r.createElement("section",{"data-fs-empty-state":!0,"data-fs-empty-state-variant":i,"data-fs-empty-state-bkg-color":o,"data-fs-content":"empty-state","data-testid":e,...a},t&&r.createElement("header",{"data-fs-empty-state-title":!0},n&&r.createElement(r.Fragment,null,n),r.createElement("p",null,t)),s)}},16737:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-product-shelf",children:t,...n},i){return r.createElement("div",{ref:i,"data-fs-product-shelf":!0,"data-fs-content":"product-shelf","data-testid":e,...n},t)});t.Z=i},57828:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-product-shelf-item",children:t,...n},i){return r.createElement("li",{role:"listitem",ref:i,"data-fs-product-shelf-item":!0,"data-testid":e,...n},t)});t.Z=i},31584:function(e,t,n){var r=n(44194);let i=(0,r.forwardRef)(function({testId:e="fs-product-shelf-items",children:t,...n},i){return r.createElement("ul",{role:"list",ref:i,"data-fs-product-shelf-items":!0,"data-fs-content":"product-shelf","data-testid":e,...n},t)});t.Z=i}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5906,8587,5890,9979,2927],{26410:function(e,t,r){r.d(t,{YD:function(){return useInView},df:function(){return d}});var n=r(44194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,o=new WeakMap,a=0,s=void 0;function observe(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=s),void 0===window.IntersectionObserver&&void 0!==n){var u=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),function(){}}var d=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var r;return t+"_"+("root"===t?(r=e.root)?(o.has(r)||(a+=1,o.set(r,a.toString())),o.get(r)):"0":e[t])}).toString(),r=i.get(t);if(!r){var n,s=new Map,u=new IntersectionObserver(function(t){t.forEach(function(t){var r,i=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=s.get(t.target))||r.forEach(function(e){e(i,t)})})},e);n=u.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:u,elements:s},i.set(t,r)}return r}(r),c=d.id,l=d.observer,f=d.elements,h=f.get(e)||[];return f.has(e)||f.set(e,h),h.push(t),l.observe(e),function(){h.splice(h.indexOf(t),1),0===h.length&&(f.delete(e),l.unobserve(e)),0===f.size&&(l.disconnect(),i.delete(c))}}var u=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var d=function(e){function InView(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){!r.node||(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),isPlainChildren(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,i=e.trackVisibility,o=e.delay,a=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:i,delay:o},a)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,r=e.entry;return this.props.children({inView:t,entry:r,ref:this.handleNode})}var i=this.props,o=i.children,a=i.as,s=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(i,u);return n.createElement(a||"div",_extends({ref:this.handleNode},s),o)},InView}(n.Component);function useInView(e){var t=void 0===e?{}:e,r=t.threshold,i=t.delay,o=t.trackVisibility,a=t.rootMargin,s=t.root,u=t.triggerOnce,d=t.skip,c=t.initialInView,l=t.fallbackInView,f=n.useRef(),h=n.useState({inView:!!c}),p=h[0],v=h[1],b=n.useCallback(function(e){void 0!==f.current&&(f.current(),f.current=void 0),!d&&e&&(f.current=observe(e,function(e,t){v({inView:e,entry:t}),t.isIntersecting&&u&&f.current&&(f.current(),f.current=void 0)},{root:s,rootMargin:a,threshold:r,trackVisibility:o,delay:i},l))},[Array.isArray(r)?r.toString():r,s,a,u,d,o,l,i]);(0,n.useEffect)(function(){f.current||!p.entry||u||d||v({inView:!!c})});var m=[b,p.inView,p.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}d.displayName="InView",d.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},36735:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-radio",...t},r){return n.createElement("input",{ref:r,"data-fs-radio":!0,type:"radio","data-testid":e,...t})});t.Z=i},13922:function(e,t,r){var n=r(44194);t.Z=function({icon:e,inverse:t,children:r,disabled:i,iconPosition:o,size:a="regular",variant:s="primary",testId:u="fs-link-button",...d}){let c=(0,n.useRef)(null);return n.createElement("a",{ref:c,"data-fs-button":!0,"data-fs-link-button":!0,"data-fs-button-size":a,"data-fs-button-variant":s,"data-fs-button-inverse":t,"data-fs-button-disabled":i,onFocus:function(e){e.preventDefault(),i&&c.current?.blur()},"data-testid":u,...d},n.createElement("div",{"data-fs-button-wrapper":!0},!!e&&"left"===o&&n.createElement("span",{"data-fs-button-icon":!0},e),r&&n.createElement("span",null,r),!!e&&"right"===o&&n.createElement("span",{"data-fs-button-icon":!0},e)))}},33855:function(e,t,r){var n=r(44194),i=r(22934);t.Z=({name:e,onChange:t,children:r,selectedValue:o})=>{let a=n.useMemo(()=>({name:e,selectedValue:o,onChange:t}),[e,o,t]);return n.createElement(i.L.Provider,{value:a},r)}},18899:function(e,t,r){var n=r(44194),i=r(36735),o=r(22934);let a=(0,n.forwardRef)(function({label:e,value:t,children:r,testId:a="fs-radio-group-option",...s},u){let{name:d,selectedValue:c,onChange:l}=(0,o.a)();return n.createElement("label",{"aria-label":e,"data-fs-radio-group-option":!0},n.createElement(i.Z,{"data-fs-radio-option-item":!0,ref:u,name:d,checked:t===c,onChange:l,value:t,testId:a,...s}),r)});t.Z=a},22934:function(e,t,r){r.d(t,{L:function(){return i},a:function(){return useRadioGroup}});var n=r(44194);let i=(0,n.createContext)(void 0);function useRadioGroup(){let e=(0,n.useContext)(i);if(!e)throw Error("useRadioOption hook cannot be used outside the RadioGroup context");return e}},6133:function(e,t,r){var n=r(44194);t.Z=function({testId:e="fs-empty-state",title:t,titleIcon:r,variant:i="default",bkgColor:o="default",children:a,...s}){return n.createElement("section",{"data-fs-empty-state":!0,"data-fs-empty-state-variant":i,"data-fs-empty-state-bkg-color":o,"data-fs-content":"empty-state","data-testid":e,...s},t&&n.createElement("header",{"data-fs-empty-state-title":!0},r&&n.createElement(n.Fragment,null,r),n.createElement("p",null,t)),a)}},48957:function(e,t,r){r.d(t,{u:function(){return useHero}});var n=r(44194);let i=(0,n.createContext)(void 0),o=(0,n.forwardRef)(function({children:e,testId:t="fs-hero",variant:r="primary",colorVariant:o="main",...a},s){return n.createElement(i.Provider,{value:{variant:r,colorVariant:o}},n.createElement("article",{ref:s,"data-fs-hero":!0,"data-fs-hero-variant":r,"data-fs-hero-color-variant":o,"data-testid":t,...a},e))});function useHero(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("Do not use Hero components outside the Hero context.");return e}t.Z=o},27154:function(e,t,r){var n=r(44194),i=r(13922),o=r(2614),a=r(48957);let s=(0,n.forwardRef)(function({icon:e,link:t,title:r,linkText:s,linkTargetBlank:u,subtitle:d,children:c,testId:l="fs-hero-heading",...f},h){let{variant:p,colorVariant:v}=(0,a.u)();return n.createElement("header",{ref:h,"data-fs-hero-heading":!0,"data-testid":l,...f},n.createElement("div",{"data-fs-hero-wrapper":!0,"data-fs-content":"hero"},n.createElement("div",{"data-fs-hero-info":!0},n.createElement("h1",{"data-fs-hero-title":!0},r),n.createElement("p",{"data-fs-hero-subtitle":!0},d),!!t&&n.createElement(i.Z,{href:t,inverse:"main"===v,icon:n.createElement(o.Z,{name:"ArrowRight"}),iconPosition:"right",target:u?"_blank":void 0},s)),!!e&&"secondary"===p&&n.createElement("span",{"data-fs-hero-icon":!0},e)))});t.Z=s},74147:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({children:e,testId:t="fs-hero-image",...r},i){return n.createElement("div",{ref:i,"data-fs-hero-image":!0,"data-testid":t,...r},e)});t.Z=i},16737:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-shelf",children:t,...r},i){return n.createElement("div",{ref:i,"data-fs-product-shelf":!0,"data-fs-content":"product-shelf","data-testid":e,...r},t)});t.Z=i},57828:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-shelf-item",children:t,...r},i){return n.createElement("li",{role:"listitem",ref:i,"data-fs-product-shelf-item":!0,"data-testid":e,...r},t)});t.Z=i},31584:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-shelf-items",children:t,...r},i){return n.createElement("ul",{role:"list",ref:i,"data-fs-product-shelf-items":!0,"data-fs-content":"product-shelf","data-testid":e,...r},t)});t.Z=i}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5906,5890,8587,9979,2927],{26410:function(e,t,r){r.d(t,{YD:function(){return useInView},df:function(){return d}});var n=r(44194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,o=new WeakMap,a=0,s=void 0;function observe(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=s),void 0===window.IntersectionObserver&&void 0!==n){var u=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:u,intersectionRect:u,rootBounds:u}),function(){}}var d=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var r;return t+"_"+("root"===t?(r=e.root)?(o.has(r)||(a+=1,o.set(r,a.toString())),o.get(r)):"0":e[t])}).toString(),r=i.get(t);if(!r){var n,s=new Map,u=new IntersectionObserver(function(t){t.forEach(function(t){var r,i=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=s.get(t.target))||r.forEach(function(e){e(i,t)})})},e);n=u.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:u,elements:s},i.set(t,r)}return r}(r),c=d.id,l=d.observer,f=d.elements,h=f.get(e)||[];return f.has(e)||f.set(e,h),h.push(t),l.observe(e),function(){h.splice(h.indexOf(t),1),0===h.length&&(f.delete(e),l.unobserve(e)),0===f.size&&(l.disconnect(),i.delete(c))}}var u=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var d=function(e){function InView(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){!r.node||(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),isPlainChildren(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,i=e.trackVisibility,o=e.delay,a=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:i,delay:o},a)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,r=e.entry;return this.props.children({inView:t,entry:r,ref:this.handleNode})}var i=this.props,o=i.children,a=i.as,s=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(i,u);return n.createElement(a||"div",_extends({ref:this.handleNode},s),o)},InView}(n.Component);function useInView(e){var t=void 0===e?{}:e,r=t.threshold,i=t.delay,o=t.trackVisibility,a=t.rootMargin,s=t.root,u=t.triggerOnce,d=t.skip,c=t.initialInView,l=t.fallbackInView,f=n.useRef(),h=n.useState({inView:!!c}),p=h[0],v=h[1],b=n.useCallback(function(e){void 0!==f.current&&(f.current(),f.current=void 0),!d&&e&&(f.current=observe(e,function(e,t){v({inView:e,entry:t}),t.isIntersecting&&u&&f.current&&(f.current(),f.current=void 0)},{root:s,rootMargin:a,threshold:r,trackVisibility:o,delay:i},l))},[Array.isArray(r)?r.toString():r,s,a,u,d,o,l,i]);(0,n.useEffect)(function(){f.current||!p.entry||u||d||v({inView:!!c})});var m=[b,p.inView,p.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}d.displayName="InView",d.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},36735:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-radio",...t},r){return n.createElement("input",{ref:r,"data-fs-radio":!0,type:"radio","data-testid":e,...t})});t.Z=i},13922:function(e,t,r){var n=r(44194);t.Z=function({icon:e,inverse:t,children:r,disabled:i,iconPosition:o,size:a="regular",variant:s="primary",testId:u="fs-link-button",...d}){let c=(0,n.useRef)(null);return n.createElement("a",{ref:c,"data-fs-button":!0,"data-fs-link-button":!0,"data-fs-button-size":a,"data-fs-button-variant":s,"data-fs-button-inverse":t,"data-fs-button-disabled":i,onFocus:function(e){e.preventDefault(),i&&c.current?.blur()},"data-testid":u,...d},n.createElement("div",{"data-fs-button-wrapper":!0},!!e&&"left"===o&&n.createElement("span",{"data-fs-button-icon":!0},e),r&&n.createElement("span",null,r),!!e&&"right"===o&&n.createElement("span",{"data-fs-button-icon":!0},e)))}},33855:function(e,t,r){var n=r(44194),i=r(22934);t.Z=({name:e,onChange:t,children:r,selectedValue:o})=>{let a=n.useMemo(()=>({name:e,selectedValue:o,onChange:t}),[e,o,t]);return n.createElement(i.L.Provider,{value:a},r)}},18899:function(e,t,r){var n=r(44194),i=r(36735),o=r(22934);let a=(0,n.forwardRef)(function({label:e,value:t,children:r,testId:a="fs-radio-group-option",...s},u){let{name:d,selectedValue:c,onChange:l}=(0,o.a)();return n.createElement("label",{"aria-label":e,"data-fs-radio-group-option":!0},n.createElement(i.Z,{"data-fs-radio-option-item":!0,ref:u,name:d,checked:t===c,onChange:l,value:t,testId:a,...s}),r)});t.Z=a},22934:function(e,t,r){r.d(t,{L:function(){return i},a:function(){return useRadioGroup}});var n=r(44194);let i=(0,n.createContext)(void 0);function useRadioGroup(){let e=(0,n.useContext)(i);if(!e)throw Error("useRadioOption hook cannot be used outside the RadioGroup context");return e}},6133:function(e,t,r){var n=r(44194);t.Z=function({testId:e="fs-empty-state",title:t,titleIcon:r,variant:i="default",bkgColor:o="default",children:a,...s}){return n.createElement("section",{"data-fs-empty-state":!0,"data-fs-empty-state-variant":i,"data-fs-empty-state-bkg-color":o,"data-fs-content":"empty-state","data-testid":e,...s},t&&n.createElement("header",{"data-fs-empty-state-title":!0},r&&n.createElement(n.Fragment,null,r),n.createElement("p",null,t)),a)}},48957:function(e,t,r){r.d(t,{u:function(){return useHero}});var n=r(44194);let i=(0,n.createContext)(void 0),o=(0,n.forwardRef)(function({children:e,testId:t="fs-hero",variant:r="primary",colorVariant:o="main",...a},s){return n.createElement(i.Provider,{value:{variant:r,colorVariant:o}},n.createElement("article",{ref:s,"data-fs-hero":!0,"data-fs-hero-variant":r,"data-fs-hero-color-variant":o,"data-testid":t,...a},e))});function useHero(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("Do not use Hero components outside the Hero context.");return e}t.Z=o},27154:function(e,t,r){var n=r(44194),i=r(13922),o=r(2614),a=r(48957);let s=(0,n.forwardRef)(function({icon:e,link:t,title:r,linkText:s,linkTargetBlank:u,subtitle:d,children:c,testId:l="fs-hero-heading",...f},h){let{variant:p,colorVariant:v}=(0,a.u)();return n.createElement("header",{ref:h,"data-fs-hero-heading":!0,"data-testid":l,...f},n.createElement("div",{"data-fs-hero-wrapper":!0,"data-fs-content":"hero"},n.createElement("div",{"data-fs-hero-info":!0},n.createElement("h1",{"data-fs-hero-title":!0},r),n.createElement("p",{"data-fs-hero-subtitle":!0},d),!!t&&n.createElement(i.Z,{href:t,inverse:"main"===v,icon:n.createElement(o.Z,{name:"ArrowRight"}),iconPosition:"right",target:u?"_blank":void 0},s)),!!e&&"secondary"===p&&n.createElement("span",{"data-fs-hero-icon":!0},e)))});t.Z=s},74147:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({children:e,testId:t="fs-hero-image",...r},i){return n.createElement("div",{ref:i,"data-fs-hero-image":!0,"data-testid":t,...r},e)});t.Z=i},16737:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-shelf",children:t,...r},i){return n.createElement("div",{ref:i,"data-fs-product-shelf":!0,"data-fs-content":"product-shelf","data-testid":e,...r},t)});t.Z=i},57828:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-shelf-item",children:t,...r},i){return n.createElement("li",{role:"listitem",ref:i,"data-fs-product-shelf-item":!0,"data-testid":e,...r},t)});t.Z=i},31584:function(e,t,r){var n=r(44194);let i=(0,n.forwardRef)(function({testId:e="fs-product-shelf-items",children:t,...r},i){return n.createElement("ul",{role:"list",ref:i,"data-fs-product-shelf-items":!0,"data-fs-content":"product-shelf","data-testid":e,...r},t)});t.Z=i}}]);