import{_ as j}from"./client-only-CuDeK6DU.js";import{ref as c,mergeProps as A,unref as n,withCtx as k,createVNode as K,useSSRContext as H,defineAsyncComponent as a}from"vue";import{ssrRenderAttrs as h,ssrRenderAttr as f,ssrRenderComponent as s,ssrRenderStyle as B}from"vue/server-renderer";import{publicAssetsURL as $}from"#internal/nuxt/paths";import{k as I,b as C,u as E}from"../server.mjs";import{u as N}from"./seo-DYoMt0L4.js";import"hookable";import"ofetch";import"unctx";import"h3";import"unhead";import"@unhead/shared";import"vue-router";import"radix3";import"defu";import"klona";import"cookie-es";import"destr";import"ohash";import"@vue/devtools-api";import"pinia";import"axios";const O=$("/images/hero.webp"),P=$("/images/hero.png"),x={__name:"HomeSlider",__ssrInlineRender:!0,setup(e){const{$axios:l}=I();let r=c(""),m=c("");const{locale:u}=C(),p=c(!0),o=c(!1);return(i,t,_,y)=>{const g=j;t(`<div${h(A({class:"hero-section"},y))}><div class="slider">`),n(o)?t("<!---->"):t(`<picture class="hero-picture"><source${f("srcset",O)} type="image/webp"><img${f("src",P)} alt="Khalej Auto - Your destination for cars in Saudi Arabia" class="hero-placeholder" fetchpriority="high" width="1920" height="1080" decoding="sync"></picture>`),n(p)&&!n(o)?(t('<div class="loading-overlay">'),t(s(g,null,{fallback:k((S,d,w,v)=>{if(d)d(`<div class="loading-spinner-fallback"${v}></div>`);else return[K("div",{class:"loading-spinner-fallback"})]})},_)),t("</div>")):t("<!---->"),n(p)?t("<!---->"):(t(`<div class="slider-iframe-wrap" style="${B({opacity:n(o)?1:0,transition:"opacity 0.3s"})}">`),n(u)=="ar"?t(`<iframe${f("src",n(r))} title="Khalej Auto Slider Arabic" frameborder="0" scrolling="no" class="slider-iframe"></iframe>`):t(`<iframe${f("src",n(m))} title="Khalej Auto Slider English" frameborder="0" scrolling="no" class="slider-iframe"></iframe>`),t("</div>")),t("</div></div>")}}},b=x.setup;x.setup=(e,l)=>{const r=H();return(r.modules||(r.modules=new Set)).add("components/home/HomeSlider.vue"),b?b(e,l):void 0};const Y=a(()=>import("./HomeSearch-D5Jh-n9R.js").then(e=>e.default||e)),D=a(()=>import("./HomeBrands-BOYScYMD.js").then(e=>e.default||e)),F=a(()=>import("./HomeWhy-D5jDBU_s.js").then(e=>e.default||e)),U=a(()=>import("./HomeCars-le1cEom8.js").then(e=>e.default||e)),V=a(()=>import("./HomeOrder-D7P6F95S.js").then(e=>e.default||e)),W=a(()=>import("./HomeHow-_nTwv67L.js").then(e=>e.default||e)),q=a(()=>import("./HomeBanks-zhESHU2j.js").then(e=>e.default||e)),L={__name:"index",__ssrInlineRender:!0,setup(e){const{locale:l}=C();E();const r=c(!1),m=c(!1),{setPageSeo:u}=N();return u({title:l.value==="ar"?"الرئيسية - خليج أوتو":"Home - Khalej Auto",description:l.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:""}),(p,o,i,t)=>{const _=x,y=Y,g=D,S=F,d=U,w=V,v=W,R=q;o(`<div${h(A({style:{"min-height":"100vh"}},t))}>`),o(s(_,null,null,i)),o(s(y,null,null,i)),o(s(g,null,null,i)),n(r)?o(s(S,null,null,i)):o("<!---->"),n(r)?o(s(d,null,null,i)):o("<!---->"),n(m)?o(s(w,null,null,i)):o("<!---->"),n(m)?o(s(v,null,null,i)):o("<!---->"),n(m)?o(s(R,null,null,i)):o("<!---->"),o("</div>")}}},z=L.setup;L.setup=(e,l)=>{const r=H();return(r.modules||(r.modules=new Set)).add("pages/index.vue"),z?z(e,l):void 0};export{L as default};
