import G from"./BrcSGC9q.js";import{j as M,c as u,o as s,w,e as _,t as I,d as P,r as S,s as c,a2 as q,a as r,b as J,f as l,u as t,F as h,A as x,z as K,k as O,q as U}from"./m2W8DxR4.js";import{_ as W,a as X}from"./CJl6yHPT.js";import{_ as Y}from"./CUZc3WDI.js";import{_ as Z,a as tt}from"./CEyI8lcf.js";import{_ as ot}from"./D4cd7EFQ.js";import et from"./Ce_cQdpG.js";import nt from"./D_Id-0YL.js";import{u as st,b as it,a as rt}from"./ComZM_b-.js";import{u as at}from"./BmY1sHVs.js";import{u as ct}from"./B2GjZQ9_.js";import"./CbxdrCRW.js";import"./DT-hKSom.js";import"./_K6KS46d.js";import"./CYT-4scj.js";import"./CTby_rp-.js";import"./C8p6Bfm2.js";import"./0eED25Of.js";import"./ByXNX2C_.js";import"./B5cKPMxT.js";import"./DGuBWS9S.js";import"./BG3x8QMr.js";import"./56PacuBL.js";import"./f4OvDAmT.js";import"./DaqkdMVO.js";import"./DN4yyKL7.js";import"./C23I9XrY.js";import"./b1l8QPBl.js";import"./C9CsCbrm.js";import"./CwSASBd3.js";import"./BZWJQvfz.js";import"./qBiG9vJx.js";import"./COA9s1yS.js";import"./DylPTGxV.js";import"./DiGk5lvr.js";import"./BNOTwGsJ.js";import"./B6MxMaFH.js";import"./By7YY3Y-.js";import"./Wxbikq7x.js";import"./BXVhohEk.js";import"./ukITAmIo.js";import"./CtM3ip2k.js";import"./BHFrVWfd.js";const lt={};function mt(p,n){const d=G;return s(),u(d,{pages:[{name:p.$t("testimonials")}],"video-url":"/videos/testimonials-hero.mp4"},{title:w(()=>[_("h1",null,I(p.$t("testimonailsHero.title")),1)]),_:1},8,["pages"])}const ut=M(lt,[["render",mt]]),_t={id:"testimonials-section",class:"bg-gradient-odd py-section"},pt={class:"container mx-auto px-4"},dt={key:0,class:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3"},vt={key:1,class:"container mx-auto flex items-center justify-center"},ft={key:2,class:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3"},gt={key:3,class:"mt-8 flex items-center justify-center gap-2"},kt=["disabled"],yt=["disabled"],b=9,St=P({__name:"TestimonialSection",setup(p){const{state:n}=at(),{branches:d,isLoading:T}=ct(),{data:v}=st(),{data:f}=it(),{data:$}=rt(),a=S(1),g=c(()=>n.value.data?Math.ceil(n.value.data.length/b):1),B=c(()=>{if(!n.value.data)return[];const e=(a.value-1)*b;return n.value.data.slice(e,e+b)});function y(e){e>=1&&e<=g.value&&(a.value=e);const i=document.getElementById("testimonials-section");i==null||i.scrollIntoView({behavior:"smooth"})}const m=S(null),k=S({}),j=e=>{const i=String(e);k.value[i]=(k.value[i]||0)+1},V=e=>{m.value!==null&&m.value!==e&&j(m.value),m.value=e},N=e=>{m.value===e&&(m.value=null)};return(e,i)=>{const Q=W,z=Y,A=X,D=Z,E=ot,H=tt,L=et,R=q("SkeletonsContactSkeleton"),F=nt;return s(),r("section",_t,[_("div",pt,[t(n).status==="pending"?(s(),r("div",dt,[(s(),r(h,null,x(6,o=>l(Q,{key:o})),64))])):t(n).status==="error"||t(n).data.length===0?(s(),r("div",vt,[l(z)])):(s(),r("div",ft,[(s(!0),r(h,null,x(t(B),o=>(s(),u(A,{id:o.id,key:o.id,"full-name":o.full_name,"job-position":o.job_position,image:o.image,"audio-url":o.audio_url,"video-url":o.video_url,comment:o.comment,"video-reset-token":t(k)[String(o.id)]||0,"audio-reset-token":t(k)[String(o.id)]||0,onPlay:C=>V(o.id),onPause:C=>N(o.id)},null,8,["id","full-name","job-position","image","audio-url","video-url","comment","video-reset-token","audio-reset-token","onPlay","onPause"]))),128))])),t(g)>1?(s(),r("div",gt,[_("button",{class:"mx-2 cursor-pointer",disabled:t(a)===1,onClick:i[0]||(i[0]=o=>y(t(a)-1))},[l(D,{class:"h-5 w-5"})],8,kt),(s(!0),r(h,null,x(t(g),o=>(s(),u(E,{key:o,class:"cursor-pointer rounded px-3 py-1",variant:o===t(a)?"wsGradient":"link",size:"icon",onClick:C=>y(o)},{default:w(()=>[K(I(o),1)]),_:2},1032,["variant","onClick"]))),128)),_("button",{class:"mx-2 cursor-pointer",disabled:t(a)===t(g),onClick:i[1]||(i[1]=o=>y(t(a)+1))},[l(H,{class:"h-5 w-5"})],8,yt)])):J("",!0),l(L),_("div",null,[t(T)||!t(v)||!t(f)||!t($)?(s(),u(R,{key:0})):(s(),u(F,{key:1,"social-icons":t(v),branches:t(d),countries:t(f),services:t($),"form-title":e.$t("contactSection.title")},null,8,["social-icons","branches","countries","services","form-title"]))])])])}}}),mo=P({__name:"testimonials",setup(p){const{t:n}=O();return U({title:c(()=>n("testimonialsSeo.title")),description:c(()=>n("testimonialsSeo.description")),ogTitle:c(()=>n("testimonialsSeo.ogTitle")),ogDescription:c(()=>n("testimonialsSeo.ogDescription")),keywords:c(()=>n("testimonialsSeo.keywords"))}),(d,T)=>{const v=ut,f=St;return s(),r("main",null,[l(v),l(f)])}}});export{mo as default};
