PageSourceSearch

https://gokonnect.ie/_nuxt/default.vue.96366a49.js

js gokonnect.ie collected 2026-10-08 10:57:42 UTC 71,829 bytes, 11 lines download raw bytes

1import{_ as se}from"./Media.afb11562.js";import{_ as le}from"./Content.vue.c3b51a2f.js";import{a0 as Ae,D as t,P as a,Q as n,u as l,d as N,E as S,F as ce,Y as L,Z as V,_ as m,a1 as h,G as F,a2 as vt,a3 as bt,a4 as wt,a5 as yt,a6 as Fe,a7 as Me,a8 as G,c as X,a as D,R as J,$ as rt,a9 as Z,aa as oe,ab as Ct,w as St,X as de,x as ct,ac as ut,ad as _t}from"./swiper-vue.f07cf495.js";import{u as me}from"./useStrapi.169f1093.js";import{a as _e,u as kt}from"./entry.48f353af.js";import{u as Tt}from"./useRedirects.a5dbe69b.js";import{u as $t}from"./vue.f36acd1f.ac966345.js";const It={class:"bg-white bg-opacity-50 absolute bottom-[30px] right-[30px] z-10 flex justify-center items-center rounded-full px-1 py-1"},Dt=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),At=[Dt],Ft=n("div",{class:"swiper-pagination"},null,-1),Mt=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1),Lt=[Mt],Rt={__name:"SwiperControls",setup(e){const o=Ae();return(s,u)=>(t(),a("div",It,[n("button",{onClick:u[0]||(u[0]=p=>l(o).slidePrev()),class:"opacity-25","aria-label":"previous"},At),Ft,n("button",{onClick:u[1]||(u[1]=p=>l(o).slideNext()),class:"opacity-25","aria-label":"next"},Lt)]))}},Pt=Rt,jt={class:"w-full h-full","data-swiper-parallax-duration":"700","data-swiper-parallax-opacity":"0.8"},Bt={key:1,class:"w-full h-full absolute top-0 left-0 hidden md:block",style:{background:"linear-gradient(90deg, rgba(0, 0, 0, 0.40) 1.2%, rgba(217, 217, 217, 0.00) 80.03%)"}},Ot={key:2,class:"w-full h-full absolute top-0 left-0 md:hidden block",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.60) 1.2%, rgba(217, 217, 217, 0.00) 100%)"}},Vt={key:0,class:"absolute top-0 left-0 w-full md:max-w-[960px] h-full flex justify-start items-start md:items-center p-5 md:p-20","data-swiper-parallax":"-100%","data-swiper-parallax-duration":"700","data-swiper-parallax-opacity":"0.01"},Ut={class:"h-full w-screen transition-opacity duration-700 relative"},Nt={class:"w-full h-full"},Et={key:1,class:"w-full h-full absolute top-0 left-0 hidden md:block",style:{background:"linear-gradient(90deg, rgba(0, 0, 0, 0.40) 1.2%, rgba(217, 217, 217, 0.00) 80.03%)"}},qt={key:2,class:"w-full h-full absolute top-0 left-0 md:hidden block",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.60) 1.2%, rgba(217, 217, 217, 0.00) 100%)"}},Ht={key:0,class:"absolute top-0 left-0 w-full md:max-w-[960px] h-full flex justify-start items-start md:items-center p-10 md:p-20"},Qt=N({__name:"HeroBanner",props:{content:Object},setup(e){return Ae(),(o,s)=>{const u=se,p=le,d=Fe,y=Pt,b=Me;return t(),a("div",{class:h(["max-w-[1900px] w-full flex md:px-[20px] md:w-[100%] justify-center items-center HeroBanner",[e.content.SectionMarginBottom]])},[e.content.BannerContent.length>=2?(t(),S(b,{key:0,modules:["SwiperAutoplay"in o?o.SwiperAutoplay:l(vt),"SwiperEffectCreative"in o?o.SwiperEffectCreative:l(bt),"SwiperPagination"in o?o.SwiperPagination:l(wt),"SwiperParallax"in o?o.SwiperParallax:l(yt)],parallax:!0,"slides-per-view":1,loop:!0,effect:"creative",speed:800,autoplay:{delay:4e3,pauseOnMouseEnter:!0},"creative-effect":{prev:{translate:["-100%",0,-1]},next:{translate:["100%",0,0]}},pagination:{el:".swiper-pagination",clickable:!0,renderBullet:function(i,f){return`<span class='${f}'></span>`}},class:h(e.content.BannerSize==="large"?"default":"large")},{default:ce(()=>[(t(!0),a(L,null,V(e.content.BannerContent,(i,f)=>(t(),S(d,{key:f},{default:ce(()=>{var c,r,w,g;return[i&&i.DesktopImage&&i.DesktopImage.data&&i.DesktopImage.data.attributes||i&&i.MobileImage&&i.MobileImage.data&&i.MobileImage.data.attributes||i&&i.Content?(t(),a(L,{key:0},[n("div",jt,[i.DesktopImage&&i.DesktopImage.data&&i.DesktopImage.data.attributes||i.MobileImage&&i.MobileImage.data&&i.MobileImage.data.attributes?(t(),S(u,{key:0,asset:(r=(c=i.DesktopImage)==null?void 0:c.data)==null?void 0:r.attributes,mobileAsset:(g=(w=i.MobileImage)==null?void 0:w.data)==null?void 0:g.attributes,imageType:"full",styling:"h-full object-cover parallax-bg"},null,8,["asset","mobileAsset"])):m("",!0),i.ImageOverlay?(t(),a("div",Bt)):m("",!0),i.ImageOverlay?(t(),a("div",Ot)):m("",!0)]),i.Content?(t(),a("div",Vt,[n("div",{class:h(i.BannerTextColour==="Light"?"text-white":"")},[F(p,{bannerContent:i.Content},null,8,["bannerContent"])],2)])):m("",!0)],64)):m("",!0)]}),_:2},1024))),128)),e.content.BannerContent.length>=2?(t(),S(y,{key:0})):m("",!0)]),_:1},8,["modules","pagination","class"])):(t(!0),a(L,{key:1},V(e.content.BannerContent,(i,f)=>{var c,r,w,g;return t(),a("div",{key:f,class:h(["relative w-screen max-w-full h-[calc(100vh_-_114px)] md:rounded-3xl overflow-hidden relative",e.content.BannerSize==="large"?"md:h-[calc(100vh_-_180px)] min-h-[584px] max-h-[800px]":"md:h-[584px]"])},[n("div",Ut,[i&&i.DesktopImage&&i.DesktopImage.data&&i.DesktopImage.data.attributes||i&&i.MobileImage&&i.MobileImage.data&&i.MobileImage.data.attributes||i&&i.Content?(t(),a(L,{key:0},[n("div",Nt,[i.DesktopImage&&i.DesktopImage.data&&i.DesktopImage.data.attributes||i.MobileImage&&i.MobileImage.data&&i.MobileImage.data.attributes?(t(),S(u,{key:0,asset:(r=(c=i.DesktopImage)==null?void 0:c.data)==null?void 0:r.attributes,mobileAsset:(g=(w=i.MobileImage)==null?void 0:w.data)==null?void 0:g.attributes,imageType:"full",styling:"h-full object-cover parallax-bg"},null,8,["asset","mobileAsset"])):m("",!0),i.ImageOverlay?(t(),a("div",Et)):m("",!0),i.ImageOverlay?(t(),a("div",qt)):m("",!0)]),i.Content?(t(),a("div",Ht,[n("div",{class:h(i.BannerTextColour==="Light"?"text-white":"")},[F(p,{bannerContent:i.Content},null,8,["bannerContent"])],2)])):m("",!0)],64)):m("",!0)])],2)}),128))],2)}}});
1const zt={key:0,class:"FullSCreenImage"},Jt={class:"contentArea"},Wt={key:0,class:"w-full"},Yt={key:1},Kt={key:0,class:"mediaArea"},Gt={key:1,class:"FullImageContained"},Xt=N({__name:"TextImage",props:{content:Object},setup(e){return(o,s)=>{var d,y,b,i,f,c,r,w,g,M,x,C,_,k,A,U,H,E,Y,Q,R,T,v,$;const u=se,p=le;return t(),a("div",{class:h(["w-full flex justify-center items-center relative px-[3vw] md:px-[20px]",[e.content.SectionMarginBottom,{"py-8 md:py-16 xl:py-24":e.content.SectionBackgroundColour&&e.content.SectionStyle.includes("FullScreen")}]]),style:G({backgroundColor:e.content.SectionBackgroundColour&&e.content.SectionStyle.includes("FullScreen")?e.content.SectionBackgroundColour:""})},[!/Image/.test(e.content.SectionStyle)&&/FullScreen/.test(e.content.SectionStyle)&&((y=(d=e.content.TextAndImageContent.DesktopImage)==null?void 0:d.data)!=null&&y.attributes)||!/Image/.test(e.content.SectionStyle)&&/FullScreen/.test(e.content.SectionStyle)&&((i=(b=e.content.TextAndImageContent.MobileImage)==null?void 0:b.data)!=null&&i.attributes)?(t(),a("div",zt,[F(u,{asset:(c=(f=e.content.TextAndImageContent.DesktopImage)==null?void 0:f.data)==null?void 0:c.attributes,mobileAsset:(w=(r=e.content.TextAndImageContent.MobileImage)==null?void 0:r.data)==null?void 0:w.attributes,imageType:"full"},null,8,["asset","mobileAsset"])])):m("",!0),n("div",{class:h([e.content.SectionStyle,e.content.SectionTextColour])},[n("div",{class:"SectionInner",style:G({backgroundColor:e.content.SectionBackgroundColour&&e.content.SectionStyle.includes("Contained")?e.content.SectionBackgroundColour:""})},[n("div",Jt,[e.content.SectionStyle.includes("Contained Centred")?(t(),a("div",Wt,[e.content.TextAndImageContent.Content?(t(),S(p,{key:0,bannerContent:e.content.TextAndImageContent.Content,LightMode:e.content.SectionTextColour},null,8,["bannerContent","LightMode"])):m("",!0)])):(t(),a("div",Yt,[e.content.TextAndImageContent.Content?(t(),S(p,{key:0,bannerContent:e.content.TextAndImageContent.Content,LightMode:e.content.SectionTextColour},null,8,["bannerContent","LightMode"])):m("",!0)]))]),/Image/.test(e.content.SectionStyle)&&((M=(g=e.content.TextAndImageContent.DesktopImage)==null?void 0:g.data)!=null&&M.attributes)||/Image/.test(e.content.SectionStyle)&&((C=(x=e.content.TextAndImageContent.MobileImage)==null?void 0:x.data)!=null&&C.attributes)?(t(),a("div",Kt,[F(u,{asset:(k=(_=e.content.TextAndImageContent.DesktopImage)==null?void 0:_.data)==null?void 0:k.attributes,mobileAsset:(U=(A=e.content.TextAndImageContent.MobileImage)==null?void 0:A.data)==null?void 0:U.attributes,imageType:"half"},null,8,["asset","mobileAsset"])])):m("",!0),!/Image/.test(e.content.SectionStyle)&&/Contained/.test(e.content.SectionStyle)&&((E=(H=e.content.TextAndImageContent.DesktopImage)==null?void 0:H.data)!=null&&E.attributes)||!/Image/.test(e.content.SectionStyle)&&/Contained/.test(e.content.SectionStyle)&&((Q=(Y=e.content.TextAndImageContent.MobileImage)==null?void 0:Y.data)!=null&&Q.attributes)?(t(),a("div",Gt,[F(u,{asset:(T=(R=e.content.TextAndImageContent.DesktopImage)==null?void 0:R.data)==null?void 0:T.attributes,mobileAsset:($=(v=e.content.TextAndImageContent.MobileImage)==null?void 0:v.data)==null?void 0:$.attributes,imageType:"full"},null,8,["asset","mobileAsset"])])):m("",!0)],4)],2)],6)}}});const Zt={width:"20",height:"10",class:"-rotate-180",viewBox:"0 0 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},en=["stroke"],tn={width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nn=["stroke"],on={__name:"SwiperControlsCarousel",props:{textColour:String,position:String},setup(e){const o=Ae();return(s,u)=>(t(),a("div",{class:h(["flex flex-row items-center",e.position=="Center"?"carouselNavCentered":"carouselNav"])},[n("button",{onClick:u[0]||(u[0]=p=>l(o).slidePrev()),class:h(["border-2 mr-3 w-10 h-10 flex items-center justify-center rounded-full",e.textColour=="Light"?"border-white":"border-mintgreen"]),"aria-label":"previous"},[(t(),a("svg",Zt,[n("path",{d:"M15.25 1.25L19 5M19 5L15.25 8.75M19 5H1",stroke:e.textColour=="Light"?"#fff":"#147876","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,en)]))],2),n("button",{onClick:u[1]||(u[1]=p=>l(o).slideNext()),class:h(["border-2 w-10 h-10 flex items-center justify-center rounded-full",e.textColour=="Light"?"border-white":"border-mintgreen"]),"aria-label":"next"},[(t(),a("svg",tn,[n("path",{d:"M15.25 1.25L19 5M19 5L15.25 8.75M19 5H1",stroke:e.textColour=="Light"?"#fff":"#147876","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,nn)]))],2)],2))}},dt=on,ln={key:0,class:"w-full h-0 pb-[70%] relative rounded-tr-xl rounded-tl-xl overflow-hidden"},an={class:"SectionInner"},sn={class:"testimonialCarousel relative"},rn={key:0,class:"w-full h-0 pb-[70%] relative rounded-tr-xl rounded-tl-xl overflow-hidden"},cn={key:0,class:"w-full h-0 pb-[70%] relative rounded-tr-xl rounded-tl-xl overflow-hidden"},un=N({__name:"CardsSection",props:{content:Object},setup(e){const o=e,s=X(()=>o.content.CardItem.length>=3?"grid-cols-1 md:grid-cols-2 medium-lg:grid-cols-3 my-[30px] md:mb-[70px]":o.content.CardItem.length===2?"grid-cols-1 md:grid-cols-2":"grid-cols-1");return(u,p)=>{const d=le,y=se,b=dt,i=Fe,f=Me;return e.content.SectionStyle!=="Carousel"?(t(),a("div",{key:0,class:h(["cardsSection w-full px-[3vw] md:px-[20px] flex justify-center",{"pt-20 pb-20":e.content.SectionBackgroun
1dColour&&e.content.SectionStyle==="FullScreen",[e.content.SectionStyle]:!0,[e.content.SectionAlign]:!0,[e.content.SectionMarginBottom]:!0}]),style:G({backgroundColor:e.content.SectionBackgroundColour&&e.content.SectionStyle==="FullScreen"?e.content.SectionBackgroundColour:""})},[n("div",{class:"SectionInner",style:G({backgroundColor:e.content.SectionBackgroundColour&&e.content.SectionStyle==="Contained"?e.content.SectionBackgroundColour:""})},[e.content.ContentAbove?(t(),a("div",{key:0,class:h(["textWrap pb-[30px]",e.content.SectionTextColour])},[F(d,{bannerContent:e.content.ContentAbove},null,8,["bannerContent"])],2)):m("",!0),e.content.CardItem?(t(),a("div",{key:1,class:h(["cardgrid",l(s)])},[(t(!0),a(L,null,V(e.content.CardItem,(c,r)=>{var w,g,M,x;return t(),a("div",{class:h([e.content.SectionStyle=="Contained"||e.content.SectionBackgroundColour?"bg-white":"bg-blue","flex","flex-col","rounded-xl","items-center","cardItem",e.content.CardAlign])},[c.DesktopImage.data!=null?(t(),a("div",ln,[F(y,{asset:(g=(w=c.DesktopImage)==null?void 0:w.data)==null?void 0:g.attributes,mobileAsset:(x=(M=c.MobileImage)==null?void 0:M.data)==null?void 0:x.attributes,imageType:"small"},null,8,["asset","mobileAsset"])])):m("",!0),n("div",{class:h(["w-full px-[25px] md:px-11 flex flex-col",e.content.CardAlign])},[F(d,{bannerContent:c.Text},null,8,["bannerContent"])],2)],2)}),256))],2)):m("",!0),e.content.ContentBelow?(t(),a("div",{key:2,class:h(["textWrap",e.content.SectionTextColour])},[F(d,{bannerContent:e.content.ContentBelow,LightMode:!0},null,8,["bannerContent"])],2)):m("",!0)],4)],6)):(t(),a("div",{key:1,class:h(["testimonialSection w-full flex justify-center FullScreen overflow-x-hidden",{"pt-20 pb-20":e.content.SectionBackgroundColour,[e.content.SectionAlign]:!0,[e.content.SectionMarginBottom]:!0}]),style:G({backgroundColor:e.content.SectionBackgroundColour?e.content.SectionBackgroundColour:""})},[n("div",an,[n("div",{class:h(e.content.SectionAlign=="Center"?"max-w-[1345px]  flex justify-center ":"")},[e.content.ContentAbove?(t(),a("div",{key:0,class:h(["textWrap max-w-[960px]",e.content.SectionTextColour])},[F(d,{bannerContent:e.content.ContentAbove},null,8,["bannerContent"])],2)):m("",!0)],2),n("div",sn,[F(f,{loop:!0,spaceBetween:30,breakpoints:{200:{slidesPerView:1.25,spaceBetween:20},640:{slidesPerView:1.5,spaceBetween:20},800:{slidesPerView:2.25,spaceBetween:20},1024:{slidesPerView:"auto"}}},{default:ce(()=>[e.content.CardItem.length>=3?(t(),S(b,{key:0,textColour:e.content.SectionTextColour,position:e.content.SectionAlign},null,8,["textColour","position"])):m("",!0),(t(!0),a(L,null,V(e.content.CardItem,(c,r)=>(t(),S(i,{class:h([e.content.SectionBackgroundColour?"bg-white":"bg-blue","rounded-xl"])},{default:ce(()=>{var w,g,M,x;return[n("div",{class:h([e.content.SectionBackgroundColour?"":"flex","flex-col","items-center","cardItem",e.content.CardAlign])},[c.DesktopImage.data!=null?(t(),a("div",rn,[F(y,{asset:(g=(w=c.DesktopImage)==null?void 0:w.data)==null?void 0:g.attributes,mobileAsset:(x=(M=c.MobileImage)==null?void 0:M.data)==null?void 0:x.attributes,imageType:"small"},null,8,["asset","mobileAsset"])])):m("",!0),n("div",{class:h(["w-full px-[25px] md:px-11 flex flex-col",e.content.CardAlign])},[F(d,{bannerContent:c.Text},null,8,["bannerContent"])],2)],2)]}),_:2},1032,["class"]))),256)),(t(!0),a(L,null,V(e.content.CardItem,(c,r)=>(t(),S(i,{class:h([e.content.SectionBackgroundColour?"bg-white":"bg-blue","rounded-xl"])},{default:ce(()=>{var w,g,M,x;return[n("div",{class:h([e.content.SectionBackgroundColour?"":"flex","flex-col","items-center","cardItem",e.content.CardAlign])},[c.DesktopImage.data!=null?(t(),a("div",cn,[F(y,{asset:(g=(w=c.DesktopImage)==null?void 0:w.data)==null?void 0:g.attributes,mobileAsset:(x=(M=c.MobileImage)==null?void 0:M.data)==null?void 0:x.attributes,imageType:"small"},null,8,["asset","mobileAsset"])])):m("",!0),n("div",{class:h(["w-full px-[25px] md:px-11 flex flex-col",e.content.CardAlign])},[F(d,{bannerContent:c.Text},null,8,["bannerContent"])],2)],2)]}),_:2},1032,["class"]))),256))]),_:1})]),e.content.ContentBelow?(t(),a("div",{key:0,class:h(["textWrap max-w-[1345px] mt-20",e.content.SectionTextColour])},[F(d,{bannerContent:e.content.ContentBelow,LightMode:!0},null,8,["bannerContent"])],2)):m("",!0)])],6))}}});const dn={class:"max-w-[1000px] w-full m-auto px-5 text-center"},mn={class:"max-w-[950px] w-full m-auto px-[3vw] md:px-5"},gn={key:0,class:"flex flex-col"},fn={class:"mb-5 bg-lightblue rounded-xl px-6 py-5 lg:px-8 lg:py-6"},pn=["onClick","aria-label"],hn={class:"font-bold text-[20px] md:text-[24px] mr-4"},xn={class:"w-[20px] h-[20px] mt-[15px]"},vn=N({__name:"Accordion",props:{content:Object},setup(e){const o=D(null),s=u=>{o.value=o.value===u?null:u};return(u,p)=>{const d=le;return t(),a("div",{class:h([e.content.SectionMarginBottom,"w-full"])},[n("div",dn,[F(d,{bannerContent:e.content.ContentAbove,LightMode:!0},null,8,["bannerContent"])]),n("div",mn,[e.content.AccordionItem?(t(),a("ul",gn,[(t(!0),a(L,null,V(e.content.AccordionItem,(y,b)=>(t(),a("li",fn,[n("button",{onClick:i=>s(b),class:"text-xl text-start 3md:text-2xl flex flex-row w-full items-start justify-between","aria-label":`Toggle ${y.Title} answer`},[n("h3",hn,J(y.Title),1),n("div",xn,[n("div",{class:h(["toggle",l(o)!==b?"open":""])},null,2)])],8,pn),n("div",{class:h([l(o)===b?"block opacity-100":"hidden opacity-0","transition-all ease-in-out"])},[F(d,{bannerContent:y.Content,LightMode:!0},null,8,["bannerContent"])],2)]))),256))])):m("",!0)])],2)}}});const bn={class:"text-lg font-bold"},wn={class:"bg-white w-[186px] h-[12px] rounded-xl"},Le=N({__name:"FormSteps",props:{currentStep:Number,totalSteps:Number},setup(e){const o=e,s=X(()=>o.currentStep/o.totalSteps*100);return(u,p)=>(t(),a("div",null,[n("h5",bn,J(e.currentStep)+" Of "+J(e.totalSteps),1),n("div",wn,[n("div",{style:G(`background-color: #08A44E; height: 12px; border-radius: 12px; width: ${l(s)}%;`)},null,4)])]))}}),yn=["name","placeholder","onUpdate:modelValue","required","onInput"],Cn=["name","placeholder","onUpdate:modelValue","required","onInput"],Sn=["name","placeholder","onUpdate:modelValue","required","onInput"],_n={key:3,class:"font-normal text-base p-5 scroll-px-7 w-full bg-white text-black rounded-xl"},kn=["name","required"],Tn=["value"],$n={key:4,class:"font-normal text-base p-5 scroll-px-7 w-full bg-white text-black rounded-xl"},In=["name","required","onUpdate:modelValue","onChange"],Dn=["value"],An={key:5,class:"w-full flex justify-center grid grid-cols-1 gap-5"},Fn={class:"md:flex grid md:flex-row grid-cols-1 gap-5"},Mn={class:"w-full"},Ln=["required","onInput"],Rn={class:"w-full"},Pn=["onInput"],jn={class:"md:flex grid md:flex-row gap-5"},Bn={class:"w-full"},On=["required","onInput"],Vn={class:"w-full"},Un=["required","onInput"],Nn={class:"md:flex grid md:flex-row gap-5"},En={class:"w-full"},qn=["required","onInput"],Hn={class:"w-full"},Qn=["required","onInput"],Re=N({__name:"FormInputs",props:{FormItem:Object},emits:["input-change","update"],setup(e,{emit:o}){let s=D({});const u=o;let p=D([]),d=D([]),y=D([]);const b=f=>{let c=!1;s.value["Address line one"]&&s.value.Town&&s.value.County&&s.value.Country&&s.value["Eircode/Postcode"]&&(c=!0),y.value[f]=c,c&&u("update","Address",{"Address line one":s.value["Address line one"],Town:s.value.Town,County:s.value.County,Country:s.value.Country,"Eirco
1de/Postcode":s.value["Eircode/Postcode"]})},i=(f,c,r)=>{f==="email"&&(console.log("type email true"),p.value[r]=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(s.value[c]),console.log("emailValid: ",p.value),p.value[r]&&u("update",c,s.value[c])),f==="phone"&&(console.log("type phone true"),d.value[r]=/^[0-9-+\s()]*$/.test(s.value[c]),console.log("phoneValid: ",d.value),d.value[r]&&u("update",c,s.value[c])),f==="Address"&&(console.log("type Address true"),b(r),console.log("addressValid: ",y.value))};return rt(()=>{for(let f in s.value)s.value[f]&&u("input-change",f,s.value[f])}),(f,c)=>(t(!0),a(L,null,V(e.FormItem.InputField,(r,w)=>(t(),a(L,null,[r.Type==="Text"?Z((t(),a("input",{key:0,type:"text",name:r.InputTitle,placeholder:r.PlaceholderText,"onUpdate:modelValue":g=>l(s)[r.InputTitle]=g,required:r.Required,class:"placeholder-gray-600",onInput:g=>u("update",r.InputTitle,l(s)[r.InputTitle])},null,40,yn)),[[oe,l(s)[r.InputTitle]]]):m("",!0),r.Type==="Email"?Z((t(),a("input",{key:1,type:"email",name:r.InputTitle,placeholder:r.PlaceholderText,"onUpdate:modelValue":g=>l(s)[r.InputTitle]=g,required:r.Required,class:h(["placeholder-gray-600",{invalid:l(p)[w]!==void 0&&!l(p)[w]}]),onInput:g=>i("email",r.InputTitle,w)},null,42,Cn)),[[oe,l(s)[r.InputTitle]]]):m("",!0),r.Type==="Phone"?Z((t(),a("input",{key:2,type:"tel",name:r.InputTitle,placeholder:r.PlaceholderText,"onUpdate:modelValue":g=>l(s)[r.InputTitle]=g,required:r.Required,class:h(["placeholder-gray-600",{invalid:l(d)[w]!==void 0&&!l(d)[w]}]),onInput:g=>i("phone",r.InputTitle,w)},null,42,Sn)),[[oe,l(s)[r.InputTitle]]]):m("",!0),r.Type==="Select"?(t(),a("div",_n,[n("select",{name:r.InputTitle,id:"",class:"w-full",required:r.Required},[(t(!0),a(L,null,V(r.SelectOptions.split(`
2`),g=>(t(),a("option",{key:g,value:g},J(g),9,Tn))),128))],8,kn)])):m("",!0),r.Type==="Select"?(t(),a("div",$n,[Z(n("select",{name:r.InputTitle,id:"",class:"w-full",required:r.Required,"onUpdate:modelValue":g=>l(s)[r.InputTitle]=g,onChange:g=>f.updateSelect(r.InputTitle)},[(t(!0),a(L,null,V(r.SelectOptions.split(`
3`),g=>(t(),a("option",{key:g,value:g},J(g),9,Dn))),128))],40,In),[[Ct,l(s)[r.InputTitle]]])])):m("",!0),r.Type==="Address"?(t(),a("div",An,[n("div",Fn,[n("div",Mn,[Z(n("input",{type:"text",name:"Address line one",id:"",placeholder:"Address line one","onUpdate:modelValue":c[0]||(c[0]=g=>l(s)["Address line one"]=g),required:r.Required,class:"placeholder-gray-600",onInput:g=>i("Address","Address line one",w)},null,40,Ln),[[oe,l(s)["Address line one"]]])]),n("div",Rn,[Z(n("input",{type:"text",name:"Address line two",id:"",placeholder:"Address line two","onUpdate:modelValue":c[1]||(c[1]=g=>l(s)["Address line two"]=g),required:"false",class:"placeholder-gray-600",onInput:g=>i("Address","Address line two",w)},null,40,Pn),[[oe,l(s)["Address line two"]]])])]),n("div",jn,[n("div",Bn,[Z(n("input",{type:"text",name:"Town",id:"",placeholder:"Town","onUpdate:modelValue":c[2]||(c[2]=g=>l(s).Town=g),required:r.Required,class:"placeholder-gray-600",onInput:g=>i("Address","Town",w)},null,40,On),[[oe,l(s).Town]])]),n("div",Vn,[Z(n("input",{type:"text",name:"County",id:"",placeholder:"County","onUpdate:modelValue":c[3]||(c[3]=g=>l(s).County=g),required:r.Required,class:"placeholder-gray-600",onInput:g=>i("Address","County",w)},null,40,Un),[[oe,l(s).County]])])]),n("div",Nn,[n("div",En,[Z(n("input",{type:"text",name:"Country",id:"",placeholder:"Country","onUpdate:modelValue":c[4]||(c[4]=g=>l(s).Country=g),required:r.Required,class:"placeholder-gray-600",onInput:g=>i("Address","Country",w)},null,40,qn),[[oe,l(s).Country]])]),n("div",Hn,[Z(n("input",{type:"text",name:"Eircode/Postcode",id:"",placeholder:"Eircode/Postcode","onUpdate:modelValue":c[5]||(c[5]=g=>l(s)["Eircode/Postcode"]=g),required:r.Required,class:"placeholder-gray-600",onInput:g=>i("Address","Eircode/Postcode",w)},null,40,Qn),[[oe,l(s)["Eircode/Postcode"]]])])])])):m("",!0)],64))),256))}});const zn={class:"flex flex-row gap-3"},Jn=n("div",{style:{transform:"rotate(180deg)"}},[n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 ml-[10px] icon-arrow"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})])],-1),Wn=n("span",{class:"text"},"Back",-1),Yn=[Jn,Wn],Kn=["disabled"],Gn=n("span",{class:"text"},"Next",-1),Xn=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6 ml-[10px] icon-arrow"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})],-1),Zn=[Gn,Xn],Pe=N({__name:"FormNextPrev",props:{index:Number,isOptionSelected:Boolean,theme:String},emits:["next","prev"],setup(e,{emit:o}){const s=e,u=o,p=()=>{s.isOptionSelected&&u("next")},d=()=>{(s.isOptionSelected||s.index>0)&&u("prev")};return(y,b)=>(t(),a("div",zn,[e.index>0?(t(),a("button",{key:0,class:h(["buttonbase Outline Reverse",e.theme==="Light"?"LightMode":""]),onClick:d,"aria-label":"Previous"},Yn,2)):m("",!0),n("button",{class:h(["buttonbase Solid transition-all ease-in-out",e.isOptionSelected?"opacity-100 ":" opacity-30 pointer-events-none"]),onClick:p,disabled:!e.isOptionSelected,"aria-label":"Next"}
3,Zn,10,Kn)]))}}),eo=["onClick"],to=["src","alt"],no={class:"text-black font-bold text-[18px] leading-[18px] px-4"},je=N({__name:"FormOptions",props:{FormItem:Object,Layout:String,Active:Number},emits:["select","option-selected","single-option-selected","question-answered"],setup(e,{emit:o}){const s=e,u=o,p=D(""),d=D(s.FormItem.SelectOne?[]:[]),y=f=>{const c=s.Active;if(s.FormItem.SelectOne)d.value=[f],u("question-answered",c,!0);else{const r=d.value.length>0;u("question-answered",c,r)}if(s.FormItem.SelectOne)d.value=[f],u("select",s.FormItem.Question,f.OptionTitle,s.FormItem.SelectOne),u("single-option-selected");else{const r=d.value.findIndex(g=>g.OptionTitle===f.OptionTitle);r>-1?d.value.splice(r,1):d.value.push(f);const w=d.value.map(g=>g.OptionTitle);console.log("titles: ",w),u("select",s.FormItem.Question,w,s.FormItem.SelectOne)}console.log("selectedOption",d.value),u("option-selected",d.value.length>0)},b=f=>d.value.findIndex(r=>r.OptionTitle===f.OptionTitle)>-1?"border-green":"border-transparent",i=X(()=>{const f=s.FormItem.Options.length;if(s.Layout==="col")return"grid-cols-1 gap-5 grid w-full mb-10";switch(f){case 1:return"grid-cols-1 gap-5 grid w-full mb-10";case 2:return"grid-cols-1 lg:grid-cols-2 gap-5 grid w-full max-w-[760px] mb-10";default:return"grid-cols-1 lg:grid-cols-3 gap-5 grid w-full mb-10"}});return(f,c)=>(t(),a("div",{class:h([l(i)])},[(t(!0),a(L,null,V(e.FormItem.Options,(r,w)=>(t(),a("div",{class:h(["bg-white flex rounded-xl w-full border-2 cursor-pointer",[e.Layout==="col"?"p-5 justify-start items-center":"px-24 py-5 lg:py-12 justify-center items-center lg:flex-col",b(r)]]),onClick:g=>y(r)},[r.OptionIcon.data!==null?(t(),a("img",{key:0,src:`${l(p)}${r.OptionIcon.data.attributes.url}`,height:"34",class:"h-[34px] block mr-3 lg:mr-0",alt:r.OptionTitle},null,8,to)):m("",!0),n("h3",no,J(r.OptionTitle),1)],10,eo))),256))],2))}});function Be(e,o,s){const u=D(0),p=D(!1);return St(u,()=>{o(u.value)}),{formActive:u,isLoading:p,next:async(b=!1)=>{u.value===e-1&&b?(p.value=!0,await new Promise(i=>setTimeout(i,700)),u.value++,await new Promise(i=>setTimeout(i,300)),p.value=!1,o(u.value)):u.value<e-1&&(p.value=!0,await new Promise(i=>setTimeout(i,700)),u.value++,await new Promise(i=>setTimeout(i,300)),p.value=!1,o(u.value))},prev:async()=>{u.value>0&&(p.value=!0,await new Promise(b=>setTimeout(b,700)),u.value--,await new Promise(b=>setTimeout(b,300)),p.value=!1,o(u.value))}}}const Oe=(e,o,s,u,p,d)=>{let y=D({Name:"",Email:"",FormData:[]}),b=D([]);rt(()=>{const x=e.FormType[o.value];if(x&&x.InputField){const C=x.InputField.filter(_=>_.Required);b.value=C.map(()=>!1)}});const i=(x,C)=>{console.log(`updateRequiredFieldState called with: ${x}, ${C}`);const _=e.FormType[o.value];if(_&&_.InputField){const k=_.InputField.findIndex(A=>A.InputTitle===x&&A.Required);k!==-1&&(b.value[k]=C!==null&&C!=="")}console.log(b.value)},f=X(()=>(console.log(`allRequiredFilled updated: ${b.value.every(x=>x)}`),b.value.every(x=>x))),c=(x,C,_)=>{if(console.log("answersAllowed: ",_),_){console.log("allowed single ansewer: ");let k=y.value.FormData.find(A=>A.Question===x);console.log("existingQuestion: ",k),k?k.Response=[C]:y.value.FormData.push({Question:x,Response:[C]})}else{console.log("allowed multiple ansewer: ");let k=y.value.FormData.find(A=>A.Question===x);k?k.Response=[C]:y.value.FormData.push({Question:x,Response:[C]})}},r=(x,C)=>{y.value[x]=C};function w(x){let C="",_=["Address line one","Address line two","Town","County","Country","Eircode/Postcode"],k="";for(const[A,U]of Object.entries(x))A!=="FormData"&&!_.includes(A)&&(C+=`${A}: ${U}
4`);for(const A of _)x[A]&&(k+=`${x[A]}
5`);k&&(C+=`
6Address:
7${k}
8`);for(const A of x.FormData){let U=A.Response.join(", ");C+=`Question: ${A.Question}
9Response: ${U}
10
11`}return C}function g(x){let C={Name:x.Name||"",Email:x.Email||"",FormData:[]};for(const[_,k]of Object.entries(x))_!=="FormData"&&(C[_]=k);for(const _ of x.FormData){let k=_.Response.join(", ");C.FormData.push({Question:_.Question,Response:k})}return C}return{userResponses:y,handleSelect:c,handleInputChange:r,updateRequiredFieldState:i,allRequiredFilled:f,getRedirectLink:x=>{var k,A,U,H,E;let C=(U=(A=(k=x==null?void 0:x.parentPage)==null?void 0:k.data)==null?void 0:A.attributes)==null?void 0:U.slug,_=(E=(H=x==null?void 0:x.data)==null?void 0:H.attributes)==null?void 0:E.slug;return C&&_?`/${C}/${_}`:_?`/${_}
11`:!1},formatUserResponses:w,formatUserResponsesForJson:g}},oo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"rgba(255, 255, 255, 0)",display:"block","shape-rendering":"auto"},width:"80px",height:"80px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},lo=n("circle",{cx:"50",cy:"50",fill:"none",stroke:"#08a44e","stroke-width":"10",r:"35","stroke-dasharray":"164.93361431346415 56.97787143782138"},[n("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})],-1),ao=[lo],so={class:"flex flex-col centered justify-start w-full h-full items-center text-center p-7 3md:p-24"},io={key:2,class:"w-full flex justify-center items-center flex-col"},ro={key:0,class:"w-full flex justify-center"},co=N({__name:"FormCenter",props:{formData:Object,pageID:Number,formID:Number,subject:String,sentTo:String,replyTo:String,redirectURL:String,pageRedirect:Object},setup(e){const o=e,s=X(()=>{const v=o.formData.FormType[f.value];return v&&v.InputField?v.InputField.filter(I=>I.Type!=="SubmitButton").length<=3?"form w-full grid lg:flex lg:flex-row grid-cols-1 gap-5 flex-nowrap mb-7":"form w-full grid grid-cols-1 gap-5 lg:w-[600px] mb-7":"form w-full grid grid-cols-1 gap-5 w-[510px]"}),u=X(()=>{const v=o.formData.FormType[f.value];return v&&v.InputField?v.InputField.filter(I=>I.Type!=="SubmitButton").length<=3?"w-full":"  max-w-[600px] w-full ":""}),p=X(()=>o.formData.FormType.filter(v=>v.__component!=="forms.complete")),d=D(!1),y=D(Array(p.value.length).fill(!1)),b=(v,$)=>{y.value[v]=$},i=()=>{d.value=y.value[f.value]},{formActive:f,isLoading:c,next:r,prev:w}=Be(p.value.length,i),g=()=>{r()},{userResponses:M,handleSelect:x,handleInputChange:C,updateRequiredFieldState:_,allRequiredFilled:k,getRedirectLink:A,formatUserResponses:U,formatUserResponsesForJson:H}=Oe(o.formData,f),{create:E}=me(),Y=_e(),Q=D(!1);async function R(){if(Q.value)return;Q.value=!0;const v=JSON.parse(o.formData.CustomerConfirmationEmailText).blocks,$=T(v);try{let I=A(o.pageRedirect),j=U(M.value),z=H(M.value);const B={Name:M.value.Name||"",Email:M.value.Email||"",page:o.pageID,form:o.formID,Subject:o.subject,SentTo:o.sentTo,ReplyTo:o.replyTo,MessageContent:j,ThankyouMessage:$,JsonData:JSON.stringify(z),PageURL:window.location.href||"",ShowEmailDetailOnConfirmation:o.formData.showEnquiryDetails};await E("enquiries",B),console.log("enqruiy saved"),I?(console.log("redirect found: ",I),Y.push(I)):o.redirectURL?(console.log("props.redirectURL found: ",o.redirectURL),window.location.href=o.redirectURL):(console.log("calling next"),r(!0))}catch(I){console.error("Error in submitData: ",I)}}function T(v){let $="";return v.forEach(I=>{switch(I.type){case"header":const j=`h${I.data.level}`;$+=`<${j}>${I.data.text}</${j}>`;break;case"paragraph":$+=`<p>${I.data.text}</p>`;break;case"list":const z=I.data.style==="ordered"?"ol":"ul";$+=`<${z}>`,I.data.items.forEach(B=>{$+=`<li>${B}</li>`}),$+=`</${z}>`;break;case"image":$+=`<img src="${I.data.file.url}" alt="${I.data.file.alt||""}"/>`;break;case"button":$+=`<a href="${I.data.linkURL}" style="display: inline-block; background-color: #92BC0F; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 5px;">${I.data.text}</a>`;break}}),$}return(v,$)=>{const I=Le,j=le,z=Re,B=Pe,O=je;return t(),a("div",{class:h(["bg-lightblue overflow-hidden rounded-xl SectionInner justify-center w-full h-full min-h-[200px] relative duration-700 ease-in-out",e.formData.SectionTextColour==="Light"?"text-white":""]),style:G({backgroundColor:e.formData.SectionBackgroundColour?e.formData.SectionBackgroundColour:""})},[n("div",{class:h(["bg-lightblue absolute w-full h-full top-0 flex justify-center items-center pointer-events-none transition-all duration-700 ease-in-out z-10",l(c)?"opacity-100 ":" opacity-0"])},[(t(),a("svg",oo,ao))],2),(t(!0),a(L,null,V(e.formData.FormType,(P,W)=>(t(),a("div",{class:h(l(f)===W?"active-slide":"inactive-slide")},[n("div",so,[l(p).length>1&&P.__component!=="forms.complete"?(t(),S(I,{key:0,currentStep:W
11+1,totalSteps:l(p).length},null,8,["currentStep","totalSteps"])):m("",!0),P.ContentBefore?(t(),a("div",{key:1,class:h(l(u))},[F(j,{bannerContent:P.ContentBefore,LightMode:e.formData.SectionTextColour},null,8,["bannerContent","LightMode"])],2)):m("",!0),P.InputField?(t(),a("div",io,[n("div",{class:h(l(s))},[F(z,{FormItem:P,onInputChange:l(C),onUpdate:l(_)},null,8,["FormItem","onInputChange","onUpdate"])],2),(t(!0),a(L,null,V(P.InputField,(K,ie)=>(t(),a(L,null,[K.Type==="SubmitButton"?(t(),a("div",ro,[n("button",{class:h(["bg-green text-white flex justify-center items-center font-bold rounded-full text-base h-[50px] p-4 px-7 transition-all ease-in-out",{"opacity-30 pointer-events-none":!l(k)||l(Q)}]),onClick:R,"aria-label":"Submit Form"},J(K.InputTitle),3)])):m("",!0),K.Type==="NextButton"?(t(),S(B,{key:1,onNext:l(r),onPrev:l(w),index:ie,isOptionSelected:l(k),theme:e.formData.SectionTextColour},null,8,["onNext","onPrev","index","isOptionSelected","theme"])):m("",!0)],64))),256))])):m("",!0),P.Options?(t(),S(O,{key:3,FormItem:P,Active:W,onSelect:l(x),onOptionSelected:$[0]||($[0]=K=>d.value=K),onSingleOptionSelected:g,onQuestionAnswered:b},null,8,["FormItem","Active","onSelect"])):m("",!0),P.Options?(t(),S(B,{key:4,onNext:l(r),onPrev:l(w),index:W,isOptionSelected:l(d),theme:e.formData.SectionTextColour},null,8,["onNext","onPrev","index","isOptionSelected","theme"])):m("",!0),P.ContentAfter?(t(),a("div",{key:5,class:h(l(u))},[F(j,{bannerContent:P.ContentAfter,LightMode:e.formData.SectionTextColour},null,8,["bannerContent","LightMode"])],2)):m("",!0)])],2))),256))],6)}}});const uo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"rgba(255, 255, 255, 0)",display:"block","shape-rendering":"auto"},width:"80px",height:"80px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},mo=n("circle",{cx:"50",cy:"50",fill:"none",stroke:"#08a44e","stroke-width":"10",r:"35","stroke-dasharray":"164.93361431346415 56.97787143782138"},[n("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})],-1),go=[mo],fo={class:"w-full lg:w-1/2 px-7 pt-12 lg:p-24"},po={key:0,class:"mb-8"},ho={key:1,class:"textleft"},xo={key:0,class:"w-full flex justify-center items-center flex-col"},vo={class:"form w-full grid grid-cols-1 gap-5 w-full"},bo={key:0,class:"w-full flex justify-start my-5"},wo={key:3,class:"w-full"},yo=N({__name:"FormColumns",props:{formData:Object,pageID:Number,formID:Number,subject:String,sentTo:String,replyTo:String,redirectURL:String,pageRedirect:Object,direction:String},setup(e){const o=e,s=X(()=>o.formData.FormType.filter(R=>R.__component!=="forms.complete")),u=D(!1),p=D(Array(s.value.length).fill(!1)),d=(R,T)=>{p.value[R]=T},y=()=>{u.value=p.value[b.value]},{formActive:b,isLoading:i,next:f,prev:c}=Be(s.value.length,y),r=()=>{f()},{userResponses:w,handleSelect:g,handleInputChange:M,updateRequiredFieldState:x,allRequiredFilled:C,getRedirectLink:_,formatUserResponses:k,formatUserResponsesForJson:A}=Oe(o.formData,b),{create:U}=me(),H=_e(),E=D(!1);async function Y(){if(E.value)return;E.value=!0;const R=JSON.parse(o.formData.CustomerConfirmationEmailText).blocks,T=Q(R);try{let v=_(o.pageRedirect),$=k(w.value),I=A(w.value);const j={Name:w.value.Name||"",Email:w.value.Email||"",page:o.pageID,form:o.formID,Subject:o.subject,SentTo:o.sentTo,ReplyTo:o.replyTo,MessageContent:$,ThankyouMessage:T,JsonData:JSON.stringify(I),PageURL:window.location.href||"",ShowEmailDetailOnConfirmation:o.formData.showEnquiryDetails};await U("enquiries",j),console.log("enqruiy saved"),v?(console.log("redirect found: ",v),H.push(v)):o.redirectURL?(console.log("props.redirectURL found: ",o.redirectURL),window.location.href=o.redirectURL):(console.log("calling next"),f(!0))}catch(v){console.error("Error in submitData: ",v)}}function Q(R){let T="";return R.forEach(v=>{switch(v.type){case"header":const $=`h${v.data.level}`;T+=`<${$}>${v.data.text}</${$}>`;break;case"paragraph":T+=`<p>${v.data.text}</p>`;break;case"list":const I=v.data.style==="ordered"?"ol":"ul";
11T+=`<${I}>`,v.data.items.forEach(j=>{T+=`<li>${j}</li>`}),T+=`</${I}>`;break;case"image":T+=`<img src="${v.data.file.url}" alt="${v.data.file.alt||""}"/>`;break;case"button":T+=`<a href="${v.data.linkURL}" style="display: inline-block; background-color: #92BC0F; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 5px;">${v.data.text}</a>`;break}}),T}return(R,T)=>{const v=Le,$=le,I=Re,j=Pe,z=je;return t(),a("div",{class:h(["bg-lightblue overflow-hidden rounded-xl SectionInner justify-center w-full h-full min-h-[200px] relative duration-700 ease-in-out",e.formData.SectionTextColour==="Light"?"text-white":""]),style:G({backgroundColor:e.formData.SectionBackgroundColour?e.formData.SectionBackgroundColour:""})},[n("div",{class:h(["bg-lightblue absolute w-full h-full top-0 flex justify-center items-center pointer-events-none transition-all duration-700 ease-in-out z-10",l(i)?"opacity-100 ":" opacity-0"])},[(t(),a("svg",uo,go))],2),(t(!0),a(L,null,V(e.formData.FormType,(B,O)=>(t(),a("div",{class:h(l(b)===O?"active-slide":"inactive-slide")},[n("div",{class:h(["flex flex-col justify-start w-full h-full items-stretch",e.direction=="TextForm"?"lg:flex-row":" lg:flex-row-reverse"])},[n("div",fo,[l(s).length>1&&B.__component!=="forms.complete"?(t(),a("div",po,[F(v,{currentStep:O+1,totalSteps:l(s).length},null,8,["currentStep","totalSteps"])])):m("",!0),B.ContentBefore?(t(),a("div",ho,[F($,{bannerContent:B.ContentBefore,LightMode:e.formData.SectionTextColour},null,8,["bannerContent","LightMode"])])):m("",!0)]),n("div",{class:h(["w-full lg:w-1/2 p-7 pt-0 bg-white bg-opacity-10",l(s).length>1&&B.__component!=="forms.complete"&&e.direction==="TextForm"?"lg:p-24 lg:pt-[170px]":"lg:p-24"])},[B.InputField?(t(),a("div",xo,[n("div",vo,[F(I,{FormItem:B,onInputChange:l(M),onUpdate:l(x)},null,8,["FormItem","onInputChange","onUpdate"])]),(t(!0),a(L,null,V(B.InputField,(P,W)=>(t(),a(L,null,[P.Type==="SubmitButton"?(t(),a("div",bo,[n("button",{class:h(["bg-green text-white flex justify-center items-center font-bold rounded-full text-base h-[50px] p-4 px-7 transition-all ease-in-out",{"opacity-30 pointer-events-none":!l(C)||l(E)}]),onClick:Y,"aria-label":"Submit Form"},J(P.InputTitle),3)])):m("",!0),P.Type==="NextButton"?(t(),S(j,{key:1,onNext:l(f),onPrev:l(c),index:W,isOptionSelected:l(C),theme:e.formData.SectionTextColour},null,8,["onNext","onPrev","index","isOptionSelected","theme"])):m("",!0)],64))),256))])):m("",!0),B.Options?(t(),S(z,{key:1,FormItem:B,Active:O,Layout:"col",onSelect:l(g),onOptionSelected:T[0]||(T[0]=P=>u.value=P),onSingleOptionSelected:r,onQuestionAnswered:d},null,8,["FormItem","Active","onSelect"])):m("",!0),B.Options?(t(),S(j,{key:2,onNext:l(f),onPrev:l(c),index:O,isOptionSelected:l(u),theme:e.formData.SectionTextColour},null,8,["onNext","onPrev","index","isOptionSelected","theme"])):m("",!0),B.ContentAfter?(t(),a("div",wo,[F($,{bannerContent:B.ContentAfter,LightMode:e.formData.SectionTextColour},null,8,["bannerContent","LightMode"])])):m("",!0)],2)],2)],2))),256))],6)}}});const Co={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"rgba(255, 255, 255, 0)",display:"block","shape-rendering":"auto"},width:"80px",height:"80px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},So=n("circle",{cx:"50",cy:"50",fill:"none",stroke:"#08a44e","stroke-width":"10",r:"35","stroke-dasharray":"164.93361431346415 56.97787143782138"},[n("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})],-1),_o=[So],ko={class:"w-full lg:w-1/2 px-7 pt-12 lg:p-24"},To={key:0,class:"mb-8"},$o={key:1,class:"textleft"},Io={key:2,class:"w-full flex justify-center items-center flex-col"},Do={class:"form w-full grid grid-cols-1 gap-5 w-full"},Ao={key:0,class:"w-full flex justify-start my-5"},Fo={key:5,class:"w-full"},Mo={class:"w-full lg:w-1/2 flex-grow flex overflow-hidden relative h-0 pb-[70%] lg:h-auto lg:pb-0"},Lo={class:"w-full h-full;"},Ro=N({__name:"FormImage",props:{formData:Object,pageID:Number,formID:Number,subject:String,sentTo:String,replyTo:String,redirectURL:String,pageRedirect:Object,direction:String},setup(e){const o=e,s=X(()=>o.formData.FormType.filter(R=>R.__component!=="forms.complete")),u=D(!1),p=D(Array(s.value.length).fill(!1)),d=(R,T)=>{p.value[R]=T},y=()=>{u.value=p.value[b.value]},{formActive:b,isLoading:i,next:f,prev:c}=Be(s.value.length,y),r=()=>{f()},{userResponses:w,handleSelect:g,handleInputChange:M,updateRequiredFieldState:x,allRequiredFilled:C,getRedirectLink:_,formatUserResponses:k,formatUserResponsesForJson:A}=Oe(o.formData,b),{create:U}=me(),H=_e(),E=D(!1);async function Y(){if(E.value)return;E.value=!0;const R=JSON.parse(o.formData.CustomerConfirmationEmailText).blocks,T=Q(R);try{let v=_(o.pageRedirect),$=k(w.value),I=A(w.value);
11const j={Name:w.value.Name||"",Email:w.value.Email||"",page:o.pageID,form:o.formID,Subject:o.subject,SentTo:o.sentTo,ReplyTo:o.replyTo,MessageContent:$,ThankyouMessage:T,JsonData:JSON.stringify(I),PageURL:window.location.href||"",ShowEmailDetailOnConfirmation:o.formData.showEnquiryDetails};await U("enquiries",j),console.log("enqruiy saved"),v?(console.log("redirect found: ",v),H.push(v)):o.redirectURL?(console.log("props.redirectURL found: ",o.redirectURL),window.location.href=o.redirectURL):(console.log("calling next"),f(!0))}catch(v){console.error("Error in submitData: ",v)}}function Q(R){let T="";return R.forEach(v=>{switch(v.type){case"header":const $=`h${v.data.level}`;T+=`<${$}>${v.data.text}</${$}>`;break;case"paragraph":T+=`<p>${v.data.text}</p>`;break;case"list":const I=v.data.style==="ordered"?"ol":"ul";T+=`<${I}>`,v.data.items.forEach(j=>{T+=`<li>${j}</li>`}),T+=`</${I}>`;break;case"image":T+=`<img src="${v.data.file.url}" alt="${v.data.file.alt||""}"/>`;break;case"button":T+=`<a href="${v.data.linkURL}" style="display: inline-block; background-color: #92BC0F; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 5px;">${v.data.text}</a>`;break}}),T}return(R,T)=>{const v=Le,$=le,I=Re,j=Pe,z=je,B=se;return t(),a("div",{class:h(["bg-lightblue overflow-hidden rounded-xl SectionInner justify-center w-full h-full min-h-[200px] relative duration-700 ease-in-out",e.formData.SectionTextColour==="Light"?"text-white":""]),style:G({backgroundColor:e.formData.SectionBackgroundColour?e.formData.SectionBackgroundColour:""})},[n("div",{class:h(["bg-lightblue absolute w-full h-full top-0 flex justify-center items-center pointer-events-none transition-all duration-700 ease-in-out z-10",l(i)?"opacity-100 ":" opacity-0"])},[(t(),a("svg",Co,_o))],2),(t(!0),a(L,null,V(e.formData.FormType,(O,P)=>{var W,K,ie,ge;return t(),a("div",{class:h(l(b)===P?"active-slide":"inactive-slide")},[n("div",{class:h(["flex flex-nowrap justify-start w-full h-full items-stretch",e.direction=="ContentImage"?"flex-col-reverse lg:flex-row":"flex-col-reverse lg:flex-row-reverse"])},[n("div",ko,[l(s).length>1&&O.__component!=="forms.complete"?(t(),a("div",To,[F(v,{currentStep:P+1,totalSteps:l(s).length},null,8,["currentStep","totalSteps"])])):m("",!0),O.ContentBefore?(t(),a("div",$o,[F($,{bannerContent:O.ContentBefore,LightMode:e.formData.SectionTextColour},null,8,["bannerContent","LightMode"])])):m("",!0),O.InputField?(t(),a("div",Io,[n("div",Do,[F(I,{FormItem:O,onInputChange:l(M),onUpdate:l(x)},null,8,["FormItem","onInputChange","onUpdate"])]),(t(!0),a(L,null,V(O.InputField,(ae,he)=>(t(),a(L,null,[ae.Type==="SubmitButton"?(t(),a("div",Ao,[n("button",{class:h(["bg-green text-white flex justify-center items-center font-bold rounded-full text-base h-[50px] p-4 px-7 transition-all ease-in-out",{"opacity-30 pointer-events-none":!l(C)||l(E)}]),onClick:Y},J(ae.InputTitle),3)])):m("",!0),ae.Type==="NextButton"?(t(),S(j,{key:1,onNext:l(f),onPrev:l(c),index:he,isOptionSelected:l(C),theme:e.formData.SectionTextColour},null,8,["onNext","onPrev","index","isOptionSelected","theme"])):m("",!0)],64))),256))])):m("",!0),O.Options?(t(),S(z,{key:3,FormItem:O,Active:P,Layout:"col",onSelect:l(g),onOptionSelected:T[0]||(T[0]=ae=>u.value=ae),onSingleOptionSelected:r,onQuestionAnswered:d},null,8,["FormItem","Active","onSelect"])):m("",!0),O.Options?(t(),S(j,{key:4,onNext:l(f),onPrev:l(c),index:P,isOptionSelected:l(u),theme:e.formData.SectionTextColour},null,8,["onNext","onPrev","index","isOptionSelected","theme"])):m("",!0),O.ContentAfter?(t(),a("div",Fo,[F($,{bannerContent:O.ContentAfter,LightMode:e.formData.SectionTextColour},null,8,["bannerContent","LightMode"])])):m("",!0)]),n("div",Mo,[n("div",Lo,[F(B,{asset:(K=(W=O.DesktopImage)==null?void 0:W.data)==null?void 0:K.attributes,mobileAsset:(ge=(ie=O.MobileImage)==null?void 0:ie.data)==null?void 0:ge.attributes,imageType:"half"},null,8,["asset","mobileAsset"])])])],2)],2)}),256))],6)}}});const Po=["id"],jo=N({__name:"Forms",props:{content:Object,pageID:Number},async setup(e){let o,s;const u=e,{find:p}=me(),d=([o,s]=de(()=>p("global-setting")),o=await o,s(),o),y=X(()=>u.content.SelectForm.data.attributes.FormTitle.toLowerCase().replace(/\s+/g,"-"));return(b,i)=>{const f=co,c=yo,r=Ro;return t(),a("div",{class:h(["w-full flex flex-col justify-center items-center relative px-[3vw] md:px-[20px]",e.content.SelectForm.data.attributes.SectionMarginBottom]),id:l(y)},[e.content.SelectForm.data.attributes.SectionStyle==="Centered"?(t(),S(f,{key:0,formData:e.content.SelectForm.data.attributes,pageID:e.pageID,formID:e.content.SelectForm.data.id,subject:e.content.SelectForm.data.attributes.EmailSubject??"Website Enquiry",sentTo:e.content.SelectForm.data.attributes.sendTo??l(d).data.attributes.defaultToEmail,replyTo:e.content.SelectForm.data.attributes.replyTo??l(d).data.attributes.defaultReplyToEmail,redirectURL:e.content.SelectForm.data.attributes.RedirectURL,pageRedirect:e.content.SelectForm.data.attributes.pageRedirect},null,8,["formData","pageID","formID","subject","sentTo","replyTo","redirectURL","pageRedirect"])):m("",!0),e.content.SelectForm.data.attributes.SectionStyle==="TextForm"||e.content.SelectForm.data.attributes.SectionStyle==="FormText"?(t(),S(c,{key:1,direction:e.content.SelectForm.data.attributes.SectionStyle,formData:e.content.SelectForm.data.attributes,pageID:e.pageID,formID:e.content.SelectForm.data.id,subject:e.content.SelectForm.data.attributes.EmailSubject??"Website Enquiry",sentTo:e.content.SelectForm.data.attributes.sendTo??l(d).data.attributes.defaultToEmail,replyTo:e.content.SelectForm.data.attributes.replyTo??l(d).data.attributes.defaultReplyToEmail,redirectURL:e.content.SelectForm.data.attributes.RedirectURL,pageRedirect:e.content.SelectForm.data.attributes.pageRedirect},null,8,["direction","formData","pageID","formID","subject","sentTo","replyTo","redirectURL","pageRedirect"])):m("",!0),e.content.SelectForm.data.attributes.SectionStyle==="ContentImage"||e.content.SelectForm.data.attributes.SectionStyle==="ImageContent"?(t(),S(r,{key:2,direction:e.content.SelectForm.data.attributes.SectionStyle,formData:e.content.SelectForm.data.attributes,pageID:e.pageID,formID:e.content.SelectForm.data.id,subject:e.content.SelectForm.data.attributes.EmailSubject??"Website Enquiry",sentTo:e.content.SelectForm.data.attributes.sendTo??l(d).data.attributes.defaultToEmail,replyTo:e.content.SelectForm.data.attributes.replyTo??l(d).data.attributes.defaultReplyToEmail,redirectURL:e.content.SelectForm.data.attributes.RedirectURL,pageRedirect:e.content.SelectForm.data.attributes.pageRedirect},null,8,["direction","formData","pageID","formID","subject","sentTo","replyTo","redirectURL","pageRedirect"])):m("",!0)],10,Po)}}}),Bo={class:"flex flex-row items-center"},Oo=n("svg",{width:"20",height:"10",class:"-rotate-180",viewBox:"0 0 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n("path",{d:"M15.25 1.25L19 5M19 5L15.25 8.75M19 5H1",stroke:"#147876","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Vo=[Oo],Uo=n("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n("path",{d:"M15.25 1.25L19 5M19 5L15.25 8.75M19 5H1",stroke:"#147876","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),No=[Uo],Eo=N({__name:"NextPrevBtn",props:{index:Number},emits:["next","prev"],setup(e,{emit:o}){const s=o,u=()=>{s("next")},p=()=>{s("prev")};return(d,y)=>(t(),a("div",Bo,[n("button",{"aria-label":"previous",onClick:p,class:"border-2 border-mintgreen mr-3 w-10 h-10 flex items-center justify-center rounded-full"},Vo),n("button",{onClick:u,class:"border-2 border-mintgreen w-10 h-10 flex items-center justify-center rounded-full","aria-label":"next"},No)]))}}),qo=["src"],Ho=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1),Qo=[Ho],Ve=N({__name:"VideoPlayer",props:{videoData:String,isVideoPlayerVisible:Boolean},emits:["close"],setup(e,{emit:o}){const s=e,u=o,p=D(!1),d=D(!1),y=D(!1);ct(async()=>{s.isVideoPlayerVisible&&(await new Promise(i=>setTimeout(i,100)),p.value=!0,await new Promise(i=>setTimeout(i,300)),d.value=!0)}),ut(()=>{p.value=!1,d.value=!1,y.value=!1});const b=async()=>{y.value=!0,await new Promise(i=>setTimeout(i,300)),p.value=!1,await new Promise(i=>setTimeout(i,300)),u("close")};return(i,f)=>(t(),a("div",null,[n("div",{class:h(["w-screen h-screen flex justify-center items-center z-50 fixed top-0 left-0 transition-all duration-700 ease-in-out",p.value?"show-bg":"hide-bg"]),onClick:b},[n("video",{controls:"",autoplay:"",class:h(["max-w-[1200px] w-[90%] transition-all duration-700 ease-in-out",y.value?"close-video":d.value?"show-video":"hide-video"])},[n("source",{src:e.videoData}
11,null,8,qo)],2),n("button",{class:"bg-green text-white flex justify-center items-center w-[44px] h-[44px] rounded-full absolute right-[20px] top-[20px]",onClick:b,"aria-label":"watch video"},Qo)],2)]))}});function zo(e){const o=D(0),s=D(!1);return{testimonialActive:o,isLoading:s,next:async()=>{o.value<e-1?(s.value=!0,await new Promise(d=>setTimeout(d,700)),o.value++,await new Promise(d=>setTimeout(d,300)),s.value=!1):(s.value=!0,await new Promise(d=>setTimeout(d,700)),o.value=0,await new Promise(d=>setTimeout(d,300)),s.value=!1)},prev:async()=>{o.value>0?(s.value=!0,await new Promise(d=>setTimeout(d,700)),o.value--,await new Promise(d=>setTimeout(d,300)),s.value=!1):o.value===0&&(s.value=!0,await new Promise(d=>setTimeout(d,700)),o.value=e-1,await new Promise(d=>setTimeout(d,300)),s.value=!1)}}}function Ue(){const e=D(!1),o=D(null);return{isVideoPlayerVisible:e,videoData:o,showVideoPlayer:p=>{o.value=p,e.value=!0,document.body.classList.add("overflow-hidden")},hideVideoPlayer:()=>{e.value=!1,document.body.classList.remove("overflow-hidden")}}}const Jo=""+globalThis.__publicAssetsURL("images/quote_white.svg"),mt=""+globalThis.__publicAssetsURL("images/ico_play.svg"),Wo={class:"w-full flex flex-col justify-center items-center relative px-[3vw] md:px-[20px]"},Yo={class:"bg-lightblue overflow-hidden rounded-xl SectionInner justify-center w-full h-full relative duration-700 ease-in-out"},Ko={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"rgba(255, 255, 255, 0)",display:"block","shape-rendering":"auto"},width:"80px",height:"80px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Go=n("circle",{cx:"50",cy:"50",fill:"none",stroke:"#08a44e","stroke-width":"10",r:"35","stroke-dasharray":"164.93361431346415 56.97787143782138"},[n("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})],-1),Xo=[Go],Zo={class:"w-full flex flex-col lg:w-1/2 px-7 py-12 lg:p-24"},el=n("img",{class:"lg:max-w-[140px] max-w-[70px] absolute lg:relative right-[30px] lg:left-[-30px] mb-10",src:Jo,alt:""},null,-1),tl={key:0,class:"textTest"},nl=n("p",{class:"mb-2 text-lg font-normal`"},"Testimonials",-1),ol={class:"text-[30px] font-bold mb-2"},ll=["innerHTML"],al=["onClick"],sl=n("div",{class:"flex-grow"},null,-1),il={class:"w-full h-full"},rl=["onClick"],cl=n("img",{class:"w-[16px] lg:w-auto",src:mt,alt:""},null,-1),ul=[cl],dl=N({__name:"TestimonialsTextImage",props:{content:Object,testimonialData:Object},setup(e){const o=e,{testimonialActive:s,isLoading:u,next:p,prev:d}=zo(o.testimonialData.data.length),y=r=>r.replace(/\n/g,"<br>"),{isVideoPlayerVisible:b,videoData:i,showVideoPlayer:f,hideVideoPlayer:c}=Ue();return(r,w)=>{const g=Eo,M=se,x=Ve;return t(),a(L,null,[n("div",Wo,[n("div",Yo,[n("div",{class:h(["bg-lightblue absolute w-full h-full top-0 flex justify-center items-center pointer-events-none transition-all duration-700 ease-in-out z-10",l(u)?"opacity-100 ":" opacity-0"])},[(t(),a("svg",Ko,Xo))],2),(t(!0),a(L,null,V(e.testimonialData.data,(C,_)=>{var k,A,U,H;return t(),a("div",{class:h(l(s)===_?"active-slide":"inactive-slide")},[n("div",{class:h(["flex flex-nowrap justify-start w-full h-full items-stretch lg:min-h-[500px] xl:min-h-[800px]",e.content.SectionStyle=="TextImage"?"flex-col lg:flex-row":"flex-col lg:flex-row-reverse"])},[n("div",Zo,[el,C.attributes.Testimonial?(t(),a("div",tl,[nl,n("h3",ol,J(C.attributes.Name),1),C.attributes.Testimonial?(t(),a("p",{key:0,innerHTML:y(C.attributes.Testimonial),class:"text-[18px] leading-[24px] flex mb-5"},null,8,ll)):m("",!0)])):m("",!0),C.attributes.Video.data!==null?(t(),a("button",{key:1,class:"bg-green text-white w-full lg:w-fit flex justify-center items-center font-bold rounded-full text-base h-[50px] p-4 px-7 transition-all ease-in-out mb-10",onClick:E=>l(f)(C.attributes.Video.data.attributes.url),"aria-label":"watch video"}," Watch Video ",8,al)):m("",!0),sl,e.testimonialData.data.length>=1?(t(),S(g,{key:2,onNext:l(p),onPrev:l(d),index:_},null,8,["onNext","onPrev","index"])):m("",!0)]),n("div",{class:h(["w-full lg:w-1/2 p-0 flex-grow flex overflow-hidden relative",C.attributes.DesktopImage.data!==null||C.attributes.MobileImage.data!==null?"h-0 pb-[70%] lg:h-auto lg:pb-0":""])},[n("div",il,[C.attributes.DesktopImage.data!==null||C.attributes.MobileImage.data!==null?(t(),S(M,{key:0,asset:(A=(k=C.attributes.DesktopImage)==null?void 0:k.data)==null?void 0:A.attributes,mobileAsset:(H=(U=C.attributes.MobileImage)==null?void 0:U.data)==null?void 0:H.attributes,imageType:"half"},null,8,["asset","mobileAsset"])):m("",!0),C.attributes.Video.data!==null?(t(),a("button",{key:1,class:"bg-green text-white flex justify-center items-center w-[44px] h-[44px] lg:w-[64px] lg:h-[64px] rounded-full absolute right-[20px] bottom-[20px] lg:right-[40px] lg:bottom-[40px]",onClick:E=>l(f)(C.attributes.Video.data.attributes.url),"aria-label":"watch video"}
11,ul,8,rl)):m("",!0)])],2)],2)],2)}),256))])]),l(b)?(t(),S(x,{key:0,isVideoPlayerVisible:l(b),videoData:l(i),onClose:l(c)},null,8,["isVideoPlayerVisible","videoData","onClose"])):m("",!0)],64)}}});const ml=""+globalThis.__publicAssetsURL("images/quoteopen.svg"),gl=""+globalThis.__publicAssetsURL("images/quoteclose.svg"),fl={class:"w-full flex flex-col justify-center items-center relative px-[3vw] md:px-[20px]"},pl={class:"rounded-xl SectionInner flex flex-col justify-center items-center w-full h-full relative duration-700 ease-in-out pt-10"},hl=n("h4",{class:"text-green w-fit text-xs font-bold bg-blue py-1 px-3 rounded-xl mb-10"},"WHAT OUR CUSTOMERS HAVE TO SAY",-1),xl={class:"lg:w-[977px] flex flex-col justify-center relative items-center px-5 lg:px-0"},vl=n("img",{class:"lg:max-w-[140px] max-w-[70px] absolute left-0 lg:left-[-60px] top-[-30px] mb-10 z-10",src:ml,alt:""},null,-1),bl=["innerHTML"],wl=n("img",{class:"lg:max-w-[140px] max-w-[70px] absolute right-0 lg:right-[-60px] bottom-[110px] mb-10 z-10",src:gl,alt:""},null,-1),yl={class:"rounded-full w-[90px] h-[90px] bg-blue block relative"},Cl={class:"rounded-full w-[90px] h-[90px] bg-blue block overflow-hidden relative"},Sl={key:1,class:"w-full h-full flex justify-center items-center"},_l=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-10 h-10 opacity-50"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})],-1),kl=[_l],Tl=["onClick"],$l=n("img",{class:"w-[16px]",src:mt,alt:""},null,-1),Il=[$l],Dl={class:"text-2xl pt-5"},Al={class:"flex flex-row items-center justify-center mt-6 pb-10"},Fl=["onClick"],Ml=N({__name:"TestimonialsText",props:{content:Object,testimonialData:Object},setup(e){const o=D(0),s=D(!1),u=f=>{s.value=!0,setTimeout(()=>{o.value=f,s.value=!1},700)},p=f=>f.replace(/\n/g,"<br>"),{isVideoPlayerVisible:d,videoData:y,showVideoPlayer:b,hideVideoPlayer:i}=Ue();return(f,c)=>{const r=se,w=Ve;return t(),a("div",fl,[n("div",pl,[hl,n("div",{class:h(["absolute w-full h-full top-0 flex justify-center items-center pointer-events-none transition-all duration-700 ease-in-out z-10",l(s)?"opacity-100 ":" opacity-0"])},null,2),(t(!0),a(L,null,V(e.testimonialData.data,(g,M)=>{var x,C,_,k;return t(),a("div",{class:h([l(o)===M?"active-slide":"inactive-slide","flex justify-center items-center"])},[n("div",xl,[vl,g.attributes.Testimonial?(t(),a("p",{key:0,class:"font-bold text-[30px] sm:text-5xl leading-[35px] sm:leading-[60px] text-center pb-14 z-20",innerHTML:p(g.attributes.Testimonial)},null,8,bl)):m("",!0),wl,n("div",yl,[n("div",Cl,[g.attributes.DesktopImage.data!==null||g.attributes.MobileImage.data!==null?(t(),S(r,{key:0,asset:(C=(x=g.attributes.DesktopImage)==null?void 0:x.data)==null?void 0:C.attributes,mobileAsset:(k=(_=g.attributes.MobileImage)==null?void 0:_.data)==null?void 0:k.attributes,imageType:"small",styling:"w-full  h-full object-cover object-center"},null,8,["asset","mobileAsset"])):(t(),a("div",Sl,kl))]),g.attributes.Video.data!==null?(t(),a("button",{key:0,class:"bg-green text-white flex justify-center items-center w-[30px] h-[30px] rounded-full absolute right-[-5px] bottom-[0px]",onClick:A=>l(b)(g.attributes.Video.data.attributes.url),"aria-label":"play video"},Il,8,Tl)):m("",!0)]),n("h4",Dl,J(g.attributes.Name),1)])],2)}),256))]),n("div",Al,[(t(!0),a(L,null,V(e.testimonialData.data,(g,M)=>(t(),a("div",{class:h(["mx-1 rounded-full p-2 cursor-pointer",l(o)===M?"bg-green":" bg-blue"]),onClick:x=>u(M)},null,10,Fl))),256))]),l(d)?(t(),S(w,{key:0,isVideoPlayerVisible:l(d),videoData:l(y),onClose:l(i)},null,8,["isVideoPlayerVisible","videoData","onClose"])):m("",!0)])}}}),Ll=""+globalThis.__publicAssetsURL("images/star.svg"),Rl={class:"testimonialSection w-full flex justify-center FullScreen Left large overflow-x-hidden"},Pl={class:"SectionInner"},jl={class:"testimonialCarousel relative"},Bl={class:"bg-blue flex flex-col rounded-xl items-center min-h-[460px]"},Ol={class:"w-full px-[25px] py-16 md:px-11 flex flex-col"},Vl={class:"w-full flex mb-8"},Ul={class:"text-2xl font-bold"},Nl={class:"text-xl font-bold mb-4"},El=["innerHTML"],ql=N({__name:"TestimonialCarousel",props:{content:Object,testimonialData:Object},setup(e){const o=i=>{const f={month:"short",day:"2-digit",year:"numeric"};return new Date(i).toLocaleDateString(void 0,f)},s=i=>({one:1,two:2,three:3,four:4,five:5})[i]||0,u=(i,f=200)=>i.length>f?i.substring(0,f)+"...":i,{isVideoPlayerVisible:p,videoData:d,showVideoPlayer:y,hideVideoPlayer:b}=Ue();return(i,f)=>{const c=le,r=dt,w=Fe,g=Me,M=Ve;return t(),a(L,null,[n("div",Rl,[n("div",Pl,[e.content.ContentAbove?(t(),a("div",{key:0,class:h(["textWrap max-w-[900px] mb-0",e.content.SectionTextColour])},[F(c,{bannerContent:e.content.ContentAbove},null,8,["bannerContent"])],2)):m("",!0),n("div",jl,[F(g,{loop:!0,spaceBetween:30,breakpoints:{200:{slidesPerView:1.25,spaceBetween:20},640:{slidesPerView:1.5,spaceBetween:20},800:{slidesPerView:2.25,spaceBetween:20},1024:{slidesPerView:"auto"}}},{default:ce(()=>[e.testimonialData.data.length>=3?(t(),S(r,{key:0})):m("",!0),(t(!0),a(L,null,V(e.testimonialData.data,(x,C)=>(t(),S(w,null,{default:ce(()=>[n("div",Bl,[n("div",Ol,[n("div",Vl,[(t(!0),a(L,null,V(s(x.attributes.Stars),_=>(t(),a("img",{key:_,src:Ll,alt:"Star"}))),128))]),n("h4",Ul,J(x.attributes.Name),1),n("h5",Nl,J(o(x.attributes.Date)),1),x.attributes.Testimonial?(t(),a("p",{key:0,class:"text-xl",innerHTML:u(x.attributes.Testimonial)},null,8,El)):m("",!0)])])]),_:2},1024))),256))]),_:1})])])]),l(p)?(t(),S(M,{key:0,isVideoPlayerVisible:l(p),videoData:l(d),onClose:l(b)},null,8,["isVideoPlayerVisible","videoData","onClose"])):m("",!0)],64)}}});const Hl=N({__name:"Testimonials",props:{content:Object},async setup(e){let o,s;const u=e,{find:p}=me(),d=([o,s]=de(()=>p("testimonials?populate=DesktopImage&populate=MobileImage&populate=Video")),o=await o,s(),o),y=X(()=>u.content.testimonials.data.length>0?u.content.testimonials:d);return(b,i)=>{const f=dl,c=Ml,r=ql;return t(),a("div",{class:h(e.content.SectionMarginBottom)},[e.content.SectionStyle==="TextImage"||e.content.SectionStyle==="ImageText"?(t(),S(f,{key:0,content:e.content,testimonialData:l(y)},null,8,["content","testimonialData"])):m("",!0),e.content.SectionStyle==="LargeText"?(t(),S(c,{key:1,content:e.content,testimonialData:l(y)},null,8,["content","testimonialData"])):m("",!0),e.content.SectionStyle==="TextColumns"?(t(),S(r,{key:2,content:e.content,testimonialData:l(y)},null,8,["content","testimonialData"])):m("",!0)],2)}}}),Ql={class:"item-content"},zl={class:"contentArea"},Jl=n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1),Wl=[Jl],Yl=N({__name:"ItemDetailsDialog",props:{item:Object,isItemsDialogueVisible:Boolean},emits:["close"],setup(e,{emit:o}){const s=e,u=o,p=D(!1),d=D(!1),y=D(!1);ct(async()=>{s.isItemsDialogueVisible&&(await new Promise(i=>setTimeout(i,100)),p.value=!0,await new Promise(i=>setTimeout(i,300)),d.value=!0)}),ut(()=>{p.value=!1,d.value=!1,y.value=!1});const b=async()=>{y.value=!0,await new Promise(i=>setTimeout(i,300)),p.value=!1,await new Promise(i=>setTimeout(i,300)),u("close")};return(i,f)=>{const c=se,r=le;return t(),a("div",{class:h(["w-screen h-screen flex justify-center items-center z-50 fixed top-0 left-0 transition-all duration-700 ease-in-out",l(p)?"show-bg-itemsDialogue":"hide-bg-itemsDialogue"]),onClick:_t(b,["self"])},[n("div",{class:h(["max-w-[600px] w-[90%] bg-white p-6 rounded-lg",l(y)?"close-video-itemsDialogue":l(d)?"show-video-itemsDialogue":"hide-video-itemsDialogue"])},[n("div",Ql,[n("div",null,[F(c,{asset:e.item.image.data.attributes,imageType:"full",styling:"relative"},null,8,["asset"])]),n("div",zl,[e.item.content?(t(),S(r,{key:0,bannerContent:e.item.content,LightMode:"dark"},null,8,["bannerContent"])):m("",!0)])]),n("button",{class:"bg-green text-white flex justify-center items-center w-[44px] h-[44px] rounded-full absolute right-[20px] top-[20px]",onClick:b},Wl)],2)],2)}}});function Kl(){const e=D(!1),o=D(null);return{isItemsDialogueVisible:e,itemsData:o,showItemsDialogue:p=>{o.value=p,e.value=!0,document.body.classList.add("overflow-hidden")},hideItemsDialogue:()=>{e.value=!1,document.body.classList.remove("overflow-hidden")}}}const Gl={class:"w-full h-full abosolute top-0 left-0"},Xl=["onClick"],Zl=N({__name:"ExploreImage",props:{content:Object},setup(e){D(null);const{isItemsDialogueVisible:o,itemsData:s,showItemsDialogue:u,hideItemsDialogue:p}=Kl();return(d,y)=>{var f,c;const b=se,i=Yl;return t(),a(L,null,[n("div",{class:h(["relative w-full flex justify-center items-center",[e.content.SectionMarginBottom]])},[n("div",{class:"relative",style:G({width:e.content.ImageWidth+"px"})},[n("div",null,[F(b,{asset:(c=(f=e.content.MainImage)==null?void 0:f.data)==null?void 0:c.attributes,imageType:"full",styling:"relative"},null,8,["asset"])]),n("div",Gl,[(t(!0),a(L,null,V(e.content.ImageItems,r=>(t(),a("div",{key:r.id,class:"cd-single-point",style:G({left:r.positionLeft+"%",top:r.positionTop+"%"}),onClick:w=>l(u)(r)},[F(b,{asset:r.image.data.attributes,imageType:"full",styling:"relative"},null,8,["asset"])],12,Xl))),128))])],4)],2),l(o)?(t(),S(i,{key:0,isItemsDialogueVisible:l(o),item:l(s),onClose:l(p)},null,8,["isItemsDialogueVisible","item","onClose"])):m("",!0)],64)}}});const ea={class:"flex flex-col items-center"},ta={key:0,class:"w-full h-full p-32 flex justify-center items-center"},na={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"rgba(255, 255, 255, 0)",display:"block","shape-rendering":"auto"},width:"80px",height:"80px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},oa=n("circle",{cx:"50",cy:"50",fill:"none",stroke:"#08a44e","stroke-width":"10",r:"35","stroke-dasharray":"164.93361431346415 56.97787143782138"},[n("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indef
11inite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})],-1),la=[oa],ma=N({__name:"default",async setup(e){var g,M,x,C,_,k,A,U,H,E,Y,Q,R,T,v,$,I,j,z,B,O,P,W,K,ie,ge,ae,he,Ne,Ee,qe,He,Qe,ze,Je,We,Ye,Ke,Ge,Xe,Ze,et,tt,nt,ot,lt,at,st;let o,s;const u=kt(),p=_e(),{find:d}=me(),{checkAndRedirect:y}=Tt(),b=D(!1);let i=u.params.slug||"home",f=u.path,c,r,w=[];try{if(c=([o,s]=de(()=>d(`pages?populate=*&populate=parentPage&populate=Content&populate=Content.CardItem&populate=Content.CardItem.DesktopImage&populate=Content.CardItem.MobileImage&populate=Content.Buttons&populate=Content.SecondaryButtons&populate=Content.BannerContent&populate=Content.BannerContent.MobileImage&populate=Content.BannerContent.DesktopImage&populate=Content.TextAndImageContent&populate=Content.TextAndImageContent.MobileImage&populate=Content.TextAndImageContent.DesktopImage&populate=Content.AccordionItem.Content&populate=Content.SelectForm.FormType.InputField&populate=Content.SelectForm.FormType.DesktopImage&populate=Content.SelectForm.FormType.Options.OptionIcon&populate=Content.SelectForm.FormType.MobileImage&populate=Content.SelectForm.pageRedirect&populate=Content.testimonials&populate=Content.testimonials.DesktopImage&populate=Content.testimonials.MobileImage&populate=Content.testimonials.Video&populate=seo.metaSocial.image&populate=seo.metaImage&populate=Content.MainImage&populate=Content.ImageItems.Icon&populate=Content.ImageItems.image&filters[slug][$eq]=${i}`)),o=await o,s(),o),c.data.length===0){b.value=!0;const ee=([o,s]=de(()=>y(f.substring(1))),o=await o,s(),o);ee&&ee.url?p.replace(ee.url):p.push("/404")}else{let ee=(C=(x=(M=(g=c.data[0].attributes)==null?void 0:g.parentPage)==null?void 0:M.data)==null?void 0:x.attributes)==null?void 0:C.slug,xe=(_=c.data[0].attributes)==null?void 0:_.slug,ke=ee?`/${ee}/${xe}`:`/${xe}`,ve=!1;if(xe!="home"&&f!==ke&&(ve=!0),ve){const te=([o,s]=de(()=>y(f.substring(1))),o=await o,s(),o);te&&te.url?p.replace(te.url):p.push("/404")}else{w=c.data[0].attributes.Content,r=([o,s]=de(()=>d("global-setting?populate=*")),o=await o,s(),o);const te=(A=(k=c.data[0].attributes)==null?void 0:k.seo)==null?void 0:A.metaSocial;let re=((H=(U=c.data[0].attributes)==null?void 0:U.seo)==null?void 0:H.metaTitle)||`${(E=c.data[0].attributes)==null?void 0:E.PageTitle} | ${r.data.attributes.defaultMetaTitle}`,be=(Q=(Y=c.data[0].attributes)==null?void 0:Y.seo)==null?void 0:Q.metaDescription,we=((I=($=(v=(T=(R=c.data[0].attributes)==null?void 0:R.seo)==null?void 0:T.metaImage)==null?void 0:v.data)==null?void 0:$.attributes)==null?void 0:I.formats.xl.url)||"",fe=re,q=be,pe=we,Te=be,$e=re,Ie=we,gt=r.data.attributes.TwitterName,ft="summary_large_image",it=r.data.attributes.SiteURL,ye=(O=(B=(z=(j=c.data[0].attributes)==null?void 0:j.parentPage)==null?void 0:z.data)==null?void 0:B.attributes)==null?void 0:O.slug,ue=(P=c.data[0].attributes)==null?void 0:P.slug,ne=((K=(W=c.data[0].attributes)==null?void 0:W.seo)==null?void 0:K.canonicalURL)||"",pt=r.data.attributes.FavIcon.data.attributes.url,ht=((ge=(ie=c.data[0].attributes)==null?void 0:ie.seo)==null?void 0:ge.structuredData)||"",xt=((he=(ae=c.data[0].attributes)==null?void 0:ae.seo)==null?void 0:he.metaRobots)||"index";if(ue==="home"?ne=it:!ye&&ue?ne||(ne=r.data.attributes.SiteURL+u.path):ye&&ue?(ne||(ne=r.data.attributes.SiteURL+`/${ye}/${ue}`),(Ee=(Ne=c.data[0].attributes)==null?void 0:Ne.seo)!=null&&Ee.metaTitle||(re=`${(qe=c.data[0].attributes)==null?void 0:qe.PageTitle} | ${(Je=(ze=(Qe=(He=c.data[0].attributes)==null?void 0:He.parentPage)==null?void 0:Qe.data)==null?void 0:ze.attributes)==null?void 0:Je.PageTitle} | ${r.data.attributes.defaultMetaTitle}`)):ue&&!ye&&(ne||(ne=r.data.attributes.SiteURL+`/${ue}`),(Ye=(We=c.data[0].attributes)==null?void 0:We.seo)!=null&&Ye.metaTitle||(re=`${(Ke=c.data[0].attributes)==null?void 0:Ke.PageTitle} | ${r.data.attributes.defaultMetaTitle}`)),te){const Ce=te.find(De=>De.socialNetwork==="Facebook"),Se=te.find(De=>De.socialNetwork==="Twitter");Ce&&(q=Ce.description||q,fe=Ce.title||fe,pe=((Ze=(Xe=(Ge=Ce.image)==null?void 0:Ge.data)==null?void 0:Xe.attributes)==null?void 0:Ze.formats.xl.url)||pe),Se&&(Te=Se.description||Te,$e=Se.title||$e,Ie=((nt=(tt=(et=Se.image)==null?void 0:et.data)==null?void 0:tt.attributes)==null?void 0:nt.formats.xl.url)||Ie)}$t({title:re,meta:[{name:"description",content:(lt=(ot=c.data[0].attributes)==null?void 0:ot.seo)==null?void 0:lt.metaDescription},{name:"keywords",content:(st=(at=c.data[0].attributes)==null?void 0:at.seo)==null?void 0:st.keywords},{name:"robots",content:xt},{name:"og:description",ogDescription:q},{name:"og:title",ogTitle:fe},{name:"og:image",ogImage:pe},{name:"og:url",canonicalURL:ne},{name:"twitter:card",twitterCard:ft},{name:"twitter:creator",twitterCreator:gt},{name:"twitter:title",twitterTitle:$e},{name:"twitter:image",twitterImage:Ie},{name:"twitter:site",siteURL:it},{name:"twitter:description",twitterDescription:Te}],link:[{rel:"canonical",href:ne},{rel:"icon",type:"image/x-icon",href:pt}],script:[{type:"application/ld+json",innerHTML:ht}]})}}}catch(ee){console.error("Error in page setup:",ee.message),p.push("/404")}return(ee,xe)=>{const ke=Qt,ve=Xt,te=un,re=vn,be=jo,we=Hl,fe=Zl;return t(),a("div",ea,[l(b)?(t(),a("div",ta,[(t(),a("svg",na,la))])):(t(!0),a(L,{key:1},V(l(w),(q,pe)=>(t(),a(L,{key:pe},[q.__component=="components.hero-banner"?(t(),S(ke,{key:0,content:q},null,8,["content"])):m("",!0),q.__component=="components.text-and-image"?(t(),S(ve,{key:1,content:q},null,8,["content"])):m("",!0),q.__component=="components.cards"?(t(),S(te,{key:2,content:q},null,8,["content"])):m("",!0),q.__component=="components.accordion"?(t(),S(re,{key:3,content:q},null,8,["content"])):m("",!0),q.__component=="components.form"?(t(),S(be,{key:4,content:q,pageID:l(c).data[0].id},null,8,["content","pageID"])):m("",!0),q.__component=="components.testimonials"?(t(),S(we,{key:5,content:q},null,8,["content"])):m("",!0),q.__component=="components.explore-image"?(t(),S(fe,{key:6,content:q},null,8,["content"])):m("",!0)],64))),128))])}}});
11export{ma as _};

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.