PageSourceSearch

https://www.interflora.co.uk/assets/uk_prd_main-20260922.2/_next/s…/finishing-touches-24f07ad77c609455.js

js interflora.co.uk collected 2026-09-24 09:54:33 UTC 20,385 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7bec703f-5fa6-48ce-804b-b7fce6342679",e._sentryDebugIdIdentifier="sentry-dbid-7bec703f-5fa6-48ce-804b-b7fce6342679")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5161],{10549:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/finishing-touches",function(){return i(57821)}])},28122:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var n=i(6029),a=i(50212),o=i(74020),s=i(80575),r=i(13939);let l=(0,s.n9)()(e=>({removeButton:{},addButton:{"& .MuiFab-root:not(.Mui-disabled)":{backgroundColor:e.isFlyingFlowers?r.Tj.plushBlush[300]:r.Tj.primary.gold4},"& .MuiFab-root:not(.Mui-disabled) .MuiIcon-root":{color:e.isFlyingFlowers?r.Tj.wildExotic[400]:r.Tj.supplementary.black}},quantityChangeButton:{"& button.MuiFab-root":{width:"40px",height:"40px"}},quantityControls:{display:"flex",height:"fit-content",alignItems:"center",width:"128px",justifyContent:"space-between",marginBottom:"14px"},quantity:Object.assign(Object.assign({},e.typography.small_bold),{color:e.isFlyingFlowers?r.Tj.black[700]:void 0}),quantityInOrder:Object.assign({display:"block"},e.typography.xxs_bold)}));var d=i(7138);let g=e=>{let{quantity:t,isMaxQuantity:i,submitting:s,handleUpdateQuantity:r,isGiftItem:g}=e,{classes:c}=l();return t?(0,n.jsxs)("div",{className:c.quantityControls,children:[1!==t||g?!g&&(0,n.jsx)(o.A,{icon:"remove",ariaLabel:"Decrease quantity",onClick:()=>r(t-1),className:(0,a.A)(c.removeButton,c.quantityChangeButton),disabled:s}):(0,n.jsx)(o.A,{icon:"delete_forever",ariaLabel:"Remove item",onClick:()=>r(0),className:(0,a.A)(c.removeButton,c.quantityChangeButton),disabled:s}),s?(0,n.jsx)(d.A,{size:24}):(0,n.jsx)("span",{className:c.quantity,children:t}),!g&&(0,n.jsx)(o.A,{icon:"add",ariaLabel:"Increase quantity",onClick:()=>r(t+1),className:(0,a.A)(c.addButton,c.quantityChangeButton),disabled:s||i})]}):null}},53221:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(6029),a=i(77957),o=i(80575),s=i(13939);let r=(0,o.n9)()(e=>({header:{backgroundColor:s.Tj.supplementary.white,borderBottom:`1px solid ${s.Tj.grey.grey2}`,paddingTop:e.isFlyingFlowers?"11px":void 0,paddingBottom:e.isFlyingFlowers?"11px":void 0,[e.breakpoints.up("md")]:{paddingTop:e.isFlyingFlowers?"16px":void 0,paddingBottom:e.isFlyingFlowers?"16px":void 0}},logo:{margin:"0 auto",marginBottom:e.isFlyingFlowers?void 0:"-1px",width:"100px",[e.breakpoints.up("md")]:{width:"160px !important"}}})),l=()=>{let{classes:e}=r();return(0,n.jsx)("header",{id:"header",className:e.header,"data-hj-ignore-attributes":!0,children:(0,n.jsx)(a.A,{className:e.logo})})}},57821:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSG:()=>P,default:()=>Q});var n=i(6029),a=i(47740),o=i(68972),s=i(53221),r=i(87861),l=i(20148),d=i(7234),g=i(50212),c=i(55729),p=i(76481),u=i(79973),m=i(87192),y=i(42246),h=i(88598),x=i(51647),b=i(48733),j=i(86604),F=i(86753),f=i(28122),k=i(41589),v=i(76667),T=i(80575),w=i(81751),C=i(13939);let A=(0,T.n9)()((e,t,i)=>({finishingTouchCard:{boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.08), 0px 2px 8px rgba(0, 0, 0, 0.12)"},error:{margin:C.YK.small},carouselContainer:{height:"136px",width:"288px",marginBottom:C.YK.xl,[e.breakpoints.up("sm")]:{height:"260px",width:"436px",marginBottom:C.YK.small,"& ul":{width:"436px"}}},topSection:{[e.breakpoints.up("sm")]:{display:"flex"}},bottomSection:{padding:C.YK.medium,[e.breakpoints.up("md")]:{padding:`${C.YK.small} ${C.YK.medium}`}},promoText:Object.assign(Object.assign({},e.typography.medium_bold),{color:C.Tj.secondary.lavender}),productName:Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.isFlyingFlowers?e.typographySpacing.small_regular_sm:e.typographySpacing.none),{marginBottom:C.YK.xs,padding:"0 !important",[e.breakpoints.up("sm")]:Object.assign(Object.assign({},e.typography.medium_regular),{marginBottom:C.YK.medium})}),price:Object.assign({},e.typography.medium_bold),ctaContainerStacked:{"& p":{marginBottom:C.YK.xs,textAlign:"left"},[`& .${i.quantityInOrder}`]:{textAlign:"right"},[e.breakpoints.down("xl")]:{display:"flex",justifyContent:"space-between","& p":{marginBottom:0}},[e.breakpoints.up("sm")]:{display:"flex",flexDirection:"column",[`& .${i.quantityControlWrapper}`]:{alignSelf:"flex-end"},[`& .${i.addButtonSolo}`]:{width:"100%"}}},ctaContainerAdjacent:{display:"flex",justifyContent:"space-between",marginBottom:0,[e.breakpoints.up("sm")]:{marginBottom:C.YK.small},"& p":{marginBottom:0}},addButtonSolo:{},mainDetails:{padding:`${C.YK.medium} ${C.YK.medium} ${C.YK.medium} ${C.YK.large}`,[e.breakpoints.up("sm")]:{marginLeft:C.YK.medium,display:"flex",flexDirection:"column",flexGrow:1,paddingLeft:0},"& > p":{marginBottom:e.isFlyingFlowers?C.YK.small:C.YK.xs,textAlign:"left !important",[e.breakpoints.up("md")]:{marginBottom:C.YK.medium}}},productImage:{position:"relative",width:"100%",paddingBottom:0,"& div":{position:"relative",width:"100%",paddingTop:"100%","& img":{position:"absolute",top:0}},"&:nth-child(2)":{marginLeft:C.YK.small},[e.breakpoints.up("sm")]:{"& div":{height:"260px",width:"260px"}}},productInformationButton:Object.assign(Object.assign(Object.assign({},e.typography.small_regular),(0,w.nf)(e.isFlyingFlowers?C.Tj.wildExotic[500]:C.Tj.primary.gold4)),{color:e.isFlyingFlowers?C.Tj.black[700]:C.Tj.primary.gold5,cursor:"pointer",textAlign:"left",[e.breakpoints.up("md")]:{dis
1play:"block"}}),quantityControlWrapper:{textAlign:"right"},quantityInOrder:Object.assign({display:"block"},e.typography.xxs_bold),carouselImageContainer:{marginRight:C.YK.small,[e.breakpoints.up("sm")]:{"& div":{height:"260px",width:"260px"},"& img":{height:"260px",width:"260px"}}},productImageContainer:{display:"flex",justifyContent:"flex-start",[e.breakpoints.down("md")]:{marginBottom:0}},giftContent:{marginTop:"26px",paddingTop:"28px",[e.breakpoints.up("sm")]:{marginTop:"0",paddingTop:"0"},"& h3, & h4":Object.assign(Object.assign({},e.typography.small_bold),{marginBottom:C.YK.xs}),"& a":Object.assign({},e.typography.small_bold),"& div, & p":Object.assign(Object.assign({},e.typography.small_regular),{marginBottom:"20px","& div":{marginBottom:"0"}})},desktopLink:{display:"none",[e.breakpoints.up("sm")]:{display:"block",marginTop:"auto"}},mobileLink:{display:"block",marginTop:0,[e.breakpoints.up("sm")]:{display:"none"}}}));var B=i(91202);let _=e=>{var t;let{product:i,className:a,showPromotion:o,usePartialPrice:s,quantity:r,isMaxQuantity:l,setFinishingTouchQuantity:d}=e,{sku:T,description:w,promotionalText:C,images:_,name:N,price:O,variants:Y}=i,K=null==Y?void 0:Y.find(e=>e.isMaster),$=(0,y.A)(),[I,S]=(0,c.useState)(!1),q=!(0,B.Ub)({query:`(min-width: ${$.breakpoints.values.sm}px)`}),{classes:M}=A(),[L,P]=(0,c.useState)(!1),[Q,E]=(0,c.useState)(!1),[D,W]=(0,c.useState)(""),R=e=>{E(!0),d(e,T).then(()=>{W("")}).catch(e=>{W("There was a problem changing the quantity, please try again.")}).finally(()=>{E(!1)})};return(0,c.useEffect)(()=>{S(q)},[q]),(0,n.jsxs)(h.A,{className:(0,g.A)(a,M.finishingTouchCard),children:[D&&(0,n.jsx)(u.default,{type:"alertError",message:D,className:M.error}),(0,n.jsxs)("div",{className:M.topSection,children:[_.length>2?(0,n.jsx)("div",{className:M.carouselContainer,children:(0,n.jsx)(F.A,{responsive:{all:{breakpoint:{max:4e3,min:0},items:2}},arrows:!1,autoPlay:!1,ssr:!0,showDots:!0,renderDotsOutside:!0,infinite:!0,children:_.map((e,t)=>(0,n.jsx)(v.A,{classNames:{container:M.carouselImageContainer},altText:(null==e?void 0:e.altText)||N,imageUrl:null==e?void 0:e.url,maxWidth:260,imageWidths:[260]},`${N}${t}`))})}):(0,n.jsx)("div",{className:M.productImageContainer,children:_.map((e,t)=>(0,n.jsx)(v.A,{classNames:{container:M.productImage},altText:(null==e?void 0:e.altText)?null==e?void 0:e.altText:N,imageUrl:null==e?void 0:e.url,maxWidth:I?630:260,imageWidths:I?[630]:[260]},`${N}${t}`))}),(0,n.jsxs)("div",{className:(0,g.A)(M.mainDetails),children:[(0,n.jsx)("p",{className:M.productName,children:N}),(0,n.jsxs)("div",{className:_.length<2?M.ctaContainerAdjacent:M.ctaContainerStacked,children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{className:M.price,children:s?(0,p.ef)(O):O.formatted}),o&&C&&(0,n.jsx)("span",{className:M.promoText,children:C})]}),0===r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{sx:{display:{xs:"block",md:"none"}},children:(0,n.jsx)(m.A,{onClick:()=>R(1),className:M.addButtonSolo,variant:(0,j.eM)("Add"),title:"Add",thin:!0,disabled:Q||l})}),(0,n.jsx)(x.A,{sx:{display:{zero:"none",xs:"none",md:"block"}},children:(0,n.jsx)(m.A,{onClick:()=>R(1),className:M.addButtonSolo,variant:(0,j.eM)("Add to order"),title:"Add to order",thin:!0,disabled:Q||l})})]}):(0,n.jsxs)("div",{className:M.quantityControlWrapper,children:[(0,n.jsx)(f.A,{quantity:r,submitting:Q,handleUpdateQuantity:R,isMaxQuantity:l}),(0,n.jsxs)("span",{className:M.quantityInOrder,children:[r," in order"]})]})]}),(0,n.jsx)(x.A,{sx:{display:{zero:"none",sm:"flex"},marginTop:"auto"},children:(0,n.jsxs)("button",{className:M.productInformationButton,onClick:()=>P(!L),children:[L?"Hide":"View"," product information"]})})]})]}),(w||!!(null==(t=null==K?void 0:K.attributes)?void 0:t.length))&&(L||I)&&(0,n.jsxs)("div",{className:M.bottomSection,children:[(0,n.jsx)(x.A,{sx:{display:{zero:"block",sm:"none"}},children:(0,n.jsxs)("button",{className:M.productInformationButton,onClick:()=>P(!L),children:[L?"Hide":"View"," product information"]})}),(0,n.jsx)(b.A,{in:L,children:(0,n.jsx)(k.A,{className:M.giftContent,description:w,attributes:[...(null==K?void 0:K.attributes)||[]]})})]})]})};var N=i(91977);let O=(0,T.n9)()((e,t,i)=>({container:{"& h1":Object.assign(Object.assign(Object.assign({textAlign:e.isFlyingFlowers?"center":"left"},e.isFlyingFlowers?e.typography.large_bold:e.typography.medium_bold),e.isFlyingFlowers?e.typographySpacing.large_bold_lg:e.typographySpacing.medium_bold_sm),{color:e.isFlyingFlowers?C.Tj.black[700]:C.Tj.supplementary.black,[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.isFlyingFlowers?e.typography.xl_bold:e.typography.large_bold),e.isFlyingFlowers?e.typographySpacing.xl_bold_lg:e.typographySpacing.large_bold_sm)}),"& p":Object.assign(Object.assign({textAlign:e.isFlyingFlowers?"center":"left"},e.typography.small_regular),{marginBottom:e.isFlyingFlowers?C.YK.large:C.YK.medium,color:C.Tj.grey.grey6,[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.isFlyingFlowers?e.typography.medium_regular:e.typography.small_regular),e.typographySpacing.small_regular_lg)})},textLine:{marginTop:C.YK.medium,marginBottom:C.YK.medium,[e.breakpoints.up("md")]:{marginTop:C.YK.large,marginBottom:C.YK.large},display:"flex",flexDirection:"row",[`& .${i.textLineContent}`]:Object.assign(Object.assign({width:"94px",textAlign:"center"},e.typography.small_bold),{[e.breakpoints.up("md")]:{}}),"&:before, &:after":{content:'""',flex:"1 1",borderBottom:`1px solid ${C.Tj.grey.grey4}`,margin:"auto"}},textLineContent:{},categories:{marginBottom:C.YK.large,[e.breakpoints.up("md")]:{marginBottom:C.YK.xl}},categoryContainer:{margin:`0 -${C.YK.small}`,[e.breakpoints.up("md")]:{margin:0}},category:{width:"100%",userSelect:"none",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.isFlyingFlowers?`${C.YK.small} ${C.YK.medium}`:"14px 20px",borderTop:e.isFlyingFlowers?"none":`1px solid ${C.Tj.grey.grey4}`,backgroundColor:e.isFlyingFlowers?C.Tj.grey.grey1:"initial",marginBottom:e.isFlyingFlowers?C.YK.xs:"initial",borderRadius:e.isFlyingFlowers?"8px":"none",[`.${i.categoryContainer}:last-child &.${i.collapsed}`]:{borderBottom:e.isFlyingFlowers?"none":`1px solid ${C.Tj.grey.grey4}`},[e.breakpoints.up("md")]:{}},expanded:{backgroundColor:e.isFlyingFlowers?C.Tj.grey.grey2:C.Tj.grey.grey1},collapsed:{},button:{padding:C.YK.xs,border:`1px solid ${e.isFlyingFlowers?C.Tj.wildExotic[400]:C.Tj.grey.grey7}`,borderRadius:"50%","& .material-icons":{color:e.isFlyingFlowers?C.Tj.wildExotic[400]:C.Tj.grey.grey7,fontSize:"14px"},backgroundColor:e.isFlyingFlowers?C.Tj.supplementary.white:"initial"},products:{},product:{marginBottom:C.YK.medium,"&:first-child":{marginTop:C.YK.medium}},categoryName:Object.assign(Object.assign({color:C.Tj.grey.grey7},e.isFlyingFlowers?e.typography.small_bold:e.typography.small_regular),e.typographySpacing.none),topPickedProductContainer:{padding:C.YK.medium,margin:`0 -${C.YK.small} ${C.YK.large} -${C.YK.small}`,[e.breakpoints.up("md")]:{padding:C.YK.large,margin:`0 -${C.YK.large} ${C.YK.large} -${C.YK.large}`},"& > div":{margin:0}},topPickTitle:Object.assign(Object.assign(Object.assign({},e.typography.medium_bold),e.typographySpacing.medium_bold_sm),{textAlign:e.isFlyingFlowers?"center":"left",[e.breakpoints.up("md")]:Object.assign(Object.assign({},e.typography.large_bold),e.typographySpacing.large_bold_sm)}),continueButton:{marginBottom:"40px",[e.breakpoints.up("md")]:{marginBottom:C.YK.xxl}},topCheckoutButton:{marginTop:C.YK.xs,[e.breakpoints.up("md")]:{marginTop:C.YK.large}}
1,adjustMargin:{marginBottom:0,padding:"0 20px",[e.breakpoints.up("md")]:{marginBottom:C.YK.xs,padding:0}},headingColor:{color:(null==t?void 0:t.headingColor)&&`${C.Tj.genericContentHeading[null==t?void 0:t.headingColor]}`}})),Y=e=>{var t;let{classes:i}=O({}),{productGroup:a,setFinishingTouchQuantity:o,quantities:s,isMaxQuantity:r,isExpandItem:l,isDisplayCategory:d}=e,[p,u]=(0,c.useState)(d||l);return(0,n.jsxs)("div",{className:i.categoryContainer,children:[!d&&(0,n.jsx)("div",{"data-testid":a.categoryName,children:(0,n.jsxs)("button",{onClick:()=>u(e=>!e),className:(0,g.A)(i.category,p?i.expanded:i.collapsed),children:[(0,n.jsx)("span",{className:i.categoryName,children:a.categoryName}),(0,n.jsx)(N.A,{icon:p?"close":"expand_more",ariaLabel:p?"close category":"expand category",className:i.button})]})}),(0,n.jsx)(b.A,{in:p,className:(0,g.A)(i.products,p?i.adjustMargin:""),children:null==(t=a.products)?void 0:t.map(e=>{var t;return(0,n.jsx)(_,{product:e,setFinishingTouchQuantity:o,quantity:(null==(t=s.find(t=>t.sku===e.sku))?void 0:t.quantity)||0,className:i.product,isMaxQuantity:r},e.sku)})})]})},K=e=>{var t,i,a,o,s,r,l,d,y,h;let x,b,F,f,{isFlyingFlowers:k,occasions:v}=(0,c.useContext)(p.Z0),{productGroups:T,setFinishingTouchQuantity:C,handleContinue:A,quantities:B,isMaxQuantity:N,finishingTouchOccasion:K}=e,$=null==T?void 0:T.filter(e=>!!e.products.length).some(e=>{var t;return null==(t=null==e?void 0:e.categoryName)?void 0:t.includes("Funeral")}),I=null==v?void 0:v.find(e=>{var t;return(null==(t=e.occasionOnFTPage)?void 0:t.isIncludeInFinishingTouchPage)&&e.label===K}),S=I&&(null==(t=T[0])?void 0:t.products[0]),q=T.map(e=>Object.assign(Object.assign({},e),{products:e.products.filter(e=>e!==S)})),{largeBackgroundColor:M,headingColor:L}=(b=null==(r=null==(s=null==(x=null==I?void 0:I.occasionOnFTPage)?void 0:x.backgroundAndTextColours)?void 0:s[0])?void 0:r.backgroundColour,F=null==(d=null==(l=null==x?void 0:x.backgroundAndTextColours)?void 0:l[0])?void 0:d.textColour,b&&F?{largeBackgroundColor:b,headingColor:F}:{largeBackgroundColor:"",headingColor:""}),P=(f=null==I?void 0:I.occasionOnFTPage,k?(null==f?void 0:f.ffBackgroundColour)||"#FADBE2":M||((null==(h=null==(y=null==f?void 0:f.backgroundAndTextColours)?void 0:y[0])?void 0:h.backgroundColour)?"#E9CBFF":"LILAC")),{textColor:Q,backgroundColor:E}=(0,w.aH)(P,"#FFFFFF"),D=null==K?void 0:K.toLowerCase(),W="sympathy"===D||"funeral"===D,{classes:R}=O({headingColor:L}),z=(()=>{if($)return"Add something extra to your tribute";let e=W||!D,t="other"===D?"":`${D} `;return k?e?"Would you like to add an extra treat?":`Add an extra ${t} treat`:e?"Make your gift extra special":`Make your ${t}gift even more special`})();return(0,n.jsxs)("div",{className:R.container,children:[(0,n.jsx)(m.A,{title:"Continue to checkout",variant:(0,j.eM)("Continue to checkout"),onClick:()=>A(),fullWidth:!0,thin:!0,icon:k?"shopping_basket":"",className:R.topCheckoutButton}),!!(null==T?void 0:T.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:R.textLine,children:(0,n.jsx)("span",{className:R.textLineContent,children:"OR"})}),(0,n.jsx)("h1",{children:z}),(0,n.jsx)("p",{children:"Choose a finishing touch from the selection below"}),N&&(0,n.jsx)(u.default,{type:"alertInfo",message:"You have reached the maximum number of items you can add"}),(0,n.jsxs)("div",{className:R.categories,children:[S&&(0,n.jsxs)("div",{className:(0,g.A)(R.topPickedProductContainer),style:{backgroundColor:E,color:Q},children:[(null==(i=null==I?void 0:I.occasionOnFTPage)?void 0:i.heading)&&(0,n.jsx)("h2",{className:(0,g.A)(R.topPickTitle,L&&!k&&R.headingColor),children:I.occasionOnFTPage.heading}),(0,n.jsx)(_,{product:S,setFinishingTouchQuantity:C,quantity:null!=(o=null==(a=B.find(e=>e.sku===S.sku))?void 0:a.quantity)?o:0,className:R.products,isMaxQuantity:N},S.sku)]}),q.filter(e=>!!e.products.length).map((e,t)=>(0,n.jsx)(Y,{productGroup:e,setFinishingTouchQuantity:C,quantities:B,isMaxQuantity:N,isExpandItem:T.length>0&&0===t,isDisplayCategory:1===T.length},e.categoryName))]}),(0,n.jsx)(m.A,{title:"Continue to checkout",variant:(0,j.eM)("Continue to checkout"),onClick:()=>A(),fullWidth:!0,thin:!0,icon:k?"shopping_basket":"",className:R.continueButton})]})]})};var $=i(84380),I=i(34775),S=i(50350),q=i(81278);let M=(e,t,i)=>e.consignments.find(e=>e.items.find(e=>e.lineItem.id===t))?.items.find(e=>e.lineItem.id===t)?.finishingTouchLineItems.find(e=>e.sku===i),L=()=>{let e=(0,q.useRouter)(),t=e.query.id,[i,a]=(0,c.useState)(),o=(0,c.useContext)(I.A),s=(0,l.I)(S.TP,{variables:{input:t},skip:!t,onCompleted:t=>{t.finishingTouches?.length||e.replace("/basket").catch(e=>{console.error("Failed to navigate to /basket:",e)})}}),r=(0,l.I)(S.si,{fetchPolicy:"no-cache",onCompleted:t=>{t.cart?.consignments?a((0,$.m)(t.cart)):e.replace("/basket").catch(e=>{console.error("Failed to navigate to /basket:",e)})},ssr:!1}),[g]=(0,d.n)(S.b0,{onCompleted:e=>a((0,$.m)(e.setFinishingTouchQuantity))}),p=async(e,n)=>{let s=t?.toString(),r=s&&M(i,s,n),l=await g({variables:{input:{sku:n,quantity:e,parentLineItemId:s}}});if(a(l.data.setFinishingTouchQuantity?(0,$.m)(l.data.setFinishingTouchQuantity):null),r&&r.quantity>e&&o.removeFromCart(l.data.setFinishingTouchQuantity.id,r,r.quantity-e),r&&r.quantity<e&&o.addToCart(l.data.setFinishingTouchQuantity.id,r,e-r.quantity),!r&&e){let e=s&&M(l.data.setFinishingTouchQuantity,s,n);e&&o.addToCart(l.data.setFinishingTouchQuantity.id,e)}},u=(0,c.useMemo)(()=>i?.consignments?.find(e=>e.items.some(e=>e.lineItem.id===t))?.items.find(e=>e.lineItem.id===t)?.finishingTouchLineItems?.map(e=>({sku:e.sku,quantity:e.quantity}))||[],[i,t]),m=(0,c.useMemo)(()=>i?.consignments?.find(e=>e.items.find(e=>e.lineItem.id===t))?.isMaxQuantity,[i,t]),y=(0,c.useMemo)(()=>i?.consignments?.find(e=>e.items.some(e=>e.lineItem.id===t))?.items.find(e=>e.lineItem.id===t)?.lineItem.occasion||"",[i,t]);return s.loading||!s.data?.finishingTouches?.length||r.loading?null:(0,n.jsx)(K,{productGroups:s.data?.finishingTouches,handleContinue:()=>{e.push("/basket")},setFinishingTouchQuantity:p,quantities:u,isMaxQuantity:m,finishingTouchOccasion:y})};var P=!0;let Q=e=>(0,n.jsx)(o.A,{renderGraph:e,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.A,{}),(0,n.jsx)(a.A,{centreContent:"small",children:(0,n.jsx)(L,{})}),(0,n.jsx)(r.A,{})]})})},87861:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(6029),a=i(77957),o=i(80575),s=i(13939);let r=(0,o.n9)()(e=>({footer:{background:`linear-gradient(${s.Tj.supplementary.white} ${e.isFlyingFlowers?51:54}px, ${s.Tj.grey.grey1} ${e.isFlyingFlowers?51:54}px, ${s.Tj.grey.grey1} 100%)`,paddingBottom:"70px",[e.breakpoints.up("md")]:{background:`linear-gradient(${s.Tj.supplementary.white} ${e.isFlyingFlowers?59:90}px, ${s.Tj.grey.grey1} ${e.isFlyingFlowers?59:90}px, ${s.Tj.grey.grey1} 100%)`,paddingBottom:"98px"}},logo:{margin:"0 auto",width:"100%",maxWidth:e.isFlyingFlowers?"334px":"108px",[e.breakpoints.up("md")]:{width:e.isFlyingFlowers?"386px":"176px",maxWidth:e.isFlyingFlowers?"386px":"176px"}}})),l=()=>{let{classes:e}=r();return(0,n.jsx)("footer",{id:"footer",className:e.footer,"data-hj-ignore-attributes":!0,children:(0,n.jsx)(a.A,{className:e.logo,isFooter:!0})})}}},e=>{e.O(0,[988,6165,3500,3172,8671,1295,5479,9533,4380,1589,636,6593,8792],()=>e(e.s=10549)),_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.