1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3115],{96917:function(e,t,i){i.d(t,{JX:function(){return n.Z},X2:function(){return r.Z},xv:function(){return a.Z}});var n=i(40458),r=i(97307),a=i(25562)},61678:function(e,t,i){i.d(t,{R:function(){return n.Z}});var n=i(84529)},59069:function(e,t,i){var n=i(52322),r=i(96577),a=i.n(r),s=i(2784),l=i(1788),o=i(24696);let c=e=>{let{src:t,width:i,quality:n}=e,r=new URL(t),a=r.pathname.split("/").filter(Boolean),[s,l]=a.shift().split("x").map(e=>parseInt(e,10));return[r.origin,"".concat(Math.min(i,2*s),"x").concat(Math.min(Math.round(l/s*i),2*l)),"filters:quality(".concat(n||40,")"),...a].join("/")};t.Z=e=>{let{src:t}=e,[i,r]=(0,s.useState)(!0),d=null;return"string"==typeof t&&t.includes(l.DK)&&(d=c),(0,n.jsx)(o.Z,{className:i&&"loading",as:"span",children:(0,n.jsx)(a(),{...e,loader:d,onLoad:()=>{r(!1)}})})}},15137:function(e,t,i){var n=i(52322),r=i(8755);i(2784);var a=i(13980),s=i.n(a);let l=e=>{let{categories:t,textAlign:i}=e;return(0,n.jsx)(n.Fragment,{children:t&&t.length>0&&(0,n.jsx)(r.Z,{as:"h5",size:"xs",mt:10,mb:10,textAlign:i,style:{textTransform:"uppercase"},color:"grayscale.600",children:t.map(e=>e.title).join(", ")})})};l.propTypes={categories:s().array,textAlign:s().oneOfType([s().string,s().number,s().array])},l.defaultProps={categories:[],textAlign:""},t.Z=l},43354:function(e,t,i){i.d(t,{Z:function(){return b}});var n=i(52322);i(2784);var r=i(13980),a=i.n(r),s=i(63356),l=i(78188),o=i(54764),c=i(70992),d=i(67605),p=i(25562),u=i(57588),g=i(23976),h=i(56527),m=i(68032),x=i(19448),f=i(59069),Z=i(29160),v=i(15137).Z;let j=(0,s.ZP)(c.Z).withConfig({componentId:"sc-89e49742-0"})(["border-radius:2px;overflow:hidden;box-shadow:inset 0 0 0 1px ",";"],(0,l.R)("colors.grayscale.300")),y=e=>{let t,{title:i,categories:r,description:a,avatarUrl:s,imageUrl:l,date:y,author:b,linkTo:w}=e;return t=s?(0,n.jsx)("img",{className:"img-fluid rounded-circle",src:s,alt:""}):(0,n.jsx)(g.Z,{color:"brand.red",width:"36px",height:"36px"}),(0,n.jsxs)(j,{children:[(0,n.jsx)(c.Z,{className:"bg-pulse-animation",height:[null,"270px"],width:"100%",bg:"grayscale.300",display:["inline-block","block"],verticalAlign:"top",textAlign:"center",children:(0,n.jsx)(f.Z,{src:(0,m.awsImage)(l,900,700),width:900,height:700,alt:i,className:"img-fluid",style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,n.jsxs)(c.Z,{p:"24px",children:[(0,n.jsx)(v,{categories:r}),(0,n.jsx)(d.Z,{size:"h6",mt:7,children:(0,n.jsx)(x.Yl,{link_name:"post card",children:(0,n.jsx)(h.Z,{NavComponent:Z.Z,to:w,expandClickableArea:!0,children:i})})}),(0,n.jsx)(p.Z,{children:a}),(0,n.jsxs)(c.Z,{mt:"24px",children:[(0,n.jsxs)(o.Z,{alignItems:"center",minHeight:"40px",children:[(0,n.jsx)(u.Z,{flex:1}),(0,n.jsx)(c.Z,{width:"40px",ml:"24px",children:t})]}),(0,n.jsxs)(p.Z,{fontSize:"s",mb:0,children:[b&&(0,n.jsx)(p.Z,{as:"strong",children:b}),b&&y&&(0,n.jsx)(n.Fragment,{children:"\xa0 ⢠\xa0"}),(0,n.jsx)(p.Z,{as:"span",color:"grayscale.600",children:y})]})]})]})]})};y.propTypes={title:a().string,categories:a().array,description:a().string,avatarUrl:a().string,imageUrl:a().string,date:a().string,author:a().string},y.defaultProps={title:"",categories:[],description:"",avatarUrl:"",date:"",author:""};var b=y},24696:function(e,t,i){i.d(t,{Z:function(){return s}});var n=i(63356),r=i(78188),a=i(70992);let s=(0,n.ZP)(a.Z).withConfig({componentId:"sc-18626a2d-0"})(["display:flex;flex-direction:column;position:relative;height:100%;width:100%;&::after,&::before{content:'';position:absolute;background:",";height:100%;width:100%;top:0;left:0;opacity:0;transition:opacity 0.3s ease-in-out;}&::after{opacity:0;}&.loading{::before,::after{opacity:1;}::before{animation:bgPulse 1s ease-out infinite;}}span{height:100% !important;}img{object-fit:cover;background:white;}"],(0,r.R)("colors.grayscale.300"))},3115:function(e,t,i){i.r(t);var n=i(52322),r=i(2784),a=i(96917),s=i(60048),l=i(61678),o=i(8755),c=i(13980),d=i.n(c),p=i(28879),u=i.n(p),g=i(19448),h=i(43354),m=i(21180),x=i(61097);t.default=()=>{let{page:e}=(0,r.useContext)(x.Z),{competitions:t}=e,i=t.filter(e=>!e.hasEnded&&e.isOpen),c=t.filter(e=>e.hasEnded||!e.isOpen);return(0,n.jsxs)(g.Yl,{pageEventName:"marketing_page_viewed",source_page:"competitions home",children:[(0,n.jsx)(m.Z,{id:e.id,title:e.metaTitleFormatted,description:e.metaDescription,ogImage:e.ogImage,metaTags:e.metaTags,slug:e.slug}),(0,n.jsxs)(l.R,{children:[(0,n.jsx)(s.Z,{title:e.title}),(0,n.jsx)(o.Z,{size:"l",children:"Current Competitions"}),i.length?(0,n.jsx)(a.X2,{gap:40,children:i.map(e=>(0,n.jsx)(f,{competition:e},e.id))}):(0,n.jsx)(a.xv,{children:"No current competitions. Check back soon!"}),c.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{size:"l",mt:[20,50],children:"Past Competitions"}),(0,n.jsx)(a.X2,{gap:40,children:c.map(e=>(0,n.jsx)(f,{competition:e},e.id))})]})]})]})};let f=e=>{var t,i,r;let{competition:s}=e;return(0,n.jsx)(a.JX,{width:[1,.5,1/3],mb:["20px","40px"],pl:40,children:(0,n.jsx)(h.Z,{title:s.title,de
1scription:s.summary,imageUrl:(null===(t=s.featuredImage)||void 0===t?void 0:t.url)||(null===(i=s.photos.edges[0])||void 0===i?void 0:i.node.url),author:null===(r=s.defaultCity)||void 0===r?void 0:r.menuTitle,date:s.isOpen?"Enter by ".concat(u()(s.end,"YYYY-MM-DD HH:mm:ss").format("D MMMM YYYY")):"",linkTo:s.slug})})};f.propTypes={competition:d().object.isRequired}},71901:function(e,t,i){i.d(t,{Z:function(){return m}});var n,r,a,s=i(52322),l=i(2784),o=i(13980),c=i.n(o),d=i(63356),p=i(68054);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}let g=(0,d.ZP)(function(e){return l.createElement("svg",u({width:56,height:56,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=l.createElement("circle",{cx:28,cy:28,r:28,fill:"currentColor"})),r||(r=l.createElement("mask",{id:"a",maskUnits:"userSpaceOnUse",x:0,y:0,width:56,height:56},l.createElement("circle",{cx:28,cy:28,r:28,fill:"#fff"}))),a||(a=l.createElement("g",{mask:"url(#a)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.765 63.201c9.882-.996 27.882-14.54 18.176-39.241L42 18.183l-4.941 4.382 3-8.565-5.118 5.777c-2.47-2.79-9.388-7.45-17.294-3.785-4.938 2.862-7.15 8.686-8.394 11.958-.4 1.055-.7 1.845-.959 2.185-.128.168-.317.486-.573.917C5.847 34.203.369 43.41-11.118 44.676c-6.568 0-11.117-4.78-12.882-6.773 2.47 8.433 12.07 25.298 30.706 25.298l.243 1.363v.002c.639 3.572 1.713 9.581 2.227 13.65l2.471-14.417H15l2.294 13.62 2.47-14.218ZM.678 49.79c4.244 2.442 9.11 3.036 13.842 2.546-2.335 1.195-5.37 2.268-9.41 3.281 12.832 3.84 21.53.737 29.208-11.977 0 0-.165.072-.449.188-1.254.482-4.896 1.61-7.863-.19-4.374-2.654-5.698-5.918-5.698-5.918-3.8 7.702-13.08 11.546-19.63 12.07Zm25.616-25.233 4.059-5.577c-.706.132-2.153.637-3 1.593s-1.118 3.055-1.059 3.984Zm-8.117 53.46c.14 0 2.176.133 3.176.2l-.882 2.39-2.294-2.59Zm-.53.2L18 82l1.765-1.195-2.118-2.59Zm-2.294 2.589 1.765-2.59.176 3.586-1.941-.996Zm-2.647-2.191L12 80.606l-2.647-1.992h3.353Zm-1.059 2.19-2.294-1.593L9.529 82l2.118-1.195ZM9 79.013V82l-1.765-.598L9 79.012Z",fill:"#fff"}))))}).withConfig({componentId:"sc-9bf361-0"})(["vertical-align:middle;position:relative;",";",";",";",";"],p.$_,p.Dh,p.bf,p.Cb),h=e=>(0,s.jsx)(g,{...e});h.propTypes={color:c().string.isRequired,viewBox:c().string},h.defaultProps={viewBox:"0 0 56 56"},h.displayName="Avatar";var m=h},23976:function(e,t,i){var n=i(71901);t.Z=n.Z},35124:function(e,t,i){var n=i(52322);i(2784);var r=i(13980),a=i.n(r),s=i(280);let l=e=>(0,n.jsx)(s.Z,{...e});l.propTypes={pt:a().oneOfType([a().array,a().number,a().string]),pb:a().oneOfType([a().array,a().number,a().string])},l.defaultProps={pt:["40px","70px"],pb:["40px","90px"]},t.Z=l},84529:function(e,t,i){var n=i(35124);t.Z=n.Z}}]); 2//# sourceMappingURL=3115.7c7d39595395441f.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.