import{a as x,b,_ as y,i as k}from"./9wDxnFtt.js";import{_ as B}from"./CJ8CD_og.js";import{u as L}from"./BY20QGYM.js";import{u as O}from"./DqTv0isN.js";import{b as _,c as p,Y as f,_ as e,a0 as j,a1 as S,G as m,a6 as g,a4 as r,F as $,a2 as D,u as l,Z as c,a3 as A}from"./pvhYMo2c.js";const N={style:{"min-height":"100vh"}},C={class:"container offers-page"},I={class:"text-page"},K={class:"breadline","aria-label":"Breadcrumb"},V={"aria-current":"page"},H={class:"title"},P={class:"offers-boxes"},z={class:"row"},E={class:"col-12 col-xl-4 col-lg-6 mb-5"},F={class:"box"},M={class:"image"},T=["src","alt"],G={class:"text"},W={__name:"index",setup(J){const v=x();let n=L(),u=_(n.isLoading);n.getOffers();let h=_([]),{locale:o}=b();const{setPageSeo:w}=O();return w({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"}]}),p(()=>n.offers,t=>{if(t?.length){const s={"@context":"https://schema.org","@type":"ItemList",name:o.value==="ar"?"عروض خليج أوتو":"Khalej Auto Offers",numberOfItems:t.length,itemListElement:t.map((a,d)=>({"@type":"ListItem",position:d+1,item:{"@type":"Offer",name:a.title,description:a.description,url:`https://khalejauto.sa/offers/${o.value==="ar"?a.slug_ar:a.slug_en}`,image:a.image||void 0,seller:{"@type":"Organization",name:"Khalej Auto"}}}))};k({script:[{key:"schema-offers-list",type:"application/ld+json",innerHTML:JSON.stringify(s)}]})}},{immediate:!0}),p([()=>n.offers,n.isLoading],([t,s])=>{h.value=t,u.value=s}),(t,s)=>{const a=y,d=B;return c(),f("div",N,[e("div",C,[e("div",I,[e("nav",K,[m(a,{to:"/"},{default:g(()=>[A(r(t.$t("home")),1)]),_:1}),s[0]||(s[0]=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"},[e("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"})],-1)),e("span",V,r(t.$t("offers")),1)]),e("div",null,[e("h1",H,r(t.$t("offers")),1),s[1]||(s[1]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"3",viewBox:"0 0 50 3",fill:"none"},[e("rect",{x:"11.9048",width:"38.0952",height:"3.00022",rx:"1.50011",fill:"#2D9596"}),e("rect",{opacity:"0.9",width:"7.14286",height:"3.00022",rx:"1.50011",fill:"#2D9596"})],-1))])]),e("div",P,[e("div",z,[(c(!0),f($,null,D(l(h),(i,Y)=>(c(),f("div",E,[e("div",F,[e("div",M,[e("img",{src:i.image,alt:i.title||"Special offer",loading:"lazy"},null,8,T)]),e("div",G,[e("h4",null,r(i.title),1),e("p",null,r(i.description),1),m(a,{to:l(v)(`/offers/${l(o)==="ar"?i.slug_ar:i.slug_en}`)},{default:g(()=>[e("button",null,r(t.$t("offerBtn")),1)]),_:2},1032,["to"])])])]))),256))])])]),l(u)?(c(),j(d,{key:0})):S("",!0)])}}};export{W as default};
