PageSourceSearch

https://j2proxy.vn/_next/static/chunks/6848.2ab6ed38f8a9d1b1.js

js j2proxy.vn collected 2026-09-24 15:16:28 UTC 28,084 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6848],{17262:(e,t,a)=>{"use strict";a.d(t,{EU:()=>i,Eh:()=>m,N4:()=>c,fI:()=>d});var l=a(95155),r=a(12115),s=a(67907),n=a(41968);let o=(0,r.createContext)(null),i=e=>{let{children:t}=e,a=(0,n.O)();return(0,l.jsx)(o.Provider,{value:a,children:t})},d=()=>{let e=(0,r.useContext)(o);if(!e)throw Error("useShiftSelectContext must be used within ShiftSelectProvider");return e},c=e=>{let{row:t,table:a}=e,{handleClick:r}=d();return(0,l.jsx)("div",{className:"checkbox-container","data-checkbox":!0,onClick:r(t,a),children:(0,l.jsx)(s._,{disabled:!t.getCanSelect(),checked:t.getIsSelected()})})},m=e=>{let{table:t}=e,{resetAnchor:a}=d();return(0,l.jsx)(s._,{checked:t.getIsAllRowsSelected(),onCheckedChange:e=>{t.getToggleAllRowsSelectedHandler()({target:{checked:e}}),a()}})}},18642:e=>{e.exports={style:{fontFamily:"'fontMontserrat', 'fontMontserrat Fallback'"},className:"__className_dee548",variable:"__variable_dee548"}},22493:(e,t,a)=>{"use strict";a.d(t,{MQ:()=>c.a,pH:()=>b.a,qP:()=>k.a,uV:()=>n.a,z8:()=>w.a});var l=a(50408),r=a.n(l),s=a(39082),n=a.n(s),o=a(36397),i=a.n(o),d=a(32171),c=a.n(d),m=a(18642),x=a.n(m),u=a(93741),p=a.n(u),h=a(71526),f=a.n(h),g=a(57589),v=a.n(g),y=a(80070),b=a.n(y),j=a(62732),w=a.n(j),N=a(76568),k=a.n(N);(0,a(64269).cn)(r().variable,n().variable,i().variable,c().variable,x().variable,p().variable,f().variable,v().variable,b().variable,w().variable)},25938:(e,t,a)=>{"use strict";a.d(t,{E:()=>h});var l=a(95155),r=a(39180),s=a(58795),n=a(13744),o=a(52095),i=a(58067),d=a(69605),c=a(60919),m=a(52056),x=a(96199),u=a(12115),p=a(18720);function h(e){var t,a;let[h,f]=(0,u.useState)(!1),[g,v]=(0,u.useState)(!1),{data:y}=(0,x.wV)(),{config:b}=(0,r.r)(),j=null==b?void 0:b.hostName,w=null!=(a=null==(t=e.proxy)?void 0:t.isCdk)&&a,N=null==y?void 0:y.accessToken,k=async()=>{f(!0);try{var t;let a=await (0,s.f)(e.id,N),r=j?"https://".concat(j,"/api"):"https://api-proxy.homeproxy.vn",n=w?(0,o.z)({baseUrl:r,token:a||"",checkOnly:!0}):"".concat(r,"/v1/users/").concat(encodeURIComponent((null==(t=e.proxy)?void 0:t.username)||""),"/rotate?token=").concat(encodeURIComponent(a||""),"&checkOnly=true"),i=await fetch(n),d=await i.json();d.proxy?(await navigator.clipboard.writeText(d.proxy),p.toast.success("Đ\xe3 copy proxy hiện tại!",{description:(0,l.jsx)("div",{className:"toast-clamp",children:d.proxy}),duration:5e3})):p.toast.error("Kh\xf4ng lấy được proxy",{description:d.message||"Lỗi kh\xf4ng x\xe1c định",duration:5e3,icon:(0,l.jsx)(m.A,{className:"h-4 w-4 text-red-500"})})}catch(e){p.toast.error("Xem proxy thất bại",{description:"Lỗi kết nối đến m\xe1y chá»§.",duration:5e3,icon:(0,l.jsx)(m.A,{className:"h-4 w-4 text-red-500"})})}finally{f(!1)}},_=async()=>{v(!0);try{var t;let a;w||(a=await (0,s.f)(e.id,N));let r=w?"https://api.homeproxy.vn":j?"https://".concat(j,"/api"):"https://api-proxy.homeproxy.vn",n=w?"".concat(r,"/api/v1/proxies/").concat(encodeURIComponent(String(e.id)),"/rotate"):"".concat(r,"/v1/users/").concat(encodeURIComponent((null==(t=e.proxy)?void 0:t.username)||""),"/rotate?token=").concat(encodeURIComponent(a||"")),o=w?await fetch(n,{headers:{Authorization:"Bearer ".concat(N)}}):await fetch(n),i=await o.json();"success"===i.status&&i.proxy?(await navigator.clipboard.writeText(i.proxy),p.toast.success("Xoay proxy v\xe0 copy th\xe0nh c\xf4ng",{description:(0,l.jsx)("div",{className:"toast-clamp",children:i.proxy}),duration:5e3})):p.toast.error("Xoay proxy thất bại",{description:i.message||"Lỗi kh\xf4ng x\xe1c định",duration:5e3,icon:(0,l.jsx)(m.A,{className:"h-4 w-4 text-red-500"})})}catch(e){p.toast.error("Xoay proxy thất bại",{description:"Lỗi kết nối đến m\xe1y chá»§.",duration:5e3,icon:(0,l.jsx)(m.A,{className:"h-4 w-4 text-red-500"})})}finally{v(!1)}};return{isCdk:w,loadingViewProxy:h,loadingRotateProxy:g,handleRotate:async()=>{try{let t=await n.A.fetchApi("/api/v1/proxies/".concat(e.id,"/rotate"),N);(0,d.oA)(t)}catch(e){if(e instanceof c.pe){var t,a,r,s;let n=null!=(s=null==(r=e.response)||null==(a=r.data)||null==(t=a.errors)?void 0:t.msg)?s:"Lỗi kết nối đến m\xe1y chá»
1§.";p.toast.error("Xoay proxy thất bại",{description:n,duration:5e3,icon:(0,l.jsx)(m.A,{className:"h-4 w-4 text-red-500"})});return}p.toast.error("Xoay proxy thất bại",{description:"Lỗi kết nối đến m\xe1y chá»§.",duration:5e3,icon:(0,l.jsx)(m.A,{className:"h-4 w-4 text-red-500"})})}},handleGetLinkRotate:async()=>{let t=(async()=>{let t=await (0,s.f)(e.id,N);return t?(0,o.z)({baseUrl:j?"https://".concat(j,"/api"):"https://api-proxy.homeproxy.vn",token:t}):""})(),a="",r=!1;try{r=await (0,i.b)(t),a=await t}catch(e){r=!1}r&&a?p.toast.success("Copied to clipboard!",{description:(0,l.jsx)("div",{className:"toast-clamp",children:a}),duration:5e3}):p.toast.error("Failed to copy. Please try again.")},handleViewCurrentProxy:k,handleRotateProxy:_}}},32171:e=>{e.exports={style:{fontFamily:"'fontMullish', 'fontMullish Fallback'"},className:"__className_18332f",variable:"__variable_18332f"}},36397:e=>{e.exports={style:{fontFamily:"'fontInterTight', 'fontInterTight Fallback'"},className:"__className_77382a",variable:"__variable_77382a"}},39082:e=>{e.exports={style:{fontFamily:"'fontInter', 'fontInter Fallback'"},className:"__className_a9b78f",variable:"__variable_a9b78f"}},40789:(e,t,a)=>{"use strict";a.d(t,{P:()=>d});var l=a(13744);function r(e){var t,a,l,r,s,n;return null!=(n=null!=(s=null!=(r=null==e||null==(t=e.ipaddress)?void 0:t.provider)?r:null==e||null==(l=e.proxy)||null==(a=l.ipaddress)?void 0:a.provider)?s:null==e?void 0:e.provider)?n:""}var s=a(96199),n=a(20063),o=a(12115),i=a(85400);function d(e,t){var a,d;let{data:c,status:m}=(0,s.wV)(),x=(0,n.usePathname)(),{data:u,mutate:p,isLoading:h,isValidating:f}=(0,i.Ay)("authenticated"===m?["/api/v1/users/proxies",e,x]:null,e=>{let[t,a]=e;return l.A.fetchApi(t+a,null==c?void 0:c.accessToken).then(e=>null!=e?e:{}).catch(()=>({}))},{suspense:null!=(a=null==t?void 0:t.suspense)&&a,revalidateOnFocus:!1,keepPreviousData:!0});return{userProxies:(0,o.useMemo)(()=>{var e,t;return t=null!=(e=null==u?void 0:u.data)?e:[],"/proxies-datacenter"===x||"/proxies-datacenter-vn"===x?t.filter(e=>{var t;let a=null==(t=r(e))?void 0:t.trim().toUpperCase();return"US"===a||"USA"===a||"CMC"===a||"USOLD"===a}):t.filter(e=>{var t;let a=null==(t=r(e))?void 0:t.trim().toUpperCase();return!function(e){let t=null==e?void 0:e.trim().toUpperCase();return"US"===t||"USA"===t||"USOLD"===t}(a)&&"CMC"!==a})},[null==u?void 0:u.data,x]),total:null!=(d=null==u?void 0:u.total)?d:0,isLoading:null!=h&&h,isValidating:null!=f&&f,mutate:p,status:m}}},41968:(e,t,a)=>{"use strict";a.d(t,{O:()=>r});var l=a(12115);function r(){let e=(0,l.useRef)(null);return{anchorIdRef:e,handleClick:(t,a)=>l=>{if(l.stopPropagation(),l.shiftKey&&null!==e.current){let{rows:l,rowsById:r}=a.getRowModel(),s=r[e.current];if(s){let e=s.index,a=Math.min(e,t.index),r=Math.max(e,t.index);for(let e=0;e<l.length;e++){let t=e>=a&&e<=r;l[e].toggleSelected(t)}}else e.current=t.id,t.toggleSelected(!t.getIsSelected())}else t.toggleSelected(!t.getIsSelected()),e.current=t.id},resetAnchor:()=>{e.current=null}}}},42348:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(71847).A)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},45368:(e,t,a)=>{"use strict";a.d(t,{a:()=>r});var l=a(12115);function r(e){let[t,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=window.matchMedia("(min-width: ".concat(e,"px)")),l=()=>a(t.matches);return l(),t.addEventListener("change",l),()=>t.removeEventListener("change",l)},[]),t}},46767:(e,t,a)=>{"use strict";a.d(t,{Bc:()=>n,ZI:()=>d,k$:()=>i,m_:()=>o});var l=a(95155);a(12115);var r=a(47520),s=a(64269);function n(e){let{delayDuration:t=0,...a}=e;return(0,l.jsx)(r.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...a})}function o(e){let{...t}=e;return(0,l.jsx)(n,{children:(0,l.jsx)(r.bL,{"data-slot":"tooltip",...t})})}function i(e){let{...t}=e;return(0,l.jsx)(r.l9,{"data-slot":"tooltip-trigger",...t})}function d(e){let{className:t,sideOffset:a=0,hideArrow:n=!1,children:o,...i}=e;return(0,l.jsx)(r.ZL,{children:(0,l.jsxs)(r.UC,{"data-slot":"tooltip-content",sideOffset:a,className:(0,s.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...i,children:[o,n?null:(0,l.jsx)(r.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}},50408:e=>{e.exports={style:{fontFamily:"'fontSans', 'fontSans Fallback'"},className:"__className_133f94",variable:"__variable_133f94"}},56610:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>U});var l=a(95155),r=a(75221),s=a(17527),n=a(72798),o=a(26767),i=a(40789),d=a(29337),c=a(97453),m=a(12115),x=a(16688),u=a(17262),p=a(94166);function h(e){let{table:t,isCdk:a=!1}=e;return(0,l.jsx)(u.EU,{children:(0,l.jsx)(x.b,{table:t,heading:a?"Danh s\xe1ch đơn h\xe0ng key xoay":"Danh s\xe1ch đơn h\xe0ng proxy xoay",hideViewToggle:!0,cardClassName:"w-full max-w-[var(--template-3-content-max-width,1230px)]",tableContainerClassName:"h-[min(420px,calc(100dvh-20rem))] min-h-[280px] sm:min-h-[360px] sm:h-[500px] lg:h-[600px] 2xl:h-[492px]",bodyCellClassName:"py-2 sm:py-2",children:(0,l.jsx)(p.w,{table:t,toolbarCustomProxy:"rotateproxies",isCdk:a,className:"!rounded-none !bg-transparent !shadow-none sm:!rounded-none"})})})}var f=a(46767),g=a(22493),v=a(87527),y=a(70682),b=a(42348),j=a(18720),w=a(72264),N=a(96199),k=a(85400),_=a(3998),C=a(33407),S=a(92079),F=a(25938);let A=e=>{let{data:t}=e,{isCdk:a,loadingViewProxy:r,loadingRotateProxy:s,handleRotate:n,handleGetLinkRotate:o,handleViewCurrentProxy:i,handleRotateProxy:d}=(0,F.E)(t),[c,x]=(0,m.useState)(!1);return(0,l.jsxs)("div",{className:"flex gap-2",children:[!a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(_.$,{onClick:()=>x(!0),variant:"ghost",className:"h-8 w-8 rounded-full hover:bg-white",children:(0,l.jsx)(w.F.SettingIcon,{className:"h-4 w-4"})})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",children:"Cập nhật th\xf4ng tin"})]}),(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(_.$,{onClick:n,variant:"ghost",className:"h-8 w-8 rounded-full hover:bg-white",children:(0,l.jsx)(w.F.RotateActionIcon,{className:"h-4 w-4"})})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",children:"Xoay proxy"})]})]}),(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(_.$,{onClick:o,variant:"ghost",className:"h-8 w-8 rounded-full hover:bg-white",children:a?(0,l.jsx)(w.F.LinkKeyRotateIcon,{className:"h-4 w-4"}):(0,l.jsx)(w.F.CopyOrderIcon,{className:"h-4 w-4"})})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",children:a?"Lấy link xoay Key":"Lấy link xoay"})]}),a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(_.$,{onClick:d,variant:"ghost",className:"h-8 w-8 rounded-full hover:bg-white",disabled:s,children:(0,l.jsx)(w.F.RotateActionIcon,{className:"h-4 w-4"})})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",children:"Xoay proxy"})]}),(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)(_.$,{onClick:i,variant:"ghost",className:"h-8 w-8 rounded-full hover:bg-white",disabled:r,children:(0,l.jsx)(w.F.ViewProxyIcon,{className:"h-4 w-4"})})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",children:"Xem proxy hiện tại"})]})]}),(0,l.jsx)(C.a,{title:"Đổi mật khẩu",description:"",isOpen:c,onClose:()=>x(!1),className:"gap-5 lg:w-[412px]",children:(0,l.jsx)(S.A,{selectedProxy:t,onClose:()=>x(!1)})})]})};var I=a(58795);let M=e=>{var t;let{proxyId:a}=e,{data:r}=(0,N.wV)(),s=null!=(t=null==r?void 0:r.accessToken)?t:"",{data:n,isLoading:o,error:i}=(0,k.Ay)(s&&a?["generate-cdkey",a]:null,async()=>{let e=await (0,I.f)(a,s);return e?{token:e}:null},{revalidateOnFocus:!1,revalidateOnReconnect:!1});return o?(0,l.jsxs)("div",{className:"flex w-full items-center justify-start gap-2",children:[(0,l.jsx)(b.A,{className:"text-primary h-3.5 w-3.5 animate-spin"}),(0,l.jsx)("p",{className:"text-muted-foreground text-xs",children:"Đang tải key..."})]}):i?(0,l.jsx)("div",{className:"w-full text-left text-xs text-red-500",children:"Lỗi khi lấy key"}):(null==n?void 0:n.token)?(0,l.jsx)("div",{className:"flex w-full justify-start",children:(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsxs)("div",{className:"group flex w-fit cursor-pointer items-center gap-2 rounded-md border border-green-200 bg-green-50 px-3 py-1.5 text-xs font-medium text-green-700 transition-all hover:border-green-300 hover:bg-green-100 hover:shadow-sm",onClick:()=>{(null==n?void 0:n.token)&&(navigator.clipboard.writeText(n.token),j.toast.success("Đ\xe3 copy CDKey!",{description:n.token,duration:5e3}))},children:[(0,l.jsx)("span",{className:"max-w-[150px] truncate",children:n.token}),(0,l.jsx)(w.F.Copy2Icon,{className:"h-3.5 w-3.5 flex-shrink-0 transition-transform group-hover:scale-110"})]})}),(0,l.jsx)(f.ZI,{side:"top",className:"max-w-xs bg-[#DF3B30]",children:(0,l.jsx)("p",{className:"text-xs break-all !text-white",children:n.token})})]})}):null},P=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[{id:"select",header:e=>{let{table:t}=e;return(0,l.jsx)(u.Eh,{table:t})},cell:e=>{let{row:t,table:a}=e;return(0,l.jsx)(u.N4,{row:t,table:a})},size:40,maxSize:40,minSize:40},{id:"Code",accessorKey:"code",cell:e=>{let{row:t}=e;return(0,l.jsx)("span",{className:"text-text-normal-template-3 flex w-full items-center justify-start text-sm font-normal",children:t.getValue("Code")})},header:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:"ID"}),size:90,meta:{label:"ID",placeholder:"Nhập ID",variant:"text"},enableColumnFilter:!0},{cell:e=>{var t,a,r;let{row:s}=e;return(0,l.jsx)("span",{className:"text-text-normal-template-3 flex w-full items-center justify-start text-sm font-normal",children:null!=(r=null==(a=s.original)||null==(t=a.order)?void 0:t.code)?r:""})},id:"filter-ord.code",accessorKey:"order.code",header:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:"M\xe3 đơn h\xe0ng"}),size:e?163:160,meta:{label:"M\xe3 đơn h\xe0ng",placeholder:"Nhập m\xe3 đơn h\xe0ng",variant:"text"},enableColumnFilter:!0},{header:e=>{var t,a,r;let{table:s}=e,n=null==(t=s.getRowModel().rows[0])?void 0:t.original,o=null!=(r=null==n||null==(a=n.proxy)?void 0:a.isCdk)&&r;return(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:o?"Key":"Proxy IP"})},accessorKey:"proxy",id:"connection",cell:e=>{var t,a,r,s,n,o,i;let d,{cell:c,row:m}=e,x=null!=(s=null==(t=m.original.proxy)?void 0:t.isCdk)&&s,u=c.getValue();if(!u)return(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsx)("p",{className:"text-primary",children:"Vui l\xf2ng nhấn Tạo lại Proxy để tạo lại!"})});if(x)return(0,l.jsx)(M,{proxyId:null!=(o=null==(n=m.original.id)?void 0:n.toString())?o:""});let p=m.original.status,h="".concat(null!=(i=null==u?void 0:u.ipIn)?i:null==u||null==(a=u.ipaddress)?void 0:a.ip,":").concat(null==u?void 0:u.port,":").concat(null==u?void 0:u.username,":").concat(null==u?void 0:u.password);switch(null==p||null==(r=p.id)?void 0:r.toString()){case"6":d=(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("p",{className:"my-auto w-[207px] overflow-hidden font-medium text-ellipsis whitespace-nowrap ".concat(g.MQ.className),children:(()=>{let[e,t,a]=(null!=h?h:"").split(":");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"text-primary bg-[color-mix(in_oklab,var(--primary),white_85%)] px-[0px] text-sm",children:[e,":",t]}),(0,l.jsx)("span",{className:"text-text-normal-template-3 px-[2px] text-sm font-normal",children:a})]})})()}),(0,l.jsx)(w.F.Copy2Icon,{onClick:()=>{var e;return e=null!=h?h:"",void navigator.clipboard.writeText(e).then(()=>{j.toast.success("Copied to clipboard!",{description:e,duration:5e3})}).catch(()=>{j.toast.error("Failed to copy")})},className:"hover:text-primary !h-6 !w-6 text-[#535355] hover:cursor-pointer"})]})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",className:"bg-[#DF3B30] text-white",children:h})]});break;case"10":case"11":d=(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsx)("p",{className:"text-primary",children:"Vui l\xf2ng nhấn Tạo lại Proxy để tạo lại!"})});break;default:d=(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(b.A,{className:"text-primary animate-spin"}),(0,l.jsx)("p",{className:"my-auto",children:"Vui l\xf2ng chờ"})]})}return d},size:e?217:160,meta:{label:"Proxy IP",variant:"text"}},{accessorKey:"protocol",header:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:"Loại"}),id:"Loại h\xecnh",meta:{label:"Loại",variant:"text"},size:e?163:160,cell:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 flex w-full items-center justify-start text-sm font-normal",children:"HTTP/SOCKS5"})},{accessorKey:"description",header:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:"Note"}),meta:{label:"Note",variant:"text"},size:e?90:160,cell:e=>{var t,a,r;let{cell:s,row:n}=e,o=s.getValue();if(null==(a=n.original)||null==(t=a.proxy)?void 0:t.blockAt){let e=30-(null!=(r=(0,v.o)(new Date,new Date(n.original.proxy.blockAt)))?r:0);return"Proxy mở kho\xe1 sau ".concat(e," ph\xfat")}return o?(0,l.jsxs)(f.m_,{children:[(0,l.jsx)(f.k$,{asChild:!0,children:(0,l.jsx)("span",{className:"flex w-full items-center justify-start",children:(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full min-w-0 overflow-hidden text-left text-sm leading-[20px] font-normal tracking-[0] text-ellipsis whitespace-nowrap",children:o})})}),(0,l.jsx)(f.ZI,{side:"top",align:"center",className:"bg-[#DF3B30] text-white",children:o})]}):(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-normal tracking-[0]",children:"-"})}},{accessorKey:"expiredAt",id:"expiredAt",header:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:"Hết hạn"}),size:e?163:160,meta:{label:"Hết hạn",variant:"text"},cell:e=>{let{cell:t}=e;return(0,l.jsxs)("p",{className:"text-text-normal-template-3 flex flex-row items-center justify-start gap-1 text-sm leading-[20px] font-normal tracking-[0] whitespace-nowrap",children:[(0,l.jsx)("span",{children:(0,y.GP)(new Date(t.getValue()),"dd-MM-yyyy")}),(0,l.jsx)("span",{children:(0,y.GP)(new Date(t.getValue()),"HH:mm")}
1)]})}},{id:"actions",header:()=>(0,l.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[20px] font-medium tracking-[0]",children:"H\xe0nh động"}),size:e?163:160,cell:e=>{let{row:t}=e;return(0,l.jsx)(A,{data:t.original})}}]};var L=a(45368),O=a(87568),R=a(20063);function V(e){let{params:t,userProxies:a,total:n,isCdk:o}=e,{setTable:i,rowSelection:x,setRowSelection:u}=(0,d.$)(),p=(0,L.a)(1024),[f]=(0,c.ZA)("limit",c.GJ.withDefault(50)),g=Math.ceil(a.length/f),v=(0,m.useMemo)(()=>P(o),[o]),{table:y}=(0,s.u)({data:a,columns:v,pageCount:g,initialState:{rowSelection:x},onRowSelectionChange:u,shallow:!1,debounceMs:500});return m.useEffect(()=>{y&&i(y)},[y,i]),(0,l.jsx)(m.Suspense,{fallback:(0,l.jsx)(r.O,{columnCount:5,rowCount:8,filterCount:2}),children:y?(0,l.jsx)(h,{table:y,totalItems:n,isLg:p,isCdk:o}):(0,l.jsx)(O.A,{})},t)}function U(e){let{params:t}=e,a=(0,R.usePathname)(),r=(0,m.useMemo)(()=>"/keys-xoay"===a,[a]),s=(0,m.useMemo)(()=>"/keys-xoay"===a?["proxy.isCdk:$eq:boolean:true"]:"/proxies-xoay"===a?["proxy.isCdk:$eq:boolean:false"]:[],[a]),c=(0,n.$)({defaultPage:"1",defaultLimit:"50",persistentFilters:[...s,"categorytype.id:$eq:number:2"],defaultSort:'[{"orderBy":"createdAt","order":"desc"}]'}),{userProxies:x,total:u}=(0,i.P)(c,{suspense:!0});return(0,l.jsx)(o.A,{scrollable:!0,openMarqueeTop:!0,openMarqueeBottom:!1,children:(0,l.jsx)(d.u,{children:(0,l.jsx)(V,{params:t,userProxies:x,total:u,isCdk:r})})})}},57589:e=>{e.exports={style:{fontFamily:"'fontNotoSans', 'fontNotoSans Fallback'"},className:"__className_52439b",variable:"__variable_52439b"}},62732:e=>{e.exports={style:{fontFamily:"'fontSegoeUI', 'fontSegoeUI Fallback'"},className:"__className_fffe53",variable:"__variable_fffe53"}},71526:e=>{e.exports={style:{fontFamily:"'fontNunito', 'fontNunito Fallback'"},className:"__className_6d0315",variable:"__variable_6d0315"}},72798:(e,t,a)=>{"use strict";a.d(t,{$:()=>s});var l=a(97453),r=a(12115);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPage:t="1",defaultLimit:a="50",persistentFilters:s=[],defaultSort:n,additionalParams:o={}}=e,[i]=(0,l.ZA)("page",{defaultValue:t}),[d]=(0,l.ZA)("limit",{defaultValue:a}),[c]=(0,l.ZA)("filter",{defaultValue:""}),[m]=(0,l.ZA)("filters",{defaultValue:""}),[x]=(0,l.ZA)("sort",{defaultValue:""}),[u]=(0,l.ZA)("s",{defaultValue:""});return(0,r.useMemo)(()=>{let e=new URLSearchParams;e.set("page",i),e.set("limit",d);let t=[];if(c&&t.push(c),s.length>0&&t.push(...s),t.length>0&&e.set("filter",t.join(";")),m){let t="object"==typeof m?JSON.stringify(m):m;e.set("filters",t)}if(x){let t;t="string"==typeof x?x:"object"==typeof x?JSON.stringify((Array.isArray(x)?x:[x]).map(e=>({orderBy:e.id||e.orderBy,order:"boolean"==typeof e.desc?e.desc?"desc":"asc":e.order||"asc"}))):String(x),e.set("sort",t)}else n&&e.set("sort",n);return u&&e.set("s",u),Object.entries(o).forEach(t=>{let[a,l]=t;if(l)if(e.has(a))try{let t=JSON.parse(e.get(a)),r=JSON.parse(l),s={...t,...r};e.set(a,JSON.stringify(s))}catch(e){}else e.append(a,l)}),"?"+e.toString()},[i,d,c,m,x,s,n,o])}},76568:e=>{e.exports={style:{fontFamily:"'fontTimeNewRoman', 'fontTimeNewRoman Fallback'"},className:"__className_613794",variable:"__variable_613794"}},80070:e=>{e.exports={style:{fontFamily:"'fontK2D', 'fontK2D Fallback'"},className:"__className_3097e6",variable:"__variable_3097e6"}},83011:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return r}});let l=a(12115);function r(e,t){let a=(0,l.useRef)(null),r=(0,l.useRef)(null);return(0,l.useCallback)(l=>{if(null===l){let e=a.current;e&&(a.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(a.current=s(e,l)),t&&(r.current=s(t,l))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87527:(e,t,a)=>{"use strict";a.d(t,{o:()=>s});
1var l=a(9180),r=a(92118);function s(e,t,a){var s;let n=((0,r.a)(e)-(0,r.a)(t))/l.Cg;return(s=null==a?void 0:a.roundingMethod,e=>{let t=(s?Math[s]:Math.trunc)(e);return 0===t?0:t})(n)}},87568:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(95155);function r(){return(0,l.jsxs)("div",{className:"flex flex-1 w-full h-full flex-col gap-6 py-8 overflow-y-hidden",children:[(0,l.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[[void 0,void 0,void 0].map((e,t)=>(0,l.jsx)("div",{className:"h-10 w-36 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"},t)),(0,l.jsx)("div",{className:"h-10 w-20 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-10 w-12 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-10 w-20 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"})]}),(0,l.jsxs)("div",{className:"mb-3 flex gap-6 rounded-tl-4xl rounded-tr-4xl bg-white pt-14 pb-12 pl-16",children:[(0,l.jsxs)("div",{className:"mt-6 flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"h-4 w-20 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-12 w-64 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"})]}),(0,l.jsxs)("div",{className:"mt-6 flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"h-4 w-20 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-12 w-64 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"})]}),(0,l.jsx)("div",{className:"relative flex h-full gap-6",children:(0,l.jsx)("div",{className:"absolute bottom-0 h-11 w-32 animate-pulse rounded-full bg-gradient-to-r from-from to-to"})}),(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)("div",{className:"absolute bottom-0 h-11 w-32 translate-x-32 animate-pulse rounded-full bg-gradient-to-r from-from to-to"})})]}),(0,l.jsxs)("div",{className:"rounded-br-4xl rounded-bl-4xl bg-white px-16 pt-10 pb-14",children:[(0,l.jsxs)("div",{className:"mt-6 flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"h-7 w-72 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"}),(0,l.jsxs)("div",{className:"flex items-center gap-3 mt-7",children:[(0,l.jsx)("div",{className:"h-4 w-44 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-9 w-24 animate-pulse rounded-xl bg-gradient-to-r from-from to-to"})]})]}),(0,l.jsxs)("div",{className:"mt-8 rounded-t-2xl rounded-b-xl border border-[#FFF8F8] bg-gradient-to-br from-rose-100 to-amber-100/60 pt-0 shadow-sm",children:[(0,l.jsx)("div",{className:"mb-2 h-10 w-full animate-pulse rounded-t-2xl bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"flex flex-col gap-4 py-2",children:[...Array(10)].map((e,t)=>(0,l.jsxs)("div",{className:"flex gap-4",children:[[...Array(12)].map((e,t)=>(0,l.jsx)("div",{className:"h-7 ".concat(0===t?"ml-5 w-6":1===t?"w-6":2===t?"w-11":3===t?"w-[72px]":4===t?"w-[218px] mr-60":8===t?"w-[218px] mr-16":10===t?"w-16 mr-[50px]":"w-[0px]"," animate-pulse rounded-sm bg-gradient-to-r from-from to-to")},t)),(0,l.jsx)("div",{className:"h-7 w-24 animate-pulse rounded-lg bg-gradient-to-r from-from to-to"})]},t))})]})]}),(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsxs)("div",{className:"mt-5 flex gap-6",children:[(0,l.jsx)("div",{className:"h-7 w-44 animate-pulse rounded-lg bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-7 w-44 animate-pulse rounded-lg bg-gradient-to-r from-from to-to"})]}),(0,l.jsx)("div",{className:"relative w-full",children:(0,l.jsxs)("div",{className:"absolute right-0 bottom-0 flex gap-2",children:[(0,l.jsx)("div",{className:"h-7 w-7 animate-pulse rounded-lg bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-7 w-[116px] animate-pulse rounded-lg bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-7 w-7 animate-pulse rounded-lg bg-gradient-to-r from-from to-to"}),(0,l.jsx)("div",{className:"h-7 w-7 animate-pulse rounded-lg bg-gradient-to-r from-from to-to"})]})})]})]})}a(12115)},93741:e=>{e.exports={style:{fontFamily:"'fontBeVietnamPro', 'fontBeVietnamPro Fallback'"},className:"__className_a1e3d9",variable:"__variable_a1e3d9"}}}]);

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.