import { _ as _sfc_main$2 } from './second-title-B9UcHZfY.mjs';
import { e as useMaghaleStore, a as useNuxtApp, b as useRuntimeConfig } from './server.mjs';
import { mergeProps, ref, unref, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr } from 'vue/server-renderer';
import axios from 'axios';
import { _ as _export_sfc } from './_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$1 = {
  __name: "information",
  __ssrInlineRender: true,
  setup(__props) {
    const store = useMaghaleStore();
    const { $CustomAlert } = useNuxtApp();
    axios.defaults.headers.common["Authorization"] = store.token;
    ref(false);
    ref(null);
    const user = ref({});
    return (_ctx, _push, _parent, _attrs) => {
      const _component_MaghaleSecondTitle = _sfc_main$2;
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "p-4 text-xs" }, _attrs))}>`);
      _push(ssrRenderComponent(_component_MaghaleSecondTitle, { title: "\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062A" }, null, _parent));
      _push(`<div class="max-w-sm mx-auto" dir="rtl"><div class="mt-4"><label for="first_name" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">\u0646\u0627\u0645</label><input type="text" id="first_name"${ssrRenderAttr("value", unref(user).first_name)} class="bg-zinc-50 border border-zinc-300 text-zinc-950 rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full 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" required></div><div class="mt-4"><label for="last_name" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">\u0646\u0627\u0645 \u062E\u0627\u0646\u0648\u0627\u062F\u06AF\u06CC</label><input type="text" id="last_name"${ssrRenderAttr("value", unref(user).last_name)} class="bg-zinc-50 border border-zinc-300 text-zinc-950 rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full 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"></div><div class="mt-4"><label for="abstract" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">\u0634\u0631\u062D \u0645\u062E\u062A\u0635\u0631</label><input type="text" id="abstract"${ssrRenderAttr("value", unref(user).abstract)} class="bg-zinc-50 border border-zinc-300 text-zinc-950 rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full 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"></div><div class="grid grid-cols-2 gap-2 mt-4"><div><label for="public_image" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">\u0639\u06A9\u0633 \u0639\u0645\u0648\u0645\u06CC</label><img id="public_image"${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(user).public_profile)} class="rounded-full size-20" alt=""></div><div><label for="private_image" class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">\u0639\u06A9\u0633 \u062E\u0635\u0648\u0635\u06CC</label><img id="private_image"${ssrRenderAttr("src", ("useRuntimeConfig" in _ctx ? _ctx.useRuntimeConfig : unref(useRuntimeConfig))().public.MediaUrl + unref(user).public_profile)} class="rounded-full size-20" alt=""></div></div><div class="mt-4"><label class="block mb-2 text-xs font-medium text-zinc-950 dark:text-white">\u0627\u0646\u062A\u062E\u0627\u0628 \u0639\u06A9\u0633</label><input type="file" accept="image/*" class="block mb-2 p-1 w-full text-zinc-950 bg-zinc-50 rounded-lg border border-zinc-300 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"></div></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/user/information.vue");
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
const _sfc_main = {};
function _sfc_ssrRender(_ctx, _push, _parent, _attrs) {
  const _component_UserInformation = _sfc_main$1;
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "" }, _attrs))}>`);
  _push(ssrRenderComponent(_component_UserInformation, 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/users/information.client.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const information_client = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);

export { information_client as default };
//# sourceMappingURL=information.client-hDiAIFy1.mjs.map
