import{a as A,_ as $,b as I,u as R}from"../server.mjs";import{_ as W}from"./carCard-BmOv0Cuo.js";import{_ as D}from"./client-only-CuDeK6DU.js";import{unref as u,withCtx as y,createVNode as j,toDisplayString as x,useSSRContext as L,ref as B,watch as P,mergeProps as K,createTextVNode as F}from"vue";import{ssrRenderAttrs as b,ssrRenderComponent as m,ssrInterpolate as n,ssrRenderList as H}from"vue/server-renderer";import{u as N}from"./car-BMObURKw.js";import{u as O}from"./seo-DYoMt0L4.js";import"ofetch";import"#internal/nuxt/paths";import"hookable";import"unctx";import"h3";import"unhead";import"@unhead/shared";import"vue-router";import"radix3";import"defu";import"klona";import"cookie-es";import"destr";import"ohash";import"@vue/devtools-api";import"pinia";import"axios";import"./NuxtImg-CUgs9eQf.js";import"./riyal-BwoU6xRW.js";const v={__name:"emptyWishList",__ssrInlineRender:!0,setup(l){const t=A();return(e,i,s,d)=>{const c=D,o=$;i(`<div${b(d)}><div class="empty-container"><div class="empty">`),i(m(c,null,{},s)),i(`<h4>${n(e.$t("emptyfav1"))}</h4><p>${n(e.$t("emptyfav2"))}</p>`),i(m(o,{to:u(t)("/market")},{default:y((r,a,f,p)=>{if(a)a(`<button${p}>${n(e.$t("emptyfav3"))}</button>`);else return[j("button",null,x(e.$t("emptyfav3")),1)]}),_:1},s)),i("</div></div></div>")}}},g=v.setup;v.setup=(l,t)=>{const e=L();return(e.modules||(e.modules=new Set)).add("components/emptyWishList.vue"),g?g(l,t):void 0};const S={__name:"wishlist",__ssrInlineRender:!0,setup(l){let{locale:t}=I();const{setPageSeo:e}=O(),i=()=>({"@context":"https://schema.org","@type":"ItemList",name:t.value==="ar"?"السيارات المفضلة":"Favorite Cars",description:t.value==="ar"?"قائمة السيارات المفضلة لديك في خليج أوتو":"Your favorite cars list at Khalej Auto",itemListOrder:"https://schema.org/ItemListUnordered",numberOfItems:s.favsArr?.length||0});e({title:t.value==="ar"?"المفضلة - خليج أوتو":"Wishlist - Khalej Auto",description:t.value==="ar"?"قائمة السيارات المفضلة لديك في خليج أوتو - راجع وقارن السيارات التي أضفتها إلى المفضلة":"Your favorite cars list at Khalej Auto - Review and compare cars you added to your wishlist",path:"/wishlist",breadcrumbs:[{name:t.value==="ar"?"الرئيسية":"Home",url:"/"},{name:t.value==="ar"?"المفضلة":"Wishlist",url:"/wishlist"}],additionalSchemas:[i()]});let s=N(),d=R(),c=B(s.isLoading3);return s.getFav(d.ipAddress),P(()=>s.isLoading3,o=>{c.value=o}),(o,r,a,f)=>{const p=$,C=W,k=v;r(`<div${b(K({class:"wishlist-page"},f))}><div class="text-page"><nav class="breadline" aria-label="Breadcrumb">`),r(m(p,{to:"/"},{default:y((h,_,V,Y)=>{if(_)_(`${n(o.$t("home"))}`);else return[F(x(o.$t("home")),1)]}),_:1},a)),r(`<svg class="arrowDir" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.99998 13.28L5.65331 8.9333C5.13998 8.41997 5.13998 7.57997 5.65331 7.06664L9.99998 2.71997" stroke="#A7B9D0" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-current="page">${n(o.$t("fav"))}</span></nav><div><h1 class="title">${n(o.$t("fav"))}</h1><svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" viewBox="0 0 50 3" fill="none"><rect x="11.9048" width="38.0952" height="3.00022" rx="1.50011" fill="#2D9596"></rect><rect opacity="0.9" width="7.14286" height="3.00022" rx="1.50011" fill="#2D9596"></rect></svg></div></div><div class="container">`),u(s).favsArr.length>=1?(r('<div class="row"><!--[-->'),H(u(s).favsArr,h=>{r('<div class="col-12 col-xl-3 col-lg-3 col-md-6 mb-5">'),r(m(C,{item:h.car_id,is_fav:!0,check:!0},null,a)),r("</div>")}),r("<!--]--></div>")):r(m(k,null,null,a)),r("</div></div>")}}},w=S.setup;S.setup=(l,t)=>{const e=L();return(e.modules||(e.modules=new Set)).add("pages/wishlist.vue"),w?w(l,t):void 0};export{S as default};
