import{a as L,b,d as $,e as C,_ as D}from"./9wDxnFtt.js";import{_ as j}from"./B-_5ofyy.js";import{_ as A}from"./CJ8CD_og.js";import{u as M}from"./BY20QGYM.js";import{u as N}from"./DqTv0isN.js";import{b as d,ag as V,c as p,Y as n,a1 as g,a0 as H,u as a,_ as e,G as m,a6 as v,a4 as i,F as T,a2 as z,Z as l,a3 as w}from"./pvhYMo2c.js";import"./CC3u1PFd.js";import"./BupkU_mh.js";import"./qvRVwB86.js";const F={style:{"min-height":"100vh"}},P={key:0,class:"container offer-page"},R={class:"text-page"},E={class:"breadline","aria-label":"Breadcrumb"},G={class:"fw-bold","aria-current":"page"},I={class:"title mobileHead"},K={class:"main-offer-img"},Y=["src","alt"],Z=["innerHTML"],q={class:"cars"},J={class:"head"},Q={class:""},U={class:"row"},W={class:"col-12 col-xl-3 col-lg-3 col-md-6 my-3"},fe={__name:"[slug]",async setup(X){let u,h;L();const{locale:f}=b(),k=$(),c=d(k.params.slug);C();let r=M();[u,h]=V(()=>r.getOfferBySlug(c.value)),await u,h();let s=d(r.offer),x=d(!1);r.offer?.Offers;const{setPageSeo:O}=N();return p(()=>r.offer,t=>{if(t&&t.Offers){const o={"@context":"https://schema.org","@type":"Offer",name:t.Offers.title||(f.value==="ar"?"عرض خاص":"Special Offer"),description:t.Offers.description||(f.value==="ar"?"عرض خاص على السيارات في خليج أوتو":"Special offer on cars at Khalej Auto"),seller:{"@type":"Organization",name:"khalej Auto"},url:`https://khalejauto.sa/offers/${c.value}`,image:t.Offers.image||void 0};O({title:`${t.Offers.title||(f.value==="ar"?"عرض خاص":"Special Offer")} - خليج أوتو`,path:`/offers/${c.value}`,image:t.Offers.image||void 0,type:"product",additionalSchemas:[o]})}},{immediate:!0}),p(()=>r.offer,t=>{s.value=t}),(t,o)=>{const _=D,y=j,B=A;return l(),n("div",F,[a(s)?(l(),n("div",P,[e("div",R,[e("nav",E,[m(_,{to:"/"},{default:v(()=>[w(i(t.$t("home")),1)]),_:1}),o[0]||(o[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)),m(_,{to:"/offers"},{default:v(()=>[w(i(t.$t("offers")),1)]),_:1}),o[1]||(o[1]=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",G,i(a(s).Offers.title),1)]),e("div",null,[e("h1",I,i(a(s).Offers.title),1),o[2]||(o[2]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"3",viewBox:"0 0 50 3",fill:"none"},[e("rect",{x:"11.9048",width:"78.0952",height:"3.00022",rx:"1.50011",fill:"#2D9596"}),e("rect",{opacity:"0.9",width:"5.14286",height:"3.00022",rx:"1.50011",fill:"#2D9596"})],-1))])]),e("div",K,[e("img",{src:a(s).Offers.cover,alt:a(s).Offers.title||"Offer details",loading:"lazy"},null,8,Y)]),e("div",{innerHTML:a(s)?.Offers?.description,class:"mb-5"},null,8,Z),e("div",q,[e("div",J,[e("h5",Q,i(t.$t("carOffer")),1)]),e("div",U,[(l(!0),n(T,null,z(a(s).Offers.car,S=>(l(),n("div",W,[m(y,{item:S},null,8,["item"])]))),256))])])])):g("",!0),a(x)?(l(),H(B,{key:1})):g("",!0)])}}};export{fe as default};
