1import{_ as B}from"./psUymyLT.js";import{_ as Z}from"./DC9860xx.js";import{P as H,_ as R}from"./DkuupUOi.js";import{_ as z}from"./CKim4ED_.js";import{d as F,a as D,b as L,_ as j,c as T}from"./CbYW5QLT.js";import{d as M,V as l,F as i,P as g,a6 as C,W as b,ag as N,a7 as t,a9 as $,u as d,Y as r,$ as e,a8 as S,aa as k,j as A,c as w}from"./D3r4emCe.js";import{_ as U}from"./B0fvaOFH.js";import{u as Y}from"./JyNmdpiy.js";import"./BHvtRdma.js";import"./_FruffaD.js";import"./B1SbgG-g.js";import"./XbqjQt8r.js";import"./qUzrK3nc.js";import"./Dfzla88M.js";const E={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 md:px-2 px-4 my-8"},G=M({__name:"Youtube",props:{reviews:{}},setup(u){return(v,m)=>(l(),i("div",E,[(l(!0),i(g,null,C(u.reviews,o=>(l(),b(F,{key:o.url,videoUrl:o.url,title:o.name,thumbnail:o.thumbnail},null,8,["videoUrl","title","thumbnail"]))),128))]))}}),I={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 md:gap-12 md:px-2 px-4 my-8"},P={class:"text-sm leading-relaxed mb-4 font-montserrat-medium"},O={class:"flex items-center space-x-3"},q=["src"],K={class:"flex items-center"},Q={class:"font-montserrat-medium text-sm"},W={class:"text-xs opacity-70"},X=M({__name:"Google",props:{reviews:{}},setup(u){const{getImageUrl:v}=Y();function m(o){const n=new Date,c=new Date(o),p=n.getTime()-c.getTime(),h=Math.floor(p/1e3),x=Math.floor(h/60),y=Math.floor(x/60),a=Math.floor(y/24),s=Math.floor(a/30),_=Math.floor(a/365);return _>0?`${_} year${_>1?"s":""} ago`:s>0?`${s} month${s>1?"s":""} ago`:a>0?`${a} day${a>1?"s":""} ago`:y>0?`${y} hour${y>1?"s":""} ago`:x>0?`${x} minute${x>1?"s":""} ago`:"just now"}return(o,n)=>(l(),i("div",I,[(l(!0),i(g,null,C(u.reviews,(c,p)=>(l(),i("div",{key:p,class:N([["px-6 py-10 flex flex-col justify-between h-full transition-colors",p%2===0?"bg-sky-50 text-black":"bg-black text-white"],"max-w-md space-y-2"])},[t("div",null,[n[0]||(n[0]=t("img",{src:U,alt:"quotes",class:"w-10 h-10 mb-4"},null,-1)),t("p",P,$(c.description),1)]),t("div",O,[t("img",{src:d(v)(c.media)||"https://randomuser.me/api/portraits/men/3.jpg",alt:"avatar",class:"w-10 h-10 rounded-full object-cover",loading:"lazy"},null,8,q),t("div",null,[t("div",K,[(l(!0),i(g,null,C(c.rating,h=>(l(),i("span",{key:h,class:"text-green-500 text-lg leading-none"},"â
"))),128))]),t("p",Q,$(c.name),1),t("p",W,$(m(c.testimonial_time)),1)])])],2))),128))]))}}),J={class:"max-w-7xl mx-auto flex py-8 flex-col space-y-5"},tt={class:"flex flex-wrap justify-center items-center gap-4 px-10"},et=M({__name:"Testimonials",props:{testimonials:{}},setup(u){const v=A("youtube"),m=u,o=[{value:"local",label:"Local Clients"},{value:"diaspora",label:"Diaspora Clients"}],n=w(()=>o.filter(a=>m.testimonials?.some(s=>s.segment===a.value))),c=A(),p=w(()=>n.value.find(a=>a.value===c.value)?.value??n.value[0]?.value),h=w(()=>(m.testimonials??[]).filter(a=>a.segment===p.value)),x=w(()=>h.value.filter(a=>a.type==="youtube_review")),y=w(()=>h.value.filter(a=>a.type==="google_review"));return(a,s)=>{const _=Z,V=R;return l(),i("section",J,[n.value.length>1?(l(),b(d(j),{key:0,"model-value":p.value,class:"mx-auto","onUpdate:modelValue":s[0]||(s[0]=f=>c.value=String(f))},{default:r(()=>[e(d(D),{"aria-label":"Client segment",class:"h-auto rounded-full border border-primary bg-transparent p-1"},{default:r(()=>[(l(!0),i(g,null,C(n.value,f=>(l(),b(d(L),{key:f.value,value:f.value,class:"rounded-full px-5 py-2 text-sm font-montserrat-medium text-primary shadow-none data-[state=active]:bg-primary data-[state=active]:text-white data-[state=active]:shadow-none"},{default:r(()=>[S($(f.label),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["model-value"])):k("",!0),e(d(j),{"default-value":"youtube",class:"bg-transparent mx-auto","onUpdate:modelValue":s[1]||(s[1]=f=>v.value=f)},{default:r(()=>[e(d(D),{class:"bg-transparent flex justify-center space-x-4"},{default:r(()=>[e(d(L),{value:"youtube",class:"group rounded-none bg-transparent shadow-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none text-gray-600 data-[state=active]:text-primary px-4 py-2 transition-all"},{default:r(()=>[...s[2]||(s[2]=[t("div",{class:"flex space-x-1 items-center"},[t("div",null,[t("svg",{width:"20",height:"21",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"transition-all"},[t("rect",{y:"0.216553",width:"30",height:"30",rx:"15",class:"group-data-[state=active]:fill-[#0064AC] fill-gray-400"}),t("path",{opacity:"0.4",d:"M11.667 9.82751H15.667C16.766 9.82756 17.4098 10.0449 17.791 10.4261C18.1721 10.8074 18.3887 11.4513 18.3887 12.5502V17.8832C18.3887 18.9822 18.1722 19.6259 17.791 20.0072C17.4098 20.3884 16.766 20.6058 15.667 20.6058H11.667C10.6142 20.6058 9.9544 20.2426 9.5498 19.7572C9.13377 19.258 8.94434 18.5768 8.94434 17.8832V12.5502C8.94434 11.451 9.16171 10.8074 9.54297 10.4261C9.92423 10.0449 10.5678 9.82751 11.66
17 9.82751Z",class:"group-data-[state=active]:fill-white group-data-[state=active]:stroke-white fill-gray-100 stroke-gray-100","stroke-width":"0.888889"}),t("path",{d:"M14.6667 14.8031C15.3589 14.8031 15.92 14.2419 15.92 13.5497C15.92 12.8575 15.3589 12.2964 14.6667 12.2964C13.9745 12.2964 13.4133 12.8575 13.4133 13.5497C13.4133 14.2419 13.9745 14.8031 14.6667 14.8031Z",class:"group-data-[state=active]:fill-white fill-gray-200"}),t("path",{d:"M21.4334 11.33C21.1601 11.19 20.5867 11.03 19.8067 11.5767L18.8201 12.27C18.8267 12.3634 18.8334 12.45 18.8334 12.55V17.8834C18.8334 17.9834 18.8201 18.07 18.8201 18.1634L19.8067 18.8567C20.2201 19.15 20.5801 19.2434 20.8667 19.2434C21.1134 19.2434 21.3067 19.1767 21.4334 19.11C21.7067 18.97 22.1667 18.59 22.1667 17.6367V12.8034C22.1667 11.85 21.7067 11.47 21.4334 11.33Z",class:"group-data-[state=active]:fill-white fill-gray-200"})])]),t("div",{class:"font-montserrat-medium"},"Youtube Reviews")],-1)])]),_:1}),e(d(L),{value:"google",class:"group rounded-none bg-transparent shadow-none border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none text-gray-600 data-[state=active]:text-primary px-4 py-2 transition-all"},{default:r(()=>[...s[3]||(s[3]=[t("div",{class:"flex space-x-1 items-center"},[t("div",null,[t("svg",{width:"21",height:"21",viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"transition-all"},[t("rect",{x:"0.5",y:"0.216553",width:"30",height:"30",rx:"15",class:"group-data-[state=active]:fill-[#0064AC] fill-gray-400"}),t("path",{opacity:"0.4",d:"M20.7534 21.1765C20.1201 21.6431 19.2867 21.8831 18.2934 21.8831H12.7067C12.5467 21.8831 12.3867 21.8765 12.2334 21.8565L16.8334 17.2565L20.7534 21.1765Z",class:"group-data-[state=active]:fill-white fill-gray-100"}),t("path",{opacity:"0.4",d:"M22.1667 12.4234V18.0101C22.1667 19.0034 21.9267 19.8367 21.46 20.4701L17.54 16.5501L22.14 11.9501C22.16 12.1034 22.1667 12.2634 22.1667 12.4234Z",class:"group-data-[state=active]:fill-white fill-gray-100"}),t("path",{opacity:"0.4",d:"M17.5399 16.5499L21.4599 20.4699C21.2666 20.7499 21.0333 20.9833 20.7533 21.1766L16.8333 17.2566L12.2333 21.8566C11.8066 21.8299 11.4199 21.7433 11.0666 21.6099C9.63992 21.0899 8.83325 19.8233 8.83325 18.0099V12.4233C8.83325 9.99659 10.2799 8.54993 12.7066 8.54993H18.2933C20.1066 8.54993 21.3733 9.35659 21.8932 10.7833C22.0266 11.1366 22.1132 11.5233 22.1399 11.9499L17.5399 16.5499Z",class:"group-data-[state=active]:fill-white fill-gray-100"}),t("path",{d:"M17.54 16.5501L21.46 20.4701C21.2666 20.7501 21.0333 20.9835 20.7533 21.1768L16.8333 17.2568L12.2333 21.8568C11.8067 21.8301 11.42 21.7434 11.0667 21.6101L11.3266 21.3501L21.8933 10.7834C22.0266 11.1368 22.1133 11.5234 22.14 11.9501L17.54 16.5501Z",class:"group-data-[state=active]:fill-white fill-gray-200"}),t("path",{d:"M15.6599 12.5032C15.4065 11.4032 14.4332 10.9099 13.5799 10.9032C12.7265 10.9032 11.7532 11.3965 11.4999 12.4965C11.2199 13.7165 11.9665 14.7365 12.6399 15.3765C12.9065 15.6299 13.2399 15.7499 13.5799 15.7499C13.9199 15.7499 14.2532 15.6232 14.5199 15.3765C15.1932 14.7365 15.9399 13.7165 15.6599 12.5032ZM13.5999 13.5432C13.2332 13.5432 12.9332 13.2432 12.9332 12.8765C12.9332 12.5099 13.2265 12.2099 13.5999 12.2099H13.6065C13.9732 12.2099 14.2732 12.5099 14.2732 12.8765C14.2732 13.2432 13.9665 13.5432 13.5999 13.5432Z",class:"group-data-[state=active]:fill-white fill-gray-200"})])]),t("div",{class:"font-montserrat-medium"},"Google Reviews")],-1)])]),_:1})]),_:1}),e(d(T),{value:"youtube"},{default:r(()=>[e(G,{reviews:x.value},null,8,["reviews"])]),_:1}),e(d(T),{value:"google"},{default:r(()=>[e(X,{reviews:y.value},null,8,["reviews"])]),_:1})]),_:1}),t("div",tt,[v.value==="google"?(l(),b(V,{key:0,to:"https://www.google.com/maps/place/AMG+Realtors/@-1.2340647,36.8720535,17z/data=!4m8!3m7!1s0x182f15d40465c165:0x4910f82a3f049f7!8m2!3d-1.2340647!4d36.8720535!9m1!1b1!16s%2Fg%2F11h1hnjds6?entry=ttu&g_ep=EgoyMDI1MDcxNi4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer"},{default:r(()=>[e(_,{class:"w-full sm:w-auto text-center font-medium text-sm bg-white text-primary hover:bg-primary hover:text-white border border-primary rounded-2xl py-2 px-6"},{default:r(()=>[...s[4]||(s[4]=[t("div",{class:"flex items-center justify-center gap-2"},[t("svg",{class:"w-6 h-6",viewBox:"0 0 24 24",fill:"none"},[t("path",{d:"M9 10H5l3-6H4L1 10v4h8v-4zm12 0h-4l3-6h-4l-3 6v4h8v-4z",class:"fill-primary"})]),t("span",null,"Submit a Review")],-1)])]),_:1})]),_:1})):k("",!0),(a._.provides[H]||a.$route).path!=="/testimonials"?(l(),b(V,{key:1,to:"/testimonials"},{default:r(()=>[e(_,{class:"w-full sm:w-auto text-center font-medium text-sm bg-white text-primary hover:bg-primary hover:text-white border border-primary rounded-2xl py-2 px-6 flex items-center justify-center gap-2"},{default:r(()=>[...s[5]||(s[5]=[S(" View All Testimonials ",-1),t("span",{class:"h-6 w-6 bg-[#99C1DE] rounded-full flex justify-center items-center"},[t("img",{src:z,alt:"arrow right",class:"w-3 h-3"})],-1)])]),_:1})]),_:1})):k("",!0)])])}}}),at={key:0},st={class:"max-w-4xl mx-auto px-4 md:px-6 lg:px-8 space-y-6"},lt={class:"flex items-center space-x-4 mb-4"},ot={class:"space-y-2"},_t=M({__name:"TestimonialsDisplaySection",props:{section:{},isLoading:{type:Boolean}},setup(u){return(v,m)=>{const o=B;return u.section.component==="OurTestimonialsSection"?(l(),i("section",at,[u.isLoading?(l(),i(g,{key:0},[e(o,{class:"h-16 md:h-20 w-1/2 mx-auto mb-8 mt-8"}),t("div",st,[(l(),i(g,null,C(3,n=>t("div",{key:n,class:"bg-white p-6 rounded-lg shadow-sm"},[t("div",lt,[e(o,{class:"w-12 h-12 rounded-full"}),t("div",ot,[e(o,{class:"h-4 w-32"}),e(o,{class:"h-3 w-24"})])]),e(o,{class:"h-4 w-full mb-2"}),e(o,{class:"h-4 w-full mb-2"}),e(o,{class:"h-4 w-3/4"})])),64))])],64)):(l(),i(g,{key:1},[m[0]||(m[0]=t("h2",{class:"text-center font-montserrat-bold text-primary text-[2.5rem] md:text-[3.5rem] -tracking-[3px] mt-8"},[S(" Our "),t("span",{class:"text-secondary"},"Testimonials")],-1)),t("div",null,[e(et,{testimonials:u.section?.data?.testimonials||[]},null,8,["testimonials"])])],64))])):k("",!0)}}});
1export{_t 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.