1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2600],{1198:(e,t,r)=>{"use strict";r.d(t,{g:()=>l});var n=r(6029),o=r(7105);r(5729);let i={light:{base:o.Q1.Secondary_400,hover:o.Q1.Secondary_700,focused:o.Q1.Secondary_800,visited:o.Q1.Secondary_900,disabled:o.Q1.NeutralGrey_200},dark:{base:o.Q1.White,hover:o.Q1.Secondary_50,focused:o.Q1.Secondary_100,visited:o.Q1.Secondary_200,disabled:o.Q1.White}},l=(0,o.eO)(e=>{let{backgroundStyle:t,...r}=e;return(0,n.jsx)(o.N_,{...r})},(e,t)=>{let r=i[t.backgroundStyle||"light"]||i.light;return{"&&":{'& *[class*="Link1"], & span, & a, & button, & *':{color:"".concat(e.color(r.base)," !important"),boxShadow:"0 1px 0 0 ".concat(e.color(r.base)," !important")}},"&&:hover":{'& *[class*="Link1"], & span, & a, & button, & *':{color:"".concat(e.color(r.hover)," !important"),boxShadow:"0 1px 0 0 ".concat(e.color(r.hover)," !important")}},"&&:active":{'& *[class*="Link1"], & span, & a, & button, & *':{color:"".concat(e.color(r.focused)," !important")}},"&&:focus":{'& *[class*="Link1"], & span, & a, & button, & *':{color:"".concat(e.color(r.focused)," !important"),boxShadow:"0 0 0 3px ".concat(e.color(r.focused)," !important")}},"&:visited, &:visited *, & a:visited, & a:visited *":{color:"".concat(e.color(r.visited)," !important"),boxShadow:"0 0 0 3px ".concat(e.color(r.visited)," !important")},'&&[aria-disabled="true"]':{opacity:"dark"===t.backgroundStyle?"0.48 !important":"1 !important",'& *[class*="Link1"], & span, & a, & button, & *':{color:"".concat(e.color(r.disabled)," !important"),boxShadow:"0 1px 0 0 ".concat(e.color(r.disabled)," !important")}}}})},1415:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(7105);function o(e){let{theme:t}=(0,n.DP)();return t.tokens.typographyDefaults[e]}},1588:(e,t,r)=>{"use strict";r.d(t,{XA:()=>x,dM:()=>d,iI:()=>u,mA:()=>a,tt:()=>s});var n=r(3802);function o(e){return"".concat(e," ").concat(1===e?"month":"months")}let i={box:e=>e.fromBox===e.toBox?"off the ".concat((0,n.b)(e.fromBox)," box"):"off the ".concat((0,n.b)(e.fromBox),"-").concat((0,n.b)(e.toBox)," boxes"),time:e=>"off their first ".concat(o(e.durationMonths))},l={box:e=>e.fromBox===e.toBox?"".concat((0,n.b)(e.fromBox)," box"):"".concat((0,n.b)(e.fromBox),"-").concat((0,n.b)(e.toBox)," box"),time:e=>"first ".concat(o(e.durationMonths))};function s(e){return i[e.kind](e)}function a(e){return l[e.kind](e)}function c(e){return(null==e?void 0:e.kind)==="box"&&"string"==typeof e.percentage&&Number.isInteger(e.fromBox)&&Number.isInteger(e.toBox)}function d(e){if(!e||3!==e.length)return!1;let[t,r,n]=e;return c(t)&&c(r)&&(c(n)||(null==n?void 0:n.kind)==="time"&&"string"==typeof n.percentage&&Number.isInteger(n.durationMonths))}function u(e){return"time"===e.kind?"off all other boxes in their first ".concat(o(e.durationMonths)):s(e)}function x(e){let[t,r,n]=e;return"".concat(t.percentage," off their first box, ").concat(r.percentage," off their second box and ").concat(n.percentage," ").concat(u(n))}},3766:(e,t,r)=>{"use strict";r.d(t,{M:()=>n,m:()=>o});let n=["1 / span 12","1 / span 12","3 / span 8"],o=["1 / span 12","1 / span 12","4 / span 6"]},3802:(e,t,r)=>{"use strict";r.d(t,{b:()=>o});var n=r(5296);function o(e){return"".concat(e).concat((0,n.R)(e))}},4608:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-gousto/free-food",function(){return r(6897)}])},4706:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var n=r(6029),o=r(7105),i=r(5729);let l=(0,o.eO)("button",()=>({cursor:"pointer",marginLeft:"auto",background:"none",border:"none",padding:0,display:"flex",alignItems:"center"})),s={error:{bg:o.Q1.Error_50,borderColor:o.Q1.Error_200,defaultIconName:"error",iconColor:o.Q1.Error_900},success:{bg:o.Q1.Success_50,borderColor:o.Q1.Success_900,defaultIconName:"success",iconColor:o.Q1.Success_900},info:{bg:o.Q1.Informative_50,borderColor:o.Q1.Informative_200,defaultIconName:"info",iconColor:o.Q1.Informative_900},warning:{bg:o.Q1.Warning_50,borderColor:o.Q1.Warning_100,defaultIconName:"warning",iconColor:o.Q1.Warning_900}};function a(e){let{state:t,children:r,dismissible:a=!0,iconName:c,announcementRole:d="alert",...u}=e,[x,h]=(0,i.useState)(!0);return x?(0,n.jsxs)(o.az,{"data-testid":"notification-".concat(null!=c?c:s[t].defaultIconName),bg:s[t].bg,borderColor:s[t].borderColor,borderWidth:.5,borderStyle:o.kD.Solid,paddingH:[4,null,3],paddingV:[4,null,3],width:"100%",borderRadius:1.5,role:d,"aria-live":"alert"===d?"assertive":"polite",display:o.nl.Flex,gap:2,...u,children:[(0,n.jsx)(o.az,{display:o.nl.Flex,color:s[t].iconColor,children:(0,n.jsx)(o.In,{name:null!=c?c:s[t].defaultIconName,variant:o.lK.Inherit})}),"string"==typeof r?(0,n.jsx)(o.cR,{display:o.nl.Flex,children:r}):(0,n.jsx)(o.az,{children:r}),a?(0,n.jsx)(l,{type:"button","aria-label":"Dismiss notification",onClick:()=>h(!1),"data-testid":"notification-".concat(null!=c?c:s[t].defaultIconName,"-close"),children:(0,n.jsx)(o.In,{name:"close",variant:o.lK.Default,color:o.Q1.Warning_900})}):null]}):null}},4934:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var n=r(6029),o=r(7105),i=r(5729),l=r(4706);function s(e){let[t,r]=(0,i.useState)(null),s=async e=>{try{await navigator.clipboard.writeText(e),r(!0)}catch(e){r(!1)}finally{setTimeout(()=>{r(null)},1500)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.az,{display:o.nl.Flex,flexDirection:o.bo.Row,gap:2,children:[!e.buttonOnly&&(0,n.jsx)(o.az,{flexGrow:1,display:[o.nl.None,o.nl.None,o.nl.Block,o.nl.Block],children:(0,n.jsx)(o.pd,{id:"referral-link","data-testid":"referral-link","aria-label":"Referral link",value:e.referralLink,readOnly:!0})}),(0,n.jsx)(o.$n,{"data-testid":"referral-link-copy-button",onClick:()=>{try{var t;null==(t=e.onCopyClick)||t.call(e)}catch(e){console.error("RAF share analytics callback failed:",e)}return s(e.referralLink)},width:e.buttonOnly?"100%":["100%","100%","fit-content","fit-content"],
1children:e.buttonOnly?"Copy referral link":"Copy link"})]}),(0,n.jsx)(o.az,{width:"100%",display:o.nl.Flex,justifyContent:[o.A9.Center,o.A9.Center,o.A9.FlexEnd,o.A9.FlexEnd],children:(0,n.jsxs)(o.az,{width:"fit-content",children:[!0===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.$x,{size:4}),(0,n.jsx)(l.E,{state:"success",announcementRole:"status",children:(0,n.jsx)(o.yN,{children:"Your link has been copied"})})]}),!1===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.$x,{size:4}),(0,n.jsx)(l.E,{state:"error",announcementRole:"alert",children:(0,n.jsx)(o.yN,{children:"The link could not be copied"})})]})]})})]})}},5245:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n,z:()=>o});let n="#d0aa46",o="#516272"},5296:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});let n=e=>{let t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}},5824:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={src:"/_next/static/media/box-with-hearts-mobile.89178408.svg",height:112,width:65,blurWidth:0,blurHeight:0}},6575:(e,t,r)=>{"use strict";r.d(t,{AF:()=>h,NJ:()=>d,lh:()=>u});var n=r(3270),o=r(305);r(312);var i=r(5296);let l=n.OP.of("Europe/Dublin"),s=n.kC.ofPattern("MMMM d").withLocale(o.h.ENGLISH),a=n.kC.ofPattern("dd/MM/yy").withLocale(o.h.ENGLISH),c=n.kC.ofPattern("dd/MM").withLocale(o.h.ENGLISH);function d(e){let t=x(e),r=t.format(s),n=t.dayOfMonth();return"".concat(r).concat((0,i.R)(n))}function u(e){return x(e).format(a)}function x(e){return n.MW.parse(e).atZone(l)}function h(e){try{return n.yc.parse(e).format(c)}catch(e){return}}},6897:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>L,default:()=>H});var n=r(6029),o=r(5729),i=r(3270),l=r(7105),s=r(5506),a=r(3345),c=r(5186),d=r(8588),u=r.n(d);let x={src:"/_next/static/media/box-with-hearts-base.ed00c501.svg",height:96,width:130,blurWidth:0,blurHeight:0},h={src:"/_next/static/media/box-with-hearts-pulse.092af277.svg",height:139,width:188,blurWidth:0,blurHeight:0};var f=r(3766),p=r(4934),g=r(8262),b=r(1198);let j={days:0,hours:0,minutes:0,seconds:0,hasEnded:!1};var C=r(5245);let y=(0,l.eO)(l.az,()=>({backgroundColor:C.Z,borderRadius:"4px"})),m=o.memo(function(e){let{label:t,value:r}=e;return(0,n.jsxs)(l.az,{role:"group","aria-label":t,flexGrow:1,paddingH:2,display:l.nl.Flex,alignItems:l.k2.Center,justifyContent:l.A9.Center,flexDirection:l.bo.Column,children:[(0,n.jsx)(l.$x,{size:2}),(0,n.jsx)(l._B,{color:l.Q1.ColdGrey_800,textAlign:l.nO.Center,children:r}),(0,n.jsx)(l.jz,{color:l.Q1.ColdGrey_800,textAlign:l.nO.Center,children:t}),(0,n.jsx)(l.$x,{size:2})]})}),k=o.memo(function(){return(0,n.jsx)(l.az,{"aria-hidden":"true",height:"50px",display:l.nl.Flex,alignItems:l.k2.Stretch,children:(0,n.jsx)(l.cG,{direction:"vertical",color:l.Q1.ColdGrey_800})})});
1function v(e){let t=function(e){let{enabled:t,endDateTime:r}=e,n=null==r?void 0:r.toEpochMilli(),[i,l]=(0,o.useState)(j);return(0,o.useEffect)(()=>{let e;if(!t||void 0===n)return void l(j);let r=()=>{let t=function(e){let t=e-Date.now();return t<=0?{...j,hasEnded:!0}:{...function(e){let t=Math.floor(e/1e3);return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}(t),hasEnded:!1}}(n);l(t),t.hasEnded||(e=setTimeout(r,1e3))};return r(),()=>{e&&clearTimeout(e)}},[t,n]),i}({enabled:!0,endDateTime:e.endDateTime});return o.useEffect(()=>{if(!t.hasEnded)return;let e=window.setTimeout(()=>{window.location.reload()},1e3);return()=>window.clearTimeout(e)},[t.hasEnded]),(0,n.jsxs)(l.az,{"data-testid":"pulse-countdown",role:"status","aria-live":"polite",paddingH:2,children:[(0,n.jsx)(l.$x,{size:2}),(0,n.jsx)(l.cR,{color:l.Q1.White,textAlign:l.nO.Center,fontWeight:l.IT.Bold,children:"Offer ends in:"}),(0,n.jsx)(l.$x,{size:3}),(0,n.jsx)(y,{width:"100%",children:(0,n.jsxs)(l.az,{display:l.nl.Flex,alignItems:l.k2.Center,children:[(0,n.jsx)(m,{label:"Days",value:t.days}),(0,n.jsx)(k,{}),(0,n.jsx)(m,{label:"Hours",value:t.hours}),(0,n.jsx)(k,{}),(0,n.jsx)(m,{label:"Minutes",value:t.minutes}),(0,n.jsx)(k,{}),(0,n.jsx)(m,{label:"Seconds",value:t.seconds})]})}),(0,n.jsx)(l.$x,{size:2})]})}let z=(0,l.eO)(l.az,(e,t)=>({backgroundColor:t.cardBg?t.cardBg:e.color(l.Q1.NeutralGrey_50),borderRadius:"16px"}),{omitProps:["cardBg"]}),w=(0,l.eO)(l.az,(e,t)=>({backgroundColor:t.stepNumberBackground,transform:"translateY(-50%) translateX(25%)"}),{omitProps:["stepNumberBackground"]});function B(e){let{stepNumber:t,bg:r,stepNumberBackground:o=l.Q1.White,children:i}=e;return(0,n.jsx)(l.fv,{size:[12,null,4],children:(0,n.jsxs)(z,{cardBg:r,position:l.Ys.Relative,height:"100%",paddingV:6,paddingH:6,boxShadow:"2px 4px 8px 0px rgba(0, 0, 0, 0.06)",children:[(0,n.jsx)(w,{stepNumberBackground:o,display:l.nl.Flex,position:l.Ys.Absolute,alignItems:l.k2.Center,justifyContent:l.A9.Center,top:"0",left:"0",width:"2rem",height:"2rem",borderRadius:"round",children:(0,n.jsx)(l.cR,{fontWeight:l.IT.Bold,color:l.Q1.ColdGrey_800,children:t})}),i]})})}let D=(0,l.eO)(l.az,()=>({borderRadius:"4px",boxShadow:"0 2px 4px rgba(0,0,0,0.45)"}));function S(e){var t;let{title:r,value:o,description:i,children:s,backgroundColor:a=l.Q1.ColdGrey_800,textColor:c=l.Q1.ColdGrey_800}=e,{theme:d}=(0,l.DP)();return(0,n.jsxs)(D,{width:["100%","100%","100%","48%"],paddingH:[2,2,4,4],paddingV:[3,3,4,4],style:{backgroundColor:null!=(t=d.color(a))?t:C.Z},children:[(0,n.jsx)(l.jz,{size:6,textAlign:l.nO.Center,fontWeight:l.IT.Bold,color:c,children:r}),(0,n.jsx)(l.$x,{size:1}),s||(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.jz,{size:10,fontWeight:l.IT.Bold,textAlign:l.nO.Center,color:c,children:o}),(0,n.jsx)(l.$x,{size:1}),(0,n.jsx)(l.qb,{textAlign:l.nO.Center,color:c,fontWeight:l.IT.Bold,children:i})]})]})}var _=r(1588);function I(e){let{bgColor:t,children:r,...o}=e,{theme:i}=(0,l.DP)(),{h3:s}=i.tokens.typographyDefaults;return(0,n.jsx)(l.az,{...o,bg:t,height:["72px","72px","96px","96px"],width:["72px","72px","96px","96px"],display:l.nl.Flex,alignItems:l.k2.Center,justifyContent:l.A9.Center,flexDirection:l.bo.Column,children:(0,n.jsx)(l.cR,{size:s.size,fontWeight:l.IT.Bold,color:l.Q1.White,children:r})})}function Q(e){let{bgColor:t,children:r,...o}=e;return(0,n.jsx)(l.az,{...o,display:l.nl.Flex,alignItems:l.k2.Center,justifyContent:l.A9.Center,flexDirection:l.bo.Column,style:{backgroundColor:t,...o.style},children:(0,n.jsx)(l.cR,{size:10,fontWeight:l.IT.Bold,color:l.Q1.White,children:r})})}function A(e){let{theme:t}=(0,l.DP)(),r=(0,_.dM)(e.discountSteps)?e.discountSteps:void 0;if(r){let o="pulse"===e.variant?{title:"",titleColor:l.Q1.ColdGrey_800,labelColor:l.Q1.ColdGrey_800,stepValueColors:[C.z,C.z,C.z]}:{title:"",titleColor:l.Q1.White,labelColor:l.Q1.White,stepValueColors:[l.Q1.Primary_600,l.Q1.ColdGrey_600,l.Q1.ColdGrey_600]};return(0,n.jsxs)(l.az,{display:l.nl.Flex,flexDirection:l.bo.Column,justifyContent:l.A9.SpaceBetween,children:[o.title?(0,n.jsx)(l.jz,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,color:o.titleColor,children:o.title}):null,(0,n.jsx)(l.az,{display:l.nl.Flex,flexDirection:l.bo.Row,justifyContent:l.A9.Center,alignItems:l.k2.FlexStart,gap:[2,2,3,3],children:r.map((r,i)=>(0,n.jsx)(l.az,{display:l.nl.Flex,flexDirection:l.bo.Column,alignItems:l.k2.Center,gap:1,children:(0,n.jsxs)(l.az,{maxWidth:"90px",children:[(0,n.jsx)(Q,{bgColor:"pulse"===e.variant?o.stepValueColors[i]:t.color(o.stepValueColors[i]),height:"52px",paddingH:2,paddingV:2,borderRadius:1.5,"data-testid":"discount-step-".concat(i),children:r.percentage}),(0,n.jsx)(l.$x,{size:2}),(0,n.jsx)(l.qb,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,color:o.labelColor,"data-testid":"discount-step-label-".concat(i),children:(0,_.tt)(r)})]})},i))})]})}return(0,n.jsxs)(l.az,{display:l.nl.Flex,flexDirection:l.bo.Column,justifyContent:l.A9.SpaceBetween,children:[(0,n.jsx)(l.jz,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,children:"Your friends get"}),(0,n.jsxs)(l.az,{display:l.nl.Flex,position:l.Ys.Relative,flexDirection:l.bo.Row,justifyContent:l.A9.Center,alignItems:l.k2.Center,gap:[2,2,4,4],children:[(0,n.jsxs)(I,{bgColor:l.Q1.ColdGrey_800,"data-testid":"first-delivery-discount-percentage",children:[e.firstDeliveryDiscountPercentage,(0,n.jsx)("br",{})," OFF"]}),(0,n.jsx)(l.az,{width:"32px",height:"32px",bg:l.Q1.White,display:l.nl.Flex,alignItems:l.k2.Center,justifyContent:l.A9.Center,flexDirection:l.bo.Column,position:l.Ys.Absolute,style:{transform:"translate(-50%, -50%)"},left:"50%",top:"50%","aria-hidden":"true",children:(0,n.jsx)(l.In,{name:"add"})}),(0,n.jsxs)(I,{bgColor:l.Q1.ColdGrey_600,"data-testid":"subsequent-delivery-discount-percentage",children:[e.secondDeliveryDiscountPercentage,(0,n.jsx)("br",{})," OFF"]})]}),(0,n.jsxs)(l.az,{display:l.nl.Flex,justifyContent:l.A9.SpaceBetween,children:[(0,n.jsxs)(l.jz,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,children:["their first",(0,n.jsx)("br",{}),"box"]}),(0,n.jsxs)(l.jz,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,"data-testid":"discount-delivery-count",children:["their next ",e.applicableForNumberOfDeliveries,(0,n.jsx)("br",{}),"boxes"]})]})]})}var T=r(6575);let F=(0,l.eO)(l.az,e=>({position:l.Ys.Absolute,zIndex:1,left:"50%",width:"32px",height:"32px",display:l.nl.Flex,alignItems:l.k2.Center,justifyContent:l.A9.Center,color:l.Q1.White,boxShadow:"0 2px 4px rgba(0,0,0,0.45)",transform:"translate(-50%, -50%)",...e.radius("round"),...e.responsiveStyle(["44%","44%","44%","50%"],["top"])}));function N(e){let{variant:t}=e,r=(0,_.dM)(e.discountSteps)?e.discountSteps:void 0,o="base"===t?{pageBackgroun
1d:l.Q1.ColdGrey_50,titleColor:l.Q1.ColdGrey_800,sectionHeadingColor:l.Q1.ColdGrey_800,youGetCardBackground:l.Q1.Primary_600,rewardCardTextColor:l.Q1.White,friendCardBackground:l.Q1.ColdGrey_800,friendDiscountTitleColor:l.Q1.White,plusCircleBackground:l.Q1.ColdGrey_200,referralStepBackground:l.Q1.White,referralStepBadgeBackground:l.Q1.ColdGrey_100,referralStepTextColor:l.Q1.ColdGrey_800,linkBackgroundStyle:void 0,heroIcon:x}:{pageBackground:l.Q1.ColdGrey_800,titleColor:l.Q1.White,sectionHeadingColor:l.Q1.White,youGetCardBackground:C.Z,rewardCardTextColor:l.Q1.ColdGrey_800,friendCardBackground:C.Z,friendDiscountTitleColor:l.Q1.ColdGrey_800,plusCircleBackground:C.z,referralStepBackground:C.z,referralStepBadgeBackground:C.Z,referralStepTextColor:l.Q1.White,linkBackgroundStyle:"dark",heroIcon:h},i="pulse"===t,{theme:s}=(0,l.DP)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(l.az,{bg:o.pageBackground,"data-testid":"free-food-".concat(t,"-layout"),children:[(0,n.jsx)(l.$x,{size:[8,8,10,10]}),(0,n.jsx)(l.xA,{variant:l.yT.Layout,bg:o.pageBackgroun
1d,children:(0,n.jsx)(l.fv,{gridColumn:f.M,children:(0,n.jsxs)(l.rh,{with:(0,n.jsx)(l.$x,{size:[6,6,8,8]}),children:[(0,n.jsx)(l._,{size:10,textAlign:l.nO.Center,color:o.titleColor,children:e.campaignTitle}),(0,n.jsx)(l.az,{display:l.nl.Flex,justifyContent:l.A9.Center,children:(0,n.jsx)(u(),{priority:!0,src:o.heroIcon.src,width:o.heroIcon.width,height:o.heroIcon.height,alt:"Gousto box with hearts"})}),(0,n.jsxs)(l.az,{"data-testid":"free-food-".concat(t,"-rewards"),position:l.Ys.Relative,children:[(0,n.jsxs)(l.az,{display:l.nl.Flex,flexDirection:[l.bo.Column,l.bo.Column,l.bo.Column,l.bo.Row],gap:[3,3,4,4],justifyContent:l.A9.Center,children:[(0,n.jsx)(S,{title:"You get",value:e.creditAmount,description:"credit when they get their first box",backgroundColor:o.youGetCardBackground,textColor:o.rewardCardTextColor}),r?(0,n.jsx)(S,{title:"Your friend gets",backgroundColor:o.friendCardBackground,textColor:o.friendDiscountTitleColor,children:(0,n.jsx)(A,{discountSteps:r,variant:t})}):(0,n.jsx)(S,{title:"Your friend gets",value:e.firstDeliveryDiscountPercentage,description:"off their first box, ".concat(e.secondDeliveryDiscountPercentage," off their next ").concat(e.applicableForNumberOfDeliveries," boxes"),backgroundColor:o.friendCardBackground,textColor:o.friendDiscountTitleColor})]}),(0,n.jsx)(F,{"data-testid":"free-food-".concat(t,"-plus-circle"),"aria-hidden":"true",style:{backgroundColor:i?o.plusCircleBackground:s.color(o.plusCircleBackground)},children:(0,n.jsx)(l.In,{name:"add",variant:l.lK.Inherit})})]}),i&&(0,n.jsx)(v,{endDateTime:e.countdownEndDateTime}),(0,n.jsxs)(l.az,{children:[(0,n.jsx)(l.$x,{size:10}),(0,n.jsx)(l.fV,{textAlign:l.nO.Center,color:o.sectionHeadingColor,children:"Share your referral code"}),(0,n.jsx)(l.$x,{size:4}),(0,n.jsx)(p.P,{referralLink:e.referralLink,onCopyClick:e.onCopyClick})]})]})})}),(0,n.jsx)(l.$x,{size:8}),(0,n.jsx)(l.az,{"data-testid":"free-food-".concat(t,"-how-it-works"),children:(0,n.jsxs)(l.xA,{variant:l.yT.Layout,rowGap:8,children:[(0,n.jsx)(l.fv,{size:12,justifyItems:l.K8.Center,children:(0,n.jsx)(l.fV,{textAlign:l.nO.Center,color:o.sectionHeadingColor,children:"How it works"})}),(0,n.jsxs)(B,{stepNumber:1,bg:o.referralStepBackground,stepNumberBackground:i?o.referralStepBadgeBackgroun
1d:s.color(o.referralStepBadgeBackground),children:[(0,n.jsx)(l._B,{size:7,color:o.referralStepTextColor,children:"Invite your friends"}),(0,n.jsx)(l.$x,{size:2}),(0,n.jsx)(l.cR,{color:o.referralStepTextColor,children:"Share your unique referral link with friends and family"})]}),(0,n.jsxs)(B,{stepNumber:2,bg:o.referralStepBackground,stepNumberBackground:i?o.referralStepBadgeBackground:s.color(o.referralStepBadgeBackground),children:[(0,n.jsx)(l._B,{size:7,color:o.referralStepTextColor,children:"Your friend signs up and picks their first box"}),(0,n.jsx)(l.$x,{size:2}),(0,n.jsx)(l.cR,{color:o.referralStepTextColor,children:"They'll get ".concat(r?(0,_.XA)(r):"".concat(e.firstDeliveryDiscountPercentage," off their first box and ").concat(e.secondDeliveryDiscountPercentage," off their next ").concat(e.applicableForNumberOfDeliveries," boxes"))})]}),(0,n.jsxs)(B,{stepNumber:3,bg:o.referralStepBackground,stepNumberBackground:i?o.referralStepBadgeBackground:s.color(o.referralStepBadgeBackground),children:[(0,n.jsx)(l._B,{size:7,color:o.referralStepTextColor,children:"You get rewarded"}),(0,n.jsx)(l.$x,{size:2}),(0,n.jsxs)(l.cR,{color:o.referralStepTextColor,children:["Your ".concat(e.creditAmount," credit will be automatically applied to your account once your friend's first box is delivered. See full T&Cs "),(0,n.jsx)(g.E,{href:"/terms-and-conditions",children:(0,n.jsx)(b.g,{backgroundStyle:o.linkBackgroundStyle,children:"here"})})]})]}),i&&e.legalDisclaimer&&e.endDate&&(0,n.jsxs)(l.fv,{size:12,justifyItems:l.K8.Center,children:[(0,n.jsx)(l.$x,{size:1}),(0,n.jsx)(l.jz,{color:l.Q1.White,children:e.legalDisclaimer((0,T.lh)(e.endDate))})]})]})}),(0,n.jsx)(l.$x,{size:[8,8,10,10]})]})})}let W={src:"/_next/static/media/box-with-hearts-desktop-2.13bd9330.svg",height:142,width:231};var O=r(5824),G=r(1415),P=r(6606);function R(e){return(0,n.jsxs)(l.az,{gap:5,display:l.nl.Flex,flexDirection:l.bo.Column,justifyContent:l.A9.Center,alignItems:l.k2.Center,children:[(0,n.jsx)(l.jz,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,children:"You get"}),(0,n.jsxs)(l.az,{borderRadius:"round",bg:l.Q1.Primary_600,height:["144px","144px","160px","160px"],width:["144px","144px","160px","160px"],display:l.nl.Flex,alignItems:l.k2.Center,justifyContent:l.A9.Center,flexDirection:l.bo.Column,gap:1,"data-testid":"credit-amount",children:[(0,n.jsx)(l.cR,{fontWeight:l.IT.Bold,color:l.Q1.White,style:{fontSize:"44px",lineHeight:"48px"},children:e.creditAmount}),(0,n.jsx)(l.jz,{fontWeight:l.IT.Bold,color:l.Q1.White,children:"credit"})]}),(0,n.jsxs)(l.jz,{textAlign:l.nO.Center,fontWeight:l.IT.Bold,children:["towards your",(0,n.jsx)("br",{}),"next box"]})]})}function E(e){let{referralLink:t,creditAmount:r,firstDeliveryDiscountPercentage:o,secondDeliveryDiscountPercentage:i,applicableForNumberOfDeliveries:s,campaignTitle:a,onCopyClick:c}=e,d=(0,G.X)("h4");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.az,{style:{backgroundImage:"url(/assets/oval.svg)",backgroundRepeat:"no-repeat",backgroundPosition:"center -150px",backgroundSize:"150vw 450px"},bg:l.Q1.ColdGrey_50,children:[(0,n.jsx)(l.$x,{size:12}),(0,n.jsxs)(l.rh,{with:(0,n.jsx)(l.$x,{size:4}),children:[(0,n.jsx)(l.az,{paddingH:4,children:(0,n.jsx)(l._,{textAlign:l.nO.Center,children:a})}),(0,n.jsx)(l.BS,{display:[l.nl.Block,l.nl.Block,l.nl.None,l.nl.None],children:(0,n.jsxs)(l.az,{display:l.nl.Flex,justifyContent:l.A9.Center,children:[(0,n.jsx)(u(),{priority:!0,src:O.A.src,width:O.A.width,height:O.A.height,alt:"Gousto box with hearts"}),(0,n.jsx)(l.$x,{size:2})]})}),(0,n.jsxs)(l.az,{display:l.nl.Flex,flexDirection:l.bo.Row,alignItems:l.k2.Stretch,justifyContent:l.A9.Center,gap:[5,5,10,10],width:"100vw",children:[(0,n.jsxs)(l.az,{alignItems:l.k2.Center,width:"50vw",display:l.nl.Flex,justifyContent:l.A9.FlexEnd,gap:4,children:[(0,n.jsx)(l.BS,{display:[l.nl.None,l.nl.None,l.nl.Block,l.nl.Block],children:(0,n.jsx)(u(),{priority:!0,src:W.src,width:W.width,height:W.height,alt:"Gousto box with hearts"})}),(0,n.jsx)(R,{creditAmount:r})]}),(0,n.jsx)(l.cG,{direction:"vertical"}),(0,n.jsx)(l.az,{width:"50vw",display:l.nl.Flex,justifyContent:l.A9.FlexStart,children:(0,n.jsx)(A,{firstDeliveryDiscountPercentage:o,secondDeliveryDiscountPercentage:i,applicableForNumberOfDeliveries:s})})]}),(0,n.jsx)(l.xA,{variant:l.yT.Layout,bg:l.Q1.White,children:(0,n.jsxs)(l.fv,{gridColumn:f.M,children:[(0,n.jsx)(l.$x,{size:[4,4,8,8]}),(0,n.jsx)(p.P,{referralLink:t,onCopyClick:c})]})})]})]}),(0,n.jsxs)(l.xA,{variant:l.yT.Layout,bg:l.Q1.White,rowGap:8,"data-testid":"referral-steps",children:[(0,n.jsxs)(l.fv,{size:12,justifyItems:l.K8.Center,children:[(0,n.jsx)(l.$x,{size:8}),(0,n.jsx)(l.fV,{children:"How It Works"})]}),(0,n.jsxs)(B,{stepNumber:1,children:[(0,n.jsx)(l._B,{size:d.size,children:"Invite your friends"}),(0,n.jsx)(l.$x,{size:1}),(0,n.jsx)(l.cR,{children:"Share your unique referral link with friends and family"})]}),(0,n.jsxs)(B,{stepNumber:2,children:[(0,n.jsx)(l._B,{size:d.size,children:"Your friend signs up and picks their first box"}),(0,n.jsx)(l.$x,{size:1}),(0,n.jsx)(l.cR,{children:"Theyâll get ".concat(o," off their first box and ").concat(i," off their next ").concat(s," boxes")})]}),(0,n.jsxs)(B,{stepNumber:3,children:[(0,n.jsx)(l._B,{size:d.size,children:"You get rewarded"}),(0,n.jsx)(l.$x,{size:1}),(0,n.jsxs)(l.cR,{children:["Your ".concat(r," credit will be automatically applied to your account once your friendâs first box is delivered. See full T&Cs "),(0,n.jsx)(g.E,{href:"/terms-and-conditions",children:(0,n.jsx)(P.P,{children:"here"})})," "]})]}),(0,n.jsx)(l.fv,{size:12})]})]})}let M={title:"SHARE THIS LIMITED TIME OFFER",legalDisclaimer:e=>"*New joiner discount valid for sign ups before ".concat(e)},$="Invite your friends to try Gousto!";var L=!0;function H(e){let{referralLink:t,creditAmount:r,firstDeliveryDiscountPercentage:o,secondDeliveryAndBeyondDiscountDetails:d,discountSteps:u,promotionType:x,endDateTime:h}=e.referralDetails,f="pulse"===x,p=(0,_.dM)(u)?u:null,g=!f&&!!p,b=h?i.MW.parse(h):void 0,j=()=>{(0,a.P)(c.K.RAF_SHARE_FREE_FOOD,{})};return(0,n.jsx)(s.Y,{customerLoggedIn:e.customerLoggedIn,features:e.features,bg:l.Q1.White,children:f?(0,n.jsx)(N,{variant:"pulse",referralLink:t,creditAmount:r,firstDeliveryDiscountPercentage:o,secondDeliveryDiscountPercentage:d.discountPercentage,applicableForNumberOfDeliveries:d.applicableForNumberOfDeliveries,discountSteps:null!=p?p:void 0,endDate:h,onCopyClick:j,campaignTitle:M.title,legalDisclaimer:M.legalDisclaimer,countdownEndDateTime:b}):g?(0,n.jsx)(N,{variant:"base",referralLink:t,creditAmount:r,firstDeliveryDiscountPercentage:o,secondDeliveryDiscountPercentage:d.discountPercentage,applicableForNumberOfDeliveries:d.applicableForNumberOfDeliveries,discountSteps:null!=p?p:void 0,onCopyClick:j,campaignTitle:$}):(0,n.jsx)(E,{referralLink:t,creditAmount:r,firstDeliveryDiscountPercentage:o,secondDeliveryDiscountPercentage:d.discountPercentage,applicableForNumberOfDeliveries:d.applicableForNumberOfDeliveries,campaignTitle:$,onCopyClick:j})})}}},e=>{e.O(0,[5096,9641,3268,636,6593,8792],()=>e(e.s=4608)),_N_E=e.O()}]); 2//# sourceMappingURL=free-food-97ffa5529067d441.js.map
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.