���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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
/
.nuxt
/
dist
/
server
/
_nuxt
/
Viewing: header-BVGiR5np.js
import { b as useI18n, x as useSwitchLocalePath, c as useLocalePath, v as useRouter, w as useRoute, o as __nuxt_component_0, p as __nuxt_component_1, l as __nuxt_component_3 } from "../server.mjs"; import { _ as __nuxt_component_2 } from "./Dropdown-ASqgaTr8.js"; import { ref, reactive, mergeProps, unref, withCtx, createVNode, toDisplayString, useSSRContext } from "vue"; import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderClass } from "vue/server-renderer"; import { u as useMainStore } from "./index-hutJPNJL.js"; 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: "فارسی", 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_ULink = __nuxt_component_0; const _component_UIcon = __nuxt_component_1; const _component_UDropdown = __nuxt_component_2; const _component_UButton = __nuxt_component_3; _push(`<header${ssrRenderAttrs(mergeProps({ class: "shadow-sm sm:border-r sm:border-l bg-white" }, _attrs))}><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) != "آنالیز کابینت" && 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([_ctx.$i18n.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([_ctx.$i18n.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(_ctx.$i18n.locale == "fa" ? "زبان" : "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(_ctx.$i18n.locale == "fa" ? "زبان" : "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(_ctx.$i18n.locale == "fa" ? "زبان" : "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>`); _push(ssrRenderComponent(_component_ULink, { to: "https://cutunix.com/" + _ctx.$i18n.locale, 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)("Exit"))}</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)("Exit")), 1) ]; } }), _: 1 }, _parent)); _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-BVGiR5np.js.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa