PageSourceSearch

https://www.interflora.co.uk/assets/uk_prd_main-20260922.2/_next/s…/account/order-history-4de8827dad438d0a.js

js interflora.co.uk collected 2026-09-24 09:54:16 UTC 15,347 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1b5c1458-9e05-4f3d-8ad0-592d46a26499",e._sentryDebugIdIdentifier="sentry-dbid-1b5c1458-9e05-4f3d-8ad0-592d46a26499")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[307,8835],{7827:(e,r,a)=>{"use strict";a.r(r),a.d(r,{__N_SSG:()=>y,default:()=>b});var s=a(6029),i=a(20307),l=a(47740),t=a(20148),o=a(76481),n=a(65211),d=a(55729),u=a(50350),c=a(34775);let m={orders:[],isLastPage:!0},g=()=>{let{getCustomer:e}=(0,d.useContext)(o.Z0),[r,a]=(0,d.useState)(m),[i,l]=(0,d.useState)(1),g=(0,d.useContext)(c.A),{loading:p}=(0,t.I)(u.je,{variables:{input:{page:i}},onCompleted:e=>{let s=r?.orders.concat(e.historicOrders.orders);r?.orders?.length>0&&1===i&&(s=r?.orders),a({orders:s,isLastPage:e.historicOrders.isLastPage})}});return e.loading||!e.data?.customer||p&&!r?.orders?.length?(0,s.jsx)("h1",{children:"Loading"}):(0,s.jsx)(n.A,{orders:r?.orders,setPage:l,page:i,isLastPage:r?.isLastPage,isLoading:p,farEyeTrackOrderAnalytics:e=>{g.farEyeTrackOrder(e)}})};var p=a(81278),h=a(68972),x=a(52995),y=!0;let b=e=>{let r=(0,p.useRouter)(),{page:a}=e;return(0,s.jsx)(h.A,{renderGraph:e,onIsSignedOut:()=>r.replace("/sign-in"),children:(0,s.jsxs)(s.Fragment,{children:[(0,x.f)(a.components.header),(0,s.jsx)(i.default,{links:[{label:"Home",url:"/"},{label:"My Account",url:"/account"},{label:"Order History",url:"/account/order-history"}]}),(0,s.jsx)(l.A,{children:(0,s.jsx)(g,{})}),(0,x.f)(a.components.footer)]})})}},20307:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>f});var s=a(6029),i=a(81278),l=a(55729),t=a(76481),o=a(67974),n=a(80575),d=a(81751),u=a(13939);let c=(0,n.n9)()(e=>({linkText:Object.assign(Object.assign(Object.assign({color:e.isFlyingFlowers?u.Tj.black[700]:u.Tj.grey.grey7},e.typography.xxs_regular),(0,d.nf)()),{[e.breakpoints.up("md")]:Object.assign({},e.typography.small_regular)}),currentPage:Object.assign(Object.assign({color:e.isFlyingFlowers?u.Tj.black[700]:u.Tj.grey.grey8},e.typography.xxs_regular),{[e.breakpoints.up("md")]:Object.assign({},e.typography.small_regular)})})),m=({link:e,currentPage:r})=>{let{classes:a}=c();return(0,s.jsx)(s.Fragment,{children:e&&(0,s.jsx)(o.A,Object.assign({className:r?a.currentPage:a.linkText},e,{url:r?void 0:e.url}))})},g=(0,n.n9)()(e=>({breadcrumbContent:Object.assign(Object.assign({},d.w0),{backgroundColor:u.Tj.supplementary.white,minHeight:"33px",[e.breakpoints.up("md")]:{minHeight:"53px"}}),noBorderBottom:{borderBottom:"none"},pdpMobileNoBorder:{[e.breakpoints.down("sm")]:{borderBottom:"none"}},container:(0,d.W4)(e,Object.assign(Object.assign({display:"flex",overflowX:"auto",whiteSpace:"nowrap"},u.MY),{paddingTop:"4px",paddingBottom:"4px",paddingLeft:e.isFlyingFlowers?u.YK.small:u.YK.xs,paddingRight:e.isFlyingFlowers?u.YK.small:u.YK.xs,[e.breakpoints.up("md")]:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:e.isFlyingFlowers?u.YK.large:u.YK.small,paddingRight:e.isFlyingFlowers?u.YK.large:u.YK.small}})),arrowIcon:{margin:u.YK.xxs,color:e.isFlyingFlowers?u.Tj.black[700]:u.Tj.grey.grey6,"& .material-icons":{fontSize:u.GR.small},[e.breakpoints.up("md")]:{margin:`${u.YK.xs} ${u.YK.xxs} ${u.YK.xxs} ${u.YK.xxs}`}}}));var p=a(8588),h=a.n(p),x=a(91202),y=a(42246),b=a(50212),v=a(4494),j=a(26543);let f=e=>{var r,a;let{subject:o,isFlyingFlowers:n}=(0,l.useContext)(t.Z0),d=(0,i.useRouter)(),u=(0,y.A)(),c=null==d?void 0:d.asPath,[p,f]=(0,l.useState)([]),N=(0,x.Ub)({query:`(max-width: ${u.breakpoints.values.sm}px)`}),w=null==c?void 0:c.includes("/product/"),{state:{items:k}}=(0,v.rB)(),C=k.length,S=(0,l.useMemo)(()=>(0,j.p)({asPath:c,isFlyingFlowers:!!n,subject:o}),[c,n,o]);(0,l.useEffect)(()=>{var r;(null==c?void 0:c.includes("/category/"))?((0,t.fD)(["isFromPLP"]),(null==(r=null==e?void 0:e.links)?void 0:r.length)&&sessionStorage.setItem("breadcrumb",JSON.stringify(e.links))):["/search","/blog","/basket","/checkout/","/florist","/page/","/flower-delivery","/find-a-florist","/find-location-florist","/account","/favourites"].some(e=>null==c?void 0:c.includes(e))?(0,t.fD)(["isFromPLP","breadcrumb"]):(null==c?void 0:c.includes("/product/"))&&(new 
1URLSearchParams(void 0===globalThis.window?"":globalThis.window.location.search).get("category")||(0,t.fD)(["isFromPLP","breadcrumb"]))},[c,null==e?void 0:e.links]),(0,l.useEffect)(()=>{var e;let{asPath:r}=null!=d?d:{},{product:a}=null!=o?o:{},s=sessionStorage.getItem("isFromPLP"),i=sessionStorage.getItem("breadcrumb"),l=(null==i?void 0:i.length)?JSON.parse(i):[];(null==r?void 0:r.includes("/product/"))&&s?f([...l,{label:null!=(e=null==a?void 0:a.name)?e:""}]):l.length&&f([...l])},[null==d?void 0:d.asPath,null==o?void 0:o.product]),(0,l.useEffect)(()=>{var r,a,s,i,l,t,n,u,c;if(!sessionStorage.getItem("breadcrumb")){let m=(null==(a=null==(r=null==o?void 0:o.product)?void 0:r.categories)?void 0:a.find(e=>{var r;return e.key===(null==(r=null==d?void 0:d.query)?void 0:r.category)}))||(null==(i=null==(s=null==o?void 0:o.product)?void 0:s.categories)?void 0:i.find(e=>{var r;return null==(r=e.ancestors)?void 0:r.some(e=>{var r;return e.key==(null==(r=null==d?void 0:d.query)?void 0:r.category)})}))||(null==(t=null==(l=null==o?void 0:o.product)?void 0:l.categories)?void 0:t[0]);f((null==o?void 0:o.product)&&m&&[{label:"Home",url:"/"},...(null==(n=m.ancestors)?void 0:n.map(e=>({label:e.name,url:e.url})))||[],{label:m.name,url:m.url},{label:(null==(u=o.product)?void 0:u.name)||"",url:(null==(c=o.product)?void 0:c.url)||""}]||e.links)}},[null==(r=null==d?void 0:d.query)?void 0:r.category,e.links,o,null==o?void 0:o.product]);let{classes:T}=g();return(0,s.jsx)(s.Fragment,{children:!!((null==p?void 0:p.length)||(null==(a=null==e?void 0:e.links)?void 0:a.length))&&(0,s.jsx)("div",{className:(0,b.A)(T.breadcrumbContent,N&&w&&T.pdpMobileNoBorder,S&&C>0&&T.noBorderBottom),"data-hj-ignore-attributes":!0,children:(0,s.jsx)("div",{className:T.container,children:p.map((e,r)=>(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(m,{link:e,currentPage:r===p.length-1}),r!==p.length-1&&(0,s.jsx)(h(),{src:"/images/icons/breadcrumBar/chevronRight.svg",alt:"chevronRight",className:T.arrowIcon,height:16,width:16})]},`breadcrumb_${e.label}}`))})})})}},23121:(e,r,a)=>{"use strict";a.d(r,{A:()=>v});var s=a(6029),i=a(55729),l=a(80575),t=a(13939);let o=(0,l.n9)()(e=>({orderHistoryCardContainer:{border:"1px solid rgba(0,0,0,.1)",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.08), 0px 2px 8px rgba(0, 0, 0, 0.12)",borderRadius:"1px",width:"100%",height:"auto",padding:t.YK.medium,backgroundColor:t.Tj.supplementary.white,[e.breakpoints.up("md")]:{flex:"1 0 48%",padding:t.YK.xl,marginLeft:0},"&:focus":{BackgroundColor:t.Tj.grey.grey1,boxShadow:"0px 0px 2px #008be9, 0px 2px 2px rgba(0, 0, 0, 0.32)"},display:"flex"},orderHistoryCardContent:{display:"flex",flexDirection:"column",flex:1,[e.breakpoints.up("md")]:{flexDirection:"row"}},orderHistoryCardImage:{width:"100%",maxWidth:e.isFlyingFlowers?"136":"288px",marginBottom:t.YK.small,[e.breakpoints.up("md")]:{maxWidth:"326px",marginRight:t.YK.medium,marginBottom:0}},orderHistoryCardSummary:{flex:1,display:"flex",flexDirection:"column"},orderHistoryCardDetails:{flex:1,display:"flex",flexDirection:"column"},orderNumberContent:{lineHeight:"1.43rem",marginBottom:t.YK.small},orderNumberContentAction:{display:"flex",justifyContent:"center",marginTop:"auto",[e.breakpoints.up("md")]:{justifyContent:"flex-end",marginTop:"auto"},"& button":{width:"100%",[e.breakpoints.up("md")]:{width:"100%",minWidth:"unset"}}},orderLabel:Object.assign(Object.assign({},e.typography.xxs_bold),{lineHeight:"1.25rem",padding:"3px 0 !important",fontWeight:t.NM.bold,color:t.Tj.grey.grey6}),orderSummaryValue:Object.assign(Object.assign({},e.typography.medium_bold),{marginBottom:0,overflowWrap:"anywhere",fontWeight:t.NM.bold,color:t.Tj.supplementary.black}),orderSummaryNumber:Object.assign(Object.assign({},e.typography.small_regular),{padding:"0 !important",margin:"0",color:t.Tj.supplementary.black,[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.typography.small_bold),{marginBottom:0,fontWeight:t.NM.regular})}),orderSummaryStatusValue:Object.assign(Object.assign({},e.typography.small_bold),{marginBottom:0,fontWeight:t.NM.bold,color:e.isFlyingFlowers?void 0:t.Tj.supplementary.black,marginRight:8,display:e.isFlyingFlowers?"flex":"inl
1ine-flex"}),orderTrackingLink:Object.assign(Object.assign({},e.typography.small_regular),{display:"inline",color:t.Tj.primary.gold5,textDecoration:"underline"}),orderSummaryContainer:{display:"flex",flexFlow:"row wrap",marginRight:0,[e.breakpoints.up("md")]:{marginRight:t.YK.medium}},orderStatusIcon:{display:"flex",margin:"2px 0","& img":{margin:"4px 12px 4px 4px"}}}));var n=a(87192),d=a(83431),u=a(76667),c=a(76481),m=a(8588),g=a.n(m),p=a(44489),h=a(91202),x=a(42246),y=a(65903),b=a(86604);let v=e=>{var r,a,l,t,m,v,j,f,N,w,k,C;let{classes:S}=o(),{order:T,farEyeTrackOrderAnalytics:O}=e,F=(0,x.A)(),{consignments:I,createdAt:_,billingAddress:H,orderStatusMessage:L,orderStatusIconColor:E,isFarEye:A}=T,Y=null==(r=I[0])?void 0:r.items[0].lineItem,K=null==(a=I[0])?void 0:a.items[0].recipient,P=null==(l=I[0])?void 0:l.delivery,D=null==Y?void 0:Y.images[0],B=null==(m=null==(t=I[0])?void 0:t.orderTracking)?void 0:m.image,M=null==(j=null==(v=I[0])?void 0:v.orderTracking)?void 0:j.trackingUrl,R=null==(f=I[0])?void 0:f.isDigital,W=null==(N=I[0])?void 0:N.isClickAndCollect,{isFlyingFlowers:$}=(0,i.useContext)(c.Z0),V="green"===E,q=(0,h.Ub)({query:`(min-width: ${F.breakpoints.values.md}px)`}),z=`/images/icons/orderStatus/${V?"sucessStatusIcon.svg":"errorStatusIcon.svg"}`,[G,U]=(0,i.useState)(!1),X=(null==(C=null==(k=null==(w=I[0])?void 0:w.collection)?void 0:k.address)?void 0:C.name)===(null==K?void 0:K.firstName);return(0,i.useEffect)(()=>{B&&(0,y.CK)(B).then(()=>U(!0)).catch(e=>console.log(e))},[B]),(0,s.jsx)("div",{className:S.orderHistoryCardContainer,children:(0,s.jsxs)("div",{className:S.orderHistoryCardContent,children:[B&&G?(0,s.jsx)("div",{className:S.orderHistoryCardImage,children:(0,s.jsx)(p.A,{farEyeImage:B,altText:(null==D?void 0:D.altText)?null==D?void 0:D.altText:null==Y?void 0:Y.name,width:326,height:326})}):(0,s.jsx)(u.A,{classNames:{container:S.orderHistoryCardImage},altText:(null==D?void 0:D.altText)?null==D?void 0:D.altText:null==Y?void 0:Y.name,imageUrl:null==D?void 0:D.url,maxWidth:326,imageWidths:[136,326],sizes:[{breakpoint:"md",query:"min-width",width:"326px"},{breakpoint:"md",query:"max-width",width:"136px"}],loading:"lazy"}),(0,s.jsxs)("div",{className:S.orderHistoryCardSummary,children:[(0,s.jsxs)("div",{className:S.orderHistoryCardDetails,children:[!$&&(0,s.jsxs)("div",{className:S.orderNumberContent,children:[(0,s.jsx)("span",{className:S.orderLabel,children:"Order status:"}),(0,s.jsxs)("div",{className:S.orderStatusIcon,children:[!!E&&(0,s.jsx)(g(),{src:z,alt:V?"orderStatusSucessIcon":"orderStatusErrorIcon",height:20,width:20,unoptimized:!0}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:S.orderSummaryStatusValue,children:L}),A&&!R&&M&&!W&&(0,s.jsx)("a",{className:S.orderTrackingLink,href:M,target:"_blank",onClick:()=>{null==O||O(M)},children:q?"Track your order":"Track order"})]})]})]}),(0,s.jsxs)("div",{className:S.orderNumberContent,children:[(0,s.jsx)("span",{className:S.orderLabel,children:"Order number:"}),(0,s.jsx)("p",{className:S.orderSummaryNumber,children:T.consignments[0].orderNumber})]}),(0,s.jsxs)("div",{className:S.orderNumberContent,children:[(0,s.jsx)("span",{className:S.orderLabel,children:R?"Delivery to:":"Sent to:"}),R?(0,s.jsxs)("h3",{className:S.orderSummaryValue,children:[null==H?void 0:H.firstName," ",null==H?void 0:H.lastName]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h3",{className:S.orderSummaryValue,children:[null==K?void 0:K.firstName," ",X?"":null==K?void 0:K.lastName]}),(0,s.jsxs)("p",{className:S.orderSummaryNumber,children:[null==P?void 0:P.address.addressLine1,", ",null==P?void 0:P.address.postalCode]})]})]}),$&&(0,s.jsxs)("div",{className:S.orderNumberContent,children:[(0,s.jsx)("span",{className:S.orderLabel,children:"Order status:"}),(0,s.jsx)("h3",{className:S.orderSummaryStatusValue,children:L})]}),(0,s.jsxs)("div",{className:S.orderNumberContent,children:[(0,s.jsx)("span",{className:S.orderLabel,children:"Date placed:"}),(0,s.jsx)("h3",{className:S.orderSummaryNumber,children:(0,d.A)(new Date(_),"EEEE do MMMM yyy")})]})]}),(0,s.jsx)("div",{className:S.orderNumberContentAction,children:(0,s.jsx)(n.A,{variant:(0,b.eM)("View order details"),fullWidth:!0,thin:!0,title:"View order details",href:`/account/order-details?order=${T.consignments[0].orderNumber}`})})]})]})})}},44489:(e,r,a)=>{"use strict";a.d(r,{A:()=>n});var s=a(6029),i=a(50212),l=a(8588),t=a.n(l);let o=(0,a(80575).n9)()(e=>({orderHistoryFarEyeImageContainer:{display:"flex",alignItems:"center",maxWidth:"336px",[e.breakpoints.up("sm")]:{height:"336px"},[e.breakpoints.down("sm")]:{width:"288px",height:"288px"}},orderHistoryFarEyeImage:{width:"auto",maxHeight:"100%",margin:"auto",maxWidth:"100%",height:"auto"},orderDetailsFarEyeImageContainer:{[e.breakpoints.up("md")]:{height:"336px",width:"336px"},[e.breakpoints.down("sm")]:{width:"100%"}}})),n=e=>{let{farEyeImage:r,altText:a,width:l,height:n,isFromOrderDetails:d}=e,{classes:u}=o();return(0,s.jsx)("div",{className:(0,i.A)(u.orderHistoryFarEyeImageContainer,d&&u.orderDetailsFarEyeImageContainer),"data-testid":"farEyeImageContainer",children:(0,s.jsx)(t(),{src:r,className:u.orderHistoryFarEyeImage,alt:a,width:l,height:n,unoptimized:!0})})}},64017:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/order-history",function(){return a(7827)}])},65211:(e,r,a)=>{"use strict";a.d(r,{A:()=>u});var s=a(6029),i=a(80575),l=a(13939);let t=(0,i.n9)()(e=>({orderHistoryContainer:{display:"grid",gridTemplateColumns:"repeat(1,1fr)",[e.breakpoints.up("sm")]:{gridTemplateColumns:"repeat(2,1fr)"},gridColumnGap:l.YK.medium,gridRowGap:l.YK.medium},orderHistorySection:{},ordersHeading:{display:"none",[e.breakpoints.up("md")]:Object.assign(Object.assign(Object.assign({},e.typography.xl_bold),e.typographySpacing.small_regular_sm),{display:"block"})},orderHistoryLoadMore:{marginTop:"36px",display:"flex",alignItems:"center",justifyContent:"center","& button":{width:"100%",[e.breakpoints.up("md")]:{width:"248px"}}}
1,noResults:{display:"flex",alignItems:"center",justifyContent:"center"}}));var o=a(23121),n=a(87192),d=a(86604);let u=e=>{let{classes:r}=t(),{orders:a,setPage:i,isLastPage:l,page:u,isLoading:c,farEyeTrackOrderAnalytics:m}=e;return(0,s.jsxs)("div",{className:r.orderHistorySection,children:[(0,s.jsx)("h1",{children:"Order history"}),(0,s.jsx)("h2",{className:r.ordersHeading,children:"Your orders"}),a&&(null==a?void 0:a.length)?(0,s.jsx)("div",{className:r.orderHistoryContainer,children:null==a?void 0:a.map(e=>(0,s.jsx)(o.A,{order:e,farEyeTrackOrderAnalytics:m},e.orderNumber))}):(0,s.jsx)("h3",{className:r.noResults,children:"No Orders"}),!l&&(0,s.jsx)("div",{className:r.orderHistoryLoadMore,children:(0,s.jsx)(n.A,{variant:(0,d.eM)("Load more orders"),fullWidth:!0,thin:!0,title:"Load more orders",onClick:()=>void i(u+1),disabled:c})})]})}}},e=>{e.O(0,[988,3172,636,6593,8792],()=>e(e.s=64017)),_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.