1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[122],{4659:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/orders",function(){return a(8743)}])},20743:function(e,s,a){"use strict";a.d(s,{T:function(){return d}});var r=a(85893),t=a(67294),l=a(94184),n=a.n(l),c=a(79127);let d=e=>{var s,a;let{brand:l}=(0,t.useContext)(c.I),d=null!==(a=null!==(s=e.url)&&void 0!==s?s:l.background)&&void 0!==a?a:"/images/default-brand-background.png";return(0,r.jsxs)("div",{className:n()("text-white flex flex-col text-3xl z-10 relative w-full",e.className),style:{...e.style,backgroundImage:"url(".concat(d,")"),backgroundSize:"cover",zIndex:1,backgroundPosition:"center"},children:[(0,r.jsx)("div",{className:"absolute top-0 left-0 bg-black bg-opacity-60 z-20 w-full h-full",style:{zIndex:-1}}),(0,r.jsx)("div",{className:"relative z-30 flex justify-center items-center flex-grow",children:e.children})]})}},8743:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSP:function(){return u}});var r=a(85893),t=a(50948),l=a(67294),n=a(11163),c=a(82849),d=a(79127),i=a(87399),o=a(20743),u=!0;s.default=e=>{let{brand:s}=e,{user:a,setOrder:u}=(0,l.useContext)(d.I),[h,,x]=(0,t.usePaginate)({url:"/api/user/".concat(null==a?void 0:a.hash_id,"/order?brand_hash_id=").concat(s.hash_id),isAllowed:!!a}),f=(0,n.useRouter)(),m=async e=>{u(await (0,t.enhancedFetch)("/api/order/reorder",{method:"POST",body:{order_hash_id:e.hash_id}})),await f.push("/cart")};return(0,r.jsxs)(c.n,{brand:s,title:"My Orders",description:"View all of your orders and easily re-order your favorites.",className:"full-screen",children:[(0,r.jsx)(o.T,{className:"h-40",children:(0,r.jsx)("h2",{className:"text-3xl z-20 font-bold",children:"Previous Orders"})}),(0,r.jsx)(t.Suspense,{hook:x,className:"space-y-4",children:h.map(e=>(0,r.jsxs)("div",{className:"border-b border-dashed pb-2 px-3 py-1 flex flex-nowrap justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,r.jsx)(t.DateFormat,{className:"text-gray-500",value:e.placed_at,format:"M/d/yy"}),(0,r.jsx)(t.Badge,{children:(0,i.kC)(e.type)})]}),(0,r.jsx)("div",{className:"mt-2 text-gray-500",children:"".concat(e.name)}),e.items.map(e=>(0,r.jsx)("div",{className:"font-bold",children:e.name},e.hash_id))]}),(0,r.jsxs)("div",{className:"w-24 space-y-1",children:[(0,r.jsx)(t.Button,{className:"w-full justify-center",onClick:()=>m(e),children:"Reorder"}),(0,r.jsx)(t.Button,{className:"w-full justify-center",href:"/order/".concat(e.hash_id),children:"View"})]})]},e.hash_id))})]})}}},function(e){e.O(0,[849,888,774,179],function(){return e(e.s=4659)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.