import { d } from './Skeleton-BBJiWBrY.mjs';
import { mergeProps, ref, computed, unref, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList } from 'vue/server-renderer';
import { d as uf, a as Qt, h as Ma, i as wn, b as Qs } from './server.mjs';
import { d as d$1 } from './breadcrumb-LaEAX0us.mjs';
import { $ } from './ProductCard-a4k3Hr5i.mjs';
import { a } from './NoData-DiE8X5YK.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';
import './SvgIcon-BKMVrGmr.mjs';
import './star-mqjJGHgV.mjs';

const g = {};
const w = g.setup;
g.setup = (s2, a2) => {
  const d2 = useSSRContext();
  return (d2.modules || (d2.modules = /* @__PURE__ */ new Set())).add("components/Shared/SliderSkelton.vue"), w ? w(s2, a2) : undefined;
};
const y = uf(g, [["ssrRender", function(l2, d2, e2, i2) {
  const r2 = d;
  d2(`<div${ssrRenderAttrs(mergeProps({ class: "my-10" }, i2))}>`), d2(ssrRenderComponent(r2, { class: "h-[16px] w-[200px] mb-6 lg:mb-14" }, null, e2)), d2('<div class="flex-1 space-y-10 lg:col-span-9"><div class="grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-y-8 gap-x-4"><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div><div class="space-y-4">'), d2(ssrRenderComponent(r2, { class: "h-[300px] w-[100%] rounded-md" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, e2)), d2('</div></div><div class="mt-10 flex justify-center gap-4">'), d2(ssrRenderComponent(r2, { class: "h-[30px] w-[60px]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[30px] w-[60px]" }, null, e2)), d2(ssrRenderComponent(r2, { class: "h-[30px] w-[60px]" }, null, e2)), d2("</div></div></div>");
}]]), f = { __name: "[slug]", __ssrInlineRender: true, setup(s2) {
  var l2;
  const p2 = Qt().$axios, g2 = Ma();
  ref(+(null == (l2 = g2.query) ? undefined : l2.page) || 1);
  const { data: w2, status: f2 } = wn("sliders", () => {
    var s3, l3;
    return p2.get(`slider/${null == (s3 = g2.params) ? undefined : s3.slug}`, { params: { page: null == (l3 = g2.query) ? undefined : l3.page } }).then((s4) => s4.data).catch((s4) => s4.response);
  }), { t: j2 } = Qs(), _ = computed(() => {
    var s3, l3, a2, d2;
    return [{ name: j2("NAV.home"), to: "/" }, { name: j2("TITLES.sliders"), to: "", disabled: true }, { name: (null == (l3 = null == (s3 = w2.value) ? undefined : s3.data) ? undefined : l3.name) || (null == (a2 = g2.params) ? undefined : a2.slug), to: `/sliders/${null == (d2 = g2.params) ? undefined : d2.slug}` }];
  });
  return (s3, l3, d2, e2) => {
    var p3, u2, c2, t2, m2;
    const g3 = y, j3 = d$1, S = $, b = a;
    "pending" === unref(f2) ? (l3(`<div${ssrRenderAttrs(mergeProps({ class: "container my-6 lg:my-16" }, e2))}>`), l3(ssrRenderComponent(g3, null, null, d2)), l3("</div>")) : "success" === unref(f2) ? (l3(`<div${ssrRenderAttrs(mergeProps({ class: "my-6 lg:my-16 container" }, e2))}>`), l3(ssrRenderComponent(j3, { "data-aos": "fade-right", items: unref(_) }, null, d2)), (null == (c2 = null == (u2 = null == (p3 = unref(w2)) ? undefined : p3.data) ? undefined : u2.product_details) ? undefined : c2.length) ? (l3('<div><div class="grid grid-cols-1 mt-6 lg:mt-14 xs:grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-y-8 gap-x-4"><!--[-->'), ssrRenderList(null == (m2 = null == (t2 = unref(w2)) ? undefined : t2.data) ? undefined : m2.product_details, (s4) => {
      l3(ssrRenderComponent(S, { key: s4.id, product: s4 }, null, d2));
    }), l3("<!--]--></div></div>")) : (l3("<div>"), l3(ssrRenderComponent(b, { class: "!min-h-[35vh]" }, null, d2)), l3("</div>")), l3("</div>")) : l3("<!---->");
  };
} }, j = f.setup;
f.setup = (s2, a2) => {
  const d2 = useSSRContext();
  return (d2.modules || (d2.modules = /* @__PURE__ */ new Set())).add("pages/sliders/[slug].vue"), j ? j(s2, a2) : undefined;
};

export { f as default };
//# sourceMappingURL=_slug_-B6qd1DA-.mjs.map
