PageSourceSearch

https://caddickconstruction.co.uk/_nuxt/DWOqe6RM.js

js caddickconstruction.co.uk collected 2026-10-06 00:00:10 UTC 18,183 bytes, 34 lines download raw bytes

1import{c as B,u as H,d as N}from"./B6eW4UHy.js";import{_ as j,b as o,o as i,J as q,u as F,j as z,a,c as g,w as _,d,e as h,g as T,t as r,f as U,r as I,F as S,p as V,n as O,h as A,i as R}from"./BF26gRUz.js";import{_ as W}from"./B96agbY6.js";import{a as J,b as Y,I as G}from"./CIN1ZnM7.js";import{I as K,a as Q,u as X}from"./D-oXBm1f.js";const Z={name:"ModuleHeroMedia",props:{imageMobile:{type:Object,default(){return{}}},imageDesktop:{type:Object,default(){return{}}},videoMobile:{type:Object,default(){return{}}},videoDesktop:{type:Object,default(){return{}}},videoPosterData:{type:Object,default(){return{}}}},data(){return{breakpoint:1024,mq:null,videoSrc:"",videoMime:"",videoPoster:""}},mounted(){this.setVideoData(),this.mq=window.matchMedia(`(max-width: ${this.breakpoint-1}px)`),this.mq.addEventListener("change",this.setVideoData)},unmounted(){this.mq.removeEventListener("change",this.setVideoData)},methods:{setVideoData(){this.videoMobile.data&&this.videoDesktop.data&&(window.innerWidth<this.breakpoint?(this.videoSrc=this.videoMobile.data.attributes.url,this.videoMime=this.videoMobile.data.attributes.mime,this.videoPoster=this.videoPosterData.data?this.$img(`/strapi${this.videoPosterData.data.attributes.url}`,{width:375,format:this.$ipxFormat(this.videoPosterData.data.attributes.url)}):null):(this.videoSrc=this.videoDesktop.data.attributes.url,this.videoMime=this.videoDesktop.data.attributes.mime,this.videoPoster=this.videoPosterData.data?this.$img(`/strapi${this.videoPosterData.data.attributes.url}`,{width:1440,format:this.$ipxFormat(this.videoPosterData.data.attributes.url)}):null))}}},tt={class:"relative"},et=["src","type","poster","data-poster-assets"],at={key:1},it=["srcset"],st=["srcset"],lt=["srcset"],ot=["srcset"],dt=["src","alt"];function rt(e,s,t,b,n,l){var m,u;return i(),o("div",tt,[(m=t.videoDesktop)!=null&&m.data&&((u=t.videoMobile)!=null&&u.data)?(i(),o("video",{key:0,class:"w-full h-full max-h-[43.75rem] aspect-[2/1] object-cover",src:`${("useRuntimeConfig"in e?e.useRuntimeConfig:F(z))().public.adminUrl}${n.videoSrc}`,type:n.videoMime,width:"1920",height:"1080",poster:n.videoPoster||t.videoPosterData.data?e.$img(`/strapi${t.videoPosterData.data.attributes.url}`,{width:375,format:e.$ipxFormat(t.videoPosterData.data.attributes.url)}):null,"data-poster-assets":[t.videoPosterData.data?e.$img(`/strapi${t.videoPosterData.data.attributes.url}`,{width:375,format:e.$ipxFormat(t.videoPosterData.data.attributes.url)}):null,t.videoPosterData.data?e.$img(`/strapi${t.videoPosterData.data.attributes.url}`,{width:1440,format:e.$ipxFormat(t.videoPosterData.data.attributes.url)}):null],autoplay:"true",playsinline:"true",muted:"true",loop:"true"},null,8,et)):(i(),o("picture",at,[a("source",{srcset:`
2                    ${e.$img(`/strapi${t.imageMobile.data.attributes.url}`,{width:479,format:e.$ipxFormat(t.imageMobile.data.attributes.url)})} 1x,
3                    ${e.$img(`/strapi${t.imageMobile.data.attributes.url}`,{width:958,format:e.$ipxFormat(t.imageMobile.data.attributes.url)})} 2x
4                `,media:"(max-width: 479px)"},null,8,it),a("source",{srcset:`
5                    ${e.$img(`/strapi${t.imageMobile.data.attributes.url}`,{width:767,format:e.$ipxFormat(t.imageMobile.data.attributes.url)})} 1x,
6                    ${e.$img(`/strapi${t.imageMobile.data.attributes.url}`,{width:1534,format:e.$ipxFormat(t.imageMobile.data.attributes.url)})} 2x
7                `,media:"(max-width: 767px)"},null,8,st),a("source",{srcset:`
8                    ${e.$img(`/strapi${t.imageDesktop.data.attributes.url}`,{width:1279,format:e.$ipxFormat(t.imageDesktop.data.attributes.url)})} 1x,
9                    ${e.$img(`/strapi${t.imageDesktop.data.attributes.url}`,{width:2558,format:e.$ipxFormat(t.imageDesktop.data.attributes.url)})} 2x
10                `,media:"(max-width: 1279px)"},null,8,lt),a("source",{srcset:`
11                    ${e.$img(`/strapi${t.imageDesktop.data.attributes.url}`,{width:1920,format:e.$ipxFormat(t.imageDesktop.data.attributes.url)})} 1x,
12                    ${e.$img(`/strapi${t.imageDesktop.data.attributes.url}`,{width:3840,format:e.$ipxFormat(t.imageDesktop.data.attributes.url)})} 2x
13                `},null,8,ot),a("img",{class:"w-full h-full max-h-[43.75rem] object-cover aspect-[2/1]",src:e.$img(`/strapi${t.imageDesktop.data.attributes.url}`,{width:3840,format:e.$ipxFormat(t.imageDesktop.data.attributes.url)}),width:"1920",height:"1080",alt:t.imageDesktop.data.attributes.alternativeText||"",loading:"eager"},null,8,dt)])),s[0]||(s[0]=q('<div class="absolute inset-0 w-[calc(100%_+_0.125rem)] h-[calc(100%_+_0.125rem)] -translate-y-
13px -translate-x-px"><div class="h-full large:hidden"><svg class="w-[calc((32_/_375)_*_100%)] h-auto" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" fill="black"></rect></svg><svg class="absolute bottom-0 right-0 w-[calc((64_/_375)_*_100%)] h-auto" width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="22" y="22" width="42" height="42" fill="white"></rect><rect opacity="0.5" width="22" height="22" fill="white"></rect></svg></div><div class="largeMax:hidden h-full"><svg class="w-[calc((124_/_1440)_*_100%)] max-w-[10.375rem] h-auto" width="124" height="124" viewBox="0 0 124 124" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="0" width="124" height="124" fill="black"></rect></svg><svg class="absolute bottom-0 right-0 w-[calc((240_/_1440)_*_100%)] max-w-[20rem] h-auto" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240" fill="none"><rect x="80" y="80" width="160" height="160" fill="white"></rect><rect opacity="0.5" width="80" height="80" fill="white"></rect></svg></div></div>',1))])}const E=j(Z,[["render",rt]]),ut={name:"ModuleHero",props:{moduleData:{type:Object,default(){return{}}}},computed:{ctaUrl(){var e,s,t;return(s=(e=this.moduleData.cta_button)==null?void 0:e.page_link)!=null&&s.data?`/${this.moduleData.cta_button.page_link.data.attributes.slug}`:(t=this.moduleData.cta_button)!=null&&t.link?this.moduleData.cta_button.link:this.moduleData.page_link_slug?this.moduleData.page_link_slug:null},ctaText(){var e;return(e=this.moduleData.cta_button)!=null&&e.text?this.moduleData.cta_button.text:this.moduleData.page_link_text?this.moduleData.page_link_text:null},ctaPseudoStateText(){var e;return(e=this.moduleData.cta_button)!=null&&e.pseudo_state_text?this.moduleData.cta_button.pseudo_state_text:null}}},nt={class:"container"},mt={class:"wrap mb-[2.4375rem] medium:mb-[3.375rem]"},ct={class:"relative medium:max-w-[43.75rem]"},ht={key:0,class:"mb-4 medium:shrink-0 medium:mb-8"},_t={key:1,class:"title-x-large font-bold text-balance"},gt={key:2,class:"mt-6 medium:mt-[2.6875rem]"};function bt(e,s,t,b,n,l){const m=B,u=U,f=E;return i(),g(I(t.moduleData.heading?"section":"div"),{class:"pt-[5.6875rem] bg-brand-secondary text-brand-primary overflow-hidden large:pt-[5.875rem]"},{default:_(()=>{var v,c,w,x,D,k,p,y,$,M;return[a("div",nt,[a("div",mt,[a("div",ct,[(v=t.moduleData)!=null&&v.heading?(i(),o("h1",ht,[h(m,{class:"bg-ui-colour-1"},{default:_(()=>[T(r(t.moduleData.heading),1)]),_:1})])):d("",!0),(c=t.moduleData)!=null&&c.title?(i(),o("p",_t,r(t.moduleData.title),1)):d("",!0),l.ctaUrl&&l.ctaText?(i(),o("div",gt,[h(u,{class:"button--primary button--primary-small",href:l.ctaUrl,"pseudo-state-text":l.ctaPseudoStateText},{default:_(()=>[T(r(l.ctaText),1)]),_:1},8,["href","pseudo-state-text"])])):d("",!0)])])]),(x=(w=t.moduleData)==null?void 0:w.video_desktop)!=null&&x.data&&((k=(D=t.moduleData)==null?void 0:D.video_mobile)!=null&&k.data)||(y=(p=t.moduleData)==null?void 0:p.image_mobile)!=null&&y.data&&((M=($=t.moduleData)==null?void 0:$.image_desktop)!=null&&M.data)?(i(),g(f,{key:0,"image-mobile":t.moduleData.image_mobile,"image-desktop":t.moduleData.image_desktop,"video-mobile":t.moduleData.video_mobile,"video-desktop":t.moduleData.video_desktop,"video-poster-data":t.moduleData.video_poster},null,8,["image-mobile","image-desktop","video-mobile","video-desktop","video-poster-data"])):d("",!0)]}),_:1})}const oe=j(ut,[["render",bt]]),ft={name:"ModuleHeroEvent",props:{moduleData:{type:Object,default(){return{}}}},data(){return{contentActive:!1,intersectionObserver:null,mobileCtaHidden:!1,intersectionStates:{}}},computed:{meta(){return[{label:"Date",value:this.moduleData.event_meta_date},{label:"Time",value:this.moduleData.event_meta_time},{label:"Venue",value:this.moduleData.event_meta_venue},{label:"Attendance",value:this.moduleData.event_meta_attendance}]},ctaUrl(){var e,s,t;return(s=(e=this.moduleData.cta_button)==null?void 0:e.page_link)!=null&&s.data?`/${this.moduleData.cta_button.page_link.data.attributes.slug}`:(t=this.moduleData.cta_button)!=null&&t.link?this.moduleData.cta_button.link:this.moduleData.page_link_slug?this.moduleData.page_link_slug:null},ctaText(){var e;return(e=this.moduleData.cta_button)!=null&&e.text?this.moduleData.cta_button.text:this.moduleData.page_link_text?this.moduleData.page_link_text:null},ctaPseudoStateText(){var e;return(e=this.moduleData.cta_button)!=null&&e.pseudo_state_text?this.moduleData.cta_button.pseudo_state_text:null}},mounted(){this.intersectionObserver=new IntersectionObserver(s=>
13{s.forEach(t=>{const b=`#${t.target.id}`;this.intersectionStates[b]=t.isIntersecting}),this.mobileCtaHidden=Object.values(this.intersectionStates).some(t=>t)});let e=[`hero-event-${this.moduleData.id}-content`,"footer"];if(this.moduleData.hide_sticky_cta_for_modules){const s=this.moduleData.hide_sticky_cta_for_modules.split(",");e.push(s),e=e.flat()}e.length&&e.forEach(s=>{const t=document.getElementById(s);if(t){const b=`#${s.id}`;this.intersectionStates[b]=!1,this.intersectionObserver.observe(t)}})},unmounted(){var e;(e=this.intersectionObserver)==null||e.disconnect(),this.intersectionObserver=null}},vt=["id"],wt={class:"wrap mb-[2.4375rem] medium:mb-[3.375rem]"},xt={class:"relative"},Dt={key:0,class:"mb-4 medium:shrink-0 medium:mb-8 medium:max-w-[47.5rem]"},kt={class:"large:flex large:justify-between large:gap-x-20"},pt={class:"medium:max-w-[47.5rem]"},yt={key:0,class:"title-x-large font-bold"},$t={key:1,class:"medium:max-w-[47.5rem] largeMax:hidden large:mt-[2.6875rem]"},Mt={key:0,class:"largeMax:mt-8 large:shrink-0 large:w-full large:max-w-[26.8125rem]"},Pt={class:"flex flex-col gap-y-[0.875rem]"},Tt={key:0,class:"flex justify-between gap-x-4 pb-[0.875rem] border-b border-[#424242] body-small last-of-type:pb-0 last-of-type:border-b-0"},jt={class:"shrink-0 font-bold"},Ft={class:"text-right whitespace-break-spaces"},St={key:1,class:"mt-8 medium:max-w-[47.5rem] large:hidden"},Ot=["inert"],It={class:"container"},Ct={class:"wrap"},Lt={class:"text-xl font-bold"},Ht={class:"shrink-0 flex justify-center rounded-full w-[2.6875rem] h-[2.6875rem] text-text-dark bg-brand-highlight"},Bt={class:"overflow-hidden"},Ut={class:"relative flex justify-center items-center w-4 h-full transform-gpu transition-transform duration-300 ease-out group-hover:translate-x-full group-focus:translate-x-full"};function Vt(e,s,t,b,n,l){const m=B,u=U,f=R,v=A,c=E;return i(),g(I(t.moduleData.heading?"section":"div"),{class:"pt-[5.6875rem] bg-brand-secondary text-brand-primary overflow-hidden large:pt-[5.875rem]"},{default:_(()=>{var w,x,D,k,p,y,$,M,C,L;return[a("div",{class:"container",id:`hero-event-${t.moduleData.id}-content`},[a("div",wt,[a("div",xt,[(w=t.moduleData)!=null&&w.heading?(i(),o("p",Dt,[h(m,{class:"bg-ui-colour-1"},{default:_(()=>[T(r(t.moduleData.heading),1)]),_:1})])):d("",!0),a("div",kt,[a("div",pt,[(x=t.moduleData)!=null&&x.title?(i(),o("h1",yt,r(t.moduleData.title),1)):d("",!0),l.ctaUrl&&l.ctaText?(i(),o("div",$t,[h(u,{class:"button--primary button--primary-small",href:l.ctaUrl,"pseudo-state-text":l.ctaPseudoStateText},{default:_(()=>[T(r(l.ctaText),1)]),_:1},8,["href","pseudo-state-text"])])):d("",!0)]),l.meta.some(P=>P.value!==null)?(i(),o("div",Mt,[a("dl",Pt,[(i(!0),o(S,null,V(l.meta,P=>(i(),o(S,null,[P.value?(i(),o("div",Tt,[a("dt",jt,r(P.label),1),a("dd",Ft,r(P.value),1)])):d("",!0)],64))),256))])])):d("",!0)]),l.ctaUrl&&l.ctaText?(i(),o("div",St,[h(u,{class:"button--primary button--primary-small",href:l.ctaUrl,"pseudo-state-text":l.ctaPseudoStateText},{default:_(()=>[T(r(l.ctaText),1)]),_:1},8,["href","pseudo-state-text"]),a("div",{class:O(["fixed bottom-0 left-0 z-20 w-full bg-background-two transition-transform duration-150 ease-out",{"translate-y-full":n.mobileCtaHidden}]),inert:n.mobileCtaHidden??null},[a("div",It,[a("div",Ct,[h(v,{to:l.ctaUrl,class:"flex justify-between gap-x-5 pt-[1.375rem] pb-4 group"},{default:_(()=>[a("span",Lt,r(l.ctaText),1),a("span",Ht,[a("span",Bt,[a("span",Ut,[h(f,{class:"absolute -translate-x-full w-full h-auto"}),h(f,{class:"w-full h-auto"})])])])]),_:1},8,["to"])])])],10,Ot)])):d("",!0)])])],8,vt),(k=(D=t.moduleData)==null?void 0:D.video_desktop)!=null&&k.data&&((y=(p=t.moduleData)==null?void 0:p.video_mobile)!=null&&y.data)||(M=($=t.moduleData)==null?void 0:$.image_mobile)!=null&&M.data&&((L=(C=t.moduleData)==null?void 0:C.image_desktop)!=null&&L.data)?(i(),g(c,{key:0,"image-mobile":t.moduleData.image_mobile,"image-desktop":t.moduleData.image_desktop,"video-mobile":t.moduleData.video_mobile,"video-desktop":t.moduleData.video_desktop,"video-poster-data":t.moduleData.video_poster,class:"relative"},null,8,["image-mobile","image-desktop","video-mobile","video-desktop","video-poster-data"])):d("",!0)]}),_:1})}const de=j(ft,[["render",Vt]]),Et={name:"ModuleContactHero",components:{IconFacebook:G,IconInstagram:Q,IconLinkedIn:Y,IconTwitter:J,IconYouTube:K},props:{moduleData:{type:Object,default(){return{}}}},computed:{socialMedia(){return X()}}},Nt={class:"wrap"},qt={class:"flex flex-col-reverse gap-y-10 medium:grid medium:grid-cols-12 medium:gap-x-5 medium:gap-y-0"},zt={key:0,class:"title-x-large"},At={key:2,class:"mt-12 large:mt-14"},Rt={class:"grid grid-cols-4 gap-y-6 xLarge:grid-cols-5 xLarge:gap-x-5 xLarge:gap-y-0"},Wt={class:"flex col-span-4 xLarge:col-span-3"},Jt={class:"flex col-span-4 xLarge:col-span-2"},Yt={key:3,class:"mt-12 large:mt-14"},Gt={class:"flex items-center"},Kt=["href"],Qt={class:"sr-only"},Xt={key:0,class:"col-span-4 medium:col-start-7 medium:col-span-6"},Zt=["srcset","src","alt"];function te(e,s,t,b,n,l){var f,v;const m=W,u=N;return i(),o("div",{class:O(["bg-background-one text-text-dark",("usePadding"in e?e.usePadding:F(
13H))(t.moduleData.padding)?("usePadding"in e?e.usePadding:F(H))(t.moduleData.padding):"py-12 large:py-24"])},[a("div",Nt,[a("div",qt,[a("div",{class:O(["col-span-4 medium:flex medium:flex-col medium:justify-center medium:text-lg",(f=t.moduleData.image)!=null&&f.data?"medium:col-span-5":"medium:col-span-9 xLarge:col-span-7"])},[t.moduleData.title?(i(),o("h1",zt,r(t.moduleData.title),1)):d("",!0),t.moduleData.text?(i(),g(m,{key:1,class:"mt-4 large:mt-6",data:{html:t.moduleData.text}},null,8,["data"])):d("",!0),s[2]||(s[2]=a("div",{class:"mt-6"},[a("a",{href:"#contact-form",class:"button"}," Send us a message ")],-1)),t.moduleData.email||t.moduleData.telephone?(i(),o("div",At,[s[0]||(s[0]=a("h2",{class:"mb-4 font-bold"}," Speak to us ",-1)),a("div",Rt,[a("div",Wt,[t.moduleData.email?(i(),g(u,{key:0,icon:"Mail",url:`mailto:${t.moduleData.email}`,text:t.moduleData.email,"text-for-screen-reader":"Email"},null,8,["url","text"])):d("",!0)]),a("div",Jt,[t.moduleData.telephone?(i(),g(u,{key:0,icon:"Telephone",url:`tel:${t.moduleData.telephone}`,text:t.moduleData.telephone,"text-for-screen-reader":"Telephone"},null,8,["url","text"])):d("",!0)])])])):d("",!0),l.socialMedia?(i(),o("div",Yt,[s[1]||(s[1]=a("h2",{class:"mb-4 font-bold"}," Find us on social ",-1)),a("ul",Gt,[(i(!0),o(S,null,V(l.socialMedia,(c,w)=>(i(),o("li",{key:w,class:"mr-6 last:mr-0"},[a("a",{class:"group",href:c.url,target:"_blank"},[a("span",Qt,"Find us on "+r(c.label),1),(i(),g(I(`Icon${c.label}`),{class:"fill-current"}))],8,Kt)]))),128))])])):d("",!0)],2),(v=t.moduleData.image)!=null&&v.data?(i(),o("div",Xt,[a("img",{class:"w-full aspect-square object-contain",srcset:`${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:397,format:"webp"})} 397w,
14                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:794,format:"webp"})} 794w,
15
16                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:636,format:"webp"})} 636w,
17                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:1272,format:"webp"})} 1272w,
18
19                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:472,format:"webp"})} 472w,
20                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:944,format:"webp"})} 944w,
21
22                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:567,format:"webp"})} 567w,
23                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:1134,format:"webp"})} 1134w,
24
25                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:640,format:"webp"})} 640w,
26                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:1280,format:"webp"})} 1280w,
27
28                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:857,format:"webp"})} 857w,
29                                  ${e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:1714,format:"webp"})} 1714w`,sizes:`(max-width: 479px) 397px,
30                               (max-width: 767px) 636px,
31                               (max-width: 1023px) 472px,
32                               (max-width: 1279px) 567px,
33                               (max-width: 1439px) 640px,
34                               857px`,src:e.$img(`/strapi${t.moduleData.image.data.attributes.url}`,{width:1714,format:"webp"}),width:"311",height:"311",alt:t.moduleData.image.data.attributes.alternativeText||"",loading:"lazy"},null,8,Zt)])):d("",!0)])])],2)}const re=j(Et,[["render",te]]);export{oe as _,de as a,re as b};

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.