(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6660],{37764:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return d},default:function(){return p}});var o=t(75505),n=t(32899),c=t(95235),s=t(2784),a=t(15820);function u(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 i(e){for(var r=1;r({email:t.data?.customer.email})),[t.data?.customer.email]),f=r.loading||r.isLoggedIn&&t.loading,{0:l,1:d}=(0,s.useState)({loading:f,orders:c,customer:u,meta:{totals:o},error:t.error,fetchMore:t.fetchMore,refetch:t.refetch});return(0,s.useEffect)((()=>{d((e=>i(i({},e),{},{loading:f,orders:c,customer:u,error:t.error,meta:{totals:o}})))}),[f,c,u,t.error,o]),l}((0,f.Z)().locale);return e.loading||r.loading?(0,l.jsx)(o.GV,{}):e.isLoggedIn?(0,l.jsx)(o.UT,{purchases:r.orders,totals:r?.meta?.totals||{},fetchMore:r.fetchMore,refetch:r.refetch}):(0,l.jsx)(o.tw,{})}},62342:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/orders",function(){return t(37764)}])}},function(e){e.O(0,[3904,2122,7608,5505,9774,2888,179],(function(){return r=62342,e(e.s=r);var r}));var r=e.O();_N_E=r}]);