import { _ as _sfc_main$a } from './login-2QWgrsiV.mjs';
import { _ as __nuxt_component_0$2, a as __nuxt_component_0$1, b as __nuxt_component_0$3 } from './code-j8MvDw0f.mjs';
import { d as useSeoMeta, e as useMaghaleStore, b as useRuntimeConfig, a as useNuxtApp, _ as __nuxt_component_0, c as _sfc_main$5$1 } from './server.mjs';
import { _ as _sfc_main$b } from './statistics-90Di9IHE.mjs';
import { ref, mergeProps, unref, reactive, withCtx, createBlock, openBlock, createVNode, toDisplayString, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderAttr, ssrRenderComponent, ssrRenderStyle, ssrIncludeBooleanAttr, ssrLooseEqual, ssrRenderList, ssrInterpolate } from 'vue/server-renderer';
import axios from 'axios';
import { _ as __nuxt_component_4 } from './footer-Cr83qpIL.mjs';
import './_plugin-vue_export-helper-1tPrXgE0.mjs';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/plugins';
import 'unhead/utils';
import 'pinia';
import 'vue-router';
import 'deep-pick-omit';
import 'sweetalert2';

const _sfc_main$9 = {
  __name: "keyword",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconKeyword = __nuxt_component_0$2;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconKeyword, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white"><h5 class="">${ssrInterpolate(unref(instance).title)}</h5>`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Keyword + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-5 mr-2"${_scopeId}><path stroke-linecap="round" stroke-linejoin="round" d="M21 16.811c0 .864-.933 1.406-1.683.977l-7.108-4.061a1.125 1.125 0 0 1 0-1.954l7.108-4.061A1.125 1.125 0 0 1 21 8.689v8.122ZM11.25 16.811c0 .864-.933 1.406-1.683.977l-7.108-4.061a1.125 1.125 0 0 1 0-1.954l7.108-4.061a1.125 1.125 0 0 1 1.683.977v8.122Z"${_scopeId}></path></svg>`);
          } else {
            return [
              (openBlock(), createBlock("svg", {
                xmlns: "http://www.w3.org/2000/svg",
                fill: "none",
                viewBox: "0 0 24 24",
                "stroke-width": "1.5",
                stroke: "currentColor",
                class: "size-5 mr-2"
              }, [
                createVNode("path", {
                  "stroke-linecap": "round",
                  "stroke-linejoin": "round",
                  d: "M21 16.811c0 .864-.933 1.406-1.683.977l-7.108-4.061a1.125 1.125 0 0 1 0-1.954l7.108-4.061A1.125 1.125 0 0 1 21 8.689v8.122ZM11.25 16.811c0 .864-.933 1.406-1.683.977l-7.108-4.061a1.125 1.125 0 0 1 0-1.954l7.108-4.061a1.125 1.125 0 0 1 1.683.977v8.122Z"
                })
              ]))
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div><p class="mb-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$9 = _sfc_main$9.setup;
_sfc_main$9.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/keyword.vue");
  return _sfc_setup$9 ? _sfc_setup$9(props, ctx) : void 0;
};
const _sfc_main$8 = {
  __name: "book",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-2 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconBook, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Book + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$8 = _sfc_main$8.setup;
_sfc_main$8.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/book.vue");
  return _sfc_setup$8 ? _sfc_setup$8(props, ctx) : void 0;
};
const _sfc_main$7 = {
  __name: "section",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconBook, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Section + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$7 = _sfc_main$7.setup;
_sfc_main$7.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/section.vue");
  return _sfc_setup$7 ? _sfc_setup$7(props, ctx) : void 0;
};
const _sfc_main$6 = {
  __name: "chapter",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconBook, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Chapter + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$6 = _sfc_main$6.setup;
_sfc_main$6.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/chapter.vue");
  return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
};
const _sfc_main$5 = {
  __name: "Idea",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconBook, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Idea + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$5 = _sfc_main$5.setup;
_sfc_main$5.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/Idea.vue");
  return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
};
const _sfc_main$4 = {
  __name: "paper",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconBook, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Paper + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$4 = _sfc_main$4.setup;
_sfc_main$4.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/paper.vue");
  return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
};
const _sfc_main$3 = {
  __name: "code",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconCode = __nuxt_component_0$3;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconCode, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Code + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$3 = _sfc_main$3.setup;
_sfc_main$3.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/code.vue");
  return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
};
const _sfc_main$2 = {
  __name: "handout",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const props = __props;
    const instance = props.instance;
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_NuxtLink = __nuxt_component_0;
      const _component_UserProfile = _sfc_main$5$1;
      const _component_ActivityStatistics = _sfc_main$b;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-2 ms-4 p-2" }, _attrs))}><span class="absolute -mt-1 flex items-center justify-center w-6 h-6 bg-blue-100 rounded-full -start-3 ring-4 ring-white dark:ring-zinc-900 dark:bg-blue-900">`);
      _push(ssrRenderComponent(_component_IconBook, { class: "size-5 text-zinc-100" }, null, _parent));
      _push(`</span><div class="shadow-2xl rounded-lg p-2"><div class="flex justify-between"><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white">`);
      _push(ssrRenderComponent(_component_NuxtLink, {
        to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.Handout + unref(instance).content
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<h5 class=""${_scopeId}>${ssrInterpolate(unref(instance).title)}</h5>`);
          } else {
            return [
              createVNode("h5", { class: "" }, toDisplayString(unref(instance).title), 1)
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div>`);
      if (unref(instance).get_image) {
        _push(`<img${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(instance).get_image)} alt="" class="size-16 object-cover rounded-lg">`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><p class="mt-1 font-normal text-zinc-700 dark:text-zinc-400">${ssrInterpolate(unref(instance).abstract)}</p>`);
      _push(ssrRenderComponent(_component_UserProfile, {
        user: unref(instance).user,
        class: "mt-2"
      }, null, _parent));
      _push(`<div class="flex justify-end items-end mt-1"><div class="flex flex-col items-end"><p class="mt-1 text-xs text-left font-normal text-zinc-500 dark:text-zinc-400">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</p>`);
      _push(ssrRenderComponent(_component_ActivityStatistics, { instance: unref(instance) }, null, _parent));
      _push(`</div></div></div></div>`);
    };
  }
};
const _sfc_setup$2 = _sfc_main$2.setup;
_sfc_main$2.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/handout.vue");
  return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
};
const _sfc_main$1 = {
  __name: "tiles",
  __ssrInlineRender: true,
  setup(__props) {
    const ordering = ref("create_time");
    const activities = reactive({ data: [] });
    async function getActivities(url) {
      await axios.get(url).then((r) => {
        activities.data = activities.data.concat(r.data.results);
        activities.next = r.data.next;
      });
    }
    getActivities(`${useRuntimeConfig().public.BaseUrl}maghale/get_activities/?page=1&ordering=${ordering.value}`);
    return (_ctx, _push, _parent, _attrs) => {
      const _component_ActivityKeyword = _sfc_main$9;
      const _component_ActivityBook = _sfc_main$8;
      const _component_ActivitySection = _sfc_main$7;
      const _component_ActivityChapter = _sfc_main$6;
      const _component_ActivityIdea = _sfc_main$5;
      const _component_ActivityPaper = _sfc_main$4;
      const _component_ActivityCode = _sfc_main$3;
      const _component_ActivityHandout = _sfc_main$2;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mt-4" }, _attrs))}><div class="flex items-center mb-4 justify-end"><div class="text-xs"><button id="dropdownRadioButton" data-dropdown-toggle="dropdownRadio" class="inline-flex items-center text-zinc-500 ml-2 bg-white border border-zinc-300 focus:outline-none hover:bg-zinc-100 focus:ring-4 focus:ring-zinc-100 font-medium rounded-lg px-3 py-1.5 dark:bg-zinc-800 dark:text-white dark:border-zinc-600 dark:hover:bg-zinc-700 dark:hover:border-zinc-600 dark:focus:ring-zinc-700" type="button"><svg class="w-3 h-3 text-zinc-500 dark:text-zinc-400 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm3.982 13.982a1 1 0 0 1-1.414 0l-3.274-3.274A1.012 1.012 0 0 1 9 10V6a1 1 0 0 1 2 0v3.586l2.982 2.982a1 1 0 0 1 0 1.414Z"></path></svg> \u0645\u0631\u062A\u0628\u200C\u0633\u0627\u0632\u06CC <svg class="w-2.5 h-2.5 ms-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"></path></svg></button><div id="dropdownRadio" class="z-10 hidden w-48 bg-white divide-y divide-zinc-100 rounded-lg shadow dark:bg-zinc-700 dark:divide-zinc-600" data-popper-reference-hidden="" data-popper-escaped="" data-popper-placement="top" style="${ssrRenderStyle({ "position": "absolute", "inset": "auto auto 0px 0px", "margin": "0px", "transform": "translate3d(522.5px, 3847.5px, 0px)" })}"><ul class="p-3 space-y-1 text-zinc-700 dark:text-zinc-200" aria-labelledby="dropdownRadioButton"><li><div class="flex items-center p-2 rounded hover:bg-zinc-100 dark:hover:bg-zinc-600"><input id="title" type="radio" value="title" name="filter-radio"${ssrIncludeBooleanAttr(ssrLooseEqual(unref(ordering), "title")) ? " checked" : ""} class="w-4 h-4 text-blue-600 bg-zinc-100 border-zinc-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-zinc-800 dark:focus:ring-offset-zinc-800 focus:ring-2 dark:bg-zinc-700 dark:border-zinc-600"><label for="title" class="w-full ms-2 font-medium text-zinc-900 rounded dark:text-zinc-300">\u0639\u0646\u0648\u0627\u0646</label></div></li><li><div class="flex items-center p-2 rounded hover:bg-zinc-100 dark:hover:bg-zinc-600"><input id="-date" type="radio" value="-date"${ssrIncludeBooleanAttr(ssrLooseEqual(unref(ordering), "-date")) ? " checked" : ""} name="filter-radio" class="w-4 h-4 text-blue-600 bg-zinc-100 border-zinc-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-zinc-800 dark:focus:ring-offset-zinc-800 focus:ring-2 dark:bg-zinc-700 dark:border-zinc-600"><label for="-date" class="w-full ms-2 font-medium text-zinc-900 rounded dark:text-zinc-300">\u062C\u062F\u06CC\u062F\u062A\u0631\u06CC\u0646</label></div></li><li><div class="flex items-center p-2 rounded hover:bg-zinc-100 dark:hover:bg-zinc-600"><input id="date" type="radio" value="date"${ssrIncludeBooleanAttr(ssrLooseEqual(unref(ordering), "date")) ? " checked" : ""} name="filter-radio" class="w-4 h-4 text-blue-600 bg-zinc-100 border-zinc-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-zinc-800 dark:focus:ring-offset-zinc-800 focus:ring-2 dark:bg-zinc-700 dark:border-zinc-600"><label for="date" class="w-full ms-2 font-medium text-zinc-900 rounded dark:text-zinc-300">\u0642\u062F\u06CC\u0645\u06CC\u200C\u062A\u0631\u06CC\u0646</label></div></li></ul></div></div></div><ol class="relative border-s ms-4 border-zinc-200 dark:border-zinc-700 mt-4">`);
      if (unref(activities).data.length) {
        _push(`<!--[-->`);
        ssrRenderList(unref(activities).data, (instance) => {
          _push(`<li>`);
          if (instance.type == "keyword") {
            _push(ssrRenderComponent(_component_ActivityKeyword, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "book") {
            _push(ssrRenderComponent(_component_ActivityBook, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "section") {
            _push(ssrRenderComponent(_component_ActivitySection, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "chapter") {
            _push(ssrRenderComponent(_component_ActivityChapter, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "idea") {
            _push(ssrRenderComponent(_component_ActivityIdea, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "paper") {
            _push(ssrRenderComponent(_component_ActivityPaper, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "code") {
            _push(ssrRenderComponent(_component_ActivityCode, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          if (instance.type == "handout") {
            _push(ssrRenderComponent(_component_ActivityHandout, { instance }, null, _parent));
          } else {
            _push(`<!---->`);
          }
          _push(`</li>`);
        });
        _push(`<!--]-->`);
      } else {
        _push(`<!---->`);
      }
      _push(`</ol><div class="flex justify-center mt-4">`);
      if (unref(activities).next) {
        _push(`<button type="button" class="text-zinc-900 dark:text-white animate-bounce"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 5.25 7.5 7.5 7.5-7.5m-15 6 7.5 7.5 7.5-7.5"></path></svg></button>`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div></div>`);
    };
  }
};
const _sfc_setup$1 = _sfc_main$1.setup;
_sfc_main$1.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/activity/tiles.vue");
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
const _sfc_main = {
  __name: "index",
  __ssrInlineRender: true,
  setup(__props) {
    useSeoMeta({
      title: "\u0645\u0642\u0627\u0644\u0647",
      ogTitle: "\u0645\u0642\u0627\u0644\u0647",
      creator: "\u062D\u062F\u06CC\u062F",
      author: "\u0645\u062D\u0645\u062F \u0633\u0628\u06A9 \u062F\u0633\u062A",
      publisher: "hadid",
      ogType: "website",
      ogSiteName: "\u0645\u0642\u0627\u0644\u0647",
      description: "\u0645\u0637\u0627\u0644\u0639\u0647 \u0645\u0634\u062A\u0631\u06A9 \u0645\u0642\u0627\u0644\u0647 \u0647\u0627\u06CC \u0639\u0644\u0645\u06CC \u0648 \u062A\u062D\u0642\u06CC\u0642\u0627\u062A\u06CC \u062F\u0631 \u0628\u0633\u062A\u0631 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06CC",
      ogDescription: "\u0645\u0637\u0627\u0644\u0639\u0647 \u0645\u0634\u062A\u0631\u06A9 \u0645\u0642\u0627\u0644\u0647 \u0647\u0627\u06CC \u0639\u0644\u0645\u06CC \u0648 \u062A\u062D\u0642\u06CC\u0642\u0627\u062A\u06CC \u062F\u0631 \u0628\u0633\u062A\u0631 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06CC",
      ogUrl: "https://maghaale.ir"
    });
    const store = useMaghaleStore();
    const poster = ref({});
    var textSearchUser = ref("");
    return (_ctx, _push, _parent, _attrs) => {
      const _component_UserLogin = _sfc_main$a;
      const _component_ActivityTiles = _sfc_main$1;
      const _component_MaghaleFooter = __nuxt_component_4;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "font-sins min-h-screen" }, _attrs))}>`);
      if (unref(poster).poster) {
        _push(`<div class="w-full"><a${ssrRenderAttr("href", unref(poster).poster.link)}><img${ssrRenderAttr("src", `${("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl}${unref(poster).poster.big_image}`)} alt="pc poster" class="object-cover hidden md:flex"></a><a${ssrRenderAttr("href", unref(poster).poster.link)}><img${ssrRenderAttr("src", `${("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl}${unref(poster).poster.small_image}`)} alt="phone poster" class="md:hidden object-cover mx-auto h-40 w-96 rounded-lg mt-1"></a></div>`);
      } else {
        _push(`<!---->`);
      }
      _push(`<form class="max-w-md mx-auto mt-4"><label for="default-search" class="mb-2 text-sm font-medium text-zinc-950 sr-only dark:text-white">Search</label><div class="relative"><div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none"><svg class="w-4 h-4 text-zinc-500 dark:text-zinc-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"></path></svg></div><input type="search" id="default-search"${ssrRenderAttr("value", unref(textSearchUser))} class="block w-full p-2 ps-10 text-xs text-zinc-950 border border-zinc-300 rounded-lg bg-zinc-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-zinc-700 dark:border-zinc-600 dark:placeholder-zinc-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="\u062C\u0633\u062A\u062C\u0648 \u062F\u0631 \u0645\u06CC\u0627\u0646 \u0645\u0642\u0627\u0644\u0627\u062A\u060C \u0646\u0648\u06CC\u0633\u0646\u062F\u0647\u200C\u0647\u0627 \u0648 \u06A9\u0644\u06CC\u062F\u0648\u0627\u0698\u0647\u200C\u0647\u0627 ..." required></div></form>`);
      if (!unref(store).isAuthenticated) {
        _push(ssrRenderComponent(_component_UserLogin, null, null, _parent));
      } else {
        _push(`<!---->`);
      }
      _push(ssrRenderComponent(_component_ActivityTiles, null, null, _parent));
      _push(ssrRenderComponent(_component_MaghaleFooter, null, null, _parent));
      _push(`</div>`);
    };
  }
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/index.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};

export { _sfc_main as default };
//# sourceMappingURL=index-CfrRZkVr.mjs.map
