1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18928],{18928:(e,t,l)=>{l.r(t),l.d(t,{default:()=>M});var s=l(95155),a=l(16899),n=l(97453),i=l(17527),r=l(12115),d=l(90368),o=l(13744);function c(e){var t,l;let{transaction:a,order:n,onBack:i}=e,{date:r,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-[var(--template-7-content-max-width,1136px)] 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:i}),(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(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:r}),(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 t
1iế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,i,r,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==(i=n.user)?void 0:i.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((null==(r=e.product)?void 0:r.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),h=l(81087),p=l(11647),u=l(88566),f=l(26467),g=l(70682),w=l(22460),b=l(48636),v=l(32533);let j=e=>{var t,l,a,n,i,d,c,x,m;let{row:h}=e,[p,u]=r.useState(!1),f=h.original,g=null==f?void 0:f.orderId,{order:j,isLoading:N}=(0,v.X)(g,!!(p&&g)),y=(null==f?void 0:f.type)===1||(null==f?void 0:f.type)===4?null==f?void 0:f.description:(null==f?void 0:f.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==f?void 0:f.description)||""):g?(null==f?void 0:f.orderCode)?"#".concat(f.orderCode):(null==f?void 0:f.id)?"#".concat(f.id):"Xem chi tiết":null==f?void 0:f.description,A=(()=>{let e=null==f?void 0:f.type;return"PAY2S"===(null==f?void 0:f.gateway)?b.F.CashIcon:4===e?b.F.GiftIcon:5===e?b.F.RepayIcon:2===e?b.F.CardTransactionIcon:b.F.ShoppingCardIcon})();return(0,s.jsxs)(w.lG,{open:p,onOpenChange:u,children:[(0,s.jsx)(w.zM,{asChild:!0,children:(0,s.jsxs)("div",{className:"flex flex-row items-center justify-start gap-3 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-full",style:{background:"linear-gradient(\n 268.15deg,\n rgb(from var(--primary-hover) calc(r + 0) calc(g - 17) calc(b + 0)) 1.4%,\n rgb(from var(--primary-hover) calc(r + 0) calc(g + 16) calc(b + 0)) 41%,\n rgb(from var(--primary-hover) calc(r + 0) calc(g + 0) calc(b + 0)) 98.32%\n )",opacity:.2}}),(0,s.jsx)(A,{className:"text-primary-hover 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-sm font-bold text-white",children:(null==f?void 0:f.type)==1?"Nạp tiá»n":(null==f?void 0:f.type)==2?"Mua h\xe0ng":(null==f?void 0:f.type)==4?"Bonus":(null==f?void 0:f.type)==5?"Ho\xe0n tiá»n":""}),(0,s.jsx)("div",{className:"mt-1 flex items-center justify-start",children:(0,s.jsx)("span",{className:"w-full max-w-[165px] truncate text-xs font-normal text-white",children:y})})]})]})}),(0,s.jsx)(w.Cf,{showCloseButton:!1,headerClassName:"!hidden !h-0 !min-h-0 !overflow-hidden !p-0 !gap-0",className:"pointer-events-none !inset-0 !top-0 !left-0 !flex !h-dvh !w-full !max-w-none !translate-x-0 !translate-y-0 items-center justify-center overflow-visible border-none bg-transparent p-0 shadow-none sm:!max-w-none [&_[data-slot=dialog-header]]:!hidden",children:(0,s.jsxs)("div",{className:"pointer-events-auto relative h-[403px] max-h-[calc(100dvh-48px)] w-[281px]",children:[(0,s.jsx)("button",{type:"button",onClick:()=>u(!1),className:"absolute -top-4 -right-5 z-20 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full bg-black/50 transition-colors hover:bg-black/70",children:(0,s.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 1L11 11M11 1L1 11",stroke:"#F5F5F6",strokeWidth:"2",strokeLinecap:"round"})})}),(0,s.jsxs)("div",{className:"relative flex h-full w-full flex-col items-center gap-4 overflow-hidden rounded-[16px] p-4",style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), #222433"},children:[(0,s.jsx)("button",{className:"flex h-[33px] w-[151px] shrink-0 cursor-pointer items-center justify-center gap-2 rounded-full border-none px-4 py-2 text-sm leading-[17px] font-semibold text-white transition-all hover:opacity-90 hover:shadow-lg active:scale-95",style:{background:"linear-gradient(268.15deg, #FF6F00 1.4%, #FF9100 41%, #FF8000 98.32%)"}
1,children:"Chi tiết mua h\xe0ng"}),(0,s.jsxs)("div",{className:"flex min-h-0 w-full flex-1 flex-col",children:[(0,s.jsx)("div",{className:"w-full shrink-0 border-b border-[#DBDBDC] py-3",children:(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"M\xe3 ÄÆ¡n h\xe0ng"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:(null==f?void 0:f.orderCode)||(null==f?void 0:f.id)||"N/A"})]})}),N&&(0,s.jsxs)("div",{className:"flex flex-1 items-center justify-center py-6",children:[(0,s.jsx)("span",{className:"mr-2 inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white"}),(0,s.jsx)("span",{className:"text-sm text-white",children:"Äang tải..."})]}),!g&&(0,s.jsx)("div",{className:"flex-1 py-2 text-sm leading-[17px] font-normal text-white",children:(null==f?void 0:f.description)||"Kh\xf4ng c\xf3 m\xf4 tả"}),j&&(null==(t=j.products)?void 0:t[0])&&(0,s.jsxs)("div",{className:"flex min-h-0 w-full flex-1 flex-col justify-between py-2",children:[(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"T\xe0i khoản"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-normal text-white",children:(null==(l=j.user)?void 0:l.phone)||"N/A"})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"ÄÆ¡n gi\xe1"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:o.A.formatNum((null==(a=j.products[0].product)?void 0:a.price)||0)})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Sá» lượng"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:j.products[0].quantity||1})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Tá»ng tiá»n"}),(0,s.jsxs)("span",{className:"text-sm leading-[17px] font-normal text-white",children:[o.A.formatNum(j.amount)," Ä"]})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Ng\xe0y sá» dụng"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:j.products[0].dayOfUse||1})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Trạng th\xe1i"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-normal",style:{color:6===Number(null==(n=j.status)?void 0:n.id)?"#00FF11":3===Number(null==(i=j.status)?void 0:i.id)?"#E67F00":"#FF1212"},children:6===Number(null==(d=j.status)?void 0:d.id)?"Ho\xe0n th\xe0nh":3===Number(null==(c=j.status)?void 0:c.id)?"Äang xá» l\xfd":"Lá»i"})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Nh\xe0 mạng"}),(0,s.jsx)("span",{className:"text-xs leading-[15px] font-normal text-white",children:(null==(m=j.products[0].product)||null==(x=m.provider)?void 0:x.toUpperCase())||"N/A"})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Ng\xe0y tạo"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-normal text-white",children:j.createdAt?new Date(j.createdAt).toLocaleDateString("vi-VN")+" "+new Date(j.createdAt).toLocaleTimeString("vi-VN",{hour:"2-digit",minute:"2-digit"}):"N/A"})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm leading-[17px] font-semibold text-white",children:"Ng\xe0y hết hạn"}),(0,s.jsx)("span",{className:"text-sm leading-[17px] font-normal text-white",children:j.createdAt&&j.products[0].dayOfUse?(()=>{let e=new Date(j.createdAt);return e.setDate(e.getDate()+(j.products[0].dayOfUse||1)),e.toLocaleDateString("vi-VN")+" "+e.toLocaleTimeString("vi-VN",{hour:"2-digit",minute:"2-digit"})})():"N/A"})]})]}),!N&&g&&!j&&(0,s.jsx)("div",{className:"text-sm leading-[17px] font-normal text-white/70",children:"Kh\xf4ng t\xecm thấy th\xf4ng tin ÄÆ¡n h\xe0ng"})]})]})]})})]})},N=[{id:"code",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-start text-[14px] font-semibold text-white",children:"M\xe3 gi
1ao dá»ch"}),accessorKey:"code",meta:{label:"M\xe3 giao dá»ch",variant:"text",placeholder:"Nháºp m\xe3 giao dá»ch"},enableColumnFilter:!0,size:150,cell:e=>{let{cell:t}=e;return(0,s.jsx)("div",{className:"flex w-full items-center justify-start text-sm font-normal text-white",children:t.getValue()})}},{id:"type",accessorKey:"type",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-start text-[14px] font-semibold text-white",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:200,meta:{label:"Loại giao dá»ch"}},{accessorKey:"amount",header:()=>(0,s.jsx)("div",{className:"flex w-full items-center justify-center text-[14px] font-semibold text-white",children:"Sá» tiá»n"}),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-sm font-normal text-white",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-[14px] font-semibold whitespace-nowrap text-white",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 text-xs font-semibold ".concat(6===Number(null==l?void 0:l.id)?"text-[#00FF11]":3===Number(null==l?void 0:l.id)?"text-[#E67F00]":"text-[#FF1212]"),children:u.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-[16px] leading-[22px] font-bold tracking-[0] text-white",children:"Ng\xe0y tạo"}),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-sm font-normal whitespace-nowrap text-white",children:n})}}];var y=l(17569),A=l(43426),C=l(35759);function k(e){let{data:t,totalItems:l}=e,{data:a}=(0,x.wV)(),[d]=(0,n.ZA)("limit",n.GJ.withDefault(50)),[p,u]=(0,n.ZA)("detail",n.tU),f=Math.ceil(l/d),{table:g}=(0,i.u)({data:t,columns:N,pageCount:f,shallow:!1,debounceMs:500,initialState:{columnVisibility:{id:!0}}}),w=(0,r.useCallback)(e=>{var t;return"s"===e.columnDef.id||(null==(t=e.columnDef.meta)?void 0:t.variant)==="text"},[]),b=(0,r.useMemo)(()=>g.getAllColumns().filter(e=>e.getCanFilter()),[g]).filter(e=>!w(e)),v=(0,r.useMemo)(()=>t.find(e=>e.code===p),[t,p]),j=null==a?void 0:a.accessToken,k=!!((null==v?void 0:v.orderId)&&j),{data:F}=(0,m.Ay)(k?["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:F,onBack:()=>{u(null)}}):(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-start justify-between gap-4",children:[(0,s.jsx)("div",{className:"w-full sm:flex-1",children:b.map(e=>{var t;let l=e.columnDef.meta;return(0,s.jsx)(A.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",children:(0,s.jsx)(y.A,{table:g,inlineActions:!0,className:"sm:max-w-[420px] lg:max-w-[460px]",children:(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(C.i,{table:g,icon:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"!h-5 !w-5 sm:!h-6 sm:!w-6",children:(0,s.jsx)("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"var(--primary)"})}),title:"Xem th\xeam"})})})})]}),(0,s.jsx)(h.b,{table:g,totalItems:l,showPagination:!0}
1)]})}var F=l(88140),L=l(9474),S=l(52164);let T=[{accessorKey:"code",header:"M\xe3 giao dá»ch"}];function M(e){let{params:t}=e,{transactions:l,total:n,isLoading:i,status:r}=(0,S.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-4",children:[(0,s.jsx)(L.D,{title:"Lá»ch sá» giao dá»ch"}),i||"loading"===r?(0,s.jsx)(F.A,{}):(0,s.jsx)(k,{columns:T,data:l,totalItems:n})]})})}},32533:(e,t,l)=>{l.d(t,{X:()=>i});var s=l(13744),a=l(96199),n=l(85400);function i(e,t){let{data:l,status:i}=(0,a.wV)(),{data:r,isLoading:d}=(0,n.Ay)("authenticated"===i&&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!=r?r:null,isLoading:null!=d&&d}}},52164:(e,t,l)=>{l.d(t,{x:()=>i});var s=l(13744),a=l(96199),n=l(85400);function i(e,t){var l,i,r;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!=(i=null==c?void 0:c.data)?i:[],total:null!=(r=null==c?void 0:c.total)?r:0,isLoading:x,status:o}}},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"}]])}}]);
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.