1import{m as pl,_ as bl,v as fl}from"./iHkHjoQ9.js";import{_ as ml}from"./DCeJgA9s.js";import{_ as xl}from"./BwSfmrg_.js";import{_ as vl}from"./B86vmYLF.js";import{u as Ke,m as gl,f as Kt,a as $t,n as Qe,g as Ft,_ as Wt,d as _t,t as wt,i as Rt,e as hl,o as dt}from"#entry";import{u as yl,_ as _l}from"./BoUy4AIA.js";import{S as Gt}from"./CS6sMY72.js";import{_ as wl}from"./BsLVM-n4.js";import{_ as kl}from"./BMZcw7LT.js";import{d as We,w as G,b as Vt,z as u,Q as t,P as be,as as ve,u as e,v as le,B as o,A as se,F as X,G as ie,an as D,D as V,j as k,f as ue,T as pt,C as ye,r as T,e as a,c as y,K as Pt,n as Ut,ae as He,i as J,az as $l,ar as Sl,at as Ml,H as Cl,N as Ll,av as zt,aF as Tl}from"./-DLWNC6n.js";import{a as Jt,o as ot,w as Al,b as Fl}from"./Dh5mzWV7.js";import{_ as Rl}from"./CF5KQ9o3.js";import{_ as gt,L as Vl,l as Pl}from"./COUtsSEf.js";import{u as Bl,_ as jl}from"./DQTUH28j.js";import{l as _e,b as Dl,a as It}from"./KXDfhFVj.js";import{u as Ol,t as Xt,C as Ye,X as ht,M as Bt,p as El,aM as Nl,n as ql,q as Ul}from"./EBY1djgu.js";import{d as zl}from"./Dw8tTD9R.js";import{l as Zt,a as el,m as tl}from"./DuOGodPu.js";import{p as st,a as Il,b as Ee,n as yt}from"./B7nunhTo.js";import{_ as jt}from"./DlAUqK2U.js";import{t as nt}from"./Dt06GFUO.js";import{_ as Yl}from"./B7AlQkFR.js";import{a as ll,g as Hl}from"./D6K5AcUZ.js";import{u as Ql}from"./C90W3vFq.js";import{u as Kl}from"./CoPFkbrS.js";import{u as Wl}from"./DxJfXaJc.js";import{u as Gl}from"./PGcPv1Ux.js";import{u as Yt}from"./D3owMjHp.js";import{u as Jl}from"./BSgvASx2.js";import{u as Xl}from"./DrEF1l8N.js";import"./sxBn5GFh.js";import"./vomKIK4p.js";import"./Xq-tkkbV.js";import"./D-1m6f3s.js";import"./CvAVpTFk.js";import"./bBmrcmc6.js";import"./2QPFSqsv.js";import"./DfyMrpC0.js";import"./CVoKLib-.js";import"./Y0eD3XOR.js";import"./BK7OkAJm.js";import"./Bqk3m6ff.js";import"./BKiXbb1y.js";import"./UyNCIzMg.js";import"./VUPNgwFK.js";import"./B4PA2jcZ.js";const Zl={class:"space-y-2"},eo={key:0,class:"space-y-4"},to=["placeholder"],lo={key:0,class:"py-6 text-center text-[13px] text-gray-500"},oo={key:1,class:"py-6 text-center text-[13px] text-[#e01b22]"},no=["onClick"],ro={class:"flex min-w-0 flex-1 flex-col items-start gap-1"},so={class:"text-[15px] font-bold text-[#111827]"},ao={key:0,class:"text-[12px] text-[#9CA3AF]"},io={key:1,class:"text-[12px] text-[#e01b22]"},uo={class:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FDECEC] text-[#e01b22]"},co={class:"fixed inset-x-0 bottom-0 z-[111] max-h-[86dvh] rounded-t-3xl bg-white shadow-[0_-12px_48px_rgba(15,23,42,0.22)]"},po={class:"flex items-center gap-3 border-b border-gray-100 px-4 py-3"},bo=["aria-label"],fo={class:"min-w-0 flex-1"},mo={class:"truncate text-[15px] font-bold text-[#111827]"},xo={class:"text-[12px] text-[#6B7280]"},vo={class:"max-h-[calc(86dvh-8rem)] overflow-y-auto px-4 py-4"},go={class:"mb-3"},ho=["placeholder"],yo={key:0,class:"py-10 text-center text-[13px] text-gray-500"},_o={key:1,class:"py-10 text-center text-[13px] text-[#e01b22]"},wo=["onClick"],ko={class:"border-t border-gray-100 p-4 pb-[max(1rem,env(safe-area-inset-bottom))]"},$o=We({__name:"VehicleFeatureCatalogField.client",props:{modelValue:{},title:{default:"اÙ
Ú©Ø§ÙØ§Øª Ù ÙÛÚÚ¯ÛâÙØ§"},catalogPath:{default:"/vehicles/features/"},placeholder:{default:"Ø§ÙØªØ®Ø§Ø¨ اÙ
Ú©Ø§ÙØ§Øª"},inline:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:n}){const $=s,m=n,{locale:x}=Ke(),g=y(()=>x.value==="en"),F=y(()=>x.value==="ar"),v=y(()=>g.value?"en-US":F.value?"ar-AE":"fa-IR");function A(M,B,j){return F.value?j||_e(B,"ar")||_e(M,"ar"):g.value?B:M}function b(M){return F.value?_e(M,"ar"):g.value?Dl(M):M}const I=y(()=>$.title==="اÙ
Ú©Ø§ÙØ§Øª Ù ÙÛÚÚ¯ÛâÙØ§"?A("اÙ
Ú©Ø§ÙØ§Øª Ù ÙÛÚÚ¯ÛâÙØ§","Features and options","اÙÙ
ÙØ²Ø§Øª ÙØ§ÙØ®ÙØ§Ø±Ø§Øª"):$.title),W=y(()=>$.placeholder==="Ø§ÙØªØ®Ø§Ø¨ اÙ
Ú©Ø§ÙØ§Øª"?A("Ø§ÙØªØ®Ø§Ø¨ اÙ
Ú©Ø§ÙØ§Øª","Select features","اختر اÙÙ
ÙØ²Ø§Øª"):$.placeholder),H=T(!1),Q=T(!1),O=T(!1),K=T([]),S=T(""),q=gl().$api;async function P(){if(!Q.value){Q.value=!0,O.value=!1;try{const M=await q($.catalogPath),B=Array.isArray(M)?M:M&&typeof M=="object"&&Array.isArray(M.results)?M.results:[];
1K.value=B.map(j=>{if(!j||typeof j!="object")return null;const r=j,_=String(r.key??"").trim();return _?{key:_,label_fa:typeof r.label_fa=="string"?r.label_fa:null,label_en:typeof r.label_en=="string"?r.label_en:null,group:typeof r.group=="string"?r.group:null,sort_order:typeof r.sort_order=="number"?r.sort_order:null}:null}).filter(j=>!!j).sort((j,r)=>(j.sort_order??0)-(r.sort_order??0))}catch{O.value=!0}finally{Q.value=!1}}}G(H,M=>{(M||$.inline)&&!K.value.length&&!Q.value&&P(),M||(S.value="")}),Vt(()=>{P()});function C(M){const B=K.value.find(j=>j.key===M);return F.value?_e(B?.label_en?.trim()||B?.label_fa?.trim()||M,"ar"):(g.value?B?.label_en?.trim()||B?.label_fa?.trim():B?.label_fa?.trim()||B?.label_en?.trim())||M}const L=y(()=>$.modelValue.map(M=>C(M)).filter(M=>M.trim().length>0)),h=y(()=>{const M=S.value.trim().toLowerCase(),B=M?K.value.filter(r=>{const _=r.label_fa?.toLowerCase()??"",w=r.label_en?.toLowerCase()??"",ee=r.key.toLowerCase();return _.includes(M)||w.includes(M)||ee.includes(M)}):K.value,j=new Map;for(const r of B){const _=r.group?.trim()||A("Ø³Ø§ÛØ±","Other","أخرÙ"),w=j.get(_)||[];w.push(r),j.set(_,w)}return[...j.entries()]});function R(M){return $.modelValue.includes(M)}function U(M){const B=new Set($.modelValue);B.has(M)?B.delete(M):B.add(M),m("update:modelValue",[...B])}function Z(){H.value=!1}function N(){m("update:modelValue",[])}function ce(){Z()}return(M,B)=>(a(),u("div",Zl,[$.inline?(a(),u("div",eo,[t("div",null,[be(t("input",{"onUpdate:modelValue":B[0]||(B[0]=j=>le(S)?S.value=j:null),type:"search",placeholder:A("جستج٠در ÙÛÚÚ¯ÛâÙØ§...","Search features...","Ø§Ø¨ØØ« Ù٠اÙÙ
ÙØ²Ø§Øª..."),class:"h-11 w-full rounded-xl border border-gray-200 px-4 text-[13px] outline-none focus:border-[#e01b22] focus:ring-1 focus:ring-[#e01b22]/20"},null,8,to),[[ve,e(S)]])]),e(Q)&&e(K).length===0?(a(),u("div",lo,o(A("در ØØ§Ù بارگذارÛ...","Loading...","Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ...")),1)):e(O)?(a(),u("div",oo,[se(o(A("خطا در Ø¯Ø±ÛØ§Ùت ÙÛÚÚ¯ÛâÙØ§. Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯.","Could not load features. Please try again.","تعذر تØÙ
Ù٠اÙÙ
ÙØ²Ø§Øª. ØØ§ÙÙ Ù
رة أخرÙ."))+" ",1),t("button",{type:"button",class:"mt-3 block w-full text-[#e01b22]",onClick:P},o(A("Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û Ù
جدد","Reload","إعادة Ø§ÙØªØÙ
ÙÙ")),1)])):(a(!0),u(X,{key:2},ie(e(h),([j,r])=>(a(),u("div",{key:j,class:"mb-5 last:mb-0"},[t("p",{class:D(["mb-3 text-[14px] font-bold text-[#111827]",e(g)?"text-left":"text-right"])},o(b(j)),3),t("div",{class:D(["flex flex-wrap gap-2",e(g)?"justify-start":"justify-end"])},[(a(!0),u(X,null,ie(r,_=>(a(),u("button",{key:_.key,type:"button",class:D(["rounded-full border px-3 py-2 text-[12px] font-semibold transition-colors",R(_.key)?"border-[#e01b22] bg-[#FDECEC] text-[#e01b22]":"border-gray-200 bg-gray-100 text-gray-700"]),onClick:w=>U(_.key)},o(C(_.key)),11,no))),128))],2)]))),128))])):(a(),u("button",{key:1,type:"button",class:D(["flex min-h-[3.25rem] w-full items-center justify-between gap-3 rounded-xl border border-gray-200 bg-white px-4 py-3 shadow-sm transition hover:border-[#e01b22]/30",e(g)?"text-left":"text-right"]),onClick:B[1]||(B[1]=j=>H.value=!0)},[t("span",ro,[t("span",so,o(e(I)),1),e(L).length===0?(a(),u("span",ao,o(e(W)),1)):(a(),u("span",io,[se(o(e(L).slice(0,3).join(e(g)?", ":"Ø "))+" ",1),e(L).length>3?(a(),u(X,{key:0},[se(o(e(g)?`and ${e(L).length-3} more`:e(F)?`Ù ${e(L).length-3} أخرÙ`:`Ù ${e(L).length-3} Ù
ÙØ±Ø¯ دÛگر`),1)],64)):V("",!0)]))]),t("span",uo,[k(e(Ol),{class:"h-4 w-4"})])],2)),$.inline?V("",!0):(a(),ue(pt,{key:2,to:"body"},[e(H)?(a(),u("div",{key:0,class:"fixed inset-0 z-[110] bg-black/30",onClick:ye(Z,["self"])},[t("div",co,[t("div",po,[t("button",{type:"button",class:"flex h-10 w-10 items-center justify-center rounded-xl bg-[#FDECEC] text-[#e01b22]","aria-label":A("بستÙ","Close","Ø¥ØºÙØ§Ù"),onClick:Z},[k(e(Xt),{class:"h-5 w-5"})],8,bo),t("div",fo,[t("p",mo,o(e(I)),1),t("p",xo,o(e(g)?`${e(L).length.toLocaleString(e(v))} selected`:e(F)?`${e(L).length.toLocaleString(e(v))}
1 Ù
ØØ¯Ø¯`:`${e(L).length.toLocaleString(e(v))} Ù
ÙØ±Ø¯ Ø§ÙØªØ®Ø§Ø¨ شدÙ`),1)]),t("button",{type:"button",class:"rounded-xl border border-gray-200 bg-white px-3 py-2 text-[12px] font-semibold text-[#e01b22]",onClick:N},o(A("پاک کردÙ","Clear","Ù
سØ")),1)]),t("div",vo,[t("div",go,[be(t("input",{"onUpdate:modelValue":B[2]||(B[2]=j=>le(S)?S.value=j:null),type:"search",placeholder:A("جستج٠در ÙÛÚÚ¯ÛâÙØ§...","Search features...","Ø§Ø¨ØØ« Ù٠اÙÙ
ÙØ²Ø§Øª..."),class:"h-11 w-full rounded-xl border border-gray-200 px-4 text-[13px] outline-none focus:border-[#e01b22] focus:ring-1 focus:ring-[#e01b22]/20"},null,8,ho),[[ve,e(S)]])]),e(Q)&&e(K).length===0?(a(),u("div",yo,o(A("در ØØ§Ù بارگذارÛ...","Loading...","Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ...")),1)):e(O)?(a(),u("div",_o,[se(o(A("خطا در Ø¯Ø±ÛØ§Ùت ÙÛÚÚ¯ÛâÙØ§. Ø¯ÙØ¨Ø§Ø±Ù ØªÙØ§Ø´ Ú©ÙÛØ¯.","Could not load features. Please try again.","تعذر تØÙ
Ù٠اÙÙ
ÙØ²Ø§Øª. ØØ§ÙÙ Ù
رة أخرÙ."))+" ",1),t("button",{type:"button",class:"mt-3 block w-full text-[#e01b22]",onClick:P},o(A("Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û Ù
جدد","Reload","إعادة Ø§ÙØªØÙ
ÙÙ")),1)])):(a(!0),u(X,{key:2},ie(e(h),([j,r])=>(a(),u("div",{key:j,class:"mb-5 last:mb-0"},[t("p",{class:D(["mb-3 text-[14px] font-bold text-[#111827]",e(g)?"text-left":"text-right"])},o(b(j)),3),t("div",{class:D(["flex flex-wrap gap-2",e(g)?"justify-start":"justify-end"])},[(a(!0),u(X,null,ie(r,_=>(a(),u("button",{key:_.key,type:"button",class:D(["rounded-full border px-3 py-2 text-[12px] font-semibold transition-colors",R(_.key)?"border-[#e01b22] bg-[#FDECEC] text-[#e01b22]":"border-gray-200 bg-gray-100 text-gray-700"]),onClick:w=>U(_.key)},o(C(_.key)),11,wo))),128))],2)]))),128))]),t("div",ko,[t("button",{type:"button",class:"flex h-12 w-full items-center justify-center rounded-xl bg-[#e01b22] text-[14px] font-bold text-white shadow-[0_10px_24px_rgba(224,27,34,0.22)]",onClick:ce},o(e(g)?`Confirm (${e(L).length.toLocaleString(e(v))})`:e(F)?`تأÙÙØ¯ (${e(L).length.toLocaleString(e(v))})`:`تأÛÛØ¯ (${e(L).length.toLocaleString(e(v))})`),1)])])])):V("",!0)]))]))}}),Ht=["تÙÛÙØªØ§","ÙÙÙØ¯Ø§","ÙÛØ³Ø§Ù","Ù
زدا","Ú©ÛØ§","ÙÛÙÙØ¯Ø§Û","Ø¨âØ§Ù
âÙ","Ù
رسدس Ø¨ÙØ²","Ø¢Ø¦ÙØ¯Û","ÙÚ©Ø³ÙØ³","ÙÙÙکسâÙØ§Ú¯Ù","ÙÙØ±Ø¯","جÛÙ¾","Ù¾ÙØ±Ø´Ù"],So=[{value:"other",label:"GCC"},{value:"usa",label:"Ù
شخصات Ø¢Ù
رÛکا"},{value:"japan",label:"Ù
شخصات ÚØ§Ù¾Ù"},{value:"germany",label:"Ù
شخصات ارÙپا"},{value:"china",label:"Ù
شخصات ÚÛÙ"},{value:"uk",label:"Ù
شخصات اÙÚ¯ÙØ³ØªØ§Ù"},{value:"south_korea",label:"Ù
شخصات کر٠جÙÙØ¨Û"}],Mo=[{value:"sedan",label:"سداÙ"},{value:"suv",label:"شاسÛâØ¨ÙÙØ¯ (SUV)"},{value:"coupe",label:"Ú©ÙÙ¾Ù"},{value:"hatchback",label:"ÙØ§Úبک"},{value:"crossover",label:"Ú©Ø±Ø§Ø³âØ§ÙÙØ±"},{value:"pickup",label:"Ù¾Ûکاپ"},{value:"van",label:"ÙÙ"},{value:"wagon",label:"Ø§Ø³ØªÛØ´Ù"},{value:"convertible",label:"کرÙÚ©"},{value:"minivan",label:"Ù
ÛÙÛâÙÙ"},{value:"sports",label:"اسپرت"},{value:"other",label:"Ø³Ø§ÛØ±"}],Co=[{value:"سÙÛØ¯",label:"سÙÛØ¯"},{value:"Ù
Ø´Ú©Û",label:"Ù
Ø´Ú©Û"},{value:"ÙÙØ±ÙâØ§Û",label:"ÙÙØ±ÙâØ§Û"},{value:"خاکسترÛ",label:"خاکسترÛ"},{value:"ÙØ±Ù
ز",label:"ÙØ±Ù
ز"},{value:"آبÛ",label:"آبÛ"},{value:"سبز",label:"سبز"},{value:"زرد",label:"زرد"},{value:"ÙØ§Ø±ÙجÛ",label:"ÙØ§Ø±ÙجÛ"},{value:"ÙÙÙÙâØ§Û",label:"ÙÙÙÙâØ§Û"},{value:"بÚ",label:"بÚ"},{value:"Ø·ÙØ§ÛÛ",label:"Ø·ÙØ§ÛÛ"},{value:"بÙÙØ´",label:"بÙÙØ´"},{value:"Ú¯ÙØ¨ÙÛ",label:"Ú¯ÙØ¨ÙÛ"},{value:"ÙÛØ±ÙزÙâØ§Û",label:"ÙÛØ±ÙزÙâØ§Û"},{value:"کرÙ
",label:"کرÙ
"}],Lo=[{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"8",label:"8"},{value:"10",label:"10"},{value:"12",label:"12"},{value:"electric",label:"برÙÛ"}],To=[{value:"2",label:"2"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"}],Ao=[{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"}],Fo=[{value:"dealer",label:"ÙÙ
Ø§ÛØ´Ú¯Ø§Ù"},{value:"owner",label:"شخصÛ"}],Ro=[{value:"yes",label:"دارد"},{value:"no",label:"ÙØ¯Ø§Ø±Ø¯"}],Vo=[{value:"uae",label:"اÙ
ارات"},{value:"gcc",label:"Ø®ÙÛØ¬ ÙØ§Ø±Ø³"},{value:"export",label:"صادرات"}],Po=[{value:"left",label:"ÚÙ¾"},{value:"right",label:"راست"}],ol=[{value:"newest",label:"Ø¬Ø¯ÛØ¯ØªØ±ÛÙ"},{value:"oldest",label:"ÙØ¯ÛÙ
ÛâØªØ±ÛÙ"}
1,{value:"cheapest",label:"Ú©Ù
ترÛÙ ÙÛÙ
ت"},{value:"expensive",label:"Ø¨ÛØ´ØªØ±ÛÙ ÙÛÙ
ت"}];function Bo(){const s=Kt(),n=$t(),$=zl.filter(_=>_!=="تÙ
اÙ
Ù
ÙØ§Ø·Ù"),m=T(""),x=T([]),g=T(""),F=T(""),v=T(""),A=T(""),b=T(""),I=T(""),W=T(""),H=T(""),Q=T(""),O=T(""),K=T(""),S=T(""),q=T([]),P=T(""),C=T(""),L=T(""),h=T(""),R=T("newest");function U(_){const w={};for(const[ee,re]of Object.entries(_))re!==void 0&&re!==""&&(w[ee]=re);return w}function Z(){switch(m.value){case"rent":return{listing:"rent",category_name:"Ø§Ø¬Ø§Ø±Ù ÙØ³ÛÙÙ ÙÙÙÛÙ"};case"car_sale":return{listing:"sale",category_name:"Ø®ÙØ¯Ø±Ù"};case"motor_sale":return{listing:"sale",category_name:"Ù
ÙØªÙر"};case"parts":return{listing:"sale",category_name:"ÙÙØ§Ø²Ù
Ø¬Ø§ÙØ¨Û Ù ÙØ·Ø¹Ø§Øª"};case"plate":return{listing:"sale",category_name:"Ù¾ÙØ§Ú©"};default:return{}}}function N(_){if(_==null)return"";if(typeof _=="string")return _;if(typeof _=="number"||typeof _=="boolean")return String(_);if(Array.isArray(_)){const w=_[0];return typeof w=="string"?w:typeof w=="number"||typeof w=="boolean"?String(w):""}return""}function ce(_,w){return _.length!==w.length?!1:_.every((ee,re)=>ee===w[re])}function M(){const _=N(s.query.category_name),w=N(s.query.listing);let ee="";w==="rent"&&_.includes("اجارÙ")?ee="rent":w==="sale"&&_==="Ø®ÙØ¯Ø±Ù"?ee="car_sale":w==="sale"&&_==="Ù
ÙØªÙر"?ee="motor_sale":w==="sale"&&_.includes("ÙØ·Ø¹Ø§Øª")?ee="parts":w==="sale"&&_==="Ù¾ÙØ§Ú©"&&(ee="plate"),m.value!==ee&&(m.value=ee);const re=N(s.query.regions),Le=re?Zt(re):(()=>{const ge=N(s.query.city);return ge?el(ge):[]})();ce(x.value,Le)||(x.value=Le);const fe=N(s.query.brand),we=Ht.includes(fe);fe&&!we?(g.value!=="__other__"&&(g.value="__other__"),F.value!==fe&&(F.value=fe)):(g.value!==fe&&(g.value=fe),F.value!==""&&(F.value=""));const ke=N(s.query.origin);v.value!==ke&&(v.value=ke);const me=N(s.query.body_type);A.value!==me&&(A.value=me);const Te=N(s.query.color);b.value!==Te&&(b.value=Te);const Be=N(s.query.number_of_cylinders);I.value!==Be&&(I.value=Be);const Ge=N(s.query.seating_capacity);W.value!==Ge&&(W.value=Ge);const Ne=N(s.query.doors);H.value!==Ne&&(H.value=Ne);const Je=N(s.query.seller_type);Q.value!==Je&&(Q.value=Je);const $e=N(s.query.warranty);O.value!==$e&&(O.value=$e);const je=N(s.query.target_market);K.value!==je&&(K.value=je);const qe=N(s.query.steering_side);S.value!==qe&&(S.value=qe);const Xe=N(s.query.features),Ze=Xe?Xe.split(",").map(ge=>ge.trim()).filter(Boolean):[];ce(q.value,Ze)||(q.value=Ze);const Ue=N(s.query.year_min);P.value!==Ue&&(P.value=Ue);const ze=N(s.query.year_max);C.value!==ze&&(C.value=ze);const Ve=st(N(s.query.min_price));L.value!==Ve&&(L.value=Ve);const xe=st(N(s.query.max_price));h.value!==xe&&(h.value=xe);const te=N(s.query.sort)||"newest";R.value!==te&&(R.value=te)}function B(){const _=g.value==="__other__"?F.value.trim():g.value.trim(),w=Z(),ee=tl(x.value);Qe({path:n("/vehicles"),query:U({search:typeof s.query.search=="string"?s.query.search:void 0,...w,regions:ee??void 0,brand:_||void 0,origin:v.value||void 0,body_type:A.value||void 0,color:b.value||void 0,number_of_cylinders:I.value||void 0,seating_capacity:W.value||void 0,doors:H.value||void 0,seller_type:Q.value||void 0,warranty:O.value||void 0,target_market:K.value||void 0,steering_side:S.value||void 0,features:q.value.length?q.value.join(","):void 0,year_min:P.value.trim()||void 0,year_max:C.value.trim()||void 0,min_price:L.value||void 0,max_price:h.value||void 0,sort:R.value!=="newest"?R.value:void 0})})}function j(_){const w=_?.keepDeal?Z():{};v.value="",A.value="",b.value="",I.value="",W.value="",H.value="",Q.value="",O.value="",K.value="",S.value="",q.value=[],Qe({path:n("/vehicles"),query:U({search:typeof s.query.search=="string"?s.query.search:void 0,...w})})}function r(){const _={};for(const[w,ee]of Object.entries(s.query)){if(w==="page")continue;const re=Array.isArray(ee)?ee[0]:ee;typeof re=="string"&&re!==""&&(_[w]=re)}R.value!=="newest"?_.sort=R.value:delete _.sort,Qe({path:n("/vehicles"),query:U(_)})}return Vt(()=>{M()}),G(()=>s.fullPath,()=>M()),{regionOptions:$,dealPreset:m,selectedRegions:x,brand:g,brandOther:F,origin:v,bodyType:A,color:b,cylinders:I,seating:W,doors:H,sellerType:Q,warranty:O,targetMarket:K,steeringSide:S,features:q,minYear:P,maxYear:C,minPrice:L,maxPrice:h,sort:R,brands:Ht,sortOptions:ol,syncFromRoute:M,apply:B,clearFilters:j,applySortOnly:r}}const St=Symbol("vehicleListFilters"),jo="64748B",Do={تÙÛÙØªØ§:"toyota",ÙÙÙØ¯Ø§:"honda",ÙÛØ³Ø§Ù:"nissan",Ù
زدا:"mazda",Ú©ÛØ§:"kia",ÙÛÙÙØ¯Ø§Û:"hyundai",Ø¨âØ§Ù
âÙ:"bmw","Ù
رسدس Ø¨ÙØ²":"mercedes",Ø¢Ø¦ÙØ¯Û:"audi",ÙÚ©Ø³ÙØ³:"lexus",ÙÙÙکسâÙØ§Ú¯Ù:"volkswagen",ÙÙØ±Ø¯:"ford",جÛÙ¾:"jeep",Ù¾ÙØ±Ø´Ù:"porsche"};function Oo(s){const n=Do[s];if(n)return`https://cdn.simpleicons.org/${n}/${jo}`}const Eo=["dir"],No={key:0,class:"flex min-w-0 flex-wrap items-center gap-1.5"},qo=["aria-expanded"],Uo={class:"min-w-0 flex-1 truncate"},zo=["aria-label"],Io={class:"border-b border-gray-100 p-2"},Yo=["placeholder"],Ho={class:"flex max-h-48 flex-col gap-1 overflow-y-auto border-b border-gray-100 p-2"},Qo=["checked","onChange"],Ko={class:"min-w-0 leading-snug text-[#334155]"},Wo={key:0,class:"py-4 text-center text-[11px] text-slate-500"},Go=["aria-expanded"],Jo={class:"min-w-0 flex-1 truncate"},Xo=["aria-label"],Zo={class:"mb-3 text-[13px] font-bold text-[#334155]"},en={class:"grid grid-cols-2 gap-2"},tn={class:"mb-1 block text-[11px] font-medium text-slate-500"},ln=["placeholder"],on={class:"mb-1 block text-[11px] font-medium text-slate-500"},nn=["placeholder"],rn={class:"mt-3 flex gap-2 border-t border-gray-100 pt-3"},sn=["aria-expanded"],an={class:"min-w-0 flex-1 truncate"},un=["aria-label"],cn={class:"mb-3 text-[13px] font-bold text-[#334155]"},dn={class:"grid grid-cols-2 gap-2"},pn={class:"mb-1 block text-[11px] font-medium text-slate-500"},bn=["value","placeholder"],fn={key:0,class:"mt-1 min-h-[0.875rem] text-[10px] text-slate-500"},mn={class:"mb-1 block text-[11px] font-medium text-slate-500"},xn=["value","placeholder"],vn={key:0,class:"mt-1 min-h-[0.875rem] text-[10px] text-slate-500"},gn={class:"mt-3 flex gap-2 border-t border-gray-100 pt-3"},hn=["placeholder"],yn={class:"overflow-hidden rounded-t-3xl border border-gray-200/90 bg-white shadow-[0_-12px_48px_rgba(15,23,42,0.22)] [color-scheme:light]"},_n={class:"flex items-center justify-between border-b border-gray-100 px-4 py-3"},wn={class:"text-sm font-semibold text-gray-900"},kn={class:"max-h-[60vh] overflow-y-auto p-3"},$n={class:"mb-3"},Sn=["placeholder"],Mn={class:"grid grid-cols-1 gap-2"},Cn=["checked","onChange"],Ln={key:0,class:"py-4 text-center text-[12px] text-slate-500"},Tn={class:"overflow-hidden rounded-t-3xl border border-gray-200/90 bg-white shadow-[0_-12px_48px_rgba(15,23,42,0.22)] [color-scheme:light]"},An={class:"flex items-center justify-between border-b border-gray-100 px-4 py-3"},Fn={class:"text-sm font-semibold text-gray-900"},Rn={class:"max-h-[60vh] overflow-y-auto p-4"},Vn={class:"grid grid-cols-2 gap-3"},Pn={class:"mb-1 block text-[12px] font-semibold text-slate-600"},Bn=["placeholder"],jn={class:"mb-1 block text-[12px] font-semibold text-slate-600"},Dn=["placeholder"],On={class:"mt-3 flex gap-2 border-t border-gray-100 pt-3"},En={class:"overflow-hidden rounded-t-3xl border border-gray-200/90 bg-white shadow-[0_-12px_48px_rgba(15,23,42,0.22)] [color-scheme:light]"},Nn={class:"flex items-center justify-between border-b border-gray-100 px-4 py-3"},qn={class:"text-sm font-semibold text-gray-900"},Un={class:"max-h-[60vh] overflow-y-auto p-4"},zn={class:"grid grid-cols-2 gap-3"},In={class:"mb-1 block text-[12px] font-semibold text-slate-600"}
1,Yn=["value","placeholder"],Hn={key:0,class:"mt-1 min-h-[1rem] text-[11px] text-slate-500"},Qn={class:"mb-1 block text-[12px] font-semibold text-slate-600"},Kn=["value","placeholder"],Wn={key:0,class:"mt-1 min-h-[1rem] text-[11px] text-slate-500"},Gn={class:"mt-3 flex gap-2 border-t border-gray-100 pt-3"},Jn=["dir"],Xn={key:0},Zn={class:"mb-2 text-[13px] font-bold text-[#334155]"},er={class:"flex flex-wrap gap-2"},tr={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},lr={class:"text-[13px] font-bold text-[#334155]"},or={class:"mb-2 text-[11px] leading-relaxed text-slate-500"},nr=["aria-expanded"],rr={class:"min-w-0 truncate"},sr=["aria-label","onClick"],ar=["placeholder"],ir={id:"vehicle-region-suggestions",class:"vehicle-region-suggestions-scroll absolute z-50 mt-1 max-h-52 w-full overflow-y-auto rounded-xl border border-gray-200 bg-white py-1 shadow-lg [color-scheme:light]",role:"listbox"},ur=["onClick"],cr={key:0,class:"px-3 py-4 text-center text-[12px] text-slate-500"},dr={class:"mb-2 block text-[13px] font-bold text-[#334155]"},pr={key:0,class:"absolute end-0 top-full z-[120] mt-2 max-h-72 w-full overflow-hidden rounded-xl border border-gray-200 bg-white shadow-xl"},br={class:"max-h-72 overflow-y-auto py-1"},fr=["onClick"],mr={class:"min-w-0 flex-1 truncate"},xr={key:0,class:"h-2.5 w-2.5 shrink-0 rounded-full bg-[#e01b22]","aria-hidden":"true"},vr=["placeholder"],gr={class:"min-w-0 flex-1"},hr={class:"block text-[13px] font-bold text-[#334155]"},yr={class:"mt-0.5 block truncate text-[12px] text-slate-500"},_r={class:"border-t border-gray-100 px-4 pb-4 pt-3"},wr={class:"flex flex-wrap justify-end gap-2"},kr=["onClick"],$r={class:"group overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm"},Sr={class:"min-w-0 flex-1"},Mr={class:"block text-[13px] font-bold text-[#334155]"},Cr={class:"mt-0.5 block truncate text-[12px] text-slate-500"},Lr={class:"border-t border-gray-100 px-4 pb-4 pt-3"},Tr={class:"grid grid-cols-2 gap-3"},Ar={class:"mb-1 block text-[12px] font-semibold text-gray-600"},Fr={class:"mb-1 block text-[12px] font-semibold text-gray-600"},Rr={class:"grid grid-cols-2 gap-3"},Vr={class:"mb-1 block text-[12px] font-semibold text-gray-600"},Pr=["value"],Br={key:0,class:"mt-1 min-h-[1rem] text-[11px] text-slate-500"},jr={class:"mb-1 block text-[12px] font-semibold text-gray-600"},Dr=["value"],Or={key:0,class:"mt-1 min-h-[1rem] text-[11px] text-slate-500"},Er={key:1},Nr={key:0,class:"absolute end-0 top-full z-[120] mt-2 max-h-72 w-full overflow-hidden rounded-xl border border-gray-200 bg-white shadow-xl"},qr={class:"max-h-72 overflow-y-auto py-1"},Ur=["onClick"],zr={class:"min-w-0 flex-1 truncate"},Ir={key:0,class:"h-2.5 w-2.5 shrink-0 rounded-full bg-[#e01b22]","aria-hidden":"true"},rt="__vehicle_filter_all__",Yr=We({__name:"VehicleListFilterForm.client",props:{showSort:{type:Boolean,default:!1},instantApply:{type:Boolean,default:!1},variant:{default:"stacked"},toolbarMapMode:{type:Boolean,default:!1},hideDealType:{type:Boolean,default:!1}},setup(s){const n=s,$=Pt(St);if(!$)throw new Error("[VehicleListFilterForm] missing vehicleListFiltersInjectionKey");const m=$,x=m.dealPreset,g=m.selectedRegions,F=m.brand,v=m.brandOther,A=m.origin,b=m.bodyType,I=m.color,W=m.cylinders,H=m.seating,Q=m.doors,O=m.sellerType,K=m.warranty,S=m.targetMarket,q=m.steeringSide,P=m.features,C=m.minYear,L=m.maxYear,h=m.minPrice,R=m.maxPrice,U=m.sort,Z=T(!1);Vt(()=>{Ut(()=>{Z.value=!0})});const N=Jt("(max-width: 767px)",{ssrWidth:1200}),{locale:ce}=Ke(),M=y(()=>ce.value==="en"),B=y(()=>ce.value==="ar"),j=y(()=>M.value?"en-US":B.value?"ar-AE":"fa-IR");function r(i,l,z){return B.value?z||_e(l,"ar")||_e(i,"ar"):M.value?l:i}function _(i){return _e(i,ce.value)}function w(){!n.instantApply||!Z.value||m.apply()}G(x,w),G(g,w,{deep:!0}),G(F,w),G(A,w),G(b,w),G(I,w),G(W,w),G(H,w),G(Q,w),G(O,w),G(K,w),G(S,w),G(q,w),G(P,w,{deep:!0}),G(U,()=>{n.showSort&&w()});function ee(i,l){return l==null||String(l)===""?r("ÙÙ
Ù Ù
ÙØ§Ø±Ø¯","All options"):_(i.find(z=>String(z.value)===String(l))?.label||r("ÙÙ
Ù Ù
ÙØ§Ø±Ø¯","All options"))}function re(i,l){const z=String(l);i.value=i.value===z?"":z,w()}const Le=y(()=>[{key:"origin",title:r("Ù
شخصات Ù
ÙØ·ÙÙâØ§Û","Regional specs","اÙÙ
ÙØ§ØµÙات Ø§ÙØ¥ÙÙÙÙ
ÙØ©"),model:A,options:So},{key:"body-type",title:r("ÙÙØ¹ بدÙÙ","Body type","ÙÙØ¹ اÙÙÙÙÙ"),model:b,options:Mo},{key:"color",title:r("رÙÚ¯","Color","اÙÙÙÙ"),model:I,options:Co}
1,{key:"cylinders",title:r("تعداد سÛÙÙØ¯Ø±","Cylinders","عدد Ø§ÙØ£Ø³Ø·ÙØ§ÙØ§Øª"),model:W,options:Lo},{key:"seating",title:r("تعداد Ø³Ø±ÙØ´ÛÙ","Seats","عدد اÙÙ
ÙØ§Ø¹Ø¯"),model:H,options:To},{key:"doors",title:r("تعداد Ø¯Ø±ÙØ§","Doors","عدد Ø§ÙØ£Ø¨Ùاب"),model:Q,options:Ao},{key:"seller-type",title:r("ÙÙØ¹ ÙØ±ÙØ´ÙØ¯Ù","Seller type","ÙÙØ¹ Ø§ÙØ¨Ø§Ø¦Ø¹"),model:O,options:Fo},{key:"warranty",title:r("Ú¯Ø§Ø±Ø§ÙØªÛ","Warranty","Ø§ÙØ¶Ù
اÙ"),model:K,options:Ro},{key:"target-market",title:r("بازار ÙØ¯Ù","Target market","Ø§ÙØ³Ù٠اÙÙ
Ø³ØªÙØ¯Ù"),model:S,options:Vo},{key:"steering-side",title:r("سÙ
ت ÙØ±Ù
اÙ","Steering side","Ø¬ÙØ© اÙÙ
ÙÙØ¯"),model:q,options:Po}]),fe=y(()=>P.value.length?M.value?`${P.value.length.toLocaleString(j.value)} selected`:B.value?`${P.value.length.toLocaleString(j.value)} Ù
ØØ¯Ø¯`:`${P.value.length.toLocaleString(j.value)} Ù
ÙØ±Ø¯ Ø§ÙØªØ®Ø§Ø¨ شدÙ`:r("Ø§ÙØªØ®Ø§Ø¨ ÙØ´Ø¯Ù","Not selected","ØºÙØ± Ù
ØØ¯Ø¯")),we=y(()=>[{value:rt,label:r("ÙÙ
Ù Ø¨Ø±ÙØ¯Ùا","All brands","ÙÙ Ø§ÙØ¹ÙاÙ
ات")},...m.brands.map(i=>{const l=String(i),z=Oo(l);return z?{value:l,label:l,logoUrl:z}:{value:l,label:l}}),{value:"__other__",label:r("Ø³Ø§ÛØ± (دستÛ)","Other (manual)","أخر٠(ÙØ¯ÙÙ)")}]),ke=y(()=>m.sortOptions.map(i=>({value:i.value,label:_(i.label)}))),me=y({get:()=>F.value===""?rt:F.value==="__other__"?"__other__":m.brands.includes(F.value)?F.value:rt,set:i=>{const l=i!=null?String(i):rt;F.value=l===rt?"":l}}),Te=T(!1),Be=T(null),Ge=y(()=>{if(F.value==="__other__")return v.value.trim()||r("Ø³Ø§ÛØ± (دستÛ)","Other (manual)","أخر٠(ÙØ¯ÙÙ)");
1if(!F.value)return r("ÙÙ
Ù Ø¨Ø±ÙØ¯Ùا","All brands","ÙÙ Ø§ÙØ¹ÙاÙ
ات");const i=m.brands.find(l=>String(l)===F.value);return i?_(i):r("ÙÙ
Ù Ø¨Ø±ÙØ¯Ùا","All brands","ÙÙ Ø§ÙØ¹ÙاÙ
ات")});function Ne(){Te.value=!Te.value}function Je(i){i===rt?(F.value="",v.value=""):i==="__other__"?F.value="__other__":(F.value=i,v.value=""),Te.value=!1,w()}ot(Be,()=>{Te.value=!1});const $e=T(!1),je=T(null),qe=y(()=>ke.value.find(l=>String(l.value)===String(U.value))?.label||r("Ø§ÙØªØ®Ø§Ø¨","Select"));function Xe(){$e.value=!$e.value}function Ze(i){U.value=i,$e.value=!1,w()}ot(je,()=>{$e.value=!1});function Ue(i){return g.value.includes(i)}function ze(i){const l=new Set(g.value);l.has(i)?l.delete(i):l.add(i),g.value=m.regionOptions.filter(z=>l.has(z))}function Ve(){g.value=[]}function xe(i){return Il(i).trim().toLowerCase()}const te=T(""),ge=y(()=>{const i=xe(te.value);return i?m.regionOptions.filter(l=>xe(l).includes(i)):m.regionOptions}),Ae=y(()=>{const i=new Set(g.value),l=m.regionOptions.filter(d=>!i.has(d)),z=xe(te.value);return z?l.filter(d=>xe(d).includes(z)):l}),Mt=T(null),he=T(null),et=T(!1);ot(Mt,()=>{et.value=!1});const Pe=y(()=>et.value&&(Ae.value.length>0||xe(te.value)!==""));function Ct(){he.value?.focus()}function it(i){if(g.value.includes(i))return;const l=new Set(g.value);l.add(i),g.value=m.regionOptions.filter(z=>l.has(z)),te.value="",Ut(()=>he.value?.focus())}function tt(i){g.value=g.value.filter(l=>l!==i)}function bt(i){if(i.key==="Escape"){et.value=!1,he.value?.blur();return}i.key==="Backspace"&&!te.value&&g.value.length&&tt(g.value[g.value.length-1]),i.key==="Enter"&&Ae.value.length&&(i.preventDefault(),it(Ae.value[0]))}const Se=T(!1),Ie=T(null),de=T(!1);ot(Ie,()=>{Se.value=!1});const De=y(()=>{const i=g.value.length;return i===0?r("Ù
ÙØ·ÙÙ","Area","اÙÙ
ÙØ·ÙØ©"):i===1?_(g.value[0]):M.value?`${i.toLocaleString(j.value)} areas`:B.value?`${i.toLocaleString(j.value)} Ù
ÙØ§Ø·Ù`:`${i.toLocaleString(j.value)} Ù
ÙØ·ÙÙ`}),ut=y(()=>{if(M.value||B.value)return"";const i=h.value;if(!i)return"";const l=Number(i);if(!Number.isFinite(l)||l<=0)return"";const z=yt(l);return z?`${z} درÙÙ
`:""}),ct=y(()=>{if(M.value||B.value)return"";const i=R.value;if(!i)return"";const l=Number(i);if(!Number.isFinite(l)||l<=0)return"";const z=yt(l);return z?`${z} درÙÙ
`:""});function ft(i){h.value=st(i.target.value)}function f(i){R.value=st(i.target.value)}const p=T(!1),Y=T(null),E=T(""),ne=T(""),ae=T(!1),pe=T(!1),mt=T(null),Me=T(""),Ce=T(""),Fe=T(!1);function c(i=null){i!=="region"&&(Se.value=!1),i!=="year"&&(p.value=!1),i!=="price"&&(pe.value=!1)}function Oe(i=null){i!=="region"&&(de.value=!1),i!=="year"&&(ae.value=!1),i!=="price"&&(Fe.value=!1)}function lt(){if(n.toolbarMapMode&&N.value){const l=!de.value;c(l?"region":null),Oe(l?"region":null),de.value=!de.value,l&&(te.value="");return}const i=!Se.value;c(i?"region":null),Se.value=i}G(Se,i=>{i?c("region"):te.value=""}),G(de,i=>{i?(c("region"),Oe("region")):te.value=""});function Dt(){if(n.toolbarMapMode&&N.value){const l=!ae.value;c(l?"year":null),Oe(l?"year":null),ae.value=l,l&&(E.value=C.value,ne.value=L.value);return}const i=!p.value;c(i?"year":null),p.value=i}G(p,i=>{i&&(E.value=C.value,ne.value=L.value)}),G(ae,i=>{i&&(c("year"),Oe("year"),E.value=C.value,ne.value=L.value)}),ot(Y,()=>{p.value=!1});const ul=y(()=>{const i=C.value.trim(),l=L.value.trim();return!i&&!l?r("سا٠ساخت","Year","Ø³ÙØ© Ø§ÙØµÙع"):i&&l?`${i} - ${l}`:i?r(`از ${i}`,`From ${i}`,`Ù
Ù ${i}`):r(`تا ${l}`,`To ${l}`,`Ø¥ÙÙ ${l}`)});function Lt(){E.value="",ne.value=""}function Ot(){C.value=E.value.trim(),L.value=ne.value.trim(),p.value=!1,ae.value=!1,w()}function cl(){if(n.toolbarMapMode&&N.value){const l=!Fe.value;c(l?"price":null),Oe(l?"price":null),Fe.value=l,l&&(Me.value=h.value,Ce.value=R.value);return}const i=!pe.value;c(i?"price":null),pe.value=i}G(pe,i=>{i&&(Me.value=h.value,Ce.value=R.value)}),G(Fe,i=>{i&&(c("price"),Oe("price"),Me.value=h.value,Ce.value=R.value)}),ot(mt,()=>{pe.value=!1});const dl=y(()=>{const i=h.value.trim(),l=R.value.trim();if(!i&&!l)return r("ÙÛÙ
ت (AED)","Price (AED)","Ø§ÙØ³Ø¹Ø± (AED)");const z=i?Ee(i):"â",d=l?Ee(l):"â";return`${z} - ${d}`}),xt=y(()=>
1{if(M.value||B.value)return"";const i=Me.value;if(!i)return"";const l=Number(i);if(!Number.isFinite(l)||l<=0)return"";const z=yt(l);return z?`${z} درÙÙ
`:""}),vt=y(()=>{if(M.value||B.value)return"";const i=Ce.value;if(!i)return"";const l=Number(i);if(!Number.isFinite(l)||l<=0)return"";const z=yt(l);return z?`${z} درÙÙ
`:""});function Tt(){Me.value="",Ce.value=""}function Et(){h.value=Me.value,R.value=Ce.value,pe.value=!1,Fe.value=!1,w()}function Nt(i){Me.value=st(i.target.value)}function qt(i){Ce.value=st(i.target.value)}return Al([v,C,L,h,R],()=>{p.value||pe.value||w()},{debounce:420,maxWait:2500}),(i,l)=>{const z=Gt;return s.variant==="toolbar"?(a(),u("div",{key:0,class:D(["vehicle-filter-toolbar min-w-0",[n.toolbarMapMode?"w-max space-y-0":"w-full space-y-3"]]),dir:e(M)?"ltr":"rtl"},[n.toolbarMapMode?V("",!0):(a(),u("div",No,[t("button",{type:"button",class:D(["rounded-lg border px-2.5 py-1.5 text-[11px] font-semibold sm:text-[12px]",e(x)===""?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[0]||(l[0]=d=>x.value="")},o(r("ÙÙ
Ù","All")),3),t("button",{type:"button",class:D(["rounded-lg border px-2.5 py-1.5 text-[11px] font-semibold sm:text-[12px]",e(x)==="car_sale"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[1]||(l[1]=d=>x.value="car_sale")},o(r("Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø®ÙØ¯Ø±Ù","Cars for sale")),3),t("button",{type:"button",class:D(["rounded-lg border px-2.5 py-1.5 text-[11px] font-semibold sm:text-[12px]",e(x)==="motor_sale"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[2]||(l[2]=d=>x.value="motor_sale")},o(r("Ù
ÙØªÙر","Motorcycles")),3),t("button",{type:"button",class:D(["rounded-lg border px-2.5 py-1.5 text-[11px] font-semibold sm:text-[12px]",e(x)==="rent"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[3]||(l[3]=d=>x.value="rent")},o(r("اجارÙ","Rental")),3),t("button",{type:"button",class:D(["rounded-lg border px-2.5 py-1.5 text-[11px] font-semibold sm:text-[12px]",e(x)==="parts"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[4]||(l[4]=d=>x.value="parts")},o(r("ÙØ·Ø¹Ø§Øª","Parts")),3),t("button",{type:"button",class:D(["rounded-lg border px-2.5 py-1.5 text-[11px] font-semibold sm:text-[12px]",e(x)==="plate"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[5]||(l[5]=d=>x.value="plate")},o(r("Ù¾ÙØ§Ú©","Number plates")),3)])),t("div",{class:D(["flex min-w-0 items-end gap-2 pb-0.5",n.toolbarMapMode?"flex-nowrap":"flex-wrap"])},[t("div",{ref_key:"regionMenuRef",ref:Ie,class:"relative shrink-0"},[t("button",{type:"button",class:D(["flex h-10 max-w-[11rem] min-w-[8.5rem] items-center justify-between gap-1.5 rounded-lg border border-gray-300 bg-white px-2.5 text-start text-[13px] font-medium text-gray-900 shadow-sm transition focus:outline-none focus-visible:ring-2 focus-visible:ring-[#e01b22]/35",e(Se)?"border-[#e01b22]/45 ring-1 ring-[#e01b22]/25":""]),"aria-haspopup":"listbox","aria-expanded":e(Se),onClick:ye(lt,["stop"])},[t("span",Uo,o(e(De)),1),k(e(Ye),{class:"h-4 w-4 shrink-0 opacity-50","aria-hidden":"true"})],10,qo),k(He,{"enter-active-class":"transition duration-150 ease-out","enter-from-class":"opacity-0 translate-y-0.5","leave-active-class":"transition duration-100 ease-in","leave-to-class":"opacity-0"},{default:J(()=>[e(Se)?(a(),u("div",{key:0,class:"absolute end-0 z-[100] mt-1.5 w-[min(18rem,calc(100vw-4rem))] overflow-hidden rounded-xl border border-gray-200 bg-white shadow-xl [color-scheme:light]",role:"listbox","aria-label":r("ÙÛÙØªØ± Ù
ÙØ·ÙÙ","Area filter")},[t("div",Io,[be(t("input",{"onUpdate:modelValue":l[6]||(l[6]=d=>le(te)?te.value=d:null),type:"search",autocomplete:"off",placeholder:r("جستجÙÛ Ù
ÙØ·ÙÙâ¦","Search area..."),class:"h-9 w-full rounded-lg border border-gray-200 px-2.5 text-[12px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/40"},null,8,Yo),[[ve,e(te)]])]),t("div",Ho,[t("button",{type:"button",class:"text-end text-[11px] font-semibold text-[#e01b22] hover:underline",onClick:Ve},o(r("ÙÙ
Ù Ù
ÙØ§Ø·Ù","All areas")),1),(a(!0),u(X,null,ie(e(ge),d=>(a(),u("label",{key:`tb-${d}`,class:"flex cursor-pointer items-start gap-2 rounded-md px-1.5 py-1 text-[12px] hover:bg-slate-50"},[t("input",{type:"checkbox",class:"mt-0.5 h-4 w-4 shrink-0 rounded border-gray-300 text-[#e01b22] focus:ring-[#e01b22]",checked:Ue(d),onChange:Re=>ze(d)},null,40,Qo),t("span",Ko,o(_(d)),1)]))),128)),e(ge).length===0?(a(),u("p",Wo,o(r("Ù
ÙØ±Ø¯Û ÛØ§Ùت ÙØ´Ø¯","No results found")),1)):V("",!0)])],8,zo)):V("",!0)]),_:1}
1)],512),k(z,{modelValue:e(me),"onUpdate:modelValue":l[7]||(l[7]=d=>le(me)?me.value=d:null),panel:"list","avoid-collisions":!1,"overlay-z-class":"z-[130]",options:e(we),placeholder:r("ÙÙ
Ù Ø¨Ø±ÙØ¯Ùا","All brands"),class:"h-10 min-h-10 w-[10.25rem] min-w-[10.25rem] max-w-[14rem] shrink-0 rounded-lg border-gray-200 text-[13px]"},null,8,["modelValue","options","placeholder"]),t("div",{ref_key:"yearMenuRef",ref:Y,class:"relative shrink-0"},[t("button",{type:"button",class:D(["flex h-10 max-w-[10.5rem] min-w-[8.5rem] items-center justify-between gap-1.5 rounded-lg border border-gray-300 bg-white px-2.5 text-start text-[13px] font-medium text-gray-900 shadow-sm transition focus:outline-none focus-visible:ring-2 focus-visible:ring-[#e01b22]/35",e(p)?"border-[#e01b22]/45 ring-1 ring-[#e01b22]/25":""]),"aria-haspopup":"dialog","aria-expanded":e(p),onClick:ye(Dt,["stop"])},[t("span",Jo,o(e(ul)),1),k(e(Ye),{class:"h-4 w-4 shrink-0 opacity-50","aria-hidden":"true"})],10,Go),k(He,{"enter-active-class":"transition duration-150 ease-out","enter-from-class":"opacity-0 translate-y-0.5","leave-active-class":"transition duration-100 ease-in","leave-to-class":"opacity-0"},{default:J(()=>[e(p)?(a(),u("div",{key:0,class:"absolute end-0 z-[100] mt-1.5 w-[min(19rem,calc(100vw-4rem))] overflow-hidden rounded-xl border border-gray-200 bg-white p-3 shadow-xl [color-scheme:light]",role:"dialog","aria-label":r("ÙÛÙØªØ± سا٠ساخت","Year filter")},[t("p",Zo,o(r("سا٠ساخت","Year")),1),t("div",en,[t("div",null,[t("label",tn,o(r("از","From")),1),be(t("input",{"onUpdate:modelValue":l[8]||(l[8]=d=>le(E)?E.value=d:null),type:"text",inputmode:"numeric",placeholder:r("Ù
Ø«ÙØ§Ù 2020","e.g. 2020"),class:"h-10 w-full rounded-lg border border-gray-200 px-2.5 text-center text-[13px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35"},null,8,ln),[[ve,e(E)]])]),t("div",null,[t("label",on,o(r("تا","To")),1),be(t("input",{"onUpdate:modelValue":l[9]||(l[9]=d=>le(ne)?ne.value=d:null),type:"text",inputmode:"numeric",placeholder:r("ÙØ± Ù
ÙØ¯Ø§Ø±Û","Any"),class:"h-10 w-full rounded-lg border border-gray-200 px-2.5 text-center text-[13px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35"},null,8,nn),[[ve,e(ne)]])])]),t("div",rn,[t("button",{type:"button",class:"h-10 flex-1 rounded-lg bg-[#e01b22] text-[12px] font-semibold text-white shadow-sm transition hover:bg-[#c4161c]",onClick:Ot},o(r("تأÛÛØ¯","Confirm")),1),t("button",{type:"button",class:"h-10 flex-1 rounded-lg border-2 border-[#e01b22] bg-white text-[12px] font-semibold text-[#e01b22] transition hover:bg-red-50/90",onClick:Lt},o(r("Ø¨Ø§Ø²ÙØ´Ø§ÙÛ","Reset")),1)])],8,Xo)):V("",!0)]),_:1})],512),t("div",{ref_key:"priceMenuRef",ref:mt,class:"relative shrink-0"},[t("button",{type:"button",class:D(["flex h-10 max-w-[12rem] min-w-[9rem] items-center justify-between gap-1.5 rounded-lg border border-gray-300 bg-white px-2.5 text-start text-[13px] font-medium text-gray-900 shadow-sm transition focus:outline-none focus-visible:ring-2 focus-visible:ring-[#e01b22]/35",e(pe)?"border-[#e01b22]/45 ring-1 ring-[#e01b22]/25":""]),"aria-haspopup":"dialog","aria-expanded":e(pe),onClick:ye(cl,["stop"])},[t("span",an,o(e(dl)),1),k(e(Ye),{class:"h-4 w-4 shrink-0 opacity-50","aria-hidden":"true"})],10,sn),k(He,{"enter-active-class":"transition duration-150 ease-out","enter-from-class":"opacity-0 translate-y-0.5","leave-active-class":"transition duration-100 ease-in","leave-to-class":"opacity-0"},{default:J(()=>[e(pe)?(a(),u("div",{key:0,class:"absolute end-0 z-[100] mt-1.5 w-[min(20rem,calc(100vw-4rem))] overflow-hidden rounded-xl border border-gray-200 bg-white p-3 shadow-xl [color-scheme:light]",role:"dialog","aria-label":r("ÙÛÙØªØ± ÙÛÙ
ت","Price filter")},[t("p",cn,o(r("ÙÛÙ
ت (AED)","Price (AED)")),1),t("div",dn,[t("div",null,[t("label",pn,o(r("ØØ¯Ø§ÙÙ","Minimum")),1),t("input",{value:e(Ee)(e(Me)),type:"text",inputmode:"numeric",autocomplete:"off",placeholder:r("Ù
Ø«ÙØ§Ù 0","e.g. 0"),class:"h-10 w-full rounded-lg border border-gray-200 px-2 text-[12px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35",onInput:Nt},null,40,bn),e(xt)?(a(),u("p",fn,o(e(xt)),1)):V("",!0)]),t("div",null,[t("label",mn,o(r("ØØ¯Ø§Ú©Ø«Ø±","Maximum")),1),t("input",{value:e(Ee)(e(Ce)),type:"text",inputmode:"numeric",autocomplete:"off",placeholder:r("بدÙ٠سÙÙ","No maximum"),class:"h-10 w-full rounded-lg border border-gray-200 px-2 text-[12px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35",onInput:qt},null,40,xn),e(vt)?(a(),u("p",vn,o(e(vt)),1)):V("",!0)])]),t("div",gn,[t("button",{type:"button",class:"h-10 flex-1 rounded-lg bg-[#e01b22] text-[12px] font-semibold text-white shadow-sm transition hover:bg-[#c4161c]",onClick:Et},o(r("تأÛÛØ¯","Confirm")),1),t("button",{type:"button",class:"h-10 flex-1 rounded-lg border-2 border-[#e01b22] bg-white text-[12px] font-semibold text-[#e01b22] transition hover:bg-red-50/90",onClick:Tt}
1,o(r("Ø¨Ø§Ø²ÙØ´Ø§ÙÛ","Reset")),1)])],8,un)):V("",!0)]),_:1})],512),n.showSort?(a(),ue(z,{key:0,modelValue:e(U),"onUpdate:modelValue":l[10]||(l[10]=d=>le(U)?U.value=d:null),panel:"list","overlay-z-class":"z-[130]","trigger-prefix":r("Ù
Ø±ØªØ¨âØ³Ø§Ø²Û:","Sort:"),options:e(ke),placeholder:r("Ø§ÙØªØ®Ø§Ø¨","Select"),class:"h-10 min-h-10 w-[12.5rem] min-w-[12.5rem] max-w-[16rem] shrink-0 rounded-lg border-gray-200 text-[13px]"},null,8,["modelValue","trigger-prefix","options","placeholder"])):V("",!0),n.toolbarMapMode?V("",!0):(a(),u("button",{key:1,type:"button",class:"mb-px h-10 shrink-0 rounded-lg border border-gray-200 bg-white px-3 text-[13px] font-semibold text-slate-600 shadow-sm transition hover:bg-slate-50",onClick:l[11]||(l[11]=d=>e(m).clearFilters())},o(r("ØØ°Ù ÙÛÙØªØ±Ùا","Clear filters")),1))],2),e(F)==="__other__"?be((a(),u("input",{key:1,"onUpdate:modelValue":l[12]||(l[12]=d=>le(v)?v.value=d:null),type:"text",placeholder:r("ÙØ§Ù
Ø¨Ø±ÙØ¯","Brand name"),class:"h-10 w-full max-w-md rounded-lg border border-gray-200 px-3 text-[13px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]"},null,8,hn)),[[ve,e(v)]]):V("",!0),(a(),ue(pt,{to:"body"},[k(He,{name:"select-mobile-sheet"},{default:J(()=>
1[e(de)?(a(),u("div",{key:0,class:"fixed inset-0 z-[260] flex items-end bg-black/40",onClick:l[16]||(l[16]=ye(d=>de.value=!1,["self"]))},[t("div",{class:"mx-auto w-full max-w-lg px-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",onClick:l[15]||(l[15]=ye(()=>{},["stop"]))},[l[40]||(l[40]=t("div",{class:"mx-auto mb-2 h-1 w-10 rounded-full bg-white/80 shadow-sm","aria-hidden":"true"},null,-1)),t("div",yn,[t("div",_n,[t("button",{type:"button",class:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-gray-600",onClick:l[13]||(l[13]=d=>de.value=!1)},[k(e(ht),{class:"h-4 w-4","aria-hidden":"true"})]),t("p",wn,o(r("Ù
ÙØ·ÙÙ","Area")),1),t("button",{type:"button",class:"text-[13px] font-semibold text-[#e01b22]",onClick:Ve},o(r("ÙÙ
Ù","All")),1)]),t("div",kn,[t("div",$n,[be(t("input",{"onUpdate:modelValue":l[14]||(l[14]=d=>le(te)?te.value=d:null),type:"search",autocomplete:"off",placeholder:r("جستجÙ...","Search..."),class:"h-11 w-full rounded-xl border border-gray-200 px-3 text-[13px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35"},null,8,Sn),[[ve,e(te)]])]),t("div",Mn,[(a(!0),u(X,null,ie(e(ge),d=>(a(),u("label",{key:`mobile-region-${d}`,class:"flex cursor-pointer items-center justify-between gap-3 rounded-xl border border-gray-200 bg-gray-50/70 px-3 py-2.5 text-[13px]"},[t("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-[#e01b22] focus:ring-[#e01b22]",checked:Ue(d),onChange:Re=>ze(d)},null,40,Cn),t("span",{class:D(["min-w-0 flex-1 text-[#334155]",e(M)?"text-left":"text-right"])},o(_(d)),3)]))),128)),e(ge).length===0?(a(),u("p",Ln,o(r("Ù
ÙØ±Ø¯Û ÛØ§Ùت ÙØ´Ø¯","No results found")),1)):V("",!0)])])])])])):V("",!0)]),_:1})])),(a(),ue(pt,{to:"body"},[k(He,{name:"select-mobile-sheet"},{default:J(()=>[e(ae)?(a(),u("div",{key:0,class:"fixed inset-0 z-[261] flex items-end bg-black/40",onClick:l[21]||(l[21]=ye(d=>ae.value=!1,["self"]))},[t("div",{class:"mx-auto w-full max-w-lg px-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",onClick:l[20]||(l[20]=ye(()=>{},["stop"]))},[l[41]||(l[41]=t("div",{class:"mx-auto mb-2 h-1 w-10 rounded-full bg-white/80 shadow-sm","aria-hidden":"true"},null,-1)),t("div",Tn,[t("div",An,[t("button",{type:"button",class:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-gray-600",onClick:l[17]||(l[17]=d=>ae.value=!1)},[k(e(ht),{class:"h-4 w-4","aria-hidden":"true"})]),t("p",Fn,o(r("سا٠ساخت","Year")),1),t("button",{type:"button",class:"text-[13px] font-semibold text-[#e01b22]",onClick:Lt},o(r("Ø¨Ø§Ø²ÙØ´Ø§ÙÛ","Reset")),1)]),t("div",Rn,[t("div",Vn,[t("div",null,[t("label",Pn,o(r("از","From")),1),be(t("input",{"onUpdate:modelValue":l[18]||(l[18]=d=>le(E)?E.value=d:null),type:"text",inputmode:"numeric",autocomplete:"off",placeholder:r("Ù
Ø«ÙØ§ 2020","e.g. 2020"),class:"h-12 w-full rounded-xl border border-gray-200 px-3 text-center text-[14px] font-medium text-gray-900 focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35"},null,8,Bn),[[ve,e(E)]])]),t("div",null,[t("label",jn,o(r("تا","To")),1),be(t("input",{"onUpdate:modelValue":l[19]||(l[19]=d=>le(ne)?ne.value=d:null),type:"text",inputmode:"numeric",autocomplete:"off",placeholder:r("Ù
Ø«ÙØ§ 2024","e.g. 2024"),class:"h-12 w-full rounded-xl border border-gray-200 px-3 text-center text-[14px] font-medium text-gray-900 focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35"},null,8,Dn),[[ve,e(ne)]])])]),t("div",On,[t("button",{type:"button",class:"h-12 flex-1 rounded-xl bg-[#e01b22] text-[14px] font-semibold text-white shadow-sm transition hover:bg-[#c4161c]",onClick:Ot},o(r("تاÛÛØ¯","Confirm")),1),t("button",{type:"button",class:"h-12 flex-1 rounded-xl border-2 border-[#e01b22] bg-white text-[14px] font-semibold text-[#e01b22] transition hover:bg-red-50/90",onClick:Lt},o(r("Ø¨Ø§Ø²ÙØ´Ø§ÙÛ","Reset")),1)])])])])])):V("",!0)]),_:1})])),(a(),ue(pt,{to:"body"},[k(He,{name:"select-mobile-sheet"},{default:J(()=>[e(Fe)?(a(),u("div",{key:0,class:"fixed inset-0 z-[262] flex items-end bg-black/40",onClick:l[24]||(l[24]=ye(d=>Fe.value=!1,["self"]))},[t("div",{class:"mx-auto w-full max-w-lg px-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",onClick:l[23]||(l[23]=ye(()=>{},["stop"]))},[l[42]||(l[42]=t("div",{class:"mx-auto mb-2 h-1 w-10 rounded-full bg-white/80 shadow-sm","aria-hidden":"true"},null,-1)),t("div",En,[t("div",Nn,[t("button",{type:"button",class:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 bg-white text-gray-600",onClick:l[22]||(l[22]=d=>Fe.value=!1)},[k(e(ht),{class:"h-4 w-4","aria-hidden":"true"})]),t("p",qn,o(r("ÙÛÙ
ت (AED)","Price (AED)")),1),t("button",{type:"button",class:"text-[13px] font-semibold text-[#e01b22]",onClick:Tt}
1,o(r("Ø¨Ø§Ø²ÙØ´Ø§ÙÛ","Reset")),1)]),t("div",Un,[t("div",zn,[t("div",null,[t("label",In,o(r("ØØ¯Ø§ÙÙ","Minimum")),1),t("input",{value:e(Ee)(e(Me)),type:"text",inputmode:"numeric",autocomplete:"off",placeholder:r("Ù
Ø«ÙØ§ 0","e.g. 0"),class:"h-12 w-full rounded-xl border border-gray-200 px-3 text-center text-[14px] font-medium text-gray-900 focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35",onInput:Nt},null,40,Yn),e(xt)?(a(),u("p",Hn,o(e(xt)),1)):V("",!0)]),t("div",null,[t("label",Qn,o(r("ØØ¯Ø§Ú©Ø«Ø±","Maximum")),1),t("input",{value:e(Ee)(e(Ce)),type:"text",inputmode:"numeric",autocomplete:"off",placeholder:r("بدÙ٠سÙÙ","No maximum"),class:"h-12 w-full rounded-xl border border-gray-200 px-3 text-center text-[14px] font-medium text-gray-900 focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]/35",onInput:qt},null,40,Kn),e(vt)?(a(),u("p",Wn,o(e(vt)),1)):V("",!0)])]),t("div",Gn,[t("button",{type:"button",class:"h-12 flex-1 rounded-xl bg-[#e01b22] text-[14px] font-semibold text-white shadow-sm transition hover:bg-[#c4161c]",onClick:Et},o(r("تاÛÛØ¯","Confirm")),1),t("button",{type:"button",class:"h-12 flex-1 rounded-xl border-2 border-[#e01b22] bg-white text-[14px] font-semibold text-[#e01b22] transition hover:bg-red-50/90",onClick:Tt},o(r("Ø¨Ø§Ø²ÙØ´Ø§ÙÛ","Reset")),1)])])])])])):V("",!0)]),_:1})]))],10,Eo)):(a(),u("div",{key:1,class:"space-y-6",dir:e(M)?"ltr":"rtl"},[n.hideDealType?V("",!0):(a(),u("section",Xn,[t("p",Zn,o(r("ÙÙØ¹ Ø¢Ú¯ÙÛ","Listing type")),1),t("div",er,[t("button",{type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",e(x)===""?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[25]||(l[25]=d=>x.value="")},o(r("ÙÙ
Ù","All")),3),t("button",{type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",e(x)==="car_sale"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[26]||(l[26]=d=>x.value="car_sale")},o(r("Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø®ÙØ¯Ø±Ù","Cars for sale")),3),t("button",{type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",e(x)==="motor_sale"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[27]||(l[27]=d=>x.value="motor_sale")},o(r("Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ù
ÙØªÙر","Motorcycles for sale")),3),t("button",{type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",e(x)==="rent"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[28]||(l[28]=d=>x.value="rent")},o(r("Ø§Ø¬Ø§Ø±Ù Ø®ÙØ¯Ø±Ù","Car rental")),3),t("button",{type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",e(x)==="parts"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[29]||(l[29]=d=>x.value="parts")},o(r("ÙÙØ§Ø²Ù
Ù ÙØ·Ø¹Ø§Øª","Parts and accessories")),3),t("button",{type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",e(x)==="plate"?"border-[#e01b22] bg-[#e01b22] text-white":"border-gray-200 bg-white text-gray-700"]),onClick:l[30]||(l[30]=d=>x.value="plate")},o(r("Ù¾ÙØ§Ú©","Number plates")),3)])])),t("section",null,[t("div",tr,[t("p",lr,o(r("Ù
ÙØ·ÙÙ","Area")),1),t("button",{type:"button",class:"text-[12px] font-semibold text-[#e01b22] hover:underline",onClick:Ve},o(r("ÙÙ
Ù Ù
ÙØ§Ø·Ù","All areas")),1)]),t("p",or,o(r("ÚÙØ¯ Ù
ÙØ·Ù٠را جستج٠کÙÛØ¯ ٠اضاÙÙ Ú©ÙÛØ¯Ø ÙØ± کداÙ
را با Ã ØØ°Ù Ú©ÙÛØ¯. در ÙØªØ§Ûج با ÙÙ
OR اعÙ
ا٠Ù
ÛâØ´ÙØ¯.","Search and add multiple areas. Remove each with Ã; selected areas are matched with OR.")),1),t("div",{ref_key:"stackedRegionComboRef",ref:Mt,class:"relative"},[t("div",{class:"flex min-h-[2.75rem] cursor-text flex-wrap items-center gap-1.5 rounded-xl border-2 border-[#0f766e]/35 bg-white px-2 py-2 ps-3 pe-10 shadow-sm transition focus-within:border-[#e01b22]/50 focus-within:ring-2 focus-within:ring-[#e01b22]/20",role:"combobox","aria-expanded":e(Pe),"aria-controls":"vehicle-region-suggestions",onClick:Ct},[(a(!0),u(X,null,ie(e(g),d=>(a(),u("span",{key:`tag-region-${d}`,class:"inline-flex max-w-full items-center gap-0.5 rounded-md bg-slate-100 py-0.5 ps-2 pe-0.5 text-[12px] font-medium text-[#334155]"},[t("span",rr,o(_(d)),1),t("button",{type:"button",class:"rounded p-0.5 text-slate-500 transition hover:bg-slate-200/90 hover:text-[#e01b22]","aria-label":r(`ØØ°Ù ${d}`,`Remove ${_(d)}`),onClick:ye(Re=>tt(d),["stop"])}
1,[k(e(ht),{class:"h-3.5 w-3.5","stroke-width":"2.25","aria-hidden":"true"})],8,sr)]))),128)),be(t("input",{id:"vehicle-region-combo-input",ref_key:"regionInputRef",ref:he,"onUpdate:modelValue":l[31]||(l[31]=d=>le(te)?te.value=d:null),type:"text",autocomplete:"off",placeholder:e(g).length?r("ÙØ§Ù
Ù
ÙØ·Ù٠را بÙÙÛØ³Ûدâ¦","Type an area name..."):r("Ø¬Ø³ØªØ¬Ù ÛØ§ Ø§ÙØªØ®Ø§Ø¨ Ù
ÙØ·ÙÙâ¦","Search or select an area..."),class:"min-w-[6rem] flex-1 border-0 bg-transparent py-1 text-[13px] text-[#334155] placeholder:text-slate-400 focus:outline-none focus:ring-0",onFocus:l[32]||(l[32]=d=>et.value=!0),onKeydown:bt},null,40,ar),[[ve,e(te)]]),k(e(Bt),{class:"pointer-events-none absolute end-2.5 top-1/2 h-[18px] w-[18px] -translate-y-1/2 text-[#0f766e]","aria-hidden":"true"})],8,nr),be(t("div",ir,[(a(!0),u(X,null,ie(e(Ae),d=>(a(),u("button",{key:`stack-pick-${d}`,type:"button",role:"option",class:D(["flex w-full px-3 py-2.5 text-[13px] text-[#334155] transition hover:bg-slate-50",e(M)?"text-left":"text-right"]),onMousedown:l[33]||(l[33]=ye(()=>{},["prevent"])),onClick:Re=>it(d)},o(_(d)),43,ur))),128)),e(Ae).length===0&&xe(e(te))!==""?(a(),u("p",cr,o(r("Ù
ÙØ·ÙÙâØ§Û Ø¨Ø§ اÛ٠عبارت ÙÛØ³Øª","No area matches this search")),1)):V("",!0)],512),[[$l,e(Pe)]])],512)]),t("section",null,[t("label",dr,o(r("Ø¨Ø±ÙØ¯","Brand")),1),s.variant==="stacked"&&e(N)?(a(),u("div",{key:0,ref_key:"brandMenuRef",ref:Be,class:"relative"},[t("button",{type:"button",class:"flex h-11 w-full items-center justify-between rounded-xl border border-gray-200 bg-white px-3 text-[13px] text-[#334155] shadow-sm",onClick:Ne},[t("span",{class:D(["min-w-0 flex-1 truncate font-medium",e(M)?"text-left":"text-right"])},o(e(Ge)),3),k(e(Ye),{class:"h-4 w-4 shrink-0 opacity-50","aria-hidden":"true"})]),e(Te)?(a(),u("div",pr,[t("div",br,[(a(!0),u(X,null,ie(e(we),d=>(a(),u("button",{key:String(d.value),type:"button",class:D(["flex w-full items-center justify-between gap-3 px-4 py-3 text-[13px] text-[#334155] transition hover:bg-slate-50",e(M)?"text-left":"text-right"]),onClick:Re=>Je(String(d.value))},[t("span",mr,o(_(d.label)),1),String(d.value)===String(e(me))?(a(),u("span",xr)):V("",!0)],10,fr))),128))])])):V("",!0)],512)):(a(),ue(z,{key:1,modelValue:e(me),"onUpdate:modelValue":l[34]||(l[34]=d=>le(me)?me.value=d:null),panel:"list","avoid-collisions":!1,options:e(we),placeholder:r("ÙÙ
Ù Ø¨Ø±ÙØ¯Ùا","All brands"),class:"h-11 min-h-[2.75rem] w-full rounded-xl border-gray-200"},null,8,["modelValue","options","placeholder"])),e(F)==="__other__"?be((a(),u("input",{key:2,"onUpdate:modelValue":l[35]||(l[35]=d=>le(v)?v.value=d:null),type:"text",placeholder:r("ÙØ§Ù
Ø¨Ø±ÙØ¯","Brand name"),class:"mt-2 h-11 w-full rounded-xl border border-gray-200 px-3 text-[13px] focus:border-[#e01b22] focus:outline-none focus:ring-1 focus:ring-[#e01b22]"},null,8,vr)),[[ve,e(v)]]):V("",!0)]),(a(!0),u(X,null,ie(e(Le),d=>(a(),u("details",{key:d.key,class:"group overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm"},[t("summary",{class:D(["flex cursor-pointer list-none items-center justify-between gap-3 px-4 py-3 [&::-webkit-details-marker]:hidden",e(M)?"text-left":"text-right"])},[k(e(Ye),{class:"h-4 w-4 shrink-0 text-slate-400 transition group-open:rotate-180","aria-hidden":"true"}),t("span",gr,[t("span",hr,o(d.title),1),t("span",yr,o(ee(d.options,d.model.value)),1)])],2),t("div",_r,[t("div",wr,[(a(!0),u(X,null,ie(d.options,Re=>(a(),u("button",{key:`${d.key}-${Re.value}`,type:"button",class:D(["rounded-xl border px-3 py-2 text-[12px] font-semibold sm:text-[13px]",String(d.model.value)===String(Re.value)?"border-[#e01b22] bg-[#e01b22] text-white shadow-sm":"border-gray-200 bg-[#F3F4F6] text-gray-700 hover:bg-gray-200/80"]),onClick:Za=>re(d.model,Re.value)},o(_(Re.label)),11,kr))),128))])])]))),128)),t("details",$r,[t("summary",{class:D(["flex cursor-pointer list-none items-center justify-between gap-3 px-4 py-3 [&::-webkit-details-marker]:hidden",e(M)?"text-left":"text-right"])},[k(e(Ye),{class:"h-4 w-4 shrink-0 text-slate-400 transition group-open:rotate-180","aria-hidden":"true"}),t("span",Sr,[t("span",Mr,o(r("اÙ
Ú©Ø§ÙØ§Øª Ù ÙÛÚÚ¯ÛâÙØ§","Features and options")),1),t("span",Cr,o(e(fe)),1)])],2),t("div",Lr,[k($o,{modelValue:e(P),"onUpdate:modelValue":l[36]||(l[36]=d=>le(P)?P.value=d:null),inline:""},null,8,["modelValue"])])]),t("section",Tr,[t("div",null,[t("label",Ar,o(r("از ساÙ","From year")),1),be(t("input",{"onUpdate:modelValue":l[37]||(l[37]=d=>le(C)?C.value=d:null),type:"text",inputmode:"numeric",class:"h-11 w-full rounded-xl border border-gray-200 px-3 text-[13px]"},null,512),[[ve,e(C)]])]),t("div",null,[t("label",Fr,o(r("تا ساÙ","To year")),1),be(t("input",{"onUpdate:modelValue":l[38]||(l[38]=d=>le(L)?L.value=d:null),type:"text",inputmode:"numeric",class:"h-11 w-full rounded-xl border border-gray-200 px-3 text-[13px]"},null,512),[[ve,e(L)]])])]),t("section",Rr,[t("div",null,[t("label",Vr,o(r("ØØ¯Ø§ÙÙ ÙÛÙ
ت (AED)","Minimum price (AED)")),1),t("input",{value:e(Ee)(e(h)),type:"text",inputmode:"numeric",autocomplete:"off",class:"h-11 w-full rounded-xl border border-gray-200 px-3 text-[13px]",onInput:ft},null,40,Pr),e(ut)?(a(),u("p",Br,o(e(ut)),1)):V("",!0)]),t("div",null,[t("label",jr,o(r("ØØ¯Ø§Ú©Ø«Ø± ÙÛÙ
ت (AED)","Maximum price (AED)")),1),t("input",{value:e(Ee)(e(R)),type:"text",inputmode:"numeric",autocomplete:"off",class:"h-11 w-full rounded-xl border border-gray-200 px-3 text-[13px]",onInput:f},null,40,Dr),e(ct)?(a(),u("p",Or,o(e(ct)),1)):V("",!0)])]),n.showSort?(a(),u("section",Er,[s.variant==="stacked"&&e(N)?(a(),u("div",{key:0,ref_key:"sortMenuRef",ref:je,class:"relative"},[t("button",{type:"button",class:"flex h-11 w-full items-center justify-between rounded-xl border border-gray-200 bg-white px-3 text-[13px] text-[#334155] shadow-sm",onClick:Xe},[t("span",{class:D(["min-w-0 flex-1 truncate font-medium",e(M)?"text-left":"text-right"])},o(r("Ù
Ø±ØªØ¨âØ³Ø§Ø²Û:","Sort:"))+" "+o(e(qe)),3),k(e(Ye),{class:"h-4 w-4 shrink-0 opacity-50","aria-hidden":"true"})]),e($e)?(a(),u("div",Nr,[t("div",qr,[(a(!0),u(X,null,ie(e(ke),d=>(a(),u("button",{key:String(d.value),type:"button",class:D(["flex w-full items-center justify-between gap-3 px-4 py-3 text-[13px] text-[#334155] transition hover:bg-slate-50",e(M)?"text-left":"text-right"]),onClick:Re=>Ze(String(d.value))}
1,[t("span",zr,o(_(d.label)),1),String(d.value)===String(e(U))?(a(),u("span",Ir)):V("",!0)],10,Ur))),128))])])):V("",!0)],512)):(a(),ue(z,{key:1,modelValue:e(U),"onUpdate:modelValue":l[39]||(l[39]=d=>le(U)?U.value=d:null),panel:"list","trigger-prefix":r("Ù
Ø±ØªØ¨âØ³Ø§Ø²Û:","Sort:"),options:e(ke),placeholder:r("Ø§ÙØªØ®Ø§Ø¨","Select"),class:"h-11 min-h-[2.75rem] w-full rounded-xl border-gray-200"},null,8,["modelValue","trigger-prefix","options","placeholder"]))])):V("",!0)],8,Jn))}}}),kt=jt(Yr,[["__scopeId","data-v-18d8c71e"]]),Hr=["dir","aria-label"],Qr={class:"mb-4 shrink-0 text-base font-bold text-[#142032]"},Kr={class:"vehicle-filter-sidebar-scroll min-h-0 flex-1 basis-0 overflow-y-auto overscroll-contain pe-0.5 [-webkit-overflow-scrolling:touch]"},Wr={class:"mt-6 shrink-0 border-t border-gray-100 pt-5"},Gr=We({__name:"VehicleListDesktopSidebar.client",setup(s){const n=Pt(St);if(!n)throw new Error("[VehicleListDesktopSidebar] missing vehicleListFiltersInjectionKey");const{locale:$}=Ke(),m=y(()=>$.value==="en"),x=y(()=>$.value==="ar");function g(F,v,A){return x.value?A||It(v)||It(F):m.value?v:F}return(F,v)=>(a(),u("aside",{class:"vehicle-filter-sidebar-aside sticky top-6 flex min-h-0 w-full max-w-[340px] shrink-0 flex-col overflow-hidden rounded-2xl border border-gray-200 bg-white p-5 shadow-sm lg:h-[calc(100vh-3rem)] lg:max-h-[calc(100vh-3rem)]",dir:e(m)?"ltr":"rtl","aria-label":g("ÙÛÙØªØ±Ùا","Filters","اÙÙÙØ§ØªØ±")},[t("h2",Qr,o(g("جستج٠٠ÙÛÙØªØ±","Search and filters","Ø§ÙØ¨ØØ« ÙØ§ÙÙÙØ§ØªØ±")),1),t("div",Kr,[k(kt,{"instant-apply":"","show-sort":""})]),t("div",Wr,[t("button",{type:"button",class:"w-full rounded-xl border border-gray-200 py-3 text-[14px] font-bold text-gray-700 hover:bg-gray-50",onClick:v[0]||(v[0]=A=>e(n).clearFilters())},o(g("ØØ°Ù ÙÛÙØªØ±Ùا","Clear filters","Ù
Ø³Ø Ø§ÙÙÙØ§ØªØ±")),1)])],8,Hr))}}),Jr=jt(Gr,[["__scopeId","data-v-ef2e26a1"]]),at="||",nl=2e3;function oe(s){return s==null?"":typeof s=="string"?s:typeof s=="number"||typeof s=="boolean"?String(s):Array.isArray(s)?oe(s[0]):""}function Xr(s){const n=s.trim();if(!n)return;const $=n.split(at).flatMap(m=>m.split(",")).map(m=>m.trim()).filter(Boolean);if($.length)return $.join(",")}function Zr(s){switch(s){case"rent":return"Ø§Ø¬Ø§Ø±Ù Ø®ÙØ¯Ø±Ù";case"car_sale":return"Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø®ÙØ¯Ø±Ù";case"motor_sale":return"Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ù
ÙØªÙر";case"parts":return"Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ ÙÙØ§Ø²Ù
Ø¬Ø§ÙØ¨Û Ù ÙØ·Ø¹Ø§Øª";case"plate":return"Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø´Ù
Ø§Ø±Ù Ù¾ÙØ§Ú©";default:return""}}function rl(s){switch(s.trim()){case"cheapest":return"price-low";case"expensive":return"price-high";case"oldest":return"oldest";default:return"newest"}}function sl(s){const n={},$=oe(s.listing),m=oe(s.category_name);$==="rent"&&m.includes("اجارÙ")?n.dealType="Ø§Ø¬Ø§Ø±Ù Ø®ÙØ¯Ø±Ù":$==="sale"&&m==="Ø®ÙØ¯Ø±Ù"?n.dealType="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø®ÙØ¯Ø±Ù":$==="sale"&&m==="Ù
ÙØªÙر"?n.dealType="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ù
ÙØªÙر":$==="sale"&&m.includes("ÙØ·Ø¹Ø§Øª")?n.dealType="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ ÙÙØ§Ø²Ù
Ø¬Ø§ÙØ¨Û Ù ÙØ·Ø¹Ø§Øª":$==="sale"&&m==="Ù¾ÙØ§Ú©"&&(n.dealType="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø´Ù
Ø§Ø±Ù Ù¾ÙØ§Ú©");const x=oe(s.regions);if(x){const h=Zt(x);h.length&&(n.region=h.join(at))}else{const h=oe(s.city);if(h){const R=el(h);R.length&&(n.region=R.join(at))}}const g=oe(s.brand);g&&(n.carBrand=g.split(",").join(at));const F=oe(s.origin);F&&(n.origin=F);const v=oe(s.body_type);v&&(n.bodyType=v);const A=oe(s.color);A&&(n.color=A);const b=oe(s.number_of_cylinders);b&&(n.cylinders=b);const I=oe(s.seating_capacity);I&&(n.seating=I);const W=oe(s.doors);W&&(n.doors=W);const H=oe(s.seller_type);H&&(n.sellerType=H);const Q=oe(s.warranty);Q&&(n.warranty=Q);const O=oe(s.target_market);O&&(n.targetMarket=O);const K=oe(s.steering_side);K&&(n.steeringSide=K);const S=oe(s.features);S&&(n.features=S);const q=oe(s.year_min),P=oe(s.year_max);q&&(n.yearMin=q),P&&(n.yearMax=P);const C=oe(s.min_price),L=oe(s.max_price);return C&&(n.priceMin=C),L&&(n.priceMax=L),(s.near_me==="1"||s.near_me==="true")&&(n.near_me="ÙØ²Ø¯ÛÚ© Ù
Ù"),n}function al(s){const n={status:"active",...s.includeFacets!==!1?{include_facets:"true"}:{}};s.page!=null&&(n.page=s.page),s.page_size!=null&&(n.page_size=s.page_size);for(const[F,v]of Object.entries(s.selectedFilters))if(v?.trim())switch(F){case"near_me":break;case"carBrand":{const A=Xr(v);A&&(n.brand=A);break}case"origin":n.origin=v;break;case"bodyType":n.body_type=v;break;case"color":n.color=v.trim();break;case"cylinders":n.number_of_cylinders=v;break;case"seating":n.seating_capacity=nt(v)??v;break;case"doors":n.doors=nt(v)??v;break;case"sellerType":n.seller_type=v;break;case"warranty":n.warranty=v;break;case"targetMarket":n.target_market=v;break;case"steeringSide":n.steering_side=v;break;case"features":n.features=v;break;case"yearMin":case"yearMax":break;case"dealType":v==="Ø§Ø¬Ø§Ø±Ù Ø®ÙØ¯Ø±Ù"?(n.listing="rent",n.category_name="Ø§Ø¬Ø§Ø±Ù ÙØ³ÛÙÙ ÙÙÙÛÙ"):v==="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø®ÙØ¯Ø±Ù"?(n.listing="sale",n.category_name="Ø®ÙØ¯Ø±Ù"):v==="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ù
ÙØªÙر"?(n.listing="sale",n.category_name="Ù
ÙØªÙر"):v==="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ ÙÙØ§Ø²Ù
Ø¬Ø§ÙØ¨Û Ù ÙØ·Ø¹Ø§Øª"?(n.listing="sale",n.category_name="ÙÙØ§Ø²Ù
Ø¬Ø§ÙØ¨Û Ù ÙØ·Ø¹Ø§Øª"):v==="Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø´Ù
Ø§Ø±Ù Ù¾ÙØ§Ú©"&&(n.listing="sale",n.category_name="Ù¾ÙØ§Ú©");break;case"priceMin":{const A=nt(v);A!=null&&(n.min_price=A);break}case"priceMax":{const A=nt(v);A!=null&&(n.max_price=A);break}case"region":{const A=v.split(at).map(I=>
1I.trim()).filter(Boolean),b=tl(A);b&&(n.regions=b);break}}let $=nt(s.selectedFilters.yearMin??""),m=nt(s.selectedFilters.yearMax??"");if($!=null&&m!=null&&$>m){const F=$;$=m,m=F}$!=null&&(n.min_year=$),m!=null&&(n.max_year=m);const x=s.searchQuery.trim();if(x&&(n.search=x),s.selectedFilters.near_me!=null&&s.nearMeLat!=null&&s.nearMeLng!=null)n.lat=s.nearMeLat,n.lng=s.nearMeLng,n.radius_m=Math.min(2e4,Math.max(1,s.nearMeRadiusMeters??nl)),n.ordering="distance";else if(s.selectedSort.trim())switch(s.selectedSort){case"price-high":n.ordering="-price";break;case"price-low":n.ordering="price";break;case"newest":n.ordering="-created_at";break;case"oldest":n.ordering="created_at";break}return n}function Qt(s,n){const $=sl(s),m=rl(oe(s.sort));return al({selectedFilters:$,selectedSort:m,searchQuery:oe(s.search),nearMeLat:n?.nearMeLat??(s.lat?Number(s.lat):null),nearMeLng:n?.nearMeLng??(s.lng?Number(s.lng):null),nearMeRadiusMeters:nl,includeFacets:n?.includeFacets,page:n?.page,page_size:n?.page_size})}function il(s){const n={};for(const[$,m]of Object.entries(s))m!=null&&(typeof m=="string"&&!m.trim()||(n[$]=m));return n}async function At(s,n){return await $fetch("/api/vehicles/",{query:il({...s,page:n,page_size:s.page_size??20})})}async function es(s){const n={...s};delete n.include_facets;const $=await $fetch("/api/vehicles/",{query:il({...n,page:1,page_size:1})});return typeof $.count=="number"?$.count:0}const ts=["dir"],ls={class:"flex shrink-0 items-center gap-3 border-b border-[#e01b22]/15 bg-[#e01b22] px-4 py-3 text-white"},os=["aria-label"],ns={class:"min-w-0 flex-1 truncate text-[15px] font-bold"},rs={class:"min-h-0 flex-1 overflow-y-auto px-4 py-4 pb-28"},ss={class:"shrink-0 border-t border-gray-200 bg-white p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] shadow-[0_-4px_24px_rgba(0,0,0,0.08)]"},as={class:"flex gap-2"},is=["disabled"],us=We({__name:"VehicleListFilterSheet.client",props:Ml({searchQuery:{default:""},nearMeActive:{type:Boolean,default:!1},nearMeLat:{default:null},nearMeLng:{default:null}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(s){const n=s,$=Sl(s,"open"),{locale:m}=Ke(),x=y(()=>m.value==="en"),g=y(()=>m.value==="ar"),F=y(()=>x.value?"en-US":g.value?"ar-AE":"fa-IR");function v(h,R,U){return g.value?U:x.value?R:h}const A=Pt(St);if(!A)throw new Error("[VehicleListFilterSheet] missing vehicleListFiltersInjectionKey");const b=A,I=T(null),W=T(!1);let H=null;function Q(){const h={},R=Zr(b.dealPreset.value);R&&(h.dealType=R),b.selectedRegions.value.length&&(h.region=b.selectedRegions.value.join(at));const U=b.brand.value==="__other__"?b.brandOther.value.trim():b.brand.value.trim();return U&&(h.carBrand=U),b.origin.value.trim()&&(h.origin=b.origin.value.trim()),b.bodyType.value.trim()&&(h.bodyType=b.bodyType.value.trim()),b.color.value.trim()&&(h.color=b.color.value.trim()),b.cylinders.value.trim()&&(h.cylinders=b.cylinders.value.trim()),b.seating.value.trim()&&(h.seating=b.seating.value.trim()),b.doors.value.trim()&&(h.doors=b.doors.value.trim()),b.sellerType.value.trim()&&(h.sellerType=b.sellerType.value.trim()),b.warranty.value.trim()&&(h.warranty=b.warranty.value.trim()),b.targetMarket.value.trim()&&(h.targetMarket=b.targetMarket.value.trim()),b.steeringSide.value.trim()&&(h.steeringSide=b.steeringSide.value.trim()),b.features.value.length&&(h.features=b.features.value.join(",")),b.minYear.value.trim()&&(h.yearMin=b.minYear.value.trim()),b.maxYear.value.trim()&&(h.yearMax=b.maxYear.value.trim()),b.minPrice.value&&(h.priceMin=b.minPrice.value),b.maxPrice.value&&(h.priceMax=b.maxPrice.value),h}function O(){const h=b.sort.value;return h==="cheapest"?"price-low":h==="expensive"?"price-high":h==="oldest"?"oldest":"newest"}async function K(){W.value=!0;try{const h=al({selectedFilters:{...Q(),...n.nearMeActive?{near_me:"ÙØ²Ø¯ÛÚ© Ù
Ù"}:{}},selectedSort:O(),searchQuery:n.searchQuery,nearMeLat:n.nearMeActive?n.nearMeLat:null,nearMeLng:n.nearMeActive?n.nearMeLng:null,includeFacets:!1});I.value=await es(h)}catch{I.value=null}finally{W.value=!1}}function S(){H&&clearTimeout(H),W.value=!0,H=setTimeout(()=>{H=null,K()},400)}G($,h=>{h&&(b.syncFromRoute(),S())}),G([()=>b.dealPreset.value,()=>b.selectedRegions.value,()=>b.brand.value,()=>b.brandOther.value,()=>b.origin.value,()=>b.bodyType.value,()=>b.color.value,()=>b.cylinders.value,()=>b.seating.value,()=>b.doors.value,()=>b.sellerType.value,()=>b.warranty.value,()=>b.targetMarket.value,()=>b.steeringSide.value,()=>b.features.value,()=>b.minYear.value,()=>b.maxYear.value,()=>b.minPrice.value,()=>b.maxPrice.value,()=>b.sort.value,()=>n.searchQuery,()=>n.nearMeActive],()=>{$.value&&S()},{deep:!0});function q(){$.value=!1}function P(){b.apply(),q()}function C(){b.clearFilters({keepDeal:!0}),q()}const L=y(()=>
1{if(W.value)return v("در ØØ§Ù Ø´Ù
ارشâ¦","Counting...","Ø¬Ø§Ø±Ù Ø§ÙØ¹Ø¯...");if(I.value!=null){const h=I.value.toLocaleString(F.value);return x.value?`Show ${h} vehicle listings`:g.value?`عرض ${h} Ø¥Ø¹ÙØ§Ù Ù
Ø±ÙØ¨Ø©`:`ÙÙ
Ø§ÛØ´ ${h} Ø¢Ú¯ÙÛ ÙØ³ÛÙÙ ÙÙÙÛÙ`}return v("ÙÙ
Ø§ÛØ´ Ø¢Ú¯ÙÛâÙØ§","Show listings","عرض Ø§ÙØ¥Ø¹ÙØ§ÙØ§Øª")});return(h,R)=>$.value?(a(),ue(pt,{key:0,to:"body"},[t("div",{class:"fixed inset-0 z-[100] flex flex-col bg-white lg:hidden",dir:e(x)?"ltr":"rtl"},[t("header",ls,[t("button",{type:"button",class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-white/15 text-white","aria-label":v("بازگشت","Back","Ø±Ø¬ÙØ¹"),onClick:q},[k(e(Xt),{class:D(["h-5 w-5",e(x)?"rotate-180":""])},null,8,["class"])],8,os),t("h2",ns,o(v("ÙÛÙØªØ± ÙØ³Ø§ÛÙ ÙÙÙÛÙ","Vehicle filters","ÙÙØ§ØªØ± اÙÙ
Ø±ÙØ¨Ø§Øª")),1)]),t("div",rs,[k(kt,{"show-sort":"","hide-deal-type":""})]),t("footer",ss,[t("div",as,[t("button",{type:"button",class:"flex-1 rounded-xl border border-gray-200 py-3 text-[14px] font-bold text-gray-700",onClick:C},o(v("ØØ°Ù ÙÛÙØªØ±Ùا","Clear filters","Ù
Ø³Ø Ø§ÙÙÙØ§ØªØ±")),1),t("button",{type:"button",class:"flex-1 rounded-xl bg-[#e01b22] py-3 text-[14px] font-bold text-white disabled:opacity-70",disabled:e(W),onClick:P},o(e(L)),9,is)])])],8,ts)])):V("",!0)}}),cs={class:"relative aspect-[4/3] w-full overflow-hidden bg-gray-100"},ds={key:1,class:"flex h-full w-full items-center justify-center text-sm text-gray-500"},ps={class:"pointer-events-none absolute start-2 top-2 flex flex-wrap items-center gap-1.5"},bs={key:0,class:"inline-block rounded-lg bg-gradient-to-l from-amber-500 to-amber-600 px-2 py-1 text-[10px] font-bold text-white shadow-sm"},fs={key:1,class:"inline-block rounded-lg bg-violet-600 px-2 py-1 text-[10px] font-bold text-white shadow-sm"},ms={key:2,class:"inline-block rounded-lg bg-white/95 px-2 py-1 text-[10px] font-semibold text-slate-700 shadow-sm"},xs={class:"absolute inset-x-0 bottom-0 flex items-center gap-1.5 bg-gradient-to-t from-black/75 to-transparent px-3 pb-2 pt-8 text-[11px] font-medium text-white"},vs={class:"min-w-0 truncate"},gs={class:"line-clamp-2 text-[15px] font-extrabold uppercase leading-snug tracking-wide text-[#142032]"},hs={key:0,class:"mt-1 text-[13px] text-slate-600"},ys={key:1,class:"mt-1 text-[13px] text-slate-600"},_s={key:2,class:"mt-2 line-clamp-2 text-[13px] text-slate-500"},ws={class:"mt-3 flex flex-wrap items-end justify-between gap-2 border-t border-gray-100 pt-3"},ks={class:"text-[11px] text-slate-500"},$s={class:"text-lg font-extrabold text-[#e01b22]"},Ss=We({__name:"VehicleListingCardDesktop",props:{ad:{}},setup(s){const n=s,$=Rt(),m=$t(),{locale:x}=Ke(),g=y(()=>x.value==="en"),F=y(()=>x.value==="ar"),v=y(()=>g.value?"en-US":F.value?"ar-AE":"fa-IR");function A(C,L,h){return F.value?h||_e(L||C,"ar"):g.value?L:C}const b=y(()=>ll(n.ad,$.public.apiBase)),I=y(()=>_t(wt(n.ad.title||"")));function W(){return n.ad.extra_fields||{}}function H(C){const L=C.rental_type,h=W().rental_type,R=L??h;if(R!=null&&String(R).trim()!==""){const U=String(R).trim().toLowerCase();if(U==="rent"||U==="lease"||U==="rental"||U==="اجارÙ")return A("اجارÙ","Rent","Ø¥ÙØ¬Ø§Ø±");if(U==="sale"||U==="sell"||U==="ÙØ±ÙØ´")return A("ÙØ±ÙØ´","Sale","Ø¨ÙØ¹")}return A("ÙØ±ÙØ´","Sale","Ø¨ÙØ¹")}const Q=y(()=>{const C=n.ad;return C.negotiable||C.price_negotiable?A("تÙ
اس Ø¨Ú¯ÛØ±Ûد","Contact for price","اتص٠ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ³Ø¹Ø±"):C.price!=null&&Number(C.price)>0?g.value?`AED ${Number(C.price).toLocaleString(v.value)}`:F.value?`${Number(C.price).toLocaleString(v.value)} درÙÙ
`:`${Number(C.price).toLocaleString(v.value)} درÙÙ
`:A("تÙ
اس Ø¨Ú¯ÛØ±Ûد","Contact for price","اتص٠ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ³Ø¹Ø±")}),O=y(()=>{const C=W().model??n.ad.model;return C!=null?String(C).trim():""}),K=y(()=>{const C=W().year??n.ad.year;return C!=null?String(C):""}),S=y(()=>{const C=W().mileage??n.ad.mileage;if(C==null)return"";const L=Number(C);return!Number.isFinite(L)||L<=0?"":g.value?`${L.toLocaleString(v.value)}
1 km`:F.value?`${L.toLocaleString(v.value)} ÙÙ
`:`${L.toLocaleString(v.value)} Ú©ÛÙÙÙ
تر`}),q=y(()=>{const C=[];O.value&&C.push(O.value),S.value&&C.push(S.value);const L=W().origin;return L!=null&&String(L).trim()&&C.push(String(L)),C}),P=y(()=>_e(n.ad.location||n.ad.city,x.value)||A("Ù
ÙÙØ¹Ûت ÙØ§Ù
شخص","Unknown location","Ù
ÙÙØ¹ ØºÙØ± Ù
ØØ¯Ø¯"));return(C,L)=>{const h=Yl,R=Wt;return a(),ue(R,{to:e(m)(`/vehicles/${e(Ft)(s.ad,String(e(x)))}`),class:"group flex flex-col overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm transition hover:border-gray-300 hover:shadow-md",dir:e(g)?"ltr":"rtl"},{default:J(()=>[t("div",cs,[e(b)?(a(),ue(h,{key:0,src:e(b),alt:e(I),variants:s.ad.image_variants??null,sizes:"(min-width: 1280px) 280px, (min-width: 1024px) 25vw, 50vw","picture-class":"block h-full w-full","img-class":"h-full w-full object-cover transition duration-300 group-hover:scale-[1.02]",width:640,height:480,loading:"lazy"},null,8,["src","alt","variants"])):(a(),u("div",ds,o(A("بدÙ٠تصÙÛØ±","No image","بدÙÙ ØµÙØ±Ø©")),1)),t("div",ps,[s.ad.is_featured?(a(),u("span",bs,o(A("ÙÛÚÙ","Featured","Ù
Ù
ÙØ²")),1)):s.ad.views_count>=80?(a(),u("span",fs,o(A("Ù¾Ø±Ø¨Ø§Ø²Ø¯ÛØ¯","Popular","رائج")),1)):(a(),u("span",ms,o(H(s.ad)),1))]),t("div",xs,[k(e(Bt),{class:"h-3.5 w-3.5 shrink-0 opacity-90","aria-hidden":"true"}),t("span",vs,o(e(P)),1)])]),t("div",{class:D(["flex flex-1 flex-col p-4",e(g)?"text-left":"text-right"])},[t("h3",gs,o(e(I)),1),e(K)?(a(),u("p",hs,[se(o(e(K))+" ",1),e(O)?(a(),u(X,{key:0},[L[0]||(L[0]=t("span",{class:"text-slate-400"},"|",-1)),se(" "+o(e(O)),1)],64)):V("",!0)])):e(O)?(a(),u("p",ys,o(e(O)),1)):V("",!0),e(q).length?(a(),u("p",_s,o(e(q).join(" ⢠")),1)):V("",!0),t("div",ws,[t("div",{class:D(["min-w-0",e(g)?"text-left":"text-right"])},[t("p",ks,o(H(s.ad)===(e(g)?"Rent":"اجارÙ")?e(g)?"Rental":"اجارÙ":e(g)?"Cash purchase":"Ø®Ø±ÛØ¯ ÙÙØ¯Û"),1)],2),t("p",$s,o(e(Q)),1)])],2)]),_:1},8,["to","dir"])}}}),Ms={class:"relative h-24 w-[7.25rem] shrink-0 overflow-hidden rounded-xl bg-gray-100 shadow-sm"},Cs=["src","alt"],Ls={key:1,class:"flex h-full w-full items-center justify-center text-[10px] text-gray-400"},Ts={class:"pointer-events-none absolute start-1 top-1 rounded-md bg-[#e01b22]/95 px-1.5 py-0.5 text-[10px] font-bold text-white shadow-sm"},As={class:"min-w-0 flex-1 pt-0.5"},Fs={class:"line-clamp-2 text-[15px] font-extrabold leading-snug text-[#142032]"},Rs={class:"mt-1.5 text-lg font-extrabold text-[#e01b22]"},Vs={class:"mt-2 flex items-start justify-end gap-1 text-[13px] text-slate-600"},Ps={class:"min-w-0 leading-relaxed"},Bs=We({__name:"VehicleListingMapSplitRow",props:{ad:{},selected:{type:Boolean},selectOnly:{type:Boolean}},emits:["select"],setup(s,{emit:n}){const $=s,m=n,x=Rt(),g=$t(),{locale:F}=Ke(),v=y(()=>F.value==="en"),A=y(()=>F.value==="ar"),b=y(()=>v.value?"en-US":A.value?"ar-AE":"fa-IR");function I(P,C,L){return A.value?L||_e(C||P,"ar"):v.value?C:P}const W=y(()=>ll($.ad,x.public.apiBase)),H=y(()=>_t(wt($.ad.title||"")));function Q(){return $.ad.extra_fields||{}}function O(P){const C=P.rental_type,L=Q().rental_type,h=C??L;if(h!=null&&String(h).trim()!==""){const R=String(h).trim().toLowerCase();if(R==="rent"||R==="lease"||R==="rental"||R==="اجارÙ")return I("اجارÙ","Rent","Ø¥ÙØ¬Ø§Ø±");if(R==="sale"||R==="sell"||R==="ÙØ±ÙØ´")return I("ÙØ±ÙØ´","Sale","Ø¨ÙØ¹")}return I("ÙØ±ÙØ´","Sale","Ø¨ÙØ¹")}const K=y(()=>{const P=$.ad;return P.negotiable||P.price_negotiable?I("تÙ
اس Ø¨Ú¯ÛØ±Ûد","Contact for price","اتص٠ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ³Ø¹Ø±"):P.price!=null&&Number(P.price)>0?v.value?`AED ${Number(P.price).toLocaleString(b.value)}`:`${Number(P.price).toLocaleString(b.value)} درÙÙ
`:I("تÙ
اس Ø¨Ú¯ÛØ±Ûد","Contact for price","اتص٠ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ³Ø¹Ø±")}),S=y(()=>String($.ad.location||$.ad.city||"").trim()||I("Ù
ÙÙØ¹Ûت ÙØ§Ù
شخص","Unknown location","Ù
ÙÙØ¹ ØºÙØ± Ù
ØØ¯Ø¯"));function q(P){$.selectOnly&&(P.preventDefault(),P.stopPropagation(),m("select"))}return(P,C)=>(a(),ue(Cl(s.selectOnly?"button":"NuxtLink"),{id:`vehicle-map-split-${s.ad.id}`,to:s.selectOnly?void 0:e(g)(`/vehicles/${e(Ft)(s.ad,String(e(F)))}`),type:s.selectOnly?"button":void 0,dir:e(v)?"ltr":"rtl",class:D(["flex w-full gap-3 border-b border-gray-100 p-3 text-right transition-colors hover:bg-white",s.selected?"bg-[#fff5f5] ring-1 ring-inset ring-[#e01b22]/35":"bg-white"]),onClick:q},{default:J(()=>[t("div",Ms,[e(W)?(a(),u("img",{key:0,src:e(W),alt:e(H),class:"h-full w-full object-cover",width:"232",height:"192",loading:"lazy",decoding:"async"},null,8,Cs)):(a(),u("div",Ls,o(I("بدÙ٠تصÙÛØ±","No image","بدÙÙ ØµÙØ±Ø©")),1)),t("span",Ts,o(O(s.ad)),1)]),t("div",As,[t("h3",Fs,o(e(H)),1),t("p",Rs,o(e(K)),1),t("div",Vs,[k(e(Bt),{class:"mt-0.5 h-3.5 w-3.5 shrink-0 opacity-80","aria-hidden":"true"}),t("span",Ps,o(e(S)),1)])])]),_:1},8,["id","to","type","dir","class"]))}}),js=["dir"],Ds={class:"lg:hidden"},Os={key:1},Es={class:"overflow-x-auto overflow-y-visible scrollbar-hide -mx-1 pb-1 pt-1"},Ns={class:"flex w-max flex-nowrap items-center gap-2 px-1"},qs={class:"px-4 pb-36"},Us={key:0,class:"mt-4 rounded-xl bg-red-50 p-4 text-right text-sm text-red-600"},zs={key:1,class:"mt-4 space-y-5"},Is={class:"space-y-2 p-3"},Ys={key:2,class:"mt-8 rounded-xl border border-dashed border-gray-200 py-16 text-center text-gray-500"}
1,Hs={key:3,class:"mt-2"},Qs={class:"absolute start-2 top-2 rounded-lg bg-[#E11B22] px-2 py-1 text-[11px] font-semibold text-white"},Ks={class:"mt-3 px-1 text-right"},Ws={class:"text-[18px] font-extrabold text-[#E11B22]"},Gs={class:"mt-2 line-clamp-2 text-[15px] font-bold leading-snug text-[#1A202C]"},Js={key:0,class:"mt-1.5 line-clamp-1 text-[13px] text-[#64748B]"},Xs={key:1,class:"mt-1.5 text-[13px] text-[#64748B]"},Zs={class:"font-extrabold text-[#64748B]"},ea={key:1,class:"inline-block w-4"},ta={class:"font-extrabold text-[#64748B]"},la={class:"mt-1.5 flex items-start justify-end gap-1.5 text-[13px] text-[#64748B]"},oa={class:"min-w-0 flex-1 truncate"},na={class:"px-1 pb-1 pt-3"},ra={class:"grid grid-cols-2 gap-3"},sa=["href"],aa=["href"],ia={key:0,class:"py-4 text-center text-sm text-gray-500"},ua={class:"hidden md:block lg:hidden p-6"},ca={class:"flex flex-wrap items-start justify-between gap-3"},da={class:"min-w-0 flex-1"},pa={class:"text-2xl font-bold text-[rgb(var(--color-text))]"},ba={key:1,class:"mt-1 text-[13px] text-gray-600"},fa={class:"flex flex-wrap items-center gap-2"},ma={class:"hidden lg:block"},xa={class:"border-b border-gray-200/80 bg-white"},va={class:"page-shell flex flex-wrap items-center justify-between gap-4 py-6"},ga=["aria-label"],ha={class:"text-slate-700"},ya={class:"mt-2 text-2xl font-extrabold tracking-tight text-[#142032]"},_a={key:0,class:"font-semibold text-[#5b6270]"},wa={class:"mt-1 max-w-2xl text-[13px] leading-relaxed text-slate-600"},ka={class:"flex min-w-0 flex-wrap items-center justify-end gap-3 sm:flex-nowrap sm:items-center"},$a={class:"flex min-w-0 shrink-0 items-center gap-4"},Sa={class:"page-shell py-4 md:py-6 lg:flex lg:items-start lg:gap-8 lg:pt-6 lg:pb-8"},Ma={class:"min-w-0 flex-1"},Ca=["aria-label"],La={class:"hidden"},Ta={class:"space-y-2 p-3"},Aa={class:"hidden gap-5 lg:grid lg:grid-cols-2 xl:grid-cols-3"},Fa={class:"space-y-2 p-4"},Ra={key:0,class:"rounded-xl border border-dashed border-gray-200 bg-white py-16 text-center"},Va={class:"text-gray-500"},Pa={class:"hidden"},Ba={class:"absolute start-2 top-2 rounded-lg bg-[#E11B22] px-2 py-1 text-[11px] font-semibold text-white"},ja={class:"mt-3 text-right"},Da={class:"text-[18px] font-extrabold text-[#E11B22]"},Oa={class:"mt-2 line-clamp-2 text-[15px] font-bold leading-snug text-[#1A202C]"},Ea={key:0,class:"mt-1.5 line-clamp-1 text-[13px] text-[#64748B]"},Na={key:1,class:"mt-1.5 text-[13px] text-[#64748B]"},qa={class:"font-extrabold text-[#64748B]"},Ua={key:1,class:"inline-block w-4"},za={class:"font-extrabold text-[#64748B]"},Ia={class:"mt-1.5 flex items-start justify-end gap-1.5 text-[13px] text-[#64748B]"},Ya={class:"min-w-0 flex-1 truncate"},Ha=["aria-label"],Qa={class:"text-slate-700"},Ka={class:"mt-2 text-2xl font-extrabold tracking-tight text-[#142032]"},Wa={key:0,class:"font-semibold text-[#5b6270]"},Ga={class:"mt-1 max-w-2xl text-[13px] leading-relaxed text-slate-600"},Ja={key:1,class:"px-4 py-12 text-center text-[13px] text-slate-500"},Xa=We({__name:"index",async setup(s){let n,$;const m=hl(),x=Kt(),g=$t(),F=Jt("(max-width: 1023px)",{ssrWidth:375}),v=y(()=>
1fl(x.query)),A=y(()=>F.value&&!v.value);function b(){Qe(g("/"))}const I=Kl(),W=Rt(),H=Wl(),{locale:Q}=Ke(),O=y(()=>Q.value==="en"),K=y(()=>Q.value==="ar"),{labelText:S}=Gl(),q=y(()=>O.value?"en-US":K.value?"ar-AE":"fa-IR"),P=Bo();Ll(St,P);const C=ol.map(f=>({value:f.value,label:_e(f.label,Q.value)})),L=y({get:()=>P.sort.value,set:f=>{P.sort.value=f!=null&&String(f)!==""?String(f):"newest",P.applySortOnly()}}),h=T(String(x.query.search??"")),R=T(h.value);let U=null;G(h,f=>{U&&clearTimeout(U),U=setTimeout(()=>{U=null,R.value=f},500)});const Z=T(!1),N=T(!1),{page:ce,totalPagesFromCount:M}=yl(12),B=T(x.query.near_me==="1"||x.query.near_me==="true"),j=T(!1),r=T(x.query.lat?Number(x.query.lat):null),_=T(x.query.lng?Number(x.query.lng):null),w=dt("vehicles-mobile-items",()=>[]),ee=dt("vehicles-mobile-page",()=>1),re=dt("vehicles-mobile-count",()=>0),Le=dt("vehicles-mobile-loading",()=>!1),fe=dt("vehicles-mobile-error",()=>""),we=T(!1),ke=y(()=>Qt({...x.query,search:R.value.trim()||void 0},{nearMeLat:r.value,nearMeLng:_.value,page_size:20})),me=y(()=>JSON.stringify(ke.value));async function Te(){Le.value=!0,fe.value="";try{const f=await At(ke.value,1);w.value=f.results??[],ee.value=1,re.value=f.count??w.value.length}catch(f){fe.value=Ql(f),w.value=[],re.value=0}finally{Le.value=!1}}const Be=y(()=>w.value.length>0&&w.value.length<re.value);async function Ge(){if(!(we.value||!Be.value)){we.value=!0;try{const f=ee.value+1,p=await At(ke.value,f);w.value=[...w.value,...p.results??[]],ee.value=f,p.count!=null&&(re.value=p.count)}
1catch{H.error("خطا در Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û Ù
ÙØ§Ø±Ø¯ Ø¨ÛØ´ØªØ±")}finally{we.value=!1}}}const Ne=T(null);Fl(Ne,f=>{!f[0]?.isIntersecting||we.value||Le.value||!Be.value||Ge()},{rootMargin:"320px"}),[n,$]=zt(async()=>Yt(()=>`vehicles-mobile-${me.value}`,async()=>(await Te(),!0),{watch:[me]})),await n,$();function Je(){R.value=h.value}function $e(f){return(f.show_phone??f.phone_visible)===!1?"":f.phone?.trim()||""}function je(f){const p=$e(f);return p?`tel:${p}`:""}function qe(f){const p=$e(f);if(!p)return"";const Y=p.replace(/[^\d+]/g,"").replace(/^\+/,"");return Y?`https://wa.me/${Y}`:""}function Xe(){B.value=x.query.near_me==="1"||x.query.near_me==="true",r.value=x.query.lat?Number(x.query.lat):null,_.value=x.query.lng?Number(x.query.lng):null}G(()=>x.query,()=>Xe(),{deep:!0});async function Ze(){if(!j.value){if(B.value){const f={};for(const[p,Y]of Object.entries(x.query)){if(p==="near_me"||p==="lat"||p==="lng"||p==="page")continue;const E=Array.isArray(Y)?Y[0]:Y;typeof E=="string"&&E&&(f[p]=E)}Qe({path:g("/vehicles"),query:f});return}if(!navigator.geolocation){H.error("Ù
Ø±ÙØ±Ú¯Ø± اجاز٠Ù
ÙÙØ¹ÛتâÛØ§Ø¨Û ÙÙ
ÛâØ¯ÙØ¯");return}j.value=!0;try{const f=await new Promise((Y,E)=>{navigator.geolocation.getCurrentPosition(Y,E,{enableHighAccuracy:!0,timeout:12e3,maximumAge:0})}),p={};for(const[Y,E]of Object.entries(x.query)){if(Y==="page")continue;const ne=Array.isArray(E)?E[0]:E;typeof ne=="string"&&ne&&(p[Y]=ne)}p.near_me="1",p.lat=String(f.coords.latitude),p.lng=String(f.coords.longitude),Qe({path:g("/vehicles"),query:p})}catch{H.error("Ø¯Ø³ØªØ±Ø³Û Ø¨Ù Ù
ÙÙØ¹Ûت Ù
Ù
Ú©Ù ÙØ´Ø¯")}finally{j.value=!1}}}const Ue=y(()=>{if(h.value.trim()||B.value||rl(String(x.query.sort??""))!=="newest")return!0;const p=sl(x.query);return Object.keys(p).some(Y=>Y!=="near_me"&&p[Y]?.trim())});function ze(){Qe({path:g("/vehicles"),query:{}})}const Ve=Bl("vehicles"),xe=y(()=>pl(x.query,String(Q.value)));Jl({title:y(()=>v.value?xe.value:Ve.title.value),description:Ve.description,url:m("/vehicles")});const te=y(()=>{const f={...x.query};return delete f.page,Qt(f,{page:ce.value,page_size:12,nearMeLat:r.value,nearMeLng:_.value,includeFacets:!1})}),{data:ge,status:Ae,error:Mt}=([n,$]=zt(async()=>Yt(()=>`vehicles-desktop-${JSON.stringify(te.value)}`,async()=>{const f=await At(te.value,ce.value);return{results:f.results??[],count:typeof f.count=="number"?f.count:0}},{watch:[te]})),n=await n,$(),n),he=y(()=>ge.value?.results??[]),et=y(()=>Pl(he.value,"vehicles")),Pe=y(()=>ge.value?.count??0),Ct=M(Pe);G(ce,()=>{window.matchMedia("(min-width: 1024px)").matches&&window.scrollTo({top:0,behavior:"smooth"})});function it(f){return Hl(f,W.public.apiBase)}function tt(f){return Ft(f,String(Q.value))}function bt(f){return f.negotiable||f.price_negotiable?S("تÙ
اس Ø¨Ú¯ÛØ±Ûد","Contact for price","اتص٠ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ³Ø¹Ø±"):f.price!=null&&Number(f.price)>0?O.value?`AED ${Number(f.price).toLocaleString(q.value)}`:K.value?`${Number(f.price).toLocaleString(q.value)} درÙÙ
`:`${Number(f.price).toLocaleString(q.value)} درÙÙ
`:S("تÙ
اس Ø¨Ú¯ÛØ±Ûد","Contact for price","اتص٠ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ³Ø¹Ø±")}function Se(f){const p=f.rental_type??f.rentalType,Y=f.extra_fields||{},E=Y.rental_type??Y.rentalType,ne=p??E;if(ne!=null&&String(ne).trim()!==""){const ae=String(ne).trim().toLowerCase();if(ae==="rent"||ae==="lease"||ae==="rental"||ae==="اجارÙ")return S("اجارÙ","Rent","Ø¥ÙØ¬Ø§Ø±");if(ae==="sale"||ae==="sell"||ae==="ÙØ±ÙØ´")return S("ÙØ±ÙØ´","Sale","Ø¨ÙØ¹")}return S("ÙØ±ÙØ´","Sale","Ø¨ÙØ¹")}function Ie(f){const p=f.model??f.extra_fields?.model,Y=p!=null?String(p).trim():"";return Y?O.value?`Model ${Y}`:K.value?`Ù
ÙØ¯ÙÙ ${Y}`:`Ù
د٠${Y}`:""}function de(f){const p=f.year??f.extra_fields?.year;return p!=null&&String(p).trim()!==""}function De(f){const p=f.mileage??f.extra_fields?.mileage;return p!=null&&Number(p)>0}function ut(f){const p=f.year??f.extra_fields?.year;return p!=null?String(p):""}function ct(f){const p=f.mileage??f.extra_fields?.mileage;if(p==null)return"";const Y=Number(p);
1return!Number.isFinite(Y)||Y<=0?"":O.value?`${Y.toLocaleString(q.value)} km`:K.value?`${Y.toLocaleString(q.value)} ÙÙ
`:`${Y.toLocaleString(q.value)} Ú©ÛÙÙÙ
تر`}function ft(f){return _e(f.location,Q.value)||S("Ù
ÙÙØ¹Ûت ÙØ§Ù
شخص","Unknown location","Ù
ÙÙØ¹ ØºÙØ± Ù
ØØ¯Ø¯")}return Xl({breadcrumbKey:"vehicles",path:"/vehicles",items:()=>(he.value??[]).map(f=>({name:String(f.title??"").trim(),url:m(g(`/vehicles/${tt(f)}`))}))}),(f,p)=>{const Y=bl,E=ml,ne=xl,ae=vl,pe=Wt,mt=_l,Me=Gt,Ce=wl,Fe=kl;return a(),u("div",{class:"listing-page-shell min-h-screen bg-white pb-24 md:pb-8",dir:e(O)?"ltr":"rtl"},[e(A)?(a(),ue(Y,{key:0,onClose:b})):V("",!0),t("div",Ds,[k(ne,{search:e(h),placeholder:e(S)("جستج٠در ÙØ³Ø§ÛÙ ÙÙÙÛÙ...","Search vehicles...","Ø§Ø¨ØØ« Ù٠اÙÙ
Ø±ÙØ¨Ø§Øª..."),"back-to":e(I),"show-back-button":!1,"submit-button-mode":"back","onUpdate:search":p[1]||(p[1]=c=>h.value=c),onSubmit:Je},{actions:J(()=>[...p[11]||(p[11]=[])]),count:J(()=>[e(Le)&&!e(w).length?(a(),ue(E,{key:0,class:"h-4 w-44 rounded-md","delay-ms":40})):(a(),u("span",Os,o(`${e(re).toLocaleString(e(q))} ${e(S)("Ø¢Ú¯ÙÛ ÙØ³ÛÙÙ ÙÙÙÛÙ","vehicle listings","Ø¥Ø¹ÙØ§Ù Ù
Ø±ÙØ¨Ø§Øª")}`),1))]),featured:J(()=>[k(Rl,{"placement-key":"surface_vehicle_ads",class:"-mx-1"})]),filters:J(()=>[t("div",Es,[t("div",Ns,[t("button",{type:"button",class:"inline-flex h-11 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-xl border border-gray-300 bg-white px-3.5 text-[14px] font-semibold text-[#334155] shadow-sm",onClick:p[
10]||(p[0]=c=>N.value=!0)},[k(e(El),{class:"h-[18px] w-[18px] text-slate-500","stroke-width":2}),se(" "+o(e(S)("ÙÛÙØªØ±","Filter","ÙÙØªØ±")),1)]),k(kt,{class:"shrink-0",variant:"toolbar","toolbar-map-mode":"","hide-deal-type":"","instant-apply":""}),e(Ue)?(a(),u("button",{key:0,type:"button",class:"inline-flex h-11 shrink-0 items-center gap-1 whitespace-nowrap rounded-xl border border-gray-300 bg-white px-3.5 text-[13px] font-semibold text-[#DC3545] shadow-sm",onClick:ze},[k(e(Nl),{class:"h-4 w-4","stroke-width":2}),se(" "+o(e(S)("پاک","Clear","Ù
سØ")),1)])):V("",!0)])])]),_:1},8,["search","placeholder","back-to"]),k(jl,{active:e(B),loading:e(j),onClick:Ze},null,8,["active","loading"]),t("div",qs,[e(fe)?(a(),u("div",Us,o(e(fe)),1)):e(Le)&&!e(w).length?(a(),u("div",zs,[(a(),u(X,null,ie(4,c=>t("div",{key:c,class:"overflow-hidden rounded-xl border border-gray-100 bg-white shadow-sm"},[k(E,{class:"aspect-[16/10] w-full rounded-none","delay-ms":c*45},null,8,["delay-ms"]),t("div",Is,[k(E,{class:"h-6 w-32 rounded-md","delay-ms":c*45+20},null,8,["delay-ms"]),k(E,{class:"h-4 w-full rounded-md","delay-ms":c*45+35},null,8,["delay-ms"])])])),64))])):e(w).length?(a(),u("div",Hs,[(a(!0),u(X,null,ie(e(w),c=>(a(),u("div",{key:c.id,class:"mb-5 overflow-hidden rounded-2xl bg-white last:mb-0"},[k(pe,{to:e(g)(`/vehicles/${tt(c)}`),class:"block"},{default:J(()=>[k(ae,{urls:it(c),variants:c.image_variants??null,alt:c.title||""},{"hero-placeholder":J(()=>[se(o(e(S)("ÙØ³ÛÙÙ ÙÙÙÛÙ","Vehicle","Ù
Ø±ÙØ¨Ø©")),1)]),"hero-overlay":J(()=>[t("div",Qs,o(Se(c)),1)]),_:2},1032,["urls","variants","alt"]),t("div",Ks,[t("p",Ws,o(bt(c)),1),t("h3",Gs,o(e(_t)(e(wt)(c.title||""))),1),Ie(c)?(a(),u("p",Js,o(Ie(c)),1)):V("",!0),de(c)||De(c)?(a(),u("p",Xs,[de(c)?(a(),u(X,{key:0},[t("span",Zs,o(e(S)("سا٠ساخت: ","Year: ","Ø³ÙØ© Ø§ÙØµÙع: ")),1),se(o(ut(c)),1)],64)):V("",!0),de(c)&&De(c)?(a(),u("span",ea)):V("",!0),De(c)?(a(),u(X,{key:2},[t("span",ta,o(e(S)("کارکرد: ","Mileage: ","اÙÙ
Ø³Ø§ÙØ©: ")),1),se(o(ct(c)),1)],64)):V("",!0)])):V("",!0),t("div",la,[t("span",oa,o(ft(c)),1),p[12]||(p[12]=t("svg",{class:"mt-0.5 h-[18px] w-[18px] shrink-0 text-[#64748B]/90",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})],-1))])])]),_:2},1032,["to"]),t("div",na,[t("div",ra,[t("a",{href:je(c)||void 0,class:D(["flex h-12 items-center justify-center gap-2 rounded-xl border border-[#42b94f] bg-white text-[15px] font-bold text-[#2e7d32] transition active:scale-[0.99]",{"pointer-events-none opacity-50":!je(c)}])},[k(e(ql),{class:"h-4.5 w-4.5 shrink-0"}),se(" "+o(e(S)("تÙ
اس","Call","اتصاÙ")),1)],10,sa),t("a",{href:qe(c)||void 0,target:"_blank",rel:"noopener noreferrer",class:D(["flex h-12 items-center justify-center gap-2 rounded-xl border border-[#42b94f] bg-white text-[15px] font-bold text-[#2e7d32] transition active:scale-[0.99]",{"pointer-events-none opacity-50":!qe(c)}])},[k(e(Ul),{class:"h-4.5 w-4.5 shrink-0"}),se(" "+o(e(S)("ÙØ§ØªØ³Ø§Ù¾","WhatsApp","ÙØ§ØªØ³Ø§Ø¨")),1)],10,aa)])])]))),128)),t("div",{ref_key:"mobileLoadSentinel",ref:Ne,class:"h-4 w-full","aria-hidden":"true"},null,512),e(we)?(a(),u("p",ia,o(e(S)("در ØØ§Ù بارگذارÛ...","Loading...","Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ...")),1)):V("",!0)])):(a(),u("div",Ys,o(e(S)("Ø¢Ú¯ÙÛ ÙØ³ÛÙÙ ÙÙÙÛÙ ÛØ§Ùت ÙØ´Ø¯","No vehicle listings found","ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ Ø¥Ø¹ÙØ§Ùات Ù
Ø±ÙØ¨Ø§Øª")),1))]),k(us,{open:e(N),"onUpdate:open":p[2]||(p[2]=c=>le(N)?N.value=c:null),"search-query":e(R),"near-me-active":e(B),"near-me-lat":e(r),"near-me-lng":e(_)},null,8,["open","search-query","near-me-active","near-me-lat","near-me-lng"])]),t("div",ua,[t("div",ca,[t("div",da,[t("p",pa,o(e(S)("ÙØ³Ø§ÛÙ ÙÙÙÛÙ","Vehicles","اÙÙ
Ø±ÙØ¨Ø§Øª")),1),e(Ae)==="pending"?(a(),ue(E,{key:0,class:"mt-2 h-4 w-32 max-w-[50%] rounded-md","delay-ms":80}
1)):(a(),u("p",ba,o(e(O)?`${e(Pe).toLocaleString(e(q))} listings`:`${e(Pe).toLocaleString(e(q))} Ø¢Ú¯ÙÛ`),1))]),t("div",fa,[k(gt,{modelValue:e(Z),"onUpdate:modelValue":p[3]||(p[3]=c=>le(Z)?Z.value=c:null),variant:"tablet"},null,8,["modelValue"]),t("button",{type:"button",class:"rounded-xl border border-gray-300 bg-white px-4 py-2 text-[13px] font-semibold text-[#334155] hover:bg-gray-50",onClick:p[4]||(p[4]=c=>N.value=!0)},o(e(S)("ÙÛÙØªØ±","Filter","ÙÙØªØ±")),1)])])]),t("div",ma,[t("div",xa,[t("div",va,[t("div",{class:D(["min-w-0",e(O)?"text-left":"text-right"])},[t("nav",{class:"text-[12px] text-slate-500","aria-label":e(S)("Ù
Ø³ÛØ± ØµÙØÙ","Breadcrumb","Ù
سار Ø§ÙØµÙØØ©")},[k(pe,{to:e(g)("/"),class:"hover:text-[#e01b22]"},{default:J(()=>[se(o(e(S)("خاÙÙ","Home","Ø§ÙØ±Ø¦ÙØ³ÙØ©")),1)]),_:1},8,["to"]),p[13]||(p[13]=t("span",{class:"mx-1.5 text-slate-300"},"/",-1)),t("span",ha,o(e(S)("ÙØ³Ø§ÛÙ ÙÙÙÛÙ","Vehicles","اÙÙ
Ø±ÙØ¨Ø§Øª")),1)],8,ga),t("h1",ya,[se(o(e(xe))+" ",1),e(Ae)!=="pending"?(a(),u("span",_a,"("+o(e(Pe).toLocaleString(e(q)))+")",1)):V("",!0)]),t("p",wa,o(e(O)?"Buy, sell and rent cars and motorcycles in Dubai. Use the filters on the right to refine results.":"Ø®Ø±ÛØ¯Ø ÙØ±ÙØ´ Ù Ø§Ø¬Ø§Ø±Ù Ø®ÙØ¯Ø±Ù Ù Ù
ÙØªÙر در Ø¯Ø¨ÛØ ÙØªØ§Ûج را با ÙÛÙØªØ±ÙØ§Û Ø³Ù
ت راست Ú©ÙØªØ±Ù Ú©ÙÛØ¯."),1)],2),t("div",ka,[t("div",$a,[k(gt,{modelValue:e(Z),"onUpdate:modelValue":p[5]||(p[5]=c=>le(Z)?Z.value=c:null),variant:"desktop"},null,8,["modelValue"])])])])])]),t("div",Sa,[k(Jr,{class:"hidden lg:flex"}),t("div",Ma,[p[15]||(p[15]=t("p",{class:"mb-4 md:hidden"},null,-1)),k(He,{"enter-active-class":"transition-opacity duration-200 ease-out","leave-active-class":"transition-opacity duration-150 ease-in","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:J(()=>[e(Ae)==="pending"?(a(),u("div",{key:"vehicles-skeleton",class:"space-y-5 lg:mb-8","aria-busy":"true","aria-live":"polite","aria-label":e(S)("در ØØ§Ù Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±Û ÙÛØ³Øª ÙØ³Ø§ÛÙ ÙÙÙÛÙ","Loading vehicle listings","جار٠تØÙ
ÙÙ Ø¥Ø¹ÙØ§Ùات اÙÙ
Ø±ÙØ¨Ø§Øª")},[t("div",La,[(a(),u(X,null,ie(4,c=>t("div",{key:c,class:"mb-5 overflow-hidden rounded-xl border border-gray-100 bg-white shadow-sm last:mb-0"},[k(E,{class:"aspect-[16/10] w-full rounded-b-none rounded-t-xl","delay-ms":c*45},null,8,["delay-ms"]),t("div",Ta,[k(E,{class:"h-6 w-32 rounded-md","delay-ms":c*45+20},null,8,["delay-ms"]),k(E,{class:"h-4 w-full rounded-md","delay-ms":c*45+35},null,8,["delay-ms"]),k(E,{class:"h-3 w-3/4 max-w-full rounded-md","delay-ms":c*45+50},null,8,["delay-ms"])])])),64))]),t("div",Aa,[(a(),u(X,null,ie(6,c=>t("div",{key:`sk-${c}`,class:"overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm"},[k(E,{class:"aspect-[4/3] w-full rounded-none","delay-ms":c*40},null,8,["delay-ms"]),t("div",Fa,[k(E,{class:"h-5 w-2/3 rounded-md","delay-ms":c*40+25},null,8,["delay-ms"]),k(E,{class:"h-4 w-full rounded-md","delay-ms":c*40+40},null,8,["delay-ms"]),k(E,{class:"h-3 w-1/2 rounded-md","delay-ms":c*40+55},null,8,["delay-ms"])])])),64))])],8,Ca)):(a(),u("div",{key:`vehicles-content-p${e(ce)}`},[e(he).length===0?(a(),u("div",Ra,[t("p",Va,o(e(S)("Ø¢Ú¯ÙÛ ÙØ³ÛÙÙ ÙÙÙÛÙ ÛØ§Ùت ÙØ´Ø¯","No vehicle listings found","ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ Ø¥Ø¹ÙØ§Ùات Ù
Ø±ÙØ¨Ø§Øª")),1)])):(a(),u(X,{key:1},[t("div",Pa,[(a(!0),u(X,null,ie(e(he),c=>(a(),ue(pe,{key:c.id,to:e(g)(`/vehicles/${tt(c)}`),class:"mb-5 block last:mb-0"},{default:J(()=>[k(ae,{urls:it(c),variants:c.image_variants??null,alt:c.title||""},{"hero-placeholder":J(()=>[se(o(e(S)("ÙØ³ÛÙÙ ÙÙÙÛÙ","Vehicle","Ù
Ø±ÙØ¨Ø©")),1)]),"hero-overlay":J(()=>[t("div",Ba,o(Se(c)),1)]),_:2},1032,["urls","variants","alt"]),t("div",ja,[t("p",Da,o(bt(c)),1),t("h3",Oa,o(e(_t)(e(wt)(c.title||""))),1),Ie(c)?(a(),u("p",Ea,o(Ie(c)),1)):V("",!0),de(c)||De(c)?(a(),u("p",Na,[de(c)?(a(),u(X,{key:0},[t("span",qa,o(e(S)("سا٠ساخت: ","Year: ","Ø³ÙØ© Ø§ÙØµÙع: ")),1),se(o(ut(c)),1)],64)):V("",!0),de(c)&&De(c)?(a(),u("span",Ua)):V("",!0),De(c)?(a(),u(X,{key:2},[t("span",za,o(e(S)("کارکرد: ","Mileage: ","اÙÙ
Ø³Ø§ÙØ©: ")),1),se(o(ct(c)),1)],64)):V("",!0)])):V("",!0),t("div",Ia,[t("span",Ya,o(ft(c)),1),p[14]||(p[14]=t("svg",{class:"mt-0.5 h-[18px] w-[18px] shrink-0 text-[#64748B]/90",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})],-1))])])]),_:2},1032,["to"]))),128))]),(a(),ue(Tl,{key:`vehicles-grid-p${e(ce)}`,name:"vehicle-card",tag:"div",appear:"",class:"mb-8 hidden gap-5 lg:grid lg:grid-cols-2 xl:grid-cols-3"},{default:J(()=>[(a(!0),u(X,null,ie(e(he),c=>(a(),ue(Ss,{key:c.id,ad:c},null,8,["ad"]))),128))]),_:1}))],64)),k(mt,{path:e(g)("/vehicles"),page:e(ce),"total-pages":e(Ct)},null,8,["path","page","total-pages"])]))]),_:1})])]),k(Vl,{open:e(Z),"onUpdate:open":p[9]||(p[9]=c=>le(Z)?Z.value=c:null),"desktop-split":"","result-count":e(Pe),title:e(S)("ÙÙ
Ø§Û ÙÙØ´Ù â ÙØ³Ø§ÛÙ ÙÙÙÛÙ","Map view - Vehicles","عرض Ø§ÙØ®Ø±Ùطة - اÙÙ
Ø±ÙØ¨Ø§Øª"),points:e(et),onRequestFilters:p[10]||(p[10]=c=>N.value=!0)},{splitDesktopHeaderMain:J(()=>[t("nav",{class:"text-[12px] text-slate-500","aria-label":e(S)("Ù
Ø³ÛØ± ØµÙØÙ","Breadcrumb","Ù
سار Ø§ÙØµÙØØ©")},[k(pe,{to:e(g)("/"),class:"hover:text-[#e01b22]"},{default:J(()=>[se(o(e(S)("خاÙÙ","Home","Ø§ÙØ±Ø¦ÙØ³ÙØ©")),1)]),_:1},8,["to"]),p[16]||(p[16]=t("span",{class:"mx-1.5 text-slate-300"},"/",-1)),t("span",Qa,o(e(S)("ÙØ³Ø§ÛÙ ÙÙÙÛÙ","Vehicles","اÙÙ
Ø±ÙØ¨Ø§Øª")),1)],8,Ha),t("h1",Ka,[se(o(e(xe))+" ",1),e(Ae)!=="pending"?(a(),u("span",Wa,"("+o(e(Pe).toLocaleStr
1ing(e(q)))+")",1)):V("",!0)]),t("p",Ga,o(e(O)?"Buy, sell and rent cars and motorcycles in Dubai. Use the filters on the right to refine results.":"Ø®Ø±ÛØ¯Ø ÙØ±ÙØ´ Ù Ø§Ø¬Ø§Ø±Ù Ø®ÙØ¯Ø±Ù Ù Ù
ÙØªÙر در Ø¯Ø¨ÛØ ÙØªØ§Ûج را با ÙÛÙØªØ±ÙØ§Û Ø³Ù
ت راست Ú©ÙØªØ±Ù Ú©ÙÛØ¯."),1)]),splitHeaderControls:J(()=>[k(Me,{modelValue:e(L),"onUpdate:modelValue":p[6]||(p[6]=c=>le(L)?L.value=c:null),panel:"list","trigger-prefix":e(S)("Ù
Ø±ØªØ¨âØ³Ø§Ø²Û:","Sort:","ØªØ±ØªÙØ¨:"),options:e(C),placeholder:"Ø§ÙØªØ®Ø§Ø¨",class:"h-10 min-h-10 w-[19rem] min-w-[19rem] max-w-[19rem] shrink-0 rounded-xl border-gray-200 text-[13px]"},null,8,["modelValue","trigger-prefix","options"]),k(gt,{modelValue:e(Z),"onUpdate:modelValue":p[7]||(p[7]=c=>le(Z)?Z.value=c:null),variant:"desktop"},null,8,["modelValue"])]),splitHeaderEnd:J(()=>[k(gt,{modelValue:e(Z),"onUpdate:modelValue":p[8]||(p[8]=c=>le(Z)?Z.value=c:null),variant:"desktop"},null,8,["modelValue"])]),splitToolbar:J(()=>[k(kt,{variant:"toolbar","toolbar-map-mode":"","instant-apply":""})]),splitList:J(({selectedId:c,selectItem:Oe})=>[e(he).length?(a(!0),u(X,{key:0},ie(e(he),lt=>(a(),ue(Bs,{key:lt.id,ad:lt,selected:c!=null&&c===lt.id,"select-only":"",onSelect:Dt=>Oe(lt)},null,8,["ad","selected","onSelect"]))),128)):(a(),u("div",Ja," Ø¢Ú¯ÙÛâØ§Û Ø¯Ø± اÛÙ ØµÙØÙ ÙÛØ³Øª "))]),_:1},8,["open","result-count","title","points"]),k(Ce,{axis:"vehicles-brand"}),k(Fe,{vertical:"vehicles"})],8,js)}}}),Hi=jt(Xa,[["__scopeId","data-v-0e43014b"]]);export{Hi as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.