1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[406],{3772:(e,t,l)=>{l.d(t,{nD:()=>D,HK:()=>K,Us:()=>eC,jA:()=>e6,At:()=>eu,Qe:()=>ta,gf:()=>eo,l:()=>ew,pk:()=>e$,Jn:()=>eS.J,IA:()=>eB,dK:()=>ee.d,tT:()=>es,Ai:()=>eK,UO:()=>W,DT:()=>eQ,N3:()=>eX,cm:()=>B,Cv:()=>ev,Gm:()=>L,Ce:()=>Y});var r,a,n,i,s=l(5640),o=l(44880),d=l(50148),c=l(62351);(0,c.cn)("icon-color-(--Buttons-buttonsSecondaryLabel)! border-2 border-(--Buttons-buttonSecondaryBorder) bg-(--Buttons-buttonSecondaryColour)","hover:icon-color-(--Buttons-buttonsSecondaryLabelHover)! hover:border-(--Buttons-buttonSecondaryHoverBorder) hover:bg-(--Buttons-buttonSecondaryHover)");var u=l(39797);l(12648);var m=l(56783);(0,m.F)("group relative bg-(--CTAs-ctaColour) duration-300 hover:bg-(--CTAs-ctaHover)",{variants:{variant:{sideBySide:"grid grid-cols-1 md:grid-cols-2",fullWidth:""},hasImage:{true:"",false:""}},defaultVariants:{variant:"sideBySide",hasImage:!1},compoundVariants:[{variant:"sideBySide",hasImage:!1,class:"md:grid-cols-1"}]}),(0,m.F)("[&>*]:absolute-full overflow-hidden",{variants:{variant:{sideBySide:"relative aspect-[1.44] sm:aspect-[2.27] md:aspect-auto",fullWidth:"absolute-full"},scaleImageOnHover:{true:"[&_img]:duration-700 group-hover:[&_img]:scale-110"}},defaultVariants:{variant:"sideBySide",scaleImageOnHover:!1}}),(0,m.F)("flex flex-col",{variants:{variant:{sideBySide:["px-3 py-4 md:p-[96px] bg:p-[128px] vbg:p-[256px]","[&_.grid]:justify-items-start [&_a]:self-start"],fullWidth:["items-center px-8 py-4 text-center sm:px-[128px] md:py-[96px] bg:px-[256px] bg:py-[128px] vbg:py-[176px] [&_p]:max-w-[1024px]","bg-black/55 relative","[&_.grid]:justify-items-center [&_a]:self-center"]},narrow:{true:"md:p-8! lg:p-10! [&_.typography-eyebrow]:text-[10px] [&_.typography-h2]:text-[32px] [&_p]:text-[16px]"},hasImage:{false:"bg-transparent!"}},defaultVariants:{variant:"sideBySide",narrow:!1}}),(0,m.F)("",{variants:{variant:{sideBySide:"text-(--CTAs-ctaEyebrow)",fullWidth:"text-(--CTAs-fullWidthCtaEyebrow)"}},defaultVariants:{variant:"sideBySide"}}),(0,m.F)("",{variants:{variant:{sideBySide:"text-(--CTAs-ctaHeading)",fullWidth:"text-(--CTAs-fullWidthCtaHeading)"}},defaultVariants:{variant:"sideBySide"}}),(0,m.F)("",{variants:{variant:{sideBySide:"text-(--CTAs-ctaText)",fullWidth:"text-(--CTAs-fullWidthCtaText)"}},defaultVariants:{variant:"sideBySide"}});var p=l(79892);l(90062);var h=l(17464),x=l(7016);h.Ik({email:h.Yj().email({message:"Please enter a valid email address"})});var g=l(47491),f=l(22954);let v=h.Ik({email:h.Yj().email({message:"Please enter a valid email address"})}),y="BECOME A LAUNNIE INSIDER",b="Sign up to our newsletter and be the first to know about everything great that's happening in Launnie.",w="SIGN ME UP!",j=(0,c.cn)("typography-eyebrow font-medium rounded-half border-[1.5px] p-[18px_15px]","hover:bg-darkBurgundy hover:text-lightOrange duration-200"),N=e=>{let{placeholder:t,submitButtonText:l,successMessage:r}=e,[a,n]=(0,d.useState)(!1),{register:i,handleSubmit:u,formState:{errors:m}}=(0,f.mN)({resolver:(0,g.u)(v)});return a?(0,s.jsx)(o.EY,{className:"text-darkBurgundy",textStyle:"h5",children:r||"Thanks for signing up!"}):(0,s.jsxs)("form",{className:"relative w-full",onSubmit:u(e=>{let{email:t}=e;fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})}).then(()=>{}).catch(()=>{}),n(!0)}),"data-formid":"signup-form",children:[(0,s.jsxs)("div",{className:(0,c.cn)("bg-darkBurgundy text-lightPink flex w-full items-center justify-center gap-[10px] pl-2","drop-shadow-[6px_6px_0_rgba(82,18,18,0.1)] md:pl-3"),children:[(0,s.jsx)("input",{className:(0,c.cn)("typography-bodySmall text-lightPink h-72 min-w-0 flex-1 border-none bg-transparent outline-none md:h-90","placeholder:text-lightPink"),type:"text",placeholder:t||"Your email address...",...i("email")}),(0,s.jsx)(o.e$,{as:"button",type:"submit",ariaLabel:"Click to signup our newsletter",className:(0,c.cn)("border-lightPink! text-lightPink mr-12 shrink-0","hover:bg-lightPink hover:text-darkBurgundy","px-15! py-17! md:mr-20"),children:l||w})]}
1),(0,s.jsx)(x.Kw,{name:"email",errors:m,className:(0,c.cn)("text-darkBurgundy absolute -bottom-1 left-0 translate-y-full")})]})},k=e=>{let{heading:t,description:l}=e;return(0,s.jsxs)("div",{className:(0,c.cn)("text-darkBurgundy flex w-full flex-col items-start gap-2","md:flex-row md:items-center md:gap-4"),children:[(0,s.jsx)(o.EY,{textStyle:"h4",className:"text-darkBurgundy w-full uppercase md:flex-1",children:t||y}),(0,s.jsx)(o.EY,{as:"bodySmall",className:"text-darkBurgundy w-full md:flex-1",children:l||b})]})},C=e=>{let{heading:t,description:l,submitButtonText:r,isSidebar:a}=e;return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-3 md:flex-1 md:gap-4",children:[(0,s.jsx)(o.EY,{textStyle:"h4",className:"text-darkBurgundy w-full uppercase",children:t||y}),(0,s.jsxs)("div",{className:(0,c.cn)("flex w-full flex-col gap-3",!a&&"md:flex-row md:items-center md:gap-4"),children:[(0,s.jsx)(o.EY,{as:"bodySmall",className:(0,c.cn)("text-darkBurgundy w-full",!a&&"md:flex-1"),children:l||b}),(0,s.jsx)(o.FZ,{className:(0,c.cn)("ml-auto shrink-0",j),href:"https://tas.us2.list-manage.com/subscribe?u=f8e8d547372ad8e0218f6f876&id=43fb614619",target:"_blank",children:r||w})]})]})},S=e=>{let{heading:t,description:l,inputPlaceholder:r,submitButtonText:a,successMessage:n}=e;return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-3 md:flex-1 md:gap-5",children:[(0,s.jsx)(k,{heading:t,description:l}),(0,s.jsx)(N,{placeholder:r,submitButtonText:a,successMessage:n})]})},_=e=>{let{heading:t,description:l,inputPlaceholder:r,submitButtonText:a,successMessage:n,isSidebar:i,isSimplified:o}=e;return o?(0,s.jsx)(C,{heading:t,description:l,submitButtonText:a,isSidebar:i}):(0,s.jsx)(S,{heading:t,description:l,inputPlaceholder:r,submitButtonText:a,successMessage:n})},B=e=>{let{className:t,heading:l,description:r,inputPlaceholder:a,submitButtonText:n,successMessage:i,isSidebar:d,isSimplified:u=!0}=e;return(0,s.jsx)("section",{className:(0,c.cn)("theme-burgundy",t),children:(0,s.jsxs)("div",{className:(0,c.cn)("main-column bg-lightPink text-darkBurgundy flex flex-col items-start justify-center gap-3 px-3 py-4","drop-shadow-[8px_8px_0_rgba(82,18,18,0.05)]",!d&&"md:flex-row md:items-center md:gap-10 md:p-10"),children:[(0,s.jsx)("div",{className:(0,c.cn)("flex h-[138px] w-full items-start overflow-hidden pt-1",!d&&"md:h-[203px] md:w-[300px] md:shrink-0 lg:w-[420px]"),children:(0,s.jsx)(o._V,{src:"/images/newsletter-signup-illustration.png",alt:"",className:"h-full w-full object-contain",sizes:"(min-width: 1024px) 420px, 100vw"})}),(0,s.jsx)(_,{heading:l,description:r,inputPlaceholder:a,submitButtonText:n,successMessage:i,isSidebar:d,isSimplified:u})]})})};var I=l(68595),z=l(17521),A=l(48426),T=l(88383);let P=[.33,1,.68,1],E=d.forwardRef((e,t)=>{let{cursor:l}=e;return(0,s.jsx)("div",{"aria-hidden":"true",className:(0,c.cn)("pointer-events-none absolute top-0 left-0 z-20 hidden size-64 place-items-center transition-opacity duration-300 will-change-transform lg:grid",l.visible&&l.disabled&&"opacity-50",l.visible&&!l.disabled&&"opacity-100",!l.visible&&"opacity-0"),ref:t,style:{transform:"translate3d(-999px, -999px, 0)"},children:(0,s.jsx)(o.In,{name:"circle_arrow_right",className:(0,c.cn)("size-64","previous"===l.direction&&"rotate-180")})})});E.displayName="TestimonialCursor";let F=e=>{let{slide:t,style:l}=e;return(0,s.jsxs)("div",{style:l,className:"pt-8 md:pt-7 lg:pt-10",children:[t.quote&&(0,s.jsx)("p",{className:"typography-bodyLarge font-bold text-darkGreen",children:(0,T.Ay)(t.quote)}),t.author&&(0,s.jsx)("footer",{className:"typography-footnote text-darkGreen mt-2 md:mt-4",children:(0,T.Ay)(t.author)})]})},L=e=>{let{image:t,quote:l,author:r,label:a,items:n,className:i}=e,u=(0,d.useMemo)(()=>(null==n?void 0:n.length)?n.map(e=>e.testimonial):[{image:t,quote:l,author:r}],[r,t,n,l]),m=u.length>1,p=(0,d.useRef)(null),h=(0,d.useRef)(null),x=(0,d.useRef)(null),g=(0,d.useRef)(null),f=(0,d.useRef)({x:-999,y:-999}),v=(0,d.useRef)({visible:!1,direction:"next",disabled:!1}),y=(0,I.Q)(["(min-width: ".concat(1024,"px)")],[!0],!1),[b,w]=(0,d.useState)(0),[j,N]=(0,d.useState)(),[k,C]=(0,d.useState)(0),[S,_]=(0,d.useState)(0),[B,L]=(0,d.useState)(!1),[G,M]=(0,d.useState)({visible:!1,direction:"next",disabled:!1}),[W,O]=(0,d.useState)("next"),[R,H]=(0,d.useState)("idle");(0,d.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>w(e.clientWidth);t();let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[]);let U=(0,d.useCallback)((e,t)=>{if(!u.length||"idle"!==R||e<0||e>=u.length||e===k)return;let l=t||(e<k?"previous":"next");_(e),O(l),L(!1),y&&"next"!==l?H("sliding"):H("fadeOut")},[k,y,u.length,R]),V=y?350:280,Y=420;y&&(Y="previous"===W?1260:1400),(0,d.useEffect)(()=>
1{if("fadeOut"!==R)return;let e=window.setTimeout(()=>{H("sliding")},V);return()=>window.clearTimeout(e)},[V,R]),(0,d.useEffect)(()=>{if("sliding"!==R)return;let e=!y&&window.setTimeout(()=>{L(!0)},Math.max(Y-175,0)),t=y&&"previous"===W?Y-280:Y,l=window.setTimeout(()=>{C(S),H(y&&"previous"===W?"reveal":"idle")},t);return()=>{e&&window.clearTimeout(e),window.clearTimeout(l)}},[y,Y,S,W,R]),(0,d.useEffect)(()=>{if("reveal"!==R)return;let e=window.setTimeout(()=>{H("idle")},350);return()=>window.clearTimeout(e)},[R]),(0,d.useEffect)(()=>{"idle"===R&&L(!1)},[R]);let Z="idle"===R?k:S,q="idle"!==R,D=q?S:k,$=120*!!y,Q=Math.max(.75*b,217),J=888-(b>=1280?308:240)-48,X=y?J:Q,K=(0,d.useMemo)(()=>u.map((e,t)=>{if(!y)return t===("fadeOut"===R?k:Z)?Q:217;let l=t===k&&("fadeOut"===R||q&&"previous"===W);return t>=D||l?888:308}),[Z,k,y,q,D,Q,u,W,R]);(0,d.useEffect)(()=>{let e=h.current;if(!e||!b||!X)return;let t=()=>{let t=Array.from(e.children).reduce((e,t)=>Math.max(e,t.scrollHeight),0);N(t?Math.ceil(t):void 0)};t();let l=new ResizeObserver(t);return l.observe(e),Array.from(e.children).forEach(e=>l.observe(e)),()=>l.disconnect()},[u,X,b]);let ee=(0,d.useCallback)(e=>{if(!y)return"fadeOut"===R?e===k:"sliding"===R?e===k||e===S:e===Z;let t=e===k&&("fadeOut"===R||"sliding"===R&&"next"===W||q&&"previous"===W);return e>=D||t},[Z,k,y,q,D,S,W,R]),et=(0,d.useMemo)(()=>{if(!b||!u.length)return 0;let e="fadeOut"===R?k:Z;return b/2-(K.slice(0,e).reduce((e,t)=>e+t+$,0)+K[e]/2)},[Z,k,K,$,u.length,R,b]),el=(0,d.useCallback)((e,t)=>{!y&&"idle"===R&&(Math.abs(t.offset.x)>48||Math.abs(t.velocity.x)>350)&&(t.offset.x<0?U(k+1,"next"):U(k-1,"previous"))},[k,y,U,R]),er=(0,d.useCallback)(e=>{let t=e.currentTarget.getBoundingClientRect();return e.clientX-t.left<t.width/2?"previous":"next"},[]),ea=(0,d.useCallback)(e=>{(v.current.visible!==e.visible||v.current.direction!==e.direction||v.current.disabled!==e.disabled)&&(v.current=e,M(e))},[]),en=(0,d.useCallback)((e,t)=>{f.current={x:e,y:t},null===g.current&&(g.current=window.requestAnimationFrame(()=>{if(g.current=null,!x.current)return;let{x:e,y:t}=f.current;x.current.style.transform="translate3d(".concat(e-32,"px, ").concat(t-32,"px, 0)")}))},[]),ei=(0,d.useCallback)(e=>{if(!y)return;let t=e.currentTarget.getBoundingClientRect(),l=er(e),r="previous"===l&&0===k||"next"===l&&k===u.length-1;en(e.clientX-t.left,e.clientY-t.top),ea({disabled:r,visible:!0,direction:l})},[k,er,y,u.length,en,ea]),es=(0,d.useCallback)(e=>{if(!y||"idle"!==R)return;let t=er(e);U("previous"===t?k-1:k+1,t)},[k,er,y,U,R]),eo=(0,d.useCallback)(e=>{if(y&&"idle"===R){if("ArrowLeft"===e.key)return void U(k-1,"previous");"ArrowRight"===e.key&&U(k+1,"next")}},[k,y,U,R]),ed=(0,d.useCallback)(()=>{ea({...v.current,visible:!1})},[ea]),ec=(0,d.useCallback)(e=>{let t=e===k,l=e===S,r=e===Z,a=ee(e),n=a&&!q;"fadeOut"===R?n=a&&!t:"sliding"===R&&"previous"===W?n=a&&!l:"sliding"===R?n=a&&!t:"reveal"===R&&(n=a);let i=t&&!q,s=i,o=V/1e3;"sliding"===R&&"previous"===W?(i=t,s=!1,o=Y/1e3):"sliding"===R?(i=l,s=!0,o=y?.63:V/1e3):"reveal"===R&&(i=l,s=!0,o=y?.63:V/1e3),y||(n=a&&"fadeOut"!==R&&("sliding"!==R||l&&B),i=r);let d=.5;return"sliding"===R&&"next"===W&&l&&y||"fadeOut"===R&&l&&y?d=0:"sliding"===R&&(d=Y/1e3),{quoteDuration:o,quoteVisible:s,showQuote:i,showTextSection:a,textVisible:n,widthDuration:d}},[Z,k,V,ee,y,B,q,Y,S,W,R]);(0,d.useEffect)(()=>()=>{null!==g.current&&window.cancelAnimationFrame(g.current)},[]);let eu=m?{onClick:es,onKeyDown:eo,onMouseLeave:ed,onMouseMove:ei,role:"button",tabIndex:0}:{};return u.length?(0,s.jsxs)("section",{className:(0,c.cn)("relative overflow-hidden py-5 md:py-140",m&&"lg:cursor-none",i),...eu,children:[a&&(0,s.jsx)("div",{className:(0,c.cn)("absolute top-[324px] left-half w-full max-w-[80%] -translate-x-half px-initGutter sm:px-smGutter","md:top-[140px] md:ml-[110px] md:w-532 md:px-0 lg:ml-[180px]"),children:(0,s.jsx)("div",{className:"text-darkGreen border-midGreen flex w-full justify-center gap-2 border-b pb-1 md:w-532 md:justify-start md:pb-2",children:(0,s.jsx)("p",{className:"typography-eyebrow",children:(0,T.Ay)(a)})})}),(0,s.jsx)("div",{className:"relative overflow-hidden",ref:p,children:(0,s.jsx)(z.P.div,{animate:{x:et},className:"flex items-stretch",onPanEnd:el,style:{gap:$,touchAction:y?"auto":"pan-y"},transition:{duration:"sliding"===R?Y/1e3:0,ease:P},children:u.map((e,t)=>{let l=(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)||void 0})(e.image),{quoteDuration:r,quoteVisible:a,showQuote:n,showTextSection:i,textVisible:d,widthDuration:u}=ec(t);
1return(0,s.jsx)(z.P.article,{animate:{opacity:1,width:K[t]},className:"shrink-0",initial:!1,transition:{opacity:{duration:V/1e3},width:{duration:u,ease:P},ease:P},children:(0,s.jsxs)("div",{className:(0,c.cn)("text-darkBlue grid h-full min-h-full content-start py-5 text-center md:px-0 md:py-0 md:text-left",i&&"md:grid-cols-[240px_1fr] md:gap-6 lg:grid-cols-[308px_1fr]",!i&&"place-items-center"),children:[(0,s.jsxs)("div",{className:"relative mx-auto mb-1 size-217 md:size-240 lg:size-308",children:[(0,s.jsx)(o._V,{src:l,displayPlaceholderImage:!0,placeholderImage:"/images/avatar-placeholder.png",alt:(e=>{var t,l,r;return(null==e||null==(l=e.image)||null==(t=l.node)?void 0:t.altText)||(null==e||null==(r=e.image)?void 0:r.altText)||""})(e),className:"absolute inset-0 rounded-full object-cover",sizes:"(min-width: 1280px) 320px, (min-width: 1024px) 240px, 180px"}),(0,s.jsx)(A.N,{initial:!1,children:n&&(0,s.jsx)(z.P.div,{animate:{opacity:+!!a},className:"absolute top-0 -left-4 w-76 md:-left-7 md:w-123",exit:{opacity:0,transition:{duration:r}},initial:{opacity:0}
1,transition:{duration:r},children:(0,s.jsx)(o._V,{inheritSize:!0,src:"/images/testimonial-quote.svg",alt:"",className:"w-full"})},"quote-icon")})]}),(0,s.jsx)(A.N,{initial:!1,children:i&&(0,s.jsx)(z.P.blockquote,{animate:{opacity:+!!d,...!y?{width:"100%"}:{}},className:"mx-auto max-w-760 overflow-hidden",exit:{opacity:0,transition:{duration:V/1e3}},initial:{opacity:0,...!y?{width:0}:{}},transition:{opacity:{duration:V/1e3},...!y?{width:{duration:Y/1e3,ease:P}}:{}},style:{...j?{height:j,maxHeight:j}:{}},children:(0,s.jsx)(F,{slide:e,style:b>0&&!y?{width:Q}:void 0})},"testimonial-text")})]})},"".concat(e.author||"testimonial","-").concat(t))})})}),m&&(0,s.jsx)("div",{className:"flex flex-col items-center gap-3 md:mr-[240px] lg:mt-4 lg:mr-[105px]",children:(0,s.jsx)("div",{className:"flex items-center justify-center gap-[10px]",children:u.map((e,t)=>(0,s.jsx)("button",{"aria-current":t===Z,"aria-label":y?"Testimonial ".concat(t+1):"Go to testimonial ".concat(t+1),className:(0,c.cn)("size-[6px] rounded-full transition-colors duration-200","lg:pointer-events-none lg:cursor-default",t===Z?"bg-darkGreen":"bg-midGreen"),onClick:e=>{e.stopPropagation(),U(t)},type:"button"},"".concat(e.author||"dot","-").concat(t)))})}),b>0&&X>0&&(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute top-0 left-0 -z-10 overflow-hidden",ref:h,style:{width:X},children:u.map((e,t)=>(0,s.jsx)("div",{className:"mx-auto max-w-760 overflow-hidden",children:(0,s.jsx)(F,{slide:e})},"".concat(e.author||"measure","-").concat(t)))}),m&&(0,s.jsx)(E,{cursor:G,ref:x})]}):null};l(55403),l(26904),l(91266),l(40534);var G=l(20067);h.Ik({name:h.Yj().min(1,{message:"Please enter your name"}),email:h.Yj().email({message:"Please enter a valid email"}),phone:h.Yj().refine(e=>e.match(G.T)||(null==e?void 0:e.length)===0,{message:"Please enter a valid phone number"}),message:h.Yj().optional(),tickedCheckbox:h.zM().refine(e=>!0===e,{message:"You must check this box to submit your enquiry"})}),(0,l(89063).tv)({slots:{wrapper:"",imageWrapper:"",textWrapper:"relative z-10"},variants:{variant:{fullWidth:{wrapper:["main-column grid gap-4","md:grid md:grid-cols-2"],imageWrapper:"absolute-full",textWrapper:"sm:w-2/3 md:w-full"},sideBySide:{wrapper:"lg:grid lg:grid-cols-2",imageWrapper:"relative aspect-[1.5] sm:aspect-[2.6] lg:aspect-auto",textWrapper:["px-initGutter ","sm:px-smGutter "]}},size:{default:"",large:""},imagePosition:{left:"",right:""},displayForm:{true:"",left:""}},compoundVariants:[{size:"default",variant:"fullWidth",class:{wrapper:["pt-112 pb-48","sm:pt-136 sm:pb-72","md:pt-200 md:pb-128","vbg:pt-260 vbg:pb-160"],textWrapper:"sm:pr-5 md:pr-6 lg:pr-0"}},{size:"large",variant:"fullWidth",class:{wrapper:["pt-112 pb-48","sm:pt-136 sm:pb-72","md:pt-240 md:pb-200 ","vbg:py-240"],textWrapper:"sm:pr-5 md:pr-6 lg:pr-120"}},{size:"default",variant:"sideBySide",class:{textWrapper:["pb-4 pt-3","sm:pb-6 sm:pt-4","md:pb-10 md:pt-8","lg:pt-188 lg:pb-140"]}},{size:"large",variant:"sideBySide",class:{textWrapper:["pb-4 pt-3","sm:pb-6 sm:pt-4","md:pb-10 md:pt-8","lg:py-[218px]","vbg:py-[280px]"]}},{variant:"sideBySide",imagePosition:"left",class:{textWrapper:"lg:pl-128 mc:pr-mainColumnGutter"}},{variant:"sideBySide",imagePosition:"right",class:{imageWrapper:"lg:order-2",textWrapper:"lg:pr-128 mc:pl-mainColumnGutter"}},{variant:"fullWidth",displayForm:!0,class:{wrapper:"md:pb-10 md:pt-180 vbg:pb-120"}}],defaultVariants:{size:"default",variant:"fullWidth",imagePosition:"right"}}),(0,c.cn)(x.lC,"rounded-corners-lg w-full gap-3! border bg-(--Forms-campaignFormBGColour) p-3 shadow-strong md:p-4"),l(65190),l(45501),l(43249);let M="Search our entire site...",W=e=>{let{query:t}=e;return(0,s.jsx)("section",{className:"bg-darkBrown text-lightBrown relative overflow-hidden pt-6 pb-4 md:py-54",children:(0,s.jsxs)("div",{className:"main-column relative grid gap-4 md:grid-cols-[9fr_3fr] md:gap-5",children:[(0,s.jsxs)("div",{className:"relative z-10 grid gap-2 md:content-center md:gap-4",children:[(0,s.jsx)("h1",{className:"typography-h1 uppercase",children:"Search"}),(0,s.jsxs)("div",{className:"bg-lightBrown text-darkBrown relative flex w-full items-center text-left shadow-[6px_6px_0_rgba(82,18,18,0.1)]",children:[(0,s.jsx)("input",{type:"search",value:"string"==typeof(null==t?void 0:t.value)?t.value:"",placeholder:M,"aria-label":M,onChange:e=>{var l;return null==t||null==(l=t.set)?void 0:l.call(t,e.target.value)},className:"typography-bodySmall min-w-0 flex-1 bg-transparent px-3 py-2 pr-44 text-current placeholder:text-current focus:outline-none md:h-76 md:px-4 md:py-3 md:pr-64 [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"}),(0,s.jsx)(o.In,{name:"search",className:"icon-stroke-current pointer-events-none absolute top-1/2 right-3 size-28 -translate-y-1/2 md:right-4"})]})]}),(0,s.jsx)("div",{className:"pointer-events-none absolute top-[-34px] right-[-6px] z-0 h-85 w-103 md:static md:h-233 md:w-283 md:self-center md:justify-self-end",children:(0,s.jsx)("img",{src:"/images/search-masthead-illustration.png",alt:"",className:"h-full w-full object-contain","aria-hidden":"true"})})]})})};l(53655);let O={hamburger:"bg-white",primaryItem:"md:text-white",primaryItemUnderline:"decoration-white",dropdownBackgroun
1d:"bg-(--Content-Cards-cardColour)",dropdownItemText:"text-(--Typography-body)",dropdownItemTextHover:"hover:text-(--Content-Cards-cardColour)",dropdownItemBackgroundHover:"hover:bg-primaryOne"};(0,m.F)("ease-out absolute top-[3px] block h-[2px] w-full translate-x-0 translate-y-0 translate-z-0 rotate-0 transform transition duration-400 ".concat(O.hamburger," "),{variants:{showMenu:{true:"top-[12px] translate-x-0 translate-z-0 rotate-45 transform"}}}),(0,m.F)("ease-out absolute top-[11px] block h-[2px] w-full translate-x-0 translate-y-0 translate-z-0 rotate-0 transform opacity-100 duration-100 ".concat(O.hamburger," "),{variants:{showMenu:{true:"opacity-0"}}}),(0,m.F)("ease-out absolute top-[20px] block h-[2px] w-full translate-x-0 translate-y-0 translate-z-0 rotate-0 transform transition duration-400 ".concat(O.hamburger," "),{variants:{showMenu:{true:"top-[12px] translate-x-0 translate-z-0 -rotate-45 transform"}}}),(0,m.F)(["z-10 hidden gap-1 p-2 shadow-strong transition-all duration-150","absolute -bottom-[10px] -left-1 w-[260px] translate-y-full","md:group-focus-within:grid md:group-hover:grid","rounded-corners",O.dropdownBackground,O.dropdownItemText],{variants:{anchorPosition:{right:{"@media(max-width: 1400px)":{left:"auto",right:"-8px"}}}}}),(0,c.cn)("relative rounded-subtle p-1 text-[16px] duration-150",O.dropdownItemText,O.dropdownItemBackgroun
1dHover,O.dropdownItemTextHover),(0,c.cn)("relative decoration-2 underline-offset-4 duration-150 md:group-hover:underline",O.primaryItem,O.primaryItemUnderline),(0,c.cn)("rounded-corners absolute -bottom-[12px] left-0 z-50 w-full translate-y-full p-2 shadow-strong sm:bottom-[-20px]","md:relative md:bottom-auto md:translate-y-0 md:rounded-none md:bg-transparent md:p-0 md:shadow-none",O.dropdownBackground),(0,c.cn)("${} rouned-[4px] font-semibold relative flex items-center justify-between px-1 py-1 md:px-2",O.dropdownItemText),l(47720),l(6564);var R=l(39666),H=l.n(R),U=l(50985),V=l.n(U);let Y=function(e){var t;let{link:l,videoFile:r,videoSource:a,thumbnail:n,autoplay:i,className:u,aspectRatio:m="aspect-[33.8/19]"}=e,p=function(e){var t;let{link:l,videoFile:r,videoSource:a}=e,n=null==r||null==(t=r.node)?void 0:t.mediaItemUrl;return"media_library"===a?n||l||null:l||n||null}({link:l,videoFile:r,videoSource:a}),[h,x]=(0,d.useState)(!n||!!i),[g,f]=(0,d.useState)(!!i);return p?(0,s.jsx)("section",{className:(0,c.cn)("text-center",u),children:(0,s.jsx)("button",{"aria-label":"Play Video",className:"group relative block w-full cursor-pointer overflow-hidden",type:"button",onClick:()=>{n&&(x(!0),f(!0))},children:(0,s.jsxs)("div",{className:(0,c.cn)(m,"relative mx-auto block max-w-[1120px] overflow-hidden","rounded-corners"),children:[n&&!h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o._V,{className:"[&>*]:disable-blur disable-blur absolute top-0 left-0 block h-full w-full",src:(null==n||null==(t=n.node)?void 0:t.sourceUrl)||(null==n?void 0:n.sourceUrl)||void 0,alt:(null==n?void 0:n.altText)||"",sizes:"(max-width: 1024px) 100vw, 85vw"}),(0,s.jsx)("div",{className:"absolute top-1/2 bottom-1/2 left-1/2 flex -translate-x-half translate-y-half transform cursor-pointer items-center justify-center transition duration-100 group-hover:opacity-70",children:(0,s.jsx)(H(),{src:"/images/video-play-button.png",alt:"",width:136,height:136,className:"size-90 sm:size-[128px]"})})]}),h&&(0,s.jsx)("div",{className:(0,c.cn)("absolute top-0 left-0 h-full w-full flex-col",h?"flex":"none"),children:(0,s.jsx)(V(),{className:"absolute top-0 left-0 h-full! w-full! [&>iframe]:absolute [&>iframe]:top-0 [&>iframe]:left-0 [&>iframe]:h-full [&>iframe]:w-full [&>video]:object-cover",controls:!0,url:p,playing:g,volume:1,muted:!!i})})]})})}):null};var Z=l(27211);let q=e=>{let{heading:t,description:l,value:r}=e,a=(0,d.useRef)(null),n=!1;(0,d.useEffect)(()=>{let{current:e}=a;e&&"closed"===e.dataset.state&&(e.style.height="0px")},[]);let i=(0,d.useCallback)(()=>{let{current:e}=a;e&&(n||(e.style.height="unset",n=!0))},[]);return(0,s.jsxs)(Z.q7,{value:r,className:(0,c.cn)("[&:is(:last-child)>div]:rounded-b-inherit group not-last:border-b","border-lightCream"),children:[(0,s.jsx)(Z.Y9,{children:(0,s.jsxs)(Z.l9,{className:"group group-data-[state=open]:bg-darkGreen bg-lightGreen flex w-full items-center justify-between duration-200",onClick:i,children:[(0,s.jsx)(o.EY,{className:(0,c.cn)("font-bold typography-bodySmall p-2 text-left md:p-3","text-darkGreen group-data-[state=open]:text-lightGreen"),children:t}),(0,s.jsx)(o.In,{name:"arrow_right",className:(0,c.cn)("mr-2 rotate-90 duration-300 md:mr-3","group-data-[state=open]:-rotate-90","icon-stroke-darkGreen","group-data-[state=open]:icon-stroke-white")})]})}),(0,s.jsx)(Z.UC,{ref:a,className:(0,c.cn)("overflow-hidden","data-[state=open]:animate-openRadixAccordion","data-[state=closed]:animate-closeRadixAccordion","bg-darkGreen","group-last:!rounded-b-corners"),children:(0,s.jsx)("div",{className:(0,c.cn)("wysiwyg typography-bodySmall p-2 pt-0! md:p-3 md:pb-4","[&_ul>li]:pt-[1px]","[&_p]:text-lightGreen","[&_a]:text-lightGreen!"),children:l&&(0,T.Ay)(l)})})]})},D=e=>{let{type:t="multiple",collapsible:l=!0,items:r,className:a}=e;return(0,s.jsx)(Z.bL,{type:t,collapsible:l,className:(0,c.cn)("rounded-corners","bg-darkGreen",a),children:null==r?void 0:r.map((e,t)=>(0,d.createElement)(q,{...e,key:t,value:"".concat(null==e?void 0:e.heading,"-").concat(t)}))})};l(25487),l(22588);let $=e=>{let{icon:t,link:l}=e;return(0,s.jsx)(o.FZ,{href:l,className:"hover-opacity",ariaLabel:"Go to ".concat(t," "),children:(0,s.jsx)(o.In,{name:t,className:(0,
1c.cn)("icon-color-(--Content-Cards-ContactSocialIcons)")})})},Q=e=>{let{items:t}=e,l=Object.entries(t);return(0,s.jsx)("div",{className:"flex gap-2 md:gap-3",children:null==l?void 0:l.map((e,t)=>{let[l,r]=e;return r?(0,s.jsx)($,{icon:"social_".concat(l),link:r},t):null})})},J=e=>{let{icon:t,children:l,className:r}=e;return(0,s.jsxs)("div",{className:(0,c.cn)("grid grid-cols-[auto_1fr] content-start gap-1 md:gap-2","**:text-(--Content-Cards-ContactInfo)",r),children:[(0,s.jsx)(o.In,{name:t,className:(0,c.cn)("mt-[3px] size-2 md:mt-0 md:size-3","icon-color-(--Content-Cards-ContactLabels)")}),l]})},X=e=>{let{openingHours:t}=e;return(null==t?void 0:t.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,c.cn)("my-2 h-px md:my-3","bg-(--Content-Cards-ContactCardDivider)")}),(0,s.jsx)(J,{icon:"clock",children:(0,s.jsx)("div",{className:"grid gap-1 md:gap-2",children:null==t?void 0:t.map((e,t)=>{let{days:l,hours:r}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)(o.EY,{className:"font-bold",children:l}),(0,s.jsx)(o.EY,{children:r})]},t)})})})]}):null},K=e=>{let{display:t,address:l,email:r,phone:a,mobile:n,heading:i="Our contact details",socialLinks:d,body:u,displayOpenHours:m,openingHours:p}=e;return t?(0,s.jsxs)("section",{className:(0,c.cn)("rounded-corners h-full p-4","bg-(--Content-Cards-ContactCardBackgroundColor)"),children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[i&&(0,s.jsxs)("div",{children:[(0,s.jsx)(o.EY,{as:"h2",textStyle:"h6",className:"text-(--Content-Cards-ContactCardtHeading)",children:i}),(0,s.jsx)("div",{className:(0,c.cn)("mt-2 h-[2px] md:mt-3","bg-(--Content-Cards-ContactCardDivider)")})]}),u&&(0,s.jsx)(o.EY,{className:"text-(--Content-Cards-ContactInfo)",children:(0,T.Ay)(u)}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[l&&(0,s.jsx)(J,{icon:"pin",className:"md:mr-[20px]",children:(0,s.jsx)(o.EY,{children:(0,T.Ay)(l)})}),a&&(0,s.jsx)(J,{icon:"phone",children:(0,s.jsx)(o.FZ,{href:"tel:".concat(a),children:a})}),n&&(0,s.jsx)(J,{icon:"phone",children:(0,s.jsx)(o.FZ,{href:"tel:".concat(n),children:n})}),r&&(0,s.jsx)(J,{icon:"email",className:"w-full",children:(0,s.jsx)(o.EY,{as:"link",href:"mailto:".concat(r),className:"text-(--Content-Cards-ContactLink)!",children:r})})]}),d&&(0,s.jsx)(Q,{items:d})]}),m&&(0,s.jsx)(X,{openingHours:p})]}):null};var ee=l(77384),et=l(54125);let el=e=>{let{className:t,...l}=e;return(0,s.jsx)("div",{className:(0,c.cn)("cardTextWrapper flex h-100 flex-col",t),...l})},er=e=>{let{className:t,...l}=e;return(0,s.jsx)(o._V,{...l,className:(0,c.cn)("cardImage overflow-hidden","group-[:has(a):hover]:[&>img]:scale-110",t)})},ea=e=>{let{className:t,...l}=e;return(0,s.jsx)("p",{className:(0,c.cn)("eyebrow typography-footnote font-semibold md:mb-[-8px]","text-(--Content-Cards-newsCardDate)",t),...l})},en=(0,m.F)(["relative flex h-100 overflow-hidden duration-200","[&>figure]:shrink-0 [&>figure]:rounded-[inherit]","[&_a]:expand-pseudo"],{variants:{contained:{true:"shadow-soft"},rounded:{true:"rounded-corners"},disabled:{true:"pointer-events-none cursor-not-allowed opacity-30"},alignment:{left:"text-left [&_.cardTextWrapper]:items-start",center:"text-center [&_.cardTextWrapper]:items-center"},direction:{column:"flex-col [&>.cardImage]:w-full",row:"flex-row [&>.cardImage]:w-[30%]"},scaleImageOnHover:{true:"group [&>.cardImage>img]:scale-100 [&>.cardImage>img]:duration-500"}},compoundVariants:[{contained:!0,rounded:!0,direction:"row",className:"[&>.cardImage]:rounded-bl-inherit [&>.cardImage]:rounded-tr-none [&>.cardImage]:rounded-br-none"},{contained:!0,rounded:!0,direction:"column",className:"[&>.cardImage]:rounded-tl-inherit [&>.cardImage]:rounded-tr-inherit [&>.cardImage]:rounded-br-none [&>.cardImage]:rounded-bl-none"},{contained:!1,alignment:"left",direction:"column",className:"[&_.cardTextWrapper]:px-0"}],defaultVariants:{direction:"column",alignment:"left",contained:!1,rounded:!1,disabled:!1,scaleImageOnHover:!0}}),ei=e=>{let{className:t,children:l,...r}=e;return(0,s.jsx)("div",{className:(0,c.cn)(en(r),t),children:l})},es=e=>{let{image:t,heading:l,headingLinkProps:r,description:a,uri:n,target:i,buttonText:d,buttonVariant:m,icon:p,eyebrow:h,categories:x,fadeInOnLoad:g,displayPlaceholderImage:f,sizes:v,className:y,paragraphStyles:b,...w}=(e=>{var t,l,r,a;let{wpPost:n,image:i,heading:s,description:o,uri:d,buttonText:m,date:p,eyebrow:h,categories:x,link:g,headingStyles:f,...v}=e,y=s||(null==n?void 0:n.title),b=o||(null==n?void 0:n.excerpt),w=(null==i?void 0:i.sourceUrl)||(null==i||null==(t=i.node)?void 0:t.sourceUrl)||(null==n||null==(r=n.featuredImage)||null==(l=r.node)?void 0:l.sourceUrl),j=w&&{src:w,alt:"Thumbn
1ail for ".concat(y)},N=d||(null==g?void 0:g.url)||(null==n?void 0:n.uri),k=null==g?void 0:g.target,C=m||!!N&&(null==g?void 0:g.title),S=(p||(null==n?void 0:n.date))&&(0,et._)(p||(null==n?void 0:n.date),"DD MMM YY"),_=x||(null==n||null==(a=n.categories)?void 0:a.nodes),B=N?{href:!C&&N,target:k,className:(0,c.cn)("duration-150 group-hover:text-(--Content-Cards-cardHeadingHover)",f)}:{className:f};return{image:j,heading:(0,u.o)(y),headingLinkProps:B,description:(0,u.o)(b),uri:N,target:k,categories:_,buttonText:C,date:S,eyebrow:h||S,...v}})(e),j=!!t||f;return(0,s.jsxs)(ei,{contained:!0,rounded:!0,alignment:"center",hasImage:!!j,className:(0,c.cn)("border-(--Content-Cards-cardBorder) bg-(--Content-Cards-cardColour)",n&&"hover:bg-(--Content-Cards-cardHover)",y,"group"),...w,children:[(0,s.jsx)(er,{sizes:v,quality:100,fadeInOnLoad:g,displayPlaceholderImage:f,className:"aspect-[1.77]",...t}),(0,s.jsxs)(el,{className:"gap-2 p-3 md:p-5",children:[h&&(0,s.jsx)(ea,{children:h}),p&&(0,s.jsx)(o.In,{...p,className:"size-6"}),l&&(0,s.jsx)(o.EY,{as:"h2",textStyle:"h4",className:"text-(--Content-Cards-cardHeading)",children:(0,s.jsx)(o.FZ,{...r,children:l})}),a&&(0,s.jsx)(o.EY,{as:"bodySmall",className:(0,c.cn)("text-(--Content-Cards-cardText)",b),children:a}),(d&&n||x)&&(0,s.jsxs)(el,{className:"justify-end gap-2",children:[(0,s.jsx)(o.$n,{variant:m||"textLink",href:n,target:i,ariaLabel:"Click to read more about ".concat(l),className:(0,c.cn)(!m&&"text-(--Content-Cards-cardTextLink) hover:text-(--Content-Cards-cardTextLinkHover)"),children:d}),!!(null==x?void 0:x.length)&&(0,s.jsx)("div",{className:"flex flex-row flex-wrap gap-1",children:x.map((e,t)=>(0,s.jsx)(o.vw,{...e},t))})]})]})]})};l(88734),l(92213),l(83571);let eo=e=>{let{images:t}=e,{nextButtonProps:l,previousButtonProps:r,carouselProps:a,selectedIndex:n}=(0,p.gU)({watchDrag:!0,loop:!0});if(!(null==t?void 0:t.length))return null;let i=t[n]||t[0],d=t.length>1;return(0,s.jsxs)("div",{className:"text-darkCharcoal mx-auto flex w-full max-w-1120 flex-col gap-2",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(p.FN,{...a,aspectRatioStyles:"aspect-[2/1]",slideStyles:"basis-full",gapStyles:"gap-0",className:"w-full",children:t.map((e,t)=>(0,s.jsx)(o._V,{src:e.sourceUrl,alt:e.altText||"",priority:0===t,className:"aspect-[2/1] w-full object-cover",sizes:"(max-width: 1199px) calc(100vw - 48px), 1120px"},"".concat(e.sourceUrl||"carousel-image","-").concat(t)))}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.mA,{...r,label:"Previous carousel image",direction:"left",className:"absolute top-1/2 left-1 z-20 -translate-y-1/2 sm:-left-[24px] md:-left-[24px]"}),(0,s.jsx)(p.mA,{...l,label:"Next carousel image",direction:"right",className:"absolute top-1/2 right-1 z-20 -translate-y-1/2 sm:-right-[24px] md:-right-[34px]"})]})]}),(0,s.jsxs)("div",{className:"typography-footnote flex min-h-[20px] items-start gap-3 leading-[1.3]",children:[(0,s.jsx)("figcaption",{className:"font-light min-w-0 flex-1 italic",children:i.caption}),(0,s.jsxs)("p",{className:"font-light shrink-0 text-right",children:[(0,s.jsx)("span",{className:"font-medium",children:n+1})," of"," ",t.length]})]})]})};var ed=l(18449);let ec=e=>{let{sideScroll:t,leftHidden:l,rightHidden:r,showArrows:a}=e;return a?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 md:mt-3",children:[(0,s.jsx)("button",{type:"button","aria-label":"Scroll facts left",onClick:()=>t("left"),className:(0,c.cn)("flex size-32 items-center justify-center duration-150",l&&"pointer-events-none opacity-20"),children:(0,s.jsx)(o.In,{name:"arrow_right",className:"icon-stroke-darkBlue size-4 rotate-180"})}),(0,s.jsx)("button",{type:"button","aria-label":"Scroll facts right",onClick:()=>t("right"),className:(0,c.cn)("flex size-32 items-center justify-center duration-150",r&&"pointer-events-none opacity-20"),children:(0,s.jsx)(o.In,{name:"arrow_right",className:"icon-stroke-darkBlue size-4"})})]}):null},eu=e=>{let{heading:t,description:l,items:r=[],id:a,className:n}=e,i=(0,I.Q)(["(min-width: 700px)"],[!0],!1),d=r.filter(e=>e.image||e.text),u=d.length,{containerRef:m,arrowProps:p}=(0,ed.U)({cardWidth:190,gapWidth:24,cardsToScroll:i?2:1});
1return t||l||u?(0,s.jsxs)("section",{className:(0,c.cn)("grid w-full md:grid-cols-[4fr_8fr]",n),id:a||void 0,children:[(0,s.jsxs)("div",{className:"bg-lightBlue text-darkBlue flex flex-col items-center justify-center px-4 py-5 text-center md:px-6 md:py-8 lg:px-10",children:[(0,s.jsxs)("div",{className:"relative mb-3 flex size-128 items-center justify-center md:size-160",children:[(0,s.jsx)("img",{src:"/images/facts-number-bg.png",alt:"",className:"absolute-full object-contain"}),(0,s.jsx)("span",{className:"typography-largeHeading text-darkBlue relative z-10",children:u})]}),t&&(0,s.jsx)("h3",{className:"typography-h3 text-darkBlue max-w-360",children:t}),l&&(0,s.jsx)("p",{className:"typography-bodySmall text-darkBlue mt-2 max-w-360",children:l})]}),(0,s.jsxs)("div",{className:"bg-midPurple flex min-w-0 flex-col justify-center gap-4 overflow-hidden pt-5 pb-3 md:py-8 lg:pt-130 lg:pb-76",children:[u>0&&(0,s.jsx)("div",{ref:m,className:"flex gap-3 overflow-auto px-4 md:px-6 lg:px-10",children:d.map((e,t)=>{let l=(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)})(e.image),r=(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||""})(e.image);return(0,s.jsxs)("article",{className:"text-darkBlue flex w-190 shrink-0 flex-col items-center text-center",children:[l&&(0,s.jsx)(o._V,{src:l,alt:r,className:"size-160 shrink-0",sizes:"160px"}),e.text&&(0,s.jsx)("p",{className:"typography-bodySmall text-darkBlue mt-2",children:e.text})]},"".concat(e.text||"fact","-").concat(t))})}),(0,s.jsx)(ec,{...p})]})]}):null};var em=l(69484),ep=l(82801);let eh=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?"ManualTeaserItem"===e.__typename?{title:e.title||void 0,excerpt:e.excerpt||void 0,uri:e.uri||void 0,target:e.target||void 0,linkText:e.linkText||void 0,featuredImage:e.featuredImage}:{favouriteId:("Event"===e.__typename||"Operator"===e.__typename)&&e.databaseId||void 0,eyebrow:t&&e.eyebrow||void 0,title:e.title||void 0,excerpt:"excerpt"in e&&e.excerpt||void 0,uri:"Post"===e.__typename?(0,em.P)(e.uri):e.uri||void 0,linkText:"Learn more",featuredImage:e.featuredImage}:null},ex=e=>{var t;let{card:l,variant:r}=e,a=null==(t=l.featuredImage)?void 0:t.node;return(0,s.jsx)(o._V,{displayPlaceholderImage:!0,src:(null==a?void 0:a.sourceUrl)||void 0,alt:(null==a?void 0:a.altText)||(null==a?void 0:a.title)||"",className:(0,c.cn)("w-full overflow-hidden","two"===r?"aspect-[1.695] lg:aspect-auto lg:h-[387px]":"aspect-[1.696] lg:aspect-auto lg:h-[250px]"),sizes:"two"===r?"(max-width: 699px) 100vw, (max-width: 1279px) 50vw, 656px":"(max-width: 699px) 100vw, (max-width: 1279px) 33vw, 424px"})},eg=e=>{let{card:t,variant:l,maskBand:r=!1,fullCardLink:a=!1}=e,n=t.linkText||"Learn more";return(0,s.jsxs)("div",{className:(0,c.cn)("relative flex flex-1 flex-col gap-2 pt-3 pr-3 pb-4 md:gap-3 md:pb-5","two"===l&&"lg:pt-5","three"===l&&"lg:pt-3"),children:[r&&(0,s.jsx)("div",{"aria-hidden":"true",className:"teasers-band-mask bg-lightCream pointer-events-none absolute top-0 left-1/2 z-0 h-[200vh] w-[200vw] -translate-x-1/2"}),t.eyebrow&&(0,s.jsx)("span",{className:"typography-eyebrow text-darkBurgundy relative z-10",children:(0,u.o)(t.eyebrow)}),t.title&&(0,s.jsx)(o.EY,{as:"h3",textStyle:"h5",className:"text-darkBurgundy group-hover/card:text-darkBlue relative z-10 text-left transition-colors",children:(0,u.o)(t.title)}),t.excerpt&&(0,s.jsx)(o.EY,{as:"bodySmall",className:"text-darkCharcoal relative z-10 text-left",children:(0,u.o)(t.excerpt)}),t.uri&&n&&a&&(0,s.jsx)("span",{className:"typography-link typography-bodySmall text-darkBurgundy group-hover/card:text-darkBlue relative z-10 mt-auto text-left transition-colors",children:n}
1),t.uri&&n&&!a&&(0,s.jsx)(o.FZ,{href:t.uri,target:t.target||void 0,className:"typography-link typography-bodySmall text-darkBurgundy hover:text-darkBurgundy group-hover/card:text-darkBlue relative z-10 mt-auto text-left transition-colors",children:n})]})},ef=e=>{let{card:t,variant:l,maskBand:r=!1}=e,{isFavourite:a,toggleFavourite:n}=(0,ep.G)(),i=!!t.favouriteId&&a(t.favouriteId),d=(0,c.cn)("group/card relative z-10 flex min-w-0 flex-col no-underline",t.uri&&"cursor-pointer"),u=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ex,{card:t,variant:l}),(0,s.jsx)(eg,{card:t,variant:l,maskBand:r,fullCardLink:!!t.uri})]});return(0,s.jsxs)("article",{className:"relative min-w-0",children:[t.favouriteId&&t.uri&&(0,s.jsx)("button",{type:"button",onClick:()=>t.favouriteId&&n(t.favouriteId),"aria-label":"".concat(i?"Remove":"Add"," ").concat(t.title||"listing"," ").concat(i?"from":"to"," favourites"),"aria-pressed":i,className:"focus-visible bg-lightCream text-darkBurgundy hover:bg-darkBurgundy hover:text-lightCream absolute top-2 right-2 z-20 flex size-32 items-center justify-center rounded-full border-[1.5px] border-current duration-200",children:(0,s.jsx)(o.In,{name:"heart_outline",className:(0,c.cn)("size-18",i&&"[&_path]:fill-current")})}),t.uri?(0,s.jsx)(o.FZ,{href:t.uri,target:t.target||void 0,className:d,children:u}):(0,s.jsx)("div",{className:d,children:u})]})},ev=e=>{let{id:t,className:l,data:r}=e,a=(e=>"two"===e||"three"===e)(null==r?void 0:r.variant)?r.variant:"three",n=((null==r?void 0:r.mergedItems)||[]).map(e=>eh(e,!!(null==r?void 0:r.sourceConfigured))).filter(e=>!!e),i=null==r?void 0:r.link,d=(null==i?void 0:i.url)||void 0;return n.length?(0,s.jsxs)("section",{id:t,className:(0,c.cn)("overflow-hidden pb-3 md:pb-5 lg:pb-6",l),children:[(0,s.jsx)("div",{className:(0,c.cn)("pt-5 md:pt-8 lg:pt-10","two"===a?"bg-lightBlue":"bg-darkBlue"),children:(0,s.jsxs)("div",{className:"main-column flex flex-col items-center gap-4 md:gap-6 lg:gap-8",children:[(0,s.jsxs)("div",{className:(0,c.cn)("flex max-w-[870px] flex-col items-center gap-3 text-center","two"===a?"text-darkBlue":"text-lightBlue"),children:[(null==r?void 0:r.heading)&&(0,s.jsx)(o.EY,{as:"h2",className:"text-current",children:(0,u.o)(r.heading)}),(null==r?void 0:r.description)&&(0,s.jsx)(o.EY,{as:"bodySmall",className:"text-current",children:(0,u.o)(r.description)})]}),(0,s.jsx)("div",{className:(0,c.cn)("grid w-full items-start gap-3 md:gap-lg","two"===a?"md:grid-cols-2":"md:grid-cols-3"),children:n.map((e,t)=>(0,s.jsx)(ef,{card:e,variant:a,maskBand:0===t},t))})]})}),d&&(0,s.jsx)("div",{className:"main-column relative z-20 flex justify-center pt-4 md:pt-5 lg:pt-6",children:(0,s.jsx)(o.e$,{href:d,target:null==i?void 0:i.target,className:"border-darkBurgundy text-darkBurgundy hover:border-darkBurgundy hover:bg-darkBurgundy hover:text-lightCream",children:(0,u.o)((null==i?void 0:i.title)||"View all")})})]}):null};var ey=l(63652);let eb=["content-row-theme-orange","content-row-theme-blue","content-row-theme-green","content-row-theme-charcoal"],ew=e=>{var t,l,r;let{card:a,index:n,theme:i="light",size:d="fixed",className:m,imageRef:p,compactContent:h=!1,centerContent:x=!1}=e,{isFavourite:g,toggleFavourite:f}=(0,ep.G)(),v="dark"===i,y=null;!v&&ey.F.includes(a.colorTheme)?y=a.colorTheme:!v&&a.colorTheme&&(y="theme-gold");let b=y?[y,"content-row-card-brand-theme"]:eb[n%eb.length],w=(null==(t=a.image)?void 0:t.altText)||(null==(l=a.image)?void 0:l.title)||"",j=(0,s.jsx)("div",{ref:p,className:"relative shrink-0",children:(0,s.jsx)(o._V,{src:(null==(r=a.image)?void 0:r.sourceUrl)||void 0,alt:w,className:"relative z-20 h-194 md:h-250",sizes:"(max-width: 699px) 298px, 420px",displayPlaceholderImage:!0,scaleImageOnGroupHover:!!a.href})}),N=!!(a.favouriteId&&a.href),k=!!a.favouriteId&&g(a.favouriteId),C=N?(0,s.jsx)("button",{type:"button",onClick:()=>a.favouriteId&&f(a.favouriteId),"aria-label":"".concat(k?"Remove":"Add"," ").concat(a.title||"listing"," ").concat(k?"from":"to"," favourites"),"aria-pressed":k,"data-theme":i,"data-color-theme":y?"brand":"default",className:"focus-visible absolute left-half z-30 flex size-32 -translate-x-half items-center justify-center overflow-hidden rounded-full border-[1.5px] border-(--content-row-badge-fg) bg-(--content-row-badge-bg) px-px pt-[4px] pb-[2px] text-(--content-row-badge-fg) duration-200 hover:border-(--content-row-badge-hover-fg) hover:bg-(--content-row-badge-hover-bg) hover:text-(--content-row-badge-hover-fg) data-[theme=dark]:bottom-4 data-[theme=light]:top-[calc(100%-194px)] data-[theme=light]:-translate-y-half md:data-[theme=light]:top-[calc(100%-250px)]",children:(0,s.jsx)(o.In,{name:"heart_outline",className:(0,
1c.cn)("size-18 duration-200",k&&"[&_path]:fill-current")})}):null,S=(0,s.jsxs)(s.Fragment,{children:[v&&j,(0,s.jsx)("div",{"data-theme":i,"data-color-theme":y?"brand":"default",className:(0,c.cn)("relative z-20 flex flex-col items-center px-3 pt-3 text-center text-(--content-row-card-fg) data-[color-theme=brand]:bg-(--content-row-card-bg) data-[theme=dark]:justify-center data-[theme=dark]:gap-2 data-[theme=dark]:px-2 data-[theme=dark]:pb-7 data-[theme=light]:bg-(--content-row-card-bg) data-[theme=light]:pb-4 md:data-[theme=dark]:gap-3 md:data-[theme=dark]:px-3 md:data-[theme=dark]:pt-4",!h&&"flex-1",x&&"justify-center"),children:v?(0,s.jsxs)(s.Fragment,{children:[a.eyebrow&&(0,s.jsx)("span",{className:"typography-footnote font-medium inline-flex h-32 items-center rounded-4 border-[1.5px] border-(--content-row-card-fg) px-12",children:(0,u.o)(a.eyebrow)}),(a.title||a.description||a.detail)&&(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-3 md:gap-4",children:[a.title&&(0,s.jsx)("h3",{className:"typography-h5 w-full leading-[1.15] tracking-[-0.28px] text-inherit",children:(0,u.o)(a.title)}),a.description&&(0,s.jsx)("p",{className:"typography-bodySmall md:typography-footnote text-balance",children:(0,u.o)(a.description)}),a.detail&&(0,s.jsx)("p",{className:"typography-footnote font-medium",children:(0,u.o)(a.detail)})]}),a.linkText&&(0,s.jsx)("p",{className:"typography-footnote font-medium",children:(0,u.o)(a.linkText)})]}):(0,s.jsxs)(s.Fragment,{children:[(a.eyebrow||a.title)&&(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-3",children:[a.eyebrow&&(0,s.jsx)("span",{className:"typography-footnote font-medium inline-flex h-32 items-center rounded-4 border-[1.5px] border-(--content-row-card-fg) px-12",children:(0,u.o)(a.eyebrow)}),a.title&&(0,s.jsx)("h3",{className:"typography-h5 leading-[1.15] tracking-[-0.28px] text-inherit",children:(0,u.o)(a.title)})]}),a.detail&&(0,s.jsx)("p",{className:"typography-footnote font-medium mt-auto pt-6",children:(0,u.o)(a.detail)}),a.description&&(0,s.jsx)("p",{className:"typography-bodySmall md:typography-footnote mt-3 text-balance md:mt-4",children:(0,u.o)(a.description)}),a.linkText&&(0,s.jsx)("p",{className:"typography-footnote font-medium mt-auto pt-3 md:pt-4",children:(0,u.o)(a.linkText)}),!a.detail&&!a.description&&!a.linkText&&!h&&!x&&(0,s.jsx)("div",{className:"mt-auto pt-6","aria-hidden":"true"})]})}),!v&&j]});return(0,s.jsxs)("article",{className:(0,c.cn)(b,"group group/card relative flex shrink-0 flex-col","fixed"===d&&"w-298 md:w-420","fluid"===d&&"w-298 md:w-auto md:min-w-0 md:flex-1 md:shrink",h&&"self-start",a.href&&"cursor-pointer",m),"data-theme":i,children:[a.href?(0,s.jsx)(o.FZ,{href:a.href,target:a.target||void 0,className:(0,c.cn)("flex flex-col no-underline",!h&&"h-full"),"aria-label":a.title||"View item",children:S}):(0,s.jsx)("div",{className:(0,c.cn)("flex flex-col",!h&&"h-full"),children:S}),C]})},ej=e=>{if("ManualTeaserItem"===e.__typename){var t;return(null==(t=e.link)?void 0:t.url)||e.uri||void 0}return"Post"===e.__typename?(0,em.P)(e.uri):e.uri||void 0},eN=e=>{var t,l,r;return e?"ManualTeaserItem"===e.__typename?{title:e.title||void 0,eyebrow:e.eyebrow||void 0,description:e.detail||void 0,linkText:(null==(l=e.link)?void 0:l.title)||void 0,colorTheme:e.theme||"theme-gold",href:ej(e),target:(e=>{var t;if("ManualTeaserItem"===e.__typename)return(null==(t=e.link)?void 0:t.target)||void 0})(e),image:null==(r=e.featuredImage)?void 0:r.node}:{favouriteId:("Event"===e.__typename||"Operator"===e.__typename)&&e.databaseId||void 0,title:e.title||void 0,eyebrow:e.eyebrow||void 0,href:ej(e),image:null==(t=e.featuredImage)?void 0:t.node}:null},ek=e=>{let{className:t,sideScroll:l,leftHidden:r,rightHidden:a,showArrows:n}=e;return n?(0,s.jsxs)("div",{className:(0,c.cn)("items-center gap-2",t),children:[(0,s.jsx)("button",{type:"button","aria-label":"Scroll content row left",disabled:r,onClick:()=>l("left"),className:(0,c.cn)("flex size-32 items-center justify-center duration-150",r&&"opacity-20"),children:(0,s.jsx)(o.In,{name:"arrow_right",className:"icon-stroke-[var(--content-row-section-fg)] size-4 rotate-180"})}),(0,s.jsx)("button",{type:"button","aria-label":"Scroll content row right",disabled:a,onClick:()=>
1l("right"),className:(0,c.cn)("flex size-32 items-center justify-center duration-150",a&&"opacity-20"),children:(0,s.jsx)(o.In,{name:"arrow_right",className:"icon-stroke-[var(--content-row-section-fg)] size-4"})})]}):null},eC=e=>{var t;let{id:l,className:r,data:a}=e,n=(0,I.Q)(["(min-width: 1024px)"],[!0],!1),i=(null==a?void 0:a.theme)==="dark",d=((null==a?void 0:a.mergedItems)||[]).map(eN).filter(e=>!!e),m=(null==a||null==(t=a.link)?void 0:t.url)?a.link:null,p=i?"dark":"light",{containerRef:h,arrowProps:x}=(0,ed.U)({cardWidth:n?420:298,gapWidth:n?40:8,cardsToScroll:n?2:1});return(null==a?void 0:a.heading)||(null==a?void 0:a.eyebrow)||d.length||m?(0,s.jsxs)("section",{id:l,"data-theme":p,className:(0,c.cn)("content-row flex w-full flex-col gap-4 overflow-hidden bg-(--content-row-section-bg) bg-clip-border text-(--content-row-section-fg) data-[theme=dark]:py-5 md:gap-8 md:data-[theme=dark]:py-10 data-[theme=dark]:[&_*]:bg-clip-border",r),children:[!i&&(0,s.jsx)("div",{className:"px-3",children:(0,s.jsx)("div",{className:"bg-darkBurgundy h-px w-full"})}),(0,s.jsxs)("div",{"data-theme":p,className:"main-column grid gap-3 pt-[4px] text-center text-inherit data-[theme=dark]:gap-2 data-[theme=dark]:bg-transparent md:items-center lg:grid-cols-[1fr_minmax(0,938px)_1fr] data-[theme=dark]:[&_h2]:bg-transparent",children:[(0,s.jsx)("div",{className:"flex items-center justify-center lg:justify-start",children:(null==a?void 0:a.eyebrow)&&(0,s.jsx)("span",{className:"typography-eyebrow inline-flex border border-(--content-row-section-fg) px-[6px] py-[4px] text-[12px] text-inherit md:text-[14px]",children:(0,u.o)(a.eyebrow)})}),(null==a?void 0:a.heading)&&(0,s.jsx)("h2",{"data-theme":p,className:"typography-h1 data-[theme=dark]:typography-h2 text-inherit",children:(0,u.o)(a.heading)}),(0,s.jsx)(ek,{...x,className:"!hidden justify-end lg:!flex"})]}),d.length>0&&(0,s.jsx)("div",{ref:h,className:(0,c.cn)("flex gap-1 overflow-auto pl-3 lg:gap-5",!x.showArrows&&"lg:justify-center"),children:d.map((e,t)=>(0,s.jsx)(ew,{card:e,index:t,theme:p},"".concat(e.title||"content-row-card","-").concat(t)))}),(0,s.jsx)(ek,{...x,className:"mx-auto flex lg:!hidden"}),m&&(0,s.jsxs)("div",{className:"main-column flex items-center justify-center gap-2 md:gap-4",children:[(0,s.jsx)("div",{className:"h-px min-w-px flex-1 bg-current opacity-15"}),(0,s.jsx)(o.FZ,{href:m.url,target:m.target,className:"typography-bodySmall typography-link font-medium shrink-0 text-center whitespace-nowrap text-inherit",children:(0,u.o)(m.title||"View all")}),(0,s.jsx)("div",{className:"h-px min-w-px flex-1 bg-current opacity-15"})]})]}):null};l(79484);var eS=l(4936);let e_=e=>{var t,l,r;return e?{title:e.title||void 0,excerpt:e.excerpt||void 0,uri:e.uri||(null==(t=e.link)?void 0:t.url)||void 0,target:e.target||(null==(l=e.link)?void 0:l.target)||void 0,linkText:(null==(r=e.link)?void 0:r.title)||"Learn more",featuredImage:e.featuredImage||void 0}:null},eB=e=>{let{id:t,className:l,data:r}=e,a=((null==r?void 0:r.items)||[]).map(e_).filter(e=>!!e);return a.length?(0,s.jsx)("section",{id:t,className:(0,c.cn)(l,"overflow-hidden"),children:(0,s.jsx)("div",{className:"-mb-2 grid gap-2 sm:grid-cols-2 md:-mb-5 md:grid-cols-3 md:gap-5",children:a.map((e,t)=>(0,s.jsx)(eS.J,{post:e,alwaysColumn:!0},"".concat(e.uri||e.title,"-").concat(t)))})}):null};var eI=l(70193),ez=l(29598);function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(null,arguments)}let eT=function(e){return d.createElement("svg",eA({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 39 72",width:"1em",height:"1em"},e),r||(r=d.createElement("path",{stroke:"#521212",strokeWidth:3,d:"m1.06 1.06 36 36M1.06 70.81l36-36"})))};function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(null,arguments)}let eE=function(e){return d.createElement("svg",eP({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 44",width:"1em",height:"1em"},e),a||(a=d.createElement("path",{stroke:"#521212",strokeWidth:2,d:"m.707.707 21.678 21.678M.707 42.707 22.385 21.03"})))},eF=e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)},eL=e=>{var t;return(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||(null==e?void 0:e.title)||""},eG=e=>{var t,l;
1return e.time||e.image||e.heading||e.description||(null==(t=e.link)?void 0:t.url)||(null==(l=e.link)?void 0:l.title)},eM="a,button,[data-locals-cursor-ignore]",eW=[.33,1,.68,1],eO={hidden:{opacity:0,y:18},visible:{opacity:1,y:0,transition:{duration:.55,ease:eW}}},eR={hidden:{},visible:{transition:{staggerChildren:.12}}},eH={hidden:{},visible:{transition:{delayChildren:.12,staggerChildren:.12}}},eU={hidden:{opacity:0,width:"0%"},visible:{opacity:1,width:"100%",transition:{width:{delay:.2,duration:1.6,ease:eW},opacity:{delay:.7,duration:1.6,ease:eW}}}},eV=d.forwardRef((e,t)=>{let{cursor:l}=e;return(0,s.jsx)("div",{"aria-hidden":"true",className:(0,c.cn)("pointer-events-none absolute top-0 left-0 z-40 hidden size-64 place-items-center transition-opacity duration-300 will-change-transform md:grid",l.visible&&l.disabled&&"opacity-50",l.visible&&!l.disabled&&"opacity-100",!l.visible&&"opacity-0"),ref:t,style:{transform:"translate3d(-999px, -999px, 0)"},children:(0,s.jsx)(o.In,{name:"circle_arrow_right",className:(0,c.cn)("[&_path]:stroke-midBrown [&_rect]:fill-darkBurgundy [&_rect]:stroke-midBrown size-64","prev"===l.direction&&"rotate-180")})})});eV.displayName="LocalsFeatureCursor";let eY=e=>{let{className:t}=e;return(0,s.jsx)("div",{className:(0,c.cn)("absolute top-half left-0 -z-10 w-120 -translate-y-half",t),children:(0,s.jsxs)(z.P.div,{className:"flex items-center overflow-hidden",variants:eU,children:[(0,s.jsx)("div",{className:(0,c.cn)("bg-darkBurgundy h-[2px] flex-1 md:h-[3px]")}),(0,s.jsx)(eE,{className:"h-42 w-22 shrink-0 -translate-x-18 md:hidden"}),(0,s.jsx)(eT,{className:"hidden h-70 w-36 shrink-0 md:block md:-translate-x-32"})]})})},eZ=e=>{let{link:t}=e,{href:l,label:r,target:a}=(e=>{var t;return{href:(null==e?void 0:e.url)||"/",label:(null==e||null==(t=e.title)?void 0:t.trim())||"Keep Exploring",target:null==e?void 0:e.target}})(t);return(0,s.jsx)(z.P.div,{className:"bg-darkBurgundy hover:bg-lightPink text-lightCream hover:text-darkBurgundy hover:icon-stroke-darkBurgundy icon-stroke-lightCream z-30 mt-7 flex size-90 shrink-0 translate-x-2 items-center justify-center rounded-half text-center duration-150 md:mt-128 md:size-162 md:translate-x-7","data-locals-slide":!0,variants:eO,children:(0,s.jsxs)(o.FZ,{href:l,target:a,className:"font-heading font-medium expand-pseudo flex flex-col text-[11px] leading-none uppercase md:text-[18px]",children:[r,(0,s.jsx)(o.In,{name:"arrow_right",className:"mx-auto mt-1 size-2 md:mt-12 md:size-4"})]})})},eq=e=>{let{image:t,introText:l}=e,r=eF(t);return(0,s.jsxs)(z.P.article,{className:"relative grid w-327 shrink-0 justify-items-center md:mr-130 md:w-423","data-locals-slide":!0,variants:eH,children:[(0,s.jsxs)("div",{className:"relative size-216 rounded-half md:size-423",children:[(0,s.jsx)(z.P.div,{className:"absolute-full rounded-half",variants:eO,children:r&&(0,s.jsx)(o._V,{src:r,alt:eL(t),displayPlaceholderImage:!0,className:"absolute-full rounded-half object-cover",sizes:"(min-width: 1024px) 423px, 216px"})}),(0,s.jsx)(eY,{className:"w-280 md:-left-108 md:w-770"}),(0,s.jsx)(z.P.div,{className:"border-darkBurgundy bg-lightCream absolute top-half -left-[70px] z-30 flex size-90 -translate-y-half items-center justify-center rounded-half border-2 pt-1 text-center md:-left-108 md:size-162 md:-translate-x-full md:border-3",variants:eO,children:(0,s.jsxs)("span",{className:"font-heading font-medium text-[11px] leading-none uppercase md:text-[18px]",children:["Launnie",(0,s.jsx)("br",{}),"Like A",(0,s.jsx)("br",{}),"Local"]})})]}),l&&(0,s.jsx)(z.P.div,{className:"typography-bodySmall mt-3 max-w-425 text-center md:mt-4",variants:eO,children:(0,T.Ay)(l)})]})},eD=e=>{var t;let{item:l,isLast:r,keepExploringCta:a}=e,n=eF(l.image),i=eL(l.image);return(0,s.jsxs)(z.P.article,{className:"relative flex shrink-0 gap-3 md:gap-5","data-locals-slide":!0,variants:eO,children:[(0,s.jsxs)("div",{className:"relative w-auto shrink-0",children:[n&&(0,s.jsx)(o._V,{src:n,alt:i,displayPlaceholderImage:!0,className:"aspect-[337/423] h-216 md:h-423",sizes:"(min-width: 1024px) 337px, 280px"}),l.time&&(0,s.jsx)("span",{className:"typography-eyebrow border-darkBurgundy bg-midBrown text-darkBurgundy font-bold absolute top-half left-0 z-20 -translate-x-half -translate-y-half border-2 px-1 py-1",children:l.time})]}
1),(0,s.jsx)(eY,{className:(0,c.cn)("w-530 md:left-0 md:w-916",r&&"w-600 md:w-1000")}),(0,s.jsxs)("div",{className:(0,c.cn)("text-darkBurgundy grid min-h-full w-270 grid-rows-[50%_1fr] gap-12 md:w-425 md:gap-3"),children:[l.heading&&(0,s.jsx)("h3",{className:"typography-h3 self-end pb-14 uppercase md:pb-20",children:l.heading}),(0,s.jsxs)("div",{className:"grid gap-2 md:gap-3",children:[l.description&&(0,s.jsx)("div",{className:"typography-bodySmall",children:(0,T.Ay)(l.description)}),(null==(t=l.link)?void 0:t.url)&&(0,s.jsx)(o.FZ,{href:l.link.url,target:l.link.target,className:"typography-link typography-bodySmall text-darkBurgundy! mt-auto",children:l.link.title||"Discover"})]})]}),r&&(0,s.jsx)(eZ,{link:a})]})},e$=e=>{var t;let{labelImage:l,introText:r,people:a=[],className:n,id:i}=e,u=(0,I.Q)(["(min-width: 1024px)"],[!0],!1),[m,p]=d.useState(0),[h,x]=d.useState(!1),[g,f]=d.useState({canScrollNext:!1,canScrollPrev:!1}),[v,y]=d.useState({disabled:!0,direction:"next",visible:!1}),b=d.useRef(null),w=d.useRef(null),j=(0,ez.W)(w,{once:!0,amount:.2}),N=d.useRef(null),k=d.useRef(null),C=d.useRef({x:-999,y:-999}),S=d.useRef({disabled:!0,direction:"next",visible:!1}),_=d.useRef(null),B=a.filter(e=>{var t;return e.name||e.dropdownLabel||e.image||(null==(t=e.recommendations)?void 0:t.some(eG))}),A=B[m]||B[0],T=(e=>(null==e?void 0:e.name)||(null==e?void 0:e.dropdownLabel)||"")(A),P=eF(l),E=(null==A||null==(t=A.recommendations)?void 0:t.filter(eG))||[];(0,eI.g)(b,()=>x(!1));let F=d.useCallback(()=>{let e=w.current;if(!e)return;let t=e.scrollWidth-e.clientWidth,l={canScrollPrev:e.scrollLeft>4,canScrollNext:e.scrollLeft<t-4};f(e=>e.canScrollPrev===l.canScrollPrev&&e.canScrollNext===l.canScrollNext?e:l)},[]),L=d.useCallback(()=>{null===_.current&&(_.current=window.requestAnimationFrame(()=>{_.current=null,F()}))},[F]),G=d.useCallback(e=>{let t=w.current;if(!t)return;let l=Math.max(0,Math.min(e,t.scrollWidth-t.clientWidth));t.scrollTo({left:l,behavior:"smooth"}),L()},[L]),M=d.useCallback(e=>{var t,l;let r=w.current;if(!r)return;let a=r.scrollWidth-r.clientWidth,n=r.scrollLeft,i=(e=>Array.from(e.querySelectorAll("[data-locals-slide]")).map(t=>((e,t)=>t.getBoundingClientRect().left-e.getBoundingClientRect().left+e.scrollLeft)(e,t)))(r).map(e=>Math.max(0,Math.min(e,a)));G("next"===e?null!=(t=i.find(e=>e>n+4))?t:a:null!=(l=i.slice().reverse().find(e=>e<n-4))?l:0)},[G]),W=d.useCallback(e=>{let t=e.currentTarget.getBoundingClientRect();return e.clientX-t.left<t.width/2?"prev":"next"},[]),O=d.useCallback(e=>"prev"===e?!g.canScrollPrev:!g.canScrollNext,[g.canScrollNext,g.canScrollPrev]),R=d.useCallback(e=>{(S.current.visible!==e.visible||S.current.direction!==e.direction||S.current.disabled!==e.disabled)&&(S.current=e,y(e))},[]),H=d.useCallback((e,t)=>{C.current={x:e,y:t},null===k.current&&(k.current=window.requestAnimationFrame(()=>{if(k.current=null,!N.current)return;let{x:e,y:t}=C.current;N.current.style.transform="translate3d(".concat(e-32,"px, ").concat(t-32,"px, 0)")}))},[]),U=d.useCallback(e=>{if(!u)return;if(e.target instanceof Element&&e.target.closest(eM))return void R({...S.current,visible:!1});let t=e.currentTarget.getBoundingClientRect(),l=W(e);H(e.clientX-t.left,e.clientY-t.top),R({disabled:O(l),direction:l,visible:!0})},[W,O,u,H,R]),V=d.useCallback(e=>{if(!u||h||e.target instanceof Element&&e.target.closest(eM))return;let t=W(e);O(t)||M(t)},[W,O,u,h,M]),Y=d.useCallback(e=>{if(u&&!(e.target instanceof Element&&e.target.closest(eM))){if("ArrowLeft"===e.key&&g.canScrollPrev){e.preventDefault(),M("prev");return}"ArrowRight"===e.key&&g.canScrollNext&&(e.preventDefault(),M("next"))}},[u,M,g.canScrollNext,g.canScrollPrev]);return(d.useEffect(()=>{m<B.length||p(0)},[m,B.length]),d.useEffect(()=>{var e;null==(e=w.current)||e.scrollTo({left:0}),L()},[L,m]),d.useEffect(()=>{let e=w.current;if(!e)return;let t=new ResizeObserver(L);return e.addEventListener("scroll",L,{passive:!0}),t.observe(e),L(),()=>{e.removeEventListener("scroll",L),t.disconnect(),null!==_.current&&(window.cancelAnimationFrame(_.current),_.current=null)}},[L]),d.useEffect(()=>{S.current.visible&&R({...S.current,disabled:O(S.current.direction)})},[O,R]),d.useEffect(()=>()=>{null!==k.current&&window.cancelAnimationFrame(k.current)}
1,[]),P||r||B.length)?(0,s.jsxs)("section",{className:(0,c.cn)("text-darkBurgundy relative isolate overflow-hidden md:cursor-none",n),id:i||void 0,onClick:V,onKeyDown:Y,onMouseLeave:()=>R({...S.current,visible:!1}),onMouseMove:U,role:"button",tabIndex:0,children:[(0,s.jsx)("div",{className:"bg-midBrown relative pt-7 pb-[140px] md:pt-96 md:pb-[248px]",children:(0,s.jsxs)(z.P.div,{className:"mx-auto grid w-full justify-items-center px-initGutter sm:px-smGutter md:w-500 md:px-0",initial:"hidden",variants:eR,viewport:{once:!0,amount:.35},whileInView:"visible",children:[P&&(0,s.jsx)(z.P.div,{variants:eO,children:(0,s.jsx)(o._V,{inheritSize:!0,src:P,alt:eL(l),className:"h-auto w-272 md:w-432",sizes:"(min-width: 1024px) 432px, 310px"})}),(0,s.jsxs)(z.P.div,{className:"relative z-50 mt-1 md:max-w-none md:cursor-auto","data-locals-cursor-ignore":!0,ref:b,variants:eO,children:[T&&(0,s.jsxs)("button",{type:"button",className:"typography-h5 items-baseline justify-center gap-x-1 text-center leading-[1.2] uppercase md:flex-nowrap","aria-expanded":h,onClick:()=>x(e=>!e),children:["According ",(0,s.jsx)("br",{className:"sm:hidden"})," to",(0,s.jsxs)("span",{className:"ml-1 inline-flex items-center gap-[4px]",children:[(0,s.jsx)("span",{className:"border-darkBurgundy font-medium border-b-2",children:T}),(0,s.jsx)(o.In,{name:"chevron_down",className:(0,c.cn)("size-12 md:size-16",h&&"rotate-180")})]})]}),h&&B.length>1&&(0,s.jsx)("div",{className:"bg-darkBurgundy absolute top-full left-half z-50 mt-2 w-320 -translate-x-half py-2 text-left shadow-soft md:w-424",children:B.map((e,t)=>{let l=(e=>(null==e?void 0:e.dropdownLabel)||(null==e?void 0:e.name)||"")(e);return(0,s.jsx)("button",{className:(0,c.cn)("typography-bodyLarge block w-full px-3 py-2 text-left duration-150",t===m?"bg-lightPink text-darkBurgundy":"text-lightCream hover:bg-lightPink hover:text-darkBurgundy"),onClick:()=>{p(t),x(!1)},type:"button",children:l},"".concat(l||"person","-").concat(t))})})]})]})}),(0,s.jsx)("div",{ref:w,className:(0,c.cn)("relative z-30 -mb-[108px] flex -translate-y-[108px] items-start gap-7 overflow-x-auto pb-3","pr-[calc(50%-40px)] pl-[calc(50%-160px)]","md:-mb-[211.5px] md:-translate-y-[211.5px] md:gap-160 md:pl-[calc(50vw-216px)]"),children:(0,s.jsxs)(z.P.div,{animate:j?"visible":"hidden",className:"flex w-max items-start gap-7 md:gap-160",initial:"hidden",variants:eH,children:[(0,s.jsx)(eq,{image:null==A?void 0:A.image,introText:r}),(0,s.jsx)(z.P.div,{className:"flex gap-110 md:gap-160",variants:eH,children:null==E?void 0:E.map((e,t)=>(0,s.jsx)(eD,{item:e,isLast:t===E.length-1,keepExploringCta:null==A?void 0:A.keepExploringCta},"".concat(e.heading||"recommendation","-").concat(t)))})]},m)}),(0,s.jsx)(eV,{cursor:v,ref:N})]}):null},eQ=e=>{var t;let{image:l,text:r,imagePosition:a="left",reduceLeftSidePadding:n,id:i,className:d}=e,u=(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)})(l),m="right"===a,p=(null==l||null==(t=l.node)?void 0:t.altText)||(null==l?void 0:l.altText)||"";return u||r?(0,s.jsxs)("section",{className:(0,c.cn)("grid md:grid-cols-2",d),id:i||void 0,children:[u&&(0,s.jsx)(o._V,{src:u,alt:p,inheritSize:!0,className:(0,c.cn)(m&&"md:order-2"),sizes:"(min-width: 1024px) 50vw, 100vw"}),(0,s.jsx)("div",{className:(0,c.cn)("max-w-1050 items-center px-initGutter py-5 sm:px-smGutter md:sticky md:top-0 md:self-start md:pt-60 md:pb-0 lg:pt-90","md:px-0",m?"md:order-1 md:ml-smGutter mc:ml-mainColumnGutter":"md:mr-smGutter mc:mr-mainColumnGutter"),children:r&&(0,s.jsx)("div",{className:(0,c.cn)("wysiwyg md:px-[16%]",n&&"md:pl-0"),children:(0,T.Ay)(r)})})]}):null},eJ=e=>{let{children:t,variant:l,className:r}=e;return(0,s.jsx)("div",{className:(0,c.cn)("flex items-center justify-center md:w-26","pill"===l?"md:h-115":"md:h-160"),children:(0,s.jsx)("span",{className:(0,c.cn)("typography-eyebrow border-lightCream text-lightCream inline-flex w-fit items-center justify-center border px-[6px] py-[4px] text-center whitespace-nowrap","pill"===l?"rounded-half px-22 py-1":"rounded-none","md:-rotate-90",r),children:t})})},eX=e=>{let{tag1:t,tag2:l,heading:r,text:a,id:n,className:i}=e;
1return t||l||r||a?(0,s.jsxs)("section",{className:(0,c.cn)("grid w-full md:grid-cols-2 md:items-stretch",i),id:n||void 0,children:[(0,s.jsxs)("div",{className:"bg-darkBurgundy text-lightCream flex flex-col items-center justify-center gap-3 px-3 py-5 md:flex-row md:gap-4 md:px-64 md:pt-120 md:pb-136",children:[t&&(0,s.jsx)(eJ,{variant:"pill",children:t}),r&&(0,s.jsx)("h2",{className:"typography-largeHeading text-lightCream max-w-650 text-center md:flex-1 md:text-[60px] lg:text-[72px] bg:text-[96px]",children:r}),l&&(0,s.jsx)(eJ,{variant:"rectangle",children:l})]}),(0,s.jsx)("div",{className:"bg-lightOrange text-darkBurgundy flex items-center justify-center px-3 py-4 text-center md:px-120 md:py-160",children:a&&(0,s.jsx)("div",{className:"wysiwyg text-darkBurgundy [&_a]:!text-darkBurgundy [&_a]:hover:!text-darkBurgundy [&_h1]:!text-darkBurgundy [&_h2]:!text-darkBurgundy [&_h3]:!text-darkBurgundy [&_h4]:!text-darkBurgundy [&_h5]:!text-darkBurgundy [&_h6]:!text-darkBurgundy [&_li]:!text-darkBurgundy [&_p]:!text-darkBurgundy [&_.has-large-font-size]:!text-darkBurgundy max-w-520 text-center [&_p]:text-center",children:(0,T.Ay)(a)})})]}):null},eK=e=>{let{quote:t,author:l,text:r,id:a,className:n}=e;return t||l||r?(0,s.jsxs)("section",{className:(0,c.cn)("grid gap-[40px] py-3 md:grid-cols-2 md:items-start",n),id:a||void 0,children:[(0,s.jsxs)("figure",{className:"flex flex-col gap-4 md:pr-3",children:[(0,s.jsxs)("div",{className:"flex w-full items-center justify-center gap-3",children:[(0,s.jsx)("span",{className:"bg-lightBrown h-px min-w-px flex-1"}),(0,s.jsx)(o.In,{name:"quote",className:"text-midBrown h-4 w-[38px] [&_path]:fill-current"}),(0,s.jsx)("span",{className:"bg-lightBrown h-px min-w-px flex-1"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(t||l)&&(0,s.jsxs)("figcaption",{className:"flex flex-col items-center gap-3 text-center",children:[t&&(0,s.jsx)("blockquote",{className:"typography-bodyLarge text-darkBurgundy font-bold m-0 w-full",children:(0,T.Ay)(t)}),l&&(0,s.jsx)("p",{className:"typography-footnote text-darkCharcoal w-full",children:l})]}),(0,s.jsx)("span",{className:"bg-lightBrown h-px w-full"})]})]}),r&&(0,s.jsx)("div",{className:"wysiwyg flex min-w-0 flex-col justify-center",children:(0,T.Ay)(r)})]}):null},e0=e=>/^https?:\/\//i.test(e)?e:"https://".concat(e),e1=e=>{let{value:t}=e,l=(null==t?void 0:t.split(/\r?\n/))||[];return l.map((e,t)=>(0,s.jsxs)(d.Fragment,{children:[e,t<l.length-1&&(0,s.jsx)("br",{})]},"".concat(e,"-").concat(t)))},e2=()=>(0,s.jsx)("span",{className:"border-darkCharcoal bg-lightCream flex size-3 items-center justify-center rounded-[32px] border-solid",style:{borderWidth:"1.5px"},children:(0,s.jsx)(o.In,{name:"event_arrow",className:"[&_path]:fill-darkCharcoal size-[24px] [&_rect]:fill-transparent"})}),e4=e=>{let{icon:t,label:l,children:r}=e;return r?(0,s.jsxs)("div",{className:"grid grid-cols-[24px_60px_minmax(0,1fr)] items-start gap-[16px]",children:[(0,s.jsx)("span",{className:"mt-px flex size-3 items-start justify-center",children:t}),(0,s.jsx)("p",{className:"typography-bodySmall text-darkCharcoal font-medium",children:l}),(0,s.jsx)("div",{className:"typography-bodySmall text-darkCharcoal min-w-0 break-words",children:r})]}):null},e3=e=>{let{contactEmail:t,website:l,twoColumns:r=!1}=e;return t||l?(0,s.jsxs)("div",{className:(0,c.cn)("grid gap-[24px]",r&&"sm:grid-cols-2"),children:[t&&(0,s.jsxs)(o.FZ,{href:"mailto:".concat(t),className:"typography-bodySmall typography-link text-darkCharcoal! font-medium flex items-start gap-[16px]",children:[(0,s.jsx)(o.In,{name:"operator_details_letter",className:"h-[20px] w-3 shrink-0"}),"Contact organiser"]}),l&&(0,s.jsxs)(o.FZ,{href:e0(l),target:"_blank",className:"typography-bodySmall typography-link text-darkCharcoal! font-medium flex items-start gap-[16px]",children:[(0,s.jsx)(o.In,{name:"operator_details_globe",className:"size-[22px] shrink-0"}),"Visit website"]})]}):null},e5=e=>{let{data:t}=e,{where:l,googleMapsLink:r,when:a,price:n,contactEmail:i,website:d}=t,u=!!l,m=!!(a||n),p=!!(i||d);return(0,s.jsxs)("div",{className:"border-darkCharcoal grid border lg:grid-cols-3",children:[u&&(0,s.jsx)("div",{className:"p-3 md:p-[32px]",children:(0,s.jsxs)(e4,{icon:(0,s.jsx)(e2,{}),label:"Where",children:[(0,s.jsx)(e1,{value:l}),l&&r&&(0,s.jsx)("br",{}),r&&(0,s.jsx)(o.FZ,{href:e0(r),target:"_blank",className:"typography-link text-darkCharcoal! font-medium",children:"Get directions"})]})}
1),m&&(0,s.jsxs)("div",{className:(0,c.cn)("border-darkCharcoal grid gap-[24px] p-3 md:p-[32px]",u&&"border-t lg:border-t-0 lg:border-l"),children:[(0,s.jsx)(e4,{icon:(0,s.jsx)(o.In,{name:"operator_details_calendar_date",className:"h-[23.25px] w-3"}),label:"When",children:a}),(0,s.jsx)(e4,{icon:(0,s.jsx)(o.In,{name:"operator_details_label",className:"size-3"}),label:"Price",children:n})]}),p&&(0,s.jsx)("div",{className:(0,c.cn)("border-darkCharcoal p-3 md:p-[32px]",(u||m)&&"border-t lg:border-t-0 lg:border-l"),children:(0,s.jsx)(e3,{contactEmail:i,website:d})})]})},e8=e=>{let{data:t}=e,{where:l,googleMapsLink:r,when:a,price:n,contactEmail:i,website:d}=t;return(0,s.jsx)("aside",{className:"border-darkCharcoal border lg:w-[540px] lg:shrink-0",children:(0,s.jsxs)("div",{className:"p-3 md:px-[32px] md:py-[40px]",children:[(0,s.jsxs)("div",{className:"grid gap-3 md:gap-[32px]",children:[!!l&&(0,s.jsxs)(e4,{icon:(0,s.jsx)(e2,{}),label:"Where",children:[(0,s.jsx)(e1,{value:l}),r&&(0,s.jsx)("br",{}),r&&(0,s.jsx)(o.FZ,{href:e0(r),target:"_blank",className:"typography-link text-darkCharcoal! font-medium",children:"Get directions"})]}),(0,s.jsx)(e4,{icon:(0,s.jsx)(o.In,{name:"operator_details_calendar_date",className:"h-[23.25px] w-3"}),label:"When",children:a}),(0,s.jsx)(e4,{icon:(0,s.jsx)(o.In,{name:"operator_details_label",className:"size-3"}),label:"Price",children:n})]}),(i||d)&&(0,s.jsx)("div",{className:"border-darkCharcoal mt-[40px] border-t pt-[40px]",children:(0,s.jsx)(e3,{contactEmail:i,website:d,twoColumns:!0})})]})})},e6=e=>{let{data:t}=e;return t.showTextSection?(0,s.jsxs)("section",{className:"grid items-start gap-5 lg:grid-cols-[minmax(0,1fr)_540px] lg:gap-[64px]",children:[(0,s.jsx)("div",{className:"wysiwyg text-darkCharcoal mx-0 max-w-none",children:t.textSection?(0,T.Ay)(t.textSection):null}),(0,s.jsx)(e8,{data:t})]}):(0,s.jsx)(e5,{data:t})};var e9=l(78944),e7=l(15909);function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(null,arguments)}let tt=function(e){return d.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 546 24",width:"1em",height:"1em"},e),n||(n=d.createElement("path",{fill:"#8787F7",d:"M530 24c8.837 0 16-7.163 16-16V0H0v8c0 8.837 7.163 16 16 16zM16 13.5a6 6 0 1 1 0-12 6 6 0 0 1 0 12m514 0a6 6 0 1 1 0-12 6 6 0 0 1 0 12"})))};function tl(){return(tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(null,arguments)}let tr=function(e){return d.createElement("svg",tl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 546 24",width:"1em",height:"1em"},e),i||(i=d.createElement("path",{fill:"#FEF5E5",d:"M530 0c8.837 0 16 7.163 16 16v8H0v-8C0 7.163 7.163 0 16 0zM16 10.5a6 6 0 1 0 0 12 6 6 0 0 0 0-12m514 0a6 6 0 1 0 0 12 6 6 0 0 0 0-12"})))},ta=e=>{let{image:t,eyebrow:l,heading:r,description:a,buttonText:n,buttonHref:i,buttonTarget:u,cardPosition:m,id:p}=e,h=(0,d.useRef)(null),{scrollYProgress:x}=(0,e9.L)({target:h,offset:["start end","end start"]}),g=(0,e7.G)(x,[0,1],[70,-70]);return(0,s.jsxs)("div",{ref:h,id:p,className:"relative mb-3 flex flex-col items-center sm:mb-0 md:items-start md:py-10 lg:py-130",children:[(0,s.jsx)(o.Me,{image:t,displayPlaceholderImage:!0,className:"md:absolute-full aspect-[1.47] w-full"}),(0,s.jsxs)(z.P.div,{style:{y:g},className:(0,c.cn)("relative z-10 mx-1 -mt-4 max-w-546 text-center shadow-soft","md:mt-0","right"===m?"md:mr-4 md:ml-auto mc:mr-88":"md:ml-4 mc:ml-88"),children:[(0,s.jsxs)("div",{className:"bg-lightCream flex flex-col items-center px-4 pt-2 pb-4 md:pt-1",children:[(0,s.jsx)("p",{className:"text-darkBlue border-darkBlue typography-eyebrow relative mb-2 rounded-half border px-21 py-15 text-[12px] md:mb-3",children:l}),(0,s.jsx)("h2",{className:"typography-h2 text-darkBlue md:px-2",children:r})]}),(0,s.jsxs)("div",{className:"bg-midPurple typography-bodySmall [&_a]: text-darkBlue flex flex-col gap-2 px-4 pt-5 pb-2",children:[a&&(0,T.Ay)(a),(n||i)&&(0,s.jsx)(o.FZ,{className:"typography-eyebrow text-darkBlue hover:bg-darkBlue hover:border-darkBlue font-bold hover:text-white mx-auto mt-1 border px-2 py-12 no-underline duration-200",href:i,target:u,children:n})]}),(0,s.jsx)(tr,{preserveAspectRatio:"none",className:"absolute top-px left-0 h-[24px] w-full -translate-y-full"}),(0,s.jsx)(tt,{preserveAspectRatio:"none",className:"absolute bottom-px left-0 h-[24px] w-full translate-y-full"})]})]})}},4936:(e,t,l)=>{l.d(t,{J:()=>d});var r=l(5640),a=l(62351),n=l(69484),i=l(39797),s=l(82801),o=l(44880
1);let d=e=>{var t;let{post:l,alwaysColumn:d=!1,className:c,imageClassName:u,variant:m="default"}=e,{isFavourite:p,toggleFavourite:h}=(0,s.G)(),{eyebrow:x,eyebrows:g,featuredImage:f}=l,v=(null==(t=l.type)?void 0:t.toLowerCase())==="post"?(0,n.P)(l.uri):l.uri,y="story"===m||"featuredStory"===m,b="featuredStory"===m,w=(null==g?void 0:g.length)?g:[];!w.length&&x&&(w=[x]);let j=w.some(e=>"string"!=typeof e&&!!e.uri),N="(max-width: 1023px) 102px, 308px";d&&(N="(max-width: 1023px) 100vw, 308px"),y&&(N="(max-width: 699px) 100vw, (max-width: 1023px) 50vw, 424px");let k=(e=>{var t,l;let r=null==(t=e.type)?void 0:t.toLowerCase();if("event"!==r&&"operator"!==r||!e.uri)return null;let a=null!=(l=e.databaseId)?l:Number(e.objectID);return Number.isInteger(a)&&Number(a)>0?Number(a):null})(l),C=!!k&&p(k),S=(e=>(null==e?void 0:e.node)||e)(f),_=(null==S?void 0:S.altText)||(null==S?void 0:S.title)||"",B=(0,a.cn)("flex h-full w-full flex-1",d?"flex-col":"gap-2 md:flex-col md:gap-0",y&&"h-auto flex-none"),I=(0,r.jsx)(o._V,{src:(null==S?void 0:S.sourceUrl)||void 0,alt:_,className:(0,a.cn)("bg-lightCream shrink-0",!y&&"md:aspect-[308/182] md:size-auto md:w-full",!y&&(d?"aspect-[308/182] w-full":"size-102"),y&&"w-full",u),sizes:N,displayPlaceholderImage:!0,fadeInOnLoad:!0,scaleImageOnGroupHover:!!v}),z=(0,r.jsxs)(r.Fragment,{children:[y&&v?(0,r.jsx)(o.FZ,{href:v,target:l.target,className:"block w-full no-underline","aria-label":l.title||"View story",children:I}):I,(0,r.jsxs)("div",{className:(0,a.cn)("bg-lightCream text-darkCharcoal flex h-full min-w-0 flex-1 flex-col md:items-center md:p-3 md:px-1 md:pb-0 md:text-center",d&&"items-center p-3 px-1 pb-0 text-center",k&&!d&&"pr-[43px] md:pr-1",0===w.length&&"md:pt-4",y&&"h-auto flex-none items-center gap-2 px-1 pt-3 pb-0 text-center md:p-0 md:pt-3",b&&"gap-3 px-3 pt-3 md:px-6 md:pt-3"),children:[w.length>0&&(0,r.jsx)("div",{className:(0,a.cn)("mb-16 flex flex-wrap items-start justify-between gap-1 md:justify-center",d&&"justify-center",y&&"mb-0 justify-center"),children:w.map(e=>{let t="string"==typeof e?e:e.label,l="string"==typeof e?void 0:e.uri,n="typography-footnote border-darkCharcoal font-medium text-darkCharcoal inline-flex h-32 items-center rounded-4 border-[1.5px] px-12 no-underline";return l?(0,r.jsx)(o.FZ,{href:l,className:(0,a.cn)(n,"focus-visible hover:bg-darkCharcoal hover:text-lightCream relative z-20 transition-colors"),children:(0,i.o)(t)},"".concat(t,"-").concat(l)):(0,r.jsx)("span",{className:n,children:(0,i.o)(t)},t)})}),(l.title||l.excerpt||l.venue||v&&l.linkText)&&(0,r.jsxs)("div",{className:(0,a.cn)("flex h-full w-full min-w-0 flex-col md:flex-1 md:items-center",d&&"w-full flex-1 items-center"),children:[l.title&&(0,r.jsx)("h3",{className:(0,a.cn)("typography-h6 text-darkBurgundy w-full leading-[1.1] text-balance uppercase md:text-center",d&&"text-center",b&&"typography-h4"),children:y&&v?(0,r.jsx)(o.FZ,{href:v,target:l.target,className:"focus-visible text-inherit no-underline",children:(0,i.o)(l.title)}):(0,i.o)(l.title)}),l.excerpt&&(0,r.jsx)("p",{className:(0,a.cn)("typography-footnote text-darkCharcoal mt-1 text-balance md:text-center",d&&"text-center",b&&"typography-bodySmall mt-0"),children:(0,i.o)(l.excerpt)}),l.venue&&(0,r.jsx)("p",{className:(0,a.cn)("typography-footnote font-medium text-darkCharcoal mt-auto pt-1 text-balance md:pt-3 md:text-center",d&&"text-center"),children:(0,i.o)(l.venue)}),v&&l.linkText&&(0,r.jsx)("span",{className:(0,a.cn)("typography-link typography-footnote text-darkCharcoal mt-auto inline-flex pt-2 text-left transition-colors group-hover:no-underline md:pt-3 md:text-center",d&&"text-center"),children:(0,i.o)(l.linkText)})]})]})]}),A=(0,r.jsx)("div",{className:B,children:z});return v&&!y&&j?A=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:B,children:z}),(0,r.jsx)(o.FZ,{href:v,target:l.target,className:"focus-visible absolute inset-0 z-10 no-underline","aria-label":l.title||"View item"})]}):v&&!y&&(A=(0,r.jsx)(o.FZ,{href:v,target:l.target,className:(0,a.cn)(B,"no-underline md:h-full",y&&"md:h-auto"),"aria-label":l.title||"View item",children:z})),(0,r.jsxs)("article",{className:(0,a.cn)("relative h-full pb-[1px]",y&&"h-auto pb-0"),children:[(0,r.jsxs)("div",{className:(0,a.cn)("group bg-lightCream relative flex h-full w-full flex-col overflow-hidden pb-3 md:pb-5",v&&"cursor-pointer",y&&"h-auto pb-0 md:pb-0",c),children:[A,k&&(0,r.jsx)("button",{type:"button",onClick:()=>h(k),"aria-label":"".concat(C?"Remove":"Add"," ").concat(l.title||"listing"," ").concat(C?"from":"to"," favourites"),"aria-pressed":C,className:"focus-visible absolute top-0 right-0 z-20 flex size-[35px] shrink-0 items-center justify-center rounded-full md:static md:mt-2 md:self-center",children:(0,r.jsx)(o.In,{name:C?"card_heart_filled":"card_heart",className:C?"size-[32px]":"size-[35px]"})})]}),!y&&(0,r.jsx)("div",{className:(0,a.cn)("bg-lightGrey h-px w-full sm:w-[200%]",d&&"hidden md:block")})]})}},5244:(e,t,l)=>{l.d(t,{A:()=>d});
1var r=l(5640),a=l(44880),n=l(62351),i=l(39797),s=l(63652);l(50148);let o=e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)},d=e=>{var t,l;let{image:d,theme:c,eyebrow:u,heading:m,description:p,link:h,graphic:x,imagePosition:g,className:f}=e,v=g||"left",y=Array.isArray(c)?c[0]:c,b=s.F.includes(y)?y:"theme-brown",w=o(d),j=(null==d||null==(t=d.node)?void 0:t.altText)||(null==d?void 0:d.altText)||"",N=o(x),k=(null==x||null==(l=x.node)?void 0:l.altText)||(null==x?void 0:x.altText)||"",C=null==h?void 0:h.url,S=null==h?void 0:h.title;return(0,r.jsxs)("section",{className:(0,n.cn)(b,"grid","right"===v?"md:grid-cols-[1fr_59%]":"md:grid-cols-[59%_1fr]",f),children:[w&&(0,r.jsx)(a._V,{src:w,alt:j,className:(0,n.cn)("aspect-[1.47] object-cover md:aspect-auto","right"===v&&"md:order-2"),sizes:"(min-width: 768px) 59vw, 100vw"}),(0,r.jsxs)("div",{className:(0,n.cn)("flex flex-col gap-4 bg-(--theme-primary) px-initGutter py-5 text-(--theme-secondary) sm:px-smGutter","md:px-64 md:py-88","relative shrink-0 overflow-hidden bg:py-134 bg:pr-172 bg:pl-96","right"===v&&"md:order-1",N&&"pb-0!"),children:[u&&(0,r.jsx)("span",{className:"typography-eyebrow mr-auto border border-(--theme-secondary)! px-[5px] py-[3px] text-inherit",children:u}),m&&(0,r.jsx)("h3",{className:"typography-h2 text-inherit",children:(0,i.o)(m)}),p&&(0,r.jsx)("p",{children:(0,i.o)(p)}),S&&C&&(0,r.jsx)(a.FZ,{className:"typography-bodySmall font-bold underline hover:no-underline",href:C,target:h.target,children:S}),N&&(0,r.jsx)(a._V,{alt:k,src:N,className:(0,n.cn)("relative z-40 -mx-initGutter -mt-4 aspect-[1.308] h-200 w-screen sm:-mx-smGutter md:-mx-64 md:h-327 md:w-[calc(100%+128px)] bg:-mx-96 bg:w-[calc(100%+230px)] [&_img]:object-top")})]})]})}},7016:(e,t,l)=>{l.d(t,{Sc:()=>C,Kw:()=>i,pp:()=>N,ks:()=>p,lC:()=>o});var r=l(5640),a=l(62351),n=l(50148);let i=e=>{let{show:t,errors:l,name:n,className:i,message:s}=e,o=t||l&&n&&l[n],d=l&&n?l[n]:void 0,c="object"==typeof d&&d&&"message"in d&&"string"==typeof d.message?d.message:"";return(0,r.jsx)("p",{className:(0,a.cn)("errorMessage typography-footnote font-bold mt-2","text-(--Forms-inputErrorText)",!o&&"hidden",i),children:s||c})};var s=l(56783);let o="grid content-start gap-3 md:gap-4",d=(0,s.F)("relative h-[58px] rounded-1 border-[1.5px] bg-(--Forms-inputFieldColour)",{variants:{fieldActive:{true:"border-(--Forms-inputFieldBorderActive)",false:"border-(--Forms-inputFieldBorderPrimary)"},hasError:{true:"border-(--Forms-inputErrorBorder)"}}}),c="typography-bodyLarge block mb-1 text-(--Forms-inputFieldLabel)",u=e=>{let{label:t,secondaryLabel:l,name:a}=e;return t?(0,r.jsxs)("label",{className:c,htmlFor:a,children:[t," ",l&&(0,r.jsx)("span",{className:"typography-footnote normal-case font-normal ml-[4px] text-(--Forms-infoText)",children:l})]}):null},m=(0,a.cn)("size-full resize-none rounded-[inherit] border-none bg-none px-2 text-[16px] outline-none","text-(--Forms-inputActiveText)","placeholder-(--Forms-inputPlaceholderText)"),p=n.forwardRef((e,t)=>{let{name:l,register:s,errors:o,type:c="text",placeholder:p,label:h,secondaryLabel:x,className:g,value:f,onChange:v,autoFocus:y,...b}=e,[w,j]=(0,n.useState)(!1),N="textarea"===c,k=!!o&&!!l&&!!o[l],C="function"==typeof s&&l?s(l,{onChange:v,setValueAs:"number"===c?e=>""===e?void 0:parseInt(String(e),10):void 0}):{};return(0,r.jsxs)("div",{className:g,children:[(0,r.jsx)(u,{label:h,secondaryLabel:x,name:l}),(0,r.jsx)("div",{className:(0,a.cn)(d({fieldActive:w,hasError:k}),N&&"h-[126px]"),children:N?(0,r.jsx)("textarea",{className:(0,a.cn)(m,"pt-[22px]"),autoFocus:y,"aria-label":l,"data-formid":l,id:l,ref:t,placeholder:p,value:f,onChange:v,onFocus:()=>j(!0),onBlur:()=>j(!1),...C,...b}):(0,r.jsx)("input",{className:m,autoFocus:y,"aria-label":l,"data-formid":l,id:l,ref:t,placeholder:p,type:c,value:f,onChange:v,onFocus:()=>j(!0),onBlur:()=>j(!1),...C,...b})}),(0,r.jsx)(i,{errors:o,name:l})]})});var h=l(76802),x=l(95251),g=l(22954),f=l(6564),v=l.n(f),y=l(44880);let b=e=>{let{options:t}=e;return(0,r.jsx)(x.ZL,{children:(0,r.jsx)(x.UC,{className:(0,a.cn)("overflow-hidden rounded-1 border","bg-(--Forms-dropdownBackgroun
1dColour)","border-(--Forms-dropdownBorder)"),style:{boxShadow:"0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)"},children:(0,r.jsx)(x.LM,{children:null==t?void 0:t.map((e,t)=>(0,r.jsx)(x.q7,{value:e.value,className:(0,a.cn)("relative flex cursor-pointer p-2 text-[16px] outline-none","border-b border-(--Forms-dropdownBorder) last:border-b-0","data-highlighted:text-white data-[highlighted]:bg-(--Forms-dropdownHover)","data-[state=checked]:text-white data-[state=checked]:bg-(--Forms-dropdownHover)","data-disabled:pointer-events-none data-disabled:opacity-50"),children:(0,r.jsx)(x.p4,{children:e.label})},t))})})})},w=n.forwardRef((e,t)=>{let{menuIsOpen:l,hasError:n,prefix:i,name:s,placeholder:o,selectedOption:c}=e;return(0,r.jsx)("div",{className:d({fieldActive:l,hasError:n}),children:(0,r.jsxs)(x.l9,{"aria-label":s,"aria-labelledby":s,name:s,ref:t,className:(0,a.cn)("inline-flex size-full items-center justify-between p-2 outline-none","text-(--Forms-inputActiveText) data-[placeholder]:text-(--Forms-inputPlaceholderText)"),children:[(0,r.jsx)("span",{className:"text-[16px]",children:(0,r.jsxs)(x.WT,{placeholder:o,children:[i," ",null==c?void 0:c.label]})}),(0,r.jsx)(y.In,{name:"arrow_down",className:"icon-color-(--Buttons-buttonPrimaryColour)"})]})})}),j=n.forwardRef((e,t)=>{let{options:l,slugifyOptions:a=!1,onChange:s,name:o,label:d,prefix:u,errorMessage:m,placeholder:p="Select...",value:g,defaultValue:f,className:y}=e,[j,N]=(0,n.useState)(!1),k=!!m,C=(l||[]).map(e=>"string"==typeof e?{label:e,value:a?v()(e,{lower:!0}):e}:{label:(e=>{var t,l;return"string"==typeof e.label?e.label:(null==(l=e.label)||null==(t=l.option)?void 0:t.option)||""})(e),value:(e=>{var t,l;return"string"==typeof e.value?e.value:(null==(l=e.value)||null==(t=l.option)?void 0:t.option)||""})(e)}),S=((e,t)=>null==t?void 0:t.find(t=>JSON.stringify(t.value)===JSON.stringify(e)))(g,C);return(0,r.jsxs)("div",{className:y,children:[d&&(0,r.jsx)(h.J,{htmlFor:o,className:c,role:"presentation",children:d}),(0,r.jsxs)(x.bL,{value:g,defaultValue:f,name:o,onValueChange:e=>{s&&s(e)},onOpenChange:N,"aria-label":o,children:[(0,r.jsx)(w,{"aria-label":d,"aria-labelledby":d,menuIsOpen:j,hasError:k,name:o,prefix:u,placeholder:p,selectedOption:S,ref:t}),(0,r.jsx)(b,{options:C})]}),(0,r.jsx)(i,{show:k,message:m})]})}),N=e=>{let{control:t,name:l,defaultValue:a,...n}=e;if(t&&l){let{field:{onChange:e,value:i,ref:s},fieldState:{error:o}}=(0,g.as)({name:l,control:t,defaultValue:a});return(0,r.jsx)(j,{onChange:e,ref:s,value:i,errorMessage:null==o?void 0:o.message,defaultValue:a,name:l,...n})}return(0,r.jsx)(j,{...e})};var k=l(88383);let C=n.forwardRef((e,t)=>{let{name:l,value:a,label:n,register:s,defaultChecked:o,className:d,onChange:c,errors:u,...m}=e,p="".concat(a||n,"_").concat(l),h="function"==typeof s&&l?s(l,{onChange:c}):{};return(0,r.jsxs)("div",{className:d,children:[(0,r.jsxs)("div",{className:"relative flex min-h-[24px] items-center",children:[(0,r.jsx)("label",{htmlFor:p,...m,className:"cursor-pointer typography-bodySmall text-(--Forms-checkboxText) pl-[34px] first-letter:uppercase [&>p]:typography-bodySmall md:pl-[42px] [&_a]:relative [&_a]:typography-link [&_a]:text-(--Forms-checkboxLink) [&_a:hover]:text-(--Forms-checkboxLinkHover)",children:(0,k.Ay)(n||a||"")}),(0,r.jsx)("input",{className:"peer opacity-0 h-0 w-0",id:p,"aria-label":p,ref:t,value:a,type:"checkbox",defaultChecked:o,onChange:c,...h}),(0,r.jsx)("span",{className:"flex items-center justify-center absolute top-0 left-0 size-3 rounded-subtle border pointer-events-none peer-checked:[&>svg]:scale-100 peer-checked:[&>svg]:opacity-100 border-(--Forms-checkboxDefaultBorder) peer-checked:border-(--Forms-checkboxColour) bg-(--Forms-inputFieldColour)",children:(0,r.jsx)(y.In,{name:"check",className:"h-[12px] w-2 scale-[0.3] opacity-0 duration-150 icon-color-(--Forms-checkboxColour)"})})]}),(0,r.jsx)(i,{errors:u,name:l})]})})},18449:(e,t,l)=>{l.d(t,{U:()=>a});var r=l(50148);let a=e=>{let{cardWidth:t=300,gapWidth:l=16,cardsToScroll:a=1}=e,n=(0,r.useRef)(null),i=(0,r.useRef)(null),[s,o]=(0,r.useState)({leftHidden:!0,rightHidden:!1,showArrows:!1}),d=(0,r.useCallback)(()=>{let e=n.current;if(!e)return;let t={leftHidden:0===e.scrollLeft,rightHidden:e.scrollLeft>=e.scrollWidth-e.clientWidth-4,showArrows:e.scrollWidth>e.clientWidth};o(e=>e.leftHidden===t.leftHidden&&e.rightHidden===t.rightHidden&&e.showArrows===t.showArrows?e:t)},[]),c=(0,r.useCallback)(()=>{null===i.current&&(i.current=window.requestAnimationFrame(()=>{i.current=null,d()}))},[d]);return(0,r.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(c);return e.addEventListener("scroll",c,{passive:!0}),c(),t.observe(e),()=>{e.removeEventListener("scroll",c),t.disconnect(),null!==i.current&&(window.cancelAnimationFrame(i.current),i.current=null)}},[c]),{containerRef:n,arrowProps:{showArrows:s.showArrows,sideScroll:e=>{let r=n.current;if(!r)return;let i=t+l,s=r.scrollLeft,o=Math.floor(s/i),d=i*a+(o*i-s)*("left"===e?-1:1);r.scrollTo({left:r.scrollLeft+("left"===e?-d:d),behavior:"smooth"})},leftHidden:s.leftHidden,rightHidden:s.rightHidden}}}},20067:(e,t,l)=>{l.d(t,{E:()=>n,T:()=>a});var r=l(17464);let a=/^\({0,1}((0|\+61)(2|4|3|7|8)){0,1}\){0,1}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{1}(\ |-){0,1}[0-9]{3}$/gm,n=r.Ik({name:r.Yj().min(1,{message:"Please enter your name"}),email:r.Yj().email({message:"Please enter a valid email"}),phone:r.Yj().regex(a,{message:"Please enter a valid phone number"}),interestedIn:r.Yj().min(1,{message:"Please select an option"}),message:r.Yj().optional(),agreeTerms:r.zM().refine(e=>!0===e,{message:"You must check this box to submit your enquiry"})})},35958:(e,t,l)=>{l.d(t,{A:()=>u});
1var r=l(5640),a=l(44880),n=l(62351),i=l(17521);let s={hidden:{opacity:0,scaleX:0},show:{opacity:1,scaleX:1,transition:{duration:1,ease:"easeInOut"}}},o={hidden:{opacity:0},show:{opacity:1,transition:{duration:.3,ease:"easeOut",delay:1}}},d=e=>{let{className:t}=e;return(0,r.jsx)(i.P.div,{variants:s,className:(0,n.cn)("bg-darkGreen mx-auto h-4 w-px lg:h-px lg:w-full",t)})},c=e=>{let{className:t,image:l,eyebrow:i,heading:s,link:o}=e,d=(e=>{var t;return"string"==typeof e?e:(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)||void 0})(l),c=(e=>{var t;return"string"==typeof e?"":(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||""})(l);return(0,r.jsxs)("div",{className:(0,n.cn)("bg-darkGreen group relative px-3 py-5 md:px-88 md:py-5",t),children:[i&&(0,r.jsx)("p",{className:"typography-h6 absolute top-1 left-1 text-inherit md:top-20 md:left-3",children:i}),s&&(0,r.jsx)("h3",{className:"typography-h2 text-center text-inherit",children:s}),d&&(0,r.jsx)(a._V,{src:d,alt:c,className:"mt-2 aspect-[1.25] md:mt-3",displayPlaceholderImage:!0,scaleImageOnGroupHover:!0}),(null==o?void 0:o.url)&&(null==o?void 0:o.title)&&(0,r.jsx)(a.FZ,{href:o.url,target:o.target,className:"typography-bodySmall expand-pseudo font-medium mt-3 block text-center underline hover:no-underline md:mt-4",children:o.title})]})},u=e=>{let{eyebrow1:t,eyebrow2:l,heading:a,description:s,items:u}=e,m=null==u?void 0:u.filter(e=>{var t;return(null==e?void 0:e.image)||(null==e?void 0:e.heading)||(null==e?void 0:e.eyebrow)||(null==e||null==(t=e.link)?void 0:t.url)}),p=(null==m?void 0:m.length)===1;return(0,r.jsxs)(i.P.div,{className:"flex flex-col",initial:"hidden",whileInView:"show",viewport:{once:!0,amount:.1},children:[(0,r.jsxs)("div",{className:"main-column text-darkGreen grid gap-12 text-center md:items-center lg:grid-cols-[auto_1fr_auto_1fr_auto] lg:gap-3",children:[t&&(0,r.jsx)(i.P.span,{variants:o,className:"typography-eyebrow font-normal mx-auto rounded-half border px-12 py-[10px] lg:ml-0",children:t}),(0,r.jsx)(d,{className:"origin-right"}),a&&(0,r.jsx)("h3",{className:"typography-h1",children:a}),(0,r.jsx)(d,{className:"origin-left"}),l&&(0,r.jsx)(i.P.span,{variants:o,className:"typography-eyebrow font-normal mx-auto border p-[5px] px-[6px] lg:ml-0",children:l})]}),s&&(0,r.jsx)("p",{className:"text-darkCharcoal mx-auto mt-3 max-w-632 px-3 text-center lg:mt-5",children:s}),!!(null==m?void 0:m.length)&&(0,r.jsx)("div",{className:(0,n.cn)("sm:main-column mx-1 mt-6 grid items-start gap-1 sm:grid-cols-2 sm:gap-3 lg:mt-8 lg:gap-5",p&&"sm:grid-cols-1 sm:justify-items-center"),children:m.map((e,t)=>(0,r.jsx)(c,{...e,className:(0,n.cn)(0===t&&"bg-darkGreen text-lightGreen",1===t&&"bg-darkBlue text-lightBlue sm:mt-6 md:mt-10",p&&"w-full sm:max-w-[calc((100%_-_var(--spacing-3))_/_2)]")},"".concat(e.heading||e.eyebrow||"card","-").concat(t)))})]})}},39797:(e,t,l)=>{l.d(t,{o:()=>a});var r=l(88383);let a=e=>e?(0,r.Ay)(e):null},40534:(e,t,l)=>{l.d(t,{F:()=>s});var r=l(47491),a=l(26904),n=l(50148),i=l(22954);let s=e=>{let{schema:t,defaultValues:l,submittedHash:s="#submitted"}=e,o=(0,a.useRouter)(),d="".concat("https://www.launceston.com.au").concat(o.asPath).split("#")[0],c=(0,i.mN)({resolver:(0,r.u)(t),defaultValues:l}),{formState:{isSubmitSuccessful:u}}=c;return(0,n.useEffect)(()=>{u&&s&&o.push(s)},[u,s]),{...c,currentPath:d}}},43249:(e,t,l)=>{l.d(t,{X:()=>x});var r=l(5640),a=l(62351),n=l(62191),i=l(68595),s=l(44880),o=l(17521),d=l(88383),c=l(50148);let u=e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)||void 0},m={duration:.8,ease:"easeInOut"},p=e=>{let{direction:t,onClick:l}=e;return(0,r.jsx)("button",{type:"button","aria-label":"previous"===t?"Previous image":"Next image",onClick:l,className:(0,a.cn)("bg-lightPink border-darkBurgundy hidden size-64 items-center justify-center rounded-full border-2 transition-transform duration-300 hover:scale-105 md:flex"),children:(0,r.jsx)(s.In,{name:"arrow_right",className:(0,a.cn)("[&_path]:stroke-darkBurgundy h-auto w-[28px]","previous"===t&&"rotate-180")}
1)})},h=e=>{let{heading:t,isCondensed:l}=e,n=(0,c.useRef)(null),s=(0,c.useRef)([]),u=(0,c.useMemo)(()=>t.replace(/<br\s*\/?>/gi," ").replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim(),[t]),m=(0,c.useMemo)(()=>u.split(" ").filter(Boolean),[u]),[p,h]=(0,c.useState)(),[x,g]=(0,c.useState)(),f=(0,i.Q)(["(min-width: 768px)"],[!0],!1);return((0,c.useLayoutEffect)(()=>{h(void 0),g(void 0),s.current=[]},[u,f]),(0,c.useLayoutEffect)(()=>{if(!m.length||!f)return;let e=n.current,t=null==e?void 0:e.parentElement;if(!t)return;let l=0,r=!1,a=()=>{if(r)return;let e=t.getBoundingClientRect().width,n=e<=.7*window.innerWidth;if(e<=0||!n){l=window.requestAnimationFrame(a);return}g(Math.round(.69*e))};return l=window.requestAnimationFrame(()=>{l=window.requestAnimationFrame(a)}),()=>{r=!0,window.cancelAnimationFrame(l)}},[f,m.length]),(0,c.useLayoutEffect)(()=>{var e;if(!f||!m.length||p||!x)return;let t=()=>{if(!n.current)return;let e=[];s.current.forEach((t,l)=>{if(!t)return;let r=Math.round(t.offsetTop),a=e[e.length-1];!a||Math.abs(a.top-r)>2?e.push({top:r,words:[m[l]]}):a.words.push(m[l])}),e.length&&h(e.map(e=>e.words))},l=window.requestAnimationFrame(t),r=!1;return null==(e=document.fonts)||e.ready.then(()=>{r||(window.cancelAnimationFrame(l),l=window.requestAnimationFrame(t))}),()=>{r=!0,window.cancelAnimationFrame(l)}},[f,p,x,m]),m.length)?f?(0,r.jsxs)(o.P.h1,{className:"typography-h1 relative flex w-[69%] origin-center justify-center uppercase",animate:{scale:l?.8:1},ref:n,style:x?{width:"".concat(x,"px")}:void 0,transition:{ease:"easeInOut",duration:l?.85:.75},children:[(0,r.jsx)("span",{"aria-hidden":!!p,className:(0,a.cn)(p&&"pointer-events-none invisible absolute inset-x-0 top-0"),children:m.map((e,t)=>(0,r.jsxs)("span",{ref:e=>{s.current[t]=e},children:[e,t<m.length-1?" ":""]},"".concat(e,"-").concat(t)))}),p&&(0,r.jsx)("span",{className:"flex flex-col items-center",children:p.map((e,t)=>(0,r.jsx)("span",{className:"block whitespace-nowrap",children:e.join(" ")},"".concat(e.join(" "),"-").concat(t)))})]}):(0,r.jsx)("h1",{className:"typography-h1 uppercase",children:(0,d.Ay)(t)}):null},x=e=>{var t;let{heading:l,description:x,listingTypes:g,galleryImages:f,fallbackImage:v,categoryBasePath:y}=e,b=(0,c.useRef)(null),w=(0,c.useRef)(null),j=(0,c.useRef)(!1),N=(0,i.Q)(["(min-width: 768px)"],[!0],!1),[k,C]=(0,c.useState)(0),[S,_]=(0,c.useState)(!1),[B,I]=(0,c.useState)(0),[z,A]=(0,c.useState)(0),[T,P]=(0,c.useState)(0),E=((null==f?void 0:f.nodes)||[]).filter(e=>!!u(e)),F=E.length||!u(v)?E:[v],L=(null==g||null==(t=g.nodes)?void 0:t.filter(e=>!!(null==e?void 0:e.name)))||[],G=k>0,M=k<F.length-1;(0,c.useEffect)(()=>{let e=w.current;if(!e)return;let t=()=>{let t=e.parentElement,l=t?window.getComputedStyle(t):null,r=l?Number.parseFloat(l.columnGap||"0"):0,a=e.offsetWidth;if(I(a),A(a+r),!j.current){let e=k>0?.15*a:0;P(k*(a+r)-e)}};t();let l=new ResizeObserver(t);return l.observe(e),e.parentElement&&l.observe(e.parentElement),window.addEventListener("resize",t),()=>{l.disconnect(),window.removeEventListener("resize",t)}},[k,F.length]);let W=(0,c.useCallback)((e,t)=>{var l;if(!N)return 0;let r=null==(l=b.current)?void 0:l.offsetWidth,a=w.current,n=null==a?void 0:a.parentElement,i=n?Number.parseFloat(window.getComputedStyle(n).columnGap||"0"):Math.max(0,z-B);if(!r){let t=e>0?.15*B:0;return e*z-t}let s=Math.min(r*(t?.67:.5)*.9,800);return e*(s+i)-(e>0?.15*s:0)},[N,z,B]),O=(0,c.useCallback)(e=>{let t=Math.min(Math.max(e,0),F.length-1),l=t>0;j.current=!0,P(W(t,l)),C(t),_(l)},[W,F.length]),R=(0,c.useCallback)(()=>{O(k-1)},[O,k]),H=(0,c.useCallback)(()=>{O(k+1)},[O,k]);return((0,c.useEffect)(()=>{k<=F.length-1||O(F.length-1)},[O,k,F.length]),l||x||F.length||L.length)?(0,r.jsxs)(o.P.section,{className:"flex flex-col md:grid md:grid-cols-[minmax(0,50%)_minmax(0,50%)]",ref:b,animate:{gridTemplateColumns:S?"minmax(0, 33%) minmax(0, 67%)":"minmax(0, 50%) minmax(0, 50%)"},transition:m,onAnimationComplete:()=>{j.current=!1},children:[(0,r.jsxs)("div",{className:"bg-lightPink relative order-1 min-w-0 overflow-hidden py-3 md:order-2 md:py-6 md:pr-0 md:pl-0 lg:py-8",children:[(0,r.jsx)("div",{className:"overflow-x-auto md:h-full md:overflow-hidden",children:(0,r.jsx)(o.P.div,{className:"flex w-max gap-1 pl-initGutter sm:pl-smGutter md:h-full md:w-auto md:pl-0",animate:{x:N?-T:0},transition:N?m:{duration:0},children:F.map((e,t)=>{let l=u(e);return(0,r.jsx)("div",{className:"w-[85vw] min-w-0 shrink-0 md:h-full md:w-auto md:max-w-800 md:basis-[90%]",ref:0===t?w:void 0,children:(0,r.jsx)(s._V,{src:l,alt:(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||""})(e),priority:0===t,fadeInOnLoad:!0,className:"aspect-[327/218] w-full object-cover md:aspect-auto md:h-full",sizes:"(min-width: 768px) 43vw, calc(100vw - 48px)"})},"".concat(l,"-").concat(t))})})}),F.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.P.div,{animate:{o
1pacity:+!!G,translateX:G?0:-40,pointerEvents:G?"auto":"none"},className:"absolute top-1/2 left-[40px] z-10 hidden -translate-y-1/2 md:block",initial:!1,transition:{duration:.4,delay:.4*!!G},children:(0,r.jsx)(p,{direction:"previous",onClick:R})}),M&&(0,r.jsx)("div",{className:"absolute top-1/2 right-[40px] z-10 hidden -translate-y-1/2 md:block",children:(0,r.jsx)(p,{direction:"next",onClick:H})})]})]}),(0,r.jsxs)("div",{className:"bg-darkBurgundy text-lightPink order-2 flex min-w-0 flex-col items-center justify-center gap-3 px-initGutter pt-4 pb-5 text-center sm:px-smGutter md:order-1 md:gap-6 md:px-0 md:py-132 bg:py-190",children:[l&&(0,r.jsx)(h,{heading:l,isCondensed:S}),x&&(0,r.jsx)("div",{className:"typography-bodySmall md:max-w-[75%] [&_p]:m-0",children:(0,d.Ay)(x)}),L.length>0&&(0,r.jsx)("ul",{className:"flex flex-wrap items-center justify-center gap-1 md:max-w-300 bg:max-w-500",children:L.map(e=>{var t,l;let i=(null==(l=e.parent)||null==(t=l.node)?void 0:t.name)==="Event",o=null;return y&&e.slug?o=(0,n.E)(y,e.slug):i&&e.slug&&(o="/whats-on?category=".concat(encodeURIComponent(e.slug))),(0,r.jsx)("li",{children:(0,r.jsx)(s.FZ,{className:(0,a.cn)("typography-footnote border-lightPink block rounded-[64px] border px-2 py-1",o&&"hover:bg-lightPink hover:text-darkBurgundy transition-colors"),href:o,children:e.name})},e.slug||e.name||"")})})]})]}):null}},45501:(e,t,l)=>{l.d(t,{N:()=>o});var r=l(5640),a=l(62351),n=l(44880),i=l(63652),s=l(88383);let o=e=>{var t,l,o;let{heading:d,eyebrow:c,description:u,link:m,image:p,video:h,imageLink:x,theme:g,searchInputPlaceholder:f,query:v,children:y}=e,b=Array.isArray(g)?g[0]:g,w=i.F.includes(b)?b:"theme-gold",j=(null==p||null==(t=p.node)?void 0:t.sourceUrl)||(null==p?void 0:p.sourceUrl)||void 0,N=(null==h||null==(l=h.node)?void 0:l.mediaItemUrl)||void 0,k=(null==p||null==(o=p.node)?void 0:o.altText)||(null==p?void 0:p.altText)||"",C=!!(j||N),S=j&&!N?null==x?void 0:x.url:null,_=f||"Search...";return d||u||C||v||y?(0,r.jsxs)("section",{className:(0,a.cn)(w,"grid",C&&"md:grid-cols-2"),children:[(0,r.jsxs)("div",{className:(0,a.cn)("bg-(--theme-primary) text-balance text-(--theme-secondary)","order-2 flex flex-col items-center gap-3 px-initGutter py-16 pt-3 pb-4 text-center sm:px-smGutter","md:order-1 md:justify-center lg:gap-6 lg:px-96 lg:py-138","vbg:px-250 vbg:py-220",!C&&"order-1 md:py-138"),children:[c&&(0,r.jsx)("p",{className:"typography-eyebrow border border-current px-[6px] py-[4px] text-inherit",children:(0,s.Ay)(c)}),d&&(0,r.jsx)("h1",{className:(0,a.cn)("typography-h1",!C&&"max-w-580"),children:(0,s.Ay)(d)}),u&&(0,r.jsx)("div",{className:(0,a.cn)(!C&&"max-w-580"),children:(0,s.Ay)(u)}),y&&(0,r.jsx)("div",{className:(0,a.cn)("flex flex-wrap justify-center gap-1",!C&&"max-w-580"),children:y}),(null==m?void 0:m.title)&&m.url&&(0,r.jsx)("div",{className:(0,a.cn)(!C&&"max-w-580"),children:(0,r.jsx)(n.e$,{href:m.url,target:m.target,children:(0,s.Ay)(m.title)})}),v&&(0,r.jsxs)("div",{className:(0,a.cn)("relative flex w-full items-center bg-(--theme-secondary) text-left text-(--theme-primary)","max-w-580"),children:[(0,r.jsx)("input",{type:"search",value:"string"==typeof v.value?v.value:"",placeholder:_,"aria-label":_,onChange:e=>{var t;return null==(t=v.set)?void 0:t.call(v,e.target.value)},className:"typography-bodySmall min-w-0 flex-1 bg-transparent px-3 py-2 pr-44 text-current placeholder:text-current focus:outline-none md:h-76 md:px-4 md:py-3 md:pr-52 [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"}),(0,r.jsx)(n.In,{name:"search",className:"icon-stroke-current pointer-events-none absolute top-1/2 right-3 size-28 -translate-y-1/2 md:right-4"})]})]}),C&&(0,r.jsxs)("div",{className:"order-1 flex flex-col justify-center bg-(--theme-secondary) p-3 pb-0 text-(--theme-primary) md:order-2 md:p-6 md:pl-0! lg:p-10",children:[(0,r.jsx)(n.Me,{image:p,video:h,priority:"video",imagePriority:!0,alt:k,className:"w-full object-cover",inheritSize:!0,sizes:"(min-width: 768px) 50vw, 100vw"}),(null==x?void 0:x.title)&&S&&(0,r.jsxs)(n.FZ,{href:S,target:x.target,className:"typography-bodySmall mt-1 mb-2 ml-auto flex items-center text-current hover:underline md:mt-3 md:-mb-2",children:[x.title,(0,r.jsx)(n.In,{name:"arrow_right",className:"icon-stroke-current ml-2 h-auto w-2"})]})]})]}):null}},47049:(e,t,l)=>{l.d(t,{A:()=>G});var r=l(5640),a=l(46576),n=l(50148),i=l(55403),s=l(45501),o=l(43249),d=l(93505),c=l(44880
1),u=l(62351),m=l(82801),p=l(26904);let h=e=>e.substring(e.indexOf("#"));var x=l(68595),g=l(17521),f=l(48426),v=l(31155);let y=e=>e&&"#"!==e?e:null,b=e=>e.id||e.path||e.label||"menu-item",w=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(l,r)=>e.slice(r*t,(r+1)*t)),j=e=>{let{className:t}=e;return(0,r.jsx)(c.FZ,{href:"/",ariaLabel:"Launceston home",children:(0,r.jsx)(c.In,{name:"launceston_logo",className:(0,u.cn)("hover-opacity h-22 w-181 md:h-28 md:w-230",t)})})},N=()=>{let{favourites:e,isHydrated:t}=(0,m.G)(),l=e.length,a=t&&l>0;return(0,r.jsxs)("div",{className:"flex items-center gap-2 md:gap-3",children:[(0,r.jsx)(c.FZ,{href:"/search",ariaLabel:"Search",className:"hover-opacity",children:(0,r.jsx)(c.In,{name:"search",className:"[&_path]:stroke-darkCharcoal size-[28px]"})}),(0,r.jsxs)(c.FZ,{href:"/favourites",ariaLabel:"View favourites".concat(a?", ".concat(l," saved"):""),className:"hover-opacity relative block",children:[(0,r.jsx)(c.In,{name:"favourites_nav",className:"h-[27px] w-[29px]"}),a&&(0,r.jsx)("span",{"aria-hidden":"true",className:"border-lightCream bg-darkBurgundy text-lightCream font-body font-medium absolute -top-[12px] -right-1 flex h-[26px] min-w-[26px] items-center justify-center rounded-full border-3 px-[4px] pb-px text-[15px] leading-[1.3]",children:l})]})]})},k=e=>{let{className:t,item:l}=e;return(0,r.jsx)(c.FZ,{href:y(l.path),target:l.target,className:t,children:l.label})},C=e=>{var t,l,a,n,i,s;let{option:o}=e,d=null==(l=o.featuredImage)||null==(t=l.node)?void 0:t.sourceUrl,u=(null==(n=o.featuredImage)||null==(a=n.node)?void 0:a.altText)||"",m=o.featuredHeading||o.featuredDescription||(null==(i=o.featuredLink)?void 0:i.title);return m||d?(0,r.jsxs)("article",{className:"flex min-w-0 flex-col gap-8 pr-7 pb-96",children:[m&&(0,r.jsxs)("div",{className:"flex flex-col items-start gap-4 pt-8",children:[(0,r.jsxs)("div",{className:"text-lightCream flex flex-col gap-3",children:[o.featuredHeading&&(0,r.jsx)("h2",{className:"typography-h4 uppercase",children:o.featuredHeading}),o.featuredDescription&&(0,r.jsx)("p",{className:"typography-footnote",children:o.featuredDescription})]}),(null==(s=o.featuredLink)?void 0:s.title)&&o.featuredLink.url&&(0,r.jsx)(c.$n,{href:o.featuredLink.url,target:o.featuredLink.target,className:"border-lightCream text-lightCream hover:bg-lightCream hover:text-darkBurgundy typography-bodySmall font-heading font-medium rounded-none bg-transparent px-2! py-2! text-[12px]! uppercase",children:o.featuredLink.title})]}),d&&(0,r.jsx)(c._V,{src:d,alt:u,className:"aspect-[1536/807] w-full object-cover",sizes:"(min-width: 1024px) 25vw, 0px"})]}):null},S=e=>{var t;let{flushLeft:l,flushRight:a,item:n,reserveHeadingSpace:i}=e,s=!!(n.label||i);return(0,r.jsxs)("section",{className:(0,u.cn)("min-w-0 py-8",!a&&"pr-6",!l&&"border-lightPink/15 border-l pl-6"),children:[n.label&&(0,r.jsx)("h2",{className:"typography-h6 text-lightCream uppercase",children:(0,r.jsx)(k,{item:n,className:(0,u.cn)(y(n.path)&&"hover:text-lightOrange hover:underline hover:underline-offset-4")})}),!n.label&&i&&(0,r.jsx)("div",{"aria-hidden":"true",className:"typography-h6 invisible uppercase",children:"Column heading"}),!!(null==(t=n.children)?void 0:t.length)&&(0,r.jsx)("ul",{className:(0,u.cn)("flex flex-col",s&&"mt-4"),children:n.children.map((e,t)=>(0,r.jsx)("li",{className:"border-lightPink/15 border-b",children:(0,r.jsx)(k,{item:e,className:(0,u.cn)("typography-footnote text-lightCream font-medium hover:text-lightOrange block pb-3 hover:underline hover:underline-offset-4",t>0&&"pt-3")})},b(e)))})]})},_=e=>{var t,l,a;let{item:n,option:i}=e,s=!!(i&&(i.featuredHeading||i.featuredDescription||(null==(t=i.featuredLink)?void 0:t.title)||(null==(a=i.featuredImage)||null==(l=a.node)?void 0:l.sourceUrl))),o=((e,t)=>{let l=e.children||[];if(!l.some(e=>{var t;return null==(t=e.children)?void 0:t.length}))return w(l.slice(0,8*t),8).map((t,l)=>({column:{id:"".concat(b(e),"-flat-column-").concat(l),children:t},reserveHeadingSpace:!0}));let r=[],a=[];return l.forEach(e=>{var t;if(!(null==(t=e.children)?void 0:t.length))return void a.push(e);w(e.children,8).forEach((t,l)=>{r.push({column:0===l?{...e,children:t}:{id:"".concat(b(e),"-overflow-column-").concat(l),children:t},reserveHeadingSpace:l>0})})}),w(a,8).forEach((t,l)=>{r.push({column:{id:"".concat(b(e),"-direct-column-").concat(l),children:t},reserveHeadingSpace:!0})}),r.slice(0,t)})(n,4-!!s),d=o.length+ +!!s;return d?(0,r.jsx)(g.P.div,{id:"mega-menu-".concat(n.id||(e=>{if(!e)return"";if("#"===e)return e;try{let t=new URL(e,"http://launceston.local").pathname;return"/"===t?t:"".concat(t.replace(/\/$/,""),"/")}catch(t){return e}})(n.path).replace(/\W/g,"-")),layout:"size",initial:{opacity:0,y:-6}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.24,ease:[.22,1,.36,1]},className:"bg-darkBurgundy absolute top-124 left-0 hidden w-full md:block",children:(0,r.jsx)(f.N,{initial:!1,mode:"wait",children:(0,r.jsxs)(g.P.div,{initial:{opacity:0,y:-3},animate:{opacity:1,y:0},exit:{opacity:0,y:2},transition:{duration:.14,ease:[.22,1,.36,1]},className:"main-column grid items-stretch",style:{gridTemplateColumns:"repeat(".concat(d,", minmax(0, 1fr))")},children:[s&&i&&(0,r.jsx)(C,{option:i}),o.map((e,t)=>{let{column:l,reserveHeadingSpace:a}=e;return(0,r.jsx)(S,{flushLeft:!s&&0===t,flushRight:t===o.length-1,item:l,reserveHeadingSpace:a},b(l))})]},b(n))})}):null},B=e=>{let{activeItemKey:t,items:l,onActivate:a}=e;return(0,r.jsx)("div",{className:"hidden h-full items-center gap-4 md:flex",children:l.map(e=>{var l;let n=b(e),i=!!(null==(l=e.children)?void 0:l.length);return(0,r.jsx)("div",{className:"flex h-full items-center",onMouseEnter:()=>a(i?e:null),onFocus:()=>a(i?e:null),children:(0,r.jsx)(k,{item:e,className:(0,u.cn)("typography-bodySmall text-darkCharcoal font-medium underline-offset-4 hover:underline",t===n&&"underline")})},n)})})},I=e=>{let{items:t,onSelect:l}=e;return(0,r.jsx)(g.P.ul,{initial:{x:"-15%",opacity:0}
1,animate:{x:0,opacity:1},exit:{x:"-15%",opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"px-initGutter pb-5 sm:px-smGutter",children:t.map(e=>{var t;let a=!!(null==(t=e.children)?void 0:t.length);return(0,r.jsxs)("li",{className:"border-lightPink/15 flex min-h-8 items-stretch gap-[10px] border-b",children:[(0,r.jsx)(k,{item:e,className:"typography-h6 text-lightPink flex min-w-0 flex-1 items-center py-2 text-left uppercase"}),a?(0,r.jsx)("button",{type:"button",onClick:()=>l(e),className:"focus-visible flex w-6 items-center justify-end py-2","aria-label":"Open ".concat(e.label," menu"),children:(0,r.jsx)(c.In,{name:"arrow_right",className:"[&_path]:stroke-lightPink size-4"})}):(0,r.jsx)("span",{"aria-hidden":"true",className:"size-4"})]},b(e))})},"mobile-level-one")},z=e=>{var t,l,a;let{item:n,onBack:i}=e,s=!!(null==(t=n.children)?void 0:t.some(e=>{var t;return null==(t=e.children)?void 0:t.length}));return(0,r.jsxs)(g.P.div,{initial:{x:"15%",opacity:0},animate:{x:0,opacity:1},exit:{x:"15%",opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"px-initGutter pb-5 sm:px-smGutter",children:[(0,r.jsx)("div",{className:"border-lightPink/15 mb-5 border-b pb-2",children:(0,r.jsxs)("button",{type:"button",onClick:i,className:"focus-visible text-lightPink font-medium flex h-4 items-center gap-[10px]",children:[(0,r.jsx)(c.In,{name:"favourites_arrow",className:"[&_path]:stroke-lightPink size-4 rotate-180"}),"Back"]})}),s?(0,r.jsx)("div",{className:"flex flex-col gap-5",children:null==(l=n.children)?void 0:l.map(e=>{var t;return(0,r.jsxs)("section",{children:[e.label&&(0,r.jsx)("h2",{className:"text-lightCream typography-h6 uppercase",children:(0,r.jsx)(k,{item:e,className:(0,u.cn)(y(e.path)&&"hover:text-lightOrange hover:underline hover:underline-offset-4")})}),!!(null==(t=e.children)?void 0:t.length)&&(0,r.jsx)("ul",{className:(0,u.cn)(e.label&&"mt-3"),children:e.children.map((e,t)=>(0,r.jsx)("li",{className:"border-lightPink/15 border-b",children:(0,r.jsx)(k,{item:e,className:(0,u.cn)("text-lightCream font-medium hover:text-lightOrange block pb-2 hover:underline hover:underline-offset-4",t>0&&"pt-2")})},b(e)))})]},b(e))})}):(0,r.jsx)("ul",{children:null==(a=n.children)?void 0:a.map((e,t)=>(0,r.jsx)("li",{className:"border-lightPink/15 border-b",children:(0,r.jsx)(k,{item:e,className:(0,u.cn)("text-lightCream font-medium hover:text-lightOrange block pb-2 hover:underline hover:underline-offset-4",t>0&&"pt-2")})},b(e)))})]},"mobile-level-two")},A=e=>{let{items:t,onClose:l}=e,[a,i]=(0,n.useState)(null);return(0,r.jsxs)(g.P.div,{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"},transition:{duration:.7,ease:"easeInOut"},className:"bg-darkBurgundy fixed inset-x-0 top-0 z-200 h-dvh overflow-y-auto md:hidden",children:[(0,r.jsxs)("section",{className:"grid h-10 grid-cols-[1fr_auto_1fr] items-center px-initGutter sm:px-smGutter",children:[(0,r.jsx)("button",{type:"button",onClick:l,className:"focus-visible justify-self-start","aria-label":"Close menu",children:(0,r.jsx)(c.In,{name:"cross",className:"size-[21px]"})}),(0,r.jsx)(j,{className:"icon-color-lightPink"}),(0,r.jsx)("span",{})]}),(0,r.jsx)(f.N,{mode:"wait",initial:!1,children:a?(0,r.jsx)(z,{item:a,onBack:()=>i(null)}):(0,r.jsx)(I,{items:t,onSelect:i})})]})},T=e=>{var t;let{heading:l,items:a=[],megaMenus:i=[],showHeading:s}=e,[o,d]=(0,n.useState)(!1),[m,g]=(0,n.useState)(null),y=(0,x.Q)(["(min-width: 1024px)"],[!0],!1),w=(0,p.useRouter)(),k=(0,n.useMemo)(()=>{let e=new Map;return(i||[]).forEach(t=>{if(!t)return;let l=Array.isArray(t.triggerMenuItem)?t.triggerMenuItem[0]:t.triggerMenuItem;l&&e.set("item:".concat(l),t)}),e},[i]),C=m?k.get("item:".concat(m.databaseId)):void 0;(e=>{let t=(0,p.useRouter)();(0,n.useEffect)(()=>{let l=h(t.asPath);l&&e(l);let r=t=>{e(h(t))};return t.events.on("hashChangeStart",r),()=>{t.events.off("hashChangeStart",r)}},[])})(()=>{d(!1),g(null)}),(0,n.useEffect)(()=>{let e=()=>{d(!1),g(null)};return w.events.on("routeChangeComplete",e),()=>w.events.off("routeChangeComplete",e)},[w.events]),(0,n.useEffect)(()=>(o?(0,v.s2)():(0,v.Tl)(),()=>(0,v.Tl)()),[o]),(0,n.useEffect)(()=>{d(!1),g(null)},[y]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(d(!1),g(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let S=a.slice(0,4),I=a.slice(4,8),z=m?b(m):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("header",{className:(0,u.cn)("bg-lightCream sticky top-0 left-0 w-full",m?"z-100":"z
1-10"),onMouseLeave:()=>g(null),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||g(null)},children:[(0,r.jsxs)("div",{className:"main-column",children:[(0,r.jsxs)("section",{className:"relative grid h-10 grid-cols-[1fr_auto_1fr] items-center md:h-124",children:[(0,r.jsx)("button",{type:"button",onClick:()=>d(!0),className:"focus-visible md:hidden","aria-label":"Open menu",children:(0,r.jsx)(c.In,{name:"hamburger",className:"size-3"})}),(0,r.jsx)(B,{items:S,activeItemKey:z,onActivate:g}),(0,r.jsx)(j,{}),(0,r.jsxs)("div",{className:"ml-auto flex h-full items-center justify-end gap-4",children:[(0,r.jsx)(B,{items:I,activeItemKey:z,onActivate:g}),(0,r.jsx)(N,{})]})]}),s&&(0,r.jsx)("h1",{className:"typography-largeHeading text-darkCharcoal mx-auto max-w-300 py-40 text-center md:max-w-656 lg:py-56",children:l})]}),(0,r.jsx)(f.N,{children:(null==m||null==(t=m.children)?void 0:t.length)&&(0,r.jsx)(_,{item:m,option:C})})]}),(0,r.jsx)(f.N,{children:o&&(0,r.jsx)(A,{items:a,onClose:()=>d(!1)})})]})};var P=l(58250),E=l(96635),F=l.n(E);let L=e=>{var t,l;let{featuredImage:a,socialLinks:n,seo:i}=e;if(!i)return null;let s=(null==n?void 0:n.twitter)&&(e=>{if(!e)return null;let t=e.match(/twitter\.com\/([^/]+)/i);return(null==t?void 0:t[1])?"@".concat(t[1]):null})(null==n?void 0:n.twitter),o=i.breadcrumbs||[],d=null==(t=o[o.length-1])?void 0:t.url,c=(e=>{var t,l;let{featuredImage:r,seo:a}=e;return(null==a||null==(t=a.opengraphImage)?void 0:t.sourceUrl)||(null==r||null==(l=r.node)?void 0:l.sourceUrl)||"".concat("https://www.launceston.com.au","/images/social-sharing-image.jpg")})({featuredImage:a,seo:i}),u=(0,P.U)({title:null==i?void 0:i.title,description:null==i?void 0:i.metaDesc,canonical:d||void 0,openGraph:{title:null==i?void 0:i.title,description:null==i?void 0:i.metaDesc,images:[{url:c,width:1200,height:630,alt:(null==i||null==(l=i.opengraphImage)?void 0:l.altText)||""}],url:d},twitter:{handle:s,site:s,cardType:"summary_large_image"}});return(0,r.jsx)(F(),{children:u})},G=function(e){var t;let{children:l,masthead:n,renderAboveFooter:c,renderSeo:u=!0,seo:m,featuredImage:p,title:h,navHeading:x,showNavHeading:g=!1,avInternalMasthead:f,homeMasthead:v,operatorsMasthead:y,internalMastheadSearch:b,internalMastheadChildren:w,internalMastheadEyebrow:j}=e,{menus:N,siteOptions:k}=(0,a.q)(),{socialLinks:C}=k||{},S=null==f?void 0:f.avInternalMastheadData,_=(null==S||null==(t=S.heading)?void 0:t.trim())||(null==h?void 0:h.trim()),B=void 0!==n?n:v?(0,r.jsx)(d.A,{...v}):y?(0,r.jsx)(o.X,{...y}):(0,r.jsx)(s.N,{...S,heading:_,eyebrow:(null==S?void 0:S.eyebrow)||j,...b,children:w});return(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsx)(L,{featuredImage:p,socialLinks:C,seo:m}),(0,r.jsx)(T,{heading:x,items:null==N?void 0:N.primary_menu,megaMenus:null==k?void 0:k.megaMenus,showHeading:g}),(0,r.jsxs)("main",{className:"bg-lightCream relative z-20 min-h-screen",style:{transform:"translateZ(0px)"},children:[B,l,c,(0,r.jsx)(i.w,{})]})]})}},52518:(e,t,l)=>{l.d(t,{X:()=>Y});
1var r=l(5640),a=l(50148),n=l(62351),i=l(44880),s=l(3772),o=l(88383),d=l(85781),c=l(48426),u=l(17521);let m=e=>{var t;return(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)},p={enter:e=>({x:1===e?-24:24,opacity:0}),center:{x:0,opacity:1},exit:e=>({x:1===e?24:-24,opacity:0})},h=e=>({custom:e,variants:p,initial:"enter",animate:"center",exit:"exit",transition:{duration:.4,ease:"easeOut"}}),x=[{"--theme-primary":"var(--color-lightYellow)","--theme-secondary":"var(--color-darkGreen)"},{"--theme-primary":"var(--color-lightOrange)","--theme-secondary":"var(--color-darkBurgundy)"},{"--theme-primary":"var(--color-midPurple)","--theme-secondary":"var(--color-darkBlue)"},{"--theme-primary":"var(--color-lightBlue)","--theme-secondary":"var(--color-darkBlue)"},{"--theme-primary":"var(--color-lightGreen)","--theme-secondary":"var(--color-darkGreen)"},{"--theme-primary":"var(--color-lightPink)","--theme-secondary":"var(--color-darkBurgundy)"},{"--theme-primary":"var(--color-midBrown)","--theme-secondary":"var(--color-darkBurgundy)"},{"--theme-primary":"var(--color-lightBrown)","--theme-secondary":"var(--color-darkBurgundy)"},{"--theme-primary":"var(--color-darkGreen)","--theme-secondary":"var(--color-lightYellow)"},{"--theme-primary":"var(--color-darkBlue)","--theme-secondary":"var(--color-lightBlue)"},{"--theme-primary":"var(--color-darkBrown)","--theme-secondary":"var(--color-lightBrown)"}],g=e=>{let{guide:t,index:l,selectedIndex:a}=e,s=m(t.graphic),o=(e=>{var t;return(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||""})(t.graphic),d=x[l%x.length];return(0,r.jsx)("div",{className:(0,n.cn)("flex min-w-0 shrink-0 basis-[272px] justify-center","lg:basis-[365px]"),children:(0,r.jsxs)("div",{style:d,className:(0,n.cn)("flex aspect-square w-full flex-col items-center justify-center rounded-full","bg-(--theme-primary) text-(--theme-secondary) outline outline-2 -outline-offset-[18px] outline-(--theme-secondary)","px-4 text-center lg:px-5 lg:outline-offset-[-21px]",l===a&&"relative z-10"),children:[s&&(0,r.jsx)(i._V,{alt:o,inheritSize:!0,src:s,className:"mb-[10px] w-128 lg:w-220"}),t.heading&&(0,r.jsx)("h3",{className:"typography-h6 flex max-w-133 justify-center text-center text-[18px] leading-[1.1] uppercase lg:max-w-220 lg:text-[22px]",children:t.heading})]})})},f=e=>{var t,l;let{guides:s=[]}=e,o=s.filter(e=>e.heading||e.description||m(e.graphic)),[p,x]=(0,d.A)({align:"center",containScroll:!1,loop:o.length>1}),[f,v]=(0,a.useState)(0),[y,b]=(0,a.useState)(1),w=o[f],j=(0,a.useCallback)(e=>{let t=e.selectedScrollSnap();v(e=>{var l;return e!==t&&b((t-e+(l=o.length))%l<=(e-t+l)%l?1:-1),t})},[o.length]);(0,a.useEffect)(()=>{if(x)return j(x),x.on("select",j),x.on("reInit",j),()=>{x.off("select",j),x.off("reInit",j)}},[x,j]);let N=(0,a.useMemo)(()=>({previous:()=>{b(-1),null==x||x.scrollPrev()},next:()=>{b(1),null==x||x.scrollNext()}}),[x]);return w?(0,r.jsxs)("section",{className:"bg-lightCream text-darkBurgundy overflow-hidden",children:[(0,r.jsx)("div",{className:"bg-darkBurgundy flex h-300 items-start justify-center pt-54 md:h-460 md:pt-120",children:(0,r.jsx)(i._V,{alt:"The official un-official guide to Launceston",inheritSize:!0,priority:!0,src:"/images/city-guide-logo-light.png",className:"w-213 md:w-308"})}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{className:"relative z-10 -mt-146 md:-mt-182",children:[(0,r.jsx)("div",{ref:p,className:"overflow-visible",children:(0,r.jsx)("div",{className:"flex touch-pan-y gap-3 pl-3 lg:gap-64 lg:pl-64",children:o.map((e,t)=>(0,r.jsx)(g,{guide:e,index:t,selectedIndex:f},"".concat(e.heading,"-").concat(t)))})}),o.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button","aria-label":"Previous city guide",onClick:N.previous,className:(0,n.cn)("absolute top-half left-0 z-20 hidden size-48 -translate-x-1/2 -translate-y-half items-center justify-center rounded-full border-2 md:flex","border-darkBurgundy bg-lightCream text-darkBurgundy hover:bg-darkBurgundy hover:icon-stroke-lightCream duration-200 md:left-52"),children:(0,r.jsx)(i.In,{name:"arrow_right",className:"size-3 rotate-180"})}),(0,r.jsx)("button",{type:"button","aria-label":"Next city guide",onClick:N.next,className:(0,n.cn)("absolute top-half right-0 z-20 hidden size-48 translate-x-1/2 -translate-y-half items-center justify-center rounded-full border-2 md:flex","border-darkBurgundy bg-lightCream text-darkBurgundy hover:bg-darkBurgundy hover:icon-stroke-lightCream duration-200 md:right-52"),children:(0,r.jsx)(i.In,{name:"arrow_right",className:"size-3"})})]})]}),(0,r.jsxs)("div",{className:"main-column flex max-w-656 flex-col items-center pt-4 text-center md:pt-48",children:[(0,r.jsx)(c.N,{mode:"wait",custom:y,children:(0,r.jsx)(u.P.p,{className:"typography-bodySmall max-w-400 md:max-w-620",...h(y),children:w.description},w.description)}),(null==(t=w.link)?void 0:t.url)&&(null==(l=w.link)?void 0:l.title)&&(0,r.jsx)(c.N,{mode:"wait",custom:y,children:(0,r.jsx)(u.P.div,{className:"mt-4",...h(y),children:(0,r.jsx)(i.FZ,{className:"typography-bodySmall typography-link font-bold text-darkBurgundy!",href:w.link.url,target:w.link.target,children:w.link.title})},w.link.url)})]})]})]}):null};var v=l(97109),y=l(71629),b=l(39797),w=l(63652);let j=e=>{let{image:t,imagePosition:l,theme:a,eyebrow:s,heading:o,description:d,button:c,href:u,link:m,className:p}=e,h=Array.isArray(a)?a[0]:a,x=w.F.includes(h)?h:"theme-gold",g=l||"left",f=(e=>{var t;return"string"==typeof e?e:(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)})(t),v=(e=>{var t;return"string"==typeof e?"":(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||""})(t),y=(null==m?void 0:m.url)||u,j=(null==m?void 0:m.title)||c;return(0,r.jsxs)("div",{className:(0,n.cn)(x,"md:grid md:grid-cols-2",p),children:[(0,r.jsx)("div",{className:(0,n.cn)("flex flex-col justify-center bg-(--theme-secondary) px-3 pt-3","sm:px-37 sm:pt-5","md:py-45 md:pr-0! md:pl-6","lg:py-92 lg:pl-92","bg:py-125 bg:pl-134","right"===g&&"md:order-2 md:pr-6! md:pl-0 lg:pr-92! lg:pl-0 bg:pr-134! bg:pl-0"),children:(0,r.jsx)(i._V,{src:f,displayPlaceholderImage:!0,className:"aspect-[1.874] md:aspect-auto md:h-full vbg:min-h-600",alt:v})}),(0,r.jsxs)("div",{className:(0,n.cn)("flex flex-col items-center justify-center bg-(--theme-primary) p-5 px-4 text-center text-(--theme-secondary)","sm:pt-53 sm:pb-68","md:px-7 md:py-142","bg:px-120 bg:py-192","right"===g&&"md:order-1"),children:[s&&(0,r.jsx)("span",{className:"typography-eyebrow mx-auto mb-3 border border-current px-[5px] py-[3px] text-inherit",children:s}),o&&(0,r.jsx)("h2",{className:"typography-h3 mx-auto mb-4 max-w-528 text-inherit md:mb-4",children:(0,b.o)(o)}),d&&(0,r.jsx)("p",{className:"mb-4 max-w-528 lg:mb-7 bg:mb-60",children:(0,b.o)(d)}),j&&y&&(0,r.jsx)(i.FZ,{href:y,target:null==m?void 0:m.target,className:"typography-eyebrow font-medium rounded-half border-2 border-current px-32 py-21 text-inherit duration-150 hover:bg-(--theme-secondary) hover:text-(--theme-primary)",children:j})]})]})};var N=l(5244);let k=e=>{let{variant:t,image:l,theme:a,eyebrow:n,heading:i,description:s,link:o,graphic:d,imagePosition:c,className:u}=e;return"50/50"===t?(0,r.jsx)(j,{image:l,imagePosition:c,theme:a,eyebrow:n,heading:i,description:s,link:o,className:u}):(0,r.jsx)(N.A,{image:l,theme:a,eyebrow:n,heading:i,description:s,link:o,graphic:d,imagePosition:c,className:u})};var C=l(35958),S=l(14882),_=l.n(S),B=l(23239),I=l(79892);function z(e){var t;let{slide:l,maxWidth:n,total:s,active:o}=e,{close:d}=(0,B.useController)(),{url:c,caption:u,alt:m}=(null==l?void 0:l.attributes)||{},p=c||(null==l?void 0:l.src);return(0,a.useEffect)(()=>
1{if(!o)return;let e=e=>{let{target:t}=e;!(t instanceof Element)||t.closest("button, img, [data-gallery-modal-text]")||d()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[o,d]),(0,r.jsxs)("div",{"data-gallery-modal-text":!0,className:"relative flex max-h-[calc(100vh-30px)] w-full flex-col gap-2",style:{maxWidth:n},children:[o&&(0,r.jsx)("button",{onClick:d,type:"button","aria-label":"Close gallery",className:"group/gallery-close border-darkBurgundy bg-lightCream hover:bg-darkBurgundy focus-visible:bg-darkBurgundy absolute top-1 right-1 z-20 flex size-48 items-center justify-center rounded-full border-2 transition-colors md:top-2 md:right-2",children:(0,r.jsx)(i.In,{name:"cross",className:"[&_path]:stroke-darkBurgundy group-hover/gallery-close:[&_path]:stroke-lightCream group-focus-visible/gallery-close:[&_path]:stroke-lightCream size-[18px]"})}),(0,r.jsx)("div",{className:"relative w-full",children:(0,r.jsx)(i._V,{alt:m||"",src:p,inheritSize:!0,className:"w-full object-contain",sizes:"(max-width: 1300px) 100vw, 75vw",quality:100,unoptimized:!0})}),(0,r.jsxs)("div",{className:"text-lightCream flex min-h-[20px] items-start gap-3 leading-[1.3]",children:[(0,r.jsx)(i.EY,{as:"footnote",className:"font-light min-w-0 flex-1 text-inherit italic",children:u}),(0,r.jsxs)(i.EY,{as:"footnote",className:"font-light shrink-0 text-inherit",children:[(0,r.jsx)("span",{className:"font-medium",children:(null!=(t=null==l?void 0:l.galleryIndex)?t:0)+1})," ","of ",s]})]})]})}let A=_()(()=>Promise.resolve().then(l.bind(l,23239)),{loadableGenerated:{webpack:()=>[23239]}}),T=e=>{let{total:t}=e,{next:l,prev:a}=(0,B.useController)();return t<=1?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.mA,{label:"Previous gallery image",direction:"left",onClick:()=>a(),className:"absolute top-1/2 left-0 z-20 -translate-y-1/2"}),(0,r.jsx)(I.mA,{label:"Next gallery image",direction:"right",onClick:()=>l(),className:"absolute top-1/2 right-0 z-20 -translate-y-1/2"})]})},P=e=>{let{images:t}=e,[l,s]=(0,a.useState)(-1),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(),m=(0,a.useRef)(null),p=(null==t?void 0:t.map((e,t)=>({src:e.url||"",attributes:e,galleryIndex:t})))||[],h=l>=0,x=(0,a.useCallback)(()=>{var e;let t=null==(e=m.current)?void 0:e.getBoundingClientRect();t&&u({left:t.left,width:t.width})},[]);(0,a.useEffect)(()=>{let e=m.current;if(!e)return;x();let t=new ResizeObserver(x);return t.observe(e),window.addEventListener("resize",x),()=>{t.disconnect(),window.removeEventListener("resize",x)}},[x]),(0,a.useEffect)(()=>{if(!o)return;let e=window.requestAnimationFrame(x);return()=>window.cancelAnimationFrame(e)},[o,x]);let g=(null==c?void 0:c.width)&&c.width>=900?34:24;return(0,a.useEffect)(()=>{if(!h)return;let{body:e}=document,t=window.scrollY,l={left:e.style.left,position:e.style.position,top:e.style.top,width:e.style.width};return e.style.position="fixed",e.style.top="-".concat(t,"px"),e.style.left="0",e.style.width="100%",()=>{let{documentElement:r}=document,a=r.style.scrollBehavior;r.style.scrollBehavior="auto",e.style.position=l.position,e.style.top=l.top,e.style.left=l.left,e.style.width=l.width,window.scrollTo({left:0,top:t,behavior:"auto"}),window.requestAnimationFrame(()=>{r.style.scrollBehavior=a})}},[h]),(0,r.jsxs)("div",{children:[o&&(0,r.jsx)(A,{open:h,close:()=>{s(-1)},slides:p,index:l,on:{view:e=>{let{index:t}=e;return s(t)}},render:{slide:e=>{let{slide:t,offset:l}=e;return(0,r.jsx)(z,{slide:t,maxWidth:null==c?void 0:c.width,total:p.length,active:0===l})},controls:()=>(0,r.jsx)(T,{total:p.length}),buttonNext:()=>null,buttonPrev:()=>null,iconClose:()=>null},carousel:{padding:0},noScroll:{disabled:!0},controller:{preventDefaultWheelY:!0},styles:{root:{backgroundColor:"rgba(24, 24, 24, 0.92)"},container:{backgroundColor:"transparent",width:c?"".concat(c.width+2*g,"px"):"100vw",left:c?"".concat(c.left-g,"px"):0,right:"auto",transform:"none",top:0}}}),(0,r.jsx)("div",{ref:m,className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:gap-5",children:null==t?void 0:t.map((e,l)=>(0,r.jsx)("button",{type:"button","aria-label":"Open gallery image ".concat(l+1," of ").concat(t.length),className:(0,n.cn)("group/gallery-image flex cursor-pointer flex-col overflow-hidden text-left","focus-visible:outline-darkBurgundy focus-visible:outline-2 focus-visible:outline-offset-2"),onClick:()=>{x(),d(!0),s(l)},children:(0,r.jsx)(i._V,{src:e.url||void 0,alt:e.alt||"",sizes:"(max-width: 699px) calc(100vw - 48px), (max-width: 1023px) 50vw, 35vw",className:"aspect-[2/1] w-full overflow-hidden object-cover [&_img]:transition-transform [&_img]:duration-300 group-hover/gallery-image:[&_img]:scale-[1.03] group-focus-visible/gallery-image:[&_img]:scale-[1.03]"})},l))})]})},E={replace:e=>{var t;if(!(e instanceof o.Hg)||"script"!==e.name||!(null==(t=e.attribs)?void 0:t.src))return;let{src:l,...r}=e.attribs;return(0,a.createElement)("script",{...r,"data-original-src":l,key:l})}},F={replace:(e,t)=>{var l,r,i;if(e instanceof o.Hg&&(null==(r=e.attribs)||null==(l=r.class)?void 0:l.split(/\s+/).includes("wp-block-column"))){let l=(0,o.$5)(e.attribs,e.name);return a.createElement(e.name,{...l,className:(0,n.cn)(l.className,"wysiwyg"),key:t},(0,o.zd)(e.children,F))}return null==(i=E.replace)?void 0:i.call(E,e,t)}};function L(e){var t;return null!=(t=null==e?void 0:e.filter(e=>null!=e))?t:[]}function G(e){if(!e)return null;if("object"==typeof e)return e;if("string"!=typeof e)return null;try{return JSON.parse(e)}catch(e){return null}}function M(e){return e||void 0}function W(e){return!!e&&"object"==typeof e&&"attributes"in e&&!!e.attributes&&"object"==typeof e.attributes&&"url"in e.attributes}function O(e){var t,l,r;if(!e)return;let a=M(e.sourceUrl),n=M(null==(t=e.node)?void 0:t.sourceUrl);return{sourceUrl:a,altText:M(e.altText),title:M(e.title),url:M(e.url),node:n?{sourceUrl:n,altText:M(null==(l=e.node)?void 0:l.altText),title:M(null==(r=e.node)?void 0:r.title)}:void 0}}function R(e){return(null==e?void 0:e.url)||(null==e?void 0:e.title)?{url:e.url||void 0,title:e.title||void 0,target:e.target||void 0}:null}function H(e){if(!e||"object"!=typeof e||!("anchor"in e))return;let{anchor:t}=e;return"string"==typeof t&&t.length?t:void 0}let U=e=>{var t,l;let r=G(null==(t=e.attributes)?void 0:t.style),{top:a,bottom:n}=(null==r||null==(l=r.spacing)?void 0:l.margin)||{},i=["wysiwyg-extraMargin"];return("0"===a||"0%"===a)&&i.push("-mt-0!"),("0"===n||"0%"===n)&&i.push("-mb-0!"),i.join(" ")},V=function(e,t,l){var a,d,c,u,m,p,h,x,g,b,w,j,N,S,_,B,I,z,A,T,V,Y,Z,q,D,$,Q,J,X,K,ee;arguments.length>3&&void 0!==arguments[3]&&arguments[3];let et=H(e);switch(e.__typename){case"CoreImage":{if(!(null==(a=e.attributes)?void 0:a.src))return null;let t="string"==typeof e.attributes.cssClassName?e.attributes.cssClassName.replace("size-full",""):"",l={};return"string"==typeof e.attributes.width&&(l["--img-max-w"]=e.attributes.width),(0,r.jsx)(i._V,{id:et,src:e.attributes.src,className:(0,n.cn)("wysiwyg-extraMargin flex flex-col",t,e.attributes.caption&&"hasCaption",e.attributes.width&&"[&_img]:max-w-[var(--img-max-w)]"),style:l,inheritSize:!0,children:e.attributes.caption&&(0,r.jsx)("figcaption",{className:"relative z-20",children:(0,o.Ay)(e.attributes.caption)})})}case"CoreButtons":{let{justifyContent:t}=G(null==(d=e.attributes)?void 0:d.layout)||{},l=L(e.innerBlocks).filter(e=>"CoreButton"===e.__typename);return l.length?(0,r.jsx)("div",{id:et,className:"mt-4 flex flex-wrap gap-2",style:{justifyContent:t},children:l.map((e,t)=>{var l,a;let n=null==(l=e.attributes)?void 0:l.text,s=null==(a=e.attributes)?void 0:a.url;return n&&s?(0,r.jsx)(i.e$,{id:et,href:s,className:"border-darkBurgundy text-darkBurgundy hover:border-darkBurgundy hover:bg-darkBurgundy hover:text-lightCream",children:(0,o.Ay)(n)},t):null})}):null}case"CoreColumns":{let t=L(e.innerBlocks),l=t.length||1;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-wideWidth wysiwyg-extraMargin","flex flex-col gap-3 sm:grid sm:gap-2 md:gap-5"),id:et,style:{gridTemplateColumns:"repeat(".concat(l,", 1fr)")},children:t.map((e,t)=>(0,r.jsx)("div",{children:(0,o.Ay)(e.renderedHtml||"",F)},t))})}case"CoreGallery":{let t=L(e.innerBlocks).filter(W).map(e=>e.attributes).filter(e=>!!(null==e?void 0:e.url));if(!t.length)return null;return(0,r.jsx)("figure",{id:et,className:(0,n.cn)("wysiwyg-wideWidth wysiwyg-extraMargin"),children:(0,r.jsx)(P,{images:t})})}
1case"AcfImagecarousel":{let t=L(null==(u=e.blockImageCarousel)||null==(c=u.blockImageCarousel)?void 0:c.nodes).map(e=>({sourceUrl:M(e.sourceUrl),altText:M(e.altText),caption:M(e.caption)}));if(!t.length)return null;return(0,r.jsx)("figure",{id:et,className:(0,n.cn)("wysiwyg-wideWidth",U(e)),children:(0,r.jsx)(s.gf,{images:t})})}case"AcfAvenueembed":{let t=null==(m=e.blockEmbed)?void 0:m.avEmbed;return(null==t||null==(p=t.snippet)?void 0:p.length)?(0,r.jsxs)("figure",{id:et,className:(0,n.cn)("avenue-embed wysiwyg-wideWidth",U(e)),children:[(0,o.Ay)(t.snippet,E),t.caption&&(0,r.jsx)("figcaption",{className:"typography-bodySmall mt-2",children:t.caption})]}):null}case"AcfFullwidthbanner":{let t=null==(h=e.blockFullWidthBanner)?void 0:h.avBlockFullWidthBanner;if(!t)return null;let l=O(t.image);return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),children:(0,r.jsx)(s.Qe,{id:et,image:l,eyebrow:M(t.eyebrow),heading:M(t.heading),description:M(t.description),buttonText:(null==(x=t.link)?void 0:x.title)||"",buttonHref:(null==(g=t.link)?void 0:g.url)||"",buttonTarget:null==(b=t.link)?void 0:b.target,cardPosition:function(e){let t=Array.isArray(e)?e[0]:e;return"left"===t||"right"===t?t:void 0}(t.cardPosition)})})}case"AcfSidebysidecta":{let t=null==(w=e.blockSideBySideCta)?void 0:w.avSideBySideCta,l=G(null==(j=e.attributes)?void 0:j.data),a="50/50"===((null==l?void 0:l.av_side_by_side_cta_variant)||(null==l?void 0:l.variant))?"50/50":"60/40";if(!(null==t?void 0:t.image)&&!(null==t?void 0:t.eyebrow)&&!(null==t?void 0:t.heading)&&!(null==t?void 0:t.description))return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(k,{variant:a,image:O(t.image),theme:t.theme,eyebrow:M(t.eyebrow),heading:M(t.heading),description:M(t.description),link:t.link,graphic:"60/40"===a&&t.showSecondaryGraphic?O(t.graphic):void 0,imagePosition:"left"===t.imagePosition||"right"===t.imagePosition?t.imagePosition:void 0})})}case"AcfSidebysideeditorial":{let t=null==(N=e.blockSideBySideEditorial)?void 0:N.avSideBySideEditorial;if(!(null==t?void 0:t.image)&&!(null==t?void 0:t.text))return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(s.DT,{image:O(t.image),text:M(t.text),reduceLeftSidePadding:!!t.reduceLeftSidePadding,imagePosition:"right"===t.imagePosition?"right":"left"})})}case"AcfSidebysidetext":{let t=null==(S=e.blockSideBySideText)?void 0:S.avSideBySideText;if(!(null==t?void 0:t.tag1)&&!(null==t?void 0:t.tag2)&&!(null==t?void 0:t.heading)&&!(null==t?void 0:t.text))return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(s.N3,{tag1:M(t.tag1),tag2:M(t.tag2),heading:M(t.heading),text:M(t.text)})})}case"AcfEventDetails":{let t=null==(_=e.blockEventDetails)?void 0:_.avEventDetails;if(!t||!t.textSection&&!t.where&&!t.googleMapsLink&&!t.when&&!t.price&&!t.contactEmail&&!t.website)return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-wideWidth",U(e)),id:et,children:(0,r.jsx)(s.jA,{data:t})})}case"AcfPulloutquote":{let t=null==(B=e.blockPulloutQuote)?void 0:B.avPulloutQuote;if(!(null==t?void 0:t.quote)&&!(null==t?void 0:t.author)&&!(null==t?void 0:t.text))return null;return(0,r.jsx)(s.Ai,{id:et,quote:M(t.quote),author:M(t.author),text:M(t.text),className:(0,n.cn)("wysiwyg-mediumWidth acf-block-pulloutquote",U(e))})}case"AcfFacts":{let t=null==(I=e.blockFacts)?void 0:I.avFacts,l=L(null==t?void 0:t.items);if(!(null==t?void 0:t.heading)&&!(null==t?void 0:t.description)&&!l.length)return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(s.At,{heading:M(null==t?void 0:t.heading),description:M(null==t?void 0:t.description),items:l.map(e=>({image:O(null==e?void 0:e.image),text:M(null==e?void 0:e.text)}))})})}case"AcfLocalsFeature":{let t=function(e){if(!e)return null;let t=L(e.people).map(e=>({name:M(e.name),dropdownLabel:M(e.dropdownLabel),keepExploringCta:R(e.keepExploringCta),image:O(e.image),recommendations:L(e.recommendations).map(e=>({time:M(e.time),image:O(e.image),heading:M(e.heading),description:M(e.description),link:R(e.link)})).filter(e=>{var t,l;
1return e.time||e.image||e.heading||e.description||(null==(t=e.link)?void 0:t.url)||(null==(l=e.link)?void 0:l.title)})})).filter(e=>{var t,l;return e.name||e.dropdownLabel||(null==(t=e.keepExploringCta)?void 0:t.url)||(null==(l=e.keepExploringCta)?void 0:l.title)||e.image||e.recommendations.length}),l={labelImage:O(e.labelImage),introText:M(e.introText),people:t};return l.labelImage||l.introText||t.length?l:null}(null==(z=e.blockLocalsFeature)?void 0:z.avLocalsFeatureBlock);if(!t)return null;return(0,r.jsx)("div",{id:et,className:(0,n.cn)("wysiwyg-fullWidth",U(e)),children:(0,r.jsx)(s.pk,{...t})})}case"AcfCityGuides":{let t=null==(A=e.blockCityGuides)?void 0:A.avCityGuides,l=L(null==t?void 0:t.guides);if(!l.length)return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(f,{guides:l.map(e=>({graphic:O(e.graphic),heading:M(e.heading),description:M(e.description),link:e.link}))})})}case"AcfMap":{let t=null==(T=e.blockMap)?void 0:T.avMap;if(!(null==t?void 0:t.heading)&&!(null==t?void 0:t.description)&&!(null==t?void 0:t.link))return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(y.A,{heading:M(t.heading),description:M(t.description),link:t.link})})}case"AcfTwocards":{let t=null==(V=e.blockTwoCards)?void 0:V.avTwoCards,l=L(null==t?void 0:t.items);if(!(null==t?void 0:t.heading)&&!(null==t?void 0:t.description)&&!(null==t?void 0:t.eyebrow1)&&!(null==t?void 0:t.eyebrow2)&&!l.length)return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(C.A,{eyebrow1:M(null==t?void 0:t.eyebrow1),eyebrow2:M(null==t?void 0:t.eyebrow2),heading:M(null==t?void 0:t.heading),description:M(null==t?void 0:t.description),items:l.slice(0,2).map(e=>({eyebrow:M(e.eyebrow),heading:M(e.heading),image:O(e.image),link:e.link}))})})}case"AcfExploreSlider":{let t=null==(Y=e.blockExploreSlider)?void 0:Y.avExploreSlider,l=L(null==t?void 0:t.items);if(!(null==t?void 0:t.heading)&&!(null==t?void 0:t.description)&&!(null==t||null==(Z=t.link)?void 0:Z.url)&&!(null==t?void 0:t.graphic)&&!l.length)return null;return(0,r.jsx)("div",{className:(0,n.cn)("wysiwyg-fullWidth",U(e)),id:et,children:(0,r.jsx)(v.A,{heading:M(null==t?void 0:t.heading),description:M(null==t?void 0:t.description),link:null==t?void 0:t.link,graphic:O(null==t?void 0:t.graphic),items:l.map(e=>({image:O(e.image),link:e.link}))})})}case"AcfAvaccordion":{let t=null==(q=e.blockAccordion)?void 0:q.avBlockAccordion,l=L(null==t?void 0:t.items).map(e=>({heading:e.heading||"",description:e.description||""}));if(!l.length)return null;return(0,r.jsx)("div",{id:et,className:(0,n.cn)("acf-block-accordion",U(e)),children:(0,r.jsx)(s.nD,{items:l})})}case"AcfCustomvideo":{let t=null==(D=e.blockCustomVideo)?void 0:D.avBlockCustomEmbeddedVideo;if(!t)return null;return(0,r.jsx)("div",{id:et,className:(0,n.cn)("wysiwyg-largeWidth",U(e)),children:(0,r.jsx)(s.Ce,{...t})})}case"AcfTeasers":{let t=null==($=e.blockTeasersModule)?void 0:$.avBlockTeasers;if(!t)return null;return(0,r.jsx)(s.Cv,{id:et,className:(0,n.cn)("wysiwyg-fullWidth",U(e)),data:t})}case"AcfPageIndex":{let t=null==(Q=e.blockPageIndex)?void 0:Q.avPageIndex;if(!t)return null;return(0,r.jsx)(s.IA,{id:et,className:(0,n.cn)("wysiwyg-wideWidth",U(e)),data:t})}case"AcfContentrow":{let t=null==(J=e.blockContentRowModule)?void 0:J.avBlockContentRow;if(!t)return null;return(0,r.jsx)(s.Us,{id:et,className:(0,n.cn)("wysiwyg-fullWidth",U(e)),data:t})}case"AcfSignup":{let t=null==(X=e.avBlockSignup)?void 0:X.avBlockSignup;if(!t)return null;return(0,r.jsx)(s.cm,{heading:M(t.heading),description:M(t.description),inputPlaceholder:M(t.inputPlaceholder),submitButtonText:M(t.submitButtonText),successMessage:M(t.successMessage),className:(0,n.cn)("wysiwyg-fullWidth",U(e)),isSidebar:l})}case"AcfTestimonial":{let t=null==(K=e.avHomeTestimonialSection)?void 0:K.avHomeTestimonialSectionData,l=L(null==t?void 0:t.items).flatMap(e=>(null==e?void 0:e.testimonial)?[{testimonial:{quote:M(e.testimonial.quote),author:M(e.testimonial.author),image:O(e.testimonial.image)}}]:[]);if(!l.length)return null;let a={label:M(null==t?void 0:t.label),items:l};return(0,r.jsx)("div",{id:et,className:(0,n.cn)("wysiwyg-fullWidth",U(e)),children:(0,r.jsx)(s.Gm,{...a})})}default:return(null==(ee=e.renderedHtml)?void 0:ee.length)?(0,o.Ay)(ee,E):null}};function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==e?void 0:e.map((e,n)=>{if(!e)return null;let i=H(e);return(0,r.jsx)(a.Fragment,{children:V(e,t,"sidebar"===t,l)},i||"".concat(e.__typename,"-").concat(n))})}},53655:(e,t,l)=>{l.d(t,{i:()=>i});
1var r=l(5640),a=l(62351),n=l(44880);let i=e=>{let{query:t,categories:l=[],selectedCategories:i="all",onCategoriesChange:s}=e,o=Array.isArray(i)?i:[i];return(0,r.jsx)("section",{className:"bg-midPurple text-darkBlue relative overflow-hidden py-6 md:py-10 lg:pt-10 lg:pb-[96px]",children:(0,r.jsxs)("div",{className:"main-column relative grid gap-4 lg:grid-cols-[1000px_1fr] lg:gap-5",children:[(0,r.jsxs)("div",{className:"relative z-10 grid gap-4 lg:content-center",children:[(0,r.jsx)("h1",{className:"typography-h1 uppercase",children:"Launnie Stories"}),(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{className:"bg-darkBlue text-midPurple relative flex w-full items-center text-left shadow-[6px_6px_0_rgba(82,18,18,0.1)]",children:[(0,r.jsx)("input",{type:"search",value:"string"==typeof(null==t?void 0:t.value)?t.value:"",placeholder:"Search...","aria-label":"Search Launnie Stories",onChange:e=>{var l;return null==t||null==(l=t.set)?void 0:l.call(t,e.target.value)},className:"typography-bodySmall min-w-0 flex-1 bg-transparent px-3 py-2 pr-44 text-current placeholder:text-current focus:outline-none md:h-76 md:px-4 md:py-3 md:pr-64 [&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"}),(0,r.jsx)(n.In,{name:"search",className:"icon-stroke-current pointer-events-none absolute top-1/2 right-3 size-28 -translate-y-1/2 md:right-4"})]}),(0,r.jsx)("div",{className:"-mx-initGutter flex gap-1 overflow-x-auto px-initGutter sm:-mx-smGutter sm:px-smGutter md:pr-[70px]! lg:mx-0 lg:flex-wrap lg:pl-0 bg:pr-0!",children:[{name:"Show all",slug:"all"},...l].map(e=>{let{name:t,slug:l}=e,n=l||"all",i="all"===n?0===o.length||o.includes("all"):o.includes(n);return(0,r.jsx)("button",{type:"button","aria-pressed":i,onClick:()=>(e=>{if("all"===e){null==s||s("all");return}let t=o.filter(e=>"all"!==e),l=t.includes(e)?t.filter(t=>t!==e):[...t,e];null==s||s(l.length?l:"all")})(n),className:(0,a.cn)("typography-footnote border-darkBlue text-darkBlue shrink-0 rounded-[64px] border px-2 py-1 transition-colors",i&&"bg-darkBlue text-lightBlue"),children:t||n},n)})})]})]}),(0,r.jsx)("div",{className:"pointer-events-none absolute top-[-34px] right-[-8px] h-112 w-85 md:top-[-30px] lg:top-auto lg:right-[4px] lg:bottom-[-180px] lg:h-444 lg:w-284",children:(0,r.jsx)(n._V,{src:"/images/blog-masthead-illustration.png",alt:"",className:"h-full w-full object-cover object-top",inheritSize:!0})})]})})}},54125:(e,t,l)=>{l.d(t,{_:()=>n});var r=l(58822),a=l.n(r);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD MMMM YYYY";return e?a()(e).format(t):""}},55403:(e,t,l)=>{l.d(t,{w:()=>c});var r=l(5640),a=l(44880),n=l(46576);l(50148);let i=e=>{let{facebook:t,instagram:l,tiktok:n}=e;return(0,r.jsxs)("div",{className:"[&_a]:hover-opacity flex gap-4","aria-label":"Social media",children:[t&&(0,r.jsx)(a.FZ,{href:t,target:"_blank",children:(0,r.jsx)(a.In,{name:"social_facebook"})}),l&&(0,r.jsx)(a.FZ,{href:l,target:"_blank",children:(0,r.jsx)(a.In,{name:"social_instagram"})}),n&&(0,r.jsx)(a.FZ,{href:n,target:"_blank",children:(0,r.jsx)(a.In,{name:"social_tiktok"})})]})},s=e=>{let{items:t}=e;return t.length?(0,r.jsx)("nav",{"aria-label":"Footer",className:"sm:col-span-2 md:col-span-1",children:(0,r.jsx)("ul",{className:"grid grid-cols-2 gap-x-3 gap-y-5 sm:grid-cols-3 lg:grid-cols-[repeat(3,194px)] lg:gap-5",children:t.map((e,t)=>{var l;return(0,r.jsxs)("li",{className:"text-lightGreen flex flex-col gap-4",children:[(0,r.jsx)("h2",{className:"typography-h5",children:e.label}),!!(null==(l=e.children)?void 0:l.length)&&(0,r.jsx)("ul",{className:"typography-bodySmall font-medium flex flex-col items-start gap-2",children:e.children.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsx)(a.FZ,{href:e.path,target:e.target,className:"typography-link",children:e.label})},e.id||"".concat(e.label,"-").concat(t)))})]},e.id||"".concat(e.label,"-").concat(t))})})}):null},o=e=>{let{icon:t,children:l}=e;return(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(a.In,{name:t,className:"mt-[1px] size-2"}),l]})},d=()=>(0,r.jsxs)("div",{className:"typography-footnote mt-3 flex flex-col gap-2",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Launceston Visitor Information Centre "}),(0,r.jsx)("br",{}),"Town Hall, 18-28 St John Street,",(0,r.jsx)("br",{})," Launceston TAS 7250."]}),(0,r.jsx)(o,{icon:"phone",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("strong",{children:"Phone:"})," 1800 651 827"]})}),(0,r.jsx)(o,{icon:"clock",children:(0,r.jsx)("div",{className:"flex flex-col gap-2",children:[{day:"Mon to Fri",time:"9am - 5pm"},{day:"Sat & Sun",time:"10am - 2pm"},{day:"Public Holidays",time:"10am - 2pm"}].map((e,t)=>(0,r.jsxs)("div",{className:"flex gap-[12px]",children:[(0,r.jsxs)("strong",{className:"w-98 lg:w-111",children:[e.day,":"]}),(0,r.jsx)("span",{children:e.time})]},t))})})]}),c=()=>{let e=new Date().getFullYear(),{menus:t}=(0,n.q)(),l=(null==t?void 0:t.footer_menu)||[],o=(null==t?void 0:t.secondary_footer_menu)||[];return(0,r.jsxs)("div",{className:"bg-darkGreen text-lightGreen relative",children:[(0,r.jsxs)("div",{className:"main-column pt-5 md:pt-10",children:[(0,r.jsx)("p",{className:"typography-bodySmall",children:"We acknowledge Tasmanian Aboriginal People as traditional custodians of this land, we pay respect to Elders past and present, as they hold the memories, traditions, culture and hope for generations to come. We recognise and value Aboriginal histories, knowledge and lived experiences and commit to being culturally inclusive and respectful in our working relationships with Aboriginal People."}),(0,r.jsxs)("div",{className:"mt-5 grid gap-5 sm:grid-cols-2 md:grid-cols-[minmax(0,1fr)_305px] lg:mt-10",children:[(0,r.jsx)(s,{items:l}),(0,r.jsxs)("div",{className:"w-full max-w-305 md:justify-self-end",children:[(0,r.jsx)(a._V,{src:"/images/city-of-launceston-logo.png",className:"w-220",inheritSize:!0,alt:"City of Launceston"}),(0,r.jsx)(d,{})]})]}),(0,r.jsxs)("div",{className:"border-lightGreen/20 mt-5 flex flex-col gap-4 border-t pt-5 sm:flex-row sm:flex-wrap sm:items-center md:mt-10 md:pt-10",children:[(0,r.jsxs)("p",{className:"typography-footnote whitespace-nowrap",children:["\xa9 ",e," City of Launceston"]}),!!o.length&&(0,r.jsx)("nav",{"aria-label":"Footer policies",children:(0,r.jsx)("ul",{className:"typography-footnote font-medium flex flex-wrap gap-x-4 gap-y-2",children:o.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsx)(a.FZ,{href:e.path,target:e.target,className:"typography-link",children:e.label})},e.id||"".concat(e.label,"-").concat(t)))})}),(0,r.jsx)("div",{className:"sm:ml-auto",children:(0,r.jsx)(i,{instagram:"https://www.instagram.com/launnie_tasmania/"})})]})]}),(0,r.jsx)("div",{className:"mt-8 px-initGutter pb-5 sm:px-smGutter md:pb-6 lg:mt-160 lg:px-6",children:(0,r.jsx)("div",{className:"mx-auto aspect-[181/22] w-full max-w-1920",children:(0,r.jsx)(a.In,{name:"launceston_logo",className:"icon-color-lightGreen size-full"})})})]})}},62191:(e,t,l)=>{l.d(t,{E:()=>r});let r=(e,t)=>{if(!t)return e;let l=(e||"/stories").replace(/\/$/,"");return"".concat(l,"?filters=").concat(encodeURIComponent(t))}},63652:(e,t,l)=>{l.d(t,{F:()=>r});let r=["theme-purple","theme-green","theme-burgundy","theme-orange","theme-gold","theme-blue","theme-brown","theme-lightGreen"]},68595:(e,t,l)=>{l.d(t,{Q:()=>a});var r=l(50148);let a=(e,t,l)=>{let a=(0,r.useRef)(t),n=(0,r.useRef)(l),i=e.length>0,s=e.join("\0");a.current=t,n.current=l;let o=(0,r.useMemo)(()=>i?s.split("\0").map(e=>window.matchMedia(e)):[],[i,s]),d=(0,r.useCallback)(()=>{let e=o.findIndex(e=>e.matches);return void 0!==a.current[e]?a.current[e]:n.current},[o]),[c,u]=(0,r.useState)(d);return(0,r.useEffect)(()=>{let e=()=>{let e=d();u(t=>t===e?t:e)};return o.forEach(t=>t.addEventListener("change",e)),()=>
1o.forEach(t=>t.removeEventListener("change",e))},[o,d]),c}},69484:(e,t,l)=>{l.d(t,{P:()=>a});let r="/stories",a=(e,t)=>t?"".concat(r,"/").concat(encodeURIComponent(t)):e?e.replace(/^(https?:\/\/[^/]+)?\/news(?=\/|$)/,"$1".concat(r)):void 0},70193:(e,t,l)=>{l.d(t,{g:()=>a});var r=l(50148);let a=(e,t)=>{((e,t)=>{function l(l){e.current&&!e.current.contains(l.target)&&t()}(0,r.useEffect)(()=>(document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}))})(e,()=>t()),(e=>{function t(t){27===t.keyCode&&e()}(0,r.useEffect)(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}))})(()=>t())}},71629:(e,t,l)=>{l.d(t,{A:()=>m});var r=l(5640),a=l(44880),n=l(62351),i=l(39797),s=l(78944),o=l(15909),d=l(17521),c=l(50148);let u={url:"https://launnie.com.au/launnie-map",title:"Download the map",target:"_blank"},m=e=>{let{heading:t,description:l,link:m}=e,p=(0,c.useRef)(null),h=(null==m?void 0:m.url)?m:u,{scrollYProgress:x}=(0,s.L)({target:p,offset:["start end","end start"]}),g=(0,o.G)(x,[0,1],[-100,100]);return(0,r.jsxs)("div",{ref:p,className:(0,n.cn)("mx-auto grid gap-3 px-initGutter md:grid-cols-[1fr_55%] bg:grid-cols-[1fr_67%]","max-w-1800"),children:[(0,r.jsxs)("div",{className:(0,n.cn)("flex flex-col items-center gap-3 text-center","md:mt-6 md:items-start md:gap-4 md:px-5 md:text-start","lg:gap-6 lg:pr-10 vbg:pr-150"),children:[(0,r.jsx)(d.P.div,{style:{rotate:g,transformOrigin:"50% 50%",willChange:"transform"},children:(0,r.jsx)(a._V,{src:"/images/explore-launceston-logo.png",className:"size-64 md:size-97",alt:"Explore Launceston Logo"})}),(0,r.jsx)("h3",{className:"typography-h1 md:typography-h2 bg:typography-h1 text-darkCharcoal!",children:(0,i.o)(t||"Itâs all just up the road")}),(0,r.jsx)("p",{className:"text-darkCharcoal",children:(0,i.o)(l||"Our regions are as diverse as our stories â take a look around and see how the Launceston way of life flows from the river to the hills, and why more people are choosing to live, work and explore right here.")}),h.url&&h.title&&(0,r.jsx)(a.FZ,{href:h.url,target:h.target,className:"typography-link text-darkBurgundy! typography-bodySmall",children:h.title})]}),(0,r.jsxs)("div",{className:"relative mb-110",children:[(0,r.jsx)(a._V,{alt:"Map",className:"aspect-[1.39] w-full",src:"/images/content/map.png"}),(0,r.jsx)(a._V,{alt:"Hiker",inheritSize:!0,className:(0,n.cn)("absolute bottom-10 left-half w-149 -translate-x-half translate-y-full","md:bottom-0 md:left-0 md:w-200 md:-translate-x-1/3 md:translate-y-1/3","lg:w-250 bg:w-408 bg:-translate-x-150 bg:translate-y-120"),src:"/images/hiker.png"})]})]})}},77384:(e,t,l)=>{l.d(t,{d:()=>m});var r=l(5640),a=l(62351),n=l(68595),i=l(50148),s=l(88734);let o=(0,l(56783).F)(["rounded-arrows font-bold typography-bodyLarge flex size-48 cursor-pointer items-center justify-center rounded-full p-0"],{variants:{active:{true:"bg-darkCharcoal text-lightCream! border-none"}},defaultVariants:{active:!0}}),d=e=>{let{onClick:t,hidden:l}=e;return(0,r.jsxs)("button",{type:"button",onClick:t,hidden:l,className:(0,a.cn)("hover-opacity font-body",l?"hidden":"flex",o({active:!1})),children:[(0,r.jsxs)("span",{className:"flex items-center justify-center gap-[4px]","aria-hidden":!0,children:[(0,r.jsx)("span",{className:"bg-darkCharcoal size-[4px] rounded-full"}),(0,r.jsx)("span",{className:"bg-darkCharcoal size-[4px] rounded-full"}),(0,r.jsx)("span",{className:"bg-darkCharcoal size-[4px] rounded-full"})]}),(0,r.jsx)("span",{className:"sr-only",children:"More pages"})]})},c=e=>{let{pageNumber:t,currentPage:l,pagination:a}=e,[n,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t===parseInt(String(l),10)?s(!0):s(!1)},[l,t]),(0,r.jsx)("li",{className:"group",children:(0,r.jsx)("button",{type:"button",className:o({active:n}),onClick:()=>a(t),children:t})})},u=(0,a.cn)("icon-stroke-darkCharcoal size-6 disabled:opacity-20"),m=e=>{let{currentPage:t,setCurrentPage:l,totalPosts:o,postsPerPageInit:m,postsPerPage:p,className:h}=e,x=parseInt(String(t||1),10),g=(0,n.Q)(["(min-width: 768px)"],[!0],!1),[f,v]=(0,i.useState)([]),y=g?5:3,b=(Math.floor((x-1)/y)+1)*y-(y-1),w=Math.ceil((o-(m||p))/p+1),j=e=>{window.scrollTo({top:0,left:0,behavior:"instant"}),l(e)};(0,i.useEffect)(()=>{let e=[];for(let t=b;t<=b+(y-1)&&t<=w;t+=1)e=[...e,t];v(e)},[b,y,w]);let N=1===x?m:p;return!o||0===o||N&&o<=N?null:(0,r.jsxs)("div",{className:(0,a.cn)("mt-3 grid grid-flow-col justify-center gap-1 md:mt-5 md:gap-3",h),children:[(0,r.jsx)(s.i,{direction:"left",disabled:1===x,onClick:()=>j(x-1),ariaLabel:"Previous page",className:u}),(0,r.jsxs)("ul",{className:"grid list-none grid-flow-col gap-1 md:gap-3",children:[(0,r.jsx)(d,{hidden:1===b,onClick:()=>void j(b-1)}),f.map(e=>(0,r.jsx)(c,{pageNumber:e,currentPage:x,pagination:j},e)),(0,r.jsx)(d,{hidden:w<=b+y,onClick:()=>void j(b+y)})]}),(0,r.jsx)(s.i,{direction:"right",disabled:0===o||x===w,onClick:()=>j(x+1),ariaLabel:"Next page",className:u})]})}},79892:(e,t,l)=>{l.d(t,{FN:()=>d,mA:()=>m,gU:()=>o});var r=l(5640),a=l(62351),n=l(85781),i=l(50148);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,l={timer:0},r=()=>{window.clearTimeout(l.timer),l.timer=0},a=()=>{r(),requestAnimationFrame(()=>{l.timer=window.setTimeout(n,1e3*t)})},n=()=>{e.canScrollNext()?e.scrollNext():e.scrollTo(0),a()};return{play:a,stop:r}};l(90062);let o=e=>{let{watchDrag:t,duration:l=30,autoPlay:r,interval:a=5,dragFree:o,loop:d,align:c="start",startIndex:u=0,containScroll:m,skipSnaps:p,passedIndex:h}=e,[x,g]=(0,n.A)({loop:d,align:c,duration:l,watchDrag:t,dragFree:o,startIndex:u,skipSnaps:p,containScroll:m}),f=(0,i.useRef)(null),v=(0,i.useRef)(null),y=(0,i.useRef)(null),[b,w]=(0,i.useState)(!1),[j,N]=(0,i.useState)(!1),[k,C]=(0,i.useState)(0),[S,_]=(0,i.useState)([]),B=(0,i.useCallback)(()=>g&&g.scrollPrev(),[g]),I=(0,i.useCallback)(()=>g&&g.scrollNext(),[g]),z=(0,i.useCallback)(e=>g&&g.scrollTo(e),[g]),A=(0,i.useCallback)(e=>{_(e.scrollSnapList())},[]),T=(0,i.useCallback)(e=>{C(e.selectedScrollSnap()),w(e.canScrollPrev()),N(e.canScrollNext())},[]);return(0,i.useEffect)(()=>
1{if(!g)return;A(g),T(g),g.on("reInit",A),g.on("reInit",T),g.on("select",T),null==g||g.on("resize",()=>A(g));let e=s(g,a);if(r){var t,l,n;e.play(),g.on("pointerDown",e.play),null==v||null==(t=v.current)||t.addEventListener("mousedown",e.play,!1),null==f||null==(l=f.current)||l.addEventListener("mousedown",e.play,!1),null==y||null==(n=y.current)||n.addEventListener("mousedown",e.play,!1)}},[g,r,a,T,A]),(0,i.useEffect)(()=>{(h||0===h)&&g&&z(h)},[h,g,z]),{selectedIndex:k,previousButtonProps:{ref:v,disabled:!b,onClick:()=>B()},nextButtonProps:{ref:f,disabled:!j,onClick:()=>I()},dotProps:{innerRef:y,scrollSnaps:S,selectedIndex:k,scrollTo:z},carouselProps:{emblaRef:x,selectedIndex:k}}},d=e=>{let{emblaRef:t,selectedIndex:l,children:n,className:i,fade:s,aspectRatioStyles:o,slideStyles:d="basis-11/12 sm:basis-4/5 md:basis-1/3",gapStyles:c="gap-1 sm:gap-2 md:gap-4",mainColumn:u}=e;return s?(0,r.jsx)("div",{ref:t,className:(0,a.cn)("relative h-full w-full",i),children:(0,r.jsx)("div",{className:(0,a.cn)("transform-none!",o),children:null==n?void 0:n.map((e,t)=>{let n=t===l;return(0,r.jsx)("div",{className:(0,a.cn)(n?"opacity-100":"opacity-0","flex-[0 0 100%] [&>*]:absolute-full static transform-none! duration-1500"),children:e},t)})})}):(0,r.jsx)("div",{className:(0,a.cn)("flex flex-col items-center overflow-hidden",i),children:(0,r.jsx)("div",{ref:t,className:u?"main-column":"w-full",children:(0,r.jsx)("div",{className:(0,a.cn)("flex will-change-transform",c),children:null==n?void 0:n.map((e,t)=>(0,r.jsx)("div",{className:(0,a.cn)("relative shrink-0 grow-0",d),children:e},t))})})})};var c=l(44880);let u=e=>{let{direction:t="right",className:l}=e;return(0,r.jsx)(c.In,{name:"image_carousel_arrow",className:(0,a.cn)("h-[17px] w-[24px] md:h-[20.8284px] md:w-[29.4142px]","left"===t&&"rotate-180",l)})},m=i.forwardRef((e,t)=>{let{className:l,direction:n="right",label:i,...s}=e;return(0,r.jsx)("button",{...s,ref:t,type:"button","aria-label":i,className:(0,a.cn)("group/carousel-arrow border-darkBurgundy bg-lightCream flex size-48 items-center justify-center rounded-full border-2 transition-colors duration-200 md:size-64","hover:bg-darkBurgundy focus-visible:bg-darkBurgundy disabled:pointer-events-none disabled:opacity-40",l),children:(0,r.jsx)(u,{direction:n,className:"[&_path]:stroke-darkBurgundy group-hover/carousel-arrow:[&_path]:stroke-lightCream group-focus-visible/carousel-arrow:[&_path]:stroke-lightCream"})})});m.displayName="CarouselArrow"},83571:(e,t,l)=>{l.d(t,{_:()=>s});var r=l(5640),a=l(62351),n=l(44880);let i=l(50148).forwardRef((e,t)=>{let{onClick:l,direction:i="left",className:s,ariaLabel:o,style:d,disabled:c}=e;return(0,r.jsx)("button",{style:d,type:"button","aria-label":o,disabled:c,className:(0,a.cn)("group/arrow flex size-6 items-center justify-center duration-150","border-lightGreen bg-darkGreen border","hover:bg-lightGreen",s),onClick:l,ref:t,children:(0,r.jsx)(n.In,{name:"arrow_right",className:(0,a.cn)("size-28","left"===i&&"scale-[-1]","[&_path]:stroke-lightGreen","group-hover/arrow:[&_path]:stroke-darkGreen")})})}),s=e=>{let{className:t,sideScroll:l,leftHidden:n,rightHidden:s,showArrows:o,arrowStyles:d}=e;return(0,r.jsxs)("div",{className:(0,a.cn)("hideOnTouchDevice pointer-events-none absolute right-0 flex justify-between duration-200","left-0 z-50",t),children:[(0,r.jsx)(i,{onClick:()=>l("left"),ariaLabel:"Scroll the slider to the left",style:{pointerEvents:n?"none":"all"},className:(0,a.cn)(n&&"opacity-0",d)}),(0,r.jsx)(i,{direction:"right",onClick:()=>l("right"),ariaLabel:"Scroll the slider to the rights",style:{pointerEvents:s?"none":"all"},className:(0,a.cn)(s&&"opacity-0",d)})]})}},88734:(e,t,l)=>{l.d(t,{i:()=>i});var r=l(5640),a=l(62351),n=l(44880);let i=l(50148).forwardRef((e,t)=>{let{onClick:l,direction:i="left",className:s,ariaLabel:o,disabled:d,style:c}=e;return(0,r.jsx)("button",{type:"button","aria-label":o,disabled:d,className:(0,a.cn)("group/arrow rounded-arrows flex size-[42px] items-center justify-center duration-150","disabled:pointer-events-none disabled:cursor-not-allowed",s),onClick:l,ref:t,style:c,children:(0,r.jsx)(n.In,{name:"arrow_right",className:(0,a.cn)("size-4","right"===i?"ml-[3px] scale-[1]":"mr-[3px] scale-[-1]")})})})},90062:(e,t,l)=>{l(5640),l(50148)},91266:(e,t,l)=>{l.d(t,{U:()=>n});var r=l(78688);let a=(0,l(7406).Se)()('\n mutation CREATE_AV_ENQUIRY(\n $variant: String\n $name: String\n $email: String\n $phone: String\n $interestedIn: String\n $message: String\n $location: String\n $pageId: Int\n ) {\n createAvEnquiry(\n input: {\n clientMutationId: "Contact Form Enquiry"\n variant: $variant\n name: $name\n email: $email\n interestedIn: $interestedIn\n phone: $phone\n message: $message\n location: $location\n pageId: $pageId\n }\n ) {\n data\n success\n }\n }\n'),n=e=>{let{currentPath:t,databaseId:l,variant:n}=e,[i]=(0,r.n)(a);return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"!=typeof e||null===e||Array.isArray(e)||i({variables:{...e,...r,pageId:l,location:t,variant:n}})}}},93505:(e,t,l)=>{l.d(t,{A:()=>i});
1var r=l(5640),a=l(44880),n=l(62351);let i=e=>{let{image:t,video:l,tagline:i,greeting:s}=e;if(!t&&!l&&!i&&!s)return null;let o=!!(t||l);return(0,r.jsxs)("div",{className:"bg-midOrange relative overflow-hidden",children:[o&&(0,r.jsx)("div",{className:"relative aspect-[1.934] md:mx-114 mc:mx-mainColumnGutter",children:(0,r.jsx)(a.Me,{image:t,priority:"video",video:l,className:"absolute-full"})}),(0,r.jsxs)("div",{className:(0,n.cn)("text-lightCream mx-auto max-w-446 px-initGutter pt-5 pb-7 text-center md:max-w-650 md:py-10"),children:[i&&(0,r.jsx)("h2",{className:"typography-h2 mb-2 text-inherit",children:i}),s&&(0,r.jsx)("p",{className:"text-inherit",children:s}),(0,r.jsx)("div",{className:"bg-lightCream absolute bottom-0 left-half h-42 w-[2px] -translate-x-half translate-y-half md:translate-y-0"})]})]})}},97109:(e,t,l)=>{l.d(t,{A:()=>p});var r=l(5640),a=l(44880),n=l(83571),i=l(62351),s=l(68595),o=l(18449),d=l(50148);let c=e=>{var t;return"string"==typeof e?e:(null==e||null==(t=e.node)?void 0:t.sourceUrl)||(null==e?void 0:e.sourceUrl)||(null==e?void 0:e.url)},u=e=>{var t;return"string"==typeof e?"":(null==e||null==(t=e.node)?void 0:t.altText)||(null==e?void 0:e.altText)||""},m=e=>{let{image:t,link:l}=e,n=c(t),s=u(t);return(0,r.jsxs)("div",{className:"group relative z-30 grid aspect-[0.64] w-239 shrink-0 items-end justify-center pb-2 sm:w-320 md:w-450",children:[(0,r.jsx)(a._V,{alt:s,displayPlaceholderImage:!0,src:n,className:"absolute-full"}),(0,r.jsx)("div",{className:"bg-lightCream/20 absolute top-0 right-0 bottom-0 z-20 w-px"}),(0,r.jsx)("div",{style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)"},className:"absolute bottom-0 left-0 z-20 flex h-2/5 w-full opacity-0 duration-300 md:group-hover:opacity-100"}),(null==l?void 0:l.url)&&l.title&&(0,r.jsx)(a.FZ,{href:l.url,target:l.target,className:(0,i.cn)("text-lightCream border-lightCream typography-eyebrow font-medium hidden h-66 w-240 items-center justify-center rounded-half border text-nowrap md:flex","expand-pseudo z-20 opacity-0 duration-300 group-hover:opacity-100"),children:l.title})]})},p=e=>{let{heading:t,description:l,link:p,graphic:h,items:x=[]}=e,g=(0,s.Q)(["(min-width: 1024px)"],[!0],!1),[f,v]=d.useState(1),y=null==x?void 0:x.filter(e=>c(null==e?void 0:e.image)),b=c(h),w=u(h),{containerRef:j,arrowProps:N}=(0,o.U)({cardWidth:308,gapWidth:24,cardsToScroll:3}),k=d.useCallback(()=>{let e=j.current;e&&v(1-function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(l,Math.max(t,e))}(e.scrollLeft/200,0,1))},[j]),C=d.useRef(null),S=d.useCallback(()=>{null==C.current&&(C.current=requestAnimationFrame(()=>{C.current=null,k()}))},[k]);return d.useEffect(()=>(k(),()=>{null!=C.current&&cancelAnimationFrame(C.current)}),[k]),(0,r.jsx)("div",{className:"border-lightCream relative border-b-2",children:(0,r.jsxs)("div",{className:"bg-darkGreen relative overflow-hidden md:flex",children:[(0,r.jsxs)("section",{className:(0,i.cn)("relative px-initGutter pt-8 pb-120 sm:px-smGutter","shrink-0 md:w-527 md:p-10 lg:w-770 bg:px-120 bg:py-126","md:pr-95 lg:pr-190!"),children:[(0,r.jsxs)("div",{className:"text-lightGreen relative z-20 flex flex-col gap-4",children:[t&&(0,r.jsx)("h3",{className:"typography-h2 text-inherit",children:t}),l&&(0,r.jsx)("div",{className:"relative grid gap-2",children:l.split(/\r?\n/).map((e,t)=>e.trim()?(0,r.jsx)("p",{children:e},t):null)}),(null==p?void 0:p.url)&&p.title&&(0,r.jsx)(a.FZ,{className:"typography-link typography-bodySmall text-inherit!",href:p.url,target:p.target,children:p.title})]}),(0,r.jsx)(a._V,{style:{opacity:f},alt:w,src:b,inheritSize:!0,className:(0,i.cn)("pointer-events-none absolute bottom-0 left-half z-40 -translate-x-half translate-y-half","md:right-0 md:bottom-half md:left-auto md:translate-x-half md:translate-y-half","h-179 w-160 lg:h-358 lg:w-321")})]}),(0,r.jsx)("section",{ref:j,onScroll:g?S:void 0,className:(0,i.cn)("flex grow overflow-x-auto border-none","md:absolute md:inset-0","md:pl-524 lg:pl-770"),children:null==y?void 0:y.map((e,t)=>(0,r.jsx)(m,{...e},t))}),(0,r.jsx)(n._,{...N,className:(0,i.cn)("top-half hidden -translate-y-half px-2 md:flex bg:px-3 huge:hidden")})]})})}}}]);
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.