1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19170],{3998:(e,t,a)=>{a.d(t,{$:()=>i,r:()=>o});var r=a(95155);a(12115);var l=a(32467),s=a(83101),n=a(64269);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",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 bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 hover:border-primary/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent 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-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:a,size:s,asChild:i=!1,...d}=e,c=i?l.DX:"button";return(0,r.jsx)(c,{"data-slot":"button",className:(0,n.cn)(o({variant:a,size:s,className:t})),...d})}},6097:(e,t,a)=>{function r(e){let{column:t,withBorder:a=!1}
1=e,r=t.getIsPinned(),l="left"===r&&t.getIsLastColumn("left"),s="right"===r&&t.getIsFirstColumn("right");return{boxShadow:a?l?"-4px 0 4px -4px hsl(var(--border)) inset":s?"4px 0 4px -4px hsl(var(--border)) inset":void 0:void 0,left:"left"===r?"".concat(t.getStart("left"),"px"):void 0,right:"right"===r?"".concat(t.getAfter("right"),"px"):void 0,opacity:r?.97:1,position:r?"sticky":"relative",background:"hsl(var(--background))",width:t.getSize(),maxWidth:t.columnDef.maxSize,minWidth:t.columnDef.minSize,zIndex:+!!r}}a.d(t,{Z0:()=>r}),a(278)},16688:(e,t,a)=>{a.d(t,{b:()=>_});var r=a(95155),l=a(30563),s=a(6097),n=a(72264),o=a(12115),i=a(83360),d=a(64269);let c=o.forwardRef((e,t)=>{let{className:a,children:l,...s}=e;return(0,r.jsxs)(i.bL,{ref:t,"data-slot":"scroll-area",className:(0,d.cn)("relative overflow-hidden",a),...s,children:[(0,r.jsx)(i.LM,{"data-slot":"scroll-area-viewport",className:"h-full w-full rounded-[inherit]",children:l}),(0,r.jsx)(x,{}),(0,r.jsx)(i.OK,{})]})});c.displayName=i.bL.displayName;let x=o.forwardRef((e,t)=>{let{className:a,orientation:l="vertical",...s}=e;return(0,r.jsx)(i.VM,{ref:t,"data-slot":"scroll-area-scrollbar",orientation:l,className:(0,d.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]",a),...s,children:(0,r.jsx)(i.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})});x.displayName=i.VM.displayName;let p=o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{className:"relative w-full overflow-x-auto",children:(0,r.jsx)("table",{ref:t,className:(0,d.cn)("w-max min-w-full caption-bottom text-sm",a),...l})})});p.displayName="Table";let u=o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("thead",{ref:t,className:(0,d.cn)("[&_tr]:border-b",a),...l})});u.displayName="TableHeader";let m=o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("tbody",{ref:t,className:(0,d.cn)("[&_tr:last-child]:border-0 overflow-auto",a),...l})});m.displayName="TableBody",o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("tfoot",{ref:t,className:(0,d.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...l})}).displayName="TableFooter";let h=o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("tr",{ref:t,className:(0,d.cn)("transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...l})});h.displayName="TableRow";let f=o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("th",{ref:t,className:(0,d.cn)("h-10 px-2 text-left align-middle font-medium text-icon [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...l})});f.displayName="TableHead";let g=o.forwardRef((e,t)=>{let{className:a,children:l,...s}=e;return(0,r.jsx)("td",{ref:t,className:(0,d.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...s,children:function(e){return null==e||"string"==typeof e&&""===e.trim()?"-":e}(l)})});g.displayName="TableCell",o.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("caption",{ref:t,className:(0,d.cn)("mt-4 text-sm text-muted-foreground",a),...l})}).displayName="TableCaption";var b=a(51042),w=a(23529),v=a(24033),j=a(99975),y=a(90368),N=a(27937),k=a(90088);let C="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-[#D4D4D8] bg-white text-sm font-normal text-[#18181B] disabled:cursor-not-allowed disabled:opacity-50 hover:cursor-pointer";function F(e){let{table:t,totalItems:a,className:l,...s}=e,n=t.getState().pagination.pageIndex+1,o=t.getPageCount(),i=t.getFilteredRowModel().rows.length,c=Array.from({length:o},(e,t)=>t+1);return(0,r.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-center justify-between gap-4 pt-4 sm:flex-row",l),...s,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-base font-normal text-[#18181B]",children:"Trang"}),(0,r.jsxs)(w.l6,{value:"".concat(n),onValueChange:e=>{t.setPageIndex(Number(e)-1)},disabled:!((null!=a?a:i)>0),children:[(0,r.jsxs)(w.bq,{hideIcon:!0,className:"h-8 w-auto min-w-[51px] gap-2 rounded-lg border-[#D7DBE0] bg-white px-2.5 py-2.5 text-base font-semibold text-[#18181B] shadow-none",children:[(0,r.jsx)(w.yv,{placeholder:n}),(0,r.jsx)(v.A,{className:"!h-4 !w-4 shrink-0 text-[#18181B]"})]}),(0,r.jsx)(w.gC,{side:"top",children:c.map(e=>(0,r.jsx)(w.eb,{value:"".concat(e),children:e},e))})]}),(0,r.jsxs)("span",{className:"text-base font-normal whitespace-nowrap text-[#18181B]",children:["cá»§a ",o]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-[5px]",children:[(0,r.jsx)("button",{type:"button",className:C,onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),"aria-label":"Trang Äầu",children:(0,r.jsx)(j.A,{className:"!h-4 !w-4",strokeWidth:1.5})}),(0,r.jsx)("button",{type:"button",className:C,onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),"aria-label":"Trang trưá»c",children:(0,r.jsx)(y.A,{className:"!h-4 !w-4",strokeWidth:1.5})}),(()=>{let e=[];
1if(o<=5)for(let t=1;t<=o;t++)e.push(t);else if(n<=3){for(let t=1;t<=3;t++)e.push(t);e.push("..."),e.push(o)}else if(n>=o-2){e.push(1),e.push("...");for(let t=o-2;t<=o;t++)e.push(t)}else{e.push(1),e.push("...");for(let t=n-1;t<=n+1;t++)e.push(t);e.push("..."),e.push(o)}return e})().map((e,a)=>"..."===e?(0,r.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center text-sm text-[#18181B]",children:"..."},"ellipsis-".concat(a)):(0,r.jsx)("button",{type:"button",className:(0,d.cn)(C,e===n?"bg-[#FBEBEA]":"bg-white"),onClick:()=>t.setPageIndex(e-1),children:e},e)),(0,r.jsx)("button",{type:"button",className:C,onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),"aria-label":"Trang sau",children:(0,r.jsx)(N.A,{className:"!h-4 !w-4",strokeWidth:1.5})}),(0,r.jsx)("button",{type:"button",className:C,onClick:()=>t.setPageIndex(o-1),disabled:!t.getCanNextPage(),"aria-label":"Trang cuá»i",children:(0,r.jsx)(k.A,{className:"!h-4 !w-4",strokeWidth:1.5})})]})]})}function _(e){var t;let{table:a,heading:o="",WaitingProxies:i,StatusFilterTabs:w,cardClassName:v,containerClassName:j,tableContainerClassName:y,headerClassName:N,bodyCellClassName:k,hideViewToggle:C=!1,children:_}=e;return(0,r.jsxs)("div",{className:"relative flex h-full w-full max-w-full min-w-0 flex-1 flex-col gap-3 overflow-x-hidden 2xl:!gap-0",children:[o?(0,r.jsx)("span",{className:"absolute top-0 left-0 z-10 inline-flex max-w-[70%] items-center truncate rounded-tl-[32px] rounded-br-[32px] bg-gradient-to-r from-[#fc98b1] to-[#fbccc9] px-6 py-1 text-sm font-medium text-[#591c19]",children:o}):null,(0,r.jsxs)("div",{className:"flex h-full max-w-full min-w-0 flex-col overflow-x-hidden",children:[(0,r.jsxs)("div",{className:(0,d.cn)("bg-background col-span-2 mx-auto flex h-full min-h-0 w-full max-w-full min-w-0 flex-col gap-5 overflow-x-hidden !rounded-[32px] pt-10 pb-8 shadow-[0_0_8px_rgba(0,0,0,0.05)] sm:min-h-[450px] 2xl:!pt-[42px]",j),children:[_,(0,r.jsx)(b.Zp,{className:(0,d.cn)("mx-auto flex h-full w-full max-w-full min-w-0 flex-1 gap-4 overflow-x-hidden !rounded-none !border-none px-3 !shadow-none sm:gap-5 sm:px-6 2xl:!px-8",v),children:(0,r.jsx)(b.Wu,{className:"flex max-w-full min-w-0 flex-col overflow-x-hidden px-0 pt-0",children:(0,r.jsx)("div",{className:(0,d.cn)("relative flex h-[min(420px,calc(100dvh-22rem))] min-h-[280px] w-full max-w-full min-w-0 overflow-hidden rounded-[20px] sm:h-[500px] sm:min-h-[360px] lg:h-[600px]",y),children:(0,r.jsx)("div",{className:"absolute inset-0 flex w-full overflow-hidden rounded-[20px] border border-[#D4D4D8] bg-white",children:(0,r.jsxs)(c,{className:"h-full w-full",children:[(0,r.jsxs)(p,{className:"w-full table-fixed rounded-[20px]",children:[(0,r.jsx)(u,{className:(0,d.cn)("sticky top-0 z-10 !h-[44px] w-full rounded-t-[20px] bg-[#FEF5EC] whitespace-nowrap",N),children:a.getHeaderGroups().map(e=>(0,r.jsx)(h,{className:"border-b border-[#E4E4E7]",children:e.headers.map(e=>(0,r.jsx)(f,{colSpan:e.colSpan,className:"text-text-normal-template-3 sticky !h-[44px] px-2 text-center !font-semibold sm:px-4 [&_*]:!font-semibold",style:{...(0,s.Z0)({column:e.column}),...e.column.columnDef.minSize?{minWidth:e.column.columnDef.minSize}:{}},children:e.isPlaceholder?null:(0,l.Kv)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,r.jsx)(m,{className:"[&_tr:last-child:not(:only-child)]:shadow-none",children:(null==(t=a.getRowModel().rows)?void 0:t.length)?a.getRowModel().rows.map(e=>(0,r.jsx)(h,{"data-state":e.getIsSelected()&&"selected",className:"h-[56px] shadow-[inset_0_-1px_0_0_#E4E4E7] hover:bg-[#f5f5f5]",children:e.getVisibleCells().map(e=>(0,r.jsx)(g,{style:{...(0,s.Z0)({column:e.column}),...e.column.columnDef.minSize?{minWidth:e.column.columnDef.minSize}:{}},className:(0,d.cn)("h-[56px] px-2 py-3 text-center sm:px-4 sm:py-4",k),children:function(e){let t=(0,l.Kv)(e.column.columnDef.cell,e.getContext());return null==t||"string"==typeof t&&""===t.trim()?"-":t}(e)},e.id))},e.id)):(0,r.jsx)(h,{className:"hover:bg-transparent",children:(0,r.jsxs)(g,{colSpan:a.getAllColumns().length,className:"gap-3 pt-30 text-center",children:[(0,r.jsx)(n.F.EmptyIcon,{className:"mx-auto h-[182px] w-[217px]"}),(0,r.jsx)("div",{className:"text-icon-template-3 h-[22px] text-center text-[16px] leading-[22px] font-medium",children:"Chưa c\xf3 dữ liá»u"})]})})})]}),(0,r.jsx)(x,{orientation:"horizontal"})]})})})})})]}),(0,r.jsx)("div",{className:"flex flex-col gap-2.5",children:(0,r.jsx)(F,{table:a,totalItems:a.getCoreRowModel().rows.length})})]})]})}},19170:(e,t,a)=>{a.r(t),a.d(t,{default:()=>B});var r=a(95155),l=a(3998),s=a(41052),n=a(31120),o=a(17527),i=a(13744),d=a(26767),c=a(33407),x=a(66942),p=a(46671),u=a.n(p),m=a(97453),h=a(12115),f=a(22544),g=a(15653),b=a(16688);function w(e){let{table:t,heading:a,StatusFilterTabs:l,cardClassName:s,tableContainerClassName:n,children:o}=e;return(0,r.jsx)(b.b,{table:t,heading:a,StatusFilterTabs:l,cardClassName:s,tableContainerClassName:n,children:o})}var v=a(72264),j=a(88566),y=a(18720);let N=[{id:"stt",header:()=>(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-5 font-medium tracking-[0]",children:"STT"}),size:141,cell:e=>{let{cell:t,table:a}=e;return(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[22px] font-normal tracking-normal",children:a.getState().pagination.pageIndex*a.getState().pagination.pageSize+t.row.index+1})}},{header:()=>(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-5 font-medium tracking-[0]",children:"Proxy"}),accessorKey:"proxy",id:"proxy",size:236.75,cell:e=>{let{cell:t}=e,a=t.getValue();return(0,r.jsxs)("div",{className:"group flex min-w-0 gap-2 sm:gap-4",children:[(0,r.jsx)("p",{className:"text-text-normal-template-3 max-w-[140px] truncate text-sm leading-[22px] font-normal tracking-normal sm:max-w-none sm:text-sm",children:a}),(0,r.jsx)(v.F.CopyIcon,{onClick:()=>(e=>{navigator.clipboard.writeText(e).then(()=>{y.toast.success("Copied to clipboard!",{description:e,duration:5e3})}).catch(()=>{y.toast.error("Failed to copy")})})(a),width:16,height:16,className:"text-icon-template-3 !h-5 !w-5 shrink-0 cursor-pointer opacity-100 sm:opacity-0 sm:group-hover:opacity-100"})]})},minSize:200},{header:()=>(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-5 font-medium tracking-[0]",children:"Äá»a chá» IP"}),accessorKey:"ip",id:"ip",size:236.75,minSize:60,cell:e=>{let{cell:t}=e,a=t.getValue();return(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[22px] font-normal tracking-normal",children:a})}},{id:"protocol",accessorKey:"protocol",header:()=>(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-5 font-medium tracking-[0]",children:"Loại h\xecnh"}),size:236.75,cell:e=>{let{cell:t}=e,a=t.getValue();return(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-[22px] font-normal tracking-normal",children:a})}},{id:"status",header:()=>(0,r.jsx)("span",{className:"text-text-normal-template-3 block w-full text-left text-sm leading-5 font-medium tracking-[0]",children:"Trạng th\xe1i proxy"}),accessorKey:"status",size:236.75,minSize:100,enableColumnFilter:!0,meta:{label:"Trạng th\xe1i"},cell:e=>{let t,{cell:a}=e;switch(a.getValue()){case 1:t=(0,r.jsxs)("div",{className:"flex h-[30px] w-fit shrink-0 items-center gap-[6px] rounded-[16px] bg-[#ECFDF3] px-2 py-1 text-center text-sm font-medium whitespace-nowrap text-[#34c759] sm:text-sm",children:[(0,r.jsx)("div",{className:"h-[6px] w-[6px] rounded-full bg-[#34c759]"}),j.S5[1]]});break;case 2:t=(0,r.jsxs)("div",{className:"flex h-[30px] w-fit shrink-0 items-center gap-[6px] rounded-[16px] bg-[#fdecec] px-2 py-1 text-center text-sm font-medium whitespace-nowrap text-[#f22222] sm:text-sm",children:[(0,r.jsx)("div",{className:"h-[6px] w-[6px] rounded-full bg-[#f22222]"}),"Ngừng hoạt Äá»ng"]});break;default:t=(0,r.jsxs)("div",{className:"text-icon-template-3 flex h-[30px] w-fit shrink-0 items-center gap-[6px] rounded-[16px] bg-[#787880]/8 px-2 py-1 text-center text-sm font-medium whitespace-nowrap sm:text-sm",children:[(0,r.jsx)("div",{className:"bg-icon-template-3 h-[6px] w-[6px] rounded-full"}),"Äang Äợi"]})}return t}}];var k=a(65142),C=a(23529),F=a(62043),_=a(30030);let z=[{value:"1",label:"Äang hoạt Äá»ng"},{value:"2",label:"Ngừng hoạt Äá»ng"},{value:"3",label:"Äang Äợi"}],D=[{name:"host:port:username:password",value:"host:port:username:password"},{name:"username:password@host:port",value:"username:password@host:port"},{name:"host:port@username:password",value:"host:port@username:password"},{name:"host:port",value:"host:port"}];function L(e){var t;let{form:a,proxyList:l,table:n,onOpenProxyInput:o,onSubmit:i}=e,d=n.getColumn("status"),c=null!=(t=null==d?void 0:d.getFilterValue())?t:"all";return(0,r.jsx)("div",{className:"w-full px-3 sm:px-8",children:(0,r.jsx)(s.lV,{...a,children:(0,r.jsx)("form",{onSubmit:a.handleSubmit(i),className:"@container/check-proxy-toolbar min-w-0",children:(0,r.jsxs)("div",{className:"flex w-full min-w-0 flex-col gap-2 @[880px]/check-proxy-toolbar:flex-row @[880px]/check-proxy-toolbar:items-center @[880px]/check-proxy-toolbar:gap-2",children:[(0,r.jsx)(s.zB,{control:a.control,name:"proxies",render:()=>(0,r.jsxs)(s.eI,{className:"min-w-0 flex-1 basis-0 gap-0 @[880px]/check-proxy-toolbar:max-w-[460px]",children:[(0,r.jsx)(s.lR,{className:"sr-only",children:"Danh s\xe1ch proxy"}),(0,r.jsx)(s.MJ,{children:(0,r.jsx)(k.p,{onClick:o,placeholder:"Nháºp t\xean proxy...",type:"text",value:l,readOnly:!0,className:"h-10 w-full min-w-0 cursor-pointer rounded-full border-[#D4D4D8] placeholder:truncate"})}),(0,r.jsx)(s.C5,{})]})}),(0,r.jsx)(s.zB,{control:a.control,name:"format",render:e=>{let{field:t}=e;return(0,r.jsxs)(s.eI,{className:"relative flex min-w-0 flex-1 basis-0 flex-col justify-between gap-0 @[880px]/check-proxy-toolbar:max-w-[168px]",children:[(0,r.jsx)(s.lR,{className:"sr-only",children:"Äá»nh dạng proxy"}),(0,r.jsxs)(C.l6,{onValueChange:e=>t.onChange(e),...t,children:[(0,r.jsx)(s.MJ,{children:(0,r.jsxs)(C.bq,{hideIcon:!0,className:"group h-10 w-full min-w-0 rounded-full border-[#D4D4D8] text-start data-[state=open]:!border-[#DF3B30] data-[state=open]:!ring-0 [&>*:first-child]:truncate",children:[(0,r.jsx)(C.yv,{placeholder:"format"}),(0,r.jsx)(v.F.DropdownChevronIcon,{className:"!h-4 !w-4 shrink-0 text-[#8A92A6] transition-transform group-data-[state=open]:rotate-180"})]})}
1),(0,r.jsx)(C.gC,{className:"rounded-[16px] border-[#E4E4E7] p-[6px] shadow-[0px_0px_4px_rgba(0,0,0,0.05)]",children:D.map((e,t)=>(0,r.jsx)(C.eb,{value:e.value,className:"rounded-[12px] px-[8px] py-[4px] not-last:mb-[4px] focus:bg-[#F4F4F5] data-[state=checked]:bg-[#F4F4F5]",children:e.name},t))})]}),(0,r.jsx)(s.C5,{})]})}}),(0,r.jsxs)("div",{className:"relative flex w-full min-w-0 flex-col justify-between gap-0 @[880px]/check-proxy-toolbar:w-[166px] @[880px]/check-proxy-toolbar:shrink-0",children:[(0,r.jsx)("span",{className:"sr-only",children:"Trạng th\xe1i"}),(0,r.jsxs)(C.l6,{value:c,onValueChange:e=>null==d?void 0:d.setFilterValue("all"===e?void 0:e),children:[(0,r.jsxs)(C.bq,{hideIcon:!0,className:"group h-10 w-full min-w-0 rounded-full border-[#D4D4D8] text-start data-[state=open]:!border-[#DF3B30] data-[state=open]:!ring-0 [&>*:first-child]:truncate",children:[(0,r.jsx)(C.yv,{placeholder:"Trạng th\xe1i proxy"}),(0,r.jsx)(v.F.DropdownChevronIcon,{className:"!h-4 !w-4 shrink-0 text-[#8A92A6] transition-transform group-data-[state=open]:rotate-180"})]}),(0,r.jsxs)(C.gC,{className:"rounded-[16px] border-[#E4E4E7] p-[6px] shadow-[0px_0px_4px_rgba(0,0,0,0.05)]",children:[(0,r.jsx)(C.eb,{value:"all",className:"rounded-[12px] px-[8px] py-[4px] not-last:mb-[4px] focus:bg-[#F4F4F5] data-[state=checked]:bg-[#F4F4F5]",children:"Tất cả"}),z.map(e=>(0,r.jsx)(C.eb,{value:e.value,className:"rounded-[12px] px-[8px] py-[4px] not-last:mb-[4px] focus:bg-[#F4F4F5] data-[state=checked]:bg-[#F4F4F5]",children:e.label},e.value))]})]})]}),(0,r.jsx)(s.zB,{control:a.control,name:"protocolType",render:e=>{let{field:t}=e;return(0,r.jsxs)(s.eI,{className:"relative flex w-full min-w-0 flex-col justify-between gap-0 @[880px]/check-proxy-toolbar:w-[122px] @[880px]/check-proxy-toolbar:shrink-0",children:[(0,r.jsx)(s.lR,{className:"sr-only",children:"Giao thức"}),(0,r.jsxs)(C.l6,{onValueChange:e=>t.onChange(e),...t,children:[(0,r.jsx)(s.MJ,{children:(0,r.jsxs)(C.bq,{hideIcon:!0,className:"group h-10 w-full min-w-0 rounded-full border-[#D4D4D8] text-start data-[state=open]:!border-[#DF3B30] data-[state=open]:!ring-0 [&>*:first-child]:truncate",children:[(0,r.jsx)(C.yv,{placeholder:"Chá»n giao thức"}),(0,r.jsx)(v.F.DropdownChevronIcon,{className:"!h-4 !w-4 shrink-0 text-[#8A92A6] transition-transform group-data-[state=open]:rotate-180"})]})}),(0,r.jsx)(C.gC,{className:"rounded-[16px] border-[#E4E4E7] p-[6px] shadow-[0px_0px_4px_rgba(0,0,0,0.05)]",children:_.q.map(e=>(0,r.jsx)(C.eb,{value:e.value,className:"rounded-[12px] px-[8px] py-[4px] not-last:mb-[4px] focus:bg-[#F4F4F5] data-[state=checked]:bg-[#F4F4F5]",children:e.name},e.name))})]}),(0,r.jsx)(s.C5,{})]})}}),(0,r.jsx)("div",{className:"flex shrink-0 flex-col justify-end",children:(0,r.jsx)(F.q,{table:n,className:"h-10 w-[140px] rounded-full"})})]})})})})}let I=g.z.object({format:g.z.string(),protocolType:g.z.string(),proxies:g.z.string(),active_proxies:g.z.string().optional(),inactive_proxies:g.z.string().optional()}),S=e=>{let{selected:t,proxyResultLength:a,activeProxyLength:s,inActiveProxyLength:n,onTabClick:o}=e;return(0,r.jsx)("div",{className:"flex h-[30px] w-full flex-row items-center gap-4 overflow-x-auto overflow-y-hidden border-b border-[#E5E5EA] sm:gap-6 md:gap-[33px]",children:[{label:"Tất cả",value:0,count:a},{label:"Äang hoạt Äá»ng",value:1,count:s},{label:"Ngừng hoạt Äá»ng",value:2,count:n}].map(e=>(0,r.jsxs)(l.$,{onClick:()=>o(e.value),className:"box-border flex h-[30px] w-fit shrink-0 items-center justify-center gap-0 rounded-none border-b-2 bg-transparent p-0 text-sm leading-[22px] font-medium transition-all duration-300 hover:cursor-pointer hover:bg-transparent sm:text-[16px] ".concat(t===e.value?"border-primary text-text-normal-template-3 font-semibold":"hover:text-text-blur-hover border-transparent text-[#495061]"),children:[e.label," (",e.count,")"]},e.value))})};function B(){let e={format:"host:port:username:password",protocolType:"HTTP",proxies:""},t=(0,f.mN)({resolver:(0,x.u)(I),values:e}),{formState:{isSubmitting:a}}=t,[p,g]=(0,h.useState)(0),[b,v]=(0,h.useState)([]),[j,y]=(0,h.useState)([]),[k,C]=(0,h.useState)([]),[F]=(0,m.ZA)("limit",m.GJ.withDefault(50)),_=Math.ceil(b.length/F),[z,D]=(0,h.useState)(!1),[B,T]=(0,h.useState)(""),{table:M}=(0,o.u)({data:b,columns:N,pageCount:_,shallow:!1,debounceMs:500}),E=(0,h.useMemo)(()=>M.getAllColumns().filter(e=>e.getCanFilter()),[M]),A=h.useMemo(()=>{let e=M.getState().columnFilters;return e.length?b.filter(t=>e.every(e=>String(t[e.id]).toLowerCase().includes(String(e.value).toLowerCase()))):b}
1,[b,M.getState().columnFilters]);async function R(e){let a=e.proxies.split("\n").map(e=>e.trim());if(""!==(a=u().uniq(a))[0]){let r=a.map(t=>{let a={proxy:t,protocol:e.protocolType,status:3,ip:""};switch(e.format){case"host:port:username:password":let[r]=t.split(":");a.ip=r;break;case"username:password@host:port":let[l,s]=t.split("@");a.ip=s.split(":")[0];break;case"host:port@username:password":let[n,o]=t.split("@");a.ip=n.split(":")[0];break;default:a.ip=t.split(":")[0]}return a});v(r);let l=u().chunk(a,50),s=[],n=[];for(let t of l)(await Promise.all(t.map(t=>i.A.postApi("https://checkproxy.homeproxy.vn/api/v1/check-proxy",{protocol:e.protocolType,proxy:t,type:e.format}).catch(e=>{var t;return null==(t=e.response)?void 0:t.data})))).forEach(e=>{let t=r.findIndex(t=>t.proxy===e.proxy);t>-1&&(r[t]={...r[t],...e}),1===e.status?s.push(e.proxy):n.push(e.proxy)}),v([...r]),C([...s]),y([...n]),await i.A.sleep(1e3);t.setValue("active_proxies",s.join("\n")),t.setValue("inactive_proxies",n.join("\n"))}}M.setOptions(e=>{var t;return{...e,data:A&&(null==(t=A[0])?void 0:t.proxy)!==""?A:[]}});let V=E.find(e=>"status"===e.id),P=h.useCallback((e,t)=>{V&&V.setFilterValue(t?void 0:[e.value])},[V]),W=h.useCallback(e=>{null==e||e.stopPropagation(),null==V||V.setFilterValue(void 0)},[V]),H=null==V?void 0:V.getFilterValue(),q=h.useMemo(()=>new Set(Array.isArray(H)?H:[]),[H]),J=b.length>0,K=async()=>{t.reset(e),M.setPageIndex(0),v([]),C([]),y([]),g(0),W(),M.setOptions(e=>({...e,data:[]})),T(""),await i.A.sleep(100)};return(0,r.jsxs)(d.A,{scrollable:!0,openMarqueeBottom:!1,className:"over-table",contentMaxWidthClassName:"max-w-[var(--template-3-content-max-width,1230px)]",children:[(0,r.jsx)("div",{className:"mx-auto flex h-full w-full max-w-full min-w-0 flex-1 flex-col gap-3 overflow-x-hidden sm:gap-4",children:(0,r.jsx)(w,{table:M,heading:"Check proxy",cardClassName:"w-full max-w-[var(--template-3-content-max-width,1230px)]",tableContainerClassName:"h-[min(420px,calc(100dvh-22rem))] min-h-[280px] sm:min-h-[360px] sm:h-[500px] lg:h-[600px] 2xl:h-[492px]",StatusFilterTabs:(0,r.jsx)(S,{selected:p,proxyResultLength:b.length,activeProxyLength:k.length,inActiveProxyLength:j.length,onTabClick:e=>{if(0===e)g(e),W();else{g(e);let t=q.has(e);P({value:e},t)}}}),children:(0,r.jsx)(L,{form:t,proxyList:B,table:M,onOpenProxyInput:()=>D(!0),onSubmit:R})})}),(0,r.jsx)(c.a,{title:"Nháºp danh s\xe1ch proxy",titleClassName:"font-semibold h-[30px] text-lg md:text-xl h-auto text-text-normal",description:"",isOpen:z,onClose:()=>{D(!1)},className:"w-[calc(100vw-2rem)] max-w-[412px] gap-5 overflow-y-auto sm:w-[412px]",children:z&&(0,r.jsx)("div",{className:"mx-auto mb-6 flex w-full flex-1 flex-col gap-4 px-3 sm:px-6",children:(0,r.jsx)(s.lV,{...t,children:(0,r.jsxs)("form",{className:"flex flex-col gap-4",children:[(0,r.jsx)(s.zB,{control:t.control,name:"proxies",render:e=>{let{field:t}=e;return(0,r.jsxs)(s.eI,{children:[(0,r.jsx)(s.MJ,{children:(0,r.jsx)(n.T,{className:"h-32 rounded-2xl border-[#D4D4D8] bg-white shadow-xs",placeholder:"",value:B,autoFocus:!0,onChange:e=>{T(e.target.value),t.onChange(e.target.value)}})}),(0,r.jsx)(s.C5,{})]})}}),J?(0,r.jsx)(l.$,{className:"h-10 w-full rounded-full bg-[#DF3B30] text-sm font-medium text-white hover:bg-[#DF3B30]/90",onClick:async()=>{D(!1),await K()},type:"button",children:"Äặt lại"}):(0,r.jsx)(l.$,{className:"h-10 w-full rounded-full bg-[#DF3B30] text-sm font-medium text-white hover:bg-[#DF3B30]/90",onClick:async()=>{D(!1),await t.handleSubmit(R)()},disabled:a,type:"button",children:"Kiá»m tra"})]})})})})]})}},23529:(e,t,a)=>{a.d(t,{l6:()=>x,gC:()=>f,eb:()=>g,bq:()=>u,yv:()=>p});var r=a(95155),l=a(47887),s=a(12108),n=a(24033),o=a(12115),i=a(72264);let d=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{d:"M13.3346 4L6.0013 11.3333L2.66797 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});var c=a(64269);let x=l.bL;l.YJ;let p=l.WT,u=o.forwardRef((e,t)=>{let{className:a,children:s,hideIcon:n,...o}=e;
1return(0,r.jsxs)(l.l9,{ref:t,className:(0,c.cn)("border-input ring-offset-background data-[placeholder]:text-muted-foreground flex h-10 w-full cursor-pointer items-center justify-between gap-2 rounded-lg border px-3 py-2.5 text-sm shadow-[4px_4px_8px_0_var(--shadow-proxy-input))] focus:outline-none disabled:cursor-not-allowed disabled:opacity-50","data-[state=open]:border-primary data-[state=open]:ring-primary/20 data-[state=open]:ring-[3px]","[&>span]:min-w-0 [&>span]:flex-1 [&>span]:truncate [&>span]:text-left",a),...o,children:[s,!n&&(0,r.jsx)(l.In,{asChild:!0,className:"shrink-0 hover:cursor-pointer",children:(0,r.jsx)(i.F.ChevronsDownSolidIcon,{className:"text-icon-template-3 h-[14px] w-[14px]"})})]})});u.displayName=l.l9.displayName,o.forwardRef((e,t)=>{let{className:a,children:s,...n}=e;return(0,r.jsxs)(l.l9,{ref:t,className:(0,c.cn)("border-input ring-offset-background data-[placeholder]:text-muted-foreground flex h-10 w-full cursor-pointer items-center justify-between gap-2 rounded-lg border px-3 py-2.5 text-sm whitespace-nowrap shadow-[4px_4px_8px_0_var(--shadow-proxy-input))] focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","data-[state=open]:border-primary data-[state=open]:ring-primary/20 data-[state=open]:ring-[3px]",a),...n,children:[s,(0,r.jsx)(l.In,{asChild:!0,className:"hover:cursor-pointer",children:(0,r.jsx)(i.F.ChevronsDownIcon,{className:"h-[20px] w-[20px] text-[#161616]"})})]})}).displayName=l.l9.displayName;let m=o.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(l.PP,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,r.jsx)(s.A,{className:"h-4 w-4"})})});m.displayName=l.PP.displayName;let h=o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.wn,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,r.jsx)(n.A,{className:"h-4 w-4"})})});h.displayName=l.wn.displayName;let f=o.forwardRef((e,t)=>{let{className:a,children:s,position:n="popper",...o}=e;return(0,r.jsx)(l.ZL,{children:(0,r.jsxs)(l.UC,{ref:t,className:(0,c.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...o,children:[(0,r.jsx)(m,{}),(0,r.jsx)(l.LM,{className:(0,c.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,r.jsx)(h,{})]})})});f.displayName=l.UC.displayName,o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.JU,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",a),...s})}).displayName=l.JU.displayName;let g=o.forwardRef((e,t)=>{let{className:a,children:s,...n}=e;return(0,r.jsxs)(l.q7,{ref:t,className:(0,c.cn)("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,r.jsx)(l.p4,{children:s})}),(0,r.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-[#18181B]",children:(0,r.jsx)(l.VF,{children:(0,r.jsx)(d,{className:"h-4 w-4"})})})]})});g.displayName=l.q7.displayName,o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.wv,{ref:t,className:(0,c.cn)("bg-muted -mx-1 my-1 h-px",a),...s})}).displayName=l.wv.displayName},26333:(e,t,a)=>{a.d(t,{AM:()=>n,Wv:()=>
1o,dT:()=>d,hl:()=>i});var r=a(95155);a(12115);var l=a(82286),s=a(64269);function n(e){let{...t}=e;return(0,r.jsx)(l.bL,{"data-slot":"popover",...t})}function o(e){let{...t}=e;return(0,r.jsx)(l.l9,{"data-slot":"popover-trigger",...t})}function i(e){let{className:t,align:a="center",sideOffset:n=4,...o}=e;return(0,r.jsx)(l.ZL,{children:(0,r.jsx)(l.UC,{"data-slot":"popover-content",align:a,sideOffset:n,className:(0,s.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...o})})}function d(e){let{...t}=e;return(0,r.jsx)(l.Mz,{"data-slot":"popover-anchor",...t})}},26767:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(95155),l=a(64269),s=a(77186);function n(e){let{children:t,scrollable:a=!0,className:n="",contentMaxWidthClassName:o="max-w-[1480px]",openMarqueeTop:i=!0,openMarqueeBottom:d=!0}=e;return(0,r.jsx)(r.Fragment,{children:a?(0,r.jsx)(s.F,{className:(0,l.cn)("bg-background-blur-template-3 mx-auto h-[calc(100dvh-70px)] w-full max-w-full min-w-0 overflow-x-hidden px-3 sm:px-4 md:px-6 [&_[data-slot=scroll-area-viewport]]:max-w-full [&_[data-slot=scroll-area-viewport]]:min-w-0 [&_[data-slot=scroll-area-viewport]]:overflow-x-hidden [&_[data-slot=scroll-area-viewport]>div]:max-w-full [&_[data-slot=scroll-area-viewport]>div]:min-w-0",n),children:(0,r.jsx)("div",{className:"flex min-h-full w-full min-w-0 flex-col justify-between gap-3 overflow-x-hidden",children:(0,r.jsx)("div",{className:"@container mx-auto flex w-full max-w-[var(--template-3-content-max-width,1152px)] min-w-0 flex-1 overflow-x-hidden pt-6 pb-10",children:t})})}):(0,r.jsx)("div",{className:"bg-background-blur-template-3 mx-auto flex h-full w-full max-w-full min-w-0 overflow-x-hidden px-3 pt-3 sm:px-4 md:px-6 ".concat(n),children:(0,r.jsx)("div",{className:"flex h-full w-full min-w-0 flex-col justify-between gap-3 overflow-x-hidden",children:(0,r.jsx)("div",{className:"mx-auto flex w-full max-w-[var(--template-3-content-max-width,1152px)] min-w-0 flex-1 overflow-x-hidden py-3 pt-6 pb-8",children:t})})})})}a(12115)},30030:(e,t,a)=>{a.d(t,{q:()=>r});let r=[{name:"HTTP",value:"HTTP"},{name:"SOCKS5",value:"SOCKS"}
1]},31120:(e,t,a)=>{a.d(t,{T:()=>s});var r=a(95155);a(12115);var l=a(64269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("textarea",{"data-slot":"textarea",className:(0,l.cn)("border-input placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-primary/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] hover:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...a})}},33407:(e,t,a)=>{a.d(t,{a:()=>s});var r=a(95155),l=a(61504);let s=e=>{let{title:t,description:a,isOpen:s,onClose:n,children:o,className:i,titleClassName:d,headerClassName:c,showCloseButton:x=!0}=e;return(0,r.jsx)(l.lG,{open:s,onOpenChange:e=>{e||n()},children:(0,r.jsx)(l.Cf,{className:i,title:t,description:a,titleClassName:null!=d?d:"",headerClassName:null!=c?c:"",showCloseButton:x,onOpenAutoFocus:e=>{e.preventDefault()},children:(0,r.jsx)("div",{className:"min-w-0",children:o})})})}},41052:(e,t,a)=>{a.d(t,{C5:()=>b,MJ:()=>f,Rr:()=>g,eI:()=>m,lR:()=>h,lV:()=>d,zB:()=>x});var r=a(95155),l=a(12115),s=a(32467),n=a(22544),o=a(64269),i=a(76444);let d=n.Op,c=l.createContext({}),x=e=>{let{...t}=e;return(0,r.jsx)(c.Provider,{value:{name:t.name},children:(0,r.jsx)(n.xI,{...t})})},p=()=>{let e=l.useContext(c),t=l.useContext(u),{getFieldState:a}=(0,n.xW)(),r=(0,n.lN)({name:e.name}),s=a(e.name,r);if(!e)throw Error("useFormField should be used within <FormField>");let{id:o}=t;return{id:o,name:e.name,formItemId:"".concat(o,"-form-item"),formDescriptionId:"".concat(o,"-form-item-description"),formMessageId:"".concat(o,"-form-item-message"),...s}},u=l.createContext({});function m(e){let{className:t,...a}=e,s=l.useId();return(0,r.jsx)(u.Provider,{value:{id:s},children:(0,r.jsx)("div",{"data-slot":"form-item",className:(0,o.cn)("grid gap-2",t),...a})})}function h(e){let{className:t,...a}=e,{error:l,formItemId:s}=p();return(0,r.jsx)(i.J,{"data-slot":"form-label","data-error":!!l,className:(0,o.cn)("data-[error=true]:text-destructive",t),htmlFor:s,...a})}function f(e){let{...t}=e,{error:a,formItemId:l,formDescriptionId:n,formMessageId:o}=p();return(0,r.jsx)(s.DX,{"data-slot":"form-control",id:l,"aria-describedby":a?"".concat(n," ").concat(o):"".concat(n),"aria-invalid":!!a,...t})}function g(e){let{className:t,...a}=e,{formDescriptionId:l}=p();return(0,r.jsx)("p",{"data-slot":"form-description",id:l,className:(0,o.cn)("text-muted-foreground text-sm",t),...a})}function b(e){var t;let{className:a,...l}=e,{error:s,formMessageId:n}=p(),i=s?String(null!=(t=null==s?void 0:s.message)?t:""):l.children;return i?(0,r.jsx)("p",{"data-slot":"form-message",id:n,className:(0,o.cn)("text-destructive text-sm",a),...l,children:i}):null}},51042:(e,t,a)=>{a.d(t,{Wu:()=>o,Zp:()=>n,wL:()=>i});var r=a(95155),l=a(12115),s=a(64269);let n=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("bg-card text-card-foreground relative flex w-full flex-col gap-4 roun
1ded-lg border-0 px-6",a),...l})});n.displayName="Card",l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("",a),...l})}).displayName="CardHeader",l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("leading-none font-semibold tracking-tight",a),...l})}).displayName="CardTitle",l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("text-muted-foreground text-sm",a),...l})}).displayName="CardDescription";let o=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("",a),...l})});o.displayName="CardContent";let i=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("w-full",a),...l})});i.displayName="CardFooter"},51834:(e,t,a)=>{a.d(t,{Cf:()=>p,Es:()=>m,HM:()=>c,L3:()=>h,LC:()=>x,ZJ:()=>d,c7:()=>u,lG:()=>o,rr:()=>f,zM:()=>i});var r=a(95155);a(12115);var l=a(89511),s=a(65229),n=a(64269);function o(e){let{...t}=e;return(0,r.jsx)(l.bL,{"data-slot":"dialog",...t})}function i(e){let{...t}=e;return(0,r.jsx)(l.l9,{"data-slot":"dialog-trigger",...t})}function d(e){let{...t}=e;return(0,r.jsx)(l.ZL,{"data-slot":"dialog-portal",...t})}function c(e){let{...t}=e;return(0,r.jsx)(l.bm,{"data-slot":"dialog-close",...t})}function x(e){let{className:t,...a}=e;return(0,r.jsx)(l.hJ,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function p(e){let{className:t,iconColor:a,template:o,hideCloseButton:i,closeClassName:c,children:p,...u}=e;return(0,r.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,r.jsx)(x,{}),(0,r.jsxs)(l.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...u,children:[p,!i&&(0,r.jsxs)(l.bm,{className:(0,n.cn)("ring-offset-background focus:ring-primary data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 z-50 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",c),children:[(0,r.jsx)(s.A,{className:(0,n.cn)("!h-6 !w-6",a,"blue-tech"===o&&"text-primary")}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function m(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function h(e){let{className:t,...a}=e;return(0,r.jsx)(l.hE,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",t),...a})}function f(e){let{className:t,...a}=e;return(0,r.jsx)(l.VY,{"data-slot":"dialog-description",className:(0,n.cn)("text-muted-foreground text-sm",t),...a})}},61504:(e,t,a)=>{a.d(t,{Cf:()=>c,lG:()=>o});var r=a(95155);a(12115);var l=a(89511),s=a(65229),n=a(64269);function o(e){let{...t}=e;return(0,r.jsx)(l.bL,{"data-slot":"dialog",...t})}function i(e){let{...t}=e;return(0,r.jsx)(l.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(l.hJ,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function c(e){let{className:t,children:a,showCloseButton:o=!0,title:c,titleClassName:u="",headerClassName:m="",description:h,...f}=e;return(0,r.jsxs)(i,{"data-slot":"dialog-portal",children:[(0,r.jsx)(d,{}),(0,r.jsxs)(l.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex w-auto max-w-[583px] min-w-0 translate-x-[-50%] translate-y-[-50%] flex-col rounded-[24px] border-none shadow-[0_2px_4px_0_var(--shadow-modal)] duration-200 sm:max-w-[886px]",t),...f,children:[(0,r.jsxs)(x,{className:m,children:[(0,r.jsx)(p,{className:c?"text-text-normal-template-3 h-full align-middle text-[18px] leading-5 font-semibold ".concat(u," "):"hidden",children:c}),o&&(0,r.jsxs)(l.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-primary data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs transition-opacity hover:cursor-pointer hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,r.jsx)(s.A,{className:"!h-6 !w-6 text-neutral-900"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a]})]})}function x(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("sticky top-0 z-50 flex h-12 w-auto flex-row items-center justify-between rounded-t-[24px] bg-[#F3EAE2] px-8 py-4 text-center sm:text-left",t),...a})}function p(e){let{className:t,...a}=e;return(0,r.jsx)(l.hE,{"data-slot":"dialog-title",className:(0,n.cn)("text-normal text-base leading-none font-semibold",t),...a})}},62043:(e,t,a)=>{a.d(t,{q:()=>c});var r=a(95155),l=a(3998),s=a(63817),n=a(26333),o=a(64269),i=a(72264),d=a(12115);function c(e){let{table:t,className:a}=e,c=d.useMemo(()=>t.getAllColumns().filter(e=>void 0!==e.accessorFn&&e.getCanHide()),[t]);return 0===c.length?null:(0,r.jsxs)(n.AM,{children:[(0,r.jsx)(n.Wv,{asChild:!0,children:(0,r.jsx)(l.$,{"aria-label":"Toggle columns",role:"combobox",variant:"outline",size:"sm",className:(0,o.cn)("bg-background group h-10 w-[140px] shrink-0 rounded-full border-[#D4D4D8] px-4 py-2 font-normal data-[state=open]:!border-[#DF3B30] data-[state=open]:!bg-white data-[state=open]:shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#FFEBEB]",a),children:(0,r.jsxs)("div",{className:"flex w-full flex-row items-center gap-[10px]",children:[(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"!h-4 !w-4 text-[#18181B]",children:[(0,r.jsx)("path",{d:"M8.33333 4.16699H2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10 15.833H2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M11.668 2.5V5.83333",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.332 14.167V17.5003",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M17.5 10H10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M17.4987 15.833H13.332",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M17.5013 4.16699H11.668",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.66797 8.33301V11.6663",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.66667 10H2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsx)("span",{className:"text-[14px] leading-5 font-normal tracking-[0] text-[#18181B]",children:"Hiá»n thá»"}),(0,r.jsx)(i.F.DropdownChevronIcon,{className:"!h-4 !w-4 shrink-0 text-[#8A92A6] transition-transform group-data-[state=open]:rotate-180"})]})})}),(0,r.jsx)(n.hl,{align:"end",className:"w-[170px] rounded-[16px] border-[#
1E4E4E7] p-[8px] shadow-[0px_0px_4px_rgba(0,0,0,0.05)]",children:(0,r.jsx)(s.uB,{children:(0,r.jsxs)(s.oI,{children:[(0,r.jsx)(s.xL,{children:"No columns found."}),(0,r.jsx)(s.L$,{className:"p-0",children:c.map(e=>{var t,a;return"filter"===e.id||"products"===e.id||"toAddress"===e.id||"proxy"===e.id||"protocol"===e.id?null:(0,r.jsxs)(s.h_,{onSelect:()=>{e.toggleVisibility(!e.getIsVisible()),0===c.filter(e=>e.getIsVisible()).length&&c.forEach(e=>e.toggleVisibility(!0))},className:"w-full justify-between gap-2 rounded-[12px] px-[8px] py-[4px] not-last:mb-[4px] data-[selected=true]:bg-[#F4F4F5] data-[selected=true]:text-[#18181B]",children:[(0,r.jsx)("span",{className:"text-text-normal truncate text-sm font-normal",children:null!=(a=null==(t=e.columnDef.meta)?void 0:t.label)?a:e.id}),(0,r.jsx)(i.F.CheckIcon,{className:(0,o.cn)("text-success !h-4 !w-4 shrink-0",e.getIsVisible()?"opacity-100":"opacity-0")})]},e.id)})})]})})})]})}},63817:(e,t,a)=>{a.d(t,{G7:()=>i,L$:()=>x,fx:()=>p,h_:()=>u,oI:()=>d,uB:()=>o,xL:()=>c});var r=a(95155);a(12115);var l=a(41808),s=a(86651),n=a(64269);function o(e){let{className:t,...a}=e;return(0,r.jsx)(l.uB,{"data-slot":"command",className:(0,n.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,r.jsx)(s.A,{className:"size-4 shrink-0 opacity-50"}),(0,r.jsx)(l.uB.Input,{"data-slot":"command-input",className:(0,n.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...a})]})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(l.uB.List,{"data-slot":"command-list",onWheel:e=>e.stopPropagation(),className:(0,n.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...a})}function c(e){let{...t}=e;return(0,r.jsx)(l.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function x(e){let{className:t,...a}=e;return(0,r.jsx)(l.uB.Group,{"data-slot":"command-group",className:(0,n.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...a})}function p(e){let{className:t,...a}=e;return(0,r.jsx)(l.uB.Separator,{"data-slot":"command-separator",className:(0,n.cn)("bg-border -mx-1 h-px",t),...a})}function u(e){let{className:t,...a}=e;return(0,r.jsx)(l.uB.Item,{"data-slot":"command-item",className:(0,n.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a})}a(51834)},65142:(e,t,a)=>{a.d(t,{p:()=>s});var r=a(95155);a(12115);var l=a(64269);function s(e){let{className:t,type:a,...s}=e;return(0,r.jsx)("input",{type:a,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...s})}},76444:(e,t,a)=>{a.d(t,{J:()=>n});var r=a(95155);a(12115);var l=a(10489),s=a(64269);function n(e){let{className:t,...a}=e;return(0,r.jsx)(l.b,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...a})}},77186:(e,t,a)=>{a.d(t,{$:()=>i,F:()=>o});var r=a(95155),l=a(12115),s=a(83360),n=a(64269);let o=l.forwardRef((e,t)=>
1{let{className:a,children:l,...o}=e;return(0,r.jsxs)(s.bL,{ref:t,"data-slot":"scroll-area",className:(0,n.cn)("relative overflow-hidden",a),...o,children:[(0,r.jsx)(s.LM,{"data-slot":"scroll-area-viewport",className:"h-full w-full rounded-[inherit]",children:l}),(0,r.jsx)(i,{}),(0,r.jsx)(s.OK,{})]})});o.displayName=s.bL.displayName;let i=l.forwardRef((e,t)=>{let{className:a,orientation:l="vertical",...o}=e;return(0,r.jsx)(s.VM,{ref:t,"data-slot":"scroll-area-scrollbar",orientation:l,className:(0,n.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]",a),...o,children:(0,r.jsx)(s.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})});i.displayName=s.VM.displayName},88566:(e,t,a)=>{a.d(t,{Iw:()=>l,S5:()=>r});let r={1:"Äang hoạt Äá»ng",2:"Kh\xf4ng hoạt Äá»ng",3:"Äang chá» xá» l\xfd",4:"Chá» lấy h\xe0ng",5:"Chá» tạo ÄÆ¡n",6:"Ho\xe0n th\xe0nh",7:"Ä\xe3 há»§y",8:"Hết hạn",9:"Chá» thanh to\xe1n",10:"Tạo thất bại",11:"Cáºp nháºt thất bại",12:"Chá» cáºp nháºt"},l={1:{label:"Kh\xf4ng c\xf3 fingerprint",color:"bg-yellow-100 text-yellow-800"},2:{label:"Fingerprint kh\xf4ng tin cáºy",color:"bg-orange-100 text-orange-800"},3:{label:"Click tr\xf9ng lặp",color:"bg-red-100 text-red-800"},4:{label:"VPN/Proxy",color:"bg-purple-100 text-purple-800"},5:{label:"Bot",color:"bg-gray-100 text-gray-800"},6:{label:"Vượt giá»i hạn",color:"bg-pink-100 text-pink-800"}}}}]);
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.