(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6660],{37764:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return d},default:function(){return p}});var o=r(75505),n=r(34693),c=r(95235),s=r(2784),a=r(15820);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t({email:r.data?.customer.email})),[r.data?.customer.email]),f=t.loading||t.isLoggedIn&&r.loading,{0:l,1:d}=(0,s.useState)({loading:f,orders:c,customer:u,meta:{totals:o},error:r.error,fetchMore:r.fetchMore,refetch:r.refetch});return(0,s.useEffect)((()=>{d((e=>i(i({},e),{},{loading:f,orders:c,customer:u,error:r.error,meta:{totals:o}})))}),[f,c,u,r.error,o]),l}((0,f.tv)().locale);return e.loading||t.loading?(0,l.jsx)(o.GV,{}):e.isLoggedIn?(0,l.jsx)(o.UT,{purchases:t.orders,totals:t?.meta?.totals||{},fetchMore:t.fetchMore,refetch:t.refetch}):(0,l.jsx)(o.tw,{})}},62342:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/orders",function(){return r(37764)}])}},function(e){e.O(0,[1850,5208,929,6409,5505,9774,2888,179],(function(){return t=62342,e(e.s=t);var t}));var t=e.O();_N_E=t}]);