import{a as j,b as A,f as I,_ as B}from"../server.mjs";import{_ as C}from"./loading-CegsFr7T.js";import{ref as h,watch as w,mergeProps as D,withCtx as x,createTextVNode as R,toDisplayString as $,unref as n,createVNode as K,useSSRContext as P}from"vue";import{ssrRenderAttrs as H,ssrRenderComponent as p,ssrInterpolate as a,ssrRenderList as N,ssrRenderAttr as _}from"vue/server-renderer";import{u as z}from"./offers-Coy3s0gY.js";import{u as M}from"./seo-DYoMt0L4.js";import"ofetch";import"#internal/nuxt/paths";import"hookable";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 y={__name:"index",__ssrInlineRender:!0,setup(c){const l=j();let s=z(),u=h(s.isLoading);s.getOffers();let g=h([]),{locale:o}=A();const{setPageSeo:S}=M();return S({title:o.value==="ar"?"العروض - خليج أوتو":"Offers - Khalej Auto",description:o.value==="ar"?"عروض خليج أوتو الحصرية - اكتشف أفضل العروض والخصومات على السيارات الجديدة وخدمات التمويل المميزة":"Khalej Auto exclusive offers - Discover the best deals and discounts on new cars and special financing services",path:"/offers",type:"product",breadcrumbs:[{name:o.value==="ar"?"الرئيسية":"Home",url:"/"},{name:o.value==="ar"?"العروض":"Offers"}]}),w(()=>s.offers,t=>{if(t?.length){const e={"@context":"https://schema.org","@type":"ItemList",name:o.value==="ar"?"عروض خليج أوتو":"Khalej Auto Offers",numberOfItems:t.length,itemListElement:t.map((r,d)=>({"@type":"ListItem",position:d+1,item:{"@type":"Offer",name:r.title,description:r.description,url:`https://khalejauto.sa/offers/${o.value==="ar"?r.slug_ar:r.slug_en}`,image:r.image||void 0,seller:{"@type":"Organization",name:"Khalej Auto"}}}))};I({script:[{key:"schema-offers-list",type:"application/ld+json",innerHTML:JSON.stringify(e)}]})}},{immediate:!0}),w([()=>s.offers,s.isLoading],([t,e])=>{g.value=t,u.value=e}),(t,e,r,d)=>{const v=B,L=C;e(`<div${H(D({style:{"min-height":"100vh"}},d))}><div class="container offers-page"><div class="text-page"><nav class="breadline" aria-label="Breadcrumb">`),e(p(v,{to:"/"},{default:x((i,f,O,m)=>{if(f)f(`${a(t.$t("home"))}`);else return[R($(t.$t("home")),1)]}),_:1},r)),e(`<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">${a(t.$t("offers"))}</span></nav><div><h1 class="title">${a(t.$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"><!--[-->`),N(n(g),(i,f)=>{e(`<div class="col-12 col-xl-4 col-lg-6 mb-5"><div class="box"><div class="image"><img${_("src",i.image)}${_("alt",i.title||"Special offer")} loading="lazy"></div><div class="text"><h4>${a(i.title)}</h4><p>${a(i.description)}</p>`),e(p(v,{to:n(l)(`/offers/${n(o)==="ar"?i.slug_ar:i.slug_en}`)},{default:x((O,m,T,k)=>{if(m)m(`<button${k}>${a(t.$t("offerBtn"))}</button>`);else return[K("button",null,$(t.$t("offerBtn")),1)]}),_:2},r)),e("</div></div></div>")}),e("<!--]--></div></div></div>"),n(u)?e(p(L,null,null,r)):e("<!---->"),e("</div>")}}},b=y.setup;y.setup=(c,l)=>{const s=P();return(s.modules||(s.modules=new Set)).add("pages/offers/index.vue"),b?b(c,l):void 0};export{y as default};
