import { _ as _sfc_main$e } from "./breadcrumb-CbT__xLz.js";
import { e as useMaghaleStore, a as useNuxtApp, f as useRouter, c as _sfc_main$b, g as useRoute, _ as __nuxt_component_0$3, b as useRuntimeConfig } from "../server.mjs";
import { _ as __nuxt_component_0, a as __nuxt_component_0$1, b as __nuxt_component_0$2 } from "./code-j8MvDw0f.js";
import { mergeProps, useSSRContext, unref, reactive, withCtx, createVNode } from "vue";
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent, ssrRenderAttr, ssrRenderList, ssrIncludeBooleanAttr, ssrLooseContain } from "vue/server-renderer";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
import { _ as _sfc_main$c } from "./status-D3scJwW-.js";
import { _ as _sfc_main$d } from "./statistics-90Di9IHE.js";
import axios from "axios";
import "ofetch";
import "#internal/nuxt/paths";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/hookable/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/unctx/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/h3/dist/index.mjs";
import "pinia";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/defu/dist/defu.mjs";
import "vue-router";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/radix3/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/ufo/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/klona/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/destr/dist/index.mjs";
import "deep-pick-omit";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/cookie-es/dist/index.mjs";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/ohash/dist/index.mjs";
import "sweetalert2";
import "C:/Users/QU3/Documents/webapps/maghale/node_modules/@unhead/vue/dist/index.mjs";
const _sfc_main$a = {};
function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs) {
  _push(`<svg${ssrRenderAttrs(mergeProps({
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 24 24",
    "stroke-width": "1.5",
    stroke: "currentColor",
    class: ""
  }, _attrs))}><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"></path></svg>`);
}
const _sfc_setup$a = _sfc_main$a.setup;
_sfc_main$a.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/icon/paper.vue");
  return _sfc_setup$a ? _sfc_setup$a(props, ctx) : void 0;
};
const __nuxt_component_3 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["ssrRender", _sfc_ssrRender$3]]);
const _sfc_main$9 = {};
function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs) {
  _push(`<svg${ssrRenderAttrs(mergeProps({
    xmlns: "http://www.w3.org/2000/svg",
    fill: "none",
    viewBox: "0 0 24 24",
    "stroke-width": "1.5",
    stroke: "currentColor",
    class: ""
  }, _attrs))}><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"></path></svg>`);
}
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/icon/web.vue");
  return _sfc_setup$9 ? _sfc_setup$9(props, ctx) : void 0;
};
const __nuxt_component_6 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["ssrRender", _sfc_ssrRender$2]]);
const _sfc_main$8 = {};
function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs) {
  _push(`<svg${ssrRenderAttrs(mergeProps({
    class: "text-zinc-800 dark:text-zinc-100",
    fill: "currentColor",
    stroke: "currentColor",
    xmlns: "http://www.w3.org/2000/svg",
    viewBox: "-47.36265 -79.99825 410.4763 479.9895",
    width: "1200",
    height: "800"
  }, _attrs))}><path d="M294.93 130.971a79.712 79.712 0 00-6.85-65.48c-17.46-30.4-52.56-46.04-86.84-38.68A79.747 79.747 0 00141.11.001c-35.04-.08-66.13 22.48-76.91 55.82a79.754 79.754 0 00-53.31 38.67c-17.59 30.32-13.58 68.54 9.92 94.54a79.712 79.712 0 006.85 65.48c17.46 30.4 52.56 46.04 86.84 38.68a79.687 79.687 0 0060.13 26.8c35.06.09 66.16-22.49 76.94-55.86a79.754 79.754 0 0053.31-38.67c17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11a59.77 59.77 0 01-38.39-13.88c.49-.26 1.34-.73 1.89-1.07l63.72-36.8a10.36 10.36 0 005.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03a59.71 59.71 0 01-7.15-40.18c.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49l-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94a59.94 59.94 0 01-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8a10.375 10.375 0 00-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22a59.95 59.95 0 017.15 40.1zm-168.51 55.43l-26.94-15.55a.943.943 0 01-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8a10.344 10.344 0 00-5.24 9.06l-.04 89.79zm14.63-31.54l34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"></path></svg>`);
}
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/icon/chatgpt.vue");
  return _sfc_setup$8 ? _sfc_setup$8(props, ctx) : void 0;
};
const __nuxt_component_7 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["ssrRender", _sfc_ssrRender$1]]);
const _sfc_main$7 = {
  __name: "tile",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    useMaghaleStore();
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    const props = __props;
    const instance = props.instance;
    useRouter();
    return (_ctx, _push, _parent, _attrs) => {
      const _component_UserProfile = _sfc_main$b;
      const _component_ActivityStatus = _sfc_main$c;
      const _component_ActivityStatistics = _sfc_main$d;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "bg-zinc-100 dark:bg-zinc-900 rounded-lg p-2" }, _attrs))}><div class="flex items-center text-sm font-bold tracking-tight text-zinc-950 dark:text-white"><h5 class="">${ssrInterpolate(unref(instance).title)}</h5><button><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"><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"></path></svg></button></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-between items-end mt-1">`);
      if (unref(instance).work) {
        _push(ssrRenderComponent(_component_ActivityStatus, { instance: unref(instance) }, null, _parent));
      } else {
        _push(`<div></div>`);
      }
      _push(`<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>`);
    };
  }
};
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/tile.vue");
  return _sfc_setup$7 ? _sfc_setup$7(props, ctx) : void 0;
};
const _sfc_main$6 = {
  __name: "status",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const { $CustomAlert } = useNuxtApp();
    const store = useMaghaleStore();
    const props = __props;
    const instance = props.instance;
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<div${ssrRenderAttrs(_attrs)}>`);
      if (unref(store).idea.is_member) {
        _push(`<select id="states" class="bg-zinc-50 border border-zinc-300 text-zinc-900 text-xs rounded-lg border-s-2 focus:ring-blue-500 focus:border-blue-500 block p-1 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"><option selected${ssrRenderAttr("value", 1)}>درحال بررسی</option><option selected${ssrRenderAttr("value", 2)}>مرتبط</option><option selected${ssrRenderAttr("value", 3)}>نامرتبط</option><option selected${ssrRenderAttr("value", 4)}>مفید</option></select>`);
      } else {
        _push(`<div>`);
        if (unref(instance).status == 1) {
          _push(`<span class="bg-yellow-100 text-yellow-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-yellow-800 dark:text-yellow-400 border border-yellow-400">${ssrInterpolate(unref(instance).get_status)}</span>`);
        } else if (unref(instance).status == 2) {
          _push(`<span class="bg-blue-100 text-blue-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-blue-800 dark:text-blue-400 border border-blue-400">${ssrInterpolate(unref(instance).get_status)}</span>`);
        } else if (unref(instance).status == 3) {
          _push(`<span class="bg-red-100 text-red-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-red-800 dark:text-red-400 border border-red-400">${ssrInterpolate(unref(instance).get_status)}</span>`);
        } else {
          _push(`<span class="bg-green-100 text-green-800 text-xs font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-green-800 dark:text-green-400 border border-green-400">${ssrInterpolate(unref(instance).get_status)}</span>`);
        }
        _push(`</div>`);
      }
      _push(`</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/idea/step/status.vue");
  return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
};
const _sfc_main$5 = {
  __name: "keyword",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    const props = __props;
    const instance = props.instance;
    useRoute().params.id;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconKeyword = __nuxt_component_0;
      const _component_ActivityTile = _sfc_main$7;
      const _component_UserProfile = _sfc_main$b;
      const _component_IdeaStepStatus = _sfc_main$6;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-10 ms-4 shadow-2xl 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>`);
      if (unref(instance).active) {
        _push(`<div>`);
        _push(ssrRenderComponent(_component_ActivityTile, {
          instance: unref(instance).target
        }, null, _parent));
        _push(`<div class="p-2">`);
        _push(ssrRenderComponent(_component_UserProfile, {
          user: unref(instance).user,
          class: "mt-2"
        }, null, _parent));
        _push(`<div class="flex justify-between items-end mt-4">`);
        _push(ssrRenderComponent(_component_IdeaStepStatus, { instance: unref(instance) }, null, _parent));
        _push(`<time class="block mt-2 text-xs font-normal leading-none text-zinc-400 dark:text-zinc-500">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</time></div></div></div>`);
      } else {
        _push(`<button type="button"><span class="pb-1 px-4 bg-gray-700 text-gray-200 rounded-lg">...</span></button>`);
      }
      _push(`</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/idea/step/keyword.vue");
  return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
};
const _sfc_main$4 = {
  __name: "section",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    const props = __props;
    const instance = props.instance;
    useRoute().params.id;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_ActivityTile = _sfc_main$7;
      const _component_UserProfile = _sfc_main$b;
      const _component_IdeaStepStatus = _sfc_main$6;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-10 ms-4 shadow-2xl 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>`);
      if (unref(instance).active) {
        _push(`<div>`);
        _push(ssrRenderComponent(_component_ActivityTile, {
          instance: unref(instance).target
        }, null, _parent));
        _push(`<div class="p-2">`);
        _push(ssrRenderComponent(_component_UserProfile, {
          user: unref(instance).user,
          class: "mt-2"
        }, null, _parent));
        _push(`<div class="flex justify-between items-end mt-4">`);
        _push(ssrRenderComponent(_component_IdeaStepStatus, { instance: unref(instance) }, null, _parent));
        _push(`<time class="block mt-2 text-xs font-normal leading-none text-zinc-400 dark:text-zinc-500">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</time></div></div></div>`);
      } else {
        _push(`<button type="button"><span class="pb-1 px-4 bg-gray-700 text-gray-200 rounded-lg">...</span></button>`);
      }
      _push(`</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/idea/step/section.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 { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    const props = __props;
    const instance = props.instance;
    useRoute().params.id;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconCode = __nuxt_component_0$2;
      const _component_ActivityTile = _sfc_main$7;
      const _component_UserProfile = _sfc_main$b;
      const _component_IdeaStepStatus = _sfc_main$6;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-10 ms-4 shadow-2xl 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>`);
      if (unref(instance).active) {
        _push(`<div>`);
        _push(ssrRenderComponent(_component_ActivityTile, {
          instance: unref(instance).target
        }, null, _parent));
        _push(`<div class="p-2">`);
        _push(ssrRenderComponent(_component_UserProfile, {
          user: unref(instance).user,
          class: "mt-2"
        }, null, _parent));
        _push(`<div class="flex justify-between items-end mt-4">`);
        _push(ssrRenderComponent(_component_IdeaStepStatus, { instance: unref(instance) }, null, _parent));
        _push(`<time class="block mt-2 text-xs font-normal leading-none text-zinc-400 dark:text-zinc-500">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</time></div></div></div>`);
      } else {
        _push(`<button type="button"><span class="pb-1 px-4 bg-gray-700 text-gray-200 rounded-lg">...</span></button>`);
      }
      _push(`</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/idea/step/code.vue");
  return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
};
const _sfc_main$2 = {
  __name: "paper",
  __ssrInlineRender: true,
  props: ["instance"],
  setup(__props) {
    const { $toPersianNumbers } = useNuxtApp();
    const toPersianNumbers = $toPersianNumbers;
    const props = __props;
    const instance = props.instance;
    useRoute().params.id;
    return (_ctx, _push, _parent, _attrs) => {
      const _component_IconBook = __nuxt_component_0$1;
      const _component_ActivityTile = _sfc_main$7;
      const _component_UserProfile = _sfc_main$b;
      const _component_IdeaStepStatus = _sfc_main$6;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mb-10 ms-4 shadow-2xl 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>`);
      if (unref(instance).active) {
        _push(`<div>`);
        _push(ssrRenderComponent(_component_ActivityTile, {
          instance: unref(instance).target
        }, null, _parent));
        _push(`<div class="p-2">`);
        _push(ssrRenderComponent(_component_UserProfile, {
          user: unref(instance).user,
          class: "mt-2"
        }, null, _parent));
        _push(`<div class="flex justify-between items-end mt-4">`);
        _push(ssrRenderComponent(_component_IdeaStepStatus, { instance: unref(instance) }, null, _parent));
        _push(`<time class="block mt-2 text-xs font-normal leading-none text-zinc-400 dark:text-zinc-500">${ssrInterpolate(unref(toPersianNumbers)(unref(instance).persian_date))}</time></div></div></div>`);
      } else {
        _push(`<button type="button"><span class="pb-1 px-4 bg-gray-700 text-gray-200 rounded-lg">...</span></button>`);
      }
      _push(`</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/idea/step/paper.vue");
  return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
};
const _sfc_main$1 = {
  __name: "timeline",
  __ssrInlineRender: true,
  setup(__props) {
    const store = useMaghaleStore();
    const id = store.idea.id;
    const idea = reactive({ steps: [], data: {} });
    async function getIdea() {
      let url = useRuntimeConfig().public.BaseUrl + "ideas/";
      store.isAuthenticated ? url = url + "get_timeline_by_user/" : url = url + "get_timeline/";
      axios.get(url + store.idea.id).then((r) => {
        idea.data = r.data;
        store.setIsMember(r.data.is_member);
      });
    }
    async function getSteps() {
      let url = useRuntimeConfig().public.BaseUrl + "ideas/";
      store.isAuthenticated ? url = url + "idea_steps_by_user/" : url = url + "idea_steps/";
      axios.get(`${url}?pk=${id}`).then((r) => {
        idea.steps = idea.steps.concat(r.data.results);
      });
    }
    getSteps();
    store.isAuthenticated ? getIdea() : 0;
    const filters = {
      unrelateds: false,
      relateds: true,
      pendings: false
    };
    return (_ctx, _push, _parent, _attrs) => {
      const _component_UserProfile = _sfc_main$b;
      const _component_NuxtLink = __nuxt_component_0$3;
      const _component_IconBook = __nuxt_component_0$1;
      const _component_IconPaper = __nuxt_component_3;
      const _component_IconCode = __nuxt_component_0$2;
      const _component_IconKeyword = __nuxt_component_0;
      const _component_IconWeb = __nuxt_component_6;
      const _component_IconChatgpt = __nuxt_component_7;
      const _component_IdeaStepKeyword = _sfc_main$5;
      const _component_IdeaStepSection = _sfc_main$4;
      const _component_IdeaStepCode = _sfc_main$3;
      const _component_IdeaStepPaper = _sfc_main$2;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "mt-12" }, _attrs))}><div class="mt-4"><!--[-->`);
      ssrRenderList(unref(idea).data.users, (user) => {
        _push(`<div class="flex items-center justify-between p-2">`);
        _push(ssrRenderComponent(_component_UserProfile, { user }, null, _parent));
        _push(`<label dir="ltr" class="inline-flex items-center cursor-pointer"><input type="checkbox"${ssrIncludeBooleanAttr(Array.isArray(user.active) ? ssrLooseContain(user.active, null) : user.active) ? " checked" : ""} class="sr-only peer"><div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[&#39;&#39;] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600 dark:peer-checked:bg-blue-600"></div></label></div>`);
      });
      _push(`<!--]--></div><div class="flex space-x-3 p-2"><div class="flex items-center"><input checked id="checked-checkbox" type="checkbox"${ssrIncludeBooleanAttr(Array.isArray(filters.relateds) ? ssrLooseContain(filters.relateds, null) : filters.relateds) ? " checked" : ""} class="w-4 h-4 text-blue-600 bg-zinc-100 border-zinc-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-zinc-800 focus:ring-2 dark:bg-zinc-700 dark:border-zinc-600"><label for="checked-checkbox" class="ms-1 text-sm font-medium text-zinc-900 dark:text-zinc-300">مرتبط‌ها</label></div><div class="flex items-center"><input checked id="checked-checkbox" type="checkbox"${ssrIncludeBooleanAttr(Array.isArray(filters.pendings) ? ssrLooseContain(filters.pendings, null) : filters.pendings) ? " checked" : ""} class="w-4 h-4 text-blue-600 bg-zinc-100 border-zinc-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-zinc-800 focus:ring-2 dark:bg-zinc-700 dark:border-zinc-600"><label for="checked-checkbox" class="ms-1 text-sm font-medium text-zinc-900 dark:text-zinc-300">درحال‌بررسی‌ها</label></div><div class="flex items-center"><input checked id="checked-checkbox" type="checkbox"${ssrIncludeBooleanAttr(Array.isArray(filters.unrelateds) ? ssrLooseContain(filters.unrelateds, null) : filters.unrelateds) ? " checked" : ""} class="w-4 h-4 text-blue-600 bg-zinc-100 border-zinc-300 rounded-sm focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-zinc-800 focus:ring-2 dark:bg-zinc-700 dark:border-zinc-600"><label for="checked-checkbox" class="ms-1 text-sm font-medium text-zinc-900 dark:text-zinc-300">نامرتبط‌ها</label></div></div><div class="mt-4">`);
      if (unref(store).idea.is_member) {
        _push(`<div class="flex text-zinc-800 dark:text-zinc-100 justify-center items-center space-x-3">`);
        _push(ssrRenderComponent(_component_NuxtLink, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.IdeaAddSection,
          class: ""
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(_component_IconBook, { class: "size-7" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(_component_IconBook, { class: "size-7" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(ssrRenderComponent(_component_NuxtLink, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.IdeaAddPaper,
          class: ""
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(_component_IconPaper, { class: "size-7" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(_component_IconPaper, { class: "size-7" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(ssrRenderComponent(_component_NuxtLink, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.IdeaAddCode,
          class: ""
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(_component_IconCode, { class: "size-7" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(_component_IconCode, { class: "size-7" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(ssrRenderComponent(_component_NuxtLink, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.IdeaAddKeyword,
          class: ""
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(_component_IconKeyword, { class: "size-7" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(_component_IconKeyword, { class: "size-7" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(ssrRenderComponent(_component_NuxtLink, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.IdeaAddKeyword,
          class: ""
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(_component_IconWeb, { class: "size-7" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(_component_IconWeb, { class: "size-7" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(ssrRenderComponent(_component_NuxtLink, {
          to: ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.router.IdeaAddKeyword,
          class: ""
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(_component_IconChatgpt, { class: "size-9" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(_component_IconChatgpt, { class: "size-9" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(`</div>`);
      } else {
        _push(`<button type="button" class="inline-flex items-center px-4 pt-1 pb-1.5 text-xs font-medium text-zinc-900 bg-white border border-zinc-200 rounded-lg hover:bg-zinc-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-zinc-100 focus:text-blue-700 dark:bg-zinc-800 dark:text-zinc-400 dark:border-zinc-600 dark:hover:text-white dark:hover:bg-zinc-700 dark:focus:ring-zinc-700"><svg class="w-3.5 h-3.5 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M14.707 7.793a1 1 0 0 0-1.414 0L11 10.086V1.5a1 1 0 0 0-2 0v8.586L6.707 7.793a1 1 0 1 0-1.414 1.414l4 4a1 1 0 0 0 1.416 0l4-4a1 1 0 0 0-.002-1.414Z"></path><path d="M18 12h-2.55l-2.975 2.975a3.5 3.5 0 0 1-4.95 0L4.55 12H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2Zm-3 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>درخواست عضویت </button>`);
      }
      _push(`</div><ol class="relative border-s ms-4 border-zinc-200 dark:border-zinc-700 mt-4"><!--[-->`);
      ssrRenderList(unref(idea).steps, (step) => {
        _push(`<li>`);
        if (step.target.type == "keyword") {
          _push(ssrRenderComponent(_component_IdeaStepKeyword, { instance: step }, null, _parent));
        } else {
          _push(`<!---->`);
        }
        if (step.target.type == "section") {
          _push(ssrRenderComponent(_component_IdeaStepSection, { instance: step }, null, _parent));
        } else {
          _push(`<!---->`);
        }
        if (step.target.type == "code") {
          _push(ssrRenderComponent(_component_IdeaStepCode, { instance: step }, null, _parent));
        } else {
          _push(`<!---->`);
        }
        if (step.target.type == "paper") {
          _push(ssrRenderComponent(_component_IdeaStepPaper, { instance: step }, null, _parent));
        } else {
          _push(`<!---->`);
        }
        _push(`</li>`);
      });
      _push(`<!--]--></ol></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/idea/timeline.vue");
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
const _sfc_main = {};
function _sfc_ssrRender(_ctx, _push, _parent, _attrs) {
  const _component_IdeaBreadcrumb = _sfc_main$e;
  const _component_IdeaTimeline = _sfc_main$1;
  _push(`<div${ssrRenderAttrs(_attrs)}>`);
  _push(ssrRenderComponent(_component_IdeaBreadcrumb, { class: "fixed top-14" }, null, _parent));
  _push(ssrRenderComponent(_component_IdeaTimeline, 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/ideas/timeline.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
export {
  timeline as default
};
//# sourceMappingURL=timeline-SwuHcjo5.js.map
