PageSourceSearch

https://www.interflora.co.uk/assets/uk_prd_IFCT-9173_PDP-Tabbed-Mo…/static/chunks/6210.52121be6e131cc04.js

js interflora.co.uk collected 2026-10-01 12:14:57 UTC 22,810 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:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ed97ffdd-25e0-4d84-8ac1-999c21f5babc",e._sentryDebugIdIdentifier="sentry-dbid-ed97ffdd-25e0-4d84-8ac1-999c21f5babc")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6210],{23121:(e,a,t)=>{t.d(a,{A:()=>j});var s=t(6029),r=t(55729),i=t(80575),n=t(13939);let l=(0,i.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:n.YK.medium,backgroundColor:n.Tj.supplementary.white,[e.breakpoints.up("md")]:{flex:"1 0 48%",padding:n.YK.xl,marginLeft:0},"&:focus":{BackgroundColor:n.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:n.YK.small,[e.breakpoints.up("md")]:{maxWidth:"326px",marginRight:n.YK.medium,marginBottom:0}},orderHistoryCardSummary:{flex:1,display:"flex",flexDirection:"column"},orderHistoryCardDetails:{flex:1,display:"flex",flexDirection:"column"},orderNumberContent:{lineHeight:"1.43rem",marginBottom:n.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:n.NM.bold,color:n.Tj.grey.grey6}),orderSummaryValue:Object.assign(Object.assign({},e.typography.medium_bold),{marginBottom:0,overflowWrap:"anywhere",fontWeight:n.NM.bold,color:n.Tj.supplementary.black}),orderSummaryNumber:Object.assign(Object.assign({},e.typography.small_regular),{padding:"0 !important",margin:"0",color:n.Tj.supplementary.black,[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.typography.small_bold),{marginBottom:0,fontWeight:n.NM.regular})}),orderSummaryStatusValue:Object.assign(Object.assign({},e.typography.small_bold),{marginBottom:0,fontWeight:n.NM.bold,color:e.isFlyingFlowers?void 0:n.Tj.supplementary.black,marginRight:8,display:e.isFlyingFlowers?"flex":"inline-flex"}),orderTrackingLink:Object.assign(Object.assign({},e.typography.small_regular),{display:"inline",color:n.Tj.primary.gold5,textDecoration:"underline"}),orderSummaryContainer:{display:"flex",flexFlow:"row wrap",marginRight:0,[e.breakpoints.up("md")]:{marginRight:n.YK.medium}},orderStatusIcon:{display:"flex",margin:"2px 0","& img":{margin:"4px 12px 4px 4px"}}}));var o=t(87192),d=t(83431),c=t(76667),m=t(76481),p=t(8588),g=t.n(p),u=t(44489),x=t(91202),y=t(42246),h=t(65903),b=t(86604);let j=e=>{var a,t,i,n,p,j,v,f,w,N,O,C;let{classes:T}=l(),{order:S,farEyeTrackOrderAnalytics:_}=e,R=(0,y.A)(),{consignments:k,createdAt:D,billingAddress:B,orderStatusMessage:I,orderStatusIconColor:E,isFarEye:P}=S,A=null==(a=k[0])?void 0:a.items[0].lineItem,Y=null==(t=k[0])?void 0:t.items[0].recipient,K=null==(i=k[0])?void 0:i.delivery,M=null==A?void 0:A.images[0],W=null==(p=null==(n=k[0])?void 0:n.orderTracking)?void 0:p.image,L=null==(v=null==(j=k[0])?void 0:j.orderTracking)?void 0:v.trackingUrl,$=null==(f=k[0])?void 0:f.isDigital,V=null==(w=k[0])?void 0:w.isClickAndCollect,{isFlyingFlowers:F}=(0,r.useContext)(m.Z0),H="green"===E,G=(0,x.Ub)({query:`(min-width: ${R.breakpoints.values.md}px)`}),U=`/images/icons/orderStatus/${H?"sucessStatusIcon.svg":"errorStatusIcon.svg"}`,[Z,q]=(0,r.useState)(!1),z=(null==(C=null==(O=null==(N=k[0])?void 0:N.collection)?void 0:O.address)?void 0:C.name)===(null==Y?void 0:Y.firstName);return(0,r.useEffect)(()=>{W&&(0,h.CK)(W).then(()=>q(!0)).catch(e=>console.log(e))},[W]),(0,s.jsx)("div",{className:T.orderHistoryCardContainer,children:(0,s.jsxs)("div",{className:T.orderHistoryCardContent,children:[W&&Z?(0,s.jsx)("div",{className:T.orderHistoryCardImage,children:(0,s.jsx)(u.A,{farEyeImage:W,altText:(null==M?void 0:M.altText)?null==M?void 0:M.altText:null==A?void 0:A.name,width:326,height:326})}):(0,s.jsx)(c.A,{classNames:{container:T.orderHistoryCardImage},altText:(null==M?void 0:M.altText)?null==M?void 0:M.altText:null==A?void 0:A.name,imageUrl:null==M?void 0:M.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:T.orderHistoryCardSummary,children:[(0,s.jsxs)("div",{className:T.orderHistoryCardDetail
1s,children:[!F&&(0,s.jsxs)("div",{className:T.orderNumberContent,children:[(0,s.jsx)("span",{className:T.orderLabel,children:"Order status:"}),(0,s.jsxs)("div",{className:T.orderStatusIcon,children:[!!E&&(0,s.jsx)(g(),{src:U,alt:H?"orderStatusSucessIcon":"orderStatusErrorIcon",height:20,width:20,unoptimized:!0}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:T.orderSummaryStatusValue,children:I}),P&&!$&&L&&!V&&(0,s.jsx)("a",{className:T.orderTrackingLink,href:L,target:"_blank",onClick:()=>{null==_||_(L)},children:G?"Track your order":"Track order"})]})]})]}),(0,s.jsxs)("div",{className:T.orderNumberContent,children:[(0,s.jsx)("span",{className:T.orderLabel,children:"Order number:"}),(0,s.jsx)("p",{className:T.orderSummaryNumber,children:S.consignments[0].orderNumber})]}),(0,s.jsxs)("div",{className:T.orderNumberContent,children:[(0,s.jsx)("span",{className:T.orderLabel,children:$?"Delivery to:":"Sent to:"}),$?(0,s.jsxs)("h3",{className:T.orderSummaryValue,children:[null==B?void 0:B.firstName," ",null==B?void 0:B.lastName]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h3",{className:T.orderSummaryValue,children:[null==Y?void 0:Y.firstName," ",z?"":null==Y?void 0:Y.lastName]}),(0,s.jsxs)("p",{className:T.orderSummaryNumber,children:[null==K?void 0:K.address.addressLine1,", ",null==K?void 0:K.address.postalCode]})]})]}),F&&(0,s.jsxs)("div",{className:T.orderNumberContent,children:[(0,s.jsx)("span",{className:T.orderLabel,children:"Order status:"}),(0,s.jsx)("h3",{className:T.orderSummaryStatusValue,children:I})]}),(0,s.jsxs)("div",{className:T.orderNumberContent,children:[(0,s.jsx)("span",{className:T.orderLabel,children:"Date placed:"}),(0,s.jsx)("h3",{className:T.orderSummaryNumber,children:(0,d.A)(new Date(D),"EEEE do MMMM yyy")})]})]}),(0,s.jsx)("div",{className:T.orderNumberContentAction,children:(0,s.jsx)(o.A,{variant:(0,b.eM)("View order details"),fullWidth:!0,thin:!0,title:"View order details",href:`/account/order-details?order=${S.consignments[0].orderNumber}`})})]})]})})}},93303:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(6029),r=t(80575),i=t(13939);let n=(0,r.n9)()(e=>({recentOrderWrapper:{display:"block",[e.breakpoints.up("md")]:{display:"grid",gridColumn:1,gridRow:"1 / span 2",gridTemplateRows:"subgrid"}},recentOrderCardContainer:{display:"flex",flexDirection:"column",flex:"50%",[e.breakpoints.up("md")]:{marginBottom:0,gridRow:2}},title:Object.assign(Object.assign(Object.assign({},e.typography.xl_bold),e.typographySpacing.xl_bold_sm),{color:i.Tj.supplementary.black,lineHeight:"2.5rem",marginBottom:i.YK.medium,[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.typographySpacing.none),{gridRow:1})}),recentOrder:{flex:"100%",display:"flex",flexDirection:"column",[e.breakpoints.up("md")]:{flex:"50%"}},noOrderTitle:Object.assign(Object.assign({},e.typography.medium_bold),{marginBottom:"13px",color:i.Tj.supplementary.black}),noOrderDescription:Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.typographySpacing.xl_regular_lg),{color:i.Tj.grey.grey6})}));
1var l=t(23121);let o=e=>{let{classes:a}=n(),{order:t}=e;return(0,s.jsxs)("div",{className:a.recentOrderWrapper,children:[(0,s.jsx)("h2",{className:a.title,children:"Your most recent order"}),(0,s.jsx)("div",{className:a.recentOrderCardContainer,children:t?(0,s.jsx)(l.A,{order:t}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:a.noOrderTitle,children:"You have no orders yet!"}),(0,s.jsx)("p",{className:a.noOrderDescription,children:"But when you do, they will appear here!"})]})})]})}},96210:(e,a,t)=>{t.d(a,{A:()=>A});var s=t(6029),r=t(55729),i=t(93303),n=t(50212),l=t(83431),o=t(26815),d=t(87192),c=t(63995),m=t(75932),p=t(76481),g=t(58585),u=function(e,a){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>a.indexOf(s)&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)0>a.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(t[s[r]]=e[s[r]]);return t};let x=e=>{var a;let{componentId:t,componentKey:i,ComponentProps:n,Component:l}=e,o=u(e,["componentId","componentKey","ComponentProps","Component"]),d=(0,r.useContext)(p.Z0),c=(0,m.A)(d.preloadedComponents,t||i||"");return(0,s.jsx)(g.A,Object.assign({},o,{title:(null==(a=null==c?void 0:c.data)?void 0:a.title)||o.title,children:(null==c?void 0:c.data)?(0,s.jsx)(l,Object.assign({},null==c?void 0:c.data,n)):(0,s.jsx)("p",{children:"The information you requested could not be retrieved. Please try again later."})}))};var y=t(35759),h=t(61295),b=t(79973),j=t(80575),v=t(13939);let f=(0,j.n9)()(()=>({errorMessage:{marginBottom:v.YK.xs}})),w=e=>{var a,t;let[i,n]=(0,r.useState)(""),{classes:o}=f(),d=Object.assign({heading:(0,s.jsxs)(s.Fragment,{children:["Your ",null==(a=e.product)?void 0:a.name," Delivery pass expires on"," ",(0,s.jsx)("span",{children:(0,l.A)(new Date(e.expiryDate),"EEEE do MMMM")})]}),isFullButtonWidth:!0,buttonVariant:"tertiary",links:[{onClick:()=>{var a,t,s,r;return a=void 0,t=void 0,s=void 0,r=function*(){var a;if(e.addToBasket&&(null==(a=e.product)?void 0:a.sku))try{yield e.addToBasket(e.product.sku)}catch(e){n("There was a problem, please try again later")}},new(s||(s=Promise))(function(e,i){function n(e){try{o(r.next(e))}catch(e){i(e)}}function l(e){try{o(r.throw(e))}catch(e){i(e)}}function o(a){var t;a.done?e(a.value):((t=a.value)instanceof s?t:new s(function(e){e(t)})).then(n,l)}o((r=r.apply(a,t||[])).next())})},label:`Renew ${null==(t=e.product)?void 0:t.name}`}],linkStyle:"BUTTON"},e);return(0,s.jsxs)(s.Fragment,{children:[i&&(0,s.jsx)(b.default,{type:"alertError",message:i,className:o.errorMessage}),(0,s.jsx)(h.default,Object.assign({},d,{isDeliveryPassInnerContentClass:!0}))]})};var N=t(25559);let O="52px",C="64px",T=(0,j.n9)()((e,a,t)=>({deliveryPassContainer:{flex:"50%",display:"flex",flexDirection:"column",minHeight:"100%",[e.breakpoints.up("md")]:{display:"grid",gridColumn:2,gridRow:"1 / span 2",gridTemplateRows:"subgrid",marginBottom:0}},deliveryPassTitle:Object.assign(Object.assign(Object.assign({},e.typography.xl_bold),e.typographySpacing.xl_bold_sm),{color:v.Tj.supplementary.black,marginBottom:v.YK.medium,[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.typographySpacing.none),{marginBottom:0,gridRow:1}),lineHeight:"2.5rem"}),noDeliveryPassTitle:Object.assign(Object.assign(Object.assign({},e.typography.medium_bold),e.typographySpacing.medium_bold_lg),{[e.breakpoints.up("md")]:Object.assign(Object.assign({color:v.Tj.supplementary.black},e.typographySpacing.none),{marginBottom:"18px"})}),deliveryPassCard:{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)",padding:v.YK.medium,flex:"1",display:"flex",flexDirection:"column",[e.breakpoints.up("md")]:{padding:v.YK.xl,backgroundColor:v.Tj.supplementary.white,marginBottom:0,gridRow:2}},noDeliveryPassCard:{backgroundColor:v.Tj.grey.grey1,[e.breakpoints.up("md")]:{paddingLeft:"40px",paddingRight:v.YK.xl}},noDeliveryPassContainer:{height:"100%",display:"flex",flexDirection:"column",flex:1},noDeliveryPassContent:{display:"flex",alignItems:"center",flex:1,[e.breakpoints.up("md")]:{position:"relative",top:15}},deliveryPassButton:{display:"flex",justifyContent:"center",marginTop:"auto",[e.breakpoints.up("md")]:{justifyContent:"flex-end",marginTop:"auto",paddingTop:v.YK.small},"& button":{width:"100%",[e.breakpoints.up("md")]:{width:"auto",minWidth:"336px"}}},noDeliveryPassDescription:{marginBottom:v.YK.small,"& p":Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.typographySpacing.none),{color:v.Tj.grey.grey6,marginBottom:v.YK.small,"&:last-child":{marginBottom:0}})},activePassSection:{display:"flex",flexDirection:"column",flex:1,"& > :not(:last-child)":{marginBottom:v.YK.small},[e.breakpoints.up("md")]:{"& > :not(:last-child)":{marginBottom:v.YK.large}}},headerContent:{display:"flex",alignItems:"flex-start",marginBottom:v.YK.small,[`& > .${t.passTypeIcon}`]:{marginRight:v.YK.small},[e.breakpoints.up("md")]:{alignItems:"center",marginBottom:v.YK.large}},passTypeIcon:{minWidth:O,width:O,height:O,display:"flex",flexShrink:0,[e.breakpoints.up("md")]:{minWidth:C,width:C,height:C}},iconImage:{width:"100%",height:"100%",objectFit:"contain"},headerText:{flex:1,margin:0,"& p":Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.typographySpacing.small_regular_sm),{color:v.Tj.supplementary.black,margin:0,marginBottom:"0 !important",lineHeight:"1.75"}),"& *":{margin:0}},statsSection:{display:"flex",flexDirection:"column",marginBottom:0,[`& > .${t.statRow}, & > .${t.statRowRenewable}`]:{marginBottom:0,"&:not(:last-child)":{marginBottom:v.YK.small}},[e.breakpoints.up("md")]:{flexDirection:"column",marginBottom:0,[`& > .${t.statRow}, & > .${t.statRowRenewable}`]:{marginBottom:0,"&:not(:last-child)":{marginBottom:"20px"}}}},statsSectionWithFooter:{display:"flex",flexDirection:"column",marginBottom:v.YK.small,[`& > .${t.statRow}, & > .${t.statRowRenewable}`]:{marginBottom:0,"&:not(:last-child)":{marginBottom:v.YK.small}},[e.breakpoints.up("md")]:{flexDirection:"column",marginBottom:v.YK.large,[`& > .${t.statRow}, & > .${t.statRowRenewable}`]:{marginBottom:0,"&:not(:last-child)":{marginBottom:"20px"}}}},statRow:{display:"flex",alignItems:"center",width:"100%",[`& > .${t.statBadge}`]:{marginRight:v.YK.xs}},statRowRenewable:{display:"flex",alignItems:"center",width:"100%",flexDirection:"row",[`& > .${t.statBadgeRenewable}`]:{marginRight:v.YK.xs},[`& > .${t.statLabelRenewable}`]:{marginRight:"auto"},[`& > .${t.statBadge}`]:{marginRight:v.YK.xs},[`& > .${t.renewButton}`]:{display:"none"},[e.breakpoints.up("md")]:{flexDirection:"row",justifyContent:"space-between",[`& > .${t.statBadgeRenewable}`]:{marginRight:v.YK.xs},[`& > .${t.statLabelRenewable}`]:{marginRight:0},[`& > .${t.renewButton}`]:{display:"flex"}}},statBadge:{minWidth:"100px",width:"100px",display:"flex",alignItems:"center",justifyContent:"center",padding:`2px ${v.YK.xs}`,borderRadius:"20px",flexShrink:0,backgroundColor:v.ZV.success.light},statValue:Object.assign(Object.assign(Object.assign({},e.typography.medium_bold),e.typographySpacing.none),{color:v.Tj.supplementary.black}),statLabel:Object.assign(Object.assign(Object.assign({},e.typography.small_bold),e.typographySpacing.none),{color:v.Tj.supplementary.black,flex:1,display:"flex",alignItems:"center"}),statLabelText:{display:"inline",whiteSpace:"normal"},statBadgeRenewable:{minWidth:"100px",width:"100px",display:"flex",alignItems:"center",justifyContent:"center",padding:`2px ${v.YK.xs}`,borderRadius:"20px",flexShrink:0,backgroundColor:v.ZV.error.light},statValueRenewable:Object.assign(Object.assign({},e.typography.medium_bold),e.typographySpacing.none),statLabelRenewable:{color:v.ZV.error.base,[e.breakpoints.up("md")]:{color:v.ZV.error.base}},renewalMessage:Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.typographySpacing.small_regular_sm),{color:v.Tj.supplementary.black,marginTop:0,marginBottom:0,"& p":{marginTop:0,marginBottom:0}}),renewButton:{display:"flex",marginTop:"auto","& button":{padding:"13px 22px 11px !important"},[e.breakpoints.up("md")]:{marginTop:0}},renewButtonMobile:{marginTop:"auto",display:"flex","& button":{width:"100%",padding:"13px 22px 11px !important"}
1,[e.breakpoints.up("md")]:{display:"none"}},renewablePassSection:{display:"flex",flexDirection:"column",flex:1,"& > :not(:last-child)":{marginBottom:v.YK.small},[e.breakpoints.up("md")]:{"& > :not(:last-child)":{marginBottom:v.YK.large}}}}));var S=t(86604);let _=({icon:e,headerText:a,classes:t})=>(0,s.jsxs)(s.Fragment,{children:[(null==e?void 0:e.url)&&(0,s.jsx)("div",{className:t.passTypeIcon,children:(0,s.jsx)("img",{src:e.url,alt:e.altText,className:t.iconImage})}),a&&(0,s.jsx)("div",{className:t.headerText,children:(0,s.jsx)(y.A,{content:a})})]}),R=({value:e,label:a,classes:t,isRenewable:r})=>{let i=r?t.statRowRenewable:t.statRow,n=r?t.statValueRenewable:t.statValue;return(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)("div",{className:t.statBadge,children:(0,s.jsx)("div",{className:n,children:e})}),(0,s.jsx)("div",{className:t.statLabel,children:(0,s.jsx)("span",{className:t.statLabelText,children:a})})]})},k=({ordersWithPass:e,totalSaved:a,classes:t,isRenewable:r})=>(0,s.jsxs)(s.Fragment,{children:[null!=e&&(0,s.jsx)(R,{value:e,label:N._i.ORDERS_PLACED_WITH_PASS,classes:t,isRenewable:r}),a&&(0,s.jsx)(R,{value:(0,p.fx)(a.formatted,a.currencyCode),label:N._i.TOTAL_SAVED_USING_PASS,classes:t,isRenewable:r})]}),D=({calculatedDaysRemaining:e,renewsOn:a,expiryDate:t,isRenewable:r,footerText:i,ordersWithPass:n,totalSaved:o,headerContent:d,classes:c})=>{let m=void 0!==e&&void 0!==n&&o,p=!r&&!a&&i;return(0,s.jsxs)("div",{className:c.activePassSection,children:[(0,s.jsx)("div",{className:c.headerContent,children:d}),m&&(0,s.jsxs)("div",{className:p?c.statsSectionWithFooter:c.statsSection,children:[(0,s.jsx)(R,{value:e,label:((e,a)=>{if(e){let a=(0,l.A)(new Date(e),"dd/MM/yyyy");return`${N._i.DAYS_LEFT_RENEWS_ON} ${a}`}if(a){let e=(0,l.A)(new Date(a),"dd/MM/yyyy");return`${N._i.DAYS_REMAINING} ${N._i.EXPIRES} ${e}`}return N._i.DAYS_REMAINING})(a,t),classes:c}),(0,s.jsx)(k,{ordersWithPass:n,totalSaved:o,classes:c})]}),p&&(0,s.jsx)("div",{className:c.renewalMessage,children:(0,s.jsx)(y.A,{content:i})})]})},B=({calculatedDaysRemaining:e,renewsOn:a,expiryDate:t,ordersWithPass:r,totalSaved:i,headerContent:o,classes:c,onRenewClick:m})=>(0,s.jsxs)("div",{className:c.renewablePassSection,children:[(0,s.jsx)("div",{className:c.headerContent,children:o}),void 0!==e&&void 0!==r&&i&&(0,s.jsxs)("div",{className:c.statsSection,children:[(0,s.jsxs)("div",{className:c.statRowRenewable,children:[(0,s.jsx)("div",{className:c.statBadgeRenewable,children:(0,s.jsx)("div",{className:c.statValueRenewable,children:e})}),(0,s.jsx)("div",{className:(0,n.A)(c.statLabel,c.statLabelRenewable),children:(0,s.jsx)("span",{className:c.statLabelText,children:((e,a)=>{if(e){let a=(0,l.A)(new Date(e),"dd/MM/yyyy");return`${N._i.DAYS_REMAINING_RENEWS} ${a}`}if(a){let e=(0,l.A)(new Date(a),"dd/MM/yyyy");return`${N._i.DAYS_REMAINING} ${N._i.EXPIRES} ${e}`}return N._i.DAYS_REMAINING})(a,t)})}),(0,s.jsx)("div",{className:c.renewButton,children:(0,s.jsx)(d.A,{fullWidth:!1,variant:(0,S.eM)(N._i.RENEW_BUTTON),thin:!0,title:N._i.RENEW_BUTTON,onClick:m})})]}),(0,s.jsx)(k,{ordersWithPass:r,totalSaved:i,classes:c,isRenewable:!0})]}),(0,s.jsx)("div",{className:c.renewButtonMobile,children:(0,s.jsx)(d.A,{fullWidth:!0,variant:(0,S.eM)(N._i.RENEW_BUTTON),thin:!0,title:N._i.RENEW_BUTTON,onClick:m})})]}),I=({availableToPurchase:e,classes:a,onViewPassClick:t})=>(0,s.jsxs)("div",{className:a.noDeliveryPassContainer,children:[(0,s.jsx)("div",{className:a.noDeliveryPassContent,children:(0,s.jsxs)("div",{className:a.deliveryPassTitle,children:[(0,s.jsx)("h3",{className:a.noDeliveryPassTitle,children:N._i.NO_DELIVERY_PASS_TITLE}),!!(null==e?void 0:e.length)&&(0,s.jsxs)("div",{className:a.noDeliveryPassDescription,children:[(0,s.jsx)("p",{children:N._i.NO_DELIVERY_PASS_DESCRIPTION_1}),(0,s.jsx)("p",{children:N._i.NO_DELIVERY_PASS_DESCRIPTION_2})]})]})}),(0,s.jsx)("div",{className:a.deliveryPassButton,children:(0,s.jsx)(d.A,{fullWidth:!0,variant:(0,S.eM)(N._i.NO_DELIVERY_PASS_CTA),thin:!0,title:N._i.NO_DELIVERY_PASS_CTA,onClick:t})})]}),E=e=>{var a,t,i;let{product:l,expiryDate:d,isRenewable:m,availableToPurchase:p,addToBasket:g,daysRemaining:u,ordersWithPass:y,totalSaved:h,activeGoldDeliveryPassText:b,activePlatinumDeliveryPassText:j,footerText:v,renewsOn:f,title:N,icon:O}=e,[C,S]=(0,r.useState)(!1),[R,k]=(0,r.useState)(!1),{classes:E}=T(),P=null!=u?u:d?Math.max(0,(0,o.A)(new Date(d),new Date)):void 0,A=null!=(i=null==(t=null==(a=null==l?void 0:l.name)?void 0:a.split(" ").pop())?void 0:t.toUpperCase())?i:"",Y=(0,s.jsx)(_,{icon:O,headerText:"GOLD"===A?b||"":"PLATINUM"===A&&j||"",classes:E});return(0,s.jsxs)("div",{className:E.deliveryPassContainer,children:[C&&
1(0,s.jsx)(x,{Component:c.default,componentKey:c.AMPLIENCE_KEY,open:C,setOpen:()=>S(!1),title:"Delivery passes",maxWidth:"xl",ComponentProps:{addToBasket:g,products:p}}),R&&(0,s.jsx)(x,{Component:w,componentKey:"component/existing-delivery-pass",open:R,setOpen:()=>k(!1),title:"Delivery passes",maxWidth:"xl",ComponentProps:{addToBasket:g,product:l,expiryDate:d}}),l?N&&(0,s.jsx)("h2",{className:E.deliveryPassTitle,children:N}):(0,s.jsx)("h2",{className:E.deliveryPassTitle,children:"Delivery pass"}),(0,s.jsx)("div",{className:(0,n.A)(E.deliveryPassCard,!l&&E.noDeliveryPassCard),children:l?m?(0,s.jsx)(B,{calculatedDaysRemaining:P,renewsOn:f,expiryDate:d,ordersWithPass:y,totalSaved:h,headerContent:Y,classes:E,onRenewClick:()=>k(!0)}):(0,s.jsx)(D,{calculatedDaysRemaining:P,renewsOn:f,expiryDate:d,isRenewable:m,footerText:v,ordersWithPass:y,totalSaved:h,headerContent:Y,classes:E}):(0,s.jsx)(I,{availableToPurchase:p,classes:E,onViewPassClick:()=>S(!0)})})]})},P=(0,j.n9)()(e=>({recentOrderContainer:{display:"grid",gridTemplateColumns:"repeat(1, 1fr)",gridColumnGap:"0",gridRowGap:v.YK.xl,[e.breakpoints.up("md")]:{gridTemplateColumns:"repeat(2, 1fr)",gridTemplateRows:"auto 1fr",gridColumnGap:v.YK.medium,gridRowGap:v.YK.medium,alignItems:"stretch"}}})),A=e=>{var a,t;let{classes:n}=P(),{isFlyingFlowers:l,getCustomer:o}=(0,r.useContext)(p.Z0),{order:d,addToBasket:c,title:m,activeGoldDeliveryPassText:g,activePlatinumDeliveryPassText:u,footerText:x,icon:y,daysRemaining:h,ordersWithPass:b,totalSaved:j,renewsOn:v}=e,f=null==(t=null==(a=null==o?void 0:o.data)?void 0:a.customer)?void 0:t.deliveryPass;return(0,r.useEffect)(()=>{null==o||o.refetch()},[]),(0,s.jsxs)("div",{className:n.recentOrderContainer,children:[(0,s.jsx)(i.A,{order:d}),!l&&f&&(0,s.jsx)(E,Object.assign({},f,{addToBasket:c,title:m,activeGoldDeliveryPassText:g,activePlatinumDeliveryPassText:u,footerText:x,icon:y,daysRemaining:h,ordersWithPass:b,totalSaved:j,renewsOn:v}))]})}}}]);

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.