PageSourceSearch

https://j2proxy.vn/_next/static/chunks/27282.f34b14d252aa06cf.js

js j2proxy.vn collected 2026-10-02 02:17:23 UTC 28,322 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27282],{11647:(e,t,l)=>{l.d(t,{E:()=>d});var s=l(95155);l(12115);var a=l(32467),n=l(83101),r=l(64269);let i=(0,n.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",Cancelled:"bg-[#FFEDDB] text-[#F37A00] border-none",Completed:"bg-[#D8FFD9] text-[#00B507] border-none",AwaitingPayment:"bg-[#E9F0FF] text-[#0053F3] border-none"}},defaultVariants:{variant:"default"}});function d(e){let{className:t,variant:l,asChild:n=!1,...d}=e,o=n?a.DX:"span";return(0,s.jsx)(o,{"data-slot":"badge",className:(0,r.cn)(i({variant:l}),t),...d})}},14568:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(95155),a=l(12115);let n=e=>{let{isSelected:t,onClick:l,label:a}=e;return(0,s.jsx)("button",{onClick:l,className:"flex h-[22px] shrink-0 cursor-pointer flex-row items-center justify-center gap-1.5 rounded-md px-2 py-0.5 transition-all duration-300 sm:h-[26px] sm:gap-2.5 sm:rounded-lg sm:px-3 sm:py-1 ".concat(t?"bg-[rgb(from_var(--sidebar)_calc(r_+_9)_calc(g_+_9)_calc(b_+_10))]":"bg-transparent"),children:(0,s.jsx)("span",{className:"font-mulish text-xs leading-[14px] whitespace-nowrap sm:text-sm sm:leading-[18px] ".concat(t?"font-bold text-white":"font-normal text-[#989898] hover:text-white"),children:a})})};function r(e){let{column:t,options:l}=e,r=null==t?void 0:t.getFilterValue(),i=a.useMemo(()=>new Set(Array.isArray(r)?r:[]),[r]),d=a.useCallback((e,l)=>{t&&t.setFilterValue(l?void 0:[e.value])},[t]),o=a.useCallback(e=>{null==e||e.stopPropagation(),null==t||t.setFilterValue(void 0)},[t]);return(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-2 sm:gap-3",children:[(0,s.jsx)(n,{isSelected:0===i.size,onClick:()=>o(),label:"Tất cả giao dịch"}),null==l?void 0:l.map(e=>{let t=i.has(e.value);return(0,s.jsx)(n,{isSelected:t,onClick:()=>d(e,t),label:e.label},e.value)})]})})}},27282:(e,t,l)=>{l.r(t),l.d(t,{default:()=>E});var s=l(95155),a=l(71105),n=l(97453),r=l(17527),i=l(12115),d=l(90368),o=l(13744);function c(e){var t,l;let{transaction:a,order:n,onBack:r}=e,{date:i,time:c}=(e=>{let t=new Date(e);return{date:t.toLocaleDateString("vi-VN",{day:"2-digit",month:"2-digit",year:"numeric"}),time:t.toLocaleTimeString("vi-VN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}})(a.createdAt),x=a.gateway?({momo:"Momo",zalopay:"ZaloPay",vnpay:"VNPay",payos:"PayOS",banking:"Chuyển khoản",wallet:"Số dư v\xed"})[a.gateway]||a.gateway:"Số dư v\xed",m={1:"Nạp tiền",2:"Mua Proxy",4:"Bonus",5:"Ho\xe0n tiền"}[a.type]||"Kh\xf4ng x\xe1c định";return(0,s.jsxs)("div",{className:"flex w-full max-w-[1543px] flex-col gap-6 p-4 sm:p-0",children:[(0,s.jsx)("div",{className:"flex w-full flex-col items-start gap-2.5",children:(0,s.jsxs)("div",{className:"flex w-full flex-row items-center gap-2.5 rounded-lg p-2 sm:w-auto sm:px-4 sm:py-2",children:[(0,s.jsx)(d.A,{className:"text-text-normal-template-4 h-6 w-6 flex-shrink-0 cursor-pointer",onClick:r}),(0,s.jsx)("h1",{className:"text-lg leading-[125%] font-bold text-[#000E43] sm:text-xl md:text-[26px]",children:"Chi tiết giao dịch"}),(0,s.jsx)("span",{className:"text-lg leading-[125%] font-bold text-[#000E43] sm:text-xl md:text-[26px]",children:a.code||"N/A"})]})}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-start justify-center gap-8 rounded-2xl bg-white p-4 sm:gap-12 sm:p-6 md:px-8 md:py-6",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,s.jsx)("h2",{className:"text-text-normal-template-4 text-lg leading-[145%] font-bold sm:text-xl md:text-2xl",children:m}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-start gap-3 sm:gap-4",children:[(0,s.jsxs)("div",{className:"flex w-full flex-wrap items-stretch justify-start gap-3 sm:gap-6",children:[(0,s.jsxs)("div",{className:"flex h-[45px] min-w-[250px] flex-1 flex-row items-center justify-between gap-2 rounded-lg border border-[#636364] px-3 sm:gap-3 sm:px-4",children:[(0,s.jsx)("span",{className:"text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-base",children:"Số tiền"}),(0,s.jsxs)("span",{className:"text-right text-sm leading-[130%] font-bold whitespace-nowrap text-[#636364] sm:text-base",children:[o.A.formatNum
1(a.amount),"đ"]})]}),(0,s.jsxs)("div",{className:"flex h-[45px] min-w-[250px] flex-1 flex-row items-center justify-between gap-2 overflow-hidden rounded-lg border border-[#636364] px-3 sm:gap-3 sm:px-4",children:[(0,s.jsx)("span",{className:"flex-shrink-0 text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-base",children:"Nội dung"}),(0,s.jsxs)("div",{className:"group relative min-w-0 flex-1",children:[(0,s.jsx)("span",{className:"block cursor-pointer truncate text-right text-sm leading-[130%] font-bold text-[#636364] sm:text-base",children:a.description||a.content||"Thanh to\xe1n đơn h\xe0ng #"+(a.orderCode||a.code)}),(0,s.jsxs)("div",{className:"invisible absolute right-0 bottom-full z-50 mb-2 rounded-lg border border-[#E8E8E9] bg-white px-3 py-2 whitespace-nowrap shadow-lg group-hover:visible",children:[(0,s.jsx)("span",{className:"text-sm font-normal text-[#636364]",children:a.description||a.content||"Thanh to\xe1n đơn h\xe0ng #"+(a.orderCode||a.code)}),(0,s.jsx)("div",{className:"absolute top-full right-4 -mt-1 border-8 border-transparent border-t-white"})]})]})]}),(0,s.jsxs)("div",{className:"flex h-[45px] min-w-[250px] flex-1 flex-row items-center justify-between gap-2 rounded-lg border border-[#636364] px-3 sm:gap-3 sm:px-4",children:[(0,s.jsx)("span",{className:"text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-base",children:"Phương thức"}),(0,s.jsx)("span",{className:"text-right text-sm leading-[130%] font-bold whitespace-nowrap text-[#636364] sm:text-base",children:x})]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-wrap items-stretch justify-start gap-3 sm:gap-6",children:[(0,s.jsxs)("div",{className:"flex h-[45px] min-w-[250px] flex-1 flex-row items-center justify-between gap-2 rounded-lg border border-[#636364] px-3 sm:gap-3 sm:px-4",children:[(0,s.jsx)("span",{className:"text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-base",children:"Loại giao dịch"}),(0,s.jsx)("span",{className:"text-right text-sm leading-[130%] font-bold whitespace-nowrap text-[#636364] sm:text-base",children:1===a.type?"NẠP TIỀN":"MUA H\xc0NG"})]}),(0,s.jsxs)("div",{className:"flex h-[45px] min-w-[250px] flex-1 flex-row items-center justify-between gap-2 rounded-lg border border-[#636364] px-3 sm:gap-3 sm:px-4",children:[(0,s.jsx)("span",{className:"text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-base",children:"Thời gian"}),(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2 text-right",children:[(0,s.jsx)("span",{className:"text-sm leading-[130%] font-bold whitespace-nowrap text-[#636364] sm:text-base",children:i}),(0,s.jsx)("span",{className:"text-sm leading-[130%] font-bold whitespace-nowrap text-[#636364] sm:text-base",children:c})]})]}),(0,s.jsxs)("div",{className:"flex h-[45px] min-w-[250px] flex-1 flex-row items-center justify-between gap-2 rounded-lg border border-[#636364] px-3 sm:gap-3 sm:px-4",children:[(0,s.jsx)("span",{className:"text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-base",children:"Trạng th\xe1i"}),(0,s.jsx)("span",{className:"text-right text-sm leading-[130%] font-bold whitespace-nowrap sm:text-base ".concat(6===Number(null==(t=a.status)?void 0:t.id)?"text-[#239B00]":3===Number(null==(l=a.status)?void 0:l.id)?"text-[#E9A106]":"text-[#E2372A]"),children:(()=>{var e,t,l;let s=Number(null==(e=a.status)?void 0:e.id);if(6===s)return"Đ\xe3 ho\xe0n th\xe0nh";if(3===s)return"Chờ xử l\xfd";if(7===s||8===s)return"Đ\xe3 hủy";let n=null==(l=a.status)||null==(t=l.name)?void 0:t.toLowerCase();return"completed"===n||"success"===n?"Đ\xe3 ho\xe0n th\xe0nh":"pending"===n||"processing"===n?"Chờ xử l\xfd":"Thất bại"})()})]})]})]})]}),a.orderId&&(0,s.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,s.jsx)("h2",{className:"text-text-normal-template-4 text-lg leading-[145%] font-bold sm:text-xl md:text-2xl",children:"Chi tiết đơn h\xe0ng"}),(0,s.jsx)("div",{className:"border-border-template-4 w-full overflow-x-auto rounded-lg border",children:(0,s.jsxs)("div",{className:"min-w-[800px]",children:[(0,s.jsxs)("div",{className:"bg-sidebar border-border-template-4 flex w-full flex-row items-center justify-between gap-2 border-b px-4 py-4 sm:px-8",children:[(0,s.jsx)("span",{className:"text-sidebar-foreground flex-1 text-center text-sm leading-[130%] font-bold whitespace-nowrap md:text-base",children:"Họ t\xean"}),(0,s.jsx)("span",{className:"text-sidebar-foreground flex-1 text-center text-sm leading-[130%] font-bold whitespace-nowrap md:text-base",children:"Số điện thoại"}),(0,s.jsx)("span",{className:"text-sidebar-foreground flex-1 text-center text-sm leading-[130%] font-bold whitespace-nowrap md:text-base",children:"Ng\xe0y sử dụng"}),(0,s.jsx)("span",{className:"text-sidebar-foreground flex-1 text-center text-sm leading-[130%] font-bold whitespace-nowrap md:text-base",children:"Gi\xe1"}),(0,s.jsx)("span",{className:"text-sidebar-foreground flex-1 text-center text-sm leading-[130%] font-bold whitespace-nowrap md:text-base",children:"Nh\xe0 cung cấp"}),(0,s.jsx)("span",{className:"text-sidebar-foreground flex-1 text-center text-sm leading-[130%] font-bold whitespace-nowrap md:text-base",children:"Tổng"})]}),n&&n.products&&n.products.length>0?n.products.map((e,t)=>{var l,a,r,i,d;return(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between gap-2 px-4 py-3 sm:px-8",children:[(0,s.jsxs)("span",{className:"flex-1 text-center text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] md:text-base",children:[(null==(l=n.user)?void 0:l.firstName)||""," ",(null==(a=n.user)?void 0:a.lastName)||""]}),(0,s.jsx)("span",{className:"flex-1 text-center text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] md:text-base",children:(null==(r=n.user)?void 0:r.phone)||"N/A"}),(0,s.jsx)("span",{className:"flex-1 text-center text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] md:text-base",children:e.dayOfUse||1}),(0,s.jsxs)("span",{className:"flex-1 text-center text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] md:text-base",children:[o.A.formatNum
1((null==(i=e.product)?void 0:i.price)||0),"đ"]}),(0,s.jsx)("span",{className:"flex-1 text-center text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] md:text-base",children:(null==(d=e.product)?void 0:d.provider)||e.provider||"N/A"}),(0,s.jsxs)("span",{className:"flex-1 text-center text-sm leading-[130%] font-normal whitespace-nowrap text-[#636364] md:text-base",children:[o.A.formatNum(n.amount||0),"đ"]})]},t)}):(0,s.jsx)("div",{className:"flex w-full items-center justify-center py-6",children:(0,s.jsx)("span",{className:"text-sm text-[#9E9E9F]",children:"Đang tải dữ liệu..."})})]})})]})]})]})}var x=l(96199),m=l(85400),u=l(84162),p=l(11647),h=l(88566),f=l(26467),g=l(70682),b=l(26333),w=l(34513),v=l(32533);let j=e=>{var t,l,a,n,r,d;let{row:c}=e,[x,m]=i.useState(!1),u=c.original,p=null==u?void 0:u.orderId,{order:h,isLoading:f}=(0,v.X)(p,!!(x&&p)),g=(null==u?void 0:u.type)===1||(null==u?void 0:u.type)===4?null==u?void 0:u.description:(null==u?void 0:u.type)===5?function(e){if(!e)return"Ho\xe0n tiền";let t=e.match(/proxy #(\d+) - (partial|full)/i);if(t)return"Ho\xe0n proxy #".concat(t[1]," - ").concat(t[2]);let l=e.match(/đơn hàng #([a-f0-9-]+) - (.+)/i);if(l){let e=l[1].substring(0,12);return"Ho\xe0n #".concat(e," - ").concat(l[2])}return e}((null==u?void 0:u.description)||""):p?(null==u?void 0:u.orderCode)?"#".concat(u.orderCode):(null==u?void 0:u.id)?"#".concat(u.id):"Xem chi tiết":null==u?void 0:u.description,j=(()=>{let e=null==u?void 0:u.type;return"PAY2S"===(null==u?void 0:u.gateway)?w.F.CardIcon:4===e?w.F.GiftIcon:5===e?w.F.RefundIcon:w.F.CartIcon})();return(0,s.jsxs)(b.AM,{open:x,onOpenChange:m,children:[(0,s.jsx)(b.Wv,{asChild:!0,children:(0,s.jsxs)("div",{className:"flex cursor-pointer flex-row items-center justify-start gap-2 overflow-hidden text-ellipsis whitespace-nowrap",children:[(0,s.jsxs)("div",{className:"relative flex h-8 w-8 shrink-0 items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 rounded-[8px] bg-[rgb(from_var(--sidebar)_calc(r+23)_calc(g+22)_calc(b+49))]"}),(0,s.jsx)(j,{className:"text-primary relative z-10 !h-5 !w-5"})]}),(0,s.jsxs)("div",{className:"text-text-normal flex w-full flex-col text-sm font-semibold hover:cursor-pointer",children:[(0,s.jsx)("span",{className:"inline-block text-[13px] font-bold text-[#F5F5F6]",children:(null==u?void 0:u.type)==1?"Nạp tiền":(null==u?void 0:u.type)==2?"Mua h\xe0ng":(null==u?void 0:u.type)==4?"Bonus":(null==u?void 0:u.type)==5?"Ho\xe0n tiền":""}),(0,s.jsx)("div",{className:"flex items-center justify-start py-0.5",children:(0,s.jsx)("span",{className:"text-[12px] font-normal text-[#F5F5F6]",children:g})})]})]})}),(0,s.jsxs)(b.hl,{side:"top",align:"center",sideOffset:12,className:"bg-primary relative w-[168px] rounded-lg border-none p-2 drop-shadow-[0px_4px_8px_rgba(0,0,0,0.1)]",children:[(0,s.jsx)("div",{className:"absolute -bottom-2 left-1/2 -translate-x-1/2",children:(0,s.jsx)("div",{className:"border-primary h-0 w-0 border-t-8 border-r-8 border-l-8 border-r-transparent border-l-transparent"})}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[f&&(0,s.jsxs)("div",{className:"flex w-full items-center justify-center py-4",children:[(0,s.jsx)("span",{className:"mr-2 inline-block h-3 w-3 animate-spin rounded-full border-2 border-white/30 border-t-white"}),(0,s.jsx)("span",{className:"font-mulish text-xs text-white",children:"Đang tải..."})]}),!p&&!f&&(0,s.jsx)("div",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]",children:(null==u?void 0:u.description)||"Kh\xf4ng c\xf3 m\xf4 tả"}),h&&(null==(t=h.products)?void 0:t[0])&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex w-full flex-row items-center gap-4",children:[(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-normal whitespace-nowrap text-[#F5F5F6]",children:"T\xe0i khoản"}),(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-bold text-white",children:(null==(l=h.user)?void 0:l.phone)||"N/A"})]}),(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]",children:"Đơn gi\xe1"}),(0,s.jsxs)("span",{className:"font-mulish text-xs leading-[15px] font-bold text-white",children:[o.A.formatNum
1((null==(a=h.products[0].product)?void 0:a.price)||0),"đ"]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]",children:"Số lượng"}),(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-bold text-white",children:h.products[0].quantity||1})]}),(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]",children:"Ng\xe0y sử dụng"}),(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-bold text-white",children:h.products[0].dayOfUse||1})]}),(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]",children:"Tổng tiền"}),(0,s.jsxs)("span",{className:"font-mulish text-xs leading-[15px] font-bold text-white",children:[o.A.formatNum(h.amount),"đ"]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]",children:"Nh\xe0 mạng"}),(null==(r=h.products[0].product)||null==(n=r.provider)?void 0:n.toUpperCase())==="HOMEPROXY"?(0,s.jsx)("div",{className:"bg-sidebar rounded-full",children:(0,s.jsx)(w.F.Providers3Icon,{className:"size-12 shrink-0 sm:size-16"})}):(0,s.jsx)("span",{className:"font-mulish text-xs leading-[15px] font-bold text-white",children:(null==(d=h.products[0].product)?void 0:d.provider)||"N/A"})]})]}),!f&&p&&!h&&(0,s.jsx)("div",{className:"font-mulish text-xs leading-[15px] font-normal text-[#F5F5F6]/70",children:"Kh\xf4ng t\xecm thấy th\xf4ng tin"})]})]})]})},N=[{id:"type",accessorKey:"type",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-start text-[13px] font-semibold whitespace-nowrap text-[#989898]",children:"Loại giao dịch"}),cell:e=>{let{cell:t}=e;return(0,s.jsx)("div",{className:"flex w-full items-center justify-start",children:(0,s.jsx)(j,{row:t.row})})},size:170,minSize:170,maxSize:170,enableColumnFilter:!1,meta:{label:"Loại giao dịch"}},{id:"code",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[13px] font-semibold whitespace-nowrap text-[#989898]",children:"M\xe3 giao dịch"}),accessorKey:"code",meta:{label:"M\xe3 giao dịch",variant:"text",placeholder:"Nhập m\xe3 giao dịch"},enableColumnFilter:!0,size:110,cell:e=>{let{cell:t}=e;return(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[13px] font-normal text-[#F5F5F6]",children:t.getValue()})}},{accessorKey:"amount",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[13px] font-semibold whitespace-nowrap text-[#989898]",children:"Số tiền"}),enableColumnFilter:!1,meta:{label:"Số tiền"},cell:e=>{let{cell:t}=e;return(0,s.jsx)("div",{className:"flex w-full flex-col items-center justify-center",children:(0,s.jsx)("span",{className:"block text-[13px] font-normal text-[#F5F5F6]",children:o.A.formatNum2(t.getValue())+" đ"})})},minSize:150},{id:"status.id",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[13px] font-semibold whitespace-nowrap text-[#989898]",children:"Trạng th\xe1i"}),accessorKey:"status",size:100,cell:e=>{let{cell:t}=e,l=t.getValue();return(0,s.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,s.jsx)(p.E,{variant:null==l?void 0:l.name,className:"gap-2.5 rounded-[100px] border-none !bg-transparent px-3 py-1",children:(0,s.jsx)("div",{className:"flex w-full items-center gap-2",children:(0,s.jsx)("span",{className:"block rounded-full px-2 py-[2px] text-[13px] font-normal ".concat(6===Number(null==l?void 0:l.id)?"bg-[#00C600]/20 text-[#00C600]":3===Number(null==l?void 0:l.id)?"bg-[#E75800]/20 text-[#E75800]":"text-[#FF0000]"),children:h.S5[Number(null==l?void 0:l.id)]})})})})},meta:{label:"Trạng th\xe1i",variant:"select",options:[{value:"3",label:"Đang chờ xử l\xfd"},{value:"6",label:"Ho\xe0n th\xe0nh"},{value:"7",label:"Đ\xe3 hủy"}]},enableColumnFilter:!0},{accessorKey:"createdAt",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[13px] font-semibold whitespace-nowrap text-[#989898]",children:"Ng\xe0y tạo"}),enableColumnFilter:!1,meta:{label:"Ng\xe0y tạo"},size:100,cell:e=>{let{cell:t}=e,l=t.getValue(),a=(0,g.L_)((0,f.H)(l),"UTC"),n=(0,g.GP)(a,"dd/MM/yyyy HH:mm");return(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[13px] font-normal whitespace-nowrap text-[#989898]",children:n})}}];var y=l(57207),_=l(14568);function F(e){let{data:t,totalItems:l}=e,{data:a}=(0,x.wV)(),[d]=(0,n.ZA)("limit",n.GJ.withDefault(50)),[p,h]=(0,n.ZA)("detail",n.tU),f=Math.ceil(l/d),{table:g}=(0,r.u)({data:t,columns:N,pageCount:f,shallow:!1,debounceMs:500,initialState:{columnVisibility:{id:!0}}}),b=(0,i.useCallback)(e=>{var t;return"s"===e.columnDef.id||(null==(t=e.columnDef.meta)?void 0:t.variant)==="text"},[]),w=(0,i.useMemo)(()=>g.getAllColumns().filter(e=>e.getCanFilter()),[g]).filter(e=>!b(e)),v=(0,i.useMemo)(()=>t.find(e=>
1e.code===p),[t,p]),j=null==a?void 0:a.accessToken,F=!!((null==v?void 0:v.orderId)&&j),{data:C}=(0,m.Ay)(F?["order-by-id",null==v?void 0:v.orderId]:null,async()=>await o.A.fetchApi("/api/v1/orders/".concat(encodeURIComponent(null==v?void 0:v.orderId)),j),{revalidateOnFocus:!1});return v?(0,s.jsx)(c,{transaction:v,order:C,onBack:()=>{h(null)}}):(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-3 sm:gap-4",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-start justify-between gap-3 sm:gap-4",children:[(0,s.jsx)("div",{className:"w-full sm:flex-1",children:w.map(e=>{var t;let l=e.columnDef.meta;return(0,s.jsx)(_.A,{column:e,options:null!=(t=null==l?void 0:l.options)?t:[],multiple:(null==l?void 0:l.variant)==="multiSelect"},e.id)})}),(0,s.jsx)("div",{className:"w-full flex-1",children:(0,s.jsx)(y.A,{table:g})})]}),(0,s.jsx)(u.b,{table:g,totalItems:l,showPagination:!0})]})}var C=l(95950),A=l(45288),k=l(52164);let S=[{accessorKey:"code",header:"M\xe3 giao dịch"}];function E(e){let{params:t}=e,{transactions:l,total:n,isLoading:r,status:i}=(0,k.x)(t);return(0,s.jsx)(a.A,{scrollable:!0,openMarqueeTop:!0,className:"over-table",children:(0,s.jsxs)("div",{className:"flex w-full flex-1 flex-col gap-6",children:[(0,s.jsx)(A.D,{title:"Lịch sử giao dịch"}),r||"loading"===i?(0,s.jsx)(C.A,{}):(0,s.jsx)(F,{columns:S,data:l,totalItems:n})]})})}},32533:(e,t,l)=>{l.d(t,{X:()=>r});var s=l(13744),a=l(96199),n=l(85400);function r(e,t){let{data:l,status:r}=(0,a.wV)(),{data:i,isLoading:d}=(0,n.Ay)("authenticated"===r&&t&&e?["/api/v1/orders",e]:null,e=>{let[t,a]=e;return s.A.fetchApi("".concat(t,"/").concat(encodeURIComponent(a)),null==l?void 0:l.accessToken).then(e=>null!=e?e:null).catch(()=>null)},{revalidateOnFocus:!1});return{order:null!=i?i:null,isLoading:null!=d&&d}}},45288:(e,t,l)=>{l.d(t,{D:()=>a});var s=l(95155);let a=e=>{let{title:t,description:l}=e;return(0,s.jsx)("div",{className:"mx-auto flex w-full items-center justify-between",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-[16px] leading-[125%] font-bold text-white",children:t}),l&&(0,s.jsx)("p",{className:"text-muted-foreground mt-3 text-sm",children:l})]})})}},52164:(e,t,l)=>{l.d(t,{x:()=>r});var s=l(13744),a=l(96199),n=l(85400);function r(e,t){var l,r,i;let{data:d,status:o}=(0,a.wV)(),{data:c,isLoading:x}=(0,n.Ay)("authenticated"===o?["/api/v1/transactions",e]:null,e=>{let[t,l]=e;return s.A.fetchApi(t+l,null==d?void 0:d.accessToken).then(e=>null!=e?e:{}).catch(()=>({}))},{suspense:null!=(l=null==t?void 0:t.suspense)&&l,revalidateOnFocus:!1});return{transactions:null!=(r=null==c?void 0:c.data)?r:[],total:null!=(i=null==c?void 0:c.total)?i:0,isLoading:x,status:o}}},88566:(e,t,l)=>{l.d(t,{Iw:()=>a,S5:()=>s,Wx:()=>n});let s={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"},a={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"}},n={PENDING:3,SUCCESS:6,FAILED:10}},90368:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(71847).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},95950:(e,t,l)=>{l.d(t,{A:()=>n});var s=l(95155),a=l(12115);function n(){let e=[{width:"w-[60px]"},{width:"w-[60px]"},{width:"w-[60px]"},{width:"w-[60px]"},{width:"w-[100px]"},{width:"w-[100px]"},{width:"w-[70px]"},{width:"w-[190px]"}];return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-4 sm:gap-6",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between gap-6",children:[(0,s.jsxs)("div",{className:"relative flex h-10 w-full flex-1 flex-row items-start justify-start gap-6",children:[(0,s.jsx)("div",{className:"h-10 w-[140px] animate-pulse rounded-md bg-gray-400"}),(0,s.jsx)("div",{className:"flex h-10 w-full animate-pulse items-center justify-end rounded-md bg-gray-400 pr-4",children:(0,s.jsx)("div",{className:"h-7 w-[100px] rounded-lg bg-white"})}),(0,s.jsx)("div",{className:"h-10 w-14 animate-pulse rounded-full bg-gray-400"})]}),(0,s.jsxs)("div",{className:"flex w-full flex-1 flex-wrap items-center justify-end gap-4",children:[(0,s.jsx)("div",{className:"h-10 w-[100px] animate-pulse rounded-lg bg-gray-400"}),(0,s.jsx)("div",{className:"h-10 w-[100px] animate-pulse rounded-lg bg-gray-400"}),(0,s.jsx)("div",{className:"h-10 w-[90px] animate-pulse rounded-lg bg-gray-400"}),(0,s.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-lg bg-gray-400"}),(0,s.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-lg bg-gray-400"})]})]}),(0,s.jsx)("div",{className:"mx-auto flex w-full flex-col rounded-lg bg-gray-300 p-4",children:(0,s.jsx)("div",{className:"relative flex overflow-auto",style:{maxHeight:"490px"},children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{className:"sticky top-0 z-10 flex h-[56px] w-full items-center overflow-hidden rounded-lg bg-gray-400 px-6",children:(0,s.jsx)("div",{className:"flex h-full w-full items-center",children:e.map((t,l)=>(0,s.jsx)("div",{className:"flex items-center justify-center ".concat(t.width," ").concat(l===e.length-1?"flex-1":""),children:0===l?(0,s.jsx)("div",{className:"h-5 w-5 animate-pulse rounded bg-[rgb(from_var(--sidebar)_calc(r_+_50)_calc(g_+_50)_calc(b_+_50))]"}):(0,s.jsx)("div",{className:"h-5 animate-pulse rounded bg-[rgb(from_var(--sidebar)_calc(r_+_50)_calc(g_+_50)_calc(b_+_50))]",style:{width:"70%"}})},l))})}),(0,s.jsx)("div",{className:"flex w-full flex-col",children:[void 0,void 0,void 0,void 0,void 0].map((t,l)=>{let n=l%2==0;return(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)("div",{className:"h-1"}),(0,s.jsx)("div",{className:"flex h-[72px] w-full items-center rounded-lg px-6 ".concat(n?"bg-transparent":"bg-gray-400"),children:e.map((t,l)=>(0,s.jsx)("div",{className:"flex items-center justify-center ".concat(t.width," ").concat(l===e.length-1?"flex-1":""),children:0===l?(0,s.jsx)("div",{className:"h-5 w-5 animate-pulse rounded bg-[rgb(from_var(--sidebar)_calc(r_+_40)_calc(g_+_40)_calc(b_+_40))]"}):4===l?(0,s.jsx)("div",{className:"h-5 w-[180px] animate-pulse rounded bg-[rgb(from_var(--sidebar)_calc(r_+_40)_calc(g_+_40)_calc(b_+_40))]"}):(0,s.jsx)("div",{className:"h-5 animate-pulse rounded bg-[rgb(from_var(--sidebar)_calc(r_+_40)_calc(g_+_40)_calc(b_+_40))]",style:{width:"60%"}})},l))})]},l)})})]})})}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-4 roun
1ded-lg px-6 py-2",children:[(0,s.jsx)("div",{className:"h-6 w-6 animate-pulse rounded-full bg-gray-400"}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)("div",{className:"h-6 w-6 animate-pulse rounded-full bg-gray-400"}),(0,s.jsx)("div",{className:"h-6 w-6 animate-pulse rounded-full bg-gray-400"}),(0,s.jsx)("div",{className:"h-6 w-6 animate-pulse rounded-full bg-gray-400"})]}),(0,s.jsx)("div",{className:"h-6 w-6 animate-pulse rounded-full bg-gray-400"})]})]})}}}]);

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.