import{u as B,f as h,l as C,o as n,c as l,a as e,t as b,m as i,b as u,w as _,F as g,r as w,d as y,p as F,_ as I,q as L,e as A}from"./C_yW9YRN.js";import{c as v}from"./CcDrlLcw.js";const E={class:"container grid grid-cols-1 lg:grid-cols-2 md:gap-8 lg:gap-12 overflow-hidden min-h-fit items-center"},N={"data-wow-duration":"1.3s","data-wow-delay":"0s",class:"alamiya_swiper my-5 animated wow jackInTheBox"},P={class:"my-5 text-4xl lg:text-5xl lg:leading-[3.7rem] text-text font-bold leading-[2.8rem] max-w-[450px]"},R={class:"mb-5 max-w-[450px] text-sm text-text-light"},V={key:0,class:"alamiya_swiper"},z={class:"my-4"},D={"data-wow-duration":"1.3s","data-wow-delay":"0s",class:"rounded-full border w-[100px] h-[100px] mb-3 flex justify-center items-center animated wow bounceIn"},M=["href"],S={class:"my-4"},T={"data-wow-duration":"1.3s","data-wow-delay":"0s",class:"rounded-full border w-[100px] h-[100px] mb-3 flex justify-center items-center animated wow bounceIn"},U=["href"],Q={__name:"HomePartners",setup(k){const o=L(),p=B(),f=h(null),x=h(null),c=h(null);function $(){$fetch("homePartners",{method:"GET",baseURL:o.public.baseURL,headers:{"Accept-Language":p.locale.value}}).then(a=>{f.value=a.data.partners_title,x.value=a.data.partners_description,c.value=j(a.data.partners,2)})}function j(a,m){const r=Math.max(a.length/m,1);let d=[];for(let s=0;s<m;s++)r*(s+1)<=a.length&&d.push(a.slice(r*s,r*(s+1)));return d}return C(()=>$()),(a,m)=>{const r=I,d=v.Slide,s=v.Carousel;return n(),l("div",E,[e("div",N,[e("h2",P,b(i(f)),1),e("p",R,b(i(x)),1)]),i(c)?(n(),l("div",V,[e("div",z,[u(s,{autoplay:1,"items-to-show":3,snapAlign:"center",transition:3e3,"wrap-around":!0,"pause-autoplay-on-hover":!0,dir:a.$i18n.locale=="ar"?"rtl":"ltr"},{default:_(()=>[(n(!0),l(g,null,w(i(c)[0],t=>(n(),y(d,{key:t.id},{default:_(()=>[e("div",D,[e("a",{href:t.link,target:"_blank",rel:"noopener noreferrer"},[u(r,{src:t.image,srcset:`${t.image} 480w, ${t.image} 1080w`,alt:t.alt_image,format:"webp",width:"100",height:"100",class:"w-[90px] h-auto rounded-full object-contain",loading:"lazy"},null,8,["src","srcset","alt"])],8,M)])]),_:2},1024))),128))]),_:1},8,["dir"])]),e("div",S,[u(s,{autoplay:1,"items-to-show":3,transition:3e3,"wrap-around":!0,snapAlign:"center","pause-autoplay-on-hover":!0,dir:a.$i18n.locale=="ar"?"ltr":"rtl"},{default:_(()=>[(n(!0),l(g,null,w(i(c)[1],t=>(n(),y(d,{key:t.id},{default:_(()=>[e("div",T,[e("a",{href:t.link,target:"_blank",rel:"noopener noreferrer"},[u(r,{src:t.image,srcset:`${t.image} 480w, ${t.image} 1080w`,alt:t.alt_image,format:"webp",width:"100",height:"100",class:"w-[90px] h-auto rounded-full object-contain",loading:"lazy"},null,8,["src","srcset","alt"])],8,U)])]),_:2},1024))),128))]),_:1},8,["dir"])])])):F("",!0)])}}},q={},G={class:"container mb-11 lg:mb-20"},H={class:"grid lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1 gap-3"};function J(k,o){return n(),l("div",G,[o[1]||(o[1]=e("div",{class:"rounded-3xl mb-2 skeleton w-[300px] h-16"},null,-1)),e("div",H,[(n(),l(g,null,w(3,p=>e("div",{class:"rounded-3xl pb-5 shadow p-5 space-y-3 border border-solid border-[#F5F5FC]",key:p},o[0]||(o[0]=[e("div",{class:"rounded-full mb-2 skeleton h-5 w-40"},null,-1),e("div",{class:"rounded-3xl skeleton h-8 w-48"},null,-1),e("div",{class:"rounded-3xl skeleton h-16 w-full"},null,-1)]))),64))])])}const W=A(q,[["render",J],["__scopeId","data-v-84a39dac"]]);export{Q as _,W as a};
