import{a as x,_ as v,b as k,u as $}from"./9wDxnFtt.js";import{_ as L}from"./B-_5ofyy.js";import{_ as b}from"./CvoWGCnH.js";import{_ as A}from"./DoIUUBea.js";import{Y as n,Z as o,_ as t,G as l,a6 as d,a4 as a,u,b as B,c as S,a0 as C,F as j,a2 as D,a3 as W}from"./pvhYMo2c.js";import{u as F}from"./qvRVwB86.js";import{u as I}from"./DqTv0isN.js";import"./CC3u1PFd.js";import"./BupkU_mh.js";const K={class:"empty-container"},N={class:"empty"},P={style:{width:"200px",height:"200px"}},V={__name:"emptyWishList",setup(f){const e=x();return(i,h)=>{const s=b,m=A,_=v;return o(),n("div",null,[t("div",K,[t("div",N,[l(m,null,{default:d(()=>[t("div",P,[l(s,{src:"/animations/fav.json"})])]),_:1}),t("h4",null,a(i.$t("emptyfav1")),1),t("p",null,a(i.$t("emptyfav2")),1),l(_,{to:u(e)("/market")},{default:d(()=>[t("button",null,a(i.$t("emptyfav3")),1)]),_:1},8,["to"])])])])}}},Y={class:"wishlist-page"},H={class:"text-page"},O={class:"breadline","aria-label":"Breadcrumb"},E={"aria-current":"page"},G={class:"title"},M={class:"container"},R={key:0,class:"row"},et={__name:"wishlist",setup(f){let{locale:e}=k();const{setPageSeo:i}=I(),h=()=>({"@context":"https://schema.org","@type":"ItemList",name:e.value==="ar"?"السيارات المفضلة":"Favorite Cars",description:e.value==="ar"?"قائمة السيارات المفضلة لديك في خليج أوتو":"Your favorite cars list at Khalej Auto",itemListOrder:"https://schema.org/ItemListUnordered",numberOfItems:s.favsArr?.length||0});i({title:e.value==="ar"?"المفضلة - خليج أوتو":"Wishlist - Khalej Auto",description:e.value==="ar"?"قائمة السيارات المفضلة لديك في خليج أوتو - راجع وقارن السيارات التي أضفتها إلى المفضلة":"Your favorite cars list at Khalej Auto - Review and compare cars you added to your wishlist",path:"/wishlist",breadcrumbs:[{name:e.value==="ar"?"الرئيسية":"Home",url:"/"},{name:e.value==="ar"?"المفضلة":"Wishlist",url:"/wishlist"}],additionalSchemas:[h()]});let s=F(),m=$(),_=B(s.isLoading3);return s.getFav(m.ipAddress),S(()=>s.isLoading3,r=>{_.value=r}),(r,c)=>{const g=v,w=L,y=V;return o(),n("div",Y,[t("div",H,[t("nav",O,[l(g,{to:"/"},{default:d(()=>[W(a(r.$t("home")),1)]),_:1}),c[0]||(c[0]=t("svg",{class:"arrowDir",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},[t("path",{d:"M9.99998 13.28L5.65331 8.9333C5.13998 8.41997 5.13998 7.57997 5.65331 7.06664L9.99998 2.71997",stroke:"#A7B9D0","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),t("span",E,a(r.$t("fav")),1)]),t("div",null,[t("h1",G,a(r.$t("fav")),1),c[1]||(c[1]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"3",viewBox:"0 0 50 3",fill:"none"},[t("rect",{x:"11.9048",width:"38.0952",height:"3.00022",rx:"1.50011",fill:"#2D9596"}),t("rect",{opacity:"0.9",width:"7.14286",height:"3.00022",rx:"1.50011",fill:"#2D9596"})],-1))])]),t("div",M,[u(s).favsArr.length>=1?(o(),n("div",R,[(o(!0),n(j,null,D(u(s).favsArr,p=>(o(),n("div",{key:p,class:"col-12 col-xl-3 col-lg-3 col-md-6 mb-5"},[l(w,{item:p.car_id,is_fav:!0,check:!0},null,8,["item"])]))),128))])):(o(),C(y,{key:1}))])])}}};export{et as default};
