import{a as e,b as t,f as i,_ as r}from"./server.mjs";import{i as s}from"./loading-CegsFr7T.mjs";import{ref as o,watch as a,mergeProps as n,withCtx as l,createTextVNode as d,toDisplayString as m,unref as p,createVNode as f,useSSRContext as u}from"vue";import{ssrRenderAttrs as c,ssrRenderComponent as v,ssrInterpolate as h,ssrRenderList as g,ssrRenderAttr as x}from"vue/server-renderer";import{L as w}from"./offers-Coy3s0gY.mjs";import{G as $}from"./seo-DYoMt0L4.mjs";import"../_/nitro.mjs";import"node:http";import"node:https";import"nitropack/dist/runtime/plugin";import"packrup";import"node:fs";import"node:url";import"consola/core";import"node:path";import"unhead";import"@unhead/shared";import"vue-router";import"pinia";import"axios";const b={__name:"index",__ssrInlineRender:!0,setup(u){const b=e();let j=w(),y=o(j.isLoading);j.getOffers();let _=o([]),{locale:k}=t();const{setPageSeo:L}=$();return L({title:"ar"===k.value?"العروض - خليج أوتو":"Offers - Khalej Auto",description:"ar"===k.value?"عروض خليج أوتو الحصرية - اكتشف أفضل العروض والخصومات على السيارات الجديدة وخدمات التمويل المميزة":"Khalej Auto exclusive offers - Discover the best deals and discounts on new cars and special financing services",path:"/offers",type:"product",breadcrumbs:[{name:"ar"===k.value?"الرئيسية":"Home",url:"/"},{name:"ar"===k.value?"العروض":"Offers"}]}),a((()=>j.offers),(e=>{if(null==e?void 0:e.length){const t={"@context":"https://schema.org","@type":"ItemList",name:"ar"===k.value?"عروض خليج أوتو":"Khalej Auto Offers",numberOfItems:e.length,itemListElement:e.map(((e,t)=>({"@type":"ListItem",position:t+1,item:{"@type":"Offer",name:e.title,description:e.description,url:`https://khalejauto.sa/offers/${"ar"===k.value?e.slug_ar:e.slug_en}`,image:e.image||void 0,seller:{"@type":"Organization",name:"Khalej Auto"}}})))};i({script:[{key:"schema-offers-list",type:"application/ld+json",innerHTML:JSON.stringify(t)}]})}}),{immediate:!0}),a([()=>j.offers,j.isLoading],(([e,t])=>{_.value=e,y.value=t})),(e,t,i,o)=>{const a=r,u=s;t(`<div${c(n({style:{"min-height":"100vh"}},o))}><div class="container offers-page"><div class="text-page"><nav class="breadline" aria-label="Breadcrumb">`),t(v(a,{to:"/"},{default:l(((t,i,r,s)=>{if(!i)return[d(m(e.$t("home")),1)];i(`${h(e.$t("home"))}`)})),_:1},i)),t(`<svg class="arrowDir" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.99998 13.28L5.65331 8.9333C5.13998 8.41997 5.13998 7.57997 5.65331 7.06664L9.99998 2.71997" stroke="#A7B9D0" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-current="page">${h(e.$t("offers"))}</span></nav><div><h1 class="title">${h(e.$t("offers"))}</h1><svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" viewBox="0 0 50 3" fill="none"><rect x="11.9048" width="38.0952" height="3.00022" rx="1.50011" fill="#2D9596"></rect><rect opacity="0.9" width="7.14286" height="3.00022" rx="1.50011" fill="#2D9596"></rect></svg></div></div><div class="offers-boxes"><div class="row">\x3c!--[--\x3e`),g(p(_),((r,s)=>{t(`<div class="col-12 col-xl-4 col-lg-6 mb-5"><div class="box"><div class="image"><img${x("src",r.image)}${x("alt",r.title||"Special offer")} loading="lazy"></div><div class="text"><h4>${h(r.title)}</h4><p>${h(r.description)}</p>`),t(v(a,{to:p(b)(`/offers/${"ar"===p(k)?r.slug_ar:r.slug_en}`)},{default:l(((t,i,r,s)=>{if(!i)return[f("button",null,m(e.$t("offerBtn")),1)];i(`<button${s}>${h(e.$t("offerBtn"))}</button>`)})),_:2},i)),t("</div></div></div>")})),t("\x3c!--]--\x3e</div></div></div>"),p(y)?t(v(u,null,null,i)):t("\x3c!----\x3e"),t("</div>")}}},j=b.setup;b.setup=(e,t)=>{const i=u();return(i.modules||(i.modules=new Set)).add("pages/offers/index.vue"),j?j(e,t):void 0};export{b as default};
