1import{_ as M,A as V}from"./BZbc1krt.js";import{_ as $}from"./ChN-vmhg.js";import{B as z,C as S,c as a,a as e,H as B,l as o,t as g,b as x,w as j,A as u,M as A,J as D,P,r as p,o as i}from"./BmMmGYsj.js";import{u as U}from"./DgVzarBX.js";import{u as E,a as H}from"./9NCGR5Z6.js";import"./DlAUqK2U.js";const N={key:0},G={class:"py-10 lg:py-20 text-white"},L={class:"max-w-7xl mx-auto px-5"},R={"data-aos":"zoom-out-up"},F={class:"text-[40px] lg:text-8xl font-space font-medium leading-tight"},I={class:"mt-4 lg:mt-8 block text-custom-green font-inter text-lg lg:text-3xl font-normal"},O={"data-aos":"fade-up","data-aos-duration":"1000",class:"my-10 lg:my-20 lg:pl-60 centerContent text-md lg:text-xl font-inter font-normal space-y-10 leading-normal"},T=["innerHTML"],J={key:0,"data-aos":"zoom-in-up",class:"fullwith"},W={class:"w-full relative"},q={class:"transition-all swiper centered-slide-carousel swiper-container relative"},K={class:"h-[500px]"},Q={class:"relative group h-full lg:h-[379px] w-full rounded-xl overflow-hidden"},X=["src"],Y=["src"],Z=["onClick"],ee={class:"relative w-full max-w-5xl px-0 bg-white rounded-lg"},te=["src"],ue={__name:"[slug]",setup(se){const v=P(),{formatDate:h}=U(),{sanitizeHtml:_}=H(),r=z().public.strapiMediaUrl,l=p(null),{get:y}=E(),d=p([]);S(async()=>{await w()});const w=async()=>{try{const s=await y(`articles?filters[slug]=${v.params.slug}&populate[cover]=true&populate[blocks][populate]=*`);l.value=s?.data[0]||null,d.value=s?.data[0]?.blocks?.filter(t=>t.Gallery&&Array.isArray(t.Gallery)).flatMap(t=>t.Gallery)||[]}catch(s){console.error("Error fetching homepage:",s)}},m=s=>{if(!s)return!1;if(s.mime&&s.mime.startsWith("video/"))return!0;const t=s.url||"";return/\.(mp4|mov|webm)$/i.test(t)},c=p({active:!1,imageUrl:""}),b=s=>{c.value={active:!0,imageUrl:s}},f=()=>{c.value={active:!1,imageUrl:""}};return(s,t)=>{const k=M,C=$;return l.value?(i(),a("div",N,[e("section",{class:"py-20 h-[400px] lg:h-[660px] font-inter relative bg-cover bg-center w-full",style:B({backgroundImage:`url('${o(r)}${l.value?.cover?.url||""}')`})},[...t[0]||(t[0]=[e("div",{class:"mx-auto px-5 relative z-20 h-full flex items-center justify-center"},null,-1)])],4),e("section",G,[e("div",L,[e("div",R,[e("h2",F,g(l.value?.title),1),e("span",I,g(o(h)(l.value?.createdAt)),1)]),e("div",O,[e("div",{class:"editor-content",innerHTML:o(_)(l.value?.description)},null,8,T)]),d.value.length?(i(),a("section",J,[e("div",W,[e("div",q,[e("div",K,[x(k,{slides:d.value,modules:[o(V)],"slides-per-view":3,"space-between":6,direction:"horizontal",loop:!0,autoplay:{delay:3e3,pauseOnMouseEnter:!0},freeMode:!0,breakpoints:{0:{slidesPerView:1},640:{slidesPerView:2},768:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:3}}},{default:j(({slide:n})=>[e("div",Q,[m(n)?(i(),a("video",{key:0,src:`${o(r)}${n.url}`,class:"w-full h-full object-cover",controls:"",playsinline:""},null,8,X)):(i(),a("img",{key:1,src:`${o(r)}${n.url}`,class:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",alt:"preview"},null,8,Y)),m(n)?u("",!0):(i(),a("div",{key:2,class:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-60 transition-opacity duration-300 cursor-pointer",onClick:oe=>b(o(r)+n.url)},[...t[1]||(t[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-8 w-8 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("polyline",{points:"9 3 3 3 3 9"}),e("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),e("polyline",{points:"15 3 21 3 21 9"}),e("line",{x1:"21",y1:"3",x2:"15",y2:"9"}),e("polyline",{points:"3 15 3 21 9 21"}),e("line",{x1:"3",y1:"21",x2:"9",y2:"15"}),e("polyline",{points:"21 15 21 21 15 21"}),e("line",{x1:"21",y1:"21",x2:"15",y2:"15"})],-1)])],8,Z))])]),_:1},8,["slides","modules"])])])])])):u("",!0),t[2]||(t[2]=A('<div class=""><h4 data-aos="fade-down" data-aos-easing="linear" data-aos-duration="1500" class="mb-10 lg:mb-20 text-custom-green text-4xl lg:text-8xl font-space font-medium leading-tight"> If youâd like to know more, please reach out: </h4><div class="space-y-10 grid grid-cols-1 lg:grid-cols-2"><div data-aos="fade-down-right"><h3 class="text-xl lg:text-4xl font-medium mb-2 font-space"> Start a conversation </h3><a href="mailto:[email protected]" class="underline font-inter text-base">[email protected]</a></div><div data-aos="fade-down-left"><h3 class="text-lg lg:text-4xl font-normal mb-2 font-space"> Call us </h3><div class="mb-6 font-inter text-base font-normal"><p class="font-medium">Rob Logan</p><p>Founder & CEO</p><a href="tel:+61419722151" class="underline text-sm">+61 419 722 151</a><br></div></div></div></div>',1))])]),x(C),c.value.active?(i(),a("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:D(f,["self"])},[e("div",ee,[e("button",{class:"absolute top-1 right-3 text-black text-3xl font-bold z-50 cursor-pointer",onClick:f}," Ã "),e("img",{src:c.value.imageUrl,alt:"zoomed image",class:"w-full max-h-[90vh] object-contain rounded-xl shadow-2xl"},null,8,te)])])):u("",!0)])):u("",!0)}}};export{ue as default};
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.