PageSourceSearch

https://tg-video-downloader.net/_nuxt/BXP9wbk0.js

js tg-video-downloader.net collected 2026-09-24 13:28:43 UTC 5,760 bytes, 1 lines download raw bytes

1import{_ as $}from"./L_IeAlxn.js";import{l as z,B as A,o as O,J as u,V as e,D as i,L as r,$ as M,X as d,W as o,F as T,a4 as D,a2 as E,T as G,k as B,n as b,_ as S,H as v,u as h}from"./RT5N85Gd.js";import{p as F,b as I}from"./fXNQpwTC.js";import{_ as P}from"./DlAUqK2U.js";const J=F("/logo.webp"),K={ref:"headerRoot",class:"fixed top-0 z-[99] w-full"},W={class:"mx-auto w-full border-b border-slate-200/70 bg-white/90 px-4 shadow-[0_12px_40px_-28px_rgba(15,23,42,0.35)] backdrop-blur-md sm:px-6"},X={class:"flex h-16 items-center justify-between md:h-20"},q={class:"hidden md:flex md:grow","aria-label":"Primary navigation"},Q={class:"flex grow items-center justify-end gap-1 text-sm font-medium text-slate-700"},Y={class:"relative"},Z=["aria-expanded"],ee={key:0,id:"desktop-language-menu",class:"nav-panel w-48"},ae=["onClick"],te={class:"flex items-center gap-3 md:hidden"},oe=["aria-expanded"],le={key:0,id:"mobile-nav",class:"max-h-[calc(100vh-4rem)] overflow-y-auto overscroll-contain border-t border-slate-200 bg-white px-4 py-4 shadow-xl md:hidden","aria-label":"Mobile navigation"},ne={class:"space-y-6"},se={class:"space-y-2"},de={class:"mobile-heading"},ie={class:"grid grid-cols-2 gap-2"},re=["onClick"],ce=z({__name:"Header",setup(ve){const m=B(!1),g=B(null),_=S("headerRoot"),{locale:H,setLocale:N,t:p,tm:x}=I(),k=b(()=>x("header")),a=b(()=>x("switchlanguage")),f=b(()=>[{code:"en",label:a.value.en},{code:"id",label:a.value.id},{code:"cn",label:a.value.cn},{code:"zh",label:a.value.zh},{code:"tr",label:a.value.tr},{code:"in",label:a.value.in},{code:"ru",label:a.value.ru},{code:"th",label:a.value.th},{code:"ko",label:a.value.ko},{code:"ar",label:a.value.ar},{code:"de",label:a.value.de},{code:"es",label:a.value.es},{code:"pt",label:a.value.pt},{code:"vi",label:a.value.vi}]),w=b(()=>f.value.find(t=>t.code===H.value)?.label??a.value.en),V=b(()=>k.value.Menu??"Menu"),j=b(()=>k.value.Language??w.value);function l(){m.value=!1,g.value=null}function R(t){g.value=g.value===t?null:t}async function y(t){l(),await N(t)}function C(t){_.value&&t.target instanceof Node&&!_.value.contains(t.target)&&l()}function L(t){t.key==="Escape"&&l()}return A(()=>{document.addEventListener("click",C),document.addEventListener("keydown",L)}),O(()=>{document.removeEventListener("click",C),document.removeEventListener("keydown",L)}),(t,n)=>{const c=$;return v(),u("header",K,[e("div",W,[e("div",X,[i(c,{to:"/",class:"mr-4 flex items-center gap-3","aria-label":"TG Video Downloader home",onClick:l},{default:r(()=>[...n[2]||(n[2]=[e("img",{class:"h-10 w-10 rounded-full shadow-sm ring-2 ring-[#24A1DE]/20",src:J,width:"40",height:"40",alt:"TG Video Downloader logo",decoding:"async"},null,-1),e("p",{class:"font-extrabold tracking-tight text-slate-900"},[e("span",{class:"text-[#24A1DE]"},"TG"),d(" Downloader ")],-1)])]),_:1}),e("nav",q,[e("ul",Q,[e("li",null,[i(c,{to:"/",class:"rounded-full px-4 py-2 transition hover:bg-slate-100 hover:text-slate-900",onClick:l},{default:r(()=>[d(o(h(p)("header.Home")),1)]),_:1})]),e("li",null,[i(c,{to:"/tg-video-downloader/how-To-Use",class:"rounded-full px-4 py-2 transition hover:bg-slate-100 hover:text-slate-900",onClick:l},{default:r(()=>[d(o(h(p)("header.howToUse")),1)]),_:1})]),e("li",null,[i(c,{to:"/blog",class:"rounded-full px-4 py-2 transition hover:bg-slate-100 hover:text-slate-900",onClick:l},{default:r(()=>[d(o(h(p)("header.blog")),1)]),_:1})]),e("li",Y,[e("button",{type:"button",class:"nav-button","aria-expanded":g.value==="language","aria-controls":"desktop-language-menu",onClick:n[0]||(n[0]=M(s=>R("language"),["stop"]))},[d(o(w.value)+" ",1),n[3]||(n[3]=e("svg",{class:"nav-chevron",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},[e("path",{d:"M5 7.5 10 12.5 15 7.5",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,Z),g.value==="language"?(v(),u("div",ee,[(v(!0),u(T,null,D(f.value,s=>(v(),u("button",{key:s.code,type:"button",class:"nav-panel-link w-full text-left",onClick:U=>y(s.code)},o(s.label),9,ae))),128))])):E("",!0)])])]),e("div",te,[e("button",{type:"button",class:"inline-flex items-center gap-2 rounded-full border border-slate-200 px-3 py-2 text-sm font-medium text-slate-700","aria-expanded":m.value,"aria-controls":"mobile-nav",onClick:n[1]||(n[1]=M(s=>m.value=!m.value,["stop"]))},[d(o(V.value)+" ",1),n[4]||(n[4]=e("svg",{class:"h-4 w-4",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},[e("path",{d:"M5 7.5 10 12.5 15 7.5",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,oe)])])]),i(G,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 -translate-y-2","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-2"},{default:r(()=>[m.value?(v(),u("nav",le,[e("div",ne,[e("div",se,[i(c,{to:"/",class:"mobile-link",onClick:l},{default:r(()=>[d(o(h(p)("header.Home")),1)]),_:1}),i(c,{to:"/tg-video-downloader/how-To-Use",class:"mobile-link",onClick:l},{default:r(()=>[d(o(h(p)("header.howToUse")),1)]),_:1}),i(c,{to:"/blog",class:"mobile-link",onClick:l},{default:r(()=>[d(o(h(p)("header.blog")),1)]),_:1})]),e("div",null,[e("p",de,o(j.value),1),e("div",ie,[(v(!0),u(T,null,D(f.value,s=>(v(),u("button",{key:s.code,type:"button",class:"rounded-2xl border border-slate-200 px-3 py-2 text-left text-sm font-medium text-slate-700",onClick:U=>y(s.code)},o(s.label),9,re))),128))])])])])):E("",!0)]),_:1})],512)}}}),ue=P(ce,[["__scopeId","data-v-5100c788"]]),ge=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"}));
1export{ue as H,J as _,ge as a};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.