import { u } from './Skeleton-DfjdyTna.mjs';
import { mergeProps, ref, computed, unref, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList } from 'vue/server-renderer';
import { f as cf, u as Qt, i as Ma, a as Ts, d as gs } from './server.mjs';
import { v } from './breadcrumb-DGU_YuMK.mjs';
import { $ } from './ProductCard-BWoG9xpD.mjs';
import { a } from './NoData-IIg4-CUc.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-YE_5uJaI.mjs';
import './star-mqjJGHgV.mjs';

const g = {};
const w = g.setup;
g.setup = (s2, a2) => {
  const i2 = useSSRContext();
  return (i2.modules || (i2.modules = /* @__PURE__ */ new Set())).add("components/Shared/SliderSkelton.vue"), w ? w(s2, a2) : undefined;
};
const y = cf(g, [["ssrRender", function(l2, i2, p2, e2) {
  const r2 = u;
  i2(`<div${ssrRenderAttrs(mergeProps({ class: "my-6 lg:my-10" }, e2))}>`), i2(ssrRenderComponent(r2, { class: "h-[16px] w-[200px] mb-6 lg:mb-14" }, null, p2)), i2('<div class="flex-1 space-y-10 lg:col-span-9"><div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-y-8 gap-x-2.5"><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div><div class="space-y-4">'), i2(ssrRenderComponent(r2, { class: "h-[280px] sm:h-[320px] w-[100%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[70%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[40%]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[14px] w-[50%]" }, null, p2)), i2('</div></div><div class="mt-10 flex justify-center gap-4">'), i2(ssrRenderComponent(r2, { class: "h-[30px] w-[60px]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[30px] w-[60px]" }, null, p2)), i2(ssrRenderComponent(r2, { class: "h-[30px] w-[60px]" }, null, p2)), i2("</div></div></div>");
}]]), f = { __name: "[slug]", __ssrInlineRender: true, setup(s2) {
  var l2;
  const d2 = Qt().$axios, g2 = Ma();
  ref(+(null == (l2 = g2.query) ? undefined : l2.page) || 1);
  const { data: w2, status: f2 } = Ts("sliders", () => {
    var s3, l3;
    return d2.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 } = gs(), _ = computed(() => {
    var s3, l3, a2, i2;
    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 == (i2 = g2.params) ? undefined : i2.slug}` }];
  });
  return (s3, l3, i2, p2) => {
    var d3, t2, u2, c2, m2;
    const g3 = y, j3 = v, S = $, b = a;
    "pending" === unref(f2) ? (l3(`<div${ssrRenderAttrs(mergeProps({ class: "container my-6 lg:my-16" }, p2))}>`), l3(ssrRenderComponent(g3, null, null, i2)), l3("</div>")) : "success" === unref(f2) ? (l3(`<div${ssrRenderAttrs(mergeProps({ class: "my-6 lg:my-16 container" }, p2))}>`), l3(ssrRenderComponent(j3, { "data-aos": "fade-right", items: unref(_) }, null, i2)), (null == (u2 = null == (t2 = null == (d3 = unref(w2)) ? undefined : d3.data) ? undefined : t2.product_details) ? undefined : u2.length) ? (l3('<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 == (m2 = null == (c2 = unref(w2)) ? undefined : c2.data) ? undefined : m2.product_details, (s4) => {
      l3(ssrRenderComponent(S, { key: s4.id, product: s4 }, null, i2));
    }), l3("<!--]--></div></div>")) : (l3("<div>"), l3(ssrRenderComponent(b, { class: "!min-h-[35vh]" }, null, i2)), l3("</div>")), l3("</div>")) : l3("<!---->");
  };
} }, j = f.setup;
f.setup = (s2, a2) => {
  const i2 = useSSRContext();
  return (i2.modules || (i2.modules = /* @__PURE__ */ new Set())).add("pages/sliders/[slug].vue"), j ? j(s2, a2) : undefined;
};

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