const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dsa_zLOG.js","./BbgInVw2.js","./9wDxnFtt.js","./pvhYMo2c.js","./swiper-vue.DJHdZmOr.css","./entry.CLj-94MR.css","./DoIUUBea.js","./BR8Fpz8e.js","./w0EzKRrU.js","./C_bSrNnR.js","./CC3u1PFd.js","./D2O4V8Gn.js","./gNXl1m7Z.js","./B-_5ofyy.js","./BupkU_mh.js","./qvRVwB86.js","./1Rgp7zwo.js","./9SRBxoil.js","./DqP1CrJV.js","./HomeBanks.zhUZ2nBR.css"])))=>i.map(i=>d[i]);
import{p as x,g as S,b as z,r as E,u as C,h as i}from"./9wDxnFtt.js";import{_ as V}from"./DoIUUBea.js";import{b as m,A as w,B as D,Y as r,Z as o,_ as v,a1 as n,u as t,G as f,a6 as b,aj as O,a0 as h,aq as _}from"./pvhYMo2c.js";import{u as P}from"./DqTv0isN.js";const T=x("/images/hero.webp"),R=x("/images/hero.png"),j=T,K={class:"hero-section"},N={class:"slider"},W={key:0,class:"hero-picture"},q={key:1,class:"loading-overlay"},Y=["src"],$=["src"],F={__name:"HomeSlider",setup(e){const{$axios:y}=S();let s=m(""),l=m("");const{locale:c}=z(),u=m(!0),p=m(!1),A=()=>{p.value=!0},g=async()=>{try{const a=await y.get("sliders");a.status==200&&(s.value=a.data.slide_ar,l.value=a.data.slide_ar,u.value=!1)}catch{u.value=!1}};return w(()=>{(()=>{typeof E<"u"?E(()=>g(),{timeout:1200}):setTimeout(()=>g(),300)})()}),(a,d)=>{const L=D("v-progress-circular"),k=V;return o(),r("div",K,[v("div",N,[t(p)?n("",!0):(o(),r("picture",W,d[0]||(d[0]=[v("source",{srcset:j,type:"image/webp"},null,-1),v("img",{src:R,alt:"Khalej Auto - Your destination for cars in Saudi Arabia",class:"hero-placeholder",fetchpriority:"high",width:"1920",height:"1080",decoding:"sync"},null,-1)]))),t(u)&&!t(p)?(o(),r("div",q,[f(k,null,{fallback:b(()=>d[1]||(d[1]=[v("div",{class:"loading-spinner-fallback"},null,-1)])),default:b(()=>[f(L,{indeterminate:"",size:50,color:"#00A0B4",width:5})]),_:1})])):n("",!0),t(u)?n("",!0):(o(),r("div",{key:2,class:"slider-iframe-wrap",style:O({opacity:t(p)?1:0,transition:"opacity 0.3s"})},[t(c)=="ar"?(o(),r("iframe",{key:0,src:t(s),title:"Khalej Auto Slider Arabic",frameborder:"0",scrolling:"no",onLoad:A,class:"slider-iframe"},null,40,Y)):(o(),r("iframe",{key:1,src:t(l),title:"Khalej Auto Slider English",frameborder:"0",scrolling:"no",onLoad:A,class:"slider-iframe"},null,40,$))],4))])])}}},G=_(()=>i(()=>import("./Dsa_zLOG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then(e=>e.default||e)),M=_(()=>i(()=>import("./w0EzKRrU.js"),__vite__mapDeps([8,9,10,2,3,4,5]),import.meta.url).then(e=>e.default||e)),U=_(()=>i(()=>import("./D2O4V8Gn.js"),__vite__mapDeps([11,10,2,3,4,5]),import.meta.url).then(e=>e.default||e)),Z=_(()=>i(()=>import("./gNXl1m7Z.js"),__vite__mapDeps([12,13,10,2,3,4,5,14,15]),import.meta.url).then(e=>e.default||e)),J=_(()=>i(()=>import("./1Rgp7zwo.js"),__vite__mapDeps([16,2,3,4,5,10]),import.meta.url).then(e=>e.default||e)),Q=_(()=>i(()=>import("./9SRBxoil.js"),__vite__mapDeps([17,2,3,4,5]),import.meta.url).then(e=>e.default||e)),X=_(()=>i(()=>import("./DqP1CrJV.js"),__vite__mapDeps([18,3,4,6,2,5,19]),import.meta.url).then(e=>e.default||e)),ee={style:{"min-height":"100vh"}},ne={__name:"index",setup(e){const{locale:y}=z();let s=C();const l=m(!1),c=m(!1),{setPageSeo:u}=P();return u({title:y.value==="ar"?"الرئيسية - خليج أوتو":"Home - Khalej Auto",description:y.value==="ar"?"خليج أوتو - وجهتك الأولى لشراء السيارات الجديدة والمستعملة في السعودية. تصفح أوسع مجموعة من السيارات بأفضل الأسعار والعروض الحصرية":"Khalej Auto - Your first destination for buying new and used cars in Saudi Arabia. Browse the widest collection of cars with the best prices and exclusive offers",path:""}),w(()=>{s.getBrands(),s.getWebsiteData(),requestAnimationFrame(()=>{l.value=!0,s.getBrands2(),s.getCars(),s.getChoose()}),setTimeout(()=>{c.value=!0,s.getBanks()},100)}),(p,A)=>{const g=F,a=G,d=M,L=U,k=Z,B=J,H=Q,I=X;return o(),r("div",ee,[f(g),f(a),f(d),t(l)?(o(),h(L,{key:0})):n("",!0),t(l)?(o(),h(k,{key:1})):n("",!0),t(c)?(o(),h(B,{key:2})):n("",!0),t(c)?(o(),h(H,{key:3})):n("",!0),t(c)?(o(),h(I,{key:4})):n("",!0)])}}};export{ne as default};
