���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
.output.1
/
server
/
chunks
/
build
/
Viewing: index-x-C888a_.mjs
import { _ as _sfc_main$1 } from './Loading-C2dGXV1S.mjs'; import { b as useI18n, j as useToast, u as useHead, n as navigateTo, k as __nuxt_component_4$1 } from './server.mjs'; import { defineComponent, ref, reactive, unref, mergeProps, withCtx, openBlock, createBlock, toDisplayString, createCommentVNode, useSSRContext } from 'vue'; import { u as useAPI } from './useAPI-CQCl9J4m.mjs'; import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer'; import { u as useMainStore } from './index-CJ-QPhVh.mjs'; import '../runtime.mjs'; import 'node:http'; import 'node:https'; import 'fs'; import 'path'; import 'node:fs'; import 'node:url'; import '@iconify/utils'; import 'consola/core'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'devalue'; import '@unhead/ssr'; import 'unhead'; import '@unhead/shared'; import 'vue-router'; import '@vueuse/core'; import 'tailwind-merge'; import '@iconify/vue'; import '@iconify/utils/lib/css/icon'; import './fetch-5zL7LryB.mjs'; import 'js-cookie'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "index", __ssrInlineRender: true, setup(__props) { const { t, locale } = useI18n(); const { logUserOut } = useMainStore(); const loading = ref(true); const toast = useToast(); logUserOut(); const state = reactive({ mobile: void 0 }); const login = async () => { var _a; if (!state.mobile) { return toast.add({ title: t("validate_mobile"), color: "orange" }); } loading.value = true; try { await useAPI("/auth/send-sms", { method: "POST", immediate: true, body: { mobile: state.mobile, lng: locale.value }, onResponse({ response }) { if (response.status == 200) { navigateTo("/" + locale.value + "/login/register-otp?mobile=" + state.mobile); } } }); } catch (error) { toast.add({ title: ((_a = error == null ? void 0 : error.data) == null ? void 0 : _a.message) || (error == null ? void 0 : error.message), color: "red" }); } }; useHead({ title: t("analysis_cabinet") }); return (_ctx, _push, _parent, _attrs) => { const _component_SharedLoading = _sfc_main$1; const _component_UButton = __nuxt_component_4$1; if (unref(loading)) { _push(`<div${ssrRenderAttrs(mergeProps({ class: "text-center" }, _attrs))}>`); _push(ssrRenderComponent(_component_SharedLoading, null, null, _parent)); _push(`</div>`); } else { _push(`<div${ssrRenderAttrs(mergeProps({ class: "w-full mx-auto mt-[6.5rem]" }, _attrs))}><div class="min-h-screen flex flex-col justify-between pt-[4rem]"><div class="w-full"><div class="mb-4 relative w-full"><div class="text-sm md:text-lg text-center flex justify-center items-center text-gray-600 mb-10 bold">`); if (unref(locale) == "fa") { _push(`<div>${ssrInterpolate(unref(t)("B"))}</div>`); } else { _push(`<!---->`); } _push(`<h1 class="text-main-700 mx-2">${ssrInterpolate(unref(t)("h1tag"))}</h1>`); if (unref(locale) == "en") { _push(`<div class="mx-2">${ssrInterpolate(unref(t)("B"))}</div>`); } else { _push(`<!---->`); } _push(`<div>${ssrInterpolate(unref(t)("welcome"))}</div></div><div class="text-xs md:text-base text-center flex justify-center items-center text-gray-600 mb-16 md:mb-24">${ssrInterpolate(unref(t)("enterNumber"))}</div></div><div class="mb-16 md:mb-20 relative xsm:w-10/12 lg:w-8/12 md:w-9/12 mx-auto w-full"><input${ssrRenderAttr("value", unref(state).mobile)} name="mobile" dir="ltr" placeholder="0913 xxx xx xx" class="w-full placeholder-gray-300 focus:ring-1 outline-none rounded border border-gray-400 focus:ring-main-700 focus:border-main-700 h-10 pl-3 md:h-14 py-0 text-xs md:text-sm" type="text"><span class="block text-gray-400 bg-white absolute right-2 -top-2 px-2 text-xs md:text-sm">${ssrInterpolate(unref(t)("phoneNumber"))}</span></div><div class="pt-10 w-full text-center"><span class="text-xs md:text-sm text-center block text-gray-600 mb-10 bold">${ssrInterpolate(unref(t)("rules_1"))} <a href="https://cutunix.ir/rules" target="_blank" class="text-xs md:text-sm cursor-pointer text-main-700">${ssrInterpolate(unref(t)("rules_2"))}</a> ${ssrInterpolate(unref(t)("rules_3"))}</span>`); _push(ssrRenderComponent(_component_UButton, { loading: unref(loading), square: "", onClick: ($event) => login(), class: "xsm:w-10/12 lg:w-8/12 md:w-9/12 mx-auto block text-center border bold h-10 bg-main-700 text-white text-xs md:text-sm w-full rounded overflow-hidden" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { if (!unref(loading)) { _push2(`<span class="block px-2 text-xs truncate"${_scopeId}>${ssrInterpolate(unref(t)("Login"))}</span>`); } else { _push2(`<!---->`); } } else { return [ !unref(loading) ? (openBlock(), createBlock("span", { key: 0, class: "block px-2 text-xs truncate" }, toDisplayString(unref(t)("Login")), 1)) : createCommentVNode("", true) ]; } }), _: 1 }, _parent)); _push(`</div></div></div></div>`); } }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/login/index.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as default }; //# sourceMappingURL=index-x-C888a_.mjs.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa