1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{338:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ice-cream/[slug]",function(){return l(7666)}])},7666:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return T}});var i=l(5893),r=l(7294),o=l(6038),n=l(6122),a=l(7881),d=l(7838),s=l(5675),u=l.n(s),c=l(7658),m=l(8732),h=l(7851),g=l(4945),v=l(9118),x=l(3609),p=l(6509),f=l(1082),y=l(4794),w=l(6280),j=l(9190),b=l(4725),N=l(8058),S=l(5254),Z=l(7572),z=l(7633),E=l(4435),U=l(9241);let C="radial-gradient(rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%)",k=Math.floor(2*Math.random())+0;var T=!0;t.default=e=>{var t,l,s,T,_,P,q,J,R;let{dessert:L,desserts:I,dessertCollections:M}=e,{settings:B}=(0,z.T5)(),{title:F,description:O,allergens:W,ingredients:D,pagePanels:G,foliageImages:X,nutritionItems:A,isScoop:H}=L,Y=H;null==Y&&(Y=!0);let K=[{title:"Ingredients",description:D,linkButton1:A?{linkType:"link",title:"Nutritional Facts",url:"/"}:void 0}];W&&K.unshift({title:"Allergens",description:W,linkButton1:{linkType:"",title:"",url:""}});let{coneCup:Q,setConeCup:V}=(0,a.BE)(),[$,ee]=(0,r.useState)(!1),et=(null==B?void 0:B.partnersOrderNow)||"#",{transitionStatus:el}=(0,n.rm)(),ei=(0,r.useRef)(null),er=(0,r.useRef)(null),eo=(0,r.useRef)(null),en=(0,r.useRef)(null),ea=(0,r.useRef)(null),ed=(0,r.useRef)(null),es=(0,r.useRef)(null),eu=(0,r.useRef)(null),ec=(0,r.useRef)(null),em=(0,r.useRef)(null),[eh,eg]=(0,r.useState)(0),[ev,ex]=(0,r.useState)([]),[ep,ef]=(0,r.useState)([]),[ey,ew]=(0,r.useState)({x:0,y:0}),[ej,eb]=(0,r.useState)({x:0,y:0});(0,r.useEffect)(()=>(document.addEventListener("mousemove",eS),window.addEventListener("resize",eN),window.addEventListener("load",eN),()=>{document.removeEventListener("mousemove",eS),window.removeEventListener("resize",eN),window.removeEventListener("load",eN)}));let eN=()=>{eb({x:window.innerWidth/2,y:window.innerHeight/2})},eS=e=>{ew({x:e.pageX,y:e.pageY})};(0,r.useEffect)(()=>{let e={x:ey.x-ej.x,y:ey.y-ej.y};o.ZP.matchMedia().add("(min-width: 768px)",()=>{var t,l,i,r,n;let a=null===(t=eo.current)||void 0===t?void 0:t.querySelector(".img-1"),d=null===(l=eo.current)||void 0===l?void 0:l.querySelector(".img-2"),s=null===(i=eo.current)||void 0===i?void 0:i.querySelector(".img-3"),u=null===(r=eo.current)||void 0===r?void 0:r.querySelector(".img-4"),c=null===(n=eo.current)||void 0===n?void 0:n.querySelector(".img-5");if(!a||!d||!s||!u||!c)return;let m=o.ZP.timeline({delay:0,defaults:{duration:1.2}});m.to(a,{x:eU[1]+-(e.x/30),y:eC[1]+-(e.y/30)},"<"),m.to(d,{x:eU[2]+-(e.x/20),y:eC[2]+-(e.y/20)},"<"),m.to(s,{x:eU[3]+-(e.x/30),y:eC[3]+-(e.y/30)},"<"),m.to(u,{x:eU[4]+-(e.x/8),y:eC[4]+-(e.y/8)},"<"),m.to(c,{x:eU[5]+-(e.x/15),y:eC[5]+-(e.y/15)},"<")})},[ey]);let eZ=e=>{let{base:t,range:l}=e;return t+Math.floor(2*l*Math.random()-l)},ez={1:50,2:k?200:250,3:300,4:k?-25:-55,5:100},eE={1:k?600:500,2:150,3:k?450:400,4:k?300:350,5:50},eU={1:k?400:550,2:k?200:100,3:k?-350:-340,4:k?-225:-175,5:500},eC={1:k?-700:-800,2:-950,3:k?-400:-350,4:k?-700:-600,5:k?-200:-300},ek={1:eZ({base:0,range:90}),2:eZ({base:0,range:90}),3:eZ({base:0,range:180}),4:eZ({base:0,range:45}),5:eZ({base:0,range:25})};(0,r.useEffect)(()=>{var e,t,l,i,r;let n=ei.current,a=null===(e=eo.current)||void 0===e?void 0:e.querySelector(".img-1"),d=null===(t=eo.current)||void 0===t?void 0:t.querySelector(".img-2"),s=null===(l=eo.current)||void 0===l?void 0:l.querySelector(".img-3"),u=null===(i=eo.current)||void 0===i?void 0:i.querySelector(".img-4"),c=null===(r=eo.current)||void 0===r?void 0:r.querySelector(".img-5");if(!n||!a||!d||!s||!u||!c)return;let m=o.ZP.matchMedia();return m.add("(min-width: 768px)",()=>{o.ZP.timeline({delay:0,defaults:{duration:1.2}}).fromTo(n,{y:200},{y:-100}).to(a,{y:eC[1],x:eU[1],rotation:ek[1]},"<0.02").to(d,{y:eC[2],x:eU[2],rotation:ek[2]},"<0.01").to(s,{y:eC[3],x:eU[3],rotation:ek[3]},"<0.01").to(u,{y:eC[4],x:eU[4],rotation:ek[4]},"<0.02").to(c,{y:eC[5],x:eU[5],rotation:ek[5]},"<0.02")}),m.add("(max-width: 767px)",()=>{o.ZP.timeline({delay:0,defaults:{duration:1.2}}).to(a,{y:eE[1],x:ez[1],rotation:ek[1]},"<0.02").to(d,{y:eE[2],x:ez[2],rotation:ek[2]},"<0.01").to(s,{y:eE[3],x:ez[3],rotation:ek[3]},"<0.01").to(u,{y:eE[4],x:ez[4],rotation:ek[4]},"<0.02").to(c,{y:eE[5],x:ez[5],rotation:ek[5]},"<0.02")}
1),()=>m.revert()},[X]),(0,r.useEffect)(()=>{let e=o.ZP.context(()=>{if(!el){var e,t,l,i,r;let n=null===(e=eo.current)||void 0===e?void 0:e.querySelector(".img-1"),a=null===(t=eo.current)||void 0===t?void 0:t.querySelector(".img-2"),d=null===(l=eo.current)||void 0===l?void 0:l.querySelector(".img-3"),s=null===(i=eo.current)||void 0===i?void 0:i.querySelector(".img-4"),u=null===(r=eo.current)||void 0===r?void 0:r.querySelector(".img-5");if(!n||!a||!d||!s||!u)return;o.ZP.set([ea.current,es.current],{xPercent:-50,left:0}),o.ZP.to(ed.current,{x:300,opacity:1,lazy:!1,scrollTrigger:{trigger:ed.current,start:"-40px 60%",end:"+=200",scrub:!0}});let c=o.ZP.timeline({lazy:!1,scrollTrigger:{trigger:en.current,start:"top top",end:"bottom ".concat(Y?"40%":"50%"),scrub:.2,pin:!0,invalidateOnRefresh:!0}});c.to(ea.current,{width:Y?280:450,xPercent:-50,left:"50%"},0),c.fromTo(es.current,{opacity:1,y:Y?360:0},{opacity:1,width:300,y:Y?175:0,xPercent:-50,left:"50%"},0),c.to(eu.current,{xPercent:-55},0),c.to(ec.current,{xPercent:65},0),c.fromTo(s,{y:eC[4]},{y:-550},0),c.fromTo(n,{y:eC[1]},{y:-650},0),c.fromTo(d,{y:eC[3]},{y:-300},0),c.fromTo(u,{y:eC[5]},{y:-200},0),c.fromTo(a,{y:eC[2]},{y:-850},0)}});return()=>e.revert()},[el,Y]),(0,r.useEffect)(()=>{"WaffleCone"===Q?eg(0):eg(1)},[Q]);let eT=()=>{"Cup"===Q?V("WaffleCone"):V("Cup")};return(0,r.useEffect)(()=>{(null==X?void 0:X.length)===2?ex([{imageUrl:(0,E.Jn)({image:X[0],width:230,height:230})},{imageUrl:(0,E.Jn)({image:X[1],width:150,height:150})},{imageUrl:(0,E.Jn)({image:X[0],width:200,height:200})},{imageUrl:(0,E.Jn)({image:X[1],width:300,height:300})},{imageUrl:(0,E.Jn)({image:X[0],width:200,height:200})}]):(null==X?void 0:X.length)===1&&ex([{imageUrl:(0,E.Jn)({image:X[0],width:230,height:230})},{imageUrl:(0,E.Jn)({image:X[1],width:150,height:150})},{imageUrl:(0,E.Jn)({image:X[0],width:200,height:200})},{imageUrl:(0,E.Jn)({image:X[1],width:300,height:300})},{imageUrl:(0,E.Jn)({image:X[0],width:200,height:200})}])},[X]),(0,r.useEffect)(()=>{I&&I.length&&(null==L?void 0:L._id)&&ef(I.filter(e=>e._id!==L._id))},[I,L]),(0,r.useEffect)(()=>{(null==L?void 0:L.foregroundColour)&&er.current&&(er.current.style.color=L.foregroundColour)},[L]),(0,i.jsxs)(Z.Z,{children:[(0,i.jsx)(m.Z,{metaTitle:(null==L?void 0:null===(t=L.seo)||void 0===t?void 0:t.title)||F,metaDescription:(null==L?void 0:null===(l=L.seo)||void 0===l?void 0:l.description)||O,openGraphImage:(null==L?void 0:null===(s=L.seo)||void 0===s?void 0:s.image)?(0,E.Jn)({image:null==L?void 0:null===(T=L.seo)||void 0===T?void 0:T.image}):void 0}),(0,i.jsx)(S.Z,{children:(0,i.jsx)(N.Z,{isOpen:$,onClose:()=>ee(!1)})}),(0,i.jsxs)("section",{className:"relative overflow-hidden",children:[(null==L?void 0:L.backgroundColour)?(0,i.jsx)(c.Z,{color:null==L?void 0:L.backgroundColour,hasHover:!1}):null,(0,i.jsx)("div",{ref:eu,className:(0,h.m)("absolute w-[150%] h-[150%]","-top-[75%] -right-[75%]"),style:{backgroundImage:C}}),(0,i.jsx)("div",{ref:ec,className:(0,h.m)("absolute w-[150%] h-[150%]","top-0 -left-[75%]"),style:{backgroundImage:C}}),(0,i.jsxs)("div",{className:"md:min-h-screen pin-spacer-wrapper",children:[(0,i.jsx)("div",{className:"relative md:absolute top-0 left-0 pt-36 md:pt-0 w-full md:h-screen flex justify-center items-center bottom-0 z-30",children:(0,i.jsxs)("div",{ref:eo,children:[(0,i.jsx)("div",{ref:ei,className:"mb-20 z-10 relative",children:(0,i.jsx)(v.Z,{as:"h1",className:"max-w-[1200px] mx-auto text-center z-30",ref:er,children:F})}),(0,i.jsxs)("div",{className:"flex flex-col items-center md:hidden space-y-8",children:[Y&&(0,i.jsx)(f.Z,{onSwitch:eT,labels:["Cone","Cup"],current:!!eh,theme:"dark"}),(0,i.jsxs)("div",{className:"px-6 w-[400px] md:w-auto",children:[(null==L?void 0:L.foregroundImage)&&(0,i.jsx)(d.Z,{ref:ea,className:"z-10 mx-auto",image:(null==L?void 0:L.foregroundImage)||"",alt:"",width:700,height:646}),Y&&(0,i.jsx)(u(),{className:"z-10 relative -top-24 md:-top-40",src:"/images/scoop-".concat(Q.toString().toLocaleLowerCase(),".png"),alt:"",width:800,height:1400,ref:es})]})]}),(0,i.jsx)("div",{className:(0,h.m)("img-1 absolute top-0 md:top-auto md:bottom-[-300px] w-[120px] md:w-[230px] z-0 pointer-events-none"),children:(null===(_=ev[0])||void 0===_?void 0:_.imageUrl)&&(0,i.jsx)(u(),{src:ev[0].imageUrl,className:"blur-[2px]",alt:"",width:230,height:230})}),(0,i.jsx)("div",{className:(0,h.m)("img-2 absolute top-0 md:top-auto md:bottom-[-200px] w-[75px] md:w-[150px] z-0 pointer-events-none"),children:(null===(P=ev[1])||void 0===P?void 0:P.imageUrl)&&(0,i.jsx)(u(),{src:ev[1].imageUrl,className:"blur",alt:"",width:150,height:150})}),(0,i.jsx)("div",{className:(0,h.m)("img-3 absolute top-0 md:top-auto md:bottom-[-200px] w-[90px] md:w-[200px] z-0 pointer-events-none"),children:(null===(q=ev[2])||void 0===q?void 0:q.imageUrl)&&(0,i.jsx)(u(),{src:ev[2].imageUrl,className:"blur-sm",alt:"",width:200,height:200})}),(0,i.jsx)("div",{className:(0,h.m)("img-4 absolute top-0 md:top-auto md:bottom-[-200px] w-[120px] md:w-[300px] z-0 pointer-events-none"),children:(null===(J=ev[4])||void 0===J?void 0:J.imageUrl)&&(0,i.jsx)(u(),{src:ev[4].imageUrl,alt:"",width:300,height:300})}),(0,i.jsx)("div",{className:(0,h.m)("img-5 absolute top-0 md:top-auto md:bottom-[-200px] w-[100px] md:w-[200px] z-0 pointer-events-none"),children:(null===(R=ev[3])||void 0===R?void 0:R.imageUrl)&&(0,i.jsx)(u(),{src:ev[3].imageUrl,className:"blur-sm",alt:"",width:200,height:200})})]})}),(0,i.jsx)("div",{ref:en,className:"absolute top-0 left-0 w-full h-screen z-20 hidden md:block product-pin-ref",children:(0,i.jsx)("div",{className:"relative w-full h-screen",children:(0,i.jsx)("div",{className:"absolute bottom-0 left-0 w-full md:h-[250px] lg:h-[350px]",children:(0,i.jsxs)(b.Z,{className:"relative flex md:h-[250px] lg:h-[350px]",children:[(0,i.jsx)("div",{className:"w-1/2"}),(0,i.jsxs)("div",{className:"w-1/2 relative",children:[(null==L?void 0:L.foregroundImage)&&(0,i.jsx)(d.Z,{ref:ea,className:"z-10 absolute top-20 xl:top-0 i-mage",image:(null==L?void 0:L.foregroundImage)||"",alt:"",width:800,height:738}
1),Y&&(0,i.jsx)(u(),{className:"z-10 absolute opacity-0 top-20 xl:top-0 translate-y-[100%]",src:"/images/scoop-".concat(Q.toString().toLocaleLowerCase(),".png"),alt:"",width:800,height:1400,ref:es})]})]})})})})]}),(0,i.jsx)(b.Z,{children:(0,i.jsxs)("div",{ref:em,className:"grid grid-cols-6 md:grid-cols-12 relative z-30 md:min-h-screen pt-10 pb-32 md:pb-20",children:[(0,i.jsxs)("div",{className:"col-span-6",children:[(0,i.jsx)(g.Z,{leftButton:{text:"Order Now",url:et},rightButton:{text:"Find In-Store",url:"/store-locator"},isFullWidth:!0,isStackable:!1,theme:"light"}),(0,i.jsxs)("div",{className:"p-4 md:p-8 my-5 rounded-3xl bg-white space-y-2",children:[(0,i.jsx)(v.Z,{as:"h4",className:"mb-5",children:F}),(0,i.jsx)(x.Z,{as:"p",children:O})]}),(0,i.jsx)(p.Z,{theme:"light",data:K,dessert:L})]}),(0,i.jsx)("div",{className:"col-span-6 hidden md:flex justify-center relative z-20",children:(0,i.jsx)("div",{ref:ed,className:"inline-block relative left-[-300px] opacity-0 z-20",children:Y&&(0,i.jsx)(f.Z,{onSwitch:eT,labels:["Cone","Cup"],current:!!eh,theme:"dark"})})})]})})]}),(0,i.jsx)("div",{className:"rounded-t-3xl md:rounded-t-[100px] relative z-50 -mt-[100px] overflow-hidden bg-white",children:(0,i.jsxs)(j.Z,{children:[(null==G?void 0:G.contentTwoFeaturedMedia)?(0,i.jsx)("section",{"data-color":"red",children:(0,i.jsx)(y.Z,{data:G.contentTwoFeaturedMedia})}):null,(null==G?void 0:G.contentFlavourSlam)?(0,i.jsx)("section",{"data-color":"#753BBD",children:(0,i.jsx)(w.Z,{data:null==G?void 0:G.contentFlavourSlam})}):null,(0,i.jsx)("section",{"data-color":"#6AD1E3",className:"pb-10 md:pb-20",children:(null==M?void 0:M.length)&&(null==ep?void 0:ep.length)?(0,i.jsx)(U.Z,{heading:"Give it a try",dessert:ep,dessertCollections:M,contentType:"iceCream"}):null})]})})]})}}},function(e){e.O(0,[412,487,66,495,688,590,57,888,774,179],function(){return e(e.s=338)}),_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.