import{b as t,u as e,_ as r,a as i}from"./server.mjs";import{m as s}from"./carCard-BmOv0Cuo.mjs";import{k as o}from"./client-only-CuDeK6DU.mjs";import{ref as a,watch as l,mergeProps as n,withCtx as m,createTextVNode as d,toDisplayString as p,unref as u,createVNode as v,useSSRContext as c}from"vue";import{ssrRenderAttrs as h,ssrRenderComponent as f,ssrInterpolate as g,ssrRenderList as w}from"vue/server-renderer";import{J as x}from"./car-BMObURKw.mjs";import{G as $}from"./seo-DYoMt0L4.mjs";import"../_/nitro.mjs";import"node:http";import"node:https";import"nitropack/dist/runtime/plugin";import"packrup";import"node:fs";import"node:url";import"consola/core";import"node:path";import"unhead";import"@unhead/shared";import"vue-router";import"pinia";import"axios";import"./NuxtImg-CUgs9eQf.mjs";import"./riyal-BwoU6xRW.mjs";const y={__name:"emptyWishList",__ssrInlineRender:!0,setup(t){const e=i();return(t,i,s,a)=>{const l=o,n=r;i(`<div${h(a)}><div class="empty-container"><div class="empty">`),i(f(l,null,{},s)),i(`<h4>${g(t.$t("emptyfav1"))}</h4><p>${g(t.$t("emptyfav2"))}</p>`),i(f(n,{to:u(e)("/market")},{default:m(((e,r,i,s)=>{if(!r)return[v("button",null,p(t.$t("emptyfav3")),1)];r(`<button${s}>${g(t.$t("emptyfav3"))}</button>`)})),_:1},s)),i("</div></div></div>")}}},_=y.setup;y.setup=(t,e)=>{const r=c();return(r.modules||(r.modules=new Set)).add("components/emptyWishList.vue"),_?_(t,e):void 0};const b={__name:"wishlist",__ssrInlineRender:!0,setup(i){let{locale:o}=t();const{setPageSeo:v}=$();var c;v({title:"ar"===o.value?"المفضلة - خليج أوتو":"Wishlist - Khalej Auto",description:"ar"===o.value?"قائمة السيارات المفضلة لديك في خليج أوتو - راجع وقارن السيارات التي أضفتها إلى المفضلة":"Your favorite cars list at Khalej Auto - Review and compare cars you added to your wishlist",path:"/wishlist",breadcrumbs:[{name:"ar"===o.value?"الرئيسية":"Home",url:"/"},{name:"ar"===o.value?"المفضلة":"Wishlist",url:"/wishlist"}],additionalSchemas:[{"@context":"https://schema.org","@type":"ItemList",name:"ar"===o.value?"السيارات المفضلة":"Favorite Cars",description:"ar"===o.value?"قائمة السيارات المفضلة لديك في خليج أوتو":"Your favorite cars list at Khalej Auto",itemListOrder:"https://schema.org/ItemListUnordered",numberOfItems:(null==(c=_.favsArr)?void 0:c.length)||0}]});let _=x(),b=e(),j=a(_.isLoading3);return _.getFav(b.ipAddress),l((()=>_.isLoading3),(t=>{j.value=t})),(t,e,i,o)=>{const a=r,l=s,v=y;e(`<div${h(n({class:"wishlist-page"},o))}><div class="text-page"><nav class="breadline" aria-label="Breadcrumb">`),e(f(a,{to:"/"},{default:m(((e,r,i,s)=>{if(!r)return[d(p(t.$t("home")),1)];r(`${g(t.$t("home"))}`)})),_:1},i)),e(`<svg class="arrowDir" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><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">${g(t.$t("fav"))}</span></nav><div><h1 class="title">${g(t.$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(_).favsArr.length>=1?(e('<div class="row">\x3c!--[--\x3e'),w(u(_).favsArr,(t=>{e('<div class="col-12 col-xl-3 col-lg-3 col-md-6 mb-5">'),e(f(l,{item:t.car_id,is_fav:!0,check:!0},null,i)),e("</div>")})),e("\x3c!--]--\x3e</div>")):e(f(v,null,null,i)),e("</div></div>")}}},j=b.setup;b.setup=(t,e)=>{const r=c();return(r.modules||(r.modules=new Set)).add("pages/wishlist.vue"),j?j(t,e):void 0};export{b as default};
