1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a08a461e-0595-4d6a-a67e-a96e5c0764a0",e._sentryDebugIdIdentifier="sentry-dbid-a08a461e-0595-4d6a-a67e-a96e5c0764a0")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3904],{41967:e=>{e.exports={viewAllLink:"recent-orders_viewAllLink__0l4al"}},73904:(e,r,n)=>{"use strict";n.r(r),n.d(r,{RecentOrders:()=>m});var t=n(37876);n(14232);var a=n(78319),s=n(91576),d=n(2330),i=n(72145),l=n(5551),o=n(32021),c=n(38132),u=n(23168),p=n(74528),h=n(6252),g=n(41967),f=n.n(g);let m=()=>{let e=(0,d.r)(),{url:r,isReady:n}=(0,l.C)("front"),{trackEvent:g}=(0,i.z1)(),{data:m}=(0,a.h)(),y=null==m?void 0:m.pages.filter(Boolean);return(0,t.jsx)(h.j,{heading:"My orders",headingRightElem:(null==y?void 0:y.length)&&y.length>3?(0,t.jsx)(s.N_,{href:"/account/orders/",className:f().viewAllLink,onClick:()=>g("recentOrdersBlockTapped",{origin:o.xz}),children:"View all"}):void 0,"data-sentry-element":"SideBarSectionContainer","data-sentry-component":"RecentOrders","data-sentry-source-file":"recent-orders.tsx",children:(null==y?void 0:y.length)?(0,t.jsx)(t.Fragment,{children:y.slice(0,3).map(e=>{let r=null==e?void 0:e.shipments.at(0);return r?(0,t.jsx)(c.t,{address:r.address,link:"/account/orders/?orderId=".concat(e.id),shipment:r,onClick:()=>g("recentOrdersBlockTapped",{origin:o.xz}),isMultiSend:(null==e?void 0:e.shipments.length)>1,variant:"order"},null==r?void 0:r.orderUuid):null})}):(0,t.jsx)(p.V,{icon:"paper-plane",mainMessage:"All your orders in one place",description:"You can start a card and save it for later and resume your work here.",bottomCTA:(0,t.jsx)(u.$,{iconSrc:"/assets/icons/send-dark-teal.svg",title:"Send a card",onClick:()=>{n&&e.push(r)}})})})}},78319:(e,r,n)=>{"use strict";n.d(r,{h:()=>d,t0:()=>i});var t=n(65534),a=n(86189),s=n(19596);let d=()=>{let{ctx:e}=(0,a._8)();return(0,s.q)({queryKey:["orders",e],queryFn:r=>{let n,{pageParam:a=1}=r;return n=(a-1)*10,(0,t.Em)(e,{path:"/orders?limit=10&offset=".concat(n,"&orderByDate=DESC"),method:"GET",apiVersion:"v1"})},enabled:!!e&&"userToken"in e,initialPageParam:1,getNextPageParam:(e,r)=>{if(!e.orders||!(e.orders.length<10))return r.length+1},select:e=>({...e,pages:e.pages.flatMap(e=>e.orders)})})},i=(e,r,n)=>{var a;return(0,t.Em)(e,{path:"/order/".concat(null!=(a=r.uuid)?a:n.orderUuid,"/shipment/").concat(n.shipmentId),method:"DELETE",apiVersion:"v1"})}}}]);
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.