import { u } from './SearchSkelton-Crr1crO3.mjs';
import { b } from './breadcrumb-DkL96a0m.mjs';
import { $ } from './ProductCard-DemAn2DX.mjs';
import { a } from './NoData-S35t_fLa.mjs';
import { computed, unref, mergeProps, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList } from 'vue/server-renderer';
import { a as Qt, h as Ma, i as Ts, b as gs } from './server.mjs';
import './Skeleton-Bnk8IDLx.mjs';
import './SvgIcon-C2791tkm.mjs';
import './star-mqjJGHgV.mjs';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:fs';
import 'node:url';
import 'node:path';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import 'vue-rate';
import 'date-fns';
import '@hennge/vue3-pagination';
import 'axios';
import 'vue-social-sharing';

const h = { __name: "wishlist", __ssrInlineRender: true, setup(m2) {
  const h2 = Qt().$axios;
  Ma();
  const { data: g2, status: x } = Ts("get_fave_products", () => h2.get("get_fave_products").then((t2) => t2.data).catch((t2) => t2.response)), { t: f } = gs(), _ = computed(() => [{ name: f("NAV.home"), to: "/" }, { name: f("TITLES.wishlist"), to: "", disabled: true }]);
  return (s2, m3, l2, u2) => {
    var c2, v2, h3;
    const f2 = u, j = b, k = $, S = a;
    "pending" === unref(x) ? (m3(`<div${ssrRenderAttrs(mergeProps({ class: "container my-10" }, u2))}>`), m3(ssrRenderComponent(f2, null, null, l2)), m3("</div>")) : "success" === unref(x) ? (m3(`<div${ssrRenderAttrs(mergeProps({ class: "my-10 container" }, u2))}>`), m3(ssrRenderComponent(j, { "data-aos": "fade-right", items: unref(_) }, null, l2)), (null == (v2 = null == (c2 = unref(g2)) ? undefined : c2.data) ? undefined : v2.length) ? (m3('<div><div class="grid mt-6 lg:mt-14 grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-y-8 gap-x-2.5"><!--[-->'), ssrRenderList(null == (h3 = unref(g2)) ? undefined : h3.data, (t2) => {
      m3(ssrRenderComponent(k, { key: t2.id, product: t2 }, null, l2));
    }), m3("<!--]--></div></div>")) : (m3("<div>"), m3(ssrRenderComponent(S, { class: "!min-h-[35vh]" }, null, l2)), m3("</div>")), m3("</div>")) : m3("<!---->");
  };
} }, g = h.setup;
h.setup = (t2, o2) => {
  const r2 = useSSRContext();
  return (r2.modules || (r2.modules = /* @__PURE__ */ new Set())).add("pages/wishlist.vue"), g ? g(t2, o2) : undefined;
};

export { h as default };
//# sourceMappingURL=wishlist-DzUNPPno.mjs.map
