1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3614],{3614:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var a=r(95155),l=r(72768),n=r(81611),s=r(12115),i=r(64269);let o=s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("bg-card text-card-foreground relative flex w-full flex-col gap-4 rounded-lg px-6 pt-4 pb-6",r),...l})});o.displayName="Card",s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("",r),...l})}).displayName="CardHeader",s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("leading-none font-semibold tracking-tight",r),...l})}).displayName="CardTitle",s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("text-muted-foreground text-sm",r),...l})}).displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("",r),...l})});d.displayName="CardContent",s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("w-full",r),...l})}).displayName="CardFooter";var c=r(81839),u=r(44287),x=r(87038),h=r(35299),m=r(39867),f=r(55867),p=r(73366);function v(){let{handleDownload:e,isDownloading:t}=(0,u.AM)();return(0,a.jsx)(l.A,{scrollable:!0,openMarqueeTop:!0,children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,a.jsx)(c.D,{title:"Tool Proxy"}),(0,a.jsxs)(o,{className:"relative max-w-[420px] overflow-hidden border border-white/10 bg-[rgba(255,255,255,0.06)] text-white shadow-[0_16px_40px_rgba(0,0,0,0.18)] backdrop-blur",children:[(0,a.jsx)("div",{className:"absolute inset-x-0 top-0 h-1.5",style:{background:"var(--border-template-11)"}}),(0,a.jsxs)(d,{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl text-white",style:{background:"var(--button-template-11)"},children:(0,a.jsx)(x.A,{className:"h-6 w-6"})}),(0,a.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,a.jsx)("h2",{className:"font-mulish text-lg font-bold text-white",children:"Proxy Manager"}),(0,a.jsx)("p",{className:"font-mulish text-sm leading-6 text-white/70",children:"Ứng dụng g\xe1n Proxy cho c\xe1c ứng dụng, tools v\xe0 giả láºp game,..."})]})]}),(0,a.jsx)(g,{}),(0,a.jsx)(b,{}),(0,a.jsxs)(n.$,{size:"lg",onClick:e,disabled:t,className:"h-12 w-full rounded-xl",children:[t?(0,a.jsx)(h.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(m.A,{className:"h-4 w-4"}),t?"Äang tải...":"Tải vá»"]})]})]})]})})}function g(){return(0,a.jsxs)("div",{className:"grid gap-3",children:[(0,a.jsx)(w,{icon:(0,a.jsx)(x.A,{className:"h-3.5 w-3.5"}),label:"Ná»n tảng",value:"Windows x64"}),(0,a.jsx)(w,{icon:(0,a.jsx)(f.A,{className:"h-3.5 w-3.5"}),label:"Máºt khẩu giải n\xe9n",value:u.ic,mono:!0})]})}function w(e){let{icon:t,label:r,value:l,mono:n=!1}=e;return(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-white/10 bg-white/5 px-3 py-2",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium text-white/60",children:[t,r]}),(0,a.jsx)("span",{className:"text-sm font-semibold text-white ".concat(n?"font-mono":""),children:l})]})}function b(){return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border border-white/10 bg-white/5 px-2.5 py-1 text-xs font-medium text-white",children:[(0,a.jsx)(p.A,{className:"text-primary h-3.5 w-3.5"}),"ProxyManager.zip"]})}},6554:(e,t,r)=>{r.d(t,{S:()=>a});let a=(0,r(25959).v)(e=>({pathname:"",isAdminPath:!1,setPathname:t=>e({pathname:t,isAdminPath:t.startsWith("/admin")})}))},39180:(e,t,r)=>{r.d(t,{r:()=>l});var a=r(68019);let l=(0,r(25959).v)((e,t)=>({config:null,affiliateProgram:null,setConfig:t=>{var r,l;return e({config:{...t,theme:(null==t?void 0:t.theme)?{...t.theme,textmarquee:null!=(l=null!=(r=t.theme.textmarquee)?r:t.theme.textMarquee)?l:"",...t.theme.logo&&{logo:(0,a.V)(t.theme.logo,t.hostName)},...t.theme["logo-l"]&&{"logo-l":(0,a.V)(t.theme["logo-l"],t.hostName)}}:t.theme}})},setAffiliateProgram:t=>e({affiliateProgram:t}),getRotateUrl:()=>{var e,r;return null==(r=t().config)||null==(e=r.theme)?void 0:e.rotateUrl}}))},44287:(e,t,r)=>{r.d(t,{AM:()=>i,ic:()=>n});var a=r(12115),l=r(18720);let n="123123";async function s(e){try{let t=await e.json();return{message:(null==t?void 0:t.error)||(null==t?void 0:t.message)||"Kh\xf4ng thá» tải Proxy Tool.",traceId:(null==t?void 0:t.traceId)||e.headers.get("x-tool-proxy-trace-id")}}catch(t){return{message:"Kh\xf4ng thá» tải Proxy Tool.",traceId:e.headers.get("x-tool-proxy-trace-id")}}}function i(){let[e,t]=(0,a.useState)(!1);return{handleDownload:(0,a.useCallback)(async()=>{let e;t(!0);let r="";try{var a,i;
1let t=await fetch("/api/tool-proxy/download",{method:"GET",cache:"no-store"});if(e=t.status,r=null!=(a=t.headers.get("x-tool-proxy-trace-id"))?a:"",!t.ok){let e=await s(t);throw r=null!=(i=e.traceId)?i:r,Error(e.message)}let o=await t.blob(),d=function(e){var t;if(!e)return"";let r=e.match(/filename\*=UTF-8''([^;]+)/i);if(null==r?void 0:r[1])return decodeURIComponent(r[1]);let a=e.match(/filename="?([^"]+)"?/i);return null!=(t=null==a?void 0:a[1])?t:""}(t.headers.get("Content-Disposition"))||"ProxyManager.zip",c=window.URL.createObjectURL(o),u=document.createElement("a");u.href=c,u.download=d,document.body.appendChild(u),u.click(),u.remove(),window.URL.revokeObjectURL(c),l.toast.success("Tải tool Proxy Manager th\xe0nh c\xf4ng!",{description:"Máºt khẩu giải n\xe9n: ".concat(n)})}catch(a){let t=a instanceof Error?a.message:"C\xf3 lá»i xảy ra, vui l\xf2ng thá» lại.";console.error("[tool-proxy-download:client:error]",{traceId:r||void 0,status:e,message:t}),l.toast.error("Tải Proxy Tool thất bại",{description:r?"".concat(t," (trace: ").concat(r,")"):t})}finally{t(!1)}},[]),isDownloading:e}}},64269:(e,t,r)=>{r.d(t,{cn:()=>n,z:()=>s});var a=r(2821),l=r(75889);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}function s(e){var t,r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{decimals:l=0,sizeType:n="normal"}=a;if(0===e)return"0 Byte";let s=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,s)).toFixed(l)," ").concat("accurate"===n?null!=(t=["Bytes","KiB","MiB","GiB","TiB"][s])?t:"Bytest":null!=(r=["Bytes","KB","MB","GB","TB"][s])?r:"Bytes")}},68019:(e,t,r)=>{r.d(t,{V:()=>a});let a=(e,t)=>{if(!e||"string"!=typeof e)return"";let r=e.trim();if(r.startsWith("https://")||r.startsWith("http://"))return r.replace("/api/v1","");if((e=>e.startsWith("/api/v1/files")||e.startsWith("/files/")||e.includes("/files/"))(r)){let e="https://api.homeproxy.vn".replace(/\/$/,"");if(e){let t=r.startsWith("/")?r:"/".concat(r);return"".concat(e).concat(t).replace("/api/v1","")}}let a=(t||"https://app.homeproxy.vn").trim().replace(/^https?:\/\//,"").replace(/\/$/,"");return a?r.startsWith("/")?"https://".concat(a).concat(r).replace("/api/v1",""):"https://".concat(a,"/").concat(r).replace("/api/v1",""):r}},72557:(e,t,r)=>{r.d(t,{F:()=>i});var a=r(95155),l=r(12115),n=r(83360),s=r(64269);let i=l.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return(0,a.jsxs)(n.bL,{ref:t,"data-slot":"scroll-area",className:(0,s.cn)("relative overflow-hidden",r),...i,children:[(0,a.jsx)(n.LM,{"data-slot":"scroll-area-viewport",className:(0,s.cn)("h-full w-full rounded-[inherit]",(null==r?void 0:r.includes("!rounded-none"))&&"!rounded-none"),children:l}),(0,a.jsx)(o,{}),(0,a.jsx)(n.OK,{})]})});i.displayName=n.bL.displayName;let o=l.forwardRef((e,t)=>{let{className:r,orientation:l="vertical",...i}=e;return(0,a.jsx)(n.VM,{ref:t,"data-slot":"scroll-area-scrollbar",orientation:l,className:(0,s.cn)("flex touch-none transition-colors select-none","vertical"===l&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===l&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...i,children:(0,a.jsx)(n.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})});o.displayName=n.VM.displayName},72768:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(95155),l=r(39180),n=r(64269),s=r(6554),i=r(72557);function o(e){var t,r;let{children:o,scrollable:d=!0,className:c="",openMarqueeTop:u=!0}=e,x=(0,l.r)(e=>e.config),h=(0,s.S)(e=>e.isAdminPath),m=null!=(r=null==x||null==(t=x.theme)?void 0:t.textmarquee)?r:"",f=(0,a.jsx)("div",{className:"relative flex min-h-[36px] w-full items-center justify-center overflow-hidden rounded-lg px-4 py-2",style:{background:"\n var(--border-template-11)\n "},children:(0,a.jsxs)("div",{className:"[container-type:inline-size] relative w-full overflow-hidden",children:[(0,a.jsx)("span",{className:"animate-marquee absolute left-full text-[13px] font-normal whitespace-nowrap text-white",children:m}),(0,a.jsx)("span",{className:"invisible text-[13px]",children:"\xa0"})]})});return(0,a.jsx)(a.Fragment,{children:d?(0,a.jsx)(i.F,{className:(0,n.cn)("z-0 mx-auto h-[calc(100dvh-56px)] w-full max-w-full overflow-x-hidden bg-[#14142C] sm:h-[calc(100dvh-64px)] md:h-[calc(100dvh-70px)] [&_[data-slot=scroll-area-viewport]]:max-w-full [&_[data-slot=scroll-area-viewport]]:overflow-x-hidden"),children:(0,a.jsxs)("div",{className:(0,n.cn)("mx-auto flex min-h-full w-full max-w-full min-w-0 flex-col gap-4 overflow-x-hidden p-2 sm:p-4",c),children:[!h&&u&&m&&f,(0,a.jsx)("div",{className:"flex w-full max-w-full min-w-0 flex-1 pb-2 sm:pb-4 md:pb-6",children:o})]})}):(0,a.jsx)("div",{className:"z-0 mx-auto flex h-full w-full min-w-0 overflow-x-hidden bg-[#14142C]",children:(0,a.jsxs)("div",{className:(0,n.cn)("mx-auto flex min-h-full w-full max-w-full min-w-0 flex-col gap-4 overflow-x-hidden p-2 sm:p-4",c),children:[!h&&u&&m&&f,(0,a.jsx)("div",{className:"flex w-full max-w-full min-w-0 flex-1",children:o})]})})})}r(12115)},81611:(e,t,r)=>{r.d(t,{$:()=>o});var a=r(95155);r(12115);var l=r(32467),n=r(83101),s=r(64269);let i=(0,n.F)("inline-flex items-center hover:cursor-pointer justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border border-primary bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 text-primary data-[active=true]:text-primary data-[active=true]:border-primary data-[active=true]:bg-primary/10",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-primary-hover hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-lg gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-lg px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:r,size:n,asChild:o=!1,...d}=e,c=o?l.DX:"button";return(0,a.jsx)(c,{"data-slot":"button",className:(0,s.cn)(i({variant:r,size:n,className:t})),...d})}},81839:(e,t,r)=>{r.d(t,{D:()=>l});var a=r(95155);let l=e=>{let{title:t,description:r,className:l}=e;return(0,a.jsx)("div",{className:"mx-auto flex w-full items-center justify-between",children:(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"font-mulish max-h-[25px] text-base leading-5 font-bold text-[#FFFFFF] sm:text-[20px] ".concat(null!=l?l:""),children:t})})})}}}]);
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.