text: (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[437],{3246:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[channel]/[locale]/account/orders",function(){return c(6834)}])},6834:function(a,b,c){"use strict";c.r(b);var d=c(47),e=c(8406);c(2242);var f=c(4521),g=c(7404),h=function(){var a,b,c,h,i,j,k,l,m=(0,e.F_)().authenticated,n=(0,g.mU)({skip:!m}),o=n.data,p=n.loading,q=n.error,r=n.fetchMore;if(p)return(0,d.jsx)(f.$j,{});if(q)return(0,d.jsxs)("p",{children:["Error ",q.message]});var s=(null==o?void 0:null===(a=o.me)|| void 0===a?void 0:null===(b=a.orders)|| void 0===b?void 0:b.edges.map(function(a){return a.node}))||[],t=function(){var a,b;r({variables:{after:null==o?void 0:null===(a=o.me)|| void 0===a?void 0:null===(b=a.orders)|| void 0===b?void 0:b.pageInfo.endCursor}})};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.m8,{orders:s}),(0,d.jsx)(f.tl,{onLoadMore:t,pageInfo:null==o?void 0:null===(c=o.me)|| void 0===c?void 0:null===(h=c.orders)|| void 0===h?void 0:h.pageInfo,itemCount:null==o?void 0:null===(i=o.me)|| void 0===i?void 0:null===(j=i.orders)|| void 0===j?void 0:j.edges.length,totalCount:(null==o?void 0:null===(k=o.me)|| void 0===k?void 0:null===(l=k.orders)|| void 0===l?void 0:l.totalCount)||void 0})]})};b.default=h,h.getLayout=function(a){return(0,d.jsx)(f.p0,{children:a})}}},function(a){a.O(0,[866,801,22,436,521,774,888,179],function(){return a(a.s=3246)}),_N_E=a.O()}])