1import{d as N,e as F,s as x,_ as I}from"./DkuupUOi.js";import{_ as L}from"./DC9860xx.js";import{_ as R}from"./CKim4ED_.js";import{g as G}from"./_FruffaD.js";import{a as K,_ as v}from"./BHvtRdma.js";import{u as z}from"./BgpG62NO.js";import{_ as P}from"./gNd7nYws.js";import{u as T}from"./JyNmdpiy.js";import{d as U,o as W,F as c,$ as g,u as t,W as y,a7 as e,a9 as b,aa as _,P as C,a6 as Y,Y as $,j as p,V as l,a8 as Z,c as r}from"./D3r4emCe.js";const q={key:1},H={class:"bg-white"},J={class:"max-w-7xl mx-auto py-8 px-4"},O={class:"flex flex-col lg:flex-row items-center gap-12"},Q={class:"w-full lg:w-[40%] space-y-6"},X={class:"text-3xl md:text-4xl font-bold text-primary leading-tight uppercase"},tt={class:"text-lg text-gray-700 leading-relaxed"},et={key:0,class:"w-full"},at={key:0,class:"max-w-7xl mx-auto my-10"},st={class:"grid lg:grid-cols-4 md:grid-cols-3 grid-cols-1 gap-2"},ot={class:"flex justify-center mt-6"},ht=U({__name:"[slug]",setup(lt){const i=N().params.slug,{getImageUrl:f}=T();if(!(s=>typeof s=="string"&&/^[a-zA-Z0-9-_]+$/.test(s)&&s.length>0&&s.length<=200)(i))throw F({statusCode:400,statusMessage:"Award not found"});const{setCached:k,hasValidCache:A}=z(),u=p(!0),S=p(null),d=p(null);W(async()=>{u.value=!0;const s=`awards-details-page-${i}`;let o;if(!A(s))try{o=await $fetch(`${G().base_url}/api/awards/${i}`),k(s,o)}catch(n){return S.value=n,u.value=!1,n?.status===404||n?.statusCode===404||n?.response?.status===404?x({statusCode:404,statusMessage:"Award not found"}):x({statusCode:500,statusMessage:"Failed to load award"})}o&&(d.value=o),u.value=!1});const a=r(()=>d.value?.award),V=r(()=>d.value?.seoSetting),j=r(()=>d.value?.globalSettings),m=r(()=>a.value?.images?.[0]),h=r(()=>a.value?.images?.slice(1)||[]),w=r(()=>a.value?.paragraph?.[0]?.text||""),E=r(()=>({title:a.value?.title||"AMG Realtors",synopsis:a.value?.title,description:w.value||"View the latest awards and achievements from AMG Realtors Kenya.",featured_image:m.value,slug:i}));return(s,o)=>{const n=I,M=L;return l(),c(C,null,[g(K,{"page-type":"award","seo-settings":t(V),"global-settings":t(j),"page-data":t(E)},null,8,["seo-settings","global-settings","page-data"]),t(u)?(l(),y(P,{key:0,"hero-height":"h-96","content-paragraphs":2,"show-gallery":!0,"gallery-count":8})):t(a)?(l(),c("div",q,[e("section",H,[e("div",J,[e("div",O,[e("div",Q,[e("h1",X,b(t(a).title),1),e("p",tt,b(t(w)),1)]),t(m)?(l(),c("div",et,[g(v,{src:t(f)(t(m)),alt:t(a).title,"class-name":"w-full h-full lg:h-[500px] lg:object-cover object-contain"},null,8,["src","alt"])])):_("",!0)])])]),t(h).length>0?(l(),c("section",at,[e("div",st,[(l(!0),c(C,null,Y(t(h),(B,D)=>(l(),y(v,{key:D,src:t(f)(B),alt:t(a).title,"class-name":"w-full h-full object-cover"},null,8,["src","alt"]))),128))]),e("div",ot,[g(M,{class:"rounded-full","as-child":""},{default:$(()=>[g(n,{to:"/our-awards"},{default:$(()=>[...o[0]||(o[0]=[Z("All Awards ",-1),e("span",{class:"h-4 w-4 bg-[#99C1DE] rounded-full flex justify-center items-center ml-2 text-white"},[e("img",{src:R,alt:"arrow right",class:"w-2 h-2"})],-1)])]),_:1})]),_:1})])])):_("",!0)])):_("",!0)],64)}}});export{ht 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.